|
|
!(function(){var _b=Object.defineProperty,Ub=Object.defineProperties;var Hb=Object.getOwnPropertyDescriptors;var nv=Object.getOwnPropertySymbols;var Ex=Object.prototype.hasOwnProperty,wx=Object.prototype.propertyIsEnumerable;var Qy=Math.pow,bx=(ze,Ee,ue)=>Ee in ze?_b(ze,Ee,{enumerable:!0,configurable:!0,writable:!0,value:ue}):ze[Ee]=ue,ta=(ze,Ee)=>{for(var ue in Ee||(Ee={}))Ex.call(Ee,ue)&&bx(ze,ue,Ee[ue]);if(nv)for(var ue of nv(Ee))wx.call(Ee,ue)&&bx(ze,ue,Ee[ue]);return ze},Pf=(ze,Ee)=>Ub(ze,Hb(Ee));var Cx=(ze,Ee)=>{var ue={};for(var ce in ze)Ex.call(ze,ce)&&Ee.indexOf(ce)<0&&(ue[ce]=ze[ce]);if(ze!=null&&nv)for(var ce of nv(ze))Ee.indexOf(ce)<0&&wx.call(ze,ce)&&(ue[ce]=ze[ce]);return ue};var Jy=(ze,Ee,ue)=>new Promise((ce,Pe)=>{var Re=Te=>{try{We(ue.next(Te))}catch(Ge){Pe(Ge)}},Me=Te=>{try{We(ue.throw(Te))}catch(Ge){Pe(Ge)}},We=Te=>Te.done?ce(Te.value):Promise.resolve(Te.value).then(Re,Me);We((ue=ue.apply(ze,Ee)).next())});(self.webpackChunk=self.webpackChunk||[]).push([[2792],{88540:function(){"use strict"},42271:function(){"use strict"},15547:function(ze,Ee){"use strict";Ee.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},71584:function(){"use strict";function ze(Fe,ne,te,he){te===void 0&&(te=0),he===void 0&&(he=1/0),this._name=Fe,this._defaultValue=ne,this._minimum=te,this._maximum=he}Object.defineProperty(ze.prototype,"name",{get:function(){return this._name},set:function(Fe){if(typeof Fe!="string"||Fe==="")throw new Error("Shape name must be a valid string.");this._name=Fe}}),Object.defineProperty(ze.prototype,"defaultValue",{get:function(){return this._defaultValue},set:function(Fe){if(typeof Fe!="number"||isNaN(Fe))throw new Error("The default value must be a real number, not: "+Fe);this._defaultValue=Fe}}),Object.defineProperty(ze.prototype,"minimum",{get:function(){return this._minimum},set:function(Fe){if(typeof Fe!="number"||isNaN(Fe))throw new Error("Minimum must be a real number, not: "+Fe);this._minimum=Fe}}),Object.defineProperty(ze.prototype,"maximum",{get:function(){return this._maximum},set:function(Fe){if(typeof Fe!="number"||isNaN(Fe))throw new Error("Maximum must be a real number, not: "+Fe);this._maximum=Fe}}),go.Shape._FigureParameters={},go.Shape.getFigureParameter=function(Fe,ne){var te=go.Shape._FigureParameters[Fe];return te?te[ne]:null},go.Shape.setFigureParameter=function(Fe,ne,te){if(!(te instanceof ze))throw new Error("Third argument to Shape.setFigureParameter is not FigureParameter: "+te);if(te.defaultValue<te.minimum||te.defaultValue>te.maximum)throw new Error("defaultValue must be between minimum and maximum, not: "+te.defaultValue);var he=go.Shape._FigureParameters[Fe];he||(he=[],go.Shape._FigureParameters[Fe]=he),he[ne]=te};var Ee=[];function ue(Fe,ne){var te=Ee.pop();return te===void 0?new go.Point(Fe,ne):(te.x=Fe,te.y=ne,te)}function ce(){var Fe=Ee.pop();return Fe===void 0?new go.Point:Fe}function Pe(Fe){Ee.push(Fe)}function Re(Fe,ne,te,he,se,ge,Se,be,Ae){Ae||(Ae=new go.Point);var Le=Fe-te,je=se-Se,$e=NaN,qe=NaN;if(Le===0)if(je===0)Fe===te&&($e=Fe,qe=ne);else{var nt=(ge-be)/je,dt=ge-nt*se;$e=Fe,qe=nt*$e+dt}else if(je===0){var it=(ne-he)/Le,bt=ne-it*Fe;$e=se,qe=it*$e+bt}else{var it=(ne-he)/Le,nt=(ge-be)/je,bt=ne-it*Fe,dt=ge-nt*se;$e=(dt-bt)/(it-nt),qe=it*$e+bt}return Ae.x=$e,Ae.y=qe,Ae}function Me(Fe,ne,te,he,se,ge,Se,be,Ae,Le,je,$e,qe,nt){var dt=1-Ae,it=Ae,bt=Fe*dt+te*it,It=ne*dt+he*it,Ht=te*dt+se*it,ln=he*dt+ge*it,un=se*dt+Se*it,Qt=ge*dt+be*it,nn=bt*dt+Ht*it,At=It*dt+ln*it,ct=Ht*dt+un*it,at=ln*dt+Qt*it,rn=nn*dt+ct*it,hn=At*dt+at*it;Le.x=bt,Le.y=It,je.x=nn,je.y=At,$e.x=rn,$e.y=hn,qe.x=ct,qe.y=at,nt.x=un,nt.y=Qt}var We=new go.Spot(.156,.156),Te=new go.Spot(.844,.844),Ge=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new ze("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(Fe,ne,te){var he=Fe?Fe.parameter1:NaN;(isNaN(he)||he<0)&&(he=5),he=Math.min(he,ne/3),he=Math.min(he,te/3);var se=he*Ge,ge=new go.Geometry().add(new go.PathFigure(he,0,!0).add(new go.PathSegment(go.PathSegment.Line,ne-he,0)).add(new go.PathSegment(go.PathSegment.Bezier,ne,he,ne-se,0,ne,se)).add(new go.PathSegment(go.PathSegment.Line,ne,te-he)).add(new go.PathSegment(go.PathSegment.Bezier,ne-he,te,ne,te-se,ne-se,te)).add(new go.PathSegment(go.PathSegment.Line,he,te)).add(new go.PathSegment(go.PathSegment.Bezier,0,te-he,se,te,0,te-se)).add(new go.PathSegment(go.PathSegment.Line,0,he)).add(new go.PathSegment(go.PathSegment.Bezier,he,0,0,se,se,0).close()));return se>1&&(ge.spot1=new go.Spot(0,0,se,se),ge.spot2=new go.Spot(1,1,-se,-se)),ge}),go.Shape.defineFigureGenerator("Border","RoundedRectangle"),go.Shape.defineFigureGenerator("TriangleRight",function(Fe,ne,te){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,ne,.5*te)).add(new go.PathSegment(go.PathSegment.Line,0,te).close())).setSpots(0,.25,.5,.75)}),go.Shape.defineFigureGenerator("TriangleDown",function(Fe,ne,te){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,ne,0)).add(new go.PathSegment(go.PathSegment.Line,.5*ne,te).close())).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("TriangleLeft",function(Fe,ne,te){return new go.Geometry().add(new go.PathFigure(ne,te).add(new go.PathSegment(go.PathSegment.Line,0,.5*te)).add(new go.PathSegment(go.PathSegment.Line,ne,0).close())).setSpots(.5,.25,1,.75)}),go.Shape.defineFigureGenerator("TriangleUp",function(Fe,ne,te){return new go.Geometry().add(new go.PathFigure(ne,te).add(new go.PathSegment(go.PathSegment.Line,0,te)).add(new go.PathSegment(go.PathSegment.Line,.5*ne,0).close())).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("Triangle","TriangleUp"),go.Shape.defineFigureGenerator("Diamond",function(Fe,ne,te){return new go.Geometry().add(new go.PathFigure(.5*ne,0).add(new go.PathSegment(go.PathSegment.Line,0,.5*te)).add(new go.PathSegment(go.PathSegment.Line,.5*ne,te)).add(new go.PathSegment(go.PathSegment.Line,ne,.5*te).close())).setSpots(.25,.25,.75,.75)}),go.Shape.defineFigureGenerator("LineH",function(Fe,ne,te){var he=new go.Geometry(go.Geometry.Line);return he.startX=0,he.startY=te/2,he.endX=ne,he.endY=te/2,he}),go.Shape.defineFigureGenerator("LineV",function(Fe,ne,te){var he=new go.Geometry(go.Geometry.Line);return he.startX=ne/2,he.startY=0,he.endX=ne/2,he.endY=te,he}),go.Shape.defineFigureGenerator("BarH","Rectangle"),go.Shape.defineFigureGenerator("BarV","Rectangle"),go.Shape.defineFigureGenerator("MinusLine","LineH"),go.Shape.defineFigureGenerator("PlusLine",function(Fe,ne,te){return new go.Geometry().add(new go.PathFigure(0,te/2,!1).add(new go.PathSegment(go.PathSegment.Line,ne,te/2)).add(new go.PathSegment(go.PathSegment.Move,ne/2,0)).add(new go.PathSegment(go.PathSegment.Line,ne/2,te)))}),go.Shape.defineFigureGenerator("XLine",function(Fe,ne,te){return new go.Geometry().add(new go.PathFigure(0,te,!1).add(new go.PathSegment(go.PathSegment.Line,ne,0)).add(new go.PathSegment(go.PathSegment.Move,0,0)).add(new go.PathSegment(go.PathSegment.Line,ne,te)))}),go.Shape.defineFigureGenerator("LineRight",function(Fe,ne,te){return new go.Geometry().add(new go.PathFigure(.25*ne,0,!1).add(new go.PathSegment(go.PathSegment.Line,.75*ne,.5*te)).add(new go.PathSegment(go.PathSegment.Line,.25*ne,te)))}),go.Shape.defineFigureGenerator("LineDown",function(Fe,ne,te){return new go.Geometry().add(new go.PathFigure(0,.25*te,!1).add(new go.PathSegment(go.PathSegment.Line,.5*ne,.75*te)).add(new go.PathSegment(go.PathSegment.Line,ne,.25*te)))}),go.Shape.defineFigureGenerator("LineLeft",function(Fe,ne,te){return new go.Geometry().add(new go.PathFigure(.75*ne,0,!1).add(new go.PathSegment(go.PathSegment.Line,.25*ne,.5*te)).add(new go.PathSegment(go.PathSegment.Line,.75*ne,te)))}),go.Shape.defineFigureGenerator("LineUp",function(Fe,ne,te){return new go.Geometry().add(new go.PathFigure(0,.75*te,!1).add(new go.PathSegment(go.PathSegment.Line,.5*ne,.25*te)).add(new go.PathSegment(go.PathSegment.Line,ne,.75*te)))}),go.Shape.defineFigureGenerator("AsteriskLine",function(Fe,ne,te){var he=.2/Math.SQRT2;return new go.Geometry().add(new go.PathFigure(he*ne,(1-he)*te,!1).add(new go.PathSegment(go.PathSegment.Line,(1-he)*ne,he*te)).add(new go.PathSegment(go.PathSegment.Move,he*ne,he*te)).add(new go.PathSegment(go.PathSegment.Line,(1-he)*ne,(1-he)*te)).add(new go.PathSegment(go.PathSegment.Move,0,te/2)).add(new go.PathSegment(go.PathSegment.Line,ne,te/2)).add(new go.PathSegment(go.PathSegment.Move,ne/2,0)).add(new go.PathSegment(go.PathSegment.Line,ne/2,te)))}),go.Shape.defineFigureGenerator("CircleLine",function(Fe,ne,te){var he=ne/2,se=new go.Geometry().add(new go.PathFigure(ne,ne/2,!1).add(new go.PathSegment(go.PathSegment.Arc,0,360,he,he,he,he).close()));return se.spot1=We,se.spot2=Te,se.defaultStretch=go.GraphObject.Uniform,se}),go.Shape.defineFigureGenerator("Line1",function(Fe,ne,te){var he=new go.Geometry(go.Geometry.Line);return he.startX=0,he.startY=0,he.endX=ne,he.endY=te,he}),go.Shape.defineFigureGenerator("Line2",function(Fe,ne,te){var he=new go.Geometry(go.Geometry.Line);return he.startX=ne,he.startY=0,he.endX=0,he.endY=te,he}),go.Shape.defineFigureGenerator("Curve1",function(Fe,ne,te){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,ne,te,Ge*ne,0,ne,(1-Ge)*te)))}),go.Shape.defineFigureGenerator("Curve2",function(Fe,ne,te){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,ne,te,0,Ge*te,(1-Ge)*ne,te)))}),go.Shape.defineFigureGenerator("Curve3",function(Fe,ne,te){return new go.Geometry().add(new go.PathFigure(ne,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,te,ne,Ge*te,Ge*ne,te)))}),go.Shape.defineFigureGenerator("Curve4",function(Fe,ne,te){return new go.Geometry().add(new go.PathFigure(ne,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,te,(1-Ge)*ne,0,0,(1-Ge)*te)))}),go.Shape.defineFigureGenerator("TriangleDownLeft",function(Fe,ne,te){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,ne,te)).add(new go.PathSegment(go.PathSegment.Line,0,te).close())).setSpots(0,.5,.5,1)}),go.Shape.defineFigureGenerator("TriangleDownRight",function(Fe,ne,te){return new go.Geometry().add(new go.PathFigure(ne,0,!0).add(new go.PathSegment(go.PathSegment.Line,ne,te)).add(new go.PathSegment(go.PathSegment.Line,0,te).close())).setSpots(.5,.5,1,1)}),go.Shape.defineFigureGenerator("TriangleUpLeft",function(Fe,ne,te){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,ne,0)).add(new go.PathSegment(go.PathSegment.Line,0,te).close())).setSpots(0,0,.5,.5)}),go.Shape.defineFigureGenerator("TriangleUpRight",function(Fe,ne,te){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,ne,0)).add(new go.PathSegment(go.PathSegment.Line,ne,te).close())).setSpots(.5,0,1,.5)}),go.Shape.defineFigureGenerator("RightTriangle","TriangleDownLeft"),go.Shape.setFigureParameter("Parallelogram1",0,new ze("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",function(Fe,ne,te){var he=Fe?Fe.parameter1:NaN;isNaN(he)?he=.1:he<-1?he=-1:he>1&&(he=1);var se=Math.abs(he)*ne;if(he===0){var ge=new go.Geometry(go.Geometry.Rectangle);return ge.startX=0,ge.startY=0,ge.endX=ne,ge.endY=te,ge}else{var ge=new go.Geometry;return he>0?ge.add(new go.PathFigure(se,0).add(new go.PathSegment(go.PathSegment.Line,ne,0)).add(new go.PathSegment(go.PathSegment.Line,ne-se,te)).add(new go.PathSegment(go.PathSegment.Line,0,te).close())):ge.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,ne-se,0)).add(new go.PathSegment(go.PathSegment.Line,ne,te)).add(new go.PathSegment(go.PathSegment.Line,se,te).close())),se<ne/2&&ge.setSpots(se/ne,0,(ne-se)/ne,1),ge}}),go.Shape.defineFigureGenerator("Parallelogram","Parallelogram1"),go.Shape.setFigureParameter("Parallelogram2",0,new ze("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("Parallelogram2",function(Fe,ne,te){var he=Fe?Fe.parameter1:NaN;isNaN(he)?he=10:he<-ne?he=-ne:he>ne&&(he=ne);var se=Math.abs(he);if(he===0){var ge=new go.Geometry(go.Geometry.Rectangle);return ge.startX=0,ge.startY=0,ge.endX=ne,ge.endY=te,ge}else{var ge=new go.Geometry;return he>0?ge.add(new go.PathFigure(se,0).add(new go.PathSegment(go.PathSegment.Line,ne,0)).add(new go.PathSegment(go.PathSegment.Line,ne-se,te)).add(new go.PathSegment(go.PathSegment.Line,0,te).close())):ge.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,ne-se,0)).add(new go.PathSegment(go.PathSegment.Line,ne,te)).add(new go.PathSegment(go.PathSegment.Line,se,te).close())),se<ne/2&&ge.setSpots(se/ne,0,(ne-se)/ne,1),ge}}),go.Shape.setFigureParameter("Trapezoid1",0,new ze("Indent",.2,-.99,.99)),go.Shape.defineFigureGenerator("Trapezoid1",function(Fe,ne,te){var he=Fe?Fe.parameter1:NaN;isNaN(he)?he=.2:he<.5?he=-.5:he>.5&&(he=.5);var se=Math.abs(he)*ne;if(he===0){var ge=new go.Geometry(go.Geometry.Rectangle);return ge.startX=0,ge.startY=0,ge.endX=ne,ge.endY=te,ge}else{var ge=new go.Geometry;return he>0?ge.add(new go.PathFigure(se,0).add(new go.PathSegment(go.PathSegment.Line,ne-se,0)).add(new go.PathSegment(go.PathSegment.Line,ne,te)).add(new go.PathSegment(go.PathSegment.Line,0,te).close())):ge.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,ne,0)).add(new go.PathSegment(go.PathSegment.Line,ne-se,te)).add(new go.PathSegment(go.PathSegment.Line,se,te).close())),se<ne/2&&ge.setSpots(se/ne,0,(ne-se)/ne,1),ge}}),go.Shape.defineFigureGenerator("Trapezoid","Trapezoid1"),go.Shape.setFigureParameter("Trapezoid2",0,new ze("Indent",20,-1/0,1/0)),go.Shape.defineFigureGenerator("Trapezoid2",function(Fe,ne,te){var he=Fe?Fe.parameter1:NaN;isNaN(he)?he=20:he<-ne?he=-ne/2:he>ne&&(he=ne/2);var se=Math.abs(he);if(he===0){var ge=new go.Geometry(go.Geometry.Rectangle);return ge.startX=0,ge.startY=0,ge.endX=ne,ge.endY=te,ge}else{var ge=new go.Geometry;return he>0?ge.add(new go.PathFigure(se,0).add(new go.PathSegment(go.PathSegment.Line,ne-se,0)).add(new go.PathSegment(go.PathSegment.Line,ne,te)).add(new go.PathSegment(go.PathSegment.Line,0,te).close())):ge.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,ne,0)).add(new go.PathSegment(go.PathSegment.Line,ne-se,te)).add(new go.PathSegment(go.PathSegment.Line,se,te).close())),se<ne/2&&ge.setSpots(se/ne,0,(ne-se)/ne,1),ge}}),go.Shape.setFigureParameter("ManualOperation",0,new ze("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("ManualOperation",function(Fe,ne,te){var he=Fe?Fe.parameter1:NaN;isNaN(he)?he=10:he<-ne?he=-ne/2:he>ne&&(he=ne/2);var se=Math.abs(he);if(he===0){var ge=new go.Geometry(go.Geometry.Rectangle);return ge.startX=0,ge.startY=0,ge.endX=ne,ge.endY=te,ge}else{var ge=new go.Geometry;return he>0?ge.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,ne,0)).add(new go.PathSegment(go.PathSegment.Line,ne-se,te)).add(new go.PathSegment(go.PathSegment.Line,se,te).close())):ge.add(new go.PathFigure(se,0).add(new go.PathSegment(go.PathSegment.Line,ne-se,0)).add(new go.PathSegment(go.PathSegment.Line,ne,te)).add(new go.PathSegment(go.PathSegment.Line,0,te).close())),se<ne/2&&ge.setSpots(se/ne,0,(ne-se)/ne,1),ge}});var st=[];function Qe(){var Fe=st.pop();return Fe===void 0?[]:Fe}function Ye(Fe){Fe.length=0,st.push(Fe)}function yt(Fe){for(var ne=Qe(),te=.5,he=.5,se=Math.PI*1.5,ge=0,Se=0;Se<Fe;Se++)ge=2*Math.PI/Fe*Se+se,ne[Se]=new go.Point(he+te*Math.cos(ge),he+te*Math.sin(ge));return ne.push(ne[0]),ne}function ot(Fe){var ne=Nt(Fe),te=Qe();te[0]=ne[0];for(var he=1,se=1;he<ne.length;he+=2,se+=3)te[se]=ne[he],te[se+1]=ne[he],te[se+2]=ne[he+1];return Ye(ne),te}function Nt(Fe){for(var ne=yt(Fe),te=Qe(),he=Math.floor(ne.length/2),se=ne.length-1,ge=Fe%2===0?2:1,Se=0;Se<se;Se++){var be=ne[Se],Ae=ne[Se+1],Le=ne[(he+Se-1)%se],je=ne[(he+Se+ge)%se];te[Se*2]=be,te[Se*2+1]=Re(be.x,be.y,Le.x,Le.y,Ae.x,Ae.y,je.x,je.y,new go.Point)}return te[te.length]=te[0],Ye(ne),te}go.Shape.defineFigureGenerator("Pentagon",function(Fe,ne,te){var he=yt(5),se=new go.Geometry,ge=new go.PathFigure(he[0].x*ne,he[0].y*te,!0);se.add(ge);for(var Se=1;Se<5;Se++)ge.add(new go.PathSegment(go.PathSegment.Line,he[Se].x*ne,he[Se].y*te));return ge.add(new go.PathSegment(go.PathSegment.Line,he[0].x*ne,he[0].y*te).close()),Ye(he),se.spot1=new go.Spot(.2,.22),se.spot2=new go.Spot(.8,.9),se}),go.Shape.defineFigureGenerator("Hexagon",function(Fe,ne,te){var he=yt(6),se=new go.Geometry,ge=new go.PathFigure(he[0].x*ne,he[0].y*te,!0);se.add(ge);for(var Se=1;Se<6;Se++)ge.add(new go.PathSegment(go.PathSegment.Line,he[Se].x*ne,he[Se].y*te));return ge.add(new go.PathSegment(go.PathSegment.Line,he[0].x*ne,he[0].y*te).close()),Ye(he),se.spot1=new go.Spot(.07,.25),se.spot2=new go.Spot(.93,.75),se}),go.Shape.defineFigureGenerator("Heptagon",function(Fe,ne,te){var he=yt(7),se=new go.Geometry,ge=new go.PathFigure(he[0].x*ne,he[0].y*te,!0);se.add(ge);for(var Se=1;Se<7;Se++)ge.add(new go.PathSegment(go.PathSegment.Line,he[Se].x*ne,he[Se].y*te));return ge.add(new go.PathSegment(go.PathSegment.Line,he[0].x*ne,he[0].y*te).close()),Ye(he),se.spot1=new go.Spot(.2,.15),se.spot2=new go.Spot(.8,.85),se}),go.Shape.defineFigureGenerator("Octagon",function(Fe,ne,te){var he=yt(8),se=new go.Geometry,ge=new go.PathFigure(he[0].x*ne,he[0].y*te,!0);se.add(ge);for(var Se=1;Se<8;Se++)ge.add(new go.PathSegment(go.PathSegment.Line,he[Se].x*ne,he[Se].y*te));return ge.add(new go.PathSegment(go.PathSegment.Line,he[0].x*ne,he[0].y*te).close()),Ye(he),se.spot1=new go.Spot(.15,.15),se.spot2=new go.Spot(.85,.85),se}),go.Shape.defineFigureGenerator("Nonagon",function(Fe,ne,te){var he=yt(9),se=new go.Geometry,ge=new go.PathFigure(he[0].x*ne,he[0].y*te,!0);se.add(ge);for(var Se=1;Se<9;Se++)ge.add(new go.PathSegment(go.PathSegment.Line,he[Se].x*ne,he[Se].y*te));return ge.add(new go.PathSegment(go.PathSegment.Line,he[0].x*ne,he[0].y*te).close()),Ye(he),se.spot1=new go.Spot(.17,.13),se.spot2=new go.Spot(.82,.82),se}),go.Shape.defineFigureGenerator("Decagon",function(Fe,ne,te){var he=yt(10),se=new go.Geometry,ge=new go.PathFigure(he[0].x*ne,he[0].y*te,!0);se.add(ge);for(var Se=1;Se<10;Se++)ge.add(new go.PathSegment(go.PathSegment.Line,he[Se].x*ne,he[Se].y*te));return ge.add(new go.PathSegment(go.PathSegment.Line,he[0].x*ne,he[0].y*te).close()),Ye(he),se.spot1=new go.Spot(.16,.16),se.spot2=new go.Spot(.84,.84),se}),go.Shape.defineFigureGenerator("Dodecagon",function(Fe,ne,te){var he=yt(12),se=new go.Geometry,ge=new go.PathFigure(he[0].x*ne,he[0].y*te,!0);se.add(ge);for(var Se=1;Se<12;Se++)ge.add(new go.PathSegment(go.PathSegment.Line,he[Se].x*ne,he[Se].y*te));return ge.add(new go.PathSegment(go.PathSegment.Line,he[0].x*ne,he[0].y*te).close()),Ye(he),se.spot1=new go.Spot(.16,.16),se.spot2=new go.Spot(.84,.84),se}),go.Shape.defineFigureGenerator("FivePointedStar",function(Fe,ne,te){var he=Nt(5),se=new go.Geometry,ge=new go.PathFigure(he[0].x*ne,he[0].y*te,!0);se.add(ge);for(var Se=1;Se<10;Se++)ge.add(new go.PathSegment(go.PathSegment.Line,he[Se].x*ne,he[Se].y*te));return ge.add(new go.PathSegment(go.PathSegment.Line,he[0].x*ne,he[0].y*te).close()),Ye(he),se.spot1=new go.Spot(.266,.333),se.spot2=new go.Spot(.733,.733),se}),go.Shape.defineFigureGenerator("SixPointedStar",function(Fe,ne,te){var he=Nt(6),se=new go.Geometry,ge=new go.PathFigure(he[0].x*ne,he[0].y*te,!0);se.add(ge);for(var Se=1;Se<12;Se++)ge.add(new go.PathSegment(go.PathSegment.Line,he[Se].x*ne,he[Se].y*te));return ge.add(new go.PathSegment(go.PathSegment.Line,he[0].x*ne,he[0].y*te).close()),Ye(he),se.spot1=new go.Spot(.17,.25),se.spot2=new go.Spot(.83,.75),se}),go.Shape.defineFigureGenerator("SevenPointedStar",function(Fe,ne,te){var he=Nt(7),se=new go.Geometry,ge=new go.PathFigure(he[0].x*ne,he[0].y*te,!0);se.add(ge);for(var Se=1;Se<14;Se++)ge.add(new go.PathSegment(go.PathSegment.Line,he[Se].x*ne,he[Se].y*te));return ge.add(new go.PathSegment(go.PathSegment.Line,he[0].x*ne,he[0].y*te).close()),Ye(he),se.spot1=new go.Spot(.222,.277),se.spot2=new go.Spot(.777,.666),se}),go.Shape.defineFigureGenerator("EightPointedStar",function(Fe,ne,te){var he=Nt(8),se=new go.Geometry,ge=new go.PathFigure(he[0].x*ne,he[0].y*te,!0);se.add(ge);for(var Se=1;Se<16;Se++)ge.add(new go.PathSegment(go.PathSegment.Line,he[Se].x*ne,he[Se].y*te));return ge.add(new go.PathSegment(go.PathSegment.Line,he[0].x*ne,he[0].y*te).close()),Ye(he),se.spot1=new go.Spot(.25,.25),se.spot2=new go.Spot(.75,.75),se}),go.Shape.defineFigureGenerator("NinePointedStar",function(Fe,ne,te){var he=Nt(9),se=new go.Geometry,ge=new go.PathFigure(he[0].x*ne,he[0].y*te,!0);se.add(ge);for(var Se=1;Se<18;Se++)ge.add(new go.PathSegment(go.PathSegment.Line,he[Se].x*ne,he[Se].y*te));return ge.add(new go.PathSegment(go.PathSegment.Line,he[0].x*ne,he[0].y*te).close()),Ye(he),se.spot1=new go.Spot(.222,.277),se.spot2=new go.Spot(.777,.666),se}),go.Shape.defineFigureGenerator("TenPointedStar",function(Fe,ne,te){var he=Nt(10),se=new go.Geometry,ge=new go.PathFigure(he[0].x*ne,he[0].y*te,!0);se.add(ge);for(var Se=1;Se<20;Se++)ge.add(new go.PathSegment(go.PathSegment.Line,he[Se].x*ne,he[Se].y*te));return ge.add(new go.PathSegment(go.PathSegment.Line,he[0].x*ne,he[0].y*te).close()),Ye(he),se.spot1=new go.Spot(.281,.261),se.spot2=new go.Spot(.723,.748),se}),go.Shape.defineFigureGenerator("FivePointedBurst",function(Fe,ne,te){var he=ot(5),se=new go.Geometry,ge=new go.PathFigure(he[0].x*ne,he[0].y*te,!0);se.add(ge);for(var Se=1;Se<he.length;Se+=3)ge.add(new go.PathSegment(go.PathSegment.Bezier,he[Se+2].x*ne,he[Se+2].y*te,he[Se].x*ne,he[Se].y*te,he[Se+1].x*ne,he[Se+1].y*te));return ge.segments.last().close(),Ye(he),se.spot1=new go.Spot(.222,.277),se.spot2=new go.Spot(.777,.777),se}),go.Shape.defineFigureGenerator("SixPointedBurst",function(Fe,ne,te){var he=ot(6),se=new go.Geometry,ge=new go.PathFigure(he[0].x*ne,he[0].y*te,!0);se.add(ge);for(var Se=1;Se<he.length;Se+=3)ge.add(new go.PathSegment(go.PathSegment.Bezier,he[Se+2].x*ne,he[Se+2].y*te,he[Se].x*ne,he[Se].y*te,he[Se+1].x*ne,he[Se+1].y*te));return ge.segments.last().close(),Ye(he),se.spot1=new go.Spot(.17,.222),se.spot2=new go.Spot(.833,.777),se}),go.Shape.defineFigureGenerator("SevenPointedBurst",function(Fe,ne,te){var he=ot(7),se=new go.Geometry,ge=new go.PathFigure(he[0].x*ne,he[0].y*te,!0);se.add(ge);for(var Se=1;Se<he.length;Se+=3)ge.add(new go.PathSegment(go.PathSegment.Bezier,he[Se+2].x*ne,he[Se+2].y*te,he[Se].x*ne,he[Se].y*te,he[Se+1].x*ne,he[Se+1].y*te));return ge.segments.last().close(),Ye(he),se.spot1=new go.Spot(.222,.222),se.spot2=new go.Spot(.777,.777),se}),go.Shape.defineFigureGenerator("EightPointedBurst",function(Fe,ne,te){var he=ot(8),se=new go.Geometry,ge=new go.PathFigure(he[0].x*ne,he[0].y*te,!0);se.add(ge);for(var Se=1;Se<he.length;Se+=3)ge.add(new go.PathSegment(go.PathSegment.Bezier,he[Se+2].x*ne,he[Se+2].y*te,he[Se].x*ne,he[Se].y*te,he[Se+1].x*ne,he[Se+1].y*te));return ge.segments.last().close(),Ye(he),se.spot1=new go.Spot(.222,.222),se.spot2=new go.Spot(.777,.777),se}),go.Shape.defineFigureGenerator("NinePointedBurst",function(Fe,ne,te){var he=ot(9),se=new go.Geometry,ge=new go.PathFigure(he[0].x*ne,he[0].y*te,!0);se.add(ge);for(var Se=1;Se<he.length;Se+=3)ge.add(new go.PathSegment(go.PathSegment.Bezier,he[Se+2].x*ne,he[Se+2].y*te,he[Se].x*ne,he[Se].y*te,he[Se+1].x*ne,he[Se+1].y*te));return ge.segments.last().close(),Ye(he),se.spot1=new go.Spot(.222,.222),se.spot2=new go.Spot(.777,.777),se}),go.Shape.defineFigureGenerator("TenPointedBurst",function(Fe,ne,te){var he=ot(10),se=new go.Geometry,ge=new go.PathFigure(he[0].x*ne,he[0].y*te,!0);se.add(ge);for(var Se=1;Se<he.length;Se+=3)ge.add(new go.PathSegment(go.PathSegment.Bezier,he[Se+2].x*ne,he[Se+2].y*te,he[Se].x*ne,he[Se].y*te,he[Se+1].x*ne,he[Se+1].y*te));return ge.segments.last().close(),Ye(he),se.spot1=new go.Spot(.222,.222),se.spot2=new go.Spot(.777,.777),se}),go.Shape.setFigureParameter("FramedRectangle",0,new ze("ThicknessX",8)),go.Shape.setFigureParameter("FramedRectangle",1,new ze("ThicknessY",8)),go.Shape.defineFigureGenerator("FramedRectangle",function(Fe,ne,te){var he=Fe?Fe.parameter1:NaN,se=Fe?Fe.parameter2:NaN;isNaN(he)&&(he=8),isNaN(se)&&(se=8);var ge=new go.Geometry,Se=new go.PathFigure(0,0,!0);return ge.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,ne,0)),Se.add(new go.PathSegment(go.PathSegment.Line,ne,te)),Se.add(new go.PathSegment(go.PathSegment.Line,0,te).close()),he<ne/2&&se<te/2&&(Se.add(new go.PathSegment(go.PathSegment.Move,he,se)),Se.add(new go.PathSegment(go.PathSegment.Line,he,te-se)),Se.add(new go.PathSegment(go.PathSegment.Line,ne-he,te-se)),Se.add(new go.PathSegment(go.PathSegment.Line,ne-he,se).close())),ge.setSpots(0,0,1,1,he,se,-he,-se),ge}),go.Shape.setFigureParameter("Ring",0,new ze("Thickness",8)),go.Shape.defineFigureGenerator("Ring",function(Fe,ne,te){var he=Fe?Fe.parameter1:NaN;(isNaN(he)||he<0)&&(he=8);var se=ne/2,ge=new go.Geometry,Se=new go.PathFigure(ne,ne/2,!0);ge.add(Se),Se.add(new go.PathSegment(go.PathSegment.Arc,0,360,se,se,se,se).close());var be=Math.max(se-he,0);return be>0&&(Se.add(new go.PathSegment(go.PathSegment.Move,ne/2+be,ne/2)),Se.add(new go.PathSegment(go.PathSegment.Arc,0,-360,se,se,be,be).close())),ge.spot1=We,ge.spot2=Te,ge.defaultStretch=go.GraphObject.Uniform,ge}),go.Shape.defineFigureGenerator("Cloud",function(Fe,ne,te){return new go.Geometry().add(new go.PathFigure(.08034461*ne,.1944299*te,!0).add(new go.PathSegment(go.PathSegment.Bezier,.2008615*ne,.05349299*te,-.09239631*ne,.07836421*te,.1406031*ne,-.0542823*te)).add(new go.PathSegment(go.PathSegment.Bezier,.4338609*ne,.074219*te,.2450511*ne,-.00697547*te,.3776197*ne,-.01112067*te)).add(new go.PathSegment(go.PathSegment.Bezier,.6558228*ne,.07004196*te,.4539471*ne,0,.6066018*ne,-.02526587*te)).add(new go.PathSegment(go.PathSegment.Bezier,.8921095*ne,.08370865*te,.6914277*ne,-.01904177*te,.8921095*ne,-.01220843*te)).add(new go.PathSegment(go.PathSegment.Bezier,.9147671*ne,.3194596*te,1.036446*ne,.04105738*te,1.020377*ne,.3022052*te)).add(new go.PathSegment(go.PathSegment.Bezier,.9082935*ne,.562044*te,1.04448*ne,.360238*te,.992256*ne,.5219009*te)).add(new go.PathSegment(go.PathSegment.Bezier,.9212406*ne,.8217117*te,1.032337*ne,.5771781*te,1.018411*ne,.8120651*te)).add(new go.PathSegment(go.PathSegment.Bezier,.7592566*ne,.9156953*te,1.028411*ne,.9571472*te,.8556702*ne,1.052487*te)).add(new go.PathSegment(go.PathSegment.Bezier,.5101666*ne,.9310455*te,.7431877*ne,1.009325*te,.5624123*ne,1.021761*te)).add(new go.PathSegment(go.PathSegment.Bezier,.2609328*ne,.9344623*te,.4820677*ne,1.031761*te,.3030112*ne,1.002796*te)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*ne,.870098*te,.2329994*ne,1.01518*te,.03213784*ne,1.01518*te)).add(new go.PathSegment(go.PathSegment.Bezier,.06829292*ne,.6545475*te,-.02812061*ne,.9032597*te,-.01205169*ne,.6835638*te)).add(new go.PathSegment(go.PathSegment.Bezier,.06427569*ne,.4265613*te,-.01812061*ne,.6089503*te,-.00606892*ne,.4555777*te)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*ne,.1944299*te,-.01606892*ne,.3892545*te,-.01205169*ne,.1944299*te))).setSpots(.1,.1,.9,.9)}),go.Shape.defineFigureGenerator("StopSign",function(Fe,ne,te){var he=1/(Math.SQRT2+2);return new go.Geometry().add(new go.PathFigure(he*ne,0,!0).add(new go.PathSegment(go.PathSegment.Line,(1-he)*ne,0)).add(new go.PathSegment(go.PathSegment.Line,ne,he*te)).add(new go.PathSegment(go.PathSegment.Line,ne,(1-he)*te)).add(new go.PathSegment(go.PathSegment.Line,(1-he)*ne,te)).add(new go.PathSegment(go.PathSegment.Line,he*ne,te)).add(new go.PathSegment(go.PathSegment.Line,0,(1-he)*te)).add(new go.PathSegment(go.PathSegment.Line,0,he*te).close())).setSpots(he/2,he/2,1-he/2,1-he/2)}),go.Shape.setFigureParameter("Pie",0,new ze("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new ze("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(Fe,ne,te){var he=Fe?Fe.parameter1:NaN,se=Fe?Fe.parameter2:NaN;isNaN(he)&&(he=0),isNaN(se)&&(se=315);var ge=he%360;ge<0&&(ge+=360);var Se=se%360,be=Math.min(ne,te)/2;return new go.Geometry().add(new go.PathFigure(be,be).add(new go.PathSegment(go.PathSegment.Arc,ge,Se,be,be,be,be).close()))}),go.Shape.defineFigureGenerator("PiePiece",function(Fe,ne,te){var he=Ge/Math.SQRT2*.5,se=Math.SQRT2/2,ge=1-Math.SQRT2/2;return new go.Geometry().add(new go.PathFigure(ne,te,!0).add(new go.PathSegment(go.PathSegment.Bezier,se*ne,ge*te,ne,(1-he)*te,(se+he)*ne,(ge+he)*te)).add(new go.PathSegment(go.PathSegment.Line,0,te).close()))}),go.Shape.setFigureParameter("ThickCross",0,new ze("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(Fe,ne,te){var he=Fe?Fe.parameter1:NaN;(isNaN(he)||he<0)&&(he=30);var se=Math.min(he,ne)/2,ge=ne/2,Se=te/2;return new go.Geometry().add(new go.PathFigure(ge-se,0,!0).add(new go.PathSegment(go.PathSegment.Line,ge+se,0)).add(new go.PathSegment(go.PathSegment.Line,ge+se,Se-se)).add(new go.PathSegment(go.PathSegment.Line,ne,Se-se)).add(new go.PathSegment(go.PathSegment.Line,ne,Se+se)).add(new go.PathSegment(go.PathSegment.Line,ge+se,Se+se)).add(new go.PathSegment(go.PathSegment.Line,ge+se,te)).add(new go.PathSegment(go.PathSegment.Line,ge-se,te)).add(new go.PathSegment(go.PathSegment.Line,ge-se,Se+se)).add(new go.PathSegment(go.PathSegment.Line,0,Se+se)).add(new go.PathSegment(go.PathSegment.Line,0,Se-se)).add(new go.PathSegment(go.PathSegment.Line,ge-se,Se-se).close()))}),go.Shape.setFigureParameter("ThinCross",0,new ze("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",function(Fe,ne,te){var he=Fe?Fe.parameter1:NaN;(isNaN(he)||he<0)&&(he=10);var se=Math.min(he,ne)/2,ge=ne/2,Se=te/2;return new go.Geometry().add(new go.PathFigure(ge-se,0,!0).add(new go.PathSegment(go.PathSegment.Line,ge+se,0)).add(new go.PathSegment(go.PathSegment.Line,ge+se,Se-se)).add(new go.PathSegment(go.PathSegment.Line,ne,Se-se)).add(new go.PathSegment(go.PathSegment.Line,ne,Se+se)).add(new go.PathSegment(go.PathSegment.Line,ge+se,Se+se)).add(new go.PathSegment(go.PathSegment.Line,ge+se,te)).add(new go.PathSegment(go.PathSegment.Line,ge-se,te)).add(new go.PathSegment(go.PathSegment.Line,ge-se,Se+se)).add(new go.PathSegment(go.PathSegment.Line,0,Se+se)).add(new go.PathSegment(go.PathSegment.Line,0,Se-se)).add(new go.PathSegment(go.PathSegment.Line,ge-se,Se-se).close()))}),go.Shape.setFigureParameter("ThickX",0,new ze("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(Fe,ne,te){var he=Fe?Fe.parameter1:NaN;if((isNaN(he)||he<0)&&(he=30),ne===0||te===0){var se=new go.Geometry(go.Geometry.Rectangle);return se.startX=0,se.startY=0,se.endX=ne,se.endY=te,se}else{var ge=ne/2,Se=te/2,be=Math.atan2(te,ne),Ae=he-Math.min(Math.cos(be)*he/2,ge),Le=he-Math.min(Math.sin(be)*he/2,Se),se=new go.Geometry,je=new go.PathFigure(Ae,0,!0);return se.add(je),je.add(new go.PathSegment(go.PathSegment.Line,ge,.2*te)),je.add(new go.PathSegment(go.PathSegment.Line,ne-Ae,0)),je.add(new go.PathSegment(go.PathSegment.Line,ne,Le)),je.add(new go.PathSegment(go.PathSegment.Line,.8*ne,Se)),je.add(new go.PathSegment(go.PathSegment.Line,ne,te-Le)),je.add(new go.PathSegment(go.PathSegment.Line,ne-Ae,te)),je.add(new go.PathSegment(go.PathSegment.Line,ge,.8*te)),je.add(new go.PathSegment(go.PathSegment.Line,Ae,te)),je.add(new go.PathSegment(go.PathSegment.Line,0,te-Le)),je.add(new go.PathSegment(go.PathSegment.Line,.2*ne,Se)),je.add(new go.PathSegment(go.PathSegment.Line,0,Le).close()),se}}),go.Shape.setFigureParameter("ThinX",0,new ze("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(Fe,ne,te){var he=Fe?Fe.parameter1:NaN;(isNaN(he)||he<0)&&(he=10);var se=new go.Geometry,ge=new go.PathFigure(.1*ne,0,!0);return se.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.4*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.9*ne,0)),ge.add(new go.PathSegment(go.PathSegment.Line,ne,.1*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.6*ne,.5*te)),ge.add(new go.PathSegment(go.PathSegment.Line,ne,.9*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.9*ne,te)),ge.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.6*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.1*ne,te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,.9*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.4*ne,.5*te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,.1*te).close()),se}),go.Shape.setFigureParameter("SquareIBeam",0,new ze("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(Fe,ne,te){var he=Fe?Fe.parameter1:NaN;isNaN(he)&&(he=.2);var se=new go.Geometry,ge=new go.PathFigure(0,0,!0);return se.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,ne,0)),ge.add(new go.PathSegment(go.PathSegment.Line,ne,he*te)),ge.add(new go.PathSegment(go.PathSegment.Line,(.5+he/2)*ne,he*te)),ge.add(new go.PathSegment(go.PathSegment.Line,(.5+he/2)*ne,(1-he)*te)),ge.add(new go.PathSegment(go.PathSegment.Line,ne,(1-he)*te)),ge.add(new go.PathSegment(go.PathSegment.Line,ne,te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,(1-he)*te)),ge.add(new go.PathSegment(go.PathSegment.Line,(.5-he/2)*ne,(1-he)*te)),ge.add(new go.PathSegment(go.PathSegment.Line,(.5-he/2)*ne,he*te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,he*te).close()),se}),go.Shape.setFigureParameter("RoundedIBeam",0,new ze("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(Fe,ne,te){var he=Fe?Fe.parameter1:NaN;isNaN(he)&&(he=.5);var se=new go.Geometry,ge=new go.PathFigure(0,0,!0);return se.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,ne,0)),ge.add(new go.PathSegment(go.PathSegment.Bezier,ne,te,Math.abs(1-he)*ne,.25*te,Math.abs(1-he)*ne,.75*te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,te)),ge.add(new go.PathSegment(go.PathSegment.Bezier,0,0,he*ne,.75*te,he*ne,.25*te).close()),se}),go.Shape.defineFigureGenerator("HalfEllipse",function(Fe,ne,te){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,ne,.5*te,Ge*ne,0,ne,(.5-Ge/2)*te)).add(new go.PathSegment(go.PathSegment.Bezier,0,te,ne,(.5+Ge/2)*te,Ge*ne,te).close())).setSpots(0,.156,.844,.844)}),go.Shape.defineFigureGenerator("Crescent",function(Fe,ne,te){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,te,ne,0,ne,te)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.5*ne,.75*te,.5*ne,.25*te).close())).setSpots(.311,.266,.744,.744)}),go.Shape.defineFigureGenerator("Heart",function(Fe,ne,te){return new go.Geometry().add(new go.PathFigure(.5*ne,te,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,.3*te,.1*ne,.8*te,0,.5*te)).add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,.3*te,0,0,.45*ne,0)).add(new go.PathSegment(go.PathSegment.Bezier,ne,.3*te,.55*ne,0,ne,0)).add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,te,ne,.5*te,.9*ne,.8*te).close())).setSpots(.14,.29,.86,.78)}),go.Shape.defineFigureGenerator("Spade",function(Fe,ne,te){return new go.Geometry().add(new go.PathFigure(.5*ne,0,!0).add(new go.PathSegment(go.PathSegment.Line,.51*ne,.01*te)).add(new go.PathSegment(go.PathSegment.Bezier,ne,.5*te,.6*ne,.2*te,ne,.25*te)).add(new go.PathSegment(go.PathSegment.Bezier,.55*ne,.7*te,ne,.8*te,.6*ne,.8*te)).add(new go.PathSegment(go.PathSegment.Bezier,.75*ne,te,.5*ne,.75*te,.55*ne,.95*te)).add(new go.PathSegment(go.PathSegment.Line,.25*ne,te)).add(new go.PathSegment(go.PathSegment.Bezier,.45*ne,.7*te,.45*ne,.95*te,.5*ne,.75*te)).add(new go.PathSegment(go.PathSegment.Bezier,0,.5*te,.4*ne,.8*te,0,.8*te)).add(new go.PathSegment(go.PathSegment.Bezier,.49*ne,.01*te,0,.25*te,.4*ne,.2*te).close())).setSpots(.14,.26,.86,.78)}),go.Shape.defineFigureGenerator("Club",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(.4*ne,.6*te,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,.15*ne,te,.5*ne,.75*te,.45*ne,.95*te)),se.add(new go.PathSegment(go.PathSegment.Line,.85*ne,te)),se.add(new go.PathSegment(go.PathSegment.Bezier,.6*ne,.6*te,.55*ne,.95*te,.5*ne,.75*te));var ge=.2,Se=.3,be=0,Ae=ge*Ge;return se.add(new go.PathSegment(go.PathSegment.Bezier,(.5+Se)*ne,(.5+ge+be)*te,(.5-ge+Se)*ne,(.5+Ae+be)*te,(.5-Ae+Se)*ne,(.5+ge+be)*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+ge+Se)*ne,(.5+be)*te,(.5+Ae+Se)*ne,(.5+ge+be)*te,(.5+ge+Se)*ne,(.5+Ae+be)*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,(.5+Se)*ne,(.5-ge+be)*te,(1-.5+ge+Se)*ne,(.5-Ae+be)*te,(.5+Ae+Se)*ne,(.5-ge+be)*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,.65*ne,.36771243*te,(.5-Ae+Se)*ne,(.5-ge+be)*te,(.5-ge+Se+.05)*ne,(.5-Ae+be-.02)*te)),ge=.2,Se=0,be=-.3,Ae=ge*Ge,se.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+ge+Se)*ne,(.5+be)*te,(.5+Ae+Se)*ne,(.5+ge+be)*te,(.5+ge+Se)*ne,(.5+Ae+be)*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,(.5+Se)*ne,(.5-ge+be)*te,(1-.5+ge+Se)*ne,(.5-Ae+be)*te,(.5+Ae+Se)*ne,(.5-ge+be)*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,(.5-ge+Se)*ne,(.5+be)*te,(.5-Ae+Se)*ne,(.5-ge+be)*te,(.5-ge+Se)*ne,(.5-Ae+be)*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,(.5-Ae+Se)*ne,(.5+ge+be)*te,(.5-ge+Se)*ne,(.5+Ae+be)*te,(.5-Ae+Se)*ne,(.5+ge+be)*te)),ge=.2,Se=-.3,be=0,Ae=ge*Ge,se.add(new go.PathSegment(go.PathSegment.Bezier,(.5+Se)*ne,(.5-ge+be)*te,(1-.5+ge+Se-.05)*ne,(.5-Ae+be-.02)*te,(.5+Ae+Se)*ne,(.5-ge+be)*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,(.5-ge+Se)*ne,(.5+be)*te,(.5-Ae+Se)*ne,(.5-ge+be)*te,(.5-ge+Se)*ne,(.5-Ae+be)*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,(.5+Se)*ne,(.5+ge+be)*te,(.5-ge+Se)*ne,(.5+Ae+be)*te,(.5-Ae+Se)*ne,(.5+ge+be)*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,.4*ne,.6*te,(.5+Ae+Se)*ne,(.5+ge+be)*te,(.5+ge+Se)*ne,(.5+Ae+be)*te).close()),he.setSpots(.06,.33,.93,.68),he}),go.Shape.defineFigureGenerator("YinYang",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(ne*.5,0,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Arc,270,180,ne*.5,ne*.5,ne*.5,ne*.5)),se.add(new go.PathSegment(go.PathSegment.Arc,90,-180,ne*.5,ne*.75,ne*.25,ne*.25)),se.add(new go.PathSegment(go.PathSegment.Arc,90,180,ne*.5,ne*.25,ne*.25,ne*.25));var ge=.1,Se=.5,be=.25;return se.add(new go.PathSegment(go.PathSegment.Move,(Se+ge)*ne,be*te)),se.add(new go.PathSegment(go.PathSegment.Arc,0,-360,ne*Se,te*be,ge*ne,ge*ne).close()),se=new go.PathFigure(ne*.5,0,!1),he.add(se),se.add(new go.PathSegment(go.PathSegment.Arc,270,-180,ne*.5,ne*.5,ne*.5,ne*.5)),be=.75,se=new go.PathFigure((Se+ge)*ne,be*te,!0),he.add(se),se.add(new go.PathSegment(go.PathSegment.Arc,0,360,ne*Se,te*be,ge*ne,ge*ne).close()),he.defaultStretch=go.GraphObject.Uniform,he}),go.Shape.defineFigureGenerator("Peace",function(Fe,ne,te){var he=.8535533905932737,se=.5*ne,ge=.5*te;return new go.Geometry().add(new go.PathFigure(se,0,!1).add(new go.PathSegment(go.PathSegment.Arc,270,360,se,ge,se,ge)).add(new go.PathSegment(go.PathSegment.Line,se,te)).add(new go.PathSegment(go.PathSegment.Move,se,ge)).add(new go.PathSegment(go.PathSegment.Line,(1-he)*ne,he*te)).add(new go.PathSegment(go.PathSegment.Move,se,ge)).add(new go.PathSegment(go.PathSegment.Line,he*ne,he*te)))}),go.Shape.defineFigureGenerator("NotAllowed",function(Fe,ne,te){var he=new go.Geometry,se=Ge*.5,ge=.5,Se=.5,be=.5,Ae=new go.PathFigure(Se*ne,(be-ge)*te);he.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(Se-ge)*ne,be*te,(Se-se)*ne,(be-ge)*te,(Se-ge)*ne,(be-se)*te)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,Se*ne,(be+ge)*te,(Se-ge)*ne,(be+se)*te,(Se-se)*ne,(be+ge)*te)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(Se+ge)*ne,be*te,(Se+se)*ne,(be+ge)*te,(Se+ge)*ne,(be+se)*te)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,Se*ne,(be-ge)*te,(Se+ge)*ne,(be-se)*te,(Se+se)*ne,(be-ge)*te)),ge=.4,se=Ge*.4;var Le=ce(),je=ce(),$e=ce(),qe=ce();Me(Se,be-ge,Se+se,be-ge,Se+ge,be-se,Se+ge,be,.42,Le,je,$e,qe,qe);var nt=ce(),dt=ce(),it=ce();Me(Se,be-ge,Se+se,be-ge,Se+ge,be-se,Se+ge,be,.58,qe,qe,it,nt,dt);var bt=ce(),It=ce(),Ht=ce();Me(Se,be+ge,Se-se,be+ge,Se-ge,be+se,Se-ge,be,.42,bt,It,Ht,qe,qe);var ln=ce(),un=ce(),Qt=ce();return Me(Se,be+ge,Se-se,be+ge,Se-ge,be+se,Se-ge,be,.58,qe,qe,Qt,ln,un),Ae.add(new go.PathSegment(go.PathSegment.Move,Qt.x*ne,Qt.y*te)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(Se-ge)*ne,be*te,ln.x*ne,ln.y*te,un.x*ne,un.y*te)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,Se*ne,(be-ge)*te,(Se-ge)*ne,(be-se)*te,(Se-se)*ne,(be-ge)*te)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,$e.x*ne,$e.y*te,Le.x*ne,Le.y*te,je.x*ne,je.y*te)),Ae.add(new go.PathSegment(go.PathSegment.Line,Qt.x*ne,Qt.y*te).close()),Ae.add(new go.PathSegment(go.PathSegment.Move,Ht.x*ne,Ht.y*te)),Ae.add(new go.PathSegment(go.PathSegment.Line,it.x*ne,it.y*te)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(Se+ge)*ne,be*te,nt.x*ne,nt.y*te,dt.x*ne,dt.y*te)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,Se*ne,(be+ge)*te,(Se+ge)*ne,(be+se)*te,(Se+se)*ne,(be+ge)*te)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,Ht.x*ne,Ht.y*te,bt.x*ne,bt.y*te,It.x*ne,It.y*te).close()),Pe(Le),Pe(je),Pe($e),Pe(qe),Pe(nt),Pe(dt),Pe(it),Pe(bt),Pe(It),Pe(Ht),Pe(ln),Pe(un),Pe(Qt),he.defaultStretch=go.GraphObject.Uniform,he}),go.Shape.defineFigureGenerator("Fragile",function(Fe,ne,te){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.25*ne,0)).add(new go.PathSegment(go.PathSegment.Line,.2*ne,.15*te)).add(new go.PathSegment(go.PathSegment.Line,.3*ne,.25*te)).add(new go.PathSegment(go.PathSegment.Line,.29*ne,.33*te)).add(new go.PathSegment(go.PathSegment.Line,.35*ne,.25*te)).add(new go.PathSegment(go.PathSegment.Line,.3*ne,.15*te)).add(new go.PathSegment(go.PathSegment.Line,.4*ne,0)).add(new go.PathSegment(go.PathSegment.Line,ne,0)).add(new go.PathSegment(go.PathSegment.Bezier,.55*ne,.5*te,ne,.25*te,.75*ne,.5*te)).add(new go.PathSegment(go.PathSegment.Line,.55*ne,.9*te)).add(new go.PathSegment(go.PathSegment.Line,.7*ne,.9*te)).add(new go.PathSegment(go.PathSegment.Line,.7*ne,te)).add(new go.PathSegment(go.PathSegment.Line,.3*ne,te)).add(new go.PathSegment(go.PathSegment.Line,.3*ne,.9*te)).add(new go.PathSegment(go.PathSegment.Line,.45*ne,.9*te)).add(new go.PathSegment(go.PathSegment.Line,.45*ne,.5*te)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*ne,.5*te,0,.25*te).close()))}),go.Shape.setFigureParameter("HourGlass",0,new ze("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(Fe,ne,te){var he=Fe?Fe.parameter1:NaN;(isNaN(he)||he<0)&&(he=30),he>ne&&(he=ne);var se=(ne-he)/2,ge=se+he;return new go.Geometry().add(new go.PathFigure(ge,.5*te).add(new go.PathSegment(go.PathSegment.Line,ne,te)).add(new go.PathSegment(go.PathSegment.Line,0,te)).add(new go.PathSegment(go.PathSegment.Line,se,.5*te)).add(new go.PathSegment(go.PathSegment.Line,0,0)).add(new go.PathSegment(go.PathSegment.Line,ne,0).close()))}),go.Shape.defineFigureGenerator("Lightning",function(Fe,ne,te){return new go.Geometry().add(new go.PathFigure(0,.55*te).add(new go.PathSegment(go.PathSegment.Line,.6*ne,0)).add(new go.PathSegment(go.PathSegment.Line,.3*ne,.45*te)).add(new go.PathSegment(go.PathSegment.Line,ne,.45*te)).add(new go.PathSegment(go.PathSegment.Line,.4*ne,te)).add(new go.PathSegment(go.PathSegment.Line,.7*ne,.55*te).close()))}),go.Shape.defineFigureGenerator("GenderMale",function(Fe,ne,te){var he=new go.Geometry,se=Ge*.4,ge=.4,Se=.5,be=.5,Ae=ce(),Le=ce(),je=ce(),$e=ce(),qe=new go.PathFigure((Se-ge)*ne,be*te,!1);he.add(qe),qe.add(new go.PathSegment(go.PathSegment.Bezier,Se*ne,(be-ge)*te,(Se-ge)*ne,(be-se)*te,(Se-se)*ne,(be-ge)*te)),Me(Se,be-ge,Se+se,be-ge,Se+ge,be-se,Se+ge,be,.44,je,$e,Le,Ae,Ae),qe.add(new go.PathSegment(go.PathSegment.Bezier,Le.x*ne,Le.y*te,je.x*ne,je.y*te,$e.x*ne,$e.y*te));var nt=ue(Le.x,Le.y);Me(Se,be-ge,Se+se,be-ge,Se+ge,be-se,Se+ge,be,.56,Ae,Ae,Le,je,$e);var dt=ue(Le.x,Le.y);qe.add(new go.PathSegment(go.PathSegment.Line,(nt.x*.1+.95*.9)*ne,nt.y*.1*te)),qe.add(new go.PathSegment(go.PathSegment.Line,.85*ne,nt.y*.1*te)),qe.add(new go.PathSegment(go.PathSegment.Line,.85*ne,0)),qe.add(new go.PathSegment(go.PathSegment.Line,ne,0)),qe.add(new go.PathSegment(go.PathSegment.Line,ne,.15*te)),qe.add(new go.PathSegment(go.PathSegment.Line,(dt.x*.1+.9)*ne,.15*te)),qe.add(new go.PathSegment(go.PathSegment.Line,(dt.x*.1+.9)*ne,(dt.y*.1+.05*.9)*te)),qe.add(new go.PathSegment(go.PathSegment.Line,dt.x*ne,dt.y*te)),qe.add(new go.PathSegment(go.PathSegment.Bezier,(Se+ge)*ne,be*te,je.x*ne,je.y*te,$e.x*ne,$e.y*te)),qe.add(new go.PathSegment(go.PathSegment.Bezier,Se*ne,(be+ge)*te,(Se+ge)*ne,(be+se)*te,(Se+se)*ne,(be+ge)*te)),qe.add(new go.PathSegment(go.PathSegment.Bezier,(Se-ge)*ne,be*te,(Se-se)*ne,(be+ge)*te,(Se-ge)*ne,(be+se)*te)),ge=.35,se=Ge*.35;var it=new go.PathFigure(Se*ne,(be-ge)*te,!1);he.add(it),it.add(new go.PathSegment(go.PathSegment.Bezier,(Se-ge)*ne,be*te,(Se-se)*ne,(be-ge)*te,(Se-ge)*ne,(be-se)*te)),it.add(new go.PathSegment(go.PathSegment.Bezier,Se*ne,(be+ge)*te,(Se-ge)*ne,(be+se)*te,(Se-se)*ne,(be+ge)*te)),it.add(new go.PathSegment(go.PathSegment.Bezier,(Se+ge)*ne,be*te,(Se+se)*ne,(be+ge)*te,(Se+ge)*ne,(be+se)*te)),it.add(new go.PathSegment(go.PathSegment.Bezier,Se*ne,(be-ge)*te,(Se+ge)*ne,(be-se)*te,(Se+se)*ne,(be-ge)*te));var bt=new go.PathFigure((Se-ge)*ne,be*te,!1);return he.add(bt),Pe(Ae),Pe(Le),Pe(je),Pe($e),Pe(nt),Pe(dt),he.spot1=new go.Spot(.202,.257),he.spot2=new go.Spot(.792,.739),he.defaultStretch=go.GraphObject.Uniform,he}),go.Shape.defineFigureGenerator("GenderFemale",function(Fe,ne,te){var he=new go.Geometry,se=.375,ge=0,Se=-.125,be=se*Ge,Ae=new go.PathFigure((.525+ge)*ne,(.5+se+Se)*te,!1);he.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+se+ge)*ne,(.5+Se)*te,(.5+be+ge)*ne,(.5+se+Se)*te,(.5+se+ge)*ne,(.5+be+Se)*te)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ge)*ne,(.5-se+Se)*te,(1-.5+se+ge)*ne,(.5-be+Se)*te,(.5+be+ge)*ne,(.5-se+Se)*te)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(.5-se+ge)*ne,(.5+Se)*te,(.5-be+ge)*ne,(.5-se+Se)*te,(.5-se+ge)*ne,(.5-be+Se)*te)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(.475+ge)*ne,(.5+se+Se)*te,(.5-se+ge)*ne,(.5+be+Se)*te,(.5-be+ge)*ne,(.5+se+Se)*te)),Ae.add(new go.PathSegment(go.PathSegment.Line,.475*ne,.85*te)),Ae.add(new go.PathSegment(go.PathSegment.Line,.425*ne,.85*te)),Ae.add(new go.PathSegment(go.PathSegment.Line,.425*ne,.9*te)),Ae.add(new go.PathSegment(go.PathSegment.Line,.475*ne,.9*te)),Ae.add(new go.PathSegment(go.PathSegment.Line,.475*ne,te)),Ae.add(new go.PathSegment(go.PathSegment.Line,.525*ne,te)),Ae.add(new go.PathSegment(go.PathSegment.Line,.525*ne,.9*te)),Ae.add(new go.PathSegment(go.PathSegment.Line,.575*ne,.9*te)),Ae.add(new go.PathSegment(go.PathSegment.Line,.575*ne,.85*te)),Ae.add(new go.PathSegment(go.PathSegment.Line,.525*ne,.85*te).close()),se=.325,ge=0,Se=-.125,be=se*Ge;var Ae=new go.PathFigure((1-.5+se+ge)*ne,(.5+Se)*te,!1);he.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ge)*ne,(.5+se+Se)*te,(.5+se+ge)*ne,(.5+be+Se)*te,(.5+be+ge)*ne,(.5+se+Se)*te)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(.5-se+ge)*ne,(.5+Se)*te,(.5-be+ge)*ne,(.5+se+Se)*te,(.5-se+ge)*ne,(.5+be+Se)*te)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ge)*ne,(.5-se+Se)*te,(.5-se+ge)*ne,(.5-be+Se)*te,(.5-be+ge)*ne,(.5-se+Se)*te)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+se+ge)*ne,(.5+Se)*te,(.5+be+ge)*ne,(.5-se+Se)*te,(1-.5+se+ge)*ne,(.5-be+Se)*te));var Ae=new go.PathFigure((.525+ge)*ne,(.5+se+Se)*te,!1);return he.add(Ae),he.spot1=new go.Spot(.232,.136),he.spot2=new go.Spot(.682,.611),he.defaultStretch=go.GraphObject.Uniform,he}),go.Shape.defineFigureGenerator("LogicImplies",function(Fe,ne,te){var he=Fe?Fe.parameter1:NaN;return isNaN(he)&&(he=.2),new go.Geometry().add(new go.PathFigure((1-he)*ne,0,!1).add(new go.PathSegment(go.PathSegment.Line,ne,.5*te)).add(new go.PathSegment(go.PathSegment.Line,(1-he)*ne,te)).add(new go.PathSegment(go.PathSegment.Move,0,.5*te)).add(new go.PathSegment(go.PathSegment.Line,ne,.5*te))).setSpots(0,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicIff",function(Fe,ne,te){var he=Fe?Fe.parameter1:NaN;return isNaN(he)&&(he=.2),new go.Geometry().add(new go.PathFigure((1-he)*ne,0,!1).add(new go.PathSegment(go.PathSegment.Line,ne,.5*te)).add(new go.PathSegment(go.PathSegment.Line,(1-he)*ne,te)).add(new go.PathSegment(go.PathSegment.Move,0,.5*te)).add(new go.PathSegment(go.PathSegment.Line,ne,.5*te)).add(new go.PathSegment(go.PathSegment.Move,he*ne,0)).add(new go.PathSegment(go.PathSegment.Line,0,.5*te)).add(new go.PathSegment(go.PathSegment.Line,he*ne,te))).setSpots(.2,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicNot",function(Fe,ne,te){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,ne,0)).add(new go.PathSegment(go.PathSegment.Line,ne,te)))}),go.Shape.defineFigureGenerator("LogicAnd",function(Fe,ne,te){return new go.Geometry().add(new go.PathFigure(0,te,!1).add(new go.PathSegment(go.PathSegment.Line,.5*ne,0)).add(new go.PathSegment(go.PathSegment.Line,ne,te))).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("LogicOr",function(Fe,ne,te){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*ne,te)).add(new go.PathSegment(go.PathSegment.Line,ne,0))).setSpots(.219,0,.78,.409)}),go.Shape.defineFigureGenerator("LogicXor",function(Fe,ne,te){var he=new go.Geometry().add(new go.PathFigure(.5*ne,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*ne,te)).add(new go.PathSegment(go.PathSegment.Move,0,.5*te)).add(new go.PathSegment(go.PathSegment.Line,ne,.5*te)).add(new go.PathSegment(go.PathSegment.Arc,0,360,.5*ne,.5*te,.5*ne,.5*te)));return he.defaultStretch=go.GraphObject.Uniform,he}),go.Shape.defineFigureGenerator("LogicTruth",function(Fe,ne,te){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,ne,0)).add(new go.PathSegment(go.PathSegment.Move,.5*ne,0)).add(new go.PathSegment(go.PathSegment.Line,.5*ne,te)))}),go.Shape.defineFigureGenerator("LogicFalsity",function(Fe,ne,te){return new go.Geometry().add(new go.PathFigure(0,te,!1).add(new go.PathSegment(go.PathSegment.Line,ne,te)).add(new go.PathSegment(go.PathSegment.Move,.5*ne,te)).add(new go.PathSegment(go.PathSegment.Line,.5*ne,0)))}),go.Shape.defineFigureGenerator("LogicThereExists",function(Fe,ne,te){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,ne,0)).add(new go.PathSegment(go.PathSegment.Line,ne,.5*te)).add(new go.PathSegment(go.PathSegment.Line,0,.5*te)).add(new go.PathSegment(go.PathSegment.Move,ne,.5*te)).add(new go.PathSegment(go.PathSegment.Line,ne,te)).add(new go.PathSegment(go.PathSegment.Line,0,te)))}),go.Shape.defineFigureGenerator("LogicForAll",function(Fe,ne,te){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*ne,te)).add(new go.PathSegment(go.PathSegment.Line,ne,0)).add(new go.PathSegment(go.PathSegment.Move,.25*ne,.5*te)).add(new go.PathSegment(go.PathSegment.Line,.75*ne,.5*te))).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("LogicIsDefinedAs",function(Fe,ne,te){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,ne,0)).add(new go.PathSegment(go.PathSegment.Move,0,.5*te)).add(new go.PathSegment(go.PathSegment.Line,ne,.5*te)).add(new go.PathSegment(go.PathSegment.Move,0,te)).add(new go.PathSegment(go.PathSegment.Line,ne,te))).setSpots(.01,.01,.99,.49)}),go.Shape.defineFigureGenerator("LogicIntersect",function(Fe,ne,te){var he=.5;return new go.Geometry().add(new go.PathFigure(0,te,!1).add(new go.PathSegment(go.PathSegment.Line,0,he*te)).add(new go.PathSegment(go.PathSegment.Arc,180,180,he*ne,he*te,he*ne,he*te)).add(new go.PathSegment(go.PathSegment.Line,ne,te))).setSpots(0,.5,1,1)}),go.Shape.defineFigureGenerator("LogicUnion",function(Fe,ne,te){var he=.5;return new go.Geometry().add(new go.PathFigure(ne,0,!1).add(new go.PathSegment(go.PathSegment.Line,ne,he*te)).add(new go.PathSegment(go.PathSegment.Arc,0,180,he*ne,he*te,he*ne,he*te)).add(new go.PathSegment(go.PathSegment.Line,0,0))).setSpots(0,0,1,.5)}),go.Shape.setFigureParameter("Arrow",0,new ze("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new ze("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(Fe,ne,te){var he=Fe?Fe.parameter1:NaN;isNaN(he)&&(he=.3);var se=Fe?Fe.parameter2:NaN;isNaN(se)&&(se=.3);var ge=(1-he)*ne,Se=(.5-se/2)*te,be=(.5+se/2)*te,Ae=new go.Geometry,Le=new go.PathFigure(0,Se,!0);Ae.add(Le),Le.add(new go.PathSegment(go.PathSegment.Line,ge,Se)),Le.add(new go.PathSegment(go.PathSegment.Line,ge,0)),Le.add(new go.PathSegment(go.PathSegment.Line,ne,.5*te)),Le.add(new go.PathSegment(go.PathSegment.Line,ge,te)),Le.add(new go.PathSegment(go.PathSegment.Line,ge,be)),Le.add(new go.PathSegment(go.PathSegment.Line,0,be).close()),Ae.spot1=new go.Spot(0,Se/te);var je=Re(0,be/te,1,be/te,ge/ne,1,1,.5,ce());return Ae.spot2=new go.Spot(je.x,je.y),Pe(je),Ae}),go.Shape.setFigureParameter("Arrow2",0,new ze("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new ze("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(Fe,ne,te){var he=Fe?Fe.parameter1:NaN;isNaN(he)&&(he=30),he>ne&&(he=ne);var se=Fe?Fe.parameter2:NaN;isNaN(se)&&(se=30),se=Math.min(se,te/2);var ge=ne-he,Se=(te-se)/2,be=Se+se,Ae=new go.Geometry,Le=new go.PathFigure(0,Se,!0);Ae.add(Le),Le.add(new go.PathSegment(go.PathSegment.Line,ge,Se)),Le.add(new go.PathSegment(go.PathSegment.Line,ge,0)),Le.add(new go.PathSegment(go.PathSegment.Line,ne,.5*te)),Le.add(new go.PathSegment(go.PathSegment.Line,ge,te)),Le.add(new go.PathSegment(go.PathSegment.Line,ge,be)),Le.add(new go.PathSegment(go.PathSegment.Line,0,be).close()),Ae.spot1=new go.Spot(0,Se/te);var je=Re(0,be/te,1,be/te,ge/ne,1,1,.5,ce());return Ae.spot2=new go.Spot(je.x,je.y),Pe(je),Ae}),go.Shape.defineFigureGenerator("Chevron",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(0,0,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.5*te)),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,0,te)),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.5*te).close()),he}),go.Shape.defineFigureGenerator("DoubleArrow",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(0,0,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.3*ne,.214*te)),se.add(new go.PathSegment(go.PathSegment.Line,.3*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,1*ne,.5*te)),se.add(new go.PathSegment(go.PathSegment.Line,.3*ne,1*te)),se.add(new go.PathSegment(go.PathSegment.Line,.3*ne,.786*te)),se.add(new go.PathSegment(go.PathSegment.Line,0,1*te).close()),he}),go.Shape.setFigureParameter("DoubleEndArrow",0,new ze("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(Fe,ne,te){var he=Fe?Fe.parameter1:NaN;isNaN(he)&&(he=.3);var se=(.5-he/2)*te,ge=(.5+he/2)*te,Se=new go.Geometry,be=new go.PathFigure(ne,.5*te,!0);Se.add(be),be.add(new go.PathSegment(go.PathSegment.Line,.7*ne,te)),be.add(new go.PathSegment(go.PathSegment.Line,.7*ne,ge)),be.add(new go.PathSegment(go.PathSegment.Line,.3*ne,ge)),be.add(new go.PathSegment(go.PathSegment.Line,.3*ne,te)),be.add(new go.PathSegment(go.PathSegment.Line,0,.5*te)),be.add(new go.PathSegment(go.PathSegment.Line,.3*ne,0)),be.add(new go.PathSegment(go.PathSegment.Line,.3*ne,se)),be.add(new go.PathSegment(go.PathSegment.Line,.7*ne,se)),be.add(new go.PathSegment(go.PathSegment.Line,.7*ne,0).close());var Ae=Re(0,.5,.3,0,0,se/te,.1,se/te,ce());return Se.spot1=new go.Spot(Ae.x,Ae.y),Ae=Re(.7,1,1,.5,0,ge/te,1,ge/te,Ae),Se.spot2=new go.Spot(Ae.x,Ae.y),Pe(Ae),Se}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new ze("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new ze("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(Fe,ne,te){var he=Fe?Fe.parameter1:NaN;isNaN(he)&&(he=40);var se=Fe?Fe.parameter2:NaN;isNaN(se)&&(se=100);var ge=(te-he)/2,Se=ge+he,be=(te-se)/2,Ae=be+se;(he>te||se>te)&&(se>he?(he=he*te/se,ge=(te-he)/2,Se=ge+he,be=0,Ae=te):(ge=0,Se=te,be=0,Ae=te));var Le=new go.Geometry,je=new go.PathFigure(ne,.5*te,!0);Le.add(je),je.add(new go.PathSegment(go.PathSegment.Line,.7*ne,Ae)),je.add(new go.PathSegment(go.PathSegment.Line,.7*ne,Se)),je.add(new go.PathSegment(go.PathSegment.Line,.3*ne,Se)),je.add(new go.PathSegment(go.PathSegment.Line,.3*ne,Ae)),je.add(new go.PathSegment(go.PathSegment.Line,0,.5*te)),je.add(new go.PathSegment(go.PathSegment.Line,.3*ne,be)),je.add(new go.PathSegment(go.PathSegment.Line,.3*ne,ge)),je.add(new go.PathSegment(go.PathSegment.Line,.7*ne,ge)),je.add(new go.PathSegment(go.PathSegment.Line,.7*ne,be).close());var $e=Re(0,.5,.3,be/te,0,ge/te,1,ge/te,ce());return Le.spot1=new go.Spot($e.x,$e.y),$e=Re(.7,Ae/te,1,.5,0,Se/te,1,Se/te,$e),Le.spot2=new go.Spot($e.x,$e.y),Pe($e),Le}),go.Shape.setFigureParameter("IBeamArrow",0,new ze("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(Fe,ne,te){var he=Fe?Fe.parameter1:NaN;isNaN(he)&&(he=.3);var se=(.5-he/2)*te,ge=(.5+he/2)*te,Se=new go.Geometry,be=new go.PathFigure(ne,.5*te,!0);Se.add(be),be.add(new go.PathSegment(go.PathSegment.Line,.7*ne,te)),be.add(new go.PathSegment(go.PathSegment.Line,.7*ne,ge)),be.add(new go.PathSegment(go.PathSegment.Line,.2*ne,ge)),be.add(new go.PathSegment(go.PathSegment.Line,.2*ne,te)),be.add(new go.PathSegment(go.PathSegment.Line,0,te)),be.add(new go.PathSegment(go.PathSegment.Line,0,0)),be.add(new go.PathSegment(go.PathSegment.Line,.2*ne,0)),be.add(new go.PathSegment(go.PathSegment.Line,.2*ne,se)),be.add(new go.PathSegment(go.PathSegment.Line,.7*ne,se)),be.add(new go.PathSegment(go.PathSegment.Line,.7*ne,0).close()),Se.spot1=new go.Spot(0,se/te);var Ae=Re(.7,1,1,.5,0,ge/te,1,ge/te,ce());return Se.spot2=new go.Spot(Ae.x,Ae.y),Pe(Ae),Se}),go.Shape.setFigureParameter("IBeamArrow2",0,new ze("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new ze("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(Fe,ne,te){var he=Fe?Fe.parameter1:NaN;isNaN(he)&&(he=40);var se=Fe?Fe.parameter2:NaN;isNaN(se)&&(se=100);var ge=(te-he)/2,Se=ge+he,be=(te-se)/2,Ae=be+se;(he>te||se>te)&&(se>he?(he=he*te/se,ge=(te-he)/2,Se=ge+he,be=0,Ae=te):(ge=0,Se=te,be=0,Ae=te));var Le=new go.Geometry,je=new go.PathFigure(ne,.5*te,!0);Le.add(je),je.add(new go.PathSegment(go.PathSegment.Line,.7*ne,Ae)),je.add(new go.PathSegment(go.PathSegment.Line,.7*ne,Se)),je.add(new go.PathSegment(go.PathSegment.Line,.2*ne,Se)),je.add(new go.PathSegment(go.PathSegment.Line,.2*ne,Ae)),je.add(new go.PathSegment(go.PathSegment.Line,0,Ae)),je.add(new go.PathSegment(go.PathSegment.Line,0,be)),je.add(new go.PathSegment(go.PathSegment.Line,.2*ne,be)),je.add(new go.PathSegment(go.PathSegment.Line,.2*ne,ge)),je.add(new go.PathSegment(go.PathSegment.Line,.7*ne,ge)),je.add(new go.PathSegment(go.PathSegment.Line,.7*ne,be).close()),Le.spot1=new go.Spot(0,ge/te);var $e=Re(.7,Ae/te,1,.5,0,Se/te,1,Se/te,ce());return Le.spot2=new go.Spot($e.x,$e.y),Pe($e),Le}),go.Shape.setFigureParameter("Pointer",0,new ze("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(Fe,ne,te){var he=Fe?Fe.parameter1:NaN;isNaN(he)&&(he=.1);var se=new go.Geometry,ge=new go.PathFigure(ne,.5*te,!0);se.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,0,te)),ge.add(new go.PathSegment(go.PathSegment.Line,he*ne,.5*te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,0).close()),se.spot1=new go.Spot(he,.35);var Se=Re(.2,.65,1,.65,0,1,1,.5,ce());return se.spot2=new go.Spot(Se.x,Se.y),Pe(Se),se}),go.Shape.setFigureParameter("RoundedPointer",0,new ze("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(Fe,ne,te){var he=Fe?Fe.parameter1:NaN;isNaN(he)&&(he=.3);var se=new go.Geometry,ge=new go.PathFigure(ne,.5*te,!0);se.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,0,te)),ge.add(new go.PathSegment(go.PathSegment.Bezier,0,0,he*ne,.75*te,he*ne,.25*te).close()),se.spot1=new go.Spot(he,.35);var Se=Re(0,.65,1,.65,0,1,1,.5,ce());return se.spot2=new go.Spot(Se.x,Se.y),Pe(Se),se}),go.Shape.setFigureParameter("SplitEndArrow",0,new ze("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(Fe,ne,te){var he=Fe?Fe.parameter1:NaN;isNaN(he)&&(he=.4);var se=(.5-he/2)*te,ge=(.5+he/2)*te,Se=new go.Geometry,be=new go.PathFigure(ne,.5*te,!0);Se.add(be),be.add(new go.PathSegment(go.PathSegment.Line,.7*ne,te)),be.add(new go.PathSegment(go.PathSegment.Line,.7*ne,ge)),be.add(new go.PathSegment(go.PathSegment.Line,0,ge)),be.add(new go.PathSegment(go.PathSegment.Line,.2*ne,.5*te)),be.add(new go.PathSegment(go.PathSegment.Line,0,se)),be.add(new go.PathSegment(go.PathSegment.Line,.7*ne,se)),be.add(new go.PathSegment(go.PathSegment.Line,.7*ne,0).close()),Se.spot1=new go.Spot(.2,.3);var Ae=Re(.7,1,1,.5,0,ge/te,1,ge/te,ce());return Se.spot2=new go.Spot(Ae.x,Ae.y),Pe(Ae),Se}),go.Shape.setFigureParameter("SplitEndArrow2",0,new ze("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(Fe,ne,te){var he=Fe?Fe.parameter1:NaN;isNaN(he)&&(he=50);var se=(te-he)/2,ge=se+he;he>te&&(se=0,ge=te);var Se=new go.Geometry,be=new go.PathFigure(ne,.5*te,!0);Se.add(be),be.add(new go.PathSegment(go.PathSegment.Line,.7*ne,te)),be.add(new go.PathSegment(go.PathSegment.Line,.7*ne,ge)),be.add(new go.PathSegment(go.PathSegment.Line,0,ge)),be.add(new go.PathSegment(go.PathSegment.Line,.2*ne,.5*te)),be.add(new go.PathSegment(go.PathSegment.Line,0,se)),be.add(new go.PathSegment(go.PathSegment.Line,.7*ne,se)),be.add(new go.PathSegment(go.PathSegment.Line,.7*ne,0).close()),Se.spot1=new go.Spot(.2,se/te);var Ae=Re(.7,1,1,.5,0,ge/te,1,ge/te,ce());return Se.spot2=new go.Spot(Ae.x,Ae.y),Pe(Ae),Se}),go.Shape.setFigureParameter("SquareArrow",0,new ze("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(Fe,ne,te){var he=Fe?Fe.parameter1:NaN;isNaN(he)&&(he=.7);var se=new go.Geometry,ge=new go.PathFigure(ne,.5*te,!0);return se.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,he*ne,te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,0)),ge.add(new go.PathSegment(go.PathSegment.Line,he*ne,0).close()),se.spot1=go.Spot.TopLeft,se.spot2=new go.Spot(he,1),se}),go.Shape.defineFigureGenerator("Cone1",function(Fe,ne,te){var he=new go.Geometry,se=Ge*.5,ge=Ge*.1,Se=new go.PathFigure(0,.9*te,!0);return he.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,0)),Se.add(new go.PathSegment(go.PathSegment.Line,ne,.9*te)),Se.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,te,ne,(.9+ge)*te,(.5+se)*ne,te)),Se.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*te,(.5-se)*ne,te,0,(.9+ge)*te).close()),he.spot1=new go.Spot(.25,.5),he.spot2=new go.Spot(.75,.97),he}),go.Shape.defineFigureGenerator("Cone2",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(0,.9*te,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,ne,.9*te,(1-.85/.9)*ne,te,.85/.9*ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,0,.9*te).close());var ge=new go.PathFigure(0,.9*te,!1);return he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,ne,.9*te,(1-.85/.9)*ne,.8*te,.85/.9*ne,.8*te)),he.spot1=new go.Spot(.25,.5),he.spot2=new go.Spot(.75,.82),he}),go.Shape.defineFigureGenerator("Cube1",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(.5*ne,te,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,ne,.85*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.15*te)),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,0,.15*te)),se.add(new go.PathSegment(go.PathSegment.Line,0,.85*te).close());var ge=new go.PathFigure(.5*ne,te,!1);return he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.3*te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,.15*te)),ge.add(new go.PathSegment(go.PathSegment.Move,.5*ne,.3*te)),ge.add(new go.PathSegment(go.PathSegment.Line,ne,.15*te)),he.spot1=new go.Spot(0,.3),he.spot2=new go.Spot(.5,.85),he}),go.Shape.defineFigureGenerator("Cube2",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(0,.3*te,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,te)),se.add(new go.PathSegment(go.PathSegment.Line,.7*ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.7*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,.3*ne,0).close());var ge=new go.PathFigure(0,.3*te,!1);return he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.7*ne,.3*te)),ge.add(new go.PathSegment(go.PathSegment.Line,ne,0)),ge.add(new go.PathSegment(go.PathSegment.Move,.7*ne,.3*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.7*ne,te)),he.spot1=new go.Spot(0,.3),he.spot2=new go.Spot(.7,1),he}),go.Shape.defineFigureGenerator("Cylinder1",function(Fe,ne,te){var he=Fe?Fe.parameter1:NaN;isNaN(he)&&(he=5),he=Math.min(he,te/3);var se=new go.Geometry,ge=Ge*.5,Se=new go.PathFigure(0,he,!0);se.add(Se),Se.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,0,0,Ge*he,(.5-ge)*ne,0)),Se.add(new go.PathSegment(go.PathSegment.Bezier,1*ne,he,(.5+ge)*ne,0,1*ne,Ge*he)),Se.add(new go.PathSegment(go.PathSegment.Line,ne,te-he)),Se.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,1*te,1*ne,te-Ge*he,(.5+ge)*ne,1*te)),Se.add(new go.PathSegment(go.PathSegment.Bezier,0,te-he,(.5-ge)*ne,1*te,0,te-Ge*he)),Se.add(new go.PathSegment(go.PathSegment.Line,0,he));var be=new go.PathFigure(ne,he,!1);return se.add(be),be.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,2*he,1*ne,2*he-Ge*he,(.5+ge)*ne,2*he)),be.add(new go.PathSegment(go.PathSegment.Bezier,0,he,(.5-ge)*ne,2*he,0,2*he-Ge*he)),se.spot1=new go.Spot(0,0,0,2*he),se.spot2=new go.Spot(1,1),se}),go.Shape.defineFigureGenerator("Cylinder2",function(Fe,ne,te){var he=Fe?Fe.parameter1:NaN;isNaN(he)&&(he=5),he=Math.min(he,te/3);var se=new go.Geometry,ge=Ge*.5,Se=new go.PathFigure(0,te-he,!0);se.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,0,he)),Se.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,0,0,Ge*he,(.5-ge)*ne,0)),Se.add(new go.PathSegment(go.PathSegment.Bezier,ne,he,(.5+ge)*ne,0,ne,Ge*he)),Se.add(new go.PathSegment(go.PathSegment.Line,ne,te-he)),Se.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,te,ne,te-Ge*he,(.5+ge)*ne,te)),Se.add(new go.PathSegment(go.PathSegment.Bezier,0,te-he,(.5-ge)*ne,te,0,te-Ge*he));var be=new go.PathFigure(0,te-he,!1);return se.add(be),be.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,te-2*he,0,te-he-Ge*he,(.5-ge)*ne,te-2*he)),be.add(new go.PathSegment(go.PathSegment.Bezier,ne,te-he,(.5+ge)*ne,te-2*he,ne,te-he-Ge*he)),se.spot1=new go.Spot(0,0),se.spot2=new go.Spot(1,1,0,-2*he),se}),go.Shape.defineFigureGenerator("Cylinder3",function(Fe,ne,te){var he=Fe?Fe.parameter1:NaN;isNaN(he)&&(he=5),he=Math.min(he,ne/3);var se=new go.Geometry,ge=Ge*.5,Se=new go.PathFigure(he,0,!0);se.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,ne-he,0)),Se.add(new go.PathSegment(go.PathSegment.Bezier,ne,.5*te,ne-Ge*he,0,ne,(.5-ge)*te)),Se.add(new go.PathSegment(go.PathSegment.Bezier,ne-he,te,ne,(.5+ge)*te,ne-Ge*he,te)),Se.add(new go.PathSegment(go.PathSegment.Line,he,te)),Se.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*te,Ge*he,te,0,(.5+ge)*te)),Se.add(new go.PathSegment(go.PathSegment.Bezier,he,0,0,(.5-ge)*te,Ge*he,0));var be=new go.PathFigure(he,0,!1);return se.add(be),be.add(new go.PathSegment(go.PathSegment.Bezier,2*he,.5*te,he+Ge*he,0,2*he,(.5-ge)*te)),be.add(new go.PathSegment(go.PathSegment.Bezier,he,te,2*he,(.5+ge)*te,he+Ge*he,te)),se.spot1=new go.Spot(0,0,2*he,0),se.spot2=new go.Spot(1,1),se}),go.Shape.defineFigureGenerator("Cylinder4",function(Fe,ne,te){var he=Fe?Fe.parameter1:NaN;isNaN(he)&&(he=5),he=Math.min(he,ne/3);var se=new go.Geometry,ge=Ge*.5,Se=new go.PathFigure(ne-he,0,!0);se.add(Se),Se.add(new go.PathSegment(go.PathSegment.Bezier,ne,.5*te,ne-Ge*he,0,ne,(.5-ge)*te)),Se.add(new go.PathSegment(go.PathSegment.Bezier,ne-he,te,ne,(.5+ge)*te,ne-Ge*he,te)),Se.add(new go.PathSegment(go.PathSegment.Line,he,te)),Se.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*te,Ge*he,te,0,(.5+ge)*te)),Se.add(new go.PathSegment(go.PathSegment.Bezier,he,0,0,(.5-ge)*te,Ge*he,0)),Se.add(new go.PathSegment(go.PathSegment.Line,ne-he,0));var be=new go.PathFigure(ne-he,0,!1);return se.add(be),be.add(new go.PathSegment(go.PathSegment.Bezier,ne-2*he,.5*te,ne-he-Ge*he,0,ne-2*he,(.5-ge)*te)),be.add(new go.PathSegment(go.PathSegment.Bezier,ne-he,te,ne-2*he,(.5+ge)*te,ne-he-Ge*he,te)),se.spot1=new go.Spot(0,0),se.spot2=new go.Spot(1,1,-2*he,0),se}),go.Shape.defineFigureGenerator("Prism1",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(.25*ne,.25*te,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.75*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.5*te)),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,0,te).close());var ge=new go.PathFigure(.25*ne,.25*te,!1);return he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.5*ne,te)),he.spot1=new go.Spot(.408,.172),he.spot2=new go.Spot(.833,.662),he}),go.Shape.defineFigureGenerator("Prism2",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(0,.25*te,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.75*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.25*te)),se.add(new go.PathSegment(go.PathSegment.Line,.75*ne,.75*te)),se.add(new go.PathSegment(go.PathSegment.Line,0,te).close());var ge=new go.PathFigure(0,te,!1);return he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.25*ne,.5*te)),ge.add(new go.PathSegment(go.PathSegment.Line,ne,.25*te)),ge.add(new go.PathSegment(go.PathSegment.Move,0,.25*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.25*ne,.5*te)),he.spot1=new go.Spot(.25,.5),he.spot2=new go.Spot(.75,.75),he}),go.Shape.defineFigureGenerator("Pyramid1",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(.5*ne,0,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,ne,.75*te)),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,0,.75*te).close());var ge=new go.PathFigure(.5*ne,0,!1);return he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.5*ne,te)),he.spot1=new go.Spot(.25,.367),he.spot2=new go.Spot(.75,.875),he}),go.Shape.defineFigureGenerator("Pyramid2",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(.5*ne,0,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,ne,.85*te)),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,0,.85*te).close());var ge=new go.PathFigure(.5*ne,0,!1);return he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.7*te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,.85*te)),ge.add(new go.PathSegment(go.PathSegment.Move,.5*ne,.7*te)),ge.add(new go.PathSegment(go.PathSegment.Line,ne,.85*te)),he.spot1=new go.Spot(.25,.367),he.spot2=new go.Spot(.75,.875),he}),go.Shape.defineFigureGenerator("Actor",function(Fe,ne,te){var he=new go.Geometry,se=.2,ge=.1,Se=Ge*se,be=Ge*ge,Ae=.5,Le=.1,je=new go.PathFigure(Ae*ne,(Le+ge)*te,!0);he.add(je),je.add(new go.PathSegment(go.PathSegment.Bezier,(Ae-se)*ne,Le*te,(Ae-Se)*ne,(Le+ge)*te,(Ae-se)*ne,(Le+be)*te)),je.add(new go.PathSegment(go.PathSegment.Bezier,Ae*ne,(Le-ge)*te,(Ae-se)*ne,(Le-be)*te,(Ae-Se)*ne,(Le-ge)*te)),je.add(new go.PathSegment(go.PathSegment.Bezier,(Ae+se)*ne,Le*te,(Ae+Se)*ne,(Le-ge)*te,(Ae+se)*ne,(Le-be)*te)),je.add(new go.PathSegment(go.PathSegment.Bezier,Ae*ne,(Le+ge)*te,(Ae+se)*ne,(Le+be)*te,(Ae+Se)*ne,(Le+ge)*te));var $e=.05,qe=Ge*$e;Ae=.05,Le=.25;var nt=new go.PathFigure(.5*ne,.2*te,!0);return he.add(nt),nt.add(new go.PathSegment(go.PathSegment.Line,.95*ne,.2*te)),Ae=.95,Le=.25,nt.add(new go.PathSegment(go.PathSegment.Bezier,(Ae+$e)*ne,Le*te,(Ae+qe)*ne,(Le-$e)*te,(Ae+$e)*ne,(Le-qe)*te)),nt.add(new go.PathSegment(go.PathSegment.Line,ne,.6*te)),nt.add(new go.PathSegment(go.PathSegment.Line,.85*ne,.6*te)),nt.add(new go.PathSegment(go.PathSegment.Line,.85*ne,.35*te)),$e=.025,qe=Ge*$e,Ae=.825,Le=.35,nt.add(new go.PathSegment(go.PathSegment.Bezier,Ae*ne,(Le-$e)*te,(Ae+$e)*ne,(Le-qe)*te,(Ae+qe)*ne,(Le-$e)*te)),nt.add(new go.PathSegment(go.PathSegment.Bezier,(Ae-$e)*ne,Le*te,(Ae-qe)*ne,(Le-$e)*te,(Ae-$e)*ne,(Le-qe)*te)),nt.add(new go.PathSegment(go.PathSegment.Line,.8*ne,te)),nt.add(new go.PathSegment(go.PathSegment.Line,.55*ne,te)),nt.add(new go.PathSegment(go.PathSegment.Line,.55*ne,.7*te)),$e=.05,qe=Ge*$e,Ae=.5,Le=.7,nt.add(new go.PathSegment(go.PathSegment.Bezier,Ae*ne,(Le-$e)*te,(Ae+$e)*ne,(Le-qe)*te,(Ae+qe)*ne,(Le-$e)*te)),nt.add(new go.PathSegment(go.PathSegment.Bezier,(Ae-$e)*ne,Le*te,(Ae-qe)*ne,(Le-$e)*te,(Ae-$e)*ne,(Le-qe)*te)),nt.add(new go.PathSegment(go.PathSegment.Line,.45*ne,te)),nt.add(new go.PathSegment(go.PathSegment.Line,.2*ne,te)),nt.add(new go.PathSegment(go.PathSegment.Line,.2*ne,.35*te)),$e=.025,qe=Ge*$e,Ae=.175,Le=.35,nt.add(new go.PathSegment(go.PathSegment.Bezier,Ae*ne,(Le-$e)*te,(Ae+$e)*ne,(Le-qe)*te,(Ae+qe)*ne,(Le-$e)*te)),nt.add(new go.PathSegment(go.PathSegment.Bezier,(Ae-$e)*ne,Le*te,(Ae-qe)*ne,(Le-$e)*te,(Ae-$e)*ne,(Le-qe)*te)),nt.add(new go.PathSegment(go.PathSegment.Line,.15*ne,.6*te)),nt.add(new go.PathSegment(go.PathSegment.Line,0,.6*te)),nt.add(new go.PathSegment(go.PathSegment.Line,0,.25*te)),$e=.05,qe=Ge*$e,Ae=.05,Le=.25,nt.add(new go.PathSegment(go.PathSegment.Bezier,Ae*ne,(Le-$e)*te,(Ae-$e)*ne,(Le-qe)*te,(Ae-qe)*ne,(Le-$e)*te)),nt.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.2*te)),he.spot1=new go.Spot(.2,.2),he.spot2=new go.Spot(.8,.65),he}),go.Shape.setFigureParameter("Card",0,new ze("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(Fe,ne,te){var he=Fe?Fe.parameter1:NaN;isNaN(he)&&(he=.2);var se=new go.Geometry,ge=new go.PathFigure(ne,0,!0);return se.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,ne,te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,he*te)),ge.add(new go.PathSegment(go.PathSegment.Line,he*ne,0).close()),se.spot1=new go.Spot(0,he),se.spot2=go.Spot.BottomRight,se}),go.Shape.defineFigureGenerator("Collate",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(.5*ne,.5*te,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,0)),se.add(new go.PathSegment(go.PathSegment.Line,ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.5*te));var ge=new go.PathFigure(.5*ne,.5*te,!0);return he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,ne,te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,te)),ge.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.5*te)),he.spot1=new go.Spot(.25,0),he.spot2=new go.Spot(.75,.25),he}),go.Shape.defineFigureGenerator("CreateRequest",function(Fe,ne,te){var he=new go.Geometry,se=Fe?Fe.parameter1:NaN;isNaN(se)&&(se=.1);var ge=new go.PathFigure(0,0,!0);he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,ne,0)),ge.add(new go.PathSegment(go.PathSegment.Line,ne,te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,te).close());var Se=new go.PathFigure(0,se*te,!1);return he.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,ne,se*te)),Se.add(new go.PathSegment(go.PathSegment.Move,0,(1-se)*te)),Se.add(new go.PathSegment(go.PathSegment.Line,ne,(1-se)*te)),he}),go.Shape.defineFigureGenerator("Database",function(Fe,ne,te){var he=new go.Geometry,se=Ge*.5,ge=Ge*.1,Se=new go.PathFigure(ne,.1*te,!0);he.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,ne,.9*te)),Se.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,te,ne,(.9+ge)*te,(.5+se)*ne,te)),Se.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*te,(.5-se)*ne,te,0,(.9+ge)*te)),Se.add(new go.PathSegment(go.PathSegment.Line,0,.1*te)),Se.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,0,0,(.1-ge)*te,(.5-se)*ne,0)),Se.add(new go.PathSegment(go.PathSegment.Bezier,ne,.1*te,(.5+se)*ne,0,ne,(.1-ge)*te));var be=new go.PathFigure(ne,.1*te,!1);return he.add(be),be.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,.2*te,ne,(.1+ge)*te,(.5+se)*ne,.2*te)),be.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*te,(.5-se)*ne,.2*te,0,(.1+ge)*te)),be.add(new go.PathSegment(go.PathSegment.Move,ne,.2*te)),be.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,.3*te,ne,(.2+ge)*te,(.5+se)*ne,.3*te)),be.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*te,(.5-se)*ne,.3*te,0,(.2+ge)*te)),be.add(new go.PathSegment(go.PathSegment.Move,ne,.3*te)),be.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,.4*te,ne,(.3+ge)*te,(.5+se)*ne,.4*te)),be.add(new go.PathSegment(go.PathSegment.Bezier,0,.3*te,(.5-se)*ne,.4*te,0,(.3+ge)*te)),he.spot1=new go.Spot(0,.4),he.spot2=new go.Spot(1,.9),he}),go.Shape.defineFigureGenerator("DataStorage",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(0,0,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.75*ne,0)),se.add(new go.PathSegment(go.PathSegment.Bezier,.75*ne,te,ne,0,ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,0,te)),se.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*ne,.9*te,.25*ne,.1*te).close()),he.spot1=new go.Spot(.226,0),he.spot2=new go.Spot(.81,1),he}),go.Shape.defineFigureGenerator("DiskStorage",function(Fe,ne,te){var he=new go.Geometry,se=Ge*.5,ge=Ge*.1,Se=new go.PathFigure(ne,.1*te,!0);he.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,ne,.9*te)),Se.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,te,ne,(.9+ge)*te,(.5+se)*ne,te)),Se.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*te,(.5-se)*ne,te,0,(.9+ge)*te)),Se.add(new go.PathSegment(go.PathSegment.Line,0,.1*te)),Se.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,0,0,(.1-ge)*te,(.5-se)*ne,0)),Se.add(new go.PathSegment(go.PathSegment.Bezier,ne,.1*te,(.5+se)*ne,0,ne,(.1-ge)*te));var be=new go.PathFigure(ne,.1*te,!1);return he.add(be),be.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,.2*te,ne,(.1+ge)*te,(.5+se)*ne,.2*te)),be.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*te,(.5-se)*ne,.2*te,0,(.1+ge)*te)),be.add(new go.PathSegment(go.PathSegment.Move,ne,.2*te)),be.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,.3*te,ne,(.2+ge)*te,(.5+se)*ne,.3*te)),be.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*te,(.5-se)*ne,.3*te,0,(.2+ge)*te)),he.spot1=new go.Spot(0,.3),he.spot2=new go.Spot(1,.9),he}),go.Shape.defineFigureGenerator("Display",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(.25*ne,0,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.75*ne,0)),se.add(new go.PathSegment(go.PathSegment.Bezier,.75*ne,te,ne,0,ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,.25*ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,0,.5*te).close()),he.spot1=new go.Spot(.25,0),he.spot2=new go.Spot(.75,1),he}),go.Shape.defineFigureGenerator("DividedEvent",function(Fe,ne,te){var he=new go.Geometry,se=Fe?Fe.parameter1:NaN;isNaN(se)?se=.2:se<.15&&(se=.15);var ge=Ge*.2,Se=new go.PathFigure(0,.2*te,!0);he.add(Se),Se.add(new go.PathSegment(go.PathSegment.Bezier,.2*ne,0,0,(.2-ge)*te,(.2-ge)*ne,0)),Se.add(new go.PathSegment(go.PathSegment.Line,.8*ne,0)),Se.add(new go.PathSegment(go.PathSegment.Bezier,ne,.2*te,(.8+ge)*ne,0,ne,(.2-ge)*te)),Se.add(new go.PathSegment(go.PathSegment.Line,ne,.8*te)),Se.add(new go.PathSegment(go.PathSegment.Bezier,.8*ne,te,ne,(.8+ge)*te,(.8+ge)*ne,te)),Se.add(new go.PathSegment(go.PathSegment.Line,.2*ne,te)),Se.add(new go.PathSegment(go.PathSegment.Bezier,0,.8*te,(.2-ge)*ne,te,0,(.8+ge)*te)),Se.add(new go.PathSegment(go.PathSegment.Line,0,.2*te));var be=new go.PathFigure(0,se*te,!1);return he.add(be),be.add(new go.PathSegment(go.PathSegment.Line,ne,se*te)),he}),go.Shape.defineFigureGenerator("DividedProcess",function(Fe,ne,te){var he=new go.Geometry,se=Fe?Fe.parameter1:NaN;(isNaN(se)||se<.1)&&(se=.1);var ge=new go.PathFigure(0,0,!0);he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,ne,0)),ge.add(new go.PathSegment(go.PathSegment.Line,ne,te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,te).close());var Se=new go.PathFigure(0,se*te,!1);return he.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,ne,se*te)),he}),go.Shape.defineFigureGenerator("Document",function(Fe,ne,te){var he=new go.Geometry;te=te/.8;var se=new go.PathFigure(0,.7*te,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,0)),se.add(new go.PathSegment(go.PathSegment.Line,ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.7*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*te,.5*ne,.4*te,.5*ne,te).close()),he.spot1=go.Spot.TopLeft,he.spot2=new go.Spot(1,.6),he}),go.Shape.defineFigureGenerator("ExternalOrganization",function(Fe,ne,te){var he=new go.Geometry,se=Fe?Fe.parameter1:NaN;(isNaN(se)||se<.2)&&(se=.2);var ge=new go.PathFigure(0,0,!0);he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,ne,0)),ge.add(new go.PathSegment(go.PathSegment.Line,ne,te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,te).close());var Se=new go.PathFigure(se*ne,0,!1);return he.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,0,se*te)),Se.add(new go.PathSegment(go.PathSegment.Move,ne,se*te)),Se.add(new go.PathSegment(go.PathSegment.Line,(1-se)*ne,0)),Se.add(new go.PathSegment(go.PathSegment.Move,0,(1-se)*te)),Se.add(new go.PathSegment(go.PathSegment.Line,se*ne,te)),Se.add(new go.PathSegment(go.PathSegment.Move,(1-se)*ne,te)),Se.add(new go.PathSegment(go.PathSegment.Line,ne,(1-se)*te)),he}),go.Shape.defineFigureGenerator("ExternalProcess",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(.5*ne,0,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,ne,.5*te)),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,0,.5*te).close());var ge=new go.PathFigure(.1*ne,.4*te,!1);return he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.1*ne,.6*te)),ge.add(new go.PathSegment(go.PathSegment.Move,.9*ne,.6*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.9*ne,.4*te)),ge.add(new go.PathSegment(go.PathSegment.Move,.6*ne,.1*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.4*ne,.1*te)),ge.add(new go.PathSegment(go.PathSegment.Move,.4*ne,.9*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.6*ne,.9*te)),he.spot1=new go.Spot(.25,.25),he.spot2=new go.Spot(.75,.75),he}),go.Shape.defineFigureGenerator("File",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(0,0,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.75*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.25*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,0,te).close());var ge=new go.PathFigure(.75*ne,0,!1);return he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.75*ne,.25*te)),ge.add(new go.PathSegment(go.PathSegment.Line,ne,.25*te)),he.spot1=new go.Spot(0,.25),he.spot2=go.Spot.BottomRight,he}),go.Shape.defineFigureGenerator("Interrupt",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(ne,.5*te,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,te)),se.add(new go.PathSegment(go.PathSegment.Line,0,0)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.5*te));var ge=new go.PathFigure(ne,.5*te,!1);he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,ne,te));var Se=new go.PathFigure(ne,.5*te,!1);return he.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,ne,0)),he.spot1=new go.Spot(0,.25),he.spot2=new go.Spot(.5,.75),he}),go.Shape.defineFigureGenerator("InternalStorage",function(Fe,ne,te){var he=new go.Geometry,se=Fe?Fe.parameter1:NaN,ge=Fe?Fe.parameter2:NaN;isNaN(se)&&(se=.1),isNaN(ge)&&(ge=.1);var Se=new go.PathFigure(0,0,!0);he.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,ne,0)),Se.add(new go.PathSegment(go.PathSegment.Line,ne,te)),Se.add(new go.PathSegment(go.PathSegment.Line,0,te).close());var be=new go.PathFigure(se*ne,0,!1);return he.add(be),be.add(new go.PathSegment(go.PathSegment.Line,se*ne,te)),be.add(new go.PathSegment(go.PathSegment.Move,0,ge*te)),be.add(new go.PathSegment(go.PathSegment.Line,ne,ge*te)),he}),go.Shape.defineFigureGenerator("Junction",function(Fe,ne,te){var he=new go.Geometry,se=1/Math.SQRT2,ge=(1-1/Math.SQRT2)/2,Se=Ge*.5,be=.5,Ae=new go.PathFigure(ne,be*te,!0);he.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Bezier,be*ne,te,ne,(be+Se)*te,(be+Se)*ne,te)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,0,be*te,(be-Se)*ne,te,0,(be+Se)*te)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,be*ne,0,0,(be-Se)*te,(be-Se)*ne,0)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,ne,be*te,(be+Se)*ne,0,ne,(be-Se)*te));var Le=new go.PathFigure((ge+se)*ne,(ge+se)*te,!1);return he.add(Le),Le.add(new go.PathSegment(go.PathSegment.Line,ge*ne,ge*te)),Le.add(new go.PathSegment(go.PathSegment.Move,ge*ne,(ge+se)*te)),Le.add(new go.PathSegment(go.PathSegment.Line,(ge+se)*ne,ge*te)),he}),go.Shape.defineFigureGenerator("LinedDocument",function(Fe,ne,te){var he=new go.Geometry;te=te/.8;var se=new go.PathFigure(0,.7*te,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,0)),se.add(new go.PathSegment(go.PathSegment.Line,ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.7*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*te,.5*ne,.4*te,.5*ne,te).close());var ge=new go.PathFigure(.1*ne,0,!1);return he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.1*ne,.75*te)),he.spot1=new go.Spot(.1,0),he.spot2=new go.Spot(1,.6),he}),go.Shape.defineFigureGenerator("LoopLimit",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(0,te,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,.25*te)),se.add(new go.PathSegment(go.PathSegment.Line,.25*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,.75*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.25*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,te).close()),he.spot1=new go.Spot(0,.25),he.spot2=go.Spot.BottomRight,he}),go.Shape.defineFigureGenerator("MagneticTape",function(Fe,ne,te){var he=new go.Geometry,se=Ge*.5,ge=.5,Se=new go.PathFigure(.5*ne,te,!0);return he.add(Se),Se.add(new go.PathSegment(go.PathSegment.Bezier,0,ge*te,(ge-se)*ne,te,0,(ge+se)*te)),Se.add(new go.PathSegment(go.PathSegment.Bezier,ge*ne,0,0,(ge-se)*te,(ge-se)*ne,0)),Se.add(new go.PathSegment(go.PathSegment.Bezier,ne,ge*te,(ge+se)*ne,0,ne,(ge-se)*te)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(ge+.1)*ne,.9*te,ne,(ge+se)*te,(ge+se)*ne,.9*te)),Se.add(new go.PathSegment(go.PathSegment.Line,ne,.9*te)),Se.add(new go.PathSegment(go.PathSegment.Line,ne,te)),Se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,te)),he.spot1=new go.Spot(.15,.15),he.spot2=new go.Spot(.85,.8),he}),go.Shape.defineFigureGenerator("ManualInput",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(ne,0,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,0,te)),se.add(new go.PathSegment(go.PathSegment.Line,0,.25*te).close()),he.spot1=new go.Spot(0,.25),he.spot2=go.Spot.BottomRight,he}),go.Shape.defineFigureGenerator("MessageFromUser",function(Fe,ne,te){var he=new go.Geometry,se=Fe?Fe.parameter1:NaN;isNaN(se)&&(se=.7);var ge=new go.PathFigure(0,0,!0);return he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,ne,0)),ge.add(new go.PathSegment(go.PathSegment.Line,se*ne,.5*te)),ge.add(new go.PathSegment(go.PathSegment.Line,ne,te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,te).close()),he.spot1=go.Spot.TopLeft,he}),go.Shape.defineFigureGenerator("MicroformProcessing",function(Fe,ne,te){var he=new go.Geometry,se=Fe?Fe.parameter1:NaN;isNaN(se)&&(se=.25);var ge=new go.PathFigure(0,0,!0);return he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.5*ne,se*te)),ge.add(new go.PathSegment(go.PathSegment.Line,ne,0)),ge.add(new go.PathSegment(go.PathSegment.Line,ne,te)),ge.add(new go.PathSegment(go.PathSegment.Line,.5*ne,(1-se)*te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,te).close()),he}),go.Shape.defineFigureGenerator("MicroformRecording",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(0,0,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.75*ne,.25*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.15*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.85*te)),se.add(new go.PathSegment(go.PathSegment.Line,.75*ne,.75*te)),se.add(new go.PathSegment(go.PathSegment.Line,0,te).close()),he.spot1=new go.Spot(0,.25),he.spot2=new go.Spot(1,.75),he}),go.Shape.defineFigureGenerator("MultiDocument",function(Fe,ne,te){var he=new go.Geometry;te=te/.8;var se=new go.PathFigure(ne,0,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,ne,.5*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,.9*ne,.44*te,.96*ne,.47*te,.93*ne,.45*te)),se.add(new go.PathSegment(go.PathSegment.Line,.9*ne,.6*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,.8*ne,.54*te,.86*ne,.57*te,.83*ne,.55*te)),se.add(new go.PathSegment(go.PathSegment.Line,.8*ne,.7*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*te,.4*ne,.4*te,.4*ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,0,.2*te)),se.add(new go.PathSegment(go.PathSegment.Line,.1*ne,.2*te)),se.add(new go.PathSegment(go.PathSegment.Line,.1*ne,.1*te)),se.add(new go.PathSegment(go.PathSegment.Line,.2*ne,.1*te)),se.add(new go.PathSegment(go.PathSegment.Line,.2*ne,0).close());var ge=new go.PathFigure(.1*ne,.2*te,!1);return he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.8*ne,.2*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.8*ne,.54*te)),ge.add(new go.PathSegment(go.PathSegment.Move,.2*ne,.1*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.9*ne,.1*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.9*ne,.44*te)),he.spot1=new go.Spot(0,.25),he.spot2=new go.Spot(.8,.77),he}),go.Shape.defineFigureGenerator("MultiProcess",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(.1*ne,.1*te,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.2*ne,.1*te)),se.add(new go.PathSegment(go.PathSegment.Line,.2*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.8*te)),se.add(new go.PathSegment(go.PathSegment.Line,.9*ne,.8*te)),se.add(new go.PathSegment(go.PathSegment.Line,.9*ne,.9*te)),se.add(new go.PathSegment(go.PathSegment.Line,.8*ne,.9*te)),se.add(new go.PathSegment(go.PathSegment.Line,.8*ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,0,te)),se.add(new go.PathSegment(go.PathSegment.Line,0,.2*te)),se.add(new go.PathSegment(go.PathSegment.Line,.1*ne,.2*te).close());var ge=new go.PathFigure(.2*ne,.1*te,!1);return he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.9*ne,.1*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.9*ne,.8*te)),ge.add(new go.PathSegment(go.PathSegment.Move,.1*ne,.2*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.8*ne,.2*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.8*ne,.9*te)),he.spot1=new go.Spot(0,.2),he.spot2=new go.Spot(.8,1),he}),go.Shape.defineFigureGenerator("OfflineStorage",function(Fe,ne,te){var he=new go.Geometry,se=Fe?Fe.parameter1:NaN;isNaN(se)&&(se=.1);var ge=1-se,Se=new go.PathFigure(0,0,!0);he.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,ne,0)),Se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,te).close());var be=new go.PathFigure(.5*se*ne,se*te,!1);return he.add(be),be.add(new go.PathSegment(go.PathSegment.Line,(1-.5*se)*ne,se*te)),he}),go.Shape.defineFigureGenerator("OffPageConnector",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(0,0,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.75*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.5*te)),se.add(new go.PathSegment(go.PathSegment.Line,.75*ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,0,te).close()),he.spot1=go.Spot.TopLeft,he.spot2=new go.Spot(.75,1),he}),go.Shape.defineFigureGenerator("Or",function(Fe,ne,te){var he=new go.Geometry,se=Ge*.5,ge=.5,Se=new go.PathFigure(ne,ge*te,!0);he.add(Se),Se.add(new go.PathSegment(go.PathSegment.Bezier,ge*ne,te,ne,(ge+se)*te,(ge+se)*ne,te)),Se.add(new go.PathSegment(go.PathSegment.Bezier,0,ge*te,(ge-se)*ne,te,0,(ge+se)*te)),Se.add(new go.PathSegment(go.PathSegment.Bezier,ge*ne,0,0,(ge-se)*te,(ge-se)*ne,0)),Se.add(new go.PathSegment(go.PathSegment.Bezier,ne,ge*te,(ge+se)*ne,0,ne,(ge-se)*te));var be=new go.PathFigure(ne,.5*te,!1);return he.add(be),be.add(new go.PathSegment(go.PathSegment.Line,0,.5*te)),be.add(new go.PathSegment(go.PathSegment.Move,.5*ne,te)),be.add(new go.PathSegment(go.PathSegment.Line,.5*ne,0)),he}),go.Shape.defineFigureGenerator("PaperTape",function(Fe,ne,te){var he=new go.Geometry;te=te/.8;var se=new go.PathFigure(0,.7*te,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,.3*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,ne,.3*te,.5*ne,.6*te,.5*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.7*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*te,.5*ne,.4*te,.5*ne,te).close()),he.spot1=new go.Spot(0,.49),he.spot2=new go.Spot(1,.75),he}),go.Shape.defineFigureGenerator("PrimitiveFromCall",function(Fe,ne,te){var he=new go.Geometry,se=Fe?Fe.parameter1:NaN,ge=Fe?Fe.parameter2:NaN;isNaN(se)&&(se=.1),isNaN(ge)&&(ge=.3);var Se=new go.PathFigure(0,0,!0);return he.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,ne,0)),Se.add(new go.PathSegment(go.PathSegment.Line,(1-ge)*ne,.5*te)),Se.add(new go.PathSegment(go.PathSegment.Line,ne,te)),Se.add(new go.PathSegment(go.PathSegment.Line,0,te).close()),he}),go.Shape.defineFigureGenerator("PrimitiveToCall",function(Fe,ne,te){var he=new go.Geometry,se=Fe?Fe.parameter1:NaN,ge=Fe?Fe.parameter2:NaN;isNaN(se)&&(se=.1),isNaN(ge)&&(ge=.3);var Se=new go.PathFigure(0,0,!0);return he.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,(1-ge)*ne,0)),Se.add(new go.PathSegment(go.PathSegment.Line,ne,.5*te)),Se.add(new go.PathSegment(go.PathSegment.Line,(1-ge)*ne,te)),Se.add(new go.PathSegment(go.PathSegment.Line,0,te).close()),he}),go.Shape.defineFigureGenerator("Procedure",function(Fe,ne,te){var he=new go.Geometry,se=Fe?Fe.parameter1:NaN;isNaN(se)&&(se=.1);var ge=new go.PathFigure(0,0,!0);he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,ne,0)),ge.add(new go.PathSegment(go.PathSegment.Line,ne,te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,te).close());var Se=new go.PathFigure((1-se)*ne,0,!1);return he.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,(1-se)*ne,te)),Se.add(new go.PathSegment(go.PathSegment.Move,se*ne,0)),Se.add(new go.PathSegment(go.PathSegment.Line,se*ne,te)),he}),go.Shape.defineFigureGenerator("Process",function(Fe,ne,te){var he=new go.Geometry,se=Fe?Fe.parameter1:NaN;isNaN(se)&&(se=.1);var ge=new go.PathFigure(0,0,!0);he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,ne,0)),ge.add(new go.PathSegment(go.PathSegment.Line,ne,te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,te).close());var Se=new go.PathFigure(se*ne,0,!1);return he.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,se*ne,te)),he.spot2=go.Spot.BottomRight,he}),go.Shape.defineFigureGenerator("Sort",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(.5*ne,0,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,ne,.5*te)),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,0,.5*te).close());var ge=new go.PathFigure(0,.5*te,!1);return he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,ne,.5*te)),he.spot1=new go.Spot(.25,.25),he.spot2=new go.Spot(.75,.5),he}),go.Shape.defineFigureGenerator("Start",function(Fe,ne,te){var he=new go.Geometry,se=Fe?Fe.parameter1:NaN;isNaN(se)&&(se=.25);var ge=new go.PathFigure(se*ne,0,!0);he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*ne,.5*te,.25*ne,.5*te)),ge.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*ne,.5*te,.25*ne,.5*te));var Se=new go.PathFigure(se*ne,0,!1);return he.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,se*ne,te)),Se.add(new go.PathSegment(go.PathSegment.Move,(1-se)*ne,0)),Se.add(new go.PathSegment(go.PathSegment.Line,(1-se)*ne,te)),he.spot1=new go.Spot(se,0),he.spot2=new go.Spot(1-se,1),he}),go.Shape.defineFigureGenerator("Terminator",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(.25*ne,0,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*ne,.5*te,.25*ne,.5*te)),se.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*ne,.5*te,.25*ne,.5*te)),he.spot1=new go.Spot(.23,0),he.spot2=new go.Spot(.77,1),he}),go.Shape.defineFigureGenerator("TransmittalTape",function(Fe,ne,te){var he=new go.Geometry,se=Fe?Fe.parameter1:NaN;isNaN(se)&&(se=.1);var ge=new go.PathFigure(0,0,!0);return he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,ne,0)),ge.add(new go.PathSegment(go.PathSegment.Line,ne,te)),ge.add(new go.PathSegment(go.PathSegment.Line,.75*ne,(1-se)*te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,(1-se)*te).close()),he.spot1=go.Spot.TopLeft,he}),go.Shape.defineFigureGenerator("AndGate",function(Fe,ne,te){var he=new go.Geometry,se=Ge*.5,ge=new go.PathFigure(0,0,!0);return he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.5*ne,0)),ge.add(new go.PathSegment(go.PathSegment.Bezier,ne,.5*te,(.5+se)*ne,0,ne,(.5-se)*te)),ge.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,te,ne,(.5+se)*te,(.5+se)*ne,te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,te).close()),he.spot1=go.Spot.TopLeft,he.spot2=new go.Spot(.55,1),he}),go.Shape.defineFigureGenerator("Buffer",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(0,0,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,ne,.5*te)),se.add(new go.PathSegment(go.PathSegment.Line,0,te).close()),he.spot1=new go.Spot(0,.25),he.spot2=new go.Spot(.5,.75),he}),go.Shape.defineFigureGenerator("Clock",function(Fe,ne,te){var he=new go.Geometry,se=Ge*.5,ge=.5,Se=new go.PathFigure(ne,ge*te,!0);he.add(Se),Se.add(new go.PathSegment(go.PathSegment.Bezier,ge*ne,te,ne,(ge+se)*te,(ge+se)*ne,te)),Se.add(new go.PathSegment(go.PathSegment.Bezier,0,ge*te,(ge-se)*ne,te,0,(ge+se)*te)),Se.add(new go.PathSegment(go.PathSegment.Bezier,ge*ne,0,0,(ge-se)*te,(ge-se)*ne,0)),Se.add(new go.PathSegment(go.PathSegment.Bezier,ne,ge*te,(ge+se)*ne,0,ne,(ge-se)*te));var be=new go.PathFigure(ne,ge*te,!1);he.add(be),be.add(new go.PathSegment(go.PathSegment.Line,ne,ge*te));var Ae=new go.PathFigure(.8*ne,.75*te,!1);return he.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Line,.8*ne,.25*te)),Ae.add(new go.PathSegment(go.PathSegment.Line,.6*ne,.25*te)),Ae.add(new go.PathSegment(go.PathSegment.Line,.6*ne,.75*te)),Ae.add(new go.PathSegment(go.PathSegment.Line,.4*ne,.75*te)),Ae.add(new go.PathSegment(go.PathSegment.Line,.4*ne,.25*te)),Ae.add(new go.PathSegment(go.PathSegment.Line,.2*ne,.25*te)),Ae.add(new go.PathSegment(go.PathSegment.Line,.2*ne,.75*te)),he}),go.Shape.defineFigureGenerator("Ground",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(.5*ne,0,!1);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.4*te)),se.add(new go.PathSegment(go.PathSegment.Move,.2*ne,.6*te)),se.add(new go.PathSegment(go.PathSegment.Line,.8*ne,.6*te)),se.add(new go.PathSegment(go.PathSegment.Move,.3*ne,.8*te)),se.add(new go.PathSegment(go.PathSegment.Line,.7*ne,.8*te)),se.add(new go.PathSegment(go.PathSegment.Move,.4*ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,.6*ne,te)),he}),go.Shape.defineFigureGenerator("Inverter",function(Fe,ne,te){var he=new go.Geometry,se=Ge*.1,ge=.1,Se=.9,be=.5,Ae=new go.PathFigure(.8*ne,.5*te,!0);he.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Line,0,te)),Ae.add(new go.PathSegment(go.PathSegment.Line,0,0)),Ae.add(new go.PathSegment(go.PathSegment.Line,.8*ne,.5*te));var Le=new go.PathFigure((Se+ge)*ne,be*te,!0);return he.add(Le),Le.add(new go.PathSegment(go.PathSegment.Bezier,Se*ne,(be+ge)*te,(Se+ge)*ne,(be+se)*te,(Se+se)*ne,(be+ge)*te)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(Se-ge)*ne,be*te,(Se-se)*ne,(be+ge)*te,(Se-ge)*ne,(be+se)*te)),Le.add(new go.PathSegment(go.PathSegment.Bezier,Se*ne,(be-ge)*te,(Se-ge)*ne,(be-se)*te,(Se-se)*ne,(be-ge)*te)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(Se+ge)*ne,be*te,(Se+se)*ne,(be-ge)*te,(Se+ge)*ne,(be-se)*te)),he.spot1=new go.Spot(0,.25),he.spot2=new go.Spot(.4,.75),he}),go.Shape.defineFigureGenerator("NandGate",function(Fe,ne,te){var he=new go.Geometry,se=Ge*.5,ge=Ge*.4,Se=Ge*.1,be=.1,Ae=.9,Le=.5,je=new go.PathFigure(.8*ne,.5*te,!0);he.add(je),je.add(new go.PathSegment(go.PathSegment.Bezier,.4*ne,te,.8*ne,(.5+ge)*te,(.4+se)*ne,te)),je.add(new go.PathSegment(go.PathSegment.Line,0,te)),je.add(new go.PathSegment(go.PathSegment.Line,0,0)),je.add(new go.PathSegment(go.PathSegment.Line,.4*ne,0)),je.add(new go.PathSegment(go.PathSegment.Bezier,.8*ne,.5*te,(.4+se)*ne,0,.8*ne,(.5-ge)*te));var $e=new go.PathFigure((Ae+be)*ne,Le*te,!0);return he.add($e),$e.add(new go.PathSegment(go.PathSegment.Bezier,Ae*ne,(Le+be)*te,(Ae+be)*ne,(Le+Se)*te,(Ae+Se)*ne,(Le+be)*te)),$e.add(new go.PathSegment(go.PathSegment.Bezier,(Ae-be)*ne,Le*te,(Ae-Se)*ne,(Le+be)*te,(Ae-be)*ne,(Le+Se)*te)),$e.add(new go.PathSegment(go.PathSegment.Bezier,Ae*ne,(Le-be)*te,(Ae-be)*ne,(Le-Se)*te,(Ae-Se)*ne,(Le-be)*te)),$e.add(new go.PathSegment(go.PathSegment.Bezier,(Ae+be)*ne,Le*te,(Ae+Se)*ne,(Le-be)*te,(Ae+be)*ne,(Le-Se)*te)),he.spot1=new go.Spot(0,.05),he.spot2=new go.Spot(.55,.95),he}),go.Shape.defineFigureGenerator("NorGate",function(Fe,ne,te){var he=new go.Geometry,se=.5,ge=Ge*se,Se=0,be=.5,Ae=new go.PathFigure(.8*ne,.5*te,!0);he.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Bezier,0,te,.7*ne,(be+ge)*te,(Se+ge)*ne,(be+se)*te)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*ne,.75*te,.25*ne,.25*te)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,.8*ne,.5*te,(Se+ge)*ne,(be-se)*te,.7*ne,(be-ge)*te)),se=.1,ge=Ge*.1,Se=.9,be=.5;var Le=new go.PathFigure((Se-se)*ne,be*te,!0);return he.add(Le),Le.add(new go.PathSegment(go.PathSegment.Bezier,Se*ne,(be-se)*te,(Se-se)*ne,(be-ge)*te,(Se-ge)*ne,(be-se)*te)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(Se+se)*ne,be*te,(Se+ge)*ne,(be-se)*te,(Se+se)*ne,(be-ge)*te)),Le.add(new go.PathSegment(go.PathSegment.Bezier,Se*ne,(be+se)*te,(Se+se)*ne,(be+ge)*te,(Se+ge)*ne,(be+se)*te)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(Se-se)*ne,be*te,(Se-ge)*ne,(be+se)*te,(Se-se)*ne,(be+ge)*te)),he.spot1=new go.Spot(.2,.25),he.spot2=new go.Spot(.6,.75),he}),go.Shape.defineFigureGenerator("OrGate",function(Fe,ne,te){var he=new go.Geometry,se=.5,ge=Ge*se,Se=0,be=.5,Ae=new go.PathFigure(0,0,!0);return he.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Bezier,ne,.5*te,(Se+ge+ge)*ne,(be-se)*te,.8*ne,(be-ge)*te)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,0,te,.8*ne,(be+ge)*te,(Se+ge+ge)*ne,(be+se)*te)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*ne,.75*te,.25*ne,.25*te).close()),he.spot1=new go.Spot(.2,.25),he.spot2=new go.Spot(.75,.75),he}),go.Shape.defineFigureGenerator("XnorGate",function(Fe,ne,te){var he=new go.Geometry,se=.5,ge=Ge*se,Se=.2,be=.5,Ae=new go.PathFigure(.1*ne,0,!1);he.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Bezier,.1*ne,te,.35*ne,.25*te,.35*ne,.75*te));var Le=new go.PathFigure(.8*ne,.5*te,!0);he.add(Le),Le.add(new go.PathSegment(go.PathSegment.Bezier,.2*ne,te,.7*ne,(be+ge)*te,(Se+ge)*ne,(be+se)*te)),Le.add(new go.PathSegment(go.PathSegment.Bezier,.2*ne,0,.45*ne,.75*te,.45*ne,.25*te)),Le.add(new go.PathSegment(go.PathSegment.Bezier,.8*ne,.5*te,(Se+ge)*ne,(be-se)*te,.7*ne,(be-ge)*te)),se=.1,ge=Ge*.1,Se=.9,be=.5;var je=new go.PathFigure((Se-se)*ne,be*te,!0);return he.add(je),je.add(new go.PathSegment(go.PathSegment.Bezier,Se*ne,(be-se)*te,(Se-se)*ne,(be-ge)*te,(Se-ge)*ne,(be-se)*te)),je.add(new go.PathSegment(go.PathSegment.Bezier,(Se+se)*ne,be*te,(Se+ge)*ne,(be-se)*te,(Se+se)*ne,(be-ge)*te)),je.add(new go.PathSegment(go.PathSegment.Bezier,Se*ne,(be+se)*te,(Se+se)*ne,(be+ge)*te,(Se+ge)*ne,(be+se)*te)),je.add(new go.PathSegment(go.PathSegment.Bezier,(Se-se)*ne,be*te,(Se-ge)*ne,(be+se)*te,(Se-se)*ne,(be+ge)*te)),he.spot1=new go.Spot(.4,.25),he.spot2=new go.Spot(.65,.75),he}),go.Shape.defineFigureGenerator("XorGate",function(Fe,ne,te){var he=new go.Geometry,se=.5,ge=Ge*se,Se=.2,be=.5,Ae=new go.PathFigure(.1*ne,0,!1);he.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Bezier,.1*ne,te,.35*ne,.25*te,.35*ne,.75*te));var Le=new go.PathFigure(.2*ne,0,!0);return he.add(Le),Le.add(new go.PathSegment(go.PathSegment.Bezier,ne,.5*te,(Se+ge)*ne,(be-se)*te,.9*ne,(be-ge)*te)),Le.add(new go.PathSegment(go.PathSegment.Bezier,.2*ne,te,.9*ne,(be+ge)*te,(Se+ge)*ne,(be+se)*te)),Le.add(new go.PathSegment(go.PathSegment.Bezier,.2*ne,0,.45*ne,.75*te,.45*ne,.25*te).close()),he.spot1=new go.Spot(.4,.25),he.spot2=new go.Spot(.8,.75),he}),go.Shape.defineFigureGenerator("Capacitor",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(0,0,!1);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,te)),se.add(new go.PathSegment(go.PathSegment.Move,ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,ne,te)),he}),go.Shape.defineFigureGenerator("Resistor",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(0,.5*te,!1);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.1*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,.2*ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,.3*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,.4*ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,.6*ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,.7*ne,.5*te)),he}),go.Shape.defineFigureGenerator("Inductor",function(Fe,ne,te){var he=new go.Geometry,se=Ge*.1,ge=.1,Se=.1,be=.5,Ae=new go.PathFigure((Se-se*.5)*ne,te,!1);return he.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(Se+ge)*ne,0,(Se-se)*ne,te,(Se-ge)*ne,0)),Se=.3,Ae.add(new go.PathSegment(go.PathSegment.Bezier,Se*ne,te,(Se+ge)*ne,0,(Se+se)*ne,te)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(Se+ge)*ne,0,(Se-se)*ne,te,(Se-ge)*ne,0)),Se=.5,Ae.add(new go.PathSegment(go.PathSegment.Bezier,Se*ne,te,(Se+ge)*ne,0,(Se+se)*ne,te)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(Se+ge)*ne,0,(Se-se)*ne,te,(Se-ge)*ne,0)),Se=.7,Ae.add(new go.PathSegment(go.PathSegment.Bezier,Se*ne,te,(Se+ge)*ne,0,(Se+se)*ne,te)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(Se+ge)*ne,0,(Se-se)*ne,te,(Se-ge)*ne,0)),Se=.9,Ae.add(new go.PathSegment(go.PathSegment.Bezier,(Se+se*.5)*ne,te,(Se+ge)*ne,0,(Se+se)*ne,te)),he}),go.Shape.defineFigureGenerator("ACvoltageSource",function(Fe,ne,te){var he=new go.Geometry,se=Ge*.5,ge=.5,Se=.5,be=.5,Ae=new go.PathFigure((Se-ge)*ne,be*te,!1);return he.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Bezier,Se*ne,(be-ge)*te,(Se-ge)*ne,(be-se)*te,(Se-se)*ne,(be-ge)*te)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(Se+ge)*ne,be*te,(Se+se)*ne,(be-ge)*te,(Se+ge)*ne,(be-se)*te)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,Se*ne,(be+ge)*te,(Se+ge)*ne,(be+se)*te,(Se+se)*ne,(be+ge)*te)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(Se-ge)*ne,be*te,(Se-se)*ne,(be+ge)*te,(Se-ge)*ne,(be+se)*te)),Ae.add(new go.PathSegment(go.PathSegment.Move,(Se-ge+.1)*ne,be*te)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(Se+ge-.1)*ne,be*te,Se*ne,(be-ge)*te,Se*ne,(be+ge)*te)),he}),go.Shape.defineFigureGenerator("DCvoltageSource",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(0,.75*te,!1);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,.25*te)),se.add(new go.PathSegment(go.PathSegment.Move,ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,ne,te)),he}),go.Shape.defineFigureGenerator("Diode",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(ne,0,!1);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,ne,.5*te)),se.add(new go.PathSegment(go.PathSegment.Line,0,te)),se.add(new go.PathSegment(go.PathSegment.Line,0,0)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.5*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,te)),he.spot1=new go.Spot(0,.25),he.spot2=new go.Spot(.5,.75),he}),go.Shape.defineFigureGenerator("Wifi",function(Fe,ne,te){var he=new go.Geometry,se=ne,ge=te;ne=ne*.38,te=te*.6;var Se=Ge*.8,be=.8,Ae=0,Le=.5,je=(se-ne)/2,$e=(ge-te)/2,qe=new go.PathFigure(Ae*ne+je,(Le+be)*te+$e,!0);he.add(qe),qe.add(new go.PathSegment(go.PathSegment.Bezier,(Ae-be)*ne+je,Le*te+$e,(Ae-Se)*ne+je,(Le+be)*te+$e,(Ae-be)*ne+je,(Le+Se)*te+$e)),qe.add(new go.PathSegment(go.PathSegment.Bezier,Ae*ne+je,(Le-be)*te+$e,(Ae-be)*ne+je,(Le-Se)*te+$e,(Ae-Se)*ne+je,(Le-be)*te+$e)),qe.add(new go.PathSegment(go.PathSegment.Bezier,(Ae-be+Se*.5)*ne+je,Le*te+$e,Ae*ne+je,(Le-be)*te+$e,(Ae-be+Se*.5)*ne+je,(Le-Se)*te+$e)),qe.add(new go.PathSegment(go.PathSegment.Bezier,Ae*ne+je,(Le+be)*te+$e,(Ae-be+Se*.5)*ne+je,(Le+Se)*te+$e,Ae*ne+je,(Le+be)*te+$e).close()),Se=Ge*.4,be=.4,Ae=.2,Le=.5;var nt=new go.PathFigure(Ae*ne+je,(Le+be)*te+$e,!0);he.add(nt),nt.add(new go.PathSegment(go.PathSegment.Bezier,(Ae-be)*ne+je,Le*te+$e,(Ae-Se)*ne+je,(Le+be)*te+$e,(Ae-be)*ne+je,(Le+Se)*te+$e)),nt.add(new go.PathSegment(go.PathSegment.Bezier,Ae*ne+je,(Le-be)*te+$e,(Ae-be)*ne+je,(Le-Se)*te+$e,(Ae-Se)*ne+je,(Le-be)*te+$e)),nt.add(new go.PathSegment(go.PathSegment.Bezier,(Ae-be+Se*.5)*ne+je,Le*te+$e,Ae*ne+je,(Le-be)*te+$e,(Ae-be+Se*.5)*ne+je,(Le-Se)*te+$e)),nt.add(new go.PathSegment(go.PathSegment.Bezier,Ae*ne+je,(Le+be)*te+$e,(Ae-be+Se*.5)*ne+je,(Le+Se)*te+$e,Ae*ne+je,(Le+be)*te+$e).close()),Se=Ge*.2,be=.2,Ae=.5,Le=.5;var dt=new go.PathFigure((Ae-be)*ne+je,Le*te+$e,!0);he.add(dt),dt.add(new go.PathSegment(go.PathSegment.Bezier,Ae*ne+je,(Le-be)*te+$e,(Ae-be)*ne+je,(Le-Se)*te+$e,(Ae-Se)*ne+je,(Le-be)*te+$e)),dt.add(new go.PathSegment(go.PathSegment.Bezier,(Ae+be)*ne+je,Le*te+$e,(Ae+Se)*ne+je,(Le-be)*te+$e,(Ae+be)*ne+je,(Le-Se)*te+$e)),dt.add(new go.PathSegment(go.PathSegment.Bezier,Ae*ne+je,(Le+be)*te+$e,(Ae+be)*ne+je,(Le+Se)*te+$e,(Ae+Se)*ne+je,(Le+be)*te+$e)),dt.add(new go.PathSegment(go.PathSegment.Bezier,(Ae-be)*ne+je,Le*te+$e,(Ae-Se)*ne+je,(Le+be)*te+$e,(Ae-be)*ne+je,(Le+Se)*te+$e)),Se=Ge*.4,be=.4,Ae=.8,Le=.5;var it=new go.PathFigure(Ae*ne+je,(Le-be)*te+$e,!0);he.add(it),it.add(new go.PathSegment(go.PathSegment.Bezier,(Ae+be)*ne+je,Le*te+$e,(Ae+Se)*ne+je,(Le-be)*te+$e,(Ae+be)*ne+je,(Le-Se)*te+$e)),it.add(new go.PathSegment(go.PathSegment.Bezier,Ae*ne+je,(Le+be)*te+$e,(Ae+be)*ne+je,(Le+Se)*te+$e,(Ae+Se)*ne+je,(Le+be)*te+$e)),it.add(new go.PathSegment(go.PathSegment.Bezier,(Ae+be-Se*.5)*ne+je,Le*te+$e,Ae*ne+je,(Le+be)*te+$e,(Ae+be-Se*.5)*ne+je,(Le+Se)*te+$e)),it.add(new go.PathSegment(go.PathSegment.Bezier,Ae*ne+je,(Le-be)*te+$e,(Ae+be-Se*.5)*ne+je,(Le-Se)*te+$e,Ae*ne+je,(Le-be)*te+$e).close()),Se=Ge*.8,be=.8,Ae=1,Le=.5;var bt=new go.PathFigure(Ae*ne+je,(Le-be)*te+$e,!0);return he.add(bt),bt.add(new go.PathSegment(go.PathSegment.Bezier,(Ae+be)*ne+je,Le*te+$e,(Ae+Se)*ne+je,(Le-be)*te+$e,(Ae+be)*ne+je,(Le-Se)*te+$e)),bt.add(new go.PathSegment(go.PathSegment.Bezier,Ae*ne+je,(Le+be)*te+$e,(Ae+be)*ne+je,(Le+Se)*te+$e,(Ae+Se)*ne+je,(Le+be)*te+$e)),bt.add(new go.PathSegment(go.PathSegment.Bezier,(Ae+be-Se*.5)*ne+je,Le*te+$e,Ae*ne+je,(Le+be)*te+$e,(Ae+be-Se*.5)*ne+je,(Le+Se)*te+$e)),bt.add(new go.PathSegment(go.PathSegment.Bezier,Ae*ne+je,(Le-be)*te+$e,(Ae+be-Se*.5)*ne+je,(Le-Se)*te+$e,Ae*ne+je,(Le-be)*te+$e).close()),he}),go.Shape.defineFigureGenerator("Email",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(0,0,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,0,te)),se.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var ge=new go.PathFigure(0,0,!1);return he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.6*te)),ge.add(new go.PathSegment(go.PathSegment.Line,ne,0)),ge.add(new go.PathSegment(go.PathSegment.Move,0,te)),ge.add(new go.PathSegment(go.PathSegment.Line,.45*ne,.54*te)),ge.add(new go.PathSegment(go.PathSegment.Move,ne,te)),ge.add(new go.PathSegment(go.PathSegment.Line,.55*ne,.54*te)),he}),go.Shape.defineFigureGenerator("Ethernet",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(.35*ne,0,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.65*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,.65*ne,.4*te)),se.add(new go.PathSegment(go.PathSegment.Line,.35*ne,.4*te)),se.add(new go.PathSegment(go.PathSegment.Line,.35*ne,0).close());var ge=new go.PathFigure(.1*ne,te,!0,!0);he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.4*ne,te)),ge.add(new go.PathSegment(go.PathSegment.Line,.4*ne,.6*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.1*ne,.6*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.1*ne,te).close());var Se=new go.PathFigure(.6*ne,te,!0,!0);he.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,.9*ne,te)),Se.add(new go.PathSegment(go.PathSegment.Line,.9*ne,.6*te)),Se.add(new go.PathSegment(go.PathSegment.Line,.6*ne,.6*te)),Se.add(new go.PathSegment(go.PathSegment.Line,.6*ne,te).close());var be=new go.PathFigure(0,.5*te,!1);return he.add(be),be.add(new go.PathSegment(go.PathSegment.Line,ne,.5*te)),be.add(new go.PathSegment(go.PathSegment.Move,.5*ne,.5*te)),be.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.4*te)),be.add(new go.PathSegment(go.PathSegment.Move,.75*ne,.5*te)),be.add(new go.PathSegment(go.PathSegment.Line,.75*ne,.6*te)),be.add(new go.PathSegment(go.PathSegment.Move,.25*ne,.5*te)),be.add(new go.PathSegment(go.PathSegment.Line,.25*ne,.6*te)),he}),go.Shape.defineFigureGenerator("Power",function(Fe,ne,te){var he=new go.Geometry,se=Ge*.4,ge=.4,Se=.5,be=.5,Ae=ce(),Le=ce(),je=ce(),$e=ce();Me(Se,be-ge,Se+se,be-ge,Se+ge,be-se,Se+ge,be,.5,Ae,Ae,Le,je,$e);var qe=ue(Le.x,Le.y),nt=new go.PathFigure(Le.x*ne,Le.y*te,!0);he.add(nt),nt.add(new go.PathSegment(go.PathSegment.Bezier,(Se+ge)*ne,be*te,je.x*ne,je.y*te,$e.x*ne,$e.y*te)),nt.add(new go.PathSegment(go.PathSegment.Bezier,Se*ne,(be+ge)*te,(Se+ge)*ne,(be+se)*te,(Se+se)*ne,(be+ge)*te)),nt.add(new go.PathSegment(go.PathSegment.Bezier,(Se-ge)*ne,be*te,(Se-se)*ne,(be+ge)*te,(Se-ge)*ne,(be+se)*te)),Me(Se-ge,be,Se-ge,be-se,Se-se,be-ge,Se,be-ge,.5,je,$e,Le,Ae,Ae),nt.add(new go.PathSegment(go.PathSegment.Bezier,Le.x*ne,Le.y*te,je.x*ne,je.y*te,$e.x*ne,$e.y*te)),se=Ge*.3,ge=.3,Me(Se-ge,be,Se-ge,be-se,Se-se,be-ge,Se,be-ge,.5,je,$e,Le,Ae,Ae),nt.add(new go.PathSegment(go.PathSegment.Line,Le.x*ne,Le.y*te)),nt.add(new go.PathSegment(go.PathSegment.Bezier,(Se-ge)*ne,be*te,$e.x*ne,$e.y*te,je.x*ne,je.y*te)),nt.add(new go.PathSegment(go.PathSegment.Bezier,Se*ne,(be+ge)*te,(Se-ge)*ne,(be+se)*te,(Se-se)*ne,(be+ge)*te)),nt.add(new go.PathSegment(go.PathSegment.Bezier,(Se+ge)*ne,be*te,(Se+se)*ne,(be+ge)*te,(Se+ge)*ne,(be+se)*te)),Me(Se,be-ge,Se+se,be-ge,Se+ge,be-se,Se+ge,be,.5,Ae,Ae,Le,je,$e),nt.add(new go.PathSegment(go.PathSegment.Bezier,Le.x*ne,Le.y*te,$e.x*ne,$e.y*te,je.x*ne,je.y*te).close());var nt=new go.PathFigure(.45*ne,0,!0);return he.add(nt),nt.add(new go.PathSegment(go.PathSegment.Line,.45*ne,.5*te)),nt.add(new go.PathSegment(go.PathSegment.Line,.55*ne,.5*te)),nt.add(new go.PathSegment(go.PathSegment.Line,.55*ne,0).close()),Pe(Ae),Pe(Le),Pe(je),Pe($e),Pe(qe),he.spot1=new go.Spot(.25,.45),he.spot2=new go.Spot(.75,.8),he}),go.Shape.defineFigureGenerator("Fallout",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(0,te/2,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Arc,180,360,ne/2,te/2,ne/2,te/2));function ge(Se,be,Ae){Se.add(new go.PathSegment(go.PathSegment.Move,(.3+be)*ne,(.8+Ae)*te)),Se.add(new go.PathSegment(go.PathSegment.Line,(.5+be)*ne,(.5+Ae)*te)),Se.add(new go.PathSegment(go.PathSegment.Line,(.1+be)*ne,(.5+Ae)*te)),Se.add(new go.PathSegment(go.PathSegment.Line,(.3+be)*ne,(.8+Ae)*te).close())}return ge(se,0,0),ge(se,.4,0),ge(se,.2,-.3),he}),go.Shape.defineFigureGenerator("IrritationHazard",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(.2*ne,0,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.3*te)),se.add(new go.PathSegment(go.PathSegment.Line,.8*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.2*te)),se.add(new go.PathSegment(go.PathSegment.Line,.7*ne,.5*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.8*te)),se.add(new go.PathSegment(go.PathSegment.Line,.8*ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.7*te)),se.add(new go.PathSegment(go.PathSegment.Line,.2*ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,0,.8*te)),se.add(new go.PathSegment(go.PathSegment.Line,.3*ne,.5*te)),se.add(new go.PathSegment(go.PathSegment.Line,0,.2*te).close()),he.spot1=new go.Spot(.3,.3),he.spot2=new go.Spot(.7,.7),he}),go.Shape.defineFigureGenerator("ElectricalHazard",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(.37*ne,0,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.11*te)),se.add(new go.PathSegment(go.PathSegment.Line,.77*ne,.04*te)),se.add(new go.PathSegment(go.PathSegment.Line,.33*ne,.49*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.37*te)),se.add(new go.PathSegment(go.PathSegment.Line,.63*ne,.86*te)),se.add(new go.PathSegment(go.PathSegment.Line,.77*ne,.91*te)),se.add(new go.PathSegment(go.PathSegment.Line,.34*ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,.34*ne,.78*te)),se.add(new go.PathSegment(go.PathSegment.Line,.44*ne,.8*te)),se.add(new go.PathSegment(go.PathSegment.Line,.65*ne,.56*te)),se.add(new go.PathSegment(go.PathSegment.Line,0,.68*te).close()),he}),go.Shape.defineFigureGenerator("FireHazard",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(.1*ne,te,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,.29*ne,0,-.25*ne,.63*te,.45*ne,.44*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,.51*ne,.42*te,.48*ne,.17*te,.54*ne,.35*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,.59*ne,.18*te,.59*ne,.29*te,.58*ne,.28*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,.75*ne,.6*te,.8*ne,.34*te,.88*ne,.43*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,.88*ne,.31*te,.87*ne,.48*te,.88*ne,.43*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,.9*ne,te,1.17*ne,.76*te,.82*ne,.8*te).close()),he.spot1=new go.Spot(.07,.445),he.spot2=new go.Spot(.884,.958),he}),go.Shape.defineFigureGenerator("BpmnActivityLoop",function(Fe,ne,te){var he=new go.Geometry,se=.5,ge=0,Se=0,be=se*Ge,Ae=.4*Math.SQRT2/2+.5,Le=.5-.5*Math.SQRT2/2,je=1,$e=.5,qe=.5,nt=0,dt=new go.PathFigure(Ae*ne,(1-Le)*te,!1);return he.add(dt),dt.add(new go.PathSegment(go.PathSegment.Bezier,je*ne,$e*te,je*ne,.7*te,je*ne,$e*te)),dt.add(new go.PathSegment(go.PathSegment.Bezier,(qe+ge)*ne,(nt+ge)*te,(.5+se+ge)*ne,(.5-be+ge)*te,(.5+be+ge)*ne,(.5-se+ge)*te)),dt.add(new go.PathSegment(go.PathSegment.Bezier,(.5-se+ge)*ne,(.5+Se)*te,(.5-be+ge)*ne,(.5-se+Se)*te,(.5-se+ge)*ne,(.5-be+Se)*te)),dt.add(new go.PathSegment(go.PathSegment.Bezier,(.35+ge)*ne,.9*te,(.5-se+ge)*ne,(.5+be+Se)*te,(.5-be+ge)*ne,.9*te)),dt.add(new go.PathSegment(go.PathSegment.Move,(.25+ge)*ne,.8*te)),dt.add(new go.PathSegment(go.PathSegment.Line,(.35+ge)*ne,.9*te)),dt.add(new go.PathSegment(go.PathSegment.Line,(.2+ge)*ne,.95*te)),he}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(0,0,!1);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,te)),se.add(new go.PathSegment(go.PathSegment.Move,.5*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,te)),se.add(new go.PathSegment(go.PathSegment.Move,ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,ne,te)),he}),go.Shape.defineFigureGenerator("BpmnActivitySequential",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(0,0,!1);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,ne,0)),se.add(new go.PathSegment(go.PathSegment.Move,0,.5*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.5*te)),se.add(new go.PathSegment(go.PathSegment.Move,0,te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,te)),he}),go.Shape.defineFigureGenerator("BpmnActivityAdHoc",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(0,0,!1);he.add(se);var ge=new go.PathFigure(ne,te,!1);he.add(ge);var Se=new go.PathFigure(0,.5*te,!1);return he.add(Se),Se.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,.5*te,.2*ne,.35*te,.3*ne,.35*te)),Se.add(new go.PathSegment(go.PathSegment.Bezier,ne,.5*te,.7*ne,.65*te,.8*ne,.65*te)),he}),go.Shape.defineFigureGenerator("BpmnActivityCompensation",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(0,.5*te,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.5*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.5*te)),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,te).close()),he}),go.Shape.defineFigureGenerator("BpmnTaskMessage",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(0,.2*te,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,ne,.2*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.8*te)),se.add(new go.PathSegment(go.PathSegment.Line,0,.8*te)),se.add(new go.PathSegment(go.PathSegment.Line,0,.8*te).close());var se=new go.PathFigure(0,.2*te,!1);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.5*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.2*te)),he}),go.Shape.defineFigureGenerator("BpmnTaskScript",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(.7*ne,te,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.3*ne,te)),se.add(new go.PathSegment(go.PathSegment.Bezier,.3*ne,0,.6*ne,.5*te,0,.5*te)),se.add(new go.PathSegment(go.PathSegment.Line,.7*ne,0)),se.add(new go.PathSegment(go.PathSegment.Bezier,.7*ne,te,.4*ne,.5*te,ne,.5*te).close());var ge=new go.PathFigure(.45*ne,.73*te,!1);return he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.7*ne,.73*te)),ge.add(new go.PathSegment(go.PathSegment.Move,.38*ne,.5*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.63*ne,.5*te)),ge.add(new go.PathSegment(go.PathSegment.Move,.31*ne,.27*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.56*ne,.27*te)),he}),go.Shape.defineFigureGenerator("BpmnTaskUser",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(0,0,!1);he.add(se);var ge=new go.PathFigure(.335*ne,(1-.555)*te,!0);he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.335*ne,(1-.405)*te)),ge.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*ne,(1-.405)*te)),ge.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*ne,(1-.555)*te)),ge.add(new go.PathSegment(go.PathSegment.Bezier,ne,.68*te,(1-.12)*ne,.46*te,(1-.02)*ne,.54*te)),ge.add(new go.PathSegment(go.PathSegment.Line,ne,te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,.68*te)),ge.add(new go.PathSegment(go.PathSegment.Bezier,.335*ne,(1-.555)*te,.02*ne,.54*te,.12*ne,.46*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.365*ne,(1-.595)*te));var Se=.5-.285,be=.5,Ae=Se,Le=Math.PI/4,je=4*(1-Math.cos(Le))/(3*Math.sin(Le)),$e=je*.5,qe=Se,nt=Se,dt=je*qe,it=je*nt;ge.add(new go.PathSegment(go.PathSegment.Bezier,(be-qe)*ne,Ae*te,(be-(dt+qe)/2)*ne,(Ae+(nt+it)/2)*te,(be-qe)*ne,(Ae+it)*te)),ge.add(new go.PathSegment(go.PathSegment.Bezier,be*ne,(Ae-nt)*te,(be-qe)*ne,(Ae-it)*te,(be-dt)*ne,(Ae-nt)*te)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(be+qe)*ne,Ae*te,(be+dt)*ne,(Ae-nt)*te,(be+qe)*ne,(Ae-it)*te)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*ne,(1-.595)*te,(be+qe)*ne,(Ae+it)*te,(be+(dt+qe)/2)*ne,(Ae+(nt+it)/2)*te)),ge.add(new go.PathSegment(go.PathSegment.Line,(1-.365)*ne,(1-.595)*te)),ge.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*ne,(1-.555)*te)),ge.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*ne,(1-.405)*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.335*ne,(1-.405)*te));var bt=new go.PathFigure(.2*ne,te,!1);he.add(bt),bt.add(new go.PathSegment(go.PathSegment.Line,.2*ne,.8*te));var It=new go.PathFigure(.8*ne,te,!1);return he.add(It),It.add(new go.PathSegment(go.PathSegment.Line,.8*ne,.8*te)),he}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(.1*ne,0,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.9*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,.9*ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,.1*ne,te).close());var ge=new go.PathFigure(.2*ne,.2*te,!1);return he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.8*ne,.2*te)),ge.add(new go.PathSegment(go.PathSegment.Move,.2*ne,.4*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.8*ne,.4*te)),ge.add(new go.PathSegment(go.PathSegment.Move,.2*ne,.6*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.8*ne,.6*te)),ge.add(new go.PathSegment(go.PathSegment.Move,.2*ne,.8*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.8*ne,.8*te)),he}),go.Shape.defineFigureGenerator("BpmnEventError",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(0,te,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.33*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,.66*ne,.5*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,.66*ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,.33*ne,.5*te).close()),he}),go.Shape.defineFigureGenerator("BpmnEventEscalation",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(0,0,!1);he.add(se);var ge=new go.PathFigure(ne,te,!1);he.add(ge);var Se=new go.PathFigure(.1*ne,te,!0);return he.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,0)),Se.add(new go.PathSegment(go.PathSegment.Line,.9*ne,te)),Se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.5*te).close()),he}),go.Shape.defineFigureGenerator("Caution",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(.05*ne,te,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,.1*ne,.8*te,0,te,0,te)),se.add(new go.PathSegment(go.PathSegment.Line,.45*ne,.1*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,.55*ne,.1*te,.5*ne,0,.5*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,.95*ne,.9*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,.9*ne,te,ne,te,ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,.05*ne,te));var ge=.05;return se.add(new go.PathSegment(go.PathSegment.Move,(.5-ge)*ne,.875*te)),se.add(new go.PathSegment(go.PathSegment.Arc,180,-360,.5*ne,.875*te,ge*ne,ge*te)),se.add(new go.PathSegment(go.PathSegment.Move,.5*ne,.75*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,.325*te,.575*ne,.725*te,.625*ne,.375*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,.75*te,.375*ne,.375*te,.425*ne,.725*te)),he}),go.Shape.defineFigureGenerator("Recycle",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(.45*ne,.95*te,!1);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.2*ne,.95*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,.185*ne,.85*te,.17*ne,.95*te,.15*ne,.9*te)),se.add(new go.PathSegment(go.PathSegment.Line,.235*ne,.75*te)),se.add(new go.PathSegment(go.PathSegment.Line,.3*ne,.625*te)),se.add(new go.PathSegment(go.PathSegment.Line,.35*ne,.65*te)),se.add(new go.PathSegment(go.PathSegment.Line,.275*ne,.45*te)),se.add(new go.PathSegment(go.PathSegment.Line,.05*ne,.45*te)),se.add(new go.PathSegment(go.PathSegment.Line,.1*ne,.5*te)),se.add(new go.PathSegment(go.PathSegment.Line,.05*ne,.575*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,.1875*ne,.95*te,0,.675*te,0,.7*te)),se.add(new go.PathSegment(go.PathSegment.Move,.45*ne,.95*te)),se.add(new go.PathSegment(go.PathSegment.Line,.45*ne,.775*te)),se.add(new go.PathSegment(go.PathSegment.Line,.22*ne,.775*te));var ge=new go.PathFigure(.475*ne,.2*te,!1);he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.4*ne,.4*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.225*ne,.3*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.275*ne,.175*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.325*ne,.05*te)),ge.add(new go.PathSegment(go.PathSegment.Bezier,.4*ne,.05*te,.35*ne,0,.375*ne,0)),ge.add(new go.PathSegment(go.PathSegment.Line,.575*ne,.375*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.525*ne,.4*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.75*ne,.475*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.85*ne,.315*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.8*ne,.32*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.65*ne,.05*te)),ge.add(new go.PathSegment(go.PathSegment.Bezier,.575*ne,0,.65*ne,.05*te,.625*ne,0)),ge.add(new go.PathSegment(go.PathSegment.Line,.38*ne,.0105*te));var Se=new go.PathFigure(.675*ne,.575*te,!1);return he.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,.875*ne,.525*te)),Se.add(new go.PathSegment(go.PathSegment.Line,ne,.775*te)),Se.add(new go.PathSegment(go.PathSegment.Bezier,.85*ne,.95*te,ne,.8*te,ne,.85*te)),Se.add(new go.PathSegment(go.PathSegment.Line,.65*ne,.95*te)),Se.add(new go.PathSegment(go.PathSegment.Line,.65*ne,te)),Se.add(new go.PathSegment(go.PathSegment.Line,.55*ne,.85*te)),Se.add(new go.PathSegment(go.PathSegment.Line,.65*ne,.725*te)),Se.add(new go.PathSegment(go.PathSegment.Line,.65*ne,.775*te)),Se.add(new go.PathSegment(go.PathSegment.Line,.7*ne,.775*te)),Se.add(new go.PathSegment(go.PathSegment.Line,ne,.775*te)),Se.add(new go.PathSegment(go.PathSegment.Move,.675*ne,.575*te)),Se.add(new go.PathSegment(go.PathSegment.Line,.775*ne,.775*te)),he}),go.Shape.defineFigureGenerator("BpmnEventTimer",function(Fe,ne,te){var he=new go.Geometry,se=.5,ge=Ge*.5,Se=new go.PathFigure(ne,se*te,!0);he.add(Se),Se.add(new go.PathSegment(go.PathSegment.Bezier,se*ne,te,ne,(se+ge)*te,(se+ge)*ne,te)),Se.add(new go.PathSegment(go.PathSegment.Bezier,0,se*te,(se-ge)*ne,te,0,(se+ge)*te)),Se.add(new go.PathSegment(go.PathSegment.Bezier,se*ne,0,0,(se-ge)*te,(se-ge)*ne,0)),Se.add(new go.PathSegment(go.PathSegment.Bezier,ne,se*te,(se+ge)*ne,0,ne,(se-ge)*te));var be=new go.PathFigure(se*ne,0,!1);return he.add(be),be.add(new go.PathSegment(go.PathSegment.Line,se*ne,.15*te)),be.add(new go.PathSegment(go.PathSegment.Move,se*ne,te)),be.add(new go.PathSegment(go.PathSegment.Line,se*ne,.85*te)),be.add(new go.PathSegment(go.PathSegment.Move,0,se*te)),be.add(new go.PathSegment(go.PathSegment.Line,.15*ne,se*te)),be.add(new go.PathSegment(go.PathSegment.Move,ne,se*te)),be.add(new go.PathSegment(go.PathSegment.Line,.85*ne,se*te)),be.add(new go.PathSegment(go.PathSegment.Move,se*ne,se*te)),be.add(new go.PathSegment(go.PathSegment.Line,.58*ne,.1*te)),be.add(new go.PathSegment(go.PathSegment.Move,se*ne,se*te)),be.add(new go.PathSegment(go.PathSegment.Line,.78*ne,.54*te)),he}),go.Shape.defineFigureGenerator("Package",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(0,.15*te,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,ne,.15*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,0,te).close());var ge=new go.PathFigure(0,.15*te,!0);return he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,0,0)),ge.add(new go.PathSegment(go.PathSegment.Line,.6*ne,0)),ge.add(new go.PathSegment(go.PathSegment.Line,.65*ne,.15*te).close()),he.spot1=new go.Spot(0,.1),he.spot2=new go.Spot(1,1),he}),go.Shape.defineFigureGenerator("Class",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(0,0,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,0,te)),se.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var ge=new go.PathFigure(0,.2*te,!1);he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,ne,.2*te).close());var Se=new go.PathFigure(0,.5*te,!1);return he.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,ne,.5*te).close()),he}),go.Shape.defineFigureGenerator("Component",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(ne,te,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,.15*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,.15*ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,te).close());var ge=new go.PathFigure(0,.2*te,!0);he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.45*ne,.2*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.45*ne,.4*te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,.4*te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,.2*te).close());var Se=new go.PathFigure(0,.6*te,!0);return he.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,.45*ne,.6*te)),Se.add(new go.PathSegment(go.PathSegment.Line,.45*ne,.8*te)),Se.add(new go.PathSegment(go.PathSegment.Line,0,.8*te)),Se.add(new go.PathSegment(go.PathSegment.Line,0,.6*te).close()),he}),go.Shape.defineFigureGenerator("Boat Shipment",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(.15*ne,.6*te,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.15*ne,.6*te)),se.add(new go.PathSegment(go.PathSegment.Line,0,.6*te)),se.add(new go.PathSegment(go.PathSegment.Line,.15*ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,.85*ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.6*te)),se.add(new go.PathSegment(go.PathSegment.Line,.85*ne,.6*te)),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,.15*ne,.6*te));var ge=new go.PathFigure(.15*ne,.6*te,!1);return he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.85*ne,.6*te)),he}),go.Shape.defineFigureGenerator("Customer/Supplier",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(ne,te,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,.66*ne,.33*te)),se.add(new go.PathSegment(go.PathSegment.Line,.66*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,.33*ne,.33*te)),se.add(new go.PathSegment(go.PathSegment.Line,.33*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,0,.33*te)),se.add(new go.PathSegment(go.PathSegment.Line,0,te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,te).close()),he}),go.Shape.defineFigureGenerator("Workcell",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(0,te,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,0)),se.add(new go.PathSegment(go.PathSegment.Line,ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,.65*ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,.65*ne,.4*te)),se.add(new go.PathSegment(go.PathSegment.Line,.35*ne,.4*te)),se.add(new go.PathSegment(go.PathSegment.Line,.35*ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,0,te).close()),he}),go.Shape.defineFigureGenerator("Supermarket",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(0,0,!1);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.33*te)),se.add(new go.PathSegment(go.PathSegment.Line,0,.33*te)),se.add(new go.PathSegment(go.PathSegment.Move,ne,.33*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.66*te)),se.add(new go.PathSegment(go.PathSegment.Line,0,.66*te)),se.add(new go.PathSegment(go.PathSegment.Move,ne,.66*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,0,te)),he}),go.Shape.defineFigureGenerator("TruckShipment",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(0,0,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.6*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,.6*ne,.8*te)),se.add(new go.PathSegment(go.PathSegment.Line,0,.8*te)),se.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var ge=new go.PathFigure(ne,.8*te,!0);he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,ne,.4*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.6*ne,.4*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.6*ne,.8*te)),ge.add(new go.PathSegment(go.PathSegment.Line,ne,.8*te).close());var Se=.1,be=Ge*.1,Ae=.2,Le=.9,je=new go.PathFigure((Ae-Se)*ne,Le*te,!0);he.add(je),je.add(new go.PathSegment(go.PathSegment.Bezier,Ae*ne,(Le-Se)*te,(Ae-Se)*ne,(Le-be)*te,(Ae-be)*ne,(Le-Se)*te)),je.add(new go.PathSegment(go.PathSegment.Bezier,(Ae+Se)*ne,Le*te,(Ae+be)*ne,(Le-Se)*te,(Ae+Se)*ne,(Le-be)*te)),je.add(new go.PathSegment(go.PathSegment.Bezier,Ae*ne,(Le+Se)*te,(Ae+Se)*ne,(Le+be)*te,(Ae+be)*ne,(Le+Se)*te)),je.add(new go.PathSegment(go.PathSegment.Bezier,(Ae-Se)*ne,Le*te,(Ae-be)*ne,(Le+Se)*te,(Ae-Se)*ne,(Le+be)*te).close()),Se=.1,be=Ge*.1,Ae=.8,Le=.9;var $e=new go.PathFigure((Ae-Se)*ne,Le*te,!0);return he.add($e),$e.add(new go.PathSegment(go.PathSegment.Bezier,Ae*ne,(Le-Se)*te,(Ae-Se)*ne,(Le-be)*te,(Ae-be)*ne,(Le-Se)*te)),$e.add(new go.PathSegment(go.PathSegment.Bezier,(Ae+Se)*ne,Le*te,(Ae+be)*ne,(Le-Se)*te,(Ae+Se)*ne,(Le-be)*te)),$e.add(new go.PathSegment(go.PathSegment.Bezier,Ae*ne,(Le+Se)*te,(Ae+Se)*ne,(Le+be)*te,(Ae+be)*ne,(Le+Se)*te)),$e.add(new go.PathSegment(go.PathSegment.Bezier,(Ae-Se)*ne,Le*te,(Ae-be)*ne,(Le+Se)*te,(Ae-Se)*ne,(Le+be)*te).close()),he}),go.Shape.defineFigureGenerator("KanbanPost",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(.2*ne,0,!1);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.2*ne,.5*te)),se.add(new go.PathSegment(go.PathSegment.Line,.8*ne,.5*te)),se.add(new go.PathSegment(go.PathSegment.Line,.8*ne,0)),se.add(new go.PathSegment(go.PathSegment.Move,.5*ne,.5*te)),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,.2*ne,te)),se.add(new go.PathSegment(go.PathSegment.Move,.5*ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,.8*ne,te)),he}),go.Shape.defineFigureGenerator("Forklift",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(0,0,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,.5*te)),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.5*te)),se.add(new go.PathSegment(go.PathSegment.Line,.4*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,0,0));var ge=new go.PathFigure(0,.5*te,!0);he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,0,.8*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.8*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.5*te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,.5*te));var Se=new go.PathFigure(.5*ne,.8*te,!0);he.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.1*te)),Se.add(new go.PathSegment(go.PathSegment.Line,.55*ne,.1*te)),Se.add(new go.PathSegment(go.PathSegment.Line,.55*ne,.8*te)),Se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.8*te));var be=new go.PathFigure(.5*ne,.7*te,!1);he.add(be),be.add(new go.PathSegment(go.PathSegment.Line,ne,.7*te));var Ae=.1,Le=Ge*.1,je=.1,$e=.9,qe=new go.PathFigure((je-Ae)*ne,$e*te,!0);he.add(qe),qe.add(new go.PathSegment(go.PathSegment.Bezier,je*ne,($e-Ae)*te,(je-Ae)*ne,($e-Le)*te,(je-Le)*ne,($e-Ae)*te)),qe.add(new go.PathSegment(go.PathSegment.Bezier,(je+Ae)*ne,$e*te,(je+Le)*ne,($e-Ae)*te,(je+Ae)*ne,($e-Le)*te)),qe.add(new go.PathSegment(go.PathSegment.Bezier,je*ne,($e+Ae)*te,(je+Ae)*ne,($e+Le)*te,(je+Le)*ne,($e+Ae)*te)),qe.add(new go.PathSegment(go.PathSegment.Bezier,(je-Ae)*ne,$e*te,(je-Le)*ne,($e+Ae)*te,(je-Ae)*ne,($e+Le)*te)),Ae=.1,Le=Ge*.1,je=.4,$e=.9;var nt=new go.PathFigure((je-Ae)*ne,$e*te,!0);return he.add(nt),nt.add(new go.PathSegment(go.PathSegment.Bezier,je*ne,($e-Ae)*te,(je-Ae)*ne,($e-Le)*te,(je-Le)*ne,($e-Ae)*te)),nt.add(new go.PathSegment(go.PathSegment.Bezier,(je+Ae)*ne,$e*te,(je+Le)*ne,($e-Ae)*te,(je+Ae)*ne,($e-Le)*te)),nt.add(new go.PathSegment(go.PathSegment.Bezier,je*ne,($e+Ae)*te,(je+Ae)*ne,($e+Le)*te,(je+Le)*ne,($e+Ae)*te)),nt.add(new go.PathSegment(go.PathSegment.Bezier,(je-Ae)*ne,$e*te,(je-Le)*ne,($e+Ae)*te,(je-Ae)*ne,($e+Le)*te)),he}),go.Shape.defineFigureGenerator("RailShipment",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(.1*ne,.4*te,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.45*ne,.4*te)),se.add(new go.PathSegment(go.PathSegment.Line,.45*ne,.9*te)),se.add(new go.PathSegment(go.PathSegment.Line,.1*ne,.9*te)),se.add(new go.PathSegment(go.PathSegment.Line,.1*ne,.4*te).close());var ge=new go.PathFigure(.45*ne,.7*te,!1);he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.55*ne,.7*te));var Se=new go.PathFigure(.55*ne,.4*te,!0);he.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,.9*ne,.4*te)),Se.add(new go.PathSegment(go.PathSegment.Line,.9*ne,.9*te)),Se.add(new go.PathSegment(go.PathSegment.Line,.55*ne,.9*te)),Se.add(new go.PathSegment(go.PathSegment.Line,.55*ne,.4*te).close());var je=.05,$e=Ge*.05,qe=.175,nt=.95,be=new go.PathFigure((qe-je)*ne,nt*te,!0);he.add(be),be.add(new go.PathSegment(go.PathSegment.Bezier,qe*ne,(nt-je)*te,(qe-je)*ne,(nt-$e)*te,(qe-$e)*ne,(nt-je)*te)),be.add(new go.PathSegment(go.PathSegment.Bezier,(qe+je)*ne,nt*te,(qe+$e)*ne,(nt-je)*te,(qe+je)*ne,(nt-$e)*te)),be.add(new go.PathSegment(go.PathSegment.Bezier,qe*ne,(nt+je)*te,(qe+je)*ne,(nt+$e)*te,(qe+$e)*ne,(nt+je)*te)),be.add(new go.PathSegment(go.PathSegment.Bezier,(qe-je)*ne,nt*te,(qe-$e)*ne,(nt+je)*te,(qe-je)*ne,(nt+$e)*te));var je=.05,$e=Ge*.05,qe=.375,nt=.95,Ae=new go.PathFigure((qe-je)*ne,nt*te,!0);he.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Bezier,qe*ne,(nt-je)*te,(qe-je)*ne,(nt-$e)*te,(qe-$e)*ne,(nt-je)*te)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(qe+je)*ne,nt*te,(qe+$e)*ne,(nt-je)*te,(qe+je)*ne,(nt-$e)*te)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,qe*ne,(nt+je)*te,(qe+je)*ne,(nt+$e)*te,(qe+$e)*ne,(nt+je)*te)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(qe-je)*ne,nt*te,(qe-$e)*ne,(nt+je)*te,(qe-je)*ne,(nt+$e)*te));var je=.05,$e=Ge*.05,qe=.625,nt=.95,Le=new go.PathFigure((qe-je)*ne,nt*te,!0);he.add(Le),Le.add(new go.PathSegment(go.PathSegment.Bezier,qe*ne,(nt-je)*te,(qe-je)*ne,(nt-$e)*te,(qe-$e)*ne,(nt-je)*te)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(qe+je)*ne,nt*te,(qe+$e)*ne,(nt-je)*te,(qe+je)*ne,(nt-$e)*te)),Le.add(new go.PathSegment(go.PathSegment.Bezier,qe*ne,(nt+je)*te,(qe+je)*ne,(nt+$e)*te,(qe+$e)*ne,(nt+je)*te)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(qe-je)*ne,nt*te,(qe-$e)*ne,(nt+je)*te,(qe-je)*ne,(nt+$e)*te));var je=.05,$e=Ge*.05,qe=.825,nt=.95,dt=new go.PathFigure((qe-je)*ne,nt*te,!0);he.add(dt),dt.add(new go.PathSegment(go.PathSegment.Bezier,qe*ne,(nt-je)*te,(qe-je)*ne,(nt-$e)*te,(qe-$e)*ne,(nt-je)*te)),dt.add(new go.PathSegment(go.PathSegment.Bezier,(qe+je)*ne,nt*te,(qe+$e)*ne,(nt-je)*te,(qe+je)*ne,(nt-$e)*te)),dt.add(new go.PathSegment(go.PathSegment.Bezier,qe*ne,(nt+je)*te,(qe+je)*ne,(nt+$e)*te,(qe+$e)*ne,(nt+je)*te)),dt.add(new go.PathSegment(go.PathSegment.Bezier,(qe-je)*ne,nt*te,(qe-$e)*ne,(nt+je)*te,(qe-je)*ne,(nt+$e)*te).close());var it=new go.PathFigure(0,te,!1);return he.add(it),it.add(new go.PathSegment(go.PathSegment.Line,ne,te).close()),he}),go.Shape.defineFigureGenerator("Warehouse",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(0,0,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,0,te)),se.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var ge=new go.PathFigure(0,.2*te,!1);he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,ne,.2*te).close());var Se=new go.PathFigure(.15*ne,te,!0);he.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,.15*ne,.5*te)),Se.add(new go.PathSegment(go.PathSegment.Line,.4*ne,.5*te)),Se.add(new go.PathSegment(go.PathSegment.Line,.4*ne,te)),Se.add(new go.PathSegment(go.PathSegment.Line,.15*ne,te).close());var be=.05,Ae=Ge*.05,Le=.35,je=.775,$e=new go.PathFigure((Le-be)*ne,je*te,!0);return he.add($e),$e.add(new go.PathSegment(go.PathSegment.Bezier,Le*ne,(je-be)*te,(Le-be)*ne,(je-Ae)*te,(Le-Ae)*ne,(je-be)*te)),$e.add(new go.PathSegment(go.PathSegment.Bezier,(Le+be)*ne,je*te,(Le+Ae)*ne,(je-be)*te,(Le+be)*ne,(je-Ae)*te)),$e.add(new go.PathSegment(go.PathSegment.Bezier,Le*ne,(je+be)*te,(Le+be)*ne,(je+Ae)*te,(Le+Ae)*ne,(je+be)*te)),$e.add(new go.PathSegment(go.PathSegment.Bezier,(Le-be)*ne,je*te,(Le-Ae)*ne,(je+be)*te,(Le-be)*ne,(je+Ae)*te).close()),he}),go.Shape.defineFigureGenerator("ControlCenter",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(0,te,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,.8*te)),se.add(new go.PathSegment(go.PathSegment.Line,.1*ne,.8*te)),se.add(new go.PathSegment(go.PathSegment.Line,.1*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,.9*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,.9*ne,.8*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.8*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,0,te)),se.add(new go.PathSegment(go.PathSegment.Move,.1*ne,.8*te)),se.add(new go.PathSegment(go.PathSegment.Line,.9*ne,.8*te).close()),he}),go.Shape.defineFigureGenerator("Bluetooth",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(0,.75*te,!1);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,.75*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.25*te)),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.75*te)),se.add(new go.PathSegment(go.PathSegment.Line,0,.25*te)),he}),go.Shape.defineFigureGenerator("Bookmark",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(0,0,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,te)),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.6*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,0,0)),se.add(new go.PathSegment(go.PathSegment.Move,.2*ne,.2*te)),se.add(new go.PathSegment(go.PathSegment.Line,.8*ne,.2*te)),se.add(new go.PathSegment(go.PathSegment.Move,.2*ne,.4*te)),se.add(new go.PathSegment(go.PathSegment.Line,.8*ne,.4*te)),he}),go.Shape.defineFigureGenerator("Bookmark",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(0,0,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,te)),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.6*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,0,0)),se.add(new go.PathSegment(go.PathSegment.Move,.2*ne,.2*te)),se.add(new go.PathSegment(go.PathSegment.Line,.8*ne,.2*te)),se.add(new go.PathSegment(go.PathSegment.Move,.2*ne,.4*te)),se.add(new go.PathSegment(go.PathSegment.Line,.8*ne,.4*te)),he}),go.Shape.defineFigureGenerator("Globe",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(.5*ne,0,!1);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,te)),se.add(new go.PathSegment(go.PathSegment.Move,0,.5*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.5*te)),se.add(new go.PathSegment(go.PathSegment.Move,.5*ne,0)),se.add(new go.PathSegment(go.PathSegment.Bezier,ne,.5*te,.75*ne,0,ne,.25*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,te,ne,.75*te,.75*ne,te)),se.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*te,.25*ne,te,0,.75*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,0,0,.25*te,.25*ne,0)),se.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,te,.15*ne,.25*te,.15*ne,.75*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,0,.85*ne,.75*te,.85*ne,.25*te)),se.add(new go.PathSegment(go.PathSegment.Move,.1675*ne,.15*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,.8325*ne,.15*te,.35*ne,.3*te,.65*ne,.3*te)),se.add(new go.PathSegment(go.PathSegment.Move,.1675*ne,.85*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,.8325*ne,.85*te,.35*ne,.7*te,.65*ne,.7*te)),he}),go.Shape.defineFigureGenerator("Wave",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(0,.25*te,!1);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,.3*ne,.25*te,.1*ne,0,.2*ne,0)),se.add(new go.PathSegment(go.PathSegment.Bezier,.7*ne,.25*te,.425*ne,.5*te,.575*ne,.5*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,ne,.25*te,.8*ne,0,.9*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.75*te)),se.add(new go.PathSegment(go.PathSegment.Move,0,.25*te)),se.add(new go.PathSegment(go.PathSegment.Line,0,.75*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,.3*ne,.75*te,.1*ne,.5*te,.2*ne,.5*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,.7*ne,.75*te,.425*ne,te,.575*ne,te)),se.add(new go.PathSegment(go.PathSegment.Bezier,ne,.75*te,.8*ne,.5*te,.9*ne,.5*te)),he}),go.Shape.defineFigureGenerator("Operator",function(Fe,ne,te){var he=new go.Geometry,se=.3,ge=Ge*.3,Se=.5,be=.7,Ae=new go.PathFigure((Se-se)*ne,be*te,!0);he.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Bezier,Se*ne,(be-se)*te,(Se-se)*ne,(be-ge)*te,(Se-ge)*ne,(be-se)*te)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(Se+se)*ne,be*te,(Se+ge)*ne,(be-se)*te,(Se+se)*ne,(be-ge)*te)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,Se*ne,(be+se)*te,(Se+se)*ne,(be+ge)*te,(Se+ge)*ne,(be+se)*te)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(Se-se)*ne,be*te,(Se-ge)*ne,(be+se)*te,(Se-se)*ne,(be+ge)*te));var Le=new go.PathFigure(0,.7*te,!1);return he.add(Le),Le.add(new go.PathSegment(go.PathSegment.Bezier,ne,.7*te,0,0,ne,0)),he}),go.Shape.defineFigureGenerator("TripleFanBlades",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(.5*ne,0,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,.65*te,.65*ne,.3*te,.65*ne,.5*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,0,.35*ne,.5*te,.35*ne,.3*te)),se.add(new go.PathSegment(go.PathSegment.Move,.5*ne,.65*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,0,te,.3*ne,.6*te,.1*ne,.8*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,.65*te,.2*ne,te,.35*ne,.95*te)),se.add(new go.PathSegment(go.PathSegment.Move,.5*ne,.65*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,ne,te,.7*ne,.6*te,.9*ne,.8*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,.65*te,.8*ne,te,.65*ne,.95*te)),he}),go.Shape.defineFigureGenerator("CentrifugalPump",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(ne,0,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.4*ne,0)),se.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*te,0,.075*te,0,.5*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,.4*ne,te,0,te,.4*ne,te)),se.add(new go.PathSegment(go.PathSegment.Bezier,.8*ne,.4*te,.8*ne,te,.85*ne,.6*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.4*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,0)),he}),go.Shape.defineFigureGenerator("Battery",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(0,te,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,.1*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.1*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,0,te)),se.add(new go.PathSegment(go.PathSegment.Move,.4*ne,.1*te)),se.add(new go.PathSegment(go.PathSegment.Line,.4*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,.6*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,.6*ne,.1*te));var ge=new go.PathFigure(0,.6*te,!1);return he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Move,0,.4*te)),ge.add(new go.PathSegment(go.PathSegment.Line,ne,.4*te)),he}),go.Shape.defineFigureGenerator("Delete",function(Fe,ne,te){var he=new go.Geometry,se=.5,ge=Ge*.5,Se=.5,be=.5,Ae=new go.PathFigure((Se-se)*ne,be*te,!0);he.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Bezier,Se*ne,(be-se)*te,(Se-se)*ne,(be-ge)*te,(Se-ge)*ne,(be-se)*te)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(Se+se)*ne,be*te,(Se+ge)*ne,(be-se)*te,(Se+se)*ne,(be-ge)*te)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,Se*ne,(be+se)*te,(Se+se)*ne,(be+ge)*te,(Se+ge)*ne,(be+se)*te)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(Se-se)*ne,be*te,(Se-ge)*ne,(be+se)*te,(Se-se)*ne,(be+ge)*te));var Le=new go.PathFigure(.15*ne,.5*te,!1);return he.add(Le),Le.add(new go.PathSegment(go.PathSegment.Line,.85*ne,.5*te)),he}),go.Shape.defineFigureGenerator("Flag",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(0,.1*te,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,te)),se.add(new go.PathSegment(go.PathSegment.Move,0,.1*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,.1*te,.15*ne,0,.35*ne,0)),se.add(new go.PathSegment(go.PathSegment.Bezier,ne,.1*te,.65*ne,.2*te,.85*ne,.2*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.5*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,.5*te,.85*ne,.6*te,.65*ne,.6*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*te,.35*ne,.4*te,.15*ne,.4*te).close()),he}),go.Shape.defineFigureGenerator("Help",function(Fe,ne,te){var he=new go.Geometry,se=.5,ge=Ge*.5,Se=.5,be=.5,Ae=new go.PathFigure((Se-se)*ne,be*te,!1);he.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Bezier,Se*ne,(be-se)*te,(Se-se)*ne,(be-ge)*te,(Se-ge)*ne,(be-se)*te)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(Se+se)*ne,be*te,(Se+ge)*ne,(be-se)*te,(Se+se)*ne,(be-ge)*te)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,Se*ne,(be+se)*te,(Se+se)*ne,(be+ge)*te,(Se+ge)*ne,(be+se)*te)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(Se-se)*ne,be*te,(Se-ge)*ne,(be+se)*te,(Se-se)*ne,(be+ge)*te).close()),se=.05,ge=Ge*.05,Se=.5,be=.8;var Le=new go.PathFigure((Se-se)*ne,be*te,!1);return he.add(Le),Le.add(new go.PathSegment(go.PathSegment.Bezier,Se*ne,(be-se)*te,(Se-se)*ne,(be-ge)*te,(Se-ge)*ne,(be-se)*te)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(Se+se)*ne,be*te,(Se+ge)*ne,(be-se)*te,(Se+se)*ne,(be-ge)*te)),Le.add(new go.PathSegment(go.PathSegment.Bezier,Se*ne,(be+se)*te,(Se+se)*ne,(be+ge)*te,(Se+ge)*ne,(be+se)*te)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(Se-se)*ne,be*te,(Se-ge)*ne,(be+se)*te,(Se-se)*ne,(be+ge)*te).close()),Le.add(new go.PathSegment(go.PathSegment.Move,.5*ne,.7*te)),Le.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.5*te)),Le.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,.2*te,.75*ne,.475*te,.75*ne,.225*te)),Le.add(new go.PathSegment(go.PathSegment.Bezier,.3*ne,.35*te,.4*ne,.2*te,.3*ne,.25*te)),he}),go.Shape.defineFigureGenerator("Location",function(Fe,ne,te){return new go.Geometry().add(new go.PathFigure(.5*ne,te,!0).add(new go.PathSegment(go.PathSegment.Line,.75*ne,.5*te)).add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,0,.975*ne,.025*te,.5*ne,0)).add(new go.PathSegment(go.PathSegment.Bezier,.25*ne,.5*te,.5*ne,0,.025*ne,.025*te).close()).add(new go.PathSegment(go.PathSegment.Move,.5*ne,.2*te)).add(new go.PathSegment(go.PathSegment.Arc,270,360,.5*ne,.3*te,.1*ne,.1*te).close()))}),go.Shape.defineFigureGenerator("Lock",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(0,.5*te,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.5*te)),se.add(new go.PathSegment(go.PathSegment.Line,0,.5*te));var ge=new go.PathFigure(.2*ne,.5*te,!1);return he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Move,.2*ne,.5*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.2*ne,.3*te)),ge.add(new go.PathSegment(go.PathSegment.Bezier,.8*ne,.3*te,.25*ne,0,.75*ne,0)),ge.add(new go.PathSegment(go.PathSegment.Line,.8*ne,.5*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.8*ne,.3*te)),he}),go.Shape.defineFigureGenerator("Unlocked",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(0,.5*te,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.5*te)),se.add(new go.PathSegment(go.PathSegment.Line,0,.5*te));var ge=new go.PathFigure(.2*ne,.5*te,!1);return he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Move,.2*ne,.5*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.2*ne,.3*te)),ge.add(new go.PathSegment(go.PathSegment.Bezier,.8*ne,.3*te,.25*ne,0,.75*ne,0)),ge.add(new go.PathSegment(go.PathSegment.Line,.8*ne,.35*te)),he}),go.Shape.defineFigureGenerator("Gear",function(Fe,ne,te){return new go.Geometry().add(new go.PathFigure(.9375*ne,.56246875*te,!0).add(new go.PathSegment(go.PathSegment.Line,.9375*ne,.4375*te)).add(new go.PathSegment(go.PathSegment.Line,.80621875*ne,.4375*te)).add(new go.PathSegment(go.PathSegment.Bezier,.763*ne,.3316875*te,.79840625*ne,.39915625*te,.7834375*ne,.3635*te)).add(new go.PathSegment(go.PathSegment.Line,.8566875*ne,.23796875*te)).add(new go.PathSegment(go.PathSegment.Line,.76825*ne,.14959375*te)).add(new go.PathSegment(go.PathSegment.Line,.67596875*ne,.24184375*te)).add(new go.PathSegment(go.PathSegment.Bezier,.5625*ne,.19378125*te,.64228125*ne,.2188125*te,.603875*ne,.2021875*te)).add(new go.PathSegment(go.PathSegment.Line,.5625*ne,.0625*te)).add(new go.PathSegment(go.PathSegment.Line,.4375*ne,.0625*te)).add(new go.PathSegment(go.PathSegment.Line,.4375*ne,.19378125*te)).add(new go.PathSegment(go.PathSegment.Bezier,.32775*ne,.239375*te,.39759375*ne,.20190625*te,.36053125*ne,.2176875*te)).add(new go.PathSegment(go.PathSegment.Line,.2379375*ne,.14959375*te)).add(new go.PathSegment(go.PathSegment.Line,.14953125*ne,.2379375*te)).add(new go.PathSegment(go.PathSegment.Line,.23934375*ne,.3278125*te)).add(new go.PathSegment(go.PathSegment.Bezier,.19378125*ne,.4375*te,.21765625*ne,.36059375*te,.201875*ne,.397625*te)).add(new go.PathSegment(go.PathSegment.Line,.0625*ne,.4375*te)).add(new go.PathSegment(go.PathSegment.Line,.0625*ne,.5625*te)).add(new go.PathSegment(go.PathSegment.Line,.1938125*ne,.5625*te)).add(new go.PathSegment(go.PathSegment.Bezier,.241875*ne,.67596875*te,.20221875*ne,.603875*te,.21884375*ne,.64228125*te)).add(new go.PathSegment(go.PathSegment.Line,.1495625*ne,.76825*te)).add(new go.PathSegment(go.PathSegment.Line,.238*ne,.8566875*te)).add(new go.PathSegment(go.PathSegment.Line,.3316875*ne,.76296875*te)).add(new go.PathSegment(go.PathSegment.Bezier,.43753125*ne,.80621875*te,.36353125*ne,.78340625*te,.3991875*ne,.79840625*te)).add(new go.PathSegment(go.PathSegment.Line,.43753125*ne,.9375*te)).add(new go.PathSegment(go.PathSegment.Line,.5625*ne,.9375*te)).add(new go.PathSegment(go.PathSegment.Line,.5625*ne,.80621875*te)).add(new go.PathSegment(go.PathSegment.Bezier,.67225*ne,.760625*te,.602375*ne,.79809375*te,.63946875*ne,.78234375*te)).add(new go.PathSegment(go.PathSegment.Line,.76828125*ne,.8566875*te)).add(new go.PathSegment(go.PathSegment.Line,.85671875*ne,.76825*te)).add(new go.PathSegment(go.PathSegment.Line,.76065625*ne,.67221875*te)).add(new go.PathSegment(go.PathSegment.Bezier,.80621875*ne,.56246875*te,.78234375*ne,.63940625*te,.798125*ne,.602375*te)).add(new go.PathSegment(go.PathSegment.Line,.9375*ne,.56246875*te).close()).add(new go.PathSegment(go.PathSegment.Move,.5*ne,.6*te)).add(new go.PathSegment(go.PathSegment.Arc,90,360,.5*ne,.5*te,.1*ne,.1*te).close()))}),go.Shape.defineFigureGenerator("Hand",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(0,.5*te,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,.1*ne,.3*te,0,.375*te,.05*ne,.325*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,.45*ne,.075*te,.3*ne,.225*te,.4*ne,.175*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,.525*ne,.075*te,.46*ne,.05*te,.525*ne,.05*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,.3*ne,.4*te,.525*ne,.275*te,.475*ne,.325*te)),se.add(new go.PathSegment(go.PathSegment.Line,.9*ne,.4*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,.9*ne,.55*te,ne,.4*te,ne,.55*te)),se.add(new go.PathSegment(go.PathSegment.Line,.425*ne,.55*te)),se.add(new go.PathSegment(go.PathSegment.Line,.6*ne,.55*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,.6*ne,.7*te,.675*ne,.55*te,.675*ne,.7*te)),se.add(new go.PathSegment(go.PathSegment.Line,.4*ne,.7*te)),se.add(new go.PathSegment(go.PathSegment.Line,.575*ne,.7*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,.575*ne,.85*te,.65*ne,.7*te,.65*ne,.85*te)),se.add(new go.PathSegment(go.PathSegment.Line,.4*ne,.85*te)),se.add(new go.PathSegment(go.PathSegment.Line,.525*ne,.85*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,.535*ne,te,.61*ne,.85*te,.61*ne,te)),se.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*te,.435*ne,te,0,te).close()),he}),go.Shape.defineFigureGenerator("Map",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(0,.2*te,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.25*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.2*te)),se.add(new go.PathSegment(go.PathSegment.Line,.75*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.2*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,.75*ne,.8*te)),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,.25*ne,.8*te)),se.add(new go.PathSegment(go.PathSegment.Line,0,te).close()),se.add(new go.PathSegment(go.PathSegment.Move,.25*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,.25*ne,.8*te)),se.add(new go.PathSegment(go.PathSegment.Move,.5*ne,.2*te)),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,te)),se.add(new go.PathSegment(go.PathSegment.Move,.75*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,.75*ne,.8*te)),he}),go.Shape.defineFigureGenerator("Eject",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(0,te,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,te*.7)),se.add(new go.PathSegment(go.PathSegment.Line,0,te*.7).close());var ge=new go.PathFigure(0,te*.6,!0);return he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,ne,.6*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.5*ne,0).close()),he}),go.Shape.defineFigureGenerator("Pencil",function(Fe,ne,te){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.2*ne,.1*te)).add(new go.PathSegment(go.PathSegment.Line,ne,.9*te)).add(new go.PathSegment(go.PathSegment.Line,.9*ne,te)).add(new go.PathSegment(go.PathSegment.Line,.1*ne,.2*te).close()))}),go.Shape.defineFigureGenerator("Building",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(ne*1,te*1,!1);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,te*1)),se.add(new go.PathSegment(go.PathSegment.Line,0,te*.85)),se.add(new go.PathSegment(go.PathSegment.Line,.046*ne,te*.85)),se.add(new go.PathSegment(go.PathSegment.Line,.046*ne,te*.45)),se.add(new go.PathSegment(go.PathSegment.Line,0,te*.45)),se.add(new go.PathSegment(go.PathSegment.Line,0,te*.3)),se.add(new go.PathSegment(go.PathSegment.Line,.046*ne,te*.3)),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,te*0)),se.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*ne,te*.3)),se.add(new go.PathSegment(go.PathSegment.Line,ne,te*.3)),se.add(new go.PathSegment(go.PathSegment.Line,ne,te*.45)),se.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*ne,te*.45)),se.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*ne,te*.85)),se.add(new go.PathSegment(go.PathSegment.Line,ne,te*.85).close());var ge=new go.PathFigure(.126*ne,.85*te,!1);he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.126*ne,.45*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.322*ne,.45*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.322*ne,.85*te).close());var Se=new go.PathFigure(.402*ne,.85*te,!1);he.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,.402*ne,.45*te)),Se.add(new go.PathSegment(go.PathSegment.Line,.598*ne,.45*te)),Se.add(new go.PathSegment(go.PathSegment.Line,.598*ne,.85*te).close());var be=new go.PathFigure(.678*ne,.85*te,!1);he.add(be),be.add(new go.PathSegment(go.PathSegment.Line,.678*ne,.45*te)),be.add(new go.PathSegment(go.PathSegment.Line,.874*ne,.45*te)),be.add(new go.PathSegment(go.PathSegment.Line,.874*ne,.85*te).close());var Ae=new go.PathFigure(.5*ne,.1*te,!1);return he.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Line,(.046+.15)*ne,.3*te)),Ae.add(new go.PathSegment(go.PathSegment.Line,(1-(.046+.15))*ne,.3*te).close()),he}),go.Shape.defineFigureGenerator("Staircase",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(0,te*1,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,ne*.2,te*1)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.2,te*.8)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.4,te*.8)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.4,te*.6)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.6,te*.6)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.6,te*.4)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.8,te*.4)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.8,te*.2)),se.add(new go.PathSegment(go.PathSegment.Line,ne*1,te*.2)),se.add(new go.PathSegment(go.PathSegment.Line,ne*1,te*.15)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.75,te*.15)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.75,te*.35)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.55,te*.35)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.55,te*.55)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.35,te*.55)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.35,te*.75)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.15,te*.75)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.15,te*.95)),se.add(new go.PathSegment(go.PathSegment.Line,0,te*.95).close()),he}),go.Shape.defineFigureGenerator("5Bars",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(0,te*1,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,ne*.184,te*1)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.184,te*(1-.184)).close());var ge=new go.PathFigure(ne*.204,te,!0);he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,ne*.204,te*(1-.184))),ge.add(new go.PathSegment(go.PathSegment.Line,ne*.388,te*(1-.184*2))),ge.add(new go.PathSegment(go.PathSegment.Line,ne*.388,te*1).close());var Se=new go.PathFigure(ne*.408,te,!0);he.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,ne*.408,te*(1-.184*2))),Se.add(new go.PathSegment(go.PathSegment.Line,ne*.592,te*(1-.184*3))),Se.add(new go.PathSegment(go.PathSegment.Line,ne*.592,te*1).close());var be=new go.PathFigure(ne*.612,te,!0);he.add(be),be.add(new go.PathSegment(go.PathSegment.Line,ne*.612,te*(1-.184*3))),be.add(new go.PathSegment(go.PathSegment.Line,ne*.796,te*(1-.184*4))),be.add(new go.PathSegment(go.PathSegment.Line,ne*.796,te*1).close());var Ae=new go.PathFigure(ne*.816,te,!0);return he.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Line,ne*.816,te*(1-.184*4))),Ae.add(new go.PathSegment(go.PathSegment.Line,ne*1,te*(1-.184*5))),Ae.add(new go.PathSegment(go.PathSegment.Line,ne*1,te*1).close()),he}),go.Shape.defineFigureGenerator("PC",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(0,0,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,te*1)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.3,te*1)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.3,0).close());var ge=new go.PathFigure(ne*.055,.07*te,!0);he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,ne*.245,te*.07)),ge.add(new go.PathSegment(go.PathSegment.Line,ne*.245,te*.1)),ge.add(new go.PathSegment(go.PathSegment.Line,ne*.055,te*.1).close());var Se=new go.PathFigure(ne*.055,.13*te,!0);he.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,ne*.245,te*.13)),Se.add(new go.PathSegment(go.PathSegment.Line,ne*.245,te*.16)),Se.add(new go.PathSegment(go.PathSegment.Line,ne*.055,te*.16).close());var be=new go.PathFigure(ne*.055,.18*te,!0);he.add(be),be.add(new go.PathSegment(go.PathSegment.Line,ne*.245,te*.18)),be.add(new go.PathSegment(go.PathSegment.Line,ne*.245,te*.21)),be.add(new go.PathSegment(go.PathSegment.Line,ne*.055,te*.21).close());var Ae=new go.PathFigure(ne*1,0,!0);return he.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Line,ne*.4,0)),Ae.add(new go.PathSegment(go.PathSegment.Line,ne*.4,te*.65)),Ae.add(new go.PathSegment(go.PathSegment.Line,ne*1,te*.65).close()),he}),go.Shape.defineFigureGenerator("Plane",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(.55*ne,te,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.6*te)),se.add(new go.PathSegment(go.PathSegment.Line,.4*ne,.7*te)),se.add(new go.PathSegment(go.PathSegment.Line,.1*ne,.475*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,.35*ne,.525*te,0,.4*te,.225*ne,.45*te)),se.add(new go.PathSegment(go.PathSegment.Line,.4*ne,.475*te)),se.add(new go.PathSegment(go.PathSegment.Line,.15*ne,.35*te)),se.add(new go.PathSegment(go.PathSegment.Line,.2*ne,.325*te)),se.add(new go.PathSegment(go.PathSegment.Line,.6*ne,.325*te)),se.add(new go.PathSegment(go.PathSegment.Line,.85*ne,.1*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,.9*ne,.2*te,.975*ne,0,ne,.08*te)),se.add(new go.PathSegment(go.PathSegment.Line,.7*ne,.45*te)),se.add(new go.PathSegment(go.PathSegment.Line,.6*ne,.95*te)),se.add(new go.PathSegment(go.PathSegment.Line,.55*ne,te).close()),he}),go.Shape.defineFigureGenerator("Key",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(ne*1,te*.5,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,ne*.9,.4*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.5,.4*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.5,.35*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.45,.35*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.3,.2*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.15,.2*te)),se.add(new go.PathSegment(go.PathSegment.Line,0,.35*te)),se.add(new go.PathSegment(go.PathSegment.Line,0,.65*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.15,.8*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.3,.8*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.45,.65*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.5,.65*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.5,.6*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.6,.6*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.65,.55*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.7,.6*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.75,.55*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.8,.6*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.85,.575*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.9,.6*te).close()),se.add(new go.PathSegment(go.PathSegment.Move,.17*ne,.425*te)),se.add(new go.PathSegment(go.PathSegment.Arc,270,360,.17*ne,.5*te,.075*ne,.075*te).close()),he}),go.Shape.defineFigureGenerator("FilmTape",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(0,0,!1);he.add(se),se.add(new go.PathSegment(go.PathSegment.Arc,270,180,ne*0,ne*.3,ne*.055)),se.add(new go.PathSegment(go.PathSegment.Line,0,te*1)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.08,te*1)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.08,te*.95)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*1),te*.95)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*1),te*1)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*2),te*1)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*2),te*.95)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*3),te*.95)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*3),te*1)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*4),te*1)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*4),te*.95)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*5),te*.95)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*5),te*1)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*6),te*1)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*6),te*.95)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*7),te*.95)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*7),te*1)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*8),te*1)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*8),te*.95)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*9),te*.95)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*9),te*1)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*10),te*1)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*10),te*.95)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*11),te*.95)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*11),te*1)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*12),te*1)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*12),te*.95)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*13),te*.95)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*13),te*1)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*14),te*1)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*14),te*.95)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*15),te*.95)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*15),te*1)),se.add(new go.PathSegment(go.PathSegment.Line,ne*1,te*1)),se.add(new go.PathSegment(go.PathSegment.Line,ne*1,te*1));var ge=new go.PathFigure(0,0,!1);he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,ne*1,te*0)),ge.add(new go.PathSegment(go.PathSegment.Arc,270,-180,ne*1,ne*.3,ne*.055)),ge.add(new go.PathSegment(go.PathSegment.Line,ne*1,te*1));var Se=new go.PathFigure(ne*.11,te*.1,!1);he.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,ne*(.11+.24133333*1+.028*0),te*.1)),Se.add(new go.PathSegment(go.PathSegment.Line,ne*(.11+.24133333*1+.028*0),te*.8)),Se.add(new go.PathSegment(go.PathSegment.Line,ne*.11,te*.8).close());var be=new go.PathFigure(ne*(.11+.24133333*1+.028*1),te*.1,!1);he.add(be),be.add(new go.PathSegment(go.PathSegment.Line,ne*(.11+.24133333*2+.028*1),te*.1)),be.add(new go.PathSegment(go.PathSegment.Line,ne*(.11+.24133333*2+.028*1),te*.8)),be.add(new go.PathSegment(go.PathSegment.Line,ne*(.11+.24133333*1+.028*1),te*.8).close());var Ae=new go.PathFigure(ne*(.11+.24133333*2+.028*2),te*.1,!1);return he.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Line,ne*(.11+.24133333*3+.028*2),te*.1)),Ae.add(new go.PathSegment(go.PathSegment.Line,ne*(.11+.24133333*3+.028*2),te*.8)),Ae.add(new go.PathSegment(go.PathSegment.Line,ne*(.11+.24133333*2+.028*2),te*.8).close()),he}),go.Shape.defineFigureGenerator("FloppyDisk",function(Fe,ne,te){var he=new go.Geometry,se=8,ge=se*Ge,Se=new go.PathFigure(se,0,!1);he.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,ne*.86,0)),Se.add(new go.PathSegment(go.PathSegment.Line,ne*1,te*.14)),Se.add(new go.PathSegment(go.PathSegment.Line,ne,te-se)),Se.add(new go.PathSegment(go.PathSegment.Bezier,ne-se,te,ne,te-ge,ne-ge,te)),Se.add(new go.PathSegment(go.PathSegment.Line,se,te)),Se.add(new go.PathSegment(go.PathSegment.Bezier,0,te-se,ge,te,0,te-ge)),Se.add(new go.PathSegment(go.PathSegment.Line,0,se)),Se.add(new go.PathSegment(go.PathSegment.Bezier,se,0,0,ge,ge,0).close());var be=new go.PathFigure(ne*.83,0,!1);he.add(be),be.add(new go.PathSegment(go.PathSegment.Line,ne*.83,te*.3)),be.add(new go.PathSegment(go.PathSegment.Line,ne*.17,te*.3)),be.add(new go.PathSegment(go.PathSegment.Line,ne*.17,te*0).close());var Ae=new go.PathFigure(ne*.83,te*1,!1);he.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Line,ne*.83,te*.5)),Ae.add(new go.PathSegment(go.PathSegment.Line,ne*.17,te*.5)),Ae.add(new go.PathSegment(go.PathSegment.Line,ne*.17,te*1).close());var Le=new go.PathFigure(ne*.78,te*.05,!1);return he.add(Le),Le.add(new go.PathSegment(go.PathSegment.Line,ne*.66,te*.05)),Le.add(new go.PathSegment(go.PathSegment.Line,ne*.66,te*.25)),Le.add(new go.PathSegment(go.PathSegment.Line,ne*.78,te*.25).close()),he}),go.Shape.defineFigureGenerator("SpeechBubble",function(Fe,ne,te){var he=Fe?Fe.parameter1:NaN;(isNaN(he)||he<0)&&(he=15),he=Math.min(he,ne/3),he=Math.min(he,te/3);var se=he*Ge,ge=te*.8,Se=new go.Geometry,be=new go.PathFigure(he,0,!0);return Se.add(be),be.add(new go.PathSegment(go.PathSegment.Line,ne-he,0)),be.add(new go.PathSegment(go.PathSegment.Bezier,ne,he,ne-se,0,ne,se)),be.add(new go.PathSegment(go.PathSegment.Line,ne,ge-he)),be.add(new go.PathSegment(go.PathSegment.Bezier,ne-he,ge,ne,ge-se,ne-se,ge)),be.add(new go.PathSegment(go.PathSegment.Line,ne*.7,ge)),be.add(new go.PathSegment(go.PathSegment.Line,ne*.7,te)),be.add(new go.PathSegment(go.PathSegment.Line,ne*.55,ge)),be.add(new go.PathSegment(go.PathSegment.Line,he,ge)),be.add(new go.PathSegment(go.PathSegment.Bezier,0,ge-he,se,ge,0,ge-se)),be.add(new go.PathSegment(go.PathSegment.Line,0,he)),be.add(new go.PathSegment(go.PathSegment.Bezier,he,0,0,se,se,0).close()),se>1?(Se.spot1=new go.Spot(0,0,se,se),Se.spot2=new go.Spot(1,.8,-se,-se)):(Se.spot1=go.Spot.TopLeft,Se.spot2=new go.Spot(1,.8)),Se}),go.Shape.defineFigureGenerator("Repeat",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(ne*0,te*.45,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,ne*.25,te*0)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.5,te*.45)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.3,te*.45)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.3,te*.9)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.6,te*.9)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.65,te*1)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.2,te*1)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.2,te*.45).close());var ge=new go.PathFigure(ne*1,te*.55,!0);return he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,ne*.75,te*1)),ge.add(new go.PathSegment(go.PathSegment.Line,ne*.5,te*.55)),ge.add(new go.PathSegment(go.PathSegment.Line,ne*.7,te*.55)),ge.add(new go.PathSegment(go.PathSegment.Line,ne*.7,te*.1)),ge.add(new go.PathSegment(go.PathSegment.Line,ne*.4,te*.1)),ge.add(new go.PathSegment(go.PathSegment.Line,ne*.35,te*0)),ge.add(new go.PathSegment(go.PathSegment.Line,ne*.8,te*0)),ge.add(new go.PathSegment(go.PathSegment.Line,ne*.8,te*.55).close()),he}),go.Shape.defineFigureGenerator("Windows",function(Fe,ne,te){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,ne,0)).add(new go.PathSegment(go.PathSegment.Line,ne,te)).add(new go.PathSegment(go.PathSegment.Line,0,te).close()).add(new go.PathSegment(go.PathSegment.Move,.4*ne,.4*te)).add(new go.PathSegment(go.PathSegment.Line,.4*ne,.8*te)).add(new go.PathSegment(go.PathSegment.Line,.9*ne,.8*te)).add(new go.PathSegment(go.PathSegment.Line,.9*ne,.4*te).close()).add(new go.PathSegment(go.PathSegment.Move,.2*ne,.1*te)).add(new go.PathSegment(go.PathSegment.Line,.2*ne,.6*te)).add(new go.PathSegment(go.PathSegment.Line,.7*ne,.6*te)).add(new go.PathSegment(go.PathSegment.Line,.7*ne,.1*te).close()).add(new go.PathSegment(go.PathSegment.Move,.1*ne,.6*te)).add(new go.PathSegment(go.PathSegment.Line,.1*ne,.9*te)).add(new go.PathSegment(go.PathSegment.Line,.5*ne,.9*te)).add(new go.PathSegment(go.PathSegment.Line,.5*ne,.6*te).close()))}),go.Shape.defineFigureGenerator("Terminal",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(ne*0,te*.1,!1);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,ne*1,te*.1)),se.add(new go.PathSegment(go.PathSegment.Line,ne*1,te*.9)),se.add(new go.PathSegment(go.PathSegment.Line,ne*0,te*.9).close());var ge=new go.PathFigure(ne*.1,te*.2,!0);he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,ne*.1,te*.25)),ge.add(new go.PathSegment(go.PathSegment.Line,ne*.22,te*.285)),ge.add(new go.PathSegment(go.PathSegment.Line,ne*.1,te*.32)),ge.add(new go.PathSegment(go.PathSegment.Line,ne*.1,te*.37)),ge.add(new go.PathSegment(go.PathSegment.Line,ne*.275,te*.32)),ge.add(new go.PathSegment(go.PathSegment.Line,ne*.275,te*.25).close());var Se=new go.PathFigure(ne*.28,te*.37,!0);return he.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,ne*.45,te*.37)),Se.add(new go.PathSegment(go.PathSegment.Line,ne*.45,te*.41)),Se.add(new go.PathSegment(go.PathSegment.Line,ne*.28,te*.41).close()),he}),go.Shape.defineFigureGenerator("Beaker",function(Fe,ne,te){var he=new go.Geometry,se=15,ge=se*Ge,Se=new go.PathFigure(ne*.62,te*.475,!0);return he.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,ne,te-se)),Se.add(new go.PathSegment(go.PathSegment.Bezier,ne-se,te,ne,te-ge,ne-ge,te)),Se.add(new go.PathSegment(go.PathSegment.Line,se,te)),Se.add(new go.PathSegment(go.PathSegment.Bezier,0,te-se,ge,te,0,te-ge)),Se.add(new go.PathSegment(go.PathSegment.Line,ne*.38,te*.475)),Se.add(new go.PathSegment(go.PathSegment.Line,ne*.38,te*.03)),Se.add(new go.PathSegment(go.PathSegment.Line,ne*.36,te*0)),Se.add(new go.PathSegment(go.PathSegment.Line,ne*.64,te*0)),Se.add(new go.PathSegment(go.PathSegment.Line,ne*.62,te*.03).close()),ge>1?(he.spot1=new go.Spot(0,0,ge,ge),he.spot2=new go.Spot(1,1,-ge,-ge)):(he.spot1=go.Spot.TopLeft,he.spot2=go.Spot.BottomRight),he}),go.Shape.defineFigureGenerator("Download",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(ne*0,te*1,!0);he.add(se);var ge=.1/.3;se.add(new go.PathSegment(go.PathSegment.Line,ne*1,te*1)),se.add(new go.PathSegment(go.PathSegment.Line,ne*1,te*(1-ge))),se.add(new go.PathSegment(go.PathSegment.Line,ne*.8,te*0)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.66,te*0)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.66,te*.055)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.755,te*.055)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.93,te*(1-ge))),se.add(new go.PathSegment(go.PathSegment.Line,ne*.64,te*(1-ge))),se.add(new go.PathSegment(go.PathSegment.Line,ne*.61,te*.75)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.5,te*.75)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.39,te*.75)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.36,te*(1-ge))),se.add(new go.PathSegment(go.PathSegment.Line,ne*.07,te*(1-ge))),se.add(new go.PathSegment(go.PathSegment.Line,ne*(1-.755),te*.055)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(1-.66),te*.055)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(1-.66),te*0)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(1-.8),te*0)),se.add(new go.PathSegment(go.PathSegment.Line,ne*0,te*(1-ge)).close());var Se=new go.PathFigure(ne*.4,te*0,!0);return he.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,ne*.4,te*.44)),Se.add(new go.PathSegment(go.PathSegment.Line,ne*.26,te*.44)),Se.add(new go.PathSegment(go.PathSegment.Line,ne*.5,te*.66)),Se.add(new go.PathSegment(go.PathSegment.Line,ne*(1-.26),te*.44)),Se.add(new go.PathSegment(go.PathSegment.Line,ne*.6,te*.44)),Se.add(new go.PathSegment(go.PathSegment.Line,ne*.6,te*0).close()),he}),go.Shape.defineFigureGenerator("Bin",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(ne*0,te*1,!0);he.add(se);var ge=.1/.3;return se.add(new go.PathSegment(go.PathSegment.Line,ne*1,te*1)),se.add(new go.PathSegment(go.PathSegment.Line,ne*1,te*(1-ge))),se.add(new go.PathSegment(go.PathSegment.Line,ne*.8,te*0)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.66,te*0)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.66,te*.055)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.755,te*.055)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.93,te*(1-ge))),se.add(new go.PathSegment(go.PathSegment.Line,ne*.64,te*(1-ge))),se.add(new go.PathSegment(go.PathSegment.Line,ne*.61,te*.75)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.5,te*.75)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.39,te*.75)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.36,te*(1-ge))),se.add(new go.PathSegment(go.PathSegment.Line,ne*.07,te*(1-ge))),se.add(new go.PathSegment(go.PathSegment.Line,ne*(1-.755),te*.055)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(1-.66),te*.055)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(1-.66),te*0)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(1-.8),te*0)),se.add(new go.PathSegment(go.PathSegment.Line,ne*0,te*(1-ge)).close()),he}),go.Shape.defineFigureGenerator("Upload",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(ne*0,te*1,!0);he.add(se);var ge=.1/.3;se.add(new go.PathSegment(go.PathSegment.Line,ne*1,te*1)),se.add(new go.PathSegment(go.PathSegment.Line,ne*1,te*(1-ge))),se.add(new go.PathSegment(go.PathSegment.Line,ne*.8,te*0)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.66,te*0)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.66,te*.055)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.755,te*.055)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.93,te*(1-ge))),se.add(new go.PathSegment(go.PathSegment.Line,ne*.64,te*(1-ge))),se.add(new go.PathSegment(go.PathSegment.Line,ne*.61,te*.75)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.5,te*.75)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.39,te*.75)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.36,te*(1-ge))),se.add(new go.PathSegment(go.PathSegment.Line,ne*.07,te*(1-ge))),se.add(new go.PathSegment(go.PathSegment.Line,ne*(1-.755),te*.055)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(1-.66),te*.055)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(1-.66),te*0)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(1-.8),te*0)),se.add(new go.PathSegment(go.PathSegment.Line,ne*0,te*(1-ge)).close());var Se=new go.PathFigure(ne*.5,te*0,!0);return he.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,ne*.26,te*.25)),Se.add(new go.PathSegment(go.PathSegment.Line,ne*.4,te*.25)),Se.add(new go.PathSegment(go.PathSegment.Line,ne*.4,te*.63)),Se.add(new go.PathSegment(go.PathSegment.Line,ne*.6,te*.63)),Se.add(new go.PathSegment(go.PathSegment.Line,ne*.6,te*.25)),Se.add(new go.PathSegment(go.PathSegment.Line,ne*.74,te*.25).close()),he}),go.Shape.defineFigureGenerator("EmptyDrink",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(ne*.15,te*0,!1);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,ne*.85,te*0)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.7,te*1)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.3,te*1).close()),he}),go.Shape.defineFigureGenerator("Drink",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(ne*.15,te*0,!1);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,ne*.85,te*0)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.7,te*1)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.3,te*1).close());var ge=new go.PathFigure(ne*.235,te*.28,!0);return he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,ne*.765,te*.28)),ge.add(new go.PathSegment(go.PathSegment.Line,ne*.655,te*.97)),ge.add(new go.PathSegment(go.PathSegment.Line,ne*.345,te*.97).close()),he}),go.Shape.defineFigureGenerator("4Arrows",function(Fe,ne,te){var he=new go.Geometry,se=new go.PathFigure(ne*.5,te*0,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,ne*.65,te*.25)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.55,te*.25)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.55,te*.45)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.75,te*.45)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.75,te*.35)),se.add(new go.PathSegment(go.PathSegment.Line,ne*1,te*.5)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.75,te*.65)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.75,te*.55)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.55,te*.55)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.55,te*.75)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.65,te*.75)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.5,te*1)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.35,te*.75)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.45,te*.75)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.45,te*.55)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.25,te*.55)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.25,te*.65)),se.add(new go.PathSegment(go.PathSegment.Line,ne*0,te*.5)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.25,te*.35)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.25,te*.45)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.45,te*.45)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.45,te*.25)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.35,te*.25).close()),he}),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")},91e3: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 ze={},Ee="5.0",ue={},ce=null,Pe=!1,Re=!1,Me=null,We=!1,Te=null,Ge=null,st=0;st<arguments.length;st++){var Qe=arguments[st];if(Qe!==null)switch(typeof Qe){case"number":Ee=Qe.toFixed(1);break;case"string":Qe.match(new RegExp("^[0-9]\\.[0-9]+$"))?Ee=Qe:Me=Qe;break;case"object":typeof Qe.is3D!="undefined"?ce=Qe:ue=Qe;break;case"boolean":Pe=Qe,Re=!0;break}}ce===null&&(ce={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},ue.material_id!==void 0&&!Re&&(Pe=!0)),Me!==null&&ue.id===void 0&&(ue.id=Me);var Ye="",yt="",ot=!1,Nt=null,Fe=null,ne=null,te=!1,he=null,se=null,ge=null,Se=null,be=null;ue.height!==void 0&&(ue.height=Math.round(ue.height)),ue.width!==void 0&&(ue.width=Math.round(ue.width));var Ae=function(Pt){return parseFloat(Pt)>4?parseFloat(Pt):5};ze.setHTML5Codebase=function(Pt,pn){Ge=Pt,at(Pt,pn)},ze.setJavaCodebase=ze.setJavaCodebaseVersion=ze.isCompiledInstalled=ze.setPreCompiledScriptPath=ze.setPreCompiledResourcePath=function(){},ze.setHTML5CodebaseVersion=function(Pt,pn){var dn=parseFloat(Pt);if(dn!==NaN&&dn<5){console.log("The GeoGebra HTML5 codebase version "+dn+" is deprecated. Using version latest instead.");return}Te=Pt,ct(Pt,pn)},ze.getHTML5CodebaseVersion=function(){return Fe},ze.getParameters=function(){return ue},ze.setFontsCSSURL=function(Pt){Se=Pt},ze.setGiacJSURL=function(Pt){},ze.setJNLPFile=function(Pt){Ye=Pt},ze.setJNLPBaseDir=function(Pt){},ze.inject=function(){function Pt(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var pn="auto",dn=ue.id,_n,Yt=!1,On=0;On<arguments.length;On++){var kt=arguments[On];typeof kt=="string"?(kt=kt.toLowerCase(),kt.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?pn=kt:dn=arguments[On]):typeof kt=="boolean"?Yt=kt:kt instanceof HTMLElement&&(_n=kt)}jn();function jn(){if(!We){setTimeout(jn,200);return}pn=nn(pn);var ai=_n||document.getElementById(dn);if(!ai){console.log("possibly bug on ajax loading? ");return}if(ze.removeExistingApplet(ai,!1),ue.width===void 0&&ai.clientWidth&&(ue.width=ai.clientWidth),ue.height===void 0&&ai.clientHeight&&(ue.height=ai.clientHeight),!(ue.width&&ue.height)&&pn==="html5"&&(delete ue.width,delete ue.height),Nt=pn,pn==="screenshot")It(ai,ue);else{var et=!1;ue.hasOwnProperty("playButton")&&ue.playButton||ue.hasOwnProperty("clickToLoad")&&ue.clickToLoad?et=!0:ue.hasOwnProperty("playButtonAutoDecide")&&ue.playButtonAutoDecide&&(et=(!Le()||Pt())&&je()),et?(Nt="screenshot",ln(ai,ue,Yt,pn)):bt(ai,ue,Yt)}}};function Le(){try{return window.self!==window.top}catch(Pt){return!0}}function je(){return ue.hasOwnProperty("screenshotGenerator")&&ue.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}ze.getViews=function(){return ce},ze.isJavaInstalled=function(){return!1};var $e=function(Pt){var pn=function(On){var kt=JSON.parse(On),jn=function(De){return De.type=="G"||De.type=="E"},ai=kt.elements?kt.elements.filter(jn)[0]:kt;if(!ai||!ai.url){dn();return}ue.fileName=ai.url,qe(ai.settings||{}),ce.is3D=!0;var et="https://www.geogebra.org/images/";ze.setPreviewImage(he||ai.previewUrl,et+"GeoGebra_loading.png",et+"applet_play.png"),Pt()},dn=function(){ue.onError&&ue.onError(),rn("Error: Fetching material (id "+ue.material_id+") failed.",ue)},_n=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",Yt="/materials/"+ue.material_id+"?scope=basic";nt("https://"+_n+"/api/proxy.php?path="+encodeURIComponent(Yt),pn,dn)};function qe(Pt){var pn=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(dn){Pt[dn]=!!Pt[dn]}),pn.forEach(function(dn){ue[dn]===void 0&&Pt[dn]!==void 0&&(ue[dn]=Pt[dn])}),ue.showToolBarHelp===void 0&&(ue.showToolBarHelp=ue.showToolBar)}function nt(Pt,pn,dn){var _n=new XMLHttpRequest;_n.open("GET",Pt),_n.onload=function(){pn(_n.responseText)},_n.onerror=dn,_n.send()}ze.isHTML5Installed=function(){return!0},ze.getLoadedAppletType=function(){return Nt},ze.setPreviewImage=function(Pt,pn,dn){he=Pt,se=pn,ge=dn},ze.removeExistingApplet=function(Pt,pn){var dn;typeof Pt=="string"&&(Pt=document.getElementById(Pt)),Nt=null;var _n=null;for(dn=0;dn<Pt.childNodes.length;dn++){var Yt=Pt.childNodes[dn],On=Yt.className;On==="applet_screenshot"?pn?(Yt.style.display="block",Nt="screenshot"):Yt.style.display="none":On!=="applet_scaler prerender"&&(Pt.removeChild(Yt),_n=On&&On.indexOf("appletParameters")!=-1?Yt.id:null,dn--)}var kt=ue.id!==void 0?ue.id:_n,jn=window[kt];jn&&typeof jn.getBase64=="function"&&(jn.remove(),window[kt]=null)},ze.refreshHitPoints=function(){if(Ae(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var Pt=ze.getAppletObject();return Pt&&typeof Pt.recalculateEnvironments=="function"?(Pt.recalculateEnvironments(),!0):!1},ze.startAnimation=function(){var Pt=ze.getAppletObject();return Pt&&typeof Pt.startAnimation=="function"?(Pt.startAnimation(),!0):!1},ze.stopAnimation=function(){var Pt=ze.getAppletObject();return Pt&&typeof Pt.stopAnimation=="function"?(Pt.stopAnimation(),!0):!1},ze.getAppletObject=function(){var Pt=ue.id!==void 0?ue.id:"ggbApplet";return window[Pt]},ze.resize=function(){};var dt=function(Pt,pn,dn){var _n=document.createElement("param");_n.setAttribute("name",pn),_n.setAttribute("value",dn),Pt.appendChild(_n)},it=function(Pt){return Pt&&Pt!=="false"},bt=function(Pt,pn,dn){Ae(Fe)<=4.2&&(dn=!0);var _n=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==Fe||ggbHTML5LoadedCodebaseIsWebSimple&&!te)&&(_n=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var Yt=document.createElement("div");Yt.classList.add("appletParameters","notranslate");var On=pn.width,kt=pn.height;if(pn.disableAutoScale=pn.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():pn.disableAutoScale,pn.width!==void 0)if(Ae(Fe)<=4.4)it(pn.showToolBar)&&(pn.height-=7),it(pn.showAlgebraInput)&&(pn.height-=37),pn.width<605&&it(pn.showToolBar)&&(pn.width=605,On=605);else{var jn=100;(it(pn.showToolBar)||it(pn.showMenuBar))&&(pn.hasOwnProperty("customToolBar")&&(pn.customToolbar=pn.customToolBar),jn=it(pn.showMenuBar)?245:155),On<jn&&(pn.width=jn,On=jn)}Yt.style.border="none",Yt.style.display="inline-block";for(var ai in pn)pn.hasOwnProperty(ai)&&ai!=="appletOnLoad"&&Yt.setAttribute("data-param-"+ai,pn[ai]);Se&&Yt.setAttribute("data-param-fontscssurl",Se),ze.resize=function(){GGBAppletUtils.responsiveResize(Pt,pn)},window.addEventListener("resize",function(Vt){ze.resize()});var et=typeof pn.appletOnLoad=="function"?pn.appletOnLoad:function(){};if(!dn&&pn.width!==void 0){pn.hasOwnProperty("showSplash")||Yt.setAttribute("data-param-showSplash","false");var De=Pt.querySelector(".applet_scaler.prerender"),ke=De!==null;if(ke)var Xe=De.querySelector(".ggb_preview");else{var Xe=Qt(On,kt,pn.borderColor,!1);De=document.createElement("div"),De.className="applet_scaler",De.style.position="relative",De.style.display="block",De.style.width=On+"px",De.style.height=kt+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(De,"66%"),Ae(Fe)>=5?(pn.appletOnLoad=function(Vt){var fn=Pt.querySelector(".ggb_preview");fn&&fn.parentNode.removeChild(fn),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(De),window.GGBT_wsf_view&&$(window).trigger("resize"),et(Vt)},ke||De.appendChild(Xe)):Yt.appendChild(Xe),De.appendChild(Yt),ke||Pt.appendChild(De),setTimeout(function(){ze.resize()},1)}else{var ut=document.createElement("div");ut.className="applet_scaler",ut.style.position="relative",ut.style.display="block",ut.appendChild(Yt),Pt.appendChild(ut),pn.appletOnLoad=function(Vt){ze.resize(),et(Vt)}}function Ue(Vt,fn){fn&&typeof fn.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(Vt,fn.appletOnLoad):renderGGBElement(Vt),rn("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",fn)}function gt(Vt,fn){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:Vt,params:fn}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(Pn){Ue(Pn.article,Pn.params)}),html5AppletsToProcess=null)},Ae(Fe)<5&&(Vt.className+=" geogebraweb")):Ue(Vt,fn)}if(_n){scriptLoadStarted=!0;for(var _t=0;_t<Yt.childNodes.length;_t++){var bn=Yt.childNodes[_t].tagName;bn==="TABLE"&&(Yt.removeChild(Yt.childNodes[_t]),_t--)}if(ggbHTML5LoadedScript!==null){var xn=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');xn!=null&&xn.parentNode.removeChild(xn)}var Lt=document.createElement("script"),Zt=function(){gt(Yt,pn)};Lt.src=yt+ne,ggbHTML5LoadedCodebaseIsWebSimple=te,ggbHTML5LoadedCodebaseVersion=Fe,ggbHTML5LoadedScript=Lt.src,rn("GeoGebra HTML5 codebase loaded: '"+yt+"'.",pn),!Ge&&(!Te||Te=="5.0")?(te?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),Zt()):yt.requirejs?__webpack_require__.e(245).then(function(){var Vt=[__webpack_require__(40245)];Zt.apply(null,Vt)}.bind(this)).catch(__webpack_require__.oe):(Lt.onload=Zt,Pt.appendChild(Lt))}else gt(Yt,pn);pn.height=kt,pn.width=On},It=function(Pt,pn,dn){var _n=Qt(pn.width,pn.height,pn.borderColor,dn),Yt=document.createElement("div");Yt.style.position="relative",Yt.style.display="block",Yt.style.width=pn.width+"px",Yt.style.height=pn.height+"px",Yt.className="applet_screenshot applet_scaler"+(dn?" applet_screenshot_play":""),Yt.appendChild(_n);var On=GGBAppletUtils.getScale(pn,Pt,dn);dn?(Pt.appendChild(un()),window.GGBT_wsf_view||(Pt.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Yt,"66%"),Pt.appendChild(Yt),On!==1&&!isNaN(On)&&(GGBAppletUtils.scaleElement(Yt,On),Yt.style.width=pn.width+"px",Yt.style.height=pn.height+"px",Yt.parentNode.style.width=pn.width*On+"px",Yt.parentNode.style.height=pn.height*On+"px"),ze.resize=function(){Ht(Pt,_n,Yt,dn)},window.addEventListener("resize",function(kt){ze.resize()}),ze.resize()};function Ht(Pt,pn,dn,_n){if(Pt.contains(pn)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Pt.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(Pt)}var Yt=GGBAppletUtils.getScale(ue,Pt,_n);dn.parentNode!==null&&(!isNaN(Yt)&&Yt!==1?(GGBAppletUtils.scaleElement(dn,Yt),dn.parentNode.style.width=ue.width*Yt+"px",dn.parentNode.style.height=ue.height*Yt+"px"):(GGBAppletUtils.scaleElement(dn,1),dn.parentNode.style.width=ue.width+"px",dn.parentNode.style.height=ue.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(Pt),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}ze.onExitFullscreen=function(Pt,pn){pn.appendChild(Pt)};var ln=function(Pt,pn,dn,_n){It(Pt,pn,!0);for(var Yt=function(){var jn=[];for(kt=0;kt<Pt.childNodes.length;kt++)jn.push(Pt.childNodes[kt]);if(window.GGBT_wsf_view){var ai=window.GGBT_wsf_view.renderFullScreen(Pt,pn.id),et=document.getElementById("fullscreencontainer"),De=jQuery(Pt).find(".fullscreencontent");De.length>0?(ai.remove(),De.attr("id","fullscreencontent").show(),jQuery(et).append(De),window.dispatchEvent(new Event("resize"))):bt(ai,pn,!1),window.GGBT_wsf_view.launchFullScreen(et)}else Nt=_n,bt(Pt,pn,!1);if(!window.GGBT_wsf_view)for(kt=0;kt<jn.length;kt++)Pt.removeChild(jn[kt])},On=Pt.getElementsByClassName("ggb_preview_play"),kt=0;kt<On.length;kt++)On[kt].addEventListener("click",Yt,!1),On[kt].addEventListener("ontouchstart",Yt,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(Pt),je()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},un=function(){var Pt=document.createElement("div");if(Pt.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var pn='.icon-applet-play { width: 100%; height: 100%;box-sizing: border-box;position: absolute;z-index: 1001;cursor: pointer;border-width: 0px; background-color: transparent;background-repeat: no-repeat;left: 0;top: 0;background-position: center center; background-image: url("https://www.geogebra.org/images/worksheet/icon-start-applet.png");}.icon-applet-play:hover {background-image: url("https://www.geogebra.org/images/worksheet/icon-start-applet-hover.png");}',dn=document.createElement("style");dn.styleSheet?dn.styleSheet.cssText=pn:dn.appendChild(document.createTextNode(pn)),document.getElementsByTagName("head")[0].appendChild(dn)}return Pt},Qt=function(Pt,pn,dn,_n){var Yt=document.createElement("div");Yt.className="ggb_preview",Yt.style.position="absolute",Yt.style.zIndex="90",Yt.style.width=Pt-2+"px",Yt.style.height=pn-2+"px",Yt.style.top="0px",Yt.style.left="0px",Yt.style.overflow="hidden",Yt.style.backgroundColor="white";var On="lightgrey";dn!==void 0&&(dn==="none"?On="transparent":On=dn),Yt.style.border="1px solid "+On;var kt=document.createElement("img");if(kt.style.position="relative",kt.style.zIndex="1000",kt.style.top="-1px",kt.style.left="-1px",he!==null&&kt.setAttribute("src",he),kt.style.opacity=.7,se!==null){var jn,ai,et;if(!_n){jn=document.createElement("img"),jn.style.position="absolute",jn.style.zIndex="1001",jn.style.opacity=1,kt.style.opacity=.3,ai=360,ai>Pt/4*3&&(ai=Pt/4*3),et=ai/5.8,jn.setAttribute("src",se),jn.setAttribute("width",ai),jn.setAttribute("height",et);var De=(Pt-ai)/2,ke=(pn-et)/2;jn.style.left=De+"px",jn.style.top=ke+"px",Yt.appendChild(jn)}}return Yt.appendChild(kt),Yt},nn=function(Pt){return Pt=Pt.toLowerCase(),Pt==="html5"||Pt==="screenshot"?Pt:"html5"},At=["web","webSimple","web3d","tablet","tablet3d","phone"],ct=function(Pt,pn){if(Fe=Pt,pn){at(Fe,!0);return}var dn=!Pe;if(dn){var _n=Ae(Fe);!isNaN(_n)&&_n<4.4&&(dn=!1)}var Yt,On;window.location.protocol.substr(0,4)==="http"?Yt=window.location.protocol:Yt="http:";var kt=Fe.indexOf("//");kt>0?On=Fe:kt===0?On=Yt+Fe:On="https://www.geogebra.org/apps/5.2.814.0/";for(var jn in At)if(Fe.slice(At[jn].length*-1)===At[jn]||Fe.slice((At[jn].length+1)*-1)===At[jn]+"/"){at(On,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&dn&&!ce.is3D&&!ce.AV&&!ce.SV&&!ce.CV&&!ce.EV2&&!ce.CP&&!ce.PC&&!ce.DA&&!ce.FI&&!ce.PV&&!it(ue.showToolBar)&&!it(ue.showMenuBar)&&!it(ue.showAlgebraInput)&&!it(ue.enableRightClick)&&(!ue.appName||ue.appName=="classic")?On+="webSimple/":On+="web3d/",at(On,!1)},at=function(Pt,pn){if(Pt.requirejs){yt=Pt;return}Pt.slice(-1)!=="/"&&(Pt+="/"),yt=Pt,pn===null&&(pn=Pt.indexOf("http")===-1),ot=pn,ne="web.nocache.js",te=!1;var dn=yt.split("/");dn.length>1&&(!pn&&dn[dn.length-2]==="webSimple"?(ne="webSimple.nocache.js",te=!0):At.indexOf(dn[dn.length-2])>=0&&(ne=dn[dn.length-2]+".nocache.js")),dn=Pt.split("/"),Fe=dn[dn.length-3],Fe.substr(0,4)==="test"?Fe=Fe.substr(4,1)+"."+Fe.substr(5,1):(Fe.substr(0,3)==="war"||Fe.substr(0,4)==="beta")&&(Fe="5.0");var _n=parseFloat(Fe);_n!==NaN&&_n<5&&Pt.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+_n+" is deprecated. Using version latest instead."),ct("5.0",pn))},rn=function(Pt,pn){window.console&&window.console.log&&(!pn||typeof pn.showLogging=="undefined"||pn.showLogging&&pn.showLogging!=="false")&&console.log(Pt)};ue.material_id!==void 0?$e(hn):hn();function hn(){var Pt=Ee;Te!==null?Pt=Te:parseFloat(Pt)<5&&(Pt="5.0"),ct(Pt,!1),Ge!==null&&at(Ge,ot),We=!0}return ze},GGBAppletUtils=function(){"use strict";function ze(){return window.GGBT_wsf_edit!==void 0}function Ee(We,Te){Te!=1?(We.style.transformOrigin="0% 0% 0px",We.style.webkitTransformOrigin="0% 0% 0px",We.style.transform="scale("+Te+","+Te+")",We.style.webkitTransform="scale("+Te+","+Te+")",We.style.maxWidth="initial",We.querySelector(".ggb_preview")!==null&&(We.querySelector(".ggb_preview").style.maxWidth="initial"),We.querySelectorAll(".ggb_preview img")[0]!==void 0&&(We.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),We.querySelectorAll(".ggb_preview img")[1]!==void 0&&(We.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(We.style.transform="none",We.style.webkitTransform="none")}function ue(We,Te,Ge,st,Qe,Ye){var yt=null;if(Ye!=null&&Ye!="")for(var ot=We.parentNode;ot!=null;)if((" "+ot.className+" ").indexOf(" "+Ye+" ")>-1){yt=ot;break}else ot=ot.parentNode;var Nt=0,Fe=0,ne=0,te=0,he=0,se=0,ge=0;if(yt)Nt=yt.offsetWidth,Fe=Math.max(st?yt.offsetWidth:0,yt.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(Nt=Math.min(window.innerWidth,document.documentElement.clientWidth),Fe=Math.min(window.innerHeight,document.documentElement.clientHeight),ne=Nt):(Nt=window.innerWidth,Fe=window.innerHeight,ne=window.innerWidth),We){var Se=We.getBoundingClientRect();Se.left>0&&Se.left<=Nt&&(Qe===void 0||!Qe)&&(document.dir==="rtl"?(he=Nt-Se.width-Se.left,se=ne<=480?10:30):(se=Se.left,he=ne<=480?10:30),te=se+he)}if(We&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var be=We.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(te=40,ge=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(te=0,ge=40)}}return We&&((Ge===void 0||!Ge)&&Te>0&&Te+te<Nt?Nt=Te:Nt-=te,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Ge===void 0||!Ge)&&(Fe-=ge)),{width:Nt,height:Fe}}function ce(We,Te,Ge,st,Qe){if(We.isScreenshoGenerator)return 1;var Ye=st!==void 0&&st,yt=We.noScaleMargin!=null&&We.noScaleMargin,ot=function(be){return be&&be!=="false"},Nt=ot(We.autoHeight),Fe=ue(Te,We.width,Ge,Nt,Ye&&window.GGBT_wsf_view||yt,Qe),ne=parseInt(Fe.width),te=We.width,he=We.height;if(te===void 0){var se=Te.querySelector(".appletParameters");se&&(te=se.offsetWidth,he=se.offsetHeight)}var ge=ne/te,Se=Ye?1:Fe.height/he;return Ge!==void 0&&!Ge&&(ge=Math.min(1,ge),Se=Math.min(1,Se)),Math.min(ge,Se)}function Pe(We,Te,Ge){var st=1,Qe,Ye=!1;if(We.hasOwnProperty("allowUpscale")&&(Ye=We.allowUpscale),We.hasOwnProperty("scale")&&(st=parseFloat(We.scale),(isNaN(st)||st===null||st===0)&&(st=1),st>1&&(Ye=!0)),Te&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Ye=!0),!(We.hasOwnProperty("disableAutoScale")&&We.disableAutoScale))Qe=ce(We,Te,Ye,Ge,We.scaleContainerClass);else return st;return Ye&&(!We.hasOwnProperty("scale")||st===1)?Qe:Math.min(st,Qe)}function Re(We){var Te=Math.min(window.innerWidth,document.documentElement.clientWidth),Ge=Math.min(window.innerHeight,document.documentElement.clientHeight),st=We.getBoundingClientRect(),Qe=(Te-st.width)/2,Ye=(Ge-st.height)/2;Ye<0&&(Ye=0),We.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Qe<40?We.style.left="40px":We.style.left=Qe+"px",We.style.top=Ye+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Ye<40?We.style.top="40px":We.style.top=Ye+"px",We.style.left=Qe+"px")}function Me(We,Te){var Ge=We.querySelector(".appletParameters");if(Ge){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Te.id!==Ge.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(We)}if(Ge.parentElement&&/fullscreen/.test(Ge.parentElement.className))return;var st=Pe(Te,We);ze()&&Ge.setAttribute("data-param-scale",st);for(var Qe=null,Ye=0;Ye<We.childNodes.length;Ye++)if(We.childNodes[Ye].className!==void 0&&We.childNodes[Ye].className.match(/^applet_scaler/)){Qe=We.childNodes[Ye];break}if(Qe!==null&&Qe.querySelector(".noscale")!==null)return;var yt=Te.id!==void 0?Te.id:"ggbApplet",ot=window[yt];(ot==null||!ot.recalculateEnvironments)&&Qe!==null&&!Qe.className.match(/fullscreen/)&&(Qe.parentNode.style.transform="",!isNaN(st)&&st!==1?(Qe.parentNode.style.width=Te.width*st+"px",Qe.parentNode.style.height=Te.height*st+"px",Ee(Qe,st)):(Ee(Qe,1),Qe.parentNode.style.width=Te.width+"px",Qe.parentNode.style.height=Te.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&Re(We),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(Ge).parents(".content-added-content"))}}return{responsiveResize:Me,isFlexibleWorksheetEditor:ze,positionCenter:Re,getScale:Pe,scaleElement:Ee}}();__WEBPACK_AMD_DEFINE_ARRAY__=[],__WEBPACK_AMD_DEFINE_RESULT__=function(){return GGBApplet}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),__WEBPACK_AMD_DEFINE_RESULT__!==void 0&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__),GGBAppletUtils.makeModule=function(name,permutation){function webModule(){var H="bootstrap",I="begin",J="gwt.codesvr."+name+"=",K="gwt.codesvr=",L=name,M="startup",N="DUMMY",O=0,P=1,Q="iframe",R="position:absolute; width:0; height:0; border:none; left: -1000px;",S=" top: -1000px;",T="Chrome",U="CSS1Compat",V="<!doctype html>",W="",X="<html><head></head><body></body></html>",Y="undefined",Z="readystatechange",$=10,_="script",ab="javascript",bb="Failed to load ",cb="moduleStartup",db="scriptTagAdded",eb="moduleRequested",fb="meta",gb="name",hb=name+"::",ib="::",jb="gwt:property",kb="content",lb="=",mb="gwt:onPropertyErrorFn",nb='Bad handler "',ob='" for "gwt:onPropertyErrorFn"',pb="gwt:onLoadErrorFn",qb='" for "gwt:onLoadErrorFn"',rb="#",sb="?",tb="/",ub="img",vb="clear.cache.gif",wb="baseUrl",xb=name+".nocache.js",yb="base",zb="//",Ab="selectingPermutation",Bb=name+".devmode.js",Cb=permutation,Db=":",Eb=".cache.js",Fb="loadExternalRefs",Gb="end",n=window,o=document;function p(){var ze=n.location.search;return ze.indexOf(J)!=-1||ze.indexOf(K)!=-1}function q(ze,Ee){}webModule.__sendStats=q,webModule.__moduleName=L,webModule.__errFn=null,webModule.__moduleBase=N,webModule.__softPermutationId=O,webModule.__computePropValue=null,webModule.__getPropMap=null,webModule.__installRunAsyncCode=function(){},webModule.__gwtStartLoadingFragment=function(){return null},webModule.__gwt_isKnownPropertyValue=function(){return!1},webModule.__gwt_getMetaProperty=function(){return null};var r=null,s=n.__gwt_activeModules=n.__gwt_activeModules||{};s[L]={moduleName:L},webModule.__moduleStartupDone=function(ze){var Ee=s[L].bindings;s[L].bindings=function(){for(var ue=Ee?Ee():{},ce=ze[webModule.__softPermutationId],Pe=O;Pe<ce.length;Pe++){var Re=ce[Pe];ue[Re[O]]=Re[P]}return ue}};var t;function u(){return v(),t}function v(){if(!t){var ze=o.createElement(Q);if(ze.id=L,ze.style.cssText=R+S,ze.tabIndex=-1,o.body.appendChild(ze),t=ze.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var Ee=document.compatMode==U?V:W;t.write(Ee+X),t.close()}}}function w(ze){function Ee(ce){function Pe(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var Re=Pe();if(Re){ce();return}function Me(){if(!Re){if(!Pe())return;Re=!0,ce(),o.removeEventListener&&o.removeEventListener(Z,Me,!1),We&&clearInterval(We)}}o.addEventListener&&o.addEventListener(Z,Me,!1);var We=setInterval(function(){Me()},$)}function ue(ce){var Pe=u(),Re=Pe.body,Me=Pe.createElement(_);Me.language=ab,Me.crossOrigin=W,Me.src=ce,webModule.__errFn&&(Me.onerror=function(){webModule.__errFn(L,new Error(bb+ce))}),Re.appendChild(Me)}Ee(function(){ue(ze)})}webModule.__startLoadingFragment=function(ze){return C(ze)},webModule.__installRunAsyncCode=function(ze){var Ee=u(),ue=Ee.body,ce=Ee.createElement(_);ce.language=ab,ce.text=ze,ue.appendChild(ce),ue.removeChild(ce)};function A(){for(var c={},d,e,f=o.getElementsByTagName(fb),g=O,h=f.length;g<h;++g){var i=f[g],j=i.getAttribute(gb),k;if(j){if(j=j.replace(hb,W),j.indexOf(ib)>=O)continue;if(j==jb){if(k=i.getAttribute(kb),k){var l,m=k.indexOf(lb);m>=O?(j=k.substring(O,m),l=k.substring(m+P)):(j=k,l=W),c[j]=l}}else if(j==mb){if(k=i.getAttribute(kb),k)try{d=eval(k)}catch(ze){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(ze){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(ze){var Ee=c[ze];return Ee==null?null:Ee},r=d,webModule.__errFn=e}function B(){function ze(We){var Te=We.lastIndexOf(rb);Te==-1&&(Te=We.length);var Ge=We.indexOf(sb);Ge==-1&&(Ge=We.length);var st=We.lastIndexOf(tb,Math.min(Ge,Te));return st>=O?We.substring(O,st+P):W}function Ee(We){if(!We.match(/^\w+:\/\//)){var Te=o.createElement(ub);Te.src=We+vb,We=ze(Te.src)}return We}function ue(){var We=__gwt_getMetaProperty(wb);return We!=null?We:W}function ce(){for(var We=o.getElementsByTagName(_),Te=O;Te<We.length;++Te)if(We[Te].src.indexOf(xb)!=-1)return ze(We[Te].src);return W}function Pe(){var We=o.getElementsByTagName(yb);return We.length>O?We[We.length-P].href:W}function Re(){var We=o.location;return We.href==We.protocol+zb+We.host+We.pathname+We.search+We.hash}var Me=ue();return Me==W&&(Me=ce()),Me==W&&(Me=Pe()),Me==W&&Re()&&(Me=ze(o.location.href)),Me=Ee(Me),Me}function C(ze){return ze.match(/^\//)||ze.match(/^[a-zA-Z]+:\/\//)?ze:webModule.__moduleBase+ze}function D(){var ze=[],Ee=O,ue=[],ce=[];function Pe(We){var Te=ce[We](),Ge=ue[We];if(Te in Ge)return Te;var st=[];for(var Qe in Ge)st[Ge[Qe]]=Qe;throw r&&r(We,st,Te),null}if(__gwt_isKnownPropertyValue=function(We,Te){return Te in ue[We]},webModule.__getPropMap=function(){var We={};for(var Te in ue)ue.hasOwnProperty(Te)&&(We[Te]=Pe(Te));return We},webModule.__computePropValue=Pe,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var Re;try{Re=Cb;var Me=Re.indexOf(Db);Me!=-1&&(Ee=parseInt(Re.substring(Me+P),$),Re=Re.substring(O,Me))}catch(We){}return webModule.__softPermutationId=Ee,C(Re+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})()},55322:function(ze,Ee,ue){"use strict";ue.d(Ee,{Ax:function(){return Me},Ds:function(){return We},KI:function(){return Ge},SI:function(){return Re},f1:function(){return Pe}});var ce=ue(12242);function Pe(st){let Qe=!0;if(st.length>0){for(let Ye=0;Ye<st.length;Ye++)if(st[Ye].compile_success==0||!st[Ye].compile_success){Qe=!1;break}}else Qe=!1;return Qe}function Re(st,Qe=""){let Ye=[];for(let yt=0;yt<st.length;yt++){let ot=st[yt],Nt=Qe?`${Qe}/${ot.name}`:`${ot.name}`;Ye.push({title:ot.name,type:ot.type,isLeaf:ot.type!=="tree",key:Nt})}return Ye}function Me(st,Qe,Ye){for(let yt=0;yt<st.length;yt++){let ot=st[yt];if(ot.key===Qe){ot.children=Ye;break}ot.children&&Me(ot.children,Qe,Ye)}return st}function We(st,Qe,Ye){let yt;return function(){let ot=this,Nt=arguments,Fe=function(){yt=null,Ye||st.apply(ot,Nt)},ne=Ye&&!yt;clearTimeout(yt),yt=setTimeout(Fe,Qe),ne&&st.apply(ot,Nt)}}const Te=!0,Ge=ce.Z.API_SERVER},44399:function(ze,Ee,ue){"use strict";ue.d(Ee,{Z:function(){return Fe}});var ce=ue(99571),Pe=ue(59301),Re=Object.defineProperty,Me=Object.defineProperties,We=Object.getOwnPropertyDescriptors,Te=Object.getOwnPropertySymbols,Ge=Object.prototype.hasOwnProperty,st=Object.prototype.propertyIsEnumerable,Qe=(ne,te,he)=>te in ne?Re(ne,te,{enumerable:!0,configurable:!0,writable:!0,value:he}):ne[te]=he,Ye=(ne,te)=>{for(var he in te||(te={}))Ge.call(te,he)&&Qe(ne,he,te[he]);if(Te)for(var he of Te(te))st.call(te,he)&&Qe(ne,he,te[he]);return ne},yt=(ne,te)=>Me(ne,We(te)),ot=(ne,te)=>{var he={};for(var se in ne)Ge.call(ne,se)&&te.indexOf(se)<0&&(he[se]=ne[se]);if(ne!=null&&Te)for(var se of Te(ne))te.indexOf(se)<0&&st.call(ne,se)&&(he[se]=ne[se]);return he},Nt=(ne,te,he)=>new Promise((se,ge)=>{var Se=Le=>{try{Ae(he.next(Le))}catch(je){ge(je)}},be=Le=>{try{Ae(he.throw(Le))}catch(je){ge(je)}},Ae=Le=>Le.done?se(Le.value):Promise.resolve(Le.value).then(Se,be);Ae((he=he.apply(ne,te)).next())});const Fe=ne=>{var te=ne,{children:he}=te,se=ot(te,["children"]);const[ge,Se]=(0,Pe.useState)(!1);return Pe.createElement(ce.ZP,yt(Ye({},se),{loading:ge,onClick:be=>Nt(void 0,null,function*(){try{Se(!0),yield se.onClick(be),Se(!1)}catch(Ae){console.error(Ae),Se(!1)}})}),he)}},95487:function(ze,Ee,ue){"use strict";var ce=ue(86204),Pe=ue.n(ce),Re=Object.defineProperty,Me=(st,Qe,Ye)=>Qe in st?Re(st,Qe,{enumerable:!0,configurable:!0,writable:!0,value:Ye}):st[Qe]=Ye,We=(st,Qe,Ye)=>Me(st,typeof Qe!="symbol"?Qe+"":Qe,Ye),Te=(st,Qe,Ye)=>new Promise((yt,ot)=>{var Nt=te=>{try{ne(Ye.next(te))}catch(he){ot(he)}},Fe=te=>{try{ne(Ye.throw(te))}catch(he){ot(he)}},ne=te=>te.done?yt(te.value):Promise.resolve(te.value).then(Nt,Fe);ne((Ye=Ye.apply(st,Qe)).next())});class Ge extends ce.EventEmitter{constructor(Qe,Ye){super(),We(this,"url"),We(this,"body"),We(this,"fullContent",""),We(this,"controller",null),We(this,"buffer",""),this.url=Qe,this.body=Ye}startStream(){return Te(this,null,function*(){this.controller=new AbortController;const{signal:Qe}=this.controller;try{const Ye=yield fetch(this.url,{method:"POST",headers:{"Content-Type":"application/json; charset=utf-8"},credentials:"include",body:JSON.stringify(this.body),signal:Qe});if(!Ye.ok)throw new Error(`\u8BF7\u6C42\u5931\u8D25: ${Ye.status}`);const yt=Ye.headers.get("content-type");if(!yt)throw new Error("\u54CD\u5E94\u5934\u7F3A\u5C11 content-type");if(yt.includes("application/json")){const Fe=yield Ye.json();this.emit("error",Fe);return}if(!yt.includes("text/event-stream"))throw new Error("\u54CD\u5E94\u6570\u636E\u683C\u5F0F\u9519\u8BEF");const ot=Ye.body.getReader(),Nt=new TextDecoder("utf-8");for(;;){const{done:Fe,value:ne}=yield ot.read();if(Fe)break;const te=Nt.decode(ne,{stream:!0});this.buffer+=te;const he=this.buffer.split(`
|
|
|
`);this.buffer=he.pop()||"";for(const se of he)if(se.startsWith("data:")){const ge=se.slice(5).trim();if(ge==="[DONE]")break;try{const Se=JSON.parse(ge);Se.data&&this.handleData(Se.data)}catch(Se){this.buffer=se+`
|
|
|
`+this.buffer,console.error("\u89E3\u6790 JSON \u5931\u8D25:",Se)}}}this.emit("done",this.fullContent)}catch(Ye){Ye.name==="AbortError"?this.emit("cancelled",this.fullContent):this.emit("error",Ye.message)}})}handleData(Qe){Qe.content&&(this.fullContent+=Qe.content,this.emit("data",{chunk:Qe,full:this.fullContent}))}cancelRequest(){var Qe;(Qe=this.controller)==null||Qe.abort()}}Ee.Z=Ge},30828:function(ze,Ee,ue){"use strict";ue.d(Ee,{Z:function(){return Nt}});var ce=ue(59301),Pe=ue(30641),Re=ue(77019),Me=ue(5269),We={smartWrp:"smartWrp___NjRcB"},Te=ue(89081),Ge=ue(46133),st=ue(44399),Qe=ue(59301),Ye=(Fe,ne,te)=>new Promise((he,se)=>{var ge=Ae=>{try{be(te.next(Ae))}catch(Le){se(Le)}},Se=Ae=>{try{be(te.throw(Ae))}catch(Le){se(Le)}},be=Ae=>Ae.done?he(Ae.value):Promise.resolve(Ae.value).then(ge,Se);be((te=te.apply(Fe,ne)).next())});const yt=`<!DOCTYPE html>
|
|
|
<html lang="en">
|
|
|
<head>
|
|
|
<meta charset="UTF-8">
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
<title>\u5FEB\u901F\u6392\u5E8F\u6F14\u793A</title>
|
|
|
<style>
|
|
|
body {
|
|
|
font-family: Arial, sans-serif;
|
|
|
text-align: center;
|
|
|
margin: 20px;
|
|
|
}
|
|
|
.array-container {
|
|
|
display: flex;
|
|
|
justify-content: center;
|
|
|
align-items: flex-end;
|
|
|
height: 300px;
|
|
|
margin-top: 20px;
|
|
|
}
|
|
|
.bar {
|
|
|
width: 30px;
|
|
|
margin: 0 2px;
|
|
|
background-color: #4caf50;
|
|
|
color: white;
|
|
|
display: flex;
|
|
|
justify-content: center;
|
|
|
align-items: center;
|
|
|
border-radius: 5px;
|
|
|
transition: all 0.3s ease;
|
|
|
}
|
|
|
.bar.sorted {
|
|
|
background-color: #ff9800;
|
|
|
}
|
|
|
.bar.pivot {
|
|
|
background-color: #f44336;
|
|
|
}
|
|
|
</style>
|
|
|
</head>
|
|
|
<body>
|
|
|
<h1>\u5FEB\u901F\u6392\u5E8F\u7B97\u6CD5\u6F14\u793A</h1>
|
|
|
<button id="start-sort">\u5F00\u59CB\u6392\u5E8F</button>
|
|
|
<div class="array-container" id="array-container"></div>
|
|
|
|
|
|
<script>
|
|
|
const array = [34, 7, 23, 32, 5, 62]; // \u56FA\u5B9A\u6570\u7EC4
|
|
|
let bars = [];
|
|
|
|
|
|
// \u521D\u59CB\u5316\u6570\u7EC4\u663E\u793A
|
|
|
function initArrayDisplay() {
|
|
|
const container = document.getElementById('array-container');
|
|
|
container.innerHTML = '';
|
|
|
bars = array.map(value => {
|
|
|
const bar = document.createElement('div');
|
|
|
bar.className = 'bar';
|
|
|
bar.style.height = \`\${value * 5}px\`;
|
|
|
bar.textContent = value;
|
|
|
container.appendChild(bar);
|
|
|
return bar;
|
|
|
});
|
|
|
}
|
|
|
|
|
|
// \u9AD8\u4EAE\u67D0\u4E2A\u8303\u56F4\u5185\u7684\u67F1\u5B50
|
|
|
function highlightBars(indices, className) {
|
|
|
indices.forEach(index => bars[index].classList.add(className));
|
|
|
}
|
|
|
|
|
|
// \u79FB\u9664\u9AD8\u4EAE
|
|
|
function removeHighlightBars(indices, className) {
|
|
|
indices.forEach(index => bars[index].classList.remove(className));
|
|
|
}
|
|
|
|
|
|
// \u5FEB\u901F\u6392\u5E8F\u4E3B\u51FD\u6570
|
|
|
async function quickSort(arr, left = 0, right = arr.length - 1) {
|
|
|
if (left >= right) return;
|
|
|
|
|
|
const pivotIndex = await partition(arr, left, right);
|
|
|
await quickSort(arr, left, pivotIndex - 1);
|
|
|
await quickSort(arr, pivotIndex + 1, right);
|
|
|
}
|
|
|
|
|
|
// \u5206\u533A\u51FD\u6570
|
|
|
async function partition(arr, left, right) {
|
|
|
const pivot = arr[right];
|
|
|
let i = left - 1;
|
|
|
|
|
|
highlightBars([right], 'pivot'); // \u9AD8\u4EAE\u57FA\u51C6\u503C
|
|
|
|
|
|
for (let j = left; j < right; j++) {
|
|
|
highlightBars([j], 'sorted'); // \u9AD8\u4EAE\u5F53\u524D\u6BD4\u8F83\u5143\u7D20
|
|
|
await sleep(500);
|
|
|
|
|
|
if (arr[j] <= pivot) {
|
|
|
i++;
|
|
|
[arr[i], arr[j]] = [arr[j], arr[i]];
|
|
|
|
|
|
// \u66F4\u65B0\u67F1\u5B50\u9AD8\u5EA6
|
|
|
bars[i].style.height = \`\${arr[i] * 5}px\`;
|
|
|
bars[i].textContent = arr[i];
|
|
|
bars[j].style.height = \`\${arr[j] * 5}px\`;
|
|
|
bars[j].textContent = arr[j];
|
|
|
|
|
|
await sleep(500);
|
|
|
}
|
|
|
|
|
|
removeHighlightBars([j], 'sorted'); // \u79FB\u9664\u9AD8\u4EAE
|
|
|
}
|
|
|
|
|
|
// \u5C06\u57FA\u51C6\u503C\u653E\u5230\u6B63\u786E\u4F4D\u7F6E
|
|
|
[arr[i + 1], arr[right]] = [arr[right], arr[i + 1]];
|
|
|
bars[i + 1].style.height = \`\${arr[i + 1] * 5}px\`;
|
|
|
bars[i + 1].textContent = arr[i + 1];
|
|
|
bars[right].style.height = \`\${arr[right] * 5}px\`;
|
|
|
bars[right].textContent = arr[right];
|
|
|
|
|
|
removeHighlightBars([right], 'pivot'); // \u79FB\u9664\u57FA\u51C6\u503C\u9AD8\u4EAE
|
|
|
highlightBars([i + 1], 'sorted'); // \u9AD8\u4EAE\u6700\u7EC8\u4F4D\u7F6E
|
|
|
await sleep(500);
|
|
|
removeHighlightBars([i + 1], 'sorted');
|
|
|
|
|
|
return i + 1;
|
|
|
}
|
|
|
|
|
|
// \u5EF6\u8FDF\u51FD\u6570
|
|
|
function sleep(ms) {
|
|
|
return new Promise(resolve => setTimeout(resolve, ms));
|
|
|
}
|
|
|
|
|
|
// \u5F00\u59CB\u6392\u5E8F\u6309\u94AE\u70B9\u51FB\u4E8B\u4EF6
|
|
|
document.getElementById('start-sort').addEventListener('click', () => {
|
|
|
quickSort(array);
|
|
|
});
|
|
|
|
|
|
// \u521D\u59CB\u5316\u9875\u9762
|
|
|
initArrayDisplay();
|
|
|
<\/script>
|
|
|
</body>
|
|
|
</html>`;function ot({open:Fe=!0,onChange:ne,defaultValue:te,placement:he,width:se,height:ge,extra:Se,onDynamic:be,showExtra:Ae=!0}){const Le=(0,ce.useRef)(null),je=(0,ce.useRef)(null),[$e,qe]=(0,ce.useState)(te||""),[nt,dt]=(0,ce.useState)(te||""),[it,bt]=(0,ce.useState)(!!Fe),[It,Ht]=(0,ce.useState)(1),ln={selectOnLineNumbers:!0};(0,ce.useEffect)(()=>{Fe&&(qe(te),dt(te),bt(!0))},[Fe,te]),(0,ce.useEffect)(()=>{$e!==""&&(clearTimeout(je.current),je.current=setTimeout(()=>{const Qt=document.createElement("iframe");if(Qt.style.width="100%",Qt.style.height="100%",Qt.style.border="0",Le.current){Le.current.innerHTML="",Le.current.appendChild(Qt);const nn=Qt.contentDocument||Qt.contentWindow.document;nn.open(),nn.write($e),nn.close()}},1e3))},[Fe,$e]);const un=Qt=>{qe(Qt),ne==null||ne(Qt,nt)};return Qe.createElement(Pe.Z,{title:"\u667A\u80FD\u52A8\u6548",placement:"right",open:it,width:Ae?700:"100%",height:ge||"100vh",rootClassName:We.smartWrp,destroyOnClose:!0,onClose:()=>bt(!1),extra:Ae&&Qe.createElement("div",null,Qe.createElement(Ge.tp,{dataSource:[{name:"\u9884\u89C8",id:1},{name:"\u4EE3\u7801",id:2}],value:It,onChange:Qt=>Ht(Qt)}),Qe.createElement(st.Z,{type:"primary",className:"ml20",onClick:()=>Ye(this,null,function*(){yield be($e,()=>{bt(!1)})})},"\u4FDD\u5B58\u81F3\u8BFE\u4EF6"))},Qe.createElement(Re.Z,{className:"h100"},Qe.createElement(Me.Z,{flex:"1",style:{background:"#f6f7fb",borderRight:"#e8eaf1 1px solid",display:It===1?"block":"none"}},Qe.createElement("div",{className:"h100",ref:Le})),Qe.createElement(Me.Z,{flex:"1",style:{display:It===2?"block":"none"}},Qe.createElement(Te.ZP,{height:"90vh",value:te,language:"html",theme:"vs",showMiniMap:!1,options:ln,onChange:un}))))}var Nt=ot},44622:function(ze,Ee,ue){"use strict";ue.d(Ee,{Z:function(){return qe}});var ce=ue(59301),Pe=ue(96536),Re=ue(77596),Me=ue(93772),We=ue(14179),Te=ue(56102),Ge={answer:"answer___UngkO",imgWrap:"imgWrap___ORTRf",codeCopy:"codeCopy___re8vm",runCode:"runCode___MYs9m"},st=ue(6767),Qe=ue(90083),Ye=ue(95827),yt=ue(30084),ot=ue(10787),Nt=ue(53122),Fe=ue(30828),ne=Object.defineProperty,te=Object.defineProperties,he=Object.getOwnPropertyDescriptors,se=Object.getOwnPropertySymbols,ge=Object.prototype.hasOwnProperty,Se=Object.prototype.propertyIsEnumerable,be=(nt,dt,it)=>dt in nt?ne(nt,dt,{enumerable:!0,configurable:!0,writable:!0,value:it}):nt[dt]=it,Ae=(nt,dt)=>{for(var it in dt||(dt={}))ge.call(dt,it)&&be(nt,it,dt[it]);if(se)for(var it of se(dt))Se.call(dt,it)&&be(nt,it,dt[it]);return nt},Le=(nt,dt)=>te(nt,he(dt)),je=(nt,dt)=>{var it={};for(var bt in nt)ge.call(nt,bt)&&dt.indexOf(bt)<0&&(it[bt]=nt[bt]);if(nt!=null&&se)for(var bt of se(nt))dt.indexOf(bt)<0&&Se.call(nt,bt)&&(it[bt]=nt[bt]);return it},qe=({onFinish:nt,value:dt,streamingStatus:it,cancelIndex:bt,loadImage:It,onDynamic:Ht})=>{const[ln,un]=(0,ce.useState)(""),[Qt,nn]=(0,ce.useState)({defaultValue:"",open:0,language:"",placement:"right",height:"100vh"}),[At,ct]=(0,ce.useState)(0),[at,rn]=(0,ce.useState)(!1),hn=dn=>dn.replace(/`(\$\$.*?\$\$)`/g,"$1").replace(/\$\$([\s\S]*?)\$\$/g,(_n,Yt)=>`<mathx data-text="${Yt.trim()}">$$${Yt.trim()}$$</mathx>`).replace(/\\\(([\s\S]*?)\\\)/g,'<mathx data-text="$1">$$$$$1$$$$</mathx>').replace(/\\\[([\s\S]*?)\\\]/g,'<mathx data-text="$1">$$$$$1$$$$</mathx>').replace(/_{2,}/g,"`$&`"),Pt=()=>{rn(!0),nt==null||nt()};(0,ce.useEffect)(()=>{const dn=It?`\u8FD9\u662F\u6839\u636E\u60A8\u7684\u63CF\u8FF0\u751F\u6210\u7684\u56FE\u7247\uFF1A
|
|
|
|
|
|
${dt}`:dt,_n=hn(dn);if(!at)if(It||!it||bt>0){un(_n),ct(_n.length),(!it||bt>0)&&!It&&Pt();return}else if((_n==null?void 0:_n.length)<4)un(_n),ct(_n.length);else if(At<_n.length){const Yt=_n.length-At,On=setInterval(()=>{un(_n.slice(0,At+2)),ct(kt=>kt+2)},Yt>10?Math.max(500/(Yt/2),20):50);return()=>clearInterval(On)}else it||Pt()},[dt,it,bt,It,At]);const pn=(0,ce.useMemo)(()=>ce.createElement("section",{className:`${Ge.answer} fadeIn animated edu_md`},ce.createElement(Pe.UG,{remarkPlugins:[yt.Z,ot.Z],rehypePlugins:[Ye.Z,Me.Z],components:{code(dn){var _n=dn,{node:Yt,inline:On,className:kt,children:jn}=_n,ai=je(_n,["node","inline","className","children"]);const et=/language-(\w+)/.exec(kt||""),De=String(jn).trim();return On||!et?ce.createElement("code",Ae({className:kt},ai),jn):ce.createElement("code",{className:Ge.codeCopy,"data-text":`\`\`\`${et?et[1]:""}
|
|
|
${jn}
|
|
|
\`\`\``},ce.createElement(Te.CopyToClipboard,{text:De,onCopy:()=>st.ZP.success({content:"\u590D\u5236\u6210\u529F",key:"copy"})},ce.createElement("button",null,"\u590D\u5236")),et[1]==="html"&&at&&ce.createElement("button",{className:Ge.runCode,onClick:()=>{nn(Ae({},Le(Ae({},Qt),{open:++Qt.open,defaultValue:De,language:et[1]})))}},"\u8FD0\u884CHTML"),ce.createElement(Re.Z,Ae({wrapLongLines:!0,style:We.Z,language:et[1],PreTag:"div",showLineNumbers:!0,lineNumberStyle:{minWidth:"40px"}},ai),De))},img({node:dn}){var _n;const Yt=(_n=dn.properties)==null?void 0:_n.src;return ce.createElement(Qe.Z,{src:Yt,width:320,"data-text":Yt,onLoad:()=>It&&setTimeout(()=>Pt(),500)})}}},at?ln:`${ln}__`)),[ln]);return ce.createElement(ce.Fragment,null,ce.createElement(Fe.Z,{defaultValue:Qt.defaultValue,open:Qt.open,language:Qt.language,height:Qt.height,onChange:(dn,_n)=>{un(ln.replaceAll(_n,dn))},onDynamic:Ht}),pn)}},49882:function(ze,Ee,ue){"use strict";ue.d(Ee,{Z:function(){return We}});var ce=ue(59301),Pe=ue(59895),Re={draggableImage:"draggableImage___vcTso",img:"img___xAyno",close:"close___WUtfj",extraNode:"extraNode___tnBrt"},We=({src:Te,onClick:Ge,topPercentage:st=.62,draggableExtraNode:Qe})=>{const Ye=(0,ce.useRef)(null),yt=(0,ce.useRef)(!1),ot=(0,ce.useRef)(!1),[Nt,Fe]=(0,ce.useState)(window.innerHeight*st),[ne,te]=(0,ce.useState)(!1),he=10;return(0,ce.useEffect)(()=>{if(Ye.current){let se=function(Le){var je;yt.current=!0,Ae=Le.pageY,be=Le.pageY-(((je=Ye.current)==null?void 0:je.getBoundingClientRect().top)||0),(0,Pe.kk)("none"),document.onselectstart=function(){return!1}},ge=function(){yt.current&&!ot.current&&Ge&&Ge(),yt.current=!1,ot.current=!1,(0,Pe.kk)("auto"),document.onselectstart=null},Se=function(Le){var je;if(yt.current){const qe=Le.pageY-be,nt=window.innerHeight-(((je=Ye.current)==null?void 0:je.offsetHeight)||0)-50,dt=50;if(!ot.current&&Math.abs(Ae-Le.pageY)>he&&(ot.current=!0),ot.current){let it=Math.max(dt,Math.min(qe,nt));Fe(it)}}},be=0,Ae=0;return Ye.current.addEventListener("mousedown",se),document.addEventListener("mousemove",Se),document.addEventListener("mouseup",ge),()=>{var Le,je;(je=(Le=Ye==null?void 0:Ye.current)==null?void 0:Le.removeEventListener)==null||je.call(Le,"mousedown",se),document.removeEventListener("mousemove",Se),document.removeEventListener("mouseup",ge)}}},[Ge]),(0,ce.useEffect)(()=>{const se=()=>{Fe(window.innerHeight*st)};return window.addEventListener("resize",se),()=>{window.removeEventListener("resize",se)}},[st]),ce.createElement("div",{className:Re.draggableImage,style:{top:`${Nt}px`,display:ne?"none":"block",cursor:yt.current?"grabbing":"grab"},ref:Ye},Qe&&ce.createElement("div",{className:Re.extraNode,onMouseUp:se=>se.stopPropagation(),onMouseDownCapture:se=>se.stopPropagation()},Qe),ce.createElement("img",{className:Re.img,src:Te,width:60,draggable:"false"}),ce.createElement("i",{className:`iconfont icon-tupianguanbi ${Re.close}`,onMouseUp:se=>{se.stopPropagation(),te(!0)}}))}},30409:function(ze,Ee,ue){"use strict";ue.d(Ee,{Z:function(){return Ae}});var ce=ue(59301),Pe={select:"select___Kt_GE",box:"box___S5_ly",text:"text___dtZDv",itemWrap:"itemWrap___xmw7x",item:"item___io6Bx",active:"active___nHRTI"},Re=ue(77736),Me=Object.defineProperty,We=Object.getOwnPropertySymbols,Te=Object.prototype.hasOwnProperty,Ge=Object.prototype.propertyIsEnumerable,st=(Le,je,$e)=>je in Le?Me(Le,je,{enumerable:!0,configurable:!0,writable:!0,value:$e}):Le[je]=$e,Qe=(Le,je)=>{for(var $e in je||(je={}))Te.call(je,$e)&&st(Le,$e,je[$e]);if(We)for(var $e of We(je))Ge.call(je,$e)&&st(Le,$e,je[$e]);return Le};const Ye=Le=>React.createElement("svg",Qe({className:"logo1_svg__icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:200,height:200},Le),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 yt="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+PHBhdGggZD0iTTEwMTkuNDA3IDYyMC44IDg5MS44MzQgMzk3Ljc4MSA5NDYuNDkgMjkzLjEyYTI5LjA5OSAyOS4wOTkgMCAwIDAgNi40LTM2LjM5NWwtNzAuMTg3LTEyNi41OTJhMzAuMDggMzAuMDggMCAwIDAtMjQuNTc2LTEzLjY1M0g1OTcuNTE5TDUzOS4xOTQgMTQuNTA3YTI3LjM1IDI3LjM1IDAgMCAwLTIwLjkwNy0xNC41NUgzODAuNjQ0YTI5LjE0MSAyOS4xNDEgMCAwIDAtMjQuNjE4IDE0LjU1djUuNTQ2TDIyNS44MDYgMjQzLjAzSDEwMC45MjNhMjkuMTg0IDI5LjE4NCAwIDAgMC0yNS41MTUgMTMuNjU0TDMuNDI4IDM4NC4wODVhMzIuNzY4IDMyLjc2OCAwIDAgMCAwIDI5LjE4NEwxMzIuODM2IDYzOC4wOCA3NC41MTEgNzQwLjA1M2EzMi43NjggMzIuNzY4IDAgMCAwIDAgMjkuMDU2bDY2LjUxNyAxMTYuNTY2YTI5LjkwNyAyOS45MDcgMCAwIDAgMjUuNTE1IDE0LjUwNkg0MjcuMTVsNjIuODQ4IDEwOS4yMjdBMzAuMDggMzAuMDggMCAwIDAgNTEyLjc4MyAxMDI0SDY2MC40MWEyOS4xNDEgMjkuMTQxIDAgMCAwIDI0LjU3Ni0xNC41NWwxMjguNDY5LTIyNC44NTNoMTE0Ljc3M2EzMS45MTUgMzEuOTE1IDAgMCAwIDI0LjY2Mi0xNS40NDVsNjYuNDc0LTExNy40MTlhMjguMTYgMjguMTYgMCAwIDAgMC0zMC45NzZsLjA0My4wNDN6bS0xNjEuMjggMTQuNTkyTDc5MS42MSA1MTIuNDY5IDUxOC4yODcgOTkzLjk2M2wtNzQuNzUyLTEyMi44OGgtMjczLjI4bDY1LjYyMS0xMTkuMjExaDEzOS4zOTJMMTAxLjg2IDI3Mi4yMTNoMTQzLjA2MkwzODAuNjg3IDMwLjA4bDY4LjM1MiAxMTkuMjUzLTcwLjE4NyAxMjIuODhIOTI1LjU0bC02OS4yMDUgMTIxLjk0MiAxMzcuNiAyNDEuMTk0SDg1OC4xN3oiIGZpbGw9IiM2MDVCRUMiLz48cGF0aCBkPSJtNDk5Ljk4MyA2OTkuMzA3IDE3NC4zNzktMjc0LjczMUgzMjQuNzA4eiIgZmlsbD0iIzYwNUJFQyIvPjwvc3ZnPg==",ot=Object.defineProperty,Nt=Object.getOwnPropertySymbols,Fe=Object.prototype.hasOwnProperty,ne=Object.prototype.propertyIsEnumerable,te=(Le,je,$e)=>je in Le?ot(Le,je,{enumerable:!0,configurable:!0,writable:!0,value:$e}):Le[je]=$e,he=(Le,je)=>{for(var $e in je||(je={}))Fe.call(je,$e)&&te(Le,$e,je[$e]);if(Nt)for(var $e of Nt(je))ne.call(je,$e)&&te(Le,$e,je[$e]);return Le};const se=Le=>React.createElement("svg",he({className:"logo2_svg__icon",viewBox:"0 0 1417 1024",xmlns:"http://www.w3.org/2000/svg",width:276.758,height:200},Le),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 ge="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDE0MTcgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMjc2Ljc1OCIgaGVpZ2h0PSIyMDAiPjxwYXRoIGQ9Ik0xMzY0LjQ0IDExOC43MDVjLTE0LjE3OC02LjY5NS0yMC4zMjIgNi4wNjUtMjguNTkzIDEyLjUyNS0yLjkxNCAyLjA0OC01LjI3NyA0LjcyNi03LjY0IDcuMjQ2LTIwLjcxNyAyMS4yNjgtNDQuODk5IDM1LjIxLTc2LjY0MyAzMy41NTZhMTUyLjU3NiAxNTIuNTc2IDAgMCAwLTEyMC42NzQgNDUuMzcxYy03LjQwNC00MS44MjYtMzIuMDYtNjYuODc1LTY5LjU1My04Mi44NjUtMTkuNjkzLTguMzUtMzkuNTQzLTE2LjctNTMuMjQ4LTM0LjczNy05LjYxLTEyLjkxOS0xMi4yODgtMjcuMzMzLTE3LjAxNS00MS41MTItMy4xNS04LjUwNy02LjE0NC0xNy4yNS0xNi4zODQtMTguNjY4LTExLjE4NS0xLjczMy0xNS41MTcgNy4yNDctMTkuOTI4IDE0LjczYTE4OS4xMjUgMTg5LjEyNSAwIDAgMC0yMy41NTIgOTguNDYxYzEuNTc1IDc2Ljg4IDM1LjQ0NiAxMzguMDgzIDEwMi42MzYgMTgxLjY0MiA3LjU2MiA0Ljk2MyA5LjUzMSA5LjkyNSA3LjA5IDE3LjI1LTQuNDkgMTQuOTY3LTkuOTI2IDI5LjU0LTE0LjgxIDQ0LjU4NC0yLjk5MiA5LjYxLTcuNTYxIDExLjY1OC0xOC4yNzQgNy40ODNhMzA5LjQ4NCAzMDkuNDg0IDAgMCAxLTk2Ljg4Ni02My4wMTVjLTQ3LjgxMy00NC40MjYtOTEuMDU3LTkzLjM0Mi0xNDQuOTM1LTEzMS43MDJhNjM1LjgyNSA2MzUuODI1IDAgMCAwLTM4LjM2LTI1LjIwN2MtNTQuOTgyLTUxLjIgNy4xNjctOTMuMjYyIDIxLjU4Mi05OC4yMjUgMTQuOTY2LTUuMTk5IDUuMjc3LTIzLjE1OC00My40MDItMjIuOTIyLTQ4LjY4LjIzNy05My4xODQgMTUuODMzLTE0OS45NzcgMzYuNjI4LTguNDI4IDMuMTUtMTcuMDkyIDUuNTE0LTI1Ljk5MyA3LjMyNmE1NTcuODQ0IDU1Ny44NDQgMCAwIDAtMTYwLjc2OC01LjQzNmMtMTA1LjE1NyAxMS4yNjQtMTg5LjIwNCA1OC45Mi0yNTAuOTYgMTQwLjM2Ny03NC4yIDk3LjgzMi05MS42ODcgMjA4Ljk3NS03MC4yNjEgMzI1LjAwMiAyMi40NDkgMTIyLjI1IDg3LjQzNCAyMjMuNDY4IDE4Ny40NyAzMDIuNjMxIDEwMy41ODIgODIgMjIyLjkxNyAxMjIuMTcyIDM1OS4xODggMTE0LjQ1MiA4Mi43MDgtNC41NjggMTc0Ljc5LTE1LjIwMiAyNzguNjg2LTk5LjQ4NSAyNi4xNTEgMTIuNDQ1IDUzLjY0MiAxNy40ODYgOTkuMjQ5IDIxLjI2NyAzNS4xMzEgMy4wNzIgNjkuMDAyLTEuNzMzIDk1LjE1My02LjkzMSA0MC45Ni04LjM1IDM4LjIwMy00NC43NDEgMjMuMzE2LTUxLjQzNy0xMjAuMjAyLTUzLjcyLTkzLjgxNC0zMS44MjItMTE3LjgzOS00OS42MjQgNjEuMTI1LTY5LjMxNyAxNTMuMjA2LTE0MS4zMTIgMTg5LjIwNC0zNzQuNzA2IDIuODM1LTE4LjUxLjQ3Mi0zMC4xNjggMC00NS4yMTMtLjIzNy05LjEzNyAxLjk2OS0xMi42MDMgMTIuOTE4LTEzLjcwNmEyNDAuMDg5IDI0MC4wODkgMCAwIDAgODYuMTczLTI1LjQ0MmM3Ny45ODItNDAuODAzIDEwOS4zMzItMTA3LjkxNCAxMTYuNzM2LTE4OC4yNTkgMS4xMDMtMTIuMjg4LS4yMzYtMjQuOTctMTMuNzA1LTMxLjQyOXpNNjg1LjQ1IDg0Mi4wNDNDNTY5LjEwOCA3NTQuMjE1IDUxMi41NSA3MjUuMzA3IDQ4OS4xNTcgNzI2LjQ5Yy0yMS44MiAxLjI2LTE3Ljk2IDI1LjIwNi0xMy4xNTUgNDAuODAyIDUuMDQyIDE1LjQzOSAxMS41OCAyNi4wNzMgMjAuNzE3IDM5LjYyMSA2LjMwMSA4LjkgMTAuNzkxIDIyLjIxMy02LjMwMiAzMi4yOTUtMzcuNDk0IDIyLjIxMy0xMDIuNzk0LTcuNTYxLTEwNS43ODctOC45OC03Ni4wMTItNDIuOTI5LTEzOS40MjEtOTkuNTY0LTE4NC4yNDEtMTc2Ljk5NGE1MjMuODk0IDUyMy44OTQgMCAwIDEtNzIuNDY4LTIzOS45M2MtMS4wMjQtMjAuNTYgNS4yNzgtMjcuODg1IDI2LjcwMy0zMS41ODdhMjcyLjE0OCAyNzIuMTQ4IDAgMCAxIDg1LjMwNy0yLjEyN2MxMTguOTQyIDE2LjY5OSAyMjAuMTYgNjcuNzQxIDMwNS4wNzMgMTQ4LjQ4IDQ4LjQ0MyA0Ni4wMDEgODUuMDcxIDEwMC45ODIgMTIyLjg4IDE1NC43MDMgNDAuMTczIDU3LjAyOSA4My4zMzggMTExLjQ1OCAxMzguMzIgMTU1Ljk2MyAxOS4zNzYgMTUuNjc1IDM0Ljg5NCAyNy41NjkgNDkuNzgxIDM2LjIzNC00NC43NCA0LjgwNS0xMTkuNDE0IDUuODI5LTE3MC40NTYtMzIuOTI2em01NS45MjYtMzQ0LjYxNWMwLTUuMzU3IDIuNzU3LTEwLjM5OCA3LjMyNi0xMy40N2ExNy43MjMgMTcuNzIzIDAgMCAxIDIyLjEzNCAyLjA0OGMzLjA3MiAyLjkxNSA0LjgwNSA3LjA5IDQuODA1IDExLjQyMmExNi43NzggMTYuNzc4IDAgMCAxLTE3LjI1IDE2LjU0MSAxNy4zMyAxNy4zMyAwIDAgMS0xMi4xMzEtNC44ODMgMTUuOTExIDE1LjkxMSAwIDAgMS00Ljg4NC0xMS42NTh6bTE3My41MjkgODUuNDY0YTEwNC4zNyAxMDQuMzcgMCAwIDEtMzMuMDA1IDguNTg2IDcxLjQ0NCA3MS40NDQgMCAwIDEtNDQuNTA0LTEzLjU0OGMtMTUuMjgyLTEyLjI4OC0yNi4yMy0xOS4xNDEtMzAuNzItNDAuNjQ1YTg5LjE2NyA4OS4xNjcgMCAwIDEgLjc4Ny0zMS40MjljMy45MzktMTcuNDg3LS4zOTMtMjguNzUtMTMuMzEyLTM4LjkxMi0xMC40NzYtOC4zNS0yMy43MS0xMC42MzQtMzguMzYtMTAuNjM0YTMyLjA2IDMyLjA2IDAgMCAxLTE0LjE3OS00LjE3NWMtNi4xNDQtMi45MTQtMTEuMTA2LTEwLjI0LTYuMzAxLTE5LjE0YTYwLjE4IDYwLjE4IDAgMCAxIDEwLjcxMi0xMS4yNjVjMTkuODUtMTAuNzkgNDIuNjkzLTcuMjQ2IDYzLjg4Mi43ODggMTkuNjkzIDcuNzk4IDM0LjUwMSAyMS44OTggNTUuOTI2IDQxLjkwNSAyMS43NCAyNC4xODMgMjUuNjggMzAuOCAzOC4xMjUgNDguOTE2IDkuODQ2IDE0LjE3OSAxOC43NDcgMjguNzUgMjQuODkgNDUuNDUgMy43MDMgMTAuMzk3LTEuMTAyIDE4LjkwNS0xMy45NDEgMjQuMTAzeiIgZmlsbD0iIzRENkJGRSIvPjwvc3ZnPg==",Se=ue(59301),Ae=({value:Le,onChange:je})=>{const[$e,qe]=(0,ce.useState)(!1),nt=[{name:"\u901A\u4E49\u5343\u95EE",key:"qwen-max",img:yt},{name:"DeepSeek R1-671B",key:"deepseek-r1",img:ge}],dt=nt.find(it=>it.key===Le);return Se.createElement("div",{className:Pe.select},Se.createElement(Re.Z,{size:10},Se.createElement("span",{className:"c-grey-333 font16"},"\u6A21\u578B"),Se.createElement("div",{className:Pe.box,onMouseLeave:()=>qe(!1)},Se.createElement("div",{className:Pe.text,onClick:()=>qe(!0)},Se.createElement("img",{src:dt.img,width:20}),Se.createElement("span",null,dt.name),Se.createElement("b",{className:"iconfont icon-zhankai6"})),$e&&Se.createElement("div",{className:Pe.itemWrap},Se.createElement("aside",null,nt.map(it=>Se.createElement("div",{key:it.key,className:`${Pe.item} ${it.key===Le?Pe.active:""}`,onClick:bt=>{bt.stopPropagation(),je(it.key),qe(!1)}},Se.createElement("img",{src:it.img,width:20}),Se.createElement("span",null,it.name))))))))}},76085:function(ze,Ee,ue){"use strict";ue.d(Ee,{Z:function(){return Ge}});var ce=ue(59301),Pe={reasoning:"reasoning___S0mKl",btn:"btn____CIJG",content:"content___CIAh9"},Re=ue(29787),Me=ue(59301),We=(st,Qe,Ye)=>new Promise((yt,ot)=>{var Nt=te=>{try{ne(Ye.next(te))}catch(he){ot(he)}},Fe=te=>{try{ne(Ye.throw(te))}catch(he){ot(he)}},ne=te=>te.done?yt(te.value):Promise.resolve(te.value).then(Nt,Fe);ne((Ye=Ye.apply(st,Qe)).next())}),Ge=({value:st="",streamingStatus:Qe,onFinish:Ye,cancelIndex:yt,time:ot,loading:Nt,loadAll:Fe})=>{const[ne,te]=(0,ce.useState)(""),[he,se]=(0,ce.useState)(!0),ge=(0,ce.useRef)(st),Se=(0,ce.useRef)(Qe),be=(0,ce.useRef)(0),Ae=(0,ce.useRef)(null),[Le,je]=(0,ce.useState)(!1),$e=70;(0,ce.useEffect)(()=>{Se.current=Qe},[Qe]),(0,ce.useEffect)(()=>{ge.current=st},[st]),(0,ce.useEffect)(()=>{if(!Qe){te(ge.current);return}return je(!0),Ae.current=setInterval(qe,$e),()=>{clearInterval(Ae.current)}},[]),(0,ce.useEffect)(()=>{Le&&(te(ge.current),clearInterval(Ae.current),je(!1),Ye())},[yt]);const qe=()=>We(void 0,null,function*(){const nt=ge.current[be.current];nt!==void 0?(te(dt=>dt+nt),be.current++,clearInterval(Ae.current),Ae.current=setInterval(qe,280/(ge.current.length-be.current))):Se.current===!1&&(te(ge.current),clearInterval(Ae.current),je(!1),Ye())});return Me.createElement("div",{className:`${Pe.reasoning} fadeIn animated`},Me.createElement("div",{className:Pe.btn,onClick:()=>se(!he)},Me.createElement("i",{className:"iconfont icon-shendusikao"}),ot?Me.createElement("span",null,"\u5DF2\u6DF1\u5EA6\u601D\u8003\uFF08\u7528\u65F6 ",ot," \u79D2\uFF09"):Me.createElement("span",null,"\u601D\u8003\u4E2D..."),he?Me.createElement("b",{className:"iconfont icon-shouqi6"}):Me.createElement("b",{className:"iconfont icon-zhankai6"})),Nt&&Me.createElement(Re.Z,{spinning:!0,className:"mt20"}),he&&!Nt&&Me.createElement("div",{className:Pe.content},ne,Le?Me.createElement("span",{className:"aiBlink"},"__"):""))}},6858:function(ze,Ee,ue){"use strict";ue.d(Ee,{Z:function(){return hn}});var ce=ue(59301),Pe=ue(30641),Re=ue(6767),Me=ue(14566),We=ue(62957),Te=ue(25399),Ge=ue(37568),st=ue(99571),Qe=ue(29787),Ye=ue(584),yt=ue(93725),ot=ue(75727),Nt=ue(92310),Fe=ue.n(Nt),ne=ue(44622),te=ue(76085),he=ue(30409),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"},ge=ue(24092),Se=ue(59895),be=ue(49882),Ae=ue(37166),Le=ue(28984),je=ue(71986),$e=ue(12242),qe=ue(56102),nt=ue(95487),dt=ue(58617),it=ue(32050),bt=Object.defineProperty,It=Object.defineProperties,Ht=Object.getOwnPropertyDescriptors,ln=Object.getOwnPropertySymbols,un=Object.prototype.hasOwnProperty,Qt=Object.prototype.propertyIsEnumerable,nn=(Pt,pn,dn)=>pn in Pt?bt(Pt,pn,{enumerable:!0,configurable:!0,writable:!0,value:dn}):Pt[pn]=dn,At=(Pt,pn)=>{for(var dn in pn||(pn={}))un.call(pn,dn)&&nn(Pt,dn,pn[dn]);if(ln)for(var dn of ln(pn))Qt.call(pn,dn)&&nn(Pt,dn,pn[dn]);return Pt},ct=(Pt,pn)=>It(Pt,Ht(pn)),at=(Pt,pn,dn)=>new Promise((_n,Yt)=>{var On=ai=>{try{jn(dn.next(ai))}catch(et){Yt(et)}},kt=ai=>{try{jn(dn.throw(ai))}catch(et){Yt(et)}},jn=ai=>ai.done?_n(ai.value):Promise.resolve(ai.value).then(On,kt);jn((dn=dn.apply(Pt,pn)).next())}),hn=({title:Pt="\u5934\u6B4CAI",placeholder:pn,hideUpload:dn,hideInputBox:_n,aiIcon:Yt=Ae,userIcon:On=Le,dragIcon:kt=je,children:jn,fetchUrl:ai,fetchData:et={},extraAnswerAction:De,showDefaultTips:ke=!0,onOpen:Xe,onClose:ut,loadingOption:Ue,showPreference:gt=!1,initMessage:_t,customRequest:bn,visible:xn,width:Lt=1200,isCheckRestrictNumber:Zt=!1,headNode:Vt,headFunctionNode:fn,showRedraw:Pn,showEdit:yn,promptPropName:Mt="prompt",topPercentage:zn,showSwitchingModel:qn=!1,showImageGenerator:Rn=!1,showLookHistory:Zn=!1,fetchListObject:Ai,customPreference:Yn,customDataNode:Et,showAddSession:vi,historyId:Ri,draggableExtraNode:sn,drawerExtraNode:Xi,menuExtraFunctionNode:cr,showSceneAwareness:fr=!1,ReactComponent:kn=Pe.Z,topFunctionNode:Or,footerContainerStyle:kr,chatContainerStyle:Wi={},showCodePreview:lr=!1,showSource:wr=!0,onSendMessage:Ie,onDynamic:Yi=()=>{}})=>{var Ei,rr;const[Br,Gr]=(0,ce.useState)(!1),[yr,Vi]=(0,ce.useState)("qwen-max"),[hi,Jt]=(0,ce.useState)([]),[Wt,jt]=(0,ce.useState)([]),[gi,ii]=(0,ce.useState)(!1),[Pi,In]=(0,ce.useState)(!1),[fi,on]=(0,ce.useState)(!1),[Gt,li]=(0,ce.useState)([]),[vt,Sn]=(0,ce.useState)(""),[ri,ki]=(0,ce.useState)(0),[zt,wn]=(0,ce.useState)(void 0),[oi,qt]=(0,ce.useState)(!1),[Be,Mi]=(0,ce.useState)(null),[ui,Tn]=(0,ce.useState)(""),Ki=(0,ce.useRef)(),er=(0,ce.useRef)(null),or=(0,ce.useRef)(null),[Cn,Kt]=(0,ce.useState)(!1),[sr,ro]=(0,ce.useState)(!1),[mn,wi]=(0,ce.useState)(!1),[_i,Ji]=(0,ce.useState)(!1),[Gi,ir]=(0,ce.useState)(!1),[Fr,Cr]=(0,ce.useState)(0),Ir=(0,ce.useRef)(null),Ur=(0,ce.useRef)(!1),Dn=(0,ce.useRef)(null),[Zr,Bn]=(0,ce.useState)(void 0),[qi,ur]=(0,ce.useState)(!0),[gr,xo]=(0,ce.useState)(Lt-28),[yo,mo]=(0,ce.useState)(!1),[bo,cn]=(0,ce.useState)(!0),[Fn,an]=(0,ce.useState)([]),Je=(0,ce.useRef)([]),ci=(0,ce.useRef)(null),Qn=(0,ce.useRef)(null),yi=(0,ce.useRef)(!1),Ci=gr-22,Fi=vt==null?void 0:vt.split(`
|
|
|
`).length,{onAdd:Vn,onGetList:pi,onListClick:mi,onListDelete:xi,onListDealData:bi}=Ai||{},tr=50,zi=10,Bi={maxCount:tr,showUploadList:!1,withCredentials:!0,openFileDialogOnClick:!1,fileList:hi,multiple:!0,accept:".doc,.docx,.md,.txt,.pdf,.xlsx,.xls",beforeUpload:Ut=>at(void 0,null,function*(){var Ni,Qi,Pr,co;const Qr=(co=(Pr=(Qi=(Ni=Ut==null?void 0:Ut.name)==null?void 0:Ni.split("."))==null?void 0:Qi.slice(-1))==null?void 0:Pr[0])==null?void 0:co.toLowerCase(),Mo=["doc","docx","md","pdf","txt","xlsx","xls"].includes(Qr);return Ut.size==0?(Re.ZP.warning("\u6587\u4EF6\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A"),Me.default.LIST_IGNORE):Mo?Ut.size/1024/1024>100?(Re.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:(Re.ZP.warning("\u76EE\u524D\u652F\u6301txt\u3001md\u3001doc\u3001docx\u3001pdf\u3001xlsx\u3001xls\u6587\u4EF6"),Me.default.LIST_IGNORE)}),onChange:({fileList:Ut})=>{Jt(Ut)},action:`${(Ei=$e.Z)==null?void 0:Ei.API_SERVER}/api/intelligent_imports/upload_file.json`},Ln={maxCount:zi,showUploadList:!1,withCredentials:!0,openFileDialogOnClick:!1,fileList:Wt,multiple:!0,accept:".jpg,.png,",beforeUpload:Ut=>{var Ni,Qi,Pr,co;const Qr=(co=(Pr=(Qi=(Ni=Ut==null?void 0:Ut.name)==null?void 0:Ni.split("."))==null?void 0:Qi.slice(-1))==null?void 0:Pr[0])==null?void 0:co.toLowerCase(),Mo=["jpg","png"].includes(Qr);return Ut.size==0?(Re.ZP.warning("\u6587\u4EF6\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A"),Me.default.LIST_IGNORE):Mo?Ut.size/1024/1024>10?(Re.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:(Re.ZP.warning("\u76EE\u524D\u652F\u6301jpg\u3001png"),Me.default.LIST_IGNORE)},onChange:({fileList:Ut})=>{jt(Ut)},action:`${(rr=$e.Z)==null?void 0:rr.API_SERVER}/api/ai/generals/update_file.json`};(0,ce.useEffect)(()=>{if(!Gt.length||!Ki.current)return;const Ut=Gt[Gt.length-1];Ut!=null&&Ut.loading&&(Ki.current.scrollTop=Ki.current.scrollHeight)},[Gt.length]),(0,ce.useEffect)(()=>{if(!Ki.current||!Ir.current)return;const Ut=new IntersectionObserver(([Ni])=>{ur(Ni.isIntersecting)},{root:Ki.current,rootMargin:"70px",threshold:0});return Ut.observe(Ir.current),()=>{Ir.current&&Ut.unobserve(Ir.current)}},[Ki.current,Ir.current]),(0,ce.useEffect)(()=>{if(!Cn)return;const Ut=Ki.current,Ni=Dn.current;Ur.current=!1;let Qi=Ut.scrollTop;const Pr=()=>{const{scrollTop:Qr,scrollHeight:mr,clientHeight:Mo}=Ut;Qr>Qi?Qr+Mo>=mr-50&&(Ut.scrollTop=Ut.scrollHeight,Ur.current=!1):Qr<Qi&&(Ur.current=!0),Qi=Qr};Ut.addEventListener("scroll",Pr);const co=new ResizeObserver(()=>{Ur.current||(Ut.scrollTop=Ut.scrollHeight)});return co.observe(Ni),()=>{var Qr;co.unobserve(Ni),(Qr=Ut==null?void 0:Ut.removeEventListener)==null||Qr.call(Ut,"scroll",Pr)}},[Cn]),(0,ce.useEffect)(()=>{!Cn&&Je.current.length&&(li([...Gt,...Je.current]),Je.current=[])},[Cn]),(0,ce.useEffect)(()=>{if(!Ki.current)return;const Ut=new ResizeObserver(()=>{var Ni;Ki.current&&xo((Ni=Ki.current)==null?void 0:Ni.offsetWidth)});return Ut.observe(Ki.current),()=>{Ki.current&&Ut.unobserve(Ki.current)}},[Ki.current]),(0,ce.useEffect)(()=>{typeof xn=="boolean"&&Gr(xn)},[xn]),(0,ce.useEffect)(()=>{var Ut;if(er.current&&Be!==null){er.current.focus();const Ni=(Ut=er.current.resizableTextArea)==null?void 0:Ut.textArea;Ni&&(Ni.selectionStart=Ni.selectionEnd=Ni.value.length)}},[Be]),(0,ce.useEffect)(()=>{Fi<5&&qt(!1)},[Fi]),(0,ce.useEffect)(()=>{Br&&_t&&(li(Oi(_t)),ii(!0),vo(_t,{history:[]})),Br&&(Hr(),Ri?Oo(Ri):vi&&!Zr&&gn()),Br||ar()},[Br]);const Oi=(Ut="",Ni=[],Qi=[])=>{const Pr=Date.now();return[{text:Ut,key:Pr,sender:"user",fileList:Ni,imageList:Qi,show:!0},{loading:!0,key:Pr,sender:"AI",show:!0,model:yr,imageGenerator:_i,thinkingEnabled:sr,codePreview:mn}]},ar=()=>{Tn(""),Mi(null),Jt([]),jt([]),Sn("")},_r=()=>{if(Xe){Xe({chatData:Gt,setChatData:li,setLoading:ii,getData:vo,renderChatItems:Oi,handleAdd:gn,identifier:Zr});return}Gr(!0)},Lr=()=>{if(cn(!0),ut){ut();return}Gr(!1)},Wr=()=>{qt(!oi)},Hr=()=>at(void 0,null,function*(){if(!Zt)return;const Ut=yield(0,ge.ZP)("/api/intelligent_imports/check_number.json",{method:"get"});(Ut==null?void 0:Ut.status)===0&&(Ut==null?void 0:Ut.total_number)!==-1&&(ki((Ut==null?void 0:Ut.total_number)-(Ut==null?void 0:Ut.remaining_number)),wn(Ut==null?void 0:Ut.total_number))}),jr=()=>{We.default.info({title:"\u63D0\u793A",icon:null,okText:"\u6211\u77E5\u9053\u4E86",width:510,centered:!0,content:ce.createElement("div",null,ce.createElement("div",{style:{color:"#FA6400"}},"\u60A8\u5DF2\u8FBE\u5230\u667A\u80FD\u52A9\u6559\u7684\u4F7F\u7528\u6B21\u6570"),ce.createElement("div",{className:"c-grey-333 mt5"},"\u667A\u80FD\u52A9\u6559\u6BCF\u5929\u9650\u5236\u4F7F\u7528",zt,"\u6B21\uFF0C\u8BF7\u660E\u5929\u518D\u8BD5\u3002"))})},So=Ut=>Ut.reduce((Qi,Pr)=>{if(Pr.sender==="user"){const co=Ut.find(Qr=>Qr.key===Pr.key&&Qr.sender==="AI");co&&(co!=null&&co.text)&&!(co!=null&&co.error)&&Qi.push({question:Pr.text,answer:co.text})}return Qi},[]),vo=(...Ut)=>at(void 0,[...Ut],function*(Ni="",Qi={},Pr=Gt){if(bn&&(yield bn({mes:Ni,setChatData:li,fileList:hi,body:Qi,checkNum:Hr,setLoading:ii,bodyChatData:Pr,setTyping:Kt,setImageGenerator:Ji,renderChatItems:Oi})),!bn){const co=hi==null?void 0:hi.map(Do=>{var ho;return(ho=Do==null?void 0:Do.response)==null?void 0:ho.file_id}),Qr=Wt==null?void 0:Wt.map(Do=>{var ho;return(ho=Do==null?void 0:Do.response)==null?void 0:ho.data}),mr=Qi.history||So(Pr),Mo=At(At({identifier:Zr,response_mode:"streaming",model:yr,scene_awareness:Gi,thinking_enabled:sr,image_generator:_i,code_preview:mn,file_ids:co,image_list:Qr,history:mr,[Mt]:Ni},et),Qi),Jo=Object.fromEntries(Object.entries(Mo).filter(([Do,ho])=>ho!==void 0));or.current=new nt.Z($e.Z.API_SERVER+ai,Jo),yield new Promise((Do,ho)=>{let na=null,as=null;or.current.on("data",Po=>{Kt(!0);const{chunk:{content:ka,type:bs,created:Ds,msg:fa}}=Po,Gs=fa==="error";bs==="thinking"&&(na=na||Ds,li(pl=>[...pl].map((Es,As)=>As===pl.length-1?ct(At({},Es),{reasoning:(Es.reasoning||"")+ka,loading:!1,hideAnswer:!0,error:Gs}):Es))),bs==="text"&&(as=as||Ds,li(pl=>[...pl].map((Es,As)=>As===pl.length-1?ct(At({},Es),{text:(Es.text||"")+ka,loading:!1,startTime:na,endTime:as,error:Gs}):Es)))}),or.current.on("done",()=>{Do()}),or.current.on("error",Po=>{let ka="\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(Po)==="[object Object]"&&Po.status===-9&&(ka=Po==null?void 0:Po.message),li(bs=>[...bs].map((Ds,fa)=>fa===bs.length-1?ct(At({},Ds),{text:ka,loading:!1,error:!0}):Ds)),Do()}),or.current.on("cancelled",()=>{Do()}),or.current.startStream()})}Hr(),ii(!1)}),ra=Ut=>{Sn(Ut.target.value)},tn=(Ut,Ni)=>{if(ar(),ii(!0),Ut==="edit"){Je.current=Gt.slice(Ni+2);const Qi=Gt.splice(Ni),{fileList:Pr=[],imageList:co=[]}=(Qi==null?void 0:Qi[0])||{},Qr=Pr.map(Jo=>{var Do;return(Do=Jo.response)==null?void 0:Do.file_id}),mr=co.map(Jo=>{var Do;return(Do=Jo.response)==null?void 0:Do.data}),Mo={history:So(Gt),file_ids:Qr,image_list:mr,edit:!0};li([...Gt,...Oi(ui,Pr,co)]),vo(ui,Mo,Gt)}if(Ut==="redraw"){Je.current=Gt.slice(Ni+1);const Qi=Gt.splice(Ni-1),{text:Pr,fileList:co=[],imageList:Qr=[]}=(Qi==null?void 0:Qi[0])||{},mr=co.map(Do=>{var ho;return(ho=Do.response)==null?void 0:ho.file_id}),Mo=Qr.map(Do=>{var ho;return(ho=Do.response)==null?void 0:ho.data}),Jo={history:So(Gt),file_ids:mr,image_list:Mo,edit:!0};li([...Gt,...Oi(Pr,co,Qr)]),vo(Pr,Jo,Gt)}},Xr=()=>{if(vt.trim()!==""){ar(),ii(!0);const Ut=hi.filter(Qi=>Qi.status==="done"),Ni=Wt.filter(Qi=>Qi.status==="done");li([...Gt,...Oi(vt,Ut,Ni)]),vo(vt)}},uo=Ut=>{if(Ut.shiftKey){if(Ut.key==="Enter")return}else if(Ut.key==="Enter"){if(Ut.preventDefault(),Ho||yi.current)return;Xr()}},Tr=(Ut,Ni)=>{let Qi=!1;yn===!0?Qi=!0:yn==="last"&&(Qi=Gt.reduce((mr,Mo,Jo)=>Mo.sender==="user"?Jo:mr,-1)===Ni);const Pr=Ni===Be,co=[...(Ut==null?void 0:Ut.fileList)||[],...(Ut==null?void 0:Ut.imageList)||[]];return ce.createElement("div",{className:se.li,style:At({width:Ci},Wi)},ce.createElement("div",{className:se.avatarIcon},ce.createElement("img",{className:se.img,src:On})),ce.createElement("div",{className:se.content},!!(co!=null&&co.length)&&ce.createElement("div",{className:se.fileWrap},co==null?void 0:co.map((Qr,mr)=>{var Mo,Jo;return ce.createElement("div",{key:mr,className:se.file},ce.createElement("img",{src:ue(90034)(`./${((Jo=(Mo=Qr==null?void 0:Qr.name)==null?void 0:Mo.split("."))==null?void 0:Jo.pop())||"txt"}.png`),width:20,className:"mr10"}),ce.createElement("aside",null,ce.createElement(Te.Z,{title:Qr==null?void 0:Qr.name},ce.createElement("div",{className:se.fileName},Qr==null?void 0:Qr.name)),ce.createElement("div",{className:"c-grey-999 font12"},(0,Se.RD)(Qr==null?void 0:Qr.size))))})),ce.createElement("div",{className:se.borderBox},Pr?ce.createElement(Ge.default.TextArea,{value:ui,ref:er,autoSize:!0,placeholder:"\u8BF7\u8F93\u5165",bordered:!1,onChange:Qr=>Tn(Qr.target.value)}):ce.createElement("div",{className:se.text},Ut==null?void 0:Ut.text)),Pr?ce.createElement("div",{className:se.action},ce.createElement(st.ZP,{onClick:()=>{Tn(""),Mi(null)},size:"small"},"\u53D6\u6D88"),ce.createElement(st.ZP,{disabled:!ui.trim(),onClick:()=>tn("edit",Ni),type:"primary",size:"small"},"\u786E\u8BA4")):ce.createElement("div",{className:se.action},ce.createElement(qe.CopyToClipboard,{text:(Ut==null?void 0:Ut.text)||"",onCopy:()=>Re.ZP.success("\u590D\u5236\u6210\u529F")},ce.createElement(Te.Z,{title:"\u590D\u5236"},ce.createElement("i",{className:"iconfont icon-fuzhi8 font13"}))),Qi&&!gi&&ce.createElement(Te.Z,{title:"\u7F16\u8F91"},ce.createElement("i",{onClick:()=>{Mi(Ni),Tn((Ut==null?void 0:Ut.text)||"")},className:"iconfont icon-bianji10 font14"})))))},ao=(Ut,Ni)=>{let Qi=!1;Pn===!0?Qi=!0:Pn==="last"&&(Qi=Gt.reduce((Qr,mr,Mo)=>mr.sender==="AI"?Mo:Qr,-1)===Ni);let Pr="";return Ut!=null&&Ut.source?Pr=Ut==null?void 0:Ut.source:(Ut==null?void 0:Ut.model)==="deepseek-r1"?Pr="\u7531deepseek\u751F\u6210":(Ut==null?void 0:Ut.model)==="qwen-max"&&(Pr="\u7531\u901A\u4E49\u5343\u95EE\u751F\u6210"),ce.createElement("div",{className:se.li,style:At({width:Ci},Wi)},ce.createElement("div",{className:se.avatarIcon},ce.createElement("img",{className:se.img,src:Yt})),ce.createElement("div",{className:se.content},ce.createElement("div",{className:se.borderBox},Ut.loading&&ce.createElement(ce.Fragment,null,Ut!=null&&Ut.imageGenerator?ce.createElement("div",{className:se.loadingPic},"\u6B63\u5728\u751F\u6210\u4E2D",ce.createElement("div",{className:"ai-loading"})):!(Ut!=null&&Ut.thinkingEnabled)&&ce.createElement("div",null,ce.createElement("div",{className:se.loading},ce.createElement("div",{className:se.dot}),ce.createElement("div",{className:se.dot}),ce.createElement("div",{className:se.dot})),ce.createElement("div",{style:{marginTop:10,color:"#9096A3"}},(Ue==null?void 0:Ue.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"))),(Ut==null?void 0:Ut.thinkingEnabled)&&ce.createElement(te.Z,{time:Ut==null?void 0:Ut.time,cancelIndex:Fr,loading:Ut.loading,streamingStatus:!(Ut!=null&&Ut.text),onFinish:()=>{Cr(0),li(co=>[...co].map((Qr,mr)=>mr===co.length-1?ct(At({},Qr),{hideAnswer:!1,time:Qr.startTime?Qr.endTime-Qr.startTime:null}):Qr))},value:Ut==null?void 0:Ut.reasoning}),!!(Ut!=null&&Ut.text)&&!Ut.hideAnswer&&ce.createElement(ne.Z,{onDynamic:Yi,cancelIndex:Fr,streamingStatus:gi,loadImage:!!(Ut!=null&&Ut.imageGenerator),onFinish:()=>at(void 0,null,function*(){Cr(0),setTimeout(()=>Kt(!1),0)}),value:Ut==null?void 0:Ut.text})),wr&&!!(Ut!=null&&Ut.text)&&Pr&&ce.createElement("div",{className:se.source},Pr),ce.createElement("div",{className:se.action},De==null?void 0:De(Ut,Ni,Kr),!(Ut!=null&&Ut.imageGenerator)&&ce.createElement(qe.CopyToClipboard,{text:String((Ut==null?void 0:Ut.text)||""),onCopy:()=>Re.ZP.success({content:"\u590D\u5236\u6210\u529F",key:"copy"})},ce.createElement(Te.Z,{title:"\u590D\u5236"},ce.createElement("i",{className:"iconfot icon-fuzhi8 font13"}))),gt&&!gi&&ce.createElement(ce.Fragment,null,ce.createElement(Te.Z,{title:"\u559C\u6B22"},ce.createElement("i",{style:Ut!=null&&Ut.like?{color:"#FA8D30"}:{},onClick:()=>br("like",!(Ut!=null&&Ut.like),Ni),className:"iconfot icon-yijiejue font15"})),ce.createElement(Te.Z,{title:"\u4E0D\u559C\u6B22"},ce.createElement("i",{style:Ut!=null&&Ut.dislike?{color:"#e86d7c"}:{},onClick:()=>br("dislike",!(Ut!=null&&Ut.dislike),Ni),className:"iconfot icon-weijiejuezhengchang font15"}))),Qi&&!gi&&ce.createElement(Te.Z,{title:"\u91CD\u65B0\u751F\u6210"},ce.createElement("i",{onClick:()=>tn("redraw",Ni),className:"iconfot icon-gengxin-genghuan-tihuan"})))))},br=(Ut,Ni,Qi)=>at(void 0,null,function*(){if(Yn){const Pr=Gt.slice(0,Qi+1),Qr=So(Pr).length;yield Yn({type:Ut,value:Ni,index:Qi,identifier:Zr,objectIndex:Qr})}li(Pr=>(Pr[Qi][Ut]=Ni,Ni&&(Pr[Qi][Ut==="like"?"dislike":"like"]=!1),[...Pr]))}),Go=()=>{var Ut,Ni;Cr(1),(Ni=(Ut=or.current)==null?void 0:Ut.cancelRequest)==null||Ni.call(Ut),ii(!1),Kt(!1)},gn=()=>at(void 0,null,function*(){var Ut,Ni,Qi;(Ni=(Ut=or.current)==null?void 0:Ut.cancelRequest)==null||Ni.call(Ut),ar(),li([]),ii(!0);const Pr=yield Vn();(Pr==null?void 0:Pr.status)===0&&Bn((Qi=Pr==null?void 0:Pr.data)==null?void 0:Qi.identifier),ii(!1),Kt(!1)}),qr=()=>at(void 0,null,function*(){var Ut;on(!0);const Ni=yield pi();(Ni==null?void 0:Ni.status)===0&&an(((Ut=Ni==null?void 0:Ni.data)==null?void 0:Ut.list)||[]),on(!1)}),Oo=(...Ut)=>at(void 0,[...Ut],function*(Ni=Zr){var Qi,Pr,co,Qr;(Pr=(Qi=or.current)==null?void 0:Qi.cancelRequest)==null||Pr.call(Qi),ar(),In(!0);const mr=yield mi(Ni);if(mr.status===0){const Mo=bi(((co=mr==null?void 0:mr.data)==null?void 0:co.messages)||[]);li(Mo),In(!1),Bn((Qr=mr==null?void 0:mr.data)==null?void 0:Qr.identifier);return}li([]),In(!1)}),Ga=(Ut,Ni)=>at(void 0,null,function*(){(yield xi(Ut)).status===0&&(Re.ZP.success("\u5220\u9664\u6210\u529F"),Ni===Zr&&gn(),qr())}),pa=()=>ce.createElement("div",{className:se.menuWarp},ce.createElement("h4",null,"\u5386\u53F2\u5BF9\u8BDD"),ce.createElement(Qe.Z,{spinning:fi},!Fn.length&&ce.createElement(Ye.Z,{style:{width:250,paddingBottom:30},image:Ye.Z.PRESENTED_IMAGE_SIMPLE}),!!Fn.length&&ce.createElement("div",{className:se.menu},Fn.map(function(Ut,Ni){return ce.createElement("aside",{className:Fe()(Zr===Ut.identifier&&se.active),key:Ut.id,onClick:()=>Oo(Ut.id)},ce.createElement("div",{className:se.menuText},ce.createElement(Te.Z,{title:Ut==null?void 0:Ut.question},ce.createElement("span",null,Ut==null?void 0:Ut.question)),cr&&cr(Ut)),ce.createElement("div",{className:se.menuDel,onClick:Qi=>Qi.stopPropagation()},ce.createElement(yt.Z,{title:"\u63D0\u793A",description:"\u4F60\u786E\u5B9A\u8981\u5220\u9664\u672C\u6761\u5BF9\u8BDD\u5417\uFF1F",onConfirm:()=>Ga(Ut.id,Ut.identifier),okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88"},ce.createElement("i",{className:"iconfont icon-shanchu14 delete-hover font14"}))))})))),us=Ut=>{if(Ut==="file"){if(Wt.length){We.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:()=>{jt([]),ci.current.upload.uploader.fileInput.click()}});return}ci.current.upload.uploader.fileInput.click()}if(Ut==="image"){if(hi.length){We.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:()=>{Jt([]),Qn.current.upload.uploader.fileInput.click()}});return}Qn.current.upload.uploader.fileInput.click()}},Za=[{key:"file",disabled:hi.length>=tr,label:ce.createElement(Te.Z,{placement:"right",title:ce.createElement("div",null,ce.createElement("b",null,"\u4E0A\u4F20\u9644\u4EF6\uFF08\u4EC5\u8BC6\u522B\u6587\u5B57\uFF09"),ce.createElement("div",null,"\u6700\u591A 50 \u4E2A\uFF0C\u6BCF\u4E2A 100 MB\uFF0C\u652F\u6301\u5404\u7C7B\u578B\u6587\u6863"))},ce.createElement("span",null,ce.createElement("i",{className:"iconfont icon-fujian3 font14 mr5"}),"\u4E0A\u4F20\u6587\u6863"))},yr!=="deepseek-r1"&&{key:"image",disabled:Wt.length>=zi,label:ce.createElement(Te.Z,{placement:"right",title:"\u652F\u6301\u4E0D\u8D85\u8FC710M\u7684PNG/JPG\u56FE\u7247\uFF0C\u6700\u591A10\u4E2A"},ce.createElement("span",null,ce.createElement("i",{className:"iconfont icon-tupianshangchuan font14 mr5"}),"\u4E0A\u4F20\u56FE\u7247"))}].filter(Boolean),pr=[...hi,...Wt],Ho=pr.some(Ut=>Ut.status==="uploading")||gi||Cn,ca=ri>=zt,wa=dn||hi.length>=tr||Wt.length>=zi,to=_i||sr||Gi||mn||!!pr.length,Kr={chatData:Gt,stream:or,isDisabledNum:ca,isDisAbledUpload:Ho,checkNumModal:jr,checkNum:Hr,onClose:Lr,setChatData:li,setLoading:ii,getData:vo,clearStatus:ar,typing:Cn,setImageGenerator:Ji,renderChatItems:Oi,setSceneAwareness:ir,setIdentifier:Bn,setCodePreview:wi,setTyping:Kt,onMenuClick:Oo};return ce.createElement(ce.Fragment,null,jn?ce.createElement("div",{onClick:_r},jn):jn!==null&&ce.createElement(be.Z,{draggableExtraNode:sn,src:kt,onClick:_r,topPercentage:zn}),ce.createElement(kn,{open:Br,width:yo?"100%":Lt,afterOpenChange:Ut=>{Ut&&cn(!1)},push:!1,contentWrapperStyle:bo?{}:{transition:"none"},extra:ce.createElement("div",{className:se.head},Xi,qn&&ce.createElement(he.Z,{value:yr,onChange:Ut=>{ro(!1),Ji(!1),Vi(Ut),jt([]),Jt([])}}),Zn&&ce.createElement(ce.Fragment,null,ce.createElement(ot.Z,{dropdownRender:pa,onOpenChange:Ut=>{Ut&&qr()},placement:"bottomLeft",arrow:!0},ce.createElement("div",{className:se.headBtn},ce.createElement("i",{className:"icon-lishiduihua1 font14 mr10"}),"\u5386\u53F2\u5BF9\u8BDD"))),vi&&ce.createElement(ce.Fragment,null,ce.createElement("div",{className:se.headBtn,onClick:gn},ce.createElement("i",{className:"icon-xinjianduihua font14 mr10"}),"\u65B0\u5EFA\u5BF9\u8BDD")),ce.createElement(Te.Z,{title:yo?"\u9000\u51FA\u5168\u5C4F":"\u5168\u5C4F"},ce.createElement("div",{className:se.headBtn,style:{padding:"0 12px"},onClick:()=>mo(!yo)},yo&&ce.createElement("i",{className:"iconfont icon-tuichuquanping3"}),!yo&&ce.createElement("i",{className:"iconfont icon-quanping4"})))),title:ce.createElement("span",{className:"c-grey-333 font16"},Pt),onClose:Lr,bodyStyle:{paddingRight:4}},ce.createElement("div",{className:Fe()(se.wrap,Br&&"body-overflow-hidden")},ce.createElement("div",{ref:Ki,className:se.chatContainer},Or==null?void 0:Or(Kr),ke&&ce.createElement("div",{className:`${se.li} mb20`,style:At({width:Ci},Wi)},ce.createElement("div",{className:se.avatarIcon},ce.createElement("img",{className:se.img,src:Yt})),ce.createElement("div",{className:se.content},ce.createElement("div",{className:se.borderBox},Vt,fn==null?void 0:fn(Kr)))),ce.createElement("div",{ref:Dn},ce.createElement(Qe.Z,{spinning:Pi,className:"mt20"},Gt==null?void 0:Gt.map((Ut,Ni)=>ce.createElement(ce.Fragment,{key:Ut.key+Ni},Ut.show&&ce.createElement(ce.Fragment,null,Ut.sender==="user"&&Tr(Ut,Ni),Ut.sender==="AI"&&ao(Ut,Ni),Et&&!["AI","user"].includes(Ut.sender)&&Et(Ut,Ni,{width:Ci})))))),!qi&&ce.createElement("div",{className:se.backBottom,onClick:()=>{Ki.current.scrollTop=Ki.current.scrollHeight}},ce.createElement("i",{className:"iconfont icon-huidaodibu"})),ce.createElement("div",{ref:Ir})),!_n&&ce.createElement("div",{style:kr,className:Fe()(se.footerContainer,oi&&se.full,to&&se.footerContainerSelected)},ce.createElement("div",{className:se.btnWrp},lr&&ce.createElement(Te.Z,{title:"\u66F4\u64C5\u957F\u5904\u7406\u4EE3\u7801\u95EE\u9898\uFF0C\u652F\u6301\u4E00\u53E5\u8BDD\u751F\u6210\u5E94\u7528"},ce.createElement("div",{onClick:()=>wi(!mn),className:Fe()(se.btn,mn&&se.btnActive)},ce.createElement("i",{className:"iconfont icon-daimamoshi1 mr10 font12"}),"\u4EE3\u7801\u6A21\u5F0F")),fr&&ce.createElement(Te.Z,{title:"\u667A\u80FD\u611F\u77E5\u5F53\u524D\u60C5\u5883\uFF0C\u63D0\u4F9B\u9488\u5BF9\u6027\u89E3\u7B54"},ce.createElement("div",{onClick:()=>ir(!Gi),className:Fe()(se.btn,Gi&&se.btnActive)},ce.createElement("i",{className:"iconfont icon-changjingganzhi mr10 font12"}),"\u573A\u666F\u611F\u77E5")),yr==="deepseek-r1"&&ce.createElement(Te.Z,{title:"\u8C03\u7528\u65B0\u6A21\u578B DeepSeek-R1\uFF0C\u89E3\u51B3\u63A8\u7406\u95EE\u9898"},ce.createElement("div",{onClick:()=>ro(!sr),className:Fe()(se.btn,sr&&se.btnActive)},ce.createElement("i",{className:"iconfont icon-shendusikao mr10 font12"}),"\u6DF1\u5EA6\u601D\u8003\uFF08R1\uFF09")),Rn&&yr==="qwen-max"&&ce.createElement("div",{onClick:()=>Ji(!_i),className:Fe()(se.btn,_i&&se.btnActive)},ce.createElement("i",{className:"iconfont icon-shangchuantupian2 mr10 font12"}),"\u56FE\u50CF\u751F\u6210"),pr.map(Ut=>ce.createElement("div",{key:Ut.uid},(Ut==null?void 0:Ut.status)==="uploading"&&ce.createElement(Qe.Z,{indicator:ce.createElement(dt.Z,{rev:"",spin:!0}),className:"mr10",size:"small",spinning:!0}),ce.createElement("span",{title:Ut==null?void 0:Ut.name,className:"mr10"},(0,Se.Pq)(Ut.name,20)),ce.createElement("i",{onClick:()=>{Jt(Ni=>Ni.filter(Qi=>Qi.uid!==Ut.uid)),jt(Ni=>Ni.filter(Qi=>Qi.uid!==Ut.uid))},className:"iconfont current icon-shanchu15 delete-hover c-red-ee4 font12"})))),ce.createElement(Te.Z,{title:ca&&ce.createElement("div",null,ce.createElement("div",null,"\u60A8\u5DF2\u8FBE\u5230\u667A\u80FD\u52A9\u6559\u7684\u4F7F\u7528\u6B21\u6570"),ce.createElement("div",null,"\u667A\u80FD\u52A9\u6559\u6BCF\u5929\u9650\u5236\u4F7F",zt,"\u6B21\uFF0C\u8BF7\u660E\u5929\u518D\u8BD5\u3002"))},ce.createElement("div",{className:Fe()(se.inputContainer,Fi>4&&se.lineFour,ca&&se.disabledInput)},ce.createElement(Me.default,At({ref:ci},Bi)),ce.createElement(Me.default,At({ref:Qn},Ln)),ce.createElement(ot.Z,{className:`${wa&&"hide"}`,menu:{items:Za,onClick:Ut=>us(Ut.key)},placement:"top"},ce.createElement(st.ZP,{className:se.uploadBtn,icon:ce.createElement(it.Z,{rev:"",style:{fontSize:18,color:"#FFF"}})})),ce.createElement(Ge.default.TextArea,{rows:Fi>4?4:Fi,placeholder:pn||"\u5728\u8FD9\u91CC\u8F93\u5165\u4F60\u7684\u95EE\u9898\u5427\uFF0CShift+Enter\u6362\u884C\uFF5E",value:vt,bordered:!1,style:wa?{paddingLeft:0,marginLeft:0}:{},onChange:ra,onPressEnter:uo,onFocus:()=>Ie==null?void 0:Ie(),onCompositionStart:()=>{yi.current=!0},onCompositionEnd:()=>{yi.current=!1}}),Cn?ce.createElement(Te.Z,{title:"\u505C\u6B62\u751F\u6210"},ce.createElement("div",{className:`iconfont icon-tingzhihuida ${se.cancelBtn}`,onClick:Go})):ce.createElement(st.ZP,{className:(vt==null?void 0:vt.trim())===""?se.sendBtnDisabled:se.sendBtn,icon:ce.createElement("i",{className:"iconfont icon-fasong2 c-white"}),disabled:Ho,onClick:Xr}),Fi>4&&ce.createElement("span",{className:se.fullIcon,onClick:Wr},oi&&ce.createElement("span",{className:"iconfont icon-shousuo"}),!oi&&ce.createElement("span",{className:"iconfont icon-zhankai"}))))))))}},13912:function(ze,Ee,ue){"use strict";ue.d(Ee,{t:function(){return ot}});var ce=ue(59301),Pe=ue(99571),Re={buttonFixed:"buttonFixed___vyq30",button:"button___hxmYv",buttonWrap:"buttonWrap___uK8dl"},Me=ue(92310),We=ue.n(Me),Te=Object.defineProperty,Ge=Object.getOwnPropertySymbols,st=Object.prototype.hasOwnProperty,Qe=Object.prototype.propertyIsEnumerable,Ye=(Nt,Fe,ne)=>Fe in Nt?Te(Nt,Fe,{enumerable:!0,configurable:!0,writable:!0,value:ne}):Nt[Fe]=ne,yt=(Nt,Fe)=>{for(var ne in Fe||(Fe={}))st.call(Fe,ne)&&Ye(Nt,ne,Fe[ne]);if(Ge)for(var ne of Ge(Fe))Qe.call(Fe,ne)&&Ye(Nt,ne,Fe[ne]);return Nt};const ot=({cancelText:Nt="\u53D6\u6D88",okText:Fe="\u786E\u5B9A",loading:ne=!1,hasOkBtn:te=!0,hasCancelBtn:he=!0,okButtonProps:se={},onCancel:ge=()=>{},onOk:Se=()=>{},className:be=""})=>ce.createElement("div",{className:We()(Re.buttonFixed,be)},ce.createElement("div",{className:Re.buttonWrap},he&&ce.createElement(Pe.ZP,{size:"middle",className:`${Re.button} mr20`,onClick:ge},Nt),te&&ce.createElement(Pe.ZP,yt({size:"middle",type:"primary",className:`${Re.button} mr20`,loading:ne,onClick:Se},se),Fe)))},25138:function(ze,Ee,ue){"use strict";ue.d(Ee,{Z:function(){return yt}});var ce=ue(59301),Pe={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},Re=ue(92310),Me=ue.n(Re),We=ue(29787),Te=ue(2859),Ge=ue(24092),st=ue(59895),Qe=(ot,Nt,Fe)=>new Promise((ne,te)=>{var he=Se=>{try{ge(Fe.next(Se))}catch(be){te(be)}},se=Se=>{try{ge(Fe.throw(Se))}catch(be){te(be)}},ge=Se=>Se.done?ne(Se.value):Promise.resolve(Se.value).then(he,se);ge((Fe=Fe.apply(ot,Nt)).next())}),yt=({data:ot,className:Nt,fullWidth:Fe,style:ne={},onClose:te,onOk:he,showFullTools:se,noAssociationId:ge})=>{const Se=(0,ce.useRef)(null),be=(0,ce.useRef)(null),Ae=(0,ce.useRef)(null),Le=(0,ce.useRef)(null),[je,$e]=(0,ce.useState)(!1),[qe,nt]=(0,ce.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,ce.useEffect)(()=>(Ae.current||(Ae.current=document.createElement("style"),document.head.appendChild(Ae.current)),ot!=null&&ot.visible?(document.body.setAttribute("data-custom","y-hidden"),Ae.current.innerHTML=" html { overflow-y: hidden; }",ot!=null&&ot.src&&dt()):(document.body.removeAttribute("data-custom"),Ae.current&&(document.head.removeChild(Ae.current),Ae.current=null)),()=>{document.body.removeAttribute("data-custom"),Ae.current&&(document.head.removeChild(Ae.current),Ae.current=null)}),[ot==null?void 0:ot.visible]);const dt=()=>Qe(void 0,null,function*(){$e(!0),nt("\u6B63\u5728\u52A0\u8F7D\u4E2D");const Ht=yield(0,st.ZJ)(ot==null?void 0:ot.src);Se.current.src="",Se.current.src=Ht,Se.current.onload=function(){It()},$e(!1),nt("")}),it=Ht=>Qe(void 0,null,function*(){$e(!0),nt("\u6B63\u5728\u4FDD\u5B58\u4E2D");const ln=yield(0,Ge.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:ot.title,file:Ht.dataUrl}});ln!=null&&ln.id&&!ge?(yield(0,Ge.ZP)(`/api/attachments/${ot.id}/add_subitem.json`,{method:"post",body:{subitem_id:ln==null?void 0:ln.id,settings:JSON.stringify(Ht.state)}})).status===0&&he():ln!=null&&ln.id&&he(ln),$e(!1),nt("")}),bt=()=>{const Ht=document.querySelector('a[href="https://markerjs.com/"]');Ht&&Ht.parentNode&&(Ht.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(un=>{const Qt=document.querySelector(un.name);Qt&&Qt.setAttribute("title",un.title)})},It=()=>{be.current=new Te.hP(Se.current),be.current.targetRoot=Le.current,be.current.addEventListener("render",it),be.current.addEventListener("beforeclose",te),se&&(be.current.availableMarkerTypes=be.current.ALL_MARKER_TYPES,be.current.uiStyleSettings.redoButtonVisible=!0,be.current.uiStyleSettings.notesButtonVisible=!0,be.current.uiStyleSettings.zoomButtonVisible=!0,be.current.uiStyleSettings.zoomOutButtonVisible=!0,be.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=be.current.uiStyleSettings,be.current.show(),ot!=null&&ot.snapshotData&&be.current.restoreState(ot.snapshotData),setTimeout(()=>{window.scrollTo(0,0),bt()},300)};return ce.createElement(ce.Fragment,null,(ot==null?void 0:ot.visible)&&ce.createElement(We.Z,{spinning:je,tip:qe,style:{position:"absolute",width:"100vw"}},ce.createElement("div",{ref:Le,className:Me()(Pe.imageDimensions,Nt,Fe?Pe.fullWidth:""),style:ne},ce.createElement("img",{className:Pe.img,ref:Se}))))}},88831:function(ze,Ee,ue){"use strict";var ce=ue(59301),Pe=ue(77019),Re=ue(5269),Me=ue(20554),We=ue(99571),Te=ue(79074),Ge=ue(15547),st=ue(48136),Qe=ue(59301);const Ye=(0,ce.forwardRef)(({callback:yt,showSaveButton:ot,value:Nt=""},Fe)=>{const ne=(0,ce.useRef)(),te=[{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 "}]}]}],he=[{name:"\u4EE3\u6570",value:"\\sqrt{a^2+b^2}",children:[{data:[{value:"\\left(x-1\\right)\\left(x+3\\right) "},{value:"\\sqrt{a^2+b^2}"},{value:"\\left ( \\frac{a}{b}\\right )^{n}= \\frac{a^{n}}{b^{n}}"},{value:"\\frac{a}{b}\\pm \\frac{c}{d}= \\frac{ad \\pm bc}{bd} "},{value:"\\frac{x^{2}}{a^{2}}-\\frac{y^{2}}{b^{2}}=1 "},{value:"\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0 "},{value:"\\sqrt[n]{a^{n}}=\\left ( \\sqrt[n]{a}\\right )^{n} "},{value:"x ={-b \\pm \\sqrt{b^2-4ac}\\over 2a} "},{value:"y-y_{1}=k \\left( x-x_{1}\\right) "},{value:`\\left\\{\\begin{matrix} \r
|
|
|
x=a + r\\text{cos}\\theta \\ \r
|
|
|
y=b + r\\text{sin}\\theta \r
|
|
|
\\end{matrix}\\right. `},{value:`\\begin{array}{l} \r
|
|
|
\\text{\u5BF9\u4E8E\u65B9\u7A0B\u5F62\u5982\uFF1A}x^{3}-1=0 \\ \r
|
|
|
\\text{\u8BBE}\\text{:}\\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
|
|
|
x_{1}=1,x_{2}= \\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
|
|
|
x_{3}= \\omega ^{2}=\\frac{-1-\\sqrt{3}i}{2} \r
|
|
|
\\end{array} `},{value:`\\begin{array}{l} \r
|
|
|
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
|
|
|
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
|
|
|
\\left\\{\\begin{matrix} \r
|
|
|
\\Delta \\gt 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u4E0D\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
|
|
|
\\Delta = 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
|
|
|
\\Delta \\lt 0\\text{\u65B9\u7A0B\u65E0\u5B9E\u6839} \r
|
|
|
\\end{matrix}\\right. \r
|
|
|
\\end{array} `},{value:`\\begin{array}{l} \r
|
|
|
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
|
|
|
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
|
|
|
\\mathop{{x}}\\nolimits_{{1,2}}=\\frac{{-b \\pm \r
|
|
|
\\sqrt{{\\mathop{{b}}\\nolimits^{{2}}-4ac}}}}{{2a}} \\ \r
|
|
|
\\mathop{{x}}\\nolimits_{{1}}+\\mathop{{x}}\\nolimits_{{2}}=-\\frac{{b}}{{a}} \\ \r
|
|
|
\\mathop{{x}}\\nolimits_{{1}}\\mathop{{x}}\\nolimits_{{2}}=\\frac{{c}}{{a}} \r
|
|
|
\\end{array} `}]}]},{name:"\u51E0\u4F55",value:"\\Delta A B C ",children:[{data:[{value:"\\Delta A B C "},{value:"a \\parallel c,b \\parallel c \\Rightarrow a \\parallel b "},{value:"l \\perp \\beta ,l \\subset \\alpha \\Rightarrow \\alpha \\perp \\beta"},{value:`\\left.\\begin{matrix} \r
|
|
|
a \\perp \\alpha \\ \r
|
|
|
b \\perp \\alpha \r
|
|
|
\\end{matrix}\\right\\}\\Rightarrow a \\parallel b`},{value:"P \\in \\alpha ,P \\in \\beta , \\alpha \\cap \\beta =l \\Rightarrow P \\in l "},{value:`\\alpha \\perp \\beta , \\alpha \\cap \\beta =l,a \\subset \\alpha ,a \\perp l \r
|
|
|
\\Rightarrow a \\perp \\beta `},{value:`\\left.\\begin{matrix} \r
|
|
|
a \\subset \\beta ,b \\subset \\beta ,a \\cap b=P \\ \r
|
|
|
a \\parallel \\partial ,b \\parallel \\partial \r
|
|
|
\\end{matrix}\\right\\}\\Rightarrow \\beta \\parallel \\alpha `},{value:"\\alpha \\parallel \\beta , \\gamma \\cap \\alpha =a, \\gamma \\cap \\beta =b \\Rightarrow a \\parallel b "},{value:"A \\in l,B \\in l,A \\in \\alpha ,B \\in \\alpha \\Rightarrow l \\subset \\alpha "},{value:`\\left.\\begin{matrix} \r
|
|
|
m \\subset \\alpha ,n \\subset \\alpha ,m \\cap n=P \\ \r
|
|
|
a \\perp m,a \\perp n \r
|
|
|
\\end{matrix}\\right\\}\\Rightarrow a \\perp \\alpha `},{value:`\\begin{array}{c} \r
|
|
|
\\text{\u76F4\u89D2\u4E09\u89D2\u5F62\u4E2D,\u76F4\u89D2\u8FB9\u957Fa,b,\u659C\u8FB9\u8FB9\u957Fc} \\ \r
|
|
|
a^{2}+b^{2}=c^{2} \r
|
|
|
\\end{array}`}]}]},{name:"\u4E0D\u7B49\u5F0F",value:"a > b",children:[{data:[{value:"a > b,b > c \\Rightarrow a > c "},{value:"a > b,c > d \\Rightarrow a+c > b+d "},{value:"a > b > 0,c > d > 0 \\Rightarrow ac bd "},{value:`\\begin{array}{c} \r
|
|
|
a \\gt b,c \\gt 0 \\Rightarrow ac \\gt bc \\ \r
|
|
|
a \\gt b,c \\lt 0 \\Rightarrow ac \\lt bc \r
|
|
|
\\end{array}`},{value:"\\left | a-b \\right | \\geqslant \\left | a \\right | -\\left | b \\right | "},{value:"-\\left | a \\right |\\leq a\\leqslant \\left | a \\right | "},{value:"\\left | a \\right |\\leqslant b \\Rightarrow -b \\leqslant a \\leqslant \\left | b \\right | "},{value:"\\left | a+b \\right | \\leqslant \\left | a \\right | + \\left | b \\right | "},{value:`\\begin{array}{c} \r
|
|
|
a \\gt b \\gt 0,n \\in N^{\\ast},n \\gt 1 \\ \r
|
|
|
\\Rightarrow a^{n}\\gt b^{n}, \\sqrt[n]{a}\\gt \\sqrt[n]{b} \r
|
|
|
\\end{array}`},{value:`\\left( \\sum_{k=1}^n a_k b_k \\right)^{\\!\\!2}\\leq \r
|
|
|
\\left( \\sum_{k=1}^n a_k^2 \\right) \\left( \\sum_{k=1}^n b_k^2 \\right) `},{value:`\\begin{array}{c} \r
|
|
|
a,b \\in R^{+} \\ \r
|
|
|
\\Rightarrow \\frac{a+b}{{2}}\\ge \\sqrt{ab} \\ \r
|
|
|
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
|
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
|
a,b \\in R \\ \r
|
|
|
\\Rightarrow a^{2}+b^{2}\\gt 2ab \\ \r
|
|
|
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
|
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
|
H_{n}=\\frac{n}{\\sum \\limits_{i=1}^{n}\\frac{1}{x_{i}}}= \\frac{n}{\\frac{1}{x_{1}}+ \\frac{1}{x_{2}}+ \\cdots + \\frac{1}{x_{n}}} \\ G_{n}=\\sqrt[n]{\\prod \\limits_{i=1}^{n}x_{i}}= \\sqrt[n]{x_{1}x_{2}\\cdots x_{n}} \\ A_{n}=\\frac{1}{n}\\sum \\limits_{i=1}^{n}x_{i}=\\frac{x_{1}+ x_{2}+ \\cdots + x_{n}}{n} \\ Q_{n}=\\sqrt{\\sum \\limits_{i=1}^{n}x_{i}^{2}}= \\sqrt{\\frac{x_{1}^{2}+ x_{2}^{2}+ \\cdots + x_{n}^{2}}{n}} \\ H_{n}\\leq G_{n}\\leq A_{n}\\leq Q_{n} \r
|
|
|
\\end{array}`}]}]},{name:"\u79EF\u5206",value:"\\frac{\\mathrm{d}\\partial}{\\partial x}",children:[{data:[{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}x^n=nx^{n-1} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}e^{ax}=a\\,e^{ax} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\ln(x)=\\frac{1}{x} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\sin x=\\cos x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cos x=-\\sin x "},{value:"\\int k\\mathrm{d}x = kx+C "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\tan x=\\sec^2 x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cot x=-\\csc^2 x "},{value:"\\int \\frac{1}{x}\\mathrm{d}x= \\ln \\left| x \\right| +C "},{value:"\\int \\frac{1}{\\sqrt{1-x^{2}}}\\mathrm{d}x= \\arcsin x +C "},{value:"\\int \\frac{1}{1+x^{2}}\\mathrm{d}x= \\arctan x +C "},{value:"\\int u \\frac{\\mathrm{d}v}{\\mathrm{d}x}\\,\\mathrm{d}x=uv-\\int \\frac{\\mathrm{d}u}{\\mathrm{d}x}v\\,\\mathrm{d}x "},{value:"f(x) = \\int_{-\\infty}^\\infty \\hat f(x)\\xi\\,e^{2 \\pi i \\xi x} \\,\\mathrm{d}\\xi "},{value:"\\int x^{\\mu}\\mathrm{d}x=\\frac{x^{\\mu +1}}{\\mu +1}+C, \\left({\\mu \\neq -1}\\right) "}]}]},{name:"\u4E09\u89D2",value:"e^{i \\theta}",children:[{name:"\u6C42\u548C Summation",data:[{value:"e^{i \\theta} "},{value:"\\left(\\frac{\\pi}{2}-\\theta \\right ) "},{value:"\\text{sin}^{2}\\frac{\\alpha}{2}=\\frac{1- \\text{cos}\\alpha}{2} "},{value:"\\text{cos}^{2}\\frac{\\alpha}{2}=\\frac{1+ \\text{cos}\\alpha}{2} "},{value:"\\text{tan}\\frac{\\alpha}{2}=\\frac{\\text{sin}\\alpha}{1+ \\text{cos}\\alpha} "},{value:"\\sin \\alpha + \\sin \\beta =2 \\sin \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\sin \\alpha - \\sin \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha + \\cos \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha - \\cos \\beta =-2\\sin \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"a^{2}=b^{2}+c^{2}-2bc\\cos A "},{value:"\\frac{\\sin A}{a}=\\frac{\\sin B}{b}=\\frac{\\sin C}{c}=\\frac{1}{2R} "},{value:"\\sin \\left ( \\frac{\\pi}{2}-\\alpha \\right ) = \\cos \\alpha "},{value:"\\sin \\left ( \\frac{\\pi}{2}+\\alpha \\right ) = \\cos \\alpha "}]}]},{name:"\u7EDF\u8BA1",value:"C_{r}^{n}",children:[{data:[{value:"C_{r}^{n} "},{value:"\\frac{n!}{r!(n-r)!} "},{value:"\\sum_{i=1}^{n}{X_i} "},{value:"\\sum_{i=1}^{n}{X_i^2} "},{value:"X_1, \\cdots,X_n "},{value:"\\frac{x-\\mu}{\\sigma} "},{value:"\\sum_{i=1}^{n}{(X_i - \\overline{X})^2} "},{value:`\\begin{array}{c} \r
|
|
|
\\text{\u82E5}P \\left( AB \\right) =P \\left( A \\right) P \\left( B \\right) \\\\ \r
|
|
|
\\text{\u5219}P \\left( A \\left| B\\right. \\right) =P \\left({B}\\right) \r
|
|
|
\\end{array}`},{value:"P(E) ={n \\choose k}p^k (1-p)^{n-k} "},{value:"P \\left( A \\right) = \\lim \\limits_{n \\to \\infty}f_{n}\\left ( A \\right ) "},{value:"P \\left( \\bigcup \\limits_{i=1}^{+ \\infty}A_{i}\\right) = \\prod \\limits_{i=1}^{+ \\infty}P{\\left( A_{i}\\right)} "},{value:`\\begin{array}{c} \r
|
|
|
P \\left( \\emptyset \\right) =0 \\\\ \r
|
|
|
P \\left( S \\right) =1 \r
|
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
|
\\forall A \\in S \\\\ \r
|
|
|
P \\left( A \\right) \\ge 0 \r
|
|
|
\\end{array}`},{value:"P \\left( \\bigcup \\limits_{i=1}^{n}A_{i}\\right) = \\prod \\limits_{i=1}^{n}P \\left( A_{i}\\right) "},{value:`\\begin{array}{c} \r
|
|
|
S= \\binom{N}{n},A_{k}=\\binom{M}{k}\\cdot \\binom{N-M}{n-k} \\\\ \r
|
|
|
P\\left ( A_{k}\\right ) = \\frac{\\binom{M}{k}\\cdot \\binom{N-M}{n-k}}{\\binom{N}{n}} \r
|
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
|
P_{n}=n! \\\\ \r
|
|
|
A_{n}^{k}=\\frac{n!}{\\left( n-k \\left) !\\right. \\right.} \r
|
|
|
\\end{array}`}]}]}],se=be=>{ne.current.setValue(ne.current.getValue()+" "+be.value+" ")},ge=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:Qe.createElement(Pe.Z,{className:Ge.Z.lists,gutter:[10,10]},te.map((be,Ae)=>Qe.createElement(Re.Z,{flex:"110px",className:Ge.Z.item},Qe.createElement("div",null,Qe.createElement(Te.Z,{value:`$$${be.value}$$`}),be.name),Qe.createElement("div",{className:Ge.Z.children},be.children.map((Le,je)=>Qe.createElement("div",{key:je},Qe.createElement("h1",null,Le.name),Qe.createElement(Pe.Z,{gutter:[10,10]},Le.data.map(($e,qe)=>Qe.createElement(Re.Z,{key:qe,onClick:()=>se($e),className:Ge.Z.diamond},Qe.createElement(Te.Z,{value:"`$$"+$e.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:Qe.createElement(Pe.Z,{className:Ge.Z.lists,gutter:[10,10]},he.map((be,Ae)=>Qe.createElement(Re.Z,{flex:"110px",className:Ge.Z.item},Qe.createElement("div",null,Qe.createElement(Te.Z,{value:"`$$"+be.value+"$$`"}),be.name),Qe.createElement("div",{className:Ge.Z.children},be.children.map((Le,je)=>Qe.createElement("div",{key:je},Le.name&&Qe.createElement("h1",null,Le.name),Qe.createElement(Pe.Z,{gutter:[10,10]},Le.data.map(($e,qe)=>Qe.createElement(Re.Z,{key:qe,onClick:()=>se($e),className:Ge.Z.diamond},Qe.createElement(Te.Z,{value:"`$$"+$e.value+"$$`"}))))))))))}],Se=()=>{var be=document.createElement("div");be.innerHTML=ne.current.getValue();var Ae=be.innerText;return yt&&yt(Ae),Ae};return(0,ce.useImperativeHandle)(Fe,()=>({getData:Se})),Qe.createElement("div",{className:Ge.Z.mathWrap},Qe.createElement(Me.default,{defaultActiveKey:"1",items:ge}),Qe.createElement("math-field",{locale:"zh_cn",className:Ge.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:ne,style:{width:800,marginTop:30,fontSize:18}},Nt||""),ot&&Qe.createElement("div",{className:Ge.Z.button},Qe.createElement(We.ZP,{size:"large",onClick:Se,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});Ee.Z=Ye},12635:function(ze,Ee,ue){"use strict";var ce=ue(59301),Pe=ue(93314),Re=ue(99571),Me=Object.defineProperty,We=Object.defineProperties,Te=Object.getOwnPropertyDescriptors,Ge=Object.getOwnPropertySymbols,st=Object.prototype.hasOwnProperty,Qe=Object.prototype.propertyIsEnumerable,Ye=(Fe,ne,te)=>ne in Fe?Me(Fe,ne,{enumerable:!0,configurable:!0,writable:!0,value:te}):Fe[ne]=te,yt=(Fe,ne)=>{for(var te in ne||(ne={}))st.call(ne,te)&&Ye(Fe,te,ne[te]);if(Ge)for(var te of Ge(ne))Qe.call(ne,te)&&Ye(Fe,te,ne[te]);return Fe},ot=(Fe,ne)=>We(Fe,Te(ne));const Nt=({img:Fe,buttonProps:ne={},styles:te={},customText:he,ButtonText:se,ButtonClick:ge,Buttonclass:Se,ButtonTwo:be,imgStyles:Ae,loading:Le=!1,className:je=""})=>ce.createElement("section",{className:`tc animated fadeIn ${je}`,style:yt({color:"#999",margin:"100px auto",visibility:Le?"hidden":"visible"},te)},ce.createElement("img",{src:Fe||Pe,style:ot(yt({},Ae),{pointerEvents:"none",userSelect:"none"})}),ce.createElement("p",{className:"mt20 font14"},he||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),se&&ce.createElement(Re.ZP,yt({className:Se,onClick:ge},ne),se),be&&be);Ee.Z=Nt},6311:function(ze,Ee,ue){"use strict";ue.d(Ee,{Z:function(){return Se}});var ce=ue(59301),Pe={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",embed:"embed___hvpEJ"},Re=ue(99571),Me=ue(70557),We=ue(89081),Te=ue(25399),Ge=ue(59895),st=ue(76011),Qe=ue(12635),Ye=ue(12242),yt=ue(65789),ot=ue(59301),Nt=Object.defineProperty,Fe=Object.getOwnPropertySymbols,ne=Object.prototype.hasOwnProperty,te=Object.prototype.propertyIsEnumerable,he=(be,Ae,Le)=>Ae in be?Nt(be,Ae,{enumerable:!0,configurable:!0,writable:!0,value:Le}):be[Ae]=Le,se=(be,Ae)=>{for(var Le in Ae||(Ae={}))ne.call(Ae,Le)&&he(be,Le,Ae[Le]);if(Fe)for(var Le of Fe(Ae))te.call(Ae,Le)&&he(be,Le,Ae[Le]);return be},ge=(be,Ae,Le)=>new Promise((je,$e)=>{var qe=it=>{try{dt(Le.next(it))}catch(bt){$e(bt)}},nt=it=>{try{dt(Le.throw(it))}catch(bt){$e(bt)}},dt=it=>it.done?je(it.value):Promise.resolve(it.value).then(qe,nt);dt((Le=Le.apply(be,Ae)).next())}),Se=({editOffice:be="view",data:Ae,theme:Le,type:je,filename:$e,monacoEditor:qe,className:nt,style:dt,close:it,onClose:bt,hasMask:It,disabledDownload:Ht,onImgDimensions:ln,showNodata:un,recordInfo:Qt})=>{const[nn,At]=(0,ce.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[ct,at]=(0,ce.useState)(""),[rn,hn]=(0,ce.useState)(),Pt=window.ENV==="build"?"/react/build":"",pn=location.host.startsWith("localhost")?Ye.Z.PROXY_SERVER:Ye.Z.API_SERVER,_n=10*(1024*1024),Yt=(0,ce.useRef)();Ae!=null&&Ae.startsWith("/api")&&je!=="txt"&&(Ae=Ye.Z.API_SERVER+Ae);const On=et=>et.substring(et.lastIndexOf("/")+1).split(".").pop();$e&&qe&&(qe.filename=$e),(0,ce.useEffect)(()=>{var et,De;const ke=(De=(et=document.cookie)==null?void 0:et.replace(/\s/g,""))==null?void 0:De.split(";");ke==null||ke.map(Xe=>{let ut=Xe.split("=");ut[0]==="_educoder_session"&&at(ut[1])})},[]),(0,ce.useEffect)(()=>{je==="office"&&(Ae.indexOf("bigfilescdn.")>-1||Ae.indexOf("bigfiles1")>-1?hn({url:Ae,fileType:On(Ae),model:Ae.indexOf("model=edit")?"edit":"view"}):kt())},[je,Ae]);const kt=()=>ge(void 0,null,function*(){console.log("data:",Ae);let et=Ae;Ae.startsWith("http")||(et=location.origin+et);let De=new URL(et).pathname.split("/").pop();const ke=yield(0,st.gJ)({attachment_id:De});ke.url=pn+ke.url,hn(ke)}),jn=()=>{if(Ae.startsWith("http")||Ae.startsWith("blob:")){ai();return}(0,Ge.Sv)($e||"educoder",Ae,$e)},ai=()=>{Qt&&(0,yt.fc)({id:Qt==null?void 0:Qt.id,watch_type:1,course_id:Qt==null?void 0:Qt.course_id}),(0,Ge.Nd)($e||"educoder",decodeURIComponent(Ae))};return ot.createElement("div",{style:se({},dt||{}),className:`${It&&Pe.bgBlack} ${je?Pe.wrp:"hide"}`},it&&ot.createElement("div",{className:Pe.close,ref:Yt},!!ln&&ot.createElement(Te.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>Yt.current},ot.createElement("span",{onClick:()=>{bt(),ln()}},ot.createElement("i",{className:"icon-yulanpizhu"}))),!Ht&&ot.createElement(Te.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>Yt.current},ot.createElement("span",{onClick:ai},ot.createElement("i",{className:"icon-quxiaozhiding"}))),ot.createElement(Te.Z,{title:"\u5173\u95ED",getPopupContainer:()=>Yt.current},ot.createElement("span",{className:"",onClick:bt},ot.createElement("i",{className:"icon-guanbi1"})))),ot.createElement("div",{className:`${Pe[nt]} ${nt} ${Pe.monaco} ${je==="txt"?"show":"hide"}`},je==="txt"&&ot.createElement(ot.Fragment,null,ot.createElement(We.ZP,se({},qe)))),je==="audio"&&ot.createElement("audio",{src:`${(Ae==null?void 0:Ae.indexOf("http://"))>-1||(Ae==null?void 0:Ae.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${Ae}`,autoPlay:!0}),je==="video"&&ot.createElement(ot.Fragment,null,(Ae==null?void 0:Ae.indexOf("http"))>-1?ot.createElement("video",{controls:!0,src:`${Ae}`,autoPlay:!0}):ot.createElement("video",{controls:!0,src:`data:video/mp4;base64,${Ae}`,autoPlay:!0})),je==="office"&&rn&&ot.createElement("iframe",{src:`${Pt}/office.html?key=${rn.key}&url=${btoa(rn.url)}&callbackUrl=${pn+(rn.callbackUrl||"")}&fileType=${rn.fileType}&title=${rn.title||""}&model=${be}&officeServer=${Ye.Z.ONLYOFFICE}&disabledDownload=${!!Ht}`}),je==="html"&&ot.createElement("iframe",{src:Ae+"&disposition=inline"}),je==="pdf"&&ot.createElement("iframe",{src:`${Pt}/js/pdfview/index.html?filename=${$e||"educoder.pdf"}&url=${encodeURIComponent(Ae)}&disabledDownload=${!!Ht}`}),je==="image"&&ot.createElement("img",{src:`${(Ae==null?void 0:Ae.indexOf("http://"))>-1||(Ae==null?void 0:Ae.indexOf("https://"))>-1?"":"data:image/png;base64,"}${Ae}`}),(je==="other"||je==="download")&&ot.createElement(ot.Fragment,null,un?ot.createElement(Qe.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:ot.createElement(Re.ZP,{icon:ot.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:jn,disabled:Ht},"\u4E0B\u8F7D")}):ot.createElement(Re.ZP,{type:"primary",size:"middle",onClick:jn,disabled:Ht},ot.createElement(Me.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")))}},79074:function(ze,Ee,ue){"use strict";ue.d(Ee,{z:function(){return je},Z:function(){return $e}});var ce=ue(59301),Pe=ue(53122),Re=ue(49405),Me=ue(64018),We=ue(79710),Te=ue(12242),Ge=ue(59895),st=ue(15342),Qe=ue(1012),Ye=ue(6311),yt=ue(59301),Nt=({html:qe})=>{const nt=(0,ce.useRef)(null),dt=(0,ce.useRef)(null),it=`.markdown-body p {
|
|
|
margin: 0 0 16px 0 !important;
|
|
|
line-height: 28px;
|
|
|
white-space: pre-wrap;
|
|
|
}
|
|
|
|
|
|
ol,
|
|
|
ul,
|
|
|
li {
|
|
|
list-style-type: none
|
|
|
}
|
|
|
|
|
|
ol,
|
|
|
ul,
|
|
|
dl {
|
|
|
margin-bottom: 0px;
|
|
|
}
|
|
|
|
|
|
.markdown-body {
|
|
|
-ms-text-size-adjust: 100%;
|
|
|
-webkit-text-size-adjust: 100%;
|
|
|
color: #333;
|
|
|
overflow: hidden;
|
|
|
font-family: "Microsoft YaHei", Helvetica, "Meiryo UI", "Malgun Gothic", "Segoe UI", "Trebuchet MS", "Monaco", monospace, Tahoma, STXihei, "\u534E\u6587\u7EC6\u9ED1", STHeiti, "Helvetica Neue", "Droid Sans", "wenquanyi micro hei", FreeSans, Arimo, Arial, SimSun, "\u5B8B\u4F53", Heiti, "\u9ED1\u4F53", sans-serif;
|
|
|
word-break: break-word;
|
|
|
font-size: 16px;
|
|
|
line-height: 1.6;
|
|
|
white-space: normal;
|
|
|
word-wrap: break-word;
|
|
|
position: relative;
|
|
|
}
|
|
|
|
|
|
.markdown-body ul>li {
|
|
|
list-style-type: disc;
|
|
|
}
|
|
|
|
|
|
.markdown-body ol>li {
|
|
|
list-style-type: decimal;
|
|
|
}
|
|
|
|
|
|
.markdown-body a {
|
|
|
background: transparent;
|
|
|
}
|
|
|
|
|
|
.markdown-body a:active,
|
|
|
.markdown-body a:hover {
|
|
|
outline: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body strong {
|
|
|
font-weight: bold;
|
|
|
}
|
|
|
|
|
|
.markdown-body h1 {
|
|
|
font-size: 2em;
|
|
|
margin: 0.67em 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body img {
|
|
|
border: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body hr {
|
|
|
-moz-box-sizing: content-box;
|
|
|
box-sizing: content-box;
|
|
|
height: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body pre {
|
|
|
overflow: auto;
|
|
|
}
|
|
|
|
|
|
.markdown-body code,
|
|
|
.markdown-body kbd,
|
|
|
.markdown-body pre {
|
|
|
font-family: "Meiryo UI", "YaHei Consolas Hybrid", Consolas, "Malgun Gothic", "Segoe UI", "Trebuchet MS", Helvetica, monospace, monospace;
|
|
|
font-size: 1em;
|
|
|
}
|
|
|
|
|
|
.markdown-body input {
|
|
|
color: inherit;
|
|
|
font: inherit;
|
|
|
margin: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body html input[disabled] {
|
|
|
cursor: default;
|
|
|
}
|
|
|
|
|
|
.markdown-body input {
|
|
|
line-height: normal;
|
|
|
}
|
|
|
|
|
|
.markdown-body input[type="checkbox"] {
|
|
|
-moz-box-sizing: border-box;
|
|
|
box-sizing: border-box;
|
|
|
padding: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body table {
|
|
|
border-collapse: collapse;
|
|
|
border-spacing: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body td,
|
|
|
.markdown-body th {
|
|
|
padding: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body * {
|
|
|
-moz-box-sizing: border-box;
|
|
|
box-sizing: border-box;
|
|
|
}
|
|
|
|
|
|
.markdown-body input {
|
|
|
font: 13px/1.4 Helvetica, arial, freesans, clean, sans-serif, "Segoe UI Emoji", "Segoe UI Symbol";
|
|
|
}
|
|
|
|
|
|
.markdown-body a {
|
|
|
color: #4183c4;
|
|
|
text-decoration: none;
|
|
|
}
|
|
|
|
|
|
.markdown-body a:hover,
|
|
|
.markdown-body a:active {
|
|
|
text-decoration: underline;
|
|
|
}
|
|
|
|
|
|
.markdown-body hr {
|
|
|
height: 0;
|
|
|
margin: 15px 0;
|
|
|
overflow: hidden;
|
|
|
background: transparent;
|
|
|
border: 0;
|
|
|
border-bottom: 1px solid #ddd;
|
|
|
}
|
|
|
|
|
|
.markdown-body hr:before {
|
|
|
display: table;
|
|
|
content: "";
|
|
|
}
|
|
|
|
|
|
.markdown-body hr:after {
|
|
|
display: table;
|
|
|
clear: both;
|
|
|
content: "";
|
|
|
}
|
|
|
|
|
|
.markdown-body h1,
|
|
|
.markdown-body h2,
|
|
|
.markdown-body h3,
|
|
|
.markdown-body h4,
|
|
|
.markdown-body h5,
|
|
|
.markdown-body h6 {
|
|
|
margin-top: 15px;
|
|
|
margin-bottom: 15px;
|
|
|
line-height: 1.1;
|
|
|
}
|
|
|
|
|
|
.markdown-body h1 {
|
|
|
font-size: 30px;
|
|
|
}
|
|
|
|
|
|
.markdown-body h2 {
|
|
|
font-size: 21px;
|
|
|
}
|
|
|
|
|
|
.markdown-body h3 {
|
|
|
font-size: 16px;
|
|
|
}
|
|
|
|
|
|
.markdown-body h4 {
|
|
|
font-size: 14px;
|
|
|
}
|
|
|
|
|
|
.markdown-body h5 {
|
|
|
font-size: 12px;
|
|
|
}
|
|
|
|
|
|
.markdown-body h6 {
|
|
|
font-size: 11px;
|
|
|
}
|
|
|
|
|
|
.markdown-body blockquote {
|
|
|
margin: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body ul,
|
|
|
.markdown-body ol {
|
|
|
padding: 0;
|
|
|
margin-top: 0;
|
|
|
margin-bottom: 0;
|
|
|
}
|
|
|
|
|
|
ul.linenums,
|
|
|
ol.linenums {
|
|
|
padding: 16px 0 0 36px !important;
|
|
|
}
|
|
|
|
|
|
.markdown-body ul,
|
|
|
.markdown-body ol {
|
|
|
padding-left: 2em;
|
|
|
}
|
|
|
|
|
|
|
|
|
.markdown-body ol ol,
|
|
|
.markdown-body ul ol {
|
|
|
list-style-type: lower-roman;
|
|
|
}
|
|
|
|
|
|
.markdown-body ul ul ol,
|
|
|
.markdown-body ul ol ol,
|
|
|
.markdown-body ol ul ol,
|
|
|
.markdown-body ol ol ol {
|
|
|
list-style-type: lower-alpha;
|
|
|
}
|
|
|
|
|
|
.markdown-body dd {
|
|
|
margin-left: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body code {
|
|
|
font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace;
|
|
|
font-size: 12px;
|
|
|
}
|
|
|
|
|
|
.markdown-body pre {
|
|
|
margin-top: 0;
|
|
|
margin-bottom: 0;
|
|
|
font: 12px Consolas, "Liberation Mono", Menlo, Courier, monospace;
|
|
|
}
|
|
|
|
|
|
.markdown-body .octicon {
|
|
|
font: normal normal 16px octicons-anchor;
|
|
|
line-height: 1;
|
|
|
display: inline-block;
|
|
|
text-decoration: none;
|
|
|
-webkit-font-smoothing: antialiased;
|
|
|
-moz-osx-font-smoothing: grayscale;
|
|
|
-webkit-user-select: none;
|
|
|
-moz-user-select: none;
|
|
|
-ms-user-select: none;
|
|
|
user-select: none;
|
|
|
}
|
|
|
|
|
|
.markdown-body .octicon-link:before {
|
|
|
content: '\f05c';
|
|
|
}
|
|
|
|
|
|
.markdown-body>*:first-child {
|
|
|
margin-top: 0 !important;
|
|
|
}
|
|
|
|
|
|
.markdown-body>*:last-child {
|
|
|
margin-bottom: 0 !important;
|
|
|
}
|
|
|
|
|
|
.markdown-body .anchor {
|
|
|
position: absolute;
|
|
|
top: 0;
|
|
|
left: 0;
|
|
|
display: block;
|
|
|
padding-right: 6px;
|
|
|
padding-left: 30px;
|
|
|
margin-left: -30px;
|
|
|
}
|
|
|
|
|
|
.markdown-body .anchor:focus {
|
|
|
outline: none;
|
|
|
}
|
|
|
|
|
|
.markdown-body h1,
|
|
|
.markdown-body h2,
|
|
|
.markdown-body h3,
|
|
|
.markdown-body h4,
|
|
|
.markdown-body h5,
|
|
|
.markdown-body h6 {
|
|
|
position: relative;
|
|
|
margin-top: 1em;
|
|
|
margin-bottom: 16px;
|
|
|
font-weight: bold;
|
|
|
line-height: 1.4;
|
|
|
}
|
|
|
|
|
|
.markdown-body h1 .octicon-link,
|
|
|
.markdown-body h2 .octicon-link,
|
|
|
.markdown-body h3 .octicon-link,
|
|
|
.markdown-body h4 .octicon-link,
|
|
|
.markdown-body h5 .octicon-link,
|
|
|
.markdown-body h6 .octicon-link {
|
|
|
display: none;
|
|
|
color: #000;
|
|
|
vertical-align: middle;
|
|
|
}
|
|
|
|
|
|
.markdown-body h1:hover .anchor,
|
|
|
.markdown-body h2:hover .anchor,
|
|
|
.markdown-body h3:hover .anchor,
|
|
|
.markdown-body h4:hover .anchor,
|
|
|
.markdown-body h5:hover .anchor,
|
|
|
.markdown-body h6:hover .anchor {
|
|
|
padding-left: 8px;
|
|
|
margin-left: -30px;
|
|
|
text-decoration: none;
|
|
|
}
|
|
|
|
|
|
.markdown-body h1:hover .anchor .octicon-link,
|
|
|
.markdown-body h2:hover .anchor .octicon-link,
|
|
|
.markdown-body h3:hover .anchor .octicon-link,
|
|
|
.markdown-body h4:hover .anchor .octicon-link,
|
|
|
.markdown-body h5:hover .anchor .octicon-link,
|
|
|
.markdown-body h6:hover .anchor .octicon-link {
|
|
|
display: inline-block;
|
|
|
}
|
|
|
|
|
|
.markdown-body h1 {
|
|
|
padding-bottom: 0.3em;
|
|
|
font-size: 2.25em;
|
|
|
line-height: 1.2;
|
|
|
border-bottom: 1px solid #eee;
|
|
|
}
|
|
|
|
|
|
.markdown-body h1 .anchor {
|
|
|
line-height: 1;
|
|
|
}
|
|
|
|
|
|
.markdown-body h2 {
|
|
|
padding-bottom: 0.3em;
|
|
|
font-size: 1.75em;
|
|
|
line-height: 1.225;
|
|
|
border-bottom: 1px solid #eee;
|
|
|
}
|
|
|
|
|
|
.markdown-body h2 .anchor {
|
|
|
line-height: 1;
|
|
|
}
|
|
|
|
|
|
.markdown-body h3 {
|
|
|
font-size: 1.5em;
|
|
|
line-height: 1.43;
|
|
|
}
|
|
|
|
|
|
.markdown-body h3 .anchor {
|
|
|
line-height: 1.2;
|
|
|
}
|
|
|
|
|
|
.markdown-body h4 {
|
|
|
font-size: 1.25em;
|
|
|
}
|
|
|
|
|
|
.markdown-body h4 .anchor {
|
|
|
line-height: 1.2;
|
|
|
}
|
|
|
|
|
|
.markdown-body h5 {
|
|
|
font-size: 1em;
|
|
|
}
|
|
|
|
|
|
.markdown-body h5 .anchor {
|
|
|
line-height: 1.1;
|
|
|
}
|
|
|
|
|
|
.markdown-body h6 {
|
|
|
font-size: 1em;
|
|
|
color: #777;
|
|
|
}
|
|
|
|
|
|
.markdown-body h6 .anchor {
|
|
|
line-height: 1.1;
|
|
|
}
|
|
|
|
|
|
.markdown-body p,
|
|
|
.markdown-body blockquote,
|
|
|
.markdown-body ul,
|
|
|
.markdown-body ol,
|
|
|
.markdown-body dl,
|
|
|
.markdown-body table,
|
|
|
.markdown-body pre {
|
|
|
margin-top: 0;
|
|
|
margin-bottom: 16px;
|
|
|
}
|
|
|
|
|
|
.markdown-body ul ul,
|
|
|
.markdown-body ul ol,
|
|
|
.markdown-body ol ol,
|
|
|
.markdown-body ol ul {
|
|
|
margin-top: 0;
|
|
|
margin-bottom: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body li>p {
|
|
|
margin-top: 16px;
|
|
|
}
|
|
|
|
|
|
.markdown-body dl {
|
|
|
padding: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body dl dt {
|
|
|
padding: 0;
|
|
|
margin-top: 16px;
|
|
|
font-size: 1em;
|
|
|
font-style: italic;
|
|
|
font-weight: bold;
|
|
|
}
|
|
|
|
|
|
.markdown-body dl dd {
|
|
|
padding: 0 16px;
|
|
|
margin-bottom: 16px;
|
|
|
}
|
|
|
|
|
|
.markdown-body blockquote {
|
|
|
padding: 0 15px;
|
|
|
color: #777;
|
|
|
border-left: 4px solid #ddd;
|
|
|
}
|
|
|
|
|
|
.markdown-body blockquote> :first-child {
|
|
|
margin-top: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body blockquote> :last-child {
|
|
|
margin-bottom: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body table {
|
|
|
display: block;
|
|
|
width: 100%;
|
|
|
overflow: auto;
|
|
|
word-break: normal;
|
|
|
word-break: keep-all;
|
|
|
}
|
|
|
|
|
|
.markdown-body table th {
|
|
|
font-weight: bold;
|
|
|
text-align: revert;
|
|
|
}
|
|
|
|
|
|
.markdown-body table th,
|
|
|
.markdown-body table td {
|
|
|
padding: 6px 13px;
|
|
|
border: 1px solid #ddd;
|
|
|
}
|
|
|
|
|
|
.markdown-body table tr {
|
|
|
background-color: #fff;
|
|
|
border-top: 1px solid #ccc;
|
|
|
}
|
|
|
|
|
|
.markdown-body table tr:nth-child(2n) {
|
|
|
background-color: #f8f8f8;
|
|
|
}
|
|
|
|
|
|
.markdown-body img {
|
|
|
max-width: 100%;
|
|
|
-moz-box-sizing: border-box;
|
|
|
box-sizing: border-box;
|
|
|
}
|
|
|
|
|
|
.markdown-body code {
|
|
|
padding: 0;
|
|
|
padding-top: 0.2em;
|
|
|
padding-bottom: 0.2em;
|
|
|
margin: 0;
|
|
|
font-size: 85%;
|
|
|
background-color: rgba(0, 0, 0, 0.04);
|
|
|
border-radius: 3px;
|
|
|
}
|
|
|
|
|
|
.markdown-body code:has(.katex) {
|
|
|
background-color: transparent;
|
|
|
}
|
|
|
|
|
|
.markdown-body code:before,
|
|
|
.markdown-body code:after {
|
|
|
letter-spacing: -0.2em;
|
|
|
content: "\\00a0";
|
|
|
}
|
|
|
|
|
|
.markdown-body pre>code {
|
|
|
padding: 0;
|
|
|
margin: 0;
|
|
|
font-size: 100%;
|
|
|
word-break: normal;
|
|
|
white-space: pre;
|
|
|
background: transparent;
|
|
|
border: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body .highlight {
|
|
|
margin-bottom: 16px;
|
|
|
}
|
|
|
|
|
|
.markdown-body .highlight pre,
|
|
|
.markdown-body pre {
|
|
|
padding: 16px;
|
|
|
overflow: auto;
|
|
|
font-size: 85%;
|
|
|
line-height: 1.45;
|
|
|
background-color: #f7f7f7;
|
|
|
border-radius: 3px;
|
|
|
}
|
|
|
|
|
|
.markdown-body .highlight pre {
|
|
|
margin-bottom: 0;
|
|
|
word-break: normal;
|
|
|
}
|
|
|
|
|
|
.markdown-body pre {
|
|
|
word-wrap: normal;
|
|
|
}
|
|
|
|
|
|
.markdown-body pre code {
|
|
|
display: inline;
|
|
|
max-width: initial;
|
|
|
padding: 0;
|
|
|
margin: 0;
|
|
|
overflow: initial;
|
|
|
line-height: inherit;
|
|
|
word-wrap: normal;
|
|
|
background-color: transparent;
|
|
|
border: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body pre code:before,
|
|
|
.markdown-body pre code:after {
|
|
|
content: normal;
|
|
|
}
|
|
|
|
|
|
.markdown-body kbd {
|
|
|
display: inline-block;
|
|
|
padding: 3px 5px;
|
|
|
font-size: 11px;
|
|
|
line-height: 10px;
|
|
|
color: #555;
|
|
|
vertical-align: middle;
|
|
|
background-color: #fcfcfc;
|
|
|
border: solid 1px #ccc;
|
|
|
border-bottom-color: #bbb;
|
|
|
border-radius: 3px;
|
|
|
box-shadow: inset 0 -1px 0 #bbb;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-c {
|
|
|
color: #969896;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-c1,
|
|
|
.markdown-body .pl-mdh,
|
|
|
.markdown-body .pl-mm,
|
|
|
.markdown-body .pl-mp,
|
|
|
.markdown-body .pl-mr,
|
|
|
.markdown-body .pl-s1 .pl-v,
|
|
|
.markdown-body .pl-s3,
|
|
|
.markdown-body .pl-sc,
|
|
|
.markdown-body .pl-sv {
|
|
|
color: #0086b3;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-e,
|
|
|
.markdown-body .pl-en {
|
|
|
color: #795da3;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-s1 .pl-s2,
|
|
|
.markdown-body .pl-smi,
|
|
|
.markdown-body .pl-smp,
|
|
|
.markdown-body .pl-stj,
|
|
|
.markdown-body .pl-vo,
|
|
|
.markdown-body .pl-vpf {
|
|
|
color: #333;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-ent {
|
|
|
color: #63a35c;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-k,
|
|
|
.markdown-body .pl-s,
|
|
|
.markdown-body .pl-st {
|
|
|
color: #a71d5d;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-pds,
|
|
|
.markdown-body .pl-s1,
|
|
|
.markdown-body .pl-s1 .pl-pse .pl-s2,
|
|
|
.markdown-body .pl-sr,
|
|
|
.markdown-body .pl-sr .pl-cce,
|
|
|
.markdown-body .pl-sr .pl-sra,
|
|
|
.markdown-body .pl-sr .pl-sre,
|
|
|
.markdown-body .pl-src {
|
|
|
color: #df5000;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-mo,
|
|
|
.markdown-body .pl-v {
|
|
|
color: #1d3e81;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-id {
|
|
|
color: #b52a1d;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-ii {
|
|
|
background-color: #b52a1d;
|
|
|
color: #f8f8f8;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-sr .pl-cce {
|
|
|
color: #63a35c;
|
|
|
font-weight: bold;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-ml {
|
|
|
color: #693a17;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-mh,
|
|
|
.markdown-body .pl-mh .pl-en,
|
|
|
.markdown-body .pl-ms {
|
|
|
color: #1d3e81;
|
|
|
font-weight: bold;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-mq {
|
|
|
color: #008080;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-mi {
|
|
|
color: #333;
|
|
|
font-style: italic;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-mb {
|
|
|
color: #333;
|
|
|
font-weight: bold;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-md,
|
|
|
.markdown-body .pl-mdhf {
|
|
|
background-color: #ffecec;
|
|
|
color: #bd2c00;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-mdht,
|
|
|
.markdown-body .pl-mi1 {
|
|
|
background-color: #eaffea;
|
|
|
color: #55a532;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-mdr {
|
|
|
color: #795da3;
|
|
|
font-weight: bold;
|
|
|
}
|
|
|
|
|
|
.markdown-body kbd {
|
|
|
display: inline-block;
|
|
|
padding: 3px 5px;
|
|
|
font: 11px Consolas, "Liberation Mono", Menlo, Courier, monospace;
|
|
|
line-height: 10px;
|
|
|
color: #555;
|
|
|
vertical-align: middle;
|
|
|
background-color: #fcfcfc;
|
|
|
border: solid 1px #ccc;
|
|
|
border-bottom-color: #bbb;
|
|
|
border-radius: 3px;
|
|
|
box-shadow: inset 0 -1px 0 #bbb;
|
|
|
}
|
|
|
|
|
|
.markdown-body .task-list-item {
|
|
|
list-style-type: none;
|
|
|
}
|
|
|
|
|
|
.markdown-body .task-list-item+.task-list-item {
|
|
|
margin-top: 3px;
|
|
|
}
|
|
|
|
|
|
.markdown-body .task-list-item input {
|
|
|
float: left;
|
|
|
margin: 0.3em 0 0.25em -1.6em;
|
|
|
vertical-align: middle;
|
|
|
}
|
|
|
|
|
|
.markdown-body :checked+.radio-label {
|
|
|
z-index: 1;
|
|
|
position: relative;
|
|
|
border-color: #4183c4;
|
|
|
}
|
|
|
|
|
|
|
|
|
/*! Pretty printing styles. Used with prettify.js. */
|
|
|
/* SPAN elements with the classes below are added by prettyprint. */
|
|
|
.pln {
|
|
|
color: #000
|
|
|
}
|
|
|
|
|
|
/* plain text */
|
|
|
|
|
|
@media screen {
|
|
|
.str {
|
|
|
color: #080
|
|
|
}
|
|
|
|
|
|
/* string content */
|
|
|
.kwd {
|
|
|
color: #008
|
|
|
}
|
|
|
|
|
|
/* a keyword */
|
|
|
.com {
|
|
|
color: #800
|
|
|
}
|
|
|
|
|
|
/* a comment */
|
|
|
.typ {
|
|
|
color: #606
|
|
|
}
|
|
|
|
|
|
/* a type name */
|
|
|
.lit {
|
|
|
color: #066
|
|
|
}
|
|
|
|
|
|
/* a literal value */
|
|
|
/* punctuation, lisp open bracket, lisp close bracket */
|
|
|
.pun,
|
|
|
.opn,
|
|
|
.clo {
|
|
|
color: #660
|
|
|
}
|
|
|
|
|
|
.tag {
|
|
|
color: #008
|
|
|
}
|
|
|
|
|
|
/* a markup tag name */
|
|
|
.atn {
|
|
|
color: #606
|
|
|
}
|
|
|
|
|
|
/* a markup attribute name */
|
|
|
.atv {
|
|
|
color: #080
|
|
|
}
|
|
|
|
|
|
/* a markup attribute value */
|
|
|
.dec,
|
|
|
.var {
|
|
|
color: #606
|
|
|
}
|
|
|
|
|
|
/* a declaration; a variable name */
|
|
|
.fun {
|
|
|
color: red
|
|
|
}
|
|
|
|
|
|
/* a function name */
|
|
|
}
|
|
|
|
|
|
/* Use higher contrast and text-weight for printable form. */
|
|
|
@media print,
|
|
|
projection {
|
|
|
.str {
|
|
|
color: #060
|
|
|
}
|
|
|
|
|
|
.kwd {
|
|
|
color: #006;
|
|
|
font-weight: bold
|
|
|
}
|
|
|
|
|
|
.com {
|
|
|
color: #600;
|
|
|
font-style: italic
|
|
|
}
|
|
|
|
|
|
.typ {
|
|
|
color: #404;
|
|
|
font-weight: bold
|
|
|
}
|
|
|
|
|
|
.lit {
|
|
|
color: #044
|
|
|
}
|
|
|
|
|
|
.pun,
|
|
|
.opn,
|
|
|
.clo {
|
|
|
color: #440
|
|
|
}
|
|
|
|
|
|
.tag {
|
|
|
color: #006;
|
|
|
font-weight: bold
|
|
|
}
|
|
|
|
|
|
.atn {
|
|
|
color: #404
|
|
|
}
|
|
|
|
|
|
.atv {
|
|
|
color: #060
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/* Put a border around prettyprinted code snippets. */
|
|
|
pre.prettyprint {
|
|
|
padding: 2px;
|
|
|
/* border: 1px solid #888 */
|
|
|
}
|
|
|
|
|
|
/* Specify class=linenums on a pre to get line numbering */
|
|
|
ol.linenums {
|
|
|
margin-top: 0;
|
|
|
margin-bottom: 0
|
|
|
}
|
|
|
|
|
|
/* IE indents via margin-left */
|
|
|
li.L0,
|
|
|
li.L1,
|
|
|
li.L2,
|
|
|
li.L3,
|
|
|
li.L5,
|
|
|
li.L6,
|
|
|
li.L7,
|
|
|
li.L8 {
|
|
|
list-style-type: none
|
|
|
}
|
|
|
|
|
|
/* Alternate shading for lines */
|
|
|
li.L1,
|
|
|
li.L3,
|
|
|
li.L5,
|
|
|
li.L7,
|
|
|
li.L9 {
|
|
|
background: #eee
|
|
|
}
|
|
|
|
|
|
.markdown-body p,
|
|
|
.markdown-body blockquote,
|
|
|
.markdown-body ul,
|
|
|
.markdown-body ol,
|
|
|
.markdown-body dl,
|
|
|
.markdown-body table,
|
|
|
.markdown-body pre {
|
|
|
margin-top: 0;
|
|
|
margin-bottom: 16px;
|
|
|
}`;return(0,ce.useEffect)(()=>{const bt=nt.current.attachShadow({mode:"open"});dt.current=document.createElement("div"),dt.current.className="markdown-body",dt.current.innerHTML=qe,bt.appendChild(dt.current);const It=document.createElement("style");return It.textContent=it,bt.appendChild(It),()=>{bt.innerHTML=""}},[]),(0,ce.useEffect)(()=>{dt.current&&(dt.current.innerHTML=qe)},[qe]),yt.createElement("div",{ref:nt})},Fe=Object.defineProperty,ne=Object.getOwnPropertySymbols,te=Object.prototype.hasOwnProperty,he=Object.prototype.propertyIsEnumerable,se=(qe,nt,dt)=>nt in qe?Fe(qe,nt,{enumerable:!0,configurable:!0,writable:!0,value:dt}):qe[nt]=dt,ge=(qe,nt)=>{for(var dt in nt||(nt={}))te.call(nt,dt)&&se(qe,dt,nt[dt]);if(ne)for(var dt of ne(nt))he.call(nt,dt)&&se(qe,dt,nt[dt]);return qe};const Se="@\u2581\u2581@",be="@\u2581@",Ae=/<pre[^>]*>/g;function Le(qe){let nt=document.createElement("div");return nt.innerHTML=qe,nt.childNodes.length===0?"":nt.childNodes[0].nodeValue}const je=(qe,nt)=>{qe=qe||"";const dt=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,it=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,bt=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,It=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return nt?qe.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(dt,(Ht,ln,un,Qt,nn,At,ct)=>{const at=ln||Qt||At,rn=un||nn||ct||"?";return Te.Z.API_SERVER+"/api/attachments/"+at+rn+"&t="+(0,Ge.Jn)(at,Date.now())+(Ht.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(qe=qe.replace(It,(Ht,ln,un,Qt,nn,At,ct)=>{const at=ln||Qt||At,rn=un||nn||ct||"?";return Te.Z.API_SERVER+"/attachments/download/"+at+rn+"&t="+(0,Ge.Jn)(at,Date.now())+(Ht.indexOf(")")>-1?")":"&")}).replace(dt,(Ht,ln,un,Qt,nn,At,ct)=>{const at=ln||Qt||At,rn=un||nn||ct||"?";return Te.Z.API_SERVER+"/api/attachments/"+at+rn+"&t="+(0,Ge.Jn)(at,Date.now())+(Ht.indexOf(")")>-1?")":"&")}).replace(it,(Ht,ln,un,Qt,nn)=>{const At=ln||Qt,ct=un||nn||"";return'"'+Te.Z.API_SERVER+"/api/attachments/"+At+ct+At+ct+"&t="+(0,Ge.Jn)(At,Date.now())}).replace(bt,(Ht,ln,un,Qt,nn)=>{const At=ln||Qt,ct=un||nn||"";return"("+Te.Z.API_SERVER+"/files/uploads/"+At+ct+At+ct+"&t="+(0,Ge.Jn)(At,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,`
|
|
|
`),qe)};var $e=({value:qe="",className:nt,showTextOnly:dt,showLines:it,style:bt={},stylesPrev:It={},highlightKeywords:Ht,showProgramFill:ln,isProgramFill:un,disabledFill:Qt=!1,programFillValue:nn,onFillChange:At=rn=>{},onFillBlur:ct=()=>{},onFillFocus:at=()=>{}})=>{let rn=String(qe);const[hn,Pt]=(0,ce.useState)(""),[pn,dn]=(0,ce.useState)("office"),[_n,Yt]=(0,ce.useState)([]),On=(0,ce.useRef)("a"+(0,Qe.Z)()),kt={},jn=(Lt,Zt,Vt)=>{const fn=document.createElement(Lt===be?"input":"textarea");fn.style.width="100%",fn.style.height=Lt===be?"40px":"151px",fn.rows=5,fn.spellcheck=!1,fn.name="edu-program-fill",fn.placeholder="\u8BF7\u8F93\u5165",fn.dataset.id=Zt;const Pn=Object.keys(kt).length;return kt[Pn]=fn,`<span class="edu-program-fill-wrap ${Lt===be?"":"show"}" style="width:${Lt===be?"400px":"100%"}" title=${Vt||""}><span>${fn.outerHTML}<span class="edu-program-fill-score" style="margin:0 6px"></span></span></span>`};function ai(Lt){return Lt=Lt.replace(/!\[.*?\]\(.*?\)/g,""),Lt=Lt.replace(/\[.*?\]\(.*?\)/g,""),Lt=Lt.replace(new RegExp("<iframe.*?<\\/iframe>","gs"),""),Lt=Lt.replace(/<embed.*?>/g,""),Lt=Lt.replace(/<img.*?>/g,""),Lt=Lt.replace(new RegExp("<video.*?>.*?<\\/video>","gs"),""),Lt=Lt.replace(new RegExp("<audio.*?>.*?<\\/audio>","gs"),""),Lt=Lt.replace(new RegExp("<style.*?>.*?<\\/style>","gs"),""),Lt=Lt.replace(new RegExp("<script.*?>.*?<\\/script>","gs"),""),Lt}const et=Lt=>Lt.replace(/<style.*?>([\s\S]+?)<\/style>/gim,function(Zt,Vt){let fn=Vt.replace(/(\n|\r)/g,"").split("}"),Pn=[];return fn.map(yn=>{yn!=""&&Pn.push(`.${On.current} ${yn}`)}),`<style>${Pn.join("}")}</style>`}),De=(0,ce.useMemo)(()=>{try{const fn=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,Pn=/\"\/api\/attachments\/|\"\/attachments\/download\//g,yn=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,Mt=/\(\/attachments\/download\//g;rn=rn.replace(Mt,"("+Te.Z.API_SERVER+"/attachments/download/").replace(fn,"("+Te.Z.API_SERVER+"/api/attachments/").replace(Pn,'"'+Te.Z.API_SERVER+"/api/attachments/").replace(yn,'"'+Te.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(fn){}if(ln){let fn=-1;return rn=rn.replaceAll("<","<").replaceAll(">",">").replace(/(@▁▁@|@▁@)/g,function(Pn,yn,Mt){var zn;return++fn,jn(Pn,fn,(zn=nn==null?void 0:nn[fn])==null?void 0:zn.value.replaceAll("<","<").replaceAll(">",">"))}),`<pre style="background:#fff;padding:4px">${et(rn||"")}</pre>`}let Lt=et(rn);Lt=(0,Re.ZP)(Lt);const Zt=(0,Re.ez)();rn.match(/\[TOC\]/)&&(Lt=Lt.replace("<p>[TOC]</p>",(0,Re.Qv)()),(0,Re.Iy)()),Lt=Lt.replace(/(__special_katext_id_\d+__)/g,(fn,Pn)=>{const{type:yn,expression:Mt}=Zt[Pn];return(0,st.renderToString)(Le(Mt)||"",{displayMode:yn==="block",throwOnError:!1,output:"html"})}),Lt=Lt.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,Re.AL)();const Vt=document.createElement("div");if(Vt.innerHTML=Lt,dt)return Vt.innerText;if(Ht){const fn=Ht.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return Ue(Vt,fn),Vt.innerHTML}return setTimeout(()=>bn(),500),Vt.innerHTML},[rn,Ht]);(0,ce.useEffect)(()=>{gt.current&>.current.querySelectorAll(["input","textarea"]).forEach(Zt=>{Zt.oninput=ke,Zt.onblur=Xe,Zt.onfocus=ut})},[_n]),(0,ce.useEffect)(()=>{var Lt,Zt,Vt,fn,Pn;if(nn!=null&&nn.length)try{const yn=gt.current.querySelectorAll(".edu-program-fill-score"),Mt=gt.current.querySelectorAll('[name="edu-program-fill"]');for(const[zn,qn]of Mt.entries())qn.value=((Lt=nn==null?void 0:nn[zn])==null?void 0:Lt.value)||"",((Zt=nn==null?void 0:nn[zn])==null?void 0:Zt.type)==="warning"?qn.className="program-fill-warning":((Vt=nn==null?void 0:nn[zn])==null?void 0:Vt.type)==="success"?qn.className="program-fill-success":qn.className="";for(const[zn,qn]of yn.entries())qn.innerHTML=(fn=nn==null?void 0:nn[zn])!=null&&fn.score?`${(Pn=nn==null?void 0:nn[zn])==null?void 0:Pn.score}\u5206`:"";Yt(nn)}catch(yn){console.log(yn,"error")}},[nn]);const ke=Lt=>{_n[Lt.target.dataset.id]=_n[Lt.target.dataset.id]||{},_n[Lt.target.dataset.id].value=Lt.target.value,Yt([..._n]),At(_n,Lt.target.dataset.id)},Xe=Lt=>{_n[Lt.target.dataset.id]=_n[Lt.target.dataset.id]||{},_n[Lt.target.dataset.id].value=Lt.target.value,Yt([..._n]),ct(_n,Lt.target.dataset.id)},ut=Lt=>{_n[Lt.target.dataset.id]=_n[Lt.target.dataset.id]||{},_n[Lt.target.dataset.id].value=Lt.target.value,Yt([..._n]),at(_n,Lt.target.dataset.id)};function Ue(Lt,Zt){return Lt.childNodes.forEach(Vt=>{var fn;if(Vt.childNodes.length>0)Ue(Vt,Zt);else if(Vt.nodeName!=="IMG")if(Vt.innerHTML)Vt.innerHTML=(fn=Vt.innerHTML)==null?void 0:fn.replace(new RegExp(Zt,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>');else{const Pn=document.createElement("span");Pn.innerHTML=Vt.textContent.replace(new RegExp(Zt,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>'),Vt.replaceWith(Pn)}})}const gt=(0,ce.useRef)();Re.jb.WebkitLineClamp=it,it&&(bt=ge(ge({},bt),Re.jb));function _t(Lt){let Zt=Lt.target;if(Zt.tagName.toUpperCase()==="A"){let Vt=Zt.getAttribute("href");if(Vt.indexOf("office")>-1)Lt.preventDefault(),Pt(Vt),dn("office");else if(Vt.indexOf("application/pdf")>-1)Lt.preventDefault(),Pt(Vt),dn("pdf");else if(Vt.indexOf("text/html")>-1)Lt.preventDefault(),Pt(Vt),dn("html");else if(Vt.startsWith("#")){Lt.preventDefault();let fn=document.getElementById(Vt.replace("#",""));fn&&fn.scrollIntoView(!0)}}}const bn=()=>{var Lt;const Zt=(Lt=gt.current)==null?void 0:Lt.querySelectorAll("video");Zt==null||Zt.forEach(Vt=>{if(Vt.oncontextmenu=()=>!1,Vt.src.indexOf(".m3u8")>-1&&!Vt.canPlayType("application/vnd.apple.mpegurl")){if(We.ZP.isSupported()){var fn=new We.ZP;fn.loadSource(Vt.src),fn.attachMedia(Vt)}}})};(0,ce.useEffect)(()=>{if(gt.current&&De&&De.match(Ae)&&window.PR.prettyPrint(),gt.current)return gt.current.addEventListener("click",_t),()=>{var Lt;(Lt=gt.current)==null||Lt.removeEventListener("click",_t),(0,Re.AL)(),(0,Re.Iy)()}},[De,gt.current,_t]),(0,ce.useEffect)(()=>{var Lt;const Zt=Vt=>{Vt.preventDefault(),Vt.clipboardData.setData("text",window.getSelection().toString())};return(Lt=gt.current)==null||Lt.addEventListener("copy",Zt),()=>{var Vt;(Vt=gt.current)==null||Vt.removeEventListener("copy",Zt)}},[gt.current]);const xn=Lt=>/<style[\s\S]*?>/i.test(Lt||"");return ce.createElement(ce.Fragment,null,dt&&ce.createElement("div",{ref:gt},De),!dt&&!xn(De)&&ce.createElement("div",{ref:gt,style:ge({},bt),className:`${nt||""} ${Qt?"disabled-fill":""} markdown-body ${On.current}`,dangerouslySetInnerHTML:{__html:De}}),!dt&&xn(De)&&ce.createElement(Nt,{html:De}),ce.createElement(Ye.Z,{close:!0,data:hn,type:hn!=null&&hn.length?pn:"",style:ge({},It),onClose:()=>Pt("")}))}},77531:function(ze,Ee,ue){"use strict";ue.d(Ee,{h:function(){return be}});var ce=ue(59301),Pe=ue(82326),Re=ue(28284),Me=ue(99571),We=ue(89780),Te=ue.n(We),Ge=ue(88540),st=ue(42271),Qe=Object.defineProperty,Ye=Object.defineProperties,yt=Object.getOwnPropertyDescriptors,ot=Object.getOwnPropertySymbols,Nt=Object.prototype.hasOwnProperty,Fe=Object.prototype.propertyIsEnumerable,ne=(Ae,Le,je)=>Le in Ae?Qe(Ae,Le,{enumerable:!0,configurable:!0,writable:!0,value:je}):Ae[Le]=je,te=(Ae,Le)=>{for(var je in Le||(Le={}))Nt.call(Le,je)&&ne(Ae,je,Le[je]);if(ot)for(var je of ot(Le))Fe.call(Le,je)&&ne(Ae,je,Le[je]);return Ae},he=(Ae,Le)=>Ye(Ae,yt(Le));const se=Pe.default.Option,ge={labelCol:{span:4},wrapperCol:{span:20}},Se={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"]};Ee.Z=({callback:Ae,onCancel:Le})=>{const[je,$e]=(0,ce.useState)("python");function qe(dt){$e(Se[dt][1])}function nt(dt){Ae(dt)}return ce.createElement(Re.default,he(te({},ge),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:nt,style:{width:500}}),ce.createElement(Re.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},ce.createElement(Pe.default,{getPopupContainer:dt=>dt.parentNode,onChange:qe},Object.keys(Se).map(dt=>ce.createElement(se,{key:dt,value:dt},Se[dt][0])))),ce.createElement(Re.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},ce.createElement(be,{mode:je})),ce.createElement("div",{className:"flex-container flex-end"},ce.createElement(Me.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ce.createElement(Me.ZP,{type:"ghost",onClick:Le},"\u53D6\u6D88")))};function be({value:Ae,onChange:Le,mode:je,options:$e={}}){const qe=(0,ce.useRef)(),[nt,dt]=(0,ce.useState)();return(0,ce.useEffect)(()=>{if(nt){let it=function(bt){const It=bt.getValue();Le&&Le(It)};return nt.on("change",it),()=>{nt.off("change",it)}}},[nt,Le]),(0,ce.useEffect)(()=>{nt&&nt.setOption("mode",je)},[nt,je]),(0,ce.useEffect)(()=>{nt&&(Ae!==nt.getValue()||Ae==="")&&setTimeout(()=>{nt.setValue(Ae||"")},300)},[nt,Ae]),(0,ce.useEffect)(()=>{if(qe.current&&!nt){const it=Te().fromTextArea(qe.current,te({mode:je,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},$e));dt(it)}},[qe.current,nt]),ce.createElement("div",{className:"my-codemirror-container"},ce.createElement("textarea",{ref:qe}))}},19565:function(ze,Ee,ue){"use strict";ue.d(Ee,{Z:function(){return hi}});var ce=ue(59301),Pe=ue(89780),Re=ue.n(Pe),Me=ue(76374),We=ue(88540),Te=ue(6313),Ge=ue(25717),st=ue(99498),Qe=ue(25419),Ye=ue(67549),yt=ue(79074),ot=({value:Jt="",className:Wt,showTextOnly:jt,showLines:gi,style:ii={}})=>{const Pi=(0,ce.useMemo)(()=>"",[Jt]);return ce.createElement(ce.Fragment,null,ce.createElement("div",{dangerouslySetInnerHTML:{__html:Pi}}))},Nt=ue(59301),Fe=Object.defineProperty,ne=Object.defineProperties,te=Object.getOwnPropertyDescriptors,he=Object.getOwnPropertySymbols,se=Object.prototype.hasOwnProperty,ge=Object.prototype.propertyIsEnumerable,Se=(Jt,Wt,jt)=>Wt in Jt?Fe(Jt,Wt,{enumerable:!0,configurable:!0,writable:!0,value:jt}):Jt[Wt]=jt,be=(Jt,Wt)=>{for(var jt in Wt||(Wt={}))se.call(Wt,jt)&&Se(Jt,jt,Wt[jt]);if(he)for(var jt of he(Wt))ge.call(Wt,jt)&&Se(Jt,jt,Wt[jt]);return Jt},Ae=(Jt,Wt)=>ne(Jt,te(Wt));let Le=[{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 je({onActionCallback:Jt,title:Wt,icon:jt,actionName:gi,className:ii="",children:Pi}){function In(){Jt(gi)}return Nt.createElement("a",{title:Wt,className:ii,onClick:In},Nt.createElement("i",{className:`${jt}`}),Pi)}var $e=({watch:Jt,showNullButton:Wt,showNullProgramButton:jt,onActionCallback:gi,fullScreen:ii,insertTemp:Pi,hidetoolBar:In,extraUse:fi})=>{const on=[...Le,{title:`${Jt?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${Jt?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return Nt.createElement("ul",{className:"markdown-toolbar-container"},!In&&on.map((Gt,li)=>Nt.createElement("li",{key:li},Gt.actionName?Nt.createElement(je,Ae(be({},Gt),{onActionCallback:gi})):Nt.createElement("span",{className:"v-line"}))),Wt?Nt.createElement("li",null,Nt.createElement(je,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:gi},Nt.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,jt?Nt.createElement(Nt.Fragment,null,Nt.createElement("li",null,Nt.createElement(je,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:gi},Nt.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),Nt.createElement("li",null,Nt.createElement(je,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:gi},Nt.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,Pi&&Nt.createElement("li",null,Nt.createElement(je,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${Pi}`,onActionCallback:gi},Nt.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),fi&&Nt.createElement("li",null,fi),Nt.createElement("li",{className:"btn-full-screen"},Nt.createElement(je,{icon:`${ii?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:ii?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:gi})))},qe=ue(52272),nt=ue(28284),dt=ue(37568),it=ue(99571),bt=Object.defineProperty,It=Object.defineProperties,Ht=Object.getOwnPropertyDescriptors,ln=Object.getOwnPropertySymbols,un=Object.prototype.hasOwnProperty,Qt=Object.prototype.propertyIsEnumerable,nn=(Jt,Wt,jt)=>Wt in Jt?bt(Jt,Wt,{enumerable:!0,configurable:!0,writable:!0,value:jt}):Jt[Wt]=jt,At=(Jt,Wt)=>{for(var jt in Wt||(Wt={}))un.call(Wt,jt)&&nn(Jt,jt,Wt[jt]);if(ln)for(var jt of ln(Wt))Qt.call(Wt,jt)&&nn(Jt,jt,Wt[jt]);return Jt},ct=(Jt,Wt)=>It(Jt,Ht(Wt));const at={labelCol:{span:4},wrapperCol:{span:20}};var rn=({callback:Jt,onCancel:Wt})=>{function jt(gi){Jt(gi)}return ce.createElement(nt.default,ct(At({},at),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:jt,style:{width:500}}),ce.createElement(nt.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},ce.createElement(dt.default,null)),ce.createElement(nt.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},ce.createElement(dt.default,null)),ce.createElement("div",{className:"flex-container flex-end"},ce.createElement(it.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ce.createElement(it.ZP,{type:"ghost",onClick:Wt},"\u53D6\u6D88")))},hn=ue(77531),Pt=ue(24141),pn=ue(62957),dn=ue(77019),_n=ue(25138),Yt=ue(59301),On=({callback:Jt,onCancel:Wt})=>{const jt=document.createElement("canvas"),gi=jt.getContext("2d");jt.width=1e3,jt.height=800,gi.fillStyle="#ffffff",gi.fillRect(0,0,jt.width,jt.height);const ii=jt.toDataURL("image/png");return Yt.createElement(pn.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},Yt.createElement(dn.Z,{style:{height:"100vh"}},Yt.createElement(_n.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:ii,visible:!0,title:String(Date.now())},onOk:Pi=>{Jt({src:Pi.url})},onClose:Wt})))},kt=ue(12378);function jn(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(jn,go.CommandHandler),jn.prototype.canAlignSelection=function(){var Jt=this.diagram;return!(Jt===null||Jt.isReadOnly||Jt.isModelReadOnly||Jt.selection.count<2)},jn.prototype.alignLeft=function(){var Jt=this.diagram;Jt.startTransaction("aligning left");var Wt=1/0;Jt.selection.each(function(jt){jt instanceof go.Link||(Wt=Math.min(jt.position.x,Wt))}),Jt.selection.each(function(jt){jt instanceof go.Link||jt.move(new go.Point(Wt,jt.position.y))}),Jt.commitTransaction("aligning left")},jn.prototype.alignRight=function(){var Jt=this.diagram;Jt.startTransaction("aligning right");var Wt=-1/0;Jt.selection.each(function(jt){if(!(jt instanceof go.Link)){var gi=jt.actualBounds.x+jt.actualBounds.width;Wt=Math.max(gi,Wt)}}),Jt.selection.each(function(jt){jt instanceof go.Link||jt.move(new go.Point(Wt-jt.actualBounds.width,jt.position.y))}),Jt.commitTransaction("aligning right")},jn.prototype.alignTop=function(){var Jt=this.diagram;Jt.startTransaction("alignTop");var Wt=1/0;Jt.selection.each(function(jt){jt instanceof go.Link||(Wt=Math.min(jt.position.y,Wt))}),Jt.selection.each(function(jt){jt instanceof go.Link||jt.move(new go.Point(jt.position.x,Wt))}),Jt.commitTransaction("alignTop")},jn.prototype.alignBottom=function(){var Jt=this.diagram;Jt.startTransaction("aligning bottom");var Wt=-1/0;Jt.selection.each(function(jt){if(!(jt instanceof go.Link)){var gi=jt.actualBounds.y+jt.actualBounds.height;Wt=Math.max(gi,Wt)}}),Jt.selection.each(function(jt){jt instanceof go.Link||jt.move(new go.Point(jt.actualBounds.x,Wt-jt.actualBounds.height))}),Jt.commitTransaction("aligning bottom")},jn.prototype.alignCenterX=function(){var Jt=this.diagram,Wt=Jt.selection.first();if(Wt){Jt.startTransaction("aligning Center X");var jt=Wt.actualBounds.x+Wt.actualBounds.width/2;Jt.selection.each(function(gi){gi instanceof go.Link||gi.move(new go.Point(jt-gi.actualBounds.width/2,gi.actualBounds.y))}),Jt.commitTransaction("aligning Center X")}},jn.prototype.alignCenterY=function(){var Jt=this.diagram,Wt=Jt.selection.first();if(Wt){Jt.startTransaction("aligning Center Y");var jt=Wt.actualBounds.y+Wt.actualBounds.height/2;Jt.selection.each(function(gi){gi instanceof go.Link||gi.move(new go.Point(gi.actualBounds.x,jt-gi.actualBounds.height/2))}),Jt.commitTransaction("aligning Center Y")}},jn.prototype.alignColumn=function(Jt){var Wt=this.diagram;Wt.startTransaction("align Column"),Jt===void 0&&(Jt=0),Jt=parseFloat(Jt);var jt=new Array;Wt.selection.each(function(fi){fi instanceof go.Link||jt.push(fi)});for(var gi=0;gi<jt.length-1;gi++){var ii=jt[gi],Pi=ii.actualBounds.y+ii.actualBounds.height+Jt,In=jt[gi+1];In.move(new go.Point(ii.actualBounds.x,Pi))}Wt.commitTransaction("align Column")},jn.prototype.alignRow=function(Jt){Jt===void 0&&(Jt=0),Jt=parseFloat(Jt);var Wt=this.diagram;Wt.startTransaction("align Row");var jt=new Array;Wt.selection.each(function(fi){fi instanceof go.Link||jt.push(fi)});for(var gi=0;gi<jt.length-1;gi++){var ii=jt[gi],Pi=ii.actualBounds.x+ii.actualBounds.width+Jt,In=jt[gi+1];In.move(new go.Point(Pi,ii.actualBounds.y))}Wt.commitTransaction("align Row")},jn.prototype.canRotate=function(Jt){var Wt=this.diagram;return!(Wt===null||Wt.isReadOnly||Wt.isModelReadOnly||Wt.selection.count<1)},jn.prototype.rotate=function(Jt){Jt===void 0&&(Jt=90);var Wt=this.diagram;Wt.startTransaction("rotate "+Jt.toString());var Wt=this.diagram;Wt.selection.each(function(jt){jt instanceof go.Link||jt instanceof go.Group||(jt.angle+=Jt)}),Wt.commitTransaction("rotate "+Jt.toString())},jn.prototype.pullToFront=function(){var Jt=this.diagram;Jt.startTransaction("pullToFront");var Wt=new go.Map;Jt.selection.each(function(jt){Wt.set(jt.layer,0)}),Wt.iteratorKeys.each(function(jt){var gi=0;jt.parts.each(function(ii){if(!ii.isSelected){var Pi=ii.zOrder;isNaN(Pi)?ii.zOrder=0:gi=Math.max(gi,Pi)}}),Wt.set(jt,gi)}),Jt.selection.each(function(jt){jn._assignZOrder(jt,Wt.get(jt.layer)+1)}),Jt.commitTransaction("pullToFront")},jn.prototype.pushToBack=function(){var Jt=this.diagram;Jt.startTransaction("pushToBack");var Wt=new go.Map;Jt.selection.each(function(jt){Wt.set(jt.layer,0)}),Wt.iteratorKeys.each(function(jt){var gi=0;jt.parts.each(function(ii){if(!ii.isSelected){var Pi=ii.zOrder;isNaN(Pi)?ii.zOrder=0:gi=Math.min(gi,Pi)}}),Wt.set(jt,gi)}),Jt.selection.each(function(jt){jn._assignZOrder(jt,Wt.get(jt.layer)-1-jn._findGroupDepth(jt))}),Jt.commitTransaction("pushToBack")},jn._assignZOrder=function(Jt,Wt,jt){jt===void 0&&(jt=Jt),Jt.layer===jt.layer&&(Jt.zOrder=Wt),Jt instanceof go.Group&&Jt.memberParts.each(function(gi){jn._assignZOrder(gi,Wt+1,jt)})},jn._findGroupDepth=function(Jt){if(Jt instanceof go.Group){var Wt=0;return Jt.memberParts.each(function(jt){Wt=Math.max(Wt,jn._findGroupDepth(jt))}),Wt+1}else return 0},jn.prototype.doKeyDown=function(){var Jt=this.diagram;if(Jt!==null){var Wt=Jt.lastInput;if(Wt.key==="Up"||Wt.key==="Down"||Wt.key==="Left"||Wt.key==="Right"){var jt=this.arrowKeyBehavior;if(jt==="none")return;if(jt==="select"){this._arrowKeySelect();return}else if(jt==="move"){this._arrowKeyMove();return}else if(jt==="tree"){this._arrowKeyTree();return}}go.CommandHandler.prototype.doKeyDown.call(this)}},jn.prototype._getAllParts=function(){var Jt=new Array;return this.diagram.nodes.each(function(Wt){Jt.push(Wt)}),this.diagram.parts.each(function(Wt){Jt.push(Wt)}),Jt},jn.prototype._arrowKeyMove=function(){var Jt=this.diagram,Wt=Jt.lastInput,jt=0,gi=0;if(Wt.control||Wt.meta)jt=1,gi=1;else if(Jt.grid!==null){var ii=Jt.grid.gridCellSize;gi=ii.width,jt=ii.height}Jt.startTransaction("arrowKeyMove"),Jt.selection.each(function(Pi){Wt.key==="Up"?Pi.move(new go.Point(Pi.actualBounds.x,Pi.actualBounds.y-jt)):Wt.key==="Down"?Pi.move(new go.Point(Pi.actualBounds.x,Pi.actualBounds.y+jt)):Wt.key==="Left"?Pi.move(new go.Point(Pi.actualBounds.x-gi,Pi.actualBounds.y)):Wt.key==="Right"&&Pi.move(new go.Point(Pi.actualBounds.x+gi,Pi.actualBounds.y))}),Jt.commitTransaction("arrowKeyMove")},jn.prototype._arrowKeySelect=function(){var Jt=this.diagram,Wt=Jt.lastInput,jt=null;Wt.key==="Up"?jt=this._findNearestPartTowards(270):Wt.key==="Down"?jt=this._findNearestPartTowards(90):Wt.key==="Left"?jt=this._findNearestPartTowards(180):Wt.key==="Right"&&(jt=this._findNearestPartTowards(0)),jt!==null&&(Wt.shift?jt.isSelected=!0:Wt.control||Wt.meta?jt.isSelected=!jt.isSelected:Jt.select(jt))},jn.prototype._findNearestPartTowards=function(Jt){var Wt=this.diagram.selection.first();if(Wt===null)return null;for(var jt=Wt.actualBounds.center,gi=this._getAllParts(),ii=1/0,Pi=Wt,In=0;In<gi.length;In++){var fi=gi[In];if(fi!==Wt&&fi.canSelect()){var on=fi.actualBounds.center,Gt=jt.directionPoint(on),li=this._angleCloseness(Gt,Jt);if(li<=45){var vt=jt.distanceSquaredPoint(on);vt*=1+Math.sin(li*Math.PI/180),vt<ii&&(ii=vt,Pi=fi)}}}return Pi},jn.prototype._angleCloseness=function(Jt,Wt){return Math.min(Math.abs(Wt-Jt),Math.min(Math.abs(Wt+360-Jt),Math.abs(Wt-360-Jt)))},jn.prototype._arrowKeyTree=function(){var Jt=this.diagram,Wt=Jt.selection.first();if(Wt instanceof go.Node){var jt=Jt.lastInput;if(jt.key==="Right"){if(!Wt.isTreeLeaf)if(!Wt.isTreeExpanded)Jt.commandHandler.canExpandTree(Wt)&&Jt.commandHandler.expandTree(Wt);else{var gi=this._sortTreeChildrenByY(Wt).first();gi!==null&&Jt.select(gi)}}else if(jt.key==="Left")if(!Wt.isTreeLeaf&&Wt.isTreeExpanded)Jt.commandHandler.canCollapseTree(Wt)&&Jt.commandHandler.collapseTree(Wt);else{var ii=Wt.findTreeParentNode();ii!==null&&Jt.select(ii)}else if(jt.key==="Up"){var ii=Wt.findTreeParentNode();if(ii!==null){var Pi=this._sortTreeChildrenByY(ii),In=Pi.indexOf(Wt);if(In>0){for(var fi=Pi.elt(In-1);fi!==null&&fi.isTreeExpanded&&!fi.isTreeLeaf;){var on=this._sortTreeChildrenByY(fi);fi=on.last()}fi!==null&&Jt.select(fi)}else Jt.select(ii)}}else if(jt.key==="Down")if(Wt.isTreeExpanded&&!Wt.isTreeLeaf){var gi=this._sortTreeChildrenByY(Wt).first();gi!==null&&Jt.select(gi)}else for(;Wt!==null;){var ii=Wt.findTreeParentNode();if(ii===null)break;var Pi=this._sortTreeChildrenByY(ii),In=Pi.indexOf(Wt);if(In<Pi.length-1){Jt.select(Pi.elt(In+1));break}else Wt=ii}var Gt=Jt.selection.first();Gt!==null&&Jt.scrollToRect(Gt.actualBounds)}},jn.prototype._sortTreeChildrenByY=function(Jt){var Wt=new go.List().addAll(Jt.findTreeChildrenNodes());return Wt.sort(function(jt,gi){var ii=jt.location,Pi=gi.location;return ii.y<Pi.y?-1:ii.y>Pi.y?1:ii.x<Pi.x?-1:ii.x>Pi.x?1:0}),Wt},jn.prototype.copyToClipboard=function(Jt){go.CommandHandler.prototype.copyToClipboard.call(this,Jt),this._lastPasteOffset.set(this.pasteOffset)},jn.prototype.pasteFromClipboard=function(){var Jt=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(Jt,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),Jt},Object.defineProperty(jn.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(Jt){if(Jt!=="move"&&Jt!=="select"&&Jt!=="scroll"&&Jt!=="tree"&&Jt!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+Jt);this._arrowKeyBehavior=Jt}}),Object.defineProperty(jn.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(Jt){if(!(Jt instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+Jt);this._pasteOffset.set(Jt)}});var ai=jn,et=ue(71584),De=ue(5269),ke=ue(24092),Xe={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},ut=ue(69669),Ue=ue(59301),gt=(Jt,Wt,jt)=>new Promise((gi,ii)=>{var Pi=on=>{try{fi(jt.next(on))}catch(Gt){ii(Gt)}},In=on=>{try{fi(jt.throw(on))}catch(Gt){ii(Gt)}},fi=on=>on.done?gi(on.value):Promise.resolve(on.value).then(Pi,In);fi((jt=jt.apply(Jt,Wt)).next())});function _t({onCancel:Jt,callback:Wt}){let jt=(0,ce.useRef)(),gi=(0,ce.useRef)(),ii=(0,ce.useRef)(),Pi=(0,ce.useRef)(!1);const In=(0,ce.useRef)(!1),[fi,on]=(0,ce.useState)(0);function Gt(){const vt=kt.bx.make,Sn={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"};jt.current=new kt.S0(gi.current,{padding:20,grid:vt(kt.s_,"Grid",vt(kt.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),vt(kt.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:wi=>{var _i=wi.diagram.commandHandler.addTopLevelParts(wi.diagram.selection,!0);_i||wi.diagram.currentTool.doCancel()},commandHandler:vt(ai),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:wi=>{var _i=wi.subject;_i.location=_i.location.copy().snapToGridPoint(wi.diagram.grid.gridOrigin,wi.diagram.grid.gridCellSize),setTimeout(()=>{wi.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:wi=>{var _i=wi.subject;setTimeout(()=>{wi.diagram.commandHandler.editTextBlock()})},LinkRelinked:wi=>{var _i=wi.parameter.part;_i.invalidateConnectedLinks();var Ji=wi.subject;wi.diagram.toolManager.linkingTool.isForwards?Ji.toNode.invalidateConnectedLinks():Ji.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),jt.current.nodeTemplate=vt(kt.NB,"Auto",{locationSpot:kt.z6.Center,locationObjectName:"SHAPE",desiredSize:new kt.$u(120,60),minSize:new kt.$u(40,40),resizable:!0,resizeCellSize:new kt.$u(10,10),rotatable:!0},new kt.KX("location","loc",kt.E9.parse).makeTwoWay(kt.E9.stringify),new kt.KX("desiredSize","size",kt.$u.parse).makeTwoWay(kt.$u.stringify),vt(kt.bn,{name:"SHAPE",fill:Sn.white,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:kt.z6.AllSides,toSpot:kt.z6.AllSides},new kt.KX("figure"),new kt.KX("fill"),new kt.KX("stroke","borderColor"),new kt.KX("strokeWidth","thickness"),new kt.KX("strokeDashArray","dash")),vt(kt.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),vt(kt.al,{margin:1,textAlign:"center",overflow:kt.al.OverflowEllipsis,editable:!0},new kt.KX("text").makeTwoWay(),new kt.KX("stroke","color"))),jt.current.nodeTemplate.toolTip=vt("ToolTip",vt(kt.s_,"Vertical",{maxSize:new kt.$u(200,NaN)},vt(kt.al,{font:"bold 10pt sans-serif",textAlign:"center"},new kt.KX("text")),vt(kt.al,{font:"10pt sans-serif",textAlign:"center"},new kt.KX("text","details"))));function ri(wi,_i){var Ji=(Gi,ir)=>{Gi.handled=!0,Gi.diagram.model.commit(Fr=>{var Cr=ir.part.adornedPart,Ir=new kt.E9().setRectSpot(Cr.actualBounds,wi);Ir.subtract(Cr.location),Ir.scale(2,2),Ir.x+=Math.sign(Ir.x)*130,Ir.y+=Math.sign(Ir.y)*130,Ir.add(Cr.location),Ir.snapToGridPoint(Gi.diagram.grid.gridOrigin,Gi.diagram.grid.gridCellSize);var Ur=Fr.copyNodeData(Cr.data);Fr.setGroupKeyForNodeData(Ur,Fr.getGroupKeyForNodeData(Cr.data)),Fr.addNodeData(Ur);var Dn={from:Cr.key,to:Fr.getKeyForNodeData(Ur)};Fr.addLinkData(Dn);var Zr=Gi.diagram.findNodeForData(Ur);Zr.location=Ir,Gi.diagram.select(Zr),setTimeout(()=>{Gi.diagram.commandHandler.editTextBlock()},20)})};return vt(kt.bn,{figure:_i,alignment:wi,alignmentFocus:wi.opposite(),width:wi.equals(kt.z6.Top)||wi.equals(kt.z6.Bottom)?25:18,height:wi.equals(kt.z6.Top)||wi.equals(kt.z6.Bottom)?18:25,fill:"orange",stroke:Sn.white,strokeWidth:4,mouseEnter:(Gi,ir)=>ir.fill="dodgerblue",mouseLeave:(Gi,ir)=>ir.fill="orange",isActionable:!0,click:Ji,contextClick:Ji})}function ki(wi){return vt(kt.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:(_i,Ji)=>Ji.fill="dodgerblue",mouseLeave:(_i,Ji)=>Ji.fill="orange",click:(_i,Ji)=>{_i.diagram.commandHandler.showContextMenu(Ji.part.adornedPart)}},wi||{})}jt.current.nodeTemplate.selectionAdornmentTemplate=vt(kt.uz,"Spot",vt(kt.Vm,{padding:10}),ri(kt.z6.Top,"TriangleUp"),ri(kt.z6.Left,"TriangleLeft"),ri(kt.z6.Right,"TriangleRight"),ri(kt.z6.Bottom,"TriangleDown"),ki({alignment:new kt.z6(.75,0)}));function zt(wi,_i){return(Ji,Gi)=>{Ji.handled=!0,Ji.diagram.model.commit(ir=>{ir.set(Gi.part.adornedPart.data,wi,_i)})}}function wn(wi,_i){return _i||(_i="color"),vt(kt.bn,{width:16,height:16,stroke:"lightgray",fill:wi,margin:1,background:"transparent",mouseEnter:(Ji,Gi)=>Gi.stroke="dodgerblue",mouseLeave:(Ji,Gi)=>Gi.stroke="lightgray",click:zt(_i,wi),contextClick:zt(_i,wi)})}function oi(){return[vt("ContextMenuButton",vt(kt.s_,"Horizontal",wn(Sn.white,"fill"),wn(Sn.beige,"fill"),wn(Sn.extralightblue,"fill"),wn(Sn.extralightred,"fill"))),vt("ContextMenuButton",vt(kt.s_,"Horizontal",wn(Sn.lightgray,"fill"),wn(Sn.lightgreen,"fill"),wn(Sn.lightblue,"fill"),wn(Sn.lightred,"fill")))]}function qt(){return[vt("ContextMenuButton",vt(kt.s_,"Horizontal",wn(Sn.black),wn(Sn.green),wn(Sn.blue),wn(Sn.red))),vt("ContextMenuButton",vt(kt.s_,"Horizontal",wn(Sn.white),wn(Sn.magenta),wn(Sn.purple),wn(Sn.orange)))]}function Be(wi,_i){return _i||(_i="thickness"),vt(kt.bn,"LineH",{width:16,height:16,strokeWidth:wi,margin:1,background:"transparent",mouseEnter:(Ji,Gi)=>Gi.background="dodgerblue",mouseLeave:(Ji,Gi)=>Gi.background="transparent",click:zt(_i,wi),contextClick:zt(_i,wi)})}function Mi(wi,_i){return _i||(_i="dash"),vt(kt.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:wi,margin:1,background:"transparent",mouseEnter:(Ji,Gi)=>Gi.background="dodgerblue",mouseLeave:(Ji,Gi)=>Gi.background="transparent",click:zt(_i,wi),contextClick:zt(_i,wi)})}function ui(){return[vt("ContextMenuButton",vt(kt.s_,"Horizontal",Be(1),Be(2),Be(3),Be(4))),vt("ContextMenuButton",vt(kt.s_,"Horizontal",Mi(null),Mi([2,4]),Mi([4,4])))]}function Tn(wi,_i){return _i||(_i="figure"),vt(kt.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:wi,margin:1,background:"transparent",mouseEnter:(Ji,Gi)=>Gi.fill="dodgerblue",mouseLeave:(Ji,Gi)=>Gi.fill="lightgray",click:zt(_i,wi),contextClick:zt(_i,wi)})}jt.current.nodeTemplate.contextMenu=vt("ContextMenu",vt("ContextMenuButton",vt(kt.s_,"Horizontal",Tn("Rectangle"),Tn("RoundedRectangle"),Tn("Ellipse"),Tn("Diamond"))),vt("ContextMenuButton",vt(kt.s_,"Horizontal",Tn("Parallelogram2"),Tn("ManualOperation"),Tn("Procedure"),Tn("Cylinder1"))),vt("ContextMenuButton",vt(kt.s_,"Horizontal",Tn("Terminator"),Tn("CreateRequest"),Tn("Document"),Tn("TriangleDown"))),oi(),qt(),ui()),jt.current.groupTemplate=vt(kt.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:kt.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(wi,_i)=>{var Ji=_i.addMembers(_i.diagram.selection,!0);Ji||_i.diagram.currentTool.doCancel()},avoidable:!1},new kt.KX("location","loc",kt.E9.parse).makeTwoWay(kt.E9.stringify),vt(kt.s_,"Auto",{name:"BODY"},vt(kt.bn,{parameter1:10,fill:Sn.white,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:kt.z6.AllSides,toSpot:kt.z6.AllSides},new kt.KX("fill"),new kt.KX("stroke","color"),new kt.KX("strokeWidth","thickness"),new kt.KX("strokeDashArray","dash")),vt(kt.Vm,{background:"transparent",margin:20})),vt(kt.al,{alignment:kt.z6.Top,alignmentFocus:kt.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new kt.KX("text"),new kt.KX("stroke","color"))),jt.current.groupTemplate.selectionAdornmentTemplate=vt(kt.uz,"Spot",vt(kt.s_,"Auto",vt(kt.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),vt(kt.Vm,{margin:1.5})),ki({alignment:kt.z6.TopRight,alignmentFocus:kt.z6.BottomRight})),jt.current.groupTemplate.contextMenu=vt("ContextMenu",oi(),qt(),ui()),jt.current.linkTemplate=vt(kt.rU,{layerName:"Foreground",routing:kt.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new kt.KX("fromSpot","fromSpot",kt.z6.parse),new kt.KX("toSpot","toSpot",kt.z6.parse),new kt.KX("fromShortLength","dir",wi=>wi>=1?10:0),new kt.KX("toShortLength","dir",wi=>wi>=1?10:0),new kt.KX("points").makeTwoWay(),vt(kt.bn,{strokeWidth:2},new kt.KX("stroke","color"),new kt.KX("strokeWidth","thickness"),new kt.KX("strokeDashArray","dash")),vt(kt.bn,{segmentIndex:0,segmentOffset:new kt.E9(15,0),segmentOrientation:kt.rU.OrientAlong,alignmentFocus:kt.z6.Right,figure:"circle",width:10,strokeWidth:0},new kt.KX("fill","color"),new kt.KX("visible","dir",wi=>wi===1)),vt(kt.bn,{segmentIndex:-1,segmentOffset:new kt.E9(-10,6),segmentOrientation:kt.rU.OrientPlus90,alignmentFocus:kt.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new kt.KX("fill","color"),new kt.KX("visible","dir",wi=>wi>=1),new kt.KX("width","thickness",wi=>7+3*wi),new kt.KX("height","thickness",wi=>7+3*wi),new kt.KX("segmentOffset","thickness",wi=>new kt.E9(-15,4+1.5*wi))),vt(kt.bn,{segmentIndex:0,segmentOffset:new kt.E9(15,-6),segmentOrientation:kt.rU.OrientMinus90,alignmentFocus:kt.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new kt.KX("fill","color"),new kt.KX("visible","dir",wi=>wi===2),new kt.KX("width","thickness",wi=>7+3*wi),new kt.KX("height","thickness",wi=>7+3*wi),new kt.KX("segmentOffset","thickness",wi=>new kt.E9(-15,4+1.5*wi))),vt(kt.al,{alignmentFocus:new kt.z6(0,1,-4,0),editable:!0},new kt.KX("text").makeTwoWay(),new kt.KX("stroke","color"))),jt.current.linkTemplate.selectionAdornmentTemplate=vt(kt.uz,vt(kt.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:Ki(2)},new kt.KX("pathPattern","thickness",Ki)),ki({alignmentFocus:new kt.z6(0,0,-6,-4)}));function Ki(wi){return vt(kt.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(wi+4).toString()+" H3"})}function er(wi){var _i="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return wi===0?_i="M0 0 M16 16 M0 8 L16 8":wi===2&&(_i="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),vt(kt.bn,{geometryString:_i,margin:2,background:"transparent",mouseEnter:(Ji,Gi)=>Gi.background="dodgerblue",mouseLeave:(Ji,Gi)=>Gi.background="transparent",click:zt("dir",wi),contextClick:zt("dir",wi)})}function or(wi){var _i=(Ji,Gi)=>{Ji.handled=!0,Ji.diagram.model.commit(ir=>{var Fr=Gi.part.adornedPart;ir.set(Fr.data,wi?"toSpot":"fromSpot",kt.z6.stringify(kt.z6.AllSides)),(wi?Fr.toNode:Fr.fromNode).invalidateConnectedLinks()})};return vt(kt.bn,{width:12,height:12,fill:"transparent",mouseEnter:(Ji,Gi)=>Gi.background="dodgerblue",mouseLeave:(Ji,Gi)=>Gi.background="transparent",click:_i,contextClick:_i})}function Cn(wi,_i){var Ji=0,Gi=kt.z6.RightSide;wi.equals(kt.z6.Top)?(Ji=270,Gi=kt.z6.TopSide):wi.equals(kt.z6.Left)?(Ji=180,Gi=kt.z6.LeftSide):wi.equals(kt.z6.Bottom)&&(Ji=90,Gi=kt.z6.BottomSide),_i||(Ji-=180);var ir=(Fr,Cr)=>{Fr.handled=!0,Fr.diagram.model.commit(Ir=>{var Ur=Cr.part.adornedPart;Ir.set(Ur.data,_i?"toSpot":"fromSpot",kt.z6.stringify(Gi)),(_i?Ur.toNode:Ur.fromNode).invalidateConnectedLinks()})};return vt(kt.bn,{alignment:wi,alignmentFocus:wi.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:Ji,background:"transparent",mouseEnter:(Fr,Cr)=>Cr.background="dodgerblue",mouseLeave:(Fr,Cr)=>Cr.background="transparent",click:ir,contextClick:ir})}jt.current.linkTemplate.contextMenu=vt("ContextMenu",qt(),ui(),vt("ContextMenuButton",vt(kt.s_,"Horizontal",er(0),er(1),er(2))),vt("ContextMenuButton",vt(kt.s_,"Horizontal",vt(kt.s_,"Spot",or(!1),Cn(kt.z6.Top,!1),Cn(kt.z6.Left,!1),Cn(kt.z6.Right,!1),Cn(kt.z6.Bottom,!1)),vt(kt.s_,"Spot",{margin:new kt.Zt(0,0,0,2)},or(!0),Cn(kt.z6.Top,!0),Cn(kt.z6.Left,!0),Cn(kt.z6.Right,!0),Cn(kt.z6.Bottom,!0)))));const Kt=`{ "class": "GraphLinksModel",
|
|
|
"nodeDataArray": [
|
|
|
{"text":"Find Problem","key":-9,"loc":"-20 -140","color":"#3358ff","fill":"white","figure":"Procedure","thickness":3},
|
|
|
{"text":"What do we want?","key":-10,"loc":"-65 -324.305","group":-16,"figure":"Ellipse","fill":"white"},
|
|
|
{"text":"What do our users want?","key":-11,"loc":"105 -334.305","group":-20,"figure":"Ellipse","fill":"#ffffff","color":"black"},
|
|
|
{"text":"Meetings","key":-12,"loc":"-65 -444.305","group":-16,"figure":"TriangleDown","fill":"#ffffff"},
|
|
|
{"text":"Reviews","key":-13,"loc":"105 -454.305","group":-20,"figure":"TriangleDown","fill":"#ffffff","color":"black"},
|
|
|
{"text":"Can we solve it?","key":-14,"loc":"190 -140","color":"#7d33ff","fill":"#ffffff","figure":"Diamond","size":"140 80","thickness":3},
|
|
|
{"isGroup":true,"text":"Internal","key":-16,"loc":"-65 -384.305","fill":"#d5ebff","dash":null,"thickness":1,"group":-22},
|
|
|
{"isGroup":true,"text":"External","key":-20,"loc":"105 -394.305","fill":"#d5ebff","dash":null,"thickness":1,"group":-22},
|
|
|
{"isGroup":true,"text":"Sources","key":-22,"loc":"20 -400","fill":"#a5d2fa","dash":[4,4],"color":"#3358ff"}
|
|
|
],
|
|
|
"linkDataArray": [
|
|
|
{"from":-12,"to":-10,"points":[-65,-414.305,-65,-404.305,-65,-384.305,-65,-384.305,-65,-364.305,-65,-354.305],"dash":null,"dir":1},
|
|
|
{"from":-13,"to":-11,"points":[105,-424.305,105,-414.305,105,-394.305,105,-394.305,105,-374.305,105,-364.305],"dash":null,"color":"#000000","dir":1},
|
|
|
{"from":-10,"to":-9,"points":[-65,-294.305,-65,-284.305,-65,-232.1525,-40,-232.1525,-40,-180,-40,-170],"dir":2,"dash":[4,4]},
|
|
|
{"from":-11,"to":-9,"points":[105,-304.305,105,-294.305,105,-237.1525,0,-237.1525,0,-180,0,-170],"dash":[4,4],"dir":2},
|
|
|
{"from":-9,"to":-14,"points":[40,-150,58,-150,80,-150,80,-153.33333333333331,102,-153.33333333333331,120,-153.33333333333331],"dir":1,"color":"#3358ff"},
|
|
|
{"from":-14,"to":-9,"points":[190,-100,190,-90,-20,-90,-20,-95,-20,-100,-20,-110],"fromSpot":"BottomSide","toSpot":"BottomSide","text":"No","color":"#ff3333","thickness":2,"dir":1},
|
|
|
{"from":-9,"to":-14,"points":[40,-130,58,-130,80,-130,80,-126.66666666666666,102,-126.66666666666666,120,-126.66666666666666]}
|
|
|
]}`;var sr=["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 ro(wi){return console.log("shapeName:",wi),sr.indexOf(wi)>=0}var mn=new kt.YI(ii.current,{maxSelectionCount:1,linkTemplate:vt(kt.rU,{locationSpot:kt.z6.Center,selectionAdornmentTemplate:vt(kt.uz,"Link",{locationSpot:kt.z6.Center},vt(kt.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),vt(kt.bn,{toArrow:"Standard",stroke:null}))},{routing:kt.rU.AvoidsNodes,curve:kt.rU.JumpOver,corner:5,toShortLength:4},new kt.KX("points"),vt(kt.bn,{isPanelMain:!0,strokeWidth:2}),vt(kt.bn,{toArrow:"Standard",stroke:null})),model:new kt.FJ([{text:"\u672A\u547D\u540D",size:"100 100",fill:null,stroke:"#000"},...kt.bn.getFigureGenerators().toArray().map(wi=>({text:"\u672A\u547D\u540D",size:"100 100",figure:wi.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return jt.current.addDiagramListener("TextEdited",function(wi){var _i;const Ji=wi.subject.part;var Gi=(_i=document.activeElement)==null?void 0:_i.value;typeof Gi=="string"&&Gi.trim()===""&&jt.current.model.commit(function(ir){ir.set(Ji.data,"text","\u672A\u547D\u540D"),jt.current.commandHandler.stopCommand()},"increment")}),mn.nodeTemplate=vt(kt.NB,"Auto",{locationSpot:kt.z6.Center},new kt.KX("location","location",kt.E9.parse).makeTwoWay(kt.E9.stringify),vt(kt.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 kt.KX("stroke").makeTwoWay(),new kt.KX("fill").makeTwoWay(),new kt.KX("figure")),vt(kt.al,{margin:new kt.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new kt.$u(16,16),maxSize:new kt.$u(10,NaN),textAlign:"center",editable:!0},new kt.KX("key").makeTwoWay())),setTimeout(()=>{jt.current.grid=vt(kt.s_,"Grid",vt(kt.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),vt(kt.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),jt.current.grid.visible=!0,jt.current.grid.gridCellStroke="darkgray",jt.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=jt.current,jt.current}const li=()=>gt(this,null,function*(){var vt,Sn=jt.current.makeImage();const ri=yield(0,ke.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:Sn.src,file_data:JSON.stringify({login:(vt=(0,ut.eY)())==null?void 0:vt.login,data:JSON.parse(jt.current.model.toJson())})}});Wt({src:ri.url})});return(0,ce.useEffect)(()=>(setTimeout(()=>{Gt()},500),on(fi+1),()=>{jt.current=null}),[]),Ue.createElement("div",{ref:In,className:"body-overflow-initial"},Ue.createElement(pn.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!fi,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:Ue.createElement(dn.Z,null,Ue.createElement(De.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),Ue.createElement(De.Z,{onClick:()=>{var vt,Sn,ri=jt.current.selection.first();if(Pi.current=!Pi.current,document.activeElement&&ri){let ki=(Sn=(vt=document.activeElement)==null?void 0:vt.value)==null?void 0:Sn.trim();typeof ki=="string"&&jt.current.model.commit(function(zt){zt.set(ri.data,"text",ki||"\u672A\u547D\u540D"),jt.current.commandHandler.stopCommand()},"increment")}on(fi+1)}},Ue.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:Jt},Ue.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative",display:Pi.current?"none":"block"},className:Xe.flowChartWrp},Ue.createElement("div",{style:{display:"flex",height:"100%"}},Ue.createElement("div",{style:{width:"300px",height:"100%"}},Ue.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),Ue.createElement("div",{style:{height:"calc(100% - 50px)"},className:Xe.myPaletteDiv,ref:ii})),Ue.createElement("div",{style:{flex:1,position:"relative"}},Ue.createElement("div",{ref:gi,style:{height:"80vh"}}))),Ue.createElement("div",{className:"tr"},Ue.createElement(it.ZP,{size:"large",onClick:li,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var bn=_t,xn=ue(47889),Lt=ue(71051);const Zt=xn.ZP.Group,Vt={margin:"0 8px"};var fn=({callback:Jt,onCancel:Wt})=>{function jt(gi){Jt(gi)}return ce.createElement(nt.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:jt},ce.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},ce.createElement("span",{style:Vt},"\u5355\u5143\u683C\u6570\uFF1A"),ce.createElement("span",{style:Vt},"\u884C\u6570"),ce.createElement(nt.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},ce.createElement(Lt.Z,null)),ce.createElement("span",{style:Vt},"\u5217\u6570"),ce.createElement(nt.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},ce.createElement(Lt.Z,null))),ce.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},ce.createElement("span",{style:Vt},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),ce.createElement(nt.default.Item,{name:"align"},ce.createElement(Zt,null,ce.createElement(xn.ZP,{value:"default"},ce.createElement("i",{className:"fa fa-align-justify"})),ce.createElement(xn.ZP,{value:"left"},ce.createElement("i",{className:"fa fa-align-left"})),ce.createElement(xn.ZP,{value:"center"},ce.createElement("i",{className:"fa fa-align-center"})),ce.createElement(xn.ZP,{value:"right"},ce.createElement("i",{className:"fa fa-align-right"}))))),ce.createElement("div",{className:"flex-container flex-end"},ce.createElement(it.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ce.createElement(it.ZP,{type:"ghost",onClick:Wt},"\u53D6\u6D88")))},Pn=ue(71411),yn=ue(91e3),Mt=ue.n(yn),qn=(0,ce.forwardRef)(({use3d:Jt,width:Wt,height:jt,callback:gi,showSaveButton:ii},Pi)=>{const In=(0,ce.useRef)(),fi=(0,ce.useRef)(),[on,Gt]=(0,ce.useState)(!1),li=(0,ce.useRef)({id:In,appName:"graphing",width:Wt||1e3,height:jt||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,ce.useEffect)(()=>{fi.current=new(Mt())(li.current,!0),window.onload=function(){fi.current.inject("applet_container")}},[]);const vt=()=>{var Sn=window.ggbApplet.getPNGBase64(1,!0,72);return gi&&gi(Sn),Sn};return(0,ce.useEffect)(()=>{li.current.appName=on?"3D":"graphing",fi.current.inject("applet_container")},[on]),(0,ce.useEffect)(()=>{Gt(Jt)},[Jt]),(0,ce.useImperativeHandle)(Pi,()=>({getImgData:vt})),ce.createElement(ce.Fragment,null,ce.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:In}),ce.createElement(dn.Z,{align:"middle"},ce.createElement(De.Z,{flex:1},ce.createElement(Pn.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:on,onChange:Sn=>Gt(Sn)})),ce.createElement(De.Z,null,ce.createElement(it.ZP,{size:"large",onClick:vt,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),Rn=ue(88831),Zn=ue(6767);const Ai="link",Yn="upload-image",Et="add-flowchart",vi="draw-image",Ri="add-flowchart",sn="code-block",Xi="add-table",cr="------------",fr={default:cr,left:`:${cr}`,center:`:${cr}:`,right:`${cr}:`};var kn=ue(23206);function Or(){}let kr=0;const Wi=1e4,lr="\u2581",wr="@\u2581\u2581@",Ie="@\u2581@",Yi=`
|
|
|
**\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`,Ei=["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 rr(Jt){return/^\d+$/.test(Jt)?`${Jt}px`:Jt}const Gr=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",yr={[Gr+"-B"]:"bold",[Gr+"-I"]:"italic"},Vi={[Ai]:"\u6DFB\u52A0\u94FE\u63A5",[sn]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[Yn]:"\u6DFB\u52A0\u56FE\u7247",[vi]:"\u6DFB\u52A0\u753B\u56FE",[Et]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[Xi]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var hi=({defaultValue:Jt="",onChange:Wt,width:jt="100%",height:gi=400,miniToolbar:ii=!1,isFocus:Pi=!1,watch:In,insertTemp:fi,mode:on="markdown",id:Gt="markdown-editor-id",showResizeBar:li=!1,noStorage:vt=!1,showNullButton:Sn=!1,showNullProgramButton:ri=!1,hidetoolBar:ki=!1,fullScreen:zt=!1,onBlur:wn,onCMBeforeChange:oi,onFullScreen:qt,className:Be="",disablePaste:Mi=!1,disabled:ui=!1,disabledFill:Tn=!1,placeholder:Ki="",values:er="",extraUse:or})=>{const[Cn,Kt]=(0,ce.useState)(null),[sr,ro]=(0,ce.useState)(Jt),[mn,wi]=(0,ce.useState)(In),[_i,Ji]=(0,ce.useState)(zt),[Gi,ir]=(0,ce.useState)(""),[Fr,Cr]=(0,ce.useState)(0),[Ir,Ur]=(0,ce.useState)(gi),[Dn,Zr]=(0,ce.useState)(!1),[Bn,qi]=(0,ce.useState)(0),[ur,gr]=(0,ce.useState)(0),xo=(0,ce.useRef)(),yo=(0,ce.useRef)(),mo=(0,ce.useRef)(),bo=(0,ce.useRef)();(0,ce.useEffect)(()=>{const zi=window.scrollY||window.pageYOffset;ro(er),Cn==null||Cn.setValue(er),window.scrollTo(0,zi)},[er]),(0,ce.useEffect)(()=>{qt==null||qt(_i)},[_i]),(0,ce.useEffect)(()=>{if(xo.current){let zi=function(Ln,Oi){var ar;if(Mi){Oi.preventDefault();return}const _r=Oi.clipboardData;if(_r){const Lr=_r.types.toString(),Wr=_r.items;if(Lr==="Files"||_r.types.indexOf("Files")>-1){if(Oi.preventDefault(),on=="stex")return;try{let Hr=Wr[1];((ar=Wr[0])==null?void 0:ar.kind)==="file"&&(Hr=Wr[0]);const jr=Hr.getAsFile(),So=jr.name.split(".").pop();(0,Pt.I)(jr,vo=>{var ra,tn,Xr;vo.id?((ra=jr==null?void 0:jr.type)==null?void 0:ra.indexOf("image"))>-1?Bi.replaceSelection(`<img width="100%" src="/api/attachments/${vo.id}?type=${vo.content_type})" alt="" />`):((tn=jr==null?void 0:jr.type)==null?void 0:tn.indexOf("video"))>-1?Bi.replaceSelection(`<video width="100%" controls src="/api/attachments/${vo.id}"></video>`):((Xr=jr==null?void 0:jr.type)==null?void 0:Xr.indexOf("pdf"))>-1?Bi.replaceSelection(`<a href="/api/attachments/${vo.id}?type=${jr.type}&disposition=inline" target="_blank">${jr.name}</a>`):Ei.includes(So)?Bi.replaceSelection(`<a href="/api/attachments/${vo.id}?type=office&disposition=inline" target="_blank">${jr.name}</a>`):Bi.replaceSelection(`[${jr.name}](/api/attachments/${vo.id}?type=${vo.content_type})`):(vo==null?void 0:vo.status)===401&&(document.location.href="/user/login")})}catch(Hr){Zn.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const Bi=Re().fromTextArea(xo.current,{mode:on,lineNumbers:!ii,lineWrapping:!0,value:Jt,autoCloseTags:!0,autoCloseBrackets:!0});return Bi.on("keyup",function(Ln,Oi){Oi.keyCode===8&&(Ln.getValue()==""?Bi.setOption("placeholder",Ki):Bi.setOption("placeholder",null))}),Bi.on("keydown",function(Ln,Oi){if(Oi.keyCode===8){var ar=Fn(Ln);ar&&Oi.preventDefault()}}),Pi&&Bi.focus(),Bi.on("paste",zi),ui&&Bi.on("beforeChange",function(Ln,Oi){(Oi.origin==="paste"||Oi.origin==="+input")&&Oi.cancel()}),Kt(Bi),()=>{Bi.off("paste",zi)}}},[]);const cn=(0,ce.useCallback)(()=>{if(yo.current)try{}catch(zi){console.log(zi,"---- to set md editor body height")}},[Ir,yo,_i]);(0,ce.useEffect)(()=>{function zi(){let Bi=new Me.Z(Ln=>{for(let Oi of Ln)(Oi.target.offsetHeight>0||Oi.target.offsetWidth>0)&&(cn(),Cn.setSize("100%","100%"),Cn.refresh())});return Bi.observe(xo.current.parentElement),Bi}if(Cn){const Bi=zi();return()=>{var Ln,Oi;(Ln=xo.current)!=null&&Ln.parentElement&&Bi.unobserve((Oi=xo.current)==null?void 0:Oi.parentElement)}}},[Cn,cn]),(0,ce.useEffect)(()=>{if(Cn){let zi=[];for(const[Bi,Ln]of Object.entries(yr)){let Oi={[Bi]:()=>{an(Ln)}};zi.push(Oi),Cn.addKeyMap(Oi)}return()=>{for(let Bi of zi)Cn.removeKeyMap(Bi)}}},[Cn]),(0,ce.useEffect)(()=>{zt!==_i&&Ji(zt)},[zt]),(0,kn.Z)(()=>{if(!vt&&Fr>0){let zi=new Date().getTime(),Bi=window.sessionStorage.getItem(Gt);zi>=Fr+Wi&&(!Bi||Bi!==sr)&&(window.sessionStorage.setItem(Gt,sr),Zr(!0))}},Wi),(0,ce.useEffect)(()=>{wi(In)},[Cn,In]),(0,ce.useEffect)(()=>{Cn&&Pi&&Cn.focus()},[Cn,Pi]),(0,ce.useEffect)(()=>{if(mn&&Cn){let zi=function(Ln){let Oi=Ln.target;if(bo.current){let ar=Oi.scrollTop/Oi.scrollHeight;bo.current.scrollTop=bo.current.scrollHeight*ar}};const Bi=Cn.getScrollerElement();return Bi.addEventListener("scroll",zi),()=>{Bi.removeEventListener("scroll",zi)}}},[Cn,mn]),(0,ce.useEffect)(()=>{if(Cn&&oi){let zi=function(Bi,Ln){oi(Bi,Ln)};return Cn.on("beforeChange",zi),()=>{Cn.off("beforeChange",zi)}}},[Cn,oi]),(0,ce.useEffect)(()=>{if(Cn&&wn){let zi=function(){wn(Cn.getValue())};return Cn.on("blur",zi),()=>{Cn.off("blur",zi)}}},[Cn,wn]);function Fn(zi,Bi){var Ln=zi.getDoc(),Oi=Ln.getCursor(),ar=Ln.getLine(Oi.line),_r=ar.charAt(Oi.ch-1),Lr=ar.lastIndexOf("@\u2581@",Oi.ch),Wr=ar.lastIndexOf("@\u2581\u2581@",Oi.ch),Hr=Lr>Wr?Lr:Wr,jr=Lr>Wr?3:4;if(wr.indexOf(_r)===-1)return null;if(console.log("change1:",Bi,zi,ar,Oi,Hr,Lr,Wr,_r),Hr>=0&&Oi.ch-Hr<5){var So=Hr+jr;return Ln.replaceRange("",{line:Oi.line,ch:Hr},{line:Oi.line,ch:So}),{line:Oi.line,ch:So}}return null}(0,ce.useEffect)(()=>{if(Cn){let zi=function(Bi,Ln){const Oi=Bi.getValue();ro(Oi),Cr(new Date().getTime()),Bi.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),Wt&&(ri?Wt(Oi,pi(Oi)):Wt(Oi))};return Cn.on("change",zi),()=>{Cn.off("change",zi)}}},[Cn,Wt]),(0,ce.useEffect)(()=>{if(Cn)if(Jt==null)Cn.setValue(""),ro("");else{const zi=window.scrollY||window.pageYOffset;Jt!==Cn.getValue()&&(Cn.setValue(Jt),ro(Jt),Cn.setCursor(ui?1:Cn.lineCount(),0),window.scrollTo(0,zi))}},[Cn,Jt]);const an=(0,ce.useCallback)(zi=>{const Bi=Cn.getCursor(),Ln=Cn.getSelection();let Oi=Ln.split(`
|
|
|
`);switch(zi){case"bold":return Cn.replaceSelection("**"+Ln+"**"),Ln===""&&Cn.setCursor(Bi.line,Bi.ch+2),Cn.focus();case"italic":return Cn.replaceSelection("*"+Ln+"*"),Ln===""&&Cn.setCursor(Bi.line,Bi.ch+1),Cn.focus();case"code":return Cn.replaceSelection("`"+Ln+"`"),Ln===""&&Cn.setCursor(Bi.line,Bi.ch+1),Cn.focus();case"inline-latex":return ir("inline-latex"),Cn.focus();case"latex":return Cn.replaceSelection("```latex\n"+Ln+"\n```"),Cn.setCursor(Bi.line+1,Ln.length+1),Cn.focus();case"line-break":return Cn.replaceSelection(`<br/>
|
|
|
`),Cn.focus();case"list-ul":return Ln===""?Cn.replaceSelection("- "+Ln):Cn.replaceSelection(Oi.map(ar=>ar===""?"":`- ${ar}`).join(`
|
|
|
`)),Cn.focus();case"list-ol":return Ln===""?Cn.replaceSelection("1. "+Ln):Cn.replaceSelection(Oi.map((ar,_r)=>ar===""?"":`${_r+1}. ${ar}`).join(`
|
|
|
`)),Cn.focus();case"add-null-ch":return Ln===""&&Cn.setCursor(Bi.line,Bi.ch),Cn.replaceSelection(lr),Cn.focus();case"add-signal":return Ln===""&&Cn.setCursor(Bi.line,Bi.ch),Cn.replaceSelection(Ie),Cn.focus();case"add-multiple":return Ln===""&&Cn.setCursor(Bi.line,Bi.ch),Cn.replaceSelection(wr),Cn.focus();case"inster-template-1":return Ln===""&&Cn.setCursor(Bi.line,Bi.ch),Cn.replaceSelection(Yi),Cn.focus();case"eraser":return Cn.setValue(""),Cn.focus();case"trigger-watch":return wi(!mn),Cn.focus();case"trigger-full-screen":return Ji(!_i),Cn.focus();case Ai:ir(Ai);return;case sn:ir(sn);return;case Yn:ir(Yn);return;case vi:ir(vi);return;case"maths-latex":ir("maths-latex");return;case Et:ir(Et);return;case Xi:ir(Xi);return;default:throw new Error}},[Cn,mn,_i]),Je=(0,ce.useCallback)((zi,Bi)=>{var Ln,Oi,ar,_r,Lr,Wr;switch(ir(""),Gi){case Ai:const{title:ra,link:tn}=zi;return Cn.replaceSelection(`[${ra}](${tn})`),Cn.focus();case sn:const{language:Xr,content:uo}=zi;return Cn.replaceSelection(["```"+Xr,uo,"```"].join(`
|
|
|
`)),Cn.focus();case"maths-latex":for(var Hr=atob(zi),jr=new Uint8Array(Hr.length),So=0;So<Hr.length;So++)jr[So]=Hr.charCodeAt(So);var vo=new Blob([jr],{type:"image/png"});(0,Pt.I)(vo,pa=>{pa.id?Cn.replaceSelection(``):(pa==null?void 0:pa.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":Cn.replaceSelection("`$$"+zi+"$$`");break;case Yn:case vi:case Ri:const{src:Tr,alt:ao}=zi,br=Bi,Go=(ar=(Oi=(Ln=br==null?void 0:br.name)==null?void 0:Ln.split("."))==null?void 0:Oi.pop)==null?void 0:ar.call(Oi);return((_r=br==null?void 0:br.type)==null?void 0:_r.indexOf("image"))>-1||!(br!=null&&br.type)?br!=null&&br.align||br!=null&&br.width?Cn.replaceSelection(`<p style="text-align:${br.align||"initial"}"><img width="${br.width?br.width+"%":"initial"}" src="${Tr}" alt="${ao||""}" /></p>`):Cn.replaceSelection(`<img width="100%" src="${Tr}" alt="${ao||""}" />`):((Lr=br==null?void 0:br.type)==null?void 0:Lr.indexOf("video"))>-1?Cn.replaceSelection(`<video width="100%" controls src="${Tr}"></video>`):((Wr=br==null?void 0:br.type)==null?void 0:Wr.indexOf("pdf"))>-1?Cn.replaceSelection(`<a href="${Tr}?type=${br.type}&disposition=inline" target="_blank">${br.name}</a>`):Ei.includes(Go)?Cn.replaceSelection(`<a href="${Tr}?type=office&disposition=inline" target="_blank">${br.name}</a>`):Cn.replaceSelection(`[${br.name}](${Tr})`),Cn.focus();case Xi:const{row:gn,col:qr,align:Oo}=zi;let Ga=`
|
|
|
`;for(let pa=0;pa<gn;pa++){let us=[],Za=[];for(let pr=0;pr<qr;pr++)pa===1&&Za.push(fr[Oo]),us.push(" ");pa===1&&(Ga+=`| ${Za.join(" | ")} |
|
|
|
`),Ga+=`| ${us.join(qr===1?"":" | ")} |
|
|
|
`}return Cn.replaceSelection(Ga+`
|
|
|
`),Cn.focus();default:throw new Error}},[Cn,Gi]),ci=(0,ce.useMemo)(()=>{switch(Gi){case Ai:return ce.createElement(rn,{callback:Je,onCancel:Qn});case sn:return ce.createElement(hn.Z,{callback:Je,onCancel:Qn});case Yn:return ce.createElement(Pt.Z,{callback:Je,onCancel:Qn});case Et:return ce.createElement(bn,{callback:Je,onCancel:Qn});case Xi:return ce.createElement(fn,{callback:Je,onCancel:Qn});case"maths-latex":return ce.createElement(qn,{showSaveButton:!0,callback:Je});case"inline-latex":return ce.createElement(Rn.Z,{showSaveButton:!0,callback:Je});default:return null}},[Gi]);function Qn(){ir("")}(0,ce.useEffect)(()=>{if(mo.current){let zi=function(Lr){ar=!0,_r=Lr.pageY},Bi=function(){ar=!1},Ln=function(Lr){if(ar){let Wr=Lr.pageY-_r;Wr<0&&(Wr=0),Wr>300&&(Wr=300);let Hr=gi+Wr+"px";Ur(Hr)}},Oi=mo.current,ar=!1,_r=0;return Oi.addEventListener("mousedown",zi),document.addEventListener("mousemove",Ln),document.addEventListener("mouseup",Bi),()=>{Oi.removeEventListener("mousedown",zi),document.removeEventListener("mousemove",Ln),document.removeEventListener("mouseup",Bi)}}},[Cn,mo]),(0,ce.useEffect)(()=>{Ur(gi)},[gi]);const yi=rr(jt),Ci=rr(Ir),Fi={width:yi,height:Ci},Vn=(0,ce.useMemo)(()=>{if(Fr){let zi=new Date(Fr),Bi=zi.getHours(),Ln=zi.getMinutes(),Oi=zi.getSeconds();return Bi=Bi<10?"0"+Bi:Bi,Ln=Ln<10?"0"+Ln:Ln,Oi=Oi<10?"0"+Oi:Oi,`${Bi}:${Ln}:${Oi}`}return 0},[Fr]),pi=zi=>{const Bi=[];if(ri){let Ln=-1;zi=zi.replace(/(@▁▁@|@▁@)/g,function(Oi,ar,_r){Bi.push({multiLine:Oi!==Ie})})}return Bi};function mi(){window.sessionStorage.removeItem(Gt),Zr(!1),Cr(0)}function xi(){Zr(!1),Cr(0),Cn.setValue(window.sessionStorage.getItem(Gt))}(0,ce.useEffect)(()=>{Vi[Gi]&&Gi!==vi&&Gi!==Et&&setTimeout(()=>{const zi=document.getElementsByClassName("markdown-popup-form")[0],Bi=window.innerWidth/2-zi.offsetWidth/2,Ln=window.innerHeight/2-zi.offsetHeight/2;qi(Bi),gr(Ln)},0)},[Gi]);const bi=zi=>{zi.preventDefault();const Bi=zi.clientX-Bn,Ln=zi.clientY-ur;document.body.onmousemove=Oi=>{let ar=Oi.clientX-Bi,_r=Oi.clientY-Ln;const Lr=document.getElementsByClassName("markdown-popup-form")[0],Wr=window.innerWidth-Lr.offsetWidth,Hr=window.innerHeight-Lr.offsetHeight;ar=Math.max(0,Math.min(ar,Wr)),_r=Math.max(0,Math.min(_r,Hr)),tr(Oi.clientX,Oi.clientY,Bi,Ln)&&(qi(ar),gr(_r))},document.body.onmouseup=function(){document.body.onmousemove=null}},tr=(zi,Bi,Ln,Oi)=>{const ar=document.body.clientHeight,_r=document.body.clientWidth;return zi<20&&Ln>zi||zi>_r-20&&Ln<zi||Bi<20&&Oi>Bi||Bi>ar-20&&Oi<Bi?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return ce.createElement(ce.Fragment,null,ce.createElement("div",{className:"markdown-editor-wrapper",ref:yo},ce.createElement("div",{className:`markdown-editor-container ${Be} ${mn?"on-preview":""} ${ii?"mini":""} ${_i?"full-screen":""}`,style:Fi},ce.createElement($e,{insertTemp:fi,watch:mn,fullScreen:_i,showNullButton:Sn,showNullProgramButton:ri,onActionCallback:an,hidetoolBar:ki,extraUse:or}),ce.createElement("div",{className:"markdown-editor-body"},ce.createElement("div",{className:"codemirror-container"},ce.createElement("textarea",{ref:xo,placeholder:Ki})),mn?ce.createElement("div",{ref:bo,className:"preview-container"},on==="stex"&&ce.createElement(ot,{value:sr}),on!=="stex"&&ce.createElement(yt.Z,{disabledFill:Tn,showProgramFill:ri,value:sr})):null))),li?ce.createElement("a",{ref:mo,className:"editor-resize"}):null,Gi===vi&&ce.createElement(On,{callback:Je,onCancel:Qn}),Gi===Et&&ce.createElement(bn,{callback:Je,onCancel:Qn}),ce.createElement(qe.Z,null,Vi[Gi]&&Gi!==vi&&Gi!==Et?ce.createElement(pn.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:Bn,top:ur},title:ce.createElement("div",{style:{cursor:"move"},onMouseDown:bi},Vi[Gi]),open:!0,onCancel:Qn,footer:null,destroyOnClose:!0,width:Gi===Et?"1200px":null,height:Gi===Et?"80vh":null,className:"markdown-popup-form"},ci):null))}},24141:function(ze,Ee,ue){"use strict";ue.d(Ee,{Z:function(){return Le},I:function(){return $e}});var ce=ue(28284),Pe=ue(6767),Re=ue(37568),Me=ue(77736),We=ue(71051),Te=ue(47889),Ge=ue(99571),st=ue(55322),Qe=ue(59301),Ye=ue(59301),yt=Object.defineProperty,ot=Object.defineProperties,Nt=Object.getOwnPropertyDescriptors,Fe=Object.getOwnPropertySymbols,ne=Object.prototype.hasOwnProperty,te=Object.prototype.propertyIsEnumerable,he=(qe,nt,dt)=>nt in qe?yt(qe,nt,{enumerable:!0,configurable:!0,writable:!0,value:dt}):qe[nt]=dt,se=(qe,nt)=>{for(var dt in nt||(nt={}))ne.call(nt,dt)&&he(qe,dt,nt[dt]);if(Fe)for(var dt of Fe(nt))te.call(nt,dt)&&he(qe,dt,nt[dt]);return qe},ge=(qe,nt)=>ot(qe,Nt(nt));const{useForm:Se}=ce.default,be={width:280,marginRight:10},Ae={labelCol:{span:5},wrapperCol:{span:19}};var Le=({callback:qe,onCancel:nt})=>{const[dt]=Se();let it=(0,Qe.useRef)();function bt(ln){it.current.width=dt.getFieldValue("width"),it.current.align=dt.getFieldValue("align"),qe(ln,it.current)}function It(ln,un){if(ln.status===-1){Pe.ZP.error(ln.message);return}dt.setFieldsValue({src:`/api/attachments/${ln.id}`,type:un.type})}function Ht(ln){let un=ln.target.files[0];it.current=un,$e(un,It)}return Ye.createElement(ce.default,ge(se({form:dt},Ae),{className:"upload-image-panel",onFinish:bt,style:{width:470,overflow:"hidden"}}),Ye.createElement(ce.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},Ye.createElement("div",{className:"flex-container"},Ye.createElement(ce.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},Ye.createElement(Re.default,{style:be})),Ye.createElement(je,{onFileChange:Ht}))),Ye.createElement(ce.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},Ye.createElement(Re.default,{style:{width:264}})),Ye.createElement(ce.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},Ye.createElement(Me.Z,null,Ye.createElement(ce.default.Item,{name:"width",style:{margin:0}},Ye.createElement(We.Z,{style:{width:264}})),Ye.createElement("span",{className:"ml8"},"%"))),Ye.createElement(ce.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},Ye.createElement(Te.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"}]})),Ye.createElement("aside",null,Ye.createElement(ce.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},Ye.createElement(Ge.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Ye.createElement(Ge.ZP,{type:"default",onClick:nt},"\u53D6\u6D88"))))};function je({onFileChange:qe}){return Ye.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",Ye.createElement("input",{type:"file",onChange:qe}))}function $e(qe,nt){if(!qe)throw new String("\u6CA1\u6709\u6587\u4EF6");let dt=new FormData;dt.append("editormd-image-file",qe),dt.append("file_param_name","editormd-image-file"),dt.append("byxhr","true");var it=new window.XMLHttpRequest;it.withCredentials=!0,it.addEventListener("load",function(bt){nt(JSON.parse(bt.target.responseText),qe)},!1),it.addEventListener("error",function(bt){console.error(bt)},!1),it.open("POST",`${st.KI}/api/attachments.json`),it.send(dt)}},52272:function(ze,Ee,ue){"use strict";ue.d(Ee,{Z:function(){return Re}});var ce=ue(59301),Pe=ue(4676);class Re extends ce.Component{constructor(We){super(We);const Te=window.document;this.node=Te.createElement("div"),Te.body.appendChild(this.node)}render(){const{children:We}=this.props;return(0,Pe.createPortal)(We,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},89081:function(ze,Ee,ue){"use strict";ue.d(Ee,{SV:function(){return gt},ZP:function(){return Ue}});var ce=ue(59301),Pe=ue(76374);const Re={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"]},Me={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"]},We={keywords:["abstract","amp","array","auto","bool","break","case","catch","char","class","const","constexpr","const_cast","continue","cpu","decltype","default","delegate","delete","do","double","dynamic_cast","each","else","enum","event","explicit","export","extern","false","final","finally","float","friend","gcnew","generic","goto","in","initonly","inline","int","interface","interior_ptr","internal","literal","long","mutable","namespace","new","noexcept","nullptr","__nullptr","operator","override","partial","pascal","pin_ptr","private","property","protected","public","ref","register","reinterpret_cast","restrict","return","safe_cast","sealed","short","signed","sizeof","static","static_assert","static_cast","struct","switch","template","this","thread_local","throw","tile_static","true","try","typedef","typeid","typename","union","unsigned","using","virtual","void","volatile","wchar_t","where","while","_asm","_based","_cdecl","_declspec","_fastcall","_if_exists","_if_not_exists","_inline","_multiple_inheritance","_pascal","_single_inheritance","_stdcall","_virtual_inheritance","_w64","__abstract","__alignof","__asm","__assume","__based","__box","__builtin_alignof","__cdecl","__clrcall","__declspec","__delegate","__event","__except","__fastcall","__finally","__forceinline","__gc","__hook","__identifier","__if_exists","__if_not_exists","__inline","__int128","__int16","__int32","__int64","__int8","__interface","__leave","__m128","__m128d","__m128i","__m256","__m256d","__m256i","__m64","__multiple_inheritance","__newslot","__nogc","__noop","__nounwind","__novtordisp","__pascal","__pin","__pragma","__property","__ptr32","__ptr64","__raise","__restrict","__resume","__sealed","__single_inheritance","__stdcall","__super","__thiscall","__try","__try_cast","__typeof","__unaligned","__unhook","__uuidof","__value","__virtual_inheritance","__w64","__wchar_t"],operators:["=",">","<","!","~","?",":","==","<=",">=","!=","&&","||","++","--","+","-","*","/","&","|","^","%","<<",">>",">>>","+=","-=","*=","/=","&=","|=","^=","%=","<<=",">>=",">>>="],quickKey:[{label:"ifelse",content:["if (${1:condition}) {"," $0","} else {"," ","}"].join(`
|
|
|
`)},{label:"include",content:"include<$0>"},{label:"printf",content:"printf($0)"},{label:"system",content:'system("$0")'},{label:"main",content:["int main () {"," $0","}"].join(`
|
|
|
`)},{label:"if",content:["if () {"," $0","}"].join(`
|
|
|
`)},{label:"for",content:["for(int j=0 ; j<10; j++){"," $0","}"].join(`
|
|
|
`)},{label:"trycatch",content:["try{"," $0","}catch(ExceptionName e){","}"].join(`
|
|
|
`)},{label:"using namespace std;",content:["using namespace std;"].join(`
|
|
|
`)},{label:"include <iostream>",content:["#include <iostream>"].join(`
|
|
|
`)},{label:"include <vector>",content:["#include <vector>"].join(`
|
|
|
`)},{label:"include <cstdio>",content:["#include <cstdio>"].join(`
|
|
|
`)},{label:"include <cstring>",content:["#include <cstring>"].join(`
|
|
|
`)},{label:"include <sstream>",content:["#include <sstream>"].join(`
|
|
|
`)},{label:"include <fstream>",content:["#include <fstream>"].join(`
|
|
|
`)},{label:"include <map>",content:["#include <map>"].join(`
|
|
|
`)},{label:"include <string>",content:["#include <string>"].join(`
|
|
|
`)},{label:"include <cmath>",content:["#include <cmath>"].join(`
|
|
|
`)}]},Te={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(`
|
|
|
`)}]},Ge={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 st=ue(53184),Qe=ue.n(st),Ye=Object.defineProperty,yt=Object.defineProperties,ot=Object.getOwnPropertyDescriptors,Nt=Object.getOwnPropertySymbols,Fe=Object.prototype.hasOwnProperty,ne=Object.prototype.propertyIsEnumerable,te=(_t,bn,xn)=>bn in _t?Ye(_t,bn,{enumerable:!0,configurable:!0,writable:!0,value:xn}):_t[bn]=xn,he=(_t,bn)=>{for(var xn in bn||(bn={}))Fe.call(bn,xn)&&te(_t,xn,bn[xn]);if(Nt)for(var xn of Nt(bn))ne.call(bn,xn)&&te(_t,xn,bn[xn]);return _t},se=(_t,bn)=>yt(_t,ot(bn)),ge=(_t,bn,xn)=>new Promise((Lt,Zt)=>{var Vt=yn=>{try{Pn(xn.next(yn))}catch(Mt){Zt(Mt)}},fn=yn=>{try{Pn(xn.throw(yn))}catch(Mt){Zt(Mt)}},Pn=yn=>yn.done?Lt(yn.value):Promise.resolve(yn.value).then(Vt,fn);Pn((xn=xn.apply(_t,bn)).next())});const Se={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"]}},be=(_t,bn)=>bn.map(xn=>({label:xn,kind:_t.languages.CompletionItemKind.Keyword,insertText:xn})),Ae=_t=>Object.keys(Se.tables).map(bn=>({label:bn,kind:_t.languages.CompletionItemKind.Variable,insertText:bn})),Le=(_t,bn)=>{const xn=Se.tables[_t];return xn?xn.map(Lt=>({label:Lt,kind:bn.languages.CompletionItemKind.Field,insertText:Lt})):[]};function je(_t,bn,xn,Lt,Zt){let Vt=bn.getWordUntilPosition(xn),fn={startLineNumber:xn.lineNumber,endLineNumber:xn.lineNumber,startColumn:Vt.startColumn,endColumn:Vt.endColumn},Pn=Lt.map(yn=>({label:yn,kind:_t.languages.CompletionItemKind.Keyword,insertText:yn,insertTextRules:_t.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:fn}));return Zt.map(yn=>{Pn.push(se(he({},yn),{range:fn}))}),Pn}var $e=_t=>{Se.languages.map(Zt=>(_t.languages.registerDocumentFormattingEditProvider(Zt,{provideDocumentFormattingEdits(Vt,fn,Pn){return ge(this,null,function*(){const yn=Qe()(Vt.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:Vt.getFullModelRange(),text:yn}]})}}),Zt));const bn=We.quickKey.map(Zt=>({label:Zt.label,kind:_t.languages.CompletionItemKind.Method,insertText:Zt.content,insertTextRules:_t.languages.CompletionItemInsertTextRule.InsertAsSnippet})),xn=Te.quickKey.map(Zt=>({label:Zt.label,kind:_t.languages.CompletionItemKind.Method,insertText:Zt.content,insertTextRules:_t.languages.CompletionItemInsertTextRule.InsertAsSnippet})),Lt=Me.quickKey.map(Zt=>({label:Zt.label,kind:_t.languages.CompletionItemKind.Method,insertText:Zt.content,insertTextRules:_t.languages.CompletionItemInsertTextRule.InsertAsSnippet}));_t.languages.registerCompletionItemProvider("cpp",{provideCompletionItems:function(Zt,Vt){var fn=Zt.getWordUntilPosition(Vt),Pn={startLineNumber:Vt.lineNumber,endLineNumber:Vt.lineNumber,startColumn:fn.startColumn,endColumn:fn.endColumn},yn=Zt.getLineContent(Vt.lineNumber).substring(fn.startColumn-2,fn.endColumn);return{suggestions:[...We.keywords.map(Mt=>({label:Mt,kind:_t.languages.CompletionItemKind.Function,documentation:Mt,insertText:Mt,insertTextRules:_t.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Pn})),...We.quickKey.map(Mt=>({label:Mt.label,kind:_t.languages.CompletionItemKind.Function,documentation:Mt.content,insertText:yn.startsWith("#")?Mt.content.replace(/#/,""):Mt.content,insertTextRules:_t.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Pn}))]}}}),_t.languages.registerCompletionItemProvider("c",{provideCompletionItems:function(Zt,Vt){var fn=Zt.getWordUntilPosition(Vt),Pn={startLineNumber:Vt.lineNumber,endLineNumber:Vt.lineNumber,startColumn:fn.startColumn,endColumn:fn.endColumn};return{suggestions:[...Re.keywords.map(yn=>({label:yn,kind:_t.languages.CompletionItemKind.Function,documentation:yn,insertText:yn,insertTextRules:_t.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Pn}))]}}}),_t.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(Zt,Vt){var fn=Zt.getWordUntilPosition(Vt),Pn={startLineNumber:Vt.lineNumber,endLineNumber:Vt.lineNumber,startColumn:fn.startColumn,endColumn:fn.endColumn},yn=Zt.getLineContent(Vt.lineNumber).substring(fn.startColumn-2,fn.endColumn);return{suggestions:[...Me.keywords.map(Mt=>({label:Mt,kind:_t.languages.CompletionItemKind.Function,documentation:Mt,insertText:Mt,insertTextRules:_t.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Pn})),...Me.quickKey.map(Mt=>({label:Mt.label,kind:_t.languages.CompletionItemKind.Function,documentation:Mt.content,insertText:yn.startsWith("#")?Mt.content.replace(/#/,""):Mt.content,insertTextRules:_t.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Pn}))]}}}),_t.languages.registerCompletionItemProvider("scala",{provideCompletionItems:function(Zt,Vt){var fn=Zt.getWordUntilPosition(Vt),Pn={startLineNumber:Vt.lineNumber,endLineNumber:Vt.lineNumber,startColumn:fn.startColumn,endColumn:fn.endColumn},yn=Zt.getLineContent(Vt.lineNumber).substring(fn.startColumn-2,fn.endColumn);return{suggestions:[...Ge.keywords.map(Mt=>({label:Mt,kind:_t.languages.CompletionItemKind.Function,documentation:Mt,insertText:Mt,insertTextRules:_t.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Pn})),...Ge.quickKey.map(Mt=>({label:Mt.label,kind:_t.languages.CompletionItemKind.Function,documentation:Mt.content,insertText:yn.startsWith("#")?Mt.content.replace(/#/,""):Mt.content,insertTextRules:_t.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Pn}))]}}}),_t.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(Zt,Vt){var fn=Zt.getWordUntilPosition(Vt),Pn={startLineNumber:Vt.lineNumber,endLineNumber:Vt.lineNumber,startColumn:fn.startColumn,endColumn:fn.endColumn},yn=Zt.getLineContent(Vt.lineNumber).substring(fn.startColumn-2,fn.endColumn);return{suggestions:[...Te.keywords.map(Mt=>({label:Mt,kind:_t.languages.CompletionItemKind.Function,documentation:Mt,insertText:Mt,insertTextRules:_t.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Pn})),...Te.quickKey.map(Mt=>({label:Mt.label,kind:_t.languages.CompletionItemKind.Function,documentation:Mt.content,insertText:yn.startsWith("#")?Mt.content.replace(/#/,""):Mt.content,insertTextRules:_t.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Pn}))]}}})};const qe="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var nt=Object.defineProperty,dt=(_t,bn,xn)=>bn in _t?nt(_t,bn,{enumerable:!0,configurable:!0,writable:!0,value:xn}):_t[bn]=xn,it=(_t,bn,xn)=>dt(_t,typeof bn!="symbol"?bn+"":bn,xn);const bt=class Tx{constructor(bn,xn,Lt){this.placeholder=bn,this.editor=xn,this.monaco=Lt,xn.onDidChangeModelContent(()=>this.onDidChangeModelContent()),this.onDidChangeModelContent()}onDidChangeModelContent(){this.editor.getValue()===""?this.editor.addContentWidget(this):this.editor.removeContentWidget(this)}getId(){return Tx.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)}};it(bt,"ID","editor.widget.placeholderHint");var Ht=bt,ln=ue(96236),un=ue(6767),Qt=ue(25399),nn=ue(89392),At=ue(16448),ct=ue(56102),at=Object.defineProperty,rn=Object.defineProperties,hn=Object.getOwnPropertyDescriptors,Pt=Object.getOwnPropertySymbols,pn=Object.prototype.hasOwnProperty,dn=Object.prototype.propertyIsEnumerable,_n=(_t,bn,xn)=>bn in _t?at(_t,bn,{enumerable:!0,configurable:!0,writable:!0,value:xn}):_t[bn]=xn,Yt=(_t,bn)=>{for(var xn in bn||(bn={}))pn.call(bn,xn)&&_n(_t,xn,bn[xn]);if(Pt)for(var xn of Pt(bn))dn.call(bn,xn)&&_n(_t,xn,bn[xn]);return _t},On=(_t,bn)=>rn(_t,hn(bn)),kt=(_t,bn)=>{var xn={};for(var Lt in _t)pn.call(_t,Lt)&&bn.indexOf(Lt)<0&&(xn[Lt]=_t[Lt]);if(_t!=null&&Pt)for(var Lt of Pt(_t))bn.indexOf(Lt)<0&&dn.call(_t,Lt)&&(xn[Lt]=_t[Lt]);return xn},jn=(_t,bn,xn)=>new Promise((Lt,Zt)=>{var Vt=yn=>{try{Pn(xn.next(yn))}catch(Mt){Zt(Mt)}},fn=yn=>{try{Pn(xn.throw(yn))}catch(Mt){Zt(Mt)}},Pn=yn=>yn.done?Lt(yn.value):Promise.resolve(yn.value).then(Vt,fn);Pn((xn=xn.apply(_t,bn)).next())});function ai(_t){return/^\d+$/.test(_t)?`${_t}px`:_t}function et(){}let De=!1;const ke={"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 bn=_t;if(Array.isArray(_t)){for(let xn=0;xn<_t.length;xn++){let Lt=ke[_t[xn]];if(Lt)return Lt}return bn[0]}return ke[bn]||bn}let ut=null;var Ue=_t=>{var bn=_t,{width:xn="100%",height:Lt="100%",value:Zt,language:Vt="javascript",style:fn={},options:Pn={},overrideServices:yn={},theme:Mt="vs-dark",onEditBlur:zn,isCopy:qn=!1,onSave:Rn,autoHeight:Zn=!1,forbidCopy:Ai=!1,onChange:Yn=et,editorDidMount:Et=et,onFocus:vi=et,onBreakPoint:Ri=et,breakPointValue:sn=[],filename:Xi="educoder.txt",errorLine:cr,errorContent:fr="",highlightLine:kn,openBreakPoint:Or=!1,placeholder:kr="",showMiniMap:Wi=!0}=bn,lr=kt(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","showMiniMap"]);const wr=(0,ce.useRef)(),Ie=(0,ce.useRef)({}),Yi=(0,ce.useRef)(),Ei=(0,ce.useRef)(),rr=(0,ce.useRef)([]),Br=(0,ce.useRef)(!1),Gr=(0,ce.useRef)(),yr=(0,ce.useRef)(),Vi=(0,ce.useRef)(!1),[hi,Jt]=(0,ce.useState)(!1);function Wt(){let wn;return wr.current&&(wn=new Pe.Z(oi=>{for(let qt of oi)(qt.target.offsetHeight>0||qt.target.offsetWidth>0)&&Ie.current.instance.layout()}),wn.observe(wr.current)),wn}function jt(){un.ZP.warning({content:decodeURIComponent(qe),key:"monaco-editor-tip"})}const gi=()=>{let wn=Ie.current.instance;if(Zt!=null&&wn&&hi){const oi=wn.getModel();oi&&Zt!==oi.getValue()&&(De=!0,oi.setValue(Zt),wn.layout(),De=!1)}};(0,ce.useEffect)(()=>{const wn=At.Z.subscribe("formatDocument",oi=>{var qt;let Be=Ie.current.instance;(qt=Be==null?void 0:Be.getAction)==null||qt.call(Be,"editor.action.formatDocument").run()});return window.updateMonacoValue=oi=>{Yn(oi)},wn},[]),(0,ce.useEffect)(()=>{var wn;let oi=Ie.current.instance;Ei.current&&clearTimeout(Ei.current),Ei.current=setTimeout(()=>{gi()},500),Zt&&(Zt!=null&&Zt.length)&&((wn=oi==null?void 0:oi.updateOptions)==null||wn.call(oi,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(Zt.split(/\r\n|\r|\n/g).length))+3,5)}))},[Zt,hi,Ie.current]),(0,ce.useEffect)(()=>{if(cr&&Ie.current&&Ie.current.instance){let oi=Ie.current.instance;oi.changeViewZones(function(qt){var Be=document.createElement("div");Be.style.padding="10px 20px",Be.style.width="calc(100% - 20px)",Be.className="my-error-line-wrp",Be.innerHTML=fr,qt.addZone({afterLineNumber:cr||11,heightInLines:3,domNode:Be})});var wn={domNode:null,getId:function(){return"my.overlay.widget"},getDomNode:function(){return this.domNode||(this.domNode=document.createElement("div"),this.domNode.innerHTML="",this.domNode.style.width="100%",this.domNode.style.padding="20px 100px",this.domNode.style.right="0px",this.domNode.style.top="50px",this.domNode.style.position="relative",this.domNode.style.color="#333"),this.domNode},getPosition:function(){return null}};oi.addOverlayWidget(wn),oi.revealPositionInCenter({lineNumber:20,column:1})}},[cr,Ie.current,hi]);const ii=(wn="",oi)=>{if(!wn||wn.trim()==="")return!0;const Be=Ie.current.instance.getModel().getLineTokens(oi);let Mi=!1;for(let ui=0;ui<2;ui++)Be.getStandardTokenType(ui)===1&&(Mi=!0);return Mi};(0,ce.useEffect)(()=>{var wn;const oi=(wn=Ie.current)==null?void 0:wn.instance;if(oi&&hi&&Ai){const qt=oi.onDidBlurEditorWidget(()=>{Vi.current=!1}),Be=oi.onDidFocusEditorText(()=>{Vi.current=!0});return()=>{qt.dispose(),Be.dispose()}}},[Ie.current,hi,Ai]),(0,ce.useEffect)(()=>{var wn;if((wn=Ie.current)!=null&&wn.instance&&hi&&Or){let oi=Ie.current.instance,qt=oi.getModel();if(!qt)return;(()=>{var mn;let wi=[],_i=[];const Ji=qt.getAllDecorations();for(let ir of Ji)ir.options.className==="highlighted-line"&&(wi.push((mn=ir==null?void 0:ir.range)==null?void 0:mn.startLineNumber),_i.push(ir==null?void 0:ir.id));if(kn===wi[0])return;qt.deltaDecorations(_i,[]);const Gi=qt.getLineCount();kn&&kn<=Gi&&(oi.deltaDecorations([],[{range:new ut.Range(kn,1,kn,qt.getLineMaxColumn(kn)),options:{isWholeLine:!0,className:"highlighted-line"}}]),oi.revealLineInCenter(kn))})();const Mi=(mn=!1)=>{var wi;let _i=[],Ji=[];const Gi=qt.getAllDecorations();for(let ir of Gi)ir.options.linesDecorationsClassName==="breakpoints-select"&&(_i.push((wi=ir==null?void 0:ir.range)==null?void 0:wi.startLineNumber),Ji.push(ir==null?void 0:ir.id));if(mn)return{lines:_i,ids:Ji};Ri(_i)},ui=mn=>jn(void 0,null,function*(){let wi={range:new ut.Range(mn,1,mn,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield qt.deltaDecorations([],[wi]),Mi()}),Tn=mn=>jn(void 0,null,function*(){let wi=[];const _i=oi.getLineDecorations(mn);for(let Ji of _i)Ji.options.linesDecorationsClassName==="breakpoints-select"&&wi.push(Ji.id);yield qt.deltaDecorations(wi,[]),Mi()}),Ki=mn=>{let wi=oi.getLineDecorations(mn);for(let _i of wi)if(_i.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,nn.isEqual)(sn,Mi(!0).lines)){qt.deltaDecorations(Mi(!0).ids,[]);const mn=sn.map(wi=>({range:new ut.Range(wi,1,wi,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));qt.deltaDecorations([],mn)}const er=oi.onDidChangeModelContent(mn=>{let wi=oi.getPosition();if(wi){let _i=wi.lineNumber;clearTimeout(yr.current),yr.current=setTimeout(()=>{ii(qt.getLineContent(_i),_i)?Tn(_i):Ki(_i)?(Tn(_i),ui(_i)):Mi()},100)}}),or=oi.onMouseDown(mn=>{var wi,_i,Ji;if(mn.target.detail&&((Ji=(_i=(wi=mn.target)==null?void 0:wi.element)==null?void 0:_i.className)!=null&&Ji.includes("line-numbers"))){let Gi=mn.target.position.lineNumber;if(ii(qt.getLineContent(Gi),Gi))return;Ki(Gi)?Tn(Gi):ui(Gi)}}),Cn=mn=>{let wi={range:new ut.Range(mn,1,mn,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};rr.current=oi.deltaDecorations(rr.current,[wi])},Kt=()=>{rr.current=oi.deltaDecorations(rr.current,[])},sr=oi.onMouseMove(mn=>{var wi,_i,Ji;if(Kt(),mn.target.detail&&((Ji=(_i=(wi=mn.target)==null?void 0:wi.element)==null?void 0:_i.className)!=null&&Ji.includes("line-numbers"))){let Gi=mn.target.position.lineNumber;if(ii(qt.getLineContent(Gi),Gi))return;Cn(Gi)}}),ro=oi.onMouseLeave(()=>{Kt()});return()=>{er.dispose(),or.dispose(),sr.dispose(),ro.dispose()}}},[Ie.current,hi,sn,kn,Or,Vt]),(0,ce.useEffect)(()=>{var wn;(wn=Ie.current)!=null&&wn.instance&&Or&&Ie.current.instance.setPosition({lineNumber:0,column:0})},[kn]);function Pi(){let wn=Ie.current.instance;if(wn){const oi=wn.getSelection(),qt=Ie.current.pastePos||{},Be=new ut.Range(qt.startLineNumber||oi.endLineNumber,qt.startColumn||oi.endColumn,qt.endLineNumber||oi.endLineNumber,qt.endColumn||oi.endColumn);setTimeout(()=>{wn.executeEdits("",[{range:Be,text:""}])},300)}}function In(wn){(window.navigator.platform.match("Mac")?wn.metaKey:wn.ctrlKey)&&wn.keyCode==83&&(wn.preventDefault(),Rn())}const fi=()=>{if(Zn&&Ie.current.instance){const wn=Ie.current.instance.getContentHeight();ki(wn<Lt?Lt:wn)}else ki(Lt)};function on(wn){var oi=document.createEvent("MouseEvents");oi.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),wn.dispatchEvent(oi)}const Gt=wn=>{if(!Vi.current)return;const{keyCode:oi,ctrlKey:qt,metaKey:Be,target:Mi,type:ui}=wn;return(ui==="paste"||(oi===67||oi===86)&&(Be||qt))&&Mi.nodeName==="TEXTAREA"&&(jt(),wn.preventDefault()),!1};function li(wn,oi){var qt=window.URL||window.webkitURL||window,Be=new Blob([oi]),Mi=document.createElementNS("http://www.w3.org/1999/xhtml","a");Mi.href=qt.createObjectURL(Be),Mi.download=wn,on(Mi)}(0,ce.useEffect)(()=>{fi()},[fi]),(0,ce.useEffect)(()=>{wr.current&&!hi&&Promise.all([ue.e(8909),ue.e(7960)]).then(ue.bind(ue,71448)).then(wn=>{try{ut=wn,Ie.current.instance=ut.editor.create(wr.current,{value:Zt,language:Xe(Vt),theme:Mt,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0,minimap:{enabled:Wi||!1}},yn);const oi=Ie.current.instance;let Mi=[...ln.BH._menuItems].find(er=>er[0]._debugName=="EditorContext")[1],ui=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],Tn=(er,or)=>{var Cn,Kt;let sr=er._first;do or.includes((Kt=(Cn=sr.element)==null?void 0:Cn.command)==null?void 0:Kt.id)&&er._remove(sr);while(sr=sr.next)};if(Et(oi,ut),setTimeout(()=>{fi(),Ie.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{li(Xi||"educoder.txt",oi.getValue())}})},500),Ie.current.subscription=oi.onDidChangeModelContent(er=>{Br.current?clearTimeout(Gr.current):(fi(),Yn(oi.getValue(),er)),Gr.current=setTimeout(()=>{Br.current=!1},500)}),window.Monaco||$e(ut,Xe(Vt)),Ai&&(Tn(Mi,ui),wr.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",Gt),window.removeEventListener("paste",Gt),window.addEventListener("keydown",Gt),window.addEventListener("paste",Gt)),window.Monaco=ut,zn&&oi.onDidBlurEditorWidget(()=>{zn(oi.getValue())}),vi&&oi.onDidFocusEditorText(()=>{vi(oi.getValue())}),Ai)try{oi.onDidPaste(er=>{const or=oi.getSelection(),Cn=Ie.current.pastePos||{},Kt=new ut.Range(Cn.startLineNumber||or.endLineNumber,Cn.startColumn||or.endColumn,Cn.endLineNumber||or.endLineNumber,Cn.endColumn||or.endColumn);oi.executeEdits("",[{range:er.range,text:""}])})}catch(er){}let Ki=Wt();return kr&&typeof kr=="string"&&new Ht(kr,oi,ut),Jt(!0),()=>{const er=Ie.current.instance;er.dispose();const or=er.getModel();or&&or.dispose(),Ie.current.subscription&&Ie.current.subscription.dispose(),Ki.unobserve(wr.current)}}catch(oi){}})},[]),(0,ce.useEffect)(()=>{if(Ie.current.instance&&hi)return document.addEventListener("keydown",In,!1),()=>{document.removeEventListener("keydown",In)}},[Rn,hi]),(0,ce.useEffect)(()=>{let wn=Ie.current.instance;if(wn&&hi){let oi=Xe(Vt);ut.editor.setModelLanguage(wn.getModel(),oi)}},[Vt,hi]),(0,ce.useEffect)(()=>{Ie.current.instance&&hi&&ut.editor.setTheme(Mt)},[Mt,hi]),(0,ce.useEffect)(()=>{let wn=Ie.current.instance;Yi.current=Pn,wn&&hi&&(wn.updateOptions(Yt({},Pn)),setTimeout(()=>{wn.getModel().updateOptions(Yt({},Pn))},200))},[JSON.stringify(Pn),hi]),(0,ce.useEffect)(()=>{let wn=Ie.current.instance;wn&&hi&&wn.layout()},[xn,Lt,hi]);const[vt,Sn]=(0,ce.useState)(ai(xn)),[ri,ki]=(0,ce.useState)(ai(Lt)),zt=On(Yt({},fn),{width:vt,height:ri,position:"relative"});return ce.createElement("div",{className:"my-monaco-editor",ref:wr,style:zt},qn&&ce.createElement(ct.CopyToClipboard,{text:Zt,onCopy:()=>un.ZP.success("\u590D\u5236\u6210\u529F")},ce.createElement(Qt.Z,{title:"\u590D\u5236\u4EE3\u7801"},ce.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},ce.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function gt({width:_t="100%",height:bn="100%",original:xn,modified:Lt,language:Zt,options:Vt={}}){const fn=(0,ce.useRef)(),[Pn,yn]=(0,ce.useState)(null);function Mt(Zn){let Ai;return fn.current&&(Ai=new Pe.Z(Yn=>{for(let Et of Yn)(Et.target.offsetHeight>0||Et.target.offsetWidth>0)&&Zn.layout()}),Ai.observe(fn.current)),Ai}(0,ce.useEffect)(()=>(fn.current&&Promise.all([ue.e(8909),ue.e(9404)]).then(ue.bind(ue,2550)).then(Zn=>{ut=Zn;const Ai=ut.editor.createDiffEditor(fn.current,On(Yt({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},Vt),{wordWrap:!0}));yn(Ai);let Yn=Mt(Ai);return()=>{Ai.dispose();const Et=Ai.getModel();Et&&Et.dispose(),Yn.unobserve(fn.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,ce.useEffect)(()=>{Pn&&Pn.setModel({original:ut.editor.createModel(xn,Zt),modified:ut.editor.createModel(Lt,Zt)})},[xn,Lt,Zt,Pn]);const zn=ai(_t),qn=ai(bn),Rn={width:zn,height:qn};return ce.createElement("div",{className:"my-diff-editor",ref:fn,style:Rn})}},46133:function(ze,Ee,ue){"use strict";ue.d(Ee,{jL:function(){return We},w9:function(){return pn},QD:function(){return Yn},cQ:function(){return ct},op:function(){return Mt},O5:function(){return yr},_b:function(){return cr},t7:function(){return se},Gi:function(){return jn},YG:function(){return On},qp:function(){return yt},vr:function(){return Ri},qE:function(){return Rn},Je:function(){return be},wb:function(){return ln},cq:function(){return ut},tp:function(){return Fe}});var ce=ue(59301),Pe={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"},Re="data:image/png;base64,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",We=({dataSource:Vi=[],img:hi,imgWidth:Jt=346,title:Wt,sunTitle:jt,bannerExtraContent:gi})=>ce.createElement("div",{className:Pe.banner},ce.createElement("div",{className:Pe.content},ce.createElement("aside",null,ce.createElement("p",null,ce.createElement("b",null,Wt),ce.createElement("span",null,jt)),Vi.length>0&&ce.createElement("div",{className:Pe.btns},Vi.map((ii,Pi)=>ce.createElement("div",{key:Pi,onClick:ii.click},ii.name,ii.sign?ce.createElement("img",{src:Re,width:39}):null))),gi),hi&&ce.createElement("img",{style:{marginTop:33,marginRight:38},src:hi,width:Jt}))),Te={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"},Ge=ue(92310),st=ue.n(Ge),Qe=ue(89392),yt=({dataSource:Vi=[],value:hi,onChange:Jt,onTitleChange:Wt,className:jt,title:gi,titleWidth:ii=41,style:Pi={},fontColor:In="#6A7283",showCount:fi})=>{const[on,Gt]=(0,ce.useState)(0),[li,vt]=(0,ce.useState)(!1),Sn=(0,ce.useRef)(null),ri=(0,ce.useRef)(null);return(0,ce.useEffect)(()=>{var ki;Vi.length!==0&&(((ki=Sn==null?void 0:Sn.current)==null?void 0:ki.clientHeight)>97?Gt(1):Gt(0)),Vi.length===0&&Gt(0),vt(!1)},[Vi]),ce.createElement("div",{className:st()(Te.row,jt),style:Pi},ce.createElement("div",{onClick:(0,Qe.throttle)(()=>Wt==null?void 0:Wt(),2e3),style:{width:ii,marginTop:li?12:4},className:`${Te.title} ${Wt?"current":""}`},gi),ce.createElement("div",{className:li?`${Te.tagsWrap} ${Te.tagsBorderWrap}`:Te.tagsWrap},ce.createElement("div",{className:Te.bar,ref:ri,style:on>0?{height:on===1?97:"auto",overflow:on===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},ce.createElement("div",{className:Te.tag,ref:Sn},Vi==null?void 0:Vi.map(ki=>ce.createElement("span",{onClick:()=>Jt(ki.id),key:ki.id,style:{color:In},className:hi===ki.id?Te.active:""},ce.createElement("span",{title:ki.name,className:Te.name},ki.name),!!fi&&ce.createElement("span",{className:Te.num},ki.count))))),!!on&&ce.createElement(ce.Fragment,null,on===1?ce.createElement("div",{onClick:()=>{var ki;Gt(2),((ki=Sn==null?void 0:Sn.current)==null?void 0:ki.clientHeight)>245?vt(!0):vt(!1)},className:Te.action},"\u5C55\u5F00",ce.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):ce.createElement("div",{onClick:()=>{ri.current.scrollTop=0,Gt(1),vt(!1)},className:Te.action},"\u6536\u8D77",ce.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},ot={flex_box_center:"flex_box_center___aK2n3",flex_space_between:"flex_space_between___HX0Oh",flex_box_vertical_center:"flex_box_vertical_center___LJOJr",flex_box_center_end:"flex_box_center_end___SCakF",flex_box_column:"flex_box_column___AYv4m",tabs:"tabs___GTqPV",active:"active___F26E8"},Fe=({dataSource:Vi=[],value:hi,onChange:Jt,className:Wt,style:jt={}})=>ce.createElement("div",{style:jt,className:st()(ot.tabs,Wt)},Vi.map(gi=>ce.createElement("span",{onClick:()=>Jt(gi.id),className:hi===gi.id?ot.active:"",key:gi.id},gi.name))),ne={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"},te=ue(37568),se=({dataSource:Vi=[],value:hi="",onChange:Jt,onInputChange:Wt=()=>{},className:jt,style:gi={},placeholder:ii,allowClear:Pi=!1})=>{var In;const[fi,on]=(0,ce.useState)(""),[Gt,li]=(0,ce.useState)("");(0,ce.useEffect)(()=>{var ri;let ki=hi;(ri=JSON.stringify(hi))!=null&&ri.includes("{")&&(on(hi.id),ki=hi.value||"");try{li(decodeURIComponent(ki||""))}catch(zt){li(decodeURIComponent(ki||""))}},[hi]);const vt=()=>{Jt(encodeURIComponent(Gt),fi||null)},Sn=ri=>{ri!==fi&&(on(ri),Jt(encodeURIComponent(Gt),ri))};return ce.createElement("div",{className:st()(ne.input,jt),style:gi},!!Vi.length&&ce.createElement("div",{className:ne.dropdown},ce.createElement("div",{className:ne.text},(In=Vi.find(ri=>ri.id===fi))==null?void 0:In.name,ce.createElement("i",{className:"iconfont icon-zhankai4"}),ce.createElement("b",{className:ne.b1}),ce.createElement("b",{className:ne.b2})),ce.createElement("div",{className:ne.menu},Vi.map((ri,ki)=>ce.createElement("div",{key:ki,onClick:()=>Sn(ri.id)},ri.name)))),ce.createElement(te.default,{onPressEnter:vt,value:Gt,onChange:ri=>{li(ri.target.value),Wt(encodeURIComponent(ri.target.value),fi||null)},bordered:!1,placeholder:ii}),ce.createElement("i",{onClick:vt,className:"iconfont icon-sousuo9 font14 pl10 current"}))},ge={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"},be=({value:Vi,onChange:hi,className:Jt,total:Wt,pageSize:jt,style:gi={}})=>{const ii=Vi<2,Pi=Vi>=Math.ceil(Wt/jt);return Wt<=jt?ce.createElement(ce.Fragment,null):ce.createElement("div",{className:st()(ge.quickPager,Jt),style:gi},ce.createElement("div",{onClick:()=>{ii||hi(Vi-1,"prev")},className:ii?ge.disabled:""},"\u4E0A\u4E00\u9875"),ce.createElement("div",{onClick:()=>{Pi||hi(Vi+1,"next")},className:Pi?ge.disabled:""},"\u4E0B\u4E00\u9875"))},Ae={flex_box_center:"flex_box_center___FO7TP",flex_space_between:"flex_space_between___LotYx",flex_box_vertical_center:"flex_box_vertical_center___bWdaw",flex_box_center_end:"flex_box_center_end___mVJ1o",flex_box_column:"flex_box_column___M83Mm",list:"list___oOsiS",wrap:"wrap___G6T7F",lockWrap:"lockWrap___Rl79E",li:"li___oZZ7l",cover:"cover___b2bYW",img:"img___IQX7w",sign:"sign___HkT6C",name:"name___SsJx8",e:"e___TMqq0",tags:"tags___bcjyo",rate:"rate___YACg7"},Le=ue(29787),je=ue(25399),$e=ue(58018),qe=ue(12242),nt=ue(59895),dt=ue(96908),it=ue(57177),bt=ue(81378),It=ue(12635),ln=({className:Vi,dataSource:hi=[],col:Jt=4,right:Wt,bottom:jt=23,precision:gi=0,wrapWidth:ii=1200,trackEventItems:Pi,loading:In})=>{const fi=Math.floor((ii-(Jt-1)*Wt)/Jt);return ce.createElement(Le.Z,{spinning:In},ce.createElement("div",{className:st()(Ae.list,Vi)},!!hi.length&&hi.map((on,Gt)=>{const{name:li,id:vt,identifier:Sn,power:ri,cover_image_id:ki,pic:zt}=on;return ce.createElement("div",{className:Ae.wrap,key:vt,style:{width:fi,marginRight:(1+Gt)%Jt===0?0:Wt+gi,marginBottom:jt}},ce.createElement("a",{target:"_blank",href:`/shixuns/${Sn}/challenges`,className:Ae.li,onClick:wn=>{wn.preventDefault(),Pi&&(0,nt.L9)([Pi]),ri&&(0,nt.xg)(`/shixuns/${Sn}/challenges`)}},ce.createElement("div",{className:Ae.img},ce.createElement("img",{className:Ae.cover,src:`${zt}`}),on.is_jupyter&&ce.createElement("img",{className:Ae.sign,src:dt}),on.is_jupyter_lab&&ce.createElement("img",{className:Ae.sign,src:it}),on.is_unity_3d&&ce.createElement("img",{className:Ae.sign,src:bt})),ce.createElement("div",{className:Ae.name},ce.createElement(je.Z,{title:li||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},ce.createElement("span",{className:Ae.e},li||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),ce.createElement("div",{className:Ae.tags},ce.createElement(je.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},ce.createElement("span",null,ce.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),ce.createElement("span",null,on.challenges_count))),!!on.myshixuns_count&&ce.createElement(je.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},ce.createElement("span",null,ce.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),ce.createElement("span",null,on.myshixuns_count))),ce.createElement(je.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},ce.createElement("span",null,ce.createElement("span",null,on.level))),ce.createElement("div",{className:Ae.rate},ce.createElement($e.Z,{allowHalf:!0,disabled:!0,defaultValue:on.score_info}),ce.createElement("span",null,"\xA0",on.score_info?`${on.score_info}\u5206`:"5\u5206")))),!ri&&ce.createElement("div",{className:Ae.lockWrap},ce.createElement("img",{src:`${qe.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),ce.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!hi.length&&ce.createElement(It.Z,null)))},un={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"},Qt=ue(69669),nn=ue(59301),ct=({className:Vi,dataSource:hi=[],col:Jt=4,right:Wt,bottom:jt=23,precision:gi=0,wrapWidth:ii=1200,trackEventItems:Pi,loading:In,onRemove:fi=()=>{},isCurrent:on=!0,showAlias:Gt=!1})=>{const li=Math.floor((ii-(Jt-1)*Wt)/Jt),vt=[{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 nn.createElement(Le.Z,{spinning:In},nn.createElement("div",{className:st()(un.list,Vi)},!!(hi!=null&&hi.length)&&(hi==null?void 0:hi.map((Sn,ri)=>{var ki;const{name:zt,id:wn,identifier:oi,featured:qt,school_name:Be,image_url:Mi,excellent:ui,is_plan:Tn}=Sn;return nn.createElement("div",{key:wn,className:un.wrap,style:{width:li,marginRight:(1+ri)%Jt===0?0:Wt+gi,marginBottom:jt}},nn.createElement("a",{className:un.li,onClick:Ki=>{Ki.preventDefault(),Ki.stopPropagation(),Pi&&(0,nt.L9)([Pi]),(0,nt.xg)(`/paths/${oi}`)}},nn.createElement("div",{className:un.img},nn.createElement("img",{className:un.cover,src:`${Mi}`}),on&&(0,Qt.bg)()&&(Sn==null?void 0:Sn.studying)&&nn.createElement("div",{className:`${un.movebq} user-path-items`,onClick:Ki=>{Ki.stopPropagation(),fi(Sn)}},nn.createElement("i",{className:"iconfont icon-yichu1 mr5 c-red"}),nn.createElement("span",{className:"c-red"},"\u79FB\u9664")),(ki=Sn==null?void 0:Sn.subject_tags)==null?void 0:ki.map((Ki,er)=>{var or,Cn;if(er===0){const sr=(or=vt.find(ro=>ro.name==Ki))==null?void 0:or.swimg;return nn.createElement("img",{className:un.sign,src:sr,style:{left:"-4px"}})}const Kt=(Cn=vt.find(sr=>sr.name==Ki))==null?void 0:Cn.ptimg;return nn.createElement("img",{className:un.sign,src:Kt,style:{left:`${48+52*(er-1)+2*er}px`}})}),nn.createElement("div",{style:{position:"absolute",top:"150px",left:"4px"}},(Sn==null?void 0:Sn.excellent)&&nn.createElement("div",{className:un.bq},"\u5F00\u653E\u8BFE\u7A0B"))),nn.createElement("div",{className:un.name},nn.createElement(je.Z,{title:Gt&&(Sn!=null&&Sn.excellent_alias_name)?nn.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${zt}`,nn.createElement("br",null),nn.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${Sn==null?void 0:Sn.excellent_alias_name}`)):zt},nn.createElement("span",{className:un.e},Gt&&(Sn==null?void 0:Sn.excellent_alias_name)||zt))),nn.createElement(je.Z,{title:`\u53D1\u5E03\u5355\u4F4D\uFF1A${Be}`},nn.createElement("div",{className:un.unit},nn.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),Be)),nn.createElement("div",{className:un.tags},nn.createElement("div",null,nn.createElement(je.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},nn.createElement("span",null,nn.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),nn.createElement("span",null,Sn.stages_count))),nn.createElement(je.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},nn.createElement("span",null,nn.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),nn.createElement("span",null,Sn.members_count)))))))})),!hi.length&&nn.createElement(It.Z,null)))},at={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"},rn="data:image/png;base64,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",hn=ue(59301),pn=({className:Vi,dataSource:hi=[],col:Jt=4,right:Wt,bottom:jt=23,precision:gi=0,wrapWidth:ii=1200,trackEventItems:Pi,loading:In,handleVery:fi=()=>!0})=>{const on=Math.floor((ii-(Jt-1)*Wt)/Jt);return hn.createElement(Le.Z,{spinning:In},hn.createElement("div",{className:st()(at.list,Vi)},!!hi.length&&hi.map((Gt,li)=>{const{subject_identifier:vt,id:Sn,identifier:ri,power:ki}=Gt,zt=Gt.is_public!=0&&Gt.is_public;return hn.createElement("div",{className:at.wrap,key:Sn,style:{width:on,marginRight:(1+li)%Jt===0?0:Wt+gi,marginBottom:jt}},hn.createElement("a",{className:at.li,onClick:wn=>{wn.preventDefault(),fi(Gt==null?void 0:Gt.first_category_url)&&(Pi&&(0,nt.L9)([Pi]),(0,nt.xg)(Gt.first_category_url))}},hn.createElement("div",{className:at.top},hn.createElement(je.Z,{title:Gt.name},hn.createElement("div",{className:at.name},Gt.name)),hn.createElement("img",{className:at.img,src:qe.Z.IMG_SERVER+"/images/"+Gt.avatar_url}),hn.createElement("div",{className:at.text,title:Gt.creator},Gt.creator),vt&&hn.createElement("div",{className:at.btns},hn.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),hn.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),zt&&hn.createElement("div",{className:at.sign},"\u516C\u5F00")),hn.createElement("div",{className:at.bottom},Gt.visits>0&&hn.createElement(je.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},hn.createElement("span",null,hn.createElement("i",{className:"iconfont icon-liulanyan"}),hn.createElement("span",null,Gt.visits))),Gt.course_members_count>0&&hn.createElement(je.Z,{title:"\u6210\u5458",placement:"bottom"},hn.createElement("span",null,hn.createElement("i",{className:"iconfont icon-chengyuan"}),Gt.course_members_count)),Gt.tasks_count>0&&hn.createElement(je.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},hn.createElement("span",null,hn.createElement("i",{className:"iconfont icon-zuoye"}),Gt.tasks_count)),Gt.is_end?hn.createElement("div",{style:{color:"#6B758B"}},"\u5DF2\u7ED3\u675F"):hn.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!Gt.is_accessible&&hn.createElement("div",{className:at.lockWrap},hn.createElement("img",{src:`${qe.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),hn.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!hi.length&&hn.createElement(It.Z,null)))},dn={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"},_n=ue(71570),On=({dataSource:Vi=[],value:hi,onChange:Jt,className:Wt,style:jt={},tabBarExtraContent:gi})=>ce.createElement("div",{className:st()(dn.tabs,Wt),style:jt},ce.createElement("div",{className:dn.tabsWrap},Vi.map((ii,Pi)=>!(ii!=null&&ii.hide)&&ce.createElement("aside",{className:dn.tab,onClick:()=>{Jt(ii.id),ii.link&&_n.history.push(ii.link)},key:Pi},ce.createElement("div",{className:hi===ii.id?dn.active:""},ii.name),(ii==null?void 0:ii.resetCount)==null&&(ii==null?void 0:ii.total)!==void 0&&ce.createElement("span",null,"\uFF08",ii==null?void 0:ii.total,"\uFF09"),(ii==null?void 0:ii.resetCount)!==void 0&&(ii==null?void 0:ii.total)!==void 0&&ce.createElement(je.Z,{title:(ii==null?void 0:ii.tip)!=null?ii==null?void 0:ii.tip:""},ce.createElement("span",{style:{color:"#9096A3"}},"\uFF08",ce.createElement("span",{style:{color:"#000"}},ii==null?void 0:ii.resetCount),"/",ce.createElement("span",null,ii==null?void 0:ii.total),"\uFF09"))))),ce.createElement("div",{className:dn.tabBar},gi)),jn=({className:Vi,style:hi={},children:Jt})=>ce.createElement("div",{className:st()(Vi),style:hi},Jt),ai={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"},et=ue(75727),De=ue(93041);const ke=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var ut=({sortValue:Vi,dropValue:hi,className:Jt,onSort:Wt,onDrop:jt,dataSource:gi=ke})=>{var ii;return ce.createElement("div",{className:st()(ai.orderWrap,Jt)},ce.createElement(et.Z,{dropdownRender:()=>ce.createElement(De.default,null,gi.map((Pi,In)=>ce.createElement(De.default.Item,{key:In,onClick:()=>jt(Pi.id)},Pi.name)))},ce.createElement("span",{className:ai.orderTextWrap},(ii=gi.find(Pi=>hi===Pi.id))==null?void 0:ii.name)),ce.createElement("span",{className:ai.orderIconWrap},ce.createElement("span",{className:ai.orderAsc},ce.createElement("i",{className:Vi==="asc"?`iconfont icon-sanjiaoxing-up font12 ${ai.cursorPointer} ${ai.active}`:`iconfont icon-sanjiaoxing-up font12 ${ai.cursorPointer}`,onClick:()=>Wt(Vi==="asc"?"desc":"asc")})),ce.createElement("span",{className:ai.orderDesc},ce.createElement("i",{className:Vi==="desc"?`iconfont icon-sanjiaoxing-down font12 ${ai.cursorPointer} ${ai.active}`:`iconfont icon-sanjiaoxing-down font12 ${ai.cursorPointer}`,onClick:()=>Wt(Vi==="asc"?"desc":"asc")}))))},Ue={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"},gt=ue(99571),_t=Object.defineProperty,bn=Object.getOwnPropertySymbols,xn=Object.prototype.hasOwnProperty,Lt=Object.prototype.propertyIsEnumerable,Zt=(Vi,hi,Jt)=>hi in Vi?_t(Vi,hi,{enumerable:!0,configurable:!0,writable:!0,value:Jt}):Vi[hi]=Jt,Vt=(Vi,hi)=>{for(var Jt in hi||(hi={}))xn.call(hi,Jt)&&Zt(Vi,Jt,hi[Jt]);if(bn)for(var Jt of bn(hi))Lt.call(hi,Jt)&&Zt(Vi,Jt,hi[Jt]);return Vi},fn=(Vi,hi)=>{var Jt={};for(var Wt in Vi)xn.call(Vi,Wt)&&hi.indexOf(Wt)<0&&(Jt[Wt]=Vi[Wt]);if(Vi!=null&&bn)for(var Wt of bn(Vi))hi.indexOf(Wt)<0&&Lt.call(Vi,Wt)&&(Jt[Wt]=Vi[Wt]);return Jt},Pn=(Vi,hi,Jt)=>new Promise((Wt,jt)=>{var gi=In=>{try{Pi(Jt.next(In))}catch(fi){jt(fi)}},ii=In=>{try{Pi(Jt.throw(In))}catch(fi){jt(fi)}},Pi=In=>In.done?Wt(In.value):Promise.resolve(In.value).then(gi,ii);Pi((Jt=Jt.apply(Vi,hi)).next())}),Mt=Vi=>{var hi=Vi,{className:Jt,style:Wt,children:jt,loading:gi=!1,openLoading:ii,onClick:Pi=()=>{},size:In="middle",shape:fi="round"}=hi,on=fn(hi,["className","style","children","loading","openLoading","onClick","size","shape"]);const[Gt,li]=(0,ce.useState)(!1);return ce.createElement(gt.ZP,Vt({onClick:(0,Qe.throttle)(vt=>Pn(void 0,null,function*(){ii&&li(!0);try{yield Pi(vt)}catch(Sn){console.log("error",Sn)}ii&&li(!1)}),2e3,{leading:!0,trailing:!1}),className:st()(Ue.btn,Ue[`${In}-${fi}`],Jt),style:Wt,size:In,shape:fi,loading:Gt||gi},on),jt)},zn={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"},Rn=({className:Vi,style:hi,children:Jt=null,onClick:Wt,title:jt})=>ce.createElement("div",{className:st()(zn.head,Vi),style:hi},ce.createElement("span",{className:"primary-hover",onClick:Wt},ce.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),ce.createElement("b",{title:jt},jt),ce.createElement("div",{className:zn.node},Jt)),Zn={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"},Yn=({confirmShow:Vi=!0,confirmTitle:hi,confirmClick:Jt,cancelShow:Wt=!0,cancelTitle:jt,cancelClick:gi,className:ii,style:Pi,confirmLoading:In=!1})=>ce.createElement("div",{className:st()(Zn.btns,ii),style:Pi},Vi&&ce.createElement(gt.ZP,{loading:In,onClick:Jt,type:"primary",className:Zn.confirm},hi),Wt&&ce.createElement(gt.ZP,{onClick:gi,className:Zn.cancel},jt)),Et={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:Vi,style:hi={},LeftContent:Jt,children:Wt,RightContent:jt})=>ce.createElement("div",{className:st()(Et.fixedBottom,Vi),style:hi},ce.createElement("div",{className:Et.wrap},ce.createElement("div",{className:Et.left},Jt),ce.createElement("div",{className:Et.center},Wt),ce.createElement("div",{className:Et.right},jt))),sn={flex_box_center:"flex_box_center___tY8Yn",flex_space_between:"flex_space_between___vHdYA",flex_box_vertical_center:"flex_box_vertical_center___pa61F",flex_box_center_end:"flex_box_center_end___HyDXt",flex_box_column:"flex_box_column___UjZek",crumbs:"crumbs___V41Oe",hover:"hover___bEIVd"},cr=({className:Vi,style:hi={},dataSource:Jt=[]})=>ce.createElement("div",{className:st()(sn.crumbs,Vi),style:hi},Jt.map((Wt,jt)=>jt<Jt.length-1?ce.createElement(ce.Fragment,{key:jt},Wt.path||Wt.onClick?ce.createElement("span",{className:sn.hover,onClick:Wt!=null&&Wt.onClick?Wt.onClick:()=>_n.history.push(Wt.path)},Wt.name):ce.createElement("span",null,Wt.name),ce.createElement("span",null,"\xA0",">","\xA0")):ce.createElement("span",{key:jt,style:{color:"#5F6368"}},Wt.name))),fr=ue(11938),kn=Object.defineProperty,Or=Object.defineProperties,kr=Object.getOwnPropertyDescriptors,Wi=Object.getOwnPropertySymbols,lr=Object.prototype.hasOwnProperty,wr=Object.prototype.propertyIsEnumerable,Ie=(Vi,hi,Jt)=>hi in Vi?kn(Vi,hi,{enumerable:!0,configurable:!0,writable:!0,value:Jt}):Vi[hi]=Jt,Yi=(Vi,hi)=>{for(var Jt in hi||(hi={}))lr.call(hi,Jt)&&Ie(Vi,Jt,hi[Jt]);if(Wi)for(var Jt of Wi(hi))wr.call(hi,Jt)&&Ie(Vi,Jt,hi[Jt]);return Vi},Ei=(Vi,hi)=>Or(Vi,kr(hi)),rr=(Vi,hi)=>{var Jt={};for(var Wt in Vi)lr.call(Vi,Wt)&&hi.indexOf(Wt)<0&&(Jt[Wt]=Vi[Wt]);if(Vi!=null&&Wi)for(var Wt of Wi(Vi))hi.indexOf(Wt)<0&&wr.call(Vi,Wt)&&(Jt[Wt]=Vi[Wt]);return Jt};const{Countdown:Br}=fr.default;var yr=Vi=>{var hi=Vi,{onChange:Jt}=hi,Wt=rr(hi,["onChange"]);const[jt,gi]=(0,ce.useState)(null);(0,ce.useEffect)(()=>{typeof jt=="number"&&jt>=0&&Jt(jt)},[jt]);const ii=Pi=>{const In=Math.floor(Pi/1e3);gi(In)};return ce.createElement(Br,Ei(Yi({},Wt),{onChange:ii}))}},23206:function(ze,Ee,ue){"use strict";ue.d(Ee,{Z:function(){return Pe}});var ce=ue(59301);function Pe(Re,Me){const We=(0,ce.useRef)();(0,ce.useEffect)(()=>{We.current=Re}),(0,ce.useEffect)(()=>{function Te(){We.current()}if(Me!==null){let Ge=setInterval(Te,Me);return()=>clearInterval(Ge)}},[Me])}},1567:function(ze,Ee,ue){"use strict";ue.d(Ee,{Z:function(){return We}});var ce=ue(59301),Pe=ue(29787),Re={loading:"loading___lueiN"},We=({loading:Te})=>Te?ce.createElement("div",{className:Re.loading},ce.createElement(Pe.Z,null)):ce.createElement(ce.Fragment,null)},78399:function(ze,Ee,ue){"use strict";var ce=ue(59301),Pe=ue(62957),Re=ue(54172),Me=ue(24092),We=ue(12635),Te=ue(61186),Ge=ue.n(Te),st=ue(19565),Qe=Object.defineProperty,Ye=Object.getOwnPropertySymbols,yt=Object.prototype.hasOwnProperty,ot=Object.prototype.propertyIsEnumerable,Nt=(he,se,ge)=>se in he?Qe(he,se,{enumerable:!0,configurable:!0,writable:!0,value:ge}):he[se]=ge,Fe=(he,se)=>{for(var ge in se||(se={}))yt.call(se,ge)&&Nt(he,ge,se[ge]);if(Ye)for(var ge of Ye(se))ot.call(se,ge)&&Nt(he,ge,se[ge]);return he},ne=(he,se,ge)=>new Promise((Se,be)=>{var Ae=$e=>{try{je(ge.next($e))}catch(qe){be(qe)}},Le=$e=>{try{je(ge.throw($e))}catch(qe){be(qe)}},je=$e=>$e.done?Se($e.value):Promise.resolve($e.value).then(Ae,Le);je((ge=ge.apply(he,se)).next())});const te=({visible:he,identifier:se,challenge_id:ge,onCancle:Se,onOK:be})=>{const[Ae,Le]=(0,ce.useState)(0),[je,$e]=(0,ce.useState)([]),[qe,nt]=(0,ce.useState)(!1),[dt,it]=(0,ce.useState)({page:1,limit:10}),bt=()=>ne(void 0,null,function*(){var It,Ht;nt(!0);const ln=yield(0,Me.ZP)(`/api/shixuns/${se}/challenges/${ge}/task_pass_histories.json`,{method:"get",params:Fe({},dt)});(ln==null?void 0:ln.status)===0&&(Le((It=ln==null?void 0:ln.data)==null?void 0:It.size),$e(((Ht=ln==null?void 0:ln.data)==null?void 0:Ht.list)||[])),nt(!1)});return(0,ce.useEffect)(()=>{he&&bt()},[he]),ce.createElement(Pe.default,{centered:!0,destroyOnClose:!0,open:he,title:"\u7248\u672C\u7BA1\u7406",footer:null,width:620,onCancel:()=>{dt.page=1,dt.limit=10,it(Fe({},dt)),Se()}},ce.createElement(Re.default,{scroll:{y:47*10},loading:qe,dataSource:je,locale:{emptyText:ce.createElement(We.Z,null)},columns:[{title:"\u7248\u672C\u4FDD\u5B58\u65F6\u95F4",dataIndex:"updated_at",ellipsis:!0,render:(It,Ht,ln)=>Ge()(It).format("YYYY-MM-DD hh:mm:ss")},{title:"\u4FDD\u5B58\u4EBA",dataIndex:"user_name",width:110,ellipsis:!0,render:It=>It},{title:"\u64CD\u4F5C",dataIndex:"task_pass",align:"right",render(It,Ht,ln){return ce.createElement("div",null,ce.createElement("a",{onClick:()=>{Pe.default.confirm({icon:null,width:800,centered:!0,closable:!0,title:"\u4EFB\u52A1\u8981\u6C42\u8BE6\u60C5",content:ce.createElement("div",{className:"mb10"},ce.createElement(st.Z,{key:ge||"3",watch:!0,defaultValue:Ht==null?void 0:Ht.task_pass})),footer:null})}},"\u67E5\u770B"),ce.createElement("a",{onClick:()=>ne(this,null,function*(){Pe.default.confirm({icon:null,width:500,centered:!0,closable:!0,title:"\u7248\u672C\u5207\u6362\u786E\u8BA4",content:ce.createElement("div",null,ce.createElement("div",null,"\u8BF7\u786E\u8BA4\u662F\u5426\u5C06\u4EFB\u52A1\u8981\u6C42\u5185\u5BB9\u5207\u6362\u81F3 ",Ge()(Ht==null?void 0:Ht.updated_at).format("YYYY-MM-DD hh:mm:ss")," \u7248\u672C\uFF1F"),ce.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:()=>ne(this,null,function*(){yield be(Ht==null?void 0:Ht.task_pass),Se()})})}),className:"ml20"},"\u5207\u6362\u81F3\u8BE5\u7248\u672C"))}}],onChange:It=>{dt.page=It==null?void 0:It.current,dt.limit=It==null?void 0:It.pageSize,bt(),it(Fe({},dt))},pagination:{pageSize:dt.limit,total:Ae,current:dt.page,showQuickJumper:!0,hideOnSinglePage:!0,showSizeChanger:!0,showTotal:It=>ce.createElement("span",{className:"mr10"},"\u5171",ce.createElement("span",{className:"c-orange"},It),"\u6761\u6570\u636E")}}))};Ee.Z=te},81086:function(ze,Ee,ue){"use strict";ue.d(Ee,{S:function(){return Te},m:function(){return Ge}});var ce=ue(59895),Pe=ue(6767),Re=ue(62957),Me=ue(59301),We=(st,Qe,Ye)=>new Promise((yt,ot)=>{var Nt=te=>{try{ne(Ye.next(te))}catch(he){ot(he)}},Fe=te=>{try{ne(Ye.throw(te))}catch(he){ot(he)}},ne=te=>te.done?yt(te.value):Promise.resolve(te.value).then(Nt,Fe);ne((Ye=Ye.apply(st,Qe)).next())});const Te=st=>{let Qe=document.createElement("textarea");return Qe.value=st,Qe.value},Ge=(st,Qe,Ye,yt,ot)=>We(void 0,null,function*(){var Nt,Fe;const ne=yield st({type:"shixunsDetail/saveCopyForExercise",payload:{id:Ye,save_type:yt}});yt===1?((ne==null?void 0:ne.status)==0&&Pe.ZP.success("\u4FDD\u5B58\u6210\u529F"),(Nt=ne==null?void 0:ne.data)!=null&&Nt.exists_same_shixun_name?st({type:"classroomList/setActionTabs",payload:{key:"\u91CD\u540D\u4FEE\u6539",name:(Fe=ne==null?void 0:ne.data)==null?void 0:Fe.shixun_name}}):st({type:"classroomList/setActionTabs",payload:{}})):(st({type:"classroomList/setActionTabs",payload:{}}),(ne==null?void 0:ne.status)===0&&Re.default.info({title:"\u63D0\u793A",width:460,icon:null,centered:!0,content:Me.createElement("div",null,Me.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 te,he;(0,ce.xg)(`/shixuns/${(he=(te=Qe==null?void 0:Qe.detail)==null?void 0:te.fork_from)==null?void 0:he.fork_identifier}/challenges`)}}))})},49405:function(ze,Ee,ue){"use strict";ue.d(Ee,{AL:function(){return be},Iy:function(){return yt},Qv:function(){return Fe},ez:function(){return Se},jb:function(){return ot}});var ce=ue(32834),Pe=ue.n(ce),Re=ue(11690),Me=ue.n(Re);let We=1;function Te(qe,nt){const dt=qe.match(/^(\s+)(?:```)/);if(dt===null)return nt;const it=dt[1];return nt.split(`
|
|
|
`).map(bt=>{const It=bt.match(/^\s+/);if(It===null)return bt;const[Ht]=It;return Ht.length>=it.length?bt.slice(it.length):bt}).join(`
|
|
|
`)}let Ge=[],st=["<ul>"];const Qe=new(Pe()).Renderer,Ye=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function yt(){Ge.length=0,st=["<ul>"]}const ot={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function Nt(qe,nt,dt,it){if(nt>=qe.length||qe[nt].level<=dt)return nt;var bt=qe[nt];it.push("<li><a href='#"+We+bt.anchor+"'>"+bt.text+"</a>"),nt++;var It=[];return nt=Nt(qe,nt,bt.level,It),It.length>0&&(it.push("<ul>"),It.forEach(function(Ht){it.push(Ht)}),it.push("</ul>")),it.push("</li>"),nt=Nt(qe,nt,dt,it),nt}function Fe(){return Nt(Ge,0,0,st),st.push("</ul>"),st.join("")}const ne={heading(qe){const nt=Ye.exec(qe);if(We+=1,nt)return{type:"heading",raw:nt[0],depth:nt[1].length,text:nt[2]}},fences(qe){const nt=this.rules.block.fences.exec(qe);if(nt){const dt=nt[0];let it=Te(dt,nt[3]||"");const bt=nt[2]?nt[2].trim():nt[2];if(["latex","katex","math"].indexOf(bt)>=0){const It=se(),Ht=it;it=It,ge[It]={type:"block",expression:Ht}}return{type:"code",raw:dt,lang:bt,text:it}}}},te=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let he=0;const se=()=>`__special_katext_id_${he++}__`;let ge={};function Se(){return ge}function be(){he=0,ge={}}function Ae(qe){return qe=qe.replace(te,(nt,dt)=>{const it=se();return ge[it]={type:"inline",expression:dt},it}),qe}const Le=Qe.listitem;Qe.listitem=function(qe){return Le(Ae(qe))};const je=Qe.paragraph;Qe.paragraph=function(qe){return je(Ae(qe))};const $e=Qe.tablecell;Qe.tablecell=function(qe,nt){return $e(Ae(qe),nt)},Qe.code=function(qe,nt,dt){const it=(nt||"").match(/\S*/)[0];return it?["latex","katex","math"].indexOf(it)>=0?`<p class='editormd-tex'>${qe}</p>`:`<pre class="prettyprint linenums"><code class="language-${nt}">${dt?qe:(0,Re.escape)(qe,!0)}</code></pre>
|
|
|
`:'<pre class="prettyprint linenums"><code>'+(dt?qe:(0,Re.escape)(qe,!0))+"</code></pre>"},Qe.heading=function(qe,nt,dt){let it=this.options.headerPrefix+dt.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return Ge.push({anchor:it,level:nt,text:qe}),"<h"+nt+' id="'+We+it+'">'+qe+"</h"+nt+">"},Pe().setOptions({silent:!0,gfm:!0,pedantic:!1}),Pe().use({tokenizer:ne,renderer:Qe}),Ee.ZP=Pe()},99498:function(ze,Ee,ue){(function(ce){ce(ue(89780))})(function(ce){ce.defineOption("placeholder","",function(st,Qe,Ye){var yt=Ye&&Ye!=ce.Init;if(Qe&&!yt)st.on("blur",We),st.on("change",Te),st.on("swapDoc",Te),ce.on(st.getInputField(),"compositionupdate",st.state.placeholderCompose=function(){Me(st)}),Te(st);else if(!Qe&&yt){st.off("blur",We),st.off("change",Te),st.off("swapDoc",Te),ce.off(st.getInputField(),"compositionupdate",st.state.placeholderCompose),Pe(st);var ot=st.getWrapperElement();ot.className=ot.className.replace(" CodeMirror-empty","")}Qe&&!st.hasFocus()&&We(st)});function Pe(st){st.state.placeholder&&(st.state.placeholder.parentNode.removeChild(st.state.placeholder),st.state.placeholder=null)}function Re(st){Pe(st);var Qe=st.state.placeholder=document.createElement("pre");Qe.style.cssText="height: 0; overflow: visible",Qe.style.direction=st.getOption("direction"),Qe.className="CodeMirror-placeholder CodeMirror-line-like";var Ye=st.getOption("placeholder");typeof Ye=="string"&&(Ye=document.createTextNode(Ye)),Qe.appendChild(Ye),st.display.lineSpace.insertBefore(Qe,st.display.lineSpace.firstChild)}function Me(st){setTimeout(function(){var Qe=!1,Ye=st.getInputField();Ye.nodeName=="TEXTAREA"?Qe=!Ye.value:st.lineCount()==1&&(Qe=!/[^\u200b]/.test(Ye.querySelector(".CodeMirror-line").textContent)),Qe?Re(st):Pe(st)},20)}function We(st){Ge(st)&&Re(st)}function Te(st){var Qe=st.getWrapperElement(),Ye=Ge(st);Qe.className=Qe.className.replace(" CodeMirror-empty","")+(Ye?" CodeMirror-empty":""),Ye?Re(st):Pe(st)}function Ge(st){return st.lineCount()===1&&st.getLine(0)===""}})},25717:function(ze,Ee,ue){(function(ce){ce(ue(89780))})(function(ce){var Pe={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},Re=ce.Pos;ce.defineOption("autoCloseBrackets",!1,function(ne,te,he){he&&he!=ce.Init&&(ne.removeKeyMap(We),ne.state.closeBrackets=null),te&&(Te(Me(te,"pairs")),ne.state.closeBrackets=te,ne.addKeyMap(We))});function Me(ne,te){return te=="pairs"&&typeof ne=="string"?ne:typeof ne=="object"&&ne[te]!=null?ne[te]:Pe[te]}var We={Backspace:Qe,Enter:Ye};function Te(ne){for(var te=0;te<ne.length;te++){var he=ne.charAt(te),se="'"+he+"'";We[se]||(We[se]=Ge(he))}}Te(Pe.pairs+"`");function Ge(ne){return function(te){return ot(te,ne)}}function st(ne){var te=ne.state.closeBrackets;if(!te||te.override)return te;var he=ne.getModeAt(ne.getCursor());return he.closeBrackets||te}function Qe(ne){var te=st(ne);if(!te||ne.getOption("disableInput"))return ce.Pass;for(var he=Me(te,"pairs"),se=ne.listSelections(),ge=0;ge<se.length;ge++){if(!se[ge].empty())return ce.Pass;var Se=Nt(ne,se[ge].head);if(!Se||he.indexOf(Se)%2!=0)return ce.Pass}for(var ge=se.length-1;ge>=0;ge--){var be=se[ge].head;ne.replaceRange("",Re(be.line,be.ch-1),Re(be.line,be.ch+1),"+delete")}}function Ye(ne){var te=st(ne),he=te&&Me(te,"explode");if(!he||ne.getOption("disableInput"))return ce.Pass;for(var se=ne.listSelections(),ge=0;ge<se.length;ge++){if(!se[ge].empty())return ce.Pass;var Se=Nt(ne,se[ge].head);if(!Se||he.indexOf(Se)%2!=0)return ce.Pass}ne.operation(function(){var be=ne.lineSeparator()||`
|
|
|
`;ne.replaceSelection(be+be,null),ne.execCommand("goCharLeft"),se=ne.listSelections();for(var Ae=0;Ae<se.length;Ae++){var Le=se[Ae].head.line;ne.indentLine(Le,null,!0),ne.indentLine(Le+1,null,!0)}})}function yt(ne){var te=ce.cmpPos(ne.anchor,ne.head)>0;return{anchor:new Re(ne.anchor.line,ne.anchor.ch+(te?-1:1)),head:new Re(ne.head.line,ne.head.ch+(te?1:-1))}}function ot(ne,te){var he=st(ne);if(!he||ne.getOption("disableInput"))return ce.Pass;var se=Me(he,"pairs"),ge=se.indexOf(te);if(ge==-1)return ce.Pass;for(var Se=Me(he,"closeBefore"),be=Me(he,"triples"),Ae=se.charAt(ge+1)==te,Le=ne.listSelections(),je=ge%2==0,$e,qe=0;qe<Le.length;qe++){var nt=Le[qe],dt=nt.head,it,bt=ne.getRange(dt,Re(dt.line,dt.ch+1));if(je&&!nt.empty())it="surround";else if((Ae||!je)&&bt==te)Ae&&Fe(ne,dt)?it="both":be.indexOf(te)>=0&&ne.getRange(dt,Re(dt.line,dt.ch+3))==te+te+te?it="skipThree":it="skip";else if(Ae&&dt.ch>1&&be.indexOf(te)>=0&&ne.getRange(Re(dt.line,dt.ch-2),dt)==te+te){if(dt.ch>2&&/\bstring/.test(ne.getTokenTypeAt(Re(dt.line,dt.ch-2))))return ce.Pass;it="addFour"}else if(Ae){var It=dt.ch==0?" ":ne.getRange(Re(dt.line,dt.ch-1),dt);if(!ce.isWordChar(bt)&&It!=te&&!ce.isWordChar(It))it="both";else return ce.Pass}else if(je&&(bt.length===0||/\s/.test(bt)||Se.indexOf(bt)>-1))it="both";else return ce.Pass;if(!$e)$e=it;else if($e!=it)return ce.Pass}var Ht=ge%2?se.charAt(ge-1):te,ln=ge%2?te:se.charAt(ge+1);ne.operation(function(){if($e=="skip")ne.execCommand("goCharRight");else if($e=="skipThree")for(var un=0;un<3;un++)ne.execCommand("goCharRight");else if($e=="surround"){for(var Qt=ne.getSelections(),un=0;un<Qt.length;un++)Qt[un]=Ht+Qt[un]+ln;ne.replaceSelections(Qt,"around"),Qt=ne.listSelections().slice();for(var un=0;un<Qt.length;un++)Qt[un]=yt(Qt[un]);ne.setSelections(Qt)}else $e=="both"?(ne.replaceSelection(Ht+ln,null),ne.triggerElectric(Ht+ln),ne.execCommand("goCharLeft")):$e=="addFour"&&(ne.replaceSelection(Ht+Ht+Ht+Ht,"before"),ne.execCommand("goCharRight"))})}function Nt(ne,te){var he=ne.getRange(Re(te.line,te.ch-1),Re(te.line,te.ch+1));return he.length==2?he:null}function Fe(ne,te){var he=ne.getTokenAt(Re(te.line,te.ch+1));return/\bstring/.test(he.type)&&he.start==te.ch&&(te.ch==0||!/\bstring/.test(ne.getTokenTypeAt(te)))}})},6313:function(ze,Ee,ue){(function(ce){ce(ue(89780),ue(32855))})(function(ce){ce.defineOption("autoCloseTags",!1,function(Qe,Ye,yt){if(yt!=ce.Init&&yt&&Qe.removeKeyMap("autoCloseTags"),!!Ye){var ot={name:"autoCloseTags"};(typeof Ye!="object"||Ye.whenClosing!==!1)&&(ot["'/'"]=function(Nt){return Te(Nt)}),(typeof Ye!="object"||Ye.whenOpening!==!1)&&(ot["'>'"]=function(Nt){return Me(Nt)}),Qe.addKeyMap(ot)}});var Pe=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],Re=["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 Me(Qe){if(Qe.getOption("disableInput"))return ce.Pass;for(var Ye=Qe.listSelections(),yt=[],ot=Qe.getOption("autoCloseTags"),Nt=0;Nt<Ye.length;Nt++){if(!Ye[Nt].empty())return ce.Pass;var Fe=Ye[Nt].head,ne=Qe.getTokenAt(Fe),te=ce.innerMode(Qe.getMode(),ne.state),he=te.state,se=te.mode.xmlCurrentTag&&te.mode.xmlCurrentTag(he),ge=se&&se.name;if(!ge)return ce.Pass;var Se=te.mode.configuration=="html",be=typeof ot=="object"&&ot.dontCloseTags||Se&&Pe,Ae=typeof ot=="object"&&ot.indentTags||Se&ℜne.end>Fe.ch&&(ge=ge.slice(0,ge.length-ne.end+Fe.ch));var Le=ge.toLowerCase();if(!ge||ne.type=="string"&&(ne.end!=Fe.ch||!/[\"\']/.test(ne.string.charAt(ne.string.length-1))||ne.string.length==1)||ne.type=="tag"&&se.close||ne.string.indexOf("/")==Fe.ch-ne.start-1||be&&Ge(be,Le)>-1||st(Qe,te.mode.xmlCurrentContext&&te.mode.xmlCurrentContext(he)||[],ge,Fe,!0))return ce.Pass;var je=typeof ot=="object"&&ot.emptyTags;if(je&&Ge(je,ge)>-1){yt[Nt]={text:"/>",newPos:ce.Pos(Fe.line,Fe.ch+2)};continue}var $e=Ae&&Ge(Ae,Le)>-1;yt[Nt]={indent:$e,text:">"+($e?`
|
|
|
|
|
|
`:"")+"</"+ge+">",newPos:$e?ce.Pos(Fe.line+1,0):ce.Pos(Fe.line,Fe.ch+1)}}for(var qe=typeof ot=="object"&&ot.dontIndentOnAutoClose,Nt=Ye.length-1;Nt>=0;Nt--){var nt=yt[Nt];Qe.replaceRange(nt.text,Ye[Nt].head,Ye[Nt].anchor,"+insert");var dt=Qe.listSelections().slice(0);dt[Nt]={head:nt.newPos,anchor:nt.newPos},Qe.setSelections(dt),!qe&&nt.indent&&(Qe.indentLine(nt.newPos.line,null,!0),Qe.indentLine(nt.newPos.line+1,null,!0))}}function We(Qe,Ye){for(var yt=Qe.listSelections(),ot=[],Nt=Ye?"/":"</",Fe=Qe.getOption("autoCloseTags"),ne=typeof Fe=="object"&&Fe.dontIndentOnSlash,te=0;te<yt.length;te++){if(!yt[te].empty())return ce.Pass;var he=yt[te].head,se=Qe.getTokenAt(he),ge=ce.innerMode(Qe.getMode(),se.state),Se=ge.state;if(Ye&&(se.type=="string"||se.string.charAt(0)!="<"||se.start!=he.ch-1))return ce.Pass;var be,Ae=ge.mode.name!="xml"&&Qe.getMode().name=="htmlmixed";if(Ae&&ge.mode.name=="javascript")be=Nt+"script";else if(Ae&&ge.mode.name=="css")be=Nt+"style";else{var Le=ge.mode.xmlCurrentContext&&ge.mode.xmlCurrentContext(Se);if(!Le||Le.length&&st(Qe,Le,Le[Le.length-1],he))return ce.Pass;be=Nt+Le[Le.length-1]}Qe.getLine(he.line).charAt(se.end)!=">"&&(be+=">"),ot[te]=be}if(Qe.replaceSelections(ot),yt=Qe.listSelections(),!ne)for(var te=0;te<yt.length;te++)(te==yt.length-1||yt[te].head.line<yt[te+1].head.line)&&Qe.indentLine(yt[te].head.line)}function Te(Qe){return Qe.getOption("disableInput")?ce.Pass:We(Qe,!0)}ce.commands.closeTag=function(Qe){return We(Qe)};function Ge(Qe,Ye){if(Qe.indexOf)return Qe.indexOf(Ye);for(var yt=0,ot=Qe.length;yt<ot;++yt)if(Qe[yt]==Ye)return yt;return-1}function st(Qe,Ye,yt,ot,Nt){if(!ce.scanForClosingTag)return!1;var Fe=Math.min(Qe.lastLine()+1,ot.line+500),ne=ce.scanForClosingTag(Qe,ot,null,Fe);if(!ne||ne.tag!=yt)return!1;for(var te=Nt?1:0,he=Ye.length-1;he>=0&&Ye[he]==yt;he--)++te;ot=ne.to;for(var he=1;he<te;he++){var se=ce.scanForClosingTag(Qe,ot,null,Fe);if(!se||se.tag!=yt)return!1;ot=se.to}return!0}})},32855:function(ze,Ee,ue){(function(ce){ce(ue(89780))})(function(ce){"use strict";var Pe=ce.Pos;function Re(he,se){return he.line-se.line||he.ch-se.ch}var Me="A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",We=Me+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",Te=new RegExp("<(/?)(["+Me+"]["+We+"]*)","g");function Ge(he,se,ge,Se){this.line=se,this.ch=ge,this.cm=he,this.text=he.getLine(se),this.min=Se?Math.max(Se.from,he.firstLine()):he.firstLine(),this.max=Se?Math.min(Se.to-1,he.lastLine()):he.lastLine()}function st(he,se){var ge=he.cm.getTokenTypeAt(Pe(he.line,se));return ge&&/\btag\b/.test(ge)}function Qe(he){if(!(he.line>=he.max))return he.ch=0,he.text=he.cm.getLine(++he.line),!0}function Ye(he){if(!(he.line<=he.min))return he.text=he.cm.getLine(--he.line),he.ch=he.text.length,!0}function yt(he){for(;;){var se=he.text.indexOf(">",he.ch);if(se==-1){if(Qe(he))continue;return}if(!st(he,se+1)){he.ch=se+1;continue}var ge=he.text.lastIndexOf("/",se),Se=ge>-1&&!/\S/.test(he.text.slice(ge+1,se));return he.ch=se+1,Se?"selfClose":"regular"}}function ot(he){for(;;){var se=he.ch?he.text.lastIndexOf("<",he.ch-1):-1;if(se==-1){if(Ye(he))continue;return}if(!st(he,se+1)){he.ch=se;continue}Te.lastIndex=se,he.ch=se;var ge=Te.exec(he.text);if(ge&&ge.index==se)return ge}}function Nt(he){for(;;){Te.lastIndex=he.ch;var se=Te.exec(he.text);if(!se){if(Qe(he))continue;return}if(!st(he,se.index+1)){he.ch=se.index+1;continue}return he.ch=se.index+se[0].length,se}}function Fe(he){for(;;){var se=he.ch?he.text.lastIndexOf(">",he.ch-1):-1;if(se==-1){if(Ye(he))continue;return}if(!st(he,se+1)){he.ch=se;continue}var ge=he.text.lastIndexOf("/",se),Se=ge>-1&&!/\S/.test(he.text.slice(ge+1,se));return he.ch=se+1,Se?"selfClose":"regular"}}function ne(he,se){for(var ge=[];;){var Se=Nt(he),be,Ae=he.line,Le=he.ch-(Se?Se[0].length:0);if(!Se||!(be=yt(he)))return;if(be!="selfClose")if(Se[1]){for(var je=ge.length-1;je>=0;--je)if(ge[je]==Se[2]){ge.length=je;break}if(je<0&&(!se||se==Se[2]))return{tag:Se[2],from:Pe(Ae,Le),to:Pe(he.line,he.ch)}}else ge.push(Se[2])}}function te(he,se){for(var ge=[];;){var Se=Fe(he);if(!Se)return;if(Se=="selfClose"){ot(he);continue}var be=he.line,Ae=he.ch,Le=ot(he);if(!Le)return;if(Le[1])ge.push(Le[2]);else{for(var je=ge.length-1;je>=0;--je)if(ge[je]==Le[2]){ge.length=je;break}if(je<0&&(!se||se==Le[2]))return{tag:Le[2],from:Pe(he.line,he.ch),to:Pe(be,Ae)}}}}ce.registerHelper("fold","xml",function(he,se){for(var ge=new Ge(he,se.line,0);;){var Se=Nt(ge);if(!Se||ge.line!=se.line)return;var be=yt(ge);if(!be)return;if(!Se[1]&&be!="selfClose"){var Ae=Pe(ge.line,ge.ch),Le=ne(ge,Se[2]);return Le&&Re(Le.from,Ae)>0?{from:Ae,to:Le.from}:null}}}),ce.findMatchingTag=function(he,se,ge){var Se=new Ge(he,se.line,se.ch,ge);if(!(Se.text.indexOf(">")==-1&&Se.text.indexOf("<")==-1)){var be=yt(Se),Ae=be&&Pe(Se.line,Se.ch),Le=be&&ot(Se);if(!(!be||!Le||Re(Se,se)>0)){var je={from:Pe(Se.line,Se.ch),to:Ae,tag:Le[2]};return be=="selfClose"?{open:je,close:null,at:"open"}:Le[1]?{open:te(Se,Le[2]),close:je,at:"close"}:(Se=new Ge(he,Ae.line,Ae.ch,ge),{open:je,close:ne(Se,Le[2]),at:"open"})}}},ce.findEnclosingTag=function(he,se,ge,Se){for(var be=new Ge(he,se.line,se.ch,ge);;){var Ae=te(be,Se);if(!Ae)break;var Le=new Ge(he,se.line,se.ch,ge),je=ne(Le,Ae.tag);if(je)return{open:Ae,close:je}}},ce.scanForClosingTag=function(he,se,ge,Se){var be=new Ge(he,se.line,se.ch,Se?{from:0,to:Se}:null);return ne(be,ge)}})},89780:function(ze){(function(Ee,ue){ze.exports=ue()})(this,function(){"use strict";var Ee=navigator.userAgent,ue=navigator.platform,ce=/gecko\/\d/i.test(Ee),Pe=/MSIE \d/.test(Ee),Re=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Ee),Me=/Edge\/(\d+)/.exec(Ee),We=Pe||Re||Me,Te=We&&(Pe?document.documentMode||6:+(Me||Re)[1]),Ge=!Me&&/WebKit\//.test(Ee),st=Ge&&/Qt\/\d+\.\d+/.test(Ee),Qe=!Me&&/Chrome\//.test(Ee),Ye=/Opera\//.test(Ee),yt=/Apple Computer/.test(navigator.vendor),ot=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(Ee),Nt=/PhantomJS/.test(Ee),Fe=!Me&&/AppleWebKit/.test(Ee)&&/Mobile\/\w+/.test(Ee),ne=/Android/.test(Ee),te=Fe||ne||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(Ee),he=Fe||/Mac/.test(ue),se=/\bCrOS\b/.test(Ee),ge=/win/i.test(ue),Se=Ye&&Ee.match(/Version\/(\d*\.\d*)/);Se&&(Se=Number(Se[1])),Se&&Se>=15&&(Ye=!1,Ge=!0);var be=he&&(st||Ye&&(Se==null||Se<12.11)),Ae=ce||We&&Te>=9;function Le(ie){return new RegExp("(^|\\s)"+ie+"(?:$|\\s)\\s*")}var je=function(ie,ae){var ve=ie.className,me=Le(ae).exec(ve);if(me){var xe=ve.slice(me.index+me[0].length);ie.className=ve.slice(0,me.index)+(xe?me[1]+xe:"")}};function $e(ie){for(var ae=ie.childNodes.length;ae>0;--ae)ie.removeChild(ie.firstChild);return ie}function qe(ie,ae){return $e(ie).appendChild(ae)}function nt(ie,ae,ve,me){var xe=document.createElement(ie);if(ve&&(xe.className=ve),me&&(xe.style.cssText=me),typeof ae=="string")xe.appendChild(document.createTextNode(ae));else if(ae)for(var _e=0;_e<ae.length;++_e)xe.appendChild(ae[_e]);return xe}function dt(ie,ae,ve,me){var xe=nt(ie,ae,ve,me);return xe.setAttribute("role","presentation"),xe}var it;document.createRange?it=function(ie,ae,ve,me){var xe=document.createRange();return xe.setEnd(me||ie,ve),xe.setStart(ie,ae),xe}:it=function(ie,ae,ve){var me=document.body.createTextRange();try{me.moveToElementText(ie.parentNode)}catch(xe){return me}return me.collapse(!0),me.moveEnd("character",ve),me.moveStart("character",ae),me};function bt(ie,ae){if(ae.nodeType==3&&(ae=ae.parentNode),ie.contains)return ie.contains(ae);do if(ae.nodeType==11&&(ae=ae.host),ae==ie)return!0;while(ae=ae.parentNode)}function It(){var ie;try{ie=document.activeElement}catch(ae){ie=document.body||null}for(;ie&&ie.shadowRoot&&ie.shadowRoot.activeElement;)ie=ie.shadowRoot.activeElement;return ie}function Ht(ie,ae){var ve=ie.className;Le(ae).test(ve)||(ie.className+=(ve?" ":"")+ae)}function ln(ie,ae){for(var ve=ie.split(" "),me=0;me<ve.length;me++)ve[me]&&!Le(ve[me]).test(ae)&&(ae+=" "+ve[me]);return ae}var un=function(ie){ie.select()};Fe?un=function(ie){ie.selectionStart=0,ie.selectionEnd=ie.value.length}:We&&(un=function(ie){try{ie.select()}catch(ae){}});function Qt(ie){var ae=Array.prototype.slice.call(arguments,1);return function(){return ie.apply(null,ae)}}function nn(ie,ae,ve){ae||(ae={});for(var me in ie)ie.hasOwnProperty(me)&&(ve!==!1||!ae.hasOwnProperty(me))&&(ae[me]=ie[me]);return ae}function At(ie,ae,ve,me,xe){ae==null&&(ae=ie.search(/[^\s\u00a0]/),ae==-1&&(ae=ie.length));for(var _e=me||0,tt=xe||0;;){var pt=ie.indexOf(" ",_e);if(pt<0||pt>=ae)return tt+(ae-_e);tt+=pt-_e,tt+=ve-tt%ve,_e=pt+1}}var ct=function(){this.id=null,this.f=null,this.time=0,this.handler=Qt(this.onTimeout,this)};ct.prototype.onTimeout=function(ie){ie.id=0,ie.time<=+new Date?ie.f():setTimeout(ie.handler,ie.time-+new Date)},ct.prototype.set=function(ie,ae){this.f=ae;var ve=+new Date+ie;(!this.id||ve<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,ie),this.time=ve)};function at(ie,ae){for(var ve=0;ve<ie.length;++ve)if(ie[ve]==ae)return ve;return-1}var rn=50,hn={toString:function(){return"CodeMirror.Pass"}},Pt={scroll:!1},pn={origin:"*mouse"},dn={origin:"+move"};function _n(ie,ae,ve){for(var me=0,xe=0;;){var _e=ie.indexOf(" ",me);_e==-1&&(_e=ie.length);var tt=_e-me;if(_e==ie.length||xe+tt>=ae)return me+Math.min(tt,ae-xe);if(xe+=_e-me,xe+=ve-xe%ve,me=_e+1,xe>=ae)return me}}var Yt=[""];function On(ie){for(;Yt.length<=ie;)Yt.push(kt(Yt)+" ");return Yt[ie]}function kt(ie){return ie[ie.length-1]}function jn(ie,ae){for(var ve=[],me=0;me<ie.length;me++)ve[me]=ae(ie[me],me);return ve}function ai(ie,ae,ve){for(var me=0,xe=ve(ae);me<ie.length&&ve(ie[me])<=xe;)me++;ie.splice(me,0,ae)}function et(){}function De(ie,ae){var ve;return Object.create?ve=Object.create(ie):(et.prototype=ie,ve=new et),ae&&nn(ae,ve),ve}var ke=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function Xe(ie){return/\w/.test(ie)||ie>"\x80"&&(ie.toUpperCase()!=ie.toLowerCase()||ke.test(ie))}function ut(ie,ae){return ae?ae.source.indexOf("\\w")>-1&&Xe(ie)?!0:ae.test(ie):Xe(ie)}function Ue(ie){for(var ae in ie)if(ie.hasOwnProperty(ae)&&ie[ae])return!1;return!0}var gt=/[\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(ie){return ie.charCodeAt(0)>=768&>.test(ie)}function bn(ie,ae,ve){for(;(ve<0?ae>0:ae<ie.length)&&_t(ie.charAt(ae));)ae+=ve;return ae}function xn(ie,ae,ve){for(var me=ae>ve?-1:1;;){if(ae==ve)return ae;var xe=(ae+ve)/2,_e=me<0?Math.ceil(xe):Math.floor(xe);if(_e==ae)return ie(_e)?ae:ve;ie(_e)?ve=_e:ae=_e+me}}function Lt(ie,ae,ve,me){if(!ie)return me(ae,ve,"ltr",0);for(var xe=!1,_e=0;_e<ie.length;++_e){var tt=ie[_e];(tt.from<ve&&tt.to>ae||ae==ve&&tt.to==ae)&&(me(Math.max(tt.from,ae),Math.min(tt.to,ve),tt.level==1?"rtl":"ltr",_e),xe=!0)}xe||me(ae,ve,"ltr")}var Zt=null;function Vt(ie,ae,ve){var me;Zt=null;for(var xe=0;xe<ie.length;++xe){var _e=ie[xe];if(_e.from<ae&&_e.to>ae)return xe;_e.to==ae&&(_e.from!=_e.to&&ve=="before"?me=xe:Zt=xe),_e.from==ae&&(_e.from!=_e.to&&ve!="before"?me=xe:Zt=xe)}return me!=null?me:Zt}var fn=function(){var ie="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",ae="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function ve(Tt){return Tt<=247?ie.charAt(Tt):1424<=Tt&&Tt<=1524?"R":1536<=Tt&&Tt<=1785?ae.charAt(Tt-1536):1774<=Tt&&Tt<=2220?"r":8192<=Tt&&Tt<=8203?"w":Tt==8204?"b":"L"}var me=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,xe=/[stwN]/,_e=/[LRr]/,tt=/[Lb1n]/,pt=/[1n]/;function ht(Tt,vn,Ot){this.level=Tt,this.from=vn,this.to=Ot}return function(Tt,vn){var Ot=vn=="ltr"?"L":"R";if(Tt.length==0||vn=="ltr"&&!me.test(Tt))return!1;for(var Wn=Tt.length,Mn=[],Ui=0;Ui<Wn;++Ui)Mn.push(ve(Tt.charCodeAt(Ui)));for(var ji=0,nr=Ot;ji<Wn;++ji){var Er=Mn[ji];Er=="m"?Mn[ji]=nr:nr=Er}for(var Yr=0,Dr=Ot;Yr<Wn;++Yr){var io=Mn[Yr];io=="1"&&Dr=="r"?Mn[Yr]="n":_e.test(io)&&(Dr=io,io=="r"&&(Mn[Yr]="R"))}for(var Io=1,Rr=Mn[0];Io<Wn-1;++Io){var ea=Mn[Io];ea=="+"&&Rr=="1"&&Mn[Io+1]=="1"?Mn[Io]="1":ea==","&&Rr==Mn[Io+1]&&(Rr=="1"||Rr=="n")&&(Mn[Io]=Rr),Rr=ea}for(var is=0;is<Wn;++is){var Xs=Mn[is];if(Xs==",")Mn[is]="N";else if(Xs=="%"){var gs=void 0;for(gs=is+1;gs<Wn&&Mn[gs]=="%";++gs);for(var iu=is&&Mn[is-1]=="!"||gs<Wn&&Mn[gs]=="1"?"1":"N",Il=is;Il<gs;++Il)Mn[Il]=iu;is=gs-1}}for(var zs=0,pu=Ot;zs<Wn;++zs){var bl=Mn[zs];pu=="L"&&bl=="1"?Mn[zs]="L":_e.test(bl)&&(pu=bl)}for(var Hs=0;Hs<Wn;++Hs)if(xe.test(Mn[Hs])){var ya=void 0;for(ya=Hs+1;ya<Wn&&xe.test(Mn[ya]);++ya);for(var ys=(Hs?Mn[Hs-1]:Ot)=="L",rl=(ya<Wn?Mn[ya]:Ot)=="L",El=ys==rl?ys?"L":"R":Ot,cc=Hs;cc<ya;++cc)Mn[cc]=El;Hs=ya-1}for(var ps=[],Qu,Ts=0;Ts<Wn;)if(tt.test(Mn[Ts])){var rf=Ts;for(++Ts;Ts<Wn&&tt.test(Mn[Ts]);++Ts);ps.push(new ht(0,rf,Ts))}else{var Iu=Ts,mu=ps.length,ru=vn=="rtl"?1:0;for(++Ts;Ts<Wn&&Mn[Ts]!="L";++Ts);for(var za=Iu;za<Ts;)if(pt.test(Mn[za])){Iu<za&&(ps.splice(mu,0,new ht(1,Iu,za)),mu+=ru);var ol=za;for(++za;za<Ts&&pt.test(Mn[za]);++za);ps.splice(mu,0,new ht(2,ol,za)),mu+=ru,Iu=za}else++za;Iu<Ts&&ps.splice(mu,0,new ht(1,Iu,Ts))}return vn=="ltr"&&(ps[0].level==1&&(Qu=Tt.match(/^\s+/))&&(ps[0].from=Qu[0].length,ps.unshift(new ht(0,0,Qu[0].length))),kt(ps).level==1&&(Qu=Tt.match(/\s+$/))&&(kt(ps).to-=Qu[0].length,ps.push(new ht(0,Wn-Qu[0].length,Wn)))),vn=="rtl"?ps.reverse():ps}}();function Pn(ie,ae){var ve=ie.order;return ve==null&&(ve=ie.order=fn(ie.text,ae)),ve}var yn=[],Mt=function(ie,ae,ve){if(ie.addEventListener)ie.addEventListener(ae,ve,!1);else if(ie.attachEvent)ie.attachEvent("on"+ae,ve);else{var me=ie._handlers||(ie._handlers={});me[ae]=(me[ae]||yn).concat(ve)}};function zn(ie,ae){return ie._handlers&&ie._handlers[ae]||yn}function qn(ie,ae,ve){if(ie.removeEventListener)ie.removeEventListener(ae,ve,!1);else if(ie.detachEvent)ie.detachEvent("on"+ae,ve);else{var me=ie._handlers,xe=me&&me[ae];if(xe){var _e=at(xe,ve);_e>-1&&(me[ae]=xe.slice(0,_e).concat(xe.slice(_e+1)))}}}function Rn(ie,ae){var ve=zn(ie,ae);if(ve.length)for(var me=Array.prototype.slice.call(arguments,2),xe=0;xe<ve.length;++xe)ve[xe].apply(null,me)}function Zn(ie,ae,ve){return typeof ae=="string"&&(ae={type:ae,preventDefault:function(){this.defaultPrevented=!0}}),Rn(ie,ve||ae.type,ie,ae),sn(ae)||ae.codemirrorIgnore}function Ai(ie){var ae=ie._handlers&&ie._handlers.cursorActivity;if(ae)for(var ve=ie.curOp.cursorActivityHandlers||(ie.curOp.cursorActivityHandlers=[]),me=0;me<ae.length;++me)at(ve,ae[me])==-1&&ve.push(ae[me])}function Yn(ie,ae){return zn(ie,ae).length>0}function Et(ie){ie.prototype.on=function(ae,ve){Mt(this,ae,ve)},ie.prototype.off=function(ae,ve){qn(this,ae,ve)}}function vi(ie){ie.preventDefault?ie.preventDefault():ie.returnValue=!1}function Ri(ie){ie.stopPropagation?ie.stopPropagation():ie.cancelBubble=!0}function sn(ie){return ie.defaultPrevented!=null?ie.defaultPrevented:ie.returnValue==!1}function Xi(ie){vi(ie),Ri(ie)}function cr(ie){return ie.target||ie.srcElement}function fr(ie){var ae=ie.which;return ae==null&&(ie.button&1?ae=1:ie.button&2?ae=3:ie.button&4&&(ae=2)),he&&ie.ctrlKey&&ae==1&&(ae=3),ae}var kn=function(){if(We&&Te<9)return!1;var ie=nt("div");return"draggable"in ie||"dragDrop"in ie}(),Or;function kr(ie){if(Or==null){var ae=nt("span","\u200B");qe(ie,nt("span",[ae,document.createTextNode("x")])),ie.firstChild.offsetHeight!=0&&(Or=ae.offsetWidth<=1&&ae.offsetHeight>2&&!(We&&Te<8))}var ve=Or?nt("span","\u200B"):nt("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return ve.setAttribute("cm-text",""),ve}var Wi;function lr(ie){if(Wi!=null)return Wi;var ae=qe(ie,document.createTextNode("A\u062EA")),ve=it(ae,0,1).getBoundingClientRect(),me=it(ae,1,2).getBoundingClientRect();return $e(ie),!ve||ve.left==ve.right?!1:Wi=me.right-ve.right<3}var wr=`
|
|
|
|
|
|
b`.split(/\n/).length!=3?function(ie){for(var ae=0,ve=[],me=ie.length;ae<=me;){var xe=ie.indexOf(`
|
|
|
`,ae);xe==-1&&(xe=ie.length);var _e=ie.slice(ae,ie.charAt(xe-1)=="\r"?xe-1:xe),tt=_e.indexOf("\r");tt!=-1?(ve.push(_e.slice(0,tt)),ae+=tt+1):(ve.push(_e),ae=xe+1)}return ve}:function(ie){return ie.split(/\r\n?|\n/)},Ie=window.getSelection?function(ie){try{return ie.selectionStart!=ie.selectionEnd}catch(ae){return!1}}:function(ie){var ae;try{ae=ie.ownerDocument.selection.createRange()}catch(ve){}return!ae||ae.parentElement()!=ie?!1:ae.compareEndPoints("StartToEnd",ae)!=0},Yi=function(){var ie=nt("div");return"oncopy"in ie?!0:(ie.setAttribute("oncopy","return;"),typeof ie.oncopy=="function")}(),Ei=null;function rr(ie){if(Ei!=null)return Ei;var ae=qe(ie,nt("span","x")),ve=ae.getBoundingClientRect(),me=it(ae,0,1).getBoundingClientRect();return Ei=Math.abs(ve.left-me.left)>1}var Br={},Gr={};function yr(ie,ae){arguments.length>2&&(ae.dependencies=Array.prototype.slice.call(arguments,2)),Br[ie]=ae}function Vi(ie,ae){Gr[ie]=ae}function hi(ie){if(typeof ie=="string"&&Gr.hasOwnProperty(ie))ie=Gr[ie];else if(ie&&typeof ie.name=="string"&&Gr.hasOwnProperty(ie.name)){var ae=Gr[ie.name];typeof ae=="string"&&(ae={name:ae}),ie=De(ae,ie),ie.name=ae.name}else{if(typeof ie=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(ie))return hi("application/xml");if(typeof ie=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(ie))return hi("application/json")}return typeof ie=="string"?{name:ie}:ie||{name:"null"}}function Jt(ie,ae){ae=hi(ae);var ve=Br[ae.name];if(!ve)return Jt(ie,"text/plain");var me=ve(ie,ae);if(Wt.hasOwnProperty(ae.name)){var xe=Wt[ae.name];for(var _e in xe)xe.hasOwnProperty(_e)&&(me.hasOwnProperty(_e)&&(me["_"+_e]=me[_e]),me[_e]=xe[_e])}if(me.name=ae.name,ae.helperType&&(me.helperType=ae.helperType),ae.modeProps)for(var tt in ae.modeProps)me[tt]=ae.modeProps[tt];return me}var Wt={};function jt(ie,ae){var ve=Wt.hasOwnProperty(ie)?Wt[ie]:Wt[ie]={};nn(ae,ve)}function gi(ie,ae){if(ae===!0)return ae;if(ie.copyState)return ie.copyState(ae);var ve={};for(var me in ae){var xe=ae[me];xe instanceof Array&&(xe=xe.concat([])),ve[me]=xe}return ve}function ii(ie,ae){for(var ve;ie.innerMode&&(ve=ie.innerMode(ae),!(!ve||ve.mode==ie));)ae=ve.state,ie=ve.mode;return ve||{mode:ie,state:ae}}function Pi(ie,ae,ve){return ie.startState?ie.startState(ae,ve):!0}var In=function(ie,ae,ve){this.pos=this.start=0,this.string=ie,this.tabSize=ae||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=ve};In.prototype.eol=function(){return this.pos>=this.string.length},In.prototype.sol=function(){return this.pos==this.lineStart},In.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},In.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},In.prototype.eat=function(ie){var ae=this.string.charAt(this.pos),ve;if(typeof ie=="string"?ve=ae==ie:ve=ae&&(ie.test?ie.test(ae):ie(ae)),ve)return++this.pos,ae},In.prototype.eatWhile=function(ie){for(var ae=this.pos;this.eat(ie););return this.pos>ae},In.prototype.eatSpace=function(){for(var ie=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>ie},In.prototype.skipToEnd=function(){this.pos=this.string.length},In.prototype.skipTo=function(ie){var ae=this.string.indexOf(ie,this.pos);if(ae>-1)return this.pos=ae,!0},In.prototype.backUp=function(ie){this.pos-=ie},In.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=At(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?At(this.string,this.lineStart,this.tabSize):0)},In.prototype.indentation=function(){return At(this.string,null,this.tabSize)-(this.lineStart?At(this.string,this.lineStart,this.tabSize):0)},In.prototype.match=function(ie,ae,ve){if(typeof ie=="string"){var me=function(tt){return ve?tt.toLowerCase():tt},xe=this.string.substr(this.pos,ie.length);if(me(xe)==me(ie))return ae!==!1&&(this.pos+=ie.length),!0}else{var _e=this.string.slice(this.pos).match(ie);return _e&&_e.index>0?null:(_e&&ae!==!1&&(this.pos+=_e[0].length),_e)}},In.prototype.current=function(){return this.string.slice(this.start,this.pos)},In.prototype.hideFirstChars=function(ie,ae){this.lineStart+=ie;try{return ae()}finally{this.lineStart-=ie}},In.prototype.lookAhead=function(ie){var ae=this.lineOracle;return ae&&ae.lookAhead(ie)},In.prototype.baseToken=function(){var ie=this.lineOracle;return ie&&ie.baseToken(this.pos)};function fi(ie,ae){if(ae-=ie.first,ae<0||ae>=ie.size)throw new Error("There is no line "+(ae+ie.first)+" in the document.");for(var ve=ie;!ve.lines;)for(var me=0;;++me){var xe=ve.children[me],_e=xe.chunkSize();if(ae<_e){ve=xe;break}ae-=_e}return ve.lines[ae]}function on(ie,ae,ve){var me=[],xe=ae.line;return ie.iter(ae.line,ve.line+1,function(_e){var tt=_e.text;xe==ve.line&&(tt=tt.slice(0,ve.ch)),xe==ae.line&&(tt=tt.slice(ae.ch)),me.push(tt),++xe}),me}function Gt(ie,ae,ve){var me=[];return ie.iter(ae,ve,function(xe){me.push(xe.text)}),me}function li(ie,ae){var ve=ae-ie.height;if(ve)for(var me=ie;me;me=me.parent)me.height+=ve}function vt(ie){if(ie.parent==null)return null;for(var ae=ie.parent,ve=at(ae.lines,ie),me=ae.parent;me;ae=me,me=me.parent)for(var xe=0;me.children[xe]!=ae;++xe)ve+=me.children[xe].chunkSize();return ve+ae.first}function Sn(ie,ae){var ve=ie.first;e:do{for(var me=0;me<ie.children.length;++me){var xe=ie.children[me],_e=xe.height;if(ae<_e){ie=xe;continue e}ae-=_e,ve+=xe.chunkSize()}return ve}while(!ie.lines);for(var tt=0;tt<ie.lines.length;++tt){var pt=ie.lines[tt],ht=pt.height;if(ae<ht)break;ae-=ht}return ve+tt}function ri(ie,ae){return ae>=ie.first&&ae<ie.first+ie.size}function ki(ie,ae){return String(ie.lineNumberFormatter(ae+ie.firstLineNumber))}function zt(ie,ae,ve){if(ve===void 0&&(ve=null),!(this instanceof zt))return new zt(ie,ae,ve);this.line=ie,this.ch=ae,this.sticky=ve}function wn(ie,ae){return ie.line-ae.line||ie.ch-ae.ch}function oi(ie,ae){return ie.sticky==ae.sticky&&wn(ie,ae)==0}function qt(ie){return zt(ie.line,ie.ch)}function Be(ie,ae){return wn(ie,ae)<0?ae:ie}function Mi(ie,ae){return wn(ie,ae)<0?ie:ae}function ui(ie,ae){return Math.max(ie.first,Math.min(ae,ie.first+ie.size-1))}function Tn(ie,ae){if(ae.line<ie.first)return zt(ie.first,0);var ve=ie.first+ie.size-1;return ae.line>ve?zt(ve,fi(ie,ve).text.length):Ki(ae,fi(ie,ae.line).text.length)}function Ki(ie,ae){var ve=ie.ch;return ve==null||ve>ae?zt(ie.line,ae):ve<0?zt(ie.line,0):ie}function er(ie,ae){for(var ve=[],me=0;me<ae.length;me++)ve[me]=Tn(ie,ae[me]);return ve}var or=function(ie,ae){this.state=ie,this.lookAhead=ae},Cn=function(ie,ae,ve,me){this.state=ae,this.doc=ie,this.line=ve,this.maxLookAhead=me||0,this.baseTokens=null,this.baseTokenPos=1};Cn.prototype.lookAhead=function(ie){var ae=this.doc.getLine(this.line+ie);return ae!=null&&ie>this.maxLookAhead&&(this.maxLookAhead=ie),ae},Cn.prototype.baseToken=function(ie){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=ie;)this.baseTokenPos+=2;var ae=this.baseTokens[this.baseTokenPos+1];return{type:ae&&ae.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-ie}},Cn.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Cn.fromSaved=function(ie,ae,ve){return ae instanceof or?new Cn(ie,gi(ie.mode,ae.state),ve,ae.lookAhead):new Cn(ie,gi(ie.mode,ae),ve)},Cn.prototype.save=function(ie){var ae=ie!==!1?gi(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new or(ae,this.maxLookAhead):ae};function Kt(ie,ae,ve,me){var xe=[ie.state.modeGen],_e={};Fr(ie,ae.text,ie.doc.mode,ve,function(Tt,vn){return xe.push(Tt,vn)},_e,me);for(var tt=ve.state,pt=function(Tt){ve.baseTokens=xe;var vn=ie.state.overlays[Tt],Ot=1,Wn=0;ve.state=!0,Fr(ie,ae.text,vn.mode,ve,function(Mn,Ui){for(var ji=Ot;Wn<Mn;){var nr=xe[Ot];nr>Mn&&xe.splice(Ot,1,Mn,xe[Ot+1],nr),Ot+=2,Wn=Math.min(Mn,nr)}if(Ui)if(vn.opaque)xe.splice(ji,Ot-ji,Mn,"overlay "+Ui),Ot=ji+2;else for(;ji<Ot;ji+=2){var Er=xe[ji+1];xe[ji+1]=(Er?Er+" ":"")+"overlay "+Ui}},_e),ve.state=tt,ve.baseTokens=null,ve.baseTokenPos=1},ht=0;ht<ie.state.overlays.length;++ht)pt(ht);return{styles:xe,classes:_e.bgClass||_e.textClass?_e:null}}function sr(ie,ae,ve){if(!ae.styles||ae.styles[0]!=ie.state.modeGen){var me=ro(ie,vt(ae)),xe=ae.text.length>ie.options.maxHighlightLength&&gi(ie.doc.mode,me.state),_e=Kt(ie,ae,me);xe&&(me.state=xe),ae.stateAfter=me.save(!xe),ae.styles=_e.styles,_e.classes?ae.styleClasses=_e.classes:ae.styleClasses&&(ae.styleClasses=null),ve===ie.doc.highlightFrontier&&(ie.doc.modeFrontier=Math.max(ie.doc.modeFrontier,++ie.doc.highlightFrontier))}return ae.styles}function ro(ie,ae,ve){var me=ie.doc,xe=ie.display;if(!me.mode.startState)return new Cn(me,!0,ae);var _e=Cr(ie,ae,ve),tt=_e>me.first&&fi(me,_e-1).stateAfter,pt=tt?Cn.fromSaved(me,tt,_e):new Cn(me,Pi(me.mode),_e);return me.iter(_e,ae,function(ht){mn(ie,ht.text,pt);var Tt=pt.line;ht.stateAfter=Tt==ae-1||Tt%5==0||Tt>=xe.viewFrom&&Tt<xe.viewTo?pt.save():null,pt.nextLine()}),ve&&(me.modeFrontier=pt.line),pt}function mn(ie,ae,ve,me){var xe=ie.doc.mode,_e=new In(ae,ie.options.tabSize,ve);for(_e.start=_e.pos=me||0,ae==""&&wi(xe,ve.state);!_e.eol();)_i(xe,_e,ve.state),_e.start=_e.pos}function wi(ie,ae){if(ie.blankLine)return ie.blankLine(ae);if(ie.innerMode){var ve=ii(ie,ae);if(ve.mode.blankLine)return ve.mode.blankLine(ve.state)}}function _i(ie,ae,ve,me){for(var xe=0;xe<10;xe++){me&&(me[0]=ii(ie,ve).mode);var _e=ie.token(ae,ve);if(ae.pos>ae.start)return _e}throw new Error("Mode "+ie.name+" failed to advance stream.")}var Ji=function(ie,ae,ve){this.start=ie.start,this.end=ie.pos,this.string=ie.current(),this.type=ae||null,this.state=ve};function Gi(ie,ae,ve,me){var xe=ie.doc,_e=xe.mode,tt;ae=Tn(xe,ae);var pt=fi(xe,ae.line),ht=ro(ie,ae.line,ve),Tt=new In(pt.text,ie.options.tabSize,ht),vn;for(me&&(vn=[]);(me||Tt.pos<ae.ch)&&!Tt.eol();)Tt.start=Tt.pos,tt=_i(_e,Tt,ht.state),me&&vn.push(new Ji(Tt,tt,gi(xe.mode,ht.state)));return me?vn:new Ji(Tt,tt,ht.state)}function ir(ie,ae){if(ie)for(;;){var ve=ie.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!ve)break;ie=ie.slice(0,ve.index)+ie.slice(ve.index+ve[0].length);var me=ve[1]?"bgClass":"textClass";ae[me]==null?ae[me]=ve[2]:new RegExp("(?:^|\\s)"+ve[2]+"(?:$|\\s)").test(ae[me])||(ae[me]+=" "+ve[2])}return ie}function Fr(ie,ae,ve,me,xe,_e,tt){var pt=ve.flattenSpans;pt==null&&(pt=ie.options.flattenSpans);var ht=0,Tt=null,vn=new In(ae,ie.options.tabSize,me),Ot,Wn=ie.options.addModeClass&&[null];for(ae==""&&ir(wi(ve,me.state),_e);!vn.eol();){if(vn.pos>ie.options.maxHighlightLength?(pt=!1,tt&&mn(ie,ae,me,vn.pos),vn.pos=ae.length,Ot=null):Ot=ir(_i(ve,vn,me.state,Wn),_e),Wn){var Mn=Wn[0].name;Mn&&(Ot="m-"+(Ot?Mn+" "+Ot:Mn))}if(!pt||Tt!=Ot){for(;ht<vn.start;)ht=Math.min(vn.start,ht+5e3),xe(ht,Tt);Tt=Ot}vn.start=vn.pos}for(;ht<vn.pos;){var Ui=Math.min(vn.pos,ht+5e3);xe(Ui,Tt),ht=Ui}}function Cr(ie,ae,ve){for(var me,xe,_e=ie.doc,tt=ve?-1:ae-(ie.doc.mode.innerMode?1e3:100),pt=ae;pt>tt;--pt){if(pt<=_e.first)return _e.first;var ht=fi(_e,pt-1),Tt=ht.stateAfter;if(Tt&&(!ve||pt+(Tt instanceof or?Tt.lookAhead:0)<=_e.modeFrontier))return pt;var vn=At(ht.text,null,ie.options.tabSize);(xe==null||me>vn)&&(xe=pt-1,me=vn)}return xe}function Ir(ie,ae){if(ie.modeFrontier=Math.min(ie.modeFrontier,ae),!(ie.highlightFrontier<ae-10)){for(var ve=ie.first,me=ae-1;me>ve;me--){var xe=fi(ie,me).stateAfter;if(xe&&(!(xe instanceof or)||me+xe.lookAhead<ae)){ve=me+1;break}}ie.highlightFrontier=Math.min(ie.highlightFrontier,ve)}}var Ur=!1,Dn=!1;function Zr(){Ur=!0}function Bn(){Dn=!0}function qi(ie,ae,ve){this.marker=ie,this.from=ae,this.to=ve}function ur(ie,ae){if(ie)for(var ve=0;ve<ie.length;++ve){var me=ie[ve];if(me.marker==ae)return me}}function gr(ie,ae){for(var ve,me=0;me<ie.length;++me)ie[me]!=ae&&(ve||(ve=[])).push(ie[me]);return ve}function xo(ie,ae){ie.markedSpans=ie.markedSpans?ie.markedSpans.concat([ae]):[ae],ae.marker.attachLine(ie)}function yo(ie,ae,ve){var me;if(ie)for(var xe=0;xe<ie.length;++xe){var _e=ie[xe],tt=_e.marker,pt=_e.from==null||(tt.inclusiveLeft?_e.from<=ae:_e.from<ae);if(pt||_e.from==ae&&tt.type=="bookmark"&&(!ve||!_e.marker.insertLeft)){var ht=_e.to==null||(tt.inclusiveRight?_e.to>=ae:_e.to>ae);(me||(me=[])).push(new qi(tt,_e.from,ht?null:_e.to))}}return me}function mo(ie,ae,ve){var me;if(ie)for(var xe=0;xe<ie.length;++xe){var _e=ie[xe],tt=_e.marker,pt=_e.to==null||(tt.inclusiveRight?_e.to>=ae:_e.to>ae);if(pt||_e.from==ae&&tt.type=="bookmark"&&(!ve||_e.marker.insertLeft)){var ht=_e.from==null||(tt.inclusiveLeft?_e.from<=ae:_e.from<ae);(me||(me=[])).push(new qi(tt,ht?null:_e.from-ae,_e.to==null?null:_e.to-ae))}}return me}function bo(ie,ae){if(ae.full)return null;var ve=ri(ie,ae.from.line)&&fi(ie,ae.from.line).markedSpans,me=ri(ie,ae.to.line)&&fi(ie,ae.to.line).markedSpans;if(!ve&&!me)return null;var xe=ae.from.ch,_e=ae.to.ch,tt=wn(ae.from,ae.to)==0,pt=yo(ve,xe,tt),ht=mo(me,_e,tt),Tt=ae.text.length==1,vn=kt(ae.text).length+(Tt?xe:0);if(pt)for(var Ot=0;Ot<pt.length;++Ot){var Wn=pt[Ot];if(Wn.to==null){var Mn=ur(ht,Wn.marker);Mn?Tt&&(Wn.to=Mn.to==null?null:Mn.to+vn):Wn.to=xe}}if(ht)for(var Ui=0;Ui<ht.length;++Ui){var ji=ht[Ui];if(ji.to!=null&&(ji.to+=vn),ji.from==null){var nr=ur(pt,ji.marker);nr||(ji.from=vn,Tt&&(pt||(pt=[])).push(ji))}else ji.from+=vn,Tt&&(pt||(pt=[])).push(ji)}pt&&(pt=cn(pt)),ht&&ht!=pt&&(ht=cn(ht));var Er=[pt];if(!Tt){var Yr=ae.text.length-2,Dr;if(Yr>0&&pt)for(var io=0;io<pt.length;++io)pt[io].to==null&&(Dr||(Dr=[])).push(new qi(pt[io].marker,null,null));for(var Io=0;Io<Yr;++Io)Er.push(Dr);Er.push(ht)}return Er}function cn(ie){for(var ae=0;ae<ie.length;++ae){var ve=ie[ae];ve.from!=null&&ve.from==ve.to&&ve.marker.clearWhenEmpty!==!1&&ie.splice(ae--,1)}return ie.length?ie:null}function Fn(ie,ae,ve){var me=null;if(ie.iter(ae.line,ve.line+1,function(Mn){if(Mn.markedSpans)for(var Ui=0;Ui<Mn.markedSpans.length;++Ui){var ji=Mn.markedSpans[Ui].marker;ji.readOnly&&(!me||at(me,ji)==-1)&&(me||(me=[])).push(ji)}}),!me)return null;for(var xe=[{from:ae,to:ve}],_e=0;_e<me.length;++_e)for(var tt=me[_e],pt=tt.find(0),ht=0;ht<xe.length;++ht){var Tt=xe[ht];if(!(wn(Tt.to,pt.from)<0||wn(Tt.from,pt.to)>0)){var vn=[ht,1],Ot=wn(Tt.from,pt.from),Wn=wn(Tt.to,pt.to);(Ot<0||!tt.inclusiveLeft&&!Ot)&&vn.push({from:Tt.from,to:pt.from}),(Wn>0||!tt.inclusiveRight&&!Wn)&&vn.push({from:pt.to,to:Tt.to}),xe.splice.apply(xe,vn),ht+=vn.length-3}}return xe}function an(ie){var ae=ie.markedSpans;if(ae){for(var ve=0;ve<ae.length;++ve)ae[ve].marker.detachLine(ie);ie.markedSpans=null}}function Je(ie,ae){if(ae){for(var ve=0;ve<ae.length;++ve)ae[ve].marker.attachLine(ie);ie.markedSpans=ae}}function ci(ie){return ie.inclusiveLeft?-1:0}function Qn(ie){return ie.inclusiveRight?1:0}function yi(ie,ae){var ve=ie.lines.length-ae.lines.length;if(ve!=0)return ve;var me=ie.find(),xe=ae.find(),_e=wn(me.from,xe.from)||ci(ie)-ci(ae);if(_e)return-_e;var tt=wn(me.to,xe.to)||Qn(ie)-Qn(ae);return tt||ae.id-ie.id}function Ci(ie,ae){var ve=Dn&&ie.markedSpans,me;if(ve)for(var xe=void 0,_e=0;_e<ve.length;++_e)xe=ve[_e],xe.marker.collapsed&&(ae?xe.from:xe.to)==null&&(!me||yi(me,xe.marker)<0)&&(me=xe.marker);return me}function Fi(ie){return Ci(ie,!0)}function Vn(ie){return Ci(ie,!1)}function pi(ie,ae){var ve=Dn&&ie.markedSpans,me;if(ve)for(var xe=0;xe<ve.length;++xe){var _e=ve[xe];_e.marker.collapsed&&(_e.from==null||_e.from<ae)&&(_e.to==null||_e.to>ae)&&(!me||yi(me,_e.marker)<0)&&(me=_e.marker)}return me}function mi(ie,ae,ve,me,xe){var _e=fi(ie,ae),tt=Dn&&_e.markedSpans;if(tt)for(var pt=0;pt<tt.length;++pt){var ht=tt[pt];if(ht.marker.collapsed){var Tt=ht.marker.find(0),vn=wn(Tt.from,ve)||ci(ht.marker)-ci(xe),Ot=wn(Tt.to,me)||Qn(ht.marker)-Qn(xe);if(!(vn>=0&&Ot<=0||vn<=0&&Ot>=0)&&(vn<=0&&(ht.marker.inclusiveRight&&xe.inclusiveLeft?wn(Tt.to,ve)>=0:wn(Tt.to,ve)>0)||vn>=0&&(ht.marker.inclusiveRight&&xe.inclusiveLeft?wn(Tt.from,me)<=0:wn(Tt.from,me)<0)))return!0}}}function xi(ie){for(var ae;ae=Fi(ie);)ie=ae.find(-1,!0).line;return ie}function bi(ie){for(var ae;ae=Vn(ie);)ie=ae.find(1,!0).line;return ie}function tr(ie){for(var ae,ve;ae=Vn(ie);)ie=ae.find(1,!0).line,(ve||(ve=[])).push(ie);return ve}function zi(ie,ae){var ve=fi(ie,ae),me=xi(ve);return ve==me?ae:vt(me)}function Bi(ie,ae){if(ae>ie.lastLine())return ae;var ve=fi(ie,ae),me;if(!Ln(ie,ve))return ae;for(;me=Vn(ve);)ve=me.find(1,!0).line;return vt(ve)+1}function Ln(ie,ae){var ve=Dn&&ae.markedSpans;if(ve){for(var me=void 0,xe=0;xe<ve.length;++xe)if(me=ve[xe],!!me.marker.collapsed){if(me.from==null)return!0;if(!me.marker.widgetNode&&me.from==0&&me.marker.inclusiveLeft&&Oi(ie,ae,me))return!0}}}function Oi(ie,ae,ve){if(ve.to==null){var me=ve.marker.find(1,!0);return Oi(ie,me.line,ur(me.line.markedSpans,ve.marker))}if(ve.marker.inclusiveRight&&ve.to==ae.text.length)return!0;for(var xe=void 0,_e=0;_e<ae.markedSpans.length;++_e)if(xe=ae.markedSpans[_e],xe.marker.collapsed&&!xe.marker.widgetNode&&xe.from==ve.to&&(xe.to==null||xe.to!=ve.from)&&(xe.marker.inclusiveLeft||ve.marker.inclusiveRight)&&Oi(ie,ae,xe))return!0}function ar(ie){ie=xi(ie);for(var ae=0,ve=ie.parent,me=0;me<ve.lines.length;++me){var xe=ve.lines[me];if(xe==ie)break;ae+=xe.height}for(var _e=ve.parent;_e;ve=_e,_e=ve.parent)for(var tt=0;tt<_e.children.length;++tt){var pt=_e.children[tt];if(pt==ve)break;ae+=pt.height}return ae}function _r(ie){if(ie.height==0)return 0;for(var ae=ie.text.length,ve,me=ie;ve=Fi(me);){var xe=ve.find(0,!0);me=xe.from.line,ae+=xe.from.ch-xe.to.ch}for(me=ie;ve=Vn(me);){var _e=ve.find(0,!0);ae-=me.text.length-_e.from.ch,me=_e.to.line,ae+=me.text.length-_e.to.ch}return ae}function Lr(ie){var ae=ie.display,ve=ie.doc;ae.maxLine=fi(ve,ve.first),ae.maxLineLength=_r(ae.maxLine),ae.maxLineChanged=!0,ve.iter(function(me){var xe=_r(me);xe>ae.maxLineLength&&(ae.maxLineLength=xe,ae.maxLine=me)})}var Wr=function(ie,ae,ve){this.text=ie,Je(this,ae),this.height=ve?ve(this):1};Wr.prototype.lineNo=function(){return vt(this)},Et(Wr);function Hr(ie,ae,ve,me){ie.text=ae,ie.stateAfter&&(ie.stateAfter=null),ie.styles&&(ie.styles=null),ie.order!=null&&(ie.order=null),an(ie),Je(ie,ve);var xe=me?me(ie):1;xe!=ie.height&&li(ie,xe)}function jr(ie){ie.parent=null,an(ie)}var So={},vo={};function ra(ie,ae){if(!ie||/^\s*$/.test(ie))return null;var ve=ae.addModeClass?vo:So;return ve[ie]||(ve[ie]=ie.replace(/\S+/g,"cm-$&"))}function tn(ie,ae){var ve=dt("span",null,null,Ge?"padding-right: .1px":null),me={pre:dt("pre",[ve],"CodeMirror-line"),content:ve,col:0,pos:0,cm:ie,trailingSpace:!1,splitSpaces:ie.getOption("lineWrapping")};ae.measure={};for(var xe=0;xe<=(ae.rest?ae.rest.length:0);xe++){var _e=xe?ae.rest[xe-1]:ae.line,tt=void 0;me.pos=0,me.addToken=uo,lr(ie.display.measure)&&(tt=Pn(_e,ie.doc.direction))&&(me.addToken=ao(me.addToken,tt)),me.map=[];var pt=ae!=ie.display.externalMeasured&&vt(_e);Go(_e,me,sr(ie,_e,pt)),_e.styleClasses&&(_e.styleClasses.bgClass&&(me.bgClass=ln(_e.styleClasses.bgClass,me.bgClass||"")),_e.styleClasses.textClass&&(me.textClass=ln(_e.styleClasses.textClass,me.textClass||""))),me.map.length==0&&me.map.push(0,0,me.content.appendChild(kr(ie.display.measure))),xe==0?(ae.measure.map=me.map,ae.measure.cache={}):((ae.measure.maps||(ae.measure.maps=[])).push(me.map),(ae.measure.caches||(ae.measure.caches=[])).push({}))}if(Ge){var ht=me.content.lastChild;(/\bcm-tab\b/.test(ht.className)||ht.querySelector&&ht.querySelector(".cm-tab"))&&(me.content.className="cm-tab-wrap-hack")}return Rn(ie,"renderLine",ie,ae.line,me.pre),me.pre.className&&(me.textClass=ln(me.pre.className,me.textClass||"")),me}function Xr(ie){var ae=nt("span","\u2022","cm-invalidchar");return ae.title="\\u"+ie.charCodeAt(0).toString(16),ae.setAttribute("aria-label",ae.title),ae}function uo(ie,ae,ve,me,xe,_e,tt){if(ae){var pt=ie.splitSpaces?Tr(ae,ie.trailingSpace):ae,ht=ie.cm.state.specialChars,Tt=!1,vn;if(!ht.test(ae))ie.col+=ae.length,vn=document.createTextNode(pt),ie.map.push(ie.pos,ie.pos+ae.length,vn),We&&Te<9&&(Tt=!0),ie.pos+=ae.length;else{vn=document.createDocumentFragment();for(var Ot=0;;){ht.lastIndex=Ot;var Wn=ht.exec(ae),Mn=Wn?Wn.index-Ot:ae.length-Ot;if(Mn){var Ui=document.createTextNode(pt.slice(Ot,Ot+Mn));We&&Te<9?vn.appendChild(nt("span",[Ui])):vn.appendChild(Ui),ie.map.push(ie.pos,ie.pos+Mn,Ui),ie.col+=Mn,ie.pos+=Mn}if(!Wn)break;Ot+=Mn+1;var ji=void 0;if(Wn[0]==" "){var nr=ie.cm.options.tabSize,Er=nr-ie.col%nr;ji=vn.appendChild(nt("span",On(Er),"cm-tab")),ji.setAttribute("role","presentation"),ji.setAttribute("cm-text"," "),ie.col+=Er}else Wn[0]=="\r"||Wn[0]==`
|
|
|
`?(ji=vn.appendChild(nt("span",Wn[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),ji.setAttribute("cm-text",Wn[0]),ie.col+=1):(ji=ie.cm.options.specialCharPlaceholder(Wn[0]),ji.setAttribute("cm-text",Wn[0]),We&&Te<9?vn.appendChild(nt("span",[ji])):vn.appendChild(ji),ie.col+=1);ie.map.push(ie.pos,ie.pos+1,ji),ie.pos++}}if(ie.trailingSpace=pt.charCodeAt(ae.length-1)==32,ve||me||xe||Tt||_e||tt){var Yr=ve||"";me&&(Yr+=me),xe&&(Yr+=xe);var Dr=nt("span",[vn],Yr,_e);if(tt)for(var io in tt)tt.hasOwnProperty(io)&&io!="style"&&io!="class"&&Dr.setAttribute(io,tt[io]);return ie.content.appendChild(Dr)}ie.content.appendChild(vn)}}function Tr(ie,ae){if(ie.length>1&&!/ /.test(ie))return ie;for(var ve=ae,me="",xe=0;xe<ie.length;xe++){var _e=ie.charAt(xe);_e==" "&&ve&&(xe==ie.length-1||ie.charCodeAt(xe+1)==32)&&(_e="\xA0"),me+=_e,ve=_e==" "}return me}function ao(ie,ae){return function(ve,me,xe,_e,tt,pt,ht){xe=xe?xe+" cm-force-border":"cm-force-border";for(var Tt=ve.pos,vn=Tt+me.length;;){for(var Ot=void 0,Wn=0;Wn<ae.length&&(Ot=ae[Wn],!(Ot.to>Tt&&Ot.from<=Tt));Wn++);if(Ot.to>=vn)return ie(ve,me,xe,_e,tt,pt,ht);ie(ve,me.slice(0,Ot.to-Tt),xe,_e,null,pt,ht),_e=null,me=me.slice(Ot.to-Tt),Tt=Ot.to}}}function br(ie,ae,ve,me){var xe=!me&&ve.widgetNode;xe&&ie.map.push(ie.pos,ie.pos+ae,xe),!me&&ie.cm.display.input.needsContentAttribute&&(xe||(xe=ie.content.appendChild(document.createElement("span"))),xe.setAttribute("cm-marker",ve.id)),xe&&(ie.cm.display.input.setUneditable(xe),ie.content.appendChild(xe)),ie.pos+=ae,ie.trailingSpace=!1}function Go(ie,ae,ve){var me=ie.markedSpans,xe=ie.text,_e=0;if(!me){for(var tt=1;tt<ve.length;tt+=2)ae.addToken(ae,xe.slice(_e,_e=ve[tt]),ra(ve[tt+1],ae.cm.options));return}for(var pt=xe.length,ht=0,Tt=1,vn="",Ot,Wn,Mn=0,Ui,ji,nr,Er,Yr;;){if(Mn==ht){Ui=ji=nr=Wn="",Yr=null,Er=null,Mn=1/0;for(var Dr=[],io=void 0,Io=0;Io<me.length;++Io){var Rr=me[Io],ea=Rr.marker;if(ea.type=="bookmark"&&Rr.from==ht&&ea.widgetNode)Dr.push(ea);else if(Rr.from<=ht&&(Rr.to==null||Rr.to>ht||ea.collapsed&&Rr.to==ht&&Rr.from==ht)){if(Rr.to!=null&&Rr.to!=ht&&Mn>Rr.to&&(Mn=Rr.to,ji=""),ea.className&&(Ui+=" "+ea.className),ea.css&&(Wn=(Wn?Wn+";":"")+ea.css),ea.startStyle&&Rr.from==ht&&(nr+=" "+ea.startStyle),ea.endStyle&&Rr.to==Mn&&(io||(io=[])).push(ea.endStyle,Rr.to),ea.title&&((Yr||(Yr={})).title=ea.title),ea.attributes)for(var is in ea.attributes)(Yr||(Yr={}))[is]=ea.attributes[is];ea.collapsed&&(!Er||yi(Er.marker,ea)<0)&&(Er=Rr)}else Rr.from>ht&&Mn>Rr.from&&(Mn=Rr.from)}if(io)for(var Xs=0;Xs<io.length;Xs+=2)io[Xs+1]==Mn&&(ji+=" "+io[Xs]);if(!Er||Er.from==ht)for(var gs=0;gs<Dr.length;++gs)br(ae,0,Dr[gs]);if(Er&&(Er.from||0)==ht){if(br(ae,(Er.to==null?pt+1:Er.to)-ht,Er.marker,Er.from==null),Er.to==null)return;Er.to==ht&&(Er=!1)}}if(ht>=pt)break;for(var iu=Math.min(pt,Mn);;){if(vn){var Il=ht+vn.length;if(!Er){var zs=Il>iu?vn.slice(0,iu-ht):vn;ae.addToken(ae,zs,Ot?Ot+Ui:Ui,nr,ht+zs.length==Mn?ji:"",Wn,Yr)}if(Il>=iu){vn=vn.slice(iu-ht),ht=iu;break}ht=Il,nr=""}vn=xe.slice(_e,_e=ve[Tt++]),Ot=ra(ve[Tt++],ae.cm.options)}}}function gn(ie,ae,ve){this.line=ae,this.rest=tr(ae),this.size=this.rest?vt(kt(this.rest))-ve+1:1,this.node=this.text=null,this.hidden=Ln(ie,ae)}function qr(ie,ae,ve){for(var me=[],xe,_e=ae;_e<ve;_e=xe){var tt=new gn(ie.doc,fi(ie.doc,_e),_e);xe=_e+tt.size,me.push(tt)}return me}var Oo=null;function Ga(ie){Oo?Oo.ops.push(ie):ie.ownsGroup=Oo={ops:[ie],delayedCallbacks:[]}}function pa(ie){var ae=ie.delayedCallbacks,ve=0;do{for(;ve<ae.length;ve++)ae[ve].call(null);for(var me=0;me<ie.ops.length;me++){var xe=ie.ops[me];if(xe.cursorActivityHandlers)for(;xe.cursorActivityCalled<xe.cursorActivityHandlers.length;)xe.cursorActivityHandlers[xe.cursorActivityCalled++].call(null,xe.cm)}}while(ve<ae.length)}function us(ie,ae){var ve=ie.ownsGroup;if(ve)try{pa(ve)}finally{Oo=null,ae(ve)}}var Za=null;function pr(ie,ae){var ve=zn(ie,ae);if(ve.length){var me=Array.prototype.slice.call(arguments,2),xe;Oo?xe=Oo.delayedCallbacks:Za?xe=Za:(xe=Za=[],setTimeout(Ho,0));for(var _e=function(pt){xe.push(function(){return ve[pt].apply(null,me)})},tt=0;tt<ve.length;++tt)_e(tt)}}function Ho(){var ie=Za;Za=null;for(var ae=0;ae<ie.length;++ae)ie[ae]()}function ca(ie,ae,ve,me){for(var xe=0;xe<ae.changes.length;xe++){var _e=ae.changes[xe];_e=="text"?Ut(ie,ae):_e=="gutter"?Qi(ie,ae,ve,me):_e=="class"?Ni(ie,ae):_e=="widget"&&Pr(ie,ae,me)}ae.changes=null}function wa(ie){return ie.node==ie.text&&(ie.node=nt("div",null,null,"position: relative"),ie.text.parentNode&&ie.text.parentNode.replaceChild(ie.node,ie.text),ie.node.appendChild(ie.text),We&&Te<8&&(ie.node.style.zIndex=2)),ie.node}function to(ie,ae){var ve=ae.bgClass?ae.bgClass+" "+(ae.line.bgClass||""):ae.line.bgClass;if(ve&&(ve+=" CodeMirror-linebackground"),ae.background)ve?ae.background.className=ve:(ae.background.parentNode.removeChild(ae.background),ae.background=null);else if(ve){var me=wa(ae);ae.background=me.insertBefore(nt("div",null,ve),me.firstChild),ie.display.input.setUneditable(ae.background)}}function Kr(ie,ae){var ve=ie.display.externalMeasured;return ve&&ve.line==ae.line?(ie.display.externalMeasured=null,ae.measure=ve.measure,ve.built):tn(ie,ae)}function Ut(ie,ae){var ve=ae.text.className,me=Kr(ie,ae);ae.text==ae.node&&(ae.node=me.pre),ae.text.parentNode.replaceChild(me.pre,ae.text),ae.text=me.pre,me.bgClass!=ae.bgClass||me.textClass!=ae.textClass?(ae.bgClass=me.bgClass,ae.textClass=me.textClass,Ni(ie,ae)):ve&&(ae.text.className=ve)}function Ni(ie,ae){to(ie,ae),ae.line.wrapClass?wa(ae).className=ae.line.wrapClass:ae.node!=ae.text&&(ae.node.className="");var ve=ae.textClass?ae.textClass+" "+(ae.line.textClass||""):ae.line.textClass;ae.text.className=ve||""}function Qi(ie,ae,ve,me){if(ae.gutter&&(ae.node.removeChild(ae.gutter),ae.gutter=null),ae.gutterBackground&&(ae.node.removeChild(ae.gutterBackground),ae.gutterBackground=null),ae.line.gutterClass){var xe=wa(ae);ae.gutterBackground=nt("div",null,"CodeMirror-gutter-background "+ae.line.gutterClass,"left: "+(ie.options.fixedGutter?me.fixedPos:-me.gutterTotalWidth)+"px; width: "+me.gutterTotalWidth+"px"),ie.display.input.setUneditable(ae.gutterBackground),xe.insertBefore(ae.gutterBackground,ae.text)}var _e=ae.line.gutterMarkers;if(ie.options.lineNumbers||_e){var tt=wa(ae),pt=ae.gutter=nt("div",null,"CodeMirror-gutter-wrapper","left: "+(ie.options.fixedGutter?me.fixedPos:-me.gutterTotalWidth)+"px");if(ie.display.input.setUneditable(pt),tt.insertBefore(pt,ae.text),ae.line.gutterClass&&(pt.className+=" "+ae.line.gutterClass),ie.options.lineNumbers&&(!_e||!_e["CodeMirror-linenumbers"])&&(ae.lineNumber=pt.appendChild(nt("div",ki(ie.options,ve),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+me.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+ie.display.lineNumInnerWidth+"px"))),_e)for(var ht=0;ht<ie.display.gutterSpecs.length;++ht){var Tt=ie.display.gutterSpecs[ht].className,vn=_e.hasOwnProperty(Tt)&&_e[Tt];vn&&pt.appendChild(nt("div",[vn],"CodeMirror-gutter-elt","left: "+me.gutterLeft[Tt]+"px; width: "+me.gutterWidth[Tt]+"px"))}}}function Pr(ie,ae,ve){ae.alignable&&(ae.alignable=null);for(var me=Le("CodeMirror-linewidget"),xe=ae.node.firstChild,_e=void 0;xe;xe=_e)_e=xe.nextSibling,me.test(xe.className)&&ae.node.removeChild(xe);Qr(ie,ae,ve)}function co(ie,ae,ve,me){var xe=Kr(ie,ae);return ae.text=ae.node=xe.pre,xe.bgClass&&(ae.bgClass=xe.bgClass),xe.textClass&&(ae.textClass=xe.textClass),Ni(ie,ae),Qi(ie,ae,ve,me),Qr(ie,ae,me),ae.node}function Qr(ie,ae,ve){if(mr(ie,ae.line,ae,ve,!0),ae.rest)for(var me=0;me<ae.rest.length;me++)mr(ie,ae.rest[me],ae,ve,!1)}function mr(ie,ae,ve,me,xe){if(ae.widgets)for(var _e=wa(ve),tt=0,pt=ae.widgets;tt<pt.length;++tt){var ht=pt[tt],Tt=nt("div",[ht.node],"CodeMirror-linewidget"+(ht.className?" "+ht.className:""));ht.handleMouseEvents||Tt.setAttribute("cm-ignore-events","true"),Mo(ht,Tt,ve,me),ie.display.input.setUneditable(Tt),xe&&ht.above?_e.insertBefore(Tt,ve.gutter||ve.text):_e.appendChild(Tt),pr(ht,"redraw")}}function Mo(ie,ae,ve,me){if(ie.noHScroll){(ve.alignable||(ve.alignable=[])).push(ae);var xe=me.wrapperWidth;ae.style.left=me.fixedPos+"px",ie.coverGutter||(xe-=me.gutterTotalWidth,ae.style.paddingLeft=me.gutterTotalWidth+"px"),ae.style.width=xe+"px"}ie.coverGutter&&(ae.style.zIndex=5,ae.style.position="relative",ie.noHScroll||(ae.style.marginLeft=-me.gutterTotalWidth+"px"))}function Jo(ie){if(ie.height!=null)return ie.height;var ae=ie.doc.cm;if(!ae)return 0;if(!bt(document.body,ie.node)){var ve="position: relative;";ie.coverGutter&&(ve+="margin-left: -"+ae.display.gutters.offsetWidth+"px;"),ie.noHScroll&&(ve+="width: "+ae.display.wrapper.clientWidth+"px;"),qe(ae.display.measure,nt("div",[ie.node],null,ve))}return ie.height=ie.node.parentNode.offsetHeight}function Do(ie,ae){for(var ve=cr(ae);ve!=ie.wrapper;ve=ve.parentNode)if(!ve||ve.nodeType==1&&ve.getAttribute("cm-ignore-events")=="true"||ve.parentNode==ie.sizer&&ve!=ie.mover)return!0}function ho(ie){return ie.lineSpace.offsetTop}function na(ie){return ie.mover.offsetHeight-ie.lineSpace.offsetHeight}function as(ie){if(ie.cachedPaddingH)return ie.cachedPaddingH;var ae=qe(ie.measure,nt("pre","x","CodeMirror-line-like")),ve=window.getComputedStyle?window.getComputedStyle(ae):ae.currentStyle,me={left:parseInt(ve.paddingLeft),right:parseInt(ve.paddingRight)};return!isNaN(me.left)&&!isNaN(me.right)&&(ie.cachedPaddingH=me),me}function Po(ie){return rn-ie.display.nativeBarWidth}function ka(ie){return ie.display.scroller.clientWidth-Po(ie)-ie.display.barWidth}function bs(ie){return ie.display.scroller.clientHeight-Po(ie)-ie.display.barHeight}function Ds(ie,ae,ve){var me=ie.options.lineWrapping,xe=me&&ka(ie);if(!ae.measure.heights||me&&ae.measure.width!=xe){var _e=ae.measure.heights=[];if(me){ae.measure.width=xe;for(var tt=ae.text.firstChild.getClientRects(),pt=0;pt<tt.length-1;pt++){var ht=tt[pt],Tt=tt[pt+1];Math.abs(ht.bottom-Tt.bottom)>2&&_e.push((ht.bottom+Tt.top)/2-ve.top)}}_e.push(ve.bottom-ve.top)}}function fa(ie,ae,ve){if(ie.line==ae)return{map:ie.measure.map,cache:ie.measure.cache};for(var me=0;me<ie.rest.length;me++)if(ie.rest[me]==ae)return{map:ie.measure.maps[me],cache:ie.measure.caches[me]};for(var xe=0;xe<ie.rest.length;xe++)if(vt(ie.rest[xe])>ve)return{map:ie.measure.maps[xe],cache:ie.measure.caches[xe],before:!0}}function Gs(ie,ae){ae=xi(ae);var ve=vt(ae),me=ie.display.externalMeasured=new gn(ie.doc,ae,ve);me.lineN=ve;var xe=me.built=tn(ie,me);return me.text=xe.pre,qe(ie.display.lineMeasure,xe.pre),me}function pl(ie,ae,ve,me){return Fs(ie,As(ie,ae),ve,me)}function Es(ie,ae){if(ae>=ie.display.viewFrom&&ae<ie.display.viewTo)return ie.display.view[Ms(ie,ae)];var ve=ie.display.externalMeasured;if(ve&&ae>=ve.lineN&&ae<ve.lineN+ve.size)return ve}function As(ie,ae){var ve=vt(ae),me=Es(ie,ve);me&&!me.text?me=null:me&&me.changes&&(ca(ie,me,ve,Au(ie)),ie.curOp.forceUpdate=!0),me||(me=Gs(ie,ae));var xe=fa(me,ae,ve);return{line:ae,view:me,rect:null,map:xe.map,cache:xe.cache,before:xe.before,hasHeights:!1}}function Fs(ie,ae,ve,me,xe){ae.before&&(ve=-1);var _e=ve+(me||""),tt;return ae.cache.hasOwnProperty(_e)?tt=ae.cache[_e]:(ae.rect||(ae.rect=ae.view.text.getBoundingClientRect()),ae.hasHeights||(Ds(ie,ae.view,ae.rect),ae.hasHeights=!0),tt=Da(ie,ae,ve,me),tt.bogus||(ae.cache[_e]=tt)),{left:tt.left,right:tt.right,top:xe?tt.rtop:tt.top,bottom:xe?tt.rbottom:tt.bottom}}var Bl={left:0,right:0,top:0,bottom:0};function oc(ie,ae,ve){for(var me,xe,_e,tt,pt,ht,Tt=0;Tt<ie.length;Tt+=3)if(pt=ie[Tt],ht=ie[Tt+1],ae<pt?(xe=0,_e=1,tt="left"):ae<ht?(xe=ae-pt,_e=xe+1):(Tt==ie.length-3||ae==ht&&ie[Tt+3]>ae)&&(_e=ht-pt,xe=_e-1,ae>=ht&&(tt="right")),xe!=null){if(me=ie[Tt+2],pt==ht&&ve==(me.insertLeft?"left":"right")&&(tt=ve),ve=="left"&&xe==0)for(;Tt&&ie[Tt-2]==ie[Tt-3]&&ie[Tt-1].insertLeft;)me=ie[(Tt-=3)+2],tt="left";if(ve=="right"&&xe==ht-pt)for(;Tt<ie.length-3&&ie[Tt+3]==ie[Tt+4]&&!ie[Tt+5].insertLeft;)me=ie[(Tt+=3)+2],tt="right";break}return{node:me,start:xe,end:_e,collapse:tt,coverStart:pt,coverEnd:ht}}function Uu(ie,ae){var ve=Bl;if(ae=="left")for(var me=0;me<ie.length&&(ve=ie[me]).left==ve.right;me++);else for(var xe=ie.length-1;xe>=0&&(ve=ie[xe]).left==ve.right;xe--);return ve}function Da(ie,ae,ve,me){var xe=oc(ae.map,ve,me),_e=xe.node,tt=xe.start,pt=xe.end,ht=xe.collapse,Tt;if(_e.nodeType==3){for(var vn=0;vn<4;vn++){for(;tt&&_t(ae.line.text.charAt(xe.coverStart+tt));)--tt;for(;xe.coverStart+pt<xe.coverEnd&&_t(ae.line.text.charAt(xe.coverStart+pt));)++pt;if(We&&Te<9&&tt==0&&pt==xe.coverEnd-xe.coverStart?Tt=_e.parentNode.getBoundingClientRect():Tt=Uu(it(_e,tt,pt).getClientRects(),me),Tt.left||Tt.right||tt==0)break;pt=tt,tt=tt-1,ht="right"}We&&Te<11&&(Tt=zu(ie.display.measure,Tt))}else{tt>0&&(ht=me="right");var Ot;ie.options.lineWrapping&&(Ot=_e.getClientRects()).length>1?Tt=Ot[me=="right"?Ot.length-1:0]:Tt=_e.getBoundingClientRect()}if(We&&Te<9&&!tt&&(!Tt||!Tt.left&&!Tt.right)){var Wn=_e.parentNode.getClientRects()[0];Wn?Tt={left:Wn.left,right:Wn.left+uu(ie.display),top:Wn.top,bottom:Wn.bottom}:Tt=Bl}for(var Mn=Tt.top-ae.rect.top,Ui=Tt.bottom-ae.rect.top,ji=(Mn+Ui)/2,nr=ae.view.measure.heights,Er=0;Er<nr.length-1&&!(ji<nr[Er]);Er++);var Yr=Er?nr[Er-1]:0,Dr=nr[Er],io={left:(ht=="right"?Tt.right:Tt.left)-ae.rect.left,right:(ht=="left"?Tt.left:Tt.right)-ae.rect.left,top:Yr,bottom:Dr};return!Tt.left&&!Tt.right&&(io.bogus=!0),ie.options.singleCursorHeightPerLine||(io.rtop=Mn,io.rbottom=Ui),io}function zu(ie,ae){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!rr(ie))return ae;var ve=screen.logicalXDPI/screen.deviceXDPI,me=screen.logicalYDPI/screen.deviceYDPI;return{left:ae.left*ve,right:ae.right*ve,top:ae.top*me,bottom:ae.bottom*me}}function ac(ie){if(ie.measure&&(ie.measure.cache={},ie.measure.heights=null,ie.rest))for(var ae=0;ae<ie.rest.length;ae++)ie.measure.caches[ae]={}}function Cu(ie){ie.display.externalMeasure=null,$e(ie.display.lineMeasure);for(var ae=0;ae<ie.display.view.length;ae++)ac(ie.display.view[ae])}function Tu(ie){Cu(ie),ie.display.cachedCharWidth=ie.display.cachedTextHeight=ie.display.cachedPaddingH=null,ie.options.lineWrapping||(ie.display.maxLineChanged=!0),ie.display.lineNumChars=null}function ms(){return Qe&&ne?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function ws(){return Qe&&ne?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function Wa(ie){var ae=0;if(ie.widgets)for(var ve=0;ve<ie.widgets.length;++ve)ie.widgets[ve].above&&(ae+=Jo(ie.widgets[ve]));return ae}function Xa(ie,ae,ve,me,xe){if(!xe){var _e=Wa(ae);ve.top+=_e,ve.bottom+=_e}if(me=="line")return ve;me||(me="local");var tt=ar(ae);if(me=="local"?tt+=ho(ie.display):tt-=ie.display.viewOffset,me=="page"||me=="window"){var pt=ie.display.lineSpace.getBoundingClientRect();tt+=pt.top+(me=="window"?0:ws());var ht=pt.left+(me=="window"?0:ms());ve.left+=ht,ve.right+=ht}return ve.top+=tt,ve.bottom+=tt,ve}function ia(ie,ae,ve){if(ve=="div")return ae;var me=ae.left,xe=ae.top;if(ve=="page")me-=ms(),xe-=ws();else if(ve=="local"||!ve){var _e=ie.display.sizer.getBoundingClientRect();me+=_e.left,xe+=_e.top}var tt=ie.display.lineSpace.getBoundingClientRect();return{left:me-tt.left,top:xe-tt.top}}function Eo(ie,ae,ve,me,xe){return me||(me=fi(ie.doc,ae.line)),Xa(ie,me,pl(ie,me,ae.ch,xe),ve)}function Fo(ie,ae,ve,me,xe,_e){me=me||fi(ie.doc,ae.line),xe||(xe=As(ie,me));function tt(Ui,ji){var nr=Fs(ie,xe,Ui,ji?"right":"left",_e);return ji?nr.left=nr.right:nr.right=nr.left,Xa(ie,me,nr,ve)}var pt=Pn(me,ie.doc.direction),ht=ae.ch,Tt=ae.sticky;if(ht>=me.text.length?(ht=me.text.length,Tt="before"):ht<=0&&(ht=0,Tt="after"),!pt)return tt(Tt=="before"?ht-1:ht,Tt=="before");function vn(Ui,ji,nr){var Er=pt[ji],Yr=Er.level==1;return tt(nr?Ui-1:Ui,Yr!=nr)}var Ot=Vt(pt,ht,Tt),Wn=Zt,Mn=vn(ht,Ot,Tt=="before");return Wn!=null&&(Mn.other=vn(ht,Wn,Tt!="before")),Mn}function Qa(ie,ae){var ve=0;ae=Tn(ie.doc,ae),ie.options.lineWrapping||(ve=uu(ie.display)*ae.ch);var me=fi(ie.doc,ae.line),xe=ar(me)+ho(ie.display);return{left:ve,right:ve,top:xe,bottom:xe+me.height}}function La(ie,ae,ve,me,xe){var _e=zt(ie,ae,ve);return _e.xRel=xe,me&&(_e.outside=me),_e}function Fa(ie,ae,ve){var me=ie.doc;if(ve+=ie.display.viewOffset,ve<0)return La(me.first,0,null,-1,-1);var xe=Sn(me,ve),_e=me.first+me.size-1;if(xe>_e)return La(me.first+me.size-1,fi(me,_e).text.length,null,1,1);ae<0&&(ae=0);for(var tt=fi(me,xe);;){var pt=Jn(ie,tt,xe,ae,ve),ht=pi(tt,pt.ch+(pt.xRel>0||pt.outside>0?1:0));if(!ht)return pt;var Tt=ht.find(1);if(Tt.line==xe)return Tt;tt=fi(me,xe=Tt.line)}}function dr(ie,ae,ve,me){me-=Wa(ae);var xe=ae.text.length,_e=xn(function(tt){return Fs(ie,ve,tt-1).bottom<=me},xe,0);return xe=xn(function(tt){return Fs(ie,ve,tt).top>me},_e,xe),{begin:_e,end:xe}}function $s(ie,ae,ve,me){ve||(ve=As(ie,ae));var xe=Xa(ie,ae,Fs(ie,ve,me),"line").top;return dr(ie,ae,ve,xe)}function Bt(ie,ae,ve,me){return ie.bottom<=ve?!1:ie.top>ve?!0:(me?ie.left:ie.right)>ae}function Jn(ie,ae,ve,me,xe){xe-=ar(ae);var _e=As(ie,ae),tt=Wa(ae),pt=0,ht=ae.text.length,Tt=!0,vn=Pn(ae,ie.doc.direction);if(vn){var Ot=(ie.options.lineWrapping?Hu:Ql)(ie,ae,ve,_e,vn,me,xe);Tt=Ot.level!=1,pt=Tt?Ot.from:Ot.to-1,ht=Tt?Ot.to:Ot.from-1}var Wn=null,Mn=null,Ui=xn(function(Io){var Rr=Fs(ie,_e,Io);return Rr.top+=tt,Rr.bottom+=tt,Bt(Rr,me,xe,!1)?(Rr.top<=xe&&Rr.left<=me&&(Wn=Io,Mn=Rr),!0):!1},pt,ht),ji,nr,Er=!1;if(Mn){var Yr=me-Mn.left<Mn.right-me,Dr=Yr==Tt;Ui=Wn+(Dr?0:1),nr=Dr?"after":"before",ji=Yr?Mn.left:Mn.right}else{!Tt&&(Ui==ht||Ui==pt)&&Ui++,nr=Ui==0?"after":Ui==ae.text.length?"before":Fs(ie,_e,Ui-(Tt?1:0)).bottom+tt<=xe==Tt?"after":"before";var io=Fo(ie,zt(ve,Ui,nr),"line",ae,_e);ji=io.left,Er=xe<io.top?-1:xe>=io.bottom?1:0}return Ui=bn(ae.text,Ui,1),La(ve,Ui,nr,Er,me-ji)}function Ql(ie,ae,ve,me,xe,_e,tt){var pt=xn(function(Ot){var Wn=xe[Ot],Mn=Wn.level!=1;return Bt(Fo(ie,zt(ve,Mn?Wn.to:Wn.from,Mn?"before":"after"),"line",ae,me),_e,tt,!0)},0,xe.length-1),ht=xe[pt];if(pt>0){var Tt=ht.level!=1,vn=Fo(ie,zt(ve,Tt?ht.from:ht.to,Tt?"after":"before"),"line",ae,me);Bt(vn,_e,tt,!0)&&vn.top>tt&&(ht=xe[pt-1])}return ht}function Hu(ie,ae,ve,me,xe,_e,tt){var pt=dr(ie,ae,me,tt),ht=pt.begin,Tt=pt.end;/\s/.test(ae.text.charAt(Tt-1))&&Tt--;for(var vn=null,Ot=null,Wn=0;Wn<xe.length;Wn++){var Mn=xe[Wn];if(!(Mn.from>=Tt||Mn.to<=ht)){var Ui=Mn.level!=1,ji=Fs(ie,me,Ui?Math.min(Tt,Mn.to)-1:Math.max(ht,Mn.from)).right,nr=ji<_e?_e-ji+1e9:ji-_e;(!vn||Ot>nr)&&(vn=Mn,Ot=nr)}}return vn||(vn=xe[xe.length-1]),vn.from<ht&&(vn={from:ht,to:vn.to,level:vn.level}),vn.to>Tt&&(vn={from:vn.from,to:Tt,level:vn.level}),vn}var Va;function Ws(ie){if(ie.cachedTextHeight!=null)return ie.cachedTextHeight;if(Va==null){Va=nt("pre",null,"CodeMirror-line-like");for(var ae=0;ae<49;++ae)Va.appendChild(document.createTextNode("x")),Va.appendChild(nt("br"));Va.appendChild(document.createTextNode("x"))}qe(ie.measure,Va);var ve=Va.offsetHeight/50;return ve>3&&(ie.cachedTextHeight=ve),$e(ie.measure),ve||1}function uu(ie){if(ie.cachedCharWidth!=null)return ie.cachedCharWidth;var ae=nt("span","xxxxxxxxxx"),ve=nt("pre",[ae],"CodeMirror-line-like");qe(ie.measure,ve);var me=ae.getBoundingClientRect(),xe=(me.right-me.left)/10;return xe>2&&(ie.cachedCharWidth=xe),xe||10}function Au(ie){for(var ae=ie.display,ve={},me={},xe=ae.gutters.clientLeft,_e=ae.gutters.firstChild,tt=0;_e;_e=_e.nextSibling,++tt){var pt=ie.display.gutterSpecs[tt].className;ve[pt]=_e.offsetLeft+_e.clientLeft+xe,me[pt]=_e.clientWidth}return{fixedPos:ju(ae),gutterTotalWidth:ae.gutters.offsetWidth,gutterLeft:ve,gutterWidth:me,wrapperWidth:ae.wrapper.clientWidth}}function ju(ie){return ie.scroller.getBoundingClientRect().left-ie.sizer.getBoundingClientRect().left}function ba(ie){var ae=Ws(ie.display),ve=ie.options.lineWrapping,me=ve&&Math.max(5,ie.display.scroller.clientWidth/uu(ie.display)-3);return function(xe){if(Ln(ie.doc,xe))return 0;var _e=0;if(xe.widgets)for(var tt=0;tt<xe.widgets.length;tt++)xe.widgets[tt].height&&(_e+=xe.widgets[tt].height);return ve?_e+(Math.ceil(xe.text.length/me)||1)*ae:_e+ae}}function $r(ie){var ae=ie.doc,ve=ba(ie);ae.iter(function(me){var xe=ve(me);xe!=me.height&&li(me,xe)})}function cs(ie,ae,ve,me){var xe=ie.display;if(!ve&&cr(ae).getAttribute("cm-not-content")=="true")return null;var _e,tt,pt=xe.lineSpace.getBoundingClientRect();try{_e=ae.clientX-pt.left,tt=ae.clientY-pt.top}catch(Ot){return null}var ht=Fa(ie,_e,tt),Tt;if(me&&ht.xRel>0&&(Tt=fi(ie.doc,ht.line).text).length==ht.ch){var vn=At(Tt,Tt.length,ie.options.tabSize)-Tt.length;ht=zt(ht.line,Math.max(0,Math.round((_e-as(ie.display).left)/uu(ie.display))-vn))}return ht}function Ms(ie,ae){if(ae>=ie.display.viewTo||(ae-=ie.display.viewFrom,ae<0))return null;for(var ve=ie.display.view,me=0;me<ve.length;me++)if(ae-=ve[me].size,ae<0)return me}function Xo(ie,ae,ve,me){ae==null&&(ae=ie.doc.first),ve==null&&(ve=ie.doc.first+ie.doc.size),me||(me=0);var xe=ie.display;if(me&&ve<xe.viewTo&&(xe.updateLineNumbers==null||xe.updateLineNumbers>ae)&&(xe.updateLineNumbers=ae),ie.curOp.viewChanged=!0,ae>=xe.viewTo)Dn&&zi(ie.doc,ae)<xe.viewTo&&Ca(ie);else if(ve<=xe.viewFrom)Dn&&Bi(ie.doc,ve+me)>xe.viewFrom?Ca(ie):(xe.viewFrom+=me,xe.viewTo+=me);else if(ae<=xe.viewFrom&&ve>=xe.viewTo)Ca(ie);else if(ae<=xe.viewFrom){var _e=Bs(ie,ve,ve+me,1);_e?(xe.view=xe.view.slice(_e.index),xe.viewFrom=_e.lineN,xe.viewTo+=me):Ca(ie)}else if(ve>=xe.viewTo){var tt=Bs(ie,ae,ae,-1);tt?(xe.view=xe.view.slice(0,tt.index),xe.viewTo=tt.lineN):Ca(ie)}else{var pt=Bs(ie,ae,ae,-1),ht=Bs(ie,ve,ve+me,1);pt&&ht?(xe.view=xe.view.slice(0,pt.index).concat(qr(ie,pt.lineN,ht.lineN)).concat(xe.view.slice(ht.index)),xe.viewTo+=me):Ca(ie)}var Tt=xe.externalMeasured;Tt&&(ve<Tt.lineN?Tt.lineN+=me:ae<Tt.lineN+Tt.size&&(xe.externalMeasured=null))}function No(ie,ae,ve){ie.curOp.viewChanged=!0;var me=ie.display,xe=ie.display.externalMeasured;if(xe&&ae>=xe.lineN&&ae<xe.lineN+xe.size&&(me.externalMeasured=null),!(ae<me.viewFrom||ae>=me.viewTo)){var _e=me.view[Ms(ie,ae)];if(_e.node!=null){var tt=_e.changes||(_e.changes=[]);at(tt,ve)==-1&&tt.push(ve)}}}function Ca(ie){ie.display.viewFrom=ie.display.viewTo=ie.doc.first,ie.display.view=[],ie.display.viewOffset=0}function Bs(ie,ae,ve,me){var xe=Ms(ie,ae),_e,tt=ie.display.view;if(!Dn||ve==ie.doc.first+ie.doc.size)return{index:xe,lineN:ve};for(var pt=ie.display.viewFrom,ht=0;ht<xe;ht++)pt+=tt[ht].size;if(pt!=ae){if(me>0){if(xe==tt.length-1)return null;_e=pt+tt[xe].size-ae,xe++}else _e=pt-ae;ae+=_e,ve+=_e}for(;zi(ie.doc,ve)!=ve;){if(xe==(me<0?0:tt.length-1))return null;ve+=me*tt[xe-(me<0?1:0)].size,xe+=me}return{index:xe,lineN:ve}}function ma(ie,ae,ve){var me=ie.display,xe=me.view;xe.length==0||ae>=me.viewTo||ve<=me.viewFrom?(me.view=qr(ie,ae,ve),me.viewFrom=ae):(me.viewFrom>ae?me.view=qr(ie,ae,me.viewFrom).concat(me.view):me.viewFrom<ae&&(me.view=me.view.slice(Ms(ie,ae))),me.viewFrom=ae,me.viewTo<ve?me.view=me.view.concat(qr(ie,me.viewTo,ve)):me.viewTo>ve&&(me.view=me.view.slice(0,Ms(ie,ve)))),me.viewTo=ve}function Vs(ie){for(var ae=ie.display.view,ve=0,me=0;me<ae.length;me++){var xe=ae[me];!xe.hidden&&(!xe.node||xe.changes)&&++ve}return ve}function es(ie){ie.display.input.showSelection(ie.display.input.prepareSelection())}function cu(ie,ae){ae===void 0&&(ae=!0);for(var ve=ie.doc,me={},xe=me.cursors=document.createDocumentFragment(),_e=me.selection=document.createDocumentFragment(),tt=0;tt<ve.sel.ranges.length;tt++)if(!(!ae&&tt==ve.sel.primIndex)){var pt=ve.sel.ranges[tt];if(!(pt.from().line>=ie.display.viewTo||pt.to().line<ie.display.viewFrom)){var ht=pt.empty();(ht||ie.options.showCursorWhenSelecting)&&qo(ie,pt.head,xe),ht||Wo(ie,pt,_e)}}return me}function qo(ie,ae,ve){var me=Fo(ie,ae,"div",null,null,!ie.options.singleCursorHeightPerLine),xe=ve.appendChild(nt("div","\xA0","CodeMirror-cursor"));if(xe.style.left=me.left+"px",xe.style.top=me.top+"px",xe.style.height=Math.max(0,me.bottom-me.top)*ie.options.cursorHeight+"px",me.other){var _e=ve.appendChild(nt("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));_e.style.display="",_e.style.left=me.other.left+"px",_e.style.top=me.other.top+"px",_e.style.height=(me.other.bottom-me.other.top)*.85+"px"}}function ds(ie,ae){return ie.top-ae.top||ie.left-ae.left}function Wo(ie,ae,ve){var me=ie.display,xe=ie.doc,_e=document.createDocumentFragment(),tt=as(ie.display),pt=tt.left,ht=Math.max(me.sizerWidth,ka(ie)-me.sizer.offsetLeft)-tt.right,Tt=xe.direction=="ltr";function vn(Dr,io,Io,Rr){io<0&&(io=0),io=Math.round(io),Rr=Math.round(Rr),_e.appendChild(nt("div",null,"CodeMirror-selected","position: absolute; left: "+Dr+`px;
|
|
|
top: `+io+"px; width: "+(Io==null?ht-Dr:Io)+`px;
|
|
|
height: `+(Rr-io)+"px"))}function Ot(Dr,io,Io){var Rr=fi(xe,Dr),ea=Rr.text.length,is,Xs;function gs(zs,pu){return Eo(ie,zt(Dr,zs),"div",Rr,pu)}function iu(zs,pu,bl){var Hs=$s(ie,Rr,null,zs),ya=pu=="ltr"==(bl=="after")?"left":"right",ys=bl=="after"?Hs.begin:Hs.end-(/\s/.test(Rr.text.charAt(Hs.end-1))?2:1);return gs(ys,ya)[ya]}var Il=Pn(Rr,xe.direction);return Lt(Il,io||0,Io==null?ea:Io,function(zs,pu,bl,Hs){var ya=bl=="ltr",ys=gs(zs,ya?"left":"right"),rl=gs(pu-1,ya?"right":"left"),El=io==null&&zs==0,cc=Io==null&&pu==ea,ps=Hs==0,Qu=!Il||Hs==Il.length-1;if(rl.top-ys.top<=3){var Ts=(Tt?El:cc)&&ps,rf=(Tt?cc:El)&&Qu,Iu=Ts?pt:(ya?ys:rl).left,mu=rf?ht:(ya?rl:ys).right;vn(Iu,ys.top,mu-Iu,ys.bottom)}else{var ru,za,ol,Fc;ya?(ru=Tt&&El&&ps?pt:ys.left,za=Tt?ht:iu(zs,bl,"before"),ol=Tt?pt:iu(pu,bl,"after"),Fc=Tt&&cc&&Qu?ht:rl.right):(ru=Tt?iu(zs,bl,"before"):pt,za=!Tt&&El&&ps?ht:ys.right,ol=!Tt&&cc&&Qu?pt:rl.left,Fc=Tt?iu(pu,bl,"after"):ht),vn(ru,ys.top,za-ru,ys.bottom),ys.bottom<rl.top&&vn(pt,ys.bottom,null,rl.top),vn(ol,rl.top,Fc-ol,rl.bottom)}(!is||ds(ys,is)<0)&&(is=ys),ds(rl,is)<0&&(is=rl),(!Xs||ds(ys,Xs)<0)&&(Xs=ys),ds(rl,Xs)<0&&(Xs=rl)}),{start:is,end:Xs}}var Wn=ae.from(),Mn=ae.to();if(Wn.line==Mn.line)Ot(Wn.line,Wn.ch,Mn.ch);else{var Ui=fi(xe,Wn.line),ji=fi(xe,Mn.line),nr=xi(Ui)==xi(ji),Er=Ot(Wn.line,Wn.ch,nr?Ui.text.length+1:null).end,Yr=Ot(Mn.line,nr?0:null,Mn.ch).start;nr&&(Er.top<Yr.top-2?(vn(Er.right,Er.top,null,Er.bottom),vn(pt,Yr.top,Yr.left,Yr.bottom)):vn(Er.right,Er.top,Yr.left-Er.right,Er.bottom)),Er.bottom<Yr.top&&vn(pt,Er.bottom,null,Yr.top)}ve.appendChild(_e)}function la(ie){if(ie.state.focused){var ae=ie.display;clearInterval(ae.blinker);var ve=!0;ae.cursorDiv.style.visibility="",ie.options.cursorBlinkRate>0?ae.blinker=setInterval(function(){ie.hasFocus()||Gu(ie),ae.cursorDiv.style.visibility=(ve=!ve)?"":"hidden"},ie.options.cursorBlinkRate):ie.options.cursorBlinkRate<0&&(ae.cursorDiv.style.visibility="hidden")}}function ga(ie){ie.state.focused||(ie.display.input.focus(),Bo(ie))}function Ea(ie){ie.state.delayingBlurEvent=!0,setTimeout(function(){ie.state.delayingBlurEvent&&(ie.state.delayingBlurEvent=!1,Gu(ie))},100)}function Bo(ie,ae){ie.state.delayingBlurEvent&&(ie.state.delayingBlurEvent=!1),ie.options.readOnly!="nocursor"&&(ie.state.focused||(Rn(ie,"focus",ie,ae),ie.state.focused=!0,Ht(ie.display.wrapper,"CodeMirror-focused"),!ie.curOp&&ie.display.selForContextMenu!=ie.doc.sel&&(ie.display.input.reset(),Ge&&setTimeout(function(){return ie.display.input.reset(!0)},20)),ie.display.input.receivedFocus()),la(ie))}function Gu(ie,ae){ie.state.delayingBlurEvent||(ie.state.focused&&(Rn(ie,"blur",ie,ae),ie.state.focused=!1,je(ie.display.wrapper,"CodeMirror-focused")),clearInterval(ie.display.blinker),setTimeout(function(){ie.state.focused||(ie.display.shift=!1)},150))}function Vr(ie){for(var ae=ie.display,ve=ae.lineDiv.offsetTop,me=0;me<ae.view.length;me++){var xe=ae.view[me],_e=ie.options.lineWrapping,tt=void 0,pt=0;if(!xe.hidden){if(We&&Te<8){var ht=xe.node.offsetTop+xe.node.offsetHeight;tt=ht-ve,ve=ht}else{var Tt=xe.node.getBoundingClientRect();tt=Tt.bottom-Tt.top,!_e&&xe.text.firstChild&&(pt=xe.text.firstChild.getBoundingClientRect().right-Tt.left-1)}var vn=xe.line.height-tt;if((vn>.005||vn<-.005)&&(li(xe.line,tt),Qc(xe.line),xe.rest))for(var Ot=0;Ot<xe.rest.length;Ot++)Qc(xe.rest[Ot]);if(pt>ie.display.sizerWidth){var Wn=Math.ceil(pt/uu(ie.display));Wn>ie.display.maxLineLength&&(ie.display.maxLineLength=Wn,ie.display.maxLine=xe.line,ie.display.maxLineChanged=!0)}}}}function Qc(ie){if(ie.widgets)for(var ae=0;ae<ie.widgets.length;++ae){var ve=ie.widgets[ae],me=ve.node.parentNode;me&&(ve.height=me.offsetHeight)}}function jo(ie,ae,ve){var me=ve&&ve.top!=null?Math.max(0,ve.top):ie.scroller.scrollTop;me=Math.floor(me-ho(ie));var xe=ve&&ve.bottom!=null?ve.bottom:me+ie.wrapper.clientHeight,_e=Sn(ae,me),tt=Sn(ae,xe);if(ve&&ve.ensure){var pt=ve.ensure.from.line,ht=ve.ensure.to.line;pt<_e?(_e=pt,tt=Sn(ae,ar(fi(ae,pt))+ie.wrapper.clientHeight)):Math.min(ht,ae.lastLine())>=tt&&(_e=Sn(ae,ar(fi(ae,ht))-ie.wrapper.clientHeight),tt=ht)}return{from:_e,to:Math.max(tt,_e+1)}}function Lc(ie,ae){if(!Zn(ie,"scrollCursorIntoView")){var ve=ie.display,me=ve.sizer.getBoundingClientRect(),xe=null;if(ae.top+me.top<0?xe=!0:ae.bottom+me.top>(window.innerHeight||document.documentElement.clientHeight)&&(xe=!1),xe!=null&&!Nt){var _e=nt("div","\u200B",null,`position: absolute;
|
|
|
top: `+(ae.top-ve.viewOffset-ho(ie.display))+`px;
|
|
|
height: `+(ae.bottom-ae.top+Po(ie)+ve.barHeight)+`px;
|
|
|
left: `+ae.left+"px; width: "+Math.max(2,ae.right-ae.left)+"px;");ie.display.lineSpace.appendChild(_e),_e.scrollIntoView(xe),ie.display.lineSpace.removeChild(_e)}}}function Pu(ie,ae,ve,me){me==null&&(me=0);var xe;!ie.options.lineWrapping&&ae==ve&&(ae=ae.ch?zt(ae.line,ae.sticky=="before"?ae.ch-1:ae.ch,"after"):ae,ve=ae.sticky=="before"?zt(ae.line,ae.ch+1,"before"):ae);for(var _e=0;_e<5;_e++){var tt=!1,pt=Fo(ie,ae),ht=!ve||ve==ae?pt:Fo(ie,ve);xe={left:Math.min(pt.left,ht.left),top:Math.min(pt.top,ht.top)-me,right:Math.max(pt.left,ht.left),bottom:Math.max(pt.bottom,ht.bottom)+me};var Tt=Ic(ie,xe),vn=ie.doc.scrollTop,Ot=ie.doc.scrollLeft;if(Tt.scrollTop!=null&&(kl(ie,Tt.scrollTop),Math.abs(ie.doc.scrollTop-vn)>1&&(tt=!0)),Tt.scrollLeft!=null&&(_l(ie,Tt.scrollLeft),Math.abs(ie.doc.scrollLeft-Ot)>1&&(tt=!0)),!tt)break}return xe}function Jl(ie,ae){var ve=Ic(ie,ae);ve.scrollTop!=null&&kl(ie,ve.scrollTop),ve.scrollLeft!=null&&_l(ie,ve.scrollLeft)}function Ic(ie,ae){var ve=ie.display,me=Ws(ie.display);ae.top<0&&(ae.top=0);var xe=ie.curOp&&ie.curOp.scrollTop!=null?ie.curOp.scrollTop:ve.scroller.scrollTop,_e=bs(ie),tt={};ae.bottom-ae.top>_e&&(ae.bottom=ae.top+_e);var pt=ie.doc.height+na(ve),ht=ae.top<me,Tt=ae.bottom>pt-me;if(ae.top<xe)tt.scrollTop=ht?0:ae.top;else if(ae.bottom>xe+_e){var vn=Math.min(ae.top,(Tt?pt:ae.bottom)-_e);vn!=xe&&(tt.scrollTop=vn)}var Ot=ie.options.fixedGutter?0:ve.gutters.offsetWidth,Wn=ie.curOp&&ie.curOp.scrollLeft!=null?ie.curOp.scrollLeft:ve.scroller.scrollLeft-Ot,Mn=ka(ie)-ve.gutters.offsetWidth,Ui=ae.right-ae.left>Mn;return Ui&&(ae.right=ae.left+Mn),ae.left<10?tt.scrollLeft=0:ae.left<Wn?tt.scrollLeft=Math.max(0,ae.left+Ot-(Ui?0:10)):ae.right>Mn+Wn-3&&(tt.scrollLeft=ae.right+(Ui?0:10)-Mn),tt}function xc(ie,ae){ae!=null&&(Ps(ie),ie.curOp.scrollTop=(ie.curOp.scrollTop==null?ie.doc.scrollTop:ie.curOp.scrollTop)+ae)}function Pl(ie){Ps(ie);var ae=ie.getCursor();ie.curOp.scrollToPos={from:ae,to:ae,margin:ie.options.cursorScrollMargin}}function Nl(ie,ae,ve){(ae!=null||ve!=null)&&Ps(ie),ae!=null&&(ie.curOp.scrollLeft=ae),ve!=null&&(ie.curOp.scrollTop=ve)}function Vo(ie,ae){Ps(ie),ie.curOp.scrollToPos=ae}function Ps(ie){var ae=ie.curOp.scrollToPos;if(ae){ie.curOp.scrollToPos=null;var ve=Qa(ie,ae.from),me=Qa(ie,ae.to);Wu(ie,ve,me,ae.margin)}}function Wu(ie,ae,ve,me){var xe=Ic(ie,{left:Math.min(ae.left,ve.left),top:Math.min(ae.top,ve.top)-me,right:Math.max(ae.right,ve.right),bottom:Math.max(ae.bottom,ve.bottom)+me});Nl(ie,xe.scrollLeft,xe.scrollTop)}function kl(ie,ae){Math.abs(ie.doc.scrollTop-ae)<2||(ce||Ze(ie,{top:ae}),ql(ie,ae,!0),ce&&Ze(ie),sc(ie,100))}function ql(ie,ae,ve){ae=Math.max(0,Math.min(ie.display.scroller.scrollHeight-ie.display.scroller.clientHeight,ae)),!(ie.display.scroller.scrollTop==ae&&!ve)&&(ie.doc.scrollTop=ae,ie.display.scrollbars.setScrollTop(ae),ie.display.scroller.scrollTop!=ae&&(ie.display.scroller.scrollTop=ae))}function _l(ie,ae,ve,me){ae=Math.max(0,Math.min(ae,ie.display.scroller.scrollWidth-ie.display.scroller.clientWidth)),!((ve?ae==ie.doc.scrollLeft:Math.abs(ie.doc.scrollLeft-ae)<2)&&!me)&&(ie.doc.scrollLeft=ae,Ft(ie),ie.display.scroller.scrollLeft!=ae&&(ie.display.scroller.scrollLeft=ae),ie.display.scrollbars.setScrollLeft(ae))}function _o(ie){var ae=ie.display,ve=ae.gutters.offsetWidth,me=Math.round(ie.doc.height+na(ie.display));return{clientHeight:ae.scroller.clientHeight,viewHeight:ae.wrapper.clientHeight,scrollWidth:ae.scroller.scrollWidth,clientWidth:ae.scroller.clientWidth,viewWidth:ae.wrapper.clientWidth,barLeft:ie.options.fixedGutter?ve:0,docHeight:me,scrollHeight:me+Po(ie)+ae.barHeight,nativeBarWidth:ae.nativeBarWidth,gutterWidth:ve}}var $o=function(ie,ae,ve){this.cm=ve;var me=this.vert=nt("div",[nt("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),xe=this.horiz=nt("div",[nt("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");me.tabIndex=xe.tabIndex=-1,ie(me),ie(xe),Mt(me,"scroll",function(){me.clientHeight&&ae(me.scrollTop,"vertical")}),Mt(xe,"scroll",function(){xe.clientWidth&&ae(xe.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,We&&Te<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};$o.prototype.update=function(ie){var ae=ie.scrollWidth>ie.clientWidth+1,ve=ie.scrollHeight>ie.clientHeight+1,me=ie.nativeBarWidth;if(ve){this.vert.style.display="block",this.vert.style.bottom=ae?me+"px":"0";var xe=ie.viewHeight-(ae?me:0);this.vert.firstChild.style.height=Math.max(0,ie.scrollHeight-ie.clientHeight+xe)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(ae){this.horiz.style.display="block",this.horiz.style.right=ve?me+"px":"0",this.horiz.style.left=ie.barLeft+"px";var _e=ie.viewWidth-ie.barLeft-(ve?me:0);this.horiz.firstChild.style.width=Math.max(0,ie.scrollWidth-ie.clientWidth+_e)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&ie.clientHeight>0&&(me==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:ve?me:0,bottom:ae?me:0}},$o.prototype.setScrollLeft=function(ie){this.horiz.scrollLeft!=ie&&(this.horiz.scrollLeft=ie),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},$o.prototype.setScrollTop=function(ie){this.vert.scrollTop!=ie&&(this.vert.scrollTop=ie),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},$o.prototype.zeroWidthHack=function(){var ie=he&&!ot?"12px":"18px";this.horiz.style.height=this.vert.style.width=ie,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new ct,this.disableVert=new ct},$o.prototype.enableZeroWidthBar=function(ie,ae,ve){ie.style.pointerEvents="auto";function me(){var xe=ie.getBoundingClientRect(),_e=ve=="vert"?document.elementFromPoint(xe.right-1,(xe.top+xe.bottom)/2):document.elementFromPoint((xe.right+xe.left)/2,xe.bottom-1);_e!=ie?ie.style.pointerEvents="none":ae.set(1e3,me)}ae.set(1e3,me)},$o.prototype.clear=function(){var ie=this.horiz.parentNode;ie.removeChild(this.horiz),ie.removeChild(this.vert)};var Ta=function(){};Ta.prototype.update=function(){return{bottom:0,right:0}},Ta.prototype.setScrollLeft=function(){},Ta.prototype.setScrollTop=function(){},Ta.prototype.clear=function(){};function hs(ie,ae){ae||(ae=_o(ie));var ve=ie.display.barWidth,me=ie.display.barHeight;ts(ie,ae);for(var xe=0;xe<4&&ve!=ie.display.barWidth||me!=ie.display.barHeight;xe++)ve!=ie.display.barWidth&&ie.options.lineWrapping&&Vr(ie),ts(ie,_o(ie)),ve=ie.display.barWidth,me=ie.display.barHeight}function ts(ie,ae){var ve=ie.display,me=ve.scrollbars.update(ae);ve.sizer.style.paddingRight=(ve.barWidth=me.right)+"px",ve.sizer.style.paddingBottom=(ve.barHeight=me.bottom)+"px",ve.heightForcer.style.borderBottom=me.bottom+"px solid transparent",me.right&&me.bottom?(ve.scrollbarFiller.style.display="block",ve.scrollbarFiller.style.height=me.bottom+"px",ve.scrollbarFiller.style.width=me.right+"px"):ve.scrollbarFiller.style.display="",me.bottom&&ie.options.coverGutterNextToScrollbar&&ie.options.fixedGutter?(ve.gutterFiller.style.display="block",ve.gutterFiller.style.height=me.bottom+"px",ve.gutterFiller.style.width=ae.gutterWidth+"px"):ve.gutterFiller.style.display=""}var ml={native:$o,null:Ta};function vl(ie){ie.display.scrollbars&&(ie.display.scrollbars.clear(),ie.display.scrollbars.addClass&&je(ie.display.wrapper,ie.display.scrollbars.addClass)),ie.display.scrollbars=new ml[ie.options.scrollbarStyle](function(ae){ie.display.wrapper.insertBefore(ae,ie.display.scrollbarFiller),Mt(ae,"mousedown",function(){ie.state.focused&&setTimeout(function(){return ie.display.input.focus()},0)}),ae.setAttribute("cm-not-content","true")},function(ae,ve){ve=="horizontal"?_l(ie,ae):kl(ie,ae)},ie),ie.display.scrollbars.addClass&&Ht(ie.display.wrapper,ie.display.scrollbars.addClass)}var yl=0;function el(ie){ie.curOp={cm:ie,viewChanged:!1,startHeight:ie.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:++yl},Ga(ie.curOp)}function Ul(ie){var ae=ie.curOp;ae&&us(ae,function(ve){for(var me=0;me<ve.ops.length;me++)ve.ops[me].cm.curOp=null;dd(ve)})}function dd(ie){for(var ae=ie.ops,ve=0;ve<ae.length;ve++)mh(ae[ve]);for(var me=0;me<ae.length;me++)vh(ae[me]);for(var xe=0;xe<ae.length;xe++)yh(ae[xe]);for(var _e=0;_e<ae.length;_e++)Ja(ae[_e]);for(var tt=0;tt<ae.length;tt++)Vu(ae[tt])}function mh(ie){var ae=ie.cm,ve=ae.display;hd(ae),ie.updateMaxLine&&Lr(ae),ie.mustUpdate=ie.viewChanged||ie.forceUpdate||ie.scrollTop!=null||ie.scrollToPos&&(ie.scrollToPos.from.line<ve.viewFrom||ie.scrollToPos.to.line>=ve.viewTo)||ve.maxLineChanged&&ae.options.lineWrapping,ie.update=ie.mustUpdate&&new Yu(ae,ie.mustUpdate&&{top:ie.scrollTop,ensure:ie.scrollToPos},ie.forceUpdate)}function vh(ie){ie.updatedDisplay=ie.mustUpdate&&we(ie.cm,ie.update)}function yh(ie){var ae=ie.cm,ve=ae.display;ie.updatedDisplay&&Vr(ae),ie.barMeasure=_o(ae),ve.maxLineChanged&&!ae.options.lineWrapping&&(ie.adjustWidthTo=pl(ae,ve.maxLine,ve.maxLine.text.length).left+3,ae.display.sizerWidth=ie.adjustWidthTo,ie.barMeasure.scrollWidth=Math.max(ve.scroller.clientWidth,ve.sizer.offsetLeft+ie.adjustWidthTo+Po(ae)+ae.display.barWidth),ie.maxScrollLeft=Math.max(0,ve.sizer.offsetLeft+ie.adjustWidthTo-ka(ae))),(ie.updatedDisplay||ie.selectionChanged)&&(ie.preparedSelection=ve.input.prepareSelection())}function Ja(ie){var ae=ie.cm;ie.adjustWidthTo!=null&&(ae.display.sizer.style.minWidth=ie.adjustWidthTo+"px",ie.maxScrollLeft<ae.doc.scrollLeft&&_l(ae,Math.min(ae.display.scroller.scrollLeft,ie.maxScrollLeft),!0),ae.display.maxLineChanged=!1);var ve=ie.focus&&ie.focus==It();ie.preparedSelection&&ae.display.input.showSelection(ie.preparedSelection,ve),(ie.updatedDisplay||ie.startHeight!=ae.doc.height)&&hs(ae,ie.barMeasure),ie.updatedDisplay&&wt(ae,ie.barMeasure),ie.selectionChanged&&la(ae),ae.state.focused&&ie.updateInput&&ae.display.input.reset(ie.typing),ve&&ga(ie.cm)}function Vu(ie){var ae=ie.cm,ve=ae.display,me=ae.doc;if(ie.updatedDisplay&&He(ae,ie.update),ve.wheelStartX!=null&&(ie.scrollTop!=null||ie.scrollLeft!=null||ie.scrollToPos)&&(ve.wheelStartX=ve.wheelStartY=null),ie.scrollTop!=null&&ql(ae,ie.scrollTop,ie.forceScroll),ie.scrollLeft!=null&&_l(ae,ie.scrollLeft,!0,!0),ie.scrollToPos){var xe=Pu(ae,Tn(me,ie.scrollToPos.from),Tn(me,ie.scrollToPos.to),ie.scrollToPos.margin);Lc(ae,xe)}var _e=ie.maybeHiddenMarkers,tt=ie.maybeUnhiddenMarkers;if(_e)for(var pt=0;pt<_e.length;++pt)_e[pt].lines.length||Rn(_e[pt],"hide");if(tt)for(var ht=0;ht<tt.length;++ht)tt[ht].lines.length&&Rn(tt[ht],"unhide");ve.wrapper.offsetHeight&&(me.scrollTop=ae.display.scroller.scrollTop),ie.changeObjs&&Rn(ae,"changes",ae,ie.changeObjs),ie.update&&ie.update.finish()}function da(ie,ae){if(ie.curOp)return ae();el(ie);try{return ae()}finally{Ul(ie)}}function vs(ie,ae){return function(){if(ie.curOp)return ae.apply(ie,arguments);el(ie);try{return ae.apply(ie,arguments)}finally{Ul(ie)}}}function Ns(ie){return function(){if(this.curOp)return ie.apply(this,arguments);el(this);try{return ie.apply(this,arguments)}finally{Ul(this)}}}function Cs(ie){return function(){var ae=this.cm;if(!ae||ae.curOp)return ie.apply(this,arguments);el(ae);try{return ie.apply(this,arguments)}finally{Ul(ae)}}}function sc(ie,ae){ie.doc.highlightFrontier<ie.display.viewTo&&ie.state.highlight.set(ae,Qt(Rs,ie))}function Rs(ie){var ae=ie.doc;if(!(ae.highlightFrontier>=ie.display.viewTo)){var ve=+new Date+ie.options.workTime,me=ro(ie,ae.highlightFrontier),xe=[];ae.iter(me.line,Math.min(ae.first+ae.size,ie.display.viewTo+500),function(_e){if(me.line>=ie.display.viewFrom){var tt=_e.styles,pt=_e.text.length>ie.options.maxHighlightLength?gi(ae.mode,me.state):null,ht=Kt(ie,_e,me,!0);pt&&(me.state=pt),_e.styles=ht.styles;var Tt=_e.styleClasses,vn=ht.classes;vn?_e.styleClasses=vn:Tt&&(_e.styleClasses=null);for(var Ot=!tt||tt.length!=_e.styles.length||Tt!=vn&&(!Tt||!vn||Tt.bgClass!=vn.bgClass||Tt.textClass!=vn.textClass),Wn=0;!Ot&&Wn<tt.length;++Wn)Ot=tt[Wn]!=_e.styles[Wn];Ot&&xe.push(me.line),_e.stateAfter=me.save(),me.nextLine()}else _e.text.length<=ie.options.maxHighlightLength&&mn(ie,_e.text,me),_e.stateAfter=me.line%5==0?me.save():null,me.nextLine();if(+new Date>ve)return sc(ie,ie.options.workDelay),!0}),ae.highlightFrontier=me.line,ae.modeFrontier=Math.max(ae.modeFrontier,me.line),xe.length&&da(ie,function(){for(var _e=0;_e<xe.length;_e++)No(ie,xe[_e],"text")})}}var Yu=function(ie,ae,ve){var me=ie.display;this.viewport=ae,this.visible=jo(me,ie.doc,ae),this.editorIsHidden=!me.wrapper.offsetWidth,this.wrapperHeight=me.wrapper.clientHeight,this.wrapperWidth=me.wrapper.clientWidth,this.oldDisplayWidth=ka(ie),this.force=ve,this.dims=Au(ie),this.events=[]};Yu.prototype.signal=function(ie,ae){Yn(ie,ae)&&this.events.push(arguments)},Yu.prototype.finish=function(){for(var ie=0;ie<this.events.length;ie++)Rn.apply(null,this.events[ie])};function hd(ie){var ae=ie.display;!ae.scrollbarsClipped&&ae.scroller.offsetWidth&&(ae.nativeBarWidth=ae.scroller.offsetWidth-ae.scroller.clientWidth,ae.heightForcer.style.height=Po(ie)+"px",ae.sizer.style.marginBottom=-ae.nativeBarWidth+"px",ae.sizer.style.borderRightWidth=Po(ie)+"px",ae.scrollbarsClipped=!0)}function fd(ie){if(ie.hasFocus())return null;var ae=It();if(!ae||!bt(ie.display.lineDiv,ae))return null;var ve={activeElt:ae};if(window.getSelection){var me=window.getSelection();me.anchorNode&&me.extend&&bt(ie.display.lineDiv,me.anchorNode)&&(ve.anchorNode=me.anchorNode,ve.anchorOffset=me.anchorOffset,ve.focusNode=me.focusNode,ve.focusOffset=me.focusOffset)}return ve}function tl(ie){if(!(!ie||!ie.activeElt||ie.activeElt==It())&&(ie.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(ie.activeElt.nodeName)&&ie.anchorNode&&bt(document.body,ie.anchorNode)&&bt(document.body,ie.focusNode))){var ae=window.getSelection(),ve=document.createRange();ve.setEnd(ie.anchorNode,ie.anchorOffset),ve.collapse(!1),ae.removeAllRanges(),ae.addRange(ve),ae.extend(ie.focusNode,ie.focusOffset)}}function we(ie,ae){var ve=ie.display,me=ie.doc;if(ae.editorIsHidden)return Ca(ie),!1;if(!ae.force&&ae.visible.from>=ve.viewFrom&&ae.visible.to<=ve.viewTo&&(ve.updateLineNumbers==null||ve.updateLineNumbers>=ve.viewTo)&&ve.renderedView==ve.view&&Vs(ie)==0)return!1;Xt(ie)&&(Ca(ie),ae.dims=Au(ie));var xe=me.first+me.size,_e=Math.max(ae.visible.from-ie.options.viewportMargin,me.first),tt=Math.min(xe,ae.visible.to+ie.options.viewportMargin);ve.viewFrom<_e&&_e-ve.viewFrom<20&&(_e=Math.max(me.first,ve.viewFrom)),ve.viewTo>tt&&ve.viewTo-tt<20&&(tt=Math.min(xe,ve.viewTo)),Dn&&(_e=zi(ie.doc,_e),tt=Bi(ie.doc,tt));var pt=_e!=ve.viewFrom||tt!=ve.viewTo||ve.lastWrapHeight!=ae.wrapperHeight||ve.lastWrapWidth!=ae.wrapperWidth;ma(ie,_e,tt),ve.viewOffset=ar(fi(ie.doc,ve.viewFrom)),ie.display.mover.style.top=ve.viewOffset+"px";var ht=Vs(ie);if(!pt&&ht==0&&!ae.force&&ve.renderedView==ve.view&&(ve.updateLineNumbers==null||ve.updateLineNumbers>=ve.viewTo))return!1;var Tt=fd(ie);return ht>4&&(ve.lineDiv.style.display="none"),rt(ie,ve.updateLineNumbers,ae.dims),ht>4&&(ve.lineDiv.style.display=""),ve.renderedView=ve.view,tl(Tt),$e(ve.cursorDiv),$e(ve.selectionDiv),ve.gutters.style.height=ve.sizer.style.minHeight=0,pt&&(ve.lastWrapHeight=ae.wrapperHeight,ve.lastWrapWidth=ae.wrapperWidth,sc(ie,400)),ve.updateLineNumbers=null,!0}function He(ie,ae){for(var ve=ae.viewport,me=!0;;me=!1){if(!me||!ie.options.lineWrapping||ae.oldDisplayWidth==ka(ie)){if(ve&&ve.top!=null&&(ve={top:Math.min(ie.doc.height+na(ie.display)-bs(ie),ve.top)}),ae.visible=jo(ie.display,ie.doc,ve),ae.visible.from>=ie.display.viewFrom&&ae.visible.to<=ie.display.viewTo)break}else me&&(ae.visible=jo(ie.display,ie.doc,ve));if(!we(ie,ae))break;Vr(ie);var xe=_o(ie);es(ie),hs(ie,xe),wt(ie,xe),ae.force=!1}ae.signal(ie,"update",ie),(ie.display.viewFrom!=ie.display.reportedViewFrom||ie.display.viewTo!=ie.display.reportedViewTo)&&(ae.signal(ie,"viewportChange",ie,ie.display.viewFrom,ie.display.viewTo),ie.display.reportedViewFrom=ie.display.viewFrom,ie.display.reportedViewTo=ie.display.viewTo)}function Ze(ie,ae){var ve=new Yu(ie,ae);if(we(ie,ve)){Vr(ie),He(ie,ve);var me=_o(ie);es(ie),hs(ie,me),wt(ie,me),ve.finish()}}function rt(ie,ae,ve){var me=ie.display,xe=ie.options.lineNumbers,_e=me.lineDiv,tt=_e.firstChild;function pt(Ui){var ji=Ui.nextSibling;return Ge&&he&&ie.display.currentWheelTarget==Ui?Ui.style.display="none":Ui.parentNode.removeChild(Ui),ji}for(var ht=me.view,Tt=me.viewFrom,vn=0;vn<ht.length;vn++){var Ot=ht[vn];if(!Ot.hidden)if(!Ot.node||Ot.node.parentNode!=_e){var Wn=co(ie,Ot,Tt,ve);_e.insertBefore(Wn,tt)}else{for(;tt!=Ot.node;)tt=pt(tt);var Mn=xe&&ae!=null&&ae<=Tt&&Ot.lineNumber;Ot.changes&&(at(Ot.changes,"gutter")>-1&&(Mn=!1),ca(ie,Ot,Tt,ve)),Mn&&($e(Ot.lineNumber),Ot.lineNumber.appendChild(document.createTextNode(ki(ie.options,Tt)))),tt=Ot.node.nextSibling}Tt+=Ot.size}for(;tt;)tt=pt(tt)}function xt(ie){var ae=ie.gutters.offsetWidth;ie.sizer.style.marginLeft=ae+"px"}function wt(ie,ae){ie.display.sizer.style.minHeight=ae.docHeight+"px",ie.display.heightForcer.style.top=ae.docHeight+"px",ie.display.gutters.style.height=ae.docHeight+ie.display.barHeight+Po(ie)+"px"}function Ft(ie){var ae=ie.display,ve=ae.view;if(!(!ae.alignWidgets&&(!ae.gutters.firstChild||!ie.options.fixedGutter))){for(var me=ju(ae)-ae.scroller.scrollLeft+ie.doc.scrollLeft,xe=ae.gutters.offsetWidth,_e=me+"px",tt=0;tt<ve.length;tt++)if(!ve[tt].hidden){ie.options.fixedGutter&&(ve[tt].gutter&&(ve[tt].gutter.style.left=_e),ve[tt].gutterBackground&&(ve[tt].gutterBackground.style.left=_e));var pt=ve[tt].alignable;if(pt)for(var ht=0;ht<pt.length;ht++)pt[ht].style.left=_e}ie.options.fixedGutter&&(ae.gutters.style.left=me+xe+"px")}}function Xt(ie){if(!ie.options.lineNumbers)return!1;var ae=ie.doc,ve=ki(ie.options,ae.first+ae.size-1),me=ie.display;if(ve.length!=me.lineNumChars){var xe=me.measure.appendChild(nt("div",[nt("div",ve)],"CodeMirror-linenumber CodeMirror-gutter-elt")),_e=xe.firstChild.offsetWidth,tt=xe.offsetWidth-_e;return me.lineGutter.style.width="",me.lineNumInnerWidth=Math.max(_e,me.lineGutter.offsetWidth-tt)+1,me.lineNumWidth=me.lineNumInnerWidth+tt,me.lineNumChars=me.lineNumInnerWidth?ve.length:-1,me.lineGutter.style.width=me.lineNumWidth+"px",xt(ie.display),!0}return!1}function Un(ie,ae){for(var ve=[],me=!1,xe=0;xe<ie.length;xe++){var _e=ie[xe],tt=null;if(typeof _e!="string"&&(tt=_e.style,_e=_e.className),_e=="CodeMirror-linenumbers")if(ae)me=!0;else continue;ve.push({className:_e,style:tt})}return ae&&!me&&ve.push({className:"CodeMirror-linenumbers",style:null}),ve}function Gn(ie){var ae=ie.gutters,ve=ie.gutterSpecs;$e(ae),ie.lineGutter=null;for(var me=0;me<ve.length;++me){var xe=ve[me],_e=xe.className,tt=xe.style,pt=ae.appendChild(nt("div",null,"CodeMirror-gutter "+_e));tt&&(pt.style.cssText=tt),_e=="CodeMirror-linenumbers"&&(ie.lineGutter=pt,pt.style.width=(ie.lineNumWidth||1)+"px")}ae.style.display=ve.length?"":"none",xt(ie)}function En(ie){Gn(ie.display),Xo(ie),Ft(ie)}function si(ie,ae,ve,me){var xe=this;this.input=ve,xe.scrollbarFiller=nt("div",null,"CodeMirror-scrollbar-filler"),xe.scrollbarFiller.setAttribute("cm-not-content","true"),xe.gutterFiller=nt("div",null,"CodeMirror-gutter-filler"),xe.gutterFiller.setAttribute("cm-not-content","true"),xe.lineDiv=dt("div",null,"CodeMirror-code"),xe.selectionDiv=nt("div",null,null,"position: relative; z-index: 1"),xe.cursorDiv=nt("div",null,"CodeMirror-cursors"),xe.measure=nt("div",null,"CodeMirror-measure"),xe.lineMeasure=nt("div",null,"CodeMirror-measure"),xe.lineSpace=dt("div",[xe.measure,xe.lineMeasure,xe.selectionDiv,xe.cursorDiv,xe.lineDiv],null,"position: relative; outline: none");var _e=dt("div",[xe.lineSpace],"CodeMirror-lines");xe.mover=nt("div",[_e],null,"position: relative"),xe.sizer=nt("div",[xe.mover],"CodeMirror-sizer"),xe.sizerWidth=null,xe.heightForcer=nt("div",null,null,"position: absolute; height: "+rn+"px; width: 1px;"),xe.gutters=nt("div",null,"CodeMirror-gutters"),xe.lineGutter=null,xe.scroller=nt("div",[xe.sizer,xe.heightForcer,xe.gutters],"CodeMirror-scroll"),xe.scroller.setAttribute("tabIndex","-1"),xe.wrapper=nt("div",[xe.scrollbarFiller,xe.gutterFiller,xe.scroller],"CodeMirror"),We&&Te<8&&(xe.gutters.style.zIndex=-1,xe.scroller.style.paddingRight=0),!Ge&&!(ce&&te)&&(xe.scroller.draggable=!0),ie&&(ie.appendChild?ie.appendChild(xe.wrapper):ie(xe.wrapper)),xe.viewFrom=xe.viewTo=ae.first,xe.reportedViewFrom=xe.reportedViewTo=ae.first,xe.view=[],xe.renderedView=null,xe.externalMeasured=null,xe.viewOffset=0,xe.lastWrapHeight=xe.lastWrapWidth=0,xe.updateLineNumbers=null,xe.nativeBarWidth=xe.barHeight=xe.barWidth=0,xe.scrollbarsClipped=!1,xe.lineNumWidth=xe.lineNumInnerWidth=xe.lineNumChars=null,xe.alignWidgets=!1,xe.cachedCharWidth=xe.cachedTextHeight=xe.cachedPaddingH=null,xe.maxLine=null,xe.maxLineLength=0,xe.maxLineChanged=!1,xe.wheelDX=xe.wheelDY=xe.wheelStartX=xe.wheelStartY=null,xe.shift=!1,xe.selForContextMenu=null,xe.activeTouch=null,xe.gutterSpecs=Un(me.gutters,me.lineNumbers),Gn(xe),ve.init(xe)}var ni=0,An=null;We?An=-.53:ce?An=15:Qe?An=-.7:yt&&(An=-1/3);function no(ie){var ae=ie.wheelDeltaX,ve=ie.wheelDeltaY;return ae==null&&ie.detail&&ie.axis==ie.HORIZONTAL_AXIS&&(ae=ie.detail),ve==null&&ie.detail&&ie.axis==ie.VERTICAL_AXIS?ve=ie.detail:ve==null&&(ve=ie.wheelDelta),{x:ae,y:ve}}function wo(ie){var ae=no(ie);return ae.x*=An,ae.y*=An,ae}function Uo(ie,ae){var ve=no(ae),me=ve.x,xe=ve.y,_e=ie.display,tt=_e.scroller,pt=tt.scrollWidth>tt.clientWidth,ht=tt.scrollHeight>tt.clientHeight;if(me&&pt||xe&&ht){if(xe&&he&&Ge){e:for(var Tt=ae.target,vn=_e.view;Tt!=tt;Tt=Tt.parentNode)for(var Ot=0;Ot<vn.length;Ot++)if(vn[Ot].node==Tt){ie.display.currentWheelTarget=Tt;break e}}if(me&&!ce&&!Ye&&An!=null){xe&&ht&&kl(ie,Math.max(0,tt.scrollTop+xe*An)),_l(ie,Math.max(0,tt.scrollLeft+me*An)),(!xe||xe&&ht)&&vi(ae),_e.wheelStartX=null;return}if(xe&&An!=null){var Wn=xe*An,Mn=ie.doc.scrollTop,Ui=Mn+_e.wrapper.clientHeight;Wn<0?Mn=Math.max(0,Mn+Wn-50):Ui=Math.min(ie.doc.height,Ui+Wn+50),Ze(ie,{top:Mn,bottom:Ui})}ni<20&&(_e.wheelStartX==null?(_e.wheelStartX=tt.scrollLeft,_e.wheelStartY=tt.scrollTop,_e.wheelDX=me,_e.wheelDY=xe,setTimeout(function(){if(_e.wheelStartX!=null){var ji=tt.scrollLeft-_e.wheelStartX,nr=tt.scrollTop-_e.wheelStartY,Er=nr&&_e.wheelDY&&nr/_e.wheelDY||ji&&_e.wheelDX&&ji/_e.wheelDX;_e.wheelStartX=_e.wheelStartY=null,Er&&(An=(An*ni+Er)/(ni+1),++ni)}},200)):(_e.wheelDX+=me,_e.wheelDY+=xe))}}var Mr=function(ie,ae){this.ranges=ie,this.primIndex=ae};Mr.prototype.primary=function(){return this.ranges[this.primIndex]},Mr.prototype.equals=function(ie){if(ie==this)return!0;if(ie.primIndex!=this.primIndex||ie.ranges.length!=this.ranges.length)return!1;for(var ae=0;ae<this.ranges.length;ae++){var ve=this.ranges[ae],me=ie.ranges[ae];if(!oi(ve.anchor,me.anchor)||!oi(ve.head,me.head))return!1}return!0},Mr.prototype.deepCopy=function(){for(var ie=[],ae=0;ae<this.ranges.length;ae++)ie[ae]=new oo(qt(this.ranges[ae].anchor),qt(this.ranges[ae].head));return new Mr(ie,this.primIndex)},Mr.prototype.somethingSelected=function(){for(var ie=0;ie<this.ranges.length;ie++)if(!this.ranges[ie].empty())return!0;return!1},Mr.prototype.contains=function(ie,ae){ae||(ae=ie);for(var ve=0;ve<this.ranges.length;ve++){var me=this.ranges[ve];if(wn(ae,me.from())>=0&&wn(ie,me.to())<=0)return ve}return-1};var oo=function(ie,ae){this.anchor=ie,this.head=ae};oo.prototype.from=function(){return Mi(this.anchor,this.head)},oo.prototype.to=function(){return Be(this.anchor,this.head)},oo.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function fo(ie,ae,ve){var me=ie&&ie.options.selectionsMayTouch,xe=ae[ve];ae.sort(function(Wn,Mn){return wn(Wn.from(),Mn.from())}),ve=at(ae,xe);for(var _e=1;_e<ae.length;_e++){var tt=ae[_e],pt=ae[_e-1],ht=wn(pt.to(),tt.from());if(me&&!tt.empty()?ht>0:ht>=0){var Tt=Mi(pt.from(),tt.from()),vn=Be(pt.to(),tt.to()),Ot=pt.empty()?tt.from()==tt.head:pt.from()==pt.head;_e<=ve&&--ve,ae.splice(--_e,2,new oo(Ot?vn:Tt,Ot?Tt:vn))}}return new Mr(ae,ve)}function Aa(ie,ae){return new Mr([new oo(ie,ae||ie)],0)}function Pa(ie){return ie.text?zt(ie.from.line+ie.text.length-1,kt(ie.text).length+(ie.text.length==1?ie.from.ch:0)):ie.to}function vr(ie,ae){if(wn(ie,ae.from)<0)return ie;if(wn(ie,ae.to)<=0)return Pa(ae);var ve=ie.line+ae.text.length-(ae.to.line-ae.from.line)-1,me=ie.ch;return ie.line==ae.to.line&&(me+=Pa(ae).ch-ae.to.ch),zt(ve,me)}function Ia(ie,ae){for(var ve=[],me=0;me<ie.sel.ranges.length;me++){var xe=ie.sel.ranges[me];ve.push(new oo(vr(xe.anchor,ae),vr(xe.head,ae)))}return fo(ie.cm,ve,ie.sel.primIndex)}function ns(ie,ae,ve){return ie.line==ae.line?zt(ve.line,ie.ch-ae.ch+ve.ch):zt(ve.line+(ie.line-ae.line),ie.ch)}function Sa(ie,ae,ve){for(var me=[],xe=zt(ie.first,0),_e=xe,tt=0;tt<ae.length;tt++){var pt=ae[tt],ht=ns(pt.from,xe,_e),Tt=ns(Pa(pt),xe,_e);if(xe=pt.to,_e=Tt,ve=="around"){var vn=ie.sel.ranges[tt],Ot=wn(vn.head,vn.anchor)<0;me[tt]=new oo(Ot?Tt:ht,Ot?ht:Tt)}else me[tt]=new oo(ht,ht)}return new Mr(me,ie.sel.primIndex)}function eo(ie){ie.doc.mode=Jt(ie.options,ie.doc.modeOption),nl(ie)}function nl(ie){ie.doc.iter(function(ae){ae.stateAfter&&(ae.stateAfter=null),ae.styles&&(ae.styles=null)}),ie.doc.modeFrontier=ie.doc.highlightFrontier=ie.doc.first,sc(ie,100),ie.state.modeGen++,ie.curOp&&Xo(ie)}function _a(ie,ae){return ae.from.ch==0&&ae.to.ch==0&&kt(ae.text)==""&&(!ie.cm||ie.cm.options.wholeLineUpdateBefore)}function Ro(ie,ae,ve,me){function xe(Yr){return ve?ve[Yr]:null}function _e(Yr,Dr,io){Hr(Yr,Dr,io,me),pr(Yr,"change",Yr,ae)}function tt(Yr,Dr){for(var io=[],Io=Yr;Io<Dr;++Io)io.push(new Wr(Tt[Io],xe(Io),me));return io}var pt=ae.from,ht=ae.to,Tt=ae.text,vn=fi(ie,pt.line),Ot=fi(ie,ht.line),Wn=kt(Tt),Mn=xe(Tt.length-1),Ui=ht.line-pt.line;if(ae.full)ie.insert(0,tt(0,Tt.length)),ie.remove(Tt.length,ie.size-Tt.length);else if(_a(ie,ae)){var ji=tt(0,Tt.length-1);_e(Ot,Ot.text,Mn),Ui&&ie.remove(pt.line,Ui),ji.length&&ie.insert(pt.line,ji)}else if(vn==Ot)if(Tt.length==1)_e(vn,vn.text.slice(0,pt.ch)+Wn+vn.text.slice(ht.ch),Mn);else{var nr=tt(1,Tt.length-1);nr.push(new Wr(Wn+vn.text.slice(ht.ch),Mn,me)),_e(vn,vn.text.slice(0,pt.ch)+Tt[0],xe(0)),ie.insert(pt.line+1,nr)}else if(Tt.length==1)_e(vn,vn.text.slice(0,pt.ch)+Tt[0]+Ot.text.slice(ht.ch),xe(0)),ie.remove(pt.line+1,Ui);else{_e(vn,vn.text.slice(0,pt.ch)+Tt[0],xe(0)),_e(Ot,Wn+Ot.text.slice(ht.ch),Mn);var Er=tt(1,Tt.length-1);Ui>1&&ie.remove(pt.line+1,Ui-1),ie.insert(pt.line+1,Er)}pr(ie,"change",ie,ae)}function ko(ie,ae,ve){function me(xe,_e,tt){if(xe.linked)for(var pt=0;pt<xe.linked.length;++pt){var ht=xe.linked[pt];if(ht.doc!=_e){var Tt=tt&&ht.sharedHist;ve&&!Tt||(ae(ht.doc,Tt),me(ht.doc,xe,Tt))}}}me(ie,null,!0)}function aa(ie,ae){if(ae.cm)throw new Error("This document is already in use.");ie.doc=ae,ae.cm=ie,$r(ie),eo(ie),qa(ie),ie.options.lineWrapping||Lr(ie),ie.options.mode=ae.modeOption,Xo(ie)}function qa(ie){(ie.doc.direction=="rtl"?Ht:je)(ie.display.lineDiv,"CodeMirror-rtl")}function Os(ie){da(ie,function(){qa(ie),Xo(ie)})}function Ys(ie){this.done=[],this.undone=[],this.undoDepth=1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=ie||1}function Ll(ie,ae){var ve={from:qt(ae.from),to:Pa(ae),text:on(ie,ae.from,ae.to)};return du(ie,ve,ae.from.line,ae.to.line+1),ko(ie,function(me){return du(me,ve,ae.from.line,ae.to.line+1)},!0),ve}function Xn(ie){for(;ie.length;){var ae=kt(ie);if(ae.ranges)ie.pop();else break}}function il(ie,ae){if(ae)return Xn(ie.done),kt(ie.done);if(ie.done.length&&!kt(ie.done).ranges)return kt(ie.done);if(ie.done.length>1&&!ie.done[ie.done.length-2].ranges)return ie.done.pop(),kt(ie.done)}function zl(ie,ae,ve,me){var xe=ie.history;xe.undone.length=0;var _e=+new Date,tt,pt;if((xe.lastOp==me||xe.lastOrigin==ae.origin&&ae.origin&&(ae.origin.charAt(0)=="+"&&xe.lastModTime>_e-(ie.cm?ie.cm.options.historyEventDelay:500)||ae.origin.charAt(0)=="*"))&&(tt=il(xe,xe.lastOp==me)))pt=kt(tt.changes),wn(ae.from,ae.to)==0&&wn(ae.from,pt.to)==0?pt.to=Pa(ae):tt.changes.push(Ll(ie,ae));else{var ht=kt(xe.done);for((!ht||!ht.ranges)&&$l(ie.sel,xe.done),tt={changes:[Ll(ie,ae)],generation:xe.generation},xe.done.push(tt);xe.done.length>xe.undoDepth;)xe.done.shift(),xe.done[0].ranges||xe.done.shift()}xe.done.push(ve),xe.generation=++xe.maxGeneration,xe.lastModTime=xe.lastSelTime=_e,xe.lastOp=xe.lastSelOp=me,xe.lastOrigin=xe.lastSelOrigin=ae.origin,pt||Rn(ie,"historyAdded")}function ti(ie,ae,ve,me){var xe=ae.charAt(0);return xe=="*"||xe=="+"&&ve.ranges.length==me.ranges.length&&ve.somethingSelected()==me.somethingSelected()&&new Date-ie.history.lastSelTime<=(ie.cm?ie.cm.options.historyEventDelay:500)}function Ks(ie,ae,ve,me){var xe=ie.history,_e=me&&me.origin;ve==xe.lastSelOp||_e&&xe.lastSelOrigin==_e&&(xe.lastModTime==xe.lastSelTime&&xe.lastOrigin==_e||ti(ie,_e,kt(xe.done),ae))?xe.done[xe.done.length-1]=ae:$l(ae,xe.done),xe.lastSelTime=+new Date,xe.lastSelOrigin=_e,xe.lastSelOp=ve,me&&me.clearRedo!==!1&&Xn(xe.undone)}function $l(ie,ae){var ve=kt(ae);ve&&ve.ranges&&ve.equals(ie)||ae.push(ie)}function du(ie,ae,ve,me){var xe=ae["spans_"+ie.id],_e=0;ie.iter(Math.max(ie.first,ve),Math.min(ie.first+ie.size,me),function(tt){tt.markedSpans&&((xe||(xe=ae["spans_"+ie.id]={}))[_e]=tt.markedSpans),++_e})}function ks(ie){if(!ie)return null;for(var ae,ve=0;ve<ie.length;++ve)ie[ve].marker.explicitlyCleared?ae||(ae=ie.slice(0,ve)):ae&&ae.push(ie[ve]);return ae?ae.length?ae:null:ie}function $a(ie,ae){var ve=ae["spans_"+ie.id];if(!ve)return null;for(var me=[],xe=0;xe<ae.text.length;++xe)me.push(ks(ve[xe]));return me}function Hl(ie,ae){var ve=$a(ie,ae),me=bo(ie,ae);if(!ve)return me;if(!me)return ve;for(var xe=0;xe<ve.length;++xe){var _e=ve[xe],tt=me[xe];if(_e&&tt)e:for(var pt=0;pt<tt.length;++pt){for(var ht=tt[pt],Tt=0;Tt<_e.length;++Tt)if(_e[Tt].marker==ht.marker)continue e;_e.push(ht)}else tt&&(ve[xe]=tt)}return ve}function _s(ie,ae,ve){for(var me=[],xe=0;xe<ie.length;++xe){var _e=ie[xe];if(_e.ranges){me.push(ve?Mr.prototype.deepCopy.call(_e):_e);continue}var tt=_e.changes,pt=[];me.push({changes:pt});for(var ht=0;ht<tt.length;++ht){var Tt=tt[ht],vn=void 0;if(pt.push({from:Tt.from,to:Tt.to,text:Tt.text}),ae)for(var Ot in Tt)(vn=Ot.match(/^spans_(\d+)$/))&&at(ae,Number(vn[1]))>-1&&(kt(pt)[Ot]=Tt[Ot],delete Tt[Ot])}}return me}function Nu(ie,ae,ve,me){if(me){var xe=ie.anchor;if(ve){var _e=wn(ae,xe)<0;_e!=wn(ve,xe)<0?(xe=ae,ae=ve):_e!=wn(ae,ve)<0&&(ae=ve)}return new oo(xe,ae)}else return new oo(ve||ae,ae)}function Ku(ie,ae,ve,me,xe){xe==null&&(xe=ie.cm&&(ie.cm.display.shift||ie.extend)),pe(ie,new Mr([Nu(ie.sel.primary(),ae,ve,xe)],0),me)}function gd(ie,ae,ve){for(var me=[],xe=ie.cm&&(ie.cm.display.shift||ie.extend),_e=0;_e<ie.sel.ranges.length;_e++)me[_e]=Nu(ie.sel.ranges[_e],ae[_e],null,xe);var tt=fo(ie.cm,me,ie.sel.primIndex);pe(ie,tt,ve)}function eu(ie,ae,ve,me){var xe=ie.sel.ranges.slice(0);xe[ae]=ve,pe(ie,fo(ie.cm,xe,ie.sel.primIndex),me)}function lc(ie,ae,ve,me){pe(ie,Aa(ae,ve),me)}function zd(ie,ae,ve){var me={ranges:ae.ranges,update:function(xe){this.ranges=[];for(var _e=0;_e<xe.length;_e++)this.ranges[_e]=new oo(Tn(ie,xe[_e].anchor),Tn(ie,xe[_e].head))},origin:ve&&ve.origin};return Rn(ie,"beforeSelectionChange",ie,me),ie.cm&&Rn(ie.cm,"beforeSelectionChange",ie.cm,me),me.ranges!=ae.ranges?fo(ie.cm,me.ranges,me.ranges.length-1):ae}function le(ie,ae,ve){var me=ie.history.done,xe=kt(me);xe&&xe.ranges?(me[me.length-1]=ae,Ke(ie,ae,ve)):pe(ie,ae,ve)}function pe(ie,ae,ve){Ke(ie,ae,ve),Ks(ie,ie.sel,ie.cm?ie.cm.curOp.id:NaN,ve)}function Ke(ie,ae,ve){(Yn(ie,"beforeSelectionChange")||ie.cm&&Yn(ie.cm,"beforeSelectionChange"))&&(ae=zd(ie,ae,ve));var me=ve&&ve.bias||(wn(ae.primary().head,ie.sel.primary().head)<0?-1:1);Dt(ie,Ii(ie,ae,me,!0)),!(ve&&ve.scroll===!1)&&ie.cm&&Pl(ie.cm)}function Dt(ie,ae){ae.equals(ie.sel)||(ie.sel=ae,ie.cm&&(ie.cm.curOp.updateInput=1,ie.cm.curOp.selectionChanged=!0,Ai(ie.cm)),pr(ie,"cursorActivity",ie))}function Hn(ie){Dt(ie,Ii(ie,ie.sel,null,!1))}function Ii(ie,ae,ve,me){for(var xe,_e=0;_e<ae.ranges.length;_e++){var tt=ae.ranges[_e],pt=ae.ranges.length==ie.sel.ranges.length&&ie.sel.ranges[_e],ht=so(ie,tt.anchor,pt&&pt.anchor,ve,me),Tt=so(ie,tt.head,pt&&pt.head,ve,me);(xe||ht!=tt.anchor||Tt!=tt.head)&&(xe||(xe=ae.ranges.slice(0,_e)),xe[_e]=new oo(ht,Tt))}return xe?fo(ie.cm,xe,ae.primIndex):ae}function $i(ie,ae,ve,me,xe){var _e=fi(ie,ae.line);if(_e.markedSpans)for(var tt=0;tt<_e.markedSpans.length;++tt){var pt=_e.markedSpans[tt],ht=pt.marker,Tt="selectLeft"in ht?!ht.selectLeft:ht.inclusiveLeft,vn="selectRight"in ht?!ht.selectRight:ht.inclusiveRight;if((pt.from==null||(Tt?pt.from<=ae.ch:pt.from<ae.ch))&&(pt.to==null||(vn?pt.to>=ae.ch:pt.to>ae.ch))){if(xe&&(Rn(ht,"beforeCursorEnter"),ht.explicitlyCleared))if(_e.markedSpans){--tt;continue}else break;if(!ht.atomic)continue;if(ve){var Ot=ht.find(me<0?1:-1),Wn=void 0;if((me<0?vn:Tt)&&(Ot=Lo(ie,Ot,-me,Ot&&Ot.line==ae.line?_e:null)),Ot&&Ot.line==ae.line&&(Wn=wn(Ot,ve))&&(me<0?Wn<0:Wn>0))return $i(ie,Ot,ae,me,xe)}var Mn=ht.find(me<0?-1:1);return(me<0?Tt:vn)&&(Mn=Lo(ie,Mn,me,Mn.line==ae.line?_e:null)),Mn?$i(ie,Mn,ae,me,xe):null}}return ae}function so(ie,ae,ve,me,xe){var _e=me||1,tt=$i(ie,ae,ve,_e,xe)||!xe&&$i(ie,ae,ve,_e,!0)||$i(ie,ae,ve,-_e,xe)||!xe&&$i(ie,ae,ve,-_e,!0);return tt||(ie.cantEdit=!0,zt(ie.first,0))}function Lo(ie,ae,ve,me){return ve<0&&ae.ch==0?ae.line>ie.first?Tn(ie,zt(ae.line-1)):null:ve>0&&ae.ch==(me||fi(ie,ae.line)).text.length?ae.line<ie.first+ie.size-1?zt(ae.line+1,0):null:new zt(ae.line,ae.ch+ve)}function Ti(ie){ie.setSelection(zt(ie.firstLine(),0),zt(ie.lastLine()),Pt)}function Ar(ie,ae,ve){var me={canceled:!1,from:ae.from,to:ae.to,text:ae.text,origin:ae.origin,cancel:function(){return me.canceled=!0}};return ve&&(me.update=function(xe,_e,tt,pt){xe&&(me.from=Tn(ie,xe)),_e&&(me.to=Tn(ie,_e)),tt&&(me.text=tt),pt!==void 0&&(me.origin=pt)}),Rn(ie,"beforeChange",ie,me),ie.cm&&Rn(ie.cm,"beforeChange",ie.cm,me),me.canceled?(ie.cm&&(ie.cm.curOp.updateInput=2),null):{from:me.from,to:me.to,text:me.text,origin:me.origin}}function zo(ie,ae,ve){if(ie.cm){if(!ie.cm.curOp)return vs(ie.cm,zo)(ie,ae,ve);if(ie.cm.state.suppressEdits)return}if(!((Yn(ie,"beforeChange")||ie.cm&&Yn(ie.cm,"beforeChange"))&&(ae=Ar(ie,ae,!0),!ae))){var me=Ur&&!ve&&Fn(ie,ae.from,ae.to);if(me)for(var xe=me.length-1;xe>=0;--xe)ua(ie,{from:me[xe].from,to:me[xe].to,text:xe?[""]:ae.text,origin:ae.origin});else ua(ie,ae)}}function ua(ie,ae){if(!(ae.text.length==1&&ae.text[0]==""&&wn(ae.from,ae.to)==0)){var ve=Ia(ie,ae);zl(ie,ae,ve,ie.cm?ie.cm.curOp.id:NaN),ku(ie,ae,ve,bo(ie,ae));var me=[];ko(ie,function(xe,_e){!_e&&at(me,xe.history)==-1&&(Mc(xe.history,ae),me.push(xe.history)),ku(xe,ae,null,bo(xe,ae))})}}function Ba(ie,ae,ve){var me=ie.cm&&ie.cm.state.suppressEdits;if(!(me&&!ve)){for(var xe=ie.history,_e,tt=ie.sel,pt=ae=="undo"?xe.done:xe.undone,ht=ae=="undo"?xe.undone:xe.done,Tt=0;Tt<pt.length&&(_e=pt[Tt],!(ve?_e.ranges&&!_e.equals(ie.sel):!_e.ranges));Tt++);if(Tt!=pt.length){for(xe.lastOrigin=xe.lastSelOrigin=null;;)if(_e=pt.pop(),_e.ranges){if($l(_e,ht),ve&&!_e.equals(ie.sel)){pe(ie,_e,{clearRedo:!1});return}tt=_e}else if(me){pt.push(_e);return}else break;var vn=[];$l(tt,ht),ht.push({changes:vn,generation:xe.generation}),xe.generation=_e.generation||++xe.maxGeneration;for(var Ot=Yn(ie,"beforeChange")||ie.cm&&Yn(ie.cm,"beforeChange"),Wn=function(ji){var nr=_e.changes[ji];if(nr.origin=ae,Ot&&!Ar(ie,nr,!1))return pt.length=0,{};vn.push(Ll(ie,nr));var Er=ji?Ia(ie,nr):kt(pt);ku(ie,nr,Er,Hl(ie,nr)),!ji&&ie.cm&&ie.cm.scrollIntoView({from:nr.from,to:Pa(nr)});var Yr=[];ko(ie,function(Dr,io){!io&&at(Yr,Dr.history)==-1&&(Mc(Dr.history,nr),Yr.push(Dr.history)),ku(Dr,nr,null,Hl(Dr,nr))})},Mn=_e.changes.length-1;Mn>=0;--Mn){var Ui=Wn(Mn);if(Ui)return Ui.v}}}}function hu(ie,ae){if(ae!=0&&(ie.first+=ae,ie.sel=new Mr(jn(ie.sel.ranges,function(xe){return new oo(zt(xe.anchor.line+ae,xe.anchor.ch),zt(xe.head.line+ae,xe.head.ch))}),ie.sel.primIndex),ie.cm)){Xo(ie.cm,ie.first,ie.first-ae,ae);for(var ve=ie.cm.display,me=ve.viewFrom;me<ve.viewTo;me++)No(ie.cm,me,"gutter")}}function ku(ie,ae,ve,me){if(ie.cm&&!ie.cm.curOp)return vs(ie.cm,ku)(ie,ae,ve,me);if(ae.to.line<ie.first){hu(ie,ae.text.length-1-(ae.to.line-ae.from.line));return}if(!(ae.from.line>ie.lastLine())){if(ae.from.line<ie.first){var xe=ae.text.length-1-(ie.first-ae.from.line);hu(ie,xe),ae={from:zt(ie.first,0),to:zt(ae.to.line+xe,ae.to.ch),text:[kt(ae.text)],origin:ae.origin}}var _e=ie.lastLine();ae.to.line>_e&&(ae={from:ae.from,to:zt(_e,fi(ie,_e).text.length),text:[ae.text[0]],origin:ae.origin}),ae.removed=on(ie,ae.from,ae.to),ve||(ve=Ia(ie,ae)),ie.cm?uc(ie.cm,ae,me):Ro(ie,ae,me),Ke(ie,ve,Pt),ie.cantEdit&&so(ie,zt(ie.firstLine(),0))&&(ie.cantEdit=!1)}}function uc(ie,ae,ve){var me=ie.doc,xe=ie.display,_e=ae.from,tt=ae.to,pt=!1,ht=_e.line;ie.options.lineWrapping||(ht=vt(xi(fi(me,_e.line))),me.iter(ht,tt.line+1,function(Mn){if(Mn==xe.maxLine)return pt=!0,!0})),me.sel.contains(ae.from,ae.to)>-1&&Ai(ie),Ro(me,ae,ve,ba(ie)),ie.options.lineWrapping||(me.iter(ht,_e.line+ae.text.length,function(Mn){var Ui=_r(Mn);Ui>xe.maxLineLength&&(xe.maxLine=Mn,xe.maxLineLength=Ui,xe.maxLineChanged=!0,pt=!1)}),pt&&(ie.curOp.updateMaxLine=!0)),Ir(me,_e.line),sc(ie,400);var Tt=ae.text.length-(tt.line-_e.line)-1;ae.full?Xo(ie):_e.line==tt.line&&ae.text.length==1&&!_a(ie.doc,ae)?No(ie,_e.line,"text"):Xo(ie,_e.line,tt.line+1,Tt);var vn=Yn(ie,"changes"),Ot=Yn(ie,"change");if(Ot||vn){var Wn={from:_e,to:tt,text:ae.text,removed:ae.removed,origin:ae.origin};Ot&&pr(ie,"change",ie,Wn),vn&&(ie.curOp.changeObjs||(ie.curOp.changeObjs=[])).push(Wn)}ie.display.selForContextMenu=null}function Zu(ie,ae,ve,me,xe){var _e;me||(me=ve),wn(me,ve)<0&&(_e=[me,ve],ve=_e[0],me=_e[1]),typeof ae=="string"&&(ae=ie.splitLines(ae)),zo(ie,{from:ve,to:me,text:ae,origin:xe})}function Sl(ie,ae,ve,me){ve<ie.line?ie.line+=me:ae<ie.line&&(ie.line=ae,ie.ch=0)}function tu(ie,ae,ve,me){for(var xe=0;xe<ie.length;++xe){var _e=ie[xe],tt=!0;if(_e.ranges){_e.copied||(_e=ie[xe]=_e.deepCopy(),_e.copied=!0);for(var pt=0;pt<_e.ranges.length;pt++)Sl(_e.ranges[pt].anchor,ae,ve,me),Sl(_e.ranges[pt].head,ae,ve,me);continue}for(var ht=0;ht<_e.changes.length;++ht){var Tt=_e.changes[ht];if(ve<Tt.from.line)Tt.from=zt(Tt.from.line+me,Tt.from.ch),Tt.to=zt(Tt.to.line+me,Tt.to.ch);else if(ae<=Tt.to.line){tt=!1;break}}tt||(ie.splice(0,xe+1),xe=0)}}function Mc(ie,ae){var ve=ae.from.line,me=ae.to.line,xe=ae.text.length-(me-ve)-1;tu(ie.done,ve,me,xe),tu(ie.undone,ve,me,xe)}function jl(ie,ae,ve,me){var xe=ae,_e=ae;return typeof ae=="number"?_e=fi(ie,ui(ie,ae)):xe=vt(ae),xe==null?null:(me(_e,xe)&&ie.cm&&No(ie.cm,xe,ve),_e)}function Sh(ie){this.lines=ie,this.parent=null;for(var ae=0,ve=0;ve<ie.length;++ve)ie[ve].parent=this,ae+=ie[ve].height;this.height=ae}Sh.prototype={chunkSize:function(){return this.lines.length},removeInner:function(ie,ae){for(var ve=ie,me=ie+ae;ve<me;++ve){var xe=this.lines[ve];this.height-=xe.height,jr(xe),pr(xe,"delete")}this.lines.splice(ie,ae)},collapse:function(ie){ie.push.apply(ie,this.lines)},insertInner:function(ie,ae,ve){this.height+=ve,this.lines=this.lines.slice(0,ie).concat(ae).concat(this.lines.slice(ie));for(var me=0;me<ae.length;++me)ae[me].parent=this},iterN:function(ie,ae,ve){for(var me=ie+ae;ie<me;++ie)if(ve(this.lines[ie]))return!0}};function fs(ie){this.children=ie;for(var ae=0,ve=0,me=0;me<ie.length;++me){var xe=ie[me];ae+=xe.chunkSize(),ve+=xe.height,xe.parent=this}this.size=ae,this.height=ve,this.parent=null}fs.prototype={chunkSize:function(){return this.size},removeInner:function(ie,ae){this.size-=ae;for(var ve=0;ve<this.children.length;++ve){var me=this.children[ve],xe=me.chunkSize();if(ie<xe){var _e=Math.min(ae,xe-ie),tt=me.height;if(me.removeInner(ie,_e),this.height-=tt-me.height,xe==_e&&(this.children.splice(ve--,1),me.parent=null),(ae-=_e)==0)break;ie=0}else ie-=xe}if(this.size-ae<25&&(this.children.length>1||!(this.children[0]instanceof Sh))){var pt=[];this.collapse(pt),this.children=[new Sh(pt)],this.children[0].parent=this}},collapse:function(ie){for(var ae=0;ae<this.children.length;++ae)this.children[ae].collapse(ie)},insertInner:function(ie,ae,ve){this.size+=ae.length,this.height+=ve;for(var me=0;me<this.children.length;++me){var xe=this.children[me],_e=xe.chunkSize();if(ie<=_e){if(xe.insertInner(ie,ae,ve),xe.lines&&xe.lines.length>50){for(var tt=xe.lines.length%25+25,pt=tt;pt<xe.lines.length;){var ht=new Sh(xe.lines.slice(pt,pt+=25));xe.height-=ht.height,this.children.splice(++me,0,ht),ht.parent=this}xe.lines=xe.lines.slice(0,tt),this.maybeSpill()}break}ie-=_e}},maybeSpill:function(){if(!(this.children.length<=10)){var ie=this;do{var ae=ie.children.splice(ie.children.length-5,5),ve=new fs(ae);if(ie.parent){ie.size-=ve.size,ie.height-=ve.height;var xe=at(ie.parent.children,ie);ie.parent.children.splice(xe+1,0,ve)}else{var me=new fs(ie.children);me.parent=ie,ie.children=[me,ve],ie=me}ve.parent=ie.parent}while(ie.children.length>10);ie.parent.maybeSpill()}},iterN:function(ie,ae,ve){for(var me=0;me<this.children.length;++me){var xe=this.children[me],_e=xe.chunkSize();if(ie<_e){var tt=Math.min(ae,_e-ie);if(xe.iterN(ie,tt,ve))return!0;if((ae-=tt)==0)break;ie=0}else ie-=_e}}};var Jc=function(ie,ae,ve){if(ve)for(var me in ve)ve.hasOwnProperty(me)&&(this[me]=ve[me]);this.doc=ie,this.node=ae};Jc.prototype.clear=function(){var ie=this.doc.cm,ae=this.line.widgets,ve=this.line,me=vt(ve);if(!(me==null||!ae)){for(var xe=0;xe<ae.length;++xe)ae[xe]==this&&ae.splice(xe--,1);ae.length||(ve.widgets=null);var _e=Jo(this);li(ve,Math.max(0,ve.height-_e)),ie&&(da(ie,function(){Qp(ie,ve,-_e),No(ie,me,"widget")}),pr(ie,"lineWidgetCleared",ie,this,me))}},Jc.prototype.changed=function(){var ie=this,ae=this.height,ve=this.doc.cm,me=this.line;this.height=null;var xe=Jo(this)-ae;xe&&(Ln(this.doc,me)||li(me,me.height+xe),ve&&da(ve,function(){ve.curOp.forceUpdate=!0,Qp(ve,me,xe),pr(ve,"lineWidgetChanged",ve,ie,vt(me))}))},Et(Jc);function Qp(ie,ae,ve){ar(ae)<(ie.curOp&&ie.curOp.scrollTop||ie.doc.scrollTop)&&xc(ie,ve)}function Nf(ie,ae,ve,me){var xe=new Jc(ie,ve,me),_e=ie.cm;return _e&&xe.noHScroll&&(_e.display.alignWidgets=!0),jl(ie,ae,"widget",function(tt){var pt=tt.widgets||(tt.widgets=[]);if(xe.insertAt==null?pt.push(xe):pt.splice(Math.min(pt.length-1,Math.max(0,xe.insertAt)),0,xe),xe.line=tt,_e&&!Ln(ie,tt)){var ht=ar(tt)<ie.scrollTop;li(tt,tt.height+Jo(xe)),ht&&xc(_e,xe.height),_e.curOp.forceUpdate=!0}return!0}),_e&&pr(_e,"lineWidgetAdded",_e,xe,typeof ae=="number"?ae:vt(ae)),xe}var Jp=0,en=function(ie,ae){this.lines=[],this.type=ae,this.doc=ie,this.id=++Jp};en.prototype.clear=function(){if(!this.explicitlyCleared){var ie=this.doc.cm,ae=ie&&!ie.curOp;if(ae&&el(ie),Yn(this,"clear")){var ve=this.find();ve&&pr(this,"clear",ve.from,ve.to)}for(var me=null,xe=null,_e=0;_e<this.lines.length;++_e){var tt=this.lines[_e],pt=ur(tt.markedSpans,this);ie&&!this.collapsed?No(ie,vt(tt),"text"):ie&&(pt.to!=null&&(xe=vt(tt)),pt.from!=null&&(me=vt(tt))),tt.markedSpans=gr(tt.markedSpans,pt),pt.from==null&&this.collapsed&&!Ln(this.doc,tt)&&ie&&li(tt,Ws(ie.display))}if(ie&&this.collapsed&&!ie.options.lineWrapping)for(var ht=0;ht<this.lines.length;++ht){var Tt=xi(this.lines[ht]),vn=_r(Tt);vn>ie.display.maxLineLength&&(ie.display.maxLine=Tt,ie.display.maxLineLength=vn,ie.display.maxLineChanged=!0)}me!=null&&ie&&this.collapsed&&Xo(ie,me,xe+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,ie&&Hn(ie.doc)),ie&&pr(ie,"markerCleared",ie,this,me,xe),ae&&Ul(ie),this.parent&&this.parent.clear()}},en.prototype.find=function(ie,ae){ie==null&&this.type=="bookmark"&&(ie=1);for(var ve,me,xe=0;xe<this.lines.length;++xe){var _e=this.lines[xe],tt=ur(_e.markedSpans,this);if(tt.from!=null&&(ve=zt(ae?_e:vt(_e),tt.from),ie==-1))return ve;if(tt.to!=null&&(me=zt(ae?_e:vt(_e),tt.to),ie==1))return me}return ve&&{from:ve,to:me}},en.prototype.changed=function(){var ie=this,ae=this.find(-1,!0),ve=this,me=this.doc.cm;!ae||!me||da(me,function(){var xe=ae.line,_e=vt(ae.line),tt=Es(me,_e);if(tt&&(ac(tt),me.curOp.selectionChanged=me.curOp.forceUpdate=!0),me.curOp.updateMaxLine=!0,!Ln(ve.doc,xe)&&ve.height!=null){var pt=ve.height;ve.height=null;var ht=Jo(ve)-pt;ht&&li(xe,xe.height+ht)}pr(me,"markerChanged",me,ie)})},en.prototype.attachLine=function(ie){if(!this.lines.length&&this.doc.cm){var ae=this.doc.cm.curOp;(!ae.maybeHiddenMarkers||at(ae.maybeHiddenMarkers,this)==-1)&&(ae.maybeUnhiddenMarkers||(ae.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(ie)},en.prototype.detachLine=function(ie){if(this.lines.splice(at(this.lines,ie),1),!this.lines.length&&this.doc.cm){var ae=this.doc.cm.curOp;(ae.maybeHiddenMarkers||(ae.maybeHiddenMarkers=[])).push(this)}},Et(en);function Hd(ie,ae,ve,me,xe){if(me&&me.shared)return qp(ie,ae,ve,me,xe);if(ie.cm&&!ie.cm.curOp)return vs(ie.cm,Hd)(ie,ae,ve,me,xe);var _e=new en(ie,xe),tt=wn(ae,ve);if(me&&nn(me,_e,!1),tt>0||tt==0&&_e.clearWhenEmpty!==!1)return _e;if(_e.replacedWith&&(_e.collapsed=!0,_e.widgetNode=dt("span",[_e.replacedWith],"CodeMirror-widget"),me.handleMouseEvents||_e.widgetNode.setAttribute("cm-ignore-events","true"),me.insertLeft&&(_e.widgetNode.insertLeft=!0)),_e.collapsed){if(mi(ie,ae.line,ae,ve,_e)||ae.line!=ve.line&&mi(ie,ve.line,ae,ve,_e))throw new Error("Inserting collapsed marker partially overlapping an existing one");Bn()}_e.addToHistory&&zl(ie,{from:ae,to:ve,origin:"markText"},ie.sel,NaN);var pt=ae.line,ht=ie.cm,Tt;if(ie.iter(pt,ve.line+1,function(Ot){ht&&_e.collapsed&&!ht.options.lineWrapping&&xi(Ot)==ht.display.maxLine&&(Tt=!0),_e.collapsed&&pt!=ae.line&&li(Ot,0),xo(Ot,new qi(_e,pt==ae.line?ae.ch:null,pt==ve.line?ve.ch:null)),++pt}),_e.collapsed&&ie.iter(ae.line,ve.line+1,function(Ot){Ln(ie,Ot)&&li(Ot,0)}),_e.clearOnEnter&&Mt(_e,"beforeCursorEnter",function(){return _e.clear()}),_e.readOnly&&(Zr(),(ie.history.done.length||ie.history.undone.length)&&ie.clearHistory()),_e.collapsed&&(_e.id=++Jp,_e.atomic=!0),ht){if(Tt&&(ht.curOp.updateMaxLine=!0),_e.collapsed)Xo(ht,ae.line,ve.line+1);else if(_e.className||_e.startStyle||_e.endStyle||_e.css||_e.attributes||_e.title)for(var vn=ae.line;vn<=ve.line;vn++)No(ht,vn,"text");_e.atomic&&Hn(ht.doc),pr(ht,"markerAdded",ht,_e)}return _e}var Rc=function(ie,ae){this.markers=ie,this.primary=ae;for(var ve=0;ve<ie.length;++ve)ie[ve].parent=this};Rc.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var ie=0;ie<this.markers.length;++ie)this.markers[ie].clear();pr(this,"clear")}},Rc.prototype.find=function(ie,ae){return this.primary.find(ie,ae)},Et(Rc);function qp(ie,ae,ve,me,xe){me=nn(me),me.shared=!1;var _e=[Hd(ie,ae,ve,me,xe)],tt=_e[0],pt=me.widgetNode;return ko(ie,function(ht){pt&&(me.widgetNode=pt.cloneNode(!0)),_e.push(Hd(ht,Tn(ht,ae),Tn(ht,ve),me,xe));for(var Tt=0;Tt<ht.linked.length;++Tt)if(ht.linked[Tt].isParent)return;tt=kt(_e)}),new Rc(_e,tt)}function Pg(ie){return ie.findMarks(zt(ie.first,0),ie.clipPos(zt(ie.lastLine())),function(ae){return ae.parent})}function $p(ie,ae){for(var ve=0;ve<ae.length;ve++){var me=ae[ve],xe=me.find(),_e=ie.clipPos(xe.from),tt=ie.clipPos(xe.to);if(wn(_e,tt)){var pt=Hd(ie,_e,tt,me.primary,me.primary.type);me.markers.push(pt),pt.parent=me}}}function Ng(ie){for(var ae=function(me){var xe=ie[me],_e=[xe.primary.doc];ko(xe.primary.doc,function(ht){return _e.push(ht)});for(var tt=0;tt<xe.markers.length;tt++){var pt=xe.markers[tt];at(_e,pt.doc)==-1&&(pt.parent=null,xe.markers.splice(tt--,1))}},ve=0;ve<ie.length;ve++)ae(ve)}var iv=0,xl=function(ie,ae,ve,me,xe){if(!(this instanceof xl))return new xl(ie,ae,ve,me,xe);ve==null&&(ve=0),fs.call(this,[new Sh([new Wr("",null)])]),this.first=ve,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=ve;var _e=zt(ve,0);this.sel=Aa(_e),this.history=new Ys(null),this.id=++iv,this.modeOption=ae,this.lineSep=me,this.direction=xe=="rtl"?"rtl":"ltr",this.extend=!1,typeof ie=="string"&&(ie=this.splitLines(ie)),Ro(this,{from:_e,to:_e,text:ie}),pe(this,Aa(_e),Pt)};xl.prototype=De(fs.prototype,{constructor:xl,iter:function(ie,ae,ve){ve?this.iterN(ie-this.first,ae-ie,ve):this.iterN(this.first,this.first+this.size,ie)},insert:function(ie,ae){for(var ve=0,me=0;me<ae.length;++me)ve+=ae[me].height;this.insertInner(ie-this.first,ae,ve)},remove:function(ie,ae){this.removeInner(ie-this.first,ae)},getValue:function(ie){var ae=Gt(this,this.first,this.first+this.size);return ie===!1?ae:ae.join(ie||this.lineSeparator())},setValue:Cs(function(ie){var ae=zt(this.first,0),ve=this.first+this.size-1;zo(this,{from:ae,to:zt(ve,fi(this,ve).text.length),text:this.splitLines(ie),origin:"setValue",full:!0},!0),this.cm&&Nl(this.cm,0,0),pe(this,Aa(ae),Pt)}),replaceRange:function(ie,ae,ve,me){ae=Tn(this,ae),ve=ve?Tn(this,ve):ae,Zu(this,ie,ae,ve,me)},getRange:function(ie,ae,ve){var me=on(this,Tn(this,ie),Tn(this,ae));return ve===!1?me:me.join(ve||this.lineSeparator())},getLine:function(ie){var ae=this.getLineHandle(ie);return ae&&ae.text},getLineHandle:function(ie){if(ri(this,ie))return fi(this,ie)},getLineNumber:function(ie){return vt(ie)},getLineHandleVisualStart:function(ie){return typeof ie=="number"&&(ie=fi(this,ie)),xi(ie)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(ie){return Tn(this,ie)},getCursor:function(ie){var ae=this.sel.primary(),ve;return ie==null||ie=="head"?ve=ae.head:ie=="anchor"?ve=ae.anchor:ie=="end"||ie=="to"||ie===!1?ve=ae.to():ve=ae.from(),ve},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:Cs(function(ie,ae,ve){lc(this,Tn(this,typeof ie=="number"?zt(ie,ae||0):ie),null,ve)}),setSelection:Cs(function(ie,ae,ve){lc(this,Tn(this,ie),Tn(this,ae||ie),ve)}),extendSelection:Cs(function(ie,ae,ve){Ku(this,Tn(this,ie),ae&&Tn(this,ae),ve)}),extendSelections:Cs(function(ie,ae){gd(this,er(this,ie),ae)}),extendSelectionsBy:Cs(function(ie,ae){var ve=jn(this.sel.ranges,ie);gd(this,er(this,ve),ae)}),setSelections:Cs(function(ie,ae,ve){if(ie.length){for(var me=[],xe=0;xe<ie.length;xe++)me[xe]=new oo(Tn(this,ie[xe].anchor),Tn(this,ie[xe].head));ae==null&&(ae=Math.min(ie.length-1,this.sel.primIndex)),pe(this,fo(this.cm,me,ae),ve)}}),addSelection:Cs(function(ie,ae,ve){var me=this.sel.ranges.slice(0);me.push(new oo(Tn(this,ie),Tn(this,ae||ie))),pe(this,fo(this.cm,me,me.length-1),ve)}),getSelection:function(ie){for(var ae=this.sel.ranges,ve,me=0;me<ae.length;me++){var xe=on(this,ae[me].from(),ae[me].to());ve=ve?ve.concat(xe):xe}return ie===!1?ve:ve.join(ie||this.lineSeparator())},getSelections:function(ie){for(var ae=[],ve=this.sel.ranges,me=0;me<ve.length;me++){var xe=on(this,ve[me].from(),ve[me].to());ie!==!1&&(xe=xe.join(ie||this.lineSeparator())),ae[me]=xe}return ae},replaceSelection:function(ie,ae,ve){for(var me=[],xe=0;xe<this.sel.ranges.length;xe++)me[xe]=ie;this.replaceSelections(me,ae,ve||"+input")},replaceSelections:Cs(function(ie,ae,ve){for(var me=[],xe=this.sel,_e=0;_e<xe.ranges.length;_e++){var tt=xe.ranges[_e];me[_e]={from:tt.from(),to:tt.to(),text:this.splitLines(ie[_e]),origin:ve}}for(var pt=ae&&ae!="end"&&Sa(this,me,ae),ht=me.length-1;ht>=0;ht--)zo(this,me[ht]);pt?le(this,pt):this.cm&&Pl(this.cm)}),undo:Cs(function(){Ba(this,"undo")}),redo:Cs(function(){Ba(this,"redo")}),undoSelection:Cs(function(){Ba(this,"undo",!0)}),redoSelection:Cs(function(){Ba(this,"redo",!0)}),setExtending:function(ie){this.extend=ie},getExtending:function(){return this.extend},historySize:function(){for(var ie=this.history,ae=0,ve=0,me=0;me<ie.done.length;me++)ie.done[me].ranges||++ae;for(var xe=0;xe<ie.undone.length;xe++)ie.undone[xe].ranges||++ve;return{undo:ae,redo:ve}},clearHistory:function(){var ie=this;this.history=new Ys(this.history.maxGeneration),ko(this,function(ae){return ae.history=ie.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(ie){return ie&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(ie){return this.history.generation==(ie||this.cleanGeneration)},getHistory:function(){return{done:_s(this.history.done),undone:_s(this.history.undone)}},setHistory:function(ie){var ae=this.history=new Ys(this.history.maxGeneration);ae.done=_s(ie.done.slice(0),null,!0),ae.undone=_s(ie.undone.slice(0),null,!0)},setGutterMarker:Cs(function(ie,ae,ve){return jl(this,ie,"gutter",function(me){var xe=me.gutterMarkers||(me.gutterMarkers={});return xe[ae]=ve,!ve&&Ue(xe)&&(me.gutterMarkers=null),!0})}),clearGutter:Cs(function(ie){var ae=this;this.iter(function(ve){ve.gutterMarkers&&ve.gutterMarkers[ie]&&jl(ae,ve,"gutter",function(){return ve.gutterMarkers[ie]=null,Ue(ve.gutterMarkers)&&(ve.gutterMarkers=null),!0})})}),lineInfo:function(ie){var ae;if(typeof ie=="number"){if(!ri(this,ie)||(ae=ie,ie=fi(this,ie),!ie))return null}else if(ae=vt(ie),ae==null)return null;return{line:ae,handle:ie,text:ie.text,gutterMarkers:ie.gutterMarkers,textClass:ie.textClass,bgClass:ie.bgClass,wrapClass:ie.wrapClass,widgets:ie.widgets}},addLineClass:Cs(function(ie,ae,ve){return jl(this,ie,ae=="gutter"?"gutter":"class",function(me){var xe=ae=="text"?"textClass":ae=="background"?"bgClass":ae=="gutter"?"gutterClass":"wrapClass";if(!me[xe])me[xe]=ve;else{if(Le(ve).test(me[xe]))return!1;me[xe]+=" "+ve}return!0})}),removeLineClass:Cs(function(ie,ae,ve){return jl(this,ie,ae=="gutter"?"gutter":"class",function(me){var xe=ae=="text"?"textClass":ae=="background"?"bgClass":ae=="gutter"?"gutterClass":"wrapClass",_e=me[xe];if(_e)if(ve==null)me[xe]=null;else{var tt=_e.match(Le(ve));if(!tt)return!1;var pt=tt.index+tt[0].length;me[xe]=_e.slice(0,tt.index)+(!tt.index||pt==_e.length?"":" ")+_e.slice(pt)||null}else return!1;return!0})}),addLineWidget:Cs(function(ie,ae,ve){return Nf(this,ie,ae,ve)}),removeLineWidget:function(ie){ie.clear()},markText:function(ie,ae,ve){return Hd(this,Tn(this,ie),Tn(this,ae),ve,ve&&ve.type||"range")},setBookmark:function(ie,ae){var ve={replacedWith:ae&&(ae.nodeType==null?ae.widget:ae),insertLeft:ae&&ae.insertLeft,clearWhenEmpty:!1,shared:ae&&ae.shared,handleMouseEvents:ae&&ae.handleMouseEvents};return ie=Tn(this,ie),Hd(this,ie,ie,ve,"bookmark")},findMarksAt:function(ie){ie=Tn(this,ie);var ae=[],ve=fi(this,ie.line).markedSpans;if(ve)for(var me=0;me<ve.length;++me){var xe=ve[me];(xe.from==null||xe.from<=ie.ch)&&(xe.to==null||xe.to>=ie.ch)&&ae.push(xe.marker.parent||xe.marker)}return ae},findMarks:function(ie,ae,ve){ie=Tn(this,ie),ae=Tn(this,ae);var me=[],xe=ie.line;return this.iter(ie.line,ae.line+1,function(_e){var tt=_e.markedSpans;if(tt)for(var pt=0;pt<tt.length;pt++){var ht=tt[pt];!(ht.to!=null&&xe==ie.line&&ie.ch>=ht.to||ht.from==null&&xe!=ie.line||ht.from!=null&&xe==ae.line&&ht.from>=ae.ch)&&(!ve||ve(ht.marker))&&me.push(ht.marker.parent||ht.marker)}++xe}),me},getAllMarks:function(){var ie=[];return this.iter(function(ae){var ve=ae.markedSpans;if(ve)for(var me=0;me<ve.length;++me)ve[me].from!=null&&ie.push(ve[me].marker)}),ie},posFromIndex:function(ie){var ae,ve=this.first,me=this.lineSeparator().length;return this.iter(function(xe){var _e=xe.text.length+me;if(_e>ie)return ae=ie,!0;ie-=_e,++ve}),Tn(this,zt(ve,ae))},indexFromPos:function(ie){ie=Tn(this,ie);var ae=ie.ch;if(ie.line<this.first||ie.ch<0)return 0;var ve=this.lineSeparator().length;return this.iter(this.first,ie.line,function(me){ae+=me.text.length+ve}),ae},copy:function(ie){var ae=new xl(Gt(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return ae.scrollTop=this.scrollTop,ae.scrollLeft=this.scrollLeft,ae.sel=this.sel,ae.extend=!1,ie&&(ae.history.undoDepth=this.history.undoDepth,ae.setHistory(this.getHistory())),ae},linkedDoc:function(ie){ie||(ie={});var ae=this.first,ve=this.first+this.size;ie.from!=null&&ie.from>ae&&(ae=ie.from),ie.to!=null&&ie.to<ve&&(ve=ie.to);var me=new xl(Gt(this,ae,ve),ie.mode||this.modeOption,ae,this.lineSep,this.direction);return ie.sharedHist&&(me.history=this.history),(this.linked||(this.linked=[])).push({doc:me,sharedHist:ie.sharedHist}),me.linked=[{doc:this,isParent:!0,sharedHist:ie.sharedHist}],$p(me,Pg(this)),me},unlinkDoc:function(ie){if(ie instanceof va&&(ie=ie.doc),this.linked)for(var ae=0;ae<this.linked.length;++ae){var ve=this.linked[ae];if(ve.doc==ie){this.linked.splice(ae,1),ie.unlinkDoc(this),Ng(Pg(this));break}}if(ie.history==this.history){var me=[ie.id];ko(ie,function(xe){return me.push(xe.id)},!0),ie.history=new Ys(null),ie.history.done=_s(this.history.done,me),ie.history.undone=_s(this.history.undone,me)}},iterLinkedDocs:function(ie){ko(this,ie)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(ie){return this.lineSep?ie.split(this.lineSep):wr(ie)},lineSeparator:function(){return this.lineSep||`
|
|
|
`},setDirection:Cs(function(ie){ie!="rtl"&&(ie="ltr"),ie!=this.direction&&(this.direction=ie,this.iter(function(ae){return ae.order=null}),this.cm&&Os(this.cm))})}),xl.prototype.eachLine=xl.prototype.iter;var Zh=0;function kg(ie){var ae=this;if(nm(ae),!(Zn(ae,ie)||Do(ae.display,ie))){vi(ie),We&&(Zh=+new Date);var ve=cs(ae,ie,!0),me=ie.dataTransfer.files;if(!(!ve||ae.isReadOnly()))if(me&&me.length&&window.FileReader&&window.File)for(var xe=me.length,_e=Array(xe),tt=0,pt=function(){++tt==xe&&vs(ae,function(){ve=Tn(ae.doc,ve);var Mn={from:ve,to:ve,text:ae.doc.splitLines(_e.filter(function(Ui){return Ui!=null}).join(ae.doc.lineSeparator())),origin:"paste"};zo(ae.doc,Mn),le(ae.doc,Aa(Tn(ae.doc,ve),Tn(ae.doc,Pa(Mn))))})()},ht=function(Mn,Ui){if(ae.options.allowDropFileTypes&&at(ae.options.allowDropFileTypes,Mn.type)==-1){pt();return}var ji=new FileReader;ji.onerror=function(){return pt()},ji.onload=function(){var nr=ji.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(nr)){pt();return}_e[Ui]=nr,pt()},ji.readAsText(Mn)},Tt=0;Tt<me.length;Tt++)ht(me[Tt],Tt);else{if(ae.state.draggingText&&ae.doc.sel.contains(ve)>-1){ae.state.draggingText(ie),setTimeout(function(){return ae.display.input.focus()},20);return}try{var vn=ie.dataTransfer.getData("Text");if(vn){var Ot;if(ae.state.draggingText&&!ae.state.draggingText.copy&&(Ot=ae.listSelections()),Ke(ae.doc,Aa(ve,ve)),Ot)for(var Wn=0;Wn<Ot.length;++Wn)Zu(ae.doc,"",Ot[Wn].anchor,Ot[Wn].head,"drag");ae.replaceSelection(vn,"around","paste"),ae.display.input.focus()}}catch(Mn){}}}}function em(ie,ae){if(We&&(!ie.state.draggingText||+new Date-Zh<100)){Xi(ae);return}if(!(Zn(ie,ae)||Do(ie.display,ae))&&(ae.dataTransfer.setData("Text",ie.getSelection()),ae.dataTransfer.effectAllowed="copyMove",ae.dataTransfer.setDragImage&&!yt)){var ve=nt("img",null,null,"position: fixed; left: 0; top: 0;");ve.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",Ye&&(ve.width=ve.height=1,ie.display.wrapper.appendChild(ve),ve._top=ve.offsetTop),ae.dataTransfer.setDragImage(ve,0,0),Ye&&ve.parentNode.removeChild(ve)}}function tm(ie,ae){var ve=cs(ie,ae);if(ve){var me=document.createDocumentFragment();qo(ie,ve,me),ie.display.dragCursor||(ie.display.dragCursor=nt("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),ie.display.lineSpace.insertBefore(ie.display.dragCursor,ie.display.cursorDiv)),qe(ie.display.dragCursor,me)}}function nm(ie){ie.display.dragCursor&&(ie.display.lineSpace.removeChild(ie.display.dragCursor),ie.display.dragCursor=null)}function im(ie){if(document.getElementsByClassName){for(var ae=document.getElementsByClassName("CodeMirror"),ve=[],me=0;me<ae.length;me++){var xe=ae[me].CodeMirror;xe&&ve.push(xe)}ve.length&&ve[0].operation(function(){for(var _e=0;_e<ve.length;_e++)ie(ve[_e])})}}var Lg=!1;function Lu(){Lg||(xh(),Lg=!0)}function xh(){var ie;Mt(window,"resize",function(){ie==null&&(ie=setTimeout(function(){ie=null,im(Ig)},100))}),Mt(window,"blur",function(){return im(Gu)})}function Ig(ie){var ae=ie.display;ae.cachedCharWidth=ae.cachedTextHeight=ae.cachedPaddingH=null,ae.scrollbarsClipped=!1,ie.setSize()}for(var Oc={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},Xh=0;Xh<10;Xh++)Oc[Xh+48]=Oc[Xh+96]=String(Xh);for(var kf=65;kf<=90;kf++)Oc[kf]=String.fromCharCode(kf);for(var Qh=1;Qh<=12;Qh++)Oc[Qh+111]=Oc[Qh+63235]="F"+Qh;var fu={};fu.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},fu.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},fu.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Alt-F":"goWordRight","Alt-B":"goWordLeft","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-D":"delWordAfter","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},fu.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},fu.default=he?fu.macDefault:fu.pcDefault;function Mg(ie){var ae=ie.split(/-(?!$)/);ie=ae[ae.length-1];for(var ve,me,xe,_e,tt=0;tt<ae.length-1;tt++){var pt=ae[tt];if(/^(cmd|meta|m)$/i.test(pt))_e=!0;else if(/^a(lt)?$/i.test(pt))ve=!0;else if(/^(c|ctrl|control)$/i.test(pt))me=!0;else if(/^s(hift)?$/i.test(pt))xe=!0;else throw new Error("Unrecognized modifier name: "+pt)}return ve&&(ie="Alt-"+ie),me&&(ie="Ctrl-"+ie),_e&&(ie="Cmd-"+ie),xe&&(ie="Shift-"+ie),ie}function Rg(ie){var ae={};for(var ve in ie)if(ie.hasOwnProperty(ve)){var me=ie[ve];if(/^(name|fallthrough|(de|at)tach)$/.test(ve))continue;if(me=="..."){delete ie[ve];continue}for(var xe=jn(ve.split(" "),Mg),_e=0;_e<xe.length;_e++){var tt=void 0,pt=void 0;_e==xe.length-1?(pt=xe.join(" "),tt=me):(pt=xe.slice(0,_e+1).join(" "),tt="...");var ht=ae[pt];if(!ht)ae[pt]=tt;else if(ht!=tt)throw new Error("Inconsistent bindings for "+pt)}delete ie[ve]}for(var Tt in ae)ie[Tt]=ae[Tt];return ie}function Xu(ie,ae,ve,me){ae=jd(ae);var xe=ae.call?ae.call(ie,me):ae[ie];if(xe===!1)return"nothing";if(xe==="...")return"multi";if(xe!=null&&ve(xe))return"handled";if(ae.fallthrough){if(Object.prototype.toString.call(ae.fallthrough)!="[object Array]")return Xu(ie,ae.fallthrough,ve,me);for(var _e=0;_e<ae.fallthrough.length;_e++){var tt=Xu(ie,ae.fallthrough[_e],ve,me);if(tt)return tt}}}function bh(ie){var ae=typeof ie=="string"?ie:Oc[ie.keyCode];return ae=="Ctrl"||ae=="Alt"||ae=="Shift"||ae=="Mod"}function Og(ie,ae,ve){var me=ie;return ae.altKey&&me!="Alt"&&(ie="Alt-"+ie),(be?ae.metaKey:ae.ctrlKey)&&me!="Ctrl"&&(ie="Ctrl-"+ie),(be?ae.ctrlKey:ae.metaKey)&&me!="Mod"&&(ie="Cmd-"+ie),!ve&&ae.shiftKey&&me!="Shift"&&(ie="Shift-"+ie),ie}function rm(ie,ae){if(Ye&&ie.keyCode==34&&ie.char)return!1;var ve=Oc[ie.keyCode];return ve==null||ie.altGraphKey?!1:(ie.keyCode==3&&ie.code&&(ve=ie.code),Og(ve,ie,ae))}function jd(ie){return typeof ie=="string"?fu[ie]:ie}function gu(ie,ae){for(var ve=ie.doc.sel.ranges,me=[],xe=0;xe<ve.length;xe++){for(var _e=ae(ve[xe]);me.length&&wn(_e.from,kt(me).to)<=0;){var tt=me.pop();if(wn(tt.from,_e.from)<0){_e.from=tt.from;break}}me.push(_e)}da(ie,function(){for(var pt=me.length-1;pt>=0;pt--)Zu(ie.doc,"",me[pt].from,me[pt].to,"+delete");Pl(ie)})}function Dg(ie,ae,ve){var me=bn(ie.text,ae+ve,ve);return me<0||me>ie.text.length?null:me}function Ls(ie,ae,ve){var me=Dg(ie,ae.ch,ve);return me==null?null:new zt(ae.line,me,ve<0?"after":"before")}function Jh(ie,ae,ve,me,xe){if(ie){ae.doc.direction=="rtl"&&(xe=-xe);var _e=Pn(ve,ae.doc.direction);if(_e){var tt=xe<0?kt(_e):_e[0],pt=xe<0==(tt.level==1),ht=pt?"after":"before",Tt;if(tt.level>0||ae.doc.direction=="rtl"){var vn=As(ae,ve);Tt=xe<0?ve.text.length-1:0;var Ot=Fs(ae,vn,Tt).top;Tt=xn(function(Wn){return Fs(ae,vn,Wn).top==Ot},xe<0==(tt.level==1)?tt.from:tt.to-1,Tt),ht=="before"&&(Tt=Dg(ve,Tt,1))}else Tt=xe<0?tt.to:tt.from;return new zt(me,Tt,ht)}}return new zt(me,xe<0?ve.text.length:0,xe<0?"before":"after")}function Lf(ie,ae,ve,me){var xe=Pn(ae,ie.doc.direction);if(!xe)return Ls(ae,ve,me);ve.ch>=ae.text.length?(ve.ch=ae.text.length,ve.sticky="before"):ve.ch<=0&&(ve.ch=0,ve.sticky="after");var _e=Vt(xe,ve.ch,ve.sticky),tt=xe[_e];if(ie.doc.direction=="ltr"&&tt.level%2==0&&(me>0?tt.to>ve.ch:tt.from<ve.ch))return Ls(ae,ve,me);var pt=function(Er,Yr){return Dg(ae,Er instanceof zt?Er.ch:Er,Yr)},ht,Tt=function(Er){return ie.options.lineWrapping?(ht=ht||As(ie,ae),$s(ie,ae,ht,Er)):{begin:0,end:ae.text.length}},vn=Tt(ve.sticky=="before"?pt(ve,-1):ve.ch);if(ie.doc.direction=="rtl"||tt.level==1){var Ot=tt.level==1==me<0,Wn=pt(ve,Ot?1:-1);if(Wn!=null&&(Ot?Wn<=tt.to&&Wn<=vn.end:Wn>=tt.from&&Wn>=vn.begin)){var Mn=Ot?"before":"after";return new zt(ve.line,Wn,Mn)}}var Ui=function(Er,Yr,Dr){for(var io=function(is,Xs){return Xs?new zt(ve.line,pt(is,1),"before"):new zt(ve.line,is,"after")};Er>=0&&Er<xe.length;Er+=Yr){var Io=xe[Er],Rr=Yr>0==(Io.level!=1),ea=Rr?Dr.begin:pt(Dr.end,-1);if(Io.from<=ea&&ea<Io.to||(ea=Rr?Io.from:pt(Io.to,-1),Dr.begin<=ea&&ea<Dr.end))return io(ea,Rr)}},ji=Ui(_e+me,me,vn);if(ji)return ji;var nr=me>0?vn.end:pt(vn.begin,-1);return nr!=null&&!(me>0&&nr==ae.text.length)&&(ji=Ui(me>0?0:xe.length-1,me,Tt(nr)),ji)?ji:null}var pd={selectAll:Ti,singleSelection:function(ie){return ie.setSelection(ie.getCursor("anchor"),ie.getCursor("head"),Pt)},killLine:function(ie){return gu(ie,function(ae){if(ae.empty()){var ve=fi(ie.doc,ae.head.line).text.length;return ae.head.ch==ve&&ae.head.line<ie.lastLine()?{from:ae.head,to:zt(ae.head.line+1,0)}:{from:ae.head,to:zt(ae.head.line,ve)}}else return{from:ae.from(),to:ae.to()}})},deleteLine:function(ie){return gu(ie,function(ae){return{from:zt(ae.from().line,0),to:Tn(ie.doc,zt(ae.to().line+1,0))}})},delLineLeft:function(ie){return gu(ie,function(ae){return{from:zt(ae.from().line,0),to:ae.from()}})},delWrappedLineLeft:function(ie){return gu(ie,function(ae){var ve=ie.charCoords(ae.head,"div").top+5,me=ie.coordsChar({left:0,top:ve},"div");return{from:me,to:ae.from()}})},delWrappedLineRight:function(ie){return gu(ie,function(ae){var ve=ie.charCoords(ae.head,"div").top+5,me=ie.coordsChar({left:ie.display.lineDiv.offsetWidth+100,top:ve},"div");return{from:ae.from(),to:me}})},undo:function(ie){return ie.undo()},redo:function(ie){return ie.redo()},undoSelection:function(ie){return ie.undoSelection()},redoSelection:function(ie){return ie.redoSelection()},goDocStart:function(ie){return ie.extendSelection(zt(ie.firstLine(),0))},goDocEnd:function(ie){return ie.extendSelection(zt(ie.lastLine()))},goLineStart:function(ie){return ie.extendSelectionsBy(function(ae){return Eh(ie,ae.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(ie){return ie.extendSelectionsBy(function(ae){return Fg(ie,ae.head)},{origin:"+move",bias:1})},goLineEnd:function(ie){return ie.extendSelectionsBy(function(ae){return wh(ie,ae.head.line)},{origin:"+move",bias:-1})},goLineRight:function(ie){return ie.extendSelectionsBy(function(ae){var ve=ie.cursorCoords(ae.head,"div").top+5;return ie.coordsChar({left:ie.display.lineDiv.offsetWidth+100,top:ve},"div")},dn)},goLineLeft:function(ie){return ie.extendSelectionsBy(function(ae){var ve=ie.cursorCoords(ae.head,"div").top+5;return ie.coordsChar({left:0,top:ve},"div")},dn)},goLineLeftSmart:function(ie){return ie.extendSelectionsBy(function(ae){var ve=ie.cursorCoords(ae.head,"div").top+5,me=ie.coordsChar({left:0,top:ve},"div");return me.ch<ie.getLine(me.line).search(/\S/)?Fg(ie,ae.head):me},dn)},goLineUp:function(ie){return ie.moveV(-1,"line")},goLineDown:function(ie){return ie.moveV(1,"line")},goPageUp:function(ie){return ie.moveV(-1,"page")},goPageDown:function(ie){return ie.moveV(1,"page")},goCharLeft:function(ie){return ie.moveH(-1,"char")},goCharRight:function(ie){return ie.moveH(1,"char")},goColumnLeft:function(ie){return ie.moveH(-1,"column")},goColumnRight:function(ie){return ie.moveH(1,"column")},goWordLeft:function(ie){return ie.moveH(-1,"word")},goGroupRight:function(ie){return ie.moveH(1,"group")},goGroupLeft:function(ie){return ie.moveH(-1,"group")},goWordRight:function(ie){return ie.moveH(1,"word")},delCharBefore:function(ie){return ie.deleteH(-1,"codepoint")},delCharAfter:function(ie){return ie.deleteH(1,"char")},delWordBefore:function(ie){return ie.deleteH(-1,"word")},delWordAfter:function(ie){return ie.deleteH(1,"word")},delGroupBefore:function(ie){return ie.deleteH(-1,"group")},delGroupAfter:function(ie){return ie.deleteH(1,"group")},indentAuto:function(ie){return ie.indentSelection("smart")},indentMore:function(ie){return ie.indentSelection("add")},indentLess:function(ie){return ie.indentSelection("subtract")},insertTab:function(ie){return ie.replaceSelection(" ")},insertSoftTab:function(ie){for(var ae=[],ve=ie.listSelections(),me=ie.options.tabSize,xe=0;xe<ve.length;xe++){var _e=ve[xe].from(),tt=At(ie.getLine(_e.line),_e.ch,me);ae.push(On(me-tt%me))}ie.replaceSelections(ae)},defaultTab:function(ie){ie.somethingSelected()?ie.indentSelection("add"):ie.execCommand("insertTab")},transposeChars:function(ie){return da(ie,function(){for(var ae=ie.listSelections(),ve=[],me=0;me<ae.length;me++)if(ae[me].empty()){var xe=ae[me].head,_e=fi(ie.doc,xe.line).text;if(_e){if(xe.ch==_e.length&&(xe=new zt(xe.line,xe.ch-1)),xe.ch>0)xe=new zt(xe.line,xe.ch+1),ie.replaceRange(_e.charAt(xe.ch-1)+_e.charAt(xe.ch-2),zt(xe.line,xe.ch-2),xe,"+transpose");else if(xe.line>ie.doc.first){var tt=fi(ie.doc,xe.line-1).text;tt&&(xe=new zt(xe.line,1),ie.replaceRange(_e.charAt(0)+ie.doc.lineSeparator()+tt.charAt(tt.length-1),zt(xe.line-1,tt.length-1),xe,"+transpose"))}}ve.push(new oo(xe,xe))}ie.setSelections(ve)})},newlineAndIndent:function(ie){return da(ie,function(){for(var ae=ie.listSelections(),ve=ae.length-1;ve>=0;ve--)ie.replaceRange(ie.doc.lineSeparator(),ae[ve].anchor,ae[ve].head,"+input");ae=ie.listSelections();for(var me=0;me<ae.length;me++)ie.indentLine(ae[me].from().line,null,!0);Pl(ie)})},openLine:function(ie){return ie.replaceSelection(`
|
|
|
`,"start")},toggleOverwrite:function(ie){return ie.toggleOverwrite()}};function Eh(ie,ae){var ve=fi(ie.doc,ae),me=xi(ve);return me!=ve&&(ae=vt(me)),Jh(!0,ie,me,ae,1)}function wh(ie,ae){var ve=fi(ie.doc,ae),me=bi(ve);return me!=ve&&(ae=vt(me)),Jh(!0,ie,ve,ae,-1)}function Fg(ie,ae){var ve=Eh(ie,ae.line),me=fi(ie.doc,ve.line),xe=Pn(me,ie.doc.direction);if(!xe||xe[0].level==0){var _e=Math.max(ve.ch,me.text.search(/\S/)),tt=ae.line==ve.line&&ae.ch<=_e&&ae.ch;return zt(ve.line,tt?0:_e,ve.sticky)}return ve}function Ch(ie,ae,ve){if(typeof ae=="string"&&(ae=pd[ae],!ae))return!1;ie.display.input.ensurePolled();var me=ie.display.shift,xe=!1;try{ie.isReadOnly()&&(ie.state.suppressEdits=!0),ve&&(ie.display.shift=!1),xe=ae(ie)!=hn}finally{ie.display.shift=me,ie.state.suppressEdits=!1}return xe}function Bg(ie,ae,ve){for(var me=0;me<ie.state.keyMaps.length;me++){var xe=Xu(ae,ie.state.keyMaps[me],ve,ie);if(xe)return xe}return ie.options.extraKeys&&Xu(ae,ie.options.extraKeys,ve,ie)||Xu(ae,ie.options.keyMap,ve,ie)}var Dc=new ct;function Gd(ie,ae,ve,me){var xe=ie.state.keySeq;if(xe){if(bh(ae))return"handled";if(/\'$/.test(ae)?ie.state.keySeq=null:Dc.set(50,function(){ie.state.keySeq==xe&&(ie.state.keySeq=null,ie.display.input.reset())}),If(ie,xe+" "+ae,ve,me))return!0}return If(ie,ae,ve,me)}function If(ie,ae,ve,me){var xe=Bg(ie,ae,me);return xe=="multi"&&(ie.state.keySeq=ae),xe=="handled"&&pr(ie,"keyHandled",ie,ae,ve),(xe=="handled"||xe=="multi")&&(vi(ve),la(ie)),!!xe}function Mf(ie,ae){var ve=rm(ae,!0);return ve?ae.shiftKey&&!ie.state.keySeq?Gd(ie,"Shift-"+ve,ae,function(me){return Ch(ie,me,!0)})||Gd(ie,ve,ae,function(me){if(typeof me=="string"?/^go[A-Z]/.test(me):me.motion)return Ch(ie,me)}):Gd(ie,ve,ae,function(me){return Ch(ie,me)}):!1}function Rf(ie,ae,ve){return Gd(ie,"'"+ve+"'",ae,function(me){return Ch(ie,me,!0)})}var Wd=null;function _g(ie){var ae=this;if(!(ie.target&&ie.target!=ae.display.input.getField())&&(ae.curOp.focus=It(),!Zn(ae,ie))){We&&Te<11&&ie.keyCode==27&&(ie.returnValue=!1);var ve=ie.keyCode;ae.display.shift=ve==16||ie.shiftKey;var me=Mf(ae,ie);Ye&&(Wd=me?ve:null,!me&&ve==88&&!Yi&&(he?ie.metaKey:ie.ctrlKey)&&ae.replaceSelection("",null,"cut")),ce&&!he&&!me&&ve==46&&ie.shiftKey&&!ie.ctrlKey&&document.execCommand&&document.execCommand("cut"),ve==18&&!/\bCodeMirror-crosshair\b/.test(ae.display.lineDiv.className)&&Ug(ae)}}function Ug(ie){var ae=ie.display.lineDiv;Ht(ae,"CodeMirror-crosshair");function ve(me){(me.keyCode==18||!me.altKey)&&(je(ae,"CodeMirror-crosshair"),qn(document,"keyup",ve),qn(document,"mouseover",ve))}Mt(document,"keyup",ve),Mt(document,"mouseover",ve)}function zg(ie){ie.keyCode==16&&(this.doc.sel.shift=!1),Zn(this,ie)}function bc(ie){var ae=this;if(!(ie.target&&ie.target!=ae.display.input.getField())&&!(Do(ae.display,ie)||Zn(ae,ie)||ie.ctrlKey&&!ie.altKey||he&&ie.metaKey)){var ve=ie.keyCode,me=ie.charCode;if(Ye&&ve==Wd){Wd=null,vi(ie);return}if(!(Ye&&(!ie.which||ie.which<10)&&Mf(ae,ie))){var xe=String.fromCharCode(me==null?ve:me);xe!="\b"&&(Rf(ae,ie,xe)||ae.display.input.onKeyPress(ie))}}}var om=400,Hg=function(ie,ae,ve){this.time=ie,this.pos=ae,this.button=ve};Hg.prototype.compare=function(ie,ae,ve){return this.time+om>ie&&wn(ae,this.pos)==0&&ve==this.button};var Th,Vd;function jg(ie,ae){var ve=+new Date;return Vd&&Vd.compare(ve,ie,ae)?(Th=Vd=null,"triple"):Th&&Th.compare(ve,ie,ae)?(Vd=new Hg(ve,ie,ae),Th=null,"double"):(Th=new Hg(ve,ie,ae),Vd=null,"single")}function Ec(ie){var ae=this,ve=ae.display;if(!(Zn(ae,ie)||ve.activeTouch&&ve.input.supportsTouch())){if(ve.input.ensurePolled(),ve.shift=ie.shiftKey,Do(ve,ie)){Ge||(ve.scroller.draggable=!1,setTimeout(function(){return ve.scroller.draggable=!0},100));return}if(!Ff(ae,ie)){var me=cs(ae,ie),xe=fr(ie),_e=me?jg(me,xe):"single";window.focus(),xe==1&&ae.state.selectingText&&ae.state.selectingText(ie),!(me&&Gg(ae,xe,me,_e,ie))&&(xe==1?me?am(ae,me,_e,ie):cr(ie)==ve.scroller&&vi(ie):xe==2?(me&&Ku(ae.doc,me),setTimeout(function(){return ve.input.focus()},20)):xe==3&&(Ae?ae.display.input.onContextMenu(ie):Ea(ae)))}}}function Gg(ie,ae,ve,me,xe){var _e="Click";return me=="double"?_e="Double"+_e:me=="triple"&&(_e="Triple"+_e),_e=(ae==1?"Left":ae==2?"Middle":"Right")+_e,Gd(ie,Og(_e,xe),xe,function(tt){if(typeof tt=="string"&&(tt=pd[tt]),!tt)return!1;var pt=!1;try{ie.isReadOnly()&&(ie.state.suppressEdits=!0),pt=tt(ie,ve)!=hn}finally{ie.state.suppressEdits=!1}return pt})}function Of(ie,ae,ve){var me=ie.getOption("configureMouse"),xe=me?me(ie,ae,ve):{};if(xe.unit==null){var _e=se?ve.shiftKey&&ve.metaKey:ve.altKey;xe.unit=_e?"rectangle":ae=="single"?"char":ae=="double"?"word":"line"}return(xe.extend==null||ie.doc.extend)&&(xe.extend=ie.doc.extend||ve.shiftKey),xe.addNew==null&&(xe.addNew=he?ve.metaKey:ve.ctrlKey),xe.moveOnDrag==null&&(xe.moveOnDrag=!(he?ve.altKey:ve.ctrlKey)),xe}function am(ie,ae,ve,me){We?setTimeout(Qt(ga,ie),0):ie.curOp.focus=It();var xe=Of(ie,ve,me),_e=ie.doc.sel,tt;ie.options.dragDrop&&kn&&!ie.isReadOnly()&&ve=="single"&&(tt=_e.contains(ae))>-1&&(wn((tt=_e.ranges[tt]).from(),ae)<0||ae.xRel>0)&&(wn(tt.to(),ae)>0||ae.xRel<0)?Wg(ie,me,ae,xe):rv(ie,me,ae,xe)}function Wg(ie,ae,ve,me){var xe=ie.display,_e=!1,tt=vs(ie,function(Tt){Ge&&(xe.scroller.draggable=!1),ie.state.draggingText=!1,qn(xe.wrapper.ownerDocument,"mouseup",tt),qn(xe.wrapper.ownerDocument,"mousemove",pt),qn(xe.scroller,"dragstart",ht),qn(xe.scroller,"drop",tt),_e||(vi(Tt),me.addNew||Ku(ie.doc,ve,null,null,me.extend),Ge&&!yt||We&&Te==9?setTimeout(function(){xe.wrapper.ownerDocument.body.focus({preventScroll:!0}),xe.input.focus()},20):xe.input.focus())}),pt=function(Tt){_e=_e||Math.abs(ae.clientX-Tt.clientX)+Math.abs(ae.clientY-Tt.clientY)>=10},ht=function(){return _e=!0};Ge&&(xe.scroller.draggable=!0),ie.state.draggingText=tt,tt.copy=!me.moveOnDrag,xe.scroller.dragDrop&&xe.scroller.dragDrop(),Mt(xe.wrapper.ownerDocument,"mouseup",tt),Mt(xe.wrapper.ownerDocument,"mousemove",pt),Mt(xe.scroller,"dragstart",ht),Mt(xe.scroller,"drop",tt),Ea(ie),setTimeout(function(){return xe.input.focus()},20)}function Vg(ie,ae,ve){if(ve=="char")return new oo(ae,ae);if(ve=="word")return ie.findWordAt(ae);if(ve=="line")return new oo(zt(ae.line,0),Tn(ie.doc,zt(ae.line+1,0)));var me=ve(ie,ae);return new oo(me.from,me.to)}function rv(ie,ae,ve,me){var xe=ie.display,_e=ie.doc;vi(ae);var tt,pt,ht=_e.sel,Tt=ht.ranges;if(me.addNew&&!me.extend?(pt=_e.sel.contains(ve),pt>-1?tt=Tt[pt]:tt=new oo(ve,ve)):(tt=_e.sel.primary(),pt=_e.sel.primIndex),me.unit=="rectangle")me.addNew||(tt=new oo(ve,ve)),ve=cs(ie,ae,!0,!0),pt=-1;else{var vn=Vg(ie,ve,me.unit);me.extend?tt=Nu(tt,vn.anchor,vn.head,me.extend):tt=vn}me.addNew?pt==-1?(pt=Tt.length,pe(_e,fo(ie,Tt.concat([tt]),pt),{scroll:!1,origin:"*mouse"})):Tt.length>1&&Tt[pt].empty()&&me.unit=="char"&&!me.extend?(pe(_e,fo(ie,Tt.slice(0,pt).concat(Tt.slice(pt+1)),0),{scroll:!1,origin:"*mouse"}),ht=_e.sel):eu(_e,pt,tt,pn):(pt=0,pe(_e,new Mr([tt],0),pn),ht=_e.sel);var Ot=ve;function Wn(Dr){if(wn(Ot,Dr)!=0)if(Ot=Dr,me.unit=="rectangle"){for(var io=[],Io=ie.options.tabSize,Rr=At(fi(_e,ve.line).text,ve.ch,Io),ea=At(fi(_e,Dr.line).text,Dr.ch,Io),is=Math.min(Rr,ea),Xs=Math.max(Rr,ea),gs=Math.min(ve.line,Dr.line),iu=Math.min(ie.lastLine(),Math.max(ve.line,Dr.line));gs<=iu;gs++){var Il=fi(_e,gs).text,zs=_n(Il,is,Io);is==Xs?io.push(new oo(zt(gs,zs),zt(gs,zs))):Il.length>zs&&io.push(new oo(zt(gs,zs),zt(gs,_n(Il,Xs,Io))))}io.length||io.push(new oo(ve,ve)),pe(_e,fo(ie,ht.ranges.slice(0,pt).concat(io),pt),{origin:"*mouse",scroll:!1}),ie.scrollIntoView(Dr)}else{var pu=tt,bl=Vg(ie,Dr,me.unit),Hs=pu.anchor,ya;wn(bl.anchor,Hs)>0?(ya=bl.head,Hs=Mi(pu.from(),bl.anchor)):(ya=bl.anchor,Hs=Be(pu.to(),bl.head));var ys=ht.ranges.slice(0);ys[pt]=sm(ie,new oo(Tn(_e,Hs),ya)),pe(_e,fo(ie,ys,pt),pn)}}var Mn=xe.wrapper.getBoundingClientRect(),Ui=0;function ji(Dr){var io=++Ui,Io=cs(ie,Dr,!0,me.unit=="rectangle");if(Io)if(wn(Io,Ot)!=0){ie.curOp.focus=It(),Wn(Io);var Rr=jo(xe,_e);(Io.line>=Rr.to||Io.line<Rr.from)&&setTimeout(vs(ie,function(){Ui==io&&ji(Dr)}),150)}else{var ea=Dr.clientY<Mn.top?-20:Dr.clientY>Mn.bottom?20:0;ea&&setTimeout(vs(ie,function(){Ui==io&&(xe.scroller.scrollTop+=ea,ji(Dr))}),50)}}function nr(Dr){ie.state.selectingText=!1,Ui=1/0,Dr&&(vi(Dr),xe.input.focus()),qn(xe.wrapper.ownerDocument,"mousemove",Er),qn(xe.wrapper.ownerDocument,"mouseup",Yr),_e.history.lastSelOrigin=null}var Er=vs(ie,function(Dr){Dr.buttons===0||!fr(Dr)?nr(Dr):ji(Dr)}),Yr=vs(ie,nr);ie.state.selectingText=Yr,Mt(xe.wrapper.ownerDocument,"mousemove",Er),Mt(xe.wrapper.ownerDocument,"mouseup",Yr)}function sm(ie,ae){var ve=ae.anchor,me=ae.head,xe=fi(ie.doc,ve.line);if(wn(ve,me)==0&&ve.sticky==me.sticky)return ae;var _e=Pn(xe);if(!_e)return ae;var tt=Vt(_e,ve.ch,ve.sticky),pt=_e[tt];if(pt.from!=ve.ch&&pt.to!=ve.ch)return ae;var ht=tt+(pt.from==ve.ch==(pt.level!=1)?0:1);if(ht==0||ht==_e.length)return ae;var Tt;if(me.line!=ve.line)Tt=(me.line-ve.line)*(ie.doc.direction=="ltr"?1:-1)>0;else{var vn=Vt(_e,me.ch,me.sticky),Ot=vn-tt||(me.ch-ve.ch)*(pt.level==1?-1:1);vn==ht-1||vn==ht?Tt=Ot<0:Tt=Ot>0}var Wn=_e[ht+(Tt?-1:0)],Mn=Tt==(Wn.level==1),Ui=Mn?Wn.from:Wn.to,ji=Mn?"after":"before";return ve.ch==Ui&&ve.sticky==ji?ae:new oo(new zt(ve.line,Ui,ji),me)}function Df(ie,ae,ve,me){var xe,_e;if(ae.touches)xe=ae.touches[0].clientX,_e=ae.touches[0].clientY;else try{xe=ae.clientX,_e=ae.clientY}catch(Wn){return!1}if(xe>=Math.floor(ie.display.gutters.getBoundingClientRect().right))return!1;me&&vi(ae);var tt=ie.display,pt=tt.lineDiv.getBoundingClientRect();if(_e>pt.bottom||!Yn(ie,ve))return sn(ae);_e-=pt.top-tt.viewOffset;for(var ht=0;ht<ie.display.gutterSpecs.length;++ht){var Tt=tt.gutters.childNodes[ht];if(Tt&&Tt.getBoundingClientRect().right>=xe){var vn=Sn(ie.doc,_e),Ot=ie.display.gutterSpecs[ht];return Rn(ie,ve,ie,vn,Ot.className,ae),sn(ae)}}}function Ff(ie,ae){return Df(ie,ae,"gutterClick",!0)}function Bf(ie,ae){Do(ie.display,ae)||lm(ie,ae)||Zn(ie,ae,"contextmenu")||Ae||ie.display.input.onContextMenu(ae)}function lm(ie,ae){return Yn(ie,"gutterContextMenu")?Df(ie,ae,"gutterContextMenu",!1):!1}function _f(ie){ie.display.wrapper.className=ie.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+ie.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Tu(ie)}var md={toString:function(){return"CodeMirror.Init"}},Yg={},qh={};function um(ie){var ae=ie.optionHandlers;function ve(me,xe,_e,tt){ie.defaults[me]=xe,_e&&(ae[me]=tt?function(pt,ht,Tt){Tt!=md&&_e(pt,ht,Tt)}:_e)}ie.defineOption=ve,ie.Init=md,ve("value","",function(me,xe){return me.setValue(xe)},!0),ve("mode",null,function(me,xe){me.doc.modeOption=xe,eo(me)},!0),ve("indentUnit",2,eo,!0),ve("indentWithTabs",!1),ve("smartIndent",!0),ve("tabSize",4,function(me){nl(me),Tu(me),Xo(me)},!0),ve("lineSeparator",null,function(me,xe){if(me.doc.lineSep=xe,!!xe){var _e=[],tt=me.doc.first;me.doc.iter(function(ht){for(var Tt=0;;){var vn=ht.text.indexOf(xe,Tt);if(vn==-1)break;Tt=vn+xe.length,_e.push(zt(tt,vn))}tt++});for(var pt=_e.length-1;pt>=0;pt--)Zu(me.doc,xe,_e[pt],zt(_e[pt].line,_e[pt].ch+xe.length))}}),ve("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(me,xe,_e){me.state.specialChars=new RegExp(xe.source+(xe.test(" ")?"":"| "),"g"),_e!=md&&me.refresh()}),ve("specialCharPlaceholder",Xr,function(me){return me.refresh()},!0),ve("electricChars",!0),ve("inputStyle",te?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),ve("spellcheck",!1,function(me,xe){return me.getInputField().spellcheck=xe},!0),ve("autocorrect",!1,function(me,xe){return me.getInputField().autocorrect=xe},!0),ve("autocapitalize",!1,function(me,xe){return me.getInputField().autocapitalize=xe},!0),ve("rtlMoveVisually",!ge),ve("wholeLineUpdateBefore",!0),ve("theme","default",function(me){_f(me),En(me)},!0),ve("keyMap","default",function(me,xe,_e){var tt=jd(xe),pt=_e!=md&&jd(_e);pt&&pt.detach&&pt.detach(me,tt),tt.attach&&tt.attach(me,pt||null)}),ve("extraKeys",null),ve("configureMouse",null),ve("lineWrapping",!1,cm,!0),ve("gutters",[],function(me,xe){me.display.gutterSpecs=Un(xe,me.options.lineNumbers),En(me)},!0),ve("fixedGutter",!0,function(me,xe){me.display.gutters.style.left=xe?ju(me.display)+"px":"0",me.refresh()},!0),ve("coverGutterNextToScrollbar",!1,function(me){return hs(me)},!0),ve("scrollbarStyle","native",function(me){vl(me),hs(me),me.display.scrollbars.setScrollTop(me.doc.scrollTop),me.display.scrollbars.setScrollLeft(me.doc.scrollLeft)},!0),ve("lineNumbers",!1,function(me,xe){me.display.gutterSpecs=Un(me.options.gutters,xe),En(me)},!0),ve("firstLineNumber",1,En,!0),ve("lineNumberFormatter",function(me){return me},En,!0),ve("showCursorWhenSelecting",!1,es,!0),ve("resetSelectionOnContextMenu",!0),ve("lineWiseCopyCut",!0),ve("pasteLinesPerSelection",!0),ve("selectionsMayTouch",!1),ve("readOnly",!1,function(me,xe){xe=="nocursor"&&(Gu(me),me.display.input.blur()),me.display.input.readOnlyChanged(xe)}),ve("screenReaderLabel",null,function(me,xe){xe=xe===""?null:xe,me.display.input.screenReaderLabelChanged(xe)}),ve("disableInput",!1,function(me,xe){xe||me.display.input.reset()},!0),ve("dragDrop",!0,Uf),ve("allowDropFileTypes",null),ve("cursorBlinkRate",530),ve("cursorScrollMargin",0),ve("cursorHeight",1,es,!0),ve("singleCursorHeightPerLine",!0,es,!0),ve("workTime",100),ve("workDelay",100),ve("flattenSpans",!0,nl,!0),ve("addModeClass",!1,nl,!0),ve("pollInterval",100),ve("undoDepth",200,function(me,xe){return me.doc.history.undoDepth=xe}),ve("historyEventDelay",1250),ve("viewportMargin",10,function(me){return me.refresh()},!0),ve("maxHighlightLength",1e4,nl,!0),ve("moveInputWithCursor",!0,function(me,xe){xe||me.display.input.resetPosition()}),ve("tabindex",null,function(me,xe){return me.display.input.getField().tabIndex=xe||""}),ve("autofocus",null),ve("direction","ltr",function(me,xe){return me.doc.setDirection(xe)},!0),ve("phrases",null)}function Uf(ie,ae,ve){var me=ve&&ve!=md;if(!ae!=!me){var xe=ie.display.dragFunctions,_e=ae?Mt:qn;_e(ie.display.scroller,"dragstart",xe.start),_e(ie.display.scroller,"dragenter",xe.enter),_e(ie.display.scroller,"dragover",xe.over),_e(ie.display.scroller,"dragleave",xe.leave),_e(ie.display.scroller,"drop",xe.drop)}}function cm(ie){ie.options.lineWrapping?(Ht(ie.display.wrapper,"CodeMirror-wrap"),ie.display.sizer.style.minWidth="",ie.display.sizerWidth=null):(je(ie.display.wrapper,"CodeMirror-wrap"),Lr(ie)),$r(ie),Xo(ie),Tu(ie),setTimeout(function(){return hs(ie)},100)}function va(ie,ae){var ve=this;if(!(this instanceof va))return new va(ie,ae);this.options=ae=ae?nn(ae):{},nn(Yg,ae,!1);var me=ae.value;typeof me=="string"?me=new xl(me,ae.mode,null,ae.lineSeparator,ae.direction):ae.mode&&(me.modeOption=ae.mode),this.doc=me;var xe=new va.inputStyles[ae.inputStyle](this),_e=this.display=new si(ie,me,xe,ae);_e.wrapper.CodeMirror=this,_f(this),ae.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),vl(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 ct,keySeq:null,specialChars:null},ae.autofocus&&!te&&_e.input.focus(),We&&Te<11&&setTimeout(function(){return ve.display.input.reset(!0)},20),Ah(this),Lu(),el(this),this.curOp.forceUpdate=!0,aa(this,me),ae.autofocus&&!te||this.hasFocus()?setTimeout(function(){ve.hasFocus()&&!ve.state.focused&&Bo(ve)},20):Gu(this);for(var tt in qh)qh.hasOwnProperty(tt)&&qh[tt](this,ae[tt],md);Xt(this),ae.finishInit&&ae.finishInit(this);for(var pt=0;pt<Yd.length;++pt)Yd[pt](this);Ul(this),Ge&&ae.lineWrapping&&getComputedStyle(_e.lineDiv).textRendering=="optimizelegibility"&&(_e.lineDiv.style.textRendering="auto")}va.defaults=Yg,va.optionHandlers=qh;function Ah(ie){var ae=ie.display;Mt(ae.scroller,"mousedown",vs(ie,Ec)),We&&Te<11?Mt(ae.scroller,"dblclick",vs(ie,function(ht){if(!Zn(ie,ht)){var Tt=cs(ie,ht);if(!(!Tt||Ff(ie,ht)||Do(ie.display,ht))){vi(ht);var vn=ie.findWordAt(Tt);Ku(ie.doc,vn.anchor,vn.head)}}})):Mt(ae.scroller,"dblclick",function(ht){return Zn(ie,ht)||vi(ht)}),Mt(ae.scroller,"contextmenu",function(ht){return Bf(ie,ht)}),Mt(ae.input.getField(),"contextmenu",function(ht){ae.scroller.contains(ht.target)||Bf(ie,ht)});var ve,me={end:0};function xe(){ae.activeTouch&&(ve=setTimeout(function(){return ae.activeTouch=null},1e3),me=ae.activeTouch,me.end=+new Date)}function _e(ht){if(ht.touches.length!=1)return!1;var Tt=ht.touches[0];return Tt.radiusX<=1&&Tt.radiusY<=1}function tt(ht,Tt){if(Tt.left==null)return!0;var vn=Tt.left-ht.left,Ot=Tt.top-ht.top;return vn*vn+Ot*Ot>20*20}Mt(ae.scroller,"touchstart",function(ht){if(!Zn(ie,ht)&&!_e(ht)&&!Ff(ie,ht)){ae.input.ensurePolled(),clearTimeout(ve);var Tt=+new Date;ae.activeTouch={start:Tt,moved:!1,prev:Tt-me.end<=300?me:null},ht.touches.length==1&&(ae.activeTouch.left=ht.touches[0].pageX,ae.activeTouch.top=ht.touches[0].pageY)}}),Mt(ae.scroller,"touchmove",function(){ae.activeTouch&&(ae.activeTouch.moved=!0)}),Mt(ae.scroller,"touchend",function(ht){var Tt=ae.activeTouch;if(Tt&&!Do(ae,ht)&&Tt.left!=null&&!Tt.moved&&new Date-Tt.start<300){var vn=ie.coordsChar(ae.activeTouch,"page"),Ot;!Tt.prev||tt(Tt,Tt.prev)?Ot=new oo(vn,vn):!Tt.prev.prev||tt(Tt,Tt.prev.prev)?Ot=ie.findWordAt(vn):Ot=new oo(zt(vn.line,0),Tn(ie.doc,zt(vn.line+1,0))),ie.setSelection(Ot.anchor,Ot.head),ie.focus(),vi(ht)}xe()}),Mt(ae.scroller,"touchcancel",xe),Mt(ae.scroller,"scroll",function(){ae.scroller.clientHeight&&(kl(ie,ae.scroller.scrollTop),_l(ie,ae.scroller.scrollLeft,!0),Rn(ie,"scroll",ie))}),Mt(ae.scroller,"mousewheel",function(ht){return Uo(ie,ht)}),Mt(ae.scroller,"DOMMouseScroll",function(ht){return Uo(ie,ht)}),Mt(ae.wrapper,"scroll",function(){return ae.wrapper.scrollTop=ae.wrapper.scrollLeft=0}),ae.dragFunctions={enter:function(ht){Zn(ie,ht)||Xi(ht)},over:function(ht){Zn(ie,ht)||(tm(ie,ht),Xi(ht))},start:function(ht){return em(ie,ht)},drop:vs(ie,kg),leave:function(ht){Zn(ie,ht)||nm(ie)}};var pt=ae.input.getField();Mt(pt,"keyup",function(ht){return zg.call(ie,ht)}),Mt(pt,"keydown",vs(ie,_g)),Mt(pt,"keypress",vs(ie,bc)),Mt(pt,"focus",function(ht){return Bo(ie,ht)}),Mt(pt,"blur",function(ht){return Gu(ie,ht)})}var Yd=[];va.defineInitHook=function(ie){return Yd.push(ie)};function Zs(ie,ae,ve,me){var xe=ie.doc,_e;ve==null&&(ve="add"),ve=="smart"&&(xe.mode.indent?_e=ro(ie,ae).state:ve="prev");var tt=ie.options.tabSize,pt=fi(xe,ae),ht=At(pt.text,null,tt);pt.stateAfter&&(pt.stateAfter=null);var Tt=pt.text.match(/^\s*/)[0],vn;if(!me&&!/\S/.test(pt.text))vn=0,ve="not";else if(ve=="smart"&&(vn=xe.mode.indent(_e,pt.text.slice(Tt.length),pt.text),vn==hn||vn>150)){if(!me)return;ve="prev"}ve=="prev"?ae>xe.first?vn=At(fi(xe,ae-1).text,null,tt):vn=0:ve=="add"?vn=ht+ie.options.indentUnit:ve=="subtract"?vn=ht-ie.options.indentUnit:typeof ve=="number"&&(vn=ht+ve),vn=Math.max(0,vn);var Ot="",Wn=0;if(ie.options.indentWithTabs)for(var Mn=Math.floor(vn/tt);Mn;--Mn)Wn+=tt,Ot+=" ";if(Wn<vn&&(Ot+=On(vn-Wn)),Ot!=Tt)return Zu(xe,Ot,zt(ae,0),zt(ae,Tt.length),"+input"),pt.stateAfter=null,!0;for(var Ui=0;Ui<xe.sel.ranges.length;Ui++){var ji=xe.sel.ranges[Ui];if(ji.head.line==ae&&ji.head.ch<Tt.length){var nr=zt(ae,Tt.length);eu(xe,Ui,new oo(nr,nr));break}}}var nu=null;function Kd(ie){nu=ie}function $h(ie,ae,ve,me,xe){var _e=ie.doc;ie.display.shift=!1,me||(me=_e.sel);var tt=+new Date-200,pt=xe=="paste"||ie.state.pasteIncoming>tt,ht=wr(ae),Tt=null;if(pt&&me.ranges.length>1)if(nu&&nu.text.join(`
|
|
|
`)==ae){if(me.ranges.length%nu.text.length==0){Tt=[];for(var vn=0;vn<nu.text.length;vn++)Tt.push(_e.splitLines(nu.text[vn]))}}else ht.length==me.ranges.length&&ie.options.pasteLinesPerSelection&&(Tt=jn(ht,function(Er){return[Er]}));for(var Ot=ie.curOp.updateInput,Wn=me.ranges.length-1;Wn>=0;Wn--){var Mn=me.ranges[Wn],Ui=Mn.from(),ji=Mn.to();Mn.empty()&&(ve&&ve>0?Ui=zt(Ui.line,Ui.ch-ve):ie.state.overwrite&&!pt?ji=zt(ji.line,Math.min(fi(_e,ji.line).text.length,ji.ch+kt(ht).length)):pt&&nu&&nu.lineWise&&nu.text.join(`
|
|
|
`)==ht.join(`
|
|
|
`)&&(Ui=ji=zt(Ui.line,0)));var nr={from:Ui,to:ji,text:Tt?Tt[Wn%Tt.length]:ht,origin:xe||(pt?"paste":ie.state.cutIncoming>tt?"cut":"+input")};zo(ie.doc,nr),pr(ie,"inputRead",ie,nr)}ae&&!pt&&Zg(ie,ae),Pl(ie),ie.curOp.updateInput<2&&(ie.curOp.updateInput=Ot),ie.curOp.typing=!0,ie.state.pasteIncoming=ie.state.cutIncoming=-1}function Kg(ie,ae){var ve=ie.clipboardData&&ie.clipboardData.getData("Text");if(ve)return ie.preventDefault(),!ae.isReadOnly()&&!ae.options.disableInput&&da(ae,function(){return $h(ae,ve,0,null,"paste")}),!0}function Zg(ie,ae){if(!(!ie.options.electricChars||!ie.options.smartIndent))for(var ve=ie.doc.sel,me=ve.ranges.length-1;me>=0;me--){var xe=ve.ranges[me];if(!(xe.head.ch>100||me&&ve.ranges[me-1].head.line==xe.head.line)){var _e=ie.getModeAt(xe.head),tt=!1;if(_e.electricChars){for(var pt=0;pt<_e.electricChars.length;pt++)if(ae.indexOf(_e.electricChars.charAt(pt))>-1){tt=Zs(ie,xe.head.line,"smart");break}}else _e.electricInput&&_e.electricInput.test(fi(ie.doc,xe.head.line).text.slice(0,xe.head.ch))&&(tt=Zs(ie,xe.head.line,"smart"));tt&&pr(ie,"electricInput",ie,xe.head.line)}}}function Xg(ie){for(var ae=[],ve=[],me=0;me<ie.doc.sel.ranges.length;me++){var xe=ie.doc.sel.ranges[me].head.line,_e={anchor:zt(xe,0),head:zt(xe+1,0)};ve.push(_e),ae.push(ie.getRange(_e.anchor,_e.head))}return{text:ae,ranges:ve}}function Qg(ie,ae,ve,me){ie.setAttribute("autocorrect",ve?"":"off"),ie.setAttribute("autocapitalize",me?"":"off"),ie.setAttribute("spellcheck",!!ae)}function Jg(){var ie=nt("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),ae=nt("div",[ie],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return Ge?ie.style.width="1000px":ie.setAttribute("wrap","off"),Fe&&(ie.style.border="1px solid black"),Qg(ie),ae}function vd(ie){var ae=ie.optionHandlers,ve=ie.helpers={};ie.prototype={constructor:ie,focus:function(){window.focus(),this.display.input.focus()},setOption:function(me,xe){var _e=this.options,tt=_e[me];_e[me]==xe&&me!="mode"||(_e[me]=xe,ae.hasOwnProperty(me)&&vs(this,ae[me])(this,xe,tt),Rn(this,"optionChange",this,me))},getOption:function(me){return this.options[me]},getDoc:function(){return this.doc},addKeyMap:function(me,xe){this.state.keyMaps[xe?"push":"unshift"](jd(me))},removeKeyMap:function(me){for(var xe=this.state.keyMaps,_e=0;_e<xe.length;++_e)if(xe[_e]==me||xe[_e].name==me)return xe.splice(_e,1),!0},addOverlay:Ns(function(me,xe){var _e=me.token?me:ie.getMode(this.options,me);if(_e.startState)throw new Error("Overlays may not be stateful.");ai(this.state.overlays,{mode:_e,modeSpec:me,opaque:xe&&xe.opaque,priority:xe&&xe.priority||0},function(tt){return tt.priority}),this.state.modeGen++,Xo(this)}),removeOverlay:Ns(function(me){for(var xe=this.state.overlays,_e=0;_e<xe.length;++_e){var tt=xe[_e].modeSpec;if(tt==me||typeof me=="string"&&tt.name==me){xe.splice(_e,1),this.state.modeGen++,Xo(this);return}}}),indentLine:Ns(function(me,xe,_e){typeof xe!="string"&&typeof xe!="number"&&(xe==null?xe=this.options.smartIndent?"smart":"prev":xe=xe?"add":"subtract"),ri(this.doc,me)&&Zs(this,me,xe,_e)}),indentSelection:Ns(function(me){for(var xe=this.doc.sel.ranges,_e=-1,tt=0;tt<xe.length;tt++){var pt=xe[tt];if(pt.empty())pt.head.line>_e&&(Zs(this,pt.head.line,me,!0),_e=pt.head.line,tt==this.doc.sel.primIndex&&Pl(this));else{var ht=pt.from(),Tt=pt.to(),vn=Math.max(_e,ht.line);_e=Math.min(this.lastLine(),Tt.line-(Tt.ch?0:1))+1;for(var Ot=vn;Ot<_e;++Ot)Zs(this,Ot,me);var Wn=this.doc.sel.ranges;ht.ch==0&&xe.length==Wn.length&&Wn[tt].from().ch>0&&eu(this.doc,tt,new oo(ht,Wn[tt].to()),Pt)}}}),getTokenAt:function(me,xe){return Gi(this,me,xe)},getLineTokens:function(me,xe){return Gi(this,zt(me),xe,!0)},getTokenTypeAt:function(me){me=Tn(this.doc,me);var xe=sr(this,fi(this.doc,me.line)),_e=0,tt=(xe.length-1)/2,pt=me.ch,ht;if(pt==0)ht=xe[2];else for(;;){var Tt=_e+tt>>1;if((Tt?xe[Tt*2-1]:0)>=pt)tt=Tt;else if(xe[Tt*2+1]<pt)_e=Tt+1;else{ht=xe[Tt*2+2];break}}var vn=ht?ht.indexOf("overlay "):-1;return vn<0?ht:vn==0?null:ht.slice(0,vn-1)},getModeAt:function(me){var xe=this.doc.mode;return xe.innerMode?ie.innerMode(xe,this.getTokenAt(me).state).mode:xe},getHelper:function(me,xe){return this.getHelpers(me,xe)[0]},getHelpers:function(me,xe){var _e=[];if(!ve.hasOwnProperty(xe))return _e;var tt=ve[xe],pt=this.getModeAt(me);if(typeof pt[xe]=="string")tt[pt[xe]]&&_e.push(tt[pt[xe]]);else if(pt[xe])for(var ht=0;ht<pt[xe].length;ht++){var Tt=tt[pt[xe][ht]];Tt&&_e.push(Tt)}else pt.helperType&&tt[pt.helperType]?_e.push(tt[pt.helperType]):tt[pt.name]&&_e.push(tt[pt.name]);for(var vn=0;vn<tt._global.length;vn++){var Ot=tt._global[vn];Ot.pred(pt,this)&&at(_e,Ot.val)==-1&&_e.push(Ot.val)}return _e},getStateAfter:function(me,xe){var _e=this.doc;return me=ui(_e,me==null?_e.first+_e.size-1:me),ro(this,me+1,xe).state},cursorCoords:function(me,xe){var _e,tt=this.doc.sel.primary();return me==null?_e=tt.head:typeof me=="object"?_e=Tn(this.doc,me):_e=me?tt.from():tt.to(),Fo(this,_e,xe||"page")},charCoords:function(me,xe){return Eo(this,Tn(this.doc,me),xe||"page")},coordsChar:function(me,xe){return me=ia(this,me,xe||"page"),Fa(this,me.left,me.top)},lineAtHeight:function(me,xe){return me=ia(this,{top:me,left:0},xe||"page").top,Sn(this.doc,me+this.display.viewOffset)},heightAtLine:function(me,xe,_e){var tt=!1,pt;if(typeof me=="number"){var ht=this.doc.first+this.doc.size-1;me<this.doc.first?me=this.doc.first:me>ht&&(me=ht,tt=!0),pt=fi(this.doc,me)}else pt=me;return Xa(this,pt,{top:0,left:0},xe||"page",_e||tt).top+(tt?this.doc.height-ar(pt):0)},defaultTextHeight:function(){return Ws(this.display)},defaultCharWidth:function(){return uu(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(me,xe,_e,tt,pt){var ht=this.display;me=Fo(this,Tn(this.doc,me));var Tt=me.bottom,vn=me.left;if(xe.style.position="absolute",xe.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(xe),ht.sizer.appendChild(xe),tt=="over")Tt=me.top;else if(tt=="above"||tt=="near"){var Ot=Math.max(ht.wrapper.clientHeight,this.doc.height),Wn=Math.max(ht.sizer.clientWidth,ht.lineSpace.clientWidth);(tt=="above"||me.bottom+xe.offsetHeight>Ot)&&me.top>xe.offsetHeight?Tt=me.top-xe.offsetHeight:me.bottom+xe.offsetHeight<=Ot&&(Tt=me.bottom),vn+xe.offsetWidth>Wn&&(vn=Wn-xe.offsetWidth)}xe.style.top=Tt+"px",xe.style.left=xe.style.right="",pt=="right"?(vn=ht.sizer.clientWidth-xe.offsetWidth,xe.style.right="0px"):(pt=="left"?vn=0:pt=="middle"&&(vn=(ht.sizer.clientWidth-xe.offsetWidth)/2),xe.style.left=vn+"px"),_e&&Jl(this,{left:vn,top:Tt,right:vn+xe.offsetWidth,bottom:Tt+xe.offsetHeight})},triggerOnKeyDown:Ns(_g),triggerOnKeyPress:Ns(bc),triggerOnKeyUp:zg,triggerOnMouseDown:Ns(Ec),execCommand:function(me){if(pd.hasOwnProperty(me))return pd[me].call(null,this)},triggerElectric:Ns(function(me){Zg(this,me)}),findPosH:function(me,xe,_e,tt){var pt=1;xe<0&&(pt=-1,xe=-xe);for(var ht=Tn(this.doc,me),Tt=0;Tt<xe&&(ht=ef(this.doc,ht,pt,_e,tt),!ht.hitSide);++Tt);return ht},moveH:Ns(function(me,xe){var _e=this;this.extendSelectionsBy(function(tt){return _e.display.shift||_e.doc.extend||tt.empty()?ef(_e.doc,tt.head,me,xe,_e.options.rtlMoveVisually):me<0?tt.from():tt.to()},dn)}),deleteH:Ns(function(me,xe){var _e=this.doc.sel,tt=this.doc;_e.somethingSelected()?tt.replaceSelection("",null,"+delete"):gu(this,function(pt){var ht=ef(tt,pt.head,me,xe,!1);return me<0?{from:ht,to:pt.head}:{from:pt.head,to:ht}})}),findPosV:function(me,xe,_e,tt){var pt=1,ht=tt;xe<0&&(pt=-1,xe=-xe);for(var Tt=Tn(this.doc,me),vn=0;vn<xe;++vn){var Ot=Fo(this,Tt,"div");if(ht==null?ht=Ot.left:Ot.left=ht,Tt=yd(this,Ot,pt,_e),Tt.hitSide)break}return Tt},moveV:Ns(function(me,xe){var _e=this,tt=this.doc,pt=[],ht=!this.display.shift&&!tt.extend&&tt.sel.somethingSelected();if(tt.extendSelectionsBy(function(vn){if(ht)return me<0?vn.from():vn.to();var Ot=Fo(_e,vn.head,"div");vn.goalColumn!=null&&(Ot.left=vn.goalColumn),pt.push(Ot.left);var Wn=yd(_e,Ot,me,xe);return xe=="page"&&vn==tt.sel.primary()&&xc(_e,Eo(_e,Wn,"div").top-Ot.top),Wn},dn),pt.length)for(var Tt=0;Tt<tt.sel.ranges.length;Tt++)tt.sel.ranges[Tt].goalColumn=pt[Tt]}),findWordAt:function(me){var xe=this.doc,_e=fi(xe,me.line).text,tt=me.ch,pt=me.ch;if(_e){var ht=this.getHelper(me,"wordChars");(me.sticky=="before"||pt==_e.length)&&tt?--tt:++pt;for(var Tt=_e.charAt(tt),vn=ut(Tt,ht)?function(Ot){return ut(Ot,ht)}:/\s/.test(Tt)?function(Ot){return/\s/.test(Ot)}:function(Ot){return!/\s/.test(Ot)&&!ut(Ot)};tt>0&&vn(_e.charAt(tt-1));)--tt;for(;pt<_e.length&&vn(_e.charAt(pt));)++pt}return new oo(zt(me.line,tt),zt(me.line,pt))},toggleOverwrite:function(me){me!=null&&me==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?Ht(this.display.cursorDiv,"CodeMirror-overwrite"):je(this.display.cursorDiv,"CodeMirror-overwrite"),Rn(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==It()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Ns(function(me,xe){Nl(this,me,xe)}),getScrollInfo:function(){var me=this.display.scroller;return{left:me.scrollLeft,top:me.scrollTop,height:me.scrollHeight-Po(this)-this.display.barHeight,width:me.scrollWidth-Po(this)-this.display.barWidth,clientHeight:bs(this),clientWidth:ka(this)}},scrollIntoView:Ns(function(me,xe){me==null?(me={from:this.doc.sel.primary().head,to:null},xe==null&&(xe=this.options.cursorScrollMargin)):typeof me=="number"?me={from:zt(me,0),to:null}:me.from==null&&(me={from:me,to:null}),me.to||(me.to=me.from),me.margin=xe||0,me.from.line!=null?Vo(this,me):Wu(this,me.from,me.to,me.margin)}),setSize:Ns(function(me,xe){var _e=this,tt=function(ht){return typeof ht=="number"||/^\d+$/.test(String(ht))?ht+"px":ht};me!=null&&(this.display.wrapper.style.width=tt(me)),xe!=null&&(this.display.wrapper.style.height=tt(xe)),this.options.lineWrapping&&Cu(this);var pt=this.display.viewFrom;this.doc.iter(pt,this.display.viewTo,function(ht){if(ht.widgets){for(var Tt=0;Tt<ht.widgets.length;Tt++)if(ht.widgets[Tt].noHScroll){No(_e,pt,"widget");break}}++pt}),this.curOp.forceUpdate=!0,Rn(this,"refresh",this)}),operation:function(me){return da(this,me)},startOperation:function(){return el(this)},endOperation:function(){return Ul(this)},refresh:Ns(function(){var me=this.display.cachedTextHeight;Xo(this),this.curOp.forceUpdate=!0,Tu(this),Nl(this,this.doc.scrollLeft,this.doc.scrollTop),xt(this.display),(me==null||Math.abs(me-Ws(this.display))>.5||this.options.lineWrapping)&&$r(this),Rn(this,"refresh",this)}),swapDoc:Ns(function(me){var xe=this.doc;return xe.cm=null,this.state.selectingText&&this.state.selectingText(),aa(this,me),Tu(this),this.display.input.reset(),Nl(this,me.scrollLeft,me.scrollTop),this.curOp.forceScroll=!0,pr(this,"swapDoc",this,xe),xe}),phrase:function(me){var xe=this.options.phrases;return xe&&Object.prototype.hasOwnProperty.call(xe,me)?xe[me]:me},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}},Et(ie),ie.registerHelper=function(me,xe,_e){ve.hasOwnProperty(me)||(ve[me]=ie[me]={_global:[]}),ve[me][xe]=_e},ie.registerGlobalHelper=function(me,xe,_e,tt){ie.registerHelper(me,xe,tt),ve[me]._global.push({pred:_e,val:tt})}}function ef(ie,ae,ve,me,xe){var _e=ae,tt=ve,pt=fi(ie,ae.line),ht=xe&&ie.direction=="rtl"?-ve:ve;function Tt(){var Yr=ae.line+ht;return Yr<ie.first||Yr>=ie.first+ie.size?!1:(ae=new zt(Yr,ae.ch,ae.sticky),pt=fi(ie,Yr))}function vn(Yr){var Dr;if(me=="codepoint"){var io=pt.text.charCodeAt(ae.ch+(me>0?0:-1));isNaN(io)?Dr=null:Dr=new zt(ae.line,Math.max(0,Math.min(pt.text.length,ae.ch+ve*(io>=55296&&io<56320?2:1))),-ve)}else xe?Dr=Lf(ie.cm,pt,ae,ve):Dr=Ls(pt,ae,ve);if(Dr==null)if(!Yr&&Tt())ae=Jh(xe,ie.cm,pt,ae.line,ht);else return!1;else ae=Dr;return!0}if(me=="char"||me=="codepoint")vn();else if(me=="column")vn(!0);else if(me=="word"||me=="group")for(var Ot=null,Wn=me=="group",Mn=ie.cm&&ie.cm.getHelper(ae,"wordChars"),Ui=!0;!(ve<0&&!vn(!Ui));Ui=!1){var ji=pt.text.charAt(ae.ch)||`
|
|
|
`,nr=ut(ji,Mn)?"w":Wn&&ji==`
|
|
|
`?"n":!Wn||/\s/.test(ji)?null:"p";if(Wn&&!Ui&&!nr&&(nr="s"),Ot&&Ot!=nr){ve<0&&(ve=1,vn(),ae.sticky="after");break}if(nr&&(Ot=nr),ve>0&&!vn(!Ui))break}var Er=so(ie,ae,_e,tt,!0);return oi(_e,Er)&&(Er.hitSide=!0),Er}function yd(ie,ae,ve,me){var xe=ie.doc,_e=ae.left,tt;if(me=="page"){var pt=Math.min(ie.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),ht=Math.max(pt-.5*Ws(ie.display),3);tt=(ve>0?ae.bottom:ae.top)+ve*ht}else me=="line"&&(tt=ve>0?ae.bottom+3:ae.top-3);for(var Tt;Tt=Fa(ie,_e,tt),!!Tt.outside;){if(ve<0?tt<=0:tt>=xe.height){Tt.hitSide=!0;break}tt+=ve*5}return Tt}var Ua=function(ie){this.cm=ie,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new ct,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Ua.prototype.init=function(ie){var ae=this,ve=this,me=ve.cm,xe=ve.div=ie.lineDiv;Qg(xe,me.options.spellcheck,me.options.autocorrect,me.options.autocapitalize);function _e(pt){for(var ht=pt.target;ht;ht=ht.parentNode){if(ht==xe)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(ht.className))break}return!1}Mt(xe,"paste",function(pt){!_e(pt)||Zn(me,pt)||Kg(pt,me)||Te<=11&&setTimeout(vs(me,function(){return ae.updateFromDOM()}),20)}),Mt(xe,"compositionstart",function(pt){ae.composing={data:pt.data,done:!1}}),Mt(xe,"compositionupdate",function(pt){ae.composing||(ae.composing={data:pt.data,done:!1})}),Mt(xe,"compositionend",function(pt){ae.composing&&(pt.data!=ae.composing.data&&ae.readFromDOMSoon(),ae.composing.done=!0)}),Mt(xe,"touchstart",function(){return ve.forceCompositionEnd()}),Mt(xe,"input",function(){ae.composing||ae.readFromDOMSoon()});function tt(pt){if(!(!_e(pt)||Zn(me,pt))){if(me.somethingSelected())Kd({lineWise:!1,text:me.getSelections()}),pt.type=="cut"&&me.replaceSelection("",null,"cut");else if(me.options.lineWiseCopyCut){var ht=Xg(me);Kd({lineWise:!0,text:ht.text}),pt.type=="cut"&&me.operation(function(){me.setSelections(ht.ranges,0,Pt),me.replaceSelection("",null,"cut")})}else return;if(pt.clipboardData){pt.clipboardData.clearData();var Tt=nu.text.join(`
|
|
|
`);if(pt.clipboardData.setData("Text",Tt),pt.clipboardData.getData("Text")==Tt){pt.preventDefault();return}}var vn=Jg(),Ot=vn.firstChild;me.display.lineSpace.insertBefore(vn,me.display.lineSpace.firstChild),Ot.value=nu.text.join(`
|
|
|
`);var Wn=document.activeElement;un(Ot),setTimeout(function(){me.display.lineSpace.removeChild(vn),Wn.focus(),Wn==xe&&ve.showPrimarySelection()},50)}}Mt(xe,"copy",tt),Mt(xe,"cut",tt)},Ua.prototype.screenReaderLabelChanged=function(ie){ie?this.div.setAttribute("aria-label",ie):this.div.removeAttribute("aria-label")},Ua.prototype.prepareSelection=function(){var ie=cu(this.cm,!1);return ie.focus=document.activeElement==this.div,ie},Ua.prototype.showSelection=function(ie,ae){!ie||!this.cm.display.view.length||((ie.focus||ae)&&this.showPrimarySelection(),this.showMultipleSelections(ie))},Ua.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Ua.prototype.showPrimarySelection=function(){var ie=this.getSelection(),ae=this.cm,ve=ae.doc.sel.primary(),me=ve.from(),xe=ve.to();if(ae.display.viewTo==ae.display.viewFrom||me.line>=ae.display.viewTo||xe.line<ae.display.viewFrom){ie.removeAllRanges();return}var _e=tf(ae,ie.anchorNode,ie.anchorOffset),tt=tf(ae,ie.focusNode,ie.focusOffset);if(!(_e&&!_e.bad&&tt&&!tt.bad&&wn(Mi(_e,tt),me)==0&&wn(Be(_e,tt),xe)==0)){var pt=ae.display.view,ht=me.line>=ae.display.viewFrom&&zf(ae,me)||{node:pt[0].measure.map[2],offset:0},Tt=xe.line<ae.display.viewTo&&zf(ae,xe);if(!Tt){var vn=pt[pt.length-1].measure,Ot=vn.maps?vn.maps[vn.maps.length-1]:vn.map;Tt={node:Ot[Ot.length-1],offset:Ot[Ot.length-2]-Ot[Ot.length-3]}}if(!ht||!Tt){ie.removeAllRanges();return}var Wn=ie.rangeCount&&ie.getRangeAt(0),Mn;try{Mn=it(ht.node,ht.offset,Tt.offset,Tt.node)}catch(Ui){}Mn&&(!ce&&ae.state.focused?(ie.collapse(ht.node,ht.offset),Mn.collapsed||(ie.removeAllRanges(),ie.addRange(Mn))):(ie.removeAllRanges(),ie.addRange(Mn)),Wn&&ie.anchorNode==null?ie.addRange(Wn):ce&&this.startGracePeriod()),this.rememberSelection()}},Ua.prototype.startGracePeriod=function(){var ie=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){ie.gracePeriod=!1,ie.selectionChanged()&&ie.cm.operation(function(){return ie.cm.curOp.selectionChanged=!0})},20)},Ua.prototype.showMultipleSelections=function(ie){qe(this.cm.display.cursorDiv,ie.cursors),qe(this.cm.display.selectionDiv,ie.selection)},Ua.prototype.rememberSelection=function(){var ie=this.getSelection();this.lastAnchorNode=ie.anchorNode,this.lastAnchorOffset=ie.anchorOffset,this.lastFocusNode=ie.focusNode,this.lastFocusOffset=ie.focusOffset},Ua.prototype.selectionInEditor=function(){var ie=this.getSelection();if(!ie.rangeCount)return!1;var ae=ie.getRangeAt(0).commonAncestorContainer;return bt(this.div,ae)},Ua.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},Ua.prototype.blur=function(){this.div.blur()},Ua.prototype.getField=function(){return this.div},Ua.prototype.supportsTouch=function(){return!0},Ua.prototype.receivedFocus=function(){var ie=this;this.selectionInEditor()?this.pollSelection():da(this.cm,function(){return ie.cm.curOp.selectionChanged=!0});function ae(){ie.cm.state.focused&&(ie.pollSelection(),ie.polling.set(ie.cm.options.pollInterval,ae))}this.polling.set(this.cm.options.pollInterval,ae)},Ua.prototype.selectionChanged=function(){var ie=this.getSelection();return ie.anchorNode!=this.lastAnchorNode||ie.anchorOffset!=this.lastAnchorOffset||ie.focusNode!=this.lastFocusNode||ie.focusOffset!=this.lastFocusOffset},Ua.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var ie=this.getSelection(),ae=this.cm;if(ne&&Qe&&this.cm.display.gutterSpecs.length&&qg(ie.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var ve=tf(ae,ie.anchorNode,ie.anchorOffset),me=tf(ae,ie.focusNode,ie.focusOffset);ve&&me&&da(ae,function(){pe(ae.doc,Aa(ve,me),Pt),(ve.bad||me.bad)&&(ae.curOp.selectionChanged=!0)})}}},Ua.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var ie=this.cm,ae=ie.display,ve=ie.doc.sel.primary(),me=ve.from(),xe=ve.to();if(me.ch==0&&me.line>ie.firstLine()&&(me=zt(me.line-1,fi(ie.doc,me.line-1).length)),xe.ch==fi(ie.doc,xe.line).text.length&&xe.line<ie.lastLine()&&(xe=zt(xe.line+1,0)),me.line<ae.viewFrom||xe.line>ae.viewTo-1)return!1;var _e,tt,pt;me.line==ae.viewFrom||(_e=Ms(ie,me.line))==0?(tt=vt(ae.view[0].line),pt=ae.view[0].node):(tt=vt(ae.view[_e].line),pt=ae.view[_e-1].node.nextSibling);var ht=Ms(ie,xe.line),Tt,vn;if(ht==ae.view.length-1?(Tt=ae.viewTo-1,vn=ae.lineDiv.lastChild):(Tt=vt(ae.view[ht+1].line)-1,vn=ae.view[ht+1].node.previousSibling),!pt)return!1;for(var Ot=ie.doc.splitLines(Nh(ie,pt,vn,tt,Tt)),Wn=on(ie.doc,zt(tt,0),zt(Tt,fi(ie.doc,Tt).text.length));Ot.length>1&&Wn.length>1;)if(kt(Ot)==kt(Wn))Ot.pop(),Wn.pop(),Tt--;else if(Ot[0]==Wn[0])Ot.shift(),Wn.shift(),tt++;else break;for(var Mn=0,Ui=0,ji=Ot[0],nr=Wn[0],Er=Math.min(ji.length,nr.length);Mn<Er&&ji.charCodeAt(Mn)==nr.charCodeAt(Mn);)++Mn;for(var Yr=kt(Ot),Dr=kt(Wn),io=Math.min(Yr.length-(Ot.length==1?Mn:0),Dr.length-(Wn.length==1?Mn:0));Ui<io&&Yr.charCodeAt(Yr.length-Ui-1)==Dr.charCodeAt(Dr.length-Ui-1);)++Ui;if(Ot.length==1&&Wn.length==1&&tt==me.line)for(;Mn&&Mn>me.ch&&Yr.charCodeAt(Yr.length-Ui-1)==Dr.charCodeAt(Dr.length-Ui-1);)Mn--,Ui++;Ot[Ot.length-1]=Yr.slice(0,Yr.length-Ui).replace(/^\u200b+/,""),Ot[0]=Ot[0].slice(Mn).replace(/\u200b+$/,"");var Io=zt(tt,Mn),Rr=zt(Tt,Wn.length?kt(Wn).length-Ui:0);if(Ot.length>1||Ot[0]||wn(Io,Rr))return Zu(ie.doc,Ot,Io,Rr,"+input"),!0},Ua.prototype.ensurePolled=function(){this.forceCompositionEnd()},Ua.prototype.reset=function(){this.forceCompositionEnd()},Ua.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Ua.prototype.readFromDOMSoon=function(){var ie=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(ie.readDOMTimeout=null,ie.composing)if(ie.composing.done)ie.composing=null;else return;ie.updateFromDOM()},80))},Ua.prototype.updateFromDOM=function(){var ie=this;(this.cm.isReadOnly()||!this.pollContent())&&da(this.cm,function(){return Xo(ie.cm)})},Ua.prototype.setUneditable=function(ie){ie.contentEditable="false"},Ua.prototype.onKeyPress=function(ie){ie.charCode==0||this.composing||(ie.preventDefault(),this.cm.isReadOnly()||vs(this.cm,$h)(this.cm,String.fromCharCode(ie.charCode==null?ie.keyCode:ie.charCode),0))},Ua.prototype.readOnlyChanged=function(ie){this.div.contentEditable=String(ie!="nocursor")},Ua.prototype.onContextMenu=function(){},Ua.prototype.resetPosition=function(){},Ua.prototype.needsContentAttribute=!0;function zf(ie,ae){var ve=Es(ie,ae.line);if(!ve||ve.hidden)return null;var me=fi(ie.doc,ae.line),xe=fa(ve,me,ae.line),_e=Pn(me,ie.doc.direction),tt="left";if(_e){var pt=Vt(_e,ae.ch);tt=pt%2?"right":"left"}var ht=oc(xe.map,ae.ch,tt);return ht.offset=ht.collapse=="right"?ht.end:ht.start,ht}function qg(ie){for(var ae=ie;ae;ae=ae.parentNode)if(/CodeMirror-gutter-wrapper/.test(ae.className))return!0;return!1}function Ph(ie,ae){return ae&&(ie.bad=!0),ie}function Nh(ie,ae,ve,me,xe){var _e="",tt=!1,pt=ie.doc.lineSeparator(),ht=!1;function Tt(Mn){return function(Ui){return Ui.id==Mn}}function vn(){tt&&(_e+=pt,ht&&(_e+=pt),tt=ht=!1)}function Ot(Mn){Mn&&(vn(),_e+=Mn)}function Wn(Mn){if(Mn.nodeType==1){var Ui=Mn.getAttribute("cm-text");if(Ui){Ot(Ui);return}var ji=Mn.getAttribute("cm-marker"),nr;if(ji){var Er=ie.findMarks(zt(me,0),zt(xe+1,0),Tt(+ji));Er.length&&(nr=Er[0].find(0))&&Ot(on(ie.doc,nr.from,nr.to).join(pt));return}if(Mn.getAttribute("contenteditable")=="false")return;var Yr=/^(pre|div|p|li|table|br)$/i.test(Mn.nodeName);if(!/^br$/i.test(Mn.nodeName)&&Mn.textContent.length==0)return;Yr&&vn();for(var Dr=0;Dr<Mn.childNodes.length;Dr++)Wn(Mn.childNodes[Dr]);/^(pre|p)$/i.test(Mn.nodeName)&&(ht=!0),Yr&&(tt=!0)}else Mn.nodeType==3&&Ot(Mn.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;Wn(ae),ae!=ve;)ae=ae.nextSibling,ht=!1;return _e}function tf(ie,ae,ve){var me;if(ae==ie.display.lineDiv){if(me=ie.display.lineDiv.childNodes[ve],!me)return Ph(ie.clipPos(zt(ie.display.viewTo-1)),!0);ae=null,ve=0}else for(me=ae;;me=me.parentNode){if(!me||me==ie.display.lineDiv)return null;if(me.parentNode&&me.parentNode==ie.display.lineDiv)break}for(var xe=0;xe<ie.display.view.length;xe++){var _e=ie.display.view[xe];if(_e.node==me)return dm(_e,ae,ve)}}function dm(ie,ae,ve){var me=ie.text.firstChild,xe=!1;if(!ae||!bt(me,ae))return Ph(zt(vt(ie.line),0),!0);if(ae==me&&(xe=!0,ae=me.childNodes[ve],ve=0,!ae)){var _e=ie.rest?kt(ie.rest):ie.line;return Ph(zt(vt(_e),_e.text.length),xe)}var tt=ae.nodeType==3?ae:null,pt=ae;for(!tt&&ae.childNodes.length==1&&ae.firstChild.nodeType==3&&(tt=ae.firstChild,ve&&(ve=tt.nodeValue.length));pt.parentNode!=me;)pt=pt.parentNode;var ht=ie.measure,Tt=ht.maps;function vn(nr,Er,Yr){for(var Dr=-1;Dr<(Tt?Tt.length:0);Dr++)for(var io=Dr<0?ht.map:Tt[Dr],Io=0;Io<io.length;Io+=3){var Rr=io[Io+2];if(Rr==nr||Rr==Er){var ea=vt(Dr<0?ie.line:ie.rest[Dr]),is=io[Io]+Yr;return(Yr<0||Rr!=nr)&&(is=io[Io+(Yr?1:0)]),zt(ea,is)}}}var Ot=vn(tt,pt,ve);if(Ot)return Ph(Ot,xe);for(var Wn=pt.nextSibling,Mn=tt?tt.nodeValue.length-ve:0;Wn;Wn=Wn.nextSibling){if(Ot=vn(Wn,Wn.firstChild,0),Ot)return Ph(zt(Ot.line,Ot.ch-Mn),xe);Mn+=Wn.textContent.length}for(var Ui=pt.previousSibling,ji=ve;Ui;Ui=Ui.previousSibling){if(Ot=vn(Ui,Ui.firstChild,-1),Ot)return Ph(zt(Ot.line,Ot.ch+ji),xe);ji+=Ui.textContent.length}}var Us=function(ie){this.cm=ie,this.prevInput="",this.pollingFast=!1,this.polling=new ct,this.hasSelection=!1,this.composing=null};Us.prototype.init=function(ie){var ae=this,ve=this,me=this.cm;this.createField(ie);var xe=this.textarea;ie.wrapper.insertBefore(this.wrapper,ie.wrapper.firstChild),Fe&&(xe.style.width="0px"),Mt(xe,"input",function(){We&&Te>=9&&ae.hasSelection&&(ae.hasSelection=null),ve.poll()}),Mt(xe,"paste",function(tt){Zn(me,tt)||Kg(tt,me)||(me.state.pasteIncoming=+new Date,ve.fastPoll())});function _e(tt){if(!Zn(me,tt)){if(me.somethingSelected())Kd({lineWise:!1,text:me.getSelections()});else if(me.options.lineWiseCopyCut){var pt=Xg(me);Kd({lineWise:!0,text:pt.text}),tt.type=="cut"?me.setSelections(pt.ranges,null,Pt):(ve.prevInput="",xe.value=pt.text.join(`
|
|
|
`),un(xe))}else return;tt.type=="cut"&&(me.state.cutIncoming=+new Date)}}Mt(xe,"cut",_e),Mt(xe,"copy",_e),Mt(ie.scroller,"paste",function(tt){if(!(Do(ie,tt)||Zn(me,tt))){if(!xe.dispatchEvent){me.state.pasteIncoming=+new Date,ve.focus();return}var pt=new Event("paste");pt.clipboardData=tt.clipboardData,xe.dispatchEvent(pt)}}),Mt(ie.lineSpace,"selectstart",function(tt){Do(ie,tt)||vi(tt)}),Mt(xe,"compositionstart",function(){var tt=me.getCursor("from");ve.composing&&ve.composing.range.clear(),ve.composing={start:tt,range:me.markText(tt,me.getCursor("to"),{className:"CodeMirror-composing"})}}),Mt(xe,"compositionend",function(){ve.composing&&(ve.poll(),ve.composing.range.clear(),ve.composing=null)})},Us.prototype.createField=function(ie){this.wrapper=Jg(),this.textarea=this.wrapper.firstChild},Us.prototype.screenReaderLabelChanged=function(ie){ie?this.textarea.setAttribute("aria-label",ie):this.textarea.removeAttribute("aria-label")},Us.prototype.prepareSelection=function(){var ie=this.cm,ae=ie.display,ve=ie.doc,me=cu(ie);if(ie.options.moveInputWithCursor){var xe=Fo(ie,ve.sel.primary().head,"div"),_e=ae.wrapper.getBoundingClientRect(),tt=ae.lineDiv.getBoundingClientRect();me.teTop=Math.max(0,Math.min(ae.wrapper.clientHeight-10,xe.top+tt.top-_e.top)),me.teLeft=Math.max(0,Math.min(ae.wrapper.clientWidth-10,xe.left+tt.left-_e.left))}return me},Us.prototype.showSelection=function(ie){var ae=this.cm,ve=ae.display;qe(ve.cursorDiv,ie.cursors),qe(ve.selectionDiv,ie.selection),ie.teTop!=null&&(this.wrapper.style.top=ie.teTop+"px",this.wrapper.style.left=ie.teLeft+"px")},Us.prototype.reset=function(ie){if(!(this.contextMenuPending||this.composing)){var ae=this.cm;if(ae.somethingSelected()){this.prevInput="";var ve=ae.getSelection();this.textarea.value=ve,ae.state.focused&&un(this.textarea),We&&Te>=9&&(this.hasSelection=ve)}else ie||(this.prevInput=this.textarea.value="",We&&Te>=9&&(this.hasSelection=null))}},Us.prototype.getField=function(){return this.textarea},Us.prototype.supportsTouch=function(){return!1},Us.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!te||It()!=this.textarea))try{this.textarea.focus()}catch(ie){}},Us.prototype.blur=function(){this.textarea.blur()},Us.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Us.prototype.receivedFocus=function(){this.slowPoll()},Us.prototype.slowPoll=function(){var ie=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){ie.poll(),ie.cm.state.focused&&ie.slowPoll()})},Us.prototype.fastPoll=function(){var ie=!1,ae=this;ae.pollingFast=!0;function ve(){var me=ae.poll();!me&&!ie?(ie=!0,ae.polling.set(60,ve)):(ae.pollingFast=!1,ae.slowPoll())}ae.polling.set(20,ve)},Us.prototype.poll=function(){var ie=this,ae=this.cm,ve=this.textarea,me=this.prevInput;if(this.contextMenuPending||!ae.state.focused||Ie(ve)&&!me&&!this.composing||ae.isReadOnly()||ae.options.disableInput||ae.state.keySeq)return!1;var xe=ve.value;if(xe==me&&!ae.somethingSelected())return!1;if(We&&Te>=9&&this.hasSelection===xe||he&&/[\uf700-\uf7ff]/.test(xe))return ae.display.input.reset(),!1;if(ae.doc.sel==ae.display.selForContextMenu){var _e=xe.charCodeAt(0);if(_e==8203&&!me&&(me="\u200B"),_e==8666)return this.reset(),this.cm.execCommand("undo")}for(var tt=0,pt=Math.min(me.length,xe.length);tt<pt&&me.charCodeAt(tt)==xe.charCodeAt(tt);)++tt;return da(ae,function(){$h(ae,xe.slice(tt),me.length-tt,null,ie.composing?"*compose":null),xe.length>1e3||xe.indexOf(`
|
|
|
`)>-1?ve.value=ie.prevInput="":ie.prevInput=xe,ie.composing&&(ie.composing.range.clear(),ie.composing.range=ae.markText(ie.composing.start,ae.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Us.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Us.prototype.onKeyPress=function(){We&&Te>=9&&(this.hasSelection=null),this.fastPoll()},Us.prototype.onContextMenu=function(ie){var ae=this,ve=ae.cm,me=ve.display,xe=ae.textarea;ae.contextMenuPending&&ae.contextMenuPending();var _e=cs(ve,ie),tt=me.scroller.scrollTop;if(!_e||Ye)return;var pt=ve.options.resetSelectionOnContextMenu;pt&&ve.doc.sel.contains(_e)==-1&&vs(ve,pe)(ve.doc,Aa(_e),Pt);var ht=xe.style.cssText,Tt=ae.wrapper.style.cssText,vn=ae.wrapper.offsetParent.getBoundingClientRect();ae.wrapper.style.cssText="position: static",xe.style.cssText=`position: absolute; width: 30px; height: 30px;
|
|
|
top: `+(ie.clientY-vn.top-5)+"px; left: "+(ie.clientX-vn.left-5)+`px;
|
|
|
z-index: 1000; background: `+(We?"rgba(255, 255, 255, .05)":"transparent")+`;
|
|
|
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var Ot;Ge&&(Ot=window.scrollY),me.input.focus(),Ge&&window.scrollTo(null,Ot),me.input.reset(),ve.somethingSelected()||(xe.value=ae.prevInput=" "),ae.contextMenuPending=Mn,me.selForContextMenu=ve.doc.sel,clearTimeout(me.detectingSelectAll);function Wn(){if(xe.selectionStart!=null){var ji=ve.somethingSelected(),nr="\u200B"+(ji?xe.value:"");xe.value="\u21DA",xe.value=nr,ae.prevInput=ji?"":"\u200B",xe.selectionStart=1,xe.selectionEnd=nr.length,me.selForContextMenu=ve.doc.sel}}function Mn(){if(ae.contextMenuPending==Mn&&(ae.contextMenuPending=!1,ae.wrapper.style.cssText=Tt,xe.style.cssText=ht,We&&Te<9&&me.scrollbars.setScrollTop(me.scroller.scrollTop=tt),xe.selectionStart!=null)){(!We||We&&Te<9)&&Wn();var ji=0,nr=function(){me.selForContextMenu==ve.doc.sel&&xe.selectionStart==0&&xe.selectionEnd>0&&ae.prevInput=="\u200B"?vs(ve,Ti)(ve):ji++<10?me.detectingSelectAll=setTimeout(nr,500):(me.selForContextMenu=null,me.input.reset())};me.detectingSelectAll=setTimeout(nr,200)}}if(We&&Te>=9&&Wn(),Ae){Xi(ie);var Ui=function(){qn(window,"mouseup",Ui),setTimeout(Mn,20)};Mt(window,"mouseup",Ui)}else setTimeout(Mn,50)},Us.prototype.readOnlyChanged=function(ie){ie||this.reset(),this.textarea.disabled=ie=="nocursor",this.textarea.readOnly=!!ie},Us.prototype.setUneditable=function(){},Us.prototype.needsContentAttribute=!1;function hm(ie,ae){if(ae=ae?nn(ae):{},ae.value=ie.value,!ae.tabindex&&ie.tabIndex&&(ae.tabindex=ie.tabIndex),!ae.placeholder&&ie.placeholder&&(ae.placeholder=ie.placeholder),ae.autofocus==null){var ve=It();ae.autofocus=ve==ie||ie.getAttribute("autofocus")!=null&&ve==document.body}function me(){ie.value=pt.getValue()}var xe;if(ie.form&&(Mt(ie.form,"submit",me),!ae.leaveSubmitMethodAlone)){var _e=ie.form;xe=_e.submit;try{var tt=_e.submit=function(){me(),_e.submit=xe,_e.submit(),_e.submit=tt}}catch(ht){}}ae.finishInit=function(ht){ht.save=me,ht.getTextArea=function(){return ie},ht.toTextArea=function(){ht.toTextArea=isNaN,me(),ie.parentNode.removeChild(ht.getWrapperElement()),ie.style.display="",ie.form&&(qn(ie.form,"submit",me),!ae.leaveSubmitMethodAlone&&typeof ie.form.submit=="function"&&(ie.form.submit=xe))}},ie.style.display="none";var pt=va(function(ht){return ie.parentNode.insertBefore(ht,ie.nextSibling)},ae);return pt}function kh(ie){ie.off=qn,ie.on=Mt,ie.wheelEventPixels=wo,ie.Doc=xl,ie.splitLines=wr,ie.countColumn=At,ie.findColumn=_n,ie.isWordChar=Xe,ie.Pass=hn,ie.signal=Rn,ie.Line=Wr,ie.changeEnd=Pa,ie.scrollbarModel=ml,ie.Pos=zt,ie.cmpPos=wn,ie.modes=Br,ie.mimeModes=Gr,ie.resolveMode=hi,ie.getMode=Jt,ie.modeExtensions=Wt,ie.extendMode=jt,ie.copyState=gi,ie.startState=Pi,ie.innerMode=ii,ie.commands=pd,ie.keyMap=fu,ie.keyName=rm,ie.isModifierKey=bh,ie.lookupKey=Xu,ie.normalizeKeyMap=Rg,ie.StringStream=In,ie.SharedTextMarker=Rc,ie.TextMarker=en,ie.LineWidget=Jc,ie.e_preventDefault=vi,ie.e_stopPropagation=Ri,ie.e_stop=Xi,ie.addClass=Ht,ie.contains=bt,ie.rmClass=je,ie.keyNames=Oc}um(va),vd(va);var qc="iter insert remove copy getEditor constructor".split(" ");for(var nf in xl.prototype)xl.prototype.hasOwnProperty(nf)&&at(qc,nf)<0&&(va.prototype[nf]=function(ie){return function(){return ie.apply(this.doc,arguments)}}(xl.prototype[nf]));return Et(xl),va.inputStyles={textarea:Us,contenteditable:Ua},va.defineMode=function(ie){!va.defaults.mode&&ie!="null"&&(va.defaults.mode=ie),yr.apply(this,arguments)},va.defineMIME=Vi,va.defineMode("null",function(){return{token:function(ie){return ie.skipToEnd()}}}),va.defineMIME("text/plain","null"),va.defineExtension=function(ie,ae){va.prototype[ie]=ae},va.defineDocExtension=function(ie,ae){xl.prototype[ie]=ae},va.fromTextArea=hm,kh(va),va.version="5.58.2",va})},25419:function(ze,Ee,ue){(function(ce){ce(ue(89780),ue(15525),ue(98101))})(function(ce){"use strict";ce.defineMode("markdown",function(Pe,Re){var Me=ce.getMode(Pe,"text/html"),We=Me.name=="null";function Te(At){if(ce.findModeByName){var ct=ce.findModeByName(At);ct&&(At=ct.mime||ct.mimes[0])}var at=ce.getMode(Pe,At);return at.name=="null"?null:at}Re.highlightFormatting===void 0&&(Re.highlightFormatting=!1),Re.maxBlockquoteDepth===void 0&&(Re.maxBlockquoteDepth=0),Re.taskLists===void 0&&(Re.taskLists=!1),Re.strikethrough===void 0&&(Re.strikethrough=!1),Re.emoji===void 0&&(Re.emoji=!1),Re.fencedCodeBlockHighlighting===void 0&&(Re.fencedCodeBlockHighlighting=!0),Re.fencedCodeBlockDefaultMode===void 0&&(Re.fencedCodeBlockDefaultMode="text/plain"),Re.xml===void 0&&(Re.xml=!0),Re.tokenTypeOverrides===void 0&&(Re.tokenTypeOverrides={});var Ge={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 st in Ge)Ge.hasOwnProperty(st)&&Re.tokenTypeOverrides[st]&&(Ge[st]=Re.tokenTypeOverrides[st]);var Qe=/^([*\-_])(?:\s*\1){2,}\s*$/,Ye=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,yt=/^\[(x| )\](?=\s)/i,ot=Re.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,Nt=/^ {0,3}(?:\={1,}|-{2,})\s*$/,Fe=/^[^#!\[\]*_\\<>` "'(~:]+/,ne=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,te=/^\s*\[[^\]]+?\]:.*$/,he=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\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]/,se=" ";function ge(At,ct,at){return ct.f=ct.inline=at,at(At,ct)}function Se(At,ct,at){return ct.f=ct.block=at,at(At,ct)}function be(At){return!At||!/\S/.test(At.string)}function Ae(At){if(At.linkTitle=!1,At.linkHref=!1,At.linkText=!1,At.em=!1,At.strong=!1,At.strikethrough=!1,At.quote=0,At.indentedCode=!1,At.f==je){var ct=We;if(!ct){var at=ce.innerMode(Me,At.htmlState);ct=at.mode.name=="xml"&&at.state.tagStart===null&&!at.state.context&&at.state.tokenize.isInText}ct&&(At.f=dt,At.block=Le,At.htmlState=null)}return At.trailingSpace=0,At.trailingSpaceNewLine=!1,At.prevLine=At.thisLine,At.thisLine={stream:null},null}function Le(At,ct){var at=At.column()===ct.indentation,rn=be(ct.prevLine.stream),hn=ct.indentedCode,Pt=ct.prevLine.hr,pn=ct.list!==!1,dn=(ct.listStack[ct.listStack.length-1]||0)+3;ct.indentedCode=!1;var _n=ct.indentation;if(ct.indentationDiff===null&&(ct.indentationDiff=ct.indentation,pn)){for(ct.list=null;_n<ct.listStack[ct.listStack.length-1];)ct.listStack.pop(),ct.listStack.length?ct.indentation=ct.listStack[ct.listStack.length-1]:ct.list=!1;ct.list!==!1&&(ct.indentationDiff=_n-ct.listStack[ct.listStack.length-1])}var Yt=!rn&&!Pt&&!ct.prevLine.header&&(!pn||!hn)&&!ct.prevLine.fencedCodeEnd,On=(ct.list===!1||Pt||rn)&&ct.indentation<=dn&&At.match(Qe),kt=null;if(ct.indentationDiff>=4&&(hn||ct.prevLine.fencedCodeEnd||ct.prevLine.header||rn))return At.skipToEnd(),ct.indentedCode=!0,Ge.code;if(At.eatSpace())return null;if(at&&ct.indentation<=dn&&(kt=At.match(ot))&&kt[1].length<=6)return ct.quote=0,ct.header=kt[1].length,ct.thisLine.header=!0,Re.highlightFormatting&&(ct.formatting="header"),ct.f=ct.inline,qe(ct);if(ct.indentation<=dn&&At.eat(">"))return ct.quote=at?1:ct.quote+1,Re.highlightFormatting&&(ct.formatting="quote"),At.eatSpace(),qe(ct);if(!On&&!ct.setext&&at&&ct.indentation<=dn&&(kt=At.match(Ye))){var jn=kt[1]?"ol":"ul";return ct.indentation=_n+At.current().length,ct.list=!0,ct.quote=0,ct.listStack.push(ct.indentation),ct.em=!1,ct.strong=!1,ct.code=!1,ct.strikethrough=!1,Re.taskLists&&At.match(yt,!1)&&(ct.taskList=!0),ct.f=ct.inline,Re.highlightFormatting&&(ct.formatting=["list","list-"+jn]),qe(ct)}else{if(at&&ct.indentation<=dn&&(kt=At.match(ne,!0)))return ct.quote=0,ct.fencedEndRE=new RegExp(kt[1]+"+ *$"),ct.localMode=Re.fencedCodeBlockHighlighting&&Te(kt[2]||Re.fencedCodeBlockDefaultMode),ct.localMode&&(ct.localState=ce.startState(ct.localMode)),ct.f=ct.block=$e,Re.highlightFormatting&&(ct.formatting="code-block"),ct.code=-1,qe(ct);if(ct.setext||(!Yt||!pn)&&!ct.quote&&ct.list===!1&&!ct.code&&!On&&!te.test(At.string)&&(kt=At.lookAhead(1))&&(kt=kt.match(Nt)))return ct.setext?(ct.header=ct.setext,ct.setext=0,At.skipToEnd(),Re.highlightFormatting&&(ct.formatting="header")):(ct.header=kt[0].charAt(0)=="="?1:2,ct.setext=ct.header),ct.thisLine.header=!0,ct.f=ct.inline,qe(ct);if(On)return At.skipToEnd(),ct.hr=!0,ct.thisLine.hr=!0,Ge.hr;if(At.peek()==="[")return ge(At,ct,ln)}return ge(At,ct,ct.inline)}function je(At,ct){var at=Me.token(At,ct.htmlState);if(!We){var rn=ce.innerMode(Me,ct.htmlState);(rn.mode.name=="xml"&&rn.state.tagStart===null&&!rn.state.context&&rn.state.tokenize.isInText||ct.md_inside&&At.current().indexOf(">")>-1)&&(ct.f=dt,ct.block=Le,ct.htmlState=null)}return at}function $e(At,ct){var at=ct.listStack[ct.listStack.length-1]||0,rn=ct.indentation<at,hn=at+3;if(ct.fencedEndRE&&ct.indentation<=hn&&(rn||At.match(ct.fencedEndRE))){Re.highlightFormatting&&(ct.formatting="code-block");var Pt;return rn||(Pt=qe(ct)),ct.localMode=ct.localState=null,ct.block=Le,ct.f=dt,ct.fencedEndRE=null,ct.code=0,ct.thisLine.fencedCodeEnd=!0,rn?Se(At,ct,ct.block):Pt}else return ct.localMode?ct.localMode.token(At,ct.localState):(At.skipToEnd(),Ge.code)}function qe(At){var ct=[];if(At.formatting){ct.push(Ge.formatting),typeof At.formatting=="string"&&(At.formatting=[At.formatting]);for(var at=0;at<At.formatting.length;at++)ct.push(Ge.formatting+"-"+At.formatting[at]),At.formatting[at]==="header"&&ct.push(Ge.formatting+"-"+At.formatting[at]+"-"+At.header),At.formatting[at]==="quote"&&(!Re.maxBlockquoteDepth||Re.maxBlockquoteDepth>=At.quote?ct.push(Ge.formatting+"-"+At.formatting[at]+"-"+At.quote):ct.push("error"))}if(At.taskOpen)return ct.push("meta"),ct.length?ct.join(" "):null;if(At.taskClosed)return ct.push("property"),ct.length?ct.join(" "):null;if(At.linkHref?ct.push(Ge.linkHref,"url"):(At.strong&&ct.push(Ge.strong),At.em&&ct.push(Ge.em),At.strikethrough&&ct.push(Ge.strikethrough),At.emoji&&ct.push(Ge.emoji),At.linkText&&ct.push(Ge.linkText),At.code&&ct.push(Ge.code),At.image&&ct.push(Ge.image),At.imageAltText&&ct.push(Ge.imageAltText,"link"),At.imageMarker&&ct.push(Ge.imageMarker)),At.header&&ct.push(Ge.header,Ge.header+"-"+At.header),At.quote&&(ct.push(Ge.quote),!Re.maxBlockquoteDepth||Re.maxBlockquoteDepth>=At.quote?ct.push(Ge.quote+"-"+At.quote):ct.push(Ge.quote+"-"+Re.maxBlockquoteDepth)),At.list!==!1){var rn=(At.listStack.length-1)%3;rn?rn===1?ct.push(Ge.list2):ct.push(Ge.list3):ct.push(Ge.list1)}return At.trailingSpaceNewLine?ct.push("trailing-space-new-line"):At.trailingSpace&&ct.push("trailing-space-"+(At.trailingSpace%2?"a":"b")),ct.length?ct.join(" "):null}function nt(At,ct){if(At.match(Fe,!0))return qe(ct)}function dt(At,ct){var at=ct.text(At,ct);if(typeof at!="undefined")return at;if(ct.list)return ct.list=null,qe(ct);if(ct.taskList){var rn=At.match(yt,!0)[1]===" ";return rn?ct.taskOpen=!0:ct.taskClosed=!0,Re.highlightFormatting&&(ct.formatting="task"),ct.taskList=!1,qe(ct)}if(ct.taskOpen=!1,ct.taskClosed=!1,ct.header&&At.match(/^#+$/,!0))return Re.highlightFormatting&&(ct.formatting="header"),qe(ct);var hn=At.next();if(ct.linkTitle){ct.linkTitle=!1;var Pt=hn;hn==="("&&(Pt=")"),Pt=(Pt+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var pn="^\\s*(?:[^"+Pt+"\\\\]+|\\\\\\\\|\\\\.)"+Pt;if(At.match(new RegExp(pn),!0))return Ge.linkHref}if(hn==="`"){var dn=ct.formatting;Re.highlightFormatting&&(ct.formatting="code"),At.eatWhile("`");var _n=At.current().length;if(ct.code==0&&(!ct.quote||_n==1))return ct.code=_n,qe(ct);if(_n==ct.code){var Yt=qe(ct);return ct.code=0,Yt}else return ct.formatting=dn,qe(ct)}else if(ct.code)return qe(ct);if(hn==="\\"&&(At.next(),Re.highlightFormatting)){var On=qe(ct),kt=Ge.formatting+"-escape";return On?On+" "+kt:kt}if(hn==="!"&&At.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return ct.imageMarker=!0,ct.image=!0,Re.highlightFormatting&&(ct.formatting="image"),qe(ct);if(hn==="["&&ct.imageMarker&&At.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return ct.imageMarker=!1,ct.imageAltText=!0,Re.highlightFormatting&&(ct.formatting="image"),qe(ct);if(hn==="]"&&ct.imageAltText){Re.highlightFormatting&&(ct.formatting="image");var On=qe(ct);return ct.imageAltText=!1,ct.image=!1,ct.inline=ct.f=bt,On}if(hn==="["&&!ct.image)return ct.linkText&&At.match(/^.*?\]/)||(ct.linkText=!0,Re.highlightFormatting&&(ct.formatting="link")),qe(ct);if(hn==="]"&&ct.linkText){Re.highlightFormatting&&(ct.formatting="link");var On=qe(ct);return ct.linkText=!1,ct.inline=ct.f=At.match(/\(.*?\)| ?\[.*?\]/,!1)?bt:dt,On}if(hn==="<"&&At.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){ct.f=ct.inline=it,Re.highlightFormatting&&(ct.formatting="link");var On=qe(ct);return On?On+=" ":On="",On+Ge.linkInline}if(hn==="<"&&At.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){ct.f=ct.inline=it,Re.highlightFormatting&&(ct.formatting="link");var On=qe(ct);return On?On+=" ":On="",On+Ge.linkEmail}if(Re.xml&&hn==="<"&&At.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var jn=At.string.indexOf(">",At.pos);if(jn!=-1){var ai=At.string.substring(At.start,jn);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(ai)&&(ct.md_inside=!0)}return At.backUp(1),ct.htmlState=ce.startState(Me),Se(At,ct,je)}if(Re.xml&&hn==="<"&&At.match(/^\/\w*?>/))return ct.md_inside=!1,"tag";if(hn==="*"||hn==="_"){for(var et=1,De=At.pos==1?" ":At.string.charAt(At.pos-2);et<3&&At.eat(hn);)et++;var ke=At.peek()||" ",Xe=!/\s/.test(ke)&&(!he.test(ke)||/\s/.test(De)||he.test(De)),ut=!/\s/.test(De)&&(!he.test(De)||/\s/.test(ke)||he.test(ke)),Ue=null,gt=null;if(et%2&&(!ct.em&&Xe&&(hn==="*"||!ut||he.test(De))?Ue=!0:ct.em==hn&&ut&&(hn==="*"||!Xe||he.test(ke))&&(Ue=!1)),et>1&&(!ct.strong&&Xe&&(hn==="*"||!ut||he.test(De))?gt=!0:ct.strong==hn&&ut&&(hn==="*"||!Xe||he.test(ke))&&(gt=!1)),gt!=null||Ue!=null){Re.highlightFormatting&&(ct.formatting=Ue==null?"strong":gt==null?"em":"strong em"),Ue===!0&&(ct.em=hn),gt===!0&&(ct.strong=hn);var Yt=qe(ct);return Ue===!1&&(ct.em=!1),gt===!1&&(ct.strong=!1),Yt}}else if(hn===" "&&(At.eat("*")||At.eat("_"))){if(At.peek()===" ")return qe(ct);At.backUp(1)}if(Re.strikethrough){if(hn==="~"&&At.eatWhile(hn)){if(ct.strikethrough){Re.highlightFormatting&&(ct.formatting="strikethrough");var Yt=qe(ct);return ct.strikethrough=!1,Yt}else if(At.match(/^[^\s]/,!1))return ct.strikethrough=!0,Re.highlightFormatting&&(ct.formatting="strikethrough"),qe(ct)}else if(hn===" "&&At.match(/^~~/,!0)){if(At.peek()===" ")return qe(ct);At.backUp(2)}}if(Re.emoji&&hn===":"&&At.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){ct.emoji=!0,Re.highlightFormatting&&(ct.formatting="emoji");var _t=qe(ct);return ct.emoji=!1,_t}return hn===" "&&(At.match(/^ +$/,!1)?ct.trailingSpace++:ct.trailingSpace&&(ct.trailingSpaceNewLine=!0)),qe(ct)}function it(At,ct){var at=At.next();if(at===">"){ct.f=ct.inline=dt,Re.highlightFormatting&&(ct.formatting="link");var rn=qe(ct);return rn?rn+=" ":rn="",rn+Ge.linkInline}return At.match(/^[^>]+/,!0),Ge.linkInline}function bt(At,ct){if(At.eatSpace())return null;var at=At.next();return at==="("||at==="["?(ct.f=ct.inline=Ht(at==="("?")":"]"),Re.highlightFormatting&&(ct.formatting="link-string"),ct.linkHref=!0,qe(ct)):"error"}var It={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function Ht(At){return function(ct,at){var rn=ct.next();if(rn===At){at.f=at.inline=dt,Re.highlightFormatting&&(at.formatting="link-string");var hn=qe(at);return at.linkHref=!1,hn}return ct.match(It[At]),at.linkHref=!0,qe(at)}}function ln(At,ct){return At.match(/^([^\]\\]|\\.)*\]:/,!1)?(ct.f=un,At.next(),Re.highlightFormatting&&(ct.formatting="link"),ct.linkText=!0,qe(ct)):ge(At,ct,dt)}function un(At,ct){if(At.match(/^\]:/,!0)){ct.f=ct.inline=Qt,Re.highlightFormatting&&(ct.formatting="link");var at=qe(ct);return ct.linkText=!1,at}return At.match(/^([^\]\\]|\\.)+/,!0),Ge.linkText}function Qt(At,ct){return At.eatSpace()?null:(At.match(/^[^\s]+/,!0),At.peek()===void 0?ct.linkTitle=!0:At.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),ct.f=ct.inline=dt,Ge.linkHref+" url")}var nn={startState:function(){return{f:Le,prevLine:{stream:null},thisLine:{stream:null},block:Le,htmlState:null,indentation:0,inline:dt,text:nt,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(At){return{f:At.f,prevLine:At.prevLine,thisLine:At.thisLine,block:At.block,htmlState:At.htmlState&&ce.copyState(Me,At.htmlState),indentation:At.indentation,localMode:At.localMode,localState:At.localMode?ce.copyState(At.localMode,At.localState):null,inline:At.inline,text:At.text,formatting:!1,linkText:At.linkText,linkTitle:At.linkTitle,linkHref:At.linkHref,code:At.code,em:At.em,strong:At.strong,strikethrough:At.strikethrough,emoji:At.emoji,header:At.header,setext:At.setext,hr:At.hr,taskList:At.taskList,list:At.list,listStack:At.listStack.slice(0),quote:At.quote,indentedCode:At.indentedCode,trailingSpace:At.trailingSpace,trailingSpaceNewLine:At.trailingSpaceNewLine,md_inside:At.md_inside,fencedEndRE:At.fencedEndRE}},token:function(At,ct){if(ct.formatting=!1,At!=ct.thisLine.stream){if(ct.header=0,ct.hr=!1,At.match(/^\s*$/,!0))return Ae(ct),null;if(ct.prevLine=ct.thisLine,ct.thisLine={stream:At},ct.taskList=!1,ct.trailingSpace=0,ct.trailingSpaceNewLine=!1,!ct.localState&&(ct.f=ct.block,ct.f!=je)){var at=At.match(/^\s*/,!0)[0].replace(/\t/g,se).length;if(ct.indentation=at,ct.indentationDiff=null,at>0)return null}}return ct.f(At,ct)},innerMode:function(At){return At.block==je?{state:At.htmlState,mode:Me}:At.localState?{state:At.localState,mode:At.localMode}:{state:At,mode:nn}},indent:function(At,ct,at){return At.block==je&&Me.indent?Me.indent(At.htmlState,ct,at):At.localState&&At.localMode.indent?At.localMode.indent(At.localState,ct,at):ce.Pass},blankLine:Ae,getType:qe,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return nn},"xml"),ce.defineMIME("text/markdown","markdown"),ce.defineMIME("text/x-markdown","markdown")})},98101:function(ze,Ee,ue){(function(ce){ce(ue(89780))})(function(ce){"use strict";ce.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 Pe=0;Pe<ce.modeInfo.length;Pe++){var Re=ce.modeInfo[Pe];Re.mimes&&(Re.mime=Re.mimes[0])}ce.findModeByMIME=function(Me){Me=Me.toLowerCase();for(var We=0;We<ce.modeInfo.length;We++){var Te=ce.modeInfo[We];if(Te.mime==Me)return Te;if(Te.mimes){for(var Ge=0;Ge<Te.mimes.length;Ge++)if(Te.mimes[Ge]==Me)return Te}}if(/\+xml$/.test(Me))return ce.findModeByMIME("application/xml");if(/\+json$/.test(Me))return ce.findModeByMIME("application/json")},ce.findModeByExtension=function(Me){Me=Me.toLowerCase();for(var We=0;We<ce.modeInfo.length;We++){var Te=ce.modeInfo[We];if(Te.ext){for(var Ge=0;Ge<Te.ext.length;Ge++)if(Te.ext[Ge]==Me)return Te}}},ce.findModeByFileName=function(Me){for(var We=0;We<ce.modeInfo.length;We++){var Te=ce.modeInfo[We];if(Te.file&&Te.file.test(Me))return Te}var Ge=Me.lastIndexOf("."),st=Ge>-1&&Me.substring(Ge+1,Me.length);if(st)return ce.findModeByExtension(st)},ce.findModeByName=function(Me){Me=Me.toLowerCase();for(var We=0;We<ce.modeInfo.length;We++){var Te=ce.modeInfo[We];if(Te.name.toLowerCase()==Me)return Te;if(Te.alias){for(var Ge=0;Ge<Te.alias.length;Ge++)if(Te.alias[Ge].toLowerCase()==Me)return Te}}}})},67549:function(ze,Ee,ue){(function(ce){ce(ue(89780))})(function(ce){"use strict";ce.defineMode("stex",function(Pe,Re){"use strict";function Me(Fe,ne){Fe.cmdState.push(ne)}function We(Fe){return Fe.cmdState.length>0?Fe.cmdState[Fe.cmdState.length-1]:null}function Te(Fe){var ne=Fe.cmdState.pop();ne&&ne.closeBracket()}function Ge(Fe){for(var ne=Fe.cmdState,te=ne.length-1;te>=0;te--){var he=ne[te];if(he.name!="DEFAULT")return he}return{styleIdentifier:function(){return null}}}function st(Fe,ne,te){return function(){this.name=Fe,this.bracketNo=0,this.style=ne,this.styles=te,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var Qe={};Qe.importmodule=st("importmodule","tag",["string","builtin"]),Qe.documentclass=st("documentclass","tag",["","atom"]),Qe.usepackage=st("usepackage","tag",["atom"]),Qe.begin=st("begin","tag",["atom"]),Qe.end=st("end","tag",["atom"]),Qe.label=st("label","tag",["atom"]),Qe.ref=st("ref","tag",["atom"]),Qe.eqref=st("eqref","tag",["atom"]),Qe.cite=st("cite","tag",["atom"]),Qe.bibitem=st("bibitem","tag",["atom"]),Qe.Bibitem=st("Bibitem","tag",["atom"]),Qe.RBibitem=st("RBibitem","tag",["atom"]),Qe.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function Ye(Fe,ne){Fe.f=ne}function yt(Fe,ne){var te;if(Fe.match(/^\\[a-zA-Z@]+/)){var he=Fe.current().slice(1);return te=Qe.hasOwnProperty(he)?Qe[he]:Qe.DEFAULT,te=new te,Me(ne,te),Ye(ne,Nt),te.style}if(Fe.match(/^\\[$&%#{}_]/)||Fe.match(/^\\[,;!\/\\]/))return"tag";if(Fe.match("\\["))return Ye(ne,function(ge,Se){return ot(ge,Se,"\\]")}),"keyword";if(Fe.match("\\("))return Ye(ne,function(ge,Se){return ot(ge,Se,"\\)")}),"keyword";if(Fe.match("$$"))return Ye(ne,function(ge,Se){return ot(ge,Se,"$$")}),"keyword";if(Fe.match("$"))return Ye(ne,function(ge,Se){return ot(ge,Se,"$")}),"keyword";var se=Fe.next();if(se=="%")return Fe.skipToEnd(),"comment";if(se=="}"||se=="]"){if(te=We(ne),te)te.closeBracket(se),Ye(ne,Nt);else return"error";return"bracket"}else return se=="{"||se=="["?(te=Qe.DEFAULT,te=new te,Me(ne,te),"bracket"):/\d/.test(se)?(Fe.eatWhile(/[\w.%]/),"atom"):(Fe.eatWhile(/[\w\-_]/),te=Ge(ne),te.name=="begin"&&(te.argument=Fe.current()),te.styleIdentifier())}function ot(Fe,ne,te){if(Fe.eatSpace())return null;if(te&&Fe.match(te))return Ye(ne,yt),"keyword";if(Fe.match(/^\\[a-zA-Z@]+/))return"tag";if(Fe.match(/^[a-zA-Z]+/))return"variable-2";if(Fe.match(/^\\[$&%#{}_]/)||Fe.match(/^\\[,;!\/]/)||Fe.match(/^[\^_&]/))return"tag";if(Fe.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(Fe.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var he=Fe.next();return he=="{"||he=="}"||he=="["||he=="]"||he=="("||he==")"?"bracket":he=="%"?(Fe.skipToEnd(),"comment"):"error"}function Nt(Fe,ne){var te=Fe.peek(),he;return te=="{"||te=="["?(he=We(ne),he.openBracket(te),Fe.eat(te),Ye(ne,yt),"bracket"):/[ \t\r]/.test(te)?(Fe.eat(te),null):(Ye(ne,yt),Te(ne),yt(Fe,ne))}return{startState:function(){var Fe=Re.inMathMode?function(ne,te){return ot(ne,te)}:yt;return{cmdState:[],f:Fe}},copyState:function(Fe){return{cmdState:Fe.cmdState.slice(),f:Fe.f}},token:function(Fe,ne){return ne.f(Fe,ne)},blankLine:function(Fe){Fe.f=yt,Fe.cmdState.length=0},lineComment:"%"}}),ce.defineMIME("text/x-stex","stex"),ce.defineMIME("text/x-latex","stex")})},15525:function(ze,Ee,ue){(function(ce){ce(ue(89780))})(function(ce){"use strict";var Pe={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},Re={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};ce.defineMode("xml",function(Me,We){var Te=Me.indentUnit,Ge={},st=We.htmlMode?Pe:Re;for(var Qe in st)Ge[Qe]=st[Qe];for(var Qe in We)Ge[Qe]=We[Qe];var Ye,yt;function ot(it,bt){function It(un){return bt.tokenize=un,un(it,bt)}var Ht=it.next();if(Ht=="<")return it.eat("!")?it.eat("[")?it.match("CDATA[")?It(ne("atom","]]>")):null:it.match("--")?It(ne("comment","-->")):it.match("DOCTYPE",!0,!0)?(it.eatWhile(/[\w\._\-]/),It(te(1))):null:it.eat("?")?(it.eatWhile(/[\w\._\-]/),bt.tokenize=ne("meta","?>"),"meta"):(Ye=it.eat("/")?"closeTag":"openTag",bt.tokenize=Nt,"tag bracket");if(Ht=="&"){var ln;return it.eat("#")?it.eat("x")?ln=it.eatWhile(/[a-fA-F\d]/)&&it.eat(";"):ln=it.eatWhile(/[\d]/)&&it.eat(";"):ln=it.eatWhile(/[\w\.\-:]/)&&it.eat(";"),ln?"atom":"error"}else return it.eatWhile(/[^&<]/),null}ot.isInText=!0;function Nt(it,bt){var It=it.next();if(It==">"||It=="/"&&it.eat(">"))return bt.tokenize=ot,Ye=It==">"?"endTag":"selfcloseTag","tag bracket";if(It=="=")return Ye="equals",null;if(It=="<"){bt.tokenize=ot,bt.state=Se,bt.tagName=bt.tagStart=null;var Ht=bt.tokenize(it,bt);return Ht?Ht+" tag error":"tag error"}else return/[\'\"]/.test(It)?(bt.tokenize=Fe(It),bt.stringStartCol=it.column(),bt.tokenize(it,bt)):(it.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function Fe(it){var bt=function(It,Ht){for(;!It.eol();)if(It.next()==it){Ht.tokenize=Nt;break}return"string"};return bt.isInAttribute=!0,bt}function ne(it,bt){return function(It,Ht){for(;!It.eol();){if(It.match(bt)){Ht.tokenize=ot;break}It.next()}return it}}function te(it){return function(bt,It){for(var Ht;(Ht=bt.next())!=null;){if(Ht=="<")return It.tokenize=te(it+1),It.tokenize(bt,It);if(Ht==">")if(it==1){It.tokenize=ot;break}else return It.tokenize=te(it-1),It.tokenize(bt,It)}return"meta"}}function he(it,bt,It){this.prev=it.context,this.tagName=bt,this.indent=it.indented,this.startOfLine=It,(Ge.doNotIndent.hasOwnProperty(bt)||it.context&&it.context.noIndent)&&(this.noIndent=!0)}function se(it){it.context&&(it.context=it.context.prev)}function ge(it,bt){for(var It;;){if(!it.context||(It=it.context.tagName,!Ge.contextGrabbers.hasOwnProperty(It)||!Ge.contextGrabbers[It].hasOwnProperty(bt)))return;se(it)}}function Se(it,bt,It){return it=="openTag"?(It.tagStart=bt.column(),be):it=="closeTag"?Ae:Se}function be(it,bt,It){return it=="word"?(It.tagName=bt.current(),yt="tag",$e):Ge.allowMissingTagName&&it=="endTag"?(yt="tag bracket",$e(it,bt,It)):(yt="error",be)}function Ae(it,bt,It){if(it=="word"){var Ht=bt.current();return It.context&&It.context.tagName!=Ht&&Ge.implicitlyClosed.hasOwnProperty(It.context.tagName)&&se(It),It.context&&It.context.tagName==Ht||Ge.matchClosing===!1?(yt="tag",Le):(yt="tag error",je)}else return Ge.allowMissingTagName&&it=="endTag"?(yt="tag bracket",Le(it,bt,It)):(yt="error",je)}function Le(it,bt,It){return it!="endTag"?(yt="error",Le):(se(It),Se)}function je(it,bt,It){return yt="error",Le(it,bt,It)}function $e(it,bt,It){if(it=="word")return yt="attribute",qe;if(it=="endTag"||it=="selfcloseTag"){var Ht=It.tagName,ln=It.tagStart;return It.tagName=It.tagStart=null,it=="selfcloseTag"||Ge.autoSelfClosers.hasOwnProperty(Ht)?ge(It,Ht):(ge(It,Ht),It.context=new he(It,Ht,ln==It.indented)),Se}return yt="error",$e}function qe(it,bt,It){return it=="equals"?nt:(Ge.allowMissing||(yt="error"),$e(it,bt,It))}function nt(it,bt,It){return it=="string"?dt:it=="word"&&Ge.allowUnquoted?(yt="string",$e):(yt="error",$e(it,bt,It))}function dt(it,bt,It){return it=="string"?dt:$e(it,bt,It)}return{startState:function(it){var bt={tokenize:ot,state:Se,indented:it||0,tagName:null,tagStart:null,context:null};return it!=null&&(bt.baseIndent=it),bt},token:function(it,bt){if(!bt.tagName&&it.sol()&&(bt.indented=it.indentation()),it.eatSpace())return null;Ye=null;var It=bt.tokenize(it,bt);return(It||Ye)&&It!="comment"&&(yt=null,bt.state=bt.state(Ye||It,it,bt),yt&&(It=yt=="error"?It+" error":yt)),It},indent:function(it,bt,It){var Ht=it.context;if(it.tokenize.isInAttribute)return it.tagStart==it.indented?it.stringStartCol+1:it.indented+Te;if(Ht&&Ht.noIndent)return ce.Pass;if(it.tokenize!=Nt&&it.tokenize!=ot)return It?It.match(/^(\s*)/)[0].length:0;if(it.tagName)return Ge.multilineTagIndentPastTag!==!1?it.tagStart+it.tagName.length+2:it.tagStart+Te*(Ge.multilineTagIndentFactor||1);if(Ge.alignCDATA&&/<!\[CDATA\[/.test(bt))return 0;var ln=bt&&/^<(\/)?([\w_:\.-]*)/.exec(bt);if(ln&&ln[1])for(;Ht;)if(Ht.tagName==ln[2]){Ht=Ht.prev;break}else if(Ge.implicitlyClosed.hasOwnProperty(Ht.tagName))Ht=Ht.prev;else break;else if(ln)for(;Ht;){var un=Ge.contextGrabbers[Ht.tagName];if(un&&un.hasOwnProperty(ln[2]))Ht=Ht.prev;else break}for(;Ht&&Ht.prev&&!Ht.startOfLine;)Ht=Ht.prev;return Ht?Ht.indent+Te:it.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:Ge.htmlMode?"html":"xml",helperType:Ge.htmlMode?"html":"xml",skipAttribute:function(it){it.state==nt&&(it.state=$e)},xmlCurrentTag:function(it){return it.tagName?{name:it.tagName,close:it.type=="closeTag"}:null},xmlCurrentContext:function(it){for(var bt=[],It=it.context;It;It=It.prev)It.tagName&&bt.push(It.tagName);return bt.reverse()}}}),ce.defineMIME("text/xml","xml"),ce.defineMIME("application/xml","xml"),ce.mimeModes.hasOwnProperty("text/html")||ce.defineMIME("text/html",{name:"xml",htmlMode:!0})})},58951:function(ze,Ee){"use strict";var ue;Ee.Q=Me,ue=We;var ce=",",Pe=" ",Re="";function Me(Te){for(var Ge=[],st=String(Te||Re),Qe=st.indexOf(ce),Ye=0,yt=!1,ot;!yt;)Qe===-1&&(Qe=st.length,yt=!0),ot=st.slice(Ye,Qe).trim(),(ot||!yt)&&Ge.push(ot),Ye=Qe+1,Qe=st.indexOf(ce,Ye);return Ge}function We(Te,Ge){var st=Ge||{},Qe=st.padLeft===!1?Re:Pe,Ye=st.padRight?Pe:Re;return Te[Te.length-1]===Re&&(Te=Te.concat(Re)),Te.join(Ye+ce+Qe).trim()}},86204:function(ze){"use strict";var Ee=typeof Reflect=="object"?Reflect:null,ue=Ee&&typeof Ee.apply=="function"?Ee.apply:function(Se,be,Ae){return Function.prototype.apply.call(Se,be,Ae)},ce;Ee&&typeof Ee.ownKeys=="function"?ce=Ee.ownKeys:Object.getOwnPropertySymbols?ce=function(Se){return Object.getOwnPropertyNames(Se).concat(Object.getOwnPropertySymbols(Se))}:ce=function(Se){return Object.getOwnPropertyNames(Se)};function Pe(ge){console&&console.warn&&console.warn(ge)}var Re=Number.isNaN||function(Se){return Se!==Se};function Me(){Me.init.call(this)}ze.exports=Me,ze.exports.once=te,Me.EventEmitter=Me,Me.prototype._events=void 0,Me.prototype._eventsCount=0,Me.prototype._maxListeners=void 0;var We=10;function Te(ge){if(typeof ge!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof ge)}Object.defineProperty(Me,"defaultMaxListeners",{enumerable:!0,get:function(){return We},set:function(ge){if(typeof ge!="number"||ge<0||Re(ge))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+ge+".");We=ge}}),Me.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},Me.prototype.setMaxListeners=function(Se){if(typeof Se!="number"||Se<0||Re(Se))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+Se+".");return this._maxListeners=Se,this};function Ge(ge){return ge._maxListeners===void 0?Me.defaultMaxListeners:ge._maxListeners}Me.prototype.getMaxListeners=function(){return Ge(this)},Me.prototype.emit=function(Se){for(var be=[],Ae=1;Ae<arguments.length;Ae++)be.push(arguments[Ae]);var Le=Se==="error",je=this._events;if(je!==void 0)Le=Le&&je.error===void 0;else if(!Le)return!1;if(Le){var $e;if(be.length>0&&($e=be[0]),$e instanceof Error)throw $e;var qe=new Error("Unhandled error."+($e?" ("+$e.message+")":""));throw qe.context=$e,qe}var nt=je[Se];if(nt===void 0)return!1;if(typeof nt=="function")ue(nt,this,be);else for(var dt=nt.length,it=Nt(nt,dt),Ae=0;Ae<dt;++Ae)ue(it[Ae],this,be);return!0};function st(ge,Se,be,Ae){var Le,je,$e;if(Te(be),je=ge._events,je===void 0?(je=ge._events=Object.create(null),ge._eventsCount=0):(je.newListener!==void 0&&(ge.emit("newListener",Se,be.listener?be.listener:be),je=ge._events),$e=je[Se]),$e===void 0)$e=je[Se]=be,++ge._eventsCount;else if(typeof $e=="function"?$e=je[Se]=Ae?[be,$e]:[$e,be]:Ae?$e.unshift(be):$e.push(be),Le=Ge(ge),Le>0&&$e.length>Le&&!$e.warned){$e.warned=!0;var qe=new Error("Possible EventEmitter memory leak detected. "+$e.length+" "+String(Se)+" listeners added. Use emitter.setMaxListeners() to increase limit");qe.name="MaxListenersExceededWarning",qe.emitter=ge,qe.type=Se,qe.count=$e.length,Pe(qe)}return ge}Me.prototype.addListener=function(Se,be){return st(this,Se,be,!1)},Me.prototype.on=Me.prototype.addListener,Me.prototype.prependListener=function(Se,be){return st(this,Se,be,!0)};function Qe(){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 Ye(ge,Se,be){var Ae={fired:!1,wrapFn:void 0,target:ge,type:Se,listener:be},Le=Qe.bind(Ae);return Le.listener=be,Ae.wrapFn=Le,Le}Me.prototype.once=function(Se,be){return Te(be),this.on(Se,Ye(this,Se,be)),this},Me.prototype.prependOnceListener=function(Se,be){return Te(be),this.prependListener(Se,Ye(this,Se,be)),this},Me.prototype.removeListener=function(Se,be){var Ae,Le,je,$e,qe;if(Te(be),Le=this._events,Le===void 0)return this;if(Ae=Le[Se],Ae===void 0)return this;if(Ae===be||Ae.listener===be)--this._eventsCount===0?this._events=Object.create(null):(delete Le[Se],Le.removeListener&&this.emit("removeListener",Se,Ae.listener||be));else if(typeof Ae!="function"){for(je=-1,$e=Ae.length-1;$e>=0;$e--)if(Ae[$e]===be||Ae[$e].listener===be){qe=Ae[$e].listener,je=$e;break}if(je<0)return this;je===0?Ae.shift():Fe(Ae,je),Ae.length===1&&(Le[Se]=Ae[0]),Le.removeListener!==void 0&&this.emit("removeListener",Se,qe||be)}return this},Me.prototype.off=Me.prototype.removeListener,Me.prototype.removeAllListeners=function(Se){var be,Ae,Le;if(Ae=this._events,Ae===void 0)return this;if(Ae.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):Ae[Se]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete Ae[Se]),this;if(arguments.length===0){var je=Object.keys(Ae),$e;for(Le=0;Le<je.length;++Le)$e=je[Le],$e!=="removeListener"&&this.removeAllListeners($e);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(be=Ae[Se],typeof be=="function")this.removeListener(Se,be);else if(be!==void 0)for(Le=be.length-1;Le>=0;Le--)this.removeListener(Se,be[Le]);return this};function yt(ge,Se,be){var Ae=ge._events;if(Ae===void 0)return[];var Le=Ae[Se];return Le===void 0?[]:typeof Le=="function"?be?[Le.listener||Le]:[Le]:be?ne(Le):Nt(Le,Le.length)}Me.prototype.listeners=function(Se){return yt(this,Se,!0)},Me.prototype.rawListeners=function(Se){return yt(this,Se,!1)},Me.listenerCount=function(ge,Se){return typeof ge.listenerCount=="function"?ge.listenerCount(Se):ot.call(ge,Se)},Me.prototype.listenerCount=ot;function ot(ge){var Se=this._events;if(Se!==void 0){var be=Se[ge];if(typeof be=="function")return 1;if(be!==void 0)return be.length}return 0}Me.prototype.eventNames=function(){return this._eventsCount>0?ce(this._events):[]};function Nt(ge,Se){for(var be=new Array(Se),Ae=0;Ae<Se;++Ae)be[Ae]=ge[Ae];return be}function Fe(ge,Se){for(;Se+1<ge.length;Se++)ge[Se]=ge[Se+1];ge.pop()}function ne(ge){for(var Se=new Array(ge.length),be=0;be<Se.length;++be)Se[be]=ge[be].listener||ge[be];return Se}function te(ge,Se){return new Promise(function(be,Ae){function Le($e){ge.removeListener(Se,je),Ae($e)}function je(){typeof ge.removeListener=="function"&&ge.removeListener("error",Le),be([].slice.call(arguments))}se(ge,Se,je,{once:!0}),Se!=="error"&&he(ge,Le,{once:!0})})}function he(ge,Se,be){typeof ge.on=="function"&&se(ge,"error",Se,be)}function se(ge,Se,be,Ae){if(typeof ge.on=="function")Ae.once?ge.once(Se,be):ge.on(Se,be);else if(typeof ge.addEventListener=="function")ge.addEventListener(Se,function Le(je){Ae.once&&ge.removeEventListener(Se,Le),be(je)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof ge)}},58847:function(ze){"use strict";var Ee=Object.prototype.hasOwnProperty,ue=Object.prototype.toString,ce=Object.defineProperty,Pe=Object.getOwnPropertyDescriptor,Re=function(st){return typeof Array.isArray=="function"?Array.isArray(st):ue.call(st)==="[object Array]"},Me=function(st){if(!st||ue.call(st)!=="[object Object]")return!1;var Qe=Ee.call(st,"constructor"),Ye=st.constructor&&st.constructor.prototype&&Ee.call(st.constructor.prototype,"isPrototypeOf");if(st.constructor&&!Qe&&!Ye)return!1;var yt;for(yt in st);return typeof yt=="undefined"||Ee.call(st,yt)},We=function(st,Qe){ce&&Qe.name==="__proto__"?ce(st,Qe.name,{enumerable:!0,configurable:!0,value:Qe.newValue,writable:!0}):st[Qe.name]=Qe.newValue},Te=function(st,Qe){if(Qe==="__proto__")if(Ee.call(st,Qe)){if(Pe)return Pe(st,Qe).value}else return;return st[Qe]};ze.exports=function Ge(){var st,Qe,Ye,yt,ot,Nt,Fe=arguments[0],ne=1,te=arguments.length,he=!1;for(typeof Fe=="boolean"&&(he=Fe,Fe=arguments[1]||{},ne=2),(Fe==null||typeof Fe!="object"&&typeof Fe!="function")&&(Fe={});ne<te;++ne)if(st=arguments[ne],st!=null)for(Qe in st)Ye=Te(Fe,Qe),yt=Te(st,Qe),Fe!==yt&&(he&&yt&&(Me(yt)||(ot=Re(yt)))?(ot?(ot=!1,Nt=Ye&&Re(Ye)?Ye:[]):Nt=Ye&&Me(Ye)?Ye:{},We(Fe,{name:Qe,newValue:Ge(he,Nt,yt)})):typeof yt!="undefined"&&We(Fe,{name:Qe,newValue:yt}));return Fe}},12378:function(ze,Ee,ue){"use strict";ue.d(Ee,{$u:function(){return Qe},BD:function(){return et},E9:function(){return st},FF:function(){return Or},FJ:function(){return Se},Hn:function(){return ge},KX:function(){return Ae},NB:function(){return Lt},S0:function(){return kt},UL:function(){return Ye},Vk:function(){return se},Vm:function(){return Vt},YI:function(){return jn},ZA:function(){return Re},Zt:function(){return yt},al:function(){return Ue},bn:function(){return ut},bx:function(){return De},g2:function(){return ai},h1:function(){return nt},hD:function(){return Et},l4:function(){return Te},rU:function(){return Zt},s_:function(){return ke},uz:function(){return xn},z6:function(){return ot}}),ze=ue.hmd(ze),function(){var Ie;function Yi(a){var y=0;return function(){return y<a.length?{done:!1,value:a[y++]}:{done:!0}}}function Ei(a){var y=typeof Symbol!="undefined"&&Symbol.iterator&&a[Symbol.iterator];return y?y.call(a):{next:Yi(a)}}function rr(a){for(var y,x=[];!(y=a.next()).done;)x.push(y.value);return x}var Br=typeof Object.create=="function"?Object.create:function(a){function y(){}return y.prototype=a,new y},Gr;if(typeof Object.setPrototypeOf=="function")Gr=Object.setPrototypeOf;else{var yr;e:{var Vi={a:!0},hi={};try{hi.__proto__=Vi,yr=hi.a;break e}catch(a){}yr=!1}Gr=yr?function(a,y){if(a.__proto__=y,a.__proto__!==y)throw new TypeError(a+" is not extensible");return a}:null}var Jt=Gr;function Wt(a,y){if(a.prototype=Br(y.prototype),a.prototype.constructor=a,Jt)Jt(a,y);else for(var x in y)if(x!="prototype")if(Object.defineProperties){var b=Object.getOwnPropertyDescriptor(y,x);b&&Object.defineProperty(a,x,b)}else a[x]=y[x];a.QA=y.prototype}var jt=typeof ue.g!="undefined"&&ue.g!=null?ue.g:self,gi=typeof Object.assign=="function"?Object.assign:function(a,y){for(var x=1;x<arguments.length;x++){var b=arguments[x];if(b)for(var E in b)Object.prototype.hasOwnProperty.call(b,E)&&(a[E]=b[E])}return a},ii=typeof Object.defineProperties=="function"?Object.defineProperty:function(a,y,x){a!=Array.prototype&&a!=Object.prototype&&(a[y]=x.value)};function Pi(a,y){if(y){var x=jt;a=a.split(".");for(var b=0;b<a.length-1;b++){var E=a[b];E in x||(x[E]={}),x=x[E]}a=a[a.length-1],b=x[a],y=y(b),y!=b&&y!=null&&ii(x,a,{writable:!0,value:y})}}Pi("Object.assign",function(a){return a||gi}),Pi("Array.prototype.fill",function(a){return a||function(y,x,b){var E=this.length||0;for(0>x&&(x=Math.max(0,E+x)),(b==null||b>E)&&(b=E),b=Number(b),0>b&&(b=Math.max(0,E+b)),x=Number(x||0);x<b;x++)this[x]=y;return this}});var In=typeof globalThis=="object"&&globalThis||typeof ue.g=="object"&&ue.g.global===ue.g&&ue.g||typeof self=="object"&&self.self===self&&self||{};In.requestAnimationFrame===void 0&&(In.setImmediate===void 0?In.requestAnimationFrame=function(a){In.setTimeout(a,0)}:In.requestAnimationFrame=In.setImmediate);function fi(){}function on(a,y){var x=-1;return function(){var b=this,E=arguments;x!==-1&&In.clearTimeout(x),x=Gt(function(){x=-1,a.apply(b,E)},y)}}function Gt(a,y){return In.setTimeout(a,y)}function li(a){return In.document.createElement(a)}function vt(a){throw Error(a)}function Sn(a,y){a="The object is frozen, so its properties cannot be set: "+a.toString(),y!==void 0&&(a+=" to value: "+y),vt(a)}function ri(a,y,x,b){x=x===null?"*":typeof x=="string"?x:typeof x=="function"&&typeof x.className=="string"?x.className:"",b!==void 0&&(x+="."+b),vt(x+" is not in the range "+y+": "+a)}function ki(a){In.console&&In.console.log(a)}function zt(a){return typeof a=="object"&&a!==null}function wn(a){return Array.isArray(a)||In.NodeList&&a instanceof In.NodeList||In.HTMLCollection&&a instanceof In.HTMLCollection}function oi(a){return Array.prototype.slice.call(a)}function qt(a,y,x){Array.isArray(a)?y>=a.length?a.push(x):a.splice(y,0,x):vt("Cannot insert an object into an HTMLCollection or NodeList: "+x+" at "+y)}function Be(a,y){Array.isArray(a)?y>=a.length?a.pop():a.splice(y,1):vt("Cannot remove an object from an HTMLCollection or NodeList at "+y)}function Mi(){var a=ro.pop();return a===void 0?[]:a}function ui(a){a.length=0,ro.push(a)}function Tn(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(zt(a)&&a.constructor)return Tn(a.constructor);return typeof a}function Ki(a){var y=a;return zt(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 er(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 or(a,y,x){Object.defineProperty(jo.prototype,a,{get:y,set:x})}function Cn(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,E=0;E<a.length;E+=2)x[b++]=y[a.substr(E,2)];for(a=x.join(""),a=a===""?"0":a,y=[],x=0;256>x;x++)y[x]=x;for(x=b=0;256>x;x++)b=(b+y[x]+119)%256,E=y[x],y[x]=y[b],y[b]=E;b=x=0;for(var z="",ee=0;ee<a.length;ee++)x=(x+1)%256,b=(b+y[x])%256,E=y[x],y[x]=y[b],y[b]=E,z+=String.fromCharCode(a.charCodeAt(ee)^y[(y[x]+y[b])%256]);return z.indexOf("GoJS 2.1 evaluation")>-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 Kt=In.navigator!==void 0&&0<In.navigator.userAgent.indexOf("Trident/7"),sr=In.navigator!==void 0&&In.navigator.platform!==void 0&&In.navigator.platform.match(/(iPhone|iPod|iPad|Mac)/i)!==null,ro=[];Object.freeze([]),fi.className="Util",fi.Dx="32ab5ff3b26f42dc0ed90f21472913b5",fi.adym="gojs.net",fi.vfo="28e645fdb266",fi.className="Util";function mn(a,y,x){qi(this),this.j=a,this.xa=y,this.o=x}mn.prototype.toString=function(){return"EnumValue."+this.xa};function wi(a,y){return y==null||y===""?null:a[y]}jt.Object.defineProperties(mn.prototype,{classType:{get:function(){return this.j}},name:{get:function(){return this.xa}},value:{get:function(){return this.o}}}),mn.className="EnumValue";function _i(){this.ew=[]}_i.prototype.toString=function(){return this.ew.join("")},_i.prototype.add=function(a){a!==""&&this.ew.push(a)},_i.className="StringBuilder";function Ji(){}Ji.className="PropertyCollection";var Gi={EA:!1,JA:!1,GA:!1,IA:!1,NA:!1,LA:!1,nx:!1,FA:null,trace:function(a){In.console&&In.console.log(a)},HA:function(a,y,x,b){a.strokeStyle="red",a.fillStyle="red",a.font="8px sans-serif",a.beginPath(),a.moveTo(-10,0),a.lineTo(10,0),a.moveTo(0,-10),a.lineTo(0,10),a.stroke(),a.setTransform(1,0,0,1,0,0),a.scale(x,x),a.transform(y.m11,y.m12,y.m21,y.m22,y.dx,y.dy),a.lineWidth=2,a.beginPath(),a.moveTo(b.left,b.top+20),a.lineTo(b.left,b.top),a.lineTo(b.left+20,b.top),a.moveTo(b.right,b.bottom-20),a.lineTo(b.right,b.bottom),a.lineTo(b.right-20,b.bottom),a.stroke(),a.fillText("DB: "+Math.round(b.x)+", "+Math.round(b.y)+", "+Math.round(b.width)+", "+Math.round(b.height),b.left,b.top-5)},DA:function(a){var y={},x;for(x in a){if(y.x=x,y.x!=="licenseKey"){var b=a[y.x];if(b.prototype!==void 0){y.Zl=Object.getOwnPropertyNames(b.prototype);for(var E={Tj:0};E.Tj<y.Zl.length;E={Tj:E.Tj},E.Tj++){var z=Object.getOwnPropertyDescriptor(b.prototype,y.Zl[E.Tj]);z.get!==void 0&&z.set===void 0&&Object.defineProperty(b.prototype,y.Zl[E.Tj],{set:function(ee,re){return function(){throw Error("Property "+ee.Zl[re.Tj]+" of "+ee.x+" is read-only.")}}(y,E)})}}}y={Zl:y.Zl,x:y.x}}}};function ir(){}ir.prototype.reset=function(){},ir.prototype.next=function(){return!1},ir.prototype.Ad=function(){return!1},ir.prototype.first=function(){return null},ir.prototype.any=function(){return!1},ir.prototype.all=function(){return!0},ir.prototype.each=function(){return this},ir.prototype.map=function(){return this},ir.prototype.filter=function(){return this},ir.prototype.de=function(){},ir.prototype.toString=function(){return"EmptyIterator"},jt.Object.defineProperties(ir.prototype,{iterator:{get:function(){return this}},count:{get:function(){return 0}}}),ir.prototype.first=ir.prototype.first,ir.prototype.hasNext=ir.prototype.Ad,ir.prototype.next=ir.prototype.next,ir.prototype.reset=ir.prototype.reset;var Fr=null;ir.className="EmptyIterator",Fr=new ir;function Cr(a){this.key=-1,this.value=a}Cr.prototype.reset=function(){this.key=-1},Cr.prototype.next=function(){return this.key===-1?(this.key=0,!0):!1},Cr.prototype.Ad=function(){return this.next()},Cr.prototype.first=function(){return this.key=0,this.value},Cr.prototype.any=function(a){return this.key=-1,a(this.value)},Cr.prototype.all=function(a){return this.key=-1,a(this.value)},Cr.prototype.each=function(a){return this.key=-1,a(this.value),this},Cr.prototype.map=function(a){return new Cr(a(this.value))},Cr.prototype.filter=function(a){return a(this.value)?new Cr(this.value):Fr},Cr.prototype.de=function(){this.value=null},Cr.prototype.toString=function(){return"SingletonIterator("+this.value+")"},jt.Object.defineProperties(Cr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return 1}}}),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="SingletonIterator";function Ir(a){this.Bb=a,this.qf=null,a.Sa=null,this.qa=a.Ja,this.Za=-1}Ir.prototype.reset=function(){var a=this.Bb;a.Sa=null,this.qa=a.Ja,this.Za=-1},Ir.prototype.next=function(){var a=this.Bb;if(a.Ja!==this.qa&&0>this.key)return!1;a=a.s;var y=a.length,x=++this.Za,b=this.qf;if(b!==null)for(;x<y;){var E=a[x];if(b(E))return this.key=this.Za=x,this.value=E,!0;x++}else{if(x<y)return this.key=x,this.value=a[x],!0;this.de()}return!1},Ir.prototype.Ad=function(){return this.next()},Ir.prototype.first=function(){var a=this.Bb;this.qa=a.Ja,this.Za=0,a=a.s;var y=a.length,x=this.qf;if(x!==null){for(var b=0;b<y;){var E=a[b];if(x(E))return this.key=this.Za=b,this.value=E;b++}return null}return 0<y?(a=a[0],this.key=0,this.value=a):null},Ir.prototype.any=function(a){var y=this.Bb;y.Sa=null,this.Za=-1,y=y.s;for(var x=y.length,b=this.qf,E=0;E<x;E++){var z=y[E];if((b===null||b(z))&&a(z))return!0}return!1},Ir.prototype.all=function(a){var y=this.Bb;y.Sa=null,this.Za=-1,y=y.s;for(var x=y.length,b=this.qf,E=0;E<x;E++){var z=y[E];if((b===null||b(z))&&!a(z))return!1}return!0},Ir.prototype.each=function(a){var y=this.Bb;y.Sa=null,this.Za=-1,y=y.s;for(var x=y.length,b=this.qf,E=0;E<x;E++){var z=y[E];(b===null||b(z))&&a(z)}return this},Ir.prototype.map=function(a){var y=this.Bb;y.Sa=null,this.Za=-1;var x=[];y=y.s;for(var b=y.length,E=this.qf,z=0;z<b;z++){var ee=y[z];(E===null||E(ee))&&x.push(a(ee))}return a=new Dn,a.s=x,a.xb(),a.iterator},Ir.prototype.filter=function(a){var y=this.Bb;y.Sa=null,this.Za=-1;var x=[];y=y.s;for(var b=y.length,E=this.qf,z=0;z<b;z++){var ee=y[z];(E===null||E(ee))&&a(ee)&&x.push(ee)}return a=new Dn,a.s=x,a.xb(),a.iterator},Ir.prototype.de=function(){this.key=-1,this.value=null,this.qa=-1,this.qf=null,this.Bb.Sa=this},Ir.prototype.toString=function(){return"ListIterator@"+this.Za+"/"+this.Bb.count},jt.Object.defineProperties(Ir.prototype,{iterator:{get:function(){return this}},predicate:{get:function(){return this.qf},set:function(a){this.qf=a}},count:{get:function(){var a=this.qf;if(a!==null){for(var y=0,x=this.Bb.s,b=x.length,E=0;E<b;E++)a(x[E])&&y++;return y}return this.Bb.s.length}}}),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="ListIterator";function Ur(a){this.Bb=a,a.Hg=null,this.qa=a.Ja,this.Za=a.s.length}Ur.prototype.reset=function(){var a=this.Bb;a.Hg=null,this.qa=a.Ja,this.Za=a.s.length},Ur.prototype.next=function(){var a=this.Bb;if(a.Ja!==this.qa&&0>this.key)return!1;var y=--this.Za;return 0<=y?(this.key=y,this.value=a.s[y],!0):(this.de(),!1)},Ur.prototype.Ad=function(){return this.next()},Ur.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},Ur.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},Ur.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},Ur.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},Ur.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 Dn,a.s=x,a.xb(),a.iterator},Ur.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 E=y[b];a(E)&&x.push(E)}return a=new Dn,a.s=x,a.xb(),a.iterator},Ur.prototype.de=function(){this.key=-1,this.value=null,this.qa=-1,this.Bb.Hg=this},Ur.prototype.toString=function(){return"ListIteratorBackwards("+this.Za+"/"+this.Bb.count+")"},jt.Object.defineProperties(Ur.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.Bb.s.length}}}),Ur.prototype.first=Ur.prototype.first,Ur.prototype.hasNext=Ur.prototype.Ad,Ur.prototype.next=Ur.prototype.next,Ur.prototype.reset=Ur.prototype.reset,Ur.className="ListIteratorBackwards";function Dn(a){qi(this),this._isFrozen=!1,this.s=[],this.Ja=0,this.Hg=this.Sa=null,typeof a=="string"&&vt("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}Ie=Dn.prototype,Ie.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},Ie.freeze=function(){return this._isFrozen=!0,this},Ie.ka=function(){return this._isFrozen=!1,this},Ie.toString=function(){return"List()#"+gr(this)},Ie.add=function(a){return a===null?this:(this._isFrozen&&Sn(this,a),this.s.push(a),this.xb(),this)},Ie.push=function(a){this.add(a)},Ie.addAll=function(a){if(a===null)return this;this._isFrozen&&Sn(this);var y=this.s;if(wn(a))for(var x=a.length,b=0;b<x;b++)y.push(a[b]);else for(a=a.iterator;a.next();)y.push(a.value);return this.xb(),this},Ie.clear=function(){this._isFrozen&&Sn(this),this.s.length=0,this.xb()},Ie.contains=function(a){return a===null?!1:this.s.indexOf(a)!==-1},Ie.has=function(a){return this.contains(a)},Ie.indexOf=function(a){return a===null?-1:this.s.indexOf(a)},Ie.M=function(a){var y=this.s;return(0>a||a>=y.length)&&ri(a,"0 <= i < length",Dn,"elt:i"),y[a]},Ie.get=function(a){return this.M(a)},Ie.cd=function(a,y){var x=this.s;(0>a||a>=x.length)&&ri(a,"0 <= i < length",Dn,"setElt:i"),this._isFrozen&&Sn(this,a),x[a]=y},Ie.set=function(a,y){this.cd(a,y)},Ie.first=function(){var a=this.s;return a.length===0?null:a[0]},Ie.jc=function(){var a=this.s,y=a.length;return 0<y?a[y-1]:null},Ie.pop=function(){this._isFrozen&&Sn(this);var a=this.s;return 0<a.length?a.pop():null},Dn.prototype.any=function(a){for(var y=this.s,x=y.length,b=0;b<x;b++)if(a(y[b]))return!0;return!1},Dn.prototype.all=function(a){for(var y=this.s,x=y.length,b=0;b<x;b++)if(!a(y[b]))return!1;return!0},Dn.prototype.each=function(a){for(var y=this.s,x=y.length,b=0;b<x;b++)a(y[b]);return this},Dn.prototype.map=function(a){for(var y=new Dn,x=[],b=this.s,E=b.length,z=0;z<E;z++)x.push(a(b[z]));return y.s=x,y.xb(),y},Dn.prototype.filter=function(a){for(var y=new Dn,x=[],b=this.s,E=b.length,z=0;z<E;z++){var ee=b[z];a(ee)&&x.push(ee)}return y.s=x,y.xb(),y},Ie=Dn.prototype,Ie.Gb=function(a,y){0>a&&ri(a,">= 0",Dn,"insertAt:i"),this._isFrozen&&Sn(this,a);var x=this.s;a>=x.length?x.push(y):x.splice(a,0,y),this.xb()},Ie.remove=function(a){if(a===null)return!1;this._isFrozen&&Sn(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)},Ie.delete=function(a){return this.remove(a)},Ie.mb=function(a){var y=this.s;(0>a||a>=y.length)&&ri(a,"0 <= i < length",Dn,"removeAt:i"),this._isFrozen&&Sn(this,a),a===y.length-1?y.pop():y.splice(a,1),this.xb()},Ie.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&&Sn(this);for(var E=a,z=y+1;z<b;)x[E++]=x[z++];return x.length=b-(y-a+1),this.xb(),this},Dn.prototype.copy=function(){var a=new Dn,y=this.s;return 0<y.length&&(a.s=Array.prototype.slice.call(y)),a},Ie=Dn.prototype,Ie.Fa=function(){for(var a=this.s,y=this.count,x=Array(y),b=0;b<y;b++)x[b]=a[b];return x},Ie.Iv=function(){for(var a=new Bn,y=this.s,x=this.count,b=0;b<x;b++)a.add(y[b]);return a},Ie.sort=function(a){return this._isFrozen&&Sn(this),this.s.sort(a),this.xb(),this},Ie.zi=function(a,y,x){var b=this.s,E=b.length;y===void 0&&(y=0),x===void 0&&(x=E),this._isFrozen&&Sn(this);var z=x-y;if(1>=z)return this;if((0>y||y>=E-1)&&ri(y,"0 <= from < length",Dn,"sortRange:from"),z===2)return x=b[y],E=b[y+1],0<a(x,E)&&(b[y]=E,b[y+1]=x,this.xb()),this;if(y===0)if(x>=E)b.sort(a);else for(y=b.slice(0,x),y.sort(a),a=0;a<x;a++)b[a]=y[a];else if(x>=E)for(x=b.slice(y),x.sort(a),a=y;a<E;a++)b[a]=x[a-y];else for(E=b.slice(y,x),E.sort(a),a=y;a<x;a++)b[a]=E[a-y];return this.xb(),this},Ie.reverse=function(){return this._isFrozen&&Sn(this),this.s.reverse(),this.xb(),this},jt.Object.defineProperties(Dn.prototype,{_dataArray:{get:function(){return this.s}},count:{get:function(){return this.s.length}},size:{get:function(){return this.s.length}},length:{get:function(){return this.s.length}},iterator:{get:function(){if(0>=this.s.length)return Fr;var a=this.Sa;return a!==null?(a.reset(),a):new Ir(this)}},iteratorBackwards:{get:function(){if(0>=this.s.length)return Fr;var a=this.Hg;return a!==null?(a.reset(),a):new Ur(this)}}}),Dn.prototype.reverse=Dn.prototype.reverse,Dn.prototype.sortRange=Dn.prototype.zi,Dn.prototype.sort=Dn.prototype.sort,Dn.prototype.toSet=Dn.prototype.Iv,Dn.prototype.toArray=Dn.prototype.Fa,Dn.prototype.removeRange=Dn.prototype.removeRange,Dn.prototype.removeAt=Dn.prototype.mb,Dn.prototype.delete=Dn.prototype.delete,Dn.prototype.remove=Dn.prototype.remove,Dn.prototype.insertAt=Dn.prototype.Gb,Dn.prototype.pop=Dn.prototype.pop,Dn.prototype.last=Dn.prototype.jc,Dn.prototype.first=Dn.prototype.first,Dn.prototype.set=Dn.prototype.set,Dn.prototype.setElt=Dn.prototype.cd,Dn.prototype.get=Dn.prototype.get,Dn.prototype.elt=Dn.prototype.M,Dn.prototype.indexOf=Dn.prototype.indexOf,Dn.prototype.has=Dn.prototype.has,Dn.prototype.contains=Dn.prototype.contains,Dn.prototype.clear=Dn.prototype.clear,Dn.prototype.addAll=Dn.prototype.addAll,Dn.prototype.push=Dn.prototype.push,Dn.prototype.add=Dn.prototype.add,Dn.prototype.thaw=Dn.prototype.ka,Dn.prototype.freeze=Dn.prototype.freeze,Dn.className="List";function Zr(a){this.eg=a,a.Sa=null,this.qa=a.Ja,this.sa=null}Zr.prototype.reset=function(){var a=this.eg;a.Sa=null,this.qa=a.Ja,this.sa=null},Zr.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)},Zr.prototype.Ad=function(){return this.next()},Zr.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},Zr.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},Zr.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},Zr.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},Zr.prototype.map=function(a){var y=this.eg;y.Sa=null;var x=new Dn;for(y=y.ea;y!==null;)x.add(a(y.value)),y=y.va;return x.iterator},Zr.prototype.filter=function(a){var y=this.eg;y.Sa=null;var x=new Dn;for(y=y.ea;y!==null;){var b=y.value;a(b)&&x.add(b),y=y.va}return x.iterator},Zr.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.eg.Sa=this},Zr.prototype.toString=function(){return this.sa!==null?"SetIterator@"+this.sa.value:"SetIterator"},jt.Object.defineProperties(Zr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.eg.Sb}}}),Zr.prototype.first=Zr.prototype.first,Zr.prototype.hasNext=Zr.prototype.Ad,Zr.prototype.next=Zr.prototype.next,Zr.prototype.reset=Zr.prototype.reset,Zr.className="SetIterator";function Bn(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"&&vt("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}Ie=Bn.prototype,Ie.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},Ie.freeze=function(){return this._isFrozen=!0,this},Ie.ka=function(){return this._isFrozen=!1,this},Ie.toString=function(){return"Set()#"+gr(this)},Ie.add=function(a){if(a===null)return this;this._isFrozen&&Sn(this,a);var y=a;return zt(a)&&(y=ur(a)),this.Tb[y]===void 0&&(this.Sb++,a=new cn(a,a),this.Tb[y]=a,y=this.kf,y===null?this.ea=a:(a.ll=y,y.va=a),this.kf=a,this.xb()),this},Ie.addAll=function(a){if(a===null)return this;if(this._isFrozen&&Sn(this),wn(a))for(var y=a.length,x=0;x<y;x++)this.add(a[x]);else for(a=a.iterator;a.next();)this.add(a.value);return this},Ie.contains=function(a){if(a===null)return!1;var y=a;return zt(a)&&(y=gr(a),y===void 0)?!1:this.Tb[y]!==void 0},Ie.has=function(a){return this.contains(a)},Ie.Sy=function(a){if(a===null)return!0;for(a=a.iterator;a.next();)if(!this.contains(a.value))return!1;return!0},Ie.Ty=function(a){if(a===null)return!0;for(a=a.iterator;a.next();)if(this.contains(a.value))return!0;return!1},Ie.first=function(){var a=this.ea;return a===null?null:a.value},Bn.prototype.any=function(a){for(var y=this.ea;y!==null;){if(a(y.value))return!0;y=y.va}return!1},Bn.prototype.all=function(a){for(var y=this.ea;y!==null;){if(!a(y.value))return!1;y=y.va}return!0},Bn.prototype.each=function(a){for(var y=this.ea;y!==null;)a(y.value),y=y.va;return this},Bn.prototype.map=function(a){for(var y=new Bn,x=this.ea;x!==null;)y.add(a(x.value)),x=x.va;return y},Bn.prototype.filter=function(a){for(var y=new Bn,x=this.ea;x!==null;){var b=x.value;a(b)&&y.add(b),x=x.va}return y},Ie=Bn.prototype,Ie.remove=function(a){if(a===null)return!1;this._isFrozen&&Sn(this,a);var y=a;if(zt(a)&&(y=gr(a),y===void 0)||(a=this.Tb[y],a===void 0))return!1;var x=a.va,b=a.ll;return x!==null&&(x.ll=b),b!==null&&(b.va=x),this.ea===a&&(this.ea=x),this.kf===a&&(this.kf=b),delete this.Tb[y],this.Sb--,this.xb(),!0},Ie.delete=function(a){return this.remove(a)},Ie.hp=function(a){if(a===null)return this;if(this._isFrozen&&Sn(this),wn(a))for(var y=a.length,x=0;x<y;x++)this.remove(a[x]);else for(a=a.iterator;a.next();)this.remove(a.value);return this},Ie.pA=function(a){if(a===null||this.count===0)return this;this._isFrozen&&Sn(this);var y=new Bn;y.addAll(a),a=[];for(var x=this.iterator;x.next();){var b=x.value;y.contains(b)||a.push(b)}return this.hp(a),this},Ie.clear=function(){this._isFrozen&&Sn(this),this.Tb={},this.Sb=0,this.Sa!==null&&this.Sa.reset(),this.kf=this.ea=null,this.xb()},Bn.prototype.copy=function(){var a=new Bn,y=this.Tb,x;for(x in y)a.add(y[x].value);return a},Bn.prototype.Fa=function(){var a=Array(this.Sb),y=this.Tb,x=0,b;for(b in y)a[x]=y[b].value,x++;return a},Bn.prototype.Hv=function(){var a=new Dn,y=this.Tb,x;for(x in y)a.add(y[x].value);return a};function qi(a){a.__gohashid=xo++}function ur(a){var y=a.__gohashid;return y===void 0&&(y=xo++,a.__gohashid=y),y}function gr(a){return a.__gohashid}jt.Object.defineProperties(Bn.prototype,{count:{get:function(){return this.Sb}},size:{get:function(){return this.Sb}},iterator:{get:function(){if(0>=this.Sb)return Fr;var a=this.Sa;return a!==null?(a.reset(),a):new Zr(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 xo=1;Bn.className="Set",Bn.uniqueHash=qi,Bn.hashIdUnique=ur,Bn.hashId=gr;function yo(a){this.ma=a,this.qa=a.Ja,this.sa=null}yo.prototype.reset=function(){this.qa=this.ma.Ja,this.sa=null},yo.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)},yo.prototype.Ad=function(){return this.next()},yo.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},yo.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},yo.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},yo.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},yo.prototype.map=function(a){var y=this.ma;this.sa=null;var x=new Dn;for(y=y.ea;y!==null;)x.add(a(y.key)),y=y.va;return x.iterator},yo.prototype.filter=function(a){var y=this.ma;this.sa=null;var x=new Dn;for(y=y.ea;y!==null;){var b=y.key;a(b)&&x.add(b),y=y.va}return x.iterator},yo.prototype.de=function(){this.value=this.key=null,this.qa=-1},yo.prototype.toString=function(){return this.sa!==null?"MapKeySetIterator@"+this.sa.value:"MapKeySetIterator"},jt.Object.defineProperties(yo.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),yo.prototype.first=yo.prototype.first,yo.prototype.hasNext=yo.prototype.Ad,yo.prototype.next=yo.prototype.next,yo.prototype.reset=yo.prototype.reset,yo.className="MapKeySetIterator";function mo(a){Bn.call(this),qi(this),this._isFrozen=!0,this.ma=a}Wt(mo,Bn),Ie=mo.prototype,Ie.freeze=function(){return this},Ie.ka=function(){return this},Ie.toString=function(){return"MapKeySet("+this.ma.toString()+")"},Ie.add=function(){vt("This Set is read-only: "+this.toString())},Ie.contains=function(a){return this.ma.contains(a)},Ie.has=function(a){return this.contains(a)},Ie.remove=function(){vt("This Set is read-only: "+this.toString())},Ie.delete=function(a){return this.remove(a)},Ie.clear=function(){vt("This Set is read-only: "+this.toString())},Ie.first=function(){var a=this.ma.ea;return a!==null?a.key:null},mo.prototype.any=function(a){for(var y=this.ma.ea;y!==null;){if(a(y.key))return!0;y=y.va}return!1},mo.prototype.all=function(a){for(var y=this.ma.ea;y!==null;){if(!a(y.key))return!1;y=y.va}return!0},mo.prototype.each=function(a){for(var y=this.ma.ea;y!==null;)a(y.key),y=y.va;return this},mo.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},mo.prototype.filter=function(a){for(var y=new Bn,x=this.ma.ea;x!==null;){var b=x.key;a(b)&&y.add(b),x=x.va}return y},mo.prototype.copy=function(){return new mo(this.ma)},mo.prototype.Iv=function(){var a=new Bn,y=this.ma.Tb,x;for(x in y)a.add(y[x].key);return a},mo.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},mo.prototype.Hv=function(){var a=new Dn,y=this.ma.Tb,x;for(x in y)a.add(y[x].key);return a},jt.Object.defineProperties(mo.prototype,{count:{get:function(){return this.ma.Sb}},size:{get:function(){return this.ma.Sb}},iterator:{get:function(){return 0>=this.ma.Sb?Fr:new yo(this.ma)}}}),mo.prototype.toList=mo.prototype.Hv,mo.prototype.toArray=mo.prototype.Fa,mo.prototype.toSet=mo.prototype.Iv,mo.prototype.first=mo.prototype.first,mo.prototype.clear=mo.prototype.clear,mo.prototype.delete=mo.prototype.delete,mo.prototype.remove=mo.prototype.remove,mo.prototype.has=mo.prototype.has,mo.prototype.contains=mo.prototype.contains,mo.prototype.add=mo.prototype.add,mo.prototype.thaw=mo.prototype.ka,mo.prototype.freeze=mo.prototype.freeze,mo.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 Dn;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 Dn;for(y=y.ea;y!==null;){var b=y.value;a(b)&&x.add(b),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"},jt.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 cn(a,y){this.key=a,this.value=y,this.ll=this.va=null}cn.prototype.toString=function(){return"{"+this.key+":"+this.value+"}"},cn.className="KeyValuePair";function Fn(a){this.ma=a,a.Sa=null,this.qa=a.Ja,this.sa=null}Fn.prototype.reset=function(){var a=this.ma;a.Sa=null,this.qa=a.Ja,this.sa=null},Fn.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)},Fn.prototype.Ad=function(){return this.next()},Fn.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},Fn.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},Fn.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},Fn.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},Fn.prototype.map=function(a){var y=this.ma;this.sa=y.Sa=null;var x=new Dn;for(y=y.ea;y!==null;)x.add(a(y)),y=y.va;return x.iterator},Fn.prototype.filter=function(a){var y=this.ma;this.sa=y.Sa=null;var x=new Dn;for(y=y.ea;y!==null;)a(y)&&x.add(y),y=y.va;return x.iterator},Fn.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.Sa=this},Fn.prototype.toString=function(){return this.sa!==null?"MapIterator@"+this.sa:"MapIterator"},jt.Object.defineProperties(Fn.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),Fn.prototype.first=Fn.prototype.first,Fn.prototype.hasNext=Fn.prototype.Ad,Fn.prototype.next=Fn.prototype.next,Fn.prototype.reset=Fn.prototype.reset,Fn.className="MapIterator";function an(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"&&vt("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}Ie=an.prototype,Ie.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},Ie.freeze=function(){return this._isFrozen=!0,this},Ie.ka=function(){return this._isFrozen=!1,this},Ie.toString=function(){return"Map()#"+gr(this)},Ie.add=function(a,y){this._isFrozen&&Sn(this,a);var x=a;zt(a)&&(x=ur(a));var b=this.Tb[x];return b===void 0?(this.Sb++,a=new cn(a,y),this.Tb[x]=a,x=this.kf,x===null?this.ea=a:(a.ll=x,x.va=a),this.kf=a,this.xb()):b.value=y,this},Ie.set=function(a,y){return this.add(a,y)},Ie.addAll=function(a){if(a===null)return this;if(wn(a))for(var y=a.length,x=0;x<y;x++){var b=a[x];this.add(b.key,b.value)}else if(a instanceof an)for(a=a.iterator;a.next();)this.add(a.key,a.value);else for(a=a.iterator;a.next();)y=a.value,this.add(y.key,y.value);return this},Ie.first=function(){return this.ea},an.prototype.any=function(a){for(var y=this.ea;y!==null;){if(a(y))return!0;y=y.va}return!1},an.prototype.all=function(a){for(var y=this.ea;y!==null;){if(!a(y))return!1;y=y.va}return!0},an.prototype.each=function(a){for(var y=this.ea;y!==null;)a(y),y=y.va;return this},an.prototype.map=function(a){for(var y=new an,x=this.ea;x!==null;)y.add(x.key,a(x)),x=x.va;return y},an.prototype.filter=function(a){for(var y=new an,x=this.ea;x!==null;)a(x)&&y.add(x.key,x.value),x=x.va;return y},Ie=an.prototype,Ie.contains=function(a){var y=a;return zt(a)&&(y=gr(a),y===void 0)?!1:this.Tb[y]!==void 0},Ie.has=function(a){return this.contains(a)},Ie.I=function(a){var y=a;return zt(a)&&(y=gr(a),y===void 0)?null:(a=this.Tb[y],a===void 0?null:a.value)},Ie.get=function(a){return this.I(a)},Ie.remove=function(a){if(a===null)return!1;this._isFrozen&&Sn(this,a);var y=a;if(zt(a)&&(y=gr(a),y===void 0)||(a=this.Tb[y],a===void 0))return!1;var x=a.va,b=a.ll;return x!==null&&(x.ll=b),b!==null&&(b.va=x),this.ea===a&&(this.ea=x),this.kf===a&&(this.kf=b),delete this.Tb[y],this.Sb--,this.xb(),!0},Ie.delete=function(a){return this.remove(a)},Ie.clear=function(){this._isFrozen&&Sn(this),this.Tb={},this.Sb=0,this.Sa!==null&&this.Sa.reset(),this.jf!==null&&this.jf.reset(),this.kf=this.ea=null,this.xb()},an.prototype.copy=function(){var a=new an,y=this.Tb,x;for(x in y){var b=y[x];a.add(b.key,b.value)}return a},an.prototype.Fa=function(){var a=this.Tb,y=Array(this.Sb),x=0,b;for(b in a){var E=a[b];y[x]=new cn(E.key,E.value),x++}return y},an.prototype.Lf=function(){return new mo(this)},jt.Object.defineProperties(an.prototype,{count:{get:function(){return this.Sb}},size:{get:function(){return this.Sb}},iterator:{get:function(){if(0>=this.count)return Fr;var a=this.Sa;return a!==null?(a.reset(),a):new Fn(this)}},iteratorKeys:{get:function(){return 0>=this.count?Fr:new yo(this)}},iteratorValues:{get:function(){if(0>=this.count)return Fr;var a=this.jf;return a!==null?(a.reset(),a):new bo(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 Je(a,y){a===void 0?this.y=this.x=0:typeof a=="number"&&typeof y=="number"?(this.x=a,this.y=y):vt("Invalid arguments to Point constructor: "+a+", "+y),this._isFrozen=!1}var ci,Qn,yi,Ci,Fi;Je.prototype.assign=function(a){return this.x=a.x,this.y=a.y,this},Je.prototype.h=function(a,y){return this.x=a,this.y=y,this},Je.prototype.sg=function(a,y){return this.x=a,this.y=y,this},Je.prototype.set=function(a){return this.x=a.x,this.y=a.y,this},Je.prototype.copy=function(){var a=new Je;return a.x=this.x,a.y=this.y,a},Ie=Je.prototype,Ie.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Ie.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Ie.freeze=function(){return this._isFrozen=!0,this},Ie.ka=function(){return Object.isFrozen(this)&&vt("cannot thaw constant: "+this),this._isFrozen=!1,this};function Vn(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 E=0;a[y]==="";)y++;return(b=a[y++])&&(E=parseFloat(b)),new Je(x,E)}return new Je}function pi(a){return a.x.toString()+" "+a.y.toString()}Ie.toString=function(){return"Point("+this.x+","+this.y+")"},Ie.D=function(a){return a instanceof Je?this.x===a.x&&this.y===a.y:!1},Ie.hi=function(a,y){return this.x===a&&this.y===y},Ie.Xa=function(a){return Bt.B(this.x,a.x)&&Bt.B(this.y,a.y)},Ie.add=function(a){return this.x+=a.x,this.y+=a.y,this},Ie.re=function(a){return this.x-=a.x,this.y-=a.y,this},Ie.offset=function(a,y){return this.x+=a,this.y+=y,this},Je.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},Ie=Je.prototype,Ie.scale=function(a,y){return this.x*=a,this.y*=y,this},Ie.Bf=function(a){var y=a.x-this.x;return a=a.y-this.y,y*y+a*a},Ie.zd=function(a,y){return a-=this.x,y-=this.y,a*a+y*y},Ie.normalize=function(){var a=this.x,y=this.y,x=Math.sqrt(a*a+y*y);return 0<x&&(this.x=a/x,this.y=y/x),this},Ie.ab=function(a){return mi(a.x-this.x,a.y-this.y)},Ie.direction=function(a,y){return mi(a-this.x,y-this.y)};function mi(a,y){if(a===0)return 0<y?90:0>y?270:0;if(y===0)return 0<a?0:180;if(isNaN(a)||isNaN(y))return 0;var x=180*Math.atan(Math.abs(y/a))/Math.PI;return 0>a?x=0>y?x+180:180-x:0>y&&(x=360-x),x}Ie.Ry=function(a,y){return Bt.Fl(a.x,a.y,y.x,y.y,this.x,this.y)},Ie.fA=function(a,y,x,b){return Bt.qh(a,y,x,b,this.x,this.y,this),this},Ie.gA=function(a,y){return Bt.qh(a.x,a.y,y.x,y.y,this.x,this.y,this),this},Ie.uA=function(a,y,x,b){return Bt.No(this.x,this.y,a,y,x,b,this),this},Ie.vA=function(a,y){return Bt.No(this.x,this.y,a.x,a.y,y.width,y.height,this),this},Ie.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},Ie.yi=function(a,y,x,b,E){return this.x=a+E.x*x+E.offsetX,this.y=y+E.y*b+E.offsetY,this},Ie.transform=function(a){return a.Ga(this),this};function xi(a,y){return y.Cd(a),a}function bi(a,y,x,b,E,z){var ee=E-x,re=z-b,oe=ee*ee+re*re;x-=a,b-=y;var de=-x*ee-b*re;return 0>=de||de>=oe?(ee=E-a,re=z-y,Math.min(x*x+b*b,ee*ee+re*re)):(a=ee*b-re*x,a*a/oe)}function tr(a,y,x,b){return a=x-a,y=b-y,a*a+y*y}function zi(a,y,x,b){return a=x-a,y=b-y,a===0?0<y?90:0>y?270:0:y===0?0<a?0:180:isNaN(a)||isNaN(y)?0:(b=180*Math.atan(Math.abs(y/a))/Math.PI,0>a?b=0>y?b+180:180-b:0>y&&(b=360-b),b)}Ie.w=function(){return isFinite(this.x)&&isFinite(this.y)},Je.alloc=function(){var a=Bi.pop();return a===void 0?new Je:a},Je.allocAt=function(a,y){var x=Bi.pop();return x===void 0?new Je(a,y):(x.x=a,x.y=y,x)},Je.free=function(a){Bi.push(a)},Je.prototype.isReal=Je.prototype.w,Je.prototype.setSpot=Je.prototype.yi,Je.prototype.setRectSpot=Je.prototype.xi,Je.prototype.snapToGridPoint=Je.prototype.vA,Je.prototype.snapToGrid=Je.prototype.uA,Je.prototype.projectOntoLineSegmentPoint=Je.prototype.gA,Je.prototype.projectOntoLineSegment=Je.prototype.fA,Je.intersectingLineSegments=function(a,y,x,b,E,z,ee,re){return Bt.Rl(a,y,x,b,E,z,ee,re)},Je.prototype.compareWithLineSegmentPoint=Je.prototype.Ry,Je.compareWithLineSegment=function(a,y,x,b,E,z){return Bt.Fl(a,y,x,b,E,z)},Je.prototype.direction=Je.prototype.direction,Je.prototype.directionPoint=Je.prototype.ab,Je.prototype.normalize=Je.prototype.normalize,Je.prototype.distanceSquared=Je.prototype.zd,Je.prototype.distanceSquaredPoint=Je.prototype.Bf,Je.prototype.scale=Je.prototype.scale,Je.prototype.rotate=Je.prototype.rotate,Je.prototype.offset=Je.prototype.offset,Je.prototype.subtract=Je.prototype.re,Je.prototype.add=Je.prototype.add,Je.prototype.equalsApprox=Je.prototype.Xa,Je.prototype.equalTo=Je.prototype.hi,Je.prototype.equals=Je.prototype.D,Je.prototype.set=Je.prototype.set,Je.prototype.setTo=Je.prototype.sg;var Bi=[];Je.className="Point",Je.parse=Vn,Je.stringify=pi,Je.distanceLineSegmentSquared=bi,Je.distanceSquared=tr,Je.direction=zi,Je.Origin=ci=new Je(0,0).ja(),Je.InfiniteTopLeft=Qn=new Je(-1/0,-1/0).ja(),Je.InfiniteBottomRight=yi=new Je(1/0,1/0).ja(),Je.SixPoint=Ci=new Je(6,6).ja(),Je.NoPoint=Fi=new Je(NaN,NaN).ja(),Je.parse=Vn,Je.stringify=pi,Je.distanceLineSegmentSquared=bi,Je.distanceSquared=tr,Je.direction=zi;function Ln(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):vt("Invalid arguments to Size constructor: "+a+", "+y),this._isFrozen=!1}var Oi,ar,_r,Lr,Wr,Hr,jr;Ln.prototype.assign=function(a){return this.width=a.width,this.height=a.height,this},Ln.prototype.h=function(a,y){return this.width=a,this.height=y,this},Ln.prototype.sg=function(a,y){return this.width=a,this.height=y,this},Ln.prototype.set=function(a){return this.width=a.width,this.height=a.height,this},Ln.prototype.copy=function(){var a=new Ln;return a.width=this.width,a.height=this.height,a},Ie=Ln.prototype,Ie.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Ie.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Ie.freeze=function(){return this._isFrozen=!0,this},Ie.ka=function(){return Object.isFrozen(this)&&vt("cannot thaw constant: "+this),this._isFrozen=!1,this};function So(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 E=0;a[y]==="";)y++;return(b=a[y++])&&(E=parseFloat(b)),new Ln(x,E)}return new Ln}function vo(a){return a.width.toString()+" "+a.height.toString()}Ie.toString=function(){return"Size("+this.width+","+this.height+")"},Ie.D=function(a){return a instanceof Ln?this.width===a.width&&this.height===a.height:!1},Ie.hi=function(a,y){return this.width===a&&this.height===y},Ie.Xa=function(a){return Bt.B(this.width,a.width)&&Bt.B(this.height,a.height)},Ie.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},Ie.w=function(){return isFinite(this.width)&&isFinite(this.height)},Ln.alloc=function(){var a=ra.pop();return a===void 0?new Ln:a},Ln.free=function(a){ra.push(a)},Ln.prototype.isReal=Ln.prototype.w,Ln.prototype.inflate=Ln.prototype.Bc,Ln.prototype.equalsApprox=Ln.prototype.Xa,Ln.prototype.equalTo=Ln.prototype.hi,Ln.prototype.equals=Ln.prototype.D,Ln.prototype.set=Ln.prototype.set,Ln.prototype.setTo=Ln.prototype.sg;var ra=[];Ln.className="Size",Ln.parse=So,Ln.stringify=vo,Ln.ZeroSize=Oi=new Ln(0,0).ja(),Ln.OneSize=ar=new Ln(1,1).ja(),Ln.SixSize=_r=new Ln(6,6).ja(),Ln.EightSize=Lr=new Ln(8,8).ja(),Ln.TenSize=Wr=new Ln(10,10).ja(),Ln.InfiniteSize=Hr=new Ln(1/0,1/0).ja(),Ln.NoSize=jr=new Ln(NaN,NaN).ja(),Ln.parse=So,Ln.stringify=vo;function tn(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 Je?(x=a.x,a=a.y,y instanceof Je?(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 Ln?(this.x=x,this.y=a,this.width=y.width,this.height=y.height):vt("Incorrect second argument supplied to Rect constructor "+y)):vt("Invalid arguments to Rect constructor: "+a+", "+y+", "+x+", "+b),this._isFrozen=!1}Ie=tn.prototype,Ie.assign=function(a){return this.x=a.x,this.y=a.y,this.width=a.width,this.height=a.height,this},Ie.h=function(a,y,x,b){return this.x=a,this.y=y,this.width=x,this.height=b,this};function Xr(a,y,x){a.width=y,a.height=x}Ie.sg=function(a,y,x,b){return this.x=a,this.y=y,this.width=x,this.height=b,this},Ie.set=function(a){return this.x=a.x,this.y=a.y,this.width=a.width,this.height=a.height,this},Ie.dd=function(a){return this.x=a.x,this.y=a.y,this},Ie.tA=function(a){return this.width=a.width,this.height=a.height,this},tn.prototype.copy=function(){var a=new tn;return a.x=this.x,a.y=this.y,a.width=this.width,a.height=this.height,a},Ie=tn.prototype,Ie.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Ie.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Ie.freeze=function(){return this._isFrozen=!0,this},Ie.ka=function(){return Object.isFrozen(this)&&vt("cannot thaw constant: "+this),this._isFrozen=!1,this};function uo(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 E=0;a[y]==="";)y++;(b=a[y++])&&(E=parseFloat(b));for(var z=0;a[y]==="";)y++;(b=a[y++])&&(z=parseFloat(b));for(var ee=0;a[y]==="";)y++;return(b=a[y++])&&(ee=parseFloat(b)),new tn(x,E,z,ee)}return new tn}function Tr(a){return a.x.toString()+" "+a.y.toString()+" "+a.width.toString()+" "+a.height.toString()}Ie.toString=function(){return"Rect("+this.x+","+this.y+","+this.width+","+this.height+")"},Ie.D=function(a){return a instanceof tn?this.x===a.x&&this.y===a.y&&this.width===a.width&&this.height===a.height:!1},Ie.hi=function(a,y,x,b){return this.x===a&&this.y===y&&this.width===x&&this.height===b},Ie.Xa=function(a){return Bt.B(this.x,a.x)&&Bt.B(this.y,a.y)&&Bt.B(this.width,a.width)&&Bt.B(this.height,a.height)};function ao(a,y){return Bt.$(a.x,y.x)&&Bt.$(a.y,y.y)&&Bt.$(a.width,y.width)&&Bt.$(a.height,y.height)}Ie.ca=function(a){return this.x<=a.x&&this.x+this.width>=a.x&&this.y<=a.y&&this.y+this.height>=a.y},Ie.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},Ie.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},Ie.offset=function(a,y){return this.x+=a,this.y+=y,this},Ie.Bc=function(a,y){return br(this,y,a,y,a)},Ie.Co=function(a){return br(this,a.top,a.right,a.bottom,a.left)},Ie.Fv=function(a){return br(this,-a.top,-a.right,-a.bottom,-a.left)},Ie.Hz=function(a,y,x,b){return br(this,a,y,x,b)};function br(a,y,x,b,E){var z=a.width;return x+E<=-z?(a.x+=z/2,a.width=0):(a.x-=E,a.width+=x+E),x=a.height,y+b<=-x?(a.y+=x/2,a.height=0):(a.y-=y,a.height+=y+b),a}Ie.Ex=function(a){return Go(this,a.x,a.y,a.width,a.height)},Ie.Uu=function(a,y,x,b){return Go(this,a,y,x,b)};function Go(a,y,x,b,E){var z=Math.max(a.x,y),ee=Math.max(a.y,x);return y=Math.min(a.x+a.width,y+b),x=Math.min(a.y+a.height,x+E),a.x=z,a.y=ee,a.width=Math.max(0,y-z),a.height=Math.max(0,x-ee),a}Ie.Yc=function(a){return this.Vu(a.x,a.y,a.width,a.height)},Ie.Vu=function(a,y,x,b){var E=this.width,z=this.x;return E!==1/0&&x!==1/0&&(E+=z,x+=a,isNaN(x)||isNaN(E)||z>x||a>E)?!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 gn(a,y){var x=a.width,b=a.x,E=y.x-10;return b>y.width+10+10+E||E>x+b?!1:(x=a.height,a=a.y,b=y.y-10,!(a>y.height+10+10+b||b>x+a))}Ie.Ye=function(a){return qr(this,a.x,a.y,0,0)},Ie.ed=function(a){return qr(this,a.x,a.y,a.width,a.height)},Ie.Kv=function(a,y,x,b){return x===void 0&&(x=0),b===void 0&&(b=0),qr(this,a,y,x,b)};function qr(a,y,x,b,E){var z=Math.min(a.x,y),ee=Math.min(a.y,x);return y=Math.max(a.x+a.width,y+b),x=Math.max(a.y+a.height,x+E),a.x=z,a.y=ee,a.width=y-z,a.height=x-ee,a}Ie.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 Oo(a,y,x,b,E,z,ee,re){return ee===void 0&&(ee=0),re===void 0&&(re=0),a<=E&&E+ee<=a+x&&y<=z&&z+re<=y+b}function Ga(a,y,x,b,E,z,ee,re){return a>ee+E||E>x+a?!1:!(y>re+z||z>b+y)}Ie.w=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},Ie.Mz=function(){return this.width===0&&this.height===0},tn.alloc=function(){var a=Za.pop();return a===void 0?new tn:a},tn.allocAt=function(a,y,x,b){var E=Za.pop();return E===void 0?new tn(a,y,x,b):E.h(a,y,x,b)},tn.free=function(a){Za.push(a)},jt.Object.defineProperties(tn.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 Je(this.x,this.y)},set:function(a){this.x=a.x,this.y=a.y}},size:{get:function(){return new Ln(this.width,this.height)},set:function(a){this.width=a.width,this.height=a.height}},center:{get:function(){return new Je(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}}}),tn.prototype.isEmpty=tn.prototype.Mz,tn.prototype.isReal=tn.prototype.w,tn.intersectsLineSegment=function(a,y,x,b,E,z,ee,re){return Bt.Fx(a,y,x,b,E,z,ee,re)},tn.prototype.setSpot=tn.prototype.yi,tn.prototype.union=tn.prototype.Kv,tn.prototype.unionRect=tn.prototype.ed,tn.prototype.unionPoint=tn.prototype.Ye,tn.prototype.intersects=tn.prototype.Vu,tn.prototype.intersectsRect=tn.prototype.Yc,tn.prototype.intersect=tn.prototype.Uu,tn.prototype.intersectRect=tn.prototype.Ex,tn.prototype.grow=tn.prototype.Hz,tn.prototype.subtractMargin=tn.prototype.Fv,tn.prototype.addMargin=tn.prototype.Co,tn.prototype.inflate=tn.prototype.Bc,tn.prototype.offset=tn.prototype.offset,tn.prototype.contains=tn.prototype.contains,tn.prototype.containsRect=tn.prototype.Re,tn.prototype.containsPoint=tn.prototype.ca,tn.prototype.equalsApprox=tn.prototype.Xa,tn.prototype.equalTo=tn.prototype.hi,tn.prototype.equals=tn.prototype.D,tn.prototype.setSize=tn.prototype.tA,tn.prototype.setPoint=tn.prototype.dd,tn.prototype.set=tn.prototype.set,tn.prototype.setTo=tn.prototype.sg;var pa=null,us=null,Za=[];tn.className="Rect",tn.parse=uo,tn.stringify=Tr,tn.contains=Oo,tn.intersects=Ga,tn.ZeroRect=pa=new tn(0,0,0,0).ja(),tn.NoRect=us=new tn(NaN,NaN,NaN,NaN).ja(),tn.parse=uo,tn.stringify=Tr,tn.contains=Oo,tn.intersects=Ga;function pr(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):vt("Invalid arguments to Margin constructor: "+a+", "+y+", "+x+", "+b),this._isFrozen=!1}pr.prototype.assign=function(a){return this.top=a.top,this.right=a.right,this.bottom=a.bottom,this.left=a.left,this},pr.prototype.sg=function(a,y,x,b){return this.top=a,this.right=y,this.bottom=x,this.left=b,this},pr.prototype.set=function(a){return this.top=a.top,this.right=a.right,this.bottom=a.bottom,this.left=a.left,this},pr.prototype.copy=function(){var a=new pr;return a.top=this.top,a.right=this.right,a.bottom=this.bottom,a.left=this.left,a},Ie=pr.prototype,Ie.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Ie.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Ie.freeze=function(){return this._isFrozen=!0,this},Ie.ka=function(){return Object.isFrozen(this)&&vt("cannot thaw constant: "+this),this._isFrozen=!1,this};function Ho(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 pr;for(var E=NaN;a[y]==="";)y++;if((b=a[y++])&&(E=parseFloat(b)),isNaN(E))return new pr(x);for(var z=NaN;a[y]==="";)y++;if((b=a[y++])&&(z=parseFloat(b)),isNaN(z))return new pr(x,E);for(var ee=NaN;a[y]==="";)y++;return(b=a[y++])&&(ee=parseFloat(b)),isNaN(ee)?new pr(x,E):new pr(x,E,z,ee)}return new pr}function ca(a){return a.top.toString()+" "+a.right.toString()+" "+a.bottom.toString()+" "+a.left.toString()}Ie.toString=function(){return"Margin("+this.top+","+this.right+","+this.bottom+","+this.left+")"},Ie.D=function(a){return a instanceof pr?this.top===a.top&&this.right===a.right&&this.bottom===a.bottom&&this.left===a.left:!1},Ie.hi=function(a,y,x,b){return this.top===a&&this.right===y&&this.bottom===x&&this.left===b},Ie.Xa=function(a){return Bt.B(this.top,a.top)&&Bt.B(this.right,a.right)&&Bt.B(this.bottom,a.bottom)&&Bt.B(this.left,a.left)},Ie.w=function(){return isFinite(this.top)&&isFinite(this.right)&&isFinite(this.bottom)&&isFinite(this.left)},pr.alloc=function(){var a=Kr.pop();return a===void 0?new pr:a},pr.free=function(a){Kr.push(a)},pr.prototype.isReal=pr.prototype.w,pr.prototype.equalsApprox=pr.prototype.Xa,pr.prototype.equalTo=pr.prototype.hi,pr.prototype.equals=pr.prototype.D,pr.prototype.set=pr.prototype.set,pr.prototype.setTo=pr.prototype.sg;var wa=null,to=null,Kr=[];pr.className="Margin",pr.parse=Ho,pr.stringify=ca,pr.ZeroMargin=wa=new pr(0,0,0,0).ja(),pr.TwoMargin=to=new pr(2,2,2,2).ja(),pr.parse=Ho,pr.stringify=ca;function Ut(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 Ni,Qi,Pr,co,Qr,mr,Mo,Jo,Do,ho,na,as,Po,ka,bs,Ds,fa,Gs,pl,Es,As,Fs,Bl,oc,Uu,Da,zu,ac,Cu,Tu,ms,ws,Wa,Xa,ia,Eo;Ut.prototype.assign=function(a){return this.x=a.x,this.y=a.y,this.offsetX=a.offsetX,this.offsetY=a.offsetY,this},Ut.prototype.sg=function(a,y,x,b){return this.x=a,this.y=y,this.offsetX=x,this.offsetY=b,this},Ut.prototype.set=function(a){return this.x=a.x,this.y=a.y,this.offsetX=a.offsetX,this.offsetY=a.offsetY,this},Ut.prototype.copy=function(){var a=new Ut;return a.x=this.x,a.y=this.y,a.offsetX=this.offsetX,a.offsetY=this.offsetY,a},Ie=Ut.prototype,Ie.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Ie.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Ie.freeze=function(){return this._isFrozen=!0,this},Ie.ka=function(){return Object.isFrozen(this)&&vt("cannot thaw constant: "+this),this._isFrozen=!1,this};function Fo(a,y){return a.x=NaN,a.y=NaN,a.offsetX=y,a}function Qa(a){if(typeof a=="string"){if(a=a.trim(),a==="None")return Ni;if(a==="TopLeft")return Qi;if(a==="Top"||a==="TopCenter"||a==="MiddleTop")return Pr;if(a==="TopRight")return co;if(a==="Left"||a==="LeftCenter"||a==="MiddleLeft")return Qr;if(a==="Center")return mr;if(a==="Right"||a==="RightCenter"||a==="MiddleRight")return Mo;if(a==="BottomLeft")return Jo;if(a==="Bottom"||a==="BottomCenter"||a==="MiddleBottom")return Do;if(a==="BottomRight")return ho;if(a==="TopSide")return na;if(a==="LeftSide")return as;if(a==="RightSide")return Po;if(a==="BottomSide")return ka;if(a==="TopBottomSides")return bs;if(a==="LeftRightSides")return Ds;if(a==="TopLeftSides")return fa;if(a==="TopRightSides")return Gs;if(a==="BottomLeftSides")return pl;if(a==="BottomRightSides")return Es;if(a==="NotTopSide")return As;if(a==="NotLeftSide")return Fs;if(a==="NotRightSide")return Bl;if(a==="NotBottomSide")return oc;if(a==="AllSides")return Uu;if(a==="Default")return Da;a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var b=a[y++];b!==void 0&&0<b.length&&(x=parseFloat(b));for(var E=0;a[y]==="";)y++;b=a[y++],b!==void 0&&0<b.length&&(E=parseFloat(b));for(var z=0;a[y]==="";)y++;b=a[y++],b!==void 0&&0<b.length&&(z=parseFloat(b));for(var ee=0;a[y]==="";)y++;return b=a[y++],b!==void 0&&0<b.length&&(ee=parseFloat(b)),new Ut(x,E,z,ee)}return new Ut}function La(a){return a.sb()?a.x.toString()+" "+a.y.toString()+" "+a.offsetX.toString()+" "+a.offsetY.toString():a.toString()}Ie.toString=function(){return this.sb()?this.offsetX===0&&this.offsetY===0?"Spot("+this.x+","+this.y+")":"Spot("+this.x+","+this.y+","+this.offsetX+","+this.offsetY+")":this.D(Ni)?"None":this.D(Qi)?"TopLeft":this.D(Pr)?"Top":this.D(co)?"TopRight":this.D(Qr)?"Left":this.D(mr)?"Center":this.D(Mo)?"Right":this.D(Jo)?"BottomLeft":this.D(Do)?"Bottom":this.D(ho)?"BottomRight":this.D(na)?"TopSide":this.D(as)?"LeftSide":this.D(Po)?"RightSide":this.D(ka)?"BottomSide":this.D(bs)?"TopBottomSides":this.D(Ds)?"LeftRightSides":this.D(fa)?"TopLeftSides":this.D(Gs)?"TopRightSides":this.D(pl)?"BottomLeftSides":this.D(Es)?"BottomRightSides":this.D(As)?"NotTopSide":this.D(Fs)?"NotLeftSide":this.D(Bl)?"NotRightSide":this.D(oc)?"NotBottomSide":this.D(Uu)?"AllSides":this.D(Da)?"Default":"None"},Ie.D=function(a){return a instanceof Ut?(this.x===a.x||isNaN(this.x)&&isNaN(a.x))&&(this.y===a.y||isNaN(this.y)&&isNaN(a.y))&&this.offsetX===a.offsetX&&this.offsetY===a.offsetY:!1},Ie.gv=function(){return new Ut(.5-(this.x-.5),.5-(this.y-.5),-this.offsetX,-this.offsetY)},Ie.Hf=function(a){if(!this.$c())return!1;if(!a.$c())if(a.D(zu))a=as;else if(a.D(ac))a=Po;else if(a.D(Cu))a=na;else if(a.D(Tu))a=ka;else return!1;return a=a.offsetY,(this.offsetY&a)===a},Ie.sb=function(){return!isNaN(this.x)&&!isNaN(this.y)},Ie.Mc=function(){return isNaN(this.x)||isNaN(this.y)},Ie.$c=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===1&&this.offsetY!==0},Ie.ys=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===0&&this.offsetY===0},Ie.Xb=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===-1&&this.offsetY===0},Ut.alloc=function(){var a=Fa.pop();return a===void 0?new Ut:a},Ut.free=function(a){Fa.push(a)},Ut.prototype.isDefault=Ut.prototype.Xb,Ut.prototype.isNone=Ut.prototype.ys,Ut.prototype.isSide=Ut.prototype.$c,Ut.prototype.isNoSpot=Ut.prototype.Mc,Ut.prototype.isSpot=Ut.prototype.sb,Ut.prototype.includesSide=Ut.prototype.Hf,Ut.prototype.opposite=Ut.prototype.gv,Ut.prototype.equals=Ut.prototype.D,Ut.prototype.set=Ut.prototype.set,Ut.prototype.setTo=Ut.prototype.sg;var Fa=[];Ut.className="Spot",Ut.parse=Qa,Ut.stringify=La,Ut.None=Ni=Fo(new Ut(0,0,0,0),0).ja(),Ut.Default=Da=Fo(new Ut(0,0,-1,0),-1).ja(),Ut.TopLeft=Qi=new Ut(0,0,0,0).ja(),Ut.TopCenter=Pr=new Ut(.5,0,0,0).ja(),Ut.TopRight=co=new Ut(1,0,0,0).ja(),Ut.LeftCenter=Qr=new Ut(0,.5,0,0).ja(),Ut.Center=mr=new Ut(.5,.5,0,0).ja(),Ut.RightCenter=Mo=new Ut(1,.5,0,0).ja(),Ut.BottomLeft=Jo=new Ut(0,1,0,0).ja(),Ut.BottomCenter=Do=new Ut(.5,1,0,0).ja(),Ut.BottomRight=ho=new Ut(1,1,0,0).ja(),Ut.MiddleTop=ms=Pr,Ut.MiddleLeft=ws=Qr,Ut.MiddleRight=Wa=Mo,Ut.MiddleBottom=Xa=Do,Ut.Top=Cu=Pr,Ut.Left=zu=Qr,Ut.Right=ac=Mo,Ut.Bottom=Tu=Do,Ut.TopSide=na=Fo(new Ut(0,0,1,1),1).ja(),Ut.LeftSide=as=Fo(new Ut(0,0,1,2),1).ja(),Ut.RightSide=Po=Fo(new Ut(0,0,1,4),1).ja(),Ut.BottomSide=ka=Fo(new Ut(0,0,1,8),1).ja(),Ut.TopBottomSides=bs=Fo(new Ut(0,0,1,9),1).ja(),Ut.LeftRightSides=Ds=Fo(new Ut(0,0,1,6),1).ja(),Ut.TopLeftSides=fa=Fo(new Ut(0,0,1,3),1).ja(),Ut.TopRightSides=Gs=Fo(new Ut(0,0,1,5),1).ja(),Ut.BottomLeftSides=pl=Fo(new Ut(0,0,1,10),1).ja(),Ut.BottomRightSides=Es=Fo(new Ut(0,0,1,12),1).ja(),Ut.NotTopSide=As=Fo(new Ut(0,0,1,14),1).ja(),Ut.NotLeftSide=Fs=Fo(new Ut(0,0,1,13),1).ja(),Ut.NotRightSide=Bl=Fo(new Ut(0,0,1,11),1).ja(),Ut.NotBottomSide=oc=Fo(new Ut(0,0,1,7),1).ja(),Ut.AllSides=Uu=Fo(new Ut(0,0,1,15),1).ja(),ia=new Ut(.156,.156).ja(),Eo=new Ut(.844,.844).ja(),Ut.parse=Qa,Ut.stringify=La;function dr(){this.m11=1,this.m21=this.m12=0,this.m22=1,this.dy=this.dx=0}dr.prototype.set=function(a){return this.m11=a.m11,this.m12=a.m12,this.m21=a.m21,this.m22=a.m22,this.dx=a.dx,this.dy=a.dy,this},dr.prototype.setTransform=function(a,y,x,b,E,z){return this.m11=a,this.m12=y,this.m21=x,this.m22=b,this.dx=E,this.dy=z,this},dr.prototype.copy=function(){var a=new dr;return a.m11=this.m11,a.m12=this.m12,a.m21=this.m21,a.m22=this.m22,a.dx=this.dx,a.dy=this.dy,a},dr.prototype.toString=function(){return"Transform("+this.m11+","+this.m12+","+this.m21+","+this.m22+","+this.dx+","+this.dy+")"},dr.prototype.D=function(a){return this.m11===a.m11&&this.m12===a.m12&&this.m21===a.m21&&this.m22===a.m22&&this.dx===a.dx&&this.dy===a.dy},dr.prototype.ws=function(){return this.dx===0&&this.dy===0&&this.m11===1&&this.m12===0&&this.m21===0&&this.m22===1},dr.prototype.reset=function(){return this.m11=1,this.m21=this.m12=0,this.m22=1,this.dy=this.dx=0,this},dr.prototype.multiply=function(a){var y=this.m11*a.m11+this.m21*a.m12,x=this.m12*a.m11+this.m22*a.m12,b=this.m11*a.m21+this.m21*a.m22,E=this.m12*a.m21+this.m22*a.m22;return this.dx=this.m11*a.dx+this.m21*a.dy+this.dx,this.dy=this.m12*a.dx+this.m22*a.dy+this.dy,this.m11=y,this.m12=x,this.m21=b,this.m22=E,this},dr.prototype.bv=function(a){var y=1/(a.m11*a.m22-a.m12*a.m21),x=a.m22*y,b=-a.m12*y,E=-a.m21*y,z=a.m11*y,ee=y*(a.m21*a.dy-a.m22*a.dx);return a=y*(a.m12*a.dx-a.m11*a.dy),y=this.m11*x+this.m21*b,x=this.m12*x+this.m22*b,b=this.m11*E+this.m21*z,E=this.m12*E+this.m22*z,this.dx=this.m11*ee+this.m21*a+this.dx,this.dy=this.m12*ee+this.m22*a+this.dy,this.m11=y,this.m12=x,this.m21=b,this.m22=E,this},dr.prototype.Vj=function(){var a=1/(this.m11*this.m22-this.m12*this.m21),y=-this.m12*a,x=-this.m21*a,b=this.m11*a,E=a*(this.m21*this.dy-this.m22*this.dx),z=a*(this.m12*this.dx-this.m11*this.dy);return this.m11=this.m22*a,this.m12=y,this.m21=x,this.m22=b,this.dx=E,this.dy=z,this},dr.prototype.rotate=function(a,y,x){if(360<=a?a-=360:0>a&&(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 E=this.m12*a+this.m22*b,z=this.m11*-b+this.m21*a,ee=this.m12*-b+this.m22*a;return this.m11=this.m11*a+this.m21*b,this.m12=E,this.m21=z,this.m22=ee,this.translate(-y,-x),this},Ie=dr.prototype,Ie.translate=function(a,y){return this.dx+=this.m11*a+this.m21*y,this.dy+=this.m12*a+this.m22*y,this},Ie.scale=function(a,y){return y===void 0&&(y=a),this.m11*=a,this.m12*=a,this.m21*=y,this.m22*=y,this},Ie.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)},Ie.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))},Ie.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))},Ie.pp=function(a){var y=a.x,x=a.y,b=y+a.width,E=x+a.height,z=this.m11,ee=this.m12,re=this.m21,oe=this.m22,de=this.dx,fe=this.dy,ye=y*z+x*re+de,Ce=y*ee+x*oe+fe,Ne=b*z+x*re+de,Oe=b*ee+x*oe+fe;return x=y*z+E*re+de,y=y*ee+E*oe+fe,z=b*z+E*re+de,b=b*ee+E*oe+fe,E=Math.min(ye,Ne),ye=Math.max(ye,Ne),Ne=Math.min(Ce,Oe),Ce=Math.max(Ce,Oe),E=Math.min(E,x),ye=Math.max(ye,x),Ne=Math.min(Ne,y),Ce=Math.max(Ce,y),E=Math.min(E,z),ye=Math.max(ye,z),Ne=Math.min(Ne,b),Ce=Math.max(Ce,b),a.h(E,Ne,ye-E,Ce-Ne),a},dr.alloc=function(){var a=$s.pop();return a===void 0?new dr:a},dr.free=function(a){$s.push(a)},dr.prototype.transformRect=dr.prototype.pp,dr.prototype.transformPoint=dr.prototype.Ga,dr.prototype.scale=dr.prototype.scale,dr.prototype.translate=dr.prototype.translate,dr.prototype.rotate=dr.prototype.rotate,dr.prototype.invert=dr.prototype.Vj,dr.prototype.multiplyInverted=dr.prototype.bv,dr.prototype.multiply=dr.prototype.multiply,dr.prototype.reset=dr.prototype.reset,dr.prototype.isIdentity=dr.prototype.ws,dr.prototype.equals=dr.prototype.D,dr.prototype.setTransform=dr.prototype.setTransform,dr.prototype.set=dr.prototype.set;var $s=[];dr.className="Transform",dr.xF="54a702f3e53909c447824c6706603faf4c";var Bt={AA:"7da71ca0ad381e90",wg:(Math.sqrt(2)-1)/3*4,Uv:null,sqrt:function(a){if(0>=a)return 0;var y=Bt.Uv;if(y===null){y=[];for(var x=0;2e3>=x;x++)y[x]=Math.sqrt(x);Bt.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&&-.5<a},$:function(a,y){return a-=y,5e-8>a&&-5e-8<a},Yb:function(a,y,x,b,E,z,ee){if(0>=E&&(E=1e-6),a<x)var re=a,oe=x;else re=x,oe=a;if(y<b)var de=y,fe=b;else de=b,fe=y;if(a===x)return de<=ee&&ee<=fe&&a-E<=z&&z<=a+E;if(y===b)return re<=z&&z<=oe&&y-E<=ee&&ee<=y+E;if(oe+=E,re-=E,re<=z&&z<=oe&&(fe+=E,de-=E,de<=ee&&ee<=fe))if(oe-re>fe-de)if(a-x>E||x-a>E){if(z=(b-y)/(x-a)*(z-a)+y,z-E<=ee&&ee<=z+E)return!0}else return!0;else if(y-b>E||b-y>E){if(ee=(x-a)/(b-y)*(ee-y)+a,ee-E<=z&&z<=ee+E)return!0}else return!0;return!1},cs:function(a,y,x,b,E,z,ee,re,oe,de,fe,ye){if(Bt.Yb(a,y,ee,re,ye,x,b)&&Bt.Yb(a,y,ee,re,ye,E,z))return Bt.Yb(a,y,ee,re,ye,de,fe);var Ce=(a+x)/2,Ne=(y+b)/2,Oe=(x+E)/2,Ve=(b+z)/2;E=(E+ee)/2,z=(z+re)/2,b=(Ce+Oe)/2,x=(Ne+Ve)/2,Oe=(Oe+E)/2,Ve=(Ve+z)/2;var ft=(b+Oe)/2,lt=(x+Ve)/2;return Bt.cs(a,y,Ce,Ne,b,x,ft,lt,oe,de,fe,ye)||Bt.cs(ft,lt,Oe,Ve,E,z,ee,re,oe,de,fe,ye)},ax:function(a,y,x,b,E,z,ee,re,oe){var de=(x+E)/2,fe=(b+z)/2;return oe.h((((a+x)/2+de)/2+(de+(E+ee)/2)/2)/2,(((y+b)/2+fe)/2+(fe+(z+re)/2)/2)/2),oe},My:function(a,y,x,b,E,z,ee,re){var oe=(x+E)/2,de=(b+z)/2;return zi(((a+x)/2+oe)/2,((y+b)/2+de)/2,(oe+(E+ee)/2)/2,(de+(z+re)/2)/2)},Dl:function(a,y,x,b,E,z,ee,re,oe,de){if(Bt.Yb(a,y,ee,re,oe,x,b)&&Bt.Yb(a,y,ee,re,oe,E,z))qr(de,a,y,0,0),qr(de,ee,re,0,0);else{var fe=(a+x)/2,ye=(y+b)/2,Ce=(x+E)/2,Ne=(b+z)/2;E=(E+ee)/2,z=(z+re)/2,b=(fe+Ce)/2,x=(ye+Ne)/2,Ce=(Ce+E)/2,Ne=(Ne+z)/2;var Oe=(b+Ce)/2,Ve=(x+Ne)/2;Bt.Dl(a,y,fe,ye,b,x,Oe,Ve,oe,de),Bt.Dl(Oe,Ve,Ce,Ne,E,z,ee,re,oe,de)}return de},Qe:function(a,y,x,b,E,z,ee,re,oe,de){if(Bt.Yb(a,y,ee,re,oe,x,b)&&Bt.Yb(a,y,ee,re,oe,E,z))de.length===0&&(de.push(a),de.push(y)),de.push(ee),de.push(re);else{var fe=(a+x)/2,ye=(y+b)/2,Ce=(x+E)/2,Ne=(b+z)/2;E=(E+ee)/2,z=(z+re)/2,b=(fe+Ce)/2,x=(ye+Ne)/2,Ce=(Ce+E)/2,Ne=(Ne+z)/2;var Oe=(b+Ce)/2,Ve=(x+Ne)/2;Bt.Qe(a,y,fe,ye,b,x,Oe,Ve,oe,de),Bt.Qe(Oe,Ve,Ce,Ne,E,z,ee,re,oe,de)}return de},jv:function(a,y,x,b,E,z,ee,re,oe,de){if(Bt.Yb(a,y,E,z,de,x,b))return Bt.Yb(a,y,E,z,de,re,oe);var fe=(a+x)/2,ye=(y+b)/2;x=(x+E)/2,b=(b+z)/2;var Ce=(fe+x)/2,Ne=(ye+b)/2;return Bt.jv(a,y,fe,ye,Ce,Ne,ee,re,oe,de)||Bt.jv(Ce,Ne,x,b,E,z,ee,re,oe,de)},OA:function(a,y,x,b,E,z,ee){return ee.h(((a+x)/2+(x+E)/2)/2,((y+b)/2+(b+z)/2)/2),ee},iv:function(a,y,x,b,E,z,ee,re){if(Bt.Yb(a,y,E,z,ee,x,b))qr(re,a,y,0,0),qr(re,E,z,0,0);else{var oe=(a+x)/2,de=(y+b)/2;x=(x+E)/2,b=(b+z)/2;var fe=(oe+x)/2,ye=(de+b)/2;Bt.iv(a,y,oe,de,fe,ye,ee,re),Bt.iv(fe,ye,x,b,E,z,ee,re)}return re},ep:function(a,y,x,b,E,z,ee,re){if(Bt.Yb(a,y,E,z,ee,x,b))re.length===0&&(re.push(a),re.push(y)),re.push(E),re.push(z);else{var oe=(a+x)/2,de=(y+b)/2;x=(x+E)/2,b=(b+z)/2;var fe=(oe+x)/2,ye=(de+b)/2;Bt.ep(a,y,oe,de,fe,ye,ee,re),Bt.ep(fe,ye,x,b,E,z,ee,re)}return re},Eo:function(a,y,x,b,E,z,ee,re,oe,de,fe,ye,Ce,Ne){if(Bt.Yb(a,y,ee,re,Ce,x,b)&&Bt.Yb(a,y,ee,re,Ce,E,z))return!Bt.Rl(a,y,ee,re,oe,de,fe,ye)||(Ce=(a-ee)*(de-ye)-(y-re)*(oe-fe),Ce===0)?!1:(Ne.h(((a*re-y*ee)*(oe-fe)-(a-ee)*(oe*ye-de*fe))/Ce,((a*re-y*ee)*(de-ye)-(y-re)*(oe*ye-de*fe))/Ce),!0);var Oe=(a+x)/2,Ve=(y+b)/2,ft=(x+E)/2,lt=(b+z)/2;E=(E+ee)/2,z=(z+re)/2,b=(Oe+ft)/2,x=(Ve+lt)/2,ft=(ft+E)/2,lt=(lt+z)/2;var mt=(b+ft)/2,St=(x+lt)/2,Ct=1/0,Rt=!1,$t=0,di=0;return Bt.Eo(a,y,Oe,Ve,b,x,mt,St,oe,de,fe,ye,Ce,Ne)&&(a=(Ne.x-oe)*(Ne.x-oe)+(Ne.y-de)*(Ne.y-de),a<Ct&&(Ct=a,Rt=!0,$t=Ne.x,di=Ne.y)),Bt.Eo(mt,St,ft,lt,E,z,ee,re,oe,de,fe,ye,Ce,Ne)&&(Ne.x-oe)*(Ne.x-oe)+(Ne.y-de)*(Ne.y-de)<Ct&&(Rt=!0,$t=Ne.x,di=Ne.y),Rt&&(Ne.x=$t,Ne.y=di),Rt},Fo:function(a,y,x,b,E,z,ee,re,oe,de,fe,ye,Ce){var Ne=0;if(Bt.Yb(a,y,ee,re,Ce,x,b)&&Bt.Yb(a,y,ee,re,Ce,E,z)){if(Ce=(a-ee)*(de-ye)-(y-re)*(oe-fe),Ce===0)return Ne;var Oe=((a*re-y*ee)*(oe-fe)-(a-ee)*(oe*ye-de*fe))/Ce,Ve=((a*re-y*ee)*(de-ye)-(y-re)*(oe*ye-de*fe))/Ce;if(Oe>=fe)return Ne;if((oe>fe?oe-fe:fe-oe)<(de>ye?de-ye:ye-de)){if(y<re?(oe=y,a=re):(oe=re,a=y),Ve<oe||Ve>a)return Ne}else if(a<ee?(oe=a,a=ee):oe=ee,Oe<oe||Oe>a)return Ne;0<Ce?Ne++:0>Ce&&Ne--}else{Oe=(a+x)/2,Ve=(y+b)/2;var ft=(x+E)/2,lt=(b+z)/2;E=(E+ee)/2,z=(z+re)/2,b=(Oe+ft)/2,x=(Ve+lt)/2,ft=(ft+E)/2,lt=(lt+z)/2;var mt=(b+ft)/2,St=(x+lt)/2;Ne+=Bt.Fo(a,y,Oe,Ve,b,x,mt,St,oe,de,fe,ye,Ce),Ne+=Bt.Fo(mt,St,ft,lt,E,z,ee,re,oe,de,fe,ye,Ce)}return Ne},qh:function(a,y,x,b,E,z,ee){return Bt.$(a,x)?(y<b?(x=y,y=b):x=b,z<x?(ee.h(a,x),!1):z>y?(ee.h(a,y),!1):(ee.h(a,z),!0)):Bt.$(y,b)?(a<x?(b=a,a=x):b=x,E<b?(ee.h(b,y),!1):E>a?(ee.h(a,y),!1):(ee.h(E,y),!0)):(E=((a-E)*(a-x)+(y-z)*(y-b))/((x-a)*(x-a)+(b-y)*(b-y)),-5e-6>E?(ee.h(a,y),!1):1.000005<E?(ee.h(x,b),!1):(ee.h(a+E*(x-a),y+E*(b-y)),!0))},Ve:function(a,y,x,b,E,z,ee,re,oe){return Bt.B(a,x)&&Bt.B(y,b)?(oe.h(a,y),!1):Bt.$(E,ee)?Bt.$(a,x)?(Bt.qh(a,y,x,b,E,z,oe),!1):Bt.qh(a,y,x,b,E,(b-y)/(x-a)*(E-a)+y,oe):(re=(re-z)/(ee-E),Bt.$(a,x)?(x=re*(a-E)+z,y<b?(E=y,y=b):E=b,x<E?(oe.h(a,E),!1):x>y?(oe.h(a,y),!1):(oe.h(a,x),!0)):(ee=(b-y)/(x-a),Bt.$(re,ee)?(Bt.qh(a,y,x,b,E,z,oe),!1):(E=(ee*a-re*E+z-y)/(ee-re),Bt.$(ee,0)?(a<x?(b=a,a=x):b=x,E<b?(oe.h(b,y),!1):E>a?(oe.h(a,y),!1):(oe.h(E,y),!0)):Bt.qh(a,y,x,b,E,ee*(E-a)+y,oe))))},MA:function(a,y,x,b,E){return Bt.Ve(x.x,x.y,b.x,b.y,a.x,a.y,y.x,y.y,E)},KA:function(a,y,x,b,E,z,ee,re,oe,de){function fe(ft,lt){var mt=(ft-a)*(ft-a)+(lt-y)*(lt-y);mt<ye&&(ye=mt,oe.h(ft,lt))}var ye=1/0;fe(oe.x,oe.y);var Ce=0,Ne=0,Oe=0,Ve=0;if(E<ee?(Ce=E,Ne=ee):(Ce=ee,Ne=E),z<re?(Oe=E,Ve=ee):(Oe=ee,Ve=E),Ce=(Ne-Ce)/2+de,de=(Ve-Oe)/2+de,E=(E+ee)/2,z=(z+re)/2,Ce===0||de===0)return oe;if(.5>(x>a?x-a:a-x)){if(Ce=1-(x-E)*(x-E)/(Ce*Ce),0>Ce)return oe;Ce=Math.sqrt(Ce),b=-de*Ce+z,fe(x,de*Ce+z),fe(x,b)}else{if(x=(b-y)/(x-a),b=1/(Ce*Ce)+x*x/(de*de),re=2*x*(y-x*a)/(de*de)-2*x*z/(de*de)-2*E/(Ce*Ce),Ce=re*re-4*b*(2*x*a*z/(de*de)-2*y*z/(de*de)+z*z/(de*de)+E*E/(Ce*Ce)-1+(y-x*a)*(y-x*a)/(de*de)),0>Ce)return oe;Ce=Math.sqrt(Ce),de=(-re+Ce)/(2*b),fe(de,x*de-x*a+y),Ce=(-re-Ce)/(2*b),fe(Ce,x*Ce-x*a+y)}return oe},Ff:function(a,y,x,b,E,z,ee,re,oe){var de=1e21,fe=a,ye=y;if(Bt.Ve(a,y,a,b,E,z,ee,re,oe)){var Ce=(oe.x-E)*(oe.x-E)+(oe.y-z)*(oe.y-z);Ce<de&&(de=Ce,fe=oe.x,ye=oe.y)}return Bt.Ve(x,y,x,b,E,z,ee,re,oe)&&(Ce=(oe.x-E)*(oe.x-E)+(oe.y-z)*(oe.y-z),Ce<de&&(de=Ce,fe=oe.x,ye=oe.y)),Bt.Ve(a,y,x,y,E,z,ee,re,oe)&&(y=(oe.x-E)*(oe.x-E)+(oe.y-z)*(oe.y-z),y<de&&(de=y,fe=oe.x,ye=oe.y)),Bt.Ve(a,b,x,b,E,z,ee,re,oe)&&(a=(oe.x-E)*(oe.x-E)+(oe.y-z)*(oe.y-z),a<de&&(de=a,fe=oe.x,ye=oe.y)),oe.h(fe,ye),1e21>de},us:function(a,y,x){return Bt.Fx(a.x,a.y,a.width,a.height,y.x,y.y,x.x,x.y)},Fx:function(a,y,x,b,E,z,ee,re){var oe=a+x,de=y+b;return E===ee?(z<re?(ee=z,z=re):ee=re,a<=E&&E<=oe&&ee<=de&&z>=y):z===re?(E<ee?(re=E,E=ee):re=ee,y<=z&&z<=de&&re<=oe&&E>=a):!!(Oo(a,y,x,b,E,z)||Oo(a,y,x,b,ee,re)||Bt.Rl(a,y,oe,y,E,z,ee,re)||Bt.Rl(oe,y,oe,de,E,z,ee,re)||Bt.Rl(oe,de,a,de,E,z,ee,re)||Bt.Rl(a,de,a,y,E,z,ee,re))},Rl:function(a,y,x,b,E,z,ee,re){return a===x&&y===b&&E===ee&&z===re?a===E&&y===z:0>=Bt.Fl(a,y,x,b,E,z)*Bt.Fl(a,y,x,b,ee,re)&&0>=Bt.Fl(E,z,ee,re,a,y)*Bt.Fl(E,z,ee,re,x,b)},Fl:function(a,y,x,b,E,z){return x-=a,b-=y,a=E-a,y=z-y,z=a*b-y*x,z===0&&(z=a*x+y*b,0<z&&(z=(a-x)*x+(y-b)*b,0>z&&(z=0))),z},bp:function(a){return 0>a&&(a+=360),360<=a&&(a-=360),a},jx:function(a,y,x,b,E,z){var ee=Math.PI;z||(b*=ee/180,E*=ee/180);var re=b>E?-1:1;z=[];var oe=ee/2,de=b;if(b=Math.min(2*ee,Math.abs(E-b)),1e-5>b)return oe=de+re*Math.min(b,oe),re=a+x*Math.cos(de),de=y+x*Math.sin(de),a+=x*Math.cos(oe),y+=x*Math.sin(oe),x=(re+a)/2,oe=(de+y)/2,z.push([re,de,x,oe,x,oe,a,y]),z;for(;1e-5<b;)E=de+re*Math.min(b,oe),z.push(Bt.Vy(x,de,E,a,y)),b-=Math.abs(E-de),de=E;return z},Vy:function(a,y,x,b,E){var z=(x-y)/2,ee=a*Math.cos(z),re=a*Math.sin(z),oe=-re,de=ee*ee+oe*oe,fe=de+ee*ee+oe*re;return de=4/3*(Math.sqrt(2*de*fe)-fe)/(ee*re-oe*ee),re=ee-de*oe,ee=oe+de*ee,oe=-ee,de=z+y,z=Math.cos(de),de=Math.sin(de),[b+a*Math.cos(y),E+a*Math.sin(y),b+re*z-ee*de,E+re*de+ee*z,b+re*z-oe*de,E+re*de+oe*z,b+a*Math.cos(x),E+a*Math.sin(x)]},No:function(a,y,x,b,E,z,ee){x=Math.floor((a-x)/E)*E+x,b=Math.floor((y-b)/z)*z+b;var re=x;return x+E-a<E/2&&(re=x+E),a=b,b+z-y<z/2&&(a=b+z),ee.h(re,a),ee},vx:function(a,y){var x=Math.max(a,y);a=Math.min(a,y);var b;do y=x%a,x=b=a,a=y;while(0<y);return b},$y:function(a,y,x,b){var E=0>x,z=0>b;if(a<y)var ee=1,re=0;else ee=0,re=1;var oe=ee===0?a:y,de=ee===0?x:b;return(ee===0?E:z)&&(de=-de),ee=re,x=ee===0?x:b,(ee===0?E:z)&&(x=-x),Bt.az(oe,ee===0?a:y,de,x,0,0)},az:function(a,y,x,b,E,z){if(0<b)if(0<x){E=a*a,z=y*y,a*=x;var ee=y*b,re=-z+ee,oe=-z+Math.sqrt(a*a+ee*ee);y=re;for(var de=0;9999999999>de&&(y=.5*(re+oe),!(y===re||y===oe));++de){var fe=a/(y+E),ye=ee/(y+z);if(fe=fe*fe+ye*ye-1,0<fe)re=y;else if(0>fe)oe=y;else break}x=E*x/(y+E)-x,b=z*b/(y+z)-b,x=Math.sqrt(x*x+b*b)}else x=Math.abs(b-y);else b=a*a-y*y,z=a*x,z<b?(b=z/b,z=y*Math.sqrt(Math.abs(1-b*b)),x=a*b-x,x=Math.sqrt(x*x+z*z)):x=Math.abs(x-a);return x},Ze:new Ji,um:new Ji,Mf:new Ji,Nf:0,vm:100};Bt.za=Bt.AA;function Jn(a){qi(this),this.l=2,a===void 0&&(a=Jn.o),this.na=a,this.Ec=this.Dc=this.pd=this.od=0,a===Jn.o?this.ee=new Dn:(Jn.V===null&&(Jn.V=new Dn().freeze()),this.ee=Jn.V),this.aq=this.ee.Ja,this.Ip=new tn().freeze(),this.ym=this.tk=null,this.zm=NaN,this.fg=Qi,this.gg=ho,this.Rk=this.Sk=NaN,this.Uf=Wn}Jn.prototype.copy=function(){var a=new Jn;if(a.l=this.l&-2,a.na=this.na,a.od=this.od,a.pd=this.pd,a.Dc=this.Dc,a.Ec=this.Ec,this.na===Jn.o){for(var y=this.ee.s,x=a.ee,b=0;b<y.length;b++)x.add(y[b].copy());a.ee=x}else a.ee=this.ee;return a.aq=this.aq,a.Ip.assign(this.Ip),a.tk=this.tk,a.ym=this.ym,a.zm=this.zm,a.fg=this.fg.J(),a.gg=this.gg.J(),a.Sk=this.Sk,a.Rk=this.Rk,a.Uf=this.Uf,a},Jn.prototype.ja=function(){return this.freeze(),Object.freeze(this),this},Jn.prototype.freeze=function(){if(this._isFrozen=!0,this.type!==Jn.o)return this;var a=this.figures;a.freeze(),a=a.s;for(var y=a.length,x=0;x<y;x++)a[x].freeze();return this},Jn.prototype.ka=function(){if(Object.isFrozen(this)&&vt("cannot thaw constant: "+this),this._isFrozen=!1,this.type!==Jn.o)return this;var a=this.figures;a.ka(),a=a.s;for(var y=a.length,x=0;x<y;x++)a[x].ka();return this},Jn.prototype.Xa=function(a){if(!(a instanceof Jn))return!1;if(this.type!==a.type)return this.type===Jn.j&&a.type===Jn.o?Ql(this,a):a.type===Jn.j&&this.type===Jn.o?Ql(a,this):!1;if(this.type===Jn.o){var y=this.figures.s;a=a.figures.s;var x=y.length;if(x!==a.length)return!1;for(var b=0;b<x;b++)if(!y[b].Xa(a[b]))return!1;return!0}return Bt.B(this.startX,a.startX)&&Bt.B(this.startY,a.startY)&&Bt.B(this.endX,a.endX)&&Bt.B(this.endY,a.endY)};function Ql(a,y){return a.type!==Jn.j||y.type!==Jn.o?!1:!!(y.figures.count===1&&(y=y.figures.M(0),y.segments.count===1&&Bt.B(a.startX,y.startX)&&Bt.B(a.startY,y.startY)&&(y=y.segments.M(0),y.type===No&&Bt.B(a.endX,y.endX)&&Bt.B(a.endY,y.endY))))}Jn.ia=function(a){return a.toString()},Jn.prototype.qb=function(a){a.classType===Jn&&(this.type=a)},Jn.prototype.toString=function(a){switch(a===void 0&&(a=-1),this.type){case Jn.j:return 0>a?"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 Jn.u:var y=new tn(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 Jn.F:if(y=new tn(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 Jn.o:y="",x=this.figures.s;for(var b=x.length,E=0;E<b;E++){var z=x[E];0<E&&(y+=" x "),z.isFilled&&(y+="F "),y+=z.toString(a)}return y;default:return this.type.toString()}},Jn.nb=function(a){a=a.split(/[Xx]/);for(var y=a.length,x="",b=0;b<y;b++){var E=a[b];x=E.match(/[Ff]/)!==null?b===0?x+E:x+("X"+(E[0]===" "?"":" ")+E):x+((b===0?"":"X ")+"F"+(E[0]===" "?"":" ")+E)}return x},Jn.parse=function(a,y){function x(){return Ve>=Ct-1?!0:de[Ve+1].match(Rt)!==null}function b(){return Ve++,de[Ve]}function E(Sr){var hr=parseFloat(b()),po=parseFloat(b());ft===ft.toLowerCase()&&(hr=St.x+hr,po=St.y+po),Sr.h(hr,po)}function z(){return E(St),St}function ee(){return E(mt),mt}function re(){var Sr=lt.toLowerCase();return Sr!=="c"&&Sr!=="s"&&Sr!=="q"&&Sr!=="t"?St:new Je(2*St.x-mt.x,2*St.y-mt.y)}y===void 0&&(y=!1);var oe=/([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])/gm;a=a.replace(/,/gm," "),a=a.replace(oe,"$1 $2"),a=a.replace(oe,"$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 de=a.split(" ");for(a=0;a<de.length;a++){var fe=de[a];if(fe.match(/(\.[0-9]*)(\.)/gm)!==null){oe=Mi();for(var ye="",Ce=!1,Ne=0;Ne<fe.length;Ne++){var Oe=fe[Ne];Oe!=="."||Ce?Oe==="."?(oe.push(ye),ye="."):ye+=Oe:(Ce=!0,ye+=Oe)}for(oe.push(ye),de.splice(a,1),fe=0;fe<oe.length;fe++)de.splice(a+fe,0,oe[fe]);a+=oe.length-1,ui(oe)}}var Ve=-1,ft="",lt="";oe=new Je(0,0);var mt=new Je(0,0),St=new Je(0,0),Ct=de.length;a=FS(null),Ce=ye=fe=!1,Ne=!0,Oe=null;for(var Rt=/[UuBbMmZzLlHhVvCcSsQqTtAaFfXx]/;!(Ve>=Ct-1);)if(lt=ft,ft=b(),ft!=="")switch(ft.toUpperCase()){case"X":Ne=!0,ye=fe=!1;break;case"M":for(Oe=z(),a.mc===null||Ne===!0?(eg(a,Oe.x,Oe.y,fe,!ye,Ce),Ne=!1):a.moveTo(Oe.x,Oe.y),oe.assign(St);!x();)Oe=z(),a.lineTo(Oe.x,Oe.y);break;case"L":for(;!x();)Oe=z(),a.lineTo(Oe.x,Oe.y);break;case"H":for(;!x();)St=new Je((ft===ft.toLowerCase()?St.x:0)+parseFloat(b()),St.y),a.lineTo(St.x,St.y);break;case"V":for(;!x();)St=new Je(St.x,(ft===ft.toLowerCase()?St.y:0)+parseFloat(b())),a.lineTo(St.x,St.y);break;case"C":for(;!x();){Oe=new Je,E(Oe);var $t=ee(),di=z();Ed(a,Oe.x,Oe.y,$t.x,$t.y,di.x,di.y)}break;case"S":for(;!x();)Oe=re(),$t=ee(),di=z(),Ed(a,Oe.x,Oe.y,$t.x,$t.y,di.x,di.y);break;case"Q":for(;!x();)Oe=ee(),$t=z(),jm(a,Oe.x,Oe.y,$t.x,$t.y);break;case"T":for(;!x();)mt=Oe=re(),$t=z(),jm(a,Oe.x,Oe.y,$t.x,$t.y);break;case"B":for(;!x();){Oe=parseFloat(b()),$t=parseFloat(b()),di=parseFloat(b());var Di=parseFloat(b()),Li=parseFloat(b()),$n=Li,Nn=!1;x()||($n=parseFloat(b()),x()||(Nn=parseFloat(b())!==0)),ft===ft.toLowerCase()&&(di+=St.x,Di+=St.y),a.arcTo(Oe,$t,di,Di,Li,$n,Nn)}break;case"A":for(;!x();)Oe=Math.abs(parseFloat(b())),$t=Math.abs(parseFloat(b())),di=parseFloat(b()),Li=Di=!1,Nn=$n=0,$n=b(),$n.length===1?(Di=!!parseFloat($n),Li=!!parseFloat(b()),$n=parseFloat(b())):$n.length===2?(Di=!!parseFloat($n[0]),Li=!!parseFloat($n[1]),$n=parseFloat(b())):(Di=!!parseFloat($n[0]),Li=!!parseFloat($n[1]),$n=parseFloat($n.slice(2))),Nn=parseFloat(b()),ft===ft.toLowerCase()&&($n=St.x+$n,Nn=St.y+Nn),St.h($n,Nn),Mx(a,Oe,$t,di,Di,Li,$n,Nn);break;case"Z":Ix(a),St.assign(oe);break;case"F":for(Oe="",$t=1;de[Ve+$t];)if(de[Ve+$t]==="0")Ce=!0,$t++;else if(de[Ve+$t].match(/[Uu]/)!==null)$t++;else if(de[Ve+$t].match(Rt)===null)$t++;else{Oe=de[Ve+$t];break}Oe.match(/[Mm]/)?fe=!0:0<a.mc.segments.length&&(a.mc.isFilled=!0);break;case"U":for(Oe="",$t=1;de[Ve+$t];)if(de[Ve+$t].match(/[Ff]/)!==null)$t++;else if(de[Ve+$t].match(Rt)===null)$t++;else{Oe=de[Ve+$t];break}Oe.match(/[Mm]/)?ye=!0:a.mc.isShadowed=!1}if(oe=a.os,Gm=a,y)for(y=oe.figures.iterator;y.next();)y.value.isFilled=!0;return oe},Jn.Ha=function(a,y){for(var x=a.length,b=Je.alloc(),E=0;E<x;E++){var z=a[E];b.x=z[0],b.y=z[1],y.Ga(b),z[0]=b.x,z[1]=b.y,b.x=z[2],b.y=z[3],y.Ga(b),z[2]=b.x,z[3]=b.y,b.x=z[4],b.y=z[5],y.Ga(b),z[4]=b.x,z[5]=b.y,b.x=z[6],b.y=z[7],y.Ga(b),z[6]=b.x,z[7]=b.y}Je.free(b)},Jn.prototype.Zu=function(){if(this._isInvalidBounds)return!0;if(this.type===Jn.o){if(this.aq!==this.figures.Ja)return!0;for(var a=this.figures.s,y=a.length,x=0;x<y;x++)if(a[x].Zu())return!0}return!1},Jn.prototype.computeBounds=function(){if(this._isInvalidBounds=!1,this.ym=this.tk=null,this.zm=NaN,this.type===Jn.o){this.aq=this.figures.Ja;for(var a=this.figures.s,y=a.length,x=0;x<y;x++){var b=a[x];b._isInvalidBounds=!1;var E=b.segments;b.sr=E.Ja,b=E.s,E=b.length;for(var z=0;z<E;z++){var ee=b[z];ee._isInvalidBounds=!1,ee.ae=null}}}a=this.Ip,a.ka(),isNaN(this.Sk)||isNaN(this.Rk)?a.h(0,0,0,0):a.h(0,0,this.Sk,this.Rk),Hu(this,a,!1),qr(a,0,0,0,0),a.freeze()},Jn.prototype.ix=function(){var a=new tn;return Hu(this,a,!0),a};function Hu(a,y,x){switch(a.type){case Jn.j:case Jn.u:case Jn.F:x?y.h(a.od,a.pd,0,0):qr(y,a.od,a.pd,0,0),qr(y,a.Dc,a.Ec,0,0);break;case Jn.o:var b=a.figures;a=b.s,b=b.length;for(var E=0;E<b;E++){var z=a[E];x&&E===0?y.h(z.startX,z.startY,0,0):qr(y,z.startX,z.startY,0,0);for(var ee=z.segments.s,re=ee.length,oe=z.startX,de=z.startY,fe=0;fe<re;fe++){var ye=ee[fe];switch(ye.type){case No:case Xo:oe=ye.endX,de=ye.endY,qr(y,oe,de,0,0);break;case Ca:Bt.Dl(oe,de,ye.point1X,ye.point1Y,ye.point2X,ye.point2Y,ye.endX,ye.endY,.5,y),oe=ye.endX,de=ye.endY;break;case Bs:Bt.iv(oe,de,ye.point1X,ye.point1Y,ye.endX,ye.endY,.5,y),oe=ye.endX,de=ye.endY;break;case ma:case Vs:var Ce=ye.type===ma?cs(ye,z):Ms(ye,z,oe,de),Ne=Ce.length;if(Ne===0){oe=ye.type===ma?ye.centerX:ye.endX,de=ye.type===ma?ye.centerY:ye.endY,qr(y,oe,de,0,0);break}ye=null;for(var Oe=0;Oe<Ne;Oe++)ye=Ce[Oe],Bt.Dl(ye[0],ye[1],ye[2],ye[3],ye[4],ye[5],ye[6],ye[7],.5,y);ye!==null&&(oe=ye[6],de=ye[7]);break;default:vt("Unknown Segment type: "+ye.type)}}}break;default:vt("Unknown Geometry type: "+a.type)}}Jn.prototype.normalize=function(){this._isFrozen&&Sn(this);var a=this.ix();return this.offset(-a.x,-a.y),new Je(-a.x,-a.y)},Jn.prototype.offset=function(a,y){return this._isFrozen&&Sn(this),this.transform(1,0,0,1,a,y),this},Jn.prototype.scale=function(a,y){return this._isFrozen&&Sn(this),this.transform(a,0,0,y,0,0),this},Jn.prototype.rotate=function(a,y,x){this._isFrozen&&Sn(this),y===void 0&&(y=0),x===void 0&&(x=0);var b=dr.alloc();return b.reset(),b.rotate(a,y,x),this.transform(b.m11,b.m12,b.m21,b.m22,b.dx,b.dy),dr.free(b),this},Ie=Jn.prototype,Ie.transform=function(a,y,x,b,E,z){switch(this.type){case Jn.j:case Jn.u:case Jn.F:var ee=this.od,re=this.pd;this.od=ee*a+re*x+E,this.pd=ee*y+re*b+z,ee=this.Dc,re=this.Ec,this.Dc=ee*a+re*x+E,this.Ec=ee*y+re*b+z;break;case Jn.o:for(var oe=this.figures.s,de=oe.length,fe=0;fe<de;fe++){var ye=oe[fe];ee=ye.startX,re=ye.startY,ye.startX=ee*a+re*x+E,ye.startY=ee*y+re*b+z,ye=ye.segments.s;for(var Ce=ye.length,Ne=0;Ne<Ce;Ne++){var Oe=ye[Ne];switch(Oe.type){case No:case Xo:ee=Oe.endX,re=Oe.endY,Oe.endX=ee*a+re*x+E,Oe.endY=ee*y+re*b+z;break;case Ca:ee=Oe.point1X,re=Oe.point1Y,Oe.point1X=ee*a+re*x+E,Oe.point1Y=ee*y+re*b+z,ee=Oe.point2X,re=Oe.point2Y,Oe.point2X=ee*a+re*x+E,Oe.point2Y=ee*y+re*b+z,ee=Oe.endX,re=Oe.endY,Oe.endX=ee*a+re*x+E,Oe.endY=ee*y+re*b+z;break;case Bs:ee=Oe.point1X,re=Oe.point1Y,Oe.point1X=ee*a+re*x+E,Oe.point1Y=ee*y+re*b+z,ee=Oe.endX,re=Oe.endY,Oe.endX=ee*a+re*x+E,Oe.endY=ee*y+re*b+z;break;case ma:ee=Oe.centerX,re=Oe.centerY,Oe.centerX=ee*a+re*x+E,Oe.centerY=ee*y+re*b+z,y!==0&&(ee=180*Math.atan2(y,a)/Math.PI,0>ee&&(ee+=360),Oe.startAngle+=ee),0>a&&(Oe.startAngle=180-Oe.startAngle,Oe.sweepAngle=-Oe.sweepAngle),0>b&&(Oe.startAngle=-Oe.startAngle,Oe.sweepAngle=-Oe.sweepAngle),Oe.radiusX*=Math.sqrt(a*a+x*x),Oe.radiusY!==void 0&&(Oe.radiusY*=Math.sqrt(y*y+b*b));break;case Vs:if(ee=Oe.endX,re=Oe.endY,Oe.endX=ee*a+re*x+E,Oe.endY=ee*y+re*b+z,Oe.radiusX===0||Oe.radiusY===0)break;y!==0&&(ee=180*Math.atan2(y,a)/Math.PI,0>ee&&(ee+=360),Oe.xAxisRotation+=ee),0>a&&(Oe.xAxisRotation=180-Oe.xAxisRotation,Oe.isClockwiseArc=!Oe.isClockwiseArc),0>b&&(Oe.xAxisRotation=-Oe.xAxisRotation,Oe.isClockwiseArc=!Oe.isClockwiseArc),Oe.radiusX*=Math.sqrt(a*a+x*x),Oe.radiusY*=Math.sqrt(y*y+b*b);break;default:vt("Unknown Segment type: "+Oe.type)}}}}return this._isInvalidBounds=!0,this},Ie.ca=function(a,y){y===void 0&&(y=0);var x=this.od,b=this.pd,E=this.Dc,z=this.Ec;switch(this.type){case Jn.j:return Bt.Yb(x,b,E,z,y,a.x,a.y);case Jn.u:var ee=tn.allocAt(Math.min(x,E)-y,Math.min(b,z)-y,Math.abs(E-x)+2*y,Math.abs(z-b)+2*y);return a=ee.ca(a),tn.free(ee),a;case Jn.F:ee=Math.min(x,E)-y;var re=Math.min(b,z)-y;return x=(Math.abs(E-x)+2*y)/2,y=(Math.abs(z-b)+2*y)/2,0>=x||0>=y?!1:(ee=a.x-(ee+x),re=a.y-(re+y),1>=ee*ee/(x*x)+re*re/(y*y));case Jn.o:return Va(this,a,y,!0,!1);default:return!1}};function Va(a,y,x,b,E){var z=y.x;y=y.y;for(var ee=a.bounds.x-20,re=0,oe,de,fe,ye,Ce=a.figures.s,Ne=Ce.length,Oe=0;Oe<Ne;Oe++){var Ve=Ce[Oe],ft=!Ve.isEvenOdd;if(Ve.isFilled){if(b&&Ve.ca(z,y,x))return!0;var lt=Ve.segments;oe=Ve.startX,de=Ve.startY;for(var mt=oe,St=de,Ct=lt.s,Rt=0;Rt<=lt.length;Rt++){var $t=void 0;if(Rt!==lt.length){$t=Ct[Rt];var di=$t.type;a=$t.endX,ye=$t.endY}else di=No,a=mt,ye=St;switch(di){case Xo:if(mt=Ws(z,y,ee,y,oe,de,mt,St),isNaN(mt))return!0;re+=mt,mt=a,St=ye;break;case No:if(oe=Ws(z,y,ee,y,oe,de,a,ye),isNaN(oe))return!0;re+=oe;break;case Ca:fe=Bt.Fo(oe,de,$t.point1X,$t.point1Y,$t.point2X,$t.point2Y,a,ye,ee,y,z,y,.5),re+=fe;break;case Bs:fe=Bt.Fo(oe,de,(oe+2*$t.point1X)/3,(de+2*$t.point1Y)/3,(2*$t.point1X+a)/3,(2*$t.point1Y+ye)/3,a,ye,ee,y,z,y,.5),re+=fe;break;case ma:case Vs:di=$t.type===ma?cs($t,Ve):Ms($t,Ve,oe,de);var Di=di.length;if(Di===0){if(oe=Ws(z,y,ee,y,oe,de,$t.type===ma?$t.centerX:$t.endX,$t.type===ma?$t.centerY:$t.endY),isNaN(oe))return!0;re+=oe;break}$t=null;for(var Li=0;Li<Di;Li++){if($t=di[Li],Li===0){if(fe=Ws(z,y,ee,y,oe,de,$t[0],$t[1]),isNaN(fe))return!0;re+=fe}fe=Bt.Fo($t[0],$t[1],$t[2],$t[3],$t[4],$t[5],$t[6],$t[7],ee,y,z,y,.5),re+=fe}$t!==null&&(a=$t[6],ye=$t[7]);break;default:vt("Unknown Segment type: "+$t.type)}oe=a,de=ye}if(ft){if(re!==0)return!0}else if(re%2!==0)return!0;re=0}else if(Ve.ca(z,y,E?x:x+2))return!0}return!1}function Ws(a,y,x,b,E,z,ee,re){if(Bt.Yb(E,z,ee,re,.05,a,y))return NaN;var oe=(a-x)*(z-re);if(oe===0)return 0;var de=((a*b-y*x)*(E-ee)-(a-x)*(E*re-z*ee))/oe;if(y=(a*b-y*x)*(z-re)/oe,de>=a)return 0;if((E>ee?E-ee:ee-E)<(z>re?z-re:re-z)){if(z<re){if(y<z||y>re)return 0}else if(y<re||y>z)return 0}else if(E<ee){if(de<E||de>ee)return 0}else if(de<ee||de>E)return 0;return 0<oe?1:-1}function uu(a,y,x,b){a=a.figures.s;for(var E=a.length,z=0;z<E;z++)if(a[z].ca(y,x,b))return!0;return!1}Ie.Pu=function(a,y){if(0>a?a=0:1<a&&(a=1),y===void 0&&(y=new Je),this.type===Jn.j)return y.h(this.startX+a*(this.endX-this.startX),this.startY+a*(this.endY-this.startY)),y;for(var x=this.flattenedSegments,b=this.flattenedLengths,E=x.length,z=this.flattenedTotalLength*a,ee=0,re=0;re<E;re++){var oe=b[re],de=oe.length;for(a=0;a<de;a++){var fe=oe[a];if(ee+fe>=z)return b=z-ee,b=fe===0?0:b/fe,x=x[re],re=x[2*a],E=x[2*a+1],y.h(re+(x[2*a+2]-re)*b,E+(x[2*a+3]-E)*b),y;ee+=fe}}return y},Ie.wx=function(a){if(0>a?a=0:1<a&&(a=1),this.type===Jn.j)return 180*Math.atan2(this.endY-this.startY,this.endX-this.startX)/Math.PI;for(var y=this.flattenedSegments,x=this.flattenedLengths,b=y.length,E=this.flattenedTotalLength*a,z=0,ee=0;ee<b;ee++){var re=x[ee],oe=re.length;for(a=0;a<oe;a++){var de=re[a];if(z+de>=E)return E=y[ee],y=E[2*a],x=E[2*a+1],b=E[2*a+2],a=E[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;z+=de}}return NaN},Ie.Qu=function(a,y){if(0>a?a=0:1<a&&(a=1),y===void 0&&(y=[]),y.length=3,this.type===Jn.j)return y[0]=this.startX+a*(this.endX-this.startX),y[1]=this.startY+a*(this.endY-this.startY),y[2]=180*Math.atan2(this.endY-this.startY,this.endX-this.startX)/Math.PI,y;for(var x=this.flattenedSegments,b=this.flattenedLengths,E=x.length,z=this.flattenedTotalLength*a,ee=0,re=0;re<E;re++){var oe=b[re],de=oe.length;for(a=0;a<de;a++){var fe=oe[a];if(ee+fe>=z)return b=z-ee,b=fe===0?0:b/fe,fe=x[re],x=fe[2*a],re=fe[2*a+1],E=fe[2*a+2],a=fe[2*a+3],y[0]=x+(E-x)*b,y[1]=re+(a-re)*b,y[2]=1>Math.abs(E-x)&&1>Math.abs(a-re)?0:1>Math.abs(E-x)?0<=a-re?90:270:1>Math.abs(a-re)?0<=E-x?0:180:180*Math.atan2(a-re,E-x)/Math.PI,y;ee+=fe}}return y},Ie.xx=function(a){if(this.type===Jn.j){var y=this.startX,x=this.startY,b=this.endX,E=this.endY;if(y!==b||x!==E){var z=a.x;if(a=a.y,y===b){if(x<E){var ee=x;b=E}else ee=E,b=x;return a<=ee?ee===x?0:1:a>=b?b===x?0:1:Math.abs(a-x)/(b-ee)}if(x===E)return y<b?ee=y:(ee=b,b=y),z<=ee?ee===y?0:1:z>=b?b===y?0:1:Math.abs(z-y)/(b-ee);ee=(b-y)*(b-y)+(E-x)*(E-x);var re=Je.alloc();return Bt.qh(y,x,b,E,z,a,re),a=re.x,z=re.y,Je.free(re),Math.sqrt(((a-y)*(a-y)+(z-x)*(z-x))/ee)}}else if(this.type===Jn.u){ee=this.startX,re=this.startY;var oe=this.endX;if(E=this.endY,ee!==oe||re!==E){y=oe-ee,x=E-re,z=2*y+2*x,b=a.x,a=a.y,b=Math.min(Math.max(b,ee),oe),a=Math.min(Math.max(a,re),E),ee=Math.abs(b-ee),oe=Math.abs(b-oe),re=Math.abs(a-re),E=Math.abs(a-E);var de=Math.min(ee,oe,re,E);if(de===re)return b/z;if(de===oe)return(y+a)/z;if(de===E)return(2*y+x-b)/z;if(de===ee)return(2*y+2*x-a)/z}}else{y=this.flattenedSegments,x=this.flattenedLengths,z=this.flattenedTotalLength,b=Je.alloc(),E=1/0,re=ee=0,oe=y.length;for(var fe=de=0,ye=0;ye<oe;ye++)for(var Ce=y[ye],Ne=x[ye],Oe=Ce.length,Ve=0;Ve<Oe;Ve+=2){var ft=Ce[Ve],lt=Ce[Ve+1];if(Ve!==0){Bt.qh(de,fe,ft,lt,a.x,a.y,b);var mt=(b.x-a.x)*(b.x-a.x)+(b.y-a.y)*(b.y-a.y);mt<E&&(E=mt,ee=re,ee+=Math.sqrt((b.x-de)*(b.x-de)+(b.y-fe)*(b.y-fe))),re+=Ne[(Ve-2)/2]}de=ft,fe=lt}return Je.free(b),a=ee/z,0>a?0:1<a?1:a}return 0};function Au(a){if(a.tk===null){var y=a.tk=[],x=a.ym=[],b=[],E=[];if(a.type===Jn.j)b.push(a.startX),b.push(a.startY),b.push(a.endX),b.push(a.endY),y.push(b),E.push(Math.sqrt((a.startX-a.endX)*(a.startX-a.endX)+(a.startY-a.endY)*(a.startY-a.endY))),x.push(E);else if(a.type===Jn.u)b.push(a.startX),b.push(a.startY),b.push(a.endX),b.push(a.startY),b.push(a.endX),b.push(a.endY),b.push(a.startX),b.push(a.endY),b.push(a.startX),b.push(a.startY),y.push(b),E.push(Math.abs(a.startX-a.endX)),E.push(Math.abs(a.startY-a.endY)),E.push(Math.abs(a.startX-a.endX)),E.push(Math.abs(a.startY-a.endY)),x.push(E);else if(a.type===Jn.F){var z=new ba;z.startX=a.endX,z.startY=(a.startY+a.endY)/2;var ee=new $r(ma);if(ee.startAngle=0,ee.sweepAngle=360,ee.centerX=(a.startX+a.endX)/2,ee.centerY=(a.startY+a.endY)/2,ee.radiusX=Math.abs(a.startX-a.endX)/2,ee.radiusY=Math.abs(a.startY-a.endY)/2,z.add(ee),a=cs(ee,z),E=a.length,E===0)b.push(ee.centerX),b.push(ee.centerY);else{ee=z.startX,z=z.startY;for(var re=0;re<E;re++){var oe=a[re];Bt.Qe(ee,z,oe[2],oe[3],oe[4],oe[5],oe[6],oe[7],.5,b),ee=oe[6],z=oe[7]}}y.push(b),x.push(ju(b))}else for(a=a.figures.iterator;a.next();){E=a.value,b=[],b.push(E.startX),b.push(E.startY),ee=E.startX,z=E.startY,re=ee,oe=z;for(var de=E.segments.s,fe=de.length,ye=0;ye<fe;ye++){var Ce=de[ye];switch(Ce.type){case Xo:4<=b.length&&(y.push(b),x.push(ju(b))),b=[],b.push(Ce.endX),b.push(Ce.endY),ee=Ce.endX,z=Ce.endY,re=ee,oe=z;break;case No:b.push(Ce.endX),b.push(Ce.endY),ee=Ce.endX,z=Ce.endY;break;case Ca:Bt.Qe(ee,z,Ce.point1X,Ce.point1Y,Ce.point2X,Ce.point2Y,Ce.endX,Ce.endY,.5,b),ee=Ce.endX,z=Ce.endY;break;case Bs:Bt.ep(ee,z,Ce.point1X,Ce.point1Y,Ce.endX,Ce.endY,.5,b),ee=Ce.endX,z=Ce.endY;break;case ma:var Ne=cs(Ce,E),Oe=Ne.length;if(Oe===0){b.push(Ce.centerX),b.push(Ce.centerY),ee=Ce.centerX,z=Ce.centerY;break}for(var Ve=0;Ve<Oe;Ve++){var ft=Ne[Ve];Bt.Qe(ee,z,ft[2],ft[3],ft[4],ft[5],ft[6],ft[7],.5,b),ee=ft[6],z=ft[7]}break;case Vs:if(Ne=Ms(Ce,E,ee,z),Oe=Ne.length,Ve=Ce.endX,ft=Ce.endY,Oe===0){b.push(Ve),b.push(ft),ee=Ve,z=ft;break}for(Ve=0;Ve<Oe;Ve++)ft=Ne[Ve],Bt.Qe(ee,z,ft[2],ft[3],ft[4],ft[5],ft[6],ft[7],.5,b),ee=ft[6],z=ft[7];break;default:vt("Segment not of valid type: "+Ce.type)}Ce.isClosed&&(b.push(re),b.push(oe))}4<=b.length&&(y.push(b),x.push(ju(b)))}}}function ju(a){for(var y=[],x=0,b=0,E=a.length,z=0;z<E;z+=2){var ee=a[z],re=a[z+1];z!==0&&y.push(Math.sqrt(tr(x,b,ee,re))),x=ee,b=re}return y}Ie.add=function(a){return this.ee.add(a),this},Ie.pm=function(a,y,x,b,E,z,ee,re){return this._isFrozen&&Sn(this),this.fg=new Ut(a,y,E,z).freeze(),this.gg=new Ut(x,b,ee,re).freeze(),this},jt.Object.defineProperties(Jn.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}},flattenedSegments:{get:function(){return Au(this),this.tk}},flattenedLengths:{get:function(){return Au(this),this.ym}},flattenedTotalLength:{get:function(){var a=this.zm;if(isNaN(a)){if(this.type===Jn.j){a=Math.abs(this.endX-this.startX);var y=Math.abs(this.endY-this.startY);a=Math.sqrt(a*a+y*y)}else if(this.type===Jn.u)a=2*Math.abs(this.endX-this.startX)+2*Math.abs(this.endY-this.startY);else{y=this.flattenedLengths;for(var x=y.length,b=a=0;b<x;b++)for(var E=y[b],z=E.length,ee=0;ee<z;ee++)a+=E[ee]}this.zm=a}return a}},type:{get:function(){return this.na},set:function(a){this.na!==a&&(this._isFrozen&&Sn(this,a),this.na=a,a===Jn.o?this.ee=new Dn:(Jn.V===null&&(Jn.V=new Dn().freeze()),this.ee=Jn.V),this._isInvalidBounds=!0)}},startX:{get:function(){return this.od},set:function(a){this.od!==a&&(this._isFrozen&&Sn(this,a),this.od=a,this._isInvalidBounds=!0)}},startY:{get:function(){return this.pd},set:function(a){this.pd!==a&&(this._isFrozen&&Sn(this,a),this.pd=a,this._isInvalidBounds=!0)}},endX:{get:function(){return this.Dc},set:function(a){this.Dc!==a&&(this._isFrozen&&Sn(this,a),this.Dc=a,this._isInvalidBounds=!0)}},endY:{get:function(){return this.Ec},set:function(a){this.Ec!==a&&(this._isFrozen&&Sn(this,a),this.Ec=a,this._isInvalidBounds=!0)}},figures:{get:function(){return this.ee},set:function(a){this.ee!==a&&(this._isFrozen&&Sn(this,a),this.ee=a,this._isInvalidBounds=!0)}},spot1:{get:function(){return this.fg},set:function(a){this._isFrozen&&Sn(this,a),this.fg=a.J()}},spot2:{get:function(){return this.gg},set:function(a){this._isFrozen&&Sn(this,a),this.gg=a.J()}},defaultStretch:{get:function(){return this.Uf},set:function(a){this._isFrozen&&Sn(this,a),this.Uf=a}},bounds:{get:function(){return this.Zu()&&this.computeBounds(),this.Ip}}}),Jn.prototype.setSpots=Jn.prototype.pm,Jn.prototype.add=Jn.prototype.add,Jn.prototype.getFractionForPoint=Jn.prototype.xx,Jn.prototype.getPointAndAngleAlongPath=Jn.prototype.Qu,Jn.prototype.getAngleAlongPath=Jn.prototype.wx,Jn.prototype.getPointAlongPath=Jn.prototype.Pu,Jn.prototype.containsPoint=Jn.prototype.ca,Jn.prototype.transform=Jn.prototype.transform,Jn.prototype.rotate=Jn.prototype.rotate,Jn.prototype.scale=Jn.prototype.scale,Jn.prototype.offset=Jn.prototype.offset,Jn.prototype.normalize=Jn.prototype.normalize,Jn.prototype.computeBoundsWithoutOrigin=Jn.prototype.ix,Jn.prototype.equalsApprox=Jn.prototype.Xa,Jn.className="Geometry",Jn.j=new mn(Jn,"Line",0),Jn.u=new mn(Jn,"Rectangle",1),Jn.F=new mn(Jn,"Ellipse",2),Jn.o=new mn(Jn,"Path",3),Jn.V=null,Jn.hb="UuBbMmZzLlHhVvCcSsQqTtAaFfXx",Jn.className="Geometry",Jn.stringify=Jn.ia,Jn.fillPath=Jn.nb,Jn.parse=Jn.parse,Jn.Line=Jn.j,Jn.Rectangle=Jn.u,Jn.Ellipse=Jn.F,Jn.Path=Jn.o;function ba(a,y,x,b,E){qi(this),x===void 0&&(x=!0),b===void 0&&(b=!0),E===void 0&&(E=!1),this.l=2|(x?4:0)|(b?8:0)|(E?16:0),a!==void 0?this.od=a:this.od=0,y!==void 0?this.pd=y:this.pd=0,this.pl=new Dn,this.sr=this.pl.Ja,this.fw=null}ba.prototype.copy=function(){var a=new ba;a.l=this.l&-2,a.od=this.od,a.pd=this.pd;for(var y=this.pl.s,x=y.length,b=a.pl,E=0;E<x;E++){var z=y[E].copy();b.add(z)}return a.sr=this.sr,a.fw=this.fw,a},Ie=ba.prototype,Ie.Xa=function(a){if(!(a instanceof ba&&Bt.B(this.startX,a.startX)&&Bt.B(this.startY,a.startY)))return!1;var y=this.segments.s;a=a.segments.s;var x=y.length;if(x!==a.length)return!1;for(var b=0;b<x;b++)if(!y[b].Xa(a[b]))return!1;return!0},Ie.toString=function(a){a===void 0&&(a=-1);for(var y=0>a?"M"+this.startX.toString()+" "+this.startY.toString():"M"+this.startX.toFixed(a)+" "+this.startY.toFixed(a),x=this.segments.s,b=x.length,E=0;E<b;E++)y+=" "+x[E].toString(a);return y},Ie.freeze=function(){this._isFrozen=!0;var a=this.segments;a.freeze();var y=a.s;a=a.length;for(var x=0;x<a;x++)y[x].freeze();return this},Ie.ka=function(){this._isFrozen=!1;var a=this.segments;a.ka(),a=a.s;for(var y=a.length,x=0;x<y;x++)a[x].ka();return this},Ie.Zu=function(){if(this._isInvalidBounds)return!0;var a=this.segments;if(this.sr!==a.Ja)return!0;a=a.s;for(var y=a.length,x=0;x<y;x++)if(a[x]._isInvalidBounds)return!0;return!1},Ie.add=function(a){return this.pl.add(a),this},Ie.ca=function(a,y,x){for(var b=this.startX,E=this.startY,z=b,ee=E,re=this.segments.s,oe=re.length,de=0;de<oe;de++){var fe=re[de];switch(fe.type){case Xo:z=fe.endX,ee=fe.endY,b=fe.endX,E=fe.endY;break;case No:if(Bt.Yb(b,E,fe.endX,fe.endY,x,a,y))return!0;b=fe.endX,E=fe.endY;break;case Ca:if(Bt.cs(b,E,fe.point1X,fe.point1Y,fe.point2X,fe.point2Y,fe.endX,fe.endY,.5,a,y,x))return!0;b=fe.endX,E=fe.endY;break;case Bs:if(Bt.jv(b,E,fe.point1X,fe.point1Y,fe.endX,fe.endY,.5,a,y,x))return!0;b=fe.endX,E=fe.endY;break;case ma:case Vs:var ye=fe.type===ma?cs(fe,this):Ms(fe,this,b,E),Ce=ye.length,Ne=fe.type===ma?fe.centerX:fe.endX,Oe=fe.type===ma?fe.centerY:fe.endY;if(Ce===0){if(Bt.Yb(b,E,Ne,Oe,x,a,y))return!0;b=Ne,E=Oe;break}for(Ne=null,Oe=0;Oe<Ce;Oe++)if(Ne=ye[Oe],Oe===0&&Bt.Yb(b,E,Ne[0],Ne[1],x,a,y)||Bt.cs(Ne[0],Ne[1],Ne[2],Ne[3],Ne[4],Ne[5],Ne[6],Ne[7],.5,a,y,x))return!0;Ne!==null&&(b=Ne[6],E=Ne[7]);break;default:vt("Unknown Segment type: "+fe.type)}if(fe.isClosed&&(b!==z||E!==ee)&&Bt.Yb(b,E,z,ee,x,a,y))return!0}return!1},jt.Object.defineProperties(ba.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}},isFilled:{get:function(){return(this.l&4)!==0},set:function(a){this._isFrozen&&Sn(this,a),this.l=a?this.l|4:this.l&-5}},isShadowed:{get:function(){return(this.l&8)!==0},set:function(a){this._isFrozen&&Sn(this,a),this.l=a?this.l|8:this.l&-9}},isEvenOdd:{get:function(){return(this.l&16)!==0},set:function(a){this._isFrozen&&Sn(this,a),this.l=a?this.l|16:this.l&-17}},startX:{get:function(){return this.od},set:function(a){this._isFrozen&&Sn(this,a),this.od=a,this._isInvalidBounds=!0}},startY:{get:function(){return this.pd},set:function(a){this._isFrozen&&Sn(this,a),this.pd=a,this._isInvalidBounds=!0}},segments:{get:function(){return this.pl},set:function(a){this._isFrozen&&Sn(this,a),this.pl=a,this._isInvalidBounds=!0}}}),ba.prototype.add=ba.prototype.add,ba.prototype.equalsApprox=ba.prototype.Xa,ba.className="PathFigure";function $r(a,y,x,b,E,z,ee,re){qi(this),a===void 0&&(a=No),this.na=a,this.l=2,y!==void 0?this.Dc=y:this.Dc=0,x!==void 0?this.Ec=x:this.Ec=0,b===void 0&&(b=0),E===void 0&&(E=0),z===void 0&&(z=0),ee===void 0&&(ee=0),a===Vs?(a=z%360,0>a&&(a+=360),this.Ne=a,this.Vh=0,this.Wh=Math.max(b,0),this.Pg=Math.max(E,0),typeof ee=="boolean"?ee&&(this.isLargeArc=!0):typeof ee=="number"&&ee&&(this.isLargeArc=!0),re&&(this.isClockwiseArc=!0)):(this.Ne=b,this.Vh=E,a===ma&&(z=Math.max(z,0)),this.Wh=z,typeof ee=="number"?(a===ma&&(ee=Math.max(ee,0)),this.Pg=ee):this.Pg=0),this.ae=null}$r.prototype.copy=function(){var a=new $r;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},Ie=$r.prototype,Ie.Xa=function(a){if(!(a instanceof $r)||this.type!==a.type||this.isClosed!==a.isClosed)return!1;switch(this.type){case Xo:case No:return Bt.B(this.endX,a.endX)&&Bt.B(this.endY,a.endY);case Ca:return Bt.B(this.endX,a.endX)&&Bt.B(this.endY,a.endY)&&Bt.B(this.point1X,a.point1X)&&Bt.B(this.point1Y,a.point1Y)&&Bt.B(this.point2X,a.point2X)&&Bt.B(this.point2Y,a.point2Y);case Bs:return Bt.B(this.endX,a.endX)&&Bt.B(this.endY,a.endY)&&Bt.B(this.point1X,a.point1X)&&Bt.B(this.point1Y,a.point1Y);case ma:return Bt.B(this.startAngle,a.startAngle)&&Bt.B(this.sweepAngle,a.sweepAngle)&&Bt.B(this.centerX,a.centerX)&&Bt.B(this.centerY,a.centerY)&&Bt.B(this.radiusX,a.radiusX)&&Bt.B(this.radiusY,a.radiusY);case Vs:return this.isClockwiseArc===a.isClockwiseArc&&this.isLargeArc===a.isLargeArc&&Bt.B(this.xAxisRotation,a.xAxisRotation)&&Bt.B(this.endX,a.endX)&&Bt.B(this.endY,a.endY)&&Bt.B(this.radiusX,a.radiusX)&&Bt.B(this.radiusY,a.radiusY);default:return!1}},Ie.qb=function(a){a.classType===$r&&(this.type=a)},Ie.toString=function(a){switch(a===void 0&&(a=-1),this.type){case Xo:a=0>a?"M"+this.endX.toString()+" "+this.endY.toString():"M"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case No:a=0>a?"L"+this.endX.toString()+" "+this.endY.toString():"L"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case Ca: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 Bs: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 ma: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 Vs: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":"")},Ie.freeze=function(){return this._isFrozen=!0,this},Ie.ka=function(){return this._isFrozen=!1,this},Ie.close=function(){return this.isClosed=!0,this};function cs(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 E=a.Vh,z=Bt.jx(0,0,x<b?x:b,a.startAngle,a.startAngle+a.sweepAngle,!1);if(x!==b){var ee=dr.alloc();ee.reset(),x<b?ee.scale(1,b/x):ee.scale(x/b,1),Jn.Ha(z,ee),dr.free(ee)}for(x=z.length,b=0;b<x;b++)ee=z[b],ee[0]+=y,ee[1]+=E,ee[2]+=y,ee[3]+=E,ee[4]+=y,ee[5]+=E,ee[6]+=y,ee[7]+=E;return a.ae=z,a.ae}function Ms(a,y,x,b){function E(Ve,ft,lt,mt){return(Ve*mt<ft*lt?-1:1)*Math.acos((Ve*lt+ft*mt)/(Math.sqrt(Ve*Ve+ft*ft)*Math.sqrt(lt*lt+mt*mt)))}if(a.ae!==null&&y._isInvalidBounds===!1)return a.ae;if(a.radiusX===0||a.radiusY===0)return a.ae=[],a.ae;y=a.Wh;var z=a.Pg;y===0&&(y=1e-4),z===0&&(z=1e-4);var ee=Math.PI/180*a.Ne,re=a.isLargeArc,oe=a.isClockwiseArc,de=a.Dc,fe=a.Ec,ye=Math.cos(ee),Ce=Math.sin(ee),Ne=ye*(x-de)/2+Ce*(b-fe)/2;ee=-Ce*(x-de)/2+ye*(b-fe)/2;var Oe=Ne*Ne/(y*y)+ee*ee/(z*z);return 1<Oe&&(y*=Math.sqrt(Oe),z*=Math.sqrt(Oe)),Oe=(re===oe?-1:1)*Math.sqrt((y*y*z*z-y*y*ee*ee-z*z*Ne*Ne)/(y*y*ee*ee+z*z*Ne*Ne)),isNaN(Oe)&&(Oe=0),re=Oe*y*ee/z,Oe=Oe*-z*Ne/y,isNaN(re)&&(re=0),isNaN(Oe)&&(Oe=0),x=(x+de)/2+ye*re-Ce*Oe,b=(b+fe)/2+Ce*re+ye*Oe,fe=E(1,0,(Ne-re)/y,(ee-Oe)/z),ye=(Ne-re)/y,de=(ee-Oe)/z,Ne=(-Ne-re)/y,re=(-ee-Oe)/z,ee=E(ye,de,Ne,re),Ne=(ye*Ne+de*re)/(Math.sqrt(ye*ye+de*de)*Math.sqrt(Ne*Ne+re*re)),-1>=Ne?ee=Math.PI:1<=Ne&&(ee=0),!oe&&0<ee&&(ee-=2*Math.PI),oe&&0>ee&&(ee+=2*Math.PI),oe=y>z?1:y/z,Ne=y>z?z/y:1,y=Bt.jx(0,0,y>z?y:z,fe,fe+ee,!0),z=dr.alloc(),z.reset(),z.translate(x,b),z.rotate(a.Ne,0,0),z.scale(oe,Ne),Jn.Ha(y,z),dr.free(z),a.ae=y,a.ae}jt.Object.defineProperties($r.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&&Sn(this,a),this.na=a,this._isInvalidBounds=!0}},endX:{get:function(){return this.Dc},set:function(a){this._isFrozen&&Sn(this,a),this.Dc=a,this._isInvalidBounds=!0}},endY:{get:function(){return this.Ec},set:function(a){this._isFrozen&&Sn(this,a),this.Ec=a,this._isInvalidBounds=!0}},point1X:{get:function(){return this.Ne},set:function(a){this._isFrozen&&Sn(this,a),this.Ne=a,this._isInvalidBounds=!0}},point1Y:{get:function(){return this.Vh},set:function(a){this._isFrozen&&Sn(this,a),this.Vh=a,this._isInvalidBounds=!0}},point2X:{get:function(){return this.Wh},set:function(a){this._isFrozen&&Sn(this,a),this.Wh=a,this._isInvalidBounds=!0}},point2Y:{get:function(){return this.Pg},set:function(a){this._isFrozen&&Sn(this,a),this.Pg=a,this._isInvalidBounds=!0}},centerX:{get:function(){return this.Ne},set:function(a){this._isFrozen&&Sn(this,a),this.Ne=a,this._isInvalidBounds=!0}},centerY:{get:function(){return this.Vh},set:function(a){this._isFrozen&&Sn(this,a),this.Vh=a,this._isInvalidBounds=!0}},radiusX:{get:function(){return this.Wh},set:function(a){0>a&&ri(a,">= zero",$r,"radiusX"),this._isFrozen&&Sn(this,a),this.Wh=a,this._isInvalidBounds=!0}},radiusY:{get:function(){return this.Pg},set:function(a){0>a&&ri(a,">= zero",$r,"radiusY"),this._isFrozen&&Sn(this,a),this.Pg=a,this._isInvalidBounds=!0}},startAngle:{get:function(){return this.Dc},set:function(a){this._isFrozen&&Sn(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&&Sn(this,a),360<a&&(a=360),-360>a&&(a=-360),this.Ec=a,this._isInvalidBounds=!0}},isClockwiseArc:{get:function(){return(this.l&4)!==0},set:function(a){this._isFrozen&&Sn(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&&Sn(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&&Sn(this,a),a%=360,0>a&&(a+=360),this.Ne=a,this._isInvalidBounds=!0}}}),$r.prototype.equalsApprox=$r.prototype.Xa;var Xo=new mn($r,"Move",0),No=new mn($r,"Line",1),Ca=new mn($r,"Bezier",2),Bs=new mn($r,"QuadraticBezier",3),ma=new mn($r,"Arc",4),Vs=new mn($r,"SvgArc",4);$r.className="PathSegment",$r.Move=Xo,$r.Line=No,$r.Bezier=Ca,$r.QuadraticBezier=Bs,$r.Arc=ma,$r.SvgArc=Vs;function es(){this.H=null,this.xu=new Je(0,0).freeze(),this.mt=new Je(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}es.prototype.copy=function(){var a=new es;return this.clone(a)},es.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},es.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},es.prototype.So=function(a,y){var x=this.diagram;return x===null||Og(x,a,y),y},es.prototype.Bz=function(a,y){var x=this.diagram;return x===null||(Og(x,a,y),y.assign(x.Ps(y))),y},jt.Object.defineProperties(es.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}}}),es.prototype.getMultiTouchDocumentPoint=es.prototype.Bz,es.prototype.getMultiTouchViewPoint=es.prototype.So,es.className="InputEvent";function cu(){this.H=null,this.xa="",this.ar=this.Lr=null}cu.prototype.copy=function(){var a=new cu;return a.H=this.H,a.xa=this.xa,a.Lr=this.Lr,a.ar=this.ar,a},cu.prototype.toString=function(){var a="*"+this.name;return this.subject!==null&&(a+=":"+this.subject.toString()),this.parameter!==null&&(a+="("+this.parameter.toString()+")"),a},jt.Object.defineProperties(cu.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}}}),cu.className="DiagramEvent";function qo(){this.Fm=Wo,this.rf=this.Qq="",this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null}qo.prototype.clear=function(){this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null},qo.prototype.copy=function(){var a=new qo;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=zt(y)&&typeof y.J=="function"?y.J():y,y=this.Rn,a.Rn=zt(y)&&typeof y.J=="function"?y.J():y,y=this.Mn,a.Mn=zt(y)&&typeof y.J=="function"?y.J():y,y=this.Ln,a.Ln=zt(y)&&typeof y.J=="function"?y.J():y,a},qo.prototype.qb=function(a){a.classType===qo&&(this.change=a)},qo.prototype.toString=function(){var a="";return a=this.change===ds?a+"* ":this.change===Wo?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===ds?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},qo.prototype.I=function(a){return a?this.oldValue:this.newValue},qo.prototype.Dz=function(a){return a?this.oldParam:this.newParam},qo.prototype.canUndo=function(){return this.model!==null||this.diagram!==null},qo.prototype.undo=function(){this.canUndo()&&(this.model!==null?this.model.changeState(this,!0):this.diagram!==null&&this.diagram.changeState(this,!0))},qo.prototype.canRedo=function(){return this.model!==null||this.diagram!==null},qo.prototype.redo=function(){this.canRedo()&&(this.model!==null?this.model.changeState(this,!1):this.diagram!==null&&this.diagram.changeState(this,!1))},jt.Object.defineProperties(qo.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===ds&&(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}}}),qo.prototype.redo=qo.prototype.redo,qo.prototype.canRedo=qo.prototype.canRedo,qo.prototype.undo=qo.prototype.undo,qo.prototype.canUndo=qo.prototype.canUndo,qo.prototype.getParam=qo.prototype.Dz,qo.prototype.getValue=qo.prototype.I,qo.prototype.clear=qo.prototype.clear;var ds=new mn(qo,"Transaction",-1),Wo=new mn(qo,"Property",0),la=new mn(qo,"Insert",1),ga=new mn(qo,"Remove",2);qo.className="ChangedEvent",qo.Transaction=ds,qo.Property=Wo,qo.Insert=la,qo.Remove=ga;function Ea(){this.o=new Dn().freeze(),this.xa="",this.j=!1}Ea.prototype.toString=function(a){var y="Transaction: "+this.name+" "+this.changes.count.toString()+(this.isComplete?"":", incomplete");if(a!==void 0&&0<a){a=this.changes.count;for(var x=0;x<a;x++){var b=this.changes.M(x);b!==null&&(y+=`
|
|
|
`+b.toString())}}return y},Ea.prototype.clear=function(){var a=this.changes;a.ka();for(var y=a.count-1;0<=y;y--){var x=a.M(y);x!==null&&x.clear()}a.clear(),a.freeze()},Ea.prototype.canUndo=function(){return this.isComplete},Ea.prototype.undo=function(){if(this.canUndo())for(var a=this.changes.count-1;0<=a;a--){var y=this.changes.M(a);y!==null&&y.undo()}},Ea.prototype.canRedo=function(){return this.isComplete},Ea.prototype.redo=function(){if(this.canRedo())for(var a=this.changes.count,y=0;y<a;y++){var x=this.changes.M(y);x!==null&&x.redo()}},Ea.prototype.ak=function(){if(this.isComplete){var a=this.changes;a.ka();for(var y=new an,x=0;x<a.count;x++){var b=a.M(x);if(b!==null&&b.change===Wo&&b.object){var E=y.get(b.object);E||(E=new an,y.set(b.object,E));var z=E.get(b.propertyName);z===null?E.set(b.propertyName,-1):(0<z&&a.cd(z,null),E.set(b.propertyName,x))}}for(x=y=0;x<a.count;x++)b=a.M(x),b!==null&&(x>y&&a.cd(y,b),y++);for(;a.length>y;)a.pop();a.freeze()}},jt.Object.defineProperties(Ea.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}}}),Ea.prototype.optimize=Ea.prototype.ak,Ea.prototype.redo=Ea.prototype.redo,Ea.prototype.canRedo=Ea.prototype.canRedo,Ea.prototype.undo=Ea.prototype.undo,Ea.prototype.canUndo=Ea.prototype.canUndo,Ea.prototype.clear=Ea.prototype.clear,Ea.className="Transaction";function Bo(){this.Pt=new Bn,this.Jd=!1,this.u=new Dn().freeze(),this.Ce=-1,this.o=999,this.Fe=!1,this.Np=null,this.bi=0,this.j=!1,this.Ie=new Dn().freeze(),this.hl=new Dn,this.tt=!0,this.Dt=this.rq=this.Gt=this.Ft=!1}Bo.prototype.toString=function(a){var y="UndoManager "+this.historyIndex+"<"+this.history.count+"<="+this.maxHistoryLength;y+="[";for(var x=this.nestedTransactionNames.count,b=0;b<x;b++)0<b&&(y+=" "),y+=this.nestedTransactionNames.M(b);if(y+="]",a!==void 0&&0<a)for(x=this.history.count,b=0;b<x;b++)y+=`
|
|
|
`+this.history.M(b).toString(a-1);return y},Bo.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},Bo.prototype.copyProperties=function(a){this.isEnabled=a.isEnabled,this.maxHistoryLength=a.maxHistoryLength,this.checksTransactionLevel=a.checksTransactionLevel},Ie=Bo.prototype,Ie.Xw=function(a){this.Pt.add(a)},Ie.Rx=function(a){this.Pt.remove(a)},Ie.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),0<this.bi&&this.bi--),this.isEnabled&&(this.Ie.ka(),this.Ie.add(a),this.Ie.freeze(),this.currentTransaction===null?this.hl.add(0):this.hl.add(this.currentTransaction.changes.count)),this.bi++;var y=this.transactionLevel===1;return y&&(this.isInternalTransaction||this.Ob("StartedTransaction",a,this.currentTransaction)),y},Ie.eb=function(a){return a===void 0&&(a=""),Gu(this,!0,a)},Ie.Kf=function(){return Gu(this,!1,"")};function Gu(a,y,x){if(a.isUndoingRedoing)return!1;a.checksTransactionLevel&&1>a.transactionLevel&&ki("Ending transaction without having started a transaction: "+x);var b=a.transactionLevel===1,E=a.currentTransaction;b&&y&&(a.isInternalTransaction||a.Ob("CommittingTransaction",x,E));var z=0;if(0<a.transactionLevel&&(a.bi--,a.isEnabled)){var ee=a.Ie.count;0<ee&&(x===""&&(x=a.Ie.M(0)),a.Ie.ka(),a.Ie.mb(ee-1),a.Ie.freeze()),ee=a.hl.count,0<ee&&(z=a.hl.M(ee-1),a.hl.mb(ee-1))}if(b){if(y)a.rq=!1,E===null&&x!==""&&(E=a.currentTransaction),a.isEnabled&&E!==null&&(E.isComplete||(E.isComplete=!0,E.name=x),a.lx(),y=a.history,y.ka(),b=a.maxHistoryLength,0<=b&&(b===0?y.clear():y.count>=b&&(z=y.M(0),z!==null&&z.clear(),y.mb(0),a.Ce--)),b===0||y.count!==0&&y.get(y.count-1)===E||(y.add(E),a.Ce++),y.freeze()),a.isInternalTransaction||a.Ob("CommittedTransaction",x,E);else{a.Fe=!0;try{a.isEnabled&&E!==null&&(E.isComplete=!0,E.undo())}finally{a.isInternalTransaction||a.Ob("RolledBackTransaction",x,E),a.Fe=!1}E!==null&&E.clear()}return a.Np=null,a.isPendingClear&&a.clear(),a.isPendingClear=!1,a.isPendingUnmodified=!1,!0}if(a.isEnabled&&!y&&E!==null){for(a=z,x=E.changes,E=x.count-1;E>=a;E--)y=x.M(E),y!==null&&y.undo(),x.ka(),x.mb(E);x.freeze()}return!1}Ie.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()}},Bo.prototype.canUndo=function(){if(!this.isEnabled||0<this.transactionLevel)return!1;var a=this.transactionToUndo;return!!(a!==null&&a.canUndo())},Bo.prototype.undo=function(){if(this.canUndo()){var a=this.transactionToUndo;try{this.Fe=!0,this.Ob("StartingUndo","Undo",a),this.Ce--,a.undo()}catch(y){ki("undo error: "+y.toString())}finally{this.Ob("FinishedUndo","Undo",a),this.Fe=!1}}},Bo.prototype.canRedo=function(){if(!this.isEnabled||0<this.transactionLevel)return!1;var a=this.transactionToRedo;return!!(a!==null&&a.canRedo())},Bo.prototype.redo=function(){if(this.canRedo()){var a=this.transactionToRedo;try{this.Fe=!0,this.Ob("StartingRedo","Redo",a),this.Ce++,a.redo()}catch(y){ki("redo error: "+y.toString())}finally{this.Ob("FinishedRedo","Redo",a),this.Fe=!1}}},Bo.prototype.Ob=function(a,y,x){x===void 0&&(x=null);var b=new qo;for(b.change=ds,b.propertyName=a,b.object=x,b.oldValue=y,a=this.models;a.next();)y=a.value,b.model=y,y.ds(b)},Bo.prototype.Tu=function(a){if(this.isEnabled&&!this.isUndoingRedoing&&!this.skipsEvent(a)){var y=this.currentTransaction;y===null&&(this.Np=y=new Ea);var x=a.copy();y=y.changes,y.ka(),y.add(x),y.freeze(),this.checksTransactionLevel&&0>=this.transactionLevel&&!this.tt&&(a=a.diagram,a!==null&&a.pi===!1||ki("Change not within a transaction: "+x.toString()))}},Bo.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},jt.Object.defineProperties(Bo.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.historyIndex<this.history.count-1?this.history.M(this.historyIndex+1):null}},isUndoingRedoing:{get:function(){return this.Fe}},history:{get:function(){return this.u}},maxHistoryLength:{get:function(){return this.o},set:function(a){this.o=a}},historyIndex:{get:function(){return this.Ce}},currentTransaction:{get:function(){return this.Np}},transactionLevel:{get:function(){return this.bi}},isInTransaction:{get:function(){return 0<this.bi}},checksTransactionLevel:{get:function(){return this.j},set:function(a){this.j=a}},nestedTransactionNames:{get:function(){return this.Ie}},isPendingClear:{get:function(){return this.Ft},set:function(a){this.Ft=a}},isPendingUnmodified:{get:function(){return this.Gt},set:function(a){this.Gt=a}},isInternalTransaction:{get:function(){return this.Dt},set:function(a){this.Dt=a}},isJustDiscarded:{get:function(){return this.rq}}}),Bo.prototype.handleChanged=Bo.prototype.Tu,Bo.prototype.redo=Bo.prototype.redo,Bo.prototype.undo=Bo.prototype.undo,Bo.prototype.canUndo=Bo.prototype.canUndo,Bo.prototype.discardHistoryAfterIndex=Bo.prototype.lx,Bo.prototype.rollbackTransaction=Bo.prototype.Kf,Bo.prototype.commitTransaction=Bo.prototype.eb,Bo.prototype.startTransaction=Bo.prototype.Ea,Bo.prototype.removeModel=Bo.prototype.Rx,Bo.prototype.addModel=Bo.prototype.Xw,Bo.prototype.clear=Bo.prototype.clear,Bo.className="UndoManager";function Vr(){qi(this),this.H=Rc,this.xa="",this.Jd=!0,this.nb=!1,this.wm=null,this.yy=new es,this.Zr=-1}Vr.prototype.toString=function(){return this.name!==""?this.name+" Tool":Tn(this.constructor)},Vr.prototype.updateAdornments=function(){},Vr.prototype.canStart=function(){return this.isEnabled},Vr.prototype.doStart=function(){},Vr.prototype.doActivate=function(){this.isActive=!0},Vr.prototype.doDeactivate=function(){this.isActive=!1},Vr.prototype.doStop=function(){},Vr.prototype.doCancel=function(){this.transactionResult=null,this.stopTool()},Vr.prototype.stopTool=function(){var a=this.diagram;a.currentTool===this&&(a.currentTool=null,a.currentCursor="")},Vr.prototype.doMouseDown=function(){!this.isActive&&this.canStart()&&this.doActivate()},Vr.prototype.doMouseMove=function(){},Vr.prototype.doMouseUp=function(){this.stopTool()},Vr.prototype.doMouseWheel=function(){},Vr.prototype.canStartMultiTouch=function(){return!0},Vr.prototype.standardPinchZoomStart=function(){var a=this.diagram,y=a.lastInput,x=y.So(0,Je.allocAt(NaN,NaN)),b=y.So(1,Je.allocAt(NaN,NaN));if(x.w()&&b.w()&&(this.doCancel(),a.Ql("hasGestureZoom"))){a.Bw=a.scale;var E=b.x-x.x,z=b.y-x.y;a.Jw=Math.sqrt(E*E+z*z),y.bubbles=!1}Je.free(x),Je.free(b)},Vr.prototype.standardPinchZoomMove=function(){var a=this.diagram,y=a.lastInput,x=y.So(0,Je.allocAt(NaN,NaN)),b=y.So(1,Je.allocAt(NaN,NaN));if(x.w()&&b.w()&&(this.doCancel(),a.Ql("hasGestureZoom"))){var E=b.x-x.x,z=b.y-x.y;z=Math.sqrt(E*E+z*z)/a.Jw,E=new Je((Math.min(b.x,x.x)+Math.max(b.x,x.x))/2,(Math.min(b.y,x.y)+Math.max(b.y,x.y))/2),z*=a.Bw;var ee=a.commandHandler;if(z!==a.scale&&ee.canResetZoom(z)){var re=a.zoomPoint;a.zoomPoint=E,ee.resetZoom(z),a.zoomPoint=re}y.bubbles=!1}Je.free(x),Je.free(b)},Vr.prototype.doKeyDown=function(){this.diagram.lastInput.key==="Esc"&&this.doCancel()},Vr.prototype.doKeyUp=function(){},Vr.prototype.Ea=function(a){return a===void 0&&(a=this.name),this.transactionResult=null,this.diagram.Ea(a)},Vr.prototype.stopTransaction=function(){var a=this.diagram;return this.transactionResult===null?a.Kf():a.eb(this.transactionResult)},Vr.prototype.standardMouseSelect=function(){var a=this.diagram;if(a.allowSelect){var y=a.lastInput,x=a.Ol(y.documentPoint,!1);if(x!==null){if(sr?y.meta:y.control){for(a.R("ChangingSelection",a.selection),y=x;y!==null&&!y.canSelect();)y=y.containingGroup;y!==null&&(y.isSelected=!y.isSelected),a.R("ChangedSelection",a.selection)}else if(y.shift){if(!x.isSelected){for(a.R("ChangingSelection",a.selection),y=x;y!==null&&!y.canSelect();)y=y.containingGroup;y!==null&&(y.isSelected=!0),a.R("ChangedSelection",a.selection)}}else if(!x.isSelected){for(y=x;y!==null&&!y.canSelect();)y=y.containingGroup;y!==null&&a.select(y)}}else!y.left||(sr?y.meta:y.control)||y.shift||a.clearSelection()}},Vr.prototype.standardMouseClick=function(a,y){a===void 0&&(a=null),y===void 0&&(y=function(E){return!E.layer.isTemporary});var x=this.diagram,b=x.lastInput;return a=x.ic(b.documentPoint,a,y),b.targetObject=a,Qc(a,b,x),b.handled};function Qc(a,y,x){if(y.handled=!1,a===null||a.If()){var b=0;y.left?b=y.clickCount===1?1:y.clickCount===2?2:1:y.right&&y.clickCount===1&&(b=3);var E="ObjectSingleClicked";if(a!==null){switch(b){case 1:E="ObjectSingleClicked";break;case 2:E="ObjectDoubleClicked";break;case 3:E="ObjectContextClicked"}b!==0&&x.R(E,a)}else{switch(b){case 1:E="BackgroundSingleClicked";break;case 2:E="BackgroundDoubleClicked";break;case 3:E="BackgroundContextClicked"}b!==0&&x.R(E)}if(a!==null)for(;a!==null;){switch(x=null,b){case 1:x=a.click;break;case 2:x=a.doubleClick?a.doubleClick:a.click;break;case 3:x=a.contextClick}if(x!==null&&(x(y,a),y.handled))break;a=a.panel}else{switch(a=null,b){case 1:a=x.click;break;case 2:a=x.doubleClick?x.doubleClick:x.click;break;case 3:a=x.contextClick}a!==null&&a(y)}}}Vr.prototype.standardMouseOver=function(){var a=this.diagram,y=a.lastInput;if(a.animationManager.zb!==!0){var x=a.skipsUndoManager;a.skipsUndoManager=!0;var b=a.viewportBounds.ca(y.documentPoint)?a.ic(y.documentPoint,null,null):null;!y.event||y.event.type!=="pointercancel"&&y.event.type!=="pointerout"||(b=null),y.targetObject=b;var E=!1;if(b!==a.Ck){var z=a.Ck,ee=z;for(a.Ck=b,this.doCurrentObjectChanged(z,b),y.handled=!1;z!==null;){var re=z.mouseLeave;if(re!==null&&(b===z||b!==null&&b.rg(z)||(re(y,z,b),E=!0,y.handled)))break;z=z.panel}for(z=ee,y.handled=!1;b!==null&&(ee=b.mouseEnter,!(ee!==null&&(z===b||z!==null&&z.rg(b)||(ee(y,b,z),E=!0,y.handled))));)b=b.panel;b=a.Ck}if(b!==null){for(z=b,ee="";z!==null&&(ee=z.cursor,ee==="");)z=z.panel;for(a.currentCursor=ee,y.handled=!1,z=b;z!==null&&(b=z.mouseOver,!(b!==null&&(b(y,z),E=!0,y.handled)));)z=z.panel}else this.doUpdateCursor(null),b=a.mouseOver,b!==null&&(b(y),E=!0);E&&a.$b(),a.skipsUndoManager=x}},Vr.prototype.doUpdateCursor=function(){var a=this.diagram;a&&(a.currentCursor="")},Vr.prototype.doCurrentObjectChanged=function(){},Vr.prototype.standardMouseWheel=function(){var a=this.diagram,y=a.lastInput,x=y.delta;if(x!==0&&a.documentBounds.w()){var b=a.commandHandler,E=a.toolManager.mouseWheelBehavior;if(b!==null&&(E===Jl&&!y.shift||E===Pu&&y.control))(0<x?b.canIncreaseZoom():b.canDecreaseZoom())&&(E=a.zoomPoint,a.zoomPoint=y.viewPoint,0<x?b.increaseZoom():b.decreaseZoom(),a.zoomPoint=E),y.bubbles=!1;else if(E===Jl&&y.shift||E===Pu&&!y.control){b=a.position.copy();var z=y.event;E=z.deltaMode;var ee=z.deltaX;z=z.deltaY;var re="pixel";if(ee===0&&z===0||y.shift)!y.shift&&a.allowVerticalScroll?(x=3*x*a.scrollVerticalLineChange,a.scroll(re,0<x?"up":"down",Math.abs(x))):y.shift&&a.allowHorizontalScroll&&(x=3*x*a.scrollHorizontalLineChange,a.scroll(re,0<x?"left":"right",Math.abs(x)));else{switch(E){case 0:re="pixel";break;case 1:re="line";break;case 2:re="page"}ee!==0&&a.allowHorizontalScroll&&(ee*=a.scrollHorizontalLineChange/16,a.scroll(re,0<ee?"right":"left",Math.abs(ee))),z!==0&&a.allowVerticalScroll&&(z*=a.scrollVerticalLineChange/16,a.scroll(re,0<z?"down":"up",Math.abs(z)))}this.doWheelChange(a,b,y)}}},Vr.prototype.doWheelChange=function(a,y,x){a.position.D(y)&&x.event.wheelDeltaX===0||(x.bubbles=!1)},Vr.prototype.standardWaitAfter=function(a,y){y===void 0&&(y=this.diagram.lastInput),this.cancelWaitAfter();var x=this,b=y.clone(this.yy);this.Zr=Gt(function(){x.doWaitAfter(b)},a)},Vr.prototype.cancelWaitAfter=function(){this.Zr!==-1&&In.clearTimeout(this.Zr),this.Zr=-1},Vr.prototype.doWaitAfter=function(){},Vr.prototype.findToolHandleAt=function(a,y){return a=this.diagram.ic(a,function(x){for(;x!==null&&!(x.panel instanceof lo);)x=x.panel;return x}),a===null?null:a.part.category===y?a:null},Vr.prototype.isBeyondDragSize=function(a,y){var x=this.diagram;a===void 0&&(a=x.firstInput.viewPoint),y===void 0&&(y=x.lastInput.viewPoint);var b=x.toolManager.dragSize,E=b.width;return b=b.height,x.firstInput.isTouchEvent&&(E+=6,b+=6),Math.abs(y.x-a.x)>E||Math.abs(y.y-a.y)>b},jt.Object.defineProperties(Vr.prototype,{diagram:{get:function(){return this.H},set:function(a){a instanceof en&&(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}}}),Vr.prototype.startTransaction=Vr.prototype.Ea,Vr.className="Tool";function jo(){Vr.call(this),this.name="ToolManager",this.hb=new Dn,this.ob=new Dn,this.Hb=new Dn,this.F=this.V=850,this.o=new Ln(2,2).ja(),this.Ha=5e3,this.ia=Pu,this.u=xc,this.Mp=this.j=null,this.zj=-1}Wt(jo,Vr),jo.prototype.initializeStandardTools=function(){},jo.prototype.updateAdornments=function(a){var y=this.currentToolTip;if(y instanceof lo&&this.Mp===a){var x=y.adornedObject;(a!==null?x.part===a:x===null)?this.showToolTip(y,x):this.hideToolTip()}},jo.prototype.doMouseDown=function(){var a=this.diagram,y=a.lastInput;if(y.isTouchEvent&&this.gestureBehavior===Pl&&(y.bubbles=!1),y.isMultiTouch){if(this.cancelWaitAfter(),this.gestureBehavior===Nl){y.bubbles=!0;return}if(this.gestureBehavior===Pl)return;if(a.currentTool.canStartMultiTouch()){a.currentTool.standardPinchZoomStart();return}}for(var x=this.mouseDownTools.length,b=0;b<x;b++){var E=this.mouseDownTools.M(b);if(E.diagram=this.diagram,E.canStart()){a.doFocus(),a.currentTool=E,a.currentTool===E&&(E.isActive||E.doActivate(),E.doMouseDown());return}}a.lastInput.button===1&&(this.mouseWheelBehavior===Pu?this.mouseWheelBehavior=Jl:this.mouseWheelBehavior===Jl&&(this.mouseWheelBehavior=Pu)),this.doActivate(),this.standardWaitAfter(this.holdDelay,y)},jo.prototype.doMouseMove=function(){var a=this.diagram,y=a.lastInput;if(y.isMultiTouch){if(this.gestureBehavior===Nl){y.bubbles=!0;return}if(this.gestureBehavior===Pl)return;if(a.currentTool.canStartMultiTouch()){a.currentTool.standardPinchZoomMove();return}}if(this.isActive)for(var x=this.mouseMoveTools.length,b=0;b<x;b++){var E=this.mouseMoveTools.M(b);if(E.diagram=this.diagram,E.canStart()){a.doFocus(),a.currentTool=E,a.currentTool===E&&(E.isActive||E.doActivate(),E.doMouseMove());return}}Lc(this,a),a=y.event,a===null||a.type!=="pointermove"&&a.cancelable||(y.bubbles=!0)};function Lc(a,y){a.standardMouseOver(),a.isBeyondDragSize()&&a.standardWaitAfter(a.isActive?a.holdDelay:a.hoverDelay,y.lastInput)}jo.prototype.doCurrentObjectChanged=function(a,y){a=this.currentToolTip,a===null||y!==null&&a instanceof lo&&(y===a||y.rg(a))||this.hideToolTip()},jo.prototype.doWaitAfter=function(a){var y=this.diagram;y.ta!==null&&(this.doMouseHover(),this.isActive||this.doToolTip(),a.isTouchEvent&&!y.lastInput.handled&&(a=a.copy(),a.button=2,a.buttons=2,y.lastInput=a,y.qu=!0,y.doMouseUp()))},jo.prototype.doMouseHover=function(){var a=this.diagram,y=a.lastInput;y.targetObject===null&&(y.targetObject=a.ic(y.documentPoint,null,null));var x=y.targetObject;if(x!==null)for(y.handled=!1;x!==null&&(a=this.isActive?x.mouseHold:x.mouseHover,!(a!==null&&(a(y,x),y.handled)));)x=x.panel;else x=this.isActive?a.mouseHold:a.mouseHover,x!==null&&x(y)},jo.prototype.doToolTip=function(){var a=this.diagram,y=a.lastInput;if(y.targetObject===null&&(y.targetObject=a.ic(y.documentPoint,null,null)),y=y.targetObject,y!==null){if(a=this.currentToolTip,!(a instanceof lo)||y!==a&&!y.rg(a)){for(;y!==null;){if(a=y.toolTip,a!==null){this.showToolTip(a,y);return}y=y.panel}this.hideToolTip()}}else y=a.toolTip,y!==null?this.showToolTip(y,null):this.hideToolTip()},jo.prototype.showToolTip=function(a,y){var x=this.diagram;if(a!==this.currentToolTip&&this.hideToolTip(),a instanceof lo){a.layerName="Tool",a.selectable=!1,a.scale=1/x.scale,a.category="ToolTip",a.placeholder!==null&&(a.placeholder.scale=x.scale);var b=a.diagram;b!==null&&b!==x&&b.remove(a),x.add(a),y!==null?a.adornedObject=y:a.data=x.model,a.Va(),this.positionToolTip(a,y)}else a instanceof no&&a!==this.currentToolTip&&a.show(y,x,this);if(this.currentToolTip=a,this.zj!==-1&&(In.clearTimeout(this.zj),this.zj=-1),a=this.toolTipDuration,0<a&&a!==1/0){var E=this;this.zj=Gt(function(){E.hideToolTip()},a)}},jo.prototype.positionToolTip=function(a){if(a.placeholder===null){var y=this.diagram,x=y.lastInput.documentPoint.copy(),b=a.measuredBounds,E=y.viewportBounds;y.lastInput.isTouchEvent&&(x.x-=b.width),x.x+b.width>E.right&&(x.x-=b.width+5/y.scale),x.x<E.x&&(x.x=E.x),x.y=x.y+20/y.scale+b.height>E.bottom?x.y-(b.height+5/y.scale):x.y+20/y.scale,x.y<E.y&&(x.y=E.y),a.position=x}},jo.prototype.hideToolTip=function(){this.zj!==-1&&(In.clearTimeout(this.zj),this.zj=-1);var a=this.diagram,y=this.currentToolTip;y!==null&&(y instanceof lo?(a.remove(y),this.Mp!==null&&this.Mp.Jf(y.category),y.data=null,y.adornedObject=null):y instanceof no&&y.hide!==null&&y.hide(a,this),this.currentToolTip=null)},jo.prototype.doMouseUp=function(){this.cancelWaitAfter();var a=this.diagram;if(this.isActive)for(var y=this.mouseUpTools.length,x=0;x<y;x++){var b=this.mouseUpTools.M(x);if(b.diagram=this.diagram,b.canStart()){a.doFocus(),a.currentTool=b,a.currentTool===b&&(b.isActive||b.doActivate(),b.doMouseUp());return}}a.doFocus(),this.doDeactivate()},jo.prototype.doMouseWheel=function(){this.standardMouseWheel()},jo.prototype.doKeyDown=function(){var a=this.diagram;a.commandHandler!==null&&a.commandHandler.doKeyDown()},jo.prototype.doKeyUp=function(){var a=this.diagram;a.commandHandler!==null&&a.commandHandler.doKeyUp()},jo.prototype.findTool=function(a){for(var y=this.mouseDownTools.length,x=0;x<y;x++){var b=this.mouseDownTools.M(x);if(b.name===a)return b}for(y=this.mouseMoveTools.length,x=0;x<y;x++)if(b=this.mouseMoveTools.M(x),b.name===a)return b;for(y=this.mouseUpTools.length,x=0;x<y;x++)if(b=this.mouseUpTools.M(x),b.name===a)return b;return null},jo.prototype.replaceTool=function(a,y){y!==null&&(y.diagram=this.diagram);for(var x=this.mouseDownTools.length,b=0;b<x;b++){var E=this.mouseDownTools.M(b);if(E.name===a)return y!==null?this.mouseDownTools.cd(b,y):this.mouseDownTools.mb(b),E}for(x=this.mouseMoveTools.length,b=0;b<x;b++)if(E=this.mouseMoveTools.M(b),E.name===a)return y!==null?this.mouseMoveTools.cd(b,y):this.mouseMoveTools.mb(b),E;for(x=this.mouseUpTools.length,b=0;b<x;b++)if(E=this.mouseUpTools.M(b),E.name===a)return y!==null?this.mouseUpTools.cd(b,y):this.mouseUpTools.mb(b),E;return null},jo.prototype.gb=function(a,y,x){y!==null&&(y.name=a,y.diagram=this.diagram),this.findTool(a)?this.replaceTool(a,y):y!==null&&x.add(y)},jt.Object.defineProperties(jo.prototype,{mouseWheelBehavior:{get:function(){return this.ia},set:function(a){this.ia=a}},gestureBehavior:{get:function(){return this.u},set:function(a){this.u=a}},currentToolTip:{get:function(){return this.j},set:function(a){this.j=a,this.Mp=a!==null&&a instanceof lo?a.adornedPart:null}},mouseDownTools:{get:function(){return this.hb}},mouseMoveTools:{get:function(){return this.ob}},mouseUpTools:{get:function(){return this.Hb}},hoverDelay:{get:function(){return this.V},set:function(a){this.V=a}},holdDelay:{get:function(){return this.F},set:function(a){this.F=a}},dragSize:{get:function(){return this.o},set:function(a){this.o=a.J()}},toolTipDuration:{get:function(){return this.Ha},set:function(a){this.Ha=a}}}),jo.prototype.replaceStandardTool=jo.prototype.gb;var Pu=new mn(jo,"WheelScroll",0),Jl=new mn(jo,"WheelZoom",1),Ic=new mn(jo,"WheelNone",2),xc=new mn(jo,"GestureZoom",3),Pl=new mn(jo,"GestureCancel",4),Nl=new mn(jo,"GestureNone",5);jo.className="ToolManager",jo.WheelScroll=Pu,jo.WheelZoom=Jl,jo.WheelNone=Ic,jo.GestureZoom=xc,jo.GestureCancel=Pl,jo.GestureNone=Nl;function Vo(){Vr.call(this),this.name="Dragging",this.u=this.Sw=this.ob=!0,this.o=this.Ha=this.V=this.Oe=null,this.Ym=this.Hb=!1,this.tl=new Je(NaN,NaN),this.Fr=new Je,this.hb=!0,this.Ik=100,this.Cg=[],this.te=new Bn().freeze(),this.ia=new ae,this.Bn=null,this.F="copy",this.Oc="",this.Pc="no-drop"}var Ps;Wt(Vo,Vr),Vo.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;if(a.isReadOnly&&!a.allowDragOut||!a.allowMove&&!a.allowCopy&&!a.allowDragOut||!a.allowSelect)return!1;var y=a.lastInput;return!y.left||a.currentTool!==this&&(!this.isBeyondDragSize()||y.isTouchEvent&&y.timestamp-a.firstInput.timestamp<this.Ik)?!1:this.findDraggablePart()!==null},Vo.prototype.findDraggablePart=function(){var a=this.diagram;if(a=a.Ol(a.firstInput.documentPoint,!1),a===null)return null;for(;a!==null&&!a.canSelect();)a=a.containingGroup;return a!==null&&(a.canMove()||a.canCopy())?a:null},Vo.prototype.standardMouseSelect=function(){var a=this.diagram;if(a.allowSelect){var y=a.Ol(a.firstInput.documentPoint,!1);if(y!==null){for(;y!==null&&!y.canSelect();)y=y.containingGroup;this.currentPart=y,this.currentPart===null||this.currentPart.isSelected||(a.R("ChangingSelection",a.selection),y=a.lastInput,(sr?y.meta:y.control)||y.shift||a.clearSelection(!0),this.currentPart.isSelected=!0,a.R("ChangedSelection",a.selection))}}},Vo.prototype.doActivate=function(){var a=this.diagram;this.Bn=null,this.currentPart===null&&this.standardMouseSelect();var y=this.currentPart;y!==null&&(y.canMove()||y.canCopy())&&(a.Fu(!0),Ja=null,this.isActive=!0,this.tl.set(a.position),Wu(this,a.selection),this.Cg.length=0,a.animationManager.Cc(),this.draggedParts=this.computeEffectiveCollection(a.selection,this.dragOptions),this.Sw=this.diagram.layout.isRealtime,this.diagram.layout.isRealtime=!1,a.Ns=!0,a.Gf("temporaryPixelRatio")===!0&&30<a.$w&&xl(a),Rf(a,this.draggedParts),this.Ea("Drag"),this.startPoint=a.firstInput.documentPoint,a.isMouseCaptured=!0,a.allowDragOut&&(this.isDragOutStarted=!0,this.Ym=!1,Ja=this,Vu=this.diagram,this.doSimulatedDragOut()))};function Wu(a,y){if(a.dragsLink){var x=a.diagram;x.allowRelink&&(x.model.Wj()&&y.count===1&&y.first()instanceof ei?(a.draggedLink=y.first(),a.draggedLink.canRelinkFrom()&&a.draggedLink.canRelinkTo()&&a.draggedLink.Ej(),a.Oe=x.toolManager.findTool("Relinking"),a.Oe===null&&(a.Oe=new tl,a.Oe.diagram=x),a.Oe.originalLink=a.draggedLink):(a.draggedLink=null,a.Oe=null))}}Vo.prototype.computeEffectiveCollection=function(a,y){return this.diagram.commandHandler.computeEffectiveCollection(a,y)},Vo.prototype.Pd=function(a){return a===void 0?new qc(ci):this.isGridSnapEnabled?new qc(new Je(Math.round(1e3*a.x)/1e3,Math.round(1e3*a.y)/1e3)):new qc(a.copy())},Vo.prototype.doDeactivate=function(){this.isActive=!1;var a=this.diagram;if(this.diagram.layout.isRealtime=this.Sw,a.Fu(!1),a.ug(),kl(this),Wd(a,this.draggedParts),this.draggedParts=this.currentPart=this.Bn=null,this.Ym=this.isDragOutStarted=!1,0<Ps.count){for(var y=Ps,x=y.length,b=0;b<x;b++){var E=y.M(b);$o(E),_o(E),kl(E),E.diagram.ug()}y.clear()}$o(this),this.tl.h(NaN,NaN),Vu!==null&&(Vu.currentCursor=""),Ja=Vu=null,_o(this),a.isMouseCaptured=!1,a.currentCursor="",a.Ns=!1,this.stopTransaction(),Zh(a,!0)},Vo.prototype.stopTransaction=function(){var a=this.diagram,y=Vr.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y};function kl(a){var y=a.diagram,x=y.skipsUndoManager;y.skipsUndoManager=!0,ml(a,y.lastInput,null),y.skipsUndoManager=x,a.Cg.length=0}function ql(){var a=Ja;_o(a),hs(a);var y=a.diagram;a.tl.w()&&(y.position=a.tl),y.ug()}Vo.prototype.doCancel=function(){_o(this),hs(this);var a=this.diagram;this.tl.w()&&(a.position=this.tl),this.stopTool()},Vo.prototype.doKeyDown=function(){var a=this.diagram,y=a.lastInput;this.isActive&&(y.key==="Esc"?this.doCancel():y.key!==a.previousInput.key&&this.doMouseMove())},Vo.prototype.doKeyUp=function(){this.isActive&&this.doMouseMove()};function _l(a,y){if(a.copiedParts===null){var x=a.diagram;if((!y||!x.isReadOnly&&!x.isModelReadOnly)&&a.draggedParts!==null){var b=x.undoManager;for(b.isEnabled&&b.isInTransaction?b.currentTransaction!==null&&0<b.currentTransaction.changes.count&&(x.undoManager.Kf(),x.Ea("Drag")):hs(a),x.skipsUndoManager=!y,x.partManager.addsToTemporaryLayer=!y,a.startPoint=x.firstInput.documentPoint,y=a.copiesEffectiveCollection?a.draggedParts.Lf():x.selection,y=x.Kj(y,x,!0),x=new an,b=a.draggedParts.iterator;b.next();){var E=b.key;if(E.Zc()&&E.canCopy()){var z=y.I(E);z!==null&&(z.location=E.location,z.Va(),x.add(z,a.Pd(z.location)))}}for(y=y.iterator;y.next();)b=y.value,b instanceof ei&&b.canCopy()&&x.add(b,a.Pd());a.copiedParts=x,Wu(a,x.Lf()),a.draggedLink!==null&&(x=a.draggedLink,y=x.routeBounds,Td(x,a.startPoint.x-(y.x+y.width/2),a.startPoint.y-(y.y+y.height/2))),a.doUpdateCursor(null)}}}function _o(a){var y=a.diagram;if(a.copiedParts!==null){if(y.Is(a.copiedParts.Lf(),!1),a.copiedParts=null,a.draggedParts!==null)for(var x=a.draggedParts.iterator;x.next();)x.key instanceof ei&&(x.value.point=new Je(0,0));a.doUpdateCursor(null)}y.skipsUndoManager=!1,y.partManager.addsToTemporaryLayer=!1,a.startPoint=y.firstInput.documentPoint}function $o(a){if(a.draggedLink!==null){if(a.dragsLink&&a.Oe!==null){var y=a.Oe;y.diagram.remove(y.temporaryFromNode),y.diagram.remove(y.temporaryToNode),a.Oe.originalLink=null}a.draggedLink=null,a.Oe=null}}function Ta(a,y,x){var b=a.diagram,E=a.startPoint,z=Je.alloc();z.assign(b.lastInput.documentPoint),a.moveParts(y,z.re(E),x),Je.free(z),b.Gf("temporaryPixelRatio")===!0&&b.Yh===null&&30<b.$w&&(xl(b),b.hk())}Vo.prototype.moveParts=function(a,y,x){x===void 0&&(x=!1);var b=this.diagram;b!==null&&Gd(b,a,y,this.dragOptions,x)};function hs(a){if(a.draggedParts!==null){for(var y=a.diagram,x=a.draggedParts.iterator;x.next();){var b=x.key;b.Zc()&&(b.location=x.value.point)}for(x=a.draggedParts.iterator;x.next();)if(b=x.key,b instanceof ei&&b.suspendsRouting){var E=x.value.point;a.draggedParts.add(b,a.Pd()),Td(b,-E.x,-E.y)}y.bd()}}function ts(a,y){var x=a.diagram;a.dragsLink&&(a.draggedLink!==null&&(a.draggedLink.fromNode=null,a.draggedLink.toNode=null),el(a,!1));var b=a.findDragOverObject(y),E=x.lastInput;E.targetObject=b,a.doUpdateCursor(b);var z=x.skipsUndoManager,ee=!1;try{if(x.skipsUndoManager=!0,ee=ml(a,E,b),!a.isActive&&Ja===null)return;var re=b!==null?b.part:null;if(re===null||x.handlesDragDropForTopLevelParts&&re.isTopLevel&&!(re instanceof xr)){var oe=x.mouseDragOver;oe!==null&&(oe(E),ee=!0)}if(!a.isActive&&Ja===null||(a.doDragOver(y,b),!a.isActive&&Ja===null))return}finally{x.skipsUndoManager=z,ee&&x.bd()}a.Bn=b,x.isReadOnly||!x.allowMove&&!x.allowCopy||!x.allowHorizontalScroll&&!x.allowVerticalScroll||x.gs(E.viewPoint)}Vo.prototype.findDragOverObject=function(a){var y=this;return Oc(this.diagram,a,null,function(x){return x===null?x=!0:(x=x.part,x=!!(x===null||x instanceof lo||x.layer.isTemporary||y.draggedParts&&y.draggedParts.contains(x)||y.copiedParts&&y.copiedParts.contains(x))),!x})},Vo.prototype.doUpdateCursor=function(a){var y=this.diagram;(a===null||this.Bn!==a)&&(!this.diagram.currentTool.isActive||this.mayCopy()?y.currentCursor=this.copyCursor:this.mayMove()?y.currentCursor=this.moveCursor:this.mayDragOut()&&(y.currentCursor=this.nodropCursor))};function ml(a,y,x){var b=!1,E=a.Cg.length,z=0<E?a.Cg[0]:null;if(x===z)return!1;y.handled=!1;for(var ee=0;ee<E;ee++){var re=a.Cg[ee],oe=re.mouseDragLeave;if(oe!==null&&(oe(y,re,x),b=!0,y.handled))break}if(a.Cg.length=0,!a.isActive&&Ja===null||x===null)return b;for(y.handled=!1,E=x;E!==null;)a.Cg.push(E),E=vl(E);for(E=a.Cg.length,x=0;x<E&&(ee=a.Cg[x],re=ee.mouseDragEnter,re===null||(re(y,ee,z),b=!0,!y.handled));x++);return b}function vl(a){var y=a.panel;return y!==null?y:a instanceof Zi&&!(a instanceof xr)&&(a=a.containingGroup,a!==null&&a.handlesDragDropForMembers)?a:null}function yl(a,y,x){var b=a.Oe;if(b===null)return null;var E=a.diagram.og(y,b.portGravity,function(de){return b.findValidLinkablePort(de,x)});a=Je.alloc();var z=1/0,ee=null;for(E=E.iterator;E.next();){var re=E.value;if(re.part!==null){var oe=re.ga(mr,a);oe=y.Bf(oe),oe<z&&(ee=re,z=oe)}}return Je.free(a),ee}function el(a,y){var x=a.draggedLink;if(x!==null&&!(2>x.pointsCount)){var b=a.diagram;if(!b.isReadOnly){var E=a.Oe;if(E!==null){var z=null,ee=null;x.fromNode===null&&(z=yl(a,x.i(0),!1),z!==null&&(ee=z.part));var re=null,oe=null;x.toNode===null&&(re=yl(a,x.i(x.pointsCount-1),!0),re!==null&&(oe=re.part)),E.isValidLink(ee,z,oe,re)?y?(x.defaultFromPoint=x.i(0),x.defaultToPoint=x.i(x.pointsCount-1),x.suspendsRouting=!1,x.fromNode=ee,z!==null&&(x.fromPortId=z.portId),x.toNode=oe,re!==null&&(x.toPortId=re.portId),x.fromPort!==b.Mx&&b.R("LinkRelinked",x,b.Mx),x.toPort!==b.Nx&&b.R("LinkRelinked",x,b.Nx)):we(E,ee,z,oe,re):we(E,null,null,null,null)}}}}Vo.prototype.doDragOver=function(){};function Ul(a,y){var x=a.diagram;a.dragsLink&&el(a,!0),kl(a);var b=a.findDragOverObject(y),E=x.lastInput;if(E.targetObject=b,b!==null){E.handled=!1;for(var z=b;z!==null;){var ee=z.mouseDrop;if(ee!==null&&(ee(E,z),E.handled))break;dd(a,E,z),z=vl(z)}}else z=x.mouseDrop,z!==null&&z(E);if(a.isActive||Ja!==null){for(E=(a.copiedParts||a.draggedParts).iterator;E.next();)z=E.key,z instanceof Si&&z.linksConnected.each(function(re){re.suspendsRouting=!1});if(a.doDropOnto(y,b),a.isActive||Ja!==null){for(a=tn.alloc(),y=x.selection.iterator;y.next();)b=y.value,b instanceof Si&&mh(x,b,a);tn.free(a)}}}function dd(a,y,x){a=a.diagram,x=x.part,!a.handlesDragDropForTopLevelParts||!x.isTopLevel||x instanceof xr||(x=a.mouseDrop,x!==null&&x(y))}function mh(a,y,x){var b=!1;if(x=y.getAvoidableRect(x),a.viewportBounds.Re(x)&&(b=!0),a=a.Nu(x,function(E){return E.part},function(E){return E instanceof ei},!0,function(E){return E instanceof ei},b),a.count!==0)for(a=a.iterator;a.next();)x=a.value,!x.Td(y)&&x.isAvoiding&&x.bb()}Vo.prototype.doDropOnto=function(){},Vo.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()?(_l(this,!1),Rf(a,this.copiedParts),Ta(this,this.copiedParts,!1),Wd(a,this.copiedParts)):this.mayMove()?(_o(this),Ta(this,this.draggedParts,!0)):this.mayDragOut()?(_l(this,!1),Ta(this,this.copiedParts,!1)):_o(this),ts(this,a.lastInput.documentPoint))}},Vo.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?(_o(this),_l(this,!0),Rf(a,this.copiedParts),Ta(this,this.copiedParts,!1),Wd(a,this.copiedParts),this.copiedParts!==null&&(a.R("ChangingSelection",a.selection),a.clearSelection(!0),this.copiedParts.iteratorKeys.each(function(E){E.isSelected=!0}))):(y=!0,_o(this),this.mayMove()&&(Ta(this,this.draggedParts,!0),ts(this,a.lastInput.documentPoint))),this.Ym=!0,Ul(this,a.lastInput.documentPoint),this.isActive){var b=x?this.copiedParts.Lf():this.draggedParts.Lf();this.copiedParts=null,y&&vh(this),a.Ya(),Wd(a,this.draggedParts),this.transactionResult=x?"Copy":"Move",a.R(x?"SelectionCopied":"SelectionMoved",b)}this.stopTool(),x&&a.R("ChangedSelection",a.selection)}}},Vo.prototype.simulatedMouseMove=function(a,y,x){if(Ja===null)return!1;var b=Ja.diagram;x instanceof en||(x=null);var E=Vu;return x!==E&&(E!==null&&E!==b&&(E.ug(),Ja.isDragOutStarted=!1,E=E.toolManager.findTool("Dragging"),E!==null&&E.doSimulatedDragLeave()),Vu=x,x!==null&&x!==b&&(ql(),E=x.toolManager.findTool("Dragging"),E!==null&&(Ps.contains(E)||Ps.add(E),E.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&&(0<a.targetTouches.length?a=a.targetTouches[0]:0<a.changedTouches.length&&(a=a.changedTouches[0])),y=x.getMouse(a)),x.lastInput.documentPoint=y,x.lastInput.viewPoint=x.op(y),x.lastInput.down=!1,x.lastInput.up=!1,b.doSimulatedDragOver()),!0)},Vo.prototype.simulatedMouseUp=function(a,y,x){if(Ja===null)return!1;var b=Vu,E=Ja.diagram;if(x===null)return Ja.doCancel(),!0;if(x!==b){var z=b.toolManager.findTool("Dragging");if(b!==null&&b!==E&&z!==null)return b.ug(),Ja.isDragOutStarted=!1,z.doSimulatedDragLeave(),!1;Vu=x,b=x.toolManager.findTool("Dragging"),b!==null&&(ql(),Ps.contains(b)||Ps.add(b),b.doSimulatedDragEnter())}return x!==this.diagram?(a!==null?(a.targetTouches!==void 0&&(0<a.targetTouches.length?a=a.targetTouches[0]:0<a.changedTouches.length&&(a=a.changedTouches[0])),y=x.getMouse(a)):y===null&&(y=new Je),x.lastInput.documentPoint=y,x.lastInput.viewPoint=x.op(y),x.lastInput.down=!1,x.lastInput.up=!0,a=x.toolManager.findTool("Dragging"),a!==null&&a.doSimulatedDrop(),a=Ja,a!==null&&(x=a.mayCopy(),a.transactionResult=x?"Copy":"Move",a.stopTool()),!0):!1};function vh(a){if(a.draggedParts!==null)for(var y=a.draggedParts.iterator;y.next();){var x=y.key;x instanceof Si&&(x=x.containingGroup,x===null||x.placeholder===null||a.draggedParts.contains(x)||x.placeholder.v())}}Vo.prototype.mayCopy=function(){if(!this.isCopyEnabled)return!1;var a=this.diagram;if(a.isReadOnly||a.isModelReadOnly||!a.allowInsert||!a.allowCopy||(sr?!a.lastInput.alt:!a.lastInput.control))return!1;for(a=a.selection.iterator;a.next();)if(a.value.canCopy())return!0;return!!(this.draggedLink!==null&&this.dragsLink&&this.draggedLink.canCopy())},Vo.prototype.mayDragOut=function(){if(!this.isCopyEnabled)return!1;var a=this.diagram;if(!a.allowDragOut||!a.allowCopy||a.allowMove)return!1;for(a=a.selection.iterator;a.next();)if(a.value.canCopy())return!0;return!!(this.draggedLink!==null&&this.dragsLink&&this.draggedLink.canCopy())},Vo.prototype.mayMove=function(){var a=this.diagram;if(a.isReadOnly||!a.allowMove)return!1;for(a=a.selection.iterator;a.next();)if(a.value.canMove())return!0;return!!(this.draggedLink!==null&&this.dragsLink&&this.draggedLink.canMove())},Vo.prototype.computeBorder=function(a,y,x){return this.Ym||this.draggedParts===null||this.draggedParts.contains(a)?null:x.assign(y)},Vo.prototype.Az=function(){return Ja},Vo.prototype.mayDragIn=function(){var a=this.diagram;if(!a.allowDrop||a.isReadOnly||a.isModelReadOnly||!a.allowInsert)return!1;var y=Ja;return!(y===null||y.diagram.model.dataFormat!==a.model.dataFormat)},Vo.prototype.doSimulatedDragEnter=function(){if(this.mayDragIn()){var a=this.diagram;a.animationManager.Cc(),gu(a),a.animationManager.Cc(),a=Ja,a!==null&&(a.diagram.Ns=!1),this.doUpdateCursor(null)}},Vo.prototype.doSimulatedDragLeave=function(){var a=Ja;a!==null&&a.doSimulatedDragOut(),this.doCancel()},Vo.prototype.doSimulatedDragOver=function(){var a=this.diagram;a.animationManager.Dm=!0;var y=Ja;if(y!==null&&y.draggedParts!==null){if(!this.mayDragIn())return;yh(this,y.draggedParts.Lf(),!1,a.firstInput),Ta(this,this.copiedParts,!1),ts(this,a.lastInput.documentPoint)}a.animationManager.Dm=!1},Vo.prototype.doSimulatedDrop=function(){var a=this.diagram,y=Ja;if(y!==null){var x=y.diagram;if(y.Ym=!0,_o(this),!this.mayDragIn())return;a.animationManager.Dm=!0,a.R("ChangingSelection",a.selection),this.Ea("Drop"),yh(this,y.draggedParts.Lf(),!0,a.lastInput),Ta(this,this.copiedParts,!1);var b=new Bn;this.copiedParts!==null&&(a.clearSelection(!0),this.copiedParts.iteratorKeys.each(function(E){E.isSelected=!0,b.add(E)})),Ul(this,a.lastInput.documentPoint),a.Ya(),this.copiedParts!==null&&(this.transactionResult="ExternalCopy"),this.copiedParts=null,a.doFocus(),a.R("ExternalObjectsDropped",b,x),this.stopTransaction(),a.R("ChangedSelection",a.selection)}a.animationManager.Dm=!1};function yh(a,y,x,b){if(a.copiedParts===null){var E=a.diagram;if(!E.isReadOnly&&!E.isModelReadOnly){E.skipsUndoManager=!x,E.partManager.addsToTemporaryLayer=!x,a.startPoint=b.documentPoint,x=E.Kj(y,E,!0);var z=tn.alloc();E=b=1/0;for(var ee=-1/0,re=-1/0,oe=y.iterator;oe.next();){var de=oe.value;if(de.isVisible()){var fe=de.location;de=fe.x,fe=fe.y,isNaN(de)||isNaN(fe)||(de<b&&(b=de),fe<E&&(E=fe),de>ee&&(ee=de),fe>re&&(re=fe))}}for(b===1/0?z.h(0,0,0,0):z.h(b,E,ee-b,re-E),b=z.x+z.width/2,E=z.y+z.height/2,tn.free(z),z=a.Fr,ee=new an,re=Je.alloc(),oe=y.iterator;oe.next();)de=oe.value,de instanceof ei&&de.canCopy()&&(fe=x.I(de),fe!==null&&(fe.points=de.points,Td(fe,z.x-b,z.y-E),fe.suspendsRouting=!0,ee.add(fe,a.Pd())));for(y=y.iterator;y.next();)de=y.value,de.Zc()&&de.canCopy()&&(oe=x.I(de),oe!==null&&(de=de.location,re.h(z.x-(b-de.x),z.y-(E-de.y)),oe.location=re,oe.Va(),ee.add(oe,a.Pd(re))));Je.free(re),a.copiedParts=ee,Wu(a,ee.Lf()),a.draggedLink!==null&&(x=a.draggedLink,y=x.routeBounds,Td(x,a.startPoint.x-(y.x+y.width/2),a.startPoint.y-(y.y+y.height/2))),a.doUpdateCursor(null)}}}Vo.prototype.doSimulatedDragOut=function(){var a=this.diagram;a.Ns=!1,this.mayCopy()||this.mayMove()?a.currentCursor="":a.currentCursor=this.nodropCursor,this.Bn=null},Vo.prototype.computeMove=function(a,y,x,b){return x=this.diagram,x!==null?x.computeMove(a,y,this.dragOptions,b):new Je},jt.Object.defineProperties(Vo.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}}}),Vo.prototype.getDraggingSource=Vo.prototype.Az;var Ja=null,Vu=null;Vo.className="DraggingTool",Ps=new Dn,or("draggingTool",function(){return this.findTool("Dragging")},function(a){this.gb("Dragging",a,this.mouseMoveTools)}),jo.prototype.doCancel=function(){Ja!==null&&Ja.doCancel(),Vr.prototype.doCancel.call(this)};function da(){Vr.call(this),this.te=100,this.Ha=!1,this.u="pointer";var a=new ei,y=new Nr;y.isPanelMain=!0,y.stroke="blue",a.add(y),y=new Nr,y.toArrow="Standard",y.fill="blue",y.stroke="blue",a.add(y),a.layerName="Tool",this.Ci=a,a=new Si,y=new Nr,y.portId="",y.figure="Rectangle",y.fill=null,y.stroke="magenta",y.strokeWidth=2,y.desiredSize=ar,a.add(y),a.selectable=!1,a.layerName="Tool",this.Bi=a,this.j=y,a=new Si,y=new Nr,y.portId="",y.figure="Rectangle",y.fill=null,y.stroke="magenta",y.strokeWidth=2,y.desiredSize=ar,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}Wt(da,Vr),da.prototype.doStop=function(){this.diagram.ug(),this.originalToPort=this.originalToNode=this.originalFromPort=this.originalFromNode=this.originalLink=null,this.validPortsCache.clear(),this.targetPort=null},da.prototype.copyPortProperties=function(a,y,x,b,E){if(a!==null&&y!==null&&x!==null&&b!==null){var z=y.Df(),ee=Ln.alloc();ee.width=y.naturalBounds.width*z,ee.height=y.naturalBounds.height*z,b.desiredSize=ee,Ln.free(ee),E?(b.toSpot=y.toSpot,b.toEndSegmentLength=y.toEndSegmentLength):(b.fromSpot=y.fromSpot,b.fromEndSegmentLength=y.fromEndSegmentLength),x.locationSpot=mr,z=Je.alloc(),x.location=y.ga(mr,z),Je.free(z),b.angle=y.li(),this.portTargeted!==null&&this.portTargeted(a,y,x,b,E)}},da.prototype.setNoTargetPortProperties=function(a,y,x){y!==null&&(y.desiredSize=ar,y.fromSpot=Ni,y.toSpot=Ni),a!==null&&(a.location=this.diagram.lastInput.documentPoint),this.portTargeted!==null&&this.portTargeted(null,null,a,y,x)},da.prototype.doMouseDown=function(){this.isActive&&this.doMouseMove()},da.prototype.doMouseMove=function(){if(this.isActive){var a=this.diagram;if(this.targetPort=this.findTargetPort(this.isForwards),this.targetPort!==null&&this.targetPort.part instanceof Si){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)}},da.prototype.findValidLinkablePort=function(a,y){if(a===null)return null;var x=a.part;if(!(x instanceof Si))return null;for(;a!==null;){var b=y?a.toLinkable:a.fromLinkable;if(b===!0&&(a.portId!==null||a instanceof Si)&&(y?this.isValidTo(x,a):this.isValidFrom(x,a)))return a;if(b===!1)break;a=a.panel}return null},da.prototype.findTargetPort=function(a){var y=this.diagram,x=y.lastInput.documentPoint,b=this.portGravity;0>=b&&(b=.1);var E=this,z=y.og(x,b,function(ye){return E.findValidLinkablePort(ye,a)},null,!0);for(b=1/0,y=null,z=z.iterator;z.next();){var ee=z.value,re=ee.part;if(re instanceof Si){var oe=ee.ga(mr,Je.alloc()),de=x.x-oe.x,fe=x.y-oe.y;Je.free(oe),oe=de*de+fe*fe,oe<b&&(de=this.validPortsCache.I(ee),de!==null?de&&(y=ee,b=oe):a&&this.isValidLink(this.originalFromNode,this.originalFromPort,re,ee)||!a&&this.isValidLink(re,ee,this.originalToNode,this.originalToPort)?(this.validPortsCache.add(ee,!0),y=ee,b=oe):this.validPortsCache.add(ee,!1))}}return y!==null&&(x=y.part,x instanceof Si&&(x.layer===null||x.layer.allowLink))?y:null},da.prototype.isValidFrom=function(a,y){if(a===null||y===null)return this.isUnconnectedLinkValid;if(this.diagram.currentTool===this&&(a.layer!==null&&!a.layer.allowLink||y.fromLinkable!==!0))return!1;var x=y.fromMaxLinks;if(1/0>x){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},da.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},da.prototype.isInSameNode=function(a,y){return a===null||y===null?!1:a===y?!0:(a=a.part,y=y.part,a!==null&&a===y)},da.prototype.isLinked=function(a,y){if(a===null||y===null)return!1;var x=a.part;if(!(x instanceof Si))return!1;a=a.portId,a===null&&(a="");var b=y.part;if(!(b instanceof Si))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},da.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 E=a.linkValidation;if(E!==null&&!E(a,y,x,b,this.originalLink))return!1}return x!==null&&(E=x.linkValidation,E!==null&&!E(a,y,x,b,this.originalLink))?!1:(E=this.linkValidation,E!==null?E(a,y,x,b,this.originalLink):!0)},da.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 Bn;return b.add(a),vs(this,x,y,b)};function vs(a,y,x,b){if(y===x)return!0;var E=y.fromNode;return E!==null&&E.isLinkLabel&&(b.add(E),vs(a,E.labeledLink,x,b))?!0:(y=y.toNode,!!(y!==null&&y.isLinkLabel&&(b.add(y),vs(a,y.labeledLink,x,b))))}da.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!==$h){if(b===Qg){if(b=x||this.temporaryLink,b!==null&&!b.isTreeLink)return!0;for(b=y.linksConnected;b.next();){var E=b.value;if(E!==x&&E.isTreeLink&&E.toNode===y)return!1}return!Ns(this,a,y,x,!0)}if(b===Jg){if(b=x||this.temporaryLink,b!==null&&!b.isTreeLink)return!0;for(b=a.linksConnected;b.next();)if(E=b.value,E!==x&&E.isTreeLink&&E.fromNode===a)return!1;return!Ns(this,a,y,x,!0)}if(b===Kg)return a===y?a=!0:(b=new Bn,b.add(y),a=Cs(this,b,a,y,x)),!a;if(b===Zg)return!Ns(this,a,y,x,!1);if(b===Xg)return a===y?a=!0:(b=new Bn,b.add(y),a=sc(this,b,a,y,x)),!a}return!0};function Ns(a,y,x,b,E){if(y===x)return!0;if(y===null||x===null)return!1;for(var z=y.linksConnected;z.next();){var ee=z.value;if(ee!==b&&(!E||ee.isTreeLink)&&ee.toNode===y&&(ee=ee.fromNode,ee!==y&&Ns(a,ee,x,b,E)))return!0}return!1}function Cs(a,y,x,b,E){if(x===b)return!0;if(x===null||b===null||y.contains(x))return!1;y.add(x);for(var z=x.linksConnected;z.next();){var ee=z.value;if(ee!==E&&ee.toNode===x&&(ee=ee.fromNode,ee!==x&&Cs(a,y,ee,b,E)))return!0}return!1}function sc(a,y,x,b,E){if(x===b)return!0;if(x===null||b===null||y.contains(x))return!1;y.add(x);for(var z=x.linksConnected;z.next();){var ee=z.value;if(ee!==E){var re=ee.fromNode;if(ee=ee.toNode,re=re===x?ee:re,re!==x&&sc(a,y,re,b,E))return!0}}return!1}jt.Object.defineProperties(da.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}}}),da.className="LinkingBaseTool";function Rs(){da.call(this),this.name="Linking",this.V={},this.F=null,this.K=Yu,this.Xd=null}Wt(Rs,da),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 Si)))return null;var x=this.direction;if(x===Yu||x===hd){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===Yu||x===fd)&&(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 Si&&(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 Si&&(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(){da.prototype.doStop.call(this),this.startObject=null},Rs.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram,y=this.transactionResult=null,x=null,b=null,E=null,z=null;try{var ee=this.targetPort=this.findTargetPort(this.isForwards);if(ee!==null){var re=ee.part;re instanceof Si&&(this.isForwards?(this.originalFromNode!==null&&(y=this.originalFromNode,x=this.originalFromPort),b=re,E=ee):(y=re,x=ee,this.originalToNode!==null&&(b=this.originalToNode,E=this.originalToPort)))}else this.isForwards?this.originalFromNode!==null&&this.isUnconnectedLinkValid&&(y=this.originalFromNode,x=this.originalFromPort):this.originalToNode!==null&&this.isUnconnectedLinkValid&&(b=this.originalToNode,E=this.originalToPort);y!==null||b!==null?(z=this.insertLink(y,x,b,E),z!==null?(ee===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,b,E)):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 ei)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,b){return this.diagram.partManager.insertLink(a,y,x,b)},Rs.prototype.doNoLink=function(){},jt.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 Yu=new mn(Rs,"Either",0),hd=new mn(Rs,"ForwardsOnly",0),fd=new mn(Rs,"BackwardsOnly",0);Rs.className="LinkingTool",Rs.Either=Yu,Rs.ForwardsOnly=hd,Rs.BackwardsOnly=fd;function tl(){da.call(this),this.name="Relinking";var a=new Nr;a.figure="Diamond",a.desiredSize=Lr,a.fill="lightblue",a.stroke="dodgerblue",a.cursor=this.linkingCursor,a.segmentIndex=0,this.V=a,a=new Nr,a.figure="Diamond",a.desiredSize=Lr,a.fill="lightblue",a.stroke="dodgerblue",a.cursor=this.linkingCursor,a.segmentIndex=-1,this.Xd=a,this.F=null,this.Ew=new tn}Wt(tl,da),tl.prototype.updateAdornments=function(a){if(a!==null&&a instanceof ei){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)}},tl.prototype.makeAdornment=function(a,y){var x=new lo;return x.type=Kn.Link,y=y?this.toHandleArchetype:this.fromHandleArchetype,y!==null&&x.add(y.copy()),x.adornedObject=a,x},tl.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},tl.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 lo&&x.adornedPart instanceof ei))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&&0<this.originalLink.pointsCount&&(this.originalLink.fromNode===null&&(this.temporaryFromPort!==null&&(this.temporaryFromPort.desiredSize=Oi),this.temporaryFromNode!==null&&(this.temporaryFromNode.location=this.originalLink.i(0))),this.originalLink.toNode===null&&(this.temporaryToPort!==null&&(this.temporaryToPort.desiredSize=Oi),this.temporaryToNode!==null&&(this.temporaryToNode.location=this.originalLink.i(this.originalLink.pointsCount-1)))),this.copyPortProperties(this.originalFromNode,this.originalFromPort,this.temporaryFromNode,this.temporaryFromPort,!1),this.copyPortProperties(this.originalToNode,this.originalToPort,this.temporaryToNode,this.temporaryToPort,!0),a.add(this.temporaryFromNode),a.add(this.temporaryToNode),this.temporaryLink!==null&&(this.temporaryFromNode!==null&&(this.temporaryLink.fromNode=this.temporaryFromNode),this.temporaryToNode!==null&&(this.temporaryLink.toNode=this.temporaryToNode),this.copyLinkProperties(this.originalLink,this.temporaryLink),this.temporaryLink.bb(),a.add(this.temporaryLink)),this.isActive=!0},tl.prototype.copyLinkProperties=function(a,y){if(a!==null&&y!==null){y.adjusting=a.adjusting,y.corner=a.corner;var x=a.curve;(x===ig||x===Ad)&&(x=ll),y.curve=x,y.curviness=a.curviness,y.isTreeLink=a.isTreeLink,y.points=a.points,y.routing=a.routing,y.smoothness=a.smoothness,y.fromSpot=a.fromSpot,y.fromEndSegmentLength=a.fromEndSegmentLength,y.fromShortLength=a.fromShortLength,y.toSpot=a.toSpot,y.toEndSegmentLength=a.toEndSegmentLength,y.toShortLength=a.toShortLength}},tl.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()},tl.prototype.doStop=function(){da.prototype.doStop.call(this),this.handle=null},tl.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram;this.transactionResult=null;var y=this.originalFromNode,x=this.originalFromPort,b=this.originalToNode,E=this.originalToPort,z=this.originalLink;try{if(this.targetPort=this.findTargetPort(this.isForwards),this.targetPort!==null){var ee=this.targetPort.part;ee instanceof Si&&(this.isForwards?(b=ee,E=this.targetPort):(y=ee,x=this.targetPort))}else this.isUnconnectedLinkValid?this.isForwards?E=b=null:x=y=null:z=null;z!==null?(this.reconnectLink(z,this.isForwards?b:y,this.isForwards?E:x,this.isForwards),this.targetPort===null&&(this.isForwards?z.defaultToPoint=a.lastInput.documentPoint:z.defaultFromPoint=a.lastInput.documentPoint,z.bb()),this.transactionResult=this.name,a.R("LinkRelinked",z,this.isForwards?this.originalToPort:this.originalFromPort)):this.doNoRelink(this.originalLink,this.isForwards),this.originalLink.Xo(this.Ew)}finally{this.stopTool()}}},tl.prototype.reconnectLink=function(a,y,x,b){return x=x!==null&&x.portId!==null?x.portId:"",b?(a.toNode=y,a.toPortId=x):(a.fromNode=y,a.fromPortId=x),!0},tl.prototype.doNoRelink=function(){};function we(a,y,x,b,E){y!==null?(a.copyPortProperties(y,x,a.temporaryFromNode,a.temporaryFromPort,!1),a.diagram.add(a.temporaryFromNode)):a.diagram.remove(a.temporaryFromNode),b!==null?(a.copyPortProperties(b,E,a.temporaryToNode,a.temporaryToPort,!0),a.diagram.add(a.temporaryToNode)):a.diagram.remove(a.temporaryToNode)}jt.Object.defineProperties(tl.prototype,{fromHandleArchetype:{get:function(){return this.V},set:function(a){this.V=a}},toHandleArchetype:{get:function(){return this.Xd},set:function(a){this.Xd=a}},handle:{get:function(){return this.F},set:function(a){if(a!==null&&!(a.part instanceof lo))throw Error("new handle is not in an Adornment: "+a);this.F=a}}}),tl.className="RelinkingTool",or("linkingTool",function(){return this.findTool("Linking")},function(a){this.gb("Linking",a,this.mouseMoveTools)}),or("relinkingTool",function(){return this.findTool("Relinking")},function(a){this.gb("Relinking",a,this.mouseDownTools)});function He(){Vr.call(this),this.name="LinkReshaping";var a=new Nr;a.figure="Rectangle",a.desiredSize=_r,a.fill="lightblue",a.stroke="dodgerblue",this.o=a,a=new Nr,a.figure="Diamond",a.desiredSize=Lr,a.fill="lightblue",a.stroke="dodgerblue",a.cursor="move",this.u=a,this.F=3,this.Ts=this.j=null,this.Fw=new Je,this.Yq=new Dn}Wt(He,Vr),He.prototype.Ru=function(a){return a&&a.reshapingBehavior.value!==0?a.reshapingBehavior:rt},He.prototype.om=function(a,y){a.reshapingBehavior=y},He.prototype.updateAdornments=function(a){if(a!==null&&a instanceof ei){var y=null;if(a.isSelected&&!this.diagram.isReadOnly){var x=a.path;x!==null&&a.canReshape()&&a.actualBounds.w()&&a.isVisible()&&x.actualBounds.w()&&x.Ed()&&(y=a.Pj(this.name),y===null||y.Aw!==a.pointsCount||y.Uw!==a.resegmentable)&&(y=this.makeAdornment(x),y!==null&&(y.Aw=a.pointsCount,y.Uw=a.resegmentable,a.bh(this.name,y)))}y===null&&a.Jf(this.name)}},He.prototype.makeAdornment=function(a){var y=a.part,x=y.pointsCount,b=y.isOrthogonal,E=null;if(y.points!==null&&1<x){E=new lo,E.type=Kn.Link,x=y.firstPickIndex;var z=y.lastPickIndex,ee=b?1:0;if(y.resegmentable&&y.computeCurve()!==au)for(var re=x+ee;re<z-ee;re++){var oe=this.makeResegmentHandle(a,re);oe!==null&&(oe.segmentIndex=re,oe.segmentFraction=.5,oe.fromMaxLinks=999,E.add(oe))}for(ee=x+1;ee<z;ee++)if(re=this.makeHandle(a,ee),re!==null){if(re.segmentIndex=ee,ee!==x)if(ee===x+1&&b){oe=y.i(x);var de=y.i(x+1);Bt.B(oe.x,de.x)&&Bt.B(oe.y,de.y)&&(de=y.i(x-1)),Bt.B(oe.x,de.x)?(this.om(re,wt),re.cursor="n-resize"):Bt.B(oe.y,de.y)&&(this.om(re,xt),re.cursor="w-resize")}else ee===z-1&&b?(oe=y.i(z-1),de=y.i(z),Bt.B(oe.x,de.x)&&Bt.B(oe.y,de.y)&&(oe=y.i(z+1)),Bt.B(oe.x,de.x)?(this.om(re,wt),re.cursor="n-resize"):Bt.B(oe.y,de.y)&&(this.om(re,xt),re.cursor="w-resize")):ee!==z&&(this.om(re,Ft),re.cursor="move");E.add(re)}E.adornedObject=a}return E},He.prototype.makeHandle=function(){var a=this.handleArchetype;return a===null?null:a.copy()},He.prototype.makeResegmentHandle=function(){var a=this.midHandleArchetype;return a===null?null:a.copy()},He.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;return!a.isReadOnly&&a.allowReshape&&a.lastInput.left?this.findToolHandleAt(a.firstInput.documentPoint,this.name)!==null:!1},He.prototype.doActivate=function(){var a=this.diagram;if(this.handle===null&&(this.handle=this.findToolHandleAt(a.firstInput.documentPoint,this.name)),this.handle!==null){var y=this.handle.part.adornedPart;if(y instanceof ei){if(this.Ts=y,a.isMouseCaptured=!0,this.Ea(this.name),y.resegmentable&&this.handle.fromMaxLinks===999){var x=y.points.copy(),b=this.getResegmentingPoint();if(x.Gb(this.handle.segmentIndex+1,b),y.isOrthogonal&&x.Gb(this.handle.segmentIndex+1,b),y.points=x,y.Wb(),y.updateAdornments(),this.handle=this.findToolHandleAt(a.firstInput.documentPoint,this.name),this.handle===null){this.doDeactivate();return}}this.Fw=y.i(this.handle.segmentIndex),this.Yq=y.points.copy(),this.isActive=!0}}},He.prototype.doDeactivate=function(){this.stopTransaction(),this.Ts=this.handle=null,this.isActive=this.diagram.isMouseCaptured=!1},He.prototype.stopTransaction=function(){var a=this.diagram,y=Vr.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},He.prototype.doCancel=function(){var a=this.adornedLink;a!==null&&(a.points=this.Yq),this.stopTool()},He.prototype.getResegmentingPoint=function(){return this.handle.ga(mr)},He.prototype.doMouseMove=function(){var a=this.diagram;this.isActive&&(a=this.computeReshape(a.lastInput.documentPoint),this.reshape(a))},He.prototype.doMouseUp=function(){var a=this.diagram;if(this.isActive){var y=this.computeReshape(a.lastInput.documentPoint);if(this.reshape(y),y=this.adornedLink,y!==null&&y.resegmentable){var x=this.handle.segmentIndex,b=y.i(x-1),E=y.i(x),z=y.i(x+1);if(y.isOrthogonal){if(x>y.firstPickIndex+1&&x<y.lastPickIndex-1){var ee=y.i(x-2);if(Math.abs(b.x-E.x)<this.resegmentingDistance&&Math.abs(b.y-E.y)<this.resegmentingDistance&&(Ze(this,ee,b,E,z,!0)||Ze(this,ee,b,E,z,!1))){var re=y.points.copy();Ze(this,ee,b,E,z,!0)?(re.cd(x-2,new Je(ee.x,(z.y+ee.y)/2)),re.cd(x+1,new Je(z.x,(z.y+ee.y)/2))):(re.cd(x-2,new Je((z.x+ee.x)/2,ee.y)),re.cd(x+1,new Je((z.x+ee.x)/2,z.y))),re.mb(x),re.mb(x-1),y.points=re,y.Wb()}else ee=y.i(x+2),Math.abs(E.x-z.x)<this.resegmentingDistance&&Math.abs(E.y-z.y)<this.resegmentingDistance&&(Ze(this,b,E,z,ee,!0)||Ze(this,b,E,z,ee,!1))&&(re=y.points.copy(),Ze(this,b,E,z,ee,!0)?(re.cd(x-1,new Je(b.x,(b.y+ee.y)/2)),re.cd(x+2,new Je(ee.x,(b.y+ee.y)/2))):(re.cd(x-1,new Je((b.x+ee.x)/2,b.y)),re.cd(x+2,new Je((b.x+ee.x)/2,ee.y))),re.mb(x+1),re.mb(x),y.points=re,y.Wb())}}else ee=Je.alloc(),Bt.qh(b.x,b.y,z.x,z.y,E.x,E.y,ee)&&ee.Bf(E)<this.resegmentingDistance*this.resegmentingDistance&&(b=y.points.copy(),b.mb(x),y.points=b,y.Wb()),Je.free(ee)}a.Ya(),this.transactionResult=this.name,a.R("LinkReshaped",this.adornedLink,this.Yq)}this.stopTool()};function Ze(a,y,x,b,E,z){return z?Math.abs(y.y-x.y)<a.resegmentingDistance&&Math.abs(x.y-b.y)<a.resegmentingDistance&&Math.abs(b.y-E.y)<a.resegmentingDistance:Math.abs(y.x-x.x)<a.resegmentingDistance&&Math.abs(x.x-b.x)<a.resegmentingDistance&&Math.abs(b.x-E.x)<a.resegmentingDistance}He.prototype.reshape=function(a){var y=this.adornedLink;y.uh();var x=this.handle.segmentIndex,b=this.Ru(this.handle);if(y.isOrthogonal)if(x===y.firstPickIndex+1)x=y.firstPickIndex+1,b===wt?(y.L(x,y.i(x-1).x,a.y),y.L(x+1,y.i(x+2).x,a.y)):b===xt&&(y.L(x,a.x,y.i(x-1).y),y.L(x+1,a.x,y.i(x+2).y));else if(x===y.lastPickIndex-1)x=y.lastPickIndex-1,b===wt?(y.L(x-1,y.i(x-2).x,a.y),y.L(x,y.i(x+1).x,a.y)):b===xt&&(y.L(x-1,a.x,y.i(x-2).y),y.L(x,a.x,y.i(x+1).y));else{b=x;var E=y.i(b),z=y.i(b-1),ee=y.i(b+1);Bt.B(z.x,E.x)&&Bt.B(E.y,ee.y)?(Bt.B(z.x,y.i(b-2).x)&&!Bt.B(z.y,y.i(b-2).y)?(y.m(b,a.x,z.y),x++,b++):y.L(b-1,a.x,z.y),Bt.B(ee.y,y.i(b+2).y)&&!Bt.B(ee.x,y.i(b+2).x)?y.m(b+1,ee.x,a.y):y.L(b+1,ee.x,a.y)):Bt.B(z.y,E.y)&&Bt.B(E.x,ee.x)?(Bt.B(z.y,y.i(b-2).y)&&!Bt.B(z.x,y.i(b-2).x)?(y.m(b,z.x,a.y),x++,b++):y.L(b-1,z.x,a.y),Bt.B(ee.x,y.i(b+2).x)&&!Bt.B(ee.y,y.i(b+2).y)?y.m(b+1,a.x,ee.y):y.L(b+1,a.x,ee.y)):Bt.B(z.x,E.x)&&Bt.B(E.x,ee.x)?(Bt.B(z.x,y.i(b-2).x)&&!Bt.B(z.y,y.i(b-2).y)?(y.m(b,a.x,z.y),x++,b++):y.L(b-1,a.x,z.y),Bt.B(ee.x,y.i(b+2).x)&&!Bt.B(ee.y,y.i(b+2).y)?y.m(b+1,a.x,ee.y):y.L(b+1,a.x,ee.y)):Bt.B(z.y,E.y)&&Bt.B(E.y,ee.y)&&(Bt.B(z.y,y.i(b-2).y)&&!Bt.B(z.x,y.i(b-2).x)?(y.m(b,z.x,a.y),x++,b++):y.L(b-1,z.x,a.y),Bt.B(ee.y,y.i(b+2).y)&&!Bt.B(ee.x,y.i(b+2).x)?y.m(b+1,ee.x,a.y):y.L(b+1,ee.x,a.y)),y.L(x,a.x,a.y)}else y.L(x,a.x,a.y),b=y.fromNode,E=y.fromPort,b!==null&&(z=b.findVisibleNode(),z!==null&&z!==b&&(b=z,E=b.port)),x===1&&y.computeSpot(!0,E).Mc()&&(z=E.ga(mr,Je.alloc()),b=y.getLinkPointFromPoint(b,E,z,a,!0,Je.alloc()),y.L(0,b.x,b.y),Je.free(z),Je.free(b)),b=y.toNode,E=y.toPort,b!==null&&(z=b.findVisibleNode(),z!==null&&z!==b&&(b=z,E=b.port)),x===y.pointsCount-2&&y.computeSpot(!1,E).Mc()&&(x=E.ga(mr,Je.alloc()),a=y.getLinkPointFromPoint(b,E,x,a,!1,Je.alloc()),y.L(y.pointsCount-1,a.x,a.y),Je.free(x),Je.free(a));y.zf()},He.prototype.computeReshape=function(a){var y=this.adornedLink,x=this.handle.segmentIndex;switch(this.Ru(this.handle)){case Ft:return a;case wt:return new Je(y.i(x).x,a.y);case xt:return new Je(a.x,y.i(x).y);default:case rt:return y.i(x)}},jt.Object.defineProperties(He.prototype,{handleArchetype:{get:function(){return this.o},set:function(a){this.o=a}},midHandleArchetype:{get:function(){return this.u},set:function(a){this.u=a}},handle:{get:function(){return this.j},set:function(a){if(a!==null&&!(a.part instanceof lo))throw Error("new handle is not in an Adornment: "+a);this.j=a}},adornedLink:{get:function(){return this.Ts}},resegmentingDistance:{get:function(){return this.F},set:function(a){this.F=a}},originalPoint:{get:function(){return this.Fw}},originalPoints:{get:function(){return this.Yq}}}),He.prototype.setReshapingBehavior=He.prototype.om,He.prototype.getReshapingBehavior=He.prototype.Ru;var rt=new mn(He,"None",0),xt=new mn(He,"Horizontal",1),wt=new mn(He,"Vertical",2),Ft=new mn(He,"All",3);He.className="LinkReshapingTool",He.None=rt,He.Horizontal=xt,He.Vertical=wt,He.All=Ft,or("linkReshapingTool",function(){return this.findTool("LinkReshaping")},function(a){this.gb("LinkReshaping",a,this.mouseDownTools)});function Xt(){Vr.call(this),this.name="Resizing",this.o=new Ln(1,1).freeze(),this.j=new Ln(9999,9999).freeze(),this.yg=new Ln(NaN,NaN).freeze(),this.V=!1,this.ia=!0,this.ue=null;var a=new Nr;a.alignmentFocus=mr,a.figure="Rectangle",a.desiredSize=_r,a.fill="lightblue",a.stroke="dodgerblue",a.strokeWidth=1,a.cursor="pointer",this.F=a,this.u=null,this.Xq=new Je,this.Dw=new Ln,this.Tn=new Je,this.rt=new Ln(0,0),this.qt=new Ln(1/0,1/0),this.pt=new Ln(1,1)}Wt(Xt,Vr),Xt.prototype.updateAdornments=function(a){if(!(a===null||a instanceof ei)){if(a.isSelected&&!this.diagram.isReadOnly){var y=a.resizeObject,x=a.Pj(this.name);if(y!==null&&a.canResize()&&a.actualBounds.w()&&a.isVisible()&&y.actualBounds.w()&&y.Ed()&&((x===null||x.adornedObject!==y)&&(x=this.makeAdornment(y)),x!==null)){y=y.li(),Qd(a)&&this.updateResizeHandles(x,y),a.bh(this.name,x);return}}a.Jf(this.name)}},Xt.prototype.makeAdornment=function(a){var y=a.part.resizeAdornmentTemplate;if(y===null){y=new lo,y.type=Kn.Spot,y.locationSpot=mr;var x=new sl;x.isPanelMain=!0,y.add(x),y.add(this.makeHandle(a,Qi)),y.add(this.makeHandle(a,co)),y.add(this.makeHandle(a,ho)),y.add(this.makeHandle(a,Jo)),y.add(this.makeHandle(a,ms)),y.add(this.makeHandle(a,Wa)),y.add(this.makeHandle(a,Xa)),y.add(this.makeHandle(a,ws))}else if(Ru(y),y=y.copy(),y===null)return null;return y.adornedObject=a,y},Xt.prototype.makeHandle=function(a,y){return a=this.handleArchetype,a===null?null:(a=a.copy(),a.alignment=y,a)},Xt.prototype.updateResizeHandles=function(a,y){if(a!==null){if(!a.alignment.Xb()&&(a.cursor==="pointer"||0<a.cursor.indexOf("resize")))e:{var x=a.alignment;if(x.Mc()&&(x=mr),0>=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 e;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 Kn)for(a=a.elements;a.next();)this.updateResizeHandles(a.value,y)}},Xt.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},Xt.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))},Xt.prototype.doDeactivate=function(){var a=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.isActive=a.isMouseCaptured=!1},Xt.prototype.stopTransaction=function(){var a=this.diagram,y=Vr.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},Xt.prototype.doCancel=function(){this.adornedObject!==null&&(this.adornedObject.desiredSize=this.originalDesiredSize,this.adornedObject.part.location=this.originalLocation),this.stopTool()},Xt.prototype.doMouseMove=function(){var a=this.diagram;if(this.isActive){var y=this.rt,x=this.qt,b=this.pt,E=this.adornedObject.qs(a.lastInput.documentPoint,Je.alloc()),z=this.computeReshape();y=this.computeResize(E,this.handle.alignment,y,x,b,z),this.resize(y),a.bd(),Je.free(E)}},Xt.prototype.doMouseUp=function(){var a=this.diagram;if(this.isActive){var y=this.rt,x=this.qt,b=this.pt,E=this.adornedObject.qs(a.lastInput.documentPoint,Je.alloc()),z=this.computeReshape();y=this.computeResize(E,this.handle.alignment,y,x,b,z),this.resize(y),Je.free(E),a.Ya(),this.transactionResult=this.name,a.R("PartResized",this.adornedObject,this.originalDesiredSize)}this.stopTool()},Xt.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 xr){var b=new Dn;if(b.add(a),!this.dragsMembers&&a.placeholder===null){var E=new ae;E.dragsMembers=!1}y.moveParts(b,this.oppositePoint.copy().re(x),!0,E)}else a.location=a.location.copy().re(x).add(this.oppositePoint);y.bd()}},Xt.prototype.computeResize=function(a,y,x,b,E,z){y.Mc()&&(y=mr);var ee=this.adornedObject.naturalBounds,re=ee.x,oe=ee.y,de=ee.x+ee.width,fe=ee.y+ee.height,ye=1;if(!z){ye=ee.width;var Ce=ee.height;0>=ye&&(ye=1),0>=Ce&&(Ce=1),ye=Ce/ye}return Ce=Je.alloc(),Bt.No(a.x,a.y,re,oe,E.width,E.height,Ce),a=ee.copy(),0>=y.x?0>=y.y?(a.x=Math.max(Ce.x,de-b.width),a.x=Math.min(a.x,de-x.width),a.width=Math.max(de-a.x,x.width),a.y=Math.max(Ce.y,fe-b.height),a.y=Math.min(a.y,fe-x.height),a.height=Math.max(fe-a.y,x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(ye*a.width,b.height),x.height),a.width=a.height/ye):(a.width=Math.max(Math.min(a.height/ye,b.width),x.width),a.height=ye*a.width),a.x=de-a.width,a.y=fe-a.height)):1<=y.y?(a.x=Math.max(Ce.x,de-b.width),a.x=Math.min(a.x,de-x.width),a.width=Math.max(de-a.x,x.width),a.height=Math.max(Math.min(Ce.y-oe,b.height),x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(ye*a.width,b.height),x.height),a.width=a.height/ye):(a.width=Math.max(Math.min(a.height/ye,b.width),x.width),a.height=ye*a.width),a.x=de-a.width)):(a.x=Math.max(Ce.x,de-b.width),a.x=Math.min(a.x,de-x.width),a.width=de-a.x,z||(a.height=Math.max(Math.min(ye*a.width,b.height),x.height),a.width=a.height/ye,a.y=oe+.5*(fe-oe-a.height))):1<=y.x?0>=y.y?(a.width=Math.max(Math.min(Ce.x-re,b.width),x.width),a.y=Math.max(Ce.y,fe-b.height),a.y=Math.min(a.y,fe-x.height),a.height=Math.max(fe-a.y,x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(ye*a.width,b.height),x.height),a.width=a.height/ye):(a.width=Math.max(Math.min(a.height/ye,b.width),x.width),a.height=ye*a.width),a.y=fe-a.height)):1<=y.y?(a.width=Math.max(Math.min(Ce.x-re,b.width),x.width),a.height=Math.max(Math.min(Ce.y-oe,b.height),x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(ye*a.width,b.height),x.height),a.width=a.height/ye):(a.width=Math.max(Math.min(a.height/ye,b.width),x.width),a.height=ye*a.width))):(a.width=Math.max(Math.min(Ce.x-re,b.width),x.width),z||(a.height=Math.max(Math.min(ye*a.width,b.height),x.height),a.width=a.height/ye,a.y=oe+.5*(fe-oe-a.height))):0>=y.y?(a.y=Math.max(Ce.y,fe-b.height),a.y=Math.min(a.y,fe-x.height),a.height=fe-a.y,z||(a.width=Math.max(Math.min(a.height/ye,b.width),x.width),a.height=ye*a.width,a.x=re+.5*(de-re-a.width))):1<=y.y&&(a.height=Math.max(Math.min(Ce.y-oe,b.height),x.height),z||(a.width=Math.max(Math.min(a.height/ye,b.width),x.width),a.height=ye*a.width,a.x=re+.5*(de-re-a.width))),Je.free(Ce),a},Xt.prototype.computeReshape=function(){var a=Mn;return this.adornedObject instanceof Nr&&(a=Pv(this.adornedObject)),!(a===Ui||this.diagram.lastInput.shift)},Xt.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},Xt.prototype.computeMaxSize=function(){var a=this.adornedObject.maxSize.copy(),y=this.maxSize;return!isNaN(y.width)&&y.width<a.width&&(a.width=y.width),!isNaN(y.height)&&y.height<a.height&&(a.height=y.height),a},Xt.prototype.computeCellSize=function(){var a=new Ln(NaN,NaN),y=this.adornedObject.part;return y!==null&&(y=y.resizeCellSize,!isNaN(y.width)&&0<y.width&&(a.width=y.width),!isNaN(y.height)&&0<y.height&&(a.height=y.height)),y=this.cellSize,isNaN(a.width)&&!isNaN(y.width)&&0<y.width&&(a.width=y.width),isNaN(a.height)&&!isNaN(y.height)&&0<y.height&&(a.height=y.height),y=this.diagram,(isNaN(a.width)||isNaN(a.height))&&y&&(y=y.grid,y!==null&&y.visible&&this.isGridSnapEnabled&&(y=y.gridCellSize,isNaN(a.width)&&!isNaN(y.width)&&0<y.width&&(a.width=y.width),isNaN(a.height)&&!isNaN(y.height)&&0<y.height&&(a.height=y.height))),(isNaN(a.width)||a.width===0||a.width===1/0)&&(a.width=1),(isNaN(a.height)||a.height===0||a.height===1/0)&&(a.height=1),a},jt.Object.defineProperties(Xt.prototype,{handleArchetype:{get:function(){return this.F},set:function(a){this.F=a}},handle:{get:function(){return this.u},set:function(a){if(a!==null&&!(a.part instanceof lo))throw Error("new handle is not in an Adornment: "+a);this.u=a}},adornedObject:{get:function(){return this.ue},set:function(a){if(a!==null&&a.part instanceof lo)throw Error("new handle must not be in an Adornment: "+a);this.ue=a}},minSize:{get:function(){return this.o},set:function(a){if(!this.o.D(a)){var y=a.width;isNaN(y)&&(y=0),a=a.height,isNaN(a)&&(a=0),this.o.h(y,a)}}},maxSize:{get:function(){return this.j},set:function(a){if(!this.j.D(a)){var y=a.width;isNaN(y)&&(y=1/0),a=a.height,isNaN(a)&&(a=1/0),this.j.h(y,a)}}},cellSize:{get:function(){return this.yg},set:function(a){this.yg.D(a)||this.yg.assign(a)}},isGridSnapEnabled:{get:function(){return this.V},set:function(a){this.V=a}},dragsMembers:{get:function(){return this.ia},set:function(a){this.ia=a}},oppositePoint:{get:function(){return this.Xq},set:function(a){this.Xq.D(a)||this.Xq.assign(a)}},originalDesiredSize:{get:function(){return this.Dw}},originalLocation:{get:function(){return this.Tn}}}),Xt.className="ResizingTool",or("resizingTool",function(){return this.findTool("Resizing")},function(a){this.gb("Resizing",a,this.mouseDownTools)});function Un(){Vr.call(this),this.name="Rotating",this.ia=45,this.V=2,this.Tn=new Je,this.ue=null;var a=new Nr;a.figure="Ellipse",a.desiredSize=Lr,a.fill="lightblue",a.stroke="dodgerblue",a.strokeWidth=1,a.cursor="pointer",this.o=a,this.j=null,this.Cw=0,this.kr=new Je(NaN,NaN),this.u=0,this.F=50}Wt(Un,Vr),Un.prototype.updateAdornments=function(a){if(a!==null){if(a.ph()){var y=a.rotateObject;if(y===a||y===a.path||y.isPanelMain)return}if(a.isSelected&&!this.diagram.isReadOnly&&(y=a.rotateObject,y!==null&&a.canRotate()&&a.actualBounds.w()&&a.isVisible()&&y.actualBounds.w()&&y.Ed())){var x=a.Pj(this.name);if((x===null||x.adornedObject!==y)&&(x=this.makeAdornment(y)),x!==null){x.angle=y.li(),x.placeholder===null&&(x.location=this.computeAdornmentLocation(y)),a.bh(this.name,x);return}}a.Jf(this.name)}},Un.prototype.makeAdornment=function(a){var y=a.part.rotateAdornmentTemplate;if(y===null){y=new lo,y.type=Kn.Position,y.locationSpot=mr;var x=this.handleArchetype;x!==null&&y.add(x.copy())}else if(Ru(y),y=y.copy(),y===null)return null;return y.adornedObject=a,y},Un.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;return!a.isReadOnly&&a.allowRotate&&a.lastInput.left?this.findToolHandleAt(a.firstInput.documentPoint,this.name)!==null:!1},Un.prototype.doActivate=function(){var a=this.diagram;if(this.adornedObject===null){if(this.handle===null&&(this.handle=this.findToolHandleAt(a.firstInput.documentPoint,this.name)),this.handle===null)return;this.adornedObject=this.handle.part.adornedObject}this.adornedObject!==null&&(a.isMouseCaptured=!0,a.delaysLayout=!0,this.Ea(this.name),this.Cw=this.adornedObject.angle,this.kr=this.computeRotationPoint(this.adornedObject),this.Tn=this.adornedObject.part.location.copy(),this.isActive=!0)},Un.prototype.computeRotationPoint=function(a){var y=a.part,x=y.locationObject;return y.rotationSpot.sb()?a.ga(y.rotationSpot):a===y||a===x?x.ga(y.locationSpot):a.ga(mr)},Un.prototype.computeAdornmentLocation=function(a){var y=this.rotationPoint;y.w()||(y=this.computeRotationPoint(a)),y=a.qs(y);var x=this.handleAngle;0>x?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)},Un.prototype.doDeactivate=function(){var a=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.kr=new Je(NaN,NaN),this.isActive=a.isMouseCaptured=!1},Un.prototype.stopTransaction=function(){var a=this.diagram,y=Vr.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},Un.prototype.doCancel=function(){this.diagram.delaysLayout=!1,this.rotate(this.originalAngle),this.stopTool()},Un.prototype.doMouseMove=function(){var a=this.diagram;this.isActive&&(a=this.computeRotate(a.lastInput.documentPoint),this.rotate(a))},Un.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()},Un.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()}},Un.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&&0<y&&0<x&&(a%y<x?a=Math.floor(a/y)*y:a%y>y-x&&(a=(Math.floor(a/y)+1)*y)),360<=a?a-=360:0>a&&(a+=360),a},jt.Object.defineProperties(Un.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 lo))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 lo)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}}}),Un.className="RotatingTool",or("rotatingTool",function(){return this.findTool("Rotating")},function(a){this.gb("Rotating",a,this.mouseDownTools)});function Gn(){Vr.call(this),this.name="ClickSelecting"}Wt(Gn,Vr),Gn.prototype.canStart=function(){return!(!this.isEnabled||this.isBeyondDragSize())},Gn.prototype.doMouseUp=function(){this.isActive&&(this.standardMouseSelect(),!this.standardMouseClick()&&this.diagram.lastInput.isTouchEvent&&this.diagram.toolManager.doToolTip()),this.stopTool()},Gn.className="ClickSelectingTool";function En(){Vr.call(this),this.name="Action",this.pk=null}Wt(En,Vr),En.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},En.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()},En.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))}},En.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()},En.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())},En.prototype.doStop=function(){this.pk=null},En.className="ActionTool";function si(){Vr.call(this),this.name="ClickCreating",this.Ri=null,this.o=!0,this.j=!1,this.mw=new Je(0,0)}Wt(si,Vr),si.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)},si.prototype.doMouseUp=function(){var a=this.diagram;this.isActive&&this.insertPart(a.lastInput.documentPoint),this.stopTool()},si.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 Zi)x.Zc()&&(Ru(x),b=x.copy(),b!==null&&y.add(b));else if(x!==null){var E=y.model.copyNodeData(x);zt(E)&&(y.model.xf(E),b=y.Lc(E))}if(b!==null){var z=Je.allocAt(a.x,a.y);this.isGridSnapEnabled&&Mf(this.diagram,b,a,z),b.location=z,y.allowSelect&&(y.clearSelection(!0),b.isSelected=!0),Je.free(z)}y.Ya(),this.transactionResult=this.name,y.R("PartCreated",b)}finally{this.stopTransaction(),y.R("ChangedSelection",y.selection)}return b},jt.Object.defineProperties(si.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}}}),si.className="ClickCreatingTool";function ni(){Vr.call(this),this.name="DragSelecting",this.Ik=175,this.o=!1;var a=new Zi;a.layerName="Tool",a.selectable=!1;var y=new Nr;y.name="SHAPE",y.figure="Rectangle",y.fill=null,y.stroke="magenta",a.add(y),this.j=a}Wt(ni,Vr),ni.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.timestamp<this.delay||a.Ol(y.documentPoint,!0)!==null))},ni.prototype.doActivate=function(){var a=this.diagram;this.isActive=!0,a.isMouseCaptured=!0,a.skipsUndoManager=!0,a.add(this.box),this.doMouseMove()},ni.prototype.doDeactivate=function(){var a=this.diagram;a.ug(),a.remove(this.box),a.skipsUndoManager=!1,this.isActive=a.isMouseCaptured=!1},ni.prototype.doMouseMove=function(){var a=this.diagram;if(this.isActive&&this.box!==null){var y=this.computeBoxBounds(),x=this.box.fb("SHAPE");x===null&&(x=this.box.Pb());var b=Ln.alloc().h(y.width,y.height);x.desiredSize=b,this.box.mm(y.x,y.y,!1),Ln.free(b),(a.allowHorizontalScroll||a.allowVerticalScroll)&&a.gs(a.lastInput.viewPoint)}},ni.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram;a.remove(this.box);try{a.currentCursor="wait",a.R("ChangingSelection",a.selection),this.selectInRect(this.computeBoxBounds()),a.R("ChangedSelection",a.selection)}finally{a.currentCursor=""}}this.stopTool()},ni.prototype.computeBoxBounds=function(){var a=this.diagram;return new tn(a.firstInput.documentPoint,a.lastInput.documentPoint)},ni.prototype.selectInRect=function(a){var y=this.diagram,x=y.lastInput;if(a=y.ux(a,this.isPartialInclusion),sr?x.meta:x.control)if(x.shift)for(a=a.iterator;a.next();)y=a.value,y.isSelected&&(y.isSelected=!1);else for(a=a.iterator;a.next();)y=a.value,y.isSelected=!y.isSelected;else if(x.shift)for(a=a.iterator;a.next();)y=a.value,y.isSelected||(y.isSelected=!0);else{for(x=new Dn,y=y.selection.iterator;y.next();){var b=y.value;a.contains(b)||x.add(b)}for(y=x.iterator;y.next();)y.value.isSelected=!1;for(a=a.iterator;a.next();)y=a.value,y.isSelected||(y.isSelected=!0)}},jt.Object.defineProperties(ni.prototype,{delay:{get:function(){return this.Ik},set:function(a){this.Ik=a}},isPartialInclusion:{get:function(){return this.o},set:function(a){this.o=a}},box:{get:function(){return this.j},set:function(a){this.j=a}}}),ni.className="DragSelectingTool";function An(){Vr.call(this),this.name="Panning",this.Xt=new Je,this.xy=new Je,this.xg=!1;var a=this;this.Kw=function(){var y=a.diagram;y!==null&&y.removeEventListener(In.document,"scroll",a.Kw,!1),a.stopTool()}}Wt(An,Vr),An.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;return!(!a.allowHorizontalScroll&&!a.allowVerticalScroll||!a.lastInput.left||a.currentTool!==this&&!this.isBeyondDragSize())},An.prototype.doActivate=function(){var a=this.diagram;this.xg?(a.lastInput.bubbles=!0,a.addEventListener(In.document,"scroll",this.Kw,!1)):(a.currentCursor="move",a.isMouseCaptured=!0,this.Xt.assign(a.position)),this.isActive=!0},An.prototype.doDeactivate=function(){var a=this.diagram;a.currentCursor="",this.isActive=a.isMouseCaptured=!1},An.prototype.doCancel=function(){var a=this.diagram;a.position=this.Xt,a.isMouseCaptured=!1,this.stopTool()},An.prototype.doMouseMove=function(){this.move()},An.prototype.doMouseUp=function(){this.move(),this.stopTool()},An.prototype.move=function(){var a=this.diagram;if(this.isActive&&a)if(this.xg)a.lastInput.bubbles=!0;else{var y=a.position,x=a.firstInput.documentPoint,b=a.lastInput.documentPoint,E=y.x+x.x-b.x;x=y.y+x.y-b.y,a.allowHorizontalScroll||(E=y.x),a.allowVerticalScroll||(x=y.y),a.position=this.xy.h(E,x)}},jt.Object.defineProperties(An.prototype,{bubbles:{get:function(){return this.xg},set:function(a){this.xg=a}},originalPosition:{get:function(){return this.Xt}}}),An.className="PanningTool",or("clickCreatingTool",function(){return this.findTool("ClickCreating")},function(a){this.gb("ClickCreating",a,this.mouseUpTools)}),or("clickSelectingTool",function(){return this.findTool("ClickSelecting")},function(a){this.gb("ClickSelecting",a,this.mouseUpTools)}),or("panningTool",function(){return this.findTool("Panning")},function(a){this.gb("Panning",a,this.mouseMoveTools)}),or("dragSelectingTool",function(){return this.findTool("DragSelecting")},function(a){this.gb("DragSelecting",a,this.mouseMoveTools)}),or("actionTool",function(){return this.findTool("Action")},function(a){this.gb("Action",a,this.mouseDownTools)});function no(){this.F=this.u=this.j=this.o=null}jt.Object.defineProperties(no.prototype,{mainElement:{get:function(){return this.u},set:function(a){this.u=a}},show:{get:function(){return this.o},set:function(a){this.o!==a&&(this.o=a)}},hide:{get:function(){return this.j},set:function(a){this.j!==a&&(this.j=a)}},valueFunction:{get:function(){return this.F},set:function(a){this.F=a}}}),no.className="HTMLInfo";function wo(a,y,x){this.text=a,this.hx=y,this.visible=x}wo.className="ContextMenuButtonInfo";function Uo(){Vr.call(this),this.name="ContextMenu",this.o=this.ht=this.j=null,this.yw=new Je,this.jt=null,this.Et=!1;var a=this;this.tu=function(){a.stopTool()}}Wt(Uo,Vr);function Mr(a){var y=new no;y.show=function(E,z,ee){ee.showDefaultContextMenu()},y.hide=function(E,z){z.hideDefaultContextMenu()},vr=y,a.tu=function(){a.stopTool()},y=li("div");var x=li("div");y.style.cssText="top: 0px;z-index:10002;position: fixed;display: none;text-align: center;left: 25%;width: 50%;background-color: #F5F5F5;padding: 16px;border: 16px solid #444;border-radius: 10px;margin-top: 10px",x.style.cssText="z-index:10001;position: fixed;display: none;top: 0;left: 0;width: 100%;height: 100%;background-color: black;opacity: 0.8;";var b=li("style");In.document.getElementsByTagName("head")[0].appendChild(b),b.sheet.insertRule(".goCXul { list-style: none; }",0),b.sheet.insertRule(".goCXli {font:700 1.5em Helvetica, Arial, sans-serif;position: relative;min-width: 60px; }",0),b.sheet.insertRule(".goCXa {color: #444;display: inline-block;padding: 4px;text-decoration: none;margin: 2px;border: 1px solid gray;border-radius: 10px; }",0),b=a.diagram,b!==null&&(b.addEventListener(y,"contextmenu",oo,!1),b.addEventListener(y,"selectstart",oo,!1),b.addEventListener(x,"contextmenu",oo,!1)),y.className="goCXforeground",x.className="goCXbackground",In.document.body&&(In.document.body.appendChild(y),In.document.body.appendChild(x)),Sa=y,ns=x,Ia=!0}function oo(a){return a.preventDefault(),!1}Uo.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;return this.isBeyondDragSize()||!a.lastInput.right||1<a.lastInput.clickCount?!1:!!(a.lastInput.isTouchEvent&&this.defaultTouchContextMenu!==null||this.findObjectWithContextMenu()!==null)},Uo.prototype.doStart=function(){this.yw.set(this.diagram.firstInput.documentPoint)},Uo.prototype.doStop=function(){this.hideContextMenu(),this.currentObject=null},Uo.prototype.findObjectWithContextMenu=function(a){a===void 0&&(a=null);var y=this.diagram,x=y.lastInput,b=null;if(a instanceof en||(a instanceof Ot?b=a:b=y.ic(x.documentPoint,null,function(E){return!E.layer.isTemporary})),b!==null){for(a=b;a!==null;){if(a.contextMenu!==null)return a;a=a.panel}if(y.lastInput.isTouchEvent&&this.defaultTouchContextMenu)return b.part}else if(y.contextMenu!==null)return y;return null},Uo.prototype.doActivate=function(){},Uo.prototype.doMouseDown=function(){if(Vr.prototype.doMouseDown.call(this),this.isActive&&this.currentContextMenu instanceof lo){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.canStart()&&(a.doActivate(),a.doMouseDown(),a.doDeactivate())}this.diagram.toolManager.mouseDownTools.contains(this)&&fo(this)},Uo.prototype.doMouseUp=function(){if(this.isActive&&this.currentContextMenu instanceof lo){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.canStart()&&(a.doActivate(),a.doCancel(),a.doDeactivate())}fo(this)};function fo(a){var y=a.diagram;if(a.isActive){var x=a.currentContextMenu;if(x!==null){var b=null;x instanceof no||(b=y.ic(y.lastInput.documentPoint,null,null),b!==null&&b.rg(x)&&a.standardMouseClick(null,null)),a.maybeStopTool(b)}}else a.canStart()&&(Aa(a,!0),a.isActive||a.stopTool())}Uo.prototype.maybeStopTool=function(){this.stopTool(),this.canStart()&&(this.diagram.currentTool=this,this.doMouseUp())};function Aa(a,y,x){if(x===void 0&&(x=null),!a.Et&&(a.Et=!0,y&&a.standardMouseSelect(),y=a.standardMouseClick(),a.Et=!1,!y)){if(a.isActive=!0,y=vr,x===null&&(x=a.findObjectWithContextMenu()),x!==null){var b=x.contextMenu;b!==null?(a.currentObject=x instanceof Ot?x:null,a.showContextMenu(b,a.currentObject)):y!==null&&a.showContextMenu(y,a.currentObject)}else y!==null&&a.showContextMenu(y,null);a.currentContextMenu instanceof lo&&!a.currentContextMenu.visible&&a.stopTool()}}Uo.prototype.doMouseMove=function(){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.doMouseMove(),this.isActive&&this.diagram.toolManager.doMouseMove()},Uo.prototype.showContextMenu=function(a,y){var x=this.diagram;if(a!==this.currentContextMenu&&this.hideContextMenu(),a instanceof lo){a.layerName="Tool",a.selectable=!1,a.scale=1/x.scale,a.category=this.name,a.placeholder!==null&&(a.placeholder.scale=x.scale);var b=a.diagram;b!==null&&b!==x&&b.remove(a),x.add(a),y!==null?a.adornedObject=y:a.data=x.model,a.Va(),this.positionContextMenu(a,y)}else a instanceof no&&a.show(y,x,this);this.currentContextMenu=a},Uo.prototype.positionContextMenu=function(a){if(a.placeholder===null){var y=this.diagram,x=y.lastInput.documentPoint.copy(),b=a.measuredBounds,E=y.viewportBounds;y.lastInput.isTouchEvent&&(x.x-=b.width),x.x+b.width>E.right&&(x.x-=b.width+5/y.scale),x.x<E.x&&(x.x=E.x),x.y+b.height>E.bottom&&(x.y-=b.height+5/y.scale),x.y<E.y&&(x.y=E.y),a.position=x}},Uo.prototype.hideContextMenu=function(){var a=this.diagram,y=this.currentContextMenu;y!==null&&(y instanceof lo?(a.remove(y),this.ht!==null&&this.ht.Jf(y.category),y.data=null,y.adornedObject=null):y instanceof no&&(y.hide!==null?y.hide(a,this):y.mainElement!==null&&(y.mainElement.style.display="none")),this.currentContextMenu=null,this.standardMouseOver())};function Pa(a){var y=new Dn;return y.add(new wo("Copy",function(x){x.commandHandler.copySelection()},function(x){return x.commandHandler.canCopySelection()})),y.add(new wo("Cut",function(x){x.commandHandler.cutSelection()},function(x){return x.commandHandler.canCutSelection()})),y.add(new wo("Delete",function(x){x.commandHandler.deleteSelection()},function(x){return x.commandHandler.canDeleteSelection()})),y.add(new wo("Paste",function(x){x.commandHandler.pasteSelection(a.mouseDownPoint)},function(x){return x.commandHandler.canPasteSelection(a.mouseDownPoint)})),y.add(new wo("Select All",function(x){x.commandHandler.selectAll()},function(x){return x.commandHandler.canSelectAll()})),y.add(new wo("Undo",function(x){x.commandHandler.undo()},function(x){return x.commandHandler.canUndo()})),y.add(new wo("Redo",function(x){x.commandHandler.redo()},function(x){return x.commandHandler.canRedo()})),y.add(new wo("Scroll To Part",function(x){x.commandHandler.scrollToPart()},function(x){return x.commandHandler.canScrollToPart()})),y.add(new wo("Zoom To Fit",function(x){x.commandHandler.zoomToFit()},function(x){return x.commandHandler.canZoomToFit()})),y.add(new wo("Reset Zoom",function(x){x.commandHandler.resetZoom()},function(x){return x.commandHandler.canResetZoom()})),y.add(new wo("Group Selection",function(x){x.commandHandler.groupSelection()},function(x){return x.commandHandler.canGroupSelection()})),y.add(new wo("Ungroup Selection",function(x){x.commandHandler.ungroupSelection()},function(x){return x.commandHandler.canUngroupSelection()})),y.add(new wo("Edit Text",function(x){x.commandHandler.editTextBlock()},function(x){return x.commandHandler.canEditTextBlock()})),y}Uo.prototype.showDefaultContextMenu=function(){var a=this.diagram;this.jt===null&&(this.jt=Pa(this)),Sa.innerHTML="",ns.addEventListener("pointerdown",this.tu,!1);var y=this,x=li("ul");x.className="goCXul",Sa.appendChild(x),x.innerHTML="";for(var b=this.jt.iterator;b.next();){var E=b.value,z=E.visible;if(typeof E.hx=="function"&&(typeof z!="function"||z(a))){z=li("li"),z.className="goCXli";var ee=li("a");ee.className="goCXa",ee.href="#",ee.ky=E.hx,ee.addEventListener("pointerdown",function(re){return this.ky(a),y.stopTool(),re.preventDefault(),!1},!1),ee.textContent=E.text,z.appendChild(ee),x.appendChild(z)}}Sa.style.display="block",ns.style.display="block"},Uo.prototype.hideDefaultContextMenu=function(){if(this.currentContextMenu!==null&&this.currentContextMenu===vr){Sa.style.display="none",ns.style.display="none";var a=this.diagram;a!==null&&a.removeEventListener(ns,"pointerdown",this.tu,!1),this.currentContextMenu=null}},jt.Object.defineProperties(Uo.prototype,{currentContextMenu:{get:function(){return this.j},set:function(a){this.j=a,this.ht=a instanceof lo?a.adornedPart:null}},defaultTouchContextMenu:{get:function(){return Ia===!1&&vr===null&&va&&Mr(this),vr},set:function(a){a===null&&(Ia=!0),vr=a}},currentObject:{get:function(){return this.o},set:function(a){this.o=a}},mouseDownPoint:{get:function(){return this.yw}}});var vr=null,Ia=!1,ns=null,Sa=null;Uo.className="ContextMenuTool",or("contextMenuTool",function(){return this.findTool("ContextMenu")},function(a){this.gb("ContextMenu",a,this.mouseUpTools)});function eo(){Vr.call(this),this.name="TextEditing",this.Zh=new Ko,this.ia=null,this.V=Ys,this.vj=null,this.qa=Xn,this.u=1,this.F=!0,this.o=null,this.j=new no,this.kt=null,nl(this,this.j)}Wt(eo,Vr);function nl(a,y){if(va){var x=li("textarea");a.kt=x,x.addEventListener("input",function(){if(a.textBlock!==null){var b=a.Lx(this.value);this.style.width=20+b.measuredBounds.width*this.wA+"px",this.rows=b.lineCount}},!1),x.addEventListener("keydown",function(b){if(!b.isComposing&&a.textBlock!==null){var E=b.key;E==="Enter"?(a.textBlock.isMultiline===!1&&b.preventDefault(),a.acceptText(qa)):E==="Tab"?(a.acceptText(aa),b.preventDefault()):E==="Escape"&&(a.doCancel(),a.diagram!==null&&a.diagram.doFocus())}},!1),x.addEventListener("focus",function(){if(a.currentTextEditor!==null&&a.state!==Xn){var b=a.kt;a.qa===il&&(a.qa=zl),typeof b.select=="function"&&a.selectsTextOnActivate&&(b.select(),b.setSelectionRange(0,9999))}},!1),x.addEventListener("blur",function(){if(a.currentTextEditor!==null&&a.state!==Xn){var b=a.kt;typeof b.focus=="function"&&b.focus(),typeof b.select=="function"&&a.selectsTextOnActivate&&(b.select(),b.setSelectionRange(0,9999))}},!1),y.valueFunction=function(){return x.value},y.mainElement=x,y.show=function(b,E,z){if(b instanceof Ko&&z instanceof eo)if(z.state===Ks)x.style.border="3px solid red",x.focus();else{var ee=b.ga(mr),re=E.position,oe=E.scale,de=b.Df()*oe;de<z.minimumEditorScale&&(de=z.minimumEditorScale);var fe=b.naturalBounds.width*de+6,ye=b.naturalBounds.height*de+2,Ce=(ee.x-re.x)*oe;ee=(ee.y-re.y)*oe,re=b.verticalAlignment,oe=(b.lineHeight+b.spacingAbove+b.spacingBelow)*b.lineCount*de,ye=re.y*ye-re.y*oe+re.offsetY-(.5*ye-.5*oe)-oe/2,x.value=b.text,E.div.style.font=b.font,x.style.position="absolute",x.style.zIndex="100",x.style.font="inherit",x.style.fontSize=100*de+"%",x.style.lineHeight="normal",x.style.width=fe+"px",x.style.left=(Ce-fe/2|0)-1+"px",x.style.top=(ee+ye|0)-1+"px",x.style.textAlign=b.textAlign,x.style.margin="0",x.style.padding="1px",x.style.border="0",x.style.outline="none",x.style.whiteSpace="pre-wrap",x.style.overflow="hidden",x.rows=b.lineCount,x.wA=de,x.className="goTXarea",E.div.appendChild(x),x.focus(),z.selectsTextOnActivate&&(x.select(),x.setSelectionRange(0,9999))}},y.hide=function(b){b.div.removeChild(x)}}}eo.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;if(a===null||a.isReadOnly||du&&du!==this&&(du.acceptText(ko),du&&du!==this)||!a.lastInput.left||this.isBeyondDragSize())return!1;var y=a.ic(a.lastInput.documentPoint);return y!==null&&y instanceof Ko&&y.editable&&y.part.canEdit()?(y=y.part,!(y===null||this.starting===Ys&&!y.isSelected||this.starting===Ll&&2>a.lastInput.clickCount)):!1},eo.prototype.doStart=function(){du=this,this.textBlock!==null&&this.doActivate()},eo.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 Ko&&(this.textBlock=y,y.part!==null)){a.animationManager.Cc(),this.isActive=!0,this.qa=il;var x=this.defaultTextEditor;y.textEditor!==null&&(x=y.textEditor),this.Zh=this.textBlock.copy();var b=new tn(this.textBlock.ga(Qi),this.textBlock.ga(ho));a.tv(b),x.show(y,a,this),this.currentTextEditor=x}}}},eo.prototype.doCancel=function(){this.stopTool()},eo.prototype.doMouseUp=function(){this.canStart()&&this.doActivate()},eo.prototype.doMouseDown=function(){this.isActive&&this.acceptText(ko)},eo.prototype.acceptText=function(a){switch(a){case ko:this.qa===$l?this.currentTextEditor instanceof HTMLElement&&this.currentTextEditor.focus():(this.qa===il||this.qa===Ks||this.qa===zl)&&(this.qa=ti,_a(this));break;case Ro:case qa:case aa:(qa!==a||this.textBlock.isMultiline!==!0)&&(this.qa===il||this.qa===Ks||this.qa===zl)&&(this.qa=ti,_a(this))}};function _a(a){var y=a.textBlock,x=a.diagram,b=a.currentTextEditor;if(y!==null&&b!==null){var E=y.text,z="";b.valueFunction!==null&&(z=b.valueFunction()),a.isValidText(y,E,z)?(a.Ea(a.name),a.qa=$l,a.transactionResult=a.name,y.text=z,a.doSuccess(E,z),x!==null&&x.R("TextEdited",y,E),a.stopTransaction(),a.stopTool(),x!==null&&x.doFocus()):(a.qa=Ks,a.doError(E,z))}}eo.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)},eo.prototype.doSuccess=function(a,y){var x=this.textBlock;x.textEdited!==null&&x.textEdited(x,a,y)},eo.prototype.doDeactivate=function(){var a=this.diagram;a!==null&&(this.qa=Xn,this.currentTextEditor!==null&&this.currentTextEditor.hide(a,this),this.textBlock=null,this.isActive=!1)},eo.prototype.doStop=function(){du=null},eo.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)))},eo.prototype.Lx=function(a){var y=this.Zh;return y.text=a,y.measure(this.textBlock.Ih,1/0),y},jt.Object.defineProperties(eo.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)}}}),eo.prototype.measureTemporaryTextBlock=eo.prototype.Lx;var Ro=new mn(eo,"LostFocus",0),ko=new mn(eo,"MouseDown",1),aa=new mn(eo,"Tab",2),qa=new mn(eo,"Enter",3),Os=new mn(eo,"SingleClick",0),Ys=new mn(eo,"SingleClickSelected",1),Ll=new mn(eo,"DoubleClick",2),Xn=new mn(eo,"StateNone",0),il=new mn(eo,"StateActive",1),zl=new mn(eo,"StateEditing",2),ti=new mn(eo,"StateValidating",3),Ks=new mn(eo,"StateInvalid",4),$l=new mn(eo,"StateValidated",5),du=null;eo.className="TextEditingTool",eo.LostFocus=Ro,eo.MouseDown=ko,eo.Tab=aa,eo.Enter=qa,eo.SingleClick=Os,eo.SingleClickSelected=Ys,eo.DoubleClick=Ll,eo.StateNone=Xn,eo.StateActive=il,eo.StateEditing=zl,eo.StateValidating=ti,eo.StateInvalid=Ks,eo.StateValidated=$l,or("textEditingTool",function(){return this.findTool("TextEditing")},function(a){this.gb("TextEditing",a,this.mouseUpTools)});function ks(a){Ii||(Dt(),Ii=!0),this.H=Rc,this.Ok=this.zb=this.vq=this.bc=!1,this.Qw=!0,this.Pk=$i,this.Dm=!1,this.Gh=this.Jd=!0,this.Dg=600,this.cw=this.Ow=!1,this.Zd=new Bn,this.ce=new Ti,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)}ks.prototype.Xe=function(a){this.H=a},ks.prototype.canStart=function(){return!0};function $a(a,y){a.Jd&&a.canStart(y)&&(a.Zd.add(y),a.defaultAnimation.isAnimating&&a.Cc(),Ls(a.H),a.zb=!0)}function Hl(a){if(a.Jd&&a.zb){var y=a.ce,x=a.H,b=a.Zd.contains("Model");b&&(a.Ok=!0,a.Pk===$i?(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===Lo&&y.vc.clear(),a.Qw=!!(a.Pk===so&&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(),Ar(y,x),a.Ok=!1,x.N()):(a.Zd.clear(),x.kg=!1,b=y.vc.get(x),x.autoScale!==Zs&&b!==null&&(delete b.start.scale,delete b.end.scale),In.requestAnimationFrame(function(){a.zb===!1||y.bc||(x.Gf("temporaryPixelRatio")&&xl(x),kg(x),a.zb=!1,y.start(),y.bc&&(eu(a),x.Ya(),hu(y,0),gu(x,!0),lc(a),x.R("AnimationStarting",a)))}))}}function _s(a){return a.Zd.contains("Trigger")&&a.Zd.count===1}function Nu(a,y,x,b){a.isTicking||_s(a)||y instanceof ei&&(y.fromNode!==null||y.toNode!==null)||a.ce.add(y,"position",x,b,!1)}Ie=ks.prototype,Ie.fv=function(a){return this.ce.fv(a)},Ie.Xu=function(a){return this.ce.Xu(a)};function Ku(a,y){function x(){if(0<E.Sr.count&&(b.addAll(E.Sr),E.Sr.clear(),E.bc=!0),E.bc!==!1&&b.count!==0){E.pu.addAll(b);for(var z=E.pu.iterator;z.next();){var ee=z.value;if(ee.bc!==!1){e:if(0<ee.yl.count)var re=!0;else{for(re=ee.vc.iterator;re.next();){var oe=re.key;if(oe instanceof Ot&&oe.diagram!==null||oe instanceof en){re=!0;break e}}re=!1}re?Ba(ee,!1):ee.Xk=!0}}E.pu.clear(),E.bc!==!1&&(eu(E),gu(E.H),lc(E)),In.requestAnimationFrame(x)}}var b=a.Ei,E=a;a.bc?a.Sr.add(y):(a.bc=!0,b.add(y),In.requestAnimationFrame(function(){x()}))}function gd(a){for(a=a.Ei.iterator;a.next();)a.value.Xk=!1}function eu(a){if(!a.vq){var y=a.H;a.Ow=y.skipsUndoManager,a.cw=y.skipsModelSourceBindings,y.skipsUndoManager=!0,y.skipsModelSourceBindings=!0,a.vq=!0}}function lc(a){var y=a.H;y.skipsUndoManager=a.Ow,y.skipsModelSourceBindings=a.cw,a.vq=!1}Ie.Cc=function(a){var y=this.ce;if(this.zb===!0&&(this.Ok=this.zb=!1,this.Zd.clear(),0<y.vc.count&&this.H.$b()),this.bc){if(y.Ml(!0),y.vc.clear(),Ar(y,null),a===!0)for(a=this.Ei.Fa(),y=0;y<a.length;y++)a[y].Ml(!0)}else y.vc.clear(),Ar(y,this.H)},Ie.Ml=function(a){a===this.defaultAnimation&&this.defaultAnimation.vc.clear(),this.Ei.remove(a),this.Ei.count===0&&(this.bc=!1,this.H.$b()),a===this.defaultAnimation&&(this.defaultAnimation.vc.clear(),this.H.R("AnimationFinished",this))},Ie.Cj=function(a,y){this.zb&&(this.Zd.contains("Expand Tree")||this.Zd.contains("Expand SubGraph"))&&(this.ce.Cj(a,y),pe(this,a))},Ie.Aj=function(a,y){this.zb&&(this.Zd.contains("Collapse Tree")||this.Zd.contains("Collapse SubGraph"))&&(this.ce.Aj(a,y),zo(this.ce,y,"position",y.position,y.position),pe(this,a))};function zd(a,y,x){!a.zb||y.D(x)||_s(a)||(a.H.pi||(y=x.copy()),zo(a.ce,a.H,"position",y,x))}function le(a,y,x){y.fd&&(y.Tg=x,a.pr.add(y))}function pe(a,y){for(y=y.findLinksConnected();y.next();){var x=y.value;x.fd&&(x.Tg=x.points.copy(),a.pr.add(x))}}function Ke(a,y,x,b,E){a===null&&(a=[0,0,0,0]),y===null&&(y=[0,0,0,0]);var z=a[0],ee=a[1],re=a[2];a=a[3];var oe=y[0],de=y[1],fe=y[2];return y=y[3],re===0||re===100?(z=oe,ee=de):(fe===0||fe===100)&&(oe=z,de=ee),180<Math.abs(oe-z)&&(oe>z?z+=360:oe+=360),z=E(x,z,oe-z,b)%360,ee=E(x,ee,de-ee,b),re=E(x,re,fe-re,b),x=E(x,a,y-a,b),"hsla("+z+", "+ee+"%, "+re+"%, "+x+")"}function Dt(){function a(x,b,E,z,ee,re){x.position=new Je(z(ee,b.x,E.x-b.x,re),z(ee,b.y,E.y-b.y,re))}var y=new an;y.add("position:diagram",a),y.add("position",a),y.add("position:part",function(x,b,E,z,ee,re){ee<re?x.mm(z(ee,b.x,E.x-b.x,re),z(ee,b.y,E.y-b.y,re),!1):x.position=new Je(z(ee,b.x,E.x-b.x,re),z(ee,b.y,E.y-b.y,re))}),y.add("location",function(x,b,E,z,ee,re){ee<re?x.mm(z(ee,b.x,E.x-b.x,re),z(ee,b.y,E.y-b.y,re),!0):x.location=new Je(z(ee,b.x,E.x-b.x,re),z(ee,b.y,E.y-b.y,re))}),y.add("position:placeholder",function(x,b,E,z,ee,re){ee<re?x.mm(z(ee,b.x,E.x-b.x,re),z(ee,b.y,E.y-b.y,re),!1):x.position=new Je(z(ee,b.x,E.x-b.x,re),z(ee,b.y,E.y-b.y,re))}),y.add("position:nodeCollapse",function(x,b,E,z,ee,re){var oe=x.actualBounds,de=E.actualBounds;E=de.x+de.width/2-oe.width/2,oe=de.y+de.height/2-oe.height/2,ee<re?x.mm(z(ee,b.x,E-b.x,re),z(ee,b.y,oe-b.y,re),!1):x.position=new Je(z(ee,b.x,E-b.x,re),z(ee,b.y,oe-b.y,re))}),y.add("desiredSize",function(x,b,E,z,ee,re){x.desiredSize=new tn(z(ee,b.width,E.width-b.width,re),z(ee,b.height,E.height-b.height,re))}),y.add("width",function(x,b,E,z,ee,re){x.width=z(ee,b,E-b,re)}),y.add("height",function(x,b,E,z,ee,re){x.height=z(ee,b,E-b,re)}),y.add("fill",function(x,b,E,z,ee,re){x.fill=Ke(b,E,ee,re,z)}),y.add("stroke",function(x,b,E,z,ee,re){x.stroke=Ke(b,E,ee,re,z)}),y.add("strokeWidth",function(x,b,E,z,ee,re){x.strokeWidth=z(ee,b,E-b,re)}),y.add("strokeDashOffset",function(x,b,E,z,ee,re){x.strokeDashOffset=z(ee,b,E-b,re)}),y.add("background",function(x,b,E,z,ee,re){x.background=Ke(b,E,ee,re,z)}),y.add("areaBackground",function(x,b,E,z,ee,re){x.areaBackground=Ke(b,E,ee,re,z)}),y.add("opacity",function(x,b,E,z,ee,re){x.opacity=z(ee,b,E-b,re)}),y.add("scale",function(x,b,E,z,ee,re){x.scale=z(ee,b,E-b,re)}),y.add("angle",function(x,b,E,z,ee,re){x.angle=z(ee,b,E-b,re)}),Hn=y}jt.Object.defineProperties(ks.prototype,{animationReasons:{get:function(){return this.Zd}},isEnabled:{get:function(){return this.Jd},set:function(a){(this.Jd=a)&&this.Ei.each(function(y){y.isAnimating||y.runCount!==1/0||y.start()})}},duration:{get:function(){return this.Dg},set:function(a){1>a&&ri(a,">= 1",ks,"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}}}),ks.prototype.stopAnimation=ks.prototype.Cc;var Hn=null,Ii=!1,$i=new mn(ks,"Default",1),so=new mn(ks,"AnimateLocations",2),Lo=new mn(ks,"None",3);ks.className="AnimationManager",ks.defineAnimationEffect=function(a,y){Ii||(Dt(),Ii=!0),Hn.add(a,y)},ks.Default=$i,ks.AnimateLocations=so,ks.None=Lo;function Ti(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=ku,this.Wk=this.ho=!1,this.cu=1,this.au=0,this.Gd=this.Dg=NaN,this.gw=0,this.dn=null,this.o=ci,this.vc=new an,this.Tt=new an,this.yl=new Bn,this.Ut=new Bn,this.dw=vd,a&&Object.assign(this,a)}Ti.prototype.suspend=function(){this.Xk=!0},Ti.prototype.advanceTo=function(a,y){y&&(this.Xk=!1),this.ho&&a>=this.Gd&&(this.Wk=!0,a-=this.Gd),this.gw=a,Ba(this,!0),eu(this.Yd),gu(this.H),lc(this.Yd),this.H.redraw()};function Ar(a,y){if(a.Tt.clear(),a.Wk=!1,a.au=0,a.Gd=NaN,0<a.yl.count&&a.yl.clear(),0<a.Ut.count&&a.Ut.clear(),y!==null)for(a=y.links;a.next();)a.value.Tg=null}Ie=Ti.prototype,Ie.start=function(){if(this.vc.count===0||this.bc)return this;for(var a=this.H,y=this.vc.iterator;y.next();){var x=y.key;a===null&&(x instanceof en?a=x:x instanceof Ot&&(a=x.diagram))}if(a!==null)this.H=a,this.Yd=a.animationManager;else return this;return y=this.Yd,y.isEnabled===!1?this:(this.Gd=isNaN(this.Dg)?y.duration:this.Dg,this.Lp=this.ot,y.Ok&&y.Pk===$i&&this===y.defaultAnimation&&(this.Lp=uc,this.Gd=isNaN(this.Dg)?y.duration===600?900:y.duration:this.Dg),this.dw=a.scrollMode,this.isViewportUnconstrained&&(a.sj=ef),eu(y),this.yl.each(function(b){b.data=null,a.add(b)}),lc(y),this.bc=!0,this.Qd=+new Date,this.cn=this.Qd+this.Gd,Ku(y,this),this)},Ie.Iy=function(a,y){return a.Zc()?(this.yl.add(a),this.H=y,this):this},Ie.add=function(a,y,x,b,E){if(y==="position"&&x.Xa(b))return this;if(this.H===null&&(a instanceof en?this.H=a:a instanceof Ot&&a.diagram!==null&&(this.H=a.diagram)),a instanceof Zi){if(!a.isAnimated)return this;y==="position"&&(y="position:part")}return zo(this,a,y,x,b,E),this};function zo(a,y,x,b,E,z){var ee=a.vc;if(y instanceof en&&x==="position"&&(x="position:diagram"),(x==="fill"||x==="stroke"||x==="background"||x==="areaBackground")&&(ed(b),uv(),b=[ou.j,ou.u,ou.o,ou.F],ed(E),uv(),E=[ou.j,ou.u,ou.o,ou.F]),ee.contains(y)){var re=ee.I(y),oe=re.start,de=re.end;oe[x]===void 0&&(oe[x]=ua(b)),de[x]=ua(E)}else oe={},de={},oe[x]=ua(b),de[x]=ua(E),re=oe.position,y instanceof Ot&&re instanceof Je&&!re.w()&&y.diagram.animationManager.Zd.contains("Expand SubGraph")&&re.assign(de.position),re=new Zu(oe,de,z),ee.add(y,re);ee=oe[x],ee instanceof Je&&!ee.w()&&ee.assign(a.o),z&&x.indexOf("position:")===0&&y instanceof Zi?re.Ku.location=ua(y.location):z&&(re.Ku[x]=ua(b))}function ua(a){return a instanceof Je||a instanceof Ln?a.copy():a}Ie.fv=function(a){return this.bc?(a=this.vc.I(a),a!==null&&a.nv):!1},Ie.Xu=function(a){return this.bc?(a=this.vc.I(a),a!==null&&(a.start.position||a.start.location)):!1};function Ba(a,y){if(!a.Xk||y){var x=a.Yd;if(a.bc!==!1){var b=+new Date,E=b>a.cn?a.Gd:b-a.Qd;y&&(E=a.gw,E<a.Gd?(a.Qd=+new Date-E,a.cn=a.Qd+a.Gd):E=a.Gd),eu(x),hu(a,E),gu(a.H,!0),lc(x),b>a.cn&&(a.ho&&!a.Wk?(a.Qd=+new Date,a.cn=a.Qd+a.Gd,a.Wk=!0):a.Ml(!1))}}}function hu(a,y){for(var x=a.Gd,b=a.vc.iterator,E=a.Wk;b.next();){var z=b.key;if(!(z instanceof Ot&&z.diagram===null)){var ee=b.value,re=E?ee.end:ee.start;ee=E?ee.start:ee.end;var oe=Hn,de;for(de in ee)de==="position"&&(ee["position:placeholder"]||ee["position:nodeCollapse"])||oe.get(de)===null||oe.get(de)(z,re[de],ee[de],a.Lp,y,x,a)}}}Ie.stop=function(){return this.bc?(this.Ml(!0),this):this},Ie.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,eu(x);for(var b=this.vc,E=this.yl.iterator;E.next();)y.remove(E.value);for(E=this.Ut.iterator;E.next();)E.value.v();E=this.ho,b=b.iterator;for(var z=Hn;b.next();){var ee=b.key,re=b.value,oe=E?re.end:re.start,de=E?re.start:re.end,fe=re.Ku,ye;for(ye in de)if(z.get(ye)!==null){var Ce=ye;!re.Hu||Ce!=="position:nodeCollapse"&&Ce!=="position:placeholder"||(Ce="position"),z.get(Ce)(ee,oe[ye],fe[ye]!==void 0?fe[ye]:re.Hu?oe[ye]:de[ye],this.Lp,this.Gd,this.Gd,this)}re.Hu&&fe.location!==void 0&&ee instanceof Zi&&(ee.location=fe.location),re.nv&&ee instanceof Zi&&ee.Zb(!1)}if(y.As.clear(),Zh(y,!1),y.Ya(),y.N(),gu(y,!0),x.defaultAnimation===this){for(ye=x.pr.iterator;ye.next();)E=ye.value,E.Tg!==null&&(E.points=E.Tg,E.Tg=null);x.pr.clear()}gu(y,!0),this.isViewportUnconstrained&&(y.scrollMode=this.dw),lc(x),this.au++,!a&&this.cu>this.au?(this.Wk=!1,this.start()):(this.dn&&this.dn(this),Ar(this,null),x.Ml(this),y.$b())}},Ie.Cj=function(a,y){var x=y.actualBounds,b=null;if(y instanceof xr&&(b=y.placeholder),b!==null?(x=b.ga(Qi),b=b.padding,x.x+=b.left,x.y+=b.top,this.add(a,"position",x,a.position,!1)):this.add(a,"position",new Je(x.x+x.width/2,x.y+x.height/2),a.position,!1),this.add(a,"scale",.01,a.scale,!1),a instanceof xr)for(a=a.memberParts;a.next();)b=a.value,b instanceof Si&&this.Cj(b,y)},Ie.Aj=function(a,y){if(a.isVisible()){var x=null;if(y instanceof xr&&(x=y.placeholder),x!==null){var b=x.ga(Qi);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 xr)for(a=a.memberParts;a.next();)b=a.value,b instanceof Si&&this.Aj(b,y)}},Ie.Ez=function(a){var y=this.Tt.get(a);return y===null&&(y={},this.Tt.add(a,y)),y},jt.Object.defineProperties(Ti.prototype,{duration:{get:function(){return this.Dg},set:function(a){1>a&&ri(a,">= 1",Ti,"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){0<a?this.cu=a:vt("Animation.runCount value must be a positive integer.")}},finished:{get:function(){return this.dn},set:function(a){this.dn!==a&&(this.dn=a)}},easing:{get:function(){return this.ot},set:function(a){this.ot=a}},isViewportUnconstrained:{get:function(){return this.j},set:function(a){this.j=a}},isAnimating:{get:function(){return this.bc}}}),Ti.prototype.getTemporaryState=Ti.prototype.Ez,Ti.prototype.stop=Ti.prototype.stop,Ti.prototype.add=Ti.prototype.add,Ti.prototype.addTemporaryPart=Ti.prototype.Iy;function ku(a,y,x,b){return a/=b/2,1>a?x/2*a*a+y:-x/2*(--a*(a-2)-1)+y}function uc(a,y,x,b){return a===b?y+x:x*(-Math.pow(2,-10*a/b)+1)+y}Ti.className="Animation",Ti.EaseLinear=function(a,y,x,b){return x*a/b+y},Ti.EaseInOutQuad=ku,Ti.EaseInQuad=function(a,y,x,b){return x*(a/=b)*a+y},Ti.EaseOutQuad=function(a,y,x,b){return-x*(a/=b)*(a-2)+y},Ti.EaseInExpo=function(a,y,x,b){return a===0?y:x*Math.pow(2,10*(a/b-1))+y},Ti.EaseOutExpo=uc;function Zu(a,y,x){this.start=a,this.end=y,this.Ku={},this.Hu=x,this.nv=!1}Zu.className="AnimationState";function Sl(a,y,x){this.xd=null,this.rf=a,this.so=x||Mc,this.uk=null,y!==void 0&&(this.uk=y,x===void 0&&(this.so=jl))}Sl.prototype.copy=function(){var a=new Sl(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 tu(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))}jt.Object.defineProperties(Sl.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 Mc=new mn(Sl,"Default",1),jl=new mn(Sl,"Immediate",2),Sh=new mn(Sl,"Bundled",3);Sl.className="AnimationTrigger",Sl.Default=Mc,Sl.Immediate=jl,Sl.Bundled=Sh;function fs(a){qi(this),this.H=null,this.Pa=new Dn,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)}Ie=fs.prototype,Ie.clear=function(){for(var a=this.Pa,y=0;y<a.length;y++){var x=a.s[y];x.Ig=null,Hs(x)}a.clear(),this.Zq.length=0},Ie.Xe=function(a){this.H=a},Ie.toString=function(a){a===void 0&&(a=0);var y='Layer "'+this.name+'"';if(0>=a)return y;for(var x=0,b=0,E=0,z=0,ee=0,re=this.Pa.iterator;re.next();){var oe=re.value;oe instanceof xr?E++:oe instanceof Si?b++:oe instanceof ei?z++:oe instanceof lo?ee++:x++}if(re="",0<x&&(re+=x+" Parts "),0<b&&(re+=b+" Nodes "),0<E&&(re+=E+" Groups "),0<z&&(re+=z+" Links "),0<ee&&(re+=ee+" Adornments "),1<a)for(a=this.Pa.iterator;a.next();)x=a.value,re+=`
|
|
|
`+x.toString(),b=x.data,b!==null&&gr(b)&&(re+=" #"+gr(b)),x instanceof Si?re+=" "+Ki(b):x instanceof ei&&(re+=" "+Ki(x.fromNode)+" "+Ki(x.toNode));return y+" "+this.Pa.count+": "+re},Ie.ic=function(a,y,x){if(y===void 0&&(y=null),x===void 0&&(x=null),this.Uh===!1)return null;var b=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(a)&&(b=!0);for(var E=Je.alloc(),z=this.Pa.s,ee=z.length;ee--;){var re=z[ee];if((b!==!0||Qd(re)!==!1)&&re.isVisible()&&(E.assign(a),xi(E,re.oe),re=re.ic(E,y,x),re!==null&&(y!==null&&(re=y(re)),re!==null&&(x===null||x(re)))))return Je.free(E),re}return Je.free(E),null},Ie.ji=function(a,y,x,b){if(y===void 0&&(y=null),x===void 0&&(x=null),b instanceof Dn||b instanceof Bn||(b=new Bn),this.Uh===!1)return b;var E=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(a)&&(E=!0);for(var z=Je.alloc(),ee=this.Pa.s,re=ee.length;re--;){var oe=ee[re];if((E!==!0||Qd(oe)!==!1)&&oe.isVisible()){z.assign(a),xi(z,oe.oe);var de=oe;oe.ji(z,y,x,b)&&(y!==null&&(de=y(de)),de===null||x!==null&&!x(de)||b.add(de))}}return Je.free(z),b},Ie.Cf=function(a,y,x,b,E){if(y===void 0&&(y=null),x===void 0&&(x=null),b===void 0&&(b=!1),E instanceof Dn||E instanceof Bn||(E=new Bn),this.Uh===!1)return E;var z=!1;this.diagram!==null&&this.diagram.viewportBounds.Re(a)&&(z=!0);for(var ee=this.Pa.s,re=ee.length;re--;){var oe=ee[re];if((z!==!0||Qd(oe)!==!1)&&oe.isVisible()){var de=oe;oe.Cf(a,y,x,b,E)&&(y!==null&&(de=y(de)),de===null||x!==null&&!x(de)||E.add(de))}}return E},Ie.Nu=function(a,y,x,b,E,z,ee){if(this.Uh===!1)return E;for(var re=this.Pa.s,oe=re.length;oe--;){var de=re[oe];if((ee!==!0||Qd(de)!==!1)&&z(de)&&de.isVisible()){var fe=de;de.Cf(a,y,x,b,E)&&(y!==null&&(fe=y(fe)),fe===null||x!==null&&!x(fe)||E.add(fe))}}return E},Ie.og=function(a,y,x,b,E,z){if(x===void 0&&(x=null),b===void 0&&(b=null),E===void 0&&(E=!0),E!==!1&&E!==!0&&((E instanceof Dn||E instanceof Bn)&&(z=E),E=!0),z instanceof Dn||z instanceof Bn||(z=new Bn),this.Uh===!1)return z;var ee=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(a)&&(ee=!0);for(var re=Je.alloc(),oe=Je.alloc(),de=this.Pa.s,fe=de.length;fe--;){var ye=de[fe];if((ee!==!0||Qd(ye)!==!1)&&ye.isVisible()){re.assign(a),xi(re,ye.oe),oe.h(a.x+y,a.y),xi(oe,ye.oe);var Ce=ye;ye.og(re,oe,x,b,E,z)&&(x!==null&&(Ce=x(Ce)),Ce===null||b!==null&&!b(Ce)||z.add(Ce))}}return Je.free(re),Je.free(oe),z},Ie.Fd=function(a,y){if(this.visible){var x=this.Pa.s,b=x.length;if(b!==0){a=Mi();for(var E=Mi(),z=0;z<b;z++){var ee=x[z];if(ee.vw=z,ee instanceof ei){if(ee.fd===!1)continue}else if(ee instanceof lo&&ee.adornedPart!==null)continue;var re=ee.actualBounds;ee.isVisible()&&gn(re,y)?(ee.Fd(!0),a.push(ee)):(ee.Fd(!1),ee.adornments!==null&&0<ee.adornments.count&&E.push(ee))}for(y=0;y<a.length;y++)for(x=a[y],_v(x),x=x.adornments;x.next();)b=x.value,b.measure(1/0,1/0),b.arrange(),b.Fd(!0);for(y=0;y<E.length;y++)_v(E[y]);ui(a),ui(E)}}};function Jc(a,y){var x=1;return a.pb!==1&&(x=y.globalAlpha,y.globalAlpha=x*a.pb),x}Ie.gc=function(a,y,x){if(this.visible&&this.pb!==0&&(x===void 0&&(x=!0),x||!this.isTemporary)){x=this.Pa.s;var b=x.length;if(b!==0){if(a.isTemporary)for(var E=0;E<b;E++)x[E].Gj();E=Jc(this,a);var z=this.Zq;z.length=0;for(var ee=y.scale,re=tn.alloc(),oe=0;oe<b;oe++)this.Oj(a,x[oe],y,z,ee,re,!0);if(tn.free(re),a.isTemporary)for(y=0;y<b;y++)x[y].Gj();a.globalAlpha=E}}};function Qp(a,y,x,b,E){if(a.visible&&a.pb!==0&&(E||!a.isTemporary)){E=a.Pa.s;var z=E.length;if(z!==0){var ee=Jc(a,y),re=a.Zq;re.length=0;for(var oe=x.scale,de=tn.alloc(),fe=0;fe<z;fe++){var ye=E[fe];b.contains(ye)&&a.Oj(y,ye,x,re,oe,de,!1)}tn.free(de),y.globalAlpha=ee}}}Ie.Oj=function(a,y,x,b,E,z,ee){if(ee&&!Qd(y))a.Hs(y);else{if(b!==null&&y instanceof ei&&(y.isOrthogonal&&b.push(y),y.fd===!1)){a.Hs(y);return}for(ee=!1,b=y.containingGroup;b!==null;)ee?b.tb!==null&&z.Ex(b.tb):b.tb!==null&&(ee=!0,z.assign(b.tb)),b=b.containingGroup;var re=y.actualBounds;if(b=!1,ee&&y.isVisible()){if(!z.Yc(re)){a.Hs(y);return}b=!z.Re(re)}b&&(a.save(),a instanceof Gl?a.bk=z.copy():(a.beginPath(),a.rect(z.x,z.y,z.width,z.height),a.clip())),re.width*E>x.Oq||re.height*E>x.Oq?y.gc(a,x):(E=y.actualBounds,z=y.naturalBounds,E.width===0||E.height===0||isNaN(E.x)||isNaN(E.y)||!y.isVisible()||(x=y.transform,y.areaBackground!==null&&(ya(y,a,y.areaBackground,!0,!0,z,E),a.fillRect(E.x,E.y,E.width,E.height)),y.areaBackground===null&&y.background===null&&(ya(y,a,"rgba(0,0,0,0.3)",!0,!1,z,E),a.fillRect(E.x,E.y,E.width,E.height)),y.background!==null&&(a.transform(x.m11,x.m12,x.m21,x.m22,x.dx,x.dy),ya(y,a,y.background,!0,!1,z,E),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)))))),b&&(a.restore(),a.Vc(!0))}},Ie.g=function(a,y,x,b,E){var z=this.diagram;z!==null&&z.cb(Wo,a,this,y,x,b,E)},Ie.oi=function(a,y,x){var b=this.Pa;if(y.Ig=this,this===null&&Hs(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)),Nf(this,a,y),a},Ie.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,Hs(y),a};function Nf(a,y,x){if(y=Jp(a,y,x),x instanceof xr&&x!==null&&isNaN(x.zOrder)){if(x.memberParts.count!==0){for(var b=-1,E=a.Pa.s,z=E.length,ee=0;ee<z;ee++){var re=E[ee];if(re===x&&(y=ee,0<=b)||0>b&&re.containingGroup===x&&(b=ee,0<=y))break}!(0>b)&&b<y&&(E=a.Pa,E.mb(y),E.Gb(b,x))}y=x.containingGroup,y!==null&&Nf(a,-1,y)}x.svg!==null&&x.svg.remove()}function Jp(a,y,x){var b=x.zOrder;if(isNaN(b))return y;a=a.Pa;var E=a.count;if(1>=E)return y;if(0>y&&(y=a.indexOf(x)),0>y)return-1;for(var z=y-1,ee=NaN;0<=z&&(ee=a.M(z).zOrder,!!isNaN(ee));)z--;for(var re=y+1,oe=NaN;re<E&&(oe=a.M(re).zOrder,!!isNaN(oe));)re++;if(!isNaN(ee)&&ee>b)for(;;){if(z===-1||ee<=b){if(z++,z===y)break;return a.mb(y),a.Gb(z,x),z}for(ee=NaN;0<=--z&&(ee=a.M(z).zOrder,isNaN(ee)););}else if(!isNaN(oe)&&oe<b)for(;;){if(re===E||oe>=b){if(re--,re===y)break;return a.mb(y),a.Gb(re,x),re}for(oe=NaN;++re<E&&(oe=a.M(re).zOrder,isNaN(oe)););}return y}jt.Object.defineProperties(fs.prototype,{parts:{get:function(){return this.Pa.iterator}},partsBackwards:{get:function(){return this.Pa.iteratorBackwards}},diagram:{get:function(){return this.H}},name:{get:function(){return this.xa},set:function(a){var y=this.xa;if(y!==a){var x=this.diagram;if(x!==null)for(y===""&&vt("Cannot rename default Layer to: "+a),x=x.layers;x.next();)x.value.name===a&&vt("Layer.name is already present in this diagram: "+a);for(this.xa=a,this.g("name",y,a),a=this.Pa.iterator;a.next();)a.value.layerName=this.xa}}},opacity:{get:function(){return this.pb},set:function(a){var y=this.pb;y!==a&&((0>a||1<a)&&ri(a,"0 <= value <= 1",fs,"opacity"),this.pb=a,this.g("opacity",y,a),a=this.diagram,a!==null&&a.N())}},isTemporary:{get:function(){return this.o},set:function(a){var y=this.o;y!==a&&((this.o=a)&&(this.isInDocumentBounds=!1),this.g("isTemporary",y,a))}},visible:{get:function(){return this.u},set:function(a){var y=this.u;if(y!==a){for(this.u=a,this.g("visible",y,a),y=this.Pa.iterator;y.next();)y.value.Zb(a);a=this.diagram,a!==null&&a.N()}}},pickable:{get:function(){return this.Uh},set:function(a){var y=this.Uh;y!==a&&(this.Uh=a,this.g("pickable",y,a))}},isInDocumentBounds:{get:function(){return this.j},set:function(a){this.j!==a&&(this.j=a,this.diagram!==null&&this.diagram.Ya())}},allowCopy:{get:function(){return this.Fi},set:function(a){var y=this.Fi;y!==a&&(this.Fi=a,this.g("allowCopy",y,a))}},allowDelete:{get:function(){return this.Gi},set:function(a){var y=this.Gi;y!==a&&(this.Gi=a,this.g("allowDelete",y,a))}},allowTextEdit:{get:function(){return this.Pi},set:function(a){var y=this.Pi;y!==a&&(this.Pi=a,this.g("allowTextEdit",y,a))}},allowGroup:{get:function(){return this.Hi},set:function(a){var y=this.Hi;y!==a&&(this.Hi=a,this.g("allowGroup",y,a))}},allowUngroup:{get:function(){return this.Qi},set:function(a){var y=this.Qi;y!==a&&(this.Qi=a,this.g("allowUngroup",y,a))}},allowLink:{get:function(){return this.Ii},set:function(a){var y=this.Ii;y!==a&&(this.Ii=a,this.g("allowLink",y,a))}},allowRelink:{get:function(){return this.Ki},set:function(a){var y=this.Ki;y!==a&&(this.Ki=a,this.g("allowRelink",y,a))}},allowMove:{get:function(){return this.Ji},set:function(a){var y=this.Ji;y!==a&&(this.Ji=a,this.g("allowMove",y,a))}},allowReshape:{get:function(){return this.Li},set:function(a){var y=this.Li;y!==a&&(this.Li=a,this.g("allowReshape",y,a))}},allowResize:{get:function(){return this.Mi},set:function(a){var y=this.Mi;y!==a&&(this.Mi=a,this.g("allowResize",y,a))}},allowRotate:{get:function(){return this.Ni},set:function(a){var y=this.Ni;y!==a&&(this.Ni=a,this.g("allowRotate",y,a))}},allowSelect:{get:function(){return this.Oi},set:function(a){var y=this.Oi;y!==a&&(this.Oi=a,this.g("allowSelect",y,a))}}}),fs.prototype.findObjectsNear=fs.prototype.og,fs.prototype.findObjectsIn=fs.prototype.Cf,fs.prototype.findObjectsAt=fs.prototype.ji,fs.prototype.findObjectAt=fs.prototype.ic,fs.className="Layer";function en(a,y){if(dm||(Us(),dm=!0),qi(this),Rc=this,this.vb=!0,this.Ka=null,this.ya=this.Aa=0,this.ta=null,va){var x=this,b=function(){x.removeEventListener(In.document,"DOMContentLoaded",b,!1),x.setRTL()};In.document.body!==null?this.setRTL():x.addEventListener(In.document,"DOMContentLoaded",b,!1)}this.ol=null,Uf.add("Model",To);var E=this;return this.Hb=function(z){var ee=E.partManager;if(z.model===ee.diagram.model&&ee.diagram.aa){ee.diagram.aa=!1;try{var re=z.change;z.modelChange===""&&re===Wo&&ee.updateDataBindings(z.object,z.propertyName)}finally{ee.diagram.aa=!0}}},this.Oc=function(z){E.partManager.doModelChanged(z)},this.hu=this.ku=null,qp(this),this.model=fy(),this.Wg=!0,em(this),this.layout=new sa,this.Wg=!1,this.ck=this.ek=this.fk=this.dk=this.ui=this.aA=this.$j=this.Ov=null,this.hk=function(){},this.preventDefault=null,this.rn=!1,this.Yf=new hm,a!==void 0&&(typeof a=="string"||In.Element&&a instanceof Element?Ng(this,a):y=a),this.vb=!1,y&&this.nm(y),this}var Hd,Rc;function qp(a){a.Yd=new ks,a.Yd.Xe(a),a.Db=17,a.Gw=!1,a.tn=!1,a.bu="default",a.Wa=new Dn,a.pj=new an,a.nl="default",a.Tx(),a.Sx(),a.pb=1,a.pa=new Je(NaN,NaN).freeze(),a.du=new Je(NaN,NaN),a.Ca=1,a.Pp=1,a.zt=new Je(NaN,NaN).freeze(),a.At=NaN,a.Ot=1e-4,a.Mt=100,a.Ab=new dr,a.zu=new Je(NaN,NaN).freeze(),a.ut=new tn(NaN,NaN,NaN,NaN).freeze(),a.rj=new pr(0,0,0,0).freeze(),a.sj=vd,a.nu=!1,a.Zt=null,a.fu=null,a.yh=Zs,a.zk=Da,a.Fg=Zs,a.pq=Da,a.yt=Qi,a.Bt=Qi,a.Fc=!0,a.pn=!1,a.De=new Bn,a.Eh=new an,a.Xm=!0,a.vp=250,a.vk=-1,a.xp=new pr(16,16,16,16).freeze(),a.kg=!1,a.Jk=!1,a.fn=!0,a.bq=new es,a.bq.diagram=a,a.Qg=new es,a.Qg.diagram=a,a.cj=new es,a.cj.diagram=a,a.zg=null,a.pf=null,a.qu=!1,rv(a),a.ai=new Bn,a.Ht=!0,a.uu=yd,a.pw=!1,a.wu=$h,a.it="auto",a.Op="auto",a.zh=null,a.Fh=null,a.Bh=null,a.Qh=null,a.Oh=null,a.Nh=null,a.Qt=null,a.Lh=null,a.xt=!1,a.Mh=null,a.Ph=null,a.$h=null,a.Ch=null,a.Rt=!1,a.Yt={},a.oj=[null,null],a.Wg=!1,a.Iw=!1,a.ou=!1,a.lt=!1,a.rw=!0,a.ld=!1,a.$i=!1,a.Tw=!0,a.Ce=-2,a.Og=new an,a.Xn=new Dn,a.Gg=!1,a.Jd=!0,a.Us=!0,a.Fi=!0,a.Gi=!0,a.Vs=!1,a.Ws=!0,a.Pi=!0,a.Hi=!0,a.Qi=!0,a.Ys=!0,a.Ii=!0,a.Ki=!0,a.Ji=!0,a.Li=!0,a.Mi=!0,a.Ni=!0,a.Oi=!0,a.Zs=!0,a.at=!0,a.qw=!1,a.Vk=!1,a.mn=!0,a.nn=!0,a.Xs=!0,a.$s=!0,a.iu=16,a.mu=16,a.qr=!1,a.gu=!1,a.lu=0,a.ju=0,a.yb=new pr(5).freeze(),a.Hw=new Bn().freeze(),a.Nt=999999999,a.nw=new Bn().freeze(),a.Zi=!0,a.Ee=!0,a.vd=!0,a.Be=!1,a.gf=!1,a.xh=!0,a.hf=!1,a.sy=new Bn,a.ow=new Bn,a.Xh=null,a.aw=new Ln(8,8),a.bw=999,a.Bw=1,a.Jw=0,a.fc={scale:1,position:new Je,bounds:new tn,Py:new Ln,bA:new Ln,Oz:!1},a.fc.canvasSize=a.fc.Py,a.fc.newCanvasSize=a.fc.bA,a.fc.isScroll=!1,a.Rw=new tn(NaN,NaN,NaN,NaN).freeze(),a.wo=new Ln(NaN,NaN).freeze(),a.Sp=new tn(NaN,NaN,NaN,NaN).freeze(),a.It=!1,a.Lg=new an;var y=new Si,x=new Ko;x.bind(new Ma("text","",Ki)),y.add(x),a.ny=y,a.Lg.add("",y),y=new Si,x=new Ko,x.stroke="brown",x.bind(new Ma("text","",Ki)),y.add(x),a.Lg.add("Comment",y),y=new Si,y.selectable=!1,y.avoidable=!1,x=new Nr,x.figure="Ellipse",x.fill="black",x.stroke=null,x.desiredSize=new Ln(3,3).ja(),y.add(x),a.Lg.add("LinkLabel",y),a.Yi=new an,y=new xr,y.selectionObjectName="GROUPPANEL",y.type=Kn.Vertical,x=new Ko,x.font="bold 12pt sans-serif",x.bind(new Ma("text","",Ki)),y.add(x),x=new Kn(Kn.Auto),x.name="GROUPPANEL";var b=new Nr;b.figure="Rectangle",b.fill="rgba(128,128,128,0.2)",b.stroke="black",x.add(b),b=new sl,b.padding=new pr(5,5,5,5).ja(),x.add(b),y.add(x),a.ly=y,a.Yi.add("",y),a.Kh=new an,y=new ei,x=new Nr,x.isPanelMain=!0,y.add(x),x=new Nr,x.toArrow="Standard",x.fill="black",x.stroke=null,x.strokeWidth=0,y.add(x),a.my=y,a.Kh.add("",y),y=new ei,x=new Nr,x.isPanelMain=!0,x.stroke="brown",y.add(x),a.Kh.add("Comment",y),y=new lo,y.type=Kn.Auto,x=new Nr,x.fill=null,x.stroke="dodgerblue",x.strokeWidth=3,y.add(x),x=new sl,x.margin=new pr(1.5,1.5,1.5,1.5).ja(),y.add(x),a.St=y,a.wt=y,y=new lo,y.type=Kn.Link,x=new Nr,x.isPanelMain=!0,x.fill=null,x.stroke="dodgerblue",x.strokeWidth=3,y.add(x),a.Kt=y,a.fe=null,a.mq=!1,a.Ck=null,a.partManager=new To,a.toolManager=new jo,a.toolManager.initializeStandardTools(),a.defaultTool=a.toolManager,a.currentTool=a.defaultTool,a.nt=null,a.Wm=new ae,a.Vt=null,a.Wt=null,a.Mr=!1,a.commandHandler=$p(),a.eq=null,a.fq=Fi,a.Pw=!1,a.Mb=1,a.Yh=null,a.Oq=1,a.Sq=0,a.zw=[0,0,0,0,0],a.Tq=0,a.yq=1,a.tw=0,a.uw=new Je,a.zy=500,a.wp=new Je,a.wq=!1}en.prototype.clear=function(){this.animationManager.Cc(),this.model.clear(),Ah=null,Yd="",Pg(this,!1),this.Xn.clear(),qf(),this.Og.clear(),this.Xh=null,this.Ya(),this.Va(),this.N()};function Pg(a,y){a.animationManager.Cc(!0),a.Hw=new Bn().freeze(),a.nw=new Bn().freeze();var x=a.skipsUndoManager,b=a.cc!==null&&a.cc!==void 0;b&&(a.skipsUndoManager=!0);var E=null;a.fe!==null&&(E=a.fe.part,E!==null&&a.remove(E));var z=[],ee=a.Wa.length;if(y){for(y=0;y<ee;y++)for(var re=a.Wa.s[y].parts;re.next();){var oe=re.value;oe!==E&&oe.data===null&&z.push(oe)}for(y=0;y<z.length;y++)a.remove(z[y])}for(y=0;y<ee;y++)a.Wa.s[y].clear();return a.partManager.clear(),a.De.clear(),a.Eh.clear(),a.ai.clear(),a.Ck=null,a.Xn.clear(),qf(),a.Og.clear(),ro=[],E!==null&&(a.add(E),a.partManager.parts.remove(E)),b&&(a.skipsUndoManager=x),z}function $p(){return null}en.prototype.reset=function(){this.clear(),this.vb=!0,qp(this),Ec(this),this.Wg=!0,em(this),this.layout=new sa,this.Wg=!1,this.model=fy(),this.model.undoManager=new Bo,this.vb=this.rn=!1,this.N()},en.prototype.setRTL=function(a){a=a===void 0?this.div:a,a===null&&(a=In.document.body);var y=li("div");y.dir="rtl",y.style.cssText="font-size: 14px; width: 1px; height: 1px; position: absolute; top: -1000px; overflow: scroll;",y.textContent="A",a.appendChild(y);var x="reverse";0<y.scrollLeft?x="default":(y.scrollLeft=1,y.scrollLeft===0&&(x="negative")),a.removeChild(y),this.bu=x},en.prototype.setScrollWidth=function(a){a=a===void 0?this.div:a,a===null&&(a=In.document.body);var y=0;if(va){var x=cm;y=Hd,x===null&&(x=cm=li("p"),x.style.width="100%",x.style.height="200px",x.style.boxSizing="content-box",y=Hd=li("div"),y.style.position="absolute",y.style.visibility="hidden",y.style.width="200px",y.style.height="150px",y.style.boxSizing="content-box",y.appendChild(x)),y.style.overflow="hidden",a.appendChild(y);var b=x.offsetWidth;y.style.overflow="scroll",x=x.offsetWidth,b===x&&(x=y.clientWidth),a.removeChild(y),y=b-x,y!==0||sr||(y=11)}this.Db=y,this.Gw=!0},en.prototype.qb=function(a){a.classType===en&&(this.autoScale=a)},en.prototype.toString=function(a){a===void 0&&(a=0);var y="";if(this.div&&this.div.id&&(y=this.div.id),y='Diagram "'+y+'"',0>=a)return y;for(var x=this.Wa.iterator;x.next();)y+=`
|
|
|
`+x.value.toString(a-1);return y};function Ng(a,y){if(va){if(y!=null||vt("Diagram setup requires an argument DIV."),a.Ka!==null&&vt("Diagram has already completed setup."),typeof y=="string"?a.Ka=In.document.getElementById(y):y instanceof HTMLDivElement?a.Ka=y:vt("No DIV or DIV id supplied: "+y),a.Ka===null&&vt("Invalid DIV id; could not get element with id: "+y),a.Ka.H!==void 0&&vt("Invalid div id; div already has a Diagram associated with it."),!a.ol&&In.ResizeObserver){var x=on(function(){a.$b()},250);a.ol=new In.ResizeObserver(function(){x()}),a.ol.observe(a.Ka)}In.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=In.go;var E=new Mu(a);if(E.style!==void 0&&(E.style.position="absolute",E.style.top="0px",E.style.left="0px",In.getComputedStyle(a.Ka,null).getPropertyValue("direction")==="rtl"&&(a.tn=!0),E.style.zIndex="2",E.style.userSelect="none",E.style.MozUserSelect="none",E.style.touchAction="none",E.style.letterSpacing="normal !important",E.style.wordSpacing="normal !important"),a.ta=E,a.ib=E.context,b=a.ib,a.Mb=a.computePixelRatio(),a.viewSize.w()||(a.Aa=a.Ka.clientWidth||1,a.ya=a.Ka.clientHeight||1),Fg(a,a.Aa,a.ya),a.Ka.insertBefore(E.Oa,a.Ka.firstChild),E=new Mu(null),E.width=1,E.height=1,a.jw=E,a.oy=E.context,va){E=li("div");var z=li("div");E.style.position="absolute",E.style.overflow="auto",E.style.width=a.Aa+"px",E.style.height=a.ya+"px",E.style.zIndex="1",z.style.position="absolute",z.style.width="1px",z.style.height="1px",a.Ka.appendChild(E),E.appendChild(z),E.onscroll=nm,E.addEventListener("pointerdown",im),E.H=a,E.uy=!0,E.vy=!0,a.ku=E,a.hu=z}a.hk=on(function(){a.Yh=null,a.N()},300),a.Ov=on(function(){kg(a)},250),a.preventDefault=function(ee){return ee.preventDefault(),!1},a.$j=function(ee){if(a.isEnabled){var re=fu(a,ee,!0);re.bubbles=!0;var oe=0,de=0;re.delta=0,ee.deltaX!==void 0?(ee.deltaX!==0&&(oe=0<ee.deltaX?1:-1),ee.deltaY!==0&&(de=0<ee.deltaY?1:-1),re.delta=Math.abs(ee.deltaX)>Math.abs(ee.deltaY)?-oe:-de):ee.wheelDeltaX!==void 0?(ee.wheelDeltaX!==0&&(oe=0<ee.wheelDeltaX?-1:1),ee.wheelDeltaY!==0&&(de=0<ee.wheelDeltaY?-1:1),re.delta=Math.abs(ee.wheelDeltaX)>Math.abs(ee.wheelDeltaY)?-oe:-de):ee.wheelDelta!==void 0&&ee.wheelDelta!==0&&(re.delta=0<ee.wheelDelta?1:-1),a.doMouseWheel(),Xu(re,ee)}},a.aA=function(ee){a.isEnabled&&(a.Vk=!1,fu(a,ee,!0),ee=a.currentTool,ee.cancelWaitAfter(),ee.standardMouseOver())},a.ui=function(ee){if(a.isEnabled){a.Vk=!0;var re=a.Yt;re[ee.pointerId]===void 0&&(re[ee.pointerId]=ee),re=a.oj;var oe=!1;if(re[0]===null||re[0].pointerId!==ee.pointerId&&re[0].pointerType===ee.pointerType)if(re[1]!==null&&re[1].pointerId===ee.pointerId)re[1]=ee,oe=!0;else if(re[0]===null)re[0]=ee;else if(re[1]===null)re[1]=ee,oe=!0;else{ee.preventDefault();return}else re[0]=ee;(re=ee.pointerType==="touch"||ee.pointerType==="pen")&&(a.qu=!1,a.wq=!0);var de=oe;oe=Rg(a,ee,!0,!1,!0,de),bh(a,ee,oe),oe.targetDiagram=Mg(ee,ee.target),oe.targetObject=null,de||oe.clone(a.bq),de=a.uw,re=re?25:10,ee.timeStamp-a.tw<a.zy&&!(Math.abs(de.x-ee.screenX)>re||Math.abs(de.y-ee.screenY)>re)?a.yq++:a.yq=1,oe.clickCount=a.yq,a.tw=ee.timeStamp,a.uw.sg(ee.screenX,ee.screenY),a.doMouseDown(),ee.button===1?ee.preventDefault():Xu(oe,ee)}},a.dk=function(ee){if(a.isEnabled){a.Vk=!0;var re=a.oj;if(re[0]===null||re[0].pointerId!==ee.pointerId&&re[0].pointerType===ee.pointerType){if(re[1]!==null&&re[1].pointerId===ee.pointerId){re[1]=ee;return}if(re[0]===null)re[0]=ee;else return}else re[0]=ee;if(re[0].pointerId===ee.pointerId){re=Rg(a,ee,!1,!1,!1,re[1]!==null);var oe=In.document.elementFromPoint(ee.clientX,ee.clientY)||null;oe!==null&&oe.shadowRoot!==void 0&&oe.shadowRoot!==null&&(oe=oe.shadowRoot.elementFromPoint(ee.clientX,ee.clientY));var de=a,fe=ee;oe&&oe.H&&(fe=ee,de=oe.H),re.targetDiagram=de,bh(a,fe,re),re.targetObject=null,a.doMouseMove(),Xu(re,ee)}}},a.fk=function(ee){if(a.isEnabled){a.Vk=!0;var re=ee.pointerType==="touch"||ee.pointerType==="pen",oe=a.Yt;if(re&&a.qu)delete oe[ee.pointerId],ee.preventDefault();else if(oe=a.oj,oe[0]===null||oe[0].pointerId!==ee.pointerId&&oe[0].pointerType===ee.pointerType)oe[1]!==null&&oe[1].pointerId===ee.pointerId&&(oe[1]=null);else{oe[0]=null,oe=Rg(a,ee,!1,!0,!0,!1);var de=In.document.elementFromPoint(ee.clientX,ee.clientY)||null;de!==null&&de.shadowRoot!==void 0&&de.shadowRoot!==null&&(de=de.shadowRoot.elementFromPoint(ee.clientX,ee.clientY)),de!==null&&de.H instanceof en&&de.H!==a&&bh(de.H,ee,oe),de===null&&(de=ee.target),bh(a,ee,oe),oe.clickCount=a.yq,oe.targetDiagram=Mg(ee,de),oe.targetObject=null,a.doMouseUp(),Xu(oe,ee),re&&(a.wq=!1)}}},a.ek=function(ee){if(a.isEnabled){a.Vk=!1;var re=a.Yt;re[ee.pointerId]&&delete re[ee.pointerId],re=a.oj,re[0]!==null&&re[0].pointerId===ee.pointerId&&(re[0]=null),re[1]!==null&&re[1].pointerId===ee.pointerId&&(re[1]=null),ee.pointerType!=="touch"&&ee.pointerType!=="pen"&&(ee=a.currentTool,ee.cancelWaitAfter(),ee.standardMouseOver())}},a.ck=function(ee){var re=a.oj;re[0]!==null&&re[0].pointerId===ee.pointerId?(re[0]=null,a.wq=!1):re[1]!==null&&re[1].pointerId===ee.pointerId&&(re[1]=null)},a.Vp=b.Z["d"+nf[1]+nf[2]+"wI"+Nh.slice(1,5)]["b"+jx.slice(1,y)](b.Z,tf,y,y),b.Vc(!0),iv(a),a.nl==="svg"&&(y=a.pj.get("svg"),a.Ka.appendChild(y.Oa),a.ib=y.context)}}en.prototype.addEventListener=function(a,y,x,b){a.addEventListener(y,x,{capture:b,passive:!1})},en.prototype.removeEventListener=function(a,y,x,b){a.removeEventListener(y,x,{capture:b})};function iv(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(In,"resize",a.Ov,!1)}function xl(a){30<a.Sq&&(a.Yh=1)}function Zh(a,y){a.Yh!==null&&(a.Yh=null,y&&a.hk(),Gi&&Gi.nx||(a.Sq=0,a.zw=[0,0,0,0,0],a.Tq=0))}en.prototype.computePixelRatio=function(){return this.Yh!==null?this.Yh:In.devicePixelRatio||1},en.prototype.doMouseMove=function(){this.currentTool.doMouseMove()},en.prototype.doMouseDown=function(){this.currentTool.doMouseDown()},en.prototype.doMouseUp=function(){this.currentTool.doMouseUp()},en.prototype.doMouseWheel=function(){this.currentTool.doMouseWheel()},en.prototype.doKeyDown=function(){this.currentTool.doKeyDown()},en.prototype.doKeyUp=function(){this.currentTool.doKeyUp()},en.prototype.doFocus=function(){this.focus()},en.prototype.focus=function(){if(this.ta)if(this.scrollsPageOnFocus)this.ta.focus();else{var a=In.scrollX||In.pageXOffset,y=In.scrollY||In.pageYOffset;this.ta.focus(),In.scrollTo(a,y)}},en.prototype.Oy=function(){this.H.R("GainedFocus")},en.prototype.Ny=function(){this.H.R("LostFocus")};function kg(a){if(a.ta!==null){var y=a.Ka;if(y!==null&&y.clientWidth!==0&&y.clientHeight!==0){a.Gw||a.setScrollWidth();var x=a.gf?a.Db:0,b=a.Be?a.Db:0,E=a.Mb;a.Mb=a.computePixelRatio(),a.Mb!==E&&(a.pn=!0,a.$b()),(y.clientWidth!==a.Aa+x||y.clientHeight!==a.ya+b)&&(a.Ee=!0,a.Fc=!0,y=a.layout,y!==null&&y.isViewportSized&&a.autoScale===Zs&&(a.Jk=!0,y.C()),a.ld||a.$b())}}}function em(a){var y=new fs;y.name="Background",a.Al(y),y=new fs,y.name="",a.Al(y),y=new fs,y.name="Foreground",a.Al(y),y=new fs,y.name="Adornment",y.isTemporary=!0,y.isInDocumentBounds=!1,a.Al(y),y=new fs,y.name="Tool",y.isTemporary=!0,y.isInDocumentBounds=!0,a.Al(y),y=new fs,y.name="Grid",y.allowSelect=!1,y.pickable=!1,y.isTemporary=!0,y.isInDocumentBounds=!1,a.Ww(y,a.Qj("Background"))}function tm(a){var y=new Kn(Kn.Grid);y.name="GRID";var x=new Nr;return x.figure="LineH",x.stroke="lightgray",x.strokeWidth=.5,x.interval=1,y.add(x),x=new Nr,x.figure="LineH",x.stroke="gray",x.strokeWidth=.5,x.interval=5,y.add(x),x=new Nr,x.figure="LineH",x.stroke="gray",x.strokeWidth=1,x.interval=10,y.add(x),x=new Nr,x.figure="LineV",x.stroke="lightgray",x.strokeWidth=.5,x.interval=1,y.add(x),x=new Nr,x.figure="LineV",x.stroke="gray",x.strokeWidth=.5,x.interval=5,y.add(x),x=new Nr,x.figure="LineV",x.stroke="gray",x.strokeWidth=1,x.interval=10,y.add(x),x=new Zi,x.add(y),x.layerName="Grid",x.zOrder=0,x.isInDocumentBounds=!1,x.isAnimated=!1,x.pickable=!1,x.locationObjectName="GRID",a.add(x),a.partManager.parts.remove(x),y.visible=!1,y}function nm(){this.H.gu?this.H.gu=!1:this.H.isEnabled?this.H.kx(this):Ch(this.H)}function im(a){this.H.isEnabled?(this.H.lu=a.target.scrollTop,this.H.ju=a.target.scrollLeft):Ch(this.H)}en.prototype.kx=function(a){if(this.ta!==null){var y=this.ku,x=this.hu;this.qr=!0;var b=this.documentBounds,E=this.viewportBounds,z=this.rj,ee=b.x-z.left,re=b.y-z.top,oe=b.width+z.left+z.right,de=b.height+z.top+z.bottom,fe=b.right+z.right;z=b.bottom+z.bottom;var ye=E.x;b=E.y;var Ce=E.width,Ne=E.height,Oe=E.right,Ve=E.bottom;E=this.scale;var ft=a.scrollLeft;if(this.tn)switch(this.bu){case"negative":ft=ft+a.scrollWidth-a.clientWidth;break;case"reverse":ft=a.scrollWidth-ft-a.clientWidth}var lt=ft;Ce<oe||Ne<de?(ft=Je.allocAt(this.position.x,this.position.y),this.allowHorizontalScroll&&this.ju!==lt&&(ft.x=lt/E+ee,this.ju=lt),this.allowVerticalScroll&&this.lu!==a.scrollTop&&(ft.y=a.scrollTop/E+re,this.lu=a.scrollTop),this.position=ft,Je.free(ft),this.Ee=this.qr=!1):(ft=Je.alloc(),a.uy&&this.allowHorizontalScroll&&(ee<ye&&(this.position=ft.h(lt+ee,this.position.y)),fe>Oe&&(this.position=ft.h(-(y.scrollWidth-this.Aa)+lt-this.Aa/E+fe,this.position.y))),a.vy&&this.allowVerticalScroll&&(re<b&&(this.position=ft.h(this.position.x,a.scrollTop+re)),z>Ve&&(this.position=ft.h(this.position.x,-(y.scrollHeight-this.ya)+a.scrollTop-this.ya/E+z))),Je.free(ft),this.vd=!0,this.Ee=this.qr=!1,b=this.documentBounds,E=this.viewportBounds,fe=b.right,Oe=E.right,z=b.bottom,Ve=E.bottom,ee=b.x,ye=E.x,re=b.y,b=E.y,Ce>=oe&&ee>=ye&&fe<=Oe&&(x.style.width="1px"),Ne>=de&&re>=b&&z<=Ve&&(x.style.height="1px"))}},en.prototype.computeBounds=function(a){return a===void 0&&(a=new tn),Ls(this),Lg(this,a)};function Lg(a,y){if(a.fixedBounds.w())return y.assign(a.fixedBounds),y.Co(a.yb),y;for(var x=!0,b=a.Wa.s,E=b.length,z=0;z<E;z++){var ee=b[z];if(ee.visible&&ee.isInDocumentBounds){ee=ee.Pa.s;for(var re=ee.length,oe=0;oe<re;oe++){var de=ee[oe];de.isInDocumentBounds&&de.isVisible()&&(de=de.actualBounds,de.w()&&(x?(x=!1,y.assign(de)):y.ed(de)))}}}return x&&y.h(0,0,0,0),y.Co(a.yb),y}en.prototype.computePartsBounds=function(a,y){y===void 0&&(y=!1);var x=null;if(wn(a))for(var b=0;b<a.length;b++){var E=a[b];!y&&E instanceof ei||(E.Va(),x===null?x=E.actualBounds.copy():x.ed(E.actualBounds))}else for(a=a.iterator;a.next();)b=a.value,!y&&b instanceof ei||(b.Va(),x===null?x=b.actualBounds.copy():x.ed(b.actualBounds));return x===null?new tn(NaN,NaN,0,0):x};function Lu(a,y){if((y||a.hf)&&!a.vb&&a.ta!==null&&a.documentBounds.w()){if(a.vb=!0,y){var x=a.initialPosition;if(x.w()){a.vb=!1,a.position=x;return}x=Je.alloc(),x.xi(a.documentBounds,a.initialDocumentSpot);var b=a.viewportBounds;b=tn.allocAt(0,0,b.width,b.height);var E=Je.alloc();E.xi(b,a.initialViewportSpot),E.h(x.x-E.x,x.y-E.y),a.position=E,tn.free(b),Je.free(E),Je.free(x)}x=a.yh,y&&a.Fg!==Zs&&(x=a.Fg);var z=x!==Zs?xh(a,x):a.scale;x=a.pa.x,b=a.pa.y,E=a.Aa/z;var ee=a.ya/z,re=a.zk,oe=a.pq;y&&!re.sb()&&(oe.sb()||oe.Xb())&&(re=oe.Xb()?mr:oe),Ig(a,a.documentBounds,E,ee,re,y),y=a.scale,a.scale=z,a.vb=!1,z=a.viewportBounds,Bt.B(z.x,x)&&Bt.B(z.y,b)&&Bt.B(z.width,E)&&Bt.B(z.height,ee)||a.onViewportBoundsChanged(new tn(x,b,E,ee),z,y,!1)}}function xh(a,y){var x=a.Pp;if(a.ta===null)return x;a.Va();var b=a.documentBounds;if(!b.w())return x;var E=b.width;b=b.height;var z=a.Aa+(a.gf?a.Db:0),ee=a.ya+(a.Be?a.Db:0),re=z/E,oe=ee/b;return y===nu?(y=Math.min(oe,re),y>x&&(y=x),y<a.minScale&&(y=a.minScale),y>a.maxScale&&(y=a.maxScale),y):y===Kd?(y=oe>re?(ee-a.Db)/b:(z-a.Db)/E,y>x&&(y=x),y<a.minScale&&(y=a.minScale),y>a.maxScale&&(y=a.maxScale),y):a.scale}en.prototype.zoomToFit=function(){var a=this.sj;this.sj=vd,this.scale=xh(this,nu),a!==vd&&(Lu(this,!1),Ig(this,this.documentBounds,this.Aa/this.Ca,this.ya/this.Ca,this.zk,!1)),this.sj=a},Ie=en.prototype,Ie.BA=function(a,y){y===void 0&&(y=nu);var x=a.width,b=a.height;if(!(x===0||b===0||isNaN(x)&&isNaN(b))){var E=1;if(y===nu||y===Kd)if(isNaN(x))E=this.viewportBounds.height*this.scale/b;else if(isNaN(b))E=this.viewportBounds.width*this.scale/x;else{E=this.Aa;var z=this.ya;E=y===Kd?z/b>E/x?(z-(this.Be?this.Db:0))/b:(E-(this.gf?this.Db:0))/x:Math.min(z/b,E/x)}this.scale=E,this.position=new Je(a.x,a.y)}},Ie.Jy=function(a,y){this.Va();var x=this.documentBounds,b=this.viewportBounds;this.position=new Je(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))},Ie.zz=function(a){if(a instanceof Ot){this.eq=a;var y=Je.alloc();this.fq=this.op(a.ga(Qi,y)),Je.free(y)}else this.eq=null,this.fq=Fi};function Ig(a,y,x,b,E,z){var ee=Je.allocAt(a.pa.x,a.pa.y),re=ee.x,oe=ee.y;if(a.eq!==null){var de=Je.alloc();de=a.eq.ga(Qi,de),re=de.x-a.fq.x/a.scale,oe=de.y-a.fq.y/a.scale,E=Ni,Je.free(de)}(z||a.scrollMode===vd)&&(E.sb()&&(x>y.width&&(re=y.x+(E.x*y.width+E.offsetX)-(E.x*x-E.offsetX)),b>y.height&&(oe=y.y+(E.y*y.height+E.offsetY)-(E.y*b-E.offsetY))),E=a.rj,z=x-y.width,x<y.width+E.left+E.right?(re=Math.min(re+x/2,y.right+Math.max(z,E.right)-x/2),re=Math.max(re,y.left-Math.max(z,E.left)+x/2),re-=x/2):re>y.left?re=y.left:re<y.right-x&&(re=y.right-x),x=b-y.height,b<y.height+E.top+E.bottom?(oe=Math.min(oe+b/2,y.bottom+Math.max(x,E.bottom)-b/2),oe=Math.max(oe,y.top-Math.max(x,E.top)+b/2),oe-=b/2):oe>y.top?oe=y.top:oe<y.bottom-b&&(oe=y.bottom-b)),ee.x=isFinite(re)?re:-a.yb.left,ee.y=isFinite(oe)?oe:-a.yb.top,a.positionComputation!==null&&(y=a.positionComputation(a,ee),ee.x=y.x,ee.y=y.y),zd(a.Yd,a.pa,ee),a.pa.h(ee.x,ee.y),Ec(a),Je.free(ee)}Ie.Ol=function(a,y){if(y===void 0&&(y=!0),y){if(a=Oc(this,a,function(x){return x.part},function(x){return x.canSelect()}),a instanceof Zi)return a}else if(a=Oc(this,a,function(x){return x.part}),a instanceof Zi)return a;return null},Ie.ic=function(a,y,x){y===void 0&&(y=null),x===void 0&&(x=null),Ls(this);for(var b=this.Wa.iteratorBackwards;b.next();){var E=b.value;if(E.visible&&(E=E.ic(a,y,x),E!==null))return E}return null};function Oc(a,y,x,b){for(x===void 0&&(x=null),b===void 0&&(b=null),Ls(a),a=a.Wa.iteratorBackwards;a.next();){var E=a.value;if(E.visible&&!E.isTemporary&&(E=E.ic(y,x,b),E!==null))return E}return null}Ie.lz=function(a,y,x){return y===void 0&&(y=!0),Xh(this,a,function(b){return b.part},y?function(b){return b instanceof Zi&&b.canSelect()}:null,x)};function Xh(a,y,x,b,E){for(x===void 0&&(x=null),b===void 0&&(b=null),E instanceof Dn||E instanceof Bn||(E=new Bn),Ls(a),a=a.Wa.iteratorBackwards;a.next();){var z=a.value;z.visible&&!z.isTemporary&&z.ji(y,x,b,E)}return E}Ie.ji=function(a,y,x,b){y===void 0&&(y=null),x===void 0&&(x=null),b instanceof Dn||b instanceof Bn||(b=new Bn),Ls(this);for(var E=this.Wa.iteratorBackwards;E.next();){var z=E.value;z.visible&&z.ji(a,y,x,b)}return b},Ie.ux=function(a,y,x,b){return y===void 0&&(y=!1),x===void 0&&(x=!0),kf(this,a,function(E){return E instanceof Zi&&(!x||E.canSelect())},y,b)},Ie.Cf=function(a,y,x,b,E){y===void 0&&(y=null),x===void 0&&(x=null),b===void 0&&(b=!1),E instanceof Dn||E instanceof Bn||(E=new Bn),Ls(this);for(var z=this.Wa.iteratorBackwards;z.next();){var ee=z.value;ee.visible&&ee.Cf(a,y,x,b,E)}return E},Ie.Nu=function(a,y,x,b,E,z){var ee=new Bn;Ls(this);for(var re=this.Wa.iteratorBackwards;re.next();){var oe=re.value;oe.visible&&oe.Nu(a,y,x,b,ee,E,z)}return ee};function kf(a,y,x,b,E){var z=null;for(z===void 0&&(z=null),x===void 0&&(x=null),b===void 0&&(b=!1),E instanceof Dn||E instanceof Bn||(E=new Bn),Ls(a),a=a.Wa.iteratorBackwards;a.next();){var ee=a.value;ee.visible&&!ee.isTemporary&&ee.Cf(y,z,x,b,E)}return E}Ie.mz=function(a,y,x,b,E){return x===void 0&&(x=!0),b===void 0&&(b=!0),Qh(this,a,y,function(z){return z instanceof Zi&&(!b||z.canSelect())},x,E)},Ie.og=function(a,y,x,b,E,z){x===void 0&&(x=null),b===void 0&&(b=null),E===void 0&&(E=!0),E!==!1&&E!==!0&&((E instanceof Dn||E instanceof Bn)&&(z=E),E=!0),z instanceof Dn||z instanceof Bn||(z=new Bn),Ls(this);for(var ee=this.Wa.iteratorBackwards;ee.next();){var re=ee.value;re.visible&&re.og(a,y,x,b,E,z)}return z};function Qh(a,y,x,b,E,z){var ee=null;for(ee===void 0&&(ee=null),b===void 0&&(b=null),E===void 0&&(E=!0),E!==!1&&E!==!0&&((E instanceof Dn||E instanceof Bn)&&(z=E),E=!0),z instanceof Dn||z instanceof Bn||(z=new Bn),Ls(a),a=a.Wa.iteratorBackwards;a.next();){var re=a.value;re.visible&&!re.isTemporary&&re.og(y,x,ee,b,E,z)}return z}en.prototype.acceptEvent=function(a){return fu(this,a,a instanceof MouseEvent)};function fu(a,y,x){var b=a.Qg;return a.Qg=a.cj,a.cj=b,b.diagram=a,b.event=y,x?bh(a,y,b):(b.viewPoint=a.Qg.viewPoint,b.documentPoint=a.Qg.documentPoint),a=0,y.ctrlKey&&(a+=1),y.altKey&&(a+=2),y.shiftKey&&(a+=4),y.metaKey&&(a+=8),b.modifiers=a,b.button=y.button,y.buttons!==void 0&&(b.buttons=y.buttons),sr&&y.button===0&&y.ctrlKey&&(b.button=2),b.down=!1,b.up=!1,b.clickCount=1,b.delta=0,b.handled=!1,b.bubbles=!1,b.timestamp=y.timeStamp,b.isMultiTouch=!1,b.targetDiagram=Mg(y,y.target),b.targetObject=null,b}function Mg(a,y){return y===null?null:(y=y.H)?y:((y=a.path)||typeof a.composedPath!="function"||(y=a.composedPath()),y&&y[0]&&y[0].H?y[0].H:null)}function Rg(a,y,x,b,E,z){var ee=a.Qg;return a.Qg=a.cj,a.cj=ee,ee.diagram=a,ee.clickCount=1,a=ee.delta=0,y.ctrlKey&&(a+=1),y.altKey&&(a+=2),y.shiftKey&&(a+=4),y.metaKey&&(a+=8),ee.modifiers=a,ee.event=y,ee.timestamp=y.timeStamp,ee.button=y.button,ee.buttons=y.buttons,sr&&y.button===0&&y.ctrlKey&&(ee.button=2),ee.down=x,ee.up=b,ee.handled=!1,ee.bubbles=E,ee.isMultiTouch=z,ee}function Xu(a,y){return a.bubbles?!0:(y.stopPropagation!==void 0&&y.stopPropagation(),y.cancelable!==!1&&y.preventDefault(),y.cancelBubble=!0,!1)}en.prototype.Qz=function(a){var y=this.H;if(!this.H.isEnabled)return!1;var x=fu(y,a,!1);switch(x.key=String.fromCharCode(a.which),x.down=!0,a.which){case 8:x.key="Backspace";break;case 33:x.key="PageUp";break;case 34:x.key="PageDown";break;case 35:x.key="End";break;case 36:x.key="Home";break;case 37:x.key="Left";break;case 38:x.key="Up";break;case 39:x.key="Right";break;case 40:x.key="Down";break;case 45:x.key="Insert";break;case 46:x.key="Del";break;case 48:x.key="0";break;case 187:case 61:case 107:x.key="Add";break;case 189:case 173:case 109:x.key="Subtract";break;case 27:x.key="Esc"}return y.doKeyDown(),Xu(x,a)},en.prototype.Rz=function(a){var y=this.H;if(!y.isEnabled)return!1;var x=fu(y,a,!1);switch(x.key=String.fromCharCode(a.which),x.up=!0,a.which){case 8:x.key="Backspace";break;case 33:x.key="PageUp";break;case 34:x.key="PageDown";break;case 35:x.key="End";break;case 36:x.key="Home";break;case 37:x.key="Left";break;case 38:x.key="Up";break;case 39:x.key="Right";break;case 40:x.key="Down";break;case 45:x.key="Insert";break;case 46:x.key="Del"}return y.doKeyUp(),Xu(x,a)},en.prototype.bz=function(a){var y=this.H;if(!y.isEnabled)return!1;var x=fu(y,a,!0);return y.mouseEnter!==null&&y.mouseEnter(x),y.currentTool.standardMouseOver(),Xu(x,a)},en.prototype.cz=function(a){var y=this.H;if(!y.isEnabled)return!1;var x=fu(y,a,!0);return y.mouseLeave!==null&&y.mouseLeave(x),Xu(x,a)},en.prototype.getMouse=function(a){var y=this.ta;if(y===null)return new Je(0,0);var x=y.getBoundingClientRect();return y=a.clientX-this.Aa/x.width*x.left,a=a.clientY-this.ya/x.height*x.top,this.Ab!==null?xi(new Je(y,a),this.Ab):new Je(y,a)};function bh(a,y,x){var b=a.ta,E=a.Aa,z=a.ya,ee=0,re=0;b!==null&&(b=b.getBoundingClientRect(),ee=y.clientX-E/b.width*b.left,re=y.clientY-z/b.height*b.top),x.viewPoint.h(ee,re),a.Ab!==null?(y=Je.allocAt(ee,re),a.Ab.Cd(y),x.documentPoint.assign(y),Je.free(y)):x.documentPoint.h(ee,re)}function Og(a,y,x){if(a.oj[0]!==null){y=a.oj[y];var b=a.ta;b!==null&&(b=b.getBoundingClientRect(),x.h(y.clientX-a.Aa/b.width*b.left,y.clientY-a.ya/b.height*b.top))}}en.prototype.Ya=function(){this.Zi||(this.Zi=!0,this.$b(!1))};function rm(a){a.ld||Ls(a),a.Va()}en.prototype.redraw=function(){this.vb||this.ld||(this.N(),this.bd())},Ie=en.prototype,Ie.Pz=function(){return this.kg},Ie.Xy=function(a){a===void 0&&(a=null);var y=this.animationManager,x=y.isEnabled;y.Cc(),y.isEnabled=!1,gu(this),this.hf=!1,this.du=new Je(NaN,NaN),y.isEnabled=x,this.ld=!0;var b=this;a!==null&&Gt(function(){b.ld=!1,$a(y,"Model"),a(b)},1)},Ie.$b=function(a){if(a===void 0&&(a=!1),this.kg!==!0&&!(this.vb||a===!1&&this.ld)){this.kg=!0;var y=this;In.requestAnimationFrame(function(){y.kg&&y.bd()})}},Ie.bd=function(){(!this.fn||this.kg)&&(this.fn&&(this.fn=!1),gu(this))};function jd(a,y,x){!a.Ee||a.vb||a.animationManager.defaultAnimation.isAnimating||Ch(a)||(y&&Ls(a),x&&Lu(a,!1))}function gu(a,y){if(!a.ld&&(a.kg=!1,a.Ka!==null||a.wo.w())){a.ld=!0;var x=a.animationManager,b=a.Xn;if(!x.isAnimating&&b.length!==0){for(var E=b.s,z=E.length,ee=0;ee<z;ee++){var re=E[ee];za(re,!1),re.v()}b.clear()}b=a.ow,0<b.count&&(b.each(function(oe){oe.Nv()}),b.clear()),E=b=!1,x.defaultAnimation.isAnimating&&(E=!0,b=a.skipsUndoManager,a.skipsUndoManager=!0),x.zb||kg(a),jd(a,!1,!0),a.fe!==null&&(a.fe.visible&&!a.mq&&(bc(a),a.mq=!0),!a.fe.visible&&a.mq&&(a.mq=!1)),Ls(a),z=!1,(!a.hf||a.xh)&&(a.hf?Wg(a,!a.Jk):(a.Ea("Initial Layout"),x.isEnabled===!1&&x.Cc(),Wg(a,!1)),z=!0),a.Jk=!1,Ls(a),a.ou||rm(a),jd(a,!0,!1),ee=!1,z?(x=tn.alloc(),x.assign(a.viewportBounds),a.hf||(ee=a.hf=!0,a.skipsUndoManager||(a.undoManager.isPendingClear=!0),a.undoManager.isPendingUnmodified=!0,Dg(a)),a.R("LayoutCompleted"),jd(a,!0,!1),tn.free(x)):x.Ok&&x.Qw&&(a.Fg!==Zs?a.scale=xh(a,a.Fg):a.yh!==Zs?a.scale=xh(a,a.yh):(x=a.initialScale,isFinite(x)&&0<x&&(a.scale=x)),Lu(a,!0)),z&&ee&&a.eb("Initial Layout"),Ls(a),y||a.gc(a.ib),E&&(a.skipsUndoManager=b),a.ld=!1}}function Dg(a){if(a.Fg!==Zs)a.scale=xh(a,a.Fg);else if(a.yh!==Zs)a.scale=xh(a,a.yh);else{var y=a.initialScale;isFinite(y)&&0<y&&(a.scale=y)}Lu(a,!0),y=a.Wa.s,a.Fd(y,y.length,a,a.viewportBounds),a.R("InitialLayoutCompleted"),a.du.assign(a.pa),bc(a)}function Ls(a){if(a.De.count!==0&&(a.ld||!a.animationManager.isTicking)){for(var y=0;23>y;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(b){b instanceof xr&&b.U&65536&&(b.U=b.U^65536)})}}Ie.Nv=function(a,y){for(a.reset();a.next();){var x=a.value;!x.Zc()||x instanceof xr||(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x))}for(a.reset();a.next();)x=a.value,x instanceof xr&&x.isVisible()&&Jh(this,x);for(a.reset();a.next();)x=a.value,x instanceof ei&&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 lo&&x.isVisible()&&(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x))};function Jh(a,y){for(var x=Mi(),b=Mi(),E=y.memberParts;E.next();){var z=E.value;z.isVisible()&&(z instanceof xr?(ru(z)||ol(z)||Xd(z))&&Jh(a,z):z instanceof ei?z.fromNode===y||z.toNode===y?b.push(z):x.push(z):(z.measure(1/0,1/0),z.arrange()))}for(a=x.length,E=0;E<a;E++)z=x[E],z.measure(1/0,1/0),z.arrange();for(ui(x),y.measure(1/0,1/0),y.arrange(),a=b.length,y=0;y<a;y++)x=b[y],x.measure(1/0,1/0),x.arrange();ui(b)}Ie.Fd=function(a,y,x,b){if(this.vd||this.animationManager.isAnimating)for(var E=0;E<y;E++)a[E].Fd(x,b)},Ie.gc=function(a){if(this.Ka!==null){if(this.ta===null&&vt("No canvas specified"),this.nl==="svg"){if(this.Ka!==null){var y=this.animationManager;if(!y.zb&&(!y.isAnimating||y.isTicking)){wh(this);var x=this.Aa,b=this.ya;if(a.Gv.resize(x,b,x,b),x=this.Wa.s,b=x.length,this.Fd(x,b,this,this.viewportBounds),this.Fc||y.isAnimating){y=this.pa;var E=this.Ca,z=Math.round(y.x*E)/E,ee=Math.round(y.y*E)/E,re=this.Ab;for(re.reset(),E!==1&&re.scale(E),y.x===0&&y.y===0||re.translate(-z,-ee),a.ti=null,$y(a,re.m11,re.m12,re.m21,re.m22,re.dx,re.dy),this.pb!==1&&(a.globalAlpha=this.pb),pd(this,a),y=this.Mb,this.ta.context.setTransform(y,0,0,y,0,0),this.ta.context.clearRect(0,0,this.Aa,this.ya),y=0;y<b;y++)x[y].gc(a,this);a=!1,this.Yf?kh(this.Yf,this)&&(a=this.Vp()):a=!0,a&&(dr.prototype.Cd=dr.prototype.Eu),this.Fc=this.vd=!1}}}}else e:if(z=this.animationManager,!z.zb&&(!z.isAnimating||z.isTicking)&&(x=new Date,wh(this),this.Ka.style.opacity!=="0")){if(b=a!==this.ib,y=this.Wa.s,E=y.length,this.Fd(y,E,this,this.viewportBounds),b)a.Vc(!0),this.vd=!0;else if(!this.Fc&&!z.isAnimating)break e;z=this.Ab,z.reset(),ee=this.Mb,re=this.pa;var oe=this.Ca,de=Math.round(re.x*oe)/oe,fe=Math.round(re.y*oe)/oe;for(oe!==1&&z.scale(oe),re.x===0&&re.y===0||z.translate(-de,-fe),a.setTransform(ee,0,0,ee,0,0),a.clearRect(0,0,this.Aa,this.ya),this.pb!==1&&(a.globalAlpha=this.pb),pd(this,a),re=0;re<E;re++)a.setTransform(ee,0,0,ee,0,0),a.transform(z.m11,z.m12,z.m21,z.m22,z.dx,z.dy),a.yc(),y[re].gc(a,this);if(y=!1,this.Yf?kh(this.Yf,this)&&(y=this.Vp()):y=!0,y&&(dr.prototype.Cd=dr.prototype.Eu),b?(this.ib.Vc(!0),this.vd=!0):this.Fc=this.vd=!1,y=+new Date-+x,b=Gi&&Gi.nx,x=this.zw,b||this.Yh===null){for(x[this.Tq]=y,this.Tq=(this.Tq+1)%x.length,E=y=0;E<x.length;E++)y+=x[E];this.Sq=y/x.length}if(this.pb!==1&&(a.globalAlpha=1),b)for(a.setTransform(1,0,0,1,0,0),b=0;b<x.length;b++)a.fillText(x[b].toString(),20,150+ +(20*b))}}};function Lf(a,y,x,b,E,z,ee,re,oe,de){if(a.Ka!==null){a.ta===null&&vt("No canvas specified"),ee===void 0&&(ee=null),re===void 0&&(re=null),oe===void 0&&(oe=!1),de===void 0&&(de=!1),wh(a),a.ib.Vc(!0),a.vd=!0,a.$i=!0;var fe=a.Ca;a.Ca=E;var ye=a.Wa.s,Ce=ye.length;try{var Ne=new tn(z.x,z.y,b.width/E,b.height/E),Oe=Ne.copy();Oe.Co(x),bc(a,Oe),Ls(a),a.Fd(ye,Ce,a,Ne),y.setTransform(1,0,0,1,0,0),y.clearRect(0,0,b.width,b.height),re!==null&&re!==""&&(y.fillStyle=re,y.ox(0,0,b.width,b.height));var Ve=a.Mb;y.scale(Ve,Ve);var ft=dr.alloc();ft.reset(),ft.translate(x.left,x.top),ft.scale(E),z.x===0&&z.y===0||ft.translate(-z.x,-z.y),y.setTransform(ft.m11,ft.m12,ft.m21,ft.m22,ft.dx,ft.dy),y.yc(),y instanceof Gl&&$y(y,ft.m11,ft.m12,ft.m21,ft.m22,ft.dx,ft.dy),dr.free(ft),pd(a,y),y.globalAlpha=a.pb;var lt=a.Qj("Grid");if(ee){var mt=new Bn,St=ee.iterator;for(St.reset();St.next();){var Ct=St.value;Ct instanceof Zi&&(de||Ct.layer!==lt)&&(Ct.Gj(),mt.add(Ct))}for(de=0;de<Ce;de++)Qp(ye[de],y,a,mt,oe);mt.each(function($t){return $t.Gj()})}else for(mt=0;mt<Ce;mt++){var Rt=ye[mt];Rt===lt?de&&Rt.gc(y,a,!0):Rt.gc(y,a,oe)}a.$i=!1,a.Yf&&kh(a.Yf,a)&&a.Vp()}finally{a.Ca=fe,a.ib.Vc(!0),a.vd=!0,a.Fd(ye,Ce,a,a.viewportBounds),bc(a),a.ib instanceof Gl&&(a.ib.Nj.PA(),a.redraw())}}}Ie.Gf=function(a){return this.Rg[a]},Ie.Xx=function(a,y){a==="minDrawingLength"&&(this.Oq=y),this.Rg[a]=y,this.redraw()},Ie.Tx=function(){this.Rg=new Ji,this.Rg.drawShadows=!0,this.Rg.textGreeking=!0,this.Rg.viewportOptimizations=!(sr||Kt),this.Rg.temporaryPixelRatio=!0,this.Rg.pictureRatioOptimization=!0,this.Oq=this.Rg.minDrawingLength=1};function pd(a,y){a=a.Rg,a!==null&&(a.imageSmoothingEnabled!==void 0&&y.Wx(!!a.imageSmoothingEnabled),a=a.defaultFont,a!=null&&(y.font=a))}Ie.Ql=function(a){return this.on[a]},Ie.sA=function(a,y){this.on[a]=y},Ie.Sx=function(){this.on=new Ji,this.on.extraTouchArea=10,this.on.extraTouchThreshold=10,this.on.hasGestureZoom=!0},Ie.set=function(a){return Object.assign(this,a),this},Ie.Du=function(a){return this.nm(a)},Ie.nm=function(a){return Eh(this,a),this};function Eh(a,y){var x=a instanceof Kn,b=a instanceof en,E;for(E in y){E===""&&vt("Setting properties requires non-empty property names");var z=a,ee=E;if(x||b){var re=E.indexOf(".");if(0<re){var oe=E.substring(0,re);x?z=a.fb(oe):(z=a[oe],z==null&&(z=a.toolManager[oe])),zt(z)?ee=E.substr(re+1):vt("Unable to find object named: "+oe+" in "+a.toString()+" when trying to set property: "+E)}}if(ee[0]!=="_"&&!er(z,ee))if(b&&ee==="ModelChanged"){a.Yw(y[ee]);continue}else if(b&&ee==="Changed"){a.Pe(y[ee]);continue}else if(b&&er(a.toolManager,ee))z=a.toolManager;else if(b&&sm(a,ee)){a.Bj(ee,y[ee]);continue}else if(a instanceof Hi&&ee==="Changed"){a.Pe(y[ee]);continue}else vt('Trying to set undefined property "'+ee+'" on object: '+z.toString());z[ee]=y[E],ee[0]==="_"&&z instanceof Ot&&z.Vw(ee)}}Ie.bx=function(){if(this.Eh.count!==0&&!(1<this.undoManager.transactionLevel)){for(;0<this.Eh.count;){var a=this.Eh;for(this.Eh=new an,a=a.iterator;a.next();){var y=a.key;y.Xo(a.value),y.qc()}}this.N()}},Ie.N=function(a){if(a===void 0)this.Fc=!0,this.$b();else{var y=this.viewportBounds;a.w()&&y.Yc(a)&&(this.Fc=!0,this.$b())}this.R("InvalidateDraw")},en.prototype.invalidateViewport=function(a,y){if(this.Fc!==!0)if(this.Fc=!0,this.nl==="svg")this.bd();else{var x=this.Gf("temporaryPixelRatio")===!0;if(this.Gf("viewportOptimizations")===!0&&this.scrollMode!==ef&&this.rj.hi(0,0,0,0)&&y.width===a.width&&y.height===a.height){var b=this.scale,E=Math.max(a.y,y.y),z=Math.min(a.y+a.height,y.y+y.height);if(0<Math.max(0,Math.min(a.x+a.width,y.x+y.width)-Math.max(a.x,y.x))*b&&0<Math.max(0,z-E)*b){if(!(this.ld||(this.kg=!1,this.Ka===null||(this.ld=!0,this.documentBounds.w()||(b=tn.alloc(),Gg(this,this.computeBounds(b)),tn.free(b)),b=this.ta,b===null||b instanceof wc)))){var ee=this.Mb;E=this.Aa*ee;var re=this.ya*ee,oe=this.scale*ee;z=Math.round(Math.round(y.x*oe)-Math.round(a.x*oe)),y=Math.round(Math.round(y.y*oe)-Math.round(a.y*oe)),oe=this.jw,a=this.oy,oe.width!==E&&(oe.width=E),oe.height!==re&&(oe.height=re),a.clearRect(0,0,E,re),oe=190*ee;var de=70*ee,fe=Math.max(z,0),ye=Math.max(y,0),Ce=Math.floor(E-fe),Ne=Math.floor(re-ye);a.drawImage(b.Oa,fe,ye,Ce,Ne,0,0,Ce,Ne),kh(this.Yf,this)&&a.clearRect(0,0,oe,de),b=Mi(),a=Mi(),Ne=Math.abs(z),Ce=Math.abs(y);var Oe=fe===0?0:E-Ne;fe=Je.allocAt(Oe,0),Ne=Je.allocAt(Ne+Oe,re),a.push(new tn(Math.min(fe.x,Ne.x),Math.min(fe.y,Ne.y),Math.abs(fe.x-Ne.x),Math.abs(fe.y-Ne.y)));var Ve=this.Ab;if(Ve.reset(),Ve.scale(ee,ee),this.Ca!==1&&Ve.scale(this.Ca),ee=this.pa,(ee.x!==0||ee.y!==0)&&isFinite(ee.x)&&isFinite(ee.y)&&Ve.translate(-ee.x,-ee.y),xi(fe,Ve),xi(Ne,Ve),b.push(new tn(Math.min(fe.x,Ne.x),Math.min(fe.y,Ne.y),Math.abs(fe.x-Ne.x),Math.abs(fe.y-Ne.y))),Oe=ye===0?0:re-Ce,fe.h(0,Oe),Ne.h(E,Ce+Oe),a.push(new tn(Math.min(fe.x,Ne.x),Math.min(fe.y,Ne.y),Math.abs(fe.x-Ne.x),Math.abs(fe.y-Ne.y))),xi(fe,Ve),xi(Ne,Ve),b.push(new tn(Math.min(fe.x,Ne.x),Math.min(fe.y,Ne.y),Math.abs(fe.x-Ne.x),Math.abs(fe.y-Ne.y))),kh(this.Yf,this)&&(E=0<z?0:-z,re=0<y?0:-y,fe.h(E,re),Ne.h(oe+E,de+re),a.push(new tn(Math.min(fe.x,Ne.x),Math.min(fe.y,Ne.y),Math.abs(fe.x-Ne.x),Math.abs(fe.y-Ne.y))),xi(fe,Ve),xi(Ne,Ve),b.push(new tn(Math.min(fe.x,Ne.x),Math.min(fe.y,Ne.y),Math.abs(fe.x-Ne.x),Math.abs(fe.y-Ne.y)))),Je.free(fe),Je.free(Ne),jd(this,!1,!0),this.Ka===null&&vt("No div specified"),this.ta===null&&vt("No canvas specified"),!this.animationManager.zb&&(E=this.ib,this.Fc)){for(wh(this),re=this.Mb,E.setTransform(1,0,0,1,0,0),E.clearRect(0,0,this.Aa*re,this.ya*re),E.drawImage(this.jw.Oa,0<z?0:Math.round(-z),0<y?0:Math.round(-y)),z=this.pa,ee=this.Ca,oe=Math.round(z.x*ee)/ee,de=Math.round(z.y*ee)/ee,y=this.Ab,y.reset(),ee!==1&&y.scale(ee),z.x===0&&z.y===0||y.translate(-oe,-de),E.save(),E.beginPath(),z=a.length,ee=0;ee<z;ee++)oe=a[ee],oe.width!==0&&oe.height!==0&&E.rect(Math.floor(oe.x),Math.floor(oe.y),Math.ceil(oe.width),Math.ceil(oe.height));for(E.clip(),E.setTransform(re,0,0,re,0,0),E.transform(y.m11,y.m12,y.m21,y.m22,y.dx,y.dy),E.yc(),y=this.Wa.s,z=y.length,this.Fd(y,z,this,this.viewportBounds),pd(this,E),E.globalAlpha=this.pb,re=0;re<z;re++)if(ee=y[re],oe=b,ee.visible&&ee.pb!==0){de=Jc(ee,E),ye=ee.Zq,ye.length=0,fe=this.scale,Ce=tn.alloc(),Ne=ee.Pa.s,Ve=Ne.length,Oe=oe.length;for(var ft=0;ft<Ve;ft++){var lt=Ne[ft],mt=Fh(lt,lt.actualBounds);e:{for(var St=2/fe,Ct=4/fe,Rt=0;Rt<Oe;Rt++){var $t=oe[Rt];if($t.width!==0&&$t.height!==0&&mt.Vu($t.x-St,$t.y-St,$t.width+Ct,$t.height+Ct)){mt=!0;break e}}mt=!1}mt&&ee.Oj(E,lt,this,ye,fe,Ce,!0)}tn.free(Ce),E.globalAlpha=de}E.restore(),E.Vc(!0),this.Yf&&kh(this.Yf,this)&&this.Vp(),this.Fc=this.vd=!1,this.hk()}ui(b),ui(a),this.ld=!1}}else this.bd();x&&(xl(this),this.bd(),Zh(this,!0))}else x?(xl(this),this.bd(),Zh(this,!0)):this.bd()}};function wh(a){a.pn!==!1&&(a.pn=!1,Fg(a,a.Aa,a.ya))}function Fg(a,y,x){Ec(a);var b=a.Mb;a.ta.resize(y*b,x*b,y,x)&&(a.Fc=!0,a.ib.Vc(!0))}function Ch(a){var y=a.ta;if(y===null||a.wo.w())return!0;var x=a.Aa,b=a.ya,E=a.Ka,z=!1,ee=a.gf?a.Db:0,re=a.Be?a.Db:0,oe=E.clientWidth||x+ee,de=E.clientHeight||b+re,fe=a.viewportBounds;E=fe.x;var ye=fe.y,Ce=fe.width,Ne=fe.height;if((oe!==x+ee||de!==b+re)&&(a.gf=!1,a.Be=!1,re=ee=0,a.Aa=oe,a.ya=de,z=a.pn=!0,Ec(a)),!a.hf||!a.viewportBounds.w())return!0;var Oe=a.ku,Ve=a.hu;if(a.Ee=!1,!(z||a.gf||a.Be||a.mn||a.nn))return!0;var ft=a.documentBounds,lt=0,mt=0,St=0,Ct=0,Rt=fe.width,$t=fe.height,di=a.rj;a.contentAlignment.sb()?(ft.width>Rt&&(lt=di.left,mt=di.right),ft.height>$t&&(St=di.top,Ct=di.bottom)):(lt=di.left,mt=di.right,St=di.top,Ct=di.bottom);var Di=ft.width+lt+mt,Li=ft.height+St+Ct;di=a.scale;var $n=Di>oe/di,Nn=Li>de/di;if(!(z||a.gf||a.Be||$n||Nn))return!0;lt=ft.x-lt,oe=fe.x,mt=ft.right+mt,de=fe.right+ee,St=ft.y-St;var Sr=fe.y;ft=ft.bottom+Ct,fe=fe.bottom+re;var hr="1px";if(Ct="1px",a.scrollMode===vd&&($n||Nn)&&($n&&a.hasHorizontalScrollbar&&a.allowHorizontalScroll&&($n=1,lt+1<oe&&($n=Math.max((oe-lt)*di+a.Aa,$n)),mt>de+1&&($n=Math.max((mt-de)*di+a.Aa,$n)),Rt+ee+1<Di&&($n=Math.max((Di-Rt)*di+a.Aa,$n)),hr=$n.toString()+"px"),Nn&&a.hasVerticalScrollbar&&a.allowVerticalScroll&&($n=1,St+1<Sr&&($n=Math.max((Sr-St)*di+a.ya,$n)),ft>fe+1&&($n=Math.max((ft-fe)*di+a.ya,$n)),$t+re+1<Li&&($n=Math.max((Li-$t)*di+a.ya,$n)),Ct=$n.toString()+"px")),$n=hr!=="1px",Nn=Ct!=="1px",$n&&Nn||!$n&&!Nn||(Nn&&(de-=a.Db),$n&&(fe-=a.Db),Di<Rt+ee||!a.hasHorizontalScrollbar||!a.allowHorizontalScroll||(ee=1,lt+1<oe&&(ee=Math.max((oe-lt)*di+a.Aa,ee)),mt>de+1&&(ee=Math.max((mt-de)*di+a.Aa,ee)),Rt+1<Di&&(ee=Math.max((Di-Rt)*di+a.Aa,ee)),hr=ee.toString()+"px"),$n=hr!=="1px",ee=a.ya,$n!==a.Be&&(ee=$n?a.ya-a.Db:a.ya+a.Db),Li<$t+re||!a.hasVerticalScrollbar||!a.allowVerticalScroll||(re=1,St+1<Sr&&(re=Math.max((Sr-St)*di+ee,re)),ft>fe+1&&(re=Math.max((ft-fe)*di+ee,re)),$t+1<Li&&(re=Math.max((Li-$t)*di+ee,re)),Ct=re.toString()+"px"),Nn=Ct!=="1px"),a.qr&&$n===a.Be&&Nn===a.gf)return x===a.Aa&&b===a.ya||a.bd(),!1;if($n!==a.Be&&(hr==="1px"?a.ya=a.ya+a.Db:a.ya=Math.max(a.ya-a.Db,1),z=!0),a.Be=$n,Ve.style.width=hr,Nn!==a.gf&&(Ct==="1px"?a.Aa=a.Aa+a.Db:a.Aa=Math.max(a.Aa-a.Db,1),z=!0,a.tn&&(re=Je.alloc(),Nn?(y.style.left=a.Db+"px",a.position=re.h(a.pa.x+a.Db/a.scale,a.pa.y)):(y.style.left="0px",a.position=re.h(a.pa.x-a.Db/a.scale,a.pa.y)),Je.free(re))),z&&Ec(a),a.gf=Nn,Ve.style.height=Ct,a.gu=!0,z&&(a.pn=!0),y=Oe.scrollLeft,a.hasHorizontalScrollbar&&a.allowHorizontalScroll&&(Rt+1<Di?y=(a.position.x-lt)*di:lt+1<oe?y=Oe.scrollWidth-Oe.clientWidth:mt>de+1&&(y=a.position.x*di)),a.tn)switch(a.bu){case"negative":y=-(Oe.scrollWidth-y-Oe.clientWidth);break;case"reverse":y=Oe.scrollWidth-y-Oe.clientWidth}return Oe.scrollLeft=y,a.hasVerticalScrollbar&&a.allowVerticalScroll&&($t+1<Li?Oe.scrollTop=(a.position.y-St)*di:St+1<Sr?Oe.scrollTop=Oe.scrollHeight-Oe.clientHeight:ft>fe+1&&(Oe.scrollTop=a.position.y*di)),oe=a.Aa,de=a.ya,Oe.style.width=oe+(a.gf?a.Db:0)+"px",Oe.style.height=de+(a.Be?a.Db:0)+"px",x!==oe||b!==de||a.animationManager.zb?(x=tn.allocAt(E,ye,Ce,Ne),a.onViewportBoundsChanged(x,a.viewportBounds,di,z),tn.free(x),!1):!0}Ie=en.prototype,Ie.add=function(a){var y=a.diagram;if(y!==this&&(y!==null&&vt("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&&vt('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(la,"parts",y,null,a,null,x),y.isTemporary||this.Ya(),a.C(1),x=a.layerChanged,x!==null&&x(a,null,y)}},Ie.oi=function(a){this.partManager.oi(a);var y=this;Rh(a,function(x){Th(y,x)}),(a instanceof lo||a instanceof xr&&a.placeholder!==null)&&a.v(),a.data!==null&&Rh(a,function(x){cy(y.partManager,x)}),ol(a)!==!0&&Xd(a)!==!0||this.De.add(a),GS(a,!0,this),VS(a)?(a.actualBounds.w()&&this.N(Fh(a,a.actualBounds)),this.Ya()):a.isVisible()&&a.actualBounds.w()&&this.N(Fh(a,a.actualBounds)),this.$b()},Ie.pc=function(a){a.Ej(),this.partManager.pc(a);var y=this;a.data!==null&&Rh(a,function(x){dy(y.partManager,x,y)}),this.De.remove(a),VS(a)?(a.actualBounds.w()&&this.N(Fh(a,a.actualBounds)),this.Ya()):a.isVisible()&&a.actualBounds.w()&&this.N(Fh(a,a.actualBounds)),this.$b()},Ie.remove=function(a){Bg(this,a,!0)};function Bg(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(ga,"parts",b,y,null,x,null),a=y.layerChanged,a!==null&&a(y,b,null))}Ie.Is=function(a,y){if(y===void 0&&(y=!1),wn(a))for(var x=a.length,b=0;b<x;b++){var E=a[b];y&&!E.canDelete()||this.remove(E)}else for(x=new Bn,x.addAll(a),a=x.iterator;a.next();)x=a.value,y&&!x.canDelete()||this.remove(x)},Ie.Kj=function(a,y,x){return x===void 0&&(x=!1),this.partManager.Kj(a,y,x)},en.prototype.moveParts=function(a,y,x,b){if(x===void 0&&(x=!1),b===void 0&&(b=If(this)),this.toolManager!==null){var E=new an;if(a!==null)if(wn(a))for(var z=0;z<a.length;z++)Dc(this,E,a[z],x,b);else for(a=a.iterator;a.next();)Dc(this,E,a.value,x,b);else{for(a=this.parts;a.next();)Dc(this,E,a.value,x,b);for(a=this.nodes;a.next();)Dc(this,E,a.value,x,b);for(a=this.links;a.next();)Dc(this,E,a.value,x,b)}Gd(this,E,y,b,x)}};function Dc(a,y,x,b,E,z){if(!y.contains(x)&&(z===void 0&&(z=!1),!b||z||x.canMove()||x.canCopy()))if(E===void 0&&(E=If(a)),x instanceof Si){if(y.add(x,a.Pd(E,x,x.location)),x instanceof xr&&(x.placeholder!==null||E.dragsMembers))for(z=x.memberParts;z.next();)Dc(a,y,z.value,b,E,E.groupsAlwaysMove);for(z=x.linksConnected;z.next();){var ee=z.value;if(!y.contains(ee)){var re=ee.fromNode,oe=ee.toNode;re!==null&&y.contains(re)&&oe!==null&&y.contains(oe)&&Dc(a,y,ee,b,E)}}if(E.dragsTree)for(x=x.Ou();x.next();)Dc(a,y,x.value,b,E)}else if(x instanceof ei)for(y.add(x,a.Pd(E,x)),x=x.labelNodes;x.next();)Dc(a,y,x.value,b,E);else x instanceof lo||y.add(x,a.Pd(E,x,x.location))}function Gd(a,y,x,b,E){if(y!==null&&y.count!==0){var z=Je.alloc(),ee=Je.alloc();ee.assign(x),isNaN(ee.x)&&(ee.x=0),isNaN(ee.y)&&(ee.y=0),(x=a.Mr)||Rf(a,y);for(var re=Mi(),oe=Mi(),de=y.iterator,fe=Je.alloc();de.next();){var ye=de.key,Ce=de.value;if(ye.Zc()){var Ne=_g(a,ye,y);Ne!==null?re.push(new ie(ye,Ce,Ne)):(!E||ye.canMove())&&(Ne=Ce.point,z.assign(Ne),a.computeMove(ye,z.add(ee),b,fe),ye.location=fe,Ce.shifted===void 0&&(Ce.shifted=new Je),Ce.shifted.assign(fe.re(Ne)))}else de.key instanceof ei&&oe.push(de.sa)}for(Je.free(fe),E=re.length,de=0;de<E;de++)ye=re[de],z.assign(ye.info.point),ye.Su.shifted===void 0&&(ye.Su.shifted=new Je),ye.node.location=z.add(ye.Su.shifted);for(E=Je.alloc(),de=Je.alloc(),ye=oe.length,Ce=0;Ce<ye;Ce++){var Oe=oe[Ce];if(Ne=Oe.key,Ne instanceof ei)if(Ne.suspendsRouting){Ne.Tg=null,fe=Ne.fromNode;var Ve=Ne.toNode;if(a.draggedLink!==null&&b.dragsLink)if(Ve=Oe.value.point,Ne.dragComputation===null)y.add(Ne,a.Pd(b,Ne,ee)),Td(Ne,ee.x-Ve.x,ee.y-Ve.y);else{Oe=Je.allocAt(0,0),(fe=Ne.i(0))&&fe.w()&&Oe.assign(fe);var ft=fe=Je.alloc().assign(Oe).add(ee);b.isGridSnapEnabled&&(b.isGridSnapRealtime||a.lastInput.up)&&(ft=Je.alloc(),Mf(a,Ne,fe,ft,b)),fe.assign(Ne.dragComputation(Ne,fe,ft)).re(Oe),y.add(Ne,a.Pd(b,Ne,fe)),Td(Ne,fe.x-Ve.x,fe.y-Ve.y),Je.free(Oe),Je.free(fe),ft!==fe&&Je.free(ft)}else fe!==null&&(E.assign(fe.location),ft=y.I(fe),ft!==null&&E.re(ft.point)),Ve!==null&&(de.assign(Ve.location),ft=y.I(Ve),ft!==null&&de.re(ft.point)),fe!==null&&Ve!==null?E.Xa(de)?(fe=Oe.value.point,Ve=z,Ve.assign(E),Ve.re(fe),y.add(Ne,a.Pd(b,Ne,E)),Td(Ne,Ve.x,Ve.y)):(Ne.suspendsRouting=!1,Ne.bb()):(Oe=Oe.value.point,fe=fe!==null?E:Ve!==null?de:ee,y.add(Ne,a.Pd(b,Ne,fe)),Td(Ne,fe.x-Oe.x,fe.y-Oe.y))}else(Ne.fromNode===null||Ne.toNode===null)&&(fe=Oe.value.point,y.add(Ne,a.Pd(b,Ne,ee)),Td(Ne,ee.x-fe.x,ee.y-fe.y))}Je.free(z),Je.free(ee),Je.free(E),Je.free(de),ui(re),ui(oe),x||(Ls(a),Wd(a,y))}}en.prototype.computeMove=function(a,y,x,b){if(b===void 0&&(b=new Je),b.assign(y),a===null)return b;var E=y,z=x.isGridSnapEnabled;z&&(x.isGridSnapRealtime||this.lastInput.up)&&(E=Je.alloc(),Mf(this,a,y,E,x)),x=a.dragComputation!==null?a.dragComputation(a,y,E):E;var ee=a.minLocation,re=ee.x;isNaN(re)&&(re=z?Math.round(1e3*a.location.x)/1e3:a.location.x),ee=ee.y,isNaN(ee)&&(ee=z?Math.round(1e3*a.location.y)/1e3:a.location.y);var oe=a.maxLocation,de=oe.x;return isNaN(de)&&(de=z?Math.round(1e3*a.location.x)/1e3:a.location.x),oe=oe.y,isNaN(oe)&&(oe=z?Math.round(1e3*a.location.y)/1e3:a.location.y),b.h(Math.max(re,Math.min(x.x,de)),Math.max(ee,Math.min(x.y,oe))),E!==y&&Je.free(E),b};function If(a){var y=a.toolManager.findTool("Dragging");return y!==null?y.dragOptions:a.Wm}function Mf(a,y,x,b,E){if(E===void 0&&(E=If(a)),b.assign(x),y!==null){var z=a.grid;y=E.gridSnapCellSize,a=y.width,y=y.height;var ee=E.gridSnapOrigin,re=ee.x;if(ee=ee.y,E=E.gridSnapCellSpot,z!==null){var oe=z.gridCellSize;isNaN(a)&&(a=oe.width),isNaN(y)&&(y=oe.height),z=z.gridOrigin,isNaN(re)&&(re=z.x),isNaN(ee)&&(ee=z.y)}z=Je.allocAt(0,0),z.yi(0,0,a,y,E),Bt.No(x.x,x.y,re+z.x,ee+z.y,a,y,b),Je.free(z)}}function Rf(a,y){if(y!==null)for(a.Mr=!0,a=y.iterator;a.next();)y=a.key,y instanceof ei&&(y.suspendsRouting=!0)}function Wd(a,y){if(y!==null){for(y=y.iterator;y.next();){var x=y.key;x instanceof ei&&(x.suspendsRouting=!1,Qv(x)&&x.bb())}a.Mr=!1}}function _g(a,y,x){return y=y.containingGroup,y!==null&&(a=_g(a,y,x),a!==null||(a=x.I(y),a!==null))?a:null}Ie=en.prototype,Ie.Pd=function(a,y,x){if(x===void 0)return new qc(ci);var b=a.isGridSnapEnabled;return a.groupsSnapMembers||y.containingGroup===null||(b=!1),b?new qc(new Je(Math.round(1e3*x.x)/1e3,Math.round(1e3*x.y)/1e3)):new qc(x.copy())};function Ug(a,y,x){if(y.diagram!==null&&y.diagram!==a&&vt("Cannot share a Layer with another Diagram: "+y+" of "+y.diagram),x===null?y.diagram!==null&&vt("Cannot add an existing Layer to this Diagram again: "+y):(x.diagram!==a&&vt("Existing Layer must be in this Diagram: "+x+" not in "+x.diagram),y===x&&vt("Cannot move a Layer before or after itself: "+y)),y.diagram!==a){y=y.name,a=a.Wa,x=a.count;for(var b=0;b<x;b++)a.M(b).name===y&&vt("Cannot add Layer with the name '"+y+"'; a Layer with the same name is already present in this Diagram.")}}Ie.Al=function(a){Ug(this,a,null),a.Xe(this);var y=this.Wa,x=y.count-1;if(!a.isTemporary)for(;0<=x&&y.M(x).isTemporary;)x--;return y.Gb(x+1,a),this.cc!==null&&this.cb(la,"layers",this,null,a,null,x+1),this.N(),this.Ya(),this},Ie.Ww=function(a,y){Ug(this,a,y),a.Xe(this);var x=this.Wa,b=x.indexOf(a);0<=b&&(x.remove(a),this.cc!==null&&this.cb(ga,"layers",this,a,null,b,null));var E=x.count,z;for(z=0;z<E;z++)if(x.M(z)===y){x.Gb(z,a);break}return this.cc!==null&&this.cb(la,"layers",this,null,a,null,z),this.N(),0>b&&this.Ya(),this},Ie.Cy=function(a,y){Ug(this,a,y),a.Xe(this);var x=this.Wa,b=x.indexOf(a);0<=b&&(x.remove(a),this.cc!==null&&this.cb(ga,"layers",this,a,null,b,null));var E=x.count,z;for(z=0;z<E;z++)if(x.M(z)===y){x.Gb(z+1,a);break}return this.cc!==null&&this.cb(la,"layers",this,null,a,null,z+1),this.N(),0>b&&this.Ya(),this},Ie.kA=function(a){if(a.diagram!==this&&vt("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,E=b.layerName;E!==a.name?b.layerName=E:b.layerName=""}this.cc!==null&&this.cb(ga,"layers",this,a,null,x,null),this.N(),this.Ya()}}},Ie.Qj=function(a){for(var y=this.layers;y.next();){var x=y.value;if(x.name===a)return x}return null},Ie.Yw=function(a){return this.pf===null&&(this.pf=new Dn),this.pf.add(a),this.model.Pe(a),this},Ie.mA=function(a){this.pf!==null&&(this.pf.remove(a),this.pf.count===0&&(this.pf=null)),this.model.ik(a)},Ie.Pe=function(a){return this.zg===null&&(this.zg=new Dn),this.zg.add(a),this},Ie.ik=function(a){this.zg!==null&&(this.zg.remove(a),this.zg.count===0&&(this.zg=null))},Ie.ds=function(a){if(this.skipsUndoManager||this.model.skipsUndoManager||this.model.undoManager.Tu(a),a.change!==ds&&(this.isModified=!0),this.zg!==null)for(var y=this.zg,x=y.length,b=0;b<x;b++)y.M(b)(a)},Ie.cb=function(a,y,x,b,E,z,ee){z===void 0&&(z=null),ee===void 0&&(ee=null);var re=new qo;re.diagram=this,re.change=a,re.propertyName=y,re.object=x,re.oldValue=b,re.oldParam=z,re.newValue=E,re.newParam=ee,this.ds(re)},Ie.g=function(a,y,x,b,E){this.cb(Wo,a,this,y,x,b,E)},en.prototype.changeState=function(a,y){if(a!==null&&a.diagram===this){var x=this.skipsModelSourceBindings;try{this.skipsModelSourceBindings=!0;var b=a.change;if(b===Wo){var E=a.object;if(oa(E,a.propertyName,a.I(y)),E instanceof Ot){var z=E.part;z!==null&&z.Wb()}this.isModified=!0}else if(b===la){var ee=a.object,re=a.newParam,oe=a.newValue;if(ee instanceof Kn)if(typeof re=="number"&&oe instanceof Ot){y?ee.pc(re):ee.Gb(re,oe);var de=ee.part;de!==null&&de.Wb()}else typeof re=="number"&&oe instanceof Ha&&(oe.isRow?pS(ee,re,y?void 0:oe):mS(ee,re,y?void 0:oe));else if(ee instanceof fs){var fe=a.oldParam===!0;typeof re=="number"&&oe instanceof Zi&&(y?(oe.isSelected=!1,oe.isHighlighted=!1,oe.Wb(),ee.pc(fe?re:-1,oe,fe)):ee.oi(re,oe,fe))}else ee instanceof en?typeof re=="number"&&oe instanceof fs&&(y?this.Wa.mb(re):(oe.Xe(this),this.Wa.Gb(re,oe))):vt("unknown ChangedEvent.Insert object: "+a.toString());this.isModified=!0}else if(b===ga){var ye=a.object,Ce=a.oldParam,Ne=a.oldValue;if(ye instanceof Kn)typeof Ce=="number"&&Ne instanceof Ot?y?ye.Gb(Ce,Ne):ye.pc(Ce):typeof Ce=="number"&&Ne instanceof Ha&&(Ne.isRow?pS(ye,Ce,y?Ne:void 0):mS(ye,Ce,y?Ne:void 0));else if(ye instanceof fs){var Oe=a.newParam===!0;typeof Ce=="number"&&Ne instanceof Zi&&(y?0>ye.Pa.indexOf(Ne)&&ye.oi(Ce,Ne,Oe):(Ne.isSelected=!1,Ne.isHighlighted=!1,Ne.Wb(),ye.pc(Oe?Ce:-1,Ne,Oe)))}else ye instanceof en?typeof Ce=="number"&&Ne instanceof fs&&(y?(Ne.Xe(this),this.Wa.Gb(Ce,Ne)):this.Wa.mb(Ce)):vt("unknown ChangedEvent.Remove object: "+a.toString());this.isModified=!0}else b!==ds&&vt("unknown ChangedEvent: "+a.toString())}finally{this.skipsModelSourceBindings=x}}},en.prototype.Ea=function(a){return this.undoManager.Ea(a)},en.prototype.eb=function(a){return this.undoManager.eb(a)},en.prototype.Kf=function(){return this.undoManager.Kf()},en.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}},en.prototype.updateAllTargetBindings=function(a){this.partManager.updateAllTargetBindings(a)},en.prototype.rp=function(){this.partManager.rp()};function zg(a,y,x){var b=a.animationManager;if(a.vb||a.ld)a.Ca=x,Ec(a),a.N(),a.Ee=!0,b.zb&&(_s(b)||b.ce.add(b.H,"scale",y,a.Ca));else if(a.ta===null)a.Ca=x,Ec(a);else{a.vb=!0;var E=a.viewportBounds.copy(),z=a.Aa,ee=a.ya,re=a.zoomPoint.x,oe=a.zoomPoint.y,de=a.contentAlignment;isNaN(re)&&(de.$c()?de.Hf(as)?re=0:de.Hf(Po)&&(re=z-1):re=de.sb()?de.x*(z-1):z/2),isNaN(oe)&&(de.$c()?de.Hf(na)?oe=0:de.Hf(ka)&&(oe=ee-1):oe=de.sb()?de.y*(ee-1):ee/2),a.scaleComputation===null||a.animationManager.defaultAnimation.isAnimating||(x=a.scaleComputation(a,x)),x<a.minScale&&(x=a.minScale),x>a.maxScale&&(x=a.maxScale),z=Je.allocAt(a.pa.x+re/y-re/x,a.pa.y+oe/y-oe/x),a.position=z,Je.free(z),a.Ca=x,Ec(a),a.vb=!1,a.onViewportBoundsChanged(E,a.viewportBounds,y,!1),Lu(a,!1),b.zb&&(_s(b)||b.ce.add(b.H,"scale",y,a.Ca))}}en.prototype.onViewportBoundsChanged=function(a,y,x,b){if(!a.D(y)){b===void 0&&(b=!1),b||(this.Ee=!0),this.vd=!0;var E=this.layout;E===null||!E.isViewportSized||this.autoScale!==Zs||a.width===y.width&&a.height===y.height||E.C(),E=this.currentTool,this.Vk===!0&&E instanceof jo&&(this.lastInput.documentPoint=this.Ps(this.lastInput.viewPoint),Lc(E,this)),this.vb||this.invalidateViewport(a,y),bc(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(z){z.isAvoiding&&z.actualBounds.Yc(y)&&z.bb()})}};function bc(a,y){var x=a.fe;if(x!==null&&x.visible){for(var b=Ln.alloc(),E=1,z=1,ee=x.O.s,re=ee.length,oe=0;oe<re;oe++){var de=ee[oe],fe=Math.abs(de.interval);2>fe||(yv(de.figure)?z=z*fe/Bt.vx(z,fe):E=E*fe/Bt.vx(E,fe))}if(ee=x.gridCellSize,b.h(z*ee.width,E*ee.height),y!==void 0)E=y.width,z=y.height,a=y.x,ee=y.y;else{if(y=tn.alloc(),a=a.viewportBounds,y.h(a.x,a.y,a.width,a.height),!y.w()){tn.free(y);return}E=y.width,z=y.height,a=y.x,ee=y.y,tn.free(y)}x.width=E+2*b.width,x.height=z+2*b.height,y=Je.alloc(),Bt.No(a,ee,0,0,b.width,b.height,y),y.offset(-b.width,-b.height),Ln.free(b),x.part.location=y,Je.free(y)}}en.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,E=0;E<b;E++)x[E].isSelected=!1;y.ka(),y.clear(),y.freeze(),a||this.R("ChangedSelection",y)}},en.prototype.select=function(a){a!==null&&a.diagram===this&&(!a.isSelected||1<this.selection.count)&&(this.R("ChangingSelection",this.selection),this.clearSelection(!0),a.isSelected=!0,this.R("ChangedSelection",this.selection))},en.prototype.rA=function(a){if(this.R("ChangingSelection",this.selection),this.clearSelection(!0),wn(a))for(var y=a.length,x=0;x<y;x++){var b=a[x];b instanceof Zi||vt("Diagram.selectCollection given something that is not a Part: "+b),b.isSelected=!0}else for(a=a.iterator;a.next();)y=a.value,y instanceof Zi||vt("Diagram.selectCollection given something that is not a Part: "+y),y.isSelected=!0;this.R("ChangedSelection",this.selection)},en.prototype.clearHighlighteds=function(){var a=this.highlighteds;if(0<a.count){for(var y=a.Fa(),x=y.length,b=0;b<x;b++)y[b].isHighlighted=!1;a.ka(),a.clear(),a.freeze()}},Ie=en.prototype,Ie.Iz=function(a){a!==null&&a.diagram===this&&(!a.isHighlighted||1<this.highlighteds.count)&&(this.clearHighlighteds(),a.isHighlighted=!0)},Ie.Jz=function(a){a=new Bn().addAll(a);for(var y=this.highlighteds.copy().hp(a).iterator;y.next();)y.value.isHighlighted=!1;for(a=a.iterator;a.next();)y=a.value,y instanceof Zi||vt("Diagram.highlightCollection given something that is not a Part: "+y),y.isHighlighted=!0},Ie.scroll=function(a,y,x){x===void 0&&(x=1);var b=y==="up"||y==="down",E=0,z=Je.alloc();if(a==="pixel")E=x;else if(a==="line")E=x*(b?this.scrollVerticalLineChange:this.scrollHorizontalLineChange);else if(a==="page")a=b?this.viewportBounds.height:this.viewportBounds.width,a*=this.scale,a!==0&&(E=x*Math.max(a-(b?this.scrollVerticalLineChange:this.scrollHorizontalLineChange),0));else{if(a==="document"){E=this.documentBounds,x=this.viewportBounds,y==="up"?this.position=z.h(x.x,E.y):y==="left"?this.position=z.h(E.x,x.y):y==="down"?this.position=z.h(x.x,E.bottom-x.height):y==="right"&&(this.position=z.h(E.right-x.width,x.y)),Je.free(z);return}vt("scrolling unit must be 'pixel', 'line', 'page', or 'document', not: "+a)}E/=this.scale,x=this.position,y==="up"?this.position=z.h(x.x,x.y-E):y==="down"?this.position=z.h(x.x,x.y+E):y==="left"?this.position=z.h(x.x-E,x.y):y==="right"?this.position=z.h(x.x+E,x.y):vt("scrolling direction must be 'up', 'down', 'left', or 'right', not: "+y),Je.free(z)},Ie.tv=function(a){var y=this.viewportBounds;y.Re(a)||(a=a.center,a.x-=y.width/2,a.y-=y.height/2,this.position=a)},Ie.es=function(a){var y=this.viewportBounds;a=a.center,a.x-=y.width/2,a.y-=y.height/2,this.position=a},Ie.op=function(a){var y=this.Ab;y.reset(),this.Ca!==1&&y.scale(this.Ca);var x=this.pa;return(x.x!==0||x.y!==0)&&isFinite(x.x)&&isFinite(x.y)&&y.translate(-x.x,-x.y),a.copy().transform(this.Ab)},Ie.zA=function(a){var y=this.Ab,x=a.x,b=a.y,E=x+a.width,z=b+a.height,ee=y.m11,re=y.m12,oe=y.m21,de=y.m22,fe=y.dx,ye=y.dy,Ce=x*ee+b*oe+fe;y=x*re+b*de+ye;var Ne=E*ee+b*oe+fe;return a=E*re+b*de+ye,b=x*ee+z*oe+fe,x=x*re+z*de+ye,ee=E*ee+z*oe+fe,E=E*re+z*de+ye,z=Math.min(Ce,Ne),Ce=Math.max(Ce,Ne),Ne=Math.min(y,a),y=Math.max(y,a),z=Math.min(z,b),Ce=Math.max(Ce,b),Ne=Math.min(Ne,x),y=Math.max(y,x),z=Math.min(z,ee),Ce=Math.max(Ce,ee),Ne=Math.min(Ne,E),y=Math.max(y,E),new tn(z,Ne,Ce-z,y-Ne)},Ie.Ps=function(a){var y=this.Ab;y.reset(),this.Ca!==1&&y.scale(this.Ca);var x=this.pa;return(x.x!==0||x.y!==0)&&isFinite(x.x)&&isFinite(x.y)&&y.translate(-x.x,-x.y),xi(a.copy(),this.Ab)};function om(a){var y=a.isModified;a.Tw!==y&&(a.Tw=y,a.R("Modified"))}function Hg(a){return a=Uf.get(a),a!==null?new a:new To}en.prototype.doModelChanged=function(a){var y=this;if(a.model===this.model){var x=a.change,b=a.propertyName;if(x===ds&&b[0]==="S")if(b==="StartingFirstTransaction"){var E=this;a=this.toolManager,a.mouseDownTools.each(function(oe){return oe.diagram=E}),a.mouseMoveTools.each(function(oe){return oe.diagram=E}),a.mouseUpTools.each(function(oe){return oe.diagram=E}),this.ld||this.hf||(this.Jk=!0,this.fn&&(this.kg=!0))}else b==="StartingUndo"||b==="StartingRedo"?(a=this.animationManager,a.defaultAnimation.isAnimating&&!this.skipsUndoManager&&a.Cc(),this.R("ChangingSelection",this.selection)):b==="StartedTransaction"&&(a=this.animationManager,a.defaultAnimation.isAnimating&&!this.skipsUndoManager&&a.Cc());else if(this.aa){this.aa=!1;try{if(a.modelChange===""&&x===ds){(b==="FinishedUndo"||b==="FinishedRedo")&&(this.R("ChangedSelection",this.selection),Ls(this));var z=this.animationManager;b==="RolledBackTransaction"&&z.Cc(),this.bx(),this.Jk=!0,this.bd(),this.undoManager.transactionLevel!==0&&this.undoManager.transactionLevel!==1||Hl(z),b==="CommittedTransaction"&&this.undoManager.isJustDiscarded&&(this.Ce=Math.min(this.Ce,this.undoManager.historyIndex-1)),b!=="CommittedTransaction"&&b!=="RolledBackTransaction"||!this.undoManager.isPendingUnmodified||setTimeout(function(){y.isModified=!1},1);var ee=a.isTransactionFinished;if(ee&&(om(this),this.As.clear(),gd(this.animationManager)),!this.Rt&&ee&&this.lastInput.targetDiagram){this.Rt=!0;var re=this;Gt(function(){re.currentTool.standardMouseOver(),re.Rt=!1},10)}}}finally{this.aa=!0}}}};function Th(a,y){y=y.O.s;for(var x=y.length,b=0;b<x;b++)Vd(a,y[b])}function Vd(a,y){if(y instanceof Cl){var x=y.element;if(x!==null&&x instanceof HTMLImageElement){x.Bg instanceof Bn&&x.Bg.add(a);var b=y.Eg;if(b!==null&&b.sq===!0&&y.diagram!==null&&y.diagram.Xn.add(y),x.hn)if(x=x.getAttribute("src")||"",b=a.Og.I(x),b===null)b=[],b.push(y),a.Og.add(x,b);else{for(a=0;a<b.length;a++)if(b[a]===y)return;b.push(y)}}}}function jg(a,y){if(y instanceof Cl){var x=y.element;if(x!==null&&x instanceof HTMLImageElement&&x.hn){var b=x.getAttribute("src")||"",E=a.Og.I(b);if(E!==null){for(var z=0;z<E.length;z++)if(E[z]===y){E.splice(z,1),E.length===0&&(a.Og.remove(b),x.Fq&&x.removeEventListener("load",x.Fq),x.Yp&&x.removeEventListener("error",x.Yp),delete x.Fq,delete x.Yp,x.Bg instanceof Bn&&x.Bg.remove(a),qf(b));break}}}}}en.prototype.Wd=function(){this.partManager.Wd()},en.prototype.Aj=function(a,y){this.Yd.Aj(a,y)},en.prototype.Cj=function(a,y){this.Yd.Cj(a,y)},en.prototype.findPartForKey=function(a){return this.partManager.findPartForKey(a)},en.prototype.Vb=function(a){return this.partManager.Vb(a)},en.prototype.findLinkForKey=function(a){return this.partManager.findLinkForKey(a)},Ie=en.prototype,Ie.Lc=function(a){return this.partManager.Lc(a)},Ie.ii=function(a){return this.partManager.ii(a)},Ie.Kc=function(a){return this.partManager.Kc(a)},Ie.ms=function(a){for(var y=[],x=0;x<arguments.length;++x)y[x]=arguments[x];return this.partManager.ms.apply(this.partManager,y instanceof Array?y:rr(Ei(y)))},Ie.ls=function(a){for(var y=[],x=0;x<arguments.length;++x)y[x]=arguments[x];return this.partManager.ls.apply(this.partManager,y instanceof Array?y:rr(Ei(y)))};function Ec(a){var y=a.pa,x=a.Ca;a.Rw.h(y.x,y.y,Math.max(a.Aa,0)/x,Math.max(a.ya,0)/x),a.vd=!0}function Gg(a,y){a.Zi=!1;var x=a.Sp;x.D(y)||(x=x.copy(),a.Sp.assign(y),Lu(a,!1),a.R("DocumentBoundsChanged",void 0,x),a.Ee=!0,a.N())}Ie.Va=function(){if(this.Zi){var a=tn.alloc();Gg(this,this.computeBounds(a)),tn.free(a)}},Ie.rz=function(){for(var a=new Bn,y=this.nodes;y.next();){var x=y.value;x.isTopLevel&&a.add(x)}for(y=this.links;y.next();)x=y.value,x.isTopLevel&&a.add(x);return a.iterator},Ie.qz=function(){return this.ai.iterator},Ie.Uz=function(a){Ls(this),a&&Of(this,!0),this.ld?Wg(this,!1):(this.Jk=!0,gu(this))};function Of(a,y){for(var x=a.ai.iterator;x.next();)am(a,x.value,y);a.layout&&(y?a.layout.isValidLayout=!1:a.layout.C())}function am(a,y,x){if(y!==null){for(var b=y.gl.iterator;b.next();)am(a,b.value,x);y.layout!==null&&(x?y.layout.isValidLayout=!1:y.layout.C())}}function Wg(a,y){if(a.xh&&!a.lt){var x=a.aa;a.aa=!0;var b=a.undoManager.transactionLevel,E=a.layout,z=a.animationManager;try{b===0&&(a.undoManager.isInternalTransaction=!0,a.Ea("Layout")),1>=b&&!z.defaultAnimation.isAnimating&&!z.zb&&(y||$a(z,"Layout")),a.xh=!1;for(var ee=a.ai.iterator;ee.next();)Vg(a,ee.value,y,b);E.isValidLayout||(!y||E.isRealtime||E.isRealtime===null||b===0?(E.doLayout(a),Ls(a),E.isValidLayout=!0):a.xh=!0)}finally{y=a.undoManager.isInternalTransaction,b===0&&(a.eb("Layout"),a.undoManager.isInternalTransaction=!1),!y||b!==0&&b!==1||Hl(z),a.aa=x}}}function Vg(a,y,x,b){if(y!==null){for(var E=y.gl.iterator;E.next();)Vg(a,E.value,x,b);E=y.layout,E===null||E.isValidLayout||(!x||E.isRealtime||b===0?(y.rh=!y.location.w(),E.doLayout(y),y.C(32),Jh(a,y),E.isValidLayout=!0):a.xh=!0)}}Ie.yz=function(){for(var a=new Dn,y=this.nodes;y.next();){var x=y.value;x.isTopLevel&&x.kh()===null&&a.add(x)}return a.iterator};function rv(a){function y(E){var z=E.toLowerCase(),ee=new Dn;x.add(E,ee),x.add(z,ee),b.add(E,E),b.add(z,E)}var x=new an,b=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=b}function sm(a,y){var x=a.hw.I(y);return x!==null?x:a.hw.I(y.toLowerCase())}function Df(a,y){var x=a.iw.I(y);if(x!==null||(x=a.iw.I(y.toLowerCase()),x!==null))return x;vt("Unknown DiagramEvent name: "+y)}Ie.Bj=function(a,y){return a=Df(this,a),a!==null&&a.add(y),this},Ie.am=function(a,y){a=Df(this,a),a!==null&&a.remove(y)},Ie.R=function(a,y,x){var b=Df(this,a),E=new cu;if(E.diagram=this,a=sm(this,a),a!==null&&(E.name=a),y!==void 0&&(E.subject=y),x!==void 0&&(E.parameter=x),y=b.length,y===1)b.M(0)(E);else if(y!==0)for(b=b.Fa(),x=0;x<y;x++)(0,b[x])(E)};function Ff(a){if(a.animationManager.isTicking)return!1;var y=a.currentTool;return y===a.toolManager.findTool("Dragging")?!a.Mr||y.isComplexRoutingRealtime:!0}Ie.Yj=function(a,y){return Bf(this,!1,null,y||null).Yj(a.x,a.y,a.width,a.height)},en.prototype.computeOccupiedArea=function(a){return this.isVirtualized?this.viewportBounds.copy():this.Zi?Lg(this,a):a.assign(this.documentBounds)};function Bf(a,y,x,b){var E=a.Xh;if(E===null&&(a.Xh=E=new xp(a.avoidanceCellSize)),E.vs||E.group!==x||E.Yx!==b){if(E.Hx=Math.max(E.Os+1,Math.floor(a.avoidanceLimit/a.avoidanceCellSize.width)),E.Ix=Math.max(E.Os+1,Math.floor(a.avoidanceLimit/a.avoidanceCellSize.height)),x!==null&&(x=lm(a,x)),x===null){y=tn.alloc(),a.computeOccupiedArea(y),y.Bc(100,100),E.initialize(y);for(var z=a.nodes;z.next();){var ee=z.value,re=ee.layer;re!==null&&re.visible&&!re.isTemporary&&_f(a,ee,b,y)}tn.free(y)}else{for(0<x.memberParts.count&&(y=a.computePartsBounds(x.memberParts,!1),y.Bc(20,20),E.initialize(y)),y=tn.alloc(),z=x.memberParts;z.next();)ee=z.value,ee instanceof Si&&_f(a,ee,b,y);tn.free(y)}E.group=x,E.Yx=b,E.vs=!1}else y&&c1(E);return E}function lm(a,y){return y.avoidable&&!y.isLinkLabel?y:y.containingGroup!==null?lm(a,y.containingGroup):null}function _f(a,y,x,b){if(y!==x&&y.isVisible()){if(y.avoidable&&!y.isLinkLabel){y=y.getAvoidableRect(b),a=a.Xh;var E=y.x,z=y.y;if(rg(a,E,z))for(x=(z-a.Od)/a.sc|0,b=Math.min((E+y.width-a.Nd)/a.rc|0,a.di),y=Math.min((z+y.height-a.Od)/a.sc|0,a.ei),E=(E-a.Nd)/a.rc|0;E<=b;E++)if(z=a.ac[E],z.fill)z.fill(Pd,x,y+1);else for(var ee=x;ee<=y;ee++)z[ee]=Pd}else if(y instanceof xr)for(y=y.memberParts;y.next();)E=y.value,E instanceof Si&&_f(a,E,x,b)}}function md(a,y){a.Xh===null||a.Xh.vs||y!==void 0&&(!y.avoidable||y.isLinkLabel)||(a.Xh.vs=!0)}en.prototype.gs=function(a){this.wp.assign(a),this.computeAutoScrollPosition(this.wp).Xa(this.position)?this.ug():Yg(this)};function Yg(a){a.vk===-1&&(a.vk=Gt(function(){if(a.vk!==-1&&(a.ug(),a.lastInput.event!==null)){var y=a.computeAutoScrollPosition(a.wp);y.Xa(a.position)||(a.position=y,a.lastInput.documentPoint=a.Ps(a.wp),a.doMouseMove(),a.Zi=!0,y=tn.alloc(),a.computeBounds(y),y.ed(a.documentBounds),Gg(a,y),tn.free(y),a.Fc=!0,a.bd(),Yg(a))}},a.vp))}en.prototype.ug=function(){this.vk!==-1&&(In.clearTimeout(this.vk),this.vk=-1)},en.prototype.computeAutoScrollPosition=function(a){var y=this.position,x=this.xp;if(0>=x.top&&0>=x.left&&0>=x.right&&0>=x.bottom)return y;var b=this.viewportBounds,E=this.scale;b=tn.allocAt(0,0,b.width*E,b.height*E);var z=Je.allocAt(0,0);if(a.x>=b.x&&a.x<b.x+x.left&&this.allowHorizontalScroll){var ee=Math.max(this.scrollHorizontalLineChange,1);ee|=0,z.x-=ee,a.x<b.x+x.left/2&&(z.x-=ee),a.x<b.x+x.left/4&&(z.x-=4*ee)}else a.x<=b.x+b.width&&a.x>b.x+b.width-x.right&&this.allowHorizontalScroll&&(ee=Math.max(this.scrollHorizontalLineChange,1),ee|=0,z.x+=ee,a.x>b.x+b.width-x.right/2&&(z.x+=ee),a.x>b.x+b.width-x.right/4&&(z.x+=4*ee));return a.y>=b.y&&a.y<b.y+x.top&&this.allowVerticalScroll?(ee=Math.max(this.scrollVerticalLineChange,1),ee|=0,z.y-=ee,a.y<b.y+x.top/2&&(z.y-=ee),a.y<b.y+x.top/4&&(z.y-=4*ee)):a.y<=b.y+b.height&&a.y>b.y+b.height-x.bottom&&this.allowVerticalScroll&&(ee=Math.max(this.scrollVerticalLineChange,1),ee|=0,z.y+=ee,a.y>b.y+b.height-x.bottom/2&&(z.y+=ee),a.y>b.y+b.height-x.bottom/4&&(z.y+=4*ee)),z.Xa(ci)||(y=new Je(y.x+z.x/E,y.y+z.y/E)),tn.free(b),Je.free(z),y},Ie=en.prototype,Ie.Cs=function(){return null},Ie.av=function(){return null},Ie.bs=function(a,y){this.pj.add(a,y)},Ie.Fu=function(a){(this.Pw=a)||this.nodes.each(function(y){y instanceof xr&&(y.$p=null)})};function qh(a,y,x){function b(){var fe=+new Date;for(z=!0,ee.reset();ee.next();)if(!ee.value[0].al){z=!1;break}z||fe-de>oe?y(x,E,re):In.requestAnimationFrame(b)}for(var E=x.callback,z=!0,ee=a.Og.iterator;ee.next();)if(!ee.value[0].al){z=!1;break}if(typeof E!="function"||z)return y(x,E,a);var re=a,oe=x.callbackTimeout||300,de=+new Date;return In.requestAnimationFrame(function(){b()}),null}Ie.Wz=function(a){return va?(a===void 0&&(a={}),a.returnType="Image",this.Jx(a)):null},Ie.Jx=function(a){return a===void 0&&(a={}),qh(this,this.Xz,a)},Ie.Xz=function(a,y,x){var b=um(x,a,"canvas",null);if(b===null)return null;x=b.Z.canvas;var E=null;if(x!==null)switch(E=a.returnType,E===void 0?E="string":E=E.toLowerCase(),E){case Nh+"data":E=b.getImageData(0,0,x.width,x.height);break;case Nh:b=(a.document||document).createElement("img"),b.src=x.toDataURL(a.type,a.details),E=b;break;case"blob":return typeof y!="function"&&vt('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:E=x.toDataURL(a.type,a.details)}return typeof y=="function"?(y(E),null):E};function um(a,y,x,b){if(a.animationManager.Cc(),a.bd(),a.ta===null)return null;typeof y!="object"&&vt("properties argument must be an Object.");var E=y.size||null,z=y.scale||null;y.scale!==void 0&&isNaN(y.scale)&&(z="NaN");var ee=y.maxSize;y.maxSize===void 0&&(ee=x==="SVG"?new Ln(1/0,1/0):new Ln(2e3,2e3));var re=y.position||null,oe=y.parts||null,de=y.padding===void 0?1:y.padding,fe=y.background||null,ye=y.omitTemporary;ye===void 0&&(ye=!0);var Ce=y.document||document,Ne=y.elementFinished||null,Oe=y.showTemporary;Oe===void 0&&(Oe=!ye),y=y.showGrid,y===void 0&&(y=Oe),E!==null&&isNaN(E.width)&&isNaN(E.height)&&(E=null),typeof de=="number"?de=new pr(de):de instanceof pr||vt("MakeImage padding must be a Margin or a number."),de.left=Math.max(de.left,0),de.right=Math.max(de.right,0),de.top=Math.max(de.top,0),de.bottom=Math.max(de.bottom,0),a.ib.Vc(!0),ye=new Mu(null,Ce,void 0,!0);var Ve=ye.context;if(!(E||z||oe||re))return ye.width=a.Aa+Math.ceil(de.left+de.right),ye.height=a.ya+Math.ceil(de.top+de.bottom),x==="SVG"?b===null?null:(b.resize(ye.width,ye.height,ye.width,ye.height),b.ownerDocument=Ce,b.hs=Ne,Lf(a,b.context,de,new Ln(ye.width,ye.height),a.Ca,a.pa,oe,fe,Oe,y),b.context):(a.Xm=!1,Lf(a,Ve,de,new Ln(ye.width,ye.height),a.Ca,a.pa,oe,fe,Oe,y),a.Xm=!0,ye.context);var ft=a.Pp,lt=a.documentBounds.copy();if(lt.Fv(a.yb),Oe)for(var mt=a.Wa.s,St=mt.length,Ct=0;Ct<St;Ct++){var Rt=mt[Ct];if(Rt.visible&&Rt.isTemporary){Rt=Rt.Pa.s;for(var $t=Rt.length,di=0;di<$t;di++){var Di=Rt[di];Di.isInDocumentBounds&&Di.isVisible()&&(Di=Di.actualBounds,Di.w()&<.ed(Di))}}}if(mt=new Je(lt.x,lt.y),oe!==null){for(St=new tn(0,0,0,0),Ct=!0,Rt=oe.iterator,Rt.reset();Rt.next();)$t=Rt.value,$t instanceof Zi&&(di=$t.layer,di!==null&&!di.visible||di!==null&&!Oe&&di.isTemporary||!$t.isVisible()||($t=$t.actualBounds,$t.w()&&(Ct?(Ct=!1,St.assign($t)):St.ed($t))));lt.width=St.width,lt.height=St.height,mt.x=St.x,mt.y=St.y}return re!==null&&re.w()&&(mt=re,z||(z=ft)),St=re=0,de!==null&&(re=de.left+de.right,St=de.top+de.bottom),Ct=Rt=0,E!==null&&(Rt=E.width,Ct=E.height,isFinite(Rt)&&(Rt=Math.max(0,Rt-re)),isFinite(Ct)&&(Ct=Math.max(0,Ct-St))),E!==null&&z!==null?(z==="NaN"&&(z=ft),E.w()?(E=Rt,lt=Ct):isNaN(Ct)?(E=Rt,lt=lt.height*z):(E=lt.width*z,lt=Ct)):E!==null?E.w()?(z=Math.min(Rt/lt.width,Ct/lt.height),E=Rt,lt=Ct):isNaN(Ct)?(z=Rt/lt.width,E=Rt,lt=lt.height*z):(z=Ct/lt.height,E=lt.width*z,lt=Ct):z!==null?z==="NaN"&&ee.w()?(z=Math.min((ee.width-re)/lt.width,(ee.height-St)/lt.height),z>ft?(z=ft,E=lt.width,lt=lt.height):(E=ee.width,lt=ee.height)):(E=lt.width*z,lt=lt.height*z):(z=ft,E=lt.width,lt=lt.height),de!==null?(E+=re,lt+=St):de=new pr(0),ee!==null&&(ft=ee.width,ee=ee.height,isNaN(ft)&&(ft=2e3),isNaN(ee)&&(ee=2e3),isFinite(ft)&&(E=Math.min(E,ft)),isFinite(ee)&&(lt=Math.min(lt,ee))),ye.width=Math.ceil(E),ye.height=Math.ceil(lt),x==="SVG"?b===null?null:(b.resize(ye.width,ye.height,ye.width,ye.height),b.ownerDocument=Ce,b.hs=Ne,Lf(a,b.context,de,new Ln(Math.ceil(E),Math.ceil(lt)),z,mt,oe,fe,Oe,y),b.context):(a.Xm=!1,Lf(a,Ve,de,new Ln(Math.ceil(E),Math.ceil(lt)),z,mt,oe,fe,Oe,y),a.Xm=!0,ye.context)}jt.Object.defineProperties(en.prototype,{renderer:{get:function(){return this.nl},set:function(a){this instanceof xe||(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 wc(this,In.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 wc(this,In.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(In,"resize",this.Ov,!1),this.removeEventListener(In,"wheel",this.$j,!0),Rc===this&&(Rc=null)):this.ui===null&&(this.hf=!1),this.Ka=null,a!==null&&((y=a.H)&&(y.div=null),Ng(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||1<a)&&ri(a,"0 <= value <= 1",en,"opacity"),this.pb=a,this.g("opacity",y,a),this.N())}},validCycle:{get:function(){return this.wu},set:function(a){var y=this.wu;y!==a&&(this.wu=a,this.g("validCycle",y,a))}},layers:{get:function(){return this.Wa.iterator}},isModelReadOnly:{get:function(){var a=this.cc;return a===null?!1:a.isReadOnly},set:function(a){var y=this.cc;y!==null&&(y.isReadOnly=a)}},isReadOnly:{get:function(){return this.Gg},set:function(a){var y=this.Gg;y!==a&&(this.Gg=a,this.g("isReadOnly",y,a))}},isEnabled:{get:function(){return this.Jd},set:function(a){var y=this.Jd;y!==a&&(this.Jd=a,this.g("isEnabled",y,a))}},allowClipboard:{get:function(){return this.Us},set:function(a){var y=this.Us;y!==a&&(this.Us=a,this.g("allowClipboard",y,a))}},allowCopy:{get:function(){return this.Fi},set:function(a){var y=this.Fi;y!==a&&(this.Fi=a,this.g("allowCopy",y,a))}},allowDelete:{get:function(){return this.Gi},set:function(a){var y=this.Gi;y!==a&&(this.Gi=a,this.g("allowDelete",y,a))}},allowDragOut:{get:function(){return this.Vs},set:function(a){var y=this.Vs;y!==a&&(this.Vs=a,this.g("allowDragOut",y,a))}},allowDrop:{get:function(){return this.Ws},set:function(a){var y=this.Ws;y!==a&&(this.Ws=a,this.g("allowDrop",y,a))}},allowTextEdit:{get:function(){return this.Pi},set:function(a){var y=this.Pi;y!==a&&(this.Pi=a,this.g("allowTextEdit",y,a))}},allowGroup:{get:function(){return this.Hi},set:function(a){var y=this.Hi;y!==a&&(this.Hi=a,this.g("allowGroup",y,a))}},allowUngroup:{get:function(){return this.Qi},set:function(a){var y=this.Qi;y!==a&&(this.Qi=a,this.g("allowUngroup",y,a))}},allowInsert:{get:function(){return this.Ys},set:function(a){var y=this.Ys;y!==a&&(this.Ys=a,this.g("allowInsert",y,a))}},allowLink:{get:function(){return this.Ii},set:function(a){var y=this.Ii;y!==a&&(this.Ii=a,this.g("allowLink",y,a))}},allowRelink:{get:function(){return this.Ki},set:function(a){var y=this.Ki;y!==a&&(this.Ki=a,this.g("allowRelink",y,a))}},allowMove:{get:function(){return this.Ji},set:function(a){var y=this.Ji;y!==a&&(this.Ji=a,this.g("allowMove",y,a))}},allowReshape:{get:function(){return this.Li},set:function(a){var y=this.Li;y!==a&&(this.Li=a,this.g("allowReshape",y,a))}},allowResize:{get:function(){return this.Mi},set:function(a){var y=this.Mi;y!==a&&(this.Mi=a,this.g("allowResize",y,a))}},allowRotate:{get:function(){return this.Ni},set:function(a){var y=this.Ni;y!==a&&(this.Ni=a,this.g("allowRotate",y,a))}},allowSelect:{get:function(){return this.Oi},set:function(a){var y=this.Oi;y!==a&&(this.Oi=a,this.g("allowSelect",y,a))}},allowUndo:{get:function(){return this.Zs},set:function(a){var y=this.Zs;y!==a&&(this.Zs=a,this.g("allowUndo",y,a))}},allowZoom:{get:function(){return this.at},set:function(a){var y=this.at;y!==a&&(this.at=a,this.g("allowZoom",y,a))}},hasVerticalScrollbar:{get:function(){return this.nn},set:function(a){var y=this.nn;y!==a&&(this.nn=a,this.Ee=!0,this.N(),this.g("hasVerticalScrollbar",y,a),Lu(this,!1))}},hasHorizontalScrollbar:{get:function(){return this.mn},set:function(a){var y=this.mn;y!==a&&(this.mn=a,this.Ee=!0,this.N(),this.g("hasHorizontalScrollbar",y,a),Lu(this,!1))}},allowHorizontalScroll:{get:function(){return this.Xs},set:function(a){var y=this.Xs;y!==a&&(this.Xs=a,this.g("allowHorizontalScroll",y,a),Lu(this,!1))}},allowVerticalScroll:{get:function(){return this.$s},set:function(a){var y=this.$s;y!==a&&(this.$s=a,this.g("allowVerticalScroll",y,a),Lu(this,!1))}},scrollHorizontalLineChange:{get:function(){return this.iu},set:function(a){var y=this.iu;y!==a&&(0>a&&ri(a,">= 0",en,"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&&ri(a,">= 0",en,"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<a)){this.R("ChangingSelection",this.selection),y=this.selection.Fa();for(var x=0;x<a;x++)y[x].isSelected=!1;this.R("ChangedSelection",this.selection)}}else ri(a,">= 0",en,"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||om(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&&vt("Do not replace a Diagram.model while a transaction is in progress."),this.animationManager.Cc(!0);var x=Pg(this,!0);this.hf=!1,this.fn=!0,this.Ce=-2,this.kg=!1;var b=this.vb;this.vb=!0,$a(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=Hg(this.cc.type);for(var E=0;E<x.length;E++)this.add(x[E]);a.Pe(this.Hb),this.partManager.addAllModeledParts(),a.ik(this.Hb),a.Pe(this.Oc),this.pf!==null&&this.pf.each(function(z){return a.Pe(z)}),this.vb=b,this.Ya(),this.vb||this.N(),y&&a.undoManager.copyProperties(y.undoManager)}}},aa:{get:function(){return this.rw},set:function(a){this.rw=a}},As:{get:function(){return this.sy}},skipsModelSourceBindings:{get:function(){return this.Iw},set:function(a){this.Iw=a}},Ns:{get:function(){return this.ou},set:function(a){this.ou=a}},nodeTemplate:{get:function(){return this.Lg.I("")},set:function(a){var y=this.Lg.I("");y!==a&&(this.Lg.add("",a),this.g("nodeTemplate",y,a),this.undoManager.isUndoingRedoing||this.Wd())}},nodeTemplateMap:{get:function(){return this.Lg},set:function(a){var y=this.Lg;y!==a&&(this.Lg=a,this.g("nodeTemplateMap",y,a),this.undoManager.isUndoingRedoing||this.Wd())}},groupTemplate:{get:function(){return this.Yi.I("")},set:function(a){var y=this.Yi.I("");y!==a&&(this.Yi.add("",a),this.g("groupTemplate",y,a),this.undoManager.isUndoingRedoing||this.Wd())}},groupTemplateMap:{get:function(){return this.Yi},set:function(a){var y=this.Yi;y!==a&&(this.Yi=a,this.g("groupTemplateMap",y,a),this.undoManager.isUndoingRedoing||this.Wd())}},linkTemplate:{get:function(){return this.Kh.I("")},set:function(a){var y=this.Kh.I("");y!==a&&(this.Kh.add("",a),this.g("linkTemplate",y,a),this.undoManager.isUndoingRedoing||this.Wd())}},linkTemplateMap:{get:function(){return this.Kh},set:function(a){var y=this.Kh;y!==a&&(this.Kh=a,this.g("linkTemplateMap",y,a),this.undoManager.isUndoingRedoing||this.Wd())}},isMouseCaptured:{get:function(){return this.qw},set:function(a){var y=this.ta;y!==null&&(y=y.Oa,y instanceof SVGElement||(a?(this.lastInput.bubbles=!1,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.addEventListener(In,"pointermove",this.dk,!0),this.addEventListener(In,"pointerdown",this.ui,!0),this.addEventListener(In,"pointerup",this.fk,!0),this.addEventListener(In,"pointerout",this.ek,!0),this.addEventListener(In,"pointercancel",this.ck,!0),this.removeEventListener(y,"wheel",this.$j,!1),this.addEventListener(In,"wheel",this.$j,!0),this.addEventListener(In,"selectstart",this.preventDefault,!1)):(this.removeEventListener(In,"pointermove",this.dk,!0),this.removeEventListener(In,"pointerdown",this.ui,!0),this.removeEventListener(In,"pointerup",this.fk,!0),this.removeEventListener(In,"pointerout",this.ek,!0),this.removeEventListener(In,"pointercancel",this.ck,!0),this.addEventListener(y,"pointermove",this.dk,!1),this.addEventListener(y,"pointerdown",this.ui,!1),this.addEventListener(y,"pointerup",this.fk,!1),this.addEventListener(y,"pointerout",this.ek,!1),this.addEventListener(y,"pointercancel",this.ck,!1),this.removeEventListener(In,"wheel",this.$j,!0),this.removeEventListener(In,"selectstart",this.preventDefault,!1),this.addEventListener(y,"wheel",this.$j,!1)),this.qw=a))}},position:{get:function(){return this.pa},set:function(a){var y=Je.alloc().assign(this.pa);if(!y.D(a)){var x=this.viewportBounds.copy();this.pa.assign(a),zd(this.animationManager,y,this.pa),this.vb||this.ta===null&&!this.wo.w()?Ec(this):(this.vb=!0,a=this.scale,Ig(this,this.Sp,this.Aa/a,this.ya/a,this.zk,!1),this.vb=!1),this.vb||this.onViewportBoundsChanged(x,this.viewportBounds,this.Ca,!1)}Je.free(y)}},initialPosition:{get:function(){return this.zt},set:function(a){this.zt.D(a)||(this.zt=a.J())}},initialScale:{get:function(){return this.At},set:function(a){this.At!==a&&(this.At=a)}},grid:{get:function(){return this.fe===null&&(this.fe=tm(this)),this.fe},set:function(a){var y=this.fe;if(y!==a){y===null&&(y=this.fe=tm(this)),a.type!==Kn.Grid&&vt("Diagram.grid must be a Panel of type Panel.Grid");var x=y.panel;x!==null&&x.remove(y),this.fe=a,a.name="GRID",x!==null&&x.add(a),bc(this),this.N(),this.g("grid",y,a)}}},viewportBounds:{get:function(){return this.Rw}},viewSize:{get:function(){return this.wo},set:function(a){var y=this.viewSize;y.D(a)||(this.wo=a=a.J(),this.ya=this.Aa=0,a.w()?(this.Aa=a.width,this.ya=a.height):this.Ka!==null&&(this.Aa=this.Ka.clientWidth||1,this.ya=this.Ka.clientHeight||1),Ec(this),this.Ya(),this.g("viewSize",y,a),this.redraw())}},fixedBounds:{get:function(){return this.ut},set:function(a){var y=this.ut;y.D(a)||(a.width!==-1/0&&a.height!==1/0&&a.height!==-1/0||vt("fixedBounds width/height must not be Infinity"),this.ut=a=a.J(),this.Ya(),this.g("fixedBounds",y,a))}},scrollMargin:{get:function(){return this.rj},set:function(a){typeof a=="number"&&(a=new pr(a));var y=this.rj;y.D(a)||(this.rj=a=a.J(),this.g("scrollMargin",y,a),this.hk())}},scrollMode:{get:function(){return this.sj},set:function(a){var y=this.sj;y!==a&&(this.sj=a,a===vd&&Lu(this,!1),this.g("scrollMode",y,a),this.Ee=!0,this.N())}},scrollsPageOnFocus:{get:function(){return this.nu},set:function(a){var y=this.nu;y!==a&&(this.nu=a,this.g("scrollsPageOnFocus",y,a))}},positionComputation:{get:function(){return this.Zt},set:function(a){var y=this.Zt;y!==a&&(this.Zt=a,Lu(this,!1),this.g("positionComputation",y,a))}},scaleComputation:{get:function(){return this.fu},set:function(a){var y=this.fu;y!==a&&(this.fu=a,zg(this,this.scale,this.scale),this.g("scaleComputation",y,a))}},documentBounds:{get:function(){return this.Sp}},isVirtualized:{get:function(){return this.It},set:function(a){var y=this.It;y!==a&&(this.It=a,this.g("isVirtualized",y,a))}},scale:{get:function(){return this.Ca},set:function(a){var y=this.Ca;y!==a&&zg(this,y,a)}},defaultScale:{get:function(){return this.Pp},set:function(a){this.Pp=a}},autoScale:{get:function(){return this.yh},set:function(a){var y=this.yh;y!==a&&(this.yh=a,this.g("autoScale",y,a),a!==Zs&&Lu(this,!1))}},initialAutoScale:{get:function(){return this.Fg},set:function(a){var y=this.Fg;y!==a&&(this.Fg=a,this.g("initialAutoScale",y,a))}},initialViewportSpot:{get:function(){return this.Bt},set:function(a){var y=this.Bt;y!==a&&(a.sb()||vt("initialViewportSpot must be a specific Spot: "+a),this.Bt=a,this.g("initialViewportSpot",y,a))}},initialDocumentSpot:{get:function(){return this.yt},set:function(a){var y=this.yt;y!==a&&(a.sb()||vt("initialViewportSpot must be a specific Spot: "+a),this.yt=a,this.g("initialDocumentSpot",y,a))}},minScale:{get:function(){return this.Ot},set:function(a){var y=this.Ot;y!==a&&(0<a?(this.Ot=a,this.g("minScale",y,a),a>this.scale&&(this.scale=a)):ri(a,"> 0",en,"minScale"))}},maxScale:{get:function(){return this.Mt},set:function(a){var y=this.Mt;y!==a&&(0<a?(this.Mt=a,this.g("maxScale",y,a),a<this.scale&&(this.scale=a)):ri(a,"> 0",en,"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),Lu(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 pr(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&&vt("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();)cp(a.value)}},treeCollapsePolicy:{get:function(){return this.uu},set:function(a){var y=this.uu;y!==a&&(a!==yd&&a!==Ua&&a!==zf&&vt("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 Ln(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 pr(a));var y=this.xp;y.D(a)||(this.xp=a=a.J(),this.Ya(),this.g("autoScrollRegion",y,a))}}}),jt.Object.defineProperties(en,{licenseKey:{get:function(){return qg.jc()},set:function(a){qg.add(a.replace(/\s/g,""))}},version:{get:function(){return Ph}}}),en.prototype.makeImageData=en.prototype.Jx,en.prototype.makeImage=en.prototype.Wz,en.prototype.cacheGroupExternalLinks=en.prototype.Fu,en.prototype.addRenderer=en.prototype.bs,en.prototype.makeSVG=en.prototype.av,en.prototype.makeSvg=en.prototype.Cs,en.prototype.stopAutoScroll=en.prototype.ug,en.prototype.doAutoScroll=en.prototype.gs,en.prototype.isUnoccupied=en.prototype.Yj,en.prototype.raiseDiagramEvent=en.prototype.R,en.prototype.removeDiagramListener=en.prototype.am,en.prototype.addDiagramListener=en.prototype.Bj,en.prototype.findTreeRoots=en.prototype.yz,en.prototype.layoutDiagram=en.prototype.Uz,en.prototype.findTopLevelGroups=en.prototype.qz,en.prototype.findTopLevelNodesAndLinks=en.prototype.rz,en.prototype.ensureBounds=en.prototype.Va,en.prototype.findLinksByExample=en.prototype.ls,en.prototype.findNodesByExample=en.prototype.ms,en.prototype.findLinkForData=en.prototype.Kc,en.prototype.findNodeForData=en.prototype.ii,en.prototype.findPartForData=en.prototype.Lc,en.prototype.findLinkForKey=en.prototype.findLinkForKey,en.prototype.findNodeForKey=en.prototype.Vb,en.prototype.findPartForKey=en.prototype.findPartForKey,en.prototype.rebuildParts=en.prototype.Wd,en.prototype.transformViewToDoc=en.prototype.Ps,en.prototype.transformRectDocToView=en.prototype.zA,en.prototype.transformDocToView=en.prototype.op,en.prototype.centerRect=en.prototype.es,en.prototype.scrollToRect=en.prototype.tv,en.prototype.scroll=en.prototype.scroll,en.prototype.highlightCollection=en.prototype.Jz,en.prototype.highlight=en.prototype.Iz,en.prototype.selectCollection=en.prototype.rA,en.prototype.select=en.prototype.select,en.prototype.updateAllRelationshipsFromData=en.prototype.rp,en.prototype.updateAllTargetBindings=en.prototype.updateAllTargetBindings,en.prototype.commit=en.prototype.commit,en.prototype.rollbackTransaction=en.prototype.Kf,en.prototype.commitTransaction=en.prototype.eb,en.prototype.startTransaction=en.prototype.Ea,en.prototype.raiseChanged=en.prototype.g,en.prototype.raiseChangedEvent=en.prototype.cb,en.prototype.removeChangedListener=en.prototype.ik,en.prototype.addChangedListener=en.prototype.Pe,en.prototype.removeModelChangedListener=en.prototype.mA,en.prototype.addModelChangedListener=en.prototype.Yw,en.prototype.findLayer=en.prototype.Qj,en.prototype.removeLayer=en.prototype.kA,en.prototype.addLayerAfter=en.prototype.Cy,en.prototype.addLayerBefore=en.prototype.Ww,en.prototype.addLayer=en.prototype.Al,en.prototype.moveParts=en.prototype.moveParts,en.prototype.copyParts=en.prototype.Kj,en.prototype.removeParts=en.prototype.Is,en.prototype.remove=en.prototype.remove,en.prototype.add=en.prototype.add,en.prototype.clearDelayedGeometries=en.prototype.bx,en.prototype.setProperties=en.prototype.nm,en.prototype.attach=en.prototype.Du,en.prototype.set=en.prototype.set,en.prototype.resetInputOptions=en.prototype.Sx,en.prototype.setInputOption=en.prototype.sA,en.prototype.getInputOption=en.prototype.Ql,en.prototype.resetRenderingHints=en.prototype.Tx,en.prototype.setRenderingHint=en.prototype.Xx,en.prototype.getRenderingHint=en.prototype.Gf,en.prototype.maybeUpdate=en.prototype.bd,en.prototype.requestUpdate=en.prototype.$b,en.prototype.delayInitialization=en.prototype.Xy,en.prototype.isUpdateRequested=en.prototype.Pz,en.prototype.invalidateDocumentBounds=en.prototype.Ya,en.prototype.findObjectsNear=en.prototype.og,en.prototype.findPartsNear=en.prototype.mz,en.prototype.findObjectsIn=en.prototype.Cf,en.prototype.findPartsIn=en.prototype.ux,en.prototype.findObjectsAt=en.prototype.ji,en.prototype.findPartsAt=en.prototype.lz,en.prototype.findObjectAt=en.prototype.ic,en.prototype.findPartAt=en.prototype.Ol,en.prototype.focusObject=en.prototype.zz,en.prototype.alignDocument=en.prototype.Jy,en.prototype.zoomToRect=en.prototype.BA,en.prototype.zoomToFit=en.prototype.zoomToFit,en.prototype.diagramScroll=en.prototype.kx,en.prototype.focus=en.prototype.focus;var Uf=new an,cm=null,va=In.document!==void 0,Ah=null,Yd="",Zs=new mn(en,"None",0),nu=new mn(en,"Uniform",1),Kd=new mn(en,"UniformToFill",2),$h=new mn(en,"CycleAll",10),Kg=new mn(en,"CycleNotDirected",11),Zg=new mn(en,"CycleNotDirectedFast",12),Xg=new mn(en,"CycleNotUndirected",13),Qg=new mn(en,"CycleDestinationTree",14),Jg=new mn(en,"CycleSourceTree",15),vd=new mn(en,"DocumentScroll",1),ef=new mn(en,"InfiniteScroll",2),yd=new mn(en,"TreeParentCollapsed",21),Ua=new mn(en,"AllParentsCollapsed",22),zf=new mn(en,"AnyParentsCollapsed",23),qg=new Dn,Ph="2.3.10",Nh="image",tf=null,dm=!1;function Us(){if(va){var a=In.document.createElement("canvas"),y=a.getContext("2d"),x=Cn("7ca11abfd022028846");y[x]=Cn("398c3597c01238");for(var b=["5da73c80a36455d7038e4972187c3cae51fd22",fi.Dx+"4ae6247590da4bb21c324ba3a84e385776",dr.xF+"fb236cdfda5de14c134ba1a95a2d4c7cc6f93c1387",Bt.za],E=1;5>E;E++)y[Cn("7ca11abfd7330390")](Cn(b[E-1]),10,15*E);for(y[x]=Cn("39f046ebb36e4b"),x=1;5>x;x++)y[Cn("7ca11abfd7330390")](Cn(b[x-1]),10,15*x);(b.length!==4||b[0][0]!=="5"||b[3][0]!=="7")&&(dr.prototype.Cd=dr.prototype.Eu),tf=a}}en.className="Diagram",en.fromDiv=function(a){var y=a;return typeof a=="string"&&(y=In.document.getElementById(a)),y instanceof HTMLDivElement&&y.H instanceof en?y.H:null},en.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},en.useDOM=function(a){va=a?In.document!==void 0:!1},en.isUsingDOM=function(){return va},en.None=Zs,en.Uniform=nu,en.UniformToFill=Kd,en.CycleAll=$h,en.CycleNotDirected=Kg,en.CycleNotDirectedFast=Zg,en.CycleNotUndirected=Xg,en.CycleDestinationTree=Qg,en.CycleSourceTree=Jg,en.DocumentScroll=vd,en.InfiniteScroll=ef,en.TreeParentCollapsed=yd,en.AllParentsCollapsed=Ua,en.AnyParentsCollapsed=zf;function hm(){this.wy=null,this.j="zz@orderNum",this._tk==="63ad05bbe23a1786468a4c741b6d2"?this.Rc=this.j=!0:this.Rc=null}function kh(a,y){if(y.ib.setTransform(y.Mb,0,0,y.Mb,0,0),y.ib.yc(),a.Rc===null)e:{y="f";var x=In[Cn("76a715b2f73f148a")][Cn("72ba13b5")]||"";if(a.Rc=!0,va){var b=en[Cn("76a115b6ed251eaf4692")];if(b)for(var E=qg.iterator;E.next()&&(b=E.value,b=Cn(b).split(Cn("39e9")),!(6>b.length));){var z=Cn(b[1]).split(".");if(b[4]!=="7da71ca0")break;var ee=Cn(fi[Cn("6cae19")]).split(".");if(z[0]>ee[0]||z[0]===ee[0]&&z[1]>=ee[1]){var re=In[Cn("74a900bae4370f8b51")][Cn("6fbb13a1c2311e8a57")].toLowerCase();if(ee=re[Cn("73a612b6fb191d")](Cn("3aad1ab6e022098b4dc4")),z=Cn(b[2]),-1<ee&&(re=re[Cn("73a612b6fb191d")](z.toLowerCase()+"/"),a.Rc=!(-1<re&&re<ee),!a.Rc))break;for(ee=x[Cn("76ad18b4f73e")],re=x[Cn("73a612b6fb191d")](Cn("35e7"))+2;re<ee;re++)y+=x[re];if(ee=y[Cn("73a612b6fb191d")](z),0>ee&&z!==Cn("7da71ca0ad381e90")&&(ee=y[Cn("73a612b6fb191d")](Cn("76a715b2ef3e149757"))),0>ee&&(ee=y[Cn("73a612b6fb191d")](Cn("76a715b2ef3e149757"))),0>ee&&(ee=y[Cn("73a612b6fb191d")](Cn("2bfa41fdb3784bca12"))),0>ee&&(ee=x[Cn("73a612b6fb191d")](Cn("7baa19a6f76c1988428554"))),a.Rc=!(0<=ee&&ee<y[Cn("73a612b6fb191d")](Cn("35"))||y[Cn("73a612b6fb191d")](Cn("35"))===-1),!a.Rc||x[Cn("73a612b6fb191d")](Cn("7fb002b6ed25128b4da25b2e"))&&(a.Rc=!(-1<x[Cn("73a612b6fb191d")](z)),!a.Rc)||(ee=In[Cn("76a715b2f73f148a")][Cn("69ad17a1e03e")],re=ee[Cn("73a612b6fb191d")](Cn("7fb002b6ed25128b4da25b2e")),-1<re&&(a.Rc=!(ee[Cn("73a612b6fb191d")](z)>re),!a.Rc)))break;if(z[0]==="#"){ee=In.document.createElement("div");for(var oe=b[0].replace(/[A-Za-z]/g,"");4>oe.length;)oe+="9";if(re=oe,oe=oe.substr(oe.length-4),b="",b+=["gsh","gsf"][parseInt(oe.substr(0,1),10)%2],b+=["Header","Background","Display","Feedback"][parseInt(oe.substr(0,1),10)%4],ee[Cn("79a417a0f0181a8946")]=b,In.document[Cn("78a712aa")]){In.document[Cn("78a712aa")][Cn("7bb806b6ed32388c4a875b")](ee),oe=In.getComputedStyle(ee).getPropertyValue(Cn("78a704b7e62456904c9b12701b6532a8"));var de=In.getComputedStyle(ee).getPropertyValue(Cn("75b817b0ea2202"));if(In.document[Cn("78a712aa")][Cn("68ad1bbcf533388c4a875b")](ee),oe){if(ee=In[Cn("77a902b0eb1b1e804a8a")],de==="0."+parseInt(re,10)%100||oe.indexOf(parseInt(z[1]+z[2],16))!==-1&&oe.indexOf(parseInt(z[3]+z[4],16))!==-1){a.Rc=!1;break}else if(ee&&ee(Cn("32ae19a1e0331fc94084537c067a67fa59f1386b89d006")).matches)for(b="."+b,z=0;z<document.styleSheets.length;z++){ee=document.styleSheets[z].rules||document.styleSheets[z].cssRules;for(var fe in ee)if(b===ee[fe].selectorText){a.Rc=!1;break e}}}}else a.Rc=null,a.Rc=!1}}}else{for(fe=x[Cn("76ad18b4f73e")],E=x[Cn("73a612b6fb191d")](Cn("35e7"))+2;E<fe;E++)y+=x[E];x=y[Cn("73a612b6fb191d")](Cn("7da71ca0ad381e90")),a.Rc=!(0<=x&&x<y[Cn("73a612b6fb191d")](Cn("35")))}}}return 0<a.Rc&&a!==a.wy}hm.className="DiagramHelper";function qc(a){this.j=a===void 0?new Je:a,this.o=new Je}jt.Object.defineProperties(qc.prototype,{point:{get:function(){return this.j},set:function(a){this.j=a}},shifted:{get:function(){return this.o},set:function(a){this.o=a}}});var nf="DraggingInfo";qc.className="DraggingInfo";function ie(a,y,x){this.node=a,this.info=y,this.Su=x}ie.className="DraggingNodeInfoPair";function ae(){this.reset()}ae.prototype.reset=function(){this.isGridSnapEnabled=!1,this.isGridSnapRealtime=!0,this.gridSnapCellSize=new Ln(NaN,NaN).freeze(),this.gridSnapCellSpot=Qi,this.gridSnapOrigin=new Je(NaN,NaN).freeze(),this.groupsSnapMembers=this.dragsTree=this.dragsLink=!1,this.dragsMembers=this.groupsAlwaysMove=!0},ae.className="DraggingOptions";function ve(a,y){if(typeof a=="string"||In.Element&&a instanceof Element)var x=en.call(this,a)||this;else x=en.call(this)||this,y=a;return me(x),y&&x.nm(y),x}Wt(ve,en);function me(a){a.allowDragOut=!0,a.allowMove=!1,a.isReadOnly=!0,a.contentAlignment=Pr,a.layout=new Ss}ve.prototype.reset=function(){en.prototype.reset.call(this),me(this)},ve.className="Palette";function xe(a,y){if(typeof a=="string"||In.Element&&a instanceof Element)var x=en.call(this,a)||this;else x=en.call(this)||this,y=a;var b=x;x.animationManager.isEnabled=!1,x.vb=!0,x.V=null,x.mn=!1,x.nn=!1,x.F=!0,x.u=!0,x.ia=0,x.o=!1,x.ql=null,x.Xx("drawShadows",!1),a=new Zi;var E=new Nr;return E.stroke="magenta",E.strokeWidth=2,E.fill="transparent",E.name="BOXSHAPE",a.selectable=!0,a.selectionAdorned=!1,a.selectionObjectName="BOXSHAPE",a.locationObjectName="BOXSHAPE",a.resizeObjectName="BOXSHAPE",a.cursor="move",a.add(E),x.j=a,x.allowCopy=!1,x.allowDelete=!1,x.allowSelect=!0,x.autoScrollRegion=new pr(0,0,0,0),x.pa.h(0,0),x.toolManager.gb("Dragging",new pt,x.toolManager.mouseMoveTools),x.click=function(){var z=b.observed;if(z!==null){var ee=z.viewportBounds,re=b.lastInput.documentPoint;z.position=new Je(re.x-ee.width/2,re.y-ee.height/2)}},x.Pf=function(){b.Ya(),tt(b)},x.Xd=function(){b.observed!==null&&(b.Ya(),b.N())},x.Ha=function(){1>b.updateDelay?b.N():b.o||(b.o=!0,setTimeout(function(){return b.redraw()},b.updateDelay))},x.Of=function(){b.observed!==null&&tt(b)},x.autoScale=nu,x.vb=!1,y&&Object.assign(x,y),x}Wt(xe,en),xe.prototype.computePixelRatio=function(){return 1},xe.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(wh(this),this.ql===null){var x=new Mu(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),_e(this)}finally{this.ta=a,this.ib=y}}}en.prototype.redraw.call(this)},xe.prototype.gc=function(){if(this.Ka===null&&vt("No div specified"),this.ta===null&&vt("No canvas specified"),!(this.ta instanceof wc)&&(_v(this.box),this.Fc)){var a=this.observed;if(a!==null&&!a.animationManager.defaultAnimation.isAnimating&&a.pi){wh(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?_e(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;b<x;b++)y[b].gc(a,this);this.Fc=this.vd=!1}}};function _e(a){var y=a.observed;if(y!==null){var x=a.drawsTemporaryLayers,b=a.drawsGrid&&x,E=y.grid;b&&E!==null&&E.visible&&!isNaN(E.width)&&!isNaN(E.height)&&(E=tn.alloc().assign(a.viewportBounds).ed(y.viewportBounds),bc(y,E),tn.free(E),Ls(y));var z=a.Ab;z.reset(),a.scale!==1&&z.scale(a.scale),a.position.x===0&&a.position.y===0||z.translate(-a.position.x,-a.position.y),E=a.ib,E.scale(a.Mb,a.Mb),E.transform(z.m11,z.m12,z.m21,z.m22,z.dx,z.dy),E.yc(),y=y.Wa.s,z=y.length;for(var ee=0;ee<z;ee++){var re=y[ee],oe=a;if(re.visible&&re.opacity!==0){var de=re.diagram.grid.part;if(!x&&re.isTemporary)b&&de.layer===re&&(re=Jc(re,E),de.gc(E,oe),E.globalAlpha=re);else{for(var fe=Jc(re,E),ye=oe.scale,Ce=tn.alloc(),Ne=re.Pa.s,Oe=Ne.length,Ve=0;Ve<Oe;Ve++){var ft=Ne[Ve];(b||ft!==de)&&re.Oj(E,ft,oe,null,ye,Ce,!1)}tn.free(Ce),E.globalAlpha=fe}}}}}function tt(a){var y=a.box;if(y!==null){var x=a.observed;if(x!==null){a.Fc=!0,x=x.viewportBounds;var b=y.selectionObject,E=Ln.alloc();E.h(x.width,x.height),b.desiredSize=E,Ln.free(E),a=2/a.scale,b instanceof Nr&&(b.strokeWidth=a),y.location=new Je(x.x-a/2,x.y-a/2),y.isSelected=!0}}}xe.prototype.computeBounds=function(){var a=this.observed;if(a===null)return pa;var y=a.documentBounds.copy();return y.ed(a.viewportBounds),y},xe.prototype.invalidateViewport=function(){this.Fc!==!0&&(this.Fc=!0,this.$b())},xe.prototype.onViewportBoundsChanged=function(a,y,x,b){this.vb||(this.vd=!0,this.N(),this.Ee=!0,this.Ya(),tt(this),this.fc.scale=x,this.fc.position.x=a.x,this.fc.position.y=a.y,this.fc.bounds.assign(a),this.fc.Oz=b,this.R("ViewportBoundsChanged",this.fc,a))},jt.Object.defineProperties(xe.prototype,{observed:{get:function(){return this.V},set:function(a){var y=this.V;if(a instanceof xe&&vt("Overview.observed Diagram may not be an Overview itself: "+a),y!==a){if(y!==null&&(this.remove(this.box),y.am("ViewportBoundsChanged",this.Pf),y.am("DocumentBoundsChanged",this.Xd),y.am("InvalidateDraw",this.Ha),y.am("AnimationFinished",this.Of)),this.V=a,a!==null&&(a.Bj("ViewportBoundsChanged",this.Pf),a.Bj("DocumentBoundsChanged",this.Xd),a.Bj("InvalidateDraw",this.Ha),a.Bj("AnimationFinished",this.Of),this.add(this.box)),this.Ya(),a===null){this.ql=null;var x=this.ta,b=this.ib;x&&b&&(b.setTransform(1,0,0,1,0,0),b.clearRect(0,0,x.width,x.height))}else this.Ha(null),tt(this),this.N();this.g("observed",y,a)}}},box:{get:function(){return this.j},set:function(a){var y=this.j;y!==a&&(this.j=a,this.remove(y),this.add(this.j),tt(this),this.g("box",y,a))}},drawsTemporaryLayers:{get:function(){return this.F},set:function(a){this.F!==a&&(this.F=a,this.redraw())}},drawsGrid:{get:function(){return this.u},set:function(a){this.u!==a&&(this.u=a,this.redraw())}},updateDelay:{get:function(){return this.ia},set:function(a){0>a&&(a=0),this.ia!==a&&(this.ia=a)}}}),xe.className="Overview";function pt(){Vo.call(this),this.j=null}Wt(pt,Vo),pt.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.timestamp<this.delay)?!1:(this.findDraggablePart()===null&&(x=y.viewportBounds,this.j=new Je(x.width/2,x.height/2),a=a.firstInput.documentPoint,y.position=new Je(a.x-this.j.x,a.y-this.j.y)),!0)},pt.prototype.doActivate=function(){this.j=null,Vo.prototype.doActivate.call(this)},pt.prototype.doUpdateCursor=function(){var a=this.diagram,y=a.box;y!==null&&y.cursor&&(a.currentCursor=y.cursor)},pt.prototype.moveParts=function(){var a=this.diagram,y=a.observed;if(y!==null){var x=a.box;if(x!==null){if(this.j===null){var b=a.firstInput.documentPoint;x=x.location,this.j=new Je(b.x-x.x,b.y-x.y)}a=a.lastInput.documentPoint,y.position=new Je(a.x-this.j.x,a.y-this.j.y)}}},pt.className="OverviewDraggingTool";function ht(){qi(this),this.H=Rc,this.Ha=this.u=this.o=!0,this.F=this.V=this.nb=this.ia=!1,this.ij=this.j=null,this.Hb=1.05,this.Jt=NaN,this.sw=null,this.Au=NaN,this.yu=pa,this.hb=!0,this.cg=null,this.ob=200}ht.prototype.toString=function(){return"CommandHandler"},ht.prototype.Xe=function(a){this.H=a},ht.prototype.doKeyDown=function(){var a=this.diagram,y=a.lastInput,x=sr?y.meta:y.control,b=y.shift,E=y.alt,z=y.key;!x||z!=="C"&&z!=="Insert"?x&&z==="X"||b&&z==="Del"?this.canCutSelection()&&this.cutSelection():x&&z==="V"||b&&z==="Insert"?this.canPasteSelection()&&this.pasteSelection():x&&z==="Y"||E&&b&&z==="Backspace"?this.canRedo()&&this.redo():x&&z==="Z"||E&&z==="Backspace"?this.canUndo()&&this.undo():z==="Del"||z==="Backspace"?this.canDeleteSelection()&&this.deleteSelection():x&&z==="A"?this.canSelectAll()&&this.selectAll():z==="Esc"?this.canStopCommand()&&this.stopCommand():z==="Up"?a.allowVerticalScroll&&(x?a.scroll("pixel","up"):a.scroll("line","up")):z==="Down"?a.allowVerticalScroll&&(x?a.scroll("pixel","down"):a.scroll("line","down")):z==="Left"?a.allowHorizontalScroll&&(x?a.scroll("pixel","left"):a.scroll("line","left")):z==="Right"?a.allowHorizontalScroll&&(x?a.scroll("pixel","right"):a.scroll("line","right")):z==="PageUp"?b&&a.allowHorizontalScroll?a.scroll("page","left"):a.allowVerticalScroll&&a.scroll("page","up"):z==="PageDown"?b&&a.allowHorizontalScroll?a.scroll("page","right"):a.allowVerticalScroll&&a.scroll("page","down"):z==="Home"?x&&a.allowVerticalScroll?a.scroll("document","up"):!x&&a.allowHorizontalScroll&&a.scroll("document","left"):z==="End"?x&&a.allowVerticalScroll?a.scroll("document","down"):!x&&a.allowHorizontalScroll&&a.scroll("document","right"):z===" "?this.canScrollToPart()&&this.scrollToPart():z==="Subtract"?this.canDecreaseZoom()&&this.decreaseZoom():z==="Add"?this.canIncreaseZoom()&&this.increaseZoom():x&&z==="0"?this.canResetZoom()&&this.resetZoom():b&&z==="Z"?this.canZoomToFit()&&this.zoomToFit():x&&!b&&z==="G"?this.canGroupSelection()&&this.groupSelection():x&&b&&z==="G"?this.canUngroupSelection()&&this.ungroupSelection():z==="F2"||y.event&&y.event.key==="F2"?this.canEditTextBlock()&&this.editTextBlock():z==="ContextMenu"||y.event&&y.event.key==="ContextMenu"?this.canShowContextMenu()&&this.showContextMenu():y.bubbles=!0:this.canCopySelection()&&this.copySelection()},ht.prototype.doKeyUp=function(){this.diagram.lastInput.bubbles=!0},ht.prototype.stopCommand=function(){var a=this.diagram,y=a.currentTool;y instanceof jo&&a.allowSelect&&a.clearSelection(),y!==null&&y.doCancel()},ht.prototype.canStopCommand=function(){return!0},ht.prototype.selectAll=function(){var a=this.diagram;a.N();try{a.currentCursor="wait",a.R("ChangingSelection",a.selection);for(var y=a.parts;y.next();)y.value.isSelected=!0;for(var x=a.nodes;x.next();)x.value.isSelected=!0;for(var b=a.links;b.next();)b.value.isSelected=!0}finally{a.R("ChangedSelection",a.selection),a.currentCursor=""}},ht.prototype.canSelectAll=function(){return this.diagram.allowSelect},ht.prototype.deleteSelection=function(){var a=this.diagram;try{a.currentCursor="wait",a.R("ChangingSelection",a.selection),a.Ea("Delete"),a.R("SelectionDeleting",a.selection);for(var y=new Bn,x=a.selection.iterator;x.next();)Jd(y,x.value,!0,this.deletesTree?1/0:0,this.deletesConnectedLinks?null:!1,function(b){return b.canDelete()});a.Is(y,!0),a.R("SelectionDeleted",y)}finally{a.eb("Delete"),a.R("ChangedSelection",a.selection),a.currentCursor=""}},ht.prototype.canDeleteSelection=function(){var a=this.diagram;return!(a.isReadOnly||a.isModelReadOnly||!a.allowDelete||a.selection.count===0)},ht.prototype.copySelection=function(){var a=this.diagram,y=new Bn;for(a=a.selection.iterator;a.next();)Jd(y,a.value,!0,this.copiesTree?1/0:0,this.copiesConnectedLinks,function(x){return x.canCopy()});this.copyToClipboard(y)},ht.prototype.canCopySelection=function(){var a=this.diagram;return!!(a.allowCopy&&a.allowClipboard&&a.selection.count!==0)},ht.prototype.cutSelection=function(){this.copySelection(),this.deleteSelection()},ht.prototype.canCutSelection=function(){var a=this.diagram;return!!(!a.isReadOnly&&!a.isModelReadOnly&&a.allowCopy&&a.allowDelete&&a.allowClipboard&&a.selection.count!==0)},ht.prototype.copyToClipboard=function(a){var y=this.diagram,x=null;if(a===null)Ah=null,Yd="";else{x=y.model;var b=!1,E=!1,z=null;try{x.Tl()&&(b=x.Jj,x.Jj=this.copiesParentKey),x.Wj()&&(E=x.Ij,x.Ij=this.copiesGroupKey),z=y.Kj(a,null,!0)}finally{x.Tl()&&(x.Jj=b),x.Wj()&&(x.Ij=E),x=new Dn,x.addAll(z),Ah=x,Yd=y.model.dataFormat}}y.R("ClipboardChanged",x)},ht.prototype.pasteFromClipboard=function(){var a=new Bn,y=Ah;if(y===null)return a;var x=this.diagram;if(Yd!==x.model.dataFormat)return a;var b=x.model,E=!1,z=!1,ee=null;try{b.Tl()&&(E=b.Jj,b.Jj=this.copiesParentKey),b.Wj()&&(z=b.Ij,b.Ij=this.copiesGroupKey),ee=x.Kj(y,x,!1)}finally{for(b.Tl()&&(b.Jj=E),b.Wj()&&(b.Ij=z),y=ee.iterator;y.next();)x=y.value,b=y.key,x.location.w()||(b.location.w()?x.location=b.location:!x.position.w()&&b.position.w()&&(x.position=b.position)),a.add(x)}return a},ht.prototype.pasteSelection=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.currentCursor="wait",y.R("ChangingSelection",y.selection),y.Ea("Paste");var x=this.pasteFromClipboard();0<x.count&&y.clearSelection(!0);for(var b=x.iterator;b.next();)b.value.isSelected=!0;if(a!==null){var E=y.computePartsBounds(y.selection);if(E.w()){var z=this.computeEffectiveCollection(y.selection,y.Wm);Gd(y,z,new Je(a.x-E.centerX,a.y-E.centerY),y.Wm,!1)}}y.R("ClipboardPasted",x)}finally{y.eb("Paste"),y.R("ChangedSelection",y.selection),y.currentCursor=""}},ht.prototype.canPasteSelection=function(){var a=this.diagram;return!(a.isReadOnly||a.isModelReadOnly||!a.allowInsert||!a.allowClipboard||Ah===null||Ah.count===0||Yd!==a.model.dataFormat)},ht.prototype.undo=function(){this.diagram.undoManager.undo()},ht.prototype.canUndo=function(){var a=this.diagram;return a.isReadOnly||a.isModelReadOnly?!1:a.allowUndo&&a.undoManager.canUndo()},ht.prototype.redo=function(){this.diagram.undoManager.redo()},ht.prototype.canRedo=function(){var a=this.diagram;return a.isReadOnly||a.isModelReadOnly?!1:a.allowUndo&&a.undoManager.canRedo()},ht.prototype.decreaseZoom=function(a){a===void 0&&(a=1/this.zoomFactor);var y=this.diagram;y.autoScale===Zs&&(a=y.scale*a,a<y.minScale||a>y.maxScale||(y.scale=a))},ht.prototype.canDecreaseZoom=function(a){a===void 0&&(a=1/this.zoomFactor);var y=this.diagram;return y.autoScale!==Zs?!1:(a=y.scale*a,a<y.minScale||a>y.maxScale?!1:y.allowZoom)},ht.prototype.increaseZoom=function(a){a===void 0&&(a=this.zoomFactor);var y=this.diagram;y.autoScale===Zs&&(a=y.scale*a,a<y.minScale||a>y.maxScale||(y.scale=a))},ht.prototype.canIncreaseZoom=function(a){a===void 0&&(a=this.zoomFactor);var y=this.diagram;return y.autoScale!==Zs?!1:(a=y.scale*a,a<y.minScale||a>y.maxScale?!1:y.allowZoom)},ht.prototype.resetZoom=function(a){a===void 0&&(a=this.defaultScale);var y=this.diagram;a<y.minScale||a>y.maxScale||(y.scale=a)},ht.prototype.canResetZoom=function(a){a===void 0&&(a=this.defaultScale);var y=this.diagram;return a<y.minScale||a>y.maxScale?!1:y.allowZoom},ht.prototype.zoomToFit=function(){var a=this.diagram,y=a.animationManager;y.Cc(),a.redraw();var x=a.position,b=a.scale;$a(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=pa):(this.Jt=b,this.sw=x.copy(),a.zoomToFit(),this.Au=a.scale,this.yu=a.documentBounds.copy()),Hl(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(oe){this.cg=null}a===null&&(0<y.highlighteds.count?this.cg=y.highlighteds.iterator:0<y.selection.count&&(this.cg=y.selection.iterator),this.cg!==null&&this.cg.next()&&(a=this.cg.value))}if(a!==null){var x=y.animationManager;$a(x,"Scroll To Part");var b=this.scrollToPartPause;if(0<b){var E=Tt(this,a,[a]);if(E.length===1)y.Ea(),y.es(a.actualBounds),y.eb("Scroll To Part");else{var z=function(){y.Ea();for(var oe=E.pop();0<E.length&&oe instanceof Si&&oe.isTreeExpanded&&(!(oe instanceof xr)||oe.isSubGraphExpanded);)oe=E.pop();0<E.length?(oe instanceof Zi&&y.tv(oe.actualBounds),oe instanceof Si&&!oe.isTreeExpanded&&(oe.isTreeExpanded=!0),oe instanceof xr&&!oe.isSubGraphExpanded&&(oe.isSubGraphExpanded=!0)):(oe instanceof Zi&&y.es(oe.actualBounds),y.am("LayoutCompleted",ee)),y.eb("Scroll To Part")},ee=function(){Gt(z,(x.isEnabled?x.duration:0)+b)};y.Bj("LayoutCompleted",ee),z()}}else{var re=y.position.copy();y.es(a.actualBounds),re.Xa(y.position)&&x.Cc()}}};function Tt(a,y,x){if(y.isVisible())return x;if(y instanceof lo)Tt(a,y.adornedPart,x);else if(y instanceof ei){var b=y.fromNode;b!==null&&Tt(a,b,x),y=y.toNode,y!==null&&Tt(a,y,x)}else y instanceof Si&&(b=y.labeledLink,b!==null&&Tt(a,b,x),b=y.pg(),b!==null&&(b.isTreeExpanded||b.wasTreeExpanded||x.push(b),Tt(a,b,x))),y=y.containingGroup,y!==null&&(y.isSubGraphExpanded||y.wasSubGraphExpanded||x.push(y),Tt(a,y,x));return x}ht.prototype.canScrollToPart=function(a){return a===void 0&&(a=null),a!==null&&!(a instanceof Zi)?!1:(a=this.diagram,a.selection.count===0&&a.highlighteds.count===0?!1:a.allowHorizontalScroll&&a.allowVerticalScroll)},ht.prototype.collapseTree=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Collapse Tree"),$a(y.animationManager,"Collapse Tree");var x=new Dn;if(a!==null&&a.isTreeExpanded)a.collapseTree(),x.add(a);else if(a===null)for(var b=y.selection.iterator;b.next();){var E=b.value;E instanceof Si&&E.isTreeExpanded&&(E.collapseTree(),x.add(E))}y.R("TreeCollapsed",x)}finally{y.eb("Collapse Tree")}},ht.prototype.canCollapseTree=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null){if(!(a instanceof Si&&a.isTreeExpanded))return!1;if(0<a.Qo().count)return!0}else for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof Si&&y.isTreeExpanded&&0<y.Qo().count)return!0;return!1},ht.prototype.expandTree=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Expand Tree"),$a(y.animationManager,"Expand Tree");var x=new Dn;if(a!==null&&!a.isTreeExpanded)a.expandTree(),x.add(a);else if(a===null)for(var b=y.selection.iterator;b.next();){var E=b.value;E instanceof Si&&!E.isTreeExpanded&&(E.expandTree(),x.add(E))}y.R("TreeExpanded",x)}finally{y.eb("Expand Tree")}},ht.prototype.canExpandTree=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null){if(!(a instanceof Si)||a.isTreeExpanded)return!1;if(0<a.Qo().count)return!0}else for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof Si&&!y.isTreeExpanded&&0<y.Qo().count)return!0;return!1},ht.prototype.groupSelection=function(){var a=this.diagram,y=a.model;if(y.Xj()){var x=this.archetypeGroupData;if(x!==null){var b=null;try{a.currentCursor="wait",a.R("ChangingSelection",a.selection),a.Ea("Group");for(var E=new Dn,z=a.selection.iterator;z.next();){var ee=z.value;ee.Zc()&&ee.canGroup()&&E.add(ee)}for(var re=new Dn,oe=E.iterator;oe.next();){var de=oe.value;z=!1;for(var fe=E.iterator;fe.next();)if(de.Td(fe.value)){z=!0;break}z||re.add(de)}if(0<re.count){var ye=re.first().containingGroup;if(ye!==null)for(;ye!==null;){E=!1;for(var Ce=re.iterator;Ce.next();)if(!Ce.value.Td(ye)){E=!0;break}if(E)ye=ye.containingGroup;else break}if(x instanceof xr)Ru(x),b=x.copy(),b!==null&&a.add(b);else if(y.Yu(x)){var Ne=y.copyNodeData(x);zt(Ne)&&(y.xf(Ne),b=a.ii(Ne))}if(b!==null){ye!==null&&this.isValidMember(ye,b)&&(b.containingGroup=ye);for(var Oe=re.iterator;Oe.next();){var Ve=Oe.value;this.isValidMember(b,Ve)&&(Ve.containingGroup=b)}a.clearSelection(!0),b.isSelected=!0}}a.R("SelectionGrouped",b)}finally{a.eb("Group"),a.R("ChangedSelection",a.selection),a.currentCursor=""}}}},ht.prototype.canGroupSelection=function(){var a=this.diagram;if(a.isReadOnly||a.isModelReadOnly||!a.allowInsert||!a.allowGroup||!a.model.Xj()||this.archetypeGroupData===null)return!1;for(a=a.selection.iterator;a.next();){var y=a.value;if(y.Zc()&&y.canGroup())return!0}return!1};function vn(a){var y=Mi();for(a=a.iterator;a.next();){var x=a.value;x instanceof ei||y.push(x)}a=new Bn,x=y.length;for(var b=0;b<x;b++){for(var E=y[b],z=!0,ee=0;ee<x;ee++)if(E.Td(y[ee])){z=!1;break}z&&a.add(E)}return ui(y),a}ht.prototype.isValidMember=function(a,y){if(y===null||a===y||y instanceof ei)return!1;if(a!==null){if(a===y||a.Td(y))return!1;var x=a.memberValidation;if(x!==null&&!x(a,y)||a.data===null&&y.data!==null||a.data!==null&&y.data===null)return!1}return x=this.memberValidation,x!==null?x(a,y):!0},ht.prototype.ungroupSelection=function(a){a===void 0&&(a=null);var y=this.diagram,x=y.model;if(x.Xj())try{y.currentCursor="wait",y.R("ChangingSelection",y.selection),y.Ea("Ungroup");var b=new Dn;if(a!==null)b.add(a);else for(var E=y.selection.iterator;E.next();){var z=E.value;z instanceof xr&&z.canUngroup()&&b.add(z)}var ee=new Dn;if(0<b.count){y.clearSelection(!0);for(var re=b.iterator;re.next();){var oe=re.value;oe.expandSubGraph();var de=oe.containingGroup,fe=de!==null&&de.data!==null?x.wa(de.data):void 0;ee.addAll(oe.memberParts);for(var ye=ee.iterator;ye.next();){var Ce=ye.value;if(Ce.isSelected=!0,!(Ce instanceof ei)){var Ne=Ce.data;Ne!==null?x.mp(Ne,fe):Ce.containingGroup=de}}y.remove(oe)}}y.R("SelectionUngrouped",b,ee)}finally{y.eb("Ungroup"),y.R("ChangedSelection",y.selection),y.currentCursor=""}},ht.prototype.canUngroupSelection=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly||y.isModelReadOnly||!y.allowDelete||!y.allowUngroup||!y.model.Xj())return!1;if(a!==null){if(!(a instanceof xr))return!1;if(a.canUngroup())return!0}else for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof xr&&y.canUngroup())return!0;return!1},ht.prototype.addTopLevelParts=function(a,y){var x=!0;for(a=vn(a).iterator;a.next();){var b=a.value;b.containingGroup!==null&&(!y||this.isValidMember(null,b)?b.containingGroup=null:x=!1)}return x},ht.prototype.collapseSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Collapse SubGraph"),$a(y.animationManager,"Collapse SubGraph");var x=new Dn;if(a!==null&&a.isSubGraphExpanded)a.collapseSubGraph(),x.add(a);else if(a===null)for(var b=y.selection.iterator;b.next();){var E=b.value;E instanceof xr&&E.isSubGraphExpanded&&(E.collapseSubGraph(),x.add(E))}y.R("SubGraphCollapsed",x)}finally{y.eb("Collapse SubGraph")}},ht.prototype.canCollapseSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null)return!!(a instanceof xr&&a.isSubGraphExpanded);for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof xr&&y.isSubGraphExpanded)return!0;return!1},ht.prototype.expandSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Expand SubGraph"),$a(y.animationManager,"Expand SubGraph");var x=new Dn;if(a!==null&&!a.isSubGraphExpanded)a.expandSubGraph(),x.add(a);else if(a===null)for(var b=y.selection.iterator;b.next();){var E=b.value;E instanceof xr&&!E.isSubGraphExpanded&&(E.expandSubGraph(),x.add(E))}y.R("SubGraphExpanded",x)}finally{y.eb("Expand SubGraph")}},ht.prototype.canExpandSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null)return a instanceof xr&&!a.isSubGraphExpanded;for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof xr&&!y.isSubGraphExpanded)return!0;return!1},ht.prototype.editTextBlock=function(a){a===void 0&&(a=null);var y=this.diagram,x=y.toolManager.findTool("TextEditing");if(x!==null){if(a===null){a=null;for(var b=y.selection.iterator;b.next();){var E=b.value;if(E.canEdit()){a=E;break}}if(a===null)return;a=a.Nl(function(z){return z instanceof Ko&&z.editable})}a!==null&&(y.currentTool=null,x.textBlock=a,y.currentTool=x)}},ht.prototype.canEditTextBlock=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly||y.isModelReadOnly||!y.allowTextEdit||y.toolManager.findTool("TextEditing")===null)return!1;if(a!==null){if(!(a instanceof Ko))return!1;if(a=a.part,a!==null&&a.canEdit())return!0}else for(y=y.selection.iterator;y.next();)if(a=y.value,a.canEdit()&&(a=a.Nl(function(x){return x instanceof Ko&&x.editable}),a!==null))return!0;return!1},ht.prototype.showContextMenu=function(a){var y=this.diagram,x=y.toolManager.findTool("ContextMenu");if(x!==null&&(a===void 0&&(a=0<y.selection.count?y.selection.first():y),a=x.findObjectWithContextMenu(a),a!==null)){var b=y.lastInput,E=null;a instanceof Ot?E=a.ga(mr):y.viewportBounds.ca(b.documentPoint)||(E=y.viewportBounds,E=new Je(E.x+E.width/2,E.y+E.height/2)),E!==null&&(b.viewPoint=y.op(E),b.documentPoint=E,b.left=!1,b.right=!0,b.up=!0),y.currentTool=x,Aa(x,!1,a)}},ht.prototype.canShowContextMenu=function(a){var y=this.diagram,x=y.toolManager.findTool("ContextMenu");return x===null?!1:(a===void 0&&(a=0<y.selection.count?y.selection.first():y),x.findObjectWithContextMenu(a)!==null)},ht.prototype.computeEffectiveCollection=function(a,y){var x=this.diagram,b=x.toolManager.findTool("Dragging"),E=x.currentTool===b;if(y===void 0&&(y=E?b.dragOptions:x.Wm),b=new an,a===null)return b;for(var z=a.iterator;z.next();)Dc(x,b,z.value,E,y);if(x.draggedLink!==null&&y.dragsLink)return b;for(z=a.iterator;z.next();)a=z.value,a instanceof ei&&(y=a.fromNode,y===null||b.contains(y)?(y=a.toNode,y===null||b.contains(y)||b.remove(a)):b.remove(a));return b},jt.Object.defineProperties(ht.prototype,{diagram:{get:function(){return this.H}},copiesClipboardData:{get:function(){return this.o},set:function(a){this.o=a}},copiesConnectedLinks:{get:function(){return this.u},set:function(a){this.u=a}},deletesConnectedLinks:{get:function(){return this.Ha},set:function(a){this.Ha=a}},copiesTree:{get:function(){return this.ia},set:function(a){this.ia=a}},deletesTree:{get:function(){return this.nb},set:function(a){this.nb=a}},copiesParentKey:{get:function(){return this.V},set:function(a){this.V=a}},copiesGroupKey:{get:function(){return this.F},set:function(a){this.F=a}},archetypeGroupData:{get:function(){return this.j},set:function(a){this.j=a}},memberValidation:{get:function(){return this.ij},set:function(a){this.ij=a}},defaultScale:{get:function(){return this.diagram.defaultScale},set:function(a){this.diagram.defaultScale=a}},zoomFactor:{get:function(){return this.Hb},set:function(a){1<a||vt("zoomFactor must be larger than 1.0, not: "+a),this.Hb=a}},isZoomToFitRestoreEnabled:{get:function(){return this.hb},set:function(a){this.hb=a}},scrollToPartPause:{get:function(){return this.ob},set:function(a){this.ob=a}}}),ht.className="CommandHandler",$p=function(){return new ht};function Ot(){qi(this),this.l=30723,this.pb=1,this.bn="",this.Ma=this.Me=null,this.pa=new Je(NaN,NaN).freeze(),this.jd=jr,this.Ab=new dr,this.wh=new dr,this.Lb=null,this.Ca=this.Kk=1,this.Kb=0,this.Kg=wa,this.uc=new tn(NaN,NaN,NaN,NaN).freeze(),this.Ib=new tn(NaN,NaN,NaN,NaN).freeze(),this.dc=new tn(0,0,NaN,NaN).freeze(),this.ba=this.Yn=this.Zn=null,this.sk=this.Jb=Da,this.Ag=this.io=0,this.V=this.tb=this.Dh=this.A=this.Ua=null,this.Uc=!1,this.jo=this.Ng=null}var Wn,Mn,Ui,ji,nr,Er,Yr,Dr,io,Io;Ot.prototype.cloneProtected=function(a){a.l=this.l|6144,a.pb=this.pb,a.bn=this.bn,a.Ma=this.Ma,a.pa.assign(this.pa),a.jd=this.jd.J(),this.Lb!==null?a.Lb=this.Lb.copy():a.Lb=null,a.Ca=this.Ca,a.Kb=this.Kb,a.Kg=this.Kg.J(),a.uc.assign(this.uc),a.Ib.assign(this.Ib),a.dc.assign(this.dc),a.Yn=this.Yn,this.ba!==null&&(a.ba=this.ba.copy()),a.Jb=this.Jb.J(),a.sk=this.sk.J(),a.io=this.io,a.Ag=this.Ag,this.Ua!==null&&(a.Ua=this.Ua.copy()),this.A!==null&&(a.A=this.A.nc?this.A:this.A.copy()),this.Dh!==null&&(a.Dh=oi(this.Dh)),this.tb!==null&&(a.tb=this.tb.copy())},Ot.prototype.Vw=function(a){var y=this.Dh;if(wn(y)){for(var x=0;x<y.length;x++)if(y[x]===a)return}else this.Dh=y=[];y.push(a)},Ot.prototype.Af=function(a){a.Zn=null,a.Ng=null,a.v()},Ot.prototype.clone=function(){var a=new this.constructor;if(this.cloneProtected(a),this.Dh!==null)for(var y=0;y<this.Dh.length;y++){var x=this.Dh[y];a[x]=this[x]}return a},Ot.prototype.copy=function(){return this.clone()},Ie=Ot.prototype,Ie.qb=function(a){a.classType===ei?a.name.indexOf("Orient")===0?this.segmentOrientation=a:vt("Unknown Link enum value for GraphObject.segmentOrientation property: "+a):a.classType===Ot&&(this.stretch=a)},Ie.toString=function(){return Tn(this.constructor)+"#"+gr(this)},Ie.th=function(){this.A!==null&&(this.A.nc=!0)};function Rr(a){a.A===null?a.A=new of:a.A.nc&&(a.A=a.A.copy())}Ie.Xc=function(){if(this.ba===null){var a=new $g;a.Xi=Ni,a.yj=Ni,a.Vi=10,a.wj=10,a.Wi=0,a.xj=0,this.ba=a}},Ie.cb=function(a,y,x,b,E,z,ee){var re=this.part;if(re!==null&&(re.gk(a,y,x,b,E,z,ee),x===this&&a===Wo&&Ts(this)&&ea(this,re,y),z=this.diagram,this.animationTriggers===null||z===null||!z.pi||z.undoManager.isUndoingRedoing||z.animationManager.Dm||(a=this.animationTriggers.get(y),a!==null&&z.animationManager.isEnabled&&!z.animationManager.isTicking&&(this.jo===null&&(this.jo=new an),ee=z.undoManager.transactionLevel===0,a.startCondition===jl?ee=!0:a.startCondition===Sh&&(ee=!1),ee?(z=new Ti,tu(a,z),ee=this.jo.get(a),ee!==null&&ee.stop(),this.jo.add(a,z),z.vu=this,z.Nw=a,z.add(this,y,b,E),z.start()):($a(z.animationManager,"Trigger"),z.animationManager.defaultAnimation.add(this,y,b,E)))),this instanceof Kn&&x===re&&(re.l&16777216)!==0&&re.data!==null))for(x=this.O.s,b=x.length,E=0;E<b;E++)re=x[E],re instanceof Kn&&Rh(re,function(oe){oe.data!==null&&oe.l&16777216&&oe.La(y)})};function ea(a,y,x){var b=a.ih();if(b!==null)for(var E=a.localBindings.iterator;E.next();){var z=E.value,ee=null;if(z.sourceName!==null){if(ee=M1(z,b,a),ee===null)continue;z.sp(a,ee,x,null)}else if(z.isToModel){var re=y.diagram;re===null||re.skipsModelSourceBindings||z.sp(a,re.model.modelData,x,b)}else{if(re=b.data,re===null)continue;var oe=y.diagram;oe===null||oe.skipsModelSourceBindings||z.sp(a,re,x,b)}ee===a&&(re=b.ks(z.Ai),re!==null&&z.Mv(re,ee,x))}}Ie.ks=function(a){return this.bindingId===a?this:null},Ie.g=function(a,y,x){this.cb(Wo,a,this,y,x)},Ie.Ge=function(a,y,x,b){var E=this.uc;if(E.h(a,y,x,b),this.Ca!==1||this.Kb!==0){this.Lb===null&&(this.Lb=new dr);var z=this.Lb;z.reset(),this.no(z,a,y,x,b),z.pp(E)}};function is(a,y,x,b){return a.pickable===!1?!1:(b.multiply(a.transform),x?a.Yc(y,b):a.fh(y,b))}Ie.tx=function(a,y,x){if(this.pickable===!1)return!1;var b=this.naturalBounds;return y=a.Bf(y),x?bi(a.x,a.y,0,0,0,b.height)<=y||bi(a.x,a.y,0,b.height,b.width,b.height)<=y||bi(a.x,a.y,b.width,b.height,b.width,0)<=y||bi(a.x,a.y,b.width,0,0,0)<=y:a.zd(0,0)<=y&&a.zd(0,b.height)<=y&&a.zd(b.width,0)<=y&&a.zd(b.width,b.height)<=y},Ie.se=function(){return!0},Ie.ca=function(a){var y=Je.alloc();y.assign(a),this.transform.Ga(y);var x=this.actualBounds;if(!x.w())return Je.free(y),!1;var b=this.diagram;if(b!==null&&b.wq){var E=b.Ql("extraTouchThreshold"),z=b.Ql("extraTouchArea"),ee=z/2,re=this.naturalBounds;b=this.Df()*b.scale;var oe=1/b;if(re.width*b<E&&re.height*b<E)return a=Oo(x.x-ee*oe,x.y-ee*oe,x.width+z*oe,x.height+z*oe,y.x,y.y),Je.free(y),a}return E=!1,(this instanceof lo||this instanceof Nr?Oo(x.x-5,x.y-5,x.width+10,x.height+10,y.x,y.y):x.ca(y))&&(this.tb&&!this.tb.ca(y)?E=!1:this.areaBackground!==null&&x.ca(y)||this.Ma!==null&&this.dc.ca(a)?E=!0:E=this.gh(a)),Je.free(y),E},Ie.gh=function(a){var y=this.naturalBounds;return Oo(0,0,y.width,y.height,a.x,a.y)},Ie.Re=function(a){if(this.angle===0)return this.actualBounds.Re(a);var y=this.naturalBounds;y=tn.allocAt(0,0,y.width,y.height);var x=this.transform,b=!1,E=Je.allocAt(a.x,a.y);return y.ca(x.Cd(E))&&(E.h(a.x,a.bottom),y.ca(x.Cd(E))&&(E.h(a.right,a.bottom),y.ca(x.Cd(E))&&(E.h(a.right,a.y),y.ca(x.Cd(E))&&(b=!0)))),Je.free(E),tn.free(y),b},Ie.fh=function(a,y){if(y===void 0)return a.Re(this.actualBounds);var x=this.naturalBounds,b=!1,E=Je.allocAt(0,0);return a.ca(y.Ga(E))&&(E.h(0,x.height),a.ca(y.Ga(E))&&(E.h(x.width,x.height),a.ca(y.Ga(E))&&(E.h(x.width,0),a.ca(y.Ga(E))&&(b=!0)))),Je.free(E),b},Ie.Yc=function(a,y){if(y===void 0&&(y=this.transform,this.angle===0))return a.Yc(this.actualBounds);var x=this.naturalBounds,b=Je.allocAt(0,0),E=Je.allocAt(0,x.height),z=Je.allocAt(x.width,x.height),ee=Je.allocAt(x.width,0),re=!1;if(a.ca(y.Ga(b))||a.ca(y.Ga(E))||a.ca(y.Ga(z))||a.ca(y.Ga(ee)))re=!0;else{x=tn.allocAt(0,0,x.width,x.height);var oe=Je.allocAt(a.x,a.y);x.ca(y.Cd(oe))?re=!0:(oe.h(a.x,a.bottom),x.ca(y.Cd(oe))?re=!0:(oe.h(a.right,a.bottom),x.ca(y.Cd(oe))?re=!0:(oe.h(a.right,a.y),x.ca(y.Cd(oe))&&(re=!0)))),Je.free(oe),tn.free(x),!re&&(Bt.us(a,b,E)||Bt.us(a,E,z)||Bt.us(a,z,ee)||Bt.us(a,ee,b))&&(re=!0)}return Je.free(b),Je.free(E),Je.free(z),Je.free(ee),re},Ie.ga=function(a,y){if(y===void 0&&(y=new Je),a instanceof Ut){var x=this.naturalBounds;y.h(a.x*x.width+a.offsetX,a.y*x.height+a.offsetY)}else y.set(a);return this.oe.Ga(y),y},Ie.mi=function(a){a===void 0&&(a=new tn);var y=this.naturalBounds,x=this.oe,b=Je.allocAt(0,0).transform(x);return a.h(b.x,b.y,0,0),b.h(y.width,0).transform(x),qr(a,b.x,b.y,0,0),b.h(y.width,y.height).transform(x),qr(a,b.x,b.y,0,0),b.h(0,y.height).transform(x),qr(a,b.x,b.y,0,0),Je.free(b),a},Ie.li=function(){var a=this.oe;return a.m11===1&&a.m12===0?a=0:(a=180*Math.atan2(a.m12,a.m11)/Math.PI,0>a&&(a+=360)),a},Ie.Df=function(){if(!(this.l&4096))return this.Kk;var a=this.Ca;return this.panel!==null?a*this.panel.Df():a},Ie.qs=function(a,y){return y===void 0&&(y=new Je),y.assign(a),this.oe.Cd(y),y},Ie.rs=function(a,y,x){return this.Sj(a.x,a.y,y.x,y.y,x)},Ie.Sj=function(a,y,x,b,E){var z=this.transform,ee=1/(z.m11*z.m22-z.m12*z.m21),re=z.m22*ee,oe=-z.m12*ee,de=-z.m21*ee,fe=z.m11*ee,ye=ee*(z.m21*z.dy-z.m22*z.dx),Ce=ee*(z.m12*z.dx-z.m11*z.dy);return this.areaBackground!==null?(z=this.actualBounds,Bt.Ff(z.left,z.top,z.right,z.bottom,a,y,x,b,E)):(ee=a*re+y*de+ye,a=a*oe+y*fe+Ce,y=x*re+b*de+ye,x=x*oe+b*fe+Ce,E.h(0,0),b=this.naturalBounds,x=Bt.Ff(0,0,b.width,b.height,ee,a,y,x,E),E.transform(z),x)},Ot.prototype.measure=function(a,y,x,b){if(ru(this)!==!1){var E=this.Kg,z=E.right+E.left;E=E.top+E.bottom,a=Math.max(a-z,0),y=Math.max(y-E,0),x=Math.max((x||0)-z,0),b=Math.max((b||0)-E,0),z=this.angle,E=this.desiredSize;var ee=this.kq();z===90||z===270?(a=isFinite(E.height)?E.height+ee:a,y=isFinite(E.width)?E.width+ee:y):(a=isFinite(E.width)?E.width+ee:a,y=isFinite(E.height)?E.height+ee:y),E=x||0,ee=b||0;var re=this instanceof Kn;switch(El(this,!0)){case Mn:ee=E=0,re&&(y=a=1/0);break;case Wn:isFinite(a)&&a>x&&(E=a),isFinite(y)&&y>b&&(ee=y);break;case ji:isFinite(a)&&a>x&&(E=a),ee=0,re&&(y=1/0);break;case nr:isFinite(y)&&y>b&&(ee=y),E=0,re&&(a=1/0)}re=this.maxSize;var oe=this.minSize;E>re.width&&oe.width<re.width&&(E=re.width),ee>re.height&&oe.height<re.height&&(ee=re.height),x=Math.max(E,oe.width),b=Math.max(ee,oe.height),re.width<x&&(x=Math.min(oe.width,x)),re.height<b&&(b=Math.min(oe.height,b)),a=Math.min(re.width,a),y=Math.min(re.height,y),a=Math.max(x,a),y=Math.max(b,y),(z===90||z===270)&&(z=a,a=y,y=z,z=x,x=b,b=z),this.uc.ka(),this.Wl(a,y,x,b),this.uc.freeze(),this.uc.w()||vt("Non-real measuredBounds has been set. Object "+this+", measuredBounds: "+this.uc.toString()),za(this,!1)}},Ot.prototype.Wl=function(){},Ot.prototype.Dd=function(){return!1},Ot.prototype.arrange=function(a,y,x,b,E){this.Uk();var z=tn.alloc();z.assign(this.Ib),this.Ib.ka(),ol(this)===!1?this.Ib.h(a,y,x,b):this.eh(a,y,x,b),this.Ib.freeze(),E===void 0?this.tb=null:this.tb=E,x=!1,E!==void 0?x=!0:(E=this.panel,E!==null&&bd(E)&&(E=E.panel),E!==null&&(E=E.dc,b=this.measuredBounds,this.areaBackground!==null&&(b=this.Ib),x=y+b.height,b=a+b.width,x=!(0<=a+.05&&b<=E.width+.05&&0<=y+.05&&x<=E.height+.05),this instanceof Ko&&(a=this.naturalBounds,this.Lq>a.height||this.Cb>a.width))&&(x=!0)),this.l=x?this.l|256:this.l&-257,this.Ib.w()||vt("Non-real actualBounds has been set. Object "+this+", actualBounds: "+this.Ib.toString()),this.Xl(z,this.Ib),Fc(this,!1),tn.free(z)},Ie=Ot.prototype,Ie.eh=function(){};function Xs(a,y,x,b,E){if(a.Ib.h(y,x,b,E),!a.desiredSize.w()){var z=a.uc;x=a.Kg,y=x.right+x.left;var ee=x.top+x.bottom;switch(x=z.width+y,z=z.height+ee,b+=y,E+=ee,y=El(a,!0),x===b&&z===E&&(y=Mn),y){case Mn:(x>b||z>E)&&(za(a,!0),a.measure(x>b?b:x,z>E?E:z,0,0));break;case Wn:za(a,!0),a.measure(b,E,0,0);break;case ji:za(a,!0),a.measure(b,z,0,0);break;case nr:za(a,!0),a.measure(x,E,0,0)}}}Ie.Xl=function(a,y){var x=this.part;x!==null&&x.diagram!==null&&(x.selectionObject!==this&&x.resizeObject!==this&&x.rotateObject!==this||Hv(x,!0),this.N(),ao(a,y)||(x.oh(),this.Pn(x)))},Ie.Pn=function(a){this.portId!==null&&(Hv(a,!0),a instanceof Si&&XS(a,this))},Ie.gc=function(a,y){if(!pu(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 E="";this.filter!==""&&(E=a.filter,a.filter=this.filter);var z=this instanceof Kn&&bd(this),ee=this.Ib;if(z){var re=this.Ib,oe=this.dc,de=this.areaBackground,fe=this.Ma;de===null&&fe===null||a.yc(),de!==null&&(ya(this,a,de,!0,!0,oe,re),de instanceof Co&&de.type===yu?(a.beginPath(),a.rect(re.x,re.y,re.width,re.height),a.ng(de)):a.fillRect(re.x,re.y,re.width,re.height)),fe!==null&&(ya(this,a,fe,!0,!1,oe,re),fe instanceof Co&&fe.type===yu?(a.beginPath(),a.rect(re.x,re.y,re.width,re.height),a.ng(fe)):a.fillRect(re.x,re.y,re.width,re.height)),this.hh(a,y)}if(!z&&(z||ee.width!==0&&ee.height!==0&&!isNaN(ee.x)&&!isNaN(ee.y))){z=this.transform,re=this.panel,this.l&4096&&ys(this),de=this.part,oe=!1;var ye=0;de&&y.Gf("drawShadows")&&(oe=de.isShadowed)&&(fe=de.shadowOffset,ye=Math.max(fe.y,fe.x)*y.scale*y.Mb),fe=this.Dd();var Ce;if(!(Ce=y.$i||!fe)){var Ne=this.naturalBounds;Ce=this.wh;var Oe=Ce.m11,Ve=Ce.m21,ft=Ce.dx,lt=Ce.m12,mt=Ce.m22,St=Ce.dy,Ct,Rt=Ct=0;Ce=Ct*Oe+Rt*Ve+ft;var $t=Ct*lt+Rt*mt+St;Ct=Ne.width+ye,Rt=0;var di=Ct*Oe+Rt*Ve+ft;Ct=Ct*lt+Rt*mt+St,Rt=Math.min(Ce,di);var Di=Math.min($t,Ct),Li=Math.max(Ce+0,di)-Rt,$n=Math.max($t+0,Ct)-Di;Ce=Rt,$t=Di,Ct=Ne.width+ye,Rt=Ne.height+ye,di=Ct*Oe+Rt*Ve+ft,Ct=Ct*lt+Rt*mt+St,Rt=Math.min(Ce,di),Di=Math.min($t,Ct),Li=Math.max(Ce+Li,di)-Rt,$n=Math.max($t+$n,Ct)-Di,Ce=Rt,$t=Di,Ct=0,Rt=Ne.height+ye,di=Ct*Oe+Rt*Ve+ft,Ct=Ct*lt+Rt*mt+St,Rt=Math.min(Ce,di),Di=Math.min($t,Ct),Li=Math.max(Ce+Li,di)-Rt,$n=Math.max($t+$n,Ct)-Di,Ce=Rt,$t=Di,ye=y.viewportBounds,Ne=ye.x,Oe=ye.y,Ce=!(Ce>ye.width+Ne||Ne>Li+Ce||$t>ye.height+Oe||Oe>$n+$t)}if(Ce){if(Ce=(this.l&256)!==0,a.clipInsteadOfFill&&(Ce=!1),this instanceof Ko&&(a.font=this.font),Ce){if($t=re.se()?re.naturalBounds:re.actualBounds,Li=Math.max(ee.x,$t.x),$n=Math.max(ee.y,$t.y),ye=Math.min(ee.right,$t.right)-Li,Ne=Math.min(ee.bottom,$t.bottom)-$n,Oe=this.tb,Oe!==null&&(Li=Oe.x,$n=Oe.y,ye=Oe.width,Ne=Oe.height),Li>ee.width+ee.x||ee.x>$t.width+$t.x){x!==1&&(a.globalAlpha=b),this.filter!==""&&(a.filter=E);return}a.save(),a.beginPath(),a.rect(Li,$n,ye,Ne),a.clip()}if(fe){if(!de.isVisible()){x!==1&&(a.globalAlpha=b),this.filter!==""&&(a.filter=E);return}oe&&($t=de.shadowOffset,a.Ev($t.x*y.scale*this.scale*y.Mb,$t.y*y.scale*this.scale*y.Mb,de.shadowBlur),$c(a),a.shadowColor=de.shadowColor)}oe&&this.shadowVisible===!0?$c(a):oe&&this.shadowVisible===!1&&Bc(a),de=this.naturalBounds,this.areaBackground!==null&&(a.yc(),iu(this,a,de,ee)),a.transform(z.m11,z.m12,z.m21,z.m22,z.dx,z.dy),oe&&gs(this,re)&&this.shadowVisible===null&&Bc(a),this.Ma!==null&&(a.yc(),Il(this,a,de,ee)),oe&&(this.Ma!==null||this.areaBackground!==null||gs(this,re))?(Qu(this,!0),this.shadowVisible===null&&Bc(a)):Qu(this,!1),this.hh(a,y),oe&&this.l&512&&$c(a),fe&&oe&&Bc(a),Ce&&(a.restore(),a.Vc(this instanceof Kn)),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=b),this.filter!==""&&(a.filter=E)}}};function gs(a,y){return y===null?!1:(bd(y)&&(y=y.panel),(y.l&512)!==0||(y.type===Kn.Auto||y.type===Kn.Spot)&&y.Pb()!==a)}Ie.Dv=function(){};function iu(a,y,x,b){ya(a,y,a.areaBackground,!0,!0,x,b),a.areaBackground instanceof Co&&a.areaBackground.type===yu?(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 Il(a,y,x,b){var E=a.kq(),z=x.x,ee=x.y,re=x.width+E,oe=x.height+E;ya(a,y,a.Ma,!0,!1,x,b),a.Ma instanceof Co&&a.Ma.type===yu?(y.beginPath(),y.rect(z-E/2,ee-E/2,re,oe),y.ng(a.Ma)):y.fillRect(z-E/2,ee-E/2,re,oe)}function zs(a,y,x){for(var b=y.O.s,E=b.length,z=-1,ee=0;ee<E;ee++)if(b[ee]===a){z=ee;break}if(a=z,a!==-1)if(a===0)y.svg.gd?y.svg.gd.after(x):y.svg.Ma?y.svg.Ma.after(x):y.type===Kn.Table?(y=y.svg.getElementsByClassName("gojs-ts"),y=y.length!==0?y[0]:null,y!==null&&y.after(x)):y.svg.prepend(x);else{for(;a!==0&&!y.M(a-1).Ed();)a--;a===0?y.svg.prepend(x):(a=y.M(a-1).svg,a!==null?a.after(x):y.svg.appendChild(x))}}function pu(a,y,x){if(!(y instanceof Gl))return!1;if(!a.visible||a.opacity===0||a.Dd()&&!a.isVisible())return a.svg!==null&&a.svg.parentNode!==null&&a.svg.remove(),!0;var b=a.panel,E=a.nk(y);if(a.kk(y,x,E))return a.svg.parentElement!==null?(a.Dd()&&(y.ti=a.svg),!0):(a.Dd()?(y.ti!==null?y.ti.after(a.svg):y.Nj.prepend(a.svg),y.ti=a.svg):b&&zs(a,b,a.svg),!0);if(a.Dd()&&a.isShadowed){var z=a.shadowOffset;y.Ev(z.x*x.scale*a.scale*x.Mb,z.y*x.scale*a.scale*x.Mb,a.shadowBlur),$c(y),y.shadowColor=a.shadowColor}a instanceof Ko&&(y.font=a.font),y.yd=null;var ee=a.transform;z=a instanceof Kn;var re=a instanceof Kn?bd(a):!1;a.l&4096&&ys(a);var oe=a.Ib;if(y.rb.ha=[1,0,0,1,0,0],y.o=!1,E&&(y.o=!0,z&&re?(ep(y,1,0,0,1,0,0),a.svg=y.ad):z?(ep(y,ee.m11,ee.m12,ee.m21,ee.m22,ee.dx,ee.dy),a.svg=y.ad):ep(y,1,0,0,1,0,0)),E=a.naturalBounds,a.areaBackground!==null){var de=ee.copy().Vj();y.rb.ha=[de.m11,de.m12,de.m21,de.m22,de.dx,de.dy],iu(a,y,E,oe),y.rb.ha=[1,0,0,1,0,0],y.yd.gd=y.ad,y.yd.prepend(y.ad)}return z||(y.rb.ha=[ee.m11,ee.m12,ee.m21,ee.m22,ee.dx,ee.dy]),a.background!==null&&(z?(re&&(y.rb.ha=[ee.m11,ee.m12,ee.m21,ee.m22,ee.dx,ee.dy]),Il(a,y,E,oe),re&&(y.rb.ha=[1,0,0,1,0,0])):(y.rb.ha=[ee.m11,ee.m12,ee.m21,ee.m22,ee.dx,ee.dy],Il(a,y,E,oe)),y.yd.Ma=y.ad,y.yd.prepend(y.ad)),ee=y.yd,E=a.part,re=!1,E&&x.Gf("drawShadows")&&(re=E.isShadowed),y.clipInsteadOfFill&&(re=!1),a.Dd()&&re&&$c(y),re&&a.shadowVisible===!0?$c(y):re&&a.shadowVisible===!1&&Bc(y),E=a.panel,re&&gs(a,E)&&a.shadowVisible===null&&Bc(y),y.Il&&(de=x.computePixelRatio(),de="drop-shadow("+y.shadowOffsetX/de+"px "+y.shadowOffsetY/de+"px "+y.shadowBlur/de/2+"px "+y.shadowColor+")",a.background!==null&&ee.Ma.setAttributeNS(null,"filter",de),a.areaBackground!==null&&ee.gd.setAttributeNS(null,"filter",de)),re&&(a.Ma!==null||a.areaBackground!==null||gs(a,E))?(Qu(a,!0),a.shadowVisible===null&&Bc(y)):Qu(a,!1),E=re,a.hh(y,x),z&&y.nh.pop(),y.o&&y.nh.pop(),ee=y.Gv.hs,re=z?a.svg:y.yd,de=a.svg,!z&&de!==null&&re!==de&&de.parentNode===a.panel.svg?(a.svg.replaceWith(re),a.svg=re,re!==null&&a.$o(y,b,oe,re),bl(y,de),!0):(a.svg=re,ee!==null&&re===null&&(gm(y),y.nh.pop()),re===null||(a.$o(y,b,oe,re),y.Il&&(x=x.computePixelRatio(),a.Dv(re,"drop-shadow("+y.shadowOffsetX/x+"px "+y.shadowOffsetY/x+"px "+y.shadowBlur/x/2+"px "+y.shadowColor+")")),E&&a.l&512&&$c(y),a.Dd()&&Bc(y),x=a.Dd()?a.opacity*y.globalAlpha:a.opacity,x!==1&&re.setAttributeNS(null,"opacity",x.toString()),a.filter!==""&&re.setAttributeNS(null,"filter",a.filter),a.Dd()?(y.ti?y.ti.after(re):y.Nj.prepend(re),y.ti=re):b!==null&&zs(a,b,re),ee!==null&&ee(a,re)),!0)}Ie.$o=function(a,y,x,b){var E=(this.l&256)!==0;if(a.clipInsteadOfFill&&(E=!1),E){var z=y.se()?y.naturalBounds:y.actualBounds;y=Math.max(x.x,z.x),E=Math.max(x.y,z.y);var ee=Math.min(x.right,z.right)-y;x=Math.min(x.bottom,z.bottom)-E,z=this.tb,z!==null&&(y=z.x,E=z.y,ee=z.width,x=z.height),z=b.getAttribute("clip-path");var re=null;z!==null&&(re=a.svg.getElementById(z.split("#")[1].slice(0,-1))),re===null?(z="CLIP"+xo++,re=a.Ud("clipPath",{id:z}),y=a.Ud("rect",{x:y,y:E,width:ee,height:x}),this instanceof Kn&&(E=this.transform.copy().Vj(),y.setAttribute("transform","matrix("+E.m11+", "+E.m12+", "+E.m21+", "+E.m22+", "+E.dx+", "+E.dy+")")),re.appendChild(y),a.svg.appendChild(re),b.setAttributeNS(null,"clip-path","url(#"+z+")")):(a=re.firstElementChild,a.setAttribute("x",y.toString()),a.setAttribute("y",E.toString()),a.setAttribute("width",ee.toString()),a.setAttribute("height",x.toString()))}else b.removeAttributeNS(null,"clip-path"),bl(a,b)};function bl(a,y){y=y.getAttribute("clip-path"),y!==null&&(a=a.svg.getElementById(y.split("#")[1].slice(0,-1)),a!==null&&a.remove())}function Hs(a){if(a.svg!==null){var y=a.svg.innerHTML.match(/url\(#((CLIP|GRAD).+?)\)/g),x=a.svg.ownerDocument;if(y!==null){y=Ei(y);for(var b=y.next();!b.done;b=y.next())b=x.getElementById(b.value.split("#")[1].slice(0,-1)),b!==null&&b.remove()}a.svg.remove()}}Ie.hh=function(){},Ie.lv=function(){this.Uc=!0},Ie.kk=function(a,y,x){if(this.Uc)return this.lv(),this.Uc=!1;if(y=this.svg,y===null)return!1;if(!this.visible)return y.remove(),!1;if(y.nodeName!=="g"&&x||y.nodeName==="g"&&!x)return!1;var b=this.transform,E=this instanceof Kn?bd(this):!1;if(!(this instanceof Kn&&E))if(this instanceof Cl){var z=this.bt;a.rb.ha=[b.m11,b.m12,b.m21,b.m22,b.dx,b.dy],z!==null&&eS(a,z[0],z[1],z[2],z[3],z[4],z[5],z[6],z[7]),x?y.lastElementChild.setAttributeNS(null,"transform",tS(a)):y.setAttributeNS(null,"transform",tS(a))}else if(!x||this instanceof Kn)y.setAttributeNS(null,"transform","matrix("+b.m11+", "+b.m12+", "+b.m21+", "+b.m22+", "+b.dx+", "+b.dy+")");else if(this instanceof Nr){z=y.getElementsByTagName("path");for(var ee=0;ee<z.length;ee++)z[ee].setAttributeNS(null,"transform","matrix("+b.m11+", "+b.m12+", "+b.m21+", "+b.m22+", "+b.dx+", "+b.dy+")")}else y.lastElementChild.setAttributeNS(null,"transform","matrix("+b.m11+", "+b.m12+", "+b.m21+", "+b.m22+", "+b.dx+", "+b.dy+")");return z=this.Dd()?this.opacity*a.globalAlpha:this.opacity,z===1?y.removeAttribute("opacity"):y.setAttributeNS(null,"opacity",z.toString()),a.rb.ha=[1,0,0,1,0,0],(this.areaBackground!==null||y.gd!==void 0)&&(z=y.gd,this.areaBackground===null?(y.gd.remove(),y.gd=void 0):(ee=b.copy().Vj(),a.rb.ha=[ee.m11,ee.m12,ee.m21,ee.m22,ee.dx,ee.dy],iu(this,a,this.naturalBounds,this.actualBounds),a.rb.ha=[1,0,0,1,0,0],y.gd?(ee=y.gd.getAttribute("filter"),ee!==null&&a.ad.setAttribute("filter",ee),y.gd.replaceWith(a.ad)):y.prepend(a.ad),y.gd=a.ad),z&&pm(a,z)),(this.background!==null||y.Ma!==void 0)&&(z=y.Ma,this.background===null?(pm(a,y.Ma),y.Ma.remove(),y.Ma=void 0):((E||x&&!(this instanceof Kn))&&(a.rb.ha=[b.m11,b.m12,b.m21,b.m22,b.dx,b.dy]),Il(this,a,this.naturalBounds,this.actualBounds),y.Ma?(pm(a,y.Ma),x=y.Ma.getAttribute("filter"),x!==null&&a.ad.setAttribute("filter",x),y.Ma.replaceWith(a.ad)):y.prepend(a.ad),y.Ma=a.ad),z&&pm(a,z)),this.$o(a,this.panel,this.actualBounds,y),!0},Ie.nk=function(a){if(this.background!==null||this.areaBackground!==null)return!0;var y=(this.l&256)!==0;return a.clipInsteadOfFill&&(y=!1),!!y};function ya(a,y,x,b,E,z,ee){if(x!==null){var re=1,oe=1;if(typeof x=="string")b?y.fillStyle=x:y.strokeStyle=x;else if(x.type===xd)b?y.fillStyle=x.color:y.strokeStyle=x.color;else{var de=a.kq();if(re=z.width,oe=z.height,E?(re=ee.width,oe=ee.height):b||(re+=de,oe+=de),(z=y instanceof Mh)&&x.xe&&(x.type===Kf||x.yk===re&&x.ft===oe))var fe=x.xe;else{var ye=0,Ce=0,Ne=0,Oe=0,Ve=0,ft=0;if(ft=Ve=0,E?(Ve=ee.x,ft=ee.y):b||(Ve-=de/2,ft-=de/2),ye=x.start.x*re+x.start.offsetX,Ce=x.start.y*oe+x.start.offsetY,Ne=x.end.x*re+x.end.offsetX,Oe=x.end.y*oe+x.end.offsetY,ye+=Ve,Ne+=Ve,Ce+=ft,Oe+=ft,x.type===td)fe=y.createLinearGradient(ye,Ce,Ne,Oe);else if(x.type===yu)ft=isNaN(x.endRadius)?Math.max(re,oe)/2:x.endRadius,isNaN(x.startRadius)?(Ve=0,ft=Math.max(re,oe)/2):Ve=x.startRadius,fe=y.createRadialGradient(ye,Ce,Ve,Ne,Oe,ft);else if(x.type===Kf)try{fe=y.createPattern(x.pattern,"repeat")}catch(mt){fe=null}if(x.type!==Kf&&(E=x.colorStops,E!==null))for(E=E.iterator;E.next();)fe.addColorStop(E.key,E.value);if(z&&(x.xe=fe,fe!==null&&(x.yk=re,x.ft=oe),fe===null&&x.type===Kf&&x.yk!==-1)){x.yk=-1;var lt=a.diagram;lt!==null&&x.yk===-1&&Gt(function(){lt.redraw()},600)}}b?y.fillStyle=fe:y.strokeStyle=fe}}}Ie.rg=function(a){if(a instanceof Kn)e:{if(this!==a&&a!==null)for(var y=this.panel;y!==null;){if(y===a){a=!0;break e}y=y.panel}a=!1}else a=!1;return a},Ie.Ed=function(){if(!this.visible)return!1;var a=this.panel;return a!==null?a.Ed():!0},Ie.If=function(){for(var a=this instanceof Kn?this:this.panel;a!==null&&a.isEnabled;)a=a.panel;return a===null};function ys(a){if(a.l&2048){var y=a.Ab;if(y.reset(),!a.Ib.w()||!a.uc.w()){Iu(a,!1);return}if(y.translate(a.Ib.x-a.uc.x,a.Ib.y-a.uc.y),a.scale!==1||a.angle!==0){var x=a.naturalBounds;a.no(y,x.x,x.y,x.width,x.height)}Iu(a,!1),mu(a,!0)}a.l&4096&&(y=a.panel,y===null?(a.wh.set(a.Ab),a.Kk=a.scale,mu(a,!1)):y.oe!==null&&(x=a.wh,x.reset(),y.se()?x.multiply(y.wh):y.panel!==null&&x.multiply(y.panel.wh),x.multiply(a.Ab),a.Kk=a.scale*y.Kk,mu(a,!1)))}Ie.no=function(a,y,x,b,E){if(this.Ca!==1&&a.scale(this.Ca),this.Kb!==0){var z=Je.alloc();z.yi(y,x,b,E,mr),a.rotate(this.Kb,z.x,z.y),Je.free(z)}},Ie.v=function(a){if(!ru(this)){a===void 0&&(a=!1),za(this,!0),Fc(this,!0);var y=this.panel;y===null||a||y.v()}},Ie.Uj=function(){ru(this)||(za(this,!0),Fc(this,!0))};function rl(a){if(!ol(a)){var y=a.panel;y!==null?y.v():a.Dd()&&(y=a.diagram,y!==null&&(y.De.add(a),a instanceof Si&&a.Bd(),y.$b())),Fc(a,!0)}}Ie.Uk=function(){!(this.l&2048)&&(Iu(this,!0),mu(this,!0))},Ie.Wu=function(){mu(this,!0)},Ie.N=function(){var a=this.part;a!==null&&a.N()};function El(a,y){var x=a.stretch,b=a.panel;return b!==null&&b.type===Kn.Table?cc(a,b.Fb(a.row),b.Eb(a.column),y):b!==null&&b.type===Kn.Auto&&b.Pb()===a?ps(a,Wn,y):x===Er?b!==null?b.type===Kn.Spot&&b.Pb()===a?ps(a,Wn,y):(x=b.defaultStretch,x===Er?ps(a,Mn,y):ps(a,x,y)):ps(a,Mn,y):ps(a,x,y)}function cc(a,y,x,b){var E=a.stretch;if(E!==Er)return ps(a,E,b);var z=E=null;switch(y.stretch){case nr:z=!0;break;case Wn:z=!0}switch(x.stretch){case ji:E=!0;break;case Wn:E=!0}return y=a.panel.defaultStretch,E===null&&(E=y===ji||y===Wn),z===null&&(z=y===nr||y===Wn),E===!0&&z===!0?ps(a,Wn,b):E===!0?ps(a,ji,b):z===!0?ps(a,nr,b):ps(a,Mn,b)}function ps(a,y,x){if(x)return y;if(y===Mn||(x=a.desiredSize,x.w()))return Mn;if(a=a.angle,!isNaN(x.width))if(a!==90&&a!==270){if(y===ji)return Mn;if(y===Wn)return nr}else{if(y===nr)return Mn;if(y===Wn)return ji}if(!isNaN(x.height))if(a!==90&&a!==270){if(y===nr)return Mn;if(y===Wn)return ji}else{if(y===ji)return Mn;if(y===Wn)return nr}return y}function Qu(a,y){a.l=y?a.l|512:a.l&-513}function Ts(a){return(a.l&1024)!==0}function rf(a,y){a.l=y?a.l|1024:a.l&-1025}function Iu(a,y){a.l=y?a.l|2048:a.l&-2049}function mu(a,y){a.l=y?a.l|4096:a.l&-4097}function ru(a){return(a.l&8192)!==0}function za(a,y){a.l=y?a.l|8192:a.l&-8193}function ol(a){return(a.l&16384)!==0}function Fc(a,y){a.l=y?a.l|16384:a.l&-16385}Ie.Gj=function(){this.svg=null},Ie.wi=function(a){this.Me=a,this.svg!==null&&this.svg.remove()},Ie.Av=function(){},Ie.zv=function(a){return this.pa=a,rl(this),!0},Ie.mm=function(a,y){(this.pa.x!==a||this.pa.y!==y)&&(this.pa.h(a,y),this.Uk())},Ie.kq=function(){return 0};function Lh(a){var y=a.part;if(y instanceof Si&&(a.portId!==null||a===y.port)){var x=y.diagram;x===null||x.undoManager.isUndoingRedoing||XS(y,a)}}function qy(a){var y=a.diagram;y===null||y.undoManager.isUndoingRedoing||(a instanceof Kn?a instanceof Si?a.Bd():a.qm(a,function(x){Lh(x)}):Lh(a))}Ie.bind=function(a,y,x,b){var E=null;return typeof a=="string"?E=new Ma(a,y,x,b):E=a,E.xd=this,a=this.ih(),a!==null&&vS(a)&&vt("Cannot add a Binding to a template that has already been copied: "+E),this.localBindings===null&&(this.localBindings=new Dn),this.localBindings.add(E),this},Ie.set=function(a){return Object.assign(this,a),this},Ie.Du=function(a){return ov(this,a),this},Ie.apply=function(a){return a(this),this},Ie.nm=function(a){return Eh(this,a),this},Ie.pz=function(){return this.ih()},Ie.ih=function(){for(var a=this instanceof Kn?this:this.panel;a!==null;){if(a.allBindings!==null)return a;a=a.panel}return null},Ie.Jv=function(a){return a.xd=this,this.animationTriggers===null&&(this.animationTriggers=new an),this.animationTriggers.add(a.propertyName,a),this};function vu(a,y){for(var x=1;x<arguments.length;++x);x=arguments;var b=null,E=null;if(typeof a=="function")E=a;else if(typeof a=="string"){var z=Hf.I(a);typeof z=="function"?(x=oi(arguments),b=z(x),zt(b)||vt('GraphObject.make invoked object builder "'+a+'", but it did not return an Object')):E=In.go[a]}if(b===null&&(E!=null&&E.constructor||vt("GraphObject.make requires a class function or GoJS class name or name of an object builder, not: "+a),b=new E),E=1,b instanceof en&&1<x.length){z=b;var ee=x[1];(typeof ee=="string"||ee instanceof HTMLDivElement)&&(Ng(z,ee),E++)}for(;E<x.length;E++)z=x[E],z===void 0?vt("Undefined value at argument "+E+" for object being constructed by GraphObject.make: "+b):ov(b,z);return b}function ov(a,y){if(typeof y=="string")if(a instanceof Ko)a.text=y;else if(a instanceof Nr)a.figure=y;else if(a instanceof Cl)a.source=y;else if(a instanceof Kn)y=Ju.I(y),y!==null&&(a.type=y);else if(a instanceof Co){var x=wi(Co,y);x!==null?a.type=x:vt("Unknown Brush type as an argument to GraphObject.make: "+y)}else a instanceof Jn?(y=wi(Jn,y),y!==null&&(a.type=y)):a instanceof $r&&(y=wi($r,y),y!==null&&(a.type=y));else if(y instanceof Ot)a instanceof Kn||vt("A GraphObject can only be added to a Panel, not to: "+a),a.add(y);else if(y instanceof Ha){var b;y.isRow&&typeof a.getRowDefinition=="function"?b=a.getRowDefinition(y.index):y.isRow||typeof a.getColumnDefinition!="function"||(b=a.getColumnDefinition(y.index)),b instanceof Ha?Im(b,y):vt("A RowColumnDefinition can only be added to an object that implements getRowDefinition/getColumnDefinition, not to: "+a)}else if(y instanceof mn)typeof a.qb=="function"&&a.qb(y);else if(y instanceof Ya)a.type=y;else if(y instanceof Ma)a instanceof Ot||a instanceof Ha?a.bind(y):vt("A Binding can only be applied to a GraphObject or RowColumnDefinition, not to: "+a);else if(y instanceof Sl)a instanceof Ot?a.Jv(y):vt("An AnimationTrigger can only be applied to a GraphObject, not to: "+a);else if(y instanceof ba)a instanceof Jn&&a.type===Jn.o?a.figures.add(y):vt("A PathFigure can only be added to a Path Geometry, not to: "+a);else if(y instanceof $r)a instanceof ba?a.segments.add(y):vt("A PathSegment can only be added to a PathFigure, not to: "+a);else if(y instanceof sa)a instanceof en||a instanceof xr?a.layout=y:vt("A Layout can only be assigned to a Diagram or a Group, not to: "+a);else if(Array.isArray(y))for(x=0;x<y.length;x++)ov(a,y[x]);else if(typeof y=="object"&&y!==null)if(a instanceof Co){x=new Ji;for(var E in y)b=parseFloat(E),isNaN(b)?x[E]=y[E]:a.addColorStop(b,y[E]);Eh(a,x)}else if(a instanceof Ha){y.row!==void 0?(E=y.row,(E==null||E===1/0||isNaN(E)||0>E)&&vt("Must specify non-negative integer row for RowColumnDefinition "+y+", not: "+E),a.isRow=!0,a.index=E):y.column!==void 0&&(E=y.column,(E==null||E===1/0||isNaN(E)||0>E)&&vt("Must specify non-negative integer column for RowColumnDefinition "+y+", not: "+E),a.isRow=!1,a.index=E),E=new Ji;for(x in y)x!=="row"&&x!=="column"&&(E[x]=y[x]);Eh(a,E)}else Eh(a,y);else vt('Unknown initializer "'+y+'" for object being constructed by GraphObject.make: '+a)}function Sd(a,y){Hf.add(a,y)}function fm(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}jt.Object.defineProperties(Ot.prototype,{bindingId:{get:function(){return this.A!==null?this.A.zp:-1},set:function(a){this.bindingId!==a&&(this.A===null&&(this.A=new of),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 of),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 of),this.A.wm=a)}},shadowVisible:{get:function(){return this.A!==null?this.A.Ci:null},set:function(a){var y=this.shadowVisible;y!==a&&(Rr(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&&(Rr(this),this.A.Hb=a,this.g("enabledChanged",y,a))}},segmentOrientation:{get:function(){return this.Ua!==null?this.Ua.rr:ll},set:function(a){var y=this.segmentOrientation;y!==a&&(this.Ua===null&&(this.Ua=new Zd),this.Ua.rr=a,this.v(),this.g("segmentOrientation",y,a),a===ll&&(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 Zd),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:1<a&&(a=1);var y=this.segmentFraction;y!==a&&(this.Ua===null&&(this.Ua=new Zd),this.Ua.o=a,this.v(),this.g("segmentFraction",y,a))}},segmentOffset:{get:function(){return this.Ua!==null?this.Ua.F:ci},set:function(a){var y=this.segmentOffset;y.D(a)||(a=a.J(),this.Ua===null&&(this.Ua=new Zd),this.Ua.F=a,this.v(),this.g("segmentOffset",y,a))}},stretch:{get:function(){return this.A!==null?this.A.hg:Er},set:function(a){var y=this.stretch;y!==a&&(Rr(this),this.A.hg=a,this.v(),this.g("stretch",y,a))}},name:{get:function(){return this.A!==null?this.A.xa:""},set:function(a){var y=this.name;y!==a&&(Rr(this),this.A.xa=a,this.part!==null&&(this.part.Rh=null),this.g("name",y,a))}},opacity:{get:function(){return this.pb},set:function(a){var y=this.pb;y!==a&&((0>a||1<a)&&ri(a,"0 <= value <= 1",Ot,"opacity"),this.pb=a,this.g("opacity",y,a),a=this.diagram,y=this.part,a!==null&&y!==null&&a.N(Fh(y,y.actualBounds)))}},filter:{get:function(){return this.bn},set:function(a){var y=this.bn;y!==a&&(this.bn=a,this.Uc=!0,this.g("filter",y,a),a=this.diagram,y=this.part,a!==null&&y!==null&&a.N(Fh(y,y.actualBounds)))}},visible:{get:function(){return(this.l&1)!==0},set:function(a){var y=(this.l&1)!==0;y!==a&&(this.l^=1,this.g("visible",y,a),y=this.panel,y!==null?y.v():this.Dd()&&this.Zb(a),this.N(),qy(this))}},pickable:{get:function(){return(this.l&2)!==0},set:function(a){var y=(this.l&2)!==0;y!==a&&(this.l^=2,this.g("pickable",y,a))}},fromLinkableDuplicates:{get:function(){return(this.l&4)!==0},set:function(a){var y=(this.l&4)!==0;y!==a&&(this.l^=4,this.g("fromLinkableDuplicates",y,a))}},fromLinkableSelfNode:{get:function(){return(this.l&8)!==0},set:function(a){var y=(this.l&8)!==0;y!==a&&(this.l^=8,this.g("fromLinkableSelfNode",y,a))}},toLinkableDuplicates:{get:function(){return(this.l&16)!==0},set:function(a){var y=(this.l&16)!==0;y!==a&&(this.l^=16,this.g("toLinkableDuplicates",y,a))}},toLinkableSelfNode:{get:function(){return(this.l&32)!==0},set:function(a){var y=(this.l&32)!==0;y!==a&&(this.l^=32,this.g("toLinkableSelfNode",y,a))}},isPanelMain:{get:function(){return(this.l&64)!==0},set:function(a){var y=(this.l&64)!==0;y!==a&&(this.l^=64,this.v(),this.g("isPanelMain",y,a))}},isActionable:{get:function(){return(this.l&128)!==0},set:function(a){var y=(this.l&128)!==0;y!==a&&(this.l^=128,this.g("isActionable",y,a))}},areaBackground:{get:function(){return this.A!==null?this.A.gd:null},set:function(a){var y=this.areaBackground;y!==a&&(a!==null&&sf(a,"GraphObject.areaBackground"),a instanceof Co&&a.freeze(),Rr(this),this.A.gd=a,this.N(),this.g("areaBackground",y,a))}},background:{get:function(){return this.Ma},set:function(a){var y=this.Ma;y!==a&&(a!==null&&sf(a,"GraphObject.background"),a instanceof Co&&a.freeze(),this.Ma=a,this.N(),this.g("background",y,a))}},part:{get:function(){if(this.Dd())return this;if(this.Ng!==null)return this.Ng;var a;for(a=this.panel;a;){if(a instanceof Zi)return this.Ng=a;a=a.panel}return null}},svg:{get:function(){return this.V},set:function(a){this.V=a}},panel:{get:function(){return this.Me}},layer:{get:function(){var a=this.part;return a!==null?a.layer:null}},diagram:{get:function(){var a=this.part;return a!==null?a.diagram:null}},position:{get:function(){return this.pa},set:function(a){var y=a.x,x=a.y,b=this.pa,E=b.x;b=b.y,(E===y||isNaN(E)&&isNaN(y))&&(b===x||isNaN(b)&&isNaN(x))?this.Av():(a=a.copy(),this.zv(a,E,b)&&this.g("position",new Je(E,b),a))}},actualBounds:{get:function(){return this.Ib}},scale:{get:function(){return this.Ca},set:function(a){var y=this.Ca;y!==a&&(0>=a&&vt("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,qy(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,E=b.width,z=b.height;(E===y||isNaN(E)&&isNaN(y))&&(z===x||isNaN(z)&&isNaN(x))||(this.jd=a=a.J(),this.v(),this instanceof Nr&&this.qc(),this.g("desiredSize",b,a),Ts(this)&&(a=this.part,a!==null&&(ea(this,a,"width"),ea(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 Ln(a,this.jd.height).freeze(),this.v(),this instanceof Nr&&this.qc(),this.g("desiredSize",y,a),Ts(this)&&(a=this.part,a!==null&&ea(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 Ln(this.jd.width,a).freeze(),this.v(),this instanceof Nr&&this.qc(),this.g("desiredSize",y,a),Ts(this)&&(a=this.part,a!==null&&ea(this,a,"height")))}},minSize:{get:function(){return this.A!==null?this.A.u:Oi},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(),Rr(this),this.A.u=a,this.v(),this.g("minSize",y,a))}},maxSize:{get:function(){return this.A!==null?this.A.o:Hr},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(),Rr(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 pr(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&&ys(this),this.Ab}},oe:{get:function(){return this.l&4096&&ys(this),this.wh}},animationTriggers:{get:function(){return this.A!==null?this.A.hb:null},set:function(a){this.animationTriggers!==a&&(Rr(this),this.A.hb=a)}},reshapingBehavior:{get:function(){return this.A!==null?this.A.Pf:Mn},set:function(a){this.reshapingBehavior!==a&&(Rr(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()&&vt("GraphObject.alignment for "+this+" must be a real Spot or Spot.Default, not: "+a),this.Jb=a=a.J(),rl(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&&ri(a,">= 0",Ot,"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&&ri(a,">= 1",Ot,"columnSpan"),Rr(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&&ri(a,">= 0",Ot,"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&&ri(a,">= 1",Ot,"rowSpan"),Rr(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&&(Rr(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 Si||vt("Cannot set portID on a Link: "+a),y!==null&&x!==null&&Vv(x,this),this.Yn=a,a!==null&&x!==null&&(x.Te=!0,qS(x,this)),this.g("portId",y,a)}}},toSpot:{get:function(){return this.ba!==null?this.ba.yj:Ni},set:function(a){var y=this.toSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.yj=a,this.g("toSpot",y,a),Lh(this))}},toEndSegmentLength:{get:function(){return this.ba!==null?this.ba.wj:10},set:function(a){var y=this.toEndSegmentLength;y!==a&&(0>a&&ri(a,">= 0",Ot,"toEndSegmentLength"),this.Xc(),this.ba.wj=a,this.g("toEndSegmentLength",y,a),Lh(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),Lh(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&&ri(a,">= 0",Ot,"toMaxLinks"),this.Xc(),this.ba.Ur=a,this.g("toMaxLinks",y,a))}},fromSpot:{get:function(){return this.ba!==null?this.ba.Xi:Ni},set:function(a){var y=this.fromSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.Xi=a,this.g("fromSpot",y,a),Lh(this))}},fromEndSegmentLength:{get:function(){return this.ba!==null?this.ba.Vi:10},set:function(a){var y=this.fromEndSegmentLength;y!==a&&(0>a&&ri(a,">= 0",Ot,"fromEndSegmentLength"),this.Xc(),this.ba.Vi=a,this.g("fromEndSegmentLength",y,a),Lh(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),Lh(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&&ri(a,">= 0",Ot,"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&&(Rr(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&&(Rr(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&&(Rr(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&&(Rr(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&&(Rr(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&&(Rr(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&&(Rr(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&&(Rr(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&&(Rr(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&&(Rr(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&&(Rr(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&&(Rr(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&&(Rr(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&&(Rr(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&&(Rr(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&&(Rr(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&&(Rr(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&&(Rr(this),this.A.Ch=a,this.g("contextMenu",y,a))}}}),Ot.prototype.trigger=Ot.prototype.Jv,Ot.prototype.findBindingPanel=Ot.prototype.ih,Ot.prototype.findTemplateBinder=Ot.prototype.pz,Ot.prototype.setProperties=Ot.prototype.nm,Ot.prototype.apply=Ot.prototype.apply,Ot.prototype.attach=Ot.prototype.Du,Ot.prototype.set=Ot.prototype.set,Ot.prototype.isEnabledObject=Ot.prototype.If,Ot.prototype.isVisibleObject=Ot.prototype.Ed,Ot.prototype.isContainedBy=Ot.prototype.rg,Ot.prototype.getNearestIntersectionPoint=Ot.prototype.rs,Ot.prototype.getLocalPoint=Ot.prototype.qs,Ot.prototype.getDocumentScale=Ot.prototype.Df,Ot.prototype.getDocumentAngle=Ot.prototype.li,Ot.prototype.getDocumentBounds=Ot.prototype.mi,Ot.prototype.getDocumentPoint=Ot.prototype.ga,Ot.prototype.intersectsRect=Ot.prototype.Yc,Ot.prototype.containedInRect=Ot.prototype.fh,Ot.prototype.containsRect=Ot.prototype.Re,Ot.prototype.containsPoint=Ot.prototype.ca,Ot.prototype.raiseChanged=Ot.prototype.g,Ot.prototype.raiseChangedEvent=Ot.prototype.cb,Ot.prototype.addCopyProperty=Ot.prototype.Vw;var Hf=null;Ot.className="GraphObject",Hf=new an,Sd("Button",function(){function a(x,b){return x.diagram.ic(x.documentPoint,function(E){for(;E.panel!==null&&!E.isActionable;)E=E.panel;return E},function(E){return E===b})!==null}var y=vu(Kn,Kn.Auto,{isActionable:!0,enabledChanged:function(x,b){if(x instanceof Kn){var E=x.fb("ButtonBorder");E!==null&&(E.fill=b?x._buttonFillNormal:x._buttonFillDisabled)}},cursor:"pointer",_buttonFillNormal:"#F5F5F5",_buttonStrokeNormal:"#BDBDBD",_buttonFillOver:"#E0E0E0",_buttonStrokeOver:"#9E9E9E",_buttonFillPressed:"#BDBDBD",_buttonStrokePressed:"#9E9E9E",_buttonFillDisabled:"#E5E5E5"},vu(Nr,{name:"ButtonBorder",figure:"RoundedRectangle",spot1:new Ut(0,0,2.76142374915397,2.761423749153969),spot2:new Ut(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 Kn&&(x=b.fb("ButtonBorder"),x instanceof Nr)){var E=b._buttonFillOver;b._buttonFillNormal=x.fill,x.fill=E,E=b._buttonStrokeOver,b._buttonStrokeNormal=x.stroke,x.stroke=E}},y.mouseLeave=function(x,b){b.If()&&b instanceof Kn&&(x=b.fb("ButtonBorder"),x instanceof Nr&&(x.fill=b._buttonFillNormal,x.stroke=b._buttonStrokeNormal))},y.actionDown=function(x,b){if(b.If()&&b instanceof Kn&&b._buttonFillPressed!==null&&x.button===0){var E=b.fb("ButtonBorder");if(E instanceof Nr){x=x.diagram;var z=x.skipsUndoManager;x.skipsUndoManager=!0;var ee=b._buttonFillPressed;b._buttonFillOver=E.fill,E.fill=ee,ee=b._buttonStrokePressed,b._buttonStrokeOver=E.stroke,E.stroke=ee,x.skipsUndoManager=z}}},y.actionUp=function(x,b){if(b.If()&&b instanceof Kn&&b._buttonFillPressed!==null&&x.button===0){var E=b.fb("ButtonBorder");if(E instanceof Nr){var z=x.diagram,ee=z.skipsUndoManager;z.skipsUndoManager=!0,a(x,b)?(E.fill=b._buttonFillOver,E.stroke=b._buttonStrokeOver):(E.fill=b._buttonFillNormal,E.stroke=b._buttonStrokeNormal),z.skipsUndoManager=ee}}},y.actionCancel=function(x,b){if(b.If()&&b instanceof Kn&&b._buttonFillPressed!==null){var E=b.fb("ButtonBorder");if(E instanceof Nr){var z=x.diagram,ee=z.skipsUndoManager;z.skipsUndoManager=!0,a(x,b)?(E.fill=b._buttonFillOver,E.stroke=b._buttonStrokeOver):(E.fill=b._buttonFillNormal,E.stroke=b._buttonStrokeNormal),z.skipsUndoManager=ee}}},y.actionMove=function(x,b){if(b.If()&&b instanceof Kn&&b._buttonFillPressed!==null){var E=x.diagram;if(E.firstInput.button===0&&(E.currentTool.standardMouseOver(),a(x,b)&&(x=b.fb("ButtonBorder"),x instanceof Nr))){var z=E.skipsUndoManager;E.skipsUndoManager=!0;var ee=b._buttonFillPressed;x.fill!==ee&&(x.fill=ee),ee=b._buttonStrokePressed,x.stroke!==ee&&(x.stroke=ee),E.skipsUndoManager=z}}},y}),Sd("TreeExpanderButton",function(){var a=vu("Button",{_treeExpandedFigure:"MinusLine",_treeCollapsedFigure:"PlusLine"},vu(Nr,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:Lr},new Ma("figure","isTreeExpanded",function(y,x){return x=x.panel,y?x._treeExpandedFigure:x._treeCollapsedFigure}).cp()),{visible:!1},new Ma("visible","isTreeLeaf",function(y){return!y}).cp());return a.click=function(y,x){if(x=x.part,x instanceof lo&&(x=x.adornedPart),x instanceof Si){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}),Sd("SubGraphExpanderButton",function(){var a=vu("Button",{_subGraphExpandedFigure:"MinusLine",_subGraphCollapsedFigure:"PlusLine"},vu(Nr,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:Lr},new Ma("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 lo&&(x=x.adornedPart),x instanceof xr){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}),Sd("ToolTip",function(){return vu(lo,Kn.Auto,{isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new Je(0,3),shadowBlur:5},vu(Nr,{name:"Border",figure:"RoundedRectangle",parameter1:1,parameter2:1,fill:"#F5F5F5",stroke:"#F0F0F0",spot1:new Ut(0,0,4,6),spot2:new Ut(1,1,-4,-4)}))}),Sd("ContextMenu",function(){return vu(lo,Kn.Vertical,{background:"#F5F5F5",isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new Je(0,3),shadowBlur:5},new Ma("background","",function(a){return a.adornedPart!==null&&a.placeholder!==null?null:"#F5F5F5"}))}),Sd("ContextMenuButton",function(){var a=vu("Button");a.stretch=ji;var y=a.fb("ButtonBorder");return y instanceof Nr&&(y.figure="Rectangle",y.strokeWidth=0,y.spot1=new Ut(0,0,2,3),y.spot2=new Ut(1,1,-2,-2)),a}),Sd("PanelExpanderButton",function(a){var y=fm(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(Nr,{name:"ButtonIcon",strokeWidth:2},new Ma("geometryString","visible",function(b){return b?x._buttonExpandedFigure:x._buttonCollapsedFigure}).cp(y)));return a=x.fb("ButtonBorder"),a instanceof Nr&&(a.stroke=null,a.fill="rgba(0, 0, 0, 0)"),x.click=function(b,E){var z=E.diagram;if(z!==null&&!z.isReadOnly){var ee=E.ih();ee===null&&(ee=E.part),ee!==null&&(E=ee.fb(y),E!==null&&(b.handled=!0,z.Ea("Collapse/Expand Panel"),E.visible=!E.visible,z.eb("Collapse/Expand Panel")))}},x}),Sd("CheckBoxButton",function(a){var y=fm(a);return a=vu("Button",{desiredSize:new Ln(14,14)},vu(Nr,{name:"ButtonIcon",geometryString:"M0 0 M0 8.85 L4.9 13.75 16.2 2.45 M16.2 16.2",strokeWidth:2,stretch:Wn,geometryStretch:Ui,visible:!1},y!==""?new Ma("visible",y).Kx():[])),a.click=function(x,b){if(b instanceof Kn){var E=x.diagram;if(!(E===null||E.isReadOnly||y!==""&&E.model.isReadOnly)){x.handled=!0;var z=b.fb("ButtonIcon");E.Ea("checkbox"),z.visible=!z.visible,typeof b._doClick=="function"&&b._doClick(x,b),E.eb("checkbox")}}},a}),Sd("CheckBox",function(a){a=fm(a),a=vu("CheckBoxButton",a,{name:"Button",isActionable:!1,margin:new pr(0,1,0,0)});var y=vu(Kn,"Horizontal",a,{isActionable:!0,cursor:a.cursor,margin:new pr(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}),Ot.None=Mn=new mn(Ot,"None",0),Ot.Default=Er=new mn(Ot,"Default",0),Ot.Vertical=nr=new mn(Ot,"Vertical",4),Ot.Horizontal=ji=new mn(Ot,"Horizontal",5),Ot.Fill=Wn=new mn(Ot,"Fill",3),Ot.Uniform=Ui=new mn(Ot,"Uniform",1),Ot.UniformToFill=Yr=new mn(Ot,"UniformToFill",2),Ot.FlipVertical=Dr=new mn(Ot,"FlipVertical",1),Ot.FlipHorizontal=io=new mn(Ot,"FlipHorizontal",2),Ot.FlipBoth=Io=new mn(Ot,"FlipBoth",3),Ot.make=vu,Ot.getBuilders=function(){var a=new an,y;for(y in Hf)if(y!==y.toLowerCase()){var x=Hf.I(y);typeof x=="function"&&a.add(y,x)}return a.freeze(),a},Ot.defineBuilder=Sd,Ot.build=function(a,y,x){for(var b=[],E=2;E<arguments.length;++E)b[E-2]=arguments[E];if(E=Hf.I(a),typeof E=="function"&&(b=E([a].concat(b)),b instanceof Ot))return y&&b.set(y),b;vt('GraphObject.build invoked object builder "'+a+'", but it did not return an Object')},Ot.takeBuilderArgument=fm;function of(){this.nc=!1,this.xa="",this.zp=-1,this.nb=this.wm=this.te=null,this.j="",this.hb=this.Di=this.Hb=this.Ch=this.$h=this.F=this.Ha=this.ia=this.V=this.Lh=this.Xd=this.Of=this.Nh=this.Oh=this.Qh=this.Ph=this.Mh=this.Bh=this.Fh=this.zh=null,this.u=Oi,this.o=Hr,this.hg=Er,this.ob=this.Bi=1,this.Pf=Mn,this.Pc=this.Ci=this.gd=null,this.Oc="category"}of.prototype.copy=function(){var a=new of;return a.xa=this.xa,a.zp=this.zp,a.te=this.te,a.nb=this.nb,a.j=this.j,a.zh=this.zh,a.Fh=this.Fh,a.Bh=this.Bh,a.Mh=this.Mh,a.Ph=this.Ph,a.Qh=this.Qh,a.Oh=this.Oh,a.Nh=this.Nh,a.Of=this.Of,a.Xd=this.Xd,a.Lh=this.Lh,a.V=this.V,a.ia=this.ia,a.Ha=this.Ha,a.F=this.F,a.$h=this.$h,a.Ch=this.Ch,a.Hb=this.Hb,a.Di=this.Di,a.hb=this.hb,a.u=this.u.J(),a.o=this.o.J(),a.hg=this.hg,a.Bi=this.Bi,a.ob=this.ob,a.Pf=this.Pf,a.gd=this.gd,a.Ci=this.Ci,a.Pc=this.Pc,a.Oc=this.Oc,a};function Zd(){this.u=-1/0,this.o=0,this.F=ci,this.rr=ll,this.j=this.V="None"}Zd.prototype.copy=function(){var a=new Zd;return a.u=this.u,a.o=this.o,a.F=this.F.J(),a.rr=this.rr,a.V=this.V,a.j=this.j,a},Zd.className="LinkElementSettings";function $g(){this.yj=this.Xi=Da,this.xj=this.Wi=this.wj=this.Vi=NaN,this.Tr=this.hq=null,this.Ur=this.iq=1/0}$g.prototype.copy=function(){var a=new $g;return a.Xi=this.Xi.J(),a.yj=this.yj.J(),a.Vi=this.Vi,a.wj=this.wj,a.Wi=this.Wi,a.xj=this.xj,a.hq=this.hq,a.Tr=this.Tr,a.iq=this.iq,a.Ur=this.Ur,a},$g.className="LinkSettings";function Ih(){this.ha=[1,0,0,1,0,0]}Ih.prototype.copy=function(){var a=new Ih;return a.ha[0]=this.ha[0],a.ha[1]=this.ha[1],a.ha[2]=this.ha[2],a.ha[3]=this.ha[3],a.ha[4]=this.ha[4],a.ha[5]=this.ha[5],a},Ih.prototype.translate=function(a,y){this.ha[4]+=this.ha[0]*a+this.ha[2]*y,this.ha[5]+=this.ha[1]*a+this.ha[3]*y},Ih.prototype.scale=function(a,y){this.ha[0]*=a,this.ha[1]*=a,this.ha[2]*=y,this.ha[3]*=y},Ih.prototype.rotate=function(a,y,x){if(360<=a?a-=360:0>a&&(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 E=this.ha[1]*a+this.ha[3]*b,z=this.ha[0]*-b+this.ha[2]*a,ee=this.ha[1]*-b+this.ha[3]*a;this.ha[0]=this.ha[0]*a+this.ha[2]*b,this.ha[1]=E,this.ha[2]=z,this.ha[3]=ee,this.translate(-y,-x)}},Ih.className="STransform";function af(a){this.type=a,this.r2=this.y2=this.x2=this.r1=this.y1=this.x1=0,this.gx=[],this.pattern=null}af.prototype.addColorStop=function(a,y){this.gx.push({offset:a,color:y})},af.className="SGradient";function wc(a,y,x){this.ownerDocument=a=y===void 0?In.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 Gl(this,x)}wc.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},wc.prototype.Ud=function(a,y,x){if(a=this.ownerDocument.createElementNS(this.cA,a),zt(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},wc.prototype.getBoundingClientRect=function(){return this.Oa.getBoundingClientRect()},wc.prototype.focus=function(){this.Oa.focus()},wc.prototype.mx=function(){this.ownerDocument=null},jt.Object.defineProperties(wc.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}}}),wc.className="SVGSurface";function Gl(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 Ih,this.j=gm(this),this.Nj=gm(this,"gojs-diagram"),this.Hl=this.ti=null;var x=xo++,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 $y(a,y,x,b,E,z,ee){a.Nj===void 0?ep(a,y,x,b,E,z,ee):a.Nj.setAttribute("transform","matrix("+y+", "+x+", "+b+", "+E+", "+z+", "+ee+")")}Ie=Gl.prototype,Ie.arc=function(a,y,x,b,E,z,ee,re){var oe=2*Math.PI,de=oe-1e-6,fe=x*Math.cos(b),ye=x*Math.sin(b),Ce=a+fe,Ne=y+ye,Oe=z?0:1;b=z?b-E:E-b,(1e-6<Math.abs(ee-Ce)||1e-6<Math.abs(re-Ne))&&this.path.push(["L",Ce,+Ne]),0>b&&(b=b%oe+oe),b>de?(this.path.push(["A",x,x,0,1,Oe,a-fe,y-ye]),this.path.push(["A",x,x,0,1,Oe,Ce,Ne])):1e-6<b&&this.path.push(["A",x,x,0,+(b>=Math.PI),Oe,a+x*Math.cos(E),y+x*Math.sin(E)])},Ie.beginPath=function(){this.path=[],this.Yl={stroke:"none",fill:"none"}},Ie.Se=function(a){this.addPath(this.path,this.rb,a||0)},Ie.bezierCurveTo=function(a,y,x,b,E,z){this.path.push(["C",a,y,x,b,E,z])},Ie.clearRect=function(){},Ie.clip=function(){this.Yl.clipPath=!0},Ie.closePath=function(){this.path.push(["z"])},Ie.createLinearGradient=function(a,y,x,b){var E=new af("linear");return E.x1=a,E.y1=y,E.x2=x,E.y2=b,E},Ie.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"+xo++,E={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(Nh,E)),this.svg.appendChild(a),x[y]=b,"url(#"+b+")"},Ie.createRadialGradient=function(a,y,x,b,E,z){var ee=new af("radial");return ee.x1=a,ee.y1=y,ee.r1=x,ee.x2=b,ee.y2=E,ee.r2=z,ee};function eS(a,y,x,b,E,z,ee,re,oe){b=re/b,E=oe/E,z===0&&ee===0||a.rb.translate(z,ee),b===1&&E===1||a.rb.scale(b,E),y===0&&x===0||a.rb.translate(-y,-x)}Ie.drawImage=function(a,y,x,b,E,z,ee,re,oe){var de="";a instanceof HTMLCanvasElement&&(de=a.toDataURL()),a instanceof HTMLImageElement&&(de=a.getAttribute("src"));var fe=a instanceof HTMLImageElement?a.naturalWidth:a.width;a=a instanceof HTMLImageElement?a.naturalHeight:a.height,b===void 0&&(z=y,ee=x,re=b=fe,oe=E=a),b=b||0,E=E||0,re=re||0,oe=oe||0,eS(this,y,x,b,E,z||0,ee||0,re,oe),z={x:0,y:0,width:fe||b,height:a||E,href:de},Bt.$(b,re)&&Bt.$(E,oe)?de.toLowerCase().indexOf(".svg")===-1&&de.toLowerCase().indexOf("data:image/svg")===-1&&(z.preserveAspectRatio="xMidYMid slice"):z.preserveAspectRatio="none",(y!==0||x!==0||b!==fe||E!==a)&&(b+=y,E+=x,z["clip-path"]="path('M "+y+","+x+" L "+b+" "+x+" L "+b+" "+E+" L "+y+" "+E+" z')"),jf(this,Nh,z,this.rb),this.addElement(Nh,z)},Ie.fill=function(a){a&&(this.Yl["fill-rule"]="evenodd"),av(this,this.Yl)},Ie.ng=function(a,y){this.clipInsteadOfFill?this.clip():this.fill(y)},Ie.fillRect=function(a,y,x,b){a=[a,y,x,b],a={x:a[0],y:a[1],width:a[2],height:a[3]},jf(this,"fill",a,this.rb),this.addElement("rect",a)},Ie.ox=function(a,y,x,b){a={x:a,y,width:x,height:b},jf(this,"fill",a,this.rb),av(this,a),this.svg.prepend(this.Ud("rect",a))},Ie.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},jf(this,"fill",y,this.rb),this.addElement("text",y,a[0])},Ie.lineTo=function(a,y){this.path.push(["L",a,y])},Ie.moveTo=function(a,y){this.path.push(["M",a,y])},Ie.quadraticCurveTo=function(a,y,x,b){this.path.push(["Q",a,y,x,b])},Ie.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"])},Ie.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},Ie.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;y<this.path.length;y++)a.push(this.path[y]);this.stack.push(a),this.stack.push(this.rb.copy())},Ie.setTransform=function(a,y,x,b,E,z){a===1&&y===0&&x===0&&b===1&&E===0&&z===0||ep(this,a,y,x,b,E,z)};function tS(a){return a=a.rb.ha,"matrix("+a[0]+", "+a[1]+", "+a[2]+", "+a[3]+", "+a[4]+", "+a[5]+")"}Ie.scale=function(a,y){this.rb.scale(a,y)},Ie.translate=function(a,y){this.rb.translate(a,y)},Ie.transform=function(){},Ie.yc=function(){},Ie.stroke=function(){iS(this,this.Yl)},Ie.jk=function(){this.clipInsteadOfFill||this.stroke()},Ie.Ud=function(a,y,x){return this.Gv.Ud(a,y,x)},Ie.addElement=function(a,y,x){return a=this.Ud(a,y,x),this.yd!==null?this.yd.appendChild(a):this.yd=a,this.ad=a};function jf(a,y,x,b){y==="fill"?av(a,x):y==="stroke"&&iS(a,x),b!==null&&(a=b.ha,x.transform="matrix("+a[0]+", "+a[1]+", "+a[2]+", "+a[3]+", "+a[4]+", "+a[5]+")")}function av(a,y){a.fillStyle instanceof af?y.fill=sv(a,a.fillStyle,!0):/^rgba\(/.test(a.fillStyle)?(a=/^\s*rgba\s*\(([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\)\s*$/i.exec(a.fillStyle),y.fill="rgb("+a[1]+","+a[2]+","+a[3]+")",y["fill-opacity"]=a[4]):y.fill=a.fillStyle}function nS(a,y,x){x=x?"fill":"stroke",a.fillStyle instanceof af?y.setAttributeNS(null,"fill",sv(a,a.fillStyle,!0)):/^rgba\(/.test(a.fillStyle)?(a=/^\s*rgba\s*\(([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\)\s*$/i.exec(a.fillStyle),y.setAttributeNS(null,x,"rgb("+a[1]+","+a[2]+","+a[3]+")"),y.setAttributeNS(null,x+"-opacity",a[4])):y.setAttributeNS(null,x,a.fillStyle)}function iS(a,y){if(a.strokeStyle instanceof af)y.stroke=sv(a,a.strokeStyle,!1);else if(/^rgba\(/.test(a.strokeStyle)){var x=/^\s*rgba\s*\(([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\)\s*$/i.exec(a.strokeStyle);y.stroke="rgb("+x[1]+","+x[2]+","+x[3]+")",y["stroke-opacity"]=x[4]}else y.stroke=a.strokeStyle;y["stroke-width"]=a.lineWidth,y["stroke-linecap"]=a.lineCap,y["stroke-linejoin"]=a.lineJoin,y["stroke-miterlimit"]=a.miterLimit,a.Ct&&(y["stroke-dasharray"]=a.Yg.toString(),y["stroke-dashoffset"]=a.uj)}function sv(a,y,x){var b="";if(b=a.Hl!==null?a.Hl.getAttribute(x?"fill":"stroke"):null,b!==null&&b.indexOf("GRAD")!==-1?(b=b.split("#")[1].slice(0,-1),x=a.svg.getElementById(b),x!==null&&x.remove()):b="GRAD"+xo++,y.type==="linear")x=a.Ud("linearGradient",{x1:y.x1,x2:y.x2,y1:y.y1,y2:y.y2,id:b,gradientUnits:"userSpaceOnUse"});else if(y.type==="radial")x=a.Ud("radialGradient",{x1:y.x1,x2:y.x2,y1:y.y1,y2:y.y2,r1:y.r1,r2:y.r2,id:b});else throw Error("invalid gradient");var E=y.gx;y=E.length;for(var z=[],ee=0;ee<y;ee++){var re=E[ee],oe=re.color;re={offset:re.offset,"stop-color":oe},/^rgba\(/.test(oe)&&(oe=/^\s*rgba\s*\(([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\)\s*$/i.exec(oe),re["stop-color"]="rgb("+oe[1]+","+oe[2]+","+oe[3]+")",re["stop-opacity"]=oe[4]),z.push(re)}for(z.sort(function(de,fe){return de.offset>fe.offset?1:-1}),E=0;E<y;E++)x.appendChild(a.Ud("stop",z[E]));return a.svg.appendChild(x),"url(#"+b+")"}Ie.addPath=function(a,y,x){for(var b=[],E=0;E<a.length;E++){var z=oi(a[E]),ee=[z.shift()];if(ee[0]==="A")ee.push(z.shift()+","+z.shift(),z.shift(),z.shift()+","+z.shift(),z.shift()+","+z.shift());else for(;z.length;)ee.push(z.shift()+","+z.shift());b.push(ee.join(" "))}if(b=b.join(" "),a=this.Yl,a.clipPath)0<this.nh.length&&this.nh[this.nh.length-1].setAttributeNS(null,"clip-path",'path("'+b+'")');else if(a.d=b,jf(this,"",a,y),this.Hl!==null)if(y=this.Hl,y.nodeName!=="g")for(var re in a)re!=="transform"&&y.setAttributeNS(null,re,a[re]);else{re=y.getElementsByTagName("path");for(var oe in a)oe!=="transform"&&re[x].setAttributeNS(null,oe,a[oe])}else this.addElement("path",a)};function ep(a,y,x,b,E,z,ee){var re=new Ih;re.ha=[y,x,b,E,z,ee],y={},jf(a,"g",y,re),re=a.addElement("g",y),a.nh.push(re)}function gm(a,y){var x={};return y&&(x.class=y),y=a.addElement("g",x),a.nh.push(y),y}Ie.Ev=function(a,y,x){this.Ar=a,this.Br=y,this.Vg=x};function Bc(a){a.Il=!1,a.shadowOffsetX=0,a.shadowOffsetY=0,a.shadowBlur=0}function $c(a){a.Il=!0,a.shadowOffsetX=a.Ar,a.shadowOffsetY=a.Br,a.shadowBlur=a.Vg}Ie.js=function(a,y){this.Ct=!0,this.Yg=a,this.uj=y},Ie.fs=function(){this.Ct=!1},Ie.Vc=function(){},Ie.Wx=function(){},Gl.prototype.rotate=function(a){this.rb.rotate(57.2958*a,0,0)},Gl.prototype.getImageData=function(){return null},Gl.prototype.measureText=function(){return null};function pm(a,y){y=y.getAttribute("fill"),y!==null&&(y=y.split("#"),y.length!==1&&(y=a.svg.getElementById(y[1].slice(0,-1)),y!==null&&a.svg.innerHTML.match(new RegExp(y.id,"g")).length===1&&y.remove()))}Gl.prototype.Hs=function(a){a.svg!==null&&a.svg.parentNode===this.Nj&&a.svg.remove()},Gl.className="SVGContext",en.prototype.Cs=function(a){this.pj.contains("SVG")||this.bs("SVG",new wc(this,In.document));var y=new wc(this,In.document,!0);a===void 0&&(a=new Ji);var x=this;return qh(this,function(b,E){return b=um(x,b,"SVG",y),b=b!==null?b.svg:null,typeof E=="function"?(E(b),null):b},a)},en.prototype.makeSvg=en.prototype.Cs,en.prototype.av=function(a){return this.Cs(a)},en.prototype.makeSVG=en.prototype.av;function Mu(a,y,x,b){this.ownerDocument=y=y===void 0?In.document:y,this.hs=null,y=y.createElement("canvas"),y.tabIndex=0,this.Oa=y,this.context=new Mh(y,x,b),y.H=a}Mu.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",!0):!1},Mu.prototype.toDataURL=function(a,y){return this.Oa.toDataURL(a,y)},Mu.prototype.getBoundingClientRect=function(){return this.Oa.getBoundingClientRect()},Mu.prototype.focus=function(){this.Oa.focus()},Mu.prototype.mx=function(){this.ownerDocument=this.Oa.H=null},jt.Object.defineProperties(Mu.prototype,{width:{get:function(){return this.Oa.width},set:function(a){this.Oa.width=a}},height:{get:function(){return this.Oa.height},set:function(a){this.Oa.height=a}},style:{get:function(){return this.Oa.style}}}),Mu.className="CanvasSurface";function Mh(a,y,x){this.Z=a.getContext?a.getContext("2d",y):null,this.Z===null&&vt("Browser does not support HTML Canvas Element"),this.ct=this.et=this.dt="",this.Hm=!1,this.Vg=this.Br=this.Ar=0,this.Il=!1,this.El=new dr,this.isTemporary=!!x}Ie=Mh.prototype,Ie.Wx=function(a){this.Z.imageSmoothingEnabled=a},Ie.arc=function(a,y,x,b,E,z){this.Z.arc(a,y,x,b,E,z)},Ie.beginPath=function(){this.Z.beginPath()},Ie.Se=function(){},Ie.bezierCurveTo=function(a,y,x,b,E,z){this.Z.bezierCurveTo(a,y,x,b,E,z)},Ie.clearRect=function(a,y,x,b){this.yc(),this.Z.clearRect(a,y,x,b)},Ie.clip=function(){this.Z.clip()},Ie.closePath=function(){this.Z.closePath()},Ie.createLinearGradient=function(a,y,x,b){return this.Z.createLinearGradient(a,y,x,b)},Ie.createPattern=function(a,y){return this.Z.createPattern(a,y)},Ie.createRadialGradient=function(a,y,x,b,E,z){return this.Z.createRadialGradient(a,y,x,b,E,z)},Ie.drawImage=function(a,y,x,b,E,z,ee,re,oe){b===void 0?this.Z.drawImage(a,y,x):this.Z.drawImage(a,y,x,b,E,z,ee,re,oe)},Ie.fill=function(a){this.Z.fill(a?"evenodd":"nonzero")},Ie.fillRect=function(a,y,x,b){this.Z.fillRect(a,y,x,b)},Ie.ox=function(a,y,x,b){this.Z.fillRect(a,y,x,b)},Ie.fillText=function(a,y,x){this.Z.fillText(a,y,x)},Ie.getImageData=function(a,y,x,b){return this.Z.getImageData(a,y,x,b)},Ie.lineTo=function(a,y){this.Z.lineTo(a,y)},Ie.measureText=function(a){return this.Z.measureText(a)},Ie.moveTo=function(a,y){this.Z.moveTo(a,y)},Ie.quadraticCurveTo=function(a,y,x,b){this.Z.quadraticCurveTo(a,y,x,b)},Ie.rect=function(a,y,x,b){this.Z.rect(a,y,x,b)},Ie.restore=function(){this.Z.restore()},Ie.save=function(){this.yc(),this.Z.save()},Mh.prototype.rotate=function(a){this.El.rotate(57.2958*a,0,0)},Ie=Mh.prototype,Ie.setTransform=function(a,y,x,b,E,z){this.El.setTransform(a,y,x,b,E,z)},Ie.scale=function(a,y){this.El.scale(a,y)},Ie.translate=function(a,y){this.El.translate(a,y)},Ie.stroke=function(){this.Z.stroke()},Ie.transform=function(a,y,x,b,E,z){if(a!==1||y!==0||x!==0||b!==1||E!==0||z!==0){var ee=this.El,re=ee.m11*a+ee.m21*y;a=ee.m12*a+ee.m22*y,y=ee.m11*x+ee.m21*b,x=ee.m12*x+ee.m22*b,ee.dx=ee.m11*E+ee.m21*z+ee.dx,ee.dy=ee.m12*E+ee.m22*z+ee.dy,ee.m11=re,ee.m12=a,ee.m21=y,ee.m22=x}},Ie.yc=function(){var a=this.El;this.Z.setTransform(a.m11,a.m12,a.m21,a.m22,a.dx,a.dy)},Ie.ng=function(a,y){if(a instanceof Co&&a.type===yu){var x=a.yk;a=a.ft,a>x?(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)},Ie.jk=function(){this.Hm||this.stroke()},Ie.Ev=function(a,y,x){this.Ar=a,this.Br=y,this.Vg=x},Ie.js=function(a,y){var x=this.Z;x.setLineDash!==void 0&&(x.setLineDash(a),x.lineDashOffset=y)},Ie.fs=function(){var a=this.Z;a.setLineDash!==void 0&&(a.setLineDash(Ax),a.lineDashOffset=0)},Ie.Vc=function(a){a&&(this.dt=""),this.ct=this.et=""},Ie.Hs=function(){},jt.Object.defineProperties(Mh.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 Ax=Object.freeze([]);Mh.className="CanvasSurfaceContext";function tp(){this.F=this.o=this.u=this.j=0}tp.className="ColorNumbers";function Co(a,y){Yf||(fv(),Yf=!0),qi(this),this._isFrozen=!1,a===void 0?(this.na=xd,this.xk="black"):typeof a=="string"?(this.na=xd,this.xk=a):(this.na=a,this.xk="black"),a=this.na,a===td?(this.Qd=Pr,this.Lk=Do):this.Lk=a===yu?this.Qd=mr:this.Qd=Ni,this.Gr=0,this.Xp=NaN,this.xe=this.cr=this.we=null,this.ft=this.yk=0,y&&Object.assign(this,y)}Co.prototype.copy=function(){var a=new Co;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},Ie=Co.prototype,Ie.freeze=function(){return this._isFrozen=!0,this.we!==null&&this.we.freeze(),this},Ie.ka=function(){return Object.isFrozen(this)&&vt("cannot thaw constant: "+this),this._isFrozen=!1,this.we!==null&&this.we.ka(),this},Ie.qb=function(a){a.classType===Co&&(this.type=a)},Ie.toString=function(){var a="Brush(";if(this.type===xd)a+=this.color;else if(a=this.type===td?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+")"},Ie.addColorStop=function(a,y){return this._isFrozen&&Sn(this),(typeof a!="number"||!isFinite(a)||1<a||0>a)&&ri(a,"0 <= loc <= 1",Co,"addColorStop:loc"),this.we===null&&(this.we=new an),this.we.add(a,y),this.na===xd&&(this.type=td),this.xe=null,this},Ie.Vz=function(a,y){if(this._isFrozen&&Sn(this),a=a===void 0||typeof a!="number"?.2:a,y=y===void 0?Zf:y,this.type===xd)ed(this.color),this.color=Wf(a,y);else if((this.type===td||this.type===yu)&&this.colorStops!==null)for(var x=this.colorStops.iterator;x.next();)ed(x.value),this.addColorStop(x.key,Wf(a,y));return this};function rS(a,y,x){return y=y===void 0||typeof y!="number"?.2:y,x=x===void 0?Zf:x,ed(a),Wf(y,x)}Ie.Wy=function(a,y){if(this._isFrozen&&Sn(this),a=a===void 0||typeof a!="number"?.2:a,y=y===void 0?Zf:y,this.type===xd)ed(this.color),this.color=Wf(-a,y);else if((this.type===td||this.type===yu)&&this.colorStops!==null)for(var x=this.colorStops.iterator;x.next();)ed(x.value),this.addColorStop(x.key,Wf(-a,y));return this};function oS(a,y,x){return y=y===void 0||typeof y!="number"?.2:y,x=x===void 0?Zf:x,ed(a),Wf(-y,x)}function lv(a,y,x){ed(a),a=Qo.j;var b=Qo.u,E=Qo.o,z=Qo.F;return ed(y),x===void 0&&(x=.5),"rgba("+Math.round((Qo.j-a)*x+a)+", "+Math.round((Qo.u-b)*x+b)+", "+Math.round((Qo.o-E)*x+E)+", "+Math.round((Qo.F-z)*x+z)+")"}Ie.Gx=function(){if(this.type===xd)return Gf(this.color);if((this.type===td||this.type===yu)&&this.colorStops!==null){var a=this.colorStops;if(this.type===yu)return Gf(a.first().value);if(a.get(.5)!==null)return Gf(a.get(.5));if(a.count===2)return a=a.Fa(),Gf(lv(a[0].value,a[1].value));for(var y=a.iterator,x=-1,b=-1,E=1,z=1;y.next();){var ee=y.key,re=Math.abs(.5-y.key);E>z&&re<E?(x=ee,E=re):z>=E&&re<z&&(b=ee,z=re)}return x>b&&(z=x,x=b,b=z,z=E),E=b-x,Gf(lv(a.get(x),a.get(b),1-z/E))}return!1};function Gf(a){return a?a instanceof Co?a.Gx():(ed(a),128>(299*Qo.j+587*Qo.u+114*Qo.o)/1e3):!1}function Wf(a,y){switch(y){case Zf:y=100*cv(Qo.j);var x=100*cv(Qo.u),b=100*cv(Qo.o);return al.j=.4124564*y+.3575761*x+.1804375*b,al.u=.2126729*y+.7151522*x+.072175*b,al.o=.0193339*y+.119192*x+.9503041*b,al.F=Qo.F,y=hv(al.j/Vf[0]),x=hv(al.u/Vf[1]),b=hv(al.o/Vf[2]),_c.j=116*x-16,_c.u=500*(y-x),_c.o=200*(x-b),_c.F=al.F,_c.j=Math.min(100,Math.max(0,_c.j+100*a)),a=(_c.j+16)/116,y=a-_c.o/200,al.j=Vf[0]*aS(_c.u/500+a),al.u=Vf[1]*(_c.j>mm*gv?Math.pow(a,3):_c.j/mm),al.o=Vf[2]*aS(y),al.F=_c.F,a=-.969266*al.j+1.8760108*al.u+.041556*al.o,y=.0556434*al.j+-.2040259*al.u+1.0572252*al.o,Qo.j=255*dv((3.2404542*al.j+-1.5371385*al.u+-.4985314*al.o)/100),Qo.u=255*dv(a/100),Qo.o=255*dv(y/100),Qo.F=al.F,Qo.j=Math.round(Qo.j),255<Qo.j?Qo.j=255:0>Qo.j&&(Qo.j=0),Qo.u=Math.round(Qo.u),255<Qo.u?Qo.u=255:0>Qo.u&&(Qo.u=0),Qo.o=Math.round(Qo.o),255<Qo.o?Qo.o=255:0>Qo.o&&(Qo.o=0),"rgba("+Qo.j+", "+Qo.u+", "+Qo.o+", "+Qo.F+")";case sS:return uv(),ou.o=Math.min(100,Math.max(0,ou.o+100*a)),"hsla("+ou.j+", "+ou.u+"%, "+ou.o+"%, "+ou.F+")";default:vt("Unknown color space: "+y)}}function ed(a){Yf||(fv(),Yf=!0);var y=pv;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,Qo.j=a[0],Qo.u=a[1],Qo.o=a[2],Qo.F=a[3]/255):(y.fillStyle="#FFFFFF",y.fillStyle=a,Qo.j=0,Qo.u=0,Qo.o=0,Qo.F=1)}}function uv(){var a=Qo.j/255,y=Qo.u/255,x=Qo.o/255,b=Math.max(a,y,x),E=Math.min(a,y,x),z=b-E;if(E=(b+E)/2,z===0)var ee=a=0;else{switch(b){case a:ee=(y-x)/z%6;break;case y:ee=(x-a)/z+2;break;case x:ee=(a-y)/z+4}ee*=60,0>ee&&(ee+=360),a=z/(1-Math.abs(2*E-1))}ou.j=Math.round(ee),ou.u=Math.round(100*a),ou.o=Math.round(100*E),ou.F=Qo.F}function cv(a){return a/=255,.04045>=a?a/12.92:Math.pow((a+.055)/1.055,2.4)}function dv(a){return .0031308>=a?12.92*a:1.055*Math.pow(a,1/2.4)-.055}function hv(a){return a>gv?Math.pow(a,1/3):(mm*a+16)/116}function aS(a){var y=a*a*a;return y>gv?y:(116*a-16)/mm}function sf(a,y){typeof a!="string"&&(a instanceof Co||vt("Value for "+y+" must be a color string or a Brush, not "+a))}function fv(){pv=va?new Mu(null,void 0,{willReadFrequently:!0}).context:null}jt.Object.defineProperties(Co.prototype,{type:{get:function(){return this.na},set:function(a){this._isFrozen&&Sn(this,a),this.na=a,this.start.Mc()&&(a===td?this.start=Pr:a===yu&&(this.start=mr)),this.end.Mc()&&(a===td?this.end=Do:a===yu&&(this.end=mr)),this.xe=null}},color:{get:function(){return this.xk},set:function(a){this._isFrozen&&Sn(this,a),this.xk=a,this.xe=null}},start:{get:function(){return this.Qd},set:function(a){this._isFrozen&&Sn(this,a),this.Qd=a.J(),this.xe=null}},end:{get:function(){return this.Lk},set:function(a){this._isFrozen&&Sn(this,a),this.Lk=a.J(),this.xe=null}},startRadius:{get:function(){return this.Gr},set:function(a){this._isFrozen&&Sn(this,a),0>a&&ri(a,">= zero",Co,"startRadius"),this.Gr=a,this.xe=null}},endRadius:{get:function(){return this.Xp},set:function(a){this._isFrozen&&Sn(this,a),0>a&&ri(a,">= zero",Co,"endRadius"),this.Xp=a,this.xe=null}},colorStops:{get:function(){return this.we},set:function(a){this._isFrozen&&Sn(this,a),this.we=a,this.xe=null}},pattern:{get:function(){return this.cr},set:function(a){this._isFrozen&&Sn(this,a),this.cr=a,this.xe=null}}}),Co.prototype.isDark=Co.prototype.Gx,Co.prototype.darkenBy=Co.prototype.Wy,Co.prototype.lightenBy=Co.prototype.Vz,Co.prototype.addColorStop=Co.prototype.addColorStop;var gv=216/24389,mm=24389/27,Vf=[95.047,100,108.883],pv=null,Qo=new tp,ou=new tp,al=new tp,_c=new tp,Yf=!1;Co.className="Brush";var xd;Co.Solid=xd=new mn(Co,"Solid",0);var td;Co.Linear=td=new mn(Co,"Linear",1);var yu;Co.Radial=yu=new mn(Co,"Radial",2);var Kf;Co.Pattern=Kf=new mn(Co,"Pattern",4);var Zf;Co.Lab=Zf=new mn(Co,"Lab",5);var sS;Co.HSL=sS=new mn(Co,"HSL",6),Co.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},Co.isValidColor=function(a){if(a==="black")return!0;if(a==="")return!1;Yf||(fv(),Yf=!0);var y=pv;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)},Co.lighten=function(a){return rS(a)},Co.lightenBy=rS,Co.darken=function(a){return oS(a)},Co.darkenBy=oS,Co.mix=lv,Co.isDark=Gf;function Ya(){this.xa="Base"}Ya.prototype.measure=function(){},Ya.prototype.Yz=function(a,y,x,b,E){a.measure(y,x,b,E)},Ya.prototype.arrange=function(){},Ya.prototype.Ly=function(a,y,x,b,E,z){a.arrange(y,x,b,E,z)},Ya.prototype.iA=function(a){a.Uj()},Ya.prototype.gc=function(){},jt.Object.defineProperties(Ya.prototype,{name:{get:function(){return this.xa},set:function(a){this.xa=a}},classType:{get:function(){return Kn}}}),Ya.prototype.remeasureObject=Ya.prototype.iA,Ya.prototype.arrangeElement=Ya.prototype.Ly,Ya.prototype.measureElement=Ya.prototype.Yz,Ya.className="PanelLayout";function vm(){this.xa="Base"}Wt(vm,Ya),vm.prototype.measure=function(a,y,x,b,E,z,ee){var re=b.length;a=nd(a);for(var oe=0;oe<re;oe++){var de=b[oe];if(de.visible||de===a){var fe=de.margin,ye=fe.right+fe.left;fe=fe.top+fe.bottom,de.measure(y,x,z,ee);var Ce=de.measuredBounds;ye=Math.max(Ce.width+ye,0),fe=Math.max(Ce.height+fe,0),Ce=de.position.x;var Ne=de.position.y;isFinite(Ce)||(Ce=0),isFinite(Ne)||(Ne=0),de instanceof Nr&&de.isGeometryPositioned&&(de=de.strokeWidth/2,Ce-=de,Ne-=de),qr(E,Ce,Ne,ye,fe)}}},vm.prototype.arrange=function(a,y,x){var b=y.length,E=a.padding;for(a=x.x-E.left,x=x.y-E.top,E=0;E<b;E++){var z=y[E],ee=z.measuredBounds,re=z.margin,oe=z.position.x,de=z.position.y;if(oe=isNaN(oe)?-a:oe-a,de=isNaN(de)?-x:de-x,z instanceof Nr&&z.isGeometryPositioned){var fe=z.strokeWidth/2;oe-=fe,de-=fe}z.visible&&z.arrange(oe+re.left,de+re.top,ee.width,ee.height)}};function ym(){this.xa="Base"}Wt(ym,Ya),ym.prototype.measure=function(a,y,x,b,E,z,ee){var re=b.length;y=Mi(),z=nd(a);for(var oe=0;oe<re;oe++){var de=b[oe];if(de.visible||de===z){var fe=El(de,!1);if(fe!==Mn&&fe!==ji)y.push(de);else{de.measure(1/0,x,0,ee),fe=de.margin,de=de.measuredBounds;var ye=Math.max(de.height+fe.top+fe.bottom,0);E.width+=Math.max(de.width+fe.right+fe.left,0),E.height=Math.max(E.height,ye)}}}for(b=y.length,a.desiredSize.height?x=Math.min(a.desiredSize.height,a.maxSize.height):E.height!==0&&(x=Math.min(E.height,a.maxSize.height)),a=0;a<b;a++)oe=y[a],(oe.visible||oe===z)&&(fe=oe.margin,re=fe.right+fe.left,fe=fe.top+fe.bottom,oe.measure(1/0,x,0,ee),oe=oe.measuredBounds,fe=Math.max(oe.height+fe,0),E.width+=Math.max(oe.width+re,0),E.height=Math.max(E.height,fe));ui(y)},ym.prototype.arrange=function(a,y,x){for(var b=y.length,E=a.padding,z=E.top,ee=a.isOpposite,re=ee?x.width:E.left,oe=0;oe<b;oe++){var de=z,fe=y[oe];if(fe.visible){var ye=fe.measuredBounds,Ce=fe.margin,Ne=Ce.top+Ce.bottom,Oe=z+E.bottom,Ve=ye.height,ft=El(fe,!1);(isNaN(fe.desiredSize.height)&&ft===Wn||ft===nr)&&(Ve=Math.max(x.height-Ne-Oe,0)),Ne=Ve+Ne+Oe,Oe=fe.alignment,Oe.Xb()&&(Oe=a.defaultAlignment),Oe.sb()||(Oe=mr),ee&&(re-=ye.width+Ce.left+Ce.right),fe.arrange(re+Oe.offsetX+Ce.left,de+Oe.offsetY+Ce.top+(x.height*Oe.y-Ne*Oe.y),ye.width,Ve),ee||(re+=ye.width+Ce.left+Ce.right)}}};function Sm(){this.xa="Base"}Wt(Sm,Ya),Sm.prototype.measure=function(a,y,x,b,E,z){var ee=b.length;x=Mi();for(var re=nd(a),oe=0;oe<ee;oe++){var de=b[oe];if(de.visible||de===re){var fe=El(de,!1);if(fe!==Mn&&fe!==nr)x.push(de);else{var ye=de.margin;fe=ye.right+ye.left,ye=ye.top+ye.bottom,de.measure(y,1/0,z,0),de=de.measuredBounds,Xr(E,Math.max(E.width,Math.max(de.width+fe,0)),E.height+Math.max(de.height+ye,0))}}}if(b=x.length,b!==0){for(a.desiredSize.width?y=Math.min(a.desiredSize.width,a.maxSize.width):E.width!==0&&(y=Math.min(E.width,a.maxSize.width)),a=0;a<b;a++)oe=x[a],(oe.visible||oe===re)&&(de=oe.margin,ee=de.right+de.left,de=de.top+de.bottom,oe.measure(y,1/0,z,0),oe=oe.measuredBounds,de=Math.max(oe.height+de,0),E.width=Math.max(E.width,Math.max(oe.width+ee,0)),E.height+=de);ui(x)}},Sm.prototype.arrange=function(a,y,x){for(var b=y.length,E=a.padding,z=E.left,ee=a.isOpposite,re=ee?x.height:E.top,oe=0;oe<b;oe++){var de=z,fe=y[oe];if(fe.visible){var ye=fe.measuredBounds,Ce=fe.margin,Ne=Ce.left+Ce.right,Oe=z+E.right,Ve=ye.width,ft=El(fe,!1);(isNaN(fe.desiredSize.width)&&ft===Wn||ft===ji)&&(Ve=Math.max(x.width-Ne-Oe,0)),Ne=Ve+Ne+Oe,Oe=fe.alignment,Oe.Xb()&&(Oe=a.defaultAlignment),Oe.sb()||(Oe=mr),ee&&(re-=ye.height+Ce.bottom+Ce.top),fe.arrange(de+Oe.offsetX+Ce.left+(x.width*Oe.x-Ne*Oe.x),re+Oe.offsetY+Ce.top,Ve,ye.height),ee||(re+=ye.height+Ce.bottom+Ce.top)}}};function xm(){this.xa="Base"}Wt(xm,Ya),xm.prototype.measure=function(a,y,x,b,E,z,ee){var re=b.length,oe=a.Pb(),de=oe.margin,fe=de.right+de.left,ye=de.top+de.bottom;oe.measure(y,x,z,ee);var Ce=oe.measuredBounds;z=Ce.width,ee=Ce.height;var Ne=Math.max(z+fe,0),Oe=Math.max(ee+ye,0),Ve=a.isClipping,ft=tn.allocAt(-de.left,-de.top,Ne,Oe),lt=tn.allocAt(0,0,z,ee);mv(oe,lt,!0),z=lt.width,ee=lt.height;for(var mt=!0,St=nd(a),Ct=0;Ct<re;Ct++){var Rt=b[Ct];Ce=y;var $t=x;if(Rt!==oe&&(Rt.visible||Rt===St)){de=Rt.margin;var di=de.left,Di=de.top;switch(Ne=de.right+de.left,Oe=de.top+de.bottom,de=El(Rt,!1),de){case Wn:Ce=z,$t=ee,Di=di=Oe=Ne=0;break;case ji:Ce=z,di=Ne=0;break;case nr:$t=ee,Di=Oe=0}Rt.measure(Ce,$t,0,0),Ce=Rt.measuredBounds,Ne=Math.max(Ce.width+Ne,0),Oe=Math.max(Ce.height+Oe,0),de=Rt.alignment,de.Xb()&&(de=a.defaultAlignment),de.sb()||(de=mr);var Li=Rt.alignmentFocus;if(Li.Xb()&&(Li=mr),$t=null,Rt instanceof Kn&&Rt.$e!==""&&($t=Rt.fb(Rt.$e),$t===Rt&&($t=null)),di=lt.x-di,Di=lt.y-Di,$t!==null){for(Rt.arrange(0,0,Ce.width,Ce.height),Ce=$t.actualBounds,Ce=Je.allocAt(Ce.x+(Li.x*Ce.width-Li.offsetX),Ce.y+(Li.y*Ce.height-Li.offsetY)),$t=$t.panel;$t!==Rt;)$t.transform.Ga(Ce),$t=$t.panel;di+=de.x*z+de.offsetX-Ce.x,Di+=de.y*ee+de.offsetY-Ce.y,Je.free(Ce)}else di+=de.x*z+de.offsetX-(Li.x*Ce.width+Li.offsetX),Di+=de.y*ee+de.offsetY-(Li.y*Ce.height+Li.offsetY);mt?(mt=!1,E.h(di,Di,Ne,Oe)):qr(E,di,Di,Ne,Oe)}}switch(mt?E.assign(ft):Ve?E.Uu(lt.x,lt.y,lt.width,lt.height):qr(E,ft.x,ft.y,ft.width,ft.height),tn.free(ft),tn.free(lt),de=oe.stretch,de===Er&&(de=El(oe,!1)),de){case Mn:return;case Wn:if(!isFinite(y)&&!isFinite(x))return;break;case ji:if(!isFinite(y))return;break;case nr:if(!isFinite(x))return}for(Ce=oe.measuredBounds,z=Ce.width,ee=Ce.height,Ne=Math.max(z+fe,0),Oe=Math.max(ee+ye,0),de=oe.margin,lt=tn.allocAt(-de.left,-de.top,Ne,Oe),mv(oe,lt,!0),z=lt.width,ee=lt.height,y=0;y<re;y++)x=b[y],x===oe||!x.visible&&x!==St||(de=x.margin,Ne=de.right+de.left,Oe=de.top+de.bottom,Ce=x.measuredBounds,Ne=Math.max(Ce.width+Ne,0),Oe=Math.max(Ce.height+Oe,0),fe=x.alignment,fe.Xb()&&(fe=a.defaultAlignment),fe.sb()||(fe=mr),x=x.alignmentFocus,x.Xb()&&(x=mr),mt?(mt=!1,E.h(fe.x*z+fe.offsetX-(x.x*Ce.width+x.offsetX)-de.left,fe.y*ee+fe.offsetY-(x.y*Ce.height+x.offsetY)-de.top,Ne,Oe)):qr(E,fe.x*z+fe.offsetX-(x.x*Ce.width+x.offsetX)-de.left,fe.y*ee+fe.offsetY-(x.y*Ce.height+x.offsetY)-de.top,Ne,Oe));mt?E.assign(ft):Ve?E.Uu(lt.x,lt.y,lt.width,lt.height):qr(E,ft.x,ft.y,ft.width,ft.height),tn.free(lt)},xm.prototype.arrange=function(a,y,x){var b=y.length,E=a.Pb(),z=E.measuredBounds,ee=z.width,re=z.height,oe=a.padding;z=oe.left,oe=oe.top;var de=z-x.x,fe=oe-x.y;for(E.arrange(de,fe,ee,re),ee=tn.allocAt(0,0,ee,re),mv(E,ee,!1),re=0;re<b;re++){var ye=y[re];if(ye!==E){de=ye.measuredBounds;var Ce=de.width,Ne=de.height;fe=ye.alignment,fe.Xb()&&(fe=a.defaultAlignment),fe.sb()||(fe=mr);var Oe=ye.alignmentFocus;if(Oe.Xb()&&(Oe=mr),de=null,ye instanceof Kn&&ye.$e!==""&&(de=ye.fb(ye.$e),de===ye&&(de=null)),de!==null){var Ve=de.actualBounds;for(Oe=Je.allocAt(Ve.x+(Oe.x*Ve.width-Oe.offsetX),Ve.y+(Oe.y*Ve.height-Oe.offsetY)),de=de.panel;de!==ye;)de.transform.Ga(Oe),de=de.panel;de=fe.x*ee.width+fe.offsetX-Oe.x,fe=fe.y*ee.height+fe.offsetY-Oe.y,Je.free(Oe)}else de=fe.x*ee.width+fe.offsetX-(Oe.x*Ce+Oe.offsetX),fe=fe.y*ee.height+fe.offsetY-(Oe.y*Ne+Oe.offsetY);de+=ee.x-x.x,fe+=ee.y-x.y,ye.visible&&ye.arrange(z+de,oe+fe,Ce,Ne)}}tn.free(ee)};function mv(a,y,x){var b=null;if(a instanceof Kn&&a.$e!==""&&(b=a.fb(a.$e),b===a&&(b=null)),b!==null)for(x&&a.arrange(0,0,y.width,y.height),y.assign(b.actualBounds),b=b.panel;b!==a;)b.transform.pp(y),b=b.panel}function bm(){this.xa="Base"}Wt(bm,Ya),bm.prototype.measure=function(a,y,x,b,E,z,ee){var re=b.length,oe=a.Pb(),de=oe.margin,fe=y,ye=x,Ce=de.right+de.left,Ne=de.top+de.bottom;oe.measure(y,x,z,ee),de=oe.measuredBounds;var Oe=0,Ve=null;oe instanceof Nr&&(Ve=oe,Oe=Ve.strokeWidth*Ve.scale);var ft=Math.max(de.width+Ce,0);de=Math.max(de.height+Ne,0);var lt=xv(oe),mt=lt.x*ft+lt.offsetX;lt=lt.y*de+lt.offsetY;var St=bv(oe),Ct=St.x*ft+St.offsetX;for(St=St.y*de+St.offsetY,isFinite(y)&&(fe=Math.max(Math.abs(mt-Ct)-Oe,0)),isFinite(x)&&(ye=Math.max(Math.abs(lt-St)-Oe,0)),Oe=Ln.alloc(),Oe.h(0,0),a=nd(a),St=0;St<re;St++)lt=b[St],lt===oe||!lt.visible&<!==a||(de=lt.margin,ft=de.right+de.left,mt=de.top+de.bottom,lt.measure(fe,ye,0,0),de=lt.measuredBounds,ft=Math.max(de.width+ft,0),de=Math.max(de.height+mt,0),Oe.h(Math.max(ft,Oe.width),Math.max(de,Oe.height)));if(re===1)E.width=ft,E.height=de,Ln.free(Oe);else{switch(lt=xv(oe),St=bv(oe),re=b=0,St.x!==lt.x&&St.y!==lt.y&&(b=Oe.width/Math.abs(St.x-lt.x),re=Oe.height/Math.abs(St.y-lt.y)),Ln.free(Oe),Oe=0,Ve!==null&&(Oe=Ve.strokeWidth*Ve.scale,Pv(Ve)===Ui&&(b=re=Math.max(b,re))),b+=Math.abs(lt.offsetX)+Math.abs(St.offsetX)+Oe,re+=Math.abs(lt.offsetY)+Math.abs(St.offsetY)+Oe,Ve=oe.stretch,Ve===Er&&(Ve=El(oe,!1)),Ve){case Mn:ee=z=0;break;case Wn:isFinite(y)&&(b=y),isFinite(x)&&(re=x);break;case ji:isFinite(y)&&(b=y),ee=0;break;case nr:z=0,isFinite(x)&&(re=x)}oe.Uj(),oe.measure(b,re,z,ee),E.width=oe.measuredBounds.width+Ce,E.height=oe.measuredBounds.height+Ne}},bm.prototype.arrange=function(a,y){var x=y.length,b=a.Pb(),E=b.measuredBounds,z=tn.alloc();z.h(0,0,1,1);var ee=b.margin,re=ee.left;ee=ee.top;var oe=a.padding,de=oe.left;oe=oe.top,b.arrange(de+re,oe+ee,E.width,E.height);var fe=xv(b),ye=bv(b),Ce=fe.y*E.height+fe.offsetY,Ne=ye.x*E.width+ye.offsetX;for(ye=ye.y*E.height+ye.offsetY,z.x=fe.x*E.width+fe.offsetX,z.y=Ce,qr(z,Ne,ye,0,0),z.x+=re+de,z.y+=ee+oe,E=0;E<x;E++)re=y[E],re!==b&&(de=re.measuredBounds,ee=re.margin,oe=Math.max(de.width+ee.right+ee.left,0),fe=Math.max(de.height+ee.top+ee.bottom,0),Ce=re.alignment,Ce.Xb()&&(Ce=a.defaultAlignment),Ce.sb()||(Ce=mr),oe=z.width*Ce.x+Ce.offsetX-oe*Ce.x+ee.left+z.x,ee=z.height*Ce.y+Ce.offsetY-fe*Ce.y+ee.top+z.y,re.visible&&(Oo(z.x,z.y,z.width,z.height,oe,ee,de.width,de.height)?re.arrange(oe,ee,de.width,de.height):re.arrange(oe,ee,de.width,de.height,new tn(z.x,z.y,z.width,z.height))));tn.free(z)};function Em(){this.xa="Base",this.name="Table"}Wt(Em,Ya),Em.prototype.measure=function(a,y,x,b,E){for(var z=b.length,ee=Mi(),re=Mi(),oe=0;oe<z;oe++){var de=b[oe],fe=de instanceof Kn?de:null;if(fe!==null&&bd(fe)&&de.visible){re.push(fe);for(var ye=fe.O.s,Ce=ye.length,Ne=0;Ne<Ce;Ne++){var Oe=ye[Ne];fe.type===Kn.TableRow?Oe.row=de.row:fe.type===Kn.TableColumn&&(Oe.column=de.column),ee.push(Oe)}}else ee.push(de)}z=ee.length,z===0&&(a.Fb(0),a.Eb(0));for(var Ve=[],ft=0;ft<z;ft++){var lt=ee[ft];lt.visible&&(za(lt,!0),Fc(lt,!0),Ve[lt.row]||(Ve[lt.row]=[]),Ve[lt.row][lt.column]||(Ve[lt.row][lt.column]=[]),Ve[lt.row][lt.column].push(lt))}ui(ee);var mt=Mi(),St=Mi(),Ct=Mi(),Rt={count:0},$t={count:0},di=y,Di=x,Li=a.rowDefs,$n=a.colDefs,Nn=null;z=Li.length;for(var Sr=0;Sr<z;Sr++)Nn=Li[Sr],Nn!==void 0&&(Nn.actual=0);z=$n.length;for(var hr=0;hr<z;hr++)Nn=$n[hr],Nn!==void 0&&(Nn.actual=0);for(var po=Ve.length,Yo=0,rs=0;rs<po;rs++)Ve[rs]&&(Yo=Math.max(Yo,Ve[rs].length));var ls=Math.min(a.topIndex,po-1),Qs=Math.min(a.leftIndex,Yo-1),os=0;po=Ve.length;for(var Id=nd(a),Ra=0;Ra<po;Ra++)if(Ve[Ra]){Yo=Ve[Ra].length;var pc=a.Fb(Ra);pc.actual=0;for(var Js=pc.oc=0;Js<Yo;Js++)if(Ve[Ra][Js]){var Md=a.Eb(Js);mt[Js]===void 0&&(Md.actual=0,Md.oc=0,mt[Js]=!0);for(var lu=Ve[Ra][Js],Fu=lu.length,Yl=0;Yl<Fu;Yl++){var Rl=lu[Yl];if(Rl.visible||Rl===Id){var lh=1<Rl.rowSpan||1<Rl.columnSpan;lh&&(Ra<ls||Js<Qs||St.push(Rl));var mc=Rl.margin,vg=mc.right+mc.left,Kl=mc.top+mc.bottom,qs=cc(Rl,pc,Md,!1),jp=Rl.desiredSize,Sf=!isNaN(jp.height),Ac=!isNaN(jp.width)&&Sf;if(lh||qs===Mn||Ac||Ra<ls||Js<Qs||(Rt[Js]!==void 0||qs!==Wn&&qs!==ji||(Rt[Js]=-1,Rt.count++),$t[Ra]!==void 0||qs!==Wn&&qs!==nr||($t[Ra]=-1,$t.count++),Ct.push(Rl)),Rl.measure(1/0,1/0,0,0),!(Ra<ls||Js<Qs)){var Ol=Rl.measuredBounds,Hh=Math.max(Ol.width+vg,0),Zl=Math.max(Ol.height+Kl,0);if(Rl.rowSpan===1&&(qs===Mn||qs===ji)){Nn=a.Fb(Ra);var uh=Nn.Wc();os=Math.max(Zl-Nn.actual,0),os+uh>Di&&(os=Math.max(Di-uh,0));var V0=Nn.oa===0;Nn.oc=Nn.oc+os,Nn.actual=Nn.oa+os,Di=Math.max(Di-(os+(V0?uh:0)),0)}if(Rl.columnSpan===1&&(qs===Mn||qs===nr)){Nn=a.Eb(Js);var Gp=Nn.Wc();os=Math.max(Hh-Nn.actual,0),os+Gp>di&&(os=Math.max(di-Gp,0));var Gy=Nn.oa===0;Nn.oc=Nn.oc+os,Nn.actual=Nn.oa+os,di=Math.max(di-(os+(Gy?Gp:0)),0)}lh&&Rl.Uj()}}}}}ui(mt);var Kc=0,od=0;z=a.columnCount;for(var xf=0;xf<z;xf++){var ch=$n[xf];ch!==void 0&&(Kc+=isNaN(ch.Hc)?ch.oc:ch.Hc,ch.oc!==0&&(Kc+=ch.Wc()))}z=a.rowCount;for(var yg=0;yg<z;yg++){var dh=Li[yg];dh!==void 0&&(od+=isNaN(dh.Hc)?dh.oc:dh.Hc,dh.oc!==0&&(od+=dh.Wc()))}di=Math.max(y-Kc,0);var Zc=Di=Math.max(x-od,0),Rd=di;z=Ct.length;for(var Dl=0;Dl<z;Dl++){var Pc=Ct[Dl],Y0=a.Fb(Pc.row),ad=a.Eb(Pc.column),Sg=Pc.measuredBounds,vc=Pc.margin,jh=vc.right+vc.left,Nc=vc.top+vc.bottom;Rt[Pc.column]=ad.oc===0&&Rt[Pc.column]!==void 0?Math.max(Sg.width+jh,Rt[Pc.column]):null,$t[Pc.row]=Y0.oc===0&&$t[Pc.row]!==void 0?Math.max(Sg.height+Nc,$t[Pc.row]):null}var bf=0,xg=0,ic;for(ic in $t)ic!=="count"&&(bf+=$t[ic]);for(ic in Rt)ic!=="count"&&(xg+=Rt[ic]);for(var xs=Ln.alloc(),Wp=0;Wp<z;Wp++){var fl=Ct[Wp];if(fl.visible||fl===Id){var Oa=a.Fb(fl.row),gl=a.Eb(fl.column),sd=0;isFinite(gl.width)?sd=gl.width:(isFinite(di)&&Rt[fl.column]!==null?xg===0?sd=gl.actual+di:sd=Rt[fl.column]/xg*Rd:Rt[fl.column]!==null?sd=di:sd=gl.actual||di,sd=Math.max(0,sd-gl.Wc()));var Od=0;switch(isFinite(Oa.height)?Od=Oa.height:(isFinite(Di)&&$t[fl.row]!==null?bf===0?Od=Oa.actual+Di:Od=$t[fl.row]/bf*Zc:$t[fl.row]!==null?Od=Di:Od=Oa.actual||Di,Od=Math.max(0,Od-Oa.Wc())),xs.h(Math.max(gl.minimum,Math.min(sd,gl.maximum)),Math.max(Oa.minimum,Math.min(Od,Oa.maximum))),qs=cc(fl,Oa,gl,!1),qs){case ji:xs.height=Math.max(xs.height,Oa.actual+Di);break;case nr:xs.width=Math.max(xs.width,gl.actual+di)}var Gh=fl.margin,Wy=Gh.right+Gh.left,K0=Gh.top+Gh.bottom;fl.Uj(),fl.measure(xs.width,xs.height,gl.minimum,Oa.minimum);var bg=fl.measuredBounds,Wh=Math.max(bg.width+Wy,0),Ef=Math.max(bg.height+K0,0);isFinite(di)&&(Wh=Math.min(Wh,xs.width)),isFinite(Di)&&(Ef=Math.min(Ef,xs.height));var Fl=0;Fl=Oa.actual,Oa.actual=Math.max(Oa.actual,Ef),Oa.oc=Math.max(Oa.oc,Ef),os=Oa.actual-Fl,Di=Math.max(Di-os,0),$t[fl.row]===null&&(Zc=Math.max(Zc-os,0)),Fl=gl.actual,gl.actual=Math.max(gl.actual,Wh),gl.oc=Math.max(gl.oc,Wh),os=gl.actual-Fl,di=Math.max(di-os,0),Rt[fl.column]===null&&(Rd=Math.max(Rd-os,0))}}ui(Ct);var ld=Ln.alloc(),yc=Mi(),wu=Mi();if(z=St.length,z!==0){for(var hh=0;hh<po;hh++)if(Ve[hh]){Yo=Ve[hh].length;var Eg=a.Fb(hh);yc[hh]=Eg.actual;for(var fh=0;fh<Yo;fh++)if(Ve[hh][fh]){var Z0=a.Eb(fh);wu[fh]=Z0.actual}}}for(var wg=0;wg<z;wg++){var xa=St[wg];if(xa.visible||xa===Id){var rc=a.Fb(xa.row),Bu=a.Eb(xa.column);switch(xs.h(Math.max(Bu.minimum,Math.min(y,Bu.maximum)),Math.max(rc.minimum,Math.min(x,rc.maximum))),qs=cc(xa,rc,Bu,!1),qs){case Wn:wu[Bu.index]!==0&&(xs.width=Math.min(xs.width,wu[Bu.index])),yc[rc.index]!==0&&(xs.height=Math.min(xs.height,yc[rc.index]));break;case ji:wu[Bu.index]!==0&&(xs.width=Math.min(xs.width,wu[Bu.index]));break;case nr:yc[rc.index]!==0&&(xs.height=Math.min(xs.height,yc[rc.index]))}isFinite(Bu.width)&&(xs.width=Bu.width),isFinite(rc.height)&&(xs.height=rc.height),ld.h(0,0);for(var X0=Bu.minimum,Xl=rc.minimum,Dd=1;Dd<xa.rowSpan&&!(xa.row+Dd>=a.rowCount);Dd++)Nn=a.Fb(xa.row+Dd),os=0,os=qs===Wn||qs===nr?Math.max(Nn.minimum,yc[xa.row+Dd]===0?Nn.maximum:Math.min(yc[xa.row+Dd],Nn.maximum)):Math.max(Nn.minimum,isNaN(Nn.Hc)?Nn.maximum:Math.min(Nn.Hc,Nn.maximum)),ld.height+=os,Xl+=Nn.minimum;for(var _u=1;_u<xa.columnSpan&&!(xa.column+_u>=a.columnCount);_u++)Nn=a.Eb(xa.column+_u),os=0,os=qs===Wn||qs===ji?Math.max(Nn.minimum,wu[xa.column+_u]===0?Nn.maximum:Math.min(wu[xa.column+_u],Nn.maximum)):Math.max(Nn.minimum,isNaN(Nn.Hc)?Nn.maximum:Math.min(Nn.Hc,Nn.maximum)),ld.width+=os,X0+=Nn.minimum;xs.width+=ld.width,xs.height+=ld.height;var Cg=xa.margin,gh=Cg.right+Cg.left,Vp=Cg.top+Cg.bottom;xa.measure(xs.width,xs.height,X0,Xl);for(var Tg=xa.measuredBounds,kc=Math.max(Tg.width+gh,0),Vh=Math.max(Tg.height+Vp,0),ph=0,Ag=0;Ag<xa.rowSpan&&!(xa.row+Ag>=a.rowCount);Ag++)Nn=a.Fb(xa.row+Ag),ph+=Nn.total||0;if(ph<Vh){var Fd=Vh-ph,Xc=Vh-ph;if(xa.spanAllocation!==null)for(var Bd=xa.spanAllocation,ud=0;ud<xa.rowSpan&&!(0>=Fd)&&!(xa.row+ud>=a.rowCount);ud++){Nn=a.Fb(xa.row+ud);var _d=Nn.oa||0,Yh=Bd(xa,Nn,Xc);Nn.actual=Math.min(Nn.maximum,_d+Yh),Nn.oa!==_d&&(Fd-=Nn.oa-_d)}for(;0<Fd;){var Sc=Nn.oa||0;if(isNaN(Nn.height)&&Nn.maximum>Sc&&(Nn.actual=Math.min(Nn.maximum,Sc+Fd),Nn.oa!==Sc&&(Fd-=Nn.oa-Sc)),Nn.index===0)break;Nn=a.Fb(Nn.index-1)}}for(var wf=0,Ud=0;Ud<xa.columnSpan&&!(xa.column+Ud>=a.columnCount);Ud++)Nn=a.Eb(xa.column+Ud),wf+=Nn.total||0;if(wf<kc){var Cf=kc-wf,Vy=kc-wf;if(xa.spanAllocation!==null)for(var cd=xa.spanAllocation,Kh=0;Kh<xa.columnSpan&&!(0>=Cf)&&!(xa.column+Kh>=a.columnCount);Kh++){Nn=a.Eb(xa.column+Kh);var Yp=Nn.oa||0,Yy=cd(xa,Nn,Vy);Nn.actual=Math.min(Nn.maximum,Yp+Yy),Nn.oa!==Yp&&(Cf-=Nn.oa-Yp)}for(;0<Cf;){var Q0=Nn.oa||0;if(isNaN(Nn.width)&&Nn.maximum>Q0&&(Nn.actual=Math.min(Nn.maximum,Q0+Cf),Nn.oa!==Q0&&(Cf-=Nn.oa-Q0)),Nn.index===0)break;Nn=a.Eb(Nn.index-1)}}}}ui(St),Ln.free(ld),Ln.free(xs),yc!==void 0&&ui(yc),wu!==void 0&&ui(wu);var Tf=0,Af=0,J0=a.desiredSize,xx=a.maxSize;qs=El(a,!0);var Kp=od=Kc=0,Zp=0;z=a.columnCount;for(var q0=0;q0<z;q0++)$n[q0]!==void 0&&(Nn=a.Eb(q0),isFinite(Nn.width)?(Kp+=Nn.width,Kp+=Nn.Wc()):Mm(Nn)===op?(Kp+=Nn.oa,Kp+=Nn.Wc()):Nn.oa!==0&&(Kc+=Nn.oa,Kc+=Nn.Wc()));isFinite(J0.width)?Tf=Math.min(J0.width,xx.width):Tf=qs!==Mn&&isFinite(y)?y:Kc,Tf=Math.max(Tf,a.minSize.width),Tf=Math.max(Tf-Kp,0);for(var Rb=Kc===0?1:Math.max(Tf/Kc,1),$0=0;$0<z;$0++)$n[$0]!==void 0&&(Nn=a.Eb($0),isFinite(Nn.width)||Mm(Nn)===op||(Nn.actual=Nn.oa*Rb),Nn.position=E.width,Nn.oa!==0&&(E.width+=Nn.oa,E.width+=Nn.Wc()));z=a.rowCount;for(var ev=0;ev<z;ev++)Li[ev]!==void 0&&(Nn=a.Fb(ev),isFinite(Nn.height)?(Zp+=Nn.height,Zp+=Nn.Wc()):Mm(Nn)===op?(Zp+=Nn.oa,Zp+=Nn.Wc()):Nn.oa!==0&&(od+=Nn.oa,od+=Nn.Wc()));isFinite(J0.height)?Af=Math.min(J0.height,xx.height):Af=qs!==Mn&&isFinite(x)?x:od,Af=Math.max(Af,a.minSize.height),Af=Math.max(Af-Zp,0);for(var Ob=od===0?1:Math.max(Af/od,1),tv=0;tv<z;tv++)Li[tv]!==void 0&&(Nn=a.Fb(tv),isFinite(Nn.height)||Mm(Nn)===op||(Nn.actual=Nn.oa*Ob),Nn.position=E.height,Nn.oa!==0&&(E.height+=Nn.oa,E.height+=Nn.Wc()));z=re.length;for(var Ky=0;Ky<z;Ky++){var Xp=re[Ky],Zy=0,Xy=0;Xp.type===Kn.TableRow?(Zy=E.width,Nn=a.Fb(Xp.row),Xy=Nn.actual):(Nn=a.Eb(Xp.column),Zy=Nn.actual,Xy=E.height),Xp.measuredBounds.h(0,0,Zy,Xy),za(Xp,!1)}ui(re),a.inRowsCols=Ve},Em.prototype.arrange=function(a,y,x){var b=y.length,E=a.padding,z=E.left;E=E.top;var ee=a.inRowsCols;if(ee!==null){for(var re,oe,de=ee.length,fe=0,ye=0;ye<de;ye++)ee[ye]&&(fe=Math.max(fe,ee[ye].length));oe=a.rowDefs,re=a.colDefs;var Ce=ye=0,Ne=Math.min(a.topIndex,de-1);if(0<oe.length){for(;Ne!==de&&(oe[Ne]===void 0||oe[Ne].oa===0);)Ne++;Ne=Math.max(Math.min(Ne,de-1),0),ye=-oe[Ne].position}var Oe=Math.min(a.leftIndex,fe-1);if(0<re.length){for(;Oe!==fe&&(re[Oe]===void 0||re[Oe].oa===0);)Oe++;Oe=Math.max(Math.min(Oe,fe-1),0),Ce=-re[Oe].position}for(var Ve=0,ft=0;Ve!==de&&oe[Ve]===void 0;)Ve++;for(;ft!==de&&re[ft]===void 0;)ft++;fe=a.part,a.Fb(Ve),a.Eb(ft);for(var lt=0;lt<y.length;lt++){var mt=y[lt];if(mt instanceof Kn&&mt.visible&&bd(mt)){if(mt.type===Kn.TableRow){re=a.Fb(mt.row);var St=a.Eb(ft)}else re=a.Fb(Ve),St=a.Eb(mt.column);oe=re.position+ye+E,re.oa!==0&&(oe+=re.Io(Math.max(Ve,Ne))),re=St.position+Ce+z,St.oa!==0&&(re+=St.Io(Math.max(ft,Oe))),St=mt.measuredBounds,mt.Uk(),mt.actualBounds.ka();var Ct=mt.actualBounds,Rt=tn.allocAt(Ct.x,Ct.y,Ct.width,Ct.height);Ct.x=mt.type===Kn.TableRow?z:re,Ct.y=mt.type===Kn.TableColumn?E:oe,Ct.width=St.width,Ct.height=St.height,mt.actualBounds.freeze(),Fc(mt,!1),ao(Rt,Ct)||fe===null||(fe.oh(),mt.Pn(fe)),tn.free(Rt)}}for(lt=Ln.alloc(),mt=0;mt<de;mt++)if(ee[mt]){for(fe=ee[mt].length,St=a.Fb(mt),oe=St.position+ye+E,St.oa!==0&&(oe+=St.Io(Math.max(Ve,Ne))),Ct=0;Ct<fe;Ct++)if(ee[mt][Ct]){Rt=a.Eb(Ct),re=Rt.position+Ce+z,Rt.oa!==0&&(re+=Rt.Io(Math.max(ft,Oe)));for(var $t=ee[mt][Ct],di=$t.length,Di=0;Di<di;Di++){var Li=$t[Di],$n=Li.measuredBounds;lt.h(0,0);for(var Nn=1;Nn<Li.rowSpan&&!(mt+Nn>=a.rowCount);Nn++){var Sr=a.Fb(mt+Nn);Sr.oa!==0&&(lt.height+=Sr.total)}for(Nn=1;Nn<Li.columnSpan&&!(Ct+Nn>=a.columnCount);Nn++)Sr=a.Eb(Ct+Nn),Sr.oa!==0&&(lt.width+=Sr.total);var hr=Rt.oa+lt.width,po=St.oa+lt.height;Nn=re,Sr=oe;var Yo=hr,rs=po,ls=re,Qs=oe,os=hr,Id=po;re+hr>x.width&&(os=Math.max(x.width-re,0)),oe+po>x.height&&(Id=Math.max(x.height-oe,0));var Ra=Li.alignment;if(Ra.Xb()){Ra=a.defaultAlignment,Ra.sb()||(Ra=mr);var pc=Ra.x,Js=Ra.y,Md=Ra.offsetX;Ra=Ra.offsetY;var lu=Rt.alignment,Fu=St.alignment;lu.sb()&&(pc=lu.x,Md=lu.offsetX),Fu.sb()&&(Js=Fu.y,Ra=Fu.offsetY)}else pc=Ra.x,Js=Ra.y,Md=Ra.offsetX,Ra=Ra.offsetY;(isNaN(pc)||isNaN(Js))&&(Js=pc=.5,Ra=Md=0),lu=$n.width,Fu=$n.height;var Yl=Li.margin,Rl=Yl.left+Yl.right,lh=Yl.top+Yl.bottom,mc=cc(Li,St,Rt,!1);!isNaN(Li.desiredSize.width)||mc!==Wn&&mc!==ji||(lu=Math.max(hr-Rl,0)),!isNaN(Li.desiredSize.height)||mc!==Wn&&mc!==nr||(Fu=Math.max(po-lh,0)),hr=Li.maxSize,po=Li.minSize,lu=Math.min(hr.width,lu),Fu=Math.min(hr.height,Fu),lu=Math.max(po.width,lu),Fu=Math.max(po.height,Fu),hr=Fu+lh,Nn+=Yo*pc-(lu+Rl)*pc+Md+Yl.left,Sr+=rs*Js-hr*Js+Ra+Yl.top,Li.visible&&(Oo(ls,Qs,os,Id,Nn,Sr,$n.width,$n.height)?Li.arrange(Nn,Sr,lu,Fu):Li.arrange(Nn,Sr,lu,Fu,new tn(ls,Qs,os,Id)))}}}for(Ln.free(lt),a=0;a<b;a++)x=y[a],z=x instanceof Kn?x:null,z!==null&&bd(z)&&(z=x.actualBounds,x.naturalBounds.ka(),x.naturalBounds.h(0,0,z.width,z.height),x.naturalBounds.freeze())}};function wm(){this.xa="Base"}Wt(wm,Ya),wm.prototype.measure=function(){},wm.prototype.arrange=function(){};function Cm(){this.xa="Base"}Wt(Cm,Ya),Cm.prototype.measure=function(){},Cm.prototype.arrange=function(){};function Tm(){this.xa="Base"}Wt(Tm,Ya),Tm.prototype.measure=function(a,y,x,b,E,z,ee){1<b.length&&vt("Viewbox Panel cannot contain more than one GraphObject."),b=b[0],b.Ca=1,b.Uj(),b.measure(1/0,1/0,z,ee);var re=b.measuredBounds,oe=b.margin,de=oe.right+oe.left;if(oe=oe.top+oe.bottom,isFinite(y)||isFinite(x)){var fe=b.scale,ye=re.width;re=re.height;var Ce=Math.max(y-de,0),Ne=Math.max(x-oe,0),Oe=1;a.viewboxStretch===Ui?ye!==0&&re!==0&&(Oe=Math.min(Ce/ye,Ne/re)):ye!==0&&re!==0&&(Oe=Math.max(Ce/ye,Ne/re)),Oe===0&&(Oe=1e-4),b.Ca*=Oe,fe!==b.scale&&(za(b,!0),b.measure(1/0,1/0,z,ee))}re=b.measuredBounds,E.width=isFinite(y)?y:Math.max(re.width+de,0),E.height=isFinite(x)?x:Math.max(re.height+oe,0)},Tm.prototype.arrange=function(a,y,x){y=y[0];var b=y.measuredBounds,E=y.margin,z=Math.max(b.width+(E.right+E.left),0);E=Math.max(b.height+(E.top+E.bottom),0);var ee=y.alignment;ee.Xb()&&(ee=a.defaultAlignment),ee.sb()||(ee=mr),y.arrange(x.width*ee.x-z*ee.x+ee.offsetX,x.height*ee.y-E*ee.y+ee.offsetY,b.width,b.height)};function np(){this.xa="Base"}Wt(np,Ya),np.prototype.measure=function(){},np.prototype.arrange=function(){},np.prototype.gc=function(a,y,x){x=a.Df()*x.scale,0>=x&&(x=1);var b=a.gridCellSize,E=b.width;b=b.height;var z=a.naturalBounds,ee=a.actualBounds,re=z.width,oe=z.height,de=Math.ceil(re/E),fe=Math.ceil(oe/b),ye=a.gridOrigin,Ce=ye.x;ye=ye.y,y.save(),y.beginPath(),y.rect(0,0,re,oe),y.clip(),y.Se();for(var Ne=[],Oe=a.O.s,Ve=Oe.length,ft=0;ft<Ve;ft++){var lt=Oe[ft],mt=[];if(Ne.push(mt),lt.visible){var St=lt.interval;if(!(0>St)){lt=yv(lt.figure);for(var Ct=0;Ct<Ve;Ct++)if(Ct!==ft){var Rt=Oe[Ct];Rt.visible&&yv(Rt.figure)===lt&&(Rt=Rt.interval,Rt>St&&mt.push(Rt))}}}}for(Oe=a.O.s,Ve=Oe.length,ft=0;ft<Ve;ft++){var $t=Oe[ft];if($t.visible&&(mt=$t.interval||1,lt=Math.abs(mt),!(2>E*lt*x))){if(St=$t.segmentIndex,(!isFinite(St)||isNaN(St))&&(St=0),0>St&&(St=lt-Math.min(-St,lt)),St=Math.round(St%lt),lt=$t.opacity,Ct=1,lt!==1){if(lt===0)continue;Ct=y.globalAlpha,y.globalAlpha=Ct*lt}Rt=Ne[ft];var di=!1,Di=$t.strokeDashArray;if(Di!==null&&(di=!0,y.js(Di,$t.strokeDashOffset)),$t.figure==="LineV"&&$t.stroke!==null&&0<$t.strokeWidth){for(y.lineWidth=$t.strokeWidth,ya(a,y,$t.stroke,!1,!1,z,ee),y.beginPath(),Di=$t=Math.floor((Ce-E)/E);Di<=$t+de;Di++){var Li=Di*E+Ce;0<=Li&&Li<=re&&Am(Di,mt,St,Rt)&&(y.moveTo(Li,0),y.lineTo(Li,oe))}y.stroke(),y.Se()}else if($t.figure==="LineH"&&$t.stroke!==null&&0<$t.strokeWidth){for(y.lineWidth=$t.strokeWidth,ya(a,y,$t.stroke,!1,!1,z,ee),y.beginPath(),Di=$t=Math.floor((ye-b)/b);Di<=$t+fe;Di++)Li=Di*b+ye,0<=Li&&Li<=oe&&Am(Di,mt,St,Rt)&&(y.moveTo(0,Li),y.lineTo(re,Li));y.stroke(),y.Se()}else if($t.figure==="BarV"&&$t.fill!==null)for(ya(a,y,$t.fill,!0,!1,z,ee),$t=$t.width,isNaN($t)&&($t=E),Li=Di=Math.floor((Ce-E)/E);Li<=Di+de;Li++){var $n=Li*E+Ce;0<=$n+$t&&$n<=re&&Am(Li,mt,St,Rt)&&y.fillRect($n,0,$t,oe)}else if($t.figure==="BarH"&&$t.fill!==null)for(ya(a,y,$t.fill,!0,!1,z,ee),$t=$t.height,isNaN($t)&&($t=b),Li=Di=Math.floor((ye-b)/b);Li<=Di+fe;Li++)$n=Li*b+ye,0<=$n+$t&&$n<=oe&&Am(Li,mt,St,Rt)&&y.fillRect(0,$n,re,$t);di&&y.fs(),lt!==1&&(y.globalAlpha=Ct)}}y.restore(),y.Vc(!1)};function Am(a,y,x,b){if(0>y)return a%y===x;if(a%y!==x)return!1;y=b.length;for(var E=0;E<y;E++)if(a%b[E]===x)return!1;return!0}function Pm(){this.xa="Base"}Wt(Pm,Ya),Pm.prototype.measure=function(a,y,x,b,E){var z=b.length;if(a instanceof lo||a instanceof ei){var ee=null,re=null;if(a instanceof ei&&(ee=a),a instanceof lo&&(re=a,ee=re.adornedPart,a.j===null&&(a.j=[])),ee instanceof ei){var oe=ee;if(z===0)Xr(a.naturalBounds,0,0),a.measuredBounds.h(0,0,0,0);else{var de=a instanceof lo?null:ee.path;y=ee.routeBounds,x=a.jg,x.h(0,0,y.width,y.height);var fe=oe.points,ye=ee.pointsCount;re!==null?re.Ul(!1):ee!==null&&ee.Ul(!1),re=y.width;var Ce=y.height,Ne=a.j;if(Ne.length=0,de!==null){lS(a,re,Ce,de);var Oe=de.measuredBounds;x.ed(Oe),Ne.push(Oe)}Oe=dr.alloc();for(var Ve=Je.alloc(),ft=Je.alloc(),lt=0;lt<z;lt++){var mt=b[lt];if(mt!==de)if(mt.isPanelMain&&mt instanceof Nr){lS(a,re,Ce,mt);var St=mt.measuredBounds;x.ed(St),Ne.push(St)}else if(2>ye)mt.measure(1/0,1/0,0,0),St=mt.measuredBounds,x.ed(St),Ne.push(St);else{var Ct=mt.segmentIndex,Rt=mt.segmentFraction,$t=mt.alignmentFocus;$t.Mc()&&($t=mr);var di=mt.segmentOrientation,Di=mt.segmentOffset;if(isNaN(Ct)){var Li=oe.ua;St=Mi(),Li.Qu(Rt,St);var $n=Je.allocAt(St[0],St[1]);if($n.add(oe.i(0)),Li.type===Jn.j?$n.offset(-Li.startX,-Li.startY):(Li=Li.figures.first(),Li!==null&&$n.offset(-Li.startX,-Li.startY)),Li=St[2],di!==ll){var Nn=oe.computeAngle(mt,di,Li);mt.Kb=Nn}Nn=$n.x-y.x;var Sr=$n.y-y.y;Je.free($n),ui(St)}else if(Ct<-ye||Ct>=ye)St=Je.alloc(),oe.vg(),oe.computeMidPoint(St),Li=oe.midAngle,di!==ll&&(Nn=oe.computeAngle(mt,di,Li),mt.Kb=Nn),Nn=St.x-y.x,Sr=St.y-y.y,Je.free(St);else{if(Nn=0,0<=Ct?(Sr=fe.M(Ct),St=Ct<ye-1?fe.M(Ct+1):Sr):(Nn=ye+Ct,Sr=fe.M(Nn),St=0<Nn?fe.M(Nn-1):Sr),Sr.Xa(St)){0<=Ct?(Li=0<Ct?fe.M(Ct-1):Sr,Nn=Ct<ye-2?fe.M(Ct+2):St):(Li=Nn<ye-1?fe.M(Nn+1):Sr,Nn=1<Nn?fe.M(Nn-2):St),$n=Li.Bf(Sr);var hr=St.Bf(Nn);Li=$n>hr+10?0<=Ct?Li.ab(Sr):Sr.ab(Li):hr>$n+10?0<=Ct?St.ab(Nn):Nn.ab(St):0<=Ct?Li.ab(Nn):Nn.ab(Li)}else Li=0<=Ct?Sr.ab(St):St.ab(Sr);di!==ll&&(Nn=oe.computeAngle(mt,di,Li),mt.Kb=Nn),Nn=Sr.x+(St.x-Sr.x)*Rt-y.x,Sr=Sr.y+(St.y-Sr.y)*Rt-y.y}mt.measure(1/0,1/0,0,0),St=mt.measuredBounds,$n=mt.naturalBounds;var po=0;mt instanceof Nr&&(po=mt.strokeWidth),hr=$n.width+po;var Yo=$n.height+po;Oe.reset(),Oe.translate(-St.x,-St.y),Oe.scale(mt.scale,mt.scale),Oe.rotate(di===ll?mt.angle:Li,hr/2,Yo/2),di!==pp&&di!==vp||Oe.rotate(90,hr/2,Yo/2),di!==mp&&di!==yp||Oe.rotate(-90,hr/2,Yo/2),di===i0&&(45<Li&&135>Li||225<Li&&315>Li)&&Oe.rotate(-Li,hr/2,Yo/2),$n=new tn(0,0,hr,Yo),Ve.xi($n,$t),Oe.Ga(Ve),$t=-Ve.x+po/2*mt.scale,mt=-Ve.y+po/2*mt.scale,ft.assign(Di),po=isNaN(Di.x);var rs=isNaN(Di.y);if(po||rs){hr=hr/2+3,Yo=Yo/2+3;var ls=45<=Li&&135>=Li,Qs=225<=Li&&315>=Li;di===ll&&(ls||Qs)?(ft.x=rs?hr:Di.y,ft.y=po?Yo:Di.x,ls?0<=Ct||isNaN(Ct)&&.5>Rt||!po||(ft.y=-Yo):Qs&&((0<=Ct||isNaN(Ct)&&.5>Rt)&&po&&(ft.y=-Yo),rs&&(ft.x=-hr))):(po&&(ft.x=0<=Ct||isNaN(Ct)&&.5>Rt?hr:-hr),rs&&(ft.y=-Yo),ft.rotate(Li))}else ft.rotate(Li);Nn+=ft.x,Sr+=ft.y,$n.set(St),$n.h(Nn+$t,Sr+mt,St.width,St.height),Ne.push($n),x.ed($n)}}if(ee!==null)for(b=ee.labelNodes;b.next();)b.value.measure(1/0,1/0);a.jg=x,a.position.h(y.x+x.x,y.y+x.y),Xr(E,x.width||0,x.height||0),dr.free(Oe),Je.free(Ve),Je.free(ft)}}}},Pm.prototype.arrange=function(a,y){var x=y.length;if(a instanceof lo||a instanceof ei){var b=a,E=null;a instanceof lo&&(E=a,b=E.adornedPart);var z=a instanceof lo?null:b.path,ee=a.j;if(ee.length!==0){var re=0;if(z!==null&&re<ee.length){var oe=ee[re];re++,z.arrange(oe.x-a.jg.x,oe.y-a.jg.y,oe.width,oe.height)}for(oe=0;oe<x;oe++){var de=y[oe];if(de!==z&&re<ee.length){var fe=ee[re];re++,de.arrange(fe.x-a.jg.x,fe.y-a.jg.y,fe.width,fe.height)}}}if(y=b.points,x=y.count,2<=x&&a instanceof ei)for(z=a.labelNodes;z.next();){var ye=a;ee=z.value,re=ee.segmentIndex,oe=ee.segmentFraction;var Ce=ee.alignmentFocus;if(de=ee.segmentOrientation,fe=ee.segmentOffset,isNaN(re)){var Ne=ye.ua,Oe=Mi();Ne.Qu(oe,Oe);var Ve=Je.allocAt(Oe[0],Oe[1]);Ve.add(ye.i(0)),Ne.type===Jn.j||(Ne=Ne.figures.first()),Ve.offset(-Ne.startX,-Ne.startY),Ne=Oe[2],de!==ll&&(ye=ye.computeAngle(ee,de,Ne),ee.angle=ye),ye=Ve.x;var ft=Ve.y;Je.free(Ve),ui(Oe)}else if(re<-x||re>=x)Oe=Je.alloc(),Ne=ye,ft=Oe,Ne.vg(),Ne.computeMidPoint(ft),Ne=ye.midAngle,de!==ll&&(ye=ye.computeAngle(ee,de,Ne),ee.angle=ye),ye=Oe.x,ft=Oe.y,Je.free(Oe);else{if(Ve=0,0<=re?(Oe=y.s[re],ft=re<x-1?y.s[re+1]:Oe):(Ve=x+re,Oe=y.s[Ve],ft=0<Ve?y.s[Ve-1]:Oe),Oe.Xa(ft)){0<=re?(Ne=0<re?y.s[re-1]:Oe,Ve=re<x-2?y.s[re+2]:ft):(Ne=Ve<x-1?y.s[Ve+1]:Oe,Ve=1<Ve?y.s[Ve-2]:ft);var lt=Ne.Bf(Oe),mt=ft.Bf(Ve);Ne=lt>mt+10?0<=re?Ne.ab(Oe):Oe.ab(Ne):mt>lt+10?0<=re?ft.ab(Ve):Ve.ab(ft):0<=re?Ne.ab(Ve):Ve.ab(Ne)}else Ne=0<=re?Oe.ab(ft):ft.ab(Oe);de!==ll&&(ye=ye.computeAngle(ee,de,Ne),ee.angle=ye),ye=Oe.x+(ft.x-Oe.x)*oe,ft=Oe.y+(ft.y-Oe.y)*oe}if(Ce.ys())ee.location=new Je(ye,ft);else{Ce.Mc()&&(Ce=mr),Oe=dr.alloc(),Oe.reset(),Oe.scale(ee.scale,ee.scale),Oe.rotate(ee.angle,0,0);var St=ee.naturalBounds;Ve=tn.allocAt(0,0,St.width,St.height),lt=Je.alloc(),lt.xi(Ve,Ce),Oe.Ga(lt),Ce=-lt.x,mt=-lt.y;var Ct=St.width,Rt=St.height;St=Je.alloc(),St.assign(fe);var $t=isNaN(fe.x),di=isNaN(fe.y);if($t||di){Ct=Ct/2+3,Rt=Rt/2+3;var Di=45<=Ne&&135>=Ne,Li=225<=Ne&&315>=Ne;de===ll&&(Di||Li)?(St.x=di?Ct:fe.y,St.y=$t?Rt:fe.x,Di?0<=re||isNaN(re)&&.5>oe||!$t||(St.y=-Rt):Li&&((0<=re||isNaN(re)&&.5>oe)&&$t&&(St.y=-Rt),di&&(St.x=-Ct))):($t&&(St.x=0<=re||isNaN(re)&&.5>oe?Ct:-Ct),di&&(St.y=-Rt),St.rotate(Ne))}else St.rotate(Ne);ye+=St.x,ft+=St.y,Oe.pp(Ve),Ce+=Ve.x,mt+=Ve.y,re=Je.allocAt(ye+Ce,ft+mt),ee.move(re),Je.free(re),Je.free(St),Je.free(lt),tn.free(Ve),dr.free(Oe)}}E!==null?E.Ul(!1):b.Ul(!1),b=_S(a),a.location.h(a.position.x+b.x,a.position.y+b.y),Je.free(b)}};function lS(a,y,x,b){if(ru(b)!==!1){var E=b.strokeWidth;E===0&&a instanceof lo&&a.type===Kn.Link&&a.adornedObject instanceof Nr&&(E=a.adornedObject.strokeWidth),E*=b.Ca,a instanceof ei&&a.ua!==null?(a=a.geometry.bounds,b.Ge(a.x-E/2,a.y-E/2,a.width+E,a.height+E)):a instanceof lo&&a.adornedPart.ua!==null?(a=a.adornedPart.ua.bounds,b.Ge(a.x-E/2,a.y-E/2,a.width+E,a.height+E)):b.Ge(-(E/2),-(E/2),y+E,x+E),E=b.desiredSize,E.w()||b.ua===null?b.dc.h(0,0,E.width,E.height):b.dc.assign(b.ua.bounds),za(b,!1)}}function ip(){this.xa="Base"}Wt(ip,Ya),ip.prototype.measure=function(a,y,x,b,E,z,ee){var re=a.Pb();a.graduatedBounds=[];var oe=re.margin,de=oe.right+oe.left,fe=oe.top+oe.bottom;re.measure(y,x,z,ee);var ye=re.measuredBounds,Ce=new tn(-oe.left,-oe.top,Math.max(ye.width+de,0),Math.max(ye.height+fe,0));a.graduatedBounds.push(Ce),E.assign(Ce);for(var Ne=re.geometry,Oe=re.strokeWidth,Ve=Ne.flattenedSegments,ft=Ne.flattenedLengths,lt=Ne.flattenedTotalLength,mt=Ve.length,St=0,Ct=0,Rt=Mi(),$t=0;$t<mt;$t++){var di=Ve[$t],Di=[];Ct=St=0;for(var Li=di.length,$n=0;$n<Li;$n+=2){var Nn=di[$n],Sr=di[$n+1];if($n!==0){var hr=180*Math.atan2(Sr-Ct,Nn-St)/Math.PI;0>hr&&(hr+=360),Di.push(hr)}St=Nn,Ct=Sr}Rt.push(Di)}if(a.graduatedIntervals===null){for(var po=[],Yo=a.O.s,rs=Yo.length,ls=0;ls<rs;ls++){var Qs=Yo[ls],os=[];if(po.push(os),Qs.visible){var Id=Qs.interval;if(!(0>Id)){for(var Ra=0;Ra<rs;Ra++)if(Ra!==ls){var pc=Yo[Ra];if(pc.visible&&Qs.constructor===pc.constructor){var Js=pc.interval;Js>Id&&os.push(Js)}}}}}a.graduatedIntervals=po}var Md=a.graduatedIntervals,lu=a.O.s,Fu=lu.length,Yl=0,Rl=0,lh=lt;a.graduatedMarks=[];for(var mc,vg=0;vg<Fu;vg++){var Kl=lu[vg];if(mc=[],Kl.visible&&Kl!==re){var qs=Math.abs(Kl.interval),jp=a.graduatedTickUnit;if(!(2>jp*qs*lt/a.graduatedRange&&Kl.graduatedSkip===null)){var Sf=ft[0][0],Ac=0,Ol=0;Rl=lt*Kl.graduatedStart-1e-4,lh=lt*Kl.graduatedEnd+1e-4;var Hh=jp*qs,Zl=a.graduatedTickBase;if(Zl<a.graduatedMin){var uh=(a.graduatedMin-Zl)/Hh;uh=uh%1===0?uh:Math.floor(uh+1),Zl+=uh*Hh}else Zl>a.graduatedMin+Hh&&(Zl-=Math.floor((Zl-a.graduatedMin)/Hh)*Hh);for(var V0=Md[vg],Gp=Zl,Gy=1e-6*a.graduatedMax,Kc=1;Zl<=a.graduatedMax+Gy;Kc++){e:{for(var od=V0.length,xf=0;xf<od;xf++){var ch=(Zl-a.graduatedTickBase)%(V0[xf]*a.graduatedTickUnit),yg=1e-6*a.graduatedTickUnit;if(ch<yg&&ch>-yg){var dh=!1;break e}}dh=!0}if(dh&&(Zl>a.graduatedMax&&(Zl=a.graduatedMax),Kl.graduatedSkip===null||Kl instanceof Ko&&!Kl.graduatedSkip(Zl,Kl)||Kl instanceof Nr&&!Kl.graduatedSkip(Zl,Kl))&&(Yl=(Zl-a.graduatedMin)*lt/a.graduatedRange,Yl>lt&&(Yl=lt),Rl<=Yl&&Yl<=lh)){for(var Zc=Rt[Ac][Ol],Rd=ft[Ac][Ol];Ac<ft.length;){for(;Yl>Sf&&Ol<ft[Ac].length-1;)Ol++,Zc=Rt[Ac][Ol],Rd=ft[Ac][Ol],Sf+=Rd;if(Yl<=Sf)break;Ac++,Ol=0,Zc=Rt[Ac][Ol],Rd=ft[Ac][Ol],Sf+=Rd}var Dl=Ve[Ac],Pc=Dl[2*Ol],Y0=Dl[2*Ol+1],ad=(Yl-(Sf-Rd))/Rd,Sg=new Je(Pc+(Dl[2*Ol+2]-Pc)*ad+Oe/2-Ne.bounds.x,Y0+(Dl[2*Ol+3]-Y0)*ad+Oe/2-Ne.bounds.y);Sg.scale(re.scale,re.scale);e:{var vc=Zc,jh=Rt[Ac];if(!(.5005>ad&&.4995<ad)){var Nc=vc;if(.5>ad?0<Ol?Nc=jh[Ol-1]:Bt.$(Dl[0],Dl[Dl.length-2])&&Bt.$(Dl[1],Dl[Dl.length-1])&&(Nc=jh[jh.length-1]):.5<ad&&(Ol+1<jh.length?Nc=jh[Ol+1]:Bt.$(Dl[0],Dl[Dl.length-2])&&Bt.$(Dl[1],Dl[Dl.length-1])&&(Nc=jh[0])),vc!==Nc){var bf=Math.abs(vc-Nc);if(180<bf&&(vc<Nc?vc+=360:Nc+=360,bf=Math.abs(vc-Nc)),5e-4>ad||.9995<ad){Zc=(vc+Nc)/2%360;break e}if(10>bf){var xg=1-Math.abs(.5-ad);Zc=(vc*xg+Nc*(1-xg))%360;break e}}}Zc=vc}if(Kl instanceof Ko){var ic="";Kl.graduatedFunction!==null?(ic=Kl.graduatedFunction(Zl,Kl),ic=ic!=null?ic.toString():""):ic=(+Zl.toFixed(2)).toString(),ic!==""&&mc.push({$l:Sg,angle:Zc,text:ic})}else mc.push({$l:Sg,angle:Zc})}Zl=Gp+Kc*Hh}}}a.graduatedMarks.push(mc)}ui(Rt);var xs=a.graduatedMarks;if(xs!==null)for(var Wp=b.length,fl=0;fl<Wp;fl++){var Oa=b[fl],gl=xs[fl];if(Oa.visible&&Oa!==re&&gl.length!==0){if(Oa instanceof Nr){var sd=a,Od=E,Gh=Oa.alignmentFocus;Gh.Mc()&&(Gh=Pr);var Wy=Oa.angle;Oa.Kb=0,Oa.measure(1/0,1/0,0,0),Oa.Kb=Wy;var K0=Oa.measuredBounds,bg=K0.width,Wh=K0.height,Ef=tn.allocAt(0,0,bg,Wh),Fl=Je.alloc();Fl.xi(Ef,Gh),tn.free(Ef);for(var ld=-Fl.x,yc=-Fl.y,wu=new tn,hh=gl.length,Eg=0;Eg<hh;Eg++)for(var fh=gl[Eg],Z0=fh.$l.x,wg=fh.$l.y,xa=fh.angle,rc=0;4>rc;rc++){switch(rc){case 0:Fl.h(ld,yc);break;case 1:Fl.h(ld+bg,yc);break;case 2:Fl.h(ld,yc+Wh);break;case 3:Fl.h(ld+bg,yc+Wh)}Fl.rotate(xa+Oa.angle),Fl.offset(Z0,wg),Eg===0&&rc===0?wu.h(Fl.x,Fl.y,0,0):wu.Ye(Fl),Fl.offset(-Z0,-wg),Fl.rotate(-xa-Oa.angle)}Je.free(Fl),sd.graduatedBounds!==null&&sd.graduatedBounds.push(wu),qr(Od,wu.x,wu.y,wu.width,wu.height)}else if(Oa instanceof Ko){var Bu=a,X0=E;Bu.temporaryTextBlock===null&&(Bu.temporaryTextBlock=new Ko);var Xl=Bu.temporaryTextBlock;wS(Xl,Oa);var Dd=Oa.alignmentFocus;Dd.Mc()&&(Dd=Pr);for(var _u=Oa.segmentOrientation,Cg=Oa.segmentOffset,gh=new tn,Vp=0,Tg=0,kc=0,Vh=0,ph=0,Ag=gl.length,Fd=0;Fd<Ag;Fd++){var Xc=gl[Fd];Vp=Xc.$l.x,Tg=Xc.$l.y,kc=Xc.angle,ph=Vh=Oa.angle,_u!==ll&&(ph=_u===gp||_u===n0?kc+Oa.angle:kc,Vh=ei.computeAngle(_u,ph)),Xl.Kb=Vh,Xl.text=Xc.text||"",Xl.measure(1/0,1/0,0,0);var Bd=Xl.measuredBounds,ud=Xl.naturalBounds,_d=ud.width,Yh=ud.height,Sc=dr.alloc();Sc.reset(),Sc.translate(-Bd.x,-Bd.y),Sc.scale(Xl.scale,Xl.scale),Sc.rotate(ph,_d/2,Yh/2),_u!==pp&&_u!==vp||Sc.rotate(90,_d/2,Yh/2),_u!==mp&&_u!==yp||Sc.rotate(-90,_d/2,Yh/2),_u===i0&&(45<kc&&135>kc||225<kc&&315>kc)&&Sc.rotate(-kc,_d/2,Yh/2);var wf=tn.allocAt(0,0,_d,Yh),Ud=Je.alloc();Ud.xi(wf,Dd),Sc.Ga(Ud);var Cf=-Ud.x,Vy=-Ud.y,cd=Je.alloc();cd.assign(Cg),isNaN(cd.x)&&(cd.x=_d/2+3),isNaN(cd.y)&&(cd.y=-(Yh/2+3)),cd.rotate(kc),Vp+=cd.x+Cf,Tg+=cd.y+Vy;var Kh=new tn(Vp,Tg,Bd.width,Bd.height),Yp=new tn(Bd.x,Bd.y,Bd.width,Bd.height),Yy=new tn(ud.x,ud.y,ud.width,ud.height);Xc.Sz=Vh,Xc.lineCount=Xl.lineCount,Xc.lines=[Xl.Cb,Xl.Ih,Xl.df,Xl.Le,Xl.Qc,Xl.Qb,Xl.ze],Xc.actualBounds=Kh,Xc.measuredBounds=Yp,Xc.naturalBounds=Yy,Fd===0?gh.assign(Kh):gh.ed(Kh),Je.free(cd),Je.free(Ud),tn.free(wf),dr.free(Sc)}Bu.graduatedBounds!==null&&Bu.graduatedBounds.push(gh),qr(X0,gh.x,gh.y,gh.width,gh.height)}za(Oa,!1)}}},ip.prototype.arrange=function(a,y,x){if(a.graduatedBounds!==null){var b=a.Pb(),E=a.graduatedMarks;if(E!==null){var z=a.graduatedBounds,ee=0,re=z[ee];ee++,b!==null&&b.arrange(re.x-x.x,re.y-x.y,re.width,re.height);for(var oe=y.length,de=0;de<oe;de++){var fe=y[de];re=E[de],fe.visible&&fe!==b&&re.length!==0&&(re=z[ee],ee++,fe.arrange(re.x-x.x,re.y-x.y,re.width,re.height))}a.graduatedBounds=null}}},ip.prototype.gc=function(a,y,x){var b=x.$i;x.$i=!0;var E=a.naturalBounds,z=E.width,ee=E.height;E=y instanceof Gl,y.save(),y.beginPath(),y.rect(-1,-1,z+1,ee+1),y.clip(),y.Se(),z=a.Pb(),z.gc(y,x),ee=a.Df()*x.scale,0>=ee&&(ee=1);for(var re=z.actualBounds,oe=a.O.s,de=a.graduatedMarks,fe=oe.length,ye=0;ye<fe;ye++){var Ce=oe[ye],Ne=de[ye],Oe=Ne.length;if(Ce.visible&&Ce!==z&&Ne.length!==0){if(Ce instanceof Nr){if(!(2>a.graduatedTickUnit*Ce.interval*z.geometry.flattenedTotalLength/a.graduatedRange*ee&&Ce.graduatedSkip===null)){var Ve=Ce.measuredBounds,ft=Ce.strokeWidth*Ce.scale,lt=Ce.alignmentFocus;lt.Mc()&&(lt=Pr);for(var mt=0;mt<Oe;mt++){var St=Ne[mt].$l,Ct=Ne[mt].angle,Rt=lt,$t=Ce.Ab;$t.reset(),$t.translate(St.x+re.x,St.y+re.y),$t.rotate(Ct+Ce.angle,0,0),$t.translate(-Ve.width*Rt.x+Rt.offsetX+ft/2,-Ve.height*Rt.y+Rt.offsetY+ft/2),$t.scale(Ce.scale,Ce.scale),Iu(Ce,!1),Ce.wh.set(Ce.Ab),Ce.Kk=Ce.scale,mu(Ce,!1),Ce.gc(y,x),E&&(a.svg.appendChild(Ce.svg),Ce.svg=null),Ce.Ab.reset()}}}else if(Ce instanceof Ko)for(a.temporaryTextBlock===null&&(a.temporaryTextBlock=new Ko),Ve=a.temporaryTextBlock,wS(Ve,Ce),ft=0;ft<Oe;ft++)lt=Ne[ft],lt.actualBounds&<.measuredBounds&<.naturalBounds&&(Ve.ec=lt.text||"",Ve.Kb=lt.Sz||0,Ve.Gc=lt.lineCount||0,mt=lt.lines,mt!==void 0&&(Ve.Cb=mt[0],Ve.Ih=mt[1],Ve.df=mt[2],Ve.Le=mt[3],Ve.Qc=mt[4],Ve.Qb=mt[5],Ve.ze=mt[6]),lt.naturalBounds&&(Ve.dc=lt.naturalBounds),lt.actualBounds&&(mt=lt.actualBounds,Ve.arrange(mt.x,mt.y,mt.width,mt.height)),mt=lt.actualBounds,Ve.arrange(mt.x,mt.y,mt.width,mt.height),St=lt.measuredBounds,lt=lt.naturalBounds,Ct=Ve.Ab,Ct.reset(),Ct.translate(mt.x+re.x,mt.y+re.y),Ct.translate(-St.x,-St.y),Ve.no(Ct,lt.x,lt.y,lt.width,lt.height),Iu(Ve,!1),Ve.wh.set(Ve.Ab),Ve.Kk=Ve.scale,mu(Ve,!1),Ve.Ng=Ce.part,Ve.Me=Ce.panel,Ve.gc(y,x),Ve.Me=null,Ve.Ng=null,E&&(a.svg.appendChild(Ve.svg),Ve.svg=null))}}x.$i=b,y.restore(),y.Vc(!0)};function Kn(a,y){if(Ot.call(this),this.na=null,a===void 0)this.na=Kn.Position;else if(typeof a=="string"){var x=Ju.I(a);x!==null&&(this.na=x)}else a instanceof Ya?this.na=a:a&&(this.na=Kn.Position,y=a);this.na===null&&vt("Panel type not specified or PanelLayout not loaded: "+a),this.l=this.l|4194304|(this.na===Kn.Grid?1048576:0),this.O=new Dn,this.yb=wa,this.Tm=Da,this.Uf=Er,this.$g=null,this.$e="",this.jg=new tn(NaN,NaN,NaN,NaN),this.T=this.F=null,this.xo=Ui,this.jn=Wr,this.kn=ci,this.ub=this.ra=null,this.zn=NaN,this.ge=this.Hh=null,y&&Object.assign(this,y)}Wt(Kn,Ot),Kn.prototype.cloneProtected=function(a){Ot.prototype.cloneProtected.call(this,a),a.na=this.na,a.yb=this.yb.J(),a.Tm=this.Tm.J(),a.Uf=this.Uf,a.$e=this.$e,a.jg.assign(this.jg),this.T!==null&&(a.T=this.T.copy(a)),a.xo=this.xo,a.jn=this.jn.J(),a.kn=this.kn.J(),this.ra!==null&&(a.ra=this.ra.copy()),a.ub=this.ub,a.zn=this.zn,a.Hh=this.Hh},Kn.prototype.Af=function(a){Ot.prototype.Af.call(this,a),a.O=this.O;for(var y=a.O.s,x=y.length,b=0;b<x;b++)y[b].Me=a;a.$g=null},Kn.prototype.copy=function(){var a=Ot.prototype.copy.call(this);if(a!==null){for(var y=this.O.s,x=y.length,b=0;b<x;b++){var E=y[b].copy();E.wi(a),E.Ng=null;var z=a.O,ee=z.count;if(z.Gb(ee,E),z=a.part,z!==null){z.Rh=null,E.portId!==null&&z instanceof Si&&(z.Te=!0);var re=a.diagram;re!==null&&re.undoManager.isUndoingRedoing||z.cb(la,"elements",a,null,E,null,ee)}}return a}return null},Ie=Kn.prototype,Ie.toString=function(){return"Panel("+this.type.name+")#"+gr(this)},Ie.Pn=function(a){Ot.prototype.Pn.call(this,a);for(var y=this.O.s,x=y.length,b=0;b<x;b++)y[b].Pn(a)},Ie.hh=function(a,y){if(this.na===Kn.Grid)a.yc(),this.na.gc(this,a,y);else if(this.na===Kn.Graduated)a.yc(),this.na.gc(this,a,y);else{if(this.na===Kn.Table)if(a.yc(),a instanceof Gl){var x=a.yd;a.yd=gm(a,"gojs-ts"),vv(this,a),a.nh.pop(),a.yd=x}else vv(this,a);(x=this.isClipping&&this.na===Kn.Spot)&&a.save();for(var b=this.Pb(),E=this.O.s,z=E.length,ee=0;ee<z;ee++){var re=E[ee];x&&re===b&&(a.clipInsteadOfFill=!0),re.gc(a,y),x&&re===b&&(a.clipInsteadOfFill=!1)}x&&(a.restore(),a.Vc(!0))}};function vv(a,y){y.lineCap="butt";var x=0<a.rowCount?a.rowDefs:null,b=0<a.columnCount?a.colDefs:null;x!==null&&Nm(a,y,!0,x,!0),b!==null&&Nm(a,y,!1,b,!0),x!==null&&uS(a,y,!0,x),b!==null&&uS(a,y,!1,b),x!==null&&Nm(a,y,!0,x,!1),b!==null&&Nm(a,y,!1,b,!1)}function uS(a,y,x,b){for(var E=b.length,z=a.actualBounds,ee=a.naturalBounds,re=!0,oe=0;oe<E;oe++){var de=b[oe];if(de!==void 0&&de.actual!==0)if(re)re=!1;else{if(x){if(de.position>ee.height)continue}else if(de.position>ee.width)continue;var fe=de.separatorStrokeWidth;isNaN(fe)&&(fe=x?a.defaultRowSeparatorStrokeWidth:a.defaultColumnSeparatorStrokeWidth);var ye=de.separatorStroke;if(ye===null&&(ye=x?a.defaultRowSeparatorStroke:a.defaultColumnSeparatorStroke),fe!==0&&ye!==null){ya(a,y,ye,!1,!1,ee,z),ye=!1;var Ce=de.separatorDashArray;Ce===null&&(Ce=x?a.defaultRowSeparatorDashArray:a.defaultColumnSeparatorDashArray),Ce!==null&&(ye=!0,y.js(Ce,0)),y.beginPath(),Ce=de.position+fe,x?Ce>ee.height&&(fe-=Ce-ee.height):Ce>ee.width&&(fe-=Ce-ee.width),de=de.position+fe/2,y.lineWidth=fe,fe=a.yb,x?(de+=fe.top,Ce=ee.width-fe.right,y.moveTo(fe.left,de),y.lineTo(Ce,de)):(de+=fe.left,Ce=ee.height-fe.bottom,y.moveTo(de,fe.top),y.lineTo(de,Ce)),y.stroke(),y.Se(),ye&&y.fs()}}}}function Nm(a,y,x,b,E){for(var z=b.length,ee=a.actualBounds,re=a.naturalBounds,oe=cS(a,!0),de=cS(a,!1),fe=0;fe<z;fe++){var ye=b[fe];if(ye!==void 0&&ye.background!==null&&ye.coversSeparators!==E&&ye.actual!==0){var Ce=x?ee.height:ee.width;if(!(ye.position>Ce)){var Ne=ye.Wc(),Oe=ye.separatorStrokeWidth;isNaN(Oe)&&(Oe=x?a.defaultRowSeparatorStrokeWidth:a.defaultColumnSeparatorStrokeWidth);var Ve=ye.separatorStroke;Ve===null&&(Ve=x?a.defaultRowSeparatorStroke:a.defaultColumnSeparatorStroke),(Ve===null||ye.index===(x?oe:de))&&(Oe=0),Ne-=Oe,Oe=ye.position+Oe,Ne+=ye.actual,Oe+Ne>Ce&&(Ne=Ce-Oe),0>=Ne||(Ce=a.yb,ya(a,y,ye.background,!0,!1,re,ee),x?y.fillRect(Ce.left,Oe+Ce.top,ee.width-(Ce.left+Ce.right),Ne):y.fillRect(Oe+Ce.left,Ce.top,Ne,ee.height-(Ce.top+Ce.bottom)))}}}}function cS(a,y){for(var x=y?a.rowCount:a.columnCount,b=0;b<x;b++){var E=y?a.rowDefs[b]:a.colDefs[b];if(E!==void 0)return E.index}return 0}function yv(a){return a==="LineV"||a==="BarV"}Ie.lv=function(){for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].lv();this.Uc=!0},Ie.kk=function(a,y,x){if(!Ot.prototype.kk.call(this,a,y,x))return!1;if(this.type===Kn.Table)x=this.svg.getElementsByClassName("gojs-ts"),x=x.length!==0?x[0]:null,x!==null&&(x.innerHTML=""),a.yd=x,vv(this,a),a.yd=null;else if(this.na===Kn.Grid||this.na===Kn.Graduated)return this.svg.innerHTML="",this.svg.remove(),!1;x=this.O.s;for(var b=x.length,E=0;E<b;E++)x[E].gc(a,y);return!0},Ie.nk=function(){return!0},Ie.$o=function(a,y,x,b){if(!this.isClipping)if(this.Dd()&&a.bk!==null){a=a.bk,y=this.O.s;for(var E=0,z=0,ee=0;ee<y.length;ee++)if(y[ee].Ed()){var re=y[ee].actualBounds;E=ee===0?re.x:Math.min(re.x,E),z=ee===0?re.y:Math.min(re.y,z)}b.setAttributeNS(null,"clip-path","path('M "+(a.x-x.x-E)+","+(a.y-x.y-z)+" l "+a.width+" 0 l 0 "+a.height+" l -"+a.width+" 0 z')")}else Ot.prototype.$o.call(this,a,y,x,b)},Ie.Sj=function(a,y,x,b,E){var z=this.se(),ee=this.transform,re=1/(ee.m11*ee.m22-ee.m12*ee.m21),oe=ee.m22*re,de=-ee.m12*re,fe=-ee.m21*re,ye=ee.m11*re,Ce=re*(ee.m21*ee.dy-ee.m22*ee.dx),Ne=re*(ee.m12*ee.dx-ee.m11*ee.dy);if(this.areaBackground!==null)return ee=this.actualBounds,Bt.Ff(ee.left,ee.top,ee.right,ee.bottom,a,y,x,b,E);if(this.background!==null)return z=a*oe+y*fe+Ce,re=a*de+y*ye+Ne,a=x*oe+b*fe+Ce,oe=x*de+b*ye+Ne,E.h(0,0),x=this.naturalBounds,z=Bt.Ff(0,0,x.width,x.height,z,re,a,oe,E),E.transform(ee),z;z||(oe=1,fe=de=0,ye=1,Ne=Ce=0),re=a*oe+y*fe+Ce,a=a*de+y*ye+Ne,oe=x*oe+b*fe+Ce,x=x*de+b*ye+Ne,E.h(oe,x),b=(oe-re)*(oe-re)+(x-a)*(x-a),de=!1,ye=this.O.s,Ne=ye.length,fe=Je.alloc(),Ce=null,y=1/0;var Oe=null,Ve=this.isClipping&&this.na===Kn.Spot;Ve&&(Oe=Je.alloc(),Ce=this.Pb(),(de=Ce.Sj(re,a,oe,x,Oe))&&(y=(re-Oe.x)*(re-Oe.x)+(a-Oe.y)*(a-Oe.y)));for(var ft=0;ft<Ne;ft++){var lt=ye[ft];lt.visible&<!==Ce&<.Sj(re,a,oe,x,fe)&&(de=!0,lt=(re-fe.x)*(re-fe.x)+(a-fe.y)*(a-fe.y),lt<b&&(b=lt,E.set(fe)))}return Ve&&(y>b&&E.set(Oe),Je.free(Oe)),Je.free(fe),z&&E.transform(ee),de},Ie.Gj=function(){for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Gj();Ot.prototype.Gj.call(this)},Ie.v=function(a){if(!ru(this)){Ot.prototype.v.call(this,a),a=null,(this.na===Kn.Auto||this.na===Kn.Link)&&(a=this.Pb());for(var y=this.O.s,x=y.length,b=0;b<x;b++){var E=y[b];if((E===a||E.isPanelMain)&&E.v(!0),!E.desiredSize.w()){var z=El(E,!1);(E instanceof sl||E instanceof Kn||E instanceof Ko||z!==Mn)&&E.v(!0)}}}},Ie.Uj=function(){if(!ru(this)){za(this,!0),Fc(this,!0);for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Uj()}},Ie.Uk=function(){if(!(this.l&2048)){Iu(this,!0),mu(this,!0);for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Wu()}},Ie.Wu=function(){mu(this,!0);for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Wu()},Ie.Wl=function(a,y,x,b){var E=this.jg;E.h(0,0,0,0);var z=this.desiredSize,ee=this.minSize;x===void 0&&(x=ee.width,b=ee.height),x=Math.max(x,ee.width),b=Math.max(b,ee.height);var re=this.maxSize;isNaN(z.width)||(a=Math.min(z.width,re.width)),isNaN(z.height)||(y=Math.min(z.height,re.height)),a=Math.max(x,a),y=Math.max(b,y);var oe=this.yb;a=Math.max(a-oe.left-oe.right,0),y=Math.max(y-oe.top-oe.bottom,0);var de=this.O.s;de.length!==0&&this.na.measure(this,a,y,de,E,x,b),a=E.width+oe.left+oe.right,oe=E.height+oe.top+oe.bottom,isFinite(z.width)&&(a=z.width),isFinite(z.height)&&(oe=z.height),a=Math.min(re.width,a),oe=Math.min(re.height,oe),a=Math.max(ee.width,a),oe=Math.max(ee.height,oe),a=Math.max(x,a),oe=Math.max(b,oe),Xr(E,a,oe),Xr(this.naturalBounds,a,oe),this.Ge(0,0,a,oe)},Ie.Pb=function(){if(this.$g===null){var a=this.O.s,y=a.length;if(y===0)return null;for(var x=0;x<y;x++){var b=a[x];if(b.isPanelMain===!0)return this.$g=b}this.$g=a[0]}return this.$g};function nd(a){return a.part!==null?a.part.locationObject:null}Ie.eh=function(a,y,x,b){var E=this.O.s;if(this.actualBounds.h(a,y,x,b),E.length!==0){if(!this.desiredSize.w()){a=El(this,!0);var z=this.measuredBounds;y=z.width,z=z.height;var ee=this.Kg,re=ee.left+ee.right;switch(ee=ee.top+ee.bottom,y===x&&z===b&&(a=Mn),a){case Mn:(y>x||z>b)&&(this.v(),this.measure(y>x?x:y,z>b?b:z,0,0));break;case Wn:this.v(!0),this.measure(x+re,b+ee,0,0);break;case ji:this.v(!0),this.measure(x+re,z+ee,0,0);break;case nr:this.v(!0),this.measure(y+re,b+ee,0,0)}}this.na.arrange(this,E,this.jg)}},Ie.gh=function(a){var y=this.naturalBounds,x=nd(this);if(Oo(0,0,y.width,y.height,a.x,a.y)){y=this.O.s;for(var b=y.length,E=Je.allocAt(0,0);b--;){var z=y[b];if((z.visible||z===x)&&(xi(E.set(a),z.transform),z.ca(E)))return Je.free(E),!0}return Je.free(E),!(this.Ma===null&&this.areaBackground===null)}return!1},Ie.ks=function(a){if(this.bindingId===a)return this;for(var y=this.O.s,x=y.length,b=0;b<x;b++){var E=y[b].ks(a);if(E!==null)return E}return null},Ie.qm=function(a,y){if(y(this,a),a instanceof Kn){a=a.O.s;for(var x=a.length,b=0;b<x;b++)this.qm(a[b],y)}};function Rh(a,y){dS(a,a,y)}function dS(a,y,x){x(y),y=y.O.s;for(var b=y.length,E=0;E<b;E++){var z=y[E];z instanceof Kn&&dS(a,z,x)}}function Px(a,y){hS(a,a,y)}function hS(a,y,x){if(x(y),y instanceof Kn){y=y.O.s;for(var b=y.length,E=0;E<b;E++)hS(a,y[E],x)}}Ie.Nl=function(a){return fS(this,this,a)};function fS(a,y,x){if(x(y))return y;if(y instanceof Kn){y=y.O.s;for(var b=y.length,E=0;E<b;E++){var z=fS(a,y[E],x);if(z!==null)return z}}return null}Ie.fb=function(a){if(this.name===a)return this;var y=this.O.s,x=y.length;this.Hh===null&&this.itemTemplateMap===null||(x=rp(this));for(var b=0;b<x;b++){var E=y[b];if(E instanceof Kn){var z=E.fb(a);if(z!==null)return z}if(E.name===a)return E}return null};function gS(a){a=a.O.s;for(var y=a.length,x=0,b=0;b<y;b++){var E=a[b];E instanceof Kn?x=Math.max(x,gS(E)):E instanceof Nr&&(x=Math.max(x,E.ig/2*E.strokeMiterLimit*E.Df()))}return x}Ie.se=function(){return!(this.type===Kn.TableRow||this.type===Kn.TableColumn)};function bd(a){return a.type===Kn.TableRow||a.type===Kn.TableColumn}Ie.ic=function(a,y,x){if(this.pickable===!1||(y===void 0&&(y=null),x===void 0&&(x=null),ol(this)))return null;var b=this.naturalBounds,E=1/this.Df(),z=this.se(),ee=z?a:xi(Je.allocAt(a.x,a.y),this.transform),re=this.diagram,oe=10,de=5;if(re!==null&&(oe=re.Ql("extraTouchArea"),de=oe/2),Oo(-(de*E),-(de*E),b.width+oe*E,b.height+oe*E,ee.x,ee.y)){if(!this.isAtomic){E=this.O.s;var fe=E.length;if(re=Je.alloc(),de=(oe=this.isClipping&&this.na===Kn.Spot)?this.Pb():null,oe&&(de.se()?xi(re.set(a),de.transform):re.set(a),!de.ca(re)))return Je.free(re),z||Je.free(ee),null;for(var ye=nd(this);fe--;){var Ce=E[fe];if((Ce.visible||Ce===ye)&&(Ce.se()?xi(re.set(a),Ce.transform):re.set(a),!oe||Ce!==de)){var Ne=null;if(Ce instanceof Kn?Ne=Ce.ic(re,y,x):Ce.pickable===!0&&Ce.ca(re)&&(Ne=Ce),Ne!==null&&(y!==null&&(Ne=y(Ne)),Ne!==null&&(x===null||x(Ne))))return Je.free(re),z||Je.free(ee),Ne}}Je.free(re)}return this.background===null&&this.areaBackground===null?(z||Je.free(ee),null):(a=Oo(0,0,b.width,b.height,ee.x,ee.y)?this:null,z||Je.free(ee),a)}return z||Je.free(ee),null},Ie.ji=function(a,y,x,b){if(this.pickable===!1)return!1;y===void 0&&(y=null),x===void 0&&(x=null);var E=this.naturalBounds,z=this.se(),ee=z?a:xi(Je.allocAt(a.x,a.y),this.transform);if(E=Oo(0,0,E.width,E.height,ee.x,ee.y),bd(this)||E){if(!this.isAtomic){for(var re=this.O.s,oe=re.length,de=Je.alloc(),fe=nd(this);oe--;){var ye=re[oe];if(ye.visible||ye===fe){ye.se()?xi(de.set(a),ye.transform):de.set(a);var Ce=ye;ye=ye instanceof Kn?ye:null,(ye!==null?ye.ji(de,y,x,b):Ce.ca(de))&&Ce.pickable!==!1&&(y!==null&&(Ce=y(Ce)),Ce===null||x!==null&&!x(Ce)||b.add(Ce))}}Je.free(de)}return z||Je.free(ee),E&&(this.background!==null||this.areaBackground!==null)}return z||Je.free(ee),!1},Ie.Cf=function(a,y,x,b,E,z){if(this.pickable===!1)return!1;y===void 0&&(y=null),x===void 0&&(x=null);var ee=z;if(z===void 0&&(ee=dr.alloc(),ee.reset()),ee.multiply(this.transform),this.fh(a,ee))return Sv(this,y,x,E),z===void 0&&dr.free(ee),!0;if(this.Yc(a,ee)){if(!this.isAtomic)for(var re=nd(this),oe=this.O.s,de=oe.length;de--;){var fe=oe[de];if(fe.visible||fe===re){var ye=fe.actualBounds,Ce=this.naturalBounds;ye.x>Ce.width||ye.y>Ce.height||0>ye.x+ye.width||0>ye.y+ye.height||(ye=fe,fe=fe instanceof Kn?fe:null,Ce=dr.alloc(),Ce.set(ee),(fe!==null?fe.Cf(a,y,x,b,E,Ce):is(ye,a,b,Ce))&&(y!==null&&(ye=y(ye)),ye===null||x!==null&&!x(ye)||E.add(ye)),dr.free(Ce))}}return z===void 0&&dr.free(ee),b}return z===void 0&&dr.free(ee),!1};function Sv(a,y,x,b){for(var E=a.O.s,z=E.length;z--;){var ee=E[z];if(ee.visible){var re=ee.actualBounds,oe=a.naturalBounds;re.x>oe.width||re.y>oe.height||0>re.x+re.width||0>re.y+re.height||(ee instanceof Kn&&Sv(ee,y,x,b),y!==null&&(ee=y(ee)),ee===null||x!==null&&!x(ee)||b.add(ee))}}}Ie.og=function(a,y,x,b,E,z){if(this.pickable===!1)return!1;x===void 0&&(x=null),b===void 0&&(b=null);var ee=this.naturalBounds,re=this.se(),oe=re?a:xi(Je.allocAt(a.x,a.y),this.transform),de=re?y:xi(Je.allocAt(y.x,y.y),this.transform),fe=oe.Bf(de),ye=0<oe.x&&oe.x<ee.width&&0<oe.y&&oe.y<ee.height||bi(oe.x,oe.y,0,0,0,ee.height)<=fe||bi(oe.x,oe.y,0,ee.height,ee.width,ee.height)<=fe||bi(oe.x,oe.y,ee.width,ee.height,ee.width,0)<=fe||bi(oe.x,oe.y,ee.width,0,0,0)<=fe;if(ee=oe.zd(0,0)<=fe&&oe.zd(0,ee.height)<=fe&&oe.zd(ee.width,0)<=fe&&oe.zd(ee.width,ee.height)<=fe,re||(Je.free(oe),Je.free(de)),ye){if(!this.isAtomic){oe=Je.alloc(),de=Je.alloc(),fe=nd(this);for(var Ce=this.O.s,Ne=Ce.length;Ne--;){var Oe=Ce[Ne];if(Oe.visible||Oe===fe){var Ve=Oe.actualBounds,ft=this.naturalBounds;(!re||!(Ve.x>ft.width||Ve.y>ft.height||0>Ve.x+Ve.width||0>Ve.y+Ve.height))&&(Oe.se()?(Ve=Oe.transform,xi(oe.set(a),Ve),xi(de.set(y),Ve)):(oe.set(a),de.set(y)),Ve=Oe,Oe=Oe instanceof Kn?Oe:null,(Oe!==null?Oe.og(oe,de,x,b,E,z):Ve.tx(oe,de,E))&&(x!==null&&(Ve=x(Ve)),Ve===null||b!==null&&!b(Ve)||z.add(Ve)))}}Je.free(oe),Je.free(de)}return E?ye:ee}return!1};function xv(a){var y=null;return a instanceof Nr&&(y=a.spot1,y===Da&&(y=null),a=a.geometry,a!==null&&y===null&&(y=a.spot1)),y===null&&(y=Qi),y}function bv(a){var y=null;return a instanceof Nr&&(y=a.spot2,y===Da&&(y=null),a=a.geometry,a!==null&&y===null&&(y=a.spot2)),y===null&&(y=ho),y}Ie.add=function(a){for(var y=[],x=0;x<arguments.length;++x)y[x]=arguments[x];for(x=0;x<y.length;x++)this.Gb(this.O.count,y[x]);return this},Ie.M=function(a){return this.O.M(a)},Ie.Gb=function(a,y){y instanceof Zi&&vt("Cannot add a Part to a Panel: "+y+"; use a Panel instead"),(this===y||this.rg(y))&&(this===y&&vt("Cannot make a Panel contain itself: "+this.toString()),vt("Cannot make a Panel indirectly contain itself: "+this.toString()+" already contains "+y.toString()));var x=y.panel;if(x!==null&&x!==this&&vt("Cannot add a GraphObject that already belongs to another Panel to this Panel: "+y.toString()+", already contained by "+x.toString()+", cannot be shared by this Panel: "+this.toString()),this.na!==Kn.Grid||y instanceof Nr||vt("Can only add Shapes to a Grid Panel, not: "+y),this.na!==Kn.Graduated||y instanceof Nr||y instanceof Ko||vt("Can only add Shapes or TextBlocks to a Graduated Panel, not: "+y),y.wi(this),y.Ng=null,this.itemArray!==null){var b=y.data;b!==null&&typeof b=="object"&&(this.ge===null&&(this.ge=new an),this.ge.add(b,y))}var E=this.O;if(b=-1,x===this){for(var z=-1,ee=this.O.s,re=ee.length,oe=0;oe<re;oe++)if(ee[oe]===y){z=oe;break}if(z!==-1){if(z===a||z+1>=E.count&&a>=E.count)return;E.mb(z),b=z}else vt("element "+y.toString()+" has panel "+x.toString()+" but is not contained by it.")}(0>a||a>E.count)&&(a=E.count),E.Gb(a,y),(a===0||y.isPanelMain)&&(this.$g=null),ru(this)||this.v(),y.v(!1),y.portId!==null?this.Te=!0:y instanceof Kn&&y.Te===!0&&(this.Te=!0),this.graduatedIntervals=null,this.If()||Lm(this,y,!1),x=this.part,x!==null&&(x.Rh=null,x.ag=NaN,this.Te&&x instanceof Si&&(x.Te=!0),x.Te&&x instanceof Si&&(x.wc=null),E=this.diagram,E!==null&&E.undoManager.isUndoingRedoing||(b!==-1&&x.cb(ga,"elements",this,y,null,b,null),x.cb(la,"elements",this,null,y,null,a)))};function Ev(a,y){a.l=y?a.l|16777216:a.l&-16777217}Ie.remove=function(a){for(var y=this.O.s,x=y.length,b=-1,E=0;E<x;E++)if(y[E]===a){b=E;break}b!==-1&&this.pc(b,!0)},Ie.mb=function(a){0<=a&&this.pc(a,!0)},Ie.pc=function(a,y){var x=this.O,b=x.M(a);if(b.Ng=null,b.wi(null),this.ge!==null){var E=b.data;typeof E=="object"&&this.ge.remove(E)}x.mb(a),za(this,!1),this.v(),this.$g===b&&(this.$g=null),this.graduatedIntervals=null;var z=this.part;z!==null&&(z.Rh=null,z.ag=NaN,z.Wb(),z instanceof Si&&(b instanceof Kn?b.qm(b,function(ee,re){Vv(z,re,y)}):Vv(z,b,y)),x=this.diagram,x!==null&&x.undoManager.isUndoingRedoing||z.cb(ga,"elements",this,b,null,a,null))},Ie.Fb=function(a){0>a&&ri(a,">= 0",Kn,"getRowDefinition:idx"),a=Math.round(a);var y=this.rowDefs;if(y[a]===void 0){var x=new Ha;x.wi(this),x.isRow=!0,x.index=a,y[a]=x,this.cb(la,"rowdefs",this,null,x,null,a)}return y[a]},Ie.oA=function(a){if(0>a&&ri(a,">= 0",Kn,"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(ga,"rowdefs",this,x,null,a,null),this.v()}}};function pS(a,y,x){var b=a.rowDefs;if(!(0>y)){if(b[y]=x instanceof Ha?x:void 0,!x)for(y=b.length-1;0<=y&&b[y--]===void 0;)b.length--;a.v()}}Ie.Eb=function(a){0>a&&ri(a,">= 0",Kn,"getColumnDefinition:idx"),a=Math.round(a);var y=this.colDefs;if(y[a]===void 0){var x=new Ha;x.wi(this),x.isRow=!1,x.index=a,y[a]=x,this.cb(la,"coldefs",this,null,x,null,a)}return y[a]},Ie.jA=function(a){if(0>a&&ri(a,">= 0",Kn,"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(ga,"coldefs",this,x,null,a,null),this.v()}}};function mS(a,y,x){var b=a.colDefs;if(!(0>y)){if(b[y]=x instanceof Ha?x:void 0,!x)for(y=b.length-1;0<=y&&b[y--]===void 0;)b.length--;a.v()}}Ie.Gy=function(a){var y=null;return a.isRow?y=this.Fb(a.index):a.isRow||(y=this.Eb(a.index)),y&&Im(y,a),this},Ie.Hy=function(a,y){return(a=this.Fb(a))&&Im(a,new Ha(y)),this},Ie.By=function(a,y){return(a=this.Eb(a))&&Im(a,new Ha(y)),this},Ie.nz=function(a){if(0>a||this.type!==Kn.Table||this.rowCount===0)return-1;for(var y=0,x=this.rowDefs,b=x.length,E=this.topIndex;E<b;E++){var z=x[E];if(z!==void 0&&(y+=z.total,a<y))break}return E},Ie.fz=function(a){if(0>a||this.type!==Kn.Table||this.columnCount===0)return-1;for(var y=0,x=this.colDefs,b=x.length,E=this.leftIndex;E<b;E++){var z=x[E];if(z!==void 0&&(y+=z.total,a<y))break}return E},Ie.Fz=function(a,y){if(y===void 0&&(y=new Je(NaN,NaN)),this.type!==Kn.Graduated)return y.h(NaN,NaN),y;a=Math.min(Math.max(a,this.graduatedMin),this.graduatedMax);var x=this.Pb();return x.geometry.Pu((a-this.graduatedMin)/this.graduatedRange,y),x.transform.Ga(y)},Ie.Gz=function(a){if(this.type!==Kn.Graduated)return NaN;var y=this.Pb();return y.transform.Cd(a),y.geometry.xx(a)*this.graduatedRange+this.graduatedMin};function vS(a){return a=a.allBindings,a!==null&&a._isFrozen}function Ru(a){var y=a.allBindings;if(y===null)a.data!==null&&vt("Template cannot have .data be non-null: "+a),a.allBindings=y=new Dn;else if(y._isFrozen)return;var x=new Dn;Ev(a,!1),a.qm(a,function(de,fe){fe.th();var ye=fe.localBindings;if(ye!==null)for(rf(fe,!1),ye=ye.iterator;ye.next();){var Ce=ye.value;Ce.mode===Ap&&rf(fe,!0);var Ne=Ce.sourceName;Ne!==null&&(Ne==="/"&&Ev(de,!0),Ne=M1(Ce,de,fe),Ne!==null&&(x.add(Ne),Ne.srcBindings===null&&(Ne.srcBindings=new Dn),Ne.srcBindings.add(Ce))),y.add(Ce)}if(fe instanceof Kn&&fe.type===Kn.Table){if(0<fe.rowCount){for(de=fe.rowDefs,ye=de.length,Ce=0;Ce<ye;Ce++)if(Ne=de[Ce],Ne!==void 0&&Ne.be!==null)for(var Oe=Ne.be.iterator;Oe.next();){var Ve=Oe.value;Ve.xd=Ne,Ve.to=2,Ve.wl=Ne.index,y.add(Ve)}}if(0<fe.columnCount){for(fe=fe.colDefs,de=fe.length,ye=0;ye<de;ye++)if(Ce=fe[ye],Ce!==void 0&&Ce.be!==null)for(Ne=Ce.be.iterator;Ne.next();)Oe=Ne.value,Oe.xd=Ce,Oe.to=1,Oe.wl=Ce.index,y.add(Oe)}}});for(var b=x.iterator;b.next();){var E=b.value;if(E.srcBindings!==null){rf(E,!0);for(var z=E.srcBindings.iterator;z.next();){var ee=z.value;E.localBindings===null&&(E.localBindings=new Dn),E.localBindings.add(ee)}}E.srcBindings=null}for(b=y.iterator;b.next();)if(E=b.value,z=E.xd,z!==null){E.xd=null;var re=E.targetProperty,oe=re.indexOf(".");0<oe&&z instanceof Kn&&(ee=re.substring(0,oe),re=re.substr(oe+1),oe=z.fb(ee),oe!==null?(z=oe,E.targetProperty=re):ki('Warning: unable to find GraphObject named "'+ee+'" for Binding: '+E.toString())),z instanceof Ha?(ee=gr(z.panel),E.Ai=ee===void 0?-1:ee,z.panel.bindingId=E.Ai):z instanceof Ot?(ee=gr(z),E.Ai=ee===void 0?-1:ee,z.bindingId=E.Ai):vt("Unknown type of binding target: "+z)}y.freeze(),a instanceof Zi&&a.Zc()&&a.Va()}Ie.Uy=function(a){a===void 0&&(a=!1);var y=this.copy();return Px(y,function(x){x instanceof Kn&&(x.allBindings=null,x.ub=null);var b=x.localBindings;b!==null&&(x.localBindings=null,b.each(function(E){x.bind(E.copy())})),b=x.animationTriggers,b!==null&&(x.animationTriggers=null,b.each(function(E){x.Jv(E.value.copy())}))}),a&&Ru(y),y},Ie.La=function(a){var y=this.allBindings;if(y!==null)for(a===void 0&&(a=""),y=y.iterator;y.next();){var x=y.value,b=x.sourceProperty;if((a===""||b===""||b===a)&&(b=x.targetProperty,x.converter!==null||b!=="")){b=this.data;var E=x.sourceName;if(E!==null){if(E==="")b=this;else if(E==="/")b=this;else if(E===".")b=this;else if(E==="..")b=this;else if(b=this.fb(E),b===null)continue}else if(x.isToModel)if(b=this.diagram,b!==null)b=b.model.modelData;else continue;var z=this,ee=x.Ai;if(ee!==-1){if(z=this.ks(ee),z===null)continue}else x.xd!==null&&(z=x.xd);if(E==="/"?b=z.part:E==="."?b=z:E===".."&&(b=z.panel),E=x.to,E!==0){if(!(z instanceof Kn))continue;E===1?z=z.Eb(x.wl):E===2&&(z=z.Fb(x.wl))}z!==void 0&&x.Mv(z,b)}}},Ie.sx=function(a){return a==null||this.ge===null?null:this.ge.I(a)};function Nx(a,y){a=a.O.s;for(var x=a.length,b=y.length,E=0,z=null;E<x&&(z=a[E],!(z instanceof Kn&&z.data!==null));)E++,z=a[E];if(x-E!==b)return!0;if(z===null)return 0<b;for(var ee=0;E<x&&ee<b;){if(z=a[E],!(z instanceof Kn)||z.data!==y[ee])return!0;E++,ee++}return!1}function rp(a){if(a.type===Kn.Spot||a.type===Kn.Auto)return Math.min(a.O.length,1);if(a.type===Kn.Link){a=a.O;for(var y=a.length,x=0;x<y;x++){var b=a.M(x);if(!(b instanceof Nr&&b.isPanelMain))break}return x}return a.type===Kn.Table&&0<a.O.length&&(a=a.O.M(0),a.isPanelMain&&a instanceof Kn&&bd(a))?1:0}Ie.mv=function(){for(var a=rp(this);this.O.length>a;)this.pc(this.O.length-1,!1);yS(this,this.itemArray)};function yS(a,y){var x=rp(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;b<x;b++)km(a,y[b],b,!0)}else{b=x;for(var E=0;E<y.length;E++,b++){var z=y[E],ee=b<a.O.length?a.O.M(b):null;if(ee instanceof Kn){if(ee.data!==z){var re=Cv(a,ee.data),oe=Cv(a,z),de=oe!==re;de||(re=Tv(a,re),de=Tv(a,oe)!==re),de?(a.pc(b,!1),km(a,z,E,!1)):ee.data=z}}else km(a,z,E,!1)}for(;b<a.O.length;)a.pc(b,!1);a.$g=null,wv(a,x,0),ru(a)||a.v(),a.graduatedIntervals=null,a.If()||Lm(a,a,!1),y=a.part,y!==null&&(y.Rh=null,y.ag=NaN,a.Te&&y instanceof Si&&(y.Te=!0),y.Te&&y instanceof Si&&(y.wc=null))}}function km(a,y,x,b){if(!(y==null||0>x)){var E=Cv(a,y);if(E=Tv(a,E),E!==null){if(Ru(E),E=E.copy(),E.l&16777216){var z=a.ih();z!==null&&Ev(z,!0)}typeof y=="object"&&(a.ge===null&&(a.ge=new an),a.ge.add(y,E)),z=x+rp(a),a.Gb(z,E),b&&(E.ub=y,wv(a,z,x),E.ub=null),E.data=y}}}function wv(a,y,x){for(a=a.O;y<a.length;){var b=a.M(y);if(b instanceof Kn){var E=y,z=x;b.type===Kn.TableRow?b.row=E:b.type===Kn.TableColumn&&(b.column=E),b.itemIndex=z}y++,x++}}function Cv(a,y){if(y===null)return"";if(a=a.itemCategoryProperty,typeof a=="function")a=a(y);else if(typeof a=="string"&&typeof y=="object"){if(a==="")return"";a=Na(y,a)}else return"";if(a===void 0)return"";if(typeof a=="string")return a;vt("Panel.getCategoryForItemData found a non-string category for "+y+": "+a)}function Tv(a,y){var x=a.itemTemplateMap,b=null;return x!==null&&(b=x.I(y)),b===null&&(x!==null&&(b=x.I("")),b===null&&(SS||(SS=!0,ki('No item template Panel found for category "'+y+'" on '+a),ki(" Using default item template."),a=new Kn,y=new Ko,y.bind(new Ma("text","",Ki)),a.add(y),xS=a),b=xS)),b}function Lm(a,y,x){var b=y.enabledChanged;if(b!==null&&b(y,x),y instanceof Kn){y=y.O.s,b=y.length;for(var E=0;E<b;E++){var z=y[E];x&&z instanceof Kn&&!z.isEnabled||Lm(a,z,x)}}}function Cc(a,y){y.name=a,Ju.add(a,y)}jt.Object.defineProperties(Kn.prototype,{type:{get:function(){return this.na},set:function(a){var y=this.na;y!==a&&(this.na=a,this.isAtomic=this.na===Kn.Grid,this.v(),this.g("type",y,a))}},elements:{get:function(){return this.O.iterator}},naturalBounds:{get:function(){return this.dc}},padding:{get:function(){return this.yb},set:function(a){typeof a=="number"?(0>a&&ri(a,">= 0",Kn,"padding"),a=new pr(a)):(0>a.left&&ri(a.left,">= 0",Kn,"padding:value.left"),0>a.right&&ri(a.right,">= 0",Kn,"padding:value.right"),0>a.top&&ri(a.top,">= 0",Kn,"padding:value.top"),0>a.bottom&&ri(a.bottom,">= 0",Kn,"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:wa},set:function(a){typeof a=="number"&&(a=new pr(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 Co)&&(a instanceof Co&&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,b=0,E=0;E<x;E++){var z=a[E];typeof z=="number"&&0<=z&&isFinite(z)||vt("defaultRowSeparatorDashArray value "+z+" at index "+E+" must be a positive number or zero."),b+=z}if(b===0){if(y===null)return;a=null}}this.T===null&&(this.T=new Su),this.T.V=a,this.N(),this.g("defaultRowSeparatorDashArray",y,a)}}},defaultColumnSeparatorStroke:{get:function(){return this.T!==null?this.T.u:null},set:function(a){var y=this.defaultColumnSeparatorStroke;y!==a&&(a===null||typeof a=="string"||a instanceof Co)&&(a instanceof Co&&a.freeze(),this.T===null&&(this.T=new Su),this.T.u=a,this.N(),this.g("defaultColumnSeparatorStroke",y,a))}},defaultColumnSeparatorStrokeWidth:{get:function(){return this.T!==null?this.T.F:1},set:function(a){var y=this.defaultColumnSeparatorStrokeWidth;y!==a&&isFinite(a)&&0<=a&&(this.T===null&&(this.T=new Su),this.T.F=a,this.v(),this.g("defaultColumnSeparatorStrokeWidth",y,a))}},defaultColumnSeparatorDashArray:{get:function(){return this.T!==null?this.T.o:null},set:function(a){var y=this.defaultColumnSeparatorDashArray;if(y!==a){if(a!==null){for(var x=a.length,b=0,E=0;E<x;E++){var z=a[E];typeof z=="number"&&0<=z&&isFinite(z)||vt("defaultColumnSeparatorDashArray value "+z+" at index "+E+" must be a positive number or zero."),b+=z}if(b===0){if(y===null)return;a=null}}this.T===null&&(this.T=new Su),this.T.o=a,this.N(),this.g("defaultColumnSeparatorDashArray",y,a)}}},inRowsCols:{get:function(){return this.T!==null?this.T.nb:null},set:function(a){this.T===null&&(this.T=new Su),this.T.nb=a}},viewboxStretch:{get:function(){return this.xo},set:function(a){var y=this.xo;y!==a&&(this.xo=a,this.v(),this.g("viewboxStretch",y,a))}},gridCellSize:{get:function(){return this.jn},set:function(a){var y=this.jn;if(!y.D(a)){a.w()&&a.width!==0&&a.height!==0||vt("Invalid Panel.gridCellSize: "+a),this.jn=a.J();var x=this.diagram;x!==null&&this===x.grid&&bc(x),this.N(),this.g("gridCellSize",y,a)}}},gridOrigin:{get:function(){return this.kn},set:function(a){var y=this.kn;if(!y.D(a)){a.w()||vt("Invalid Panel.gridOrigin: "+a),this.kn=a.J();var x=this.diagram;x!==null&&this===x.grid&&bc(x),this.N(),this.g("gridOrigin",y,a)}}},graduatedMin:{get:function(){return this.ra!==null?this.ra.lq:0},set:function(a){var y=this.graduatedMin;y!==a&&(this.ra===null&&(this.ra=new id),this.ra.lq=a,this.v(),this.g("graduatedMin",y,a),Ts(this)&&(a=this.part,a!==null&&ea(this,a,"graduatedRange")))}},graduatedMax:{get:function(){return this.ra!==null?this.ra.F:100},set:function(a){var y=this.graduatedMax;y!==a&&(this.ra===null&&(this.ra=new id),this.ra.F=a,this.v(),this.g("graduatedMax",y,a),Ts(this)&&(a=this.part,a!==null&&ea(this,a,"graduatedRange")))}},graduatedRange:{get:function(){return this.graduatedMax-this.graduatedMin}},graduatedTickUnit:{get:function(){return this.ra!==null?this.ra.ia:10},set:function(a){var y=this.graduatedTickUnit;y!==a&&0<a&&(this.ra===null&&(this.ra=new id),this.ra.ia=a,this.v(),this.g("graduatedTickUnit",y,a))}},graduatedTickBase:{get:function(){return this.ra!==null?this.ra.V:0},set:function(a){var y=this.graduatedTickBase;y!==a&&(this.ra===null&&(this.ra=new id),this.ra.V=a,this.v(),this.g("graduatedTickBase",y,a))}},graduatedMarks:{get:function(){return this.ra!==null?this.ra.u:null},set:function(a){this.ra!==null?this.ra.u=a:a!==null&&(this.ra=new id,this.ra.u=a)}},graduatedBounds:{get:function(){return this.ra!==null?this.ra.j:null},set:function(a){this.ra!==null?this.ra.j=a:a!==null&&(this.ra=new id,this.ra.j=a)}},graduatedIntervals:{get:function(){return this.ra!==null?this.ra.o:null},set:function(a){this.ra!==null?this.ra.o=a:a!==null&&(this.ra=new id,this.ra.o=a)}},temporaryTextBlock:{get:function(){return this.ra!==null?this.ra.Zh:null},set:function(a){this.ra!==null?this.ra.Zh=a:a!==null&&(this.ra=new id,this.ra.Zh=a)}},panelLayoutState:{get:function(){return this.F},set:function(a){this.F=a}},Te:{get:function(){return(this.l&8388608)!==0},set:function(a){(this.l&8388608)!==0!==a&&(this.l^=8388608)}},rowDefs:{get:function(){return this.T===null&&(this.T=new Su),this.T.Pc}},rowCount:{get:function(){return this.T===null?0:this.rowDefs.length}},colDefs:{get:function(){return this.T===null&&(this.T=new Su),this.T.Oc}},columnCount:{get:function(){return this.T===null?0:this.colDefs.length}},rowSizing:{get:function(){return this.T!==null?this.T.ob:Rm},set:function(a){var y=this.rowSizing;y!==a&&(this.T===null&&(this.T=new Su),this.T.ob=a,this.v(),this.g("rowSizing",y,a))}},columnSizing:{get:function(){return this.T!==null?this.T.j:Rm},set:function(a){var y=this.columnSizing;y!==a&&(this.T===null&&(this.T=new Su),this.T.j=a,this.v(),this.g("columnSizing",y,a))}},topIndex:{get:function(){return this.T!==null?this.T.Hb:0},set:function(a){var y=this.topIndex;y!==a&&((!isFinite(a)||0>a)&&vt("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)&&vt("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 Zi&&!(this instanceof lo);Ru(this),this.ub=a;var b=this.diagram;b!==null&&(x?(x=b.partManager,this instanceof ei?(y!==null&&x.bf.remove(y),a!==null&&x.bf.add(a,this)):this instanceof Zi&&(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 of),this.A.nb=a)}},itemArray:{get:function(){return this.Hh},set:function(a){var y=this.Hh;if(y!==a||a!==null&&Nx(this,a)){var x=this.diagram;y!==a&&(x!==null&&y!==null&&dy(x.partManager,this,x),this.Hh=a,x!==null&&a!==null&&cy(x.partManager,this)),this.g("itemArray",y,a),x!==null&&x.undoManager.isUndoingRedoing||yS(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 Zi||a.isPanelMain)&&vt("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(););Rr(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&&(Rr(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 xr&&(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&&Lm(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))}}}),jt.Object.defineProperties(Kn,{Position:{get:function(){return Ju.I("Position")}},Horizontal:{get:function(){return Ju.I("Horizontal")}},Vertical:{get:function(){return Ju.I("Vertical")}},Spot:{get:function(){return Ju.I("Spot")}},Auto:{get:function(){return Ju.I("Auto")}},Table:{get:function(){return Ju.I("Table")}},Viewbox:{get:function(){return Ju.I("Viewbox")}},TableRow:{get:function(){return Ju.I("TableRow")}},TableColumn:{get:function(){return Ju.I("TableColumn")}},Link:{get:function(){return Ju.I("Link")}},Grid:{get:function(){return Ju.I("Grid")}},Graduated:{get:function(){return Ju.I("Graduated")}}}),Kn.prototype.rebuildItemElements=Kn.prototype.mv,Kn.prototype.findItemPanelForData=Kn.prototype.sx,Kn.prototype.updateTargetBindings=Kn.prototype.La,Kn.prototype.copyTemplate=Kn.prototype.Uy,Kn.prototype.graduatedValueForPoint=Kn.prototype.Gz,Kn.prototype.graduatedPointForValue=Kn.prototype.Fz,Kn.prototype.findColumnForLocalX=Kn.prototype.fz,Kn.prototype.findRowForLocalY=Kn.prototype.nz,Kn.prototype.addColumnDefinition=Kn.prototype.By,Kn.prototype.addRowDefinition=Kn.prototype.Hy,Kn.prototype.addRowColumnDefinition=Kn.prototype.Gy,Kn.prototype.removeColumnDefinition=Kn.prototype.jA,Kn.prototype.getColumnDefinition=Kn.prototype.Eb,Kn.prototype.removeRowDefinition=Kn.prototype.oA,Kn.prototype.getRowDefinition=Kn.prototype.Fb,Kn.prototype.removeAt=Kn.prototype.mb,Kn.prototype.remove=Kn.prototype.remove,Kn.prototype.insertAt=Kn.prototype.Gb,Kn.prototype.elt=Kn.prototype.M,Kn.prototype.add=Kn.prototype.add,Kn.prototype.findObject=Kn.prototype.fb,Kn.prototype.findInVisualTree=Kn.prototype.Nl,Kn.prototype.walkVisualTreeFrom=Kn.prototype.qm,Kn.prototype.findMainElement=Kn.prototype.Pb;var SS=!1,xS=null,Ju=new an;Kn.className="Panel",Kn.definePanelLayout=Cc,Cc("Position",new vm),Cc("Vertical",new Sm),Cc("Auto",new bm),Cc("Link",new Pm);function id(){this.lq=0,this.F=100,this.ia=10,this.V=0,this.Zh=this.o=this.j=this.u=null}id.prototype.copy=function(){var a=new id;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},id.className="GradPanelSettings";function Su(){this.Pc=[],this.Oc=[],this.j=this.ob=Rm,this.hb=this.Hb=0,this.Qp=wa,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,b=x.length,E=y.Pc,z=0;z<b;z++)if(x[z]!==void 0){var ee=x[z].copy();ee.wi(a),E[z]=ee}for(x=this.Oc,b=x.length,E=y.Oc,z=0;z<b;z++)x[z]!==void 0&&(ee=x[z].copy(),ee.wi(a),E[z]=ee);return y.ob=this.ob,y.j=this.j,y.Hb=this.Hb,y.hb=this.hb,y.Qp=this.Qp.J(),y.Ha=this.Ha,y.ia=this.ia,y.V=this.V,y.F=this.F,y.u=this.u,y.o=this.o,y.nb=this.nb,y},Su.className="TablePanelSettings";function Ha(a){qi(this),this.Me=null,this.uq=!0,this.Za=0,this.Hc=NaN,this.jj=0,this.hj=1/0,this.Jb=Da,this.pa=this.oc=this.oa=0,this.be=null,this.oo=Av,this.hg=Er,this.lo=this.dg=null,this.mo=NaN,this.Ma=this.tj=null,this.Pm=!1,a&&(Object.assign(this,a),a.column!==void 0?(this.isRow=!1,this.index=a.column):a.row!==void 0&&(this.isRow=!0,this.index=a.row))}Ha.prototype.copy=function(){var a=new Ha;return a.uq=this.uq,a.Za=this.Za,a.Hc=this.Hc,a.jj=this.jj,a.hj=this.hj,a.Jb=this.Jb,a.oa=this.oa,a.oc=this.oc,a.pa=this.pa,a.hg=this.hg,a.oo=this.oo,this.dg===null?a.dg=null:a.dg=this.dg.J(),a.lo=this.lo,a.mo=this.mo,a.tj=null,this.tj!==null&&(a.separatorDashArray=oi(this.separatorDashArray)),a.Ma=this.Ma,a.Pm=this.Pm,a.be=this.be,a};function Im(a,y){y.isRow?a.height=y.height:a.width=y.width,a.minimum=y.minimum,a.maximum=y.maximum,a.alignment=y.alignment,a.stretch=y.stretch,a.sizing=y.sizing,a.dg=y.separatorPadding===null?null:y.separatorPadding.J(),a.separatorStroke=y.separatorStroke,a.separatorStrokeWidth=y.separatorStrokeWidth,a.tj=null,y.separatorDashArray&&(a.tj=oi(y.separatorDashArray)),a.background=y.background,a.coversSeparators=y.coversSeparators,a.be=y.be}Ie=Ha.prototype,Ie.qb=function(a){a.classType===Ha&&(this.sizing=a)},Ie.toString=function(){return"RowColumnDefinition "+(this.isRow?"(Row ":"(Column ")+this.index+") #"+gr(this)},Ie.wi=function(a){this.Me=a},Ie.Io=function(a){var y=0,x=this.Me;if(this.index!==a&&(a=this.separatorStroke,a===null&&x!==null&&(a=this.isRow?x.defaultRowSeparatorStroke:x.defaultColumnSeparatorStroke),a!==null&&(y=this.separatorStrokeWidth,isNaN(y)&&(x!==null?y=this.isRow?x.defaultRowSeparatorStrokeWidth:x.defaultColumnSeparatorStrokeWidth:y=0))),a=this.dg,a===null)if(x!==null)a=x.defaultSeparatorPadding;else return y;return y+(this.isRow?a.top:a.left)},Ie.Wc=function(){var a=0,y=this.Me,x=0,b=this.isRow;if(y!==null&&y.type===Kn.Table)for(var E=b?y.rowDefs.length:y.colDefs.length,z=0;z<E;z++){var ee=b?y.rowDefs[z]:y.colDefs[z];if(ee!==void 0&&ee.oa!==0){x=ee.index;break}}if(this.index!==x&&(x=this.separatorStroke,x===null&&y!==null&&(x=b?y.defaultRowSeparatorStroke:y.defaultColumnSeparatorStroke),x!==null&&(a=this.separatorStrokeWidth,isNaN(a)&&(y!==null?a=b?y.defaultRowSeparatorStrokeWidth:y.defaultColumnSeparatorStrokeWidth:a=0))),b=this.dg,b===null)if(y!==null)b=y.defaultSeparatorPadding;else return a;return a+(this.isRow?b.top+b.bottom:b.left+b.right)},Ie.Ob=function(a,y,x){var b=this.Me;if(b!==null&&(b.cb(Wo,a,this,y,x,void 0,void 0),this.be!==null&&(y=b.diagram,y!==null&&!y.skipsModelSourceBindings&&(b=b.ih(),b!==null&&(y=b.data,y!==null)))))for(x=this.be.iterator;x.next();)x.value.sp(this,y,a,b)};function Mm(a){if(a.sizing===Av){var y=a.Me;return a.isRow?y.rowSizing:y.columnSizing}return a.sizing}Ie.bind=function(a,y,x,b){var E=null;return typeof a=="string"?E=new Ma(a,y,x,b):E=a,E.xd=this,a=this.panel,a!==null&&(y=a.ih(),y!==null&&vS(y)&&vt("Cannot add a Binding to a RowColumnDefinition that is already frozen: "+E+" on "+a)),this.be===null&&(this.be=new Dn),this.be.add(E),this},jt.Object.defineProperties(Ha.prototype,{panel:{get:function(){return this.Me}},isRow:{get:function(){return this.uq},set:function(a){this.uq=a}},index:{get:function(){return this.Za},set:function(a){this.Za=a}},height:{get:function(){return this.Hc},set:function(a){var y=this.Hc;y!==a&&(0>a&&ri(a,">= 0",Ha,"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&&ri(a,">= 0",Ha,"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))&&ri(a,">= 0",Ha,"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&&ri(a,">= 0",Ha,"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 pr(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&&sf(a,"RowColumnDefinition.separatorStroke"),a instanceof Co&&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,E=0;E<x;E++){var z=a[E];typeof z=="number"&&0<=z&&isFinite(z)||vt("separatorDashArray value "+z+" at index "+E+" must be a positive number or zero."),b+=z}if(b===0){if(y===null)return;a=null}}this.tj=a,this.panel!==null&&this.panel.N(),this.Ob("separatorDashArray",y,a)}}},background:{get:function(){return this.Ma},set:function(a){var y=this.Ma;y!==a&&(a!==null&&sf(a,"RowColumnDefinition.background"),a instanceof Co&&a.freeze(),this.Ma=a,this.panel!==null&&this.panel.N(),this.Ob("background",y,a))}},coversSeparators:{get:function(){return this.Pm},set:function(a){var y=this.Pm;y!==a&&(this.Pm=a,this.panel!==null&&this.panel.N(),this.Ob("coversSeparators",y,a))}},sizing:{get:function(){return this.oo},set:function(a){var y=this.oo;y!==a&&(this.oo=a,this.panel!==null&&this.panel.v(),this.Ob("sizing",y,a))}},actual:{get:function(){return this.oa},set:function(a){this.oa=isNaN(this.Hc)?Math.max(Math.min(this.hj,a),this.jj):Math.max(Math.min(this.hj,this.Hc),this.jj)}},measured:{get:function(){return this.oc},set:function(a){this.oc=a}},total:{get:function(){return this.oa+this.Wc()}},position:{get:function(){return this.pa},set:function(a){this.pa=a}}}),Ha.prototype.computeEffectiveSpacing=Ha.prototype.Wc,Ha.prototype.computeEffectiveSpacingTop=Ha.prototype.Io;var Av=new mn(Ha,"Default",0),op=new mn(Ha,"None",1),Rm=new mn(Ha,"ProportionalExtra",2);Ha.className="RowColumnDefinition",Ha.Default=Av,Ha.None=op,Ha.ProportionalExtra=Rm;function Nr(a,y){Ot.call(this),this.Rd=this.ua=null,this.an="None",this.xc=this.Ui="black",this.ig=1,this.Na=this.Yg=null,this.Vn=this.Un=NaN,this.fa=null,typeof a=="string"?this.figure=a:a&&Object.assign(this,a),y&&Object.assign(this,y)}Wt(Nr,Ot),Nr.prototype.cloneProtected=function(a){Ot.prototype.cloneProtected.call(this,a),a.ua=this.ua,a.Rd=this.Rd,a.an=this.an,a.Ui=this.Ui,a.xc=this.xc,a.ig=this.ig,this.Yg!==null&&(a.Yg=oi(this.Yg)),this.Na!==null&&(a.Na=this.Na.nc?this.Na:this.Na.copy()),a.Un=this.Un,a.Vn=this.Vn,this.fa!==null&&(a.fa=this.fa.copy())};function Oh(a){a.Na===null?a.Na=new kv:a.Na.nc&&(a.Na=a.Na.copy())}Ie=Nr.prototype,Ie.th=function(){Ot.prototype.th.call(this),this.Na!==null&&(this.Na.nc=!0)},Ie.qb=function(a){a===Mn||a===Ui||a===Yr||a===Er?this.geometryStretch=a:Ot.prototype.qb.call(this,a)},Ie.toString=function(){return"Shape("+(this.figure!=="None"?this.figure:this.toArrow!=="None"?this.toArrow:this.fromArrow)+")#"+gr(this)};function Xf(a,y,x,b){var E=x.length;if(!(4>E)){var z=b.measuredBounds,ee=Math.max(1,z.width);z=z.height;for(var re=x[0],oe=x[1],de,fe,ye,Ce,Ne,Oe,Ve=0,ft=Mi(),lt=2;lt<E;lt+=2)de=x[lt],fe=x[lt+1],ye=de-re,re=fe-oe,ye===0&&(ye=.001),Ce=re/ye,Ne=Math.atan2(re,ye),Oe=Math.sqrt(ye*ye+re*re),ft.push([ye,Ne,Ce,Oe]),Ve+=Oe,re=de,oe=fe;re=x[0],oe=x[1],ye=b.measuredBounds.width,b instanceof Nr&&(ye-=b.strokeWidth),1>ye&&(ye=1),E=x=ye,de=ee/2,fe=de!==0,lt=0,Oe=ft[lt],ye=Oe[0],Ne=Oe[1],Ce=Oe[2],Oe=Oe[3];for(var mt=0;.1<=Ve;){if(mt===0&&(fe?(E=x,E-=de,Ve-=de,fe=!1):E=x,E===0&&(E=1)),E>Ve){ui(ft);return}E>Oe?(mt=E-Oe,E=Oe):mt=0;var St=Math.sqrt(E*E/(1+Ce*Ce));if(0>ye&&(St=-St),re+=St,oe+=Ce*St,a.translate(re,oe),a.rotate(Ne),a.translate(-(ee/2),-(z/2)),mt===0&&b.hh(a,y),a.translate(ee/2,z/2),a.rotate(-Ne),a.translate(-re,-oe),Ve-=E,Oe-=E,mt!==0){if(lt++,lt===ft.length){ui(ft);return}Oe=ft[lt],ye=Oe[0],Ne=Oe[1],Ce=Oe[2],Oe=Oe[3],E=mt}}ui(ft)}}Ie.hh=function(a,y){var x=this.xc,b=this.Ui;if(x!==null||b!==null){var E=this.ua;if(E!==null){a.yc();var z=this.actualBounds,ee=this.naturalBounds;b!==null&&ya(this,a,b,!0,!1,ee,z);var re=this.part,oe=this.ig;if(x===null||oe!==0||re===null||!this.isPanelMain&&re.Pb()!==this||(oe=re.type===Kn.Link&&re instanceof lo&&re.category==="Selection"&&re.adornedObject instanceof Nr&&re.adornedPart.Pb()===re.adornedObject?re.adornedObject.strokeWidth:0),oe===0&&(x=null),x!==null&&oe!==0&&(ya(this,a,x,!1,!1,ee,z),a.lineWidth=oe,a.lineJoin=this.strokeJoin,a.lineCap=this.strokeCap,a.miterLimit=this.strokeMiterLimit),z=!1,re&&y.Gf("drawShadows")&&(z=re.isShadowed),a.Il===!1&&(z=!1),re=!0,x===null||b!==null&&b!=="transparent"||(re=!1),ee=!1,oe=this.strokeDashArray,oe!==null&&(ee=!0,a.js(oe,this.strokeDashOffset)),E.type===Jn.j)a.beginPath(),a.moveTo(E.startX,E.startY),a.lineTo(E.endX,E.endY),x!==null&&a.jk(),a.Se();else if(E.type===Jn.u){var de=E.startX;oe=E.startY;var fe=E.endX,ye=E.endY;E=Math.min(de,fe);var Ce=Math.min(oe,ye);de=Math.abs(fe-de),oe=Math.abs(ye-oe),a.beginPath(),a.rect(E,Ce,de,oe),b!==null&&a.ng(b),x!==null&&(re&&z&&Bc(a),a.jk(),re&&z&&$c(a)),a.Se()}else if(E.type===Jn.F)de=E.startX,oe=E.startY,fe=E.endX,ye=E.endY,E=Math.abs(fe-de)/2,Ce=Math.abs(ye-oe)/2,de=Math.min(de,fe)+E,oe=Math.min(oe,ye)+Ce,a.beginPath(),a.moveTo(de,oe-Ce),a.bezierCurveTo(de+Bt.wg*E,oe-Ce,de+E,oe-Bt.wg*Ce,de+E,oe),a.bezierCurveTo(de+E,oe+Bt.wg*Ce,de+Bt.wg*E,oe+Ce,de,oe+Ce),a.bezierCurveTo(de-Bt.wg*E,oe+Ce,de-E,oe+Bt.wg*Ce,de-E,oe),a.bezierCurveTo(de-E,oe-Bt.wg*Ce,de-Bt.wg*E,oe-Ce,de,oe-Ce),a.closePath(),b!==null&&a.ng(b),x!==null&&(re&&z&&Bc(a),a.jk(),re&&z&&$c(a)),a.Se();else if(E.type===Jn.o)for(E=E.figures,oe=E.length,Ce=0;Ce<oe;Ce++){de=E.s[Ce],a.beginPath(),a.moveTo(de.startX,de.startY),fe=de.segments.s,ye=fe.length;for(var Ne=null,Oe=0;Oe<ye;Oe++){var Ve=fe[Oe];switch(Ve.type){case Xo:a.moveTo(Ve.endX,Ve.endY);break;case No:a.lineTo(Ve.endX,Ve.endY);break;case Ca:a.bezierCurveTo(Ve.point1X,Ve.point1Y,Ve.point2X,Ve.point2Y,Ve.endX,Ve.endY);break;case Bs:a.quadraticCurveTo(Ve.point1X,Ve.point1Y,Ve.endX,Ve.endY);break;case ma:if(Ve.radiusX===Ve.radiusY){var ft=Math.PI/180;a.arc(Ve.point1X,Ve.point1Y,Ve.radiusX,Ve.startAngle*ft,(Ve.startAngle+Ve.sweepAngle)*ft,0>Ve.sweepAngle,Ne!==null?Ne.endX:de.startX,Ne!==null?Ne.endY:de.startY)}else if(Ne=cs(Ve,de),ft=Ne.length,ft===0)a.lineTo(Ve.centerX,Ve.centerY);else for(var lt=0;lt<ft;lt++){var mt=Ne[lt];lt===0&&a.lineTo(mt[0],mt[1]),a.bezierCurveTo(mt[2],mt[3],mt[4],mt[5],mt[6],mt[7])}break;case Vs:if(lt=ft=0,Ne!==null&&Ne.type===ma){if(Ne=cs(Ne,de),mt=Ne.length,mt===0){a.lineTo(Ve.endX,Ve.endY);break}Ne=Ne[mt-1]||null,Ne!==null&&(ft=Ne[6],lt=Ne[7])}else ft=Ne!==null?Ne.endX:de.startX,lt=Ne!==null?Ne.endY:de.startY;if(Ne=Ms(Ve,de,ft,lt),ft=Ne.length,ft===0){a.lineTo(Ve.endX,Ve.endY);break}for(lt=0;lt<ft;lt++)mt=Ne[lt],a.bezierCurveTo(mt[2],mt[3],mt[4],mt[5],mt[6],mt[7]);break;default:vt("Segment not of valid type: "+Ve.type)}Ve.isClosed&&a.closePath(),Ne=Ve}fe=de.isFilled,z?de.isShadowed?(fe===!0&&b!=="transparent"&&b!==null&&a.ng(b,de.isEvenOdd),x!==null&&(fe&&re&&Bc(a),a.jk(),fe&&re&&$c(a))):(Bc(a),fe&&b!=="transparent"&&b!==null&&a.ng(b,de.isEvenOdd),x!==null&&a.jk(),$c(a)):(fe&&b!==null&&a.ng(b,de.isEvenOdd),x!==null&&a.jk()),a.Se(Ce)}if(ee&&a.fs(),this.pathPattern!==null){if(x=this.pathPattern,x.measure(1/0,1/0),b=x.measuredBounds,x.arrange(0,0,b.width,b.height),z=this.geometry,a.save(),a.beginPath(),b=Mi(),z.type===Jn.j)b.push(z.startX),b.push(z.startY),b.push(z.endX),b.push(z.endY),Xf(a,y,b,x);else if(z.type===Jn.o)for(z=z.figures.iterator;z.next();){for(re=z.value,b.length=0,b.push(re.startX),b.push(re.startY),ee=re.startX,E=re.startY,oe=ee,Ce=E,de=re.segments.s,fe=de.length,ye=0;ye<fe;ye++){switch(Oe=de[ye],Oe.type){case Xo:Xf(a,y,b,x),b.length=0,b.push(Oe.endX),b.push(Oe.endY),ee=Oe.endX,E=Oe.endY,oe=ee,Ce=E;break;case No:b.push(Oe.endX),b.push(Oe.endY),ee=Oe.endX,E=Oe.endY;break;case Ca:Bt.Qe(ee,E,Oe.point1X,Oe.point1Y,Oe.point2X,Oe.point2Y,Oe.endX,Oe.endY,.5,b),ee=Oe.endX,E=Oe.endY;break;case Bs:Bt.ep(ee,E,Oe.point1X,Oe.point1Y,Oe.endX,Oe.endY,.5,b),ee=Oe.endX,E=Oe.endY;break;case ma:if(Ve=cs(Oe,re),Ne=Ve.length,Ne===0){b.push(Oe.centerX),b.push(Oe.centerY),ee=Oe.centerX,E=Oe.centerY;break}for(ft=0;ft<Ne;ft++)lt=Ve[ft],Bt.Qe(ee,E,lt[2],lt[3],lt[4],lt[5],lt[6],lt[7],.5,b),ee=lt[6],E=lt[7];break;case Vs:if(Ve=Ms(Oe,re,ee,E),Ne=Ve.length,Ne===0){b.push(Oe.endX),b.push(Oe.endY),ee=Oe.endX,E=Oe.endY;break}for(ft=0;ft<Ne;ft++)lt=Ve[ft],Bt.Qe(ee,E,lt[2],lt[3],lt[4],lt[5],lt[6],lt[7],.5,b),ee=lt[6],E=lt[7];break;default:vt("Segment not of valid type: "+Oe.type)}Oe.isClosed&&(b.push(oe),b.push(Ce),Xf(a,y,b,x))}Xf(a,y,b,x)}else if(z.type===Jn.u)b.push(z.startX),b.push(z.startY),b.push(z.endX),b.push(z.startY),b.push(z.endX),b.push(z.endY),b.push(z.startX),b.push(z.endY),b.push(z.startX),b.push(z.startY),Xf(a,y,b,x);else if(z.type===Jn.F){if(E=new ba,E.startX=z.endX,E.startY=(z.startY+z.endY)/2,ee=new $r(ma),ee.startAngle=0,ee.sweepAngle=360,ee.centerX=(z.startX+z.endX)/2,ee.centerY=(z.startY+z.endY)/2,ee.radiusX=Math.abs(z.startX-z.endX)/2,ee.radiusY=Math.abs(z.startY-z.endY)/2,E.add(ee),z=cs(ee,E),re=z.length,re===0)b.push(ee.centerX),b.push(ee.centerY);else for(ee=E.startX,E=E.startY,oe=0;oe<re;oe++)Ce=z[oe],Bt.Qe(ee,E,Ce[2],Ce[3],Ce[4],Ce[5],Ce[6],Ce[7],.5,b),ee=Ce[6],E=Ce[7];Xf(a,y,b,x)}ui(b),a.restore(),a.Vc(!1)}}}},Ie.kk=function(a,y,x){return!Ot.prototype.kk.call(this,a,y,x)||this.xc===null&&this.Ui===null||this.ua===null||this.pathPattern!==null||this.geometry.figures.length!==this.svg.getElementsByTagName("path").length?!1:(a.Hl=this.svg,this.hh(a,y),a.Hl=null,!0)},Ie.nk=function(a){return this.geometry!==null&&1<this.geometry.figures.length||this.pathPattern!==null?!0:Ot.prototype.nk.call(this,a)},Ie.Dv=function(a,y){if(a.nodeName!=="g")a.setAttributeNS(null,"filter",y);else{a=a.getElementsByTagName("path");for(var x=0;x<a.length;x++)a[x].setAttributeNS(null,"filter",y)}},Ie.ga=function(a,y){if(y===void 0&&(y=new Je),a instanceof Ut){a.Mc()&&vt("getDocumentPoint Spot must be a real, specific Spot, not: "+a.toString());var x=this.naturalBounds,b=this.strokeWidth;y.h(a.x*(x.width+b)-b/2+x.x+a.offsetX,a.y*(x.height+b)-b/2+x.y+a.offsetY)}else y.set(a);return this.oe.Ga(y),y},Ie.mi=function(a){a===void 0&&(a=new tn);var y=this.naturalBounds,x=this.oe;y=tn.allocAt(y.x,y.y,y.width,y.height);var b=this.strokeWidth;return y.Bc(b/2,b/2),b=Je.allocAt(y.x,y.y).transform(x),a.h(b.x,b.y,0,0),b.h(y.right,y.y).transform(x),qr(a,b.x,b.y,0,0),b.h(y.right,y.bottom).transform(x),qr(a,b.x,b.y,0,0),b.h(y.x,y.bottom).transform(x),qr(a,b.x,b.y,0,0),tn.free(y),Je.free(b),a},Ie.gh=function(a,y){var x=this.geometry;if(x===null||this.fill===null&&this.stroke===null)return!1;var b=x.bounds,E=this.strokeWidth/2;x.type!==Jn.j||y||(E+=2);var z=tn.alloc();if(z.assign(b),z.Bc(E+2,E+2),!z.ca(a))return tn.free(z),!1;if(b=E+1e-4,x.type===Jn.j)return this.stroke===null||(b=(x.endX-x.startX)*(a.x-x.startX)+(x.endY-x.startY)*(a.y-x.startY),0>(x.startX-x.endX)*(a.x-x.endX)+(x.startY-x.endY)*(a.y-x.endY)||0>b)?!1:(tn.free(z),Bt.Yb(x.startX,x.startY,x.endX,x.endY,E,a.x,a.y));if(x.type===Jn.u){y=x.startX;var ee=x.startY,re=x.endX;if(x=x.endY,z.x=Math.min(y,re),z.y=Math.min(ee,x),z.width=Math.abs(re-y),z.height=Math.abs(x-ee),this.fill===null){if(z.Bc(-b,-b),z.ca(a))return tn.free(z),!1;z.Bc(b,b)}return this.stroke!==null&&z.Bc(E,E),a=z.ca(a),tn.free(z),a}if(x.type===Jn.F){ee=x.startX,E=x.startY,re=x.endX;var oe=x.endY;if(x=Math.min(ee,re),y=Math.min(E,oe),ee=Math.abs(re-ee)/2,E=Math.abs(oe-E)/2,x=a.x-(x+ee),y=a.y-(y+E),this.fill===null){if(ee-=b,E-=b,0>=ee||0>=E||1>=x*x/(ee*ee)+y*y/(E*E))return tn.free(z),!1;ee+=b,E+=b}return this.stroke!==null&&(ee+=b,E+=b),tn.free(z),0>=ee||0>=E?!1:1>=x*x/(ee*ee)+y*y/(E*E)}if(x.type===Jn.o)return tn.free(z),this.fill===null?uu(x,a.x,a.y,E):Va(x,a,E,1<this.strokeWidth,y);vt("Unknown Geometry type: "+x.type)},Ie.Wl=function(a,y,x,b){var E=this.desiredSize,z=this.ig;if(a=Math.max(a,0),y=Math.max(y,0),this.Rd!==null)var ee=this.geometry.bounds;else{var re=this.figure,oe=Nv[re];if(oe===void 0){var de=Bt.Ze[re];typeof de=="string"&&(de=Bt.Ze[de]),typeof de=="function"?(oe=de(null,100,100),Nv[re]=oe):vt("Unsupported Figure: "+re)}ee=oe.bounds}re=ee.width,oe=ee.height,de=ee.width;var fe=ee.height;switch(El(this,!0)){case Mn:b=x=0;break;case Wn:de=Math.max(a-z,0),fe=Math.max(y-z,0);break;case ji:de=Math.max(a-z,0),b=0;break;case nr:x=0,fe=Math.max(y-z,0)}isFinite(E.width)&&(de=E.width),isFinite(E.height)&&(fe=E.height);var ye=this.maxSize,Ce=this.minSize;switch(x=Math.max(x-z,Ce.width),b=Math.max(b-z,Ce.height),de=Math.min(ye.width,de),fe=Math.min(ye.height,fe),de=isFinite(de)?Math.max(x,de):Math.max(re,x),fe=isFinite(fe)?Math.max(b,fe):Math.max(oe,b),x=Pv(this),x){case Mn:break;case Wn:re=de,oe=fe;break;case Ui:x=Math.min(de/re,fe/oe),isFinite(x)||(x=1),re*=x,oe*=x;break;default:vt(x+" is not a valid geometryStretch.")}this.Rd!==null?(re===0&&(re=.001),oe===0&&(oe=.001),x=this.Rd!==null?this.Rd:this.ua,ee=x.bounds,b=re/ee.width,ee=oe/ee.height,isFinite(b)||(b=1),isFinite(ee)||(ee=1),this.ua=b===1&&ee===1?x:x.copy().scale(b,ee)):this.ua!==null&&Bt.$(this.ua.Sk,a-z)&&Bt.$(this.ua.Rk,y-z)||(this.ua=Nr.makeGeometry(this,re,oe)),ee=this.ua.bounds,a===1/0||y===1/0?this.Ge(ee.x-z/2,ee.y-z/2,a===0&&re===0?0:ee.width+z,y===0&&oe===0?0:ee.height+z):this.Ge(-(z/2),-(z/2),de+z,fe+z),E.w()?(de=E.width,fe=E.height,de=Math.min(ye.width,de),fe=Math.min(ye.height,fe),de=Math.max(Ce.width,de),fe=Math.max(Ce.height,fe),this.dc.h(0,0,de,fe)):this.dc.assign(ee)};function Pv(a){var y=a.geometryStretch;return a.Rd!==null?y===Er?Wn:y:y===Er?Nv[a.figure].defaultStretch:y}Ie.eh=function(a,y,x,b){Xs(this,a,y,x,b)},Ie.rs=function(a,y,x){return this.Sj(a.x,a.y,y.x,y.y,x)},Ie.Sj=function(a,y,x,b,E){var z=this.transform,ee=1/(z.m11*z.m22-z.m12*z.m21),re=z.m22*ee,oe=-z.m12*ee,de=-z.m21*ee,fe=z.m11*ee,ye=ee*(z.m21*z.dy-z.m22*z.dx),Ce=ee*(z.m12*z.dx-z.m11*z.dy);z=a*re+y*de+ye,ee=a*oe+y*fe+Ce,re=x*re+b*de+ye,oe=x*oe+b*fe+Ce,ye=this.ig/2,de=this.ua,de===null&&(this.measure(1/0,1/0),de=this.ua);var Ne=de.bounds;if(fe=!1,de.type===Jn.j)if(1.5>=this.strokeWidth)fe=Bt.Ve(de.startX,de.startY,de.endX,de.endY,z,ee,re,oe,E);else{if(de.startX===de.endX?(b=ye,fe=0):(y=(de.endY-de.startY)/(de.endX-de.startX),fe=ye/Math.sqrt(1+y*y),b=fe*y),y=Mi(),a=new Je,Bt.Ve(de.startX+b,de.startY+fe,de.endX+b,de.endY+fe,z,ee,re,oe,a)&&y.push(a),a=new Je,Bt.Ve(de.startX-b,de.startY-fe,de.endX-b,de.endY-fe,z,ee,re,oe,a)&&y.push(a),a=new Je,Bt.Ve(de.startX+b,de.startY+fe,de.startX-b,de.startY-fe,z,ee,re,oe,a)&&y.push(a),a=new Je,Bt.Ve(de.endX+b,de.endY+fe,de.endX-b,de.endY-fe,z,ee,re,oe,a)&&y.push(a),re=y.length,re===0)return ui(y),!1;for(fe=!0,oe=1/0,b=0;b<re;b++)a=y[b],x=(a.x-z)*(a.x-z)+(a.y-ee)*(a.y-ee),x<oe&&(oe=x,E.x=a.x,E.y=a.y);ui(y)}else if(de.type===Jn.u)fe=Bt.Ff(Ne.x-ye,Ne.y-ye,Ne.x+Ne.width+ye,Ne.y+Ne.height+ye,z,ee,re,oe,E);else if(de.type===Jn.F){y=tn.allocAt(Ne.x,Ne.y,Ne.width,Ne.height).Bc(ye,ye);e:if(y.width===0)fe=Bt.Ve(y.x,y.y,y.x,y.y+y.height,z,ee,re,oe,E);else if(y.height===0)fe=Bt.Ve(y.x,y.y,y.x+y.width,y.y,z,ee,re,oe,E);else{if(a=y.width/2,de=y.height/2,b=y.x+a,fe=y.y+de,x=9999,z!==re&&(x=(ee-oe)/(z-re)),9999>Math.abs(x)){if(oe=ee-fe-x*(z-b),0>a*a*x*x+de*de-oe*oe){E.x=NaN,E.y=NaN,fe=!1;break e}ye=Math.sqrt(a*a*x*x+de*de-oe*oe),re=(-(a*a*x*oe)+a*de*ye)/(de*de+a*a*x*x)+b,a=(-(a*a*x*oe)-a*de*ye)/(de*de+a*a*x*x)+b,de=x*(re-b)+oe+fe,oe=x*(a-b)+oe+fe,Math.abs((z-re)*(z-re))+Math.abs((ee-de)*(ee-de))<Math.abs((z-a)*(z-a))+Math.abs((ee-oe)*(ee-oe))?(E.x=re,E.y=de):(E.x=a,E.y=oe)}else{if(re=de*de,oe=z-b,re-=re/(a*a)*oe*oe,0>re){E.x=NaN,E.y=NaN,fe=!1;break e}oe=Math.sqrt(re),re=fe+oe,oe=fe-oe,Math.abs(re-ee)<Math.abs(oe-ee)?(E.x=z,E.y=re):(E.x=z,E.y=oe)}fe=!0}tn.free(y)}else if(de.type===Jn.o){Ce=Je.alloc();var Oe=re-z,Ve=oe-ee,ft=Oe*Oe+Ve*Ve,lt=z,mt=ee;if(0<ft&&Ne.contains(lt,mt)&&(Ce.x=lt,Ce.y=mt,this.ca(Ce)))for(Oe!==0&&.5>Math.abs(Oe)?(Ve*=.5/Oe,Oe=.5):Ve!==0&&.5>Math.abs(Ve)&&(Oe*=.5/Ve,Ve=.5),lt-=Oe,mt-=Ve;Ne.contains(lt,mt);)lt-=Oe,mt-=Ve;for(E.x=re,E.y=oe,Ve=0;Ve<de.figures.count;Ve++){var St=de.figures.s[Ve],Ct=St.isFilled?lt:z,Rt=St.isFilled?mt:ee,$t=St.segments;Ne=St.startX,Oe=St.startY;for(var di=Ne,Di=Oe,Li=0;Li<$t.count;Li++){var $n=$t.s[Li],Nn=$n.type,Sr=$n.endX,hr=$n.endY,po=!1;switch(Nn){case Xo:di=Sr,Di=hr;break;case No:po=Dm(Ne,Oe,Sr,hr,Ct,Rt,re,oe,Ce);break;case Ca:po=Bt.Eo(Ne,Oe,$n.point1X,$n.point1Y,$n.point2X,$n.point2Y,Sr,hr,Ct,Rt,re,oe,.6,Ce);break;case Bs:po=Bt.Eo(Ne,Oe,Ne+2/3*($n.point1X-Ne),Oe+2/3*($n.point1Y-Oe),Sr+2/3*($n.point1X-Sr),hr+2/3*($n.point1Y-hr),Sr,hr,Ct,Rt,re,oe,.6,Ce);break;case ma:case Vs:Nn=$n.type===ma?cs($n,St):Ms($n,St,Ne,Oe);var Yo=Nn.length;if(Yo===0){po=Dm(Ne,Oe,$n.type===ma?$n.centerX:$n.endX,$n.type===ma?$n.centerY:$n.endY,Ct,Rt,re,oe,Ce);break}for(hr=null,Sr=0;Sr<Yo;Sr++){if(hr=Nn[Sr],Sr===0&&Dm(Ne,Oe,hr[0],hr[1],Ct,Rt,re,oe,Ce)){var rs=Om(Ct,Rt,Ce,ft,E);rs<ft&&(ft=rs,fe=!0)}Bt.Eo(hr[0],hr[1],hr[2],hr[3],hr[4],hr[5],hr[6],hr[7],Ct,Rt,re,oe,.6,Ce)&&(rs=Om(Ct,Rt,Ce,ft,E),rs<ft&&(ft=rs,fe=!0))}Sr=hr[6],hr=hr[7];break;default:vt("Unknown Segment type: "+Nn)}Ne=Sr,Oe=hr,po&&(po=Om(Ct,Rt,Ce,ft,E),po<ft&&(ft=po,fe=!0)),$n.isClosed&&(Sr=di,hr=Di,Dm(Ne,Oe,Sr,hr,Ct,Rt,re,oe,Ce)&&($n=Om(Ct,Rt,Ce,ft,E),$n<ft&&(ft=$n,fe=!0)))}}z=x-a,ee=b-y,re=Math.sqrt(z*z+ee*ee),re!==0&&(z/=re,ee/=re),E.x-=z*ye,E.y-=ee*ye,Je.free(Ce)}else vt("Unknown Geometry type: "+de.type);return fe?(this.transform.Ga(E),!0):!1};function Om(a,y,x,b,E){return a=x.x-a,y=x.y-y,y=a*a+y*y,y<b?(E.x=x.x,E.y=x.y,y):b}function Dm(a,y,x,b,E,z,ee,re,oe){if(Bt.$(a,x)&&Bt.$(y,b)||Bt.$(E,ee)&&Bt.$(z,re))return!1;var de=!1,fe=(E-ee)*(y-b)-(z-re)*(a-x);return fe===0?!1:(oe.x=((E*re-z*ee)*(a-x)-(E-ee)*(a*b-y*x))/fe,oe.y=((E*re-z*ee)*(y-b)-(z-re)*(a*b-y*x))/fe,(a>x?a-x:x-a)<(y>b?y-b:b-y)?(a=y<b?y:b,y=y<b?b:y,(oe.y>a||Bt.$(oe.y,a))&&(oe.y<y||Bt.$(oe.y,y))&&(de=!0)):(y=a<x?a:x,a=a<x?x:a,(oe.x>y||Bt.$(oe.x,y))&&(oe.x<a||Bt.$(oe.x,a))&&(de=!0)),de)}Ie.fh=function(a,y){if(y===void 0)return a.Re(this.actualBounds);var x=this.ua;x===null&&(this.measure(1/0,1/0),x=this.ua),x=x.bounds;var b=this.strokeWidth/2,E=!1,z=Je.alloc();return z.h(x.x-b,x.y-b),a.ca(y.Ga(z))&&(z.h(x.x-b,x.bottom+b),a.ca(y.Ga(z))&&(z.h(x.right+b,x.bottom+b),a.ca(y.Ga(z))&&(z.h(x.right+b,x.y-b),a.ca(y.Ga(z))&&(E=!0)))),Je.free(z),E},Ie.Yc=function(a,y){if(this.fh(a,y)||y===void 0&&(y=this.transform,a.Re(this.actualBounds)))return!0;var x=dr.alloc();x.set(y),x.Vj();var b=a.left,E=a.right,z=a.top;a=a.bottom;var ee=Je.alloc();if(ee.h(b,z),x.Ga(ee),this.gh(ee,!0)||(ee.h(E,z),x.Ga(ee),this.gh(ee,!0))||(ee.h(b,a),x.Ga(ee),this.gh(ee,!0))||(ee.h(E,a),x.Ga(ee),this.gh(ee,!0)))return Je.free(ee),!0;var re=Je.alloc(),oe=Je.alloc();return x.set(y),x.bv(this.transform),x.Vj(),re.x=E,re.y=z,re.transform(x),ee.x=b,ee.y=z,ee.transform(x),y=!1,Dh(this,ee,re,oe)?y=!0:(ee.x=E,ee.y=a,ee.transform(x),Dh(this,ee,re,oe)?y=!0:(re.x=b,re.y=a,re.transform(x),Dh(this,ee,re,oe)?y=!0:(ee.x=b,ee.y=z,ee.transform(x),Dh(this,ee,re,oe)&&(y=!0)))),Je.free(ee),dr.free(x),Je.free(re),Je.free(oe),y};function Dh(a,y,x,b){if(!a.rs(y,x,b))return!1;a=y.x,y=y.y;var E=x.x,z=x.y;return x=b.x,b=b.y,a===E?(y<z?(a=y,y=z):a=z,b>=a&&b<=y):(a<E?(b=a,a=E):b=E,x>=b&&x<=a)}Ie.tx=function(a,y,x){function b(ft,lt){for(var mt=ft.length,St=0;St<mt;St+=2)if(lt.zd(ft[St],ft[St+1])>E)return!0;return!1}if(x&&this.fill!==null&&this.gh(a,!0))return!0;var E=a.Bf(y),z=E;if(1.5<this.strokeWidth&&(E=this.strokeWidth/2+Math.sqrt(E),E*=E),y=this.ua,y===null&&(this.measure(1/0,1/0),y=this.ua,y===null))return!1;if(!x){var ee=y.bounds,re=ee.x,oe=ee.y,de=ee.x+ee.width;if(ee=ee.y+ee.height,tr(a.x,a.y,re,oe)<=E&&tr(a.x,a.y,de,oe)<=E&&tr(a.x,a.y,re,ee)<=E&&tr(a.x,a.y,de,ee)<=E)return!0}if(re=y.startX,oe=y.startY,de=y.endX,ee=y.endY,y.type===Jn.j){if(x=(re-de)*(a.x-de)+(oe-ee)*(a.y-ee),bi(a.x,a.y,re,oe,de,ee)<=(0<=(de-re)*(a.x-re)+(ee-oe)*(a.y-oe)&&0<=x?E:z))return!0}else{if(y.type===Jn.u)return y=!1,x&&(y=bi(a.x,a.y,re,oe,re,ee)<=E||bi(a.x,a.y,re,oe,de,oe)<=E||bi(a.x,a.y,de,oe,de,ee)<=E||bi(a.x,a.y,re,ee,de,ee)<=E),y;if(y.type===Jn.F){y=a.x-(re+de)/2,z=a.y-(oe+ee)/2;var fe=Math.abs(de-re)/2,ye=Math.abs(ee-oe)/2;if(fe===0||ye===0)return bi(a.x,a.y,re,oe,de,ee)<=E;if(x){if(a=Bt.$y(fe,ye,y,z),a*a<=E)return!0}else return!(tr(y,z,-fe,0)>=E||tr(y,z,0,-ye)>=E||tr(y,z,0,ye)>=E||tr(y,z,fe,0)>=E)}else if(y.type===Jn.o){if(de=y.bounds,z=de.x,re=de.y,oe=de.x+de.width,de=de.y+de.height,a.x>oe&&a.x<z&&a.y>de&&a.y<re&&bi(a.x,a.y,z,re,z,de)>E&&bi(a.x,a.y,z,re,oe,re)>E&&bi(a.x,a.y,oe,de,z,de)>E&&bi(a.x,a.y,oe,de,oe,re)>E)return!1;if(z=Math.sqrt(E),x){if(this.fill===null?uu(y,a.x,a.y,z):Va(y,a,z,!0,!1))return!0}else{for(x=y.figures,y=0;y<x.count;y++){if(z=x.s[y],ee=z.startX,fe=z.startY,a.zd(ee,fe)>E)return!1;for(re=z.segments.s,oe=re.length,de=0;de<oe;de++)switch(ye=re[de],ye.type){case Xo:case No:if(ee=ye.endX,fe=ye.endY,a.zd(ee,fe)>E)return!1;break;case Ca:var Ce=Mi();if(Bt.Qe(ee,fe,ye.point1X,ye.point1Y,ye.point2X,ye.point2Y,ye.endX,ye.endY,.8,Ce),ee=b(Ce,a),ui(Ce),ee||(ee=ye.endX,fe=ye.endY,a.zd(ee,fe)>E))return!1;break;case Bs:if(Ce=Mi(),Bt.ep(ee,fe,ye.point1X,ye.point1Y,ye.endX,ye.endY,.8,Ce),ee=b(Ce,a),ui(Ce),ee||(ee=ye.endX,fe=ye.endY,a.zd(ee,fe)>E))return!1;break;case ma:case Vs:Ce=ye.type===ma?cs(ye,z):Ms(ye,z,ee,fe);var Ne=Ce.length;if(Ne===0){if(ee=ye.type===ma?ye.centerX:ye.endX,fe=ye.type===ma?ye.centerY:ye.endY,a.zd(ee,fe)>E)return!1;break}ye=null;for(var Oe=Mi(),Ve=0;Ve<Ne;Ve++)if(ye=Ce[Ve],Oe.length=0,Bt.Qe(ye[0],ye[1],ye[2],ye[3],ye[4],ye[5],ye[6],ye[7],.8,Oe),b(Oe,a))return ui(Oe),!1;ui(Oe),ye!==null&&(ee=ye[6],fe=ye[7]);break;default:vt("Unknown Segment type: "+ye.type)}}return!0}}}return!1},Ie.qc=function(){this.ua=null},Ie.kq=function(){return this.ig};function bS(a){var y=a.diagram;y!==null&&y.undoManager.isUndoingRedoing||(a.segmentOrientation=gp,a.toArrow!=="None"?(a.segmentIndex=-1,a.alignmentFocus=Wa):a.fromArrow!=="None"&&(a.segmentIndex=0,a.alignmentFocus=new Ut(1-Wa.x,Wa.y)))}Nr.makeGeometry=function(a,y,x){if(a.toArrow!=="None")var b=Uc[a.toArrow];else a.fromArrow!=="None"?b=Uc[a.fromArrow]:(b=Bt.Ze[a.figure],typeof b=="string"&&(b=Bt.Ze[b]),b===void 0&&vt("Unknown Shape.figure: "+a.figure),b=b(a,y,x),b.Sk=y,b.Rk=x);if(b===null){var E=Bt.Ze.Rectangle;typeof E=="function"&&(b=E(a,y,x))}return b};function ES(a){var y=Uc[a];if(y===void 0){var x=a.toLowerCase();if(x==="none")return"None";if(y=Uc[x],y===void 0){var b=null,E;for(E in Bt.um)if(E.toLowerCase()===x){b=E;break}if(b!==null)return a=Jn.parse(Bt.um[b],!1),Uc[b]=a,x!==b&&(Uc[x]=b),b}}return typeof y=="string"?y:y instanceof Jn?a:null}jt.Object.defineProperties(Nr.prototype,{geometry:{get:function(){return this.ua!==null?this.ua:this.Rd},set:function(a){var y=this.ua,x=this.Rd;if(y!==a){a!==null?this.Rd=this.ua=a.freeze():this.Rd=this.ua=null;var b=this.part;b!==null&&(b.ag=NaN),this.v(),this.g("geometry",y||x,a),Ts(this)&&(a=this.part,a!==null&&ea(this,a,"geometryString"))}}},geometryString:{get:function(){return this.geometry===null?"":this.geometry.toString()},set:function(a){a=Jn.parse(a);var y=a.normalize();this.geometry=a,this.position=a=Je.allocAt(-y.x,-y.y),Je.free(a)}},isGeometryPositioned:{get:function(){return(this.l&1048576)!==0},set:function(a){var y=(this.l&1048576)!==0;y!==a&&(this.l^=1048576,this.v(),this.g("isGeometryPositioned",y,a))}},fill:{get:function(){return this.Ui},set:function(a){var y=this.Ui;y!==a&&(a!==null&&sf(a,"Shape.fill"),a instanceof Co&&a.freeze(),this.Ui=a,this.N(),this.g("fill",y,a))}},stroke:{get:function(){return this.xc},set:function(a){var y=this.xc;y!==a&&(a!==null&&sf(a,"Shape.stroke"),a instanceof Co&&a.freeze(),this.xc=a,this.N(),this.g("stroke",y,a))}},strokeWidth:{get:function(){return this.ig},set:function(a){var y=this.ig;if(y!==a)if(0<=a){this.ig=a,this.v();var x=this.part;x!==null&&(x.ag=NaN),this.g("strokeWidth",y,a)}else ri(a,"value >= 0",Nr,"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"?ri(a,'"butt", "round", or "square"',Nr,"strokeCap"):(Oh(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"?ri(a,'"miter", "bevel", or "round"',Nr,"strokeJoin"):(Oh(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){Oh(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,E=0;E<x;E++){var z=a[E];0<=z&&isFinite(z)||vt("strokeDashArray:value "+z+" at index "+E+" must be a positive number or zero."),b+=z}if(b===0){if(y===null)return;a=null}}this.Yg=a,this.N(),this.g("strokeDashArray",y,a)}}},strokeDashOffset:{get:function(){return this.Na!==null?this.Na.uj:0},set:function(a){var y=this.strokeDashOffset;y!==a&&0<=a&&(Oh(this),this.Na.uj=a,this.N(),this.g("strokeDashOffset",y,a))}},figure:{get:function(){return this.an},set:function(a){var y=this.an;if(y!==a){var x=Bt.Ze[a];typeof x=="function"?x=a:(x=Bt.Ze[a.toLowerCase()])||vt("Unknown Shape.figure: "+a),y!==x&&(a=this.part,a!==null&&(a.ag=NaN),this.an=x,this.Rd=null,this.qc(),this.v(),this.g("figure",y,x))}}},toArrow:{get:function(){return this.Ua!==null?this.Ua.V:"None"},set:function(a){var y=this.toArrow;if(a===!0?a="Standard":a===!1&&(a=""),y!==a){var x=ES(a);x===null?vt("Unknown Shape.toArrow: "+a):y!==x&&(this.Ua===null&&(this.Ua=new Zd),this.Ua.V=x,this.Rd=null,this.qc(),this.v(),bS(this),this.g("toArrow",y,x))}}},fromArrow:{get:function(){return this.Ua!==null?this.Ua.j:"None"},set:function(a){var y=this.fromArrow;if(a===!0?a="Standard":a===!1&&(a=""),y!==a){var x=ES(a);x===null?vt("Unknown Shape.fromArrow: "+a):y!==x&&(this.Ua===null&&(this.Ua=new Zd),this.Ua.j=x,this.Rd=null,this.qc(),this.v(),bS(this),this.g("fromArrow",y,x))}}},spot1:{get:function(){return this.Na!==null?this.Na.fg:Da},set:function(a){var y=this.spot1;y.D(a)||(a=a.J(),Oh(this),this.Na.fg=a,this.v(),this.g("spot1",y,a))}},spot2:{get:function(){return this.Na!==null?this.Na.gg:Da},set:function(a){var y=this.spot2;y.D(a)||(a=a.J(),Oh(this),this.Na.gg=a,this.v(),this.g("spot2",y,a))}},parameter1:{get:function(){return this.Un},set:function(a){var y=this.Un;y!==a&&(this.Un=a,this.qc(),this.v(),this.g("parameter1",y,a))}},parameter2:{get:function(){return this.Vn},set:function(a){var y=this.Vn;y!==a&&(this.Vn=a,this.qc(),this.v(),this.g("parameter2",y,a))}},naturalBounds:{get:function(){return this.dc}},pathPattern:{get:function(){return this.Na!==null?this.Na.br:null},set:function(a){var y=this.pathPattern;y!==a&&(Oh(this),this.Na.br=a,this.N(),this.g("pathPattern",y,a))}},geometryStretch:{get:function(){return this.Na!==null?this.Na.jq:Er},set:function(a){var y=this.geometryStretch;y!==a&&(Oh(this),this.Na.jq=a,this.v(),this.g("geometryStretch",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 zc),this.fa.Tk=a;var x=this.diagram;x!==null&&this.panel===x.grid&&bc(x),this.v(),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:1<a&&(a=1),this.fa===null&&(this.fa=new zc),this.fa.u=a,this.v(),this.g("graduatedStart",y,a))}},graduatedEnd:{get:function(){return this.fa!==null?this.fa.j:1},set:function(a){var y=this.graduatedEnd;y!==a&&(0>a?a=0:1<a&&(a=1),this.fa===null&&(this.fa=new zc),this.fa.j=a,this.v(),this.g("graduatedEnd",y,a))}},graduatedSkip:{get:function(){return this.fa!==null?this.fa.o:null},set:function(a){var y=this.graduatedSkip;y!==a&&(this.fa===null&&(this.fa=new zc),this.fa.o=a,this.v(),this.g("graduatedSkip",y,a))}}}),Nr.prototype.intersectsRect=Nr.prototype.Yc,Nr.prototype.containedInRect=Nr.prototype.fh,Nr.prototype.getNearestIntersectionPoint=Nr.prototype.rs,Nr.prototype.getDocumentBounds=Nr.prototype.mi,Nr.prototype.getDocumentPoint=Nr.prototype.ga;var Uc=new Ji,Nv=new Ji;Nr.className="Shape",Nr.getFigureGenerators=function(){var a=new an,y;for(y in Bt.Ze)y!==y.toLowerCase()&&a.add(y,Bt.Ze[y]);return a.freeze(),a},Nr.defineFigureGenerator=function(a,y){var x=a.toLowerCase(),b=Bt.Ze;b[a]=y,b[x]=a},Nr.getArrowheadGeometries=function(){var a=new an;for(b in Bt.um)if(Uc[b]===void 0){var y=Jn.parse(Bt.um[b],!1);Uc[b]=y,y=b.toLowerCase(),y!==b&&(Uc[y]=b)}for(var x in Uc)if(x!==x.toLowerCase()){var b=Uc[x];b instanceof Jn&&a.add(x,b)}return a.freeze(),a},Nr.defineArrowheadGeometry=function(a,y){var x=null;typeof y=="string"?x=Jn.parse(y,!1):x=y,y=a.toLowerCase(),y!=="none"&&a!==y||vt("Shape.defineArrowheadGeometry name must not be empty or None or all-lower-case: "+a);var b=Uc;b[a]=x,b[y]=a};function kv(){this.nc=!1,this.Hr="butt",this.Ir="miter",this.Jr=10,this.uj=0,this.br=null,this.jq=Er,this.gg=this.fg=Da}kv.prototype.copy=function(){var a=new kv;return a.Hr=this.Hr,a.Ir=this.Ir,a.Jr=this.Jr,a.uj=this.uj,a.br=this.br,a.jq=this.jq,a.fg=this.fg.J(),a.gg=this.gg.J(),a};function Ko(a,y){return Ot.call(this),zm||(wl=va?new Mu(null).context:null,zm=!0),this.l|=2097152,this.ec="",this.xc="black",this.Ae="13px sans-serif",this.Lq=this.Cb=this.Gc=0,this.da=this.fa=this.Gm=null,this.Ih=0,this.df=null,this.Le=0,this.ze=this.Qb=this.Qc=null,typeof a=="string"?this.text=a:a&&Object.assign(this,a),y&&Object.assign(this,y),this}Wt(Ko,Ot),Ko.prototype.cloneProtected=function(a){Ot.prototype.cloneProtected.call(this,a),a.ec=this.ec,a.xc=this.xc,a.Ae=this.Ae,a.Gc=this.Gc,a.Cb=this.Cb,a.Lq=this.Lq,a.Gm=this.Gm,this.fa!==null&&(a.fa=this.fa.copy()),this.da!==null&&(a.da=this.da.nc?this.da:this.da.copy()),a.Ih=this.Ih,a.df=this.df,a.Le=this.Le,a.Qc=this.Qc,a.Qb=this.Qb,a.ze=this.ze};function Tc(a){a.da===null?a.da=new Fv:a.da.nc&&(a.da=a.da.copy())}Ie=Ko.prototype,Ie.th=function(){Ot.prototype.th.call(this),this.da!==null&&(this.da.nc=!0)};function wS(a,y){a.l=y.l|6144,a.pb=y.opacity,a.Ma=y.background,a.areaBackground=y.areaBackground,a.jd=y.desiredSize.J(),a.minSize=y.minSize.J(),a.maxSize=y.maxSize.J(),y.Lb!==null?a.Lb=y.Lb.copy():a.Lb=null,a.Ca=y.scale,a.Kb=y.angle,a.stretch=y.stretch,a.Kg=y.margin.J(),a.Jb=y.alignment.J(),a.sk=y.alignmentFocus.J(),a.segmentFraction=y.segmentFraction,a.segmentOffset=y.segmentOffset.J(),a.segmentOrientation=y.segmentOrientation,y.tb!==null&&(a.tb=y.tb.copy()),a.shadowVisible=y.shadowVisible,a.ec=y.ec,a.xc=y.xc,a.Ae=y.Ae,a.fa!==null&&(a.fa=y.fa.copy()),y.da!==null&&(a.da=y.da.nc?y.da:y.da.copy()),a.Ih=y.Ih}Ie.qb=function(a){a.classType===Ko?this.wrap=a:Ot.prototype.qb.call(this,a)},Ie.toString=function(){return 22<this.ec.length?'TextBlock("'+this.ec.substring(0,20)+'"...)':'TextBlock("'+this.ec+'")'},Ie.v=function(){Ot.prototype.v.call(this)},Ie.hh=function(a,y){if(this.xc!==null&&this.ec.length!==0&&this.Ae!==null){var x=this.naturalBounds,b=this.actualBounds,E=x.width,z=x.height,ee=sp(this),re=a.textAlign=this.textAlign,oe=y.tn;re==="start"?re=oe?"right":"left":re==="end"&&(re=oe?"left":"right"),oe=this.isUnderline;var de=this.isStrikethrough;ya(this,a,this.xc,!0,!1,x,b),(oe||de)&&ya(this,a,this.xc,!1,!1,x,b),b=0,x=!1;var fe=this.oe,ye=fe.dx-(ee*fe.m21+fe.dx);fe=fe.dy-(ee*fe.m22+fe.dy);var Ce=y.scale;switch(8>(ye*ye+fe*fe)*Ce*Ce&&(x=!0),y.ib!==a&&(x=!1),y.ib instanceof Gl&&(x=!1),y.Gf("textGreeking")===!1&&(x=!1),y=this.spacingAbove,ye=this.spacingBelow,this.flip){case io:a.translate(E,0),a.scale(-1,1);break;case Dr:a.translate(0,z),a.scale(1,-1);break;case Io:a.translate(E,z),a.scale(-1,-1)}if(a.yc(),fe=this.Gc,Ce=(y+ee+ye)*fe,z>Ce&&(b=this.verticalAlignment,b=b.y*z-b.y*Ce+b.offsetY),fe===1&&this.ze!==null)ye=this.Cb,ye>E&&(ye=E),this.Oj(this.ze,a,0,b+y,E,ee,ye,x,re,oe,de);else if(this.Qc!==null&&this.Qb!==null)for(Ce=0;Ce<fe;Ce++){var Ne=this.Qc[Ce];Ne>E&&(Ne=E),b+=y,this.Oj(this.Qb[Ce],a,0,b,E,ee,Ne,x,re,oe,de),b+=ee+ye}switch(this.flip){case io:a.scale(-1,1),a.translate(-E,0);break;case Dr:a.scale(1,-1),a.translate(0,-z);break;case Io:a.scale(-1,-1),a.translate(-E,-z)}}},Ie.Oj=function(a,y,x,b,E,z,ee,re,oe,de,fe){var ye=0;if(re)oe==="left"?ye=0:oe==="right"?ye=E-ee:oe==="center"&&(ye=(E-ee)/2),y.fillRect(x+ye,b+.25*z,ee,1);else{if(oe==="left"?ye=0:oe==="right"?ye=E:oe==="center"&&(ye=E/2),E=Fm!==null?Fm(this,z):.75*z,y.fillText(a,x+ye,b+E),a=z/20|0,a===0&&(a=1),oe==="right"?ye-=ee:oe==="center"&&(ye-=ee/2),de){re=Bm!==null?Bm(this,z):.8*z,oe=x+ye,de=b+re,E=x+ye+ee,re=b+re;var Ce=a;y.beginPath(),y.lineWidth=Ce,y.moveTo(oe,de),y.lineTo(E,re),y.stroke(),y.Se(),y instanceof Gl&&y.ad.classList.add("gojs-td")}fe&&(fe=b+z-z/2.2|0,a%2!==0&&(fe+=.5),b=x+ye,z=fe,x=x+ye+ee,ee=fe,ye=a,y.beginPath(),y.lineWidth=ye,y.moveTo(b,z),y.lineTo(x,ee),y.stroke(),y.Se(),y instanceof Gl&&y.ad.classList.add("gojs-td"))}},Ie.kk=function(a,y,x){if(!Ot.prototype.kk.call(this,a,y,x))return!1;if(ya(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<y.length;x++)nS(a,y[x],!1)}else y=this.svg,y.innerHTML=this.text,nS(a,y,!0);return!0},Ie.nk=function(a){return 1<this.lineCount||this.isUnderline||this.isStrikethrough?!0:Ot.prototype.nk.call(this,a)},Ie.Dv=function(a,y){if(a.nodeName!=="g")a.setAttributeNS(null,"filter",y);else{a=a.getElementsByTagName("text");for(var x=0;x<a.length;x++)a[x].setAttributeNS(null,"filter",y)}},Ie.Wl=function(a,y,x,b){var E=this.Gc;this.Ih=a,this.l&=-16777217;var z=this.Ae;wl!==null&&IS!==z&&(IS=wl.font=z),this.Cb=this.Le=0,this.ze=this.Qb=this.Qc=this.df=null;var ee;if(isNaN(this.desiredSize.width)){if(z=this.ec.replace(/\r\n/g,`
|
|
|
`).replace(/\r/g,`
|
|
|
`),z.length===0)z=8;else if(this.isMultiline){for(var re=ee=0,oe=!1;!oe;){var de=z.indexOf(`
|
|
|
`,re);de===-1&&(de=z.length,oe=!0),re=z.substr(re,de-re),this.formatting===lp&&(re=re.trim()),ee=Math.max(ee,qu(re)),re=de+1}z=ee}else ee=z.indexOf(`
|
|
|
`,0),0<=ee&&(z=z.substr(0,ee)),z=qu(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)),ee=TS(this,z),isNaN(this.desiredSize.height)?ee=Math.min(ee,y/this.scale):ee=this.desiredSize.height,oe=ee,this.Cb!==0&&this.Qc!==null&&this.Qb!==null&&this.overflow===_m&&(y=this.Ae,y=this.overflow===_m?CS(y):0,de=this.spacingAbove+this.spacingBelow,de=Math.max(0,sp(this)+de),oe=Math.min(this.maxLines-1,Math.max(Math.floor(oe/de+.01)-1,0)),!(oe+1>=this.Qb.length))){for(this.l|=16777216,de=this.Qb[oe],y=Math.max(1,a-y);qu(de)>y&&1<de.length;)de=de.substr(0,de.length-1);de+=up,y=qu(de),this.Qb[oe]=de,this.Qb=this.Qb.slice(0,oe+1),this.Qc[oe]=y,this.Qc=this.Qc.slice(0,oe+1),this.Le=this.Qb.length,this.Cb=Math.max(this.Cb,y),this.Gc=this.Le,this.Gc===1&&(this.ze=this.Qb[0])}(this.wrap===AS||isNaN(this.desiredSize.width))&&(z=isNaN(a)?this.Cb:Math.min(a,this.Cb)),z=Math.max(x,z),ee=Math.max(b,ee),Xr(this.dc,z,ee),this.Ge(0,0,z,ee),this.svg!==null&&E!==this.Gc&&(this.Uc=!0)},Ie.eh=function(a,y,x,b){Xs(this,a,y,x,b)};function ap(a,y,x){a.ze===null?(a.ze=y,a.Cb=x):((a.Qb===null||a.Qc===null)&&(a.Qb=[],a.Qc=[],a.Qb.push(a.ze),a.Qc.push(a.Cb)),a.Qb.push(y),a.Qc.push(x),a.Qb.length>a.maxLines&&(a.l|=16777216))}function Lv(a,y,x,b){var E=a.formatting===lp;E&&(y=y.trim());var z=0,ee=a.Ae,re=a.spacingAbove+a.spacingBelow;re=Math.max(0,sp(a)+re);var oe=a.overflow===_m?CS(ee):0;if(a.Gc>=a.maxLines)b!==null&&b.h(0,re);else if(ee=y,a.wrap===Iv){a.Le=1;var de=qu(y);if(oe===0||de<=x)a.Cb=Math.max(a.Cb,de),ap(a,y,a.Cb),b!==null&&b.h(de,re);else{for(z=Qf(a,ee),ee=ee.substr(z.length),y=Qf(a,ee),de=qu(z+y);0<y.length&&de<=x;)z+=y,ee=ee.substr(y.length),y=Qf(a,ee),de=z+y,E&&(de=de.trim()),de=qu(de);for(E&&(y=y.trim()),z+=y,x=Math.max(1,x-oe);qu(z)>x&&1<z.length;)z=z.substr(0,z.length-1);a.l|=16777216,z+=up;var fe=qu(z);a.Cb=fe,ap(a,z,fe),b!==null&&b.h(fe,re)}}else{for(oe=0,ee.length===0&&(oe=1,ap(a,ee,0));0<ee.length;){for(y=Qf(a,ee),ee=ee.substr(y.length);qu(y)>x;){var ye=1;for(de=qu(y.substr(0,ye)),fe=0;de<=x;)ye++,fe=de,de=qu(y.substr(0,ye));if(ye===1){var Ce=de;z=Math.max(z,de)}else Ce=fe,z=Math.max(z,fe);if(ye--,1>ye&&(ye=1),ap(a,y.substr(0,ye),Ce),oe++,y=y.substr(ye),a.Gc+oe>a.maxLines)break}for(fe=Qf(a,ee),de=qu(y+fe);0<fe.length&&de<=x;)y+=fe,ee=ee.substr(fe.length),fe=Qf(a,ee),de=y+fe,E&&(de=de.trim()),de=qu(de);if(E&&(y=y.trim()),y!==""&&(y[y.length-1]==="\xAD"&&(y=y.substring(0,y.length-1)+"\u2010"),fe.length===0?(ye=de,z=Math.max(z,de)):(ye=fe=qu(y),z=Math.max(z,fe)),ap(a,y,ye),oe++,a.Gc+oe>a.maxLines))break}a.Le=Math.min(a.maxLines,oe),a.Cb=Math.max(a.Cb,z),b!==null&&b.h(a.Cb,re*a.Le)}}function Qf(a,y){if(a.wrap===PS)return y.substr(0,1);for(var x=y.length,b=0,E=kx;b<x&&!E.test(y.charAt(b));)b++;for(a.formatting===kS&&(x=Math.min(x,b+1));b<x&&E.test(y.charAt(b));)b++;return b>=y.length?y:y.substr(0,b)}function qu(a){return wl===null?8*a.length:wl.measureText(a).width}function sp(a){if(a.df!==null)return a.df;var y=a.Ae;if(wl===null){var x=16;return a.df=x}return Ov[y]!==void 0&&5e3>LS?x=Ov[y]:(x=1.3*wl.measureText("M").width,Ov[y]=x,LS++),a.df=x}function CS(a){if(wl===null)return 6;if(Um[a]!==void 0&&5e3>Dv)var y=Um[a];else y=wl.measureText(up).width,Um[a]=y,Dv++;return y}function TS(a,y){var x=a.ec.replace(/\r\n/g,`
|
|
|
`).replace(/\r/g,`
|
|
|
`),b=a.spacingAbove+a.spacingBelow;if(b=Math.max(0,sp(a)+b),x.length===0)return a.Cb=0,a.Gc=1,b;if(!a.isMultiline){var E=x.indexOf(`
|
|
|
`,0);0<=E&&(x=x.substr(0,E))}E=0;for(var z=a.Gc=0,ee,re=!1;!re;){if(ee=x.indexOf(`
|
|
|
`,z),ee===-1&&(ee=x.length,re=!0),z<=ee){if(z=x.substr(z,ee-z),a.wrap!==Iv){a.Le=0;var oe=Ln.alloc();Lv(a,z,y,oe),E+=oe.height,Ln.free(oe),a.Gc+=a.Le}else Lv(a,z,y,null),E+=b,a.Gc++;a.Gc===a.maxLines&&(re=!0)}z=ee+1}return a.Lq=E}jt.Object.defineProperties(Ko.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"||(Tc(this),this.da.Or=a,this.N(),this.g("textAlign",y,a))}},flip:{get:function(){return this.da!==null?this.da.Xf:Mn},set:function(a){var y=this.flip;y!==a&&(Tc(this),this.da.Xf=a,this.N(),this.g("flip",y,a))}},verticalAlignment:{get:function(){return this.da!==null?this.da.Yr:Cu},set:function(a){var y=this.verticalAlignment;y.D(a)||(a=a.J(),Tc(this),this.da.Yr=a,rl(this),this.g("verticalAlignment",y,a))}},naturalBounds:{get:function(){if(!this.dc.w()){var a=Ln.alloc();Lv(this,this.ec,999999,a);var y=a.width;Ln.free(a),a=TS(this,y);var x=this.desiredSize;isNaN(x.width)||(y=x.width),isNaN(x.height)||(a=x.height),Xr(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:Mv},set:function(a){var y=this.wrap;y!==a&&(Tc(this),this.da.$r=a,this.v(),this.g("wrap",y,a))}},overflow:{get:function(){return this.da!==null?this.da.$q:Rv},set:function(a){var y=this.overflow;y!==a&&(Tc(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&&sf(a,"TextBlock.stroke"),a instanceof Co&&a.freeze(),this.xc=a,this.N(),this.g("stroke",y,a))}},lineCount:{get:function(){return this.Gc}},lineHeight:{get:function(){return sp(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&&(Tc(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&&(Tc(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 zc),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:1<a&&(a=1),this.fa===null&&(this.fa=new zc),this.fa.u=a,this.v(),this.g("graduatedStart",y,a))}},graduatedEnd:{get:function(){return this.fa!==null?this.fa.j:1},set:function(a){var y=this.graduatedEnd;y!==a&&(0>a?a=0:1<a&&(a=1),this.fa===null&&(this.fa=new zc),this.fa.j=a,this.v(),this.g("graduatedEnd",y,a))}},graduatedFunction:{get:function(){return this.fa!==null?this.fa.F:null},set:function(a){var y=this.graduatedFunction;y!==a&&(this.fa===null&&(this.fa=new zc),this.fa.F=a,this.v(),this.g("graduatedFunction",y,a))}},graduatedSkip:{get:function(){return this.fa!==null?this.fa.o:null},set:function(a){var y=this.graduatedSkip;y!==a&&(this.fa===null&&(this.fa=new zc),this.fa.o=a,this.v(),this.g("graduatedSkip",y,a))}},textValidation:{get:function(){return this.da!==null?this.da.vj:null},set:function(a){var y=this.textValidation;y!==a&&(Tc(this),this.da.vj=a,this.g("textValidation",y,a))}},textEdited:{get:function(){return this.da!==null?this.da.Pr:null},set:function(a){var y=this.textEdited;y!==a&&(Tc(this),this.da.Pr=a,this.g("textEdited",y,a))}},spacingAbove:{get:function(){return this.da!==null?this.da.Dr:0},set:function(a){var y=this.spacingAbove;y!==a&&(Tc(this),this.da.Dr=a,this.v(),this.g("spacingAbove",y,a))}},spacingBelow:{get:function(){return this.da!==null?this.da.Er:0},set:function(a){var y=this.spacingBelow;y!==a&&(Tc(this),this.da.Er=a,this.v(),this.g("spacingBelow",y,a))}},formatting:{get:function(){return this.da!==null?this.da.gq:lp},set:function(a){var y=this.formatting;y!==a&&(Tc(this),this.da.gq=a,this.v(),this.g("formatting",y,a))}},maxLines:{get:function(){return this.da!==null?this.da.Jq:1/0},set:function(a){var y=this.maxLines;y!==a&&(a=Math.floor(a),0>=a&&ri(a,"> 0",Ko,"maxLines"),Tc(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 Fm=null,Bm=null,Iv=new mn(Ko,"None",0),AS=new mn(Ko,"WrapFit",1),Mv=new mn(Ko,"WrapDesiredSize",2),PS=new mn(Ko,"WrapBreakAll",3),Rv=new mn(Ko,"OverflowClip",0),_m=new mn(Ko,"OverflowEllipsis",1),lp=new mn(Ko,"FormatTrim",0),kS=new mn(Ko,"FormatNone",0),kx=/[ \u200b\u00ad]/,Ov=new Ji,LS=0,Um=new Ji,Dv=0,up="...",IS="",wl=null,zm=!1;Ko.className="TextBlock";function Fv(){this.nc=!1,this.Hd=null,this.Xf=Mn,this.gq=lp,this.Jq=1/0,this.$q=Rv,this.Er=this.Dr=0,this.Or="start",this.vj=this.Qr=this.Pr=null,this.Yr=Cu,this.$r=Mv}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},Ko.getEllipsis=function(){return up},Ko.setEllipsis=function(a){up=a,Um=new Ji,Dv=0},Ko.getBaseline=function(){return Fm},Ko.setBaseline=function(a){Fm=a},Ko.getUnderline=function(){return Bm},Ko.setUnderline=function(a){Bm=a},Ko.isValidFont=function(a){if(zm||(wl=va?new Mu(null).context:null,zm=!0),wl===null)return!0;var y=wl.font;if(a===y||a==="10px sans-serif")return!0;wl.font="10px sans-serif",wl.font=a;var x=wl.font;if(x!=="10px sans-serif")return wl.font=y,!0;wl.font="19px serif";var b=wl.font;return wl.font=a,x=wl.font,wl.font=y,x!==b},Ko.FormatNone=kS,Ko.FormatTrim=lp,Ko.None=Iv,Ko.OverflowClip=Rv,Ko.OverflowEllipsis=_m,Ko.WrapBreakAll=PS,Ko.WrapDesiredSize=Mv,Ko.WrapFit=AS;function zc(){this.Tk=1,this.u=0,this.j=1,this.o=this.F=null}zc.prototype.copy=function(){var a=new zc;return a.Tk=this.Tk,a.u=this.u,a.j=this.j,a.F=this.F,a.o=this.o,a},zc.className="GradElementSettings";function Cl(a,y){Ot.call(this),this.Eg=null,this.qo="",this.Xg=us,this.Nk=Wn,this.Zg=this.Hd=null,this.Mk=mr,this.Xf=Mn,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 Jf;Wt(Cl,Ot),Cl.prototype.cloneProtected=function(a){Ot.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},Cl.prototype.qb=function(a){a===Mn||a===Ui||a===Yr?this.imageStretch=a:Ot.prototype.qb.call(this,a)},Cl.prototype.toString=function(){return"Picture("+this.source+")#"+gr(this)};function qf(a){a===void 0&&(a=""),a!==""?Jf[a]&&(delete Jf[a],Hm--):(Jf=new Ji,Hm=0)}function MS(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 E=b.value;E.N();var z=y.getAttribute("src")||"",ee=E.Og.I(z);if(ee!==null)for(var re=ee.length,oe=0;oe<re;oe++)z=ee[oe],E.Xn.add(z),z.Uc=!0,E.$b(),y.hn&&(y.eu===void 0&&(y.eu=x),z.Zg!==null&&z.Zg(z,x))}y.Bg.clear()}a.desiredSize.w()||(za(a,!1),a.v())},y.Yp=function(x){y.ln=x;var b=y.Bg.copy();if(b!=null){for(b=b.iterator;b.next();){var E=b.value,z=y.getAttribute("src")||"",ee=E.Og.I(z);if(ee!==null){E=ee.length,z=Mi();for(var re=0;re<E;re++)z.push(ee[re]);if(y.hn)for(re=0;re<E;re++)ee=z[re],ee.Hd!==null&&ee.Hd(ee,x);ui(z)}}y.Bg.clear()}},y.addEventListener("load",y.Fq),y.addEventListener("error",y.Yp),y.qy=!0)}Cl.prototype.hA=function(){if(this.source!==""){qf(this.source);var a=this.source;this.source="",this.source=a}},Cl.prototype.redraw=function(){this.N(),this.Uc=!0},Cl.prototype.hh=function(a,y){var x=this.Eg;if(x!==null){var b=x.getAttribute("src");if(!(x instanceof HTMLImageElement&&(b===null||b==="")||x.ln instanceof Event&&a instanceof Mh)){var E=a instanceof Gl;b=this.naturalBounds;var z=0,ee=0,re=this.qn,oe=re?+x.width:x.naturalWidth;if(re=re?+x.height:x.naturalHeight,oe===void 0&&x.videoWidth&&(oe=x.videoWidth),re===void 0&&x.videoHeight&&(re=x.videoHeight),oe=oe||b.width,re=re||b.height,oe!==0&&re!==0){var de=oe,fe=re;this.sourceRect.w()&&(z=this.Xg.x,ee=this.Xg.y,oe=this.Xg.width,re=this.Xg.height);var ye=oe,Ce=re,Ne=this.Nk,Oe=this.Mk;switch(Ne){case Mn:if(this.sourceRect.w())break;ye>=b.width&&(z=z+Oe.offsetX+(ye*Oe.x-b.width*Oe.x)),Ce>=b.height&&(ee=ee+Oe.offsetY+(Ce*Oe.y-b.height*Oe.y)),oe=Math.min(b.width,ye),re=Math.min(b.height,Ce);break;case Wn:ye=b.width,Ce=b.height;break;case Ui:case Yr:Ne===Ui?(Ne=Math.min(b.height/Ce,b.width/ye),ye*=Ne,Ce*=Ne):Ne===Yr&&(Ne=Math.max(b.height/Ce,b.width/ye),ye*=Ne,Ce*=Ne,ye>=b.width&&(z=(z+Oe.offsetX+(ye*Oe.x-b.width*Oe.x)/ye)*oe),Ce>=b.height&&(ee=(ee+Oe.offsetY+(Ce*Oe.y-b.height*Oe.y)/Ce)*re),oe*=1/(ye/b.width),re*=1/(Ce/b.height),ye=b.width,Ce=b.height)}Ne=this.Df()*y.scale;var Ve=ye*Ne*Ce*Ne,ft=oe*re/Ve,lt=x.__goCache;Ne=null;var mt=Lx;if(!E){if(x.sq&<!==void 0&&4<Ve&&ft>mt*mt)for(lt.gi===null&&(OS(lt,4,de,fe,x),OS(lt,16,de,fe,x)),E=lt.gi,de=E.length,fe=0;fe<de&&E[fe].ratio*E[fe].ratio<ft;fe++)Ne=E[fe];if(!y.Xm){if(this.vl===null)if(this.Eg===null)this.vl=!1;else{E=new Mu(null).context;try{E.drawImage(this.Eg,0,0)}catch(St){this.en=!1}try{E.getImageData(0,0,1,1).data[3]&&(this.vl=!1),this.vl=!1}catch(St){this.vl=!0}}if(this.vl)return}}switch(E=ye<b.width?Oe.offsetX+(b.width*Oe.x-ye*Oe.x):0,Oe=Ce<b.height?Oe.offsetY+(b.height*Oe.y-Ce*Oe.y):0,this.flip){case io:a.translate(Math.min(b.width,ye),0),a.scale(-1,1);break;case Dr:a.translate(0,Math.min(b.height,Ce)),a.scale(1,-1);break;case Io:a.translate(Math.min(b.width,ye),Math.min(b.height,Ce)),a.scale(-1,-1)}if(a.yc(),y.Gf("pictureRatioOptimization")&&!y.$i&<!==void 0&&Ne!==null&&Ne.ratio!==1){a.save(),y=Ne.ratio;try{a.drawImage(Ne.source,z/y,ee/y,Math.min(Ne.source.width,oe/y),Math.min(Ne.source.height,re/y),E,Oe,Math.min(b.width,ye),Math.min(b.height,Ce)),a instanceof Gl&&(this.bt=[z/y,ee/y,Math.min(Ne.source.width,oe/y),Math.min(Ne.source.height,re/y),E,Oe,Math.min(b.width,ye),Math.min(b.height,Ce)])}catch(St){this.en=!1}a.restore()}else try{a.drawImage(x,z,ee,oe,re,E,Oe,Math.min(b.width,ye),Math.min(b.height,Ce)),a instanceof Gl&&(this.bt=[z,ee,oe,re,E,Oe,Math.min(b.width,ye),Math.min(b.height,Ce)])}catch(St){this.en=!1}switch(this.flip){case io:a.scale(-1,1),a.translate(-Math.min(b.width,ye),0);break;case Dr:a.scale(1,-1),a.translate(0,-Math.min(b.height,Ce));break;case Io:a.scale(-1,-1),a.translate(-Math.min(b.width,ye),-Math.min(b.height,Ce))}}}}},Cl.prototype.Wl=function(a,y,x,b){var E=this.desiredSize,z=El(this,!0),ee=this.Eg,re=this.qn,oe=0,de=0;(re||!this.al&&ee&&ee.complete)&&(this.al=!0),ee===null?(isFinite(E.width)||(a=0),isFinite(E.height)||(y=0)):(oe=re?+ee.width:ee.naturalWidth,de=re?+ee.height:ee.naturalHeight),isFinite(E.width)||z===Wn||z===ji?(isFinite(a)||(this.sourceRect.w()?a=this.sourceRect.width:ee!==null&&(a=oe)),x=0):ee!==null&&this.al!==!1&&(a=this.sourceRect.w()?this.sourceRect.width:oe),isFinite(E.height)||z===Wn||z===nr?(isFinite(y)||(this.sourceRect.w()?y=this.sourceRect.height:ee!==null&&(y=de)),b=0):ee!==null&&this.al!==!1&&(y=this.sourceRect.w()?this.sourceRect.height:de),isFinite(E.width)&&(a=E.width),isFinite(E.height)&&(y=E.height),E=this.maxSize,z=this.minSize,x=Math.max(x||0,z.width),b=Math.max(b||0,z.height),a=Math.min(E.width,a),y=Math.min(E.height,y),a=Math.max(x,a),y=Math.max(b,y),ee===null||ee.complete||(isFinite(a)||(a=0),isFinite(y)||(y=0)),Xr(this.dc,a,y),this.Ge(0,0,a,y)},Cl.prototype.eh=function(a,y,x,b){Xs(this,a,y,x,b)},jt.Object.defineProperties(Cl.prototype,{element:{get:function(){return this.Eg},set:function(a){var y=this.Eg;if(this.Uc=!0,y!==a){this.qn=a instanceof HTMLCanvasElement;var x=a instanceof HTMLImageElement;a===null||x||a instanceof HTMLVideoElement||this.qn||vt("Picture.element must be an instance of Image, Canvas, or Video, not: "+a);var b=this.diagram;b!==null&&jg(b,this),this.Eg=a,a!==null&&x&&a.Bg===void 0&&(a.Bg=new Bn),b!==null&&x&&Vd(b,this),a!==null&&(this.qn||a.complete===!0?(a.hn&&(a.ln instanceof Event&&this.Hd!==null?this.Hd(this,a.ln):a.sq===!0&&!a.ln&&this.Zg!==null&&a.eu&&this.Zg(this,a.eu)),a.sq=!0,this.desiredSize.w()||(za(this,!1),this.v())):x&&MS(this,a)),this.g("element",y,a),this.N()}}},source:{get:function(){return this.qo},set:function(a){var y=this.qo;if(y!==a){this.Uc=!0,this.qo=a;var x=Jf;if(va){var b=null;if(x[a]!==void 0)b=x[a];else if(a!==""){30<Hm&&(qf(),x=Jf),b=li("img"),b.hn=!0,MS(this,b);var E=this.rl;E!==null&&(b.crossOrigin=E(this)),b.src=a,x[a]=b,Hm++}this.element=b,b!==null&&b.__goCache===void 0&&(b.__goCache=new RS),this.v(),this.N()}this.g("source",y,a)}}},sourceCrossOrigin:{get:function(){return this.rl},set:function(a){if(this.rl!==a&&(this.rl=a,this.element!==null)){var y=this.element.getAttribute("src");a===null&&typeof y=="string"?this.element.crossOrigin=null:a!==null&&(this.element.crossOrigin=a(this)),this.element.src=y}}},sourceRect:{get:function(){return this.Xg},set:function(a){var y=this.Xg;y.D(a)||(this.Xg=a=a.J(),this.N(),this.g("sourceRect",y,a))}},imageStretch:{get:function(){return this.Nk},set:function(a){var y=this.Nk;y!==a&&(this.Nk=a,this.N(),this.g("imageStretch",y,a))}},flip:{get:function(){return this.Xf},set:function(a){var y=this.Xf;y!==a&&(this.Xf=a,this.N(),this.g("flip",y,a))}},imageAlignment:{get:function(){return this.Mk},set:function(a){var y=this.Mk;y.D(a)||(this.Mk=a=a.J(),this.N(),this.g("imageAlignment",y,a))}},errorFunction:{get:function(){return this.Hd},set:function(a){var y=this.Hd;y!==a&&(this.Hd=a,this.g("errorFunction",y,a))}},successFunction:{get:function(){return this.Zg},set:function(a){var y=this.Zg;y!==a&&(this.Zg=a,this.g("successFunction",y,a))}},naturalBounds:{get:function(){return this.dc}}}),Cl.prototype.redraw=Cl.prototype.redraw,Cl.prototype.reloadSource=Cl.prototype.hA;var Hm=0,Lx=4;Cl.className="Picture",Jf=new Ji,Cl.clearCache=qf;function RS(){this.gi=null}function OS(a,y,x,b,E){a.gi===null&&(a.gi=[]);var z=new Mu(null),ee=z.context,re=1/y;z.width=x/y,z.height=b/y,z.width!==0&&z.height!==0&&(y=new DS(z.Oa,y),x=1,0<a.gi.length&&(x=a.gi[a.gi.length-1],E=x.source,x=x.ratio),ee.setTransform(re*x,0,0,re*x,0,0),ee.yc(),ee.drawImage(E,0,0),a.gi.push(y))}RS.className="PictureCacheArray";function DS(a,y){this.source=a,this.ratio=y}DS.className="PictureCacheInstance";function $f(){this.os=new Jn,this.mc=null}$f.prototype.reset=function(a){a!==null?(a.ka(),this.os=a,a.figures.clear()):this.os=new Jn,this.mc=null};function eg(a,y,x,b,E,z){a.mc=new ba,a.mc.startX=y,a.mc.startY=x,a.mc.isFilled=b,a.mc.isEvenOdd=z||!1,a.os.figures.add(a.mc),E!==void 0&&(a.mc.isShadowed=E)}function Ix(a){var y=a.mc.segments.length;0<y&&a.mc.segments.M(y-1).close()}$f.prototype.moveTo=function(a,y,x){x===void 0&&(x=!1);var b=new $r(Xo);b.endX=a,b.endY=y,x&&b.close(),this.mc.segments.add(b)},$f.prototype.lineTo=function(a,y,x){x===void 0&&(x=!1);var b=new $r(No);b.endX=a,b.endY=y,x&&b.close(),this.mc.segments.add(b)};function Ed(a,y,x,b,E,z,ee){var re;re===void 0&&(re=!1);var oe=new $r(Ca);oe.point1X=y,oe.point1Y=x,oe.point2X=b,oe.point2Y=E,oe.endX=z,oe.endY=ee,re&&oe.close(),a.mc.segments.add(oe)}function jm(a,y,x,b,E){var z;z===void 0&&(z=!1);var ee=new $r(Bs);ee.point1X=y,ee.point1Y=x,ee.endX=b,ee.endY=E,z&&ee.close(),a.mc.segments.add(ee)}$f.prototype.arcTo=function(a,y,x,b,E,z,ee){z===void 0&&(z=0),ee===void 0&&(ee=!1);var re=new $r(ma);re.startAngle=a,re.sweepAngle=y,re.centerX=x,re.centerY=b,re.radiusX=E,re.radiusY=z!==0?z:E,ee&&re.close(),this.mc.segments.add(re)};function Mx(a,y,x,b,E,z,ee,re){var oe;oe===void 0&&(oe=!1),y=new $r(Vs,ee,re,y,x,b,E,z),oe&&y.close(),a.mc.segments.add(y)}function FS(a){var y=Gm;return y!==null?(Gm=null,y.reset(a),y):(y=new $f,y.reset(a),y)}var Gm=null;$f.className="StreamGeometryContext";function js(a,y){var x=a.toLowerCase(),b=Bt.Ze;b[a]=y,b[x]=a}js("Rectangle",function(a,y,x){a="r"+y+","+x;var b=Bt.Mf[a];return b!==void 0||(b=new Jn(Jn.u),b.endX=y,b.endY=x,Bt.Nf<Bt.vm&&(Bt.Mf[a]=b,Bt.Nf++)),b}),js("Square",function(a,y,x){a="s"+y+","+x;var b=Bt.Mf[a];return b!==void 0||(b=new Jn(Jn.u),b.endX=y,b.endY=x,b.defaultStretch=Ui,Bt.Nf<Bt.vm&&(Bt.Mf[a]=b,Bt.Nf++)),b}),js("RoundedRectangle",function(a,y,x){a=a?a.parameter1:NaN,(isNaN(a)||0>a)&&(a=5),a=Math.min(a,y/3),a=Math.min(a,x/3);var b="rr"+y+","+x+","+a,E=Bt.Mf[b];if(E!==void 0)return E;var z=a*Bt.wg;return E=new Jn().add(new ba(a,0,!0).add(new $r(No,y-a,0)).add(new $r(Ca,y,a,y-z,0,y,z)).add(new $r(No,y,x-a)).add(new $r(Ca,y-a,x,y,x-z,y-z,x)).add(new $r(No,a,x)).add(new $r(Ca,0,x-a,z,x,0,x-z)).add(new $r(No,0,a)).add(new $r(Ca,a,0,0,z,z,0).close())),1<z&&(E.spot1=new Ut(0,0,z,z),E.spot2=new Ut(1,1,-z,-z)),Bt.Nf<Bt.vm&&(Bt.Mf[b]=E,Bt.Nf++),E}),js("Border","RoundedRectangle"),js("Ellipse",function(a,y,x){a="e"+y+","+x;var b=Bt.Mf[a];return b!==void 0||(b=new Jn(Jn.F),b.endX=y,b.endY=x,b.spot1=ia,b.spot2=Eo,Bt.Nf<Bt.vm&&(Bt.Mf[a]=b,Bt.Nf++)),b}),js("Circle",function(a,y,x){a="c"+y+","+x;var b=Bt.Mf[a];return b!==void 0||(b=new Jn(Jn.F),b.endX=y,b.endY=x,b.spot1=ia,b.spot2=Eo,b.defaultStretch=Ui,Bt.Nf<Bt.vm&&(Bt.Mf[a]=b,Bt.Nf++)),b}),js("TriangleRight",function(a,y,x){return new Jn().add(new ba(0,0).add(new $r(No,y,.5*x)).add(new $r(No,0,x).close())).pm(0,.25,.5,.75)}),js("TriangleDown",function(a,y,x){return new Jn().add(new ba(0,0).add(new $r(No,y,0)).add(new $r(No,.5*y,x).close())).pm(.25,0,.75,.5)}),js("TriangleLeft",function(a,y,x){return new Jn().add(new ba(y,x).add(new $r(No,0,.5*x)).add(new $r(No,y,0).close())).pm(.5,.25,1,.75)}),js("TriangleUp",function(a,y,x){return new Jn().add(new ba(y,x).add(new $r(No,0,x)).add(new $r(No,.5*y,0).close())).pm(.25,.5,.75,1)}),js("Triangle","TriangleUp"),js("Diamond",function(a,y,x){return new Jn().add(new ba(.5*y,0).add(new $r(No,0,.5*x)).add(new $r(No,.5*y,x)).add(new $r(No,y,.5*x).close())).pm(.25,.25,.75,.75)}),js("LineH",function(a,y,x){return a=new Jn(Jn.j),a.startX=0,a.startY=x/2,a.endX=y,a.endY=x/2,a}),js("LineV",function(a,y,x){return a=new Jn(Jn.j),a.startX=y/2,a.startY=0,a.endX=y/2,a.endY=x,a}),js("None","Rectangle"),js("BarH","Rectangle"),js("BarV","Rectangle"),js("MinusLine","LineH"),js("PlusLine",function(a,y,x){return new Jn().add(new ba(0,x/2,!1).add(new $r(No,y,x/2)).add(new $r(Xo,y/2,0)).add(new $r(No,y/2,x)))}),js("XLine",function(a,y,x){return new Jn().add(new ba(0,x,!1).add(new $r(No,y,0)).add(new $r(Xo,0,0)).add(new $r(No,y,x)))}),js("LineRight",function(a,y,x){return new Jn().add(new ba(.25*y,0,!1).add(new $r(No,.75*y,.5*x)).add(new $r(No,.25*y,x)))}),js("LineDown",function(a,y,x){return new Jn().add(new ba(0,.25*x,!1).add(new $r(No,.5*y,.75*x)).add(new $r(No,y,.25*x)))}),js("LineLeft",function(a,y,x){return new Jn().add(new ba(.75*y,0,!1).add(new $r(No,.25*y,.5*x)).add(new $r(No,.75*y,x)))}),js("LineUp",function(a,y,x){return new Jn().add(new ba(0,.75*x,!1).add(new $r(No,.5*y,.25*x)).add(new $r(No,y,.75*x)))}),Bt.um={"":"",Standard:"F1 m 0,0 l 8,4 -8,4 2,-4 z",Backward:"F1 m 8,0 l -2,4 2,4 -8,-4 z",Triangle:"F1 m 0,0 l 8,4.62 -8,4.62 z",BackwardTriangle:"F1 m 8,4 l 0,4 -8,-4 8,-4 0,4 z",Boomerang:"F1 m 0,0 l 8,4 -8,4 4,-4 -4,-4 z",BackwardBoomerang:"F1 m 8,0 l -8,4 8,4 -4,-4 4,-4 z",SidewaysV:"m 0,0 l 8,4 -8,4 0,-1 6,-3 -6,-3 0,-1 z",BackwardV:"m 8,0 l -8,4 8,4 0,-1 -6,-3 6,-3 0,-1 z",OpenTriangle:"m 0,0 l 8,4 -8,4",BackwardOpenTriangle:"m 8,0 l -8,4 8,4",OpenTriangleLine:"m 0,0 l 8,4 -8,4 m 8.5,0 l 0,-8",BackwardOpenTriangleLine:"m 8,0 l -8,4 8,4 m -8.5,0 l 0,-8",OpenTriangleTop:"m 0,0 l 8,4 m 0,4",BackwardOpenTriangleTop:"m 8,0 l -8,4 m 0,4",OpenTriangleBottom:"m 0,8 l 8,-4",BackwardOpenTriangleBottom:"m 0,4 l 8,4",HalfTriangleTop:"F1 m 0,0 l 0,4 8,0 z m 0,8",BackwardHalfTriangleTop:"F1 m 8,0 l 0,4 -8,0 z m 0,8",HalfTriangleBottom:"F1 m 0,4 l 0,4 8,-4 z",BackwardHalfTriangleBottom:"F1 m 8,4 l 0,4 -8,-4 z",ForwardSemiCircle:"m 4,0 b 270 180 0 4 4",BackwardSemiCircle:"m 4,8 b 90 180 0 -4 4",Feather:"m 0,0 l 3,4 -3,4",BackwardFeather:"m 3,0 l -3,4 3,4",DoubleFeathers:"m 0,0 l 3,4 -3,4 m 3,-8 l 3,4 -3,4",BackwardDoubleFeathers:"m 3,0 l -3,4 3,4 m 3,-8 l -3,4 3,4",TripleFeathers:"m 0,0 l 3,4 -3,4 m 3,-8 l 3,4 -3,4 m 3,-8 l 3,4 -3,4",BackwardTripleFeathers:"m 3,0 l -3,4 3,4 m 3,-8 l -3,4 3,4 m 3,-8 l -3,4 3,4",ForwardSlash:"m 0,8 l 5,-8",BackSlash:"m 0,0 l 5,8",DoubleForwardSlash:"m 0,8 l 4,-8 m -2,8 l 4,-8",DoubleBackSlash:"m 0,0 l 4,8 m -2,-8 l 4,8",TripleForwardSlash:"m 0,8 l 4,-8 m -2,8 l 4,-8 m -2,8 l 4,-8",TripleBackSlash:"m 0,0 l 4,8 m -2,-8 l 4,8 m -2,-8 l 4,8",Fork:"m 0,4 l 8,0 m -8,0 l 8,-4 m -8,4 l 8,4",BackwardFork:"m 8,4 l -8,0 m 8,0 l -8,-4 m 8,4 l -8,4",LineFork:"m 0,0 l 0,8 m 0,-4 l 8,0 m -8,0 l 8,-4 m -8,4 l 8,4",BackwardLineFork:"m 8,4 l -8,0 m 8,0 l -8,-4 m 8,4 l -8,4 m 8,-8 l 0,8",CircleFork:"F1 m 6,4 b 0 360 -3 0 3 z m 0,0 l 6,0 m -6,0 l 6,-4 m -6,4 l 6,4",BackwardCircleFork:"F1 m 0,4 l 6,0 m -6,-4 l 6,4 m -6,4 l 6,-4 m 6,0 b 0 360 -3 0 3",CircleLineFork:"F1 m 6,4 b 0 360 -3 0 3 z m 1,-4 l 0,8 m 0,-4 l 6,0 m -6,0 l 6,-4 m -6,4 l 6,4",BackwardCircleLineFork:"F1 m 0,4 l 6,0 m -6,-4 l 6,4 m -6,4 l 6,-4 m 0,-4 l 0,8 m 7,-4 b 0 360 -3 0 3",Circle:"F1 m 8,4 b 0 360 -4 0 4 z",Block:"F1 m 0,0 l 0,8 8,0 0,-8 z",StretchedDiamond:"F1 m 0,3 l 5,-3 5,3 -5,3 -5,-3 z",Diamond:"F1 m 0,4 l 4,-4 4,4 -4,4 -4,-4 z",Chevron:"F1 m 0,0 l 5,0 3,4 -3,4 -5,0 3,-4 -3,-4 z",StretchedChevron:"F1 m 0,0 l 8,0 3,4 -3,4 -8,0 3,-4 -3,-4 z",NormalArrow:"F1 m 0,2 l 4,0 0,-2 4,4 -4,4 0,-2 -4,0 z",X:"m 0,0 l 8,8 m 0,-8 l -8,8",TailedNormalArrow:"F1 m 0,0 l 2,0 1,2 3,0 0,-2 2,4 -2,4 0,-2 -3,0 -1,2 -2,0 1,-4 -1,-4 z",DoubleTriangle:"F1 m 0,0 l 4,4 -4,4 0,-8 z m 4,0 l 4,4 -4,4 0,-8 z",BigEndArrow:"F1 m 0,0 l 5,2 0,-2 3,4 -3,4 0,-2 -5,2 0,-8 z",ConcaveTailArrow:"F1 m 0,2 h 4 v -2 l 4,4 -4,4 v -2 h -4 l 2,-2 -2,-2 z",RoundedTriangle:"F1 m 0,1 a 1,1 0 0 1 1,-1 l 7,3 a 0.5,1 0 0 1 0,2 l -7,3 a 1,1 0 0 1 -1,-1 l 0,-6 z",SimpleArrow:"F1 m 1,2 l -1,-2 2,0 1,2 -1,2 -2,0 1,-2 5,0 0,-2 2,2 -2,2 0,-2 z",AccelerationArrow:"F1 m 0,0 l 0,8 0.2,0 0,-8 -0.2,0 z m 2,0 l 0,8 1,0 0,-8 -1,0 z m 3,0 l 2,0 2,4 -2,4 -2,0 0,-8 z",BoxArrow:"F1 m 0,0 l 4,0 0,2 2,0 0,-2 2,4 -2,4 0,-2 -2,0 0,2 -4,0 0,-8 z",TriangleLine:"F1 m 8,4 l -8,-4 0,8 8,-4 z m 0.5,4 l 0,-8",CircleEndedArrow:"F1 m 10,4 l -2,-3 0,2 -2,0 0,2 2,0 0,2 2,-3 z m -4,0 b 0 360 -3 0 3 z",DynamicWidthArrow:"F1 m 0,3 l 2,0 2,-1 2,-2 2,4 -2,4 -2,-2 -2,-1 -2,0 0,-2 z",EquilibriumArrow:"m 0,3 l 8,0 -3,-3 m 3,5 l -8,0 3,3",FastForward:"F1 m 0,0 l 3.5,4 0,-4 3.5,4 0,-4 1,0 0,8 -1,0 0,-4 -3.5,4 0,-4 -3.5,4 0,-8 z",Kite:"F1 m 0,4 l 2,-4 6,4 -6,4 -2,-4 z",HalfArrowTop:"F1 m 0,0 l 4,4 4,0 -8,-4 z m 0,8",HalfArrowBottom:"F1 m 0,8 l 4,-4 4,0 -8,4 z",OpposingDirectionDoubleArrow:"F1 m 0,4 l 2,-4 0,2 4,0 0,-2 2,4 -2,4 0,-2 -4,0 0,2 -2,-4 z",PartialDoubleTriangle:"F1 m 0,0 4,3 0,-3 4,4 -4,4 0,-3 -4,3 0,-8 z",LineCircle:"F1 m 0,0 l 0,8 m 7 -4 b 0 360 -3 0 3 z",DoubleLineCircle:"F1 m 0,0 l 0,8 m 2,-8 l 0,8 m 7 -4 b 0 360 -3 0 3 z",TripleLineCircle:"F1 m 0,0 l 0,8 m 2,-8 l 0,8 m 2,-8 l 0,8 m 7 -4 b 0 360 -3 0 3 z",CircleLine:"F1 m 6 4 b 0 360 -3 0 3 z m 1,-4 l 0,8",DiamondCircle:"F1 m 8,4 l -4,4 -4,-4 4,-4 4,4 m 8,0 b 0 360 -4 0 4 z",PlusCircle:"F1 m 8,4 b 0 360 -4 0 4 l -8 0 z m -4 -4 l 0 8",OpenRightTriangleTop:"m 8,0 l 0,4 -8,0 m 0,4",OpenRightTriangleBottom:"m 8,8 l 0,-4 -8,0",Line:"m 0,0 l 0,8",DoubleLine:"m 0,0 l 0,8 m 2,0 l 0,-8",TripleLine:"m 0,0 l 0,8 m 2,0 l 0,-8 m 2,0 l 0,8",PentagonArrow:"F1 m 8,4 l -4,-4 -4,0 0,8 4,0 4,-4 z"};function Bv(){this.nc=!1,this.tr=this.Kp=this.zq=null,this.vr="",this.fr=this.oq=this.ur=null,this.hr="",this.gr=jr,this.ir=null,this.jr="",this.lr=Da,this.Gq="",this.Hq=Qi,this.Pq=Qn,this.Kq=yi,this.Up=null,this.Cq=127,this.zr=Ci,this.yr="gray",this.Vg=4}Bv.prototype.copy=function(){var a=new Bv;return a.zq=this.zq,a.Kp=this.Kp,a.tr=this.tr,a.vr=this.vr,a.ur=this.ur,a.oq=this.oq,a.fr=this.fr,a.hr=this.hr,a.gr=this.gr.J(),a.ir=this.ir,a.jr=this.jr,a.lr=this.lr.J(),a.Gq=this.Gq,a.Hq=this.Hq.J(),a.Pq=this.Pq.J(),a.Kq=this.Kq.J(),a.Up=this.Up,a.Cq=this.Cq,a.zr=this.zr.J(),a.yr=this.yr,a.Vg=this.Vg,a};function Zi(a,y){a===void 0||a instanceof Ya||typeof a=="string"?Kn.call(this,a):(Kn.call(this),a&&(y=a)),this.G=2408959,this.Tf="",this.P=null,this.Jg="",this.Qf=this.Ug=null,this.ec="",this.Ah=this.Ig=null,this.ke=new Je(NaN,NaN).freeze(),this.nf=null,this.Ao=NaN,this.vw=-1,this.py=new tn,this.Rh=null,this.ag=NaN,y&&Object.assign(this,y)}Wt(Zi,Kn),Zi.prototype.cloneProtected=function(a){Kn.prototype.cloneProtected.call(this,a),a.G=this.G&-4097|49152,a.Tf=this.Tf,this.P!==null&&(a.P=this.P.nc?this.P:this.P.copy()),a.Jg=this.Jg,a.Qf=null,a.ec=this.ec,a.ke.assign(this.ke),a.Ao=this.Ao},Ie=Zi.prototype,Ie.Af=function(a){Kn.prototype.Af.call(this,a),a.oh(),a.Ug=null,a.nf=null,a.Rh=null},Ie.toString=function(){var a=Tn(this.constructor)+"#"+gr(this);return this.data!==null&&(a+="("+Ki(this.data)+")"),a};function Tl(a){a.P===null?a.P=new Bv:a.P.nc&&(a.P=a.P.copy())}Ie.th=function(){Kn.prototype.th.call(this),this.P!==null&&(this.P.nc=!0)},Ie.gk=function(a,y,x,b,E,z,ee){var re=this.diagram;re!==null&&(a===la&&y==="elements"?E instanceof Kn?Rh(E,function(oe){cy(re.partManager,oe),Th(re,oe)}):Vd(re,E):a===ga&&y==="elements"&&(E instanceof Kn?Rh(E,function(oe){dy(re.partManager,oe,re)}):jg(re,E)),re.cb(a,y,x,b,E,z,ee))},Ie.La=function(a){if(Kn.prototype.La.call(this,a),this.data!==null){for(var y=this.O.s,x=y.length,b=0;b<x;b++){var E=y[b];E instanceof Kn&&Rh(E,function(z){z.data!==null&&z.La()})}for(y=this.adornments;y.next();)y.value.La(a)}},Zi.prototype.updateRelationshipsFromData=function(){var a;this.data!==null&&((a=this.diagram)===null||a===void 0||a.partManager.updateRelationshipsFromData(this))},Zi.prototype.Pj=function(a){var y=this.Qf;return y===null?null:y.I(a)},Zi.prototype.bh=function(a,y){if(y!==null){var x=null,b=this.Qf;if(b!==null&&(x=b.I(a)),x!==y){if(x!==null){var E=x.diagram;E!==null&&E.remove(x)}b===null&&(this.Qf=b=new an),y.Tf!==a&&(y.category=a),b.add(a,y),a=this.diagram,a!==null&&(a.add(y),a=y.adornedObject,a!==null&&(a=a.ih(),a!==null&&(y.data=a.data)))}}},Zi.prototype.Jf=function(a){var y=this.Qf;if(y!==null){var x=y.I(a);if(x!==null){var b=x.diagram;b!==null&&b.remove(x)}y.remove(a),y.count===0&&(this.Qf=null)}},Zi.prototype.Ej=function(){var a=this.Qf;if(a!==null){var y=Mi();for(a=a.iterator;a.next();)y.push(a.key);a=y.length;for(var x=0;x<a;x++)this.Jf(y[x]);ui(y)}},Zi.prototype.updateAdornments=function(){var a=this.diagram;if(a!==null){for(var y=this.adornments;y.next();){var x=y.value;x.v(),x.placeholder&&x.placeholder.v()}e:{if(this.isSelected&&this.selectionAdorned&&(y=this.selectionObject,y!==null&&this.actualBounds.w()&&this.isVisible()&&y.Ed()&&y.actualBounds.w())){if(x=this.Pj("Selection"),x===null){if(x=this.selectionAdornmentTemplate,x===null&&(x=this.ph()?a.linkSelectionAdornmentTemplate:this instanceof xr?a.groupSelectionAdornmentTemplate:a.nodeSelectionAdornmentTemplate),!(x instanceof lo))break e;Ru(x),x=x.copy(),x!==null&&(this.ph()&&this.selectionObject===this.path&&(x.type=Kn.Link),x.adornedObject=y)}if(x!==null){x.type===Kn.Link&&x.v(),this.bh("Selection",x);break e}}this.Jf("Selection")}for(Rx(this,a),y=this.adornments;y.next();)y.value.La()}},Zi.prototype.Wb=function(){var a=this.diagram;a!==null&&(a.vd=!0,!(this.G&16384)&&(this.G|=16384))};function _v(a){a.G&16384&&(a.updateAdornments(),a.G&=-16385)}function Rx(a,y){y.toolManager.mouseDownTools.each(function(x){x.isEnabled&&x.updateAdornments(a)}),y.toolManager.updateAdornments(a)}function Wm(a){if(Xd(a)===!1){zv(a,!0),a.Uk();var y=a.diagram;y!==null&&(y.De.add(a),y.$b())}}function BS(a){if(a.G|=2097152,Xd(a)!==!1){var y=a.position,x=a.location;x.w()&&y.w()||zS(a,y,x),x=a.Ib;var b=tn.alloc().assign(x);x.ka(),x.x=y.x,x.y=y.y,x.freeze(),a.Xl(b,x),tn.free(b),zv(a,!1)}}Zi.prototype.Ge=function(a,y,x,b){var E=this.uc;E.h(a,y,x,b),this.Lb===null&&(this.Lb=new dr);var z=this.Lb;z.reset(),this.no(z,a,y,x,b),this.Lb=z,z.ws()||z.pp(E)},Zi.prototype.no=function(a,y,x,b,E){if(this.Ca!==1&&a.scale(this.Ca),this.Kb!==0){var z=mr;this.locationSpot.sb()&&(z=this.locationSpot);var ee=Je.alloc();if(this.locationObject!==this)for(y=this.locationObject,x=y.naturalBounds,ee.yi(x.x,x.y,x.width,x.height,z),y.Lb!==null&&y.Lb.Ga(ee),ee.offset(-y.measuredBounds.x,-y.measuredBounds.y),z=y.panel;z!==null&&z!==this;)z.Lb!==null&&z.Lb.Ga(ee),ee.offset(-z.measuredBounds.x,-z.measuredBounds.y),z=z.panel;else ee.yi(y,x,b,E,z);a.rotate(this.Kb,ee.x,ee.y),Je.free(ee)}},Zi.prototype.move=function(a,y){y===!0?this.location=a:this.position=a},Zi.prototype.moveTo=function(a,y,x){a=Je.allocAt(a,y),this.move(a,x),Je.free(a)},Zi.prototype.isVisible=function(){if(!this.visible)return!1;var a=this.layer;if(a!==null){if(!a.visible)return!1;if(a=a.diagram,a!==null&&a.animationManager.fv(this))return!0}return a=this.containingGroup,!!(a===null||a.isSubGraphExpanded&&a.isVisible())},Zi.prototype.Zb=function(a){var y=this.diagram;a?(this.C(4),this.Wb(),y!==null&&y.De.add(this)):(this.C(8),this.Ej()),this.oh(),y!==null&&(y.Ya(),y.N())},Zi.prototype.fb=function(a){if(this.name===a)return this;var y=this.Rh;if(y===null&&(this.Rh=y=new an),y.I(a)!==null)return y.I(a);var x=Kn.prototype.fb.call(this,a);return x!==null?(y.set(a,x),x):(y.set(a,null),null)};function wd(a,y,x,b){b===void 0&&(b=new Je),x=x.Mc()?mr:x;var E=y.naturalBounds;if(b.h(E.width*x.x+x.offsetX,E.height*x.y+x.offsetY),y===null||y===a)return b;for(y.transform.Ga(b),y=y.panel;y!==null&&y!==a;)y.transform.Ga(b),y=y.panel;return a.Lb!==null&&a.Lb.Ga(b),b.offset(-a.uc.x,-a.uc.y),b}Zi.prototype.mi=function(a){return a===void 0&&(a=new tn),a.assign(this.actualBounds)},Zi.prototype.Va=function(){this.measure(1/0,1/0),this.arrange()};function _S(a){var y=Je.alloc(),x=a.locationObject,b=x.naturalBounds,E=x instanceof Nr?x.strokeWidth:0;if(y.yi(0,0,b.width+E,b.height+E,a.locationSpot),x!==a)for(y.offset(-E/2,-E/2),x.transform.Ga(y),x=x.panel;x!==null&&x!==a;)x.transform.Ga(y),x=x.panel;return a.Lb!==null&&a.Lb.Ga(y),y.offset(-a.uc.x,-a.uc.y),y}function Fh(a,y){var x=a.py;isNaN(a.ag)&&(a.ag=gS(a));var b=a.ag,E=2*b;if(!a.isShadowed)return x.h(y.x-1-b,y.y-1-b,y.width+2+E,y.height+2+E),x;b=y.x,E=y.y;var z=y.width;y=y.height;var ee=a.shadowBlur;return a=a.shadowOffset,z+=ee,y+=ee,b-=ee/2,E-=ee/2,0<a.x?z+=a.x:(b+=a.x,z-=a.x),0<a.y?y+=a.y:(E+=a.y,y-=a.y),x.h(b-1,E-1,z+2,y+2),x}Zi.prototype.arrange=function(){if(ol(this)===!1)BS(this);else{Fc(this,!1);var a=this.Ib,y=tn.alloc();y.assign(a);var x=Qd(this);this.eh(0,0,this.uc.width,this.uc.height);var b=this.position;zS(this,b,this.location),a.ka(),a.x=b.x,a.y=b.y,a.freeze(),this.Xl(y,a),y.D(a)?this.Fd(x):!this.Zc()||Bt.B(y.width,a.width)&&Bt.B(y.height,a.height)||0<=this.vw&&this.C(16),tn.free(y),zv(this,!1)}},Ie=Zi.prototype,Ie.Xl=function(a,y){var x=this.diagram;if(x!==null){var b=!1;if(x.Zi===!1&&a.w()){var E=tn.alloc();E.assign(x.documentBounds),E.Fv(x.padding),a.x>E.x&&a.y>E.y&&a.right<E.right&&a.bottom<E.bottom&&y.x>E.x&&y.y>E.y&&y.right<E.right&&y.bottom<E.bottom&&(b=!0),tn.free(E)}!(this.G&65536)&&a.D(y)||GS(this,b,x),x.N(),!a.w()&&!y.w()||ao(a,y)||(this instanceof Si&&!x.undoManager.isUndoingRedoing&&this.Bd(),this.oh())}},Ie.zv=function(a,y,x){if(this.ph()||!a.w())return!1;var b=this.diagram;return b!==null&&US(this,b,a,y,x),this.pa=a,this.G&=-2097153,!this.ke.w()||b!==null&&!b.animationManager.isTicking&&b.undoManager.isUndoingRedoing||(b=this.ke,this.ke=new Je(b.x+(a.x-y),b.y+(a.y-x)),this.g("location",b,this.ke.copy())),Xd(this)===!1&&ol(this)===!1&&(Wm(this),BS(this)),!0};function US(a,y,x,b,E){y===null||a instanceof lo||(y=y.animationManager,y.zb&&Nu(y,a,new Je(b,E),x))}Ie.mm=function(a,y,x){var b=this.ke,E=this.pa;if(x){if(b.x===a&&b.y===y)return;Xd(this)||ol(this)?E.h(NaN,NaN):E.h(E.x+a-b.x,E.y+y-b.y),b.h(a,y)}else{if(E.x===a&&E.y===y)return;b.h(b.x+a-E.x,b.y+y-E.y),E.h(a,y)}Wm(this)},Ie.Av=function(){this.G&=-2097153,Wm(this)};function zS(a,y,x){var b=_S(a),E=a.diagram,z=x.w(),ee=y.w();z&&ee?a.G&2097152?HS(a,y,x,E,b):jS(a,y,x,E,b):z?HS(a,y,x,E,b):ee&&jS(a,y,x,E,b),a.G|=2097152,Je.free(b),a.Uk()}function HS(a,y,x,b,E){var z=y.x,ee=y.y;y.h(x.x-E.x,x.y-E.y),b!==null&&(x=b.animationManager,(b=x.defaultAnimation.isAnimating)||!x.zb||a instanceof lo||Nu(x,a,new Je(z,ee),y),b||y.x===z&&y.y===ee||a.g("position",new Je(z,ee),y.copy()))}function jS(a,y,x,b,E){var z=x.copy();x.h(y.x+E.x,y.y+E.y),x.D(z)||b===null||a.g("location",z,x.copy())}function GS(a,y,x){Hv(a,!1),a instanceof Si&&md(x,a),a.layer.isTemporary||y||x.Ya(),y=a.Ib;var b=x.viewportBounds;b.w()?Qd(a)?(gn(y,b)||a.Fd(!1),a.updateAdornments()):a.isVisible()&&y.Yc(b)?(a.Fd(!0),a.updateAdornments()):a.Wb():x.vd=!0}Ie.si=function(){return!0},Ie.Zc=function(){return!0},Ie.ph=function(){return!1},Ie.Dd=function(){return!0};function Uv(a,y,x,b){y.constructor===a.constructor||YS||(YS=!0,ki('Should not change the class of the Part when changing category from "'+x+'" to "'+b+'"'),ki(" Old class: "+Tn(a.constructor)+", new class: "+Tn(y.constructor)+", part: "+a.toString())),a.Ej();var E=a.data;x=a.layerName;var z=a.isSelected,ee=a.isHighlighted,re=!0,oe=!0,de=!1;a instanceof Si&&(re=a.isTreeLeaf,oe=a.isTreeExpanded,de=a.wasTreeExpanded),y.Af(a),y.cloneProtected(a),a.Tf=b,a.svg!==null&&(a.svg.remove(),a.svg=null,a.Uc=!0),a.v(),a.N(),y=a.diagram,b=!0,y!==null&&(b=y.skipsUndoManager,y.skipsUndoManager=!0),a.ub=E,a.G=z?a.G|4096:a.G&-4097,a.G=ee?a.G|524288:a.G&-524289,a instanceof Si&&(a.U=re?a.U|4:a.U&-5,a.U=oe?a.U|1:a.U&-2,a.U=de?a.U|2:a.U&-3),E!==null&&a.La(),E=a.layerName,E!==x&&(a.Jg=x,a.layerName=E),y!==null&&(y.skipsUndoManager=b),a.Zc()&&a.C(64)}Zi.prototype.canCopy=function(){if(!this.copyable)return!1;var a=this.layer;return a===null?!0:a.allowCopy?(a=a.diagram,a===null?!0:!!a.allowCopy):!1},Zi.prototype.canDelete=function(){if(!this.deletable)return!1;var a=this.layer;return a===null?!0:a.allowDelete?(a=a.diagram,a===null?!0:!!a.allowDelete):!1},Zi.prototype.canEdit=function(){if(!this.textEditable)return!1;var a=this.layer;return a===null?!0:a.allowTextEdit?(a=a.diagram,a===null?!0:!!a.allowTextEdit):!1},Zi.prototype.canGroup=function(){if(!this.groupable)return!1;var a=this.layer;return a===null?!0:a.allowGroup?(a=a.diagram,a===null?!0:!!a.allowGroup):!1},Zi.prototype.canMove=function(){if(!this.movable)return!1;var a=this.layer;return a===null?!0:a.allowMove?(a=a.diagram,a===null?!0:!!a.allowMove):!1},Zi.prototype.canReshape=function(){if(!this.reshapable)return!1;var a=this.layer;return a===null?!0:a.allowReshape?(a=a.diagram,a===null?!0:!!a.allowReshape):!1},Zi.prototype.canResize=function(){if(!this.resizable)return!1;var a=this.layer;return a===null?!0:a.allowResize?(a=a.diagram,a===null?!0:!!a.allowResize):!1},Zi.prototype.canRotate=function(){if(!this.rotatable)return!1;var a=this.layer;return a===null?!0:a.allowRotate?(a=a.diagram,a===null?!0:!!a.allowRotate):!1},Zi.prototype.canSelect=function(){if(!this.selectable)return!1;var a=this.layer;return a===null?!0:a.allowSelect?(a=a.diagram,a===null?!0:!!a.allowSelect):!1};function Xd(a){return(a.G&32768)!==0}function zv(a,y){a.G=y?a.G|32768:a.G&-32769}function Hv(a,y){a.G=y?a.G|65536:a.G&-65537}function Qd(a){return(a.G&131072)!==0}Ie=Zi.prototype,Ie.Fd=function(a){this.G=a?this.G|131072:this.G&-131073};function Vm(a,y){a.G=y?a.G|1048576:a.G&-1048577}Ie.oh=function(){var a=this.containingGroup;a!==null&&(a.v(),a.placeholder!==null&&a.placeholder.v(),a.Bd())},Ie.N=function(){var a=this.diagram;a!==null&&!ol(this)&&!Xd(this)&&this.isVisible()&&this.Ib.w()&&a.N(Fh(this,this.Ib))},Ie.v=function(){Kn.prototype.v.call(this);var a=this.diagram;a!==null&&(a.De.add(this),this instanceof Si&&this.labeledLink!==null&&rl(this.labeledLink),a.$b(!0))},Ie.Vo=function(a){a||(a=this.Ah,a!==null&&Kv(a,this))},Ie.Wo=function(a){a||(a=this.Ah,a!==null&&Zv(a,this))},Ie.Lj=function(){var a=this.data;if(a!==null){var y=this.diagram;y!==null&&(y=y.model,y!==null&&y.cm(a))}},Ie.oz=function(){return jv(this,this)};function jv(a,y){var x=y.containingGroup;return x!==null?1+jv(a,x):y instanceof Si&&(y=y.labeledLink,y!==null)?jv(a,y):0}Ie.sz=function(){return WS(this,this)};function WS(a,y){var x=y.containingGroup;return x!==null||y instanceof Si&&(x=y.labeledLink,x!==null)?WS(a,x):y}Ie.Td=function(a){return a instanceof xr?Gv(this,this,a):!1};function Gv(a,y,x){if(y===x||x===null)return!1;var b=y.containingGroup;return b===null||b!==x&&!Gv(a,b,x)?y instanceof Si&&(y=y.labeledLink,y!==null)?Gv(a,y,x):!1:!0}Ie.px=function(a){if(a===null)return null;if(this===a)return this.containingGroup;for(var y=this;y!==null;){if(y instanceof xr&&Vm(y,!0),y instanceof Si){var x=y.labeledLink;x!==null&&(y=x)}y=y.containingGroup}for(x=null,y=a;y!==null;){if(y.G&1048576){x=y;break}y instanceof Si&&(a=y.labeledLink,a!==null&&(y=a)),y=y.containingGroup}for(y=this;y!==null;)y instanceof xr&&Vm(y,!1),y instanceof Si&&(a=y.labeledLink,a!==null&&(y=a)),y=y.containingGroup;return x},Zi.prototype.canLayout=function(){if(!this.isLayoutPositioned||!this.isVisible())return!1;var a=this.layer;return!(a!==null&&a.isTemporary||this instanceof Si&&this.isLinkLabel)},Zi.prototype.C=function(a){if(a===void 0&&(a=16777215),this.isLayoutPositioned&&a&this.layoutConditions){var y=this.layer;y!==null&&y.isTemporary||this instanceof Si&&this.isLinkLabel?y=!1:(y=this.diagram,y=!(y!==null&&y.undoManager.isUndoingRedoing))}else y=!1;if(y)if(y=this.Ah,y!==null){var x=y.layout;x!==null?x.C():y.C(a)}else a=this.diagram,a!==null&&(a=a.layout,a!==null&&a.C())};function VS(a){return a.isVisible()?(a=a.layer,!(a!==null&&a.isTemporary)):!1}function Jd(a,y,x,b,E,z){if(z===void 0&&(z=null),!(a.contains(y)||z!==null&&!z(y)||y instanceof lo)){if(a.add(y),y instanceof Si){if(x&&y instanceof xr)for(var ee=y.memberParts;ee.next();)Jd(a,ee.value,x,b,E,z);if(E!==!1)for(ee=y.linksConnected;ee.next();){var re=ee.value;if(!a.contains(re)){var oe=re.fromNode,de=re.toNode;oe=oe===null||a.contains(oe),de=de===null||a.contains(de),(E?oe&&de:oe||de)&&Jd(a,re,x,b,E,z)}}if(1<b)for(y=y.Ou();y.next();)Jd(a,y.value,x,b-1,E,z)}else if(y instanceof ei)for(y=y.labelNodes;y.next();)Jd(a,y.value,x,b,E,z)}}jt.Object.defineProperties(Zi.prototype,{key:{get:function(){var a=this.diagram;if(a!==null)return a.model.wa(this.data)}},adornments:{get:function(){return this.Qf===null?Fr:this.Qf.iteratorValues}},layer:{get:function(){return this.Ig}},diagram:{get:function(){var a=this.Ig;return a==null?null:a.diagram}},layerName:{get:function(){return this.Jg},set:function(a){var y=this.Jg;if(y!==a){var x=this.diagram;if((x===null||x.Qj(a)!==null&&!x.partManager.addsToTemporaryLayer)&&(this.Jg=a,x!==null&&x.Ya(),this.g("layerName",y,a),y=this.layer,y!==null&&y.name!==a&&(x=y.diagram,x!==null&&(a=x.Qj(a),a!==null&&a!==y)))){var b=y.pc(-1,this,!0);if(0<=b&&x.cb(ga,"parts",y,this,null,b,!0),b=a.oi(99999999,this,!0),y.visible!==a.visible&&this.Zb(a.visible),0<=b&&x.cb(la,"parts",a,null,this,!0,b),b=this.layerChanged,b!==null){var E=x.aa;x.aa=!0,b(this,y,a),x.aa=E}}}}},layerChanged:{get:function(){return this.P!==null?this.P.zq:null},set:function(a){var y=this.layerChanged;y!==a&&(Tl(this),this.P.zq=a,this.g("layerChanged",y,a))}},zOrder:{get:function(){return this.Ao},set:function(a){var y=this.Ao;if(y!==a){this.Ao=a;var x=this.layer;x!==null&&Nf(x,-1,this),this.g("zOrder",y,a),a=this.diagram,a!==null&&a.N()}}},locationObject:{get:function(){if(this.nf===null){var a=this.locationObjectName;a!==""?(a=this.fb(a),a!==null?this.nf=a:this.nf=this):this instanceof lo?this.type!==Kn.Link&&this.placeholder!==null?this.nf=this.placeholder:this.nf=this:this.nf=this}return this.nf.visible?this.nf:this}},minLocation:{get:function(){return this.P!==null?this.P.Pq:Qn},set:function(a){var y=this.minLocation;y.D(a)||(a=a.J(),Tl(this),this.P.Pq=a,this.g("minLocation",y,a))}},maxLocation:{get:function(){return this.P!==null?this.P.Kq:yi},set:function(a){var y=this.maxLocation;y.D(a)||(a=a.J(),Tl(this),this.P.Kq=a,this.g("maxLocation",y,a))}},locationObjectName:{get:function(){return this.P!==null?this.P.Gq:""},set:function(a){var y=this.locationObjectName;y!==a&&(Tl(this),this.P.Gq=a,this.nf=null,this.v(),this.g("locationObjectName",y,a))}},locationSpot:{get:function(){return this.P!==null?this.P.Hq:Qi},set:function(a){var y=this.locationSpot;y.D(a)||(a=a.J(),Tl(this),this.P.Hq=a,this.v(),this.g("locationSpot",y,a))}},location:{get:function(){return this.ke},set:function(a){var y=a.x,x=a.y,b=this.ke;if(!(b.x===y||isNaN(b.x)&&isNaN(y))||!(b.y===x||isNaN(b.y)&&isNaN(x))){if(a=a.copy(),y=a,this.ph())y=!1;else{if(this.ke=y,this.G|=2097152,ol(this)===!1&&(Wm(this),x=this.pa,x.w())){var E=this.diagram;if(E===null||E.animationManager.isTicking||!E.undoManager.isUndoingRedoing){var z=x.copy();x.h(x.x+(y.x-b.x),x.y+(y.y-b.y)),US(this,E,x,z.x,z.y),this.g("position",z,x.copy())}}y=!0}y&&this.g("location",b,a.copy())}}},category:{get:function(){return this.Tf},set:function(a){var y=this.Tf;if(y!==a){this.svg!==null&&(this.svg.remove(),this.Uc=!0);var x=this.diagram,b=this.data,E=null;if(x!==null&&b!==null&&!(this instanceof lo)){var z=x.model.undoManager;z.isEnabled&&!z.isUndoingRedoing&&(E=this.clone(),E.O.addAll(this.O))}this.Tf=a,this.g("category",y,a),x===null||b===null||this instanceof lo?this instanceof lo&&(E=this.adornedPart,E!==null&&(a=E.Qf,a!==null&&a.remove(y),E.bh(this.category,this))):(z=x.model,z.undoManager.isUndoingRedoing||(this.ph()?(x.partManager.setLinkCategoryForData(b,a),x=x.partManager.findLinkTemplateForCategory(a),x!==null&&(Ru(x),x=x.copy(),x!==null&&Uv(this,x,y,a))):(z!==null&&z.jm(b,a),x=v1(x.partManager,b,a),x!==null&&(Ru(x),x=x.copy(),x===null||x instanceof ei||(b=this.location.copy(),Uv(this,x,y,a),this.location.w()||(this.location=b)))),E!==null&&(y=this.clone(),y.O.addAll(this.O),this.g("self",E,y))))}}},self:{get:function(){return this},set:function(a){Uv(this,a,this.category,a.category)}},copyable:{get:function(){return(this.G&1)!==0},set:function(a){var y=(this.G&1)!==0;y!==a&&(this.G^=1,this.g("copyable",y,a))}},deletable:{get:function(){return(this.G&2)!==0},set:function(a){var y=(this.G&2)!==0;y!==a&&(this.G^=2,this.g("deletable",y,a))}},textEditable:{get:function(){return(this.G&4)!==0},set:function(a){var y=(this.G&4)!==0;y!==a&&(this.G^=4,this.g("textEditable",y,a),this.Wb())}},groupable:{get:function(){return(this.G&8)!==0},set:function(a){var y=(this.G&8)!==0;y!==a&&(this.G^=8,this.g("groupable",y,a))}},movable:{get:function(){return(this.G&16)!==0},set:function(a){var y=(this.G&16)!==0;y!==a&&(this.G^=16,this.g("movable",y,a))}},selectionAdorned:{get:function(){return(this.G&32)!==0},set:function(a){var y=(this.G&32)!==0;y!==a&&(this.G^=32,this.g("selectionAdorned",y,a),this.Wb())}},isInDocumentBounds:{get:function(){return(this.G&64)!==0},set:function(a){var y=(this.G&64)!==0;if(y!==a){this.G^=64;var x=this.diagram;x!==null&&x.Ya(),this.g("isInDocumentBounds",y,a)}}},isLayoutPositioned:{get:function(){return(this.G&128)!==0},set:function(a){var y=(this.G&128)!==0;y!==a&&(this.G^=128,this.g("isLayoutPositioned",y,a),this.C(a?4:8))}},selectable:{get:function(){return(this.G&256)!==0},set:function(a){var y=(this.G&256)!==0;y!==a&&(this.G^=256,this.g("selectable",y,a),this.Wb())}},reshapable:{get:function(){return(this.G&512)!==0},set:function(a){var y=(this.G&512)!==0;y!==a&&(this.G^=512,this.g("reshapable",y,a),this.Wb())}},resizable:{get:function(){return(this.G&1024)!==0},set:function(a){var y=(this.G&1024)!==0;y!==a&&(this.G^=1024,this.g("resizable",y,a),this.Wb())}},rotatable:{get:function(){return(this.G&2048)!==0},set:function(a){var y=(this.G&2048)!==0;y!==a&&(this.G^=2048,this.g("rotatable",y,a),this.Wb())}},isSelected:{get:function(){return(this.G&4096)!==0},set:function(a){var y=(this.G&4096)!==0;if(y!==a){var x=this.diagram;if(!a||this.canSelect()&&!(x!==null&&x.selection.count>=x.maxSelectionCount)){this.G^=4096;var b=!1;if(x!==null){b=x.skipsUndoManager,x.skipsUndoManager=!0;var E=x.selection;E.ka(),a?E.add(this):E.remove(this),E.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&&(Tl(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&&(Tl(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&&(Tl(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 ei?(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&&(Tl(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&&(Tl(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&&(Tl(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(),Tl(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&&(Tl(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&&(Tl(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(),Tl(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&&vt("Cannot make a Group a member of itself: "+this.toString()),vt("Cannot make a Group indirectly contain itself: "+this.toString()+" already contains "+a.toString())),this.C(2);var x=this.diagram;if(y!==null?Zv(y,this):this instanceof xr&&x!==null&&x.ai.remove(this),this.Ah=a,a!==null?Kv(a,this):this instanceof xr&&x!==null&&x.ai.add(this),this.C(1),x!==null&&x.aa){var b=this.data,E=x.model;if(b!==null&&E.Xj()){var z=E.wa(a!==null?a.data:null);E.mp(b,z)}}if(b=this.containingGroupChanged,b!==null&&(E=!0,x!==null&&(E=x.aa,x.aa=!0),b(this,y,a),x!==null&&(x.aa=E)),this instanceof xr){for(x=new Bn,Jd(x,this,!0,0,!0),x=x.iterator;x.next();)if(b=x.value,b instanceof Si)for(b=b.linksConnected;b.next();)tg(b.value)}if(this instanceof Si){for(x=this.linksConnected;x.next();)tg(x.value);x=this.labeledLink,x!==null&&tg(x)}this.g("containingGroup",y,a),a!==null&&(y=a.layer,y!==null&&Nf(y,-1,a))}}else vt("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&&(Tl(this),this.P.Kp=a,this.g("containingGroupChanged",y,a))}},isTopLevel:{get:function(){return!(this.containingGroup!==null||this instanceof Si&&this.labeledLink!==null)}},layoutConditions:{get:function(){return this.P!==null?this.P.Cq:127},set:function(a){var y=this.layoutConditions;y!==a&&(Tl(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&&(Tl(this),this.P.Up=a,this.g("dragComputation",y,a))}},shadowOffset:{get:function(){return this.P!==null?this.P.zr:Ci},set:function(a){var y=this.shadowOffset;y.D(a)||(a=a.J(),Tl(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&&(Tl(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&&(Tl(this),this.P.Vg=a,this.N(),this.g("shadowBlur",y,a))}}}),Zi.prototype.invalidateLayout=Zi.prototype.C,Zi.prototype.findCommonContainingGroup=Zi.prototype.px,Zi.prototype.isMemberOf=Zi.prototype.Td,Zi.prototype.findTopLevelPart=Zi.prototype.sz,Zi.prototype.findSubGraphLevel=Zi.prototype.oz,Zi.prototype.ensureBounds=Zi.prototype.Va,Zi.prototype.getDocumentBounds=Zi.prototype.mi,Zi.prototype.findObject=Zi.prototype.fb,Zi.prototype.moveTo=Zi.prototype.moveTo,Zi.prototype.invalidateAdornments=Zi.prototype.Wb,Zi.prototype.clearAdornments=Zi.prototype.Ej,Zi.prototype.removeAdornment=Zi.prototype.Jf,Zi.prototype.addAdornment=Zi.prototype.bh,Zi.prototype.findAdornment=Zi.prototype.Pj,Zi.prototype.updateTargetBindings=Zi.prototype.La;var YS=!1;Zi.className="Part",Zi.LayoutNone=0,Zi.LayoutAdded=1,Zi.LayoutRemoved=2,Zi.LayoutShown=4,Zi.LayoutHidden=8,Zi.LayoutNodeSized=16,Zi.LayoutGroupLayout=32,Zi.LayoutNodeReplaced=64,Zi.LayoutStandard=127,Zi.LayoutAll=16777215;function lo(a,y){a===void 0||a instanceof Ya||typeof a=="string"?Zi.call(this,a):(Zi.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)}Wt(lo,Zi),lo.prototype.toString=function(){var a=this.adornedPart;return"Adornment("+this.category+")"+(a!==null?a.toString():"")},lo.prototype.updateRelationshipsFromData=function(){},lo.prototype.Ul=function(a){var y=this.adornedObject,x=y==null?void 0:y.part;if(x instanceof ei&&y instanceof Nr){y=x.path,x.Ul(a),a=y.geometry,x=this.O.s,y=x.length;for(var b=0;b<y;b++){var E=x[b];E.isPanelMain&&E instanceof Nr&&(E.ua=a)}}},lo.prototype.si=function(){var a=this.ue;return a===null?!0:(a=a.part,a===null||!ol(a))},lo.prototype.Zc=function(){return!1},lo.prototype.gk=function(a,y,x,b,E,z,ee){if(a===la&&y==="elements"){if(E instanceof sl)this.$a===null&&(this.$a=E);else if(E instanceof Kn){var re=E.Nl(function(oe){return oe instanceof sl});re instanceof sl&&this.$a===null&&(this.$a=re)}}else a===ga&&y==="elements"&&this.$a!==null&&(b===this.$a?this.$a=null:b instanceof Kn&&this.$a.rg(b)&&(this.$a=null));Zi.prototype.gk.call(this,a,y,x,b,E,z,ee)},lo.prototype.updateAdornments=function(){},lo.prototype.Lj=function(){},jt.Object.defineProperties(lo.prototype,{placeholder:{get:function(){return this.$a}},adornedObject:{get:function(){return this.ue},set:function(a){var y=this.adornedPart,x=null;a!==null&&(x=a.part),y===null||a!==null&&y===x||y.Jf(this.category),this.ue=a,x!==null&&x.bh(this.category,this)}},adornedPart:{get:function(){var a=this.ue;return a!==null?a.part:null}},containingGroup:{get:function(){return null}}}),lo.className="Adornment";function Wv(){this.nc=!1,this.Vr=this.gj=this.Eq=this.Dq=null,this.yp=to,this.er=Zm,this.Kr=this.ij=this.Nq=this.Mq=null}Wv.prototype.copy=function(){var a=new Wv;return a.Dq=this.Dq,a.Eq=this.Eq,a.gj=this.gj,a.Vr=this.Vr,a.yp=this.yp.J(),a.er=this.er,a.Mq=this.Mq,a.Nq=this.Nq,a.ij=this.ij,a.Kr=this.Kr,a};function Si(a,y){a===void 0||a instanceof Ya||typeof a=="string"?Zi.call(this,a):(Zi.call(this),a&&(y=a)),this.U=13,this.Ba=null,this.jb=new Dn,this.wc=this.af=this.Yk=null,this.ci=!1,y&&Object.assign(this,y)}Wt(Si,Zi),Si.prototype.cloneProtected=function(a){Zi.prototype.cloneProtected.call(this,a),a.U=this.U,this.Ba!==null&&(a.Ba=this.Ba.nc?this.Ba:this.Ba.copy())},Ie=Si.prototype,Ie.Af=function(a){Zi.prototype.Af.call(this,a),a.Bd(),a.af=this.af,a.wc=null};function Cd(a){a.Ba===null?a.Ba=new Wv:a.Ba.nc&&(a.Ba=a.Ba.copy())}Ie.th=function(){Zi.prototype.th.call(this),this.Ba!==null&&(this.Ba.nc=!0)};function KS(a,y){y!==null&&(a.af===null&&(a.af=new Bn),a.af.add(y))}function ZS(a,y,x,b){if(y===null||a.af===null)return null;for(var E=a.af.iterator;E.next();){var z=E.value;if(z.Ds===a&&z.cv===y&&z.Ox===x&&z.Px===b||z.Ds===y&&z.cv===a&&z.Ox===b&&z.Px===x)return z}return null}Ie.Lz=function(a,y,x){y==null&&(y=""),x==null&&(x=""),a=ZS(this,a,y,x),a!==null&&a.Sl()},Ie.gk=function(a,y,x,b,E,z,ee){a===la&&y==="elements"?this.wc=null:a===ga&&y==="elements"&&(this.wc=null),Zi.prototype.gk.call(this,a,y,x,b,E,z,ee)},Ie.Bd=function(a){for(var y=this.linksConnected;y.next();){var x=y.value;a!==void 0&&a.contains(x)||(Wl(x.fromPort),Wl(x.toPort),x.bb())}};function XS(a,y){for(a=a.linksConnected;a.next();){var x=a.value;(x.fromPort===y||x.toPort===y)&&(Wl(x.fromPort),Wl(x.toPort),x.bb())}}function Wl(a){if(a!==null){var y=a.Zn;y!==null&&y.Sl(),a=a.part,y=a.containingGroup,y===null||a.isVisible()||Wl(y.port)}}Ie.si=function(){return!0},Si.prototype.getAvoidableRect=function(a){return a.set(this.actualBounds),a.Co(this.avoidableMargin),a},Si.prototype.findVisibleNode=function(){for(var a=this;a!==null&&!a.isVisible();)a=a.containingGroup;return a},Si.prototype.isVisible=function(){if(!Zi.prototype.isVisible.call(this))return!1;var a=!0,y=yd,x=this.diagram;if(x!==null&&(a=x.isTreePathToChildren,y=x.treeCollapsePolicy),y===yd){if(a=this.pg(),a!==null&&!a.isTreeExpanded)return!1}else if(y===Ua){if(a=a?this.Oo():this.Po(),0<a.count&&a.all(function(b){return!b.isTreeExpanded}))return!1}else if(y===zf&&(a=a?this.Oo():this.Po(),0<a.count&&a.any(function(b){return!b.isTreeExpanded})))return!1;return a=this.labeledLink,a!==null?a.isVisible():!0},Si.prototype.Zb=function(a){Zi.prototype.Zb.call(this,a);for(var y=this.linksConnected;y.next();){var x=y.value;if(a&&this.containingGroup!==null){var b=x.To(this);b===null||b.Td(this.containingGroup)||x.bb()}x.Zb(a)}},Si.prototype.qx=function(){var a=new Bn,y=new Bn;return QS(this,this,a,y),y.iterator};function QS(a,y,x,b){if(y!==null&&!x.has(y)){x.add(y);var E=!0,z=a.diagram;z!==null&&(E=z.isTreePathToChildren),y.linksConnected.each(function(ee){ee.isTreeLink?(E?ee.fromNode===y:ee.toNode===y)&&QS(a,E?ee.toNode:ee.fromNode,x,b):b.add(ee)})}}Si.prototype.findLinksConnected=function(a){if(a===void 0&&(a=null),a===null)return this.jb.iterator;var y=new Ir(this.jb),x=this;return y.predicate=function(b){return b.fromNode===x&&b.fromPortId===a||b.toNode===x&&b.toPortId===a},y},Ie=Si.prototype,Ie.Mo=function(a){a===void 0&&(a=null);var y=new Ir(this.jb),x=this;return y.predicate=function(b){return b.fromNode!==x?!1:a===null?!0:b.fromPortId===a},y},Ie.Sd=function(a){a===void 0&&(a=null);var y=new Ir(this.jb),x=this;return y.predicate=function(b){return b.toNode!==x?!1:a===null?!0:b.toPortId===a},y},Ie.Mu=function(a){a===void 0&&(a=null);for(var y=null,x=null,b=this.jb.iterator;b.next();){var E=b.value;E.fromNode===this?(a===null||E.fromPortId===a)&&(E=E.toNode,y!==null?y.add(E):x!==null&&x!==E?(y=new Bn,y.add(x),y.add(E)):x=E):E.toNode!==this||a!==null&&E.toPortId!==a||(E=E.fromNode,y!==null?y.add(E):x!==null&&x!==E?(y=new Bn,y.add(x),y.add(E)):x=E)}return y!==null?y.iterator:x!==null?new Cr(x):Fr},Ie.Po=function(a){a===void 0&&(a=null);for(var y=null,x=null,b=this.jb.iterator;b.next();){var E=b.value;E.fromNode!==this||a!==null&&E.fromPortId!==a||(E=E.toNode,y!==null?y.add(E):x!==null&&x!==E?(y=new Bn,y.add(x),y.add(E)):x=E)}return y!==null?y.iterator:x!==null?new Cr(x):Fr},Ie.Oo=function(a){a===void 0&&(a=null);for(var y=null,x=null,b=this.jb.iterator;b.next();){var E=b.value;E.toNode!==this||a!==null&&E.toPortId!==a||(E=E.fromNode,y!==null?y.add(E):x!==null&&x!==E?(y=new Bn,y.add(x),y.add(E)):x=E)}return y!==null?y.iterator:x!==null?new Cr(x):Fr},Ie.jz=function(a,y,x){y===void 0&&(y=null),x===void 0&&(x=null);var b=new Ir(this.jb),E=this;return b.predicate=function(z){return!((z.fromNode!==E||z.toNode!==a||y!==null&&z.fromPortId!==y||x!==null&&z.toPortId!==x)&&(z.fromNode!==a||z.toNode!==E||x!==null&&z.fromPortId!==x||y!==null&&z.toPortId!==y))},b},Ie.kz=function(a,y,x){y===void 0&&(y=null),x===void 0&&(x=null);var b=new Ir(this.jb),E=this;return b.predicate=function(z){return!(z.fromNode!==E||z.toNode!==a||y!==null&&z.fromPortId!==y||x!==null&&z.toPortId!==x)},b};function Ym(a,y,x){Wl(x);var b=a.jb.contains(y);if(b||a.jb.add(y),!b||y.fromNode===y.toNode){var E=a.linkConnected;if(E!==null){var z=!0,ee=a.diagram;ee!==null&&(z=ee.aa,ee.aa=!0),E(a,y,x),ee!==null&&(ee.aa=z)}}!b&&y.isTreeLink&&(x=y.fromNode,y=y.toNode,x!==null&&y!==null&&x!==y&&(b=!0,a=a.diagram,a!==null&&(b=a.isTreePathToChildren),E=b?y:x,z=b?x:y,E.ci||(E.ci=z),!z.isTreeLeaf||a!==null&&a.undoManager.isUndoingRedoing||(b?x===z&&(z.isTreeLeaf=!1):y===z&&(z.isTreeLeaf=!1))))}function Km(a,y,x){Wl(x);var b=a.jb.remove(y),E=null;if(b||y.toNode===y.fromNode){var z=a.linkDisconnected;if(E=a.diagram,z!==null){var ee=!0;E!==null&&(ee=E.aa,E.aa=!0),z(a,y,x),E!==null&&(E.aa=ee)}}b&&y.isTreeLink&&(x=!0,E!==null&&(x=E.isTreePathToChildren),a=x?y.toNode:y.fromNode,y=x?y.fromNode:y.toNode,a!==null&&(a.ci=!1),y===null||y.isTreeLeaf||(y.jb.count===0?(y.ci=null,E!==null&&E.undoManager.isUndoingRedoing||(y.isTreeLeaf=!0)):cp(y)))}function cp(a){if(a.ci=!1,a.jb.count!==0){var y=!0,x=a.diagram;if(x===null||!x.undoManager.isUndoingRedoing){for(x!==null&&(y=x.isTreePathToChildren),x=a.jb.iterator;x.next();){var b=x.value;if(b.isTreeLink){if(y){if(b.fromNode===a){a.isTreeLeaf=!1;return}}else if(b.toNode===a){a.isTreeLeaf=!1;return}}}a.isTreeLeaf=!0}}}Si.prototype.updateRelationshipsFromData=function(){var a=this.diagram;a!==null&&a.partManager.updateRelationshipsFromData(this)},Ie=Si.prototype,Ie.Vo=function(a){Zi.prototype.Vo.call(this,a),a||(cp(this),a=this.Yk,a!==null&&o1(a,this))},Ie.Wo=function(a){Zi.prototype.Wo.call(this,a),a||(a=this.Yk,a!==null&&a.wd!==null&&(a.wd.remove(this),a.v()))},Ie.Lj=function(){if(0<this.jb.count){var a=this.diagram;if(a!==null)for(var y=a.commandHandler!==null?a.commandHandler.deletesConnectedLinks:!0,x=this.jb.copy().iterator;x.next();){var b=x.value;y?a.remove(b):(b.fromNode===this&&(b.fromNode=null),b.toNode===this&&(b.toNode=null))}}this.labeledLink=null,Zi.prototype.Lj.call(this)},Ie.ns=function(a){if(this.wc===null){if(a===""&&this.Te===!1)return this;JS(this)}var y=this.wc.I(a);return y!==null||a!==""&&(y=this.wc.I(""),y!==null)?y:this};function JS(a){a.wc===null?a.wc=new an:a.wc.clear(),a.qm(a,function(y,x){qS(y,x)}),a.wc.count===0&&a.wc.add("",a)}function qS(a,y){var x=y.portId;x!==null&&a.wc!==null&&a.wc.add(x,y)}function Vv(a,y,x){var b=y.portId;if(b!==null&&(a.wc!==null&&a.wc.remove(b),y=a.diagram,y!==null&&x)){for(x=null,a=a.findLinksConnected(b);a.next();)b=a.value,x===null&&(x=Mi()),x.push(b);if(x!==null){for(a=0;a<x.length;a++)y.remove(x[a]);ui(x)}}}Ie.Nz=function(a){if(a===null||a===this)return!1;var y=!0,x=this.diagram;if(x!==null&&(y=x.isTreePathToChildren),x=this,y)for(;x!==a;){y=null;for(var b=x.jb.iterator;b.next();){var E=b.value;if(E.isTreeLink&&(y=E.fromNode,y!==x&&y!==this))break}if(y===this||y===null||y===x)return!1;x=y}else for(;x!==a;){for(y=null,b=x.jb.iterator;b.next()&&(E=b.value,!E.isTreeLink||(y=E.toNode,y===x||y===this)););if(y===this||y===null||y===x)return!1;x=y}return!0},Ie.xz=function(){var a=!0,y=this.diagram;if(y!==null&&(a=y.isTreePathToChildren),y=this,a)for(;;){a=null;for(var x=y.jb.iterator;x.next();){var b=x.value;if(b.isTreeLink&&(a=b.fromNode,a!==y&&a!==this))break}if(a===this)return this;if(a===null||a===y)return y;y=a}else for(;;){for(a=null,x=y.jb.iterator;x.next()&&(b=x.value,!b.isTreeLink||(a=b.toNode,a===y||a===this)););if(a===this)return this;if(a===null||a===y)return y;y=a}},Ie.gz=function(a){if(a===null)return null;if(this===a)return this;for(var y=this;y!==null;)Vm(y,!0),y=y.pg();var x=null;for(y=a;y!==null;){if(y.G&1048576){x=y;break}y=y.pg()}for(y=this;y!==null;)Vm(y,!1),y=y.pg();return x},Ie.kh=function(){var a=!0,y=this.diagram;if(y!==null&&(a=y.isTreePathToChildren),y=this.jb.iterator,a){for(;y.next();)if(a=y.value,a.isTreeLink&&a.fromNode!==this)return a}else for(;y.next();)if(a=y.value,a.isTreeLink&&a.toNode!==this)return a;return null},Ie.pg=function(){var a=this.ci;if(a===null)return null;if(a instanceof Si)return a;a=this.diagram,a=a!==null?a.isTreePathToChildren:!0;for(var y=this.jb.iterator;y.next();){var x=y.value;if(x.isTreeLink&&(x=a?x.fromNode:x.toNode,x!==this))return this.ci=x}return this.ci=null},Ie.vz=function(){function a(x,b){b.add(x);var E=x.kh();E!==null&&(b.add(E),x=x.pg(),x!==null&&a(x,b))}var y=new Bn;return a(this,y),y},Ie.uz=function(){return $S(this,this)};function $S(a,y){return y=y.pg(),y===null?0:1+$S(a,y)}Ie.Qo=function(){var a=!0,y=this.diagram;y!==null&&(a=y.isTreePathToChildren),y=new Ir(this.jb);var x=this;return y.predicate=a?function(b){return!!(b.isTreeLink&&b.fromNode===x)}:function(b){return!!(b.isTreeLink&&b.toNode===x)},y},Ie.Ou=function(){var a=!0,y=this.diagram;y!==null&&(a=y.isTreePathToChildren);var x=y=null,b=this.jb.iterator;if(a)for(;b.next();)a=b.value,a.isTreeLink&&a.fromNode===this&&(a=a.toNode,y!==null?y.add(a):x!==null&&x!==a?(y=new Dn,y.add(x),y.add(a)):x=a);else for(;b.next();)a=b.value,a.isTreeLink&&a.toNode===this&&(a=a.fromNode,y!==null?y.add(a):x!==null&&x!==a?(y=new Dn,y.add(x),y.add(a)):x=a);return y!==null?y.iterator:x!==null?new Cr(x):Fr},Ie.wz=function(a){a===void 0&&(a=1/0);var y=new Bn;return Jd(y,this,!1,a,!0),y},Si.prototype.collapseTree=function(a){a===void 0&&(a=1),1>a&&(a=1);var y=this.diagram;if(y!==null&&!y.Ue){y.Ue=!0;var x=new Bn;x.add(this),e1(this,x,y.isTreePathToChildren,a,y,this,y.treeCollapsePolicy===yd),y.Ue=!1}};function e1(a,y,x,b,E,z,ee){if(1<b)for(var re=x?a.Mo():a.Sd();re.next();){var oe=re.value;oe.isTreeLink&&(oe=oe.To(a),oe===null||oe===a||y.contains(oe)||(y.add(oe),e1(oe,y,x,b-1,E,z,ee)))}else t1(a,y,x,E,z,ee)}function t1(a,y,x,b,E,z){for(var ee=E===a?!0:a.isTreeExpanded,re=x?a.Mo():a.Sd(),oe={};re.next();){var de=re.value;if(de.isTreeLink&&(de=de.To(a),de!==null&&de!==a)){var fe=y.contains(de);if(fe||y.add(de),ee){var ye=x?de.Oo():de.Po();oe.uv=a,ye.all(function(Ce){return function(Ne){return Ne===Ce.uv||!Ne.isTreeExpanded}}(oe))&&b.Aj(de,E),de.oh(),de.Zb(!1)}de.isTreeExpanded&&(de.wasTreeExpanded=de.isTreeExpanded,fe||t1(de,y,x,b,E,z))}oe={uv:oe.uv}}a.isTreeExpanded=!1}Si.prototype.expandTree=function(a){a===void 0&&(a=2),2>a&&(a=2);var y=this.diagram;if(y!==null&&!y.Ue){y.Ue=!0;var x=new Bn;x.add(this),n1(this,x,y.isTreePathToChildren,a,y,this,y.treeCollapsePolicy===yd),y.Ue=!1}};function n1(a,y,x,b,E,z,ee){for(var re=z===a?!1:a.isTreeExpanded,oe=x?a.Mo():a.Sd(),de={};oe.next();){var fe=oe.value;if(fe.isTreeLink&&(re||fe.fd||fe.bb(),fe=fe.To(a),fe!==null&&fe!==a&&!y.contains(fe))){if(y.add(fe),!re){fe.Zb(!0),fe.oh();var ye=x?fe.Oo():fe.Po();de.vv=a,ye.all(function(Ce){return function(Ne){return Ne===Ce.vv||!Ne.isTreeExpanded}}(de))&&E.Cj(fe,z)}(2<b||fe.wasTreeExpanded)&&(fe.wasTreeExpanded=!1,n1(fe,y,x,b-1,E,z,ee))}de={vv:de.vv}}a.isTreeExpanded=!0}jt.Object.defineProperties(Si.prototype,{portSpreading:{get:function(){return this.Ba!==null?this.Ba.er:Zm},set:function(a){var y=this.portSpreading;y!==a&&(Cd(this),this.Ba.er=a,this.g("portSpreading",y,a),a=this.diagram,a!==null&&a.undoManager.isUndoingRedoing||this.Bd())}},avoidable:{get:function(){return(this.U&8)!==0},set:function(a){var y=(this.U&8)!==0;if(y!==a){this.U^=8;var x=this.diagram;x!==null&&md(x,this),this.g("avoidable",y,a)}}},avoidableMargin:{get:function(){return this.Ba!==null?this.Ba.yp:to},set:function(a){typeof a=="number"&&(a=new pr(a));var y=this.avoidableMargin;if(!y.D(a)){a=a.J(),Cd(this),this.Ba.yp=a;var x=this.diagram;x!==null&&md(x,this),this.g("avoidableMargin",y,a)}}},linksConnected:{get:function(){return this.jb.iterator}},linkConnected:{get:function(){return this.Ba!==null?this.Ba.Dq:null},set:function(a){var y=this.linkConnected;y!==a&&(Cd(this),this.Ba.Dq=a,this.g("linkConnected",y,a))}},linkDisconnected:{get:function(){return this.Ba!==null?this.Ba.Eq:null},set:function(a){var y=this.linkDisconnected;y!==a&&(Cd(this),this.Ba.Eq=a,this.g("linkDisconnected",y,a))}},linkValidation:{get:function(){return this.Ba!==null?this.Ba.gj:null},set:function(a){var y=this.linkValidation;y!==a&&(Cd(this),this.Ba.gj=a,this.g("linkValidation",y,a))}},isLinkLabel:{get:function(){return this.Yk!==null}},labeledLink:{get:function(){return this.Yk},set:function(a){var y=this.Yk;if(y!==a){var x=this.diagram,b=this.data;if(y!==null){if(y.wd!==null&&(y.wd.remove(this),y.v()),x!==null&&b!==null&&!x.undoManager.isUndoingRedoing){var E=y.data,z=x.model;if(E!==null&&z.ri()){var ee=z.wa(b);ee!==void 0&&z.Qx(E,ee)}}this.containingGroup=null}this.Yk=a,a!==null&&(o1(a,this),x===null||b===null||x.undoManager.isUndoingRedoing||(E=a.data,x=x.model,E!==null&&x.ri()&&(b=x.wa(b),b!==void 0&&x.Bu(E,b))),this.containingGroup=a.containingGroup),rl(this),this.g("labeledLink",y,a)}}},port:{get:function(){return this.ns("")}},ports:{get:function(){return this.wc===null&&JS(this),this.wc.iteratorValues}},isTreeExpanded:{get:function(){return(this.U&1)!==0},set:function(a){var y=(this.U&1)!==0;if(y!==a){this.U^=1;var x=this.diagram;if(this.g("isTreeExpanded",y,a),y=this.treeExpandedChanged,y!==null){var b=!0;x!==null&&(b=x.aa,x.aa=!0),y(this),x!==null&&(x.aa=b)}x!==null&&x.undoManager.isUndoingRedoing?this.Zb(a):a?this.expandTree():this.collapseTree()}}},wasTreeExpanded:{get:function(){return(this.U&2)!==0},set:function(a){var y=(this.U&2)!==0;y!==a&&(this.U^=2,this.g("wasTreeExpanded",y,a))}},treeExpandedChanged:{get:function(){return this.Ba!==null?this.Ba.Vr:null},set:function(a){var y=this.treeExpandedChanged;y!==a&&(Cd(this),this.Ba.Vr=a,this.g("treeExpandedChanged",y,a))}},isTreeLeaf:{get:function(){return(this.U&4)!==0},set:function(a){var y=(this.U&4)!==0;y!==a&&(this.U^=4,this.g("isTreeLeaf",y,a))}}}),Si.prototype.expandTree=Si.prototype.expandTree,Si.prototype.collapseTree=Si.prototype.collapseTree,Si.prototype.findTreeParts=Si.prototype.wz,Si.prototype.findTreeChildrenNodes=Si.prototype.Ou,Si.prototype.findTreeChildrenLinks=Si.prototype.Qo,Si.prototype.findTreeLevel=Si.prototype.uz,Si.prototype.findTreeParentChain=Si.prototype.vz,Si.prototype.findTreeParentNode=Si.prototype.pg,Si.prototype.findTreeParentLink=Si.prototype.kh,Si.prototype.findCommonTreeParent=Si.prototype.gz,Si.prototype.findTreeRoot=Si.prototype.xz,Si.prototype.isInTreeOf=Si.prototype.Nz,Si.prototype.findPort=Si.prototype.ns,Si.prototype.findLinksTo=Si.prototype.kz,Si.prototype.findLinksBetween=Si.prototype.jz,Si.prototype.findNodesInto=Si.prototype.Oo,Si.prototype.findNodesOutOf=Si.prototype.Po,Si.prototype.findNodesConnected=Si.prototype.Mu,Si.prototype.findLinksInto=Si.prototype.Sd,Si.prototype.findLinksOutOf=Si.prototype.Mo,Si.prototype.findExternalTreeLinksConnected=Si.prototype.qx,Si.prototype.invalidateConnectedLinks=Si.prototype.Bd,Si.prototype.invalidateLinkBundle=Si.prototype.Lz;var Ox=new mn(Si,"SpreadingNone",10),Zm=new mn(Si,"SpreadingEvenly",11),Yv=new mn(Si,"SpreadingPacked",12);Si.className="Node",Si.SpreadingNone=Ox,Si.SpreadingEvenly=Zm,Si.SpreadingPacked=Yv;function xr(a,y){a===void 0||a instanceof Ya||typeof a=="string"?Si.call(this,a):(Si.call(this),a&&(y=a)),this.U|=4608,this.Gn=new Bn,this.$a=null,this.Sc=new sa,this.Sc.group=this,this.gl=new Bn,this.tb=this.$p=null,y&&Object.assign(this,y)}Wt(xr,Si),xr.prototype.cloneProtected=function(a){Si.prototype.cloneProtected.call(this,a),this.U=this.U&-32769;var y=a.Nl(function(x){return x instanceof sl});y instanceof sl?a.$a=y:a.$a=null,this.Sc!==null?(a.Sc=this.Sc.copy(),a.Sc.group=a):(a.Sc!==null&&(a.Sc.group=null),a.Sc=null),this.tb!==null&&(a.tb=this.tb.copy())},Ie=xr.prototype,Ie.Af=function(a){Si.prototype.Af.call(this,a);var y=a.Rj();for(a=a.memberParts;a.next();){var x=a.value;if(x.v(),x.C(8),x.Ej(),x instanceof Si)x.Bd(y);else if(x instanceof ei)for(x=x.labelNodes;x.next();)x.value.Bd(y)}},Ie.gk=function(a,y,x,b,E,z,ee){if(a===la&&y==="elements"){if(E instanceof sl)this.$a===null?this.$a=E:this.$a!==E&&vt("Cannot insert a second Placeholder into the visual tree of a Group.");else if(E instanceof Kn){var re=E.Nl(function(oe){return oe instanceof sl});re instanceof sl&&(this.$a===null?this.$a=re:this.$a!==re&&vt("Cannot insert a second Placeholder into the visual tree of a Group."))}}else a===ga&&y==="elements"&&this.$a!==null&&(b===this.$a?this.$a=null:b instanceof Kn&&this.$a.rg(b)&&(this.$a=null));Si.prototype.gk.call(this,a,y,x,b,E,z,ee)},Ie.Xl=function(a,y){Si.prototype.Xl.call(this,a,y),this.isClipping&&this.type!==Kn.Spot&&this.isSubGraphExpanded&&(a=this.resizeObject,a instanceof Kn&&(a=a.Pb()),this.tb===null&&(this.tb=new tn),a.mi(this.tb),a instanceof Nr&&this.tb.Bc(-a.strokeWidth,-a.strokeWidth))},Ie.eh=function(a,y,x,b){this.nf=this.$a,Si.prototype.eh.call(this,a,y,x,b)},Ie.Va=function(){var a=this;a.isSubGraphExpanded&&this.memberParts.each(function(y){!a.computesBoundsIncludingLinks&&y instanceof ei||y.Va()}),Si.prototype.Va.call(this)},Ie.si=function(){if(!Si.prototype.si.call(this))return!1;for(var a=this.memberParts;a.next();){var y=a.value;if(y instanceof Si){if(y.isVisible()&&ol(y))return!1}else if(y instanceof ei&&y.isVisible()&&ol(y)&&y.fromNode!==this&&y.toNode!==this)return!1}return!0};function Kv(a,y){if(a.Gn.add(y)){y instanceof xr&&a.gl.add(y);var x=a.memberAdded;if(x!==null){var b=!0,E=a.diagram;E!==null&&(b=E.aa,E.aa=!0),x(a,y),E!==null&&(E.aa=b)}a.isVisible()&&a.isSubGraphExpanded||y.Zb(!1)}y instanceof ei&&!a.computesBoundsIncludingLinks||(y=a.$a,y===null&&(y=a),y.v())}function Zv(a,y){if(a.Gn.remove(y)){y instanceof xr&&a.gl.remove(y);var x=a.memberRemoved;if(x!==null){var b=!0,E=a.diagram;E!==null&&(b=E.aa,E.aa=!0),x(a,y),E!==null&&(E.aa=b)}a.isVisible()&&a.isSubGraphExpanded||y.Zb(!0)}y instanceof ei&&!a.computesBoundsIncludingLinks||(y=a.$a,y===null&&(y=a),y.v())}Ie.Lj=function(){if(0<this.Gn.count){var a=this.diagram;if(a!==null)for(var y=this.Gn.copy().iterator;y.next();)a.remove(y.value)}Si.prototype.Lj.call(this)},xr.prototype.canAddMembers=function(a){var y=this.diagram;if(y===null)return!1;for(y=y.commandHandler,a=vn(a).iterator;a.next();)if(!y.isValidMember(this,a.value))return!1;return!0},xr.prototype.addMembers=function(a,y){var x=this.diagram;if(x===null)return!1;x=x.commandHandler;var b=!0;for(a=vn(a).iterator;a.next();){var E=a.value;!y||x.isValidMember(this,E)?E.containingGroup=this:b=!1}return b},xr.prototype.canUngroup=function(){if(!this.ungroupable)return!1;var a=this.layer;return a===null||!a.allowUngroup?!1:(a=a.diagram,!!(a===null||a.allowUngroup))},Ie=xr.prototype,Ie.Bd=function(a){var y=(this.U&65536)!==0;if(Si.prototype.Bd.call(this,a),!y)for(!(this.U&65536)&&(this.U=this.U^65536),y=this.Lu();y.next();){var x=y.value;if(a===void 0||!a.contains(x)){var b=x.fromNode;b!==null&&b!==this&&b.Td(this)&&!b.isVisible()?(Wl(x.fromPort),Wl(x.toPort),x.bb()):(b=x.toNode,b!==null&&b!==this&&b.Td(this)&&!b.isVisible()&&(Wl(x.fromPort),Wl(x.toPort),x.bb()))}}},Ie.Lu=function(){var a=this.diagram!==null&&this.diagram.Pw;if(a&&this.$p!==null)return this.$p.iterator;var y=this.Rj();y.add(this);for(var x=new Bn,b=y.iterator;b.next();){var E=b.value;if(E instanceof Si)for(E=E.linksConnected;E.next();){var z=E.value;y.contains(z)||x.add(z)}}return a&&(this.$p=x),x.iterator},Ie.iz=function(){var a=this.Rj();a.add(this);for(var y=new Bn,x=a.iterator;x.next();){var b=x.value;if(b instanceof Si)for(b=b.linksConnected;b.next();){var E=b.value,z=E.fromNode;z===null||a.contains(z)&&z!==this||y.add(z),E=E.toNode,E===null||a.contains(E)&&E!==this||y.add(E)}}return y.iterator},Ie.hz=function(){function a(x,b){x!==null&&(b.add(x),a(x.containingGroup,b))}var y=new Bn;return a(this,y),y},Ie.Rj=function(){var a=new Bn;return Jd(a,this,!0,0,!0),a.remove(this),a},Ie.Zb=function(a){Si.prototype.Zb.call(this,a);for(var y=this.memberParts;y.next();)y.value.Zb(a)},xr.prototype.collapseSubGraph=function(){var a=this.diagram;if(a!==null&&!a.Ue){a.Ue=!0;var y=this.Rj();i1(this,y,a,this),a.Ue=!1}};function i1(a,y,x,b){for(var E=a.memberParts;E.next();){var z=E.value;if(z.Zb(!1),z instanceof xr&&z.isSubGraphExpanded&&(z.wasSubGraphExpanded=z.isSubGraphExpanded,i1(z,y,x,b)),z instanceof Si)z.Bd(y),x.Aj(z,b);else if(z instanceof ei)for(z=z.labelNodes;z.next();)z.value.Bd(y)}a.isSubGraphExpanded=!1}xr.prototype.expandSubGraph=function(){var a=this.diagram;if(a!==null&&!a.Ue){a.Ue=!0;var y=this.Rj();r1(this,y,a,this),a.Ue=!1}};function r1(a,y,x,b){for(var E=a.memberParts;E.next();){var z=E.value;if(z.Zb(!0),z instanceof xr&&z.wasSubGraphExpanded&&(z.wasSubGraphExpanded=!1,r1(z,y,x,b)),z instanceof Si)z.Bd(y),x.Cj(z,b);else if(z instanceof ei)for(z=z.labelNodes;z.next();)z.value.Bd(y)}a.isSubGraphExpanded=!0}xr.prototype.move=function(a,y){y===void 0&&(y=!1);var x=y?this.location:this.position,b=x.x;x=x.y;var E=a.x,z=a.y;if(!(b===E||isNaN(b)&&isNaN(E))||!(x===z||isNaN(x)&&isNaN(z))){for(b=E-(isNaN(b)?0:b),x=z-(isNaN(x)?0:x),z=Je.alloc(),Si.prototype.move.call(this,a,y),a=new Bn,y=this.Rj().iterator;y.next();)E=y.value,E instanceof ei&&(E.suspendsRouting&&a.add(E),E.fd||E.fromNode!==this&&E.toNode!==this)&&(E.suspendsRouting=!0);for(y.reset();y.next();)if(E=y.value,!(E.ph()||E instanceof Si&&E.isLinkLabel)){var ee=E.position,re=E.location;ee.w()?(z.x=ee.x+b,z.y=ee.y+x,E.position=z):re.w()&&(z.x=re.x+b,z.y=re.y+x,E.location=z)}for(y.reset();y.next();)E=y.value,E instanceof ei&&(E.suspendsRouting=a.contains(E),E.fd||E.fromNode!==this&&E.toNode!==this)&&(ee=E.position,z.x=ee.x+b,z.y=ee.y+x,z.w()?E.move(z):E.bb(),Qv(E)&&E.bb());Je.free(z)}},jt.Object.defineProperties(xr.prototype,{placeholder:{get:function(){return this.$a}},computesBoundsAfterDrag:{get:function(){return(this.U&2048)!==0},set:function(a){var y=(this.U&2048)!==0;y!==a&&(this.U^=2048,this.g("computesBoundsAfterDrag",y,a))}},computesBoundsIncludingLinks:{get:function(){return(this.U&4096)!==0},set:function(a){var y=(this.U&4096)!==0;y!==a&&(this.U^=4096,this.g("computesBoundsIncludingLinks",y,a))}},computesBoundsIncludingLocation:{get:function(){return(this.U&8192)!==0},set:function(a){var y=(this.U&8192)!==0;y!==a&&(this.U^=8192,this.g("computesBoundsIncludingLocation",y,a))}},handlesDragDropForMembers:{get:function(){return(this.U&16384)!==0},set:function(a){var y=(this.U&16384)!==0;y!==a&&(this.U^=16384,this.g("handlesDragDropForMembers",y,a))}},memberParts:{get:function(){return this.Gn.iterator}},layout:{get:function(){return this.Sc},set:function(a){var y=this.Sc;if(y!==a){a!==null&&a.diagram!==null&&a.diagram.layout===a&&vt("A layout cannot be both the Diagram.layout and a Group.layout: "+a),y!==null&&(y.diagram=null,y.group=null),this.Sc=a;var x=this.diagram;a!==null&&(a.diagram=x,a.group=this),x!==null&&(x.xh=!0),this.g("layout",y,a),x!==null&&x.$b()}}},memberAdded:{get:function(){return this.Ba!==null?this.Ba.Mq:null},set:function(a){var y=this.memberAdded;y!==a&&(Cd(this),this.Ba.Mq=a,this.g("memberAdded",y,a))}},memberRemoved:{get:function(){return this.Ba!==null?this.Ba.Nq:null},set:function(a){var y=this.memberRemoved;y!==a&&(Cd(this),this.Ba.Nq=a,this.g("memberRemoved",y,a))}},memberValidation:{get:function(){return this.Ba!==null?this.Ba.ij:null},set:function(a){var y=this.memberValidation;y!==a&&(Cd(this),this.Ba.ij=a,this.g("memberValidation",y,a))}},ungroupable:{get:function(){return(this.U&256)!==0},set:function(a){var y=(this.U&256)!==0;y!==a&&(this.U^=256,this.g("ungroupable",y,a))}},isSubGraphExpanded:{get:function(){return(this.U&512)!==0},set:function(a){var y=(this.U&512)!==0;if(y!==a){this.U^=512;var x=this.diagram;if(this.g("isSubGraphExpanded",y,a),y=this.subGraphExpandedChanged,y!==null){var b=!0;x!==null&&(b=x.aa,x.aa=!0),y(this),x!==null&&(x.aa=b)}x!==null&&x.undoManager.isUndoingRedoing?(this.$a!==null&&this.$a.v(),this.memberParts.each(function(E){E.updateAdornments()})):a?this.expandSubGraph():this.collapseSubGraph()}}},wasSubGraphExpanded:{get:function(){return(this.U&1024)!==0},set:function(a){var y=(this.U&1024)!==0;y!==a&&(this.U^=1024,this.g("wasSubGraphExpanded",y,a))}},subGraphExpandedChanged:{get:function(){return this.Ba!==null?this.Ba.Kr:null},set:function(a){var y=this.subGraphExpandedChanged;y!==a&&(Cd(this),this.Ba.Kr=a,this.g("subGraphExpandedChanged",y,a))}},rh:{get:function(){return(this.U&32768)!==0},set:function(a){(this.U&32768)!==0!==a&&(this.U^=32768)}}}),xr.prototype.expandSubGraph=xr.prototype.expandSubGraph,xr.prototype.collapseSubGraph=xr.prototype.collapseSubGraph,xr.prototype.findSubGraphParts=xr.prototype.Rj,xr.prototype.findContainingGroupChain=xr.prototype.hz,xr.prototype.findExternalNodesConnected=xr.prototype.iz,xr.prototype.findExternalLinksConnected=xr.prototype.Lu,xr.prototype.ensureBounds=xr.prototype.Va,xr.className="Group";function sl(a){Ot.call(this),this.yb=wa,this.ko=new tn(NaN,NaN,NaN,NaN),a&&Object.assign(this,a)}Wt(sl,Ot),sl.prototype.cloneProtected=function(a){Ot.prototype.cloneProtected.call(this,a),a.yb=this.yb.J(),a.ko=this.ko.copy()},sl.prototype.gh=function(a){if(this.background===null&&this.areaBackground===null)return!1;var y=this.naturalBounds;return Oo(0,0,y.width,y.height,a.x,a.y)},sl.prototype.Wl=function(){var a=this.part;if(a!==null&&(a instanceof xr||a instanceof lo)||vt("Placeholder is not inside a Group or Adornment."),a instanceof xr){var y=this.computeBorder(this.ko),x=this.minSize,b=this.dc;for(Xr(b,(isFinite(x.width)?Math.max(x.width,y.width):y.width)||0,(isFinite(x.height)?Math.max(x.height,y.height):y.height)||0),this.Ge(0,0,b.width,b.height),b=a.memberParts,x=!1;b.next();)if(b.value.isVisible()){x=!0;break}b=a.diagram,!x||b===null||b.animationManager.Xu(a)||isNaN(y.x)||isNaN(y.y)||(x=Je.alloc(),x.xi(y,a.locationSpot),x.D(a.location)||(a.location=x),Je.free(x))}else{y=this.dc,x=this.yb,b=x.left+x.right;var E=x.top+x.bottom,z=a.adornedObject;a.angle=z.li();var ee=0;z instanceof Nr&&(ee=z.strokeWidth);var re=z.Df(),oe=z.naturalBounds,de=(oe.width+ee)*re;ee=(oe.height+ee)*re,a.type!==Kn.Link&&(re=z.ga(a.category==="Selection"?Qi:a.locationSpot,Je.alloc()),a.location=re,Je.free(re)),isNaN(de)||isNaN(ee)?(a=z.ga(Qi,Je.alloc()),de=tn.allocAt(a.x,a.y,0,0),de.Ye(z.ga(ho,a)),de.Ye(z.ga(co,a)),de.Ye(z.ga(Jo,a)),Xr(y,de.width+b||0,de.height+E||0),this.Ge(-x.left,-x.top,y.width,y.height),Je.free(a),tn.free(de)):(Xr(y,de+b||0,ee+E||0),this.Ge(-x.left,-x.top,y.width,y.height))}},sl.prototype.eh=function(a,y,x,b){this.actualBounds.h(a,y,x,b)},sl.prototype.computeBorder=function(a){var y=this.part,x=y.diagram,b=x===null||!x.animationManager.isAnimating;if(x!==null&&y instanceof xr&&!y.layer.isTemporary&&y.computesBoundsAfterDrag&&this.ko.w()){var E=x.toolManager.findTool("Dragging");if(E===x.currentTool&&(x=E.computeBorder(y,this.ko,a),x!==null))return x}x=tn.alloc(),E=this.computeMemberBounds(x);var z=this.yb;return y instanceof xr&&!y.isSubGraphExpanded?a.h(E.x-z.left,E.y-z.top,0,0):a.h(E.x-z.left,E.y-z.top,Math.max(E.width+z.left+z.right,0),Math.max(E.height+z.top+z.bottom,0)),tn.free(x),b&&y instanceof xr&&y.computesBoundsIncludingLocation&&y.location.w()&&a.Ye(y.location),a},sl.prototype.computeMemberBounds=function(a){if(!(this.part instanceof xr))return a.h(0,0,0,0),a;for(var y=this.part,x=1/0,b=1/0,E=-1/0,z=-1/0,ee=y.memberParts;ee.next();){var re=ee.value;if(re.isVisible()){if(re instanceof ei&&(!y.computesBoundsIncludingLinks||ru(re)||re.fromNode===y||re.toNode===y))continue;re=re.actualBounds,re.left<x&&(x=re.left),re.top<b&&(b=re.top),re.right>E&&(E=re.right),re.bottom>z&&(z=re.bottom)}}return isFinite(x)&&isFinite(b)?a.h(x,b,E-x,z-b):(y=y.location,a.h(y.x,y.y,0,0)),a},jt.Object.defineProperties(sl.prototype,{padding:{get:function(){return this.yb},set:function(a){typeof a=="number"&&(a=new pr(a));var y=this.yb;y.D(a)||(this.yb=a=a.J(),this.g("padding",y,a),this.v())}}}),sl.className="Placeholder";function ei(a){Zi.call(this,Kn.Link),this.Qa=8,this.ef=null,this.ff="",this.uf=this.gn=null,this.vf="",this.uo=null,this.qk=ll,this.Om=0,this.Qm=ll,this.Rm=NaN,this.qj=$v,this.po=.5,this.wd=null,this.Nb=new Dn().freeze(),this.Tg=this.Mg=null,this.ml=new tn,this.ua=new Jn,this.u=this.o=this.Sf=this.Wf=null,this.su=new Je,this.cq=this.Mw=this.Lw=null,this.vt=NaN,this.ba=null,this.j=[],a&&Object.assign(this,a)}Wt(ei,Zi),ei.prototype.cloneProtected=function(a){Zi.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())},Ie=ei.prototype,Ie.Af=function(a){Zi.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&&Wl(y),a=a.toPort,a!==null&&Wl(a)},Ie.qb=function(a){a.classType===ei?(a.value&2)===2?this.routing=a:a===au||a===Ad||a===ig?this.curve=a:a===fp||a===e0||a===t0?this.adjusting=a:a!==$v&&a!==ll&&vt("Unknown Link enum value for a Link property: "+a):Zi.prototype.qb.call(this,a)},Ie.Xc=function(){this.ba===null&&(this.ba=new $g)},Ie.si=function(){var a=this.fromNode;if(a!==null){var y=a.findVisibleNode();if(y!==null&&(a=y),ol(a)||Xd(a))return!1}return a=this.toNode,!(a!==null&&(y=a.findVisibleNode(),y!==null&&(a=y),ol(a)||Xd(a)))},Ie.zv=function(){return!1},Ie.Av=function(){},Ie.Zc=function(){return!1},ei.prototype.computeAngle=function(a,y,x){return ei.computeAngle(y,x)},ei.computeAngle=function(a,y){switch(a){default:case ll:a=0;break;case gp:a=y;break;case pp:a=y+90;break;case mp:a=y-90;break;case ey:a=y+180;break;case n0:a=Bt.bp(y),90<a&&270>a&&(a-=180);break;case vp:a=Bt.bp(y+90),90<a&&270>a&&(a-=180);break;case yp:a=Bt.bp(y-90),90<a&&270>a&&(a-=180);break;case i0:if(a=Bt.bp(y),45<a&&135>a||225<a&&315>a)return 0;90<a&&270>a&&(a-=180)}return Bt.bp(a)};function tg(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&&Zv(x,a),a.Ah=y,y!==null&&Kv(y,a);var E=a.containingGroupChanged;if(E!==null){var z=!0,ee=a.diagram;ee!==null&&(z=ee.aa,ee.aa=!0),E(a,x,y),ee!==null&&(ee.aa=z)}!a.fd||a.Lw!==x&&a.Mw!==x||a.bb()}if(a.isLabeledLink)for(a=a.labelNodes;a.next();)a.value.containingGroup=b}Ie=ei.prototype,Ie.oh=function(){var a=this.containingGroup;a!==null&&this.fromNode!==a&&this.toNode!==a&&a.computesBoundsIncludingLinks&&Zi.prototype.oh.call(this)},Ie.To=function(a){var y=this.fromNode;return a===y?this.toNode:y},Ie.Cz=function(a){var y=this.fromPort;return a===y?this.toPort:y};function o1(a,y){a.wd===null&&(a.wd=new Bn),a.wd.add(y),a.v()}Ie.Vo=function(a){if(Zi.prototype.Vo.call(this,a),Bh(this)&&this.Xo(this.actualBounds),!a){a=this.ef;var y=null;a!==null&&(y=this.fromPort,Ym(a,this,y));var x=this.uf;if(x!==null){var b=this.toPort;x===a&&b===y||Ym(x,this,b)}dp(this)}},Ie.Wo=function(a){if(Zi.prototype.Wo.call(this,a),Bh(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 b=this.toPort;x===a&&b===y||Km(x,this,b)}hp(this)}},Ie.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))},ei.prototype.updateRelationshipsFromData=function(){if(this.data!==null){var a=this.diagram;a!==null&&a.partManager.updateRelationshipsFromData(this)}},ei.prototype.move=function(a,y){var x=y?this.location:this.position,b=x.x;isNaN(b)&&(b=0);var E=x.y;for(isNaN(E)&&(E=0),b=a.x-b,E=a.y-E,y===!0?Zi.prototype.move.call(this,a,!1):(a=Je.allocAt(x.x+b,x.y+E),Zi.prototype.move.call(this,a,!1),Je.free(a)),Td(this,b,E),a=this.labelNodes;a.next();)y=a.value,x=y.position,y.moveTo(x.x+b,x.y+E)},ei.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},ei.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},ei.prototype.computeMidPoint=function(a){var y=this.pointsCount;if(y===0)return a.assign(Fi),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()===au))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()===au){if(y===3){x=this.i(0),b=this.i(1);var E=this.i(2);return Bt.ax(x.x,x.y,b.x,b.y,b.x,b.y,E.x,E.y,a),a}if(b=(y-1)/3|0,x=3*(b/2|0),b%2===1){b=this.i(x),E=this.i(x+1);var z=this.i(x+2);x=this.i(x+3),Bt.ax(b.x,b.y,E.x,E.y,z.x,z.y,x.x,x.y,a)}else a.assign(this.i(x));return a}var ee=this.flattenedLengths;for(x=this.flattenedTotalLength,E=z=b=0;b<x/2&&z<y&&(E=ee[z],!(b+E>x/2));)b+=E,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-b)):a.h(y.x,y.y+(x/2-b)):1>Math.abs(y.y-z.y)?y.x>z.x?a.h(y.x-(x/2-b),y.y):a.h(y.x+(x/2-b),y.y):(x=(x/2-b)/E,a.h(y.x+x*(z.x-y.x),y.y+x*(z.y-y.y))),a},ei.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()===au))return this.ua.wx(.5);if(this.computeCurve()===au&&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),Bt.My(a.x,a.y,y.x,y.y,b.x,b.y,x.x,x.y)}if(0<x&&x+1<a)return this.i(x-1).ab(this.i(x+1))}y=this.flattenedLengths,b=this.flattenedTotalLength;var E=0;x=0;for(var z;E<b/2&&x<a&&(z=y[x],!(E+z>b/2));)E+=z,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(0<x&&x+2<a)return this.i(x-1).ab(this.i(x+2))}else{if(1>Math.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)},Ie=ei.prototype,Ie.i=function(a){return this.Nb.s[a]},Ie.dd=function(a,y){this.Nb.cd(a,y)},Ie.L=function(a,y,x){this.Nb.cd(a,new Je(y,x))},Ie.Kz=function(a,y){this.Nb.Gb(a,y)},Ie.m=function(a,y,x){this.Nb.Gb(a,new Je(y,x))},Ie.ne=function(a){this.Nb.add(a)},Ie.yf=function(a,y){this.Nb.add(new Je(a,y))},Ie.pv=function(a){this.Nb.mb(a)},Ie.Fj=function(){this.Nb.clear()};function Td(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,E=new Dn,z=a.Nb.iterator;z.next();){var ee=z.value;E.add(new Je(ee.x+y,ee.y+x).freeze())}E.freeze(),z=a.Nb,a.Nb=E,ee=a.diagram,isNaN(y)||isNaN(x)||ee!==null&&ee.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),rl(a)),b?Xm(a):(a.defaultFromPoint&&(a.defaultFromPoint=a.i(0)),a.defaultToPoint&&(a.defaultToPoint=a.i(a.pointsCount-1))),ee!==null&&ee.animationManager.zb&&le(ee.animationManager,a,E),a.g("points",z,E)}}Ie.uh=function(){this.Mg===null&&(this.Mg=this.Nb,this.Nb=this.Nb.copy())},Ie.zf=function(){if(this.Mg!==null){for(var a=this.Mg,y=this.Nb,x=1/0,b=1/0,E=a.s,z=E.length,ee=0;ee<z;ee++){var re=E[ee];x=Math.min(re.x,x),b=Math.min(re.y,b)}re=ee=1/0;for(var oe=y.s,de=oe.length,fe=0;fe<de;fe++){var ye=oe[fe];ee=Math.min(ye.x,ee),re=Math.min(ye.y,re),ye.freeze()}if(y.freeze(),de===z){for(z=0;z<de;z++)if(fe=E[z],ye=oe[z],fe.x-x!==ye.x-ee||fe.y-b!==ye.y-re){this.qc();break}}else this.qc();this.Mg=null,x=this.diagram,x!==null&&x.animationManager.zb&&le(x.animationManager,this,y),Xm(this),this.g("points",a,y)}},Ie.rv=function(){this.Mg!==null&&(this.Nb=this.Mg,this.Mg=null)};function Xm(a){a.Nb.count===0?a.fd=!1:(a.fd=!0,a.cq=null,a.vt=NaN,a.defaultFromPoint=a.i(0),a.defaultToPoint=a.i(a.pointsCount-1),$m(a,!1))}Ie.bb=function(){if(!this.suspendsRouting){var a=this.diagram;if(a){if(a.As.contains(this)||a.undoManager.isUndoingRedoing||(a=a.animationManager,a.isTicking&&!a.isAnimating))return;this.Tg===null||a.isTicking||(this.Tg=null)}a=this.path,a!==null&&(this.fd=!1,this.v(),a.v())}},Ie.vg=function(){if(!this.fd&&!this.computingPoints){var a=!0;try{this.computingPoints=!0,this.uh(),a=this.computePoints()}catch(y){this.computingPoints=!1,this.rv()}finally{this.computingPoints=!1,a?this.zf():this.rv()}}},ei.prototype.computePoints=function(){if(this.diagram===null)return!1;var a=this.fromNode,y=null;if(a===null?(cf||(cf=new Si,cf.desiredSize=Oi,cf.Va()),this.defaultFromPoint&&(cf.location=this.defaultFromPoint,cf.Va(),y=a=cf)):y=this.fromPort,y!==null&&!a.isVisible()){var x=a.findVisibleNode();x!==null&&x!==a?(a=x,y=x.port):a=x}if(this.Lw=a,a===null||!a.location.w())return!1;for(;!(y===null||y.actualBounds.w()&&y.Ed());)y=y.panel;if(y===null)return!1;var b=this.toNode,E=null;if(b===null?(df||(df=new Si,df.desiredSize=Oi,df.Va()),this.defaultToPoint&&(df.location=this.defaultToPoint,df.Va(),E=b=df)):E=this.toPort,E===null||b.isVisible()||(x=b.findVisibleNode(),x!==null&&x!==b?(b=x,E=x.port):b=x),this.Mw=b,b===null||!b.location.w())return!1;for(;!(E===null||E.actualBounds.w()&&E.Ed());)E=E.panel;if(E===null)return!1;var z=this.pointsCount,ee=this.computeSpot(!0,y);x=this.computeSpot(!1,E);var re=ng(ee),oe=ng(x),de=y===E&&y!==null,fe=this.isOrthogonal,ye=this.curve===au;this.Wf=de&&!fe?ye=!0:!1;var Ce=this.computeAdjusting()===ll||de;if(!fe&&!de&&re&&oe){if(re=!1,!Ce&&3<=z&&(Ce=this.getLinkPoint(a,y,ee,!0,!1,b,E),oe=this.getLinkPoint(b,E,x,!1,!1,a,y),re=this.adjustPoints(0,Ce,z-1,oe))&&(Ce=this.getLinkPoint(a,y,ee,!0,!1,b,E),oe=this.getLinkPoint(b,E,x,!1,!1,a,y),this.adjustPoints(0,Ce,z-1,oe)),!re)if(this.Fj(),ye){z=this.getLinkPoint(a,y,ee,!0,!1,b,E),Ce=this.getLinkPoint(b,E,x,!1,!1,a,y),re=Ce.x-z.x,oe=Ce.y-z.y,de=this.computeCurviness(),ye=fe=0;var Ne=z.x+re/3,Oe=z.y+oe/3,Ve=Ne,ft=Oe;Bt.B(oe,0)?ft=0<re?ft-de:ft+de:(fe=-re/oe,ye=Math.sqrt(de*de/(fe*fe+1)),0>de&&(ye=-ye),Ve=(0>oe?-1:1)*ye+Ne,ft=fe*(Ve-Ne)+Oe),Ne=z.x+2*re/3,Oe=z.y+2*oe/3;var lt=Ne,mt=Oe;Bt.B(oe,0)?mt=0<re?mt-de:mt+de:(lt=(0>oe?-1:1)*ye+Ne,mt=fe*(lt-Ne)+Oe),this.Fj(),this.ne(z),this.yf(Ve,ft),this.yf(lt,mt),this.ne(Ce),this.dd(0,this.getLinkPoint(a,y,ee,!0,!1,b,E)),this.dd(3,this.getLinkPoint(b,E,x,!1,!1,a,y))}else z=b,Ce=E,b=this.getLinkPoint(a,y,ee,!0,!1,z,Ce),E=this.getLinkPoint(z,Ce,x,!1,!1,a,y),this.hasCurviness()?(Ce=E.x-b.x,x=E.y-b.y,ee=this.computeCurviness(),a=b.x+Ce/2,y=b.y+x/2,z=a,re=y,Bt.B(x,0)?re=0<Ce?re-ee:re+ee:(Ce=-Ce/x,z=Math.sqrt(ee*ee/(Ce*Ce+1)),0>ee&&(z=-z),z=(0>x?-1:1)*z+a,re=Ce*(z-a)+y),this.ne(b),this.yf(z,re),this.ne(E)):(this.ne(b),this.ne(E),re=tn.alloc(),y.mi(re),oe=re.ca(E),Ce.mi(re),de=re.ca(b),(oe||de)&&(ee=y.ga(Jm(ee),new Je),this.dd(0,this.getLinkPointFromPoint(a,y,ee,E,!0,ee)),x=Ce.ga(Jm(x),new Je),this.dd(1,this.getLinkPointFromPoint(z,Ce,x,b,!1,x))),tn.free(re))}else{ye=this.isAvoiding,Ce&&(fe&&ye||de)&&this.Fj();var St=de?this.computeCurviness():0;ye=this.getLinkPoint(a,y,ee,!0,fe,b,E),Ne=Ve=Oe=0,(fe||!re||de)&&(ft=this.computeEndSegmentLength(a,y,ee,!0),Ne=this.getLinkDirection(a,y,ye,ee,!0,fe,b,E),de&&(re||ee.D(x)||!fe&&ee.x+x.x===1&&ee.y+x.y===1)&&(Ne-=fe?90:30,0>St&&(Ne-=180)),0>Ne?Ne+=360:360<=Ne&&(Ne-=360),de&&(ft+=Math.abs(St)*(fe?1:2)),Ne===0?Oe=ft:Ne===90?Ve=ft:Ne===180?Oe=-ft:Ne===270?Ve=-ft:(Oe=ft*Math.cos(Ne*Math.PI/180),Ve=ft*Math.sin(Ne*Math.PI/180)),ee.Mc()&&de&&(ft=y.ga(mr,Je.alloc()),lt=Je.allocAt(ft.x+1e3*Oe,ft.y+1e3*Ve),this.getLinkPointFromPoint(a,y,ft,lt,!0,ye),Je.free(ft),Je.free(lt))),ft=this.getLinkPoint(b,E,x,!1,fe,a,y);var Ct=mt=lt=0;if(fe||!oe||de){var Rt=this.computeEndSegmentLength(b,E,x,!1);Ct=this.getLinkDirection(b,E,ft,x,!1,fe,a,y),de&&(oe||ee.D(x)||!fe&&ee.x+x.x===1&&ee.y+x.y===1)&&(Ct+=fe?0:30,0>St&&(Ct+=180)),0>Ct?Ct+=360:360<=Ct&&(Ct-=360),de&&(Rt+=Math.abs(St)*(fe?1:2)),Ct===0?lt=Rt:Ct===90?mt=Rt:Ct===180?lt=-Rt:Ct===270?mt=-Rt:(lt=Rt*Math.cos(Ct*Math.PI/180),mt=Rt*Math.sin(Ct*Math.PI/180)),x.Mc()&&de&&(x=E.ga(mr,Je.alloc()),ee=Je.allocAt(x.x+1e3*lt,x.y+1e3*mt),this.getLinkPointFromPoint(b,E,x,ee,!1,ft),Je.free(x),Je.free(ee))}x=ye,(fe||!re||de)&&(x=new Je(ye.x+Oe,ye.y+Ve)),ee=ft,(fe||!oe||de)&&(ee=new Je(ft.x+lt,ft.y+mt)),!Ce&&!fe&&re&&3<z&&this.adjustPoints(0,ye,z-2,ee)?this.dd(z-1,ft):!Ce&&!fe&&oe&&3<z&&this.adjustPoints(1,x,z-1,ft)?this.dd(0,ye):!Ce&&(fe?6<=z:4<z)&&this.adjustPoints(1,x,z-2,ee)?(this.dd(0,ye),this.dd(z-1,ft)):(this.Fj(),this.ne(ye),(fe||!re||de)&&this.ne(x),fe&&this.addOrthoPoints(x,Ne,ee,Ct,a,b),(fe||!oe||de)&&this.ne(ee),this.ne(ft))}return!0};function Xv(a,y){return Math.abs(y.x-a.x)>Math.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}ei.prototype.getLinkPointFromPoint=function(a,y,x,b,E,z){if(z===void 0&&(z=new Je),a===null||y===null)return z.assign(x),z;if(a.isVisible()||(E=a.findVisibleNode(),E!==null&&E!==a&&(y=E.port)),a=null,E=y.panel,E===null||E.se()||(E=E.panel),E===null){E=b.x,b=b.y;var ee=x.x;x=x.y}else{a=E.oe,E=1/(a.m11*a.m22-a.m12*a.m21),ee=a.m22*E;var re=-a.m12*E,oe=-a.m21*E,de=a.m11*E,fe=E*(a.m21*a.dy-a.m22*a.dx),ye=E*(a.m12*a.dx-a.m11*a.dy);E=b.x*ee+b.y*oe+fe,b=b.x*re+b.y*de+ye,ee=x.x*ee+x.y*oe+fe,x=x.x*re+x.y*de+ye}return y.Sj(E,b,ee,x,z),a!==null&&z.transform(a),z};function Qm(a,y){var x=y.Zn;return x===null&&(x=new hf,x.port=y,x.node=y.part,y.Zn=x),f1(x,a)}ei.prototype.getLinkPoint=function(a,y,x,b,E,z,ee,re){if(re===void 0&&(re=new Je),x.sb()&&!ng(x))return y.ga(x,re),re;if(x.$c()){var oe=Qm(this,y);if(oe!==null){if(re.assign(oe.Zo),E&&this.routing===s1){var de=Qm(this,ee);if(de!==null&&oe.Gl<de.Gl){oe=Je.alloc(),de=Je.alloc();var fe=new tn(y.ga(Qi,oe),y.ga(ho,de)),ye=this.computeSpot(!b,ee);a=this.getLinkPoint(z,ee,ye,!b,E,a,y,de),(x.Hf(as)||x.Hf(Po))&&a.y>=fe.y&&a.y<=fe.y+fe.height?re.y=a.y:(x.Hf(na)||x.Hf(ka))&&a.x>=fe.x&&a.x<=fe.x+fe.width&&(re.x=a.x),Je.free(oe),Je.free(de)}}return re}}return x=y.ga(Jm(x),Je.alloc()),this.pointsCount>(E?6:2)?(ee=b?this.i(1):this.i(this.pointsCount-2),E&&(ee=Xv(x,ee.copy()))):(oe=this.computeSpot(!b,ee),z=Je.alloc(),ee=ee.ga(Jm(oe),z),E&&(ee=Xv(x,ee)),Je.free(z)),this.getLinkPointFromPoint(a,y,x,ee,b,re),Je.free(x),re},ei.prototype.getLinkDirection=function(a,y,x,b,E,z,ee,re){e:if(b.sb())var oe=b.x>b.y?b.x>1-b.y?0:b.x<1-b.y?270:315:b.x<b.y?b.x>1-b.y?90:b.x<1-b.y?180:135:.5>b.x?225:.5<b.x?45:0;else{if(b.$c()&&(oe=Qm(this,y),oe!==null))switch(oe.Nc){case 1:oe=270;break e;case 2:oe=180;break e;default:case 4:oe=0;break e;case 8:oe=90;break e}oe=y.ga(mr,Je.alloc()),this.pointsCount>(z?6:2)?(re=E?this.i(1):this.i(this.pointsCount-2),re=z?Xv(oe,re.copy()):x):(x=Je.alloc(),re=re.ga(mr,x),Je.free(x)),x=Math.abs(re.x-oe.x)>Math.abs(re.y-oe.y)?re.x>=oe.x?0:180:re.y>=oe.y?90:270,Je.free(oe),oe=x}return b.Mc()&&ee.Td(a)&&(oe+=180,360<=oe&&(oe-=360)),ng(b)||(a=y.li(),a===0)||(45<=a&&135>a?oe+=90:135<=a&&225>a?oe+=180:225<=a&&315>a&&(oe+=270),360<=oe&&(oe-=360)),oe},ei.prototype.computeEndSegmentLength=function(a,y,x,b){return y!==null&&x.$c()&&(a=Qm(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)},ei.prototype.computeSpot=function(a,y){return y===void 0&&(y=null),a?(a=y||this.fromPort,a===null?a=mr:(y=this.fromSpot,y.Xb()&&(y=a.fromSpot),a=y===Da?Ni:y)):(a=y||this.toPort,a===null?a=mr:(y=this.toSpot,y.Xb()&&(y=a.toSpot),a=y===Da?Ni:y)),a};function ng(a){return a===Ni||a.x===.5&&a.y===.5}function Jm(a){return a.x===.5&&a.y===.5?a:mr}ei.prototype.computeOtherPoint=function(a,y){return this.computeAdjusting()!==ll&&4<this.pointsCount?this.computeMidPoint(new Je):(a=y.Zn,a=a!==null?f1(a,this):null,a!==null?a.Zo:y.ga(mr))},ei.prototype.computeShortLength=function(a){if(a){if(a=this.fromShortLength,isNaN(a)){var y=this.fromPort;y!==null&&(a=y.fromShortLength)}return isNaN(a)?0:a}return a=this.toShortLength,isNaN(a)&&(y=this.toPort,y!==null&&(a=y.toShortLength)),isNaN(a)?0:a},ei.prototype.Cf=function(a,y,x,b,E,z){if(this.pickable===!1)return!1;y===void 0&&(y=null),x===void 0&&(x=null);var ee=z;if(z===void 0&&(ee=dr.alloc(),ee.reset()),ee.multiply(this.transform),this.fh(a,ee))return Sv(this,y,x,E),z===void 0&&dr.free(ee),!0;if(this.Yc(a,ee)){var re=!1;if(!this.isAtomic)for(var oe=this.O.s,de=oe.length;de--;){var fe=oe[de];if(fe.visible||fe===this.locationObject){var ye=fe.actualBounds,Ce=this.naturalBounds;if(!(ye.x>Ce.width||ye.y>Ce.height||0>ye.x+ye.width||0>ye.y+ye.height)){if(ye=dr.alloc(),ye.set(ee),fe instanceof Kn)re=fe.Cf(a,y,x,b,E,ye);else if(this.path===fe){if(fe instanceof Nr)if(re=a,Ce=b,fe.pickable===!1)re=!1;else if(ye.multiply(fe.transform),Ce)e:{var Ne=re,Oe=ye;if(fe.fh(Ne,Oe))re=!0;else{if(Oe===void 0&&(Oe=fe.transform,Ne.Re(fe.actualBounds))){re=!0;break e}re=Ne.left,Ce=Ne.right;var Ve=Ne.top;Ne=Ne.bottom;var ft=Je.alloc(),lt=Je.alloc(),mt=Je.alloc(),St=dr.alloc();St.set(Oe),St.bv(fe.transform),St.Vj(),lt.x=Ce,lt.y=Ve,lt.transform(St),ft.x=re,ft.y=Ve,ft.transform(St),Oe=!1,Dh(fe,ft,lt,mt)?Oe=!0:(ft.x=Ce,ft.y=Ne,ft.transform(St),Dh(fe,ft,lt,mt)?Oe=!0:(lt.x=re,lt.y=Ne,lt.transform(St),Dh(fe,ft,lt,mt)?Oe=!0:(ft.x=re,ft.y=Ve,ft.transform(St),Dh(fe,ft,lt,mt)&&(Oe=!0)))),dr.free(St),Je.free(ft),Je.free(lt),Je.free(mt),re=Oe}}else re=fe.fh(re,ye)}else re=is(fe,a,b,ye);re&&(Ce=fe,y!==null&&(Ce=y(fe)),Ce&&(x===null||x(Ce))&&E.add(Ce)),dr.free(ye)}}}return z===void 0&&dr.free(ee),re||this.background!==null||this.areaBackground!==null}return z===void 0&&dr.free(ee),!1},ei.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?au:this.curve},ei.prototype.computeCorner=function(){if(this.curve===au)return 0;var a=this.corner;return(isNaN(a)||0>a)&&(a=10),a},ei.prototype.findMidLabel=function(){for(var a=this.path,y=this.O.s,x=y.length,b=0;b<x;b++){var E=y[b];if(E!==a&&!E.isPanelMain&&(E.segmentIndex===-1/0||isNaN(E.segmentIndex)))return E}for(a=this.labelNodes;a.next();)if(y=a.value,y.segmentIndex===-1/0||isNaN(y.segmentIndex))return y;return null},ei.prototype.computeSpacing=function(){if(!this.isVisible())return 0;var a=u1;a=Math.max(a,this.computeThickness());var y=this.fromPort,x=this.toPort;if(y!==null&&x!==null){var b=this.findMidLabel();if(b!==null){var E=b.naturalBounds,z=b.margin,ee=isNaN(E.width)?30:E.width*b.scale+z.left+z.right;E=isNaN(E.height)?14:E.height*b.scale+z.top+z.bottom,b=b.segmentOrientation,b===gp||b===n0||b===ey?a=Math.max(a,E):b===mp||b===yp||b===pp||b===vp?a=Math.max(a,ee):(y=y.ga(mr).ab(x.ga(mr))/180*Math.PI,a=Math.max(a,Math.abs(Math.sin(y)*ee)+Math.abs(Math.cos(y)*E)+1)),this.curve===au&&(a*=1.333)}}return a},ei.prototype.arrangeBundledLinks=function(a,y){if(y)for(y=0;y<a.length;y++){var x=a[y];x.computeAdjusting()===ll&&x.bb()}},ei.prototype.computeCurviness=function(){var a=this.curviness;if(isNaN(a)){a=l1;var y=this.Sf;if(y!==null){for(var x=Mi(),b=0,E=y.links,z=0;z<E.length;z++){var ee=E[z].computeSpacing();x.push(ee),b+=ee}for(b=-b/2,z=0;z<E.length;z++){if(E[z]===this){a=b+x[z]/2;break}b+=x[z]}y.Ds===this.fromNode&&(a=-a),ui(x)}}return a},ei.prototype.computeThickness=function(){if(!this.isVisible())return 0;var a=this.path;return a!==null?Math.max(a.strokeWidth,1):1},ei.prototype.hasCurviness=function(){return!isNaN(this.curviness)||this.Sf!==null},ei.prototype.adjustPoints=function(a,y,x,b){var E=this.computeAdjusting();if(this.isOrthogonal){if(E===e0)return!1;E===t0&&(E=fp)}switch(E){case e0:var z=this.i(a),ee=this.i(x);if(!z.Xa(y)||!ee.Xa(b)){E=z.x,z=z.y;var re=ee.x-E,oe=ee.y-z,de=Math.sqrt(re*re+oe*oe);if(!Bt.$(de,0)){if(Bt.$(re,0))var fe=0>oe?-Math.PI/2:Math.PI/2;else fe=Math.atan(oe/Math.abs(re)),0>re&&(fe=Math.PI-fe);ee=y.x;var ye=y.y;re=b.x-ee;var Ce=b.y-ye;for(oe=Math.sqrt(re*re+Ce*Ce),Bt.$(re,0)?Ce=0>Ce?-Math.PI/2:Math.PI/2:(Ce=Math.atan(Ce/Math.abs(re)),0>re&&(Ce=Math.PI-Ce)),de=oe/de,fe=Ce-fe,this.dd(a,y),a+=1;a<x;a++)y=this.i(a),re=y.x-E,oe=y.y-z,y=Math.sqrt(re*re+oe*oe),Bt.$(y,0)||(Bt.$(re,0)?oe=0>oe?-Math.PI/2:Math.PI/2:(oe=Math.atan(oe/Math.abs(re)),0>re&&(oe=Math.PI-oe)),re=oe+fe,y*=de,this.L(a,ee+y*Math.cos(re),ye+y*Math.sin(re)));this.dd(x,b)}}return!0;case t0:if(z=this.i(a),ye=this.i(x),!z.Xa(y)||!ye.Xa(b)){E=z.x,z=z.y,ee=ye.x,ye=ye.y,de=(ee-E)*(ee-E)+(ye-z)*(ye-z),re=y.x,fe=y.y,oe=b.x,Ce=b.y;var Ne=1;if(oe-re!==0){var Oe=(Ce-fe)/(oe-re);Ne=Math.sqrt(1+1/(Oe*Oe))}else Oe=9e9;for(this.dd(a,y),a+=1;a<x;a++){y=this.i(a);var Ve=y.x,ft=y.y,lt=.5;de!==0&&(lt=((E-Ve)*(E-ee)+(z-ft)*(z-ye))/de);var mt=E+lt*(ee-E),St=z+lt*(ye-z);y=Math.sqrt((Ve-mt)*(Ve-mt)+(ft-St)*(ft-St)),ft<Oe*(Ve-mt)+St&&(y=-y),0<Oe&&(y=-y),Ve=re+lt*(oe-re),lt=fe+lt*(Ce-fe),Oe!==0?(y=Ve+y/Ne,this.L(a,y,lt-(y-Ve)/Oe)):this.L(a,Ve,lt+y)}this.dd(x,b)}return!0;case fp:e:{if(this.isOrthogonal&&(E=this.i(a),z=this.i(a+1),ee=this.i(a+2),re=z.x,fe=z.y,ye=re,de=fe,Bt.B(E.y,z.y)?Bt.B(z.x,ee.x)?fe=y.y:Bt.B(z.y,ee.y)&&(re=y.x):Bt.B(E.x,z.x)&&(Bt.B(z.y,ee.y)?re=y.x:Bt.B(z.x,ee.x)&&(fe=y.y)),this.L(a+1,re,fe),E=this.i(x),z=this.i(x-1),ee=this.i(x-2),re=z.x,fe=z.y,oe=re,Ce=fe,Bt.B(E.y,z.y)?Bt.B(z.x,ee.x)?fe=b.y:Bt.B(z.y,ee.y)&&(re=b.x):Bt.B(E.x,z.x)&&(Bt.B(z.y,ee.y)?re=b.x:Bt.B(z.x,ee.x)&&(fe=b.y)),this.L(x-1,re,fe),Qv(this))){this.L(a+1,ye,de),this.L(x-1,oe,Ce),x=!1;break e}this.dd(a,y),this.dd(x,b),x=!0}return x;default:return!1}},ei.prototype.addOrthoPoints=function(a,y,x,b,E,z){0>y?y+=360:360<=y&&(y-=360),0>b?b+=360:360<=b&&(b-=360);var ee=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 re=E.actualBounds.copy(),oe=z.actualBounds.copy();if(re.w()&&oe.w()){re.Bc(Sp,Sp),oe.Bc(Sp,Sp),re.Ye(a),oe.Ye(x);var de=Je.alloc(),fe=Je.alloc();y===0?x.x>a.x||b===270&&x.y<a.y&&oe.right>a.x||b===90&&x.y>a.y&&oe.right>a.x?(de.h(x.x,a.y),fe.h(x.x,(a.y+x.y)/2),b===180?(de.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1),fe.x=de.x,fe.y=x.y):b===270&&x.y<a.y||b===90&&x.y>a.y?(de.x=a.x<oe.left?this.computeMidOrthoPosition(a.x,a.y,oe.left,x.y,!1):a.x<oe.right&&(b===270&&a.y<oe.top||b===90&&a.y>oe.bottom)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):oe.right,fe.x=de.x,fe.y=x.y):b===0&&a.x<oe.left&&a.y>oe.top&&a.y<oe.bottom&&(de.x=a.x,de.y=a.y<x.y?Math.min(x.y,oe.top):Math.max(x.y,oe.bottom),fe.y=de.y)):(de.h(a.x,x.y),fe.h((a.x+x.x)/2,x.y),(b===180||b===90&&x.y<re.top||b===270&&x.y>re.bottom)&&(b===180&&(oe.ca(a)||re.ca(x))?de.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):x.y<a.y&&(b===180||b===90)?de.y=this.computeMidOrthoPosition(a.x,re.top,x.x,Math.max(x.y,oe.bottom),!0):x.y>a.y&&(b===180||b===270)&&(de.y=this.computeMidOrthoPosition(a.x,re.bottom,x.x,Math.min(x.y,oe.top),!0)),fe.x=x.x,fe.y=de.y),de.y>re.top&&de.y<re.bottom&&(x.x>=re.left&&x.x<=a.x||a.x<=oe.right&&a.x>=x.x?(b===90||b===270)&&(de.h(Math.max((a.x+x.x)/2,a.x),a.y),fe.h(de.x,x.y)):(de.y=b===270||(b===0||b===180)&&x.y<a.y?Math.min(x.y,b===0?re.top:Math.min(re.top,oe.top)):Math.max(x.y,b===0?re.bottom:Math.max(re.bottom,oe.bottom)),fe.x=x.x,fe.y=de.y))):y===180?x.x<a.x||b===270&&x.y<a.y&&oe.left<a.x||b===90&&x.y>a.y&&oe.left<a.x?(de.h(x.x,a.y),fe.h(x.x,(a.y+x.y)/2),b===0?(de.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1),fe.x=de.x,fe.y=x.y):b===270&&x.y<a.y||b===90&&x.y>a.y?(de.x=a.x>oe.right?this.computeMidOrthoPosition(a.x,a.y,oe.right,x.y,!1):a.x>oe.left&&(b===270&&a.y<oe.top||b===90&&a.y>oe.bottom)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):oe.left,fe.x=de.x,fe.y=x.y):b===180&&a.x>oe.right&&a.y>oe.top&&a.y<oe.bottom&&(de.x=a.x,de.y=a.y<x.y?Math.min(x.y,oe.top):Math.max(x.y,oe.bottom),fe.y=de.y)):(de.h(a.x,x.y),fe.h((a.x+x.x)/2,x.y),(b===0||b===90&&x.y<re.top||b===270&&x.y>re.bottom)&&(b===0&&(oe.ca(a)||re.ca(x))?de.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):x.y<a.y&&(b===0||b===90)?de.y=this.computeMidOrthoPosition(a.x,re.top,x.x,Math.max(x.y,oe.bottom),!0):x.y>a.y&&(b===0||b===270)&&(de.y=this.computeMidOrthoPosition(a.x,re.bottom,x.x,Math.min(x.y,oe.top),!0)),fe.x=x.x,fe.y=de.y),de.y>re.top&&de.y<re.bottom&&(x.x<=re.right&&x.x>=a.x||a.x>=oe.left&&a.x<=x.x?(b===90||b===270)&&(de.h(Math.min((a.x+x.x)/2,a.x),a.y),fe.h(de.x,x.y)):(de.y=b===270||(b===0||b===180)&&x.y<a.y?Math.min(x.y,b===180?re.top:Math.min(re.top,oe.top)):Math.max(x.y,b===180?re.bottom:Math.max(re.bottom,oe.bottom)),fe.x=x.x,fe.y=de.y))):y===90?x.y>a.y||b===180&&x.x<a.x&&oe.bottom>a.y||b===0&&x.x>a.x&&oe.bottom>a.y?(de.h(a.x,x.y),fe.h((a.x+x.x)/2,x.y),b===270?(de.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0),fe.x=x.x,fe.y=de.y):b===180&&x.x<a.x||b===0&&x.x>a.x?(de.y=a.y<oe.top?this.computeMidOrthoPosition(a.x,a.y,x.x,oe.top,!0):a.y<oe.bottom&&(b===180&&a.x<oe.left||b===0&&a.x>oe.right)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):oe.bottom,fe.x=x.x,fe.y=de.y):b===90&&a.y<oe.top&&a.x>oe.left&&a.x<oe.right&&(de.x=a.x<x.x?Math.min(x.x,oe.left):Math.max(x.x,oe.right),de.y=a.y,fe.x=de.x)):(de.h(x.x,a.y),fe.h(x.x,(a.y+x.y)/2),(b===270||b===0&&x.x<re.left||b===180&&x.x>re.right)&&(b===270&&(oe.ca(a)||re.ca(x))?de.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):x.x<a.x&&(b===270||b===0)?de.x=this.computeMidOrthoPosition(re.left,a.y,Math.max(x.x,oe.right),x.y,!1):x.x>a.x&&(b===270||b===180)&&(de.x=this.computeMidOrthoPosition(re.right,a.y,Math.min(x.x,oe.left),x.y,!1)),fe.x=de.x,fe.y=x.y),de.x>re.left&&de.x<re.right&&(x.y>=re.top&&x.y<=a.y||a.y<=oe.bottom&&a.y>=x.y?(b===0||b===180)&&(de.h(a.x,Math.max((a.y+x.y)/2,a.y)),fe.h(x.x,de.y)):(de.x=b===180||(b===90||b===270)&&x.x<a.x?Math.min(x.x,b===90?re.left:Math.min(re.left,oe.left)):Math.max(x.x,b===90?re.right:Math.max(re.right,oe.right)),fe.x=de.x,fe.y=x.y))):x.y<a.y||b===180&&x.x<a.x&&oe.top<a.y||b===0&&x.x>a.x&&oe.top<a.y?(de.h(a.x,x.y),fe.h((a.x+x.x)/2,x.y),b===90?(de.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0),fe.x=x.x,fe.y=de.y):b===180&&x.x<a.x||b===0&&x.x>=a.x?(de.y=a.y>oe.bottom?this.computeMidOrthoPosition(a.x,a.y,x.x,oe.bottom,!0):a.y>oe.top&&(b===180&&a.x<oe.left||b===0&&a.x>oe.right)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):oe.top,fe.x=x.x,fe.y=de.y):b===270&&a.y>oe.bottom&&a.x>oe.left&&a.x<oe.right&&(de.x=a.x<x.x?Math.min(x.x,oe.left):Math.max(x.x,oe.right),de.y=a.y,fe.x=de.x)):(de.h(x.x,a.y),fe.h(x.x,(a.y+x.y)/2),(b===90||b===0&&x.x<re.left||b===180&&x.x>re.right)&&(b===90&&(oe.ca(a)||re.ca(x))?de.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):x.x<a.x&&(b===90||b===0)?de.x=this.computeMidOrthoPosition(re.left,a.y,Math.max(x.x,oe.right),x.y,!1):x.x>a.x&&(b===90||b===180)&&(de.x=this.computeMidOrthoPosition(re.right,a.y,Math.min(x.x,oe.left),x.y,!1)),fe.x=de.x,fe.y=x.y),de.x>re.left&&de.x<re.right&&(x.y<=re.bottom&&x.y>=a.y||a.y>=oe.top&&a.y<=x.y?(b===0||b===180)&&(de.h(a.x,Math.min((a.y+x.y)/2,a.y)),fe.h(x.x,de.y)):(de.x=b===180||(b===90||b===270)&&x.x<a.x?Math.min(x.x,b===270?re.left:Math.min(re.left,oe.left)):Math.max(x.x,b===270?re.right:Math.max(re.right,oe.right)),fe.x=de.x,fe.y=x.y)));var ye=x;if(this.isAvoiding){var Ce=this.diagram;if(Ce===null||E===z||this.layer.isTemporary||!Ff(Ce)||re.ca(ye)&&!z.Td(E)||oe.ca(a)&&!E.Td(z))y=!1;else{var Ne=Bf(Ce,!0,this.containingGroup,null);if(this.segmentIndex!==17&&Ne.Yj(Math.min(a.x,de.x),Math.min(a.y,de.y),Math.abs(a.x-de.x),Math.abs(a.y-de.y))&&Ne.Yj(Math.min(de.x,fe.x),Math.min(de.y,fe.y),Math.abs(de.x-fe.x),Math.abs(de.y-fe.y))&&Ne.Yj(Math.min(fe.x,ye.x),Math.min(fe.y,ye.y),Math.abs(fe.x-ye.x),Math.abs(fe.y-ye.y)))y=!1;else{E=a,z=ye;var Oe=x=null;if(Ce.isVirtualized){Ce=Ne.bounds.copy(),Ce.Bc(-Ne.Ho,-Ne.Go);var Ve=Je.alloc();rg(Ne,a.x,a.y)||(Bt.Ff(Ce.x,Ce.y,Ce.x+Ce.width,Ce.y+Ce.height,a.x,a.y,de.x,de.y,Ve)?(x=a=Ve.copy(),y=Ve.ab(de)):Bt.Ff(Ce.x,Ce.y,Ce.x+Ce.width,Ce.y+Ce.height,de.x,de.y,fe.x,fe.y,Ve)?(x=a=Ve.copy(),y=Ve.ab(fe)):Bt.Ff(Ce.x,Ce.y,Ce.x+Ce.width,Ce.y+Ce.height,fe.x,fe.y,ye.x,ye.y,Ve)&&(x=a=Ve.copy(),y=Ve.ab(ye))),rg(Ne,ye.x,ye.y)||(Bt.Ff(Ce.x,Ce.y,Ce.x+Ce.width,Ce.y+Ce.height,ye.x,ye.y,fe.x,fe.y,Ve)?(Oe=ye=Ve.copy(),b=fe.ab(Ve)):Bt.Ff(Ce.x,Ce.y,Ce.x+Ce.width,Ce.y+Ce.height,fe.x,fe.y,de.x,de.y,Ve)?(Oe=ye=Ve.copy(),b=de.ab(Ve)):Bt.Ff(Ce.x,Ce.y,Ce.x+Ce.width,Ce.y+Ce.height,de.x,de.y,a.x,a.y,Ve)&&(Oe=ye=Ve.copy(),b=a.ab(Ve))),Je.free(Ve)}re=re.copy().ed(oe),re.Bc(Ne.Ho*Ne.Os,Ne.Go*Ne.Os),d1(Ne,a,y,ye,b,re,!0),oe=Hc(Ne,ye.x,ye.y),!Ne.abort&&oe>=og&&(c1(Ne),re.Bc(Ne.Ho*Ne.Hx,Ne.Go*Ne.Ix),d1(Ne,a,y,ye,b,re,!1),oe=Hc(Ne,ye.x,ye.y)),!Ne.abort&&oe<og&&Hc(Ne,ye.x,ye.y)!==Pd?(Jv(this,Ne,ye.x,ye.y,b,!0,ee),re=this.i(2),4>this.pointsCount?(y===0||y===180?(re.x=a.x,re.y=ye.y):(re.x=ye.x,re.y=a.y),this.L(2,re.x,re.y),this.m(3,re.x,re.y)):(ee=this.i(3),y===0||y===180?Bt.B(re.x,ee.x)?(re=y===0?Math.max(re.x,a.x):Math.min(re.x,a.x),this.L(2,re,a.y),this.L(3,re,ee.y)):Bt.B(re.y,ee.y)?(Math.abs(a.y-re.y)<=Ne.Go/2&&(this.L(2,re.x,a.y),this.L(3,ee.x,a.y)),this.m(2,re.x,a.y)):this.L(2,a.x,re.y):(y===90||y===270)&&(Bt.B(re.y,ee.y)?(re=y===90?Math.max(re.y,a.y):Math.min(re.y,a.y),this.L(2,a.x,re),this.L(3,ee.x,re)):Bt.B(re.x,ee.x)?(Math.abs(a.x-re.x)<=Ne.Ho/2&&(this.L(2,a.x,re.y),this.L(3,a.x,ee.y)),this.m(2,a.x,re.y)):this.L(2,re.x,a.y))),x!==null&&(a=this.i(1),ee=this.i(2),a.x!==ee.x&&a.y!==ee.y?y===0||y===180?this.m(2,a.x,ee.y):this.m(2,ee.x,a.y):y===0||y===180?this.m(2,E.x,x.y):this.m(2,x.x,E.y)),Oe!==null&&(b===0||b===180?this.yf(z.x,Oe.y):this.yf(Oe.x,z.y)),y=!0):y=!1}}}else y=!1;y||(this.ne(de.copy()),this.ne(fe.copy())),Je.free(de),Je.free(fe)}},ei.prototype.computeMidOrthoPosition=function(a,y,x,b,E){var z=0;return!this.hasCurviness()||this.computeSpot(!0,this.fromPort).$c()||this.computeSpot(!1,this.toPort).$c()||(z=this.computeCurviness()),E?(y+b)/2+z:(a+x)/2+z};function Qv(a){if(a.diagram===null||!a.isAvoiding||!Ff(a.diagram))return!1;var y=a.points.s,x=y.length;if(4>x)return!1;a=Bf(a.diagram,!0,a.containingGroup,null);for(var b=1;b<x-2;b++){var E=y[b],z=y[b+1];if(!a.Yj(Math.min(E.x,z.x),Math.min(E.y,z.y),Math.abs(E.x-z.x),Math.abs(E.y-z.y)))return!0}return!1}function Jv(a,y,x,b,E,z,ee){var re=y.Ho,oe=y.Go,de=Hc(y,x,b),fe=x,ye=b;for(E===0?fe+=re:E===90?ye+=oe:E===180?fe-=re:ye-=oe,E!==ee&&de>_h&&Hc(y,fe,ye)!==de-1&&(Hc(y,x-re,b)===de-1?(E=180,fe=x-re,ye=b):Hc(y,x+re,b)===de-1?(E=0,fe=x+re,ye=b):Hc(y,x,b-oe)===de-1?(E=270,fe=x,ye=b-oe):Hc(y,x,b+oe)===de-1&&(E=90,fe=x,ye=b+oe));de>_h&&Hc(y,fe,ye)===de-1;)x=fe,b=ye,E===0?fe+=re:E===90?ye+=oe:E===180?fe-=re:ye-=oe,--de;z?de>_h&&(E===180||E===0?x=Math.floor(x/re)*re+re/2:(E===90||E===270)&&(b=Math.floor(b/oe)*oe+oe/2)):(x=Math.floor(x/re)*re+re/2,b=Math.floor(b/oe)*oe+oe/2),de>_h&&(z=E,ee=x,fe=b,E===0?(z=90,fe+=oe):E===90?(z=180,ee-=re):E===180?(z=270,fe-=oe):E===270&&(z=0,ee+=re),Hc(y,ee,fe)===de-1?Jv(a,y,ee,fe,z,!1,z):(ee=x,fe=b,E===0?(z=270,fe-=oe):E===90?(z=0,ee+=re):E===180?(z=90,fe+=oe):E===270&&(z=180,ee-=re),Hc(y,ee,fe)===de-1&&Jv(a,y,ee,fe,z,!1,z))),a.yf(x,b)}ei.prototype.ez=function(a){var y=a.x;a=a.y;for(var x=this.i(0),b=this.i(1),E=bi(y,a,x.x,x.y,b.x,b.y),z=0,ee=1;ee<this.pointsCount-1;ee++){x=this.i(ee+1);var re=bi(y,a,b.x,b.y,x.x,x.y);b=x,re<E&&(z=ee,E=re)}return z},ei.prototype.qc=function(){this.lk=!1,this.v()},ei.prototype.Ul=function(a){if(!(!a&&(this.fd===!1||(a=this.Pb(),this.lk&&(a===null||a.geometry!==null))))&&(2>this.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<x;b++){var E=y[b];E!==a&&E.isPanelMain&&E instanceof Nr&&(E.ua=this.ua)}}},ei.prototype.makeGeometry=function(){var a=this.ua,y=this.pointsCount,x=!1,b=this.diagram;b!==null&&Bh(this)&&b.Eh.contains(this)&&(this.ml.width!==0||this.ml.height!==0)&&(b.animationManager.isAnimating||b.currentTool!==b.toolManager)&&(x=!0);var E=this.i(0).copy(),z=E.copy();b=this.Nb.s;var ee=this.computeCurve();if(ee===au&&3<=y&&!Bt.$(this.smoothness,0))if(y===3){var re=this.i(1);b=Math.min(E.x,re.x);var oe=Math.min(E.y,re.y);re=this.i(2),b=Math.min(b,re.x),oe=Math.min(oe,re.y)}else{if(this.isOrthogonal)for(oe=0;oe<y;oe++)re=b[oe],z.x=Math.min(re.x,z.x),z.y=Math.min(re.y,z.y);else for(b=3;b<y;b+=3)b+3>=y&&(b=y-1),oe=this.i(b),z.x=Math.min(oe.x,z.x),z.y=Math.min(oe.y,z.y);b=z.x,oe=z.y}else{for(oe=0;oe<y;oe++)re=b[oe],z.x=Math.min(re.x,z.x),z.y=Math.min(re.y,z.y);b=z.x,oe=z.y}if(b-=this.su.x,oe-=this.su.y,E.x-=b,E.y-=oe,y!==2||Bh(this)){if(a.type=Jn.o,re=FS(a),this.computeShortLength(!0)!==0&&(E=lf(this,E,!0,z)),eg(re,E.x,E.y,!1),ee===au&&3<=y&&!Bt.$(this.smoothness,0))if(y===3)x=this.i(1),y=x.x-b,x=x.y-oe,E=this.i(2).copy(),E.x-=b,E.y-=oe,this.computeShortLength(!1)!==0&&(E=lf(this,E,!1,z)),Ed(re,y,x,y,x,E.x,E.y);else if(this.isOrthogonal){y=Je.allocAt(b,oe),x=Je.alloc(),x.assign(this.i(1)),z=Je.allocAt(b,oe),E=Je.allocAt(b,oe),ee=this.i(0);for(var de,fe=this.smoothness/3,ye=1;ye<this.pointsCount-1;ye++){de=this.i(ye);var Ce=ee,Ne=de,Oe=this.i(qv(this,de,ye,!1));if((!Bt.$(Ce.x,Ne.x)||!Bt.$(Ne.x,Oe.x))&&(!Bt.$(Ce.y,Ne.y)||!Bt.$(Ne.y,Oe.y))){var Ve=fe;isNaN(Ve)&&(Ve=this.smoothness/3);var ft=Ce.x;Ce=Ce.y;var lt=Ne.x;Ne=Ne.y;var mt=Oe.x;Oe=Oe.y;var St=Ve*qm(ft,Ce,lt,Ne);Ve*=qm(lt,Ne,mt,Oe),Bt.$(Ce,Ne)&&Bt.$(lt,mt)&&(lt>ft?Oe>Ne?(z.x=lt-St,z.y=Ne-St,E.x=lt+Ve,E.y=Ne+Ve):(z.x=lt-St,z.y=Ne+St,E.x=lt+Ve,E.y=Ne-Ve):Oe>Ne?(z.x=lt+St,z.y=Ne-St,E.x=lt-Ve,E.y=Ne+Ve):(z.x=lt+St,z.y=Ne+St,E.x=lt-Ve,E.y=Ne-Ve)),Bt.$(ft,lt)&&Bt.$(Ne,Oe)&&(Ne>Ce?(mt>lt?(z.x=lt-St,z.y=Ne-St,E.x=lt+Ve):(z.x=lt+St,z.y=Ne-St,E.x=lt-Ve),E.y=Ne+Ve):(mt>lt?(z.x=lt-St,z.y=Ne+St,E.x=lt+Ve):(z.x=lt+St,z.y=Ne+St,E.x=lt-Ve),E.y=Ne-Ve)),(Bt.$(ft,lt)&&Bt.$(lt,mt)||Bt.$(Ce,Ne)&&Bt.$(Ne,Oe))&&(ft=.5*(ft+mt),Ce=.5*(Ce+Oe),z.x=ft,z.y=Ce,E.x=ft,E.y=Ce),(ye===1||ye===2&&Bt.$(ee.x,this.i(0).x)&&Bt.$(ee.y,this.i(0).y))&&(x.x=.5*(ee.x+de.x),x.y=.5*(ee.y+de.y)),Ed(re,x.x-b,x.y-oe,z.x-b,z.y-oe,de.x-b,de.y-oe),y.set(z),x.set(E),ee=de}}de=ee.x,ee=ee.y,fe=this.i(this.pointsCount-1),this.computeShortLength(!1)!==0&&(fe=lf(this,fe.copy(),!1,ci)),de=.5*(de+fe.x),ee=.5*(ee+fe.y),Ed(re,E.x-b,E.y-oe,de-b,ee-oe,fe.x-b,fe.y-oe),Je.free(y),Je.free(x),Je.free(z),Je.free(E)}else for(x=3;x<y;x+=3)z=this.i(x-2),x+3>=y&&(x=y-1),E=this.i(x-1),ee=this.i(x),x===y-1&&this.computeShortLength(!1)!==0&&(ee=lf(this,ee.copy(),!1,ci)),Ed(re,z.x-b,z.y-oe,E.x-b,E.y-oe,ee.x-b,ee.y-oe);else{for(z=Je.alloc(),z.assign(this.i(0)),E=Je.alloc(),E.assign(z),ee=this.computeCorner(),ye=1,de=0;ye<y;){if(ye=qv(this,z,ye,1<ye),fe=this.i(ye),ye>=y-1){if(!z.D(fe))this.computeShortLength(!1)!==0&&(fe=lf(this,fe.copy(),!1,ci)),uf(this,re,-b,-oe,z,fe,x);else if(de===0)for(ye=1;ye<y;)E.assign(z),fe=this.i(ye++),uf(this,re,-b,-oe,z,fe,x),z.assign(fe);break}if(de=qv(this,fe,ye+1,ye<y-3),ye=-b,ft=-oe,Ce=fe,lt=this.i(de),Ve=x,Bt.B(z.y,Ce.y)&&Bt.B(Ce.x,lt.x))if(Oe=Math.min(ee,Math.abs(Ce.x-E.x)/2),Oe=St=Math.min(Oe,Math.abs(lt.y-Ce.y)/2),Bt.B(Oe,0))uf(this,re,ye,ft,z,Ce,Ve),z.assign(Ce);else{var Ct=Ce.x,Rt=Ce.y;Ne=Ct,mt=Rt,Ce.x>z.x?Ct=Ce.x-Oe:Ct=Ce.x+Oe,lt.y>Ce.y?mt=Ce.y+St:mt=Ce.y-St,lt=Je.allocAt(Ct,Rt),uf(this,re,ye,ft,z,lt,Ve),Je.free(lt),jm(re,Ce.x+ye,Ce.y+ft,Ne+ye,mt+ft),z.h(Ne,mt)}else Bt.B(z.x,Ce.x)&&Bt.B(Ce.y,lt.y)?(Oe=Math.min(ee,Math.abs(Ce.y-E.y)/2),Oe=St=Math.min(Oe,Math.abs(lt.x-Ce.x)/2),Bt.B(St,0)?(uf(this,re,ye,ft,z,Ce,Ve),z.assign(Ce)):(Ct=Ce.x,Rt=Ce.y,Ne=Ct,mt=Rt,Ce.y>z.y?Rt=Ce.y-Oe:Rt=Ce.y+Oe,lt.x>Ce.x?Ne=Ce.x+St:Ne=Ce.x-St,lt=Je.allocAt(Ct,Rt),uf(this,re,ye,ft,z,lt,Ve),Je.free(lt),jm(re,Ce.x+ye,Ce.y+ft,Ne+ye,mt+ft),z.h(Ne,mt))):(uf(this,re,ye,ft,z,Ce,Ve),z.assign(Ce));E.assign(fe),ye=de}Je.free(z)}Gm=re}else re=this.i(1).copy(),re.x-=b,re.y-=oe,this.computeShortLength(!0)!==0&&(E=lf(this,E,!0,z)),this.computeShortLength(!1)!==0&&(re=lf(this,re,!1,z)),a.type=Jn.j,a.startX=E.x,a.startY=E.y,a.endX=re.x,a.endY=re.y;return this.lk=!0,a};function qm(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),Bt.$(a,0)?y:Bt.$(y,0)?a:Math.sqrt(a*a+y*y)))}function lf(a,y,x,b){var E=a.pointsCount;if(2>E)return y;if(x){var z=a.i(1);if(x=z.x-b.x,z=z.y-b.y,b=qm(y.x,y.y,x,z),b===0)return y;E=E===2?.5*b:b,a=a.computeShortLength(!0),a>E&&(a=E),E=a*(z-y.y)/b,y.x+=a*(x-y.x)/b,y.y+=E}else{if(z=a.i(E-2),x=z.x-b.x,z=z.y-b.y,b=qm(y.x,y.y,x,z),b===0)return y;E=E===2?.5*b:b,a=a.computeShortLength(!1),a>E&&(a=E),E=a*(y.y-z)/b,y.x-=a*(y.x-x)/b,y.y-=E}return y}function qv(a,y,x,b){for(var E=a.pointsCount,z=y;Bt.$(y.x,z.x)&&Bt.$(y.y,z.y);){if(x>=E)return E-1;z=a.i(x++)}if(!Bt.$(y.x,z.x)&&!Bt.$(y.y,z.y))return x-1;for(var ee=z;Bt.$(y.x,z.x)&&Bt.$(z.x,ee.x)&&(!b||(y.y>=z.y?z.y>=ee.y:z.y<=ee.y))||Bt.$(y.y,z.y)&&Bt.$(z.y,ee.y)&&(!b||(y.x>=z.x?z.x>=ee.x:z.x<=ee.x));){if(x>=E)return E-1;ee=a.i(x++)}return x-2}ei.prototype.computeJumpLength=function(){return 10};function uf(a,y,x,b,E,z,ee){if(!ee&&Bh(a)){ee=a.computeJumpLength();var re=ee/2,oe=[],de=0;if(a.isVisible()&&(de=Dx(a,E,z,oe)),0<de){if(Bt.B(E.y,z.y))if(E.x<z.x)for(var fe=0;fe<de;){var ye=Math.max(E.x,Math.min(oe[fe++]-re,z.x-ee));y.lineTo(ye+x,z.y+b);for(var Ce=ye+x,Ne=Math.min(ye+ee,z.x);fe<de&&(ye=oe[fe],ye<Ne+ee);)fe++,Ne=Math.min(ye+re,z.x);ye=z.y-ee+b,Ne+=x;var Oe=z.y+b;a.curve===Ad?eg(y,Ne,Oe,!1):Ed(y,Ce,ye,Ne,ye,Ne,Oe)}else for(--de;0<=de;){for(fe=Math.min(E.x,Math.max(oe[de--]+re,z.x+ee)),y.lineTo(fe+x,z.y+b),Ce=fe+x,ye=Math.max(fe-ee,z.x);0<=de&&(fe=oe[de],fe>ye-ee);)de--,ye=Math.max(fe-re,z.x);fe=z.y-ee+b,ye+=x,Ne=z.y+b,a.curve===Ad?eg(y,ye,Ne,!1):Ed(y,Ce,fe,ye,fe,ye,Ne)}else if(Bt.B(E.x,z.x))if(E.y<z.y)for(fe=0;fe<de;){for(ye=Math.max(E.y,Math.min(oe[fe++]-re,z.y-ee)),y.lineTo(z.x+x,ye+b),Ce=ye+b,ye=Math.min(ye+ee,z.y);fe<de&&(Ne=oe[fe],Ne<ye+ee);)fe++,ye=Math.min(Ne+re,z.y);Ne=z.x-ee+x,Oe=z.x+x,ye+=b,a.curve===Ad?eg(y,Oe,ye,!1):Ed(y,Ne,Ce,Ne,ye,Oe,ye)}else for(--de;0<=de;){for(fe=Math.min(E.y,Math.max(oe[de--]+re,z.y+ee)),y.lineTo(z.x+x,fe+b),Ce=fe+b,fe=Math.max(fe-ee,z.y);0<=de&&(ye=oe[de],ye>fe-ee);)de--,fe=Math.max(ye-re,z.y);ye=z.x-ee+x,Ne=z.x+x,fe+=b,a.curve===Ad?eg(y,Ne,fe,!1):Ed(y,ye,Ce,ye,fe,Ne,fe)}}}y.lineTo(z.x+x,z.y+b)}function Dx(a,y,x,b){var E=a.diagram;if(E===null||y.D(x))return 0;for(E=E.layers;E.next();){var z=E.value;if(z!==null&&z.visible){z=z.Pa.s;for(var ee=z.length,re=0;re<ee;re++){var oe=z[re];if(oe instanceof ei){if(oe===a)return 0<b.length&&b.sort(function(fe,ye){return fe-ye}),b.length;if(oe.isVisible()&&Bh(oe)){var de=oe.routeBounds;de.w()&&a.routeBounds.Yc(de)&&!a.usesSamePort(oe)&&(de=oe.path,de!==null&&de.Ed()&&Fx(y,x,b,oe))}}}}}return 0<b.length&&b.sort(function(fe,ye){return fe-ye}),b.length}function Fx(a,y,x,b){for(var E=Bt.B(a.y,y.y),z=b.pointsCount,ee=b.i(0),re=Je.alloc(),oe=1;oe<z;oe++){var de=b.i(oe);if(oe<z-1){var fe=b.i(oe+1);if(ee.y===de.y&&de.y===fe.y){if(de.x>ee.x&&fe.x>=de.x||de.x<ee.x&&fe.x<=de.x)continue}else if(ee.x===de.x&&de.x===fe.x&&(de.y>ee.y&&fe.y>=de.y||de.y<ee.y&&fe.y<=de.y))continue}e:{fe=a.x;var ye=a.y,Ce=y.x,Ne=y.y,Oe=ee.x;ee=ee.y;var Ve=de.x,ft=de.y;if(Bt.B(fe,Ce)){if(!Bt.B(ye,Ne)&&Bt.B(ee,ft)&&Math.min(ye,Ne)<ee&&Math.max(ye,Ne)>ee&&Math.min(Oe,Ve)<fe&&Math.max(Oe,Ve)>fe&&!Bt.B(Oe,Ve)){re.x=fe,re.y=ee,fe=!0;break e}}else if(Bt.B(ye,Ne)&&Bt.B(Oe,Ve)&&Math.min(fe,Ce)<Oe&&Math.max(fe,Ce)>Oe&&Math.min(ee,ft)<ye&&Math.max(ee,ft)>ye&&!Bt.B(ee,ft)){re.x=Oe,re.y=ye,fe=!0;break e}re.x=0,re.y=0,fe=!1}fe&&(E?x.push(re.x):x.push(re.y)),ee=de}Je.free(re)}function Bh(a){return a=a.curve,a===ig||a===Ad}function $m(a,y){(y||Bh(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()))}ei.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 E=x.value;if(E.visible){if(E===y){b=!0;var z=!1;E=E.Pa.s;for(var ee=E.length,re=0;re<ee;re++){var oe=E[re];oe instanceof ei&&(oe===this?z=!0:z&&a1(this,oe,a))}}else if(b)for(z=E.Pa.s,E=z.length,ee=0;ee<E;ee++)re=z[ee],re instanceof ei&&a1(this,re,a)}}}}};function a1(a,y,x){if(y!==null&&y.lk&&y.fd&&Bh(y)){var b=y.routeBounds;b.w()&&(a.routeBounds.Yc(b)||x.Yc(b))&&(a.usesSamePort(y)||y.qc())}}ei.prototype.usesSamePort=function(a){var y=this.pointsCount,x=a.pointsCount;if(0<y&&0<x){var b=this.i(0),E=a.i(0);if(b.Xa(E)||(y=this.i(y-1),a=a.i(x-1),y.Xa(a)||b.Xa(a)||y.Xa(E)))return!0}else if(this.fromNode===a.fromNode||this.toNode===a.toNode||this.fromNode===a.toNode||this.toNode===a.fromNode)return!0;return!1},ei.prototype.isVisible=function(){if(!Zi.prototype.isVisible.call(this))return!1;var a=this.containingGroup,y=!0,x=this.diagram;if(x!==null&&(y=x.isTreePathToChildren),x=this.fromNode,x!==null){if(this.isTreeLink&&y&&!x.isTreeExpanded)return!1;if(x===a)return!0;for(var b=x;b!==null;){if(b.labeledLink===this)return!0;b=b.containingGroup}if(x=x.findVisibleNode(),x===null||x===a)return!1}if(x=this.toNode,x!==null){if(this.isTreeLink&&!y&&!x.isTreeExpanded)return!1;if(x===a)return!0;for(y=x;y!==null;){if(y.labeledLink===this)return!0;y=y.containingGroup}if(y=x.findVisibleNode(),y===null||y===a)return!1}return!0},ei.prototype.Zb=function(a){if(Zi.prototype.Zb.call(this,a),a&&$m(this,!1),this.Sf!==null&&this.Sf.Sl(),this.wd!==null)for(var y=this.wd.iterator;y.next();)y.value.Zb(a)},ei.prototype.computeAdjusting=function(){return this.isAvoiding&&this.diagram!==null&&this.diagram.animationManager.defaultAnimation.isAnimating?fp:this.qk};function dp(a){var y=a.ef;if(y!==null){var x=a.uf;if(x!==null&&isNaN(a.curviness)){for(var b=a.ff,E=a.vf,z=a=null,ee=y.jb.s,re=ee.length,oe=0;oe<re;oe++){var de=ee[oe];(de.ef===y&&de.ff===b&&de.uf===x&&de.vf===E||de.ef===x&&de.ff===E&&de.uf===y&&de.vf===b)&&(z===null?z=de:(a===null&&(a=[],a.push(z)),a.push(de)))}if(a!==null){for(z=ZS(y,x,b,E),z===null&&(z=new r0(y,b,x,E),KS(y,z),KS(x,z)),z.links=a,y=0;y<a.length;y++)a[y].Sf=z;z.Sl()}}}}function hp(a){var y=a.Sf;y!==null&&isNaN(a.curviness)&&(a.Sf=null,a=y.links.indexOf(a),0<=a&&(Be(y.links,a),y.Sl()))}ei.prototype.ph=function(){return!0},jt.Object.defineProperties(ei.prototype,{fromNode:{get:function(){return this.ef},set:function(a){var y=this.ef;if(y!==a){var x=this.fromPort;y!==null&&(this.uf!==y&&Km(y,this,x),hp(this),this.C(2)),this.ef=a,a!==null&&this.Zb(a.isVisible()),this.Wf=null,this.bb();var b=this.diagram;b!==null&&b.aa&&b.partManager.setFromNodeForLink(this,a,y);var E=this.fromPort,z=this.fromPortChanged;if(z!==null){var ee=!0;b!==null&&(ee=b.aa,b.aa=!0),z(this,x,E),b!==null&&(b.aa=ee)}a!==null&&(this.uf!==a&&Ym(a,this,E),dp(this),this.C(1)),this.g("fromNode",y,a),tg(this)}}},fromPortId:{get:function(){return this.ff},set:function(a){var y=this.ff;if(y!==a){var x=this.fromPort;x!==null&&Wl(x),hp(this),this.ff=a;var b=this.fromPort;b!==null&&Wl(b);var E=this.diagram;if(E!==null){var z=this.data,ee=E.model;z!==null&&ee.ri()&&ee.xv(z,a)}x!==b&&(this.Wf=null,this.bb(),z=this.fromPortChanged,z!==null&&(ee=!0,E!==null&&(ee=E.aa,E.aa=!0),z(this,x,b),E!==null&&(E.aa=ee))),dp(this),this.g("fromPortId",y,a)}}},fromPort:{get:function(){var a=this.ef;return a===null?null:a.ns(this.ff)}},fromPortChanged:{get:function(){return this.gn},set:function(a){var y=this.gn;y!==a&&(this.gn=a,this.g("fromPortChanged",y,a))}},toNode:{get:function(){return this.uf},set:function(a){var y=this.uf;if(y!==a){var x=this.toPort;y!==null&&(this.ef!==y&&Km(y,this,x),hp(this),this.C(2)),this.uf=a,a!==null&&this.Zb(a.isVisible()),this.Wf=null,this.bb();var b=this.diagram;b!==null&&b.aa&&b.partManager.setToNodeForLink(this,a,y);var E=this.toPort,z=this.toPortChanged;if(z!==null){var ee=!0;b!==null&&(ee=b.aa,b.aa=!0),z(this,x,E),b!==null&&(b.aa=ee)}a!==null&&(this.ef!==a&&Ym(a,this,E),dp(this),this.C(1)),this.g("toNode",y,a),tg(this)}}},toPortId:{get:function(){return this.vf},set:function(a){var y=this.vf;if(y!==a){var x=this.toPort;x!==null&&Wl(x),hp(this),this.vf=a;var b=this.toPort;b!==null&&Wl(b);var E=this.diagram;if(E!==null){var z=this.data,ee=E.model;z!==null&&ee.ri()&&ee.Cv(z,a)}x!==b&&(this.Wf=null,this.bb(),z=this.toPortChanged,z!==null&&(ee=!0,E!==null&&(ee=E.aa,E.aa=!0),z(this,x,b),E!==null&&(E.aa=ee))),dp(this),this.g("toPortId",y,a)}}},toPort:{get:function(){var a=this.uf;return a===null?null:a.ns(this.vf)}},toPortChanged:{get:function(){return this.uo},set:function(a){var y=this.uo;y!==a&&(this.uo=a,this.g("toPortChanged",y,a))}},fromSpot:{get:function(){return this.ba!==null?this.ba.Xi:Da},set:function(a){var y=this.fromSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.Xi=a,this.g("fromSpot",y,a),(y.$c()||a.$c())&&this.fromNode!==null&&Wl(this.fromPort),this.bb())}},fromEndSegmentLength:{get:function(){return this.ba!==null?this.ba.Vi:NaN},set:function(a){var y=this.fromEndSegmentLength;y!==a&&(0>a&&ri(a,">= 0",ei,"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&&Wl(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&&ri(a,">= 0",ei,"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<this.wd.count}},labelNodes:{get:function(){return this.wd===null?Fr:this.wd.iterator}},relinkableFrom:{get:function(){return(this.Qa&1)!==0},set:function(a){var y=(this.Qa&1)!==0;y!==a&&(this.Qa^=1,this.g("relinkableFrom",y,a),this.Wb())}},relinkableTo:{get:function(){return(this.Qa&2)!==0},set:function(a){var y=(this.Qa&2)!==0;y!==a&&(this.Qa^=2,this.g("relinkableTo",y,a),this.Wb())}},resegmentable:{get:function(){return(this.Qa&4)!==0},set:function(a){var y=(this.Qa&4)!==0;y!==a&&(this.Qa^=4,this.g("resegmentable",y,a),this.Wb())}},isTreeLink:{get:function(){return(this.Qa&8)!==0},set:function(a){var y=(this.Qa&8)!==0;y!==a&&(this.Qa^=8,this.g("isTreeLink",y,a),this.fromNode!==null&&cp(this.fromNode),this.toNode!==null&&cp(this.toNode))}},path:{get:function(){var a=this.Pb();return a instanceof Nr?a:null}},routeBounds:{get:function(){this.vg();var a=this.ml,y=1/0,x=1/0,b=this.pointsCount;if(b===0)a.h(NaN,NaN,0,0);else{if(b===1)b=this.i(0),y=Math.min(b.x,y),x=Math.min(b.y,x),a.h(b.x,b.y,0,0);else if(b===2){b=this.i(0);var E=this.i(1);y=Math.min(b.x,E.x),x=Math.min(b.y,E.y),a.h(b.x,b.y,0,0),a.Ye(E)}else if(this.computeCurve()===au&&3<=b&&!this.isOrthogonal)if(E=this.i(0),y=E.x,x=E.y,a.h(y,x,0,0),b===3){b=this.i(1),y=Math.min(b.x,y),x=Math.min(b.y,x);var z=this.i(2);y=Math.min(z.x,y),x=Math.min(z.y,x),Bt.Dl(E.x,E.y,b.x,b.y,b.x,b.y,z.x,z.y,.5,a)}else for(z=3;z<b;z+=3){var ee=this.i(z-2);z+3>=b&&(z=b-1);var re=this.i(z-1),oe=this.i(z);Bt.Dl(E.x,E.y,ee.x,ee.y,re.x,re.y,oe.x,oe.y,.5,a),y=Math.min(oe.x,y),x=Math.min(oe.y,x),E=oe}else for(E=this.i(0),z=this.i(1),y=Math.min(E.x,z.x),x=Math.min(E.y,z.y),a.h(E.x,E.y,0,0),a.Ye(z),E=2;E<b;E++)z=this.i(E),y=Math.min(z.x,y),x=Math.min(z.y,x),a.Ye(z);this.su.h(y-a.x,x-a.y)}return a}},midPoint:{get:function(){return this.vg(),this.computeMidPoint(new Je)}},midAngle:{get:function(){return this.vg(),this.computeMidAngle()}},flattenedLengths:{get:function(){if(this.cq===null){this.fd||Xm(this);for(var a=this.cq=[],y=this.pointsCount,x=0;x<y-1;x++){var b=this.i(x),E=this.i(x+1);Bt.$(b.x,E.x)?(b=E.y-b.y,0>b&&(b=-b)):Bt.$(b.y,E.y)?(b=E.x-b.x,0>b&&(b=-b)):b=Math.sqrt(b.Bf(E)),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;b<x;b++)a+=y[b];this.vt=a}return a}},points:{get:function(){return this.Nb},set:function(a){var y=this.Nb;if(y!==a){var x=null;if(Array.isArray(a)){var b=a.length%2===0;if(b){for(var E=0;E<a.length;E++)if(typeof a[E]!="number"||isNaN(a[E])){b=!1;break}}if(b)for(x=new Dn,b=0;b<a.length/2;b++)E=new Je(a[2*b],a[2*b+1]).freeze(),x.add(E);else{for(b=!0,E=0;E<a.length;E++){var z=a[E];if(!zt(z)||typeof z.x!="number"||isNaN(z.x)||typeof z.y!="number"||isNaN(z.y)){b=!1;break}}if(b)for(x=new Dn,b=0;b<a.length;b++)E=a[b],x.add(new Je(E.x,E.y).freeze())}}else if(a instanceof Dn)for(x=a.copy(),a=x.iterator;a.next();)a.value.freeze();else vt("Link.points value is not an instance of List or Array: "+a);x.freeze(),this.Nb=x,this.qc(),Xm(this),a=this.diagram,a!==null&&(a.pi||a.undoManager.isUndoingRedoing||a.As.add(this),a.animationManager.zb&&le(a.animationManager,this,x)),this.g("points",y,x)}}},pointsCount:{get:function(){return this.Nb.count}},fd:{get:function(){return(this.Qa&16)!==0},set:function(a){(this.Qa&16)!==0!==a&&(this.Qa^=16)}},suspendsRouting:{get:function(){return(this.Qa&32)!==0},set:function(a){(this.Qa&32)!==0!==a&&(this.Qa^=32)}},computingPoints:{get:function(){return(this.Qa&64)!==0},set:function(a){(this.Qa&64)!==0!==a&&(this.Qa^=64)}},defaultFromPoint:{get:function(){return this.o},set:function(a){this.o=a.copy()}},defaultToPoint:{get:function(){return this.u},set:function(a){this.u=a.copy()}},isOrthogonal:{get:function(){return(this.qj.value&2)===2}},isAvoiding:{get:function(){return(this.qj.value&4)===4}},lk:{get:function(){return(this.Qa&128)!==0},set:function(a){(this.Qa&128)!==0!==a&&(this.Qa^=128)}},geometry:{get:function(){if(!this.lk){if(this.vg(),2>this.pointsCount)return this.lk=!0,this.ua;this.ua=this.makeGeometry()}return this.ua}},firstPickIndex:{get:function(){return 2>=this.pointsCount?0:this.isOrthogonal||!ng(this.computeSpot(!0))?1:0}},lastPickIndex:{get:function(){var a=this.pointsCount;return a===0?0:2>=a?a-1:this.isOrthogonal||!ng(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===Ad||y===ig||a===Ad||a===ig),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)}}}),ei.prototype.invalidateOtherJumpOvers=ei.prototype.Xo,ei.prototype.findClosestSegment=ei.prototype.ez,ei.prototype.updateRoute=ei.prototype.vg,ei.prototype.invalidateRoute=ei.prototype.bb,ei.prototype.rollbackRoute=ei.prototype.rv,ei.prototype.commitRoute=ei.prototype.zf,ei.prototype.startRoute=ei.prototype.uh,ei.prototype.clearPoints=ei.prototype.Fj,ei.prototype.removePoint=ei.prototype.pv,ei.prototype.addPointAt=ei.prototype.yf,ei.prototype.addPoint=ei.prototype.ne,ei.prototype.insertPointAt=ei.prototype.m,ei.prototype.insertPoint=ei.prototype.Kz,ei.prototype.setPointAt=ei.prototype.L,ei.prototype.setPoint=ei.prototype.dd,ei.prototype.getPoint=ei.prototype.i,ei.prototype.getOtherPort=ei.prototype.Cz,ei.prototype.getOtherNode=ei.prototype.To;var cf=null,df=null,$v=new mn(ei,"Normal",1),Bx=new mn(ei,"Orthogonal",2),_x=new mn(ei,"AvoidsNodes",6),s1=new mn(ei,"AvoidsNodesStraight",7),ll=new mn(ei,"None",0),au=new mn(ei,"Bezier",9),Ad=new mn(ei,"JumpGap",10),ig=new mn(ei,"JumpOver",11),fp=new mn(ei,"End",17),e0=new mn(ei,"Scale",18),t0=new mn(ei,"Stretch",19),gp=new mn(ei,"OrientAlong",21),pp=new mn(ei,"OrientPlus90",22),mp=new mn(ei,"OrientMinus90",23),ey=new mn(ei,"OrientOpposite",24),n0=new mn(ei,"OrientUpright",25),vp=new mn(ei,"OrientPlus90Upright",26),yp=new mn(ei,"OrientMinus90Upright",27),i0=new mn(ei,"OrientUpright45",28),l1=16,u1=14,Sp=8;ei.className="Link",ei.Normal=$v,ei.Orthogonal=Bx,ei.AvoidsNodes=_x,ei.AvoidsNodesStraight=s1,ei.None=ll,ei.Bezier=au,ei.JumpGap=Ad,ei.JumpOver=ig,ei.End=fp,ei.Scale=e0,ei.Stretch=t0,ei.OrientAlong=gp,ei.OrientPlus90=pp,ei.OrientMinus90=mp,ei.OrientOpposite=ey,ei.OrientUpright=n0,ei.OrientPlus90Upright=vp,ei.OrientMinus90Upright=yp,ei.OrientUpright45=i0,ei.EndSegmentStep=8,ei.CurvinessStart=l1,ei.SpacingMin=u1,ei.OrthoShortCut=Sp;function r0(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=[]}r0.prototype.Sl=function(){if(!this.qq){var a=this.links;0<a.length&&(a=a[0].diagram,a!==null&&(a.ow.add(this),this.Fe=a.undoManager.isUndoingRedoing))}this.qq=!0},r0.prototype.Nv=function(){if(this.qq){this.qq=!1;var a=this.links;if(0<a.length){var y=a[0],x=y.diagram;x=x===null||x.pi&&!this.Fe,this.Fe=!1,y.arrangeBundledLinks(a,x),a.length===1&&(y.Sf=null,a.length=0)}a.length===0&&(a=this.Ds,this!==null&&a.af!==null&&a.af.remove(this),a=this.cv,this!==null&&a.af!==null&&a.af.remove(this))}},r0.className="LinkBundle";function xp(a){qi(this),this.Yx=this.group=null,this.vs=!0,this.abort=!1,this.Od=this.Nd=1,this.Fn=this.En=-1,this.rc=a.width,this.sc=a.height,this.ac=null,this.ei=this.di=0,this.Os=11,this.Ix=this.Hx=22}xp.prototype.initialize=function(a){if(!(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<a-1||this.ei<y-1){for(x=[],b=0;b<=a;b++)x[b]=new Uint32Array(y);this.ac=x,this.di=a-1,this.ei=y-1}if(a=ty,this.ac!==null)for(y=0;y<=this.di;y++)if(x=this.ac[y],x.fill)x.fill(a);else for(b=0;b<=this.ei;b++)x[b]=a}};function rg(a,y,x){return a.Nd<=y&&y<=a.En&&a.Od<=x&&x<=a.Fn}function Hc(a,y,x){return rg(a,y,x)?(y-=a.Nd,y/=a.rc,x-=a.Od,x/=a.sc,a.ac[y|0][x|0]):ty}function c1(a){if(a.ac!==null)for(var y=0;y<=a.di;y++)for(var x=a.ac[y],b=0;b<=a.ei;b++)x[b]>=_h&&(x[b]=ty)}xp.prototype.Yj=function(a,y,x,b){if(a>this.En||a+x<this.Nd||y>this.Fn||y+b<this.Od)return!0;a=(a-this.Nd)/this.rc|0,y=(y-this.Od)/this.sc|0,x=Math.max(0,x)/this.rc+1|0;var E=Math.max(0,b)/this.sc+1|0;if(0>a&&(x+=a,a=0),0>y&&(E+=y,y=0),0>x||0>E)return!0;for(b=Math.min(a+x-1,this.di)|0,x=Math.min(y+E-1,this.ei)|0;a<=b;a++){E=this.ac[a];for(var z=y;z<=x;z++)if(E[z]===Pd)return!1}return!0};function jc(a,y,x,b,E,z,ee,re,oe){if(!(y<z||y>ee||x<re||x>oe)){var de=y|0,fe=x|0,ye=a.ac[de][fe];if(ye>=_h&&ye<og)for(E?fe+=b:de+=b,ye+=1;z<=de&&de<=ee&&re<=fe&&fe<=oe&&!(ye>=a.ac[de][fe]);)a.ac[de][fe]=ye,ye+=1,E?fe+=b:de+=b;if(de=E?fe:de,E)if(0<b)for(x+=b;x<de;x+=b)jc(a,y,x,1,!E,z,ee,re,oe),jc(a,y,x,-1,!E,z,ee,re,oe);else for(x+=b;x>de;x+=b)jc(a,y,x,1,!E,z,ee,re,oe),jc(a,y,x,-1,!E,z,ee,re,oe);else if(0<b)for(y+=b;y<de;y+=b)jc(a,y,x,1,!E,z,ee,re,oe),jc(a,y,x,-1,!E,z,ee,re,oe);else for(y+=b;y>de;y+=b)jc(a,y,x,1,!E,z,ee,re,oe),jc(a,y,x,-1,!E,z,ee,re,oe)}}function o0(a,y,x,b,E,z,ee,re,oe){y|=0,x|=0;var de=Pd,fe=_h;for(a.ac[y][x]=fe;de===Pd&&y>z&&y<ee&&x>re&&x<oe;)fe+=1,a.ac[y][x]=fe,E?x+=b:y+=b,de=a.ac[y][x]}function a0(a,y,x,b,E,z,ee,re,oe){y|=0,x|=0;var de=Pd,fe=og;for(a.ac[y][x]=fe;de===Pd&&y>z&&y<ee&&x>re&&x<oe;)a.ac[y][x]=fe,E?x+=b:y+=b,de=a.ac[y][x]}function d1(a,y,x,b,E,z,ee){if(a.ac!==null){a.abort=!1;var re=y.x,oe=y.y;if(rg(a,re,oe)){re-=a.Nd,re/=a.rc,oe-=a.Od,oe/=a.sc;var de=b.x,fe=b.y;if(rg(a,de,fe))if(de-=a.Nd,de/=a.rc,fe-=a.Od,fe/=a.sc,1>=Math.abs(re-de)&&1>=Math.abs(oe-fe))a.abort=!0;else{var ye=z.x;b=z.y,y=z.x+z.width;var Ce=z.y+z.height;ye-=a.Nd,ye/=a.rc,b-=a.Od,b/=a.sc,y-=a.Nd,y/=a.rc,Ce-=a.Od,Ce/=a.sc,z=Math.max(0,Math.min(a.di,ye|0)),y=Math.min(a.di,Math.max(0,y|0)),ye=Math.max(0,Math.min(a.ei,b|0)),Ce=Math.min(a.ei,Math.max(0,Ce|0)),b=a.ac,re|=0,oe|=0,de|=0,fe|=0;var Ne=x===0||x===90?1:-1;if(x=x===90||x===270,b[re][oe]===Pd?(o0(a,re,oe,Ne,x,z,y,ye,Ce),o0(a,re,oe,1,!x,z,y,ye,Ce),o0(a,re,oe,-1,!x,z,y,ye,Ce)):o0(a,re,oe,Ne,x,re,oe,re,oe),b[de][fe]===Pd?(a0(a,de,fe,E===0||E===90?1:-1,E===90||E===270,z,y,ye,Ce),a0(a,de,fe,1,!(E===90||E===270),z,y,ye,Ce),a0(a,de,fe,-1,!(E===90||E===270),z,y,ye,Ce)):a0(a,de,fe,Ne,x,de,fe,de,fe),x=Mi(),ee&&h1(a,de,fe,E,re,oe,x))for((x[0]!==de||x[1]!==fe)&&(x.unshift(fe),x.unshift(de)),(x[x.length-2]!==re||x[x.length-1]!==oe)&&(x.push(re),x.push(oe)),a=_h,E=x[x.length-2],ee=x[x.length-1],b[E][ee]=a++,z=x.length-4;0<=z;z-=2)for(E=x[z+2],ee=x[z+3],y=x[z],de=x[z+1];y>E?E++:y<E?E--:de>ee?ee++:de<ee&&ee--,b[E][ee]=a++,E!==y||ee!==de;);else jc(a,re,oe,1,!1,z,y,ye,Ce),jc(a,re,oe,-1,!1,z,y,ye,Ce),jc(a,re,oe,1,!0,z,y,ye,Ce),jc(a,re,oe,-1,!0,z,y,ye,Ce);ui(x)}}}}function h1(a,y,x,b,E,z,ee){for(var re=a.ac,oe=y,de=x;;){if(oe===E&&de===z)return!0;var fe=oe,ye=de;if(b===0)if(fe<E)fe++;else break;else if(b===90)if(ye<z)ye++;else break;else if(b===180)if(fe>E)fe--;else break;else if(ye>z)ye--;else break;var Ce=re[fe][ye];if(Ce===0||Ce===ny)break;oe=fe,de=ye}for(;;){if(fe=b,ye=oe,Ce=de,b===0?Ce<z?(fe=90,Ce++):Ce>z&&(fe=270,Ce--):b===90?ye<E?(fe=0,ye++):ye>E&&(fe=180,ye--):b===180?Ce<z?(fe=90,Ce++):Ce>z&&(fe=270,Ce--):ye<E?(fe=0,ye++):ye>E&&(fe=180,ye--),ye=re[ye][Ce],fe!==b&&ye!==0&&ye!==ny){if(ee.push(oe),ee.push(de),h1(a,oe,de,fe,E,z,ee))return!0;ee.pop(),ee.pop()}if(re[oe][de]=ny,b===0){if(oe===y)return!1;oe--}else if(b===90){if(de===x)return!1;de--}else if(b===180){if(oe===y)return!1;oe++}else{if(de===x)return!1;de++}}}jt.Object.defineProperties(xp.prototype,{bounds:{get:function(){return new tn(this.Nd,this.Od,this.En-this.Nd,this.Fn-this.Od)}},Ho:{get:function(){return this.rc},set:function(a){0<a&&a!==this.rc&&(this.rc=a,this.initialize(this.bounds))}},Go:{get:function(){return this.sc},set:function(a){0<a&&a!==this.sc&&(this.sc=a,this.initialize(this.bounds))}}});var Pd=0,_h=1,og=999999,ty=og+1,ny=og+2;xp.className="PositionArray";function hf(){qi(this),this.port=this.node=null,this.pe=[],this.ap=!1}hf.prototype.toString=function(){for(var a=this.pe,y=this.node.toString()+" "+a.length.toString()+":",x=0;x<a.length;x++){var b=a[x];b!==null&&(y+=`
|
|
|
`+b.toString())}return y};function Ux(a,y,x,b){switch(y=y.offsetY,y){case 8:return 90;case 2:return 180;case 1:return 270;case 4:return 0}switch(y){case 9:return 180<x?270:90;case 6:return 90<x&&270>=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 90<x&&x<=180+a?180:x>180+a&&x<=360-a?270:0;case 13:return 180<x&&x<=360-a?270:x>a&&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}hf.prototype.Sl=function(){this.pe.length=0};function f1(a,y){var x=a.pe;if(x.length===0){e:if(!a.ap){x=a.ap,a.ap=!0;var b=null,E=a.node,z=E instanceof xr?E:null;if(z===null||z.isSubGraphExpanded)var ee=E.isTreeExpanded?E.findLinksConnected(a.port.portId):E.qx();else{if(!z.actualBounds.w()){a.ap=x;break e}b=z,ee=b.Lu()}z=a.pe.length=0;var re=a.port.ga(Qi,Je.alloc()),oe=a.port.ga(ho,Je.alloc());for(E=tn.allocAt(re.x,re.y,0,0),E.Ye(oe),Je.free(re),Je.free(oe),re=Je.allocAt(E.x+E.width/2,E.y+E.height/2),oe=a.port.li(),ee=ee.iterator;ee.next();){var de=ee.value;if(de.isVisible()&&de.fromPort!==de.toPort){var fe=de.fromPort===a.port||de.fromNode!==null&&de.fromNode.Td(b),ye=de.computeSpot(fe,a.port);if(ye.$c()&&(fe=fe?de.toPort:de.fromPort,fe!==null)){var Ce=fe.part;if(Ce!==null){var Ne=Ce.findVisibleNode();Ne!==null&&Ne!==Ce&&(Ce=Ne,fe=Ce.port),fe=de.computeOtherPoint(Ce,fe),Ce=re.ab(fe),Ce-=oe,0>Ce?Ce+=360:360<=Ce&&(Ce-=360),ye=Ux(E,ye,Ce,de.isOrthogonal),ye===0?(ye=4,180<Ce&&(Ce-=360)):ye===90?(ye=8,270<Ce&&(Ce-=360)):ye===180?ye=2:(ye=1,90>Ce&&(Ce+=360)),Ne=a.pe[z],Ne===void 0?(Ne=new iy(de,Ce,ye),a.pe[z]=Ne):(Ne.link=de,Ne.angle=Ce,Ne.Nc=ye),Ne.hv.set(fe),z++}}}}for(Je.free(re),a.pe.sort(hf.prototype.j),oe=a.pe.length,b=-1,z=re=0;z<oe;z++)ee=a.pe[z],ee!==void 0&&(ee.Nc!==b&&(b=ee.Nc,re=0),ee.Uo=re,re++);for(b=-1,re=0,z=oe-1;0<=z;z--)oe=a.pe[z],oe!==void 0&&(oe.Nc!==b&&(b=oe.Nc,re=oe.Uo+1),oe.Gl=re);if(z=a.pe,ye=a.port,b=a.node.portSpreading,re=Je.alloc(),oe=Je.alloc(),ee=Je.alloc(),de=Je.alloc(),ye.ga(Qi,re),ye.ga(co,oe),ye.ga(ho,ee),ye.ga(Jo,de),Ne=Ce=fe=ye=0,b===Yv)for(var Oe=0;Oe<z.length;Oe++){var Ve=z[Oe];if(Ve!==null){var ft=Ve.link.computeThickness();switch(Ve.Nc){case 8:Ce+=ft;break;case 2:Ne+=ft;break;case 1:ye+=ft;break;default:case 4:fe+=ft}}}var lt=Oe=0,mt=1,St=Ve=0;for(ft=0;ft<z.length;ft++){var Ct=z[ft];if(Ct!==null){if(Oe!==Ct.Nc){switch(Oe=Ct.Nc,Oe){case 8:var Rt=ee;lt=de;break;case 2:Rt=de,lt=re;break;case 1:Rt=re,lt=oe;break;default:case 4:Rt=oe,lt=ee}switch(Ve=lt.x-Rt.x,St=lt.y-Rt.y,Oe){case 8:Ce>Math.abs(Ve)?(mt=Math.abs(Ve)/Ce,Ce=Math.abs(Ve)):mt=1;break;case 2:Ne>Math.abs(St)?(mt=Math.abs(St)/Ne,Ne=Math.abs(St)):mt=1;break;case 1:ye>Math.abs(Ve)?(mt=Math.abs(Ve)/ye,ye=Math.abs(Ve)):mt=1;break;default:case 4:fe>Math.abs(St)?(mt=Math.abs(St)/fe,fe=Math.abs(St)):mt=1}lt=0}var $t=Ct.Zo;if(b===Yv){switch(Ct=Ct.link.computeThickness(),Ct*=mt,$t.set(Rt),Oe){case 8:$t.x=Rt.x+Ve/2+Ce/2-lt-Ct/2;break;case 2:$t.y=Rt.y+St/2+Ne/2-lt-Ct/2;break;case 1:$t.x=Rt.x+Ve/2-ye/2+lt+Ct/2;break;default:case 4:$t.y=Rt.y+St/2-fe/2+lt+Ct/2}lt+=Ct}else{var di=.5;b===Zm&&(di=(Ct.Uo+1)/(Ct.Gl+1)),$t.x=Rt.x+Ve*di,$t.y=Rt.y+St*di}}}for(Je.free(re),Je.free(oe),Je.free(ee),Je.free(de),Rt=a.pe,z=0;z<Rt.length;z++)b=Rt[z],b!==null&&(b.Ju=a.computeEndSegmentLength(b));a.ap=x,tn.free(E)}x=a.pe}for(a=0;a<x.length;a++)if(E=x[a],E!==null&&E.link===y)return E;return null}hf.prototype.j=function(a,y){return a===y?0:a===null?-1:y===null?1:a.Nc<y.Nc?-1:a.Nc>y.Nc?1:a.angle<y.angle?-1:a.angle>y.angle?1:0},hf.prototype.computeEndSegmentLength=function(a){var y=a.link,x=y.computeEndSegmentLength(this.node,this.port,Ni,y.fromPort===this.port),b=a.Uo;if(0>b)return x;var E=a.Gl;if(1>=E||!y.isOrthogonal)return x;y=a.hv;var z=a.Zo;return(a.Nc===2||a.Nc===8)&&(b=E-1-b),((a=a.Nc===2||a.Nc===4)?y.y<z.y:y.x<z.x)?x+8*b:(a?y.y===z.y:y.x===z.x)?x:x+8*(E-1-b)},hf.className="Knot";function iy(a,y,x){this.link=a,this.angle=y,this.Nc=x,this.hv=new Je,this.Gl=this.Uo=0,this.Zo=new Je,this.Ju=0}iy.prototype.toString=function(){return this.link.toString()+" "+this.angle.toString()+" "+this.Nc.toString()+":"+this.Uo.toString()+"/"+this.Gl.toString()+" "+this.Zo.toString()+" "+this.Ju.toString()+" "+this.hv.toString()},iy.className="LinkInfo";function sa(a){qi(this),this.o=this.H=null,this.Gh=this.sn=!0,this.yn=!1,this.Am=new Je(0,0).freeze(),this.vn=!0,this.Em=this.un=null,this.xn=!1,this.j=null,a&&Object.assign(this,a)}sa.prototype.cloneProtected=function(a){a.sn=this.sn,a.Gh=this.Gh,a.yn=this.yn,a.Am.assign(this.Am),a.vn=this.vn,a.un=this.un,a.Em=this.Em,a.xn=!0},sa.prototype.copy=function(){var a=new this.constructor;return this.cloneProtected(a),a},sa.prototype.qb=function(){},sa.prototype.toString=function(){var a=Tn(this.constructor);return a+="(",this.group!==null&&(a+=" in "+this.group),this.diagram!==null&&(a+=" for "+this.diagram),a+")"},sa.prototype.C=function(){if(this.isValidLayout){var a=this.diagram;if(a!==null&&!a.undoManager.isUndoingRedoing){var y=a.animationManager;!y.isTicking&&(y.defaultAnimation.isAnimating&&y.Cc(),this.isOngoing&&a.pi||this.isInitial&&!a.pi)&&(this.isValidLayout=!1,a.$b())}}},sa.prototype.createNetwork=function(){return new Zo(this)},sa.prototype.makeNetwork=function(a){var y=this.createNetwork();return a instanceof en?(y.lg(a.nodes,!0),y.lg(a.links,!0)):a instanceof xr?y.lg(a.memberParts):y.lg(a.iterator),y},sa.prototype.updateParts=function(){this.isValidLayout=!0;var a=this.diagram;if(a===null&&this.network!==null)for(var y=this.network.vertexes.iterator;y.next();){var x=y.value.node;if(x!==null&&(a=x.diagram,a!==null))break}try{a!==null&&a.Ea("Layout"),this.commitLayout()}finally{a!==null&&a.eb("Layout")}},sa.prototype.commitLayout=function(){if(this.network!==null){for(var a=this.network.vertexes.iterator;a.next();)a.value.commit();if(this.isRouting)for(a=this.network.edges.iterator;a.next();)a.value.commit()}},sa.prototype.doLayout=function(a){var y=new Bn;a instanceof en?(qd(this,y,a.nodes,!0,this.rh,!0,!1,!0),qd(this,y,a.parts,!0,this.rh,!0,!1,!0)):a instanceof xr?qd(this,y,a.memberParts,!1,this.rh,!0,!1,!0):y.addAll(a.iterator),0<y.count&&(a=this.diagram,a!==null&&a.Ea("Layout"),this.doMinimalNoNetworkLayout(y),a!==null&&a.eb("Layout")),this.isValidLayout=!0},sa.prototype.doMinimalNoNetworkLayout=function(a){var y=Math.ceil(Math.sqrt(a.count));this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin);var x=this.arrangementOrigin.x,b=x,E=this.arrangementOrigin.y,z=0,ee=0;for(a=a.iterator;a.next();){var re=a.value;bp(re);var oe=re.measuredBounds,de=oe.width;oe=oe.height,re.moveTo(b,E),re instanceof xr&&(re.rh=!1),b+=Math.max(de,50)+20,ee=Math.max(ee,Math.max(oe,50)),z>=y-1?(z=0,b=x,E+=ee+20,ee=0):z++}},sa.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,E=0,z=0,ee=this.network.vertexes.iterator;ee.next();){var re=ee.value.node;if(!(re===null||re instanceof ei)&&(bp(re),this.rh(re))){var oe=re.measuredBounds,de=oe.width;oe=oe.height,re.moveTo(x,b),re instanceof xr&&(re.rh=!1),x+=Math.max(de,50)+20,z=Math.max(z,Math.max(oe,50)),E>=a-1?(E=0,x=y,b+=z+20,z=0):E++}}},sa.prototype.rh=function(a){return!!(!a.location.w()||a instanceof xr&&a.rh)};function qd(a,y,x,b,E,z,ee,re){for(x=x.iterator;x.next();){var oe=x.value;b&&!oe.isTopLevel||E!==null&&!E(oe)||!oe.canLayout()||(z&&oe instanceof Si?oe.isLinkLabel||(oe instanceof xr&&oe.layout===null?qd(a,y,oe.memberParts,!1,E,z,ee,re):(bp(oe),y.add(oe))):ee&&oe instanceof ei?y.add(oe):!re||!oe.Zc()||oe instanceof Si||(bp(oe),y.add(oe)))}}function bp(a){var y=a.actualBounds;(y.width===0||y.height===0||isNaN(y.width)||isNaN(y.height))&&a.Va()}sa.prototype.ni=function(a,y){var x=this.boundsComputation;return x!==null?(y||(y=new tn),x(a,this,y)):y?(y.set(a.actualBounds),y):a.actualBounds},sa.prototype.ex=function(a){var y=new Bn;return a instanceof en?(qd(this,y,a.nodes,!0,null,!0,!0,!0),qd(this,y,a.links,!0,null,!0,!0,!0),qd(this,y,a.parts,!0,null,!0,!0,!0)):a instanceof xr?qd(this,y,a.memberParts,!1,null,!0,!0,!0):qd(this,y,a.iterator,!1,null,!0,!0,!0),y},sa.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(Qi),(isNaN(x.x)||isNaN(x.y))&&x.set(a),a=y.padding,x.x+=a.left,x.y+=a.top),x}return a},jt.Object.defineProperties(sa.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())}}}),sa.prototype.collectParts=sa.prototype.ex,sa.prototype.getLayoutBounds=sa.prototype.ni,sa.prototype.invalidateLayout=sa.prototype.C,sa.className="Layout";function Zo(a){qi(this),this.Sc=a,this.wf=new Bn,this.ye=new Bn,this.Es=new an,this.zs=new an}Zo.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 an,this.zs=new an},Zo.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,1<a){for(var x=this.wf.iterator;x.next();)y+=`
|
|
|
`+x.value.toString(a-1);for(x=this.ye.iterator;x.next();)y+=`
|
|
|
`+x.value.toString(a-1)}return y},Zo.prototype.createVertex=function(){return new Ka(this)},Zo.prototype.createEdge=function(){return new Vl(this)},Zo.prototype.lg=function(a,y,x){if(a!==null){for(y===void 0&&(y=!1),x===void 0&&(x=null),x===null&&(x=function(ee){if(ee instanceof Si)return!ee.isLinkLabel;if(ee instanceof ei){var re=ee.fromNode;return re===null||re.isLinkLabel?!1:(ee=ee.toNode,!(ee===null||ee.isLinkLabel))}return!1}),a=a.iterator;a.next();){var b=a.value;if(b instanceof Si&&(!y||b.isTopLevel)&&b.canLayout()&&x(b)){if(b instanceof xr&&b.layout===null)this.lg(b.memberParts,!1);else if(this.ki(b)===null){var E=this.createVertex();E.node=b,this.dh(E)}}}for(a.reset();a.next();)if(b=a.value,b instanceof ei&&(!y||b.isTopLevel)&&b.canLayout()&&x(b)&&this.Lo(b)===null){var z=b.fromNode;E=b.toNode,z!==null&&E!==null&&z!==E&&(z=this.findGroupVertex(z),E=this.findGroupVertex(E),z!==null&&E!==null&&this.Zj(z,E,b))}}},Zo.prototype.findGroupVertex=function(a){if(a===null)return null;var y=a.findVisibleNode();if(y===null)return null;if(a=this.ki(y),a!==null)return a;for(y=y.containingGroup;y!==null;){if(a=this.ki(y),a!==null)return a;y=y.containingGroup}return null},Ie=Zo.prototype,Ie.dh=function(a){if(a!==null){this.wf.add(a);var y=a.node;y!==null&&this.Es.add(y,a),a.network=this}},Ie.Bl=function(a){if(a===null)return null;var y=this.ki(a);return y===null&&(y=this.createVertex(),y.node=a,this.dh(y)),y},Ie.Iu=function(a){if(a!==null&&g1(this,a)){for(var y=a.tg,x=y.count-1;0<=x;x--){var b=y.M(x);this.Mj(b)}for(y=a.mg,a=y.count-1;0<=a;a--)x=y.M(a),this.Mj(x)}};function g1(a,y){if(y===null)return!1;var x=a.wf.remove(y);return x&&(y=y.node,y!==null&&a.Es.remove(y)),x}Ie.Zy=function(a){a!==null&&(a=this.ki(a),a!==null&&this.Iu(a))},Ie.ki=function(a){return a===null?null:this.Es.I(a)},Ie.Bo=function(a){if(a!==null){ry(this,a);var y=a.toVertex;y!==null&&y.Cl(a),y=a.fromVertex,y!==null&&y.zl(a)}};function ry(a,y){if(y!==null){a.ye.add(y);var x=y.link;x!==null&&a.Lo(x)===null&&a.zs.add(x,y),y.network=a}}Ie.Dy=function(a){if(a===null)return null;var y=a.fromNode,x=a.toNode,b=this.Lo(a);return b===null?(b=this.createEdge(),b.link=a,y!==null&&(b.fromVertex=this.Bl(y)),x!==null&&(b.toVertex=this.Bl(x)),this.Bo(b)):(y!==null?b.fromVertex=this.Bl(y):b.fromVertex=null,x!==null?b.toVertex=this.Bl(x):b.toVertex=null),b},Ie.Mj=function(a){if(a!==null){var y=a.toVertex;y!==null&&y.Kl(a),y=a.fromVertex,y!==null&&y.Jl(a),oy(this,a)}};function oy(a,y){y!==null&&a.ye.remove(y)&&(y=y.link,y!==null&&a.zs.remove(y))}Ie.Yy=function(a){a!==null&&(a=this.Lo(a),a!==null&&this.Mj(a))},Ie.Lo=function(a){return a===null?null:this.zs.I(a)},Ie.Zj=function(a,y,x){if(a===null||y===null)return null;if(a.network===this&&y.network===this){var b=this.createEdge();return b.link=x,b.fromVertex=a,b.toVertex=y,this.Bo(b),b}return null},Ie.gm=function(a){if(a!==null){var y=a.fromVertex,x=a.toVertex;y!==null&&x!==null&&(y.Jl(a),x.Kl(a),a.gm(),y.Cl(a),x.zl(a))}},Ie.Ko=function(){for(var a=Mi(),y=this.ye.iterator;y.next();){var x=y.value;x.fromVertex===x.toVertex&&a.push(x)}for(y=a.length,x=0;x<y;x++)this.Mj(a[x]);ui(a)},Zo.prototype.deleteArtificialVertexes=function(){for(var a=Mi(),y=this.wf.iterator;y.next();){var x=y.value;x.node===null&&x.data===null&&a.push(x)}for(x=a.length,y=0;y<x;y++)this.Iu(a[y]);for(y=Mi(),x=this.ye.iterator;x.next();){var b=x.value;b.link===null&&b.data===null&&y.push(b)}for(x=y.length,b=0;b<x;b++)this.Mj(y[b]);ui(a),ui(y)};function zx(a){for(var y=Mi(),x=a.ye.iterator;x.next();){var b=x.value;b.fromVertex!==null&&b.toVertex!==null||y.push(b)}for(x=y.length,b=0;b<x;b++)a.Mj(y[b]);ui(y)}Zo.prototype.Zx=function(a){a===void 0&&(a=!0),a&&(this.deleteArtificialVertexes(),zx(this),this.Ko()),a=new Dn;for(var y=!0;y;){y=!1;for(var x=this.wf.iterator;x.next();){var b=x.value;if(0<b.tg.count||0<b.mg.count){y=this.layout.createNetwork(),a.add(y),ay(this,y,b),y=!0;break}}}return a.sort(function(E,z){return E===null||z===null||E===z?0:z.vertexes.count-E.vertexes.count}),a};function ay(a,y,x){if(x!==null&&x.network!==y){g1(a,x),y.dh(x);for(var b=x.sourceEdges;b.next();){var E=b.value;E.network!==y&&(oy(a,E),ry(y,E),ay(a,y,E.fromVertex))}for(b=x.destinationEdges;b.next();)x=b.value,x.network!==y&&(oy(a,x),ry(y,x),ay(a,y,x.toVertex))}}Zo.prototype.dz=function(){for(var a=new Bn,y=this.wf.iterator;y.next();)a.add(y.value.node);for(y=this.ye.iterator;y.next();)a.add(y.value.link);return a},jt.Object.defineProperties(Zo.prototype,{layout:{get:function(){return this.Sc},set:function(a){a!==null&&(this.Sc=a)}},vertexes:{get:function(){return this.wf}},edges:{get:function(){return this.ye}}}),Zo.prototype.findAllParts=Zo.prototype.dz,Zo.prototype.splitIntoSubNetworks=Zo.prototype.Zx,Zo.prototype.deleteSelfEdges=Zo.prototype.Ko,Zo.prototype.reverseEdge=Zo.prototype.gm,Zo.prototype.linkVertexes=Zo.prototype.Zj,Zo.prototype.findEdge=Zo.prototype.Lo,Zo.prototype.deleteLink=Zo.prototype.Yy,Zo.prototype.deleteEdge=Zo.prototype.Mj,Zo.prototype.addLink=Zo.prototype.Dy,Zo.prototype.addEdge=Zo.prototype.Bo,Zo.prototype.findVertex=Zo.prototype.ki,Zo.prototype.deleteNode=Zo.prototype.Zy,Zo.prototype.deleteVertex=Zo.prototype.Iu,Zo.prototype.addNode=Zo.prototype.Bl,Zo.prototype.addVertex=Zo.prototype.dh,Zo.prototype.addParts=Zo.prototype.lg,Zo.className="LayoutNetwork";function Ka(a){qi(this),this.ob=a,this.j=new tn(0,0,10,10).freeze(),this.o=new Je(5,5).freeze(),this.Sh=this.ub=null,this.tg=new Dn,this.mg=new Dn}Ka.prototype.clear=function(){this.Sh=this.ub=null,this.tg=new Dn,this.mg=new Dn},Ka.prototype.toString=function(a){a===void 0&&(a=0);var y="LayoutVertex#"+gr(this);if(0<a&&(y+=this.node!==null?"("+this.node.toString()+")":"",1<a)){a="";for(var x=!0,b=this.tg.iterator;b.next();){var E=b.value;x?x=!1:a+=",",a+=E.toString(0)}for(E="",x=!0,b=this.mg.iterator;b.next();){var z=b.value;x?x=!1:E+=",",E+=z.toString(0)}y+=" sources: "+a+" destinations: "+E}return y},Ka.prototype.commit=function(){var a=this.ub;if(a!==null){var y=this.bounds,x=a.bounds;zt(x)?(x.x=y.x,x.y=y.y,x.width=y.width,x.height=y.height):a.bounds=y.copy()}else if(a=this.node,a!==null){if(y=this.bounds,!(a instanceof xr)){x=tn.alloc(),a.Va();var b=this.network.layout.ni(a,x),E=a.locationObject.ga(mr);if(b.w()&&E.w()){a.moveTo(y.x+this.focusX-(E.x-b.x),y.y+this.focusY-(E.y-b.y)),tn.free(x);return}tn.free(x)}a.moveTo(y.x,y.y)}},Ka.prototype.Cl=function(a){a!==null&&(this.tg.contains(a)||this.tg.add(a))},Ka.prototype.Kl=function(a){a!==null&&this.tg.remove(a)},Ka.prototype.zl=function(a){a!==null&&(this.mg.contains(a)||this.mg.add(a))},Ka.prototype.Jl=function(a){a!==null&&this.mg.remove(a)};function sy(a,y){return a=a.Sh,y=y.Sh,a?y?(a=a.text,y=y.text,a<y?-1:a>y?1:0):1:y!==null?-1:0}jt.Object.defineProperties(Ka.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=tn.alloc(),b=y.ni(a,x);y=b.x;var E=b.y,z=b.width;if(b=b.height,isNaN(y)&&(y=0),isNaN(E)&&(E=0),this.j.h(y,E,z,b),tn.free(x),!(a instanceof xr)&&(a=a.locationObject.ga(mr),a.w())){this.o.h(a.x-y,a.y-E);return}this.o.h(z/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 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 Dn,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}}}),Ka.prototype.deleteDestinationEdge=Ka.prototype.Jl,Ka.prototype.addDestinationEdge=Ka.prototype.zl,Ka.prototype.deleteSourceEdge=Ka.prototype.Kl,Ka.prototype.addSourceEdge=Ka.prototype.Cl,Ka.className="LayoutVertex",Ka.standardComparer=sy,Ka.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<y.length;x++)if(a[x]!==""&&a[x]!==void 0){var b=parseFloat(y[x]),E=parseFloat(a[x]);if(isNaN(b))if(isNaN(E)){if(y[x].localeCompare(a[x])!==0)return y[x].localeCompare(a[x])}else return 1;else{if(isNaN(E))return-1;if(b-E!==0)return b-E}}else if(y[x]!=="")return 1;return a[x]!==""&&a[x]!==void 0?-1:0}return 1}return x!==null?-1:0}return 1}return y!==null?-1:0};function Vl(a){qi(this),this.nb=a,this.qd=this.kd=this.$k=this.ub=null}Vl.prototype.clear=function(){this.qd=this.kd=this.$k=this.ub=null},Vl.prototype.toString=function(a){a===void 0&&(a=0);var y="LayoutEdge#"+gr(this);return 0<a&&(y+=this.$k!==null?"("+this.$k.toString()+")":"",1<a&&(y+=" "+(this.kd?this.kd.toString():"null")+" --> "+(this.qd?this.qd.toString():"null"))),y},Vl.prototype.gm=function(){var a=this.kd;this.kd=this.qd,this.qd=a},Vl.prototype.commit=function(){},Vl.prototype.Ax=function(a){return this.qd===a?this.kd:this.kd===a?this.qd:null},jt.Object.defineProperties(Vl.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)}}}),Vl.prototype.getOtherVertex=Vl.prototype.Ax,Vl.className="LayoutEdge";function Ss(a){sa.call(this),this.isViewportSized=!0,this.yo=this.zo=NaN,this.yg=new Ln(NaN,NaN).freeze(),this.tf=new Ln(10,10).freeze(),this.Jb=Ep,this.Rb=l0,this.nd=wp,this.hd=p1,a&&Object.assign(this,a)}Wt(Ss,sa),Ss.prototype.cloneProtected=function(a){sa.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},Ss.prototype.qb=function(a){a.classType===Ss?a===wp||a===c0||a===ly||a===u0?this.sorting=a:a===l0||a===dc?this.arrangement=a:a===Ep||a===s0?this.alignment=a:vt("Unknown enum value: "+a):sa.prototype.qb.call(this,a)},Ss.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 xr)for(b=b.memberParts;b.next();)y.remove(b.value)}else y.remove(b)}var E=y.Fa();if(E.length!==0){switch(this.sorting){case u0:E.reverse();break;case wp:E.sort(this.comparer);break;case c0:E.sort(this.comparer),E.reverse()}var z=this.wrappingColumn;isNaN(z)&&(z=0);var ee=this.wrappingWidth;switch(isNaN(ee)&&a!==null?(y=a.padding,ee=Math.max(a.viewportBounds.width-y.left-y.right,0)):ee=Math.max(this.wrappingWidth,0),0>=z&&0>=ee&&(z=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 s0:var re=y,oe=x,de=tn.alloc(),fe=Math.max(this.cellSize.width,1);if(!isFinite(fe))for(var ye=fe=0;ye<E.length;ye++){var Ce=this.ni(E[ye],de);fe=Math.max(fe,Ce.width)}if(fe=Math.max(fe+re,1),ye=Math.max(this.cellSize.height,1),!isFinite(ye))for(Ce=ye=0;Ce<E.length;Ce++){var Ne=this.ni(E[Ce],de);ye=Math.max(ye,Ne.height)}ye=Math.max(ye+oe,1),Ce=this.arrangement;for(var Oe=Ne=this.arrangementOrigin.x,Ve=this.arrangementOrigin.y,ft=0,lt=0,mt=0;mt<E.length;mt++){var St=E[mt],Ct=this.ni(St,de),Rt=Math.ceil((Ct.width+re)/fe)*fe,$t=Math.ceil((Ct.height+oe)/ye)*ye;switch(Ce){case dc:var di=Math.abs(Oe-Ct.width);break;default:di=Oe+Ct.width}switch((0<z&&ft>z-1||0<ee&&0<ft&&di-Ne>ee)&&(b.push(new tn(0,Ve,ee+re,lt)),ft=0,Oe=Ne,Ve+=lt,lt=0),lt=Math.max(lt,$t),Ce){case dc:Ct=-Ct.width;break;default:Ct=0}switch(St.moveTo(Oe+Ct,Ve),Ce){case dc:Oe-=Rt;break;default:Oe+=Rt}ft++}b.push(new tn(0,Ve,ee+re,lt)),tn.free(de);break;case Ep:for(oe=ee,fe=z,ye=y,Ce=x,ee=tn.alloc(),Ne=Math.max(this.cellSize.width,1),z=Ve=de=0,re=Je.alloc(),Oe=0;Oe<E.length;Oe++)lt=E[Oe],ft=this.ni(lt,ee),lt=wd(lt,lt.locationObject,lt.locationSpot,re),de=Math.max(de,lt.x),Ve=Math.max(Ve,ft.width-lt.x),z=Math.max(z,lt.y);switch(Oe=this.arrangement,Oe){case dc:de+=ye;break;default:Ve+=ye}Ne=isFinite(Ne)?Math.max(Ne+ye,1):Math.max(de+Ve,1);var Di=lt=this.arrangementOrigin.x;for(mt=this.arrangementOrigin.y,Ve=0,oe>=de&&(oe-=de),de=St=0,Rt=Math.max(this.cellSize.height,1),Ct=z=0,$t=!0,ft=Je.alloc(),di=0;di<E.length;di++){var Li=E[di],$n=this.ni(Li,ee),Nn=wd(Li,Li.locationObject,Li.locationSpot,re);if(0<Ve)switch(Oe){case dc:Di=(Di-lt-($n.width-Nn.x))/Ne,Di=Bt.$(Math.round(Di),Di)?Math.round(Di):Math.floor(Di),Di=Di*Ne+lt;break;default:Di=(Di-lt+Nn.x)/Ne,Di=Bt.$(Math.round(Di),Di)?Math.round(Di):Math.ceil(Di),Di=Di*Ne+lt}else switch(Oe){case dc:St=Di+Nn.x+$n.width;break;default:St=Di-Nn.x}switch(Oe){case dc:var Sr=-(Di+Nn.x)+St;break;default:Sr=Di+$n.width-Nn.x-St}if(0<fe&&Ve>fe-1||0<oe&&0<Ve&&Sr>oe){for(b.push(new tn(0,$t?mt-z:mt,oe+ye,Ct+z+Ce)),Di=0;Di<Ve&&di!==Ve;Di++){Sr=E[di-Ve+Di];var hr=wd(Sr,Sr.locationObject,Sr.locationSpot,ft);Sr.moveTo(Sr.position.x,Sr.position.y+z-hr.y)}Ct+=Ce,mt=$t?mt+Ct:mt+(Ct+z),Ve=Ct=z=0,Di=lt,$t=!1}switch(Di===lt&&(de=Oe===dc?Math.max(de,$n.width-Nn.x):Math.min(de,-Nn.x)),z=Math.max(z,Nn.y),Ct=Math.max(Ct,$n.height-Nn.y),isFinite(Rt)&&(Ct=Math.max(Ct,Math.max($n.height,Rt)-Nn.y)),$t?Li.moveTo(Di-Nn.x,mt-Nn.y):Li.moveTo(Di-Nn.x,mt),Oe){case dc:Di-=Nn.x+ye;break;default:Di+=$n.width-Nn.x+ye}Ve++}if(b.push(new tn(0,mt,oe+ye,($t?Ct:Ct+z)+Ce)),E.length!==Ve)for(oe=0;oe<Ve;oe++)fe=E[E.length-Ve+oe],ye=wd(fe,fe.locationObject,fe.locationSpot,re),fe.moveTo(fe.position.x,fe.position.y+z-ye.y);if(Je.free(re),Je.free(ft),Oe===dc)for(E=0;E<b.length;E++)z=b[E],z.width+=de,z.x-=de;else for(E=0;E<b.length;E++)z=b[E],z.x>de&&(z.width+=z.x-de,z.x=de);tn.free(ee)}for(re=z=ee=E=0;re<b.length;re++)oe=b[re],E=Math.min(E,oe.x),ee=Math.min(ee,oe.y),z=Math.max(z,oe.x+oe.width);this.arrangement===dc?this.commitLayers(b,new Je(E+y/2-(z+E),ee-x/2)):this.commitLayers(b,new Je(E-y/2,ee-x/2)),a!==null&&a.eb("Layout"),this.isValidLayout=!0}},Ss.prototype.commitLayers=function(){};function p1(a,y){return a=a.text,y=y.text,a<y?-1:a>y?1:0}jt.Object.defineProperties(Ss.prototype,{wrappingWidth:{get:function(){return this.zo},set:function(a){this.zo!==a&&(0<a||isNaN(a))&&(this.zo=a,this.isViewportSized=isNaN(a),this.C())}},wrappingColumn:{get:function(){return this.yo},set:function(a){this.yo!==a&&(0<a||isNaN(a))&&(this.yo=a,this.C())}},cellSize:{get:function(){return this.yg},set:function(a){this.yg.D(a)||(this.yg.assign(a),this.C())}},spacing:{get:function(){return this.tf},set:function(a){this.tf.D(a)||(this.tf.assign(a),this.C())}},alignment:{get:function(){return this.Jb},set:function(a){this.Jb===a||a!==Ep&&a!==s0||(this.Jb=a,this.C())}},arrangement:{get:function(){return this.Rb},set:function(a){this.Rb===a||a!==l0&&a!==dc||(this.Rb=a,this.C())}},sorting:{get:function(){return this.nd},set:function(a){this.nd===a||a!==ly&&a!==u0&&a!==wp&&a!==c0||(this.nd=a,this.C())}},comparer:{get:function(){return this.hd},set:function(a){this.hd!==a&&(this.hd=a,this.C())}}});var s0=new mn(Ss,"Position",0),Ep=new mn(Ss,"Location",1),l0=new mn(Ss,"LeftToRight",2),dc=new mn(Ss,"RightToLeft",3),ly=new mn(Ss,"Forward",4),u0=new mn(Ss,"Reverse",5),wp=new mn(Ss,"Ascending",6),c0=new mn(Ss,"Descending",7);Ss.className="GridLayout",Ss.standardComparer=p1,Ss.smartComparer=function(a,y){if(a!==null){if(y!==null){a=a.text.toLocaleLowerCase().split(/([+-]?[.]?\d+(?:\.\d*)?(?:e[+-]?\d+)?)/),y=y.text.toLocaleLowerCase().split(/([+-]?[.]?\d+(?:\.\d*)?(?:e[+-]?\d+)?)/);for(var x=0;x<a.length;x++)if(y[x]!==""&&y[x]!==void 0){var b=parseFloat(a[x]),E=parseFloat(y[x]);if(isNaN(b))if(isNaN(E)){if(a[x].localeCompare(y[x])!==0)return a[x].localeCompare(y[x])}else return 1;else{if(isNaN(E))return-1;if(b-E!==0)return b-E}}else if(a[x]!=="")return 1;return y[x]!==""&&y[x]!==void 0?-1:0}return 1}return y!==null?-1:0},Ss.Position=s0,Ss.Location=Ep,Ss.LeftToRight=l0,Ss.RightToLeft=dc,Ss.Forward=ly,Ss.Reverse=u0,Ss.Ascending=wp,Ss.Descending=c0;function To(){this.On=new Bn,this.Dn=new Bn,this.Pa=new Bn,this.cf=new an,this.bf=new an,this.aj=new an,this.H=null,this.tp=!1}Ie=To.prototype,Ie.clear=function(){this.On.clear(),this.Dn.clear(),this.Pa.clear(),this.cf.clear(),this.bf.clear(),this.aj.clear()},Ie.Xe=function(a){this.H=a},Ie.oi=function(a){if(a instanceof Si){if(this.On.add(a),a instanceof xr){var y=a.containingGroup;y===null?this.H.ai.add(a):y.gl.add(a),y=a.layout,y!==null&&(y.diagram=this.H)}}else a instanceof ei?this.Dn.add(a):a instanceof lo||this.Pa.add(a);y=a.data,y===null||a instanceof lo||(a instanceof ei?this.bf.add(y,a):this.cf.add(y,a))},Ie.pc=function(a){if(a.Ej(),a instanceof Si){if(this.On.remove(a),a instanceof xr){var y=a.containingGroup;y===null?this.H.ai.remove(a):y.gl.remove(a),y=a.layout,y!==null&&(y.diagram=null)}}else a instanceof ei?this.Dn.remove(a):a instanceof lo||this.Pa.remove(a);y=a.data,y===null||a instanceof lo||(a instanceof ei?this.bf.remove(y):this.cf.remove(y))},Ie.Wd=function(){var a=this.H;if(a!==null){for(var y=a.nodeTemplateMap.iterator;y.next();){var x=y.value,b=y.key;(!x.Zc()||x instanceof xr)&&vt('Invalid node template in Diagram.nodeTemplateMap: template for "'+b+'" must be a Node or a simple Part, not a Group or Link: '+x)}for(y=a.groupTemplateMap.iterator;y.next();)x=y.value,b=y.key,x instanceof xr||vt('Invalid group template in Diagram.groupTemplateMap: template for "'+b+'" must be a Group, not a normal Node or Link: '+x);for(y=a.linkTemplateMap.iterator;y.next();)x=y.value,b=y.key,x instanceof ei||vt('Invalid link template in Diagram.linkTemplateMap: template for "'+b+'" must be a Link, not a normal Node or simple Part: '+x);for(y=Mi(),x=a.selection.iterator;x.next();)(b=x.value.data)&&y.push(b);for(x=Mi(),a=a.highlighteds.iterator;a.next();)(b=a.value.data)&&x.push(b);for(a=Mi(),b=this.nodes.iterator;b.next();){var E=b.value;E.data!==null&&(a.push(E.data),a.push(E.location))}for(b=this.links.iterator;b.next();)E=b.value,E.data!==null&&(a.push(E.data),a.push(E.location));for(b=this.parts.iterator;b.next();)E=b.value,E.data!==null&&(a.push(E.data),a.push(E.location));for(this.removeAllModeledParts(),this.addAllModeledParts(),b=0;b<y.length;b++)E=this.Lc(y[b]),E!==null&&(E.isSelected=!0);for(b=0;b<x.length;b++)E=this.Lc(x[b]),E!==null&&(E.isHighlighted=!0);for(b=0;b<a.length;b+=2)E=this.Lc(a[b]),E!==null&&(E.location=a[b+1]);ui(y),ui(x),ui(a)}},To.prototype.addAllModeledParts=function(){this.addModeledParts(this.diagram.model.nodeDataArray)},To.prototype.addModeledParts=function(a,y){var x=this,b=this.diagram.model;a.forEach(function(E){b.lb(E)&&m1(x,E,!1)}),a.forEach(function(E){b.lb(E)&&x.resolveReferencesForData(E)}),y!==!1&&Of(this.diagram,!1)};function m1(a,y,x){if(y!=null&&!a.diagram.undoManager.isUndoingRedoing&&!a.cf.contains(y)){x===void 0&&(x=!0);e:{if(y!=null&&!a.H.undoManager.isUndoingRedoing&&!a.cf.contains(y)){var b=a.Ro(y),E=v1(a,y,b);if(E!==null&&(Ru(E),E=E.copy(),E!==null)){var z=a.diagram.skipsModelSourceBindings;a.diagram.skipsModelSourceBindings=!0,E.Tf=b,E.ub=y,a.tp&&(E.Jg="Tool"),a.diagram.add(E),E.ub=null,E.data=y,a.diagram.skipsModelSourceBindings=z,b=E;break e}}b=null}b!==null&&x&&a.resolveReferencesForData(y)}}To.prototype.insertLink=function(){return null},To.prototype.resolveReferencesForData=function(){},To.prototype.Ro=function(a){return this.H.model.Ro(a)};function v1(a,y,x){a=a.H;var b=a.model;return b.Xj()&&b.Yu(y)?(y=a.groupTemplateMap.I(x),y===null&&(y=a.groupTemplateMap.I(""),y===null&&(x1||(x1=!0,ki('No Group template found for category "'+x+'"'),ki(" Using default group template")),y=a.ly))):(y=a.nodeTemplateMap.I(x),y===null&&(y=a.nodeTemplateMap.I(""),y===null&&(S1||(S1=!0,ki('No Node template found for category "'+x+'"'),ki(" Using default node template")),y=a.ny))),y}To.prototype.getLinkCategoryForData=function(){return""},To.prototype.setLinkCategoryForData=function(){},To.prototype.setFromNodeForLink=function(){},To.prototype.setToNodeForLink=function(){},To.prototype.findLinkTemplateForCategory=function(a){var y=this.H,x=y.linkTemplateMap.I(a);return x===null&&(x=y.linkTemplateMap.I(""),x===null&&(b1||(b1=!0,ki('No Link template found for category "'+a+'"'),ki(" Using default link template")),x=y.my)),x},To.prototype.removeAllModeledParts=function(){this.Gs(this.diagram.model.nodeDataArray)},To.prototype.Gs=function(a){var y=this;a.forEach(function(x){y.ip(x)})},To.prototype.ip=function(a){a=this.Lc(a),a!==null&&(Bg(this.diagram,a,!1),this.unresolveReferencesForPart(a))},To.prototype.unresolveReferencesForPart=function(){},To.prototype.removeDataForLink=function(){},To.prototype.findPartForKey=function(a){return a==null?null:(a=this.H.model.hc(a),a!==null?this.cf.I(a):null)},To.prototype.Vb=function(a){return a==null||(a=this.H.model.hc(a),a===null)?null:(a=this.cf.I(a),a instanceof Si?a:null)},To.prototype.findLinkForKey=function(){return null},Ie=To.prototype,Ie.Lc=function(a){if(a===null)return null;var y=this.cf.I(a);return y!==null?y:y=this.bf.I(a)},Ie.ii=function(a){return a===null?null:(a=this.cf.I(a),a instanceof Si?a:null)},Ie.Kc=function(a){return a===null?null:this.bf.I(a)},Ie.ms=function(a){for(var y=0;y<arguments.length;++y);y=new Bn;for(var x=this.On.iterator;x.next();){var b=x.value,E=b.data;if(E!==null)for(var z=0;z<arguments.length;z++){var ee=arguments[z];if(zt(ee)&&uy(this,E,ee)){y.add(b);break}}}return y.iterator},Ie.ls=function(a){for(var y=0;y<arguments.length;++y);y=new Bn;for(var x=this.Dn.iterator;x.next();){var b=x.value,E=b.data;if(E!==null)for(var z=0;z<arguments.length;z++){var ee=arguments[z];if(zt(ee)&&uy(this,E,ee)){y.add(b);break}}}return y.iterator};function uy(a,y,x){for(var b in x){var E=y[b],z=x[b];if(wn(z)){if(!wn(E)||E.length<z.length)return!1;for(var ee=0;ee<E.length;ee++){var re=z[ee];if(re!==void 0&&!y1(a,E[ee],re))return!1}}else if(!y1(a,E,z))return!1}return!0}function y1(a,y,x){if(typeof x=="function"){if(!x(y))return!1}else if(x instanceof RegExp){if(!y||!x.test(y.toString()))return!1}else if(zt(y)&&zt(x)){if(!uy(a,y,x))return!1}else if(y!==x)return!1;return!0}To.prototype.doModelChanged=function(a){if(this.H){var y=this.H;if(a.model===y.model){var x=a.change;if(y.doModelChanged(a),y.aa){y.aa=!1;try{var b=a.modelChange;if(b!=="")if(x===Wo){if(b==="nodeCategory"){var E=this.Lc(a.object),z=a.newValue;E!==null&&typeof z=="string"&&(E.category=z)}else b==="nodeDataArray"&&(this.Gs(a.oldValue),this.addModeledParts(a.newValue));y.isModified=!0}else if(x===la){var ee=a.newValue;b==="nodeDataArray"&&zt(ee)&&m1(this,ee),y.isModified=!0}else if(x===ga){var re=a.oldValue;b==="nodeDataArray"&&zt(re)&&this.ip(re),y.isModified=!0}else x===ds&&(b==="SourceChanged"?a.object!==null?this.updateDataBindings(a.object,a.propertyName):(this.rp(),this.updateAllTargetBindings()):b==="ModelDisplaced"&&this.Wd());else if(x===Wo){var oe=a.propertyName,de=a.object;de===y.model?(oe==="nodeKeyProperty"||oe==="nodeCategoryProperty")&&(y.undoManager.isUndoingRedoing||this.Wd()):this.updateDataBindings(de,oe),y.isModified=!0}else if(x===la||x===ga){var fe=a.change===la,ye=fe?a.newParam:a.oldParam,Ce=fe?a.newValue:a.oldValue,Ne=this.aj.I(a.object);if(Array.isArray(Ne))for(a=0;a<Ne.length;a++){var Oe=Ne[a];if(fe)km(Oe,Ce,ye,!0);else if(!(0>ye)){var Ve=ye+rp(Oe);Oe.pc(Ve,!0),wv(Oe,Ve,ye)}}y.isModified=!0}}finally{y.aa=!0}}}}},To.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)},To.prototype.rp=function(){for(var a=this.H.model,y=new Bn,x=a.nodeDataArray,b=0;b<x.length;b++)y.add(x[b]);var E=[];for(this.nodes.each(function(ee){ee.data===null||y.contains(ee.data)||E.push(ee.data)}),this.parts.each(function(ee){ee.data===null||y.contains(ee.data)||E.push(ee.data)}),E.forEach(function(ee){L1(a,ee,!1)}),b=0;b<x.length;b++){var z=x[b];this.Lc(z)===null&&k1(a,z,!1)}for(this.refreshDataBoundLinks(),x=this.parts.iterator;x.next();)x.value.updateRelationshipsFromData();for(x=this.nodes.iterator;x.next();)x.value.updateRelationshipsFromData();for(x=this.links.iterator;x.next();)x.value.updateRelationshipsFromData()},To.prototype.refreshDataBoundLinks=function(){},To.prototype.updateRelationshipsFromData=function(){},To.prototype.updateDataBindings=function(a,y){if(typeof y=="string"){var x=this.Lc(a);if(x!==null)x.La(y);else{x=null;for(var b=this.aj.iterator;b.next();){for(var E=b.value,z=0;z<E.length;z++){var ee=E[z].sx(a);ee!==null&&(x===null&&(x=Mi()),x.push(ee))}if(x!==null)break}if(x!==null){for(b=0;b<x.length;b++)x[b].La(y);ui(x)}}a===this.diagram.model.modelData&&this.updateAllTargetBindings(y)}};function cy(a,y){var x=y.Hh;if(wn(x)){var b=a.aj.I(x);if(b===null)b=[],b.push(y),a.aj.add(x,b);else{for(a=0;a<b.length;a++)if(b[a]===y)return;b.push(y)}}}function dy(a,y,x){Rh(y,function(ee){ee=ee.O.s;for(var re=ee.length,oe=0;oe<re;oe++)jg(x,ee[oe])});var b=y.Hh;if(wn(b)){var E=a.aj.I(b);if(E!==null){for(var z=0;z<E.length;z++)if(E[z]===y){E.splice(z,1),E.length===0&&a.aj.remove(b);break}}}}To.prototype.Kj=function(a,y,x){x===void 0&&(x=!1);var b=new an;if(wn(a))for(var E=0;E<a.length;E++)d0(this,a[E],y,b,x);else for(a=a.iterator;a.next();)d0(this,a.value,y,b,x);if(y!==null){x=y.model,a=y.toolManager.findTool("Dragging"),a=a!==null?a.dragOptions.dragsLink:y.Wm.dragsLink,E=new Bn;for(var z=new an,ee=b.iterator;ee.next();){var re=ee.value;if(re instanceof ei)a||re.fromNode!==null&&re.toNode!==null||E.add(re);else if(re instanceof Si&&re.data!==null&&x.Tl()){var oe=re;re=ee.key;var de=re.pg();de!==null&&(de=b.I(de),de!==null?(x.qe(oe.data,x.wa(de.data)),oe=y.Kc(oe.data),re=re.kh(),re!==null&&oe!==null&&z.add(re,oe)):x.qe(oe.data,void 0))}}if(0<E.count&&y.Is(E,!1),0<z.count)for(x=z.iterator;x.next();)b.add(x.key,x.value)}if(y!==null&&this.H!==null&&(y=y.model,x=y.afterCopyFunction,x!==null)){var fe=new an;b.each(function(ye){ye.key.data!==null&&fe.add(ye.key.data,ye.value.data)}),x(fe,y,this.H.model)}for(y=b.iterator;y.next();)y.value.La();return b};function d0(a,y,x,b,E){if(y===null||E&&!y.canCopy())return null;if(b.contains(y))return b.I(y);var z=a.copyPartData(y,x);if(!(z instanceof Zi))return null;if(z.isSelected=!1,z.isHighlighted=!1,b.add(y,z),y instanceof Si){for(var ee=y.linksConnected;ee.next();){var re=ee.value;if(re.fromNode===y){var oe=b.I(re);oe!==null&&(oe.fromNode=z)}re.toNode===y&&(re=b.I(re),re!==null&&(re.toNode=z))}if(y instanceof xr&&z instanceof xr)for(y=y.memberParts;y.next();)ee=d0(a,y.value,x,b,E),ee instanceof ei||ee===null||(ee.containingGroup=z)}else if(y instanceof ei&&z instanceof ei)for(ee=y.fromNode,ee!==null&&(ee=b.I(ee),ee!==null&&(z.fromNode=ee)),ee=y.toNode,ee!==null&&(ee=b.I(ee),ee!==null&&(z.toNode=ee)),y=y.labelNodes;y.next();)ee=d0(a,y.value,x,b,E),ee!==null&&ee instanceof Si&&(ee.labeledLink=z);return z}To.prototype.copyPartData=function(a,y){var x=null,b=a.data;if(b!==null&&y!==null){var E=y.model;a instanceof ei||(b=E.copyNodeData(b),zt(b)&&(E.xf(b),x=y.Lc(b)))}else Ru(a),x=a.copy(),x!==null&&(E=this.H,y!==null?y.add(x):b!==null&&E!==null&&E.commandHandler!==null&&E.commandHandler.copiesClipboardData&&(y=E.model,E=null,x instanceof ei||(E=y.copyNodeData(b)),zt(E)&&(x.data=E)));return x},jt.Object.defineProperties(To.prototype,{nodes:{get:function(){return this.On}},links:{get:function(){return this.Dn}},parts:{get:function(){return this.Pa}},diagram:{get:function(){return this.H}},addsToTemporaryLayer:{get:function(){return this.tp},set:function(a){this.tp=a}}}),To.prototype.updateAllRelationshipsFromData=To.prototype.rp,To.prototype.findLinksByExample=To.prototype.ls,To.prototype.findNodesByExample=To.prototype.ms,To.prototype.findLinkForData=To.prototype.Kc,To.prototype.findNodeForData=To.prototype.ii,To.prototype.findPartForData=To.prototype.Lc,To.prototype.findNodeForKey=To.prototype.Vb,To.prototype.removeModeledPart=To.prototype.ip,To.prototype.removeModeledParts=To.prototype.Gs,To.prototype.rebuildParts=To.prototype.Wd;var S1=!1,x1=!1,b1=!1;To.className="PartManager";function ss(a){To.apply(this,arguments)}Wt(ss,To),ss.prototype.addAllModeledParts=function(){var a=this.diagram.model;this.addModeledParts(a.nodeDataArray),E1(this,a.linkDataArray)},ss.prototype.addModeledParts=function(a){for(To.prototype.addModeledParts.call(this,a,!1),a=this.links.iterator;a.next();)tg(a.value);Of(this.diagram,!1)};function E1(a,y){y.forEach(function(x){w1(a,x)}),Of(a.diagram,!1)}function w1(a,y){if(y!=null&&!a.diagram.undoManager.isUndoingRedoing&&!a.bf.contains(y)){var x=a.getLinkCategoryForData(y),b=a.findLinkTemplateForCategory(x);if(b!==null){Ru(b);var E=b.copy();if(E!==null){b=a.diagram.skipsModelSourceBindings,a.diagram.skipsModelSourceBindings=!0,E.Tf=x,E.ub=y,x=a.diagram.model;var z=p0(x,y,!0);z!==""&&(E.fromPortId=z),z=su(x,y,!0),z!==void 0&&(z=a.Vb(z),z instanceof Si&&(E.fromNode=z)),z=p0(x,y,!1),z!==""&&(E.toPortId=z),z=su(x,y,!1),z!==void 0&&(z=a.Vb(z),z instanceof Si&&(E.toNode=z)),x=x.Ef(y),Array.isArray(x)&&x.forEach(function(ee){ee=a.Vb(ee),ee!==null&&(ee.labeledLink=E)}),a.tp&&(E.Jg="Tool"),a.diagram.add(E),E.ub=null,E.data=y,a.diagram.skipsModelSourceBindings=b}}}}ss.prototype.removeAllModeledParts=function(){var a=this.diagram.model;C1(this,a.linkDataArray),this.Gs(a.nodeDataArray)};function C1(a,y){y.forEach(function(x){a.ip(x)})}ss.prototype.getLinkCategoryForData=function(a){return this.diagram.model.ps(a)},ss.prototype.setLinkCategoryForData=function(a,y){return this.diagram.model.lp(a,y)},ss.prototype.setFromNodeForLink=function(a,y){var x=this.diagram.model;x.wv(a.data,x.wa(y!==null?y.data:null))},ss.prototype.setToNodeForLink=function(a,y){var x=this.diagram.model;x.Bv(a.data,x.wa(y!==null?y.data:null))},ss.prototype.removeDataForLink=function(a){this.diagram.model.bm(a.data)},ss.prototype.findPartForKey=function(a){var y=To.prototype.findPartForKey.call(this,a);return y===null&&(a=this.diagram.model.jh(a),a!==null)?this.bf.I(a):y},ss.prototype.findLinkForKey=function(a){return a==null?null:(a=this.diagram.model.jh(a),a!==null?this.bf.I(a):null)},ss.prototype.doModelChanged=function(a){var y=this;if(To.prototype.doModelChanged.call(this,a),this.diagram){var x=this.diagram;if(a.model===x.model){var b=a.change;if(x.aa){x.aa=!1;try{var E=a.modelChange;if(E!==""){if(b===Wo){if(E==="linkFromKey"){var z=this.Kc(a.object);if(z!==null){var ee=this.Vb(a.newValue);z.fromNode=ee}}else if(E==="linkToKey"){var re=this.Kc(a.object);if(re!==null){var oe=this.Vb(a.newValue);re.toNode=oe}}else if(E==="linkFromPortId"){var de=this.Kc(a.object);if(de!==null){var fe=a.newValue;typeof fe=="string"&&(de.fromPortId=fe)}}else if(E==="linkToPortId"){var ye=this.Kc(a.object);if(ye!==null){var Ce=a.newValue;typeof Ce=="string"&&(ye.toPortId=Ce)}}else if(E==="nodeGroupKey"){var Ne=this.Lc(a.object);if(Ne!==null){var Oe=a.newValue;if(Oe!==void 0){var Ve=this.Vb(Oe);Ve instanceof xr?Ne.containingGroup=Ve:Ne.containingGroup=null}else Ne.containingGroup=null}}else if(E==="linkLabelKeys"){var ft=this.Kc(a.object);if(ft!==null){var lt=a.oldValue,mt=a.newValue;Array.isArray(lt)&<.forEach(function(Nn){0<=mt.indexOf(Nn)||(Nn=y.Vb(Nn),Nn!==null&&(Nn.labeledLink=null))}),Array.isArray(mt)&&mt.forEach(function(Nn){Nn=y.Vb(Nn),Nn!==null&&(Nn.labeledLink=ft)})}}else if(E==="linkCategory"){var St=this.Kc(a.object),Ct=a.newValue;St!==null&&typeof Ct=="string"&&(St.category=Ct)}else E==="linkDataArray"&&(C1(this,a.oldValue),E1(this,a.newValue));x.isModified=!0}else if(b===la){var Rt=a.newValue;if(E==="linkDataArray"&&typeof Rt=="object"&&Rt!==null)w1(this,Rt);else if(E==="linkLabelKeys"&&eh(Rt)){var $t=this.Kc(a.object),di=this.Vb(Rt);$t!==null&&di!==null&&(di.labeledLink=$t)}x.isModified=!0}else if(b===ga){var Di=a.oldValue;if(E==="linkDataArray"&&typeof Di=="object"&&Di!==null)this.ip(Di);else if(E==="linkLabelKeys"&&eh(Di)){var Li=this.Vb(Di);Li!==null&&(Li.labeledLink=null)}x.isModified=!0}}else if(b===Wo){var $n=a.propertyName;a.object!==x.model||$n!=="linkFromKeyProperty"&&$n!=="linkToKeyProperty"&&$n!=="linkFromPortIdProperty"&&$n!=="linkToPortIdProperty"&&$n!=="linkLabelKeysProperty"&&$n!=="nodeIsGroupProperty"&&$n!=="nodeGroupKeyProperty"&&$n!=="linkCategoryProperty"||x.undoManager.isUndoingRedoing||this.Wd(),x.isModified=!0}}finally{x.aa=!0}}}}},ss.prototype.refreshDataBoundLinks=function(){var a=this,y=this.diagram.model,x=new Bn,b=y.linkDataArray;b.forEach(function(z){x.add(z)});var E=[];this.links.each(function(z){z.data===null||x.contains(z.data)||E.push(z.data)}),E.forEach(function(z){F1(y,z,!1)}),b.forEach(function(z){a.Kc(z)===null&&D1(y,z,!1)})},ss.prototype.updateRelationshipsFromData=function(a){var y=a.data;if(y!==null){var x=a.diagram;if(x!==null){var b=x.model;if(a instanceof ei){var E=su(b,y,!0);if(E=x.Vb(E),a.fromNode=E,E=su(b,y,!1),E=x.Vb(E),a.toNode=E,y=b.Ef(y),0<y.length||0<a.labelNodes.count){if(y.length===1&&a.labelNodes.count===1){E=y[0];var z=a.labelNodes.first();if(b.wa(z.data)===E)return}E=new Bn().addAll(y);var ee=new Bn;a.labelNodes.each(function(re){re.data!==null&&(re=b.wa(re.data),re!==void 0&&ee.add(re))}),y=ee.copy(),y.hp(E),E=E.copy(),E.hp(ee),(0<y.count||0<E.count)&&(y.each(function(re){re=x.Vb(re),re!==null&&re.labeledLink===a&&(re.labeledLink=null)}),E.each(function(re){re=x.Vb(re),re!==null&&re.labeledLink!==a&&(re.labeledLink=a)}))}}else!(a instanceof lo)&&(y=b.lh(y),y=x.findPartForKey(y),y===null||y instanceof xr)&&(a.containingGroup=y)}}},ss.prototype.resolveReferencesForData=function(a){var y=this.diagram.model,x=y.wa(a);if(x!==void 0){var b=Cp(y,x),E=this.Lc(a);if(b!==null&&E!==null){b=b.iterator;for(var z={};b.next();){var ee=b.value;y.lb(ee)?E instanceof xr&&y.lh(ee)===x&&(ee=this.Lc(ee),ee!==null&&(ee.containingGroup=E)):(z.link=this.Kc(ee),z.link!==null&&E instanceof Si&&(su(y,ee,!0)===x&&(z.link.fromNode=E),su(y,ee,!1)===x&&(z.link.toNode=E),ee=y.Ef(ee),Array.isArray(ee)&&ee.some(function(re){return function(oe){return oe===x?(E.labeledLink=re.link,!0):!1}}(z)))),z={link:z.link}}fc(y,x)}a=y.lh(a),a!==void 0&&(a=this.Vb(a),a instanceof xr&&(E.containingGroup=a))}},ss.prototype.unresolveReferencesForPart=function(a){var y=this.diagram.model;if(a instanceof Si){var x=y.wa(a.data);if(x!==void 0){for(var b=a.linksConnected;b.next();)hc(y,x,b.value.data);if(a.isLinkLabel&&(b=a.labeledLink,b!==null&&hc(y,x,b.data)),a instanceof xr)for(a=a.memberParts;a.next();)b=a.value.data,y.lb(b)&&hc(y,x,b)}}},ss.prototype.copyPartData=function(a,y){var x=To.prototype.copyPartData.call(this,a,y);if(a instanceof ei)if(a=a.data,a!==null&&y!==null){var b=y.model;a=b.Jo(a),typeof a=="object"&&a!==null&&(b.fi(a),x=y.Kc(a))}else x!==null&&(y=this.diagram,a!==null&&y!==null&&y.commandHandler!==null&&y.commandHandler.copiesClipboardData&&(y=y.model.Jo(a),typeof y=="object"&&y!==null&&(x.data=y)));return x},ss.prototype.insertLink=function(a,y,x,b){var E=this.diagram,z=E.model,ee=E.toolManager.findTool("Linking"),re="";if(a!==null&&(y===null&&(y=a),re=y.portId,re===null&&(re="")),y="",x!==null&&(b===null&&(b=x),y=b.portId,y===null&&(y="")),b=ee.archetypeLinkData,b instanceof ei){if(Ru(b),z=b.copy(),z!==null)return z.fromNode=a,z.fromPortId=re,z.toNode=x,z.toPortId=y,E.add(z),a=ee.archetypeLabelNodeData,a instanceof Si&&(Ru(a),a=a.copy(),a!==null&&(a.labeledLink=z,E.add(a))),z}else if(b!==null&&(b=z.Jo(b),typeof b=="object"&&b!==null))return a!==null&&sg(z,b,z.wa(a.data),!0),lg(z,b,re,!0),x!==null&&sg(z,b,z.wa(x.data),!1),lg(z,b,y,!1),z.fi(b),a=ee.archetypeLabelNodeData,a===null||a instanceof Si||(a=z.copyNodeData(a),typeof a=="object"&&a!==null&&(z.xf(a),a=z.wa(a),a!==void 0&&z.Bu(b,a))),E.Kc(b);return null},ss.prototype.findLinkForKey=ss.prototype.findLinkForKey,ss.prototype.findPartForKey=ss.prototype.findPartForKey,ss.prototype.removeAllModeledParts=ss.prototype.removeAllModeledParts,ss.prototype.addModeledParts=ss.prototype.addModeledParts,ss.prototype.addAllModeledParts=ss.prototype.addAllModeledParts,ss.className="GraphLinksPartManager";function xu(){To.apply(this,arguments),this.Sg=null}Wt(xu,To);function h0(a,y,x){if(y!==null&&x!==null&&x.kh()===null){var b=a.diagram.toolManager.findTool("Linking"),E=y,z=x;if(a.diagram.isTreePathToChildren||(E=x,z=y),(b===null||!Ns(b,E,z,null,!0))&&(y=a.getLinkCategoryForData(x.data),b=a.findLinkTemplateForCategory(y),b!==null&&(Ru(b),b=b.copy(),b!==null))){var ee=a.diagram.skipsModelSourceBindings;a.diagram.skipsModelSourceBindings=!0,b.Tf=y,b.ub=x.data,b.fromNode=E,b.toNode=z,a.diagram.add(b),b.ub=null,b.data=x.data,a.diagram.skipsModelSourceBindings=ee}}}xu.prototype.getLinkCategoryForData=function(a){return this.diagram.model.ss(a)},xu.prototype.setLinkCategoryForData=function(a,y){this.diagram.model.Ms(a,y)},xu.prototype.setFromNodeForLink=function(a,y,x){var b=this.diagram.model;if(x===void 0&&(x=null),y=y!==null?y.data:null,this.diagram.isTreePathToChildren)b.qe(a.data,b.wa(y));else{var E=this.Sg;this.Sg=a,x!==null&&b.qe(x.data,void 0),b.qe(y,b.wa(a.toNode!==null?a.toNode.data:null)),this.Sg=E}},xu.prototype.setToNodeForLink=function(a,y,x){var b=this.diagram.model;if(x===void 0&&(x=null),y=y!==null?y.data:null,this.diagram.isTreePathToChildren){var E=this.Sg;this.Sg=a,x!==null&&b.qe(x.data,void 0),b.qe(y,b.wa(a.fromNode!==null?a.fromNode.data:null)),this.Sg=E}else b.qe(a.data,b.wa(y))},xu.prototype.removeDataForLink=function(a){this.diagram.model.qe(a.data,void 0)},xu.prototype.findLinkForKey=function(a){return a==null?null:(a=this.diagram.model.hc(a),a!==null?this.bf.I(a):null)},xu.prototype.doModelChanged=function(a){if(To.prototype.doModelChanged.call(this,a),this.diagram){var y=this.diagram;if(a.model===y.model){var x=a.change;if(y.aa){y.aa=!1;try{var b=a.modelChange;if(b!==""){if(x===Wo){if(b==="nodeParentKey"){var E=a.object,z=this.Vb(a.newValue),ee=this.ii(E);if(this.Sg!==null)z!==null&&(this.Sg.data=E,this.Sg.category=this.getLinkCategoryForData(E));else if(ee!==null){var re=ee.kh();re!==null?z===null?y.remove(re):y.isTreePathToChildren?re.fromNode=z:re.toNode=z:h0(this,z,ee)}}else if(b==="parentLinkCategory"){var oe=this.ii(a.object),de=a.newValue;if(oe!==null&&typeof de=="string"){var fe=oe.kh();fe!==null&&(fe.category=de)}}y.isModified=!0}}else if(x===Wo){var ye=a.propertyName;a.object===y.model&&ye==="nodeParentKeyProperty"&&(y.undoManager.isUndoingRedoing||this.Wd()),y.isModified=!0}}finally{y.aa=!0}}}}},xu.prototype.updateRelationshipsFromData=function(a){var y=a.data;if(y!==null){var x=a.diagram;if(x!==null){var b=x.model;a instanceof Si&&(y=b.mh(y),y=x.Vb(y),b=a.pg(),y!==b&&(b=a.kh(),y!==null?b!==null?x.isTreePathToChildren?b.fromNode=y:b.toNode=y:h0(this,y,a):b!==null&&Bg(x,b,!1)))}}},xu.prototype.updateDataBindings=function(a,y){To.prototype.updateDataBindings.call(this,a,y),typeof y=="string"&&this.Lc(a)!==null&&(a=this.Kc(a),a!==null&&a.La(y))},xu.prototype.resolveReferencesForData=function(a){var y=this.diagram.model,x=y.wa(a);if(x!==void 0){var b=Cp(y,x),E=this.Lc(a);if(b!==null&&E!==null){for(b=b.iterator;b.next();){var z=b.value;y.lb(z)&&E instanceof Si&&y.mh(z)===x&&h0(this,E,this.ii(z))}fc(y,x)}a=y.mh(a),a!==void 0&&E instanceof Si&&(a=this.Vb(a),h0(this,a,E))}},xu.prototype.unresolveReferencesForPart=function(a){var y=this.diagram.model;if(a instanceof Si){var x=y.wa(a.data),b=this.Kc(a.data);if(b!==null){b.isSelected=!1,b.isHighlighted=!1;var E=b.layer;if(E!==null){var z=E.pc(-1,b,!1);0<=z&&this.diagram.cb(ga,"parts",E,b,null,z,null),z=b.layerChanged,z!==null&&z(b,E,null)}}for(b=this.diagram.isTreePathToChildren,a=a.linksConnected;a.next();)E=a.value,E=(b?E.toNode:E.fromNode).data,y.lb(E)&&hc(y,x,E)}},xu.prototype.insertLink=function(a,y,x){y=this.diagram.model;var b=a,E=x;return this.diagram.isTreePathToChildren||(b=x,E=a),b!==null&&E!==null?(y.qe(E.data,y.wa(b.data)),E.kh()):null},xu.prototype.findLinkForKey=xu.prototype.findLinkForKey,xu.className="TreePartManager";function Hi(a,y){this.kl=new Bn,this.il=new Bn,this.Wv=`,
|
|
|
"insertedNodeKeys": `,this.jy=`,
|
|
|
"modifiedNodeData": `,this.Yv=`,
|
|
|
"removedNodeKeys": `,this.vh=null,qi(this),this.Sm=this.xa="",this.Gg=!1,this.j={},this.Tc=[],this.kb=new an,this.Th="key",this.Bk=this.bl=null,this.Jm=this.Km=!1,this.Mm=!0,this.xm=null,this.lj="category",this.Vf=new an,this.Lt=new Dn,this.Wg=!1,this.o=null,this.undoManager=new Bo,a!==void 0&&(wn(a)?this.nodeDataArray=a:y=a),y&&(Object.assign(this,y),a=y.Changed)&&(delete this.Changed,this.Pe(a))}Hi.prototype.cloneProtected=function(a){a.xa=this.xa,a.Sm=this.Sm,a.Gg=this.Gg,a.Th=this.Th,a.bl=this.bl,a.Bk=this.Bk,a.Km=this.Km,a.Jm=this.Jm,a.Mm=this.Mm,a.xm=this.xm,a.lj=this.lj},Hi.prototype.copy=function(){var a=new this.constructor;return this.cloneProtected(a),a},Hi.prototype.clear=function(){this.Tc=[],this.kb.clear(),this.Vf.clear(),this.undoManager.clear()},Hi.prototype.toString=function(a){if(a===void 0&&(a=0),1<a)return this.np();var y=(this.name!==""?this.name:"")+" Model";if(0<a){y+=`
|
|
|
node data:`,a=this.nodeDataArray;for(var x=a.length,b=0;b<x;b++){var E=a[b];y+=" "+this.wa(E)+":"+Ki(E)}}return y},Hi.prototype.xA=function(a){a.change!==ds&&vt("Model.toIncrementalData argument is not a Transaction ChangedEvent:"+a.toString());var y=a.object;return a.isTransactionFinished&&y instanceof Ea?(A1(this,y),a=this.Qv(y,a.propertyName==="FinishedUndo"),this.vh=null,a):null},Hi.prototype.Qv=function(a,y){var x=this,b=!1,E=new Bn,z=new Bn,ee=new Bn,re=this.vh;a.changes.each(function(ye){ye.model===x&&(ye.modelChange==="nodeDataArray"?ye.change===la?E.add(ye.newValue):ye.change===ga&&ee.add(ye.oldValue):x.lb(ye.object)?z.add(ye.object):ye.change!==Wo||x.modelData!==ye.object&&ye.propertyName!=="modelData"?ye.object!==null&&(re&&re.contains(ye.object)?re.get(ye.object).each(function(Ce){x.lb(Ce)&&z.add(Ce)}):ye.object instanceof Hi||x.ri()&&x.Jc(ye.object)||P1(x,ye.object).each(function(Ce){z.add(Ce)})):b=!0)});var oe=this.il;oe.clear(),E.each(function(ye){oe.add(x.wa(ye)),y||z.add(ye)});var de=this.kl;de.clear(),ee.each(function(ye){de.add(x.wa(ye)),y&&z.add(ye)}),a=x.cloneDeep(z.Fa());var fe=null;return b&&(fe===null&&(fe={}),fe.modelData=this.cloneDeep(this.modelData)),0<oe.count&&(fe===null&&(fe={}),y?fe.removedNodeKeys=oe.Fa():fe.insertedNodeKeys=oe.Fa()),0<a.length&&(fe===null&&(fe={}),fe.modifiedNodeData=a),0<de.count&&(fe===null&&(fe={}),y?fe.insertedNodeKeys=de.Fa():fe.removedNodeKeys=de.Fa()),de.clear(),oe.clear(),fe},Hi.prototype.cloneDeep=function(a){return ag(this,a,!0)};function ag(a,y,x,b,E,z){function ee(ye,Ce){re?(ye.__gohashid===void 0&&z.push(ye),b.set(ye,Ce)):(ye=xo++,b.set(ye,Ce),E.set(ye,y))}if(!zt(y))return y;z||(z=[]);var re=Object.isExtensible(y);if(b||(b=new an),re){var oe=b.get(y);if(oe)return oe}else for(E||(E=new an),oe=E.iterator;oe.next();){var de=oe.key;if(oe.value===y&&(de=b.get(de)))return de}if(Array.isArray(y)){oe=[],ee(y,oe);for(var fe=0;fe<y.length;fe++)oe.push(ag(a,y[fe],!1,b,E,z))}else if(y instanceof Je||y instanceof Ln||y instanceof tn||y instanceof pr||y instanceof Ut)oe=y.copy(),ee(y,oe);else{if(y instanceof Co||y instanceof Jn||y instanceof mn)return y;if(y instanceof Dn)oe=new Dn().addAll(ag(a,y.Fa(),!1,b,E,z)),ee(y,oe);else if(y instanceof Bn)oe=new Bn().addAll(ag(a,y.Fa(),!1,b,E,z)),ee(y,oe);else if(y instanceof an)oe=new an().addAll(ag(a,y.Fa(),!1,b,E,z)),ee(y,oe);else if(y instanceof Date)oe=new Date(y.getTime()),ee(y,oe);else if(y instanceof RegExp)oe=new RegExp(y),ee(y,oe),oe.lastIndex=y.lastIndex;else if(typeof y.copy=="function")oe=y.copy(),ee(y,oe);else for(fe in oe={},ee(y,oe),y)fe!=="__gohashid"&&(oe[fe]=ag(a,y[fe],!1,b,E,z))}return x&&z.forEach(function(ye){delete ye.__gohashid}),oe}Ie=Hi.prototype,Ie.quote=function(a){return JSON.stringify(a).replace(/[\u007F-\uFFFF]/g,function(y){return"\\u"+("0000"+y.charCodeAt(0).toString(16)).substr(-4)})},Ie.rm=function(){var a="";return this.name!==""&&(a+=`,
|
|
|
"name": `+this.quote(this.name)),this.dataFormat!==""&&(a+=`,
|
|
|
"dataFormat": `+this.quote(this.dataFormat)),this.isReadOnly&&(a+=`,
|
|
|
"isReadOnly": `+this.isReadOnly),this.nodeKeyProperty!=="key"&&typeof this.nodeKeyProperty=="string"&&(a+=`,
|
|
|
"nodeKeyProperty": `+this.quote(this.nodeKeyProperty)),this.copiesArrays&&(a+=`,
|
|
|
"copiesArrays": true`),this.copiesArrayObjects&&(a+=`,
|
|
|
"copiesArrayObjects": true`),this.copiesKey||(a+=`,
|
|
|
"copiesKey": false`),this.nodeCategoryProperty!=="category"&&typeof this.nodeCategoryProperty=="string"&&(a+=`,
|
|
|
"nodeCategoryProperty": `+this.quote(this.nodeCategoryProperty)),a},Ie.gp=function(a){a.name&&(this.name=a.name),a.dataFormat&&(this.dataFormat=a.dataFormat),a.isReadOnly&&(this.isReadOnly=!0),a.nodeKeyProperty&&(this.nodeKeyProperty=a.nodeKeyProperty),a.copiesArrays&&(this.copiesArrays=!0),a.copiesArrayObjects&&(this.copiesArrayObjects=!0),a.copiesKey===!1&&(this.copiesKey=!1),a.nodeCategoryProperty&&(this.nodeCategoryProperty=a.nodeCategoryProperty)};function T1(a,y){y=y.modelData,zt(y)&&(a.dm(y),a.modelData=y)}Ie.Rv=function(){var a=this.modelData,y=!1,x;for(x in a)if(!N1(x,a[x])){y=!0;break}return a="",y&&(a=`,
|
|
|
"modelData": `+hy(this,this.modelData)),a+`,
|
|
|
"nodeDataArray": `+$d(this,this.nodeDataArray,!0)},Ie.kv=function(a){T1(this,a),a=a.nodeDataArray,wn(a)&&(this.dm(a),this.nodeDataArray=a)};function A1(a,y){function x(E,z){if((z=z.part)&&(z=z.data,E!==z)){var ee=b.get(E);ee===null?(ee=new Bn,ee.add(z),b.add(E,ee)):ee.add(z)}}var b=a.vh;b===null&&(b=new an,y.changes.each(function(E){if(E.diagram!==null){var z=E.change;z===Wo?(E=E.object.panel)&&(z=E.data)&&x(z,E):(z===la||z===ga)&&(E=E.object,(z=E.itemArray)&&x(z,E))}}),a.vh=b)}function P1(a,y){for(var x=new Bn,b=0;b<a.nodeDataArray.length;b++){var E=a.nodeDataArray[b];f0(a,y,E,E,x)}return x}function f0(a,y,x,b,E){if(Array.isArray(x))for(var z=0;z<x.length;z++){var ee=x[z];if(ee===y)return E.add(b),!0;if(f0(a,y,ee,b,E))return!0}else if(zt(x)&&Object.getPrototypeOf(x)===Object.prototype)for(z in x){if(ee=x[z],ee===y)return E.add(b),!0;if(f0(a,y,ee,b,E))return!0}return!1}Ie.Pv=function(a,y){var x=this,b=!1,E=new Bn,z=new Bn,ee=new Bn,re=this.vh;a.changes.each(function(fe){fe.model===x&&(fe.modelChange==="nodeDataArray"?fe.change===la?E.add(fe.newValue):fe.change===ga&&ee.add(fe.oldValue):x.lb(fe.object)?z.add(fe.object):fe.change!==Wo||x.modelData!==fe.object&&fe.propertyName!=="modelData"?fe.object!==null&&(re&&re.contains(fe.object)?re.get(fe.object).each(function(ye){x.lb(ye)&&z.add(ye)}):fe.object instanceof Hi||x.ri()&&x.Jc(fe.object)||P1(x,fe.object).each(function(ye){z.add(ye)})):b=!0)});var oe=this.il;oe.clear(),E.each(function(fe){oe.add(x.wa(fe)),y||z.add(fe)});var de=this.kl;return de.clear(),ee.each(function(fe){de.add(x.wa(fe)),y&&z.add(fe)}),a="",b&&(a+=`,
|
|
|
"modelData": `+hy(this,this.modelData)),0<oe.count&&(a+=(y?this.Yv:this.Wv)+$d(this,oe.Fa(),!0)),0<z.count&&(a+=this.jy+$d(this,z.Fa(),!0)),0<de.count&&(a+=(y?this.Wv:this.Yv)+$d(this,de.Fa(),!0)),de.clear(),oe.clear(),a},Ie.fp=function(a){(a.name!==void 0&&a.name!==this.name||a.dataFormat!==void 0&&a.dataFormat!==this.dataFormat||a.isReadOnly!==void 0&&a.isReadOnly!==this.isReadOnly||a.nodeKeyProperty!==void 0&&a.nodeKeyProperty!==this.nodeKeyProperty||a.copiesArrays!==void 0&&a.copiesArrays!==this.copiesArrays||a.copiesArrayObjects!==void 0&&a.copiesArrayObjects!==this.copiesArrayObjects||a.copiesKey!==void 0&&a.copiesKey!==this.copiesKey||a.nodeCategoryProperty!==void 0&&a.nodeCategoryProperty!==this.nodeCategoryProperty)&&vt("applyIncrementalJson cannot change Model properties"),T1(this,a);var y=a.insertedNodeKeys,x=a.modifiedNodeData,b=new an;if(Array.isArray(x))for(var E=0;E<x.length;E++){var z=x[E],ee=this.wa(z);ee!=null&&b.set(ee,z)}if(Array.isArray(y))for(E=y.length,z=0;z<E;z++){ee=y[z];var re=this.hc(ee);re===null&&(re=(re=b.get(ee))?re:this.copyNodeData({}),this.km(re,ee),this.xf(re))}if(Array.isArray(x)){for(y=x.length,b=0;b<y;b++)if(E=x[b],z=this.wa(E),z=this.hc(z),z!==null){for(var oe in E)oe==="__gohashid"||oe===this.nodeKeyProperty||this.Wj()&&oe===this.nodeIsGroupProperty||this.setDataProperty(z,oe,E[oe]);this.lm(E,z)}}if(a=a.removedNodeKeys,Array.isArray(a))for(x=a.length,oe=0;oe<x;oe++)y=this.hc(a[oe]),y!==null&&this.cm(y)},Ie.$x=function(a,y){a.change!==ds&&vt("Model.toIncrementalJson argument is not a Transaction ChangedEvent:"+a.toString());var x=a.object;return a.isTransactionFinished&&x instanceof Ea?(y===void 0&&(y=Tp(this,this)),A1(this,x),a=this.Pv(x,a.propertyName==="FinishedUndo"),this.vh=null,y==="2"?'{ "incremental": 2'+a+"}":'{ "class": '+this.quote(y)+', "incremental": 1'+this.rm()+a+"}"):'{ "incremental": 0 }'},Ie.yA=function(a,y){return this.$x(a,y)},Ie.np=function(a){return a===void 0&&(a=Tp(this,this)),'{ "class": '+this.quote(a)+this.rm()+this.Rv()+"}"},Ie.toJSON=function(a){return this.np(a)},Ie.Zw=function(a){var y=null;if(typeof a=="string")try{y=In.JSON.parse(a)}catch(b){}else typeof a=="object"?y=a:vt("Unable to modify a Model from: "+a);var x=y.incremental;typeof x!="number"&&vt("Unable to apply non-incremental changes to Model: "+a),x!==0&&(this.Ea("applyIncrementalJson"),this.fp(y),this.eb("applyIncrementalJson"))},Ie.Ky=function(a){return this.Zw(a)},Hi.constructGraphLinksModel=function(){return new Hi},Ie=Hi.prototype,Ie.dm=function(a){if(wn(a))for(var y=a.length,x=0;x<y;x++){var b=a[x];if(zt(b)){var E=x;b=this.dm(b),Array.isArray(a)?a[E]=b:vt("Cannot replace an object in an HTMLCollection or NodeList at "+E)}}else if(zt(a)){for(y in a)if(x=a[y],zt(x)&&(x=this.dm(x),a[y]=x,y==="points"&&Array.isArray(x))){for(E=x.length%2===0,b=0;b<x.length;b++)if(typeof x[b]!="number"){E=!1;break}if(E){for(E=new Dn,b=0;b<x.length/2;b++)E.add(new Je(x[2*b],x[2*b+1]));E.freeze(),a[y]=E}}return Hx(a)}return a},Ie.sm=function(a){return a===void 0?"undefined":a===null?"null":a===!0?"true":a===!1?"false":typeof a=="string"?this.quote(a):typeof a=="number"?a===1/0?"9e9999":a===-1/0?"-9e9999":isNaN(a)?'{"class":"NaN"}':a.toString():a instanceof Date?'{"class":"Date", "value":"'+a.toJSON()+'"}':a instanceof Number?this.sm(a.valueOf()):wn(a)?$d(this,a):zt(a)?hy(this,a):typeof a=="function"?"null":a.toString()};function $d(a,y,x){x===void 0&&(x=!1);var b=y.length;if(0>=b)return"[]";var E=new _i;E.add("["),x&&1<b&&E.add(`
|
|
|
`);for(var z=0;z<b;z++){var ee=y[z];ee!==void 0&&(0<z&&(E.add(","),x&&E.add(`
|
|
|
`)),E.add(a.sm(ee)))}return x&&1<b&&E.add(`
|
|
|
`),E.add("]"),E.toString()}function N1(a,y){return y===void 0||a==="__gohashid"||a[0]==="_"||typeof y=="function"}function ul(a){return isNaN(a)?"NaN":a===1/0?"9e9999":a===-1/0?"-9e9999":a}function hy(a,y){var x=y;if(x instanceof Je)y={class:"go.Point",x:ul(x.x),y:ul(x.y)};else if(x instanceof Ln)y={class:"go.Size",width:ul(x.width),height:ul(x.height)};else if(x instanceof tn)y={class:"go.Rect",x:ul(x.x),y:ul(x.y),width:ul(x.width),height:ul(x.height)};else if(x instanceof pr)y={class:"go.Margin",top:ul(x.top),right:ul(x.right),bottom:ul(x.bottom),left:ul(x.left)};else if(x instanceof Ut)x.sb()?y={class:"go.Spot",x:ul(x.x),y:ul(x.y),offsetX:ul(x.offsetX),offsetY:ul(x.offsetY)}:y={class:"go.Spot",enum:x.toString()};else if(x instanceof Co){if(y={class:"go.Brush",type:x.type.name},x.type===xd?y.color=x.color:(x.type===td||x.type===yu)&&(y.start=x.start,y.end=x.end,x.type===yu&&(x.startRadius!==0&&(y.startRadius=ul(x.startRadius)),isNaN(x.endRadius)||(y.endRadius=ul(x.endRadius)))),x.colorStops!==null){var b={};for(x=x.colorStops.iterator;x.next();)b[x.key]=x.value;y.colorStops=b}}else x instanceof Jn?(y={class:"go.Geometry",type:x.type.name},x.startX!==0&&(y.startX=ul(x.startX)),x.startY!==0&&(y.startY=ul(x.startY)),x.endX!==0&&(y.endX=ul(x.endX)),x.endY!==0&&(y.endY=ul(x.endY)),x.spot1.D(Qi)||(y.spot1=x.spot1),x.spot2.D(ho)||(y.spot2=x.spot2),x.type===Jn.o&&(y.path=Jn.ia(x))):x instanceof mn&&(y={class:"go.EnumValue",classType:Tp(a,x.classType),name:x.name});b="{",x=!0;for(var E in y){var z=Na(y,E);if(!N1(E,z))if(x?x=!1:b+=",",b+=a.quote(E)+":",E==="points"&&z instanceof Dn){var ee="[";for(z=z.iterator;z.next();){var re=z.value;1<ee.length&&(ee+=","),ee+=a.sm(re.x),ee+=",",ee+=a.sm(re.y)}ee+="]",b+=ee}else b+=a.sm(z)}return b+"}"}function cl(a){return typeof a=="number"?a:a==="NaN"?NaN:a==="9e9999"?1/0:a==="-9e9999"?-1/0:parseFloat(a)}function Hx(a){if(typeof a!="object")return a;var y=a.class||"";if(y==="NaN")return NaN;if(y==="Date")return new Date(a.value);if(y.indexOf("go.")!==0)return a;y=y.substr(3);var x=a;if(y==="Point")x=new Je(cl(a.x),cl(a.y));else if(y==="Size")x=new Ln(cl(a.width),cl(a.height));else if(y==="Rect")x=new tn(cl(a.x),cl(a.y),cl(a.width),cl(a.height));else if(y==="Margin")x=new pr(cl(a.top),cl(a.right),cl(a.bottom),cl(a.left));else if(y==="Spot")typeof a.enum=="string"?x=Qa(a.enum):x=new Ut(cl(a.x),cl(a.y),cl(a.offsetX),cl(a.offsetY));else if(y==="Brush"){if(x=new Co,x.type=wi(Co,a.type),typeof a.color=="string"&&(x.color=a.color),a.start instanceof Ut&&(x.start=a.start),a.end instanceof Ut&&(x.end=a.end),typeof a.startRadius=="number"&&(x.startRadius=cl(a.startRadius)),typeof a.endRadius=="number"&&(x.endRadius=cl(a.endRadius)),a=a.colorStops,zt(a))for(var b in a)x.addColorStop(parseFloat(b),a[b])}else y==="Geometry"?(x=null,typeof a.path=="string"?x=Jn.parse(a.path):x=new Jn,x.type=wi(Jn,a.type),typeof a.startX=="number"&&(x.startX=cl(a.startX)),typeof a.startY=="number"&&(x.startY=cl(a.startY)),typeof a.endX=="number"&&(x.endX=cl(a.endX)),typeof a.endY=="number"&&(x.endY=cl(a.endY)),a.spot1 instanceof Ut&&(x.spot1=a.spot1),a.spot2 instanceof Ut&&(x.spot2=a.spot2)):y==="EnumValue"&&(b=a.classType,b.indexOf("go.")===0&&(b=b.substr(3)),b=gy(b),typeof b=="function"&&(x=wi(b,a.name)));return x}Ie.Pe=function(a){return this.Lt.add(a),this},Ie.ik=function(a){this.Lt.remove(a)},Ie.ds=function(a){this.skipsUndoManager||this.undoManager.Tu(a);for(var y=this.Lt,x=y.length,b=0;b<x;b++)y.M(b)(a)},Ie.cb=function(a,y,x,b,E,z,ee){ja(this,"",a,y,x,b,E,z,ee)},Ie.g=function(a,y,x,b,E){ja(this,"",Wo,a,this,y,x,b,E)},Ie.Fs=function(a,y,x,b,E,z){ja(this,"",Wo,y,a,x,b,E,z)};function ja(a,y,x,b,E,z,ee,re,oe){re===void 0&&(re=null),oe===void 0&&(oe=null);var de=new qo;de.model=a,de.change=x,de.modelChange=y,de.propertyName=b,de.object=E,de.oldValue=z,de.oldParam=re,de.newValue=ee,de.newParam=oe,a.ds(de)}Hi.prototype.changeState=function(a,y){if(a!==null&&a.model===this)if(a.change===Wo){var x=a.object,b=a.propertyName,E=a.I(y);b===this.nodeKeyProperty&&this.lb(x)&&(y=a.I(!y),y!==void 0&&this.kb.remove(y),E!==void 0&&this.kb.add(E,x)),oa(x,b,E)}else a.change===la?(x=a.newParam,a.modelChange==="nodeDataArray"?(a=a.newValue,zt(a)&&typeof x=="number"&&(b=this.wa(a),y?(this.Tc[x]===a&&Be(this.Tc,x),b!==void 0&&this.kb.remove(b)):(this.Tc[x]!==a&&qt(this.Tc,x,a),b!==void 0&&this.kb.add(b,a)))):a.modelChange===""?((b=a.object)&&!wn(b)&&a.propertyName&&(b=Na(a.object,a.propertyName)),wn(b)&&typeof x=="number"&&(a=a.newValue,y?Be(b,x):qt(b,x,a))):vt("unknown ChangedEvent.Insert modelChange: "+a.toString())):a.change===ga?(x=a.oldParam,a.modelChange==="nodeDataArray"?(a=a.oldValue,zt(a)&&typeof x=="number"&&(b=this.wa(a),y?(this.Tc[x]!==a&&qt(this.Tc,x,a),b!==void 0&&this.kb.add(b,a)):(this.Tc[x]===a&&Be(this.Tc,x),b!==void 0&&this.kb.remove(b)))):a.modelChange===""?((b=a.object)&&!wn(b)&&a.propertyName&&(b=Na(a.object,a.propertyName)),wn(b)&&typeof x=="number"&&(a=a.oldValue,y?qt(b,x,a):Be(b,x))):vt("unknown ChangedEvent.Remove modelChange: "+a.toString())):a.change!==ds&&vt("unknown ChangedEvent: "+a.toString())},Hi.prototype.Ea=function(a){return this.undoManager.Ea(a)},Hi.prototype.eb=function(a){return this.undoManager.eb(a)},Hi.prototype.Kf=function(){return this.undoManager.Kf()},Hi.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}},Ie=Hi.prototype,Ie.La=function(a,y){y===void 0&&(y=""),ja(this,"SourceChanged",ds,y,a,null,null)},Ie.wa=function(a){if(a!==null){var y=this.Th;if(y!==""&&(y=Na(a,y),y!==void 0)){if(eh(y))return y;vt("Key value for node data "+a+" is not a number or a string: "+y)}}},Ie.km=function(a,y){if(a!==null){var x=this.Th;if(x!=="")if(this.lb(a)){var b=Na(a,x);b!==y&&this.hc(y)===null&&(oa(a,x,y),b!==void 0&&this.kb.remove(b),this.kb.add(y,a),ja(this,"nodeKey",Wo,x,a,b,y),typeof x=="string"&&this.La(a,x),this.jp(b,y))}else oa(a,x,y)}};function eh(a){return typeof a=="number"||typeof a=="string"}Ie.lb=function(a){var y=this.wa(a);return y===void 0?!1:this.kb.I(y)===a},Ie.hc=function(a){return a===null&&vt("Model.findNodeDataForKey:key must not be null"),a!==void 0&&eh(a)?this.kb.I(a):null},Ie.$u=function(a){if(a!==null){var y=this.Th;if(y!==""){var x=this.wa(a);if(x===void 0||this.kb.contains(x)){var b=this.bl;if(b!==null&&(x=b(this,a),x!=null&&!this.kb.contains(x))){oa(a,y,x);return}if(typeof x=="string"){for(b=2;this.kb.contains(x+b);)b++;oa(a,y,x+b)}else if(x===void 0||typeof x=="number"){for(x=-this.kb.count-1;this.kb.contains(x);)x--;oa(a,y,x)}}}}},Ie.xf=function(a){a!==null&&(ur(a),this.lb(a)||k1(this,a,!0))};function k1(a,y,x){var b=a.wa(y);(b===void 0||a.kb.I(b)!==y)&&(a.$u(y),b=a.wa(y),b===void 0&&vt("Model.makeNodeDataKeyUnique failed on "+y+". Data not added to Model."),a.kb.add(b,y),b=null,x&&(b=a.Tc.length,qt(a.Tc,b,y)),ja(a,"nodeDataArray",la,"nodeDataArray",a,null,y,null,b),a.fm(y),a.em(y))}Ie.Fy=function(a){if(wn(a))for(var y=a.length,x=0;x<y;x++)this.xf(a[x]);else for(a=a.iterator;a.next();)this.xf(a.value)},Ie.cm=function(a){a!==null&&L1(this,a,!0)};function L1(a,y,x){var b=a.wa(y);if(b!==void 0&&a.kb.remove(b),b=null,x){e:if(x=a.Tc,Array.isArray(x))b=x.indexOf(y);else{b=x.length;for(var E=0;E<b;E++)if(x[E]===y){b=E;break e}b=-1}if(0>b)return;Be(a.Tc,b)}ja(a,"nodeDataArray",ga,"nodeDataArray",a,y,null,b,null),a.qp(y)}Ie.nA=function(a){if(wn(a))for(var y=a.length,x=0;x<y;x++)this.cm(a[x]);else for(a=a.iterator;a.next();)this.cm(a.value)},Ie.$z=function(a){if(a!==this.nodeDataArray&&wn(a)){var y=this.kl;y.clear(),y.addAll(this.kb.iteratorKeys);var x=this.il;x.clear();for(var b=a.length,E=0;E<b;E++){var z=a[E],ee=this.wa(z);if(ee!==void 0){x.add(ee);var re=this.hc(ee);re!==z&&(re!==null?(this.Do(re,z),this.lm(z,re)):(z=this.cloneDeep(z),this.km(z,ee),this.xf(z)))}else ee=this.cloneDeep(z),this.xf(ee),x.add(this.wa(ee))}for(a=y.iterator;a.next();)b=a.value,x.contains(b)||(b=this.hc(b))&&this.cm(b);y.clear(),x.clear()}},Ie.jp=function(a,y){y!==void 0&&(a=Cp(this,a),a instanceof Bn&&this.Vf.add(y,a))},Ie.Lv=function(){},Ie.fm=function(){},Ie.em=function(){},Ie.qp=function(){};function hc(a,y,x){if(y!==void 0){var b=a.Vf.I(y);b===null&&(b=new Bn,a.Vf.add(y,b)),b.add(x)}}function fc(a,y,x){if(y!==void 0){var b=a.Vf.I(y);b instanceof Bn&&(x==null?a.Vf.remove(y):(b.remove(x),b.count===0&&a.Vf.remove(y)))}}function Cp(a,y){return y===void 0?null:(a=a.Vf.I(y),a instanceof Bn?a:null)}Ie.Qy=function(a){a===void 0?this.Vf.clear():this.Vf.remove(a)},Hi.prototype.copyNodeData=function(a){if(a===null)return null;var y=this.Bk;return a=y!==null?y(a,this):g0(this,a,!0),zt(a)&&qi(a),a};function g0(a,y,x){if(a.copiesArrays&&Array.isArray(y)){var b=[];for(x=0;x<y.length;x++){var E=g0(a,y[x],a.copiesArrayObjects);b.push(E)}return qi(b),b}if(x&&zt(y)){x=(x=y.constructor)?new x:{},E=a.copiesKey||typeof a.nodeKeyProperty!="string"?null:a.nodeKeyProperty;for(b in y)if(b==="__gohashid")x.__gohashid=void 0;else if(b===E)x[E]=void 0;else{var z=Na(y,b),ee=Tp(a,z);ee==="GraphObject"||ee==="Diagram"||ee==="Layer"||ee==="RowColumnDefinition"||ee==="AnimationManager"||ee==="Tool"||ee==="CommandHandler"||ee==="Layout"||ee==="InputEvent"||ee==="DiagramEvent"||z instanceof Hi||z instanceof Bo||z instanceof Ea||z instanceof qo||(z=g0(a,z,!1)),oa(x,b,z)}return qi(x),x}return y instanceof Je||y instanceof Ln||y instanceof tn||y instanceof Ut||y instanceof pr?y.copy():y}Hi.prototype.setDataProperty=function(a,y,x){if(this.lb(a)){if(y===this.nodeKeyProperty){this.km(a,x);return}if(y===this.nodeCategoryProperty){this.jm(a,x);return}}else!I1&&a instanceof Ot&&(I1=!0,ki('Model.setDataProperty is modifying a GraphObject, "'+a.toString()+'"'),ki(" Is that really your intent?"));var b=Na(a,y);b!==x&&(oa(a,y,x),this.Fs(a,y,b,x))},Ie=Hi.prototype,Ie.set=function(a,y,x){this.setDataProperty(a,y,x)},Ie.Do=function(a,y){if(y){var x=this.lb(a),b;for(b in y)b==="__gohashid"||x&&b===this.nodeKeyProperty||this.setDataProperty(a,b,y[b])}},Ie.Ay=function(a,y){this.ts(a,-1,y)},Ie.ts=function(a,y,x){0>y&&(y=a.length),qt(a,y,x),ja(this,"",la,"",a,null,x,null,y)},Ie.ov=function(a,y){y===void 0&&(y=-1),a===this.Tc&&vt("Model.removeArrayItem should not be called on the Model.nodeDataArray"),y===-1&&(y=a.length-1);var x=a[y];Be(a,y),ja(this,"",ga,"",a,x,null,y,null)},Ie.Ro=function(a){if(a===null)return"";var y=this.lj;if(y===""||(y=Na(a,y),y===void 0))return"";if(typeof y=="string")return y;vt("getCategoryForNodeData found a non-string category for "+a+": "+y)},Ie.jm=function(a,y){if(a!==null){var x=this.lj;if(x!=="")if(this.lb(a)){var b=Na(a,x);b===void 0&&(b=""),b!==y&&(oa(a,x,y),ja(this,"nodeCategory",Wo,x,a,b,y))}else oa(a,x,y)}},Ie.lm=function(a,y){this.jm(y,this.Ro(a))},Ie.Tl=function(){return!1},Ie.Wj=function(){return!1},Ie.ri=function(){return!1},Ie.xs=function(){return!1},Ie.Xj=function(){return!1};function fy(){return new Hi}function Tp(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 Tp(a,y.constructor);return typeof y}function gy(a){return $u[a]?$u[a]:In.go!==void 0&&In.go[a]?In.go[a]:null}function Na(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 oa(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){}}jt.Object.defineProperties(Hi.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===""&&vt("Model.nodeKeyProperty may not be the empty string"),0<this.kb.count&&vt("Cannot set Model.nodeKeyProperty when there is existing node data"),this.Th=a,this.g("nodeKeyProperty",y,a))}},makeUniqueKeyFunction:{get:function(){return this.bl},set:function(a){var y=this.bl;y!==a&&(this.bl=a,this.g("makeUniqueKeyFunction",y,a))}},nodeDataArray:{get:function(){return this.Tc},set:function(a){var y=this.Tc;if(y!==a){this.kb.clear(),this.Lv();for(var x=a.length,b=0;b<x;b++){var E=a[b];zt(E)||vt("Model.nodeDataArray must only contain Objects, not: "+E),ur(E)}for(this.Tc=a,b=new Dn,E=0;E<x;E++){var z=a[E],ee=this.wa(z);ee===void 0||this.kb.I(ee)!==null?b.add(z):this.kb.add(ee,z)}for(b=b.iterator;b.next();)E=b.value,this.$u(E),z=this.wa(E),z!==void 0&&this.kb.add(z,E);for(ja(this,"nodeDataArray",Wo,"nodeDataArray",this,y,a),y=0;y<x;y++)b=a[y],this.fm(b),this.em(b);Array.isArray(a)||(this.isReadOnly=!0)}}},copyNodeDataFunction:{get:function(){return this.Bk},set:function(a){var y=this.Bk;y!==a&&(this.Bk=a,this.g("copyNodeDataFunction",y,a))}},copiesArrays:{get:function(){return this.Km},set:function(a){var y=this.Km;y!==a&&(this.Km=a,this.g("copiesArrays",y,a))}},copiesArrayObjects:{get:function(){return this.Jm},set:function(a){var y=this.Jm;y!==a&&(this.Jm=a,this.g("copiesArrayObjects",y,a))}},copiesKey:{get:function(){return this.Mm},set:function(a){var y=this.Mm;y!==a&&(this.Mm=a,this.g("copiesKey",y,a))}},afterCopyFunction:{get:function(){return this.xm},set:function(a){var y=this.xm;y!==a&&(this.xm=a,this.g("afterCopyFunction",y,a))}},nodeCategoryProperty:{get:function(){return this.lj},set:function(a){var y=this.lj;y!==a&&(this.lj=a,this.g("nodeCategoryProperty",y,a))}},type:{get:function(){return"Model"}}}),Hi.prototype.setCategoryForNodeData=Hi.prototype.jm,Hi.prototype.getCategoryForNodeData=Hi.prototype.Ro,Hi.prototype.removeArrayItem=Hi.prototype.ov,Hi.prototype.insertArrayItem=Hi.prototype.ts,Hi.prototype.addArrayItem=Hi.prototype.Ay,Hi.prototype.assignAllDataProperties=Hi.prototype.Do,Hi.prototype.set=Hi.prototype.set,Hi.prototype.clearUnresolvedReferences=Hi.prototype.Qy,Hi.prototype.mergeNodeDataArray=Hi.prototype.$z,Hi.prototype.removeNodeDataCollection=Hi.prototype.nA,Hi.prototype.removeNodeData=Hi.prototype.cm,Hi.prototype.addNodeDataCollection=Hi.prototype.Fy,Hi.prototype.addNodeData=Hi.prototype.xf,Hi.prototype.makeNodeDataKeyUnique=Hi.prototype.$u,Hi.prototype.findNodeDataForKey=Hi.prototype.hc,Hi.prototype.containsNodeData=Hi.prototype.lb,Hi.prototype.setKeyForNodeData=Hi.prototype.km,Hi.prototype.getKeyForNodeData=Hi.prototype.wa,Hi.prototype.updateTargetBindings=Hi.prototype.La,Hi.prototype.commit=Hi.prototype.commit,Hi.prototype.rollbackTransaction=Hi.prototype.Kf,Hi.prototype.commitTransaction=Hi.prototype.eb,Hi.prototype.startTransaction=Hi.prototype.Ea,Hi.prototype.raiseDataChanged=Hi.prototype.Fs,Hi.prototype.raiseChanged=Hi.prototype.g,Hi.prototype.raiseChangedEvent=Hi.prototype.cb,Hi.prototype.removeChangedListener=Hi.prototype.ik,Hi.prototype.addChangedListener=Hi.prototype.Pe,Hi.prototype.writeJsonValue=Hi.prototype.sm,Hi.prototype.replaceJsonObjects=Hi.prototype.dm,Hi.prototype.applyIncrementalJSON=Hi.prototype.Ky,Hi.prototype.applyIncrementalJson=Hi.prototype.Zw,Hi.prototype.toJSON=Hi.prototype.toJSON,Hi.prototype.toJson=Hi.prototype.np,Hi.prototype.toIncrementalJSON=Hi.prototype.yA,Hi.prototype.toIncrementalJson=Hi.prototype.$x,Hi.prototype.toIncrementalData=Hi.prototype.xA,Hi.prototype.clear=Hi.prototype.clear;var I1=!1,$u={};Hi.className="Model",Hi.fromJSON=Hi.fromJson=function(a,y){y===void 0&&(y=null);var x=null;if(typeof a=="string")try{x=In.JSON.parse(a)}catch(z){}else typeof a=="object"?x=a:vt("Unable to construct a Model from: "+a);if(y===null){a=null;var b=x.class;if(typeof b=="string")try{var E=null;b.indexOf("go.")===0?(b=b.substr(3),E=gy(b)):(E=gy(b),E===null&&(E=In[b])),typeof E=="function"&&(a=new E)}catch(z){}a===null||a instanceof Hi?y=a:vt("Unable to construct a Model of declared class: "+x.class)}return y===null&&(y=Hi.constructGraphLinksModel()),y.gp(x),y.kv(x),y},Hi.safePropertyValue=Na,Hi.safePropertySet=oa,$u.Brush=Co,$u.ChangedEvent=qo,$u.Geometry=Jn,$u.Margin=pr,$u.Panel=Kn,$u.Point=Je,$u.Rect=tn,$u.Size=Ln,$u.Spot=Ut,$u.Transaction=Ea,$u.UndoManager=Bo;function Ma(a,y,x,b){qi(this),this._isFrozen=!1,a===void 0&&(a=""),y===void 0&&(y=a),x===void 0&&(x=null),this.j=-1,this.xd=null,this.xl=a,this.wl=this.to=0,this.Cr=null,this.wn=!1,this.sl=y,this.Im=x,b===void 0?(this.el=R1,this.wk=null):(this.el=Ap,this.wk=b),this.st=new Bn}Ma.prototype.copy=function(){var a=new Ma;return a.xl=this.xl,a.to=this.to,a.wl=this.wl,a.Cr=this.Cr,a.wn=this.wn,a.sl=this.sl,a.Im=this.Im,a.el=this.el,a.wk=this.wk,a},Ie=Ma.prototype,Ie.qb=function(a){a.classType===Ma&&(this.mode=a)},Ie.toString=function(){return"Binding("+this.targetProperty+":"+this.sourceProperty+(this.Ai!==-1?" "+this.Ai:"")+" "+this.mode.name+")"},Ie.freeze=function(){return this._isFrozen=!0,this},Ie.ka=function(){return this._isFrozen=!1,this},Ie.Kx=function(a){return a===void 0&&(a=null),this.mode=Ap,this.backConverter=a,this},Ie.cp=function(a){return a===void 0&&(a=""),this.sourceName=a,this.isToModel=!1,this},Ie.dA=function(){return this.sourceName=null,this.isToModel=!0,this};function M1(a,y,x){return a=a.sourceName,a===null||a===""?y:a==="/"?x.part:a==="."?x:a===".."?x.panel:y.fb(a)}Ie.Mv=function(a,y,x){var b=this.sl;if(x===void 0||b===""||b===x){x=this.xl;var E=this.Im;if(E===null&&x==="")ki("Binding error: target property is the empty string: "+this.toString());else{var z=y;if(b!==""&&(z=Na(y,b)),z!==void 0)if(E===null)x!==""&&oa(a,x,z);else try{if(x!==""){var ee=E(z,a);oa(a,x,ee)}else E(z,a)}catch(re){}}}},Ie.sp=function(a,y,x,b){if(this.el===Ap){var E=this.xl;if(x===void 0||E===x){x=this.sl;var z=this.wk,ee=a;if(E!==""&&(ee=Na(a,E)),ee!==void 0&&!this.st.contains(a))try{this.st.add(a);var re=b!==null?b.diagram:null,oe=re!==null?re.model:null;if(z===null){if(x!=="")oe!==null?oe.setDataProperty(y,x,ee):oa(y,x,ee);else if(oe!==null&&b!==null&&0<=b.itemIndex&&b.panel!==null&&Array.isArray(b.panel.itemArray)){var de=b.itemIndex,fe=b.panel.itemArray;oe.ov(fe,de),oe.ts(fe,de,ee)}}else try{if(x!==""){var ye=z(ee,y,oe);oe!==null?oe.setDataProperty(y,x,ye):oa(y,x,ye)}else{var Ce=z(ee,y,oe);if(Ce!==void 0&&oe!==null&&b!==null&&0<=b.itemIndex&&b.panel!==null&&Array.isArray(b.panel.itemArray)){var Ne=b.itemIndex,Oe=b.panel.itemArray;oe.ov(Oe,Ne),oe.ts(Oe,Ne,Ce)}}}catch(Ve){}}finally{this.st.remove(a)}}}},jt.Object.defineProperties(Ma.prototype,{Ai:{get:function(){return this.j},set:function(a){this._isFrozen&&Sn(this),this.j=a}},targetProperty:{get:function(){return this.xl},set:function(a){this._isFrozen&&Sn(this),this.xl=a}},sourceName:{get:function(){return this.Cr},set:function(a){this._isFrozen&&Sn(this),this.Cr=a,a!==null&&(this.wn=!1)}},isToModel:{get:function(){return this.wn},set:function(a){this._isFrozen&&Sn(this),this.wn=a}},sourceProperty:{get:function(){return this.sl},set:function(a){this._isFrozen&&Sn(this),this.sl=a}},converter:{get:function(){return this.Im},set:function(a){this._isFrozen&&Sn(this),this.Im=a}},backConverter:{get:function(){return this.wk},set:function(a){this._isFrozen&&Sn(this),this.wk=a}},mode:{get:function(){return this.el},set:function(a){this._isFrozen&&Sn(this),this.el=a}}}),Ma.prototype.updateSource=Ma.prototype.sp,Ma.prototype.updateTarget=Ma.prototype.Mv,Ma.prototype.ofModel=Ma.prototype.dA,Ma.prototype.ofObject=Ma.prototype.cp,Ma.prototype.makeTwoWay=Ma.prototype.Kx;var jx="Binding",R1=new mn(Ma,"OneWay",1),Ap=new mn(Ma,"TwoWay",2);Ma.className="Binding",Ma.parseEnum=function(a,y){return function(x){return x=wi(a,x),x===null?y:x}},Ma.toString=Ki,Ma.OneWay=R1,Ma.TwoWay=Ap;function Jr(a,y,x){Hi.call(this),this.Vv=`,
|
|
|
"insertedLinkKeys": `,this.iy=`,
|
|
|
"modifiedLinkData": `,this.Xv=`,
|
|
|
"removedLinkKeys": `,this.md=[],this.$f=new Bn,this.wb=new an,this.Jh="",this.Ri=this.Ak=this.cl=null,this.lf="from",this.mf="to",this.fj=this.ej="",this.dj="category",this.je="",this.jl="isGroup",this.Je="group",this.Lm=!1,y!==void 0&&(this.linkDataArray=y),a!==void 0&&(wn(a)?this.nodeDataArray=a:x=a),x&&(Object.assign(this,x),a=x.Changed)&&(delete this.Changed,this.Pe(a))}Wt(Jr,Hi),Jr.constructGraphLinksModel=Hi.constructGraphLinksModel,Jr.prototype.cloneProtected=function(a){Hi.prototype.cloneProtected.call(this,a),a.Jh=this.Jh,a.cl=this.cl,a.Ak=this.Ak,a.lf=this.lf,a.mf=this.mf,a.ej=this.ej,a.fj=this.fj,a.dj=this.dj,a.je=this.je,a.jl=this.jl,a.Je=this.Je,a.Lm=this.Lm},Ie=Jr.prototype,Ie.clear=function(){Hi.prototype.clear.call(this),this.md=[],this.wb.clear(),this.$f.clear()},Ie.toString=function(a){if(a===void 0&&(a=0),2<=a)return this.np();var y=(this.name!==""?this.name:"")+" GraphLinksModel";if(0<a){y+=`
|
|
|
node data:`,a=this.nodeDataArray;var x=a.length,b;for(b=0;b<x;b++){var E=a[b];y+=" "+this.wa(E)+":"+Ki(E)}for(y+=`
|
|
|
link data:`,a=this.linkDataArray,x=a.length,b=0;b<x;b++)E=a[b],y+=" "+su(this,E,!0)+"-->"+su(this,E,!1)}return y},Ie.Qv=function(a,y){this.linkKeyProperty===""&&vt("GraphLinksModel.linkKeyProperty must not be an empty string for .toIncrementalData() to succeed.");var x=Hi.prototype.Qv.call(this,a,y),b=this,E=new Bn,z=new Bn,ee=new Bn,re=this.vh;a.changes.each(function(fe){fe.model===b&&(fe.modelChange==="linkDataArray"?fe.change===la?E.add(fe.newValue):fe.change===ga&&ee.add(fe.oldValue):b.Jc(fe.object)?z.add(fe.object):fe.object!==null&&(fe.object!==null&&re&&re.contains(fe.object)?re.get(fe.object).each(function(ye){b.Jc(ye)&&z.add(ye)}):fe.object instanceof Hi||b.lb(fe.object)||O1(b,fe.object).each(function(ye){z.add(ye)})))});var oe=this.il;oe.clear(),E.each(function(fe){oe.add(b.Ac(fe)),y||z.add(fe)});var de=this.kl;return de.clear(),ee.each(function(fe){de.add(b.Ac(fe)),y&&z.add(fe)}),a=b.cloneDeep(z.Fa()),0<oe.count&&(x===null&&(x={}),y?x.removedLinkKeys=oe.Fa():x.insertedLinkKeys=oe.Fa()),0<a.length&&(x===null&&(x={}),x.modifiedLinkData=a),0<de.count&&(x===null&&(x={}),y?x.insertedLinkKeys=de.Fa():x.removedLinkKeys=de.Fa()),de.clear(),oe.clear(),x},Ie.rm=function(){var a=Hi.prototype.rm.call(this),y="";return this.linkCategoryProperty!=="category"&&typeof this.linkCategoryProperty=="string"&&(y+=`,
|
|
|
"linkCategoryProperty": `+this.quote(this.linkCategoryProperty)),this.linkKeyProperty!==""&&typeof this.linkKeyProperty=="string"&&(y+=`,
|
|
|
"linkKeyProperty": `+this.quote(this.linkKeyProperty)),this.linkFromKeyProperty!=="from"&&typeof this.linkFromKeyProperty=="string"&&(y+=`,
|
|
|
"linkFromKeyProperty": `+this.quote(this.linkFromKeyProperty)),this.linkToKeyProperty!=="to"&&typeof this.linkToKeyProperty=="string"&&(y+=`,
|
|
|
"linkToKeyProperty": `+this.quote(this.linkToKeyProperty)),this.linkFromPortIdProperty!==""&&typeof this.linkFromPortIdProperty=="string"&&(y+=`,
|
|
|
"linkFromPortIdProperty": `+this.quote(this.linkFromPortIdProperty)),this.linkToPortIdProperty!==""&&typeof this.linkToPortIdProperty=="string"&&(y+=`,
|
|
|
"linkToPortIdProperty": `+this.quote(this.linkToPortIdProperty)),this.linkLabelKeysProperty!==""&&typeof this.linkLabelKeysProperty=="string"&&(y+=`,
|
|
|
"linkLabelKeysProperty": `+this.quote(this.linkLabelKeysProperty)),this.nodeIsGroupProperty!=="isGroup"&&typeof this.nodeIsGroupProperty=="string"&&(y+=`,
|
|
|
"nodeIsGroupProperty": `+this.quote(this.nodeIsGroupProperty)),this.nodeGroupKeyProperty!=="group"&&typeof this.nodeGroupKeyProperty=="string"&&(y+=`,
|
|
|
"nodeGroupKeyProperty": `+this.quote(this.nodeGroupKeyProperty)),a+y},Ie.gp=function(a){Hi.prototype.gp.call(this,a),a.linkKeyProperty&&(this.linkKeyProperty=a.linkKeyProperty),a.linkFromKeyProperty&&(this.linkFromKeyProperty=a.linkFromKeyProperty),a.linkToKeyProperty&&(this.linkToKeyProperty=a.linkToKeyProperty),a.linkFromPortIdProperty&&(this.linkFromPortIdProperty=a.linkFromPortIdProperty),a.linkToPortIdProperty&&(this.linkToPortIdProperty=a.linkToPortIdProperty),a.linkCategoryProperty&&(this.linkCategoryProperty=a.linkCategoryProperty),a.linkLabelKeysProperty&&(this.linkLabelKeysProperty=a.linkLabelKeysProperty),a.nodeIsGroupProperty&&(this.nodeIsGroupProperty=a.nodeIsGroupProperty),a.nodeGroupKeyProperty&&(this.nodeGroupKeyProperty=a.nodeGroupKeyProperty)},Ie.Rv=function(){var a=Hi.prototype.Rv.call(this),y=`,
|
|
|
"linkDataArray": `+$d(this,this.linkDataArray,!0);return a+y},Ie.kv=function(a){Hi.prototype.kv.call(this,a),a=a.linkDataArray,Array.isArray(a)&&(this.dm(a),this.linkDataArray=a)};function O1(a,y){for(var x=new Bn,b=0;b<a.linkDataArray.length;b++){var E=a.linkDataArray[b];f0(a,y,E,E,x)}return x}Ie.Pv=function(a,y){this.linkKeyProperty===""&&vt("GraphLinksModel.linkKeyProperty must not be an empty string for .toIncrementalJson() to succeed.");var x=Hi.prototype.Pv.call(this,a,y),b=this,E=new Bn,z=new Bn,ee=new Bn,re=this.vh;a.changes.each(function(fe){fe.model===b&&(fe.modelChange==="linkDataArray"?fe.change===la?E.add(fe.newValue):fe.change===ga&&ee.add(fe.oldValue):b.Jc(fe.object)?z.add(fe.object):fe.object!==null&&(fe.object!==null&&re&&re.contains(fe.object)?re.get(fe.object).each(function(ye){b.Jc(ye)&&z.add(ye)}):fe.object instanceof Hi||b.lb(fe.object)||O1(b,fe.object).each(function(ye){z.add(ye)})))});var oe=this.il;oe.clear(),E.each(function(fe){oe.add(b.Ac(fe)),y||z.add(fe)});var de=this.kl;return de.clear(),ee.each(function(fe){de.add(b.Ac(fe)),y&&z.add(fe)}),a=x,0<oe.count&&(a+=(y?this.Xv:this.Vv)+$d(this,oe.Fa(),!0)),0<z.count&&(a+=this.iy+$d(this,z.Fa(),!0)),0<de.count&&(a+=(y?this.Vv:this.Xv)+$d(this,de.Fa(),!0)),de.clear(),oe.clear(),a},Ie.fp=function(a){(a.linkCategoryProperty!==void 0&&a.linkCategoryProperty!==this.linkCategoryProperty||a.linkKeyProperty!==void 0&&a.linkKeyProperty!==this.linkKeyProperty||a.linkFromKeyProperty!==void 0&&a.linkFromKeyProperty!==this.linkFromKeyProperty||a.linkToKeyProperty!==void 0&&a.linkToKeyProperty!==this.linkToKeyProperty||a.linkFromPortIdProperty!==void 0&&a.linkFromPortIdProperty!==this.linkFromPortIdProperty||a.linkToPortIdProperty!==void 0&&a.linkToPortIdProperty!==this.linkToPortIdProperty||a.linkLabelKeysProperty!==void 0&&a.linkLabelKeysProperty!==this.linkLabelKeysProperty||a.nodeIsGroupProperty!==void 0&&a.nodeIsGroupProperty!==this.nodeIsGroupProperty||a.nodeGroupKeyProperty!==void 0&&a.nodeGroupKeyProperty!==this.nodeGroupKeyProperty)&&vt("applyIncrementalJson cannot change Model properties"),Hi.prototype.fp.call(this,a);var y=a.insertedLinkKeys;if(Array.isArray(y))for(var x=y.length,b=0;b<x;b++){var E=y[b],z=this.jh(E);z===null&&(z=this.Jo({}),this.Ks(z,E),this.fi(z))}if(y=a.modifiedLinkData,Array.isArray(y)){for(x=y.length,b=0;b<x;b++)if(E=y[b],z=this.Ac(E),z=this.jh(z),z!==null){for(var ee in E)ee!=="__gohashid"&&ee!==this.linkKeyProperty&&this.setDataProperty(z,ee,E[ee]);B1(this,E,z)}}if(a=a.removedLinkKeys,Array.isArray(a))for(ee=a.length,y=0;y<ee;y++)x=this.jh(a[y]),x!==null&&this.bm(x)},Jr.prototype.changeState=function(a,y){if(a!==null&&a.model===this){if(a.change===Wo){var x=a.object,b=a.propertyName;if(b===this.linkKeyProperty&&this.Jc(x)){var E=a.I(y);y=a.I(!y),y!==void 0&&this.wb.remove(y),E!==void 0&&this.wb.add(E,x),oa(x,b,E);return}}else if(a.change===la){if(x=a.newParam,a.modelChange==="linkDataArray"){a=a.newValue,zt(a)&&typeof x=="number"&&(b=this.Ac(a),y?(this.$f.remove(a),this.md[x]===a&&this.md.splice(x,1),b!==void 0&&this.wb.remove(b)):(this.$f.add(a),this.md[x]!==a&&this.md.splice(x,0,a),b!==void 0&&this.wb.add(b,a)));return}if(a.modelChange==="linkLabelKeys"){b=this.Ef(a.object),Array.isArray(b)&&typeof x=="number"&&(y?(x=b.indexOf(a.newValue),0<=x&&b.splice(x,1)):0>b.indexOf(a.newValue)&&b.splice(x,0,a.newValue));return}}else if(a.change===ga){if(x=a.oldParam,a.modelChange==="linkDataArray"){a=a.oldValue,zt(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}}Hi.prototype.changeState.call(this,a,y)}},Ie=Jr.prototype,Ie.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),oa(x,this.nodeKeyProperty,a),this.xf(x))}return a}},Ie.yx=function(a){return su(this,a,!0)},Ie.wv=function(a,y){sg(this,a,y,!0)},Ie.Bx=function(a){return su(this,a,!1)},Ie.Bv=function(a,y){sg(this,a,y,!1)};function su(a,y,x){if(y!==null&&(a=x?a.lf:a.mf,a!==""&&(a=Na(y,a),a!==void 0))){if(eh(a))return a;vt((x?"FromKey":"ToKey")+" value for link data "+y+" is not a number or a string: "+a)}}function sg(a,y,x,b){if(x===null&&(x=void 0),y!==null){var E=b?a.lf:a.mf;if(E!=="")if(x=a.Vl(x),a.Jc(y)){var z=Na(y,E);z!==x&&(fc(a,z,y),oa(y,E,x),a.hc(x)===null&&hc(a,x,y),ja(a,b?"linkFromKey":"linkToKey",Wo,E,y,z,x),typeof E=="string"&&a.La(y,E))}else oa(y,E,x)}}Ie.zx=function(a){return p0(this,a,!0)},Ie.xv=function(a,y){lg(this,a,y,!0)},Ie.Cx=function(a){return p0(this,a,!1)},Ie.Cv=function(a,y){lg(this,a,y,!1)};function p0(a,y,x){return y===null||(a=x?a.ej:a.fj,a==="")?"":(y=Na(y,a),y===void 0?"":y)}function lg(a,y,x,b){if(y!==null){var E=b?a.ej:a.fj;if(E!=="")if(a.Jc(y)){var z=Na(y,E);z===void 0&&(z=""),z!==x&&(oa(y,E,x),ja(a,b?"linkFromPortId":"linkToPortId",Wo,E,y,z,x),typeof E=="string"&&a.La(y,E))}else oa(y,E,x)}}Ie.Ef=function(a){if(a===null)return m0;var y=this.je;return y===""?m0:(a=Na(a,y),a===void 0?m0:a)},Ie.Ls=function(a,y){if(a!==null){var x=this.je;if(x!=="")if(this.Jc(a)){var b=Na(a,x);if(b===void 0&&(b=m0),b!==y){if(Array.isArray(b))for(var E=b.length,z=0;z<E;z++)fc(this,b[z],a);for(oa(a,x,y),E=y.length,z=0;z<E;z++){var ee=y[z];this.hc(ee)===null&&hc(this,ee,a)}ja(this,"linkLabelKeys",Wo,x,a,b,y),typeof x=="string"&&this.La(a,x)}}else oa(a,x,y)}},Ie.Bu=function(a,y){if(y!=null&&a!==null){var x=this.je;if(x!==""){var b=Na(a,x);if(b===void 0)x=[],x.push(y),this.Ls(a,x);else if(Array.isArray(b)){var E=b.indexOf(y);0<=E||(E=b.length,b.push(y),this.Jc(a)&&(this.hc(y)===null&&hc(this,y,a),ja(this,"linkLabelKeys",la,x,a,null,y,null,E)))}else vt(x+" property is not an Array; cannot addLabelKeyForLinkData: "+a)}}},Ie.Qx=function(a,y){if(y!=null&&a!==null){var x=this.je;if(x!==""){var b=Na(a,x);if(Array.isArray(b)){var E=b.indexOf(y);0>E||(b.splice(E,1),this.Jc(a)&&(fc(this,y,a),ja(this,"linkLabelKeys",ga,x,a,y,null,E,null)))}else b!==void 0&&vt(x+" property is not an Array; cannot removeLabelKeyforLinkData: "+a)}}},Ie.Ac=function(a){if(a!==null){var y=this.Jh;if(y!==""&&(y=Na(a,y),y!==void 0)){if(eh(y))return y;vt("Key value for link data "+a+" is not a number or a string: "+y)}}},Ie.Ks=function(a,y){if(a!==null){var x=this.Jh;if(x!=="")if(this.Jc(a)){var b=Na(a,x);b!==y&&this.jh(y)===null&&(oa(a,x,y),b!==void 0&&this.wb.remove(b),this.wb.add(y,a),ja(this,"linkKey",Wo,x,a,b,y),typeof x=="string"&&this.La(a,x))}else oa(a,x,y)}},Ie.jh=function(a){return a===null&&vt("GraphLinksModel.findLinkDataForKey:key must not be null"),a!==void 0&&eh(a)?this.wb.I(a):null},Ie.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))){oa(a,y,x);return}if(typeof x=="string"){for(b=2;this.wb.contains(x+b);)b++;oa(a,y,x+b)}else if(x===void 0||typeof x=="number"){for(x=-this.wb.count-1;this.wb.contains(x);)x--;oa(a,y,x)}}}}},Ie.Jc=function(a){return a===null?!1:this.$f.contains(a)},Ie.fi=function(a){a!==null&&(ur(a),this.Jc(a)||D1(this,a,!0))};function D1(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&&vt("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)),ja(a,"linkDataArray",la,"linkDataArray",a,null,y,null,b),py(a,y)}Ie.Ey=function(a){if(Array.isArray(a))for(var y=a.length,x=0;x<y;x++)this.fi(a[x]);else for(a=a.iterator;a.next();)this.fi(a.value)},Ie.bm=function(a){a!==null&&F1(this,a,!0)};function F1(a,y,x){a.$f.remove(y);var b=a.Ac(y);if(b!==void 0&&a.wb.remove(b),b=null,x){if(b=a.md.indexOf(y),0>b)return;a.md.splice(b,1)}if(ja(a,"linkDataArray",ga,"linkDataArray",a,y,null,b,null),x=su(a,y,!0),fc(a,x,y),x=su(a,y,!1),fc(a,x,y),b=a.Ef(y),Array.isArray(b))for(var E=b.length,z=0;z<E;z++)x=b[z],fc(a,x,y)}Ie.lA=function(a){if(Array.isArray(a))for(var y=a.length,x=0;x<y;x++)this.bm(a[x]);else for(a=a.iterator;a.next();)this.bm(a.value)},Ie.Zz=function(a){if(this.linkKeyProperty===""&&vt("GraphLinksModel.linkKeyProperty must not be an empty string for .mergeLinkDataArray() to succeed."),a!==this.linkDataArray&&wn(a)){var y=this.kl;y.clear(),y.addAll(this.wb.iteratorKeys);var x=this.il;x.clear();for(var b=a.length,E=0;E<b;E++){var z=a[E],ee=this.Ac(z);if(ee!==void 0){x.add(ee);var re=this.jh(ee);re!==z&&(re!==null?(this.Do(re,z),B1(this,z,re)):(z=this.cloneDeep(z),this.Ks(z,ee),this.fi(z)))}else ee=this.cloneDeep(z),this.fi(ee),x.add(this.Ac(ee))}for(a=y.iterator;a.next();)b=a.value,x.contains(b)||(b=this.jh(b))&&this.bm(b);y.clear(),x.clear()}};function py(a,y){var x=su(a,y,!0);x=a.Vl(x),a.hc(x)===null&&hc(a,x,y),x=su(a,y,!1),x=a.Vl(x),a.hc(x)===null&&hc(a,x,y);var b=a.Ef(y);if(Array.isArray(b))for(var E=b.length,z=0;z<E;z++)x=b[z],a.hc(x)===null&&hc(a,x,y)}Ie.Jo=function(a){if(a===null)return null;var y=this.Ak;return a=y!==null?y(a,this):g0(this,a,!0),zt(a)&&(qi(a),this.lf!==""&&oa(a,this.lf,void 0),this.mf!==""&&oa(a,this.mf,void 0),this.je!==""&&oa(a,this.je,[])),a},Ie.Yu=function(a){if(a===null)return!1;var y=this.jl;return y===""?!1:!!Na(a,y)},Ie.lh=function(a){if(a!==null){var y=this.Je;if(y!==""&&(y=Na(a,y),y!==void 0)){if(eh(y))return y;vt("GroupKey value for node data "+a+" is not a number or a string: "+y)}}},Ie.mp=function(a,y){if(y===null&&(y=void 0),a!==null){var x=this.Je;if(x!=="")if(this.lb(a)){var b=Na(a,x);b!==y&&(fc(this,b,a),oa(a,x,y),this.hc(y)===null&&hc(this,y,a),ja(this,"nodeGroupKey",Wo,x,a,b,y),typeof x=="string"&&this.La(a,x))}else oa(a,x,y)}},Jr.prototype.copyNodeData=function(a){return a===null?null:(a=Hi.prototype.copyNodeData.call(this,a),this.Ij||this.Je===""||Na(a,this.Je)===void 0||oa(a,this.Je,void 0),a)},Jr.prototype.setDataProperty=function(a,y,x){if(this.lb(a)){if(y===this.nodeKeyProperty){this.km(a,x);return}if(y===this.nodeCategoryProperty){this.jm(a,x);return}if(y===this.nodeGroupKeyProperty){this.mp(a,x);return}}else if(this.Jc(a)){if(y===this.linkFromKeyProperty){sg(this,a,x,!0);return}if(y===this.linkToKeyProperty){sg(this,a,x,!1);return}if(y===this.linkFromPortIdProperty){lg(this,a,x,!0);return}if(y===this.linkToPortIdProperty){lg(this,a,x,!1);return}if(y===this.linkKeyProperty){this.Ks(a,x);return}if(y===this.linkCategoryProperty){this.lp(a,x);return}if(y===this.linkLabelKeysProperty){this.Ls(a,x);return}}var b=Na(a,y);b!==x&&(oa(a,y,x),this.Fs(a,y,b,x))},Ie=Jr.prototype,Ie.Do=function(a,y){if(y){var x=this.lb(a),b=this.Jc(a),E;for(E in y)E==="__gohashid"||x&&E===this.nodeKeyProperty||x&&E===this.nodeIsGroupProperty&&Na(a,E)===y[E]||b&&E===this.linkKeyProperty||this.setDataProperty(a,E,y[E])}},Ie.jp=function(a,y){Hi.prototype.jp.call(this,a,y);for(var x=this.kb.iterator;x.next();)this.qv(x.value,a,y);for(x=this.$f.iterator;x.next();){var b=x.value,E=a,z=y;if(su(this,b,!0)===E){var ee=this.lf;oa(b,ee,z),ja(this,"linkFromKey",Wo,ee,b,E,z),typeof ee=="string"&&this.La(b,ee)}if(su(this,b,!1)===E&&(ee=this.mf,oa(b,ee,z),ja(this,"linkToKey",Wo,ee,b,E,z),typeof ee=="string"&&this.La(b,ee)),ee=this.Ef(b),Array.isArray(ee))for(var re=ee.length,oe=this.je,de=0;de<re;de++)ee[de]===E&&(ee[de]=z,ja(this,"linkLabelKeys",la,oe,b,E,z,de,de))}},Ie.qv=function(a,y,x){if(this.lh(a)===y){var b=this.Je;oa(a,b,x),ja(this,"nodeGroupKey",Wo,b,a,y,x),typeof b=="string"&&this.La(a,b)}},Ie.Lv=function(){Hi.prototype.Lv.call(this);for(var a=this.linkDataArray,y=a.length,x=0;x<y;x++)py(this,a[x])},Ie.fm=function(a){Hi.prototype.fm.call(this,a),a=this.wa(a);var y=Cp(this,a);if(y!==null){var x=Mi();for(y=y.iterator;y.next();){var b=y.value;if(this.lb(b)){if(this.lh(b)===a){var E=this.Je;ja(this,"nodeGroupKey",Wo,E,b,a,a),typeof E=="string"&&this.La(b,E),x.push(b)}}else if(su(this,b,!0)===a&&(E=this.lf,ja(this,"linkFromKey",Wo,E,b,a,a),typeof E=="string"&&this.La(b,E),x.push(b)),su(this,b,!1)===a&&(E=this.mf,ja(this,"linkToKey",Wo,E,b,a,a),typeof E=="string"&&this.La(b,E),x.push(b)),E=this.Ef(b),Array.isArray(E))for(var z=E.length,ee=this.je,re=0;re<z;re++)E[re]===a&&(ja(this,"linkLabelKeys",la,ee,b,a,a,re,re),x.push(b))}for(y=0;y<x.length;y++)fc(this,a,x[y]);ui(x)}},Ie.em=function(a){Hi.prototype.em.call(this,a);var y=this.lh(a);this.hc(y)===null&&hc(this,y,a)},Ie.qp=function(a){Hi.prototype.qp.call(this,a);var y=this.lh(a);fc(this,y,a)},Ie.ps=function(a){if(a===null)return"";var y=this.dj;if(y===""||(y=Na(a,y),y===void 0))return"";if(typeof y=="string")return y;vt("getCategoryForLinkData found a non-string category for "+a+": "+y)},Jr.prototype.getLinkCategoryForData=function(a){return this.ps(a)},Jr.prototype.lp=function(a,y){if(a!==null){var x=this.dj;if(x!=="")if(this.Jc(a)){var b=Na(a,x);b===void 0&&(b=""),b!==y&&(oa(a,x,y),ja(this,"linkCategory",Wo,x,a,b,y),typeof x=="string"&&this.La(a,x))}else oa(a,x,y)}},Jr.prototype.setLinkCategoryForData=function(a,y){this.lp(a,y)},Ie=Jr.prototype,Ie.lm=function(a,y){Hi.prototype.lm.call(this,a,y),this.mp(y,this.lh(a))};function B1(a,y,x){a.lp(x,a.ps(y)),a.wv(x,a.yx(y)),a.Bv(x,a.Bx(y)),a.Ls(x,a.Ef(y)),a.xv(x,a.zx(y)),a.Cv(x,a.Cx(y))}Ie.Wj=function(){return!0},Ie.ri=function(){return!0},Ie.xs=function(){return!0},Ie.Xj=function(){return!0},jt.Object.defineProperties(Jr.prototype,{archetypeNodeData:{get:function(){return this.Ri},set:function(a){var y=this.Ri;y!==a&&(this.Ri=a,this.g("archetypeNodeData",y,a))}},linkFromKeyProperty:{get:function(){return this.lf},set:function(a){var y=this.lf;y!==a&&(this.lf=a,this.g("linkFromKeyProperty",y,a))}},linkToKeyProperty:{get:function(){return this.mf},set:function(a){var y=this.mf;y!==a&&(this.mf=a,this.g("linkToKeyProperty",y,a))}},linkFromPortIdProperty:{get:function(){return this.ej},set:function(a){var y=this.ej;y!==a&&(this.ej=a,this.g("linkFromPortIdProperty",y,a))}},linkToPortIdProperty:{get:function(){return this.fj},set:function(a){var y=this.fj;y!==a&&(this.fj=a,this.g("linkToPortIdProperty",y,a))}},linkLabelKeysProperty:{get:function(){return this.je},set:function(a){var y=this.je;y!==a&&(this.je=a,this.g("linkLabelKeysProperty",y,a))}},linkDataArray:{get:function(){return this.md},set:function(a){var y=this.md;if(y!==a){this.wb.clear();for(var x=a.length,b=0;b<x;b++){var E=a[b];zt(E)||vt("GraphLinksModel.linkDataArray must only contain Objects, not: "+E),ur(E)}if(this.md=a,this.linkKeyProperty!==""){for(b=new Dn,E=0;E<x;E++){var z=a[E],ee=this.Ac(z);ee===void 0||this.wb.I(ee)!==null?b.add(z):this.wb.add(ee,z)}for(b=b.iterator;b.next();)E=b.value,this.Bs(E),z=this.Ac(E),z!==void 0&&this.wb.add(z,E)}for(b=new Bn,E=0;E<x;E++)b.add(a[E]);for(this.$f=b,ja(this,"linkDataArray",Wo,"linkDataArray",this,y,a),y=0;y<x;y++)py(this,a[y])}}},linkKeyProperty:{get:function(){return this.Jh},set:function(a){var y=this.Jh;if(y!==a){this.Jh=a,this.wb.clear();for(var x=this.linkDataArray.length,b=0;b<x;b++){var E=this.linkDataArray[b],z=this.Ac(E);z===void 0&&(this.Bs(E),z=this.Ac(E)),z!==void 0&&this.wb.add(z,E)}this.g("linkKeyProperty",y,a)}}},makeUniqueLinkKeyFunction:{get:function(){return this.cl},set:function(a){var y=this.cl;y!==a&&(this.cl=a,this.g("makeUniqueLinkKeyFunction",y,a))}},copyLinkDataFunction:{get:function(){return this.Ak},set:function(a){var y=this.Ak;y!==a&&(this.Ak=a,this.g("copyLinkDataFunction",y,a))}},nodeIsGroupProperty:{get:function(){return this.jl},set:function(a){var y=this.jl;y!==a&&(this.jl=a,this.g("nodeIsGroupProperty",y,a))}},nodeGroupKeyProperty:{get:function(){return this.Je},set:function(a){var y=this.Je;y!==a&&(this.Je=a,this.g("nodeGroupKeyProperty",y,a))}},Ij:{get:function(){return this.Lm},set:function(a){this.Lm!==a&&(this.Lm=a)}},linkCategoryProperty:{get:function(){return this.dj},set:function(a){var y=this.dj;y!==a&&(this.dj=a,this.g("linkCategoryProperty",y,a))}},type:{get:function(){return"GraphLinksModel"}}}),Jr.prototype.setCategoryForLinkData=Jr.prototype.lp,Jr.prototype.getCategoryForLinkData=Jr.prototype.ps,Jr.prototype.assignAllDataProperties=Jr.prototype.Do,Jr.prototype.setGroupKeyForNodeData=Jr.prototype.mp,Jr.prototype.getGroupKeyForNodeData=Jr.prototype.lh,Jr.prototype.isGroupForNodeData=Jr.prototype.Yu,Jr.prototype.copyLinkData=Jr.prototype.Jo,Jr.prototype.mergeLinkDataArray=Jr.prototype.Zz,Jr.prototype.removeLinkDataCollection=Jr.prototype.lA,Jr.prototype.removeLinkData=Jr.prototype.bm,Jr.prototype.addLinkDataCollection=Jr.prototype.Ey,Jr.prototype.addLinkData=Jr.prototype.fi,Jr.prototype.containsLinkData=Jr.prototype.Jc,Jr.prototype.makeLinkDataKeyUnique=Jr.prototype.Bs,Jr.prototype.findLinkDataForKey=Jr.prototype.jh,Jr.prototype.setKeyForLinkData=Jr.prototype.Ks,Jr.prototype.getKeyForLinkData=Jr.prototype.Ac,Jr.prototype.removeLabelKeyForLinkData=Jr.prototype.Qx,Jr.prototype.addLabelKeyForLinkData=Jr.prototype.Bu,Jr.prototype.setLabelKeysForLinkData=Jr.prototype.Ls,Jr.prototype.getLabelKeysForLinkData=Jr.prototype.Ef,Jr.prototype.setToPortIdForLinkData=Jr.prototype.Cv,Jr.prototype.getToPortIdForLinkData=Jr.prototype.Cx,Jr.prototype.setFromPortIdForLinkData=Jr.prototype.xv,Jr.prototype.getFromPortIdForLinkData=Jr.prototype.zx,Jr.prototype.setToKeyForLinkData=Jr.prototype.Bv,Jr.prototype.getToKeyForLinkData=Jr.prototype.Bx,Jr.prototype.setFromKeyForLinkData=Jr.prototype.wv,Jr.prototype.getFromKeyForLinkData=Jr.prototype.yx,Jr.prototype.clear=Jr.prototype.clear;var m0=Object.freeze([]);Jr.className="GraphLinksModel",$u.GraphLinksModel=Jr,Hi.constructGraphLinksModel=Hi.constructGraphLinksModel=function(){return new Jr},Hi.initDiagramModel=fy=function(){return new Jr};function dl(a,y){Hi.call(this),this.Ke="parent",this.Nm=!1,this.nj="parentLinkCategory",a!==void 0&&(wn(a)?this.nodeDataArray=a:y=a),y&&(Object.assign(this,y),a=y.Changed)&&(delete this.Changed,this.Pe(a))}Wt(dl,Hi),dl.constructGraphLinksModel=Hi.constructGraphLinksModel,dl.prototype.cloneProtected=function(a){Hi.prototype.cloneProtected.call(this,a),a.Ke=this.Ke,a.Nm=this.Nm,a.nj=this.nj},Ie=dl.prototype,Ie.toString=function(a){if(a===void 0&&(a=0),2<=a)return this.np();var y=(this.name!==""?this.name:"")+" TreeModel";if(0<a){y+=`
|
|
|
node data:`,a=this.nodeDataArray;for(var x=a.length,b=0;b<x;b++){var E=a[b];y+=" "+this.wa(E)+":"+Ki(E)}}return y},Ie.rm=function(){var a=Hi.prototype.rm.call(this),y="";return this.nodeParentKeyProperty!=="parent"&&typeof this.nodeParentKeyProperty=="string"&&(y+=`,
|
|
|
"nodeParentKeyProperty": `+this.quote(this.nodeParentKeyProperty)),a+y},Ie.gp=function(a){Hi.prototype.gp.call(this,a),a.nodeParentKeyProperty&&(this.nodeParentKeyProperty=a.nodeParentKeyProperty)},Ie.fp=function(a){a.nodeParentKeyProperty!==void 0&&a.nodeParentKeyProperty!==this.nodeParentKeyProperty&&vt("applyIncrementalJson cannot change Model properties"),Hi.prototype.fp.call(this,a)},Ie.Vl=function(a){return a},Ie.mh=function(a){if(a!==null){var y=this.Ke;if(y!==""&&(y=Na(a,y),y!==void 0)){if(eh(y))return y;vt("ParentKey value for node data "+a+" is not a number or a string: "+y)}}},Ie.qe=function(a,y){if(y===null&&(y=void 0),a!==null){var x=this.Ke;if(x!=="")if(y=this.Vl(y),this.lb(a)){var b=Na(a,x);b!==y&&(fc(this,b,a),oa(a,x,y),this.hc(y)===null&&hc(this,y,a),ja(this,"nodeParentKey",Wo,x,a,b,y),typeof x=="string"&&this.La(a,x))}else oa(a,x,y)}},Ie.ss=function(a){if(a===null)return"";var y=this.nj;return y===""||(y=Na(a,y),y===void 0)?"":typeof y=="string"?y:(vt("getParentLinkCategoryForNodeData found a non-string category for "+a+": "+y),"")},dl.prototype.getLinkCategoryForData=function(a){return this.ss(a)},dl.prototype.Ms=function(a,y){if(a!==null){var x=this.nj;if(x!=="")if(this.lb(a)){var b=Na(a,x);b===void 0&&(b=""),b!==y&&(oa(a,x,y),ja(this,"parentLinkCategory",Wo,x,a,b,y),typeof x=="string"&&this.La(a,x))}else oa(a,x,y)}},dl.prototype.setLinkCategoryForData=function(a,y){this.Ms(a,y)},dl.prototype.copyNodeData=function(a){return a===null?null:(a=Hi.prototype.copyNodeData.call(this,a),this.Jj||this.Ke===""||Na(a,this.Ke)===void 0||oa(a,this.Ke,void 0),a)},dl.prototype.setDataProperty=function(a,y,x){if(this.lb(a)){if(y===this.nodeKeyProperty){this.km(a,x);return}if(y===this.nodeCategoryProperty){this.jm(a,x);return}if(y===this.nodeParentKeyProperty){this.qe(a,x);return}}var b=Na(a,y);b!==x&&(oa(a,y,x),this.Fs(a,y,b,x))},Ie=dl.prototype,Ie.jp=function(a,y){Hi.prototype.jp.call(this,a,y);for(var x=this.kb.iterator;x.next();)this.qv(x.value,a,y)},Ie.qv=function(a,y,x){if(this.mh(a)===y){var b=this.Ke;oa(a,b,x),ja(this,"nodeParentKey",Wo,b,a,y,x),typeof b=="string"&&this.La(a,b)}},Ie.fm=function(a){Hi.prototype.fm.call(this,a),a=this.wa(a);var y=Cp(this,a);if(y!==null){var x=Mi();for(y=y.iterator;y.next();){var b=y.value;if(this.lb(b)&&this.mh(b)===a){var E=this.Ke;ja(this,"nodeParentKey",Wo,E,b,a,a),typeof E=="string"&&this.La(b,E),x.push(b)}}for(y=0;y<x.length;y++)fc(this,a,x[y]);ui(x)}},Ie.em=function(a){Hi.prototype.em.call(this,a);var y=this.mh(a);y=this.Vl(y),this.hc(y)===null&&hc(this,y,a)},Ie.qp=function(a){Hi.prototype.qp.call(this,a);var y=this.mh(a);fc(this,y,a)},Ie.lm=function(a,y){Hi.prototype.lm.call(this,a,y),this.Ms(y,this.ss(a)),this.qe(y,this.mh(a))},Ie.Tl=function(){return!0},Ie.xs=function(){return!0},jt.Object.defineProperties(dl.prototype,{nodeParentKeyProperty:{get:function(){return this.Ke},set:function(a){var y=this.Ke;y!==a&&(this.Ke=a,this.g("nodeParentKeyProperty",y,a))}},Jj:{get:function(){return this.Nm},set:function(a){this.Nm!==a&&(this.Nm=a)}},parentLinkCategoryProperty:{get:function(){return this.nj},set:function(a){var y=this.nj;y!==a&&(this.nj=a,this.g("parentLinkCategoryProperty",y,a))}},linkCategoryProperty:{get:function(){return this.parentLinkCategoryProperty},set:function(a){this.parentLinkCategoryProperty=a}},type:{get:function(){return"TreeModel"}}}),dl.prototype.setParentLinkCategoryForNodeData=dl.prototype.Ms,dl.prototype.getParentLinkCategoryForNodeData=dl.prototype.ss,dl.prototype.setParentKeyForNodeData=dl.prototype.qe,dl.prototype.getParentKeyForNodeData=dl.prototype.mh,dl.className="TreeModel",$u.TreeModel=dl;function ha(a){sa.call(this),this.lw=this.Zm=this.lc=0,this.Wp=360,this.kw=ec,this.Ti=0,this.Zv=new Je,this.Jp=this.me=0,this.Xr=new Lp,this.gt=this.mj=0,this.ty=600,this.eo=NaN,this.Cm=1,this.ro=0,this.ul=360,this.Rb=ec,this.K=hl,this.nd=cg,this.hd=sy,this.tf=6,this.Nn=w0,a&&Object.assign(this,a)}Wt(ha,sa),ha.prototype.cloneProtected=function(a){sa.prototype.cloneProtected.call(this,a),a.eo=this.eo,a.Cm=this.Cm,a.ro=this.ro,a.ul=this.ul,a.Rb=this.Rb,a.K=this.K,a.nd=this.nd,a.hd=this.hd,a.tf=this.tf,a.Nn=this.Nn},ha.prototype.qb=function(a){a.classType===ha?a===b0||a===E0||a===S0||a===x0||a===cg?this.sorting=a:a===Uh||a===ug||a===hl||a===nh?this.direction=a:a===Nd||a===th||a===ec||a===tc?this.arrangement=a:(a===ff||a===w0)&&(this.nodeDiameterFormula=a):sa.prototype.qb.call(this,a)},ha.prototype.createNetwork=function(){return new dg(this)},ha.prototype.doLayout=function(a){if(this.network===null&&(this.network=this.makeNetwork(a)),this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin),a=this.network.vertexes,1>=a.count)a.count===1&&(a=a.first(),a.centerX=0,a.centerY=0);else{var y=new Dn;y.addAll(a.iterator),a=new Dn;var x=new Dn,b=this.sort(y),E,z,ee=this.Jp,re=this.arrangement,oe=this.nodeDiameterFormula,de=this.radius;(!isFinite(de)||0>=de)&&(de=NaN);var fe=this.aspectRatio;(!isFinite(fe)||0>=fe)&&(fe=1);var ye=this.startAngle;isFinite(ye)||(ye=0);var Ce=this.sweepAngle;if((!isFinite(Ce)||360<Ce||1>Ce)&&(Ce=360),y=this.spacing,isFinite(y)||(y=NaN),re===tc&&oe===ff?re=ec:re===tc&&oe!==ff&&(re=this.arrangement),(this.direction===Uh||this.direction===ug)&&this.sorting!==cg){for(oe=0;!(oe>=b.length)&&(a.add(b.M(oe)),!(oe+1>=b.length));oe+=2)x.add(b.M(oe+1));this.direction===Uh?(this.arrangement===tc&&a.reverse(),b=new Dn,b.addAll(a),b.addAll(x)):(this.arrangement===tc&&x.reverse(),b=new Dn,b.addAll(x),b.addAll(a))}oe=b.length;for(var Ne=z=E=0;Ne<b.length;Ne++){var Oe=ye+Ce*z*(this.direction===hl?1:-1)/oe,Ve=b.M(Ne).diameter;isNaN(Ve)&&(Ve=ih(b.M(Ne),Oe)),360>Ce&&(Ne===0||Ne===b.length-1)&&(Ve/=2),E+=Ve,z++}if(isNaN(de)||re===tc){if(isNaN(y)&&(y=6),re!==ec&&re!==tc){for(z=-1/0,ee=0;ee<oe;ee++)Ne=b.M(ee),E=b.M(ee===oe-1?0:ee+1),isNaN(Ne.diameter)&&ih(Ne,0),isNaN(E.diameter)&&ih(E,0),z=Math.max(z,(Ne.diameter+E.diameter)/2);ee=z+y,re===Nd?de=(z+y)/(2*Math.PI/oe):de=v0(this,ee*(360<=Ce?oe:oe-1),fe,ye*Math.PI/180,Ce*Math.PI/180)}else de=v0(this,E+(360<=Ce?oe:oe-1)*(re!==tc?y:1.6*y),fe,ye*Math.PI/180,Ce*Math.PI/180);z=de*fe}else if(z=de*fe,Ne=my(this,de,z,ye*Math.PI/180,Ce*Math.PI/180),isNaN(y))(re===ec||re===tc)&&(y=(Ne-E)/(360<=Ce?oe:oe-1));else if(re===ec||re===tc)Ne=(Ne-E)/(360<=Ce?oe:oe-1),Ne<y?(de=v0(this,E+y*(360<=Ce?oe:oe-1),fe,ye*Math.PI/180,Ce*Math.PI/180),z=de*fe):y=Ne;else{for(ee=-1/0,E=0;E<oe;E++)Oe=b.M(E),Ve=b.M(E===oe-1?0:E+1),isNaN(Oe.diameter)&&ih(Oe,0),isNaN(Ve.diameter)&&ih(Ve,0),ee=Math.max(ee,(Oe.diameter+Ve.diameter)/2);ee+=y,E=v0(this,ee*(360<=Ce?oe:oe-1),fe,ye*Math.PI/180,Ce*Math.PI/180),E>de?(de=E,z=de*fe):ee=Ne/(360<=Ce?oe:oe-1)}if(this.kw=re,this.lc=de,this.Zm=fe,this.lw=ye,this.Wp=Ce,this.Ti=y,this.me=z,this.Jp=ee,y=b,b=this.kw,re=this.lc,de=this.lw,fe=this.Wp,ye=this.Ti,Ce=this.me,oe=this.Jp,this.direction!==Uh&&this.direction!==ug||b!==tc)if(this.direction===Uh||this.direction===ug){switch(ee=0,b){case th:ee=180*y0(this,re,Ce,de,oe)/Math.PI;break;case ec:oe=y=0,ee=a.first(),ee!==null&&(y=ih(ee,Math.PI/2)),ee=x.first(),ee!==null&&(oe=ih(ee,Math.PI/2)),ee=180*y0(this,re,Ce,de,ye+(y+oe)/2)/Math.PI;break;case Nd:ee=fe/y.length}if(this.direction===Uh){switch(b){case th:kp(this,a,de,nh);break;case ec:Np(this,a,de,nh);break;case Nd:Pp(this,a,fe/2,de,nh)}switch(b){case th:kp(this,x,de+ee,hl);break;case ec:Np(this,x,de+ee,hl);break;case Nd:Pp(this,x,fe/2,de+ee,hl)}}else{switch(b){case th:kp(this,x,de,nh);break;case ec:Np(this,x,de,nh);break;case Nd:Pp(this,x,fe/2,de,nh)}switch(b){case th:kp(this,a,de+ee,hl);break;case ec:Np(this,a,de+ee,hl);break;case Nd:Pp(this,a,fe/2,de+ee,hl)}}}else switch(b){case th:kp(this,y,de,this.direction);break;case ec:Np(this,y,de,this.direction);break;case Nd:Pp(this,y,fe,de,this.direction);break;case tc:_1(this,y,fe,de,this.direction)}else _1(this,y,fe,de-fe/2,hl)}this.updateParts(),this.network=null,this.isValidLayout=!0};function Pp(a,y,x,b,E){var z=a.Wp,ee=a.lc;a=a.me,b=b*Math.PI/180,x=x*Math.PI/180;for(var re=y.length,oe=0;oe<re;oe++){var de=b+(E===hl?oe*x/(360<=z?re:re-1):-(oe*x)/re),fe=y.M(oe),ye=ee*Math.tan(de)/a;ye=Math.sqrt((ee*ee+a*a*ye*ye)/(1+ye*ye)),fe.centerX=ye*Math.cos(de),fe.centerY=ye*Math.sin(de),fe.actualAngle=180*de/Math.PI}}function Np(a,y,x,b){var E=a.lc,z=a.me,ee=a.Ti;x=x*Math.PI/180;for(var re=y.length,oe=0;oe<re;oe++){var de=y.M(oe),fe=y.M(oe===re-1?0:oe+1),ye=z*Math.sin(x);de.centerX=E*Math.cos(x),de.centerY=ye,de.actualAngle=180*x/Math.PI,isNaN(de.diameter)&&ih(de,0),isNaN(fe.diameter)&&ih(fe,0),de=y0(a,E,z,b===hl?x:-x,(de.diameter+fe.diameter)/2+ee),x+=b===hl?de:-de}}function kp(a,y,x,b){var E=a.lc,z=a.me,ee=a.Jp;x=x*Math.PI/180;for(var re=y.length,oe=0;oe<re;oe++){var de=y.M(oe);de.centerX=E*Math.cos(x),de.centerY=z*Math.sin(x),de.actualAngle=180*x/Math.PI,de=y0(a,E,z,b===hl?x:-x,ee),x+=b===hl?de:-de}}function _1(a,y,x,b,E){var z=a.Wp;if(a.mj=0,a.Xr=new Lp,360>x){for(z=b+(E===hl?z:-z);0>z;)z+=360;z%=360,180<z&&(z-=360),z*=Math.PI/180,a.gt=z,z1(a,y,x,b,E)}else U1(a,y,x,b,E);a.Xr.commit(y)}function U1(a,y,x,b,E){var z=a.lc,ee=a.Ti,re=a.Zm,oe=z*Math.cos(b*Math.PI/180),de=a.me*Math.sin(b*Math.PI/180),fe=y.Fa();if(fe.length===3)fe[0].centerX=z,fe[0].centerY=0,fe[1].centerX=fe[0].centerX-fe[0].width/2-fe[1].width/2-ee,fe[1].y=fe[0].y,fe[2].centerX=(fe[0].centerX+fe[1].centerX)/2,fe[2].y=fe[0].y-fe[2].height-ee;else if(fe.length===4)fe[0].centerX=z,fe[0].centerY=0,fe[2].centerX=-fe[0].centerX,fe[2].centerY=fe[0].centerY,fe[1].centerX=0,fe[1].y=Math.min(fe[0].y,fe[2].y)-fe[1].height-ee,fe[3].centerX=0,fe[3].y=Math.max(fe[0].y+fe[0].height+ee,fe[2].y+fe[2].height+ee);else{z=Je.alloc();for(var ye=0;ye<fe.length&&(fe[ye].centerX=oe,fe[ye].centerY=de,!(ye>=fe.length-1));ye++)H1(a,oe,de,fe,ye,E,z)||j1(a,oe,de,fe,ye,E,z),oe=z.x,de=z.y;if(Je.free(z),a.mj++,!(23<a.mj)){oe=fe[0].centerX,de=fe[0].centerY,z=fe[fe.length-1].centerX,ye=fe[fe.length-1].centerY;var Ce=Math.abs(oe-z)-((fe[0].width+fe[fe.length-1].width)/2+ee),Ne=Math.abs(de-ye)-((fe[0].height+fe[fe.length-1].height)/2+ee);ee=0,1>Math.abs(Ne)?Math.abs(oe-z)<(fe[0].width+fe[fe.length-1].width)/2&&(ee=0):ee=0<Ne?Ne:1>Math.abs(Ce)?0:Ce,oe=Math.abs(z)>Math.abs(ye)?0<z!=de>ye:0<ye!=oe<z,(oe=E===hl?oe:!oe)&&(ee=-Math.abs(ee),ee=Math.min(ee,-fe[fe.length-1].width),ee=Math.min(ee,-fe[fe.length-1].height)),a.Xr.compare(ee,fe),1<Math.abs(ee)&&(a.lc=8>a.mj?a.lc-ee/(2*Math.PI):5>fe.length&&10<ee?a.lc/2:a.lc-(0<ee?1.7:-2.3),a.me=a.lc*re,U1(a,y,x,b,E))}}}function z1(a,y,x,b,E){for(var z=a.lc,ee=a.me,re=a.Zm,oe=z*Math.cos(b*Math.PI/180),de=ee*Math.sin(b*Math.PI/180),fe=Je.alloc(),ye=y.Fa(),Ce=0;Ce<ye.length&&(ye[Ce].centerX=oe,ye[Ce].centerY=de,!(Ce>=ye.length-1));Ce++)H1(a,oe,de,ye,Ce,E,fe)||j1(a,oe,de,ye,Ce,E,fe),oe=fe.x,de=fe.y;if(Je.free(fe),a.mj++,!(23<a.mj)){if(oe=Math.atan2(de,oe),oe=E===hl?a.gt-oe:oe-a.gt,oe=Math.abs(oe)<Math.abs(oe-2*Math.PI)?oe:oe-2*Math.PI,z=oe*(z+ee)/2,ee=a.Xr,Math.abs(z)<Math.abs(ee.Pl))for(ee.Pl=z,ee.mk=[],ee.tm=[],oe=0;oe<ye.length;oe++)ee.mk[oe]=ye[oe].bounds.x,ee.tm[oe]=ye[oe].bounds.y;1<Math.abs(z)&&(a.lc=8>a.mj?a.lc-z/(2*Math.PI):a.lc-(0<z?1.7:-2.3),a.me=a.lc*re,z1(a,y,x,b,E))}}function H1(a,y,x,b,E,z,ee){var re=a.lc,oe=a.me,de=0;a=(b[E].width+b[E+1].width)/2+a.Ti;var fe=!1;if(0<=x!=(z===hl)){if(z=y+a,z>re){if(z=y-a,z<-re)return ee.x=z,ee.y=de,!1;fe=!0}}else if(z=y-a,z<-re){if(z=y+a,z>re)return ee.x=z,ee.y=de,!1;fe=!0}return de=Math.sqrt(1-Math.min(1,z*z/(re*re)))*oe,0>x!==fe&&(de=-de),Math.abs(x-de)>(b[E].height+b[E+1].height)/2?(ee.x=z,ee.y=de,!1):(ee.x=z,ee.y=de,!0)}function j1(a,y,x,b,E,z,ee){var re=a.lc,oe=a.me,de=0;if(a=(b[E].height+b[E+1].height)/2+a.Ti,b=!1,0<=y!=(z===hl)){if(z=x-a,z<-oe){if(z=x+a,z>oe){ee.x=de,ee.y=z;return}b=!0}}else if(z=x+a,z>oe){if(z=x-a,z<-oe){ee.x=de,ee.y=z;return}b=!0}de=Math.sqrt(1-Math.min(1,z*z/(oe*oe)))*re,0>y!==b&&(de=-de),ee.x=de,ee.y=z}ha.prototype.commitLayout=function(){this.commitNodes(),this.isRouting&&this.commitLinks()},ha.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 Je(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 E=b.value;E.x+=x.x,E.y+=x.y,E.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))},ha.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()};function my(a,y,x,b,E){var z=a.ty;if(.001>Math.abs(a.Zm-1))return b!==void 0&&E!==void 0?E*y:2*Math.PI*y;a=y>x?Math.sqrt(y*y-x*x)/y:Math.sqrt(x*x-y*y)/x;for(var ee=0,re=b!==void 0&&E!==void 0?E/(z+1):Math.PI/(2*(z+1)),oe=0,de=0;de<=z;de++){b!==void 0&&E!==void 0?oe=b+de*E/z:oe=de*Math.PI/(2*z);var fe=Math.sin(oe);ee+=Math.sqrt(1-a*a*fe*fe)*re}return b!==void 0&&E!==void 0?(y>x?y:x)*ee:4*(y>x?y:x)*ee}function v0(a,y,x,b,E){return y/(b!==void 0&&E!==void 0?my(a,1,x,b,E):my(a,1,x))}function y0(a,y,x,b,E){if(.001>Math.abs(a.Zm-1))return E/y;var z=y>x?Math.sqrt(y*y-x*x)/y:Math.sqrt(x*x-y*y)/x,ee=0;a=2*Math.PI/(700*a.network.vertexes.count),y>x&&(b+=Math.PI/2);for(var re=0;;re++){var oe=Math.sin(b+re*a);if(ee+=(y>x?y:x)*Math.sqrt(1-z*z*oe*oe)*a,ee>=E)return re*a}}ha.prototype.sort=function(a){switch(this.sorting){case S0:break;case x0:a.reverse();break;case b0:a.sort(this.comparer);break;case E0:a.sort(this.comparer),a.reverse();break;case cg:return this.ak(Gx(a));default:vt("Invalid sorting type.")}return a};function Gx(a){for(var y=[],x=0;x<a.length;x++)y.push(0);x=new Dn;for(var b=0;b<a.length;b++){var E=-1,z=-1;if(b===0)for(var ee=0;ee<a.length;ee++){var re=a.M(ee).edgesCount;re>E&&(E=re,z=ee)}else for(ee=0;ee<a.length;ee++)re=y[ee],re>E&&(E=re,z=ee);for(x.add(a.M(z)),y[z]=-1,z=a.M(z),ee=z.sourceEdges;ee.next();)E=a.indexOf(ee.value.fromVertex),0>E||0<=y[E]&&y[E]++;for(z=z.destinationEdges;z.next();)E=a.indexOf(z.value.toVertex),0>E||0<=y[E]&&y[E]++}return x}ha.prototype.ak=function(a){for(var y=[],x=0;x<a.length;x++){var b=a.M(x);y[x]=[];for(var E,z=b.destinationEdges;z.next();)E=a.indexOf(z.value.toVertex),E!==x&&0>y[x].indexOf(E)&&y[x].push(E);for(b=b.sourceEdges;b.next();)E=a.indexOf(b.value.fromVertex),E!==x&&0>y[x].indexOf(E)&&y[x].push(E)}for(z=[],x=0;x<y.length;x++)z[x]=0;x=[];var ee=[],re=[];b=[],E=new Dn;for(var oe=0,de=0;de<y.length;de++){var fe=y[de].length;if(fe===1)b.push(de);else if(fe===0)E.add(a.M(de));else{if(oe===0)x.push(de);else{for(var ye=fe=1/0,Ce=-1,Ne=[],Oe=0;Oe<x.length;Oe++)0>y[x[Oe]].indexOf(x[Oe===x.length-1?0:Oe+1])&&Ne.push(Oe===x.length-1?0:Oe+1);if(Ne.length===0)for(Oe=0;Oe<x.length;Oe++)Ne.push(Oe);for(Oe=0;Oe<Ne.length;Oe++){for(var Ve=Ne[Oe],ft=y[de],lt=0,mt=0;mt<ee.length;mt++){var St=z[ee[mt]],Ct=z[re[mt]];if(St<Ct){var Rt=St;St=Ct}else Rt=Ct;if(Rt<Ve&&Ve<=St)for(Ct=0;Ct<ft.length;Ct++){var $t=ft[Ct];0>x.indexOf($t)||Rt<z[$t]&&z[$t]<St||Rt===z[$t]||St===z[$t]||lt++}else for(Ct=0;Ct<ft.length;Ct++)$t=ft[Ct],0>x.indexOf($t)||Rt<z[$t]&&z[$t]<St&&Rt!==z[$t]&&St!==z[$t]&<++}for(ft=lt,mt=lt=0;mt<y[de].length;mt++)Rt=x.indexOf(y[de][mt]),0<=Rt&&(Rt=Math.abs(Ve-(Rt>=Ve?Rt+1:Rt)),lt+=Rt<x.length+1-Rt?Rt:x.length+1-Rt);for(mt=0;mt<ee.length;mt++)Rt=z[ee[mt]],St=z[re[mt]],Rt>=Ve&&Rt++,St>=Ve&&St++,Rt>St&&(Ct=St,St=Rt,Rt=Ct),St-Rt<(x.length+2)/2==(Rt<Ve&&Ve<=St)&<++;(ft<fe||ft===fe&<<ye)&&(fe=ft,ye=lt,Ce=Ve)}for(x.splice(Ce,0,de),fe=0;fe<x.length;fe++)z[x[fe]]=fe;for(fe=0;fe<y[de].length;fe++)ye=y[de][fe],0<=x.indexOf(ye)&&(ee.push(de),re.push(ye))}oe++}}for(ee=x.length;;){for(z=!0,re=0;re<b.length;re++)if(oe=b[re],de=y[oe][0],fe=x.indexOf(de),0<=fe){for(Ce=ye=0;Ce<y[de].length;Ce++)Ne=x.indexOf(y[de][Ce]),0>Ne||Ne===fe||(Oe=Ne>fe?Ne-fe:fe-Ne,ye+=Ne<fe!=Oe>ee-Oe?1:-1);x.splice(0>ye?fe:fe+1,0,oe),b.splice(re,1),re--}else z=!1;if(z)break;x.push(b[0]),b.splice(0,1)}for(y=0;y<x.length;y++)E.add(a.M(x[y]));return E},jt.Object.defineProperties(ha.prototype,{radius:{get:function(){return this.eo},set:function(a){this.eo!==a&&(0<a||isNaN(a))&&(this.eo=a,this.C())}},aspectRatio:{get:function(){return this.Cm},set:function(a){this.Cm!==a&&0<a&&(this.Cm=a,this.C())}},startAngle:{get:function(){return this.ro},set:function(a){this.ro!==a&&(this.ro=a,this.C())}},sweepAngle:{get:function(){return this.ul},set:function(a){this.ul!==a&&(0<a&&360>=a?this.ul=a:this.ul=360,this.C())}},arrangement:{get:function(){return this.Rb},set:function(a){this.Rb===a||a!==tc&&a!==ec&&a!==th&&a!==Nd||(this.Rb=a,this.C())}},direction:{get:function(){return this.K},set:function(a){this.K===a||a!==hl&&a!==nh&&a!==Uh&&a!==ug||(this.K=a,this.C())}},sorting:{get:function(){return this.nd},set:function(a){this.nd===a||a!==S0&&a!==x0&&a!==b0&&!E0&&a!==cg||(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!==w0&&a!==ff||(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 ec=new mn(ha,"ConstantSpacing",0),th=new mn(ha,"ConstantDistance",1),Nd=new mn(ha,"ConstantAngle",2),tc=new mn(ha,"Packed",3),hl=new mn(ha,"Clockwise",4),nh=new mn(ha,"Counterclockwise",5),Uh=new mn(ha,"BidirectionalLeft",6),ug=new mn(ha,"BidirectionalRight",7),S0=new mn(ha,"Forwards",8),x0=new mn(ha,"Reverse",9),b0=new mn(ha,"Ascending",10),E0=new mn(ha,"Descending",11),cg=new mn(ha,"Optimized",12),w0=new mn(ha,"Pythagorean",13),ff=new mn(ha,"Circular",14);ha.className="CircularLayout",ha.ConstantSpacing=ec,ha.ConstantDistance=th,ha.ConstantAngle=Nd,ha.Packed=tc,ha.Clockwise=hl,ha.Counterclockwise=nh,ha.BidirectionalLeft=Uh,ha.BidirectionalRight=ug,ha.Forwards=S0,ha.Reverse=x0,ha.Ascending=b0,ha.Descending=E0,ha.Optimized=cg,ha.Pythagorean=w0,ha.Circular=ff;function Lp(){this.Pl=-1/0,this.tm=this.mk=null}Lp.prototype.compare=function(a,y){if(0<a&&0>this.Pl||Math.abs(a)<Math.abs(this.Pl)&&!(0>a&&0<this.Pl))for(this.Pl=a,this.mk=[],this.tm=[],a=0;a<y.length;a++)this.mk[a]=y[a].bounds.x,this.tm[a]=y[a].bounds.y},Lp.prototype.commit=function(a){if(this.mk!==null&&this.tm!==null)for(var y=0;y<this.mk.length;y++){var x=a.M(y);x.x=this.mk[y],x.y=this.tm[y]}},Lp.className="VertexArrangement";function dg(a){Zo.call(this,a)}Wt(dg,Zo),dg.prototype.createVertex=function(){return new Ip(this)},dg.prototype.createEdge=function(){return new C0(this)},dg.className="CircularNetwork";function Ip(a){Ka.call(this,a),this.u=this.Si=NaN}Wt(Ip,Ka);function ih(a,y){var x=a.network;if(x===null)return NaN;if(x=x.layout,x===null)return NaN;if(x.arrangement===tc)if(x.nodeDiameterFormula===ff)a.Si=Math.max(a.width,a.height);else{if(x=Math.abs(Math.sin(y)),y=Math.abs(Math.cos(y)),x===0)return a.width;if(y===0)return a.height;a.Si=Math.min(a.height/x,a.width/y)}else a.Si=x.nodeDiameterFormula===ff?Math.max(a.width,a.height):Math.sqrt(a.width*a.width+a.height*a.height);return a.Si}jt.Object.defineProperties(Ip.prototype,{diameter:{get:function(){return this.Si},set:function(a){this.Si!==a&&(this.Si=a)}},actualAngle:{get:function(){return this.u},set:function(a){this.u!==a&&(this.u=a)}}}),Ip.className="CircularVertex";function C0(a){Vl.call(this,a)}Wt(C0,Vl),C0.className="CircularEdge";function Is(a){sa.call(this),this.ah=null,this.An=0,this.$d=new Ln(100,100).freeze(),this.Bm=!1,this.sf=!0,this.td=!1,this.dl=100,this.$m=1,this.Zf=1e3,this.In=10,this.fo=Math,this.Hk=.05,this.Gk=50,this.Ek=150,this.Fk=0,this.Vm=10,this.Um=5,a&&Object.assign(this,a)}Wt(Is,sa),Is.prototype.cloneProtected=function(a){sa.prototype.cloneProtected.call(this,a),a.$d.assign(this.$d),a.Bm=this.Bm,a.sf=this.sf,a.td=this.td,a.dl=this.dl,a.$m=this.$m,a.Zf=this.Zf,a.In=this.In,a.fo=this.fo,a.Hk=this.Hk,a.Gk=this.Gk,a.Ek=this.Ek,a.Fk=this.Fk,a.Vm=this.Vm,a.Um=this.Um},Is.prototype.createNetwork=function(){return new gf(this)},Is.prototype.doLayout=function(a){if(this.network===null&&(this.network=this.makeNetwork(a)),a=this.maxIterations,0<this.network.vertexes.count){this.network.Ko();for(var y=this.network.vertexes.iterator;y.next();){var x=y.value;x.charge=this.electricalCharge(x),x.mass=this.gravitationalMass(x)}for(y=this.network.edges.iterator;y.next();)x=y.value,x.stiffness=this.springStiffness(x),x.length=this.springLength(x);if(this.Cu(),this.An=0,this.needsClusterLayout()){y=this.network,x=y.Zx();for(var b=x.iterator;b.next();){this.network=b.value;for(var E=this.network.vertexes.iterator;E.next();){var z=E.value;z.Vd=z.vertexes.count,z.sh=1,z.Hj=null,z.We=null}G1(this,0,a)}this.network=y;var ee=b=x.iterator;b=this.arrangementSpacing;var re=ee.count,oe=!0;z=E=0;for(var de=Mi(),fe=0;fe<re+y.vertexes.count+2;fe++)de[fe]=null;re=0,ee.reset();for(var ye=tn.alloc();ee.next();)if(fe=ee.value,this.computeBounds(fe,ye),oe)oe=!1,E=ye.x+ye.width/2,z=ye.y+ye.height/2,de[0]=new Je(ye.x+ye.width+b.width,ye.y),de[1]=new Je(ye.x,ye.y+ye.height+b.height),re=2;else{var Ce=W1(de,re,E,z,ye.width,ye.height,b),Ne=de[Ce],Oe=new Je(Ne.x+ye.width+b.width,Ne.y),Ve=new Je(Ne.x,Ne.y+ye.height+b.height);for(Ce+1<re&&de.splice(Ce+1,0,null),de[Ce]=Oe,de[Ce+1]=Ve,re++,Ce=Ne.x-ye.x,Ne=Ne.y-ye.y,fe=fe.vertexes.iterator;fe.next();)Oe=fe.value,Oe.centerX+=Ce,Oe.centerY+=Ne}for(tn.free(ye),fe=y.vertexes.iterator;fe.next();)ee=fe.value,Ce=ee.bounds,2>re?(E=Ce.x+Ce.width/2,z=Ce.y+Ce.height/2,de[0]=new Je(Ce.x+Ce.width+b.width,Ce.y),de[1]=new Je(Ce.x,Ce.y+Ce.height+b.height),re=2):(oe=W1(de,re,E,z,Ce.width,Ce.height,b),ye=de[oe],Ne=new Je(ye.x+Ce.width+b.width,ye.y),Ce=new Je(ye.x,ye.y+Ce.height+b.height),oe+1<re&&de.splice(oe+1,0,null),de[oe]=Ne,de[oe+1]=Ce,re++,ee.centerX=ye.x+ee.width/2,ee.centerY=ye.y+ee.height/2);for(ui(de),b=x.iterator;b.next();){for(x=b.value,E=x.vertexes.iterator;E.next();)y.dh(E.value);for(x=x.edges.iterator;x.next();)y.Bo(x.value)}}Y1(this,a),this.updateParts()}this.dl=a,this.network=null,this.isValidLayout=!0},Is.prototype.needsClusterLayout=function(){if(3>this.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++,2<a))return!0;if(10<y)break;y++}return!1},Is.prototype.computeBounds=function(a,y){var x=!0;for(a=a.vertexes.iterator;a.next();){var b=a.value;x?(x=!1,y.set(b.bounds)):y.ed(b.bounds)}return y};function G1(a,y,x){if(Wx(a,y)){var b=a.Zf;a.Zf*=1+1/(y+1);var E=Vx(a,y),z=Math.max(0,Math.max(Math.min(a.network.vertexes.count,x*(y+1)/11),10));for(a.maxIterations+=z,G1(a,y+1,x),Y1(a,z),Yx(a,E),y=E.vertexes.Fa(),y.sort(function(ee,re){return ee===null||re===null||ee===re?0:re.Vd-ee.Vd}),x=0;x<y.length;x++)Kx(a,y[x]);a.Zf=b}}function Wx(a,y){if(10<y||3>a.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<a.length-y}function Vx(a,y){for(var x=a.network,b=new gf(a),E=0;E<a.ah.length;E++){var z=a.ah[E];if(1<z.Vd){b.dh(z);var ee=new K1;ee.Rs=z.Vd,ee.Ss=z.width,ee.Qs=z.height,ee.Sv=z.focus.x,ee.Tv=z.focus.y,z.We===null&&(z.We=new Dn),z.We.add(ee),z.sv=z.We.count-1}else break}for(z=x.edges.iterator;z.next();){var re=z.value;E=re.fromVertex,ee=re.toVertex,E.network===b&&ee.network===b?b.Bo(re):E.network===b?(re=E.Hj,re===null&&(re=new Dn,E.Hj=re),re.add(ee),E.Vd--,E.sh+=ee.sh):ee.network===b&&(re=ee.Hj,re===null&&(re=new Dn,ee.Hj=re),re.add(E),ee.Vd--,ee.sh+=E.sh)}for(E=b.edges.iterator;E.next();)z=E.value,z.length*=Math.max(1,Bt.sqrt((z.fromVertex.sh+z.toVertex.sh)/(4*y+1)));for(y=b.vertexes.iterator;y.next();){E=y.value;var oe=E.Hj;if(oe!==null&&0<oe.count&&(ee=E.We.M(E.We.count-1).Rs-E.Vd,!(0>=ee))){for(var de=re=0,fe=oe.count-ee;fe<oe.count;fe++){var ye=oe.M(fe),Ce=null;for(z=ye.edges.iterator;z.next();){var Ne=z.value;if(Ne.Ax(ye)===E){Ce=Ne;break}}Ce!==null&&(de+=Ce.length,re+=ye.width*ye.height)}z=E.centerX,oe=E.centerY,fe=E.width,ye=E.height,Ce=E.focus,Ne=fe*ye,1>Ne&&(Ne=1),re=Bt.sqrt((re+Ne+de*de*4/(ee*ee))/Ne),ee=(re-1)*fe/2,re=(re-1)*ye/2,E.bounds=new tn(z-Ce.x-ee,oe-Ce.y-re,fe+2*ee,ye+2*re),E.focus=new Je(Ce.x+ee,Ce.y+re)}}return a.network=b,x}function Yx(a,y){for(var x=a.network.vertexes.iterator;x.next();){var b=x.value;if(b.network=y,b.We!==null){var E=b.We.M(b.sv);b.Vd=E.Rs;var z=E.Sv,ee=E.Tv;b.bounds=new tn(b.centerX-z,b.centerY-ee,E.Ss,E.Qs),b.focus=new Je(z,ee),b.sv--}}for(x=a.network.edges.iterator;x.next();)x.value.network=y;a.network=y}function Kx(a,y){var x=y.Hj;if(x!==null&&x.count!==0){var b=y.centerX,E=y.centerY,z=y.width,ee=y.height;y.We!==null&&0<y.We.count&&(ee=y.We.M(0),z=ee.Ss,ee=ee.Qs),z=Bt.sqrt(z*z+ee*ee)/2;for(var re=!1,oe=ee=0,de=0,fe=y.vertexes.iterator;fe.next();){var ye=fe.value;1>=ye.Vd?oe++:(re=!0,de++,ee+=Math.atan2(y.centerY-ye.centerY,y.centerX-ye.centerX))}if(oe!==0){for(0<de&&(ee/=de),de=y=0,y=re?2*Math.PI/(oe+1):2*Math.PI/oe,oe%2===0&&(de=y/2),1<x.count&&x.sort(function(Ne,Oe){return Ne===null||Oe===null||Ne===Oe?0:Oe.width*Oe.height-Ne.width*Ne.height}),re=oe%2===0?0:1,x=x.iterator;x.next();)if(oe=x.value,!(1<oe.Vd||a.isFixed(oe))){for(fe=null,ye=oe.edges.iterator;ye.next();){fe=ye.value;break}ye=oe.width;var Ce=oe.height;ye=Bt.sqrt(ye*ye+Ce*Ce)/2,fe=z+fe.length+ye,ye=ee+(y*(re/2>>1)+de)*(re%2===0?1:-1),oe.centerX=b+fe*Math.cos(ye),oe.centerY=E+fe*Math.sin(ye),re++}}}}function W1(a,y,x,b,E,z,ee){var re=9e19,oe=-1,de=0;e:for(;de<y;de++){var fe=a[de],ye=fe.x-x,Ce=fe.y-b;if(ye=ye*ye+Ce*Ce,ye<re){for(Ce=de-1;0<=Ce;Ce--)if(a[Ce].y>fe.y&&a[Ce].x-fe.x<E+ee.width)continue e;for(Ce=de+1;Ce<y;Ce++)if(a[Ce].x>fe.x&&a[Ce].y-fe.y<z+ee.height)continue e;oe=de,re=ye}}return oe}Is.prototype.Cu=function(){if(this.comments)for(var a=this.network.vertexes.iterator;a.next();)this.addComments(a.value)},Is.prototype.addComments=function(a){var y=a.node;if(y!==null)for(y=y.Mu();y.next();){var x=y.value;if(x.category==="Comment"&&x.isVisible()){var b=this.network.ki(x);b===null&&(b=this.network.Bl(x)),b.charge=this.defaultCommentElectricalCharge,x=null;for(var E=b.destinationEdges;E.next();){var z=E.value;if(z.toVertex===a){x=z;break}}if(x===null){for(E=b.sourceEdges;E.next();)if(z=E.value,z.fromVertex===a){x=z;break}}x===null&&(x=this.network.Zj(a,b,null)),x.length=this.defaultCommentSpringLength}}};function V1(a,y){var x=a.bounds,b=x.x;a=x.y;var E=x.width;x=x.height;var z=y.bounds,ee=z.x;y=z.y;var re=z.width;return z=z.height,b+E<ee?a>y+z?(x=b+E-ee,a=a-y-z,Bt.sqrt(x*x+a*a)):a+x<y?(b=b+E-ee,a=a+x-y,Bt.sqrt(b*b+a*a)):ee-(b+E):b>ee+re?a>y+z?(x=b-ee-re,a=a-y-z,Bt.sqrt(x*x+a*a)):a+x<y?(b=b-ee-re,a=a+x-y,Bt.sqrt(b*b+a*a)):b-(ee+re):a>y+z?a-(y+z):a+x<y?y-(a+x):.1}function Y1(a,y){for(a.ah=null,y=a.An+y;a.An<y&&(a.An++,Zx(a)););a.ah=null}function Zx(a){a.ah===null&&(a.ah=a.network.vertexes.Fa());var y=a.ah;if(0>=y.length)return!1;var x=y[0];x.forceX=0,x.forceY=0;for(var b=x.centerX,E=b,z=x=x.centerY,ee=1;ee<y.length;ee++){var re=y[ee];re.forceX=0,re.forceY=0;var oe=re.centerX;re=re.centerY,b=Math.min(b,oe),E=Math.max(E,oe),x=Math.min(x,re),z=Math.max(z,re)}(E=E-b>z-x)?y.sort(function(Ve,ft){return Ve===null||ft===null||Ve===ft?0:Ve.centerX-ft.centerX}):y.sort(function(Ve,ft){return Ve===null||ft===null||Ve===ft?0:Ve.centerY-ft.centerY}),x=a.Zf;var de=b=re=0;for(z=0;z<y.length;z++){ee=y[z],b=ee.bounds,re=ee.focus,oe=b.x+re.x;var fe=b.y+re.y;b=ee.charge*a.electricalFieldX(oe,fe),de=ee.charge*a.electricalFieldY(oe,fe),b+=ee.mass*a.gravitationalFieldX(oe,fe),de+=ee.mass*a.gravitationalFieldY(oe,fe),ee.forceX+=b,ee.forceY+=de;for(var ye=z+1;ye<y.length;ye++){var Ce=y[ye];if(Ce!==ee){b=Ce.bounds,re=Ce.focus,de=b.x+re.x;var Ne=b.y+re.y;if(oe-de>x||de-oe>x){if(E)break}else if(fe-Ne>x||Ne-fe>x){if(!E)break}else{var Oe=V1(ee,Ce);1>Oe?(b=a.randomNumberGenerator,b===null&&(a.randomNumberGenerator=b=new T0),Oe=b.random(),re=b.random(),oe>de?(b=Math.abs(Ce.bounds.right-ee.bounds.x),b=(1+b)*Oe):oe<de?(b=Math.abs(Ce.bounds.x-ee.bounds.right),b=-(1+b)*Oe):(b=Math.max(Ce.width,ee.width),b=(1+b)*Oe-b/2),fe>Ne?(de=Math.abs(Ce.bounds.bottom-ee.bounds.y),de=(1+de)*re):oe<de?(de=Math.abs(Ce.bounds.y-ee.bounds.bottom),de=-(1+de)*re):(de=Math.max(Ce.height,ee.height),de=(1+de)*re-de/2)):(re=-(ee.charge*Ce.charge)/(Oe*Oe),b=(de-oe)/Oe*re,de=(Ne-fe)/Oe*re),ee.forceX+=b,ee.forceY+=de,Ce.forceX-=b,Ce.forceY-=de}}}}for(E=a.network.edges.iterator;E.next();)re=E.value,x=re.fromVertex,z=re.toVertex,ee=x.bounds,oe=x.focus,b=ee.x+oe.x,ee=ee.y+oe.y,fe=z.bounds,ye=z.focus,oe=fe.x+ye.x,fe=fe.y+ye.y,ye=V1(x,z),1>ye?(ye=a.randomNumberGenerator,ye===null&&(a.randomNumberGenerator=ye=new T0),re=ye.random(),ye=ye.random(),b=(b>oe?1:-1)*(1+(z.width>x.width?z.width:x.width))*re,de=(ee>fe?1:-1)*(1+(z.height>x.height?z.height:x.height))*ye):(re=re.stiffness*(ye-re.length),b=(oe-b)/ye*re,de=(fe-ee)/ye*re),x.forceX+=b,x.forceY+=de,z.forceX-=b,z.forceY-=de;for(E=b=0;E<y.length;E++)x=y[E],a.isFixed(x)?a.moveFixedVertex(x):b=Math.max(b,a.moveVertex(x)||0);return b>a.epsilonDistance*a.epsilonDistance}Is.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},Is.prototype.moveFixedVertex=function(){},Is.prototype.commitLayout=function(){this.yv(),this.commitNodes(),this.isRouting&&this.commitLinks()},Is.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)}},Is.prototype.commitNodes=function(){var a=0,y=0;if(this.arrangesToOrigin){var x=tn.alloc();this.computeBounds(this.network,x),y=this.arrangementOrigin,a=y.x-x.x,y=y.y-x.y,tn.free(x)}x=tn.alloc();for(var b=this.network.vertexes.iterator;b.next();){var E=b.value;(a!==0||y!==0)&&(x.assign(E.bounds),x.x+=a,x.y+=y,E.bounds=x),E.commit()}tn.free(x)},Is.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()},Is.prototype.springStiffness=function(a){return a=a.stiffness,isNaN(a)?this.Hk:a},Is.prototype.springLength=function(a){return a=a.length,isNaN(a)?this.Gk:a},Is.prototype.electricalCharge=function(a){return a=a.charge,isNaN(a)?this.Ek:a},Is.prototype.electricalFieldX=function(){return 0},Is.prototype.electricalFieldY=function(){return 0},Is.prototype.gravitationalMass=function(a){return a=a.mass,isNaN(a)?this.Fk:a},Is.prototype.gravitationalFieldX=function(){return 0},Is.prototype.gravitationalFieldY=function(){return 0},Is.prototype.isFixed=function(a){return a.isFixed},jt.Object.defineProperties(Is.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&&0<a&&(this.$m=a,this.C())}},infinityDistance:{get:function(){return this.Zf},set:function(a){this.Zf!==a&&1<a&&(this.Zf=a,this.C())}},moveLimit:{get:function(){return this.In},set:function(a){this.In!==a&&1<a&&(this.In=a,this.C())}},randomNumberGenerator:{get:function(){return this.fo},set:function(a){this.fo!==a&&(a!==null&&typeof a.random!="function"&&vt('ForceDirectedLayout.randomNumberGenerator must have a "random()" function on it: '+a),this.fo=a)}},defaultSpringStiffness:{get:function(){return this.Hk},set:function(a){this.Hk!==a&&(this.Hk=a,this.C())}},defaultSpringLength:{get:function(){return this.Gk},set:function(a){this.Gk!==a&&(this.Gk=a,this.C())}},defaultElectricalCharge:{get:function(){return this.Ek},set:function(a){this.Ek!==a&&(this.Ek=a,this.C())}},defaultGravitationalMass:{get:function(){return this.Fk},set:function(a){this.Fk!==a&&(this.Fk=a,this.C())}},defaultCommentSpringLength:{get:function(){return this.Vm},set:function(a){this.Vm!==a&&(this.Vm=a,this.C())}},defaultCommentElectricalCharge:{get:function(){return this.Um},set:function(a){this.Um!==a&&(this.Um=a,this.C())}}}),Is.className="ForceDirectedLayout";function K1(){this.Tv=this.Sv=this.Qs=this.Ss=this.Rs=0}K1.className="ForceDirectedSubnet";function gf(a){Zo.call(this,a)}Wt(gf,Zo),gf.prototype.createVertex=function(){return new Mp(this)},gf.prototype.createEdge=function(){return new Rp(this)},gf.className="ForceDirectedNetwork";function Mp(a){Ka.call(this,a),this.ia=!1,this.Ha=this.u=NaN,this.sh=this.Vd=this.V=this.F=0,this.We=this.Hj=null,this.sv=0}Wt(Mp,Ka),jt.Object.defineProperties(Mp.prototype,{isFixed:{get:function(){return this.ia},set:function(a){this.ia!==a&&(this.ia=a)}},charge:{get:function(){return this.u},set:function(a){this.u!==a&&(this.u=a)}},mass:{get:function(){return this.Ha},set:function(a){this.Ha!==a&&(this.Ha=a)}},forceX:{get:function(){return this.F},set:function(a){this.F!==a&&(this.F=a)}},forceY:{get:function(){return this.V},set:function(a){this.V!==a&&(this.V=a)}}}),Mp.className="ForceDirectedVertex";function Rp(a){Vl.call(this,a),this.j=this.o=NaN}Wt(Rp,Vl),jt.Object.defineProperties(Rp.prototype,{stiffness:{get:function(){return this.o},set:function(a){this.o!==a&&(this.o=a)}},length:{get:function(){return this.j},set:function(a){this.j!==a&&(this.j=a)}}}),Rp.className="ForceDirectedEdge";function T0(){var a=0;a===void 0&&(a=42),this.seed=a,this.ay=48271,this.ey=2147483647,this.Q=44488.07041494893,this.gy=3399,this.by=1/2147483647,this.random()}T0.prototype.random=function(){var a=this.seed%this.Q*this.ay-this.seed/this.Q*this.gy;return 0<a?this.seed=a:this.seed=a+this.ey,this.seed*this.by},T0.className="RandomNumberGenerator";function Ao(a){sa.call(this),this.kc=this.ie=25,this.K=0,this.Dk=L0,this.Zk=I0,this.Qk=M0,this.bj=4,this.rk=R0,this.bg=15,this.sf=!0,this.Cn=4,this.Ra=this.Iq=this.Ia=-1,this.Md=this.Hn=0,this.Ta=this.Kd=this.Ld=this.he=this.tc=null,this.Kn=0,this.Jn=this.kj=null,this.le=0,this.fl=null,this.Rf=new Je,this.He=[],this.He.length=100,this.xw=this.ve=0,a&&Object.assign(this,a)}Wt(Ao,sa),Ao.prototype.cloneProtected=function(a){sa.prototype.cloneProtected.call(this,a),a.ie=this.ie,a.kc=this.kc,a.K=this.K,a.Dk=this.Dk,a.Zk=this.Zk,a.Qk=this.Qk,a.bj=this.bj,a.rk=this.rk,a.bg=this.bg,a.sf=this.sf,a.Cn=this.Cn,a.ve=this.ve},Ao.prototype.qb=function(a){a.classType===Ao?a.name.indexOf("Aggressive")===0?this.aggressiveOption=a:a.name.indexOf("Cycle")===0?this.cycleRemoveOption=a:a.name.indexOf("Init")===0?this.initializeOption=a:a.name.indexOf("Layer")===0?this.layeringOption=a:vt("Unknown enum value: "+a):sa.prototype.qb.call(this,a)},Ao.prototype.createNetwork=function(){return new fg(this)},Ao.prototype.doLayout=function(a){for(this.network===null&&(this.network=this.makeNetwork(a)),this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin),this.Iq=-1,this.Md=this.Hn=0,this.fl=this.Jn=this.kj=null,a=0;a<this.He.length;a++)this.He[a]=null;if(0<this.network.vertexes.count){for(this.network.Ko(),this.cycleRemoveOption!==Dp&&this.removeCycles(),a=this.network.vertexes.iterator;a.next();)a.value.layer=-1;for(this.Ia=-1,this.assignLayers(),a.reset();a.next();)this.Ia=Math.max(this.Ia,a.value.layer);this.cycleRemoveOption===Dp&&this.removeCycles(),a=this.network;for(var y=[],x=a.edges.iterator;x.next();){var b=x.value;b.valid=!1,y.push(b)}for(x=0;x<y.length;x++){b=y[x];var E=b.fromVertex,z=b.toVertex;if(!(b.valid||(E.node===null&&E.data===null||z.node===null&&z.data===null)&&E.layer===z.layer)){var ee=0,re=0,oe=0,de=0;if(b.link!==null){if(re=b.link,re===null)continue;var fe=E.node;if(ee=z.node,fe===null||ee===null)continue;var ye=re.fromNode;oe=re.toNode;for(var Ce=re.fromPort;Ce!==null&&!Ce.Ed();)Ce=Ce.panel;for(re=re.toPort;re!==null&&!re.Ed();)re=re.panel;if(b.rev){de=ye;var Ne=Ce;ye=oe,Ce=re,oe=de,re=Ne}var Oe=E.focus;de=z.focus;var Ve=b.rev?z.bounds:E.bounds;Ne=Je.alloc(),fe!==ye?Ve.w()&&ye.isVisible()?ye.actualBounds.w()?(wd(ye,Ce,mr,Ne),Ne.x+=ye.actualBounds.x-Ve.x,Ne.y+=ye.actualBounds.y-Ve.y):(wd(ye,Ce,mr,Ne),Ne.w()||Ne.assign(Oe)):Ne.assign(Oe):Ve.w()?(wd(ye,Ce,mr,Ne),Ne.w()||Ne.assign(Oe)):Ne.assign(Oe),ye=b.rev?E.bounds:z.bounds,fe=Je.alloc(),ee!==oe?ye.w()&&oe.isVisible()?oe.actualBounds.w()?(wd(oe,re,mr,fe),fe.x+=oe.actualBounds.x-ye.x,fe.y+=oe.actualBounds.y-ye.y):(wd(oe,re,mr,fe),fe.w()||fe.assign(de)):fe.assign(de):ye.w()?(wd(oe,re,mr,fe),fe.w()||fe.assign(de)):fe.assign(de),this.K===90||this.K===270?(ee=Math.round((Ne.x-Oe.x)/this.kc),oe=Ne.x,re=Math.round((fe.x-de.x)/this.kc),de=fe.x):(ee=Math.round((Ne.y-Oe.y)/this.kc),oe=Ne.y,re=Math.round((fe.y-de.y)/this.kc),de=fe.y),Je.free(Ne),Je.free(fe),b.portFromColOffset=ee,b.portFromPos=oe,b.portToColOffset=re,b.portToPos=de}else b.portFromColOffset=0,b.portFromPos=0,b.portToColOffset=0,b.portToPos=0;if(Ne=E.layer,fe=z.layer,ye=0,Ve=b.link,Ve!==null){var ft=Ve.fromPort,lt=Ve.toPort;if(ft!==null&<!==null){var mt=Ve.fromNode;if(Ce=Ve.toNode,mt!==null&&Ce!==null){var St=k0(this,!0),Ct=k0(this,!1),Rt=this.setsPortSpots?St:Ve.computeSpot(!0,ft);Oe=this.setsPortSpots?Ct:Ve.computeSpot(!1,lt);var $t=Ve.isOrthogonal;Rt.$c()&&Rt.Hf(Ct)&&Oe.$c()&&Oe.Hf(St)?ye=0:(St=Ve.getLinkPoint(mt,ft,Rt,!0,$t,Ce,lt,Je.alloc()),Ct=Ve.getLinkDirection(mt,ft,St,Rt,!0,$t,Ce,lt),Je.free(St),Rt.ys()||Ct!==nx(this,b,!0)?this.setsPortSpots&&mt!==null&&mt.ports.count===1&&b.rev&&(ye+=1):ye+=1,Rt=Ve.getLinkPoint(Ce,lt,Oe,!1,$t,mt,ft,Je.alloc()),Ve=Ve.getLinkDirection(Ce,lt,Rt,Oe,!1,$t,mt,ft),Je.free(Rt),Oe.ys()||Ve!==nx(this,b,!1)?this.setsPortSpots&&Ce!==null&&Ce.ports.count===1&&b.rev&&(ye+=2):ye+=2)}}}if(Ce=ye,ye=Ce===1||Ce===3,(Ce=Ce===2||Ce===3)&&(Oe=a.createVertex(),Oe.node=null,Oe.Dj=1,Oe.layer=Ne,Oe.near=E,a.dh(Oe),E=a.Zj(E,Oe,b.link),E.valid=!1,E.rev=b.rev,E.portFromColOffset=ee,E.portToColOffset=0,E.portFromPos=oe,E.portToPos=0,E=Oe),Ve=1,ye&&Ve--,Ne-fe>Ve&&0<Ne){for(b.valid=!1,Oe=a.createVertex(),Oe.node=null,Oe.Dj=2,Oe.layer=Ne-1,a.dh(Oe),E=a.Zj(E,Oe,b.link),E.valid=!0,E.rev=b.rev,E.portFromColOffset=Ce?0:ee,E.portToColOffset=0,E.portFromPos=Ce?0:oe,E.portToPos=0,E=Oe,Ne--;Ne-fe>Ve&&0<Ne;)Oe=a.createVertex(),Oe.node=null,Oe.Dj=3,Oe.layer=Ne-1,a.dh(Oe),E=a.Zj(E,Oe,b.link),E.valid=!0,E.rev=b.rev,E.portFromColOffset=0,E.portToColOffset=0,E.portFromPos=0,E.portToPos=0,E=Oe,Ne--;E=a.Zj(Oe,z,b.link),E.valid=!ye,ye&&(Oe.near=z),E.rev=b.rev,E.portFromColOffset=0,E.portToColOffset=re,E.portFromPos=0,E.portToPos=de}else b.valid=!0}}for(a=this.tc=[],y=0;y<=this.Ia;y++)a[y]=0;for(y=this.network.vertexes.iterator;y.next();)y.value.index=-1;for(this.initializeIndices(),this.Iq=-1,x=this.Md=this.Hn=0;x<=this.Ia;x++)a[x]>a[this.Md]&&(this.Iq=a[x]-1,this.Md=x),a[x]<a[this.Hn]&&(this.Hn=x);for(this.fl=[],x=0;x<a.length;x++)this.fl[x]=[];for(y.reset();y.next();)a=y.value,this.fl[a.layer][a.index]=a;for(this.Ra=-1,a=0;a<=this.Ia;a++){for(y=rh(this,a),x=0,b=this.tc[a],z=0;z<b;z++)E=y[z],x+=this.nodeMinColumnSpace(E,!0),E.column=x,x+=1,x+=this.nodeMinColumnSpace(E,!1);this.Ra=Math.max(this.Ra,x-1),oh(this,a,y)}this.reduceCrossings(),this.straightenAndPack(),this.updateParts()}this.network=null,this.isValidLayout=!0},Ao.prototype.linkMinLength=function(){return 1};function vy(a){var y=a.fromVertex.node||a.fromVertex.data;return a=a.toVertex.node||a.toVertex.data,y===null&&a===null?8:y===null||a===null?4:1}Ao.prototype.nodeMinLayerSpace=function(a,y){return a.node===null&&a.data===null?0:this.K===90||this.K===270?y?a.focus.y+10:a.bounds.height-a.focus.y+10:y?a.focus.x+10:a.bounds.width-a.focus.x+10},Ao.prototype.nodeMinColumnSpace=function(a,y){if(a.node===null&&a.data===null)return 0;var x=y?a.ev:a.dv;return x!==null?x:(x=this.K,x===90||x===270?y?a.ev=a.focus.x/this.kc+1|0:a.dv=(a.bounds.width-a.focus.x)/this.kc+1|0:y?a.ev=a.focus.y/this.kc+1|0:a.dv=(a.bounds.height-a.focus.y)/this.kc+1|0)};function Al(a){a.kj===null&&(a.kj=[]);for(var y=0,x=a.network.vertexes.iterator;x.next();){var b=x.value;a.kj[y]=b.layer,y++,a.kj[y]=b.column,y++,a.kj[y]=b.index,y++}return a.kj}function bu(a,y){var x=0;for(a=a.network.vertexes.iterator;a.next();){var b=a.value;b.layer=y[x],x++,b.column=y[x],x++,b.index=y[x],x++}}function Z1(a,y,x){var b=rh(a,y),E=a.tc[y];(a.Jn===null||a.Jn.length<E*E)&&(a.Jn=[]);for(var z=a.Jn,ee=0;ee<E;ee++){var re=0,oe=b[ee],de=oe.near;if(de!==null&&de.layer===oe.layer)if(oe=de.index,oe>ee)for(var fe=ee+1;fe<oe;fe++){var ye=b[fe];ye.near===de&&ye.Dj===de.Dj||re++}else for(fe=ee-1;fe>oe;fe--)ye=b[fe],ye.near===de&&ye.Dj===de.Dj||re++;var Ce;if(0<=x)for(oe=b[ee].sourceEdgesArrayAccess,de=0;de<oe.length;de++){var Ne=oe[de];if(Ne.valid&&Ne.fromVertex.layer!==y)for(ye=Ne.fromVertex.index,fe=Ne.portToPos,Ne=Ne.portFromPos,Ce=de+1;Ce<oe.length;Ce++){var Oe=oe[Ce];if(Oe.valid&&Oe.fromVertex.layer!==y){var Ve=Oe.fromVertex.index,ft=Oe.portToPos;Oe=Oe.portFromPos,fe<ft&&(ye>Ve||ye===Ve&&Ne>Oe)&&re++,ft<fe&&(Ve>ye||Ve===ye&&Oe>Ne)&&re++}}}if(0>=x){for(oe=b[ee].destinationEdgesArrayAccess,de=0;de<oe.length;de++)if(Ne=oe[de],Ne.valid&&Ne.toVertex.layer!==y)for(ye=Ne.toVertex.index,fe=Ne.portToPos,Ne=Ne.portFromPos,Ce=de+1;Ce<oe.length;Ce++)Oe=oe[Ce],Oe.valid&&Oe.toVertex.layer!==y&&(Ve=Oe.toVertex.index,ft=Oe.portToPos,Oe=Oe.portFromPos,Ne<Oe&&(ye>Ve||ye===Ve&&fe>ft)&&re++,Oe<Ne&&(Ve>ye||Ve===ye&&ft>fe)&&re++)}for(z[ee*E+ee]=re,oe=ee+1;oe<E;oe++){var lt=0,mt=0;if(0<=x){re=b[ee].sourceEdgesArrayAccess;var St=b[oe].sourceEdgesArrayAccess;for(de=0;de<re.length;de++)if(Ne=re[de],Ne.valid&&Ne.fromVertex.layer!==y)for(ye=Ne.fromVertex.index,Ne=Ne.portFromPos,Ce=0;Ce<St.length;Ce++)Oe=St[Ce],Oe.valid&&Oe.fromVertex.layer!==y&&(Ve=Oe.fromVertex.index,Oe=Oe.portFromPos,(ye<Ve||ye===Ve&&Ne<Oe)&&mt++,(Ve<ye||Ve===ye&&Oe<Ne)&<++)}if(0>=x){for(re=b[ee].destinationEdgesArrayAccess,St=b[oe].destinationEdgesArrayAccess,de=0;de<re.length;de++)if(Ne=re[de],Ne.valid&&Ne.toVertex.layer!==y)for(ye=Ne.toVertex.index,fe=Ne.portToPos,Ce=0;Ce<St.length;Ce++)Oe=St[Ce],Oe.valid&&Oe.toVertex.layer!==y&&(Ve=Oe.toVertex.index,ft=Oe.portToPos,(ye<Ve||ye===Ve&&fe<ft)&&mt++,(Ve<ye||Ve===ye&&ft<fe)&<++)}z[ee*E+oe]=lt,z[oe*E+ee]=mt}}return oh(a,y,b),z}Ao.prototype.countCrossings=function(){for(var a=0,y=0;y<=this.Ia;y++)for(var x=Z1(this,y,1),b=this.tc[y],E=0;E<b;E++)for(var z=E;z<b;z++)a+=x[E*b+z];return a};function A0(a){for(var y=0,x=0;x<=a.Ia;x++){for(var b=a,E=x,z=rh(b,E),ee=b.tc[E],re=0,oe=0;oe<ee;oe++){var de=z[oe].destinationEdgesArrayAccess;if(de!==null)for(var fe=0;fe<de.length;fe++){var ye=de[fe];if(ye.valid&&ye.toVertex.layer!==E){var Ce=ye.fromVertex.column+ye.portFromColOffset,Ne=ye.toVertex.column+ye.portToColOffset;re+=(Math.abs(Ce-Ne)+1)*vy(ye)}}}oh(b,E,z),y+=re}return y}Ao.prototype.normalize=function(){var a=1/0;this.Ra=-1;for(var y=this.network.vertexes.iterator;y.next();){var x=y.value;a=Math.min(a,x.column-this.nodeMinColumnSpace(x,!0)),this.Ra=Math.max(this.Ra,x.column+this.nodeMinColumnSpace(x,!1))}for(y.reset();y.next();)y.value.column-=a;this.Ra-=a};function yy(a,y,x){for(var b=rh(a,y),E=a.tc[y],z=[],ee=0;ee<E;ee++){var re=b[ee],oe=null;0>=x&&(oe=re.sourceEdgesArrayAccess);var de=null;0<=x&&(de=re.destinationEdgesArrayAccess);var fe=0,ye=0,Ce=re.near;if(Ce!==null&&Ce.layer===re.layer&&(fe+=Ce.column-1,ye++),oe!==null)for(Ce=0;Ce<oe.length;Ce++){re=oe[Ce];var Ne=re.fromVertex;re.valid&&!re.rev&&Ne.layer!==y&&(fe+=Ne.column,ye++)}if(de!==null)for(oe=0;oe<de.length;oe++)re=de[oe],Ce=re.toVertex,re.valid&&!re.rev&&Ce.layer!==y&&(fe+=Ce.column,ye++);z[ee]=ye===0?-1:fe/ye}return oh(a,y,b),z}function X1(a,y,x){for(var b=rh(a,y),E=a.tc[y],z=[],ee=0;ee<E;ee++){var re=b[ee],oe=null;0>=x&&(oe=re.sourceEdgesArrayAccess);var de=null;0<=x&&(de=re.destinationEdgesArrayAccess);var fe=0,ye=[],Ce=re.near;if(Ce!==null&&Ce.layer===re.layer&&(ye[fe]=Ce.column-1,fe++),re=void 0,oe!==null)for(Ce=0;Ce<oe.length;Ce++){re=oe[Ce];var Ne=re.fromVertex;re.valid&&!re.rev&&Ne.layer!==y&&(ye[fe]=Ne.column+re.portFromColOffset,fe++)}if(de!==null)for(oe=0;oe<de.length;oe++)re=de[oe],Ce=re.toVertex,re.valid&&!re.rev&&Ce.layer!==y&&(ye[fe]=Ce.column+re.portToColOffset,fe++);fe===0?z[ee]=-1:(ye.sort(function(Oe,Ve){return Oe-Ve}),de=fe>>1,z[ee]=fe&1?ye[de]:ye[de-1]+ye[de]>>1)}return oh(a,y,b),z}function Op(a,y,x,b,E,z){if(y.component===b){if(y.component=x,E)for(var ee=y.destinationEdges;ee.next();){var re=ee.value,oe=re.toVertex,de=y.layer-oe.layer;re=a.linkMinLength(re),de===re&&Op(a,oe,x,b,E,z)}if(z)for(ee=y.sourceEdges;ee.next();)re=ee.value,oe=re.fromVertex,de=oe.layer-y.layer,re=a.linkMinLength(re),de===re&&Op(a,oe,x,b,E,z)}}function Sy(a,y,x,b,E,z){if(y.component===b){if(y.component=x,E)for(var ee=y.destinationEdges;ee.next();)Sy(a,ee.value.toVertex,x,b,E,z);if(z)for(y=y.sourceEdges;y.next();)Sy(a,y.value.fromVertex,x,b,E,z)}}Ao.prototype.removeCycles=function(){for(var a=this.network.edges.iterator;a.next();)a.value.rev=!1;switch(this.Dk){default:case Ey:a=this.network;var y=0,x=a.vertexes.count-1,b=[];b.length=x+1;for(var E=a.vertexes.iterator;E.next();)E.value.valid=!0;for(;Xx(a)!==null;){for(E=Q1(a);E!==null;)b[x]=E,x--,E.valid=!1,E=Q1(a);for(E=J1(a);E!==null;)b[y]=E,y++,E.valid=!1,E=J1(a);E=null;for(var z=0,ee=this.network.vertexes.iterator;ee.next();){var re=ee.value;if(re.valid){for(var oe=0,de=re.destinationEdges;de.next();)de.value.toVertex.valid&&oe++;de=0;for(var fe=re.sourceEdges;fe.next();)fe.value.fromVertex.valid&&de++;(E===null||z<oe-de)&&(E=re,z=oe-de)}}E!==null&&(b[y]=E,y++,E.valid=!1)}for(y=0;y<a.vertexes.count;y++)b[y].index=y;for(b=a.edges.iterator;b.next();)y=b.value,y.fromVertex.index>y.toVertex.index&&(a.gm(y),y.rev=!0);break;case L0: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&&xy(this,y);for(b.reset();b.next();)y=b.value,y.Ll===-1&&xy(this,y);for(a.reset();a.next();)b=a.value,b.forest||(y=b.fromVertex,x=y.finish,E=b.toVertex,z=E.finish,E.Ll<y.Ll&&x<z&&(this.network.gm(b),b.rev=!0));break;case Dp:for(a=this.network,y=a.vertexes.iterator,b=1/0;y.next();)b=Math.min(b,y.value.layer);if(1/0>b){if(0>b)for(y.reset();y.next();)y.value.layer-=b;for(b=[],y.reset();y.next();)x=y.value,E=b[x.layer],E===void 0?b[x.layer]=[x]:E.push(x);for(x=y=0;x<b.length;x++)if(E=b[x],!E||E.length===0)y++;else if(0<x)for(z=0;z<E.length;z++)E[z].layer-=y;for(b=a.edges.iterator;b.next();)y=b.value,y.fromVertex.layer<y.toVertex.layer&&(a.gm(y),y.rev=!0)}}};function Xx(a){for(a=a.vertexes.iterator;a.next();){var y=a.value;if(y.valid)return y}return null}function Q1(a){for(a=a.vertexes.iterator;a.next();){var y=a.value;if(y.valid){for(var x=!0,b=y.destinationEdges;b.next();)if(b.value.toVertex.valid){x=!1;break}if(x)return y}}return null}function J1(a){for(a=a.vertexes.iterator;a.next();){var y=a.value;if(y.valid){for(var x=!0,b=y.sourceEdges;b.next();)if(b.value.fromVertex.valid){x=!1;break}if(x)return y}}return null}function xy(a,y){y.Ll=a.Kn,a.Kn++;for(var x=y.destinationEdges;x.next();){var b=x.value,E=b.toVertex;E.Ll===-1&&(b.forest=!0,xy(a,E))}y.finish=a.Kn,a.Kn++}Ao.prototype.assignLayers=function(){switch(this.Zk){case wy:q1(this);break;case Cy:for(var a,y=this.network.vertexes.iterator;y.next();)a=ex(this,y.value),this.Ia=Math.max(a,this.Ia);for(y.reset();y.next();)a=y.value,a.layer=this.Ia-a.layer;break;default:case I0:for(q1(this),y=this.network.vertexes.iterator;y.next();)y.value.valid=!1;for(y.reset();y.next();)a=y.value,a.sourceEdges.count===0&&tx(this,a);for(a=1/0,y.reset();y.next();)a=Math.min(a,y.value.layer);for(this.Ia=-1,y.reset();y.next();){var x=y.value;x.layer-=a,this.Ia=Math.max(this.Ia,x.layer)}}};function q1(a){for(var y=a.network.vertexes.iterator;y.next();){var x=$1(a,y.value);a.Ia=Math.max(x,a.Ia)}}function $1(a,y){var x=0;if(y.layer===-1){for(var b=y.destinationEdges;b.next();){var E=b.value,z=E.toVertex;E=a.linkMinLength(E),x=Math.max(x,$1(a,z)+E)}y.layer=x}else x=y.layer;return x}function ex(a,y){var x=0;if(y.layer===-1){for(var b=y.sourceEdges;b.next();){var E=b.value,z=E.fromVertex;E=a.linkMinLength(E),x=Math.max(x,ex(a,z)+E)}y.layer=x}else x=y.layer;return x}function tx(a,y){if(!y.valid){y.valid=!0;for(var x=y.destinationEdges;x.next();)tx(a,x.value.toVertex);for(x=a.network.vertexes.iterator;x.next();)x.value.component=-1;for(var b=y.sourceEdgesArrayAccess,E=b.length,z=0;z<E;z++){var ee=b[z],re=ee.fromVertex,oe=ee.toVertex;ee=a.linkMinLength(ee),re.layer-oe.layer>ee&&Op(a,re,0,-1,!0,!1)}for(Op(a,y,1,-1,!0,!0);y.component!==0;){for(z=0,b=1/0,re=0,oe=null,ee=a.network.vertexes.iterator;ee.next();){var de=ee.value;if(de.component===1){var fe=0,ye=!1,Ce=de.sourceEdgesArrayAccess;E=Ce.length;for(var Ne=0;Ne<E;Ne++){var Oe=Ce[Ne],Ve=Oe.fromVertex;fe+=1,Ve.component!==1&&(z+=1,Ve=Ve.layer-de.layer,Oe=a.linkMinLength(Oe),b=Math.min(b,Ve-Oe))}for(Ce=de.destinationEdgesArrayAccess,E=Ce.length,Ne=0;Ne<E;Ne++)Oe=Ce[Ne].toVertex,--fe,Oe.component!==1?--z:ye=!0;(oe===null||fe<re)&&!ye&&(oe=de,re=fe)}}if(0<z){for(x.reset();x.next();)E=x.value,E.component===1&&(E.layer+=b);y.component=0}else oe.component=0}for(x=a.network.vertexes.iterator;x.next();)x.value.component=-1;for(Op(a,y,1,-1,!0,!1);y.component!==0;){for(b=0,E=1/0,z=0,re=null,oe=a.network.vertexes.iterator;oe.next();)if(ee=oe.value,ee.component===1){for(de=0,fe=!1,Ce=ee.sourceEdgesArrayAccess,ye=Ce.length,Ne=0;Ne<ye;Ne++)Oe=Ce[Ne].fromVertex,de+=1,Oe.component!==1?b+=1:fe=!0;for(Ce=ee.destinationEdgesArrayAccess,ye=Ce.length,Ne=0;Ne<ye;Ne++)Oe=Ce[Ne],Ve=Oe.toVertex,--de,Ve.component!==1&&(--b,Ve=ee.layer-Ve.layer,Oe=a.linkMinLength(Oe),E=Math.min(E,Ve-Oe));(re===null||de>z)&&!fe&&(re=ee,z=de)}if(0>b){for(x.reset();x.next();)b=x.value,b.component===1&&(b.layer-=E);y.component=0}else re.component=0}}}function nx(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}Ao.prototype.initializeIndices=function(){switch(this.Qk){default:case Ay: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&&ix(this,x);break;case Ty: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&&rx(this,x)}};function ix(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;b<y.length-1;b++){var E=y[b],z=y[b+1];E.portFromColOffset>z.portFromColOffset&&(x=!0,y[b]=z,y[b+1]=E)}}for(x=0;x<y.length;x++)b=y[x],b.valid&&(b=b.toVertex,b.index===-1&&ix(a,b))}function rx(a,y){var x=y.layer;y.index=a.tc[x],a.tc[x]++,y=y.sourceEdgesArrayAccess;for(var b=!0;b;)for(b=!1,x=0;x<y.length-1;x++){var E=y[x],z=y[x+1];E.portToColOffset>z.portToColOffset&&(b=!0,y[x]=z,y[x+1]=E)}for(x=0;x<y.length;x++)b=y[x],b.valid&&(b=b.fromVertex,b.index===-1&&rx(a,b))}Ao.prototype.reduceCrossings=function(){var a=this.countCrossings(),y=Al(this),x,b;for(x=0;x<this.bj;x++){for(b=0;b<=this.Ia;b++)P0(this,b,1),Ou(this,b,1);var E=this.countCrossings();for(E<a&&(a=E,y=Al(this)),b=this.Ia;0<=b;b--)P0(this,b,-1),Ou(this,b,-1);E=this.countCrossings(),E<a&&(a=E,y=Al(this))}for(bu(this,y),x=0;x<this.bj;x++){for(b=0;b<=this.Ia;b++)P0(this,b,0),Ou(this,b,0);for(E=this.countCrossings(),E<a&&(a=E,y=Al(this)),b=this.Ia;0<=b;b--)P0(this,b,0),Ou(this,b,0);E=this.countCrossings(),E<a&&(a=E,y=Al(this))}bu(this,y);var z,ee,re;switch(this.rk){case Py:break;case Ny:for(re=a+1;(b=this.countCrossings())<re;)for(re=b,x=this.Ia;0<=x;x--)for(ee=0;ee<=x;ee++){for(z=!0;z;)for(z=!1,b=x;b>=ee;b--)z=Ou(this,b,-1)||z;for(E=this.countCrossings(),E>=a?bu(this,y):(a=E,y=Al(this)),z=!0;z;)for(z=!1,b=x;b>=ee;b--)z=Ou(this,b,1)||z;for(E=this.countCrossings(),E>=a?bu(this,y):(a=E,y=Al(this)),z=!0;z;)for(z=!1,b=ee;b<=x;b++)z=Ou(this,b,1)||z;for(E>=a?bu(this,y):(a=E,y=Al(this)),z=!0;z;)for(z=!1,b=ee;b<=x;b++)z=Ou(this,b,-1)||z;for(E>=a?bu(this,y):(a=E,y=Al(this)),z=!0;z;)for(z=!1,b=x;b>=ee;b--)z=Ou(this,b,0)||z;for(E>=a?bu(this,y):(a=E,y=Al(this)),z=!0;z;)for(z=!1,b=ee;b<=x;b++)z=Ou(this,b,0)||z;E>=a?bu(this,y):(a=E,y=Al(this))}break;default:case R0:for(x=this.Ia,ee=0,re=a+1;(b=this.countCrossings())<re;){for(re=b,z=!0;z;)for(z=!1,b=x;b>=ee;b--)z=Ou(this,b,-1)||z;for(E=this.countCrossings(),E>=a?bu(this,y):(a=E,y=Al(this)),z=!0;z;)for(z=!1,b=x;b>=ee;b--)z=Ou(this,b,1)||z;for(E=this.countCrossings(),E>=a?bu(this,y):(a=E,y=Al(this)),z=!0;z;)for(z=!1,b=ee;b<=x;b++)z=Ou(this,b,1)||z;for(E>=a?bu(this,y):(a=E,y=Al(this)),z=!0;z;)for(z=!1,b=ee;b<=x;b++)z=Ou(this,b,-1)||z;for(E>=a?bu(this,y):(a=E,y=Al(this)),z=!0;z;)for(z=!1,b=x;b>=ee;b--)z=Ou(this,b,0)||z;for(E>=a?bu(this,y):(a=E,y=Al(this)),z=!0;z;)for(z=!1,b=ee;b<=x;b++)z=Ou(this,b,0)||z;E>=a?bu(this,y):(a=E,y=Al(this))}}bu(this,y)};function P0(a,y,x){var b=rh(a,y),E=a.tc[y],z=X1(a,y,x),ee=yy(a,y,x);for(x=0;x<E;x++)ee[x]===-1&&(ee[x]=b[x].column),z[x]===-1&&(z[x]=b[x].column);for(var re=!0,oe;re;)for(re=!1,x=0;x<E-1;x++)(z[x+1]<z[x]||z[x+1]===z[x]&&ee[x+1]<ee[x])&&(re=!0,oe=z[x],z[x]=z[x+1],z[x+1]=oe,oe=ee[x],ee[x]=ee[x+1],ee[x+1]=oe,oe=b[x],b[x]=b[x+1],b[x+1]=oe);for(x=z=0;x<E;x++)oe=b[x],oe.index=x,z+=a.nodeMinColumnSpace(oe,!0),oe.column=z,z+=1,z+=a.nodeMinColumnSpace(oe,!1);oh(a,y,b)}function Ou(a,y,x){var b=rh(a,y),E=a.tc[y];x=Z1(a,y,x);var z,ee=[];for(z=0;z<E;z++)ee[z]=-1;var re=[];for(z=0;z<E;z++)re[z]=-1;for(var oe=!1,de=!0;de;)for(de=!1,z=0;z<E-1;z++){var fe=x[b[z].index*E+b[z+1].index],ye=x[b[z+1].index*E+b[z].index],Ce=0,Ne=0,Oe=b[z].column,Ve=b[z+1].column,ft=a.nodeMinColumnSpace(b[z],!0),lt=a.nodeMinColumnSpace(b[z],!1),mt=a.nodeMinColumnSpace(b[z+1],!0),St=a.nodeMinColumnSpace(b[z+1],!1);ft=Oe-ft+mt,lt=Ve-lt+St;var Ct=b[z].sourceEdges.iterator;for(Ct.reset();Ct.next();)if(mt=Ct.value,St=mt.fromVertex,mt.valid&&St.layer===y){for(mt=0;b[mt]!==St;)mt++;mt<z&&(Ce+=2*(z-mt),Ne+=2*(z+1-mt)),mt===z+1&&(Ce+=1),mt>z+1&&(Ce+=4*(mt-z),Ne+=4*(mt-(z+1)))}for(Ct=b[z].destinationEdges.iterator,Ct.reset();Ct.next();)if(mt=Ct.value,St=mt.toVertex,mt.valid&&St.layer===y){for(mt=0;b[mt]!==St;)mt++;mt===z+1&&(Ne+=1)}for(Ct=b[z+1].sourceEdges.iterator,Ct.reset();Ct.next();)if(mt=Ct.value,St=mt.fromVertex,mt.valid&&St.layer===y){for(mt=0;b[mt]!==St;)mt++;mt<z&&(Ce+=2*(z+1-mt),Ne+=2*(z-mt)),mt===z&&(Ne+=1),mt>z+1&&(Ce+=4*(mt-(z+1)),Ne+=4*(mt-z))}for(Ct=b[z+1].destinationEdges.iterator,Ct.reset();Ct.next();)if(mt=Ct.value,St=mt.toVertex,mt.valid&&St.layer===y){for(mt=0;b[mt]!==St;)mt++;mt===z&&(Ce+=1)}mt=St=0,Ct=ee[b[z].index];var Rt=re[b[z].index],$t=ee[b[z+1].index],di=re[b[z+1].index];Ct!==-1&&(St+=Math.abs(Ct-Oe),mt+=Math.abs(Ct-lt)),Rt!==-1&&(St+=Math.abs(Rt-Oe),mt+=Math.abs(Rt-lt)),$t!==-1&&(St+=Math.abs($t-Ve),mt+=Math.abs($t-ft)),di!==-1&&(St+=Math.abs(di-Ve),mt+=Math.abs(di-ft)),(Ne<Ce-.5||Ne===Ce&&ye<fe-.5||Ne===Ce&&ye===fe&&mt<St-.5)&&(de=oe=!0,b[z].column=lt,b[z+1].column=ft,fe=b[z],b[z]=b[z+1],b[z+1]=fe)}for(z=0;z<E;z++)b[z].index=z;return oh(a,y,b),oe}Ao.prototype.straightenAndPack=function(){if(this.ve===0){var a=(this.bg&1)!==0,y=(this.bg&Nb)!==0;if(1e3<this.network.edges.count&&y&&(a=!1),a){var x=[];for(y=0;y<=this.Ia;y++)x[y]=0;for(var b,E=this.network.vertexes.iterator;E.next();){var z=E.value;y=z.layer,b=z.column,z=this.nodeMinColumnSpace(z,!1),x[y]=Math.max(x[y],b+z)}for(E.reset();E.next();)z=E.value,y=z.layer,b=z.column,z.column=(8*(this.Ra-x[y])>>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=hg(this,y,1)||x;for(y=this.Md-1;0<=y;y--)x=hg(this,y,-1)||x;x=hg(this,this.Md,0)||x}if(this.bg&4){for(y=this.Md+1;y<=this.Ia;y++)by(this,y,1);for(y=this.Md-1;0<=y;y--)by(this,y,-1);by(this,this.Md,0)}if(a&&(ox(this,-1),ox(this,1)),this.bg&2)for(x=!0;x;){for(x=!1,x=hg(this,this.Md,0)||x,y=this.Md+1;y<=this.Ia;y++)x=hg(this,y,0)||x;for(y=this.Md-1;0<=y;y--)x=hg(this,y,0)||x}}else $x(this)};function hg(a,y,x){for(var b=!1;Qx(a,y,x);)b=!0;return b}function Qx(a,y,x){var b,E=rh(a,y),z=a.tc[y],ee=yy(a,y,-1);if(0<x)for(b=0;b<z;b++)ee[b]=-1;var re=yy(a,y,1);if(0>x)for(b=0;b<z;b++)re[b]=-1;for(var oe=!1,de=!0;de;)for(de=!1,b=0;b<z;b++){var fe=E[b].column,ye=a.nodeMinColumnSpace(E[b],!0),Ce=a.nodeMinColumnSpace(E[b],!1),Ne=0;0>b-1||fe-E[b-1].column-1>ye+a.nodeMinColumnSpace(E[b-1],!1)?Ne=fe-1:Ne=fe,ye=b+1>=z||E[b+1].column-fe-1>Ce+a.nodeMinColumnSpace(E[b+1],!0)?fe+1:fe;var Oe=Ce=0,Ve=0;if(0>=x)for(var ft=E[b].sourceEdges.iterator;ft.next();){var lt=ft.value,mt=lt.fromVertex;if(lt.valid&&mt.layer!==y){var St=vy(lt),Ct=lt.portFromColOffset;lt=lt.portToColOffset,mt=mt.column,Ce+=(Math.abs(fe+lt-(mt+Ct))+1)*St,Oe+=(Math.abs(Ne+lt-(mt+Ct))+1)*St,Ve+=(Math.abs(ye+lt-(mt+Ct))+1)*St}}if(0<=x)for(ft=E[b].destinationEdges.iterator;ft.next();)lt=ft.value,mt=lt.toVertex,lt.valid&&mt.layer!==y&&(St=vy(lt),Ct=lt.portFromColOffset,lt=lt.portToColOffset,mt=mt.column,Ce+=(Math.abs(fe+Ct-(mt+lt))+1)*St,Oe+=(Math.abs(Ne+Ct-(mt+lt))+1)*St,Ve+=(Math.abs(ye+Ct-(mt+lt))+1)*St);lt=Ct=St=0,ft=ee[E[b].index],mt=re[E[b].index],ft!==-1&&(St+=Math.abs(ft-fe),Ct+=Math.abs(ft-Ne),lt+=Math.abs(ft-ye)),mt!==-1&&(St+=Math.abs(mt-fe),Ct+=Math.abs(mt-Ne),lt+=Math.abs(mt-ye)),Oe<Ce||Oe===Ce&&Ct<St?(de=oe=!0,E[b].column=Ne):(Ve<Ce||Ve===Ce&<<St)&&(de=oe=!0,E[b].column=ye)}return oh(a,y,E),a.normalize(),oe}function by(a,y,x){var b=rh(a,y),E=a.tc[y],z=X1(a,y,x),ee=[];for(x=0;x<E;x++)ee[x]=z[x];for(z=!0;z;)for(z=!1,x=0;x<E;x++){var re=b[x].column,oe=a.nodeMinColumnSpace(b[x],!0),de=a.nodeMinColumnSpace(b[x],!1),fe=0;if(ee[x]===-1)if(x===0&&x===E-1)fe=re;else if(x===0){var ye=b[x+1].column;ye-re===de+a.nodeMinColumnSpace(b[x+1],!0)?fe=re-1:fe=re}else x===E-1?(ye=b[x-1].column,fe=re-ye===oe+a.nodeMinColumnSpace(b[x-1],!1)?re+1:re):(ye=b[x-1].column,oe=ye+a.nodeMinColumnSpace(b[x-1],!1)+oe+1,ye=b[x+1].column,de=ye-a.nodeMinColumnSpace(b[x+1],!0)-de-1,fe=(oe+de)/2|0);else x===0&&x===E-1?fe=ee[x]:x===0?(ye=b[x+1].column,de=ye-a.nodeMinColumnSpace(b[x+1],!0)-de-1,fe=Math.min(ee[x],de)):x===E-1?(ye=b[x-1].column,oe=ye+a.nodeMinColumnSpace(b[x-1],!1)+oe+1,fe=Math.max(ee[x],oe)):(ye=b[x-1].column,oe=ye+a.nodeMinColumnSpace(b[x-1],!1)+oe+1,ye=b[x+1].column,de=ye-a.nodeMinColumnSpace(b[x+1],!0)-de-1,oe<ee[x]&&ee[x]<de?fe=ee[x]:oe>=ee[x]?fe=oe:de<=ee[x]&&(fe=de));fe!==re&&(z=!0,b[x].column=fe)}oh(a,y,b),a.normalize()}function Jx(a,y){for(var x=!0,b=a.network.vertexes.iterator;b.next();){var E=b.value,z=a.nodeMinColumnSpace(E,!0),ee=a.nodeMinColumnSpace(E,!1);if(E.column-z<=y&&E.column+ee>=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 qx(a,y){var x=y+1,b,E=[],z=[];for(b=0;b<=a.Ia;b++)E[b]=!1,z[b]=!1;for(var ee=a.network.vertexes.iterator;ee.next();){b=ee.value;var re=b.column-a.nodeMinColumnSpace(b,!0),oe=b.column+a.nodeMinColumnSpace(b,!1);re<=y&&oe>=y&&(E[b.layer]=!0),re<=x&&oe>=x&&(z[b.layer]=!0)}for(re=!0,x=!1,b=0;b<=a.Ia;b++)re=re&&!(E[b]&&z[b]);if(re)for(ee.reset();ee.next();)a=ee.value,a.column>y&&(--a.column,x=!0);return x}function ox(a,y){for(var x=0;x<=a.Ra;x++)for(;Jx(a,x););for(a.normalize(),x=0;x<a.Ra;x++)for(;qx(a,x););a.normalize();var b;if(0<y)for(x=0;x<=a.Ra;x++){var E=Al(a),z=A0(a);for(b=z+1;z<b;){b=z,ax(a,x,1);var ee=A0(a);ee>z?bu(a,E):ee<z&&(z=ee,E=Al(a))}}if(0>y)for(x=a.Ra;0<=x;x--)for(E=Al(a),z=A0(a),b=z+1;z<b;)b=z,ax(a,x,-1),ee=A0(a),ee>z?bu(a,E):ee<z&&(z=ee,E=Al(a));a.normalize()}function ax(a,y,x){a.le=0;for(var b=a.network.vertexes.iterator;b.next();)b.value.component=-1;if(0<x)for(b.reset();b.next();){var E=b.value;E.column-a.nodeMinColumnSpace(E,!0)<=y&&(E.component=a.le)}if(0>x)for(b.reset();b.next();)E=b.value,E.column+a.nodeMinColumnSpace(E,!1)>=y&&(E.component=a.le);for(a.le++,b.reset();b.next();)y=b.value,y.component===-1&&(Sy(a,y,a.le,-1,!0,!0),a.le++);var z;for(y=[],z=0;z<a.le*a.le;z++)y[z]=!1;for(E=[],z=0;z<(a.Ia+1)*(a.Ra+1);z++)E[z]=-1;for(b.reset();b.next();){z=b.value;for(var ee=z.layer,re=Math.max(0,z.column-a.nodeMinColumnSpace(z,!0)),oe=Math.min(a.Ra,z.column+a.nodeMinColumnSpace(z,!1));re<=oe;re++)E[ee*(a.Ra+1)+re]=z.component}for(z=0;z<=a.Ia;z++){if(0<x)for(ee=0;ee<a.Ra;ee++)E[z*(a.Ra+1)+ee]!==-1&&E[z*(a.Ra+1)+ee+1]!==-1&&E[z*(a.Ra+1)+ee]!==E[z*(a.Ra+1)+ee+1]&&(y[E[z*(a.Ra+1)+ee]*a.le+E[z*(a.Ra+1)+ee+1]]=!0);if(0>x)for(ee=a.Ra;0<ee;ee--)E[z*(a.Ra+1)+ee]!==-1&&E[z*(a.Ra+1)+ee-1]!==-1&&E[z*(a.Ra+1)+ee]!==E[z*(a.Ra+1)+ee-1]&&(y[E[z*(a.Ra+1)+ee]*a.le+E[z*(a.Ra+1)+ee-1]]=!0)}for(E=[],z=0;z<a.le;z++)E[z]=!0;for(ee=[],ee.push(0);ee.length!==0;)if(oe=ee[ee.length-1],ee.pop(),E[oe])for(E[oe]=!1,z=0;z<a.le;z++)y[oe*a.le+z]&&ee.splice(0,0,z);if(0<x)for(b.reset();b.next();)a=b.value,E[a.component]&&--a.column;if(0>x)for(b.reset();b.next();)x=b.value,E[x.component]&&(x.column+=1)}function $x(a){for(var y=Mi(),x=a.fl.length,b=0;b<=x;b++)y[b]=[];for(b=a.network.vertexes.iterator;b.next();){var E=b.value;y[x-E.layer][E.index]=E}x=new Bn,Sb(y,x);var z=null,ee=null,re=null,oe=null,de=(a.ve&1)!==0,fe=(a.ve&2)!==0,ye=(a.ve&4)!==0,Ce=(a.ve&8)!==0;for(de&&(a.verticalAlignment(y,x,!0),z=N0(a,y,!0,!1)),y.reverse(),ye&&(a.verticalAlignment(y,x,!1),re=N0(a,y,!1,!1)),b=Ei(y),E=b.next();!E.done;E=b.next())E.value.reverse();Ce&&(a.verticalAlignment(y,x,!1),oe=N0(a,y,!1,!0)),y.reverse(),fe&&(a.verticalAlignment(y,x,!0),ee=N0(a,y,!0,!0)),ui(y),a.u(z,ee,re,oe),a.network.vertexes.each(function(Ne){var Oe=Mi();de&&Oe.push(z.get(Ne)),fe&&Oe.push(ee.get(Ne)),ye&&Oe.push(re.get(Ne)),Ce&&Oe.push(oe.get(Ne)),Oe.sort(function(ft,lt){return ft-lt});var Ve=Oe.length;Ve=(Oe[Math.floor((Ve-1)/2)]+Oe[Math.ceil((Ve-1)/2)])/2,ui(Oe),Ne.zc=Ve})}function Sb(a,y){for(var x=a.length,b=1;b<x-1;b++)for(var E=0,z=0,ee=a[b],re=a[b+1],oe=0;z<re.length;oe++){var de=re[oe];e:{if(de.node===null){var fe=ky(de);if(0<fe.length){fe=fe[0].node===null;break e}}fe=!1}var ye=fe;if(oe===re.length-1||ye){for(fe=ee.length-1,ye&&(fe=ky(de)[0].index);z<=oe;){if(de=re[z],!de.bo){ye=[];for(var Ce=Ei(de.sourceEdgesArrayAccess),Ne=Ce.next();!Ne.done;Ne=Ce.next())Ne=Ne.value,Ne.valid&&ye.push(Ne);de.bo=ye}for(de=Ei(de.bo),ye=de.next();!ye.done;ye=de.next())ye=ye.value,Ce=ye.fromVertex.index,(Ce<E||Ce>fe)&&y.add(ye);z++}E=fe}}}Ao.prototype.verticalAlignment=function(a,y,x){Tb(a),a=Ei(a);for(var b=a.next();!b.done;b=a.next()){var E=-1;b=Ei(b.value);for(var z=b.next();!z.done;z=b.next()){z=z.value;var ee=x?ky(z):Lb(z),re=ee.length;if(0<re){ee.sort(function(ye,Ce){return ye.vi-Ce.vi});var oe=(re-1)/2;for(re=Math.floor(oe),oe=Math.ceil(oe);re<=oe;re++)if(z.align===z){var de=ee[re],fe=void 0;fe=x?O0(de,z):O0(z,de),!y.contains(fe)&&E<de.vi&&(de.align=z,z.root=de.root,z.align=de.root,E=de.vi)}}}}};function Tb(a){for(var y=0;y<a.length;y++)for(var x=a[y],b=0;b<x.length;b++){var E=x[b];E.root=E,E.align=E,E.Tz=y,E.vi=b}}function N0(a,y,x,b){for(var E=a.K===90||a.K===270,z=Ei(y),ee=z.next();!ee.done;ee=z.next()){var re=Ei(ee.value);for(ee=re.next();!ee.done;ee=re.next())ee=ee.value,ee.sd=ee,ee.shift=1/0,ee.zc=NaN,ee.qg=0}for(ee=a.K===90||a.K===270,z=Ei(y),re=z.next();!re.done;re=z.next()){re=Ei(re.value);for(var oe=re.next();!oe.done;oe=re.next())if(oe=oe.value,oe.root===oe){for(var de=0,fe=oe;fe.align!==oe;){var ye=fe.align,Ce=ee?fe.width:fe.height,Ne=ee?ye.width:ye.height;if(x){var Oe=O0(fe,ye),Ve=Oe.portFromPos,ft=Oe.portToPos;Oe.link!==null&&(fe.node&&fe.node!==Oe.link.fromNode&&(Ve=ee?fe.focusX:fe.focusY),ye.node&&ye.node!==Oe.link.toNode&&(ft=ee?ye.focusX:ye.focusY))}else Oe=O0(ye,fe),Ve=Oe.portToPos,ft=Oe.portFromPos,Oe.link!==null&&(fe.node&&fe.node!==Oe.link.toNode&&(Ve=ee?fe.focusX:fe.focusY),ye.node&&ye.node!==Oe.link.fromNode&&(ft=ee?ye.focusX:ye.focusY));Ce=b?fe.qg+(Ce-Ve)-(Ne-ft):fe.qg+Ve-ft,ye.qg=Ce,de=Math.min(de,Ce),fe=fe.align}fe=oe;do fe.qg=fe.qg-de,fe=fe.align;while(fe!==oe)}}for(x=Ei(y),ee=x.next();!ee.done;ee=x.next())for(z=Ei(ee.value),ee=z.next();!ee.done;ee=z.next())ee=ee.value,ee.root===ee&&sx(a,ee,y);for(x=0;x<y.length;x++)if(!(0>=y[x].length)&&(ee=y[x][0],ee.sd===ee)){ee.sd.shift===1/0&&(ee.sd.shift=0),ee=x,re=0;do{for(z=y[ee][re];z.align!==z.root;)z=z.align,ee++,0<z.vi&&(re=lx(z,y),re.sd.shift=Math.min(re.sd.shift,z.sd.shift+z.zc+z.qg-(re.zc+re.qg+(E?re.width:re.height)+a.columnSpacing)));re=z.vi+1}while(ee<y.length&&re<y[ee].length&&z.sd===y[ee][re].sd)}for(a=new an,y=Ei(y),ee=y.next();!ee.done;ee=y.next())for(x=Ei(ee.value),ee=x.next();!ee.done;ee=x.next())ee=ee.value,ee.zc=ee.zc+ee.sd.shift+ee.qg,z=E?ee.width:ee.height,a.add(ee,b?-ee.zc-z:ee.zc);return a}function sx(a,y,x){if(isNaN(y.zc)){y.zc=0;var b=y;do{if(0<b.vi){var E=lx(b,x),z=E.root;sx(a,z,x),y.sd===y&&(y.sd=z.sd);var ee=a.K===90||a.K===270?E.width:E.height;y.sd===z.sd&&(y.zc=Math.max(y.zc,z.zc+E.qg+ee-b.qg+a.columnSpacing))}b=b.align}while(b!==y);for(;b.align!==y;)b=b.align,b.zc=y.zc,b.sd=y.sd}}function lx(a,y){var x=a.Tz;return a=a.vi,1>a&&vt("Could not determine previous vertex in layer"),y[x][a-1]}Ao.prototype.u=function(a){for(var y=[],x=0;x<arguments.length;++x)y[x]=arguments[x];x=-1;for(var b=Mi(),E=Mi(),z=1/0,ee=0;4>ee;ee++)if(y[ee]){var re=Pb(this,y[ee],b,E,ee);re<z&&(x=ee,z=re)}for(z={},ee=0;4>ee;z={delta:z.delta},ee++)y[ee]&&(z.delta=ee===0||ee===2?b[x]-b[ee]:E[x]-E[ee],z.delta!==0&&y[ee].each(function(oe){return function(de){de.value+=oe.delta}}(z)));ui(b),ui(E)};function Pb(a,y,x,b,E){if(!y||y.count===0)return x[E]=0,b[E]=0,1/0;var z=1/0,ee=-1/0;return y.each(function(re){var oe=re.key;re=re.value,oe=a.K===90||a.K===270?oe.width:oe.height,re<z&&(z=re),re+oe>ee&&(ee=re+oe)}),x[E]=z,b[E]=ee,ee-z}Ao.prototype.commitLayout=function(){if(this.setsPortSpots)for(var a=k0(this,!0),y=k0(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 k0(a,y){return a.K===270?y?ms:Xa:a.K===90?y?Xa:ms:a.K===180?y?ws:Wa:y?Wa:ws}Ao.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 E=x;0>=this.he[b]+this.Ld[b]&&(E=0),0<b&&(y+=E/2),this.K===90||this.K===0?(y+=this.Ld[b],this.Kd[b]=y,y+=this.he[b]):(y+=this.he[b],this.Kd[b]=y,y+=this.Ld[b]),b<this.Ia&&(y+=E/2),this.Ta[b]=y}for(x=y,y=this.arrangementOrigin,b=0;b<=this.Ia;b++)this.K===270?this.Kd[b]=y.y+this.Kd[b]:this.K===90?(this.Kd[b]=y.y+x-this.Kd[b],this.Ta[b]=x-this.Ta[b]):this.K===180?this.Kd[b]=y.x+this.Kd[b]:(this.Kd[b]=y.x+x-this.Kd[b],this.Ta[b]=x-this.Ta[b]);x=this.ve!==0,a.reset(),b=this.K===270||this.K===90;for(var z=1/0,ee=E=1/0,re=-1/0;a.next();){var oe=a.value,de=oe.layer,fe=oe.column|0;b?(ee=y.x+this.kc*fe,de=this.Kd[de]):(ee=this.Kd[de],de=y.y+this.kc*fe),oe.centerX=ee,oe.centerY=de,x&&isFinite(oe.zc)&&(b?oe.node?oe.x=y.x+oe.zc:oe.centerX=y.x+oe.zc:oe.node?oe.y=y.y+oe.zc:oe.centerY=y.y+oe.zc),z=Math.min(oe.x,z),E=Math.min(oe.y,E),b?(ee=z,re=Math.max(re,oe.bounds.right)):(ee=E,re=Math.max(re,oe.bounds.bottom))}for(this.xw=re-ee,z=y.x-z,y=y.y-E,this.Rf=new Je(x&&b?0:z,x&&!b?0:y),a.reset();a.next();)x=a.value,x.x+=z,x.y+=y,x.commit()},Ao.prototype.Gu=function(){for(var a=0,y=this.ie,x=0;x<=this.Ia;x++)a+=this.he[x],a+=this.Ld[x];a+=this.Ia*y,y=[],x=this.ve!==0?this.xw:this.kc*this.Ra;for(var b=this.maxLayer;0<=b;b--)this.K===270?b===0?y.push(new tn(0,0,x,Math.abs(this.Ta[0]))):y.push(new tn(0,this.Ta[b-1],x,Math.abs(this.Ta[b-1]-this.Ta[b]))):this.K===90?b===0?y.push(new tn(0,this.Ta[0],x,Math.abs(this.Ta[0]-a))):y.push(new tn(0,this.Ta[b],x,Math.abs(this.Ta[b-1]-this.Ta[b]))):this.K===180?b===0?y.push(new tn(0,0,Math.abs(this.Ta[0]),x)):y.push(new tn(this.Ta[b-1],0,Math.abs(this.Ta[b-1]-this.Ta[b]),x)):b===0?y.push(new tn(this.Ta[0],0,Math.abs(this.Ta[0]-a),x)):y.push(new tn(this.Ta[b],0,Math.abs(this.Ta[b-1]-this.Ta[b]),x));this.commitLayers(y,this.Rf)},Ao.prototype.commitLayers=function(){},Ao.prototype.commitLinks=function(){for(var a=this.network.edges.iterator,y;a.next();)y=a.value.link,y!==null&&(y.uh(),y.Fj(),y.zf());for(a.reset();a.next();)y=a.value.link,y!==null&&y.vg();for(a.reset();a.next();){var x=a.value;if(y=x.link,y!==null){y.uh();var b=y,E=b.fromNode,z=b.toNode,ee=b.fromPort,re=b.toPort;if(E!==null){var oe=E.findVisibleNode();oe!==null&&oe!==E&&(E=oe,ee=oe.port)}z!==null&&(oe=z.findVisibleNode(),oe!==null&&oe!==z&&(z=oe,re=oe.port));var de=y.computeSpot(!0,ee);oe=y.computeSpot(!1,re);var fe=x.fromVertex,ye=x.toVertex;if(x.valid)y.curve===au&&y.pointsCount===4&&(fe.column===ye.column&&this.alignOption===0?(x=y.getLinkPoint(E,ee,de,!0,!1,z,re),re=y.getLinkPoint(z,re,oe,!1,!1,E,ee),x.w()||x.set(E.actualBounds.center),re.w()||re.set(z.actualBounds.center),y.Fj(),y.yf(x.x,x.y),y.yf((2*x.x+re.x)/3,(2*x.y+re.y)/3),y.yf((x.x+2*re.x)/3,(x.y+2*re.y)/3),y.yf(re.x,re.y)):(x=b=!1,ee!==null&&de===Ni&&(b=!0),re!==null&&oe===Ni&&(x=!0),(b||x)&&(oe=null,b&&(oe=y.getLinkPointFromPoint(E,ee,ee.ga(mr),y.i(3),!0),oe.w()||oe.set(E.actualBounds.center),y.L(0,oe.x,oe.y)),E=null,x&&(E=y.getLinkPointFromPoint(z,re,re.ga(mr),y.i(0),!1),E.w()||E.set(z.actualBounds.center),y.L(3,E.x,E.y)),oe&&(z=y.i(2),y.L(1,(2*oe.x+z.x)/3,(2*oe.y+z.y)/3)),E&&(z=y.i(1),y.L(2,(2*E.x+z.x)/3,(2*E.y+z.y)/3))))),y.zf();else if(fe.layer===ye.layer)y.zf();else{var Ce=!1,Ne=!1,Oe=this.ie,Ve=y.firstPickIndex+1;if(y.isOrthogonal){Ne=!0;var ft=y.pointsCount;4<ft&&y.points.removeRange(2,ft-3)}else if(y.curve===au)Ce=!0,ft=y.pointsCount,4<ft&&y.points.removeRange(2,ft-3),ft===4&&(Ve=2);else{ft=y.pointsCount;var lt=de===Ni,mt=oe===Ni;2<ft&<&&mt?y.points.removeRange(1,ft-2):3<ft&<&&!mt?y.points.removeRange(1,ft-3):3<ft&&!lt&&mt?y.points.removeRange(2,ft-2):4<ft&&!lt&&!mt&&y.points.removeRange(2,ft-3)}if(x.rev){for(;ye!==null&&fe!==ye;){var St=ft=null;for(lt=ye.sourceEdges.iterator;lt.next()&&(mt=lt.value,mt.link!==x.link||(ft=mt.fromVertex,St=mt.toVertex,ft.node!==null)););if(ft===null)break;if(ft!==fe){lt=y.i(Ve-1).x,mt=y.i(Ve-1).y;var Ct=ft.centerX,Rt=ft.centerY;if(Ne)this.K===180||this.K===0?Ve===y.firstPickIndex+1?(y.m(Ve++,lt,mt),y.m(Ve++,lt,Rt)):(St!==null?St.centerY:mt)!==Rt&&(St=this.Ta[ft.layer-1]+this.Rf.x,y.m(Ve++,St,mt),y.m(Ve++,St,Rt)):Ve===y.firstPickIndex+1?(y.m(Ve++,lt,mt),y.m(Ve++,Ct,mt)):(St!==null?St.centerX:lt)!==Ct&&(St=this.Ta[ft.layer-1]+this.Rf.y,y.m(Ve++,lt,St),y.m(Ve++,Ct,St));else if(Ve===y.firstPickIndex+1){St=Math.max(10,this.he[ye.layer]);var $t=Math.max(10,this.Ld[ye.layer]);if(Ce)this.K===180?Ct<=ye.bounds.x?(ye=ye.bounds.x,y.m(Ve++,ye-St,Rt),y.m(Ve++,ye,Rt),y.m(Ve++,ye+$t,Rt)):(y.m(Ve++,Ct-St,Rt),y.m(Ve++,Ct,Rt),y.m(Ve++,Ct+$t,Rt)):this.K===90?Rt>=ye.bounds.bottom?(ye=ye.bounds.y+ye.bounds.height,y.m(Ve++,Ct,ye+$t),y.m(Ve++,Ct,ye),y.m(Ve++,Ct,ye-St)):(y.m(Ve++,Ct,Rt+$t),y.m(Ve++,Ct,Rt),y.m(Ve++,Ct,Rt-St)):this.K===270?Rt<=ye.bounds.y?(ye=ye.bounds.y,y.m(Ve++,Ct,ye-St),y.m(Ve++,Ct,ye),y.m(Ve++,Ct,ye+$t)):(y.m(Ve++,Ct,Rt-St),y.m(Ve++,Ct,Rt),y.m(Ve++,Ct,Rt+$t)):this.K===0&&(Ct>=ye.bounds.right?(ye=ye.bounds.x+ye.bounds.width,y.m(Ve++,ye+$t,Rt),y.m(Ve++,ye,Rt),y.m(Ve++,ye-St,Rt)):(y.m(Ve++,Ct+$t,Rt),y.m(Ve++,Ct,Rt),y.m(Ve++,Ct-St,Rt)));else{y.m(Ve++,lt,mt);var di=0;this.K===180||this.K===0?((this.K===180?Ct>=ye.bounds.right:Ct<=ye.bounds.x)&&(di=(this.K===0?-St:$t)/2),y.m(Ve++,lt+di,Rt)):((this.K===270?Rt>=ye.bounds.bottom:Rt<=ye.bounds.y)&&(di=(this.K===90?-St:$t)/2),y.m(Ve++,Ct,mt+di)),y.m(Ve++,Ct,Rt)}}else St=Math.max(10,this.he[ft.layer]),$t=Math.max(10,this.Ld[ft.layer]),Ce?this.K===180?(y.m(Ve++,Ct-St-Oe,Rt),y.m(Ve++,Math.min(Ct-St+Oe/2,Ct),Rt),y.m(Ve++,Ct,Rt),y.m(Ve++,Ct,Rt),y.m(Ve++,Math.max(Ct+$t-Oe/2,Ct),Rt),y.m(Ve++,Ct+$t+Oe,Rt)):this.K===90?(y.m(Ve++,Ct,Rt+$t+Oe),y.m(Ve++,Ct,Math.max(Rt+$t-Oe/2,Rt)),y.m(Ve++,Ct,Rt),y.m(Ve++,Ct,Rt),y.m(Ve++,Ct,Math.min(Rt-St+Oe/2,Rt)),y.m(Ve++,Ct,Rt-St-Oe)):this.K===270?(y.m(Ve++,Ct,Rt-St-Oe),y.m(Ve++,Ct,Math.min(Rt-St+Oe/2,Rt)),y.m(Ve++,Ct,Rt),y.m(Ve++,Ct,Rt),y.m(Ve++,Ct,Math.max(Rt+$t-Oe/2,Rt)),y.m(Ve++,Ct,Rt+$t+Oe)):(y.m(Ve++,Ct+$t+Oe,Rt),y.m(Ve++,Math.max(Ct+$t-Oe/2,Ct),Rt),y.m(Ve++,Ct,Rt),y.m(Ve++,Ct,Rt),y.m(Ve++,Math.min(Ct-St+Oe/2,Ct),Rt),y.m(Ve++,Ct-St-Oe,Rt)):y.m(Ve++,Ct,Rt)}ye=ft}(re===null||de!==Ni||Ne)&&(lt=y.i(Ve-1).x,mt=y.i(Ve-1).y,Ct=y.i(Ve).x,Rt=y.i(Ve).y,Ne?(Oe=this.Ld[fe.layer],this.K===180||this.K===0?(Ne=mt,Ne>=fe.bounds.y&&Ne<=fe.bounds.bottom&&(this.K===180?Ct>=fe.bounds.x:Ct<=fe.bounds.right)&&(ye=fe.centerX+(this.K===180?-Oe:Oe),Ne<fe.bounds.y+fe.bounds.height/2?Ne=fe.bounds.y-this.kc/2:Ne=fe.bounds.bottom+this.kc/2,y.m(Ve++,ye,mt),y.m(Ve++,ye,Ne)),y.m(Ve++,Ct,Ne)):(Ne=lt,Ne>=fe.bounds.x&&Ne<=fe.bounds.right&&(this.K===270?Rt>=fe.bounds.y:Rt<=fe.bounds.bottom)&&(ye=fe.centerY+(this.K===270?-Oe:Oe),Ne<fe.bounds.x+fe.bounds.width/2?Ne=fe.bounds.x-this.kc/2:Ne=fe.bounds.right+this.kc/2,y.m(Ve++,lt,ye),y.m(Ve++,Ne,ye)),y.m(Ve++,Ne,Rt)),y.m(Ve++,Ct,Rt)):Ce?(St=Math.max(10,this.he[fe.layer]),$t=Math.max(10,this.Ld[fe.layer]),this.K===180&&Ct>=fe.bounds.x?(ye=fe.bounds.x+fe.bounds.width,y.L(Ve-2,ye,mt),y.L(Ve-1,ye+$t,mt)):this.K===90&&Rt<=fe.bounds.bottom?(ye=fe.bounds.y,y.L(Ve-2,lt,ye),y.L(Ve-1,lt,ye-St)):this.K===270&&Rt>=fe.bounds.y?(ye=fe.bounds.y+fe.bounds.height,y.L(Ve-2,lt,ye),y.L(Ve-1,lt,ye+$t)):this.K===0&&Ct<=fe.bounds.right&&(ye=fe.bounds.x,y.L(Ve-2,ye,mt),y.L(Ve-1,ye-St,mt))):(St=Math.max(10,this.he[fe.layer]),$t=Math.max(10,this.Ld[fe.layer]),Ne=0,this.K===180||this.K===0?((this.K===180?Ct<=fe.bounds.x:Ct>=fe.bounds.right)&&(Ne=(this.K===0?$t:-St)/2),y.m(Ve++,Ct+Ne,mt)):((this.K===270?Rt<=fe.bounds.y:Rt>=fe.bounds.bottom)&&(Ne=(this.K===90?$t:-St)/2),y.m(Ve++,lt,Rt+Ne)),y.m(Ve++,Ct,Rt)))}else{for(;fe!==null&&fe!==ye;){for(St=ft=null,fe=fe.destinationEdges.iterator;fe.next()&&(lt=fe.value,lt.link!==x.link||(ft=lt.toVertex,St=lt.fromVertex,St.node!==null&&(St=null),ft.node!==null)););if(ft===null)break;ft!==ye&&(lt=y.i(Ve-1).x,mt=y.i(Ve-1).y,Ct=ft.centerX,Rt=ft.centerY,Ne?this.K===180||this.K===0?(St!==null?St.centerY:mt)!==Rt&&(St=this.Ta[ft.layer]+this.Rf.x,Ve===y.firstPickIndex+1&&(St=this.K===0?Math.max(St,lt):Math.min(St,lt)),y.m(Ve++,St,mt),y.m(Ve++,St,Rt)):(St!==null?St.centerX:lt)!==Ct&&(St=this.Ta[ft.layer]+this.Rf.y,Ve===y.firstPickIndex+1&&(St=this.K===90?Math.max(St,mt):Math.min(St,mt)),y.m(Ve++,lt,St),y.m(Ve++,Ct,St)):(St=Math.max(10,this.he[ft.layer]),$t=Math.max(10,this.Ld[ft.layer]),Ce?this.K===180?(y.m(Ve++,Ct+$t+Oe,Rt),y.m(Ve++,Math.max(Ct+$t-Oe/2,Ct),Rt),y.m(Ve++,Ct,Rt),y.m(Ve++,Ct,Rt),y.m(Ve++,Math.min(Ct-St+Oe/2,Ct),Rt),y.m(Ve++,Ct-St-Oe,Rt)):this.K===90?(y.m(Ve++,Ct,Rt-St-Oe),y.m(Ve++,Ct,Math.min(Rt-St+Oe/2,Rt)),y.m(Ve++,Ct,Rt),y.m(Ve++,Ct,Rt),y.m(Ve++,Ct,Math.max(Rt+$t-Oe/2,Rt)),y.m(Ve++,Ct,Rt+$t+Oe)):this.K===270?(y.m(Ve++,Ct,Rt+$t+Oe),y.m(Ve++,Ct,Math.max(Rt+$t-Oe/2,Rt)),y.m(Ve++,Ct,Rt),y.m(Ve++,Ct,Rt),y.m(Ve++,Ct,Math.min(Rt-St+Oe/2,Rt)),y.m(Ve++,Ct,Rt-St-Oe)):(y.m(Ve++,Ct-St-Oe,Rt),y.m(Ve++,Math.min(Ct-St+Oe/2,Ct),Rt),y.m(Ve++,Ct,Rt),y.m(Ve++,Ct,Rt),y.m(Ve++,Math.max(Ct+$t-Oe/2,Ct),Rt),y.m(Ve++,Ct+$t+Oe,Rt)):this.K===180?(y.m(Ve++,Ct+$t,Rt),y.m(Ve++,Ct-St,Rt)):this.K===90?(y.m(Ve++,Ct,Rt-St),y.m(Ve++,Ct,Rt+$t)):this.K===270?(y.m(Ve++,Ct,Rt+$t),y.m(Ve++,Ct,Rt-St)):(y.m(Ve++,Ct-St,Rt),y.m(Ve++,Ct+$t,Rt)))),fe=ft}Ne&&(lt=y.i(Ve-1).x,mt=y.i(Ve-1).y,Ct=y.i(Ve).x,Rt=y.i(Ve).y,this.K===180||this.K===0?mt!==Rt&&(St=this.K===0?Math.min(Math.max((Ct+lt)/2,this.Ta[ye.layer]+this.Rf.x),Ct):Math.max(Math.min((Ct+lt)/2,this.Ta[ye.layer]+this.Rf.x),Ct),y.m(Ve++,St,mt),y.m(Ve++,St,Rt)):lt!==Ct&&(St=this.K===90?Math.min(Math.max((Rt+mt)/2,this.Ta[ye.layer]+this.Rf.y),Rt):Math.max(Math.min((Rt+mt)/2,this.Ta[ye.layer]+this.Rf.y),Rt),y.m(Ve++,lt,St),y.m(Ve++,Ct,St)))}b!==null&&Ce&&4<=y.pointsCount&&(ee!==null&&(ee=de===Ni?y.getLinkPointFromPoint(E,ee,ee.ga(mr),y.i(3),!0):y.i(0),de===Ni&&(de=y.i(2),b=y.i(3),this.direction===90||this.direction===270?(y.L(1,(ee.x+de.x)/2,de.y),y.L(2,b.x,(de.y+b.y)/2)):(y.L(1,de.x,(ee.y+de.y)/2),y.L(2,(de.x+b.x)/2,b.y))),ee.w()||ee.set(E.actualBounds.center),y.L(0,ee.x,ee.y)),re!==null&&(E=oe===Ni?y.getLinkPointFromPoint(z,re,re.ga(mr),y.i(y.pointsCount-4),!1):y.i(y.pointsCount-1),oe===Ni&&(re=y.i(y.pointsCount-3),oe=y.i(y.pointsCount-4),this.direction===90||this.direction===270?(y.L(y.pointsCount-2,(E.x+re.x)/2,re.y),y.L(y.pointsCount-2,oe.x,(re.y+oe.y)/2)):(y.L(y.pointsCount-2,re.x,(E.y+re.y)/2),y.L(y.pointsCount-3,(re.x+oe.x)/2,oe.y))),E.w()||E.set(z.actualBounds.center),y.L(y.pointsCount-1,E.x,E.y))),y.zf(),x.commit()}}}this.avoidOrthogonalOverlaps()},Ao.prototype.avoidOrthogonalOverlaps=function(){if(!(0>=this.linkSpacing)){for(var a=new Dn,y=this.network.edges.iterator;y.next();){var x=y.value.link;x!==null&&x.isOrthogonal&&!a.contains(x)&&a.add(x)}if(0<a.count)if(this.K===90||this.K===270){for(y=0,x=[],a=a.iterator;a.next();){var b=a.value;if(b!==null&&b.isOrthogonal)for(var E=2;E<b.pointsCount-3;E++){var z=b.i(E),ee=b.i(E+1);if(this.B(z.y,ee.y)&&!this.B(z.x,ee.x)){var re=new ah;re.layer=Math.floor(z.y/2);var oe=b.i(0),de=b.i(b.pointsCount-1);if(re.first=oe.x*oe.x+oe.y,re.jc=de.x*de.x+de.y,re.rd=Math.min(z.x,ee.x),re.Ic=Math.max(z.x,ee.x),re.index=E,re.link=b,E+2<b.pointsCount){oe=b.i(E-1),de=b.i(E+2);var fe=0;oe.y<z.y?fe=de.y<z.y?3:z.x<ee.x?2:1:oe.y>z.y&&(fe=de.y>z.y?0:ee.x<z.x?2:1),re.j=fe}x.push(re)}}}if(1<x.length)for(x.sort(this.Vx),a=0;a<x.length;){for(z=x[a].layer,b=a+1;b<x.length&&x[b].layer===z;)b++;if(1<b-a)for(z=a;z<b;){for(ee=x[z].Ic,E=a+1;E<b&&x[E].rd<ee;)ee=Math.max(ee,x[E].Ic),E++;if(ee=E-z,1<ee){for(this.zi(x,this.Js,z,z+ee),fe=1,re=x[z].jc,oe=z;oe<E;oe++)de=x[oe],de.jc!==re&&(fe++,re=de.jc);this.zi(x,this.Ux,z,z+ee);var ye=1;for(re=x[z].first,oe=z;oe<E;oe++)de=x[oe],de.first!==re&&(ye++,re=de.first);for(oe=!0,de=ye,fe<ye?(oe=!1,de=fe,re=x[z].jc,this.zi(x,this.Js,z,z+ee)):re=x[z].first,fe=0,ye=z;ye<E;ye++){var Ce=x[ye];(oe?Ce.first:Ce.jc)!==re&&(fe++,re=oe?Ce.first:Ce.jc);var Ne=Ce.link;z=Ne.i(Ce.index),ee=Ne.i(Ce.index+1);var Oe=this.linkSpacing*(fe-(de-1)/2);y++,Ne.uh(),Ne.L(Ce.index,z.x,z.y+Oe),Ne.L(Ce.index+1,ee.x,ee.y+Oe),Ne.zf()}}z=E}a=b}}else{for(y=0,x=[],a=a.iterator;a.next();)if(b=a.value,b!==null&&b.isOrthogonal)for(E=2;E<b.pointsCount-3;E++)z=b.i(E),ee=b.i(E+1),this.B(z.x,ee.x)&&!this.B(z.y,ee.y)&&(re=new ah,re.layer=Math.floor(z.x/2),oe=b.i(0),de=b.i(b.pointsCount-1),re.first=oe.x+oe.y*oe.y,re.jc=de.x+de.y*de.y,re.rd=Math.min(z.y,ee.y),re.Ic=Math.max(z.y,ee.y),re.index=E,re.link=b,E+2<b.pointsCount&&(oe=b.i(E-1),de=b.i(E+2),fe=0,oe.x<z.x?fe=de.x<z.x?3:z.y<ee.y?2:1:oe.x>z.x&&(fe=de.x>z.x?0:ee.y<z.y?2:1),re.j=fe),x.push(re));if(1<x.length)for(x.sort(this.Vx),a=0;a<x.length;){for(z=x[a].layer,b=a+1;b<x.length&&x[b].layer===z;)b++;if(1<b-a)for(z=a;z<b;){for(ee=x[z].Ic,E=a+1;E<b&&x[E].rd<ee;)ee=Math.max(ee,x[E].Ic),E++;if(ee=E-z,1<ee){for(this.zi(x,this.Js,z,z+ee),fe=1,re=x[z].jc,oe=z;oe<E;oe++)de=x[oe],de.jc!==re&&(fe++,re=de.jc);for(this.zi(x,this.Ux,z,z+ee),ye=1,re=x[z].first,oe=z;oe<E;oe++)de=x[oe],de.first!==re&&(ye++,re=de.first);for(oe=!0,de=ye,fe<ye?(oe=!1,de=fe,re=x[z].jc,this.zi(x,this.Js,z,z+ee)):re=x[z].first,fe=0,ye=z;ye<E;ye++)Ce=x[ye],(oe?Ce.first:Ce.jc)!==re&&(fe++,re=oe?Ce.first:Ce.jc),Ne=Ce.link,z=Ne.i(Ce.index),ee=Ne.i(Ce.index+1),Oe=this.linkSpacing*(fe-(de-1)/2),y++,Ne.uh(),Ne.L(Ce.index,z.x+Oe,z.y),Ne.L(Ce.index+1,ee.x+Oe,ee.y),Ne.zf()}z=E}a=b}}}},Ie=Ao.prototype,Ie.Vx=function(a,y){return a instanceof ah&&y instanceof ah&&a!==y?a.layer<y.layer?-1:a.layer>y.layer?1:a.rd<y.rd?-1:a.rd>y.rd?1:a.Ic<y.Ic?-1:a.Ic>y.Ic?1:0:0},Ie.Ux=function(a,y){return a instanceof ah&&y instanceof ah&&a!==y?a.first<y.first?-1:a.first>y.first||a.j<y.j?1:a.j>y.j||a.rd<y.rd?-1:a.rd>y.rd?1:a.Ic<y.Ic?-1:a.Ic>y.Ic?1:0:0},Ie.Js=function(a,y){return a instanceof ah&&y instanceof ah&&a!==y?a.jc<y.jc?-1:a.jc>y.jc||a.j<y.j?1:a.j>y.j||a.rd<y.rd?-1:a.rd>y.rd?1:a.Ic<y.Ic?-1:a.Ic>y.Ic?1:0:0},Ie.B=function(a,y){return a-=y,-1<a&&1>a},Ie.zi=function(a,y,x,b){var E=a.length,z=b-x;if(!(1>=z))if((0>x||x>=E-1)&&vt("not in range 0 <= from < length: "+x),z===2)b=a[x],E=a[x+1],0<y(b,E)&&(a[x]=E,a[x+1]=b);else if(x===0)if(b>=E)a.sort(y);else for(x=a.slice(0,b),x.sort(y),y=0;y<b;y++)a[y]=x[y];else if(b>=E)for(b=a.slice(x),b.sort(y),y=x;y<E;y++)a[y]=b[y-x];else for(E=a.slice(x,b),E.sort(y),y=x;y<b;y++)a[y]=E[y-x]};function rh(a,y){var x=a.tc[y];if(x>=a.He.length){for(var b=[],E=0;E<a.He.length;E++)b[E]=a.He[E];a.He=b}for(a.He[x]===void 0||a.He[x]===null?b=[]:(b=a.He[x],a.He[x]=null),a=a.fl[y],y=0;y<a.length;y++)x=a[y],b[x.index]=x;return b}function oh(a,y,x){a.He[a.tc[y]]=x}jt.Object.defineProperties(Ao.prototype,{layerSpacing:{get:function(){return this.ie},set:function(a){this.ie!==a&&0<=a&&(this.ie=a,this.C())}},columnSpacing:{get:function(){return this.kc},set:function(a){this.kc!==a&&0<a&&(this.kc=a,this.C())}},direction:{get:function(){return this.K},set:function(a){this.K!==a&&(a===0||a===90||a===180||a===270?(this.K=a,this.C()):vt("LayeredDigraphLayout.direction must be 0, 90, 180, or 270"))}},cycleRemoveOption:{get:function(){return this.Dk},set:function(a){this.Dk===a||a!==Ey&&a!==L0&&a!==Dp||(this.Dk=a,this.C())}},layeringOption:{get:function(){return this.Zk},set:function(a){this.Zk===a||a!==I0&&a!==wy&&a!==Cy||(this.Zk=a,this.C())}},initializeOption:{get:function(){return this.Qk},set:function(a){this.Qk===a||a!==M0&&a!==Ty&&a!==Ay||(this.Qk=a,this.C())}},iterations:{get:function(){return this.bj},set:function(a){this.bj!==a&&0<=a&&(this.bj=a,this.C())}},aggressiveOption:{get:function(){return this.rk},set:function(a){this.rk===a||a!==Py&&a!==R0&&a!==Ny||(this.rk=a,this.C())}},packOption:{get:function(){return this.bg},set:function(a){this.bg!==a&&0<=a&&8>a&&(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 L0=new mn(Ao,"CycleDepthFirst",0),Ey=new mn(Ao,"CycleGreedy",1),Dp=new mn(Ao,"CycleFromLayers",2),I0=new mn(Ao,"LayerOptimalLinkLength",0),wy=new mn(Ao,"LayerLongestPathSink",1),Cy=new mn(Ao,"LayerLongestPathSource",2),M0=new mn(Ao,"InitDepthFirstOut",0),Ty=new mn(Ao,"InitDepthFirstIn",1),Ay=new mn(Ao,"InitNaive",2),Py=new mn(Ao,"AggressiveNone",0),R0=new mn(Ao,"AggressiveLess",1),Ny=new mn(Ao,"AggressiveMore",2),Nb=8;Ao.className="LayeredDigraphLayout",Ao.CycleDepthFirst=L0,Ao.CycleGreedy=Ey,Ao.CycleFromLayers=Dp,Ao.LayerOptimalLinkLength=I0,Ao.LayerLongestPathSink=wy,Ao.LayerLongestPathSource=Cy,Ao.InitDepthFirstOut=M0,Ao.InitDepthFirstIn=Ty,Ao.InitNaive=Ay,Ao.AggressiveNone=Py,Ao.AggressiveLess=R0,Ao.AggressiveMore=Ny,Ao.PackNone=0,Ao.PackExpand=1,Ao.PackStraighten=2,Ao.PackMedian=4,Ao.PackAll=15,Ao.AlignNone=0,Ao.AlignUpperLeft=1,Ao.AlignUpperRight=2,Ao.AlignLowerLeft=4,Ao.AlignLowerRight=8,Ao.AlignAll=15;function ah(){this.index=this.Ic=this.rd=this.jc=this.first=this.layer=0,this.link=null,this.j=0}ah.className="SegInfo";function fg(a){Zo.call(this,a)}Wt(fg,Zo),fg.prototype.createVertex=function(){return new Eu(this)},fg.prototype.createEdge=function(){return new Fp(this)},fg.className="LayeredDigraphNetwork";function Eu(a){Ka.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}Wt(Eu,Ka);function ux(a,y){return a.index-y.index}function O0(a,y){if(!a.$n){for(var x=[],b=Ei(a.destinationEdgesArrayAccess),E=b.next();!E.done;E=b.next())E=E.value,E.valid&&x.push(E);a.$n=x}for(a=Ei(a.$n),x=a.next();!x.done;x=a.next())if(x=x.value,x.toVertex===y)return x;vt("Unable to find destination edge to given vertex")}function ky(a){if(!a.co){for(var y=[],x=Ei(a.sourceEdgesArrayAccess),b=x.next();!b.done;b=x.next())b=b.value,b.valid&&y.push(b.fromVertex);y.sort(ux),a.co=y}return a.co}function Lb(a){if(!a.ao){for(var y=[],x=Ei(a.destinationEdgesArrayAccess),b=x.next();!b.done;b=x.next())b=b.value,b.valid&&y.push(b.toVertex);y.sort(ux),a.ao=y}return a.ao}Eu.prototype.Cl=function(a){Ka.prototype.Cl.call(this,a),this.bo=this.co=null},Eu.prototype.Kl=function(a){Ka.prototype.Kl.call(this,a),this.bo=this.co=null},Eu.prototype.zl=function(a){Ka.prototype.zl.call(this,a),this.$n=this.ao=null},Eu.prototype.Jl=function(a){Ka.prototype.Jl.call(this,a),this.$n=this.ao=null},jt.Object.defineProperties(Eu.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)}}}),Eu.prototype.deleteDestinationEdge=Eu.prototype.Jl,Eu.prototype.addDestinationEdge=Eu.prototype.zl,Eu.prototype.deleteSourceEdge=Eu.prototype.Kl,Eu.prototype.addSourceEdge=Eu.prototype.Cl,Eu.className="LayeredDigraphVertex";function Fp(a){Vl.call(this,a),this.j=this.ia=this.Ha=!1,this.V=this.u=NaN,this.F=this.o=0}Wt(Fp,Vl),jt.Object.defineProperties(Fp.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)}}}),Fp.className="LayeredDigraphEdge";function zr(a){sa.call(this),this.Ub=new Bn,this.Wn=_0,this.ud=Gc,this.vo=z0,this.Bq=zy,this.$v=[],this.td=!0,this.Rb=H0,this.$d=new Ln(10,10).freeze();var y=new yf(this);this.W=new Du(y),this.Y=new Du(y),this.ru=[],a&&Object.assign(this,a)}Wt(zr,sa),zr.prototype.cloneProtected=function(a){sa.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)},zr.prototype.qb=function(a){a.classType===zr?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:vt("Unknown enum value: "+a):sa.prototype.qb.call(this,a)},zr.prototype.createNetwork=function(){return new yf(this)},zr.prototype.makeNetwork=function(a){function y(b){if(b instanceof Si)return!b.isLinkLabel&&b.category!=="Comment";if(b instanceof ei){var E=b.fromNode;return E===null||E.isLinkLabel||E.category==="Comment"?!1:(b=b.toNode,!(b===null||b.isLinkLabel||b.category==="Comment"))}return!1}var x=this.createNetwork();return a instanceof en?(x.lg(a.nodes,!0,y),x.lg(a.links,!0,y)):a instanceof xr?x.lg(a.memberParts,!1,y):x.lg(a.iterator,!1,y),x},zr.prototype.doLayout=function(a){this.network===null&&(this.network=this.makeNetwork(a)),this.arrangement!==j0&&(this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin));var y=this.diagram;if(y===null&&a instanceof en&&(y=a),this.path===_0&&y!==null?this.ud=y.isTreePathToChildren?Gc:mf:this.ud=this.path===_0?Gc:this.path,0<this.network.vertexes.count){for(this.network.Ko(),a=this.network.vertexes.iterator;a.next();)y=a.value,y.initialized=!1,y.level=0,y.parent=null,y.children=[];if(0<this.Ub.count){for(a=new Bn,y=this.Ub.iterator;y.next();){var x=y.value;x instanceof Si?(x=this.network.ki(x),x!==null&&a.add(x)):x instanceof Du&&a.add(x)}this.Ub=a}for(this.Ub.count===0&&this.findRoots(),a=this.Ub.copy().iterator;a.next();)y=a.value,y.initialized||(y.initialized=!0,Ly(this,y));for(y=this.network.vertexes,a=null;a=Ib(y),0<a.count;)y=cx(this,a),y!==null&&this.Ub.add(y),y.initialized=!0,Ly(this,y),y=a;for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof Du&&hx(this,y);for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof Du&&fx(this,y);for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof Du&&gx(this,y);if(this.Cu(),this.layerStyle===G0){for(a=[],y=this.network.vertexes.iterator;y.next();){x=y.value;var b=x.parent;b===null&&(b=x),b=b.angle===0||b.angle===180;var E=a[x.level];E===void 0&&(E=0),a[x.level]=Math.max(E,b?x.width:x.height)}for(y=0;y<a.length;y++)a[y]===void 0&&(a[y]=0);for(this.$v=a,y=this.network.vertexes.iterator;y.next();)x=y.value,b=x.parent,b===null&&(b=x),b.angle===0||b.angle===180?(b.angle===180&&(x.focusX+=a[x.level]-x.width),x.width=a[x.level]):(b.angle===270&&(x.focusY+=a[x.level]-x.height),x.height=a[x.level])}else if(this.layerStyle===Hy)for(a=this.network.vertexes.iterator;a.next();){for(y=a.value,x=y.angle===0||y.angle===180,b=-1,E=0;E<y.children.length;E++){var z=y.children[E];b=Math.max(b,x?z.width:z.height)}if(0<=b)for(E=0;E<y.children.length;E++)z=y.children[E],x?(y.angle===180&&(z.focusX+=b-z.width),z.width=b):(y.angle===270&&(z.focusY+=b-z.height),z.height=b)}for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof Du&&this.layoutTree(y);this.arrangeTrees(),this.updateParts()}this.network=null,this.Ub=new Bn,this.isValidLayout=!0};function Ib(a){var y=new Bn;for(a=a.iterator;a.next();){var x=a.value;x.initialized||y.add(x)}return y}zr.prototype.findRoots=function(){for(var a=this.network.vertexes,y=a.iterator;y.next();){var x=y.value;switch(this.ud){case Gc:x.sourceEdges.count===0&&this.Ub.add(x);break;case mf:x.destinationEdges.count===0&&this.Ub.add(x);break;default:vt("Unhandled path value "+this.ud.toString())}}this.Ub.count===0&&(a=cx(this,a),a!==null&&this.Ub.add(a))};function cx(a,y){var x=999999,b=null;for(y=y.iterator;y.next();){var E=y.value;switch(a.ud){case Gc:E.sourceEdges.count<x&&(x=E.sourceEdges.count,b=E);break;case mf:E.destinationEdges.count<x&&(x=E.destinationEdges.count,b=E);break;default:vt("Unhandled path value "+a.ud.toString())}}return b}function Ly(a,y){if(y!==null){switch(a.ud){case Gc:if(0<y.destinationEdges.count){for(var x=new Dn,b=y.destinationVertexes;b.next();){var E=b.value;dx(a,y,E)&&x.add(E)}0<x.count&&(y.children=x.Fa())}break;case mf:if(0<y.sourceEdges.count){for(x=new Dn,b=y.sourceVertexes;b.next();)E=b.value,dx(a,y,E)&&x.add(E);0<x.count&&(y.children=x.Fa())}break;default:vt("Unhandled path value"+a.ud.toString())}for(x=y.children,b=x.length,E=0;E<b;E++){var z=x[E];z.initialized=!0,z.level=y.level+1,z.parent=y,a.Ub.remove(z)}for(y=0;y<b;y++)Ly(a,x[y])}}function dx(a,y,x){if(x.initialized){if(y===null)var b=!1;else{for(b=y.parent;b!==null&&b!==x;)b=b.parent;b=b===x}if(b||x.level>y.level)return!1;a.removeChild(x.parent,x)}return!0}zr.prototype.removeChild=function(a,y){if(a!==null&&y!==null){for(var x=a.children,b=0,E=0;E<x.length;E++)x[E]===y&&b++;if(0<b){b=Array(x.length-b);for(var z=E=0;z<x.length;z++)x[z]!==y&&(b[E++]=x[z]);a.children=b}}};function hx(a,y){if(y!==null){a.initializeTreeVertexValues(y),y.alignment===Yc&&a.sortTreeVertexChildren(y);for(var x=0,b=y.childrenCount,E=0,z=y.children,ee=z.length,re=0;re<ee;re++){var oe=z[re];hx(a,oe),x+=oe.descendantCount+1,b=Math.max(b,oe.maxChildrenCount),E=Math.max(E,oe.maxGenerationCount)}y.descendantCount=x,y.maxChildrenCount=b,y.maxGenerationCount=0<b?E+1:0}}function Mb(a,y){switch(a.vo){default:case z0:return y.parent!==null?y.parent:a.W;case _y:return y.parent===null?a.W:y.parent.parent===null?a.Y:y.parent;case By:return y.parent!==null?y.parent.parent!==null?y.parent.parent:a.Y:a.W;case Fy:var x=!0;if(y.childrenCount===0)x=!1;else for(var b=y.children,E=b.length,z=0;z<E;z++)if(0<b[z].childrenCount){x=!1;break}return x&&y.parent!==null?a.Y:y.parent!==null?y.parent:a.W}}zr.prototype.initializeTreeVertexValues=function(a){if(a.copyInheritedPropertiesFrom(Mb(this,a)),a.parent!==null&&a.parent.alignment===Yc){for(var y=a.angle,x=a.parent.children,b=0;b<x.length&&a!==x[b];)b++;b%2===0?b!==x.length-1&&(y=y===90?180:y===180?270:y===270?180:270):y=y===90?0:y===180?90:y===270?0:90,a.angle=y}a.initialized=!0};function fx(a,y){if(y!==null){a.assignTreeVertexValues(y),y=y.children;for(var x=y.length,b=0;b<x;b++)fx(a,y[b])}}zr.prototype.assignTreeVertexValues=function(){};function gx(a,y){if(y!==null){y.alignment!==Yc&&a.sortTreeVertexChildren(y),y=y.children;for(var x=y.length,b=0;b<x;b++)gx(a,y[b])}}zr.prototype.sortTreeVertexChildren=function(a){switch(a.sorting){case gg:break;case _p:a.children.reverse();break;case Up:a.children.sort(a.comparer);break;case zp:a.children.sort(a.comparer),a.children.reverse();break;default:vt("Unhandled sorting value "+a.sorting.toString())}},zr.prototype.Cu=function(){if(this.comments)for(var a=this.network.vertexes.iterator;a.next();)this.addComments(a.value)},zr.prototype.addComments=function(a){var y=a.angle,x=a.parent,b=0,E=!1;x!==null&&(b=x.angle,E=x.alignment,E=sh(E)),y=y===90||y===270,b=b===90||b===270,x=a.childrenCount===0;var z=0,ee=0,re=0,oe=a.commentSpacing;if(a.node!==null)for(var de=a.node.Mu();de.next();){var fe=de.value;fe.category==="Comment"&&fe.canLayout()&&(a.comments===null&&(a.comments=[]),a.comments.push(fe),fe.Va(),fe=fe.measuredBounds,y&&!x||!E&&!b&&x||E&&b&&x?(z=Math.max(z,fe.width),ee+=fe.height+Math.abs(re)):(z+=fe.width+Math.abs(re),ee=Math.max(ee,fe.height)),re=oe)}a.comments!==null&&(y&&!x||!E&&!b&&x||E&&b&&x?(z+=Math.abs(a.commentMargin),ee=Math.max(0,ee-a.height)):(ee+=Math.abs(a.commentMargin),z=Math.max(0,z-a.width)),E=tn.allocAt(0,0,a.bounds.width+z,a.bounds.height+ee),a.bounds=E,tn.free(E))};function sh(a){return a===kd||a===Yc||a===Ld||a===rd}function Bp(a){return a===kd||a===Yc}function Iy(a){var y=a.parent;if(y!==null){var x=y.alignment;if(sh(x)){if(Bp(x)){for(y=y.children,x=0;x<y.length&&a!==y[x];)x++;return x%2===0}if(x===Ld)return!0}}return!1}zr.prototype.layoutComments=function(a){if(a.comments!==null){var y=a.node.measuredBounds,x=a.parent,b=a.angle,E=0,z=!1;x!==null&&(E=x.angle,z=x.alignment,z=sh(z)),b=b===90||b===270,x=E===90||E===270;for(var ee=a.childrenCount===0,re=Iy(a),oe=0,de=a.comments,fe=de.length,ye=Je.alloc(),Ce=0;Ce<fe;Ce++){var Ne=de[Ce],Oe=Ne.measuredBounds;if(b&&!ee||!z&&!x&&ee||z&&x&&ee){if(135<E&&!z||x&&re)if(0<=a.commentMargin)for(ye.h(a.bounds.x-a.commentMargin-Oe.width,a.bounds.y+oe),Ne.move(ye),Ne=Ne.Sd();Ne.next();){var Ve=Ne.value;Ve.fromSpot=ws,Ve.toSpot=Wa}else for(ye.h(a.bounds.x+2*a.focus.x-a.commentMargin,a.bounds.y+oe),Ne.move(ye),Ne=Ne.Sd();Ne.next();)Ve=Ne.value,Ve.fromSpot=Wa,Ve.toSpot=ws;else if(0<=a.commentMargin)for(ye.h(a.bounds.x+2*a.focus.x+a.commentMargin,a.bounds.y+oe),Ne.move(ye),Ne=Ne.Sd();Ne.next();)Ve=Ne.value,Ve.fromSpot=Wa,Ve.toSpot=ws;else for(ye.h(a.bounds.x+a.commentMargin-Oe.width,a.bounds.y+oe),Ne.move(ye),Ne=Ne.Sd();Ne.next();)Ve=Ne.value,Ve.fromSpot=ws,Ve.toSpot=Wa;oe=0<=a.commentSpacing?oe+(Oe.height+a.commentSpacing):oe+(a.commentSpacing-Oe.height)}else{if(135<E&&!z||!x&&re)if(0<=a.commentMargin)for(ye.h(a.bounds.x+oe,a.bounds.y-a.commentMargin-Oe.height),Ne.move(ye),Ne=Ne.Sd();Ne.next();)Ve=Ne.value,Ve.fromSpot=ms,Ve.toSpot=Xa;else for(ye.h(a.bounds.x+oe,a.bounds.y+2*a.focus.y-a.commentMargin),Ne.move(ye),Ne=Ne.Sd();Ne.next();)Ve=Ne.value,Ve.fromSpot=Xa,Ve.toSpot=ms;else if(0<=a.commentMargin)for(ye.h(a.bounds.x+oe,a.bounds.y+2*a.focus.y+a.commentMargin),Ne.move(ye),Ne=Ne.Sd();Ne.next();)Ve=Ne.value,Ve.fromSpot=Xa,Ve.toSpot=ms;else for(ye.h(a.bounds.x+oe,a.bounds.y+a.commentMargin-Oe.height),Ne.move(ye),Ne=Ne.Sd();Ne.next();)Ve=Ne.value,Ve.fromSpot=ms,Ve.toSpot=Xa;oe=0<=a.commentSpacing?oe+(Oe.width+a.commentSpacing):oe+(a.commentSpacing-Oe.width)}}if(Je.free(ye),y=oe-a.commentSpacing-(b?y.height:y.width),this.ud===Gc)for(a=a.destinationEdges;a.next();)E=a.value.link,E===null||E.isAvoiding||(E.fromEndSegmentLength=0<y?y:NaN);else for(a=a.sourceEdges;a.next();)E=a.value.link,E===null||E.isAvoiding||(E.toEndSegmentLength=0<y?y:NaN)}},zr.prototype.layoutTree=function(a){if(a!==null){for(var y=a.children,x=y.length,b=0;b<x;b++)this.layoutTree(y[b]);switch(a.compaction){case U0:px(this,a);break;case Hp:if(a.alignment===Yc)px(this,a);else if(a.childrenCount===0)b=a.parent,x=!1,y=0,b!==null&&(y=b.angle,x=b.alignment,x=sh(x)),b=Iy(a),a.S.h(0,0),a.Da.h(a.width,a.height),a.parent===null||a.comments===null||(y!==180&&y!==270||x)&&!b?a.la.h(0,0):y===180&&!x||(y===90||y===270)&&b?a.la.h(a.width-2*a.focus.x,0):a.la.h(0,a.height-2*a.focus.y),a.Yo=null,a.kp=null;else{var E=nc(a);y=E===90||E===270;var z=0,ee=a.children,re=ee.length;for(x=0;x<re;x++)b=ee[x],z=Math.max(z,y?b.Da.width:b.Da.height);var oe=a.alignment;b=oe===Wc;var de=oe===Vc,fe=sh(oe),ye=Math.max(0,a.breadthLimit);x=this.computeLayerSpacing(a);var Ce=a.nodeSpacing,Ne=this.computeNodeIndent(a),Oe=a.rowSpacing,Ve=0;(b||de||a.hm||a.im&&a.maxGenerationCount===1)&&(Ve=Math.max(0,a.rowIndent)),b=a.width;var ft=a.height,lt=0,mt=0,St=0,Ct=null,Rt=null,$t=0,di=0,Di=0,Li=0,$n=0,Nn=0,Sr=0,hr=0;if(fe&&!Bp(oe)&&135<E&&ee.reverse(),Bp(oe))if(1<re)for(var po=0;po<re;po++)po%2===0&&po!==re-1&&(hr=Math.max(hr,y?ee[po].Da.width:ee[po].Da.height));else re===1&&(hr=y?ee[0].Da.width:ee[0].Da.height);if(fe){switch(oe){case kd:mt=135>E?mx(this,a,ee,hr,lt,mt):vx(this,a,ee,hr,lt,mt),hr=mt.x,lt=mt.width,mt=mt.height;break;case Ld:for(Ct=0;Ct<re;Ct++)Rt=ee[Ct],ye=Rt.Da,St=Nn===0?0:Oe,y?(Rt.S.h(z-ye.width,Li+St),lt=Math.max(lt,ye.width),mt=Math.max(mt,Li+St+ye.height),Li+=St+ye.height):(Rt.S.h(Di+St,z-ye.height),lt=Math.max(lt,Di+St+ye.width),mt=Math.max(mt,ye.height),Di+=St+ye.width),Nn++;break;case rd:for(Ct=0;Ct<re;Ct++)Rt=ee[Ct],z=Rt.Da,ye=Nn===0?0:Oe,y?(Rt.S.h(Ce/2+a.focus.x,Li+ye),lt=Math.max(lt,z.width),mt=Math.max(mt,Li+ye+z.height),Li+=ye+z.height):(Rt.S.h(Di+ye,Ce/2+a.focus.y),lt=Math.max(lt,Di+ye+z.width),mt=Math.max(mt,z.height),Di+=ye+z.width),Nn++}Ct=Ml(this,2),Rt=Ml(this,2),y?(Ct[0].h(0,0),Ct[1].h(0,mt),Rt[0].h(lt,0)):(Ct[0].h(0,0),Ct[1].h(lt,0),Rt[0].h(0,mt)),Rt[1].h(lt,mt)}else for(po=0;po<re;po++){var Yo=ee[po],rs=Yo.Da;if(y){0<ye&&0<Nn&&Di+Ce+rs.width>ye&&(Di<z&&zh(a,oe,z-Di,0,Sr,po-1),$n++,Nn=0,Sr=po,St=mt,Di=0,Li=135<E?-mt-Oe:mt+Oe),F0(this,Yo,0,Li);var ls=0;if(Nn===0)Ct=Yo.Yo,Rt=Yo.kp,$t=rs.width,di=rs.height,(Ct===null||Rt===null||E!==nc(Yo))&&(Ct=Ml(this,2),Rt=Ml(this,2),Ct[0].h(0,0),Ct[1].h(0,di),Rt[0].h($t,0),Rt[1].h($t,di));else{var Qs=Mi();di=yx(this,a,Yo,Ct,Rt,$t,di,Qs),ls=di.x,Ct=Qs[0],Rt=Qs[1],$t=di.width,di=di.height,ui(Qs),Di<rs.width&&0>ls&&(pf(a,-ls,0,Sr,po-1),B0(Ct,-ls,0),B0(Rt,-ls,0),ls=0)}Yo.S.h(ls,Li),lt=Math.max(lt,$t),mt=Math.max(mt,St+($n===0?0:Oe)+rs.height),Di=$t}else 0<ye&&0<Nn&&Li+Ce+rs.height>ye&&(Li<z&&zh(a,oe,0,z-Li,Sr,po-1),$n++,Nn=0,Sr=po,St=lt,Li=0,Di=135<E?-lt-Oe:lt+Oe),F0(this,Yo,Di,0),ls=0,Nn===0?(Ct=Yo.Yo,Rt=Yo.kp,$t=rs.width,di=rs.height,(Ct===null||Rt===null||E!==nc(Yo))&&(Ct=Ml(this,2),Rt=Ml(this,2),Ct[0].h(0,0),Ct[1].h($t,0),Rt[0].h(0,di),Rt[1].h($t,di))):(Qs=Mi(),di=yx(this,a,Yo,Ct,Rt,$t,di,Qs),ls=di.x,Ct=Qs[0],Rt=Qs[1],$t=di.width,di=di.height,ui(Qs),Li<rs.height&&0>ls&&(pf(a,0,-ls,Sr,po-1),B0(Ct,0,-ls),B0(Rt,0,-ls),ls=0)),Yo.S.h(Di,ls),mt=Math.max(mt,di),lt=Math.max(lt,St+($n===0?0:Oe)+rs.width),Li=di;Nn++}switch(0<$n&&(y?(mt+=Math.max(0,x),Di<lt&&zh(a,oe,lt-Di,0,Sr,re-1),0<Ve&&(de||pf(a,Ve,0,0,re-1),lt+=Ve)):(lt+=Math.max(0,x),Li<mt&&zh(a,oe,0,mt-Li,Sr,re-1),0<Ve&&(de||pf(a,0,Ve,0,re-1),mt+=Ve))),Ve=de=0,oe){case pg:y?de+=lt/2-a.focus.x-Ne/2:Ve+=mt/2-a.focus.y-Ne/2;break;case vf:0<$n?y?de+=lt/2-a.focus.x-Ne/2:Ve+=mt/2-a.focus.y-Ne/2:y?(hr=ee[0].S.x+ee[0].la.x,de+=hr+(ee[re-1].S.x+ee[re-1].la.x+2*ee[re-1].focus.x-hr)/2-a.focus.x-Ne/2):(hr=ee[0].S.y+ee[0].la.y,Ve+=hr+(ee[re-1].S.y+ee[re-1].la.y+2*ee[re-1].focus.y-hr)/2-a.focus.y-Ne/2);break;case Wc:y?(de-=Ne,lt+=Ne):(Ve-=Ne,mt+=Ne);break;case Vc:y?(de+=lt-a.width+Ne,lt+=Ne):(Ve+=mt-a.height+Ne,mt+=Ne);break;case kd:y?1<re?de+=hr+Ce/2-a.focus.x:de+=ee[0].focus.x-a.focus.x+ee[0].la.x:1<re?Ve+=hr+Ce/2-a.focus.y:Ve+=ee[0].focus.y-a.focus.y+ee[0].la.y;break;case Ld:y?de+=lt+Ce/2-a.focus.x:Ve+=mt+Ce/2-a.focus.y;break;case rd:break;default:mt=this.customAlignment(a,de,Ve,lt,mt),de=mt[0],Ve=mt[1],lt=mt[2],mt=mt[3]}for(Ne=0;Ne<re;Ne++)hr=ee[Ne],y?hr.S.h(hr.S.x+hr.la.x-de,hr.S.y+(135<E?(fe?-mt:-hr.Da.height)+hr.la.y-x:ft+x+hr.la.y)):hr.S.h(hr.S.x+(135<E?(fe?-lt:-hr.Da.width)+hr.la.x-x:b+x+hr.la.x),hr.S.y+hr.la.y-Ve);if(re=ee=0,fe?y?(lt=My(a,lt,de),0>de&&(de=0),135<E&&(Ve+=mt+x),mt+=ft+x,oe===rd&&(ee+=Ce/2+a.focus.x),re+=ft+x):(135<E&&(de+=lt+x),lt+=b+x,mt=Ry(a,mt,Ve),0>Ve&&(Ve=0),oe===rd&&(re+=Ce/2+a.focus.y),ee+=b+x):y?(a.comments===null?b>lt&&(lt=Oy(oe,b-lt,0),ee=lt.x,re=lt.y,lt=b,de=0):lt=My(a,lt,de),0>de&&(ee-=de,de=0),135<E&&(Ve+=mt+x),mt=Math.max(Math.max(mt,ft),mt+ft+x),re+=ft+x):(135<E&&(de+=lt+x),lt=Math.max(Math.max(lt,b),lt+b+x),a.comments===null?ft>mt&&(mt=Oy(oe,0,ft-mt),ee=mt.x,re=mt.y,mt=ft,Ve=0):mt=Ry(a,mt,Ve),0>Ve&&(re-=Ve,Ve=0),ee+=b+x),0<$n)E=Ml(this,4),$n=Ml(this,4),y?(E[2].h(0,ft+x),E[3].h(E[2].x,mt),$n[2].h(lt,E[2].y),$n[3].h($n[2].x,E[3].y)):(E[2].h(b+x,0),E[3].h(lt,E[2].y),$n[2].h(E[2].x,mt),$n[3].h(E[3].x,$n[2].y));else{for(E=Ml(this,Ct.length+2),$n=Ml(this,Rt.length+2),oe=0;oe<Ct.length;oe++)fe=Ct[oe],E[oe+2].h(fe.x+ee,fe.y+re);for(oe=0;oe<Rt.length;oe++)fe=Rt[oe],$n[oe+2].h(fe.x+ee,fe.y+re)}y?(E[0].h(de,0),E[1].h(E[0].x,ft),E[2].y<E[1].y&&(E[2].x>E[0].x?E[2].assign(E[1]):E[1].assign(E[2])),E[3].y<E[2].y&&(E[3].x>E[0].x?E[3].assign(E[2]):E[2].assign(E[3])),$n[0].h(de+b,0),$n[1].h($n[0].x,ft),$n[2].y<$n[1].y&&($n[2].x<$n[0].x?$n[2].assign($n[1]):$n[1].assign($n[2])),$n[3].y<$n[2].y&&($n[3].x<$n[0].x?$n[3].assign($n[2]):$n[2].assign($n[3])),E[2].y-=x/2,$n[2].y-=x/2):(E[0].h(0,Ve),E[1].h(b,E[0].y),E[2].x<E[1].x&&(E[2].y>E[0].y?E[2].assign(E[1]):E[1].assign(E[2])),E[3].x<E[2].x&&(E[3].y>E[0].y?E[3].assign(E[2]):E[2].assign(E[3])),$n[0].h(0,Ve+ft),$n[1].h(b,$n[0].y),$n[2].x<$n[1].x&&($n[2].y<$n[0].y?$n[2].assign($n[1]):$n[1].assign($n[2])),$n[3].x<$n[2].x&&($n[3].y<$n[0].y?$n[3].assign($n[2]):$n[2].assign($n[3])),E[2].x-=x/2,$n[2].x-=x/2),gc(this,Ct),gc(this,Rt),a.Yo=E,a.kp=$n,a.la.h(de,Ve),a.Da.h(lt,mt)}break;default:vt("Unhandled compaction value "+a.compaction.toString())}}};function px(a,y){if(y.childrenCount===0){var x=!1,b=0;y.parent!==null&&(b=y.parent.angle,x=y.parent.alignment,x=sh(x));var E=Iy(y);y.S.h(0,0),y.Da.h(y.width,y.height),y.parent===null||y.comments===null||(b!==180&&b!==270||x)&&!E?y.la.h(0,0):b===180&&!x||(b===90||b===270)&&E?y.la.h(y.width-2*y.focus.x,0):y.la.h(0,y.height-2*y.focus.y)}else{b=nc(y),x=b===90||b===270;var z=0;E=y.children;for(var ee=E.length,re=0;re<ee;re++){var oe=E[re];z=Math.max(z,x?oe.Da.width:oe.Da.height)}var de=y.alignment,fe=de===Wc,ye=de===Vc;re=sh(de);var Ce=Math.max(0,y.breadthLimit);oe=a.computeLayerSpacing(y);var Ne=y.nodeSpacing,Oe=a.computeNodeIndent(y),Ve=fe||ye?0:Oe/2,ft=y.rowSpacing,lt=0;(fe||ye||y.hm||y.im&&y.maxGenerationCount===1)&&(lt=Math.max(0,y.rowIndent)),fe=y.width;var mt=y.height,St=0,Ct=0,Rt=0,$t=0,di=0,Di=0,Li=0,$n=0,Nn=0,Sr=0;if(re&&!Bp(de)&&135<b&&E.reverse(),Bp(de))if(1<ee)for(var hr=0;hr<ee;hr++){var po=E[hr],Yo=po.Da;hr%2===0&&hr!==ee-1?Nn=Math.max(Nn,(x?Yo.width:Yo.height)+a.computeBusNodeSpacing(po)-Ne):hr%2!==0&&(Sr=Math.max(Sr,(x?Yo.width:Yo.height)+a.computeBusNodeSpacing(po)-Ne))}else ee===1&&(Nn=x?E[0].Da.width:E[0].Da.height);if(re)switch(de){case kd:case Yc:Ct=135>b?mx(a,y,E,Nn,St,Ct):vx(a,y,E,Nn,St,Ct),Nn=Ct.x,St=Ct.width,Ct=Ct.height;break;case Ld:for(Ce=0;Ce<ee;Ce++)Ve=E[Ce],Rt=Ve.Da,Sr=Li===0?0:ft,x?(Ve.S.h(z-Rt.width,di+Sr),St=Math.max(St,Rt.width),Ct=Math.max(Ct,di+Sr+Rt.height),di+=Sr+Rt.height):(Ve.S.h($t+Sr,z-Rt.height),St=Math.max(St,$t+Sr+Rt.width),Ct=Math.max(Ct,Rt.height),$t+=Sr+Rt.width),Li++;break;case rd:for(z=0;z<ee;z++)Ce=E[z],Ve=Ce.Da,Rt=Li===0?0:ft,x?(Ce.S.h(Ne/2+y.focus.x,di+Rt),St=Math.max(St,Ve.width),Ct=Math.max(Ct,di+Rt+Ve.height),di+=Rt+Ve.height):(Ce.S.h($t+Rt,Ne/2+y.focus.y),St=Math.max(St,$t+Rt+Ve.width),Ct=Math.max(Ct,Ve.height),$t+=Rt+Ve.width),Li++}else for(Sr=0;Sr<ee;Sr++)hr=E[Sr],po=hr.Da,x?(0<Ce&&0<Li&&$t+Ne+po.width>Ce&&($t<z&&zh(y,de,z-$t,0,$n,Sr-1),Di++,Li=0,$n=Sr,Rt=Ct,$t=0,di=135<b?-Ct-ft:Ct+ft),Yo=Li===0?Ve:Ne,F0(a,hr,0,di),hr.S.h($t+Yo,di),St=Math.max(St,$t+Yo+po.width),Ct=Math.max(Ct,Rt+(Di===0?0:ft)+po.height),$t+=Yo+po.width):(0<Ce&&0<Li&&di+Ne+po.height>Ce&&(di<z&&zh(y,de,0,z-di,$n,Sr-1),Di++,Li=0,$n=Sr,Rt=St,di=0,$t=135<b?-St-ft:St+ft),Yo=Li===0?Ve:Ne,F0(a,hr,$t,0),hr.S.h($t,di+Yo),Ct=Math.max(Ct,di+Yo+po.height),St=Math.max(St,Rt+(Di===0?0:ft)+po.width),di+=Yo+po.height),Li++;switch(0<Di&&(x?(Ct+=Math.max(0,oe),$t<St&&zh(y,de,St-$t,0,$n,ee-1),0<lt&&(ye||pf(y,lt,0,0,ee-1),St+=lt)):(St+=Math.max(0,oe),di<Ct&&zh(y,de,0,Ct-di,$n,ee-1),0<lt&&(ye||pf(y,0,lt,0,ee-1),Ct+=lt))),lt=ye=0,de){case pg:x?ye+=St/2-y.focus.x-Oe/2:lt+=Ct/2-y.focus.y-Oe/2;break;case vf:0<Di?x?ye+=St/2-y.focus.x-Oe/2:lt+=Ct/2-y.focus.y-Oe/2:x?(a=E[0].S.x+E[0].la.x,ye+=a+(E[ee-1].S.x+E[ee-1].la.x+2*E[ee-1].focus.x-a)/2-y.focus.x-Oe/2):(a=E[0].S.y+E[0].la.y,lt+=a+(E[ee-1].S.y+E[ee-1].la.y+2*E[ee-1].focus.y-a)/2-y.focus.y-Oe/2);break;case Wc:x?(ye-=Oe,St+=Oe):(lt-=Oe,Ct+=Oe);break;case Vc:x?(ye+=St-y.width+Oe,St+=Oe):(lt+=Ct-y.height+Oe,Ct+=Oe);break;case kd:case Yc:x?1<ee?ye+=Nn+Ne/2-y.focus.x:ye+=E[0].focus.x-y.focus.x+E[0].la.x:1<ee?lt+=Nn+Ne/2-y.focus.y:lt+=E[0].focus.y-y.focus.y+E[0].la.y;break;case Ld:x?ye+=St+Ne/2-y.focus.x:lt+=Ct+Ne/2-y.focus.y;break;case rd:break;default:a=a.customAlignment(y,ye,lt,St,Ct),ye=a[0],lt=a[1],St=a[2],Ct=a[3]}for(a=0;a<ee;a++)Oe=E[a],x?Oe.S.h(Oe.S.x+Oe.la.x-ye,Oe.S.y+(135<b?(re?-Ct:-Oe.Da.height)+Oe.la.y-oe:mt+oe+Oe.la.y)):Oe.S.h(Oe.S.x+(135<b?(re?-St:-Oe.Da.width)+Oe.la.x-oe:fe+oe+Oe.la.x),Oe.S.y+Oe.la.y-lt);x?(St=My(y,St,ye),0>ye&&(ye=0),135<b&&(lt+=Ct+oe),Ct=Math.max(Math.max(Ct,mt),Ct+mt+oe)):(135<b&&(ye+=St+oe),St=Math.max(Math.max(St,fe),St+fe+oe),Ct=Ry(y,Ct,lt),0>lt&&(lt=0)),y.la.h(ye,lt),y.Da.h(St,Ct)}}zr.prototype.customAlignment=function(a,y,x,b,E){return[y,x,b,E]};function mx(a,y,x,b,E,z){var ee=x.length;if(ee===0)return new tn(b,0,E,z);if(ee===1)return y=x[0],E=y.Da.width,z=y.Da.height,new tn(b,0,E,z);for(var re=y.nodeSpacing,oe=y.rowSpacing,de=nc(y)===90,fe=0,ye=0,Ce=0,Ne=0;Ne<ee;Ne++)if(!(Ne%2!==0||1<ee&&Ne===ee-1)){var Oe=x[Ne],Ve=Oe.Da,ft=fe===0?0:oe;if(de){var lt=a.computeBusNodeSpacing(Oe)-re;Oe.S.h(b-(Ve.width+lt),Ce+ft),E=Math.max(E,Ve.width+lt),z=Math.max(z,Ce+ft+Ve.height),Ce+=ft+Ve.height}else lt=a.computeBusNodeSpacing(Oe)-re,Oe.S.h(ye+ft,b-(Ve.height+lt)),z=Math.max(z,Ve.height+lt),E=Math.max(E,ye+ft+Ve.width),ye+=ft+Ve.width;fe++}for(fe=0,Oe=ye,Ne=Ce,de?(ye=b+re,Ce=0):(ye=0,Ce=b+re),Ve=0;Ve<ee;Ve++)if(Ve%2!==0){ft=x[Ve],lt=ft.Da;var mt=fe===0?0:oe;if(de){var St=a.computeBusNodeSpacing(ft)-re;ft.S.h(ye+St,Ce+mt),E=Math.max(E,ye+lt.width+St),z=Math.max(z,Ce+mt+lt.height),Ce+=mt+lt.height}else St=a.computeBusNodeSpacing(ft)-re,ft.S.h(ye+mt,Ce+St),E=Math.max(E,ye+mt+lt.width),z=Math.max(z,Ce+lt.height+St),ye+=mt+lt.width;fe++}return 1<ee&&ee%2===1&&(x=x[ee-1],ee=x.Da,a=a.computeBusLastRowSpacing(x,de?Math.max(Math.abs(Ne),Math.abs(Ce)):Math.max(Math.abs(Oe),Math.abs(ye))),de?(x.S.h(b+re/2-x.focus.x-x.la.x,z+a),de=b+re/2-x.focus.x-x.la.x,E=Math.max(E,de+ee.width),0>de&&(E-=de),z=Math.max(z,Math.max(Ne,Ce)+a+ee.height),0>x.S.x&&(b=D0(y,x.S.x,!1,b,re))):(x.S.h(E+a,b+re/2-x.focus.y-x.la.y),E=Math.max(E,Math.max(Oe,ye)+a+ee.width),Ce=b+re/2-x.focus.y-x.la.y,z=Math.max(z,Ce+ee.height),0>Ce&&(z-=Ce),0>x.S.y&&(b=D0(y,x.S.y,!0,b,re)))),new tn(b,0,E,z)}function vx(a,y,x,b,E,z){var ee=x.length;if(ee===0)return new tn(b,0,E,z);if(ee===1)return x=x[0],E=x.Da.width,z=x.Da.height,new tn(b,0,E,z);for(var re=y.nodeSpacing,oe=y.rowSpacing,de=nc(y)===270,fe=0,ye=0,Ce=0,Ne=0;Ne<ee;Ne++)if(!(Ne%2!==0||1<ee&&Ne===ee-1)){var Oe=x[Ne],Ve=Oe.Da,ft=fe===0?0:oe;if(de){var lt=a.computeBusNodeSpacing(Oe)-re;Ce-=ft+Ve.height,Oe.S.h(b-(Ve.width+lt),Ce),E=Math.max(E,Ve.width+lt),z=Math.max(z,Math.abs(Ce))}else lt=a.computeBusNodeSpacing(Oe)-re,ye-=ft+Ve.width,Oe.S.h(ye,b-(Ve.height+lt)),z=Math.max(z,Ve.height+lt),E=Math.max(E,Math.abs(ye));fe++}for(fe=0,Oe=ye,Ne=Ce,de?(ye=b+re,Ce=0):(ye=0,Ce=b+re),Ve=0;Ve<ee;Ve++)if(Ve%2!==0){ft=x[Ve],lt=ft.Da;var mt=fe===0?0:oe;if(de){var St=a.computeBusNodeSpacing(ft)-re;Ce-=mt+lt.height,ft.S.h(ye+St,Ce),E=Math.max(E,ye+lt.width+St),z=Math.max(z,Math.abs(Ce))}else St=a.computeBusNodeSpacing(ft)-re,ye-=mt+lt.width,ft.S.h(ye,Ce+St),z=Math.max(z,Ce+lt.height+St),E=Math.max(E,Math.abs(ye));fe++}for(1<ee&&ee%2===1&&(oe=x[ee-1],fe=oe.Da,a=a.computeBusLastRowSpacing(oe,de?Math.max(Math.abs(Ne),Math.abs(Ce)):Math.max(Math.abs(Oe),Math.abs(ye))),de?(oe.S.h(b+re/2-oe.focus.x-oe.la.x,-z-fe.height-a),ye=b+re/2-oe.focus.x-oe.la.x,E=Math.max(E,ye+fe.width),0>ye&&(E-=ye),z=Math.max(z,Math.abs(Math.min(Ne,Ce))+a+fe.height),0>oe.S.x&&(b=D0(y,oe.S.x,!1,b,re))):(oe.S.h(-E-fe.width-a,b+re/2-oe.focus.y-oe.la.y),E=Math.max(E,Math.abs(Math.min(Oe,ye))+a+fe.width),Ce=b+re/2-oe.focus.y-oe.la.y,z=Math.max(z,Ce+fe.height),0>Ce&&(z-=Ce),0>oe.S.y&&(b=D0(y,oe.S.y,!0,b,re)))),y=0;y<ee;y++)re=x[y],de?re.S.h(re.S.x,re.S.y+z):re.S.h(re.S.x+E,re.S.y);return new tn(b,0,E,z)}zr.prototype.computeBusNodeSpacing=function(a){return a.parent===null?0:a.parent.nodeSpacing},zr.prototype.computeBusLastRowSpacing=function(a){return a.parent===null?0:a.parent.rowSpacing};function D0(a,y,x,b,E){a=a.children;for(var z=a.length,ee=0;ee<z;ee++)x?a[ee].S.h(a[ee].S.x,a[ee].S.y-y):a[ee].S.h(a[ee].S.x-y,a[ee].S.y);return y=a[z-1],Math.max(b,x?y.la.y+y.focus.y-E/2:y.la.x+y.focus.x-E/2)}function My(a,y,x){switch(a.alignment){case vf:case pg:return x+a.width>y&&(y=x+a.width),0>x&&(y-=x),y;case Wc:return a.width>y?a.width:y;case Vc:return 2*a.focus.x>y?a.width:y+a.width-2*a.focus.x;case kd:case Yc:return Math.max(a.width,Math.max(y,x+a.width)-Math.min(0,x));case Ld:return a.width-a.focus.x+a.nodeSpacing/2+y;case rd:return Math.max(a.width,a.focus.x+a.nodeSpacing/2+y);default:return y}}function Ry(a,y,x){switch(a.alignment){case vf:case pg:return x+a.height>y&&(y=x+a.height),0>x&&(y-=x),y;case Wc:return a.height>y?a.height:y;case Vc:return 2*a.focus.y>y?a.height:y+a.height-2*a.focus.y;case kd:case Yc:return Math.max(a.height,Math.max(y,x+a.height)-Math.min(0,x));case Ld:return a.height-a.focus.y+a.nodeSpacing/2+y;case rd:return Math.max(a.height,a.focus.y+a.nodeSpacing/2+y);default:return y}}function Oy(a,y,x){switch(a){case pg:y/=2,x/=2;break;case vf:y/=2,x/=2;break;case Wc:x=y=0;break;case Vc:break;default:vt("Unhandled alignment value "+a.toString())}return new Je(y,x)}function zh(a,y,x,b,E,z){y=Oy(y,x,b),pf(a,y.x,y.y,E,z)}function pf(a,y,x,b,E){if(y!==0||x!==0)for(a=a.children;b<=E;b++){var z=a[b].S;z.x+=y,z.y+=x}}function F0(a,y,x,b){var E=y.parent;switch(a.ud){case Gc:for(a=y.sourceEdges;a.next();)y=a.value,y.fromVertex===E&&y.relativePoint.h(x,b);break;case mf:for(a=y.destinationEdges;a.next();)y=a.value,y.toVertex===E&&y.relativePoint.h(x,b);break;default:vt("Unhandled path value "+a.ud.toString())}}function B0(a,y,x){for(var b=0;b<a.length;b++){var E=a[b];E.x+=y,E.y+=x}}function yx(a,y,x,b,E,z,ee,re){var oe=nc(y),de=oe===90||oe===270,fe=y.nodeSpacing;y=b;var ye=E;b=z;var Ce=ee,Ne=x.Yo,Oe=x.kp;ee=x.Da;var Ve=de?Math.max(Ce,ee.height):Math.max(b,ee.width);if((Ne===null||oe!==nc(x))&&(Ne=Ml(a,2),Oe=Ml(a,2),de?(Ne[0].h(0,0),Ne[1].h(0,ee.height),Oe[0].h(ee.width,0),Oe[1].h(Oe[0].x,Ne[1].y)):(Ne[0].h(0,0),Ne[1].h(ee.width,0),Oe[0].h(0,ee.height),Oe[1].h(Ne[1].x,Oe[0].y))),de){if(Ce=9999999,!(ye===null||2>ye.length||Ne===null||2>Ne.length))for(E=x=0;x<ye.length&&E<Ne.length;){z=ye[x];var ft=Ne[E];oe=ft.x,de=ft.y,oe+=b;var lt=z;x+1<ye.length&&(lt=ye[x+1]);var mt=ft;ft=mt.x,mt=mt.y,E+1<Ne.length&&(mt=Ne[E+1],ft=mt.x,mt=mt.y,ft+=b);var St=Ce;z.y===de?St=oe-z.x:z.y>de&&z.y<mt?St=oe+(z.y-de)/(mt-de)*(ft-oe)-z.x:de>z.y&&de<lt.y&&(St=oe-(z.x+(de-z.y)/(lt.y-z.y)*(lt.x-z.x))),St<Ce&&(Ce=St),lt.y<=z.y?x++:mt<=de?E++:(lt.y<=mt&&x++,mt<=lt.y&&E++)}if(Ce=b-Ce,Ce+=fe,x=Ne,E=Ce,y===null||2>y.length||x===null||2>x.length)b=null;else{for(fe=Ml(a,y.length+x.length),b=z=oe=0;z<x.length&&x[z].y<y[0].y;)de=x[z++],fe[b++].h(de.x+E,de.y);for(;oe<y.length;)de=y[oe++],fe[b++].h(de.x,de.y);for(oe=y[y.length-1].y;z<x.length&&x[z].y<=oe;)z++;for(;z<x.length&&x[z].y>oe;)de=x[z++],fe[b++].h(de.x+E,de.y);for(x=Ml(a,b),oe=0;oe<b;oe++)x[oe].assign(fe[oe]);gc(a,fe),b=x}if(z=Oe,oe=Ce,ye===null||2>ye.length||z===null||2>z.length)E=null;else{for(fe=Ml(a,ye.length+z.length),E=de=x=0;x<ye.length&&ye[x].y<z[0].y;)lt=ye[x++],fe[E++].h(lt.x,lt.y);for(;de<z.length;)lt=z[de++],fe[E++].h(lt.x+oe,lt.y);for(z=z[z.length-1].y;x<ye.length&&ye[x].y<=z;)x++;for(;x<ye.length&&ye[x].y>z;)oe=ye[x++],fe[E++].h(oe.x,oe.y);for(z=Ml(a,E),x=0;x<E;x++)z[x].assign(fe[x]);gc(a,fe),E=z}return z=Math.max(0,Ce)+ee.width,ee=Ve,gc(a,y),gc(a,Ne),gc(a,ye),gc(a,Oe),re[0]=b,re[1]=E,new tn(Ce,0,z,ee)}if(b=9999999,!(ye===null||2>ye.length||Ne===null||2>Ne.length))for(E=x=0;x<ye.length&&E<Ne.length;)z=ye[x],ft=Ne[E],oe=ft.x,de=ft.y,de+=Ce,lt=z,x+1<ye.length&&(lt=ye[x+1]),mt=ft,ft=mt.x,mt=mt.y,E+1<Ne.length&&(mt=Ne[E+1],ft=mt.x,mt=mt.y,mt+=Ce),St=b,z.x===oe?St=de-z.y:z.x>oe&&z.x<ft?St=de+(z.x-oe)/(ft-oe)*(mt-de)-z.y:oe>z.x&&oe<lt.x&&(St=de-(z.y+(oe-z.x)/(lt.x-z.x)*(lt.y-z.y))),St<b&&(b=St),lt.x<=z.x?x++:ft<=oe?E++:(lt.x<=ft&&x++,ft<=lt.x&&E++);if(Ce-=b,Ce+=fe,x=Ne,E=Ce,y===null||2>y.length||x===null||2>x.length)b=null;else{for(fe=Ml(a,y.length+x.length),b=z=oe=0;z<x.length&&x[z].x<y[0].x;)de=x[z++],fe[b++].h(de.x,de.y+E);for(;oe<y.length;)de=y[oe++],fe[b++].h(de.x,de.y);for(oe=y[y.length-1].x;z<x.length&&x[z].x<=oe;)z++;for(;z<x.length&&x[z].x>oe;)de=x[z++],fe[b++].h(de.x,de.y+E);for(x=Ml(a,b),oe=0;oe<b;oe++)x[oe].assign(fe[oe]);gc(a,fe),b=x}if(z=Oe,oe=Ce,ye===null||2>ye.length||z===null||2>z.length)E=null;else{for(fe=Ml(a,ye.length+z.length),E=de=x=0;x<ye.length&&ye[x].x<z[0].x;)lt=ye[x++],fe[E++].h(lt.x,lt.y);for(;de<z.length;)lt=z[de++],fe[E++].h(lt.x,lt.y+oe);for(z=z[z.length-1].x;x<ye.length&&ye[x].x<=z;)x++;for(;x<ye.length&&ye[x].x>z;)oe=ye[x++],fe[E++].h(oe.x,oe.y);for(z=Ml(a,E),x=0;x<E;x++)z[x].assign(fe[x]);gc(a,fe),E=z}return z=Ve,ee=Math.max(0,Ce)+ee.height,gc(a,y),gc(a,Ne),gc(a,ye),gc(a,Oe),re[0]=b,re[1]=E,new tn(Ce,0,z,ee)}function Ml(a,y){if(a=a.ru[y],a!==void 0&&(a=a.pop(),a!==void 0))return a;a=[];for(var x=0;x<y;x++)a[x]=new Je;return a}function gc(a,y){var x=y.length,b=a.ru[x];b===void 0&&(b=[],a.ru[x]=b),b.push(y)}zr.prototype.arrangeTrees=function(){if(this.Rb===j0)for(var a=this.Ub.iterator;a.next();){var y=a.value;if(y instanceof Du){var x=y.node;if(x!==null){var b=x.position;x=b.x,b=b.y,isFinite(x)||(x=0),isFinite(b)||(b=0),Dy(this,y,x,b)}}}else{for(a=[],y=this.Ub.iterator;y.next();)x=y.value,x instanceof Du&&a.push(x);switch(this.sorting){case gg:break;case _p:a.reverse();break;case Up:a.sort(this.comparer);break;case zp:a.sort(this.comparer),a.reverse();break;default:vt("Unhandled sorting value "+this.sorting.toString())}for(x=this.arrangementOrigin,y=x.x,x=x.y,b=0;b<a.length;b++){var E=a[b];switch(Dy(this,E,y+E.la.x,x+E.la.y),this.Rb){case H0:x+=E.Da.height+this.$d.height;break;case Uy:y+=E.Da.width+this.$d.width;break;default:vt("Unhandled arrangement value "+this.Rb.toString())}}}};function Dy(a,y,x,b){if(y!==null){y.x=x,y.y=b,y=y.children;for(var E=y.length,z=0;z<E;z++){var ee=y[z];Dy(a,ee,x+ee.S.x,b+ee.S.y)}}}zr.prototype.commitLayout=function(){this.yv(),this.commitNodes(),this.Gu(),this.isRouting&&this.commitLinks()},zr.prototype.commitNodes=function(){for(var a=this.network.vertexes.iterator;a.next();)a.value.commit();for(a.reset();a.next();)this.layoutComments(a.value)},zr.prototype.Gu=function(){if(this.layerStyle===G0){for(var a=this.$v,y=[],x=null,b=this.network.vertexes.iterator;b.next();){var E=b.value;x===null?x=E.bounds.copy():x.ed(E.bounds);var z=y[E.level];z===void 0?z=this.computeLayerSpacing(E):z=Math.max(z,this.computeLayerSpacing(E)),y[E.level]=z}for(b=0;b<y.length;b++)y[b]===void 0&&(y[b]=0);if(this.angle===90||this.angle===270?(x.Bc(this.nodeSpacing/2,this.layerSpacing),b=new Je(-this.nodeSpacing/2,-this.layerSpacing/2)):(x.Bc(this.layerSpacing,this.nodeSpacing/2),b=new Je(-this.layerSpacing/2,-this.nodeSpacing/2)),E=[],x=this.angle===90||this.angle===270?x.width:x.height,z=0,this.angle===180||this.angle===270)for(var ee=0;ee<a.length;ee++)z+=a[ee]+y[ee];for(ee=0;ee<a.length;ee++){var re=a[ee]+y[ee];this.angle===270?(z-=re,E.push(new tn(0,z,x,re))):this.angle===90?(E.push(new tn(0,z,x,re)),z+=re):this.angle===180?(z-=re,E.push(new tn(z,0,re,x))):(E.push(new tn(z,0,re,x)),z+=re)}this.commitLayers(E,b)}},zr.prototype.commitLayers=function(){},zr.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()},zr.prototype.yv=function(){for(var a=this.Ub.iterator;a.next();){var y=a.value;y instanceof Du&&Sx(this,y)}};function Sx(a,y){if(y!==null){a.setPortSpots(y),y=y.children;for(var x=y.length,b=0;b<x;b++)Sx(a,y[b])}}zr.prototype.setPortSpots=function(a){var y=a.alignment;if(sh(y)){var x=this.ud===Gc,b=nc(a);switch(b){case 0:var E=Wa;break;case 90:E=Xa;break;case 180:E=ws;break;default:E=ms}var z=a.children,ee=z.length;switch(y){case kd:case Yc:for(y=0;y<ee;y++){var re=z[y];if(re=(x?re.sourceEdges:re.destinationEdges).first(),re!==null&&(re=re.link,re!==null)){var oe=b===90||b===270?ws:ms;if(ee===1||y===ee-1&&ee%2===1)switch(b){case 0:oe=ws;break;case 90:oe=ms;break;case 180:oe=Wa;break;default:oe=Xa}else y%2===0&&(oe=b===90||b===270?Wa:Xa);x?(a.setsPortSpot&&(re.fromSpot=E),a.setsChildPortSpot&&(re.toSpot=oe)):(a.setsPortSpot&&(re.fromSpot=oe),a.setsChildPortSpot&&(re.toSpot=E))}}break;case Ld:for(b=b===90||b===270?Wa:Xa,z=x?a.destinationEdges:a.sourceEdges;z.next();)ee=z.value.link,ee!==null&&(x?(a.setsPortSpot&&(ee.fromSpot=E),a.setsChildPortSpot&&(ee.toSpot=b)):(a.setsPortSpot&&(ee.fromSpot=b),a.setsChildPortSpot&&(ee.toSpot=E)));break;case rd:for(b=b===90||b===270?ws:ms,z=x?a.destinationEdges:a.sourceEdges;z.next();)ee=z.value.link,ee!==null&&(x?(a.setsPortSpot&&(ee.fromSpot=E),a.setsChildPortSpot&&(ee.toSpot=b)):(a.setsPortSpot&&(ee.fromSpot=b),a.setsChildPortSpot&&(ee.toSpot=E)))}}else if(x=nc(a),this.ud===Gc){for(E=a.destinationEdges;E.next();)if(b=E.value.link,b!==null){if(a.setsPortSpot)if(a.portSpot.Xb())switch(x){case 0:b.fromSpot=Wa;break;case 90:b.fromSpot=Xa;break;case 180:b.fromSpot=ws;break;default:b.fromSpot=ms}else b.fromSpot=a.portSpot;if(a.setsChildPortSpot)if(a.childPortSpot.Xb())switch(x){case 0:b.toSpot=ws;break;case 90:b.toSpot=ms;break;case 180:b.toSpot=Wa;break;default:b.toSpot=Xa}else b.toSpot=a.childPortSpot}}else for(E=a.sourceEdges;E.next();)if(b=E.value.link,b!==null){if(a.setsPortSpot)if(a.portSpot.Xb())switch(x){case 0:b.toSpot=Wa;break;case 90:b.toSpot=Xa;break;case 180:b.toSpot=ws;break;default:b.toSpot=ms}else b.toSpot=a.portSpot;if(a.setsChildPortSpot)if(a.childPortSpot.Xb())switch(x){case 0:b.fromSpot=ws;break;case 90:b.fromSpot=ms;break;case 180:b.fromSpot=Wa;break;default:b.fromSpot=Xa}else b.fromSpot=a.childPortSpot}};function nc(a){return a=a.angle,45>=a?0:135>=a?90:225>=a?180:315>=a?270:0}zr.prototype.computeLayerSpacing=function(a){var y=nc(a);y=y===90||y===270;var x=a.layerSpacing;if(0<a.layerSpacingParentOverlap){var b=Math.min(1,a.layerSpacingParentOverlap);x-=y?a.height*b:a.width*b}return x<(y?-a.height:-a.width)&&(x=y?-a.height:-a.width),x},zr.prototype.computeNodeIndent=function(a){var y=nc(a),x=a.nodeIndent;if(0<a.nodeIndentPastParent){var b=Math.min(1,a.nodeIndentPastParent);x+=y===90||y===270?a.width*b:a.height*b}return x=Math.max(0,x)},jt.Object.defineProperties(zr.prototype,{roots:{get:function(){return this.Ub},set:function(a){this.Ub!==a&&(this.Ub=a,this.C())}},path:{get:function(){return this.Wn},set:function(a){this.Wn!==a&&(this.Wn=a,this.C())}},treeStyle:{get:function(){return this.vo},set:function(a){this.Rb===a||a!==z0&&a!==By&&a!==Fy&&a!==_y||(this.vo=a,this.C())}},layerStyle:{get:function(){return this.Bq},set:function(a){this.Rb===a||a!==zy&&a!==Hy&&a!==G0||(this.Bq=a,this.C())}},comments:{get:function(){return this.td},set:function(a){this.td!==a&&(this.td=a,this.C())}},arrangement:{get:function(){return this.Rb},set:function(a){this.Rb===a||a!==H0&&a!==Uy&&a!==j0||(this.Rb=a,this.C())}},arrangementSpacing:{get:function(){return this.$d},set:function(a){this.$d.D(a)||(this.$d.assign(a),this.C())}},rootDefaults:{get:function(){return this.W},set:function(a){this.W!==a&&(this.W=a,this.C())}},alternateDefaults:{get:function(){return this.Y},set:function(a){this.Y!==a&&(this.Y=a,this.C())}},sorting:{get:function(){return this.W.sorting},set:function(a){this.W.sorting===a||a!==gg&&a!==_p&&a!==Up&&!zp||(this.W.sorting=a,this.C())}},comparer:{get:function(){return this.W.comparer},set:function(a){this.W.comparer!==a&&(this.W.comparer=a,this.C())}},angle:{get:function(){return this.W.angle},set:function(a){this.W.angle!==a&&(a===0||a===90||a===180||a===270?(this.W.angle=a,this.C()):vt("TreeLayout.angle must be 0, 90, 180, or 270"))}},alignment:{get:function(){return this.W.alignment},set:function(a){this.W.alignment!==a&&(this.W.alignment=a,this.C())}},nodeIndent:{get:function(){return this.W.nodeIndent},set:function(a){this.W.nodeIndent!==a&&0<=a&&(this.W.nodeIndent=a,this.C())}},nodeIndentPastParent:{get:function(){return this.W.nodeIndentPastParent},set:function(a){this.W.nodeIndentPastParent!==a&&0<=a&&1>=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!==U0&&a!==Hp||(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!==gg&&a!==_p&&a!==Up&&!zp||(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!==U0&&a!==Hp||(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 _0=new mn(zr,"PathDefault",-1),Gc=new mn(zr,"PathDestination",0),mf=new mn(zr,"PathSource",1),gg=new mn(zr,"SortingForwards",10),_p=new mn(zr,"SortingReverse",11),Up=new mn(zr,"SortingAscending",12),zp=new mn(zr,"SortingDescending",13),pg=new mn(zr,"AlignmentCenterSubtrees",20),vf=new mn(zr,"AlignmentCenterChildren",21),Wc=new mn(zr,"AlignmentStart",22),Vc=new mn(zr,"AlignmentEnd",23),kd=new mn(zr,"AlignmentBus",24),Yc=new mn(zr,"AlignmentBusBranching",25),Ld=new mn(zr,"AlignmentTopLeftBus",26),rd=new mn(zr,"AlignmentBottomRightBus",27),U0=new mn(zr,"CompactionNone",30),Hp=new mn(zr,"CompactionBlock",31),z0=new mn(zr,"StyleLayered",40),Fy=new mn(zr,"StyleLastParents",41),By=new mn(zr,"StyleAlternating",42),_y=new mn(zr,"StyleRootOnly",43),H0=new mn(zr,"ArrangementVertical",50),Uy=new mn(zr,"ArrangementHorizontal",51),j0=new mn(zr,"ArrangementFixedRoots",52),zy=new mn(zr,"LayerIndividual",60),Hy=new mn(zr,"LayerSiblings",61),G0=new mn(zr,"LayerUniform",62);zr.className="TreeLayout",zr.PathDefault=_0,zr.PathDestination=Gc,zr.PathSource=mf,zr.SortingForwards=gg,zr.SortingReverse=_p,zr.SortingAscending=Up,zr.SortingDescending=zp,zr.AlignmentCenterSubtrees=pg,zr.AlignmentCenterChildren=vf,zr.AlignmentStart=Wc,zr.AlignmentEnd=Vc,zr.AlignmentBus=kd,zr.AlignmentBusBranching=Yc,zr.AlignmentTopLeftBus=Ld,zr.AlignmentBottomRightBus=rd,zr.CompactionNone=U0,zr.CompactionBlock=Hp,zr.StyleLayered=z0,zr.StyleLastParents=Fy,zr.StyleAlternating=By,zr.StyleRootOnly=_y,zr.ArrangementVertical=H0,zr.ArrangementHorizontal=Uy,zr.ArrangementFixedRoots=j0,zr.LayerIndividual=zy,zr.LayerSiblings=Hy,zr.LayerUniform=G0;function yf(a){Zo.call(this,a)}Wt(yf,Zo),yf.prototype.createVertex=function(){return new Du(this)},yf.prototype.createEdge=function(){return new mg(this)},yf.className="TreeNetwork";function Du(a){Ka.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 Je(0,0),this.Da=new Ln(0,0),this.la=new Je(0,0),this.im=this.hm=this.qA=!1,this.kp=this.Yo=null,this.nd=gg,this.hd=sy,this.Kb=0,this.Jb=vf,this.Vq=this.Uq=0,this.Wq=20,this.ie=50,this.Aq=0,this.Hp=Hp,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}Wt(Du,Ka),Du.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)},jt.Object.defineProperties(Du.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;x<y;x++);this.u=a}}},level:{get:function(){return this.ia},set:function(a){this.ia!==a&&(this.ia=a)}},descendantCount:{get:function(){return this.F},set:function(a){this.F!==a&&(this.F=a)}},maxChildrenCount:{get:function(){return this.Ha},set:function(a){this.Ha!==a&&(this.Ha=a)}},maxGenerationCount:{get:function(){return this.nb},set:function(a){this.nb!==a&&(this.nb=a)}},comments:{get:function(){return this.td},set:function(a){if(this.td!==a){if(a!==null)for(var y=a.length,x=0;x<y;x++);this.td=a}}},sorting:{get:function(){return this.nd},set:function(a){this.nd!==a&&(this.nd=a)}},comparer:{get:function(){return this.hd},set:function(a){this.hd!==a&&(this.hd=a)}},angle:{get:function(){return this.Kb},set:function(a){this.Kb!==a&&(this.Kb=a)}},alignment:{get:function(){return this.Jb},set:function(a){this.Jb!==a&&(this.Jb=a)}},nodeIndent:{get:function(){return this.Uq},set:function(a){this.Uq!==a&&(this.Uq=a)}},nodeIndentPastParent:{get:function(){return this.Vq},set:function(a){this.Vq!==a&&(this.Vq=a)}},nodeSpacing:{get:function(){return this.Wq},set:function(a){this.Wq!==a&&(this.Wq=a)}},layerSpacing:{get:function(){return this.ie},set:function(a){this.ie!==a&&(this.ie=a)}},layerSpacingParentOverlap:{get:function(){return this.Aq},set:function(a){this.Aq!==a&&(this.Aq=a)}},compaction:{get:function(){return this.Hp},set:function(a){this.Hp!==a&&(this.Hp=a)}},breadthLimit:{get:function(){return this.Ap},set:function(a){this.Ap!==a&&(this.Ap=a)}},rowSpacing:{get:function(){return this.nr},set:function(a){this.nr!==a&&(this.nr=a)}},rowIndent:{get:function(){return this.mr},set:function(a){this.mr!==a&&(this.mr=a)}},commentSpacing:{get:function(){return this.Gp},set:function(a){this.Gp!==a&&(this.Gp=a)}},commentMargin:{get:function(){return this.Fp},set:function(a){this.Fp!==a&&(this.Fp=a)}},setsPortSpot:{get:function(){return this.xr},set:function(a){this.xr!==a&&(this.xr=a)}},portSpot:{get:function(){return this.dr},set:function(a){this.dr.D(a)||(this.dr=a)}},setsChildPortSpot:{get:function(){return this.wr},set:function(a){this.wr!==a&&(this.wr=a)}},childPortSpot:{get:function(){return this.Dp},set:function(a){this.Dp.D(a)||(this.Dp=a)}},childrenCount:{get:function(){return this.children.length}},relativePosition:{get:function(){return this.S},set:function(a){this.S.set(a)}},subtreeSize:{get:function(){return this.Da},set:function(a){this.Da.set(a)}},subtreeOffset:{get:function(){return this.la},set:function(a){this.la.set(a)}}}),Du.className="TreeVertex";function mg(a){Vl.call(this,a),this.$t=new Je(0,0)}Wt(mg,Vl),mg.prototype.commit=function(){var a=this.link;if(a!==null&&!a.isAvoiding){var y=this.network.layout,x=null,b=null;switch(y.ud){case Gc:x=this.fromVertex,b=this.toVertex;break;case mf:x=this.toVertex,b=this.fromVertex;break;default:vt("Unhandled path value "+y.ud.toString())}if(x!==null&&b!==null){var E=this.$t;if(E.x!==0||E.y!==0||x.qA){b=x.bounds;var z=nc(x),ee=y.computeLayerSpacing(x),re=x.rowSpacing;a.vg();var oe=a.curve===au,de=a.isOrthogonal,fe;if(a.uh(),de||oe){for(fe=2;4<a.pointsCount;)a.pv(2);var ye=a.i(1),Ce=a.i(2)}else{for(fe=1;3<a.pointsCount;)a.pv(1);ye=a.i(0),Ce=a.i(a.pointsCount-1)}var Ne=a.i(a.pointsCount-1);z===0?(x.alignment===Vc?(z=b.bottom+E.y,E.y===0&&ye.y>Ne.y+x.rowIndent&&(z=Math.min(z,Math.max(ye.y,z-y.computeNodeIndent(x))))):x.alignment===Wc?(z=b.top+E.y,E.y===0&&ye.y<Ne.y-x.rowIndent&&(z=Math.max(z,Math.min(ye.y,z+y.computeNodeIndent(x))))):z=x.hm||x.im&&x.maxGenerationCount===1?b.top-x.la.y+E.y:b.y+b.height/2+E.y,oe?(a.m(fe,ye.x,z),fe++,a.m(fe,b.right+ee,z),fe++,a.m(fe,b.right+ee+(E.x-re)/3,z),fe++,a.m(fe,b.right+ee+2*(E.x-re)/3,z),fe++,a.m(fe,b.right+ee+(E.x-re),z),fe++,a.m(fe,Ce.x,z)):(de&&(a.m(fe,b.right+ee/2,ye.y),fe++),a.m(fe,b.right+ee/2,z),fe++,a.m(fe,b.right+ee+E.x-(de?re/2:re),z),fe++,de&&a.m(fe,a.i(fe-1).x,Ce.y))):z===90?(x.alignment===Vc?(z=b.right+E.x,E.x===0&&ye.x>Ne.x+x.rowIndent&&(z=Math.min(z,Math.max(ye.x,z-y.computeNodeIndent(x))))):x.alignment===Wc?(z=b.left+E.x,E.x===0&&ye.x<Ne.x-x.rowIndent&&(z=Math.max(z,Math.min(ye.x,z+y.computeNodeIndent(x))))):z=x.hm||x.im&&x.maxGenerationCount===1?b.left-x.la.x+E.x:b.x+b.width/2+E.x,oe?(a.m(fe,z,ye.y),fe++,a.m(fe,z,b.bottom+ee),fe++,a.m(fe,z,b.bottom+ee+(E.y-re)/3),fe++,a.m(fe,z,b.bottom+ee+2*(E.y-re)/3),fe++,a.m(fe,z,b.bottom+ee+(E.y-re)),fe++,a.m(fe,z,Ce.y)):(de&&(a.m(fe,ye.x,b.bottom+ee/2),fe++),a.m(fe,z,b.bottom+ee/2),fe++,a.m(fe,z,b.bottom+ee+E.y-(de?re/2:re)),fe++,de&&a.m(fe,Ce.x,a.i(fe-1).y))):z===180?(x.alignment===Vc?(z=b.bottom+E.y,E.y===0&&ye.y>Ne.y+x.rowIndent&&(z=Math.min(z,Math.max(ye.y,z-y.computeNodeIndent(x))))):x.alignment===Wc?(z=b.top+E.y,E.y===0&&ye.y<Ne.y-x.rowIndent&&(z=Math.max(z,Math.min(ye.y,z+y.computeNodeIndent(x))))):z=x.hm||x.im&&x.maxGenerationCount===1?b.top-x.la.y+E.y:b.y+b.height/2+E.y,oe?(a.m(fe,ye.x,z),fe++,a.m(fe,b.left-ee,z),fe++,a.m(fe,b.left-ee+(E.x+re)/3,z),fe++,a.m(fe,b.left-ee+2*(E.x+re)/3,z),fe++,a.m(fe,b.left-ee+(E.x+re),z),fe++,a.m(fe,Ce.x,z)):(de&&(a.m(fe,b.left-ee/2,ye.y),fe++),a.m(fe,b.left-ee/2,z),fe++,a.m(fe,b.left-ee+E.x+(de?re/2:re),z),fe++,de&&a.m(fe,a.i(fe-1).x,Ce.y))):z===270?(x.alignment===Vc?(z=b.right+E.x,E.x===0&&ye.x>Ne.x+x.rowIndent&&(z=Math.min(z,Math.max(ye.x,z-y.computeNodeIndent(x))))):x.alignment===Wc?(z=b.left+E.x,E.x===0&&ye.x<Ne.x-x.rowIndent&&(z=Math.max(z,Math.min(ye.x,z+y.computeNodeIndent(x))))):z=x.hm||x.im&&x.maxGenerationCount===1?b.left-x.la.x+E.x:b.x+b.width/2+E.x,oe?(a.m(fe,z,ye.y),fe++,a.m(fe,z,b.top-ee),fe++,a.m(fe,z,b.top-ee+(E.y+re)/3),fe++,a.m(fe,z,b.top-ee+2*(E.y+re)/3),fe++,a.m(fe,z,b.top-ee+(E.y+re)),fe++,a.m(fe,z,Ce.y)):(de&&(a.m(fe,ye.x,b.top-ee/2),fe++),a.m(fe,z,b.top-ee/2),fe++,a.m(fe,z,b.top-ee+E.y+(de?re/2:re)),fe++,de&&a.m(fe,Ce.x,a.i(fe-1).y))):vt("Invalid angle "+z),a.zf()}else E=b,a=this.link,b=this.network.layout,y=nc(x),y!==nc(E)&&(ee=b.computeLayerSpacing(x),re=x.bounds,x=E.bounds,y===0&&x.left-re.right<ee+1||y===90&&x.top-re.bottom<ee+1||y===180&&re.left-x.right<ee+1||y===270&&re.top-x.bottom<ee+1||(a.vg(),x=a.curve===au,E=a.isOrthogonal,b=sh(this.fromVertex.alignment),a.uh(),y===0?(y=re.right+ee/2,x?a.pointsCount===4&&(x=a.i(3).y,a.L(1,y-20,a.i(1).y),a.m(2,y-20,x),a.m(3,y,x),a.m(4,y+20,x),a.L(5,a.i(5).x,x)):E?b?a.L(3,a.i(2).x,a.i(4).y):a.pointsCount===6&&(a.L(2,y,a.i(2).y),a.L(3,y,a.i(3).y)):a.pointsCount===4?a.m(2,y,a.i(2).y):a.pointsCount===3?a.L(1,y,a.i(2).y):a.pointsCount===2&&a.m(1,y,a.i(1).y)):y===90?(y=re.bottom+ee/2,x?a.pointsCount===4&&(x=a.i(3).x,a.L(1,a.i(1).x,y-20),a.m(2,x,y-20),a.m(3,x,y),a.m(4,x,y+20),a.L(5,x,a.i(5).y)):E?b?a.L(3,a.i(2).x,a.i(4).y):a.pointsCount===6&&(a.L(2,a.i(2).x,y),a.L(3,a.i(3).x,y)):a.pointsCount===4?a.m(2,a.i(2).x,y):a.pointsCount===3?a.L(1,a.i(2).x,y):a.pointsCount===2&&a.m(1,a.i(1).x,y)):y===180?(y=re.left-ee/2,x?a.pointsCount===4&&(x=a.i(3).y,a.L(1,y+20,a.i(1).y),a.m(2,y+20,x),a.m(3,y,x),a.m(4,y-20,x),a.L(5,a.i(5).x,x)):E?b?a.L(3,a.i(2).x,a.i(4).y):a.pointsCount===6&&(a.L(2,y,a.i(2).y),a.L(3,y,a.i(3).y)):a.pointsCount===4?a.m(2,y,a.i(2).y):a.pointsCount===3?a.L(1,y,a.i(2).y):a.pointsCount===2&&a.m(1,y,a.i(1).y)):y===270&&(y=re.top-ee/2,x?a.pointsCount===4&&(x=a.i(3).x,a.L(1,a.i(1).x,y+20),a.m(2,x,y+20),a.m(3,x,y),a.m(4,x,y-20),a.L(5,x,a.i(5).y)):E?b?a.L(3,a.i(2).x,a.i(4).y):a.pointsCount===6&&(a.L(2,a.i(2).x,y),a.L(3,a.i(3).x,y)):a.pointsCount===4?a.m(2,a.i(2).x,y):a.pointsCount===3?a.L(1,a.i(2).x,y):a.pointsCount===2&&a.m(1,a.i(1).x,y)),a.zf()))}}},jt.Object.defineProperties(mg.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)}},relativePoint:{get:function(){return this.$t},set:function(a){this.$t.set(a)}}}),mg.className="TreeEdge",jo.prototype.initializeStandardTools=function(){this.gb("Action",new En,this.mouseDownTools),this.gb("Relinking",new tl,this.mouseDownTools),this.gb("LinkReshaping",new He,this.mouseDownTools),this.gb("Rotating",new Un,this.mouseDownTools),this.gb("Resizing",new Xt,this.mouseDownTools),this.gb("Linking",new Rs,this.mouseMoveTools),this.gb("Dragging",new Vo,this.mouseMoveTools),this.gb("DragSelecting",new ni,this.mouseMoveTools),this.gb("Panning",new An,this.mouseMoveTools),this.gb("ContextMenu",new Uo,this.mouseUpTools),this.gb("TextEditing",new eo,this.mouseUpTools),this.gb("ClickCreating",new si,this.mouseUpTools),this.gb("ClickSelecting",new Gn,this.mouseUpTools)},Cc("Horizontal",new ym),Cc("Spot",new xm),Cc("Table",new Em),Cc("Viewbox",new Tm),Cc("TableRow",new wm),Cc("TableColumn",new Cm),Cc("Graduated",new ip),Cc("Grid",new np),Uf.add("GraphLinksModel",ss),Uf.add("TreeModel",xu);var W0=In.go,jy={get licenseKey(){return en.licenseKey},set licenseKey(a){en.licenseKey=a},get version(){return en.version},Group:xr,EnumValue:mn,List:Dn,Set:Bn,Map:an,Point:Je,Size:Ln,Rect:tn,Margin:pr,Spot:Ut,Geometry:Jn,PathFigure:ba,PathSegment:$r,InputEvent:es,DiagramEvent:cu,ChangedEvent:qo,Model:Hi,GraphLinksModel:Jr,TreeModel:dl,Binding:Ma,Transaction:Ea,UndoManager:Bo,CommandHandler:ht,Tool:Vr,DraggingTool:Vo,DraggingInfo:qc,DraggingOptions:ae,LinkingBaseTool:da,LinkingTool:Rs,RelinkingTool:tl,LinkReshapingTool:He,ResizingTool:Xt,RotatingTool:Un,ClickSelectingTool:Gn,ActionTool:En,ClickCreatingTool:si,HTMLInfo:no,ContextMenuTool:Uo,DragSelectingTool:ni,PanningTool:An,TextEditingTool:eo,ToolManager:jo,Animation:Ti,AnimationManager:ks,AnimationTrigger:Sl,Layer:fs,Diagram:en,Palette:ve,Overview:xe,Brush:Co,GraphObject:Ot,Panel:Kn,RowColumnDefinition:Ha,Shape:Nr,TextBlock:Ko,Picture:Cl,Part:Zi,Adornment:lo,Node:Si,Link:ei,Placeholder:sl,Layout:sa,LayoutNetwork:Zo,LayoutVertex:Ka,LayoutEdge:Vl,GridLayout:Ss,PanelLayout:Ya,CircularLayout:ha,CircularNetwork:dg,CircularVertex:Ip,CircularEdge:C0,ForceDirectedLayout:Is,ForceDirectedNetwork:gf,ForceDirectedVertex:Mp,ForceDirectedEdge:Rp,LayeredDigraphLayout:Ao,LayeredDigraphNetwork:fg,LayeredDigraphVertex:Eu,LayeredDigraphEdge:Fp,TreeLayout:zr,TreeNetwork:yf,TreeVertex:Du,TreeEdge:mg};typeof W0=="object"&&W0.version&&ki("WARNING: a `go` object on the root object is already defined. "+("Debug"in W0?"debug ":"")+"version: "+W0.version+", replaced with version: "+jy.version),en.prototype.go=jy,In.go=jy,typeof ze.exports=="object"&&(ze.exports=typeof ue.g!="undefined"?ue.g.go:self.go)}();var ce=typeof ue.g!="undefined"?ue.g.go:self.go;const Pe=typeof ue.g!="undefined"?ue.g.go:self.go,Re=Pe.Group,Me=Pe.EnumValue,We=Pe.List,Te=Pe.Set,Ge=Pe.Map,st=Pe.Point,Qe=Pe.Size,Ye=Pe.Rect,yt=Pe.Margin,ot=Pe.Spot,Nt=Pe.Geometry,Fe=Pe.PathFigure,ne=Pe.PathSegment,te=Pe.InputEvent,he=Pe.DiagramEvent,se=Pe.ChangedEvent,ge=Pe.Model,Se=Pe.GraphLinksModel,be=Pe.TreeModel,Ae=Pe.Binding,Le=Pe.Transaction,je=Pe.UndoManager,$e=Pe.CommandHandler,qe=Pe.Tool,nt=Pe.DraggingTool,dt=Pe.DraggingInfo,it=Pe.LinkingBaseTool,bt=Pe.LinkingTool,It=Pe.RelinkingTool,Ht=Pe.LinkReshapingTool,ln=Pe.ResizingTool,un=Pe.RotatingTool,Qt=Pe.ClickSelectingTool,nn=Pe.ActionTool,At=Pe.ClickCreatingTool,ct=Pe.HTMLInfo,at=Pe.ContextMenuTool,rn=Pe.DragSelectingTool,hn=Pe.PanningTool,Pt=Pe.TextEditingTool,pn=Pe.ToolManager,dn=Pe.Animation,_n=Pe.AnimationManager,Yt=Pe.AnimationTrigger,On=Pe.Layer,kt=Pe.Diagram,jn=Pe.Palette,ai=Pe.Overview,et=Pe.Brush,De=Pe.GraphObject,ke=Pe.Panel,Xe=Pe.RowColumnDefinition,ut=Pe.Shape,Ue=Pe.TextBlock,gt=Pe.TextBlockMetrics,_t=Pe.Picture,bn=Pe.Part,xn=Pe.Adornment,Lt=Pe.Node,Zt=Pe.Link,Vt=Pe.Placeholder,fn=Pe.Layout,Pn=Pe.LayoutNetwork,yn=Pe.LayoutVertex,Mt=Pe.LayoutEdge,zn=Pe.GridLayout,qn=Pe.PanelLayout,Rn=Pe.CircularLayout,Zn=Pe.CircularNetwork,Ai=Pe.CircularVertex,Yn=Pe.CircularEdge,Et=Pe.ForceDirectedLayout,vi=Pe.ForceDirectedNetwork,Ri=Pe.ForceDirectedVertex,sn=Pe.ForceDirectedEdge,Xi=Pe.LayeredDigraphLayout,cr=Pe.LayeredDigraphNetwork,fr=Pe.LayeredDigraphVertex,kn=Pe.LayeredDigraphEdge,Or=Pe.TreeLayout,kr=Pe.TreeNetwork,Wi=Pe.TreeVertex,lr=Pe.TreeEdge,wr=Pe.version},46963:function(ze){"use strict";ze.exports=ue;var Ee=/[#.]/g;function ue(ce,Pe){for(var Re=ce||"",Me=Pe||"div",We={},Te=0,Ge,st,Qe;Te<Re.length;)Ee.lastIndex=Te,Qe=Ee.exec(Re),Ge=Re.slice(Te,Qe?Qe.index:Re.length),Ge&&(st?st==="#"?We.id=Ge:We.className?We.className.push(Ge):We.className=[Ge]:Me=Ge,Te+=Ge.length),Qe&&(st=Qe[0],Te++);return{type:"element",tagName:Me,properties:We,children:[]}}},5641:function(ze,Ee,ue){"use strict";var ce=ue(88914),Pe=ue(47178),Re=ue(46963),Me=ue(92848).Q,We=ue(58951).Q;ze.exports=Ge;var Te={}.hasOwnProperty;function Ge(ne,te,he){var se=he?Fe(he):null;return ge;function ge(be,Ae){var Le=Re(be,te),je=Array.prototype.slice.call(arguments,2),$e=Le.tagName.toLowerCase(),qe;if(Le.tagName=se&&Te.call(se,$e)?se[$e]:$e,Ae&&st(Ae,Le)&&(je.unshift(Ae),Ae=null),Ae)for(qe in Ae)Se(Le.properties,qe,Ae[qe]);return Ye(Le.children,je),Le.tagName==="template"&&(Le.content={type:"root",children:Le.children},Le.children=[]),Le}function Se(be,Ae,Le){var je,$e,qe;Le==null||Le!==Le||(je=ce(ne,Ae),$e=je.property,qe=Le,typeof qe=="string"&&(je.spaceSeparated?qe=Me(qe):je.commaSeparated?qe=We(qe):je.commaOrSpaceSeparated&&(qe=Me(We(qe).join(" ")))),$e==="style"&&typeof Le!="string"&&(qe=Nt(qe)),$e==="className"&&be.className&&(qe=be.className.concat(qe)),be[$e]=yt(je,$e,qe))}}function st(ne,te){return typeof ne=="string"||"length"in ne||Qe(te.tagName,ne)}function Qe(ne,te){var he=te.type;return ne==="input"||!he||typeof he!="string"?!1:typeof te.children=="object"&&"length"in te.children?!0:(he=he.toLowerCase(),ne==="button"?he!=="menu"&&he!=="submit"&&he!=="reset"&&he!=="button":"value"in te)}function Ye(ne,te){var he,se;if(typeof te=="string"||typeof te=="number"){ne.push({type:"text",value:String(te)});return}if(typeof te=="object"&&"length"in te){for(he=-1,se=te.length;++he<se;)Ye(ne,te[he]);return}if(typeof te!="object"||!("type"in te))throw new Error("Expected node, nodes, or string, got `"+te+"`");ne.push(te)}function yt(ne,te,he){var se,ge,Se;if(typeof he!="object"||!("length"in he))return ot(ne,te,he);for(ge=he.length,se=-1,Se=[];++se<ge;)Se[se]=ot(ne,te,he[se]);return Se}function ot(ne,te,he){var se=he;return ne.number||ne.positiveNumber?!isNaN(se)&&se!==""&&(se=Number(se)):(ne.boolean||ne.overloadedBoolean)&&typeof se=="string"&&(se===""||Pe(he)===Pe(te))&&(se=!0),se}function Nt(ne){var te=[],he;for(he in ne)te.push([he,ne[he]].join(": "));return te.join("; ")}function Fe(ne){for(var te=ne.length,he=-1,se={},ge;++he<te;)ge=ne[he],se[ge.toLowerCase()]=ge;return se}},82073:function(ze,Ee,ue){"use strict";var ce=ue(18795),Pe=ue(5641),Re=Pe(ce,"div");Re.displayName="html",ze.exports=Re},43621:function(ze,Ee,ue){"use strict";ze.exports=ue(82073)},93193:function(ze){var Ee=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,ue=/\n/g,ce=/^\s*/,Pe=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,Re=/^:\s*/,Me=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,We=/^[;\s]*/,Te=/^\s+|\s+$/g,Ge=`
|
|
|
`,st="/",Qe="*",Ye="",yt="comment",ot="declaration";ze.exports=function(Fe,ne){if(typeof Fe!="string")throw new TypeError("First argument must be a string");if(!Fe)return[];ne=ne||{};var te=1,he=1;function se(it){var bt=it.match(ue);bt&&(te+=bt.length);var It=it.lastIndexOf(Ge);he=~It?it.length-It:he+it.length}function ge(){var it={line:te,column:he};return function(bt){return bt.position=new Se(it),je(),bt}}function Se(it){this.start=it,this.end={line:te,column:he},this.source=ne.source}Se.prototype.content=Fe;var be=[];function Ae(it){var bt=new Error(ne.source+":"+te+":"+he+": "+it);if(bt.reason=it,bt.filename=ne.source,bt.line=te,bt.column=he,bt.source=Fe,ne.silent)be.push(bt);else throw bt}function Le(it){var bt=it.exec(Fe);if(bt){var It=bt[0];return se(It),Fe=Fe.slice(It.length),bt}}function je(){Le(ce)}function $e(it){var bt;for(it=it||[];bt=qe();)bt!==!1&&it.push(bt);return it}function qe(){var it=ge();if(!(st!=Fe.charAt(0)||Qe!=Fe.charAt(1))){for(var bt=2;Ye!=Fe.charAt(bt)&&(Qe!=Fe.charAt(bt)||st!=Fe.charAt(bt+1));)++bt;if(bt+=2,Ye===Fe.charAt(bt-1))return Ae("End of comment missing");var It=Fe.slice(2,bt-2);return he+=2,se(It),Fe=Fe.slice(bt),he+=2,it({type:yt,comment:It})}}function nt(){var it=ge(),bt=Le(Pe);if(bt){if(qe(),!Le(Re))return Ae("property missing ':'");var It=Le(Me),Ht=it({type:ot,property:Nt(bt[0].replace(Ee,Ye)),value:It?Nt(It[0].replace(Ee,Ye)):Ye});return Le(We),Ht}}function dt(){var it=[];$e(it);for(var bt;bt=nt();)bt!==!1&&(it.push(bt),$e(it));return it}return je(),dt()};function Nt(Fe){return Fe?Fe.replace(Te,Ye):Ye}},91241:function(ze){"use strict";ze.exports=Ee;function Ee(ue){var ce=typeof ue=="string"?ue.charCodeAt(0):ue;return ce>=97&&ce<=122||ce>=65&&ce<=90}},21127:function(ze,Ee,ue){"use strict";var ce=ue(91241),Pe=ue(22347);ze.exports=Re;function Re(Me){return ce(Me)||Pe(Me)}},22347:function(ze){"use strict";ze.exports=Ee;function Ee(ue){var ce=typeof ue=="string"?ue.charCodeAt(0):ue;return ce>=48&&ce<=57}},65207:function(ze){"use strict";ze.exports=Ee;function Ee(ue){var ce=typeof ue=="string"?ue.charCodeAt(0):ue;return ce>=97&&ce<=102||ce>=65&&ce<=70||ce>=48&&ce<=57}},2859:function(ze,Ee,ue){"use strict";ue.d(Ee,{hP:function(){return ai}});var ce=function(et,De){return(ce=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ke,Xe){ke.__proto__=Xe}||function(ke,Xe){for(var ut in Xe)Object.prototype.hasOwnProperty.call(Xe,ut)&&(ke[ut]=Xe[ut])})(et,De)};function Pe(et,De){function ke(){this.constructor=et}ce(et,De),et.prototype=De===null?Object.create(De):(ke.prototype=De.prototype,new ke)}function Re(et,De,ke,Xe){return new(ke||(ke=Promise))(function(ut,Ue){function gt(xn){try{bn(Xe.next(xn))}catch(Lt){Ue(Lt)}}function _t(xn){try{bn(Xe.throw(xn))}catch(Lt){Ue(Lt)}}function bn(xn){var Lt;xn.done?ut(xn.value):(Lt=xn.value,Lt instanceof ke?Lt:new ke(function(Zt){Zt(Lt)})).then(gt,_t)}bn((Xe=Xe.apply(et,De||[])).next())})}function Me(et,De){var ke,Xe,ut,Ue,gt={label:0,sent:function(){if(1&ut[0])throw ut[1];return ut[1]},trys:[],ops:[]};return Ue={next:_t(0),throw:_t(1),return:_t(2)},typeof Symbol=="function"&&(Ue[Symbol.iterator]=function(){return this}),Ue;function _t(bn){return function(xn){return function(Lt){if(ke)throw new TypeError("Generator is already executing.");for(;gt;)try{if(ke=1,Xe&&(ut=2&Lt[0]?Xe.return:Lt[0]?Xe.throw||((ut=Xe.return)&&ut.call(Xe),0):Xe.next)&&!(ut=ut.call(Xe,Lt[1])).done)return ut;switch(Xe=0,ut&&(Lt=[2&Lt[0],ut.value]),Lt[0]){case 0:case 1:ut=Lt;break;case 4:return gt.label++,{value:Lt[1],done:!1};case 5:gt.label++,Xe=Lt[1],Lt=[0];continue;case 7:Lt=gt.ops.pop(),gt.trys.pop();continue;default:if(ut=gt.trys,!((ut=ut.length>0&&ut[ut.length-1])||Lt[0]!==6&&Lt[0]!==2)){gt=0;continue}if(Lt[0]===3&&(!ut||Lt[1]>ut[0]&&Lt[1]<ut[3])){gt.label=Lt[1];break}if(Lt[0]===6&>.label<ut[1]){gt.label=ut[1],ut=Lt;break}if(ut&>.label<ut[2]){gt.label=ut[2],gt.ops.push(Lt);break}ut[2]&>.ops.pop(),gt.trys.pop();continue}Lt=De.call(et,gt)}catch(Zt){Lt=[6,Zt],Xe=0}finally{ke=ut=0}if(5&Lt[0])throw Lt[1];return{value:Lt[0]?Lt[1]:void 0,done:!0}}([bn,xn])}}}function We(){for(var et=0,De=0,ke=arguments.length;De<ke;De++)et+=arguments[De].length;var Xe=Array(et),ut=0;for(De=0;De<ke;De++)for(var Ue=arguments[De],gt=0,_t=Ue.length;gt<_t;gt++,ut++)Xe[ut]=Ue[gt];return Xe}var Te=function(){function et(){}return et.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},et.setAttributes=function(De,ke){for(var Xe=0,ut=ke;Xe<ut.length;Xe++){var Ue=ut[Xe],gt=Ue[0],_t=Ue[1];De.setAttribute(gt,_t)}},et.createRect=function(De,ke,Xe){var ut=document.createElementNS("http://www.w3.org/2000/svg","rect");return ut.setAttribute("width",De.toString()),ut.setAttribute("height",ke.toString()),Xe&&et.setAttributes(ut,Xe),ut},et.createLine=function(De,ke,Xe,ut,Ue){var gt=document.createElementNS("http://www.w3.org/2000/svg","line");return gt.setAttribute("x1",De.toString()),gt.setAttribute("y1",ke.toString()),gt.setAttribute("x2",Xe.toString()),gt.setAttribute("y2",ut.toString()),Ue&&et.setAttributes(gt,Ue),gt},et.createPolygon=function(De,ke){var Xe=document.createElementNS("http://www.w3.org/2000/svg","polygon");return Xe.setAttribute("points",De),ke&&et.setAttributes(Xe,ke),Xe},et.createCircle=function(De,ke){var Xe=document.createElementNS("http://www.w3.org/2000/svg","circle");return Xe.setAttribute("cx",(De/2).toString()),Xe.setAttribute("cy",(De/2).toString()),Xe.setAttribute("r",De.toString()),ke&&et.setAttributes(Xe,ke),Xe},et.createEllipse=function(De,ke,Xe){var ut=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return ut.setAttribute("cx",(De/2).toString()),ut.setAttribute("cy",(ke/2).toString()),ut.setAttribute("rx",(De/2).toString()),ut.setAttribute("ry",(ke/2).toString()),Xe&&et.setAttributes(ut,Xe),ut},et.createGroup=function(De){var ke=document.createElementNS("http://www.w3.org/2000/svg","g");return De&&et.setAttributes(ke,De),ke},et.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},et.createMarker=function(De,ke,Xe,ut,Ue,gt,_t){var bn=document.createElementNS("http://www.w3.org/2000/svg","marker");return et.setAttributes(bn,[["id",De],["orient",ke],["markerWidth",Xe.toString()],["markerHeight",ut.toString()],["refX",Ue.toString()],["refY",gt.toString()]]),bn.appendChild(_t),bn},et.createText=function(De){var ke=document.createElementNS("http://www.w3.org/2000/svg","text");return ke.setAttribute("x","0"),ke.setAttribute("y","0"),De&&et.setAttributes(ke,De),ke},et.createTSpan=function(De,ke){var Xe=document.createElementNS("http://www.w3.org/2000/svg","tspan");return Xe.textContent=De,ke&&et.setAttributes(Xe,ke),Xe},et.createImage=function(De){var ke=document.createElementNS("http://www.w3.org/2000/svg","image");return De&&et.setAttributes(ke,De),ke},et.createPoint=function(De,ke){var Xe=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return Xe.x=De,Xe.y=ke,Xe},et.createPath=function(De,ke){var Xe=document.createElementNS("http://www.w3.org/2000/svg","path");return Xe.setAttribute("d",De),ke&&et.setAttributes(Xe,ke),Xe},et}(),Ge=function(){function et(){}return et.addKey=function(De){et.key=De},Object.defineProperty(et,"isLicensed",{get:function(){return!!et.key&&new RegExp(/^MJS2-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test(et.key)},enumerable:!1,configurable:!0}),et}(),st=function(){function et(){this.naturalSize=!1,this.imageType="image/png",this.markersOnly=!1}return et.prototype.rasterize=function(De,ke,Xe){var ut=this;return new Promise(function(Ue){var gt=Xe!==void 0?Xe:document.createElement("canvas");De===null&&(ut.markersOnly=!0,ut.naturalSize=!1);var _t=document.createElementNS("http://www.w3.org/2000/svg","svg");_t.setAttribute("xmlns","http://www.w3.org/2000/svg"),_t.setAttribute("width",ke.width.baseVal.valueAsString),_t.setAttribute("height",ke.height.baseVal.valueAsString),_t.setAttribute("viewBox","0 0 "+ke.viewBox.baseVal.width.toString()+" "+ke.viewBox.baseVal.height.toString()),_t.innerHTML=ke.innerHTML,ut.naturalSize===!0?(_t.width.baseVal.value=De.naturalWidth,_t.height.baseVal.value=De.naturalHeight):ut.width!==void 0&&ut.height!==void 0&&(_t.width.baseVal.value=ut.width,_t.height.baseVal.value=ut.height),gt.width=_t.width.baseVal.value,gt.height=_t.height.baseVal.value;var bn=_t.outerHTML,xn=gt.getContext("2d");ut.markersOnly!==!0&&xn.drawImage(De,0,0,gt.width,gt.height);var Lt=window.URL,Zt=new Image(gt.width,gt.height);Zt.setAttribute("crossOrigin","anonymous");var Vt=new Blob([bn],{type:"image/svg+xml"}),fn=Lt.createObjectURL(Vt);Zt.onload=function(){xn.drawImage(Zt,0,0),Lt.revokeObjectURL(fn);var Pn=gt.toDataURL(ut.imageType,ut.imageQuality);Ue(Pn)},Zt.src=fn})},et}(),Qe=function(){},Ye=function(){function et(De){this._classNamePrefixBase="__markerjs2_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+De+"_"}return Object.defineProperty(et.prototype,"classNamePrefixBase",{get:function(){return this._classNamePrefixBase},enumerable:!1,configurable:!0}),Object.defineProperty(et.prototype,"classNamePrefix",{get:function(){return this._classNamePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(et.prototype,"defaultSettings",{get:function(){return{canvasBackgroundColor:"#ffffff",toolbarBackgroundColor:"#111111",toolbarBackgroundHoverColor:"#333333",toolbarColor:"#eeeeee",toolbarHeight:40,toolboxColor:"#eeeeee",toolboxAccentColor:"#3080c3",undoButtonVisible:!0,redoButtonVisible:!1,zoomButtonVisible:!1,zoomOutButtonVisible:!1,clearButtonVisible:!1,resultButtonBlockVisible:!0,logoPosition:"left"}},enumerable:!1,configurable:!0}),Object.defineProperty(et.prototype,"fadeInAnimationClassName",{get:function(){return this.classNamePrefix+"fade_in"},enumerable:!1,configurable:!0}),Object.defineProperty(et.prototype,"fadeOutAnimationClassName",{get:function(){return this.classNamePrefix+"fade_out"},enumerable:!1,configurable:!0}),et.prototype.addClass=function(De){return this.styleSheet===void 0&&this.addStyleSheet(),De.name=""+this.classNamePrefix+De.localName,this.classes.push(De),this.styleSheet.sheet.insertRule("."+De.name+" {"+De.style+"}",this.styleSheet.sheet.cssRules.length),De},et.prototype.addRule=function(De){this.styleSheet===void 0&&this.addStyleSheet(),this.rules.push(De),this.styleSheet.sheet.insertRule(De.selector+" {"+De.style+"}",this.styleSheet.sheet.cssRules.length)},et.prototype.addStyleSheet=function(){var De;this.styleSheet=document.createElement("style"),((De=this.styleSheetRoot)!==null&&De!==void 0?De:document.head).appendChild(this.styleSheet),this.addRule(new yt("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new yt("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
|
|
|
from {
|
|
|
opacity: 0;
|
|
|
}
|
|
|
to {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
`)),this.addRule(new yt("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
|
|
|
from {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
to {
|
|
|
opacity: 0;
|
|
|
}
|
|
|
`)),this.addClass(new ot("fade_in",`
|
|
|
animation-duration: 0.3s;
|
|
|
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
|
|
|
`)),this.addClass(new ot("fade_out",`
|
|
|
animation-duration: 0.3s;
|
|
|
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
|
|
|
`))},et.prototype.removeStyleSheet=function(){var De;this.styleSheet&&(((De=this.styleSheetRoot)!==null&&De!==void 0?De:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},et}(),yt=function(et,De){this.selector=et,this.style=De},ot=function(et,De){this.localName=et,this.style=De},Nt=function(){function et(De,ke,Xe,ut,Ue){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=De,this.displayMode=ke,this.markerItems=Xe,this.uiStyleSettings=ut,this.styles=Ue,this.addStyles(),this.adjustLayout=this.adjustLayout.bind(this),this.overflowButtonClicked=this.overflowButtonClicked.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this)}return et.prototype.show=function(De){var ke=this;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=De,this.uiContainer.className=this.toolbarStyleClass.name+" "+this.styles.fadeInAnimationClassName+" "+(this.uiStyleSettings.toolbarStyleColorsClassName?this.uiStyleSettings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name);var Xe=document.createElement("div");Xe.className=this.toolbarBlockStyleClass.name,Xe.style.whiteSpace="nowrap",this.uiContainer.appendChild(Xe),this.addActionButton(Xe,'<svg viewBox="0 0 24 24"><path d="M10.07 14.27a.997.997 0 011.33.48l2.3 4.99 1.8-.85-2.31-4.98c-.24-.5-.02-1.1.48-1.33l.28-.08 2.3-.45L8 5.12V15.9l1.82-1.47.25-.16m3.57 7.7a.99.99 0 01-1.33-.47l-2.18-4.74-2.51 2.02c-.17.14-.38.22-.62.22a1 1 0 01-1-1V3a1 1 0 011-1c.24 0 .47.09.64.23l.01-.01 11.49 9.64a1.001 1.001 0 01-.44 1.75l-3.16.62 2.2 4.73c.26.5.02 1.09-.48 1.32l-3.62 1.69z"/></svg>',"select"),this.addActionButton(Xe,'<svg viewBox="0 0 24 24"><path d="M9 3v1H4v2h1v13a2 2 0 002 2h10a2 2 0 002-2V6h1V4h-5V3H9M7 6h10v13H7V6m2 2v9h2V8H9m4 0v9h2V8h-2z"/></svg>',"delete"),this.uiStyleSettings.clearButtonVisible&&this.addActionButton(Xe,'<svg viewBox="0 0 24 24"><path d="M19.36 2.72l1.42 1.42-5.72 5.71c1.07 1.54 1.22 3.39.32 4.59L9.06 8.12c1.2-.9 3.05-.75 4.59.32l5.71-5.72M5.93 17.57c-2.01-2.01-3.24-4.41-3.58-6.65l4.88-2.09 7.44 7.44-2.09 4.88c-2.24-.34-4.64-1.57-6.65-3.58z"/></svg>',"clear"),this.uiStyleSettings.undoButtonVisible&&this.addActionButton(Xe,'<svg viewBox="0 0 24 24"><path d="M12.5 8c-2.65 0-5.05 1-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88 3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8z"/></svg>',"undo"),this.uiStyleSettings.redoButtonVisible&&this.addActionButton(Xe,'<svg viewBox="0 0 24 24"><path d="M18.4 10.6C16.55 9 14.15 8 11.5 8c-4.65 0-8.58 3.03-9.96 7.22L3.9 16a8.002 8.002 0 017.6-5.5c1.95 0 3.73.72 5.12 1.88L13 16h9V7l-3.6 3.6z"/></svg>',"redo"),this.uiStyleSettings.zoomButtonVisible&&this.addActionButton(Xe,'<svg viewBox="0 0 24 24"><path d="M15.5 14l5 5-1.5 1.5-5-5v-.79l-.27-.28A6.471 6.471 0 019.5 16 6.5 6.5 0 013 9.5 6.5 6.5 0 019.5 3 6.5 6.5 0 0116 9.5c0 1.61-.59 3.09-1.57 4.23l.28.27h.79m-6 0C12 14 14 12 14 9.5S12 5 9.5 5 5 7 5 9.5 7 14 9.5 14m2.5-4h-2v2H9v-2H7V9h2V7h1v2h2v1z"/></svg>',"zoom"),this.uiStyleSettings.zoomButtonVisible&&this.uiStyleSettings.zoomOutButtonVisible&&this.addActionButton(Xe,'<svg viewBox="0 0 24 24"><path d="M15.5 14h-.79l-.28-.27A6.471 6.471 0 0016 9.5 6.5 6.5 0 009.5 3 6.5 6.5 0 003 9.5 6.5 6.5 0 009.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 5 1.5-1.5-5-5m-6 0C7 14 5 12 5 9.5S7 5 9.5 5 14 7 14 9.5 12 14 9.5 14M7 9h5v1H7V9z"/></svg>',"zoom-out"),this.uiStyleSettings.notesButtonVisible&&this.addActionButton(Xe,'<svg viewBox="0 0 24 24"><path d="M18.13 12l1.26-1.26c.44-.44 1-.68 1.61-.74V9l-6-6H5c-1.11 0-2 .89-2 2v14a2 2 0 002 2h6v-1.87l.13-.13H5V5h7v7h6.13M14 4.5l5.5 5.5H14V4.5m5.13 9.33l2.04 2.04L15.04 22H13v-2.04l6.13-6.13m3.72.36l-.98.98-2.04-2.04.98-.98c.19-.2.52-.2.72 0l1.32 1.32c.2.2.2.53 0 .72z"/></svg>',"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(Ue){var gt=document.createElement("div");gt.className=""+ke.toolbarButtonStyleClass.name,gt.setAttribute("data-type-name",Ue.typeName),gt.innerHTML=Ue.icon,gt.addEventListener("click",function(){ke.markerToolbarButtonClicked(gt,Ue)}),ke.buttons.push(gt),ke.markerButtons.push(gt)}),this.overflowButton=document.createElement("div"),this.overflowButton.className=this.toolbarButtonStyleClass.name+" "+(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name),this.overflowButton.innerHTML='<svg viewBox="0 0 24 24"><path d="M12 16a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2m0-6a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2m0-6a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2z"/></svg>',this.overflowButton.addEventListener("click",this.overflowButtonClicked),this.markerButtonBlock.appendChild(this.overflowButton));var ut=document.createElement("div");ut.className=this.toolbarBlockStyleClass.name,ut.style.whiteSpace="nowrap",ut.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(ut),this.addActionButton(ut,'<svg viewBox="0 0 24 24"><path d="M9 20.42l-6.21-6.21 2.83-2.83L9 14.77l9.88-9.89 2.83 2.83L9 20.42z"/></svg>',"render"),this.addActionButton(ut,'<svg viewBox="0 0 24 24"><path d="M20 6.91L17.09 4 12 9.09 6.91 4 4 6.91 9.09 12 4 17.09 6.91 20 12 14.91 17.09 20 20 17.09 14.91 12 20 6.91z"/></svg>',"close"),this.markerjsContainer.appendChild(this.uiContainer),this.setSelectMode(),this.setCurrentMarker(),this.adjustLayout()},et.prototype.addButtonClickListener=function(De){this.buttonClickListeners.push(De)},et.prototype.removeButtonClickListener=function(De){this.buttonClickListeners.indexOf(De)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(De),1)},et.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},et.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var De=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var ke=0;ke<this.markerButtons.length;ke++)ke<De||ke===De&&this.markerButtons.length-1===De?this.markerButtonBlock.appendChild(this.markerButtons[ke]):(ke===De&&this.markerButtonBlock.appendChild(this.overflowButton),this.markerButtonOverflowBlock.appendChild(this.markerButtons[ke]))}},et.prototype.overflowButtonClicked=function(){this.markerButtonOverflowBlock.style.display!=="none"?(this.markerButtonOverflowBlock.className=this.markerButtonOverflowBlock.className.replace(this.styles.fadeInAnimationClassName,""),this.markerButtonOverflowBlock.style.display="none"):(this.markerButtonOverflowBlock.className+=" "+this.styles.fadeInAnimationClassName,this.markerButtonOverflowBlock.style.top=this.uiContainer.offsetTop+this.overflowButton.offsetHeight+"px",this.markerButtonOverflowBlock.style.right=this.uiContainer.offsetWidth-this.overflowButton.offsetLeft-this.overflowButton.offsetWidth+2*this.uiContainer.offsetLeft+"px",this.markerButtonOverflowBlock.style.display="inline-block")},et.prototype.resetButtonStyles=function(){var De=this;this.buttons.forEach(function(ke){ke.className=ke.className.replace(De.uiStyleSettings.toolbarButtonStyleColorsClassName?De.uiStyleSettings.toolbarButtonStyleColorsClassName:De.toolbarButtonStyleColorsClass.name,"").trim(),ke.className=ke.className.replace(De.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?De.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:De.toolbarActiveButtonStyleColorsClass.name,"").trim(),ke.className+=" "+(De.uiStyleSettings.toolbarButtonStyleColorsClassName?De.uiStyleSettings.toolbarButtonStyleColorsClassName:De.toolbarButtonStyleColorsClass.name)})},et.prototype.addActionButton=function(De,ke,Xe){var ut=this,Ue=document.createElement("div");switch(Ue.className=""+this.toolbarButtonStyleClass.name,Ue.innerHTML=ke,Ue.setAttribute("data-action",Xe),Ue.addEventListener("click",function(){ut.actionToolbarButtonClicked(Ue,Xe)}),Xe){case"select":Ue.style.fill=this.uiStyleSettings.selectButtonColor;break;case"delete":case"clear":Ue.style.fill=this.uiStyleSettings.deleteButtonColor;break;case"undo":case"redo":Ue.style.fill=this.uiStyleSettings.selectButtonColor;break;case"render":Ue.style.fill=this.uiStyleSettings.okButtonColor;break;case"close":Ue.style.fill=this.uiStyleSettings.closeButtonColor}De.appendChild(Ue),this.buttons.push(Ue)},et.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new ot("toolbar",`
|
|
|
width: 100%;
|
|
|
flex-shrink: 0;
|
|
|
display: flex;
|
|
|
flex-direction: row;
|
|
|
justify-content: space-between;
|
|
|
height: `+this.uiStyleSettings.toolbarHeight+`px;
|
|
|
box-sizing: content-box;
|
|
|
`+(this.displayMode==="inline"?"border-top-left-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
|
|
|
`+(this.displayMode==="inline"?"border-top-right-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
|
|
|
overflow: hidden;
|
|
|
`)),this.toolbarStyleColorsClass=this.styles.addClass(new ot("toolbar_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
box-shadow: 0px 3px rgba(33, 33, 33, 0.1);
|
|
|
`)),this.toolbarBlockStyleClass=this.styles.addClass(new ot("toolbar-block",`
|
|
|
display: inline-block;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolbarOverflowBlockStyleClass=this.styles.addClass(new ot("toolbar-overflow-block",`
|
|
|
position: absolute;
|
|
|
top: `+this.uiStyleSettings.toolbarHeight+`px;
|
|
|
max-width: `+2*this.uiStyleSettings.toolbarHeight+`px;
|
|
|
z-index: 10;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolbarOverflowBlockStyleColorsClass=this.styles.addClass(new ot("toolbar-overflow-block_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
`));var De=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new ot("toolbar_button",`
|
|
|
display: inline-block;
|
|
|
width: `+(this.uiStyleSettings.toolbarHeight-2*De)+`px;
|
|
|
height: `+(this.uiStyleSettings.toolbarHeight-2*De)+`px;
|
|
|
padding: `+De+`px;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new ot("toolbar_button_colors",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new ot("toolbar_active_button",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`)),this.styles.addRule(new yt("."+this.toolbarButtonStyleClass.name+" svg",`
|
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
|
`)),this.styles.addRule(new yt("."+this.toolbarButtonStyleColorsClass.name+":hover",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`))},et.prototype.markerToolbarButtonClicked=function(De,ke){this.setActiveButton(De),this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(Xe){return Xe("marker",ke)}),this.markerButtonOverflowBlock.style.display="none"},et.prototype.actionToolbarButtonClicked=function(De,ke){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(Xe){return Xe("action",ke)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},et.prototype.setActiveButton=function(De){this.resetButtonStyles(),De.className=De.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),De.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},et.prototype.setActiveMarkerButton=function(De){var ke=this.markerButtons.find(function(Xe){return Xe.getAttribute("data-type-name")===De});ke&&this.setActiveButton(ke)},et.prototype.setCurrentMarker=function(De){var ke=this;this.currentMarker=De,this.buttons.filter(function(Xe){return/delete|notes/.test(Xe.getAttribute("data-action"))}).forEach(function(Xe){ke.currentMarker===void 0?(Xe.style.fillOpacity="0.4",Xe.style.pointerEvents="none"):(Xe.style.fillOpacity="1",Xe.style.pointerEvents="all")})},et}(),Fe=function(){function et(De,ke,Xe,ut){this.panels=[],this.panelButtons=[],this.markerjsContainer=De,this.displayMode=ke,this.uiStyleSettings=Xe,this.styles=ut,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return et.prototype.addStyles=function(){var De;this.toolboxStyleClass=this.styles.addClass(new ot("toolbox",`
|
|
|
width: 100%;
|
|
|
flex-shrink: 0;
|
|
|
display: flex;
|
|
|
flex-direction: column;
|
|
|
font-family: sans-serif;
|
|
|
`+(this.displayMode==="popup"?"height:"+2.5*this.uiStyleSettings.toolbarHeight+"px;":"")+`
|
|
|
box-sizing: content-box;
|
|
|
`+(this.displayMode==="popup"?"background-color: "+this.uiStyleSettings.canvasBackgroundColor+";":"")+`
|
|
|
`+(this.displayMode==="inline"?"border-bottom-left-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
|
|
|
`+(this.displayMode==="inline"?"border-bottom-right-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
|
|
|
overflow: hidden;
|
|
|
`)),this.toolboxStyleColorsClass=this.styles.addClass(new ot("toolbox_colors",`
|
|
|
color: `+this.uiStyleSettings.toolboxColor+`;
|
|
|
`));var ke=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new ot("toolbox-button-row",`
|
|
|
display: flex;
|
|
|
cursor: default;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new ot("toolbox-button-row_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
`)),this.toolboxPanelRowStyleClass=this.styles.addClass(new ot("toolbox-panel-row",`
|
|
|
display: flex;
|
|
|
`+(this.displayMode==="inline"?"position: absolute;":"")+`
|
|
|
`+(this.displayMode==="inline"?"bottom: "+this.uiStyleSettings.toolbarHeight+"px;":"")+`
|
|
|
cursor: default;
|
|
|
height: `+1.5*this.uiStyleSettings.toolbarHeight+`px;
|
|
|
`+(this.displayMode==="inline"?"width: 100%;":"")+`
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolboxPanelRowStyleColorsClass=this.styles.addClass(new ot("toolbox-panel-row_colors",`
|
|
|
background-color: `+((De=this.uiStyleSettings.toolboxBackgroundColor)!==null&&De!==void 0?De:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
|
|
|
`)),this.toolboxButtonStyleClass=this.styles.addClass(new ot("toolbox_button",`
|
|
|
display: inline-block;
|
|
|
width: `+(this.uiStyleSettings.toolbarHeight-2*ke)+`px;
|
|
|
height: `+(this.uiStyleSettings.toolbarHeight-2*ke)+`px;
|
|
|
padding: `+ke+`px;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolboxButtonStyleColorsClass=this.styles.addClass(new ot("toolbox-button_colors",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new ot("toolbox-active-button_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`;
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.styles.addRule(new yt("."+this.toolboxButtonStyleColorsClass.name+":hover",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`)),this.styles.addRule(new yt("."+this.toolboxButtonStyleClass.name+" svg",`
|
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
|
`))},et.prototype.show=function(De){var ke;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=De,this.uiContainer.className=this.toolboxStyleClass.name+" "+((ke=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&ke!==void 0?ke:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},et.prototype.setPanelButtons=function(De){var ke,Xe,ut=this;this.panels=De,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((ke=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&ke!==void 0?ke:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+((Xe=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&Xe!==void 0?Xe:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(Ue){var gt;Ue.uiStyleSettings=ut.uiStyleSettings;var _t=document.createElement("div");_t.className=ut.toolboxButtonStyleClass.name+" "+((gt=ut.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&>!==void 0?gt:ut.toolboxButtonStyleColorsClass.name),_t.innerHTML=Ue.icon,_t.title=Ue.title,_t.addEventListener("click",function(){ut.panelButtonClick(Ue)}),ut.panelButtons.push(_t),ut.buttonRow.appendChild(_t)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},et.prototype.panelButtonClick=function(De){var ke=this,Xe=-1;if(De!==this.activePanel){Xe=this.panels.indexOf(De),this.panelRow.innerHTML="";var ut=De.getUi();ut.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(ut),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=De}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){ke.displayMode==="inline"?ke.panelRow.style.display="none":ke.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(Ue,gt){var _t,bn;Ue.className=ke.toolboxButtonStyleClass.name+" "+(gt===Xe?""+((_t=ke.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&_t!==void 0?_t:ke.toolboxActiveButtonStyleColorsClass.name):""+((bn=ke.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&bn!==void 0?bn:ke.toolboxButtonStyleColorsClass.name))})},et}(),ne=function(et,De){this.title=et,this.icon=De},te=function(et){function De(ke,Xe,ut,Ue){var gt=et.call(this,ke,Ue||'<svg viewBox="0 0 24 24"><path d="M17.5 12a1.5 1.5 0 01-1.5-1.5A1.5 1.5 0 0117.5 9a1.5 1.5 0 011.5 1.5 1.5 1.5 0 01-1.5 1.5m-3-4A1.5 1.5 0 0113 6.5 1.5 1.5 0 0114.5 5 1.5 1.5 0 0116 6.5 1.5 1.5 0 0114.5 8m-5 0A1.5 1.5 0 018 6.5 1.5 1.5 0 019.5 5 1.5 1.5 0 0111 6.5 1.5 1.5 0 019.5 8m-3 4A1.5 1.5 0 015 10.5 1.5 1.5 0 016.5 9 1.5 1.5 0 018 10.5 1.5 1.5 0 016.5 12M12 3a9 9 0 00-9 9 9 9 0 009 9 1.5 1.5 0 001.5-1.5c0-.39-.15-.74-.39-1-.23-.27-.38-.62-.38-1a1.5 1.5 0 011.5-1.5H16a5 5 0 005-5c0-4.42-4.03-8-9-8z"/></svg>')||this;return gt.colors=[],gt.addTransparent=!1,gt.colorBoxes=[],gt.colors=Xe,gt.currentColor=ut,gt.setCurrentColor=gt.setCurrentColor.bind(gt),gt.getColorBox=gt.getColorBox.bind(gt),gt}return Pe(De,et),De.prototype.getUi=function(){var ke=this,Xe=document.createElement("div");return Xe.style.overflow="hidden",Xe.style.whiteSpace="nowrap",this.colors.forEach(function(ut){var Ue=ke.getColorBox(ut);Xe.appendChild(Ue),ke.colorBoxes.push(Ue)}),Xe},De.prototype.getColorBox=function(ke){var Xe=this,ut=this.uiStyleSettings.toolbarHeight/4,Ue=this.uiStyleSettings.toolbarHeight-ut,gt=document.createElement("div");gt.style.display="inline-block",gt.style.boxSizing="content-box",gt.style.width=Ue-2+"px",gt.style.height=Ue-2+"px",gt.style.padding="1px",gt.style.marginRight="2px",gt.style.marginBottom="2px",gt.style.borderWidth="2px",gt.style.borderStyle="solid",gt.style.borderRadius=(Ue+2)/2+"px",gt.style.borderColor=ke===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",gt.addEventListener("click",function(){Xe.setCurrentColor(ke,gt)});var _t=document.createElement("div");return _t.style.display="inline-block",_t.style.width=Ue-2+"px",_t.style.height=Ue-2+"px",_t.style.backgroundColor=ke,_t.style.borderRadius=Ue/2+"px",ke==="transparent"&&(_t.style.fill=this.uiStyleSettings.toolboxAccentColor,_t.innerHTML=`<svg viewBox="0 0 24 24">
|
|
|
<path d="M2,5.27L3.28,4L20,20.72L18.73,22L15.65,18.92C14.5,19.3 13.28,19.5 12,19.5C7,19.5 2.73,16.39 1,12C1.69,10.24 2.79,8.69 4.19,7.46L2,5.27M12,9A3,3 0 0,1 15,12C15,12.35 14.94,12.69 14.83,13L11,9.17C11.31,9.06 11.65,9 12,9M12,4.5C17,4.5 21.27,7.61 23,12C22.18,14.08 20.79,15.88 19,17.19L17.58,15.76C18.94,14.82 20.06,13.54 20.82,12C19.17,8.64 15.76,6.5 12,6.5C10.91,6.5 9.84,6.68 8.84,7L7.3,5.47C8.74,4.85 10.33,4.5 12,4.5M3.18,12C4.83,15.36 8.24,17.5 12,17.5C12.69,17.5 13.37,17.43 14,17.29L11.72,15C10.29,14.85 9.15,13.71 9,12.28L5.6,8.87C4.61,9.72 3.78,10.78 3.18,12Z" />
|
|
|
</svg>`),gt.appendChild(_t),gt},De.prototype.setCurrentColor=function(ke,Xe){var ut=this;this.currentColor=ke,this.colorBoxes.forEach(function(Ue){Ue.style.borderColor=Ue===Xe?ut.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(ke)},De}(ne),he=function(){function et(De,ke,Xe){this._state="new",this._isSelected=!1,this._container=De,this._overlayContainer=ke,this.globalSettings=Xe,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(et.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(et.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(et.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(et.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(et.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),et.prototype.ownsTarget=function(De){return!1},Object.defineProperty(et.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),et.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},et.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},et.prototype.pointerDown=function(De,ke){},et.prototype.dblClick=function(De,ke){},et.prototype.manipulate=function(De){},et.prototype.pointerUp=function(De){this.stateChanged()},et.prototype.dispose=function(){},et.prototype.addMarkerVisualToContainer=function(De){this.container.childNodes.length>0?this.container.insertBefore(De,this.container.childNodes[0]):this.container.appendChild(De)},et.prototype.getState=function(){return{typeName:et.typeName,state:this.state,notes:this.notes}},et.prototype.restoreState=function(De){this._state=De.state,this.notes=De.notes},et.prototype.scale=function(De,ke){},et.prototype.colorChanged=function(De){this.onColorChanged&&this.onColorChanged(De),this.stateChanged()},et.prototype.fillColorChanged=function(De){this.onFillColorChanged&&this.onFillColorChanged(De),this.stateChanged()},et.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var De=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),De.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(De)&&this.onStateChanged(this)}},et.typeName="MarkerBase",et}(),se=function(){function et(){this.findGripByVisual=this.findGripByVisual.bind(this)}return et.prototype.findGripByVisual=function(De){return this.topLeft.ownsTarget(De)?this.topLeft:this.topCenter.ownsTarget(De)?this.topCenter:this.topRight.ownsTarget(De)?this.topRight:this.centerLeft.ownsTarget(De)?this.centerLeft:this.centerRight.ownsTarget(De)?this.centerRight:this.bottomLeft.ownsTarget(De)?this.bottomLeft:this.bottomCenter.ownsTarget(De)?this.bottomCenter:this.bottomRight.ownsTarget(De)?this.bottomRight:void 0},et}(),ge=function(){function et(){this.GRIP_SIZE=10,this.visual=Te.createGroup(),this.visual.appendChild(Te.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(Te.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return et.prototype.ownsTarget=function(De){return De===this.visual||De===this.visual.childNodes[0]||De===this.visual.childNodes[1]},et}(),Se=function(){function et(){}return et.toITransformMatrix=function(De){return{a:De.a,b:De.b,c:De.c,d:De.d,e:De.e,f:De.f}},et.toSVGMatrix=function(De,ke){return De.a=ke.a,De.b=ke.b,De.c=ke.c,De.d=ke.d,De.e=ke.e,De.f=ke.f,De},et}(),be=function(et){function De(ke,Xe,ut){var Ue=et.call(this,ke,Xe,ut)||this;return Ue.left=0,Ue.top=0,Ue.width=0,Ue.height=0,Ue.defaultSize={x:50,y:20},Ue.offsetX=0,Ue.offsetY=0,Ue.rotationAngle=0,Ue.CB_DISTANCE=10,Ue._suppressMarkerCreateEvent=!1,Ue.container.transform.baseVal.appendItem(Te.createTransform()),Ue.setupControlBox(),Ue}return Pe(De,et),Object.defineProperty(De.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(De.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(De.prototype,"visual",{get:function(){return this._visual},set:function(ke){this._visual=ke;var Xe=Te.createTransform();this._visual.transform.baseVal.appendItem(Xe)},enumerable:!1,configurable:!0}),De.prototype.ownsTarget=function(ke){return!!et.prototype.ownsTarget.call(this,ke)||!!(this.controlGrips.findGripByVisual(ke)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(ke))},De.prototype.pointerDown=function(ke,Xe){et.prototype.pointerDown.call(this,ke,Xe),this.state==="new"&&(this.left=ke.x,this.top=ke.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var ut=this.unrotatePoint(ke);if(this.manipulationStartX=ut.x,this.manipulationStartY=ut.y,this.offsetX=ut.x-this.left,this.offsetY=ut.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(Xe),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(Xe)){this.activeGrip=this.rotatorGrip;var Ue=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=Ue.x-this.width/2,this.top=Ue.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var gt=this.container.transform.baseVal.getItem(0);gt.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(gt,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},De.prototype.pointerUp=function(ke){var Xe=this.state;et.prototype.pointerUp.call(this,ke),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(ke),this._state="select",Xe==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},De.prototype.moveVisual=function(ke){this.visual.style.transform="translate("+ke.x+"px, "+ke.y+"px)"},De.prototype.manipulate=function(ke){var Xe=this.unrotatePoint(ke);this.state==="creating"?this.resize(ke):this.state==="move"?(this.left=this.manipulationStartLeft+(Xe.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(Xe.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(Xe):this.state==="rotate"&&this.rotate(ke)},De.prototype.resize=function(ke){var Xe=this.manipulationStartLeft,ut=this.manipulationStartWidth,Ue=this.manipulationStartTop,gt=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:Xe=this.manipulationStartLeft+ke.x-this.manipulationStartX,ut=this.manipulationStartWidth+this.manipulationStartLeft-Xe;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:ut=this.manipulationStartWidth+ke.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:Ue=this.manipulationStartTop+ke.y-this.manipulationStartY,gt=this.manipulationStartHeight+this.manipulationStartTop-Ue;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:gt=this.manipulationStartHeight+ke.y-this.manipulationStartY}ut>=0?(this.left=Xe,this.width=ut):(this.left=Xe+ut,this.width=-ut),gt>=0?(this.top=Ue,this.height=gt):(this.top=Ue+gt,this.height=-gt),this.setSize()},De.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},De.prototype.rotate=function(ke){if(Math.abs(ke.x-this.centerX)>.1){var Xe=Math.sign(ke.x-this.centerX);this.rotationAngle=180*Math.atan((ke.y-this.centerY)/(ke.x-this.centerX))/Math.PI+90*Xe,this.applyRotation()}},De.prototype.applyRotation=function(){var ke=this.container.transform.baseVal.getItem(0);ke.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(ke,0)},De.prototype.rotatePoint=function(ke){if(this.rotationAngle===0)return ke;var Xe=this.container.getCTM(),ut=Te.createPoint(ke.x,ke.y);return{x:(ut=ut.matrixTransform(Xe)).x,y:ut.y}},De.prototype.unrotatePoint=function(ke){if(this.rotationAngle===0)return ke;var Xe=this.container.getCTM();Xe=Xe.inverse();var ut=Te.createPoint(ke.x,ke.y);return{x:(ut=ut.matrixTransform(Xe)).x,y:ut.y}},De.prototype.select=function(){et.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},De.prototype.deselect=function(){et.prototype.deselect.call(this),this.controlBox.style.display="none"},De.prototype.setupControlBox=function(){this.controlBox=Te.createGroup();var ke=Te.createTransform();ke.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(ke),this.container.appendChild(this.controlBox),this.controlRect=Te.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=Te.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 se,this.addControlGrips(),this.controlBox.style.display="none"},De.prototype.adjustControlBox=function(){var ke=this.controlBox.transform.baseVal.getItem(0);ke.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(ke,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()},De.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()},De.prototype.createGrip=function(){var ke=new ge;return ke.visual.transform.baseVal.appendItem(Te.createTransform()),this.controlBox.appendChild(ke.visual),ke},De.prototype.positionGrips=function(){var ke=this.controlGrips.topLeft.GRIP_SIZE,Xe=-ke/2,ut=Xe,Ue=(this.width+this.CB_DISTANCE)/2-ke/2,gt=(this.height+this.CB_DISTANCE)/2-ke/2,_t=this.height+this.CB_DISTANCE-ke/2,bn=this.width+this.CB_DISTANCE-ke/2;this.positionGrip(this.controlGrips.topLeft.visual,Xe,ut),this.positionGrip(this.controlGrips.topCenter.visual,Ue,ut),this.positionGrip(this.controlGrips.topRight.visual,bn,ut),this.positionGrip(this.controlGrips.centerLeft.visual,Xe,gt),this.positionGrip(this.controlGrips.centerRight.visual,bn,gt),this.positionGrip(this.controlGrips.bottomLeft.visual,Xe,_t),this.positionGrip(this.controlGrips.bottomCenter.visual,Ue,_t),this.positionGrip(this.controlGrips.bottomRight.visual,bn,_t),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,Ue,ut-3*this.CB_DISTANCE)},De.prototype.positionGrip=function(ke,Xe,ut){var Ue=ke.transform.baseVal.getItem(0);Ue.setTranslate(Xe,ut),ke.transform.baseVal.replaceItem(Ue,0)},De.prototype.hideControlBox=function(){this.controlBox.style.display="none"},De.prototype.showControlBox=function(){this.controlBox.style.display=""},De.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:Se.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:Se.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},et.prototype.getState.call(this))},De.prototype.restoreState=function(ke){et.prototype.restoreState.call(this,ke);var Xe=ke;this.left=Xe.left,this.top=Xe.top,this.width=Xe.width,this.height=Xe.height,this.rotationAngle=Xe.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(Se.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,Xe.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(Se.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,Xe.containerTransformMatrix))},De.prototype.scale=function(ke,Xe){et.prototype.scale.call(this,ke,Xe);var ut=this.rotatePoint({x:this.left,y:this.top}),Ue=this.unrotatePoint({x:ut.x*ke,y:ut.y*Xe});this.left=Ue.x,this.top=Ue.y,this.width=this.width*ke,this.height=this.height*Xe,this.adjustControlBox()},De}(he),Ae=function(et){function De(ke,Xe,ut){var Ue=et.call(this,ke,Xe,ut)||this;return Ue.fillColor="transparent",Ue.strokeColor="transparent",Ue.strokeWidth=0,Ue.strokeDasharray="",Ue.opacity=1,Ue.setStrokeColor=Ue.setStrokeColor.bind(Ue),Ue.setFillColor=Ue.setFillColor.bind(Ue),Ue.setStrokeWidth=Ue.setStrokeWidth.bind(Ue),Ue.setStrokeDasharray=Ue.setStrokeDasharray.bind(Ue),Ue.createVisual=Ue.createVisual.bind(Ue),Ue}return Pe(De,et),De.prototype.ownsTarget=function(ke){return!(!et.prototype.ownsTarget.call(this,ke)&&ke!==this.visual)},De.prototype.createVisual=function(){this.visual=Te.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)},De.prototype.pointerDown=function(ke,Xe){et.prototype.pointerDown.call(this,ke,Xe),this.state==="new"&&(this.createVisual(),this.moveVisual(ke),this._state="creating")},De.prototype.manipulate=function(ke){et.prototype.manipulate.call(this,ke)},De.prototype.resize=function(ke){et.prototype.resize.call(this,ke),this.setSize()},De.prototype.setSize=function(){et.prototype.setSize.call(this),Te.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},De.prototype.pointerUp=function(ke){et.prototype.pointerUp.call(this,ke),this.setSize()},De.prototype.setStrokeColor=function(ke){this.strokeColor=ke,this.visual&&Te.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(ke),this.stateChanged()},De.prototype.setFillColor=function(ke){this.fillColor=ke,this.visual&&Te.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},De.prototype.setStrokeWidth=function(ke){this.strokeWidth=ke,this.visual&&Te.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},De.prototype.setStrokeDasharray=function(ke){this.strokeDasharray=ke,this.visual&&Te.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},De.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},et.prototype.getState.call(this))},De.prototype.restoreState=function(ke){var Xe=ke;this.fillColor=Xe.fillColor,this.strokeColor=Xe.strokeColor,this.strokeWidth=Xe.strokeWidth,this.strokeDasharray=Xe.strokeDasharray,this.opacity=Xe.opacity,this.createVisual(),et.prototype.restoreState.call(this,ke),this.setSize()},De.prototype.scale=function(ke,Xe){et.prototype.scale.call(this,ke,Xe),this.setSize()},De.title="Rectangle marker",De}(be),Le=function(et){function De(ke,Xe,ut,Ue){var gt=et.call(this,ke,Ue||'<svg viewBox="0 0 24 24"><path d="M3 17h18v-2H3v2m0 3h18v-1H3v1m0-7h18v-3H3v3m0-9v4h18V4H3z"/></svg>')||this;return gt.widths=[],gt.widthBoxes=[],gt.widths=Xe,gt.currentWidth=ut,gt.setCurrentWidth=gt.setCurrentWidth.bind(gt),gt}return Pe(De,et),De.prototype.getUi=function(){var ke=this,Xe=document.createElement("div");return Xe.style.display="flex",Xe.style.overflow="hidden",Xe.style.flexGrow="2",this.widths.forEach(function(ut){var Ue=document.createElement("div");Ue.style.display="flex",Ue.style.flexGrow="2",Ue.style.alignItems="center",Ue.style.justifyContent="space-between",Ue.style.padding="5px",Ue.style.borderWidth="2px",Ue.style.borderStyle="solid",Ue.style.borderColor=ut===ke.currentWidth?ke.uiStyleSettings.toolboxAccentColor:"transparent",Ue.addEventListener("click",function(){ke.setCurrentWidth(ut,Ue)}),Xe.appendChild(Ue);var gt=document.createElement("div");gt.innerText=ut.toString(),gt.style.marginRight="5px",Ue.appendChild(gt);var _t=document.createElement("div");_t.style.minHeight="20px",_t.style.flexGrow="2",_t.style.display="flex",_t.style.alignItems="center";var bn=document.createElement("hr");bn.style.minWidth="20px",bn.style.border="0px",bn.style.borderTop=ut+"px solid "+ke.uiStyleSettings.toolboxColor,bn.style.flexGrow="2",_t.appendChild(bn),Ue.appendChild(_t),ke.widthBoxes.push(Ue)}),Xe},De.prototype.setCurrentWidth=function(ke,Xe){var ut=this;this.currentWidth=ke,this.widthBoxes.forEach(function(Ue){Ue.style.borderColor=Ue===Xe?ut.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},De}(ne),je=function(et){function De(ke,Xe,ut,Ue){var gt=et.call(this,ke,Ue||'<svg viewBox="0 0 24 24"><path d="M3 16h5v-2H3v2m6.5 0h5v-2h-5v2m6.5 0h5v-2h-5v2M3 20h2v-2H3v2m4 0h2v-2H7v2m4 0h2v-2h-2v2m4 0h2v-2h-2v2m4 0h2v-2h-2v2M3 12h8v-2H3v2m10 0h8v-2h-8v2M3 4v4h18V4H3z"/></svg>')||this;return gt.styles=[],gt.styleBoxes=[],gt.styles=Xe,gt.currentStyle=ut,gt.setCurrentStyle=gt.setCurrentStyle.bind(gt),gt}return Pe(De,et),De.prototype.getUi=function(){var ke=this,Xe=document.createElement("div");return Xe.style.display="flex",Xe.style.overflow="hidden",Xe.style.flexGrow="2",this.styles.forEach(function(ut){var Ue=document.createElement("div");Ue.style.display="flex",Ue.style.alignItems="center",Ue.style.justifyContent="space-between",Ue.style.padding="5px",Ue.style.borderWidth="2px",Ue.style.borderStyle="solid",Ue.style.overflow="hidden",Ue.style.maxWidth=100/ke.styles.length-5+"%",Ue.style.borderColor=ut===ke.currentStyle?ke.uiStyleSettings.toolboxAccentColor:"transparent",Ue.addEventListener("click",function(){ke.setCurrentStyle(ut,Ue)}),Xe.appendChild(Ue);var gt=document.createElement("div");gt.style.minHeight="20px",gt.style.flexGrow="2",gt.style.overflow="hidden";var _t=`<svg width="100" height="20">
|
|
|
<line x1="0" y1="10" x2="100" y2="10" stroke="`+ke.uiStyleSettings.toolboxColor+'" stroke-width="3" '+(ut!==""?'stroke-dasharray="'+ut+'"':"")+` />
|
|
|
</svg>`;gt.innerHTML=_t,Ue.appendChild(gt),ke.styleBoxes.push(Ue)}),Xe},De.prototype.setCurrentStyle=function(ke,Xe){var ut=this;this.currentStyle=ke,this.styleBoxes.forEach(function(Ue){Ue.style.borderColor=Ue===Xe?ut.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},De}(ne),$e=function(et){function De(ke,Xe,ut){var Ue=et.call(this,ke,Xe,ut)||this;return Ue.strokeColor=ut.defaultColor,Ue.strokeWidth=ut.defaultStrokeWidth,Ue.strokeDasharray=ut.defaultStrokeDasharray,Ue.strokePanel=new te("Line color",ut.defaultColorSet,ut.defaultColor),Ue.strokePanel.onColorChanged=Ue.setStrokeColor,Ue.strokeWidthPanel=new Le("Line width",ut.defaultStrokeWidths,ut.defaultStrokeWidth),Ue.strokeWidthPanel.onWidthChanged=Ue.setStrokeWidth,Ue.strokeStylePanel=new je("Line style",ut.defaultStrokeDasharrays,ut.defaultStrokeDasharray),Ue.strokeStylePanel.onStyleChanged=Ue.setStrokeDasharray,Ue}return Pe(De,et),Object.defineProperty(De.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),De.prototype.getState=function(){var ke=et.prototype.getState.call(this);return ke.typeName=De.typeName,ke},De.typeName="FrameMarker",De.title="Frame marker",De.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4m14 11H6V8h12v9z"/></svg>',De}(Ae),qe=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"},nt=function(et){function De(ke,Xe,ut){var Ue=et.call(this,ke,Xe,ut)||this;return Ue.x1=0,Ue.y1=0,Ue.x2=0,Ue.y2=0,Ue.defaultLength=50,Ue.manipulationStartX=0,Ue.manipulationStartY=0,Ue.manipulationStartX1=0,Ue.manipulationStartY1=0,Ue.manipulationStartX2=0,Ue.manipulationStartY2=0,Ue.setupControlBox(),Ue}return Pe(De,et),De.prototype.ownsTarget=function(ke){return!!et.prototype.ownsTarget.call(this,ke)||!(!this.grip1.ownsTarget(ke)&&!this.grip2.ownsTarget(ke))},De.prototype.pointerDown=function(ke,Xe){et.prototype.pointerDown.call(this,ke,Xe),this.manipulationStartX=ke.x,this.manipulationStartY=ke.y,this.state==="new"&&(this.x1=ke.x,this.y1=ke.y,this.x2=ke.x,this.y2=ke.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(Xe)?this.activeGrip=this.grip1:this.grip2.ownsTarget(Xe)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},De.prototype.pointerUp=function(ke){var Xe=this.state;et.prototype.pointerUp.call(this,ke),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(ke),this._state="select",Xe==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},De.prototype.adjustVisual=function(){},De.prototype.manipulate=function(ke){this.state==="creating"?this.resize(ke):this.state==="move"?(this.x1=this.manipulationStartX1+ke.x-this.manipulationStartX,this.y1=this.manipulationStartY1+ke.y-this.manipulationStartY,this.x2=this.manipulationStartX2+ke.x-this.manipulationStartX,this.y2=this.manipulationStartY2+ke.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(ke)},De.prototype.resize=function(ke){switch(this.activeGrip){case this.grip1:this.x1=ke.x,this.y1=ke.y;break;case this.grip2:case void 0:this.x2=ke.x,this.y2=ke.y}this.adjustVisual(),this.adjustControlBox()},De.prototype.select=function(){et.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},De.prototype.deselect=function(){et.prototype.deselect.call(this),this.controlBox.style.display="none"},De.prototype.setupControlBox=function(){this.controlBox=Te.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},De.prototype.adjustControlBox=function(){this.positionGrips()},De.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},De.prototype.createGrip=function(){var ke=new ge;return ke.visual.transform.baseVal.appendItem(Te.createTransform()),this.controlBox.appendChild(ke.visual),ke},De.prototype.positionGrips=function(){var ke=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-ke/2,this.y1-ke/2),this.positionGrip(this.grip2.visual,this.x2-ke/2,this.y2-ke/2)},De.prototype.positionGrip=function(ke,Xe,ut){var Ue=ke.transform.baseVal.getItem(0);Ue.setTranslate(Xe,ut),ke.transform.baseVal.replaceItem(Ue,0)},De.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},et.prototype.getState.call(this))},De.prototype.restoreState=function(ke){et.prototype.restoreState.call(this,ke);var Xe=ke;this.x1=Xe.x1,this.y1=Xe.y1,this.x2=Xe.x2,this.y2=Xe.y2},De.prototype.scale=function(ke,Xe){et.prototype.scale.call(this,ke,Xe),this.x1=this.x1*ke,this.y1=this.y1*Xe,this.x2=this.x2*ke,this.y2=this.y2*Xe,this.adjustVisual(),this.adjustControlBox()},De}(he),dt=function(et){function De(ke,Xe,ut){var Ue=et.call(this,ke,Xe,ut)||this;return Ue.strokeColor="transparent",Ue.strokeWidth=0,Ue.strokeDasharray="",Ue.setStrokeColor=Ue.setStrokeColor.bind(Ue),Ue.setStrokeWidth=Ue.setStrokeWidth.bind(Ue),Ue.setStrokeDasharray=Ue.setStrokeDasharray.bind(Ue),Ue.strokeColor=ut.defaultColor,Ue.strokeWidth=ut.defaultStrokeWidth,Ue.strokeDasharray=ut.defaultStrokeDasharray,Ue.strokePanel=new te("Line color",ut.defaultColorSet,ut.defaultColor),Ue.strokePanel.onColorChanged=Ue.setStrokeColor,Ue.strokeWidthPanel=new Le("Line width",ut.defaultStrokeWidths,ut.defaultStrokeWidth),Ue.strokeWidthPanel.onWidthChanged=Ue.setStrokeWidth,Ue.strokeStylePanel=new je("Line style",ut.defaultStrokeDasharrays,ut.defaultStrokeDasharray),Ue.strokeStylePanel.onStyleChanged=Ue.setStrokeDasharray,Ue}return Pe(De,et),De.prototype.ownsTarget=function(ke){return!(!et.prototype.ownsTarget.call(this,ke)&&ke!==this.visual&&ke!==this.selectorLine&&ke!==this.visibleLine)},De.prototype.createVisual=function(){this.visual=Te.createGroup(),this.selectorLine=Te.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=Te.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)},De.prototype.pointerDown=function(ke,Xe){et.prototype.pointerDown.call(this,ke,Xe),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},De.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()),Te.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),Te.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),Te.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},De.prototype.setStrokeColor=function(ke){this.strokeColor=ke,this.adjustVisual(),this.colorChanged(ke)},De.prototype.setStrokeWidth=function(ke){this.strokeWidth=ke,this.adjustVisual()},De.prototype.setStrokeDasharray=function(ke){this.strokeDasharray=ke,this.adjustVisual(),this.stateChanged()},Object.defineProperty(De.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),De.prototype.getState=function(){var ke=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},et.prototype.getState.call(this));return ke.typeName=De.typeName,ke},De.prototype.restoreState=function(ke){et.prototype.restoreState.call(this,ke);var Xe=ke;this.strokeColor=Xe.strokeColor,this.strokeWidth=Xe.strokeWidth,this.strokeDasharray=Xe.strokeDasharray,this.createVisual(),this.adjustVisual()},De.typeName="LineMarker",De.title="Line marker",De.icon='<svg viewBox="0 0 24 24"><path d="M19 13H5v-2h14v2z"/></svg>',De}(nt),it=function(et){function De(ke,Xe,ut,Ue){var gt=et.call(this,ke,Ue||'<svg viewBox="0 0 24 24"><path d="M17 8h3v12h1v1h-4v-1h1v-3h-4l-1.5 3H14v1h-4v-1h1l6-12m1 1l-3.5 7H18V9M5 3h5c1.11 0 2 .89 2 2v11H9v-5H6v5H3V5c0-1.11.89-2 2-2m1 2v4h3V5H6z"/></svg>')||this;return gt.fonts=[],gt.fontBoxes=[],gt.fonts=Xe,gt.currentFont=ut,gt.setCurrentFont=gt.setCurrentFont.bind(gt),gt}return Pe(De,et),De.prototype.getUi=function(){var ke=this,Xe=document.createElement("div");return Xe.style.overflow="hidden",Xe.style.flexGrow="2",this.fonts.forEach(function(ut){var Ue=document.createElement("div");Ue.style.display="inline-block",Ue.style.alignItems="center",Ue.style.justifyContent="space-between",Ue.style.padding="5px",Ue.style.borderWidth="2px",Ue.style.borderStyle="solid",Ue.style.overflow="hidden",Ue.style.maxWidth=100/ke.fonts.length-5+"%",Ue.style.borderColor=ut===ke.currentFont?ke.uiStyleSettings.toolboxAccentColor:"transparent",Ue.addEventListener("click",function(){ke.setCurrentFont(ut,Ue)}),Xe.appendChild(Ue);var gt=document.createElement("div");gt.style.display="flex",gt.style.minHeight="20px",gt.style.flexGrow="2",gt.style.fontFamily=ut,gt.style.overflow="hidden";var _t=document.createElement("div");_t.style.whiteSpace="nowrap",_t.style.overflow="hidden",_t.style.textOverflow="ellipsis",_t.innerHTML="The quick brown fox jumps over the lazy dog",gt.appendChild(_t),Ue.appendChild(gt),ke.fontBoxes.push(Ue)}),Xe},De.prototype.setCurrentFont=function(ke,Xe){var ut=this;this.currentFont=ke,this.fontBoxes.forEach(function(Ue){Ue.style.borderColor=Ue===Xe?ut.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},De}(ne),bt=function(et){function De(ke,Xe,ut){var Ue=et.call(this,ke,Xe,ut)||this;return Ue.color="transparent",Ue.padding=5,Ue.DEFAULT_TEXT="\u8BF7\u8F93\u5165\u6587\u672C",Ue.text=Ue.DEFAULT_TEXT,Ue.isMoved=!1,Ue.color=ut.defaultColor,Ue.fontFamily=ut.defaultFontFamily,Ue.defaultSize={x:100,y:30},Ue.setColor=Ue.setColor.bind(Ue),Ue.setFont=Ue.setFont.bind(Ue),Ue.renderText=Ue.renderText.bind(Ue),Ue.sizeText=Ue.sizeText.bind(Ue),Ue.textEditDivClicked=Ue.textEditDivClicked.bind(Ue),Ue.showTextEditor=Ue.showTextEditor.bind(Ue),Ue.setSize=Ue.setSize.bind(Ue),Ue.positionTextEditor=Ue.positionTextEditor.bind(Ue),Ue.colorPanel=new te("Color",ut.defaultColorSet,ut.defaultColor),Ue.colorPanel.onColorChanged=Ue.setColor,Ue.fontFamilyPanel=new it("Font",ut.defaultFontFamilies,ut.defaultFontFamily),Ue.fontFamilyPanel.onFontChanged=Ue.setFont,Ue}return Pe(De,et),De.prototype.ownsTarget=function(ke){if(et.prototype.ownsTarget.call(this,ke)||ke===this.visual||ke===this.textElement||ke===this.bgRectangle)return!0;var Xe=!1;return this.textElement.childNodes.forEach(function(ut){ut===ke&&(Xe=!0)}),Xe},De.prototype.createVisual=function(){this.visual=Te.createGroup(),this.bgRectangle=Te.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=Te.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(Te.createTransform()),this.textElement.transform.baseVal.appendItem(Te.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},De.prototype.pointerDown=function(ke,Xe){et.prototype.pointerDown.call(this,ke,Xe),this.isMoved=!1,this.pointerDownPoint=ke,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(ke),this._state="creating")},De.prototype.renderText=function(){var ke=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(Xe){ke.textElement.appendChild(Te.createTSpan(Xe.trim()===""?" ":Xe.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},De.prototype.getTextScale=function(){var ke=this.textElement.getBBox(),Xe=1;if(ke.width>0&&ke.height>0){var ut=(1*this.width-this.width*this.padding*2/100)/ke.width,Ue=(1*this.height-this.height*this.padding*2/100)/ke.height;Xe=Math.min(ut,Ue)}return Xe},De.prototype.getTextPosition=function(ke){var Xe=this.textElement.getBBox(),ut=0,Ue=0;return Xe.width>0&&Xe.height>0&&(ut=(this.width-Xe.width*ke)/2,Ue=this.height/2-Xe.height*ke/2),{x:ut,y:Ue}},De.prototype.sizeText=function(){var ke=this.textElement.getBBox(),Xe=this.getTextScale(),ut=this.getTextPosition(Xe);ut.y-=ke.y*Xe,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+ut.x+"px, "+ut.y+"px) scale("+Xe+", "+Xe+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(ut.x,ut.y),this.textElement.transform.baseVal.getItem(1).setScale(Xe,Xe))},De.prototype.manipulate=function(ke){et.prototype.manipulate.call(this,ke),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(ke.x-this.pointerDownPoint.x)>5||Math.abs(ke.y-this.pointerDownPoint.y)>5)},De.prototype.resize=function(ke){et.prototype.resize.call(this,ke),this.isMoved=!0,this.setSize(),this.sizeText()},De.prototype.setSize=function(){et.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(Te.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),Te.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},De.prototype.pointerUp=function(ke){var Xe=this.state;Xe==="creating"&&(this._suppressMarkerCreateEvent=!0),et.prototype.pointerUp.call(this,ke),this.setSize(),(Xe==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},De.prototype.showTextEditor=function(){var ke=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(Xe){Xe.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var Xe=Number.parseFloat(ke.textEditor.style.fontSize);ke.textEditor.clientWidth>=Number.parseInt(ke.textEditor.style.maxWidth)&&Xe>.9;)Xe-=.1,ke.textEditor.style.fontSize=Math.max(Xe,.9)+"em"}),this.textEditor.addEventListener("keyup",function(Xe){Xe.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(Xe){if(Xe.clipboardData){var ut=Xe.clipboardData.getData("text"),Ue=window.getSelection();if(!Ue.rangeCount)return!1;Ue.deleteFromDocument(),Ue.getRangeAt(0).insertNode(document.createTextNode(ut)),Xe.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){ke.textEditDivClicked(ke.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},De.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var ke=this.getTextScale(),Xe=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),ut=this.textElement.getBBox(),Ue={x:ut.width*ke,y:ut.height*ke};Xe.x-=Ue.x/2,Xe.y-=Ue.y/2,this.textEditor.style.top=Xe.y+"px",this.textEditor.style.left=Xe.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-Xe.x+"px",this.textEditor.style.fontSize=Math.max(16*ke,12)+"px",this.textElement.style.display="none"}},De.prototype.textEditDivClicked=function(ke){this.text=ke.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},De.prototype.select=function(){et.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},De.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),et.prototype.deselect.call(this)},De.prototype.dblClick=function(ke,Xe){et.prototype.dblClick.call(this,ke,Xe),this.showTextEditor()},De.prototype.setColor=function(ke){this.textElement&&Te.setAttributes(this.textElement,[["fill",ke]]),this.color=ke,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(ke)},De.prototype.setFont=function(ke){this.textElement&&Te.setAttributes(this.textElement,[["font-family",ke]]),this.fontFamily=ke,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},De.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},De.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(De.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),De.prototype.getState=function(){var ke=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},et.prototype.getState.call(this));return ke.typeName=De.typeName,ke},De.prototype.restoreState=function(ke){var Xe=ke;this.color=Xe.color,this.fontFamily=Xe.fontFamily,this.padding=Xe.padding,this.text=Xe.text,this.createVisual(),et.prototype.restoreState.call(this,ke),this.setSize()},De.prototype.scale=function(ke,Xe){et.prototype.scale.call(this,ke,Xe),this.setSize(),this.sizeText(),this.positionTextEditor()},De.typeName="TextMarker",De.title="Text marker",De.icon='<svg viewBox="0 0 24 24"><path d="M9.6 14L12 7.7l2.4 6.3M11 5L5.5 19h2.2l1.1-3H15l1.1 3h2.2L13 5h-2z"/></svg>',De}(be),It=function(et){function De(ke,Xe,ut){var Ue=et.call(this,ke,Xe,ut)||this;return Ue.color="transparent",Ue.lineWidth=3,Ue.drawing=!1,Ue.pixelRatio=1,Ue.color=ut.defaultColor,Ue.lineWidth=ut.defaultStrokeWidth,Ue.pixelRatio=ut.freehandPixelRatio,Ue.setColor=Ue.setColor.bind(Ue),Ue.addCanvas=Ue.addCanvas.bind(Ue),Ue.finishCreation=Ue.finishCreation.bind(Ue),Ue.setLineWidth=Ue.setLineWidth.bind(Ue),Ue.colorPanel=new te("Color",ut.defaultColorSet,ut.defaultColor),Ue.colorPanel.onColorChanged=Ue.setColor,Ue.lineWidthPanel=new Le("Line width",ut.defaultStrokeWidths,ut.defaultStrokeWidth),Ue.lineWidthPanel.onWidthChanged=Ue.setLineWidth,Ue}return Pe(De,et),De.prototype.ownsTarget=function(ke){return!(!et.prototype.ownsTarget.call(this,ke)&&ke!==this.visual&&ke!==this.drawingImage)},De.prototype.createVisual=function(){this.visual=Te.createGroup(),this.drawingImage=Te.createImage(),this.visual.appendChild(this.drawingImage);var ke=Te.createTransform();this.visual.transform.baseVal.appendItem(ke),this.addMarkerVisualToContainer(this.visual)},De.prototype.pointerDown=function(ke,Xe){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(ke.x,ke.y),this.drawing=!0):et.prototype.pointerDown.call(this,ke,Xe)},De.prototype.manipulate=function(ke){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(ke.x,ke.y),this.canvasContext.stroke()):et.prototype.manipulate.call(this,ke)},De.prototype.resize=function(ke){et.prototype.resize.call(this,ke),Te.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),Te.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},De.prototype.pointerUp=function(ke){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):et.prototype.pointerUp.call(this,ke)},De.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)},De.prototype.select=function(){this.state==="creating"&&this.finishCreation(),et.prototype.select.call(this)},De.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),et.prototype.deselect.call(this)},De.prototype.finishCreation=function(){for(var ke=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),Xe=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],ut=Xe[0],Ue=Xe[1],gt=Xe[2],_t=Xe[3],bn=!1,xn=0;xn<this.canvasElement.height;xn++)for(var Lt=0;Lt<this.canvasElement.width;Lt++)ke.data[xn*this.canvasElement.width*4+4*Lt+3]>0&&(bn=!0,xn<Ue&&(Ue=xn),Lt<ut&&(ut=Lt),xn>_t&&(_t=xn),Lt>gt&&(gt=Lt));if(bn){this.left=ut/this.pixelRatio,this.top=Ue/this.pixelRatio,this.width=(gt-ut)/this.pixelRatio,this.height=(_t-Ue)/this.pixelRatio;var Zt=document.createElement("canvas");Zt.width=gt-ut,Zt.height=_t-Ue,Zt.getContext("2d").putImageData(this.canvasContext.getImageData(ut,Ue,gt-ut,_t-Ue),0,0),this.drawingImgUrl=Zt.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},De.prototype.setDrawingImage=function(){Te.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),Te.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},De.prototype.setColor=function(ke){this.color=ke,this.colorChanged(ke)},De.prototype.setLineWidth=function(ke){this.lineWidth=ke},Object.defineProperty(De.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),De.prototype.getState=function(){var ke=Object.assign({drawingImgUrl:this.drawingImgUrl},et.prototype.getState.call(this));return ke.typeName=De.typeName,ke},De.prototype.restoreState=function(ke){this.createVisual(),et.prototype.restoreState.call(this,ke),this.drawingImgUrl=ke.drawingImgUrl,this.setDrawingImage()},De.prototype.scale=function(ke,Xe){et.prototype.scale.call(this,ke,Xe),this.setDrawingImage()},De.typeName="FreehandMarker",De.title="Freehand marker",De.icon='<svg viewBox="0 0 24 24"><path d="M9.75 20.85c1.78-.7 1.39-2.63.49-3.85-.89-1.25-2.12-2.11-3.36-2.94A9.817 9.817 0 014.54 12c-.28-.33-.85-.94-.27-1.06.59-.12 1.61.46 2.13.68.91.38 1.81.82 2.65 1.34l1.01-1.7C8.5 10.23 6.5 9.32 4.64 9.05c-1.06-.16-2.18.06-2.54 1.21-.32.99.19 1.99.77 2.77 1.37 1.83 3.5 2.71 5.09 4.29.34.33.75.72.95 1.18.21.44.16.47-.31.47-1.24 0-2.79-.97-3.8-1.61l-1.01 1.7c1.53.94 4.09 2.41 5.96 1.79m11.09-15.6c.22-.22.22-.58 0-.79l-1.3-1.3a.562.562 0 00-.78 0l-1.02 1.02 2.08 2.08M11 10.92V13h2.08l6.15-6.15-2.08-2.08L11 10.92z"/></svg>',De}(be),Ht=function(et){function De(ke,Xe,ut){var Ue=et.call(this,ke,ut||'<svg viewBox="0 0 24 24"><path d="M8 14v4l-6-6 6-6v4h8V6l6 6-6 6v-4H8z"/></svg>')||this;return Ue.typeBoxes=[],Ue.currentType=Xe,Ue.setCurrentType=Ue.setCurrentType.bind(Ue),Ue}return Pe(De,et),De.prototype.getUi=function(){var ke=this,Xe=document.createElement("div");Xe.style.display="flex",Xe.style.overflow="hidden",Xe.style.flexGrow="2";for(var ut=function(_t){var bn="both";switch(_t){case 0:bn="both";break;case 1:bn="start";break;case 2:bn="end";break;case 3:bn="none"}var xn=document.createElement("div");if(xn.style.display="flex",xn.style.flexGrow="2",xn.style.alignItems="center",xn.style.justifyContent="space-between",xn.style.padding="5px",xn.style.borderWidth="2px",xn.style.borderStyle="solid",xn.style.borderColor=bn===Ue.currentType?Ue.uiStyleSettings.toolboxAccentColor:"transparent",xn.addEventListener("click",function(){ke.setCurrentType(bn,xn)}),Xe.appendChild(xn),bn==="both"||bn==="start"){var Lt=document.createElement("div");Lt.style.display="flex",Lt.style.alignItems="center",Lt.style.minHeight="20px",Lt.innerHTML=`<svg viewBox="0 0 10 10" width="10" height="10" xmlns="http://www.w3.org/2000/svg">
|
|
|
<polygon points="0,5 10,0 10,10" fill="`+(Ue.uiStyleSettings!==void 0?Ue.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
|
|
|
</svg>`,Lt.style.marginLeft="5px",xn.appendChild(Lt)}var Zt=document.createElement("div");Zt.style.display="flex",Zt.style.alignItems="center",Zt.style.minHeight="20px",Zt.style.flexGrow="2";var Vt=document.createElement("hr");if(Vt.style.minWidth="20px",Vt.style.border="0px",Vt.style.borderTop="3px solid "+(Ue.uiStyleSettings!==void 0?Ue.uiStyleSettings.toolboxColor:"#eeeeee"),Vt.style.flexGrow="2",Zt.appendChild(Vt),xn.appendChild(Zt),bn==="both"||bn==="end"){var fn=document.createElement("div");fn.style.display="flex",fn.style.alignItems="center",fn.style.minHeight="20px",fn.innerHTML=`<svg viewBox="0 0 10 10" width="10" height="10" xmlns="http://www.w3.org/2000/svg">
|
|
|
<polygon points="0,0 10,5 0,10" fill="`+(Ue.uiStyleSettings!==void 0?Ue.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
|
|
|
</svg>`,fn.style.marginRight="5px",xn.appendChild(fn)}Ue.typeBoxes.push(xn)},Ue=this,gt=0;gt<4;gt++)ut(gt);return Xe},De.prototype.setCurrentType=function(ke,Xe){var ut=this;this.currentType=ke,this.typeBoxes.forEach(function(Ue){Ue.style.borderColor=Ue===Xe?ut.uiStyleSettings!==void 0?ut.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},De}(ne),ln=function(et){function De(ke,Xe,ut){var Ue=et.call(this,ke,Xe,ut)||this;return Ue.arrowType="end",Ue.arrowBaseHeight=10,Ue.arrowBaseWidth=10,Ue.getArrowPoints=Ue.getArrowPoints.bind(Ue),Ue.setArrowType=Ue.setArrowType.bind(Ue),Ue.arrowTypePanel=new Ht("Arrow type","end"),Ue.arrowTypePanel.onArrowTypeChanged=Ue.setArrowType,Ue}return Pe(De,et),De.prototype.ownsTarget=function(ke){return!(!et.prototype.ownsTarget.call(this,ke)&&ke!==this.arrow1&&ke!==this.arrow2)},De.prototype.getArrowPoints=function(ke,Xe){var ut=this.arrowBaseWidth+2*this.strokeWidth,Ue=this.arrowBaseHeight+2*this.strokeWidth;return ke-ut/2+","+(Xe+Ue/2)+" "+ke+","+(Xe-Ue/2)+" "+(ke+ut/2)+","+(Xe+Ue/2)},De.prototype.createTips=function(){this.arrow1=Te.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(Te.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=Te.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(Te.createTransform()),this.visual.appendChild(this.arrow2)},De.prototype.pointerDown=function(ke,Xe){et.prototype.pointerDown.call(this,ke,Xe),this.state==="creating"&&this.createTips()},De.prototype.adjustVisual=function(){if(et.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",Te.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),Te.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]);var ke=0;Math.abs(this.x1-this.x2)>.1&&(ke=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2));var Xe=this.arrow1.transform.baseVal.getItem(0);Xe.setRotate(ke,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(Xe,0);var ut=this.arrow2.transform.baseVal.getItem(0);ut.setRotate(ke+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(ut,0)}},De.prototype.setArrowType=function(ke){this.arrowType=ke,this.adjustVisual(),this.stateChanged()},Object.defineProperty(De.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),De.prototype.getState=function(){var ke=Object.assign({arrowType:this.arrowType},et.prototype.getState.call(this));return ke.typeName=De.typeName,ke},De.prototype.restoreState=function(ke){et.prototype.restoreState.call(this,ke);var Xe=ke;this.arrowType=Xe.arrowType,this.createTips(),this.adjustVisual()},De.typeName="ArrowMarker",De.title="Arrow marker",De.icon='<svg viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 7 15.59V9H5v10h10v-2H8.41L19 6.41z"/></svg>',De}(dt),un=function(et){function De(ke,Xe,ut){var Ue=et.call(this,ke,Xe,ut)||this;return Ue.fillColor=ut.defaultFillColor,Ue.strokeWidth=0,Ue.fillPanel=new te("Color",ut.defaultColorSet,ut.defaultFillColor),Ue.fillPanel.onColorChanged=Ue.setFillColor,Ue}return Pe(De,et),Object.defineProperty(De.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),De.prototype.getState=function(){var ke=et.prototype.getState.call(this);return ke.typeName=De.typeName,ke},De.typeName="CoverMarker",De.title="Cover marker",De.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4z"/></svg>',De}(Ae),Qt=function(et){function De(ke,Xe,ut,Ue){var gt=et.call(this,ke,Ue||'<svg viewBox="0 0 24 24"><path d="M17.66 8L12 2.35 6.34 8A8.02 8.02 0 004 13.64c0 2 .78 4.11 2.34 5.67a7.99 7.99 0 0011.32 0c1.56-1.56 2.34-3.67 2.34-5.67S19.22 9.56 17.66 8M6 14c0-2 .62-3.27 1.76-4.4L12 5.27l4.24 4.38C17.38 10.77 18 12 18 14H6z"/></svg>')||this;return gt.opacities=[],gt.opacityBoxes=[],gt.opacities=Xe,gt.currentOpacity=ut,gt.setCurrentOpacity=gt.setCurrentOpacity.bind(gt),gt}return Pe(De,et),De.prototype.getUi=function(){var ke=this,Xe=document.createElement("div");return Xe.style.display="flex",Xe.style.overflow="hidden",Xe.style.flexGrow="2",Xe.style.justifyContent="space-between",this.opacities.forEach(function(ut){var Ue=document.createElement("div");Ue.style.display="flex",Ue.style.alignItems="center",Ue.style.justifyContent="center",Ue.style.padding="5px",Ue.style.borderWidth="2px",Ue.style.borderStyle="solid",Ue.style.borderColor=ut===ke.currentOpacity?ke.uiStyleSettings.toolboxAccentColor:"transparent",Ue.addEventListener("click",function(){ke.setCurrentOpacity(ut,Ue)}),Xe.appendChild(Ue);var gt=document.createElement("div");gt.innerText=100*ut+"%",Ue.appendChild(gt),ke.opacityBoxes.push(Ue)}),Xe},De.prototype.setCurrentOpacity=function(ke,Xe){var ut=this;this.currentOpacity=ke,this.opacityBoxes.forEach(function(Ue){Ue.style.borderColor=Ue===Xe?ut.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},De}(ne),nn=function(et){function De(ke,Xe,ut){var Ue=et.call(this,ke,Xe,ut)||this;return Ue.setOpacity=Ue.setOpacity.bind(Ue),Ue.fillColor=ut.defaultHighlightColor,Ue.strokeWidth=0,Ue.opacity=ut.defaultHighlightOpacity,Ue.fillPanel=new te("Color",ut.defaultColorSet,Ue.fillColor),Ue.fillPanel.onColorChanged=Ue.setFillColor,Ue.opacityPanel=new Qt("Opacity",ut.defaultOpacitySteps,Ue.opacity),Ue.opacityPanel.onOpacityChanged=Ue.setOpacity,Ue}return Pe(De,et),De.prototype.setOpacity=function(ke){this.opacity=ke,this.visual&&Te.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(De.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),De.prototype.getState=function(){var ke=et.prototype.getState.call(this);return ke.typeName=De.typeName,ke},De.typeName="HighlightMarker",De.title="Highlight marker",De.icon='<svg viewBox="0 0 24 24"><path d="M18.5 1.15c-.53 0-1.04.19-1.43.58l-5.81 5.82 5.65 5.65 5.82-5.81c.77-.78.77-2.04 0-2.83l-2.84-2.83c-.39-.39-.89-.58-1.39-.58M10.3 8.5l-5.96 5.96c-.78.78-.78 2.04.02 2.85C3.14 18.54 1.9 19.77.67 21h5.66l.86-.86c.78.76 2.03.75 2.81-.02l5.95-5.96"/></svg>',De}(un),At='<svg viewBox="0 0 24 24"><path d="M9.62 12L12 5.67 14.37 12M11 3L5.5 17h2.25l1.12-3h6.25l1.13 3h2.25L13 3h-2z"/></svg>',ct='<svg viewBox="0 0 24 24"><path d="M19 11.5s-2 2.17-2 3.5a2 2 0 002 2 2 2 0 002-2c0-1.33-2-3.5-2-3.5M5.21 10L10 5.21 14.79 10m1.77-1.06L7.62 0 6.21 1.41l2.38 2.38-5.15 5.15c-.59.56-.59 1.53 0 2.12l5.5 5.5c.29.29.68.44 1.06.44s.77-.15 1.06-.44l5.5-5.5c.59-.59.59-1.56 0-2.12z"/></svg>',at=function(et){function De(ke,Xe,ut){var Ue=et.call(this,ke,Xe,ut)||this;return Ue.bgColor="transparent",Ue.tipPosition={x:0,y:0},Ue.tipBase1Position={x:0,y:0},Ue.tipBase2Position={x:0,y:0},Ue.tipMoving=!1,Ue.color=ut.defaultStrokeColor,Ue.bgColor=ut.defaultFillColor,Ue.fontFamily=ut.defaultFontFamily,Ue.defaultSize={x:100,y:30},Ue.setBgColor=Ue.setBgColor.bind(Ue),Ue.getTipPoints=Ue.getTipPoints.bind(Ue),Ue.positionTip=Ue.positionTip.bind(Ue),Ue.setTipPoints=Ue.setTipPoints.bind(Ue),Ue.colorPanel=new te("Text color",ut.defaultColorSet,Ue.color,At),Ue.colorPanel.onColorChanged=Ue.setColor,Ue.bgColorPanel=new te("Fill color",ut.defaultColorSet,Ue.bgColor,ct),Ue.bgColorPanel.onColorChanged=Ue.setBgColor,Ue.fontFamilyPanel=new it("Font",ut.defaultFontFamilies,ut.defaultFontFamily),Ue.fontFamilyPanel.onFontChanged=Ue.setFont,Ue.tipGrip=new ge,Ue.tipGrip.visual.transform.baseVal.appendItem(Te.createTransform()),Ue.controlBox.appendChild(Ue.tipGrip.visual),Ue}return Pe(De,et),De.prototype.ownsTarget=function(ke){return et.prototype.ownsTarget.call(this,ke)||this.tipGrip.ownsTarget(ke)||this.tip===ke},De.prototype.createTip=function(){Te.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=Te.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},De.prototype.pointerDown=function(ke,Xe){this.state==="new"&&et.prototype.pointerDown.call(this,ke,Xe),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(Xe)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):et.prototype.pointerDown.call(this,ke,Xe)},De.prototype.pointerUp=function(ke){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,et.prototype.pointerUp.call(this,ke);else{var Xe=this.state==="creating";et.prototype.pointerUp.call(this,ke),this.setTipPoints(Xe),this.positionTip()}},De.prototype.manipulate=function(ke){if(this.tipMoving){var Xe=this.unrotatePoint(ke);this.tipPosition={x:Xe.x-this.manipulationStartLeft,y:Xe.y-this.manipulationStartTop},this.positionTip()}else et.prototype.manipulate.call(this,ke)},De.prototype.setBgColor=function(ke){this.bgRectangle&&this.tip&&(Te.setAttributes(this.bgRectangle,[["fill",ke]]),Te.setAttributes(this.tip,[["fill",ke]])),this.bgColor=ke,this.fillColorChanged(ke)},De.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},De.prototype.setTipPoints=function(ke){ke===void 0&&(ke=!1);var Xe=Math.min(this.height/2,15),ut=this.height/5;ke&&(this.tipPosition={x:Xe+ut/2,y:this.height+20});var Ue=Math.atan(this.height/2/(this.width/2));this.tipPosition.x<this.width/2&&this.tipPosition.y<this.height/2?Ue<Math.atan((this.height/2-this.tipPosition.y)/(this.width/2-this.tipPosition.x))?(ut=this.width/5,Xe=Math.min(this.width/2,15),this.tipBase1Position={x:Xe,y:0},this.tipBase2Position={x:Xe+ut,y:0}):(this.tipBase1Position={x:0,y:Xe},this.tipBase2Position={x:0,y:Xe+ut}):this.tipPosition.x>=this.width/2&&this.tipPosition.y<this.height/2?Ue<Math.atan((this.height/2-this.tipPosition.y)/(this.tipPosition.x-this.width/2))?(ut=this.width/5,Xe=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-Xe-ut,y:0},this.tipBase2Position={x:this.width-Xe,y:0}):(this.tipBase1Position={x:this.width,y:Xe},this.tipBase2Position={x:this.width,y:Xe+ut}):this.tipPosition.x>=this.width/2&&this.tipPosition.y>=this.height/2?Ue<Math.atan((this.tipPosition.y-this.height/2)/(this.tipPosition.x-this.width/2))?(ut=this.width/5,Xe=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-Xe-ut,y:this.height},this.tipBase2Position={x:this.width-Xe,y:this.height}):(this.tipBase1Position={x:this.width,y:this.height-Xe-ut},this.tipBase2Position={x:this.width,y:this.height-Xe}):Ue<Math.atan((this.tipPosition.y-this.height/2)/(this.width/2-this.tipPosition.x))?(ut=this.width/5,Xe=Math.min(this.width/2,15),this.tipBase1Position={x:Xe,y:this.height},this.tipBase2Position={x:Xe+ut,y:this.height}):(this.tipBase1Position={x:0,y:this.height-Xe},this.tipBase2Position={x:0,y:this.height-Xe-ut})},De.prototype.resize=function(ke){et.prototype.resize.call(this,ke),this.positionTip()},De.prototype.positionTip=function(){Te.setAttributes(this.tip,[["points",this.getTipPoints()]]);var ke=this.tipGrip.visual.transform.baseVal.getItem(0);ke.setTranslate(this.tipPosition.x,this.tipPosition.y),this.tipGrip.visual.transform.baseVal.replaceItem(ke,0)},Object.defineProperty(De.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.bgColorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),De.prototype.select=function(){this.positionTip(),et.prototype.select.call(this)},De.prototype.getState=function(){var ke=Object.assign({bgColor:this.bgColor,tipPosition:this.tipPosition},et.prototype.getState.call(this));return ke.typeName=De.typeName,ke},De.prototype.restoreState=function(ke){var Xe=ke;this.bgColor=Xe.bgColor,this.tipPosition=Xe.tipPosition,et.prototype.restoreState.call(this,ke),this.createTip(),this.setTipPoints()},De.prototype.scale=function(ke,Xe){et.prototype.scale.call(this,ke,Xe),this.tipPosition={x:this.tipPosition.x*ke,y:this.tipPosition.y*Xe},this.positionTip()},De.typeName="CalloutMarker",De.title="Callout marker",De.icon='<svg viewBox="0 0 24 24"><path d="M4 2h16a2 2 0 012 2v12a2 2 0 01-2 2h-4l-4 4-4-4H4a2 2 0 01-2-2V4a2 2 0 012-2m0 2v12h4.83L12 19.17 15.17 16H20V4H4m2 3h12v2H6V7m0 4h10v2H6v-2z"/></svg>',De}(bt),rn=function(et){function De(ke,Xe,ut){var Ue=et.call(this,ke,Xe,ut)||this;return Ue.fillColor="transparent",Ue.strokeColor="transparent",Ue.strokeWidth=0,Ue.strokeDasharray="",Ue.opacity=1,Ue.strokeColor=ut.defaultColor,Ue.strokeWidth=ut.defaultStrokeWidth,Ue.strokeDasharray=ut.defaultStrokeDasharray,Ue.fillColor=ut.defaultFillColor,Ue.setStrokeColor=Ue.setStrokeColor.bind(Ue),Ue.setFillColor=Ue.setFillColor.bind(Ue),Ue.setStrokeWidth=Ue.setStrokeWidth.bind(Ue),Ue.setStrokeDasharray=Ue.setStrokeDasharray.bind(Ue),Ue.setOpacity=Ue.setOpacity.bind(Ue),Ue.createVisual=Ue.createVisual.bind(Ue),Ue.strokePanel=new te("Line color",We(ut.defaultColorSet,["transparent"]),ut.defaultColor),Ue.strokePanel.onColorChanged=Ue.setStrokeColor,Ue.fillPanel=new te("Fill color",We(ut.defaultColorSet,["transparent"]),Ue.fillColor,ct),Ue.fillPanel.onColorChanged=Ue.setFillColor,Ue.strokeWidthPanel=new Le("Line width",ut.defaultStrokeWidths,ut.defaultStrokeWidth),Ue.strokeWidthPanel.onWidthChanged=Ue.setStrokeWidth,Ue.strokeStylePanel=new je("Line style",ut.defaultStrokeDasharrays,ut.defaultStrokeDasharray),Ue.strokeStylePanel.onStyleChanged=Ue.setStrokeDasharray,Ue.opacityPanel=new Qt("Opacity",ut.defaultOpacitySteps,Ue.opacity),Ue.opacityPanel.onOpacityChanged=Ue.setOpacity,Ue}return Pe(De,et),De.prototype.ownsTarget=function(ke){return!(!et.prototype.ownsTarget.call(this,ke)&&ke!==this.visual)},De.prototype.createVisual=function(){this.visual=Te.createEllipse(this.width/2,this.height/2,[["fill",this.fillColor],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray],["opacity",this.opacity.toString()]]),this.addMarkerVisualToContainer(this.visual)},De.prototype.pointerDown=function(ke,Xe){et.prototype.pointerDown.call(this,ke,Xe),this.state==="new"&&(this.createVisual(),this.moveVisual(ke),this._state="creating")},De.prototype.manipulate=function(ke){et.prototype.manipulate.call(this,ke)},De.prototype.resize=function(ke){et.prototype.resize.call(this,ke),this.setSize()},De.prototype.setSize=function(){et.prototype.setSize.call(this),Te.setAttributes(this.visual,[["cx",(this.width/2).toString()],["cy",(this.height/2).toString()],["rx",(this.width/2).toString()],["ry",(this.height/2).toString()]])},De.prototype.pointerUp=function(ke){et.prototype.pointerUp.call(this,ke),this.setSize()},De.prototype.setStrokeColor=function(ke){this.strokeColor=ke,this.visual&&Te.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(ke),this.stateChanged()},De.prototype.setFillColor=function(ke){this.fillColor=ke,this.visual&&Te.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(ke),this.stateChanged()},De.prototype.setStrokeWidth=function(ke){this.strokeWidth=ke,this.visual&&Te.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},De.prototype.setStrokeDasharray=function(ke){this.strokeDasharray=ke,this.visual&&Te.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},De.prototype.setOpacity=function(ke){this.opacity=ke,this.visual&&Te.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(De.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.opacityPanel]},enumerable:!1,configurable:!0}),De.prototype.getState=function(){var ke=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},et.prototype.getState.call(this));return ke.typeName=De.typeName,ke},De.prototype.restoreState=function(ke){var Xe=ke;this.fillColor=Xe.fillColor,this.strokeColor=Xe.strokeColor,this.strokeWidth=Xe.strokeWidth,this.strokeDasharray=Xe.strokeDasharray,this.opacity=Xe.opacity,this.createVisual(),et.prototype.restoreState.call(this,ke),this.setSize()},De.prototype.scale=function(ke,Xe){et.prototype.scale.call(this,ke,Xe),this.setSize()},De.typeName="EllipseMarker",De.title="Ellipse marker",De.icon='<svg viewBox="0 0 24 24"><path d="M12 4C6.5 4 2 7.58 2 12s4.5 8 10 8 10-3.58 10-8-4.5-8-10-8z"/></svg>',De}(be),hn=function(et){function De(ke,Xe,ut){return et.call(this,ke,Xe,ut)||this}return Pe(De,et),Object.defineProperty(De.prototype,"tipLength",{get:function(){return 10+3*this.strokeWidth},enumerable:!1,configurable:!0}),De.prototype.ownsTarget=function(ke){return!(!et.prototype.ownsTarget.call(this,ke)&&ke!==this.tip1&&ke!==this.tip2)},De.prototype.createTips=function(){this.tip1=Te.createLine(this.x1-this.tipLength/2,this.y1,this.x1+this.tipLength/2,this.y1,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.tip1.transform.baseVal.appendItem(Te.createTransform()),this.visual.appendChild(this.tip1),this.tip2=Te.createLine(this.x2-this.tipLength/2,this.y2,this.x2+this.tipLength/2,this.y2,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.tip2.transform.baseVal.appendItem(Te.createTransform()),this.visual.appendChild(this.tip2)},De.prototype.pointerDown=function(ke,Xe){et.prototype.pointerDown.call(this,ke,Xe),this.state==="creating"&&this.createTips()},De.prototype.adjustVisual=function(){if(et.prototype.adjustVisual.call(this),this.tip1&&this.tip2&&(Te.setAttributes(this.tip1,[["x1",(this.x1-this.tipLength/2).toString()],["y1",this.y1.toString()],["x2",(this.x1+this.tipLength/2).toString()],["y2",this.y1.toString()],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),Te.setAttributes(this.tip2,[["x1",(this.x2-this.tipLength/2).toString()],["y1",this.y2.toString()],["x2",(this.x2+this.tipLength/2).toString()],["y2",this.y2.toString()],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),Math.abs(this.x1-this.x2)>.1)){var ke=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),Xe=this.tip1.transform.baseVal.getItem(0);Xe.setRotate(ke,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(Xe,0);var ut=this.tip2.transform.baseVal.getItem(0);ut.setRotate(ke+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(ut,0)}},Object.defineProperty(De.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),De.prototype.getState=function(){var ke=et.prototype.getState.call(this);return ke.typeName=De.typeName,ke},De.prototype.restoreState=function(ke){et.prototype.restoreState.call(this,ke),this.createTips(),this.adjustVisual()},De.typeName="MeasurementMarker",De.title="Measurement marker",De.icon='<svg viewBox="0 0 24 24"><path d="M1.39 18.36l1.77-1.76L4.58 18l1.06-1.05-1.42-1.41 1.42-1.42 2.47 2.48 1.06-1.06-2.47-2.48 1.41-1.41 1.42 1.41L10.59 12l-1.42-1.41 1.42-1.42 2.47 2.48 1.06-1.06-2.47-2.48 1.41-1.41 1.41 1.41 1.07-1.06-1.42-1.41 1.42-1.42L18 6.7l1.07-1.06-2.47-2.48 1.76-1.77 4.25 4.25L5.64 22.61l-4.25-4.25z"/></svg>',De}(dt),Pt=function(et){function De(ke,Xe,ut){var Ue=et.call(this,ke,Xe,ut)||this;return Ue.strokePanel.colors=ut.defaultColorSet,Ue.fillColor="transparent",Ue}return Pe(De,et),Object.defineProperty(De.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),De.prototype.getState=function(){var ke=et.prototype.getState.call(this);return ke.typeName=De.typeName,ke},De.typeName="EllipseFrameMarker",De.title="Ellipse frame marker",De.icon='<svg viewBox="0 0 24 24"><path d="M12 6c4.41 0 8 2.69 8 6s-3.59 6-8 6-8-2.69-8-6 3.59-6 8-6m0-2C6.5 4 2 7.58 2 12s4.5 8 10 8 10-3.58 10-8-4.5-8-10-8z"/></svg>',De}(rn),pn=function(){function et(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(et.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(et.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(et.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(et.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),et.prototype.addUndoStep=function(De){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(De)||(this.undoStack.push(De),JSON.stringify(this.lastRedoStep)!==JSON.stringify(De)&&this.redoStack.splice(0,this.redoStack.length))},et.prototype.replaceLastUndoStep=function(De){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=De)},et.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},et.prototype.undo=function(){if(this.undoStack.length>1){var De=this.undoStack.pop();return De!==void 0&&this.redoStack.push(De),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},et.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},et}(),dn=function(et){function De(ke,Xe,ut){var Ue=et.call(this,ke,Xe,ut)||this;return Ue.strokeColor="transparent",Ue.strokeWidth=0,Ue.strokeDasharray="",Ue.curveX=0,Ue.curveY=0,Ue.manipulationStartCurveX=0,Ue.manipulationStartCurveY=0,Ue.setStrokeColor=Ue.setStrokeColor.bind(Ue),Ue.setStrokeWidth=Ue.setStrokeWidth.bind(Ue),Ue.setStrokeDasharray=Ue.setStrokeDasharray.bind(Ue),Ue.positionGrips=Ue.positionGrips.bind(Ue),Ue.addControlGrips=Ue.addControlGrips.bind(Ue),Ue.adjustVisual=Ue.adjustVisual.bind(Ue),Ue.setupControlBox=Ue.setupControlBox.bind(Ue),Ue.resize=Ue.resize.bind(Ue),Ue.strokeColor=ut.defaultColor,Ue.strokeWidth=ut.defaultStrokeWidth,Ue.strokeDasharray=ut.defaultStrokeDasharray,Ue.strokePanel=new te("Line color",ut.defaultColorSet,ut.defaultColor),Ue.strokePanel.onColorChanged=Ue.setStrokeColor,Ue.strokeWidthPanel=new Le("Line width",ut.defaultStrokeWidths,ut.defaultStrokeWidth),Ue.strokeWidthPanel.onWidthChanged=Ue.setStrokeWidth,Ue.strokeStylePanel=new je("Line style",ut.defaultStrokeDasharrays,ut.defaultStrokeDasharray),Ue.strokeStylePanel.onStyleChanged=Ue.setStrokeDasharray,Ue}return Pe(De,et),De.prototype.ownsTarget=function(ke){return!(!et.prototype.ownsTarget.call(this,ke)&&ke!==this.visual&&ke!==this.selectorCurve&&ke!==this.visibleCurve&&!this.curveGrip.ownsTarget(ke))},De.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},De.prototype.createVisual=function(){this.visual=Te.createGroup(),this.selectorCurve=Te.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=Te.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)},De.prototype.pointerDown=function(ke,Xe){et.prototype.pointerDown.call(this,ke,Xe),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=ke.x,this.curveY=ke.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(Xe)&&(this.activeGrip=this.curveGrip,this._state="resize")},De.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),Te.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),Te.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),Te.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},De.prototype.setupControlBox=function(){et.prototype.setupControlBox.call(this),this.curveControlLine1=Te.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=Te.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)},De.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,et.prototype.addControlGrips.call(this)},De.prototype.positionGrips=function(){et.prototype.positionGrips.call(this);var ke=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-ke/2,this.curveY-ke/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()))},De.prototype.manipulate=function(ke){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+ke.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+ke.y-this.manipulationStartY),et.prototype.manipulate.call(this,ke)},De.prototype.resize=function(ke){this.activeGrip===this.curveGrip&&(this.curveX=ke.x,this.curveY=ke.y),et.prototype.resize.call(this,ke),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},De.prototype.setStrokeColor=function(ke){this.strokeColor=ke,this.adjustVisual(),this.colorChanged(ke)},De.prototype.setStrokeWidth=function(ke){this.strokeWidth=ke,this.adjustVisual()},De.prototype.setStrokeDasharray=function(ke){this.strokeDasharray=ke,this.adjustVisual()},De.prototype.scale=function(ke,Xe){this.curveX=this.curveX*ke,this.curveY=this.curveY*Xe,et.prototype.scale.call(this,ke,Xe)},Object.defineProperty(De.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),De.prototype.getState=function(){var ke=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},et.prototype.getState.call(this));return ke.typeName=De.typeName,ke},De.prototype.restoreState=function(ke){et.prototype.restoreState.call(this,ke);var Xe=ke;this.strokeColor=Xe.strokeColor,this.strokeWidth=Xe.strokeWidth,this.strokeDasharray=Xe.strokeDasharray,this.curveX=Xe.curveX,this.curveY=Xe.curveY,this.createVisual(),this.adjustVisual()},De.typeName="CurveMarker",De.title="Curve marker",De.icon='<svg viewBox="0 0 24 24"><path d="M18.5 2A1.5 1.5 0 0120 3.5 1.5 1.5 0 0118.5 5c-.23 0-.45-.05-.65-.15l-3.69 3.7.34.45c2.19-1.26 4.76-2 7.5-2l1 .03v2.01L22 9c-2.58 0-5 .75-7 2.04A3.96 3.96 0 0111.04 15C9.75 17 9 19.42 9 22l.04 1H7.03L7 22c0-2.74.74-5.31 2-7.5l-.45-.34-3.7 3.69c.1.2.15.42.15.65A1.5 1.5 0 013.5 20 1.5 1.5 0 012 18.5 1.5 1.5 0 013.5 17c.23 0 .45.05.65.15l3.69-3.7C7.31 12.78 7 11.92 7 11a4 4 0 014-4c.92 0 1.78.31 2.45.84l3.7-3.69c-.1-.2-.15-.42-.15-.65A1.5 1.5 0 0118.5 2M11 9a2 2 0 00-2 2 2 2 0 002 2 2 2 0 002-2 2 2 0 00-2-2z"/></svg>',De}(nt),_n=function(et){function De(ke,Xe,ut){var Ue=et.call(this,ke,Xe,ut)||this;return Ue.fillColor="transparent",Ue.strokeColor="transparent",Ue.strokeWidth=0,Ue.strokeDasharray="",Ue.textColor="transparent",Ue.fontSize="1rem",Ue.isMoved=!1,Ue.captionText="Caption",Ue.PADDING=5,Ue.captionBoxWidth=0,Ue.captionBoxHeight=0,Ue.strokeColor=ut.defaultColor,Ue.strokeWidth=ut.defaultStrokeWidth,Ue.strokeDasharray=ut.defaultStrokeDasharray,Ue.fillColor=ut.defaultFillColor,Ue.textColor=ut.defaultStrokeColor,Ue.fontFamily=ut.defaultFontFamily,Ue.fontSize=ut.defaultCaptionFontSize,Ue.captionText=ut.defaultCaptionText,Ue.setStrokeColor=Ue.setStrokeColor.bind(Ue),Ue.setFillColor=Ue.setFillColor.bind(Ue),Ue.setStrokeWidth=Ue.setStrokeWidth.bind(Ue),Ue.setStrokeDasharray=Ue.setStrokeDasharray.bind(Ue),Ue.createVisual=Ue.createVisual.bind(Ue),Ue.sizeCaption=Ue.sizeCaption.bind(Ue),Ue.setCaptionText=Ue.setCaptionText.bind(Ue),Ue.showTextEditor=Ue.showTextEditor.bind(Ue),Ue.positionTextEditor=Ue.positionTextEditor.bind(Ue),Ue.finishTextEditing=Ue.finishTextEditing.bind(Ue),Ue.setFont=Ue.setFont.bind(Ue),Ue.setTextColor=Ue.setTextColor.bind(Ue),Ue.strokePanel=new te("Line color",We(ut.defaultColorSet,["transparent"]),Ue.strokeColor),Ue.strokePanel.onColorChanged=Ue.setStrokeColor,Ue.fillPanel=new te("Fill color",We(ut.defaultColorSet,["transparent"]),Ue.fillColor,ct),Ue.fillPanel.onColorChanged=Ue.setFillColor,Ue.strokeWidthPanel=new Le("Line width",ut.defaultStrokeWidths,ut.defaultStrokeWidth),Ue.strokeWidthPanel.onWidthChanged=Ue.setStrokeWidth,Ue.strokeStylePanel=new je("Line style",ut.defaultStrokeDasharrays,ut.defaultStrokeDasharray),Ue.strokeStylePanel.onStyleChanged=Ue.setStrokeDasharray,Ue.fontFamilyPanel=new it("Font",ut.defaultFontFamilies,ut.defaultFontFamily),Ue.fontFamilyPanel.onFontChanged=Ue.setFont,Ue.textColorPanel=new te("Text color",ut.defaultColorSet,Ue.textColor,At),Ue.textColorPanel.onColorChanged=Ue.setTextColor,Ue}return Pe(De,et),De.prototype.ownsTarget=function(ke){return!(!et.prototype.ownsTarget.call(this,ke)&&ke!==this.visual&&ke!==this.frame&&ke!==this.captionBg&&ke!==this.captionElement)},De.prototype.createVisual=function(){this.visual=Te.createGroup(),this.addMarkerVisualToContainer(this.visual),this.captionBg=Te.createRect(1,1,[["fill",this.fillColor]]),this.visual.appendChild(this.captionBg),this.captionElement=Te.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=Te.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()},De.prototype.setCaptionText=function(ke){this.captionText=ke,this.captionElement.textContent=this.captionText,this.sizeCaption()},De.prototype.pointerDown=function(ke,Xe){et.prototype.pointerDown.call(this,ke,Xe),this.isMoved=!1,this.pointerDownPoint=ke,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(ke),this._state="creating")},De.prototype.manipulate=function(ke){et.prototype.manipulate.call(this,ke),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(ke.x-this.pointerDownPoint.x)>5||Math.abs(ke.y-this.pointerDownPoint.y)>5)},De.prototype.resize=function(ke){et.prototype.resize.call(this,ke),this.setSize()},De.prototype.sizeCaption=function(){var ke=this.captionElement.getBBox();this.captionText.trim()!==""?(this.captionBoxWidth=ke.width+2*this.PADDING,this.captionBoxHeight=ke.height+2*this.PADDING):(this.captionBoxWidth=0,this.captionBoxHeight=0),Te.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')"]]),Te.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')"]])},De.prototype.showTextEditor=function(){var ke=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(Xe){Xe.stopPropagation()}),this.textEditBox.addEventListener("keypress",function(Xe){Xe.key==="Enter"&&ke.finishTextEditing(ke.textEditBox.value)}),this.textEditBox.addEventListener("keyup",function(Xe){Xe.cancelBubble=!0}),this.textEditBox.addEventListener("blur",function(){ke.finishTextEditing(ke.textEditBox.value)}),this.textEditDiv.addEventListener("pointerup",function(){ke.finishTextEditing(ke.textEditBox.value)}),this.positionTextEditor(),this.textEditBox.focus()},De.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"))},De.prototype.finishTextEditing=function(ke){this.setCaptionText(ke.trim()),this.overlayContainer.innerHTML="",this.stateChanged()},De.prototype.setFont=function(ke){this.captionElement&&Te.setAttributes(this.captionElement,[["font-family",ke]]),this.fontFamily=ke,this.textEditBox&&(this.textEditBox.style.fontFamily=this.fontFamily),this.sizeCaption(),this.stateChanged()},De.prototype.setTextColor=function(ke){this.captionElement&&Te.setAttributes(this.captionElement,[["fill",ke]]),this.textColor=ke,this.textEditBox&&(this.textEditBox.style.color=this.textColor),this.stateChanged()},De.prototype.setSize=function(){et.prototype.setSize.call(this),Te.setAttributes(this.frame,[["width",this.width.toString()],["height",this.height.toString()]]),this.sizeCaption()},De.prototype.pointerUp=function(ke){et.prototype.pointerUp.call(this,ke),this.setSize(),!this.isMoved&&Date.now()-this.pointerDownTimestamp>500&&this.showTextEditor(),this.pointerDownPoint=void 0},De.prototype.dblClick=function(ke,Xe){et.prototype.dblClick.call(this,ke,Xe),this.showTextEditor()},De.prototype.setStrokeColor=function(ke){this.strokeColor=ke,this.frame&&Te.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(ke),this.stateChanged()},De.prototype.setFillColor=function(ke){this.fillColor=ke,this.captionBg&&Te.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(ke),this.stateChanged()},De.prototype.setStrokeWidth=function(ke){this.strokeWidth=ke,this.frame&&Te.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},De.prototype.setStrokeDasharray=function(ke){this.strokeDasharray=ke,this.frame&&Te.setAttributes(this.frame,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Object.defineProperty(De.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.fontFamilyPanel,this.textColorPanel]},enumerable:!1,configurable:!0}),De.prototype.getState=function(){var ke=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},et.prototype.getState.call(this));return ke.typeName=this.typeName,ke},De.prototype.restoreState=function(ke){var Xe=ke;this.fillColor=Xe.fillColor,this.strokeColor=Xe.strokeColor,this.strokeWidth=Xe.strokeWidth,this.strokeDasharray=Xe.strokeDasharray,this.textColor=Xe.textColor,this.fontFamily=Xe.fontFamily,this.captionText=Xe.captionText,this.fontSize=Xe.fontSize,this.createVisual(),et.prototype.restoreState.call(this,ke),this.setSize()},De.prototype.scale=function(ke,Xe){et.prototype.scale.call(this,ke,Xe),this.setSize()},De.typeName="CaptionFrameMarker",De.title="Caption frame marker",De.icon='<svg viewBox="0 0 24 24"><path d="M5 3c-1.11 0-2 .89-2 2v14c0 1.11.89 2 2 2h14c1.11 0 2-.89 2-2V5c0-1.11-.89-2-2-2H5m0 2h14v14H5V5m2 2v2h10V7H7z"/></svg>',De}(be),Yt=function(){function et(De,ke){ke===void 0&&(ke=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=De,this.cancelable=ke}return Object.defineProperty(et.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),et.prototype.preventDefault=function(){this._defaultPrevented=!0},et}(),On=function(et){function De(ke,Xe,ut){var Ue=et.call(this,ke,!1)||this;return Ue.dataUrl=Xe,Ue.state=ut,Ue}return Pe(De,et),De}(Yt),kt=function(et){function De(ke,Xe,ut){ut===void 0&&(ut=!1);var Ue=et.call(this,ke,ut)||this;return Ue.marker=Xe,Ue}return Pe(De,et),De}(Yt),jn=function(){function et(){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 et.prototype.addEventListener=function(De,ke){this[De].push(ke)},et.prototype.removeEventListener=function(De,ke){var Xe=this[De].indexOf(ke);Xe>-1&&this[De].splice(Xe,1)},et}(),ai=function(){function et(De){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new qe,this._isOpen=!1,this.undoRedoManager=new pn,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 jn,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=et.instanceCounter++,this.styles=new Ye(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=De,this.targetRoot=document.body,this.width=De.clientWidth,this.height=De.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(et.prototype,"ALL_MARKER_TYPES",{get:function(){return[$e,It,ln,bt,Pt,rn,nn,at,hn,un,dt,dn,_n]},enumerable:!1,configurable:!0}),Object.defineProperty(et.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[$e,It,ln,bt,rn,nn,at]},enumerable:!1,configurable:!0}),Object.defineProperty(et.prototype,"BASIC_MARKER_TYPES",{get:function(){return[$e,It,ln,bt,nn]},enumerable:!1,configurable:!0}),Object.defineProperty(et.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(De){var ke=this;this._availableMarkerTypes.splice(0),De.forEach(function(Xe){if(typeof Xe=="string"){var ut=ke.ALL_MARKER_TYPES.find(function(Ue){return Ue.typeName===Xe});ut!==void 0&&ke._availableMarkerTypes.push(ut)}else ke._availableMarkerTypes.push(Xe)})},enumerable:!1,configurable:!0}),Object.defineProperty(et.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(et.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(et.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(et.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(et.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(De){this._zoomLevel=De,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(et.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),et.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),Ge.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},et.prototype.show=function(){var De=this;this.styles.styleSheetRoot===void 0&&Qe.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=Qe.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(ke){return ke(new Yt(De))})},et.prototype.render=function(){return Re(this,void 0,void 0,function(){var De;return Me(this,function(ke){switch(ke.label){case 0:return this.setCurrentMarker(),(De=new st).naturalSize=this.renderAtNaturalSize,De.imageType=this.renderImageType,De.imageQuality=this.renderImageQuality,De.markersOnly=this.renderMarkersOnly,De.width=this.renderWidth,De.height=this.renderHeight,[4,De.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return ke.sent(),[4,De.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,ke.sent()]}})})},et.prototype.close=function(De){var ke=this;if(De===void 0&&(De=!1),this.isOpen){var Xe=!1;De||this.eventListeners.beforeclose.forEach(function(ut){var Ue=new Yt(ke,!0);ut(Ue),Ue.defaultPrevented&&(Xe=!0)}),Xe||(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(ut){return ut(new Yt(ke))}),this.detachEvents(),this._isOpen=!1)}},et.prototype.addMarkersToToolbar=function(){for(var De,ke=[],Xe=0;Xe<arguments.length;Xe++)ke[Xe]=arguments[Xe];(De=this._availableMarkerTypes).push.apply(De,ke)},et.prototype.addRenderEventListener=function(De){this.addEventListener("render",function(ke){De(ke.dataUrl,ke.state)})},et.prototype.removeRenderEventListener=function(De){},et.prototype.addCloseEventListener=function(De){this.addEventListener("close",function(){De()})},et.prototype.removeCloseEventListener=function(De){},et.prototype.setupResizeObserver=function(){var De=this;this.settings.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){De.resize(De.target.clientWidth,De.target.clientHeight)}),this.targetObserver.observe(this.target)):this.settings.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){return De.onPopupTargetResize()}),this.targetObserver.observe(this.editorCanvas)),window.addEventListener("resize",this.setWindowHeight))},et.prototype.onPopupTargetResize=function(){var De=1*this.target.clientWidth/this.target.clientHeight,ke=this.editorCanvas.clientWidth/De>this.editorCanvas.clientHeight?this.editorCanvas.clientHeight*De:this.editorCanvas.clientWidth,Xe=ke<this.editorCanvas.clientWidth?this.editorCanvas.clientHeight:this.editorCanvas.clientWidth/De;this.resize(ke,Xe)},et.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},et.prototype.resize=function(De,ke){this._isResizing=!0;var Xe=De/this.imageWidth,ut=ke/this.imageHeight;this.imageWidth=Math.round(De),this.imageHeight=Math.round(ke),this.target instanceof HTMLImageElement&&this.editingTarget instanceof HTMLImageElement&&(this.editingTarget.src=this.target.src),this.editingTarget.width=this.imageWidth,this.editingTarget.height=this.imageHeight,this.editingTarget.style.width=this.imageWidth+"px",this.editingTarget.style.height=this.imageHeight+"px",this.markerImage.setAttribute("width",this.imageWidth.toString()),this.markerImage.setAttribute("height",this.imageHeight.toString()),this.markerImage.setAttribute("viewBox","0 0 "+this.imageWidth.toString()+" "+this.imageHeight.toString()),this.markerImageHolder.style.width=this.imageWidth+"px",this.markerImageHolder.style.height=this.imageHeight+"px",this.overlayContainer.style.width=this.imageWidth+"px",this.overlayContainer.style.height=this.imageHeight+"px",this.settings.displayMode!=="popup"?this.coverDiv.style.width=this.imageWidth.toString()+"px":(this.setTopLeft(),this.positionMarkerImage()),this.toolbar!==void 0&&this.toolbar.adjustLayout(),this.positionLogo(),this.scaleMarkers(Xe,ut),this._isResizing=!1},et.prototype.scaleMarkers=function(De,ke){var Xe,ut=this;this._currentMarker&&this._currentMarker instanceof bt?this._currentMarker.scale(De,ke):(Xe=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(Ue){Ue!==ut._currentMarker&&Ue.scale(De,ke)}),Xe!==void 0&&this.setCurrentMarker(Xe)},et.prototype.setEditingTarget=function(){this.imageWidth=Math.round(this.target.clientWidth),this.imageHeight=Math.round(this.target.clientHeight),this.target instanceof HTMLImageElement&&this.editingTarget instanceof HTMLImageElement&&(this.editingTarget.src=this.target.src),this.editingTarget.width=this.imageWidth,this.editingTarget.height=this.imageHeight,this.editingTarget.style.width=this.imageWidth+"px",this.editingTarget.style.height=this.imageHeight+"px"},et.prototype.setTopLeft=function(){var De=this.editingTarget.getBoundingClientRect(),ke=this.editorCanvas.getBoundingClientRect();this.left=De.left-ke.left,this.top=De.top-ke.top},et.prototype.initMarkerCanvas=function(){this.markerImageHolder=document.createElement("div"),this.markerImageHolder.style.setProperty("touch-action","pinch-zoom"),this.markerImage=document.createElementNS("http://www.w3.org/2000/svg","svg"),this.markerImage.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.markerImage.setAttribute("width",this.imageWidth.toString()),this.markerImage.setAttribute("height",this.imageHeight.toString()),this.markerImage.setAttribute("viewBox","0 0 "+this.imageWidth.toString()+" "+this.imageHeight.toString()),this.markerImage.style.pointerEvents="auto",this.markerImageHolder.style.position="absolute",this.markerImageHolder.style.width=this.imageWidth+"px",this.markerImageHolder.style.height=this.imageHeight+"px",this.markerImageHolder.style.transformOrigin="top left",this.positionMarkerImage(),this.markerImageHolder.appendChild(this.markerImage),this.editorCanvas.appendChild(this.markerImageHolder)},et.prototype.addDefs=function(){for(var De,ke=[],Xe=0;Xe<arguments.length;Xe++)ke[Xe]=arguments[Xe];this.defs=Te.createDefs(),this.addDefsToImage(),(De=this.defs).append.apply(De,ke)},et.prototype.addDefsToImage=function(){this.defs&&this.markerImage.insertBefore(this.defs,this.markerImage.firstChild)},et.prototype.initOverlay=function(){this.overlayContainer=document.createElement("div"),this.overlayContainer.style.position="absolute",this.overlayContainer.style.left="0px",this.overlayContainer.style.top="0px",this.overlayContainer.style.width=this.imageWidth+"px",this.overlayContainer.style.height=this.imageHeight+"px",this.overlayContainer.style.display="flex",this.markerImageHolder.appendChild(this.overlayContainer)},et.prototype.positionMarkerImage=function(){this.markerImageHolder.style.top=this.top/this.zoomLevel+"px",this.markerImageHolder.style.left=this.left/this.zoomLevel+"px"},et.prototype.attachEvents=function(){this.markerImage.addEventListener("pointerdown",this.onPointerDown),this.markerImage.addEventListener("dblclick",this.onDblClick),this.attachWindowEvents()},et.prototype.attachWindowEvents=function(){window.addEventListener("pointermove",this.onPointerMove),window.addEventListener("pointerup",this.onPointerUp),window.addEventListener("pointercancel",this.onPointerOut),window.addEventListener("pointerout",this.onPointerOut),window.addEventListener("pointerleave",this.onPointerUp),window.addEventListener("resize",this.onWindowResize),window.addEventListener("keyup",this.onKeyUp)},et.prototype.detachEvents=function(){this.markerImage.removeEventListener("pointerdown",this.onPointerDown),this.markerImage.removeEventListener("dblclick",this.onDblClick),this.detachWindowEvents()},et.prototype.detachWindowEvents=function(){window.removeEventListener("pointermove",this.onPointerMove),window.removeEventListener("pointerup",this.onPointerUp),window.removeEventListener("pointercancel",this.onPointerOut),window.removeEventListener("pointerout",this.onPointerOut),window.removeEventListener("pointerleave",this.onPointerUp),window.removeEventListener("resize",this.onWindowResize),window.removeEventListener("keyup",this.onKeyUp)},et.prototype.addLogo=function(){this.logoUI=document.createElement("div"),this.logoUI.style.display="inline-block",this.logoUI.style.margin="0px",this.logoUI.style.padding="0px",this.logoUI.style.fill="#333333";var De=document.createElement("a");De.href="https://markerjs.com/",De.target="_blank",De.innerHTML='<svg viewBox="0 0 112 96" xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" clip-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="1.414"><path fill="#e5f20d" fill-opacity=".647" d="M0 40.386h111.96V95.62H0z"/><path d="M93.61 61.452c0 .987-.328 1.831-.987 2.53-.657.7-1.52 1.048-2.591 1.048-1.481 0-2.222-.74-2.222-2.22 0-16.617-.533-29.347-1.604-38.192-1.068-8.842-2.92-13.265-5.552-13.265-4.443 0-10.94 15.509-19.497 46.52v.124c0 .987-.328 1.831-.987 2.53-.657.7-1.52 1.048-2.592 1.048-1.48 0-2.22-.74-2.22-2.22 0-3.29.165-8.392.493-15.302.33-7.732.494-13.82.494-18.262 0-6.17-.186-10.55-.556-13.142-.37-2.591-1.172-3.887-2.406-3.887-2.796 0-6.333 5.12-10.612 15.363C38.494 34.367 34.01 46.44 29.32 60.34l-1.11 3.209a5.714 5.714 0 01-1.42 2.097c-.617.578-1.295.864-2.036.864-.987 0-1.644-.081-1.974-.247-.328-.162-.533-.656-.617-1.48-.41-4.03-.74-9.418-.987-16.165-.163-1.728-.329-4.566-.494-8.515-.822-13.901-1.562-23.3-2.221-28.196-.657-4.893-.987-7.628-.987-8.205 0-.657.33-1.44.987-2.345.659-.903 1.276-1.357 1.85-1.357 1.319 0 2.387.947 3.21 2.838.411.906.863 4.526 1.357 10.859.493 6.335.905 14.19 1.233 23.568l.617 18.88c4.527-13.983 9.216-26.673 14.068-38.068C45.65 6.686 50.093.988 54.123.988c2.715 0 4.566 1.974 5.553 5.923.987 3.949 1.481 9.667 1.481 17.152 0 3.949-.081 9.625-.247 17.029l-.123 5.676c3.373-11.762 6.725-21.634 10.057-29.615 3.331-7.979 6.685-11.97 10.056-11.97 8.475 0 12.71 18.757 12.71 56.269z" fill-rule="nonzero"/></svg>',De.title="Powered by marker.js",De.style.display="grid",De.style.alignItems="center",De.style.justifyItems="center",De.style.padding="3px",De.style.width="20px",De.style.height="20px",this.logoUI.appendChild(De),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},et.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")},et.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"},et.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},et.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 De=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=De+"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 Nt(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<this.styles.settings.toolbarHeight&&(this.editingTarget.style.marginTop=this.target.offsetTop-this.styles.settings.toolbarHeight+"px"),this.editorCanvas.appendChild(this.editingTarget),this.toolbox=new Fe(this.uiDiv,this.settings.displayMode,this.uiStyleSettings,this.styles),this.toolbox.show(this._silentRenderMode||this.uiStyleSettings.hideToolbox?"hidden":"visible")},et.prototype.closeUI=function(){this.settings.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},et.prototype.removeMarker=function(De){this.markerImage.removeChild(De.container),this.markers.indexOf(De)>-1&&this.markers.splice(this.markers.indexOf(De),1),De.dispose()},et.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())},et.prototype.toolbarButtonClicked=function(De,ke){if(De==="marker"&&ke!==void 0)this.createNewMarker(ke);else if(De==="action")switch(ke){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()}},et.prototype.deleteSelectedMarker=function(){var De=this;if(this._currentMarker!==void 0){var ke=!1;if(this.eventListeners.markerbeforedelete.forEach(function(ut){var Ue=new kt(De,De._currentMarker,!0);ut(Ue),Ue.defaultPrevented&&(ke=!0)}),!ke){var Xe=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(ut){return ut(new kt(De,Xe))})}}},et.prototype.clear=function(){var De=this,ke=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(gt){var _t=new kt(De,void 0,!0);gt(_t),_t.defaultPrevented&&(ke=!0)}),!ke)){this.setCurrentMarker();for(var Xe=function(gt){var _t=ut.markers[gt];ut.setCurrentMarker(ut.markers[gt]),ut._currentMarker.dispose(),ut.markerImage.removeChild(ut._currentMarker.container),ut.markers.splice(ut.markers.indexOf(ut._currentMarker),1),ut.eventListeners.markerdelete.forEach(function(bn){return bn(new kt(De,_t))})},ut=this,Ue=this.markers.length-1;Ue>=0;Ue--)Xe(Ue);this.addUndoStep()}},Object.defineProperty(et.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),et.prototype.showNotesEditor=function(){var De;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=(De=this._currentMarker.notes)!==null&&De!==void 0?De:"",this.overlayContainer.appendChild(this.notesArea))},et.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)},et.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},et.prototype.addUndoStep=function(){var De=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var ke=this.getState(),Xe=this.undoRedoManager.getLastUndoStep();if(!Xe||Xe.width===ke.width&&Xe.height===ke.height){var ut=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(ke),ut<this.undoRedoManager.undoStepCount&&this.eventListeners.statechange.forEach(function(Ue){return Ue(new Yt(De))})}else this.undoRedoManager.replaceLastUndoStep(ke),this.eventListeners.statechange.forEach(function(Ue){return Ue(new Yt(De))})}},et.prototype.undo=function(){this.switchToSelectMode(),this.addUndoStep(),this.undoStep()},et.prototype.undoStep=function(){var De=this,ke=this.undoRedoManager.undo();ke!==void 0&&(this.restoreState(ke),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(Xe){return Xe(new Yt(De))}))},et.prototype.redo=function(){this.switchToSelectMode(),this.redoStep()},et.prototype.redoStep=function(){var De=this,ke=this.undoRedoManager.redo();ke!==void 0&&(this.restoreState(ke),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(Xe){return Xe(new Yt(De))}))},et.prototype.stepZoom=function(){var De=this.zoomSteps.indexOf(this.zoomLevel);this.zoomLevel=De<this.zoomSteps.length-1?this.zoomSteps[De+1]:this.zoomSteps[0]},et.prototype.panTo=function(De){this.contentDiv.scrollBy({left:this.prevPanPoint.x-De.x,top:this.prevPanPoint.y-De.y}),this.prevPanPoint=De},et.prototype.startRenderAndClose=function(){return Re(this,void 0,void 0,function(){var De,ke,Xe=this;return Me(this,function(ut){switch(ut.label){case 0:return[4,this.render()];case 1:return De=ut.sent(),ke=this.getState(),this.eventListeners.render.forEach(function(Ue){return Ue(new On(Xe,De,ke))}),this.close(!0),[2]}})})},et.prototype.getState=function(De){De===!0&&this.setCurrentMarker();var ke={width:this.imageWidth,height:this.imageHeight,markers:[]};return this.markers.forEach(function(Xe){return ke.markers.push(Xe.getState())}),ke},et.prototype.restoreState=function(De){var ke=this;for(this.markers.splice(0);this.markerImage.lastChild;)this.markerImage.removeChild(this.markerImage.lastChild);De.markers.forEach(function(Xe){var ut=ke._availableMarkerTypes.find(function(gt){return gt.typeName===Xe.typeName});if(ut!==void 0){var Ue=ke.addNewMarker(ut);Ue.restoreState(Xe),ke.markers.push(Ue)}}),De.width&&De.height&&(De.width!==this.imageWidth||De.height!==this.imageHeight)&&this.scaleMarkers(this.imageWidth/De.width,this.imageHeight/De.height),this.eventListeners.restorestate.forEach(function(Xe){return Xe(new Yt(ke))})},et.prototype.addNewMarker=function(De){var ke=Te.createGroup();return this.markerImage.appendChild(ke),new De(ke,this.overlayContainer,this.settings)},et.prototype.createNewMarker=function(De){var ke,Xe=this;(ke=typeof De=="string"?this._availableMarkerTypes.find(function(ut){return ut.typeName===De}):De)&&(this.setCurrentMarker(),this.addUndoStep(),this._currentMarker=this.addNewMarker(ke),this._currentMarker.onMarkerCreated=this.markerCreated,this._currentMarker.onColorChanged=this.colorChanged,this._currentMarker.onFillColorChanged=this.fillColorChanged,this._currentMarker.onStateChanged=this.markerStateChanged,this.markerImage.style.cursor="crosshair",this.toolbar.setActiveMarkerButton(ke.typeName),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this.eventListeners.markercreating.forEach(function(ut){return ut(new kt(Xe,Xe._currentMarker))}))},et.prototype.markerCreated=function(De){var ke=this;this.mode="select",this.markerImage.style.cursor="default",this.markers.push(De),this.setCurrentMarker(De),De instanceof It&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(It):this.toolbar.setSelectMode(),this.addUndoStep(),this.eventListeners.markercreate.forEach(function(Xe){return Xe(new kt(ke,ke._currentMarker))})},et.prototype.colorChanged=function(De){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultColor=De,this.settings.defaultStrokeColor=De)},et.prototype.fillColorChanged=function(De){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultFillColor=De)},et.prototype.markerStateChanged=function(De){var ke=this;this.eventListeners.markerchange.forEach(function(Xe){return Xe(new kt(ke,De))})},et.prototype.setCurrentMarker=function(De){var ke=this;this._currentMarker!==De&&this._currentMarker!==void 0&&(this._currentMarker.deselect(),this.toolbar.setCurrentMarker(),this.toolbox.setPanelButtons([]),this._isResizing||this.eventListeners.markerdeselect.forEach(function(Xe){return Xe(new kt(ke,ke._currentMarker))})),this._currentMarker=De,this._currentMarker===void 0||this._currentMarker.isSelected||(this._currentMarker.state!=="new"&&this._currentMarker.select(),this.toolbar.setCurrentMarker(this._currentMarker),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this._isResizing||this.eventListeners.markerselect.forEach(function(Xe){return Xe(new kt(ke,ke._currentMarker))}))},et.prototype.onPointerDown=function(De){if(this._isFocused||this.focus(),this.touchPoints++,this.touchPoints===1||De.pointerType!=="touch")if(this._currentMarker===void 0||this._currentMarker.state!=="new"&&this._currentMarker.state!=="creating"){if(this.mode==="select"){var ke=this.markers.find(function(Xe){return Xe.ownsTarget(De.target)});ke!==void 0?(this.setCurrentMarker(ke),this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(De.clientX,De.clientY),De.target)):(this.setCurrentMarker(),this.isDragging=!0,this.prevPanPoint={x:De.clientX,y:De.clientY})}}else this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(De.clientX,De.clientY))},et.prototype.onDblClick=function(De){if(this._isFocused||this.focus(),this.mode==="select"){var ke=this.markers.find(function(Xe){return Xe.ownsTarget(De.target)});ke!==void 0&&ke!==this._currentMarker&&this.setCurrentMarker(ke),this._currentMarker!==void 0?this._currentMarker.dblClick(this.clientToLocalCoordinates(De.clientX,De.clientY),De.target):this.setCurrentMarker()}},et.prototype.onPointerMove=function(De){this.touchPoints!==1&&De.pointerType==="touch"||(this._currentMarker!==void 0||this.isDragging)&&(this._currentMarker!==void 0&&this._currentMarker.state==="edit"||De.preventDefault(),this._currentMarker!==void 0?this._currentMarker.manipulate(this.clientToLocalCoordinates(De.clientX,De.clientY)):this.zoomLevel>1&&this.panTo({x:De.clientX,y:De.clientY}))},et.prototype.onPointerUp=function(De){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(De.clientX,De.clientY)),this.isDragging=!1,this.addUndoStep()},et.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},et.prototype.onKeyUp=function(De){this._currentMarker===void 0||this.notesArea!==void 0||De.key!=="Delete"&&De.key!=="Backspace"||this.deleteSelectedMarker()},et.prototype.clientToLocalCoordinates=function(De,ke){var Xe=this.markerImage.getBoundingClientRect();return{x:(De-Xe.left)/this.zoomLevel,y:(ke-Xe.top)/this.zoomLevel}},et.prototype.onWindowResize=function(){this.positionUI()},et.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var De=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=De+"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()},et.prototype.addLicenseKey=function(De){Ge.addKey(De)},et.prototype.addEventListener=function(De,ke){this.eventListeners.addEventListener(De,ke)},et.prototype.removeEventListener=function(De,ke){this.eventListeners.removeEventListener(De,ke)},et.prototype.renderState=function(De){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(De),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(et.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),et.prototype.focus=function(){var De=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(ke){return ke(new Yt(De))}))},et.prototype.blur=function(){var De=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(ke){return ke(new Yt(De))}))},et.instanceCounter=0,et}()},67842:function(ze){"use strict";var Ee,ue=59;ze.exports=ce;function ce(Pe){var Re="&"+Pe+";",Me;return Ee=Ee||document.createElement("i"),Ee.innerHTML=Re,Me=Ee.textContent,Me.charCodeAt(Me.length-1)===ue&&Pe!=="semi"||Me===Re?!1:Me}},12256:function(ze,Ee,ue){"use strict";var ce=ue(47854),Pe=ue(80501),Re=ue(22347),Me=ue(65207),We=ue(21127),Te=ue(67842);ze.exports=nn;var Ge={}.hasOwnProperty,st=String.fromCharCode,Qe=Function.prototype,Ye={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},yt=9,ot=10,Nt=12,Fe=32,ne=38,te=59,he=60,se=61,ge=35,Se=88,be=120,Ae=65533,Le="named",je="hexadecimal",$e="decimal",qe={};qe[je]=16,qe[$e]=10;var nt={};nt[Le]=We,nt[$e]=Re,nt[je]=Me;var dt=1,it=2,bt=3,It=4,Ht=5,ln=6,un=7,Qt={};Qt[dt]="Named character references must be terminated by a semicolon",Qt[it]="Numeric character references must be terminated by a semicolon",Qt[bt]="Named character references cannot be empty",Qt[It]="Numeric character references cannot be empty",Qt[Ht]="Named character references must be known",Qt[ln]="Numeric character references cannot be disallowed",Qt[un]="Numeric character references cannot be outside the permissible Unicode range";function nn(rn,hn){var Pt={},pn,dn;hn||(hn={});for(dn in Ye)pn=hn[dn],Pt[dn]=pn==null?Ye[dn]:pn;return(Pt.position.indent||Pt.position.start)&&(Pt.indent=Pt.position.indent||[],Pt.position=Pt.position.start),At(rn,Pt)}function At(rn,hn){var Pt=hn.additional,pn=hn.nonTerminated,dn=hn.text,_n=hn.reference,Yt=hn.warning,On=hn.textContext,kt=hn.referenceContext,jn=hn.warningContext,ai=hn.position,et=hn.indent||[],De=rn.length,ke=0,Xe=-1,ut=ai.column||1,Ue=ai.line||1,gt="",_t=[],bn,xn,Lt,Zt,Vt,fn,Pn,yn,Mt,zn,qn,Rn,Zn,Ai,Yn,Et,vi,Ri,sn;for(typeof Pt=="string"&&(Pt=Pt.charCodeAt(0)),Et=Xi(),yn=Yt?cr:Qe,ke--,De++;++ke<De;)if(Vt===ot&&(ut=et[Xe]||1),Vt=rn.charCodeAt(ke),Vt===ne){if(Pn=rn.charCodeAt(ke+1),Pn===yt||Pn===ot||Pn===Nt||Pn===Fe||Pn===ne||Pn===he||Pn!==Pn||Pt&&Pn===Pt){gt+=st(Vt),ut++;continue}for(Zn=ke+1,Rn=Zn,sn=Zn,Pn===ge?(sn=++Rn,Pn=rn.charCodeAt(sn),Pn===Se||Pn===be?(Ai=je,sn=++Rn):Ai=$e):Ai=Le,bn="",qn="",Zt="",Yn=nt[Ai],sn--;++sn<De&&(Pn=rn.charCodeAt(sn),!!Yn(Pn));)Zt+=st(Pn),Ai===Le&&Ge.call(ce,Zt)&&(bn=Zt,qn=ce[Zt]);Lt=rn.charCodeAt(sn)===te,Lt&&(sn++,xn=Ai===Le?Te(Zt):!1,xn&&(bn=Zt,qn=xn)),Ri=1+sn-Zn,!Lt&&!pn||(Zt?Ai===Le?(Lt&&!qn?yn(Ht,1):(bn!==Zt&&(sn=Rn+bn.length,Ri=1+sn-Rn,Lt=!1),Lt||(Mt=bn?dt:bt,hn.attribute?(Pn=rn.charCodeAt(sn),Pn===se?(yn(Mt,Ri),qn=null):We(Pn)?qn=null:yn(Mt,Ri)):yn(Mt,Ri))),fn=qn):(Lt||yn(it,Ri),fn=parseInt(Zt,qe[Ai]),ct(fn)?(yn(un,Ri),fn=st(Ae)):fn in Pe?(yn(ln,Ri),fn=Pe[fn]):(zn="",at(fn)&&yn(ln,Ri),fn>65535&&(fn-=65536,zn+=st(fn>>>10|55296),fn=56320|fn&1023),fn=zn+st(fn))):Ai!==Le&&yn(It,Ri)),fn?(fr(),Et=Xi(),ke=sn-1,ut+=sn-Zn+1,_t.push(fn),vi=Xi(),vi.offset++,_n&&_n.call(kt,fn,{start:Et,end:vi},rn.slice(Zn-1,sn)),Et=vi):(Zt=rn.slice(Zn-1,sn),gt+=Zt,ut+=Zt.length,ke=sn-1)}else Vt===10&&(Ue++,Xe++,ut=0),Vt===Vt?(gt+=st(Vt),ut++):fr();return _t.join("");function Xi(){return{line:Ue,column:ut,offset:ke+(ai.offset||0)}}function cr(kn,Or){var kr=Xi();kr.column+=Or,kr.offset+=Or,Yt.call(jn,Qt[kn],kr,kn)}function fr(){gt&&(_t.push(gt),dn&&dn.call(On,gt,{start:Et,end:Xi()}),gt="")}}function ct(rn){return rn>=55296&&rn<=57343||rn>1114111}function at(rn){return rn>=1&&rn<=8||rn===11||rn>=13&&rn<=31||rn>=127&&rn<=159||rn>=64976&&rn<=65007||(rn&65535)===65535||(rn&65535)===65534}},68398:function(ze,Ee,ue){var ce=typeof window!="undefined"?window:typeof WorkerGlobalScope!="undefined"&&self instanceof WorkerGlobalScope?self:{};var Pe=function(Re){var Me=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,We=0,Te={},Ge={manual:Re.Prism&&Re.Prism.manual,disableWorkerMessageHandler:Re.Prism&&Re.Prism.disableWorkerMessageHandler,util:{encode:function se(ge){return ge instanceof st?new st(ge.type,se(ge.content),ge.alias):Array.isArray(ge)?ge.map(se):ge.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(se){return Object.prototype.toString.call(se).slice(8,-1)},objId:function(se){return se.__id||Object.defineProperty(se,"__id",{value:++We}),se.__id},clone:function se(ge,Se){Se=Se||{};var be,Ae;switch(Ge.util.type(ge)){case"Object":if(Ae=Ge.util.objId(ge),Se[Ae])return Se[Ae];be={},Se[Ae]=be;for(var Le in ge)ge.hasOwnProperty(Le)&&(be[Le]=se(ge[Le],Se));return be;case"Array":return Ae=Ge.util.objId(ge),Se[Ae]?Se[Ae]:(be=[],Se[Ae]=be,ge.forEach(function(je,$e){be[$e]=se(je,Se)}),be);default:return ge}},getLanguage:function(se){for(;se;){var ge=Me.exec(se.className);if(ge)return ge[1].toLowerCase();se=se.parentElement}return"none"},setLanguage:function(se,ge){se.className=se.className.replace(RegExp(Me,"gi"),""),se.classList.add("language-"+ge)},currentScript:function(){if(typeof document=="undefined")return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(be){var se=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(be.stack)||[])[1];if(se){var ge=document.getElementsByTagName("script");for(var Se in ge)if(ge[Se].src==se)return ge[Se]}return null}},isActive:function(se,ge,Se){for(var be="no-"+ge;se;){var Ae=se.classList;if(Ae.contains(ge))return!0;if(Ae.contains(be))return!1;se=se.parentElement}return!!Se}},languages:{plain:Te,plaintext:Te,text:Te,txt:Te,extend:function(se,ge){var Se=Ge.util.clone(Ge.languages[se]);for(var be in ge)Se[be]=ge[be];return Se},insertBefore:function(se,ge,Se,be){be=be||Ge.languages;var Ae=be[se],Le={};for(var je in Ae)if(Ae.hasOwnProperty(je)){if(je==ge)for(var $e in Se)Se.hasOwnProperty($e)&&(Le[$e]=Se[$e]);Se.hasOwnProperty(je)||(Le[je]=Ae[je])}var qe=be[se];return be[se]=Le,Ge.languages.DFS(Ge.languages,function(nt,dt){dt===qe&&nt!=se&&(this[nt]=Le)}),Le},DFS:function se(ge,Se,be,Ae){Ae=Ae||{};var Le=Ge.util.objId;for(var je in ge)if(ge.hasOwnProperty(je)){Se.call(ge,je,ge[je],be||je);var $e=ge[je],qe=Ge.util.type($e);qe==="Object"&&!Ae[Le($e)]?(Ae[Le($e)]=!0,se($e,Se,null,Ae)):qe==="Array"&&!Ae[Le($e)]&&(Ae[Le($e)]=!0,se($e,Se,je,Ae))}}},plugins:{},highlightAll:function(se,ge){Ge.highlightAllUnder(document,se,ge)},highlightAllUnder:function(se,ge,Se){var be={callback:Se,container:se,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};Ge.hooks.run("before-highlightall",be),be.elements=Array.prototype.slice.apply(be.container.querySelectorAll(be.selector)),Ge.hooks.run("before-all-elements-highlight",be);for(var Ae=0,Le;Le=be.elements[Ae++];)Ge.highlightElement(Le,ge===!0,be.callback)},highlightElement:function(se,ge,Se){var be=Ge.util.getLanguage(se),Ae=Ge.languages[be];Ge.util.setLanguage(se,be);var Le=se.parentElement;Le&&Le.nodeName.toLowerCase()==="pre"&&Ge.util.setLanguage(Le,be);var je=se.textContent,$e={element:se,language:be,grammar:Ae,code:je};function qe(dt){$e.highlightedCode=dt,Ge.hooks.run("before-insert",$e),$e.element.innerHTML=$e.highlightedCode,Ge.hooks.run("after-highlight",$e),Ge.hooks.run("complete",$e),Se&&Se.call($e.element)}if(Ge.hooks.run("before-sanity-check",$e),Le=$e.element.parentElement,Le&&Le.nodeName.toLowerCase()==="pre"&&!Le.hasAttribute("tabindex")&&Le.setAttribute("tabindex","0"),!$e.code){Ge.hooks.run("complete",$e),Se&&Se.call($e.element);return}if(Ge.hooks.run("before-highlight",$e),!$e.grammar){qe(Ge.util.encode($e.code));return}if(ge&&Re.Worker){var nt=new Worker(Ge.filename);nt.onmessage=function(dt){qe(dt.data)},nt.postMessage(JSON.stringify({language:$e.language,code:$e.code,immediateClose:!0}))}else qe(Ge.highlight($e.code,$e.grammar,$e.language))},highlight:function(se,ge,Se){var be={code:se,grammar:ge,language:Se};if(Ge.hooks.run("before-tokenize",be),!be.grammar)throw new Error('The language "'+be.language+'" has no grammar.');return be.tokens=Ge.tokenize(be.code,be.grammar),Ge.hooks.run("after-tokenize",be),st.stringify(Ge.util.encode(be.tokens),be.language)},tokenize:function(se,ge){var Se=ge.rest;if(Se){for(var be in Se)ge[be]=Se[be];delete ge.rest}var Ae=new yt;return ot(Ae,Ae.head,se),Ye(se,Ae,ge,Ae.head,0),Fe(Ae)},hooks:{all:{},add:function(se,ge){var Se=Ge.hooks.all;Se[se]=Se[se]||[],Se[se].push(ge)},run:function(se,ge){var Se=Ge.hooks.all[se];if(!(!Se||!Se.length))for(var be=0,Ae;Ae=Se[be++];)Ae(ge)}},Token:st};Re.Prism=Ge;function st(se,ge,Se,be){this.type=se,this.content=ge,this.alias=Se,this.length=(be||"").length|0}st.stringify=function se(ge,Se){if(typeof ge=="string")return ge;if(Array.isArray(ge)){var be="";return ge.forEach(function(qe){be+=se(qe,Se)}),be}var Ae={type:ge.type,content:se(ge.content,Se),tag:"span",classes:["token",ge.type],attributes:{},language:Se},Le=ge.alias;Le&&(Array.isArray(Le)?Array.prototype.push.apply(Ae.classes,Le):Ae.classes.push(Le)),Ge.hooks.run("wrap",Ae);var je="";for(var $e in Ae.attributes)je+=" "+$e+'="'+(Ae.attributes[$e]||"").replace(/"/g,""")+'"';return"<"+Ae.tag+' class="'+Ae.classes.join(" ")+'"'+je+">"+Ae.content+"</"+Ae.tag+">"};function Qe(se,ge,Se,be){se.lastIndex=ge;var Ae=se.exec(Se);if(Ae&&be&&Ae[1]){var Le=Ae[1].length;Ae.index+=Le,Ae[0]=Ae[0].slice(Le)}return Ae}function Ye(se,ge,Se,be,Ae,Le){for(var je in Se)if(!(!Se.hasOwnProperty(je)||!Se[je])){var $e=Se[je];$e=Array.isArray($e)?$e:[$e];for(var qe=0;qe<$e.length;++qe){if(Le&&Le.cause==je+","+qe)return;var nt=$e[qe],dt=nt.inside,it=!!nt.lookbehind,bt=!!nt.greedy,It=nt.alias;if(bt&&!nt.pattern.global){var Ht=nt.pattern.toString().match(/[imsuy]*$/)[0];nt.pattern=RegExp(nt.pattern.source,Ht+"g")}for(var ln=nt.pattern||nt,un=be.next,Qt=Ae;un!==ge.tail&&!(Le&&Qt>=Le.reach);Qt+=un.value.length,un=un.next){var nn=un.value;if(ge.length>se.length)return;if(!(nn instanceof st)){var At=1,ct;if(bt){if(ct=Qe(ln,Qt,se,it),!ct||ct.index>=se.length)break;var Pt=ct.index,at=ct.index+ct[0].length,rn=Qt;for(rn+=un.value.length;Pt>=rn;)un=un.next,rn+=un.value.length;if(rn-=un.value.length,Qt=rn,un.value instanceof st)continue;for(var hn=un;hn!==ge.tail&&(rn<at||typeof hn.value=="string");hn=hn.next)At++,rn+=hn.value.length;At--,nn=se.slice(Qt,rn),ct.index-=Qt}else if(ct=Qe(ln,0,nn,it),!ct)continue;var Pt=ct.index,pn=ct[0],dn=nn.slice(0,Pt),_n=nn.slice(Pt+pn.length),Yt=Qt+nn.length;Le&&Yt>Le.reach&&(Le.reach=Yt);var On=un.prev;dn&&(On=ot(ge,On,dn),Qt+=dn.length),Nt(ge,On,At);var kt=new st(je,dt?Ge.tokenize(pn,dt):pn,It,pn);if(un=ot(ge,On,kt),_n&&ot(ge,un,_n),At>1){var jn={cause:je+","+qe,reach:Yt};Ye(se,ge,Se,un.prev,Qt,jn),Le&&jn.reach>Le.reach&&(Le.reach=jn.reach)}}}}}}function yt(){var se={value:null,prev:null,next:null},ge={value:null,prev:se,next:null};se.next=ge,this.head=se,this.tail=ge,this.length=0}function ot(se,ge,Se){var be=ge.next,Ae={value:Se,prev:ge,next:be};return ge.next=Ae,be.prev=Ae,se.length++,Ae}function Nt(se,ge,Se){for(var be=ge.next,Ae=0;Ae<Se&&be!==se.tail;Ae++)be=be.next;ge.next=be,be.prev=ge,se.length-=Ae}function Fe(se){for(var ge=[],Se=se.head.next;Se!==se.tail;)ge.push(Se.value),Se=Se.next;return ge}if(!Re.document)return Re.addEventListener&&(Ge.disableWorkerMessageHandler||Re.addEventListener("message",function(se){var ge=JSON.parse(se.data),Se=ge.language,be=ge.code,Ae=ge.immediateClose;Re.postMessage(Ge.highlight(be,Ge.languages[Se],Se)),Ae&&Re.close()},!1)),Ge;var ne=Ge.util.currentScript();ne&&(Ge.filename=ne.src,ne.hasAttribute("data-manual")&&(Ge.manual=!0));function te(){Ge.manual||Ge.highlightAll()}if(!Ge.manual){var he=document.readyState;he==="loading"||he==="interactive"&&ne&&ne.defer?document.addEventListener("DOMContentLoaded",te):window.requestAnimationFrame?window.requestAnimationFrame(te):window.setTimeout(te,16)}return Ge}(ce);ze.exports&&(ze.exports=Pe),typeof ue.g!="undefined"&&(ue.g.Prism=Pe)},88914:function(ze,Ee,ue){"use strict";var ce=ue(47178),Pe=ue(19095),Re=ue(1969),Me="data";ze.exports=st;var We=/^data[-\w.:]+$/i,Te=/-[a-z]/g,Ge=/[A-Z]/g;function st(Nt,Fe){var ne=ce(Fe),te=Fe,he=Re;return ne in Nt.normal?Nt.property[Nt.normal[ne]]:(ne.length>4&&ne.slice(0,4)===Me&&We.test(Fe)&&(Fe.charAt(4)==="-"?te=Qe(Fe):Fe=Ye(Fe),he=Pe),new he(te,Fe))}function Qe(Nt){var Fe=Nt.slice(5).replace(Te,ot);return Me+Fe.charAt(0).toUpperCase()+Fe.slice(1)}function Ye(Nt){var Fe=Nt.slice(4);return Te.test(Fe)?Nt:(Fe=Fe.replace(Ge,yt),Fe.charAt(0)!=="-"&&(Fe="-"+Fe),Me+Fe)}function yt(Nt){return"-"+Nt.toLowerCase()}function ot(Nt){return Nt.charAt(1).toUpperCase()}},18795:function(ze,Ee,ue){"use strict";var ce=ue(83576),Pe=ue(8179),Re=ue(59780),Me=ue(68244),We=ue(20019),Te=ue(38567);ze.exports=ce([Re,Pe,Me,We,Te])},20019:function(ze,Ee,ue){"use strict";var ce=ue(70167),Pe=ue(79318),Re=ce.booleanish,Me=ce.number,We=ce.spaceSeparated;ze.exports=Pe({transform:Te,properties:{ariaActiveDescendant:null,ariaAtomic:Re,ariaAutoComplete:null,ariaBusy:Re,ariaChecked:Re,ariaColCount:Me,ariaColIndex:Me,ariaColSpan:Me,ariaControls:We,ariaCurrent:null,ariaDescribedBy:We,ariaDetails:null,ariaDisabled:Re,ariaDropEffect:We,ariaErrorMessage:null,ariaExpanded:Re,ariaFlowTo:We,ariaGrabbed:Re,ariaHasPopup:null,ariaHidden:Re,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:We,ariaLevel:Me,ariaLive:null,ariaModal:Re,ariaMultiLine:Re,ariaMultiSelectable:Re,ariaOrientation:null,ariaOwns:We,ariaPlaceholder:null,ariaPosInSet:Me,ariaPressed:Re,ariaReadOnly:Re,ariaRelevant:null,ariaRequired:Re,ariaRoleDescription:We,ariaRowCount:Me,ariaRowIndex:Me,ariaRowSpan:Me,ariaSelected:Re,ariaSetSize:Me,ariaSort:null,ariaValueMax:Me,ariaValueMin:Me,ariaValueNow:Me,ariaValueText:null,role:null}});function Te(Ge,st){return st==="role"?st:"aria-"+st.slice(4).toLowerCase()}},38567:function(ze,Ee,ue){"use strict";var ce=ue(70167),Pe=ue(79318),Re=ue(85804),Me=ce.boolean,We=ce.overloadedBoolean,Te=ce.booleanish,Ge=ce.number,st=ce.spaceSeparated,Qe=ce.commaSeparated;ze.exports=Pe({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:Re,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Qe,acceptCharset:st,accessKey:st,action:null,allow:null,allowFullScreen:Me,allowPaymentRequest:Me,allowUserMedia:Me,alt:null,as:null,async:Me,autoCapitalize:null,autoComplete:st,autoFocus:Me,autoPlay:Me,capture:Me,charSet:null,checked:Me,cite:null,className:st,cols:Ge,colSpan:null,content:null,contentEditable:Te,controls:Me,controlsList:st,coords:Ge|Qe,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Me,defer:Me,dir:null,dirName:null,disabled:Me,download:We,draggable:Te,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Me,formTarget:null,headers:st,height:Ge,hidden:Me,high:Ge,href:null,hrefLang:null,htmlFor:st,httpEquiv:st,id:null,imageSizes:null,imageSrcSet:Qe,inputMode:null,integrity:null,is:null,isMap:Me,itemId:null,itemProp:st,itemRef:st,itemScope:Me,itemType:st,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Me,low:Ge,manifest:null,max:null,maxLength:Ge,media:null,method:null,min:null,minLength:Ge,multiple:Me,muted:Me,name:null,nonce:null,noModule:Me,noValidate:Me,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforePrint:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextMenu:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Me,optimum:Ge,pattern:null,ping:st,placeholder:null,playsInline:Me,poster:null,preload:null,readOnly:Me,referrerPolicy:null,rel:st,required:Me,reversed:Me,rows:Ge,rowSpan:Ge,sandbox:st,scope:null,scoped:Me,seamless:Me,selected:Me,shape:null,size:Ge,sizes:null,slot:null,span:Ge,spellCheck:Te,src:null,srcDoc:null,srcLang:null,srcSet:Qe,start:Ge,step:null,style:null,tabIndex:Ge,target:null,title:null,translate:null,type:null,typeMustMatch:Me,useMap:null,value:Te,width:Ge,wrap:null,align:null,aLink:null,archive:st,axis:null,background:null,bgColor:null,border:Ge,borderColor:null,bottomMargin:Ge,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Me,declare:Me,event:null,face:null,frame:null,frameBorder:null,hSpace:Ge,leftMargin:Ge,link:null,longDesc:null,lowSrc:null,marginHeight:Ge,marginWidth:Ge,noResize:Me,noHref:Me,noShade:Me,noWrap:Me,object:null,profile:null,prompt:null,rev:null,rightMargin:Ge,rules:null,scheme:null,scrolling:Te,standby:null,summary:null,text:null,topMargin:Ge,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Ge,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Me,disableRemotePlayback:Me,prefix:null,property:null,results:Ge,security:null,unselectable:null}})},85804:function(ze,Ee,ue){"use strict";var ce=ue(56432);ze.exports=Pe;function Pe(Re,Me){return ce(Re,Me.toLowerCase())}},56432:function(ze){"use strict";ze.exports=Ee;function Ee(ue,ce){return ce in ue?ue[ce]:ce}},79318:function(ze,Ee,ue){"use strict";var ce=ue(47178),Pe=ue(44347),Re=ue(19095);ze.exports=Me;function Me(We){var Te=We.space,Ge=We.mustUseProperty||[],st=We.attributes||{},Qe=We.properties,Ye=We.transform,yt={},ot={},Nt,Fe;for(Nt in Qe)Fe=new Re(Nt,Ye(st,Nt),Qe[Nt],Te),Ge.indexOf(Nt)!==-1&&(Fe.mustUseProperty=!0),yt[Nt]=Fe,ot[ce(Nt)]=Nt,ot[ce(Fe.attribute)]=Nt;return new Pe(yt,ot,Te)}},19095:function(ze,Ee,ue){"use strict";var ce=ue(1969),Pe=ue(70167);ze.exports=We,We.prototype=new ce,We.prototype.defined=!0;var Re=["boolean","booleanish","overloadedBoolean","number","commaSeparated","spaceSeparated","commaOrSpaceSeparated"],Me=Re.length;function We(Ge,st,Qe,Ye){var yt=-1,ot;for(Te(this,"space",Ye),ce.call(this,Ge,st);++yt<Me;)ot=Re[yt],Te(this,ot,(Qe&Pe[ot])===Pe[ot])}function Te(Ge,st,Qe){Qe&&(Ge[st]=Qe)}},1969:function(ze){"use strict";ze.exports=ue;var Ee=ue.prototype;Ee.space=null,Ee.attribute=null,Ee.property=null,Ee.boolean=!1,Ee.booleanish=!1,Ee.overloadedBoolean=!1,Ee.number=!1,Ee.commaSeparated=!1,Ee.spaceSeparated=!1,Ee.commaOrSpaceSeparated=!1,Ee.mustUseProperty=!1,Ee.defined=!1;function ue(ce,Pe){this.property=ce,this.attribute=Pe}},83576:function(ze,Ee,ue){"use strict";var ce=ue(97270),Pe=ue(44347);ze.exports=Re;function Re(Me){for(var We=Me.length,Te=[],Ge=[],st=-1,Qe,Ye;++st<We;)Qe=Me[st],Te.push(Qe.property),Ge.push(Qe.normal),Ye=Qe.space;return new Pe(ce.apply(null,Te),ce.apply(null,Ge),Ye)}},44347:function(ze){"use strict";ze.exports=ue;var Ee=ue.prototype;Ee.space=null,Ee.normal={},Ee.property={};function ue(ce,Pe,Re){this.property=ce,this.normal=Pe,Re&&(this.space=Re)}},70167:function(ze,Ee){"use strict";var ue=0;Ee.boolean=ce(),Ee.booleanish=ce(),Ee.overloadedBoolean=ce(),Ee.number=ce(),Ee.spaceSeparated=ce(),Ee.commaSeparated=ce(),Ee.commaOrSpaceSeparated=ce();function ce(){return Math.pow(2,++ue)}},8179:function(ze,Ee,ue){"use strict";var ce=ue(79318);ze.exports=ce({space:"xlink",transform:Pe,properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}});function Pe(Re,Me){return"xlink:"+Me.slice(5).toLowerCase()}},59780:function(ze,Ee,ue){"use strict";var ce=ue(79318);ze.exports=ce({space:"xml",transform:Pe,properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function Pe(Re,Me){return"xml:"+Me.slice(3).toLowerCase()}},68244:function(ze,Ee,ue){"use strict";var ce=ue(79318),Pe=ue(85804);ze.exports=ce({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:Pe,properties:{xmlns:null,xmlnsXLink:null}})},47178:function(ze){"use strict";ze.exports=Ee;function Ee(ue){return ue.toLowerCase()}},66042:function(ze,Ee,ue){"use strict";ue.d(Ee,{Z:function(){return bt}});var ce=ue(77321),Pe=ue(52487),Re=ue(43403),Me=ue(34280),We=ue(59301),Te=We.createContext(null),Ge=We.createContext({}),st=Te,Qe=ue(49618),Ye=ue(72308),yt=ue(92310),ot=ue.n(yt),Nt=ue(77900),Fe=ue(10228),ne=ue(26112),te=ue(74416),he=ue(8654),se=["prefixCls","className","containerRef"],ge=function(Ht){var ln=Ht.prefixCls,un=Ht.className,Qt=Ht.containerRef,nn=(0,te.Z)(Ht,se),At=We.useContext(Ge),ct=At.panel,at=(0,he.x1)(ct,Qt);return We.createElement("div",(0,Ye.Z)({className:ot()("".concat(ln,"-content"),un),role:"dialog",ref:at},(0,ne.Z)(Ht,{aria:!0}),{"aria-modal":"true"},nn))},Se=ge,be=ue(48736);function Ae(It){return typeof It=="string"&&String(Number(It))===It?((0,be.ZP)(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(It)):It}function Le(It){warning(!("wrapperClassName"in It),"'wrapperClassName' is removed. Please use 'rootClassName' instead."),warning(canUseDom()||!It.open,"Drawer with 'open' in SSR is not work since no place to createPortal. Please move to 'useEffect' instead.")}var je={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function $e(It,Ht){var ln,un,Qt,nn=It.prefixCls,At=It.open,ct=It.placement,at=It.inline,rn=It.push,hn=It.forceRender,Pt=It.autoFocus,pn=It.keyboard,dn=It.classNames,_n=It.rootClassName,Yt=It.rootStyle,On=It.zIndex,kt=It.className,jn=It.id,ai=It.style,et=It.motion,De=It.width,ke=It.height,Xe=It.children,ut=It.mask,Ue=It.maskClosable,gt=It.maskMotion,_t=It.maskClassName,bn=It.maskStyle,xn=It.afterOpenChange,Lt=It.onClose,Zt=It.onMouseEnter,Vt=It.onMouseOver,fn=It.onMouseLeave,Pn=It.onClick,yn=It.onKeyDown,Mt=It.onKeyUp,zn=It.styles,qn=It.drawerRender,Rn=We.useRef(),Zn=We.useRef(),Ai=We.useRef();We.useImperativeHandle(Ht,function(){return Rn.current});var Yn=function(Ei){var rr=Ei.keyCode,Br=Ei.shiftKey;switch(rr){case Fe.Z.TAB:{if(rr===Fe.Z.TAB){if(!Br&&document.activeElement===Ai.current){var Gr;(Gr=Zn.current)===null||Gr===void 0||Gr.focus({preventScroll:!0})}else if(Br&&document.activeElement===Zn.current){var yr;(yr=Ai.current)===null||yr===void 0||yr.focus({preventScroll:!0})}}break}case Fe.Z.ESC:{Lt&&pn&&(Ei.stopPropagation(),Lt(Ei));break}}};We.useEffect(function(){if(At&&Pt){var Yi;(Yi=Rn.current)===null||Yi===void 0||Yi.focus({preventScroll:!0})}},[At]);var Et=We.useState(!1),vi=(0,Pe.Z)(Et,2),Ri=vi[0],sn=vi[1],Xi=We.useContext(st),cr;typeof rn=="boolean"?cr=rn?{}:{distance:0}:cr=rn||{};var fr=(ln=(un=(Qt=cr)===null||Qt===void 0?void 0:Qt.distance)!==null&&un!==void 0?un:Xi==null?void 0:Xi.pushDistance)!==null&&ln!==void 0?ln:180,kn=We.useMemo(function(){return{pushDistance:fr,push:function(){sn(!0)},pull:function(){sn(!1)}}},[fr]);We.useEffect(function(){if(At){var Yi;Xi==null||(Yi=Xi.push)===null||Yi===void 0||Yi.call(Xi)}else{var Ei;Xi==null||(Ei=Xi.pull)===null||Ei===void 0||Ei.call(Xi)}},[At]),We.useEffect(function(){return function(){var Yi;Xi==null||(Yi=Xi.pull)===null||Yi===void 0||Yi.call(Xi)}},[]);var Or=ut&&We.createElement(Nt.default,(0,Ye.Z)({key:"mask"},gt,{visible:At}),function(Yi,Ei){var rr=Yi.className,Br=Yi.style;return We.createElement("div",{className:ot()("".concat(nn,"-mask"),rr,dn==null?void 0:dn.mask,_t),style:(0,ce.Z)((0,ce.Z)((0,ce.Z)({},Br),bn),zn==null?void 0:zn.mask),onClick:Ue&&At?Lt:void 0,ref:Ei})}),kr=typeof et=="function"?et(ct):et,Wi={};if(Ri&&fr)switch(ct){case"top":Wi.transform="translateY(".concat(fr,"px)");break;case"bottom":Wi.transform="translateY(".concat(-fr,"px)");break;case"left":Wi.transform="translateX(".concat(fr,"px)");break;default:Wi.transform="translateX(".concat(-fr,"px)");break}ct==="left"||ct==="right"?Wi.width=Ae(De):Wi.height=Ae(ke);var lr={onMouseEnter:Zt,onMouseOver:Vt,onMouseLeave:fn,onClick:Pn,onKeyDown:yn,onKeyUp:Mt},wr=We.createElement(Nt.default,(0,Ye.Z)({key:"panel"},kr,{visible:At,forceRender:hn,onVisibleChanged:function(Ei){xn==null||xn(Ei)},removeOnLeave:!1,leavedClassName:"".concat(nn,"-content-wrapper-hidden")}),function(Yi,Ei){var rr=Yi.className,Br=Yi.style,Gr=We.createElement(Se,(0,Ye.Z)({id:jn,containerRef:Ei,prefixCls:nn,className:ot()(kt,dn==null?void 0:dn.content),style:(0,ce.Z)((0,ce.Z)({},ai),zn==null?void 0:zn.content)},(0,ne.Z)(It,{aria:!0}),lr),Xe);return We.createElement("div",(0,Ye.Z)({className:ot()("".concat(nn,"-content-wrapper"),dn==null?void 0:dn.wrapper,rr),style:(0,ce.Z)((0,ce.Z)((0,ce.Z)({},Wi),Br),zn==null?void 0:zn.wrapper)},(0,ne.Z)(It,{data:!0})),qn?qn(Gr):Gr)}),Ie=(0,ce.Z)({},Yt);return On&&(Ie.zIndex=On),We.createElement(st.Provider,{value:kn},We.createElement("div",{className:ot()(nn,"".concat(nn,"-").concat(ct),_n,(0,Qe.Z)((0,Qe.Z)({},"".concat(nn,"-open"),At),"".concat(nn,"-inline"),at)),style:Ie,tabIndex:-1,ref:Rn,onKeyDown:Yn},Or,We.createElement("div",{tabIndex:0,ref:Zn,style:je,"aria-hidden":"true","data-sentinel":"start"}),wr,We.createElement("div",{tabIndex:0,ref:Ai,style:je,"aria-hidden":"true","data-sentinel":"end"})))}var qe=We.forwardRef($e),nt=qe,dt=function(Ht){var ln=Ht.open,un=ln===void 0?!1:ln,Qt=Ht.prefixCls,nn=Qt===void 0?"rc-drawer":Qt,At=Ht.placement,ct=At===void 0?"right":At,at=Ht.autoFocus,rn=at===void 0?!0:at,hn=Ht.keyboard,Pt=hn===void 0?!0:hn,pn=Ht.width,dn=pn===void 0?378:pn,_n=Ht.mask,Yt=_n===void 0?!0:_n,On=Ht.maskClosable,kt=On===void 0?!0:On,jn=Ht.getContainer,ai=Ht.forceRender,et=Ht.afterOpenChange,De=Ht.destroyOnClose,ke=Ht.onMouseEnter,Xe=Ht.onMouseOver,ut=Ht.onMouseLeave,Ue=Ht.onClick,gt=Ht.onKeyDown,_t=Ht.onKeyUp,bn=Ht.panelRef,xn=We.useState(!1),Lt=(0,Pe.Z)(xn,2),Zt=Lt[0],Vt=Lt[1],fn=We.useState(!1),Pn=(0,Pe.Z)(fn,2),yn=Pn[0],Mt=Pn[1];(0,Me.Z)(function(){Mt(!0)},[]);var zn=yn?un:!1,qn=We.useRef(),Rn=We.useRef();(0,Me.Z)(function(){zn&&(Rn.current=document.activeElement)},[zn]);var Zn=function(Ri){var sn;if(Vt(Ri),et==null||et(Ri),!Ri&&Rn.current&&!((sn=qn.current)!==null&&sn!==void 0&&sn.contains(Rn.current))){var Xi;(Xi=Rn.current)===null||Xi===void 0||Xi.focus({preventScroll:!0})}},Ai=We.useMemo(function(){return{panel:bn}},[bn]);if(!ai&&!Zt&&!zn&&De)return null;var Yn={onMouseEnter:ke,onMouseOver:Xe,onMouseLeave:ut,onClick:Ue,onKeyDown:gt,onKeyUp:_t},Et=(0,ce.Z)((0,ce.Z)({},Ht),{},{open:zn,prefixCls:nn,placement:ct,autoFocus:rn,keyboard:Pt,width:dn,mask:Yt,maskClosable:kt,inline:jn===!1,afterOpenChange:Zn,ref:qn},Yn);return We.createElement(Ge.Provider,{value:Ai},We.createElement(Re.Z,{open:zn||ai||Zt,autoDestroy:!1,getContainer:jn,autoLock:Yt&&(zn||Zt)},We.createElement(nt,Et)))},it=dt,bt=it},91574:function(ze,Ee,ue){"use strict";ue.d(Ee,{Z:function(){return Pn}});var ce=ue(72308),Pe=ue(77321),Re=ue(49618),Me=ue(52487),We=ue(62853),Te=ue(74416),Ge=ue(92310),st=ue.n(Ge),Qe=/margin|padding|width|height|max|min|offset/,Ye={left:!0,top:!0},yt={cssFloat:1,styleFloat:1,float:1};function ot(yn){return yn.nodeType===1?yn.ownerDocument.defaultView.getComputedStyle(yn,null):{}}function Nt(yn,Mt,zn){if(Mt=Mt.toLowerCase(),zn==="auto"){if(Mt==="height")return yn.offsetHeight;if(Mt==="width")return yn.offsetWidth}return Mt in Ye||(Ye[Mt]=Qe.test(Mt)),Ye[Mt]?parseFloat(zn)||0:zn}function Fe(yn,Mt){var zn=arguments.length,qn=ot(yn);return Mt=yt[Mt]?"cssFloat"in yn.style?"cssFloat":"styleFloat":Mt,zn===1?qn:Nt(yn,Mt,qn[Mt]||yn.style[Mt])}function ne(yn,Mt,zn){var qn=arguments.length;if(Mt=yt[Mt]?"cssFloat"in yn.style?"cssFloat":"styleFloat":Mt,qn===3)return typeof zn=="number"&&Qe.test(Mt)&&(zn="".concat(zn,"px")),yn.style[Mt]=zn,zn;for(var Rn in Mt)Mt.hasOwnProperty(Rn)&&ne(yn,Rn,Mt[Rn]);return ot(yn)}function te(yn){return yn===document.body?document.documentElement.clientWidth:yn.offsetWidth}function he(yn){return yn===document.body?window.innerHeight||document.documentElement.clientHeight:yn.offsetHeight}function se(){var yn=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),Mt=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:yn,height:Mt}}function ge(){var yn=document.documentElement.clientWidth,Mt=window.innerHeight||document.documentElement.clientHeight;return{width:yn,height:Mt}}function Se(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function be(yn){var Mt=yn.getBoundingClientRect(),zn=document.documentElement;return{left:Mt.left+(window.pageXOffset||zn.scrollLeft)-(zn.clientLeft||document.body.clientLeft||0),top:Mt.top+(window.pageYOffset||zn.scrollTop)-(zn.clientTop||document.body.clientTop||0)}}var Ae=ue(18929),Le=ue(59301),je=ue(55311),$e=ue(8224),qe=ue(10228),nt=ue(43403),dt=ue(77900),it=Le.createContext(null),bt=function(Mt){var zn=Mt.visible,qn=Mt.maskTransitionName,Rn=Mt.getContainer,Zn=Mt.prefixCls,Ai=Mt.rootClassName,Yn=Mt.icons,Et=Mt.countRender,vi=Mt.showSwitch,Ri=Mt.showProgress,sn=Mt.current,Xi=Mt.transform,cr=Mt.count,fr=Mt.scale,kn=Mt.minScale,Or=Mt.maxScale,kr=Mt.closeIcon,Wi=Mt.onActive,lr=Mt.onClose,wr=Mt.onZoomIn,Ie=Mt.onZoomOut,Yi=Mt.onRotateRight,Ei=Mt.onRotateLeft,rr=Mt.onFlipX,Br=Mt.onFlipY,Gr=Mt.onReset,yr=Mt.toolbarRender,Vi=Mt.zIndex,hi=Mt.image,Jt=(0,Le.useContext)(it),Wt=Yn.rotateLeft,jt=Yn.rotateRight,gi=Yn.zoomIn,ii=Yn.zoomOut,Pi=Yn.close,In=Yn.left,fi=Yn.right,on=Yn.flipX,Gt=Yn.flipY,li="".concat(Zn,"-operations-operation");Le.useEffect(function(){var Tn=function(er){er.keyCode===qe.Z.ESC&&lr()};return zn&&window.addEventListener("keydown",Tn),function(){window.removeEventListener("keydown",Tn)}},[zn]);var vt=function(Ki,er){Ki.preventDefault(),Ki.stopPropagation(),Wi(er)},Sn=Le.useCallback(function(Tn){var Ki=Tn.type,er=Tn.disabled,or=Tn.onClick,Cn=Tn.icon;return Le.createElement("div",{key:Ki,className:st()(li,"".concat(Zn,"-operations-operation-").concat(Ki),(0,Re.Z)({},"".concat(Zn,"-operations-operation-disabled"),!!er)),onClick:or},Cn)},[li,Zn]),ri=vi?Sn({icon:In,onClick:function(Ki){return vt(Ki,-1)},type:"prev",disabled:sn===0}):void 0,ki=vi?Sn({icon:fi,onClick:function(Ki){return vt(Ki,1)},type:"next",disabled:sn===cr-1}):void 0,zt=Sn({icon:Gt,onClick:Br,type:"flipY"}),wn=Sn({icon:on,onClick:rr,type:"flipX"}),oi=Sn({icon:Wt,onClick:Ei,type:"rotateLeft"}),qt=Sn({icon:jt,onClick:Yi,type:"rotateRight"}),Be=Sn({icon:ii,onClick:Ie,type:"zoomOut",disabled:fr<=kn}),Mi=Sn({icon:gi,onClick:wr,type:"zoomIn",disabled:fr===Or}),ui=Le.createElement("div",{className:"".concat(Zn,"-operations")},zt,wn,oi,qt,Be,Mi);return Le.createElement(dt.default,{visible:zn,motionName:qn},function(Tn){var Ki=Tn.className,er=Tn.style;return Le.createElement(nt.Z,{open:!0,getContainer:Rn!=null?Rn:document.body},Le.createElement("div",{className:st()("".concat(Zn,"-operations-wrapper"),Ki,Ai),style:(0,Pe.Z)((0,Pe.Z)({},er),{},{zIndex:Vi})},kr===null?null:Le.createElement("button",{className:"".concat(Zn,"-close"),onClick:lr},kr||Pi),vi&&Le.createElement(Le.Fragment,null,Le.createElement("div",{className:st()("".concat(Zn,"-switch-left"),(0,Re.Z)({},"".concat(Zn,"-switch-left-disabled"),sn===0)),onClick:function(Cn){return vt(Cn,-1)}},In),Le.createElement("div",{className:st()("".concat(Zn,"-switch-right"),(0,Re.Z)({},"".concat(Zn,"-switch-right-disabled"),sn===cr-1)),onClick:function(Cn){return vt(Cn,1)}},fi)),Le.createElement("div",{className:"".concat(Zn,"-footer")},Ri&&Le.createElement("div",{className:"".concat(Zn,"-progress")},Et?Et(sn+1,cr):"".concat(sn+1," / ").concat(cr)),yr?yr(ui,(0,Pe.Z)((0,Pe.Z)({icons:{prevIcon:ri,nextIcon:ki,flipYIcon:zt,flipXIcon:wn,rotateLeftIcon:oi,rotateRightIcon:qt,zoomOutIcon:Be,zoomInIcon:Mi},actions:{onActive:Wi,onFlipY:Br,onFlipX:rr,onRotateLeft:Ei,onRotateRight:Yi,onZoomOut:Ie,onZoomIn:wr,onReset:Gr,onClose:lr},transform:Xi},Jt?{current:sn,total:cr}:{}),{},{image:hi})):ui)))})},It=bt,Ht=ue(13697),ln=ue(16089),un={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1};function Qt(yn,Mt,zn,qn){var Rn=(0,Le.useRef)(null),Zn=(0,Le.useRef)([]),Ai=(0,Le.useState)(un),Yn=(0,Me.Z)(Ai,2),Et=Yn[0],vi=Yn[1],Ri=function(fr){vi(un),(0,Ht.Z)(un,Et)||qn==null||qn({transform:un,action:fr})},sn=function(fr,kn){Rn.current===null&&(Zn.current=[],Rn.current=(0,ln.Z)(function(){vi(function(Or){var kr=Or;return Zn.current.forEach(function(Wi){kr=(0,Pe.Z)((0,Pe.Z)({},kr),Wi)}),Rn.current=null,qn==null||qn({transform:kr,action:kn}),kr})})),Zn.current.push((0,Pe.Z)((0,Pe.Z)({},Et),fr))},Xi=function(fr,kn,Or,kr,Wi){var lr=yn.current,wr=lr.width,Ie=lr.height,Yi=lr.offsetWidth,Ei=lr.offsetHeight,rr=lr.offsetLeft,Br=lr.offsetTop,Gr=fr,yr=Et.scale*fr;yr>zn?(yr=zn,Gr=zn/Et.scale):yr<Mt&&(yr=Wi?yr:Mt,Gr=yr/Et.scale);var Vi=Or!=null?Or:innerWidth/2,hi=kr!=null?kr:innerHeight/2,Jt=Gr-1,Wt=Jt*wr*.5,jt=Jt*Ie*.5,gi=Jt*(Vi-Et.x-rr),ii=Jt*(hi-Et.y-Br),Pi=Et.x-(gi-Wt),In=Et.y-(ii-jt);if(fr<1&&yr===1){var fi=Yi*yr,on=Ei*yr,Gt=ge(),li=Gt.width,vt=Gt.height;fi<=li&&on<=vt&&(Pi=0,In=0)}sn({x:Pi,y:In,scale:yr},kn)};return{transform:Et,resetTransform:Ri,updateTransform:sn,dispatchZoomChange:Xi}}var nn=ue(48736);function At(yn,Mt,zn,qn){var Rn=Mt+zn,Zn=(zn-qn)/2;if(zn>qn){if(Mt>0)return(0,Re.Z)({},yn,Zn);if(Mt<0&&Rn<qn)return(0,Re.Z)({},yn,-Zn)}else if(Mt<0||Rn>qn)return(0,Re.Z)({},yn,Mt<0?Zn:-Zn);return{}}function ct(yn,Mt,zn,qn){var Rn=ge(),Zn=Rn.width,Ai=Rn.height,Yn=null;return yn<=Zn&&Mt<=Ai?Yn={x:0,y:0}:(yn>Zn||Mt>Ai)&&(Yn=(0,Pe.Z)((0,Pe.Z)({},At("x",zn,yn,Zn)),At("y",qn,Mt,Ai))),Yn}var at=1,rn=1;function hn(yn,Mt,zn,qn,Rn,Zn,Ai){var Yn=Rn.rotate,Et=Rn.scale,vi=Rn.x,Ri=Rn.y,sn=(0,Le.useState)(!1),Xi=(0,Me.Z)(sn,2),cr=Xi[0],fr=Xi[1],kn=(0,Le.useRef)({diffX:0,diffY:0,transformX:0,transformY:0}),Or=function(Ie){!Mt||Ie.button!==0||(Ie.preventDefault(),Ie.stopPropagation(),kn.current={diffX:Ie.pageX-vi,diffY:Ie.pageY-Ri,transformX:vi,transformY:Ri},fr(!0))},kr=function(Ie){zn&&cr&&Zn({x:Ie.pageX-kn.current.diffX,y:Ie.pageY-kn.current.diffY},"move")},Wi=function(){if(zn&&cr){fr(!1);var Ie=kn.current,Yi=Ie.transformX,Ei=Ie.transformY,rr=vi!==Yi&&Ri!==Ei;if(!rr)return;var Br=yn.current.offsetWidth*Et,Gr=yn.current.offsetHeight*Et,yr=yn.current.getBoundingClientRect(),Vi=yr.left,hi=yr.top,Jt=Yn%180!==0,Wt=ct(Jt?Gr:Br,Jt?Br:Gr,Vi,hi);Wt&&Zn((0,Pe.Z)({},Wt),"dragRebound")}},lr=function(Ie){if(!(!zn||Ie.deltaY==0)){var Yi=Math.abs(Ie.deltaY/100),Ei=Math.min(Yi,rn),rr=at+Ei*qn;Ie.deltaY>0&&(rr=at/rr),Ai(rr,"wheel",Ie.clientX,Ie.clientY)}};return(0,Le.useEffect)(function(){var wr,Ie,Yi,Ei;if(Mt){Yi=(0,$e.Z)(window,"mouseup",Wi,!1),Ei=(0,$e.Z)(window,"mousemove",kr,!1);try{window.top!==window.self&&(wr=(0,$e.Z)(window.top,"mouseup",Wi,!1),Ie=(0,$e.Z)(window.top,"mousemove",kr,!1))}catch(rr){(0,nn.Kp)(!1,"[rc-image] ".concat(rr))}}return function(){var rr,Br,Gr,yr;(rr=Yi)===null||rr===void 0||rr.remove(),(Br=Ei)===null||Br===void 0||Br.remove(),(Gr=wr)===null||Gr===void 0||Gr.remove(),(yr=Ie)===null||yr===void 0||yr.remove()}},[zn,cr,vi,Ri,Yn,Mt]),{isMoving:cr,onMouseDown:Or,onMouseMove:kr,onMouseUp:Wi,onWheel:lr}}function Pt(yn){return new Promise(function(Mt){if(!yn){Mt(!1);return}var zn=document.createElement("img");zn.onerror=function(){return Mt(!1)},zn.onload=function(){return Mt(!0)},zn.src=yn})}function pn(yn){var Mt=yn.src,zn=yn.isCustomPlaceholder,qn=yn.fallback,Rn=(0,Le.useState)(zn?"loading":"normal"),Zn=(0,Me.Z)(Rn,2),Ai=Zn[0],Yn=Zn[1],Et=(0,Le.useRef)(!1),vi=Ai==="error";(0,Le.useEffect)(function(){var cr=!0;return Pt(Mt).then(function(fr){!fr&&cr&&Yn("error")}),function(){cr=!1}},[Mt]),(0,Le.useEffect)(function(){zn&&!Et.current?Yn("loading"):vi&&Yn("normal")},[Mt]);var Ri=function(){Yn("normal")},sn=function(fr){Et.current=!1,Ai==="loading"&&fr!==null&&fr!==void 0&&fr.complete&&(fr.naturalWidth||fr.naturalHeight)&&(Et.current=!0,Ri())},Xi=vi&&qn?{src:qn}:{onLoad:Ri,src:Mt};return[sn,Xi,Ai]}function dn(yn,Mt){var zn=yn.x-Mt.x,qn=yn.y-Mt.y;return Math.hypot(zn,qn)}function _n(yn,Mt,zn,qn){var Rn=dn(yn,zn),Zn=dn(Mt,qn);if(Rn===0&&Zn===0)return[yn.x,yn.y];var Ai=Rn/(Rn+Zn),Yn=yn.x+Ai*(Mt.x-yn.x),Et=yn.y+Ai*(Mt.y-yn.y);return[Yn,Et]}function Yt(yn,Mt,zn,qn,Rn,Zn,Ai){var Yn=Rn.rotate,Et=Rn.scale,vi=Rn.x,Ri=Rn.y,sn=(0,Le.useState)(!1),Xi=(0,Me.Z)(sn,2),cr=Xi[0],fr=Xi[1],kn=(0,Le.useRef)({point1:{x:0,y:0},point2:{x:0,y:0},eventType:"none"}),Or=function(Ie){kn.current=(0,Pe.Z)((0,Pe.Z)({},kn.current),Ie)},kr=function(Ie){if(Mt){Ie.stopPropagation(),fr(!0);var Yi=Ie.touches,Ei=Yi===void 0?[]:Yi;Ei.length>1?Or({point1:{x:Ei[0].clientX,y:Ei[0].clientY},point2:{x:Ei[1].clientX,y:Ei[1].clientY},eventType:"touchZoom"}):Or({point1:{x:Ei[0].clientX-vi,y:Ei[0].clientY-Ri},eventType:"move"})}},Wi=function(Ie){var Yi=Ie.touches,Ei=Yi===void 0?[]:Yi,rr=kn.current,Br=rr.point1,Gr=rr.point2,yr=rr.eventType;if(Ei.length>1&&yr==="touchZoom"){var Vi={x:Ei[0].clientX,y:Ei[0].clientY},hi={x:Ei[1].clientX,y:Ei[1].clientY},Jt=_n(Br,Gr,Vi,hi),Wt=(0,Me.Z)(Jt,2),jt=Wt[0],gi=Wt[1],ii=dn(Vi,hi)/dn(Br,Gr);Ai(ii,"touchZoom",jt,gi,!0),Or({point1:Vi,point2:hi,eventType:"touchZoom"})}else yr==="move"&&(Zn({x:Ei[0].clientX-Br.x,y:Ei[0].clientY-Br.y},"move"),Or({eventType:"move"}))},lr=function(){if(zn){if(cr&&fr(!1),Or({eventType:"none"}),qn>Et)return Zn({x:0,y:0,scale:qn},"touchZoom");var Ie=yn.current.offsetWidth*Et,Yi=yn.current.offsetHeight*Et,Ei=yn.current.getBoundingClientRect(),rr=Ei.left,Br=Ei.top,Gr=Yn%180!==0,yr=ct(Gr?Yi:Ie,Gr?Ie:Yi,rr,Br);yr&&Zn((0,Pe.Z)({},yr),"dragRebound")}};return(0,Le.useEffect)(function(){var wr;return zn&&Mt&&(wr=(0,$e.Z)(window,"touchmove",function(Ie){return Ie.preventDefault()},{passive:!1})),function(){var Ie;(Ie=wr)===null||Ie===void 0||Ie.remove()}},[zn,Mt]),{isTouching:cr,onTouchStart:kr,onTouchMove:Wi,onTouchEnd:lr}}var On=["fallback","src","imgRef"],kt=["prefixCls","src","alt","imageInfo","fallback","movable","onClose","visible","icons","rootClassName","closeIcon","getContainer","current","count","countRender","scaleStep","minScale","maxScale","transitionName","maskTransitionName","imageRender","imgCommonProps","toolbarRender","onTransform","onChange"],jn=function(Mt){var zn=Mt.fallback,qn=Mt.src,Rn=Mt.imgRef,Zn=(0,Te.Z)(Mt,On),Ai=pn({src:qn,fallback:zn}),Yn=(0,Me.Z)(Ai,2),Et=Yn[0],vi=Yn[1];return Le.createElement("img",(0,ce.Z)({ref:function(sn){Rn.current=sn,Et(sn)}},Zn,vi))},ai=function(Mt){var zn=Mt.prefixCls,qn=Mt.src,Rn=Mt.alt,Zn=Mt.imageInfo,Ai=Mt.fallback,Yn=Mt.movable,Et=Yn===void 0?!0:Yn,vi=Mt.onClose,Ri=Mt.visible,sn=Mt.icons,Xi=sn===void 0?{}:sn,cr=Mt.rootClassName,fr=Mt.closeIcon,kn=Mt.getContainer,Or=Mt.current,kr=Or===void 0?0:Or,Wi=Mt.count,lr=Wi===void 0?1:Wi,wr=Mt.countRender,Ie=Mt.scaleStep,Yi=Ie===void 0?.5:Ie,Ei=Mt.minScale,rr=Ei===void 0?1:Ei,Br=Mt.maxScale,Gr=Br===void 0?50:Br,yr=Mt.transitionName,Vi=yr===void 0?"zoom":yr,hi=Mt.maskTransitionName,Jt=hi===void 0?"fade":hi,Wt=Mt.imageRender,jt=Mt.imgCommonProps,gi=Mt.toolbarRender,ii=Mt.onTransform,Pi=Mt.onChange,In=(0,Te.Z)(Mt,kt),fi=(0,Le.useRef)(),on=(0,Le.useContext)(it),Gt=on&&lr>1,li=on&&lr>=1,vt=(0,Le.useState)(!0),Sn=(0,Me.Z)(vt,2),ri=Sn[0],ki=Sn[1],zt=Qt(fi,rr,Gr,ii),wn=zt.transform,oi=zt.resetTransform,qt=zt.updateTransform,Be=zt.dispatchZoomChange,Mi=hn(fi,Et,Ri,Yi,wn,qt,Be),ui=Mi.isMoving,Tn=Mi.onMouseDown,Ki=Mi.onWheel,er=Yt(fi,Et,Ri,rr,wn,qt,Be),or=er.isTouching,Cn=er.onTouchStart,Kt=er.onTouchMove,sr=er.onTouchEnd,ro=wn.rotate,mn=wn.scale,wi=st()((0,Re.Z)({},"".concat(zn,"-moving"),ui));(0,Le.useEffect)(function(){ri||ki(!0)},[ri]);var _i=function(){oi("close")},Ji=function(){Be(at+Yi,"zoomIn")},Gi=function(){Be(at/(at+Yi),"zoomOut")},ir=function(){qt({rotate:ro+90},"rotateRight")},Fr=function(){qt({rotate:ro-90},"rotateLeft")},Cr=function(){qt({flipX:!wn.flipX},"flipX")},Ir=function(){qt({flipY:!wn.flipY},"flipY")},Ur=function(){oi("reset")},Dn=function(xo){var yo=kr+xo;!Number.isInteger(yo)||yo<0||yo>lr-1||(ki(!1),oi(xo<0?"prev":"next"),Pi==null||Pi(yo,kr))},Zr=function(xo){!Ri||!Gt||(xo.keyCode===qe.Z.LEFT?Dn(-1):xo.keyCode===qe.Z.RIGHT&&Dn(1))},Bn=function(xo){Ri&&(mn!==1?qt({x:0,y:0,scale:1},"doubleClick"):Be(at+Yi,"doubleClick",xo.clientX,xo.clientY))};(0,Le.useEffect)(function(){var gr=(0,$e.Z)(window,"keydown",Zr,!1);return function(){gr.remove()}},[Ri,Gt,kr]);var qi=Le.createElement(jn,(0,ce.Z)({},jt,{width:Mt.width,height:Mt.height,imgRef:fi,className:"".concat(zn,"-img"),alt:Rn,style:{transform:"translate3d(".concat(wn.x,"px, ").concat(wn.y,"px, 0) scale3d(").concat(wn.flipX?"-":"").concat(mn,", ").concat(wn.flipY?"-":"").concat(mn,", 1) rotate(").concat(ro,"deg)"),transitionDuration:(!ri||or)&&"0s"},fallback:Ai,src:qn,onWheel:Ki,onMouseDown:Tn,onDoubleClick:Bn,onTouchStart:Cn,onTouchMove:Kt,onTouchEnd:sr,onTouchCancel:sr})),ur=(0,Pe.Z)({url:qn,alt:Rn},Zn);return Le.createElement(Le.Fragment,null,Le.createElement(je.Z,(0,ce.Z)({transitionName:Vi,maskTransitionName:Jt,closable:!1,keyboard:!0,prefixCls:zn,onClose:vi,visible:Ri,classNames:{wrapper:wi},rootClassName:cr,getContainer:kn},In,{afterClose:_i}),Le.createElement("div",{className:"".concat(zn,"-img-wrapper")},Wt?Wt(qi,(0,Pe.Z)({transform:wn,image:ur},on?{current:kr}:{})):qi)),Le.createElement(It,{visible:Ri,transform:wn,maskTransitionName:Jt,closeIcon:fr,getContainer:kn,prefixCls:zn,rootClassName:cr,icons:Xi,countRender:wr,showSwitch:Gt,showProgress:li,current:kr,count:lr,scale:mn,minScale:rr,maxScale:Gr,toolbarRender:gi,onActive:Dn,onZoomIn:Ji,onZoomOut:Gi,onRotateRight:ir,onRotateLeft:Fr,onFlipX:Cr,onFlipY:Ir,onClose:vi,onReset:Ur,zIndex:In.zIndex!==void 0?In.zIndex+1:void 0,image:ur}))},et=ai,De=ue(80702),ke=["crossOrigin","decoding","draggable","loading","referrerPolicy","sizes","srcSet","useMap","alt"];function Xe(yn){var Mt=Le.useState({}),zn=(0,Me.Z)(Mt,2),qn=zn[0],Rn=zn[1],Zn=Le.useCallback(function(Yn,Et){return Rn(function(vi){return(0,Pe.Z)((0,Pe.Z)({},vi),{},(0,Re.Z)({},Yn,Et))}),function(){Rn(function(vi){var Ri=(0,Pe.Z)({},vi);return delete Ri[Yn],Ri})}},[]),Ai=Le.useMemo(function(){return yn?yn.map(function(Yn){if(typeof Yn=="string")return{data:{src:Yn}};var Et={};return Object.keys(Yn).forEach(function(vi){["src"].concat((0,De.Z)(ke)).includes(vi)&&(Et[vi]=Yn[vi])}),{data:Et}}):Object.keys(qn).reduce(function(Yn,Et){var vi=qn[Et],Ri=vi.canPreview,sn=vi.data;return Ri&&Yn.push({data:sn,id:Et}),Yn},[])},[yn,qn]);return[Ai,Zn,!!yn]}var ut=["visible","onVisibleChange","getContainer","current","movable","minScale","maxScale","countRender","closeIcon","onChange","onTransform","toolbarRender","imageRender"],Ue=["src"],gt=function(Mt){var zn,qn=Mt.previewPrefixCls,Rn=qn===void 0?"rc-image-preview":qn,Zn=Mt.children,Ai=Mt.icons,Yn=Ai===void 0?{}:Ai,Et=Mt.items,vi=Mt.preview,Ri=Mt.fallback,sn=(0,We.Z)(vi)==="object"?vi:{},Xi=sn.visible,cr=sn.onVisibleChange,fr=sn.getContainer,kn=sn.current,Or=sn.movable,kr=sn.minScale,Wi=sn.maxScale,lr=sn.countRender,wr=sn.closeIcon,Ie=sn.onChange,Yi=sn.onTransform,Ei=sn.toolbarRender,rr=sn.imageRender,Br=(0,Te.Z)(sn,ut),Gr=Xe(Et),yr=(0,Me.Z)(Gr,3),Vi=yr[0],hi=yr[1],Jt=yr[2],Wt=(0,Ae.Z)(0,{value:kn}),jt=(0,Me.Z)(Wt,2),gi=jt[0],ii=jt[1],Pi=(0,Le.useState)(!1),In=(0,Me.Z)(Pi,2),fi=In[0],on=In[1],Gt=((zn=Vi[gi])===null||zn===void 0?void 0:zn.data)||{},li=Gt.src,vt=(0,Te.Z)(Gt,Ue),Sn=(0,Ae.Z)(!!Xi,{value:Xi,onChange:function(or,Cn){cr==null||cr(or,Cn,gi)}}),ri=(0,Me.Z)(Sn,2),ki=ri[0],zt=ri[1],wn=(0,Le.useState)(null),oi=(0,Me.Z)(wn,2),qt=oi[0],Be=oi[1],Mi=Le.useCallback(function(er,or,Cn,Kt){var sr=Jt?Vi.findIndex(function(ro){return ro.data.src===or}):Vi.findIndex(function(ro){return ro.id===er});ii(sr<0?0:sr),zt(!0),Be({x:Cn,y:Kt}),on(!0)},[Vi,Jt]);Le.useEffect(function(){ki?fi||ii(0):on(!1)},[ki]);var ui=function(or,Cn){ii(or),Ie==null||Ie(or,Cn)},Tn=function(){zt(!1),Be(null)},Ki=Le.useMemo(function(){return{register:hi,onPreview:Mi}},[hi,Mi]);return Le.createElement(it.Provider,{value:Ki},Zn,Le.createElement(et,(0,ce.Z)({"aria-hidden":!ki,movable:Or,visible:ki,prefixCls:Rn,closeIcon:wr,onClose:Tn,mousePosition:qt,imgCommonProps:vt,src:li,fallback:Ri,icons:Yn,minScale:kr,maxScale:Wi,getContainer:fr,current:gi,count:Vi.length,countRender:lr,onTransform:Yi,toolbarRender:Ei,imageRender:rr,onChange:ui},Br)))},_t=gt,bn=0;function xn(yn,Mt){var zn=Le.useState(function(){return bn+=1,String(bn)}),qn=(0,Me.Z)(zn,1),Rn=qn[0],Zn=Le.useContext(it),Ai={data:Mt,canPreview:yn};return Le.useEffect(function(){if(Zn)return Zn.register(Rn,Ai)},[]),Le.useEffect(function(){Zn&&Zn.register(Rn,Ai)},[yn,Mt]),Rn}var Lt=["src","alt","onPreviewClose","prefixCls","previewPrefixCls","placeholder","fallback","width","height","style","preview","className","onClick","onError","wrapperClassName","wrapperStyle","rootClassName"],Zt=["src","visible","onVisibleChange","getContainer","mask","maskClassName","movable","icons","scaleStep","minScale","maxScale","imageRender","toolbarRender"],Vt=function(Mt){var zn=Mt.src,qn=Mt.alt,Rn=Mt.onPreviewClose,Zn=Mt.prefixCls,Ai=Zn===void 0?"rc-image":Zn,Yn=Mt.previewPrefixCls,Et=Yn===void 0?"".concat(Ai,"-preview"):Yn,vi=Mt.placeholder,Ri=Mt.fallback,sn=Mt.width,Xi=Mt.height,cr=Mt.style,fr=Mt.preview,kn=fr===void 0?!0:fr,Or=Mt.className,kr=Mt.onClick,Wi=Mt.onError,lr=Mt.wrapperClassName,wr=Mt.wrapperStyle,Ie=Mt.rootClassName,Yi=(0,Te.Z)(Mt,Lt),Ei=vi&&vi!==!0,rr=(0,We.Z)(kn)==="object"?kn:{},Br=rr.src,Gr=rr.visible,yr=Gr===void 0?void 0:Gr,Vi=rr.onVisibleChange,hi=Vi===void 0?Rn:Vi,Jt=rr.getContainer,Wt=Jt===void 0?void 0:Jt,jt=rr.mask,gi=rr.maskClassName,ii=rr.movable,Pi=rr.icons,In=rr.scaleStep,fi=rr.minScale,on=rr.maxScale,Gt=rr.imageRender,li=rr.toolbarRender,vt=(0,Te.Z)(rr,Zt),Sn=Br!=null?Br:zn,ri=(0,Ae.Z)(!!yr,{value:yr,onChange:hi}),ki=(0,Me.Z)(ri,2),zt=ki[0],wn=ki[1],oi=pn({src:zn,isCustomPlaceholder:Ei,fallback:Ri}),qt=(0,Me.Z)(oi,3),Be=qt[0],Mi=qt[1],ui=qt[2],Tn=(0,Le.useState)(null),Ki=(0,Me.Z)(Tn,2),er=Ki[0],or=Ki[1],Cn=(0,Le.useContext)(it),Kt=!!kn,sr=function(){wn(!1),or(null)},ro=st()(Ai,lr,Ie,(0,Re.Z)({},"".concat(Ai,"-error"),ui==="error")),mn=(0,Le.useMemo)(function(){var Gi={};return ke.forEach(function(ir){Mt[ir]!==void 0&&(Gi[ir]=Mt[ir])}),Gi},ke.map(function(Gi){return Mt[Gi]})),wi=(0,Le.useMemo)(function(){return(0,Pe.Z)((0,Pe.Z)({},mn),{},{src:Sn})},[Sn,mn]),_i=xn(Kt,wi),Ji=function(ir){var Fr=be(ir.target),Cr=Fr.left,Ir=Fr.top;Cn?Cn.onPreview(_i,Sn,Cr,Ir):(or({x:Cr,y:Ir}),wn(!0)),kr==null||kr(ir)};return Le.createElement(Le.Fragment,null,Le.createElement("div",(0,ce.Z)({},Yi,{className:ro,onClick:Kt?Ji:kr,style:(0,Pe.Z)({width:sn,height:Xi},wr)}),Le.createElement("img",(0,ce.Z)({},mn,{className:st()("".concat(Ai,"-img"),(0,Re.Z)({},"".concat(Ai,"-img-placeholder"),vi===!0),Or),style:(0,Pe.Z)({height:Xi},cr),ref:Be},Mi,{width:sn,height:Xi,onError:Wi})),ui==="loading"&&Le.createElement("div",{"aria-hidden":"true",className:"".concat(Ai,"-placeholder")},vi),jt&&Kt&&Le.createElement("div",{className:st()("".concat(Ai,"-mask"),gi),style:{display:(cr==null?void 0:cr.display)==="none"?"none":void 0}},jt)),!Cn&&Kt&&Le.createElement(et,(0,ce.Z)({"aria-hidden":!zt,visible:zt,prefixCls:Et,onClose:sr,mousePosition:er,src:Sn,alt:qn,imageInfo:{width:sn,height:Xi},fallback:Ri,getContainer:Wt,icons:Pi,movable:ii,scaleStep:In,minScale:fi,maxScale:on,rootClassName:Ie,imageRender:Gt,imgCommonProps:mn,toolbarRender:li},vt)))};Vt.PreviewGroup=_t;var fn=Vt,Pn=fn},23425:function(ze,Ee,ue){"use strict";ue.d(Ee,{Z:function(){return je}});var ce=ue(49618),Pe=ue(72308),Re=ue(62853),Me=ue(77321),We=ue(52487),Te=ue(92310),Ge=ue.n(Te),st=ue(18929),Qe=ue(10228),Ye=ue(26112),yt=ue(48736),ot=ue(59301),Nt=ue(17119),Fe=[10,20,50,100],ne=function(qe){var nt=qe.pageSizeOptions,dt=nt===void 0?Fe:nt,it=qe.locale,bt=qe.changeSize,It=qe.pageSize,Ht=qe.goButton,ln=qe.quickGo,un=qe.rootPrefixCls,Qt=qe.disabled,nn=qe.buildOptionText,At=qe.showSizeChanger,ct=qe.sizeChangerRender,at=ot.useState(""),rn=(0,We.Z)(at,2),hn=rn[0],Pt=rn[1],pn=function(){return!hn||Number.isNaN(hn)?void 0:Number(hn)},dn=typeof nn=="function"?nn:function(ke){return"".concat(ke," ").concat(it.items_per_page)},_n=function(Xe){Pt(Xe.target.value)},Yt=function(Xe){Ht||hn===""||(Pt(""),!(Xe.relatedTarget&&(Xe.relatedTarget.className.indexOf("".concat(un,"-item-link"))>=0||Xe.relatedTarget.className.indexOf("".concat(un,"-item"))>=0))&&(ln==null||ln(pn())))},On=function(Xe){hn!==""&&(Xe.keyCode===Qe.Z.ENTER||Xe.type==="click")&&(Pt(""),ln==null||ln(pn()))},kt=function(){return dt.some(function(Xe){return Xe.toString()===It.toString()})?dt:dt.concat([It]).sort(function(Xe,ut){var Ue=Number.isNaN(Number(Xe))?0:Number(Xe),gt=Number.isNaN(Number(ut))?0:Number(ut);return Ue-gt})},jn="".concat(un,"-options");if(!At&&!ln)return null;var ai=null,et=null,De=null;return At&&ct&&(ai=ct({disabled:Qt,size:It,onSizeChange:function(Xe){bt==null||bt(Number(Xe))},"aria-label":it.page_size,className:"".concat(jn,"-size-changer"),options:kt().map(function(ke){return{label:dn(ke),value:ke}})})),ln&&(Ht&&(De=typeof Ht=="boolean"?ot.createElement("button",{type:"button",onClick:On,onKeyUp:On,disabled:Qt,className:"".concat(jn,"-quick-jumper-button")},it.jump_to_confirm):ot.createElement("span",{onClick:On,onKeyUp:On},Ht)),et=ot.createElement("div",{className:"".concat(jn,"-quick-jumper")},it.jump_to,ot.createElement("input",{disabled:Qt,type:"text",value:hn,onChange:_n,onKeyUp:On,onBlur:Yt,"aria-label":it.page}),it.page,De)),ot.createElement("li",{className:jn},ai,et)},te=ne,he=function(qe){var nt=qe.rootPrefixCls,dt=qe.page,it=qe.active,bt=qe.className,It=qe.showTitle,Ht=qe.onClick,ln=qe.onKeyPress,un=qe.itemRender,Qt="".concat(nt,"-item"),nn=Ge()(Qt,"".concat(Qt,"-").concat(dt),(0,ce.Z)((0,ce.Z)({},"".concat(Qt,"-active"),it),"".concat(Qt,"-disabled"),!dt),bt),At=function(){Ht(dt)},ct=function(hn){ln(hn,Ht,dt)},at=un(dt,"page",ot.createElement("a",{rel:"nofollow"},dt));return at?ot.createElement("li",{title:It?String(dt):null,className:nn,onClick:At,onKeyDown:ct,tabIndex:0},at):null},se=he,ge=function(qe,nt,dt){return dt};function Se(){}function be($e){var qe=Number($e);return typeof qe=="number"&&!Number.isNaN(qe)&&isFinite(qe)&&Math.floor(qe)===qe}function Ae($e,qe,nt){var dt=typeof $e=="undefined"?qe:$e;return Math.floor((nt-1)/dt)+1}var Le=function(qe){var nt=qe.prefixCls,dt=nt===void 0?"rc-pagination":nt,it=qe.selectPrefixCls,bt=it===void 0?"rc-select":it,It=qe.className,Ht=qe.current,ln=qe.defaultCurrent,un=ln===void 0?1:ln,Qt=qe.total,nn=Qt===void 0?0:Qt,At=qe.pageSize,ct=qe.defaultPageSize,at=ct===void 0?10:ct,rn=qe.onChange,hn=rn===void 0?Se:rn,Pt=qe.hideOnSinglePage,pn=qe.align,dn=qe.showPrevNextJumpers,_n=dn===void 0?!0:dn,Yt=qe.showQuickJumper,On=qe.showLessItems,kt=qe.showTitle,jn=kt===void 0?!0:kt,ai=qe.onShowSizeChange,et=ai===void 0?Se:ai,De=qe.locale,ke=De===void 0?Nt.Z:De,Xe=qe.style,ut=qe.totalBoundaryShowSizeChanger,Ue=ut===void 0?50:ut,gt=qe.disabled,_t=qe.simple,bn=qe.showTotal,xn=qe.showSizeChanger,Lt=xn===void 0?nn>Ue:xn,Zt=qe.sizeChangerRender,Vt=qe.pageSizeOptions,fn=qe.itemRender,Pn=fn===void 0?ge:fn,yn=qe.jumpPrevIcon,Mt=qe.jumpNextIcon,zn=qe.prevIcon,qn=qe.nextIcon,Rn=ot.useRef(null),Zn=(0,st.Z)(10,{value:At,defaultValue:at}),Ai=(0,We.Z)(Zn,2),Yn=Ai[0],Et=Ai[1],vi=(0,st.Z)(1,{value:Ht,defaultValue:un,postState:function(ur){return Math.max(1,Math.min(ur,Ae(void 0,Yn,nn)))}}),Ri=(0,We.Z)(vi,2),sn=Ri[0],Xi=Ri[1],cr=ot.useState(sn),fr=(0,We.Z)(cr,2),kn=fr[0],Or=fr[1];(0,ot.useEffect)(function(){Or(sn)},[sn]);var kr=hn!==Se,Wi="current"in qe,lr=Math.max(1,sn-(On?3:5)),wr=Math.min(Ae(void 0,Yn,nn),sn+(On?3:5));function Ie(qi,ur){var gr=qi||ot.createElement("button",{type:"button","aria-label":ur,className:"".concat(dt,"-item-link")});return typeof qi=="function"&&(gr=ot.createElement(qi,(0,Me.Z)({},qe))),gr}function Yi(qi){var ur=qi.target.value,gr=Ae(void 0,Yn,nn),xo;return ur===""?xo=ur:Number.isNaN(Number(ur))?xo=kn:ur>=gr?xo=gr:xo=Number(ur),xo}function Ei(qi){return be(qi)&&qi!==sn&&be(nn)&&nn>0}var rr=nn>Yn?Yt:!1;function Br(qi){(qi.keyCode===Qe.Z.UP||qi.keyCode===Qe.Z.DOWN)&&qi.preventDefault()}function Gr(qi){var ur=Yi(qi);switch(ur!==kn&&Or(ur),qi.keyCode){case Qe.Z.ENTER:hi(ur);break;case Qe.Z.UP:hi(ur-1);break;case Qe.Z.DOWN:hi(ur+1);break;default:break}}function yr(qi){hi(Yi(qi))}function Vi(qi){var ur=Ae(qi,Yn,nn),gr=sn>ur&&ur!==0?ur:sn;Et(qi),Or(gr),et==null||et(sn,qi),Xi(gr),hn==null||hn(gr,qi)}function hi(qi){if(Ei(qi)&&!gt){var ur=Ae(void 0,Yn,nn),gr=qi;return qi>ur?gr=ur:qi<1&&(gr=1),gr!==kn&&Or(gr),Xi(gr),hn==null||hn(gr,Yn),gr}return sn}var Jt=sn>1,Wt=sn<Ae(void 0,Yn,nn);function jt(){Jt&&hi(sn-1)}function gi(){Wt&&hi(sn+1)}function ii(){hi(lr)}function Pi(){hi(wr)}function In(qi,ur){if(qi.key==="Enter"||qi.charCode===Qe.Z.ENTER||qi.keyCode===Qe.Z.ENTER){for(var gr=arguments.length,xo=new Array(gr>2?gr-2:0),yo=2;yo<gr;yo++)xo[yo-2]=arguments[yo];ur.apply(void 0,xo)}}function fi(qi){In(qi,jt)}function on(qi){In(qi,gi)}function Gt(qi){In(qi,ii)}function li(qi){In(qi,Pi)}function vt(qi){var ur=Pn(qi,"prev",Ie(zn,"prev page"));return ot.isValidElement(ur)?ot.cloneElement(ur,{disabled:!Jt}):ur}function Sn(qi){var ur=Pn(qi,"next",Ie(qn,"next page"));return ot.isValidElement(ur)?ot.cloneElement(ur,{disabled:!Wt}):ur}function ri(qi){(qi.type==="click"||qi.keyCode===Qe.Z.ENTER)&&hi(kn)}var ki=null,zt=(0,Ye.Z)(qe,{aria:!0,data:!0}),wn=bn&&ot.createElement("li",{className:"".concat(dt,"-total-text")},bn(nn,[nn===0?0:(sn-1)*Yn+1,sn*Yn>nn?nn:sn*Yn])),oi=null,qt=Ae(void 0,Yn,nn);if(Pt&&nn<=Yn)return null;var Be=[],Mi={rootPrefixCls:dt,onClick:hi,onKeyPress:In,showTitle:jn,itemRender:Pn,page:-1},ui=sn-1>0?sn-1:0,Tn=sn+1<qt?sn+1:qt,Ki=Yt&&Yt.goButton,er=(0,Re.Z)(_t)==="object"?_t.readOnly:!_t,or=Ki,Cn=null;_t&&(Ki&&(typeof Ki=="boolean"?or=ot.createElement("button",{type:"button",onClick:ri,onKeyUp:ri},ke.jump_to_confirm):or=ot.createElement("span",{onClick:ri,onKeyUp:ri},Ki),or=ot.createElement("li",{title:jn?"".concat(ke.jump_to).concat(sn,"/").concat(qt):null,className:"".concat(dt,"-simple-pager")},or)),Cn=ot.createElement("li",{title:jn?"".concat(sn,"/").concat(qt):null,className:"".concat(dt,"-simple-pager")},er?kn:ot.createElement("input",{type:"text","aria-label":ke.jump_to,value:kn,disabled:gt,onKeyDown:Br,onKeyUp:Gr,onChange:Gr,onBlur:yr,size:3}),ot.createElement("span",{className:"".concat(dt,"-slash")},"/"),qt));var Kt=On?1:2;if(qt<=3+Kt*2){qt||Be.push(ot.createElement(se,(0,Pe.Z)({},Mi,{key:"noPager",page:1,className:"".concat(dt,"-item-disabled")})));for(var sr=1;sr<=qt;sr+=1)Be.push(ot.createElement(se,(0,Pe.Z)({},Mi,{key:sr,page:sr,active:sn===sr})))}else{var ro=On?ke.prev_3:ke.prev_5,mn=On?ke.next_3:ke.next_5,wi=Pn(lr,"jump-prev",Ie(yn,"prev page")),_i=Pn(wr,"jump-next",Ie(Mt,"next page"));_n&&(ki=wi?ot.createElement("li",{title:jn?ro:null,key:"prev",onClick:ii,tabIndex:0,onKeyDown:Gt,className:Ge()("".concat(dt,"-jump-prev"),(0,ce.Z)({},"".concat(dt,"-jump-prev-custom-icon"),!!yn))},wi):null,oi=_i?ot.createElement("li",{title:jn?mn:null,key:"next",onClick:Pi,tabIndex:0,onKeyDown:li,className:Ge()("".concat(dt,"-jump-next"),(0,ce.Z)({},"".concat(dt,"-jump-next-custom-icon"),!!Mt))},_i):null);var Ji=Math.max(1,sn-Kt),Gi=Math.min(sn+Kt,qt);sn-1<=Kt&&(Gi=1+Kt*2),qt-sn<=Kt&&(Ji=qt-Kt*2);for(var ir=Ji;ir<=Gi;ir+=1)Be.push(ot.createElement(se,(0,Pe.Z)({},Mi,{key:ir,page:ir,active:sn===ir})));if(sn-1>=Kt*2&&sn!==3&&(Be[0]=ot.cloneElement(Be[0],{className:Ge()("".concat(dt,"-item-after-jump-prev"),Be[0].props.className)}),Be.unshift(ki)),qt-sn>=Kt*2&&sn!==qt-2){var Fr=Be[Be.length-1];Be[Be.length-1]=ot.cloneElement(Fr,{className:Ge()("".concat(dt,"-item-before-jump-next"),Fr.props.className)}),Be.push(oi)}Ji!==1&&Be.unshift(ot.createElement(se,(0,Pe.Z)({},Mi,{key:1,page:1}))),Gi!==qt&&Be.push(ot.createElement(se,(0,Pe.Z)({},Mi,{key:qt,page:qt})))}var Cr=vt(ui);if(Cr){var Ir=!Jt||!qt;Cr=ot.createElement("li",{title:jn?ke.prev_page:null,onClick:jt,tabIndex:Ir?null:0,onKeyDown:fi,className:Ge()("".concat(dt,"-prev"),(0,ce.Z)({},"".concat(dt,"-disabled"),Ir)),"aria-disabled":Ir},Cr)}var Ur=Sn(Tn);if(Ur){var Dn,Zr;_t?(Dn=!Wt,Zr=Jt?0:null):(Dn=!Wt||!qt,Zr=Dn?null:0),Ur=ot.createElement("li",{title:jn?ke.next_page:null,onClick:gi,tabIndex:Zr,onKeyDown:on,className:Ge()("".concat(dt,"-next"),(0,ce.Z)({},"".concat(dt,"-disabled"),Dn)),"aria-disabled":Dn},Ur)}var Bn=Ge()(dt,It,(0,ce.Z)((0,ce.Z)((0,ce.Z)((0,ce.Z)((0,ce.Z)({},"".concat(dt,"-start"),pn==="start"),"".concat(dt,"-center"),pn==="center"),"".concat(dt,"-end"),pn==="end"),"".concat(dt,"-simple"),_t),"".concat(dt,"-disabled"),gt));return ot.createElement("ul",(0,Pe.Z)({className:Bn,style:Xe,ref:Rn},zt),wn,Cr,_t?Cn:Be,Ur,ot.createElement(te,{locale:ke,rootPrefixCls:dt,disabled:gt,selectPrefixCls:bt,changeSize:Vi,pageSize:Yn,pageSizeOptions:Vt,quickGo:rr?hi:null,goButton:or,showSizeChanger:Lt,sizeChangerRender:Zt}))},je=Le},25930:function(ze,Ee,ue){"use strict";ue.d(Ee,{Cd:function(){return dt}});var ce=ue(72308),Pe=ue(77321),Re=ue(74416),Me=ue(59301),We=ue(92310),Te=ue.n(We),Ge={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},st=function(){var It=(0,Me.useRef)([]),Ht=(0,Me.useRef)(null);return(0,Me.useEffect)(function(){var ln=Date.now(),un=!1;It.current.forEach(function(Qt){if(Qt){un=!0;var nn=Qt.style;nn.transitionDuration=".3s, .3s, .3s, .06s",Ht.current&&ln-Ht.current<100&&(nn.transitionDuration="0s, 0s")}}),un&&(Ht.current=Date.now())}),It.current},Qe=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],Ye=function(It){var Ht=(0,Pe.Z)((0,Pe.Z)({},Ge),It),ln=Ht.className,un=Ht.percent,Qt=Ht.prefixCls,nn=Ht.strokeColor,At=Ht.strokeLinecap,ct=Ht.strokeWidth,at=Ht.style,rn=Ht.trailColor,hn=Ht.trailWidth,Pt=Ht.transition,pn=(0,Re.Z)(Ht,Qe);delete pn.gapPosition;var dn=Array.isArray(un)?un:[un],_n=Array.isArray(nn)?nn:[nn],Yt=st(),On=ct/2,kt=100-ct/2,jn="M ".concat(At==="round"?On:0,",").concat(On,`
|
|
|
L `).concat(At==="round"?kt:100,",").concat(On),ai="0 0 100 ".concat(ct),et=0;return Me.createElement("svg",(0,ce.Z)({className:Te()("".concat(Qt,"-line"),ln),viewBox:ai,preserveAspectRatio:"none",style:at},pn),Me.createElement("path",{className:"".concat(Qt,"-line-trail"),d:jn,strokeLinecap:At,stroke:rn,strokeWidth:hn||ct,fillOpacity:"0"}),dn.map(function(De,ke){var Xe=1;switch(At){case"round":Xe=1-ct/100;break;case"square":Xe=1-ct/2/100;break;default:Xe=1;break}var ut={strokeDasharray:"".concat(De*Xe,"px, 100px"),strokeDashoffset:"-".concat(et,"px"),transition:Pt||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},Ue=_n[ke]||_n[_n.length-1];return et+=De,Me.createElement("path",{key:ke,className:"".concat(Qt,"-line-path"),d:jn,strokeLinecap:At,stroke:Ue,strokeWidth:ct,fillOpacity:"0",ref:function(_t){Yt[ke]=_t},style:ut})}))},yt=Ye,ot=ue(62853),Nt=ue(52487),Fe=ue(47273),ne=0,te=(0,Fe.Z)();function he(){var bt;return te?(bt=ne,ne+=1):bt="TEST_OR_SSR",bt}var se=function(bt){var It=Me.useState(),Ht=(0,Nt.Z)(It,2),ln=Ht[0],un=Ht[1];return Me.useEffect(function(){un("rc_progress_".concat(he()))},[]),bt||ln},ge=function(It){var Ht=It.bg,ln=It.children;return Me.createElement("div",{style:{width:"100%",height:"100%",background:Ht}},ln)};function Se(bt,It){return Object.keys(bt).map(function(Ht){var ln=parseFloat(Ht),un="".concat(Math.floor(ln*It),"%");return"".concat(bt[Ht]," ").concat(un)})}var be=Me.forwardRef(function(bt,It){var Ht=bt.prefixCls,ln=bt.color,un=bt.gradientId,Qt=bt.radius,nn=bt.style,At=bt.ptg,ct=bt.strokeLinecap,at=bt.strokeWidth,rn=bt.size,hn=bt.gapDegree,Pt=ln&&(0,ot.Z)(ln)==="object",pn=Pt?"#FFF":void 0,dn=rn/2,_n=Me.createElement("circle",{className:"".concat(Ht,"-circle-path"),r:Qt,cx:dn,cy:dn,stroke:pn,strokeLinecap:ct,strokeWidth:at,opacity:At===0?0:1,style:nn,ref:It});if(!Pt)return _n;var Yt="".concat(un,"-conic"),On=hn?"".concat(180+hn/2,"deg"):"0deg",kt=Se(ln,(360-hn)/360),jn=Se(ln,1),ai="conic-gradient(from ".concat(On,", ").concat(kt.join(", "),")"),et="linear-gradient(to ".concat(hn?"bottom":"top",", ").concat(jn.join(", "),")");return Me.createElement(Me.Fragment,null,Me.createElement("mask",{id:Yt},_n),Me.createElement("foreignObject",{x:0,y:0,width:rn,height:rn,mask:"url(#".concat(Yt,")")},Me.createElement(ge,{bg:et},Me.createElement(ge,{bg:ai}))))}),Ae=be,Le=100,je=function(It,Ht,ln,un,Qt,nn,At,ct,at,rn){var hn=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,Pt=ln/100*360*((360-nn)/360),pn=nn===0?0:{bottom:0,top:180,left:90,right:-90}[At],dn=(100-un)/100*Ht;at==="round"&&un!==100&&(dn+=rn/2,dn>=Ht&&(dn=Ht-.01));var _n=Le/2;return{stroke:typeof ct=="string"?ct:void 0,strokeDasharray:"".concat(Ht,"px ").concat(It),strokeDashoffset:dn+hn,transform:"rotate(".concat(Qt+Pt+pn,"deg)"),transformOrigin:"".concat(_n,"px ").concat(_n,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},$e=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function qe(bt){var It=bt!=null?bt:[];return Array.isArray(It)?It:[It]}var nt=function(It){var Ht=(0,Pe.Z)((0,Pe.Z)({},Ge),It),ln=Ht.id,un=Ht.prefixCls,Qt=Ht.steps,nn=Ht.strokeWidth,At=Ht.trailWidth,ct=Ht.gapDegree,at=ct===void 0?0:ct,rn=Ht.gapPosition,hn=Ht.trailColor,Pt=Ht.strokeLinecap,pn=Ht.style,dn=Ht.className,_n=Ht.strokeColor,Yt=Ht.percent,On=(0,Re.Z)(Ht,$e),kt=Le/2,jn=se(ln),ai="".concat(jn,"-gradient"),et=kt-nn/2,De=Math.PI*2*et,ke=at>0?90+at/2:-90,Xe=De*((360-at)/360),ut=(0,ot.Z)(Qt)==="object"?Qt:{count:Qt,gap:2},Ue=ut.count,gt=ut.gap,_t=qe(Yt),bn=qe(_n),xn=bn.find(function(Mt){return Mt&&(0,ot.Z)(Mt)==="object"}),Lt=xn&&(0,ot.Z)(xn)==="object",Zt=Lt?"butt":Pt,Vt=je(De,Xe,0,100,ke,at,rn,hn,Zt,nn),fn=st(),Pn=function(){var zn=0;return _t.map(function(qn,Rn){var Zn=bn[Rn]||bn[bn.length-1],Ai=je(De,Xe,zn,qn,ke,at,rn,Zn,Zt,nn);return zn+=qn,Me.createElement(Ae,{key:Rn,color:Zn,ptg:qn,radius:et,prefixCls:un,gradientId:ai,style:Ai,strokeLinecap:Zt,strokeWidth:nn,gapDegree:at,ref:function(Et){fn[Rn]=Et},size:Le})}).reverse()},yn=function(){var zn=Math.round(Ue*(_t[0]/100)),qn=100/Ue,Rn=0;return new Array(Ue).fill(null).map(function(Zn,Ai){var Yn=Ai<=zn-1?bn[0]:hn,Et=Yn&&(0,ot.Z)(Yn)==="object"?"url(#".concat(ai,")"):void 0,vi=je(De,Xe,Rn,qn,ke,at,rn,Yn,"butt",nn,gt);return Rn+=(Xe-vi.strokeDashoffset+gt)*100/Xe,Me.createElement("circle",{key:Ai,className:"".concat(un,"-circle-path"),r:et,cx:kt,cy:kt,stroke:Et,strokeWidth:nn,opacity:1,style:vi,ref:function(sn){fn[Ai]=sn}})})};return Me.createElement("svg",(0,ce.Z)({className:Te()("".concat(un,"-circle"),dn),viewBox:"0 0 ".concat(Le," ").concat(Le),style:pn,id:ln,role:"presentation"},On),!Ue&&Me.createElement("circle",{className:"".concat(un,"-circle-trail"),r:et,cx:kt,cy:kt,stroke:hn,strokeLinecap:Zt,strokeWidth:At||nn,style:Vt}),Ue?yn():Pn())},dt=nt,it={Line:yt,Circle:dt}},738:function(ze,Ee,ue){"use strict";ue.d(Ee,{Z:function(){return Se}});var ce=ue(72308),Pe=ue(49618),Re=ue(52487),Me=ue(74416),We=ue(92310),Te=ue.n(We),Ge=ue(18929),st=ue(10228),Qe=ue(26112),Ye=ue(59301);function yt(be,Ae){var Le=be.disabled,je=be.prefixCls,$e=be.character,qe=be.characterRender,nt=be.index,dt=be.count,it=be.value,bt=be.allowHalf,It=be.focused,Ht=be.onHover,ln=be.onClick,un=function(Pt){Ht(Pt,nt)},Qt=function(Pt){ln(Pt,nt)},nn=function(Pt){Pt.keyCode===st.Z.ENTER&&ln(Pt,nt)},At=nt+1,ct=new Set([je]);it===0&&nt===0&&It?ct.add("".concat(je,"-focused")):bt&&it+.5>=At&&it<At?(ct.add("".concat(je,"-half")),ct.add("".concat(je,"-active")),It&&ct.add("".concat(je,"-focused"))):(At<=it?ct.add("".concat(je,"-full")):ct.add("".concat(je,"-zero")),At===it&&It&&ct.add("".concat(je,"-focused")));var at=typeof $e=="function"?$e(be):$e,rn=Ye.createElement("li",{className:Te()(Array.from(ct)),ref:Ae},Ye.createElement("div",{onClick:Le?null:Qt,onKeyDown:Le?null:nn,onMouseMove:Le?null:un,role:"radio","aria-checked":it>nt?"true":"false","aria-posinset":nt+1,"aria-setsize":dt,tabIndex:Le?-1:0},Ye.createElement("div",{className:"".concat(je,"-first")},at),Ye.createElement("div",{className:"".concat(je,"-second")},at)));return qe&&(rn=qe(rn,be)),rn}var ot=Ye.forwardRef(yt);function Nt(){var be=Ye.useRef({});function Ae(je){return be.current[je]}function Le(je){return function($e){be.current[je]=$e}}return[Ae,Le]}function Fe(be){var Ae=be.pageXOffset,Le="scrollLeft";if(typeof Ae!="number"){var je=be.document;Ae=je.documentElement[Le],typeof Ae!="number"&&(Ae=je.body[Le])}return Ae}function ne(be){var Ae,Le,je=be.ownerDocument,$e=je.body,qe=je&&je.documentElement,nt=be.getBoundingClientRect();return Ae=nt.left,Le=nt.top,Ae-=qe.clientLeft||$e.clientLeft||0,Le-=qe.clientTop||$e.clientTop||0,{left:Ae,top:Le}}function te(be){var Ae=ne(be),Le=be.ownerDocument,je=Le.defaultView||Le.parentWindow;return Ae.left+=Fe(je),Ae.left}var he=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","keyboard","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function se(be,Ae){var Le=be.prefixCls,je=Le===void 0?"rc-rate":Le,$e=be.className,qe=be.defaultValue,nt=be.value,dt=be.count,it=dt===void 0?5:dt,bt=be.allowHalf,It=bt===void 0?!1:bt,Ht=be.allowClear,ln=Ht===void 0?!0:Ht,un=be.keyboard,Qt=un===void 0?!0:un,nn=be.character,At=nn===void 0?"\u2605":nn,ct=be.characterRender,at=be.disabled,rn=be.direction,hn=rn===void 0?"ltr":rn,Pt=be.tabIndex,pn=Pt===void 0?0:Pt,dn=be.autoFocus,_n=be.onHoverChange,Yt=be.onChange,On=be.onFocus,kt=be.onBlur,jn=be.onKeyDown,ai=be.onMouseLeave,et=(0,Me.Z)(be,he),De=Nt(),ke=(0,Re.Z)(De,2),Xe=ke[0],ut=ke[1],Ue=Ye.useRef(null),gt=function(){if(!at){var lr;(lr=Ue.current)===null||lr===void 0||lr.focus()}};Ye.useImperativeHandle(Ae,function(){return{focus:gt,blur:function(){if(!at){var lr;(lr=Ue.current)===null||lr===void 0||lr.blur()}}}});var _t=(0,Ge.Z)(qe||0,{value:nt}),bn=(0,Re.Z)(_t,2),xn=bn[0],Lt=bn[1],Zt=(0,Ge.Z)(null),Vt=(0,Re.Z)(Zt,2),fn=Vt[0],Pn=Vt[1],yn=function(lr,wr){var Ie=hn==="rtl",Yi=lr+1;if(It){var Ei=Xe(lr),rr=te(Ei),Br=Ei.clientWidth;(Ie&&wr-rr>Br/2||!Ie&&wr-rr<Br/2)&&(Yi-=.5)}return Yi},Mt=function(lr){Lt(lr),Yt==null||Yt(lr)},zn=Ye.useState(!1),qn=(0,Re.Z)(zn,2),Rn=qn[0],Zn=qn[1],Ai=function(){Zn(!0),On==null||On()},Yn=function(){Zn(!1),kt==null||kt()},Et=Ye.useState(null),vi=(0,Re.Z)(Et,2),Ri=vi[0],sn=vi[1],Xi=function(lr,wr){var Ie=yn(wr,lr.pageX);Ie!==fn&&(sn(Ie),Pn(null)),_n==null||_n(Ie)},cr=function(lr){at||(sn(null),Pn(null),_n==null||_n(void 0)),lr&&(ai==null||ai(lr))},fr=function(lr,wr){var Ie=yn(wr,lr.pageX),Yi=!1;ln&&(Yi=Ie===xn),cr(),Mt(Yi?0:Ie),Pn(Yi?Ie:null)},kn=function(lr){var wr=lr.keyCode,Ie=hn==="rtl",Yi=It?.5:1;Qt&&(wr===st.Z.RIGHT&&xn<it&&!Ie?(Mt(xn+Yi),lr.preventDefault()):wr===st.Z.LEFT&&xn>0&&!Ie||wr===st.Z.RIGHT&&xn>0&&Ie?(Mt(xn-Yi),lr.preventDefault()):wr===st.Z.LEFT&&xn<it&&Ie&&(Mt(xn+Yi),lr.preventDefault())),jn==null||jn(lr)};Ye.useEffect(function(){dn&&!at&>()},[]);var Or=new Array(it).fill(0).map(function(Wi,lr){return Ye.createElement(ot,{ref:ut(lr),index:lr,count:it,disabled:at,prefixCls:"".concat(je,"-star"),allowHalf:It,value:Ri===null?xn:Ri,onClick:fr,onHover:Xi,key:Wi||lr,character:At,characterRender:ct,focused:Rn})}),kr=Te()(je,$e,(0,Pe.Z)((0,Pe.Z)({},"".concat(je,"-disabled"),at),"".concat(je,"-rtl"),hn==="rtl"));return Ye.createElement("ul",(0,ce.Z)({className:kr,onMouseLeave:cr,tabIndex:at?-1:pn,onFocus:at?null:Ai,onBlur:at?null:Yn,onKeyDown:at?null:kn,ref:Ue},(0,Qe.Z)(et,{aria:!0,data:!0,attr:!0})),Or)}var ge=Ye.forwardRef(se),Se=ge},69582:function(ze,Ee,ue){"use strict";ue.d(Ee,{ZP:function(){return Ge}});var ce=ue(52487),Pe=ue(59301),Re=ue(47273),Me=0,We=(0,Re.Z)();function Te(){var st;return We?(st=Me,Me+=1):st="TEST_OR_SSR",st}function Ge(st){var Qe=Pe.useState(),Ye=(0,ce.Z)(Qe,2),yt=Ye[0],ot=Ye[1];return Pe.useEffect(function(){ot("rc_select_".concat(Te()))},[]),st||yt}},45560:function(ze,Ee,ue){"use strict";ue.d(Ee,{Ac:function(){return zn},Xo:function(){return Rn},Wx:function(){return Ai},ZP:function(){return fi},lk:function(){return Se}});var ce=ue(72308),Pe=ue(80702),Re=ue(49618),Me=ue(77321),We=ue(52487),Te=ue(74416),Ge=ue(62853),st=ue(18929),Qe=ue(48736),Ye=ue(59301),yt=ue(92310),ot=ue.n(yt),Nt=ue(34280),Fe=ue(49658),ne=ue(8654),te=function(Gt){var li=Gt.className,vt=Gt.customizeIcon,Sn=Gt.customizeIconProps,ri=Gt.children,ki=Gt.onMouseDown,zt=Gt.onClick,wn=typeof vt=="function"?vt(Sn):vt;return Ye.createElement("span",{className:li,onMouseDown:function(qt){qt.preventDefault(),ki==null||ki(qt)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:zt,"aria-hidden":!0},wn!==void 0?wn:Ye.createElement("span",{className:ot()(li.split(/\s+/).map(function(oi){return"".concat(oi,"-icon")}))},ri))},he=te,se=function(Gt,li,vt,Sn,ri){var ki=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,zt=arguments.length>6?arguments[6]:void 0,wn=arguments.length>7?arguments[7]:void 0,oi=Ye.useMemo(function(){if((0,Ge.Z)(Sn)==="object")return Sn.clearIcon;if(ri)return ri},[Sn,ri]),qt=Ye.useMemo(function(){return!!(!ki&&Sn&&(vt.length||zt)&&!(wn==="combobox"&&zt===""))},[Sn,ki,vt.length,zt,wn]);return{allowClear:qt,clearIcon:Ye.createElement(he,{className:"".concat(Gt,"-clear"),onMouseDown:li,customizeIcon:oi},"\xD7")}},ge=Ye.createContext(null);function Se(){return Ye.useContext(ge)}function be(){var on=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,Gt=Ye.useState(!1),li=(0,We.Z)(Gt,2),vt=li[0],Sn=li[1],ri=Ye.useRef(null),ki=function(){window.clearTimeout(ri.current)};Ye.useEffect(function(){return ki},[]);var zt=function(oi,qt){ki(),ri.current=window.setTimeout(function(){Sn(oi),qt&&qt()},on)};return[vt,zt,ki]}function Ae(){var on=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,Gt=Ye.useRef(null),li=Ye.useRef(null);Ye.useEffect(function(){return function(){window.clearTimeout(li.current)}},[]);function vt(Sn){(Sn||Gt.current===null)&&(Gt.current=Sn),window.clearTimeout(li.current),li.current=window.setTimeout(function(){Gt.current=null},on)}return[function(){return Gt.current},vt]}function Le(on,Gt,li,vt){var Sn=Ye.useRef(null);Sn.current={open:Gt,triggerOpen:li,customizedTrigger:vt},Ye.useEffect(function(){function ri(ki){var zt;if(!((zt=Sn.current)!==null&&zt!==void 0&&zt.customizedTrigger)){var wn=ki.target;wn.shadowRoot&&ki.composed&&(wn=ki.composedPath()[0]||wn),Sn.current.open&&on().filter(function(oi){return oi}).every(function(oi){return!oi.contains(wn)&&oi!==wn})&&Sn.current.triggerOpen(!1)}}return window.addEventListener("mousedown",ri),function(){return window.removeEventListener("mousedown",ri)}},[])}var je=ue(10228);function $e(on){return on&&![je.Z.ESC,je.Z.SHIFT,je.Z.BACKSPACE,je.Z.TAB,je.Z.WIN_KEY,je.Z.ALT,je.Z.META,je.Z.WIN_KEY_RIGHT,je.Z.CTRL,je.Z.SEMICOLON,je.Z.EQUALS,je.Z.CAPS_LOCK,je.Z.CONTEXT_MENU,je.Z.F1,je.Z.F2,je.Z.F3,je.Z.F4,je.Z.F5,je.Z.F6,je.Z.F7,je.Z.F8,je.Z.F9,je.Z.F10,je.Z.F11,je.Z.F12].includes(on)}var qe=ue(26112),nt=ue(11780),dt=function(Gt,li){var vt,Sn=Gt.prefixCls,ri=Gt.id,ki=Gt.inputElement,zt=Gt.disabled,wn=Gt.tabIndex,oi=Gt.autoFocus,qt=Gt.autoComplete,Be=Gt.editable,Mi=Gt.activeDescendantId,ui=Gt.value,Tn=Gt.maxLength,Ki=Gt.onKeyDown,er=Gt.onMouseDown,or=Gt.onChange,Cn=Gt.onPaste,Kt=Gt.onCompositionStart,sr=Gt.onCompositionEnd,ro=Gt.onBlur,mn=Gt.open,wi=Gt.attrs,_i=ki||Ye.createElement("input",null),Ji=_i,Gi=Ji.ref,ir=Ji.props,Fr=ir.onKeyDown,Cr=ir.onChange,Ir=ir.onMouseDown,Ur=ir.onCompositionStart,Dn=ir.onCompositionEnd,Zr=ir.onBlur,Bn=ir.style;return(0,Qe.Kp)(!("maxLength"in _i.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),_i=Ye.cloneElement(_i,(0,Me.Z)((0,Me.Z)((0,Me.Z)({type:"search"},ir),{},{id:ri,ref:(0,ne.sQ)(li,Gi),disabled:zt,tabIndex:wn,autoComplete:qt||"off",autoFocus:oi,className:ot()("".concat(Sn,"-selection-search-input"),(vt=_i)===null||vt===void 0||(vt=vt.props)===null||vt===void 0?void 0:vt.className),role:"combobox","aria-expanded":mn||!1,"aria-haspopup":"listbox","aria-owns":"".concat(ri,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(ri,"_list"),"aria-activedescendant":mn?Mi:void 0},wi),{},{value:Be?ui:"",maxLength:Tn,readOnly:!Be,unselectable:Be?null:"on",style:(0,Me.Z)((0,Me.Z)({},Bn),{},{opacity:Be?null:0}),onKeyDown:function(ur){Ki(ur),Fr&&Fr(ur)},onMouseDown:function(ur){er(ur),Ir&&Ir(ur)},onChange:function(ur){or(ur),Cr&&Cr(ur)},onCompositionStart:function(ur){Kt(ur),Ur&&Ur(ur)},onCompositionEnd:function(ur){sr(ur),Dn&&Dn(ur)},onPaste:Cn,onBlur:function(ur){ro(ur),Zr&&Zr(ur)}})),_i},it=Ye.forwardRef(dt),bt=it;function It(on){return Array.isArray(on)?on:on!==void 0?[on]:[]}var Ht=typeof window!="undefined"&&window.document&&window.document.documentElement,ln=Ht;function un(on){return on!=null}function Qt(on){return!on&&on!==0}function nn(on){return["string","number"].includes((0,Ge.Z)(on))}function At(on){var Gt=void 0;return on&&(nn(on.title)?Gt=on.title.toString():nn(on.label)&&(Gt=on.label.toString())),Gt}function ct(on,Gt){ln?Ye.useLayoutEffect(on,Gt):Ye.useEffect(on,Gt)}function at(on){var Gt;return(Gt=on.key)!==null&&Gt!==void 0?Gt:on.value}var rn=function(Gt){Gt.preventDefault(),Gt.stopPropagation()},hn=function(Gt){var li=Gt.id,vt=Gt.prefixCls,Sn=Gt.values,ri=Gt.open,ki=Gt.searchValue,zt=Gt.autoClearSearchValue,wn=Gt.inputRef,oi=Gt.placeholder,qt=Gt.disabled,Be=Gt.mode,Mi=Gt.showSearch,ui=Gt.autoFocus,Tn=Gt.autoComplete,Ki=Gt.activeDescendantId,er=Gt.tabIndex,or=Gt.removeIcon,Cn=Gt.maxTagCount,Kt=Gt.maxTagTextLength,sr=Gt.maxTagPlaceholder,ro=sr===void 0?function(Fi){return"+ ".concat(Fi.length," ...")}:sr,mn=Gt.tagRender,wi=Gt.onToggleOpen,_i=Gt.onRemove,Ji=Gt.onInputChange,Gi=Gt.onInputPaste,ir=Gt.onInputKeyDown,Fr=Gt.onInputMouseDown,Cr=Gt.onInputCompositionStart,Ir=Gt.onInputCompositionEnd,Ur=Gt.onInputBlur,Dn=Ye.useRef(null),Zr=(0,Ye.useState)(0),Bn=(0,We.Z)(Zr,2),qi=Bn[0],ur=Bn[1],gr=(0,Ye.useState)(!1),xo=(0,We.Z)(gr,2),yo=xo[0],mo=xo[1],bo="".concat(vt,"-selection"),cn=ri||Be==="multiple"&&zt===!1||Be==="tags"?ki:"",Fn=Be==="tags"||Be==="multiple"&&zt===!1||Mi&&(ri||yo);ct(function(){ur(Dn.current.scrollWidth)},[cn]);var an=function(Vn,pi,mi,xi,bi){return Ye.createElement("span",{title:At(Vn),className:ot()("".concat(bo,"-item"),(0,Re.Z)({},"".concat(bo,"-item-disabled"),mi))},Ye.createElement("span",{className:"".concat(bo,"-item-content")},pi),xi&&Ye.createElement(he,{className:"".concat(bo,"-item-remove"),onMouseDown:rn,onClick:bi,customizeIcon:or},"\xD7"))},Je=function(Vn,pi,mi,xi,bi,tr){var zi=function(Ln){rn(Ln),wi(!ri)};return Ye.createElement("span",{onMouseDown:zi},mn({label:pi,value:Vn,disabled:mi,closable:xi,onClose:bi,isMaxTag:!!tr}))},ci=function(Vn){var pi=Vn.disabled,mi=Vn.label,xi=Vn.value,bi=!qt&&!pi,tr=mi;if(typeof Kt=="number"&&(typeof mi=="string"||typeof mi=="number")){var zi=String(tr);zi.length>Kt&&(tr="".concat(zi.slice(0,Kt),"..."))}var Bi=function(Oi){Oi&&Oi.stopPropagation(),_i(Vn)};return typeof mn=="function"?Je(xi,tr,pi,bi,Bi):an(Vn,tr,pi,bi,Bi)},Qn=function(Vn){if(!Sn.length)return null;var pi=typeof ro=="function"?ro(Vn):ro;return typeof mn=="function"?Je(void 0,pi,!1,!1,void 0,!0):an({title:pi},pi,!1)},yi=Ye.createElement("div",{className:"".concat(bo,"-search"),style:{width:qi},onFocus:function(){mo(!0)},onBlur:function(){mo(!1)}},Ye.createElement(bt,{ref:wn,open:ri,prefixCls:vt,id:li,inputElement:null,disabled:qt,autoFocus:ui,autoComplete:Tn,editable:Fn,activeDescendantId:Ki,value:cn,onKeyDown:ir,onMouseDown:Fr,onChange:Ji,onPaste:Gi,onCompositionStart:Cr,onCompositionEnd:Ir,onBlur:Ur,tabIndex:er,attrs:(0,qe.Z)(Gt,!0)}),Ye.createElement("span",{ref:Dn,className:"".concat(bo,"-search-mirror"),"aria-hidden":!0},cn,"\xA0")),Ci=Ye.createElement(nt.Z,{prefixCls:"".concat(bo,"-overflow"),data:Sn,renderItem:ci,renderRest:Qn,suffix:yi,itemKey:at,maxCount:Cn});return Ye.createElement("span",{className:"".concat(bo,"-wrap")},Ci,!Sn.length&&!cn&&Ye.createElement("span",{className:"".concat(bo,"-placeholder")},oi))},Pt=hn,pn=function(Gt){var li=Gt.inputElement,vt=Gt.prefixCls,Sn=Gt.id,ri=Gt.inputRef,ki=Gt.disabled,zt=Gt.autoFocus,wn=Gt.autoComplete,oi=Gt.activeDescendantId,qt=Gt.mode,Be=Gt.open,Mi=Gt.values,ui=Gt.placeholder,Tn=Gt.tabIndex,Ki=Gt.showSearch,er=Gt.searchValue,or=Gt.activeValue,Cn=Gt.maxLength,Kt=Gt.onInputKeyDown,sr=Gt.onInputMouseDown,ro=Gt.onInputChange,mn=Gt.onInputPaste,wi=Gt.onInputCompositionStart,_i=Gt.onInputCompositionEnd,Ji=Gt.onInputBlur,Gi=Gt.title,ir=Ye.useState(!1),Fr=(0,We.Z)(ir,2),Cr=Fr[0],Ir=Fr[1],Ur=qt==="combobox",Dn=Ur||Ki,Zr=Mi[0],Bn=er||"";Ur&&or&&!Cr&&(Bn=or),Ye.useEffect(function(){Ur&&Ir(!1)},[Ur,or]);var qi=qt!=="combobox"&&!Be&&!Ki?!1:!!Bn,ur=Gi===void 0?At(Zr):Gi,gr=Ye.useMemo(function(){return Zr?null:Ye.createElement("span",{className:"".concat(vt,"-selection-placeholder"),style:qi?{visibility:"hidden"}:void 0},ui)},[Zr,qi,ui,vt]);return Ye.createElement("span",{className:"".concat(vt,"-selection-wrap")},Ye.createElement("span",{className:"".concat(vt,"-selection-search")},Ye.createElement(bt,{ref:ri,prefixCls:vt,id:Sn,open:Be,inputElement:li,disabled:ki,autoFocus:zt,autoComplete:wn,editable:Dn,activeDescendantId:oi,value:Bn,onKeyDown:Kt,onMouseDown:sr,onChange:function(yo){Ir(!0),ro(yo)},onPaste:mn,onCompositionStart:wi,onCompositionEnd:_i,onBlur:Ji,tabIndex:Tn,attrs:(0,qe.Z)(Gt,!0),maxLength:Ur?Cn:void 0})),!Ur&&Zr?Ye.createElement("span",{className:"".concat(vt,"-selection-item"),title:ur,style:qi?{visibility:"hidden"}:void 0},Zr.label):null,gr)},dn=pn,_n=function(Gt,li){var vt=(0,Ye.useRef)(null),Sn=(0,Ye.useRef)(!1),ri=Gt.prefixCls,ki=Gt.open,zt=Gt.mode,wn=Gt.showSearch,oi=Gt.tokenWithEnter,qt=Gt.disabled,Be=Gt.prefix,Mi=Gt.autoClearSearchValue,ui=Gt.onSearch,Tn=Gt.onSearchSubmit,Ki=Gt.onToggleOpen,er=Gt.onInputKeyDown,or=Gt.onInputBlur,Cn=Gt.domRef;Ye.useImperativeHandle(li,function(){return{focus:function(ur){vt.current.focus(ur)},blur:function(){vt.current.blur()}}});var Kt=Ae(0),sr=(0,We.Z)(Kt,2),ro=sr[0],mn=sr[1],wi=function(ur){var gr=ur.which,xo=vt.current instanceof HTMLTextAreaElement;!xo&&ki&&(gr===je.Z.UP||gr===je.Z.DOWN)&&ur.preventDefault(),er&&er(ur),gr===je.Z.ENTER&&zt==="tags"&&!Sn.current&&!ki&&(Tn==null||Tn(ur.target.value)),!(xo&&!ki&&~[je.Z.UP,je.Z.DOWN,je.Z.LEFT,je.Z.RIGHT].indexOf(gr))&&$e(gr)&&Ki(!0)},_i=function(){mn(!0)},Ji=(0,Ye.useRef)(null),Gi=function(ur){ui(ur,!0,Sn.current)!==!1&&Ki(!0)},ir=function(){Sn.current=!0},Fr=function(ur){Sn.current=!1,zt!=="combobox"&&Gi(ur.target.value)},Cr=function(ur){var gr=ur.target.value;if(oi&&Ji.current&&/[\r\n]/.test(Ji.current)){var xo=Ji.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");gr=gr.replace(xo,Ji.current)}Ji.current=null,Gi(gr)},Ir=function(ur){var gr=ur.clipboardData,xo=gr==null?void 0:gr.getData("text");Ji.current=xo||""},Ur=function(ur){var gr=ur.target;if(gr!==vt.current){var xo=document.body.style.msTouchAction!==void 0;xo?setTimeout(function(){vt.current.focus()}):vt.current.focus()}},Dn=function(ur){var gr=ro();ur.target!==vt.current&&!gr&&!(zt==="combobox"&&qt)&&ur.preventDefault(),(zt!=="combobox"&&(!wn||!gr)||!ki)&&(ki&&Mi!==!1&&ui("",!0,!1),Ki())},Zr={inputRef:vt,onInputKeyDown:wi,onInputMouseDown:_i,onInputChange:Cr,onInputPaste:Ir,onInputCompositionStart:ir,onInputCompositionEnd:Fr,onInputBlur:or},Bn=zt==="multiple"||zt==="tags"?Ye.createElement(Pt,(0,ce.Z)({},Gt,Zr)):Ye.createElement(dn,(0,ce.Z)({},Gt,Zr));return Ye.createElement("div",{ref:Cn,className:"".concat(ri,"-selector"),onClick:Ur,onMouseDown:Dn},Be&&Ye.createElement("div",{className:"".concat(ri,"-prefix")},Be),Bn)},Yt=Ye.forwardRef(_n),On=Yt,kt=ue(65352),jn=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],ai=function(Gt){var li=Gt===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:li,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:li,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:li,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:li,adjustY:1},htmlRegion:"scroll"}}},et=function(Gt,li){var vt=Gt.prefixCls,Sn=Gt.disabled,ri=Gt.visible,ki=Gt.children,zt=Gt.popupElement,wn=Gt.animation,oi=Gt.transitionName,qt=Gt.dropdownStyle,Be=Gt.dropdownClassName,Mi=Gt.direction,ui=Mi===void 0?"ltr":Mi,Tn=Gt.placement,Ki=Gt.builtinPlacements,er=Gt.dropdownMatchSelectWidth,or=Gt.dropdownRender,Cn=Gt.dropdownAlign,Kt=Gt.getPopupContainer,sr=Gt.empty,ro=Gt.getTriggerDOMNode,mn=Gt.onPopupVisibleChange,wi=Gt.onPopupMouseEnter,_i=(0,Te.Z)(Gt,jn),Ji="".concat(vt,"-dropdown"),Gi=zt;or&&(Gi=or(zt));var ir=Ye.useMemo(function(){return Ki||ai(er)},[Ki,er]),Fr=wn?"".concat(Ji,"-").concat(wn):oi,Cr=typeof er=="number",Ir=Ye.useMemo(function(){return Cr?null:er===!1?"minWidth":"width"},[er,Cr]),Ur=qt;Cr&&(Ur=(0,Me.Z)((0,Me.Z)({},Ur),{},{width:er}));var Dn=Ye.useRef(null);return Ye.useImperativeHandle(li,function(){return{getPopupElement:function(){var Bn;return(Bn=Dn.current)===null||Bn===void 0?void 0:Bn.popupElement}}}),Ye.createElement(kt.Z,(0,ce.Z)({},_i,{showAction:mn?["click"]:[],hideAction:mn?["click"]:[],popupPlacement:Tn||(ui==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:ir,prefixCls:Ji,popupTransitionName:Fr,popup:Ye.createElement("div",{onMouseEnter:wi},Gi),ref:Dn,stretch:Ir,popupAlign:Cn,popupVisible:ri,getPopupContainer:Kt,popupClassName:ot()(Be,(0,Re.Z)({},"".concat(Ji,"-empty"),sr)),popupStyle:Ur,getTriggerDOMNode:ro,onPopupVisibleChange:mn}),ki)},De=Ye.forwardRef(et),ke=De,Xe=ue(68413);function ut(on,Gt){var li=on.key,vt;return"value"in on&&(vt=on.value),li!=null?li:vt!==void 0?vt:"rc-index-key-".concat(Gt)}function Ue(on){return typeof on!="undefined"&&!Number.isNaN(on)}function gt(on,Gt){var li=on||{},vt=li.label,Sn=li.value,ri=li.options,ki=li.groupLabel,zt=vt||(Gt?"children":"label");return{label:zt,value:Sn||"value",options:ri||"options",groupLabel:ki||zt}}function _t(on){var Gt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},li=Gt.fieldNames,vt=Gt.childrenAsData,Sn=[],ri=gt(li,!1),ki=ri.label,zt=ri.value,wn=ri.options,oi=ri.groupLabel;function qt(Be,Mi){Array.isArray(Be)&&Be.forEach(function(ui){if(Mi||!(wn in ui)){var Tn=ui[zt];Sn.push({key:ut(ui,Sn.length),groupOption:Mi,data:ui,label:ui[ki],value:Tn})}else{var Ki=ui[oi];Ki===void 0&&vt&&(Ki=ui.label),Sn.push({key:ut(ui,Sn.length),group:!0,data:ui,label:Ki}),qt(ui[wn],!0)}})}return qt(on,!1),Sn}function bn(on){var Gt=(0,Me.Z)({},on);return"props"in Gt||Object.defineProperty(Gt,"props",{get:function(){return(0,Qe.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),Gt}}),Gt}var xn=function(Gt,li,vt){if(!li||!li.length)return null;var Sn=!1,ri=function zt(wn,oi){var qt=(0,Xe.Z)(oi),Be=qt[0],Mi=qt.slice(1);if(!Be)return[wn];var ui=wn.split(Be);return Sn=Sn||ui.length>1,ui.reduce(function(Tn,Ki){return[].concat((0,Pe.Z)(Tn),(0,Pe.Z)(zt(Ki,Mi)))},[]).filter(Boolean)},ki=ri(Gt,li);return Sn?typeof vt!="undefined"?ki.slice(0,vt):ki:null},Lt=Ye.createContext(null),Zt=Lt;function Vt(on){var Gt=on.visible,li=on.values;if(!Gt)return null;var vt=50;return Ye.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(li.slice(0,vt).map(function(Sn){var ri=Sn.label,ki=Sn.value;return["number","string"].includes((0,Ge.Z)(ri))?ri:ki}).join(", ")),li.length>vt?", ...":null)}var fn=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","prefix","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],Pn=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],yn=function(Gt){return Gt==="tags"||Gt==="multiple"},Mt=Ye.forwardRef(function(on,Gt){var li,vt=on.id,Sn=on.prefixCls,ri=on.className,ki=on.showSearch,zt=on.tagRender,wn=on.direction,oi=on.omitDomProps,qt=on.displayValues,Be=on.onDisplayValuesChange,Mi=on.emptyOptions,ui=on.notFoundContent,Tn=ui===void 0?"Not Found":ui,Ki=on.onClear,er=on.mode,or=on.disabled,Cn=on.loading,Kt=on.getInputElement,sr=on.getRawInputElement,ro=on.open,mn=on.defaultOpen,wi=on.onDropdownVisibleChange,_i=on.activeValue,Ji=on.onActiveValueChange,Gi=on.activeDescendantId,ir=on.searchValue,Fr=on.autoClearSearchValue,Cr=on.onSearch,Ir=on.onSearchSplit,Ur=on.tokenSeparators,Dn=on.allowClear,Zr=on.prefix,Bn=on.suffixIcon,qi=on.clearIcon,ur=on.OptionList,gr=on.animation,xo=on.transitionName,yo=on.dropdownStyle,mo=on.dropdownClassName,bo=on.dropdownMatchSelectWidth,cn=on.dropdownRender,Fn=on.dropdownAlign,an=on.placement,Je=on.builtinPlacements,ci=on.getPopupContainer,Qn=on.showAction,yi=Qn===void 0?[]:Qn,Ci=on.onFocus,Fi=on.onBlur,Vn=on.onKeyUp,pi=on.onKeyDown,mi=on.onMouseDown,xi=(0,Te.Z)(on,fn),bi=yn(er),tr=(ki!==void 0?ki:bi)||er==="combobox",zi=(0,Me.Z)({},xi);Pn.forEach(function(ia){delete zi[ia]}),oi==null||oi.forEach(function(ia){delete zi[ia]});var Bi=Ye.useState(!1),Ln=(0,We.Z)(Bi,2),Oi=Ln[0],ar=Ln[1];Ye.useEffect(function(){ar((0,Fe.Z)())},[]);var _r=Ye.useRef(null),Lr=Ye.useRef(null),Wr=Ye.useRef(null),Hr=Ye.useRef(null),jr=Ye.useRef(null),So=Ye.useRef(!1),vo=be(),ra=(0,We.Z)(vo,3),tn=ra[0],Xr=ra[1],uo=ra[2];Ye.useImperativeHandle(Gt,function(){var ia,Eo;return{focus:(ia=Hr.current)===null||ia===void 0?void 0:ia.focus,blur:(Eo=Hr.current)===null||Eo===void 0?void 0:Eo.blur,scrollTo:function(Qa){var La;return(La=jr.current)===null||La===void 0?void 0:La.scrollTo(Qa)},nativeElement:_r.current||Lr.current}});var Tr=Ye.useMemo(function(){var ia;if(er!=="combobox")return ir;var Eo=(ia=qt[0])===null||ia===void 0?void 0:ia.value;return typeof Eo=="string"||typeof Eo=="number"?String(Eo):""},[ir,er,qt]),ao=er==="combobox"&&typeof Kt=="function"&&Kt()||null,br=typeof sr=="function"&&sr(),Go=(0,ne.x1)(Lr,br==null||(li=br.props)===null||li===void 0?void 0:li.ref),gn=Ye.useState(!1),qr=(0,We.Z)(gn,2),Oo=qr[0],Ga=qr[1];(0,Nt.Z)(function(){Ga(!0)},[]);var pa=(0,st.Z)(!1,{defaultValue:mn,value:ro}),us=(0,We.Z)(pa,2),Za=us[0],pr=us[1],Ho=Oo?Za:!1,ca=!Tn&&Mi;(or||ca&&Ho&&er==="combobox")&&(Ho=!1);var wa=ca?!1:Ho,to=Ye.useCallback(function(ia){var Eo=ia!==void 0?ia:!Ho;or||(pr(Eo),Ho!==Eo&&(wi==null||wi(Eo)))},[or,Ho,pr,wi]),Kr=Ye.useMemo(function(){return(Ur||[]).some(function(ia){return[`
|
|
|
`,`\r
|
|
|
`].includes(ia)})},[Ur]),Ut=Ye.useContext(Zt)||{},Ni=Ut.maxCount,Qi=Ut.rawValues,Pr=function(Eo,Fo,Qa){if(!(bi&&Ue(Ni)&&(Qi==null?void 0:Qi.size)>=Ni)){var La=!0,Fa=Eo;Ji==null||Ji(null);var dr=xn(Eo,Ur,Ue(Ni)?Ni-Qi.size:void 0),$s=Qa?null:dr;return er!=="combobox"&&$s&&(Fa="",Ir==null||Ir($s),to(!1),La=!1),Cr&&Tr!==Fa&&Cr(Fa,{source:Fo?"typing":"effect"}),La}},co=function(Eo){!Eo||!Eo.trim()||Cr(Eo,{source:"submit"})};Ye.useEffect(function(){!Ho&&!bi&&er!=="combobox"&&Pr("",!1,!1)},[Ho]),Ye.useEffect(function(){Za&&or&&pr(!1),or&&!So.current&&Xr(!1)},[or]);var Qr=Ae(),mr=(0,We.Z)(Qr,2),Mo=mr[0],Jo=mr[1],Do=Ye.useRef(!1),ho=function(Eo){var Fo=Mo(),Qa=Eo.key,La=Qa==="Enter";if(La&&(er!=="combobox"&&Eo.preventDefault(),Ho||to(!0)),Jo(!!Tr),Qa==="Backspace"&&!Fo&&bi&&!Tr&&qt.length){for(var Fa=(0,Pe.Z)(qt),dr=null,$s=Fa.length-1;$s>=0;$s-=1){var Bt=Fa[$s];if(!Bt.disabled){Fa.splice($s,1),dr=Bt;break}}dr&&Be(Fa,{type:"remove",values:[dr]})}for(var Jn=arguments.length,Ql=new Array(Jn>1?Jn-1:0),Hu=1;Hu<Jn;Hu++)Ql[Hu-1]=arguments[Hu];if(Ho&&(!La||!Do.current)){var Va;La&&(Do.current=!0),(Va=jr.current)===null||Va===void 0||Va.onKeyDown.apply(Va,[Eo].concat(Ql))}pi==null||pi.apply(void 0,[Eo].concat(Ql))},na=function(Eo){for(var Fo=arguments.length,Qa=new Array(Fo>1?Fo-1:0),La=1;La<Fo;La++)Qa[La-1]=arguments[La];if(Ho){var Fa;(Fa=jr.current)===null||Fa===void 0||Fa.onKeyUp.apply(Fa,[Eo].concat(Qa))}Eo.key==="Enter"&&(Do.current=!1),Vn==null||Vn.apply(void 0,[Eo].concat(Qa))},as=function(Eo){var Fo=qt.filter(function(Qa){return Qa!==Eo});Be(Fo,{type:"remove",values:[Eo]})},Po=function(){Do.current=!1},ka=Ye.useRef(!1),bs=function(){Xr(!0),or||(Ci&&!ka.current&&Ci.apply(void 0,arguments),yi.includes("focus")&&to(!0)),ka.current=!0},Ds=function(){So.current=!0,Xr(!1,function(){ka.current=!1,So.current=!1,to(!1)}),!or&&(Tr&&(er==="tags"?Cr(Tr,{source:"submit"}):er==="multiple"&&Cr("",{source:"blur"})),Fi&&Fi.apply(void 0,arguments))},fa=[];Ye.useEffect(function(){return function(){fa.forEach(function(ia){return clearTimeout(ia)}),fa.splice(0,fa.length)}},[]);var Gs=function(Eo){var Fo,Qa=Eo.target,La=(Fo=Wr.current)===null||Fo===void 0?void 0:Fo.getPopupElement();if(La&&La.contains(Qa)){var Fa=setTimeout(function(){var Jn=fa.indexOf(Fa);if(Jn!==-1&&fa.splice(Jn,1),uo(),!Oi&&!La.contains(document.activeElement)){var Ql;(Ql=Hr.current)===null||Ql===void 0||Ql.focus()}});fa.push(Fa)}for(var dr=arguments.length,$s=new Array(dr>1?dr-1:0),Bt=1;Bt<dr;Bt++)$s[Bt-1]=arguments[Bt];mi==null||mi.apply(void 0,[Eo].concat($s))},pl=Ye.useState({}),Es=(0,We.Z)(pl,2),As=Es[1];function Fs(){As({})}var Bl;br&&(Bl=function(Eo){to(Eo)}),Le(function(){var ia;return[_r.current,(ia=Wr.current)===null||ia===void 0?void 0:ia.getPopupElement()]},wa,to,!!br);var oc=Ye.useMemo(function(){return(0,Me.Z)((0,Me.Z)({},on),{},{notFoundContent:Tn,open:Ho,triggerOpen:wa,id:vt,showSearch:tr,multiple:bi,toggleOpen:to})},[on,Tn,wa,Ho,vt,tr,bi,to]),Uu=!!Bn||Cn,Da;Uu&&(Da=Ye.createElement(he,{className:ot()("".concat(Sn,"-arrow"),(0,Re.Z)({},"".concat(Sn,"-arrow-loading"),Cn)),customizeIcon:Bn,customizeIconProps:{loading:Cn,searchValue:Tr,open:Ho,focused:tn,showSearch:tr}}));var zu=function(){var Eo;Ki==null||Ki(),(Eo=Hr.current)===null||Eo===void 0||Eo.focus(),Be([],{type:"clear",values:qt}),Pr("",!1,!1)},ac=se(Sn,zu,qt,Dn,qi,or,Tr,er),Cu=ac.allowClear,Tu=ac.clearIcon,ms=Ye.createElement(ur,{ref:jr}),ws=ot()(Sn,ri,(0,Re.Z)((0,Re.Z)((0,Re.Z)((0,Re.Z)((0,Re.Z)((0,Re.Z)((0,Re.Z)((0,Re.Z)((0,Re.Z)((0,Re.Z)({},"".concat(Sn,"-focused"),tn),"".concat(Sn,"-multiple"),bi),"".concat(Sn,"-single"),!bi),"".concat(Sn,"-allow-clear"),Dn),"".concat(Sn,"-show-arrow"),Uu),"".concat(Sn,"-disabled"),or),"".concat(Sn,"-loading"),Cn),"".concat(Sn,"-open"),Ho),"".concat(Sn,"-customize-input"),ao),"".concat(Sn,"-show-search"),tr)),Wa=Ye.createElement(ke,{ref:Wr,disabled:or,prefixCls:Sn,visible:wa,popupElement:ms,animation:gr,transitionName:xo,dropdownStyle:yo,dropdownClassName:mo,direction:wn,dropdownMatchSelectWidth:bo,dropdownRender:cn,dropdownAlign:Fn,placement:an,builtinPlacements:Je,getPopupContainer:ci,empty:Mi,getTriggerDOMNode:function(Eo){return Lr.current||Eo},onPopupVisibleChange:Bl,onPopupMouseEnter:Fs},br?Ye.cloneElement(br,{ref:Go}):Ye.createElement(On,(0,ce.Z)({},on,{domRef:Lr,prefixCls:Sn,inputElement:ao,ref:Hr,id:vt,prefix:Zr,showSearch:tr,autoClearSearchValue:Fr,mode:er,activeDescendantId:Gi,tagRender:zt,values:qt,open:Ho,onToggleOpen:to,activeValue:_i,searchValue:Tr,onSearch:Pr,onSearchSubmit:co,onRemove:as,tokenWithEnter:Kr,onInputBlur:Po}))),Xa;return br?Xa=Wa:Xa=Ye.createElement("div",(0,ce.Z)({className:ws},zi,{ref:_r,onMouseDown:Gs,onKeyDown:ho,onKeyUp:na,onFocus:bs,onBlur:Ds}),Ye.createElement(Vt,{visible:tn&&!Ho,values:qt}),Wa,Da,Cu&&Tu),Ye.createElement(ge.Provider,{value:oc},Xa)}),zn=Mt,qn=function(){return null};qn.isSelectOptGroup=!0;var Rn=qn,Zn=function(){return null};Zn.isSelectOption=!0;var Ai=Zn,Yn=ue(80547),Et=ue(2738),vi=ue(45680);function Ri(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var sn=["disabled","title","children","style","className"];function Xi(on){return typeof on=="string"||typeof on=="number"}var cr=function(Gt,li){var vt=Se(),Sn=vt.prefixCls,ri=vt.id,ki=vt.open,zt=vt.multiple,wn=vt.mode,oi=vt.searchValue,qt=vt.toggleOpen,Be=vt.notFoundContent,Mi=vt.onPopupScroll,ui=Ye.useContext(Zt),Tn=ui.maxCount,Ki=ui.flattenOptions,er=ui.onActiveValue,or=ui.defaultActiveFirstOption,Cn=ui.onSelect,Kt=ui.menuItemSelectedIcon,sr=ui.rawValues,ro=ui.fieldNames,mn=ui.virtual,wi=ui.direction,_i=ui.listHeight,Ji=ui.listItemHeight,Gi=ui.optionRender,ir="".concat(Sn,"-item"),Fr=(0,Yn.Z)(function(){return Ki},[ki,Ki],function(Qn,yi){return yi[0]&&Qn[1]!==yi[1]}),Cr=Ye.useRef(null),Ir=Ye.useMemo(function(){return zt&&Ue(Tn)&&(sr==null?void 0:sr.size)>=Tn},[zt,Tn,sr==null?void 0:sr.size]),Ur=function(yi){yi.preventDefault()},Dn=function(yi){var Ci;(Ci=Cr.current)===null||Ci===void 0||Ci.scrollTo(typeof yi=="number"?{index:yi}:yi)},Zr=Ye.useCallback(function(Qn){return wn==="combobox"?!1:sr.has(Qn)},[wn,(0,Pe.Z)(sr).toString(),sr.size]),Bn=function(yi){for(var Ci=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Fi=Fr.length,Vn=0;Vn<Fi;Vn+=1){var pi=(yi+Vn*Ci+Fi)%Fi,mi=Fr[pi]||{},xi=mi.group,bi=mi.data;if(!xi&&!(bi!=null&&bi.disabled)&&(Zr(bi.value)||!Ir))return pi}return-1},qi=Ye.useState(function(){return Bn(0)}),ur=(0,We.Z)(qi,2),gr=ur[0],xo=ur[1],yo=function(yi){var Ci=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;xo(yi);var Fi={source:Ci?"keyboard":"mouse"},Vn=Fr[yi];if(!Vn){er(null,-1,Fi);return}er(Vn.value,yi,Fi)};(0,Ye.useEffect)(function(){yo(or!==!1?Bn(0):-1)},[Fr.length,oi]);var mo=Ye.useCallback(function(Qn){return wn==="combobox"?String(Qn).toLowerCase()===oi.toLowerCase():sr.has(Qn)},[wn,oi,(0,Pe.Z)(sr).toString(),sr.size]);(0,Ye.useEffect)(function(){var Qn=setTimeout(function(){if(!zt&&ki&&sr.size===1){var Ci=Array.from(sr)[0],Fi=Fr.findIndex(function(Vn){var pi=Vn.data;return pi.value===Ci});Fi!==-1&&(yo(Fi),Dn(Fi))}});if(ki){var yi;(yi=Cr.current)===null||yi===void 0||yi.scrollTo(void 0)}return function(){return clearTimeout(Qn)}},[ki,oi]);var bo=function(yi){yi!==void 0&&Cn(yi,{selected:!sr.has(yi)}),zt||qt(!1)};if(Ye.useImperativeHandle(li,function(){return{onKeyDown:function(yi){var Ci=yi.which,Fi=yi.ctrlKey;switch(Ci){case je.Z.N:case je.Z.P:case je.Z.UP:case je.Z.DOWN:{var Vn=0;if(Ci===je.Z.UP?Vn=-1:Ci===je.Z.DOWN?Vn=1:Ri()&&Fi&&(Ci===je.Z.N?Vn=1:Ci===je.Z.P&&(Vn=-1)),Vn!==0){var pi=Bn(gr+Vn,Vn);Dn(pi),yo(pi,!0)}break}case je.Z.TAB:case je.Z.ENTER:{var mi,xi=Fr[gr];xi&&!(xi!=null&&(mi=xi.data)!==null&&mi!==void 0&&mi.disabled)&&!Ir?bo(xi.value):bo(void 0),ki&&yi.preventDefault();break}case je.Z.ESC:qt(!1),ki&&yi.stopPropagation()}},onKeyUp:function(){},scrollTo:function(yi){Dn(yi)}}}),Fr.length===0)return Ye.createElement("div",{role:"listbox",id:"".concat(ri,"_list"),className:"".concat(ir,"-empty"),onMouseDown:Ur},Be);var cn=Object.keys(ro).map(function(Qn){return ro[Qn]}),Fn=function(yi){return yi.label};function an(Qn,yi){var Ci=Qn.group;return{role:Ci?"presentation":"option",id:"".concat(ri,"_list_").concat(yi)}}var Je=function(yi){var Ci=Fr[yi];if(!Ci)return null;var Fi=Ci.data||{},Vn=Fi.value,pi=Ci.group,mi=(0,qe.Z)(Fi,!0),xi=Fn(Ci);return Ci?Ye.createElement("div",(0,ce.Z)({"aria-label":typeof xi=="string"&&!pi?xi:null},mi,{key:yi},an(Ci,yi),{"aria-selected":mo(Vn)}),Vn):null},ci={role:"listbox",id:"".concat(ri,"_list")};return Ye.createElement(Ye.Fragment,null,mn&&Ye.createElement("div",(0,ce.Z)({},ci,{style:{height:0,width:0,overflow:"hidden"}}),Je(gr-1),Je(gr),Je(gr+1)),Ye.createElement(vi.Z,{itemKey:"key",ref:Cr,data:Fr,height:_i,itemHeight:Ji,fullHeight:!1,onMouseDown:Ur,onScroll:Mi,virtual:mn,direction:wi,innerProps:mn?null:ci},function(Qn,yi){var Ci=Qn.group,Fi=Qn.groupOption,Vn=Qn.data,pi=Qn.label,mi=Qn.value,xi=Vn.key;if(Ci){var bi,tr=(bi=Vn.title)!==null&&bi!==void 0?bi:Xi(pi)?pi.toString():void 0;return Ye.createElement("div",{className:ot()(ir,"".concat(ir,"-group"),Vn.className),title:tr},pi!==void 0?pi:xi)}var zi=Vn.disabled,Bi=Vn.title,Ln=Vn.children,Oi=Vn.style,ar=Vn.className,_r=(0,Te.Z)(Vn,sn),Lr=(0,Et.Z)(_r,cn),Wr=Zr(mi),Hr=zi||!Wr&&Ir,jr="".concat(ir,"-option"),So=ot()(ir,jr,ar,(0,Re.Z)((0,Re.Z)((0,Re.Z)((0,Re.Z)({},"".concat(jr,"-grouped"),Fi),"".concat(jr,"-active"),gr===yi&&!Hr),"".concat(jr,"-disabled"),Hr),"".concat(jr,"-selected"),Wr)),vo=Fn(Qn),ra=!Kt||typeof Kt=="function"||Wr,tn=typeof vo=="number"?vo:vo||mi,Xr=Xi(tn)?tn.toString():void 0;return Bi!==void 0&&(Xr=Bi),Ye.createElement("div",(0,ce.Z)({},(0,qe.Z)(Lr),mn?{}:an(Qn,yi),{"aria-selected":mo(mi),className:So,title:Xr,onMouseMove:function(){gr===yi||Hr||yo(yi)},onClick:function(){Hr||bo(mi)},style:Oi}),Ye.createElement("div",{className:"".concat(jr,"-content")},typeof Gi=="function"?Gi(Qn,{index:yi}):tn),Ye.isValidElement(Kt)||Wr,ra&&Ye.createElement(he,{className:"".concat(ir,"-option-state"),customizeIcon:Kt,customizeIconProps:{value:mi,disabled:Hr,isSelected:Wr}},Wr?"\u2713":null))}))},fr=Ye.forwardRef(cr),kn=fr,Or=function(on,Gt){var li=Ye.useRef({values:new Map,options:new Map}),vt=Ye.useMemo(function(){var ri=li.current,ki=ri.values,zt=ri.options,wn=on.map(function(Be){if(Be.label===void 0){var Mi;return(0,Me.Z)((0,Me.Z)({},Be),{},{label:(Mi=ki.get(Be.value))===null||Mi===void 0?void 0:Mi.label})}return Be}),oi=new Map,qt=new Map;return wn.forEach(function(Be){oi.set(Be.value,Be),qt.set(Be.value,Gt.get(Be.value)||zt.get(Be.value))}),li.current.values=oi,li.current.options=qt,wn},[on,Gt]),Sn=Ye.useCallback(function(ri){return Gt.get(ri)||li.current.options.get(ri)},[Gt]);return[vt,Sn]};function kr(on,Gt){return It(on).join("").toUpperCase().includes(Gt)}var Wi=function(on,Gt,li,vt,Sn){return Ye.useMemo(function(){if(!li||vt===!1)return on;var ri=Gt.options,ki=Gt.label,zt=Gt.value,wn=[],oi=typeof vt=="function",qt=li.toUpperCase(),Be=oi?vt:function(ui,Tn){return Sn?kr(Tn[Sn],qt):Tn[ri]?kr(Tn[ki!=="children"?ki:"label"],qt):kr(Tn[zt],qt)},Mi=oi?function(ui){return bn(ui)}:function(ui){return ui};return on.forEach(function(ui){if(ui[ri]){var Tn=Be(li,Mi(ui));if(Tn)wn.push(ui);else{var Ki=ui[ri].filter(function(er){return Be(li,Mi(er))});Ki.length&&wn.push((0,Me.Z)((0,Me.Z)({},ui),{},(0,Re.Z)({},ri,Ki)))}return}Be(li,Mi(ui))&&wn.push(ui)}),wn},[on,vt,Sn,li,Gt])},lr=ue(69582),wr=ue(11592),Ie=["children","value"],Yi=["children"];function Ei(on){var Gt=on,li=Gt.key,vt=Gt.props,Sn=vt.children,ri=vt.value,ki=(0,Te.Z)(vt,Ie);return(0,Me.Z)({key:li,value:ri!==void 0?ri:li,children:Sn},ki)}function rr(on){var Gt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,wr.Z)(on).map(function(li,vt){if(!Ye.isValidElement(li)||!li.type)return null;var Sn=li,ri=Sn.type.isSelectOptGroup,ki=Sn.key,zt=Sn.props,wn=zt.children,oi=(0,Te.Z)(zt,Yi);return Gt||!ri?Ei(li):(0,Me.Z)((0,Me.Z)({key:"__RC_SELECT_GRP__".concat(ki===null?vt:ki,"__"),label:ki},oi),{},{options:rr(wn)})}).filter(function(li){return li})}var Br=function(Gt,li,vt,Sn,ri){return Ye.useMemo(function(){var ki=Gt,zt=!Gt;zt&&(ki=rr(li));var wn=new Map,oi=new Map,qt=function(ui,Tn,Ki){Ki&&typeof Ki=="string"&&ui.set(Tn[Ki],Tn)},Be=function Mi(ui){for(var Tn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ki=0;Ki<ui.length;Ki+=1){var er=ui[Ki];!er[vt.options]||Tn?(wn.set(er[vt.value],er),qt(oi,er,vt.label),qt(oi,er,Sn),qt(oi,er,ri)):Mi(er[vt.options],!0)}};return Be(ki),{options:ki,valueOptions:wn,labelOptions:oi}},[Gt,li,vt,Sn,ri])},Gr=Br;function yr(on){var Gt=Ye.useRef();Gt.current=on;var li=Ye.useCallback(function(){return Gt.current.apply(Gt,arguments)},[]);return li}function Vi(on){var Gt=on.mode,li=on.options,vt=on.children,Sn=on.backfill,ri=on.allowClear,ki=on.placeholder,zt=on.getInputElement,wn=on.showSearch,oi=on.onSearch,qt=on.defaultOpen,Be=on.autoFocus,Mi=on.labelInValue,ui=on.value,Tn=on.inputValue,Ki=on.optionLabelProp,er=isMultiple(Gt),or=wn!==void 0?wn:er||Gt==="combobox",Cn=li||convertChildrenToData(vt);if(warning(Gt!=="tags"||Cn.every(function(mn){return!mn.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),Gt==="tags"||Gt==="combobox"){var Kt=Cn.some(function(mn){return mn.options?mn.options.some(function(wi){return typeof("value"in wi?wi.value:wi.key)=="number"}):typeof("value"in mn?mn.value:mn.key)=="number"});warning(!Kt,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(Gt!=="combobox"||!Ki,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(Gt==="combobox"||!Sn,"`backfill` only works with `combobox` mode."),warning(Gt==="combobox"||!zt,"`getInputElement` only work with `combobox` mode."),noteOnce(Gt!=="combobox"||!zt||!ri||!ki,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),oi&&!or&&Gt!=="combobox"&&Gt!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!qt||Be,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),ui!=null){var sr=toArray(ui);warning(!Mi||sr.every(function(mn){return _typeof(mn)==="object"&&("key"in mn||"value"in mn)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!er||Array.isArray(ui),"`value` should be array when `mode` is `multiple` or `tags`")}if(vt){var ro=null;toNodeArray(vt).some(function(mn){if(!React.isValidElement(mn)||!mn.type)return!1;var wi=mn,_i=wi.type;if(_i.isSelectOption)return!1;if(_i.isSelectOptGroup){var Ji=toNodeArray(mn.props.children).every(function(Gi){return!React.isValidElement(Gi)||!mn.type||Gi.type.isSelectOption?!0:(ro=Gi.type,!1)});return!Ji}return ro=_i,!0}),ro&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(ro.displayName||ro.name||ro,"`.")),warning(Tn===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function hi(on,Gt){if(on){var li=function vt(Sn){for(var ri=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ki=0;ki<Sn.length;ki++){var zt=Sn[ki];if(zt[Gt==null?void 0:Gt.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!ri&&Array.isArray(zt[Gt==null?void 0:Gt.options])&&vt(zt[Gt==null?void 0:Gt.options],!0))break}};li(on)}}var Jt=null,Wt=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","optionRender","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","labelRender","value","defaultValue","labelInValue","onChange","maxCount"],jt=["inputValue"];function gi(on){return!on||(0,Ge.Z)(on)!=="object"}var ii=Ye.forwardRef(function(on,Gt){var li=on.id,vt=on.mode,Sn=on.prefixCls,ri=Sn===void 0?"rc-select":Sn,ki=on.backfill,zt=on.fieldNames,wn=on.inputValue,oi=on.searchValue,qt=on.onSearch,Be=on.autoClearSearchValue,Mi=Be===void 0?!0:Be,ui=on.onSelect,Tn=on.onDeselect,Ki=on.dropdownMatchSelectWidth,er=Ki===void 0?!0:Ki,or=on.filterOption,Cn=on.filterSort,Kt=on.optionFilterProp,sr=on.optionLabelProp,ro=on.options,mn=on.optionRender,wi=on.children,_i=on.defaultActiveFirstOption,Ji=on.menuItemSelectedIcon,Gi=on.virtual,ir=on.direction,Fr=on.listHeight,Cr=Fr===void 0?200:Fr,Ir=on.listItemHeight,Ur=Ir===void 0?20:Ir,Dn=on.labelRender,Zr=on.value,Bn=on.defaultValue,qi=on.labelInValue,ur=on.onChange,gr=on.maxCount,xo=(0,Te.Z)(on,Wt),yo=(0,lr.ZP)(li),mo=yn(vt),bo=!!(!ro&&wi),cn=Ye.useMemo(function(){return or===void 0&&vt==="combobox"?!1:or},[or,vt]),Fn=Ye.useMemo(function(){return gt(zt,bo)},[JSON.stringify(zt),bo]),an=(0,st.Z)("",{value:oi!==void 0?oi:wn,postState:function(Kr){return Kr||""}}),Je=(0,We.Z)(an,2),ci=Je[0],Qn=Je[1],yi=Gr(ro,wi,Fn,Kt,sr),Ci=yi.valueOptions,Fi=yi.labelOptions,Vn=yi.options,pi=Ye.useCallback(function(to){var Kr=It(to);return Kr.map(function(Ut){var Ni,Qi,Pr,co,Qr;if(gi(Ut))Ni=Ut;else{var mr;Pr=Ut.key,Qi=Ut.label,Ni=(mr=Ut.value)!==null&&mr!==void 0?mr:Pr}var Mo=Ci.get(Ni);if(Mo){var Jo;if(Qi===void 0&&(Qi=Mo==null?void 0:Mo[sr||Fn.label]),Pr===void 0&&(Pr=(Jo=Mo==null?void 0:Mo.key)!==null&&Jo!==void 0?Jo:Ni),co=Mo==null?void 0:Mo.disabled,Qr=Mo==null?void 0:Mo.title,0)var Do}return{label:Qi,value:Ni,key:Pr,disabled:co,title:Qr}})},[Fn,sr,Ci]),mi=(0,st.Z)(Bn,{value:Zr}),xi=(0,We.Z)(mi,2),bi=xi[0],tr=xi[1],zi=Ye.useMemo(function(){var to,Kr=mo&&bi===null?[]:bi,Ut=pi(Kr);return vt==="combobox"&&Qt((to=Ut[0])===null||to===void 0?void 0:to.value)?[]:Ut},[bi,pi,vt,mo]),Bi=Or(zi,Ci),Ln=(0,We.Z)(Bi,2),Oi=Ln[0],ar=Ln[1],_r=Ye.useMemo(function(){if(!vt&&Oi.length===1){var to=Oi[0];if(to.value===null&&(to.label===null||to.label===void 0))return[]}return Oi.map(function(Kr){var Ut;return(0,Me.Z)((0,Me.Z)({},Kr),{},{label:(Ut=typeof Dn=="function"?Dn(Kr):Kr.label)!==null&&Ut!==void 0?Ut:Kr.value})})},[vt,Oi,Dn]),Lr=Ye.useMemo(function(){return new Set(Oi.map(function(to){return to.value}))},[Oi]);Ye.useEffect(function(){if(vt==="combobox"){var to,Kr=(to=Oi[0])===null||to===void 0?void 0:to.value;Qn(un(Kr)?String(Kr):"")}},[Oi]);var Wr=yr(function(to,Kr){var Ut=Kr!=null?Kr:to;return(0,Re.Z)((0,Re.Z)({},Fn.value,to),Fn.label,Ut)}),Hr=Ye.useMemo(function(){if(vt!=="tags")return Vn;var to=(0,Pe.Z)(Vn),Kr=function(Ni){return Ci.has(Ni)};return(0,Pe.Z)(Oi).sort(function(Ut,Ni){return Ut.value<Ni.value?-1:1}).forEach(function(Ut){var Ni=Ut.value;Kr(Ni)||to.push(Wr(Ni,Ut.label))}),to},[Wr,Vn,Ci,Oi,vt]),jr=Wi(Hr,Fn,ci,cn,Kt),So=Ye.useMemo(function(){return vt!=="tags"||!ci||jr.some(function(to){return to[Kt||"value"]===ci})||jr.some(function(to){return to[Fn.value]===ci})?jr:[Wr(ci)].concat((0,Pe.Z)(jr))},[Wr,Kt,vt,jr,ci,Fn]),vo=function to(Kr){var Ut=(0,Pe.Z)(Kr).sort(function(Ni,Qi){return Cn(Ni,Qi,{searchValue:ci})});return Ut.map(function(Ni){return Array.isArray(Ni.options)?(0,Me.Z)((0,Me.Z)({},Ni),{},{options:Ni.options.length>0?to(Ni.options):Ni.options}):Ni})},ra=Ye.useMemo(function(){return Cn?vo(So):So},[So,Cn,ci]),tn=Ye.useMemo(function(){return _t(ra,{fieldNames:Fn,childrenAsData:bo})},[ra,Fn,bo]),Xr=function(Kr){var Ut=pi(Kr);if(tr(Ut),ur&&(Ut.length!==Oi.length||Ut.some(function(Pr,co){var Qr;return((Qr=Oi[co])===null||Qr===void 0?void 0:Qr.value)!==(Pr==null?void 0:Pr.value)}))){var Ni=qi?Ut:Ut.map(function(Pr){return Pr.value}),Qi=Ut.map(function(Pr){return bn(ar(Pr.value))});ur(mo?Ni:Ni[0],mo?Qi:Qi[0])}},uo=Ye.useState(null),Tr=(0,We.Z)(uo,2),ao=Tr[0],br=Tr[1],Go=Ye.useState(0),gn=(0,We.Z)(Go,2),qr=gn[0],Oo=gn[1],Ga=_i!==void 0?_i:vt!=="combobox",pa=Ye.useCallback(function(to,Kr){var Ut=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Ni=Ut.source,Qi=Ni===void 0?"keyboard":Ni;Oo(Kr),ki&&vt==="combobox"&&to!==null&&Qi==="keyboard"&&br(String(to))},[ki,vt]),us=function(Kr,Ut,Ni){var Qi=function(){var as,Po=ar(Kr);return[qi?{label:Po==null?void 0:Po[Fn.label],value:Kr,key:(as=Po==null?void 0:Po.key)!==null&&as!==void 0?as:Kr}:Kr,bn(Po)]};if(Ut&&ui){var Pr=Qi(),co=(0,We.Z)(Pr,2),Qr=co[0],mr=co[1];ui(Qr,mr)}else if(!Ut&&Tn&&Ni!=="clear"){var Mo=Qi(),Jo=(0,We.Z)(Mo,2),Do=Jo[0],ho=Jo[1];Tn(Do,ho)}},Za=yr(function(to,Kr){var Ut,Ni=mo?Kr.selected:!0;Ni?Ut=mo?[].concat((0,Pe.Z)(Oi),[to]):[to]:Ut=Oi.filter(function(Qi){return Qi.value!==to}),Xr(Ut),us(to,Ni),vt==="combobox"?br(""):(!yn||Mi)&&(Qn(""),br(""))}),pr=function(Kr,Ut){Xr(Kr);var Ni=Ut.type,Qi=Ut.values;(Ni==="remove"||Ni==="clear")&&Qi.forEach(function(Pr){us(Pr.value,!1,Ni)})},Ho=function(Kr,Ut){if(Qn(Kr),br(null),Ut.source==="submit"){var Ni=(Kr||"").trim();if(Ni){var Qi=Array.from(new Set([].concat((0,Pe.Z)(Lr),[Ni])));Xr(Qi),us(Ni,!0),Qn("")}return}Ut.source!=="blur"&&(vt==="combobox"&&Xr(Kr),qt==null||qt(Kr))},ca=function(Kr){var Ut=Kr;vt!=="tags"&&(Ut=Kr.map(function(Qi){var Pr=Fi.get(Qi);return Pr==null?void 0:Pr.value}).filter(function(Qi){return Qi!==void 0}));var Ni=Array.from(new Set([].concat((0,Pe.Z)(Lr),(0,Pe.Z)(Ut))));Xr(Ni),Ni.forEach(function(Qi){us(Qi,!0)})},wa=Ye.useMemo(function(){var to=Gi!==!1&&er!==!1;return(0,Me.Z)((0,Me.Z)({},yi),{},{flattenOptions:tn,onActiveValue:pa,defaultActiveFirstOption:Ga,onSelect:Za,menuItemSelectedIcon:Ji,rawValues:Lr,fieldNames:Fn,virtual:to,direction:ir,listHeight:Cr,listItemHeight:Ur,childrenAsData:bo,maxCount:gr,optionRender:mn})},[gr,yi,tn,pa,Ga,Za,Ji,Lr,Fn,Gi,er,ir,Cr,Ur,bo,mn]);return Ye.createElement(Zt.Provider,{value:wa},Ye.createElement(zn,(0,ce.Z)({},xo,{id:yo,prefixCls:ri,ref:Gt,omitDomProps:jt,mode:vt,displayValues:_r,onDisplayValuesChange:pr,direction:ir,searchValue:ci,onSearch:Ho,autoClearSearchValue:Mi,onSearchSplit:ca,dropdownMatchSelectWidth:er,OptionList:kn,emptyOptions:!tn.length,activeValue:ao,activeDescendantId:"".concat(yo,"_list_").concat(qr)})))}),Pi=ii;Pi.Option=Ai,Pi.OptGroup=Rn;var In=Pi,fi=In},63158:function(ze,Ee,ue){"use strict";var ce=ue(72308),Pe=ue(49618),Re=ue(52487),Me=ue(74416),We=ue(59301),Te=ue(92310),Ge=ue.n(Te),st=ue(18929),Qe=ue(10228),Ye=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],yt=We.forwardRef(function(ot,Nt){var Fe,ne=ot.prefixCls,te=ne===void 0?"rc-switch":ne,he=ot.className,se=ot.checked,ge=ot.defaultChecked,Se=ot.disabled,be=ot.loadingIcon,Ae=ot.checkedChildren,Le=ot.unCheckedChildren,je=ot.onClick,$e=ot.onChange,qe=ot.onKeyDown,nt=(0,Me.Z)(ot,Ye),dt=(0,st.Z)(!1,{value:se,defaultValue:ge}),it=(0,Re.Z)(dt,2),bt=it[0],It=it[1];function Ht(nn,At){var ct=bt;return Se||(ct=nn,It(ct),$e==null||$e(ct,At)),ct}function ln(nn){nn.which===Qe.Z.LEFT?Ht(!1,nn):nn.which===Qe.Z.RIGHT&&Ht(!0,nn),qe==null||qe(nn)}function un(nn){var At=Ht(!bt,nn);je==null||je(At,nn)}var Qt=Ge()(te,he,(Fe={},(0,Pe.Z)(Fe,"".concat(te,"-checked"),bt),(0,Pe.Z)(Fe,"".concat(te,"-disabled"),Se),Fe));return We.createElement("button",(0,ce.Z)({},nt,{type:"button",role:"switch","aria-checked":bt,disabled:Se,className:Qt,ref:Nt,onKeyDown:ln,onClick:un}),be,We.createElement("span",{className:"".concat(te,"-inner")},We.createElement("span",{className:"".concat(te,"-inner-checked")},Ae),We.createElement("span",{className:"".concat(te,"-inner-unchecked")},Le)))});yt.displayName="Switch",Ee.Z=yt},67204:function(ze,Ee,ue){"use strict";ue.d(Ee,{R:function(){return Pe},w:function(){return ce}});var ce={},Pe="rc-table-internal-hook"},78612:function(ze,Ee,ue){"use strict";ue.d(Ee,{L:function(){return te},Z:function(){return be}});var ce=ue(52487),Pe=ue(49618),Re=ue(80702),Me=ue(62853),We=ue(77321),Te=ue(74416),Ge=ue(11592),st=ue(48736),Qe=ue(59301),Ye=ue(67204),yt=ue(90494);function ot(Ae){var Le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof Le=="number"?Le:Le.endsWith("%")?Ae*parseFloat(Le)/100:null}function Nt(Ae,Le,je){return Qe.useMemo(function(){if(Le&&Le>0){var $e=0,qe=0;Ae.forEach(function(un){var Qt=ot(Le,un.width);Qt?$e+=Qt:qe+=1});var nt=Math.max(Le,je),dt=Math.max(nt-$e,qe),it=qe,bt=dt/qe,It=0,Ht=Ae.map(function(un){var Qt=(0,We.Z)({},un),nn=ot(Le,Qt.width);if(nn)Qt.width=nn;else{var At=Math.floor(bt);Qt.width=it===1?dt:At,dt-=At,it-=1}return It+=Qt.width,Qt});if(It<nt){var ln=nt/It;dt=nt,Ht.forEach(function(un,Qt){var nn=Math.floor(un.width*ln);un.width=Qt===Ht.length-1?dt:nn,dt-=nn})}return[Ht,Math.max(It,nt)]}return[Ae,Le]},[Ae,Le,je])}var Fe=["children"],ne=["fixed"];function te(Ae){return(0,Ge.Z)(Ae).filter(function(Le){return Qe.isValidElement(Le)}).map(function(Le){var je=Le.key,$e=Le.props,qe=$e.children,nt=(0,Te.Z)($e,Fe),dt=(0,We.Z)({key:je},nt);return qe&&(dt.children=te(qe)),dt})}function he(Ae){return Ae.filter(function(Le){return Le&&(0,Me.Z)(Le)==="object"&&!Le.hidden}).map(function(Le){var je=Le.children;return je&&je.length>0?(0,We.Z)((0,We.Z)({},Le),{},{children:he(je)}):Le})}function se(Ae){var Le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return Ae.filter(function(je){return je&&(0,Me.Z)(je)==="object"}).reduce(function(je,$e,qe){var nt=$e.fixed,dt=nt===!0?"left":nt,it="".concat(Le,"-").concat(qe),bt=$e.children;return bt&&bt.length>0?[].concat((0,Re.Z)(je),(0,Re.Z)(se(bt,it).map(function(It){return(0,We.Z)({fixed:dt},It)}))):[].concat((0,Re.Z)(je),[(0,We.Z)((0,We.Z)({key:it},$e),{},{fixed:dt})])},[])}function ge(Ae){return Ae.map(function(Le){var je=Le.fixed,$e=(0,Te.Z)(Le,ne),qe=je;return je==="left"?qe="right":je==="right"&&(qe="left"),(0,We.Z)({fixed:qe},$e)})}function Se(Ae,Le){var je=Ae.prefixCls,$e=Ae.columns,qe=Ae.children,nt=Ae.expandable,dt=Ae.expandedKeys,it=Ae.columnTitle,bt=Ae.getRowKey,It=Ae.onTriggerExpand,Ht=Ae.expandIcon,ln=Ae.rowExpandable,un=Ae.expandIconColumnIndex,Qt=Ae.direction,nn=Ae.expandRowByClick,At=Ae.columnWidth,ct=Ae.fixed,at=Ae.scrollWidth,rn=Ae.clientWidth,hn=Qe.useMemo(function(){var ai=$e||te(qe)||[];return he(ai.slice())},[$e,qe]),Pt=Qe.useMemo(function(){if(nt){var ai=hn.slice();if(!ai.includes(Ye.w)){var et=un||0;et>=0&&(et||ct==="left"||!ct)&&ai.splice(et,0,Ye.w),ct==="right"&&ai.splice(hn.length,0,Ye.w)}var De=ai.indexOf(Ye.w);ai=ai.filter(function(Ue,gt){return Ue!==Ye.w||gt===De});var ke=hn[De],Xe;ct?Xe=ct:Xe=ke?ke.fixed:null;var ut=(0,Pe.Z)((0,Pe.Z)((0,Pe.Z)((0,Pe.Z)((0,Pe.Z)((0,Pe.Z)({},yt.v,{className:"".concat(je,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),"title",it),"fixed",Xe),"className","".concat(je,"-row-expand-icon-cell")),"width",At),"render",function(gt,_t,bn){var xn=bt(_t,bn),Lt=dt.has(xn),Zt=ln?ln(_t):!0,Vt=Ht({prefixCls:je,expanded:Lt,expandable:Zt,record:_t,onExpand:It});return nn?Qe.createElement("span",{onClick:function(Pn){return Pn.stopPropagation()}},Vt):Vt});return ai.map(function(Ue){return Ue===Ye.w?ut:Ue})}return hn.filter(function(Ue){return Ue!==Ye.w})},[nt,hn,bt,dt,Ht,Qt]),pn=Qe.useMemo(function(){var ai=Pt;return Le&&(ai=Le(ai)),ai.length||(ai=[{render:function(){return null}}]),ai},[Le,Pt,Qt]),dn=Qe.useMemo(function(){return Qt==="rtl"?ge(se(pn)):se(pn)},[pn,Qt,at]),_n=Qe.useMemo(function(){for(var ai=-1,et=dn.length-1;et>=0;et-=1){var De=dn[et].fixed;if(De==="left"||De===!0){ai=et;break}}if(ai>=0)for(var ke=0;ke<=ai;ke+=1){var Xe=dn[ke].fixed;if(Xe!=="left"&&Xe!==!0)return!0}var ut=dn.findIndex(function(_t){var bn=_t.fixed;return bn==="right"});if(ut>=0)for(var Ue=ut;Ue<dn.length;Ue+=1){var gt=dn[Ue].fixed;if(gt!=="right")return!0}return!1},[dn]),Yt=Nt(dn,at,rn),On=(0,ce.Z)(Yt,2),kt=On[0],jn=On[1];return[pn,kt,jn,_n]}var be=Se},16596:function(ze,Ee,ue){"use strict";ue.d(Ee,{w2:function(){return ce.w},vP:function(){return kn.v},RQ:function(){return ce.R},ER:function(){return xn},Q$:function(){return sr},TN:function(){return yo}});var ce=ue(67204),Pe=ue(52487),Re=ue(6089),Me=ue(34280),We=ue(13697),Te=ue(59301),Ge=ue(4676);function st(cn){var Fn=Te.createContext(void 0),an=function(ci){var Qn=ci.value,yi=ci.children,Ci=Te.useRef(Qn);Ci.current=Qn;var Fi=Te.useState(function(){return{getValue:function(){return Ci.current},listeners:new Set}}),Vn=(0,Pe.Z)(Fi,1),pi=Vn[0];return(0,Me.Z)(function(){(0,Ge.unstable_batchedUpdates)(function(){pi.listeners.forEach(function(mi){mi(Qn)})})},[Qn]),Te.createElement(Fn.Provider,{value:pi},yi)};return{Context:Fn,Provider:an,defaultValue:cn}}function Qe(cn,Fn){var an=(0,Re.Z)(typeof Fn=="function"?Fn:function(mi){if(Fn===void 0)return mi;if(!Array.isArray(Fn))return mi[Fn];var xi={};return Fn.forEach(function(bi){xi[bi]=mi[bi]}),xi}),Je=Te.useContext(cn==null?void 0:cn.Context),ci=Je||{},Qn=ci.listeners,yi=ci.getValue,Ci=Te.useRef();Ci.current=an(Je?yi():cn==null?void 0:cn.defaultValue);var Fi=Te.useState({}),Vn=(0,Pe.Z)(Fi,2),pi=Vn[1];return(0,Me.Z)(function(){if(!Je)return;function mi(xi){var bi=an(xi);(0,We.Z)(Ci.current,bi,!0)||pi({})}return Qn.add(mi),function(){Qn.delete(mi)}},[Je]),Ci.current}var Ye=ue(72308),yt=ue(8654);function ot(){var cn=Te.createContext(null);function Fn(){return Te.useContext(cn)}function an(ci,Qn){var yi=(0,yt.Yr)(ci),Ci=function(Vn,pi){var mi=yi?{ref:pi}:{},xi=Te.useRef(0),bi=Te.useRef(Vn),tr=Fn();return tr!==null?Te.createElement(ci,(0,Ye.Z)({},Vn,mi)):((!Qn||Qn(bi.current,Vn))&&(xi.current+=1),bi.current=Vn,Te.createElement(cn.Provider,{value:xi.current},Te.createElement(ci,(0,Ye.Z)({},Vn,mi))))};return yi?Te.forwardRef(Ci):Ci}function Je(ci,Qn){var yi=(0,yt.Yr)(ci),Ci=function(Vn,pi){var mi=yi?{ref:pi}:{};return Fn(),Te.createElement(ci,(0,Ye.Z)({},Vn,mi))};return yi?Te.memo(Te.forwardRef(Ci),Qn):Te.memo(Ci,Qn)}return{makeImmutable:an,responseImmutable:Je,useImmutableMark:Fn}}var Nt=ot(),Fe=Nt.makeImmutable,ne=Nt.responseImmutable,te=Nt.useImmutableMark,he=ot(),se=he.makeImmutable,ge=he.responseImmutable,Se=he.useImmutableMark,be=st(),Ae=be;function Le(cn,Fn){var an=React.useRef(0);an.current+=1;var Je=React.useRef(cn),ci=[];Object.keys(cn||{}).map(function(yi){var Ci;(cn==null?void 0:cn[yi])!==((Ci=Je.current)===null||Ci===void 0?void 0:Ci[yi])&&ci.push(yi)}),Je.current=cn;var Qn=React.useRef([]);return ci.length&&(Qn.current=ci),React.useDebugValue(an.current),React.useDebugValue(Qn.current.join(", ")),Fn&&console.log("".concat(Fn,":"),an.current,Qn.current),an.current}var je=null,$e=null,qe=ue(62853),nt=ue(77321),dt=ue(49618),it=ue(92310),bt=ue.n(it),It=ue(80547),Ht=ue(97938),ln=ue(48736),un=Te.createContext({renderWithProps:!1}),Qt=un,nn="RC_TABLE_KEY";function At(cn){return cn==null?[]:Array.isArray(cn)?cn:[cn]}function ct(cn){var Fn=[],an={};return cn.forEach(function(Je){for(var ci=Je||{},Qn=ci.key,yi=ci.dataIndex,Ci=Qn||At(yi).join("-")||nn;an[Ci];)Ci="".concat(Ci,"_next");an[Ci]=!0,Fn.push(Ci)}),Fn}function at(cn){return cn!=null}function rn(cn){return typeof cn=="number"&&!Number.isNaN(cn)}function hn(cn){return cn&&(0,qe.Z)(cn)==="object"&&!Array.isArray(cn)&&!Te.isValidElement(cn)}function Pt(cn,Fn,an,Je,ci,Qn){var yi=Te.useContext(Qt),Ci=Se(),Fi=(0,It.Z)(function(){if(at(Je))return[Je];var Vn=Fn==null||Fn===""?[]:Array.isArray(Fn)?Fn:[Fn],pi=(0,Ht.Z)(cn,Vn),mi=pi,xi=void 0;if(ci){var bi=ci(pi,cn,an);hn(bi)?(mi=bi.children,xi=bi.props,yi.renderWithProps=!0):mi=bi}return[mi,xi]},[Ci,cn,Je,Fn,ci,an],function(Vn,pi){if(Qn){var mi=(0,Pe.Z)(Vn,2),xi=mi[1],bi=(0,Pe.Z)(pi,2),tr=bi[1];return Qn(tr,xi)}return yi.renderWithProps?!0:!(0,We.Z)(Vn,pi,!0)});return Fi}function pn(cn,Fn,an,Je){var ci=cn+Fn-1;return cn<=Je&&ci>=an}function dn(cn,Fn){return Qe(Ae,function(an){var Je=pn(cn,Fn||1,an.hoverStartRow,an.hoverEndRow);return[Je,an.onHover]})}var _n=ue(70425),Yt=function(Fn){var an=Fn.ellipsis,Je=Fn.rowType,ci=Fn.children,Qn,yi=an===!0?{showTitle:!0}:an;return yi&&(yi.showTitle||Je==="header")&&(typeof ci=="string"||typeof ci=="number"?Qn=ci.toString():Te.isValidElement(ci)&&typeof ci.props.children=="string"&&(Qn=ci.props.children)),Qn};function On(cn){var Fn,an,Je,ci,Qn,yi,Ci,Fi,Vn=cn.component,pi=cn.children,mi=cn.ellipsis,xi=cn.scope,bi=cn.prefixCls,tr=cn.className,zi=cn.align,Bi=cn.record,Ln=cn.render,Oi=cn.dataIndex,ar=cn.renderIndex,_r=cn.shouldCellUpdate,Lr=cn.index,Wr=cn.rowType,Hr=cn.colSpan,jr=cn.rowSpan,So=cn.fixLeft,vo=cn.fixRight,ra=cn.firstFixLeft,tn=cn.lastFixLeft,Xr=cn.firstFixRight,uo=cn.lastFixRight,Tr=cn.appendNode,ao=cn.additionalProps,br=ao===void 0?{}:ao,Go=cn.isSticky,gn="".concat(bi,"-cell"),qr=Qe(Ae,["supportSticky","allColumnsFixedLeft","rowHoverable"]),Oo=qr.supportSticky,Ga=qr.allColumnsFixedLeft,pa=qr.rowHoverable,us=Pt(Bi,Oi,ar,pi,Ln,_r),Za=(0,Pe.Z)(us,2),pr=Za[0],Ho=Za[1],ca={},wa=typeof So=="number"&&Oo,to=typeof vo=="number"&&Oo;wa&&(ca.position="sticky",ca.left=So),to&&(ca.position="sticky",ca.right=vo);var Kr=(Fn=(an=(Je=Ho==null?void 0:Ho.colSpan)!==null&&Je!==void 0?Je:br.colSpan)!==null&&an!==void 0?an:Hr)!==null&&Fn!==void 0?Fn:1,Ut=(ci=(Qn=(yi=Ho==null?void 0:Ho.rowSpan)!==null&&yi!==void 0?yi:br.rowSpan)!==null&&Qn!==void 0?Qn:jr)!==null&&ci!==void 0?ci:1,Ni=dn(Lr,Ut),Qi=(0,Pe.Z)(Ni,2),Pr=Qi[0],co=Qi[1],Qr=(0,_n.zX)(function(as){var Po;Bi&&co(Lr,Lr+Ut-1),br==null||(Po=br.onMouseEnter)===null||Po===void 0||Po.call(br,as)}),mr=(0,_n.zX)(function(as){var Po;Bi&&co(-1,-1),br==null||(Po=br.onMouseLeave)===null||Po===void 0||Po.call(br,as)});if(Kr===0||Ut===0)return null;var Mo=(Ci=br.title)!==null&&Ci!==void 0?Ci:Yt({rowType:Wr,ellipsis:mi,children:pr}),Jo=bt()(gn,tr,(Fi={},(0,dt.Z)((0,dt.Z)((0,dt.Z)((0,dt.Z)((0,dt.Z)((0,dt.Z)((0,dt.Z)((0,dt.Z)((0,dt.Z)((0,dt.Z)(Fi,"".concat(gn,"-fix-left"),wa&&Oo),"".concat(gn,"-fix-left-first"),ra&&Oo),"".concat(gn,"-fix-left-last"),tn&&Oo),"".concat(gn,"-fix-left-all"),tn&&Ga&&Oo),"".concat(gn,"-fix-right"),to&&Oo),"".concat(gn,"-fix-right-first"),Xr&&Oo),"".concat(gn,"-fix-right-last"),uo&&Oo),"".concat(gn,"-ellipsis"),mi),"".concat(gn,"-with-append"),Tr),"".concat(gn,"-fix-sticky"),(wa||to)&&Go&&Oo),(0,dt.Z)(Fi,"".concat(gn,"-row-hover"),!Ho&&Pr)),br.className,Ho==null?void 0:Ho.className),Do={};zi&&(Do.textAlign=zi);var ho=(0,nt.Z)((0,nt.Z)((0,nt.Z)((0,nt.Z)({},Ho==null?void 0:Ho.style),ca),Do),br.style),na=pr;return(0,qe.Z)(na)==="object"&&!Array.isArray(na)&&!Te.isValidElement(na)&&(na=null),mi&&(tn||Xr)&&(na=Te.createElement("span",{className:"".concat(gn,"-content")},na)),Te.createElement(Vn,(0,Ye.Z)({},Ho,br,{className:Jo,style:ho,title:Mo,scope:xi,onMouseEnter:pa?Qr:void 0,onMouseLeave:pa?mr:void 0,colSpan:Kr!==1?Kr:null,rowSpan:Ut!==1?Ut:null}),Tr,na)}var kt=Te.memo(On);function jn(cn,Fn,an,Je,ci){var Qn=an[cn]||{},yi=an[Fn]||{},Ci,Fi;Qn.fixed==="left"?Ci=Je.left[ci==="rtl"?Fn:cn]:yi.fixed==="right"&&(Fi=Je.right[ci==="rtl"?cn:Fn]);var Vn=!1,pi=!1,mi=!1,xi=!1,bi=an[Fn+1],tr=an[cn-1],zi=bi&&!bi.fixed||tr&&!tr.fixed||an.every(function(_r){return _r.fixed==="left"});if(ci==="rtl"){if(Ci!==void 0){var Bi=tr&&tr.fixed==="left";xi=!Bi&&zi}else if(Fi!==void 0){var Ln=bi&&bi.fixed==="right";mi=!Ln&&zi}}else if(Ci!==void 0){var Oi=bi&&bi.fixed==="left";Vn=!Oi&&zi}else if(Fi!==void 0){var ar=tr&&tr.fixed==="right";pi=!ar&&zi}return{fixLeft:Ci,fixRight:Fi,lastFixLeft:Vn,firstFixRight:pi,lastFixRight:mi,firstFixLeft:xi,isSticky:Je.isSticky}}var ai=Te.createContext({}),et=ai;function De(cn){var Fn=cn.className,an=cn.index,Je=cn.children,ci=cn.colSpan,Qn=ci===void 0?1:ci,yi=cn.rowSpan,Ci=cn.align,Fi=Qe(Ae,["prefixCls","direction"]),Vn=Fi.prefixCls,pi=Fi.direction,mi=Te.useContext(et),xi=mi.scrollColumnIndex,bi=mi.stickyOffsets,tr=mi.flattenColumns,zi=an+Qn-1,Bi=zi+1===xi?Qn+1:Qn,Ln=jn(an,an+Bi-1,tr,bi,pi);return Te.createElement(kt,(0,Ye.Z)({className:Fn,index:an,component:"td",prefixCls:Vn,record:null,dataIndex:null,align:Ci,colSpan:Bi,rowSpan:yi,render:function(){return Je}},Ln))}var ke=ue(74416),Xe=["children"];function ut(cn){var Fn=cn.children,an=(0,ke.Z)(cn,Xe);return Te.createElement("tr",an,Fn)}function Ue(cn){var Fn=cn.children;return Fn}Ue.Row=ut,Ue.Cell=De;var gt=Ue;function _t(cn){var Fn=cn.children,an=cn.stickyOffsets,Je=cn.flattenColumns,ci=Qe(Ae,"prefixCls"),Qn=Je.length-1,yi=Je[Qn],Ci=Te.useMemo(function(){return{stickyOffsets:an,flattenColumns:Je,scrollColumnIndex:yi!=null&&yi.scrollbar?Qn:null}},[yi,Je,Qn,an]);return Te.createElement(et.Provider,{value:Ci},Te.createElement("tfoot",{className:"".concat(ci,"-summary")},Fn))}var bn=ge(_t),xn=gt,Lt=ue(29301),Zt=ue(29194),Vt=ue(24514),fn=ue(75152),Pn=ue(26112);function yn(cn,Fn,an,Je,ci,Qn,yi){cn.push({record:Fn,indent:an,index:yi});var Ci=Qn(Fn),Fi=ci==null?void 0:ci.has(Ci);if(Fn&&Array.isArray(Fn[Je])&&Fi)for(var Vn=0;Vn<Fn[Je].length;Vn+=1)yn(cn,Fn[Je][Vn],an+1,Je,ci,Qn,Vn)}function Mt(cn,Fn,an,Je){var ci=Te.useMemo(function(){if(an!=null&&an.size){for(var Qn=[],yi=0;yi<(cn==null?void 0:cn.length);yi+=1){var Ci=cn[yi];yn(Qn,Ci,0,Fn,an,Je,yi)}return Qn}return cn==null?void 0:cn.map(function(Fi,Vn){return{record:Fi,indent:0,index:Vn}})},[cn,Fn,an,Je]);return ci}function zn(cn,Fn,an,Je){var ci=Qe(Ae,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),Qn=ci.flattenColumns,yi=ci.expandableType,Ci=ci.expandedKeys,Fi=ci.childrenColumnName,Vn=ci.onTriggerExpand,pi=ci.rowExpandable,mi=ci.onRow,xi=ci.expandRowByClick,bi=ci.rowClassName,tr=yi==="nest",zi=yi==="row"&&(!pi||pi(cn)),Bi=zi||tr,Ln=Ci&&Ci.has(Fn),Oi=Fi&&cn&&cn[Fi],ar=(0,_n.zX)(Vn),_r=mi==null?void 0:mi(cn,an),Lr=_r==null?void 0:_r.onClick,Wr=function(vo){xi&&Bi&&Vn(cn,vo);for(var ra=arguments.length,tn=new Array(ra>1?ra-1:0),Xr=1;Xr<ra;Xr++)tn[Xr-1]=arguments[Xr];Lr==null||Lr.apply(void 0,[vo].concat(tn))},Hr;typeof bi=="string"?Hr=bi:typeof bi=="function"&&(Hr=bi(cn,an,Je));var jr=ct(Qn);return(0,nt.Z)((0,nt.Z)({},ci),{},{columnsKey:jr,nestExpandable:tr,expanded:Ln,hasNestChildren:Oi,record:cn,onTriggerExpand:ar,rowSupportExpand:zi,expandable:Bi,rowProps:(0,nt.Z)((0,nt.Z)({},_r),{},{className:bt()(Hr,_r==null?void 0:_r.className),onClick:Wr})})}function qn(cn){var Fn=cn.prefixCls,an=cn.children,Je=cn.component,ci=cn.cellComponent,Qn=cn.className,yi=cn.expanded,Ci=cn.colSpan,Fi=cn.isEmpty,Vn=Qe(Ae,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),pi=Vn.scrollbarSize,mi=Vn.fixHeader,xi=Vn.fixColumn,bi=Vn.componentWidth,tr=Vn.horizonScroll,zi=an;return(Fi?tr&&bi:xi)&&(zi=Te.createElement("div",{style:{width:bi-(mi&&!Fi?pi:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(Fn,"-expanded-row-fixed")},zi)),Te.createElement(Je,{className:Qn,style:{display:yi?null:"none"}},Te.createElement(kt,{component:ci,prefixCls:Fn,colSpan:Ci},zi))}var Rn=qn;function Zn(cn){var Fn=cn.prefixCls,an=cn.record,Je=cn.onExpand,ci=cn.expanded,Qn=cn.expandable,yi="".concat(Fn,"-row-expand-icon");if(!Qn)return Te.createElement("span",{className:bt()(yi,"".concat(Fn,"-row-spaced"))});var Ci=function(Vn){Je(an,Vn),Vn.stopPropagation()};return Te.createElement("span",{className:bt()(yi,(0,dt.Z)((0,dt.Z)({},"".concat(Fn,"-row-expanded"),ci),"".concat(Fn,"-row-collapsed"),!ci)),onClick:Ci})}function Ai(cn,Fn,an){var Je=[];function ci(Qn){(Qn||[]).forEach(function(yi,Ci){Je.push(Fn(yi,Ci)),ci(yi[an])})}return ci(cn),Je}function Yn(cn,Fn,an,Je){return typeof cn=="string"?cn:typeof cn=="function"?cn(Fn,an,Je):""}function Et(cn,Fn,an,Je,ci){var Qn=cn.record,yi=cn.prefixCls,Ci=cn.columnsKey,Fi=cn.fixedInfoList,Vn=cn.expandIconColumnIndex,pi=cn.nestExpandable,mi=cn.indentSize,xi=cn.expandIcon,bi=cn.expanded,tr=cn.hasNestChildren,zi=cn.onTriggerExpand,Bi=Ci[an],Ln=Fi[an],Oi;an===(Vn||0)&&pi&&(Oi=Te.createElement(Te.Fragment,null,Te.createElement("span",{style:{paddingLeft:"".concat(mi*Je,"px")},className:"".concat(yi,"-row-indent indent-level-").concat(Je)}),xi({prefixCls:yi,expanded:bi,expandable:tr,record:Qn,onExpand:zi})));var ar;return Fn.onCell&&(ar=Fn.onCell(Qn,ci)),{key:Bi,fixedInfo:Ln,appendCellNode:Oi,additionalCellProps:ar||{}}}function vi(cn){var Fn=cn.className,an=cn.style,Je=cn.record,ci=cn.index,Qn=cn.renderIndex,yi=cn.rowKey,Ci=cn.indent,Fi=Ci===void 0?0:Ci,Vn=cn.rowComponent,pi=cn.cellComponent,mi=cn.scopeCellComponent,xi=zn(Je,yi,ci,Fi),bi=xi.prefixCls,tr=xi.flattenColumns,zi=xi.expandedRowClassName,Bi=xi.expandedRowRender,Ln=xi.rowProps,Oi=xi.expanded,ar=xi.rowSupportExpand,_r=Te.useRef(!1);_r.current||(_r.current=Oi);var Lr=Yn(zi,Je,ci,Fi),Wr=Te.createElement(Vn,(0,Ye.Z)({},Ln,{"data-row-key":yi,className:bt()(Fn,"".concat(bi,"-row"),"".concat(bi,"-row-level-").concat(Fi),Ln==null?void 0:Ln.className,(0,dt.Z)({},Lr,Fi>=1)),style:(0,nt.Z)((0,nt.Z)({},an),Ln==null?void 0:Ln.style)}),tr.map(function(So,vo){var ra=So.render,tn=So.dataIndex,Xr=So.className,uo=Et(xi,So,vo,Fi,ci),Tr=uo.key,ao=uo.fixedInfo,br=uo.appendCellNode,Go=uo.additionalCellProps;return Te.createElement(kt,(0,Ye.Z)({className:Xr,ellipsis:So.ellipsis,align:So.align,scope:So.rowScope,component:So.rowScope?mi:pi,prefixCls:bi,key:Tr,record:Je,index:ci,renderIndex:Qn,dataIndex:tn,render:ra,shouldCellUpdate:So.shouldCellUpdate},ao,{appendNode:br,additionalProps:Go}))})),Hr;if(ar&&(_r.current||Oi)){var jr=Bi(Je,ci,Fi+1,Oi);Hr=Te.createElement(Rn,{expanded:Oi,className:bt()("".concat(bi,"-expanded-row"),"".concat(bi,"-expanded-row-level-").concat(Fi+1),Lr),prefixCls:bi,component:Vn,cellComponent:pi,colSpan:tr.length,isEmpty:!1},jr)}return Te.createElement(Te.Fragment,null,Wr,Hr)}var Ri=ge(vi);function sn(cn){var Fn=cn.columnKey,an=cn.onColumnResize,Je=Te.useRef();return Te.useEffect(function(){Je.current&&an(Fn,Je.current.offsetWidth)},[]),Te.createElement(Lt.Z,{data:Fn},Te.createElement("td",{ref:Je,style:{padding:0,border:0,height:0}},Te.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}function Xi(cn){var Fn=cn.prefixCls,an=cn.columnsKey,Je=cn.onColumnResize;return Te.createElement("tr",{"aria-hidden":"true",className:"".concat(Fn,"-measure-row"),style:{height:0,fontSize:0}},Te.createElement(Lt.Z.Collection,{onBatchResize:function(Qn){Qn.forEach(function(yi){var Ci=yi.data,Fi=yi.size;Je(Ci,Fi.offsetWidth)})}},an.map(function(ci){return Te.createElement(sn,{key:ci,columnKey:ci,onColumnResize:Je})})))}function cr(cn){var Fn=cn.data,an=cn.measureColumnWidth,Je=Qe(Ae,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),ci=Je.prefixCls,Qn=Je.getComponent,yi=Je.onColumnResize,Ci=Je.flattenColumns,Fi=Je.getRowKey,Vn=Je.expandedKeys,pi=Je.childrenColumnName,mi=Je.emptyNode,xi=Mt(Fn,pi,Vn,Fi),bi=Te.useRef({renderWithProps:!1}),tr=Qn(["body","wrapper"],"tbody"),zi=Qn(["body","row"],"tr"),Bi=Qn(["body","cell"],"td"),Ln=Qn(["body","cell"],"th"),Oi;Fn.length?Oi=xi.map(function(_r,Lr){var Wr=_r.record,Hr=_r.indent,jr=_r.index,So=Fi(Wr,Lr);return Te.createElement(Ri,{key:So,rowKey:So,record:Wr,index:Lr,renderIndex:jr,rowComponent:zi,cellComponent:Bi,scopeCellComponent:Ln,indent:Hr})}):Oi=Te.createElement(Rn,{expanded:!0,className:"".concat(ci,"-placeholder"),prefixCls:ci,component:zi,cellComponent:Bi,colSpan:Ci.length,isEmpty:!0},mi);var ar=ct(Ci);return Te.createElement(Qt.Provider,{value:bi.current},Te.createElement(tr,{className:"".concat(ci,"-tbody")},an&&Te.createElement(Xi,{prefixCls:ci,columnsKey:ar,onColumnResize:yi}),Oi))}var fr=ge(cr),kn=ue(90494),Or=["columnType"];function kr(cn){for(var Fn=cn.colWidths,an=cn.columns,Je=cn.columCount,ci=Qe(Ae,["tableLayout"]),Qn=ci.tableLayout,yi=[],Ci=Je||an.length,Fi=!1,Vn=Ci-1;Vn>=0;Vn-=1){var pi=Fn[Vn],mi=an&&an[Vn],xi=void 0,bi=void 0;if(mi&&(xi=mi[kn.v],Qn==="auto"&&(bi=mi.minWidth)),pi||bi||xi||Fi){var tr=xi||{},zi=tr.columnType,Bi=(0,ke.Z)(tr,Or);yi.unshift(Te.createElement("col",(0,Ye.Z)({key:Vn,style:{width:pi,minWidth:bi}},Bi))),Fi=!0}}return Te.createElement("colgroup",null,yi)}var Wi=kr,lr=ue(80702),wr=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function Ie(cn,Fn){return(0,Te.useMemo)(function(){for(var an=[],Je=0;Je<Fn;Je+=1){var ci=cn[Je];if(ci!==void 0)an[Je]=ci;else return null}return an},[cn.join("_"),Fn])}var Yi=Te.forwardRef(function(cn,Fn){var an=cn.className,Je=cn.noData,ci=cn.columns,Qn=cn.flattenColumns,yi=cn.colWidths,Ci=cn.columCount,Fi=cn.stickyOffsets,Vn=cn.direction,pi=cn.fixHeader,mi=cn.stickyTopOffset,xi=cn.stickyBottomOffset,bi=cn.stickyClassName,tr=cn.onScroll,zi=cn.maxContentScroll,Bi=cn.children,Ln=(0,ke.Z)(cn,wr),Oi=Qe(Ae,["prefixCls","scrollbarSize","isSticky","getComponent"]),ar=Oi.prefixCls,_r=Oi.scrollbarSize,Lr=Oi.isSticky,Wr=Oi.getComponent,Hr=Wr(["header","table"],"table"),jr=Lr&&!pi?0:_r,So=Te.useRef(null),vo=Te.useCallback(function(Go){(0,yt.mH)(Fn,Go),(0,yt.mH)(So,Go)},[]);Te.useEffect(function(){var Go;function gn(qr){var Oo=qr,Ga=Oo.currentTarget,pa=Oo.deltaX;pa&&(tr({currentTarget:Ga,scrollLeft:Ga.scrollLeft+pa}),qr.preventDefault())}return(Go=So.current)===null||Go===void 0||Go.addEventListener("wheel",gn,{passive:!1}),function(){var qr;(qr=So.current)===null||qr===void 0||qr.removeEventListener("wheel",gn)}},[]);var ra=Te.useMemo(function(){return Qn.every(function(Go){return Go.width})},[Qn]),tn=Qn[Qn.length-1],Xr={fixed:tn?tn.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(ar,"-cell-scrollbar")}}},uo=(0,Te.useMemo)(function(){return jr?[].concat((0,lr.Z)(ci),[Xr]):ci},[jr,ci]),Tr=(0,Te.useMemo)(function(){return jr?[].concat((0,lr.Z)(Qn),[Xr]):Qn},[jr,Qn]),ao=(0,Te.useMemo)(function(){var Go=Fi.right,gn=Fi.left;return(0,nt.Z)((0,nt.Z)({},Fi),{},{left:Vn==="rtl"?[].concat((0,lr.Z)(gn.map(function(qr){return qr+jr})),[0]):gn,right:Vn==="rtl"?Go:[].concat((0,lr.Z)(Go.map(function(qr){return qr+jr})),[0]),isSticky:Lr})},[jr,Fi,Lr]),br=Ie(yi,Ci);return Te.createElement("div",{style:(0,nt.Z)({overflow:"hidden"},Lr?{top:mi,bottom:xi}:{}),ref:vo,className:bt()(an,(0,dt.Z)({},bi,!!bi))},Te.createElement(Hr,{style:{tableLayout:"fixed",visibility:Je||br?null:"hidden"}},(!Je||!zi||ra)&&Te.createElement(Wi,{colWidths:br?[].concat((0,lr.Z)(br),[jr]):[],columCount:Ci+1,columns:Tr}),Bi((0,nt.Z)((0,nt.Z)({},Ln),{},{stickyOffsets:ao,columns:uo,flattenColumns:Tr}))))}),Ei=Te.memo(Yi),rr=function(Fn){var an=Fn.cells,Je=Fn.stickyOffsets,ci=Fn.flattenColumns,Qn=Fn.rowComponent,yi=Fn.cellComponent,Ci=Fn.onHeaderRow,Fi=Fn.index,Vn=Qe(Ae,["prefixCls","direction"]),pi=Vn.prefixCls,mi=Vn.direction,xi;Ci&&(xi=Ci(an.map(function(tr){return tr.column}),Fi));var bi=ct(an.map(function(tr){return tr.column}));return Te.createElement(Qn,xi,an.map(function(tr,zi){var Bi=tr.column,Ln=jn(tr.colStart,tr.colEnd,ci,Je,mi),Oi;return Bi&&Bi.onHeaderCell&&(Oi=tr.column.onHeaderCell(Bi)),Te.createElement(kt,(0,Ye.Z)({},tr,{scope:Bi.title?tr.colSpan>1?"colgroup":"col":null,ellipsis:Bi.ellipsis,align:Bi.align,component:yi,prefixCls:pi,key:bi[zi]},Ln,{additionalProps:Oi,rowType:"header"}))}))},Br=rr;function Gr(cn){var Fn=[];function an(yi,Ci){var Fi=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;Fn[Fi]=Fn[Fi]||[];var Vn=Ci,pi=yi.filter(Boolean).map(function(mi){var xi={key:mi.key,className:mi.className||"",children:mi.title,column:mi,colStart:Vn},bi=1,tr=mi.children;return tr&&tr.length>0&&(bi=an(tr,Vn,Fi+1).reduce(function(zi,Bi){return zi+Bi},0),xi.hasSubColumns=!0),"colSpan"in mi&&(bi=mi.colSpan),"rowSpan"in mi&&(xi.rowSpan=mi.rowSpan),xi.colSpan=bi,xi.colEnd=xi.colStart+bi-1,Fn[Fi].push(xi),Vn+=bi,bi});return pi}an(cn,0);for(var Je=Fn.length,ci=function(Ci){Fn[Ci].forEach(function(Fi){!("rowSpan"in Fi)&&!Fi.hasSubColumns&&(Fi.rowSpan=Je-Ci)})},Qn=0;Qn<Je;Qn+=1)ci(Qn);return Fn}var yr=function(Fn){var an=Fn.stickyOffsets,Je=Fn.columns,ci=Fn.flattenColumns,Qn=Fn.onHeaderRow,yi=Qe(Ae,["prefixCls","getComponent"]),Ci=yi.prefixCls,Fi=yi.getComponent,Vn=Te.useMemo(function(){return Gr(Je)},[Je]),pi=Fi(["header","wrapper"],"thead"),mi=Fi(["header","row"],"tr"),xi=Fi(["header","cell"],"th");return Te.createElement(pi,{className:"".concat(Ci,"-thead")},Vn.map(function(bi,tr){var zi=Te.createElement(Br,{key:tr,flattenColumns:ci,cells:bi,stickyOffsets:an,rowComponent:mi,cellComponent:xi,onHeaderRow:Qn,index:tr});return zi}))},Vi=ge(yr),hi=ue(78612);function Jt(cn,Fn,an){var Je=(0,kn.g)(cn),ci=Je.expandIcon,Qn=Je.expandedRowKeys,yi=Je.defaultExpandedRowKeys,Ci=Je.defaultExpandAllRows,Fi=Je.expandedRowRender,Vn=Je.onExpand,pi=Je.onExpandedRowsChange,mi=Je.childrenColumnName,xi=ci||Zn,bi=mi||"children",tr=Te.useMemo(function(){return Fi?"row":cn.expandable&&cn.internalHooks===ce.R&&cn.expandable.__PARENT_RENDER_ICON__||Fn.some(function(Lr){return Lr&&(0,qe.Z)(Lr)==="object"&&Lr[bi]})?"nest":!1},[!!Fi,Fn]),zi=Te.useState(function(){return yi||(Ci?Ai(Fn,an,bi):[])}),Bi=(0,Pe.Z)(zi,2),Ln=Bi[0],Oi=Bi[1],ar=Te.useMemo(function(){return new Set(Qn||Ln||[])},[Qn,Ln]),_r=Te.useCallback(function(Lr){var Wr=an(Lr,Fn.indexOf(Lr)),Hr,jr=ar.has(Wr);jr?(ar.delete(Wr),Hr=(0,lr.Z)(ar)):Hr=[].concat((0,lr.Z)(ar),[Wr]),Oi(Hr),Vn&&Vn(!jr,Lr),pi&&pi(Hr)},[an,ar,Fn,Vn,pi]);return[Je,tr,ar,xi,bi,_r]}function Wt(cn,Fn,an){var Je=cn.map(function(ci,Qn){return jn(Qn,Qn,cn,Fn,an)});return(0,It.Z)(function(){return Je},[Je],function(ci,Qn){return!(0,We.Z)(ci,Qn)})}function jt(cn){var Fn=(0,Te.useRef)(cn),an=(0,Te.useState)({}),Je=(0,Pe.Z)(an,2),ci=Je[1],Qn=(0,Te.useRef)(null),yi=(0,Te.useRef)([]);function Ci(Fi){yi.current.push(Fi);var Vn=Promise.resolve();Qn.current=Vn,Vn.then(function(){if(Qn.current===Vn){var pi=yi.current,mi=Fn.current;yi.current=[],pi.forEach(function(xi){Fn.current=xi(Fn.current)}),Qn.current=null,mi!==Fn.current&&ci({})}})}return(0,Te.useEffect)(function(){return function(){Qn.current=null}},[]),[Fn.current,Ci]}function gi(cn){var Fn=(0,Te.useRef)(cn||null),an=(0,Te.useRef)();function Je(){window.clearTimeout(an.current)}function ci(yi){Fn.current=yi,Je(),an.current=window.setTimeout(function(){Fn.current=null,an.current=void 0},100)}function Qn(){return Fn.current}return(0,Te.useEffect)(function(){return Je},[]),[ci,Qn]}function ii(){var cn=Te.useState(-1),Fn=(0,Pe.Z)(cn,2),an=Fn[0],Je=Fn[1],ci=Te.useState(-1),Qn=(0,Pe.Z)(ci,2),yi=Qn[0],Ci=Qn[1],Fi=Te.useCallback(function(Vn,pi){Je(Vn),Ci(pi)},[]);return[an,yi,Fi]}var Pi=ue(47273),In=(0,Pi.Z)()?window:null;function fi(cn,Fn){var an=(0,qe.Z)(cn)==="object"?cn:{},Je=an.offsetHeader,ci=Je===void 0?0:Je,Qn=an.offsetSummary,yi=Qn===void 0?0:Qn,Ci=an.offsetScroll,Fi=Ci===void 0?0:Ci,Vn=an.getContainer,pi=Vn===void 0?function(){return In}:Vn,mi=pi()||In,xi=!!cn;return Te.useMemo(function(){return{isSticky:xi,stickyClassName:xi?"".concat(Fn,"-sticky-holder"):"",offsetHeader:ci,offsetSummary:yi,offsetScroll:Fi,container:mi}},[xi,Fi,ci,yi,Fn,mi])}function on(cn,Fn,an){var Je=(0,Te.useMemo)(function(){var ci=Fn.length,Qn=function(Vn,pi,mi){for(var xi=[],bi=0,tr=Vn;tr!==pi;tr+=mi)xi.push(bi),Fn[tr].fixed&&(bi+=cn[tr]||0);return xi},yi=Qn(0,ci,1),Ci=Qn(ci-1,-1,-1).reverse();return an==="rtl"?{left:Ci,right:yi}:{left:yi,right:Ci}},[cn,Fn,an]);return Je}var Gt=on;function li(cn){var Fn=cn.className,an=cn.children;return Te.createElement("div",{className:Fn},an)}var vt=li,Sn=ue(8224),ri=ue(16089),ki=ue(76846);function zt(cn){var Fn=(0,ki.bn)(cn),an=Fn.getBoundingClientRect(),Je=document.documentElement;return{left:an.left+(window.pageXOffset||Je.scrollLeft)-(Je.clientLeft||document.body.clientLeft||0),top:an.top+(window.pageYOffset||Je.scrollTop)-(Je.clientTop||document.body.clientTop||0)}}var wn=function(Fn,an){var Je,ci,Qn=Fn.scrollBodyRef,yi=Fn.onScroll,Ci=Fn.offsetScroll,Fi=Fn.container,Vn=Fn.direction,pi=Qe(Ae,"prefixCls"),mi=((Je=Qn.current)===null||Je===void 0?void 0:Je.scrollWidth)||0,xi=((ci=Qn.current)===null||ci===void 0?void 0:ci.clientWidth)||0,bi=mi&&xi*(xi/mi),tr=Te.useRef(),zi=jt({scrollLeft:0,isHiddenScrollBar:!0}),Bi=(0,Pe.Z)(zi,2),Ln=Bi[0],Oi=Bi[1],ar=Te.useRef({delta:0,x:0}),_r=Te.useState(!1),Lr=(0,Pe.Z)(_r,2),Wr=Lr[0],Hr=Lr[1],jr=Te.useRef(null);Te.useEffect(function(){return function(){ri.Z.cancel(jr.current)}},[]);var So=function(){Hr(!1)},vo=function(Tr){Tr.persist(),ar.current.delta=Tr.pageX-Ln.scrollLeft,ar.current.x=0,Hr(!0),Tr.preventDefault()},ra=function(Tr){var ao,br=Tr||((ao=window)===null||ao===void 0?void 0:ao.event),Go=br.buttons;if(!Wr||Go===0){Wr&&Hr(!1);return}var gn=ar.current.x+Tr.pageX-ar.current.x-ar.current.delta,qr=Vn==="rtl";gn=Math.max(qr?bi-xi:0,Math.min(qr?0:xi-bi,gn));var Oo=!qr||Math.abs(gn)+Math.abs(bi)<xi;Oo&&(yi({scrollLeft:gn/xi*(mi+2)}),ar.current.x=Tr.pageX)},tn=function(){ri.Z.cancel(jr.current),jr.current=(0,ri.Z)(function(){if(Qn.current){var Tr=zt(Qn.current).top,ao=Tr+Qn.current.offsetHeight,br=Fi===window?document.documentElement.scrollTop+window.innerHeight:zt(Fi).top+Fi.clientHeight;ao-(0,fn.Z)()<=br||Tr>=br-Ci?Oi(function(Go){return(0,nt.Z)((0,nt.Z)({},Go),{},{isHiddenScrollBar:!0})}):Oi(function(Go){return(0,nt.Z)((0,nt.Z)({},Go),{},{isHiddenScrollBar:!1})})}})},Xr=function(Tr){Oi(function(ao){return(0,nt.Z)((0,nt.Z)({},ao),{},{scrollLeft:Tr/mi*xi||0})})};return Te.useImperativeHandle(an,function(){return{setScrollLeft:Xr,checkScrollBarVisible:tn}}),Te.useEffect(function(){var uo=(0,Sn.Z)(document.body,"mouseup",So,!1),Tr=(0,Sn.Z)(document.body,"mousemove",ra,!1);return tn(),function(){uo.remove(),Tr.remove()}},[bi,Wr]),Te.useEffect(function(){if(Qn.current){for(var uo=[],Tr=(0,ki.bn)(Qn.current);Tr;)uo.push(Tr),Tr=Tr.parentElement;return uo.forEach(function(ao){return ao.addEventListener("scroll",tn,!1)}),window.addEventListener("resize",tn,!1),window.addEventListener("scroll",tn,!1),Fi.addEventListener("scroll",tn,!1),function(){uo.forEach(function(ao){return ao.removeEventListener("scroll",tn)}),window.removeEventListener("resize",tn),window.removeEventListener("scroll",tn),Fi.removeEventListener("scroll",tn)}}},[Fi]),Te.useEffect(function(){Ln.isHiddenScrollBar||Oi(function(uo){var Tr=Qn.current;return Tr?(0,nt.Z)((0,nt.Z)({},uo),{},{scrollLeft:Tr.scrollLeft/Tr.scrollWidth*Tr.clientWidth}):uo})},[Ln.isHiddenScrollBar]),mi<=xi||!bi||Ln.isHiddenScrollBar?null:Te.createElement("div",{style:{height:(0,fn.Z)(),width:xi,bottom:Ci},className:"".concat(pi,"-sticky-scroll")},Te.createElement("div",{onMouseDown:vo,ref:tr,className:bt()("".concat(pi,"-sticky-scroll-bar"),(0,dt.Z)({},"".concat(pi,"-sticky-scroll-bar-active"),Wr)),style:{width:"".concat(bi,"px"),transform:"translate3d(".concat(Ln.scrollLeft,"px, 0, 0)")}}))},oi=Te.forwardRef(wn);function qt(cn){return null}var Be=qt;function Mi(cn){return null}var ui=Mi,Tn="rc-table",Ki=[],er={};function or(){return"No Data"}function Cn(cn,Fn){var an=(0,nt.Z)({rowKey:"key",prefixCls:Tn,emptyText:or},cn),Je=an.prefixCls,ci=an.className,Qn=an.rowClassName,yi=an.style,Ci=an.data,Fi=an.rowKey,Vn=an.scroll,pi=an.tableLayout,mi=an.direction,xi=an.title,bi=an.footer,tr=an.summary,zi=an.caption,Bi=an.id,Ln=an.showHeader,Oi=an.components,ar=an.emptyText,_r=an.onRow,Lr=an.onHeaderRow,Wr=an.onScroll,Hr=an.internalHooks,jr=an.transformColumns,So=an.internalRefs,vo=an.tailor,ra=an.getContainerWidth,tn=an.sticky,Xr=an.rowHoverable,uo=Xr===void 0?!0:Xr,Tr=Ci||Ki,ao=!!Tr.length,br=Hr===ce.R,Go=Te.useCallback(function(_o,$o){return(0,Ht.Z)(Oi,_o)||$o},[Oi]),gn=Te.useMemo(function(){return typeof Fi=="function"?Fi:function(_o){var $o=_o&&_o[Fi];return $o}},[Fi]),qr=Go(["body"]),Oo=ii(),Ga=(0,Pe.Z)(Oo,3),pa=Ga[0],us=Ga[1],Za=Ga[2],pr=Jt(an,Tr,gn),Ho=(0,Pe.Z)(pr,6),ca=Ho[0],wa=Ho[1],to=Ho[2],Kr=Ho[3],Ut=Ho[4],Ni=Ho[5],Qi=Vn==null?void 0:Vn.x,Pr=Te.useState(0),co=(0,Pe.Z)(Pr,2),Qr=co[0],mr=co[1],Mo=(0,hi.Z)((0,nt.Z)((0,nt.Z)((0,nt.Z)({},an),ca),{},{expandable:!!ca.expandedRowRender,columnTitle:ca.columnTitle,expandedKeys:to,getRowKey:gn,onTriggerExpand:Ni,expandIcon:Kr,expandIconColumnIndex:ca.expandIconColumnIndex,direction:mi,scrollWidth:br&&vo&&typeof Qi=="number"?Qi:null,clientWidth:Qr}),br?jr:null),Jo=(0,Pe.Z)(Mo,4),Do=Jo[0],ho=Jo[1],na=Jo[2],as=Jo[3],Po=na!=null?na:Qi,ka=Te.useMemo(function(){return{columns:Do,flattenColumns:ho}},[Do,ho]),bs=Te.useRef(),Ds=Te.useRef(),fa=Te.useRef(),Gs=Te.useRef();Te.useImperativeHandle(Fn,function(){return{nativeElement:bs.current,scrollTo:function($o){var Ta;if(fa.current instanceof HTMLElement){var hs=$o.index,ts=$o.top,ml=$o.key;if(rn(ts)){var vl;(vl=fa.current)===null||vl===void 0||vl.scrollTo({top:ts})}else{var yl,el=ml!=null?ml:gn(Tr[hs]);(yl=fa.current.querySelector('[data-row-key="'.concat(el,'"]')))===null||yl===void 0||yl.scrollIntoView()}}else(Ta=fa.current)!==null&&Ta!==void 0&&Ta.scrollTo&&fa.current.scrollTo($o)}}});var pl=Te.useRef(),Es=Te.useState(!1),As=(0,Pe.Z)(Es,2),Fs=As[0],Bl=As[1],oc=Te.useState(!1),Uu=(0,Pe.Z)(oc,2),Da=Uu[0],zu=Uu[1],ac=jt(new Map),Cu=(0,Pe.Z)(ac,2),Tu=Cu[0],ms=Cu[1],ws=ct(ho),Wa=ws.map(function(_o){return Tu.get(_o)}),Xa=Te.useMemo(function(){return Wa},[Wa.join("_")]),ia=Gt(Xa,ho,mi),Eo=Vn&&at(Vn.y),Fo=Vn&&at(Po)||!!ca.fixed,Qa=Fo&&ho.some(function(_o){var $o=_o.fixed;return $o}),La=Te.useRef(),Fa=fi(tn,Je),dr=Fa.isSticky,$s=Fa.offsetHeader,Bt=Fa.offsetSummary,Jn=Fa.offsetScroll,Ql=Fa.stickyClassName,Hu=Fa.container,Va=Te.useMemo(function(){return tr==null?void 0:tr(Tr)},[tr,Tr]),Ws=(Eo||dr)&&Te.isValidElement(Va)&&Va.type===gt&&Va.props.fixed,uu,Au,ju;Eo&&(Au={overflowY:ao?"scroll":"auto",maxHeight:Vn.y}),Fo&&(uu={overflowX:"auto"},Eo||(Au={overflowY:"hidden"}),ju={width:Po===!0?"auto":Po,minWidth:"100%"});var ba=Te.useCallback(function(_o,$o){(0,Zt.Z)(bs.current)&&ms(function(Ta){if(Ta.get(_o)!==$o){var hs=new Map(Ta);return hs.set(_o,$o),hs}return Ta})},[]),$r=gi(null),cs=(0,Pe.Z)($r,2),Ms=cs[0],Xo=cs[1];function No(_o,$o){$o&&(typeof $o=="function"?$o(_o):$o.scrollLeft!==_o&&($o.scrollLeft=_o,$o.scrollLeft!==_o&&setTimeout(function(){$o.scrollLeft=_o},0)))}var Ca=(0,Re.Z)(function(_o){var $o=_o.currentTarget,Ta=_o.scrollLeft,hs=mi==="rtl",ts=typeof Ta=="number"?Ta:$o.scrollLeft,ml=$o||er;if(!Xo()||Xo()===ml){var vl;Ms(ml),No(ts,Ds.current),No(ts,fa.current),No(ts,pl.current),No(ts,(vl=La.current)===null||vl===void 0?void 0:vl.setScrollLeft)}var yl=$o||Ds.current;if(yl){var el=br&&vo&&typeof Po=="number"?Po:yl.scrollWidth,Ul=yl.clientWidth;if(el===Ul){Bl(!1),zu(!1);return}hs?(Bl(-ts<el-Ul),zu(-ts>0)):(Bl(ts>0),zu(ts<el-Ul))}}),Bs=(0,Re.Z)(function(_o){Ca(_o),Wr==null||Wr(_o)}),ma=function(){if(Fo&&fa.current){var $o;Ca({currentTarget:(0,ki.bn)(fa.current),scrollLeft:($o=fa.current)===null||$o===void 0?void 0:$o.scrollLeft})}else Bl(!1),zu(!1)},Vs=function($o){var Ta,hs=$o.width;(Ta=La.current)===null||Ta===void 0||Ta.checkScrollBarVisible();var ts=bs.current?bs.current.offsetWidth:hs;br&&ra&&bs.current&&(ts=ra(bs.current,ts)||ts),ts!==Qr&&(ma(),mr(ts))},es=Te.useRef(!1);Te.useEffect(function(){es.current&&ma()},[Fo,Ci,Do.length]),Te.useEffect(function(){es.current=!0},[]);var cu=Te.useState(0),qo=(0,Pe.Z)(cu,2),ds=qo[0],Wo=qo[1],la=Te.useState(!0),ga=(0,Pe.Z)(la,2),Ea=ga[0],Bo=ga[1];Te.useEffect(function(){(!vo||!br)&&(fa.current instanceof Element?Wo((0,fn.o)(fa.current).width):Wo((0,fn.o)(Gs.current).width)),Bo((0,Vt.G)("position","sticky"))},[]),Te.useEffect(function(){br&&So&&(So.body.current=fa.current)});var Gu=Te.useCallback(function(_o){return Te.createElement(Te.Fragment,null,Te.createElement(Vi,_o),Ws==="top"&&Te.createElement(bn,_o,Va))},[Ws,Va]),Vr=Te.useCallback(function(_o){return Te.createElement(bn,_o,Va)},[Va]),Qc=Go(["table"],"table"),jo=Te.useMemo(function(){return pi||(Qa?Po==="max-content"?"auto":"fixed":Eo||dr||ho.some(function(_o){var $o=_o.ellipsis;return $o})?"fixed":"auto")},[Eo,Qa,ho,pi,dr]),Lc,Pu={colWidths:Xa,columCount:ho.length,stickyOffsets:ia,onHeaderRow:Lr,fixHeader:Eo,scroll:Vn},Jl=Te.useMemo(function(){return ao?null:typeof ar=="function"?ar():ar},[ao,ar]),Ic=Te.createElement(fr,{data:Tr,measureColumnWidth:Eo||Fo||dr}),xc=Te.createElement(Wi,{colWidths:ho.map(function(_o){var $o=_o.width;return $o}),columns:ho}),Pl=zi!=null?Te.createElement("caption",{className:"".concat(Je,"-caption")},zi):void 0,Nl=(0,Pn.Z)(an,{data:!0}),Vo=(0,Pn.Z)(an,{aria:!0});if(Eo||dr){var Ps;typeof qr=="function"?(Ps=qr(Tr,{scrollbarSize:ds,ref:fa,onScroll:Ca}),Pu.colWidths=ho.map(function(_o,$o){var Ta=_o.width,hs=$o===ho.length-1?Ta-ds:Ta;return typeof hs=="number"&&!Number.isNaN(hs)?hs:0})):Ps=Te.createElement("div",{style:(0,nt.Z)((0,nt.Z)({},uu),Au),onScroll:Bs,ref:fa,className:bt()("".concat(Je,"-body"))},Te.createElement(Qc,(0,Ye.Z)({style:(0,nt.Z)((0,nt.Z)({},ju),{},{tableLayout:jo})},Vo),Pl,xc,Ic,!Ws&&Va&&Te.createElement(bn,{stickyOffsets:ia,flattenColumns:ho},Va)));var Wu=(0,nt.Z)((0,nt.Z)((0,nt.Z)({noData:!Tr.length,maxContentScroll:Fo&&Po==="max-content"},Pu),ka),{},{direction:mi,stickyClassName:Ql,onScroll:Ca});Lc=Te.createElement(Te.Fragment,null,Ln!==!1&&Te.createElement(Ei,(0,Ye.Z)({},Wu,{stickyTopOffset:$s,className:"".concat(Je,"-header"),ref:Ds}),Gu),Ps,Ws&&Ws!=="top"&&Te.createElement(Ei,(0,Ye.Z)({},Wu,{stickyBottomOffset:Bt,className:"".concat(Je,"-summary"),ref:pl}),Vr),dr&&fa.current&&fa.current instanceof Element&&Te.createElement(oi,{ref:La,offsetScroll:Jn,scrollBodyRef:fa,onScroll:Ca,container:Hu,direction:mi}))}else Lc=Te.createElement("div",{style:(0,nt.Z)((0,nt.Z)({},uu),Au),className:bt()("".concat(Je,"-content")),onScroll:Ca,ref:fa},Te.createElement(Qc,(0,Ye.Z)({style:(0,nt.Z)((0,nt.Z)({},ju),{},{tableLayout:jo})},Vo),Pl,xc,Ln!==!1&&Te.createElement(Vi,(0,Ye.Z)({},Pu,ka)),Ic,Va&&Te.createElement(bn,{stickyOffsets:ia,flattenColumns:ho},Va)));var kl=Te.createElement("div",(0,Ye.Z)({className:bt()(Je,ci,(0,dt.Z)((0,dt.Z)((0,dt.Z)((0,dt.Z)((0,dt.Z)((0,dt.Z)((0,dt.Z)((0,dt.Z)((0,dt.Z)((0,dt.Z)({},"".concat(Je,"-rtl"),mi==="rtl"),"".concat(Je,"-ping-left"),Fs),"".concat(Je,"-ping-right"),Da),"".concat(Je,"-layout-fixed"),pi==="fixed"),"".concat(Je,"-fixed-header"),Eo),"".concat(Je,"-fixed-column"),Qa),"".concat(Je,"-fixed-column-gapped"),Qa&&as),"".concat(Je,"-scroll-horizontal"),Fo),"".concat(Je,"-has-fix-left"),ho[0]&&ho[0].fixed),"".concat(Je,"-has-fix-right"),ho[ho.length-1]&&ho[ho.length-1].fixed==="right")),style:yi,id:Bi,ref:bs},Nl),xi&&Te.createElement(vt,{className:"".concat(Je,"-title")},xi(Tr)),Te.createElement("div",{ref:Gs,className:"".concat(Je,"-container")},Lc),bi&&Te.createElement(vt,{className:"".concat(Je,"-footer")},bi(Tr)));Fo&&(kl=Te.createElement(Lt.Z,{onResize:Vs},kl));var ql=Wt(ho,ia,mi),_l=Te.useMemo(function(){return{scrollX:Po,prefixCls:Je,getComponent:Go,scrollbarSize:ds,direction:mi,fixedInfoList:ql,isSticky:dr,supportSticky:Ea,componentWidth:Qr,fixHeader:Eo,fixColumn:Qa,horizonScroll:Fo,tableLayout:jo,rowClassName:Qn,expandedRowClassName:ca.expandedRowClassName,expandIcon:Kr,expandableType:wa,expandRowByClick:ca.expandRowByClick,expandedRowRender:ca.expandedRowRender,onTriggerExpand:Ni,expandIconColumnIndex:ca.expandIconColumnIndex,indentSize:ca.indentSize,allColumnsFixedLeft:ho.every(function(_o){return _o.fixed==="left"}),emptyNode:Jl,columns:Do,flattenColumns:ho,onColumnResize:ba,hoverStartRow:pa,hoverEndRow:us,onHover:Za,rowExpandable:ca.rowExpandable,onRow:_r,getRowKey:gn,expandedKeys:to,childrenColumnName:Ut,rowHoverable:uo}},[Po,Je,Go,ds,mi,ql,dr,Ea,Qr,Eo,Qa,Fo,jo,Qn,ca.expandedRowClassName,Kr,wa,ca.expandRowByClick,ca.expandedRowRender,Ni,ca.expandIconColumnIndex,ca.indentSize,Jl,Do,ho,ba,pa,us,Za,ca.rowExpandable,_r,gn,to,Ut,uo]);return Te.createElement(Ae.Provider,{value:_l},kl)}var Kt=Te.forwardRef(Cn);function sr(cn){return se(Kt,cn)}var ro=sr();ro.EXPAND_COLUMN=ce.w,ro.INTERNAL_HOOKS=ce.R,ro.Column=Be,ro.ColumnGroup=ui,ro.Summary=xn;var mn=ro,wi=ue(45680),_i=st(null),Ji=st(null);function Gi(cn,Fn,an){var Je=Fn||1;return an[cn+Je]-(an[cn]||0)}function ir(cn){var Fn=cn.rowInfo,an=cn.column,Je=cn.colIndex,ci=cn.indent,Qn=cn.index,yi=cn.component,Ci=cn.renderIndex,Fi=cn.record,Vn=cn.style,pi=cn.className,mi=cn.inverse,xi=cn.getHeight,bi=an.render,tr=an.dataIndex,zi=an.className,Bi=an.width,Ln=Qe(Ji,["columnsOffset"]),Oi=Ln.columnsOffset,ar=Et(Fn,an,Je,ci,Qn),_r=ar.key,Lr=ar.fixedInfo,Wr=ar.appendCellNode,Hr=ar.additionalCellProps,jr=Hr.style,So=Hr.colSpan,vo=So===void 0?1:So,ra=Hr.rowSpan,tn=ra===void 0?1:ra,Xr=Je-1,uo=Gi(Xr,vo,Oi),Tr=vo>1?Bi-uo:0,ao=(0,nt.Z)((0,nt.Z)((0,nt.Z)({},jr),Vn),{},{flex:"0 0 ".concat(uo,"px"),width:"".concat(uo,"px"),marginRight:Tr,pointerEvents:"auto"}),br=Te.useMemo(function(){return mi?tn<=1:vo===0||tn===0||tn>1},[tn,vo,mi]);br?ao.visibility="hidden":mi&&(ao.height=xi==null?void 0:xi(tn));var Go=br?function(){return null}:bi,gn={};return(tn===0||vo===0)&&(gn.rowSpan=1,gn.colSpan=1),Te.createElement(kt,(0,Ye.Z)({className:bt()(zi,pi),ellipsis:an.ellipsis,align:an.align,scope:an.rowScope,component:yi,prefixCls:Fn.prefixCls,key:_r,record:Fi,index:Qn,renderIndex:Ci,dataIndex:tr,render:Go,shouldCellUpdate:an.shouldCellUpdate},Lr,{appendNode:Wr,additionalProps:(0,nt.Z)((0,nt.Z)({},Hr),{},{style:ao},gn)}))}var Fr=ir,Cr=["data","index","className","rowKey","style","extra","getHeight"],Ir=Te.forwardRef(function(cn,Fn){var an=cn.data,Je=cn.index,ci=cn.className,Qn=cn.rowKey,yi=cn.style,Ci=cn.extra,Fi=cn.getHeight,Vn=(0,ke.Z)(cn,Cr),pi=an.record,mi=an.indent,xi=an.index,bi=Qe(Ae,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),tr=bi.scrollX,zi=bi.flattenColumns,Bi=bi.prefixCls,Ln=bi.fixColumn,Oi=bi.componentWidth,ar=Qe(_i,["getComponent"]),_r=ar.getComponent,Lr=zn(pi,Qn,Je,mi),Wr=_r(["body","row"],"div"),Hr=_r(["body","cell"],"div"),jr=Lr.rowSupportExpand,So=Lr.expanded,vo=Lr.rowProps,ra=Lr.expandedRowRender,tn=Lr.expandedRowClassName,Xr;if(jr&&So){var uo=ra(pi,Je,mi+1,So),Tr=Yn(tn,pi,Je,mi),ao={};Ln&&(ao={style:(0,dt.Z)({},"--virtual-width","".concat(Oi,"px"))});var br="".concat(Bi,"-expanded-row-cell");Xr=Te.createElement(Wr,{className:bt()("".concat(Bi,"-expanded-row"),"".concat(Bi,"-expanded-row-level-").concat(mi+1),Tr)},Te.createElement(kt,{component:Hr,prefixCls:Bi,className:bt()(br,(0,dt.Z)({},"".concat(br,"-fixed"),Ln)),additionalProps:ao},uo))}var Go=(0,nt.Z)((0,nt.Z)({},yi),{},{width:tr});Ci&&(Go.position="absolute",Go.pointerEvents="none");var gn=Te.createElement(Wr,(0,Ye.Z)({},vo,Vn,{"data-row-key":Qn,ref:jr?null:Fn,className:bt()(ci,"".concat(Bi,"-row"),vo==null?void 0:vo.className,(0,dt.Z)({},"".concat(Bi,"-row-extra"),Ci)),style:(0,nt.Z)((0,nt.Z)({},Go),vo==null?void 0:vo.style)}),zi.map(function(qr,Oo){return Te.createElement(Fr,{key:Oo,component:Hr,rowInfo:Lr,column:qr,colIndex:Oo,indent:mi,index:Je,renderIndex:xi,record:pi,inverse:Ci,getHeight:Fi})}));return jr?Te.createElement("div",{ref:Fn},gn,Xr):gn}),Ur=ge(Ir),Dn=Ur,Zr=Te.forwardRef(function(cn,Fn){var an=cn.data,Je=cn.onScroll,ci=Qe(Ae,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","scrollX","direction"]),Qn=ci.flattenColumns,yi=ci.onColumnResize,Ci=ci.getRowKey,Fi=ci.expandedKeys,Vn=ci.prefixCls,pi=ci.childrenColumnName,mi=ci.scrollX,xi=ci.direction,bi=Qe(_i),tr=bi.sticky,zi=bi.scrollY,Bi=bi.listItemHeight,Ln=bi.getComponent,Oi=bi.onScroll,ar=Te.useRef(),_r=Mt(an,pi,Fi,Ci),Lr=Te.useMemo(function(){var Xr=0;return Qn.map(function(uo){var Tr=uo.width,ao=uo.key;return Xr+=Tr,[ao,Tr,Xr]})},[Qn]),Wr=Te.useMemo(function(){return Lr.map(function(Xr){return Xr[2]})},[Lr]);Te.useEffect(function(){Lr.forEach(function(Xr){var uo=(0,Pe.Z)(Xr,2),Tr=uo[0],ao=uo[1];yi(Tr,ao)})},[Lr]),Te.useImperativeHandle(Fn,function(){var Xr,uo={scrollTo:function(ao){var br;(br=ar.current)===null||br===void 0||br.scrollTo(ao)},nativeElement:(Xr=ar.current)===null||Xr===void 0?void 0:Xr.nativeElement};return Object.defineProperty(uo,"scrollLeft",{get:function(){var ao;return((ao=ar.current)===null||ao===void 0?void 0:ao.getScrollInfo().x)||0},set:function(ao){var br;(br=ar.current)===null||br===void 0||br.scrollTo({left:ao})}}),uo});var Hr=function(uo,Tr){var ao,br=(ao=_r[Tr])===null||ao===void 0?void 0:ao.record,Go=uo.onCell;if(Go){var gn,qr=Go(br,Tr);return(gn=qr==null?void 0:qr.rowSpan)!==null&&gn!==void 0?gn:1}return 1},jr=function(uo){var Tr=uo.start,ao=uo.end,br=uo.getSize,Go=uo.offsetY;if(ao<0)return null;for(var gn=Qn.filter(function(Kr){return Hr(Kr,Tr)===0}),qr=Tr,Oo=function(Ut){if(gn=gn.filter(function(Ni){return Hr(Ni,Ut)===0}),!gn.length)return qr=Ut,1},Ga=Tr;Ga>=0&&!Oo(Ga);Ga-=1);for(var pa=Qn.filter(function(Kr){return Hr(Kr,ao)!==1}),us=ao,Za=function(Ut){if(pa=pa.filter(function(Ni){return Hr(Ni,Ut)!==1}),!pa.length)return us=Math.max(Ut-1,ao),1},pr=ao;pr<_r.length&&!Za(pr);pr+=1);for(var Ho=[],ca=function(Ut){var Ni=_r[Ut];if(!Ni)return 1;Qn.some(function(Qi){return Hr(Qi,Ut)>1})&&Ho.push(Ut)},wa=qr;wa<=us;wa+=1)ca(wa);var to=Ho.map(function(Kr){var Ut=_r[Kr],Ni=Ci(Ut.record,Kr),Qi=function(Qr){var mr=Kr+Qr-1,Mo=Ci(_r[mr].record,mr),Jo=br(Ni,Mo);return Jo.bottom-Jo.top},Pr=br(Ni);return Te.createElement(Dn,{key:Kr,data:Ut,rowKey:Ni,index:Kr,style:{top:-Go+Pr.top},extra:!0,getHeight:Qi})});return to},So=Te.useMemo(function(){return{columnsOffset:Wr}},[Wr]),vo="".concat(Vn,"-tbody"),ra=Ln(["body","wrapper"]),tn={};return tr&&(tn.position="sticky",tn.bottom=0,(0,qe.Z)(tr)==="object"&&tr.offsetScroll&&(tn.bottom=tr.offsetScroll)),Te.createElement(Ji.Provider,{value:So},Te.createElement(wi.Z,{fullHeight:!1,ref:ar,prefixCls:"".concat(vo,"-virtual"),styles:{horizontalScrollBar:tn},className:vo,height:zi,itemHeight:Bi||24,data:_r,itemKey:function(uo){return Ci(uo.record)},component:ra,scrollWidth:mi,direction:xi,onVirtualScroll:function(uo){var Tr,ao=uo.x;Je({currentTarget:(Tr=ar.current)===null||Tr===void 0?void 0:Tr.nativeElement,scrollLeft:ao})},onScroll:Oi,extraRender:jr},function(Xr,uo,Tr){var ao=Ci(Xr.record,uo);return Te.createElement(Dn,{data:Xr,rowKey:ao,index:uo,style:Tr.style})}))}),Bn=ge(Zr),qi=Bn,ur=function(Fn,an){var Je=an.ref,ci=an.onScroll;return Te.createElement(qi,{ref:Je,data:Fn,onScroll:ci})};function gr(cn,Fn){var an=cn.data,Je=cn.columns,ci=cn.scroll,Qn=cn.sticky,yi=cn.prefixCls,Ci=yi===void 0?Tn:yi,Fi=cn.className,Vn=cn.listItemHeight,pi=cn.components,mi=cn.onScroll,xi=ci||{},bi=xi.x,tr=xi.y;typeof bi!="number"&&(bi=1),typeof tr!="number"&&(tr=500);var zi=(0,_n.zX)(function(Oi,ar){return(0,Ht.Z)(pi,Oi)||ar}),Bi=(0,_n.zX)(mi),Ln=Te.useMemo(function(){return{sticky:Qn,scrollY:tr,listItemHeight:Vn,getComponent:zi,onScroll:Bi}},[Qn,tr,Vn,zi,Bi]);return Te.createElement(_i.Provider,{value:Ln},Te.createElement(mn,(0,Ye.Z)({},cn,{className:bt()(Fi,"".concat(Ci,"-virtual")),scroll:(0,nt.Z)((0,nt.Z)({},ci),{},{x:bi}),components:(0,nt.Z)((0,nt.Z)({},pi),{},{body:an!=null&&an.length?ur:void 0}),columns:Je,internalHooks:ce.R,tailor:!0,ref:Fn})))}var xo=Te.forwardRef(gr);function yo(cn){return se(xo,cn)}var mo=yo(),bo=null},90494:function(ze,Ee,ue){"use strict";ue.d(Ee,{g:function(){return Te},v:function(){return We}});var ce=ue(77321),Pe=ue(74416),Re=ue(48736),Me=["expandable"],We="RC_TABLE_INTERNAL_COL_DEFINE";function Te(Ge){var st=Ge.expandable,Qe=(0,Pe.Z)(Ge,Me),Ye;return"expandable"in Ge?Ye=(0,ce.Z)((0,ce.Z)({},Qe),st):Ye=Qe,Ye.showExpandColumn===!1&&(Ye.expandIconColumnIndex=-1),Ye}},22711:function(ze,Ee,ue){"use strict";ue.r(Ee),ue.d(Ee,{ResizableTextArea:function(){return it},default:function(){return ln}});var ce=ue(72308),Pe=ue(49618),Re=ue(77321),Me=ue(80702),We=ue(52487),Te=ue(74416),Ge=ue(92310),st=ue.n(Ge),Qe=ue(36901),Ye=ue(66003),yt=ue(30292),ot=ue(18929),Nt=ue(59301),Fe=ue(62853),ne=ue(29301),te=ue(34280),he=ue(16089),se=`
|
|
|
min-height:0 !important;
|
|
|
max-height:none !important;
|
|
|
height:0 !important;
|
|
|
visibility:hidden !important;
|
|
|
overflow:hidden !important;
|
|
|
position:absolute !important;
|
|
|
z-index:-1000 !important;
|
|
|
top:0 !important;
|
|
|
right:0 !important;
|
|
|
pointer-events: none !important;
|
|
|
`,ge=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],Se={},be;function Ae(un){var Qt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,nn=un.getAttribute("id")||un.getAttribute("data-reactid")||un.getAttribute("name");if(Qt&&Se[nn])return Se[nn];var At=window.getComputedStyle(un),ct=At.getPropertyValue("box-sizing")||At.getPropertyValue("-moz-box-sizing")||At.getPropertyValue("-webkit-box-sizing"),at=parseFloat(At.getPropertyValue("padding-bottom"))+parseFloat(At.getPropertyValue("padding-top")),rn=parseFloat(At.getPropertyValue("border-bottom-width"))+parseFloat(At.getPropertyValue("border-top-width")),hn=ge.map(function(pn){return"".concat(pn,":").concat(At.getPropertyValue(pn))}).join(";"),Pt={sizingStyle:hn,paddingSize:at,borderSize:rn,boxSizing:ct};return Qt&&nn&&(Se[nn]=Pt),Pt}function Le(un){var Qt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,nn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,At=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;be||(be=document.createElement("textarea"),be.setAttribute("tab-index","-1"),be.setAttribute("aria-hidden","true"),be.setAttribute("name","hiddenTextarea"),document.body.appendChild(be)),un.getAttribute("wrap")?be.setAttribute("wrap",un.getAttribute("wrap")):be.removeAttribute("wrap");var ct=Ae(un,Qt),at=ct.paddingSize,rn=ct.borderSize,hn=ct.boxSizing,Pt=ct.sizingStyle;be.setAttribute("style","".concat(Pt,";").concat(se)),be.value=un.value||un.placeholder||"";var pn=void 0,dn=void 0,_n,Yt=be.scrollHeight;if(hn==="border-box"?Yt+=rn:hn==="content-box"&&(Yt-=at),nn!==null||At!==null){be.value=" ";var On=be.scrollHeight-at;nn!==null&&(pn=On*nn,hn==="border-box"&&(pn=pn+at+rn),Yt=Math.max(pn,Yt)),At!==null&&(dn=On*At,hn==="border-box"&&(dn=dn+at+rn),_n=Yt>dn?"":"hidden",Yt=Math.min(dn,Yt))}var kt={height:Yt,overflowY:_n,resize:"none"};return pn&&(kt.minHeight=pn),dn&&(kt.maxHeight=dn),kt}var je=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],$e=0,qe=1,nt=2,dt=Nt.forwardRef(function(un,Qt){var nn=un,At=nn.prefixCls,ct=nn.defaultValue,at=nn.value,rn=nn.autoSize,hn=nn.onResize,Pt=nn.className,pn=nn.style,dn=nn.disabled,_n=nn.onChange,Yt=nn.onInternalAutoSize,On=(0,Te.Z)(nn,je),kt=(0,ot.Z)(ct,{value:at,postState:function(vi){return vi!=null?vi:""}}),jn=(0,We.Z)(kt,2),ai=jn[0],et=jn[1],De=function(vi){et(vi.target.value),_n==null||_n(vi)},ke=Nt.useRef();Nt.useImperativeHandle(Qt,function(){return{textArea:ke.current}});var Xe=Nt.useMemo(function(){return rn&&(0,Fe.Z)(rn)==="object"?[rn.minRows,rn.maxRows]:[]},[rn]),ut=(0,We.Z)(Xe,2),Ue=ut[0],gt=ut[1],_t=!!rn,bn=function(){try{if(document.activeElement===ke.current){var vi=ke.current,Ri=vi.selectionStart,sn=vi.selectionEnd,Xi=vi.scrollTop;ke.current.setSelectionRange(Ri,sn),ke.current.scrollTop=Xi}}catch(cr){}},xn=Nt.useState(nt),Lt=(0,We.Z)(xn,2),Zt=Lt[0],Vt=Lt[1],fn=Nt.useState(),Pn=(0,We.Z)(fn,2),yn=Pn[0],Mt=Pn[1],zn=function(){Vt($e)};(0,te.Z)(function(){_t&&zn()},[at,Ue,gt,_t]),(0,te.Z)(function(){if(Zt===$e)Vt(qe);else if(Zt===qe){var Et=Le(ke.current,!1,Ue,gt);Vt(nt),Mt(Et)}else bn()},[Zt]);var qn=Nt.useRef(),Rn=function(){he.Z.cancel(qn.current)},Zn=function(vi){Zt===nt&&(hn==null||hn(vi),rn&&(Rn(),qn.current=(0,he.Z)(function(){zn()})))};Nt.useEffect(function(){return Rn},[]);var Ai=_t?yn:null,Yn=(0,Re.Z)((0,Re.Z)({},pn),Ai);return(Zt===$e||Zt===qe)&&(Yn.overflowY="hidden",Yn.overflowX="hidden"),Nt.createElement(ne.Z,{onResize:Zn,disabled:!(rn||hn)},Nt.createElement("textarea",(0,ce.Z)({},On,{ref:ke,style:Yn,className:st()(At,Pt,(0,Pe.Z)({},"".concat(At,"-disabled"),dn)),disabled:dn,value:ai,onChange:De})))}),it=dt,bt=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize","onClear","onPressEnter","readOnly","autoSize","onKeyDown"],It=Nt.forwardRef(function(un,Qt){var nn,At=un.defaultValue,ct=un.value,at=un.onFocus,rn=un.onBlur,hn=un.onChange,Pt=un.allowClear,pn=un.maxLength,dn=un.onCompositionStart,_n=un.onCompositionEnd,Yt=un.suffix,On=un.prefixCls,kt=On===void 0?"rc-textarea":On,jn=un.showCount,ai=un.count,et=un.className,De=un.style,ke=un.disabled,Xe=un.hidden,ut=un.classNames,Ue=un.styles,gt=un.onResize,_t=un.onClear,bn=un.onPressEnter,xn=un.readOnly,Lt=un.autoSize,Zt=un.onKeyDown,Vt=(0,Te.Z)(un,bt),fn=(0,ot.Z)(At,{value:ct,defaultValue:At}),Pn=(0,We.Z)(fn,2),yn=Pn[0],Mt=Pn[1],zn=yn==null?"":String(yn),qn=Nt.useState(!1),Rn=(0,We.Z)(qn,2),Zn=Rn[0],Ai=Rn[1],Yn=Nt.useRef(!1),Et=Nt.useState(null),vi=(0,We.Z)(Et,2),Ri=vi[0],sn=vi[1],Xi=(0,Nt.useRef)(null),cr=(0,Nt.useRef)(null),fr=function(){var on;return(on=cr.current)===null||on===void 0?void 0:on.textArea},kn=function(){fr().focus()};(0,Nt.useImperativeHandle)(Qt,function(){var fi;return{resizableTextArea:cr.current,focus:kn,blur:function(){fr().blur()},nativeElement:((fi=Xi.current)===null||fi===void 0?void 0:fi.nativeElement)||fr()}}),(0,Nt.useEffect)(function(){Ai(function(fi){return!ke&&fi})},[ke]);var Or=Nt.useState(null),kr=(0,We.Z)(Or,2),Wi=kr[0],lr=kr[1];Nt.useEffect(function(){if(Wi){var fi;(fi=fr()).setSelectionRange.apply(fi,(0,Me.Z)(Wi))}},[Wi]);var wr=(0,Ye.Z)(ai,jn),Ie=(nn=wr.max)!==null&&nn!==void 0?nn:pn,Yi=Number(Ie)>0,Ei=wr.strategy(zn),rr=!!Ie&&Ei>Ie,Br=function(on,Gt){var li=Gt;!Yn.current&&wr.exceedFormatter&&wr.max&&wr.strategy(Gt)>wr.max&&(li=wr.exceedFormatter(Gt,{max:wr.max}),Gt!==li&&lr([fr().selectionStart||0,fr().selectionEnd||0])),Mt(li),(0,yt.rJ)(on.currentTarget,on,hn,li)},Gr=function(on){Yn.current=!0,dn==null||dn(on)},yr=function(on){Yn.current=!1,Br(on,on.currentTarget.value),_n==null||_n(on)},Vi=function(on){Br(on,on.target.value)},hi=function(on){on.key==="Enter"&&bn&&bn(on),Zt==null||Zt(on)},Jt=function(on){Ai(!0),at==null||at(on)},Wt=function(on){Ai(!1),rn==null||rn(on)},jt=function(on){Mt(""),kn(),(0,yt.rJ)(fr(),on,hn)},gi=Yt,ii;wr.show&&(wr.showFormatter?ii=wr.showFormatter({value:zn,count:Ei,maxLength:Ie}):ii="".concat(Ei).concat(Yi?" / ".concat(Ie):""),gi=Nt.createElement(Nt.Fragment,null,gi,Nt.createElement("span",{className:st()("".concat(kt,"-data-count"),ut==null?void 0:ut.count),style:Ue==null?void 0:Ue.count},ii)));var Pi=function(on){var Gt;gt==null||gt(on),(Gt=fr())!==null&&Gt!==void 0&&Gt.style.height&&sn(!0)},In=!Lt&&!jn&&!Pt;return Nt.createElement(Qe.BaseInput,{ref:Xi,value:zn,allowClear:Pt,handleReset:jt,suffix:gi,prefixCls:kt,classNames:(0,Re.Z)((0,Re.Z)({},ut),{},{affixWrapper:st()(ut==null?void 0:ut.affixWrapper,(0,Pe.Z)((0,Pe.Z)({},"".concat(kt,"-show-count"),jn),"".concat(kt,"-textarea-allow-clear"),Pt))}),disabled:ke,focused:Zn,className:st()(et,rr&&"".concat(kt,"-out-of-range")),style:(0,Re.Z)((0,Re.Z)({},De),Ri&&!In?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof ii=="string"?ii:void 0}},hidden:Xe,readOnly:xn,onClear:_t},Nt.createElement(it,(0,ce.Z)({},Vt,{autoSize:Lt,maxLength:pn,onKeyDown:hi,onChange:Vi,onFocus:Jt,onBlur:Wt,onCompositionStart:Gr,onCompositionEnd:yr,className:st()(ut==null?void 0:ut.textarea),style:(0,Re.Z)((0,Re.Z)({},Ue==null?void 0:Ue.textarea),{},{resize:De==null?void 0:De.resize}),disabled:ke,prefixCls:kt,onResize:Pi,ref:cr,readOnly:xn})))}),Ht=It,ln=Ht},639:function(ze,Ee,ue){"use strict";ue.d(Ee,{Z:function(){return Se}});var ce=ue(72308),Pe=ue(49618),Re=ue(77321),Me=ue(52487),We=ue(74416),Te=ue(59301),Ge=ue(92310),st=ue.n(Ge),Qe=ue(26112),Ye=ue(30699),yt=function(Ae){for(var Le=Ae.prefixCls,je=Ae.level,$e=Ae.isStart,qe=Ae.isEnd,nt="".concat(Le,"-indent-unit"),dt=[],it=0;it<je;it+=1)dt.push(Te.createElement("span",{key:it,className:st()(nt,(0,Pe.Z)((0,Pe.Z)({},"".concat(nt,"-start"),$e[it]),"".concat(nt,"-end"),qe[it]))}));return Te.createElement("span",{"aria-hidden":"true",className:"".concat(Le,"-indent")},dt)},ot=Te.memo(yt),Nt=ue(65065),Fe=ue(34061),ne=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],te="open",he="close",se="---",ge=function(Ae){var Le,je,$e,qe=Ae.eventKey,nt=Ae.className,dt=Ae.style,it=Ae.dragOver,bt=Ae.dragOverGapTop,It=Ae.dragOverGapBottom,Ht=Ae.isLeaf,ln=Ae.isStart,un=Ae.isEnd,Qt=Ae.expanded,nn=Ae.selected,At=Ae.checked,ct=Ae.halfChecked,at=Ae.loading,rn=Ae.domRef,hn=Ae.active,Pt=Ae.data,pn=Ae.onMouseMove,dn=Ae.selectable,_n=(0,We.Z)(Ae,ne),Yt=Te.useContext(Ye.k),On=Te.useContext(Ye.y),kt=Te.useRef(null),jn=Te.useState(!1),ai=(0,Me.Z)(jn,2),et=ai[0],De=ai[1],ke=!!(Yt.disabled||Ae.disabled||(Le=On.nodeDisabled)!==null&&Le!==void 0&&Le.call(On,Pt)),Xe=Te.useMemo(function(){return!Yt.checkable||Ae.checkable===!1?!1:Yt.checkable},[Yt.checkable,Ae.checkable]),ut=function(Ei){ke||Yt.onNodeSelect(Ei,(0,Fe.F)(Ae))},Ue=function(Ei){ke||!Xe||Ae.disableCheckbox||Yt.onNodeCheck(Ei,(0,Fe.F)(Ae),!At)},gt=Te.useMemo(function(){return typeof dn=="boolean"?dn:Yt.selectable},[dn,Yt.selectable]),_t=function(Ei){Yt.onNodeClick(Ei,(0,Fe.F)(Ae)),gt?ut(Ei):Ue(Ei)},bn=function(Ei){Yt.onNodeDoubleClick(Ei,(0,Fe.F)(Ae))},xn=function(Ei){Yt.onNodeMouseEnter(Ei,(0,Fe.F)(Ae))},Lt=function(Ei){Yt.onNodeMouseLeave(Ei,(0,Fe.F)(Ae))},Zt=function(Ei){Yt.onNodeContextMenu(Ei,(0,Fe.F)(Ae))},Vt=Te.useMemo(function(){return!!(Yt.draggable&&(!Yt.draggable.nodeDraggable||Yt.draggable.nodeDraggable(Pt)))},[Yt.draggable,Pt]),fn=function(Ei){Ei.stopPropagation(),De(!0),Yt.onNodeDragStart(Ei,Ae);try{Ei.dataTransfer.setData("text/plain","")}catch(rr){}},Pn=function(Ei){Ei.preventDefault(),Ei.stopPropagation(),Yt.onNodeDragEnter(Ei,Ae)},yn=function(Ei){Ei.preventDefault(),Ei.stopPropagation(),Yt.onNodeDragOver(Ei,Ae)},Mt=function(Ei){Ei.stopPropagation(),Yt.onNodeDragLeave(Ei,Ae)},zn=function(Ei){Ei.stopPropagation(),De(!1),Yt.onNodeDragEnd(Ei,Ae)},qn=function(Ei){Ei.preventDefault(),Ei.stopPropagation(),De(!1),Yt.onNodeDrop(Ei,Ae)},Rn=function(Ei){at||Yt.onNodeExpand(Ei,(0,Fe.F)(Ae))},Zn=Te.useMemo(function(){var Yi=(0,Nt.Z)(Yt.keyEntities,qe)||{},Ei=Yi.children;return!!(Ei||[]).length},[Yt.keyEntities,qe]),Ai=Te.useMemo(function(){return Ht===!1?!1:Ht||!Yt.loadData&&!Zn||Yt.loadData&&Ae.loaded&&!Zn},[Ht,Yt.loadData,Zn,Ae.loaded]);Te.useEffect(function(){at||typeof Yt.loadData=="function"&&Qt&&!Ai&&!Ae.loaded&&Yt.onNodeLoad((0,Fe.F)(Ae))},[at,Yt.loadData,Yt.onNodeLoad,Qt,Ai,Ae]);var Yn=Te.useMemo(function(){var Yi;return(Yi=Yt.draggable)!==null&&Yi!==void 0&&Yi.icon?Te.createElement("span",{className:"".concat(Yt.prefixCls,"-draggable-icon")},Yt.draggable.icon):null},[Yt.draggable]),Et=function(Ei){var rr=Ae.switcherIcon||Yt.switcherIcon;return typeof rr=="function"?rr((0,Re.Z)((0,Re.Z)({},Ae),{},{isLeaf:Ei})):rr},vi=function(){if(Ai){var Ei=Et(!0);return Ei!==!1?Te.createElement("span",{className:st()("".concat(Yt.prefixCls,"-switcher"),"".concat(Yt.prefixCls,"-switcher-noop"))},Ei):null}var rr=Et(!1);return rr!==!1?Te.createElement("span",{onClick:Rn,className:st()("".concat(Yt.prefixCls,"-switcher"),"".concat(Yt.prefixCls,"-switcher_").concat(Qt?te:he))},rr):null},Ri=Te.useMemo(function(){if(!Xe)return null;var Yi=typeof Xe!="boolean"?Xe:null;return Te.createElement("span",{className:st()("".concat(Yt.prefixCls,"-checkbox"),(0,Pe.Z)((0,Pe.Z)((0,Pe.Z)({},"".concat(Yt.prefixCls,"-checkbox-checked"),At),"".concat(Yt.prefixCls,"-checkbox-indeterminate"),!At&&ct),"".concat(Yt.prefixCls,"-checkbox-disabled"),ke||Ae.disableCheckbox)),onClick:Ue,role:"checkbox","aria-checked":ct?"mixed":At,"aria-disabled":ke||Ae.disableCheckbox,"aria-label":"Select ".concat(typeof Ae.title=="string"?Ae.title:"tree node")},Yi)},[Xe,At,ct,ke,Ae.disableCheckbox,Ae.title]),sn=Te.useMemo(function(){return Ai?null:Qt?te:he},[Ai,Qt]),Xi=Te.useMemo(function(){return Te.createElement("span",{className:st()("".concat(Yt.prefixCls,"-iconEle"),"".concat(Yt.prefixCls,"-icon__").concat(sn||"docu"),(0,Pe.Z)({},"".concat(Yt.prefixCls,"-icon_loading"),at))})},[Yt.prefixCls,sn,at]),cr=Te.useMemo(function(){var Yi=!!Yt.draggable,Ei=!Ae.disabled&&Yi&&Yt.dragOverNodeKey===qe;return Ei?Yt.dropIndicatorRender({dropPosition:Yt.dropPosition,dropLevelOffset:Yt.dropLevelOffset,indent:Yt.indent,prefixCls:Yt.prefixCls,direction:Yt.direction}):null},[Yt.dropPosition,Yt.dropLevelOffset,Yt.indent,Yt.prefixCls,Yt.direction,Yt.draggable,Yt.dragOverNodeKey,Yt.dropIndicatorRender]),fr=Te.useMemo(function(){var Yi=Ae.title,Ei=Yi===void 0?se:Yi,rr="".concat(Yt.prefixCls,"-node-content-wrapper"),Br;if(Yt.showIcon){var Gr=Ae.icon||Yt.icon;Br=Gr?Te.createElement("span",{className:st()("".concat(Yt.prefixCls,"-iconEle"),"".concat(Yt.prefixCls,"-icon__customize"))},typeof Gr=="function"?Gr(Ae):Gr):Xi}else Yt.loadData&&at&&(Br=Xi);var yr;return typeof Ei=="function"?yr=Ei(Pt):Yt.titleRender?yr=Yt.titleRender(Pt):yr=Ei,Te.createElement("span",{ref:kt,title:typeof Ei=="string"?Ei:"",className:st()(rr,"".concat(rr,"-").concat(sn||"normal"),(0,Pe.Z)({},"".concat(Yt.prefixCls,"-node-selected"),!ke&&(nn||et))),onMouseEnter:xn,onMouseLeave:Lt,onContextMenu:Zt,onClick:_t,onDoubleClick:bn},Br,Te.createElement("span",{className:"".concat(Yt.prefixCls,"-title")},yr),cr)},[Yt.prefixCls,Yt.showIcon,Ae,Yt.icon,Xi,Yt.titleRender,Pt,sn,xn,Lt,Zt,_t,bn]),kn=(0,Qe.Z)(_n,{aria:!0,data:!0}),Or=(0,Nt.Z)(Yt.keyEntities,qe)||{},kr=Or.level,Wi=un[un.length-1],lr=!ke&&Vt,wr=Yt.draggingNodeKey===qe,Ie=dn!==void 0?{"aria-selected":!!dn}:void 0;return Te.createElement("div",(0,ce.Z)({ref:rn,role:"treeitem","aria-expanded":Ht?void 0:Qt,className:st()(nt,"".concat(Yt.prefixCls,"-treenode"),($e={},(0,Pe.Z)((0,Pe.Z)((0,Pe.Z)((0,Pe.Z)((0,Pe.Z)((0,Pe.Z)((0,Pe.Z)((0,Pe.Z)((0,Pe.Z)((0,Pe.Z)($e,"".concat(Yt.prefixCls,"-treenode-disabled"),ke),"".concat(Yt.prefixCls,"-treenode-switcher-").concat(Qt?"open":"close"),!Ht),"".concat(Yt.prefixCls,"-treenode-checkbox-checked"),At),"".concat(Yt.prefixCls,"-treenode-checkbox-indeterminate"),ct),"".concat(Yt.prefixCls,"-treenode-selected"),nn),"".concat(Yt.prefixCls,"-treenode-loading"),at),"".concat(Yt.prefixCls,"-treenode-active"),hn),"".concat(Yt.prefixCls,"-treenode-leaf-last"),Wi),"".concat(Yt.prefixCls,"-treenode-draggable"),Vt),"dragging",wr),(0,Pe.Z)((0,Pe.Z)((0,Pe.Z)((0,Pe.Z)((0,Pe.Z)((0,Pe.Z)((0,Pe.Z)($e,"drop-target",Yt.dropTargetKey===qe),"drop-container",Yt.dropContainerKey===qe),"drag-over",!ke&&it),"drag-over-gap-top",!ke&&bt),"drag-over-gap-bottom",!ke&&It),"filter-node",(je=Yt.filterTreeNode)===null||je===void 0?void 0:je.call(Yt,(0,Fe.F)(Ae))),"".concat(Yt.prefixCls,"-treenode-leaf"),Ai))),style:dt,draggable:lr,onDragStart:lr?fn:void 0,onDragEnter:Vt?Pn:void 0,onDragOver:Vt?yn:void 0,onDragLeave:Vt?Mt:void 0,onDrop:Vt?qn:void 0,onDragEnd:Vt?zn:void 0,onMouseMove:pn},Ie,kn),Te.createElement(ot,{prefixCls:Yt.prefixCls,level:kr,isStart:ln,isEnd:un}),Yn,vi(),Ri,fr)};ge.isTreeNode=1;var Se=ge},30699:function(ze,Ee,ue){"use strict";ue.d(Ee,{k:function(){return Pe},y:function(){return Re}});var ce=ue(59301),Pe=ce.createContext(null),Re=ce.createContext({})},15018:function(ze,Ee,ue){"use strict";ue.d(Ee,{OF:function(){return qe.Z},y6:function(){return he.y},ZP:function(){return ke}});var ce=ue(72308),Pe=ue(62853),Re=ue(77321),Me=ue(80702),We=ue(96949),Te=ue(55090),Ge=ue(80237),st=ue(77205),Qe=ue(38793),Ye=ue(49618),yt=ue(92310),ot=ue.n(yt),Nt=ue(10228),Fe=ue(26112),ne=ue(48736),te=ue(59301),he=ue(30699),se=function(ut){var Ue=ut.dropPosition,gt=ut.dropLevelOffset,_t=ut.indent,bn={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(Ue){case-1:bn.top=0,bn.left=-gt*_t;break;case 1:bn.bottom=0,bn.left=-gt*_t;break;case 0:bn.bottom=0,bn.left=_t;break}return te.createElement("div",{style:bn})},ge=se;function Se(Xe){if(Xe==null)throw new TypeError("Cannot destructure "+Xe)}var be=ue(52487),Ae=ue(74416),Le=ue(34280),je=ue(45680),$e=ue(77900),qe=ue(639);function nt(Xe,ut){var Ue=te.useState(!1),gt=(0,be.Z)(Ue,2),_t=gt[0],bn=gt[1];(0,Le.Z)(function(){if(_t)return Xe(),function(){ut()}},[_t]),(0,Le.Z)(function(){return bn(!0),function(){bn(!1)}},[])}var dt=nt,it=ue(34061),bt=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],It=te.forwardRef(function(Xe,ut){var Ue=Xe.className,gt=Xe.style,_t=Xe.motion,bn=Xe.motionNodes,xn=Xe.motionType,Lt=Xe.onMotionStart,Zt=Xe.onMotionEnd,Vt=Xe.active,fn=Xe.treeNodeRequiredProps,Pn=(0,Ae.Z)(Xe,bt),yn=te.useState(!0),Mt=(0,be.Z)(yn,2),zn=Mt[0],qn=Mt[1],Rn=te.useContext(he.k),Zn=Rn.prefixCls,Ai=bn&&xn!=="hide";(0,Le.Z)(function(){bn&&Ai!==zn&&qn(Ai)},[bn]);var Yn=function(){bn&&Lt()},Et=te.useRef(!1),vi=function(){bn&&!Et.current&&(Et.current=!0,Zt())};dt(Yn,vi);var Ri=function(Xi){Ai===Xi&&vi()};return bn?te.createElement($e.default,(0,ce.Z)({ref:ut,visible:zn},_t,{motionAppear:xn==="show",onVisibleChanged:Ri}),function(sn,Xi){var cr=sn.className,fr=sn.style;return te.createElement("div",{ref:Xi,className:ot()("".concat(Zn,"-treenode-motion"),cr),style:fr},bn.map(function(kn){var Or=Object.assign({},(Se(kn.data),kn.data)),kr=kn.title,Wi=kn.key,lr=kn.isStart,wr=kn.isEnd;delete Or.children;var Ie=(0,it.H8)(Wi,fn);return te.createElement(qe.Z,(0,ce.Z)({},Or,Ie,{title:kr,active:Vt,data:kn.data,key:Wi,isStart:lr,isEnd:wr}))}))}):te.createElement(qe.Z,(0,ce.Z)({domRef:ut,className:Ue,style:gt},Pn,{active:Vt}))}),Ht=It;function ln(){var Xe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],ut=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Ue=Xe.length,gt=ut.length;if(Math.abs(Ue-gt)!==1)return{add:!1,key:null};function _t(bn,xn){var Lt=new Map;bn.forEach(function(Vt){Lt.set(Vt,!0)});var Zt=xn.filter(function(Vt){return!Lt.has(Vt)});return Zt.length===1?Zt[0]:null}return Ue<gt?{add:!0,key:_t(Xe,ut)}:{add:!1,key:_t(ut,Xe)}}function un(Xe,ut,Ue){var gt=Xe.findIndex(function(Lt){return Lt.key===Ue}),_t=Xe[gt+1],bn=ut.findIndex(function(Lt){return Lt.key===Ue});if(_t){var xn=ut.findIndex(function(Lt){return Lt.key===_t.key});return ut.slice(bn+1,xn)}return ut.slice(bn+1)}var Qt=["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","scrollWidth","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"],nn={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},At=function(){},ct="RC_TREE_MOTION_".concat(Math.random()),at={key:ct},rn={key:ct,level:0,index:0,pos:"0",node:at,nodes:[at]},hn={parent:null,children:[],pos:rn.pos,data:at,title:null,key:ct,isStart:[],isEnd:[]};function Pt(Xe,ut,Ue,gt){return ut===!1||!Ue?Xe:Xe.slice(0,Math.ceil(Ue/gt)+1)}function pn(Xe){var ut=Xe.key,Ue=Xe.pos;return(0,it.km)(ut,Ue)}function dn(Xe){for(var ut=String(Xe.data.key),Ue=Xe;Ue.parent;)Ue=Ue.parent,ut="".concat(Ue.data.key," > ").concat(ut);return ut}var _n=te.forwardRef(function(Xe,ut){var Ue=Xe.prefixCls,gt=Xe.data,_t=Xe.selectable,bn=Xe.checkable,xn=Xe.expandedKeys,Lt=Xe.selectedKeys,Zt=Xe.checkedKeys,Vt=Xe.loadedKeys,fn=Xe.loadingKeys,Pn=Xe.halfCheckedKeys,yn=Xe.keyEntities,Mt=Xe.disabled,zn=Xe.dragging,qn=Xe.dragOverNodeKey,Rn=Xe.dropPosition,Zn=Xe.motion,Ai=Xe.height,Yn=Xe.itemHeight,Et=Xe.virtual,vi=Xe.scrollWidth,Ri=Xe.focusable,sn=Xe.activeItem,Xi=Xe.focused,cr=Xe.tabIndex,fr=Xe.onKeyDown,kn=Xe.onFocus,Or=Xe.onBlur,kr=Xe.onActiveChange,Wi=Xe.onListChangeStart,lr=Xe.onListChangeEnd,wr=(0,Ae.Z)(Xe,Qt),Ie=te.useRef(null),Yi=te.useRef(null);te.useImperativeHandle(ut,function(){return{scrollTo:function(qt){Ie.current.scrollTo(qt)},getIndentWidth:function(){return Yi.current.offsetWidth}}});var Ei=te.useState(xn),rr=(0,be.Z)(Ei,2),Br=rr[0],Gr=rr[1],yr=te.useState(gt),Vi=(0,be.Z)(yr,2),hi=Vi[0],Jt=Vi[1],Wt=te.useState(gt),jt=(0,be.Z)(Wt,2),gi=jt[0],ii=jt[1],Pi=te.useState([]),In=(0,be.Z)(Pi,2),fi=In[0],on=In[1],Gt=te.useState(null),li=(0,be.Z)(Gt,2),vt=li[0],Sn=li[1],ri=te.useRef(gt);ri.current=gt;function ki(){var oi=ri.current;Jt(oi),ii(oi),on([]),Sn(null),lr()}(0,Le.Z)(function(){Gr(xn);var oi=ln(Br,xn);if(oi.key!==null)if(oi.add){var qt=hi.findIndex(function(er){var or=er.key;return or===oi.key}),Be=Pt(un(hi,gt,oi.key),Et,Ai,Yn),Mi=hi.slice();Mi.splice(qt+1,0,hn),ii(Mi),on(Be),Sn("show")}else{var ui=gt.findIndex(function(er){var or=er.key;return or===oi.key}),Tn=Pt(un(gt,hi,oi.key),Et,Ai,Yn),Ki=gt.slice();Ki.splice(ui+1,0,hn),ii(Ki),on(Tn),Sn("hide")}else hi!==gt&&(Jt(gt),ii(gt))},[xn,gt]),te.useEffect(function(){zn||ki()},[zn]);var zt=Zn?gi:gt,wn={expandedKeys:xn,selectedKeys:Lt,loadedKeys:Vt,loadingKeys:fn,checkedKeys:Zt,halfCheckedKeys:Pn,dragOverNodeKey:qn,dropPosition:Rn,keyEntities:yn};return te.createElement(te.Fragment,null,Xi&&sn&&te.createElement("span",{style:nn,"aria-live":"assertive"},dn(sn)),te.createElement("div",null,te.createElement("input",{style:nn,disabled:Ri===!1||Mt,tabIndex:Ri!==!1?cr:null,onKeyDown:fr,onFocus:kn,onBlur:Or,value:"",onChange:At,"aria-label":"for screen reader"})),te.createElement("div",{className:"".concat(Ue,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},te.createElement("div",{className:"".concat(Ue,"-indent")},te.createElement("div",{ref:Yi,className:"".concat(Ue,"-indent-unit")}))),te.createElement(je.Z,(0,ce.Z)({},wr,{data:zt,itemKey:pn,height:Ai,fullHeight:!1,virtual:Et,itemHeight:Yn,scrollWidth:vi,prefixCls:"".concat(Ue,"-list"),ref:Ie,role:"tree",onVisibleChange:function(qt){qt.every(function(Be){return pn(Be)!==ct})&&ki()}}),function(oi){var qt=oi.pos,Be=Object.assign({},(Se(oi.data),oi.data)),Mi=oi.title,ui=oi.key,Tn=oi.isStart,Ki=oi.isEnd,er=(0,it.km)(ui,qt);delete Be.key,delete Be.children;var or=(0,it.H8)(er,wn);return te.createElement(Ht,(0,ce.Z)({},Be,or,{title:Mi,active:!!sn&&ui===sn.key,pos:qt,data:oi.data,isStart:Tn,isEnd:Ki,motion:Zn,motionNodes:ui===ct?fi:null,motionType:vt,onMotionStart:Wi,onMotionEnd:ki,treeNodeRequiredProps:wn,onMouseMove:function(){kr(null)}}))}))}),Yt=_n,On=ue(82661),kt=ue(34643),jn=ue(65065),ai=10,et=function(Xe){(0,st.Z)(Ue,Xe);var ut=(0,Qe.Z)(Ue);function Ue(){var gt;(0,We.Z)(this,Ue);for(var _t=arguments.length,bn=new Array(_t),xn=0;xn<_t;xn++)bn[xn]=arguments[xn];return gt=ut.call.apply(ut,[this].concat(bn)),(0,Ye.Z)((0,Ge.Z)(gt),"destroyed",!1),(0,Ye.Z)((0,Ge.Z)(gt),"delayedDragEnterLogic",void 0),(0,Ye.Z)((0,Ge.Z)(gt),"loadingRetryTimes",{}),(0,Ye.Z)((0,Ge.Z)(gt),"state",{keyEntities:{},indent:null,selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],draggingNodeKey:null,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null,treeData:[],flattenNodes:[],focused:!1,activeKey:null,listChanging:!1,prevProps:null,fieldNames:(0,it.w$)()}),(0,Ye.Z)((0,Ge.Z)(gt),"dragStartMousePosition",null),(0,Ye.Z)((0,Ge.Z)(gt),"dragNodeProps",null),(0,Ye.Z)((0,Ge.Z)(gt),"currentMouseOverDroppableNodeKey",null),(0,Ye.Z)((0,Ge.Z)(gt),"listRef",te.createRef()),(0,Ye.Z)((0,Ge.Z)(gt),"onNodeDragStart",function(Lt,Zt){var Vt=gt.state,fn=Vt.expandedKeys,Pn=Vt.keyEntities,yn=gt.props.onDragStart,Mt=Zt.eventKey;gt.dragNodeProps=Zt,gt.dragStartMousePosition={x:Lt.clientX,y:Lt.clientY};var zn=(0,On._5)(fn,Mt);gt.setState({draggingNodeKey:Mt,dragChildrenKeys:(0,On.wA)(Mt,Pn),indent:gt.listRef.current.getIndentWidth()}),gt.setExpandedKeys(zn),window.addEventListener("dragend",gt.onWindowDragEnd),yn==null||yn({event:Lt,node:(0,it.F)(Zt)})}),(0,Ye.Z)((0,Ge.Z)(gt),"onNodeDragEnter",function(Lt,Zt){var Vt=gt.state,fn=Vt.expandedKeys,Pn=Vt.keyEntities,yn=Vt.dragChildrenKeys,Mt=Vt.flattenNodes,zn=Vt.indent,qn=gt.props,Rn=qn.onDragEnter,Zn=qn.onExpand,Ai=qn.allowDrop,Yn=qn.direction,Et=Zt.pos,vi=Zt.eventKey;if(gt.currentMouseOverDroppableNodeKey!==vi&&(gt.currentMouseOverDroppableNodeKey=vi),!gt.dragNodeProps){gt.resetDragState();return}var Ri=(0,On.OM)(Lt,gt.dragNodeProps,Zt,zn,gt.dragStartMousePosition,Ai,Mt,Pn,fn,Yn),sn=Ri.dropPosition,Xi=Ri.dropLevelOffset,cr=Ri.dropTargetKey,fr=Ri.dropContainerKey,kn=Ri.dropTargetPos,Or=Ri.dropAllowed,kr=Ri.dragOverNodeKey;if(yn.includes(cr)||!Or){gt.resetDragState();return}if(gt.delayedDragEnterLogic||(gt.delayedDragEnterLogic={}),Object.keys(gt.delayedDragEnterLogic).forEach(function(Wi){clearTimeout(gt.delayedDragEnterLogic[Wi])}),gt.dragNodeProps.eventKey!==Zt.eventKey&&(Lt.persist(),gt.delayedDragEnterLogic[Et]=window.setTimeout(function(){if(gt.state.draggingNodeKey!==null){var Wi=(0,Me.Z)(fn),lr=(0,jn.Z)(Pn,Zt.eventKey);lr&&(lr.children||[]).length&&(Wi=(0,On.L0)(fn,Zt.eventKey)),gt.props.hasOwnProperty("expandedKeys")||gt.setExpandedKeys(Wi),Zn==null||Zn(Wi,{node:(0,it.F)(Zt),expanded:!0,nativeEvent:Lt.nativeEvent})}},800)),gt.dragNodeProps.eventKey===cr&&Xi===0){gt.resetDragState();return}gt.setState({dragOverNodeKey:kr,dropPosition:sn,dropLevelOffset:Xi,dropTargetKey:cr,dropContainerKey:fr,dropTargetPos:kn,dropAllowed:Or}),Rn==null||Rn({event:Lt,node:(0,it.F)(Zt),expandedKeys:fn})}),(0,Ye.Z)((0,Ge.Z)(gt),"onNodeDragOver",function(Lt,Zt){var Vt=gt.state,fn=Vt.dragChildrenKeys,Pn=Vt.flattenNodes,yn=Vt.keyEntities,Mt=Vt.expandedKeys,zn=Vt.indent,qn=gt.props,Rn=qn.onDragOver,Zn=qn.allowDrop,Ai=qn.direction;if(gt.dragNodeProps){var Yn=(0,On.OM)(Lt,gt.dragNodeProps,Zt,zn,gt.dragStartMousePosition,Zn,Pn,yn,Mt,Ai),Et=Yn.dropPosition,vi=Yn.dropLevelOffset,Ri=Yn.dropTargetKey,sn=Yn.dropContainerKey,Xi=Yn.dropTargetPos,cr=Yn.dropAllowed,fr=Yn.dragOverNodeKey;fn.includes(Ri)||!cr||(gt.dragNodeProps.eventKey===Ri&&vi===0?gt.state.dropPosition===null&>.state.dropLevelOffset===null&>.state.dropTargetKey===null&>.state.dropContainerKey===null&>.state.dropTargetPos===null&>.state.dropAllowed===!1&>.state.dragOverNodeKey===null||gt.resetDragState():Et===gt.state.dropPosition&&vi===gt.state.dropLevelOffset&&Ri===gt.state.dropTargetKey&&sn===gt.state.dropContainerKey&&Xi===gt.state.dropTargetPos&&cr===gt.state.dropAllowed&&fr===gt.state.dragOverNodeKey||gt.setState({dropPosition:Et,dropLevelOffset:vi,dropTargetKey:Ri,dropContainerKey:sn,dropTargetPos:Xi,dropAllowed:cr,dragOverNodeKey:fr}),Rn==null||Rn({event:Lt,node:(0,it.F)(Zt)}))}}),(0,Ye.Z)((0,Ge.Z)(gt),"onNodeDragLeave",function(Lt,Zt){gt.currentMouseOverDroppableNodeKey===Zt.eventKey&&!Lt.currentTarget.contains(Lt.relatedTarget)&&(gt.resetDragState(),gt.currentMouseOverDroppableNodeKey=null);var Vt=gt.props.onDragLeave;Vt==null||Vt({event:Lt,node:(0,it.F)(Zt)})}),(0,Ye.Z)((0,Ge.Z)(gt),"onWindowDragEnd",function(Lt){gt.onNodeDragEnd(Lt,null,!0),window.removeEventListener("dragend",gt.onWindowDragEnd)}),(0,Ye.Z)((0,Ge.Z)(gt),"onNodeDragEnd",function(Lt,Zt){var Vt=gt.props.onDragEnd;gt.setState({dragOverNodeKey:null}),gt.cleanDragState(),Vt==null||Vt({event:Lt,node:(0,it.F)(Zt)}),gt.dragNodeProps=null,window.removeEventListener("dragend",gt.onWindowDragEnd)}),(0,Ye.Z)((0,Ge.Z)(gt),"onNodeDrop",function(Lt,Zt){var Vt,fn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Pn=gt.state,yn=Pn.dragChildrenKeys,Mt=Pn.dropPosition,zn=Pn.dropTargetKey,qn=Pn.dropTargetPos,Rn=Pn.dropAllowed;if(Rn){var Zn=gt.props.onDrop;if(gt.setState({dragOverNodeKey:null}),gt.cleanDragState(),zn!==null){var Ai=(0,Re.Z)((0,Re.Z)({},(0,it.H8)(zn,gt.getTreeNodeRequiredProps())),{},{active:((Vt=gt.getActiveItem())===null||Vt===void 0?void 0:Vt.key)===zn,data:(0,jn.Z)(gt.state.keyEntities,zn).node}),Yn=yn.includes(zn);(0,ne.ZP)(!Yn,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var Et=(0,On.yx)(qn),vi={event:Lt,node:(0,it.F)(Ai),dragNode:gt.dragNodeProps?(0,it.F)(gt.dragNodeProps):null,dragNodesKeys:[gt.dragNodeProps.eventKey].concat(yn),dropToGap:Mt!==0,dropPosition:Mt+Number(Et[Et.length-1])};fn||Zn==null||Zn(vi),gt.dragNodeProps=null}}}),(0,Ye.Z)((0,Ge.Z)(gt),"cleanDragState",function(){var Lt=gt.state.draggingNodeKey;Lt!==null&>.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),gt.dragStartMousePosition=null,gt.currentMouseOverDroppableNodeKey=null}),(0,Ye.Z)((0,Ge.Z)(gt),"triggerExpandActionExpand",function(Lt,Zt){var Vt=gt.state,fn=Vt.expandedKeys,Pn=Vt.flattenNodes,yn=Zt.expanded,Mt=Zt.key,zn=Zt.isLeaf;if(!(zn||Lt.shiftKey||Lt.metaKey||Lt.ctrlKey)){var qn=Pn.filter(function(Zn){return Zn.key===Mt})[0],Rn=(0,it.F)((0,Re.Z)((0,Re.Z)({},(0,it.H8)(Mt,gt.getTreeNodeRequiredProps())),{},{data:qn.data}));gt.setExpandedKeys(yn?(0,On._5)(fn,Mt):(0,On.L0)(fn,Mt)),gt.onNodeExpand(Lt,Rn)}}),(0,Ye.Z)((0,Ge.Z)(gt),"onNodeClick",function(Lt,Zt){var Vt=gt.props,fn=Vt.onClick,Pn=Vt.expandAction;Pn==="click"&>.triggerExpandActionExpand(Lt,Zt),fn==null||fn(Lt,Zt)}),(0,Ye.Z)((0,Ge.Z)(gt),"onNodeDoubleClick",function(Lt,Zt){var Vt=gt.props,fn=Vt.onDoubleClick,Pn=Vt.expandAction;Pn==="doubleClick"&>.triggerExpandActionExpand(Lt,Zt),fn==null||fn(Lt,Zt)}),(0,Ye.Z)((0,Ge.Z)(gt),"onNodeSelect",function(Lt,Zt){var Vt=gt.state.selectedKeys,fn=gt.state,Pn=fn.keyEntities,yn=fn.fieldNames,Mt=gt.props,zn=Mt.onSelect,qn=Mt.multiple,Rn=Zt.selected,Zn=Zt[yn.key],Ai=!Rn;Ai?qn?Vt=(0,On.L0)(Vt,Zn):Vt=[Zn]:Vt=(0,On._5)(Vt,Zn);var Yn=Vt.map(function(Et){var vi=(0,jn.Z)(Pn,Et);return vi?vi.node:null}).filter(Boolean);gt.setUncontrolledState({selectedKeys:Vt}),zn==null||zn(Vt,{event:"select",selected:Ai,node:Zt,selectedNodes:Yn,nativeEvent:Lt.nativeEvent})}),(0,Ye.Z)((0,Ge.Z)(gt),"onNodeCheck",function(Lt,Zt,Vt){var fn=gt.state,Pn=fn.keyEntities,yn=fn.checkedKeys,Mt=fn.halfCheckedKeys,zn=gt.props,qn=zn.checkStrictly,Rn=zn.onCheck,Zn=Zt.key,Ai,Yn={event:"check",node:Zt,checked:Vt,nativeEvent:Lt.nativeEvent};if(qn){var Et=Vt?(0,On.L0)(yn,Zn):(0,On._5)(yn,Zn),vi=(0,On._5)(Mt,Zn);Ai={checked:Et,halfChecked:vi},Yn.checkedNodes=Et.map(function(kn){return(0,jn.Z)(Pn,kn)}).filter(Boolean).map(function(kn){return kn.node}),gt.setUncontrolledState({checkedKeys:Et})}else{var Ri=(0,kt.S)([].concat((0,Me.Z)(yn),[Zn]),!0,Pn),sn=Ri.checkedKeys,Xi=Ri.halfCheckedKeys;if(!Vt){var cr=new Set(sn);cr.delete(Zn);var fr=(0,kt.S)(Array.from(cr),{checked:!1,halfCheckedKeys:Xi},Pn);sn=fr.checkedKeys,Xi=fr.halfCheckedKeys}Ai=sn,Yn.checkedNodes=[],Yn.checkedNodesPositions=[],Yn.halfCheckedKeys=Xi,sn.forEach(function(kn){var Or=(0,jn.Z)(Pn,kn);if(Or){var kr=Or.node,Wi=Or.pos;Yn.checkedNodes.push(kr),Yn.checkedNodesPositions.push({node:kr,pos:Wi})}}),gt.setUncontrolledState({checkedKeys:sn},!1,{halfCheckedKeys:Xi})}Rn==null||Rn(Ai,Yn)}),(0,Ye.Z)((0,Ge.Z)(gt),"onNodeLoad",function(Lt){var Zt,Vt=Lt.key,fn=gt.state.keyEntities,Pn=(0,jn.Z)(fn,Vt);if(!(Pn!=null&&(Zt=Pn.children)!==null&&Zt!==void 0&&Zt.length)){var yn=new Promise(function(Mt,zn){gt.setState(function(qn){var Rn=qn.loadedKeys,Zn=Rn===void 0?[]:Rn,Ai=qn.loadingKeys,Yn=Ai===void 0?[]:Ai,Et=gt.props,vi=Et.loadData,Ri=Et.onLoad;if(!vi||Zn.includes(Vt)||Yn.includes(Vt))return null;var sn=vi(Lt);return sn.then(function(){var Xi=gt.state.loadedKeys,cr=(0,On.L0)(Xi,Vt);Ri==null||Ri(cr,{event:"load",node:Lt}),gt.setUncontrolledState({loadedKeys:cr}),gt.setState(function(fr){return{loadingKeys:(0,On._5)(fr.loadingKeys,Vt)}}),Mt()}).catch(function(Xi){if(gt.setState(function(fr){return{loadingKeys:(0,On._5)(fr.loadingKeys,Vt)}}),gt.loadingRetryTimes[Vt]=(gt.loadingRetryTimes[Vt]||0)+1,gt.loadingRetryTimes[Vt]>=ai){var cr=gt.state.loadedKeys;(0,ne.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),gt.setUncontrolledState({loadedKeys:(0,On.L0)(cr,Vt)}),Mt()}zn(Xi)}),{loadingKeys:(0,On.L0)(Yn,Vt)}})});return yn.catch(function(){}),yn}}),(0,Ye.Z)((0,Ge.Z)(gt),"onNodeMouseEnter",function(Lt,Zt){var Vt=gt.props.onMouseEnter;Vt==null||Vt({event:Lt,node:Zt})}),(0,Ye.Z)((0,Ge.Z)(gt),"onNodeMouseLeave",function(Lt,Zt){var Vt=gt.props.onMouseLeave;Vt==null||Vt({event:Lt,node:Zt})}),(0,Ye.Z)((0,Ge.Z)(gt),"onNodeContextMenu",function(Lt,Zt){var Vt=gt.props.onRightClick;Vt&&(Lt.preventDefault(),Vt({event:Lt,node:Zt}))}),(0,Ye.Z)((0,Ge.Z)(gt),"onFocus",function(){var Lt=gt.props.onFocus;gt.setState({focused:!0});for(var Zt=arguments.length,Vt=new Array(Zt),fn=0;fn<Zt;fn++)Vt[fn]=arguments[fn];Lt==null||Lt.apply(void 0,Vt)}),(0,Ye.Z)((0,Ge.Z)(gt),"onBlur",function(){var Lt=gt.props.onBlur;gt.setState({focused:!1}),gt.onActiveChange(null);for(var Zt=arguments.length,Vt=new Array(Zt),fn=0;fn<Zt;fn++)Vt[fn]=arguments[fn];Lt==null||Lt.apply(void 0,Vt)}),(0,Ye.Z)((0,Ge.Z)(gt),"getTreeNodeRequiredProps",function(){var Lt=gt.state,Zt=Lt.expandedKeys,Vt=Lt.selectedKeys,fn=Lt.loadedKeys,Pn=Lt.loadingKeys,yn=Lt.checkedKeys,Mt=Lt.halfCheckedKeys,zn=Lt.dragOverNodeKey,qn=Lt.dropPosition,Rn=Lt.keyEntities;return{expandedKeys:Zt||[],selectedKeys:Vt||[],loadedKeys:fn||[],loadingKeys:Pn||[],checkedKeys:yn||[],halfCheckedKeys:Mt||[],dragOverNodeKey:zn,dropPosition:qn,keyEntities:Rn}}),(0,Ye.Z)((0,Ge.Z)(gt),"setExpandedKeys",function(Lt){var Zt=gt.state,Vt=Zt.treeData,fn=Zt.fieldNames,Pn=(0,it.oH)(Vt,Lt,fn);gt.setUncontrolledState({expandedKeys:Lt,flattenNodes:Pn},!0)}),(0,Ye.Z)((0,Ge.Z)(gt),"onNodeExpand",function(Lt,Zt){var Vt=gt.state.expandedKeys,fn=gt.state,Pn=fn.listChanging,yn=fn.fieldNames,Mt=gt.props,zn=Mt.onExpand,qn=Mt.loadData,Rn=Zt.expanded,Zn=Zt[yn.key];if(!Pn){var Ai=Vt.includes(Zn),Yn=!Rn;if((0,ne.ZP)(Rn&&Ai||!Rn&&!Ai,"Expand state not sync with index check"),Vt=Yn?(0,On.L0)(Vt,Zn):(0,On._5)(Vt,Zn),gt.setExpandedKeys(Vt),zn==null||zn(Vt,{node:Zt,expanded:Yn,nativeEvent:Lt.nativeEvent}),Yn&&qn){var Et=gt.onNodeLoad(Zt);Et&&Et.then(function(){var vi=(0,it.oH)(gt.state.treeData,Vt,yn);gt.setUncontrolledState({flattenNodes:vi})}).catch(function(){var vi=gt.state.expandedKeys,Ri=(0,On._5)(vi,Zn);gt.setExpandedKeys(Ri)})}}}),(0,Ye.Z)((0,Ge.Z)(gt),"onListChangeStart",function(){gt.setUncontrolledState({listChanging:!0})}),(0,Ye.Z)((0,Ge.Z)(gt),"onListChangeEnd",function(){setTimeout(function(){gt.setUncontrolledState({listChanging:!1})})}),(0,Ye.Z)((0,Ge.Z)(gt),"onActiveChange",function(Lt){var Zt=gt.state.activeKey,Vt=gt.props,fn=Vt.onActiveChange,Pn=Vt.itemScrollOffset,yn=Pn===void 0?0:Pn;Zt!==Lt&&(gt.setState({activeKey:Lt}),Lt!==null&>.scrollTo({key:Lt,offset:yn}),fn==null||fn(Lt))}),(0,Ye.Z)((0,Ge.Z)(gt),"getActiveItem",function(){var Lt=gt.state,Zt=Lt.activeKey,Vt=Lt.flattenNodes;return Zt===null?null:Vt.find(function(fn){var Pn=fn.key;return Pn===Zt})||null}),(0,Ye.Z)((0,Ge.Z)(gt),"offsetActiveKey",function(Lt){var Zt=gt.state,Vt=Zt.flattenNodes,fn=Zt.activeKey,Pn=Vt.findIndex(function(zn){var qn=zn.key;return qn===fn});Pn===-1&&Lt<0&&(Pn=Vt.length),Pn=(Pn+Lt+Vt.length)%Vt.length;var yn=Vt[Pn];if(yn){var Mt=yn.key;gt.onActiveChange(Mt)}else gt.onActiveChange(null)}),(0,Ye.Z)((0,Ge.Z)(gt),"onKeyDown",function(Lt){var Zt=gt.state,Vt=Zt.activeKey,fn=Zt.expandedKeys,Pn=Zt.checkedKeys,yn=Zt.fieldNames,Mt=gt.props,zn=Mt.onKeyDown,qn=Mt.checkable,Rn=Mt.selectable;switch(Lt.which){case Nt.Z.UP:{gt.offsetActiveKey(-1),Lt.preventDefault();break}case Nt.Z.DOWN:{gt.offsetActiveKey(1),Lt.preventDefault();break}}var Zn=gt.getActiveItem();if(Zn&&Zn.data){var Ai=gt.getTreeNodeRequiredProps(),Yn=Zn.data.isLeaf===!1||!!(Zn.data[yn.children]||[]).length,Et=(0,it.F)((0,Re.Z)((0,Re.Z)({},(0,it.H8)(Vt,Ai)),{},{data:Zn.data,active:!0}));switch(Lt.which){case Nt.Z.LEFT:{Yn&&fn.includes(Vt)?gt.onNodeExpand({},Et):Zn.parent&>.onActiveChange(Zn.parent.key),Lt.preventDefault();break}case Nt.Z.RIGHT:{Yn&&!fn.includes(Vt)?gt.onNodeExpand({},Et):Zn.children&&Zn.children.length&>.onActiveChange(Zn.children[0].key),Lt.preventDefault();break}case Nt.Z.ENTER:case Nt.Z.SPACE:{qn&&!Et.disabled&&Et.checkable!==!1&&!Et.disableCheckbox?gt.onNodeCheck({},Et,!Pn.includes(Vt)):!qn&&Rn&&!Et.disabled&&Et.selectable!==!1&>.onNodeSelect({},Et);break}}}zn==null||zn(Lt)}),(0,Ye.Z)((0,Ge.Z)(gt),"setUncontrolledState",function(Lt){var Zt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Vt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!gt.destroyed){var fn=!1,Pn=!0,yn={};Object.keys(Lt).forEach(function(Mt){if(gt.props.hasOwnProperty(Mt)){Pn=!1;return}fn=!0,yn[Mt]=Lt[Mt]}),fn&&(!Zt||Pn)&>.setState((0,Re.Z)((0,Re.Z)({},yn),Vt))}}),(0,Ye.Z)((0,Ge.Z)(gt),"scrollTo",function(Lt){gt.listRef.current.scrollTo(Lt)}),gt}return(0,Te.Z)(Ue,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var _t=this.props,bn=_t.activeKey,xn=_t.itemScrollOffset,Lt=xn===void 0?0:xn;bn!==void 0&&bn!==this.state.activeKey&&(this.setState({activeKey:bn}),bn!==null&&this.scrollTo({key:bn,offset:Lt}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var _t=this.state,bn=_t.focused,xn=_t.flattenNodes,Lt=_t.keyEntities,Zt=_t.draggingNodeKey,Vt=_t.activeKey,fn=_t.dropLevelOffset,Pn=_t.dropContainerKey,yn=_t.dropTargetKey,Mt=_t.dropPosition,zn=_t.dragOverNodeKey,qn=_t.indent,Rn=this.props,Zn=Rn.prefixCls,Ai=Rn.className,Yn=Rn.style,Et=Rn.showLine,vi=Rn.focusable,Ri=Rn.tabIndex,sn=Ri===void 0?0:Ri,Xi=Rn.selectable,cr=Rn.showIcon,fr=Rn.icon,kn=Rn.switcherIcon,Or=Rn.draggable,kr=Rn.checkable,Wi=Rn.checkStrictly,lr=Rn.disabled,wr=Rn.motion,Ie=Rn.loadData,Yi=Rn.filterTreeNode,Ei=Rn.height,rr=Rn.itemHeight,Br=Rn.scrollWidth,Gr=Rn.virtual,yr=Rn.titleRender,Vi=Rn.dropIndicatorRender,hi=Rn.onContextMenu,Jt=Rn.onScroll,Wt=Rn.direction,jt=Rn.rootClassName,gi=Rn.rootStyle,ii=(0,Fe.Z)(this.props,{aria:!0,data:!0}),Pi;Or&&((0,Pe.Z)(Or)==="object"?Pi=Or:typeof Or=="function"?Pi={nodeDraggable:Or}:Pi={});var In={prefixCls:Zn,selectable:Xi,showIcon:cr,icon:fr,switcherIcon:kn,draggable:Pi,draggingNodeKey:Zt,checkable:kr,checkStrictly:Wi,disabled:lr,keyEntities:Lt,dropLevelOffset:fn,dropContainerKey:Pn,dropTargetKey:yn,dropPosition:Mt,dragOverNodeKey:zn,indent:qn,direction:Wt,dropIndicatorRender:Vi,loadData:Ie,filterTreeNode:Yi,titleRender:yr,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop};return te.createElement(he.k.Provider,{value:In},te.createElement("div",{className:ot()(Zn,Ai,jt,(0,Ye.Z)((0,Ye.Z)((0,Ye.Z)({},"".concat(Zn,"-show-line"),Et),"".concat(Zn,"-focused"),bn),"".concat(Zn,"-active-focused"),Vt!==null)),style:gi},te.createElement(Yt,(0,ce.Z)({ref:this.listRef,prefixCls:Zn,style:Yn,data:xn,disabled:lr,selectable:Xi,checkable:!!kr,motion:wr,dragging:Zt!==null,height:Ei,itemHeight:rr,virtual:Gr,focusable:vi,focused:bn,tabIndex:sn,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:hi,onScroll:Jt,scrollWidth:Br},this.getTreeNodeRequiredProps(),ii))))}}],[{key:"getDerivedStateFromProps",value:function(_t,bn){var xn=bn.prevProps,Lt={prevProps:_t};function Zt(sn){return!xn&&_t.hasOwnProperty(sn)||xn&&xn[sn]!==_t[sn]}var Vt,fn=bn.fieldNames;if(Zt("fieldNames")&&(fn=(0,it.w$)(_t.fieldNames),Lt.fieldNames=fn),Zt("treeData")?Vt=_t.treeData:Zt("children")&&((0,ne.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),Vt=(0,it.zn)(_t.children)),Vt){Lt.treeData=Vt;var Pn=(0,it.I8)(Vt,{fieldNames:fn});Lt.keyEntities=(0,Re.Z)((0,Ye.Z)({},ct,rn),Pn.keyEntities)}var yn=Lt.keyEntities||bn.keyEntities;if(Zt("expandedKeys")||xn&&Zt("autoExpandParent"))Lt.expandedKeys=_t.autoExpandParent||!xn&&_t.defaultExpandParent?(0,On.r7)(_t.expandedKeys,yn):_t.expandedKeys;else if(!xn&&_t.defaultExpandAll){var Mt=(0,Re.Z)({},yn);delete Mt[ct];var zn=[];Object.keys(Mt).forEach(function(sn){var Xi=Mt[sn];Xi.children&&Xi.children.length&&zn.push(Xi.key)}),Lt.expandedKeys=zn}else!xn&&_t.defaultExpandedKeys&&(Lt.expandedKeys=_t.autoExpandParent||_t.defaultExpandParent?(0,On.r7)(_t.defaultExpandedKeys,yn):_t.defaultExpandedKeys);if(Lt.expandedKeys||delete Lt.expandedKeys,Vt||Lt.expandedKeys){var qn=(0,it.oH)(Vt||bn.treeData,Lt.expandedKeys||bn.expandedKeys,fn);Lt.flattenNodes=qn}if(_t.selectable&&(Zt("selectedKeys")?Lt.selectedKeys=(0,On.BT)(_t.selectedKeys,_t):!xn&&_t.defaultSelectedKeys&&(Lt.selectedKeys=(0,On.BT)(_t.defaultSelectedKeys,_t))),_t.checkable){var Rn;if(Zt("checkedKeys")?Rn=(0,On.E6)(_t.checkedKeys)||{}:!xn&&_t.defaultCheckedKeys?Rn=(0,On.E6)(_t.defaultCheckedKeys)||{}:Vt&&(Rn=(0,On.E6)(_t.checkedKeys)||{checkedKeys:bn.checkedKeys,halfCheckedKeys:bn.halfCheckedKeys}),Rn){var Zn=Rn,Ai=Zn.checkedKeys,Yn=Ai===void 0?[]:Ai,Et=Zn.halfCheckedKeys,vi=Et===void 0?[]:Et;if(!_t.checkStrictly){var Ri=(0,kt.S)(Yn,!0,yn);Yn=Ri.checkedKeys,vi=Ri.halfCheckedKeys}Lt.checkedKeys=Yn,Lt.halfCheckedKeys=vi}}return Zt("loadedKeys")&&(Lt.loadedKeys=_t.loadedKeys),Lt}}]),Ue}(te.Component);(0,Ye.Z)(et,"defaultProps",{prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:ge,allowDrop:function(){return!0},expandAction:!1}),(0,Ye.Z)(et,"TreeNode",qe.Z);var De=et,ke=De},82661:function(ze,Ee,ue){"use strict";ue.d(Ee,{BT:function(){return te},E6:function(){return ge},L0:function(){return Ye},OM:function(){return ne},_5:function(){return Qe},r7:function(){return Se},wA:function(){return ot},yx:function(){return yt}});var ce=ue(80702),Pe=ue(62853),Re=ue(48736),Me=ue(59301),We=ue(639),Te=ue(65065),Ge=ue(34061),st=null;function Qe(be,Ae){if(!be)return[];var Le=be.slice(),je=Le.indexOf(Ae);return je>=0&&Le.splice(je,1),Le}function Ye(be,Ae){var Le=(be||[]).slice();return Le.indexOf(Ae)===-1&&Le.push(Ae),Le}function yt(be){return be.split("-")}function ot(be,Ae){var Le=[],je=(0,Te.Z)(Ae,be);function $e(){var qe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];qe.forEach(function(nt){var dt=nt.key,it=nt.children;Le.push(dt),$e(it)})}return $e(je.children),Le}function Nt(be){if(be.parent){var Ae=yt(be.pos);return Number(Ae[Ae.length-1])===be.parent.children.length-1}return!1}function Fe(be){var Ae=yt(be.pos);return Number(Ae[Ae.length-1])===0}function ne(be,Ae,Le,je,$e,qe,nt,dt,it,bt){var It,Ht=be.clientX,ln=be.clientY,un=be.target.getBoundingClientRect(),Qt=un.top,nn=un.height,At=(bt==="rtl"?-1:1)*((($e==null?void 0:$e.x)||0)-Ht),ct=(At-12)/je,at=it.filter(function(ke){var Xe;return(Xe=dt[ke])===null||Xe===void 0||(Xe=Xe.children)===null||Xe===void 0?void 0:Xe.length}),rn=(0,Te.Z)(dt,Le.eventKey);if(ln<Qt+nn/2){var hn=nt.findIndex(function(ke){return ke.key===rn.key}),Pt=hn<=0?0:hn-1,pn=nt[Pt].key;rn=(0,Te.Z)(dt,pn)}var dn=rn.key,_n=rn,Yt=rn.key,On=0,kt=0;if(!at.includes(dn))for(var jn=0;jn<ct&&Nt(rn);jn+=1)rn=rn.parent,kt+=1;var ai=Ae.data,et=rn.node,De=!0;return Fe(rn)&&rn.level===0&&ln<Qt+nn/2&&qe({dragNode:ai,dropNode:et,dropPosition:-1})&&rn.key===Le.eventKey?On=-1:(_n.children||[]).length&&at.includes(Yt)?qe({dragNode:ai,dropNode:et,dropPosition:0})?On=0:De=!1:kt===0?ct>-1.5?qe({dragNode:ai,dropNode:et,dropPosition:1})?On=1:De=!1:qe({dragNode:ai,dropNode:et,dropPosition:0})?On=0:qe({dragNode:ai,dropNode:et,dropPosition:1})?On=1:De=!1:qe({dragNode:ai,dropNode:et,dropPosition:1})?On=1:De=!1,{dropPosition:On,dropLevelOffset:kt,dropTargetKey:rn.key,dropTargetPos:rn.pos,dragOverNodeKey:Yt,dropContainerKey:On===0?null:((It=rn.parent)===null||It===void 0?void 0:It.key)||null,dropAllowed:De}}function te(be,Ae){if(be){var Le=Ae.multiple;return Le?be.slice():be.length?[be[0]]:be}}var he=function(Ae){return Ae};function se(be,Ae){if(!be)return[];var Le=Ae||{},je=Le.processProps,$e=je===void 0?he:je,qe=Array.isArray(be)?be:[be];return qe.map(function(nt){var dt=nt.children,it=_objectWithoutProperties(nt,st),bt=se(dt,Ae);return React.createElement(TreeNode,_extends({key:it.key},$e(it)),bt)})}function ge(be){if(!be)return null;var Ae;if(Array.isArray(be))Ae={checkedKeys:be,halfCheckedKeys:void 0};else if((0,Pe.Z)(be)==="object")Ae={checkedKeys:be.checked||void 0,halfCheckedKeys:be.halfChecked||void 0};else return(0,Re.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return Ae}function Se(be,Ae){var Le=new Set;function je($e){if(!Le.has($e)){var qe=(0,Te.Z)(Ae,$e);if(qe){Le.add($e);var nt=qe.parent,dt=qe.node;dt.disabled||nt&&je(nt.key)}}}return(be||[]).forEach(function($e){je($e)}),(0,ce.Z)(Le)}},34643:function(ze,Ee,ue){"use strict";ue.d(Ee,{S:function(){return Ge}});var ce=ue(48736),Pe=ue(65065);function Re(st,Qe){var Ye=new Set;return st.forEach(function(yt){Qe.has(yt)||Ye.add(yt)}),Ye}function Me(st){var Qe=st||{},Ye=Qe.disabled,yt=Qe.disableCheckbox,ot=Qe.checkable;return!!(Ye||yt)||ot===!1}function We(st,Qe,Ye,yt){for(var ot=new Set(st),Nt=new Set,Fe=0;Fe<=Ye;Fe+=1){var ne=Qe.get(Fe)||new Set;ne.forEach(function(ge){var Se=ge.key,be=ge.node,Ae=ge.children,Le=Ae===void 0?[]:Ae;ot.has(Se)&&!yt(be)&&Le.filter(function(je){return!yt(je.node)}).forEach(function(je){ot.add(je.key)})})}for(var te=new Set,he=Ye;he>=0;he-=1){var se=Qe.get(he)||new Set;se.forEach(function(ge){var Se=ge.parent,be=ge.node;if(!(yt(be)||!ge.parent||te.has(ge.parent.key))){if(yt(ge.parent.node)){te.add(Se.key);return}var Ae=!0,Le=!1;(Se.children||[]).filter(function(je){return!yt(je.node)}).forEach(function(je){var $e=je.key,qe=ot.has($e);Ae&&!qe&&(Ae=!1),!Le&&(qe||Nt.has($e))&&(Le=!0)}),Ae&&ot.add(Se.key),Le&&Nt.add(Se.key),te.add(Se.key)}})}return{checkedKeys:Array.from(ot),halfCheckedKeys:Array.from(Re(Nt,ot))}}function Te(st,Qe,Ye,yt,ot){for(var Nt=new Set(st),Fe=new Set(Qe),ne=0;ne<=yt;ne+=1){var te=Ye.get(ne)||new Set;te.forEach(function(Se){var be=Se.key,Ae=Se.node,Le=Se.children,je=Le===void 0?[]:Le;!Nt.has(be)&&!Fe.has(be)&&!ot(Ae)&&je.filter(function($e){return!ot($e.node)}).forEach(function($e){Nt.delete($e.key)})})}Fe=new Set;for(var he=new Set,se=yt;se>=0;se-=1){var ge=Ye.get(se)||new Set;ge.forEach(function(Se){var be=Se.parent,Ae=Se.node;if(!(ot(Ae)||!Se.parent||he.has(Se.parent.key))){if(ot(Se.parent.node)){he.add(be.key);return}var Le=!0,je=!1;(be.children||[]).filter(function($e){return!ot($e.node)}).forEach(function($e){var qe=$e.key,nt=Nt.has(qe);Le&&!nt&&(Le=!1),!je&&(nt||Fe.has(qe))&&(je=!0)}),Le||Nt.delete(be.key),je&&Fe.add(be.key),he.add(be.key)}})}return{checkedKeys:Array.from(Nt),halfCheckedKeys:Array.from(Re(Fe,Nt))}}function Ge(st,Qe,Ye,yt){var ot=[],Nt;yt?Nt=yt:Nt=Me;var Fe=new Set(st.filter(function(se){var ge=!!(0,Pe.Z)(Ye,se);return ge||ot.push(se),ge})),ne=new Map,te=0;Object.keys(Ye).forEach(function(se){var ge=Ye[se],Se=ge.level,be=ne.get(Se);be||(be=new Set,ne.set(Se,be)),be.add(ge),te=Math.max(te,Se)}),(0,ce.ZP)(!ot.length,"Tree missing follow keys: ".concat(ot.slice(0,100).map(function(se){return"'".concat(se,"'")}).join(", ")));var he;return Qe===!0?he=We(Fe,ne,te,Nt):he=Te(Fe,Qe.halfCheckedKeys,ne,te,Nt),he}},65065:function(ze,Ee,ue){"use strict";ue.d(Ee,{Z:function(){return ce}});function ce(Pe,Re){return Pe[Re]}},34061:function(ze,Ee,ue){"use strict";ue.d(Ee,{F:function(){return Se},H8:function(){return ge},I8:function(){return se},km:function(){return ot},oH:function(){return te},w$:function(){return Nt},zn:function(){return ne}});var ce=ue(62853),Pe=ue(80702),Re=ue(77321),Me=ue(74416),We=ue(11592),Te=ue(2738),Ge=ue(48736),st=ue(65065),Qe=["children"];function Ye(be,Ae){return"".concat(be,"-").concat(Ae)}function yt(be){return be&&be.type&&be.type.isTreeNode}function ot(be,Ae){return be!=null?be:Ae}function Nt(be){var Ae=be||{},Le=Ae.title,je=Ae._title,$e=Ae.key,qe=Ae.children,nt=Le||"title";return{title:nt,_title:je||[nt],key:$e||"key",children:qe||"children"}}function Fe(be,Ae){var Le=new Map;function je($e){var qe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";($e||[]).forEach(function(nt){var dt=nt[Ae.key],it=nt[Ae.children];warning(dt!=null,"Tree node must have a certain key: [".concat(qe).concat(dt,"]"));var bt=String(dt);warning(!Le.has(bt)||dt===null||dt===void 0,"Same 'key' exist in the Tree: ".concat(bt)),Le.set(bt,!0),je(it,"".concat(qe).concat(bt," > "))})}je(be)}function ne(be){function Ae(Le){var je=(0,We.Z)(Le);return je.map(function($e){if(!yt($e))return(0,Ge.ZP)(!$e,"Tree/TreeNode can only accept TreeNode as children."),null;var qe=$e.key,nt=$e.props,dt=nt.children,it=(0,Me.Z)(nt,Qe),bt=(0,Re.Z)({key:qe},it),It=Ae(dt);return It.length&&(bt.children=It),bt}).filter(function($e){return $e})}return Ae(be)}function te(be,Ae,Le){var je=Nt(Le),$e=je._title,qe=je.key,nt=je.children,dt=new Set(Ae===!0?[]:Ae),it=[];function bt(It){var Ht=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return It.map(function(ln,un){for(var Qt=Ye(Ht?Ht.pos:"0",un),nn=ot(ln[qe],Qt),At,ct=0;ct<$e.length;ct+=1){var at=$e[ct];if(ln[at]!==void 0){At=ln[at];break}}var rn=Object.assign((0,Te.Z)(ln,[].concat((0,Pe.Z)($e),[qe,nt])),{title:At,key:nn,parent:Ht,pos:Qt,children:null,data:ln,isStart:[].concat((0,Pe.Z)(Ht?Ht.isStart:[]),[un===0]),isEnd:[].concat((0,Pe.Z)(Ht?Ht.isEnd:[]),[un===It.length-1])});return it.push(rn),Ae===!0||dt.has(nn)?rn.children=bt(ln[nt]||[],rn):rn.children=[],rn})}return bt(be),it}function he(be,Ae,Le){var je={};(0,ce.Z)(Le)==="object"?je=Le:je={externalGetKey:Le},je=je||{};var $e=je,qe=$e.childrenPropName,nt=$e.externalGetKey,dt=$e.fieldNames,it=Nt(dt),bt=it.key,It=it.children,Ht=qe||It,ln;nt?typeof nt=="string"?ln=function(nn){return nn[nt]}:typeof nt=="function"&&(ln=function(nn){return nt(nn)}):ln=function(nn,At){return ot(nn[bt],At)};function un(Qt,nn,At,ct){var at=Qt?Qt[Ht]:be,rn=Qt?Ye(At.pos,nn):"0",hn=Qt?[].concat((0,Pe.Z)(ct),[Qt]):[];if(Qt){var Pt=ln(Qt,rn),pn={node:Qt,index:nn,pos:rn,key:Pt,parentPos:At.node?At.pos:null,level:At.level+1,nodes:hn};Ae(pn)}at&&at.forEach(function(dn,_n){un(dn,_n,{node:Qt,pos:rn,level:At?At.level+1:-1},hn)})}un(null)}function se(be){var Ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Le=Ae.initWrapper,je=Ae.processEntity,$e=Ae.onProcessFinished,qe=Ae.externalGetKey,nt=Ae.childrenPropName,dt=Ae.fieldNames,it=arguments.length>2?arguments[2]:void 0,bt=qe||it,It={},Ht={},ln={posEntities:It,keyEntities:Ht};return Le&&(ln=Le(ln)||ln),he(be,function(un){var Qt=un.node,nn=un.index,At=un.pos,ct=un.key,at=un.parentPos,rn=un.level,hn=un.nodes,Pt={node:Qt,nodes:hn,index:nn,key:ct,pos:At,level:rn},pn=ot(ct,At);It[At]=Pt,Ht[pn]=Pt,Pt.parent=It[at],Pt.parent&&(Pt.parent.children=Pt.parent.children||[],Pt.parent.children.push(Pt)),je&&je(Pt,ln)},{externalGetKey:bt,childrenPropName:nt,fieldNames:dt}),$e&&$e(ln),ln}function ge(be,Ae){var Le=Ae.expandedKeys,je=Ae.selectedKeys,$e=Ae.loadedKeys,qe=Ae.loadingKeys,nt=Ae.checkedKeys,dt=Ae.halfCheckedKeys,it=Ae.dragOverNodeKey,bt=Ae.dropPosition,It=Ae.keyEntities,Ht=(0,st.Z)(It,be),ln={eventKey:be,expanded:Le.indexOf(be)!==-1,selected:je.indexOf(be)!==-1,loaded:$e.indexOf(be)!==-1,loading:qe.indexOf(be)!==-1,checked:nt.indexOf(be)!==-1,halfChecked:dt.indexOf(be)!==-1,pos:String(Ht?Ht.pos:""),dragOver:it===be&&bt===0,dragOverGapTop:it===be&&bt===-1,dragOverGapBottom:it===be&&bt===1};return ln}function Se(be){var Ae=be.data,Le=be.expanded,je=be.selected,$e=be.checked,qe=be.loaded,nt=be.loading,dt=be.halfChecked,it=be.dragOver,bt=be.dragOverGapTop,It=be.dragOverGapBottom,Ht=be.pos,ln=be.active,un=be.eventKey,Qt=(0,Re.Z)((0,Re.Z)({},Ae),{},{expanded:Le,selected:je,checked:$e,loaded:qe,loading:nt,halfChecked:dt,dragOver:it,dragOverGapTop:bt,dragOverGapBottom:It,pos:Ht,active:ln,key:un});return"props"in Qt||Object.defineProperty(Qt,"props",{get:function(){return(0,Ge.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),be}}),Qt}},90472:function(ze,Ee,ue){"use strict";ue.d(Ee,{Z:function(){return un}});var ce=ue(72308),Pe=ue(96949),Re=ue(55090),Me=ue(80237),We=ue(77205),Te=ue(38793),Ge=ue(49618),st=ue(59301),Qe=ue(77321),Ye=ue(74416),yt=ue(62853),ot=ue(65736),Nt=ue(72633),Fe=ue(80702),ne=ue(92310),te=ue.n(ne),he=ue(26112),se=ue(48736),ge=function(Qt,nn){if(Qt&&nn){var At=Array.isArray(nn)?nn:nn.split(","),ct=Qt.name||"",at=Qt.type||"",rn=at.replace(/\/.*$/,"");return At.some(function(hn){var Pt=hn.trim();if(/^\*(\/\*)?$/.test(hn))return!0;if(Pt.charAt(0)==="."){var pn=ct.toLowerCase(),dn=Pt.toLowerCase(),_n=[dn];return(dn===".jpg"||dn===".jpeg")&&(_n=[".jpg",".jpeg"]),_n.some(function(Yt){return pn.endsWith(Yt)})}return/\/\*$/.test(Pt)?rn===Pt.replace(/\/.*$/,""):at===Pt?!0:/^\w+$/.test(Pt)?((0,se.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(Pt,"'.Skip for check.")),!0):!1})}return!0};function Se(Qt,nn){var At="cannot ".concat(Qt.method," ").concat(Qt.action," ").concat(nn.status,"'"),ct=new Error(At);return ct.status=nn.status,ct.method=Qt.method,ct.url=Qt.action,ct}function be(Qt){var nn=Qt.responseText||Qt.response;if(!nn)return nn;try{return JSON.parse(nn)}catch(At){return nn}}function Ae(Qt){var nn=new XMLHttpRequest;Qt.onProgress&&nn.upload&&(nn.upload.onprogress=function(rn){rn.total>0&&(rn.percent=rn.loaded/rn.total*100),Qt.onProgress(rn)});var At=new FormData;Qt.data&&Object.keys(Qt.data).forEach(function(at){var rn=Qt.data[at];if(Array.isArray(rn)){rn.forEach(function(hn){At.append("".concat(at,"[]"),hn)});return}At.append(at,rn)}),Qt.file instanceof Blob?At.append(Qt.filename,Qt.file,Qt.file.name):At.append(Qt.filename,Qt.file),nn.onerror=function(rn){Qt.onError(rn)},nn.onload=function(){return nn.status<200||nn.status>=300?Qt.onError(Se(Qt,nn),be(nn)):Qt.onSuccess(be(nn),nn)},nn.open(Qt.method,Qt.action,!0),Qt.withCredentials&&"withCredentials"in nn&&(nn.withCredentials=!0);var ct=Qt.headers||{};return ct["X-Requested-With"]!==null&&nn.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(ct).forEach(function(at){ct[at]!==null&&nn.setRequestHeader(at,ct[at])}),nn.send(At),{abort:function(){nn.abort()}}}var Le=function(){var Qt=(0,Nt.Z)((0,ot.Z)().mark(function nn(At,ct){var at,rn,hn,Pt,pn,dn,_n,Yt;return(0,ot.Z)().wrap(function(kt){for(;;)switch(kt.prev=kt.next){case 0:dn=function(){return dn=(0,Nt.Z)((0,ot.Z)().mark(function ai(et){return(0,ot.Z)().wrap(function(ke){for(;;)switch(ke.prev=ke.next){case 0:return ke.abrupt("return",new Promise(function(Xe){et.file(function(ut){ct(ut)?(et.fullPath&&!ut.webkitRelativePath&&(Object.defineProperties(ut,{webkitRelativePath:{writable:!0}}),ut.webkitRelativePath=et.fullPath.replace(/^\//,""),Object.defineProperties(ut,{webkitRelativePath:{writable:!1}})),Xe(ut)):Xe(null)})}));case 1:case"end":return ke.stop()}},ai)})),dn.apply(this,arguments)},pn=function(ai){return dn.apply(this,arguments)},Pt=function(){return Pt=(0,Nt.Z)((0,ot.Z)().mark(function ai(et){var De,ke,Xe,ut,Ue;return(0,ot.Z)().wrap(function(_t){for(;;)switch(_t.prev=_t.next){case 0:De=et.createReader(),ke=[];case 2:return _t.next=5,new Promise(function(bn){De.readEntries(bn,function(){return bn([])})});case 5:if(Xe=_t.sent,ut=Xe.length,ut){_t.next=9;break}return _t.abrupt("break",12);case 9:for(Ue=0;Ue<ut;Ue++)ke.push(Xe[Ue]);_t.next=2;break;case 12:return _t.abrupt("return",ke);case 13:case"end":return _t.stop()}},ai)})),Pt.apply(this,arguments)},hn=function(ai){return Pt.apply(this,arguments)},at=[],rn=[],At.forEach(function(jn){return rn.push(jn.webkitGetAsEntry())}),_n=function(){var jn=(0,Nt.Z)((0,ot.Z)().mark(function ai(et,De){var ke,Xe;return(0,ot.Z)().wrap(function(Ue){for(;;)switch(Ue.prev=Ue.next){case 0:if(et){Ue.next=2;break}return Ue.abrupt("return");case 2:if(et.path=De||"",!et.isFile){Ue.next=10;break}return Ue.next=6,pn(et);case 6:ke=Ue.sent,ke&&at.push(ke),Ue.next=15;break;case 10:if(!et.isDirectory){Ue.next=15;break}return Ue.next=13,hn(et);case 13:Xe=Ue.sent,rn.push.apply(rn,(0,Fe.Z)(Xe));case 15:case"end":return Ue.stop()}},ai)}));return function(et,De){return jn.apply(this,arguments)}}(),Yt=0;case 9:if(!(Yt<rn.length)){kt.next=15;break}return kt.next=12,_n(rn[Yt]);case 12:Yt++,kt.next=9;break;case 15:return kt.abrupt("return",at);case 16:case"end":return kt.stop()}},nn)}));return function(At,ct){return Qt.apply(this,arguments)}}(),je=Le,$e=+new Date,qe=0;function nt(){return"rc-upload-".concat($e,"-").concat(++qe)}var dt=["component","prefixCls","className","classNames","disabled","id","name","style","styles","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave","hasControlInside"],it=function(Qt){(0,We.Z)(At,Qt);var nn=(0,Te.Z)(At);function At(){var ct;(0,Pe.Z)(this,At);for(var at=arguments.length,rn=new Array(at),hn=0;hn<at;hn++)rn[hn]=arguments[hn];return ct=nn.call.apply(nn,[this].concat(rn)),(0,Ge.Z)((0,Me.Z)(ct),"state",{uid:nt()}),(0,Ge.Z)((0,Me.Z)(ct),"reqs",{}),(0,Ge.Z)((0,Me.Z)(ct),"fileInput",void 0),(0,Ge.Z)((0,Me.Z)(ct),"_isMounted",void 0),(0,Ge.Z)((0,Me.Z)(ct),"onChange",function(Pt){var pn=ct.props,dn=pn.accept,_n=pn.directory,Yt=Pt.target.files,On=(0,Fe.Z)(Yt).filter(function(kt){return!_n||ge(kt,dn)});ct.uploadFiles(On),ct.reset()}),(0,Ge.Z)((0,Me.Z)(ct),"onClick",function(Pt){var pn=ct.fileInput;if(pn){var dn=Pt.target,_n=ct.props.onClick;if(dn&&dn.tagName==="BUTTON"){var Yt=pn.parentNode;Yt.focus(),dn.blur()}pn.click(),_n&&_n(Pt)}}),(0,Ge.Z)((0,Me.Z)(ct),"onKeyDown",function(Pt){Pt.key==="Enter"&&ct.onClick(Pt)}),(0,Ge.Z)((0,Me.Z)(ct),"onFileDrop",function(){var Pt=(0,Nt.Z)((0,ot.Z)().mark(function pn(dn){var _n,Yt,On;return(0,ot.Z)().wrap(function(jn){for(;;)switch(jn.prev=jn.next){case 0:if(_n=ct.props.multiple,dn.preventDefault(),dn.type!=="dragover"){jn.next=4;break}return jn.abrupt("return");case 4:if(!ct.props.directory){jn.next=11;break}return jn.next=7,je(Array.prototype.slice.call(dn.dataTransfer.items),function(ai){return ge(ai,ct.props.accept)});case 7:Yt=jn.sent,ct.uploadFiles(Yt),jn.next=14;break;case 11:On=(0,Fe.Z)(dn.dataTransfer.files).filter(function(ai){return ge(ai,ct.props.accept)}),_n===!1&&(On=On.slice(0,1)),ct.uploadFiles(On);case 14:case"end":return jn.stop()}},pn)}));return function(pn){return Pt.apply(this,arguments)}}()),(0,Ge.Z)((0,Me.Z)(ct),"uploadFiles",function(Pt){var pn=(0,Fe.Z)(Pt),dn=pn.map(function(_n){return _n.uid=nt(),ct.processFile(_n,pn)});Promise.all(dn).then(function(_n){var Yt=ct.props.onBatchStart;Yt==null||Yt(_n.map(function(On){var kt=On.origin,jn=On.parsedFile;return{file:kt,parsedFile:jn}})),_n.filter(function(On){return On.parsedFile!==null}).forEach(function(On){ct.post(On)})})}),(0,Ge.Z)((0,Me.Z)(ct),"processFile",function(){var Pt=(0,Nt.Z)((0,ot.Z)().mark(function pn(dn,_n){var Yt,On,kt,jn,ai,et,De,ke,Xe;return(0,ot.Z)().wrap(function(Ue){for(;;)switch(Ue.prev=Ue.next){case 0:if(Yt=ct.props.beforeUpload,On=dn,!Yt){Ue.next=14;break}return Ue.prev=3,Ue.next=6,Yt(dn,_n);case 6:On=Ue.sent,Ue.next=12;break;case 9:Ue.prev=9,Ue.t0=Ue.catch(3),On=!1;case 12:if(On!==!1){Ue.next=14;break}return Ue.abrupt("return",{origin:dn,parsedFile:null,action:null,data:null});case 14:if(kt=ct.props.action,typeof kt!="function"){Ue.next=21;break}return Ue.next=18,kt(dn);case 18:jn=Ue.sent,Ue.next=22;break;case 21:jn=kt;case 22:if(ai=ct.props.data,typeof ai!="function"){Ue.next=29;break}return Ue.next=26,ai(dn);case 26:et=Ue.sent,Ue.next=30;break;case 29:et=ai;case 30:return De=((0,yt.Z)(On)==="object"||typeof On=="string")&&On?On:dn,De instanceof File?ke=De:ke=new File([De],dn.name,{type:dn.type}),Xe=ke,Xe.uid=dn.uid,Ue.abrupt("return",{origin:dn,data:et,parsedFile:Xe,action:jn});case 35:case"end":return Ue.stop()}},pn,null,[[3,9]])}));return function(pn,dn){return Pt.apply(this,arguments)}}()),(0,Ge.Z)((0,Me.Z)(ct),"saveFileInput",function(Pt){ct.fileInput=Pt}),ct}return(0,Re.Z)(At,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(at){var rn=this,hn=at.data,Pt=at.origin,pn=at.action,dn=at.parsedFile;if(this._isMounted){var _n=this.props,Yt=_n.onStart,On=_n.customRequest,kt=_n.name,jn=_n.headers,ai=_n.withCredentials,et=_n.method,De=Pt.uid,ke=On||Ae,Xe={action:pn,filename:kt,data:hn,file:dn,headers:jn,withCredentials:ai,method:et||"post",onProgress:function(Ue){var gt=rn.props.onProgress;gt==null||gt(Ue,dn)},onSuccess:function(Ue,gt){var _t=rn.props.onSuccess;_t==null||_t(Ue,dn,gt),delete rn.reqs[De]},onError:function(Ue,gt){var _t=rn.props.onError;_t==null||_t(Ue,gt,dn),delete rn.reqs[De]}};Yt(Pt),this.reqs[De]=ke(Xe)}}},{key:"reset",value:function(){this.setState({uid:nt()})}},{key:"abort",value:function(at){var rn=this.reqs;if(at){var hn=at.uid?at.uid:at;rn[hn]&&rn[hn].abort&&rn[hn].abort(),delete rn[hn]}else Object.keys(rn).forEach(function(Pt){rn[Pt]&&rn[Pt].abort&&rn[Pt].abort(),delete rn[Pt]})}},{key:"render",value:function(){var at=this.props,rn=at.component,hn=at.prefixCls,Pt=at.className,pn=at.classNames,dn=pn===void 0?{}:pn,_n=at.disabled,Yt=at.id,On=at.name,kt=at.style,jn=at.styles,ai=jn===void 0?{}:jn,et=at.multiple,De=at.accept,ke=at.capture,Xe=at.children,ut=at.directory,Ue=at.openFileDialogOnClick,gt=at.onMouseEnter,_t=at.onMouseLeave,bn=at.hasControlInside,xn=(0,Ye.Z)(at,dt),Lt=te()((0,Ge.Z)((0,Ge.Z)((0,Ge.Z)({},hn,!0),"".concat(hn,"-disabled"),_n),Pt,Pt)),Zt=ut?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},Vt=_n?{}:{onClick:Ue?this.onClick:function(){},onKeyDown:Ue?this.onKeyDown:function(){},onMouseEnter:gt,onMouseLeave:_t,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:bn?void 0:"0"};return st.createElement(rn,(0,ce.Z)({},Vt,{className:Lt,role:bn?void 0:"button",style:kt}),st.createElement("input",(0,ce.Z)({},(0,he.Z)(xn,{aria:!0,data:!0}),{id:Yt,name:On,disabled:_n,type:"file",ref:this.saveFileInput,onClick:function(Pn){return Pn.stopPropagation()},key:this.state.uid,style:(0,Qe.Z)({display:"none"},ai.input),className:dn.input,accept:De},Zt,{multiple:et,onChange:this.onChange},ke!=null?{capture:ke}:{})),Xe)}}]),At}(st.Component),bt=it;function It(){}var Ht=function(Qt){(0,We.Z)(At,Qt);var nn=(0,Te.Z)(At);function At(){var ct;(0,Pe.Z)(this,At);for(var at=arguments.length,rn=new Array(at),hn=0;hn<at;hn++)rn[hn]=arguments[hn];return ct=nn.call.apply(nn,[this].concat(rn)),(0,Ge.Z)((0,Me.Z)(ct),"uploader",void 0),(0,Ge.Z)((0,Me.Z)(ct),"saveUploader",function(Pt){ct.uploader=Pt}),ct}return(0,Re.Z)(At,[{key:"abort",value:function(at){this.uploader.abort(at)}},{key:"render",value:function(){return st.createElement(bt,(0,ce.Z)({},this.props,{ref:this.saveUploader}))}}]),At}(st.Component);(0,Ge.Z)(Ht,"defaultProps",{component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:It,onError:It,onSuccess:It,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0,hasControlInside:!1});var ln=Ht,un=ln},8224:function(ze,Ee,ue){"use strict";ue.d(Ee,{Z:function(){return Pe}});var ce=ue(4676);function Pe(Re,Me,We,Te){var Ge=ce.unstable_batchedUpdates?function(Qe){ce.unstable_batchedUpdates(We,Qe)}:We;return Re!=null&&Re.addEventListener&&Re.addEventListener(Me,Ge,Te),{remove:function(){Re!=null&&Re.removeEventListener&&Re.removeEventListener(Me,Ge,Te)}}}},24514:function(ze,Ee,ue){"use strict";ue.d(Ee,{G:function(){return Me}});var ce=ue(47273),Pe=function(Te){if((0,ce.Z)()&&window.document.documentElement){var Ge=Array.isArray(Te)?Te:[Te],st=window.document.documentElement;return Ge.some(function(Qe){return Qe in st.style})}return!1},Re=function(Te,Ge){if(!Pe(Te))return!1;var st=document.createElement("div"),Qe=st.style[Te];return st.style[Te]=Ge,st.style[Te]!==Qe};function Me(We,Te){return!Array.isArray(We)&&Te!==void 0?Re(We,Te):Pe(We)}},45680:function(ze,Ee,ue){"use strict";ue.d(Ee,{Z:function(){return ai}});var ce=ue(72308),Pe=ue(62853),Re=ue(77321),Me=ue(49618),We=ue(52487),Te=ue(74416),Ge=ue(92310),st=ue.n(Ge),Qe=ue(29301),Ye=ue(70425),yt=ue(34280),ot=ue(59301),Nt=ue(4676),Fe=ot.forwardRef(function(et,De){var ke=et.height,Xe=et.offsetY,ut=et.offsetX,Ue=et.children,gt=et.prefixCls,_t=et.onInnerResize,bn=et.innerProps,xn=et.rtl,Lt=et.extra,Zt={},Vt={display:"flex",flexDirection:"column"};return Xe!==void 0&&(Zt={height:ke,position:"relative",overflow:"hidden"},Vt=(0,Re.Z)((0,Re.Z)({},Vt),{},(0,Me.Z)((0,Me.Z)((0,Me.Z)((0,Me.Z)((0,Me.Z)({transform:"translateY(".concat(Xe,"px)")},xn?"marginRight":"marginLeft",-ut),"position","absolute"),"left",0),"right",0),"top",0))),ot.createElement("div",{style:Zt},ot.createElement(Qe.Z,{onResize:function(Pn){var yn=Pn.offsetHeight;yn&&_t&&_t()}},ot.createElement("div",(0,ce.Z)({style:Vt,className:st()((0,Me.Z)({},"".concat(gt,"-holder-inner"),gt)),ref:De},bn),Ue,Lt)))});Fe.displayName="Filler";var ne=Fe;function te(et){var De=et.children,ke=et.setRef,Xe=ot.useCallback(function(ut){ke(ut)},[]);return ot.cloneElement(De,{ref:Xe})}function he(et,De,ke,Xe,ut,Ue,gt,_t){var bn=_t.getKey;return et.slice(De,ke+1).map(function(xn,Lt){var Zt=De+Lt,Vt=gt(xn,Zt,{style:{width:Xe},offsetX:ut}),fn=bn(xn);return ot.createElement(te,{key:fn,setRef:function(yn){return Ue(xn,yn)}},Vt)})}function se(et,De,ke,Xe){var ut=ke-et,Ue=De-ke,gt=Math.min(ut,Ue)*2;if(Xe<=gt){var _t=Math.floor(Xe/2);return Xe%2?ke+_t+1:ke-_t}return ut>Ue?ke-(Xe-Ue):ke+(Xe-ut)}function ge(et,De,ke){var Xe=et.length,ut=De.length,Ue,gt;if(Xe===0&&ut===0)return null;Xe<ut?(Ue=et,gt=De):(Ue=De,gt=et);var _t={__EMPTY_ITEM__:!0};function bn(Pn){return Pn!==void 0?ke(Pn):_t}for(var xn=null,Lt=Math.abs(Xe-ut)!==1,Zt=0;Zt<gt.length;Zt+=1){var Vt=bn(Ue[Zt]),fn=bn(gt[Zt]);if(Vt!==fn){xn=Zt,Lt=Lt||Vt!==bn(gt[Zt+1]);break}}return xn===null?null:{index:xn,multiple:Lt}}function Se(et,De,ke){var Xe=ot.useState(et),ut=(0,We.Z)(Xe,2),Ue=ut[0],gt=ut[1],_t=ot.useState(null),bn=(0,We.Z)(_t,2),xn=bn[0],Lt=bn[1];return ot.useEffect(function(){var Zt=ge(Ue||[],et||[],De);(Zt==null?void 0:Zt.index)!==void 0&&(ke==null||ke(Zt.index),Lt(et[Zt.index])),gt(et)},[et]),[xn]}var be=ue(16089),Ae=(typeof navigator=="undefined"?"undefined":(0,Pe.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),Le=Ae,je=function(et,De,ke,Xe){var ut=(0,ot.useRef)(!1),Ue=(0,ot.useRef)(null);function gt(){clearTimeout(Ue.current),ut.current=!0,Ue.current=setTimeout(function(){ut.current=!1},50)}var _t=(0,ot.useRef)({top:et,bottom:De,left:ke,right:Xe});return _t.current.top=et,_t.current.bottom=De,_t.current.left=ke,_t.current.right=Xe,function(bn,xn){var Lt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Zt=bn?xn<0&&_t.current.left||xn>0&&_t.current.right:xn<0&&_t.current.top||xn>0&&_t.current.bottom;return Lt&&Zt?(clearTimeout(Ue.current),ut.current=!1):(!Zt||ut.current)&>(),!ut.current&&Zt}};function $e(et,De,ke,Xe,ut,Ue,gt){var _t=(0,ot.useRef)(0),bn=(0,ot.useRef)(null),xn=(0,ot.useRef)(null),Lt=(0,ot.useRef)(!1),Zt=je(De,ke,Xe,ut);function Vt(qn,Rn){if(be.Z.cancel(bn.current),!Zt(!1,Rn)){var Zn=qn;if(!Zn._virtualHandled)Zn._virtualHandled=!0;else return;_t.current+=Rn,xn.current=Rn,Le||Zn.preventDefault(),bn.current=(0,be.Z)(function(){var Ai=Lt.current?10:1;gt(_t.current*Ai,!1),_t.current=0})}}function fn(qn,Rn){gt(Rn,!0),Le||qn.preventDefault()}var Pn=(0,ot.useRef)(null),yn=(0,ot.useRef)(null);function Mt(qn){if(et){be.Z.cancel(yn.current),yn.current=(0,be.Z)(function(){Pn.current=null},2);var Rn=qn.deltaX,Zn=qn.deltaY,Ai=qn.shiftKey,Yn=Rn,Et=Zn;(Pn.current==="sx"||!Pn.current&&Ai&&Zn&&!Rn)&&(Yn=Zn,Et=0,Pn.current="sx");var vi=Math.abs(Yn),Ri=Math.abs(Et);Pn.current===null&&(Pn.current=Ue&&vi>Ri?"x":"y"),Pn.current==="y"?Vt(qn,Et):fn(qn,Yn)}}function zn(qn){et&&(Lt.current=qn.detail===xn.current)}return[Mt,zn]}function qe(et,De,ke,Xe){var ut=ot.useMemo(function(){return[new Map,[]]},[et,ke.id,Xe]),Ue=(0,We.Z)(ut,2),gt=Ue[0],_t=Ue[1],bn=function(Lt){var Zt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Lt,Vt=gt.get(Lt),fn=gt.get(Zt);if(Vt===void 0||fn===void 0)for(var Pn=et.length,yn=_t.length;yn<Pn;yn+=1){var Mt,zn=et[yn],qn=De(zn);gt.set(qn,yn);var Rn=(Mt=ke.get(qn))!==null&&Mt!==void 0?Mt:Xe;if(_t[yn]=(_t[yn-1]||0)+Rn,qn===Lt&&(Vt=yn),qn===Zt&&(fn=yn),Vt!==void 0&&fn!==void 0)break}return{top:_t[Vt-1]||0,bottom:_t[fn]}};return bn}var nt=ue(96949),dt=ue(55090),it=function(){function et(){(0,nt.Z)(this,et),(0,Me.Z)(this,"maps",void 0),(0,Me.Z)(this,"id",0),(0,Me.Z)(this,"diffKeys",new Set),this.maps=Object.create(null)}return(0,dt.Z)(et,[{key:"set",value:function(ke,Xe){this.maps[ke]=Xe,this.id+=1,this.diffKeys.add(ke)}},{key:"get",value:function(ke){return this.maps[ke]}},{key:"resetRecord",value:function(){this.diffKeys.clear()}},{key:"getRecord",value:function(){return this.diffKeys}}]),et}(),bt=it;function It(et){var De=parseFloat(et);return isNaN(De)?0:De}function Ht(et,De,ke){var Xe=ot.useState(0),ut=(0,We.Z)(Xe,2),Ue=ut[0],gt=ut[1],_t=(0,ot.useRef)(new Map),bn=(0,ot.useRef)(new bt),xn=(0,ot.useRef)(0);function Lt(){xn.current+=1}function Zt(){var fn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;Lt();var Pn=function(){var zn=!1;_t.current.forEach(function(qn,Rn){if(qn&&qn.offsetParent){var Zn=qn.offsetHeight,Ai=getComputedStyle(qn),Yn=Ai.marginTop,Et=Ai.marginBottom,vi=It(Yn),Ri=It(Et),sn=Zn+vi+Ri;bn.current.get(Rn)!==sn&&(bn.current.set(Rn,sn),zn=!0)}}),zn&>(function(qn){return qn+1})};if(fn)Pn();else{xn.current+=1;var yn=xn.current;Promise.resolve().then(function(){yn===xn.current&&Pn()})}}function Vt(fn,Pn){var yn=et(fn),Mt=_t.current.get(yn);Pn?(_t.current.set(yn,Pn),Zt()):_t.current.delete(yn),!Mt!=!Pn&&(Pn?De==null||De(fn):ke==null||ke(fn))}return(0,ot.useEffect)(function(){return Lt},[]),[Vt,Zt,bn.current,Ue]}var ln=14/15;function un(et,De,ke){var Xe=(0,ot.useRef)(!1),ut=(0,ot.useRef)(0),Ue=(0,ot.useRef)(0),gt=(0,ot.useRef)(null),_t=(0,ot.useRef)(null),bn,xn=function(fn){if(Xe.current){var Pn=Math.ceil(fn.touches[0].pageX),yn=Math.ceil(fn.touches[0].pageY),Mt=ut.current-Pn,zn=Ue.current-yn,qn=Math.abs(Mt)>Math.abs(zn);qn?ut.current=Pn:Ue.current=yn;var Rn=ke(qn,qn?Mt:zn,!1,fn);Rn&&fn.preventDefault(),clearInterval(_t.current),Rn&&(_t.current=setInterval(function(){qn?Mt*=ln:zn*=ln;var Zn=Math.floor(qn?Mt:zn);(!ke(qn,Zn,!0)||Math.abs(Zn)<=.1)&&clearInterval(_t.current)},16))}},Lt=function(){Xe.current=!1,bn()},Zt=function(fn){bn(),fn.touches.length===1&&!Xe.current&&(Xe.current=!0,ut.current=Math.ceil(fn.touches[0].pageX),Ue.current=Math.ceil(fn.touches[0].pageY),gt.current=fn.target,gt.current.addEventListener("touchmove",xn,{passive:!1}),gt.current.addEventListener("touchend",Lt,{passive:!0}))};bn=function(){gt.current&&(gt.current.removeEventListener("touchmove",xn),gt.current.removeEventListener("touchend",Lt))},(0,yt.Z)(function(){return et&&De.current.addEventListener("touchstart",Zt,{passive:!0}),function(){var Vt;(Vt=De.current)===null||Vt===void 0||Vt.removeEventListener("touchstart",Zt),bn(),clearInterval(_t.current)}},[et])}function Qt(et){return Math.floor(Math.pow(et,.5))}function nn(et,De){var ke="touches"in et?et.touches[0]:et;return ke[De?"pageX":"pageY"]-window[De?"scrollX":"scrollY"]}function At(et,De,ke){ot.useEffect(function(){var Xe=De.current;if(et&&Xe){var ut=!1,Ue,gt,_t=function(){be.Z.cancel(Ue)},bn=function Vt(){_t(),Ue=(0,be.Z)(function(){ke(gt),Vt()})},xn=function(fn){if(!(fn.target.draggable||fn.button!==0)){var Pn=fn;Pn._virtualHandled||(Pn._virtualHandled=!0,ut=!0)}},Lt=function(){ut=!1,_t()},Zt=function(fn){if(ut){var Pn=nn(fn,!1),yn=Xe.getBoundingClientRect(),Mt=yn.top,zn=yn.bottom;if(Pn<=Mt){var qn=Mt-Pn;gt=-Qt(qn),bn()}else if(Pn>=zn){var Rn=Pn-zn;gt=Qt(Rn),bn()}else _t()}};return Xe.addEventListener("mousedown",xn),Xe.ownerDocument.addEventListener("mouseup",Lt),Xe.ownerDocument.addEventListener("mousemove",Zt),function(){Xe.removeEventListener("mousedown",xn),Xe.ownerDocument.removeEventListener("mouseup",Lt),Xe.ownerDocument.removeEventListener("mousemove",Zt),_t()}}},[et])}var ct=10;function at(et,De,ke,Xe,ut,Ue,gt,_t){var bn=ot.useRef(),xn=ot.useState(null),Lt=(0,We.Z)(xn,2),Zt=Lt[0],Vt=Lt[1];return(0,yt.Z)(function(){if(Zt&&Zt.times<ct){if(!et.current){Vt(function(wr){return(0,Re.Z)({},wr)});return}Ue();var fn=Zt.targetAlign,Pn=Zt.originAlign,yn=Zt.index,Mt=Zt.offset,zn=et.current.clientHeight,qn=!1,Rn=fn,Zn=null;if(zn){for(var Ai=fn||Pn,Yn=0,Et=0,vi=0,Ri=Math.min(De.length-1,yn),sn=0;sn<=Ri;sn+=1){var Xi=ut(De[sn]);Et=Yn;var cr=ke.get(Xi);vi=Et+(cr===void 0?Xe:cr),Yn=vi}for(var fr=Ai==="top"?Mt:zn-Mt,kn=Ri;kn>=0;kn-=1){var Or=ut(De[kn]),kr=ke.get(Or);if(kr===void 0){qn=!0;break}if(fr-=kr,fr<=0)break}switch(Ai){case"top":Zn=Et-Mt;break;case"bottom":Zn=vi-zn+Mt;break;default:{var Wi=et.current.scrollTop,lr=Wi+zn;Et<Wi?Rn="top":vi>lr&&(Rn="bottom")}}Zn!==null&>(Zn),Zn!==Zt.lastTop&&(qn=!0)}qn&&Vt((0,Re.Z)((0,Re.Z)({},Zt),{},{times:Zt.times+1,targetAlign:Rn,lastTop:Zn}))}},[Zt,et.current]),function(fn){if(fn==null){_t();return}if(be.Z.cancel(bn.current),typeof fn=="number")gt(fn);else if(fn&&(0,Pe.Z)(fn)==="object"){var Pn,yn=fn.align;"index"in fn?Pn=fn.index:Pn=De.findIndex(function(qn){return ut(qn)===fn.key});var Mt=fn.offset,zn=Mt===void 0?0:Mt;Vt({times:0,index:Pn,offset:zn,originAlign:yn})}}}var rn=ot.forwardRef(function(et,De){var ke=et.prefixCls,Xe=et.rtl,ut=et.scrollOffset,Ue=et.scrollRange,gt=et.onStartMove,_t=et.onStopMove,bn=et.onScroll,xn=et.horizontal,Lt=et.spinSize,Zt=et.containerSize,Vt=et.style,fn=et.thumbStyle,Pn=et.showScrollBar,yn=ot.useState(!1),Mt=(0,We.Z)(yn,2),zn=Mt[0],qn=Mt[1],Rn=ot.useState(null),Zn=(0,We.Z)(Rn,2),Ai=Zn[0],Yn=Zn[1],Et=ot.useState(null),vi=(0,We.Z)(Et,2),Ri=vi[0],sn=vi[1],Xi=!Xe,cr=ot.useRef(),fr=ot.useRef(),kn=ot.useState(Pn),Or=(0,We.Z)(kn,2),kr=Or[0],Wi=Or[1],lr=ot.useRef(),wr=function(){Pn===!0||Pn===!1||(clearTimeout(lr.current),Wi(!0),lr.current=setTimeout(function(){Wi(!1)},3e3))},Ie=Ue-Zt||0,Yi=Zt-Lt||0,Ei=ot.useMemo(function(){if(ut===0||Ie===0)return 0;var jt=ut/Ie;return jt*Yi},[ut,Ie,Yi]),rr=function(gi){gi.stopPropagation(),gi.preventDefault()},Br=ot.useRef({top:Ei,dragging:zn,pageY:Ai,startTop:Ri});Br.current={top:Ei,dragging:zn,pageY:Ai,startTop:Ri};var Gr=function(gi){qn(!0),Yn(nn(gi,xn)),sn(Br.current.top),gt(),gi.stopPropagation(),gi.preventDefault()};ot.useEffect(function(){var jt=function(In){In.preventDefault()},gi=cr.current,ii=fr.current;return gi.addEventListener("touchstart",jt,{passive:!1}),ii.addEventListener("touchstart",Gr,{passive:!1}),function(){gi.removeEventListener("touchstart",jt),ii.removeEventListener("touchstart",Gr)}},[]);var yr=ot.useRef();yr.current=Ie;var Vi=ot.useRef();Vi.current=Yi,ot.useEffect(function(){if(zn){var jt,gi=function(In){var fi=Br.current,on=fi.dragging,Gt=fi.pageY,li=fi.startTop;be.Z.cancel(jt);var vt=cr.current.getBoundingClientRect(),Sn=Zt/(xn?vt.width:vt.height);if(on){var ri=(nn(In,xn)-Gt)*Sn,ki=li;!Xi&&xn?ki-=ri:ki+=ri;var zt=yr.current,wn=Vi.current,oi=wn?ki/wn:0,qt=Math.ceil(oi*zt);qt=Math.max(qt,0),qt=Math.min(qt,zt),jt=(0,be.Z)(function(){bn(qt,xn)})}},ii=function(){qn(!1),_t()};return window.addEventListener("mousemove",gi,{passive:!0}),window.addEventListener("touchmove",gi,{passive:!0}),window.addEventListener("mouseup",ii,{passive:!0}),window.addEventListener("touchend",ii,{passive:!0}),function(){window.removeEventListener("mousemove",gi),window.removeEventListener("touchmove",gi),window.removeEventListener("mouseup",ii),window.removeEventListener("touchend",ii),be.Z.cancel(jt)}}},[zn]),ot.useEffect(function(){return wr(),function(){clearTimeout(lr.current)}},[ut]),ot.useImperativeHandle(De,function(){return{delayHidden:wr}});var hi="".concat(ke,"-scrollbar"),Jt={position:"absolute",visibility:kr?null:"hidden"},Wt={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return xn?(Jt.height=8,Jt.left=0,Jt.right=0,Jt.bottom=0,Wt.height="100%",Wt.width=Lt,Xi?Wt.left=Ei:Wt.right=Ei):(Jt.width=8,Jt.top=0,Jt.bottom=0,Xi?Jt.right=0:Jt.left=0,Wt.width="100%",Wt.height=Lt,Wt.top=Ei),ot.createElement("div",{ref:cr,className:st()(hi,(0,Me.Z)((0,Me.Z)((0,Me.Z)({},"".concat(hi,"-horizontal"),xn),"".concat(hi,"-vertical"),!xn),"".concat(hi,"-visible"),kr)),style:(0,Re.Z)((0,Re.Z)({},Jt),Vt),onMouseDown:rr,onMouseMove:wr},ot.createElement("div",{ref:fr,className:st()("".concat(hi,"-thumb"),(0,Me.Z)({},"".concat(hi,"-thumb-moving"),zn)),style:(0,Re.Z)((0,Re.Z)({},Wt),fn),onMouseDown:Gr}))}),hn=rn,Pt=20;function pn(){var et=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,De=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,ke=et/De*et;return isNaN(ke)&&(ke=0),ke=Math.max(ke,Pt),Math.floor(ke)}var dn=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],_n=[],Yt={overflowY:"auto",overflowAnchor:"none"};function On(et,De){var ke=et.prefixCls,Xe=ke===void 0?"rc-virtual-list":ke,ut=et.className,Ue=et.height,gt=et.itemHeight,_t=et.fullHeight,bn=_t===void 0?!0:_t,xn=et.style,Lt=et.data,Zt=et.children,Vt=et.itemKey,fn=et.virtual,Pn=et.direction,yn=et.scrollWidth,Mt=et.component,zn=Mt===void 0?"div":Mt,qn=et.onScroll,Rn=et.onVirtualScroll,Zn=et.onVisibleChange,Ai=et.innerProps,Yn=et.extraRender,Et=et.styles,vi=et.showScrollBar,Ri=vi===void 0?"optional":vi,sn=(0,Te.Z)(et,dn),Xi=ot.useCallback(function(Vn){return typeof Vt=="function"?Vt(Vn):Vn==null?void 0:Vn[Vt]},[Vt]),cr=Ht(Xi,null,null),fr=(0,We.Z)(cr,4),kn=fr[0],Or=fr[1],kr=fr[2],Wi=fr[3],lr=!!(fn!==!1&&Ue&>),wr=ot.useMemo(function(){return Object.values(kr.maps).reduce(function(Vn,pi){return Vn+pi},0)},[kr.id,kr.maps]),Ie=lr&&Lt&&(Math.max(gt*Lt.length,wr)>Ue||!!yn),Yi=Pn==="rtl",Ei=st()(Xe,(0,Me.Z)({},"".concat(Xe,"-rtl"),Yi),ut),rr=Lt||_n,Br=(0,ot.useRef)(),Gr=(0,ot.useRef)(),yr=(0,ot.useRef)(),Vi=(0,ot.useState)(0),hi=(0,We.Z)(Vi,2),Jt=hi[0],Wt=hi[1],jt=(0,ot.useState)(0),gi=(0,We.Z)(jt,2),ii=gi[0],Pi=gi[1],In=(0,ot.useState)(!1),fi=(0,We.Z)(In,2),on=fi[0],Gt=fi[1],li=function(){Gt(!0)},vt=function(){Gt(!1)},Sn={getKey:Xi};function ri(Vn){Wt(function(pi){var mi;typeof Vn=="function"?mi=Vn(pi):mi=Vn;var xi=ir(mi);return Br.current.scrollTop=xi,xi})}var ki=(0,ot.useRef)({start:0,end:rr.length}),zt=(0,ot.useRef)(),wn=Se(rr,Xi),oi=(0,We.Z)(wn,1),qt=oi[0];zt.current=qt;var Be=ot.useMemo(function(){if(!lr)return{scrollHeight:void 0,start:0,end:rr.length-1,offset:void 0};if(!Ie){var Vn;return{scrollHeight:((Vn=Gr.current)===null||Vn===void 0?void 0:Vn.offsetHeight)||0,start:0,end:rr.length-1,offset:void 0}}for(var pi=0,mi,xi,bi,tr=rr.length,zi=0;zi<tr;zi+=1){var Bi=rr[zi],Ln=Xi(Bi),Oi=kr.get(Ln),ar=pi+(Oi===void 0?gt:Oi);ar>=Jt&&mi===void 0&&(mi=zi,xi=pi),ar>Jt+Ue&&bi===void 0&&(bi=zi),pi=ar}return mi===void 0&&(mi=0,xi=0,bi=Math.ceil(Ue/gt)),bi===void 0&&(bi=rr.length-1),bi=Math.min(bi+1,rr.length-1),{scrollHeight:pi,start:mi,end:bi,offset:xi}},[Ie,lr,Jt,rr,Wi,Ue]),Mi=Be.scrollHeight,ui=Be.start,Tn=Be.end,Ki=Be.offset;ki.current.start=ui,ki.current.end=Tn,ot.useLayoutEffect(function(){var Vn=kr.getRecord();if(Vn.size===1){var pi=Array.from(Vn)[0],mi=rr[ui];if(mi){var xi=Xi(mi);if(xi===pi){var bi=kr.get(pi),tr=bi-gt;ri(function(zi){return zi+tr})}}}kr.resetRecord()},[Mi]);var er=ot.useState({width:0,height:Ue}),or=(0,We.Z)(er,2),Cn=or[0],Kt=or[1],sr=function(pi){Kt({width:pi.offsetWidth,height:pi.offsetHeight})},ro=(0,ot.useRef)(),mn=(0,ot.useRef)(),wi=ot.useMemo(function(){return pn(Cn.width,yn)},[Cn.width,yn]),_i=ot.useMemo(function(){return pn(Cn.height,Mi)},[Cn.height,Mi]),Ji=Mi-Ue,Gi=(0,ot.useRef)(Ji);Gi.current=Ji;function ir(Vn){var pi=Vn;return Number.isNaN(Gi.current)||(pi=Math.min(pi,Gi.current)),pi=Math.max(pi,0),pi}var Fr=Jt<=0,Cr=Jt>=Ji,Ir=ii<=0,Ur=ii>=yn,Dn=je(Fr,Cr,Ir,Ur),Zr=function(){return{x:Yi?-ii:ii,y:Jt}},Bn=(0,ot.useRef)(Zr()),qi=(0,Ye.zX)(function(Vn){if(Rn){var pi=(0,Re.Z)((0,Re.Z)({},Zr()),Vn);(Bn.current.x!==pi.x||Bn.current.y!==pi.y)&&(Rn(pi),Bn.current=pi)}});function ur(Vn,pi){var mi=Vn;pi?((0,Nt.flushSync)(function(){Pi(mi)}),qi()):ri(mi)}function gr(Vn){var pi=Vn.currentTarget.scrollTop;pi!==Jt&&ri(pi),qn==null||qn(Vn),qi()}var xo=function(pi){var mi=pi,xi=yn?yn-Cn.width:0;return mi=Math.max(mi,0),mi=Math.min(mi,xi),mi},yo=(0,Ye.zX)(function(Vn,pi){pi?((0,Nt.flushSync)(function(){Pi(function(mi){var xi=mi+(Yi?-Vn:Vn);return xo(xi)})}),qi()):ri(function(mi){var xi=mi+Vn;return xi})}),mo=$e(lr,Fr,Cr,Ir,Ur,!!yn,yo),bo=(0,We.Z)(mo,2),cn=bo[0],Fn=bo[1];un(lr,Br,function(Vn,pi,mi,xi){var bi=xi;return Dn(Vn,pi,mi)?!1:!bi||!bi._virtualHandled?(bi&&(bi._virtualHandled=!0),cn({preventDefault:function(){},deltaX:Vn?pi:0,deltaY:Vn?0:pi}),!0):!1}),At(Ie,Br,function(Vn){ri(function(pi){return pi+Vn})}),(0,yt.Z)(function(){function Vn(mi){var xi=Fr&&mi.detail<0,bi=Cr&&mi.detail>0;lr&&!xi&&!bi&&mi.preventDefault()}var pi=Br.current;return pi.addEventListener("wheel",cn,{passive:!1}),pi.addEventListener("DOMMouseScroll",Fn,{passive:!0}),pi.addEventListener("MozMousePixelScroll",Vn,{passive:!1}),function(){pi.removeEventListener("wheel",cn),pi.removeEventListener("DOMMouseScroll",Fn),pi.removeEventListener("MozMousePixelScroll",Vn)}},[lr,Fr,Cr]),(0,yt.Z)(function(){if(yn){var Vn=xo(ii);Pi(Vn),qi({x:Vn})}},[Cn.width,yn]);var an=function(){var pi,mi;(pi=ro.current)===null||pi===void 0||pi.delayHidden(),(mi=mn.current)===null||mi===void 0||mi.delayHidden()},Je=at(Br,rr,kr,gt,Xi,function(){return Or(!0)},ri,an);ot.useImperativeHandle(De,function(){return{nativeElement:yr.current,getScrollInfo:Zr,scrollTo:function(pi){function mi(xi){return xi&&(0,Pe.Z)(xi)==="object"&&("left"in xi||"top"in xi)}mi(pi)?(pi.left!==void 0&&Pi(xo(pi.left)),Je(pi.top)):Je(pi)}}}),(0,yt.Z)(function(){if(Zn){var Vn=rr.slice(ui,Tn+1);Zn(Vn,rr)}},[ui,Tn,rr]);var ci=qe(rr,Xi,kr,gt),Qn=Yn==null?void 0:Yn({start:ui,end:Tn,virtual:Ie,offsetX:ii,offsetY:Ki,rtl:Yi,getSize:ci}),yi=he(rr,ui,Tn,yn,ii,kn,Zt,Sn),Ci=null;Ue&&(Ci=(0,Re.Z)((0,Me.Z)({},bn?"height":"maxHeight",Ue),Yt),lr&&(Ci.overflowY="hidden",yn&&(Ci.overflowX="hidden"),on&&(Ci.pointerEvents="none")));var Fi={};return Yi&&(Fi.dir="rtl"),ot.createElement("div",(0,ce.Z)({ref:yr,style:(0,Re.Z)((0,Re.Z)({},xn),{},{position:"relative"}),className:Ei},Fi,sn),ot.createElement(Qe.Z,{onResize:sr},ot.createElement(zn,{className:"".concat(Xe,"-holder"),style:Ci,ref:Br,onScroll:gr,onMouseEnter:an},ot.createElement(ne,{prefixCls:Xe,height:Mi,offsetX:ii,offsetY:Ki,scrollWidth:yn,onInnerResize:Or,ref:Gr,innerProps:Ai,rtl:Yi,extra:Qn},yi))),Ie&&Mi>Ue&&ot.createElement(hn,{ref:ro,prefixCls:Xe,scrollOffset:Jt,scrollRange:Mi,rtl:Yi,onScroll:ur,onStartMove:li,onStopMove:vt,spinSize:_i,containerSize:Cn.height,style:Et==null?void 0:Et.verticalScrollBar,thumbStyle:Et==null?void 0:Et.verticalScrollBarThumb,showScrollBar:Ri}),Ie&&yn>Cn.width&&ot.createElement(hn,{ref:mn,prefixCls:Xe,scrollOffset:ii,scrollRange:yn,rtl:Yi,onScroll:ur,onStartMove:li,onStopMove:vt,spinSize:wi,containerSize:Cn.width,horizontal:!0,style:Et==null?void 0:Et.horizontalScrollBar,thumbStyle:Et==null?void 0:Et.horizontalScrollBarThumb,showScrollBar:Ri}))}var kt=ot.forwardRef(On);kt.displayName="List";var jn=kt,ai=jn},77596:function(ze,Ee,ue){"use strict";ue.d(Ee,{Z:function(){return ct}});var ce=ue(74416),Pe=ue(80702),Re=ue(49618),Me=ue(59301),We=ue(72308);function Te(at,rn){var hn=Object.keys(at);if(Object.getOwnPropertySymbols){var Pt=Object.getOwnPropertySymbols(at);rn&&(Pt=Pt.filter(function(pn){return Object.getOwnPropertyDescriptor(at,pn).enumerable})),hn.push.apply(hn,Pt)}return hn}function Ge(at){for(var rn=1;rn<arguments.length;rn++){var hn=arguments[rn]!=null?arguments[rn]:{};rn%2?Te(Object(hn),!0).forEach(function(Pt){(0,Re.Z)(at,Pt,hn[Pt])}):Object.getOwnPropertyDescriptors?Object.defineProperties(at,Object.getOwnPropertyDescriptors(hn)):Te(Object(hn)).forEach(function(Pt){Object.defineProperty(at,Pt,Object.getOwnPropertyDescriptor(hn,Pt))})}return at}function st(at){var rn=at.length;if(rn===0||rn===1)return at;if(rn===2)return[at[0],at[1],"".concat(at[0],".").concat(at[1]),"".concat(at[1],".").concat(at[0])];if(rn===3)return[at[0],at[1],at[2],"".concat(at[0],".").concat(at[1]),"".concat(at[0],".").concat(at[2]),"".concat(at[1],".").concat(at[0]),"".concat(at[1],".").concat(at[2]),"".concat(at[2],".").concat(at[0]),"".concat(at[2],".").concat(at[1]),"".concat(at[0],".").concat(at[1],".").concat(at[2]),"".concat(at[0],".").concat(at[2],".").concat(at[1]),"".concat(at[1],".").concat(at[0],".").concat(at[2]),"".concat(at[1],".").concat(at[2],".").concat(at[0]),"".concat(at[2],".").concat(at[0],".").concat(at[1]),"".concat(at[2],".").concat(at[1],".").concat(at[0])];if(rn>=4)return[at[0],at[1],at[2],at[3],"".concat(at[0],".").concat(at[1]),"".concat(at[0],".").concat(at[2]),"".concat(at[0],".").concat(at[3]),"".concat(at[1],".").concat(at[0]),"".concat(at[1],".").concat(at[2]),"".concat(at[1],".").concat(at[3]),"".concat(at[2],".").concat(at[0]),"".concat(at[2],".").concat(at[1]),"".concat(at[2],".").concat(at[3]),"".concat(at[3],".").concat(at[0]),"".concat(at[3],".").concat(at[1]),"".concat(at[3],".").concat(at[2]),"".concat(at[0],".").concat(at[1],".").concat(at[2]),"".concat(at[0],".").concat(at[1],".").concat(at[3]),"".concat(at[0],".").concat(at[2],".").concat(at[1]),"".concat(at[0],".").concat(at[2],".").concat(at[3]),"".concat(at[0],".").concat(at[3],".").concat(at[1]),"".concat(at[0],".").concat(at[3],".").concat(at[2]),"".concat(at[1],".").concat(at[0],".").concat(at[2]),"".concat(at[1],".").concat(at[0],".").concat(at[3]),"".concat(at[1],".").concat(at[2],".").concat(at[0]),"".concat(at[1],".").concat(at[2],".").concat(at[3]),"".concat(at[1],".").concat(at[3],".").concat(at[0]),"".concat(at[1],".").concat(at[3],".").concat(at[2]),"".concat(at[2],".").concat(at[0],".").concat(at[1]),"".concat(at[2],".").concat(at[0],".").concat(at[3]),"".concat(at[2],".").concat(at[1],".").concat(at[0]),"".concat(at[2],".").concat(at[1],".").concat(at[3]),"".concat(at[2],".").concat(at[3],".").concat(at[0]),"".concat(at[2],".").concat(at[3],".").concat(at[1]),"".concat(at[3],".").concat(at[0],".").concat(at[1]),"".concat(at[3],".").concat(at[0],".").concat(at[2]),"".concat(at[3],".").concat(at[1],".").concat(at[0]),"".concat(at[3],".").concat(at[1],".").concat(at[2]),"".concat(at[3],".").concat(at[2],".").concat(at[0]),"".concat(at[3],".").concat(at[2],".").concat(at[1]),"".concat(at[0],".").concat(at[1],".").concat(at[2],".").concat(at[3]),"".concat(at[0],".").concat(at[1],".").concat(at[3],".").concat(at[2]),"".concat(at[0],".").concat(at[2],".").concat(at[1],".").concat(at[3]),"".concat(at[0],".").concat(at[2],".").concat(at[3],".").concat(at[1]),"".concat(at[0],".").concat(at[3],".").concat(at[1],".").concat(at[2]),"".concat(at[0],".").concat(at[3],".").concat(at[2],".").concat(at[1]),"".concat(at[1],".").concat(at[0],".").concat(at[2],".").concat(at[3]),"".concat(at[1],".").concat(at[0],".").concat(at[3],".").concat(at[2]),"".concat(at[1],".").concat(at[2],".").concat(at[0],".").concat(at[3]),"".concat(at[1],".").concat(at[2],".").concat(at[3],".").concat(at[0]),"".concat(at[1],".").concat(at[3],".").concat(at[0],".").concat(at[2]),"".concat(at[1],".").concat(at[3],".").concat(at[2],".").concat(at[0]),"".concat(at[2],".").concat(at[0],".").concat(at[1],".").concat(at[3]),"".concat(at[2],".").concat(at[0],".").concat(at[3],".").concat(at[1]),"".concat(at[2],".").concat(at[1],".").concat(at[0],".").concat(at[3]),"".concat(at[2],".").concat(at[1],".").concat(at[3],".").concat(at[0]),"".concat(at[2],".").concat(at[3],".").concat(at[0],".").concat(at[1]),"".concat(at[2],".").concat(at[3],".").concat(at[1],".").concat(at[0]),"".concat(at[3],".").concat(at[0],".").concat(at[1],".").concat(at[2]),"".concat(at[3],".").concat(at[0],".").concat(at[2],".").concat(at[1]),"".concat(at[3],".").concat(at[1],".").concat(at[0],".").concat(at[2]),"".concat(at[3],".").concat(at[1],".").concat(at[2],".").concat(at[0]),"".concat(at[3],".").concat(at[2],".").concat(at[0],".").concat(at[1]),"".concat(at[3],".").concat(at[2],".").concat(at[1],".").concat(at[0])]}var Qe={};function Ye(at){if(at.length===0||at.length===1)return at;var rn=at.join(".");return Qe[rn]||(Qe[rn]=st(at)),Qe[rn]}function yt(at){var rn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},hn=arguments.length>2?arguments[2]:void 0,Pt=at.filter(function(dn){return dn!=="token"}),pn=Ye(Pt);return pn.reduce(function(dn,_n){return Ge(Ge({},dn),hn[_n])},rn)}function ot(at){return at.join(" ")}function Nt(at,rn){var hn=0;return function(Pt){return hn+=1,Pt.map(function(pn,dn){return Fe({node:pn,stylesheet:at,useInlineStyles:rn,key:"code-segment-".concat(hn,"-").concat(dn)})})}}function Fe(at){var rn=at.node,hn=at.stylesheet,Pt=at.style,pn=Pt===void 0?{}:Pt,dn=at.useInlineStyles,_n=at.key,Yt=rn.properties,On=rn.type,kt=rn.tagName,jn=rn.value;if(On==="text")return jn;if(kt){var ai=Nt(hn,dn),et;if(!dn)et=Ge(Ge({},Yt),{},{className:ot(Yt.className)});else{var De=Object.keys(hn).reduce(function(Ue,gt){return gt.split(".").forEach(function(_t){Ue.includes(_t)||Ue.push(_t)}),Ue},[]),ke=Yt.className&&Yt.className.includes("token")?["token"]:[],Xe=Yt.className&&ke.concat(Yt.className.filter(function(Ue){return!De.includes(Ue)}));et=Ge(Ge({},Yt),{},{className:ot(Xe)||void 0,style:yt(Yt.className,Object.assign({},Yt.style,pn),hn)})}var ut=ai(rn.children);return Me.createElement(kt,(0,We.Z)({key:_n},et),ut)}}var ne=function(at,rn){var hn=at.listLanguages();return hn.indexOf(rn)!==-1},te=["language","children","style","customStyle","codeTagProps","useInlineStyles","showLineNumbers","showInlineLineNumbers","startingLineNumber","lineNumberContainerStyle","lineNumberStyle","wrapLines","wrapLongLines","lineProps","renderer","PreTag","CodeTag","code","astGenerator"];function he(at,rn){var hn=Object.keys(at);if(Object.getOwnPropertySymbols){var Pt=Object.getOwnPropertySymbols(at);rn&&(Pt=Pt.filter(function(pn){return Object.getOwnPropertyDescriptor(at,pn).enumerable})),hn.push.apply(hn,Pt)}return hn}function se(at){for(var rn=1;rn<arguments.length;rn++){var hn=arguments[rn]!=null?arguments[rn]:{};rn%2?he(Object(hn),!0).forEach(function(Pt){(0,Re.Z)(at,Pt,hn[Pt])}):Object.getOwnPropertyDescriptors?Object.defineProperties(at,Object.getOwnPropertyDescriptors(hn)):he(Object(hn)).forEach(function(Pt){Object.defineProperty(at,Pt,Object.getOwnPropertyDescriptor(hn,Pt))})}return at}var ge=/\n/g;function Se(at){return at.match(ge)}function be(at){var rn=at.lines,hn=at.startingLineNumber,Pt=at.style;return rn.map(function(pn,dn){var _n=dn+hn;return Me.createElement("span",{key:"line-".concat(dn),className:"react-syntax-highlighter-line-number",style:typeof Pt=="function"?Pt(_n):Pt},"".concat(_n,`
|
|
|
`))})}function Ae(at){var rn=at.codeString,hn=at.codeStyle,Pt=at.containerStyle,pn=Pt===void 0?{float:"left",paddingRight:"10px"}:Pt,dn=at.numberStyle,_n=dn===void 0?{}:dn,Yt=at.startingLineNumber;return Me.createElement("code",{style:Object.assign({},hn,pn)},be({lines:rn.replace(/\n$/,"").split(`
|
|
|
`),style:_n,startingLineNumber:Yt}))}function Le(at){return"".concat(at.toString().length,".25em")}function je(at,rn){return{type:"element",tagName:"span",properties:{key:"line-number--".concat(at),className:["comment","linenumber","react-syntax-highlighter-line-number"],style:rn},children:[{type:"text",value:at}]}}function $e(at,rn,hn){var Pt={display:"inline-block",minWidth:Le(hn),paddingRight:"1em",textAlign:"right",userSelect:"none"},pn=typeof at=="function"?at(rn):at,dn=se(se({},Pt),pn);return dn}function qe(at){var rn=at.children,hn=at.lineNumber,Pt=at.lineNumberStyle,pn=at.largestLineNumber,dn=at.showInlineLineNumbers,_n=at.lineProps,Yt=_n===void 0?{}:_n,On=at.className,kt=On===void 0?[]:On,jn=at.showLineNumbers,ai=at.wrapLongLines,et=at.wrapLines,De=et===void 0?!1:et,ke=De?se({},typeof Yt=="function"?Yt(hn):Yt):{};if(ke.className=ke.className?[].concat((0,Pe.Z)(ke.className.trim().split(/\s+/)),(0,Pe.Z)(kt)):kt,hn&&dn){var Xe=$e(Pt,hn,pn);rn.unshift(je(hn,Xe))}return ai&jn&&(ke.style=se({display:"flex"},ke.style)),{type:"element",tagName:"span",properties:ke,children:rn}}function nt(at){for(var rn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],hn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],Pt=0;Pt<at.length;Pt++){var pn=at[Pt];if(pn.type==="text")hn.push(qe({children:[pn],className:(0,Pe.Z)(new Set(rn))}));else if(pn.children){var dn=rn.concat(pn.properties.className);nt(pn.children,dn).forEach(function(_n){return hn.push(_n)})}}return hn}function dt(at,rn,hn,Pt,pn,dn,_n,Yt,On){var kt,jn=nt(at.value),ai=[],et=-1,De=0;function ke(xn,Lt){var Zt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return qe({children:xn,lineNumber:Lt,lineNumberStyle:Yt,largestLineNumber:_n,showInlineLineNumbers:pn,lineProps:hn,className:Zt,showLineNumbers:Pt,wrapLongLines:On,wrapLines:rn})}function Xe(xn,Lt){if(Pt&&Lt&&pn){var Zt=$e(Yt,Lt,_n);xn.unshift(je(Lt,Zt))}return xn}function ut(xn,Lt){var Zt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return rn||Zt.length>0?ke(xn,Lt,Zt):Xe(xn,Lt)}for(var Ue=function(){var Lt=jn[De],Zt=Lt.children[0].value,Vt=Se(Zt);if(Vt){var fn=Zt.split(`
|
|
|
`);fn.forEach(function(Pn,yn){var Mt=Pt&&ai.length+dn,zn={type:"text",value:"".concat(Pn,`
|
|
|
`)};if(yn===0){var qn=jn.slice(et+1,De).concat(qe({children:[zn],className:Lt.properties.className})),Rn=ut(qn,Mt);ai.push(Rn)}else if(yn===fn.length-1){var Zn=jn[De+1]&&jn[De+1].children&&jn[De+1].children[0],Ai={type:"text",value:"".concat(Pn)};if(Zn){var Yn=qe({children:[Ai],className:Lt.properties.className});jn.splice(De+1,0,Yn)}else{var Et=[Ai],vi=ut(Et,Mt,Lt.properties.className);ai.push(vi)}}else{var Ri=[zn],sn=ut(Ri,Mt,Lt.properties.className);ai.push(sn)}}),et=De}De++};De<jn.length;)Ue();if(et!==jn.length-1){var gt=jn.slice(et+1,jn.length);if(gt&>.length){var _t=Pt&&ai.length+dn,bn=ut(gt,_t);ai.push(bn)}}return rn?ai:(kt=[]).concat.apply(kt,ai)}function it(at){var rn=at.rows,hn=at.stylesheet,Pt=at.useInlineStyles;return rn.map(function(pn,dn){return Fe({node:pn,stylesheet:hn,useInlineStyles:Pt,key:"code-segement".concat(dn)})})}function bt(at){return at&&typeof at.highlightAuto!="undefined"}function It(at){var rn=at.astGenerator,hn=at.language,Pt=at.code,pn=at.defaultCodeValue;if(bt(rn)){var dn=ne(rn,hn);return hn==="text"?{value:pn,language:"text"}:dn?rn.highlight(hn,Pt):rn.highlightAuto(Pt)}try{return hn&&hn!=="text"?{value:rn.highlight(Pt,hn)}:{value:pn}}catch(_n){return{value:pn}}}function Ht(at,rn){return function(Pt){var pn=Pt.language,dn=Pt.children,_n=Pt.style,Yt=_n===void 0?rn:_n,On=Pt.customStyle,kt=On===void 0?{}:On,jn=Pt.codeTagProps,ai=jn===void 0?{className:pn?"language-".concat(pn):void 0,style:se(se({},Yt['code[class*="language-"]']),Yt['code[class*="language-'.concat(pn,'"]')])}:jn,et=Pt.useInlineStyles,De=et===void 0?!0:et,ke=Pt.showLineNumbers,Xe=ke===void 0?!1:ke,ut=Pt.showInlineLineNumbers,Ue=ut===void 0?!0:ut,gt=Pt.startingLineNumber,_t=gt===void 0?1:gt,bn=Pt.lineNumberContainerStyle,xn=Pt.lineNumberStyle,Lt=xn===void 0?{}:xn,Zt=Pt.wrapLines,Vt=Pt.wrapLongLines,fn=Vt===void 0?!1:Vt,Pn=Pt.lineProps,yn=Pn===void 0?{}:Pn,Mt=Pt.renderer,zn=Pt.PreTag,qn=zn===void 0?"pre":zn,Rn=Pt.CodeTag,Zn=Rn===void 0?"code":Rn,Ai=Pt.code,Yn=Ai===void 0?(Array.isArray(dn)?dn[0]:dn)||"":Ai,Et=Pt.astGenerator,vi=(0,ce.Z)(Pt,te);Et=Et||at;var Ri=Xe?Me.createElement(Ae,{containerStyle:bn,codeStyle:ai.style||{},numberStyle:Lt,startingLineNumber:_t,codeString:Yn}):null,sn=Yt.hljs||Yt['pre[class*="language-"]']||{backgroundColor:"#fff"},Xi=bt(Et)?"hljs":"prismjs",cr=De?Object.assign({},vi,{style:Object.assign({},sn,kt)}):Object.assign({},vi,{className:vi.className?"".concat(Xi," ").concat(vi.className):Xi,style:Object.assign({},kt)});if(fn?ai.style=se({whiteSpace:"pre-wrap"},ai.style):ai.style=se({whiteSpace:"pre"},ai.style),!Et)return Me.createElement(qn,cr,Ri,Me.createElement(Zn,ai,Yn));(Zt===void 0&&Mt||fn)&&(Zt=!0),Mt=Mt||it;var fr=[{type:"text",value:Yn}],kn=It({astGenerator:Et,language:pn,code:Yn,defaultCodeValue:fr});kn.language===null&&(kn.value=fr);var Or=kn.value.length;Or===1&&kn.value[0].type==="text"&&(Or=kn.value[0].value.split(`
|
|
|
`).length);var kr=Or+_t,Wi=dt(kn,Zt,yn,Xe,Ue,_t,kr,Lt,fn);return Me.createElement(qn,cr,Me.createElement(Zn,ai,!Ue&&Ri,Mt({rows:Wi,stylesheet:Yt,useInlineStyles:De})))}}var ln={'code[class*="language-"]':{color:"black",background:"none",textShadow:"0 1px white",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"black",background:"#f5f2f0",textShadow:"0 1px white",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:".5em 0",overflow:"auto"},'pre[class*="language-"]::-moz-selection':{textShadow:"none",background:"#b3d4fc"},'pre[class*="language-"] ::-moz-selection':{textShadow:"none",background:"#b3d4fc"},'code[class*="language-"]::-moz-selection':{textShadow:"none",background:"#b3d4fc"},'code[class*="language-"] ::-moz-selection':{textShadow:"none",background:"#b3d4fc"},'pre[class*="language-"]::selection':{textShadow:"none",background:"#b3d4fc"},'pre[class*="language-"] ::selection':{textShadow:"none",background:"#b3d4fc"},'code[class*="language-"]::selection':{textShadow:"none",background:"#b3d4fc"},'code[class*="language-"] ::selection':{textShadow:"none",background:"#b3d4fc"},':not(pre) > code[class*="language-"]':{background:"#f5f2f0",padding:".1em",borderRadius:".3em",whiteSpace:"normal"},comment:{color:"slategray"},prolog:{color:"slategray"},doctype:{color:"slategray"},cdata:{color:"slategray"},punctuation:{color:"#999"},namespace:{Opacity:".7"},property:{color:"#905"},tag:{color:"#905"},boolean:{color:"#905"},number:{color:"#905"},constant:{color:"#905"},symbol:{color:"#905"},deleted:{color:"#905"},selector:{color:"#690"},"attr-name":{color:"#690"},string:{color:"#690"},char:{color:"#690"},builtin:{color:"#690"},inserted:{color:"#690"},operator:{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},entity:{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)",cursor:"help"},url:{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},".language-css .token.string":{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},".style .token.string":{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},atrule:{color:"#07a"},"attr-value":{color:"#07a"},keyword:{color:"#07a"},function:{color:"#DD4A68"},"class-name":{color:"#DD4A68"},regex:{color:"#e90"},important:{color:"#e90",fontWeight:"bold"},variable:{color:"#e90"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"}},un=ue(11594),Qt=ue.n(un),nn=["abap","abnf","actionscript","ada","agda","al","antlr4","apacheconf","apex","apl","applescript","aql","arduino","arff","asciidoc","asm6502","asmatmel","aspnet","autohotkey","autoit","avisynth","avro-idl","bash","basic","batch","bbcode","bicep","birb","bison","bnf","brainfuck","brightscript","bro","bsl","c","cfscript","chaiscript","cil","clike","clojure","cmake","cobol","coffeescript","concurnas","coq","cpp","crystal","csharp","cshtml","csp","css-extras","css","csv","cypher","d","dart","dataweave","dax","dhall","diff","django","dns-zone-file","docker","dot","ebnf","editorconfig","eiffel","ejs","elixir","elm","erb","erlang","etlua","excel-formula","factor","false","firestore-security-rules","flow","fortran","fsharp","ftl","gap","gcode","gdscript","gedcom","gherkin","git","glsl","gml","gn","go-module","go","graphql","groovy","haml","handlebars","haskell","haxe","hcl","hlsl","hoon","hpkp","hsts","http","ichigojam","icon","icu-message-format","idris","iecst","ignore","inform7","ini","io","j","java","javadoc","javadoclike","javascript","javastacktrace","jexl","jolie","jq","js-extras","js-templates","jsdoc","json","json5","jsonp","jsstacktrace","jsx","julia","keepalived","keyman","kotlin","kumir","kusto","latex","latte","less","lilypond","liquid","lisp","livescript","llvm","log","lolcode","lua","magma","makefile","markdown","markup-templating","markup","matlab","maxscript","mel","mermaid","mizar","mongodb","monkey","moonscript","n1ql","n4js","nand2tetris-hdl","naniscript","nasm","neon","nevod","nginx","nim","nix","nsis","objectivec","ocaml","opencl","openqasm","oz","parigp","parser","pascal","pascaligo","pcaxis","peoplecode","perl","php-extras","php","phpdoc","plsql","powerquery","powershell","processing","prolog","promql","properties","protobuf","psl","pug","puppet","pure","purebasic","purescript","python","q","qml","qore","qsharp","r","racket","reason","regex","rego","renpy","rest","rip","roboconf","robotframework","ruby","rust","sas","sass","scala","scheme","scss","shell-session","smali","smalltalk","smarty","sml","solidity","solution-file","soy","sparql","splunk-spl","sqf","sql","squirrel","stan","stylus","swift","systemd","t4-cs","t4-templating","t4-vb","tap","tcl","textile","toml","tremor","tsx","tt2","turtle","twig","typescript","typoscript","unrealscript","uorazor","uri","v","vala","vbnet","velocity","verilog","vhdl","vim","visual-basic","warpscript","wasm","web-idl","wiki","wolfram","wren","xeora","xml-doc","xojo","xquery","yaml","yang","zig"],At=Ht(Qt(),ln);At.supportedLanguages=nn;var ct=At},14179:function(ze,Ee){"use strict";Ee.Z={'pre[class*="language-"]':{color:"#d4d4d4",fontSize:"13px",textShadow:"none",fontFamily:'Menlo, Monaco, Consolas, "Andale Mono", "Ubuntu Mono", "Courier New", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:".5em 0",overflow:"auto",background:"#1e1e1e"},'code[class*="language-"]':{color:"#d4d4d4",fontSize:"13px",textShadow:"none",fontFamily:'Menlo, Monaco, Consolas, "Andale Mono", "Ubuntu Mono", "Courier New", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]::selection':{textShadow:"none",background:"#264F78"},'code[class*="language-"]::selection':{textShadow:"none",background:"#264F78"},'pre[class*="language-"] *::selection':{textShadow:"none",background:"#264F78"},'code[class*="language-"] *::selection':{textShadow:"none",background:"#264F78"},':not(pre) > code[class*="language-"]':{padding:".1em .3em",borderRadius:".3em",color:"#db4c69",background:"#1e1e1e"},".namespace":{Opacity:".7"},"doctype.doctype-tag":{color:"#569CD6"},"doctype.name":{color:"#9cdcfe"},comment:{color:"#6a9955"},prolog:{color:"#6a9955"},punctuation:{color:"#d4d4d4"},".language-html .language-css .token.punctuation":{color:"#d4d4d4"},".language-html .language-javascript .token.punctuation":{color:"#d4d4d4"},property:{color:"#9cdcfe"},tag:{color:"#569cd6"},boolean:{color:"#569cd6"},number:{color:"#b5cea8"},constant:{color:"#9cdcfe"},symbol:{color:"#b5cea8"},inserted:{color:"#b5cea8"},unit:{color:"#b5cea8"},selector:{color:"#d7ba7d"},"attr-name":{color:"#9cdcfe"},string:{color:"#ce9178"},char:{color:"#ce9178"},builtin:{color:"#ce9178"},deleted:{color:"#ce9178"},".language-css .token.string.url":{textDecoration:"underline"},operator:{color:"#d4d4d4"},entity:{color:"#569cd6"},"operator.arrow":{color:"#569CD6"},atrule:{color:"#ce9178"},"atrule.rule":{color:"#c586c0"},"atrule.url":{color:"#9cdcfe"},"atrule.url.function":{color:"#dcdcaa"},"atrule.url.punctuation":{color:"#d4d4d4"},keyword:{color:"#569CD6"},"keyword.module":{color:"#c586c0"},"keyword.control-flow":{color:"#c586c0"},function:{color:"#dcdcaa"},"function.maybe-class-name":{color:"#dcdcaa"},regex:{color:"#d16969"},important:{color:"#569cd6"},italic:{fontStyle:"italic"},"class-name":{color:"#4ec9b0"},"maybe-class-name":{color:"#4ec9b0"},console:{color:"#9cdcfe"},parameter:{color:"#9cdcfe"},interpolation:{color:"#9cdcfe"},"punctuation.interpolation-punctuation":{color:"#569cd6"},variable:{color:"#9cdcfe"},"imports.maybe-class-name":{color:"#9cdcfe"},"exports.maybe-class-name":{color:"#9cdcfe"},escape:{color:"#d7ba7d"},"tag.punctuation":{color:"#808080"},cdata:{color:"#808080"},"attr-value":{color:"#ce9178"},"attr-value.punctuation":{color:"#ce9178"},"attr-value.punctuation.attr-equals":{color:"#d4d4d4"},namespace:{color:"#4ec9b0"},'pre[class*="language-javascript"]':{color:"#9cdcfe"},'code[class*="language-javascript"]':{color:"#9cdcfe"},'pre[class*="language-jsx"]':{color:"#9cdcfe"},'code[class*="language-jsx"]':{color:"#9cdcfe"},'pre[class*="language-typescript"]':{color:"#9cdcfe"},'code[class*="language-typescript"]':{color:"#9cdcfe"},'pre[class*="language-tsx"]':{color:"#9cdcfe"},'code[class*="language-tsx"]':{color:"#9cdcfe"},'pre[class*="language-css"]':{color:"#ce9178"},'code[class*="language-css"]':{color:"#ce9178"},'pre[class*="language-html"]':{color:"#d4d4d4"},'code[class*="language-html"]':{color:"#d4d4d4"},".language-regex .token.anchor":{color:"#dcdcaa"},".language-html .token.punctuation":{color:"#808080"},'pre[class*="language-"] > code[class*="language-"]':{position:"relative",zIndex:"1"},".line-highlight.line-highlight":{background:"#f7ebc6",boxShadow:"inset 5px 0 0 #f7d87c",zIndex:"0"}}},19524:function(ze,Ee,ue){"use strict";ue(84126);var ce=ue(59301),Pe=60103;if(Ee.Fragment=60107,typeof Symbol=="function"&&Symbol.for){var Re=Symbol.for;Pe=Re("react.element"),Ee.Fragment=Re("react.fragment")}var Me=ce.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,We=Object.prototype.hasOwnProperty,Te={key:!0,ref:!0,__self:!0,__source:!0};function Ge(st,Qe,Ye){var yt,ot={},Nt=null,Fe=null;Ye!==void 0&&(Nt=""+Ye),Qe.key!==void 0&&(Nt=""+Qe.key),Qe.ref!==void 0&&(Fe=Qe.ref);for(yt in Qe)We.call(Qe,yt)&&!Te.hasOwnProperty(yt)&&(ot[yt]=Qe[yt]);if(st&&st.defaultProps)for(yt in Qe=st.defaultProps,Qe)ot[yt]===void 0&&(ot[yt]=Qe[yt]);return{$$typeof:Pe,type:st,key:Nt,ref:Fe,props:ot,_owner:Me.current}}Ee.jsx=Ge,Ee.jsxs=Ge},37712:function(ze,Ee,ue){"use strict";ze.exports=ue(19524)},95489:function(ze,Ee,ue){"use strict";var ce=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof ue.g=="object"?ue.g:{},Pe=Ae();ce.Prism={manual:!0,disableWorkerMessageHandler:!0};var Re=ue(43621),Me=ue(12256),We=ue(68398),Te=ue(70614),Ge=ue(54212),st=ue(9720),Qe=ue(88786);Pe();var Ye={}.hasOwnProperty;function yt(){}yt.prototype=We;var ot=new yt;ze.exports=ot,ot.highlight=ne,ot.register=Nt,ot.alias=Fe,ot.registered=te,ot.listLanguages=he,Nt(Te),Nt(Ge),Nt(st),Nt(Qe),ot.util.encode=Se,ot.Token.stringify=se;function Nt(Le){if(typeof Le!="function"||!Le.displayName)throw new Error("Expected `function` for `grammar`, got `"+Le+"`");ot.languages[Le.displayName]===void 0&&Le(ot)}function Fe(Le,je){var $e=ot.languages,qe=Le,nt,dt,it,bt;je&&(qe={},qe[Le]=je);for(nt in qe)for(dt=qe[nt],dt=typeof dt=="string"?[dt]:dt,it=dt.length,bt=-1;++bt<it;)$e[dt[bt]]=$e[nt]}function ne(Le,je){var $e=We.highlight,qe;if(typeof Le!="string")throw new Error("Expected `string` for `value`, got `"+Le+"`");if(ot.util.type(je)==="Object")qe=je,je=null;else{if(typeof je!="string")throw new Error("Expected `string` for `name`, got `"+je+"`");if(Ye.call(ot.languages,je))qe=ot.languages[je];else throw new Error("Unknown language: `"+je+"` is not registered")}return $e.call(this,Le,qe,je)}function te(Le){if(typeof Le!="string")throw new Error("Expected `string` for `language`, got `"+Le+"`");return Ye.call(ot.languages,Le)}function he(){var Le=ot.languages,je=[],$e;for($e in Le)Ye.call(Le,$e)&&typeof Le[$e]=="object"&&je.push($e);return je}function se(Le,je,$e){var qe;return typeof Le=="string"?{type:"text",value:Le}:ot.util.type(Le)==="Array"?ge(Le,je):(qe={type:Le.type,content:ot.Token.stringify(Le.content,je,$e),tag:"span",classes:["token",Le.type],attributes:{},language:je,parent:$e},Le.alias&&(qe.classes=qe.classes.concat(Le.alias)),ot.hooks.run("wrap",qe),Re(qe.tag+"."+qe.classes.join("."),be(qe.attributes),qe.content))}function ge(Le,je){for(var $e=[],qe=Le.length,nt=-1,dt;++nt<qe;)dt=Le[nt],dt!==""&&dt!==null&&dt!==void 0&&$e.push(dt);for(nt=-1,qe=$e.length;++nt<qe;)dt=$e[nt],$e[nt]=ot.Token.stringify(dt,je,$e);return $e}function Se(Le){return Le}function be(Le){var je;for(je in Le)Le[je]=Me(Le[je]);return Le}function Ae(){var Le="Prism"in ce,je=Le?ce.Prism:void 0;return $e;function $e(){Le?ce.Prism=je:delete ce.Prism,Le=void 0,je=void 0}}},11594:function(ze,Ee,ue){"use strict";var ce=ue(95489);ze.exports=ce,ce.register(ue(79007)),ce.register(ue(15465)),ce.register(ue(42746)),ce.register(ue(93281)),ce.register(ue(95143)),ce.register(ue(65924)),ce.register(ue(65043)),ce.register(ue(43556)),ce.register(ue(14901)),ce.register(ue(4248)),ce.register(ue(17758)),ce.register(ue(33335)),ce.register(ue(17427)),ce.register(ue(22956)),ce.register(ue(56007)),ce.register(ue(45652)),ce.register(ue(33819)),ce.register(ue(84230)),ce.register(ue(20803)),ce.register(ue(65235)),ce.register(ue(52406)),ce.register(ue(79571)),ce.register(ue(3058)),ce.register(ue(51422)),ce.register(ue(1618)),ce.register(ue(2505)),ce.register(ue(51274)),ce.register(ue(23796)),ce.register(ue(13979)),ce.register(ue(87994)),ce.register(ue(47035)),ce.register(ue(36142)),ce.register(ue(85290)),ce.register(ue(7407)),ce.register(ue(79440)),ce.register(ue(7110)),ce.register(ue(73435)),ce.register(ue(91372)),ce.register(ue(63663)),ce.register(ue(92987)),ce.register(ue(91657)),ce.register(ue(34367)),ce.register(ue(35348)),ce.register(ue(26841)),ce.register(ue(87071)),ce.register(ue(13652)),ce.register(ue(87648)),ce.register(ue(10617)),ce.register(ue(5348)),ce.register(ue(71053)),ce.register(ue(69820)),ce.register(ue(41929)),ce.register(ue(51837)),ce.register(ue(4182)),ce.register(ue(22117)),ce.register(ue(95627)),ce.register(ue(34265)),ce.register(ue(50618)),ce.register(ue(32126)),ce.register(ue(26737)),ce.register(ue(90134)),ce.register(ue(51348)),ce.register(ue(60841)),ce.register(ue(42857)),ce.register(ue(81269)),ce.register(ue(31134)),ce.register(ue(83125)),ce.register(ue(9438)),ce.register(ue(27771)),ce.register(ue(86549)),ce.register(ue(37079)),ce.register(ue(59250)),ce.register(ue(81226)),ce.register(ue(65245)),ce.register(ue(25040)),ce.register(ue(40284)),ce.register(ue(39187)),ce.register(ue(34302)),ce.register(ue(90515)),ce.register(ue(33534)),ce.register(ue(9885)),ce.register(ue(76364)),ce.register(ue(56452)),ce.register(ue(8477)),ce.register(ue(58230)),ce.register(ue(66192)),ce.register(ue(81084)),ce.register(ue(50318)),ce.register(ue(95769)),ce.register(ue(14155)),ce.register(ue(92823)),ce.register(ue(63092)),ce.register(ue(21550)),ce.register(ue(29710)),ce.register(ue(2050)),ce.register(ue(67967)),ce.register(ue(29138)),ce.register(ue(67915)),ce.register(ue(54853)),ce.register(ue(68330)),ce.register(ue(76823)),ce.register(ue(86712)),ce.register(ue(72252)),ce.register(ue(78634)),ce.register(ue(43583)),ce.register(ue(23328)),ce.register(ue(74494)),ce.register(ue(46745)),ce.register(ue(22152)),ce.register(ue(83698)),ce.register(ue(26619)),ce.register(ue(53990)),ce.register(ue(7093)),ce.register(ue(4005)),ce.register(ue(53510)),ce.register(ue(24799)),ce.register(ue(97443)),ce.register(ue(80746)),ce.register(ue(17015)),ce.register(ue(89246)),ce.register(ue(487)),ce.register(ue(79539)),ce.register(ue(15628)),ce.register(ue(14320)),ce.register(ue(73222)),ce.register(ue(92486)),ce.register(ue(24103)),ce.register(ue(40604)),ce.register(ue(23109)),ce.register(ue(32082)),ce.register(ue(77674)),ce.register(ue(37524)),ce.register(ue(6658)),ce.register(ue(24824)),ce.register(ue(22776)),ce.register(ue(89700)),ce.register(ue(99296)),ce.register(ue(39940)),ce.register(ue(34973)),ce.register(ue(98135)),ce.register(ue(36907)),ce.register(ue(3567)),ce.register(ue(23763)),ce.register(ue(33978)),ce.register(ue(40472)),ce.register(ue(44695)),ce.register(ue(53885)),ce.register(ue(51478)),ce.register(ue(16928)),ce.register(ue(13586)),ce.register(ue(37164)),ce.register(ue(25153)),ce.register(ue(33245)),ce.register(ue(32218)),ce.register(ue(65626)),ce.register(ue(60090)),ce.register(ue(40722)),ce.register(ue(37783)),ce.register(ue(41224)),ce.register(ue(71365)),ce.register(ue(42846)),ce.register(ue(32964)),ce.register(ue(78830)),ce.register(ue(88799)),ce.register(ue(66791)),ce.register(ue(41735)),ce.register(ue(13490)),ce.register(ue(7383)),ce.register(ue(66894)),ce.register(ue(45779)),ce.register(ue(27734)),ce.register(ue(91889)),ce.register(ue(55965)),ce.register(ue(37326)),ce.register(ue(92949)),ce.register(ue(5681)),ce.register(ue(70696)),ce.register(ue(35790)),ce.register(ue(25777)),ce.register(ue(65889)),ce.register(ue(53852)),ce.register(ue(97719)),ce.register(ue(63839)),ce.register(ue(67623)),ce.register(ue(32530)),ce.register(ue(8938)),ce.register(ue(55259)),ce.register(ue(67411)),ce.register(ue(15375)),ce.register(ue(12093)),ce.register(ue(83588)),ce.register(ue(94127)),ce.register(ue(21294)),ce.register(ue(38709)),ce.register(ue(15008)),ce.register(ue(96549)),ce.register(ue(5221)),ce.register(ue(27447)),ce.register(ue(73191)),ce.register(ue(75542)),ce.register(ue(50323)),ce.register(ue(44298)),ce.register(ue(9634)),ce.register(ue(75266)),ce.register(ue(48139)),ce.register(ue(97534)),ce.register(ue(90826)),ce.register(ue(63919)),ce.register(ue(68862)),ce.register(ue(39523)),ce.register(ue(31207)),ce.register(ue(75308)),ce.register(ue(45315)),ce.register(ue(13794)),ce.register(ue(41299)),ce.register(ue(98177)),ce.register(ue(48780)),ce.register(ue(79793)),ce.register(ue(52085)),ce.register(ue(65411)),ce.register(ue(84750)),ce.register(ue(88216)),ce.register(ue(66433)),ce.register(ue(34855)),ce.register(ue(12998)),ce.register(ue(10202)),ce.register(ue(41186)),ce.register(ue(68963)),ce.register(ue(5569)),ce.register(ue(69435)),ce.register(ue(42766)),ce.register(ue(46449)),ce.register(ue(89032)),ce.register(ue(40241)),ce.register(ue(24812)),ce.register(ue(16747)),ce.register(ue(73584)),ce.register(ue(79243)),ce.register(ue(31788)),ce.register(ue(60871)),ce.register(ue(21023)),ce.register(ue(14693)),ce.register(ue(8743)),ce.register(ue(1689)),ce.register(ue(69210)),ce.register(ue(58710)),ce.register(ue(60452)),ce.register(ue(92784)),ce.register(ue(36489)),ce.register(ue(78380)),ce.register(ue(10409)),ce.register(ue(6539)),ce.register(ue(82028)),ce.register(ue(62282)),ce.register(ue(55686)),ce.register(ue(70889)),ce.register(ue(37116)),ce.register(ue(66963)),ce.register(ue(21078)),ce.register(ue(96198)),ce.register(ue(17723)),ce.register(ue(67771)),ce.register(ue(30307)),ce.register(ue(8921)),ce.register(ue(13429)),ce.register(ue(65197)),ce.register(ue(88904)),ce.register(ue(35)),ce.register(ue(86095)),ce.register(ue(76998)),ce.register(ue(14409)),ce.register(ue(33460)),ce.register(ue(28108))},79007:function(ze){"use strict";ze.exports=Ee,Ee.displayName="abap",Ee.aliases=[];function Ee(ue){ue.languages.abap={comment:/^\*.*/m,string:/(`|')(?:\\.|(?!\1)[^\\\r\n])*\1/,"string-template":{pattern:/([|}])(?:\\.|[^\\|{\r\n])*(?=[|{])/,lookbehind:!0,alias:"string"},"eol-comment":{pattern:/(^|\s)".*/m,lookbehind:!0,alias:"comment"},keyword:{pattern:/(\s|\.|^)(?:SCIENTIFIC_WITH_LEADING_ZERO|SCALE_PRESERVING_SCIENTIFIC|RMC_COMMUNICATION_FAILURE|END-ENHANCEMENT-SECTION|MULTIPLY-CORRESPONDING|SUBTRACT-CORRESPONDING|VERIFICATION-MESSAGE|DIVIDE-CORRESPONDING|ENHANCEMENT-SECTION|CURRENCY_CONVERSION|RMC_SYSTEM_FAILURE|START-OF-SELECTION|MOVE-CORRESPONDING|RMC_INVALID_STATUS|CUSTOMER-FUNCTION|END-OF-DEFINITION|ENHANCEMENT-POINT|SYSTEM-EXCEPTIONS|ADD-CORRESPONDING|SCALE_PRESERVING|SELECTION-SCREEN|CURSOR-SELECTION|END-OF-SELECTION|LOAD-OF-PROGRAM|SCROLL-BOUNDARY|SELECTION-TABLE|EXCEPTION-TABLE|IMPLEMENTATIONS|PARAMETER-TABLE|RIGHT-JUSTIFIED|UNIT_CONVERSION|AUTHORITY-CHECK|LIST-PROCESSING|SIGN_AS_POSTFIX|COL_BACKGROUND|IMPLEMENTATION|INTERFACE-POOL|TRANSFORMATION|IDENTIFICATION|ENDENHANCEMENT|LINE-SELECTION|INITIALIZATION|LEFT-JUSTIFIED|SELECT-OPTIONS|SELECTION-SETS|COMMUNICATION|CORRESPONDING|DECIMAL_SHIFT|PRINT-CONTROL|VALUE-REQUEST|CHAIN-REQUEST|FUNCTION-POOL|FIELD-SYMBOLS|FUNCTIONALITY|INVERTED-DATE|SELECTION-SET|CLASS-METHODS|OUTPUT-LENGTH|CLASS-CODING|COL_NEGATIVE|ERRORMESSAGE|FIELD-GROUPS|HELP-REQUEST|NO-EXTENSION|NO-TOPOFPAGE|REDEFINITION|DISPLAY-MODE|ENDINTERFACE|EXIT-COMMAND|FIELD-SYMBOL|NO-SCROLLING|SHORTDUMP-ID|ACCESSPOLICY|CLASS-EVENTS|COL_POSITIVE|DECLARATIONS|ENHANCEMENTS|FILTER-TABLE|SWITCHSTATES|SYNTAX-CHECK|TRANSPORTING|ASYNCHRONOUS|SYNTAX-TRACE|TOKENIZATION|USER-COMMAND|WITH-HEADING|ABAP-SOURCE|BREAK-POINT|CHAIN-INPUT|COMPRESSION|FIXED-POINT|NEW-SECTION|NON-UNICODE|OCCURRENCES|RESPONSIBLE|SYSTEM-CALL|TRACE-TABLE|ABBREVIATED|CHAR-TO-HEX|END-OF-FILE|ENDFUNCTION|ENVIRONMENT|ASSOCIATION|COL_HEADING|EDITOR-CALL|END-OF-PAGE|ENGINEERING|IMPLEMENTED|INTENSIFIED|RADIOBUTTON|SYSTEM-EXIT|TOP-OF-PAGE|TRANSACTION|APPLICATION|CONCATENATE|DESTINATION|ENHANCEMENT|IMMEDIATELY|NO-GROUPING|PRECOMPILED|REPLACEMENT|TITLE-LINES|ACTIVATION|BYTE-ORDER|CLASS-POOL|CONNECTION|CONVERSION|DEFINITION|DEPARTMENT|EXPIRATION|INHERITING|MESSAGE-ID|NO-HEADING|PERFORMING|QUEUE-ONLY|RIGHTSPACE|SCIENTIFIC|STATUSINFO|STRUCTURES|SYNCPOINTS|WITH-TITLE|ATTRIBUTES|BOUNDARIES|CLASS-DATA|COL_NORMAL|DD\/MM\/YYYY|DESCENDING|INTERFACES|LINE-COUNT|MM\/DD\/YYYY|NON-UNIQUE|PRESERVING|SELECTIONS|STATEMENTS|SUBROUTINE|TRUNCATION|TYPE-POOLS|ARITHMETIC|BACKGROUND|ENDPROVIDE|EXCEPTIONS|IDENTIFIER|INDEX-LINE|OBLIGATORY|PARAMETERS|PERCENTAGE|PUSHBUTTON|RESOLUTION|COMPONENTS|DEALLOCATE|DISCONNECT|DUPLICATES|FIRST-LINE|HEAD-LINES|NO-DISPLAY|OCCURRENCE|RESPECTING|RETURNCODE|SUBMATCHES|TRACE-FILE|ASCENDING|BYPASSING|ENDMODULE|EXCEPTION|EXCLUDING|EXPORTING|INCREMENT|MATCHCODE|PARAMETER|PARTIALLY|PREFERRED|REFERENCE|REPLACING|RETURNING|SELECTION|SEPARATED|SPECIFIED|STATEMENT|TIMESTAMP|TYPE-POOL|ACCEPTING|APPENDAGE|ASSIGNING|COL_GROUP|COMPARING|CONSTANTS|DANGEROUS|IMPORTING|INSTANCES|LEFTSPACE|LOG-POINT|QUICKINFO|READ-ONLY|SCROLLING|SQLSCRIPT|STEP-LOOP|TOP-LINES|TRANSLATE|APPENDING|AUTHORITY|CHARACTER|COMPONENT|CONDITION|DIRECTORY|DUPLICATE|MESSAGING|RECEIVING|SUBSCREEN|ACCORDING|COL_TOTAL|END-LINES|ENDMETHOD|ENDSELECT|EXPANDING|EXTENSION|INCLUDING|INFOTYPES|INTERFACE|INTERVALS|LINE-SIZE|PF-STATUS|PROCEDURE|PROTECTED|REQUESTED|RESUMABLE|RIGHTPLUS|SAP-SPOOL|SECONDARY|STRUCTURE|SUBSTRING|TABLEVIEW|NUMOFCHAR|ADJACENT|ANALYSIS|ASSIGNED|BACKWARD|CHANNELS|CHECKBOX|CONTINUE|CRITICAL|DATAINFO|DD\/MM\/YY|DURATION|ENCODING|ENDCLASS|FUNCTION|LEFTPLUS|LINEFEED|MM\/DD\/YY|OVERFLOW|RECEIVED|SKIPPING|SORTABLE|STANDARD|SUBTRACT|SUPPRESS|TABSTRIP|TITLEBAR|TRUNCATE|UNASSIGN|WHENEVER|ANALYZER|COALESCE|COMMENTS|CONDENSE|DECIMALS|DEFERRED|ENDWHILE|EXPLICIT|KEYWORDS|MESSAGES|POSITION|PRIORITY|RECEIVER|RENAMING|TIMEZONE|TRAILING|ALLOCATE|CENTERED|CIRCULAR|CONTROLS|CURRENCY|DELETING|DESCRIBE|DISTANCE|ENDCATCH|EXPONENT|EXTENDED|GENERATE|IGNORING|INCLUDES|INTERNAL|MAJOR-ID|MODIFIER|NEW-LINE|OPTIONAL|PROPERTY|ROLLBACK|STARTING|SUPPLIED|ABSTRACT|CHANGING|CONTEXTS|CREATING|CUSTOMER|DATABASE|DAYLIGHT|DEFINING|DISTINCT|DIVISION|ENABLING|ENDCHAIN|ESCAPING|HARMLESS|IMPLICIT|INACTIVE|LANGUAGE|MINOR-ID|MULTIPLY|NEW-PAGE|NO-TITLE|POS_HIGH|SEPARATE|TEXTPOOL|TRANSFER|SELECTOR|DBMAXLEN|ITERATOR|ARCHIVE|BIT-XOR|BYTE-CO|COLLECT|COMMENT|CURRENT|DEFAULT|DISPLAY|ENDFORM|EXTRACT|LEADING|LISTBOX|LOCATOR|MEMBERS|METHODS|NESTING|POS_LOW|PROCESS|PROVIDE|RAISING|RESERVE|SECONDS|SUMMARY|VISIBLE|BETWEEN|BIT-AND|BYTE-CS|CLEANUP|COMPUTE|CONTROL|CONVERT|DATASET|ENDCASE|FORWARD|HEADERS|HOTSPOT|INCLUDE|INVERSE|KEEPING|NO-ZERO|OBJECTS|OVERLAY|PADDING|PATTERN|PROGRAM|REFRESH|SECTION|SUMMING|TESTING|VERSION|WINDOWS|WITHOUT|BIT-NOT|BYTE-CA|BYTE-NA|CASTING|CONTEXT|COUNTRY|DYNAMIC|ENABLED|ENDLOOP|EXECUTE|FRIENDS|HANDLER|HEADING|INITIAL|\*-INPUT|LOGFILE|MAXIMUM|MINIMUM|NO-GAPS|NO-SIGN|PRAGMAS|PRIMARY|PRIVATE|REDUCED|REPLACE|REQUEST|RESULTS|UNICODE|WARNING|ALIASES|BYTE-CN|BYTE-NS|CALLING|COL_KEY|COLUMNS|CONNECT|ENDEXEC|ENTRIES|EXCLUDE|FILTERS|FURTHER|HELP-ID|LOGICAL|MAPPING|MESSAGE|NAMETAB|OPTIONS|PACKAGE|PERFORM|RECEIVE|STATICS|VARYING|BINDING|CHARLEN|GREATER|XSTRLEN|ACCEPT|APPEND|DETAIL|ELSEIF|ENDING|ENDTRY|FORMAT|FRAMES|GIVING|HASHED|HEADER|IMPORT|INSERT|MARGIN|MODULE|NATIVE|OBJECT|OFFSET|REMOTE|RESUME|SAVING|SIMPLE|SUBMIT|TABBED|TOKENS|UNIQUE|UNPACK|UPDATE|WINDOW|YELLOW|ACTUAL|ASPECT|CENTER|CURSOR|DELETE|DIALOG|DIVIDE|DURING|ERRORS|EVENTS|EXTEND|FILTER|HANDLE|HAVING|IGNORE|LITTLE|MEMORY|NO-GAP|OCCURS|OPTION|PERSON|PLACES|PUBLIC|REDUCE|REPORT|RESULT|SINGLE|SORTED|SWITCH|SYNTAX|TARGET|VALUES|WRITER|ASSERT|BLOCKS|BOUNDS|BUFFER|CHANGE|COLUMN|COMMIT|CONCAT|COPIES|CREATE|DDMMYY|DEFINE|ENDIAN|ESCAPE|EXPAND|KERNEL|LAYOUT|LEGACY|LEVELS|MMDDYY|NUMBER|OUTPUT|RANGES|READER|RETURN|SCREEN|SEARCH|SELECT|SHARED|SOURCE|STABLE|STATIC|SUBKEY|SUFFIX|TABLES|UNWIND|YYMMDD|ASSIGN|BACKUP|BEFORE|BINARY|BIT-OR|BLANKS|CLIENT|CODING|COMMON|DEMAND|DYNPRO|EXCEPT|EXISTS|EXPORT|FIELDS|GLOBAL|GROUPS|LENGTH|LOCALE|MEDIUM|METHOD|MODIFY|NESTED|OTHERS|REJECT|SCROLL|SUPPLY|SYMBOL|ENDFOR|STRLEN|ALIGN|BEGIN|BOUND|ENDAT|ENTRY|EVENT|FINAL|FLUSH|GRANT|INNER|SHORT|USING|WRITE|AFTER|BLACK|BLOCK|CLOCK|COLOR|COUNT|DUMMY|EMPTY|ENDDO|ENDON|GREEN|INDEX|INOUT|LEAVE|LEVEL|LINES|MODIF|ORDER|OUTER|RANGE|RESET|RETRY|RIGHT|SMART|SPLIT|STYLE|TABLE|THROW|UNDER|UNTIL|UPPER|UTF-8|WHERE|ALIAS|BLANK|CLEAR|CLOSE|EXACT|FETCH|FIRST|FOUND|GROUP|LLANG|LOCAL|OTHER|REGEX|SPOOL|TITLE|TYPES|VALID|WHILE|ALPHA|BOXED|CATCH|CHAIN|CHECK|CLASS|COVER|ENDIF|EQUIV|FIELD|FLOOR|FRAME|INPUT|LOWER|MATCH|NODES|PAGES|PRINT|RAISE|ROUND|SHIFT|SPACE|SPOTS|STAMP|STATE|TASKS|TIMES|TRMAC|ULINE|UNION|VALUE|WIDTH|EQUAL|LOG10|TRUNC|BLOB|CASE|CEIL|CLOB|COND|EXIT|FILE|GAPS|HOLD|INCL|INTO|KEEP|KEYS|LAST|LINE|LONG|LPAD|MAIL|MODE|OPEN|PINK|READ|ROWS|TEST|THEN|ZERO|AREA|BACK|BADI|BYTE|CAST|EDIT|EXEC|FAIL|FIND|FKEQ|FONT|FREE|GKEQ|HIDE|INIT|ITNO|LATE|LOOP|MAIN|MARK|MOVE|NEXT|NULL|RISK|ROLE|UNIT|WAIT|ZONE|BASE|CALL|CODE|DATA|DATE|FKGE|GKGE|HIGH|KIND|LEFT|LIST|MASK|MESH|NAME|NODE|PACK|PAGE|POOL|SEND|SIGN|SIZE|SOME|STOP|TASK|TEXT|TIME|USER|VARY|WITH|WORD|BLUE|CONV|COPY|DEEP|ELSE|FORM|FROM|HINT|ICON|JOIN|LIKE|LOAD|ONLY|PART|SCAN|SKIP|SORT|TYPE|UNIX|VIEW|WHEN|WORK|ACOS|ASIN|ATAN|COSH|EACH|FRAC|LESS|RTTI|SINH|SQRT|TANH|AVG|BIT|DIV|ISO|LET|OUT|PAD|SQL|ALL|CI_|CPI|END|LOB|LPI|MAX|MIN|NEW|OLE|RUN|SET|\?TO|YES|ABS|ADD|AND|BIG|FOR|HDB|JOB|LOW|NOT|SAP|TRY|VIA|XML|ANY|GET|IDS|KEY|MOD|OFF|PUT|RAW|RED|REF|SUM|TAB|XSD|CNT|COS|EXP|LOG|SIN|TAN|XOR|AT|CO|CP|DO|GT|ID|IF|NS|OR|BT|CA|CS|GE|NA|NB|EQ|IN|LT|NE|NO|OF|ON|PF|TO|AS|BY|CN|IS|LE|NP|UP|E|I|M|O|Z|C|X)\b/i,lookbehind:!0},number:/\b\d+\b/,operator:{pattern:/(\s)(?:\*\*?|<[=>]?|>=?|\?=|[-+\/=])(?=\s)/,lookbehind:!0},"string-operator":{pattern:/(\s)&&?(?=\s)/,lookbehind:!0,alias:"keyword"},"token-operator":[{pattern:/(\w)(?:->?|=>|[~|{}])(?=\w)/,lookbehind:!0,alias:"punctuation"},{pattern:/[|{}]/,alias:"punctuation"}],punctuation:/[,.:()]/}}},15465:function(ze){"use strict";ze.exports=Ee,Ee.displayName="abnf",Ee.aliases=[];function Ee(ue){(function(ce){var Pe="(?:ALPHA|BIT|CHAR|CR|CRLF|CTL|DIGIT|DQUOTE|HEXDIG|HTAB|LF|LWSP|OCTET|SP|VCHAR|WSP)";ce.languages.abnf={comment:/;.*/,string:{pattern:/(?:%[is])?"[^"\n\r]*"/,greedy:!0,inside:{punctuation:/^%[is]/}},range:{pattern:/%(?:b[01]+-[01]+|d\d+-\d+|x[A-F\d]+-[A-F\d]+)/i,alias:"number"},terminal:{pattern:/%(?:b[01]+(?:\.[01]+)*|d\d+(?:\.\d+)*|x[A-F\d]+(?:\.[A-F\d]+)*)/i,alias:"number"},repetition:{pattern:/(^|[^\w-])(?:\d*\*\d*|\d+)/,lookbehind:!0,alias:"operator"},definition:{pattern:/(^[ \t]*)(?:[a-z][\w-]*|<[^<>\r\n]*>)(?=\s*=)/m,lookbehind:!0,alias:"keyword",inside:{punctuation:/<|>/}},"core-rule":{pattern:RegExp("(?:(^|[^<\\w-])"+Pe+"|<"+Pe+">)(?![\\w-])","i"),lookbehind:!0,alias:["rule","constant"],inside:{punctuation:/<|>/}},rule:{pattern:/(^|[^<\w-])[a-z][\w-]*|<[^<>\r\n]*>/i,lookbehind:!0,inside:{punctuation:/<|>/}},operator:/=\/?|\//,punctuation:/[()\[\]]/}})(ue)}},42746:function(ze){"use strict";ze.exports=Ee,Ee.displayName="actionscript",Ee.aliases=[];function Ee(ue){ue.languages.actionscript=ue.languages.extend("javascript",{keyword:/\b(?:as|break|case|catch|class|const|default|delete|do|dynamic|each|else|extends|final|finally|for|function|get|if|implements|import|in|include|instanceof|interface|internal|is|namespace|native|new|null|override|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|use|var|void|while|with)\b/,operator:/\+\+|--|(?:[+\-*\/%^]|&&?|\|\|?|<<?|>>?>?|[!=]=?)=?|[~?@]/}),ue.languages.actionscript["class-name"].alias="function",delete ue.languages.actionscript.parameter,delete ue.languages.actionscript["literal-property"],ue.languages.markup&&ue.languages.insertBefore("actionscript","string",{xml:{pattern:/(^|[^.])<\/?\w+(?:\s+[^\s>\/=]+=("|')(?:\\[\s\S]|(?!\2)[^\\])*\2)*\s*\/?>/,lookbehind:!0,inside:ue.languages.markup}})}},93281:function(ze){"use strict";ze.exports=Ee,Ee.displayName="ada",Ee.aliases=[];function Ee(ue){ue.languages.ada={comment:/--.*/,string:/"(?:""|[^"\r\f\n])*"/,number:[{pattern:/\b\d(?:_?\d)*#[\dA-F](?:_?[\dA-F])*(?:\.[\dA-F](?:_?[\dA-F])*)?#(?:E[+-]?\d(?:_?\d)*)?/i},{pattern:/\b\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:E[+-]?\d(?:_?\d)*)?\b/i}],"attr-name":/\b'\w+/,keyword:/\b(?:abort|abs|abstract|accept|access|aliased|all|and|array|at|begin|body|case|constant|declare|delay|delta|digits|do|else|elsif|end|entry|exception|exit|for|function|generic|goto|if|in|interface|is|limited|loop|mod|new|not|null|of|others|out|overriding|package|pragma|private|procedure|protected|raise|range|record|rem|renames|requeue|return|reverse|select|separate|some|subtype|synchronized|tagged|task|terminate|then|type|until|use|when|while|with|xor)\b/i,boolean:/\b(?:false|true)\b/i,operator:/<[=>]?|>=?|=>?|:=|\/=?|\*\*?|[&+-]/,punctuation:/\.\.?|[,;():]/,char:/'.'/,variable:/\b[a-z](?:\w)*\b/i}}},95143:function(ze){"use strict";ze.exports=Ee,Ee.displayName="agda",Ee.aliases=[];function Ee(ue){(function(ce){ce.languages.agda={comment:/\{-[\s\S]*?(?:-\}|$)|--.*/,string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},punctuation:/[(){}⦃⦄.;@]/,"class-name":{pattern:/((?:data|record) +)\S+/,lookbehind:!0},function:{pattern:/(^[ \t]*)(?!\s)[^:\r\n]+(?=:)/m,lookbehind:!0},operator:{pattern:/(^\s*|\s)(?:[=|:∀→λ\\?_]|->)(?=\s)/,lookbehind:!0},keyword:/\b(?:Set|abstract|constructor|data|eta-equality|field|forall|hiding|import|in|inductive|infix|infixl|infixr|instance|let|macro|module|mutual|no-eta-equality|open|overlap|pattern|postulate|primitive|private|public|quote|quoteContext|quoteGoal|quoteTerm|record|renaming|rewrite|syntax|tactic|unquote|unquoteDecl|unquoteDef|using|variable|where|with)\b/}})(ue)}},65924:function(ze){"use strict";ze.exports=Ee,Ee.displayName="al",Ee.aliases=[];function Ee(ue){ue.languages.al={comment:/\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/'(?:''|[^'\r\n])*'(?!')|"(?:""|[^"\r\n])*"(?!")/,greedy:!0},function:{pattern:/(\b(?:event|procedure|trigger)\s+|(?:^|[^.])\.\s*)[a-z_]\w*(?=\s*\()/i,lookbehind:!0},keyword:[/\b(?:array|asserterror|begin|break|case|do|downto|else|end|event|exit|for|foreach|function|if|implements|in|indataset|interface|internal|local|of|procedure|program|protected|repeat|runonclient|securityfiltering|suppressdispose|temporary|then|to|trigger|until|var|while|with|withevents)\b/i,/\b(?:action|actions|addafter|addbefore|addfirst|addlast|area|assembly|chartpart|codeunit|column|controladdin|cuegroup|customizes|dataitem|dataset|dotnet|elements|enum|enumextension|extends|field|fieldattribute|fieldelement|fieldgroup|fieldgroups|fields|filter|fixed|grid|group|key|keys|label|labels|layout|modify|moveafter|movebefore|movefirst|movelast|page|pagecustomization|pageextension|part|profile|query|repeater|report|requestpage|schema|separator|systempart|table|tableelement|tableextension|textattribute|textelement|type|usercontrol|value|xmlport)\b/i],number:/\b(?:0x[\da-f]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?)(?:F|LL?|U(?:LL?)?)?\b/i,boolean:/\b(?:false|true)\b/i,variable:/\b(?:Curr(?:FieldNo|Page|Report)|x?Rec|RequestOptionsPage)\b/,"class-name":/\b(?:automation|biginteger|bigtext|blob|boolean|byte|char|clienttype|code|completiontriggererrorlevel|connectiontype|database|dataclassification|datascope|date|dateformula|datetime|decimal|defaultlayout|dialog|dictionary|dotnetassembly|dotnettypedeclaration|duration|errorinfo|errortype|executioncontext|executionmode|fieldclass|fieldref|fieldtype|file|filterpagebuilder|guid|httpclient|httpcontent|httpheaders|httprequestmessage|httpresponsemessage|instream|integer|joker|jsonarray|jsonobject|jsontoken|jsonvalue|keyref|list|moduledependencyinfo|moduleinfo|none|notification|notificationscope|objecttype|option|outstream|pageresult|record|recordid|recordref|reportformat|securityfilter|sessionsettings|tableconnectiontype|tablefilter|testaction|testfield|testfilterfield|testpage|testpermissions|testrequestpage|text|textbuilder|textconst|textencoding|time|transactionmodel|transactiontype|variant|verbosity|version|view|views|webserviceactioncontext|webserviceactionresultcode|xmlattribute|xmlattributecollection|xmlcdata|xmlcomment|xmldeclaration|xmldocument|xmldocumenttype|xmlelement|xmlnamespacemanager|xmlnametable|xmlnode|xmlnodelist|xmlprocessinginstruction|xmlreadoptions|xmltext|xmlwriteoptions)\b/i,operator:/\.\.|:[=:]|[-+*/]=?|<>|[<>]=?|=|\b(?:and|div|mod|not|or|xor)\b/i,punctuation:/[()\[\]{}:.;,]/}}},65043:function(ze){"use strict";ze.exports=Ee,Ee.displayName="antlr4",Ee.aliases=["g4"];function Ee(ue){ue.languages.antlr4={comment:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,string:{pattern:/'(?:\\.|[^\\'\r\n])*'/,greedy:!0},"character-class":{pattern:/\[(?:\\.|[^\\\]\r\n])*\]/,greedy:!0,alias:"regex",inside:{range:{pattern:/([^[]|(?:^|[^\\])(?:\\\\)*\\\[)-(?!\])/,lookbehind:!0,alias:"punctuation"},escape:/\\(?:u(?:[a-fA-F\d]{4}|\{[a-fA-F\d]+\})|[pP]\{[=\w-]+\}|[^\r\nupP])/,punctuation:/[\[\]]/}},action:{pattern:/\{(?:[^{}]|\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*\}/,greedy:!0,inside:{content:{pattern:/(\{)[\s\S]+(?=\})/,lookbehind:!0},punctuation:/[{}]/}},command:{pattern:/(->\s*(?!\s))(?:\s*(?:,\s*)?\b[a-z]\w*(?:\s*\([^()\r\n]*\))?)+(?=\s*;)/i,lookbehind:!0,inside:{function:/\b\w+(?=\s*(?:[,(]|$))/,punctuation:/[,()]/}},annotation:{pattern:/@\w+(?:::\w+)*/,alias:"keyword"},label:{pattern:/#[ \t]*\w+/,alias:"punctuation"},keyword:/\b(?:catch|channels|finally|fragment|grammar|import|lexer|locals|mode|options|parser|returns|throws|tokens)\b/,definition:[{pattern:/\b[a-z]\w*(?=\s*:)/,alias:["rule","class-name"]},{pattern:/\b[A-Z]\w*(?=\s*:)/,alias:["token","constant"]}],constant:/\b[A-Z][A-Z_]*\b/,operator:/\.\.|->|[|~]|[*+?]\??/,punctuation:/[;:()=]/},ue.languages.g4=ue.languages.antlr4}},43556:function(ze){"use strict";ze.exports=Ee,Ee.displayName="apacheconf",Ee.aliases=[];function Ee(ue){ue.languages.apacheconf={comment:/#.*/,"directive-inline":{pattern:/(^[\t ]*)\b(?:AcceptFilter|AcceptPathInfo|AccessFileName|Action|Add(?:Alt|AltByEncoding|AltByType|Charset|DefaultCharset|Description|Encoding|Handler|Icon|IconByEncoding|IconByType|InputFilter|Language|ModuleInfo|OutputFilter|OutputFilterByType|Type)|Alias|AliasMatch|Allow(?:CONNECT|EncodedSlashes|Methods|Override|OverrideList)?|Anonymous(?:_LogEmail|_MustGiveEmail|_NoUserID|_VerifyEmail)?|AsyncRequestWorkerFactor|Auth(?:BasicAuthoritative|BasicFake|BasicProvider|BasicUseDigestAlgorithm|DBDUserPWQuery|DBDUserRealmQuery|DBMGroupFile|DBMType|DBMUserFile|Digest(?:Algorithm|Domain|NonceLifetime|Provider|Qop|ShmemSize)|Form(?:Authoritative|Body|DisableNoStore|FakeBasicAuth|Location|LoginRequiredLocation|LoginSuccessLocation|LogoutLocation|Method|Mimetype|Password|Provider|SitePassphrase|Size|Username)|GroupFile|LDAP(?:AuthorizePrefix|BindAuthoritative|BindDN|BindPassword|CharsetConfig|CompareAsUser|CompareDNOnServer|DereferenceAliases|GroupAttribute|GroupAttributeIsDN|InitialBindAsUser|InitialBindPattern|MaxSubGroupDepth|RemoteUserAttribute|RemoteUserIsDN|SearchAsUser|SubGroupAttribute|SubGroupClass|Url)|Merging|Name|nCache(?:Context|Enable|ProvideFor|SOCache|Timeout)|nzFcgiCheckAuthnProvider|nzFcgiDefineProvider|Type|UserFile|zDBDLoginToReferer|zDBDQuery|zDBDRedirectQuery|zDBMType|zSendForbiddenOnFailure)|BalancerGrowth|BalancerInherit|BalancerMember|BalancerPersist|BrowserMatch|BrowserMatchNoCase|BufferedLogs|BufferSize|Cache(?:DefaultExpire|DetailHeader|DirLength|DirLevels|Disable|Enable|File|Header|IgnoreCacheControl|IgnoreHeaders|IgnoreNoLastMod|IgnoreQueryString|IgnoreURLSessionIdentifiers|KeyBaseURL|LastModifiedFactor|Lock|LockMaxAge|LockPath|MaxExpire|MaxFileSize|MinExpire|MinFileSize|NegotiatedDocs|QuickHandler|ReadSize|ReadTime|Root|Socache(?:MaxSize|MaxTime|MinTime|ReadSize|ReadTime)?|StaleOnError|StoreExpired|StoreNoStore|StorePrivate)|CGIDScriptTimeout|CGIMapExtension|CharsetDefault|CharsetOptions|CharsetSourceEnc|CheckCaseOnly|CheckSpelling|ChrootDir|ContentDigest|CookieDomain|CookieExpires|CookieName|CookieStyle|CookieTracking|CoreDumpDirectory|CustomLog|Dav|DavDepthInfinity|DavGenericLockDB|DavLockDB|DavMinTimeout|DBDExptime|DBDInitSQL|DBDKeep|DBDMax|DBDMin|DBDParams|DBDPersist|DBDPrepareSQL|DBDriver|DefaultIcon|DefaultLanguage|DefaultRuntimeDir|DefaultType|Define|Deflate(?:BufferSize|CompressionLevel|FilterNote|InflateLimitRequestBody|InflateRatio(?:Burst|Limit)|MemLevel|WindowSize)|Deny|DirectoryCheckHandler|DirectoryIndex|DirectoryIndexRedirect|DirectorySlash|DocumentRoot|DTracePrivileges|DumpIOInput|DumpIOOutput|EnableExceptionHook|EnableMMAP|EnableSendfile|Error|ErrorDocument|ErrorLog|ErrorLogFormat|Example|ExpiresActive|ExpiresByType|ExpiresDefault|ExtendedStatus|ExtFilterDefine|ExtFilterOptions|FallbackResource|FileETag|FilterChain|FilterDeclare|FilterProtocol|FilterProvider|FilterTrace|ForceLanguagePriority|ForceType|ForensicLog|GprofDir|GracefulShutdownTimeout|Group|Header|HeaderName|Heartbeat(?:Address|Listen|MaxServers|Storage)|HostnameLookups|IdentityCheck|IdentityCheckTimeout|ImapBase|ImapDefault|ImapMenu|Include|IncludeOptional|Index(?:HeadInsert|Ignore|IgnoreReset|Options|OrderDefault|StyleSheet)|InputSed|ISAPI(?:AppendLogToErrors|AppendLogToQuery|CacheFile|FakeAsync|LogNotSupported|ReadAheadBuffer)|KeepAlive|KeepAliveTimeout|KeptBodySize|LanguagePriority|LDAP(?:CacheEntries|CacheTTL|ConnectionPoolTTL|ConnectionTimeout|LibraryDebug|OpCacheEntries|OpCacheTTL|ReferralHopLimit|Referrals|Retries|RetryDelay|SharedCacheFile|SharedCacheSize|Timeout|TrustedClientCert|TrustedGlobalCert|TrustedMode|VerifyServerCert)|Limit(?:InternalRecursion|Request(?:Body|Fields|FieldSize|Line)|XMLRequestBody)|Listen|ListenBackLog|LoadFile|LoadModule|LogFormat|LogLevel|LogMessage|LuaAuthzProvider|LuaCodeCache|Lua(?:Hook(?:AccessChecker|AuthChecker|CheckUserID|Fixups|InsertFilter|Log|MapToStorage|TranslateName|TypeChecker)|Inherit|InputFilter|MapHandler|OutputFilter|PackageCPath|PackagePath|QuickHandler|Root|Scope)|Max(?:ConnectionsPerChild|KeepAliveRequests|MemFree|RangeOverlaps|RangeReversals|Ranges|RequestWorkers|SpareServers|SpareThreads|Threads)|MergeTrailers|MetaDir|MetaFiles|MetaSuffix|MimeMagicFile|MinSpareServers|MinSpareThreads|MMapFile|ModemStandard|ModMimeUsePathInfo|MultiviewsMatch|Mutex|NameVirtualHost|NoProxy|NWSSLTrustedCerts|NWSSLUpgradeable|Options|Order|OutputSed|PassEnv|PidFile|PrivilegesMode|Protocol|ProtocolEcho|Proxy(?:AddHeaders|BadHeader|Block|Domain|ErrorOverride|ExpressDBMFile|ExpressDBMType|ExpressEnable|FtpDirCharset|FtpEscapeWildcards|FtpListOnWildcard|HTML(?:BufSize|CharsetOut|DocType|Enable|Events|Extended|Fixups|Interp|Links|Meta|StripComments|URLMap)|IOBufferSize|MaxForwards|Pass(?:Inherit|InterpolateEnv|Match|Reverse|ReverseCookieDomain|ReverseCookiePath)?|PreserveHost|ReceiveBufferSize|Remote|RemoteMatch|Requests|SCGIInternalRedirect|SCGISendfile|Set|SourceAddress|Status|Timeout|Via)|ReadmeName|ReceiveBufferSize|Redirect|RedirectMatch|RedirectPermanent|RedirectTemp|ReflectorHeader|RemoteIP(?:Header|InternalProxy|InternalProxyList|ProxiesHeader|TrustedProxy|TrustedProxyList)|RemoveCharset|RemoveEncoding|RemoveHandler|RemoveInputFilter|RemoveLanguage|RemoveOutputFilter|RemoveType|RequestHeader|RequestReadTimeout|Require|Rewrite(?:Base|Cond|Engine|Map|Options|Rule)|RLimitCPU|RLimitMEM|RLimitNPROC|Satisfy|ScoreBoardFile|Script(?:Alias|AliasMatch|InterpreterSource|Log|LogBuffer|LogLength|Sock)?|SecureListen|SeeRequestTail|SendBufferSize|Server(?:Admin|Alias|Limit|Name|Path|Root|Signature|Tokens)|Session(?:Cookie(?:Name|Name2|Remove)|Crypto(?:Cipher|Driver|Passphrase|PassphraseFile)|DBD(?:CookieName|CookieName2|CookieRemove|DeleteLabel|InsertLabel|PerUser|SelectLabel|UpdateLabel)|Env|Exclude|Header|Include|MaxAge)?|SetEnv|SetEnvIf|SetEnvIfExpr|SetEnvIfNoCase|SetHandler|SetInputFilter|SetOutputFilter|SSIEndTag|SSIErrorMsg|SSIETag|SSILastModified|SSILegacyExprParser|SSIStartTag|SSITimeFormat|SSIUndefinedEcho|SSL(?:CACertificateFile|CACertificatePath|CADNRequestFile|CADNRequestPath|CARevocationCheck|CARevocationFile|CARevocationPath|CertificateChainFile|CertificateFile|CertificateKeyFile|CipherSuite|Compression|CryptoDevice|Engine|FIPS|HonorCipherOrder|InsecureRenegotiation|OCSP(?:DefaultResponder|Enable|OverrideResponder|ResponderTimeout|ResponseMaxAge|ResponseTimeSkew|UseRequestNonce)|OpenSSLConfCmd|Options|PassPhraseDialog|Protocol|Proxy(?:CACertificateFile|CACertificatePath|CARevocation(?:Check|File|Path)|CheckPeer(?:CN|Expire|Name)|CipherSuite|Engine|MachineCertificate(?:ChainFile|File|Path)|Protocol|Verify|VerifyDepth)|RandomSeed|RenegBufferSize|Require|RequireSSL|Session(?:Cache|CacheTimeout|TicketKeyFile|Tickets)|SRPUnknownUserSeed|SRPVerifierFile|Stapling(?:Cache|ErrorCacheTimeout|FakeTryLater|ForceURL|ResponderTimeout|ResponseMaxAge|ResponseTimeSkew|ReturnResponderErrors|StandardCacheTimeout)|StrictSNIVHostCheck|UserName|UseStapling|VerifyClient|VerifyDepth)|StartServers|StartThreads|Substitute|Suexec|SuexecUserGroup|ThreadLimit|ThreadsPerChild|ThreadStackSize|TimeOut|TraceEnable|TransferLog|TypesConfig|UnDefine|UndefMacro|UnsetEnv|Use|UseCanonicalName|UseCanonicalPhysicalPort|User|UserDir|VHostCGIMode|VHostCGIPrivs|VHostGroup|VHostPrivs|VHostSecure|VHostUser|Virtual(?:DocumentRoot|ScriptAlias)(?:IP)?|WatchdogInterval|XBitHack|xml2EncAlias|xml2EncDefault|xml2StartParse)\b/im,lookbehind:!0,alias:"property"},"directive-block":{pattern:/<\/?\b(?:Auth[nz]ProviderAlias|Directory|DirectoryMatch|Else|ElseIf|Files|FilesMatch|If|IfDefine|IfModule|IfVersion|Limit|LimitExcept|Location|LocationMatch|Macro|Proxy|Require(?:All|Any|None)|VirtualHost)\b.*>/i,inside:{"directive-block":{pattern:/^<\/?\w+/,inside:{punctuation:/^<\/?/},alias:"tag"},"directive-block-parameter":{pattern:/.*[^>]/,inside:{punctuation:/:/,string:{pattern:/("|').*\1/,inside:{variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/}}},alias:"attr-value"},punctuation:/>/},alias:"tag"},"directive-flags":{pattern:/\[(?:[\w=],?)+\]/,alias:"keyword"},string:{pattern:/("|').*\1/,inside:{variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/}},variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/,regex:/\^?.*\$|\^.*\$?/}}},14901:function(ze,Ee,ue){"use strict";var ce=ue(69435);ze.exports=Pe,Pe.displayName="apex",Pe.aliases=[];function Pe(Re){Re.register(ce),function(Me){var We=/\b(?:(?:after|before)(?=\s+[a-z])|abstract|activate|and|any|array|as|asc|autonomous|begin|bigdecimal|blob|boolean|break|bulk|by|byte|case|cast|catch|char|class|collect|commit|const|continue|currency|date|datetime|decimal|default|delete|desc|do|double|else|end|enum|exception|exit|export|extends|final|finally|float|for|from|get(?=\s*[{};])|global|goto|group|having|hint|if|implements|import|in|inner|insert|instanceof|int|integer|interface|into|join|like|limit|list|long|loop|map|merge|new|not|null|nulls|number|object|of|on|or|outer|override|package|parallel|pragma|private|protected|public|retrieve|return|rollback|select|set|short|sObject|sort|static|string|super|switch|synchronized|system|testmethod|then|this|throw|time|transaction|transient|trigger|try|undelete|update|upsert|using|virtual|void|webservice|when|where|while|(?:inherited|with|without)\s+sharing)\b/i,Te=/\b(?:(?=[a-z_]\w*\s*[<\[])|(?!<keyword>))[A-Z_]\w*(?:\s*\.\s*[A-Z_]\w*)*\b(?:\s*(?:\[\s*\]|<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>))*/.source.replace(/<keyword>/g,function(){return We.source});function Ge(Qe){return RegExp(Qe.replace(/<CLASS-NAME>/g,function(){return Te}),"i")}var st={keyword:We,punctuation:/[()\[\]{};,:.<>]/};Me.languages.apex={comment:Me.languages.clike.comment,string:Me.languages.clike.string,sql:{pattern:/((?:[=,({:]|\breturn)\s*)\[[^\[\]]*\]/i,lookbehind:!0,greedy:!0,alias:"language-sql",inside:Me.languages.sql},annotation:{pattern:/@\w+\b/,alias:"punctuation"},"class-name":[{pattern:Ge(/(\b(?:class|enum|extends|implements|instanceof|interface|new|trigger\s+\w+\s+on)\s+)<CLASS-NAME>/.source),lookbehind:!0,inside:st},{pattern:Ge(/(\(\s*)<CLASS-NAME>(?=\s*\)\s*[\w(])/.source),lookbehind:!0,inside:st},{pattern:Ge(/<CLASS-NAME>(?=\s*\w+\s*[;=,(){:])/.source),inside:st}],trigger:{pattern:/(\btrigger\s+)\w+\b/i,lookbehind:!0,alias:"class-name"},keyword:We,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/i,number:/(?:\B\.\d+|\b\d+(?:\.\d+|L)?)\b/i,operator:/[!=](?:==?)?|\?\.?|&&|\|\||--|\+\+|[-+*/^&|]=?|:|<<?=?|>{1,3}=?/,punctuation:/[()\[\]{};,.]/}}(Re)}},4248:function(ze){"use strict";ze.exports=Ee,Ee.displayName="apl",Ee.aliases=[];function Ee(ue){ue.languages.apl={comment:/(?:⍝|#[! ]).*$/m,string:{pattern:/'(?:[^'\r\n]|'')*'/,greedy:!0},number:/¯?(?:\d*\.?\b\d+(?:e[+¯]?\d+)?|¯|∞)(?:j¯?(?:(?:\d+(?:\.\d+)?|\.\d+)(?:e[+¯]?\d+)?|¯|∞))?/i,statement:/:[A-Z][a-z][A-Za-z]*\b/,"system-function":{pattern:/⎕[A-Z]+/i,alias:"function"},constant:/[⍬⌾#⎕⍞]/,function:/[-+×÷⌈⌊∣|⍳⍸?*⍟○!⌹<≤=>≥≠≡≢∊⍷∪∩~∨∧⍱⍲⍴,⍪⌽⊖⍉↑↓⊂⊃⊆⊇⌷⍋⍒⊤⊥⍕⍎⊣⊢⍁⍂≈⍯↗¤→]/,"monadic-operator":{pattern:/[\\\/⌿⍀¨⍨⌶&∥]/,alias:"operator"},"dyadic-operator":{pattern:/[.⍣⍠⍤∘⌸@⌺⍥]/,alias:"operator"},assignment:{pattern:/←/,alias:"keyword"},punctuation:/[\[;\]()◇⋄]/,dfn:{pattern:/[{}⍺⍵⍶⍹∇⍫:]/,alias:"builtin"}}}},17758:function(ze){"use strict";ze.exports=Ee,Ee.displayName="applescript",Ee.aliases=[];function Ee(ue){ue.languages.applescript={comment:[/\(\*(?:\(\*(?:[^*]|\*(?!\)))*\*\)|(?!\(\*)[\s\S])*?\*\)/,/--.+/,/#.+/],string:/"(?:\\.|[^"\\\r\n])*"/,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e-?\d+)?\b/i,operator:[/[&=≠≤≥*+\-\/÷^]|[<>]=?/,/\b(?:(?:begin|end|start)s? with|(?:contains?|(?:does not|doesn't) contain)|(?:is|isn't|is not) (?:contained by|in)|(?:(?:is|isn't|is not) )?(?:greater|less) than(?: or equal)?(?: to)?|(?:comes|(?:does not|doesn't) come) (?:after|before)|(?:is|isn't|is not) equal(?: to)?|(?:(?:does not|doesn't) equal|equal to|equals|is not|isn't)|(?:a )?(?:ref(?: to)?|reference to)|(?:and|as|div|mod|not|or))\b/],keyword:/\b(?:about|above|after|against|apart from|around|aside from|at|back|before|beginning|behind|below|beneath|beside|between|but|by|considering|continue|copy|does|eighth|else|end|equal|error|every|exit|false|fifth|first|for|fourth|from|front|get|given|global|if|ignoring|in|instead of|into|is|it|its|last|local|me|middle|my|ninth|of|on|onto|out of|over|prop|property|put|repeat|return|returning|second|set|seventh|since|sixth|some|tell|tenth|that|the|then|third|through|thru|timeout|times|to|transaction|true|try|until|where|while|whose|with|without)\b/,"class-name":/\b(?:POSIX file|RGB color|alias|application|boolean|centimeters|centimetres|class|constant|cubic centimeters|cubic centimetres|cubic feet|cubic inches|cubic meters|cubic metres|cubic yards|date|degrees Celsius|degrees Fahrenheit|degrees Kelvin|feet|file|gallons|grams|inches|integer|kilograms|kilometers|kilometres|list|liters|litres|meters|metres|miles|number|ounces|pounds|quarts|real|record|reference|script|square feet|square kilometers|square kilometres|square meters|square metres|square miles|square yards|text|yards)\b/,punctuation:/[{}():,¬«»《》]/}}},33335:function(ze){"use strict";ze.exports=Ee,Ee.displayName="aql",Ee.aliases=[];function Ee(ue){ue.languages.aql={comment:/\/\/.*|\/\*[\s\S]*?\*\//,property:{pattern:/([{,]\s*)(?:(?!\d)\w+|(["'´`])(?:(?!\2)[^\\\r\n]|\\.)*\2)(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\.)*\1/,greedy:!0},identifier:{pattern:/([´`])(?:(?!\1)[^\\\r\n]|\\.)*\1/,greedy:!0},variable:/@@?\w+/,keyword:[{pattern:/(\bWITH\s+)COUNT(?=\s+INTO\b)/i,lookbehind:!0},/\b(?:AGGREGATE|ALL|AND|ANY|ASC|COLLECT|DESC|DISTINCT|FILTER|FOR|GRAPH|IN|INBOUND|INSERT|INTO|K_PATHS|K_SHORTEST_PATHS|LET|LIKE|LIMIT|NONE|NOT|NULL|OR|OUTBOUND|REMOVE|REPLACE|RETURN|SHORTEST_PATH|SORT|UPDATE|UPSERT|WINDOW|WITH)\b/i,{pattern:/(^|[^\w.[])(?:KEEP|PRUNE|SEARCH|TO)\b/i,lookbehind:!0},{pattern:/(^|[^\w.[])(?:CURRENT|NEW|OLD)\b/,lookbehind:!0},{pattern:/\bOPTIONS(?=\s*\{)/i}],function:/\b(?!\d)\w+(?=\s*\()/,boolean:/\b(?:false|true)\b/i,range:{pattern:/\.\./,alias:"operator"},number:[/\b0b[01]+/i,/\b0x[0-9a-f]+/i,/(?:\B\.\d+|\b(?:0|[1-9]\d*)(?:\.\d+)?)(?:e[+-]?\d+)?/i],operator:/\*{2,}|[=!]~|[!=<>]=?|&&|\|\||[-+*/%]/,punctuation:/::|[?.:,;()[\]{}]/}}},17427:function(ze,Ee,ue){"use strict";var ce=ue(87071);ze.exports=Pe,Pe.displayName="arduino",Pe.aliases=["ino"];function Pe(Re){Re.register(ce),Re.languages.arduino=Re.languages.extend("cpp",{keyword:/\b(?:String|array|bool|boolean|break|byte|case|catch|continue|default|do|double|else|finally|for|function|goto|if|in|instanceof|int|integer|long|loop|new|null|return|setup|string|switch|throw|try|void|while|word)\b/,constant:/\b(?:ANALOG_MESSAGE|DEFAULT|DIGITAL_MESSAGE|EXTERNAL|FIRMATA_STRING|HIGH|INPUT|INPUT_PULLUP|INTERNAL|INTERNAL1V1|INTERNAL2V56|LED_BUILTIN|LOW|OUTPUT|REPORT_ANALOG|REPORT_DIGITAL|SET_PIN_MODE|SYSEX_START|SYSTEM_RESET)\b/,builtin:/\b(?:Audio|BSSID|Bridge|Client|Console|EEPROM|Esplora|EsploraTFT|Ethernet|EthernetClient|EthernetServer|EthernetUDP|File|FileIO|FileSystem|Firmata|GPRS|GSM|GSMBand|GSMClient|GSMModem|GSMPIN|GSMScanner|GSMServer|GSMVoiceCall|GSM_SMS|HttpClient|IPAddress|IRread|Keyboard|KeyboardController|LiquidCrystal|LiquidCrystal_I2C|Mailbox|Mouse|MouseController|PImage|Process|RSSI|RobotControl|RobotMotor|SD|SPI|SSID|Scheduler|Serial|Server|Servo|SoftwareSerial|Stepper|Stream|TFT|Task|USBHost|WiFi|WiFiClient|WiFiServer|WiFiUDP|Wire|YunClient|YunServer|abs|addParameter|analogRead|analogReadResolution|analogReference|analogWrite|analogWriteResolution|answerCall|attach|attachGPRS|attachInterrupt|attached|autoscroll|available|background|beep|begin|beginPacket|beginSD|beginSMS|beginSpeaker|beginTFT|beginTransmission|beginWrite|bit|bitClear|bitRead|bitSet|bitWrite|blink|blinkVersion|buffer|changePIN|checkPIN|checkPUK|checkReg|circle|cityNameRead|cityNameWrite|clear|clearScreen|click|close|compassRead|config|connect|connected|constrain|cos|countryNameRead|countryNameWrite|createChar|cursor|debugPrint|delay|delayMicroseconds|detach|detachInterrupt|digitalRead|digitalWrite|disconnect|display|displayLogos|drawBMP|drawCompass|encryptionType|end|endPacket|endSMS|endTransmission|endWrite|exists|exitValue|fill|find|findUntil|flush|gatewayIP|get|getAsynchronously|getBand|getButton|getCurrentCarrier|getIMEI|getKey|getModifiers|getOemKey|getPINUsed|getResult|getSignalStrength|getSocket|getVoiceCallStatus|getXChange|getYChange|hangCall|height|highByte|home|image|interrupts|isActionDone|isDirectory|isListening|isPIN|isPressed|isValid|keyPressed|keyReleased|keyboardRead|knobRead|leftToRight|line|lineFollowConfig|listen|listenOnLocalhost|loadImage|localIP|lowByte|macAddress|maintain|map|max|messageAvailable|micros|millis|min|mkdir|motorsStop|motorsWrite|mouseDragged|mouseMoved|mousePressed|mouseReleased|move|noAutoscroll|noBlink|noBuffer|noCursor|noDisplay|noFill|noInterrupts|noListenOnLocalhost|noStroke|noTone|onReceive|onRequest|open|openNextFile|overflow|parseCommand|parseFloat|parseInt|parsePacket|pauseMode|peek|pinMode|playFile|playMelody|point|pointTo|position|pow|prepare|press|print|printFirmwareVersion|printVersion|println|process|processInput|pulseIn|put|random|randomSeed|read|readAccelerometer|readBlue|readButton|readBytes|readBytesUntil|readGreen|readJoystickButton|readJoystickSwitch|readJoystickX|readJoystickY|readLightSensor|readMessage|readMicrophone|readNetworks|readRed|readSlider|readString|readStringUntil|readTemperature|ready|rect|release|releaseAll|remoteIP|remoteNumber|remotePort|remove|requestFrom|retrieveCallingNumber|rewindDirectory|rightToLeft|rmdir|robotNameRead|robotNameWrite|run|runAsynchronously|runShellCommand|runShellCommandAsynchronously|running|scanNetworks|scrollDisplayLeft|scrollDisplayRight|seek|sendAnalog|sendDigitalPortPair|sendDigitalPorts|sendString|sendSysex|serialEvent|setBand|setBitOrder|setClockDivider|setCursor|setDNS|setDataMode|setFirmwareVersion|setMode|setPINUsed|setSpeed|setTextSize|setTimeout|shiftIn|shiftOut|shutdown|sin|size|sqrt|startLoop|step|stop|stroke|subnetMask|switchPIN|tan|tempoWrite|text|tone|transfer|tuneWrite|turn|updateIR|userNameRead|userNameWrite|voiceCall|waitContinue|width|write|writeBlue|writeGreen|writeJSON|writeMessage|writeMicroseconds|writeRGB|writeRed|yield)\b/}),Re.languages.ino=Re.languages.arduino}},22956:function(ze){"use strict";ze.exports=Ee,Ee.displayName="arff",Ee.aliases=[];function Ee(ue){ue.languages.arff={comment:/%.*/,string:{pattern:/(["'])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:/@(?:attribute|data|end|relation)\b/i,number:/\b\d+(?:\.\d+)?\b/,punctuation:/[{},]/}}},56007:function(ze){"use strict";ze.exports=Ee,Ee.displayName="asciidoc",Ee.aliases=["adoc"];function Ee(ue){(function(ce){var Pe={pattern:/(^[ \t]*)\[(?!\[)(?:(["'$`])(?:(?!\2)[^\\]|\\.)*\2|\[(?:[^\[\]\\]|\\.)*\]|[^\[\]\\"'$`]|\\.)*\]/m,lookbehind:!0,inside:{quoted:{pattern:/([$`])(?:(?!\1)[^\\]|\\.)*\1/,inside:{punctuation:/^[$`]|[$`]$/}},interpreted:{pattern:/'(?:[^'\\]|\\.)*'/,inside:{punctuation:/^'|'$/}},string:/"(?:[^"\\]|\\.)*"/,variable:/\w+(?==)/,punctuation:/^\[|\]$|,/,operator:/=/,"attr-value":/(?!^\s+$).+/}},Re=ce.languages.asciidoc={"comment-block":{pattern:/^(\/{4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1/m,alias:"comment"},table:{pattern:/^\|={3,}(?:(?:\r?\n|\r(?!\n)).*)*?(?:\r?\n|\r)\|={3,}$/m,inside:{specifiers:{pattern:/(?:(?:(?:\d+(?:\.\d+)?|\.\d+)[+*](?:[<^>](?:\.[<^>])?|\.[<^>])?|[<^>](?:\.[<^>])?|\.[<^>])[a-z]*|[a-z]+)(?=\|)/,alias:"attr-value"},punctuation:{pattern:/(^|[^\\])[|!]=*/,lookbehind:!0}}},"passthrough-block":{pattern:/^(\+{4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1$/m,inside:{punctuation:/^\++|\++$/}},"literal-block":{pattern:/^(-{4,}|\.{4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1$/m,inside:{punctuation:/^(?:-+|\.+)|(?:-+|\.+)$/}},"other-block":{pattern:/^(--|\*{4,}|_{4,}|={4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1$/m,inside:{punctuation:/^(?:-+|\*+|_+|=+)|(?:-+|\*+|_+|=+)$/}},"list-punctuation":{pattern:/(^[ \t]*)(?:-|\*{1,5}|\.{1,5}|(?:[a-z]|\d+)\.|[xvi]+\))(?= )/im,lookbehind:!0,alias:"punctuation"},"list-label":{pattern:/(^[ \t]*)[a-z\d].+(?::{2,4}|;;)(?=\s)/im,lookbehind:!0,alias:"symbol"},"indented-block":{pattern:/((\r?\n|\r)\2)([ \t]+)\S.*(?:(?:\r?\n|\r)\3.+)*(?=\2{2}|$)/,lookbehind:!0},comment:/^\/\/.*/m,title:{pattern:/^.+(?:\r?\n|\r)(?:={3,}|-{3,}|~{3,}|\^{3,}|\+{3,})$|^={1,5} .+|^\.(?![\s.]).*/m,alias:"important",inside:{punctuation:/^(?:\.|=+)|(?:=+|-+|~+|\^+|\++)$/}},"attribute-entry":{pattern:/^:[^:\r\n]+:(?: .*?(?: \+(?:\r?\n|\r).*?)*)?$/m,alias:"tag"},attributes:Pe,hr:{pattern:/^'{3,}$/m,alias:"punctuation"},"page-break":{pattern:/^<{3,}$/m,alias:"punctuation"},admonition:{pattern:/^(?:CAUTION|IMPORTANT|NOTE|TIP|WARNING):/m,alias:"keyword"},callout:[{pattern:/(^[ \t]*)<?\d*>/m,lookbehind:!0,alias:"symbol"},{pattern:/<\d+>/,alias:"symbol"}],macro:{pattern:/\b[a-z\d][a-z\d-]*::?(?:[^\s\[\]]*\[(?:[^\]\\"']|(["'])(?:(?!\1)[^\\]|\\.)*\1|\\.)*\])/,inside:{function:/^[a-z\d-]+(?=:)/,punctuation:/^::?/,attributes:{pattern:/(?:\[(?:[^\]\\"']|(["'])(?:(?!\1)[^\\]|\\.)*\1|\\.)*\])/,inside:Pe.inside}}},inline:{pattern:/(^|[^\\])(?:(?:\B\[(?:[^\]\\"']|(["'])(?:(?!\2)[^\\]|\\.)*\2|\\.)*\])?(?:\b_(?!\s)(?: _|[^_\\\r\n]|\\.)+(?:(?:\r?\n|\r)(?: _|[^_\\\r\n]|\\.)+)*_\b|\B``(?!\s).+?(?:(?:\r?\n|\r).+?)*''\B|\B`(?!\s)(?:[^`'\s]|\s+\S)+['`]\B|\B(['*+#])(?!\s)(?: \3|(?!\3)[^\\\r\n]|\\.)+(?:(?:\r?\n|\r)(?: \3|(?!\3)[^\\\r\n]|\\.)+)*\3\B)|(?:\[(?:[^\]\\"']|(["'])(?:(?!\4)[^\\]|\\.)*\4|\\.)*\])?(?:(__|\*\*|\+\+\+?|##|\$\$|[~^]).+?(?:(?:\r?\n|\r).+?)*\5|\{[^}\r\n]+\}|\[\[\[?.+?(?:(?:\r?\n|\r).+?)*\]?\]\]|<<.+?(?:(?:\r?\n|\r).+?)*>>|\(\(\(?.+?(?:(?:\r?\n|\r).+?)*\)?\)\)))/m,lookbehind:!0,inside:{attributes:Pe,url:{pattern:/^(?:\[\[\[?.+?\]?\]\]|<<.+?>>)$/,inside:{punctuation:/^(?:\[\[\[?|<<)|(?:\]\]\]?|>>)$/}},"attribute-ref":{pattern:/^\{.+\}$/,inside:{variable:{pattern:/(^\{)[a-z\d,+_-]+/,lookbehind:!0},operator:/^[=?!#%@$]|!(?=[:}])/,punctuation:/^\{|\}$|::?/}},italic:{pattern:/^(['_])[\s\S]+\1$/,inside:{punctuation:/^(?:''?|__?)|(?:''?|__?)$/}},bold:{pattern:/^\*[\s\S]+\*$/,inside:{punctuation:/^\*\*?|\*\*?$/}},punctuation:/^(?:``?|\+{1,3}|##?|\$\$|[~^]|\(\(\(?)|(?:''?|\+{1,3}|##?|\$\$|[~^`]|\)?\)\))$/}},replacement:{pattern:/\((?:C|R|TM)\)/,alias:"builtin"},entity:/&#?[\da-z]{1,8};/i,"line-continuation":{pattern:/(^| )\+$/m,lookbehind:!0,alias:"punctuation"}};function Me(We){We=We.split(" ");for(var Te={},Ge=0,st=We.length;Ge<st;Ge++)Te[We[Ge]]=Re[We[Ge]];return Te}Pe.inside.interpreted.inside.rest=Me("macro inline replacement entity"),Re["passthrough-block"].inside.rest=Me("macro"),Re["literal-block"].inside.rest=Me("callout"),Re.table.inside.rest=Me("comment-block passthrough-block literal-block other-block list-punctuation indented-block comment title attribute-entry attributes hr page-break admonition list-label callout macro inline replacement entity line-continuation"),Re["other-block"].inside.rest=Me("table list-punctuation indented-block comment attribute-entry attributes hr page-break admonition list-label macro inline replacement entity line-continuation"),Re.title.inside.rest=Me("macro inline replacement entity"),ce.hooks.add("wrap",function(We){We.type==="entity"&&(We.attributes.title=We.content.value.replace(/&/,"&"))}),ce.languages.adoc=ce.languages.asciidoc})(ue)}},45652:function(ze){"use strict";ze.exports=Ee,Ee.displayName="asm6502",Ee.aliases=[];function Ee(ue){ue.languages.asm6502={comment:/;.*/,directive:{pattern:/\.\w+(?= )/,alias:"property"},string:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,"op-code":{pattern:/\b(?:ADC|AND|ASL|BCC|BCS|BEQ|BIT|BMI|BNE|BPL|BRK|BVC|BVS|CLC|CLD|CLI|CLV|CMP|CPX|CPY|DEC|DEX|DEY|EOR|INC|INX|INY|JMP|JSR|LDA|LDX|LDY|LSR|NOP|ORA|PHA|PHP|PLA|PLP|ROL|ROR|RTI|RTS|SBC|SEC|SED|SEI|STA|STX|STY|TAX|TAY|TSX|TXA|TXS|TYA|adc|and|asl|bcc|bcs|beq|bit|bmi|bne|bpl|brk|bvc|bvs|clc|cld|cli|clv|cmp|cpx|cpy|dec|dex|dey|eor|inc|inx|iny|jmp|jsr|lda|ldx|ldy|lsr|nop|ora|pha|php|pla|plp|rol|ror|rti|rts|sbc|sec|sed|sei|sta|stx|sty|tax|tay|tsx|txa|txs|tya)\b/,alias:"keyword"},"hex-number":{pattern:/#?\$[\da-f]{1,4}\b/i,alias:"number"},"binary-number":{pattern:/#?%[01]+\b/,alias:"number"},"decimal-number":{pattern:/#?\b\d+\b/,alias:"number"},register:{pattern:/\b[xya]\b/i,alias:"variable"},punctuation:/[(),:]/}}},33819:function(ze){"use strict";ze.exports=Ee,Ee.displayName="asmatmel",Ee.aliases=[];function Ee(ue){ue.languages.asmatmel={comment:{pattern:/;.*/,greedy:!0},string:{pattern:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},constant:/\b(?:PORT[A-Z]|DDR[A-Z]|(?:DD|P)[A-Z](?:\d|[0-2]\d|3[01]))\b/,directive:{pattern:/\.\w+(?= )/,alias:"property"},"r-register":{pattern:/\br(?:\d|[12]\d|3[01])\b/,alias:"variable"},"op-code":{pattern:/\b(?:ADC|ADD|ADIW|AND|ANDI|ASR|BCLR|BLD|BRBC|BRBS|BRCC|BRCS|BREAK|BREQ|BRGE|BRHC|BRHS|BRID|BRIE|BRLO|BRLT|BRMI|BRNE|BRPL|BRSH|BRTC|BRTS|BRVC|BRVS|BSET|BST|CALL|CBI|CBR|CLC|CLH|CLI|CLN|CLR|CLS|CLT|CLV|CLZ|COM|CP|CPC|CPI|CPSE|DEC|DES|EICALL|EIJMP|ELPM|EOR|FMUL|FMULS|FMULSU|ICALL|IJMP|IN|INC|JMP|LAC|LAS|LAT|LD|LD[A-Za-z0-9]|LPM|LSL|LSR|MOV|MOVW|MUL|MULS|MULSU|NEG|NOP|OR|ORI|OUT|POP|PUSH|RCALL|RET|RETI|RJMP|ROL|ROR|SBC|SBCI|SBI|SBIC|SBIS|SBIW|SBR|SBRC|SBRS|SEC|SEH|SEI|SEN|SER|SES|SET|SEV|SEZ|SLEEP|SPM|ST|ST[A-Z0-9]|SUB|SUBI|SWAP|TST|WDR|XCH|adc|add|adiw|and|andi|asr|bclr|bld|brbc|brbs|brcc|brcs|break|breq|brge|brhc|brhs|brid|brie|brlo|brlt|brmi|brne|brpl|brsh|brtc|brts|brvc|brvs|bset|bst|call|cbi|cbr|clc|clh|cli|cln|clr|cls|clt|clv|clz|com|cp|cpc|cpi|cpse|dec|des|eicall|eijmp|elpm|eor|fmul|fmuls|fmulsu|icall|ijmp|in|inc|jmp|lac|las|lat|ld|ld[a-z0-9]|lpm|lsl|lsr|mov|movw|mul|muls|mulsu|neg|nop|or|ori|out|pop|push|rcall|ret|reti|rjmp|rol|ror|sbc|sbci|sbi|sbic|sbis|sbiw|sbr|sbrc|sbrs|sec|seh|sei|sen|ser|ses|set|sev|sez|sleep|spm|st|st[a-zA-Z0-9]|sub|subi|swap|tst|wdr|xch)\b/,alias:"keyword"},"hex-number":{pattern:/#?\$[\da-f]{2,4}\b/i,alias:"number"},"binary-number":{pattern:/#?%[01]+\b/,alias:"number"},"decimal-number":{pattern:/#?\b\d+\b/,alias:"number"},register:{pattern:/\b[acznvshtixy]\b/i,alias:"variable"},operator:/>>=?|<<=?|&&?|\|\|?|[-+*/%&|^!=<>?]=?/,punctuation:/[(),:]/}}},84230:function(ze,Ee,ue){"use strict";var ce=ue(87648);ze.exports=Pe,Pe.displayName="aspnet",Pe.aliases=[];function Pe(Re){Re.register(ce),Re.languages.aspnet=Re.languages.extend("markup",{"page-directive":{pattern:/<%\s*@.*%>/,alias:"tag",inside:{"page-directive":{pattern:/<%\s*@\s*(?:Assembly|Control|Implements|Import|Master(?:Type)?|OutputCache|Page|PreviousPageType|Reference|Register)?|%>/i,alias:"tag"},rest:Re.languages.markup.tag.inside}},directive:{pattern:/<%.*%>/,alias:"tag",inside:{directive:{pattern:/<%\s*?[$=%#:]{0,2}|%>/,alias:"tag"},rest:Re.languages.csharp}}}),Re.languages.aspnet.tag.pattern=/<(?!%)\/?[^\s>\/]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,Re.languages.insertBefore("inside","punctuation",{directive:Re.languages.aspnet.directive},Re.languages.aspnet.tag.inside["attr-value"]),Re.languages.insertBefore("aspnet","comment",{"asp-comment":{pattern:/<%--[\s\S]*?--%>/,alias:["asp","comment"]}}),Re.languages.insertBefore("aspnet",Re.languages.javascript?"script":"tag",{"asp-script":{pattern:/(<script(?=.*runat=['"]?server\b)[^>]*>)[\s\S]*?(?=<\/script>)/i,lookbehind:!0,alias:["asp","script"],inside:Re.languages.csharp||{}}})}},20803:function(ze){"use strict";ze.exports=Ee,Ee.displayName="autohotkey",Ee.aliases=[];function Ee(ue){ue.languages.autohotkey={comment:[{pattern:/(^|\s);.*/,lookbehind:!0},{pattern:/(^[\t ]*)\/\*(?:[\r\n](?![ \t]*\*\/)|[^\r\n])*(?:[\r\n][ \t]*\*\/)?/m,lookbehind:!0,greedy:!0}],tag:{pattern:/^([ \t]*)[^\s,`":]+(?=:[ \t]*$)/m,lookbehind:!0},string:/"(?:[^"\n\r]|"")*"/,variable:/%\w+%/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/\?|\/\/?=?|:=|\|[=|]?|&[=&]?|\+[=+]?|-[=-]?|\*[=*]?|<(?:<=?|>|=)?|>>?=?|[.^!=~]=?|\b(?:AND|NOT|OR)\b/,boolean:/\b(?:false|true)\b/,selector:/\b(?:AutoTrim|BlockInput|Break|Click|ClipWait|Continue|Control|ControlClick|ControlFocus|ControlGet|ControlGetFocus|ControlGetPos|ControlGetText|ControlMove|ControlSend|ControlSendRaw|ControlSetText|CoordMode|Critical|DetectHiddenText|DetectHiddenWindows|Drive|DriveGet|DriveSpaceFree|EnvAdd|EnvDiv|EnvGet|EnvMult|EnvSet|EnvSub|EnvUpdate|Exit|ExitApp|FileAppend|FileCopy|FileCopyDir|FileCreateDir|FileCreateShortcut|FileDelete|FileEncoding|FileGetAttrib|FileGetShortcut|FileGetSize|FileGetTime|FileGetVersion|FileInstall|FileMove|FileMoveDir|FileRead|FileReadLine|FileRecycle|FileRecycleEmpty|FileRemoveDir|FileSelectFile|FileSelectFolder|FileSetAttrib|FileSetTime|FormatTime|GetKeyState|Gosub|Goto|GroupActivate|GroupAdd|GroupClose|GroupDeactivate|Gui|GuiControl|GuiControlGet|Hotkey|ImageSearch|IniDelete|IniRead|IniWrite|Input|InputBox|KeyWait|ListHotkeys|ListLines|ListVars|Loop|Menu|MouseClick|MouseClickDrag|MouseGetPos|MouseMove|MsgBox|OnExit|OutputDebug|Pause|PixelGetColor|PixelSearch|PostMessage|Process|Progress|Random|RegDelete|RegRead|RegWrite|Reload|Repeat|Return|Run|RunAs|RunWait|Send|SendEvent|SendInput|SendMessage|SendMode|SendPlay|SendRaw|SetBatchLines|SetCapslockState|SetControlDelay|SetDefaultMouseSpeed|SetEnv|SetFormat|SetKeyDelay|SetMouseDelay|SetNumlockState|SetRegView|SetScrollLockState|SetStoreCapslockMode|SetTimer|SetTitleMatchMode|SetWinDelay|SetWorkingDir|Shutdown|Sleep|Sort|SoundBeep|SoundGet|SoundGetWaveVolume|SoundPlay|SoundSet|SoundSetWaveVolume|SplashImage|SplashTextOff|SplashTextOn|SplitPath|StatusBarGetText|StatusBarWait|StringCaseSense|StringGetPos|StringLeft|StringLen|StringLower|StringMid|StringReplace|StringRight|StringSplit|StringTrimLeft|StringTrimRight|StringUpper|Suspend|SysGet|Thread|ToolTip|Transform|TrayTip|URLDownloadToFile|WinActivate|WinActivateBottom|WinClose|WinGet|WinGetActiveStats|WinGetActiveTitle|WinGetClass|WinGetPos|WinGetText|WinGetTitle|WinHide|WinKill|WinMaximize|WinMenuSelectItem|WinMinimize|WinMinimizeAll|WinMinimizeAllUndo|WinMove|WinRestore|WinSet|WinSetTitle|WinShow|WinWait|WinWaitActive|WinWaitClose|WinWaitNotActive)\b/i,constant:/\b(?:a_ahkpath|a_ahkversion|a_appdata|a_appdatacommon|a_autotrim|a_batchlines|a_caretx|a_carety|a_computername|a_controldelay|a_cursor|a_dd|a_ddd|a_dddd|a_defaultmousespeed|a_desktop|a_desktopcommon|a_detecthiddentext|a_detecthiddenwindows|a_endchar|a_eventinfo|a_exitreason|a_fileencoding|a_formatfloat|a_formatinteger|a_gui|a_guicontrol|a_guicontrolevent|a_guievent|a_guiheight|a_guiwidth|a_guix|a_guiy|a_hour|a_iconfile|a_iconhidden|a_iconnumber|a_icontip|a_index|a_ipaddress1|a_ipaddress2|a_ipaddress3|a_ipaddress4|a_is64bitos|a_isadmin|a_iscompiled|a_iscritical|a_ispaused|a_issuspended|a_isunicode|a_keydelay|a_language|a_lasterror|a_linefile|a_linenumber|a_loopfield|a_loopfileattrib|a_loopfiledir|a_loopfileext|a_loopfilefullpath|a_loopfilelongpath|a_loopfilename|a_loopfileshortname|a_loopfileshortpath|a_loopfilesize|a_loopfilesizekb|a_loopfilesizemb|a_loopfiletimeaccessed|a_loopfiletimecreated|a_loopfiletimemodified|a_loopreadline|a_loopregkey|a_loopregname|a_loopregsubkey|a_loopregtimemodified|a_loopregtype|a_mday|a_min|a_mm|a_mmm|a_mmmm|a_mon|a_mousedelay|a_msec|a_mydocuments|a_now|a_nowutc|a_numbatchlines|a_ostype|a_osversion|a_priorhotkey|a_priorkey|a_programfiles|a_programs|a_programscommon|a_ptrsize|a_regview|a_screendpi|a_screenheight|a_screenwidth|a_scriptdir|a_scriptfullpath|a_scripthwnd|a_scriptname|a_sec|a_space|a_startmenu|a_startmenucommon|a_startup|a_startupcommon|a_stringcasesense|a_tab|a_temp|a_thisfunc|a_thishotkey|a_thislabel|a_thismenu|a_thismenuitem|a_thismenuitempos|a_tickcount|a_timeidle|a_timeidlephysical|a_timesincepriorhotkey|a_timesincethishotkey|a_titlematchmode|a_titlematchmodespeed|a_username|a_wday|a_windelay|a_windir|a_workingdir|a_yday|a_year|a_yweek|a_yyyy|clipboard|clipboardall|comspec|errorlevel|programfiles)\b/i,builtin:/\b(?:abs|acos|asc|asin|atan|ceil|chr|class|comobjactive|comobjarray|comobjconnect|comobjcreate|comobjerror|comobjflags|comobjget|comobjquery|comobjtype|comobjvalue|cos|dllcall|exp|fileexist|Fileopen|floor|format|il_add|il_create|il_destroy|instr|isfunc|islabel|IsObject|ln|log|ltrim|lv_add|lv_delete|lv_deletecol|lv_getcount|lv_getnext|lv_gettext|lv_insert|lv_insertcol|lv_modify|lv_modifycol|lv_setimagelist|mod|numget|numput|onmessage|regexmatch|regexreplace|registercallback|round|rtrim|sb_seticon|sb_setparts|sb_settext|sin|sqrt|strlen|strreplace|strsplit|substr|tan|tv_add|tv_delete|tv_get|tv_getchild|tv_getcount|tv_getnext|tv_getparent|tv_getprev|tv_getselection|tv_gettext|tv_modify|varsetcapacity|winactive|winexist|__Call|__Get|__New|__Set)\b/i,symbol:/\b(?:alt|altdown|altup|appskey|backspace|browser_back|browser_favorites|browser_forward|browser_home|browser_refresh|browser_search|browser_stop|bs|capslock|ctrl|ctrlbreak|ctrldown|ctrlup|del|delete|down|end|enter|esc|escape|f1|f10|f11|f12|f13|f14|f15|f16|f17|f18|f19|f2|f20|f21|f22|f23|f24|f3|f4|f5|f6|f7|f8|f9|home|ins|insert|joy1|joy10|joy11|joy12|joy13|joy14|joy15|joy16|joy17|joy18|joy19|joy2|joy20|joy21|joy22|joy23|joy24|joy25|joy26|joy27|joy28|joy29|joy3|joy30|joy31|joy32|joy4|joy5|joy6|joy7|joy8|joy9|joyaxes|joybuttons|joyinfo|joyname|joypov|joyr|joyu|joyv|joyx|joyy|joyz|lalt|launch_app1|launch_app2|launch_mail|launch_media|lbutton|lcontrol|lctrl|left|lshift|lwin|lwindown|lwinup|mbutton|media_next|media_play_pause|media_prev|media_stop|numlock|numpad0|numpad1|numpad2|numpad3|numpad4|numpad5|numpad6|numpad7|numpad8|numpad9|numpadadd|numpadclear|numpaddel|numpaddiv|numpaddot|numpaddown|numpadend|numpadenter|numpadhome|numpadins|numpadleft|numpadmult|numpadpgdn|numpadpgup|numpadright|numpadsub|numpadup|pgdn|pgup|printscreen|ralt|rbutton|rcontrol|rctrl|right|rshift|rwin|rwindown|rwinup|scrolllock|shift|shiftdown|shiftup|space|tab|up|volume_down|volume_mute|volume_up|wheeldown|wheelleft|wheelright|wheelup|xbutton1|xbutton2)\b/i,important:/#\b(?:AllowSameLineComments|ClipboardTimeout|CommentFlag|DerefChar|ErrorStdOut|EscapeChar|HotkeyInterval|HotkeyModifierTimeout|Hotstring|If|IfTimeout|IfWinActive|IfWinExist|IfWinNotActive|IfWinNotExist|Include|IncludeAgain|InputLevel|InstallKeybdHook|InstallMouseHook|KeyHistory|MaxHotkeysPerInterval|MaxMem|MaxThreads|MaxThreadsBuffer|MaxThreadsPerHotkey|MenuMaskKey|NoEnv|NoTrayIcon|Persistent|SingleInstance|UseHook|Warn|WinActivateForce)\b/i,keyword:/\b(?:Abort|AboveNormal|Add|ahk_class|ahk_exe|ahk_group|ahk_id|ahk_pid|All|Alnum|Alpha|AltSubmit|AltTab|AltTabAndMenu|AltTabMenu|AltTabMenuDismiss|AlwaysOnTop|AutoSize|Background|BackgroundTrans|BelowNormal|between|BitAnd|BitNot|BitOr|BitShiftLeft|BitShiftRight|BitXOr|Bold|Border|Button|ByRef|Catch|Checkbox|Checked|CheckedGray|Choose|ChooseString|Close|Color|ComboBox|Contains|ControlList|Count|Date|DateTime|Days|DDL|Default|DeleteAll|Delimiter|Deref|Destroy|Digit|Disable|Disabled|DropDownList|Edit|Eject|Else|Enable|Enabled|Error|Exist|Expand|ExStyle|FileSystem|Finally|First|Flash|Float|FloatFast|Focus|Font|for|global|Grid|Group|GroupBox|GuiClose|GuiContextMenu|GuiDropFiles|GuiEscape|GuiSize|Hdr|Hidden|Hide|High|HKCC|HKCR|HKCU|HKEY_CLASSES_ROOT|HKEY_CURRENT_CONFIG|HKEY_CURRENT_USER|HKEY_LOCAL_MACHINE|HKEY_USERS|HKLM|HKU|Hours|HScroll|Icon|IconSmall|ID|IDLast|If|IfEqual|IfExist|IfGreater|IfGreaterOrEqual|IfInString|IfLess|IfLessOrEqual|IfMsgBox|IfNotEqual|IfNotExist|IfNotInString|IfWinActive|IfWinExist|IfWinNotActive|IfWinNotExist|Ignore|ImageList|in|Integer|IntegerFast|Interrupt|is|italic|Join|Label|LastFound|LastFoundExist|Limit|Lines|List|ListBox|ListView|local|Lock|Logoff|Low|Lower|Lowercase|MainWindow|Margin|Maximize|MaximizeBox|MaxSize|Minimize|MinimizeBox|MinMax|MinSize|Minutes|MonthCal|Mouse|Move|Multi|NA|No|NoActivate|NoDefault|NoHide|NoIcon|NoMainWindow|norm|Normal|NoSort|NoSortHdr|NoStandard|Not|NoTab|NoTimers|Number|Off|Ok|On|OwnDialogs|Owner|Parse|Password|Picture|Pixel|Pos|Pow|Priority|ProcessName|Radio|Range|Read|ReadOnly|Realtime|Redraw|Region|REG_BINARY|REG_DWORD|REG_EXPAND_SZ|REG_MULTI_SZ|REG_SZ|Relative|Rename|Report|Resize|Restore|Retry|RGB|Screen|Seconds|Section|Serial|SetLabel|ShiftAltTab|Show|Single|Slider|SortDesc|Standard|static|Status|StatusBar|StatusCD|strike|Style|Submit|SysMenu|Tab2|TabStop|Text|Theme|Throw|Tile|ToggleCheck|ToggleEnable|ToolWindow|Top|Topmost|TransColor|Transparent|Tray|TreeView|Try|TryAgain|Type|UnCheck|underline|Unicode|Unlock|Until|UpDown|Upper|Uppercase|UseErrorLevel|Vis|VisFirst|Visible|VScroll|Wait|WaitClose|WantCtrlA|WantF2|WantReturn|While|Wrap|Xdigit|xm|xp|xs|Yes|ym|yp|ys)\b/i,function:/[^(); \t,\n+*\-=?>:\\\/<&%\[\]]+(?=\()/,punctuation:/[{}[\]():,]/}}},65235:function(ze){"use strict";ze.exports=Ee,Ee.displayName="autoit",Ee.aliases=[];function Ee(ue){ue.languages.autoit={comment:[/;.*/,{pattern:/(^[\t ]*)#(?:comments-start|cs)[\s\S]*?^[ \t]*#(?:ce|comments-end)/m,lookbehind:!0}],url:{pattern:/(^[\t ]*#include\s+)(?:<[^\r\n>]+>|"[^\r\n"]+")/m,lookbehind:!0},string:{pattern:/(["'])(?:\1\1|(?!\1)[^\r\n])*\1/,greedy:!0,inside:{variable:/([%$@])\w+\1/}},directive:{pattern:/(^[\t ]*)#[\w-]+/m,lookbehind:!0,alias:"keyword"},function:/\b\w+(?=\()/,variable:/[$@]\w+/,keyword:/\b(?:Case|Const|Continue(?:Case|Loop)|Default|Dim|Do|Else(?:If)?|End(?:Func|If|Select|Switch|With)|Enum|Exit(?:Loop)?|For|Func|Global|If|In|Local|Next|Null|ReDim|Select|Static|Step|Switch|Then|To|Until|Volatile|WEnd|While|With)\b/i,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,boolean:/\b(?:False|True)\b/i,operator:/<[=>]?|[-+*\/=&>]=?|[?^]|\b(?:And|Not|Or)\b/i,punctuation:/[\[\]().,:]/}}},52406:function(ze){"use strict";ze.exports=Ee,Ee.displayName="avisynth",Ee.aliases=["avs"];function Ee(ue){(function(ce){function Pe(Qe,Ye){return Qe.replace(/<<(\d+)>>/g,function(yt,ot){return Ye[+ot]})}function Re(Qe,Ye,yt){return RegExp(Pe(Qe,Ye),yt||"")}var Me=/bool|clip|float|int|string|val/.source,We=[/is(?:bool|clip|float|int|string)|defined|(?:(?:internal)?function|var)?exists?/.source,/apply|assert|default|eval|import|nop|select|undefined/.source,/opt_(?:allowfloataudio|avipadscanlines|dwchannelmask|enable_(?:b64a|planartopackedrgb|v210|y3_10_10|y3_10_16)|usewaveextensible|vdubplanarhack)|set(?:cachemode|maxcpu|memorymax|planarlegacyalignment|workingdir)/.source,/hex(?:value)?|value/.source,/abs|ceil|continued(?:denominator|numerator)?|exp|floor|fmod|frac|log(?:10)?|max|min|muldiv|pi|pow|rand|round|sign|spline|sqrt/.source,/a?sinh?|a?cosh?|a?tan[2h]?/.source,/(?:bit(?:and|not|x?or|[lr]?shift[aslu]?|sh[lr]|sa[lr]|[lr]rotatel?|ro[rl]|te?st|set(?:count)?|cl(?:ea)?r|ch(?:an)?ge?))/.source,/average(?:[bgr]|chroma[uv]|luma)|(?:[rgb]|chroma[uv]|luma|rgb|[yuv](?=difference(?:fromprevious|tonext)))difference(?:fromprevious|tonext)?|[yuvrgb]plane(?:median|min|max|minmaxdifference)/.source,/getprocessinfo|logmsg|script(?:dir(?:utf8)?|file(?:utf8)?|name(?:utf8)?)|setlogparams/.source,/chr|(?:fill|find|left|mid|replace|rev|right)str|format|[lu]case|ord|str(?:cmpi?|fromutf8|len|toutf8)|time|trim(?:all|left|right)/.source,/isversionorgreater|version(?:number|string)/.source,/buildpixeltype|colorspacenametopixeltype/.source,/addautoloaddir|on(?:cpu|cuda)|prefetch|setfiltermtmode/.source].join("|"),Te=[/has(?:audio|video)/.source,/height|width/.source,/frame(?:count|rate)|framerate(?:denominator|numerator)/.source,/getparity|is(?:field|frame)based/.source,/bitspercomponent|componentsize|hasalpha|is(?:planar(?:rgba?)?|interleaved|rgb(?:24|32|48|64)?|y(?:8|u(?:va?|y2))?|yv(?:12|16|24|411)|420|422|444|packedrgb)|numcomponents|pixeltype/.source,/audio(?:bits|channels|duration|length(?:[fs]|hi|lo)?|rate)|isaudio(?:float|int)/.source].join("|"),Ge=[/avi(?:file)?source|directshowsource|image(?:reader|source|sourceanim)|opendmlsource|segmented(?:avisource|directshowsource)|wavsource/.source,/coloryuv|convertbacktoyuy2|convertto(?:RGB(?:24|32|48|64)|(?:planar)?RGBA?|Y8?|YV(?:12|16|24|411)|YUVA?(?:411|420|422|444)|YUY2)|fixluminance|gr[ae]yscale|invert|levels|limiter|mergea?rgb|merge(?:chroma|luma)|rgbadjust|show(?:alpha|blue|green|red)|swapuv|tweak|[uv]toy8?|ytouv/.source,/(?:colorkey|reset)mask|layer|mask(?:hs)?|merge|overlay|subtract/.source,/addborders|(?:bicubic|bilinear|blackman|gauss|lanczos4|lanczos|point|sinc|spline(?:16|36|64))resize|crop(?:bottom)?|flip(?:horizontal|vertical)|(?:horizontal|vertical)?reduceby2|letterbox|skewrows|turn(?:180|left|right)/.source,/blur|fixbrokenchromaupsampling|generalconvolution|(?:spatial|temporal)soften|sharpen/.source,/trim|(?:un)?alignedsplice|(?:assume|assumescaled|change|convert)FPS|(?:delete|duplicate)frame|dissolve|fade(?:in|io|out)[02]?|freezeframe|interleave|loop|reverse|select(?:even|odd|(?:range)?every)/.source,/assume[bt]ff|assume(?:field|frame)based|bob|complementparity|doubleweave|peculiarblend|pulldown|separate(?:columns|fields|rows)|swapfields|weave(?:columns|rows)?/.source,/amplify(?:db)?|assumesamplerate|audiodub(?:ex)?|audiotrim|convertaudioto(?:(?:8|16|24|32)bit|float)|converttomono|delayaudio|ensurevbrmp3sync|get(?:left|right)?channel|kill(?:audio|video)|mergechannels|mixaudio|monotostereo|normalize|resampleaudio|ssrc|supereq|timestretch/.source,/animate|applyrange|conditional(?:filter|reader|select)|frameevaluate|scriptclip|tcp(?:server|source)|writefile(?:end|if|start)?/.source,/imagewriter/.source,/blackness|blankclip|colorbars(?:hd)?|compare|dumpfiltergraph|echo|histogram|info|messageclip|preroll|setgraphanalysis|show(?:framenumber|smpte|time)|showfiveversions|stack(?:horizontal|vertical)|subtitle|tone|version/.source].join("|"),st=[We,Te,Ge].join("|");ce.languages.avisynth={comment:[{pattern:/(^|[^\\])\[\*(?:[^\[*]|\[(?!\*)|\*(?!\])|\[\*(?:[^\[*]|\[(?!\*)|\*(?!\]))*\*\])*\*\]/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0,greedy:!0}],argument:{pattern:Re(/\b(?:<<0>>)\s+("?)\w+\1/.source,[Me],"i"),inside:{keyword:/^\w+/}},"argument-label":{pattern:/([,(][\s\\]*)\w+\s*=(?!=)/,lookbehind:!0,inside:{"argument-name":{pattern:/^\w+/,alias:"punctuation"},punctuation:/=$/}},string:[{pattern:/"""[\s\S]*?"""/,greedy:!0},{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0,inside:{constant:{pattern:/\b(?:DEFAULT_MT_MODE|(?:MAINSCRIPT|PROGRAM|SCRIPT)DIR|(?:MACHINE|USER)_(?:CLASSIC|PLUS)_PLUGINS)\b/}}}],variable:/\b(?:last)\b/i,boolean:/\b(?:false|no|true|yes)\b/i,keyword:/\b(?:catch|else|for|function|global|if|return|try|while|__END__)\b/i,constant:/\bMT_(?:MULTI_INSTANCE|NICE_FILTER|SERIALIZED|SPECIAL_MT)\b/,"builtin-function":{pattern:Re(/\b(?:<<0>>)\b/.source,[st],"i"),alias:"function"},"type-cast":{pattern:Re(/\b(?:<<0>>)(?=\s*\()/.source,[Me],"i"),alias:"keyword"},function:{pattern:/\b[a-z_]\w*(?=\s*\()|(\.)[a-z_]\w*\b/i,lookbehind:!0},"line-continuation":{pattern:/(^[ \t]*)\\|\\(?=[ \t]*$)/m,lookbehind:!0,alias:"punctuation"},number:/\B\$(?:[\da-f]{6}|[\da-f]{8})\b|(?:(?:\b|\B-)\d+(?:\.\d*)?\b|\B\.\d+\b)/i,operator:/\+\+?|[!=<>]=?|&&|\|\||[?:*/%-]/,punctuation:/[{}\[\]();,.]/},ce.languages.avs=ce.languages.avisynth})(ue)}},79571:function(ze){"use strict";ze.exports=Ee,Ee.displayName="avroIdl",Ee.aliases=[];function Ee(ue){ue.languages["avro-idl"]={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/(^|[^\\])"(?:[^\r\n"\\]|\\.)*"/,lookbehind:!0,greedy:!0},annotation:{pattern:/@(?:[$\w.-]|`[^\r\n`]+`)+/,greedy:!0,alias:"function"},"function-identifier":{pattern:/`[^\r\n`]+`(?=\s*\()/,greedy:!0,alias:"function"},identifier:{pattern:/`[^\r\n`]+`/,greedy:!0},"class-name":{pattern:/(\b(?:enum|error|protocol|record|throws)\b\s+)[$\w]+/,lookbehind:!0,greedy:!0},keyword:/\b(?:array|boolean|bytes|date|decimal|double|enum|error|false|fixed|float|idl|import|int|local_timestamp_ms|long|map|null|oneway|protocol|record|schema|string|throws|time_ms|timestamp_ms|true|union|uuid|void)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:[{pattern:/(^|[^\w.])-?(?:(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|0x(?:[a-f0-9]+(?:\.[a-f0-9]*)?|\.[a-f0-9]+)(?:p[+-]?\d+)?)[dfl]?(?![\w.])/i,lookbehind:!0},/-?\b(?:Infinity|NaN)\b/],operator:/=/,punctuation:/[()\[\]{}<>.:,;-]/},ue.languages.avdl=ue.languages["avro-idl"]}},3058:function(ze){"use strict";ze.exports=Ee,Ee.displayName="bash",Ee.aliases=["shell"];function Ee(ue){(function(ce){var Pe="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",Re={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},Me={bash:Re,environment:{pattern:RegExp("\\$"+Pe),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+Pe),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};ce.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+Pe),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:Me},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:Re}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:Me},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:Me.entity}}],environment:{pattern:RegExp("\\$?"+Pe),alias:"constant"},variable:Me.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},Re.inside=ce.languages.bash;for(var We=["comment","function-name","for-or-select","assign-left","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],Te=Me.variable[1].inside,Ge=0;Ge<We.length;Ge++)Te[We[Ge]]=ce.languages.bash[We[Ge]];ce.languages.shell=ce.languages.bash})(ue)}},51422:function(ze){"use strict";ze.exports=Ee,Ee.displayName="basic",Ee.aliases=[];function Ee(ue){ue.languages.basic={comment:{pattern:/(?:!|REM\b).+/i,inside:{keyword:/^REM/i}},string:{pattern:/"(?:""|[!#$%&'()*,\/:;<=>?^\w +\-.])*"/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:AS|BEEP|BLOAD|BSAVE|CALL(?: ABSOLUTE)?|CASE|CHAIN|CHDIR|CLEAR|CLOSE|CLS|COM|COMMON|CONST|DATA|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DIM|DO|DOUBLE|ELSE|ELSEIF|END|ENVIRON|ERASE|ERROR|EXIT|FIELD|FILES|FOR|FUNCTION|GET|GOSUB|GOTO|IF|INPUT|INTEGER|IOCTL|KEY|KILL|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|MKDIR|NAME|NEXT|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPTION BASE|OUT|POKE|PUT|READ|REDIM|REM|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SELECT CASE|SHARED|SHELL|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|SUB|SWAP|SYSTEM|THEN|TIMER|TO|TROFF|TRON|TYPE|UNLOCK|UNTIL|USING|VIEW PRINT|WAIT|WEND|WHILE|WRITE)(?:\$|\b)/i,function:/\b(?:ABS|ACCESS|ACOS|ANGLE|AREA|ARITHMETIC|ARRAY|ASIN|ASK|AT|ATN|BASE|BEGIN|BREAK|CAUSE|CEIL|CHR|CLIP|COLLATE|COLOR|CON|COS|COSH|COT|CSC|DATE|DATUM|DEBUG|DECIMAL|DEF|DEG|DEGREES|DELETE|DET|DEVICE|DISPLAY|DOT|ELAPSED|EPS|ERASABLE|EXLINE|EXP|EXTERNAL|EXTYPE|FILETYPE|FIXED|FP|GO|GRAPH|HANDLER|IDN|IMAGE|IN|INT|INTERNAL|IP|IS|KEYED|LBOUND|LCASE|LEFT|LEN|LENGTH|LET|LINE|LINES|LOG|LOG10|LOG2|LTRIM|MARGIN|MAT|MAX|MAXNUM|MID|MIN|MISSING|MOD|NATIVE|NUL|NUMERIC|OF|OPTION|ORD|ORGANIZATION|OUTIN|OUTPUT|PI|POINT|POINTER|POINTS|POS|PRINT|PROGRAM|PROMPT|RAD|RADIANS|RANDOMIZE|RECORD|RECSIZE|RECTYPE|RELATIVE|REMAINDER|REPEAT|REST|RETRY|REWRITE|RIGHT|RND|ROUND|RTRIM|SAME|SEC|SELECT|SEQUENTIAL|SET|SETTER|SGN|SIN|SINH|SIZE|SKIP|SQR|STANDARD|STATUS|STR|STREAM|STYLE|TAB|TAN|TANH|TEMPLATE|TEXT|THERE|TIME|TIMEOUT|TRACE|TRANSFORM|TRUNCATE|UBOUND|UCASE|USE|VAL|VARIABLE|VIEWPORT|WHEN|WINDOW|WITH|ZER|ZONEWIDTH)(?:\$|\b)/i,operator:/<[=>]?|>=?|[+\-*\/^=&]|\b(?:AND|EQV|IMP|NOT|OR|XOR)\b/i,punctuation:/[,;:()]/}}},1618:function(ze){"use strict";ze.exports=Ee,Ee.displayName="batch",Ee.aliases=[];function Ee(ue){(function(ce){var Pe=/%%?[~:\w]+%?|!\S+!/,Re={pattern:/\/[a-z?]+(?=[ :]|$):?|-[a-z]\b|--[a-z-]+\b/im,alias:"attr-name",inside:{punctuation:/:/}},Me=/"(?:[\\"]"|[^"])*"(?!")/,We=/(?:\b|-)\d+\b/;ce.languages.batch={comment:[/^::.*/m,{pattern:/((?:^|[&(])[ \t]*)rem\b(?:[^^&)\r\n]|\^(?:\r\n|[\s\S]))*/im,lookbehind:!0}],label:{pattern:/^:.*/m,alias:"property"},command:[{pattern:/((?:^|[&(])[ \t]*)for(?: \/[a-z?](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* \S+ in \([^)]+\) do/im,lookbehind:!0,inside:{keyword:/\b(?:do|in)\b|^for\b/i,string:Me,parameter:Re,variable:Pe,number:We,punctuation:/[()',]/}},{pattern:/((?:^|[&(])[ \t]*)if(?: \/[a-z?](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* (?:not )?(?:cmdextversion \d+|defined \w+|errorlevel \d+|exist \S+|(?:"[^"]*"|(?!")(?:(?!==)\S)+)?(?:==| (?:equ|geq|gtr|leq|lss|neq) )(?:"[^"]*"|[^\s"]\S*))/im,lookbehind:!0,inside:{keyword:/\b(?:cmdextversion|defined|errorlevel|exist|not)\b|^if\b/i,string:Me,parameter:Re,variable:Pe,number:We,operator:/\^|==|\b(?:equ|geq|gtr|leq|lss|neq)\b/i}},{pattern:/((?:^|[&()])[ \t]*)else\b/im,lookbehind:!0,inside:{keyword:/^else\b/i}},{pattern:/((?:^|[&(])[ \t]*)set(?: \/[a-z](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* (?:[^^&)\r\n]|\^(?:\r\n|[\s\S]))*/im,lookbehind:!0,inside:{keyword:/^set\b/i,string:Me,parameter:Re,variable:[Pe,/\w+(?=(?:[*\/%+\-&^|]|<<|>>)?=)/],number:We,operator:/[*\/%+\-&^|]=?|<<=?|>>=?|[!~_=]/,punctuation:/[()',]/}},{pattern:/((?:^|[&(])[ \t]*@?)\w+\b(?:"(?:[\\"]"|[^"])*"(?!")|[^"^&)\r\n]|\^(?:\r\n|[\s\S]))*/m,lookbehind:!0,inside:{keyword:/^\w+\b/,string:Me,parameter:Re,label:{pattern:/(^\s*):\S+/m,lookbehind:!0,alias:"property"},variable:Pe,number:We,operator:/\^/}}],operator:/[&@]/,punctuation:/[()']/}})(ue)}},2505:function(ze){"use strict";ze.exports=Ee,Ee.displayName="bbcode",Ee.aliases=["shortcode"];function Ee(ue){ue.languages.bbcode={tag:{pattern:/\[\/?[^\s=\]]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+))?(?:\s+[^\s=\]]+\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+))*\s*\]/,inside:{tag:{pattern:/^\[\/?[^\s=\]]+/,inside:{punctuation:/^\[\/?/}},"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+)/,inside:{punctuation:[/^=/,{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\]/,"attr-name":/[^\s=\]]+/}}},ue.languages.shortcode=ue.languages.bbcode}},51274:function(ze){"use strict";ze.exports=Ee,Ee.displayName="bicep",Ee.aliases=[];function Ee(ue){ue.languages.bicep={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],property:[{pattern:/([\r\n][ \t]*)[a-z_]\w*(?=[ \t]*:)/i,lookbehind:!0},{pattern:/([\r\n][ \t]*)'(?:\\.|\$(?!\{)|[^'\\\r\n$])*'(?=[ \t]*:)/,lookbehind:!0,greedy:!0}],string:[{pattern:/'''[^'][\s\S]*?'''/,greedy:!0},{pattern:/(^|[^\\'])'(?:\\.|\$(?!\{)|[^'\\\r\n$])*'/,lookbehind:!0,greedy:!0}],"interpolated-string":{pattern:/(^|[^\\'])'(?:\\.|\$(?:(?!\{)|\{[^{}\r\n]*\})|[^'\\\r\n$])*'/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/\$\{[^{}\r\n]*\}/,inside:{expression:{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0},punctuation:/^\$\{|\}$/}},string:/[\s\S]+/}},datatype:{pattern:/(\b(?:output|param)\b[ \t]+\w+[ \t]+)\w+\b/,lookbehind:!0,alias:"class-name"},boolean:/\b(?:false|true)\b/,keyword:/\b(?:existing|for|if|in|module|null|output|param|resource|targetScope|var)\b/,decorator:/@\w+\b/,function:/\b[a-z_]\w*(?=[ \t]*\()/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/,punctuation:/[{}[\];(),.:]/},ue.languages.bicep["interpolated-string"].inside.interpolation.inside.expression.inside=ue.languages.bicep}},23796:function(ze){"use strict";ze.exports=Ee,Ee.displayName="birb",Ee.aliases=[];function Ee(ue){ue.languages.birb=ue.languages.extend("clike",{string:{pattern:/r?("|')(?:\\.|(?!\1)[^\\])*\1/,greedy:!0},"class-name":[/\b[A-Z](?:[\d_]*[a-zA-Z]\w*)?\b/,/\b(?:[A-Z]\w*|(?!(?:var|void)\b)[a-z]\w*)(?=\s+\w+\s*[;,=()])/],keyword:/\b(?:assert|break|case|class|const|default|else|enum|final|follows|for|grab|if|nest|new|next|noSeeb|return|static|switch|throw|var|void|while)\b/,operator:/\+\+|--|&&|\|\||<<=?|>>=?|~(?:\/=?)?|[+\-*\/%&^|=!<>]=?|\?|:/,variable:/\b[a-z_]\w*\b/}),ue.languages.insertBefore("birb","function",{metadata:{pattern:/<\w+>/,greedy:!0,alias:"symbol"}})}},13979:function(ze,Ee,ue){"use strict";var ce=ue(79440);ze.exports=Pe,Pe.displayName="bison",Pe.aliases=[];function Pe(Re){Re.register(ce),Re.languages.bison=Re.languages.extend("c",{}),Re.languages.insertBefore("bison","comment",{bison:{pattern:/^(?:[^%]|%(?!%))*%%[\s\S]*?%%/,inside:{c:{pattern:/%\{[\s\S]*?%\}|\{(?:\{[^}]*\}|[^{}])*\}/,inside:{delimiter:{pattern:/^%?\{|%?\}$/,alias:"punctuation"},"bison-variable":{pattern:/[$@](?:<[^\s>]+>)?[\w$]+/,alias:"variable",inside:{punctuation:/<|>/}},rest:Re.languages.c}},comment:Re.languages.c.comment,string:Re.languages.c.string,property:/\S+(?=:)/,keyword:/%\w+/,number:{pattern:/(^|[^@])\b(?:0x[\da-f]+|\d+)/i,lookbehind:!0},punctuation:/%[%?]|[|:;\[\]<>]/}}})}},87994:function(ze){"use strict";ze.exports=Ee,Ee.displayName="bnf",Ee.aliases=["rbnf"];function Ee(ue){ue.languages.bnf={string:{pattern:/"[^\r\n"]*"|'[^\r\n']*'/},definition:{pattern:/<[^<>\r\n\t]+>(?=\s*::=)/,alias:["rule","keyword"],inside:{punctuation:/^<|>$/}},rule:{pattern:/<[^<>\r\n\t]+>/,inside:{punctuation:/^<|>$/}},operator:/::=|[|()[\]{}*+?]|\.{3}/},ue.languages.rbnf=ue.languages.bnf}},47035:function(ze){"use strict";ze.exports=Ee,Ee.displayName="brainfuck",Ee.aliases=[];function Ee(ue){ue.languages.brainfuck={pointer:{pattern:/<|>/,alias:"keyword"},increment:{pattern:/\+/,alias:"inserted"},decrement:{pattern:/-/,alias:"deleted"},branching:{pattern:/\[|\]/,alias:"important"},operator:/[.,]/,comment:/\S+/}}},36142:function(ze){"use strict";ze.exports=Ee,Ee.displayName="brightscript",Ee.aliases=[];function Ee(ue){ue.languages.brightscript={comment:/(?:\brem|').*/i,"directive-statement":{pattern:/(^[\t ]*)#(?:const|else(?:[\t ]+if)?|end[\t ]+if|error|if).*/im,lookbehind:!0,alias:"property",inside:{"error-message":{pattern:/(^#error).+/,lookbehind:!0},directive:{pattern:/^#(?:const|else(?:[\t ]+if)?|end[\t ]+if|error|if)/,alias:"keyword"},expression:{pattern:/[\s\S]+/,inside:null}}},property:{pattern:/([\r\n{,][\t ]*)(?:(?!\d)\w+|"(?:[^"\r\n]|"")*"(?!"))(?=[ \t]*:)/,lookbehind:!0,greedy:!0},string:{pattern:/"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},"class-name":{pattern:/(\bAs[\t ]+)\w+/i,lookbehind:!0},keyword:/\b(?:As|Dim|Each|Else|Elseif|End|Exit|For|Function|Goto|If|In|Print|Return|Step|Stop|Sub|Then|To|While)\b/i,boolean:/\b(?:false|true)\b/i,function:/\b(?!\d)\w+(?=[\t ]*\()/,number:/(?:\b\d+(?:\.\d+)?(?:[ed][+-]\d+)?|&h[a-f\d]+)\b[%&!#]?/i,operator:/--|\+\+|>>=?|<<=?|<>|[-+*/\\<>]=?|[:^=?]|\b(?:and|mod|not|or)\b/i,punctuation:/[.,;()[\]{}]/,constant:/\b(?:LINE_NUM)\b/i},ue.languages.brightscript["directive-statement"].inside.expression.inside=ue.languages.brightscript}},85290:function(ze){"use strict";ze.exports=Ee,Ee.displayName="bro",Ee.aliases=[];function Ee(ue){ue.languages.bro={comment:{pattern:/(^|[^\\$])#.*/,lookbehind:!0,inside:{italic:/\b(?:FIXME|TODO|XXX)\b/}},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},boolean:/\b[TF]\b/,function:{pattern:/(\b(?:event|function|hook)[ \t]+)\w+(?:::\w+)?/,lookbehind:!0},builtin:/(?:@(?:load(?:-(?:plugin|sigs))?|unload|prefixes|ifn?def|else|(?:end)?if|DIR|FILENAME))|(?:&?(?:add_func|create_expire|default|delete_func|encrypt|error_handler|expire_func|group|log|mergeable|optional|persistent|priority|raw_output|read_expire|redef|rotate_interval|rotate_size|synchronized|type_column|write_expire))/,constant:{pattern:/(\bconst[ \t]+)\w+/i,lookbehind:!0},keyword:/\b(?:add|addr|alarm|any|bool|break|const|continue|count|delete|double|else|enum|event|export|file|for|function|global|hook|if|in|int|interval|local|module|next|of|opaque|pattern|port|print|record|return|schedule|set|string|subnet|table|time|timeout|using|vector|when)\b/,operator:/--?|\+\+?|!=?=?|<=?|>=?|==?=?|&&|\|\|?|\?|\*|\/|~|\^|%/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,punctuation:/[{}[\];(),.:]/}}},7407:function(ze){"use strict";ze.exports=Ee,Ee.displayName="bsl",Ee.aliases=[];function Ee(ue){ue.languages.bsl={comment:/\/\/.*/,string:[{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},{pattern:/'(?:[^'\r\n\\]|\\.)*'/}],keyword:[{pattern:/(^|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:пока|для|новый|прервать|попытка|исключение|вызватьисключение|иначе|конецпопытки|неопределено|функция|перем|возврат|конецфункции|если|иначеесли|процедура|конецпроцедуры|тогда|знач|экспорт|конецесли|из|каждого|истина|ложь|по|цикл|конеццикла|выполнить)(?![\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])/i,lookbehind:!0},{pattern:/\b(?:break|do|each|else|elseif|enddo|endfunction|endif|endprocedure|endtry|except|execute|export|false|for|function|if|in|new|null|procedure|raise|return|then|to|true|try|undefined|val|var|while)\b/i}],number:{pattern:/(^(?=\d)|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:\d+(?:\.\d*)?|\.\d+)(?:E[+-]?\d+)?/i,lookbehind:!0},operator:[/[<>+\-*/]=?|[%=]/,{pattern:/(^|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:и|или|не)(?![\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])/i,lookbehind:!0},{pattern:/\b(?:and|not|or)\b/i}],punctuation:/\(\.|\.\)|[()\[\]:;,.]/,directive:[{pattern:/^([ \t]*)&.*/m,lookbehind:!0,greedy:!0,alias:"important"},{pattern:/^([ \t]*)#.*/gm,lookbehind:!0,greedy:!0,alias:"important"}]},ue.languages.oscript=ue.languages.bsl}},79440:function(ze){"use strict";ze.exports=Ee,Ee.displayName="c",Ee.aliases=[];function Ee(ue){ue.languages.c=ue.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),ue.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),ue.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},ue.languages.c.string],char:ue.languages.c.char,comment:ue.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:ue.languages.c}}}}),ue.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete ue.languages.c.boolean}},7110:function(ze){"use strict";ze.exports=Ee,Ee.displayName="cfscript",Ee.aliases=[];function Ee(ue){ue.languages.cfscript=ue.languages.extend("clike",{comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,inside:{annotation:{pattern:/(?:^|[^.])@[\w\.]+/,alias:"punctuation"}}},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],keyword:/\b(?:abstract|break|catch|component|continue|default|do|else|extends|final|finally|for|function|if|in|include|package|private|property|public|remote|required|rethrow|return|static|switch|throw|try|var|while|xml)\b(?!\s*=)/,operator:[/\+\+|--|&&|\|\||::|=>|[!=]==|<=?|>=?|[-+*/%&|^!=<>]=?|\?(?:\.|:)?|[?:]/,/\b(?:and|contains|eq|equal|eqv|gt|gte|imp|is|lt|lte|mod|not|or|xor)\b/],scope:{pattern:/\b(?:application|arguments|cgi|client|cookie|local|session|super|this|variables)\b/,alias:"global"},type:{pattern:/\b(?:any|array|binary|boolean|date|guid|numeric|query|string|struct|uuid|void|xml)\b/,alias:"builtin"}}),ue.languages.insertBefore("cfscript","keyword",{"function-variable":{pattern:/[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"}}),delete ue.languages.cfscript["class-name"],ue.languages.cfc=ue.languages.cfscript}},73435:function(ze,Ee,ue){"use strict";var ce=ue(87071);ze.exports=Pe,Pe.displayName="chaiscript",Pe.aliases=[];function Pe(Re){Re.register(ce),Re.languages.chaiscript=Re.languages.extend("clike",{string:{pattern:/(^|[^\\])'(?:[^'\\]|\\[\s\S])*'/,lookbehind:!0,greedy:!0},"class-name":[{pattern:/(\bclass\s+)\w+/,lookbehind:!0},{pattern:/(\b(?:attr|def)\s+)\w+(?=\s*::)/,lookbehind:!0}],keyword:/\b(?:attr|auto|break|case|catch|class|continue|def|default|else|finally|for|fun|global|if|return|switch|this|try|var|while)\b/,number:[Re.languages.cpp.number,/\b(?:Infinity|NaN)\b/],operator:/>>=?|<<=?|\|\||&&|:[:=]?|--|\+\+|[=!<>+\-*/%|&^]=?|[?~]|`[^`\r\n]{1,4}`/}),Re.languages.insertBefore("chaiscript","operator",{"parameter-type":{pattern:/([,(]\s*)\w+(?=\s+\w)/,lookbehind:!0,alias:"class-name"}}),Re.languages.insertBefore("chaiscript","string",{"string-interpolation":{pattern:/(^|[^\\])"(?:[^"$\\]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\}/,lookbehind:!0,inside:{"interpolation-expression":{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:Re.languages.chaiscript},"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"}}},string:/[\s\S]+/}}})}},91372:function(ze){"use strict";ze.exports=Ee,Ee.displayName="cil",Ee.aliases=[];function Ee(ue){ue.languages.cil={comment:/\/\/.*/,string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},directive:{pattern:/(^|\W)\.[a-z]+(?=\s)/,lookbehind:!0,alias:"class-name"},variable:/\[[\w\.]+\]/,keyword:/\b(?:abstract|ansi|assembly|auto|autochar|beforefieldinit|bool|bstr|byvalstr|catch|char|cil|class|currency|date|decimal|default|enum|error|explicit|extends|extern|famandassem|family|famorassem|final(?:ly)?|float32|float64|hidebysig|u?int(?:8|16|32|64)?|iant|idispatch|implements|import|initonly|instance|interface|iunknown|literal|lpstr|lpstruct|lptstr|lpwstr|managed|method|native(?:Type)?|nested|newslot|object(?:ref)?|pinvokeimpl|private|privatescope|public|reqsecobj|rtspecialname|runtime|sealed|sequential|serializable|specialname|static|string|struct|syschar|tbstr|unicode|unmanagedexp|unsigned|value(?:type)?|variant|virtual|void)\b/,function:/\b(?:(?:constrained|no|readonly|tail|unaligned|volatile)\.)?(?:conv\.(?:[iu][1248]?|ovf\.[iu][1248]?(?:\.un)?|r\.un|r4|r8)|ldc\.(?:i4(?:\.\d+|\.[mM]1|\.s)?|i8|r4|r8)|ldelem(?:\.[iu][1248]?|\.r[48]|\.ref|a)?|ldind\.(?:[iu][1248]?|r[48]|ref)|stelem\.?(?:i[1248]?|r[48]|ref)?|stind\.(?:i[1248]?|r[48]|ref)?|end(?:fault|filter|finally)|ldarg(?:\.[0-3s]|a(?:\.s)?)?|ldloc(?:\.\d+|\.s)?|sub(?:\.ovf(?:\.un)?)?|mul(?:\.ovf(?:\.un)?)?|add(?:\.ovf(?:\.un)?)?|stloc(?:\.[0-3s])?|refany(?:type|val)|blt(?:\.un)?(?:\.s)?|ble(?:\.un)?(?:\.s)?|bgt(?:\.un)?(?:\.s)?|bge(?:\.un)?(?:\.s)?|unbox(?:\.any)?|init(?:blk|obj)|call(?:i|virt)?|brfalse(?:\.s)?|bne\.un(?:\.s)?|ldloca(?:\.s)?|brzero(?:\.s)?|brtrue(?:\.s)?|brnull(?:\.s)?|brinst(?:\.s)?|starg(?:\.s)?|leave(?:\.s)?|shr(?:\.un)?|rem(?:\.un)?|div(?:\.un)?|clt(?:\.un)?|alignment|castclass|ldvirtftn|beq(?:\.s)?|ckfinite|ldsflda|ldtoken|localloc|mkrefany|rethrow|cgt\.un|arglist|switch|stsfld|sizeof|newobj|newarr|ldsfld|ldnull|ldflda|isinst|throw|stobj|stfld|ldstr|ldobj|ldlen|ldftn|ldfld|cpobj|cpblk|break|br\.s|xor|shl|ret|pop|not|nop|neg|jmp|dup|cgt|ceq|box|and|or|br)\b/,boolean:/\b(?:false|true)\b/,number:/\b-?(?:0x[0-9a-f]+|\d+)(?:\.[0-9a-f]+)?\b/i,punctuation:/[{}[\];(),:=]|IL_[0-9A-Za-z]+/}}},9720:function(ze){"use strict";ze.exports=Ee,Ee.displayName="clike",Ee.aliases=[];function Ee(ue){ue.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/}}},63663:function(ze){"use strict";ze.exports=Ee,Ee.displayName="clojure",Ee.aliases=[];function Ee(ue){ue.languages.clojure={comment:{pattern:/;.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},char:/\\\w+/,symbol:{pattern:/(^|[\s()\[\]{},])::?[\w*+!?'<>=/.-]+/,lookbehind:!0},keyword:{pattern:/(\()(?:-|->|->>|\.|\.\.|\*|\/|\+|<|<=|=|==|>|>=|accessor|agent|agent-errors|aget|alength|all-ns|alter|and|append-child|apply|array-map|aset|aset-boolean|aset-byte|aset-char|aset-double|aset-float|aset-int|aset-long|aset-short|assert|assoc|await|await-for|bean|binding|bit-and|bit-not|bit-or|bit-shift-left|bit-shift-right|bit-xor|boolean|branch\?|butlast|byte|cast|char|children|class|clear-agent-errors|comment|commute|comp|comparator|complement|concat|cond|conj|cons|constantly|construct-proxy|contains\?|count|create-ns|create-struct|cycle|dec|declare|def|def-|definline|definterface|defmacro|defmethod|defmulti|defn|defn-|defonce|defproject|defprotocol|defrecord|defstruct|deftype|deref|difference|disj|dissoc|distinct|do|doall|doc|dorun|doseq|dosync|dotimes|doto|double|down|drop|drop-while|edit|end\?|ensure|eval|every\?|false\?|ffirst|file-seq|filter|find|find-doc|find-ns|find-var|first|float|flush|fn|fnseq|for|frest|gensym|get|get-proxy-class|hash-map|hash-set|identical\?|identity|if|if-let|if-not|import|in-ns|inc|index|insert-child|insert-left|insert-right|inspect-table|inspect-tree|instance\?|int|interleave|intersection|into|into-array|iterate|join|key|keys|keyword|keyword\?|last|lazy-cat|lazy-cons|left|lefts|let|line-seq|list|list\*|load|load-file|locking|long|loop|macroexpand|macroexpand-1|make-array|make-node|map|map-invert|map\?|mapcat|max|max-key|memfn|merge|merge-with|meta|min|min-key|monitor-enter|name|namespace|neg\?|new|newline|next|nil\?|node|not|not-any\?|not-every\?|not=|ns|ns-imports|ns-interns|ns-map|ns-name|ns-publics|ns-refers|ns-resolve|ns-unmap|nth|nthrest|or|parse|partial|path|peek|pop|pos\?|pr|pr-str|print|print-str|println|println-str|prn|prn-str|project|proxy|proxy-mappings|quot|quote|rand|rand-int|range|re-find|re-groups|re-matcher|re-matches|re-pattern|re-seq|read|read-line|recur|reduce|ref|ref-set|refer|rem|remove|remove-method|remove-ns|rename|rename-keys|repeat|replace|replicate|resolve|rest|resultset-seq|reverse|rfirst|right|rights|root|rrest|rseq|second|select|select-keys|send|send-off|seq|seq-zip|seq\?|set|set!|short|slurp|some|sort|sort-by|sorted-map|sorted-map-by|sorted-set|special-symbol\?|split-at|split-with|str|string\?|struct|struct-map|subs|subvec|symbol|symbol\?|sync|take|take-nth|take-while|test|throw|time|to-array|to-array-2d|tree-seq|true\?|try|union|up|update-proxy|val|vals|var|var-get|var-set|var\?|vector|vector-zip|vector\?|when|when-first|when-let|when-not|with-local-vars|with-meta|with-open|with-out-str|xml-seq|xml-zip|zero\?|zipmap|zipper)(?=[\s)]|$)/,lookbehind:!0},boolean:/\b(?:false|nil|true)\b/,number:{pattern:/(^|[^\w$@])(?:\d+(?:[/.]\d+)?(?:e[+-]?\d+)?|0x[a-f0-9]+|[1-9]\d?r[a-z0-9]+)[lmn]?(?![\w$@])/i,lookbehind:!0},function:{pattern:/((?:^|[^'])\()[\w*+!?'<>=/.-]+(?=[\s)]|$)/,lookbehind:!0},operator:/[#@^`~]/,punctuation:/[{}\[\](),]/}}},92987:function(ze){"use strict";ze.exports=Ee,Ee.displayName="cmake",Ee.aliases=[];function Ee(ue){ue.languages.cmake={comment:/#.*/,string:{pattern:/"(?:[^\\"]|\\.)*"/,greedy:!0,inside:{interpolation:{pattern:/\$\{(?:[^{}$]|\$\{[^{}$]*\})*\}/,inside:{punctuation:/\$\{|\}/,variable:/\w+/}}}},variable:/\b(?:CMAKE_\w+|\w+_(?:(?:BINARY|SOURCE)_DIR|DESCRIPTION|HOMEPAGE_URL|ROOT|VERSION(?:_MAJOR|_MINOR|_PATCH|_TWEAK)?)|(?:ANDROID|APPLE|BORLAND|BUILD_SHARED_LIBS|CACHE|CPACK_(?:ABSOLUTE_DESTINATION_FILES|COMPONENT_INCLUDE_TOPLEVEL_DIRECTORY|ERROR_ON_ABSOLUTE_INSTALL_DESTINATION|INCLUDE_TOPLEVEL_DIRECTORY|INSTALL_DEFAULT_DIRECTORY_PERMISSIONS|INSTALL_SCRIPT|PACKAGING_INSTALL_PREFIX|SET_DESTDIR|WARN_ON_ABSOLUTE_INSTALL_DESTINATION)|CTEST_(?:BINARY_DIRECTORY|BUILD_COMMAND|BUILD_NAME|BZR_COMMAND|BZR_UPDATE_OPTIONS|CHANGE_ID|CHECKOUT_COMMAND|CONFIGURATION_TYPE|CONFIGURE_COMMAND|COVERAGE_COMMAND|COVERAGE_EXTRA_FLAGS|CURL_OPTIONS|CUSTOM_(?:COVERAGE_EXCLUDE|ERROR_EXCEPTION|ERROR_MATCH|ERROR_POST_CONTEXT|ERROR_PRE_CONTEXT|MAXIMUM_FAILED_TEST_OUTPUT_SIZE|MAXIMUM_NUMBER_OF_(?:ERRORS|WARNINGS)|MAXIMUM_PASSED_TEST_OUTPUT_SIZE|MEMCHECK_IGNORE|POST_MEMCHECK|POST_TEST|PRE_MEMCHECK|PRE_TEST|TESTS_IGNORE|WARNING_EXCEPTION|WARNING_MATCH)|CVS_CHECKOUT|CVS_COMMAND|CVS_UPDATE_OPTIONS|DROP_LOCATION|DROP_METHOD|DROP_SITE|DROP_SITE_CDASH|DROP_SITE_PASSWORD|DROP_SITE_USER|EXTRA_COVERAGE_GLOB|GIT_COMMAND|GIT_INIT_SUBMODULES|GIT_UPDATE_CUSTOM|GIT_UPDATE_OPTIONS|HG_COMMAND|HG_UPDATE_OPTIONS|LABELS_FOR_SUBPROJECTS|MEMORYCHECK_(?:COMMAND|COMMAND_OPTIONS|SANITIZER_OPTIONS|SUPPRESSIONS_FILE|TYPE)|NIGHTLY_START_TIME|P4_CLIENT|P4_COMMAND|P4_OPTIONS|P4_UPDATE_OPTIONS|RUN_CURRENT_SCRIPT|SCP_COMMAND|SITE|SOURCE_DIRECTORY|SUBMIT_URL|SVN_COMMAND|SVN_OPTIONS|SVN_UPDATE_OPTIONS|TEST_LOAD|TEST_TIMEOUT|TRIGGER_SITE|UPDATE_COMMAND|UPDATE_OPTIONS|UPDATE_VERSION_ONLY|USE_LAUNCHERS)|CYGWIN|ENV|EXECUTABLE_OUTPUT_PATH|GHS-MULTI|IOS|LIBRARY_OUTPUT_PATH|MINGW|MSVC(?:10|11|12|14|60|70|71|80|90|_IDE|_TOOLSET_VERSION|_VERSION)?|MSYS|PROJECT_(?:BINARY_DIR|DESCRIPTION|HOMEPAGE_URL|NAME|SOURCE_DIR|VERSION|VERSION_(?:MAJOR|MINOR|PATCH|TWEAK))|UNIX|WIN32|WINCE|WINDOWS_PHONE|WINDOWS_STORE|XCODE|XCODE_VERSION))\b/,property:/\b(?:cxx_\w+|(?:ARCHIVE_OUTPUT_(?:DIRECTORY|NAME)|COMPILE_DEFINITIONS|COMPILE_PDB_NAME|COMPILE_PDB_OUTPUT_DIRECTORY|EXCLUDE_FROM_DEFAULT_BUILD|IMPORTED_(?:IMPLIB|LIBNAME|LINK_DEPENDENT_LIBRARIES|LINK_INTERFACE_LANGUAGES|LINK_INTERFACE_LIBRARIES|LINK_INTERFACE_MULTIPLICITY|LOCATION|NO_SONAME|OBJECTS|SONAME)|INTERPROCEDURAL_OPTIMIZATION|LIBRARY_OUTPUT_DIRECTORY|LIBRARY_OUTPUT_NAME|LINK_FLAGS|LINK_INTERFACE_LIBRARIES|LINK_INTERFACE_MULTIPLICITY|LOCATION|MAP_IMPORTED_CONFIG|OSX_ARCHITECTURES|OUTPUT_NAME|PDB_NAME|PDB_OUTPUT_DIRECTORY|RUNTIME_OUTPUT_DIRECTORY|RUNTIME_OUTPUT_NAME|STATIC_LIBRARY_FLAGS|VS_CSHARP|VS_DOTNET_REFERENCEPROP|VS_DOTNET_REFERENCE|VS_GLOBAL_SECTION_POST|VS_GLOBAL_SECTION_PRE|VS_GLOBAL|XCODE_ATTRIBUTE)_\w+|\w+_(?:CLANG_TIDY|COMPILER_LAUNCHER|CPPCHECK|CPPLINT|INCLUDE_WHAT_YOU_USE|OUTPUT_NAME|POSTFIX|VISIBILITY_PRESET)|ABSTRACT|ADDITIONAL_MAKE_CLEAN_FILES|ADVANCED|ALIASED_TARGET|ALLOW_DUPLICATE_CUSTOM_TARGETS|ANDROID_(?:ANT_ADDITIONAL_OPTIONS|API|API_MIN|ARCH|ASSETS_DIRECTORIES|GUI|JAR_DEPENDENCIES|NATIVE_LIB_DEPENDENCIES|NATIVE_LIB_DIRECTORIES|PROCESS_MAX|PROGUARD|PROGUARD_CONFIG_PATH|SECURE_PROPS_PATH|SKIP_ANT_STEP|STL_TYPE)|ARCHIVE_OUTPUT_DIRECTORY|ATTACHED_FILES|ATTACHED_FILES_ON_FAIL|AUTOGEN_(?:BUILD_DIR|ORIGIN_DEPENDS|PARALLEL|SOURCE_GROUP|TARGETS_FOLDER|TARGET_DEPENDS)|AUTOMOC|AUTOMOC_(?:COMPILER_PREDEFINES|DEPEND_FILTERS|EXECUTABLE|MACRO_NAMES|MOC_OPTIONS|SOURCE_GROUP|TARGETS_FOLDER)|AUTORCC|AUTORCC_EXECUTABLE|AUTORCC_OPTIONS|AUTORCC_SOURCE_GROUP|AUTOUIC|AUTOUIC_EXECUTABLE|AUTOUIC_OPTIONS|AUTOUIC_SEARCH_PATHS|BINARY_DIR|BUILDSYSTEM_TARGETS|BUILD_RPATH|BUILD_RPATH_USE_ORIGIN|BUILD_WITH_INSTALL_NAME_DIR|BUILD_WITH_INSTALL_RPATH|BUNDLE|BUNDLE_EXTENSION|CACHE_VARIABLES|CLEAN_NO_CUSTOM|COMMON_LANGUAGE_RUNTIME|COMPATIBLE_INTERFACE_(?:BOOL|NUMBER_MAX|NUMBER_MIN|STRING)|COMPILE_(?:DEFINITIONS|FEATURES|FLAGS|OPTIONS|PDB_NAME|PDB_OUTPUT_DIRECTORY)|COST|CPACK_DESKTOP_SHORTCUTS|CPACK_NEVER_OVERWRITE|CPACK_PERMANENT|CPACK_STARTUP_SHORTCUTS|CPACK_START_MENU_SHORTCUTS|CPACK_WIX_ACL|CROSSCOMPILING_EMULATOR|CUDA_EXTENSIONS|CUDA_PTX_COMPILATION|CUDA_RESOLVE_DEVICE_SYMBOLS|CUDA_SEPARABLE_COMPILATION|CUDA_STANDARD|CUDA_STANDARD_REQUIRED|CXX_EXTENSIONS|CXX_STANDARD|CXX_STANDARD_REQUIRED|C_EXTENSIONS|C_STANDARD|C_STANDARD_REQUIRED|DEBUG_CONFIGURATIONS|DEFINE_SYMBOL|DEFINITIONS|DEPENDS|DEPLOYMENT_ADDITIONAL_FILES|DEPLOYMENT_REMOTE_DIRECTORY|DISABLED|DISABLED_FEATURES|ECLIPSE_EXTRA_CPROJECT_CONTENTS|ECLIPSE_EXTRA_NATURES|ENABLED_FEATURES|ENABLED_LANGUAGES|ENABLE_EXPORTS|ENVIRONMENT|EXCLUDE_FROM_ALL|EXCLUDE_FROM_DEFAULT_BUILD|EXPORT_NAME|EXPORT_PROPERTIES|EXTERNAL_OBJECT|EchoString|FAIL_REGULAR_EXPRESSION|FIND_LIBRARY_USE_LIB32_PATHS|FIND_LIBRARY_USE_LIB64_PATHS|FIND_LIBRARY_USE_LIBX32_PATHS|FIND_LIBRARY_USE_OPENBSD_VERSIONING|FIXTURES_CLEANUP|FIXTURES_REQUIRED|FIXTURES_SETUP|FOLDER|FRAMEWORK|Fortran_FORMAT|Fortran_MODULE_DIRECTORY|GENERATED|GENERATOR_FILE_NAME|GENERATOR_IS_MULTI_CONFIG|GHS_INTEGRITY_APP|GHS_NO_SOURCE_GROUP_FILE|GLOBAL_DEPENDS_DEBUG_MODE|GLOBAL_DEPENDS_NO_CYCLES|GNUtoMS|HAS_CXX|HEADER_FILE_ONLY|HELPSTRING|IMPLICIT_DEPENDS_INCLUDE_TRANSFORM|IMPORTED|IMPORTED_(?:COMMON_LANGUAGE_RUNTIME|CONFIGURATIONS|GLOBAL|IMPLIB|LIBNAME|LINK_DEPENDENT_LIBRARIES|LINK_INTERFACE_(?:LANGUAGES|LIBRARIES|MULTIPLICITY)|LOCATION|NO_SONAME|OBJECTS|SONAME)|IMPORT_PREFIX|IMPORT_SUFFIX|INCLUDE_DIRECTORIES|INCLUDE_REGULAR_EXPRESSION|INSTALL_NAME_DIR|INSTALL_RPATH|INSTALL_RPATH_USE_LINK_PATH|INTERFACE_(?:AUTOUIC_OPTIONS|COMPILE_DEFINITIONS|COMPILE_FEATURES|COMPILE_OPTIONS|INCLUDE_DIRECTORIES|LINK_DEPENDS|LINK_DIRECTORIES|LINK_LIBRARIES|LINK_OPTIONS|POSITION_INDEPENDENT_CODE|SOURCES|SYSTEM_INCLUDE_DIRECTORIES)|INTERPROCEDURAL_OPTIMIZATION|IN_TRY_COMPILE|IOS_INSTALL_COMBINED|JOB_POOLS|JOB_POOL_COMPILE|JOB_POOL_LINK|KEEP_EXTENSION|LABELS|LANGUAGE|LIBRARY_OUTPUT_DIRECTORY|LINKER_LANGUAGE|LINK_(?:DEPENDS|DEPENDS_NO_SHARED|DIRECTORIES|FLAGS|INTERFACE_LIBRARIES|INTERFACE_MULTIPLICITY|LIBRARIES|OPTIONS|SEARCH_END_STATIC|SEARCH_START_STATIC|WHAT_YOU_USE)|LISTFILE_STACK|LOCATION|MACOSX_BUNDLE|MACOSX_BUNDLE_INFO_PLIST|MACOSX_FRAMEWORK_INFO_PLIST|MACOSX_PACKAGE_LOCATION|MACOSX_RPATH|MACROS|MANUALLY_ADDED_DEPENDENCIES|MEASUREMENT|MODIFIED|NAME|NO_SONAME|NO_SYSTEM_FROM_IMPORTED|OBJECT_DEPENDS|OBJECT_OUTPUTS|OSX_ARCHITECTURES|OUTPUT_NAME|PACKAGES_FOUND|PACKAGES_NOT_FOUND|PARENT_DIRECTORY|PASS_REGULAR_EXPRESSION|PDB_NAME|PDB_OUTPUT_DIRECTORY|POSITION_INDEPENDENT_CODE|POST_INSTALL_SCRIPT|PREDEFINED_TARGETS_FOLDER|PREFIX|PRE_INSTALL_SCRIPT|PRIVATE_HEADER|PROCESSORS|PROCESSOR_AFFINITY|PROJECT_LABEL|PUBLIC_HEADER|REPORT_UNDEFINED_PROPERTIES|REQUIRED_FILES|RESOURCE|RESOURCE_LOCK|RULE_LAUNCH_COMPILE|RULE_LAUNCH_CUSTOM|RULE_LAUNCH_LINK|RULE_MESSAGES|RUNTIME_OUTPUT_DIRECTORY|RUN_SERIAL|SKIP_AUTOGEN|SKIP_AUTOMOC|SKIP_AUTORCC|SKIP_AUTOUIC|SKIP_BUILD_RPATH|SKIP_RETURN_CODE|SOURCES|SOURCE_DIR|SOVERSION|STATIC_LIBRARY_FLAGS|STATIC_LIBRARY_OPTIONS|STRINGS|SUBDIRECTORIES|SUFFIX|SYMBOLIC|TARGET_ARCHIVES_MAY_BE_SHARED_LIBS|TARGET_MESSAGES|TARGET_SUPPORTS_SHARED_LIBS|TESTS|TEST_INCLUDE_FILE|TEST_INCLUDE_FILES|TIMEOUT|TIMEOUT_AFTER_MATCH|TYPE|USE_FOLDERS|VALUE|VARIABLES|VERSION|VISIBILITY_INLINES_HIDDEN|VS_(?:CONFIGURATION_TYPE|COPY_TO_OUT_DIR|DEBUGGER_(?:COMMAND|COMMAND_ARGUMENTS|ENVIRONMENT|WORKING_DIRECTORY)|DEPLOYMENT_CONTENT|DEPLOYMENT_LOCATION|DOTNET_REFERENCES|DOTNET_REFERENCES_COPY_LOCAL|GLOBAL_KEYWORD|GLOBAL_PROJECT_TYPES|GLOBAL_ROOTNAMESPACE|INCLUDE_IN_VSIX|IOT_STARTUP_TASK|KEYWORD|RESOURCE_GENERATOR|SCC_AUXPATH|SCC_LOCALPATH|SCC_PROJECTNAME|SCC_PROVIDER|SDK_REFERENCES|SHADER_(?:DISABLE_OPTIMIZATIONS|ENABLE_DEBUG|ENTRYPOINT|FLAGS|MODEL|OBJECT_FILE_NAME|OUTPUT_HEADER_FILE|TYPE|VARIABLE_NAME)|STARTUP_PROJECT|TOOL_OVERRIDE|USER_PROPS|WINRT_COMPONENT|WINRT_EXTENSIONS|WINRT_REFERENCES|XAML_TYPE)|WILL_FAIL|WIN32_EXECUTABLE|WINDOWS_EXPORT_ALL_SYMBOLS|WORKING_DIRECTORY|WRAP_EXCLUDE|XCODE_(?:EMIT_EFFECTIVE_PLATFORM_NAME|EXPLICIT_FILE_TYPE|FILE_ATTRIBUTES|LAST_KNOWN_FILE_TYPE|PRODUCT_TYPE|SCHEME_(?:ADDRESS_SANITIZER|ADDRESS_SANITIZER_USE_AFTER_RETURN|ARGUMENTS|DISABLE_MAIN_THREAD_CHECKER|DYNAMIC_LIBRARY_LOADS|DYNAMIC_LINKER_API_USAGE|ENVIRONMENT|EXECUTABLE|GUARD_MALLOC|MAIN_THREAD_CHECKER_STOP|MALLOC_GUARD_EDGES|MALLOC_SCRIBBLE|MALLOC_STACK|THREAD_SANITIZER(?:_STOP)?|UNDEFINED_BEHAVIOUR_SANITIZER(?:_STOP)?|ZOMBIE_OBJECTS))|XCTEST)\b/,keyword:/\b(?:add_compile_definitions|add_compile_options|add_custom_command|add_custom_target|add_definitions|add_dependencies|add_executable|add_library|add_link_options|add_subdirectory|add_test|aux_source_directory|break|build_command|build_name|cmake_host_system_information|cmake_minimum_required|cmake_parse_arguments|cmake_policy|configure_file|continue|create_test_sourcelist|ctest_build|ctest_configure|ctest_coverage|ctest_empty_binary_directory|ctest_memcheck|ctest_read_custom_files|ctest_run_script|ctest_sleep|ctest_start|ctest_submit|ctest_test|ctest_update|ctest_upload|define_property|else|elseif|enable_language|enable_testing|endforeach|endfunction|endif|endmacro|endwhile|exec_program|execute_process|export|export_library_dependencies|file|find_file|find_library|find_package|find_path|find_program|fltk_wrap_ui|foreach|function|get_cmake_property|get_directory_property|get_filename_component|get_property|get_source_file_property|get_target_property|get_test_property|if|include|include_directories|include_external_msproject|include_guard|include_regular_expression|install|install_files|install_programs|install_targets|link_directories|link_libraries|list|load_cache|load_command|macro|make_directory|mark_as_advanced|math|message|option|output_required_files|project|qt_wrap_cpp|qt_wrap_ui|remove|remove_definitions|return|separate_arguments|set|set_directory_properties|set_property|set_source_files_properties|set_target_properties|set_tests_properties|site_name|source_group|string|subdir_depends|subdirs|target_compile_definitions|target_compile_features|target_compile_options|target_include_directories|target_link_directories|target_link_libraries|target_link_options|target_sources|try_compile|try_run|unset|use_mangled_mesa|utility_source|variable_requires|variable_watch|while|write_file)(?=\s*\()\b/,boolean:/\b(?:FALSE|OFF|ON|TRUE)\b/,namespace:/\b(?:INTERFACE|PRIVATE|PROPERTIES|PUBLIC|SHARED|STATIC|TARGET_OBJECTS)\b/,operator:/\b(?:AND|DEFINED|EQUAL|GREATER|LESS|MATCHES|NOT|OR|STREQUAL|STRGREATER|STRLESS|VERSION_EQUAL|VERSION_GREATER|VERSION_LESS)\b/,inserted:{pattern:/\b\w+::\w+\b/,alias:"class-name"},number:/\b\d+(?:\.\d+)*\b/,function:/\b[a-z_]\w*(?=\s*\()\b/i,punctuation:/[()>}]|\$[<{]/}}},91657:function(ze){"use strict";ze.exports=Ee,Ee.displayName="cobol",Ee.aliases=[];function Ee(ue){ue.languages.cobol={comment:{pattern:/\*>.*|(^[ \t]*)\*.*/m,lookbehind:!0,greedy:!0},string:{pattern:/[xzgn]?(?:"(?:[^\r\n"]|"")*"(?!")|'(?:[^\r\n']|'')*'(?!'))/i,greedy:!0},level:{pattern:/(^[ \t]*)\d+\b/m,lookbehind:!0,greedy:!0,alias:"number"},"class-name":{pattern:/(\bpic(?:ture)?\s+)(?:(?:[-\w$/,:*+<>]|\.(?!\s|$))(?:\(\d+\))?)+/i,lookbehind:!0,inside:{number:{pattern:/(\()\d+/,lookbehind:!0},punctuation:/[()]/}},keyword:{pattern:/(^|[^\w-])(?:ABORT|ACCEPT|ACCESS|ADD|ADDRESS|ADVANCING|AFTER|ALIGNED|ALL|ALPHABET|ALPHABETIC|ALPHABETIC-LOWER|ALPHABETIC-UPPER|ALPHANUMERIC|ALPHANUMERIC-EDITED|ALSO|ALTER|ALTERNATE|ANY|ARE|AREA|AREAS|AS|ASCENDING|ASCII|ASSIGN|ASSOCIATED-DATA|ASSOCIATED-DATA-LENGTH|AT|ATTRIBUTE|AUTHOR|AUTO|AUTO-SKIP|BACKGROUND-COLOR|BACKGROUND-COLOUR|BASIS|BEEP|BEFORE|BEGINNING|BELL|BINARY|BIT|BLANK|BLINK|BLOCK|BOTTOM|BOUNDS|BY|BYFUNCTION|BYTITLE|CALL|CANCEL|CAPABLE|CCSVERSION|CD|CF|CH|CHAINING|CHANGED|CHANNEL|CHARACTER|CHARACTERS|CLASS|CLASS-ID|CLOCK-UNITS|CLOSE|CLOSE-DISPOSITION|COBOL|CODE|CODE-SET|COL|COLLATING|COLUMN|COM-REG|COMMA|COMMITMENT|COMMON|COMMUNICATION|COMP|COMP-1|COMP-2|COMP-3|COMP-4|COMP-5|COMPUTATIONAL|COMPUTATIONAL-1|COMPUTATIONAL-2|COMPUTATIONAL-3|COMPUTATIONAL-4|COMPUTATIONAL-5|COMPUTE|CONFIGURATION|CONTAINS|CONTENT|CONTINUE|CONTROL|CONTROL-POINT|CONTROLS|CONVENTION|CONVERTING|COPY|CORR|CORRESPONDING|COUNT|CRUNCH|CURRENCY|CURSOR|DATA|DATA-BASE|DATE|DATE-COMPILED|DATE-WRITTEN|DAY|DAY-OF-WEEK|DBCS|DE|DEBUG-CONTENTS|DEBUG-ITEM|DEBUG-LINE|DEBUG-NAME|DEBUG-SUB-1|DEBUG-SUB-2|DEBUG-SUB-3|DEBUGGING|DECIMAL-POINT|DECLARATIVES|DEFAULT|DEFAULT-DISPLAY|DEFINITION|DELETE|DELIMITED|DELIMITER|DEPENDING|DESCENDING|DESTINATION|DETAIL|DFHRESP|DFHVALUE|DISABLE|DISK|DISPLAY|DISPLAY-1|DIVIDE|DIVISION|DONTCARE|DOUBLE|DOWN|DUPLICATES|DYNAMIC|EBCDIC|EGCS|EGI|ELSE|EMI|EMPTY-CHECK|ENABLE|END|END-ACCEPT|END-ADD|END-CALL|END-COMPUTE|END-DELETE|END-DIVIDE|END-EVALUATE|END-IF|END-MULTIPLY|END-OF-PAGE|END-PERFORM|END-READ|END-RECEIVE|END-RETURN|END-REWRITE|END-SEARCH|END-START|END-STRING|END-SUBTRACT|END-UNSTRING|END-WRITE|ENDING|ENTER|ENTRY|ENTRY-PROCEDURE|ENVIRONMENT|EOL|EOP|EOS|ERASE|ERROR|ESCAPE|ESI|EVALUATE|EVENT|EVERY|EXCEPTION|EXCLUSIVE|EXHIBIT|EXIT|EXPORT|EXTEND|EXTENDED|EXTERNAL|FD|FILE|FILE-CONTROL|FILLER|FINAL|FIRST|FOOTING|FOR|FOREGROUND-COLOR|FOREGROUND-COLOUR|FROM|FULL|FUNCTION|FUNCTION-POINTER|FUNCTIONNAME|GENERATE|GIVING|GLOBAL|GO|GOBACK|GRID|GROUP|HEADING|HIGH-VALUE|HIGH-VALUES|HIGHLIGHT|I-O|I-O-CONTROL|ID|IDENTIFICATION|IF|IMPLICIT|IMPORT|IN|INDEX|INDEXED|INDICATE|INITIAL|INITIALIZE|INITIATE|INPUT|INPUT-OUTPUT|INSPECT|INSTALLATION|INTEGER|INTO|INVALID|INVOKE|IS|JUST|JUSTIFIED|KANJI|KEPT|KEY|KEYBOARD|LABEL|LANGUAGE|LAST|LB|LD|LEADING|LEFT|LEFTLINE|LENGTH|LENGTH-CHECK|LIBACCESS|LIBPARAMETER|LIBRARY|LIMIT|LIMITS|LINAGE|LINAGE-COUNTER|LINE|LINE-COUNTER|LINES|LINKAGE|LIST|LOCAL|LOCAL-STORAGE|LOCK|LONG-DATE|LONG-TIME|LOW-VALUE|LOW-VALUES|LOWER|LOWLIGHT|MEMORY|MERGE|MESSAGE|MMDDYYYY|MODE|MODULES|MORE-LABELS|MOVE|MULTIPLE|MULTIPLY|NAMED|NATIONAL|NATIONAL-EDITED|NATIVE|NEGATIVE|NETWORK|NEXT|NO|NO-ECHO|NULL|NULLS|NUMBER|NUMERIC|NUMERIC-DATE|NUMERIC-EDITED|NUMERIC-TIME|OBJECT-COMPUTER|OCCURS|ODT|OF|OFF|OMITTED|ON|OPEN|OPTIONAL|ORDER|ORDERLY|ORGANIZATION|OTHER|OUTPUT|OVERFLOW|OVERLINE|OWN|PACKED-DECIMAL|PADDING|PAGE|PAGE-COUNTER|PASSWORD|PERFORM|PF|PH|PIC|PICTURE|PLUS|POINTER|PORT|POSITION|POSITIVE|PRINTER|PRINTING|PRIVATE|PROCEDURE|PROCEDURE-POINTER|PROCEDURES|PROCEED|PROCESS|PROGRAM|PROGRAM-ID|PROGRAM-LIBRARY|PROMPT|PURGE|QUEUE|QUOTE|QUOTES|RANDOM|RD|READ|READER|REAL|RECEIVE|RECEIVED|RECORD|RECORDING|RECORDS|RECURSIVE|REDEFINES|REEL|REF|REFERENCE|REFERENCES|RELATIVE|RELEASE|REMAINDER|REMARKS|REMOTE|REMOVAL|REMOVE|RENAMES|REPLACE|REPLACING|REPORT|REPORTING|REPORTS|REQUIRED|RERUN|RESERVE|RESET|RETURN|RETURN-CODE|RETURNING|REVERSE-VIDEO|REVERSED|REWIND|REWRITE|RF|RH|RIGHT|ROUNDED|RUN|SAME|SAVE|SCREEN|SD|SEARCH|SECTION|SECURE|SECURITY|SEGMENT|SEGMENT-LIMIT|SELECT|SEND|SENTENCE|SEPARATE|SEQUENCE|SEQUENTIAL|SET|SHARED|SHAREDBYALL|SHAREDBYRUNUNIT|SHARING|SHIFT-IN|SHIFT-OUT|SHORT-DATE|SIGN|SIZE|SORT|SORT-CONTROL|SORT-CORE-SIZE|SORT-FILE-SIZE|SORT-MERGE|SORT-MESSAGE|SORT-MODE-SIZE|SORT-RETURN|SOURCE|SOURCE-COMPUTER|SPACE|SPACES|SPECIAL-NAMES|STANDARD|STANDARD-1|STANDARD-2|START|STATUS|STOP|STRING|SUB-QUEUE-1|SUB-QUEUE-2|SUB-QUEUE-3|SUBTRACT|SUM|SUPPRESS|SYMBOL|SYMBOLIC|SYNC|SYNCHRONIZED|TABLE|TALLY|TALLYING|TAPE|TASK|TERMINAL|TERMINATE|TEST|TEXT|THEN|THREAD|THREAD-LOCAL|THROUGH|THRU|TIME|TIMER|TIMES|TITLE|TO|TODAYS-DATE|TODAYS-NAME|TOP|TRAILING|TRUNCATED|TYPE|TYPEDEF|UNDERLINE|UNIT|UNSTRING|UNTIL|UP|UPON|USAGE|USE|USING|VALUE|VALUES|VARYING|VIRTUAL|WAIT|WHEN|WHEN-COMPILED|WITH|WORDS|WORKING-STORAGE|WRITE|YEAR|YYYYDDD|YYYYMMDD|ZERO-FILL|ZEROES|ZEROS)(?![\w-])/i,lookbehind:!0},boolean:{pattern:/(^|[^\w-])(?:false|true)(?![\w-])/i,lookbehind:!0},number:{pattern:/(^|[^\w-])(?:[+-]?(?:(?:\d+(?:[.,]\d+)?|[.,]\d+)(?:e[+-]?\d+)?|zero))(?![\w-])/i,lookbehind:!0},operator:[/<>|[<>]=?|[=+*/&]/,{pattern:/(^|[^\w-])(?:-|and|equal|greater|less|not|or|than)(?![\w-])/i,lookbehind:!0}],punctuation:/[.:,()]/}}},34367:function(ze){"use strict";ze.exports=Ee,Ee.displayName="coffeescript",Ee.aliases=["coffee"];function Ee(ue){(function(ce){var Pe=/#(?!\{).+/,Re={pattern:/#\{[^}]+\}/,alias:"variable"};ce.languages.coffeescript=ce.languages.extend("javascript",{comment:Pe,string:[{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0,inside:{interpolation:Re}}],keyword:/\b(?:and|break|by|catch|class|continue|debugger|delete|do|each|else|extend|extends|false|finally|for|if|in|instanceof|is|isnt|let|loop|namespace|new|no|not|null|of|off|on|or|own|return|super|switch|then|this|throw|true|try|typeof|undefined|unless|until|when|while|window|with|yes|yield)\b/,"class-member":{pattern:/@(?!\d)\w+/,alias:"variable"}}),ce.languages.insertBefore("coffeescript","comment",{"multiline-comment":{pattern:/###[\s\S]+?###/,alias:"comment"},"block-regex":{pattern:/\/{3}[\s\S]*?\/{3}/,alias:"regex",inside:{comment:Pe,interpolation:Re}}}),ce.languages.insertBefore("coffeescript","string",{"inline-javascript":{pattern:/`(?:\\[\s\S]|[^\\`])*`/,inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},script:{pattern:/[\s\S]+/,alias:"language-javascript",inside:ce.languages.javascript}}},"multiline-string":[{pattern:/'''[\s\S]*?'''/,greedy:!0,alias:"string"},{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string",inside:{interpolation:Re}}]}),ce.languages.insertBefore("coffeescript","keyword",{property:/(?!\d)\w+(?=\s*:(?!:))/}),delete ce.languages.coffeescript["template-string"],ce.languages.coffee=ce.languages.coffeescript})(ue)}},35348:function(ze){"use strict";ze.exports=Ee,Ee.displayName="concurnas",Ee.aliases=["conc"];function Ee(ue){ue.languages.concurnas={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\/\/.*)/,lookbehind:!0,greedy:!0},langext:{pattern:/\b\w+\s*\|\|[\s\S]+?\|\|/,greedy:!0,inside:{"class-name":/^\w+/,string:{pattern:/(^\s*\|\|)[\s\S]+(?=\|\|$)/,lookbehind:!0},punctuation:/\|\|/}},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/,lookbehind:!0},keyword:/\b(?:abstract|actor|also|annotation|assert|async|await|bool|boolean|break|byte|case|catch|changed|char|class|closed|constant|continue|def|default|del|double|elif|else|enum|every|extends|false|finally|float|for|from|global|gpudef|gpukernel|if|import|in|init|inject|int|lambda|local|long|loop|match|new|nodefault|null|of|onchange|open|out|override|package|parfor|parforsync|post|pre|private|protected|provide|provider|public|return|shared|short|single|size_t|sizeof|super|sync|this|throw|trait|trans|transient|true|try|typedef|unchecked|using|val|var|void|while|with)\b/,boolean:/\b(?:false|true)\b/,number:/\b0b[01][01_]*L?\b|\b0x(?:[\da-f_]*\.)?[\da-f_p+-]+\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfls]?/i,punctuation:/[{}[\];(),.:]/,operator:/<==|>==|=>|->|<-|<>|&==|&<>|\?:?|\.\?|\+\+|--|[-+*/=<>]=?|[!^~]|\b(?:and|as|band|bor|bxor|comp|is|isnot|mod|or)\b=?/,annotation:{pattern:/@(?:\w+:)?(?:\w+|\[[^\]]+\])?/,alias:"builtin"}},ue.languages.insertBefore("concurnas","langext",{"regex-literal":{pattern:/\br("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:ue.languages.concurnas},regex:/[\s\S]+/}},"string-literal":{pattern:/(?:\B|\bs)("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:ue.languages.concurnas},string:/[\s\S]+/}}}),ue.languages.conc=ue.languages.concurnas}},26841:function(ze){"use strict";ze.exports=Ee,Ee.displayName="coq",Ee.aliases=[];function Ee(ue){(function(ce){for(var Pe=/\(\*(?:[^(*]|\((?!\*)|\*(?!\))|<self>)*\*\)/.source,Re=0;Re<2;Re++)Pe=Pe.replace(/<self>/g,function(){return Pe});Pe=Pe.replace(/<self>/g,"[]"),ce.languages.coq={comment:RegExp(Pe),string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},attribute:[{pattern:RegExp(/#\[(?:[^\[\]("]|"(?:[^"]|"")*"(?!")|\((?!\*)|<comment>)*\]/.source.replace(/<comment>/g,function(){return Pe})),greedy:!0,alias:"attr-name",inside:{comment:RegExp(Pe),string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},operator:/=/,punctuation:/^#\[|\]$|[,()]/}},{pattern:/\b(?:Cumulative|Global|Local|Monomorphic|NonCumulative|Polymorphic|Private|Program)\b/,alias:"attr-name"}],keyword:/\b(?:Abort|About|Add|Admit|Admitted|All|Arguments|As|Assumptions|Axiom|Axioms|Back|BackTo|Backtrace|BinOp|BinOpSpec|BinRel|Bind|Blacklist|Canonical|Case|Cd|Check|Class|Classes|Close|CoFixpoint|CoInductive|Coercion|Coercions|Collection|Combined|Compute|Conjecture|Conjectures|Constant|Constants|Constraint|Constructors|Context|Corollary|Create|CstOp|Custom|Cut|Debug|Declare|Defined|Definition|Delimit|Dependencies|Dependent|Derive|Diffs|Drop|Elimination|End|Entry|Equality|Eval|Example|Existential|Existentials|Existing|Export|Extern|Extraction|Fact|Fail|Field|File|Firstorder|Fixpoint|Flags|Focus|From|Funclass|Function|Functional|GC|Generalizable|Goal|Grab|Grammar|Graph|Guarded|Haskell|Heap|Hide|Hint|HintDb|Hints|Hypotheses|Hypothesis|IF|Identity|Immediate|Implicit|Implicits|Import|Include|Induction|Inductive|Infix|Info|Initial|InjTyp|Inline|Inspect|Instance|Instances|Intro|Intros|Inversion|Inversion_clear|JSON|Language|Left|Lemma|Let|Lia|Libraries|Library|Load|LoadPath|Locate|Ltac|Ltac2|ML|Match|Method|Minimality|Module|Modules|Morphism|Next|NoInline|Notation|Number|OCaml|Obligation|Obligations|Opaque|Open|Optimize|Parameter|Parameters|Parametric|Path|Paths|Prenex|Preterm|Primitive|Print|Profile|Projections|Proof|Prop|PropBinOp|PropOp|PropUOp|Property|Proposition|Pwd|Qed|Quit|Rec|Record|Recursive|Redirect|Reduction|Register|Relation|Remark|Remove|Require|Reserved|Reset|Resolve|Restart|Rewrite|Right|Ring|Rings|SProp|Saturate|Save|Scheme|Scope|Scopes|Search|SearchHead|SearchPattern|SearchRewrite|Section|Separate|Set|Setoid|Show|Signatures|Solve|Solver|Sort|Sortclass|Sorted|Spec|Step|Strategies|Strategy|String|Structure|SubClass|Subgraph|SuchThat|Tactic|Term|TestCompile|Theorem|Time|Timeout|To|Transparent|Type|Typeclasses|Types|Typing|UnOp|UnOpSpec|Undelimit|Undo|Unfocus|Unfocused|Unfold|Universe|Universes|Unshelve|Variable|Variables|Variant|Verbose|View|Visibility|Zify|_|apply|as|at|by|cofix|else|end|exists|exists2|fix|for|forall|fun|if|in|let|match|measure|move|removed|return|struct|then|using|wf|where|with)\b/,number:/\b(?:0x[a-f0-9][a-f0-9_]*(?:\.[a-f0-9_]+)?(?:p[+-]?\d[\d_]*)?|\d[\d_]*(?:\.[\d_]+)?(?:e[+-]?\d[\d_]*)?)\b/i,punct:{pattern:/@\{|\{\||\[=|:>/,alias:"punctuation"},operator:/\/\\|\\\/|\.{2,3}|:{1,2}=|\*\*|[-=]>|<(?:->?|[+:=>]|<:)|>(?:=|->)|\|[-|]?|[-!%&*+/<=>?@^~']/,punctuation:/\.\(|`\(|@\{|`\{|\{\||\[=|:>|[:.,;(){}\[\]]/}})(ue)}},87071:function(ze,Ee,ue){"use strict";var ce=ue(79440);ze.exports=Pe,Pe.displayName="cpp",Pe.aliases=[];function Pe(Re){Re.register(ce),function(Me){var We=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,Te=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,function(){return We.source});Me.languages.cpp=Me.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,function(){return We.source})),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:We,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),Me.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,function(){return Te})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),Me.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:Me.languages.cpp}}}}),Me.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),Me.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:Me.languages.extend("cpp",{})}}),Me.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},Me.languages.cpp["base-clause"])}(Re)}},13652:function(ze,Ee,ue){"use strict";var ce=ue(75308);ze.exports=Pe,Pe.displayName="crystal",Pe.aliases=[];function Pe(Re){Re.register(ce),function(Me){Me.languages.crystal=Me.languages.extend("ruby",{keyword:[/\b(?:__DIR__|__END_LINE__|__FILE__|__LINE__|abstract|alias|annotation|as|asm|begin|break|case|class|def|do|else|elsif|end|ensure|enum|extend|for|fun|if|ifdef|include|instance_sizeof|lib|macro|module|next|of|out|pointerof|private|protected|ptr|require|rescue|return|select|self|sizeof|struct|super|then|type|typeof|undef|uninitialized|union|unless|until|when|while|with|yield)\b/,{pattern:/(\.\s*)(?:is_a|responds_to)\?/,lookbehind:!0}],number:/\b(?:0b[01_]*[01]|0o[0-7_]*[0-7]|0x[\da-fA-F_]*[\da-fA-F]|(?:\d(?:[\d_]*\d)?)(?:\.[\d_]*\d)?(?:[eE][+-]?[\d_]*\d)?)(?:_(?:[uif](?:8|16|32|64))?)?\b/,operator:[/->/,Me.languages.ruby.operator],punctuation:/[(){}[\].,;\\]/}),Me.languages.insertBefore("crystal","string-literal",{attribute:{pattern:/@\[.*?\]/,inside:{delimiter:{pattern:/^@\[|\]$/,alias:"punctuation"},attribute:{pattern:/^(\s*)\w+/,lookbehind:!0,alias:"class-name"},args:{pattern:/\S(?:[\s\S]*\S)?/,inside:Me.languages.crystal}}},expansion:{pattern:/\{(?:\{.*?\}|%.*?%)\}/,inside:{content:{pattern:/^(\{.)[\s\S]+(?=.\}$)/,lookbehind:!0,inside:Me.languages.crystal},delimiter:{pattern:/^\{[\{%]|[\}%]\}$/,alias:"operator"}}},char:{pattern:/'(?:[^\\\r\n]{1,2}|\\(?:.|u(?:[A-Fa-f0-9]{1,4}|\{[A-Fa-f0-9]{1,6}\})))'/,greedy:!0}})}(Re)}},87648:function(ze){"use strict";ze.exports=Ee,Ee.displayName="csharp",Ee.aliases=["dotnet","cs"];function Ee(ue){(function(ce){function Pe(nn,At){return nn.replace(/<<(\d+)>>/g,function(ct,at){return"(?:"+At[+at]+")"})}function Re(nn,At,ct){return RegExp(Pe(nn,At),ct||"")}function Me(nn,At){for(var ct=0;ct<At;ct++)nn=nn.replace(/<<self>>/g,function(){return"(?:"+nn+")"});return nn.replace(/<<self>>/g,"[^\\s\\S]")}var We={type:"bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",typeDeclaration:"class enum interface record struct",contextual:"add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",other:"abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield"};function Te(nn){return"\\b(?:"+nn.trim().replace(/ /g,"|")+")\\b"}var Ge=Te(We.typeDeclaration),st=RegExp(Te(We.type+" "+We.typeDeclaration+" "+We.contextual+" "+We.other)),Qe=Te(We.typeDeclaration+" "+We.contextual+" "+We.other),Ye=Te(We.type+" "+We.typeDeclaration+" "+We.other),yt=Me(/<(?:[^<>;=+\-*/%&|^]|<<self>>)*>/.source,2),ot=Me(/\((?:[^()]|<<self>>)*\)/.source,2),Nt=/@?\b[A-Za-z_]\w*\b/.source,Fe=Pe(/<<0>>(?:\s*<<1>>)?/.source,[Nt,yt]),ne=Pe(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[Qe,Fe]),te=/\[\s*(?:,\s*)*\]/.source,he=Pe(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[ne,te]),se=Pe(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[yt,ot,te]),ge=Pe(/\(<<0>>+(?:,<<0>>+)+\)/.source,[se]),Se=Pe(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[ge,ne,te]),be={keyword:st,punctuation:/[<>()?,.:[\]]/},Ae=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,Le=/"(?:\\.|[^\\"\r\n])*"/.source,je=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;ce.languages.csharp=ce.languages.extend("clike",{string:[{pattern:Re(/(^|[^$\\])<<0>>/.source,[je]),lookbehind:!0,greedy:!0},{pattern:Re(/(^|[^@$\\])<<0>>/.source,[Le]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:Re(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[ne]),lookbehind:!0,inside:be},{pattern:Re(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[Nt,Se]),lookbehind:!0,inside:be},{pattern:Re(/(\busing\s+)<<0>>(?=\s*=)/.source,[Nt]),lookbehind:!0},{pattern:Re(/(\b<<0>>\s+)<<1>>/.source,[Ge,Fe]),lookbehind:!0,inside:be},{pattern:Re(/(\bcatch\s*\(\s*)<<0>>/.source,[ne]),lookbehind:!0,inside:be},{pattern:Re(/(\bwhere\s+)<<0>>/.source,[Nt]),lookbehind:!0},{pattern:Re(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[he]),lookbehind:!0,inside:be},{pattern:Re(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[Se,Ye,Nt]),inside:be}],keyword:st,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:[dflmu]|lu|ul)?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),ce.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),ce.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:Re(/([(,]\s*)<<0>>(?=\s*:)/.source,[Nt]),lookbehind:!0,alias:"punctuation"}}),ce.languages.insertBefore("csharp","class-name",{namespace:{pattern:Re(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[Nt]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:Re(/(\b(?:default|sizeof|typeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[ot]),lookbehind:!0,alias:"class-name",inside:be},"return-type":{pattern:Re(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[Se,ne]),inside:be,alias:"class-name"},"constructor-invocation":{pattern:Re(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[Se]),lookbehind:!0,inside:be,alias:"class-name"},"generic-method":{pattern:Re(/<<0>>\s*<<1>>(?=\s*\()/.source,[Nt,yt]),inside:{function:Re(/^<<0>>/.source,[Nt]),generic:{pattern:RegExp(yt),alias:"class-name",inside:be}}},"type-list":{pattern:Re(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[Ge,Fe,Nt,Se,st.source,ot,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:Re(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[Fe,ot]),lookbehind:!0,greedy:!0,inside:ce.languages.csharp},keyword:st,"class-name":{pattern:RegExp(Se),greedy:!0,inside:be},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}});var $e=Le+"|"+Ae,qe=Pe(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[$e]),nt=Me(Pe(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[qe]),2),dt=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,it=Pe(/<<0>>(?:\s*\(<<1>>*\))?/.source,[ne,nt]);ce.languages.insertBefore("csharp","class-name",{attribute:{pattern:Re(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[dt,it]),lookbehind:!0,greedy:!0,inside:{target:{pattern:Re(/^<<0>>(?=\s*:)/.source,[dt]),alias:"keyword"},"attribute-arguments":{pattern:Re(/\(<<0>>*\)/.source,[nt]),inside:ce.languages.csharp},"class-name":{pattern:RegExp(ne),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var bt=/:[^}\r\n]+/.source,It=Me(Pe(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[qe]),2),Ht=Pe(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[It,bt]),ln=Me(Pe(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,[$e]),2),un=Pe(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[ln,bt]);function Qt(nn,At){return{interpolation:{pattern:Re(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[nn]),lookbehind:!0,inside:{"format-string":{pattern:Re(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[At,bt]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:ce.languages.csharp}}},string:/[\s\S]+/}}ce.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:Re(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[Ht]),lookbehind:!0,greedy:!0,inside:Qt(Ht,It)},{pattern:Re(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[un]),lookbehind:!0,greedy:!0,inside:Qt(un,ln)}],char:{pattern:RegExp(Ae),greedy:!0}}),ce.languages.dotnet=ce.languages.cs=ce.languages.csharp})(ue)}},10617:function(ze,Ee,ue){"use strict";var ce=ue(87648);ze.exports=Pe,Pe.displayName="cshtml",Pe.aliases=["razor"];function Pe(Re){Re.register(ce),function(Me){var We=/\/(?![/*])|\/\/.*[\r\n]|\/\*[^*]*(?:\*(?!\/)[^*]*)*\*\//.source,Te=/@(?!")|"(?:[^\r\n\\"]|\\.)*"|@"(?:[^\\"]|""|\\[\s\S])*"(?!")/.source+"|"+/'(?:(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'|(?=[^\\](?!')))/.source;function Ge(he,se){for(var ge=0;ge<se;ge++)he=he.replace(/<self>/g,function(){return"(?:"+he+")"});return he.replace(/<self>/g,"[^\\s\\S]").replace(/<str>/g,"(?:"+Te+")").replace(/<comment>/g,"(?:"+We+")")}var st=Ge(/\((?:[^()'"@/]|<str>|<comment>|<self>)*\)/.source,2),Qe=Ge(/\[(?:[^\[\]'"@/]|<str>|<comment>|<self>)*\]/.source,2),Ye=Ge(/\{(?:[^{}'"@/]|<str>|<comment>|<self>)*\}/.source,2),yt=Ge(/<(?:[^<>'"@/]|<str>|<comment>|<self>)*>/.source,2),ot=/(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?/.source,Nt=/(?!\d)[^\s>\/=$<%]+/.source+ot+/\s*\/?>/.source,Fe=/\B@?/.source+"(?:"+/<([a-zA-Z][\w:]*)/.source+ot+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+Nt+"|"+Ge(/<\1/.source+ot+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+Nt+"|<self>")+")*"+/<\/\1\s*>/.source,2))+")*"+/<\/\1\s*>/.source+"|"+/</.source+Nt+")";Me.languages.cshtml=Me.languages.extend("markup",{});var ne=Me.languages.insertBefore("csharp","string",{html:{pattern:RegExp(Fe),greedy:!0,inside:Me.languages.cshtml}},{csharp:Me.languages.extend("csharp",{})}),te={pattern:/\S[\s\S]*/,alias:"language-csharp",inside:ne};Me.languages.insertBefore("cshtml","prolog",{"razor-comment":{pattern:/@\*[\s\S]*?\*@/,greedy:!0,alias:"comment"},block:{pattern:RegExp(/(^|[^@])@/.source+"(?:"+[Ye,/(?:code|functions)\s*/.source+Ye,/(?:for|foreach|lock|switch|using|while)\s*/.source+st+/\s*/.source+Ye,/do\s*/.source+Ye+/\s*while\s*/.source+st+/(?:\s*;)?/.source,/try\s*/.source+Ye+/\s*catch\s*/.source+st+/\s*/.source+Ye+/\s*finally\s*/.source+Ye,/if\s*/.source+st+/\s*/.source+Ye+"(?:"+/\s*else/.source+"(?:"+/\s+if\s*/.source+st+")?"+/\s*/.source+Ye+")*"].join("|")+")"),lookbehind:!0,greedy:!0,inside:{keyword:/^@\w*/,csharp:te}},directive:{pattern:/^([ \t]*)@(?:addTagHelper|attribute|implements|inherits|inject|layout|model|namespace|page|preservewhitespace|removeTagHelper|section|tagHelperPrefix|using)(?=\s).*/m,lookbehind:!0,greedy:!0,inside:{keyword:/^@\w+/,csharp:te}},value:{pattern:RegExp(/(^|[^@])@/.source+/(?:await\b\s*)?/.source+"(?:"+/\w+\b/.source+"|"+st+")(?:"+/[?!]?\.\w+\b/.source+"|"+st+"|"+Qe+"|"+yt+st+")*"),lookbehind:!0,greedy:!0,alias:"variable",inside:{keyword:/^@/,csharp:te}},"delegate-operator":{pattern:/(^|[^@])@(?=<)/,lookbehind:!0,alias:"operator"}}),Me.languages.razor=Me.languages.cshtml}(Re)}},5348:function(ze){"use strict";ze.exports=Ee,Ee.displayName="csp",Ee.aliases=[];function Ee(ue){(function(ce){function Pe(Re){return RegExp(/([ \t])/.source+"(?:"+Re+")"+/(?=[\s;]|$)/.source,"i")}ce.languages.csp={directive:{pattern:/(^|[\s;])(?:base-uri|block-all-mixed-content|(?:child|connect|default|font|frame|img|manifest|media|object|prefetch|script|style|worker)-src|disown-opener|form-action|frame-(?:ancestors|options)|input-protection(?:-(?:clip|selectors))?|navigate-to|plugin-types|policy-uri|referrer|reflected-xss|report-(?:to|uri)|require-sri-for|sandbox|(?:script|style)-src-(?:attr|elem)|upgrade-insecure-requests)(?=[\s;]|$)/i,lookbehind:!0,alias:"property"},scheme:{pattern:Pe(/[a-z][a-z0-9.+-]*:/.source),lookbehind:!0},none:{pattern:Pe(/'none'/.source),lookbehind:!0,alias:"keyword"},nonce:{pattern:Pe(/'nonce-[-+/\w=]+'/.source),lookbehind:!0,alias:"number"},hash:{pattern:Pe(/'sha(?:256|384|512)-[-+/\w=]+'/.source),lookbehind:!0,alias:"number"},host:{pattern:Pe(/[a-z][a-z0-9.+-]*:\/\/[^\s;,']*/.source+"|"+/\*[^\s;,']*/.source+"|"+/[a-z0-9-]+(?:\.[a-z0-9-]+)+(?::[\d*]+)?(?:\/[^\s;,']*)?/.source),lookbehind:!0,alias:"url",inside:{important:/\*/}},keyword:[{pattern:Pe(/'unsafe-[a-z-]+'/.source),lookbehind:!0,alias:"unsafe"},{pattern:Pe(/'[a-z-]+'/.source),lookbehind:!0,alias:"safe"}],punctuation:/;/}})(ue)}},71053:function(ze){"use strict";ze.exports=Ee,Ee.displayName="cssExtras",Ee.aliases=[];function Ee(ue){(function(ce){var Pe=/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,Re;ce.languages.css.selector={pattern:ce.languages.css.selector.pattern,lookbehind:!0,inside:Re={"pseudo-element":/:(?:after|before|first-letter|first-line|selection)|::[-\w]+/,"pseudo-class":/:[-\w]+/,class:/\.[-\w]+/,id:/#[-\w]+/,attribute:{pattern:RegExp(`\\[(?:[^[\\]"']|`+Pe.source+")*\\]"),greedy:!0,inside:{punctuation:/^\[|\]$/,"case-sensitivity":{pattern:/(\s)[si]$/i,lookbehind:!0,alias:"keyword"},namespace:{pattern:/^(\s*)(?:(?!\s)[-*\w\xA0-\uFFFF])*\|(?!=)/,lookbehind:!0,inside:{punctuation:/\|$/}},"attr-name":{pattern:/^(\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+/,lookbehind:!0},"attr-value":[Pe,{pattern:/(=\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+(?=\s*$)/,lookbehind:!0}],operator:/[|~*^$]?=/}},"n-th":[{pattern:/(\(\s*)[+-]?\d*[\dn](?:\s*[+-]\s*\d+)?(?=\s*\))/,lookbehind:!0,inside:{number:/[\dn]+/,operator:/[+-]/}},{pattern:/(\(\s*)(?:even|odd)(?=\s*\))/i,lookbehind:!0}],combinator:/>|\+|~|\|\|/,punctuation:/[(),]/}},ce.languages.css.atrule.inside["selector-function-argument"].inside=Re,ce.languages.insertBefore("css","property",{variable:{pattern:/(^|[^-\w\xA0-\uFFFF])--(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*/i,lookbehind:!0}});var Me={pattern:/(\b\d+)(?:%|[a-z]+(?![\w-]))/,lookbehind:!0},We={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0};ce.languages.insertBefore("css","function",{operator:{pattern:/(\s)[+\-*\/](?=\s)/,lookbehind:!0},hexcode:{pattern:/\B#[\da-f]{3,8}\b/i,alias:"color"},color:[{pattern:/(^|[^\w-])(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)(?![\w-])/i,lookbehind:!0},{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:Me,number:We,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:Me,number:We})})(ue)}},54212:function(ze){"use strict";ze.exports=Ee,Ee.displayName="css",Ee.aliases=[];function Ee(ue){(function(ce){var Pe=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;ce.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+Pe.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+Pe.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+Pe.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:Pe,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},ce.languages.css.atrule.inside.rest=ce.languages.css;var Re=ce.languages.markup;Re&&(Re.tag.addInlined("style","css"),Re.tag.addAttribute("style","css"))})(ue)}},69820:function(ze){"use strict";ze.exports=Ee,Ee.displayName="csv",Ee.aliases=[];function Ee(ue){ue.languages.csv={value:/[^\r\n,"]+|"(?:[^"]|"")*"(?!")/,punctuation:/,/}}},41929:function(ze){"use strict";ze.exports=Ee,Ee.displayName="cypher",Ee.aliases=[];function Ee(ue){ue.languages.cypher={comment:/\/\/.*/,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/,greedy:!0},"class-name":{pattern:/(:\s*)(?:\w+|`(?:[^`\\\r\n])*`)(?=\s*[{):])/,lookbehind:!0,greedy:!0},relationship:{pattern:/(-\[\s*(?:\w+\s*|`(?:[^`\\\r\n])*`\s*)?:\s*|\|\s*:\s*)(?:\w+|`(?:[^`\\\r\n])*`)/,lookbehind:!0,greedy:!0,alias:"property"},identifier:{pattern:/`(?:[^`\\\r\n])*`/,greedy:!0},variable:/\$\w+/,keyword:/\b(?:ADD|ALL|AND|AS|ASC|ASCENDING|ASSERT|BY|CALL|CASE|COMMIT|CONSTRAINT|CONTAINS|CREATE|CSV|DELETE|DESC|DESCENDING|DETACH|DISTINCT|DO|DROP|ELSE|END|ENDS|EXISTS|FOR|FOREACH|IN|INDEX|IS|JOIN|KEY|LIMIT|LOAD|MANDATORY|MATCH|MERGE|NODE|NOT|OF|ON|OPTIONAL|OR|ORDER(?=\s+BY)|PERIODIC|REMOVE|REQUIRE|RETURN|SCALAR|SCAN|SET|SKIP|START|STARTS|THEN|UNION|UNIQUE|UNWIND|USING|WHEN|WHERE|WITH|XOR|YIELD)\b/i,function:/\b\w+\b(?=\s*\()/,boolean:/\b(?:false|null|true)\b/i,number:/\b(?:0x[\da-fA-F]+|\d+(?:\.\d+)?(?:[eE][+-]?\d+)?)\b/,operator:/:|<--?|--?>?|<>|=~?|[<>]=?|[+*/%^|]|\.\.\.?/,punctuation:/[()[\]{},;.]/}}},51837:function(ze){"use strict";ze.exports=Ee,Ee.displayName="d",Ee.aliases=[];function Ee(ue){ue.languages.d=ue.languages.extend("clike",{comment:[{pattern:/^\s*#!.+/,greedy:!0},{pattern:RegExp(/(^|[^\\])/.source+"(?:"+[/\/\+(?:\/\+(?:[^+]|\+(?!\/))*\+\/|(?!\/\+)[\s\S])*?\+\//.source,/\/\/.*/.source,/\/\*[\s\S]*?\*\//.source].join("|")+")"),lookbehind:!0,greedy:!0}],string:[{pattern:RegExp([/\b[rx]"(?:\\[\s\S]|[^\\"])*"[cwd]?/.source,/\bq"(?:\[[\s\S]*?\]|\([\s\S]*?\)|<[\s\S]*?>|\{[\s\S]*?\})"/.source,/\bq"((?!\d)\w+)$[\s\S]*?^\1"/.source,/\bq"(.)[\s\S]*?\2"/.source,/(["`])(?:\\[\s\S]|(?!\3)[^\\])*\3[cwd]?/.source].join("|"),"m"),greedy:!0},{pattern:/\bq\{(?:\{[^{}]*\}|[^{}])*\}/,greedy:!0,alias:"token-string"}],keyword:/\$|\b(?:__(?:(?:DATE|EOF|FILE|FUNCTION|LINE|MODULE|PRETTY_FUNCTION|TIMESTAMP|TIME|VENDOR|VERSION)__|gshared|parameters|traits|vector)|abstract|alias|align|asm|assert|auto|body|bool|break|byte|case|cast|catch|cdouble|cent|cfloat|char|class|const|continue|creal|dchar|debug|default|delegate|delete|deprecated|do|double|dstring|else|enum|export|extern|false|final|finally|float|for|foreach|foreach_reverse|function|goto|idouble|if|ifloat|immutable|import|inout|int|interface|invariant|ireal|lazy|long|macro|mixin|module|new|nothrow|null|out|override|package|pragma|private|protected|ptrdiff_t|public|pure|real|ref|return|scope|shared|short|size_t|static|string|struct|super|switch|synchronized|template|this|throw|true|try|typedef|typeid|typeof|ubyte|ucent|uint|ulong|union|unittest|ushort|version|void|volatile|wchar|while|with|wstring)\b/,number:[/\b0x\.?[a-f\d_]+(?:(?!\.\.)\.[a-f\d_]*)?(?:p[+-]?[a-f\d_]+)?[ulfi]{0,4}/i,{pattern:/((?:\.\.)?)(?:\b0b\.?|\b|\.)\d[\d_]*(?:(?!\.\.)\.[\d_]*)?(?:e[+-]?\d[\d_]*)?[ulfi]{0,4}/i,lookbehind:!0}],operator:/\|[|=]?|&[&=]?|\+[+=]?|-[-=]?|\.?\.\.|=[>=]?|!(?:i[ns]\b|<>?=?|>=?|=)?|\bi[ns]\b|(?:<[<>]?|>>?>?|\^\^|[*\/%^~])=?/}),ue.languages.insertBefore("d","string",{char:/'(?:\\(?:\W|\w+)|[^\\])'/}),ue.languages.insertBefore("d","keyword",{property:/\B@\w*/}),ue.languages.insertBefore("d","function",{register:{pattern:/\b(?:[ABCD][LHX]|E?(?:BP|DI|SI|SP)|[BS]PL|[ECSDGF]S|CR[0234]|[DS]IL|DR[012367]|E[ABCD]X|X?MM[0-7]|R(?:1[0-5]|[89])[BWD]?|R[ABCD]X|R[BS]P|R[DS]I|TR[3-7]|XMM(?:1[0-5]|[89])|YMM(?:1[0-5]|\d))\b|\bST(?:\([0-7]\)|\b)/,alias:"variable"}})}},4182:function(ze){"use strict";ze.exports=Ee,Ee.displayName="dart",Ee.aliases=[];function Ee(ue){(function(ce){var Pe=[/\b(?:async|sync|yield)\*/,/\b(?:abstract|assert|async|await|break|case|catch|class|const|continue|covariant|default|deferred|do|dynamic|else|enum|export|extends|extension|external|factory|final|finally|for|get|hide|if|implements|import|in|interface|library|mixin|new|null|on|operator|part|rethrow|return|set|show|static|super|switch|sync|this|throw|try|typedef|var|void|while|with|yield)\b/],Re=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,Me={pattern:RegExp(Re+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}}}};ce.languages.dart=ce.languages.extend("clike",{"class-name":[Me,{pattern:RegExp(Re+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:Me.inside}],keyword:Pe,operator:/\bis!|\b(?:as|is)\b|\+\+|--|&&|\|\||<<=?|>>=?|~(?:\/=?)?|[+\-*\/%&^|=!<>]=?|\?/}),ce.languages.insertBefore("dart","string",{"string-literal":{pattern:/r?(?:("""|''')[\s\S]*?\1|(["'])(?:\\.|(?!\2)[^\\\r\n])*\2(?!\2))/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\w+|\{(?:[^{}]|\{[^{}]*\})*\})/,lookbehind:!0,inside:{punctuation:/^\$\{?|\}$/,expression:{pattern:/[\s\S]+/,inside:ce.languages.dart}}},string:/[\s\S]+/}},string:void 0}),ce.languages.insertBefore("dart","class-name",{metadata:{pattern:/@\w+/,alias:"function"}}),ce.languages.insertBefore("dart","class-name",{generics:{pattern:/<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<[\w\s,.&?]*>)*>)*>)*>/,inside:{"class-name":Me,keyword:Pe,punctuation:/[<>(),.:]/,operator:/[?&|]/}}})})(ue)}},22117:function(ze){"use strict";ze.exports=Ee,Ee.displayName="dataweave",Ee.aliases=[];function Ee(ue){(function(ce){ce.languages.dataweave={url:/\b[A-Za-z]+:\/\/[\w/:.?=&-]+|\burn:[\w:.?=&-]+/,property:{pattern:/(?:\b\w+#)?(?:"(?:\\.|[^\\"\r\n])*"|\b\w+)(?=\s*[:@])/,greedy:!0},string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},"mime-type":/\b(?:application|audio|image|multipart|text|video)\/[\w+-]+/,date:{pattern:/\|[\w:+-]+\|/,greedy:!0},comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],regex:{pattern:/\/(?:[^\\\/\r\n]|\\[^\r\n])+\//,greedy:!0},keyword:/\b(?:and|as|at|case|do|else|fun|if|input|is|match|not|ns|null|or|output|type|unless|update|using|var)\b/,function:/\b[A-Z_]\w*(?=\s*\()/i,number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\];(),.:@]/,operator:/<<|>>|->|[<>~=]=?|!=|--?-?|\+\+?|!|\?/,boolean:/\b(?:false|true)\b/}})(ue)}},95627:function(ze){"use strict";ze.exports=Ee,Ee.displayName="dax",Ee.aliases=[];function Ee(ue){ue.languages.dax={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/).*)/,lookbehind:!0},"data-field":{pattern:/'(?:[^']|'')*'(?!')(?:\[[ \w\xA0-\uFFFF]+\])?|\w+\[[ \w\xA0-\uFFFF]+\]/,alias:"symbol"},measure:{pattern:/\[[ \w\xA0-\uFFFF]+\]/,alias:"constant"},string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},function:/\b(?:ABS|ACOS|ACOSH|ACOT|ACOTH|ADDCOLUMNS|ADDMISSINGITEMS|ALL|ALLCROSSFILTERED|ALLEXCEPT|ALLNOBLANKROW|ALLSELECTED|AND|APPROXIMATEDISTINCTCOUNT|ASIN|ASINH|ATAN|ATANH|AVERAGE|AVERAGEA|AVERAGEX|BETA\.DIST|BETA\.INV|BLANK|CALCULATE|CALCULATETABLE|CALENDAR|CALENDARAUTO|CEILING|CHISQ\.DIST|CHISQ\.DIST\.RT|CHISQ\.INV|CHISQ\.INV\.RT|CLOSINGBALANCEMONTH|CLOSINGBALANCEQUARTER|CLOSINGBALANCEYEAR|COALESCE|COMBIN|COMBINA|COMBINEVALUES|CONCATENATE|CONCATENATEX|CONFIDENCE\.NORM|CONFIDENCE\.T|CONTAINS|CONTAINSROW|CONTAINSSTRING|CONTAINSSTRINGEXACT|CONVERT|COS|COSH|COT|COTH|COUNT|COUNTA|COUNTAX|COUNTBLANK|COUNTROWS|COUNTX|CROSSFILTER|CROSSJOIN|CURRENCY|CURRENTGROUP|CUSTOMDATA|DATATABLE|DATE|DATEADD|DATEDIFF|DATESBETWEEN|DATESINPERIOD|DATESMTD|DATESQTD|DATESYTD|DATEVALUE|DAY|DEGREES|DETAILROWS|DISTINCT|DISTINCTCOUNT|DISTINCTCOUNTNOBLANK|DIVIDE|EARLIER|EARLIEST|EDATE|ENDOFMONTH|ENDOFQUARTER|ENDOFYEAR|EOMONTH|ERROR|EVEN|EXACT|EXCEPT|EXP|EXPON\.DIST|FACT|FALSE|FILTER|FILTERS|FIND|FIRSTDATE|FIRSTNONBLANK|FIRSTNONBLANKVALUE|FIXED|FLOOR|FORMAT|GCD|GENERATE|GENERATEALL|GENERATESERIES|GEOMEAN|GEOMEANX|GROUPBY|HASONEFILTER|HASONEVALUE|HOUR|IF|IF\.EAGER|IFERROR|IGNORE|INT|INTERSECT|ISBLANK|ISCROSSFILTERED|ISEMPTY|ISERROR|ISEVEN|ISFILTERED|ISINSCOPE|ISLOGICAL|ISNONTEXT|ISNUMBER|ISO\.CEILING|ISODD|ISONORAFTER|ISSELECTEDMEASURE|ISSUBTOTAL|ISTEXT|KEEPFILTERS|KEYWORDMATCH|LASTDATE|LASTNONBLANK|LASTNONBLANKVALUE|LCM|LEFT|LEN|LN|LOG|LOG10|LOOKUPVALUE|LOWER|MAX|MAXA|MAXX|MEDIAN|MEDIANX|MID|MIN|MINA|MINUTE|MINX|MOD|MONTH|MROUND|NATURALINNERJOIN|NATURALLEFTOUTERJOIN|NEXTDAY|NEXTMONTH|NEXTQUARTER|NEXTYEAR|NONVISUAL|NORM\.DIST|NORM\.INV|NORM\.S\.DIST|NORM\.S\.INV|NOT|NOW|ODD|OPENINGBALANCEMONTH|OPENINGBALANCEQUARTER|OPENINGBALANCEYEAR|OR|PARALLELPERIOD|PATH|PATHCONTAINS|PATHITEM|PATHITEMREVERSE|PATHLENGTH|PERCENTILE\.EXC|PERCENTILE\.INC|PERCENTILEX\.EXC|PERCENTILEX\.INC|PERMUT|PI|POISSON\.DIST|POWER|PREVIOUSDAY|PREVIOUSMONTH|PREVIOUSQUARTER|PREVIOUSYEAR|PRODUCT|PRODUCTX|QUARTER|QUOTIENT|RADIANS|RAND|RANDBETWEEN|RANK\.EQ|RANKX|RELATED|RELATEDTABLE|REMOVEFILTERS|REPLACE|REPT|RIGHT|ROLLUP|ROLLUPADDISSUBTOTAL|ROLLUPGROUP|ROLLUPISSUBTOTAL|ROUND|ROUNDDOWN|ROUNDUP|ROW|SAMEPERIODLASTYEAR|SAMPLE|SEARCH|SECOND|SELECTCOLUMNS|SELECTEDMEASURE|SELECTEDMEASUREFORMATSTRING|SELECTEDMEASURENAME|SELECTEDVALUE|SIGN|SIN|SINH|SQRT|SQRTPI|STARTOFMONTH|STARTOFQUARTER|STARTOFYEAR|STDEV\.P|STDEV\.S|STDEVX\.P|STDEVX\.S|SUBSTITUTE|SUBSTITUTEWITHINDEX|SUM|SUMMARIZE|SUMMARIZECOLUMNS|SUMX|SWITCH|T\.DIST|T\.DIST\.2T|T\.DIST\.RT|T\.INV|T\.INV\.2T|TAN|TANH|TIME|TIMEVALUE|TODAY|TOPN|TOPNPERLEVEL|TOPNSKIP|TOTALMTD|TOTALQTD|TOTALYTD|TREATAS|TRIM|TRUE|TRUNC|UNICHAR|UNICODE|UNION|UPPER|USERELATIONSHIP|USERNAME|USEROBJECTID|USERPRINCIPALNAME|UTCNOW|UTCTODAY|VALUE|VALUES|VAR\.P|VAR\.S|VARX\.P|VARX\.S|WEEKDAY|WEEKNUM|XIRR|XNPV|YEAR|YEARFRAC)(?=\s*\()/i,keyword:/\b(?:DEFINE|EVALUATE|MEASURE|ORDER\s+BY|RETURN|VAR|START\s+AT|ASC|DESC)\b/i,boolean:{pattern:/\b(?:FALSE|NULL|TRUE)\b/i,alias:"constant"},number:/\b\d+(?:\.\d*)?|\B\.\d+\b/,operator:/:=|[-+*\/=^]|&&?|\|\||<(?:=>?|<|>)?|>[>=]?|\b(?:IN|NOT)\b/i,punctuation:/[;\[\](){}`,.]/}}},34265:function(ze){"use strict";ze.exports=Ee,Ee.displayName="dhall",Ee.aliases=[];function Ee(ue){ue.languages.dhall={comment:/--.*|\{-(?:[^-{]|-(?!\})|\{(?!-)|\{-(?:[^-{]|-(?!\})|\{(?!-))*-\})*-\}/,string:{pattern:/"(?:[^"\\]|\\.)*"|''(?:[^']|'(?!')|'''|''\$\{)*''(?!'|\$)/,greedy:!0,inside:{interpolation:{pattern:/\$\{[^{}]*\}/,inside:{expression:{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0,alias:"language-dhall",inside:null},punctuation:/\$\{|\}/}}}},label:{pattern:/`[^`]*`/,greedy:!0},url:{pattern:/\bhttps?:\/\/[\w.:%!$&'*+;=@~-]+(?:\/[\w.:%!$&'*+;=@~-]*)*(?:\?[/?\w.:%!$&'*+;=@~-]*)?/,greedy:!0},env:{pattern:/\benv:(?:(?!\d)\w+|"(?:[^"\\=]|\\.)*")/,greedy:!0,inside:{function:/^env/,operator:/^:/,variable:/[\s\S]+/}},hash:{pattern:/\bsha256:[\da-fA-F]{64}\b/,inside:{function:/sha256/,operator:/:/,number:/[\da-fA-F]{64}/}},keyword:/\b(?:as|assert|else|forall|if|in|let|merge|missing|then|toMap|using|with)\b|\u2200/,builtin:/\b(?:None|Some)\b/,boolean:/\b(?:False|True)\b/,number:/\bNaN\b|-?\bInfinity\b|[+-]?\b(?:0x[\da-fA-F]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/,operator:/\/\\|\/\/\\\\|&&|\|\||===|[!=]=|\/\/|->|\+\+|::|[+*#@=:?<>|\\\u2227\u2a53\u2261\u2afd\u03bb\u2192]/,punctuation:/\.\.|[{}\[\](),./]/,"class-name":/\b[A-Z]\w*\b/},ue.languages.dhall.string.inside.interpolation.inside.expression.inside=ue.languages.dhall}},50618:function(ze){"use strict";ze.exports=Ee,Ee.displayName="diff",Ee.aliases=[];function Ee(ue){(function(ce){ce.languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d.*$/m]};var Pe={"deleted-sign":"-","deleted-arrow":"<","inserted-sign":"+","inserted-arrow":">",unchanged:" ",diff:"!"};Object.keys(Pe).forEach(function(Re){var Me=Pe[Re],We=[];/^\w+$/.test(Re)||We.push(/\w+/.exec(Re)[0]),Re==="diff"&&We.push("bold"),ce.languages.diff[Re]={pattern:RegExp("^(?:["+Me+`].*(?:\r
|
|
|
?|
|
|
|
|(?![\\s\\S])))+`,"m"),alias:We,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(Re)[0]}}}}),Object.defineProperty(ce.languages.diff,"PREFIXES",{value:Pe})})(ue)}},32126:function(ze,Ee,ue){"use strict";var ce=ue(51478);ze.exports=Pe,Pe.displayName="django",Pe.aliases=["jinja2"];function Pe(Re){Re.register(ce),function(Me){Me.languages.django={comment:/^\{#[\s\S]*?#\}$/,tag:{pattern:/(^\{%[+-]?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%][+-]?|[+-]?[}%]\}$/,alias:"punctuation"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},filter:{pattern:/(\|)\w+/,lookbehind:!0,alias:"function"},test:{pattern:/(\bis\s+(?:not\s+)?)(?!not\b)\w+/,lookbehind:!0,alias:"function"},function:/\b[a-z_]\w+(?=\s*\()/i,keyword:/\b(?:and|as|by|else|for|if|import|in|is|loop|not|or|recursive|with|without)\b/,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,number:/\b\d+(?:\.\d+)?\b/,boolean:/[Ff]alse|[Nn]one|[Tt]rue/,variable:/\b\w+\b/,punctuation:/[{}[\](),.:;]/};var We=/\{\{[\s\S]*?\}\}|\{%[\s\S]*?%\}|\{#[\s\S]*?#\}/g,Te=Me.languages["markup-templating"];Me.hooks.add("before-tokenize",function(Ge){Te.buildPlaceholders(Ge,"django",We)}),Me.hooks.add("after-tokenize",function(Ge){Te.tokenizePlaceholders(Ge,"django")}),Me.languages.jinja2=Me.languages.django,Me.hooks.add("before-tokenize",function(Ge){Te.buildPlaceholders(Ge,"jinja2",We)}),Me.hooks.add("after-tokenize",function(Ge){Te.tokenizePlaceholders(Ge,"jinja2")})}(Re)}},26737:function(ze){"use strict";ze.exports=Ee,Ee.displayName="dnsZoneFile",Ee.aliases=[];function Ee(ue){ue.languages["dns-zone-file"]={comment:/;.*/,string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},variable:[{pattern:/(^\$ORIGIN[ \t]+)\S+/m,lookbehind:!0},{pattern:/(^|\s)@(?=\s|$)/,lookbehind:!0}],keyword:/^\$(?:INCLUDE|ORIGIN|TTL)(?=\s|$)/m,class:{pattern:/(^|\s)(?:CH|CS|HS|IN)(?=\s|$)/,lookbehind:!0,alias:"keyword"},type:{pattern:/(^|\s)(?:A|A6|AAAA|AFSDB|APL|ATMA|CAA|CDNSKEY|CDS|CERT|CNAME|DHCID|DLV|DNAME|DNSKEY|DS|EID|GID|GPOS|HINFO|HIP|IPSECKEY|ISDN|KEY|KX|LOC|MAILA|MAILB|MB|MD|MF|MG|MINFO|MR|MX|NAPTR|NB|NBSTAT|NIMLOC|NINFO|NS|NSAP|NSAP-PTR|NSEC|NSEC3|NSEC3PARAM|NULL|NXT|OPENPGPKEY|PTR|PX|RKEY|RP|RRSIG|RT|SIG|SINK|SMIMEA|SOA|SPF|SRV|SSHFP|TA|TKEY|TLSA|TSIG|TXT|UID|UINFO|UNSPEC|URI|WKS|X25)(?=\s|$)/,lookbehind:!0,alias:"keyword"},punctuation:/[()]/},ue.languages["dns-zone"]=ue.languages["dns-zone-file"]}},90134:function(ze){"use strict";ze.exports=Ee,Ee.displayName="docker",Ee.aliases=["dockerfile"];function Ee(ue){(function(ce){var Pe=/\\[\r\n](?:\s|\\[\r\n]|#.*(?!.))*(?![\s#]|\\[\r\n])/.source,Re=/(?:[ \t]+(?![ \t])(?:<SP_BS>)?|<SP_BS>)/.source.replace(/<SP_BS>/g,function(){return Pe}),Me=/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"|'(?:[^'\\\r\n]|\\(?:\r\n|[\s\S]))*'/.source,We=/--[\w-]+=(?:<STR>|(?!["'])(?:[^\s\\]|\\.)+)/.source.replace(/<STR>/g,function(){return Me}),Te={pattern:RegExp(Me),greedy:!0},Ge={pattern:/(^[ \t]*)#.*/m,lookbehind:!0,greedy:!0};function st(Qe,Ye){return Qe=Qe.replace(/<OPT>/g,function(){return We}).replace(/<SP>/g,function(){return Re}),RegExp(Qe,Ye)}ce.languages.docker={instruction:{pattern:/(^[ \t]*)(?:ADD|ARG|CMD|COPY|ENTRYPOINT|ENV|EXPOSE|FROM|HEALTHCHECK|LABEL|MAINTAINER|ONBUILD|RUN|SHELL|STOPSIGNAL|USER|VOLUME|WORKDIR)(?=\s)(?:\\.|[^\r\n\\])*(?:\\$(?:\s|#.*$)*(?![\s#])(?:\\.|[^\r\n\\])*)*/im,lookbehind:!0,greedy:!0,inside:{options:{pattern:st(/(^(?:ONBUILD<SP>)?\w+<SP>)<OPT>(?:<SP><OPT>)*/.source,"i"),lookbehind:!0,greedy:!0,inside:{property:{pattern:/(^|\s)--[\w-]+/,lookbehind:!0},string:[Te,{pattern:/(=)(?!["'])(?:[^\s\\]|\\.)+/,lookbehind:!0}],operator:/\\$/m,punctuation:/=/}},keyword:[{pattern:st(/(^(?:ONBUILD<SP>)?HEALTHCHECK<SP>(?:<OPT><SP>)*)(?:CMD|NONE)\b/.source,"i"),lookbehind:!0,greedy:!0},{pattern:st(/(^(?:ONBUILD<SP>)?FROM<SP>(?:<OPT><SP>)*(?!--)[^ \t\\]+<SP>)AS/.source,"i"),lookbehind:!0,greedy:!0},{pattern:st(/(^ONBUILD<SP>)\w+/.source,"i"),lookbehind:!0,greedy:!0},{pattern:/^\w+/,greedy:!0}],comment:Ge,string:Te,variable:/\$(?:\w+|\{[^{}"'\\]*\})/,operator:/\\$/m}},comment:Ge},ce.languages.dockerfile=ce.languages.docker})(ue)}},51348:function(ze){"use strict";ze.exports=Ee,Ee.displayName="dot",Ee.aliases=["gv"];function Ee(ue){(function(ce){var Pe="(?:"+[/[a-zA-Z_\x80-\uFFFF][\w\x80-\uFFFF]*/.source,/-?(?:\.\d+|\d+(?:\.\d*)?)/.source,/"[^"\\]*(?:\\[\s\S][^"\\]*)*"/.source,/<(?:[^<>]|(?!<!--)<(?:[^<>"']|"[^"]*"|'[^']*')+>|<!--(?:[^-]|-(?!->))*-->)*>/.source].join("|")+")",Re={markup:{pattern:/(^<)[\s\S]+(?=>$)/,lookbehind:!0,alias:["language-markup","language-html","language-xml"],inside:ce.languages.markup}};function Me(We,Te){return RegExp(We.replace(/<ID>/g,function(){return Pe}),Te)}ce.languages.dot={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\/|^#.*/m,greedy:!0},"graph-name":{pattern:Me(/(\b(?:digraph|graph|subgraph)[ \t\r\n]+)<ID>/.source,"i"),lookbehind:!0,greedy:!0,alias:"class-name",inside:Re},"attr-value":{pattern:Me(/(=[ \t\r\n]*)<ID>/.source),lookbehind:!0,greedy:!0,inside:Re},"attr-name":{pattern:Me(/([\[;, \t\r\n])<ID>(?=[ \t\r\n]*=)/.source),lookbehind:!0,greedy:!0,inside:Re},keyword:/\b(?:digraph|edge|graph|node|strict|subgraph)\b/i,"compass-point":{pattern:/(:[ \t\r\n]*)(?:[ewc_]|[ns][ew]?)(?![\w\x80-\uFFFF])/,lookbehind:!0,alias:"builtin"},node:{pattern:Me(/(^|[^-.\w\x80-\uFFFF\\])<ID>/.source),lookbehind:!0,greedy:!0,inside:Re},operator:/[=:]|-[->]/,punctuation:/[\[\]{};,]/},ce.languages.gv=ce.languages.dot})(ue)}},60841:function(ze){"use strict";ze.exports=Ee,Ee.displayName="ebnf",Ee.aliases=[];function Ee(ue){ue.languages.ebnf={comment:/\(\*[\s\S]*?\*\)/,string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0},special:{pattern:/\?[^?\r\n]*\?/,greedy:!0,alias:"class-name"},definition:{pattern:/^([\t ]*)[a-z]\w*(?:[ \t]+[a-z]\w*)*(?=\s*=)/im,lookbehind:!0,alias:["rule","keyword"]},rule:/\b[a-z]\w*(?:[ \t]+[a-z]\w*)*\b/i,punctuation:/\([:/]|[:/]\)|[.,;()[\]{}]/,operator:/[-=|*/!]/}}},42857:function(ze){"use strict";ze.exports=Ee,Ee.displayName="editorconfig",Ee.aliases=[];function Ee(ue){ue.languages.editorconfig={comment:/[;#].*/,section:{pattern:/(^[ \t]*)\[.+\]/m,lookbehind:!0,alias:"selector",inside:{regex:/\\\\[\[\]{},!?.*]/,operator:/[!?]|\.\.|\*{1,2}/,punctuation:/[\[\]{},]/}},key:{pattern:/(^[ \t]*)[^\s=]+(?=[ \t]*=)/m,lookbehind:!0,alias:"attr-name"},value:{pattern:/=.*/,alias:"attr-value",inside:{punctuation:/^=/}}}}},81269:function(ze){"use strict";ze.exports=Ee,Ee.displayName="eiffel",Ee.aliases=[];function Ee(ue){ue.languages.eiffel={comment:/--.*/,string:[{pattern:/"([^[]*)\[[\s\S]*?\]\1"/,greedy:!0},{pattern:/"([^{]*)\{[\s\S]*?\}\1"/,greedy:!0},{pattern:/"(?:%(?:(?!\n)\s)*\n\s*%|%\S|[^%"\r\n])*"/,greedy:!0}],char:/'(?:%.|[^%'\r\n])+'/,keyword:/\b(?:across|agent|alias|all|and|as|assign|attached|attribute|check|class|convert|create|Current|debug|deferred|detachable|do|else|elseif|end|ensure|expanded|export|external|feature|from|frozen|if|implies|inherit|inspect|invariant|like|local|loop|not|note|obsolete|old|once|or|Precursor|redefine|rename|require|rescue|Result|retry|select|separate|some|then|undefine|until|variant|Void|when|xor)\b/i,boolean:/\b(?:False|True)\b/i,"class-name":/\b[A-Z][\dA-Z_]*\b/,number:[/\b0[xcb][\da-f](?:_*[\da-f])*\b/i,/(?:\b\d(?:_*\d)*)?\.(?:(?:\d(?:_*\d)*)?e[+-]?)?\d(?:_*\d)*\b|\b\d(?:_*\d)*\b\.?/i],punctuation:/:=|<<|>>|\(\||\|\)|->|\.(?=\w)|[{}[\];(),:?]/,operator:/\\\\|\|\.\.\||\.\.|\/[~\/=]?|[><]=?|[-+*^=~]/}}},31134:function(ze,Ee,ue){"use strict";var ce=ue(51478);ze.exports=Pe,Pe.displayName="ejs",Pe.aliases=["eta"];function Pe(Re){Re.register(ce),function(Me){Me.languages.ejs={delimiter:{pattern:/^<%[-_=]?|[-_]?%>$/,alias:"punctuation"},comment:/^#[\s\S]*/,"language-javascript":{pattern:/[\s\S]+/,inside:Me.languages.javascript}},Me.hooks.add("before-tokenize",function(We){var Te=/<%(?!%)[\s\S]+?%>/g;Me.languages["markup-templating"].buildPlaceholders(We,"ejs",Te)}),Me.hooks.add("after-tokenize",function(We){Me.languages["markup-templating"].tokenizePlaceholders(We,"ejs")}),Me.languages.eta=Me.languages.ejs}(Re)}},83125:function(ze){"use strict";ze.exports=Ee,Ee.displayName="elixir",Ee.aliases=[];function Ee(ue){ue.languages.elixir={doc:{pattern:/@(?:doc|moduledoc)\s+(?:("""|''')[\s\S]*?\1|("|')(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2)/,inside:{attribute:/^@\w+/,string:/['"][\s\S]+/}},comment:{pattern:/#.*/,greedy:!0},regex:{pattern:/~[rR](?:("""|''')(?:\\[\s\S]|(?!\1)[^\\])+\1|([\/|"'])(?:\\.|(?!\2)[^\\\r\n])+\2|\((?:\\.|[^\\)\r\n])+\)|\[(?:\\.|[^\\\]\r\n])+\]|\{(?:\\.|[^\\}\r\n])+\}|<(?:\\.|[^\\>\r\n])+>)[uismxfr]*/,greedy:!0},string:[{pattern:/~[cCsSwW](?:("""|''')(?:\\[\s\S]|(?!\1)[^\\])+\1|([\/|"'])(?:\\.|(?!\2)[^\\\r\n])+\2|\((?:\\.|[^\\)\r\n])+\)|\[(?:\\.|[^\\\]\r\n])+\]|\{(?:\\.|#\{[^}]+\}|#(?!\{)|[^#\\}\r\n])+\}|<(?:\\.|[^\\>\r\n])+>)[csa]?/,greedy:!0,inside:{}},{pattern:/("""|''')[\s\S]*?\1/,greedy:!0,inside:{}},{pattern:/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{}}],atom:{pattern:/(^|[^:]):\w+/,lookbehind:!0,alias:"symbol"},module:{pattern:/\b[A-Z]\w*\b/,alias:"class-name"},"attr-name":/\b\w+\??:(?!:)/,argument:{pattern:/(^|[^&])&\d+/,lookbehind:!0,alias:"variable"},attribute:{pattern:/@\w+/,alias:"variable"},function:/\b[_a-zA-Z]\w*[?!]?(?:(?=\s*(?:\.\s*)?\()|(?=\/\d))/,number:/\b(?:0[box][a-f\d_]+|\d[\d_]*)(?:\.[\d_]+)?(?:e[+-]?[\d_]+)?\b/i,keyword:/\b(?:after|alias|and|case|catch|cond|def(?:callback|delegate|exception|impl|macro|module|n|np|p|protocol|struct)?|do|else|end|fn|for|if|import|not|or|quote|raise|require|rescue|try|unless|unquote|use|when)\b/,boolean:/\b(?:false|nil|true)\b/,operator:[/\bin\b|&&?|\|[|>]?|\\\\|::|\.\.\.?|\+\+?|-[->]?|<[-=>]|>=|!==?|\B!|=(?:==?|[>~])?|[*\/^]/,{pattern:/([^<])<(?!<)/,lookbehind:!0},{pattern:/([^>])>(?!>)/,lookbehind:!0}],punctuation:/<<|>>|[.,%\[\]{}()]/},ue.languages.elixir.string.forEach(function(ce){ce.inside={interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},rest:ue.languages.elixir}}}})}},9438:function(ze){"use strict";ze.exports=Ee,Ee.displayName="elm",Ee.aliases=[];function Ee(ue){ue.languages.elm={comment:/--.*|\{-[\s\S]*?-\}/,char:{pattern:/'(?:[^\\'\r\n]|\\(?:[abfnrtv\\']|\d+|x[0-9a-fA-F]+|u\{[0-9a-fA-F]+\}))'/,greedy:!0},string:[{pattern:/"""[\s\S]*?"""/,greedy:!0},{pattern:/"(?:[^\\"\r\n]|\\.)*"/,greedy:!0}],"import-statement":{pattern:/(^[\t ]*)import\s+[A-Z]\w*(?:\.[A-Z]\w*)*(?:\s+as\s+(?:[A-Z]\w*)(?:\.[A-Z]\w*)*)?(?:\s+exposing\s+)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|exposing|import)\b/}},keyword:/\b(?:alias|as|case|else|exposing|if|in|infixl|infixr|let|module|of|then|type)\b/,builtin:/\b(?:abs|acos|always|asin|atan|atan2|ceiling|clamp|compare|cos|curry|degrees|e|flip|floor|fromPolar|identity|isInfinite|isNaN|logBase|max|min|negate|never|not|pi|radians|rem|round|sin|sqrt|tan|toFloat|toPolar|toString|truncate|turns|uncurry|xor)\b/,number:/\b(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|0x[0-9a-f]+)\b/i,operator:/\s\.\s|[+\-/*=.$<>:&|^?%#@~!]{2,}|[+\-/*=$<>:&|^?%#@~!]/,hvariable:/\b(?:[A-Z]\w*\.)*[a-z]\w*\b/,constant:/\b(?:[A-Z]\w*\.)*[A-Z]\w*\b/,punctuation:/[{}[\]|(),.:]/}}},27771:function(ze,Ee,ue){"use strict";var ce=ue(75308),Pe=ue(51478);ze.exports=Re,Re.displayName="erb",Re.aliases=[];function Re(Me){Me.register(ce),Me.register(Pe),function(We){We.languages.erb={delimiter:{pattern:/^(\s*)<%=?|%>(?=\s*$)/,lookbehind:!0,alias:"punctuation"},ruby:{pattern:/\s*\S[\s\S]*/,alias:"language-ruby",inside:We.languages.ruby}},We.hooks.add("before-tokenize",function(Te){var Ge=/<%=?(?:[^\r\n]|[\r\n](?!=begin)|[\r\n]=begin\s(?:[^\r\n]|[\r\n](?!=end))*[\r\n]=end)+?%>/g;We.languages["markup-templating"].buildPlaceholders(Te,"erb",Ge)}),We.hooks.add("after-tokenize",function(Te){We.languages["markup-templating"].tokenizePlaceholders(Te,"erb")})}(Me)}},86549:function(ze){"use strict";ze.exports=Ee,Ee.displayName="erlang",Ee.aliases=[];function Ee(ue){ue.languages.erlang={comment:/%.+/,string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},"quoted-function":{pattern:/'(?:\\.|[^\\'\r\n])+'(?=\()/,alias:"function"},"quoted-atom":{pattern:/'(?:\\.|[^\\'\r\n])+'/,alias:"atom"},boolean:/\b(?:false|true)\b/,keyword:/\b(?:after|case|catch|end|fun|if|of|receive|try|when)\b/,number:[/\$\\?./,/\b\d+#[a-z0-9]+/i,/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i],function:/\b[a-z][\w@]*(?=\()/,variable:{pattern:/(^|[^@])(?:\b|\?)[A-Z_][\w@]*/,lookbehind:!0},operator:[/[=\/<>:]=|=[:\/]=|\+\+?|--?|[=*\/!]|\b(?:and|andalso|band|bnot|bor|bsl|bsr|bxor|div|not|or|orelse|rem|xor)\b/,{pattern:/(^|[^<])<(?!<)/,lookbehind:!0},{pattern:/(^|[^>])>(?!>)/,lookbehind:!0}],atom:/\b[a-z][\w@]*/,punctuation:/[()[\]{}:;,.#|]|<<|>>/}}},37079:function(ze,Ee,ue){"use strict";var ce=ue(33978),Pe=ue(51478);ze.exports=Re,Re.displayName="etlua",Re.aliases=[];function Re(Me){Me.register(ce),Me.register(Pe),function(We){We.languages.etlua={delimiter:{pattern:/^<%[-=]?|-?%>$/,alias:"punctuation"},"language-lua":{pattern:/[\s\S]+/,inside:We.languages.lua}},We.hooks.add("before-tokenize",function(Te){var Ge=/<%[\s\S]+?%>/g;We.languages["markup-templating"].buildPlaceholders(Te,"etlua",Ge)}),We.hooks.add("after-tokenize",function(Te){We.languages["markup-templating"].tokenizePlaceholders(Te,"etlua")})}(Me)}},59250:function(ze){"use strict";ze.exports=Ee,Ee.displayName="excelFormula",Ee.aliases=[];function Ee(ue){ue.languages["excel-formula"]={comment:{pattern:/(\bN\(\s*)"(?:[^"]|"")*"(?=\s*\))/i,lookbehind:!0,greedy:!0},string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},reference:{pattern:/(?:'[^']*'|(?:[^\s()[\]{}<>*?"';,$&]*\[[^^\s()[\]{}<>*?"']+\])?\w+)!/,greedy:!0,alias:"string",inside:{operator:/!$/,punctuation:/'/,sheet:{pattern:/[^[\]]+$/,alias:"function"},file:{pattern:/\[[^[\]]+\]$/,inside:{punctuation:/[[\]]/}},path:/[\s\S]+/}},"function-name":{pattern:/\b[A-Z]\w*(?=\()/i,alias:"keyword"},range:{pattern:/\$?\b(?:[A-Z]+\$?\d+:\$?[A-Z]+\$?\d+|[A-Z]+:\$?[A-Z]+|\d+:\$?\d+)\b/i,alias:"property",inside:{operator:/:/,cell:/\$?[A-Z]+\$?\d+/i,column:/\$?[A-Z]+/i,row:/\$?\d+/}},cell:{pattern:/\b[A-Z]+\d+\b|\$[A-Za-z]+\$?\d+\b|\b[A-Za-z]+\$\d+\b/,alias:"property"},number:/(?:\b\d+(?:\.\d+)?|\B\.\d+)(?:e[+-]?\d+)?\b/i,boolean:/\b(?:FALSE|TRUE)\b/i,operator:/[-+*/^%=&,]|<[=>]?|>=?/,punctuation:/[[\]();{}|]/},ue.languages.xlsx=ue.languages.xls=ue.languages["excel-formula"]}},81226:function(ze){"use strict";ze.exports=Ee,Ee.displayName="factor",Ee.aliases=[];function Ee(ue){(function(ce){var Pe={function:/\b(?:BUGS?|FIX(?:MES?)?|NOTES?|TODOS?|XX+|HACKS?|WARN(?:ING)?|\?{2,}|!{2,})\b/},Re={number:/\\[^\s']|%\w/},Me={comment:[{pattern:/(^|\s)(?:! .*|!$)/,lookbehind:!0,inside:Pe},{pattern:/(^|\s)\/\*\s[\s\S]*?\*\/(?=\s|$)/,lookbehind:!0,greedy:!0,inside:Pe},{pattern:/(^|\s)!\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,lookbehind:!0,greedy:!0,inside:Pe}],number:[{pattern:/(^|\s)[+-]?\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?0(?:b[01]+|o[0-7]+|d\d+|x[\dA-F]+)(?=\s|$)/i,lookbehind:!0},{pattern:/(^|\s)[+-]?\d+\/\d+\.?(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)\+?\d+\+\d+\/\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)-\d+-\d+\/\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?(?:\d*\.\d+|\d+\.\d*|\d+)(?:e[+-]?\d+)?(?=\s|$)/i,lookbehind:!0},{pattern:/(^|\s)NAN:\s+[\da-fA-F]+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?0(?:b1\.[01]*|o1\.[0-7]*|d1\.\d*|x1\.[\dA-F]*)p\d+(?=\s|$)/i,lookbehind:!0}],regexp:{pattern:/(^|\s)R\/\s(?:\\\S|[^\\/])*\/(?:[idmsr]*|[idmsr]+-[idmsr]+)(?=\s|$)/,lookbehind:!0,alias:"number",inside:{variable:/\\\S/,keyword:/[+?*\[\]^$(){}.|]/,operator:{pattern:/(\/)[idmsr]+(?:-[idmsr]+)?/,lookbehind:!0}}},boolean:{pattern:/(^|\s)[tf](?=\s|$)/,lookbehind:!0},"custom-string":{pattern:/(^|\s)[A-Z0-9\-]+"\s(?:\\\S|[^"\\])*"/,lookbehind:!0,greedy:!0,alias:"string",inside:{number:/\\\S|%\w|\//}},"multiline-string":[{pattern:/(^|\s)STRING:\s+\S+(?:\n|\r\n).*(?:\n|\r\n)\s*;(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:{number:Re.number,"semicolon-or-setlocal":{pattern:/([\r\n][ \t]*);(?=\s|$)/,lookbehind:!0,alias:"function"}}},{pattern:/(^|\s)HEREDOC:\s+\S+(?:\n|\r\n).*(?:\n|\r\n)\s*\S+(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:Re},{pattern:/(^|\s)\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:Re}],"special-using":{pattern:/(^|\s)USING:(?:\s\S+)*(?=\s+;(?:\s|$))/,lookbehind:!0,alias:"function",inside:{string:{pattern:/(\s)[^:\s]+/,lookbehind:!0}}},"stack-effect-delimiter":[{pattern:/(^|\s)(?:call|eval|execute)?\((?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)--(?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)\)(?=\s|$)/,lookbehind:!0,alias:"operator"}],combinators:{pattern:null,lookbehind:!0,alias:"keyword"},"kernel-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"sequences-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"math-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"constructor-word":{pattern:/(^|\s)<(?!=+>|-+>)\S+>(?=\s|$)/,lookbehind:!0,alias:"keyword"},"other-builtin-syntax":{pattern:null,lookbehind:!0,alias:"operator"},"conventionally-named-word":{pattern:/(^|\s)(?!")(?:(?:change|new|set|with)-\S+|\$\S+|>[^>\s]+|[^:>\s]+>|[^>\s]+>[^>\s]+|\+[^+\s]+\+|[^?\s]+\?|\?[^?\s]+|[^>\s]+>>|>>[^>\s]+|[^<\s]+<<|\([^()\s]+\)|[^!\s]+!|[^*\s]\S*\*|[^.\s]\S*\.)(?=\s|$)/,lookbehind:!0,alias:"keyword"},"colon-syntax":{pattern:/(^|\s)(?:[A-Z0-9\-]+#?)?:{1,2}\s+(?:;\S+|(?!;)\S+)(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"function"},"semicolon-or-setlocal":{pattern:/(\s)(?:;|:>)(?=\s|$)/,lookbehind:!0,alias:"function"},"curly-brace-literal-delimiter":[{pattern:/(^|\s)[a-z]*\{(?=\s)/i,lookbehind:!0,alias:"operator"},{pattern:/(\s)\}(?=\s|$)/,lookbehind:!0,alias:"operator"}],"quotation-delimiter":[{pattern:/(^|\s)\[(?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)\](?=\s|$)/,lookbehind:!0,alias:"operator"}],"normal-word":{pattern:/(^|\s)[^"\s]\S*(?=\s|$)/,lookbehind:!0},string:{pattern:/"(?:\\\S|[^"\\])*"/,greedy:!0,inside:Re}},We=function(Qe){return(Qe+"").replace(/([.?*+\^$\[\]\\(){}|\-])/g,"\\$1")},Te=function(Qe){return new RegExp("(^|\\s)(?:"+Qe.map(We).join("|")+")(?=\\s|$)")},Ge={"kernel-builtin":["or","2nipd","4drop","tuck","wrapper","nip","wrapper?","callstack>array","die","dupd","callstack","callstack?","3dup","hashcode","pick","4nip","build",">boolean","nipd","clone","5nip","eq?","?","=","swapd","2over","clear","2dup","get-retainstack","not","tuple?","dup","3nipd","call","-rotd","object","drop","assert=","assert?","-rot","execute","boa","get-callstack","curried?","3drop","pickd","overd","over","roll","3nip","swap","and","2nip","rotd","throw","(clone)","hashcode*","spin","reach","4dup","equal?","get-datastack","assert","2drop","<wrapper>","boolean?","identity-hashcode","identity-tuple?","null","composed?","new","5drop","rot","-roll","xor","identity-tuple","boolean"],"other-builtin-syntax":["=======","recursive","flushable",">>","<<<<<<","M\\","B","PRIVATE>","\\","======","final","inline","delimiter","deprecated","<PRIVATE",">>>>>>","<<<<<<<","parse-complex","malformed-complex","read-only",">>>>>>>","call-next-method","<<","foldable","$","$[","${"],"sequences-builtin":["member-eq?","mismatch","append","assert-sequence=","longer","repetition","clone-like","3sequence","assert-sequence?","last-index-from","reversed","index-from","cut*","pad-tail","join-as","remove-eq!","concat-as","but-last","snip","nths","nth","sequence","longest","slice?","<slice>","remove-nth","tail-slice","empty?","tail*","member?","virtual-sequence?","set-length","drop-prefix","iota","unclip","bounds-error?","unclip-last-slice","non-negative-integer-expected","non-negative-integer-expected?","midpoint@","longer?","?set-nth","?first","rest-slice","prepend-as","prepend","fourth","sift","subseq-start","new-sequence","?last","like","first4","1sequence","reverse","slice","virtual@","repetition?","set-last","index","4sequence","max-length","set-second","immutable-sequence","first2","first3","supremum","unclip-slice","suffix!","insert-nth","tail","3append","short","suffix","concat","flip","immutable?","reverse!","2sequence","sum","delete-all","indices","snip-slice","<iota>","check-slice","sequence?","head","append-as","halves","sequence=","collapse-slice","?second","slice-error?","product","bounds-check?","bounds-check","immutable","virtual-exemplar","harvest","remove","pad-head","last","set-fourth","cartesian-product","remove-eq","shorten","shorter","reversed?","shorter?","shortest","head-slice","pop*","tail-slice*","but-last-slice","iota?","append!","cut-slice","new-resizable","head-slice*","sequence-hashcode","pop","set-nth","?nth","second","join","immutable-sequence?","<reversed>","3append-as","virtual-sequence","subseq?","remove-nth!","length","last-index","lengthen","assert-sequence","copy","move","third","first","tail?","set-first","prefix","bounds-error","<repetition>","exchange","surround","cut","min-length","set-third","push-all","head?","subseq-start-from","delete-slice","rest","sum-lengths","head*","infimum","remove!","glue","slice-error","subseq","push","replace-slice","subseq-as","unclip-last"],"math-builtin":["number=","next-power-of-2","?1+","fp-special?","imaginary-part","float>bits","number?","fp-infinity?","bignum?","fp-snan?","denominator","gcd","*","+","fp-bitwise=","-","u>=","/",">=","bitand","power-of-2?","log2-expects-positive","neg?","<","log2",">","integer?","number","bits>double","2/","zero?","bits>float","float?","shift","ratio?","rect>","even?","ratio","fp-sign","bitnot",">fixnum","complex?","/i","integer>fixnum","/f","sgn",">bignum","next-float","u<","u>","mod","recip","rational",">float","2^","integer","fixnum?","neg","fixnum","sq","bignum",">rect","bit?","fp-qnan?","simple-gcd","complex","<fp-nan>","real",">fraction","double>bits","bitor","rem","fp-nan-payload","real-part","log2-expects-positive?","prev-float","align","unordered?","float","fp-nan?","abs","bitxor","integer>fixnum-strict","u<=","odd?","<=","/mod",">integer","real?","rational?","numerator"]};Object.keys(Ge).forEach(function(Qe){Me[Qe].pattern=Te(Ge[Qe])});var st=["2bi","while","2tri","bi*","4dip","both?","same?","tri@","curry","prepose","3bi","?if","tri*","2keep","3keep","curried","2keepd","when","2bi*","2tri*","4keep","bi@","keepdd","do","unless*","tri-curry","if*","loop","bi-curry*","when*","2bi@","2tri@","with","2with","either?","bi","until","3dip","3curry","tri-curry*","tri-curry@","bi-curry","keepd","compose","2dip","if","3tri","unless","tuple","keep","2curry","tri","most","while*","dip","composed","bi-curry@","find-last-from","trim-head-slice","map-as","each-from","none?","trim-tail","partition","if-empty","accumulate*","reject!","find-from","accumulate-as","collector-for-as","reject","map","map-sum","accumulate!","2each-from","follow","supremum-by","map!","unless-empty","collector","padding","reduce-index","replicate-as","infimum-by","trim-tail-slice","count","find-index","filter","accumulate*!","reject-as","map-integers","map-find","reduce","selector","interleave","2map","filter-as","binary-reduce","map-index-as","find","produce","filter!","replicate","cartesian-map","cartesian-each","find-index-from","map-find-last","3map-as","3map","find-last","selector-as","2map-as","2map-reduce","accumulate","each","each-index","accumulate*-as","when-empty","all?","collector-as","push-either","new-like","collector-for","2selector","push-if","2all?","map-reduce","3each","any?","trim-slice","2reduce","change-nth","produce-as","2each","trim","trim-head","cartesian-find","map-index","if-zero","each-integer","unless-zero","(find-integer)","when-zero","find-last-integer","(all-integers?)","times","(each-integer)","find-integer","all-integers?","unless-negative","if-positive","when-positive","when-negative","unless-positive","if-negative","case","2cleave","cond>quot","case>quot","3cleave","wrong-values","to-fixed-point","alist>quot","cond","cleave","call-effect","recursive-hashcode","spread","deep-spread>quot","2||","0||","n||","0&&","2&&","3||","1||","1&&","n&&","3&&","smart-unless*","keep-inputs","reduce-outputs","smart-when*","cleave>array","smart-with","smart-apply","smart-if","inputs/outputs","output>sequence-n","map-outputs","map-reduce-outputs","dropping","output>array","smart-map-reduce","smart-2map-reduce","output>array-n","nullary","input<sequence","append-outputs","drop-inputs","inputs","smart-2reduce","drop-outputs","smart-reduce","preserving","smart-when","outputs","append-outputs-as","smart-unless","smart-if*","sum-outputs","input<sequence-unsafe","output>sequence"];Me.combinators.pattern=Te(st),ce.languages.factor=Me})(ue)}},65245:function(ze){"use strict";ze.exports=Ee,Ee.displayName="$false",Ee.aliases=[];function Ee(ue){(function(ce){ce.languages.false={comment:{pattern:/\{[^}]*\}/},string:{pattern:/"[^"]*"/,greedy:!0},"character-code":{pattern:/'(?:[^\r]|\r\n?)/,alias:"number"},"assembler-code":{pattern:/\d+`/,alias:"important"},number:/\d+/,operator:/[-!#$%&'*+,./:;=>?@\\^_`|~ßø]/,punctuation:/\[|\]/,variable:/[a-z]/,"non-standard":{pattern:/[()<BDO®]/,alias:"bold"}}})(ue)}},25040:function(ze){"use strict";ze.exports=Ee,Ee.displayName="firestoreSecurityRules",Ee.aliases=[];function Ee(ue){ue.languages["firestore-security-rules"]=ue.languages.extend("clike",{comment:/\/\/.*/,keyword:/\b(?:allow|function|if|match|null|return|rules_version|service)\b/,operator:/&&|\|\||[<>!=]=?|[-+*/%]|\b(?:in|is)\b/}),delete ue.languages["firestore-security-rules"]["class-name"],ue.languages.insertBefore("firestore-security-rules","keyword",{path:{pattern:/(^|[\s(),])(?:\/(?:[\w\xA0-\uFFFF]+|\{[\w\xA0-\uFFFF]+(?:=\*\*)?\}|\$\([\w\xA0-\uFFFF.]+\)))+/,lookbehind:!0,greedy:!0,inside:{variable:{pattern:/\{[\w\xA0-\uFFFF]+(?:=\*\*)?\}|\$\([\w\xA0-\uFFFF.]+\)/,inside:{operator:/=/,keyword:/\*\*/,punctuation:/[.$(){}]/}},punctuation:/\//}},method:{pattern:/(\ballow\s+)[a-z]+(?:\s*,\s*[a-z]+)*(?=\s*[:;])/,lookbehind:!0,alias:"builtin",inside:{punctuation:/,/}}})}},40284:function(ze){"use strict";ze.exports=Ee,Ee.displayName="flow",Ee.aliases=[];function Ee(ue){(function(ce){ce.languages.flow=ce.languages.extend("javascript",{}),ce.languages.insertBefore("flow","keyword",{type:[{pattern:/\b(?:[Bb]oolean|Function|[Nn]umber|[Ss]tring|any|mixed|null|void)\b/,alias:"tag"}]}),ce.languages.flow["function-variable"].pattern=/(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=\s*(?:function\b|(?:\([^()]*\)(?:\s*:\s*\w+)?|(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/i,delete ce.languages.flow.parameter,ce.languages.insertBefore("flow","operator",{"flow-punctuation":{pattern:/\{\||\|\}/,alias:"punctuation"}}),Array.isArray(ce.languages.flow.keyword)||(ce.languages.flow.keyword=[ce.languages.flow.keyword]),ce.languages.flow.keyword.unshift({pattern:/(^|[^$]\b)(?:Class|declare|opaque|type)\b(?!\$)/,lookbehind:!0},{pattern:/(^|[^$]\B)\$(?:Diff|Enum|Exact|Keys|ObjMap|PropertyType|Record|Shape|Subtype|Supertype|await)\b(?!\$)/,lookbehind:!0})})(ue)}},39187:function(ze){"use strict";ze.exports=Ee,Ee.displayName="fortran",Ee.aliases=[];function Ee(ue){ue.languages.fortran={"quoted-number":{pattern:/[BOZ](['"])[A-F0-9]+\1/i,alias:"number"},string:{pattern:/(?:\b\w+_)?(['"])(?:\1\1|&(?:\r\n?|\n)(?:[ \t]*!.*(?:\r\n?|\n)|(?![ \t]*!))|(?!\1).)*(?:\1|&)/,inside:{comment:{pattern:/(&(?:\r\n?|\n)\s*)!.*/,lookbehind:!0}}},comment:{pattern:/!.*/,greedy:!0},boolean:/\.(?:FALSE|TRUE)\.(?:_\w+)?/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[ED][+-]?\d+)?(?:_\w+)?/i,keyword:[/\b(?:CHARACTER|COMPLEX|DOUBLE ?PRECISION|INTEGER|LOGICAL|REAL)\b/i,/\b(?:END ?)?(?:BLOCK ?DATA|DO|FILE|FORALL|FUNCTION|IF|INTERFACE|MODULE(?! PROCEDURE)|PROGRAM|SELECT|SUBROUTINE|TYPE|WHERE)\b/i,/\b(?:ALLOCATABLE|ALLOCATE|BACKSPACE|CALL|CASE|CLOSE|COMMON|CONTAINS|CONTINUE|CYCLE|DATA|DEALLOCATE|DIMENSION|DO|END|EQUIVALENCE|EXIT|EXTERNAL|FORMAT|GO ?TO|IMPLICIT(?: NONE)?|INQUIRE|INTENT|INTRINSIC|MODULE PROCEDURE|NAMELIST|NULLIFY|OPEN|OPTIONAL|PARAMETER|POINTER|PRINT|PRIVATE|PUBLIC|READ|RETURN|REWIND|SAVE|SELECT|STOP|TARGET|WHILE|WRITE)\b/i,/\b(?:ASSIGNMENT|DEFAULT|ELEMENTAL|ELSE|ELSEIF|ELSEWHERE|ENTRY|IN|INCLUDE|INOUT|KIND|NULL|ONLY|OPERATOR|OUT|PURE|RECURSIVE|RESULT|SEQUENCE|STAT|THEN|USE)\b/i],operator:[/\*\*|\/\/|=>|[=\/]=|[<>]=?|::|[+\-*=%]|\.[A-Z]+\./i,{pattern:/(^|(?!\().)\/(?!\))/,lookbehind:!0}],punctuation:/\(\/|\/\)|[(),;:&]/}}},34302:function(ze){"use strict";ze.exports=Ee,Ee.displayName="fsharp",Ee.aliases=[];function Ee(ue){ue.languages.fsharp=ue.languages.extend("clike",{comment:[{pattern:/(^|[^\\])\(\*(?!\))[\s\S]*?\*\)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(?:"""[\s\S]*?"""|@"(?:""|[^"])*"|"(?:\\[\s\S]|[^\\"])*")B?/,greedy:!0},"class-name":{pattern:/(\b(?:exception|inherit|interface|new|of|type)\s+|\w\s*:\s*|\s:\??>\s*)[.\w]+\b(?:\s*(?:->|\*)\s*[.\w]+\b)*(?!\s*[:.])/,lookbehind:!0,inside:{operator:/->|\*/,punctuation:/\./}},keyword:/\b(?:let|return|use|yield)(?:!\B|\b)|\b(?:abstract|and|as|asr|assert|atomic|base|begin|break|checked|class|component|const|constraint|constructor|continue|default|delegate|do|done|downcast|downto|eager|elif|else|end|event|exception|extern|external|false|finally|fixed|for|fun|function|functor|global|if|in|include|inherit|inline|interface|internal|land|lazy|lor|lsl|lsr|lxor|match|member|method|mixin|mod|module|mutable|namespace|new|not|null|object|of|open|or|override|parallel|private|process|protected|public|pure|rec|sealed|select|sig|static|struct|tailcall|then|to|trait|true|try|type|upcast|val|virtual|void|volatile|when|while|with)\b/,number:[/\b0x[\da-fA-F]+(?:LF|lf|un)?\b/,/\b0b[01]+(?:uy|y)?\b/,/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[fm]|e[+-]?\d+)?\b/i,/\b\d+(?:[IlLsy]|UL|u[lsy]?)?\b/],operator:/([<>~&^])\1\1|([*.:<>&])\2|<-|->|[!=:]=|<?\|{1,3}>?|\??(?:<=|>=|<>|[-+*/%=<>])\??|[!?^&]|~[+~-]|:>|:\?>?/}),ue.languages.insertBefore("fsharp","keyword",{preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(^#)\b(?:else|endif|if|light|line|nowarn)\b/,lookbehind:!0,alias:"keyword"}}}}),ue.languages.insertBefore("fsharp","punctuation",{"computation-expression":{pattern:/\b[_a-z]\w*(?=\s*\{)/i,alias:"keyword"}}),ue.languages.insertBefore("fsharp","string",{annotation:{pattern:/\[<.+?>\]/,greedy:!0,inside:{punctuation:/^\[<|>\]$/,"class-name":{pattern:/^\w+$|(^|;\s*)[A-Z]\w*(?=\()/,lookbehind:!0},"annotation-content":{pattern:/[\s\S]+/,inside:ue.languages.fsharp}}},char:{pattern:/'(?:[^\\']|\\(?:.|\d{3}|x[a-fA-F\d]{2}|u[a-fA-F\d]{4}|U[a-fA-F\d]{8}))'B?/,greedy:!0}})}},90515:function(ze,Ee,ue){"use strict";var ce=ue(51478);ze.exports=Pe,Pe.displayName="ftl",Pe.aliases=[];function Pe(Re){Re.register(ce),function(Me){for(var We=/[^<()"']|\((?:<expr>)*\)|<(?!#--)|<#--(?:[^-]|-(?!->))*-->|"(?:[^\\"]|\\.)*"|'(?:[^\\']|\\.)*'/.source,Te=0;Te<2;Te++)We=We.replace(/<expr>/g,function(){return We});We=We.replace(/<expr>/g,/[^\s\S]/.source);var Ge={comment:/<#--[\s\S]*?-->/,string:[{pattern:/\br("|')(?:(?!\1)[^\\]|\\.)*\1/,greedy:!0},{pattern:RegExp(/("|')(?:(?!\1|\$\{)[^\\]|\\.|\$\{(?:(?!\})(?:<expr>))*\})*\1/.source.replace(/<expr>/g,function(){return We})),greedy:!0,inside:{interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\\\)*)\$\{(?:(?!\})(?:<expr>))*\}/.source.replace(/<expr>/g,function(){return We})),lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:null}}}}],keyword:/\b(?:as)\b/,boolean:/\b(?:false|true)\b/,"builtin-function":{pattern:/((?:^|[^?])\?\s*)\w+/,lookbehind:!0,alias:"function"},function:/\b\w+(?=\s*\()/,number:/\b\d+(?:\.\d+)?\b/,operator:/\.\.[<*!]?|->|--|\+\+|&&|\|\||\?{1,2}|[-+*/%!=<>]=?|\b(?:gt|gte|lt|lte)\b/,punctuation:/[,;.:()[\]{}]/};Ge.string[1].inside.interpolation.inside.rest=Ge,Me.languages.ftl={"ftl-comment":{pattern:/^<#--[\s\S]*/,alias:"comment"},"ftl-directive":{pattern:/^<[\s\S]+>$/,inside:{directive:{pattern:/(^<\/?)[#@][a-z]\w*/i,lookbehind:!0,alias:"keyword"},punctuation:/^<\/?|\/?>$/,content:{pattern:/\s*\S[\s\S]*/,alias:"ftl",inside:Ge}}},"ftl-interpolation":{pattern:/^\$\{[\s\S]*\}$/,inside:{punctuation:/^\$\{|\}$/,content:{pattern:/\s*\S[\s\S]*/,alias:"ftl",inside:Ge}}}},Me.hooks.add("before-tokenize",function(st){var Qe=RegExp(/<#--[\s\S]*?-->|<\/?[#@][a-zA-Z](?:<expr>)*?>|\$\{(?:<expr>)*?\}/.source.replace(/<expr>/g,function(){return We}),"gi");Me.languages["markup-templating"].buildPlaceholders(st,"ftl",Qe)}),Me.hooks.add("after-tokenize",function(st){Me.languages["markup-templating"].tokenizePlaceholders(st,"ftl")})}(Re)}},33534:function(ze){"use strict";ze.exports=Ee,Ee.displayName="gap",Ee.aliases=[];function Ee(ue){ue.languages.gap={shell:{pattern:/^gap>[\s\S]*?(?=^gap>|$(?![\s\S]))/m,greedy:!0,inside:{gap:{pattern:/^(gap>).+(?:(?:\r(?:\n|(?!\n))|\n)>.*)*/,lookbehind:!0,inside:null},punctuation:/^gap>/}},comment:{pattern:/#.*/,greedy:!0},string:{pattern:/(^|[^\\'"])(?:'(?:[^\r\n\\']|\\.){1,10}'|"(?:[^\r\n\\"]|\\.)*"(?!")|"""[\s\S]*?""")/,lookbehind:!0,greedy:!0,inside:{continuation:{pattern:/([\r\n])>/,lookbehind:!0,alias:"punctuation"}}},keyword:/\b(?:Assert|Info|IsBound|QUIT|TryNextMethod|Unbind|and|atomic|break|continue|do|elif|else|end|fi|for|function|if|in|local|mod|not|od|or|quit|readonly|readwrite|rec|repeat|return|then|until|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:{pattern:/(^|[^\w.]|\.\.)(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?(?:_[a-z]?)?(?=$|[^\w.]|\.\.)/,lookbehind:!0},continuation:{pattern:/([\r\n])>/,lookbehind:!0,alias:"punctuation"},operator:/->|[-+*/^~=!]|<>|[<>]=?|:=|\.\./,punctuation:/[()[\]{},;.:]/},ue.languages.gap.shell.inside.gap.inside=ue.languages.gap}},9885:function(ze){"use strict";ze.exports=Ee,Ee.displayName="gcode",Ee.aliases=[];function Ee(ue){ue.languages.gcode={comment:/;.*|\B\(.*?\)\B/,string:{pattern:/"(?:""|[^"])*"/,greedy:!0},keyword:/\b[GM]\d+(?:\.\d+)?\b/,property:/\b[A-Z]/,checksum:{pattern:/(\*)\d+/,lookbehind:!0,alias:"number"},punctuation:/[:*]/}}},76364:function(ze){"use strict";ze.exports=Ee,Ee.displayName="gdscript",Ee.aliases=[];function Ee(ue){ue.languages.gdscript={comment:/#.*/,string:{pattern:/@?(?:("|')(?:(?!\1)[^\n\\]|\\[\s\S])*\1(?!"|')|"""(?:[^\\]|\\[\s\S])*?""")/,greedy:!0},"class-name":{pattern:/(^(?:class|class_name|extends)[ \t]+|^export\([ \t]*|\bas[ \t]+|(?:\b(?:const|var)[ \t]|[,(])[ \t]*\w+[ \t]*:[ \t]*|->[ \t]*)[a-zA-Z_]\w*/m,lookbehind:!0},keyword:/\b(?:and|as|assert|break|breakpoint|class|class_name|const|continue|elif|else|enum|export|extends|for|func|if|in|is|master|mastersync|match|not|null|onready|or|pass|preload|puppet|puppetsync|remote|remotesync|return|self|setget|signal|static|tool|var|while|yield)\b/,function:/\b[a-z_]\w*(?=[ \t]*\()/i,variable:/\$\w+/,number:[/\b0b[01_]+\b|\b0x[\da-fA-F_]+\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.[\d_]+)(?:e[+-]?[\d_]+)?\b/,/\b(?:INF|NAN|PI|TAU)\b/],constant:/\b[A-Z][A-Z_\d]*\b/,boolean:/\b(?:false|true)\b/,operator:/->|:=|&&|\|\||<<|>>|[-+*/%&|!<>=]=?|[~^]/,punctuation:/[.:,;()[\]{}]/}}},56452:function(ze){"use strict";ze.exports=Ee,Ee.displayName="gedcom",Ee.aliases=[];function Ee(ue){ue.languages.gedcom={"line-value":{pattern:/(^[\t ]*\d+ +(?:@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@ +)?\w+ ).+/m,lookbehind:!0,inside:{pointer:{pattern:/^@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@$/,alias:"variable"}}},tag:{pattern:/(^[\t ]*\d+ +(?:@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@ +)?)\w+/m,lookbehind:!0,alias:"string"},level:{pattern:/(^[\t ]*)\d+/m,lookbehind:!0,alias:"number"},pointer:{pattern:/@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@/,alias:"variable"}}}},8477:function(ze){"use strict";ze.exports=Ee,Ee.displayName="gherkin",Ee.aliases=[];function Ee(ue){(function(ce){var Pe=/(?:\r?\n|\r)[ \t]*\|.+\|(?:(?!\|).)*/.source;ce.languages.gherkin={pystring:{pattern:/("""|''')[\s\S]+?\1/,alias:"string"},comment:{pattern:/(^[ \t]*)#.*/m,lookbehind:!0},tag:{pattern:/(^[ \t]*)@\S*/m,lookbehind:!0},feature:{pattern:/((?:^|\r?\n|\r)[ \t]*)(?:Ability|Ahoy matey!|Arwedd|Aspekt|Besigheid Behoefte|Business Need|Caracteristica|Característica|Egenskab|Egenskap|Eiginleiki|Feature|Fīča|Fitur|Fonctionnalité|Fonksyonalite|Funcionalidade|Funcionalitat|Functionalitate|Funcţionalitate|Funcționalitate|Functionaliteit|Fungsi|Funkcia|Funkcija|Funkcionalitāte|Funkcionalnost|Funkcja|Funksie|Funktionalität|Funktionalitéit|Funzionalità|Hwaet|Hwæt|Jellemző|Karakteristik|Lastnost|Mak|Mogucnost|laH|Mogućnost|Moznosti|Možnosti|OH HAI|Omadus|Ominaisuus|Osobina|Özellik|Potrzeba biznesowa|perbogh|poQbogh malja'|Požadavek|Požiadavka|Pretty much|Qap|Qu'meH 'ut|Savybė|Tính năng|Trajto|Vermoë|Vlastnosť|Właściwość|Značilnost|Δυνατότητα|Λειτουργία|Могућност|Мөмкинлек|Особина|Свойство|Үзенчәлеклелек|Функционал|Функционалност|Функция|Функціонал|תכונה|خاصية|خصوصیت|صلاحیت|کاروبار کی ضرورت|وِیژگی|रूप लेख|ਖਾਸੀਅਤ|ਨਕਸ਼ ਨੁਹਾਰ|ਮੁਹਾਂਦਰਾ|గుణము|ಹೆಚ್ಚಳ|ความต้องการทางธุรกิจ|ความสามารถ|โครงหลัก|기능|フィーチャ|功能|機能):(?:[^:\r\n]+(?:\r?\n|\r|$))*/,lookbehind:!0,inside:{important:{pattern:/(:)[^\r\n]+/,lookbehind:!0},keyword:/[^:\r\n]+:/}},scenario:{pattern:/(^[ \t]*)(?:Abstract Scenario|Abstrakt Scenario|Achtergrond|Aer|Ær|Agtergrond|All y'all|Antecedentes|Antecedents|Atburðarás|Atburðarásir|Awww, look mate|B4|Background|Baggrund|Bakgrund|Bakgrunn|Bakgrunnur|Beispiele|Beispiller|Bối cảnh|Cefndir|Cenario|Cenário|Cenario de Fundo|Cenário de Fundo|Cenarios|Cenários|Contesto|Context|Contexte|Contexto|Conto|Contoh|Contone|Dæmi|Dasar|Dead men tell no tales|Delineacao do Cenario|Delineação do Cenário|Dis is what went down|Dữ liệu|Dyagram Senaryo|Dyagram senaryo|Egzanp|Ejemplos|Eksempler|Ekzemploj|Enghreifftiau|Esbozo do escenario|Escenari|Escenario|Esempi|Esquema de l'escenari|Esquema del escenario|Esquema do Cenario|Esquema do Cenário|EXAMPLZ|Examples|Exempel|Exemple|Exemples|Exemplos|First off|Fono|Forgatókönyv|Forgatókönyv vázlat|Fundo|Geçmiş|Grundlage|Hannergrond|ghantoH|Háttér|Heave to|Istorik|Juhtumid|Keadaan|Khung kịch bản|Khung tình huống|Kịch bản|Koncept|Konsep skenario|Kontèks|Kontekst|Kontekstas|Konteksts|Kontext|Konturo de la scenaro|Latar Belakang|lut chovnatlh|lut|lutmey|Lýsing Atburðarásar|Lýsing Dæma|MISHUN SRSLY|MISHUN|Menggariskan Senario|mo'|Náčrt Scenára|Náčrt Scénáře|Náčrt Scenáru|Oris scenarija|Örnekler|Osnova|Osnova Scenára|Osnova scénáře|Osnutek|Ozadje|Paraugs|Pavyzdžiai|Példák|Piemēri|Plan du scénario|Plan du Scénario|Plan Senaryo|Plan senaryo|Plang vum Szenario|Pozadí|Pozadie|Pozadina|Príklady|Příklady|Primer|Primeri|Primjeri|Przykłady|Raamstsenaarium|Reckon it's like|Rerefons|Scenár|Scénář|Scenarie|Scenarij|Scenarijai|Scenarijaus šablonas|Scenariji|Scenārijs|Scenārijs pēc parauga|Scenarijus|Scenario|Scénario|Scenario Amlinellol|Scenario Outline|Scenario Template|Scenariomal|Scenariomall|Scenarios|Scenariu|Scenariusz|Scenaro|Schema dello scenario|Se ðe|Se the|Se þe|Senario|Senaryo Deskripsyon|Senaryo deskripsyon|Senaryo|Senaryo taslağı|Shiver me timbers|Situācija|Situai|Situasie Uiteensetting|Situasie|Skenario konsep|Skenario|Skica|Structura scenariu|Structură scenariu|Struktura scenarija|Stsenaarium|Swa hwaer swa|Swa|Swa hwær swa|Szablon scenariusza|Szenario|Szenariogrundriss|Tapaukset|Tapaus|Tapausaihio|Taust|Tausta|Template Keadaan|Template Senario|Template Situai|The thing of it is|Tình huống|Variantai|Voorbeelde|Voorbeelden|Wharrimean is|Yo-ho-ho|You'll wanna|Założenia|Παραδείγματα|Περιγραφή Σεναρίου|Σενάρια|Σενάριο|Υπόβαθρο|Кереш|Контекст|Концепт|Мисаллар|Мисоллар|Основа|Передумова|Позадина|Предистория|Предыстория|Приклади|Пример|Примери|Примеры|Рамка на сценарий|Скица|Структура сценарија|Структура сценария|Структура сценарію|Сценарий|Сценарий структураси|Сценарийның төзелеше|Сценарији|Сценарио|Сценарій|Тарих|Үрнәкләр|דוגמאות|רקע|תבנית תרחיש|תרחיש|الخلفية|الگوی سناریو|امثلة|پس منظر|زمینه|سناریو|سيناريو|سيناريو مخطط|مثالیں|منظر نامے کا خاکہ|منظرنامہ|نمونه ها|उदाहरण|परिदृश्य|परिदृश्य रूपरेखा|पृष्ठभूमि|ਉਦਾਹਰਨਾਂ|ਪਟਕਥਾ|ਪਟਕਥਾ ਢਾਂਚਾ|ਪਟਕਥਾ ਰੂਪ ਰੇਖਾ|ਪਿਛੋਕੜ|ఉదాహరణలు|కథనం|నేపథ్యం|సన్నివేశం|ಉದಾಹರಣೆಗಳು|ಕಥಾಸಾರಾಂಶ|ವಿವರಣೆ|ಹಿನ್ನೆಲೆ|โครงสร้างของเหตุการณ์|ชุดของตัวอย่าง|ชุดของเหตุการณ์|แนวคิด|สรุปเหตุการณ์|เหตุการณ์|배경|시나리오|시나리오 개요|예|サンプル|シナリオ|シナリオアウトライン|シナリオテンプレ|シナリオテンプレート|テンプレ|例|例子|剧本|剧本大纲|劇本|劇本大綱|场景|场景大纲|場景|場景大綱|背景):[^:\r\n]*/m,lookbehind:!0,inside:{important:{pattern:/(:)[^\r\n]*/,lookbehind:!0},keyword:/[^:\r\n]+:/}},"table-body":{pattern:RegExp("("+Pe+")(?:"+Pe+")+"),lookbehind:!0,inside:{outline:{pattern:/<[^>]+>/,alias:"variable"},td:{pattern:/\s*[^\s|][^|]*/,alias:"string"},punctuation:/\|/}},"table-head":{pattern:RegExp(Pe),inside:{th:{pattern:/\s*[^\s|][^|]*/,alias:"variable"},punctuation:/\|/}},atrule:{pattern:/(^[ \t]+)(?:'a|'ach|'ej|7|a|A také|A taktiež|A tiež|A zároveň|Aber|Ac|Adott|Akkor|Ak|Aleshores|Ale|Ali|Allora|Alors|Als|Ama|Amennyiben|Amikor|Ampak|an|AN|Ananging|And y'all|And|Angenommen|Anrhegedig a|An|Apabila|Atès|Atesa|Atunci|Avast!|Aye|A|awer|Bagi|Banjur|Bet|Biết|Blimey!|Buh|But at the end of the day I reckon|But y'all|But|BUT|Cal|Când|Cand|Cando|Ce|Cuando|Če|Ða ðe|Ða|Dadas|Dada|Dados|Dado|DaH ghu' bejlu'|dann|Dann|Dano|Dan|Dar|Dat fiind|Data|Date fiind|Date|Dati fiind|Dati|Daţi fiind|Dați fiind|DEN|Dato|De|Den youse gotta|Dengan|Diberi|Diyelim ki|Donada|Donat|Donitaĵo|Do|Dun|Duota|Ðurh|Eeldades|Ef|Eğer ki|Entao|Então|Entón|E|En|Entonces|Epi|És|Etant donnée|Etant donné|Et|Étant données|Étant donnée|Étant donné|Etant données|Etant donnés|Étant donnés|Fakat|Gangway!|Gdy|Gegeben seien|Gegeben sei|Gegeven|Gegewe|ghu' noblu'|Gitt|Given y'all|Given|Givet|Givun|Ha|Cho|I CAN HAZ|In|Ir|It's just unbelievable|I|Ja|Jeśli|Jeżeli|Kad|Kada|Kadar|Kai|Kaj|Když|Keď|Kemudian|Ketika|Khi|Kiedy|Ko|Kuid|Kui|Kun|Lan|latlh|Le sa a|Let go and haul|Le|Lè sa a|Lè|Logo|Lorsqu'<|Lorsque|mä|Maar|Mais|Mając|Ma|Majd|Maka|Manawa|Mas|Men|Menawa|Mutta|Nalika|Nalikaning|Nanging|Når|När|Nato|Nhưng|Niin|Njuk|O zaman|Och|Og|Oletetaan|Ond|Onda|Oraz|Pak|Pero|Però|Podano|Pokiaľ|Pokud|Potem|Potom|Privzeto|Pryd|Quan|Quand|Quando|qaSDI'|Så|Sed|Se|Siis|Sipoze ke|Sipoze Ke|Sipoze|Si|Şi|Și|Soit|Stel|Tada|Tad|Takrat|Tak|Tapi|Ter|Tetapi|Tha the|Tha|Then y'all|Then|Thì|Thurh|Toda|Too right|Un|Und|ugeholl|Và|vaj|Vendar|Ve|wann|Wanneer|WEN|Wenn|When y'all|When|Wtedy|Wun|Y'know|Yeah nah|Yna|Youse know like when|Youse know when youse got|Y|Za predpokladu|Za předpokladu|Zadan|Zadani|Zadano|Zadate|Zadato|Zakładając|Zaradi|Zatati|Þa þe|Þa|Þá|Þegar|Þurh|Αλλά|Δεδομένου|Και|Όταν|Τότε|А також|Агар|Але|Али|Аммо|А|Әгәр|Әйтик|Әмма|Бирок|Ва|Вә|Дадено|Дано|Допустим|Если|Задате|Задати|Задато|И|І|К тому же|Када|Кад|Когато|Когда|Коли|Ләкин|Лекин|Нәтиҗәдә|Нехай|Но|Онда|Припустимо, що|Припустимо|Пусть|Также|Та|Тогда|Тоді|То|Унда|Һәм|Якщо|אבל|אזי|אז|בהינתן|וגם|כאשר|آنگاه|اذاً|اگر|اما|اور|با فرض|بالفرض|بفرض|پھر|تب|ثم|جب|عندما|فرض کیا|لكن|لیکن|متى|هنگامی|و|अगर|और|कदा|किन्तु|चूंकि|जब|तथा|तदा|तब|परन्तु|पर|यदि|ਅਤੇ|ਜਦੋਂ|ਜਿਵੇਂ ਕਿ|ਜੇਕਰ|ਤਦ|ਪਰ|అప్పుడు|ఈ పరిస్థితిలో|కాని|చెప్పబడినది|మరియు|ಆದರೆ|ನಂತರ|ನೀಡಿದ|ಮತ್ತು|ಸ್ಥಿತಿಯನ್ನು|กำหนดให้|ดังนั้น|แต่|เมื่อ|และ|그러면<|그리고<|단<|만약<|만일<|먼저<|조건<|하지만<|かつ<|しかし<|ただし<|ならば<|もし<|並且<|但し<|但是<|假如<|假定<|假設<|假设<|前提<|同时<|同時<|并且<|当<|當<|而且<|那么<|那麼<)(?=[ \t])/m,lookbehind:!0},string:{pattern:/"(?:\\.|[^"\\\r\n])*"|'(?:\\.|[^'\\\r\n])*'/,inside:{outline:{pattern:/<[^>]+>/,alias:"variable"}}},outline:{pattern:/<[^>]+>/,alias:"variable"}}})(ue)}},58230:function(ze){"use strict";ze.exports=Ee,Ee.displayName="git",Ee.aliases=[];function Ee(ue){ue.languages.git={comment:/^#.*/m,deleted:/^[-–].*/m,inserted:/^\+.*/m,string:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,command:{pattern:/^.*\$ git .*$/m,inside:{parameter:/\s--?\w+/}},coord:/^@@.*@@$/m,"commit-sha1":/^commit \w{40}$/m}}},66192:function(ze,Ee,ue){"use strict";var ce=ue(79440);ze.exports=Pe,Pe.displayName="glsl",Pe.aliases=[];function Pe(Re){Re.register(ce),Re.languages.glsl=Re.languages.extend("c",{keyword:/\b(?:active|asm|atomic_uint|attribute|[ibdu]?vec[234]|bool|break|buffer|case|cast|centroid|class|coherent|common|const|continue|d?mat[234](?:x[234])?|default|discard|do|double|else|enum|extern|external|false|filter|fixed|flat|float|for|fvec[234]|goto|half|highp|hvec[234]|[iu]?sampler2DMS(?:Array)?|[iu]?sampler2DRect|[iu]?samplerBuffer|[iu]?samplerCube|[iu]?samplerCubeArray|[iu]?sampler[123]D|[iu]?sampler[12]DArray|[iu]?image2DMS(?:Array)?|[iu]?image2DRect|[iu]?imageBuffer|[iu]?imageCube|[iu]?imageCubeArray|[iu]?image[123]D|[iu]?image[12]DArray|if|in|inline|inout|input|int|interface|invariant|layout|long|lowp|mediump|namespace|noinline|noperspective|out|output|partition|patch|precise|precision|public|readonly|resource|restrict|return|sample|sampler[12]DArrayShadow|sampler[12]DShadow|sampler2DRectShadow|sampler3DRect|samplerCubeArrayShadow|samplerCubeShadow|shared|short|sizeof|smooth|static|struct|subroutine|superp|switch|template|this|true|typedef|uint|uniform|union|unsigned|using|varying|void|volatile|while|writeonly)\b/})}},81084:function(ze){"use strict";ze.exports=Ee,Ee.displayName="gml",Ee.aliases=[];function Ee(ue){ue.languages.gamemakerlanguage=ue.languages.gml=ue.languages.extend("clike",{keyword:/\b(?:break|case|continue|default|do|else|enum|exit|for|globalvar|if|repeat|return|switch|until|var|while)\b/,number:/(?:\b0x[\da-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ulf]{0,4}/i,operator:/--|\+\+|[-+%/=]=?|!=|\*\*?=?|<[<=>]?|>[=>]?|&&?|\^\^?|\|\|?|~|\b(?:and|at|not|or|with|xor)\b/,constant:/\b(?:GM_build_date|GM_version|action_(?:continue|restart|reverse|stop)|all|gamespeed_(?:fps|microseconds)|global|local|noone|other|pi|pointer_(?:invalid|null)|self|timezone_(?:local|utc)|undefined|ev_(?:create|destroy|step|alarm|keyboard|mouse|collision|other|draw|draw_(?:begin|end|post|pre)|keypress|keyrelease|trigger|(?:left|middle|no|right)_button|(?:left|middle|right)_press|(?:left|middle|right)_release|mouse_(?:enter|leave|wheel_down|wheel_up)|global_(?:left|middle|right)_button|global_(?:left|middle|right)_press|global_(?:left|middle|right)_release|joystick(?:1|2)_(?:button1|button2|button3|button4|button5|button6|button7|button8|down|left|right|up)|outside|boundary|game_start|game_end|room_start|room_end|no_more_lives|animation_end|end_of_path|no_more_health|user\d|gui|gui_begin|gui_end|step_(?:begin|end|normal))|vk_(?:alt|anykey|backspace|control|delete|down|end|enter|escape|home|insert|left|nokey|pagedown|pageup|pause|printscreen|return|right|shift|space|tab|up|f\d|numpad\d|add|decimal|divide|lalt|lcontrol|lshift|multiply|ralt|rcontrol|rshift|subtract)|achievement_(?:filter_(?:all_players|favorites_only|friends_only)|friends_info|info|leaderboard_info|our_info|pic_loaded|show_(?:achievement|bank|friend_picker|leaderboard|profile|purchase_prompt|ui)|type_challenge|type_score_challenge)|asset_(?:font|object|path|room|script|shader|sound|sprite|tiles|timeline|unknown)|audio_(?:3d|falloff_(?:exponent_distance|exponent_distance_clamped|inverse_distance|inverse_distance_clamped|linear_distance|linear_distance_clamped|none)|mono|new_system|old_system|stereo)|bm_(?:add|complex|dest_alpha|dest_color|dest_colour|inv_dest_alpha|inv_dest_color|inv_dest_colour|inv_src_alpha|inv_src_color|inv_src_colour|max|normal|one|src_alpha|src_alpha_sat|src_color|src_colour|subtract|zero)|browser_(?:chrome|firefox|ie|ie_mobile|not_a_browser|opera|safari|safari_mobile|tizen|unknown|windows_store)|buffer_(?:bool|f16|f32|f64|fast|fixed|generalerror|grow|invalidtype|network|outofbounds|outofspace|s16|s32|s8|seek_end|seek_relative|seek_start|string|text|u16|u32|u64|u8|vbuffer|wrap)|c_(?:aqua|black|blue|dkgray|fuchsia|gray|green|lime|ltgray|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow)|cmpfunc_(?:always|equal|greater|greaterequal|less|lessequal|never|notequal)|cr_(?:appstart|arrow|beam|cross|default|drag|handpoint|hourglass|none|size_all|size_nesw|size_ns|size_nwse|size_we|uparrow)|cull_(?:clockwise|counterclockwise|noculling)|device_(?:emulator|tablet)|device_ios_(?:ipad|ipad_retina|iphone|iphone5|iphone6|iphone6plus|iphone_retina|unknown)|display_(?:landscape|landscape_flipped|portrait|portrait_flipped)|dll_(?:cdecl|cdel|stdcall)|ds_type_(?:grid|list|map|priority|queue|stack)|ef_(?:cloud|ellipse|explosion|firework|flare|rain|ring|smoke|smokeup|snow|spark|star)|fa_(?:archive|bottom|center|directory|hidden|left|middle|readonly|right|sysfile|top|volumeid)|fb_login_(?:default|fallback_to_webview|forcing_safari|forcing_webview|no_fallback_to_webview|use_system_account)|iap_(?:available|canceled|ev_consume|ev_product|ev_purchase|ev_restore|ev_storeload|failed|purchased|refunded|status_available|status_loading|status_processing|status_restoring|status_unavailable|status_uninitialised|storeload_failed|storeload_ok|unavailable)|leaderboard_type_(?:number|time_mins_secs)|lighttype_(?:dir|point)|matrix_(?:projection|view|world)|mb_(?:any|left|middle|none|right)|network_(?:config_(?:connect_timeout|disable_reliable_udp|enable_reliable_udp|use_non_blocking_socket)|socket_(?:bluetooth|tcp|udp)|type_(?:connect|data|disconnect|non_blocking_connect))|of_challenge_(?:lose|tie|win)|os_(?:android|ios|linux|macosx|ps3|ps4|psvita|unknown|uwp|win32|win8native|windows|winphone|xboxone)|phy_debug_render_(?:aabb|collision_pairs|coms|core_shapes|joints|obb|shapes)|phy_joint_(?:anchor_1_x|anchor_1_y|anchor_2_x|anchor_2_y|angle|angle_limits|damping_ratio|frequency|length_1|length_2|lower_angle_limit|max_force|max_length|max_motor_force|max_motor_torque|max_torque|motor_force|motor_speed|motor_torque|reaction_force_x|reaction_force_y|reaction_torque|speed|translation|upper_angle_limit)|phy_particle_data_flag_(?:category|color|colour|position|typeflags|velocity)|phy_particle_flag_(?:colormixing|colourmixing|elastic|powder|spring|tensile|viscous|wall|water|zombie)|phy_particle_group_flag_(?:rigid|solid)|pr_(?:linelist|linestrip|pointlist|trianglefan|trianglelist|trianglestrip)|ps_(?:distr|shape)_(?:diamond|ellipse|gaussian|invgaussian|line|linear|rectangle)|pt_shape_(?:circle|cloud|disk|explosion|flare|line|pixel|ring|smoke|snow|spark|sphere|square|star)|ty_(?:real|string)|gp_(?:face\d|axislh|axislv|axisrh|axisrv|padd|padl|padr|padu|select|shoulderl|shoulderlb|shoulderr|shoulderrb|start|stickl|stickr)|lb_disp_(?:none|numeric|time_ms|time_sec)|lb_sort_(?:ascending|descending|none)|ov_(?:achievements|community|friends|gamegroup|players|settings)|ugc_(?:filetype_(?:community|microtrans)|list_(?:Favorited|Followed|Published|Subscribed|UsedOrPlayed|VotedDown|VotedOn|VotedUp|WillVoteLater)|match_(?:AllGuides|Artwork|Collections|ControllerBindings|IntegratedGuides|Items|Items_Mtx|Items_ReadyToUse|Screenshots|UsableInGame|Videos|WebGuides)|query_(?:AcceptedForGameRankedByAcceptanceDate|CreatedByFriendsRankedByPublicationDate|FavoritedByFriendsRankedByPublicationDate|NotYetRated)|query_RankedBy(?:NumTimesReported|PublicationDate|TextSearch|TotalVotesAsc|Trend|Vote|VotesUp)|result_success|sortorder_CreationOrder(?:Asc|Desc)|sortorder_(?:ForModeration|LastUpdatedDesc|SubscriptionDateDesc|TitleAsc|VoteScoreDesc)|visibility_(?:friends_only|private|public))|vertex_usage_(?:binormal|blendindices|blendweight|color|colour|depth|fog|normal|position|psize|sample|tangent|texcoord|textcoord)|vertex_type_(?:float\d|color|colour|ubyte4)|input_type|layerelementtype_(?:background|instance|oldtilemap|particlesystem|sprite|tile|tilemap|undefined)|se_(?:chorus|compressor|echo|equalizer|flanger|gargle|none|reverb)|text_type|tile_(?:flip|index_mask|mirror|rotate)|(?:obj|rm|scr|spr)\w+)\b/,variable:/\b(?:alarm|application_surface|async_load|background_(?:alpha|blend|color|colour|foreground|height|hspeed|htiled|index|showcolor|showcolour|visible|vspeed|vtiled|width|x|xscale|y|yscale)|bbox_(?:bottom|left|right|top)|browser_(?:height|width)|caption_(?:health|lives|score)|current_(?:day|hour|minute|month|second|time|weekday|year)|cursor_sprite|debug_mode|delta_time|direction|display_aa|error_(?:last|occurred)|event_(?:action|number|object|type)|fps|fps_real|friction|game_(?:display|project|save)_(?:id|name)|gamemaker_(?:pro|registered|version)|gravity|gravity_direction|(?:h|v)speed|health|iap_data|id|image_(?:alpha|angle|blend|depth|index|number|speed|xscale|yscale)|instance_(?:count|id)|keyboard_(?:key|lastchar|lastkey|string)|layer|lives|mask_index|mouse_(?:button|lastbutton|x|y)|object_index|os_(?:browser|device|type|version)|path_(?:endaction|index|orientation|position|positionprevious|scale|speed)|persistent|phy_(?:rotation|(?:col_normal|collision|com|linear_velocity|position|speed)_(?:x|y)|angular_(?:damping|velocity)|position_(?:x|y)previous|speed|linear_damping|bullet|fixed_rotation|active|mass|inertia|dynamic|kinematic|sleeping|collision_points)|pointer_(?:invalid|null)|room|room_(?:caption|first|height|last|persistent|speed|width)|score|secure_mode|show_(?:health|lives|score)|solid|speed|sprite_(?:height|index|width|xoffset|yoffset)|temp_directory|timeline_(?:index|loop|position|running|speed)|transition_(?:color|kind|steps)|undefined|view_(?:angle|current|enabled|(?:h|v)(?:border|speed)|(?:h|w|x|y)port|(?:h|w|x|y)view|object|surface_id|visible)|visible|webgl_enabled|working_directory|(?:x|y)(?:previous|start)|x|y|argument(?:_relitive|_count|\d)|argument|global|local|other|self)\b/})}},50318:function(ze){"use strict";ze.exports=Ee,Ee.displayName="gn",Ee.aliases=["gni"];function Ee(ue){ue.languages.gn={comment:{pattern:/#.*/,greedy:!0},"string-literal":{pattern:/(^|[^\\"])"(?:[^\r\n"\\]|\\.)*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\{[\s\S]*?\}|[a-zA-Z_]\w*|0x[a-fA-F0-9]{2})/,lookbehind:!0,inside:{number:/^\$0x[\s\S]{2}$/,variable:/^\$\w+$/,"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}},string:/[\s\S]+/}},keyword:/\b(?:else|if)\b/,boolean:/\b(?:false|true)\b/,"builtin-function":{pattern:/\b(?:assert|defined|foreach|import|pool|print|template|tool|toolchain)(?=\s*\()/i,alias:"keyword"},function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:current_cpu|current_os|current_toolchain|default_toolchain|host_cpu|host_os|root_build_dir|root_gen_dir|root_out_dir|target_cpu|target_gen_dir|target_os|target_out_dir)\b/,number:/-?\b\d+\b/,operator:/[-+!=<>]=?|&&|\|\|/,punctuation:/[(){}[\],.]/},ue.languages.gn["string-literal"].inside.interpolation.inside.expression.inside=ue.languages.gn,ue.languages.gni=ue.languages.gn}},95769:function(ze){"use strict";ze.exports=Ee,Ee.displayName="goModule",Ee.aliases=[];function Ee(ue){ue.languages["go-mod"]=ue.languages["go-module"]={comment:{pattern:/\/\/.*/,greedy:!0},version:{pattern:/(^|[\s()[\],])v\d+\.\d+\.\d+(?:[+-][-+.\w]*)?(?![^\s()[\],])/,lookbehind:!0,alias:"number"},"go-version":{pattern:/((?:^|\s)go\s+)\d+(?:\.\d+){1,2}/,lookbehind:!0,alias:"number"},keyword:{pattern:/^([ \t]*)(?:exclude|go|module|replace|require|retract)\b/m,lookbehind:!0},operator:/=>/,punctuation:/[()[\],]/}}},14155:function(ze){"use strict";ze.exports=Ee,Ee.displayName="go",Ee.aliases=[];function Ee(ue){ue.languages.go=ue.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),ue.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete ue.languages.go["class-name"]}},92823:function(ze){"use strict";ze.exports=Ee,Ee.displayName="graphql",Ee.aliases=[];function Ee(ue){ue.languages.graphql={comment:/#.*/,description:{pattern:/(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i,greedy:!0,alias:"string",inside:{"language-markdown":{pattern:/(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/,lookbehind:!0,inside:ue.languages.markdown}}},string:{pattern:/"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},number:/(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,boolean:/\b(?:false|true)\b/,variable:/\$[a-z_]\w*/i,directive:{pattern:/@[a-z_]\w*/i,alias:"function"},"attr-name":{pattern:/\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i,greedy:!0},"atom-input":{pattern:/\b[A-Z]\w*Input\b/,alias:"class-name"},scalar:/\b(?:Boolean|Float|ID|Int|String)\b/,constant:/\b[A-Z][A-Z_\d]*\b/,"class-name":{pattern:/(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/,lookbehind:!0},fragment:{pattern:/(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-mutation":{pattern:/(\bmutation\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-query":{pattern:/(\bquery\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},keyword:/\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/,operator:/[!=|&]|\.{3}/,"property-query":/\w+(?=\s*\()/,object:/\w+(?=\s*\{)/,punctuation:/[!(){}\[\]:=,]/,property:/\w+/},ue.hooks.add("after-tokenize",function(Pe){if(Pe.language!=="graphql")return;var Re=Pe.tokens.filter(function(te){return typeof te!="string"&&te.type!=="comment"&&te.type!=="scalar"}),Me=0;function We(te){return Re[Me+te]}function Te(te,he){he=he||0;for(var se=0;se<te.length;se++){var ge=We(se+he);if(!ge||ge.type!==te[se])return!1}return!0}function Ge(te,he){for(var se=1,ge=Me;ge<Re.length;ge++){var Se=Re[ge],be=Se.content;if(Se.type==="punctuation"&&typeof be=="string"){if(te.test(be))se++;else if(he.test(be)&&(se--,se===0))return ge}}return-1}function st(te,he){var se=te.alias;se?Array.isArray(se)||(te.alias=se=[se]):te.alias=se=[],se.push(he)}for(;Me<Re.length;){var Qe=Re[Me++];if(Qe.type==="keyword"&&Qe.content==="mutation"){var Ye=[];if(Te(["definition-mutation","punctuation"])&&We(1).content==="("){Me+=2;var yt=Ge(/^\($/,/^\)$/);if(yt===-1)continue;for(;Me<yt;Me++){var ot=We(0);ot.type==="variable"&&(st(ot,"variable-input"),Ye.push(ot.content))}Me=yt+1}if(Te(["punctuation","property-query"])&&We(0).content==="{"&&(Me++,st(We(0),"property-mutation"),Ye.length>0)){var Nt=Ge(/^\{$/,/^\}$/);if(Nt===-1)continue;for(var Fe=Me;Fe<Nt;Fe++){var ne=Re[Fe];ne.type==="variable"&&Ye.indexOf(ne.content)>=0&&st(ne,"variable-input")}}}}})}},63092:function(ze){"use strict";ze.exports=Ee,Ee.displayName="groovy",Ee.aliases=[];function Ee(ue){ue.languages.groovy=ue.languages.extend("clike",{string:[{pattern:/("""|''')(?:[^\\]|\\[\s\S])*?\1|\$\/(?:[^/$]|\$(?:[/$]|(?![/$]))|\/(?!\$))*\/\$/,greedy:!0},{pattern:/(["'/])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0}],keyword:/\b(?:abstract|as|assert|boolean|break|byte|case|catch|char|class|const|continue|def|default|do|double|else|enum|extends|final|finally|float|for|goto|if|implements|import|in|instanceof|int|interface|long|native|new|package|private|protected|public|return|short|static|strictfp|super|switch|synchronized|this|throw|throws|trait|transient|try|void|volatile|while)\b/,number:/\b(?:0b[01_]+|0x[\da-f_]+(?:\.[\da-f_p\-]+)?|[\d_]+(?:\.[\d_]+)?(?:e[+-]?\d+)?)[glidf]?\b/i,operator:{pattern:/(^|[^.])(?:~|==?~?|\?[.:]?|\*(?:[.=]|\*=?)?|\.[@&]|\.\.<|\.\.(?!\.)|-[-=>]?|\+[+=]?|!=?|<(?:<=?|=>?)?|>(?:>>?=?|=)?|&[&=]?|\|[|=]?|\/=?|\^=?|%=?)/,lookbehind:!0},punctuation:/\.+|[{}[\];(),:$]/}),ue.languages.insertBefore("groovy","string",{shebang:{pattern:/#!.+/,alias:"comment"}}),ue.languages.insertBefore("groovy","punctuation",{"spock-block":/\b(?:and|cleanup|expect|given|setup|then|when|where):/}),ue.languages.insertBefore("groovy","function",{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:"punctuation"}}),ue.hooks.add("wrap",function(ce){if(ce.language==="groovy"&&ce.type==="string"){var Pe=ce.content.value[0];if(Pe!="'"){var Re=/([^\\])(?:\$(?:\{.*?\}|[\w.]+))/;Pe==="$"&&(Re=/([^\$])(?:\$(?:\{.*?\}|[\w.]+))/),ce.content.value=ce.content.value.replace(/</g,"<").replace(/&/g,"&"),ce.content=ue.highlight(ce.content.value,{expression:{pattern:Re,lookbehind:!0,inside:ue.languages.groovy}}),ce.classes.push(Pe==="/"?"regex":"gstring")}}})}},21550:function(ze,Ee,ue){"use strict";var ce=ue(75308);ze.exports=Pe,Pe.displayName="haml",Pe.aliases=[];function Pe(Re){Re.register(ce),function(Me){Me.languages.haml={"multiline-comment":{pattern:/((?:^|\r?\n|\r)([\t ]*))(?:\/|-#).*(?:(?:\r?\n|\r)\2[\t ].+)*/,lookbehind:!0,alias:"comment"},"multiline-code":[{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*,[\t ]*(?:(?:\r?\n|\r)\2[\t ].*,[\t ]*)*(?:(?:\r?\n|\r)\2[\t ].+)/,lookbehind:!0,inside:Me.languages.ruby},{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*\|[\t ]*(?:(?:\r?\n|\r)\2[\t ].*\|[\t ]*)*/,lookbehind:!0,inside:Me.languages.ruby}],filter:{pattern:/((?:^|\r?\n|\r)([\t ]*)):[\w-]+(?:(?:\r?\n|\r)(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/,lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"symbol"}}},markup:{pattern:/((?:^|\r?\n|\r)[\t ]*)<.+/,lookbehind:!0,inside:Me.languages.markup},doctype:{pattern:/((?:^|\r?\n|\r)[\t ]*)!!!(?: .+)?/,lookbehind:!0},tag:{pattern:/((?:^|\r?\n|\r)[\t ]*)[%.#][\w\-#.]*[\w\-](?:\([^)]+\)|\{(?:\{[^}]+\}|[^{}])+\}|\[[^\]]+\])*[\/<>]*/,lookbehind:!0,inside:{attributes:[{pattern:/(^|[^#])\{(?:\{[^}]+\}|[^{}])+\}/,lookbehind:!0,inside:Me.languages.ruby},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*)(?:"(?:\\.|[^\\"\r\n])*"|[^)\s]+)/,lookbehind:!0},"attr-name":/[\w:-]+(?=\s*!?=|\s*[,)])/,punctuation:/[=(),]/}},{pattern:/\[[^\]]+\]/,inside:Me.languages.ruby}],punctuation:/[<>]/}},code:{pattern:/((?:^|\r?\n|\r)[\t ]*(?:[~-]|[&!]?=)).+/,lookbehind:!0,inside:Me.languages.ruby},interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},ruby:{pattern:/[\s\S]+/,inside:Me.languages.ruby}}},punctuation:{pattern:/((?:^|\r?\n|\r)[\t ]*)[~=\-&!]+/,lookbehind:!0}};for(var We="((?:^|\\r?\\n|\\r)([\\t ]*)):{{filter_name}}(?:(?:\\r?\\n|\\r)(?:\\2[\\t ].+|\\s*?(?=\\r?\\n|\\r)))+",Te=["css",{filter:"coffee",language:"coffeescript"},"erb","javascript","less","markdown","ruby","scss","textile"],Ge={},st=0,Qe=Te.length;st<Qe;st++){var Ye=Te[st];Ye=typeof Ye=="string"?{filter:Ye,language:Ye}:Ye,Me.languages[Ye.language]&&(Ge["filter-"+Ye.filter]={pattern:RegExp(We.replace("{{filter_name}}",function(){return Ye.filter})),lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"symbol"},text:{pattern:/[\s\S]+/,alias:[Ye.language,"language-"+Ye.language],inside:Me.languages[Ye.language]}}})}Me.languages.insertBefore("haml","filter",Ge)}(Re)}},29710:function(ze,Ee,ue){"use strict";var ce=ue(51478);ze.exports=Pe,Pe.displayName="handlebars",Pe.aliases=["hbs"];function Pe(Re){Re.register(ce),function(Me){Me.languages.handlebars={comment:/\{\{![\s\S]*?\}\}/,delimiter:{pattern:/^\{\{\{?|\}\}\}?$/,alias:"punctuation"},string:/(["'])(?:\\.|(?!\1)[^\\\r\n])*\1/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][+-]?\d+)?/,boolean:/\b(?:false|true)\b/,block:{pattern:/^(\s*(?:~\s*)?)[#\/]\S+?(?=\s*(?:~\s*)?$|\s)/,lookbehind:!0,alias:"keyword"},brackets:{pattern:/\[[^\]]+\]/,inside:{punctuation:/\[|\]/,variable:/[\s\S]+/}},punctuation:/[!"#%&':()*+,.\/;<=>@\[\\\]^`{|}~]/,variable:/[^!"#%&'()*+,\/;<=>@\[\\\]^`{|}~\s]+/},Me.hooks.add("before-tokenize",function(We){var Te=/\{\{\{[\s\S]+?\}\}\}|\{\{[\s\S]+?\}\}/g;Me.languages["markup-templating"].buildPlaceholders(We,"handlebars",Te)}),Me.hooks.add("after-tokenize",function(We){Me.languages["markup-templating"].tokenizePlaceholders(We,"handlebars")}),Me.languages.hbs=Me.languages.handlebars}(Re)}},2050:function(ze){"use strict";ze.exports=Ee,Ee.displayName="haskell",Ee.aliases=["hs"];function Ee(ue){ue.languages.haskell={comment:{pattern:/(^|[^-!#$%*+=?&@|~.:<>^\\\/])(?:--(?:(?=.)[^-!#$%*+=?&@|~.:<>^\\\/].*|$)|\{-[\s\S]*?-\})/m,lookbehind:!0},char:{pattern:/'(?:[^\\']|\\(?:[abfnrtv\\"'&]|\^[A-Z@[\]^_]|ACK|BEL|BS|CAN|CR|DC1|DC2|DC3|DC4|DEL|DLE|EM|ENQ|EOT|ESC|ETB|ETX|FF|FS|GS|HT|LF|NAK|NUL|RS|SI|SO|SOH|SP|STX|SUB|SYN|US|VT|\d+|o[0-7]+|x[0-9a-fA-F]+))'/,alias:"string"},string:{pattern:/"(?:[^\\"]|\\(?:\S|\s+\\))*"/,greedy:!0},keyword:/\b(?:case|class|data|deriving|do|else|if|in|infixl|infixr|instance|let|module|newtype|of|primitive|then|type|where)\b/,"import-statement":{pattern:/(^[\t ]*)import\s+(?:qualified\s+)?(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*(?:\s+as\s+(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*)?(?:\s+hiding\b)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|hiding|import|qualified)\b/,punctuation:/\./}},builtin:/\b(?:abs|acos|acosh|all|and|any|appendFile|approxRational|asTypeOf|asin|asinh|atan|atan2|atanh|basicIORun|break|catch|ceiling|chr|compare|concat|concatMap|const|cos|cosh|curry|cycle|decodeFloat|denominator|digitToInt|div|divMod|drop|dropWhile|either|elem|encodeFloat|enumFrom|enumFromThen|enumFromThenTo|enumFromTo|error|even|exp|exponent|fail|filter|flip|floatDigits|floatRadix|floatRange|floor|fmap|foldl|foldl1|foldr|foldr1|fromDouble|fromEnum|fromInt|fromInteger|fromIntegral|fromRational|fst|gcd|getChar|getContents|getLine|group|head|id|inRange|index|init|intToDigit|interact|ioError|isAlpha|isAlphaNum|isAscii|isControl|isDenormalized|isDigit|isHexDigit|isIEEE|isInfinite|isLower|isNaN|isNegativeZero|isOctDigit|isPrint|isSpace|isUpper|iterate|last|lcm|length|lex|lexDigits|lexLitChar|lines|log|logBase|lookup|map|mapM|mapM_|max|maxBound|maximum|maybe|min|minBound|minimum|mod|negate|not|notElem|null|numerator|odd|or|ord|otherwise|pack|pi|pred|primExitWith|print|product|properFraction|putChar|putStr|putStrLn|quot|quotRem|range|rangeSize|read|readDec|readFile|readFloat|readHex|readIO|readInt|readList|readLitChar|readLn|readOct|readParen|readSigned|reads|readsPrec|realToFrac|recip|rem|repeat|replicate|return|reverse|round|scaleFloat|scanl|scanl1|scanr|scanr1|seq|sequence|sequence_|show|showChar|showInt|showList|showLitChar|showParen|showSigned|showString|shows|showsPrec|significand|signum|sin|sinh|snd|sort|span|splitAt|sqrt|subtract|succ|sum|tail|take|takeWhile|tan|tanh|threadToIOResult|toEnum|toInt|toInteger|toLower|toRational|toUpper|truncate|uncurry|undefined|unlines|until|unwords|unzip|unzip3|userError|words|writeFile|zip|zip3|zipWith|zipWith3)\b/,number:/\b(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|0o[0-7]+|0x[0-9a-f]+)\b/i,operator:[{pattern:/`(?:[A-Z][\w']*\.)*[_a-z][\w']*`/,greedy:!0},{pattern:/(\s)\.(?=\s)/,lookbehind:!0},/[-!#$%*+=?&@|~:<>^\\\/][-!#$%*+=?&@|~.:<>^\\\/]*|\.[-!#$%*+=?&@|~.:<>^\\\/]+/],hvariable:{pattern:/\b(?:[A-Z][\w']*\.)*[_a-z][\w']*/,inside:{punctuation:/\./}},constant:{pattern:/\b(?:[A-Z][\w']*\.)*[A-Z][\w']*/,inside:{punctuation:/\./}},punctuation:/[{}[\];(),.:]/},ue.languages.hs=ue.languages.haskell}},67967:function(ze){"use strict";ze.exports=Ee,Ee.displayName="haxe",Ee.aliases=[];function Ee(ue){ue.languages.haxe=ue.languages.extend("clike",{string:{pattern:/"(?:[^"\\]|\\[\s\S])*"/,greedy:!0},"class-name":[{pattern:/(\b(?:abstract|class|enum|extends|implements|interface|new|typedef)\s+)[A-Z_]\w*/,lookbehind:!0},/\b[A-Z]\w*/],keyword:/\bthis\b|\b(?:abstract|as|break|case|cast|catch|class|continue|default|do|dynamic|else|enum|extends|extern|final|for|from|function|if|implements|import|in|inline|interface|macro|new|null|operator|overload|override|package|private|public|return|static|super|switch|throw|to|try|typedef|untyped|using|var|while)(?!\.)\b/,function:{pattern:/\b[a-z_]\w*(?=\s*(?:<[^<>]*>\s*)?\()/i,greedy:!0},operator:/\.{3}|\+\+|--|&&|\|\||->|=>|(?:<<?|>{1,3}|[-+*/%!=&|^])=?|[?:~]/}),ue.languages.insertBefore("haxe","string",{"string-interpolation":{pattern:/'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{interpolation:{pattern:/(^|[^\\])\$(?:\w+|\{[^{}]+\})/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:ue.languages.haxe}}},string:/[\s\S]+/}}}),ue.languages.insertBefore("haxe","class-name",{regex:{pattern:/~\/(?:[^\/\\\r\n]|\\.)+\/[a-z]*/,greedy:!0,inside:{"regex-flags":/\b[a-z]+$/,"regex-source":{pattern:/^(~\/)[\s\S]+(?=\/$)/,lookbehind:!0,alias:"language-regex",inside:ue.languages.regex},"regex-delimiter":/^~\/|\/$/}}}),ue.languages.insertBefore("haxe","keyword",{preprocessor:{pattern:/#(?:else|elseif|end|if)\b.*/,alias:"property"},metadata:{pattern:/@:?[\w.]+/,alias:"symbol"},reification:{pattern:/\$(?:\w+|(?=\{))/,alias:"important"}})}},29138:function(ze){"use strict";ze.exports=Ee,Ee.displayName="hcl",Ee.aliases=[];function Ee(ue){ue.languages.hcl={comment:/(?:\/\/|#).*|\/\*[\s\S]*?(?:\*\/|$)/,heredoc:{pattern:/<<-?(\w+\b)[\s\S]*?^[ \t]*\1/m,greedy:!0,alias:"string"},keyword:[{pattern:/(?:data|resource)\s+(?:"(?:\\[\s\S]|[^\\"])*")(?=\s+"[\w-]+"\s+\{)/i,inside:{type:{pattern:/(resource|data|\s+)(?:"(?:\\[\s\S]|[^\\"])*")/i,lookbehind:!0,alias:"variable"}}},{pattern:/(?:backend|module|output|provider|provisioner|variable)\s+(?:[\w-]+|"(?:\\[\s\S]|[^\\"])*")\s+(?=\{)/i,inside:{type:{pattern:/(backend|module|output|provider|provisioner|variable)\s+(?:[\w-]+|"(?:\\[\s\S]|[^\\"])*")\s+/i,lookbehind:!0,alias:"variable"}}},/[\w-]+(?=\s+\{)/],property:[/[-\w\.]+(?=\s*=(?!=))/,/"(?:\\[\s\S]|[^\\"])+"(?=\s*[:=])/],string:{pattern:/"(?:[^\\$"]|\\[\s\S]|\$(?:(?=")|\$+(?!\$)|[^"${])|\$\{(?:[^{}"]|"(?:[^\\"]|\\[\s\S])*")*\})*"/,greedy:!0,inside:{interpolation:{pattern:/(^|[^$])\$\{(?:[^{}"]|"(?:[^\\"]|\\[\s\S])*")*\}/,lookbehind:!0,inside:{type:{pattern:/(\b(?:count|data|local|module|path|self|terraform|var)\b\.)[\w\*]+/i,lookbehind:!0,alias:"variable"},keyword:/\b(?:count|data|local|module|path|self|terraform|var)\b/i,function:/\w+(?=\()/,string:{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0},number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,punctuation:/[!\$#%&'()*+,.\/;<=>@\[\\\]^`{|}~?:]/}}}},number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,boolean:/\b(?:false|true)\b/i,punctuation:/[=\[\]{}]/}}},67915:function(ze,Ee,ue){"use strict";var ce=ue(79440);ze.exports=Pe,Pe.displayName="hlsl",Pe.aliases=[];function Pe(Re){Re.register(ce),Re.languages.hlsl=Re.languages.extend("c",{"class-name":[Re.languages.c["class-name"],/\b(?:AppendStructuredBuffer|BlendState|Buffer|ByteAddressBuffer|CompileShader|ComputeShader|ConsumeStructuredBuffer|DepthStencilState|DepthStencilView|DomainShader|GeometryShader|Hullshader|InputPatch|LineStream|OutputPatch|PixelShader|PointStream|RWBuffer|RWByteAddressBuffer|RWStructuredBuffer|RWTexture(?:1D|1DArray|2D|2DArray|3D)|RasterizerState|RenderTargetView|SamplerComparisonState|SamplerState|StructuredBuffer|Texture(?:1D|1DArray|2D|2DArray|2DMS|2DMSArray|3D|Cube|CubeArray)|TriangleStream|VertexShader)\b/],keyword:[/\b(?:asm|asm_fragment|auto|break|case|catch|cbuffer|centroid|char|class|column_major|compile|compile_fragment|const|const_cast|continue|default|delete|discard|do|dynamic_cast|else|enum|explicit|export|extern|for|friend|fxgroup|goto|groupshared|if|in|inline|inout|interface|line|lineadj|linear|long|matrix|mutable|namespace|new|nointerpolation|noperspective|operator|out|packoffset|pass|pixelfragment|point|precise|private|protected|public|register|reinterpret_cast|return|row_major|sample|sampler|shared|short|signed|sizeof|snorm|stateblock|stateblock_state|static|static_cast|string|struct|switch|tbuffer|technique|technique10|technique11|template|texture|this|throw|triangle|triangleadj|try|typedef|typename|uniform|union|unorm|unsigned|using|vector|vertexfragment|virtual|void|volatile|while)\b/,/\b(?:bool|double|dword|float|half|int|min(?:10float|12int|16(?:float|int|uint))|uint)(?:[1-4](?:x[1-4])?)?\b/],number:/(?:(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+)?|\b0x[\da-fA-F]+)[fFhHlLuU]?\b/,boolean:/\b(?:false|true)\b/})}},54853:function(ze){"use strict";ze.exports=Ee,Ee.displayName="hoon",Ee.aliases=[];function Ee(ue){ue.languages.hoon={comment:{pattern:/::.*/,greedy:!0},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},constant:/%(?:\.[ny]|[\w-]+)/,"class-name":/@(?:[a-z0-9-]*[a-z0-9])?|\*/i,function:/(?:\+[-+] {2})?(?:[a-z](?:[a-z0-9-]*[a-z0-9])?)/,keyword:/\.[\^\+\*=\?]|![><:\.=\?!]|=[>|:,\.\-\^<+;/~\*\?]|\?[>|:\.\-\^<\+&~=@!]|\|[\$_%:\.\-\^~\*=@\?]|\+[|\$\+\*]|:[_\-\^\+~\*]|%[_:\.\-\^\+~\*=]|\^[|:\.\-\+&~\*=\?]|\$[|_%:<>\-\^&~@=\?]|;[:<\+;\/~\*=]|~[>|\$_%<\+\/&=\?!]|--|==/}}},68330:function(ze){"use strict";ze.exports=Ee,Ee.displayName="hpkp",Ee.aliases=[];function Ee(ue){ue.languages.hpkp={directive:{pattern:/\b(?:includeSubDomains|max-age|pin-sha256|preload|report-to|report-uri|strict)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}},76823:function(ze){"use strict";ze.exports=Ee,Ee.displayName="hsts",Ee.aliases=[];function Ee(ue){ue.languages.hsts={directive:{pattern:/\b(?:includeSubDomains|max-age|preload)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}},86712:function(ze){"use strict";ze.exports=Ee,Ee.displayName="http",Ee.aliases=[];function Ee(ue){(function(ce){function Pe(Ye){return RegExp("(^(?:"+Ye+"):[ ]*(?![ ]))[^]+","i")}ce.languages.http={"request-line":{pattern:/^(?:CONNECT|DELETE|GET|HEAD|OPTIONS|PATCH|POST|PRI|PUT|SEARCH|TRACE)\s(?:https?:\/\/|\/)\S*\sHTTP\/[\d.]+/m,inside:{method:{pattern:/^[A-Z]+\b/,alias:"property"},"request-target":{pattern:/^(\s)(?:https?:\/\/|\/)\S*(?=\s)/,lookbehind:!0,alias:"url",inside:ce.languages.uri},"http-version":{pattern:/^(\s)HTTP\/[\d.]+/,lookbehind:!0,alias:"property"}}},"response-status":{pattern:/^HTTP\/[\d.]+ \d+ .+/m,inside:{"http-version":{pattern:/^HTTP\/[\d.]+/,alias:"property"},"status-code":{pattern:/^(\s)\d+(?=\s)/,lookbehind:!0,alias:"number"},"reason-phrase":{pattern:/^(\s).+/,lookbehind:!0,alias:"string"}}},header:{pattern:/^[\w-]+:.+(?:(?:\r\n?|\n)[ \t].+)*/m,inside:{"header-value":[{pattern:Pe(/Content-Security-Policy/.source),lookbehind:!0,alias:["csp","languages-csp"],inside:ce.languages.csp},{pattern:Pe(/Public-Key-Pins(?:-Report-Only)?/.source),lookbehind:!0,alias:["hpkp","languages-hpkp"],inside:ce.languages.hpkp},{pattern:Pe(/Strict-Transport-Security/.source),lookbehind:!0,alias:["hsts","languages-hsts"],inside:ce.languages.hsts},{pattern:Pe(/[^:]+/.source),lookbehind:!0}],"header-name":{pattern:/^[^:]+/,alias:"keyword"},punctuation:/^:/}}};var Re=ce.languages,Me={"application/javascript":Re.javascript,"application/json":Re.json||Re.javascript,"application/xml":Re.xml,"text/xml":Re.xml,"text/html":Re.html,"text/css":Re.css,"text/plain":Re.plain},We={"application/json":!0,"application/xml":!0};function Te(Ye){var yt=Ye.replace(/^[a-z]+\//,""),ot="\\w+/(?:[\\w.-]+\\+)+"+yt+"(?![+\\w.-])";return"(?:"+Ye+"|"+ot+")"}var Ge;for(var st in Me)if(Me[st]){Ge=Ge||{};var Qe=We[st]?Te(st):st;Ge[st.replace(/\//g,"-")]={pattern:RegExp("("+/content-type:\s*/.source+Qe+/(?:(?:\r\n?|\n)[\w-].*)*(?:\r(?:\n|(?!\n))|\n)/.source+")"+/[^ \t\w-][\s\S]*/.source,"i"),lookbehind:!0,inside:Me[st]}}Ge&&ce.languages.insertBefore("http","header",Ge)})(ue)}},72252:function(ze){"use strict";ze.exports=Ee,Ee.displayName="ichigojam",Ee.aliases=[];function Ee(ue){ue.languages.ichigojam={comment:/(?:\B'|REM)(?:[^\n\r]*)/i,string:{pattern:/"(?:""|[!#$%&'()*,\/:;<=>?^\w +\-.])*"/,greedy:!0},number:/\B#[0-9A-F]+|\B`[01]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:BEEP|BPS|CASE|CLEAR|CLK|CLO|CLP|CLS|CLT|CLV|CONT|COPY|ELSE|END|FILE|FILES|FOR|GOSUB|GOTO|GSB|IF|INPUT|KBD|LED|LET|LIST|LOAD|LOCATE|LRUN|NEW|NEXT|OUT|PLAY|POKE|PRINT|PWM|REM|RENUM|RESET|RETURN|RIGHT|RTN|RUN|SAVE|SCROLL|SLEEP|SRND|STEP|STOP|SUB|TEMPO|THEN|TO|UART|VIDEO|WAIT)(?:\$|\b)/i,function:/\b(?:ABS|ANA|ASC|BIN|BTN|DEC|END|FREE|HELP|HEX|I2CR|I2CW|IN|INKEY|LEN|LINE|PEEK|RND|SCR|SOUND|STR|TICK|USR|VER|VPEEK|ZER)(?:\$|\b)/i,label:/(?:\B@\S+)/,operator:/<[=>]?|>=?|\|\||&&|[+\-*\/=|&^~!]|\b(?:AND|NOT|OR)\b/i,punctuation:/[\[,;:()\]]/}}},78634:function(ze){"use strict";ze.exports=Ee,Ee.displayName="icon",Ee.aliases=[];function Ee(ue){ue.languages.icon={comment:/#.*/,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n_]|\\.|_(?!\1)(?:\r\n|[\s\S]))*\1/,greedy:!0},number:/\b(?:\d+r[a-z\d]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b|\.\d+\b/i,"builtin-keyword":{pattern:/&(?:allocated|ascii|clock|collections|cset|current|date|dateline|digits|dump|e|error(?:number|text|value)?|errout|fail|features|file|host|input|lcase|letters|level|line|main|null|output|phi|pi|pos|progname|random|regions|source|storage|subject|time|trace|ucase|version)\b/,alias:"variable"},directive:{pattern:/\$\w+/,alias:"builtin"},keyword:/\b(?:break|by|case|create|default|do|else|end|every|fail|global|if|initial|invocable|link|local|next|not|of|procedure|record|repeat|return|static|suspend|then|to|until|while)\b/,function:/\b(?!\d)\w+(?=\s*[({]|\s*!\s*\[)/,operator:/[+-]:(?!=)|(?:[\/?@^%&]|\+\+?|--?|==?=?|~==?=?|\*\*?|\|\|\|?|<(?:->?|<?=?)|>>?=?)(?::=)?|:(?:=:?)?|[!.\\|~]/,punctuation:/[\[\](){},;]/}}},43583:function(ze){"use strict";ze.exports=Ee,Ee.displayName="icuMessageFormat",Ee.aliases=[];function Ee(ue){(function(ce){function Pe(st,Qe){return Qe<=0?/[]/.source:st.replace(/<SELF>/g,function(){return Pe(st,Qe-1)})}var Re=/'[{}:=,](?:[^']|'')*'(?!')/,Me={pattern:/''/,greedy:!0,alias:"operator"},We={pattern:Re,greedy:!0,inside:{escape:Me}},Te=Pe(/\{(?:[^{}']|'(?![{},'])|''|<STR>|<SELF>)*\}/.source.replace(/<STR>/g,function(){return Re.source}),8),Ge={pattern:RegExp(Te),inside:{message:{pattern:/^(\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:null},"message-delimiter":{pattern:/./,alias:"punctuation"}}};ce.languages["icu-message-format"]={argument:{pattern:RegExp(Te),greedy:!0,inside:{content:{pattern:/^(\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:{"argument-name":{pattern:/^(\s*)[^{}:=,\s]+/,lookbehind:!0},"choice-style":{pattern:/^(\s*,\s*choice\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{punctuation:/\|/,range:{pattern:/^(\s*)[+-]?(?:\d+(?:\.\d*)?|\u221e)\s*[<#\u2264]/,lookbehind:!0,inside:{operator:/[<#\u2264]/,number:/\S+/}},rest:null}},"plural-style":{pattern:/^(\s*,\s*(?:plural|selectordinal)\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{offset:/^offset:\s*\d+/,"nested-message":Ge,selector:{pattern:/=\d+|[^{}:=,\s]+/,inside:{keyword:/^(?:few|many|one|other|two|zero)$/}}}},"select-style":{pattern:/^(\s*,\s*select\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{"nested-message":Ge,selector:{pattern:/[^{}:=,\s]+/,inside:{keyword:/^other$/}}}},keyword:/\b(?:choice|plural|select|selectordinal)\b/,"arg-type":{pattern:/\b(?:date|duration|number|ordinal|spellout|time)\b/,alias:"keyword"},"arg-skeleton":{pattern:/(,\s*)::[^{}:=,\s]+/,lookbehind:!0},"arg-style":{pattern:/(,\s*)(?:currency|full|integer|long|medium|percent|short)(?=\s*$)/,lookbehind:!0},"arg-style-text":{pattern:RegExp(/(^\s*,\s*(?=\S))/.source+Pe(/(?:[^{}']|'[^']*'|\{(?:<SELF>)?\})+/.source,8)+"$"),lookbehind:!0,alias:"string"},punctuation:/,/}},"argument-delimiter":{pattern:/./,alias:"operator"}}},escape:Me,string:We},Ge.inside.message.inside=ce.languages["icu-message-format"],ce.languages["icu-message-format"].argument.inside.content.inside["choice-style"].inside.rest=ce.languages["icu-message-format"]})(ue)}},23328:function(ze,Ee,ue){"use strict";var ce=ue(2050);ze.exports=Pe,Pe.displayName="idris",Pe.aliases=["idr"];function Pe(Re){Re.register(ce),Re.languages.idris=Re.languages.extend("haskell",{comment:{pattern:/(?:(?:--|\|\|\|).*$|\{-[\s\S]*?-\})/m},keyword:/\b(?:Type|case|class|codata|constructor|corecord|data|do|dsl|else|export|if|implementation|implicit|import|impossible|in|infix|infixl|infixr|instance|interface|let|module|mutual|namespace|of|parameters|partial|postulate|private|proof|public|quoteGoal|record|rewrite|syntax|then|total|using|where|with)\b/,builtin:void 0}),Re.languages.insertBefore("idris","keyword",{"import-statement":{pattern:/(^\s*import\s+)(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*/m,lookbehind:!0,inside:{punctuation:/\./}}}),Re.languages.idr=Re.languages.idris}},74494:function(ze){"use strict";ze.exports=Ee,Ee.displayName="iecst",Ee.aliases=[];function Ee(ue){ue.languages.iecst={comment:[{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\(\*[\s\S]*?(?:\*\)|$)|\{[\s\S]*?(?:\}|$))/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:[/\b(?:END_)?(?:PROGRAM|CONFIGURATION|INTERFACE|FUNCTION_BLOCK|FUNCTION|ACTION|TRANSITION|TYPE|STRUCT|(?:INITIAL_)?STEP|NAMESPACE|LIBRARY|CHANNEL|FOLDER|RESOURCE|VAR_(?:ACCESS|CONFIG|EXTERNAL|GLOBAL|INPUT|IN_OUT|OUTPUT|TEMP)|VAR|METHOD|PROPERTY)\b/i,/\b(?:AT|BY|(?:END_)?(?:CASE|FOR|IF|REPEAT|WHILE)|CONSTANT|CONTINUE|DO|ELSE|ELSIF|EXIT|EXTENDS|FROM|GET|GOTO|IMPLEMENTS|JMP|NON_RETAIN|OF|PRIVATE|PROTECTED|PUBLIC|RETAIN|RETURN|SET|TASK|THEN|TO|UNTIL|USING|WITH|__CATCH|__ENDTRY|__FINALLY|__TRY)\b/],"class-name":/\b(?:ANY|ARRAY|BOOL|BYTE|U?(?:D|L|S)?INT|(?:D|L)?WORD|DATE(?:_AND_TIME)?|DT|L?REAL|POINTER|STRING|TIME(?:_OF_DAY)?|TOD)\b/,address:{pattern:/%[IQM][XBWDL][\d.]*|%[IQ][\d.]*/,alias:"symbol"},number:/\b(?:16#[\da-f]+|2#[01_]+|0x[\da-f]+)\b|\b(?:D|DT|T|TOD)#[\d_shmd:]*|\b[A-Z]*#[\d.,_]*|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/,operator:/S?R?:?=>?|&&?|\*\*?|<[=>]?|>=?|[-:^/+#]|\b(?:AND|EQ|EXPT|GE|GT|LE|LT|MOD|NE|NOT|OR|XOR)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,punctuation:/[()[\].,;]/}}},46745:function(ze){"use strict";ze.exports=Ee,Ee.displayName="ignore",Ee.aliases=["gitignore","hgignore","npmignore"];function Ee(ue){(function(ce){ce.languages.ignore={comment:/^#.*/m,entry:{pattern:/\S(?:.*(?:(?:\\ )|\S))?/,alias:"string",inside:{operator:/^!|\*\*?|\?/,regex:{pattern:/(^|[^\\])\[[^\[\]]*\]/,lookbehind:!0},punctuation:/\//}}},ce.languages.gitignore=ce.languages.ignore,ce.languages.hgignore=ce.languages.ignore,ce.languages.npmignore=ce.languages.ignore})(ue)}},22152:function(ze){"use strict";ze.exports=Ee,Ee.displayName="inform7",Ee.aliases=[];function Ee(ue){ue.languages.inform7={string:{pattern:/"[^"]*"/,inside:{substitution:{pattern:/\[[^\[\]]+\]/,inside:{delimiter:{pattern:/\[|\]/,alias:"punctuation"}}}}},comment:{pattern:/\[[^\[\]]+\]/,greedy:!0},title:{pattern:/^[ \t]*(?:book|chapter|part(?! of)|section|table|volume)\b.+/im,alias:"important"},number:{pattern:/(^|[^-])(?:\b\d+(?:\.\d+)?(?:\^\d+)?(?:(?!\d)\w+)?|\b(?:eight|eleven|five|four|nine|one|seven|six|ten|three|twelve|two))\b(?!-)/i,lookbehind:!0},verb:{pattern:/(^|[^-])\b(?:answering|applying to|are|asking|attacking|be(?:ing)?|burning|buying|called|carries|carry(?! out)|carrying|climbing|closing|conceal(?:ing|s)?|consulting|contain(?:ing|s)?|cutting|drinking|dropping|eating|enclos(?:es?|ing)|entering|examining|exiting|getting|giving|going|ha(?:s|ve|ving)|hold(?:ing|s)?|impl(?:ies|y)|incorporat(?:es?|ing)|inserting|is|jumping|kissing|listening|locking|looking|mean(?:ing|s)?|opening|provid(?:es?|ing)|pulling|pushing|putting|relat(?:es?|ing)|removing|searching|see(?:ing|s)?|setting|showing|singing|sleeping|smelling|squeezing|support(?:ing|s)?|swearing|switching|taking|tasting|telling|thinking|throwing|touching|turning|tying|unlock(?:ing|s)?|var(?:ies|y|ying)|waiting|waking|waving|wear(?:ing|s)?)\b(?!-)/i,lookbehind:!0,alias:"operator"},keyword:{pattern:/(^|[^-])\b(?:after|before|carry out|check|continue the action|definition(?= *:)|do nothing|else|end (?:if|the story|unless)|every turn|if|include|instead(?: of)?|let|move|no|now|otherwise|repeat|report|resume the story|rule for|running through|say(?:ing)?|stop the action|test|try(?:ing)?|understand|unless|use|when|while|yes)\b(?!-)/i,lookbehind:!0},property:{pattern:/(^|[^-])\b(?:adjacent(?! to)|carried|closed|concealed|contained|dark|described|edible|empty|enclosed|enterable|even|female|fixed in place|full|handled|held|improper-named|incorporated|inedible|invisible|lighted|lit|lock(?:able|ed)|male|marked for listing|mentioned|negative|neuter|non-(?:empty|full|recurring)|odd|opaque|open(?:able)?|plural-named|portable|positive|privately-named|proper-named|provided|publically-named|pushable between rooms|recurring|related|rubbing|scenery|seen|singular-named|supported|swinging|switch(?:able|ed(?: off| on)?)|touch(?:able|ed)|transparent|unconcealed|undescribed|unlit|unlocked|unmarked for listing|unmentioned|unopenable|untouchable|unvisited|variable|visible|visited|wearable|worn)\b(?!-)/i,lookbehind:!0,alias:"symbol"},position:{pattern:/(^|[^-])\b(?:above|adjacent to|back side of|below|between|down|east|everywhere|front side|here|in|inside(?: from)?|north(?:east|west)?|nowhere|on(?: top of)?|other side|outside(?: from)?|parts? of|regionally in|south(?:east|west)?|through|up|west|within)\b(?!-)/i,lookbehind:!0,alias:"keyword"},type:{pattern:/(^|[^-])\b(?:actions?|activit(?:ies|y)|actors?|animals?|backdrops?|containers?|devices?|directions?|doors?|holders?|kinds?|lists?|m[ae]n|nobody|nothing|nouns?|numbers?|objects?|people|persons?|player(?:'s holdall)?|regions?|relations?|rooms?|rule(?:book)?s?|scenes?|someone|something|supporters?|tables?|texts?|things?|time|vehicles?|wom[ae]n)\b(?!-)/i,lookbehind:!0,alias:"variable"},punctuation:/[.,:;(){}]/},ue.languages.inform7.string.inside.substitution.inside.rest=ue.languages.inform7,ue.languages.inform7.string.inside.substitution.inside.rest.text={pattern:/\S(?:\s*\S)*/,alias:"comment"}}},83698:function(ze){"use strict";ze.exports=Ee,Ee.displayName="ini",Ee.aliases=[];function Ee(ue){ue.languages.ini={comment:{pattern:/(^[ \f\t\v]*)[#;][^\n\r]*/m,lookbehind:!0},section:{pattern:/(^[ \f\t\v]*)\[[^\n\r\]]*\]?/m,lookbehind:!0,inside:{"section-name":{pattern:/(^\[[ \f\t\v]*)[^ \f\t\v\]]+(?:[ \f\t\v]+[^ \f\t\v\]]+)*/,lookbehind:!0,alias:"selector"},punctuation:/\[|\]/}},key:{pattern:/(^[ \f\t\v]*)[^ \f\n\r\t\v=]+(?:[ \f\t\v]+[^ \f\n\r\t\v=]+)*(?=[ \f\t\v]*=)/m,lookbehind:!0,alias:"attr-name"},value:{pattern:/(=[ \f\t\v]*)[^ \f\n\r\t\v]+(?:[ \f\t\v]+[^ \f\n\r\t\v]+)*/,lookbehind:!0,alias:"attr-value",inside:{"inner-value":{pattern:/^("|').+(?=\1$)/,lookbehind:!0}}},punctuation:/=/}}},26619:function(ze){"use strict";ze.exports=Ee,Ee.displayName="io",Ee.aliases=[];function Ee(ue){ue.languages.io={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\/\/.*|#.*)/,lookbehind:!0,greedy:!0},"triple-quoted-string":{pattern:/"""(?:\\[\s\S]|(?!""")[^\\])*"""/,greedy:!0,alias:"string"},string:{pattern:/"(?:\\.|[^\\\r\n"])*"/,greedy:!0},keyword:/\b(?:activate|activeCoroCount|asString|block|break|call|catch|clone|collectGarbage|compileString|continue|do|doFile|doMessage|doString|else|elseif|exit|for|foreach|forward|getEnvironmentVariable|getSlot|hasSlot|if|ifFalse|ifNil|ifNilEval|ifTrue|isActive|isNil|isResumable|list|message|method|parent|pass|pause|perform|performWithArgList|print|println|proto|raise|raiseResumable|removeSlot|resend|resume|schedulerSleepSeconds|self|sender|setSchedulerSleepSeconds|setSlot|shallowCopy|slotNames|super|system|then|thisBlock|thisContext|try|type|uniqueId|updateSlot|wait|while|write|yield)\b/,builtin:/\b(?:Array|AudioDevice|AudioMixer|BigNum|Block|Box|Buffer|CFunction|CGI|Color|Curses|DBM|DNSResolver|DOConnection|DOProxy|DOServer|Date|Directory|Duration|DynLib|Error|Exception|FFT|File|Fnmatch|Font|Future|GL|GLE|GLScissor|GLU|GLUCylinder|GLUQuadric|GLUSphere|GLUT|Host|Image|Importer|LinkList|List|Lobby|Locals|MD5|MP3Decoder|MP3Encoder|Map|Message|Movie|Notification|Number|Object|OpenGL|Point|Protos|Random|Regex|SGML|SGMLElement|SGMLParser|SQLite|Sequence|Server|ShowMessage|SleepyCat|SleepyCatCursor|Socket|SocketManager|Sound|Soup|Store|String|Tree|UDPSender|UPDReceiver|URL|User|Warning|WeakLink)\b/,boolean:/\b(?:false|nil|true)\b/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e-?\d+)?/i,operator:/[=!*/%+\-^&|]=|>>?=?|<<?=?|:?:?=|\+\+?|--?|\*\*?|\/\/?|%|\|\|?|&&?|\b(?:and|not|or|return)\b|@@?|\?\??|\.\./,punctuation:/[{}[\];(),.:]/}}},53990:function(ze){"use strict";ze.exports=Ee,Ee.displayName="j",Ee.aliases=[];function Ee(ue){ue.languages.j={comment:{pattern:/\bNB\..*/,greedy:!0},string:{pattern:/'(?:''|[^'\r\n])*'/,greedy:!0},keyword:/\b(?:(?:CR|LF|adverb|conjunction|def|define|dyad|monad|noun|verb)\b|(?:assert|break|case|catch[dt]?|continue|do|else|elseif|end|fcase|for|for_\w+|goto_\w+|if|label_\w+|return|select|throw|try|while|whilst)\.)/,verb:{pattern:/(?!\^:|;\.|[=!][.:])(?:\{(?:\.|::?)?|p(?:\.\.?|:)|[=!\]]|[<>+*\-%$|,#][.:]?|[?^]\.?|[;\[]:?|[~}"i][.:]|[ACeEIjLor]\.|(?:[_\/\\qsux]|_?\d):)/,alias:"keyword"},number:/\b_?(?:(?!\d:)\d+(?:\.\d+)?(?:(?:ad|ar|[ejpx])_?\d+(?:\.\d+)?)*(?:b_?[\da-z]+(?:\.[\da-z]+)?)?|_\b(?!\.))/,adverb:{pattern:/[~}]|[\/\\]\.?|[bfM]\.|t[.:]/,alias:"builtin"},operator:/[=a][.:]|_\./,conjunction:{pattern:/&(?:\.:?|:)?|[.:@][.:]?|[!D][.:]|[;dHT]\.|`:?|[\^LS]:|"/,alias:"variable"},punctuation:/[()]/}}},7093:function(ze){"use strict";ze.exports=Ee,Ee.displayName="java",Ee.aliases=[];function Ee(ue){(function(ce){var Pe=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,Re=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,Me={pattern:RegExp(Re+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};ce.languages.java=ce.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[Me,{pattern:RegExp(Re+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:Me.inside}],keyword:Pe,function:[ce.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0}}),ce.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),ce.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":Me,keyword:Pe,punctuation:/[<>(),.:]/,operator:/[?&|]/}},namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!<keyword>)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(/<keyword>/g,function(){return Pe.source})),lookbehind:!0,inside:{punctuation:/\./}}})})(ue)}},4005:function(ze,Ee,ue){"use strict";var ce=ue(7093),Pe=ue(53510);ze.exports=Re,Re.displayName="javadoc",Re.aliases=[];function Re(Me){Me.register(ce),Me.register(Pe),function(We){var Te=/(^(?:[\t ]*(?:\*\s*)*))[^*\s].*$/m,Ge=/#\s*\w+(?:\s*\([^()]*\))?/.source,st=/(?:\b[a-zA-Z]\w+\s*\.\s*)*\b[A-Z]\w*(?:\s*<mem>)?|<mem>/.source.replace(/<mem>/g,function(){return Ge});We.languages.javadoc=We.languages.extend("javadoclike",{}),We.languages.insertBefore("javadoc","keyword",{reference:{pattern:RegExp(/(@(?:exception|link|linkplain|see|throws|value)\s+(?:\*\s*)?)/.source+"(?:"+st+")"),lookbehind:!0,inside:{function:{pattern:/(#\s*)\w+(?=\s*\()/,lookbehind:!0},field:{pattern:/(#\s*)\w+/,lookbehind:!0},namespace:{pattern:/\b(?:[a-z]\w*\s*\.\s*)+/,inside:{punctuation:/\./}},"class-name":/\b[A-Z]\w*/,keyword:We.languages.java.keyword,punctuation:/[#()[\],.]/}},"class-name":{pattern:/(@param\s+)<[A-Z]\w*>/,lookbehind:!0,inside:{punctuation:/[.<>]/}},"code-section":[{pattern:/(\{@code\s+(?!\s))(?:[^\s{}]|\s+(?![\s}])|\{(?:[^{}]|\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*\})+(?=\s*\})/,lookbehind:!0,inside:{code:{pattern:Te,lookbehind:!0,inside:We.languages.java,alias:"language-java"}}},{pattern:/(<(code|pre|tt)>(?!<code>)\s*)\S(?:\S|\s+\S)*?(?=\s*<\/\2>)/,lookbehind:!0,inside:{line:{pattern:Te,lookbehind:!0,inside:{tag:We.languages.markup.tag,entity:We.languages.markup.entity,code:{pattern:/.+/,inside:We.languages.java,alias:"language-java"}}}}}],tag:We.languages.markup.tag,entity:We.languages.markup.entity}),We.languages.javadoclike.addSupport("java",We.languages.javadoc)}(Me)}},53510:function(ze){"use strict";ze.exports=Ee,Ee.displayName="javadoclike",Ee.aliases=[];function Ee(ue){(function(ce){var Pe=ce.languages.javadoclike={parameter:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*@(?:arg|arguments|param)\s+)\w+/m,lookbehind:!0},keyword:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*|\{)@[a-z][a-zA-Z-]+\b/m,lookbehind:!0},punctuation:/[{}]/};function Re(We,Te){var Ge="doc-comment",st=ce.languages[We];if(st){var Qe=st[Ge];if(!Qe){var Ye={};Ye[Ge]={pattern:/(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/,lookbehind:!0,alias:"comment"},st=ce.languages.insertBefore(We,"comment",Ye),Qe=st[Ge]}if(Qe instanceof RegExp&&(Qe=st[Ge]={pattern:Qe}),Array.isArray(Qe))for(var yt=0,ot=Qe.length;yt<ot;yt++)Qe[yt]instanceof RegExp&&(Qe[yt]={pattern:Qe[yt]}),Te(Qe[yt]);else Te(Qe)}}function Me(We,Te){typeof We=="string"&&(We=[We]),We.forEach(function(Ge){Re(Ge,function(st){st.inside||(st.inside={}),st.inside.rest=Te})})}Object.defineProperty(Pe,"addSupport",{value:Me}),Pe.addSupport(["java","javascript","php"],Pe)})(ue)}},88786:function(ze){"use strict";ze.exports=Ee,Ee.displayName="javascript",Ee.aliases=["js"];function Ee(ue){ue.languages.javascript=ue.languages.extend("clike",{"class-name":[ue.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),ue.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,ue.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:ue.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:ue.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:ue.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:ue.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:ue.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),ue.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:ue.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),ue.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),ue.languages.markup&&(ue.languages.markup.tag.addInlined("script","javascript"),ue.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),ue.languages.js=ue.languages.javascript}},24799:function(ze){"use strict";ze.exports=Ee,Ee.displayName="javastacktrace",Ee.aliases=[];function Ee(ue){ue.languages.javastacktrace={summary:{pattern:/^([\t ]*)(?:(?:Caused by:|Suppressed:|Exception in thread "[^"]*")[\t ]+)?[\w$.]+(?::.*)?$/m,lookbehind:!0,inside:{keyword:{pattern:/^([\t ]*)(?:(?:Caused by|Suppressed)(?=:)|Exception in thread)/m,lookbehind:!0},string:{pattern:/^(\s*)"[^"]*"/,lookbehind:!0},exceptions:{pattern:/^(:?\s*)[\w$.]+(?=:|$)/,lookbehind:!0,inside:{"class-name":/[\w$]+$/,namespace:/\b[a-z]\w*\b/,punctuation:/\./}},message:{pattern:/(:\s*)\S.*/,lookbehind:!0,alias:"string"},punctuation:/:/}},"stack-frame":{pattern:/^([\t ]*)at (?:[\w$./]|@[\w$.+-]*\/)+(?:<init>)?\([^()]*\)/m,lookbehind:!0,inside:{keyword:{pattern:/^(\s*)at(?= )/,lookbehind:!0},source:[{pattern:/(\()\w+\.\w+:\d+(?=\))/,lookbehind:!0,inside:{file:/^\w+\.\w+/,punctuation:/:/,"line-number":{pattern:/\b\d+\b/,alias:"number"}}},{pattern:/(\()[^()]*(?=\))/,lookbehind:!0,inside:{keyword:/^(?:Native Method|Unknown Source)$/}}],"class-name":/[\w$]+(?=\.(?:<init>|[\w$]+)\()/,function:/(?:<init>|[\w$]+)(?=\()/,"class-loader":{pattern:/(\s)[a-z]\w*(?:\.[a-z]\w*)*(?=\/[\w@$.]*\/)/,lookbehind:!0,alias:"namespace",inside:{punctuation:/\./}},module:{pattern:/([\s/])[a-z]\w*(?:\.[a-z]\w*)*(?:@[\w$.+-]*)?(?=\/)/,lookbehind:!0,inside:{version:{pattern:/(@)[\s\S]+/,lookbehind:!0,alias:"number"},punctuation:/[@.]/}},namespace:{pattern:/(?:\b[a-z]\w*\.)+/,inside:{punctuation:/\./}},punctuation:/[()/.]/}},more:{pattern:/^([\t ]*)\.{3} \d+ [a-z]+(?: [a-z]+)*/m,lookbehind:!0,inside:{punctuation:/\.{3}/,number:/\d+/,keyword:/\b[a-z]+(?: [a-z]+)*\b/}}}}},97443:function(ze){"use strict";ze.exports=Ee,Ee.displayName="jexl",Ee.aliases=[];function Ee(ue){ue.languages.jexl={string:/(["'])(?:\\[\s\S]|(?!\1)[^\\])*\1/,transform:{pattern:/(\|\s*)[a-zA-Zа-яА-Я_\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$][\wа-яА-Я\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$]*/,alias:"function",lookbehind:!0},function:/[a-zA-Zа-яА-Я_\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$][\wа-яА-Я\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$]*\s*(?=\()/,number:/\b\d+(?:\.\d+)?\b|\B\.\d+\b/,operator:/[<>!]=?|-|\+|&&|==|\|\|?|\/\/?|[?:*^%]/,boolean:/\b(?:false|true)\b/,keyword:/\bin\b/,punctuation:/[{}[\](),.]/}}},80746:function(ze){"use strict";ze.exports=Ee,Ee.displayName="jolie",Ee.aliases=[];function Ee(ue){ue.languages.jolie=ue.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\[\s\S]|[^"\\])*"/,lookbehind:!0,greedy:!0},"class-name":{pattern:/((?:\b(?:as|courier|embed|in|inputPort|outputPort|service)\b|@)[ \t]*)\w+/,lookbehind:!0},keyword:/\b(?:as|cH|comp|concurrent|constants|courier|cset|csets|default|define|else|embed|embedded|execution|exit|extender|for|foreach|forward|from|global|if|import|in|include|init|inputPort|install|instanceof|interface|is_defined|linkIn|linkOut|main|new|nullProcess|outputPort|over|private|provide|public|scope|sequential|service|single|spawn|synchronized|this|throw|throws|type|undef|until|while|with)\b/,function:/\b[a-z_]\w*(?=[ \t]*[@(])/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?l?/i,operator:/-[-=>]?|\+[+=]?|<[<=]?|[>=*!]=?|&&|\|\||[?\/%^@|]/,punctuation:/[()[\]{},;.:]/,builtin:/\b(?:Byte|any|bool|char|double|enum|float|int|length|long|ranges|regex|string|undefined|void)\b/}),ue.languages.insertBefore("jolie","keyword",{aggregates:{pattern:/(\bAggregates\s*:\s*)(?:\w+(?:\s+with\s+\w+)?\s*,\s*)*\w+(?:\s+with\s+\w+)?/,lookbehind:!0,inside:{keyword:/\bwith\b/,"class-name":/\w+/,punctuation:/,/}},redirects:{pattern:/(\bRedirects\s*:\s*)(?:\w+\s*=>\s*\w+\s*,\s*)*(?:\w+\s*=>\s*\w+)/,lookbehind:!0,inside:{punctuation:/,/,"class-name":/\w+/,operator:/=>/}},property:{pattern:/\b(?:Aggregates|[Ii]nterfaces|Java|Javascript|Jolie|[Ll]ocation|OneWay|[Pp]rotocol|Redirects|RequestResponse)\b(?=[ \t]*:)/}})}},17015:function(ze){"use strict";ze.exports=Ee,Ee.displayName="jq",Ee.aliases=[];function Ee(ue){(function(ce){var Pe=/\\\((?:[^()]|\([^()]*\))*\)/.source,Re=RegExp(/(^|[^\\])"(?:[^"\r\n\\]|\\[^\r\n(]|__)*"/.source.replace(/__/g,function(){return Pe})),Me={interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+Pe),lookbehind:!0,inside:{content:{pattern:/^(\\\()[\s\S]+(?=\)$)/,lookbehind:!0,inside:null},punctuation:/^\\\(|\)$/}}},We=ce.languages.jq={comment:/#.*/,property:{pattern:RegExp(Re.source+/(?=\s*:(?!:))/.source),lookbehind:!0,greedy:!0,inside:Me},string:{pattern:Re,lookbehind:!0,greedy:!0,inside:Me},function:{pattern:/(\bdef\s+)[a-z_]\w+/i,lookbehind:!0},variable:/\B\$\w+/,"property-literal":{pattern:/\b[a-z_]\w*(?=\s*:(?!:))/i,alias:"property"},keyword:/\b(?:as|break|catch|def|elif|else|end|foreach|if|import|include|label|module|modulemeta|null|reduce|then|try|while)\b/,boolean:/\b(?:false|true)\b/,number:/(?:\b\d+\.|\B\.)?\b\d+(?:[eE][+-]?\d+)?\b/,operator:[{pattern:/\|=?/,alias:"pipe"},/\.\.|[!=<>]?=|\?\/\/|\/\/=?|[-+*/%]=?|[<>?]|\b(?:and|not|or)\b/],"c-style-function":{pattern:/\b[a-z_]\w*(?=\s*\()/i,alias:"function"},punctuation:/::|[()\[\]{},:;]|\.(?=\s*[\[\w$])/,dot:{pattern:/\./,alias:"important"}};Me.interpolation.inside.content.inside=We})(ue)}},89246:function(ze){"use strict";ze.exports=Ee,Ee.displayName="jsExtras",Ee.aliases=[];function Ee(ue){(function(ce){ce.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+ce.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),ce.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+ce.languages.javascript.function.source),lookbehind:!0,alias:["function","property-access"]}}),ce.languages.insertBefore("javascript","constant",{"known-class-name":[{pattern:/\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\b/,alias:"class-name"},{pattern:/\b(?:[A-Z]\w*)Error\b/,alias:"class-name"}]});function Pe(st,Qe){return RegExp(st.replace(/<ID>/g,function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source}),Qe)}ce.languages.insertBefore("javascript","keyword",{imports:{pattern:Pe(/(\bimport\b\s*)(?:<ID>(?:\s*,\s*(?:\*\s*as\s+<ID>|\{[^{}]*\}))?|\*\s*as\s+<ID>|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:ce.languages.javascript},exports:{pattern:Pe(/(\bexport\b\s*)(?:\*(?:\s*as\s+<ID>)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:ce.languages.javascript}}),ce.languages.javascript.keyword.unshift({pattern:/\b(?:as|default|export|from|import)\b/,alias:"module"},{pattern:/\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/,alias:"control-flow"},{pattern:/\bnull\b/,alias:["null","nil"]},{pattern:/\bundefined\b/,alias:"nil"}),ce.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),ce.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:Pe(/(\.\s*)#?<ID>/.source),lookbehind:!0},"maybe-class-name":{pattern:/(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/,lookbehind:!0},dom:{pattern:/\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/,alias:"variable"},console:{pattern:/\bconsole(?=\s*\.)/,alias:"class-name"}});for(var Re=["function","function-variable","method","method-variable","property-access"],Me=0;Me<Re.length;Me++){var We=Re[Me],Te=ce.languages.javascript[We];ce.util.type(Te)==="RegExp"&&(Te=ce.languages.javascript[We]={pattern:Te});var Ge=Te.inside||{};Te.inside=Ge,Ge["maybe-class-name"]=/^[A-Z][\s\S]*/}})(ue)}},487:function(ze){"use strict";ze.exports=Ee,Ee.displayName="jsTemplates",Ee.aliases=[];function Ee(ue){(function(ce){var Pe=ce.languages.javascript["template-string"],Re=Pe.pattern.source,Me=Pe.inside.interpolation,We=Me.inside["interpolation-punctuation"],Te=Me.pattern.source;function Ge(Fe,ne){if(ce.languages[Fe])return{pattern:RegExp("((?:"+ne+")\\s*)"+Re),lookbehind:!0,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},"embedded-code":{pattern:/[\s\S]+/,alias:Fe}}}}ce.languages.javascript["template-string"]=[Ge("css",/\b(?:styled(?:\([^)]*\))?(?:\s*\.\s*\w+(?:\([^)]*\))*)*|css(?:\s*\.\s*(?:global|resolve))?|createGlobalStyle|keyframes)/.source),Ge("html",/\bhtml|\.\s*(?:inner|outer)HTML\s*\+?=/.source),Ge("svg",/\bsvg/.source),Ge("markdown",/\b(?:markdown|md)/.source),Ge("graphql",/\b(?:gql|graphql(?:\s*\.\s*experimental)?)/.source),Ge("sql",/\bsql/.source),Pe].filter(Boolean);function st(Fe,ne){return"___"+ne.toUpperCase()+"_"+Fe+"___"}function Qe(Fe,ne,te){var he={code:Fe,grammar:ne,language:te};return ce.hooks.run("before-tokenize",he),he.tokens=ce.tokenize(he.code,he.grammar),ce.hooks.run("after-tokenize",he),he.tokens}function Ye(Fe){var ne={};ne["interpolation-punctuation"]=We;var te=ce.tokenize(Fe,ne);if(te.length===3){var he=[1,1];he.push.apply(he,Qe(te[1],ce.languages.javascript,"javascript")),te.splice.apply(te,he)}return new ce.Token("interpolation",te,Me.alias,Fe)}function yt(Fe,ne,te){var he=ce.tokenize(Fe,{interpolation:{pattern:RegExp(Te),lookbehind:!0}}),se=0,ge={},Se=he.map(function(je){if(typeof je=="string")return je;for(var $e=je.content,qe;Fe.indexOf(qe=st(se++,te))!==-1;);return ge[qe]=$e,qe}).join(""),be=Qe(Se,ne,te),Ae=Object.keys(ge);se=0;function Le(je){for(var $e=0;$e<je.length;$e++){if(se>=Ae.length)return;var qe=je[$e];if(typeof qe=="string"||typeof qe.content=="string"){var nt=Ae[se],dt=typeof qe=="string"?qe:qe.content,it=dt.indexOf(nt);if(it!==-1){++se;var bt=dt.substring(0,it),It=Ye(ge[nt]),Ht=dt.substring(it+nt.length),ln=[];if(bt&&ln.push(bt),ln.push(It),Ht){var un=[Ht];Le(un),ln.push.apply(ln,un)}typeof qe=="string"?(je.splice.apply(je,[$e,1].concat(ln)),$e+=ln.length-1):qe.content=ln}}else{var Qt=qe.content;Array.isArray(Qt)?Le(Qt):Le([Qt])}}}return Le(be),new ce.Token(te,be,"language-"+te,Fe)}var ot={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};ce.hooks.add("after-tokenize",function(Fe){if(!(Fe.language in ot))return;function ne(te){for(var he=0,se=te.length;he<se;he++){var ge=te[he];if(typeof ge!="string"){var Se=ge.content;if(!Array.isArray(Se)){typeof Se!="string"&&ne([Se]);continue}if(ge.type==="template-string"){var be=Se[1];if(Se.length===3&&typeof be!="string"&&be.type==="embedded-code"){var Ae=Nt(be),Le=be.alias,je=Array.isArray(Le)?Le[0]:Le,$e=ce.languages[je];if(!$e)continue;Se[1]=yt(Ae,$e,je)}}else ne(Se)}}}ne(Fe.tokens)});function Nt(Fe){return typeof Fe=="string"?Fe:Array.isArray(Fe)?Fe.map(Nt).join(""):Nt(Fe.content)}})(ue)}},79539:function(ze,Ee,ue){"use strict";var ce=ue(53510),Pe=ue(92784);ze.exports=Re,Re.displayName="jsdoc",Re.aliases=[];function Re(Me){Me.register(ce),Me.register(Pe),function(We){var Te=We.languages.javascript,Ge=/\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})+\}/.source,st="(@(?:arg|argument|param|property)\\s+(?:"+Ge+"\\s+)?)";We.languages.jsdoc=We.languages.extend("javadoclike",{parameter:{pattern:RegExp(st+/(?:(?!\s)[$\w\xA0-\uFFFF.])+(?=\s|$)/.source),lookbehind:!0,inside:{punctuation:/\./}}}),We.languages.insertBefore("jsdoc","keyword",{"optional-parameter":{pattern:RegExp(st+/\[(?:(?!\s)[$\w\xA0-\uFFFF.])+(?:=[^[\]]+)?\](?=\s|$)/.source),lookbehind:!0,inside:{parameter:{pattern:/(^\[)[$\w\xA0-\uFFFF\.]+/,lookbehind:!0,inside:{punctuation:/\./}},code:{pattern:/(=)[\s\S]*(?=\]$)/,lookbehind:!0,inside:Te,alias:"language-javascript"},punctuation:/[=[\]]/}},"class-name":[{pattern:RegExp(/(@(?:augments|class|extends|interface|memberof!?|template|this|typedef)\s+(?:<TYPE>\s+)?)[A-Z]\w*(?:\.[A-Z]\w*)*/.source.replace(/<TYPE>/g,function(){return Ge})),lookbehind:!0,inside:{punctuation:/\./}},{pattern:RegExp("(@[a-z]+\\s+)"+Ge),lookbehind:!0,inside:{string:Te.string,number:Te.number,boolean:Te.boolean,keyword:We.languages.typescript.keyword,operator:/=>|\.\.\.|[&|?:*]/,punctuation:/[.,;=<>{}()[\]]/}}],example:{pattern:/(@example\s+(?!\s))(?:[^@\s]|\s+(?!\s))+?(?=\s*(?:\*\s*)?(?:@\w|\*\/))/,lookbehind:!0,inside:{code:{pattern:/^([\t ]*(?:\*\s*)?)\S.*$/m,lookbehind:!0,inside:Te,alias:"language-javascript"}}}}),We.languages.javadoclike.addSupport("javascript",We.languages.jsdoc)}(Me)}},15628:function(ze){"use strict";ze.exports=Ee,Ee.displayName="json",Ee.aliases=["webmanifest"];function Ee(ue){ue.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},ue.languages.webmanifest=ue.languages.json}},14320:function(ze,Ee,ue){"use strict";var ce=ue(15628);ze.exports=Pe,Pe.displayName="json5",Pe.aliases=[];function Pe(Re){Re.register(ce),function(Me){var We=/("|')(?:\\(?:\r\n?|\n|.)|(?!\1)[^\\\r\n])*\1/;Me.languages.json5=Me.languages.extend("json",{property:[{pattern:RegExp(We.source+"(?=\\s*:)"),greedy:!0},{pattern:/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/,alias:"unquoted"}],string:{pattern:We,greedy:!0},number:/[+-]?\b(?:NaN|Infinity|0x[a-fA-F\d]+)\b|[+-]?(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+\b)?/})}(Re)}},73222:function(ze,Ee,ue){"use strict";var ce=ue(15628);ze.exports=Pe,Pe.displayName="jsonp",Pe.aliases=[];function Pe(Re){Re.register(ce),Re.languages.jsonp=Re.languages.extend("json",{punctuation:/[{}[\]();,.]/}),Re.languages.insertBefore("jsonp","punctuation",{function:/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*\()/})}},92486:function(ze){"use strict";ze.exports=Ee,Ee.displayName="jsstacktrace",Ee.aliases=[];function Ee(ue){ue.languages.jsstacktrace={"error-message":{pattern:/^\S.*/m,alias:"string"},"stack-frame":{pattern:/(^[ \t]+)at[ \t].*/m,lookbehind:!0,inside:{"not-my-code":{pattern:/^at[ \t]+(?!\s)(?:node\.js|<unknown>|.*(?:node_modules|\(<anonymous>\)|\(<unknown>|<anonymous>$|\(internal\/|\(node\.js)).*/m,alias:"comment"},filename:{pattern:/(\bat\s+(?!\s)|\()(?:[a-zA-Z]:)?[^():]+(?=:)/,lookbehind:!0,alias:"url"},function:{pattern:/(\bat\s+(?:new\s+)?)(?!\s)[_$a-zA-Z\xA0-\uFFFF<][.$\w\xA0-\uFFFF<>]*/,lookbehind:!0,inside:{punctuation:/\./}},punctuation:/[()]/,keyword:/\b(?:at|new)\b/,alias:{pattern:/\[(?:as\s+)?(?!\s)[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*\]/,alias:"variable"},"line-number":{pattern:/:\d+(?::\d+)?\b/,alias:"number",inside:{punctuation:/:/}}}}}}},24103:function(ze){"use strict";ze.exports=Ee,Ee.displayName="jsx",Ee.aliases=[];function Ee(ue){(function(ce){var Pe=ce.util.clone(ce.languages.javascript),Re=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,Me=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,We=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function Te(Qe,Ye){return Qe=Qe.replace(/<S>/g,function(){return Re}).replace(/<BRACES>/g,function(){return Me}).replace(/<SPREAD>/g,function(){return We}),RegExp(Qe,Ye)}We=Te(We).source,ce.languages.jsx=ce.languages.extend("markup",Pe),ce.languages.jsx.tag.pattern=Te(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),ce.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,ce.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,ce.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,ce.languages.jsx.tag.inside.comment=Pe.comment,ce.languages.insertBefore("inside","attr-name",{spread:{pattern:Te(/<SPREAD>/.source),inside:ce.languages.jsx}},ce.languages.jsx.tag),ce.languages.insertBefore("inside","special-attr",{script:{pattern:Te(/=<BRACES>/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:ce.languages.jsx}}},ce.languages.jsx.tag);var Ge=function(Qe){return Qe?typeof Qe=="string"?Qe:typeof Qe.content=="string"?Qe.content:Qe.content.map(Ge).join(""):""},st=function(Qe){for(var Ye=[],yt=0;yt<Qe.length;yt++){var ot=Qe[yt],Nt=!1;if(typeof ot!="string"&&(ot.type==="tag"&&ot.content[0]&&ot.content[0].type==="tag"?ot.content[0].content[0].content==="</"?Ye.length>0&&Ye[Ye.length-1].tagName===Ge(ot.content[0].content[1])&&Ye.pop():ot.content[ot.content.length-1].content==="/>"||Ye.push({tagName:Ge(ot.content[0].content[1]),openedBraces:0}):Ye.length>0&&ot.type==="punctuation"&&ot.content==="{"?Ye[Ye.length-1].openedBraces++:Ye.length>0&&Ye[Ye.length-1].openedBraces>0&&ot.type==="punctuation"&&ot.content==="}"?Ye[Ye.length-1].openedBraces--:Nt=!0),(Nt||typeof ot=="string")&&Ye.length>0&&Ye[Ye.length-1].openedBraces===0){var Fe=Ge(ot);yt<Qe.length-1&&(typeof Qe[yt+1]=="string"||Qe[yt+1].type==="plain-text")&&(Fe+=Ge(Qe[yt+1]),Qe.splice(yt+1,1)),yt>0&&(typeof Qe[yt-1]=="string"||Qe[yt-1].type==="plain-text")&&(Fe=Ge(Qe[yt-1])+Fe,Qe.splice(yt-1,1),yt--),Qe[yt]=new ce.Token("plain-text",Fe,null,Fe)}ot.content&&typeof ot.content!="string"&&st(ot.content)}};ce.hooks.add("after-tokenize",function(Qe){Qe.language!=="jsx"&&Qe.language!=="tsx"||st(Qe.tokens)})})(ue)}},40604:function(ze){"use strict";ze.exports=Ee,Ee.displayName="julia",Ee.aliases=[];function Ee(ue){ue.languages.julia={comment:{pattern:/(^|[^\\])(?:#=(?:[^#=]|=(?!#)|#(?!=)|#=(?:[^#=]|=(?!#)|#(?!=))*=#)*=#|#.*)/,lookbehind:!0},regex:{pattern:/r"(?:\\.|[^"\\\r\n])*"[imsx]{0,4}/,greedy:!0},string:{pattern:/"""[\s\S]+?"""|(?:\b\w+)?"(?:\\.|[^"\\\r\n])*"|`(?:[^\\`\r\n]|\\.)*`/,greedy:!0},char:{pattern:/(^|[^\w'])'(?:\\[^\r\n][^'\r\n]*|[^\\\r\n])'/,lookbehind:!0,greedy:!0},keyword:/\b(?:abstract|baremodule|begin|bitstype|break|catch|ccall|const|continue|do|else|elseif|end|export|finally|for|function|global|if|immutable|import|importall|in|let|local|macro|module|print|println|quote|return|struct|try|type|typealias|using|while)\b/,boolean:/\b(?:false|true)\b/,number:/(?:\b(?=\d)|\B(?=\.))(?:0[box])?(?:[\da-f]+(?:_[\da-f]+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[efp][+-]?\d+(?:_\d+)*)?j?/i,operator:/&&|\|\||[-+*^%÷⊻&$\\]=?|\/[\/=]?|!=?=?|\|[=>]?|<(?:<=?|[=:|])?|>(?:=|>>?=?)?|==?=?|[~≠≤≥'√∛]/,punctuation:/::?|[{}[\]();,.?]/,constant:/\b(?:(?:Inf|NaN)(?:16|32|64)?|im|pi)\b|[πℯ]/}}},23109:function(ze){"use strict";ze.exports=Ee,Ee.displayName="keepalived",Ee.aliases=[];function Ee(ue){ue.languages.keepalived={comment:{pattern:/[#!].*/,greedy:!0},string:{pattern:/(^|[^\\])(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/,lookbehind:!0,greedy:!0},ip:{pattern:RegExp(/\b(?:(?:(?:[\da-f]{1,4}:){7}[\da-f]{1,4}|(?:[\da-f]{1,4}:){6}:[\da-f]{1,4}|(?:[\da-f]{1,4}:){5}:(?:[\da-f]{1,4}:)?[\da-f]{1,4}|(?:[\da-f]{1,4}:){4}:(?:[\da-f]{1,4}:){0,2}[\da-f]{1,4}|(?:[\da-f]{1,4}:){3}:(?:[\da-f]{1,4}:){0,3}[\da-f]{1,4}|(?:[\da-f]{1,4}:){2}:(?:[\da-f]{1,4}:){0,4}[\da-f]{1,4}|(?:[\da-f]{1,4}:){6}<ipv4>|(?:[\da-f]{1,4}:){0,5}:<ipv4>|::(?:[\da-f]{1,4}:){0,5}<ipv4>|[\da-f]{1,4}::(?:[\da-f]{1,4}:){0,5}[\da-f]{1,4}|::(?:[\da-f]{1,4}:){0,6}[\da-f]{1,4}|(?:[\da-f]{1,4}:){1,7}:)(?:\/\d{1,3})?|<ipv4>(?:\/\d{1,2})?)\b/.source.replace(/<ipv4>/g,function(){return/(?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d))/.source}),"i"),alias:"number"},path:{pattern:/(\s)\/(?:[^\/\s]+\/)*[^\/\s]*|\b[a-zA-Z]:\\(?:[^\\\s]+\\)*[^\\\s]*/,lookbehind:!0,alias:"string"},variable:/\$\{?\w+\}?/,email:{pattern:/[\w-]+@[\w-]+(?:\.[\w-]{2,3}){1,2}/,alias:"string"},"conditional-configuration":{pattern:/@\^?[\w-]+/,alias:"variable"},operator:/=/,property:/\b(?:BFD_CHECK|DNS_CHECK|FILE_CHECK|HTTP_GET|MISC_CHECK|NAME|PING_CHECK|SCRIPTS|SMTP_CHECK|SSL|SSL_GET|TCP_CHECK|UDP_CHECK|accept|advert_int|alpha|auth_pass|auth_type|authentication|bfd_cpu_affinity|bfd_instance|bfd_no_swap|bfd_priority|bfd_process_name|bfd_rlimit_rttime|bfd_rt_priority|bind_if|bind_port|bindto|ca|certificate|check_unicast_src|checker|checker_cpu_affinity|checker_log_all_failures|checker_no_swap|checker_priority|checker_rlimit_rttime|checker_rt_priority|child_wait_time|connect_ip|connect_port|connect_timeout|dbus_service_name|debug|default_interface|delay|delay_before_retry|delay_loop|digest|dont_track_primary|dynamic|dynamic_interfaces|enable_(?:dbus|script_security|sni|snmp_checker|snmp_rfc|snmp_rfcv2|snmp_rfcv3|snmp_vrrp|traps)|end|fall|fast_recovery|file|flag-[123]|fork_delay|full_command|fwmark|garp_group|garp_interval|garp_lower_prio_delay|garp_lower_prio_repeat|garp_master_delay|garp_master_refresh|garp_master_refresh_repeat|garp_master_repeat|global_defs|global_tracking|gna_interval|group|ha_suspend|hashed|helo_name|higher_prio_send_advert|hoplimit|http_protocol|hysteresis|idle_tx|include|inhibit_on_failure|init_fail|init_file|instance|interface|interfaces|interval|ip_family|ipvs_process_name|keepalived.conf|kernel_rx_buf_size|key|linkbeat_interfaces|linkbeat_use_polling|log_all_failures|log_unknown_vrids|lower_prio_no_advert|lthreshold|lvs_flush|lvs_flush_onstop|lvs_method|lvs_netlink_cmd_rcv_bufs|lvs_netlink_cmd_rcv_bufs_force|lvs_netlink_monitor_rcv_bufs|lvs_netlink_monitor_rcv_bufs_force|lvs_notify_fifo|lvs_notify_fifo_script|lvs_sched|lvs_sync_daemon|max_auto_priority|max_hops|mcast_src_ip|mh-fallback|mh-port|min_auto_priority_delay|min_rx|min_tx|misc_dynamic|misc_path|misc_timeout|multiplier|name|namespace_with_ipsets|native_ipv6|neighbor_ip|net_namespace|net_namespace_ipvs|nftables|nftables_counters|nftables_ifindex|nftables_priority|no_accept|no_checker_emails|no_email_faults|nopreempt|notification_email|notification_email_from|notify|notify_backup|notify_deleted|notify_down|notify_fault|notify_fifo|notify_fifo_script|notify_master|notify_master_rx_lower_pri|notify_priority_changes|notify_stop|notify_up|old_unicast_checksum|omega|ops|param_match|passive|password|path|persistence_engine|persistence_granularity|persistence_timeout|preempt|preempt_delay|priority|process|process_monitor_rcv_bufs|process_monitor_rcv_bufs_force|process_name|process_names|promote_secondaries|protocol|proxy_arp|proxy_arp_pvlan|quorum|quorum_down|quorum_max|quorum_up|random_seed|real_server|regex|regex_max_offset|regex_min_offset|regex_no_match|regex_options|regex_stack|reload_repeat|reload_time_file|require_reply|retry|rise|router_id|rs_init_notifies|script|script_user|sh-fallback|sh-port|shutdown_script|shutdown_script_timeout|skip_check_adv_addr|smtp_alert|smtp_alert_checker|smtp_alert_vrrp|smtp_connect_timeout|smtp_helo_name|smtp_server|snmp_socket|sorry_server|sorry_server_inhibit|sorry_server_lvs_method|source_ip|start|startup_script|startup_script_timeout|state|static_ipaddress|static_routes|static_rules|status_code|step|strict_mode|sync_group_tracking_weight|terminate_delay|timeout|track_bfd|track_file|track_group|track_interface|track_process|track_script|track_src_ip|ttl|type|umask|unicast_peer|unicast_src_ip|unicast_ttl|url|use_ipvlan|use_pid_dir|use_vmac|user|uthreshold|val[123]|version|virtual_ipaddress|virtual_ipaddress_excluded|virtual_router_id|virtual_routes|virtual_rules|virtual_server|virtual_server_group|virtualhost|vmac_xmit_base|vrrp|vrrp_(?:check_unicast_src|cpu_affinity|garp_interval|garp_lower_prio_delay|garp_lower_prio_repeat|garp_master_delay|garp_master_refresh|garp_master_refresh_repeat|garp_master_repeat|gna_interval|higher_prio_send_advert|instance|ipsets|iptables|lower_prio_no_advert|mcast_group4|mcast_group6|min_garp|netlink_cmd_rcv_bufs|netlink_cmd_rcv_bufs_force|netlink_monitor_rcv_bufs|netlink_monitor_rcv_bufs_force|no_swap|notify_fifo|notify_fifo_script|notify_priority_changes|priority|process_name|rlimit_rttime|rt_priority|rx_bufs_multiplier|rx_bufs_policy|script|skip_check_adv_addr|startup_delay|strict|sync_group|track_process|version)|warmup|weight)\b/,constant:/\b(?:A|AAAA|AH|BACKUP|CNAME|DR|MASTER|MX|NAT|NS|PASS|SCTP|SOA|TCP|TUN|TXT|UDP|dh|fo|lblc|lblcr|lc|mh|nq|ovf|rr|sed|sh|wlc|wrr)\b/,number:{pattern:/(^|[^\w.-])-?\d+(?:\.\d+)?/,lookbehind:!0},boolean:/\b(?:false|no|off|on|true|yes)\b/,punctuation:/[\{\}]/}}},32082:function(ze){"use strict";ze.exports=Ee,Ee.displayName="keyman",Ee.aliases=[];function Ee(ue){ue.languages.keyman={comment:{pattern:/\bc .*/i,greedy:!0},string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0},"virtual-key":{pattern:/\[\s*(?:(?:ALT|CAPS|CTRL|LALT|LCTRL|NCAPS|RALT|RCTRL|SHIFT)\s+)*(?:[TKU]_[\w?]+|[A-E]\d\d?|"[^"\r\n]*"|'[^'\r\n]*')\s*\]/i,greedy:!0,alias:"function"},"header-keyword":{pattern:/&\w+/,alias:"bold"},"header-statement":{pattern:/\b(?:bitmap|bitmaps|caps always off|caps on only|copyright|hotkey|language|layout|message|name|shift frees caps|version)\b/i,alias:"bold"},"rule-keyword":{pattern:/\b(?:any|baselayout|beep|call|context|deadkey|dk|if|index|layer|notany|nul|outs|platform|reset|return|save|set|store|use)\b/i,alias:"keyword"},"structural-keyword":{pattern:/\b(?:ansi|begin|group|match|nomatch|unicode|using keys)\b/i,alias:"keyword"},"compile-target":{pattern:/\$(?:keyman|keymanonly|keymanweb|kmfl|weaver):/i,alias:"property"},number:/\b(?:U\+[\dA-F]+|d\d+|x[\da-f]+|\d+)\b/i,operator:/[+>\\$]|\.\./,punctuation:/[()=,]/}}},77674:function(ze){"use strict";ze.exports=Ee,Ee.displayName="kotlin",Ee.aliases=["kt","kts"];function Ee(ue){(function(ce){ce.languages.kotlin=ce.languages.extend("clike",{keyword:{pattern:/(^|[^.])\b(?:abstract|actual|annotation|as|break|by|catch|class|companion|const|constructor|continue|crossinline|data|do|dynamic|else|enum|expect|external|final|finally|for|fun|get|if|import|in|infix|init|inline|inner|interface|internal|is|lateinit|noinline|null|object|open|operator|out|override|package|private|protected|public|reified|return|sealed|set|super|suspend|tailrec|this|throw|to|try|typealias|val|var|vararg|when|where|while)\b/,lookbehind:!0},function:[{pattern:/(?:`[^\r\n`]+`|\b\w+)(?=\s*\()/,greedy:!0},{pattern:/(\.)(?:`[^\r\n`]+`|\w+)(?=\s*\{)/,lookbehind:!0,greedy:!0}],number:/\b(?:0[xX][\da-fA-F]+(?:_[\da-fA-F]+)*|0[bB][01]+(?:_[01]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?[fFL]?)\b/,operator:/\+[+=]?|-[-=>]?|==?=?|!(?:!|==?)?|[\/*%<>]=?|[?:]:?|\.\.|&&|\|\||\b(?:and|inv|or|shl|shr|ushr|xor)\b/}),delete ce.languages.kotlin["class-name"];var Pe={"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:ce.languages.kotlin}};ce.languages.insertBefore("kotlin","string",{"string-literal":[{pattern:/"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/,alias:"multiline",inside:{interpolation:{pattern:/\$(?:[a-z_]\w*|\{[^{}]*\})/i,inside:Pe},string:/[\s\S]+/}},{pattern:/"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/,alias:"singleline",inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,lookbehind:!0,inside:Pe},string:/[\s\S]+/}}],char:{pattern:/'(?:[^'\\\r\n]|\\(?:.|u[a-fA-F0-9]{0,4}))'/,greedy:!0}}),delete ce.languages.kotlin.string,ce.languages.insertBefore("kotlin","keyword",{annotation:{pattern:/\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/,alias:"builtin"}}),ce.languages.insertBefore("kotlin","function",{label:{pattern:/\b\w+@|@\w+\b/,alias:"symbol"}}),ce.languages.kt=ce.languages.kotlin,ce.languages.kts=ce.languages.kotlin})(ue)}},37524:function(ze){"use strict";ze.exports=Ee,Ee.displayName="kumir",Ee.aliases=["kum"];function Ee(ue){(function(ce){var Pe=/\s\x00-\x1f\x22-\x2f\x3a-\x3f\x5b-\x5e\x60\x7b-\x7e/.source;function Re(Me,We){return RegExp(Me.replace(/<nonId>/g,Pe),We)}ce.languages.kumir={comment:{pattern:/\|.*/},prolog:{pattern:/#.*/,greedy:!0},string:{pattern:/"[^\n\r"]*"|'[^\n\r']*'/,greedy:!0},boolean:{pattern:Re(/(^|[<nonId>])(?:да|нет)(?=[<nonId>]|$)/.source),lookbehind:!0},"operator-word":{pattern:Re(/(^|[<nonId>])(?:и|или|не)(?=[<nonId>]|$)/.source),lookbehind:!0,alias:"keyword"},"system-variable":{pattern:Re(/(^|[<nonId>])знач(?=[<nonId>]|$)/.source),lookbehind:!0,alias:"keyword"},type:[{pattern:Re(/(^|[<nonId>])(?:вещ|лит|лог|сим|цел)(?:\x20*таб)?(?=[<nonId>]|$)/.source),lookbehind:!0,alias:"builtin"},{pattern:Re(/(^|[<nonId>])(?:компл|сканкод|файл|цвет)(?=[<nonId>]|$)/.source),lookbehind:!0,alias:"important"}],keyword:{pattern:Re(/(^|[<nonId>])(?:алг|арг(?:\x20*рез)?|ввод|ВКЛЮЧИТЬ|вс[её]|выбор|вывод|выход|дано|для|до|дс|если|иначе|исп|использовать|кон(?:(?:\x20+|_)исп)?|кц(?:(?:\x20+|_)при)?|надо|нач|нс|нц|от|пауза|пока|при|раза?|рез|стоп|таб|то|утв|шаг)(?=[<nonId>]|$)/.source),lookbehind:!0},name:{pattern:Re(/(^|[<nonId>])[^\d<nonId>][^<nonId>]*(?:\x20+[^<nonId>]+)*(?=[<nonId>]|$)/.source),lookbehind:!0},number:{pattern:Re(/(^|[<nonId>])(?:\B\$[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)(?=[<nonId>]|$)/.source,"i"),lookbehind:!0},punctuation:/:=|[(),:;\[\]]/,"operator-char":{pattern:/\*\*?|<[=>]?|>=?|[-+/=]/,alias:"operator"}},ce.languages.kum=ce.languages.kumir})(ue)}},6658:function(ze){"use strict";ze.exports=Ee,Ee.displayName="kusto",Ee.aliases=[];function Ee(ue){ue.languages.kusto={comment:{pattern:/\/\/.*/,greedy:!0},string:{pattern:/```[\s\S]*?```|[hH]?(?:"(?:[^\r\n\\"]|\\.)*"|'(?:[^\r\n\\']|\\.)*'|@(?:"[^\r\n"]*"|'[^\r\n']*'))/,greedy:!0},verb:{pattern:/(\|\s*)[a-z][\w-]*/i,lookbehind:!0,alias:"keyword"},command:{pattern:/\.[a-z][a-z\d-]*\b/,alias:"keyword"},"class-name":/\b(?:bool|datetime|decimal|dynamic|guid|int|long|real|string|timespan)\b/,keyword:/\b(?:access|alias|and|anti|as|asc|auto|between|by|(?:contains|(?:ends|starts)with|has(?:perfix|suffix)?)(?:_cs)?|database|declare|desc|external|from|fullouter|has_all|in|ingestion|inline|inner|innerunique|into|(?:left|right)(?:anti(?:semi)?|inner|outer|semi)?|let|like|local|not|of|on|or|pattern|print|query_parameters|range|restrict|schema|set|step|table|tables|to|view|where|with|matches\s+regex|nulls\s+(?:first|last))(?![\w-])/,boolean:/\b(?:false|null|true)\b/,function:/\b[a-z_]\w*(?=\s*\()/,datetime:[{pattern:/\b(?:(?:Fri|Friday|Mon|Monday|Sat|Saturday|Sun|Sunday|Thu|Thursday|Tue|Tuesday|Wed|Wednesday)\s*,\s*)?\d{1,2}(?:\s+|-)(?:Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)(?:\s+|-)\d{2}\s+\d{2}:\d{2}(?::\d{2})?(?:\s*(?:\b(?:[A-Z]|(?:[ECMT][DS]|GM|U)T)|[+-]\d{4}))?\b/,alias:"number"},{pattern:/[+-]?\b(?:\d{4}-\d{2}-\d{2}(?:[ T]\d{2}:\d{2}(?::\d{2}(?:\.\d+)?)?)?|\d{2}:\d{2}(?::\d{2}(?:\.\d+)?)?)Z?/,alias:"number"}],number:/\b(?:0x[0-9A-Fa-f]+|\d+(?:\.\d+)?(?:[Ee][+-]?\d+)?)(?:(?:min|sec|[mnµ]s|[dhms]|microsecond|tick)\b)?|[+-]?\binf\b/,operator:/=>|[!=]~|[!=<>]=?|[-+*/%|]|\.\./,punctuation:/[()\[\]{},;.:]/}}},24824:function(ze){"use strict";ze.exports=Ee,Ee.displayName="latex",Ee.aliases=["tex","context"];function Ee(ue){(function(ce){var Pe=/\\(?:[^a-z()[\]]|[a-z*]+)/i,Re={"equation-command":{pattern:Pe,alias:"regex"}};ce.languages.latex={comment:/%.*/,cdata:{pattern:/(\\begin\{((?:lstlisting|verbatim)\*?)\})[\s\S]*?(?=\\end\{\2\})/,lookbehind:!0},equation:[{pattern:/\$\$(?:\\[\s\S]|[^\\$])+\$\$|\$(?:\\[\s\S]|[^\\$])+\$|\\\([\s\S]*?\\\)|\\\[[\s\S]*?\\\]/,inside:Re,alias:"string"},{pattern:/(\\begin\{((?:align|eqnarray|equation|gather|math|multline)\*?)\})[\s\S]*?(?=\\end\{\2\})/,lookbehind:!0,inside:Re,alias:"string"}],keyword:{pattern:/(\\(?:begin|cite|documentclass|end|label|ref|usepackage)(?:\[[^\]]+\])?\{)[^}]+(?=\})/,lookbehind:!0},url:{pattern:/(\\url\{)[^}]+(?=\})/,lookbehind:!0},headline:{pattern:/(\\(?:chapter|frametitle|paragraph|part|section|subparagraph|subsection|subsubparagraph|subsubsection|subsubsubparagraph)\*?(?:\[[^\]]+\])?\{)[^}]+(?=\})/,lookbehind:!0,alias:"class-name"},function:{pattern:Pe,alias:"selector"},punctuation:/[[\]{}&]/},ce.languages.tex=ce.languages.latex,ce.languages.context=ce.languages.latex})(ue)}},22776:function(ze,Ee,ue){"use strict";var ce=ue(51478),Pe=ue(53852);ze.exports=Re,Re.displayName="latte",Re.aliases=[];function Re(Me){Me.register(ce),Me.register(Pe),function(We){We.languages.latte={comment:/^\{\*[\s\S]*/,"latte-tag":{pattern:/(^\{(?:\/(?=[a-z]))?)(?:[=_]|[a-z]\w*\b(?!\())/i,lookbehind:!0,alias:"important"},delimiter:{pattern:/^\{\/?|\}$/,alias:"punctuation"},php:{pattern:/\S(?:[\s\S]*\S)?/,alias:"language-php",inside:We.languages.php}};var Te=We.languages.extend("markup",{});We.languages.insertBefore("inside","attr-value",{"n-attr":{pattern:/n:[\w-]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+))?/,inside:{"attr-name":{pattern:/^[^\s=]+/,alias:"important"},"attr-value":{pattern:/=[\s\S]+/,inside:{punctuation:[/^=/,{pattern:/^(\s*)["']|["']$/,lookbehind:!0}],php:{pattern:/\S(?:[\s\S]*\S)?/,inside:We.languages.php}}}}}},Te.tag),We.hooks.add("before-tokenize",function(Ge){if(Ge.language==="latte"){var st=/\{\*[\s\S]*?\*\}|\{[^'"\s{}*](?:[^"'/{}]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|\/\*(?:[^*]|\*(?!\/))*\*\/)*\}/g;We.languages["markup-templating"].buildPlaceholders(Ge,"latte",st),Ge.grammar=Te}}),We.hooks.add("after-tokenize",function(Ge){We.languages["markup-templating"].tokenizePlaceholders(Ge,"latte")})}(Me)}},89700:function(ze){"use strict";ze.exports=Ee,Ee.displayName="less",Ee.aliases=[];function Ee(ue){ue.languages.less=ue.languages.extend("css",{comment:[/\/\*[\s\S]*?\*\//,{pattern:/(^|[^\\])\/\/.*/,lookbehind:!0}],atrule:{pattern:/@[\w-](?:\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{punctuation:/[:()]/}},selector:{pattern:/(?:@\{[\w-]+\}|[^{};\s@])(?:@\{[\w-]+\}|\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};@\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{variable:/@+[\w-]+/}},property:/(?:@\{[\w-]+\}|[\w-])+(?:\+_?)?(?=\s*:)/,operator:/[+\-*\/]/}),ue.languages.insertBefore("less","property",{variable:[{pattern:/@[\w-]+\s*:/,inside:{punctuation:/:/}},/@@?[\w-]+/],"mixin-usage":{pattern:/([{;]\s*)[.#](?!\d)[\w-].*?(?=[(;])/,lookbehind:!0,alias:"function"}})}},99296:function(ze,Ee,ue){"use strict";var ce=ue(48780);ze.exports=Pe,Pe.displayName="lilypond",Pe.aliases=[];function Pe(Re){Re.register(ce),function(Me){for(var We=/\((?:[^();"#\\]|\\[\s\S]|;.*(?!.)|"(?:[^"\\]|\\.)*"|#(?:\{(?:(?!#\})[\s\S])*#\}|[^{])|<expr>)*\)/.source,Te=5,Ge=0;Ge<Te;Ge++)We=We.replace(/<expr>/g,function(){return We});We=We.replace(/<expr>/g,/[^\s\S]/.source);var st=Me.languages.lilypond={comment:/%(?:(?!\{).*|\{[\s\S]*?%\})/,"embedded-scheme":{pattern:RegExp(/(^|[=\s])#(?:"(?:[^"\\]|\\.)*"|[^\s()"]*(?:[^\s()]|<expr>))/.source.replace(/<expr>/g,function(){return We}),"m"),lookbehind:!0,greedy:!0,inside:{scheme:{pattern:/^(#)[\s\S]+$/,lookbehind:!0,alias:"language-scheme",inside:{"embedded-lilypond":{pattern:/#\{[\s\S]*?#\}/,greedy:!0,inside:{punctuation:/^#\{|#\}$/,lilypond:{pattern:/[\s\S]+/,alias:"language-lilypond",inside:null}}},rest:Me.languages.scheme}},punctuation:/#/}},string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},"class-name":{pattern:/(\\new\s+)[\w-]+/,lookbehind:!0},keyword:{pattern:/\\[a-z][-\w]*/i,inside:{punctuation:/^\\/}},operator:/[=|]|<<|>>/,punctuation:{pattern:/(^|[a-z\d])(?:'+|,+|[_^]?-[_^]?(?:[-+^!>._]|(?=\d))|[_^]\.?|[.!])|[{}()[\]<>^~]|\\[()[\]<>\\!]|--|__/,lookbehind:!0},number:/\b\d+(?:\/\d+)?\b/};st["embedded-scheme"].inside.scheme.inside["embedded-lilypond"].inside.lilypond.inside=st,Me.languages.ly=st}(Re)}},39940:function(ze,Ee,ue){"use strict";var ce=ue(51478);ze.exports=Pe,Pe.displayName="liquid",Pe.aliases=[];function Pe(Re){Re.register(ce),Re.languages.liquid={comment:{pattern:/(^\{%\s*comment\s*%\})[\s\S]+(?=\{%\s*endcomment\s*%\}$)/,lookbehind:!0},delimiter:{pattern:/^\{(?:\{\{|[%\{])-?|-?(?:\}\}|[%\}])\}$/,alias:"punctuation"},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},keyword:/\b(?:as|assign|break|(?:end)?(?:capture|case|comment|for|form|if|paginate|raw|style|tablerow|unless)|continue|cycle|decrement|echo|else|elsif|in|include|increment|limit|liquid|offset|range|render|reversed|section|when|with)\b/,object:/\b(?:address|all_country_option_tags|article|block|blog|cart|checkout|collection|color|country|country_option_tags|currency|current_page|current_tags|customer|customer_address|date|discount_allocation|discount_application|external_video|filter|filter_value|font|forloop|fulfillment|generic_file|gift_card|group|handle|image|line_item|link|linklist|localization|location|measurement|media|metafield|model|model_source|order|page|page_description|page_image|page_title|part|policy|product|product_option|recommendations|request|robots|routes|rule|script|search|selling_plan|selling_plan_allocation|selling_plan_group|shipping_method|shop|shop_locale|sitemap|store_availability|tax_line|template|theme|transaction|unit_price_measurement|user_agent|variant|video|video_source)\b/,function:[{pattern:/(\|\s*)\w+/,lookbehind:!0,alias:"filter"},{pattern:/(\.\s*)(?:first|last|size)/,lookbehind:!0}],boolean:/\b(?:false|nil|true)\b/,range:{pattern:/\.\./,alias:"operator"},number:/\b\d+(?:\.\d+)?\b/,operator:/[!=]=|<>|[<>]=?|[|?:=-]|\b(?:and|contains(?=\s)|or)\b/,punctuation:/[.,\[\]()]/,empty:{pattern:/\bempty\b/,alias:"keyword"}},Re.hooks.add("before-tokenize",function(Me){var We=/\{%\s*comment\s*%\}[\s\S]*?\{%\s*endcomment\s*%\}|\{(?:%[\s\S]*?%|\{\{[\s\S]*?\}\}|\{[\s\S]*?\})\}/g,Te=!1;Re.languages["markup-templating"].buildPlaceholders(Me,"liquid",We,function(Ge){var st=/^\{%-?\s*(\w+)/.exec(Ge);if(st){var Qe=st[1];if(Qe==="raw"&&!Te)return Te=!0,!0;if(Qe==="endraw")return Te=!1,!0}return!Te})}),Re.hooks.add("after-tokenize",function(Me){Re.languages["markup-templating"].tokenizePlaceholders(Me,"liquid")})}},34973:function(ze){"use strict";ze.exports=Ee,Ee.displayName="lisp",Ee.aliases=[];function Ee(ue){(function(ce){function Pe(Fe){return RegExp(/(\()/.source+"(?:"+Fe+")"+/(?=[\s\)])/.source)}function Re(Fe){return RegExp(/([\s([])/.source+"(?:"+Fe+")"+/(?=[\s)])/.source)}var Me=/(?!\d)[-+*/~!@$%^=<>{}\w]+/.source,We="&"+Me,Te="(\\()",Ge="(?=\\))",st="(?=\\s)",Qe=/(?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\))*\))*\))*/.source,Ye={heading:{pattern:/;;;.*/,alias:["comment","title"]},comment:/;.*/,string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0,inside:{argument:/[-A-Z]+(?=[.,\s])/,symbol:RegExp("`"+Me+"'")}},"quoted-symbol":{pattern:RegExp("#?'"+Me),alias:["variable","symbol"]},"lisp-property":{pattern:RegExp(":"+Me),alias:"property"},splice:{pattern:RegExp(",@?"+Me),alias:["symbol","variable"]},keyword:[{pattern:RegExp(Te+"(?:and|(?:cl-)?letf|cl-loop|cond|cons|error|if|(?:lexical-)?let\\*?|message|not|null|or|provide|require|setq|unless|use-package|when|while)"+st),lookbehind:!0},{pattern:RegExp(Te+"(?:append|by|collect|concat|do|finally|for|in|return)"+st),lookbehind:!0}],declare:{pattern:Pe(/declare/.source),lookbehind:!0,alias:"keyword"},interactive:{pattern:Pe(/interactive/.source),lookbehind:!0,alias:"keyword"},boolean:{pattern:Re(/nil|t/.source),lookbehind:!0},number:{pattern:Re(/[-+]?\d+(?:\.\d*)?/.source),lookbehind:!0},defvar:{pattern:RegExp(Te+"def(?:const|custom|group|var)\\s+"+Me),lookbehind:!0,inside:{keyword:/^def[a-z]+/,variable:RegExp(Me)}},defun:{pattern:RegExp(Te+/(?:cl-)?(?:defmacro|defun\*?)\s+/.source+Me+/\s+\(/.source+Qe+/\)/.source),lookbehind:!0,greedy:!0,inside:{keyword:/^(?:cl-)?def\S+/,arguments:null,function:{pattern:RegExp("(^\\s)"+Me),lookbehind:!0},punctuation:/[()]/}},lambda:{pattern:RegExp(Te+"lambda\\s+\\(\\s*(?:&?"+Me+"(?:\\s+&?"+Me+")*\\s*)?\\)"),lookbehind:!0,greedy:!0,inside:{keyword:/^lambda/,arguments:null,punctuation:/[()]/}},car:{pattern:RegExp(Te+Me),lookbehind:!0},punctuation:[/(?:['`,]?\(|[)\[\]])/,{pattern:/(\s)\.(?=\s)/,lookbehind:!0}]},yt={"lisp-marker":RegExp(We),varform:{pattern:RegExp(/\(/.source+Me+/\s+(?=\S)/.source+Qe+/\)/.source),inside:Ye},argument:{pattern:RegExp(/(^|[\s(])/.source+Me),lookbehind:!0,alias:"variable"},rest:Ye},ot="\\S+(?:\\s+\\S+)*",Nt={pattern:RegExp(Te+Qe+Ge),lookbehind:!0,inside:{"rest-vars":{pattern:RegExp("&(?:body|rest)\\s+"+ot),inside:yt},"other-marker-vars":{pattern:RegExp("&(?:aux|optional)\\s+"+ot),inside:yt},keys:{pattern:RegExp("&key\\s+"+ot+"(?:\\s+&allow-other-keys)?"),inside:yt},argument:{pattern:RegExp(Me),alias:"variable"},punctuation:/[()]/}};Ye.lambda.inside.arguments=Nt,Ye.defun.inside.arguments=ce.util.clone(Nt),Ye.defun.inside.arguments.inside.sublist=Nt,ce.languages.lisp=Ye,ce.languages.elisp=Ye,ce.languages.emacs=Ye,ce.languages["emacs-lisp"]=Ye})(ue)}},98135:function(ze){"use strict";ze.exports=Ee,Ee.displayName="livescript",Ee.aliases=[];function Ee(ue){ue.languages.livescript={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0},{pattern:/(^|[^\\])#.*/,lookbehind:!0}],"interpolated-string":{pattern:/(^|[^"])("""|")(?:\\[\s\S]|(?!\2)[^\\])*\2(?!")/,lookbehind:!0,greedy:!0,inside:{variable:{pattern:/(^|[^\\])#[a-z_](?:-?[a-z]|[\d_])*/m,lookbehind:!0},interpolation:{pattern:/(^|[^\\])#\{[^}]+\}/m,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^#\{|\}$/,alias:"variable"}}},string:/[\s\S]+/}},string:[{pattern:/('''|')(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},{pattern:/<\[[\s\S]*?\]>/,greedy:!0},/\\[^\s,;\])}]+/],regex:[{pattern:/\/\/(?:\[[^\r\n\]]*\]|\\.|(?!\/\/)[^\\\[])+\/\/[gimyu]{0,5}/,greedy:!0,inside:{comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0}}},{pattern:/\/(?:\[[^\r\n\]]*\]|\\.|[^/\\\r\n\[])+\/[gimyu]{0,5}/,greedy:!0}],keyword:{pattern:/(^|(?!-).)\b(?:break|case|catch|class|const|continue|default|do|else|extends|fallthrough|finally|for(?: ever)?|function|if|implements|it|let|loop|new|null|otherwise|own|return|super|switch|that|then|this|throw|try|unless|until|var|void|when|while|yield)(?!-)\b/m,lookbehind:!0},"keyword-operator":{pattern:/(^|[^-])\b(?:(?:delete|require|typeof)!|(?:and|by|delete|export|from|import(?: all)?|in|instanceof|is(?: not|nt)?|not|of|or|til|to|typeof|with|xor)(?!-)\b)/m,lookbehind:!0,alias:"operator"},boolean:{pattern:/(^|[^-])\b(?:false|no|off|on|true|yes)(?!-)\b/m,lookbehind:!0},argument:{pattern:/(^|(?!\.&\.)[^&])&(?!&)\d*/m,lookbehind:!0,alias:"variable"},number:/\b(?:\d+~[\da-z]+|\d[\d_]*(?:\.\d[\d_]*)?(?:[a-z]\w*)?)/i,identifier:/[a-z_](?:-?[a-z]|[\d_])*/i,operator:[{pattern:/( )\.(?= )/,lookbehind:!0},/\.(?:[=~]|\.\.?)|\.(?:[&|^]|<<|>>>?)\.|:(?:=|:=?)|&&|\|[|>]|<(?:<<?<?|--?!?|~~?!?|[|=?])?|>[>=?]?|-(?:->?|>)?|\+\+?|@@?|%%?|\*\*?|!(?:~?=|--?>|~?~>)?|~(?:~?>|=)?|==?|\^\^?|[\/?]/],punctuation:/[(){}\[\]|.,:;`]/},ue.languages.livescript["interpolated-string"].inside.interpolation.inside.rest=ue.languages.livescript}},36907:function(ze){"use strict";ze.exports=Ee,Ee.displayName="llvm",Ee.aliases=[];function Ee(ue){(function(ce){ce.languages.llvm={comment:/;.*/,string:{pattern:/"[^"]*"/,greedy:!0},boolean:/\b(?:false|true)\b/,variable:/[%@!#](?:(?!\d)(?:[-$.\w]|\\[a-f\d]{2})+|\d+)/i,label:/(?!\d)(?:[-$.\w]|\\[a-f\d]{2})+:/i,type:{pattern:/\b(?:double|float|fp128|half|i[1-9]\d*|label|metadata|ppc_fp128|token|void|x86_fp80|x86_mmx)\b/,alias:"class-name"},keyword:/\b[a-z_][a-z_0-9]*\b/,number:/[+-]?\b\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\b|\b0x[\dA-Fa-f]+\b|\b0xK[\dA-Fa-f]{20}\b|\b0x[ML][\dA-Fa-f]{32}\b|\b0xH[\dA-Fa-f]{4}\b/,punctuation:/[{}[\];(),.!*=<>]/}})(ue)}},3567:function(ze){"use strict";ze.exports=Ee,Ee.displayName="log",Ee.aliases=[];function Ee(ue){ue.languages.log={string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?![st] | \w)(?:[^'\\\r\n]|\\.)*'/,greedy:!0},exception:{pattern:/(^|[^\w.])[a-z][\w.]*(?:Error|Exception):.*(?:(?:\r\n?|\n)[ \t]*(?:at[ \t].+|\.{3}.*|Caused by:.*))+(?:(?:\r\n?|\n)[ \t]*\.\.\. .*)?/,lookbehind:!0,greedy:!0,alias:["javastacktrace","language-javastacktrace"],inside:ue.languages.javastacktrace||{keyword:/\bat\b/,function:/[a-z_][\w$]*(?=\()/,punctuation:/[.:()]/}},level:[{pattern:/\b(?:ALERT|CRIT|CRITICAL|EMERG|EMERGENCY|ERR|ERROR|FAILURE|FATAL|SEVERE)\b/,alias:["error","important"]},{pattern:/\b(?:WARN|WARNING|WRN)\b/,alias:["warning","important"]},{pattern:/\b(?:DISPLAY|INF|INFO|NOTICE|STATUS)\b/,alias:["info","keyword"]},{pattern:/\b(?:DBG|DEBUG|FINE)\b/,alias:["debug","keyword"]},{pattern:/\b(?:FINER|FINEST|TRACE|TRC|VERBOSE|VRB)\b/,alias:["trace","comment"]}],property:{pattern:/((?:^|[\]|])[ \t]*)[a-z_](?:[\w-]|\b\/\b)*(?:[. ]\(?\w(?:[\w-]|\b\/\b)*\)?)*:(?=\s)/im,lookbehind:!0},separator:{pattern:/(^|[^-+])-{3,}|={3,}|\*{3,}|- - /m,lookbehind:!0,alias:"comment"},url:/\b(?:file|ftp|https?):\/\/[^\s|,;'"]*[^\s|,;'">.]/,email:{pattern:/(^|\s)[-\w+.]+@[a-z][a-z0-9-]*(?:\.[a-z][a-z0-9-]*)+(?=\s)/,lookbehind:!0,alias:"url"},"ip-address":{pattern:/\b(?:\d{1,3}(?:\.\d{1,3}){3})\b/,alias:"constant"},"mac-address":{pattern:/\b[a-f0-9]{2}(?::[a-f0-9]{2}){5}\b/i,alias:"constant"},domain:{pattern:/(^|\s)[a-z][a-z0-9-]*(?:\.[a-z][a-z0-9-]*)*\.[a-z][a-z0-9-]+(?=\s)/,lookbehind:!0,alias:"constant"},uuid:{pattern:/\b[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\b/i,alias:"constant"},hash:{pattern:/\b(?:[a-f0-9]{32}){1,2}\b/i,alias:"constant"},"file-path":{pattern:/\b[a-z]:[\\/][^\s|,;:(){}\[\]"']+|(^|[\s:\[\](>|])\.{0,2}\/\w[^\s|,;:(){}\[\]"']*/i,lookbehind:!0,greedy:!0,alias:"string"},date:{pattern:RegExp(/\b\d{4}[-/]\d{2}[-/]\d{2}(?:T(?=\d{1,2}:)|(?=\s\d{1,2}:))/.source+"|"+/\b\d{1,4}[-/ ](?:\d{1,2}|Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)[-/ ]\d{2,4}T?\b/.source+"|"+/\b(?:(?:Fri|Mon|Sat|Sun|Thu|Tue|Wed)(?:\s{1,2}(?:Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep))?|Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)\s{1,2}\d{1,2}\b/.source,"i"),alias:"number"},time:{pattern:/\b\d{1,2}:\d{1,2}:\d{1,2}(?:[.,:]\d+)?(?:\s?[+-]\d{2}:?\d{2}|Z)?\b/,alias:"number"},boolean:/\b(?:false|null|true)\b/i,number:{pattern:/(^|[^.\w])(?:0x[a-f0-9]+|0o[0-7]+|0b[01]+|v?\d[\da-f]*(?:\.\d+)*(?:e[+-]?\d+)?[a-z]{0,3}\b)\b(?!\.\w)/i,lookbehind:!0},operator:/[;:?<=>~/@!$%&+\-|^(){}*#]/,punctuation:/[\[\].,]/}}},23763:function(ze){"use strict";ze.exports=Ee,Ee.displayName="lolcode",Ee.aliases=[];function Ee(ue){ue.languages.lolcode={comment:[/\bOBTW\s[\s\S]*?\sTLDR\b/,/\bBTW.+/],string:{pattern:/"(?::.|[^":])*"/,inside:{variable:/:\{[^}]+\}/,symbol:[/:\([a-f\d]+\)/i,/:\[[^\]]+\]/,/:[)>o":]/]},greedy:!0},number:/(?:\B-)?(?:\b\d+(?:\.\d*)?|\B\.\d+)/,symbol:{pattern:/(^|\s)(?:A )?(?:BUKKIT|NOOB|NUMBAR|NUMBR|TROOF|YARN)(?=\s|,|$)/,lookbehind:!0,inside:{keyword:/A(?=\s)/}},label:{pattern:/((?:^|\s)(?:IM IN YR|IM OUTTA YR) )[a-zA-Z]\w*/,lookbehind:!0,alias:"string"},function:{pattern:/((?:^|\s)(?:HOW IZ I|I IZ|IZ) )[a-zA-Z]\w*/,lookbehind:!0},keyword:[{pattern:/(^|\s)(?:AN|FOUND YR|GIMMEH|GTFO|HAI|HAS A|HOW IZ I|I HAS A|I IZ|IF U SAY SO|IM IN YR|IM OUTTA YR|IS NOW(?: A)?|ITZ(?: A)?|IZ|KTHX|KTHXBYE|LIEK(?: A)?|MAEK|MEBBE|MKAY|NERFIN|NO WAI|O HAI IM|O RLY\?|OIC|OMG|OMGWTF|R|SMOOSH|SRS|TIL|UPPIN|VISIBLE|WILE|WTF\?|YA RLY|YR)(?=\s|,|$)/,lookbehind:!0},/'Z(?=\s|,|$)/],boolean:{pattern:/(^|\s)(?:FAIL|WIN)(?=\s|,|$)/,lookbehind:!0},variable:{pattern:/(^|\s)IT(?=\s|,|$)/,lookbehind:!0},operator:{pattern:/(^|\s)(?:NOT|BOTH SAEM|DIFFRINT|(?:ALL|ANY|BIGGR|BOTH|DIFF|EITHER|MOD|PRODUKT|QUOSHUNT|SMALLR|SUM|WON) OF)(?=\s|,|$)/,lookbehind:!0},punctuation:/\.{3}|…|,|!/}}},33978:function(ze){"use strict";ze.exports=Ee,Ee.displayName="lua",Ee.aliases=[];function Ee(ue){ue.languages.lua={comment:/^#!.+|--(?:\[(=*)\[[\s\S]*?\]\1\]|.*)/m,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\z(?:\r\n|\s)|\\(?:\r\n|[^z]))*\1|\[(=*)\[[\s\S]*?\]\2\]/,greedy:!0},number:/\b0x[a-f\d]+(?:\.[a-f\d]*)?(?:p[+-]?\d+)?\b|\b\d+(?:\.\B|(?:\.\d*)?(?:e[+-]?\d+)?\b)|\B\.\d+(?:e[+-]?\d+)?\b/i,keyword:/\b(?:and|break|do|else|elseif|end|false|for|function|goto|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/,function:/(?!\d)\w+(?=\s*(?:[({]))/,operator:[/[-+*%^&|#]|\/\/?|<[<=]?|>[>=]?|[=~]=?/,{pattern:/(^|[^.])\.\.(?!\.)/,lookbehind:!0}],punctuation:/[\[\](){},;]|\.+|:+/}}},40472:function(ze){"use strict";ze.exports=Ee,Ee.displayName="magma",Ee.aliases=[];function Ee(ue){ue.languages.magma={output:{pattern:/^(>.*(?:\r(?:\n|(?!\n))|\n))(?!>)(?:.+|(?:\r(?:\n|(?!\n))|\n)(?!>).*)(?:(?:\r(?:\n|(?!\n))|\n)(?!>).*)*/m,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/(^|[^\\"])"(?:[^\r\n\\"]|\\.)*"/,lookbehind:!0,greedy:!0},keyword:/\b(?:_|adj|and|assert|assert2|assert3|assigned|break|by|case|cat|catch|clear|cmpeq|cmpne|continue|declare|default|delete|diff|div|do|elif|else|end|eq|error|eval|exists|exit|for|forall|forward|fprintf|freeze|function|ge|gt|if|iload|import|in|intrinsic|is|join|le|load|local|lt|meet|mod|ne|not|notadj|notin|notsubset|or|print|printf|procedure|quit|random|read|readi|repeat|require|requirege|requirerange|restore|return|save|sdiff|select|subset|then|time|to|try|until|vprint|vprintf|vtime|when|where|while|xor)\b/,boolean:/\b(?:false|true)\b/,generator:{pattern:/\b[a-z_]\w*(?=\s*<)/i,alias:"class-name"},function:/\b[a-z_]\w*(?=\s*\()/i,number:{pattern:/(^|[^\w.]|\.\.)(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?(?:_[a-z]?)?(?=$|[^\w.]|\.\.)/,lookbehind:!0},operator:/->|[-+*/^~!|#=]|:=|\.\./,punctuation:/[()[\]{}<>,;.:]/}}},44695:function(ze){"use strict";ze.exports=Ee,Ee.displayName="makefile",Ee.aliases=[];function Ee(ue){ue.languages.makefile={comment:{pattern:/(^|[^\\])#(?:\\(?:\r\n|[\s\S])|[^\\\r\n])*/,lookbehind:!0},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"builtin-target":{pattern:/\.[A-Z][^:#=\s]+(?=\s*:(?!=))/,alias:"builtin"},target:{pattern:/^(?:[^:=\s]|[ \t]+(?![\s:]))+(?=\s*:(?!=))/m,alias:"symbol",inside:{variable:/\$+(?:(?!\$)[^(){}:#=\s]+|(?=[({]))/}},variable:/\$+(?:(?!\$)[^(){}:#=\s]+|\([@*%<^+?][DF]\)|(?=[({]))/,keyword:/-include\b|\b(?:define|else|endef|endif|export|ifn?def|ifn?eq|include|override|private|sinclude|undefine|unexport|vpath)\b/,function:{pattern:/(\()(?:abspath|addsuffix|and|basename|call|dir|error|eval|file|filter(?:-out)?|findstring|firstword|flavor|foreach|guile|if|info|join|lastword|load|notdir|or|origin|patsubst|realpath|shell|sort|strip|subst|suffix|value|warning|wildcard|word(?:list|s)?)(?=[ \t])/,lookbehind:!0},operator:/(?:::|[?:+!])?=|[|@]/,punctuation:/[:;(){}]/}}},53885:function(ze){"use strict";ze.exports=Ee,Ee.displayName="markdown",Ee.aliases=["md"];function Ee(ue){(function(ce){var Pe=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function Re(yt){return yt=yt.replace(/<inner>/g,function(){return Pe}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+yt+")")}var Me=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,We=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return Me}),Te=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;ce.languages.markdown=ce.languages.extend("markup",{}),ce.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:ce.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+We+Te+"(?:"+We+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+We+Te+")(?:"+We+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(Me),inside:ce.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+We+")"+Te+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+We+"$"),inside:{"table-header":{pattern:RegExp(Me),alias:"important",inside:ce.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:Re(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:Re(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:Re(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:Re(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(yt){["url","bold","italic","strike","code-snippet"].forEach(function(ot){yt!==ot&&(ce.languages.markdown[yt].inside.content.inside[ot]=ce.languages.markdown[ot])})}),ce.hooks.add("after-tokenize",function(yt){if(yt.language!=="markdown"&&yt.language!=="md")return;function ot(Nt){if(!(!Nt||typeof Nt=="string"))for(var Fe=0,ne=Nt.length;Fe<ne;Fe++){var te=Nt[Fe];if(te.type!=="code"){ot(te.content);continue}var he=te.content[1],se=te.content[3];if(he&&se&&he.type==="code-language"&&se.type==="code-block"&&typeof he.content=="string"){var ge=he.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp");ge=(/[a-z][\w-]*/i.exec(ge)||[""])[0].toLowerCase();var Se="language-"+ge;se.alias?typeof se.alias=="string"?se.alias=[se.alias,Se]:se.alias.push(Se):se.alias=[Se]}}}ot(yt.tokens)}),ce.hooks.add("wrap",function(yt){if(yt.type==="code-block"){for(var ot="",Nt=0,Fe=yt.classes.length;Nt<Fe;Nt++){var ne=yt.classes[Nt],te=/language-(.+)/.exec(ne);if(te){ot=te[1];break}}var he=ce.languages[ot];if(he)yt.content=ce.highlight(Ye(yt.content.value),he,ot);else if(ot&&ot!=="none"&&ce.plugins.autoloader){var se="md-"+new Date().valueOf()+"-"+Math.floor(Math.random()*1e16);yt.attributes.id=se,ce.plugins.autoloader.loadLanguages(ot,function(){var ge=document.getElementById(se);ge&&(ge.innerHTML=ce.highlight(ge.textContent,ce.languages[ot],ot))})}}});var Ge=RegExp(ce.languages.markup.tag.pattern.source,"gi"),st={amp:"&",lt:"<",gt:">",quot:'"'},Qe=String.fromCodePoint||String.fromCharCode;function Ye(yt){var ot=yt.replace(Ge,"");return ot=ot.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(Nt,Fe){if(Fe=Fe.toLowerCase(),Fe[0]==="#"){var ne;return Fe[1]==="x"?ne=parseInt(Fe.slice(2),16):ne=Number(Fe.slice(1)),Qe(ne)}else{var te=st[Fe];return te||Nt}}),ot}ce.languages.md=ce.languages.markdown})(ue)}},51478:function(ze){"use strict";ze.exports=Ee,Ee.displayName="markupTemplating",Ee.aliases=[];function Ee(ue){(function(ce){function Pe(Re,Me){return"___"+Re.toUpperCase()+Me+"___"}Object.defineProperties(ce.languages["markup-templating"]={},{buildPlaceholders:{value:function(Re,Me,We,Te){if(Re.language===Me){var Ge=Re.tokenStack=[];Re.code=Re.code.replace(We,function(st){if(typeof Te=="function"&&!Te(st))return st;for(var Qe=Ge.length,Ye;Re.code.indexOf(Ye=Pe(Me,Qe))!==-1;)++Qe;return Ge[Qe]=st,Ye}),Re.grammar=ce.languages.markup}}},tokenizePlaceholders:{value:function(Re,Me){if(Re.language!==Me||!Re.tokenStack)return;Re.grammar=ce.languages[Me];var We=0,Te=Object.keys(Re.tokenStack);function Ge(st){for(var Qe=0;Qe<st.length&&!(We>=Te.length);Qe++){var Ye=st[Qe];if(typeof Ye=="string"||Ye.content&&typeof Ye.content=="string"){var yt=Te[We],ot=Re.tokenStack[yt],Nt=typeof Ye=="string"?Ye:Ye.content,Fe=Pe(Me,yt),ne=Nt.indexOf(Fe);if(ne>-1){++We;var te=Nt.substring(0,ne),he=new ce.Token(Me,ce.tokenize(ot,Re.grammar),"language-"+Me,ot),se=Nt.substring(ne+Fe.length),ge=[];te&&ge.push.apply(ge,Ge([te])),ge.push(he),se&&ge.push.apply(ge,Ge([se])),typeof Ye=="string"?st.splice.apply(st,[Qe,1].concat(ge)):Ye.content=ge}}else Ye.content&&Ge(Ye.content)}return st}Ge(Re.tokens)}}})})(ue)}},70614:function(ze){"use strict";ze.exports=Ee,Ee.displayName="markup",Ee.aliases=["html","mathml","svg","xml","ssml","atom","rss"];function Ee(ue){ue.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},ue.languages.markup.tag.inside["attr-value"].inside.entity=ue.languages.markup.entity,ue.languages.markup.doctype.inside["internal-subset"].inside=ue.languages.markup,ue.hooks.add("wrap",function(ce){ce.type==="entity"&&(ce.attributes.title=ce.content.value.replace(/&/,"&"))}),Object.defineProperty(ue.languages.markup.tag,"addInlined",{value:function(Pe,Re){var Me={};Me["language-"+Re]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:ue.languages[Re]},Me.cdata=/^<!\[CDATA\[|\]\]>$/i;var We={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:Me}};We["language-"+Re]={pattern:/[\s\S]+/,inside:ue.languages[Re]};var Te={};Te[Pe]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return Pe}),"i"),lookbehind:!0,greedy:!0,inside:We},ue.languages.insertBefore("markup","cdata",Te)}}),Object.defineProperty(ue.languages.markup.tag,"addAttribute",{value:function(ce,Pe){ue.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+ce+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[Pe,"language-"+Pe],inside:ue.languages[Pe]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),ue.languages.html=ue.languages.markup,ue.languages.mathml=ue.languages.markup,ue.languages.svg=ue.languages.markup,ue.languages.xml=ue.languages.extend("markup",{}),ue.languages.ssml=ue.languages.xml,ue.languages.atom=ue.languages.xml,ue.languages.rss=ue.languages.xml}},16928:function(ze){"use strict";ze.exports=Ee,Ee.displayName="matlab",Ee.aliases=[];function Ee(ue){ue.languages.matlab={comment:[/%\{[\s\S]*?\}%/,/%.+/],string:{pattern:/\B'(?:''|[^'\r\n])*'/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+)?(?:[ij])?|\b[ij]\b/,keyword:/\b(?:NaN|break|case|catch|continue|else|elseif|end|for|function|if|inf|otherwise|parfor|pause|pi|return|switch|try|while)\b/,function:/\b(?!\d)\w+(?=\s*\()/,operator:/\.?[*^\/\\']|[+\-:@]|[<>=~]=?|&&?|\|\|?/,punctuation:/\.{3}|[.,;\[\](){}!]/}}},13586:function(ze){"use strict";ze.exports=Ee,Ee.displayName="maxscript",Ee.aliases=[];function Ee(ue){(function(ce){var Pe=/\b(?:about|and|animate|as|at|attributes|by|case|catch|collect|continue|coordsys|do|else|exit|fn|for|from|function|global|if|in|local|macroscript|mapped|max|not|of|off|on|or|parameters|persistent|plugin|rcmenu|return|rollout|set|struct|then|throw|to|tool|try|undo|utility|when|where|while|with)\b/i;ce.languages.maxscript={comment:{pattern:/\/\*[\s\S]*?(?:\*\/|$)|--.*/,greedy:!0},string:{pattern:/(^|[^"\\@])(?:"(?:[^"\\]|\\[\s\S])*"|@"[^"]*")/,lookbehind:!0,greedy:!0},path:{pattern:/\$(?:[\w/\\.*?]|'[^']*')*/,greedy:!0,alias:"string"},"function-call":{pattern:RegExp("((?:"+(/^/.source+"|"+/[;=<>+\-*/^({\[]/.source+"|"+/\b(?:and|by|case|catch|collect|do|else|if|in|not|or|return|then|to|try|where|while|with)\b/.source)+")[ ]*)(?!"+Pe.source+")"+/[a-z_]\w*\b/.source+"(?=[ ]*(?:"+("(?!"+Pe.source+")"+/[a-z_]/.source+"|"+/\d|-\.?\d/.source+"|"+/[({'"$@#?]/.source)+"))","im"),lookbehind:!0,greedy:!0,alias:"function"},"function-definition":{pattern:/(\b(?:fn|function)\s+)\w+\b/i,lookbehind:!0,alias:"function"},argument:{pattern:/\b[a-z_]\w*(?=:)/i,alias:"attr-name"},keyword:Pe,boolean:/\b(?:false|true)\b/,time:{pattern:/(^|[^\w.])(?:(?:(?:\d+(?:\.\d*)?|\.\d+)(?:[eEdD][+-]\d+|[LP])?[msft])+|\d+:\d+(?:\.\d*)?)(?![\w.:])/,lookbehind:!0,alias:"number"},number:[{pattern:/(^|[^\w.])(?:(?:\d+(?:\.\d*)?|\.\d+)(?:[eEdD][+-]\d+|[LP])?|0x[a-fA-F0-9]+)(?![\w.:])/,lookbehind:!0},/\b(?:e|pi)\b/],constant:/\b(?:dontcollect|ok|silentValue|undefined|unsupplied)\b/,color:{pattern:/\b(?:black|blue|brown|gray|green|orange|red|white|yellow)\b/i,alias:"constant"},operator:/[-+*/<>=!]=?|[&^?]|#(?!\()/,punctuation:/[()\[\]{}.:,;]|#(?=\()|\\$/m}})(ue)}},37164:function(ze){"use strict";ze.exports=Ee,Ee.displayName="mel",Ee.aliases=[];function Ee(ue){ue.languages.mel={comment:/\/\/.*/,code:{pattern:/`(?:\\.|[^\\`\r\n])*`/,greedy:!0,alias:"italic",inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"}}},string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},variable:/\$\w+/,number:/\b0x[\da-fA-F]+\b|\b\d+(?:\.\d*)?|\B\.\d+/,flag:{pattern:/-[^\d\W]\w*/,alias:"operator"},keyword:/\b(?:break|case|continue|default|do|else|float|for|global|if|in|int|matrix|proc|return|string|switch|vector|while)\b/,function:/\b\w+(?=\()|\b(?:CBG|HfAddAttractorToAS|HfAssignAS|HfBuildEqualMap|HfBuildFurFiles|HfBuildFurImages|HfCancelAFR|HfConnectASToHF|HfCreateAttractor|HfDeleteAS|HfEditAS|HfPerformCreateAS|HfRemoveAttractorFromAS|HfSelectAttached|HfSelectAttractors|HfUnAssignAS|Mayatomr|about|abs|addAttr|addAttributeEditorNodeHelp|addDynamic|addNewShelfTab|addPP|addPanelCategory|addPrefixToName|advanceToNextDrivenKey|affectedNet|affects|aimConstraint|air|alias|aliasAttr|align|alignCtx|alignCurve|alignSurface|allViewFit|ambientLight|angle|angleBetween|animCone|animCurveEditor|animDisplay|animView|annotate|appendStringArray|applicationName|applyAttrPreset|applyTake|arcLenDimContext|arcLengthDimension|arclen|arrayMapper|art3dPaintCtx|artAttrCtx|artAttrPaintVertexCtx|artAttrSkinPaintCtx|artAttrTool|artBuildPaintMenu|artFluidAttrCtx|artPuttyCtx|artSelectCtx|artSetPaintCtx|artUserPaintCtx|assignCommand|assignInputDevice|assignViewportFactories|attachCurve|attachDeviceAttr|attachSurface|attrColorSliderGrp|attrCompatibility|attrControlGrp|attrEnumOptionMenu|attrEnumOptionMenuGrp|attrFieldGrp|attrFieldSliderGrp|attrNavigationControlGrp|attrPresetEditWin|attributeExists|attributeInfo|attributeMenu|attributeQuery|autoKeyframe|autoPlace|bakeClip|bakeFluidShading|bakePartialHistory|bakeResults|bakeSimulation|basename|basenameEx|batchRender|bessel|bevel|bevelPlus|binMembership|bindSkin|blend2|blendShape|blendShapeEditor|blendShapePanel|blendTwoAttr|blindDataType|boneLattice|boundary|boxDollyCtx|boxZoomCtx|bufferCurve|buildBookmarkMenu|buildKeyframeMenu|button|buttonManip|cacheFile|cacheFileCombine|cacheFileMerge|cacheFileTrack|camera|cameraView|canCreateManip|canvas|capitalizeString|catch|catchQuiet|ceil|changeSubdivComponentDisplayLevel|changeSubdivRegion|channelBox|character|characterMap|characterOutlineEditor|characterize|chdir|checkBox|checkBoxGrp|checkDefaultRenderGlobals|choice|circle|circularFillet|clamp|clear|clearCache|clip|clipEditor|clipEditorCurrentTimeCtx|clipSchedule|clipSchedulerOutliner|clipTrimBefore|closeCurve|closeSurface|cluster|cmdFileOutput|cmdScrollFieldExecuter|cmdScrollFieldReporter|cmdShell|coarsenSubdivSelectionList|collision|color|colorAtPoint|colorEditor|colorIndex|colorIndexSliderGrp|colorSliderButtonGrp|colorSliderGrp|columnLayout|commandEcho|commandLine|commandPort|compactHairSystem|componentEditor|compositingInterop|computePolysetVolume|condition|cone|confirmDialog|connectAttr|connectControl|connectDynamic|connectJoint|connectionInfo|constrain|constrainValue|constructionHistory|container|containsMultibyte|contextInfo|control|convertFromOldLayers|convertIffToPsd|convertLightmap|convertSolidTx|convertTessellation|convertUnit|copyArray|copyFlexor|copyKey|copySkinWeights|cos|cpButton|cpCache|cpClothSet|cpCollision|cpConstraint|cpConvClothToMesh|cpForces|cpGetSolverAttr|cpPanel|cpProperty|cpRigidCollisionFilter|cpSeam|cpSetEdit|cpSetSolverAttr|cpSolver|cpSolverTypes|cpTool|cpUpdateClothUVs|createDisplayLayer|createDrawCtx|createEditor|createLayeredPsdFile|createMotionField|createNewShelf|createNode|createRenderLayer|createSubdivRegion|cross|crossProduct|ctxAbort|ctxCompletion|ctxEditMode|ctxTraverse|currentCtx|currentTime|currentTimeCtx|currentUnit|curve|curveAddPtCtx|curveCVCtx|curveEPCtx|curveEditorCtx|curveIntersect|curveMoveEPCtx|curveOnSurface|curveSketchCtx|cutKey|cycleCheck|cylinder|dagPose|date|defaultLightListCheckBox|defaultNavigation|defineDataServer|defineVirtualDevice|deformer|deg_to_rad|delete|deleteAttr|deleteShadingGroupsAndMaterials|deleteShelfTab|deleteUI|deleteUnusedBrushes|delrandstr|detachCurve|detachDeviceAttr|detachSurface|deviceEditor|devicePanel|dgInfo|dgdirty|dgeval|dgtimer|dimWhen|directKeyCtx|directionalLight|dirmap|dirname|disable|disconnectAttr|disconnectJoint|diskCache|displacementToPoly|displayAffected|displayColor|displayCull|displayLevelOfDetail|displayPref|displayRGBColor|displaySmoothness|displayStats|displayString|displaySurface|distanceDimContext|distanceDimension|doBlur|dolly|dollyCtx|dopeSheetEditor|dot|dotProduct|doubleProfileBirailSurface|drag|dragAttrContext|draggerContext|dropoffLocator|duplicate|duplicateCurve|duplicateSurface|dynCache|dynControl|dynExport|dynExpression|dynGlobals|dynPaintEditor|dynParticleCtx|dynPref|dynRelEdPanel|dynRelEditor|dynamicLoad|editAttrLimits|editDisplayLayerGlobals|editDisplayLayerMembers|editRenderLayerAdjustment|editRenderLayerGlobals|editRenderLayerMembers|editor|editorTemplate|effector|emit|emitter|enableDevice|encodeString|endString|endsWith|env|equivalent|equivalentTol|erf|error|eval|evalDeferred|evalEcho|event|exactWorldBoundingBox|exclusiveLightCheckBox|exec|executeForEachObject|exists|exp|expression|expressionEditorListen|extendCurve|extendSurface|extrude|fcheck|fclose|feof|fflush|fgetline|fgetword|file|fileBrowserDialog|fileDialog|fileExtension|fileInfo|filetest|filletCurve|filter|filterCurve|filterExpand|filterStudioImport|findAllIntersections|findAnimCurves|findKeyframe|findMenuItem|findRelatedSkinCluster|finder|firstParentOf|fitBspline|flexor|floatEq|floatField|floatFieldGrp|floatScrollBar|floatSlider|floatSlider2|floatSliderButtonGrp|floatSliderGrp|floor|flow|fluidCacheInfo|fluidEmitter|fluidVoxelInfo|flushUndo|fmod|fontDialog|fopen|formLayout|format|fprint|frameLayout|fread|freeFormFillet|frewind|fromNativePath|fwrite|gamma|gauss|geometryConstraint|getApplicationVersionAsFloat|getAttr|getClassification|getDefaultBrush|getFileList|getFluidAttr|getInputDeviceRange|getMayaPanelTypes|getModifiers|getPanel|getParticleAttr|getPluginResource|getenv|getpid|glRender|glRenderEditor|globalStitch|gmatch|goal|gotoBindPose|grabColor|gradientControl|gradientControlNoAttr|graphDollyCtx|graphSelectContext|graphTrackCtx|gravity|grid|gridLayout|group|groupObjectsByName|hardenPointCurve|hardware|hardwareRenderPanel|headsUpDisplay|headsUpMessage|help|helpLine|hermite|hide|hilite|hitTest|hotBox|hotkey|hotkeyCheck|hsv_to_rgb|hudButton|hudSlider|hudSliderButton|hwReflectionMap|hwRender|hwRenderLoad|hyperGraph|hyperPanel|hyperShade|hypot|iconTextButton|iconTextCheckBox|iconTextRadioButton|iconTextRadioCollection|iconTextScrollList|iconTextStaticLabel|ikHandle|ikHandleCtx|ikHandleDisplayScale|ikSolver|ikSplineHandleCtx|ikSystem|ikSystemInfo|ikfkDisplayMethod|illustratorCurves|image|imfPlugins|inheritTransform|insertJoint|insertJointCtx|insertKeyCtx|insertKnotCurve|insertKnotSurface|instance|instanceable|instancer|intField|intFieldGrp|intScrollBar|intSlider|intSliderGrp|interToUI|internalVar|intersect|iprEngine|isAnimCurve|isConnected|isDirty|isParentOf|isSameObject|isTrue|isValidObjectName|isValidString|isValidUiName|isolateSelect|itemFilter|itemFilterAttr|itemFilterRender|itemFilterType|joint|jointCluster|jointCtx|jointDisplayScale|jointLattice|keyTangent|keyframe|keyframeOutliner|keyframeRegionCurrentTimeCtx|keyframeRegionDirectKeyCtx|keyframeRegionDollyCtx|keyframeRegionInsertKeyCtx|keyframeRegionMoveKeyCtx|keyframeRegionScaleKeyCtx|keyframeRegionSelectKeyCtx|keyframeRegionSetKeyCtx|keyframeRegionTrackCtx|keyframeStats|lassoContext|lattice|latticeDeformKeyCtx|launch|launchImageEditor|layerButton|layeredShaderPort|layeredTexturePort|layout|layoutDialog|lightList|lightListEditor|lightListPanel|lightlink|lineIntersection|linearPrecision|linstep|listAnimatable|listAttr|listCameras|listConnections|listDeviceAttachments|listHistory|listInputDeviceAxes|listInputDeviceButtons|listInputDevices|listMenuAnnotation|listNodeTypes|listPanelCategories|listRelatives|listSets|listTransforms|listUnselected|listerEditor|loadFluid|loadNewShelf|loadPlugin|loadPluginLanguageResources|loadPrefObjects|localizedPanelLabel|lockNode|loft|log|longNameOf|lookThru|ls|lsThroughFilter|lsType|lsUI|mag|makeIdentity|makeLive|makePaintable|makeRoll|makeSingleSurface|makeTubeOn|makebot|manipMoveContext|manipMoveLimitsCtx|manipOptions|manipRotateContext|manipRotateLimitsCtx|manipScaleContext|manipScaleLimitsCtx|marker|match|max|memory|menu|menuBarLayout|menuEditor|menuItem|menuItemToShelf|menuSet|menuSetPref|messageLine|min|minimizeApp|mirrorJoint|modelCurrentTimeCtx|modelEditor|modelPanel|mouse|movIn|movOut|move|moveIKtoFK|moveKeyCtx|moveVertexAlongDirection|multiProfileBirailSurface|mute|nParticle|nameCommand|nameField|namespace|namespaceInfo|newPanelItems|newton|nodeCast|nodeIconButton|nodeOutliner|nodePreset|nodeType|noise|nonLinear|normalConstraint|normalize|nurbsBoolean|nurbsCopyUVSet|nurbsCube|nurbsEditUV|nurbsPlane|nurbsSelect|nurbsSquare|nurbsToPoly|nurbsToPolygonsPref|nurbsToSubdiv|nurbsToSubdivPref|nurbsUVSet|nurbsViewDirectionVector|objExists|objectCenter|objectLayer|objectType|objectTypeUI|obsoleteProc|oceanNurbsPreviewPlane|offsetCurve|offsetCurveOnSurface|offsetSurface|openGLExtension|openMayaPref|optionMenu|optionMenuGrp|optionVar|orbit|orbitCtx|orientConstraint|outlinerEditor|outlinerPanel|overrideModifier|paintEffectsDisplay|pairBlend|palettePort|paneLayout|panel|panelConfiguration|panelHistory|paramDimContext|paramDimension|paramLocator|parent|parentConstraint|particle|particleExists|particleInstancer|particleRenderInfo|partition|pasteKey|pathAnimation|pause|pclose|percent|performanceOptions|pfxstrokes|pickWalk|picture|pixelMove|planarSrf|plane|play|playbackOptions|playblast|plugAttr|plugNode|pluginInfo|pluginResourceUtil|pointConstraint|pointCurveConstraint|pointLight|pointMatrixMult|pointOnCurve|pointOnSurface|pointPosition|poleVectorConstraint|polyAppend|polyAppendFacetCtx|polyAppendVertex|polyAutoProjection|polyAverageNormal|polyAverageVertex|polyBevel|polyBlendColor|polyBlindData|polyBoolOp|polyBridgeEdge|polyCacheMonitor|polyCheck|polyChipOff|polyClipboard|polyCloseBorder|polyCollapseEdge|polyCollapseFacet|polyColorBlindData|polyColorDel|polyColorPerVertex|polyColorSet|polyCompare|polyCone|polyCopyUV|polyCrease|polyCreaseCtx|polyCreateFacet|polyCreateFacetCtx|polyCube|polyCut|polyCutCtx|polyCylinder|polyCylindricalProjection|polyDelEdge|polyDelFacet|polyDelVertex|polyDuplicateAndConnect|polyDuplicateEdge|polyEditUV|polyEditUVShell|polyEvaluate|polyExtrudeEdge|polyExtrudeFacet|polyExtrudeVertex|polyFlipEdge|polyFlipUV|polyForceUV|polyGeoSampler|polyHelix|polyInfo|polyInstallAction|polyLayoutUV|polyListComponentConversion|polyMapCut|polyMapDel|polyMapSew|polyMapSewMove|polyMergeEdge|polyMergeEdgeCtx|polyMergeFacet|polyMergeFacetCtx|polyMergeUV|polyMergeVertex|polyMirrorFace|polyMoveEdge|polyMoveFacet|polyMoveFacetUV|polyMoveUV|polyMoveVertex|polyNormal|polyNormalPerVertex|polyNormalizeUV|polyOptUvs|polyOptions|polyOutput|polyPipe|polyPlanarProjection|polyPlane|polyPlatonicSolid|polyPoke|polyPrimitive|polyPrism|polyProjection|polyPyramid|polyQuad|polyQueryBlindData|polyReduce|polySelect|polySelectConstraint|polySelectConstraintMonitor|polySelectCtx|polySelectEditCtx|polySeparate|polySetToFaceNormal|polySewEdge|polyShortestPathCtx|polySmooth|polySoftEdge|polySphere|polySphericalProjection|polySplit|polySplitCtx|polySplitEdge|polySplitRing|polySplitVertex|polyStraightenUVBorder|polySubdivideEdge|polySubdivideFacet|polyToSubdiv|polyTorus|polyTransfer|polyTriangulate|polyUVSet|polyUnite|polyWedgeFace|popen|popupMenu|pose|pow|preloadRefEd|print|progressBar|progressWindow|projFileViewer|projectCurve|projectTangent|projectionContext|projectionManip|promptDialog|propModCtx|propMove|psdChannelOutliner|psdEditTextureFile|psdExport|psdTextureFile|putenv|pwd|python|querySubdiv|quit|rad_to_deg|radial|radioButton|radioButtonGrp|radioCollection|radioMenuItemCollection|rampColorPort|rand|randomizeFollicles|randstate|rangeControl|readTake|rebuildCurve|rebuildSurface|recordAttr|recordDevice|redo|reference|referenceEdit|referenceQuery|refineSubdivSelectionList|refresh|refreshAE|registerPluginResource|rehash|reloadImage|removeJoint|removeMultiInstance|removePanelCategory|rename|renameAttr|renameSelectionList|renameUI|render|renderGlobalsNode|renderInfo|renderLayerButton|renderLayerParent|renderLayerPostProcess|renderLayerUnparent|renderManip|renderPartition|renderQualityNode|renderSettings|renderThumbnailUpdate|renderWindowEditor|renderWindowSelectContext|renderer|reorder|reorderDeformers|requires|reroot|resampleFluid|resetAE|resetPfxToPolyCamera|resetTool|resolutionNode|retarget|reverseCurve|reverseSurface|revolve|rgb_to_hsv|rigidBody|rigidSolver|roll|rollCtx|rootOf|rot|rotate|rotationInterpolation|roundConstantRadius|rowColumnLayout|rowLayout|runTimeCommand|runup|sampleImage|saveAllShelves|saveAttrPreset|saveFluid|saveImage|saveInitialState|saveMenu|savePrefObjects|savePrefs|saveShelf|saveToolSettings|scale|scaleBrushBrightness|scaleComponents|scaleConstraint|scaleKey|scaleKeyCtx|sceneEditor|sceneUIReplacement|scmh|scriptCtx|scriptEditorInfo|scriptJob|scriptNode|scriptTable|scriptToShelf|scriptedPanel|scriptedPanelType|scrollField|scrollLayout|sculpt|searchPathArray|seed|selLoadSettings|select|selectContext|selectCurveCV|selectKey|selectKeyCtx|selectKeyframeRegionCtx|selectMode|selectPref|selectPriority|selectType|selectedNodes|selectionConnection|separator|setAttr|setAttrEnumResource|setAttrMapping|setAttrNiceNameResource|setConstraintRestPosition|setDefaultShadingGroup|setDrivenKeyframe|setDynamic|setEditCtx|setEditor|setFluidAttr|setFocus|setInfinity|setInputDeviceMapping|setKeyCtx|setKeyPath|setKeyframe|setKeyframeBlendshapeTargetWts|setMenuMode|setNodeNiceNameResource|setNodeTypeFlag|setParent|setParticleAttr|setPfxToPolyCamera|setPluginResource|setProject|setStampDensity|setStartupMessage|setState|setToolTo|setUITemplate|setXformManip|sets|shadingConnection|shadingGeometryRelCtx|shadingLightRelCtx|shadingNetworkCompare|shadingNode|shapeCompare|shelfButton|shelfLayout|shelfTabLayout|shellField|shortNameOf|showHelp|showHidden|showManipCtx|showSelectionInTitle|showShadingGroupAttrEditor|showWindow|sign|simplify|sin|singleProfileBirailSurface|size|sizeBytes|skinCluster|skinPercent|smoothCurve|smoothTangentSurface|smoothstep|snap2to2|snapKey|snapMode|snapTogetherCtx|snapshot|soft|softMod|softModCtx|sort|sound|soundControl|source|spaceLocator|sphere|sphrand|spotLight|spotLightPreviewPort|spreadSheetEditor|spring|sqrt|squareSurface|srtContext|stackTrace|startString|startsWith|stitchAndExplodeShell|stitchSurface|stitchSurfacePoints|strcmp|stringArrayCatenate|stringArrayContains|stringArrayCount|stringArrayInsertAtIndex|stringArrayIntersector|stringArrayRemove|stringArrayRemoveAtIndex|stringArrayRemoveDuplicates|stringArrayRemoveExact|stringArrayToString|stringToStringArray|strip|stripPrefixFromName|stroke|subdAutoProjection|subdCleanTopology|subdCollapse|subdDuplicateAndConnect|subdEditUV|subdListComponentConversion|subdMapCut|subdMapSewMove|subdMatchTopology|subdMirror|subdToBlind|subdToPoly|subdTransferUVsToCache|subdiv|subdivCrease|subdivDisplaySmoothness|substitute|substituteAllString|substituteGeometry|substring|surface|surfaceSampler|surfaceShaderList|swatchDisplayPort|switchTable|symbolButton|symbolCheckBox|sysFile|system|tabLayout|tan|tangentConstraint|texLatticeDeformContext|texManipContext|texMoveContext|texMoveUVShellContext|texRotateContext|texScaleContext|texSelectContext|texSelectShortestPathCtx|texSmudgeUVContext|texWinToolCtx|text|textCurves|textField|textFieldButtonGrp|textFieldGrp|textManip|textScrollList|textToShelf|textureDisplacePlane|textureHairColor|texturePlacementContext|textureWindow|threadCount|threePointArcCtx|timeControl|timePort|timerX|toNativePath|toggle|toggleAxis|toggleWindowVisibility|tokenize|tokenizeList|tolerance|tolower|toolButton|toolCollection|toolDropped|toolHasOptions|toolPropertyWindow|torus|toupper|trace|track|trackCtx|transferAttributes|transformCompare|transformLimits|translator|trim|trunc|truncateFluidCache|truncateHairCache|tumble|tumbleCtx|turbulence|twoPointArcCtx|uiRes|uiTemplate|unassignInputDevice|undo|undoInfo|ungroup|uniform|unit|unloadPlugin|untangleUV|untitledFileName|untrim|upAxis|updateAE|userCtx|uvLink|uvSnapshot|validateShelfName|vectorize|view2dToolCtx|viewCamera|viewClipPlane|viewFit|viewHeadOn|viewLookAt|viewManip|viewPlace|viewSet|visor|volumeAxis|vortex|waitCursor|warning|webBrowser|webBrowserPrefs|whatIs|window|windowPref|wire|wireContext|workspace|wrinkle|wrinkleContext|writeTake|xbmLangPathList|xform)\b/,operator:[/\+[+=]?|-[-=]?|&&|\|\||[<>]=|[*\/!=]=?|[%^]/,{pattern:/(^|[^<])<(?!<)/,lookbehind:!0},{pattern:/(^|[^>])>(?!>)/,lookbehind:!0}],punctuation:/<<|>>|[.,:;?\[\](){}]/},ue.languages.mel.code.inside.rest=ue.languages.mel}},25153:function(ze){"use strict";ze.exports=Ee,Ee.displayName="mermaid",Ee.aliases=[];function Ee(ue){ue.languages.mermaid={comment:{pattern:/%%.*/,greedy:!0},style:{pattern:/^([ \t]*(?:classDef|linkStyle|style)[ \t]+[\w$-]+[ \t]+)\w.*[^\s;]/m,lookbehind:!0,inside:{property:/\b\w[\w-]*(?=[ \t]*:)/,operator:/:/,punctuation:/,/}},"inter-arrow-label":{pattern:/([^<>ox.=-])(?:-[-.]|==)(?![<>ox.=-])[ \t]*(?:"[^"\r\n]*"|[^\s".=-](?:[^\r\n.=-]*[^\s.=-])?)[ \t]*(?:\.+->?|--+[->]|==+[=>])(?![<>ox.=-])/,lookbehind:!0,greedy:!0,inside:{arrow:{pattern:/(?:\.+->?|--+[->]|==+[=>])$/,alias:"operator"},label:{pattern:/^([\s\S]{2}[ \t]*)\S(?:[\s\S]*\S)?/,lookbehind:!0,alias:"property"},"arrow-head":{pattern:/^\S+/,alias:["arrow","operator"]}}},arrow:[{pattern:/(^|[^{}|o.-])[|}][|o](?:--|\.\.)[|o][|{](?![{}|o.-])/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>ox.=-])(?:[<ox](?:==+|--+|-\.*-)[>ox]?|(?:==+|--+|-\.*-)[>ox]|===+|---+|-\.+-)(?![<>ox.=-])/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>()x-])(?:--?(?:>>|[x>)])(?![<>()x])|(?:<<|[x<(])--?(?!-))/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>|*o.-])(?:[*o]--|--[*o]|<\|?(?:--|\.\.)|(?:--|\.\.)\|?>|--|\.\.)(?![<>|*o.-])/,lookbehind:!0,alias:"operator"}],label:{pattern:/(^|[^|<])\|(?:[^\r\n"|]|"[^"\r\n]*")+\|/,lookbehind:!0,greedy:!0,alias:"property"},text:{pattern:/(?:[(\[{]+|\b>)(?:[^\r\n"()\[\]{}]|"[^"\r\n]*")+(?:[)\]}]+|>)/,alias:"string"},string:{pattern:/"[^"\r\n]*"/,greedy:!0},annotation:{pattern:/<<(?:abstract|choice|enumeration|fork|interface|join|service)>>|\[\[(?:choice|fork|join)\]\]/i,alias:"important"},keyword:[{pattern:/(^[ \t]*)(?:action|callback|class|classDef|classDiagram|click|direction|erDiagram|flowchart|gantt|gitGraph|graph|journey|link|linkStyle|pie|requirementDiagram|sequenceDiagram|stateDiagram|stateDiagram-v2|style|subgraph)(?![\w$-])/m,lookbehind:!0,greedy:!0},{pattern:/(^[ \t]*)(?:activate|alt|and|as|autonumber|deactivate|else|end(?:[ \t]+note)?|loop|opt|par|participant|rect|state|note[ \t]+(?:over|(?:left|right)[ \t]+of))(?![\w$-])/im,lookbehind:!0,greedy:!0}],entity:/#[a-z0-9]+;/,operator:{pattern:/(\w[ \t]*)&(?=[ \t]*\w)|:::|:/,lookbehind:!0},punctuation:/[(){};]/}}},33245:function(ze){"use strict";ze.exports=Ee,Ee.displayName="mizar",Ee.aliases=[];function Ee(ue){ue.languages.mizar={comment:/::.+/,keyword:/@proof\b|\b(?:according|aggregate|all|and|antonym|are|as|associativity|assume|asymmetry|attr|be|begin|being|by|canceled|case|cases|clusters?|coherence|commutativity|compatibility|connectedness|consider|consistency|constructors|contradiction|correctness|def|deffunc|define|definitions?|defpred|do|does|end|environ|equals|ex|exactly|existence|for|from|func|given|hence|hereby|holds|idempotence|identity|iff?|implies|involutiveness|irreflexivity|is|it|let|means|mode|non|not|notations?|now|of|or|otherwise|over|per|pred|prefix|projectivity|proof|provided|qua|reconsider|redefine|reduce|reducibility|reflexivity|registrations?|requirements|reserve|sch|schemes?|section|selector|set|sethood|st|struct|such|suppose|symmetry|synonym|take|that|the|then|theorems?|thesis|thus|to|transitivity|uniqueness|vocabular(?:ies|y)|when|where|with|wrt)\b/,parameter:{pattern:/\$(?:10|\d)/,alias:"variable"},variable:/\b\w+(?=:)/,number:/(?:\b|-)\d+\b/,operator:/\.\.\.|->|&|\.?=/,punctuation:/\(#|#\)|[,:;\[\](){}]/}}},32218:function(ze){"use strict";ze.exports=Ee,Ee.displayName="mongodb",Ee.aliases=[];function Ee(ue){(function(ce){var Pe=["$eq","$gt","$gte","$in","$lt","$lte","$ne","$nin","$and","$not","$nor","$or","$exists","$type","$expr","$jsonSchema","$mod","$regex","$text","$where","$geoIntersects","$geoWithin","$near","$nearSphere","$all","$elemMatch","$size","$bitsAllClear","$bitsAllSet","$bitsAnyClear","$bitsAnySet","$comment","$elemMatch","$meta","$slice","$currentDate","$inc","$min","$max","$mul","$rename","$set","$setOnInsert","$unset","$addToSet","$pop","$pull","$push","$pullAll","$each","$position","$slice","$sort","$bit","$addFields","$bucket","$bucketAuto","$collStats","$count","$currentOp","$facet","$geoNear","$graphLookup","$group","$indexStats","$limit","$listLocalSessions","$listSessions","$lookup","$match","$merge","$out","$planCacheStats","$project","$redact","$replaceRoot","$replaceWith","$sample","$set","$skip","$sort","$sortByCount","$unionWith","$unset","$unwind","$setWindowFields","$abs","$accumulator","$acos","$acosh","$add","$addToSet","$allElementsTrue","$and","$anyElementTrue","$arrayElemAt","$arrayToObject","$asin","$asinh","$atan","$atan2","$atanh","$avg","$binarySize","$bsonSize","$ceil","$cmp","$concat","$concatArrays","$cond","$convert","$cos","$dateFromParts","$dateToParts","$dateFromString","$dateToString","$dayOfMonth","$dayOfWeek","$dayOfYear","$degreesToRadians","$divide","$eq","$exp","$filter","$first","$floor","$function","$gt","$gte","$hour","$ifNull","$in","$indexOfArray","$indexOfBytes","$indexOfCP","$isArray","$isNumber","$isoDayOfWeek","$isoWeek","$isoWeekYear","$last","$last","$let","$literal","$ln","$log","$log10","$lt","$lte","$ltrim","$map","$max","$mergeObjects","$meta","$min","$millisecond","$minute","$mod","$month","$multiply","$ne","$not","$objectToArray","$or","$pow","$push","$radiansToDegrees","$range","$reduce","$regexFind","$regexFindAll","$regexMatch","$replaceOne","$replaceAll","$reverseArray","$round","$rtrim","$second","$setDifference","$setEquals","$setIntersection","$setIsSubset","$setUnion","$size","$sin","$slice","$split","$sqrt","$stdDevPop","$stdDevSamp","$strcasecmp","$strLenBytes","$strLenCP","$substr","$substrBytes","$substrCP","$subtract","$sum","$switch","$tan","$toBool","$toDate","$toDecimal","$toDouble","$toInt","$toLong","$toObjectId","$toString","$toLower","$toUpper","$trim","$trunc","$type","$week","$year","$zip","$count","$dateAdd","$dateDiff","$dateSubtract","$dateTrunc","$getField","$rand","$sampleRate","$setField","$unsetField","$comment","$explain","$hint","$max","$maxTimeMS","$min","$orderby","$query","$returnKey","$showDiskLoc","$natural"],Re=["ObjectId","Code","BinData","DBRef","Timestamp","NumberLong","NumberDecimal","MaxKey","MinKey","RegExp","ISODate","UUID"];Pe=Pe.map(function(We){return We.replace("$","\\$")});var Me="(?:"+Pe.join("|")+")\\b";ce.languages.mongodb=ce.languages.extend("javascript",{}),ce.languages.insertBefore("mongodb","string",{property:{pattern:/(?:(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)(?=\s*:)/,greedy:!0,inside:{keyword:RegExp(`^(['"])?`+Me+"(?:\\1)?$")}}}),ce.languages.mongodb.string.inside={url:{pattern:/https?:\/\/[-\w@:%.+~#=]{1,256}\.[a-z0-9()]{1,6}\b[-\w()@:%+.~#?&/=]*/i,greedy:!0},entity:{pattern:/\b(?:(?:[01]?\d\d?|2[0-4]\d|25[0-5])\.){3}(?:[01]?\d\d?|2[0-4]\d|25[0-5])\b/,greedy:!0}},ce.languages.insertBefore("mongodb","constant",{builtin:{pattern:RegExp("\\b(?:"+Re.join("|")+")\\b"),alias:"keyword"}})})(ue)}},65626:function(ze){"use strict";ze.exports=Ee,Ee.displayName="monkey",Ee.aliases=[];function Ee(ue){ue.languages.monkey={comment:{pattern:/^#Rem\s[\s\S]*?^#End|'.+/im,greedy:!0},string:{pattern:/"[^"\r\n]*"/,greedy:!0},preprocessor:{pattern:/(^[ \t]*)#.+/m,lookbehind:!0,greedy:!0,alias:"property"},function:/\b\w+(?=\()/,"type-char":{pattern:/\b[?%#$]/,alias:"class-name"},number:{pattern:/((?:\.\.)?)(?:(?:\b|\B-\.?|\B\.)\d+(?:(?!\.\.)\.\d*)?|\$[\da-f]+)/i,lookbehind:!0},keyword:/\b(?:Abstract|Array|Bool|Case|Catch|Class|Const|Continue|Default|Eachin|Else|ElseIf|End|EndIf|Exit|Extends|Extern|False|Field|Final|Float|For|Forever|Function|Global|If|Implements|Import|Inline|Int|Interface|Local|Method|Module|New|Next|Null|Object|Private|Property|Public|Repeat|Return|Select|Self|Step|Strict|String|Super|Then|Throw|To|True|Try|Until|Void|Wend|While)\b/i,operator:/\.\.|<[=>]?|>=?|:?=|(?:[+\-*\/&~|]|\b(?:Mod|Shl|Shr)\b)=?|\b(?:And|Not|Or)\b/i,punctuation:/[.,:;()\[\]]/}}},60090:function(ze){"use strict";ze.exports=Ee,Ee.displayName="moonscript",Ee.aliases=["moon"];function Ee(ue){ue.languages.moonscript={comment:/--.*/,string:[{pattern:/'[^']*'|\[(=*)\[[\s\S]*?\]\1\]/,greedy:!0},{pattern:/"[^"]*"/,greedy:!0,inside:{interpolation:{pattern:/#\{[^{}]*\}/,inside:{moonscript:{pattern:/(^#\{)[\s\S]+(?=\})/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/#\{|\}/,alias:"punctuation"}}}}}],"class-name":[{pattern:/(\b(?:class|extends)[ \t]+)\w+/,lookbehind:!0},/\b[A-Z]\w*/],keyword:/\b(?:class|continue|do|else|elseif|export|extends|for|from|if|import|in|local|nil|return|self|super|switch|then|unless|using|when|while|with)\b/,variable:/@@?\w*/,property:{pattern:/\b(?!\d)\w+(?=:)|(:)(?!\d)\w+/,lookbehind:!0},function:{pattern:/\b(?:_G|_VERSION|assert|collectgarbage|coroutine\.(?:create|resume|running|status|wrap|yield)|debug\.(?:debug|getfenv|gethook|getinfo|getlocal|getmetatable|getregistry|getupvalue|setfenv|sethook|setlocal|setmetatable|setupvalue|traceback)|dofile|error|getfenv|getmetatable|io\.(?:close|flush|input|lines|open|output|popen|read|stderr|stdin|stdout|tmpfile|type|write)|ipairs|load|loadfile|loadstring|math\.(?:abs|acos|asin|atan|atan2|ceil|cos|cosh|deg|exp|floor|fmod|frexp|ldexp|log|log10|max|min|modf|pi|pow|rad|random|randomseed|sin|sinh|sqrt|tan|tanh)|module|next|os\.(?:clock|date|difftime|execute|exit|getenv|remove|rename|setlocale|time|tmpname)|package\.(?:cpath|loaded|loadlib|path|preload|seeall)|pairs|pcall|print|rawequal|rawget|rawset|require|select|setfenv|setmetatable|string\.(?:byte|char|dump|find|format|gmatch|gsub|len|lower|match|rep|reverse|sub|upper)|table\.(?:concat|insert|maxn|remove|sort)|tonumber|tostring|type|unpack|xpcall)\b/,inside:{punctuation:/\./}},boolean:/\b(?:false|true)\b/,number:/(?:\B\.\d+|\b\d+\.\d+|\b\d+(?=[eE]))(?:[eE][-+]?\d+)?\b|\b(?:0x[a-fA-F\d]+|\d+)(?:U?LL)?\b/,operator:/\.{3}|[-=]>|~=|(?:[-+*/%<>!=]|\.\.)=?|[:#^]|\b(?:and|or)\b=?|\b(?:not)\b/,punctuation:/[.,()[\]{}\\]/},ue.languages.moonscript.string[1].inside.interpolation.inside.moonscript.inside=ue.languages.moonscript,ue.languages.moon=ue.languages.moonscript}},40722:function(ze){"use strict";ze.exports=Ee,Ee.displayName="n1ql",Ee.aliases=[];function Ee(ue){ue.languages.n1ql={comment:{pattern:/\/\*[\s\S]*?(?:$|\*\/)|--.*/,greedy:!0},string:{pattern:/(["'])(?:\\[\s\S]|(?!\1)[^\\]|\1\1)*\1/,greedy:!0},identifier:{pattern:/`(?:\\[\s\S]|[^\\`]|``)*`/,greedy:!0},parameter:/\$[\w.]+/,keyword:/\b(?:ADVISE|ALL|ALTER|ANALYZE|AS|ASC|AT|BEGIN|BINARY|BOOLEAN|BREAK|BUCKET|BUILD|BY|CALL|CAST|CLUSTER|COLLATE|COLLECTION|COMMIT|COMMITTED|CONNECT|CONTINUE|CORRELATE|CORRELATED|COVER|CREATE|CURRENT|DATABASE|DATASET|DATASTORE|DECLARE|DECREMENT|DELETE|DERIVED|DESC|DESCRIBE|DISTINCT|DO|DROP|EACH|ELEMENT|EXCEPT|EXCLUDE|EXECUTE|EXPLAIN|FETCH|FILTER|FLATTEN|FLUSH|FOLLOWING|FOR|FORCE|FROM|FTS|FUNCTION|GOLANG|GRANT|GROUP|GROUPS|GSI|HASH|HAVING|IF|IGNORE|ILIKE|INCLUDE|INCREMENT|INDEX|INFER|INLINE|INNER|INSERT|INTERSECT|INTO|IS|ISOLATION|JAVASCRIPT|JOIN|KEY|KEYS|KEYSPACE|KNOWN|LANGUAGE|LAST|LEFT|LET|LETTING|LEVEL|LIMIT|LSM|MAP|MAPPING|MATCHED|MATERIALIZED|MERGE|MINUS|MISSING|NAMESPACE|NEST|NL|NO|NTH_VALUE|NULL|NULLS|NUMBER|OBJECT|OFFSET|ON|OPTION|OPTIONS|ORDER|OTHERS|OUTER|OVER|PARSE|PARTITION|PASSWORD|PATH|POOL|PRECEDING|PREPARE|PRIMARY|PRIVATE|PRIVILEGE|PROBE|PROCEDURE|PUBLIC|RANGE|RAW|REALM|REDUCE|RENAME|RESPECT|RETURN|RETURNING|REVOKE|RIGHT|ROLE|ROLLBACK|ROW|ROWS|SATISFIES|SAVEPOINT|SCHEMA|SCOPE|SELECT|SELF|SEMI|SET|SHOW|SOME|START|STATISTICS|STRING|SYSTEM|TIES|TO|TRAN|TRANSACTION|TRIGGER|TRUNCATE|UNBOUNDED|UNDER|UNION|UNIQUE|UNKNOWN|UNNEST|UNSET|UPDATE|UPSERT|USE|USER|USING|VALIDATE|VALUE|VALUES|VIA|VIEW|WHERE|WHILE|WINDOW|WITH|WORK|XOR)\b/i,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:FALSE|TRUE)\b/i,number:/(?:\b\d+\.|\B\.)\d+e[+\-]?\d+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/%]|!=|==?|\|\||<[>=]?|>=?|\b(?:AND|ANY|ARRAY|BETWEEN|CASE|ELSE|END|EVERY|EXISTS|FIRST|IN|LIKE|NOT|OR|THEN|VALUED|WHEN|WITHIN)\b/i,punctuation:/[;[\](),.{}:]/}}},37783:function(ze){"use strict";ze.exports=Ee,Ee.displayName="n4js",Ee.aliases=["n4jsd"];function Ee(ue){ue.languages.n4js=ue.languages.extend("javascript",{keyword:/\b(?:Array|any|boolean|break|case|catch|class|const|constructor|continue|debugger|declare|default|delete|do|else|enum|export|extends|false|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|module|new|null|number|package|private|protected|public|return|set|static|string|super|switch|this|throw|true|try|typeof|var|void|while|with|yield)\b/}),ue.languages.insertBefore("n4js","constant",{annotation:{pattern:/@+\w+/,alias:"operator"}}),ue.languages.n4jsd=ue.languages.n4js}},41224:function(ze){"use strict";ze.exports=Ee,Ee.displayName="nand2tetrisHdl",Ee.aliases=[];function Ee(ue){ue.languages["nand2tetris-hdl"]={comment:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,keyword:/\b(?:BUILTIN|CHIP|CLOCKED|IN|OUT|PARTS)\b/,boolean:/\b(?:false|true)\b/,function:/\b[A-Za-z][A-Za-z0-9]*(?=\()/,number:/\b\d+\b/,operator:/=|\.\./,punctuation:/[{}[\];(),:]/}}},71365:function(ze){"use strict";ze.exports=Ee,Ee.displayName="naniscript",Ee.aliases=[];function Ee(ue){(function(ce){var Pe=/\{[^\r\n\[\]{}]*\}/,Re={"quoted-string":{pattern:/"(?:[^"\\]|\\.)*"/,alias:"operator"},"command-param-id":{pattern:/(\s)\w+:/,lookbehind:!0,alias:"property"},"command-param-value":[{pattern:Pe,alias:"selector"},{pattern:/([\t ])\S+/,lookbehind:!0,greedy:!0,alias:"operator"},{pattern:/\S(?:.*\S)?/,alias:"operator"}]};ce.languages.naniscript={comment:{pattern:/^([\t ]*);.*/m,lookbehind:!0},define:{pattern:/^>.+/m,alias:"tag",inside:{value:{pattern:/(^>\w+[\t ]+)(?!\s)[^{}\r\n]+/,lookbehind:!0,alias:"operator"},key:{pattern:/(^>)\w+/,lookbehind:!0}}},label:{pattern:/^([\t ]*)#[\t ]*\w+[\t ]*$/m,lookbehind:!0,alias:"regex"},command:{pattern:/^([\t ]*)@\w+(?=[\t ]|$).*/m,lookbehind:!0,alias:"function",inside:{"command-name":/^@\w+/,expression:{pattern:Pe,greedy:!0,alias:"selector"},"command-params":{pattern:/\s*\S[\s\S]*/,inside:Re}}},"generic-text":{pattern:/(^[ \t]*)[^#@>;\s].*/m,lookbehind:!0,alias:"punctuation",inside:{"escaped-char":/\\[{}\[\]"]/,expression:{pattern:Pe,greedy:!0,alias:"selector"},"inline-command":{pattern:/\[[\t ]*\w[^\r\n\[\]]*\]/,greedy:!0,alias:"function",inside:{"command-params":{pattern:/(^\[[\t ]*\w+\b)[\s\S]+(?=\]$)/,lookbehind:!0,inside:Re},"command-param-name":{pattern:/^(\[[\t ]*)\w+/,lookbehind:!0,alias:"name"},"start-stop-char":/[\[\]]/}}}}},ce.languages.nani=ce.languages.naniscript,ce.hooks.add("after-tokenize",function(Te){var Ge=Te.tokens;Ge.forEach(function(st){if(typeof st!="string"&&st.type==="generic-text"){var Qe=We(st);Me(Qe)||(st.type="bad-line",st.content=Qe)}})});function Me(Te){for(var Ge="[]{}",st=[],Qe=0;Qe<Te.length;Qe++){var Ye=Te[Qe],yt=Ge.indexOf(Ye);if(yt!==-1){if(yt%2===0)st.push(yt+1);else if(st.pop()!==yt)return!1}}return st.length===0}function We(Te){return typeof Te=="string"?Te:Array.isArray(Te)?Te.map(We).join(""):We(Te.content)}})(ue)}},42846:function(ze){"use strict";ze.exports=Ee,Ee.displayName="nasm",Ee.aliases=[];function Ee(ue){ue.languages.nasm={comment:/;.*$/m,string:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,label:{pattern:/(^\s*)[A-Za-z._?$][\w.?$@~#]*:/m,lookbehind:!0,alias:"function"},keyword:[/\[?BITS (?:16|32|64)\]?/,{pattern:/(^\s*)section\s*[a-z.]+:?/im,lookbehind:!0},/(?:extern|global)[^;\r\n]*/i,/(?:CPU|DEFAULT|FLOAT).*$/m],register:{pattern:/\b(?:st\d|[xyz]mm\d\d?|[cdt]r\d|r\d\d?[bwd]?|[er]?[abcd]x|[abcd][hl]|[er]?(?:bp|di|si|sp)|[cdefgs]s)\b/i,alias:"variable"},number:/(?:\b|(?=\$))(?:0[hx](?:\.[\da-f]+|[\da-f]+(?:\.[\da-f]+)?)(?:p[+-]?\d+)?|\d[\da-f]+[hx]|\$\d[\da-f]*|0[oq][0-7]+|[0-7]+[oq]|0[by][01]+|[01]+[by]|0[dt]\d+|(?:\d+(?:\.\d+)?|\.\d+)(?:\.?e[+-]?\d+)?[dt]?)\b/i,operator:/[\[\]*+\-\/%<>=&|$!]/}}},32964:function(ze){"use strict";ze.exports=Ee,Ee.displayName="neon",Ee.aliases=[];function Ee(ue){ue.languages.neon={comment:{pattern:/#.*/,greedy:!0},datetime:{pattern:/(^|[[{(=:,\s])\d\d\d\d-\d\d?-\d\d?(?:(?:[Tt]| +)\d\d?:\d\d:\d\d(?:\.\d*)? *(?:Z|[-+]\d\d?(?::?\d\d)?)?)?(?=$|[\]}),\s])/,lookbehind:!0,alias:"number"},key:{pattern:/(^|[[{(,\s])[^,:=[\]{}()'"\s]+(?=\s*:(?:$|[\]}),\s])|\s*=)/,lookbehind:!0,alias:"atrule"},number:{pattern:/(^|[[{(=:,\s])[+-]?(?:0x[\da-fA-F]+|0o[0-7]+|0b[01]+|(?:\d+(?:\.\d*)?|\.?\d+)(?:[eE][+-]?\d+)?)(?=$|[\]}),:=\s])/,lookbehind:!0},boolean:{pattern:/(^|[[{(=:,\s])(?:false|no|true|yes)(?=$|[\]}),:=\s])/i,lookbehind:!0},null:{pattern:/(^|[[{(=:,\s])(?:null)(?=$|[\]}),:=\s])/i,lookbehind:!0,alias:"keyword"},string:{pattern:/(^|[[{(=:,\s])(?:('''|""")\r?\n(?:(?:[^\r\n]|\r?\n(?![\t ]*\2))*\r?\n)?[\t ]*\2|'[^'\r\n]*'|"(?:\\.|[^\\"\r\n])*")/,lookbehind:!0,greedy:!0},literal:{pattern:/(^|[[{(=:,\s])(?:[^#"',:=[\]{}()\s`-]|[:-][^"',=[\]{}()\s])(?:[^,:=\]})(\s]|:(?![\s,\]})]|$)|[ \t]+[^#,:=\]})(\s])*/,lookbehind:!0,alias:"string"},punctuation:/[,:=[\]{}()-]/}}},78830:function(ze){"use strict";ze.exports=Ee,Ee.displayName="nevod",Ee.aliases=[];function Ee(ue){ue.languages.nevod={comment:/\/\/.*|(?:\/\*[\s\S]*?(?:\*\/|$))/,string:{pattern:/(?:"(?:""|[^"])*"(?!")|'(?:''|[^'])*'(?!'))!?\*?/,greedy:!0,inside:{"string-attrs":/!$|!\*$|\*$/}},namespace:{pattern:/(@namespace\s+)[a-zA-Z0-9\-.]+(?=\s*\{)/,lookbehind:!0},pattern:{pattern:/(@pattern\s+)?#?[a-zA-Z0-9\-.]+(?:\s*\(\s*(?:~\s*)?[a-zA-Z0-9\-.]+\s*(?:,\s*(?:~\s*)?[a-zA-Z0-9\-.]*)*\))?(?=\s*=)/,lookbehind:!0,inside:{"pattern-name":{pattern:/^#?[a-zA-Z0-9\-.]+/,alias:"class-name"},fields:{pattern:/\(.*\)/,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},punctuation:/[,()]/,operator:{pattern:/~/,alias:"field-hidden-mark"}}}}},search:{pattern:/(@search\s+|#)[a-zA-Z0-9\-.]+(?:\.\*)?(?=\s*;)/,alias:"function",lookbehind:!0},keyword:/@(?:having|inside|namespace|outside|pattern|require|search|where)\b/,"standard-pattern":{pattern:/\b(?:Alpha|AlphaNum|Any|Blank|End|LineBreak|Num|NumAlpha|Punct|Space|Start|Symbol|Word|WordBreak)\b(?:\([a-zA-Z0-9\-.,\s+]*\))?/,inside:{"standard-pattern-name":{pattern:/^[a-zA-Z0-9\-.]+/,alias:"builtin"},quantifier:{pattern:/\b\d+(?:\s*\+|\s*-\s*\d+)?(?!\w)/,alias:"number"},"standard-pattern-attr":{pattern:/[a-zA-Z0-9\-.]+/,alias:"builtin"},punctuation:/[,()]/}},quantifier:{pattern:/\b\d+(?:\s*\+|\s*-\s*\d+)?(?!\w)/,alias:"number"},operator:[{pattern:/=/,alias:"pattern-def"},{pattern:/&/,alias:"conjunction"},{pattern:/~/,alias:"exception"},{pattern:/\?/,alias:"optionality"},{pattern:/[[\]]/,alias:"repetition"},{pattern:/[{}]/,alias:"variation"},{pattern:/[+_]/,alias:"sequence"},{pattern:/\.{2,3}/,alias:"span"}],"field-capture":[{pattern:/([a-zA-Z0-9\-.]+\s*\()\s*[a-zA-Z0-9\-.]+\s*:\s*[a-zA-Z0-9\-.]+(?:\s*,\s*[a-zA-Z0-9\-.]+\s*:\s*[a-zA-Z0-9\-.]+)*(?=\s*\))/,lookbehind:!0,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},colon:/:/}},{pattern:/[a-zA-Z0-9\-.]+\s*:/,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},colon:/:/}}],punctuation:/[:;,()]/,name:/[a-zA-Z0-9\-.]+/}}},88799:function(ze){"use strict";ze.exports=Ee,Ee.displayName="nginx",Ee.aliases=[];function Ee(ue){(function(ce){var Pe=/\$(?:\w[a-z\d]*(?:_[^\x00-\x1F\s"'\\()$]*)?|\{[^}\s"'\\]+\})/i;ce.languages.nginx={comment:{pattern:/(^|[\s{};])#.*/,lookbehind:!0,greedy:!0},directive:{pattern:/(^|\s)\w(?:[^;{}"'\\\s]|\\.|"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*'|\s+(?:#.*(?!.)|(?![#\s])))*?(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:{string:{pattern:/((?:^|[^\\])(?:\\\\)*)(?:"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*')/,lookbehind:!0,greedy:!0,inside:{escape:{pattern:/\\["'\\nrt]/,alias:"entity"},variable:Pe}},comment:{pattern:/(\s)#.*/,lookbehind:!0,greedy:!0},keyword:{pattern:/^\S+/,greedy:!0},boolean:{pattern:/(\s)(?:off|on)(?!\S)/,lookbehind:!0},number:{pattern:/(\s)\d+[a-z]*(?!\S)/i,lookbehind:!0},variable:Pe}},punctuation:/[{};]/}})(ue)}},66791:function(ze){"use strict";ze.exports=Ee,Ee.displayName="nim",Ee.aliases=[];function Ee(ue){ue.languages.nim={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/(?:\b(?!\d)(?:\w|\\x[89a-fA-F][0-9a-fA-F])+)?(?:"""[\s\S]*?"""(?!")|"(?:\\[\s\S]|""|[^"\\])*")/,greedy:!0},char:{pattern:/'(?:\\(?:\d+|x[\da-fA-F]{0,2}|.)|[^'])'/,greedy:!0},function:{pattern:/(?:(?!\d)(?:\w|\\x[89a-fA-F][0-9a-fA-F])+|`[^`\r\n]+`)\*?(?:\[[^\]]+\])?(?=\s*\()/,greedy:!0,inside:{operator:/\*$/}},identifier:{pattern:/`[^`\r\n]+`/,greedy:!0,inside:{punctuation:/`/}},number:/\b(?:0[xXoObB][\da-fA-F_]+|\d[\d_]*(?:(?!\.\.)\.[\d_]*)?(?:[eE][+-]?\d[\d_]*)?)(?:'?[iuf]\d*)?/,keyword:/\b(?:addr|as|asm|atomic|bind|block|break|case|cast|concept|const|continue|converter|defer|discard|distinct|do|elif|else|end|enum|except|export|finally|for|from|func|generic|if|import|include|interface|iterator|let|macro|method|mixin|nil|object|out|proc|ptr|raise|ref|return|static|template|try|tuple|type|using|var|when|while|with|without|yield)\b/,operator:{pattern:/(^|[({\[](?=\.\.)|(?![({\[]\.).)(?:(?:[=+\-*\/<>@$~&%|!?^:\\]|\.\.|\.(?![)}\]]))+|\b(?:and|div|in|is|isnot|mod|not|notin|of|or|shl|shr|xor)\b)/m,lookbehind:!0},punctuation:/[({\[]\.|\.[)}\]]|[`(){}\[\],:]/}}},41735:function(ze){"use strict";ze.exports=Ee,Ee.displayName="nix",Ee.aliases=[];function Ee(ue){ue.languages.nix={comment:{pattern:/\/\*[\s\S]*?\*\/|#.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\[\s\S])*"|''(?:(?!'')[\s\S]|''(?:'|\\|\$\{))*''/,greedy:!0,inside:{interpolation:{pattern:/(^|(?:^|(?!'').)[^\\])\$\{(?:[^{}]|\{[^}]*\})*\}/,lookbehind:!0,inside:null}}},url:[/\b(?:[a-z]{3,7}:\/\/)[\w\-+%~\/.:#=?&]+/,{pattern:/([^\/])(?:[\w\-+%~.:#=?&]*(?!\/\/)[\w\-+%~\/.:#=?&])?(?!\/\/)\/[\w\-+%~\/.:#=?&]*/,lookbehind:!0}],antiquotation:{pattern:/\$(?=\{)/,alias:"important"},number:/\b\d+\b/,keyword:/\b(?:assert|builtins|else|if|in|inherit|let|null|or|then|with)\b/,function:/\b(?:abort|add|all|any|attrNames|attrValues|baseNameOf|compareVersions|concatLists|currentSystem|deepSeq|derivation|dirOf|div|elem(?:At)?|fetch(?:Tarball|url)|filter(?:Source)?|fromJSON|genList|getAttr|getEnv|hasAttr|hashString|head|import|intersectAttrs|is(?:Attrs|Bool|Function|Int|List|Null|String)|length|lessThan|listToAttrs|map|mul|parseDrvName|pathExists|read(?:Dir|File)|removeAttrs|replaceStrings|seq|sort|stringLength|sub(?:string)?|tail|throw|to(?:File|JSON|Path|String|XML)|trace|typeOf)\b|\bfoldl'\B/,boolean:/\b(?:false|true)\b/,operator:/[=!<>]=?|\+\+?|\|\||&&|\/\/|->?|[?@]/,punctuation:/[{}()[\].,:;]/},ue.languages.nix.string.inside.interpolation.inside=ue.languages.nix}},13490:function(ze){"use strict";ze.exports=Ee,Ee.displayName="nsis",Ee.aliases=[];function Ee(ue){ue.languages.nsis={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|[#;].*)/,lookbehind:!0,greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:{pattern:/(^[\t ]*)(?:Abort|Add(?:BrandingImage|Size)|AdvSplash|Allow(?:RootDirInstall|SkipFiles)|AutoCloseWindow|BG(?:Font|Gradient|Image)|Banner|BrandingText|BringToFront|CRCCheck|Call(?:InstDLL)?|Caption|ChangeUI|CheckBitmap|ClearErrors|CompletedText|ComponentText|CopyFiles|Create(?:Directory|Font|ShortCut)|Delete(?:INISec|INIStr|RegKey|RegValue)?|Detail(?:Print|sButtonText)|Dialer|Dir(?:Text|Var|Verify)|EnableWindow|Enum(?:RegKey|RegValue)|Exch|Exec(?:Shell(?:Wait)?|Wait)?|ExpandEnvStrings|File(?:BufSize|Close|ErrorText|Open|Read|ReadByte|ReadUTF16LE|ReadWord|Seek|Write|WriteByte|WriteUTF16LE|WriteWord)?|Find(?:Close|First|Next|Window)|FlushINI|Get(?:CurInstType|CurrentAddress|DLLVersion(?:Local)?|DlgItem|ErrorLevel|FileTime(?:Local)?|FullPathName|Function(?:Address|End)?|InstDirError|LabelAddress|TempFileName)|Goto|HideWindow|Icon|If(?:Abort|Errors|FileExists|RebootFlag|Silent)|InitPluginsDir|InstProgressFlags|Inst(?:Type(?:GetText|SetText)?)|Install(?:ButtonText|Colors|Dir(?:RegKey)?)|Int(?:64|Ptr)?CmpU?|Int(?:64)?Fmt|Int(?:Ptr)?Op|IsWindow|Lang(?:DLL|String)|License(?:BkColor|Data|ForceSelection|LangString|Text)|LoadLanguageFile|LockWindow|Log(?:Set|Text)|Manifest(?:DPIAware|SupportedOS)|Math|MessageBox|MiscButtonText|NSISdl|Name|Nop|OutFile|PE(?:DllCharacteristics|SubsysVer)|Page(?:Callbacks)?|Pop|Push|Quit|RMDir|Read(?:EnvStr|INIStr|RegDWORD|RegStr)|Reboot|RegDLL|Rename|RequestExecutionLevel|ReserveFile|Return|SearchPath|Section(?:End|GetFlags|GetInstTypes|GetSize|GetText|Group|In|SetFlags|SetInstTypes|SetSize|SetText)?|SendMessage|Set(?:AutoClose|BrandingImage|Compress|Compressor(?:DictSize)?|CtlColors|CurInstType|DatablockOptimize|DateSave|Details(?:Print|View)|ErrorLevel|Errors|FileAttributes|Font|OutPath|Overwrite|PluginUnload|RebootFlag|RegView|ShellVarContext|Silent)|Show(?:InstDetails|UninstDetails|Window)|Silent(?:Install|UnInstall)|Sleep|SpaceTexts|Splash|StartMenu|Str(?:CmpS?|Cpy|Len)|SubCaption|System|UnRegDLL|Unicode|UninstPage|Uninstall(?:ButtonText|Caption|Icon|SubCaption|Text)|UserInfo|VI(?:AddVersionKey|FileVersion|ProductVersion)|VPatch|Var|WindowIcon|Write(?:INIStr|Reg(?:Bin|DWORD|ExpandStr|MultiStr|None|Str)|Uninstaller)|XPStyle|ns(?:Dialogs|Exec))\b/m,lookbehind:!0},property:/\b(?:ARCHIVE|FILE_(?:ATTRIBUTE_ARCHIVE|ATTRIBUTE_NORMAL|ATTRIBUTE_OFFLINE|ATTRIBUTE_READONLY|ATTRIBUTE_SYSTEM|ATTRIBUTE_TEMPORARY)|HK(?:(?:CR|CU|LM)(?:32|64)?|DD|PD|U)|HKEY_(?:CLASSES_ROOT|CURRENT_CONFIG|CURRENT_USER|DYN_DATA|LOCAL_MACHINE|PERFORMANCE_DATA|USERS)|ID(?:ABORT|CANCEL|IGNORE|NO|OK|RETRY|YES)|MB_(?:ABORTRETRYIGNORE|DEFBUTTON1|DEFBUTTON2|DEFBUTTON3|DEFBUTTON4|ICONEXCLAMATION|ICONINFORMATION|ICONQUESTION|ICONSTOP|OK|OKCANCEL|RETRYCANCEL|RIGHT|RTLREADING|SETFOREGROUND|TOPMOST|USERICON|YESNO)|NORMAL|OFFLINE|READONLY|SHCTX|SHELL_CONTEXT|SYSTEM|TEMPORARY|admin|all|auto|both|colored|false|force|hide|highest|lastused|leave|listonly|none|normal|notset|off|on|open|print|show|silent|silentlog|smooth|textonly|true|user)\b/,constant:/\$\{[!\w\.:\^-]+\}|\$\([!\w\.:\^-]+\)/,variable:/\$\w[\w\.]*/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--?|\+\+?|<=?|>=?|==?=?|&&?|\|\|?|[?*\/~^%]/,punctuation:/[{}[\];(),.:]/,important:{pattern:/(^[\t ]*)!(?:addincludedir|addplugindir|appendfile|cd|define|delfile|echo|else|endif|error|execute|finalize|getdllversion|gettlbversion|if|ifdef|ifmacrodef|ifmacrondef|ifndef|include|insertmacro|macro|macroend|makensis|packhdr|pragma|searchparse|searchreplace|system|tempfile|undef|verbose|warning)\b/im,lookbehind:!0}}}},7383:function(ze,Ee,ue){"use strict";var ce=ue(79440);ze.exports=Pe,Pe.displayName="objectivec",Pe.aliases=["objc"];function Pe(Re){Re.register(ce),Re.languages.objectivec=Re.languages.extend("c",{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete Re.languages.objectivec["class-name"],Re.languages.objc=Re.languages.objectivec}},66894:function(ze){"use strict";ze.exports=Ee,Ee.displayName="ocaml",Ee.aliases=[];function Ee(ue){ue.languages.ocaml={comment:{pattern:/\(\*[\s\S]*?\*\)/,greedy:!0},char:{pattern:/'(?:[^\\\r\n']|\\(?:.|[ox]?[0-9a-f]{1,3}))'/i,greedy:!0},string:[{pattern:/"(?:\\(?:[\s\S]|\r\n)|[^\\\r\n"])*"/,greedy:!0},{pattern:/\{([a-z_]*)\|[\s\S]*?\|\1\}/,greedy:!0}],number:[/\b(?:0b[01][01_]*|0o[0-7][0-7_]*)\b/i,/\b0x[a-f0-9][a-f0-9_]*(?:\.[a-f0-9_]*)?(?:p[+-]?\d[\d_]*)?(?!\w)/i,/\b\d[\d_]*(?:\.[\d_]*)?(?:e[+-]?\d[\d_]*)?(?!\w)/i],directive:{pattern:/\B#\w+/,alias:"property"},label:{pattern:/\B~\w+/,alias:"property"},"type-variable":{pattern:/\B'\w+/,alias:"function"},variant:{pattern:/`\w+/,alias:"symbol"},keyword:/\b(?:as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|match|method|module|mutable|new|nonrec|object|of|open|private|rec|sig|struct|then|to|try|type|val|value|virtual|when|where|while|with)\b/,boolean:/\b(?:false|true)\b/,"operator-like-punctuation":{pattern:/\[[<>|]|[>|]\]|\{<|>\}/,alias:"punctuation"},operator:/\.[.~]|:[=>]|[=<>@^|&+\-*\/$%!?~][!$%&*+\-.\/:<=>?@^|~]*|\b(?:and|asr|land|lor|lsl|lsr|lxor|mod|or)\b/,punctuation:/;;|::|[(){}\[\].,:;#]|\b_\b/}}},45779:function(ze,Ee,ue){"use strict";var ce=ue(79440);ze.exports=Pe,Pe.displayName="opencl",Pe.aliases=[];function Pe(Re){Re.register(ce),function(Me){Me.languages.opencl=Me.languages.extend("c",{keyword:/\b(?:(?:__)?(?:constant|global|kernel|local|private|read_only|read_write|write_only)|__attribute__|auto|(?:bool|u?(?:char|int|long|short)|half|quad)(?:2|3|4|8|16)?|break|case|complex|const|continue|(?:double|float)(?:16(?:x(?:1|2|4|8|16))?|1x(?:1|2|4|8|16)|2(?:x(?:1|2|4|8|16))?|3|4(?:x(?:1|2|4|8|16))?|8(?:x(?:1|2|4|8|16))?)?|default|do|else|enum|extern|for|goto|if|imaginary|inline|packed|pipe|register|restrict|return|signed|sizeof|static|struct|switch|typedef|uniform|union|unsigned|void|volatile|while)\b/,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[fuhl]{0,4}/i,boolean:/\b(?:false|true)\b/,"constant-opencl-kernel":{pattern:/\b(?:CHAR_(?:BIT|MAX|MIN)|CLK_(?:ADDRESS_(?:CLAMP(?:_TO_EDGE)?|NONE|REPEAT)|FILTER_(?:LINEAR|NEAREST)|(?:GLOBAL|LOCAL)_MEM_FENCE|NORMALIZED_COORDS_(?:FALSE|TRUE))|CL_(?:BGRA|(?:HALF_)?FLOAT|INTENSITY|LUMINANCE|A?R?G?B?[Ax]?|(?:(?:UN)?SIGNED|[US]NORM)_(?:INT(?:8|16|32))|UNORM_(?:INT_101010|SHORT_(?:555|565)))|(?:DBL|FLT|HALF)_(?:DIG|EPSILON|(?:MAX|MIN)(?:(?:_10)?_EXP)?|MANT_DIG)|FLT_RADIX|HUGE_VALF?|(?:INT|LONG|SCHAR|SHRT)_(?:MAX|MIN)|INFINITY|MAXFLOAT|M_(?:[12]_PI|2_SQRTPI|E|LN(?:2|10)|LOG(?:2|10)E?|PI(?:_[24])?|SQRT(?:1_2|2))(?:_F|_H)?|NAN|(?:UCHAR|UINT|ULONG|USHRT)_MAX)\b/,alias:"constant"}}),Me.languages.insertBefore("opencl","class-name",{"builtin-type":{pattern:/\b(?:_cl_(?:command_queue|context|device_id|event|kernel|mem|platform_id|program|sampler)|cl_(?:image_format|mem_fence_flags)|clk_event_t|event_t|image(?:1d_(?:array_|buffer_)?t|2d_(?:array_(?:depth_|msaa_depth_|msaa_)?|depth_|msaa_depth_|msaa_)?t|3d_t)|intptr_t|ndrange_t|ptrdiff_t|queue_t|reserve_id_t|sampler_t|size_t|uintptr_t)\b/,alias:"keyword"}});var We={"type-opencl-host":{pattern:/\b(?:cl_(?:GLenum|GLint|GLuin|addressing_mode|bitfield|bool|buffer_create_type|build_status|channel_(?:order|type)|(?:u?(?:char|int|long|short)|double|float)(?:2|3|4|8|16)?|command_(?:queue(?:_info|_properties)?|type)|context(?:_info|_properties)?|device_(?:exec_capabilities|fp_config|id|info|local_mem_type|mem_cache_type|type)|(?:event|sampler)(?:_info)?|filter_mode|half|image_info|kernel(?:_info|_work_group_info)?|map_flags|mem(?:_flags|_info|_object_type)?|platform_(?:id|info)|profiling_info|program(?:_build_info|_info)?))\b/,alias:"keyword"},"boolean-opencl-host":{pattern:/\bCL_(?:FALSE|TRUE)\b/,alias:"boolean"},"constant-opencl-host":{pattern:/\bCL_(?:A|ABGR|ADDRESS_(?:CLAMP(?:_TO_EDGE)?|MIRRORED_REPEAT|NONE|REPEAT)|ARGB|BGRA|BLOCKING|BUFFER_CREATE_TYPE_REGION|BUILD_(?:ERROR|IN_PROGRESS|NONE|PROGRAM_FAILURE|SUCCESS)|COMMAND_(?:ACQUIRE_GL_OBJECTS|BARRIER|COPY_(?:BUFFER(?:_RECT|_TO_IMAGE)?|IMAGE(?:_TO_BUFFER)?)|FILL_(?:BUFFER|IMAGE)|MAP(?:_BUFFER|_IMAGE)|MARKER|MIGRATE(?:_SVM)?_MEM_OBJECTS|NATIVE_KERNEL|NDRANGE_KERNEL|READ_(?:BUFFER(?:_RECT)?|IMAGE)|RELEASE_GL_OBJECTS|SVM_(?:FREE|MAP|MEMCPY|MEMFILL|UNMAP)|TASK|UNMAP_MEM_OBJECT|USER|WRITE_(?:BUFFER(?:_RECT)?|IMAGE))|COMPILER_NOT_AVAILABLE|COMPILE_PROGRAM_FAILURE|COMPLETE|CONTEXT_(?:DEVICES|INTEROP_USER_SYNC|NUM_DEVICES|PLATFORM|PROPERTIES|REFERENCE_COUNT)|DEPTH(?:_STENCIL)?|DEVICE_(?:ADDRESS_BITS|AFFINITY_DOMAIN_(?:L[1-4]_CACHE|NEXT_PARTITIONABLE|NUMA)|AVAILABLE|BUILT_IN_KERNELS|COMPILER_AVAILABLE|DOUBLE_FP_CONFIG|ENDIAN_LITTLE|ERROR_CORRECTION_SUPPORT|EXECUTION_CAPABILITIES|EXTENSIONS|GLOBAL_(?:MEM_(?:CACHELINE_SIZE|CACHE_SIZE|CACHE_TYPE|SIZE)|VARIABLE_PREFERRED_TOTAL_SIZE)|HOST_UNIFIED_MEMORY|IL_VERSION|IMAGE(?:2D_MAX_(?:HEIGHT|WIDTH)|3D_MAX_(?:DEPTH|HEIGHT|WIDTH)|_BASE_ADDRESS_ALIGNMENT|_MAX_ARRAY_SIZE|_MAX_BUFFER_SIZE|_PITCH_ALIGNMENT|_SUPPORT)|LINKER_AVAILABLE|LOCAL_MEM_SIZE|LOCAL_MEM_TYPE|MAX_(?:CLOCK_FREQUENCY|COMPUTE_UNITS|CONSTANT_ARGS|CONSTANT_BUFFER_SIZE|GLOBAL_VARIABLE_SIZE|MEM_ALLOC_SIZE|NUM_SUB_GROUPS|ON_DEVICE_(?:EVENTS|QUEUES)|PARAMETER_SIZE|PIPE_ARGS|READ_IMAGE_ARGS|READ_WRITE_IMAGE_ARGS|SAMPLERS|WORK_GROUP_SIZE|WORK_ITEM_DIMENSIONS|WORK_ITEM_SIZES|WRITE_IMAGE_ARGS)|MEM_BASE_ADDR_ALIGN|MIN_DATA_TYPE_ALIGN_SIZE|NAME|NATIVE_VECTOR_WIDTH_(?:CHAR|DOUBLE|FLOAT|HALF|INT|LONG|SHORT)|NOT_(?:AVAILABLE|FOUND)|OPENCL_C_VERSION|PARENT_DEVICE|PARTITION_(?:AFFINITY_DOMAIN|BY_AFFINITY_DOMAIN|BY_COUNTS|BY_COUNTS_LIST_END|EQUALLY|FAILED|MAX_SUB_DEVICES|PROPERTIES|TYPE)|PIPE_MAX_(?:ACTIVE_RESERVATIONS|PACKET_SIZE)|PLATFORM|PREFERRED_(?:GLOBAL_ATOMIC_ALIGNMENT|INTEROP_USER_SYNC|LOCAL_ATOMIC_ALIGNMENT|PLATFORM_ATOMIC_ALIGNMENT|VECTOR_WIDTH_(?:CHAR|DOUBLE|FLOAT|HALF|INT|LONG|SHORT))|PRINTF_BUFFER_SIZE|PROFILE|PROFILING_TIMER_RESOLUTION|QUEUE_(?:ON_(?:DEVICE_(?:MAX_SIZE|PREFERRED_SIZE|PROPERTIES)|HOST_PROPERTIES)|PROPERTIES)|REFERENCE_COUNT|SINGLE_FP_CONFIG|SUB_GROUP_INDEPENDENT_FORWARD_PROGRESS|SVM_(?:ATOMICS|CAPABILITIES|COARSE_GRAIN_BUFFER|FINE_GRAIN_BUFFER|FINE_GRAIN_SYSTEM)|TYPE(?:_ACCELERATOR|_ALL|_CPU|_CUSTOM|_DEFAULT|_GPU)?|VENDOR(?:_ID)?|VERSION)|DRIVER_VERSION|EVENT_(?:COMMAND_(?:EXECUTION_STATUS|QUEUE|TYPE)|CONTEXT|REFERENCE_COUNT)|EXEC_(?:KERNEL|NATIVE_KERNEL|STATUS_ERROR_FOR_EVENTS_IN_WAIT_LIST)|FILTER_(?:LINEAR|NEAREST)|FLOAT|FP_(?:CORRECTLY_ROUNDED_DIVIDE_SQRT|DENORM|FMA|INF_NAN|ROUND_TO_INF|ROUND_TO_NEAREST|ROUND_TO_ZERO|SOFT_FLOAT)|GLOBAL|HALF_FLOAT|IMAGE_(?:ARRAY_SIZE|BUFFER|DEPTH|ELEMENT_SIZE|FORMAT|FORMAT_MISMATCH|FORMAT_NOT_SUPPORTED|HEIGHT|NUM_MIP_LEVELS|NUM_SAMPLES|ROW_PITCH|SLICE_PITCH|WIDTH)|INTENSITY|INVALID_(?:ARG_INDEX|ARG_SIZE|ARG_VALUE|BINARY|BUFFER_SIZE|BUILD_OPTIONS|COMMAND_QUEUE|COMPILER_OPTIONS|CONTEXT|DEVICE|DEVICE_PARTITION_COUNT|DEVICE_QUEUE|DEVICE_TYPE|EVENT|EVENT_WAIT_LIST|GLOBAL_OFFSET|GLOBAL_WORK_SIZE|GL_OBJECT|HOST_PTR|IMAGE_DESCRIPTOR|IMAGE_FORMAT_DESCRIPTOR|IMAGE_SIZE|KERNEL|KERNEL_ARGS|KERNEL_DEFINITION|KERNEL_NAME|LINKER_OPTIONS|MEM_OBJECT|MIP_LEVEL|OPERATION|PIPE_SIZE|PLATFORM|PROGRAM|PROGRAM_EXECUTABLE|PROPERTY|QUEUE_PROPERTIES|SAMPLER|VALUE|WORK_DIMENSION|WORK_GROUP_SIZE|WORK_ITEM_SIZE)|KERNEL_(?:ARG_(?:ACCESS_(?:NONE|QUALIFIER|READ_ONLY|READ_WRITE|WRITE_ONLY)|ADDRESS_(?:CONSTANT|GLOBAL|LOCAL|PRIVATE|QUALIFIER)|INFO_NOT_AVAILABLE|NAME|TYPE_(?:CONST|NAME|NONE|PIPE|QUALIFIER|RESTRICT|VOLATILE))|ATTRIBUTES|COMPILE_NUM_SUB_GROUPS|COMPILE_WORK_GROUP_SIZE|CONTEXT|EXEC_INFO_SVM_FINE_GRAIN_SYSTEM|EXEC_INFO_SVM_PTRS|FUNCTION_NAME|GLOBAL_WORK_SIZE|LOCAL_MEM_SIZE|LOCAL_SIZE_FOR_SUB_GROUP_COUNT|MAX_NUM_SUB_GROUPS|MAX_SUB_GROUP_SIZE_FOR_NDRANGE|NUM_ARGS|PREFERRED_WORK_GROUP_SIZE_MULTIPLE|PRIVATE_MEM_SIZE|PROGRAM|REFERENCE_COUNT|SUB_GROUP_COUNT_FOR_NDRANGE|WORK_GROUP_SIZE)|LINKER_NOT_AVAILABLE|LINK_PROGRAM_FAILURE|LOCAL|LUMINANCE|MAP_(?:FAILURE|READ|WRITE|WRITE_INVALIDATE_REGION)|MEM_(?:ALLOC_HOST_PTR|ASSOCIATED_MEMOBJECT|CONTEXT|COPY_HOST_PTR|COPY_OVERLAP|FLAGS|HOST_NO_ACCESS|HOST_PTR|HOST_READ_ONLY|HOST_WRITE_ONLY|KERNEL_READ_AND_WRITE|MAP_COUNT|OBJECT_(?:ALLOCATION_FAILURE|BUFFER|IMAGE1D|IMAGE1D_ARRAY|IMAGE1D_BUFFER|IMAGE2D|IMAGE2D_ARRAY|IMAGE3D|PIPE)|OFFSET|READ_ONLY|READ_WRITE|REFERENCE_COUNT|SIZE|SVM_ATOMICS|SVM_FINE_GRAIN_BUFFER|TYPE|USES_SVM_POINTER|USE_HOST_PTR|WRITE_ONLY)|MIGRATE_MEM_OBJECT_(?:CONTENT_UNDEFINED|HOST)|MISALIGNED_SUB_BUFFER_OFFSET|NONE|NON_BLOCKING|OUT_OF_(?:HOST_MEMORY|RESOURCES)|PIPE_(?:MAX_PACKETS|PACKET_SIZE)|PLATFORM_(?:EXTENSIONS|HOST_TIMER_RESOLUTION|NAME|PROFILE|VENDOR|VERSION)|PROFILING_(?:COMMAND_(?:COMPLETE|END|QUEUED|START|SUBMIT)|INFO_NOT_AVAILABLE)|PROGRAM_(?:BINARIES|BINARY_SIZES|BINARY_TYPE(?:_COMPILED_OBJECT|_EXECUTABLE|_LIBRARY|_NONE)?|BUILD_(?:GLOBAL_VARIABLE_TOTAL_SIZE|LOG|OPTIONS|STATUS)|CONTEXT|DEVICES|IL|KERNEL_NAMES|NUM_DEVICES|NUM_KERNELS|REFERENCE_COUNT|SOURCE)|QUEUED|QUEUE_(?:CONTEXT|DEVICE|DEVICE_DEFAULT|ON_DEVICE|ON_DEVICE_DEFAULT|OUT_OF_ORDER_EXEC_MODE_ENABLE|PROFILING_ENABLE|PROPERTIES|REFERENCE_COUNT|SIZE)|R|RA|READ_(?:ONLY|WRITE)_CACHE|RG|RGB|RGBA|RGBx|RGx|RUNNING|Rx|SAMPLER_(?:ADDRESSING_MODE|CONTEXT|FILTER_MODE|LOD_MAX|LOD_MIN|MIP_FILTER_MODE|NORMALIZED_COORDS|REFERENCE_COUNT)|(?:UN)?SIGNED_INT(?:8|16|32)|SNORM_INT(?:8|16)|SUBMITTED|SUCCESS|UNORM_INT(?:8|16|24|_101010|_101010_2)|UNORM_SHORT_(?:555|565)|VERSION_(?:1_0|1_1|1_2|2_0|2_1)|sBGRA|sRGB|sRGBA|sRGBx)\b/,alias:"constant"},"function-opencl-host":{pattern:/\bcl(?:BuildProgram|CloneKernel|CompileProgram|Create(?:Buffer|CommandQueue(?:WithProperties)?|Context|ContextFromType|Image|Image2D|Image3D|Kernel|KernelsInProgram|Pipe|ProgramWith(?:Binary|BuiltInKernels|IL|Source)|Sampler|SamplerWithProperties|SubBuffer|SubDevices|UserEvent)|Enqueue(?:(?:Barrier|Marker)(?:WithWaitList)?|Copy(?:Buffer(?:Rect|ToImage)?|Image(?:ToBuffer)?)|(?:Fill|Map)(?:Buffer|Image)|MigrateMemObjects|NDRangeKernel|NativeKernel|(?:Read|Write)(?:Buffer(?:Rect)?|Image)|SVM(?:Free|Map|MemFill|Memcpy|MigrateMem|Unmap)|Task|UnmapMemObject|WaitForEvents)|Finish|Flush|Get(?:CommandQueueInfo|ContextInfo|Device(?:AndHostTimer|IDs|Info)|Event(?:Profiling)?Info|ExtensionFunctionAddress(?:ForPlatform)?|HostTimer|ImageInfo|Kernel(?:ArgInfo|Info|SubGroupInfo|WorkGroupInfo)|MemObjectInfo|PipeInfo|Platform(?:IDs|Info)|Program(?:Build)?Info|SamplerInfo|SupportedImageFormats)|LinkProgram|(?:Release|Retain)(?:CommandQueue|Context|Device|Event|Kernel|MemObject|Program|Sampler)|SVM(?:Alloc|Free)|Set(?:CommandQueueProperty|DefaultDeviceCommandQueue|EventCallback|Kernel|Kernel(?:Arg(?:SVMPointer)?|ExecInfo)|MemObjectDestructorCallback|UserEventStatus)|Unload(?:Platform)?Compiler|WaitForEvents)\b/,alias:"function"}};Me.languages.insertBefore("c","keyword",We),Me.languages.cpp&&(We["type-opencl-host-cpp"]={pattern:/\b(?:Buffer|BufferGL|BufferRenderGL|CommandQueue|Context|Device|DeviceCommandQueue|EnqueueArgs|Event|Image|Image1D|Image1DArray|Image1DBuffer|Image2D|Image2DArray|Image2DGL|Image3D|Image3DGL|ImageFormat|ImageGL|Kernel|KernelFunctor|LocalSpaceArg|Memory|NDRange|Pipe|Platform|Program|SVMAllocator|SVMTraitAtomic|SVMTraitCoarse|SVMTraitFine|SVMTraitReadOnly|SVMTraitReadWrite|SVMTraitWriteOnly|Sampler|UserEvent)\b/,alias:"keyword"},Me.languages.insertBefore("cpp","keyword",We))}(Re)}},27734:function(ze){"use strict";ze.exports=Ee,Ee.displayName="openqasm",Ee.aliases=["qasm"];function Ee(ue){ue.languages.openqasm={comment:/\/\*[\s\S]*?\*\/|\/\/.*/,string:{pattern:/"[^"\r\n\t]*"|'[^'\r\n\t]*'/,greedy:!0},keyword:/\b(?:CX|OPENQASM|U|barrier|boxas|boxto|break|const|continue|ctrl|def|defcal|defcalgrammar|delay|else|end|for|gate|gphase|if|in|include|inv|kernel|lengthof|let|measure|pow|reset|return|rotary|stretchinf|while)\b|#pragma\b/,"class-name":/\b(?:angle|bit|bool|creg|fixed|float|int|length|qreg|qubit|stretch|uint)\b/,function:/\b(?:cos|exp|ln|popcount|rotl|rotr|sin|sqrt|tan)\b(?=\s*\()/,constant:/\b(?:euler|pi|tau)\b|π|𝜏|ℇ/,number:{pattern:/(^|[^.\w$])(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?(?:dt|ns|us|µs|ms|s)?/i,lookbehind:!0},operator:/->|>>=?|<<=?|&&|\|\||\+\+|--|[!=<>&|~^+\-*/%]=?|@/,punctuation:/[(){}\[\];,:.]/},ue.languages.qasm=ue.languages.openqasm}},91889:function(ze){"use strict";ze.exports=Ee,Ee.displayName="oz",Ee.aliases=[];function Ee(ue){ue.languages.oz={comment:{pattern:/\/\*[\s\S]*?\*\/|%.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\[\s\S])*"/,greedy:!0},atom:{pattern:/'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,alias:"builtin"},keyword:/\$|\[\]|\b(?:_|at|attr|case|catch|choice|class|cond|declare|define|dis|else(?:case|if)?|end|export|fail|false|feat|finally|from|fun|functor|if|import|in|local|lock|meth|nil|not|of|or|prepare|proc|prop|raise|require|self|skip|then|thread|true|try|unit)\b/,function:[/\b[a-z][A-Za-z\d]*(?=\()/,{pattern:/(\{)[A-Z][A-Za-z\d]*\b/,lookbehind:!0}],number:/\b(?:0[bx][\da-f]+|\d+(?:\.\d*)?(?:e~?\d+)?)\b|&(?:[^\\]|\\(?:\d{3}|.))/i,variable:/`(?:[^`\\]|\\.)+`/,"attr-name":/\b\w+(?=[ \t]*:(?![:=]))/,operator:/:(?:=|::?)|<[-:=]?|=(?:=|<?:?)|>=?:?|\\=:?|!!?|[|#+\-*\/,~^@]|\b(?:andthen|div|mod|orelse)\b/,punctuation:/[\[\](){}.:;?]/}}},55965:function(ze){"use strict";ze.exports=Ee,Ee.displayName="parigp",Ee.aliases=[];function Ee(ue){ue.languages.parigp={comment:/\/\*[\s\S]*?\*\/|\\\\.*/,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"/,greedy:!0},keyword:function(){var ce=["breakpoint","break","dbg_down","dbg_err","dbg_up","dbg_x","forcomposite","fordiv","forell","forpart","forprime","forstep","forsubgroup","forvec","for","iferr","if","local","my","next","return","until","while"];return ce=ce.map(function(Pe){return Pe.split("").join(" *")}).join("|"),RegExp("\\b(?:"+ce+")\\b")}(),function:/\b\w(?:[\w ]*\w)?(?= *\()/,number:{pattern:/((?:\. *\. *)?)(?:\b\d(?: *\d)*(?: *(?!\. *\.)\.(?: *\d)*)?|\. *\d(?: *\d)*)(?: *e *(?:[+-] *)?\d(?: *\d)*)?/i,lookbehind:!0},operator:/\. *\.|[*\/!](?: *=)?|%(?: *=|(?: *#)?(?: *')*)?|\+(?: *[+=])?|-(?: *[-=>])?|<(?: *>|(?: *<)?(?: *=)?)?|>(?: *>)?(?: *=)?|=(?: *=){0,2}|\\(?: *\/)?(?: *=)?|&(?: *&)?|\| *\||['#~^]/,punctuation:/[\[\]{}().,:;|]/}}},37326:function(ze){"use strict";ze.exports=Ee,Ee.displayName="parser",Ee.aliases=[];function Ee(ue){(function(ce){var Pe=ce.languages.parser=ce.languages.extend("markup",{keyword:{pattern:/(^|[^^])(?:\^(?:case|eval|for|if|switch|throw)\b|@(?:BASE|CLASS|GET(?:_DEFAULT)?|OPTIONS|SET_DEFAULT|USE)\b)/,lookbehind:!0},variable:{pattern:/(^|[^^])\B\$(?:\w+|(?=[.{]))(?:(?:\.|::?)\w+)*(?:\.|::?)?/,lookbehind:!0,inside:{punctuation:/\.|:+/}},function:{pattern:/(^|[^^])\B[@^]\w+(?:(?:\.|::?)\w+)*(?:\.|::?)?/,lookbehind:!0,inside:{keyword:{pattern:/(^@)(?:GET_|SET_)/,lookbehind:!0},punctuation:/\.|:+/}},escape:{pattern:/\^(?:[$^;@()\[\]{}"':]|#[a-f\d]*)/i,alias:"builtin"},punctuation:/[\[\](){};]/});Pe=ce.languages.insertBefore("parser","keyword",{"parser-comment":{pattern:/(\s)#.*/,lookbehind:!0,alias:"comment"},expression:{pattern:/(^|[^^])\((?:[^()]|\((?:[^()]|\((?:[^()])*\))*\))*\)/,greedy:!0,lookbehind:!0,inside:{string:{pattern:/(^|[^^])(["'])(?:(?!\2)[^^]|\^[\s\S])*\2/,lookbehind:!0},keyword:Pe.keyword,variable:Pe.variable,function:Pe.function,boolean:/\b(?:false|true)\b/,number:/\b(?:0x[a-f\d]+|\d+(?:\.\d*)?(?:e[+-]?\d+)?)\b/i,escape:Pe.escape,operator:/[~+*\/\\%]|!(?:\|\|?|=)?|&&?|\|\|?|==|<[<=]?|>[>=]?|-[fd]?|\b(?:def|eq|ge|gt|in|is|le|lt|ne)\b/,punctuation:Pe.punctuation}}}),ce.languages.insertBefore("inside","punctuation",{expression:Pe.expression,keyword:Pe.keyword,variable:Pe.variable,function:Pe.function,escape:Pe.escape,"parser-punctuation":{pattern:Pe.punctuation,alias:"punctuation"}},Pe.tag.inside["attr-value"])})(ue)}},92949:function(ze){"use strict";ze.exports=Ee,Ee.displayName="pascal",Ee.aliases=["objectpascal"];function Ee(ue){ue.languages.pascal={directive:{pattern:/\{\$[\s\S]*?\}/,greedy:!0,alias:["marco","property"]},comment:{pattern:/\(\*[\s\S]*?\*\)|\{[\s\S]*?\}|\/\/.*/,greedy:!0},string:{pattern:/(?:'(?:''|[^'\r\n])*'(?!')|#[&$%]?[a-f\d]+)+|\^[a-z]/i,greedy:!0},asm:{pattern:/(\basm\b)[\s\S]+?(?=\bend\s*[;[])/i,lookbehind:!0,greedy:!0,inside:null},keyword:[{pattern:/(^|[^&])\b(?:absolute|array|asm|begin|case|const|constructor|destructor|do|downto|else|end|file|for|function|goto|if|implementation|inherited|inline|interface|label|nil|object|of|operator|packed|procedure|program|record|reintroduce|repeat|self|set|string|then|to|type|unit|until|uses|var|while|with)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:dispose|exit|false|new|true)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:class|dispinterface|except|exports|finalization|finally|initialization|inline|library|on|out|packed|property|raise|resourcestring|threadvar|try)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:absolute|abstract|alias|assembler|bitpacked|break|cdecl|continue|cppdecl|cvar|default|deprecated|dynamic|enumerator|experimental|export|external|far|far16|forward|generic|helper|implements|index|interrupt|iochecks|local|message|name|near|nodefault|noreturn|nostackframe|oldfpccall|otherwise|overload|override|pascal|platform|private|protected|public|published|read|register|reintroduce|result|safecall|saveregisters|softfloat|specialize|static|stdcall|stored|strict|unaligned|unimplemented|varargs|virtual|write)\b/i,lookbehind:!0}],number:[/(?:[&%]\d+|\$[a-f\d]+)/i,/\b\d+(?:\.\d+)?(?:e[+-]?\d+)?/i],operator:[/\.\.|\*\*|:=|<[<=>]?|>[>=]?|[+\-*\/]=?|[@^=]/,{pattern:/(^|[^&])\b(?:and|as|div|exclude|in|include|is|mod|not|or|shl|shr|xor)\b/,lookbehind:!0}],punctuation:/\(\.|\.\)|[()\[\]:;,.]/},ue.languages.pascal.asm.inside=ue.languages.extend("pascal",{asm:void 0,keyword:void 0,operator:void 0}),ue.languages.objectpascal=ue.languages.pascal}},5681:function(ze){"use strict";ze.exports=Ee,Ee.displayName="pascaligo",Ee.aliases=[];function Ee(ue){(function(ce){var Pe=/\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\)/.source,Re=/(?:\b\w+(?:<braces>)?|<braces>)/.source.replace(/<braces>/g,function(){return Pe}),Me=ce.languages.pascaligo={comment:/\(\*[\s\S]+?\*\)|\/\/.*/,string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1|\^[a-z]/i,greedy:!0},"class-name":[{pattern:RegExp(/(\btype\s+\w+\s+is\s+)<type>/.source.replace(/<type>/g,function(){return Re}),"i"),lookbehind:!0,inside:null},{pattern:RegExp(/<type>(?=\s+is\b)/.source.replace(/<type>/g,function(){return Re}),"i"),inside:null},{pattern:RegExp(/(:\s*)<type>/.source.replace(/<type>/g,function(){return Re})),lookbehind:!0,inside:null}],keyword:{pattern:/(^|[^&])\b(?:begin|block|case|const|else|end|fail|for|from|function|if|is|nil|of|remove|return|skip|then|type|var|while|with)\b/i,lookbehind:!0},boolean:{pattern:/(^|[^&])\b(?:False|True)\b/i,lookbehind:!0},builtin:{pattern:/(^|[^&])\b(?:bool|int|list|map|nat|record|string|unit)\b/i,lookbehind:!0},function:/\b\w+(?=\s*\()/,number:[/%[01]+|&[0-7]+|\$[a-f\d]+/i,/\b\d+(?:\.\d+)?(?:e[+-]?\d+)?(?:mtz|n)?/i],operator:/->|=\/=|\.\.|\*\*|:=|<[<=>]?|>[>=]?|[+\-*\/]=?|[@^=|]|\b(?:and|mod|or)\b/,punctuation:/\(\.|\.\)|[()\[\]:;,.{}]/},We=["comment","keyword","builtin","operator","punctuation"].reduce(function(Te,Ge){return Te[Ge]=Me[Ge],Te},{});Me["class-name"].forEach(function(Te){Te.inside=We})})(ue)}},70696:function(ze){"use strict";ze.exports=Ee,Ee.displayName="pcaxis",Ee.aliases=["px"];function Ee(ue){ue.languages.pcaxis={string:/"[^"]*"/,keyword:{pattern:/((?:^|;)\s*)[-A-Z\d]+(?:\s*\[[-\w]+\])?(?:\s*\("[^"]*"(?:,\s*"[^"]*")*\))?(?=\s*=)/,lookbehind:!0,greedy:!0,inside:{keyword:/^[-A-Z\d]+/,language:{pattern:/^(\s*)\[[-\w]+\]/,lookbehind:!0,inside:{punctuation:/^\[|\]$/,property:/[-\w]+/}},"sub-key":{pattern:/^(\s*)\S[\s\S]*/,lookbehind:!0,inside:{parameter:{pattern:/"[^"]*"/,alias:"property"},punctuation:/^\(|\)$|,/}}}},operator:/=/,tlist:{pattern:/TLIST\s*\(\s*\w+(?:(?:\s*,\s*"[^"]*")+|\s*,\s*"[^"]*"-"[^"]*")?\s*\)/,greedy:!0,inside:{function:/^TLIST/,property:{pattern:/^(\s*\(\s*)\w+/,lookbehind:!0},string:/"[^"]*"/,punctuation:/[(),]/,operator:/-/}},punctuation:/[;,]/,number:{pattern:/(^|\s)\d+(?:\.\d+)?(?!\S)/,lookbehind:!0},boolean:/NO|YES/},ue.languages.px=ue.languages.pcaxis}},35790:function(ze){"use strict";ze.exports=Ee,Ee.displayName="peoplecode",Ee.aliases=["pcode"];function Ee(ue){ue.languages.peoplecode={comment:RegExp([/\/\*[\s\S]*?\*\//.source,/\bREM[^;]*;/.source,/<\*(?:[^<*]|\*(?!>)|<(?!\*)|<\*(?:(?!\*>)[\s\S])*\*>)*\*>/.source,/\/\+[\s\S]*?\+\//.source].join("|")),string:{pattern:/'(?:''|[^'\r\n])*'(?!')|"(?:""|[^"\r\n])*"(?!")/,greedy:!0},variable:/%\w+/,"function-definition":{pattern:/((?:^|[^\w-])(?:function|method)\s+)\w+/i,lookbehind:!0,alias:"function"},"class-name":{pattern:/((?:^|[^-\w])(?:as|catch|class|component|create|extends|global|implements|instance|local|of|property|returns)\s+)\w+(?::\w+)*/i,lookbehind:!0,inside:{punctuation:/:/}},keyword:/\b(?:abstract|alias|as|catch|class|component|constant|create|declare|else|end-(?:class|evaluate|for|function|get|if|method|set|try|while)|evaluate|extends|for|function|get|global|if|implements|import|instance|library|local|method|null|of|out|peopleCode|private|program|property|protected|readonly|ref|repeat|returns?|set|step|then|throw|to|try|until|value|when(?:-other)?|while)\b/i,"operator-keyword":{pattern:/\b(?:and|not|or)\b/i,alias:"operator"},function:/[_a-z]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/i,number:/\b\d+(?:\.\d+)?\b/,operator:/<>|[<>]=?|!=|\*\*|[-+*/|=@]/,punctuation:/[:.;,()[\]]/},ue.languages.pcode=ue.languages.peoplecode}},25777:function(ze){"use strict";ze.exports=Ee,Ee.displayName="perl",Ee.aliases=[];function Ee(ue){(function(ce){var Pe=/(?:\((?:[^()\\]|\\[\s\S])*\)|\{(?:[^{}\\]|\\[\s\S])*\}|\[(?:[^[\]\\]|\\[\s\S])*\]|<(?:[^<>\\]|\\[\s\S])*>)/.source;ce.languages.perl={comment:[{pattern:/(^\s*)=\w[\s\S]*?=cut.*/m,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0,greedy:!0}],string:[{pattern:RegExp(/\b(?:q|qq|qw|qx)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,Pe].join("|")+")"),greedy:!0},{pattern:/("|`)(?:(?!\1)[^\\]|\\[\s\S])*\1/,greedy:!0},{pattern:/'(?:[^'\\\r\n]|\\.)*'/,greedy:!0}],regex:[{pattern:RegExp(/\b(?:m|qr)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,Pe].join("|")+")"+/[msixpodualngc]*/.source),greedy:!0},{pattern:RegExp(/(^|[^-])\b(?:s|tr|y)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\2)[^\\]|\\[\s\S])*\2(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,/([a-zA-Z0-9])(?:(?!\3)[^\\]|\\[\s\S])*\3(?:(?!\3)[^\\]|\\[\s\S])*\3/.source,Pe+/\s*/.source+Pe].join("|")+")"+/[msixpodualngcer]*/.source),lookbehind:!0,greedy:!0},{pattern:/\/(?:[^\/\\\r\n]|\\.)*\/[msixpodualngc]*(?=\s*(?:$|[\r\n,.;})&|\-+*~<>!?^]|(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|x|xor)\b))/,greedy:!0}],variable:[/[&*$@%]\{\^[A-Z]+\}/,/[&*$@%]\^[A-Z_]/,/[&*$@%]#?(?=\{)/,/[&*$@%]#?(?:(?:::)*'?(?!\d)[\w$]+(?![\w$]))+(?:::)*/,/[&*$@%]\d+/,/(?!%=)[$@%][!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~]/],filehandle:{pattern:/<(?![<=])\S*?>|\b_\b/,alias:"symbol"},"v-string":{pattern:/v\d+(?:\.\d+)*|\d+(?:\.\d+){2,}/,alias:"string"},function:{pattern:/(\bsub[ \t]+)\w+/,lookbehind:!0},keyword:/\b(?:any|break|continue|default|delete|die|do|else|elsif|eval|for|foreach|given|goto|if|last|local|my|next|our|package|print|redo|require|return|say|state|sub|switch|undef|unless|until|use|when|while)\b/,number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)\b/,operator:/-[rwxoRWXOezsfdlpSbctugkTBMAC]\b|\+[+=]?|-[-=>]?|\*\*?=?|\/\/?=?|=[=~>]?|~[~=]?|\|\|?=?|&&?=?|<(?:=>?|<=?)?|>>?=?|![~=]?|[%^]=?|\.(?:=|\.\.?)?|[\\?]|\bx(?:=|\b)|\b(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|xor)\b/,punctuation:/[{}[\];(),:]/}})(ue)}},65889:function(ze,Ee,ue){"use strict";var ce=ue(53852);ze.exports=Pe,Pe.displayName="phpExtras",Pe.aliases=[];function Pe(Re){Re.register(ce),Re.languages.insertBefore("php","variable",{this:{pattern:/\$this\b/,alias:"keyword"},global:/\$(?:GLOBALS|HTTP_RAW_POST_DATA|_(?:COOKIE|ENV|FILES|GET|POST|REQUEST|SERVER|SESSION)|argc|argv|http_response_header|php_errormsg)\b/,scope:{pattern:/\b[\w\\]+::/,inside:{keyword:/\b(?:parent|self|static)\b/,punctuation:/::|\\/}}})}},53852:function(ze,Ee,ue){"use strict";var ce=ue(51478);ze.exports=Pe,Pe.displayName="php",Pe.aliases=[];function Pe(Re){Re.register(ce),function(Me){var We=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,Te=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],Ge=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,st=/<?=>|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,Qe=/[{}\[\](),:;]/;Me.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:We,variable:/\$+(?:\w+\b|(?=\{))/,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:array|bool|boolean|float|int|integer|object|string)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string|void)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:array(?!\s*\()|bool|float|int|iterable|mixed|object|string|void)\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:false|null)\b|\b(?:false|null)(?=\s*\|)/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|match|namespace|new|or|parent|print|private|protected|public|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield|__halt_compiler)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s+)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:Te,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:Ge,operator:st,punctuation:Qe};var Ye={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:Me.languages.php},yt=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:Ye}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:Ye}}];Me.languages.insertBefore("php","variable",{string:yt,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:We,string:yt,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:Te,number:Ge,operator:st,punctuation:Qe}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),Me.hooks.add("before-tokenize",function(ot){if(/<\?/.test(ot.code)){var Nt=/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g;Me.languages["markup-templating"].buildPlaceholders(ot,"php",Nt)}}),Me.hooks.add("after-tokenize",function(ot){Me.languages["markup-templating"].tokenizePlaceholders(ot,"php")})}(Re)}},97719:function(ze,Ee,ue){"use strict";var ce=ue(53852),Pe=ue(53510);ze.exports=Re,Re.displayName="phpdoc",Re.aliases=[];function Re(Me){Me.register(ce),Me.register(Pe),function(We){var Te=/(?:\b[a-zA-Z]\w*|[|\\[\]])+/.source;We.languages.phpdoc=We.languages.extend("javadoclike",{parameter:{pattern:RegExp("(@(?:global|param|property(?:-read|-write)?|var)\\s+(?:"+Te+"\\s+)?)\\$\\w+"),lookbehind:!0}}),We.languages.insertBefore("phpdoc","keyword",{"class-name":[{pattern:RegExp("(@(?:global|package|param|property(?:-read|-write)?|return|subpackage|throws|var)\\s+)"+Te),lookbehind:!0,inside:{keyword:/\b(?:array|bool|boolean|callback|double|false|float|int|integer|mixed|null|object|resource|self|string|true|void)\b/,punctuation:/[|\\[\]()]/}}]}),We.languages.javadoclike.addSupport("php",We.languages.phpdoc)}(Me)}},63839:function(ze,Ee,ue){"use strict";var ce=ue(69435);ze.exports=Pe,Pe.displayName="plsql",Pe.aliases=[];function Pe(Re){Re.register(ce),Re.languages.plsql=Re.languages.extend("sql",{comment:{pattern:/\/\*[\s\S]*?\*\/|--.*/,greedy:!0},keyword:/\b(?:A|ACCESSIBLE|ADD|AGENT|AGGREGATE|ALL|ALTER|AND|ANY|ARRAY|AS|ASC|AT|ATTRIBUTE|AUTHID|AVG|BEGIN|BETWEEN|BFILE_BASE|BINARY|BLOB_BASE|BLOCK|BODY|BOTH|BOUND|BULK|BY|BYTE|C|CALL|CALLING|CASCADE|CASE|CHAR|CHARACTER|CHARSET|CHARSETFORM|CHARSETID|CHAR_BASE|CHECK|CLOB_BASE|CLONE|CLOSE|CLUSTER|CLUSTERS|COLAUTH|COLLECT|COLUMNS|COMMENT|COMMIT|COMMITTED|COMPILED|COMPRESS|CONNECT|CONSTANT|CONSTRUCTOR|CONTEXT|CONTINUE|CONVERT|COUNT|CRASH|CREATE|CREDENTIAL|CURRENT|CURSOR|CUSTOMDATUM|DANGLING|DATA|DATE|DATE_BASE|DAY|DECLARE|DEFAULT|DEFINE|DELETE|DESC|DETERMINISTIC|DIRECTORY|DISTINCT|DOUBLE|DROP|DURATION|ELEMENT|ELSE|ELSIF|EMPTY|END|ESCAPE|EXCEPT|EXCEPTION|EXCEPTIONS|EXCLUSIVE|EXECUTE|EXISTS|EXIT|EXTERNAL|FETCH|FINAL|FIRST|FIXED|FLOAT|FOR|FORALL|FORCE|FROM|FUNCTION|GENERAL|GOTO|GRANT|GROUP|HASH|HAVING|HEAP|HIDDEN|HOUR|IDENTIFIED|IF|IMMEDIATE|IMMUTABLE|IN|INCLUDING|INDEX|INDEXES|INDICATOR|INDICES|INFINITE|INSERT|INSTANTIABLE|INT|INTERFACE|INTERSECT|INTERVAL|INTO|INVALIDATE|IS|ISOLATION|JAVA|LANGUAGE|LARGE|LEADING|LENGTH|LEVEL|LIBRARY|LIKE|LIKE2|LIKE4|LIKEC|LIMIT|LIMITED|LOCAL|LOCK|LONG|LOOP|MAP|MAX|MAXLEN|MEMBER|MERGE|MIN|MINUS|MINUTE|MOD|MODE|MODIFY|MONTH|MULTISET|MUTABLE|NAME|NAN|NATIONAL|NATIVE|NCHAR|NEW|NOCOMPRESS|NOCOPY|NOT|NOWAIT|NULL|NUMBER_BASE|OBJECT|OCICOLL|OCIDATE|OCIDATETIME|OCIDURATION|OCIINTERVAL|OCILOBLOCATOR|OCINUMBER|OCIRAW|OCIREF|OCIREFCURSOR|OCIROWID|OCISTRING|OCITYPE|OF|OLD|ON|ONLY|OPAQUE|OPEN|OPERATOR|OPTION|OR|ORACLE|ORADATA|ORDER|ORGANIZATION|ORLANY|ORLVARY|OTHERS|OUT|OVERLAPS|OVERRIDING|PACKAGE|PARALLEL_ENABLE|PARAMETER|PARAMETERS|PARENT|PARTITION|PASCAL|PERSISTABLE|PIPE|PIPELINED|PLUGGABLE|POLYMORPHIC|PRAGMA|PRECISION|PRIOR|PRIVATE|PROCEDURE|PUBLIC|RAISE|RANGE|RAW|READ|RECORD|REF|REFERENCE|RELIES_ON|REM|REMAINDER|RENAME|RESOURCE|RESULT|RESULT_CACHE|RETURN|RETURNING|REVERSE|REVOKE|ROLLBACK|ROW|SAMPLE|SAVE|SAVEPOINT|SB1|SB2|SB4|SECOND|SEGMENT|SELECT|SELF|SEPARATE|SEQUENCE|SERIALIZABLE|SET|SHARE|SHORT|SIZE|SIZE_T|SOME|SPARSE|SQL|SQLCODE|SQLDATA|SQLNAME|SQLSTATE|STANDARD|START|STATIC|STDDEV|STORED|STRING|STRUCT|STYLE|SUBMULTISET|SUBPARTITION|SUBSTITUTABLE|SUBTYPE|SUM|SYNONYM|TABAUTH|TABLE|TDO|THE|THEN|TIME|TIMESTAMP|TIMEZONE_ABBR|TIMEZONE_HOUR|TIMEZONE_MINUTE|TIMEZONE_REGION|TO|TRAILING|TRANSACTION|TRANSACTIONAL|TRUSTED|TYPE|UB1|UB2|UB4|UNDER|UNION|UNIQUE|UNPLUG|UNSIGNED|UNTRUSTED|UPDATE|USE|USING|VALIST|VALUE|VALUES|VARIABLE|VARIANCE|VARRAY|VARYING|VIEW|VIEWS|VOID|WHEN|WHERE|WHILE|WITH|WORK|WRAPPED|WRITE|YEAR|ZONE)\b/i,operator:/:=?|=>|[<>^~!]=|\.\.|\|\||\*\*|[-+*/%<>=@]/}),Re.languages.insertBefore("plsql","operator",{label:{pattern:/<<\s*\w+\s*>>/,alias:"symbol"}})}},67623:function(ze){"use strict";ze.exports=Ee,Ee.displayName="powerquery",Ee.aliases=[];function Ee(ue){ue.languages.powerquery={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},"quoted-identifier":{pattern:/#"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},string:{pattern:/(?:#!)?"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},constant:[/\bDay\.(?:Friday|Monday|Saturday|Sunday|Thursday|Tuesday|Wednesday)\b/,/\bTraceLevel\.(?:Critical|Error|Information|Verbose|Warning)\b/,/\bOccurrence\.(?:All|First|Last)\b/,/\bOrder\.(?:Ascending|Descending)\b/,/\bRoundingMode\.(?:AwayFromZero|Down|ToEven|TowardZero|Up)\b/,/\bMissingField\.(?:Error|Ignore|UseNull)\b/,/\bQuoteStyle\.(?:Csv|None)\b/,/\bJoinKind\.(?:FullOuter|Inner|LeftAnti|LeftOuter|RightAnti|RightOuter)\b/,/\bGroupKind\.(?:Global|Local)\b/,/\bExtraValues\.(?:Error|Ignore|List)\b/,/\bJoinAlgorithm\.(?:Dynamic|LeftHash|LeftIndex|PairwiseHash|RightHash|RightIndex|SortMerge)\b/,/\bJoinSide\.(?:Left|Right)\b/,/\bPrecision\.(?:Decimal|Double)\b/,/\bRelativePosition\.From(?:End|Start)\b/,/\bTextEncoding\.(?:Ascii|BigEndianUnicode|Unicode|Utf16|Utf8|Windows)\b/,/\b(?:Any|Binary|Date|DateTime|DateTimeZone|Duration|Function|Int16|Int32|Int64|Int8|List|Logical|None|Number|Record|Table|Text|Time)\.Type\b/,/\bnull\b/],boolean:/\b(?:false|true)\b/,keyword:/\b(?:and|as|each|else|error|if|in|is|let|meta|not|nullable|optional|or|otherwise|section|shared|then|try|type)\b|#(?:binary|date|datetime|datetimezone|duration|infinity|nan|sections|shared|table|time)\b/,function:{pattern:/(^|[^#\w.])[a-z_][\w.]*(?=\s*\()/i,lookbehind:!0},"data-type":{pattern:/\b(?:any|anynonnull|binary|date|datetime|datetimezone|duration|function|list|logical|none|number|record|table|text|time)\b/,alias:"class-name"},number:{pattern:/\b0x[\da-f]+\b|(?:[+-]?(?:\b\d+\.)?\b\d+|[+-]\.\d+|(^|[^.])\B\.\d+)(?:e[+-]?\d+)?\b/i,lookbehind:!0},operator:/[-+*\/&?@^]|<(?:=>?|>)?|>=?|=>?|\.\.\.?/,punctuation:/[,;\[\](){}]/},ue.languages.pq=ue.languages.powerquery,ue.languages.mscript=ue.languages.powerquery}},32530:function(ze){"use strict";ze.exports=Ee,Ee.displayName="powershell",Ee.aliases=[];function Ee(ue){(function(ce){var Pe=ce.languages.powershell={comment:[{pattern:/(^|[^`])<#[\s\S]*?#>/,lookbehind:!0},{pattern:/(^|[^`])#.*/,lookbehind:!0}],string:[{pattern:/"(?:`[\s\S]|[^`"])*"/,greedy:!0,inside:null},{pattern:/'(?:[^']|'')*'/,greedy:!0}],namespace:/\[[a-z](?:\[(?:\[[^\]]*\]|[^\[\]])*\]|[^\[\]])*\]/i,boolean:/\$(?:false|true)\b/i,variable:/\$\w+\b/,function:[/\b(?:Add|Approve|Assert|Backup|Block|Checkpoint|Clear|Close|Compare|Complete|Compress|Confirm|Connect|Convert|ConvertFrom|ConvertTo|Copy|Debug|Deny|Disable|Disconnect|Dismount|Edit|Enable|Enter|Exit|Expand|Export|Find|ForEach|Format|Get|Grant|Group|Hide|Import|Initialize|Install|Invoke|Join|Limit|Lock|Measure|Merge|Move|New|Open|Optimize|Out|Ping|Pop|Protect|Publish|Push|Read|Receive|Redo|Register|Remove|Rename|Repair|Request|Reset|Resize|Resolve|Restart|Restore|Resume|Revoke|Save|Search|Select|Send|Set|Show|Skip|Sort|Split|Start|Step|Stop|Submit|Suspend|Switch|Sync|Tee|Test|Trace|Unblock|Undo|Uninstall|Unlock|Unprotect|Unpublish|Unregister|Update|Use|Wait|Watch|Where|Write)-[a-z]+\b/i,/\b(?:ac|cat|chdir|clc|cli|clp|clv|compare|copy|cp|cpi|cpp|cvpa|dbp|del|diff|dir|ebp|echo|epal|epcsv|epsn|erase|fc|fl|ft|fw|gal|gbp|gc|gci|gcs|gdr|gi|gl|gm|gp|gps|group|gsv|gu|gv|gwmi|iex|ii|ipal|ipcsv|ipsn|irm|iwmi|iwr|kill|lp|ls|measure|mi|mount|move|mp|mv|nal|ndr|ni|nv|ogv|popd|ps|pushd|pwd|rbp|rd|rdr|ren|ri|rm|rmdir|rni|rnp|rp|rv|rvpa|rwmi|sal|saps|sasv|sbp|sc|select|set|shcm|si|sl|sleep|sls|sort|sp|spps|spsv|start|sv|swmi|tee|trcm|type|write)\b/i],keyword:/\b(?:Begin|Break|Catch|Class|Continue|Data|Define|Do|DynamicParam|Else|ElseIf|End|Exit|Filter|Finally|For|ForEach|From|Function|If|InlineScript|Parallel|Param|Process|Return|Sequence|Switch|Throw|Trap|Try|Until|Using|Var|While|Workflow)\b/i,operator:{pattern:/(^|\W)(?:!|-(?:b?(?:and|x?or)|as|(?:Not)?(?:Contains|In|Like|Match)|eq|ge|gt|is(?:Not)?|Join|le|lt|ne|not|Replace|sh[lr])\b|-[-=]?|\+[+=]?|[*\/%]=?)/i,lookbehind:!0},punctuation:/[|{}[\];(),.]/};Pe.string[0].inside={function:{pattern:/(^|[^`])\$\((?:\$\([^\r\n()]*\)|(?!\$\()[^\r\n)])*\)/,lookbehind:!0,inside:Pe},boolean:Pe.boolean,variable:Pe.variable}})(ue)}},8938:function(ze){"use strict";ze.exports=Ee,Ee.displayName="processing",Ee.aliases=[];function Ee(ue){ue.languages.processing=ue.languages.extend("clike",{keyword:/\b(?:break|case|catch|class|continue|default|else|extends|final|for|if|implements|import|new|null|private|public|return|static|super|switch|this|try|void|while)\b/,function:/\b\w+(?=\s*\()/,operator:/<[<=]?|>[>=]?|&&?|\|\|?|[%?]|[!=+\-*\/]=?/}),ue.languages.insertBefore("processing","number",{constant:/\b(?!XML\b)[A-Z][A-Z\d_]+\b/,type:{pattern:/\b(?:boolean|byte|char|color|double|float|int|[A-Z]\w*)\b/,alias:"class-name"}})}},55259:function(ze){"use strict";ze.exports=Ee,Ee.displayName="prolog",Ee.aliases=[];function Ee(ue){ue.languages.prolog={comment:{pattern:/\/\*[\s\S]*?\*\/|%.*/,greedy:!0},string:{pattern:/(["'])(?:\1\1|\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1(?!\1)/,greedy:!0},builtin:/\b(?:fx|fy|xf[xy]?|yfx?)\b/,function:/\b[a-z]\w*(?:(?=\()|\/\d+)/,number:/\b\d+(?:\.\d*)?/,operator:/[:\\=><\-?*@\/;+^|!$.]+|\b(?:is|mod|not|xor)\b/,punctuation:/[(){}\[\],]/}}},67411:function(ze){"use strict";ze.exports=Ee,Ee.displayName="promql",Ee.aliases=[];function Ee(ue){(function(ce){var Pe=["sum","min","max","avg","group","stddev","stdvar","count","count_values","bottomk","topk","quantile"],Re=["on","ignoring","group_right","group_left","by","without"],Me=["offset"],We=Pe.concat(Re,Me);ce.languages.promql={comment:{pattern:/(^[ \t]*)#.*/m,lookbehind:!0},"vector-match":{pattern:new RegExp("((?:"+Re.join("|")+")\\s*)\\([^)]*\\)"),lookbehind:!0,inside:{"label-key":{pattern:/\b[^,]+\b/,alias:"attr-name"},punctuation:/[(),]/}},"context-labels":{pattern:/\{[^{}]*\}/,inside:{"label-key":{pattern:/\b[a-z_]\w*(?=\s*(?:=|![=~]))/,alias:"attr-name"},"label-value":{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0,alias:"attr-value"},punctuation:/\{|\}|=~?|![=~]|,/}},"context-range":[{pattern:/\[[\w\s:]+\]/,inside:{punctuation:/\[|\]|:/,"range-duration":{pattern:/\b(?:\d+(?:[smhdwy]|ms))+\b/i,alias:"number"}}},{pattern:/(\boffset\s+)\w+/,lookbehind:!0,inside:{"range-duration":{pattern:/\b(?:\d+(?:[smhdwy]|ms))+\b/i,alias:"number"}}}],keyword:new RegExp("\\b(?:"+We.join("|")+")\\b","i"),function:/\b[a-z_]\w*(?=\s*\()/i,number:/[-+]?(?:(?:\b\d+(?:\.\d+)?|\B\.\d+)(?:e[-+]?\d+)?\b|\b(?:0x[0-9a-f]+|nan|inf)\b)/i,operator:/[\^*/%+-]|==|!=|<=|<|>=|>|\b(?:and|or|unless)\b/i,punctuation:/[{};()`,.[\]]/}})(ue)}},15375:function(ze){"use strict";ze.exports=Ee,Ee.displayName="properties",Ee.aliases=[];function Ee(ue){ue.languages.properties={comment:/^[ \t]*[#!].*$/m,"attr-value":{pattern:/(^[ \t]*(?:\\(?:\r\n|[\s\S])|[^\\\s:=])+(?: *[=:] *(?! )| ))(?:\\(?:\r\n|[\s\S])|[^\\\r\n])+/m,lookbehind:!0},"attr-name":/^[ \t]*(?:\\(?:\r\n|[\s\S])|[^\\\s:=])+(?= *[=:]| )/m,punctuation:/[=:]/}}},12093:function(ze){"use strict";ze.exports=Ee,Ee.displayName="protobuf",Ee.aliases=[];function Ee(ue){(function(ce){var Pe=/\b(?:bool|bytes|double|s?fixed(?:32|64)|float|[su]?int(?:32|64)|string)\b/;ce.languages.protobuf=ce.languages.extend("clike",{"class-name":[{pattern:/(\b(?:enum|extend|message|service)\s+)[A-Za-z_]\w*(?=\s*\{)/,lookbehind:!0},{pattern:/(\b(?:rpc\s+\w+|returns)\s*\(\s*(?:stream\s+)?)\.?[A-Za-z_]\w*(?:\.[A-Za-z_]\w*)*(?=\s*\))/,lookbehind:!0}],keyword:/\b(?:enum|extend|extensions|import|message|oneof|option|optional|package|public|repeated|required|reserved|returns|rpc(?=\s+\w)|service|stream|syntax|to)\b(?!\s*=\s*\d)/,function:/\b[a-z_]\w*(?=\s*\()/i}),ce.languages.insertBefore("protobuf","operator",{map:{pattern:/\bmap<\s*[\w.]+\s*,\s*[\w.]+\s*>(?=\s+[a-z_]\w*\s*[=;])/i,alias:"class-name",inside:{punctuation:/[<>.,]/,builtin:Pe}},builtin:Pe,"positional-class-name":{pattern:/(?:\b|\B\.)[a-z_]\w*(?:\.[a-z_]\w*)*(?=\s+[a-z_]\w*\s*[=;])/i,alias:"class-name",inside:{punctuation:/\./}},annotation:{pattern:/(\[\s*)[a-z_]\w*(?=\s*=)/i,lookbehind:!0}})})(ue)}},83588:function(ze){"use strict";ze.exports=Ee,Ee.displayName="psl",Ee.aliases=[];function Ee(ue){ue.languages.psl={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/"(?:\\.|[^\\"])*"/,greedy:!0,inside:{symbol:/\\[ntrbA-Z"\\]/}},"heredoc-string":{pattern:/<<<([a-zA-Z_]\w*)[\r\n](?:.*[\r\n])*?\1\b/,alias:"string",greedy:!0},keyword:/\b(?:__multi|__single|case|default|do|else|elsif|exit|export|for|foreach|function|if|last|line|local|next|requires|return|switch|until|while|word)\b/,constant:/\b(?:ALARM|CHART_ADD_GRAPH|CHART_DELETE_GRAPH|CHART_DESTROY|CHART_LOAD|CHART_PRINT|EOF|OFFLINE|OK|PSL_PROF_LOG|R_CHECK_HORIZ|R_CHECK_VERT|R_CLICKER|R_COLUMN|R_FRAME|R_ICON|R_LABEL|R_LABEL_CENTER|R_LIST_MULTIPLE|R_LIST_MULTIPLE_ND|R_LIST_SINGLE|R_LIST_SINGLE_ND|R_MENU|R_POPUP|R_POPUP_SCROLLED|R_RADIO_HORIZ|R_RADIO_VERT|R_ROW|R_SCALE_HORIZ|R_SCALE_VERT|R_SEP_HORIZ|R_SEP_VERT|R_SPINNER|R_TEXT_FIELD|R_TEXT_FIELD_LABEL|R_TOGGLE|TRIM_LEADING|TRIM_LEADING_AND_TRAILING|TRIM_REDUNDANT|TRIM_TRAILING|VOID|WARN)\b/,boolean:/\b(?:FALSE|False|NO|No|TRUE|True|YES|Yes|false|no|true|yes)\b/,variable:/\b(?:PslDebug|errno|exit_status)\b/,builtin:{pattern:/\b(?:PslExecute|PslFunctionCall|PslFunctionExists|PslSetOptions|_snmp_debug|acos|add_diary|annotate|annotate_get|ascii_to_ebcdic|asctime|asin|atan|atexit|batch_set|blackout|cat|ceil|chan_exists|change_state|close|code_cvt|cond_signal|cond_wait|console_type|convert_base|convert_date|convert_locale_date|cos|cosh|create|date|dcget_text|destroy|destroy_lock|dget_text|difference|dump_hist|ebcdic_to_ascii|encrypt|event_archive|event_catalog_get|event_check|event_query|event_range_manage|event_range_query|event_report|event_schedule|event_trigger|event_trigger2|execute|exists|exp|fabs|file|floor|fmod|fopen|fseek|ftell|full_discovery|get|get_chan_info|get_ranges|get_text|get_vars|getenv|gethostinfo|getpid|getpname|grep|history|history_get_retention|in_transition|index|int|internal|intersection|is_var|isnumber|join|kill|length|lines|lock|lock_info|log|log10|loge|matchline|msg_check|msg_get_format|msg_get_severity|msg_printf|msg_sprintf|ntharg|nthargf|nthline|nthlinef|num_bytes|num_consoles|pconfig|popen|poplines|pow|print|printf|proc_exists|process|random|read|readln|refresh_parameters|remote_check|remote_close|remote_event_query|remote_event_trigger|remote_file_send|remote_open|remove|replace|rindex|sec_check_priv|sec_store_get|sec_store_set|set|set_alarm_ranges|set_locale|share|sin|sinh|sleep|snmp_agent_config|snmp_agent_start|snmp_agent_stop|snmp_close|snmp_config|snmp_get|snmp_get_next|snmp_h_get|snmp_h_get_next|snmp_h_set|snmp_open|snmp_set|snmp_trap_ignore|snmp_trap_listen|snmp_trap_raise_std_trap|snmp_trap_receive|snmp_trap_register_im|snmp_trap_send|snmp_walk|sopen|sort|splitline|sprintf|sqrt|srandom|str_repeat|strcasecmp|subset|substr|system|tail|tan|tanh|text_domain|time|tmpnam|tolower|toupper|trace_psl_process|trim|union|unique|unlock|unset|va_arg|va_start|write)\b/,alias:"builtin-function"},"foreach-variable":{pattern:/(\bforeach\s+(?:(?:\w+\b|"(?:\\.|[^\\"])*")\s+){0,2})[_a-zA-Z]\w*(?=\s*\()/,lookbehind:!0,greedy:!0},function:/\b[_a-z]\w*\b(?=\s*\()/i,number:/\b(?:0x[0-9a-f]+|\d+(?:\.\d+)?)\b/i,operator:/--|\+\+|&&=?|\|\|=?|<<=?|>>=?|[=!]~|[-+*/%&|^!=<>]=?|\.|[:?]/,punctuation:/[(){}\[\];,]/}}},94127:function(ze){"use strict";ze.exports=Ee,Ee.displayName="pug",Ee.aliases=[];function Ee(ue){(function(ce){ce.languages.pug={comment:{pattern:/(^([\t ]*))\/\/.*(?:(?:\r?\n|\r)\2[\t ].+)*/m,lookbehind:!0},"multiline-script":{pattern:/(^([\t ]*)script\b.*\.[\t ]*)(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0,inside:ce.languages.javascript},filter:{pattern:/(^([\t ]*)):.+(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"variable"},text:/\S[\s\S]*/}},"multiline-plain-text":{pattern:/(^([\t ]*)[\w\-#.]+\.[\t ]*)(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0},markup:{pattern:/(^[\t ]*)<.+/m,lookbehind:!0,inside:ce.languages.markup},doctype:{pattern:/((?:^|\n)[\t ]*)doctype(?: .+)?/,lookbehind:!0},"flow-control":{pattern:/(^[\t ]*)(?:case|default|each|else|if|unless|when|while)\b(?: .+)?/m,lookbehind:!0,inside:{each:{pattern:/^each .+? in\b/,inside:{keyword:/\b(?:each|in)\b/,punctuation:/,/}},branch:{pattern:/^(?:case|default|else|if|unless|when|while)\b/,alias:"keyword"},rest:ce.languages.javascript}},keyword:{pattern:/(^[\t ]*)(?:append|block|extends|include|prepend)\b.+/m,lookbehind:!0},mixin:[{pattern:/(^[\t ]*)mixin .+/m,lookbehind:!0,inside:{keyword:/^mixin/,function:/\w+(?=\s*\(|\s*$)/,punctuation:/[(),.]/}},{pattern:/(^[\t ]*)\+.+/m,lookbehind:!0,inside:{name:{pattern:/^\+\w+/,alias:"function"},rest:ce.languages.javascript}}],script:{pattern:/(^[\t ]*script(?:(?:&[^(]+)?\([^)]+\))*[\t ]).+/m,lookbehind:!0,inside:ce.languages.javascript},"plain-text":{pattern:/(^[\t ]*(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?[\t ]).+/m,lookbehind:!0},tag:{pattern:/(^[\t ]*)(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?:?/m,lookbehind:!0,inside:{attributes:[{pattern:/&[^(]+\([^)]+\)/,inside:ce.languages.javascript},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*(?!\s))(?:\{[^}]*\}|[^,)\r\n]+)/,lookbehind:!0,inside:ce.languages.javascript},"attr-name":/[\w-]+(?=\s*!?=|\s*[,)])/,punctuation:/[!=(),]+/}}],punctuation:/:/,"attr-id":/#[\w\-]+/,"attr-class":/\.[\w\-]+/}},code:[{pattern:/(^[\t ]*(?:-|!?=)).+/m,lookbehind:!0,inside:ce.languages.javascript}],punctuation:/[.\-!=|]+/};for(var Pe=/(^([\t ]*)):<filter_name>(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/.source,Re=[{filter:"atpl",language:"twig"},{filter:"coffee",language:"coffeescript"},"ejs","handlebars","less","livescript","markdown",{filter:"sass",language:"scss"},"stylus"],Me={},We=0,Te=Re.length;We<Te;We++){var Ge=Re[We];Ge=typeof Ge=="string"?{filter:Ge,language:Ge}:Ge,ce.languages[Ge.language]&&(Me["filter-"+Ge.filter]={pattern:RegExp(Pe.replace("<filter_name>",function(){return Ge.filter}),"m"),lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"variable"},text:{pattern:/\S[\s\S]*/,alias:[Ge.language,"language-"+Ge.language],inside:ce.languages[Ge.language]}}})}ce.languages.insertBefore("pug","filter",Me)})(ue)}},21294:function(ze){"use strict";ze.exports=Ee,Ee.displayName="puppet",Ee.aliases=[];function Ee(ue){(function(ce){ce.languages.puppet={heredoc:[{pattern:/(@\("([^"\r\n\/):]+)"(?:\/[nrts$uL]*)?\).*(?:\r?\n|\r))(?:.*(?:\r?\n|\r(?!\n)))*?[ \t]*(?:\|[ \t]*)?(?:-[ \t]*)?\2/,lookbehind:!0,alias:"string",inside:{punctuation:/(?=\S).*\S(?= *$)/}},{pattern:/(@\(([^"\r\n\/):]+)(?:\/[nrts$uL]*)?\).*(?:\r?\n|\r))(?:.*(?:\r?\n|\r(?!\n)))*?[ \t]*(?:\|[ \t]*)?(?:-[ \t]*)?\2/,lookbehind:!0,greedy:!0,alias:"string",inside:{punctuation:/(?=\S).*\S(?= *$)/}},{pattern:/@\("?(?:[^"\r\n\/):]+)"?(?:\/[nrts$uL]*)?\)/,alias:"string",inside:{punctuation:{pattern:/(\().+?(?=\))/,lookbehind:!0}}}],"multiline-comment":{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0,greedy:!0,alias:"comment"},regex:{pattern:/((?:\bnode\s+|[~=\(\[\{,]\s*|[=+]>\s*|^\s*))\/(?:[^\/\\]|\\[\s\S])+\/(?:[imx]+\b|\B)/,lookbehind:!0,greedy:!0,inside:{"extended-regex":{pattern:/^\/(?:[^\/\\]|\\[\s\S])+\/[im]*x[im]*$/,inside:{comment:/#.*/}}}},comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},string:{pattern:/(["'])(?:\$\{(?:[^'"}]|(["'])(?:(?!\2)[^\\]|\\[\s\S])*\2)+\}|\$(?!\{)|(?!\1)[^\\$]|\\[\s\S])*\1/,greedy:!0,inside:{"double-quoted":{pattern:/^"[\s\S]*"$/,inside:{}}}},variable:{pattern:/\$(?:::)?\w+(?:::\w+)*/,inside:{punctuation:/::/}},"attr-name":/(?:\b\w+|\*)(?=\s*=>)/,function:[{pattern:/(\.)(?!\d)\w+/,lookbehind:!0},/\b(?:contain|debug|err|fail|include|info|notice|realize|require|tag|warning)\b|\b(?!\d)\w+(?=\()/],number:/\b(?:0x[a-f\d]+|\d+(?:\.\d+)?(?:e-?\d+)?)\b/i,boolean:/\b(?:false|true)\b/,keyword:/\b(?:application|attr|case|class|consumes|default|define|else|elsif|function|if|import|inherits|node|private|produces|type|undef|unless)\b/,datatype:{pattern:/\b(?:Any|Array|Boolean|Callable|Catalogentry|Class|Collection|Data|Default|Enum|Float|Hash|Integer|NotUndef|Numeric|Optional|Pattern|Regexp|Resource|Runtime|Scalar|String|Struct|Tuple|Type|Undef|Variant)\b/,alias:"symbol"},operator:/=[=~>]?|![=~]?|<(?:<\|?|[=~|-])?|>[>=]?|->?|~>|\|>?>?|[*\/%+?]|\b(?:and|in|or)\b/,punctuation:/[\[\]{}().,;]|:+/};var Pe=[{pattern:/(^|[^\\])\$\{(?:[^'"{}]|\{[^}]*\}|(["'])(?:(?!\2)[^\\]|\\[\s\S])*\2)+\}/,lookbehind:!0,inside:{"short-variable":{pattern:/(^\$\{)(?!\w+\()(?:::)?\w+(?:::\w+)*/,lookbehind:!0,alias:"variable",inside:{punctuation:/::/}},delimiter:{pattern:/^\$/,alias:"variable"},rest:ce.languages.puppet}},{pattern:/(^|[^\\])\$(?:::)?\w+(?:::\w+)*/,lookbehind:!0,alias:"variable",inside:{punctuation:/::/}}];ce.languages.puppet.heredoc[0].inside.interpolation=Pe,ce.languages.puppet.string.inside["double-quoted"].inside.interpolation=Pe})(ue)}},38709:function(ze){"use strict";ze.exports=Ee,Ee.displayName="pure",Ee.aliases=[];function Ee(ue){(function(ce){ce.languages.pure={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0},/#!.+/],"inline-lang":{pattern:/%<[\s\S]+?%>/,greedy:!0,inside:{lang:{pattern:/(^%< *)-\*-.+?-\*-/,lookbehind:!0,alias:"comment"},delimiter:{pattern:/^%<.*|%>$/,alias:"punctuation"}}},string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},number:{pattern:/((?:\.\.)?)(?:\b(?:inf|nan)\b|\b0x[\da-f]+|(?:\b(?:0b)?\d+(?:\.\d+)?|\B\.\d+)(?:e[+-]?\d+)?L?)/i,lookbehind:!0},keyword:/\b(?:NULL|ans|break|bt|case|catch|cd|clear|const|def|del|dump|else|end|exit|extern|false|force|help|if|infix[lr]?|interface|let|ls|mem|namespace|nonfix|of|otherwise|outfix|override|postfix|prefix|private|public|pwd|quit|run|save|show|stats|then|throw|trace|true|type|underride|using|when|with)\b/,function:/\b(?:abs|add_(?:addr|constdef|(?:fundef|interface|macdef|typedef)(?:_at)?|vardef)|all|any|applp?|arity|bigintp?|blob(?:_crc|_size|p)?|boolp?|byte_c?string(?:_pointer)?|byte_(?:matrix|pointer)|calloc|cat|catmap|ceil|char[ps]?|check_ptrtag|chr|clear_sentry|clearsym|closurep?|cmatrixp?|cols?|colcat(?:map)?|colmap|colrev|colvector(?:p|seq)?|complex(?:_float_(?:matrix|pointer)|_matrix(?:_view)?|_pointer|p)?|conj|cookedp?|cst|cstring(?:_(?:dup|list|vector))?|curry3?|cyclen?|del_(?:constdef|fundef|interface|macdef|typedef|vardef)|delete|diag(?:mat)?|dim|dmatrixp?|do|double(?:_matrix(?:_view)?|_pointer|p)?|dowith3?|drop|dropwhile|eval(?:cmd)?|exactp|filter|fix|fixity|flip|float(?:_matrix|_pointer)|floor|fold[lr]1?|frac|free|funp?|functionp?|gcd|get(?:_(?:byte|constdef|double|float|fundef|int(?:64)?|interface(?:_typedef)?|long|macdef|pointer|ptrtag|sentry|short|string|typedef|vardef))?|globsym|hash|head|id|im|imatrixp?|index|inexactp|infp|init|insert|int(?:_matrix(?:_view)?|_pointer|p)?|int64_(?:matrix|pointer)|integerp?|iteraten?|iterwhile|join|keys?|lambdap?|last(?:err(?:pos)?)?|lcd|list[2p]?|listmap|make_ptrtag|malloc|map|matcat|matrixp?|max|member|min|nanp|nargs|nmatrixp?|null|numberp?|ord|pack(?:ed)?|pointer(?:_cast|_tag|_type|p)?|pow|pred|ptrtag|put(?:_(?:byte|double|float|int(?:64)?|long|pointer|short|string))?|rationalp?|re|realp?|realloc|recordp?|redim|reduce(?:_with)?|refp?|repeatn?|reverse|rlistp?|round|rows?|rowcat(?:map)?|rowmap|rowrev|rowvector(?:p|seq)?|same|scan[lr]1?|sentry|sgn|short_(?:matrix|pointer)|slice|smatrixp?|sort|split|str|strcat|stream|stride|string(?:_(?:dup|list|vector)|p)?|subdiag(?:mat)?|submat|subseq2?|substr|succ|supdiag(?:mat)?|symbolp?|tail|take|takewhile|thunkp?|transpose|trunc|tuplep?|typep|ubyte|uint(?:64)?|ulong|uncurry3?|unref|unzip3?|update|ushort|vals?|varp?|vector(?:p|seq)?|void|zip3?|zipwith3?)\b/,special:{pattern:/\b__[a-z]+__\b/i,alias:"builtin"},operator:/(?:[!"#$%&'*+,\-.\/:<=>?@\\^`|~\u00a1-\u00bf\u00d7-\u00f7\u20d0-\u2bff]|\b_+\b)+|\b(?:and|div|mod|not|or)\b/,punctuation:/[(){}\[\];,|]/};var Pe=["c",{lang:"c++",alias:"cpp"},"fortran"],Re=/%< *-\*- *<lang>\d* *-\*-[\s\S]+?%>/.source;Pe.forEach(function(Me){var We=Me;if(typeof Me!="string"&&(We=Me.alias,Me=Me.lang),ce.languages[We]){var Te={};Te["inline-lang-"+We]={pattern:RegExp(Re.replace("<lang>",Me.replace(/([.+*?\/\\(){}\[\]])/g,"\\$1")),"i"),inside:ce.util.clone(ce.languages.pure["inline-lang"].inside)},Te["inline-lang-"+We].inside.rest=ce.util.clone(ce.languages[We]),ce.languages.insertBefore("pure","inline-lang",Te)}}),ce.languages.c&&(ce.languages.pure["inline-lang"].inside.rest=ce.util.clone(ce.languages.c))})(ue)}},15008:function(ze){"use strict";ze.exports=Ee,Ee.displayName="purebasic",Ee.aliases=[];function Ee(ue){ue.languages.purebasic=ue.languages.extend("clike",{comment:/;.*/,keyword:/\b(?:align|and|as|break|calldebugger|case|compilercase|compilerdefault|compilerelse|compilerelseif|compilerendif|compilerendselect|compilererror|compilerif|compilerselect|continue|data|datasection|debug|debuglevel|declare|declarec|declarecdll|declaredll|declaremodule|default|define|dim|disableasm|disabledebugger|disableexplicit|else|elseif|enableasm|enabledebugger|enableexplicit|end|enddatasection|enddeclaremodule|endenumeration|endif|endimport|endinterface|endmacro|endmodule|endprocedure|endselect|endstructure|endstructureunion|endwith|enumeration|extends|fakereturn|for|foreach|forever|global|gosub|goto|if|import|importc|includebinary|includefile|includepath|interface|macro|module|newlist|newmap|next|not|or|procedure|procedurec|procedurecdll|proceduredll|procedurereturn|protected|prototype|prototypec|read|redim|repeat|restore|return|runtime|select|shared|static|step|structure|structureunion|swap|threaded|to|until|wend|while|with|xincludefile|xor)\b/i,function:/\b\w+(?:\.\w+)?\s*(?=\()/,number:/(?:\$[\da-f]+|\b-?(?:\d+(?:\.\d+)?|\.\d+)(?:e[+-]?\d+)?)\b/i,operator:/(?:@\*?|\?|\*)\w+|-[>-]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|?\||[~^%?*/@]/}),ue.languages.insertBefore("purebasic","keyword",{tag:/#\w+\$?/,asm:{pattern:/(^[\t ]*)!.*/m,lookbehind:!0,alias:"tag",inside:{comment:/;.*/,string:{pattern:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},"label-reference-anonymous":{pattern:/(!\s*j[a-z]+\s+)@[fb]/i,lookbehind:!0,alias:"fasm-label"},"label-reference-addressed":{pattern:/(!\s*j[a-z]+\s+)[A-Z._?$@][\w.?$@~#]*/i,lookbehind:!0,alias:"fasm-label"},keyword:[/\b(?:extern|global)\b[^;\r\n]*/i,/\b(?:CPU|DEFAULT|FLOAT)\b.*/],function:{pattern:/^([\t ]*!\s*)[\da-z]+(?=\s|$)/im,lookbehind:!0},"function-inline":{pattern:/(:\s*)[\da-z]+(?=\s)/i,lookbehind:!0,alias:"function"},label:{pattern:/^([\t ]*!\s*)[A-Za-z._?$@][\w.?$@~#]*(?=:)/m,lookbehind:!0,alias:"fasm-label"},register:/\b(?:st\d|[xyz]mm\d\d?|[cdt]r\d|r\d\d?[bwd]?|[er]?[abcd]x|[abcd][hl]|[er]?(?:bp|di|si|sp)|[cdefgs]s|mm\d+)\b/i,number:/(?:\b|-|(?=\$))(?:0[hx](?:[\da-f]*\.)?[\da-f]+(?:p[+-]?\d+)?|\d[\da-f]+[hx]|\$\d[\da-f]*|0[oq][0-7]+|[0-7]+[oq]|0[by][01]+|[01]+[by]|0[dt]\d+|(?:\d+(?:\.\d+)?|\.\d+)(?:\.?e[+-]?\d+)?[dt]?)\b/i,operator:/[\[\]*+\-/%<>=&|$!,.:]/}}}),delete ue.languages.purebasic["class-name"],delete ue.languages.purebasic.boolean,ue.languages.pbfasm=ue.languages.purebasic}},96549:function(ze,Ee,ue){"use strict";var ce=ue(2050);ze.exports=Pe,Pe.displayName="purescript",Pe.aliases=["purs"];function Pe(Re){Re.register(ce),Re.languages.purescript=Re.languages.extend("haskell",{keyword:/\b(?:ado|case|class|data|derive|do|else|forall|if|in|infixl|infixr|instance|let|module|newtype|of|primitive|then|type|where)\b|∀/,"import-statement":{pattern:/(^[\t ]*)import\s+[A-Z][\w']*(?:\.[A-Z][\w']*)*(?:\s+as\s+[A-Z][\w']*(?:\.[A-Z][\w']*)*)?(?:\s+hiding\b)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|hiding|import)\b/,punctuation:/\./}},builtin:/\b(?:absurd|add|ap|append|apply|between|bind|bottom|clamp|compare|comparing|compose|conj|const|degree|discard|disj|div|eq|flap|flip|gcd|identity|ifM|join|lcm|liftA1|liftM1|map|max|mempty|min|mod|mul|negate|not|notEq|one|otherwise|recip|show|sub|top|unit|unless|unlessM|void|when|whenM|zero)\b/,operator:[Re.languages.haskell.operator[0],Re.languages.haskell.operator[2],/[\xa2-\xa6\xa8\xa9\xac\xae-\xb1\xb4\xb8\xd7\xf7\u02c2-\u02c5\u02d2-\u02df\u02e5-\u02eb\u02ed\u02ef-\u02ff\u0375\u0384\u0385\u03f6\u0482\u058d-\u058f\u0606-\u0608\u060b\u060e\u060f\u06de\u06e9\u06fd\u06fe\u07f6\u07fe\u07ff\u09f2\u09f3\u09fa\u09fb\u0af1\u0b70\u0bf3-\u0bfa\u0c7f\u0d4f\u0d79\u0e3f\u0f01-\u0f03\u0f13\u0f15-\u0f17\u0f1a-\u0f1f\u0f34\u0f36\u0f38\u0fbe-\u0fc5\u0fc7-\u0fcc\u0fce\u0fcf\u0fd5-\u0fd8\u109e\u109f\u1390-\u1399\u166d\u17db\u1940\u19de-\u19ff\u1b61-\u1b6a\u1b74-\u1b7c\u1fbd\u1fbf-\u1fc1\u1fcd-\u1fcf\u1fdd-\u1fdf\u1fed-\u1fef\u1ffd\u1ffe\u2044\u2052\u207a-\u207c\u208a-\u208c\u20a0-\u20bf\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211e-\u2123\u2125\u2127\u2129\u212e\u213a\u213b\u2140-\u2144\u214a-\u214d\u214f\u218a\u218b\u2190-\u2307\u230c-\u2328\u232b-\u2426\u2440-\u244a\u249c-\u24e9\u2500-\u2767\u2794-\u27c4\u27c7-\u27e5\u27f0-\u2982\u2999-\u29d7\u29dc-\u29fb\u29fe-\u2b73\u2b76-\u2b95\u2b97-\u2bff\u2ce5-\u2cea\u2e50\u2e51\u2e80-\u2e99\u2e9b-\u2ef3\u2f00-\u2fd5\u2ff0-\u2ffb\u3004\u3012\u3013\u3020\u3036\u3037\u303e\u303f\u309b\u309c\u3190\u3191\u3196-\u319f\u31c0-\u31e3\u3200-\u321e\u322a-\u3247\u3250\u3260-\u327f\u328a-\u32b0\u32c0-\u33ff\u4dc0-\u4dff\ua490-\ua4c6\ua700-\ua716\ua720\ua721\ua789\ua78a\ua828-\ua82b\ua836-\ua839\uaa77-\uaa79\uab5b\uab6a\uab6b\ufb29\ufbb2-\ufbc1\ufdfc\ufdfd\ufe62\ufe64-\ufe66\ufe69\uff04\uff0b\uff1c-\uff1e\uff3e\uff40\uff5c\uff5e\uffe0-\uffe6\uffe8-\uffee\ufffc\ufffd]/]}),Re.languages.purs=Re.languages.purescript}},5221:function(ze){"use strict";ze.exports=Ee,Ee.displayName="python",Ee.aliases=["py"];function Ee(ue){ue.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern://,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},ue.languages.python["string-interpolation"].inside.interpolation.inside.rest=ue.languages.python,ue.languages.py=ue.languages.python}},27447:function(ze){"use strict";ze.exports=Ee,Ee.displayName="q",Ee.aliases=[];function Ee(ue){ue.languages.q={string:/"(?:\\.|[^"\\\r\n])*"/,comment:[{pattern:/([\t )\]}])\/.*/,lookbehind:!0,greedy:!0},{pattern:/(^|\r?\n|\r)\/[\t ]*(?:(?:\r?\n|\r)(?:.*(?:\r?\n|\r(?!\n)))*?(?:\\(?=[\t ]*(?:\r?\n|\r))|$)|\S.*)/,lookbehind:!0,greedy:!0},{pattern:/^\\[\t ]*(?:\r?\n|\r)[\s\S]+/m,greedy:!0},{pattern:/^#!.+/m,greedy:!0}],symbol:/`(?::\S+|[\w.]*)/,datetime:{pattern:/0N[mdzuvt]|0W[dtz]|\d{4}\.\d\d(?:m|\.\d\d(?:T(?:\d\d(?::\d\d(?::\d\d(?:[.:]\d\d\d)?)?)?)?)?[dz]?)|\d\d:\d\d(?::\d\d(?:[.:]\d\d\d)?)?[uvt]?/,alias:"number"},number:/\b(?![01]:)(?:0N[hje]?|0W[hj]?|0[wn]|0x[\da-fA-F]+|\d+(?:\.\d*)?(?:e[+-]?\d+)?[hjfeb]?)/,keyword:/\\\w+\b|\b(?:abs|acos|aj0?|all|and|any|asc|asin|asof|atan|attr|avgs?|binr?|by|ceiling|cols|cor|cos|count|cov|cross|csv|cut|delete|deltas|desc|dev|differ|distinct|div|do|dsave|ej|enlist|eval|except|exec|exit|exp|fby|fills|first|fkeys|flip|floor|from|get|getenv|group|gtime|hclose|hcount|hdel|hopen|hsym|iasc|identity|idesc|if|ij|in|insert|inter|inv|keys?|last|like|list|ljf?|load|log|lower|lsq|ltime|ltrim|mavg|maxs?|mcount|md5|mdev|med|meta|mins?|mmax|mmin|mmu|mod|msum|neg|next|not|null|or|over|parse|peach|pj|plist|prds?|prev|prior|rand|rank|ratios|raze|read0|read1|reciprocal|reval|reverse|rload|rotate|rsave|rtrim|save|scan|scov|sdev|select|set|setenv|show|signum|sin|sqrt|ssr?|string|sublist|sums?|sv|svar|system|tables|tan|til|trim|txf|type|uj|ungroup|union|update|upper|upsert|value|var|views?|vs|wavg|where|while|within|wj1?|wsum|ww|xasc|xbar|xcols?|xdesc|xexp|xgroup|xkey|xlog|xprev|xrank)\b/,adverb:{pattern:/['\/\\]:?|\beach\b/,alias:"function"},verb:{pattern:/(?:\B\.\B|\b[01]:|<[=>]?|>=?|[:+\-*%,!?~=|$&#@^]):?|\b_\b:?/,alias:"operator"},punctuation:/[(){}\[\];.]/}}},73191:function(ze){"use strict";ze.exports=Ee,Ee.displayName="qml",Ee.aliases=[];function Ee(ue){(function(ce){for(var Pe=/"(?:\\.|[^\\"\r\n])*"|'(?:\\.|[^\\'\r\n])*'/.source,Re=/\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))*\*\//.source,Me=/(?:[^\\()[\]{}"'/]|<string>|\/(?![*/])|<comment>|\(<expr>*\)|\[<expr>*\]|\{<expr>*\}|\\[\s\S])/.source.replace(/<string>/g,function(){return Pe}).replace(/<comment>/g,function(){return Re}),We=0;We<2;We++)Me=Me.replace(/<expr>/g,function(){return Me});Me=Me.replace(/<expr>/g,"[^\\s\\S]"),ce.languages.qml={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},"javascript-function":{pattern:RegExp(/((?:^|;)[ \t]*)function\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*\(<js>*\)\s*\{<js>*\}/.source.replace(/<js>/g,function(){return Me}),"m"),lookbehind:!0,greedy:!0,alias:"language-javascript",inside:ce.languages.javascript},"class-name":{pattern:/((?:^|[:;])[ \t]*)(?!\d)\w+(?=[ \t]*\{|[ \t]+on\b)/m,lookbehind:!0},property:[{pattern:/((?:^|[;{])[ \t]*)(?!\d)\w+(?:\.\w+)*(?=[ \t]*:)/m,lookbehind:!0},{pattern:/((?:^|[;{])[ \t]*)property[ \t]+(?!\d)\w+(?:\.\w+)*[ \t]+(?!\d)\w+(?:\.\w+)*(?=[ \t]*:)/m,lookbehind:!0,inside:{keyword:/^property/,property:/\w+(?:\.\w+)*/}}],"javascript-expression":{pattern:RegExp(/(:[ \t]*)(?![\s;}[])(?:(?!$|[;}])<js>)+/.source.replace(/<js>/g,function(){return Me}),"m"),lookbehind:!0,greedy:!0,alias:"language-javascript",inside:ce.languages.javascript},string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},keyword:/\b(?:as|import|on)\b/,punctuation:/[{}[\]:;,]/}})(ue)}},75542:function(ze){"use strict";ze.exports=Ee,Ee.displayName="qore",Ee.aliases=[];function Ee(ue){ue.languages.qore=ue.languages.extend("clike",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:\/\/|#).*)/,lookbehind:!0},string:{pattern:/("|')(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},keyword:/\b(?:abstract|any|assert|binary|bool|boolean|break|byte|case|catch|char|class|code|const|continue|data|default|do|double|else|enum|extends|final|finally|float|for|goto|hash|if|implements|import|inherits|instanceof|int|interface|long|my|native|new|nothing|null|object|our|own|private|reference|rethrow|return|short|soft(?:bool|date|float|int|list|number|string)|static|strictfp|string|sub|super|switch|synchronized|this|throw|throws|transient|try|void|volatile|while)\b/,boolean:/\b(?:false|true)\b/i,function:/\$?\b(?!\d)\w+(?=\()/,number:/\b(?:0b[01]+|0x(?:[\da-f]*\.)?[\da-fp\-]+|(?:\d+(?:\.\d+)?|\.\d+)(?:e\d+)?[df]|(?:\d+(?:\.\d+)?|\.\d+))\b/i,operator:{pattern:/(^|[^.])(?:\+[+=]?|-[-=]?|[!=](?:==?|~)?|>>?=?|<(?:=>?|<=?)?|&[&=]?|\|[|=]?|[*\/%^]=?|[~?])/,lookbehind:!0},variable:/\$(?!\d)\w+\b/})}},50323:function(ze){"use strict";ze.exports=Ee,Ee.displayName="qsharp",Ee.aliases=["qs"];function Ee(ue){(function(ce){function Pe(Nt,Fe){return Nt.replace(/<<(\d+)>>/g,function(ne,te){return"(?:"+Fe[+te]+")"})}function Re(Nt,Fe,ne){return RegExp(Pe(Nt,Fe),ne||"")}function Me(Nt,Fe){for(var ne=0;ne<Fe;ne++)Nt=Nt.replace(/<<self>>/g,function(){return"(?:"+Nt+")"});return Nt.replace(/<<self>>/g,"[^\\s\\S]")}var We={type:"Adj BigInt Bool Ctl Double false Int One Pauli PauliI PauliX PauliY PauliZ Qubit Range Result String true Unit Zero",other:"Adjoint adjoint apply as auto body borrow borrowing Controlled controlled distribute elif else fail fixup for function if in internal intrinsic invert is let mutable namespace new newtype open operation repeat return self set until use using while within"};function Te(Nt){return"\\b(?:"+Nt.trim().replace(/ /g,"|")+")\\b"}var Ge=RegExp(Te(We.type+" "+We.other)),st=/\b[A-Za-z_]\w*\b/.source,Qe=Pe(/<<0>>(?:\s*\.\s*<<0>>)*/.source,[st]),Ye={keyword:Ge,punctuation:/[<>()?,.:[\]]/},yt=/"(?:\\.|[^\\"])*"/.source;ce.languages.qsharp=ce.languages.extend("clike",{comment:/\/\/.*/,string:[{pattern:Re(/(^|[^$\\])<<0>>/.source,[yt]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:Re(/(\b(?:as|open)\s+)<<0>>(?=\s*(?:;|as\b))/.source,[Qe]),lookbehind:!0,inside:Ye},{pattern:Re(/(\bnamespace\s+)<<0>>(?=\s*\{)/.source,[Qe]),lookbehind:!0,inside:Ye}],keyword:Ge,number:/(?:\b0(?:x[\da-f]+|b[01]+|o[0-7]+)|(?:\B\.\d+|\b\d+(?:\.\d*)?)(?:e[-+]?\d+)?)l?\b/i,operator:/\band=|\bor=|\band\b|\bnot\b|\bor\b|<[-=]|[-=]>|>>>=?|<<<=?|\^\^\^=?|\|\|\|=?|&&&=?|w\/=?|~~~|[*\/+\-^=!%]=?/,punctuation:/::|[{}[\];(),.:]/}),ce.languages.insertBefore("qsharp","number",{range:{pattern:/\.\./,alias:"operator"}});var ot=Me(Pe(/\{(?:[^"{}]|<<0>>|<<self>>)*\}/.source,[yt]),2);ce.languages.insertBefore("qsharp","string",{"interpolation-string":{pattern:Re(/\$"(?:\\.|<<0>>|[^\\"{])*"/.source,[ot]),greedy:!0,inside:{interpolation:{pattern:Re(/((?:^|[^\\])(?:\\\\)*)<<0>>/.source,[ot]),lookbehind:!0,inside:{punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-qsharp",inside:ce.languages.qsharp}}},string:/[\s\S]+/}}})})(ue),ue.languages.qs=ue.languages.qsharp}},44298:function(ze){"use strict";ze.exports=Ee,Ee.displayName="r",Ee.aliases=[];function Ee(ue){ue.languages.r={comment:/#.*/,string:{pattern:/(['"])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},"percent-operator":{pattern:/%[^%\s]*%/,alias:"operator"},boolean:/\b(?:FALSE|TRUE)\b/,ellipsis:/\.\.(?:\.|\d+)/,number:[/\b(?:Inf|NaN)\b/,/(?:\b0x[\dA-Fa-f]+(?:\.\d*)?|\b\d+(?:\.\d*)?|\B\.\d+)(?:[EePp][+-]?\d+)?[iL]?/],keyword:/\b(?:NA|NA_character_|NA_complex_|NA_integer_|NA_real_|NULL|break|else|for|function|if|in|next|repeat|while)\b/,operator:/->?>?|<(?:=|<?-)?|[>=!]=?|::?|&&?|\|\|?|[+*\/^$@~]/,punctuation:/[(){}\[\],;]/}}},9634:function(ze,Ee,ue){"use strict";var ce=ue(48780);ze.exports=Pe,Pe.displayName="racket",Pe.aliases=["rkt"];function Pe(Re){Re.register(ce),Re.languages.racket=Re.languages.extend("scheme",{"lambda-parameter":{pattern:/([(\[]lambda\s+[(\[])[^()\[\]'\s]+/,lookbehind:!0}}),Re.languages.insertBefore("racket","string",{lang:{pattern:/^#lang.+/m,greedy:!0,alias:"keyword"}}),Re.languages.rkt=Re.languages.racket}},75266:function(ze){"use strict";ze.exports=Ee,Ee.displayName="reason",Ee.aliases=[];function Ee(ue){ue.languages.reason=ue.languages.extend("clike",{string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},"class-name":/\b[A-Z]\w*/,keyword:/\b(?:and|as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|sig|struct|switch|then|to|try|type|val|virtual|when|while|with)\b/,operator:/\.{3}|:[:=]|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:asr|land|lor|lsl|lsr|lxor|mod)\b/}),ue.languages.insertBefore("reason","class-name",{char:{pattern:/'(?:\\x[\da-f]{2}|\\o[0-3][0-7][0-7]|\\\d{3}|\\.|[^'\\\r\n])'/,greedy:!0},constructor:/\b[A-Z]\w*\b(?!\s*\.)/,label:{pattern:/\b[a-z]\w*(?=::)/,alias:"symbol"}}),delete ue.languages.reason.function}},48139:function(ze){"use strict";ze.exports=Ee,Ee.displayName="regex",Ee.aliases=[];function Ee(ue){(function(ce){var Pe={pattern:/\\[\\(){}[\]^$+*?|.]/,alias:"escape"},Re=/\\(?:x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]+\}|0[0-7]{0,2}|[123][0-7]{2}|c[a-zA-Z]|.)/,Me={pattern:/\.|\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},We={pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},Te="(?:[^\\\\-]|"+Re.source+")",Ge=RegExp(Te+"-"+Te),st={pattern:/(<|')[^<>']+(?=[>']$)/,lookbehind:!0,alias:"variable"};ce.languages.regex={"char-class":{pattern:/((?:^|[^\\])(?:\\\\)*)\[(?:[^\\\]]|\\[\s\S])*\]/,lookbehind:!0,inside:{"char-class-negation":{pattern:/(^\[)\^/,lookbehind:!0,alias:"operator"},"char-class-punctuation":{pattern:/^\[|\]$/,alias:"punctuation"},range:{pattern:Ge,inside:{escape:Re,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":Pe,"char-set":We,escape:Re}},"special-escape":Pe,"char-set":Me,backreference:[{pattern:/\\(?![123][0-7]{2})[1-9]/,alias:"keyword"},{pattern:/\\k<[^<>']+>/,alias:"keyword",inside:{"group-name":st}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:"function"},escape:Re,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]|<?[=!]|[idmnsuxU]+(?:-[idmnsuxU]+)?:?))?/,alias:"punctuation",inside:{"group-name":st}},{pattern:/\)/,alias:"punctuation"}],quantifier:{pattern:/(?:[+*?]|\{\d+(?:,\d*)?\})[?+]?/,alias:"number"},alternation:{pattern:/\|/,alias:"keyword"}}})(ue)}},97534:function(ze){"use strict";ze.exports=Ee,Ee.displayName="rego",Ee.aliases=[];function Ee(ue){ue.languages.rego={comment:/#.*/,property:{pattern:/(^|[^\\.])(?:"(?:\\.|[^\\"\r\n])*"|`[^`]*`|\b[a-z_]\w*\b)(?=\s*:(?!=))/i,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:as|default|else|import|not|null|package|set(?=\s*\()|some|with)\b/,boolean:/\b(?:false|true)\b/,function:{pattern:/\b[a-z_]\w*\b(?:\s*\.\s*\b[a-z_]\w*\b)*(?=\s*\()/i,inside:{namespace:/\b\w+\b(?=\s*\.)/,punctuation:/\./}},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,operator:/[-+*/%|&]|[<>:=]=?|!=|\b_\b/,punctuation:/[,;.\[\]{}()]/}}},90826:function(ze){"use strict";ze.exports=Ee,Ee.displayName="renpy",Ee.aliases=["rpy"];function Ee(ue){ue.languages.renpy={comment:{pattern:/(^|[^\\])#.+/,lookbehind:!0},string:{pattern:/("""|''')[\s\S]+?\1|("|')(?:\\.|(?!\2)[^\\])*\2|(?:^#?(?:(?:[0-9a-fA-F]){3}|[0-9a-fA-F]{6})$)/m,greedy:!0},function:/\b[a-z_]\w*(?=\()/i,property:/\b(?:Update|UpdateVersion|action|activate_sound|adv_nvl_transition|after_load_transition|align|alpha|alt|anchor|antialias|area|auto|background|bar_invert|bar_resizing|bar_vertical|black_color|bold|bottom_bar|bottom_gutter|bottom_margin|bottom_padding|box_reverse|box_wrap|can_update|caret|child|color|crop|default_afm_enable|default_afm_time|default_fullscreen|default_text_cps|developer|directory_name|drag_handle|drag_joined|drag_name|drag_raise|draggable|dragged|drop_shadow|drop_shadow_color|droppable|dropped|easein|easeout|edgescroll|end_game_transition|end_splash_transition|enter_replay_transition|enter_sound|enter_transition|enter_yesno_transition|executable_name|exit_replay_transition|exit_sound|exit_transition|exit_yesno_transition|fadein|fadeout|first_indent|first_spacing|fit_first|focus|focus_mask|font|foreground|game_main_transition|get_installed_packages|google_play_key|google_play_salt|ground|has_music|has_sound|has_voice|height|help|hinting|hover|hover_background|hover_color|hover_sound|hovered|hyperlink_functions|idle|idle_color|image_style|include_update|insensitive|insensitive_background|insensitive_color|inside|intra_transition|italic|justify|kerning|keyboard_focus|language|layer_clipping|layers|layout|left_bar|left_gutter|left_margin|left_padding|length|line_leading|line_overlap_split|line_spacing|linear|main_game_transition|main_menu_music|maximum|min_width|minimum|minwidth|modal|mouse|mousewheel|name|narrator_menu|newline_indent|nvl_adv_transition|offset|order_reverse|outlines|overlay_functions|pos|position|prefix|radius|range|rest_indent|right_bar|right_gutter|right_margin|right_padding|rotate|rotate_pad|ruby_style|sample_sound|save_directory|say_attribute_transition|screen_height|screen_width|scrollbars|selected_hover|selected_hover_color|selected_idle|selected_idle_color|selected_insensitive|show_side_image|show_two_window|side_spacing|side_xpos|side_ypos|size|size_group|slow_cps|slow_cps_multiplier|spacing|strikethrough|subpixel|text_align|text_style|text_xpos|text_y_fudge|text_ypos|thumb|thumb_offset|thumb_shadow|thumbnail_height|thumbnail_width|time|top_bar|top_gutter|top_margin|top_padding|translations|underline|unscrollable|update|value|version|version_name|version_tuple|vertical|width|window_hide_transition|window_icon|window_left_padding|window_show_transition|window_title|windows_icon|xadjustment|xalign|xanchor|xanchoraround|xaround|xcenter|xfill|xinitial|xmargin|xmaximum|xminimum|xoffset|xofsset|xpadding|xpos|xsize|xzoom|yadjustment|yalign|yanchor|yanchoraround|yaround|ycenter|yfill|yinitial|ymargin|ymaximum|yminimum|yoffset|ypadding|ypos|ysize|ysizexysize|yzoom|zoom|zorder)\b/,tag:/\b(?:bar|block|button|buttoscreenn|drag|draggroup|fixed|frame|grid|[hv]box|hotbar|hotspot|image|imagebutton|imagemap|input|key|label|menu|mm_menu_frame|mousearea|nvl|parallel|screen|self|side|tag|text|textbutton|timer|vbar|viewport|window)\b|\$/,keyword:/\b(?:None|add|adjustment|alignaround|allow|angle|animation|around|as|assert|behind|box_layout|break|build|cache|call|center|changed|child_size|choice|circles|class|clear|clicked|clipping|clockwise|config|contains|continue|corner1|corner2|counterclockwise|def|default|define|del|delay|disabled|disabled_text|dissolve|elif|else|event|except|exclude|exec|expression|fade|finally|for|from|function|global|gm_root|has|hide|id|if|import|in|init|is|jump|knot|lambda|left|less_rounded|mm_root|movie|music|null|on|onlayer|pass|pause|persistent|play|print|python|queue|raise|random|renpy|repeat|return|right|rounded_window|scene|scope|set|show|slow|slow_abortable|slow_done|sound|stop|store|style|style_group|substitute|suffix|theme|transform|transform_anchor|transpose|try|ui|unhovered|updater|use|voice|while|widget|widget_hover|widget_selected|widget_text|yield)\b/,boolean:/\b(?:[Ff]alse|[Tt]rue)\b/,number:/(?:\b(?:0[bo])?(?:(?:\d|0x[\da-f])[\da-f]*(?:\.\d*)?)|\B\.\d+)(?:e[+-]?\d+)?j?/i,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]|\b(?:and|at|not|or|with)\b/,punctuation:/[{}[\];(),.:]/},ue.languages.rpy=ue.languages.renpy}},63919:function(ze){"use strict";ze.exports=Ee,Ee.displayName="rest",Ee.aliases=[];function Ee(ue){ue.languages.rest={table:[{pattern:/(^[\t ]*)(?:\+[=-]+)+\+(?:\r?\n|\r)(?:\1[+|].+[+|](?:\r?\n|\r))+\1(?:\+[=-]+)+\+/m,lookbehind:!0,inside:{punctuation:/\||(?:\+[=-]+)+\+/}},{pattern:/(^[\t ]*)=+ [ =]*=(?:(?:\r?\n|\r)\1.+)+(?:\r?\n|\r)\1=+ [ =]*=(?=(?:\r?\n|\r){2}|\s*$)/m,lookbehind:!0,inside:{punctuation:/[=-]+/}}],"substitution-def":{pattern:/(^[\t ]*\.\. )\|(?:[^|\s](?:[^|]*[^|\s])?)\| [^:]+::/m,lookbehind:!0,inside:{substitution:{pattern:/^\|(?:[^|\s]|[^|\s][^|]*[^|\s])\|/,alias:"attr-value",inside:{punctuation:/^\||\|$/}},directive:{pattern:/( )(?! )[^:]+::/,lookbehind:!0,alias:"function",inside:{punctuation:/::$/}}}},"link-target":[{pattern:/(^[\t ]*\.\. )\[[^\]]+\]/m,lookbehind:!0,alias:"string",inside:{punctuation:/^\[|\]$/}},{pattern:/(^[\t ]*\.\. )_(?:`[^`]+`|(?:[^:\\]|\\.)+):/m,lookbehind:!0,alias:"string",inside:{punctuation:/^_|:$/}}],directive:{pattern:/(^[\t ]*\.\. )[^:]+::/m,lookbehind:!0,alias:"function",inside:{punctuation:/::$/}},comment:{pattern:/(^[\t ]*\.\.)(?:(?: .+)?(?:(?:\r?\n|\r).+)+| .+)(?=(?:\r?\n|\r){2}|$)/m,lookbehind:!0},title:[{pattern:/^(([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2+)(?:\r?\n|\r).+(?:\r?\n|\r)\1$/m,inside:{punctuation:/^[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+|[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+$/,important:/.+/}},{pattern:/(^|(?:\r?\n|\r){2}).+(?:\r?\n|\r)([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2+(?=\r?\n|\r|$)/,lookbehind:!0,inside:{punctuation:/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+$/,important:/.+/}}],hr:{pattern:/((?:\r?\n|\r){2})([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2{3,}(?=(?:\r?\n|\r){2})/,lookbehind:!0,alias:"punctuation"},field:{pattern:/(^[\t ]*):[^:\r\n]+:(?= )/m,lookbehind:!0,alias:"attr-name"},"command-line-option":{pattern:/(^[\t ]*)(?:[+-][a-z\d]|(?:--|\/)[a-z\d-]+)(?:[ =](?:[a-z][\w-]*|<[^<>]+>))?(?:, (?:[+-][a-z\d]|(?:--|\/)[a-z\d-]+)(?:[ =](?:[a-z][\w-]*|<[^<>]+>))?)*(?=(?:\r?\n|\r)? {2,}\S)/im,lookbehind:!0,alias:"symbol"},"literal-block":{pattern:/::(?:\r?\n|\r){2}([ \t]+)(?![ \t]).+(?:(?:\r?\n|\r)\1.+)*/,inside:{"literal-block-punctuation":{pattern:/^::/,alias:"punctuation"}}},"quoted-literal-block":{pattern:/::(?:\r?\n|\r){2}([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]).*(?:(?:\r?\n|\r)\1.*)*/,inside:{"literal-block-punctuation":{pattern:/^(?:::|([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\1*)/m,alias:"punctuation"}}},"list-bullet":{pattern:/(^[\t ]*)(?:[*+\-•‣⁃]|\(?(?:\d+|[a-z]|[ivxdclm]+)\)|(?:\d+|[a-z]|[ivxdclm]+)\.)(?= )/im,lookbehind:!0,alias:"punctuation"},"doctest-block":{pattern:/(^[\t ]*)>>> .+(?:(?:\r?\n|\r).+)*/m,lookbehind:!0,inside:{punctuation:/^>>>/}},inline:[{pattern:/(^|[\s\-:\/'"<(\[{])(?::[^:]+:`.*?`|`.*?`:[^:]+:|(\*\*?|``?|\|)(?!\s)(?:(?!\2).)*\S\2(?=[\s\-.,:;!?\\\/'")\]}]|$))/m,lookbehind:!0,inside:{bold:{pattern:/(^\*\*).+(?=\*\*$)/,lookbehind:!0},italic:{pattern:/(^\*).+(?=\*$)/,lookbehind:!0},"inline-literal":{pattern:/(^``).+(?=``$)/,lookbehind:!0,alias:"symbol"},role:{pattern:/^:[^:]+:|:[^:]+:$/,alias:"function",inside:{punctuation:/^:|:$/}},"interpreted-text":{pattern:/(^`).+(?=`$)/,lookbehind:!0,alias:"attr-value"},substitution:{pattern:/(^\|).+(?=\|$)/,lookbehind:!0,alias:"attr-value"},punctuation:/\*\*?|``?|\|/}}],link:[{pattern:/\[[^\[\]]+\]_(?=[\s\-.,:;!?\\\/'")\]}]|$)/,alias:"string",inside:{punctuation:/^\[|\]_$/}},{pattern:/(?:\b[a-z\d]+(?:[_.:+][a-z\d]+)*_?_|`[^`]+`_?_|_`[^`]+`)(?=[\s\-.,:;!?\\\/'")\]}]|$)/i,alias:"string",inside:{punctuation:/^_?`|`$|`?_?_$/}}],punctuation:{pattern:/(^[\t ]*)(?:\|(?= |$)|(?:---?|—|\.\.|__)(?= )|\.\.$)/m,lookbehind:!0}}}},68862:function(ze){"use strict";ze.exports=Ee,Ee.displayName="rip",Ee.aliases=[];function Ee(ue){ue.languages.rip={comment:{pattern:/#.*/,greedy:!0},char:{pattern:/\B`[^\s`'",.:;#\/\\()<>\[\]{}]\b/,greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},regex:{pattern:/(^|[^/])\/(?!\/)(?:\[[^\n\r\]]*\]|\\.|[^/\\\r\n\[])+\/(?=\s*(?:$|[\r\n,.;})]))/,lookbehind:!0,greedy:!0},keyword:/(?:=>|->)|\b(?:case|catch|class|else|exit|finally|if|raise|return|switch|try)\b/,builtin:/@|\bSystem\b/,boolean:/\b(?:false|true)\b/,date:/\b\d{4}-\d{2}-\d{2}\b/,time:/\b\d{2}:\d{2}:\d{2}\b/,datetime:/\b\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\b/,symbol:/:[^\d\s`'",.:;#\/\\()<>\[\]{}][^\s`'",.:;#\/\\()<>\[\]{}]*/,number:/[+-]?\b(?:\d+\.\d+|\d+)\b/,punctuation:/(?:\.{2,3})|[`,.:;=\/\\()<>\[\]{}]/,reference:/[^\d\s`'",.:;#\/\\()<>\[\]{}][^\s`'",.:;#\/\\()<>\[\]{}]*/}}},39523:function(ze){"use strict";ze.exports=Ee,Ee.displayName="roboconf",Ee.aliases=[];function Ee(ue){ue.languages.roboconf={comment:/#.*/,keyword:{pattern:/(^|\s)(?:(?:external|import)\b|(?:facet|instance of)(?=[ \t]+[\w-]+[ \t]*\{))/,lookbehind:!0},component:{pattern:/[\w-]+(?=[ \t]*\{)/,alias:"variable"},property:/[\w.-]+(?=[ \t]*:)/,value:{pattern:/(=[ \t]*(?![ \t]))[^,;]+/,lookbehind:!0,alias:"attr-value"},optional:{pattern:/\(optional\)/,alias:"builtin"},wildcard:{pattern:/(\.)\*/,lookbehind:!0,alias:"operator"},punctuation:/[{},.;:=]/}}},31207:function(ze){"use strict";ze.exports=Ee,Ee.displayName="robotframework",Ee.aliases=[];function Ee(ue){(function(ce){var Pe={pattern:/(^[ \t]*| {2}|\t)#.*/m,lookbehind:!0,greedy:!0},Re={pattern:/((?:^|[^\\])(?:\\{2})*)[$@&%]\{(?:[^{}\r\n]|\{[^{}\r\n]*\})*\}/,lookbehind:!0,inside:{punctuation:/^[$@&%]\{|\}$/}};function Me(st,Qe){var Ye={};Ye["section-header"]={pattern:/^ ?\*{3}.+?\*{3}/,alias:"keyword"};for(var yt in Qe)Ye[yt]=Qe[yt];return Ye.tag={pattern:/([\r\n](?: {2}|\t)[ \t]*)\[[-\w]+\]/,lookbehind:!0,inside:{punctuation:/\[|\]/}},Ye.variable=Re,Ye.comment=Pe,{pattern:RegExp(/^ ?\*{3}[ \t]*<name>[ \t]*\*{3}(?:.|[\r\n](?!\*{3}))*/.source.replace(/<name>/g,function(){return st}),"im"),alias:"section",inside:Ye}}var We={pattern:/(\[Documentation\](?: {2}|\t)[ \t]*)(?![ \t]|#)(?:.|(?:\r\n?|\n)[ \t]*\.{3})+/,lookbehind:!0,alias:"string"},Te={pattern:/([\r\n] ?)(?!#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,alias:"function",inside:{variable:Re}},Ge={pattern:/([\r\n](?: {2}|\t)[ \t]*)(?!\[|\.{3}|#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,inside:{variable:Re}};ce.languages.robotframework={settings:Me("Settings",{documentation:{pattern:/([\r\n] ?Documentation(?: {2}|\t)[ \t]*)(?![ \t]|#)(?:.|(?:\r\n?|\n)[ \t]*\.{3})+/,lookbehind:!0,alias:"string"},property:{pattern:/([\r\n] ?)(?!\.{3}|#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0}}),variables:Me("Variables"),"test-cases":Me("Test Cases",{"test-name":Te,documentation:We,property:Ge}),keywords:Me("Keywords",{"keyword-name":Te,documentation:We,property:Ge}),tasks:Me("Tasks",{"task-name":Te,documentation:We,property:Ge}),comment:Pe},ce.languages.robot=ce.languages.robotframework})(ue)}},75308:function(ze){"use strict";ze.exports=Ee,Ee.displayName="ruby",Ee.aliases=["rb"];function Ee(ue){(function(ce){ce.languages.ruby=ce.languages.extend("clike",{comment:{pattern:/#.*|^=begin\s[\s\S]*?^=end/m,greedy:!0},"class-name":{pattern:/(\b(?:class|module)\s+|\bcatch\s+\()[\w.\\]+|\b[A-Z_]\w*(?=\s*\.\s*new\b)/,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:BEGIN|END|alias|and|begin|break|case|class|def|define_method|defined|do|each|else|elsif|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|private|protected|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/,operator:/\.{2,3}|&\.|===|<?=>|[!=]?~|(?:&&|\|\||<<|>>|\*\*|[+\-*/%<>!^&|=])=?|[?:]/,punctuation:/[(){}[\].,;]/}),ce.languages.insertBefore("ruby","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}});var Pe={pattern:/((?:^|[^\\])(?:\\{2})*)#\{(?:[^{}]|\{[^{}]*\})*\}/,lookbehind:!0,inside:{content:{pattern:/^(#\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:ce.languages.ruby},delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"}}};delete ce.languages.ruby.function;var Re="(?:"+[/([^a-zA-Z0-9\s{(\[<=])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S]|\((?:[^()\\]|\\[\s\S])*\))*\)/.source,/\{(?:[^{}\\]|\\[\s\S]|\{(?:[^{}\\]|\\[\s\S])*\})*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S]|\[(?:[^\[\]\\]|\\[\s\S])*\])*\]/.source,/<(?:[^<>\\]|\\[\s\S]|<(?:[^<>\\]|\\[\s\S])*>)*>/.source].join("|")+")",Me=/(?:"(?:\\.|[^"\\\r\n])*"|(?:\b[a-zA-Z_]\w*|[^\s\0-\x7F]+)[?!]?|\$.)/.source;ce.languages.insertBefore("ruby","keyword",{"regex-literal":[{pattern:RegExp(/%r/.source+Re+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:Pe,regex:/[\s\S]+/}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:Pe,regex:/[\s\S]+/}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:[{pattern:RegExp(/(^|[^:]):/.source+Me),lookbehind:!0,greedy:!0},{pattern:RegExp(/([\r\n{(,][ \t]*)/.source+Me+/(?=:(?!:))/.source),lookbehind:!0,greedy:!0}],"method-definition":{pattern:/(\bdef\s+)\w+(?:\s*\.\s*\w+)?/,lookbehind:!0,inside:{function:/\b\w+$/,keyword:/^self\b/,"class-name":/^\w+/,punctuation:/\./}}}),ce.languages.insertBefore("ruby","string",{"string-literal":[{pattern:RegExp(/%[qQiIwWs]?/.source+Re),greedy:!0,inside:{interpolation:Pe,string:/[\s\S]+/}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:Pe,string:/[\s\S]+/}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?/}},interpolation:Pe,string:/[\s\S]+/}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?'|'$/}},string:/[\s\S]+/}}],"command-literal":[{pattern:RegExp(/%x/.source+Re),greedy:!0,inside:{interpolation:Pe,command:{pattern:/[\s\S]+/,alias:"string"}}},{pattern:/`(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|[^\\`#\r\n])*`/,greedy:!0,inside:{interpolation:Pe,command:{pattern:/[\s\S]+/,alias:"string"}}}]}),delete ce.languages.ruby.string,ce.languages.insertBefore("ruby","number",{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Fixnum|Float|Hash|IO|Integer|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|Stat|String|Struct|Symbol|TMS|Thread|ThreadGroup|Time|TrueClass)\b/,constant:/\b[A-Z][A-Z0-9_]*(?:[?!]|\b)/}),ce.languages.rb=ce.languages.ruby})(ue)}},45315:function(ze){"use strict";ze.exports=Ee,Ee.displayName="rust",Ee.aliases=[];function Ee(ue){(function(ce){for(var Pe=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source,Re=0;Re<2;Re++)Pe=Pe.replace(/<self>/g,function(){return Pe});Pe=Pe.replace(/<self>/g,function(){return/[^\s\S]/.source}),ce.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+Pe),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/},ce.languages.rust["closure-params"].inside.rest=ce.languages.rust,ce.languages.rust.attribute.inside.string=ce.languages.rust.string})(ue)}},13794:function(ze){"use strict";ze.exports=Ee,Ee.displayName="sas",Ee.aliases=[];function Ee(ue){(function(ce){var Pe=/(?:"(?:""|[^"])*"(?!")|'(?:''|[^'])*'(?!'))/.source,Re=/\b(?:\d[\da-f]*x|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,Me={pattern:RegExp(Pe+"[bx]"),alias:"number"},We={pattern:/&[a-z_]\w*/i},Te={pattern:/((?:^|\s|=|\())%(?:ABORT|BY|CMS|COPY|DISPLAY|DO|ELSE|END|EVAL|GLOBAL|GO|GOTO|IF|INC|INCLUDE|INDEX|INPUT|KTRIM|LENGTH|LET|LIST|LOCAL|PUT|QKTRIM|QSCAN|QSUBSTR|QSYSFUNC|QUPCASE|RETURN|RUN|SCAN|SUBSTR|SUPERQ|SYMDEL|SYMEXIST|SYMGLOBL|SYMLOCAL|SYSCALL|SYSEVALF|SYSEXEC|SYSFUNC|SYSGET|SYSRPUT|THEN|TO|TSO|UNQUOTE|UNTIL|UPCASE|WHILE|WINDOW)\b/i,lookbehind:!0,alias:"keyword"},Ge={pattern:/(^|\s)(?:proc\s+\w+|data(?!=)|quit|run)\b/i,alias:"keyword",lookbehind:!0},st=[/\/\*[\s\S]*?\*\//,{pattern:/(^[ \t]*|;\s*)\*[^;]*;/m,lookbehind:!0}],Qe={pattern:RegExp(Pe),greedy:!0},Ye=/[$%@.(){}\[\];,\\]/,yt={pattern:/%?\b\w+(?=\()/,alias:"keyword"},ot={function:yt,"arg-value":{pattern:/(=\s*)[A-Z\.]+/i,lookbehind:!0},operator:/=/,"macro-variable":We,arg:{pattern:/[A-Z]+/i,alias:"keyword"},number:Re,"numeric-constant":Me,punctuation:Ye,string:Qe},Nt={pattern:/\b(?:format|put)\b=?[\w'$.]+/i,inside:{keyword:/^(?:format|put)(?==)/i,equals:/=/,format:{pattern:/(?:\w|\$\d)+\.\d?/,alias:"number"}}},Fe={pattern:/\b(?:format|put)\s+[\w']+(?:\s+[$.\w]+)+(?=;)/i,inside:{keyword:/^(?:format|put)/i,format:{pattern:/[\w$]+\.\d?/,alias:"number"}}},ne={pattern:/((?:^|\s)=?)(?:catname|checkpoint execute_always|dm|endsas|filename|footnote|%include|libname|%list|lock|missing|options|page|resetline|%run|sasfile|skip|sysecho|title\d?)\b/i,lookbehind:!0,alias:"keyword"},te={pattern:/(^|\s)(?:submit(?:\s+(?:load|norun|parseonly))?|endsubmit)\b/i,lookbehind:!0,alias:"keyword"},he=/aStore|accessControl|aggregation|audio|autotune|bayesianNetClassifier|bioMedImage|boolRule|builtins|cardinality|cdm|clustering|conditionalRandomFields|configuration|copula|countreg|dataDiscovery|dataPreprocess|dataSciencePilot|dataStep|decisionTree|deduplication|deepLearn|deepNeural|deepRnn|ds2|ecm|entityRes|espCluster|explainModel|factmac|fastKnn|fcmpact|fedSql|freqTab|gVarCluster|gam|gleam|graphSemiSupLearn|hiddenMarkovModel|hyperGroup|ica|image|iml|kernalPca|langModel|ldaTopic|loadStreams|mbc|mixed|mlTools|modelPublishing|network|neuralNet|nmf|nonParametricBayes|nonlinear|optNetwork|optimization|panel|pca|percentile|phreg|pls|qkb|qlim|quantreg|recommend|regression|reinforcementLearn|robustPca|ruleMining|sampling|sandwich|sccasl|search(?:Analytics)?|sentimentAnalysis|sequence|session(?:Prop)?|severity|simSystem|simple|smartData|sparkEmbeddedProcess|sparseML|spatialreg|spc|stabilityMonitoring|svDataDescription|svm|table|text(?:Filters|Frequency|Mining|Parse|Rule(?:Develop|Score)|Topic|Util)|timeData|transpose|tsInfo|tsReconcile|uniTimeSeries|varReduce/.source,se={pattern:RegExp(/(^|\s)(?:action\s+)?(?:<act>)\.[a-z]+\b[^;]+/.source.replace(/<act>/g,function(){return he}),"i"),lookbehind:!0,inside:{keyword:RegExp(/(?:<act>)\.[a-z]+\b/.source.replace(/<act>/g,function(){return he}),"i"),action:{pattern:/(?:action)/i,alias:"keyword"},comment:st,function:yt,"arg-value":ot["arg-value"],operator:ot.operator,argument:ot.arg,number:Re,"numeric-constant":Me,punctuation:Ye,string:Qe}},ge={pattern:/((?:^|\s)=?)(?:after|analysis|and|array|barchart|barwidth|begingraph|by|call|cas|cbarline|cfill|class(?:lev)?|close|column|computed?|contains|continue|data(?==)|define|delete|describe|document|do\s+over|do|dol|drop|dul|else|end(?:comp|source)?|entryTitle|eval(?:uate)?|exec(?:ute)?|exit|file(?:name)?|fill(?:attrs)?|flist|fnc|function(?:list)?|global|goto|group(?:by)?|headline|headskip|histogram|if|infile|keep|keylabel|keyword|label|layout|leave|legendlabel|length|libname|loadactionset|merge|midpoints|_?null_|name|noobs|nowd|ods|options|or|otherwise|out(?:put)?|over(?:lay)?|plot|print|put|raise|ranexp|rannor|rbreak|retain|return|select|session|sessref|set|source|statgraph|sum|summarize|table|temp|terminate|then\s+do|then|title\d?|to|var|when|where|xaxisopts|y2axisopts|yaxisopts)\b/i,lookbehind:!0};ce.languages.sas={datalines:{pattern:/^([ \t]*)(?:cards|(?:data)?lines);[\s\S]+?^[ \t]*;/im,lookbehind:!0,alias:"string",inside:{keyword:{pattern:/^(?:cards|(?:data)?lines)/i},punctuation:/;/}},"proc-sql":{pattern:/(^proc\s+(?:fed)?sql(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{sql:{pattern:RegExp(/^[ \t]*(?:select|alter\s+table|(?:create|describe|drop)\s+(?:index|table(?:\s+constraints)?|view)|create\s+unique\s+index|insert\s+into|update)(?:<str>|[^;"'])+;/.source.replace(/<str>/g,function(){return Pe}),"im"),alias:"language-sql",inside:ce.languages.sql},"global-statements":ne,"sql-statements":{pattern:/(^|\s)(?:disconnect\s+from|begin|commit|exec(?:ute)?|reset|rollback|validate)\b/i,lookbehind:!0,alias:"keyword"},number:Re,"numeric-constant":Me,punctuation:Ye,string:Qe}},"proc-groovy":{pattern:/(^proc\s+groovy(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:st,groovy:{pattern:RegExp(/(^[ \t]*submit(?:\s+(?:load|norun|parseonly))?)(?:<str>|[^"'])+?(?=endsubmit;)/.source.replace(/<str>/g,function(){return Pe}),"im"),lookbehind:!0,alias:"language-groovy",inside:ce.languages.groovy},keyword:ge,"submit-statement":te,"global-statements":ne,number:Re,"numeric-constant":Me,punctuation:Ye,string:Qe}},"proc-lua":{pattern:/(^proc\s+lua(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:st,lua:{pattern:RegExp(/(^[ \t]*submit(?:\s+(?:load|norun|parseonly))?)(?:<str>|[^"'])+?(?=endsubmit;)/.source.replace(/<str>/g,function(){return Pe}),"im"),lookbehind:!0,alias:"language-lua",inside:ce.languages.lua},keyword:ge,"submit-statement":te,"global-statements":ne,number:Re,"numeric-constant":Me,punctuation:Ye,string:Qe}},"proc-cas":{pattern:/(^proc\s+cas(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|quit|data);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:st,"statement-var":{pattern:/((?:^|\s)=?)saveresult\s[^;]+/im,lookbehind:!0,inside:{statement:{pattern:/^saveresult\s+\S+/i,inside:{keyword:/^(?:saveresult)/i}},rest:ot}},"cas-actions":se,statement:{pattern:/((?:^|\s)=?)(?:default|(?:un)?set|on|output|upload)[^;]+/im,lookbehind:!0,inside:ot},step:Ge,keyword:ge,function:yt,format:Nt,altformat:Fe,"global-statements":ne,number:Re,"numeric-constant":Me,punctuation:Ye,string:Qe}},"proc-args":{pattern:RegExp(/(^proc\s+\w+\s+)(?!\s)(?:[^;"']|<str>)+;/.source.replace(/<str>/g,function(){return Pe}),"im"),lookbehind:!0,inside:ot},"macro-keyword":Te,"macro-variable":We,"macro-string-functions":{pattern:/((?:^|\s|=))%(?:BQUOTE|NRBQUOTE|NRQUOTE|NRSTR|QUOTE|STR)\(.*?(?:[^%]\))/i,lookbehind:!0,inside:{function:{pattern:/%(?:BQUOTE|NRBQUOTE|NRQUOTE|NRSTR|QUOTE|STR)/i,alias:"keyword"},"macro-keyword":Te,"macro-variable":We,"escaped-char":{pattern:/%['"()<>=¬^~;,#]/},punctuation:Ye}},"macro-declaration":{pattern:/^%macro[^;]+(?=;)/im,inside:{keyword:/%macro/i}},"macro-end":{pattern:/^%mend[^;]+(?=;)/im,inside:{keyword:/%mend/i}},macro:{pattern:/%_\w+(?=\()/,alias:"keyword"},input:{pattern:/\binput\s[-\w\s/*.$&]+;/i,inside:{input:{alias:"keyword",pattern:/^input/i},comment:st,number:Re,"numeric-constant":Me}},"options-args":{pattern:/(^options)[-'"|/\\<>*+=:()\w\s]*(?=;)/im,lookbehind:!0,inside:ot},"cas-actions":se,comment:st,function:yt,format:Nt,altformat:Fe,"numeric-constant":Me,datetime:{pattern:RegExp(Pe+"(?:dt?|t)"),alias:"number"},string:Qe,step:Ge,keyword:ge,"operator-keyword":{pattern:/\b(?:eq|ge|gt|in|le|lt|ne|not)\b/i,alias:"operator"},number:Re,operator:/\*\*?|\|\|?|!!?|¦¦?|<[>=]?|>[<=]?|[-+\/=&]|[~¬^]=?/,punctuation:Ye}})(ue)}},41299:function(ze){"use strict";ze.exports=Ee,Ee.displayName="sass",Ee.aliases=[];function Ee(ue){(function(ce){ce.languages.sass=ce.languages.extend("css",{comment:{pattern:/^([ \t]*)\/[\/*].*(?:(?:\r?\n|\r)\1[ \t].+)*/m,lookbehind:!0,greedy:!0}}),ce.languages.insertBefore("sass","atrule",{"atrule-line":{pattern:/^(?:[ \t]*)[@+=].+/m,greedy:!0,inside:{atrule:/(?:@[\w-]+|[+=])/}}}),delete ce.languages.sass.atrule;var Pe=/\$[-\w]+|#\{\$[-\w]+\}/,Re=[/[+*\/%]|[=!]=|<=?|>=?|\b(?:and|not|or)\b/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}];ce.languages.insertBefore("sass","property",{"variable-line":{pattern:/^[ \t]*\$.+/m,greedy:!0,inside:{punctuation:/:/,variable:Pe,operator:Re}},"property-line":{pattern:/^[ \t]*(?:[^:\s]+ *:.*|:[^:\s].*)/m,greedy:!0,inside:{property:[/[^:\s]+(?=\s*:)/,{pattern:/(:)[^:\s]+/,lookbehind:!0}],punctuation:/:/,variable:Pe,operator:Re,important:ce.languages.sass.important}}}),delete ce.languages.sass.property,delete ce.languages.sass.important,ce.languages.insertBefore("sass","punctuation",{selector:{pattern:/^([ \t]*)\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*(?:,(?:\r?\n|\r)\1[ \t]+\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*)*/m,lookbehind:!0,greedy:!0}})})(ue)}},98177:function(ze,Ee,ue){"use strict";var ce=ue(7093);ze.exports=Pe,Pe.displayName="scala",Pe.aliases=[];function Pe(Re){Re.register(ce),Re.languages.scala=Re.languages.extend("java",{"triple-quoted-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:/<-|=>|\b(?:abstract|case|catch|class|def|do|else|extends|final|finally|for|forSome|if|implicit|import|lazy|match|new|null|object|override|package|private|protected|return|sealed|self|super|this|throw|trait|try|type|val|var|while|with|yield)\b/,number:/\b0x(?:[\da-f]*\.)?[\da-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e\d+)?[dfl]?/i,builtin:/\b(?:Any|AnyRef|AnyVal|Boolean|Byte|Char|Double|Float|Int|Long|Nothing|Short|String|Unit)\b/,symbol:/'[^\d\s\\]\w*/}),Re.languages.insertBefore("scala","triple-quoted-string",{"string-interpolation":{pattern:/\b[a-z]\w*(?:"""(?:[^$]|\$(?:[^{]|\{(?:[^{}]|\{[^{}]*\})*\}))*?"""|"(?:[^$"\r\n]|\$(?:[^{]|\{(?:[^{}]|\{[^{}]*\})*\}))*")/i,greedy:!0,inside:{id:{pattern:/^\w+/,greedy:!0,alias:"function"},escape:{pattern:/\\\$"|\$[$"]/,greedy:!0,alias:"symbol"},interpolation:{pattern:/\$(?:\w+|\{(?:[^{}]|\{[^{}]*\})*\})/,greedy:!0,inside:{punctuation:/^\$\{?|\}$/,expression:{pattern:/[\s\S]+/,inside:Re.languages.scala}}},string:/[\s\S]+/}}}),delete Re.languages.scala["class-name"],delete Re.languages.scala.function}},48780:function(ze){"use strict";ze.exports=Ee,Ee.displayName="scheme",Ee.aliases=[];function Ee(ue){(function(ce){ce.languages.scheme={comment:/;.*|#;\s*(?:\((?:[^()]|\([^()]*\))*\)|\[(?:[^\[\]]|\[[^\[\]]*\])*\])|#\|(?:[^#|]|#(?!\|)|\|(?!#)|#\|(?:[^#|]|#(?!\|)|\|(?!#))*\|#)*\|#/,string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},symbol:{pattern:/'[^()\[\]#'\s]+/,greedy:!0},char:{pattern:/#\\(?:[ux][a-fA-F\d]+\b|[-a-zA-Z]+\b|[\uD800-\uDBFF][\uDC00-\uDFFF]|\S)/,greedy:!0},"lambda-parameter":[{pattern:/((?:^|[^'`#])[(\[]lambda\s+)(?:[^|()\[\]'\s]+|\|(?:[^\\|]|\\.)*\|)/,lookbehind:!0},{pattern:/((?:^|[^'`#])[(\[]lambda\s+[(\[])[^()\[\]']+/,lookbehind:!0}],keyword:{pattern:/((?:^|[^'`#])[(\[])(?:begin|case(?:-lambda)?|cond(?:-expand)?|define(?:-library|-macro|-record-type|-syntax|-values)?|defmacro|delay(?:-force)?|do|else|except|export|guard|if|import|include(?:-ci|-library-declarations)?|lambda|let(?:rec)?(?:-syntax|-values|\*)?|let\*-values|only|parameterize|prefix|(?:quasi-?)?quote|rename|set!|syntax-(?:case|rules)|unless|unquote(?:-splicing)?|when)(?=[()\[\]\s]|$)/,lookbehind:!0},builtin:{pattern:/((?:^|[^'`#])[(\[])(?:abs|and|append|apply|assoc|ass[qv]|binary-port\?|boolean=?\?|bytevector(?:-append|-copy|-copy!|-length|-u8-ref|-u8-set!|\?)?|caar|cadr|call-with-(?:current-continuation|port|values)|call\/cc|car|cdar|cddr|cdr|ceiling|char(?:->integer|-ready\?|\?|<\?|<=\?|=\?|>\?|>=\?)|close-(?:input-port|output-port|port)|complex\?|cons|current-(?:error|input|output)-port|denominator|dynamic-wind|eof-object\??|eq\?|equal\?|eqv\?|error|error-object(?:-irritants|-message|\?)|eval|even\?|exact(?:-integer-sqrt|-integer\?|\?)?|expt|features|file-error\?|floor(?:-quotient|-remainder|\/)?|flush-output-port|for-each|gcd|get-output-(?:bytevector|string)|inexact\??|input-port(?:-open\?|\?)|integer(?:->char|\?)|lcm|length|list(?:->string|->vector|-copy|-ref|-set!|-tail|\?)?|make-(?:bytevector|list|parameter|string|vector)|map|max|member|memq|memv|min|modulo|negative\?|newline|not|null\?|number(?:->string|\?)|numerator|odd\?|open-(?:input|output)-(?:bytevector|string)|or|output-port(?:-open\?|\?)|pair\?|peek-char|peek-u8|port\?|positive\?|procedure\?|quotient|raise|raise-continuable|rational\?|rationalize|read-(?:bytevector|bytevector!|char|error\?|line|string|u8)|real\?|remainder|reverse|round|set-c[ad]r!|square|string(?:->list|->number|->symbol|->utf8|->vector|-append|-copy|-copy!|-fill!|-for-each|-length|-map|-ref|-set!|\?|<\?|<=\?|=\?|>\?|>=\?)?|substring|symbol(?:->string|\?|=\?)|syntax-error|textual-port\?|truncate(?:-quotient|-remainder|\/)?|u8-ready\?|utf8->string|values|vector(?:->list|->string|-append|-copy|-copy!|-fill!|-for-each|-length|-map|-ref|-set!|\?)?|with-exception-handler|write-(?:bytevector|char|string|u8)|zero\?)(?=[()\[\]\s]|$)/,lookbehind:!0},operator:{pattern:/((?:^|[^'`#])[(\[])(?:[-+*%/]|[<>]=?|=>?)(?=[()\[\]\s]|$)/,lookbehind:!0},number:{pattern:RegExp(Pe({"<ureal dec>":/\d+(?:\/\d+)|(?:\d+(?:\.\d*)?|\.\d+)(?:[esfdl][+-]?\d+)?/.source,"<real dec>":/[+-]?<ureal dec>|[+-](?:inf|nan)\.0/.source,"<imaginary dec>":/[+-](?:<ureal dec>|(?:inf|nan)\.0)?i/.source,"<complex dec>":/<real dec>(?:@<real dec>|<imaginary dec>)?|<imaginary dec>/.source,"<num dec>":/(?:#d(?:#[ei])?|#[ei](?:#d)?)?<complex dec>/.source,"<ureal box>":/[0-9a-f]+(?:\/[0-9a-f]+)?/.source,"<real box>":/[+-]?<ureal box>|[+-](?:inf|nan)\.0/.source,"<imaginary box>":/[+-](?:<ureal box>|(?:inf|nan)\.0)?i/.source,"<complex box>":/<real box>(?:@<real box>|<imaginary box>)?|<imaginary box>/.source,"<num box>":/#[box](?:#[ei])?|(?:#[ei])?#[box]<complex box>/.source,"<number>":/(^|[()\[\]\s])(?:<num dec>|<num box>)(?=[()\[\]\s]|$)/.source}),"i"),lookbehind:!0},boolean:{pattern:/(^|[()\[\]\s])#(?:[ft]|false|true)(?=[()\[\]\s]|$)/,lookbehind:!0},function:{pattern:/((?:^|[^'`#])[(\[])(?:[^|()\[\]'\s]+|\|(?:[^\\|]|\\.)*\|)(?=[()\[\]\s]|$)/,lookbehind:!0},identifier:{pattern:/(^|[()\[\]\s])\|(?:[^\\|]|\\.)*\|(?=[()\[\]\s]|$)/,lookbehind:!0,greedy:!0},punctuation:/[()\[\]']/};function Pe(Re){for(var Me in Re)Re[Me]=Re[Me].replace(/<[\w\s]+>/g,function(We){return"(?:"+Re[We].trim()+")"});return Re[Me]}})(ue)}},79793:function(ze){"use strict";ze.exports=Ee,Ee.displayName="scss",Ee.aliases=[];function Ee(ue){ue.languages.scss=ue.languages.extend("css",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},atrule:{pattern:/@[\w-](?:\([^()]+\)|[^()\s]|\s+(?!\s))*?(?=\s+[{;])/,inside:{rule:/@[\w-]+/}},url:/(?:[-a-z]+-)?url(?=\()/i,selector:{pattern:/(?=\S)[^@;{}()]?(?:[^@;{}()\s]|\s+(?!\s)|#\{\$[-\w]+\})+(?=\s*\{(?:\}|\s|[^}][^:{}]*[:{][^}]))/,inside:{parent:{pattern:/&/,alias:"important"},placeholder:/%[-\w]+/,variable:/\$[-\w]+|#\{\$[-\w]+\}/}},property:{pattern:/(?:[-\w]|\$[-\w]|#\{\$[-\w]+\})+(?=\s*:)/,inside:{variable:/\$[-\w]+|#\{\$[-\w]+\}/}}}),ue.languages.insertBefore("scss","atrule",{keyword:[/@(?:content|debug|each|else(?: if)?|extend|for|forward|function|if|import|include|mixin|return|use|warn|while)\b/i,{pattern:/( )(?:from|through)(?= )/,lookbehind:!0}]}),ue.languages.insertBefore("scss","important",{variable:/\$[-\w]+|#\{\$[-\w]+\}/}),ue.languages.insertBefore("scss","function",{"module-modifier":{pattern:/\b(?:as|hide|show|with)\b/i,alias:"keyword"},placeholder:{pattern:/%[-\w]+/,alias:"selector"},statement:{pattern:/\B!(?:default|optional)\b/i,alias:"keyword"},boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"},operator:{pattern:/(\s)(?:[-+*\/%]|[=!]=|<=?|>=?|and|not|or)(?=\s)/,lookbehind:!0}}),ue.languages.scss.atrule.inside.rest=ue.languages.scss}},52085:function(ze,Ee,ue){"use strict";var ce=ue(3058);ze.exports=Pe,Pe.displayName="shellSession",Pe.aliases=[];function Pe(Re){Re.register(ce),function(Me){var We=[/"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/.source,/'[^']*'/.source,/\$'(?:[^'\\]|\\[\s\S])*'/.source,/<<-?\s*(["']?)(\w+)\1\s[\s\S]*?[\r\n]\2/.source].join("|");Me.languages["shell-session"]={command:{pattern:RegExp(/^/.source+"(?:"+(/[^\s@:$#%*!/\\]+@[^\r\n@:$#%*!/\\]+(?::[^\0-\x1F$#%*?"<>:;|]+)?/.source+"|"+/[/~.][^\0-\x1F$#%*?"<>@:;|]*/.source)+")?"+/[$#%](?=\s)/.source+/(?:[^\\\r\n \t'"<$]|[ \t](?:(?!#)|#.*$)|\\(?:[^\r]|\r\n?)|\$(?!')|<(?!<)|<<str>>)+/.source.replace(/<<str>>/g,function(){return We}),"m"),greedy:!0,inside:{info:{pattern:/^[^#$%]+/,alias:"punctuation",inside:{user:/^[^\s@:$#%*!/\\]+@[^\r\n@:$#%*!/\\]+/,punctuation:/:/,path:/[\s\S]+/}},bash:{pattern:/(^[$#%]\s*)\S[\s\S]*/,lookbehind:!0,alias:"language-bash",inside:Me.languages.bash},"shell-symbol":{pattern:/^[$#%]/,alias:"important"}}},output:/.(?:.*(?:[\r\n]|.$))*/},Me.languages["sh-session"]=Me.languages.shellsession=Me.languages["shell-session"]}(Re)}},65411:function(ze){"use strict";ze.exports=Ee,Ee.displayName="smali",Ee.aliases=[];function Ee(ue){ue.languages.smali={comment:/#.*/,string:{pattern:/"(?:[^\r\n\\"]|\\.)*"|'(?:[^\r\n\\']|\\(?:.|u[\da-fA-F]{4}))'/,greedy:!0},"class-name":{pattern:/(^|[^L])L(?:(?:\w+|`[^`\r\n]*`)\/)*(?:[\w$]+|`[^`\r\n]*`)(?=\s*;)/,lookbehind:!0,inside:{"class-name":{pattern:/(^L|\/)(?:[\w$]+|`[^`\r\n]*`)$/,lookbehind:!0},namespace:{pattern:/^(L)(?:(?:\w+|`[^`\r\n]*`)\/)+/,lookbehind:!0,inside:{punctuation:/\//}},builtin:/^L/}},builtin:[{pattern:/([();\[])[BCDFIJSVZ]+/,lookbehind:!0},{pattern:/([\w$>]:)[BCDFIJSVZ]/,lookbehind:!0}],keyword:[{pattern:/(\.end\s+)[\w-]+/,lookbehind:!0},{pattern:/(^|[^\w.-])\.(?!\d)[\w-]+/,lookbehind:!0},{pattern:/(^|[^\w.-])(?:abstract|annotation|bridge|constructor|enum|final|interface|private|protected|public|runtime|static|synthetic|system|transient)(?![\w.-])/,lookbehind:!0}],function:{pattern:/(^|[^\w.-])(?:\w+|<[\w$-]+>)(?=\()/,lookbehind:!0},field:{pattern:/[\w$]+(?=:)/,alias:"variable"},register:{pattern:/(^|[^\w.-])[vp]\d(?![\w.-])/,lookbehind:!0,alias:"variable"},boolean:{pattern:/(^|[^\w.-])(?:false|true)(?![\w.-])/,lookbehind:!0},number:{pattern:/(^|[^/\w.-])-?(?:NAN|INFINITY|0x(?:[\dA-F]+(?:\.[\dA-F]*)?|\.[\dA-F]+)(?:p[+-]?[\dA-F]+)?|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?)[dflst]?(?![\w.-])/i,lookbehind:!0},label:{pattern:/(:)\w+/,lookbehind:!0,alias:"property"},operator:/->|\.\.|[\[=]/,punctuation:/[{}(),;:]/}}},84750:function(ze){"use strict";ze.exports=Ee,Ee.displayName="smalltalk",Ee.aliases=[];function Ee(ue){ue.languages.smalltalk={comment:{pattern:/"(?:""|[^"])*"/,greedy:!0},char:{pattern:/\$./,greedy:!0},string:{pattern:/'(?:''|[^'])*'/,greedy:!0},symbol:/#[\da-z]+|#(?:-|([+\/\\*~<>=@%|&?!])\1?)|#(?=\()/i,"block-arguments":{pattern:/(\[\s*):[^\[|]*\|/,lookbehind:!0,inside:{variable:/:[\da-z]+/i,punctuation:/\|/}},"temporary-variables":{pattern:/\|[^|]+\|/,inside:{variable:/[\da-z]+/i,punctuation:/\|/}},keyword:/\b(?:new|nil|self|super)\b/,boolean:/\b(?:false|true)\b/,number:[/\d+r-?[\dA-Z]+(?:\.[\dA-Z]+)?(?:e-?\d+)?/,/\b\d+(?:\.\d+)?(?:e-?\d+)?/],operator:/[<=]=?|:=|~[~=]|\/\/?|\\\\|>[>=]?|[!^+\-*&|,@]/,punctuation:/[.;:?\[\](){}]/}}},88216:function(ze,Ee,ue){"use strict";var ce=ue(51478);ze.exports=Pe,Pe.displayName="smarty",Pe.aliases=[];function Pe(Re){Re.register(ce),function(Me){Me.languages.smarty={comment:{pattern:/^\{\*[\s\S]*?\*\}/,greedy:!0},"embedded-php":{pattern:/^\{php\}[\s\S]*?\{\/php\}/,greedy:!0,inside:{smarty:{pattern:/^\{php\}|\{\/php\}$/,inside:null},php:{pattern:/[\s\S]+/,alias:"language-php",inside:Me.languages.php}}},string:[{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0,inside:{interpolation:{pattern:/\{[^{}]*\}|`[^`]*`/,inside:{"interpolation-punctuation":{pattern:/^[{`]|[`}]$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}},variable:/\$\w+/}},{pattern:/'(?:\\.|[^'\\\r\n])*'/,greedy:!0}],keyword:{pattern:/(^\{\/?)[a-z_]\w*\b(?!\()/i,lookbehind:!0,greedy:!0},delimiter:{pattern:/^\{\/?|\}$/,greedy:!0,alias:"punctuation"},number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,variable:[/\$(?!\d)\w+/,/#(?!\d)\w+#/,{pattern:/(\.|->|\w\s*=)(?!\d)\w+\b(?!\()/,lookbehind:!0},{pattern:/(\[)(?!\d)\w+(?=\])/,lookbehind:!0}],function:{pattern:/(\|\s*)@?[a-z_]\w*|\b[a-z_]\w*(?=\()/i,lookbehind:!0},"attr-name":/\b[a-z_]\w*(?=\s*=)/i,boolean:/\b(?:false|no|off|on|true|yes)\b/,punctuation:/[\[\](){}.,:`]|->/,operator:[/[+\-*\/%]|==?=?|[!<>]=?|&&|\|\|?/,/\bis\s+(?:not\s+)?(?:div|even|odd)(?:\s+by)?\b/,/\b(?:and|eq|gt?e|gt|lt?e|lt|mod|neq?|not|or)\b/]},Me.languages.smarty["embedded-php"].inside.smarty.inside=Me.languages.smarty,Me.languages.smarty.string[0].inside.interpolation.inside.expression.inside=Me.languages.smarty;var We=/"(?:\\.|[^"\\\r\n])*"|'(?:\\.|[^'\\\r\n])*'/,Te=RegExp(/\{\*[\s\S]*?\*\}/.source+"|"+/\{php\}[\s\S]*?\{\/php\}/.source+"|"+/\{(?:[^{}"']|<str>|\{(?:[^{}"']|<str>|\{(?:[^{}"']|<str>)*\})*\})*\}/.source.replace(/<str>/g,function(){return We.source}),"g");Me.hooks.add("before-tokenize",function(Ge){var st="{literal}",Qe="{/literal}",Ye=!1;Me.languages["markup-templating"].buildPlaceholders(Ge,"smarty",Te,function(yt){return yt===Qe&&(Ye=!1),Ye?!1:(yt===st&&(Ye=!0),!0)})}),Me.hooks.add("after-tokenize",function(Ge){Me.languages["markup-templating"].tokenizePlaceholders(Ge,"smarty")})}(Re)}},66433:function(ze){"use strict";ze.exports=Ee,Ee.displayName="sml",Ee.aliases=["smlnj"];function Ee(ue){(function(ce){var Pe=/\b(?:abstype|and|andalso|as|case|datatype|do|else|end|eqtype|exception|fn|fun|functor|handle|if|in|include|infix|infixr|let|local|nonfix|of|op|open|orelse|raise|rec|sharing|sig|signature|struct|structure|then|type|val|where|while|with|withtype)\b/i;ce.languages.sml={comment:/\(\*(?:[^*(]|\*(?!\))|\((?!\*)|\(\*(?:[^*(]|\*(?!\))|\((?!\*))*\*\))*\*\)/,string:{pattern:/#?"(?:[^"\\]|\\.)*"/,greedy:!0},"class-name":[{pattern:RegExp(/((?:^|[^:]):\s*)<TERMINAL>(?:\s*(?:(?:\*|->)\s*<TERMINAL>|,\s*<TERMINAL>(?:(?=<NOT-LAST>)|(?!<NOT-LAST>)\s+<LONG-ID>)))*/.source.replace(/<NOT-LAST>/g,function(){return/\s*(?:[*,]|->)/.source}).replace(/<TERMINAL>/g,function(){return/(?:'[\w']*|<LONG-ID>|\((?:[^()]|\([^()]*\))*\)|\{(?:[^{}]|\{[^{}]*\})*\})(?:\s+<LONG-ID>)*/.source}).replace(/<LONG-ID>/g,function(){return/(?!<KEYWORD>)[a-z\d_][\w'.]*/.source}).replace(/<KEYWORD>/g,function(){return Pe.source}),"i"),lookbehind:!0,greedy:!0,inside:null},{pattern:/((?:^|[^\w'])(?:datatype|exception|functor|signature|structure|type)\s+)[a-z_][\w'.]*/i,lookbehind:!0}],function:{pattern:/((?:^|[^\w'])fun\s+)[a-z_][\w'.]*/i,lookbehind:!0},keyword:Pe,variable:{pattern:/(^|[^\w'])'[\w']*/,lookbehind:!0},number:/~?\b(?:\d+(?:\.\d+)?(?:e~?\d+)?|0x[\da-f]+)\b/i,word:{pattern:/\b0w(?:\d+|x[\da-f]+)\b/i,alias:"constant"},boolean:/\b(?:false|true)\b/i,operator:/\.\.\.|:[>=:]|=>?|->|[<>]=?|[!+\-*/^#|@~]/,punctuation:/[(){}\[\].:,;]/},ce.languages.sml["class-name"][0].inside=ce.languages.sml,ce.languages.smlnj=ce.languages.sml})(ue)}},34855:function(ze){"use strict";ze.exports=Ee,Ee.displayName="solidity",Ee.aliases=["sol"];function Ee(ue){ue.languages.solidity=ue.languages.extend("clike",{"class-name":{pattern:/(\b(?:contract|enum|interface|library|new|struct|using)\s+)(?!\d)[\w$]+/,lookbehind:!0},keyword:/\b(?:_|anonymous|as|assembly|assert|break|calldata|case|constant|constructor|continue|contract|default|delete|do|else|emit|enum|event|external|for|from|function|if|import|indexed|inherited|interface|internal|is|let|library|mapping|memory|modifier|new|payable|pragma|private|public|pure|require|returns?|revert|selfdestruct|solidity|storage|struct|suicide|switch|this|throw|using|var|view|while)\b/,operator:/=>|->|:=|=:|\*\*|\+\+|--|\|\||&&|<<=?|>>=?|[-+*/%^&|<>!=]=?|[~?]/}),ue.languages.insertBefore("solidity","keyword",{builtin:/\b(?:address|bool|byte|u?int(?:8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?|string|bytes(?:[1-9]|[12]\d|3[0-2])?)\b/}),ue.languages.insertBefore("solidity","number",{version:{pattern:/([<>]=?|\^)\d+\.\d+\.\d+\b/,lookbehind:!0,alias:"number"}}),ue.languages.sol=ue.languages.solidity}},12998:function(ze){"use strict";ze.exports=Ee,Ee.displayName="solutionFile",Ee.aliases=[];function Ee(ue){(function(ce){var Pe={pattern:/\{[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}\}/i,alias:"constant",inside:{punctuation:/[{}]/}};ce.languages["solution-file"]={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0,inside:{guid:Pe}},object:{pattern:/^([ \t]*)(?:([A-Z]\w*)\b(?=.*(?:\r\n?|\n)(?:\1[ \t].*(?:\r\n?|\n))*\1End\2(?=[ \t]*$))|End[A-Z]\w*(?=[ \t]*$))/m,lookbehind:!0,greedy:!0,alias:"keyword"},property:{pattern:/^([ \t]*)(?!\s)[^\r\n"#=()]*[^\s"#=()](?=\s*=)/m,lookbehind:!0,inside:{guid:Pe}},guid:Pe,number:/\b\d+(?:\.\d+)*\b/,boolean:/\b(?:FALSE|TRUE)\b/,operator:/=/,punctuation:/[(),]/},ce.languages.sln=ce.languages["solution-file"]})(ue)}},10202:function(ze,Ee,ue){"use strict";var ce=ue(51478);ze.exports=Pe,Pe.displayName="soy",Pe.aliases=[];function Pe(Re){Re.register(ce),function(Me){var We=/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,Te=/\b\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\b|\b0x[\dA-F]+\b/;Me.languages.soy={comment:[/\/\*[\s\S]*?\*\//,{pattern:/(\s)\/\/.*/,lookbehind:!0,greedy:!0}],"command-arg":{pattern:/(\{+\/?\s*(?:alias|call|delcall|delpackage|deltemplate|namespace|template)\s+)\.?[\w.]+/,lookbehind:!0,alias:"string",inside:{punctuation:/\./}},parameter:{pattern:/(\{+\/?\s*@?param\??\s+)\.?[\w.]+/,lookbehind:!0,alias:"variable"},keyword:[{pattern:/(\{+\/?[^\S\r\n]*)(?:\\[nrt]|alias|call|case|css|default|delcall|delpackage|deltemplate|else(?:if)?|fallbackmsg|for(?:each)?|if(?:empty)?|lb|let|literal|msg|namespace|nil|@?param\??|rb|sp|switch|template|xid)/,lookbehind:!0},/\b(?:any|as|attributes|bool|css|float|html|in|int|js|list|map|null|number|string|uri)\b/],delimiter:{pattern:/^\{+\/?|\/?\}+$/,alias:"punctuation"},property:/\w+(?==)/,variable:{pattern:/\$[^\W\d]\w*(?:\??(?:\.\w+|\[[^\]]+\]))*/,inside:{string:{pattern:We,greedy:!0},number:Te,punctuation:/[\[\].?]/}},string:{pattern:We,greedy:!0},function:[/\w+(?=\()/,{pattern:/(\|[^\S\r\n]*)\w+/,lookbehind:!0}],boolean:/\b(?:false|true)\b/,number:Te,operator:/\?:?|<=?|>=?|==?|!=|[+*/%-]|\b(?:and|not|or)\b/,punctuation:/[{}()\[\]|.,:]/},Me.hooks.add("before-tokenize",function(Ge){var st=/\{\{.+?\}\}|\{.+?\}|\s\/\/.*|\/\*[\s\S]*?\*\//g,Qe="{literal}",Ye="{/literal}",yt=!1;Me.languages["markup-templating"].buildPlaceholders(Ge,"soy",st,function(ot){return ot===Ye&&(yt=!1),yt?!1:(ot===Qe&&(yt=!0),!0)})}),Me.hooks.add("after-tokenize",function(Ge){Me.languages["markup-templating"].tokenizePlaceholders(Ge,"soy")})}(Re)}},41186:function(ze,Ee,ue){"use strict";var ce=ue(58710);ze.exports=Pe,Pe.displayName="sparql",Pe.aliases=["rq"];function Pe(Re){Re.register(ce),Re.languages.sparql=Re.languages.extend("turtle",{boolean:/\b(?:false|true)\b/i,variable:{pattern:/[?$]\w+/,greedy:!0}}),Re.languages.insertBefore("sparql","punctuation",{keyword:[/\b(?:A|ADD|ALL|AS|ASC|ASK|BNODE|BY|CLEAR|CONSTRUCT|COPY|CREATE|DATA|DEFAULT|DELETE|DESC|DESCRIBE|DISTINCT|DROP|EXISTS|FILTER|FROM|GROUP|HAVING|INSERT|INTO|LIMIT|LOAD|MINUS|MOVE|NAMED|NOT|NOW|OFFSET|OPTIONAL|ORDER|RAND|REDUCED|SELECT|SEPARATOR|SERVICE|SILENT|STRUUID|UNION|USING|UUID|VALUES|WHERE)\b/i,/\b(?:ABS|AVG|BIND|BOUND|CEIL|COALESCE|CONCAT|CONTAINS|COUNT|DATATYPE|DAY|ENCODE_FOR_URI|FLOOR|GROUP_CONCAT|HOURS|IF|IRI|isBLANK|isIRI|isLITERAL|isNUMERIC|isURI|LANG|LANGMATCHES|LCASE|MAX|MD5|MIN|MINUTES|MONTH|REGEX|REPLACE|ROUND|sameTerm|SAMPLE|SECONDS|SHA1|SHA256|SHA384|SHA512|STR|STRAFTER|STRBEFORE|STRDT|STRENDS|STRLANG|STRLEN|STRSTARTS|SUBSTR|SUM|TIMEZONE|TZ|UCASE|URI|YEAR)\b(?=\s*\()/i,/\b(?:BASE|GRAPH|PREFIX)\b/i]}),Re.languages.rq=Re.languages.sparql}},68963:function(ze){"use strict";ze.exports=Ee,Ee.displayName="splunkSpl",Ee.aliases=[];function Ee(ue){ue.languages["splunk-spl"]={comment:/`comment\("(?:\\.|[^\\"])*"\)`/,string:{pattern:/"(?:\\.|[^\\"])*"/,greedy:!0},keyword:/\b(?:abstract|accum|addcoltotals|addinfo|addtotals|analyzefields|anomalies|anomalousvalue|anomalydetection|append|appendcols|appendcsv|appendlookup|appendpipe|arules|associate|audit|autoregress|bin|bucket|bucketdir|chart|cluster|cofilter|collect|concurrency|contingency|convert|correlate|datamodel|dbinspect|dedup|delete|delta|diff|erex|eval|eventcount|eventstats|extract|fieldformat|fields|fieldsummary|filldown|fillnull|findtypes|folderize|foreach|format|from|gauge|gentimes|geom|geomfilter|geostats|head|highlight|history|iconify|input|inputcsv|inputlookup|iplocation|join|kmeans|kv|kvform|loadjob|localize|localop|lookup|makecontinuous|makemv|makeresults|map|mcollect|metadata|metasearch|meventcollect|mstats|multikv|multisearch|mvcombine|mvexpand|nomv|outlier|outputcsv|outputlookup|outputtext|overlap|pivot|predict|rangemap|rare|regex|relevancy|reltime|rename|replace|rest|return|reverse|rex|rtorder|run|savedsearch|script|scrub|search|searchtxn|selfjoin|sendemail|set|setfields|sichart|sirare|sistats|sitimechart|sitop|sort|spath|stats|strcat|streamstats|table|tags|tail|timechart|timewrap|top|transaction|transpose|trendline|tscollect|tstats|typeahead|typelearner|typer|union|uniq|untable|where|x11|xmlkv|xmlunescape|xpath|xyseries)\b/i,"operator-word":{pattern:/\b(?:and|as|by|not|or|xor)\b/i,alias:"operator"},function:/\b\w+(?=\s*\()/,property:/\b\w+(?=\s*=(?!=))/,date:{pattern:/\b\d{1,2}\/\d{1,2}\/\d{1,4}(?:(?::\d{1,2}){3})?\b/,alias:"number"},number:/\b\d+(?:\.\d+)?\b/,boolean:/\b(?:f|false|t|true)\b/i,operator:/[<>=]=?|[-+*/%|]/,punctuation:/[()[\],]/}}},5569:function(ze){"use strict";ze.exports=Ee,Ee.displayName="sqf",Ee.aliases=[];function Ee(ue){ue.languages.sqf=ue.languages.extend("clike",{string:{pattern:/"(?:(?:"")?[^"])*"(?!")|'(?:[^'])*'/,greedy:!0},keyword:/\b(?:breakOut|breakTo|call|case|catch|default|do|echo|else|execFSM|execVM|exitWith|for|forEach|forEachMember|forEachMemberAgent|forEachMemberTeam|from|goto|if|nil|preprocessFile|preprocessFileLineNumbers|private|scopeName|spawn|step|switch|then|throw|to|try|while|with)\b/i,boolean:/\b(?:false|true)\b/i,function:/\b(?:abs|accTime|acos|action|actionIDs|actionKeys|actionKeysImages|actionKeysNames|actionKeysNamesArray|actionName|actionParams|activateAddons|activatedAddons|activateKey|add3DENConnection|add3DENEventHandler|add3DENLayer|addAction|addBackpack|addBackpackCargo|addBackpackCargoGlobal|addBackpackGlobal|addCamShake|addCuratorAddons|addCuratorCameraArea|addCuratorEditableObjects|addCuratorEditingArea|addCuratorPoints|addEditorObject|addEventHandler|addForce|addForceGeneratorRTD|addGoggles|addGroupIcon|addHandgunItem|addHeadgear|addItem|addItemCargo|addItemCargoGlobal|addItemPool|addItemToBackpack|addItemToUniform|addItemToVest|addLiveStats|addMagazine|addMagazineAmmoCargo|addMagazineCargo|addMagazineCargoGlobal|addMagazineGlobal|addMagazinePool|addMagazines|addMagazineTurret|addMenu|addMenuItem|addMissionEventHandler|addMPEventHandler|addMusicEventHandler|addOwnedMine|addPlayerScores|addPrimaryWeaponItem|addPublicVariableEventHandler|addRating|addResources|addScore|addScoreSide|addSecondaryWeaponItem|addSwitchableUnit|addTeamMember|addToRemainsCollector|addTorque|addUniform|addVehicle|addVest|addWaypoint|addWeapon|addWeaponCargo|addWeaponCargoGlobal|addWeaponGlobal|addWeaponItem|addWeaponPool|addWeaponTurret|admin|agent|agents|AGLToASL|aimedAtTarget|aimPos|airDensityCurveRTD|airDensityRTD|airplaneThrottle|airportSide|AISFinishHeal|alive|all3DENEntities|allAirports|allControls|allCurators|allCutLayers|allDead|allDeadMen|allDisplays|allGroups|allMapMarkers|allMines|allMissionObjects|allow3DMode|allowCrewInImmobile|allowCuratorLogicIgnoreAreas|allowDamage|allowDammage|allowFileOperations|allowFleeing|allowGetIn|allowSprint|allPlayers|allSimpleObjects|allSites|allTurrets|allUnits|allUnitsUAV|allVariables|ammo|ammoOnPylon|animate|animateBay|animateDoor|animatePylon|animateSource|animationNames|animationPhase|animationSourcePhase|animationState|append|apply|armoryPoints|arrayIntersect|asin|ASLToAGL|ASLToATL|assert|assignAsCargo|assignAsCargoIndex|assignAsCommander|assignAsDriver|assignAsGunner|assignAsTurret|assignCurator|assignedCargo|assignedCommander|assignedDriver|assignedGunner|assignedItems|assignedTarget|assignedTeam|assignedVehicle|assignedVehicleRole|assignItem|assignTeam|assignToAirport|atan|atan2|atg|ATLToASL|attachedObject|attachedObjects|attachedTo|attachObject|attachTo|attackEnabled|backpack|backpackCargo|backpackContainer|backpackItems|backpackMagazines|backpackSpaceFor|behaviour|benchmark|binocular|blufor|boundingBox|boundingBoxReal|boundingCenter|briefingName|buildingExit|buildingPos|buldozer_EnableRoadDiag|buldozer_IsEnabledRoadDiag|buldozer_LoadNewRoads|buldozer_reloadOperMap|buttonAction|buttonSetAction|cadetMode|callExtension|camCommand|camCommit|camCommitPrepared|camCommitted|camConstuctionSetParams|camCreate|camDestroy|cameraEffect|cameraEffectEnableHUD|cameraInterest|cameraOn|cameraView|campaignConfigFile|camPreload|camPreloaded|camPrepareBank|camPrepareDir|camPrepareDive|camPrepareFocus|camPrepareFov|camPrepareFovRange|camPreparePos|camPrepareRelPos|camPrepareTarget|camSetBank|camSetDir|camSetDive|camSetFocus|camSetFov|camSetFovRange|camSetPos|camSetRelPos|camSetTarget|camTarget|camUseNVG|canAdd|canAddItemToBackpack|canAddItemToUniform|canAddItemToVest|cancelSimpleTaskDestination|canFire|canMove|canSlingLoad|canStand|canSuspend|canTriggerDynamicSimulation|canUnloadInCombat|canVehicleCargo|captive|captiveNum|cbChecked|cbSetChecked|ceil|channelEnabled|cheatsEnabled|checkAIFeature|checkVisibility|civilian|className|clear3DENAttribute|clear3DENInventory|clearAllItemsFromBackpack|clearBackpackCargo|clearBackpackCargoGlobal|clearForcesRTD|clearGroupIcons|clearItemCargo|clearItemCargoGlobal|clearItemPool|clearMagazineCargo|clearMagazineCargoGlobal|clearMagazinePool|clearOverlay|clearRadio|clearVehicleInit|clearWeaponCargo|clearWeaponCargoGlobal|clearWeaponPool|clientOwner|closeDialog|closeDisplay|closeOverlay|collapseObjectTree|collect3DENHistory|collectiveRTD|combatMode|commandArtilleryFire|commandChat|commander|commandFire|commandFollow|commandFSM|commandGetOut|commandingMenu|commandMove|commandRadio|commandStop|commandSuppressiveFire|commandTarget|commandWatch|comment|commitOverlay|compile|compileFinal|completedFSM|composeText|configClasses|configFile|configHierarchy|configName|configNull|configProperties|configSourceAddonList|configSourceMod|configSourceModList|confirmSensorTarget|connectTerminalToUAV|controlNull|controlsGroupCtrl|copyFromClipboard|copyToClipboard|copyWaypoints|cos|count|countEnemy|countFriendly|countSide|countType|countUnknown|create3DENComposition|create3DENEntity|createAgent|createCenter|createDialog|createDiaryLink|createDiaryRecord|createDiarySubject|createDisplay|createGearDialog|createGroup|createGuardedPoint|createLocation|createMarker|createMarkerLocal|createMenu|createMine|createMissionDisplay|createMPCampaignDisplay|createSimpleObject|createSimpleTask|createSite|createSoundSource|createTask|createTeam|createTrigger|createUnit|createVehicle|createVehicleCrew|createVehicleLocal|crew|ctAddHeader|ctAddRow|ctClear|ctCurSel|ctData|ctFindHeaderRows|ctFindRowHeader|ctHeaderControls|ctHeaderCount|ctRemoveHeaders|ctRemoveRows|ctrlActivate|ctrlAddEventHandler|ctrlAngle|ctrlAutoScrollDelay|ctrlAutoScrollRewind|ctrlAutoScrollSpeed|ctrlChecked|ctrlClassName|ctrlCommit|ctrlCommitted|ctrlCreate|ctrlDelete|ctrlEnable|ctrlEnabled|ctrlFade|ctrlHTMLLoaded|ctrlIDC|ctrlIDD|ctrlMapAnimAdd|ctrlMapAnimClear|ctrlMapAnimCommit|ctrlMapAnimDone|ctrlMapCursor|ctrlMapMouseOver|ctrlMapScale|ctrlMapScreenToWorld|ctrlMapWorldToScreen|ctrlModel|ctrlModelDirAndUp|ctrlModelScale|ctrlParent|ctrlParentControlsGroup|ctrlPosition|ctrlRemoveAllEventHandlers|ctrlRemoveEventHandler|ctrlScale|ctrlSetActiveColor|ctrlSetAngle|ctrlSetAutoScrollDelay|ctrlSetAutoScrollRewind|ctrlSetAutoScrollSpeed|ctrlSetBackgroundColor|ctrlSetChecked|ctrlSetDisabledColor|ctrlSetEventHandler|ctrlSetFade|ctrlSetFocus|ctrlSetFont|ctrlSetFontH1|ctrlSetFontH1B|ctrlSetFontH2|ctrlSetFontH2B|ctrlSetFontH3|ctrlSetFontH3B|ctrlSetFontH4|ctrlSetFontH4B|ctrlSetFontH5|ctrlSetFontH5B|ctrlSetFontH6|ctrlSetFontH6B|ctrlSetFontHeight|ctrlSetFontHeightH1|ctrlSetFontHeightH2|ctrlSetFontHeightH3|ctrlSetFontHeightH4|ctrlSetFontHeightH5|ctrlSetFontHeightH6|ctrlSetFontHeightSecondary|ctrlSetFontP|ctrlSetFontPB|ctrlSetFontSecondary|ctrlSetForegroundColor|ctrlSetModel|ctrlSetModelDirAndUp|ctrlSetModelScale|ctrlSetPixelPrecision|ctrlSetPosition|ctrlSetScale|ctrlSetStructuredText|ctrlSetText|ctrlSetTextColor|ctrlSetTextColorSecondary|ctrlSetTextSecondary|ctrlSetTooltip|ctrlSetTooltipColorBox|ctrlSetTooltipColorShade|ctrlSetTooltipColorText|ctrlShow|ctrlShown|ctrlText|ctrlTextHeight|ctrlTextSecondary|ctrlTextWidth|ctrlType|ctrlVisible|ctRowControls|ctRowCount|ctSetCurSel|ctSetData|ctSetHeaderTemplate|ctSetRowTemplate|ctSetValue|ctValue|curatorAddons|curatorCamera|curatorCameraArea|curatorCameraAreaCeiling|curatorCoef|curatorEditableObjects|curatorEditingArea|curatorEditingAreaType|curatorMouseOver|curatorPoints|curatorRegisteredObjects|curatorSelected|curatorWaypointCost|current3DENOperation|currentChannel|currentCommand|currentMagazine|currentMagazineDetail|currentMagazineDetailTurret|currentMagazineTurret|currentMuzzle|currentNamespace|currentTask|currentTasks|currentThrowable|currentVisionMode|currentWaypoint|currentWeapon|currentWeaponMode|currentWeaponTurret|currentZeroing|cursorObject|cursorTarget|customChat|customRadio|cutFadeOut|cutObj|cutRsc|cutText|damage|date|dateToNumber|daytime|deActivateKey|debriefingText|debugFSM|debugLog|deg|delete3DENEntities|deleteAt|deleteCenter|deleteCollection|deleteEditorObject|deleteGroup|deleteGroupWhenEmpty|deleteIdentity|deleteLocation|deleteMarker|deleteMarkerLocal|deleteRange|deleteResources|deleteSite|deleteStatus|deleteTeam|deleteVehicle|deleteVehicleCrew|deleteWaypoint|detach|detectedMines|diag_activeMissionFSMs|diag_activeScripts|diag_activeSQFScripts|diag_activeSQSScripts|diag_captureFrame|diag_captureFrameToFile|diag_captureSlowFrame|diag_codePerformance|diag_drawMode|diag_dynamicSimulationEnd|diag_enable|diag_enabled|diag_fps|diag_fpsMin|diag_frameNo|diag_lightNewLoad|diag_list|diag_log|diag_logSlowFrame|diag_mergeConfigFile|diag_recordTurretLimits|diag_setLightNew|diag_tickTime|diag_toggle|dialog|diarySubjectExists|didJIP|didJIPOwner|difficulty|difficultyEnabled|difficultyEnabledRTD|difficultyOption|direction|directSay|disableAI|disableCollisionWith|disableConversation|disableDebriefingStats|disableMapIndicators|disableNVGEquipment|disableRemoteSensors|disableSerialization|disableTIEquipment|disableUAVConnectability|disableUserInput|displayAddEventHandler|displayCtrl|displayNull|displayParent|displayRemoveAllEventHandlers|displayRemoveEventHandler|displaySetEventHandler|dissolveTeam|distance|distance2D|distanceSqr|distributionRegion|do3DENAction|doArtilleryFire|doFire|doFollow|doFSM|doGetOut|doMove|doorPhase|doStop|doSuppressiveFire|doTarget|doWatch|drawArrow|drawEllipse|drawIcon|drawIcon3D|drawLine|drawLine3D|drawLink|drawLocation|drawPolygon|drawRectangle|drawTriangle|driver|drop|dynamicSimulationDistance|dynamicSimulationDistanceCoef|dynamicSimulationEnabled|dynamicSimulationSystemEnabled|east|edit3DENMissionAttributes|editObject|editorSetEventHandler|effectiveCommander|emptyPositions|enableAI|enableAIFeature|enableAimPrecision|enableAttack|enableAudioFeature|enableAutoStartUpRTD|enableAutoTrimRTD|enableCamShake|enableCaustics|enableChannel|enableCollisionWith|enableCopilot|enableDebriefingStats|enableDiagLegend|enableDynamicSimulation|enableDynamicSimulationSystem|enableEndDialog|enableEngineArtillery|enableEnvironment|enableFatigue|enableGunLights|enableInfoPanelComponent|enableIRLasers|enableMimics|enablePersonTurret|enableRadio|enableReload|enableRopeAttach|enableSatNormalOnDetail|enableSaving|enableSentences|enableSimulation|enableSimulationGlobal|enableStamina|enableStressDamage|enableTeamSwitch|enableTraffic|enableUAVConnectability|enableUAVWaypoints|enableVehicleCargo|enableVehicleSensor|enableWeaponDisassembly|endl|endLoadingScreen|endMission|engineOn|enginesIsOnRTD|enginesPowerRTD|enginesRpmRTD|enginesTorqueRTD|entities|environmentEnabled|estimatedEndServerTime|estimatedTimeLeft|evalObjectArgument|everyBackpack|everyContainer|exec|execEditorScript|exp|expectedDestination|exportJIPMessages|eyeDirection|eyePos|face|faction|fadeMusic|fadeRadio|fadeSound|fadeSpeech|failMission|fillWeaponsFromPool|find|findCover|findDisplay|findEditorObject|findEmptyPosition|findEmptyPositionReady|findIf|findNearestEnemy|finishMissionInit|finite|fire|fireAtTarget|firstBackpack|flag|flagAnimationPhase|flagOwner|flagSide|flagTexture|fleeing|floor|flyInHeight|flyInHeightASL|fog|fogForecast|fogParams|forceAddUniform|forceAtPositionRTD|forcedMap|forceEnd|forceFlagTexture|forceFollowRoad|forceGeneratorRTD|forceMap|forceRespawn|forceSpeed|forceWalk|forceWeaponFire|forceWeatherChange|forgetTarget|format|formation|formationDirection|formationLeader|formationMembers|formationPosition|formationTask|formatText|formLeader|freeLook|fromEditor|fuel|fullCrew|gearIDCAmmoCount|gearSlotAmmoCount|gearSlotData|get3DENActionState|get3DENAttribute|get3DENCamera|get3DENConnections|get3DENEntity|get3DENEntityID|get3DENGrid|get3DENIconsVisible|get3DENLayerEntities|get3DENLinesVisible|get3DENMissionAttribute|get3DENMouseOver|get3DENSelected|getAimingCoef|getAllEnvSoundControllers|getAllHitPointsDamage|getAllOwnedMines|getAllSoundControllers|getAmmoCargo|getAnimAimPrecision|getAnimSpeedCoef|getArray|getArtilleryAmmo|getArtilleryComputerSettings|getArtilleryETA|getAssignedCuratorLogic|getAssignedCuratorUnit|getBackpackCargo|getBleedingRemaining|getBurningValue|getCameraViewDirection|getCargoIndex|getCenterOfMass|getClientState|getClientStateNumber|getCompatiblePylonMagazines|getConnectedUAV|getContainerMaxLoad|getCursorObjectParams|getCustomAimCoef|getDammage|getDescription|getDir|getDirVisual|getDLCAssetsUsage|getDLCAssetsUsageByName|getDLCs|getDLCUsageTime|getEditorCamera|getEditorMode|getEditorObjectScope|getElevationOffset|getEngineTargetRpmRTD|getEnvSoundController|getFatigue|getFieldManualStartPage|getForcedFlagTexture|getFriend|getFSMVariable|getFuelCargo|getGroupIcon|getGroupIconParams|getGroupIcons|getHideFrom|getHit|getHitIndex|getHitPointDamage|getItemCargo|getMagazineCargo|getMarkerColor|getMarkerPos|getMarkerSize|getMarkerType|getMass|getMissionConfig|getMissionConfigValue|getMissionDLCs|getMissionLayerEntities|getMissionLayers|getModelInfo|getMousePosition|getMusicPlayedTime|getNumber|getObjectArgument|getObjectChildren|getObjectDLC|getObjectMaterials|getObjectProxy|getObjectTextures|getObjectType|getObjectViewDistance|getOxygenRemaining|getPersonUsedDLCs|getPilotCameraDirection|getPilotCameraPosition|getPilotCameraRotation|getPilotCameraTarget|getPlateNumber|getPlayerChannel|getPlayerScores|getPlayerUID|getPlayerUIDOld|getPos|getPosASL|getPosASLVisual|getPosASLW|getPosATL|getPosATLVisual|getPosVisual|getPosWorld|getPylonMagazines|getRelDir|getRelPos|getRemoteSensorsDisabled|getRepairCargo|getResolution|getRotorBrakeRTD|getShadowDistance|getShotParents|getSlingLoad|getSoundController|getSoundControllerResult|getSpeed|getStamina|getStatValue|getSuppression|getTerrainGrid|getTerrainHeightASL|getText|getTotalDLCUsageTime|getTrimOffsetRTD|getUnitLoadout|getUnitTrait|getUserMFDText|getUserMFDValue|getVariable|getVehicleCargo|getWeaponCargo|getWeaponSway|getWingsOrientationRTD|getWingsPositionRTD|getWPPos|glanceAt|globalChat|globalRadio|goggles|group|groupChat|groupFromNetId|groupIconSelectable|groupIconsVisible|groupId|groupOwner|groupRadio|groupSelectedUnits|groupSelectUnit|grpNull|gunner|gusts|halt|handgunItems|handgunMagazine|handgunWeapon|handsHit|hasInterface|hasPilotCamera|hasWeapon|hcAllGroups|hcGroupParams|hcLeader|hcRemoveAllGroups|hcRemoveGroup|hcSelected|hcSelectGroup|hcSetGroup|hcShowBar|hcShownBar|headgear|hideBody|hideObject|hideObjectGlobal|hideSelection|hint|hintC|hintCadet|hintSilent|hmd|hostMission|htmlLoad|HUDMovementLevels|humidity|image|importAllGroups|importance|in|inArea|inAreaArray|incapacitatedState|independent|inflame|inflamed|infoPanel|infoPanelComponentEnabled|infoPanelComponents|infoPanels|inGameUISetEventHandler|inheritsFrom|initAmbientLife|inPolygon|inputAction|inRangeOfArtillery|insertEditorObject|intersect|is3DEN|is3DENMultiplayer|isAbleToBreathe|isAgent|isAimPrecisionEnabled|isArray|isAutoHoverOn|isAutonomous|isAutoStartUpEnabledRTD|isAutotest|isAutoTrimOnRTD|isBleeding|isBurning|isClass|isCollisionLightOn|isCopilotEnabled|isDamageAllowed|isDedicated|isDLCAvailable|isEngineOn|isEqualTo|isEqualType|isEqualTypeAll|isEqualTypeAny|isEqualTypeArray|isEqualTypeParams|isFilePatchingEnabled|isFlashlightOn|isFlatEmpty|isForcedWalk|isFormationLeader|isGroupDeletedWhenEmpty|isHidden|isInRemainsCollector|isInstructorFigureEnabled|isIRLaserOn|isKeyActive|isKindOf|isLaserOn|isLightOn|isLocalized|isManualFire|isMarkedForCollection|isMultiplayer|isMultiplayerSolo|isNil|isNull|isNumber|isObjectHidden|isObjectRTD|isOnRoad|isPipEnabled|isPlayer|isRealTime|isRemoteExecuted|isRemoteExecutedJIP|isServer|isShowing3DIcons|isSimpleObject|isSprintAllowed|isStaminaEnabled|isSteamMission|isStreamFriendlyUIEnabled|isStressDamageEnabled|isText|isTouchingGround|isTurnedOut|isTutHintsEnabled|isUAVConnectable|isUAVConnected|isUIContext|isUniformAllowed|isVehicleCargo|isVehicleRadarOn|isVehicleSensorEnabled|isWalking|isWeaponDeployed|isWeaponRested|itemCargo|items|itemsWithMagazines|join|joinAs|joinAsSilent|joinSilent|joinString|kbAddDatabase|kbAddDatabaseTargets|kbAddTopic|kbHasTopic|kbReact|kbRemoveTopic|kbTell|kbWasSaid|keyImage|keyName|knowsAbout|land|landAt|landResult|language|laserTarget|lbAdd|lbClear|lbColor|lbColorRight|lbCurSel|lbData|lbDelete|lbIsSelected|lbPicture|lbPictureRight|lbSelection|lbSetColor|lbSetColorRight|lbSetCurSel|lbSetData|lbSetPicture|lbSetPictureColor|lbSetPictureColorDisabled|lbSetPictureColorSelected|lbSetPictureRight|lbSetPictureRightColor|lbSetPictureRightColorDisabled|lbSetPictureRightColorSelected|lbSetSelectColor|lbSetSelectColorRight|lbSetSelected|lbSetText|lbSetTextRight|lbSetTooltip|lbSetValue|lbSize|lbSort|lbSortByValue|lbText|lbTextRight|lbValue|leader|leaderboardDeInit|leaderboardGetRows|leaderboardInit|leaderboardRequestRowsFriends|leaderboardRequestRowsGlobal|leaderboardRequestRowsGlobalAroundUser|leaderboardsRequestUploadScore|leaderboardsRequestUploadScoreKeepBest|leaderboardState|leaveVehicle|libraryCredits|libraryDisclaimers|lifeState|lightAttachObject|lightDetachObject|lightIsOn|lightnings|limitSpeed|linearConversion|lineBreak|lineIntersects|lineIntersectsObjs|lineIntersectsSurfaces|lineIntersectsWith|linkItem|list|listObjects|listRemoteTargets|listVehicleSensors|ln|lnbAddArray|lnbAddColumn|lnbAddRow|lnbClear|lnbColor|lnbColorRight|lnbCurSelRow|lnbData|lnbDeleteColumn|lnbDeleteRow|lnbGetColumnsPosition|lnbPicture|lnbPictureRight|lnbSetColor|lnbSetColorRight|lnbSetColumnsPos|lnbSetCurSelRow|lnbSetData|lnbSetPicture|lnbSetPictureColor|lnbSetPictureColorRight|lnbSetPictureColorSelected|lnbSetPictureColorSelectedRight|lnbSetPictureRight|lnbSetText|lnbSetTextRight|lnbSetValue|lnbSize|lnbSort|lnbSortByValue|lnbText|lnbTextRight|lnbValue|load|loadAbs|loadBackpack|loadFile|loadGame|loadIdentity|loadMagazine|loadOverlay|loadStatus|loadUniform|loadVest|local|localize|locationNull|locationPosition|lock|lockCameraTo|lockCargo|lockDriver|locked|lockedCargo|lockedDriver|lockedTurret|lockIdentity|lockTurret|lockWP|log|logEntities|logNetwork|logNetworkTerminate|lookAt|lookAtPos|magazineCargo|magazines|magazinesAllTurrets|magazinesAmmo|magazinesAmmoCargo|magazinesAmmoFull|magazinesDetail|magazinesDetailBackpack|magazinesDetailUniform|magazinesDetailVest|magazinesTurret|magazineTurretAmmo|mapAnimAdd|mapAnimClear|mapAnimCommit|mapAnimDone|mapCenterOnCamera|mapGridPosition|markAsFinishedOnSteam|markerAlpha|markerBrush|markerColor|markerDir|markerPos|markerShape|markerSize|markerText|markerType|max|members|menuAction|menuAdd|menuChecked|menuClear|menuCollapse|menuData|menuDelete|menuEnable|menuEnabled|menuExpand|menuHover|menuPicture|menuSetAction|menuSetCheck|menuSetData|menuSetPicture|menuSetValue|menuShortcut|menuShortcutText|menuSize|menuSort|menuText|menuURL|menuValue|min|mineActive|mineDetectedBy|missionConfigFile|missionDifficulty|missionName|missionNamespace|missionStart|missionVersion|modelToWorld|modelToWorldVisual|modelToWorldVisualWorld|modelToWorldWorld|modParams|moonIntensity|moonPhase|morale|move|move3DENCamera|moveInAny|moveInCargo|moveInCommander|moveInDriver|moveInGunner|moveInTurret|moveObjectToEnd|moveOut|moveTime|moveTo|moveToCompleted|moveToFailed|musicVolume|name|nameSound|nearEntities|nearestBuilding|nearestLocation|nearestLocations|nearestLocationWithDubbing|nearestObject|nearestObjects|nearestTerrainObjects|nearObjects|nearObjectsReady|nearRoads|nearSupplies|nearTargets|needReload|netId|netObjNull|newOverlay|nextMenuItemIndex|nextWeatherChange|nMenuItems|numberOfEnginesRTD|numberToDate|objectCurators|objectFromNetId|objectParent|objNull|objStatus|onBriefingGear|onBriefingGroup|onBriefingNotes|onBriefingPlan|onBriefingTeamSwitch|onCommandModeChanged|onDoubleClick|onEachFrame|onGroupIconClick|onGroupIconOverEnter|onGroupIconOverLeave|onHCGroupSelectionChanged|onMapSingleClick|onPlayerConnected|onPlayerDisconnected|onPreloadFinished|onPreloadStarted|onShowNewObject|onTeamSwitch|openCuratorInterface|openDLCPage|openDSInterface|openMap|openSteamApp|openYoutubeVideo|opfor|orderGetIn|overcast|overcastForecast|owner|param|params|parseNumber|parseSimpleArray|parseText|parsingNamespace|particlesQuality|pi|pickWeaponPool|pitch|pixelGrid|pixelGridBase|pixelGridNoUIScale|pixelH|pixelW|playableSlotsNumber|playableUnits|playAction|playActionNow|player|playerRespawnTime|playerSide|playersNumber|playGesture|playMission|playMove|playMoveNow|playMusic|playScriptedMission|playSound|playSound3D|position|positionCameraToWorld|posScreenToWorld|posWorldToScreen|ppEffectAdjust|ppEffectCommit|ppEffectCommitted|ppEffectCreate|ppEffectDestroy|ppEffectEnable|ppEffectEnabled|ppEffectForceInNVG|precision|preloadCamera|preloadObject|preloadSound|preloadTitleObj|preloadTitleRsc|primaryWeapon|primaryWeaponItems|primaryWeaponMagazine|priority|processDiaryLink|processInitCommands|productVersion|profileName|profileNamespace|profileNameSteam|progressLoadingScreen|progressPosition|progressSetPosition|publicVariable|publicVariableClient|publicVariableServer|pushBack|pushBackUnique|putWeaponPool|queryItemsPool|queryMagazinePool|queryWeaponPool|rad|radioChannelAdd|radioChannelCreate|radioChannelRemove|radioChannelSetCallSign|radioChannelSetLabel|radioVolume|rain|rainbow|random|rank|rankId|rating|rectangular|registeredTasks|registerTask|reload|reloadEnabled|remoteControl|remoteExec|remoteExecCall|remoteExecutedOwner|remove3DENConnection|remove3DENEventHandler|remove3DENLayer|removeAction|removeAll3DENEventHandlers|removeAllActions|removeAllAssignedItems|removeAllContainers|removeAllCuratorAddons|removeAllCuratorCameraAreas|removeAllCuratorEditingAreas|removeAllEventHandlers|removeAllHandgunItems|removeAllItems|removeAllItemsWithMagazines|removeAllMissionEventHandlers|removeAllMPEventHandlers|removeAllMusicEventHandlers|removeAllOwnedMines|removeAllPrimaryWeaponItems|removeAllWeapons|removeBackpack|removeBackpackGlobal|removeCuratorAddons|removeCuratorCameraArea|removeCuratorEditableObjects|removeCuratorEditingArea|removeDrawIcon|removeDrawLinks|removeEventHandler|removeFromRemainsCollector|removeGoggles|removeGroupIcon|removeHandgunItem|removeHeadgear|removeItem|removeItemFromBackpack|removeItemFromUniform|removeItemFromVest|removeItems|removeMagazine|removeMagazineGlobal|removeMagazines|removeMagazinesTurret|removeMagazineTurret|removeMenuItem|removeMissionEventHandler|removeMPEventHandler|removeMusicEventHandler|removeOwnedMine|removePrimaryWeaponItem|removeSecondaryWeaponItem|removeSimpleTask|removeSwitchableUnit|removeTeamMember|removeUniform|removeVest|removeWeapon|removeWeaponAttachmentCargo|removeWeaponCargo|removeWeaponGlobal|removeWeaponTurret|reportRemoteTarget|requiredVersion|resetCamShake|resetSubgroupDirection|resistance|resize|resources|respawnVehicle|restartEditorCamera|reveal|revealMine|reverse|reversedMouseY|roadAt|roadsConnectedTo|roleDescription|ropeAttachedObjects|ropeAttachedTo|ropeAttachEnabled|ropeAttachTo|ropeCreate|ropeCut|ropeDestroy|ropeDetach|ropeEndPosition|ropeLength|ropes|ropeUnwind|ropeUnwound|rotorsForcesRTD|rotorsRpmRTD|round|runInitScript|safeZoneH|safeZoneW|safeZoneWAbs|safeZoneX|safeZoneXAbs|safeZoneY|save3DENInventory|saveGame|saveIdentity|saveJoysticks|saveOverlay|saveProfileNamespace|saveStatus|saveVar|savingEnabled|say|say2D|say3D|score|scoreSide|screenshot|screenToWorld|scriptDone|scriptName|scriptNull|scudState|secondaryWeapon|secondaryWeaponItems|secondaryWeaponMagazine|select|selectBestPlaces|selectDiarySubject|selectedEditorObjects|selectEditorObject|selectionNames|selectionPosition|selectLeader|selectMax|selectMin|selectNoPlayer|selectPlayer|selectRandom|selectRandomWeighted|selectWeapon|selectWeaponTurret|sendAUMessage|sendSimpleCommand|sendTask|sendTaskResult|sendUDPMessage|serverCommand|serverCommandAvailable|serverCommandExecutable|serverName|serverTime|set|set3DENAttribute|set3DENAttributes|set3DENGrid|set3DENIconsVisible|set3DENLayer|set3DENLinesVisible|set3DENLogicType|set3DENMissionAttribute|set3DENMissionAttributes|set3DENModelsVisible|set3DENObjectType|set3DENSelected|setAccTime|setActualCollectiveRTD|setAirplaneThrottle|setAirportSide|setAmmo|setAmmoCargo|setAmmoOnPylon|setAnimSpeedCoef|setAperture|setApertureNew|setArmoryPoints|setAttributes|setAutonomous|setBehaviour|setBleedingRemaining|setBrakesRTD|setCameraInterest|setCamShakeDefParams|setCamShakeParams|setCamUseTI|setCaptive|setCenterOfMass|setCollisionLight|setCombatMode|setCompassOscillation|setConvoySeparation|setCuratorCameraAreaCeiling|setCuratorCoef|setCuratorEditingAreaType|setCuratorWaypointCost|setCurrentChannel|setCurrentTask|setCurrentWaypoint|setCustomAimCoef|setCustomWeightRTD|setDamage|setDammage|setDate|setDebriefingText|setDefaultCamera|setDestination|setDetailMapBlendPars|setDir|setDirection|setDrawIcon|setDriveOnPath|setDropInterval|setDynamicSimulationDistance|setDynamicSimulationDistanceCoef|setEditorMode|setEditorObjectScope|setEffectCondition|setEngineRpmRTD|setFace|setFaceAnimation|setFatigue|setFeatureType|setFlagAnimationPhase|setFlagOwner|setFlagSide|setFlagTexture|setFog|setForceGeneratorRTD|setFormation|setFormationTask|setFormDir|setFriend|setFromEditor|setFSMVariable|setFuel|setFuelCargo|setGroupIcon|setGroupIconParams|setGroupIconsSelectable|setGroupIconsVisible|setGroupId|setGroupIdGlobal|setGroupOwner|setGusts|setHideBehind|setHit|setHitIndex|setHitPointDamage|setHorizonParallaxCoef|setHUDMovementLevels|setIdentity|setImportance|setInfoPanel|setLeader|setLightAmbient|setLightAttenuation|setLightBrightness|setLightColor|setLightDayLight|setLightFlareMaxDistance|setLightFlareSize|setLightIntensity|setLightnings|setLightUseFlare|setLocalWindParams|setMagazineTurretAmmo|setMarkerAlpha|setMarkerAlphaLocal|setMarkerBrush|setMarkerBrushLocal|setMarkerColor|setMarkerColorLocal|setMarkerDir|setMarkerDirLocal|setMarkerPos|setMarkerPosLocal|setMarkerShape|setMarkerShapeLocal|setMarkerSize|setMarkerSizeLocal|setMarkerText|setMarkerTextLocal|setMarkerType|setMarkerTypeLocal|setMass|setMimic|setMousePosition|setMusicEffect|setMusicEventHandler|setName|setNameSound|setObjectArguments|setObjectMaterial|setObjectMaterialGlobal|setObjectProxy|setObjectTexture|setObjectTextureGlobal|setObjectViewDistance|setOvercast|setOwner|setOxygenRemaining|setParticleCircle|setParticleClass|setParticleFire|setParticleParams|setParticleRandom|setPilotCameraDirection|setPilotCameraRotation|setPilotCameraTarget|setPilotLight|setPiPEffect|setPitch|setPlateNumber|setPlayable|setPlayerRespawnTime|setPos|setPosASL|setPosASL2|setPosASLW|setPosATL|setPosition|setPosWorld|setPylonLoadOut|setPylonsPriority|setRadioMsg|setRain|setRainbow|setRandomLip|setRank|setRectangular|setRepairCargo|setRotorBrakeRTD|setShadowDistance|setShotParents|setSide|setSimpleTaskAlwaysVisible|setSimpleTaskCustomData|setSimpleTaskDescription|setSimpleTaskDestination|setSimpleTaskTarget|setSimpleTaskType|setSimulWeatherLayers|setSize|setSkill|setSlingLoad|setSoundEffect|setSpeaker|setSpeech|setSpeedMode|setStamina|setStaminaScheme|setStatValue|setSuppression|setSystemOfUnits|setTargetAge|setTaskMarkerOffset|setTaskResult|setTaskState|setTerrainGrid|setText|setTimeMultiplier|setTitleEffect|setToneMapping|setToneMappingParams|setTrafficDensity|setTrafficDistance|setTrafficGap|setTrafficSpeed|setTriggerActivation|setTriggerArea|setTriggerStatements|setTriggerText|setTriggerTimeout|setTriggerType|setType|setUnconscious|setUnitAbility|setUnitLoadout|setUnitPos|setUnitPosWeak|setUnitRank|setUnitRecoilCoefficient|setUnitTrait|setUnloadInCombat|setUserActionText|setUserMFDText|setUserMFDValue|setVariable|setVectorDir|setVectorDirAndUp|setVectorUp|setVehicleAmmo|setVehicleAmmoDef|setVehicleArmor|setVehicleCargo|setVehicleId|setVehicleInit|setVehicleLock|setVehiclePosition|setVehicleRadar|setVehicleReceiveRemoteTargets|setVehicleReportOwnPosition|setVehicleReportRemoteTargets|setVehicleTIPars|setVehicleVarName|setVelocity|setVelocityModelSpace|setVelocityTransformation|setViewDistance|setVisibleIfTreeCollapsed|setWantedRpmRTD|setWaves|setWaypointBehaviour|setWaypointCombatMode|setWaypointCompletionRadius|setWaypointDescription|setWaypointForceBehaviour|setWaypointFormation|setWaypointHousePosition|setWaypointLoiterRadius|setWaypointLoiterType|setWaypointName|setWaypointPosition|setWaypointScript|setWaypointSpeed|setWaypointStatements|setWaypointTimeout|setWaypointType|setWaypointVisible|setWeaponReloadingTime|setWind|setWindDir|setWindForce|setWindStr|setWingForceScaleRTD|setWPPos|show3DIcons|showChat|showCinemaBorder|showCommandingMenu|showCompass|showCuratorCompass|showGPS|showHUD|showLegend|showMap|shownArtilleryComputer|shownChat|shownCompass|shownCuratorCompass|showNewEditorObject|shownGPS|shownHUD|shownMap|shownPad|shownRadio|shownScoretable|shownUAVFeed|shownWarrant|shownWatch|showPad|showRadio|showScoretable|showSubtitles|showUAVFeed|showWarrant|showWatch|showWaypoint|showWaypoints|side|sideAmbientLife|sideChat|sideEmpty|sideEnemy|sideFriendly|sideLogic|sideRadio|sideUnknown|simpleTasks|simulationEnabled|simulCloudDensity|simulCloudOcclusion|simulInClouds|simulWeatherSync|sin|size|sizeOf|skill|skillFinal|skipTime|sleep|sliderPosition|sliderRange|sliderSetPosition|sliderSetRange|sliderSetSpeed|sliderSpeed|slingLoadAssistantShown|soldierMagazines|someAmmo|sort|soundVolume|speaker|speed|speedMode|splitString|sqrt|squadParams|stance|startLoadingScreen|stop|stopEngineRTD|stopped|str|sunOrMoon|supportInfo|suppressFor|surfaceIsWater|surfaceNormal|surfaceType|swimInDepth|switchableUnits|switchAction|switchCamera|switchGesture|switchLight|switchMove|synchronizedObjects|synchronizedTriggers|synchronizedWaypoints|synchronizeObjectsAdd|synchronizeObjectsRemove|synchronizeTrigger|synchronizeWaypoint|systemChat|systemOfUnits|tan|targetKnowledge|targets|targetsAggregate|targetsQuery|taskAlwaysVisible|taskChildren|taskCompleted|taskCustomData|taskDescription|taskDestination|taskHint|taskMarkerOffset|taskNull|taskParent|taskResult|taskState|taskType|teamMember|teamMemberNull|teamName|teams|teamSwitch|teamSwitchEnabled|teamType|terminate|terrainIntersect|terrainIntersectASL|terrainIntersectAtASL|text|textLog|textLogFormat|tg|time|timeMultiplier|titleCut|titleFadeOut|titleObj|titleRsc|titleText|toArray|toFixed|toLower|toString|toUpper|triggerActivated|triggerActivation|triggerArea|triggerAttachedVehicle|triggerAttachObject|triggerAttachVehicle|triggerDynamicSimulation|triggerStatements|triggerText|triggerTimeout|triggerTimeoutCurrent|triggerType|turretLocal|turretOwner|turretUnit|tvAdd|tvClear|tvCollapse|tvCollapseAll|tvCount|tvCurSel|tvData|tvDelete|tvExpand|tvExpandAll|tvPicture|tvPictureRight|tvSetColor|tvSetCurSel|tvSetData|tvSetPicture|tvSetPictureColor|tvSetPictureColorDisabled|tvSetPictureColorSelected|tvSetPictureRight|tvSetPictureRightColor|tvSetPictureRightColorDisabled|tvSetPictureRightColorSelected|tvSetSelectColor|tvSetText|tvSetTooltip|tvSetValue|tvSort|tvSortByValue|tvText|tvTooltip|tvValue|type|typeName|typeOf|UAVControl|uiNamespace|uiSleep|unassignCurator|unassignItem|unassignTeam|unassignVehicle|underwater|uniform|uniformContainer|uniformItems|uniformMagazines|unitAddons|unitAimPosition|unitAimPositionVisual|unitBackpack|unitIsUAV|unitPos|unitReady|unitRecoilCoefficient|units|unitsBelowHeight|unlinkItem|unlockAchievement|unregisterTask|updateDrawIcon|updateMenuItem|updateObjectTree|useAIOperMapObstructionTest|useAISteeringComponent|useAudioTimeForMoves|userInputDisabled|vectorAdd|vectorCos|vectorCrossProduct|vectorDiff|vectorDir|vectorDirVisual|vectorDistance|vectorDistanceSqr|vectorDotProduct|vectorFromTo|vectorMagnitude|vectorMagnitudeSqr|vectorModelToWorld|vectorModelToWorldVisual|vectorMultiply|vectorNormalized|vectorUp|vectorUpVisual|vectorWorldToModel|vectorWorldToModelVisual|vehicle|vehicleCargoEnabled|vehicleChat|vehicleRadio|vehicleReceiveRemoteTargets|vehicleReportOwnPosition|vehicleReportRemoteTargets|vehicles|vehicleVarName|velocity|velocityModelSpace|verifySignature|vest|vestContainer|vestItems|vestMagazines|viewDistance|visibleCompass|visibleGPS|visibleMap|visiblePosition|visiblePositionASL|visibleScoretable|visibleWatch|waitUntil|waves|waypointAttachedObject|waypointAttachedVehicle|waypointAttachObject|waypointAttachVehicle|waypointBehaviour|waypointCombatMode|waypointCompletionRadius|waypointDescription|waypointForceBehaviour|waypointFormation|waypointHousePosition|waypointLoiterRadius|waypointLoiterType|waypointName|waypointPosition|waypoints|waypointScript|waypointsEnabledUAV|waypointShow|waypointSpeed|waypointStatements|waypointTimeout|waypointTimeoutCurrent|waypointType|waypointVisible|weaponAccessories|weaponAccessoriesCargo|weaponCargo|weaponDirection|weaponInertia|weaponLowered|weapons|weaponsItems|weaponsItemsCargo|weaponState|weaponsTurret|weightRTD|west|WFSideText|wind|windDir|windRTD|windStr|wingsForcesRTD|worldName|worldSize|worldToModel|worldToModelVisual|worldToScreen)\b/i,number:/(?:\$|\b0x)[\da-f]+\b|(?:\B\.\d+|\b\d+(?:\.\d+)?)(?:e[+-]?\d+)?\b/i,operator:/##|>>|&&|\|\||[!=<>]=?|[-+*/%#^]|\b(?:and|mod|not|or)\b/i,"magic-variable":{pattern:/\b(?:this|thisList|thisTrigger|_exception|_fnc_scriptName|_fnc_scriptNameParent|_forEachIndex|_this|_thisEventHandler|_thisFSM|_thisScript|_x)\b/i,alias:"keyword"},constant:/\bDIK(?:_[a-z\d]+)+\b/i}),ue.languages.insertBefore("sqf","string",{macro:{pattern:/(^[ \t]*)#[a-z](?:[^\r\n\\]|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{directive:{pattern:/#[a-z]+\b/i,alias:"keyword"},comment:ue.languages.sqf.comment}}}),delete ue.languages.sqf["class-name"]}},69435:function(ze){"use strict";ze.exports=Ee,Ee.displayName="sql",Ee.aliases=[];function Ee(ue){ue.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/}}},42766:function(ze){"use strict";ze.exports=Ee,Ee.displayName="squirrel",Ee.aliases=[];function Ee(ue){ue.languages.squirrel=ue.languages.extend("clike",{comment:[ue.languages.clike.comment[0],{pattern:/(^|[^\\:])(?:\/\/|#).*/,lookbehind:!0,greedy:!0}],string:{pattern:/(^|[^\\"'@])(?:@"(?:[^"]|"")*"(?!")|"(?:[^\\\r\n"]|\\.)*")/,lookbehind:!0,greedy:!0},"class-name":{pattern:/(\b(?:class|enum|extends|instanceof)\s+)\w+(?:\.\w+)*/,lookbehind:!0,inside:{punctuation:/\./}},keyword:/\b(?:__FILE__|__LINE__|base|break|case|catch|class|clone|const|constructor|continue|default|delete|else|enum|extends|for|foreach|function|if|in|instanceof|local|null|resume|return|static|switch|this|throw|try|typeof|while|yield)\b/,number:/\b(?:0x[0-9a-fA-F]+|\d+(?:\.(?:\d+|[eE][+-]?\d+))?)\b/,operator:/\+\+|--|<=>|<[-<]|>>>?|&&?|\|\|?|[-+*/%!=<>]=?|[~^]|::?/,punctuation:/[(){}\[\],;.]/}),ue.languages.insertBefore("squirrel","string",{char:{pattern:/(^|[^\\"'])'(?:[^\\']|\\(?:[xuU][0-9a-fA-F]{0,8}|[\s\S]))'/,lookbehind:!0,greedy:!0}}),ue.languages.insertBefore("squirrel","operator",{"attribute-punctuation":{pattern:/<\/|\/>/,alias:"important"},lambda:{pattern:/@(?=\()/,alias:"operator"}})}},46449:function(ze){"use strict";ze.exports=Ee,Ee.displayName="stan",Ee.aliases=[];function Ee(ue){(function(ce){var Pe=/\b(?:algebra_solver|algebra_solver_newton|integrate_1d|integrate_ode|integrate_ode_bdf|integrate_ode_rk45|map_rect|ode_(?:adams|bdf|ckrk|rk45)(?:_tol)?|ode_adjoint_tol_ctl|reduce_sum|reduce_sum_static)\b/;ce.languages.stan={comment:/\/\/.*|\/\*[\s\S]*?\*\/|#(?!include).*/,string:{pattern:/"[\x20\x21\x23-\x5B\x5D-\x7E]*"/,greedy:!0},directive:{pattern:/^([ \t]*)#include\b.*/m,lookbehind:!0,alias:"property"},"function-arg":{pattern:RegExp("("+Pe.source+/\s*\(\s*/.source+")"+/[a-zA-Z]\w*/.source),lookbehind:!0,alias:"function"},constraint:{pattern:/(\b(?:int|matrix|real|row_vector|vector)\s*)<[^<>]*>/,lookbehind:!0,inside:{expression:{pattern:/(=\s*)\S(?:\S|\s+(?!\s))*?(?=\s*(?:>$|,\s*\w+\s*=))/,lookbehind:!0,inside:null},property:/\b[a-z]\w*(?=\s*=)/i,operator:/=/,punctuation:/^<|>$|,/}},keyword:[{pattern:/\bdata(?=\s*\{)|\b(?:functions|generated|model|parameters|quantities|transformed)\b/,alias:"program-block"},/\b(?:array|break|cholesky_factor_corr|cholesky_factor_cov|complex|continue|corr_matrix|cov_matrix|data|else|for|if|in|increment_log_prob|int|matrix|ordered|positive_ordered|print|real|reject|return|row_vector|simplex|target|unit_vector|vector|void|while)\b/,Pe],function:/\b[a-z]\w*(?=\s*\()/i,number:/(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:E[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,boolean:/\b(?:false|true)\b/,operator:/<-|\.[*/]=?|\|\|?|&&|[!=<>+\-*/]=?|['^%~?:]/,punctuation:/[()\[\]{},;]/},ce.languages.stan.constraint.inside.expression.inside=ce.languages.stan})(ue)}},89032:function(ze){"use strict";ze.exports=Ee,Ee.displayName="stylus",Ee.aliases=[];function Ee(ue){(function(ce){var Pe={pattern:/(\b\d+)(?:%|[a-z]+)/,lookbehind:!0},Re={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0},Me={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},url:{pattern:/\burl\((["']?).*?\1\)/i,greedy:!0},string:{pattern:/("|')(?:(?!\1)[^\\\r\n]|\\(?:\r\n|[\s\S]))*\1/,greedy:!0},interpolation:null,func:null,important:/\B!(?:important|optional)\b/i,keyword:{pattern:/(^|\s+)(?:(?:else|for|if|return|unless)(?=\s|$)|@[\w-]+)/,lookbehind:!0},hexcode:/#[\da-f]{3,6}/i,color:[/\b(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)\b/i,{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:Pe,number:Re,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:Pe,boolean:/\b(?:false|true)\b/,operator:[/~|[+!\/%<>?=]=?|[-:]=|\*[*=]?|\.{2,3}|&&|\|\||\B-\B|\b(?:and|in|is(?: a| defined| not|nt)?|not|or)\b/],number:Re,punctuation:/[{}()\[\];:,]/};Me.interpolation={pattern:/\{[^\r\n}:]+\}/,alias:"variable",inside:{delimiter:{pattern:/^\{|\}$/,alias:"punctuation"},rest:Me}},Me.func={pattern:/[\w-]+\([^)]*\).*/,inside:{function:/^[^(]+/,rest:Me}},ce.languages.stylus={"atrule-declaration":{pattern:/(^[ \t]*)@.+/m,lookbehind:!0,inside:{atrule:/^@[\w-]+/,rest:Me}},"variable-declaration":{pattern:/(^[ \t]*)[\w$-]+\s*.?=[ \t]*(?:\{[^{}]*\}|\S.*|$)/m,lookbehind:!0,inside:{variable:/^\S+/,rest:Me}},statement:{pattern:/(^[ \t]*)(?:else|for|if|return|unless)[ \t].+/m,lookbehind:!0,inside:{keyword:/^\S+/,rest:Me}},"property-declaration":{pattern:/((?:^|\{)([ \t]*))(?:[\w-]|\{[^}\r\n]+\})+(?:\s*:\s*|[ \t]+)(?!\s)[^{\r\n]*(?:;|[^{\r\n,]$(?!(?:\r?\n|\r)(?:\{|\2[ \t])))/m,lookbehind:!0,inside:{property:{pattern:/^[^\s:]+/,inside:{interpolation:Me.interpolation}},rest:Me}},selector:{pattern:/(^[ \t]*)(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)(?:(?:\r?\n|\r)(?:\1(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)))*(?:,$|\{|(?=(?:\r?\n|\r)(?:\{|\1[ \t])))/m,lookbehind:!0,inside:{interpolation:Me.interpolation,comment:Me.comment,punctuation:/[{},]/}},func:Me.func,string:Me.string,comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},interpolation:Me.interpolation,punctuation:/[{}()\[\];:.]/}})(ue)}},40241:function(ze){"use strict";ze.exports=Ee,Ee.displayName="swift",Ee.aliases=[];function Ee(ue){ue.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+(/(?:elseif|if)\b/.source+"(?:[ ]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+")+"|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},ue.languages.swift["string-literal"].forEach(function(ce){ce.inside.interpolation.inside=ue.languages.swift})}},24812:function(ze){"use strict";ze.exports=Ee,Ee.displayName="systemd",Ee.aliases=[];function Ee(ue){(function(ce){var Pe={pattern:/^[;#].*/m,greedy:!0},Re=/"(?:[^\r\n"\\]|\\(?:[^\r]|\r\n?))*"(?!\S)/.source;ce.languages.systemd={comment:Pe,section:{pattern:/^\[[^\n\r\[\]]*\](?=[ \t]*$)/m,greedy:!0,inside:{punctuation:/^\[|\]$/,"section-name":{pattern:/[\s\S]+/,alias:"selector"}}},key:{pattern:/^[^\s=]+(?=[ \t]*=)/m,greedy:!0,alias:"attr-name"},value:{pattern:RegExp(/(=[ \t]*(?!\s))/.source+"(?:"+Re+`|(?=[^"\r
|
|
|
]))(?:`+(/[^\s\\]/.source+'|[ ]+(?:(?![ "])|'+Re+")|"+/\\[\r\n]+(?:[#;].*[\r\n]+)*(?![#;])/.source)+")*"),lookbehind:!0,greedy:!0,alias:"attr-value",inside:{comment:Pe,quoted:{pattern:RegExp(/(^|\s)/.source+Re),lookbehind:!0,greedy:!0},punctuation:/\\$/m,boolean:{pattern:/^(?:false|no|off|on|true|yes)$/,greedy:!0}}},punctuation:/=/}})(ue)}},16747:function(ze,Ee,ue){"use strict";var ce=ue(73584),Pe=ue(87648);ze.exports=Re,Re.displayName="t4Cs",Re.aliases=[];function Re(Me){Me.register(ce),Me.register(Pe),Me.languages.t4=Me.languages["t4-cs"]=Me.languages["t4-templating"].createT4("csharp")}},73584:function(ze){"use strict";ze.exports=Ee,Ee.displayName="t4Templating",Ee.aliases=[];function Ee(ue){(function(ce){function Pe(Me,We,Te){return{pattern:RegExp("<#"+Me+"[\\s\\S]*?#>"),alias:"block",inside:{delimiter:{pattern:RegExp("^<#"+Me+"|#>$"),alias:"important"},content:{pattern:/[\s\S]+/,inside:We,alias:Te}}}}function Re(Me){var We=ce.languages[Me],Te="language-"+Me;return{block:{pattern:/<#[\s\S]+?#>/,inside:{directive:Pe("@",{"attr-value":{pattern:/=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+)/,inside:{punctuation:/^=|^["']|["']$/}},keyword:/\b\w+(?=\s)/,"attr-name":/\b\w+/}),expression:Pe("=",We,Te),"class-feature":Pe("\\+",We,Te),standard:Pe("",We,Te)}}}}ce.languages["t4-templating"]=Object.defineProperty({},"createT4",{value:Re})})(ue)}},79243:function(ze,Ee,ue){"use strict";var ce=ue(73584),Pe=ue(55686);ze.exports=Re,Re.displayName="t4Vb",Re.aliases=[];function Re(Me){Me.register(ce),Me.register(Pe),Me.languages["t4-vb"]=Me.languages["t4-templating"].createT4("vbnet")}},31788:function(ze,Ee,ue){"use strict";var ce=ue(14409);ze.exports=Pe,Pe.displayName="tap",Pe.aliases=[];function Pe(Re){Re.register(ce),Re.languages.tap={fail:/not ok[^#{\n\r]*/,pass:/ok[^#{\n\r]*/,pragma:/pragma [+-][a-z]+/,bailout:/bail out!.*/i,version:/TAP version \d+/i,plan:/\b\d+\.\.\d+(?: +#.*)?/,subtest:{pattern:/# Subtest(?:: .*)?/,greedy:!0},punctuation:/[{}]/,directive:/#.*/,yamlish:{pattern:/(^[ \t]*)---[\s\S]*?[\r\n][ \t]*\.\.\.$/m,lookbehind:!0,inside:Re.languages.yaml,alias:"language-yaml"}}}},60871:function(ze){"use strict";ze.exports=Ee,Ee.displayName="tcl",Ee.aliases=[];function Ee(ue){ue.languages.tcl={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0},string:{pattern:/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"/,greedy:!0},variable:[{pattern:/(\$)(?:::)?(?:[a-zA-Z0-9]+::)*\w+/,lookbehind:!0},{pattern:/(\$)\{[^}]+\}/,lookbehind:!0},{pattern:/(^[\t ]*set[ \t]+)(?:::)?(?:[a-zA-Z0-9]+::)*\w+/m,lookbehind:!0}],function:{pattern:/(^[\t ]*proc[ \t]+)\S+/m,lookbehind:!0},builtin:[{pattern:/(^[\t ]*)(?:break|class|continue|error|eval|exit|for|foreach|if|proc|return|switch|while)\b/m,lookbehind:!0},/\b(?:else|elseif)\b/],scope:{pattern:/(^[\t ]*)(?:global|upvar|variable)\b/m,lookbehind:!0,alias:"constant"},keyword:{pattern:/(^[\t ]*|\[)(?:Safe_Base|Tcl|after|append|apply|array|auto_(?:execok|import|load|mkindex|qualify|reset)|automkindex_old|bgerror|binary|catch|cd|chan|clock|close|concat|dde|dict|encoding|eof|exec|expr|fblocked|fconfigure|fcopy|file(?:event|name)?|flush|gets|glob|history|http|incr|info|interp|join|lappend|lassign|lindex|linsert|list|llength|load|lrange|lrepeat|lreplace|lreverse|lsearch|lset|lsort|math(?:func|op)|memory|msgcat|namespace|open|package|parray|pid|pkg_mkIndex|platform|puts|pwd|re_syntax|read|refchan|regexp|registry|regsub|rename|scan|seek|set|socket|source|split|string|subst|tcl(?:_endOfWord|_findLibrary|startOf(?:Next|Previous)Word|test|vars|wordBreak(?:After|Before))|tell|time|tm|trace|unknown|unload|unset|update|uplevel|vwait)\b/m,lookbehind:!0},operator:/!=?|\*\*?|==|&&?|\|\|?|<[=<]?|>[=>]?|[-+~\/%?^]|\b(?:eq|in|ne|ni)\b/,punctuation:/[{}()\[\]]/}}},21023:function(ze){"use strict";ze.exports=Ee,Ee.displayName="textile",Ee.aliases=[];function Ee(ue){(function(ce){var Pe=/\([^|()\n]+\)|\[[^\]\n]+\]|\{[^}\n]+\}/.source,Re=/\)|\((?![^|()\n]+\))/.source;function Me(yt,ot){return RegExp(yt.replace(/<MOD>/g,function(){return"(?:"+Pe+")"}).replace(/<PAR>/g,function(){return"(?:"+Re+")"}),ot||"")}var We={css:{pattern:/\{[^{}]+\}/,inside:{rest:ce.languages.css}},"class-id":{pattern:/(\()[^()]+(?=\))/,lookbehind:!0,alias:"attr-value"},lang:{pattern:/(\[)[^\[\]]+(?=\])/,lookbehind:!0,alias:"attr-value"},punctuation:/[\\\/]\d+|\S/},Te=ce.languages.textile=ce.languages.extend("markup",{phrase:{pattern:/(^|\r|\n)\S[\s\S]*?(?=$|\r?\n\r?\n|\r\r)/,lookbehind:!0,inside:{"block-tag":{pattern:Me(/^[a-z]\w*(?:<MOD>|<PAR>|[<>=])*\./.source),inside:{modifier:{pattern:Me(/(^[a-z]\w*)(?:<MOD>|<PAR>|[<>=])+(?=\.)/.source),lookbehind:!0,inside:We},tag:/^[a-z]\w*/,punctuation:/\.$/}},list:{pattern:Me(/^[*#]+<MOD>*\s+\S.*/.source,"m"),inside:{modifier:{pattern:Me(/(^[*#]+)<MOD>+/.source),lookbehind:!0,inside:We},punctuation:/^[*#]+/}},table:{pattern:Me(/^(?:(?:<MOD>|<PAR>|[<>=^~])+\.\s*)?(?:\|(?:(?:<MOD>|<PAR>|[<>=^~_]|[\\/]\d+)+\.|(?!(?:<MOD>|<PAR>|[<>=^~_]|[\\/]\d+)+\.))[^|]*)+\|/.source,"m"),inside:{modifier:{pattern:Me(/(^|\|(?:\r?\n|\r)?)(?:<MOD>|<PAR>|[<>=^~_]|[\\/]\d+)+(?=\.)/.source),lookbehind:!0,inside:We},punctuation:/\||^\./}},inline:{pattern:Me(/(^|[^a-zA-Z\d])(\*\*|__|\?\?|[*_%@+\-^~])<MOD>*.+?\2(?![a-zA-Z\d])/.source),lookbehind:!0,inside:{bold:{pattern:Me(/(^(\*\*?)<MOD>*).+?(?=\2)/.source),lookbehind:!0},italic:{pattern:Me(/(^(__?)<MOD>*).+?(?=\2)/.source),lookbehind:!0},cite:{pattern:Me(/(^\?\?<MOD>*).+?(?=\?\?)/.source),lookbehind:!0,alias:"string"},code:{pattern:Me(/(^@<MOD>*).+?(?=@)/.source),lookbehind:!0,alias:"keyword"},inserted:{pattern:Me(/(^\+<MOD>*).+?(?=\+)/.source),lookbehind:!0},deleted:{pattern:Me(/(^-<MOD>*).+?(?=-)/.source),lookbehind:!0},span:{pattern:Me(/(^%<MOD>*).+?(?=%)/.source),lookbehind:!0},modifier:{pattern:Me(/(^\*\*|__|\?\?|[*_%@+\-^~])<MOD>+/.source),lookbehind:!0,inside:We},punctuation:/[*_%?@+\-^~]+/}},"link-ref":{pattern:/^\[[^\]]+\]\S+$/m,inside:{string:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0},url:{pattern:/(^\])\S+$/,lookbehind:!0},punctuation:/[\[\]]/}},link:{pattern:Me(/"<MOD>*[^"]+":.+?(?=[^\w/]?(?:\s|$))/.source),inside:{text:{pattern:Me(/(^"<MOD>*)[^"]+(?=")/.source),lookbehind:!0},modifier:{pattern:Me(/(^")<MOD>+/.source),lookbehind:!0,inside:We},url:{pattern:/(:).+/,lookbehind:!0},punctuation:/[":]/}},image:{pattern:Me(/!(?:<MOD>|<PAR>|[<>=])*(?![<>=])[^!\s()]+(?:\([^)]+\))?!(?::.+?(?=[^\w/]?(?:\s|$)))?/.source),inside:{source:{pattern:Me(/(^!(?:<MOD>|<PAR>|[<>=])*)(?![<>=])[^!\s()]+(?:\([^)]+\))?(?=!)/.source),lookbehind:!0,alias:"url"},modifier:{pattern:Me(/(^!)(?:<MOD>|<PAR>|[<>=])+/.source),lookbehind:!0,inside:We},url:{pattern:/(:).+/,lookbehind:!0},punctuation:/[!:]/}},footnote:{pattern:/\b\[\d+\]/,alias:"comment",inside:{punctuation:/\[|\]/}},acronym:{pattern:/\b[A-Z\d]+\([^)]+\)/,inside:{comment:{pattern:/(\()[^()]+(?=\))/,lookbehind:!0},punctuation:/[()]/}},mark:{pattern:/\b\((?:C|R|TM)\)/,alias:"comment",inside:{punctuation:/[()]/}}}}}),Ge=Te.phrase.inside,st={inline:Ge.inline,link:Ge.link,image:Ge.image,footnote:Ge.footnote,acronym:Ge.acronym,mark:Ge.mark};Te.tag.pattern=/<\/?(?!\d)[a-z0-9]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/i;var Qe=Ge.inline.inside;Qe.bold.inside=st,Qe.italic.inside=st,Qe.inserted.inside=st,Qe.deleted.inside=st,Qe.span.inside=st;var Ye=Ge.table.inside;Ye.inline=st.inline,Ye.link=st.link,Ye.image=st.image,Ye.footnote=st.footnote,Ye.acronym=st.acronym,Ye.mark=st.mark})(ue)}},14693:function(ze){"use strict";ze.exports=Ee,Ee.displayName="toml",Ee.aliases=[];function Ee(ue){(function(ce){var Pe=/(?:[\w-]+|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*")/.source;function Re(Me){return Me.replace(/__/g,function(){return Pe})}ce.languages.toml={comment:{pattern:/#.*/,greedy:!0},table:{pattern:RegExp(Re(/(^[\t ]*\[\s*(?:\[\s*)?)__(?:\s*\.\s*__)*(?=\s*\])/.source),"m"),lookbehind:!0,greedy:!0,alias:"class-name"},key:{pattern:RegExp(Re(/(^[\t ]*|[{,]\s*)__(?:\s*\.\s*__)*(?=\s*=)/.source),"m"),lookbehind:!0,greedy:!0,alias:"property"},string:{pattern:/"""(?:\\[\s\S]|[^\\])*?"""|'''[\s\S]*?'''|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},date:[{pattern:/\b\d{4}-\d{2}-\d{2}(?:[T\s]\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})?)?\b/i,alias:"number"},{pattern:/\b\d{2}:\d{2}:\d{2}(?:\.\d+)?\b/,alias:"number"}],number:/(?:\b0(?:x[\da-zA-Z]+(?:_[\da-zA-Z]+)*|o[0-7]+(?:_[0-7]+)*|b[10]+(?:_[10]+)*))\b|[-+]?\b\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?\b|[-+]?\b(?:inf|nan)\b/,boolean:/\b(?:false|true)\b/,punctuation:/[.,=[\]{}]/}})(ue)}},8743:function(ze){"use strict";ze.exports=Ee,Ee.displayName="tremor",Ee.aliases=[];function Ee(ue){(function(ce){ce.languages.tremor={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},"interpolated-string":null,extractor:{pattern:/\b[a-z_]\w*\|(?:[^\r\n\\|]|\\(?:\r\n|[\s\S]))*\|/i,greedy:!0,inside:{regex:{pattern:/(^re)\|[\s\S]+/,lookbehind:!0},function:/^\w+/,value:/\|[\s\S]+/}},identifier:{pattern:/`[^`]*`/,greedy:!0},function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())\b/,keyword:/\b(?:args|as|by|case|config|connect|connector|const|copy|create|default|define|deploy|drop|each|emit|end|erase|event|flow|fn|for|from|group|having|insert|into|intrinsic|let|links|match|merge|mod|move|of|operator|patch|pipeline|recur|script|select|set|sliding|state|stream|to|tumbling|update|use|when|where|window|with)\b/,boolean:/\b(?:false|null|true)\b/i,number:/\b(?:0b[01_]*|0x[0-9a-fA-F_]*|\d[\d_]*(?:\.\d[\d_]*)?(?:[Ee][+-]?[\d_]+)?)\b/,"pattern-punctuation":{pattern:/%(?=[({[])/,alias:"punctuation"},operator:/[-+*\/%~!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?>?=?|(?:absent|and|not|or|present|xor)\b/,punctuation:/::|[;\[\]()\{\},.:]/};var Pe=/#\{(?:[^"{}]|\{[^{}]*\}|"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*")*\}/.source;ce.languages.tremor["interpolated-string"]={pattern:RegExp(/(^|[^\\])/.source+'(?:"""(?:'+/[^"\\#]|\\[\s\S]|"(?!"")|#(?!\{)/.source+"|"+Pe+')*"""|"(?:'+/[^"\\\r\n#]|\\(?:\r\n|[\s\S])|#(?!\{)/.source+"|"+Pe+')*")'),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:RegExp(Pe),inside:{punctuation:/^#\{|\}$/,expression:{pattern:/[\s\S]+/,inside:ce.languages.tremor}}},string:/[\s\S]+/}},ce.languages.troy=ce.languages.tremor,ce.languages.trickle=ce.languages.tremor})(ue)}},1689:function(ze,Ee,ue){"use strict";var ce=ue(24103),Pe=ue(92784);ze.exports=Re,Re.displayName="tsx",Re.aliases=[];function Re(Me){Me.register(ce),Me.register(Pe),function(We){var Te=We.util.clone(We.languages.typescript);We.languages.tsx=We.languages.extend("jsx",Te),delete We.languages.tsx.parameter,delete We.languages.tsx["literal-property"];var Ge=We.languages.tsx.tag;Ge.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+Ge.pattern.source+")",Ge.pattern.flags),Ge.lookbehind=!0}(Me)}},69210:function(ze,Ee,ue){"use strict";var ce=ue(51478);ze.exports=Pe,Pe.displayName="tt2",Pe.aliases=[];function Pe(Re){Re.register(ce),function(Me){Me.languages.tt2=Me.languages.extend("clike",{comment:/#.*|\[%#[\s\S]*?%\]/,keyword:/\b(?:BLOCK|CALL|CASE|CATCH|CLEAR|DEBUG|DEFAULT|ELSE|ELSIF|END|FILTER|FINAL|FOREACH|GET|IF|IN|INCLUDE|INSERT|LAST|MACRO|META|NEXT|PERL|PROCESS|RAWPERL|RETURN|SET|STOP|SWITCH|TAGS|THROW|TRY|UNLESS|USE|WHILE|WRAPPER)\b/,punctuation:/[[\]{},()]/}),Me.languages.insertBefore("tt2","number",{operator:/=[>=]?|!=?|<=?|>=?|&&|\|\|?|\b(?:and|not|or)\b/,variable:{pattern:/\b[a-z]\w*(?:\s*\.\s*(?:\d+|\$?[a-z]\w*))*\b/i}}),Me.languages.insertBefore("tt2","keyword",{delimiter:{pattern:/^(?:\[%|%%)-?|-?%\]$/,alias:"punctuation"}}),Me.languages.insertBefore("tt2","string",{"single-quoted-string":{pattern:/'[^\\']*(?:\\[\s\S][^\\']*)*'/,greedy:!0,alias:"string"},"double-quoted-string":{pattern:/"[^\\"]*(?:\\[\s\S][^\\"]*)*"/,greedy:!0,alias:"string",inside:{variable:{pattern:/\$(?:[a-z]\w*(?:\.(?:\d+|\$?[a-z]\w*))*)/i}}}}),delete Me.languages.tt2.string,Me.hooks.add("before-tokenize",function(We){var Te=/\[%[\s\S]+?%\]/g;Me.languages["markup-templating"].buildPlaceholders(We,"tt2",Te)}),Me.hooks.add("after-tokenize",function(We){Me.languages["markup-templating"].tokenizePlaceholders(We,"tt2")})}(Re)}},58710:function(ze){"use strict";ze.exports=Ee,Ee.displayName="turtle",Ee.aliases=[];function Ee(ue){ue.languages.turtle={comment:{pattern:/#.*/,greedy:!0},"multiline-string":{pattern:/"""(?:(?:""?)?(?:[^"\\]|\\.))*"""|'''(?:(?:''?)?(?:[^'\\]|\\.))*'''/,greedy:!0,alias:"string",inside:{comment:/#.*/}},string:{pattern:/"(?:[^\\"\r\n]|\\.)*"|'(?:[^\\'\r\n]|\\.)*'/,greedy:!0},url:{pattern:/<(?:[^\x00-\x20<>"{}|^`\\]|\\(?:u[\da-fA-F]{4}|U[\da-fA-F]{8}))*>/,greedy:!0,inside:{punctuation:/[<>]/}},function:{pattern:/(?:(?![-.\d\xB7])[-.\w\xB7\xC0-\uFFFD]+)?:(?:(?![-.])(?:[-.:\w\xC0-\uFFFD]|%[\da-f]{2}|\\.)+)?/i,inside:{"local-name":{pattern:/([^:]*:)[\s\S]+/,lookbehind:!0},prefix:{pattern:/[\s\S]+/,inside:{punctuation:/:/}}}},number:/[+-]?\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,punctuation:/[{}.,;()[\]]|\^\^/,boolean:/\b(?:false|true)\b/,keyword:[/(?:\ba|@prefix|@base)\b|=/,/\b(?:base|graph|prefix)\b/i],tag:{pattern:/@[a-z]+(?:-[a-z\d]+)*/i,inside:{punctuation:/@/}}},ue.languages.trig=ue.languages.turtle}},60452:function(ze,Ee,ue){"use strict";var ce=ue(51478);ze.exports=Pe,Pe.displayName="twig",Pe.aliases=[];function Pe(Re){Re.register(ce),Re.languages.twig={comment:/^\{#[\s\S]*?#\}$/,"tag-name":{pattern:/(^\{%-?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%]-?|-?[%}]\}$/,alias:"punctuation"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,inside:{punctuation:/^['"]|['"]$/}},keyword:/\b(?:even|if|odd)\b/,boolean:/\b(?:false|null|true)\b/,number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,operator:[{pattern:/(\s)(?:and|b-and|b-or|b-xor|ends with|in|is|matches|not|or|same as|starts with)(?=\s)/,lookbehind:!0},/[=<>]=?|!=|\*\*?|\/\/?|\?:?|[-+~%|]/],punctuation:/[()\[\]{}:.,]/},Re.hooks.add("before-tokenize",function(Me){if(Me.language==="twig"){var We=/\{(?:#[\s\S]*?#|%[\s\S]*?%|\{[\s\S]*?\})\}/g;Re.languages["markup-templating"].buildPlaceholders(Me,"twig",We)}}),Re.hooks.add("after-tokenize",function(Me){Re.languages["markup-templating"].tokenizePlaceholders(Me,"twig")})}},92784:function(ze){"use strict";ze.exports=Ee,Ee.displayName="typescript",Ee.aliases=["ts"];function Ee(ue){(function(ce){ce.languages.typescript=ce.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),ce.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete ce.languages.typescript.parameter,delete ce.languages.typescript["literal-property"];var Pe=ce.languages.extend("typescript",{});delete Pe["class-name"],ce.languages.typescript["class-name"].inside=Pe,ce.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:Pe}}}}),ce.languages.ts=ce.languages.typescript})(ue)}},36489:function(ze){"use strict";ze.exports=Ee,Ee.displayName="typoscript",Ee.aliases=["tsconfig"];function Ee(ue){(function(ce){var Pe=/\b(?:ACT|ACTIFSUB|CARRAY|CASE|CLEARGIF|COA|COA_INT|CONSTANTS|CONTENT|CUR|EDITPANEL|EFFECT|EXT|FILE|FLUIDTEMPLATE|FORM|FRAME|FRAMESET|GIFBUILDER|GMENU|GMENU_FOLDOUT|GMENU_LAYERS|GP|HMENU|HRULER|HTML|IENV|IFSUB|IMAGE|IMGMENU|IMGMENUITEM|IMGTEXT|IMG_RESOURCE|INCLUDE_TYPOSCRIPT|JSMENU|JSMENUITEM|LLL|LOAD_REGISTER|NO|PAGE|RECORDS|RESTORE_REGISTER|TEMPLATE|TEXT|TMENU|TMENUITEM|TMENU_LAYERS|USER|USER_INT|_GIFBUILDER|global|globalString|globalVar)\b/;ce.languages.typoscript={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0},{pattern:/(^|[^\\:= \t]|(?:^|[^= \t])[ \t]+)\/\/.*/,lookbehind:!0,greedy:!0},{pattern:/(^|[^"'])#.*/,lookbehind:!0,greedy:!0}],function:[{pattern:/<INCLUDE_TYPOSCRIPT:\s*source\s*=\s*(?:"[^"\r\n]*"|'[^'\r\n]*')\s*>/,inside:{string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,inside:{keyword:Pe}},keyword:{pattern:/INCLUDE_TYPOSCRIPT/}}},{pattern:/@import\s*(?:"[^"\r\n]*"|'[^'\r\n]*')/,inside:{string:/"[^"\r\n]*"|'[^'\r\n]*'/}}],string:{pattern:/^([^=]*=[< ]?)(?:(?!\]\n).)*/,lookbehind:!0,inside:{function:/\{\$.*\}/,keyword:Pe,number:/^\d+$/,punctuation:/[,|:]/}},keyword:Pe,number:{pattern:/\b\d+\s*[.{=]/,inside:{operator:/[.{=]/}},tag:{pattern:/\.?[-\w\\]+\.?/,inside:{punctuation:/\./}},punctuation:/[{}[\];(),.:|]/,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/},ce.languages.tsconfig=ce.languages.typoscript})(ue)}},78380:function(ze){"use strict";ze.exports=Ee,Ee.displayName="unrealscript",Ee.aliases=["uc","uscript"];function Ee(ue){ue.languages.unrealscript={comment:/\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},category:{pattern:/(\b(?:(?:autoexpand|hide|show)categories|var)\s*\()[^()]+(?=\))/,lookbehind:!0,greedy:!0,alias:"property"},metadata:{pattern:/(\w\s*)<\s*\w+\s*=[^<>|=\r\n]+(?:\|\s*\w+\s*=[^<>|=\r\n]+)*>/,lookbehind:!0,greedy:!0,inside:{property:/\b\w+(?=\s*=)/,operator:/=/,punctuation:/[<>|]/}},macro:{pattern:/`\w+/,alias:"property"},"class-name":{pattern:/(\b(?:class|enum|extends|interface|state(?:\(\))?|struct|within)\s+)\w+/,lookbehind:!0},keyword:/\b(?:abstract|actor|array|auto|autoexpandcategories|bool|break|byte|case|class|classgroup|client|coerce|collapsecategories|config|const|continue|default|defaultproperties|delegate|dependson|deprecated|do|dontcollapsecategories|editconst|editinlinenew|else|enum|event|exec|export|extends|final|float|for|forcescriptorder|foreach|function|goto|guid|hidecategories|hidedropdown|if|ignores|implements|inherits|input|int|interface|iterator|latent|local|material|name|native|nativereplication|noexport|nontransient|noteditinlinenew|notplaceable|operator|optional|out|pawn|perobjectconfig|perobjectlocalized|placeable|postoperator|preoperator|private|protected|reliable|replication|return|server|showcategories|simulated|singular|state|static|string|struct|structdefault|structdefaultproperties|switch|texture|transient|travel|unreliable|until|var|vector|while|within)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/>>|<<|--|\+\+|\*\*|[-+*/~!=<>$@]=?|&&?|\|\|?|\^\^?|[?:%]|\b(?:ClockwiseFrom|Cross|Dot)\b/,punctuation:/[()[\]{};,.]/},ue.languages.uc=ue.languages.uscript=ue.languages.unrealscript}},10409:function(ze){"use strict";ze.exports=Ee,Ee.displayName="uorazor",Ee.aliases=[];function Ee(ue){ue.languages.uorazor={"comment-hash":{pattern:/#.*/,alias:"comment",greedy:!0},"comment-slash":{pattern:/\/\/.*/,alias:"comment",greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,inside:{punctuation:/^['"]|['"]$/},greedy:!0},"source-layers":{pattern:/\b(?:arms|backpack|blue|bracelet|cancel|clear|cloak|criminal|earrings|enemy|facialhair|friend|friendly|gloves|gray|grey|ground|hair|head|innerlegs|innertorso|innocent|lefthand|middletorso|murderer|neck|nonfriendly|onehandedsecondary|outerlegs|outertorso|pants|red|righthand|ring|self|shirt|shoes|talisman|waist)\b/i,alias:"function"},"source-commands":{pattern:/\b(?:alliance|attack|cast|clearall|clearignore|clearjournal|clearlist|clearsysmsg|createlist|createtimer|dclick|dclicktype|dclickvar|dress|dressconfig|drop|droprelloc|emote|getlabel|guild|gumpclose|gumpresponse|hotkey|ignore|lasttarget|lift|lifttype|menu|menuresponse|msg|org|organize|organizer|overhead|pause|poplist|potion|promptresponse|pushlist|removelist|removetimer|rename|restock|say|scav|scavenger|script|setability|setlasttarget|setskill|settimer|setvar|sysmsg|target|targetloc|targetrelloc|targettype|undress|unignore|unsetvar|useobject|useonce|useskill|usetype|virtue|wait|waitforgump|waitformenu|waitforprompt|waitforstat|waitforsysmsg|waitfortarget|walk|wfsysmsg|wft|whisper|yell)\b/,alias:"function"},"tag-name":{pattern:/(^\{%-?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%]-?|-?[%}]\}$/,alias:"punctuation"},function:/\b(?:atlist|close|closest|count|counter|counttype|dead|dex|diffhits|diffmana|diffstam|diffweight|find|findbuff|finddebuff|findlayer|findtype|findtypelist|followers|gumpexists|hidden|hits|hp|hue|human|humanoid|ingump|inlist|insysmessage|insysmsg|int|invul|lhandempty|list|listexists|mana|maxhits|maxhp|maxmana|maxstam|maxweight|monster|mounted|name|next|noto|paralyzed|poisoned|position|prev|previous|queued|rand|random|rhandempty|skill|stam|str|targetexists|timer|timerexists|varexist|warmode|weight)\b/,keyword:/\b(?:and|as|break|continue|else|elseif|endfor|endif|endwhile|for|if|loop|not|or|replay|stop|while)\b/,boolean:/\b(?:false|null|true)\b/,number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,operator:[{pattern:/(\s)(?:and|b-and|b-or|b-xor|ends with|in|is|matches|not|or|same as|starts with)(?=\s)/,lookbehind:!0},/[=<>]=?|!=|\*\*?|\/\/?|\?:?|[-+~%|]/],punctuation:/[()\[\]{}:.,]/}}},6539:function(ze){"use strict";ze.exports=Ee,Ee.displayName="uri",Ee.aliases=["url"];function Ee(ue){ue.languages.uri={scheme:{pattern:/^[a-z][a-z0-9+.-]*:/im,greedy:!0,inside:{"scheme-delimiter":/:$/}},fragment:{pattern:/#[\w\-.~!$&'()*+,;=%:@/?]*/,inside:{"fragment-delimiter":/^#/}},query:{pattern:/\?[\w\-.~!$&'()*+,;=%:@/?]*/,inside:{"query-delimiter":{pattern:/^\?/,greedy:!0},"pair-delimiter":/[&;]/,pair:{pattern:/^[^=][\s\S]*/,inside:{key:/^[^=]+/,value:{pattern:/(^=)[\s\S]+/,lookbehind:!0}}}}},authority:{pattern:RegExp(/^\/\//.source+/(?:[\w\-.~!$&'()*+,;=%:]*@)?/.source+("(?:"+/\[(?:[0-9a-fA-F:.]{2,48}|v[0-9a-fA-F]+\.[\w\-.~!$&'()*+,;=]+)\]/.source+"|"+/[\w\-.~!$&'()*+,;=%]*/.source+")")+/(?::\d*)?/.source,"m"),inside:{"authority-delimiter":/^\/\//,"user-info-segment":{pattern:/^[\w\-.~!$&'()*+,;=%:]*@/,inside:{"user-info-delimiter":/@$/,"user-info":/^[\w\-.~!$&'()*+,;=%:]+/}},"port-segment":{pattern:/:\d*$/,inside:{"port-delimiter":/^:/,port:/^\d+/}},host:{pattern:/[\s\S]+/,inside:{"ip-literal":{pattern:/^\[[\s\S]+\]$/,inside:{"ip-literal-delimiter":/^\[|\]$/,"ipv-future":/^v[\s\S]+/,"ipv6-address":/^[\s\S]+/}},"ipv4-address":/^(?:(?:[03-9]\d?|[12]\d{0,2})\.){3}(?:[03-9]\d?|[12]\d{0,2})$/}}}},path:{pattern:/^[\w\-.~!$&'()*+,;=%:@/]+/m,inside:{"path-separator":/\//}}},ue.languages.url=ue.languages.uri}},82028:function(ze){"use strict";ze.exports=Ee,Ee.displayName="v",Ee.aliases=[];function Ee(ue){(function(ce){var Pe={pattern:/[\s\S]+/,inside:null};ce.languages.v=ce.languages.extend("clike",{string:{pattern:/r?(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,alias:"quoted-string",greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\{[^{}]*\}|\w+(?:\.\w+(?:\([^\(\)]*\))?|\[[^\[\]]+\])*)/,lookbehind:!0,inside:{"interpolation-variable":{pattern:/^\$\w[\s\S]*$/,alias:"variable"},"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},"interpolation-expression":Pe}}}},"class-name":{pattern:/(\b(?:enum|interface|struct|type)\s+)(?:C\.)?\w+/,lookbehind:!0},keyword:/(?:\b(?:__global|as|asm|assert|atomic|break|chan|const|continue|defer|else|embed|enum|fn|for|go(?:to)?|if|import|in|interface|is|lock|match|module|mut|none|or|pub|return|rlock|select|shared|sizeof|static|struct|type(?:of)?|union|unsafe)|\$(?:else|for|if)|#(?:flag|include))\b/,number:/\b(?:0x[a-f\d]+(?:_[a-f\d]+)*|0b[01]+(?:_[01]+)*|0o[0-7]+(?:_[0-7]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?)\b/i,operator:/~|\?|[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\.?/,builtin:/\b(?:any(?:_float|_int)?|bool|byte(?:ptr)?|charptr|f(?:32|64)|i(?:8|16|64|128|nt)|rune|size_t|string|u(?:16|32|64|128)|voidptr)\b/}),Pe.inside=ce.languages.v,ce.languages.insertBefore("v","string",{char:{pattern:/`(?:\\`|\\?[^`]{1,2})`/,alias:"rune"}}),ce.languages.insertBefore("v","operator",{attribute:{pattern:/(^[\t ]*)\[(?:deprecated|direct_array_access|flag|inline|live|ref_only|typedef|unsafe_fn|windows_stdcall)\]/m,lookbehind:!0,alias:"annotation",inside:{punctuation:/[\[\]]/,keyword:/\w+/}},generic:{pattern:/<\w+>(?=\s*[\)\{])/,inside:{punctuation:/[<>]/,"class-name":/\w+/}}}),ce.languages.insertBefore("v","function",{"generic-function":{pattern:/\b\w+\s*<\w+>(?=\()/,inside:{function:/^\w+/,generic:{pattern:/<\w+>/,inside:ce.languages.v.generic.inside}}}})})(ue)}},62282:function(ze){"use strict";ze.exports=Ee,Ee.displayName="vala",Ee.aliases=[];function Ee(ue){ue.languages.vala=ue.languages.extend("clike",{"class-name":[{pattern:/\b[A-Z]\w*(?:\.\w+)*\b(?=(?:\?\s+|\*?\s+\*?)\w)/,inside:{punctuation:/\./}},{pattern:/(\[)[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}},{pattern:/(\b(?:class|interface)\s+[A-Z]\w*(?:\.\w+)*\s*:\s*)[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}},{pattern:/((?:\b(?:class|enum|interface|new|struct)\s+)|(?:catch\s+\())[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}}],keyword:/\b(?:abstract|as|assert|async|base|bool|break|case|catch|char|class|const|construct|continue|default|delegate|delete|do|double|dynamic|else|ensures|enum|errordomain|extern|finally|float|for|foreach|get|if|in|inline|int|int16|int32|int64|int8|interface|internal|is|lock|long|namespace|new|null|out|override|owned|params|private|protected|public|ref|requires|return|set|short|signal|sizeof|size_t|ssize_t|static|string|struct|switch|this|throw|throws|try|typeof|uchar|uint|uint16|uint32|uint64|uint8|ulong|unichar|unowned|ushort|using|value|var|virtual|void|volatile|weak|while|yield)\b/i,function:/\b\w+(?=\s*\()/,number:/(?:\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)(?:f|u?l?)?/i,operator:/\+\+|--|&&|\|\||<<=?|>>=?|=>|->|~|[+\-*\/%&^|=!<>]=?|\?\??|\.\.\./,punctuation:/[{}[\];(),.:]/,constant:/\b[A-Z0-9_]+\b/}),ue.languages.insertBefore("vala","string",{"raw-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},"template-string":{pattern:/@"[\s\S]*?"/,greedy:!0,inside:{interpolation:{pattern:/\$(?:\([^)]*\)|[a-zA-Z]\w*)/,inside:{delimiter:{pattern:/^\$\(?|\)$/,alias:"punctuation"},rest:ue.languages.vala}},string:/[\s\S]+/}}}),ue.languages.insertBefore("vala","keyword",{regex:{pattern:/\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[imsx]{0,4}(?=\s*(?:$|[\r\n,.;})\]]))/,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:ue.languages.regex},"regex-delimiter":/^\//,"regex-flags":/^[a-z]+$/}}})}},55686:function(ze,Ee,ue){"use strict";var ce=ue(51422);ze.exports=Pe,Pe.displayName="vbnet",Pe.aliases=[];function Pe(Re){Re.register(ce),Re.languages.vbnet=Re.languages.extend("basic",{comment:[{pattern:/(?:!|REM\b).+/i,inside:{keyword:/^REM/i}},{pattern:/(^|[^\\:])'.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(^|[^"])"(?:""|[^"])*"(?!")/,lookbehind:!0,greedy:!0},keyword:/(?:\b(?:ADDHANDLER|ADDRESSOF|ALIAS|AND|ANDALSO|AS|BEEP|BLOAD|BOOLEAN|BSAVE|BYREF|BYTE|BYVAL|CALL(?: ABSOLUTE)?|CASE|CATCH|CBOOL|CBYTE|CCHAR|CDATE|CDBL|CDEC|CHAIN|CHAR|CHDIR|CINT|CLASS|CLEAR|CLNG|CLOSE|CLS|COBJ|COM|COMMON|CONST|CONTINUE|CSBYTE|CSHORT|CSNG|CSTR|CTYPE|CUINT|CULNG|CUSHORT|DATA|DATE|DECIMAL|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DEFAULT|DELEGATE|DIM|DIRECTCAST|DO|DOUBLE|ELSE|ELSEIF|END|ENUM|ENVIRON|ERASE|ERROR|EVENT|EXIT|FALSE|FIELD|FILES|FINALLY|FOR(?: EACH)?|FRIEND|FUNCTION|GET|GETTYPE|GETXMLNAMESPACE|GLOBAL|GOSUB|GOTO|HANDLES|IF|IMPLEMENTS|IMPORTS|IN|INHERITS|INPUT|INTEGER|INTERFACE|IOCTL|IS|ISNOT|KEY|KILL|LET|LIB|LIKE|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|ME|MKDIR|MOD|MODULE|MUSTINHERIT|MUSTOVERRIDE|MYBASE|MYCLASS|NAME|NAMESPACE|NARROWING|NEW|NEXT|NOT|NOTHING|NOTINHERITABLE|NOTOVERRIDABLE|OBJECT|OF|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPERATOR|OPTION(?: BASE)?|OPTIONAL|OR|ORELSE|OUT|OVERLOADS|OVERRIDABLE|OVERRIDES|PARAMARRAY|PARTIAL|POKE|PRIVATE|PROPERTY|PROTECTED|PUBLIC|PUT|RAISEEVENT|READ|READONLY|REDIM|REM|REMOVEHANDLER|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SBYTE|SELECT(?: CASE)?|SET|SHADOWS|SHARED|SHELL|SHORT|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|STRUCTURE|SUB|SWAP|SYNCLOCK|SYSTEM|THEN|THROW|TIMER|TO|TROFF|TRON|TRUE|TRY|TRYCAST|TYPE|TYPEOF|UINTEGER|ULONG|UNLOCK|UNTIL|USHORT|USING|VIEW PRINT|WAIT|WEND|WHEN|WHILE|WIDENING|WITH|WITHEVENTS|WRITE|WRITEONLY|XOR)|\B(?:#CONST|#ELSE|#ELSEIF|#END|#IF))(?:\$|\b)/i,punctuation:/[,;:(){}]/})}},70889:function(ze){"use strict";ze.exports=Ee,Ee.displayName="velocity",Ee.aliases=[];function Ee(ue){(function(ce){ce.languages.velocity=ce.languages.extend("markup",{});var Pe={variable:{pattern:/(^|[^\\](?:\\\\)*)\$!?(?:[a-z][\w-]*(?:\([^)]*\))?(?:\.[a-z][\w-]*(?:\([^)]*\))?|\[[^\]]+\])*|\{[^}]+\})/i,lookbehind:!0,inside:{}},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},number:/\b\d+\b/,boolean:/\b(?:false|true)\b/,operator:/[=!<>]=?|[+*/%-]|&&|\|\||\.\.|\b(?:eq|g[et]|l[et]|n(?:e|ot))\b/,punctuation:/[(){}[\]:,.]/};Pe.variable.inside={string:Pe.string,function:{pattern:/([^\w-])[a-z][\w-]*(?=\()/,lookbehind:!0},number:Pe.number,boolean:Pe.boolean,punctuation:Pe.punctuation},ce.languages.insertBefore("velocity","comment",{unparsed:{pattern:/(^|[^\\])#\[\[[\s\S]*?\]\]#/,lookbehind:!0,greedy:!0,inside:{punctuation:/^#\[\[|\]\]#$/}},"velocity-comment":[{pattern:/(^|[^\\])#\*[\s\S]*?\*#/,lookbehind:!0,greedy:!0,alias:"comment"},{pattern:/(^|[^\\])##.*/,lookbehind:!0,greedy:!0,alias:"comment"}],directive:{pattern:/(^|[^\\](?:\\\\)*)#@?(?:[a-z][\w-]*|\{[a-z][\w-]*\})(?:\s*\((?:[^()]|\([^()]*\))*\))?/i,lookbehind:!0,inside:{keyword:{pattern:/^#@?(?:[a-z][\w-]*|\{[a-z][\w-]*\})|\bin\b/,inside:{punctuation:/[{}]/}},rest:Pe}},variable:Pe.variable}),ce.languages.velocity.tag.inside["attr-value"].inside.rest=ce.languages.velocity})(ue)}},37116:function(ze){"use strict";ze.exports=Ee,Ee.displayName="verilog",Ee.aliases=[];function Ee(ue){ue.languages.verilog={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"kernel-function":{pattern:/\B\$\w+\b/,alias:"property"},constant:/\B`\w+\b/,function:/\b\w+(?=\()/,keyword:/\b(?:alias|and|assert|assign|assume|automatic|before|begin|bind|bins|binsof|bit|break|buf|bufif0|bufif1|byte|case|casex|casez|cell|chandle|class|clocking|cmos|config|const|constraint|context|continue|cover|covergroup|coverpoint|cross|deassign|default|defparam|design|disable|dist|do|edge|else|end|endcase|endclass|endclocking|endconfig|endfunction|endgenerate|endgroup|endinterface|endmodule|endpackage|endprimitive|endprogram|endproperty|endsequence|endspecify|endtable|endtask|enum|event|expect|export|extends|extern|final|first_match|for|force|foreach|forever|fork|forkjoin|function|generate|genvar|highz0|highz1|if|iff|ifnone|ignore_bins|illegal_bins|import|incdir|include|initial|inout|input|inside|instance|int|integer|interface|intersect|join|join_any|join_none|large|liblist|library|local|localparam|logic|longint|macromodule|matches|medium|modport|module|nand|negedge|new|nmos|nor|noshowcancelled|not|notif0|notif1|null|or|output|package|packed|parameter|pmos|posedge|primitive|priority|program|property|protected|pull0|pull1|pulldown|pullup|pulsestyle_ondetect|pulsestyle_onevent|pure|rand|randc|randcase|randsequence|rcmos|real|realtime|ref|reg|release|repeat|return|rnmos|rpmos|rtran|rtranif0|rtranif1|scalared|sequence|shortint|shortreal|showcancelled|signed|small|solve|specify|specparam|static|string|strong0|strong1|struct|super|supply0|supply1|table|tagged|task|this|throughout|time|timeprecision|timeunit|tran|tranif0|tranif1|tri|tri0|tri1|triand|trior|trireg|type|typedef|union|unique|unsigned|use|uwire|var|vectored|virtual|void|wait|wait_order|wand|weak0|weak1|while|wildcard|wire|with|within|wor|xnor|xor)\b/,important:/\b(?:always|always_comb|always_ff|always_latch)\b(?: *@)?/,number:/\B##?\d+|(?:\b\d+)?'[odbh] ?[\da-fzx_?]+|\b(?:\d*[._])?\d+(?:e[-+]?\d+)?/i,operator:/[-+{}^~%*\/?=!<>&|]+/,punctuation:/[[\];(),.:]/}}},66963:function(ze){"use strict";ze.exports=Ee,Ee.displayName="vhdl",Ee.aliases=[];function Ee(ue){ue.languages.vhdl={comment:/--.+/,"vhdl-vectors":{pattern:/\b[oxb]"[\da-f_]+"|"[01uxzwlh-]+"/i,alias:"number"},"quoted-function":{pattern:/"\S+?"(?=\()/,alias:"function"},string:/"(?:[^\\"\r\n]|\\(?:\r\n|[\s\S]))*"/,constant:/\b(?:library|use)\b/i,keyword:/\b(?:'active|'ascending|'base|'delayed|'driving|'driving_value|'event|'high|'image|'instance_name|'last_active|'last_event|'last_value|'left|'leftof|'length|'low|'path_name|'pos|'pred|'quiet|'range|'reverse_range|'right|'rightof|'simple_name|'stable|'succ|'transaction|'val|'value|access|after|alias|all|architecture|array|assert|attribute|begin|block|body|buffer|bus|case|component|configuration|constant|disconnect|downto|else|elsif|end|entity|exit|file|for|function|generate|generic|group|guarded|if|impure|in|inertial|inout|is|label|library|linkage|literal|loop|map|new|next|null|of|on|open|others|out|package|port|postponed|procedure|process|pure|range|record|register|reject|report|return|select|severity|shared|signal|subtype|then|to|transport|type|unaffected|units|until|use|variable|wait|when|while|with)\b/i,boolean:/\b(?:false|true)\b/i,function:/\w+(?=\()/,number:/'[01uxzwlh-]'|\b(?:\d+#[\da-f_.]+#|\d[\d_.]*)(?:e[-+]?\d+)?/i,operator:/[<>]=?|:=|[-+*/&=]|\b(?:abs|and|mod|nand|nor|not|or|rem|rol|ror|sla|sll|sra|srl|xnor|xor)\b/i,punctuation:/[{}[\];(),.:]/}}},21078:function(ze){"use strict";ze.exports=Ee,Ee.displayName="vim",Ee.aliases=[];function Ee(ue){ue.languages.vim={string:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\r\n]|'')*'/,comment:/".*/,function:/\b\w+(?=\()/,keyword:/\b(?:N|Next|P|Print|X|XMLent|XMLns|ab|abbreviate|abc|abclear|abo|aboveleft|al|all|ar|arga|argadd|argd|argdelete|argdo|arge|argedit|argg|argglobal|argl|arglocal|args|argu|argument|as|ascii|b|bN|bNext|ba|bad|badd|ball|bd|bdelete|be|bel|belowright|bf|bfirst|bl|blast|bm|bmodified|bn|bnext|bo|botright|bp|bprevious|br|brea|break|breaka|breakadd|breakd|breakdel|breakl|breaklist|brewind|bro|browse|bufdo|buffer|buffers|bun|bunload|bw|bwipeout|c|cN|cNext|cNfcNfile|ca|cabbrev|cabc|cabclear|cad|caddb|caddbuffer|caddexpr|caddf|caddfile|cal|call|cat|catch|cb|cbuffer|cc|ccl|cclose|cd|ce|center|cex|cexpr|cf|cfile|cfir|cfirst|cg|cgetb|cgetbuffer|cgete|cgetexpr|cgetfile|change|changes|chd|chdir|che|checkpath|checkt|checktime|cl|cla|clast|clist|clo|close|cmapc|cmapclear|cn|cnew|cnewer|cnext|cnf|cnfile|cnorea|cnoreabbrev|co|col|colder|colo|colorscheme|comc|comclear|comp|compiler|con|conf|confirm|continue|cope|copen|copy|cp|cpf|cpfile|cprevious|cq|cquit|cr|crewind|cu|cuna|cunabbrev|cunmap|cw|cwindow|d|debugg|debuggreedy|delc|delcommand|delete|delf|delfunction|delm|delmarks|di|diffg|diffget|diffoff|diffpatch|diffpu|diffput|diffsplit|diffthis|diffu|diffupdate|dig|digraphs|display|dj|djump|dl|dlist|dr|drop|ds|dsearch|dsp|dsplit|e|earlier|echoe|echoerr|echom|echomsg|echon|edit|el|else|elsei|elseif|em|emenu|en|endf|endfo|endfor|endfun|endfunction|endif|endt|endtry|endw|endwhile|ene|enew|ex|exi|exit|exu|exusage|f|file|files|filetype|fin|fina|finally|find|fini|finish|fir|first|fix|fixdel|fo|fold|foldc|foldclose|foldd|folddoc|folddoclosed|folddoopen|foldo|foldopen|for|fu|fun|function|go|goto|gr|grep|grepa|grepadd|h|ha|hardcopy|help|helpf|helpfind|helpg|helpgrep|helpt|helptags|hid|hide|his|history|ia|iabbrev|iabc|iabclear|if|ij|ijump|il|ilist|imapc|imapclear|in|inorea|inoreabbrev|isearch|isp|isplit|iu|iuna|iunabbrev|iunmap|j|join|ju|jumps|k|kee|keepalt|keepj|keepjumps|keepmarks|l|lN|lNext|lNf|lNfile|la|lad|laddb|laddbuffer|laddexpr|laddf|laddfile|lan|language|last|later|lb|lbuffer|lc|lcd|lch|lchdir|lcl|lclose|left|lefta|leftabove|let|lex|lexpr|lf|lfile|lfir|lfirst|lg|lgetb|lgetbuffer|lgete|lgetexpr|lgetfile|lgr|lgrep|lgrepa|lgrepadd|lh|lhelpgrep|list|ll|lla|llast|lli|llist|lm|lmak|lmake|lmap|lmapc|lmapclear|ln|lne|lnew|lnewer|lnext|lnf|lnfile|lnoremap|lo|loadview|loc|lockmarks|lockv|lockvar|lol|lolder|lop|lopen|lp|lpf|lpfile|lprevious|lr|lrewind|ls|lt|ltag|lu|lunmap|lv|lvimgrep|lvimgrepa|lvimgrepadd|lw|lwindow|m|ma|mak|make|mark|marks|mat|match|menut|menutranslate|mk|mkexrc|mks|mksession|mksp|mkspell|mkv|mkvie|mkview|mkvimrc|mod|mode|move|mz|mzf|mzfile|mzscheme|n|nbkey|new|next|nmapc|nmapclear|noh|nohlsearch|norea|noreabbrev|nu|number|nun|nunmap|o|omapc|omapclear|on|only|open|opt|options|ou|ounmap|p|pc|pclose|pe|ped|pedit|perl|perld|perldo|po|pop|popu|popup|pp|ppop|pre|preserve|prev|previous|print|prof|profd|profdel|profile|promptf|promptfind|promptr|promptrepl|ps|psearch|ptN|ptNext|pta|ptag|ptf|ptfirst|ptj|ptjump|ptl|ptlast|ptn|ptnext|ptp|ptprevious|ptr|ptrewind|pts|ptselect|pu|put|pw|pwd|py|pyf|pyfile|python|q|qa|qall|quit|quita|quitall|r|read|rec|recover|red|redi|redir|redo|redr|redraw|redraws|redrawstatus|reg|registers|res|resize|ret|retab|retu|return|rew|rewind|ri|right|rightb|rightbelow|ru|rub|ruby|rubyd|rubydo|rubyf|rubyfile|runtime|rv|rviminfo|sN|sNext|sa|sal|sall|san|sandbox|sargument|sav|saveas|sb|sbN|sbNext|sba|sball|sbf|sbfirst|sbl|sblast|sbm|sbmodified|sbn|sbnext|sbp|sbprevious|sbr|sbrewind|sbuffer|scrip|scripte|scriptencoding|scriptnames|se|set|setf|setfiletype|setg|setglobal|setl|setlocal|sf|sfind|sfir|sfirst|sh|shell|sign|sil|silent|sim|simalt|sl|sla|slast|sleep|sm|smagic|smap|smapc|smapclear|sme|smenu|sn|snext|sni|sniff|sno|snomagic|snor|snoremap|snoreme|snoremenu|so|sor|sort|source|sp|spe|spelld|spelldump|spellgood|spelli|spellinfo|spellr|spellrepall|spellu|spellundo|spellw|spellwrong|split|spr|sprevious|sre|srewind|st|sta|stag|star|startg|startgreplace|startinsert|startr|startreplace|stj|stjump|stop|stopi|stopinsert|sts|stselect|sun|sunhide|sunm|sunmap|sus|suspend|sv|sview|syncbind|t|tN|tNext|ta|tab|tabN|tabNext|tabc|tabclose|tabd|tabdo|tabe|tabedit|tabf|tabfind|tabfir|tabfirst|tabl|tablast|tabm|tabmove|tabn|tabnew|tabnext|tabo|tabonly|tabp|tabprevious|tabr|tabrewind|tabs|tag|tags|tc|tcl|tcld|tcldo|tclf|tclfile|te|tearoff|tf|tfirst|th|throw|tj|tjump|tl|tlast|tm|tmenu|tn|tnext|to|topleft|tp|tprevious|tr|trewind|try|ts|tselect|tu|tunmenu|u|una|unabbreviate|undo|undoj|undojoin|undol|undolist|unh|unhide|unlet|unlo|unlockvar|unm|unmap|up|update|ve|verb|verbose|version|vert|vertical|vi|vie|view|vim|vimgrep|vimgrepa|vimgrepadd|visual|viu|viusage|vmapc|vmapclear|vne|vnew|vs|vsplit|vu|vunmap|w|wN|wNext|wa|wall|wh|while|win|winc|wincmd|windo|winp|winpos|winsize|wn|wnext|wp|wprevious|wq|wqa|wqall|write|ws|wsverb|wv|wviminfo|x|xa|xall|xit|xm|xmap|xmapc|xmapclear|xme|xmenu|xn|xnoremap|xnoreme|xnoremenu|xu|xunmap|y|yank)\b/,builtin:/\b(?:acd|ai|akm|aleph|allowrevins|altkeymap|ambiwidth|ambw|anti|antialias|arab|arabic|arabicshape|ari|arshape|autochdir|autocmd|autoindent|autoread|autowrite|autowriteall|aw|awa|background|backspace|backup|backupcopy|backupdir|backupext|backupskip|balloondelay|ballooneval|balloonexpr|bdir|bdlay|beval|bex|bexpr|bg|bh|bin|binary|biosk|bioskey|bk|bkc|bomb|breakat|brk|browsedir|bs|bsdir|bsk|bt|bufhidden|buflisted|buftype|casemap|ccv|cdpath|cedit|cfu|ch|charconvert|ci|cin|cindent|cink|cinkeys|cino|cinoptions|cinw|cinwords|clipboard|cmdheight|cmdwinheight|cmp|cms|columns|com|comments|commentstring|compatible|complete|completefunc|completeopt|consk|conskey|copyindent|cot|cpo|cpoptions|cpt|cscopepathcomp|cscopeprg|cscopequickfix|cscopetag|cscopetagorder|cscopeverbose|cspc|csprg|csqf|cst|csto|csverb|cuc|cul|cursorcolumn|cursorline|cwh|debug|deco|def|define|delcombine|dex|dg|dict|dictionary|diff|diffexpr|diffopt|digraph|dip|dir|directory|dy|ea|ead|eadirection|eb|ed|edcompatible|ef|efm|ei|ek|enc|encoding|endofline|eol|ep|equalalways|equalprg|errorbells|errorfile|errorformat|esckeys|et|eventignore|expandtab|exrc|fcl|fcs|fdc|fde|fdi|fdl|fdls|fdm|fdn|fdo|fdt|fen|fenc|fencs|fex|ff|ffs|fileencoding|fileencodings|fileformat|fileformats|fillchars|fk|fkmap|flp|fml|fmr|foldcolumn|foldenable|foldexpr|foldignore|foldlevel|foldlevelstart|foldmarker|foldmethod|foldminlines|foldnestmax|foldtext|formatexpr|formatlistpat|formatoptions|formatprg|fp|fs|fsync|ft|gcr|gd|gdefault|gfm|gfn|gfs|gfw|ghr|gp|grepformat|grepprg|gtl|gtt|guicursor|guifont|guifontset|guifontwide|guiheadroom|guioptions|guipty|guitablabel|guitabtooltip|helpfile|helpheight|helplang|hf|hh|hi|hidden|highlight|hk|hkmap|hkmapp|hkp|hl|hlg|hls|hlsearch|ic|icon|iconstring|ignorecase|im|imactivatekey|imak|imc|imcmdline|imd|imdisable|imi|iminsert|ims|imsearch|inc|include|includeexpr|incsearch|inde|indentexpr|indentkeys|indk|inex|inf|infercase|insertmode|invacd|invai|invakm|invallowrevins|invaltkeymap|invanti|invantialias|invar|invarab|invarabic|invarabicshape|invari|invarshape|invautochdir|invautoindent|invautoread|invautowrite|invautowriteall|invaw|invawa|invbackup|invballooneval|invbeval|invbin|invbinary|invbiosk|invbioskey|invbk|invbl|invbomb|invbuflisted|invcf|invci|invcin|invcindent|invcompatible|invconfirm|invconsk|invconskey|invcopyindent|invcp|invcscopetag|invcscopeverbose|invcst|invcsverb|invcuc|invcul|invcursorcolumn|invcursorline|invdeco|invdelcombine|invdg|invdiff|invdigraph|invdisable|invea|inveb|inved|invedcompatible|invek|invendofline|inveol|invequalalways|inverrorbells|invesckeys|invet|invex|invexpandtab|invexrc|invfen|invfk|invfkmap|invfoldenable|invgd|invgdefault|invguipty|invhid|invhidden|invhk|invhkmap|invhkmapp|invhkp|invhls|invhlsearch|invic|invicon|invignorecase|invim|invimc|invimcmdline|invimd|invincsearch|invinf|invinfercase|invinsertmode|invis|invjoinspaces|invjs|invlazyredraw|invlbr|invlinebreak|invlisp|invlist|invloadplugins|invlpl|invlz|invma|invmacatsui|invmagic|invmh|invml|invmod|invmodeline|invmodifiable|invmodified|invmore|invmousef|invmousefocus|invmousehide|invnu|invnumber|invodev|invopendevice|invpaste|invpi|invpreserveindent|invpreviewwindow|invprompt|invpvw|invreadonly|invremap|invrestorescreen|invrevins|invri|invrightleft|invrightleftcmd|invrl|invrlc|invro|invrs|invru|invruler|invsb|invsc|invscb|invscrollbind|invscs|invsecure|invsft|invshellslash|invshelltemp|invshiftround|invshortname|invshowcmd|invshowfulltag|invshowmatch|invshowmode|invsi|invsm|invsmartcase|invsmartindent|invsmarttab|invsmd|invsn|invsol|invspell|invsplitbelow|invsplitright|invspr|invsr|invssl|invsta|invstartofline|invstmp|invswapfile|invswf|invta|invtagbsearch|invtagrelative|invtagstack|invtbi|invtbidi|invtbs|invtermbidi|invterse|invtextauto|invtextmode|invtf|invtgst|invtildeop|invtimeout|invtitle|invto|invtop|invtr|invttimeout|invttybuiltin|invttyfast|invtx|invvb|invvisualbell|invwa|invwarn|invwb|invweirdinvert|invwfh|invwfw|invwildmenu|invwinfixheight|invwinfixwidth|invwiv|invwmnu|invwrap|invwrapscan|invwrite|invwriteany|invwritebackup|invws|isf|isfname|isi|isident|isk|iskeyword|isprint|joinspaces|js|key|keymap|keymodel|keywordprg|km|kmp|kp|langmap|langmenu|laststatus|lazyredraw|lbr|lcs|linebreak|lines|linespace|lisp|lispwords|listchars|loadplugins|lpl|lsp|lz|macatsui|magic|makeef|makeprg|matchpairs|matchtime|maxcombine|maxfuncdepth|maxmapdepth|maxmem|maxmempattern|maxmemtot|mco|mef|menuitems|mfd|mh|mis|mkspellmem|ml|mls|mm|mmd|mmp|mmt|modeline|modelines|modifiable|modified|more|mouse|mousef|mousefocus|mousehide|mousem|mousemodel|mouses|mouseshape|mouset|mousetime|mp|mps|msm|mzq|mzquantum|nf|noacd|noai|noakm|noallowrevins|noaltkeymap|noanti|noantialias|noar|noarab|noarabic|noarabicshape|noari|noarshape|noautochdir|noautoindent|noautoread|noautowrite|noautowriteall|noaw|noawa|nobackup|noballooneval|nobeval|nobin|nobinary|nobiosk|nobioskey|nobk|nobl|nobomb|nobuflisted|nocf|noci|nocin|nocindent|nocompatible|noconfirm|noconsk|noconskey|nocopyindent|nocp|nocscopetag|nocscopeverbose|nocst|nocsverb|nocuc|nocul|nocursorcolumn|nocursorline|nodeco|nodelcombine|nodg|nodiff|nodigraph|nodisable|noea|noeb|noed|noedcompatible|noek|noendofline|noeol|noequalalways|noerrorbells|noesckeys|noet|noex|noexpandtab|noexrc|nofen|nofk|nofkmap|nofoldenable|nogd|nogdefault|noguipty|nohid|nohidden|nohk|nohkmap|nohkmapp|nohkp|nohls|noic|noicon|noignorecase|noim|noimc|noimcmdline|noimd|noincsearch|noinf|noinfercase|noinsertmode|nois|nojoinspaces|nojs|nolazyredraw|nolbr|nolinebreak|nolisp|nolist|noloadplugins|nolpl|nolz|noma|nomacatsui|nomagic|nomh|noml|nomod|nomodeline|nomodifiable|nomodified|nomore|nomousef|nomousefocus|nomousehide|nonu|nonumber|noodev|noopendevice|nopaste|nopi|nopreserveindent|nopreviewwindow|noprompt|nopvw|noreadonly|noremap|norestorescreen|norevins|nori|norightleft|norightleftcmd|norl|norlc|noro|nors|noru|noruler|nosb|nosc|noscb|noscrollbind|noscs|nosecure|nosft|noshellslash|noshelltemp|noshiftround|noshortname|noshowcmd|noshowfulltag|noshowmatch|noshowmode|nosi|nosm|nosmartcase|nosmartindent|nosmarttab|nosmd|nosn|nosol|nospell|nosplitbelow|nosplitright|nospr|nosr|nossl|nosta|nostartofline|nostmp|noswapfile|noswf|nota|notagbsearch|notagrelative|notagstack|notbi|notbidi|notbs|notermbidi|noterse|notextauto|notextmode|notf|notgst|notildeop|notimeout|notitle|noto|notop|notr|nottimeout|nottybuiltin|nottyfast|notx|novb|novisualbell|nowa|nowarn|nowb|noweirdinvert|nowfh|nowfw|nowildmenu|nowinfixheight|nowinfixwidth|nowiv|nowmnu|nowrap|nowrapscan|nowrite|nowriteany|nowritebackup|nows|nrformats|numberwidth|nuw|odev|oft|ofu|omnifunc|opendevice|operatorfunc|opfunc|osfiletype|pa|para|paragraphs|paste|pastetoggle|patchexpr|patchmode|path|pdev|penc|pex|pexpr|pfn|ph|pheader|pi|pm|pmbcs|pmbfn|popt|preserveindent|previewheight|previewwindow|printdevice|printencoding|printexpr|printfont|printheader|printmbcharset|printmbfont|printoptions|prompt|pt|pumheight|pvh|pvw|qe|quoteescape|readonly|remap|report|restorescreen|revins|rightleft|rightleftcmd|rl|rlc|ro|rs|rtp|ruf|ruler|rulerformat|runtimepath|sbo|sc|scb|scr|scroll|scrollbind|scrolljump|scrolloff|scrollopt|scs|sect|sections|secure|sel|selection|selectmode|sessionoptions|sft|shcf|shellcmdflag|shellpipe|shellquote|shellredir|shellslash|shelltemp|shelltype|shellxquote|shiftround|shiftwidth|shm|shortmess|shortname|showbreak|showcmd|showfulltag|showmatch|showmode|showtabline|shq|si|sidescroll|sidescrolloff|siso|sj|slm|smartcase|smartindent|smarttab|smc|smd|softtabstop|sol|spc|spell|spellcapcheck|spellfile|spelllang|spellsuggest|spf|spl|splitbelow|splitright|sps|sr|srr|ss|ssl|ssop|stal|startofline|statusline|stl|stmp|su|sua|suffixes|suffixesadd|sw|swapfile|swapsync|swb|swf|switchbuf|sws|sxq|syn|synmaxcol|syntax|t_AB|t_AF|t_AL|t_CS|t_CV|t_Ce|t_Co|t_Cs|t_DL|t_EI|t_F1|t_F2|t_F3|t_F4|t_F5|t_F6|t_F7|t_F8|t_F9|t_IE|t_IS|t_K1|t_K3|t_K4|t_K5|t_K6|t_K7|t_K8|t_K9|t_KA|t_KB|t_KC|t_KD|t_KE|t_KF|t_KG|t_KH|t_KI|t_KJ|t_KK|t_KL|t_RI|t_RV|t_SI|t_Sb|t_Sf|t_WP|t_WS|t_ZH|t_ZR|t_al|t_bc|t_cd|t_ce|t_cl|t_cm|t_cs|t_da|t_db|t_dl|t_fs|t_k1|t_k2|t_k3|t_k4|t_k5|t_k6|t_k7|t_k8|t_k9|t_kB|t_kD|t_kI|t_kN|t_kP|t_kb|t_kd|t_ke|t_kh|t_kl|t_kr|t_ks|t_ku|t_le|t_mb|t_md|t_me|t_mr|t_ms|t_nd|t_op|t_se|t_so|t_sr|t_te|t_ti|t_ts|t_ue|t_us|t_ut|t_vb|t_ve|t_vi|t_vs|t_xs|tabline|tabpagemax|tabstop|tagbsearch|taglength|tagrelative|tagstack|tal|tb|tbi|tbidi|tbis|tbs|tenc|term|termbidi|termencoding|terse|textauto|textmode|textwidth|tgst|thesaurus|tildeop|timeout|timeoutlen|title|titlelen|titleold|titlestring|toolbar|toolbariconsize|top|tpm|tsl|tsr|ttimeout|ttimeoutlen|ttm|tty|ttybuiltin|ttyfast|ttym|ttymouse|ttyscroll|ttytype|tw|tx|uc|ul|undolevels|updatecount|updatetime|ut|vb|vbs|vdir|verbosefile|vfile|viewdir|viewoptions|viminfo|virtualedit|visualbell|vop|wak|warn|wb|wc|wcm|wd|weirdinvert|wfh|wfw|whichwrap|wi|wig|wildchar|wildcharm|wildignore|wildmenu|wildmode|wildoptions|wim|winaltkeys|window|winfixheight|winfixwidth|winheight|winminheight|winminwidth|winwidth|wiv|wiw|wm|wmh|wmnu|wmw|wop|wrap|wrapmargin|wrapscan|writeany|writebackup|writedelay|ww)\b/,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?)\b/i,operator:/\|\||&&|[-+.]=?|[=!](?:[=~][#?]?)?|[<>]=?[#?]?|[*\/%?]|\b(?:is(?:not)?)\b/,punctuation:/[{}[\](),;:]/}}},96198:function(ze){"use strict";ze.exports=Ee,Ee.displayName="visualBasic",Ee.aliases=[];function Ee(ue){ue.languages["visual-basic"]={comment:{pattern:/(?:['‘’]|REM\b)(?:[^\r\n_]|_(?:\r\n?|\n)?)*/i,inside:{keyword:/^REM/i}},directive:{pattern:/#(?:Const|Else|ElseIf|End|ExternalChecksum|ExternalSource|If|Region)(?:\b_[ \t]*(?:\r\n?|\n)|.)+/i,alias:"property",greedy:!0},string:{pattern:/\$?["“”](?:["“”]{2}|[^"“”])*["“”]C?/i,greedy:!0},date:{pattern:/#[ \t]*(?:\d+([/-])\d+\1\d+(?:[ \t]+(?:\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?))?|\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?)[ \t]*#/i,alias:"number"},number:/(?:(?:\b\d+(?:\.\d+)?|\.\d+)(?:E[+-]?\d+)?|&[HO][\dA-F]+)(?:[FRD]|U?[ILS])?/i,boolean:/\b(?:False|Nothing|True)\b/i,keyword:/\b(?:AddHandler|AddressOf|Alias|And(?:Also)?|As|Boolean|ByRef|Byte|ByVal|Call|Case|Catch|C(?:Bool|Byte|Char|Date|Dbl|Dec|Int|Lng|Obj|SByte|Short|Sng|Str|Type|UInt|ULng|UShort)|Char|Class|Const|Continue|Currency|Date|Decimal|Declare|Default|Delegate|Dim|DirectCast|Do|Double|Each|Else(?:If)?|End(?:If)?|Enum|Erase|Error|Event|Exit|Finally|For|Friend|Function|Get(?:Type|XMLNamespace)?|Global|GoSub|GoTo|Handles|If|Implements|Imports|In|Inherits|Integer|Interface|Is|IsNot|Let|Lib|Like|Long|Loop|Me|Mod|Module|Must(?:Inherit|Override)|My(?:Base|Class)|Namespace|Narrowing|New|Next|Not(?:Inheritable|Overridable)?|Object|Of|On|Operator|Option(?:al)?|Or(?:Else)?|Out|Overloads|Overridable|Overrides|ParamArray|Partial|Private|Property|Protected|Public|RaiseEvent|ReadOnly|ReDim|RemoveHandler|Resume|Return|SByte|Select|Set|Shadows|Shared|short|Single|Static|Step|Stop|String|Structure|Sub|SyncLock|Then|Throw|To|Try|TryCast|Type|TypeOf|U(?:Integer|Long|Short)|Until|Using|Variant|Wend|When|While|Widening|With(?:Events)?|WriteOnly|Xor)\b/i,operator:/[+\-*/\\^<=>&#@$%!]|\b_(?=[ \t]*[\r\n])/,punctuation:/[{}().,:?]/},ue.languages.vb=ue.languages["visual-basic"],ue.languages.vba=ue.languages["visual-basic"]}},17723:function(ze){"use strict";ze.exports=Ee,Ee.displayName="warpscript",Ee.aliases=[];function Ee(ue){ue.languages.warpscript={comment:/#.*|\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'|<'(?:[^\\']|'(?!>)|\\.)*'>/,greedy:!0},variable:/\$\S+/,macro:{pattern:/@\S+/,alias:"property"},keyword:/\b(?:BREAK|CHECKMACRO|CONTINUE|CUDF|DEFINED|DEFINEDMACRO|EVAL|FAIL|FOR|FOREACH|FORSTEP|IFT|IFTE|MSGFAIL|NRETURN|RETHROW|RETURN|SWITCH|TRY|UDF|UNTIL|WHILE)\b/,number:/[+-]?\b(?:NaN|Infinity|\d+(?:\.\d*)?(?:[Ee][+-]?\d+)?|0x[\da-fA-F]+|0b[01]+)\b/,boolean:/\b(?:F|T|false|true)\b/,punctuation:/<%|%>|[{}[\]()]/,operator:/==|&&?|\|\|?|\*\*?|>>>?|<<|[<>!~]=?|[-/%^]|\+!?|\b(?:AND|NOT|OR)\b/}}},67771:function(ze){"use strict";ze.exports=Ee,Ee.displayName="wasm",Ee.aliases=[];function Ee(ue){ue.languages.wasm={comment:[/\(;[\s\S]*?;\)/,{pattern:/;;.*/,greedy:!0}],string:{pattern:/"(?:\\[\s\S]|[^"\\])*"/,greedy:!0},keyword:[{pattern:/\b(?:align|offset)=/,inside:{operator:/=/}},{pattern:/\b(?:(?:f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|neg?|nearest|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|sqrt|store(?:8|16|32)?|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))?|memory\.(?:grow|size))\b/,inside:{punctuation:/\./}},/\b(?:anyfunc|block|br(?:_if|_table)?|call(?:_indirect)?|data|drop|elem|else|end|export|func|get_(?:global|local)|global|if|import|local|loop|memory|module|mut|nop|offset|param|result|return|select|set_(?:global|local)|start|table|tee_local|then|type|unreachable)\b/],variable:/\$[\w!#$%&'*+\-./:<=>?@\\^`|~]+/,number:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/,punctuation:/[()]/}}},30307:function(ze){"use strict";ze.exports=Ee,Ee.displayName="webIdl",Ee.aliases=[];function Ee(ue){(function(ce){var Pe=/(?:\B-|\b_|\b)[A-Za-z][\w-]*(?![\w-])/.source,Re="(?:"+/\b(?:unsigned\s+)?long\s+long(?![\w-])/.source+"|"+/\b(?:unrestricted|unsigned)\s+[a-z]+(?![\w-])/.source+"|"+/(?!(?:unrestricted|unsigned)\b)/.source+Pe+/(?:\s*<(?:[^<>]|<[^<>]*>)*>)?/.source+")"+/(?:\s*\?)?/.source,Me={};ce.languages["web-idl"]={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/"[^"]*"/,greedy:!0},namespace:{pattern:RegExp(/(\bnamespace\s+)/.source+Pe),lookbehind:!0},"class-name":[{pattern:/(^|[^\w-])(?:iterable|maplike|setlike)\s*<(?:[^<>]|<[^<>]*>)*>/,lookbehind:!0,inside:Me},{pattern:RegExp(/(\b(?:attribute|const|deleter|getter|optional|setter)\s+)/.source+Re),lookbehind:!0,inside:Me},{pattern:RegExp("("+/\bcallback\s+/.source+Pe+/\s*=\s*/.source+")"+Re),lookbehind:!0,inside:Me},{pattern:RegExp(/(\btypedef\b\s*)/.source+Re),lookbehind:!0,inside:Me},{pattern:RegExp(/(\b(?:callback|dictionary|enum|interface(?:\s+mixin)?)\s+)(?!(?:interface|mixin)\b)/.source+Pe),lookbehind:!0},{pattern:RegExp(/(:\s*)/.source+Pe),lookbehind:!0},RegExp(Pe+/(?=\s+(?:implements|includes)\b)/.source),{pattern:RegExp(/(\b(?:implements|includes)\s+)/.source+Pe),lookbehind:!0},{pattern:RegExp(Re+"(?="+/\s*(?:\.{3}\s*)?/.source+Pe+/\s*[(),;=]/.source+")"),inside:Me}],builtin:/\b(?:ArrayBuffer|BigInt64Array|BigUint64Array|ByteString|DOMString|DataView|Float32Array|Float64Array|FrozenArray|Int16Array|Int32Array|Int8Array|ObservableArray|Promise|USVString|Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray)\b/,keyword:[/\b(?:async|attribute|callback|const|constructor|deleter|dictionary|enum|getter|implements|includes|inherit|interface|mixin|namespace|null|optional|or|partial|readonly|required|setter|static|stringifier|typedef|unrestricted)\b/,/\b(?:any|bigint|boolean|byte|double|float|iterable|long|maplike|object|octet|record|sequence|setlike|short|symbol|undefined|unsigned|void)\b/],boolean:/\b(?:false|true)\b/,number:{pattern:/(^|[^\w-])-?(?:0x[0-9a-f]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|NaN|Infinity)(?![\w-])/i,lookbehind:!0},operator:/\.{3}|[=:?<>-]/,punctuation:/[(){}[\].,;]/};for(var We in ce.languages["web-idl"])We!=="class-name"&&(Me[We]=ce.languages["web-idl"][We]);ce.languages.webidl=ce.languages["web-idl"]})(ue)}},8921:function(ze){"use strict";ze.exports=Ee,Ee.displayName="wiki",Ee.aliases=[];function Ee(ue){ue.languages.wiki=ue.languages.extend("markup",{"block-comment":{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0,alias:"comment"},heading:{pattern:/^(=+)[^=\r\n].*?\1/m,inside:{punctuation:/^=+|=+$/,important:/.+/}},emphasis:{pattern:/('{2,5}).+?\1/,inside:{"bold-italic":{pattern:/(''''').+?(?=\1)/,lookbehind:!0,alias:["bold","italic"]},bold:{pattern:/(''')[^'](?:.*?[^'])?(?=\1)/,lookbehind:!0},italic:{pattern:/('')[^'](?:.*?[^'])?(?=\1)/,lookbehind:!0},punctuation:/^''+|''+$/}},hr:{pattern:/^-{4,}/m,alias:"punctuation"},url:[/ISBN +(?:97[89][ -]?)?(?:\d[ -]?){9}[\dx]\b|(?:PMID|RFC) +\d+/i,/\[\[.+?\]\]|\[.+?\]/],variable:[/__[A-Z]+__/,/\{{3}.+?\}{3}/,/\{\{.+?\}\}/],symbol:[/^#redirect/im,/~{3,5}/],"table-tag":{pattern:/((?:^|[|!])[|!])[^|\r\n]+\|(?!\|)/m,lookbehind:!0,inside:{"table-bar":{pattern:/\|$/,alias:"punctuation"},rest:ue.languages.markup.tag.inside}},punctuation:/^(?:\{\||\|\}|\|-|[*#:;!|])|\|\||!!/m}),ue.languages.insertBefore("wiki","tag",{nowiki:{pattern:/<(nowiki|pre|source)\b[^>]*>[\s\S]*?<\/\1>/i,inside:{tag:{pattern:/<(?:nowiki|pre|source)\b[^>]*>|<\/(?:nowiki|pre|source)>/i,inside:ue.languages.markup.tag.inside}}}})}},13429:function(ze){"use strict";ze.exports=Ee,Ee.displayName="wolfram",Ee.aliases=["mathematica","wl","nb"];function Ee(ue){ue.languages.wolfram={comment:/\(\*(?:\(\*(?:[^*]|\*(?!\)))*\*\)|(?!\(\*)[\s\S])*?\*\)/,string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:Abs|AbsArg|Accuracy|Block|Do|For|Function|If|Manipulate|Module|Nest|NestList|None|Return|Switch|Table|Which|While)\b/,context:{pattern:/\b\w+`+\w*/,alias:"class-name"},blank:{pattern:/\b\w+_\b/,alias:"regex"},"global-variable":{pattern:/\$\w+/,alias:"variable"},boolean:/\b(?:False|True)\b/,number:/(?:\b(?=\d)|\B(?=\.))(?:0[bo])?(?:(?:\d|0x[\da-f])[\da-f]*(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?j?\b/i,operator:/\/\.|;|=\.|\^=|\^:=|:=|<<|>>|<\||\|>|:>|\|->|->|<-|@@@|@@|@|\/@|=!=|===|==|=|\+|-|\^|\[\/-+%=\]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},ue.languages.mathematica=ue.languages.wolfram,ue.languages.wl=ue.languages.wolfram,ue.languages.nb=ue.languages.wolfram}},65197:function(ze){"use strict";ze.exports=Ee,Ee.displayName="wren",Ee.aliases=[];function Ee(ue){ue.languages.wren={comment:[{pattern:/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*))*\*\/)*\*\/)*\*\//,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],"triple-quoted-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},"string-literal":null,hashbang:{pattern:/^#!\/.+/,greedy:!0,alias:"comment"},attribute:{pattern:/#!?[ \t\u3000]*\w+/,alias:"keyword"},"class-name":[{pattern:/(\bclass\s+)\w+/,lookbehind:!0},/\b[A-Z][a-z\d_]*\b/],constant:/\b[A-Z][A-Z\d_]*\b/,null:{pattern:/\bnull\b/,alias:"keyword"},keyword:/\b(?:as|break|class|construct|continue|else|for|foreign|if|import|in|is|return|static|super|this|var|while)\b/,boolean:/\b(?:false|true)\b/,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,function:/\b[a-z_]\w*(?=\s*[({])/i,operator:/<<|>>|[=!<>]=?|&&|\|\||[-+*/%~^&|?:]|\.{2,3}/,punctuation:/[\[\](){}.,;]/},ue.languages.wren["string-literal"]={pattern:/(^|[^\\"])"(?:[^\\"%]|\\[\s\S]|%(?!\()|%\((?:[^()]|\((?:[^()]|\([^)]*\))*\))*\))*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)%\((?:[^()]|\((?:[^()]|\([^)]*\))*\))*\)/,lookbehind:!0,inside:{expression:{pattern:/^(%\()[\s\S]+(?=\)$)/,lookbehind:!0,inside:ue.languages.wren},"interpolation-punctuation":{pattern:/^%\(|\)$/,alias:"punctuation"}}},string:/[\s\S]+/}}}},88904:function(ze){"use strict";ze.exports=Ee,Ee.displayName="xeora",Ee.aliases=["xeoracube"];function Ee(ue){(function(ce){ce.languages.xeora=ce.languages.extend("markup",{constant:{pattern:/\$(?:DomainContents|PageRenderDuration)\$/,inside:{punctuation:{pattern:/\$/}}},variable:{pattern:/\$@?(?:#+|[-+*~=^])?[\w.]+\$/,inside:{punctuation:{pattern:/[$.]/},operator:{pattern:/#+|[-+*~=^@]/}}},"function-inline":{pattern:/\$F:[-\w.]+\?[-\w.]+(?:,(?:(?:@[-#]*\w+\.[\w+.]\.*)*\|)*(?:(?:[\w+]|[-#*.~^]+[\w+]|=\S)(?:[^$=]|=+[^=])*=*|(?:@[-#]*\w+\.[\w+.]\.*)+(?:(?:[\w+]|[-#*~^][-#*.~^]*[\w+]|=\S)(?:[^$=]|=+[^=])*=*)?)?)?\$/,inside:{variable:{pattern:/(?:[,|])@?(?:#+|[-+*~=^])?[\w.]+/,inside:{punctuation:{pattern:/[,.|]/},operator:{pattern:/#+|[-+*~=^@]/}}},punctuation:{pattern:/\$\w:|[$:?.,|]/}},alias:"function"},"function-block":{pattern:/\$XF:\{[-\w.]+\?[-\w.]+(?:,(?:(?:@[-#]*\w+\.[\w+.]\.*)*\|)*(?:(?:[\w+]|[-#*.~^]+[\w+]|=\S)(?:[^$=]|=+[^=])*=*|(?:@[-#]*\w+\.[\w+.]\.*)+(?:(?:[\w+]|[-#*~^][-#*.~^]*[\w+]|=\S)(?:[^$=]|=+[^=])*=*)?)?)?\}:XF\$/,inside:{punctuation:{pattern:/[$:{}?.,|]/}},alias:"function"},"directive-inline":{pattern:/\$\w(?:#\d+\+?)?(?:\[[-\w.]+\])?:[-\/\w.]+\$/,inside:{punctuation:{pattern:/\$(?:\w:|C(?:\[|#\d))?|[:{[\]]/,inside:{tag:{pattern:/#\d/}}}},alias:"function"},"directive-block-open":{pattern:/\$\w+:\{|\$\w(?:#\d+\+?)?(?:\[[-\w.]+\])?:[-\w.]+:\{(?:![A-Z]+)?/,inside:{punctuation:{pattern:/\$(?:\w:|C(?:\[|#\d))?|[:{[\]]/,inside:{tag:{pattern:/#\d/}}},attribute:{pattern:/![A-Z]+$/,inside:{punctuation:{pattern:/!/}},alias:"keyword"}},alias:"function"},"directive-block-separator":{pattern:/\}:[-\w.]+:\{/,inside:{punctuation:{pattern:/[:{}]/}},alias:"function"},"directive-block-close":{pattern:/\}:[-\w.]+\$/,inside:{punctuation:{pattern:/[:{}$]/}},alias:"function"}}),ce.languages.insertBefore("inside","punctuation",{variable:ce.languages.xeora["function-inline"].inside.variable},ce.languages.xeora["function-block"]),ce.languages.xeoracube=ce.languages.xeora})(ue)}},35:function(ze){"use strict";ze.exports=Ee,Ee.displayName="xmlDoc",Ee.aliases=[];function Ee(ue){(function(ce){function Pe(Te,Ge){ce.languages[Te]&&ce.languages.insertBefore(Te,"comment",{"doc-comment":Ge})}var Re=ce.languages.markup.tag,Me={pattern:/\/\/\/.*/,greedy:!0,alias:"comment",inside:{tag:Re}},We={pattern:/'''.*/,greedy:!0,alias:"comment",inside:{tag:Re}};Pe("csharp",Me),Pe("fsharp",Me),Pe("vbnet",We)})(ue)}},86095:function(ze){"use strict";ze.exports=Ee,Ee.displayName="xojo",Ee.aliases=[];function Ee(ue){ue.languages.xojo={comment:{pattern:/(?:'|\/\/|Rem\b).+/i,greedy:!0},string:{pattern:/"(?:""|[^"])*"/,greedy:!0},number:[/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,/&[bchou][a-z\d]+/i],directive:{pattern:/#(?:Else|ElseIf|Endif|If|Pragma)\b/i,alias:"property"},keyword:/\b(?:AddHandler|App|Array|As(?:signs)?|Auto|Boolean|Break|By(?:Ref|Val)|Byte|Call|Case|Catch|CFStringRef|CGFloat|Class|Color|Const|Continue|CString|Currency|CurrentMethodName|Declare|Delegate|Dim|Do(?:uble|wnTo)?|Each|Else(?:If)?|End|Enumeration|Event|Exception|Exit|Extends|False|Finally|For|Function|Get|GetTypeInfo|Global|GOTO|If|Implements|In|Inherits|Int(?:8|16|32|64|eger|erface)?|Lib|Loop|Me|Module|Next|Nil|Object|Optional|OSType|ParamArray|Private|Property|Protected|PString|Ptr|Raise(?:Event)?|ReDim|RemoveHandler|Return|Select(?:or)?|Self|Set|Shared|Short|Single|Soft|Static|Step|String|Sub|Super|Text|Then|To|True|Try|Ubound|UInt(?:8|16|32|64|eger)?|Until|Using|Var(?:iant)?|Wend|While|WindowPtr|WString)\b/i,operator:/<[=>]?|>=?|[+\-*\/\\^=]|\b(?:AddressOf|And|Ctype|IsA?|Mod|New|Not|Or|WeakAddressOf|Xor)\b/i,punctuation:/[.,;:()]/}}},76998:function(ze){"use strict";ze.exports=Ee,Ee.displayName="xquery",Ee.aliases=[];function Ee(ue){(function(ce){ce.languages.xquery=ce.languages.extend("markup",{"xquery-comment":{pattern:/\(:[\s\S]*?:\)/,greedy:!0,alias:"comment"},string:{pattern:/(["'])(?:\1\1|(?!\1)[\s\S])*\1/,greedy:!0},extension:{pattern:/\(#.+?#\)/,alias:"symbol"},variable:/\$[-\w:]+/,axis:{pattern:/(^|[^-])(?:ancestor(?:-or-self)?|attribute|child|descendant(?:-or-self)?|following(?:-sibling)?|parent|preceding(?:-sibling)?|self)(?=::)/,lookbehind:!0,alias:"operator"},"keyword-operator":{pattern:/(^|[^:-])\b(?:and|castable as|div|eq|except|ge|gt|idiv|instance of|intersect|is|le|lt|mod|ne|or|union)\b(?=$|[^:-])/,lookbehind:!0,alias:"operator"},keyword:{pattern:/(^|[^:-])\b(?:as|ascending|at|base-uri|boundary-space|case|cast as|collation|construction|copy-namespaces|declare|default|descending|else|empty (?:greatest|least)|encoding|every|external|for|function|if|import|in|inherit|lax|let|map|module|namespace|no-inherit|no-preserve|option|order(?: by|ed|ing)?|preserve|return|satisfies|schema|some|stable|strict|strip|then|to|treat as|typeswitch|unordered|validate|variable|version|where|xquery)\b(?=$|[^:-])/,lookbehind:!0},function:/[\w-]+(?::[\w-]+)*(?=\s*\()/,"xquery-element":{pattern:/(element\s+)[\w-]+(?::[\w-]+)*/,lookbehind:!0,alias:"tag"},"xquery-attribute":{pattern:/(attribute\s+)[\w-]+(?::[\w-]+)*/,lookbehind:!0,alias:"attr-name"},builtin:{pattern:/(^|[^:-])\b(?:attribute|comment|document|element|processing-instruction|text|xs:(?:ENTITIES|ENTITY|ID|IDREFS?|NCName|NMTOKENS?|NOTATION|Name|QName|anyAtomicType|anyType|anyURI|base64Binary|boolean|byte|date|dateTime|dayTimeDuration|decimal|double|duration|float|gDay|gMonth|gMonthDay|gYear|gYearMonth|hexBinary|int|integer|language|long|negativeInteger|nonNegativeInteger|nonPositiveInteger|normalizedString|positiveInteger|short|string|time|token|unsigned(?:Byte|Int|Long|Short)|untyped(?:Atomic)?|yearMonthDuration))\b(?=$|[^:-])/,lookbehind:!0},number:/\b\d+(?:\.\d+)?(?:E[+-]?\d+)?/,operator:[/[+*=?|@]|\.\.?|:=|!=|<[=<]?|>[=>]?/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}],punctuation:/[[\](){},;:/]/}),ce.languages.xquery.tag.pattern=/<\/?(?!\d)[^\s>\/=$<%]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,ce.languages.xquery.tag.inside["attr-value"].pattern=/=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+)/,ce.languages.xquery.tag.inside["attr-value"].inside.punctuation=/^="|"$/,ce.languages.xquery.tag.inside["attr-value"].inside.expression={pattern:/\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}/,inside:ce.languages.xquery,alias:"language-xquery"};var Pe=function(Me){return typeof Me=="string"?Me:typeof Me.content=="string"?Me.content:Me.content.map(Pe).join("")},Re=function(Me){for(var We=[],Te=0;Te<Me.length;Te++){var Ge=Me[Te],st=!1;if(typeof Ge!="string"&&(Ge.type==="tag"&&Ge.content[0]&&Ge.content[0].type==="tag"?Ge.content[0].content[0].content==="</"?We.length>0&&We[We.length-1].tagName===Pe(Ge.content[0].content[1])&&We.pop():Ge.content[Ge.content.length-1].content==="/>"||We.push({tagName:Pe(Ge.content[0].content[1]),openedBraces:0}):We.length>0&&Ge.type==="punctuation"&&Ge.content==="{"&&(!Me[Te+1]||Me[Te+1].type!=="punctuation"||Me[Te+1].content!=="{")&&(!Me[Te-1]||Me[Te-1].type!=="plain-text"||Me[Te-1].content!=="{")?We[We.length-1].openedBraces++:We.length>0&&We[We.length-1].openedBraces>0&&Ge.type==="punctuation"&&Ge.content==="}"?We[We.length-1].openedBraces--:Ge.type!=="comment"&&(st=!0)),(st||typeof Ge=="string")&&We.length>0&&We[We.length-1].openedBraces===0){var Qe=Pe(Ge);Te<Me.length-1&&(typeof Me[Te+1]=="string"||Me[Te+1].type==="plain-text")&&(Qe+=Pe(Me[Te+1]),Me.splice(Te+1,1)),Te>0&&(typeof Me[Te-1]=="string"||Me[Te-1].type==="plain-text")&&(Qe=Pe(Me[Te-1])+Qe,Me.splice(Te-1,1),Te--),/^\s+$/.test(Qe)?Me[Te]=Qe:Me[Te]=new ce.Token("plain-text",Qe,null,Qe)}Ge.content&&typeof Ge.content!="string"&&Re(Ge.content)}};ce.hooks.add("after-tokenize",function(Me){Me.language==="xquery"&&Re(Me.tokens)})})(ue)}},14409:function(ze){"use strict";ze.exports=Ee,Ee.displayName="yaml",Ee.aliases=["yml"];function Ee(ue){(function(ce){var Pe=/[*&][^\s[\]{},]+/,Re=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,Me="(?:"+Re.source+"(?:[ ]+"+Pe.source+")?|"+Pe.source+"(?:[ ]+"+Re.source+")?)",We=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(/<PLAIN>/g,function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source}),Te=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function Ge(st,Qe){Qe=(Qe||"").replace(/m/g,"")+"m";var Ye=/([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g,function(){return Me}).replace(/<<value>>/g,function(){return st});return RegExp(Ye,Qe)}ce.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<<prop>>/g,function(){return Me})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g,function(){return Me}).replace(/<<key>>/g,function(){return"(?:"+We+"|"+Te+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:Ge(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:Ge(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:Ge(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:Ge(Te),lookbehind:!0,greedy:!0},number:{pattern:Ge(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:Re,important:Pe,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},ce.languages.yml=ce.languages.yaml})(ue)}},33460:function(ze){"use strict";ze.exports=Ee,Ee.displayName="yang",Ee.aliases=[];function Ee(ue){ue.languages.yang={comment:/\/\*[\s\S]*?\*\/|\/\/.*/,string:{pattern:/"(?:[^\\"]|\\.)*"|'[^']*'/,greedy:!0},keyword:{pattern:/(^|[{};\r\n][ \t]*)[a-z_][\w.-]*/i,lookbehind:!0},namespace:{pattern:/(\s)[a-z_][\w.-]*(?=:)/i,lookbehind:!0},boolean:/\b(?:false|true)\b/,operator:/\+/,punctuation:/[{};:]/}}},28108:function(ze){"use strict";ze.exports=Ee,Ee.displayName="zig",Ee.aliases=[];function Ee(ue){(function(ce){function Pe(Qe){return function(){return Qe}}var Re=/\b(?:align|allowzero|and|anyframe|anytype|asm|async|await|break|cancel|catch|comptime|const|continue|defer|else|enum|errdefer|error|export|extern|fn|for|if|inline|linksection|nakedcc|noalias|nosuspend|null|or|orelse|packed|promise|pub|resume|return|stdcallcc|struct|suspend|switch|test|threadlocal|try|undefined|union|unreachable|usingnamespace|var|volatile|while)\b/,Me="\\b(?!"+Re.source+")(?!\\d)\\w+\\b",We=/align\s*\((?:[^()]|\([^()]*\))*\)/.source,Te=/(?:\?|\bpromise->|(?:\[[^[\]]*\]|\*(?!\*)|\*\*)(?:\s*<ALIGN>|\s*const\b|\s*volatile\b|\s*allowzero\b)*)/.source.replace(/<ALIGN>/g,Pe(We)),Ge=/(?:\bpromise\b|(?:\berror\.)?<ID>(?:\.<ID>)*(?!\s+<ID>))/.source.replace(/<ID>/g,Pe(Me)),st="(?!\\s)(?:!?\\s*(?:"+Te+"\\s*)*"+Ge+")+";ce.languages.zig={comment:[{pattern:/\/\/[/!].*/,alias:"doc-comment"},/\/{2}.*/],string:[{pattern:/(^|[^\\@])c?"(?:[^"\\\r\n]|\\.)*"/,lookbehind:!0,greedy:!0},{pattern:/([\r\n])([ \t]+c?\\{2}).*(?:(?:\r\n?|\n)\2.*)*/,lookbehind:!0,greedy:!0}],char:{pattern:/(^|[^\\])'(?:[^'\\\r\n]|[\uD800-\uDFFF]{2}|\\(?:.|x[a-fA-F\d]{2}|u\{[a-fA-F\d]{1,6}\}))'/,lookbehind:!0,greedy:!0},builtin:/\B@(?!\d)\w+(?=\s*\()/,label:{pattern:/(\b(?:break|continue)\s*:\s*)\w+\b|\b(?!\d)\w+\b(?=\s*:\s*(?:\{|while\b))/,lookbehind:!0},"class-name":[/\b(?!\d)\w+(?=\s*=\s*(?:(?:extern|packed)\s+)?(?:enum|struct|union)\s*[({])/,{pattern:RegExp(/(:\s*)<TYPE>(?=\s*(?:<ALIGN>\s*)?[=;,)])|<TYPE>(?=\s*(?:<ALIGN>\s*)?\{)/.source.replace(/<TYPE>/g,Pe(st)).replace(/<ALIGN>/g,Pe(We))),lookbehind:!0,inside:null},{pattern:RegExp(/(\)\s*)<TYPE>(?=\s*(?:<ALIGN>\s*)?;)/.source.replace(/<TYPE>/g,Pe(st)).replace(/<ALIGN>/g,Pe(We))),lookbehind:!0,inside:null}],"builtin-type":{pattern:/\b(?:anyerror|bool|c_u?(?:int|long|longlong|short)|c_longdouble|c_void|comptime_(?:float|int)|f(?:16|32|64|128)|[iu](?:8|16|32|64|128|size)|noreturn|type|void)\b/,alias:"keyword"},keyword:Re,function:/\b(?!\d)\w+(?=\s*\()/,number:/\b(?:0b[01]+|0o[0-7]+|0x[a-fA-F\d]+(?:\.[a-fA-F\d]*)?(?:[pP][+-]?[a-fA-F\d]+)?|\d+(?:\.\d*)?(?:[eE][+-]?\d+)?)\b/,boolean:/\b(?:false|true)\b/,operator:/\.[*?]|\.{2,3}|[-=]>|\*\*|\+\+|\|\||(?:<<|>>|[-+*]%|[-+*/%^&|<>!=])=?|[?~]/,punctuation:/[.:,;(){}[\]]/},ce.languages.zig["class-name"].forEach(function(Qe){Qe.inside===null&&(Qe.inside=ce.languages.zig)})})(ue)}},92848:function(ze,Ee){"use strict";var ue;Ee.Q=Me,ue=We;var ce="",Pe=" ",Re=/[ \t\n\r\f]+/g;function Me(Te){var Ge=String(Te||ce).trim();return Ge===ce?[]:Ge.split(Re)}function We(Te){return Te.join(Pe).trim()}},77179:function(ze,Ee,ue){"use strict";var ce=this&&this.__importDefault||function(We){return We&&We.__esModule?We:{default:We}},Pe=ce(ue(58970)),Re=ue(39159);function Me(We,Te){var Ge={};return!We||typeof We!="string"||(0,Pe.default)(We,function(st,Qe){st&&Qe&&(Ge[(0,Re.camelCase)(st,Te)]=Qe)}),Ge}Me.default=Me,ze.exports=Me},39159:function(ze,Ee){"use strict";Object.defineProperty(Ee,"__esModule",{value:!0}),Ee.camelCase=void 0;var ue=/^--[a-zA-Z0-9_-]+$/,ce=/-([a-z])/g,Pe=/^[^-]+$/,Re=/^-(webkit|moz|ms|o|khtml)-/,Me=/^-(ms)-/,We=function(Qe){return!Qe||Pe.test(Qe)||ue.test(Qe)},Te=function(Qe,Ye){return Ye.toUpperCase()},Ge=function(Qe,Ye){return"".concat(Ye,"-")},st=function(Qe,Ye){return Ye===void 0&&(Ye={}),We(Qe)?Qe:(Qe=Qe.toLowerCase(),Ye.reactCompat?Qe=Qe.replace(Me,Ge):Qe=Qe.replace(Re,Ge),Qe.replace(ce,Te))};Ee.camelCase=st},58970:function(ze,Ee,ue){"use strict";var ce=this&&this.__importDefault||function(Me){return Me&&Me.__esModule?Me:{default:Me}};Object.defineProperty(Ee,"__esModule",{value:!0}),Ee.default=Re;var Pe=ce(ue(93193));function Re(Me,We){var Te=null;if(!Me||typeof Me!="string")return Te;var Ge=(0,Pe.default)(Me),st=typeof We=="function";return Ge.forEach(function(Qe){if(Qe.type==="declaration"){var Ye=Qe.property,yt=Qe.value;st?We(Ye,yt,Qe):yt&&(Te=Te||{},Te[Ye]=yt)}}),Te}},97270:function(ze){ze.exports=ue;var Ee=Object.prototype.hasOwnProperty;function ue(){for(var ce={},Pe=0;Pe<arguments.length;Pe++){var Re=arguments[Pe];for(var Me in Re)Ee.call(Re,Me)&&(ce[Me]=Re[Me])}return ce}},90034:function(ze,Ee,ue){var ce={"./doc.png":63604,"./docx.png":30045,"./jpg.png":13740,"./md.png":58881,"./pdf.png":28982,"./png.png":2487,"./txt.png":3164,"./xls.png":88745,"./xlsx.png":49321};function Pe(Me){var We=Re(Me);return ue(We)}function Re(Me){if(!ue.o(ce,Me)){var We=new Error("Cannot find module '"+Me+"'");throw We.code="MODULE_NOT_FOUND",We}return ce[Me]}Pe.keys=function(){return Object.keys(ce)},Pe.resolve=Re,ze.exports=Pe,Pe.id=90034},93314:function(ze){"use strict";ze.exports="data:image/png;base64,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"},71986:function(ze){"use strict";ze.exports="data:image/png;base64,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"},37166:function(ze){"use strict";ze.exports="data:image/png;base64,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"},28984:function(ze){"use strict";ze.exports="data:image/png;base64,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"},63604:function(ze){"use strict";ze.exports="data:image/png;base64,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"},30045:function(ze){"use strict";ze.exports="data:image/png;base64,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"},13740:function(ze){"use strict";ze.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAOXUlEQVR4nO3dXWxbZx3H8b/TOG3TlyQdgdFu1O3Wsa1odaADpQMlQbsBAU0lkBhCaiYhcQHS2kuu1t5y00ziBglprUDaJCY1E7BdMNEEtlVjk5wKqUNKWZ2p3YuSLk7WZG3ezP9Xz63rnPP42D6Pc87j30c69XMyxbGd5+vzYsdLyDqYmZlJLy+3HJVEPq2r/UKhuDiRlWRrq7Qlk7NtG1v/dv+9O37V1dWV0/9ENWpoIBpG59JKy6mE5IeEQodASmksq1vbN//2sf0P/EZXqQYNC0TjSC+vJM7psFMXsqA8kKKt7e2Zbxx46Os6pCo1JBCNI6VxZHTIOCzyCwS2bN586WD6q/t0SFVoSCBT0zlsOfqFrDIFAoyketYDmZ6eGcxL4qwOybJKgQAjqY71QKamZ0b0xxzWIVkWJBBgJME1IJBcXi+oAYIGAowkGKuB6ME5zlxldEgNUE0gwEgqsxrI1NRMvyRundqlBqg2EGAkZgzEIbUEAozEHwNxSK2BACPxxkAcUk8gwEjWYiAOqTcQYCR3YyAOCSMQYCR3MBCHhBUIMJICBuKQMAMBRiIMxCVhBwLNHgkDcYiNQKCZI2EgDrEVCDRrJAzEITYDgWaMhIE4xHYg0GyRMBCHNCIQaKZIGIhDGhUINEskDMQhjQwEmiESBuKQRgcCrkfCQByyHoGAy5EwEIesVyDgaiQMxCHrGQi4GAkDcch6BwKuRcJAHBKFQMClSBiIQ6ISCLgSCQNxSJQCARciYSAOiVogEPdIGIhDohgIxDkSBuKQqAYCcY2EgTgkyoFAHCNhIA6JeiAQt0gYiEPiEAjEKRIG4pC4BAJxiYSBOCROgUAcImEgDolbIBD1SBiIQ+IYCEQ5EgbikLgGAlGNhIE4JM6BQBQjYSAOiXsgELVIGIhDXAgEohQJA3GIK4FAVCJhIA5xKRCIQiQMxCGuBQLrHQkDcYiLgcB6RsJAHOJqILBekTAQh7gcCKxHJAzEIf97/wO5eXNRR+5qdCQMxCHZKx/Jwmc3dOS2LZs3XjyYfmS/Dq1jIA65NjMnH09/oiP3bd/S/kLPYw/9TIdWMRCH3NDdq/d0N6sZtLS05Hd1f2HP3r07J3XVmoQu1jCQxrv60bTMfnpdR+7bvn3LSM/+fUd0aA0DcczKyqpMZK/I6uqqrrmtLZn8rPfg/nYdWsNAHIRdLRywN0Mkfb1pq3PY6pUzkPWDSK5+PO38ad/7v/TFlM3jkIQu1jCQ9Zebuy7XcnPOhnJPx7bjX3v0gWEdWsFAmsTi0rIsYVnWRS9d0daWfOrBPbte1KEVDITiLZ8f6O7uGhVLGAjFGwMhMmAgRAYMhMiAgRAZMBAiAwZCZMBAiAwYCJEBAyEyYCBEBgyEyICBEBkwECIDBkJkwECIDBgIkQEDITJgIEQGDITIgIEQGcQ5kLl3z/3gZnfPX3RIZMXGqcwPtz8y8FcdWmEtkPwpSa8kv/y7mZ+++4SuElnR9eIjb2xY+vDXieMyrquhsxII4pBlOZfftCN77an30volIivueWHveOLGJylplQEbkYQeSDEOHXZqIOMMhGz6PBDMsZyNSEINpDQOXYSBkG0lgUDokYQWSHkcwEDItrJAINRIQgnEKw5gIGSbRyAQWiR1B+IXBzAQss0nEAglkroCMcUBDIRsMwQCdUdScyCV4gAGQrZVCATqiqSmQILEAQyEbAsQCNQcSdWBBI0DGAjZFjAQqCmSqgKpJg5gIGRbFYFA1ZEEDqTaOICBkG1VBgJVRRIokFriAAZCttUQCASOpGIgtcYBDIRsqzEQCBSJMZB64gAGQrbVEQhUjMQ3kHrjAAZCttUZCBgj8QwkjDiAgZBtIQQCvpGsCST/B9ktn8qfJC9bdbUu+a27Zue++/s+HRJZsf0fvxxLXL/aocP6JOS6bJOfJ34hk7p2W0KXu+T/LP0it7YeRM1mIPETGZUSDIToDgZCZMBAiAwYCJEBAyEyYCBEBgyEyICBEBkwkIo60yLJkhdmcxdElnI6CCDZqd9/QAd1mBrTf9YBbnt3n97+tK6oDr1s69SBms+KLOgCH7ysj8m4DpzEQIx6z4rsGtRBmTeP6MQY0YFBd3/h+4uTqh6YkFOjIpNnCpe2tKdEdh4u3Gfc/qAWc4XbhccEt9EdDMTox3n9xwOe1cf6xejRE7o8K6HDRLxwPNxnbWwt9j0j8uCx+oNGzBdPuBIKAzGKYiBF48dELj2ngzo9qGHgttYbRjkE/M7Thcv4YiBGUQ4ELp7U5YTU7ODzIqkhsQa7Xrh9YYS8PhiIUdQDgbef1t2Z01IV7FL1nbtzAG7T0qzI3/XnLGQlhhiIURwCgVf2VDcBn8wEiwNn7HDgPZ+9+/pxMI/v3zkosmW3GNUScHQwECNbgbyU0H8qwLM8ziRhEuKsUump5nJXR0TOH9FBAEF2q7JnCrtGC1mpCLHgvqaOyho4mTAxrIPYYiBG6xlIKUzCQyP6rH1AfAXZiuw7JnLglA58zE/qgfWQ3r9RqRpuY3pYgz4styCyd4Yk5hiIUVQCAWxR+kb9I6n0bI3v/95l/7NV2J3CfQr6Iqgf3G9s9V5LiwMYiFGUAgHs9+P4wUul23TwtHjuBkFYcbiHgRhFLRB4clxDOaADD37Xi92f718WTzjLhPsS79crbGEgRlEMpJbrPTCsxx/P6MDDxZO6nBDyxECMXAkExx5bUrIGth6vpPQyJ+SJgRhFMRAcqONdtl68rtd03DLxnB7cH9MB+WAgRlEM5Ecz3mei5idFXk3JGvuO6S7WKR14GBvQ+zIq5IuBGEUtEJw+PXRWBx7wdxlv6n8vZ+N2NA8GYhSlQPA6BnaVvI4lwO8tHX67ZDj+eFmvs1q7h8T3dLGf+azuyh3Xn5mTmGEgRlEJpDOtr2M8X7j083KX9wT0CyTIffDi95hU4hdwtDEQI7/JEGRyhREI3raB3arUkBhdPKnLCfEUlUBMtzG6GIiR32QIMrlMgVQ6MC79++9K5icLb+vw2noAA6kHAzHymwxBJpcpkDBVOhPFQOrBQIz8JkOQydWIQILs1/sFAkF39UqZXpU3YSAOimogOAP19pCe2h2RikwTutLWpxZ+QTIQB0UxEPxsxLGQlUC6+3XSnhNPNl5JZyBNJCqBYIuBvxq8NFzbu24P5/R1lA4dlFnUr7+6R69fL8PCQJqIrUCwa2OC1zsweReyhclbSxSlDo3o6eLDOvAQ9sRlIE3CtGtSbyC1HBzXw3Rf4LWe+iMsYiAxhDfr4ZP+qpkEpoPbIPvuUQoE/CYuzGcLkWBrVS+/n8NAIgpv0UgNFeLArk3QSeD3NxQQ5PRq1AKptBWZzxY+GQWPUz3wfjHsIpZjIBFUjKMI+/WYBJVObZZ/X7kgnyAStUDg4Gm9X0fFFx4fbBmxta0WAsSW2isOYCARY5rk2dOFSVAeCt4xi+/D51D58XtbebkoBgJ+u0ClsBXBZMaxVqUt7u6jhccZgZgwkAjBW7Iff14qwjPm7LgOPlfplwzYTSsPy0tUA8GTAD74odInIhbhviKY0lBwHdhSBHm8ivB294lhHcSKo4HAoRH/U5u1CnJwXhTVQACfcoLHx+/TUcKE13Cw5ZgYlhhyOBA8yx0a0We5Pl0JAT476rW0DgKKciCAx+fx0+E/iZTCY/bOkF6OS0w5HEiR6XRtUDjuwNs7SnczKol6IEW4nfuOaTAdEpr5ycJWo9KZvuhrgkAA+8oHTwff7y7C7sHEcOGXXS1MvDgEAtiaIBIs9YTiThhFTRJIEULBATzOUpkmAn7ReKcsftnVbDVK4Wd5ve6AM0Nj/RJJCAW3e+dg5ccI8ASCg3gseK/YQlYc02SBlMJZGEwILBjPZwu/YAQR1j5z8bpLYTLFRentxyUeIzw+EKf7UbsmDoSoAo1jTQ9rvgAaSV4viJrJrAbSqZd38QtkRC8O60LULM5oIENSxjuQl2RQtyFndUjULAY0kFEp4xkI6FZkVPS8jC5ErjujcQyJB/9Azur+2LJkRaRDFyI35eWCJKU/cURyuraGbyCgkaQ1khEd7taFyC2FOAY1jqz4MAYCGkmnRjKsw6O6ELnipLTKsMaR07GvioEUaSgpDWVQh1igTxeiuBjTJafLqIYxomFkJYCELtZMTc30SyJxTodEduTzA93dXaNiCQOheGMgRAYMhMiAgRAZMBAiAwZCZMBAiAwYCJEBAyEyYCBEBgyEyICBEBkwECIDBkJkwECIDBgIkQEDITJgIEQGDITI338nLg98p7dnVCyxGsi/zmf6H963h4GQNbEPZG/qvj+2JZP36SpRqK5fXxi/8uHHx2MdyLZtW5/ddW93vxCF7P0PPhpbmP/sRKwDWZXEyMMPfEVaWlr4EaYUmsWlpSuXsle3tUh+MO6BnNvUlnx97+5d39YvEYXiUvbKW4tLy9/SQOJ9DIJAdCjd93S93r2jg5FQ3bJXdddq4UafDsWZQKC9fdNYate9fTokqsl7k1dfv7G4dPuJ1qlAbknIle4dnVldbt9JIpPV1dXZa7m5/0x9kktJXu7TL93mXiB3zG7YsOHyxo3J2daWDXldJ7rL4uJi69LK6taVlZW0rnpq3ZDveeKbPeM6tMJqIG/8O5NeXklkdEhkRV9v2uoctnrlMHZ+nFsHsiIv+cn+3p6UWGQ/kDczI5JIHNYhUcjyZ/p6e4bEIuuB/POtzGB+NXFWh0Shsn2ADtYDgbHzmVH9UX1CFBr7Ww9oSCDnz2dSN0XGE5Lo0FWiuuixx4WOTdLf09OT01WrGhII4IzW0oqMMhKqB+JIbpAhm6d2SzUsEMhkMp1zN/B/zE0c1VWiKuXPbN8kxxqx5ShqaCBF2JosL8uQ/vS08NiEfOjWYlYn6LgOR9tETvf29mSlwf4P8IbCQbr23ycAAAAASUVORK5CYII="},58881:function(ze){"use strict";ze.exports="data:image/png;base64,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"},28982:function(ze){"use strict";ze.exports="data:image/png;base64,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"},2487:function(ze){"use strict";ze.exports="data:image/png;base64,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"},3164:function(ze){"use strict";ze.exports="data:image/png;base64,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"},88745:function(ze){"use strict";ze.exports="data:image/png;base64,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"},49321:function(ze){"use strict";ze.exports="data:image/png;base64,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"},96908:function(ze){"use strict";ze.exports="data:image/png;base64,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"},57177:function(ze){"use strict";ze.exports="data:image/png;base64,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"},81378:function(ze){"use strict";ze.exports="data:image/png;base64,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"},90302:function(ze,Ee,ue){"use strict";ue.d(Ee,{ZP:function(){return be}});const ce=-1,Pe=0,Re=1,Me=2,We=3,Te=4,Ge=5,st=6,Qe=7,Ye=8,yt=typeof self=="object"?self:globalThis,ot=(Ae,Le)=>{const je=(qe,nt)=>(Ae.set(nt,qe),qe),$e=qe=>{if(Ae.has(qe))return Ae.get(qe);const[nt,dt]=Le[qe];switch(nt){case Pe:case ce:return je(dt,qe);case Re:{const it=je([],qe);for(const bt of dt)it.push($e(bt));return it}case Me:{const it=je({},qe);for(const[bt,It]of dt)it[$e(bt)]=$e(It);return it}case We:return je(new Date(dt),qe);case Te:{const{source:it,flags:bt}=dt;return je(new RegExp(it,bt),qe)}case Ge:{const it=je(new Map,qe);for(const[bt,It]of dt)it.set($e(bt),$e(It));return it}case st:{const it=je(new Set,qe);for(const bt of dt)it.add($e(bt));return it}case Qe:{const{name:it,message:bt}=dt;return je(new yt[it](bt),qe)}case Ye:return je(BigInt(dt),qe);case"BigInt":return je(Object(BigInt(dt)),qe);case"ArrayBuffer":return je(new Uint8Array(dt).buffer,dt);case"DataView":{const{buffer:it}=new Uint8Array(dt);return je(new DataView(it),dt)}}return je(new yt[nt](dt),qe)};return $e},Nt=Ae=>ot(new Map,Ae)(0),Fe="",{toString:ne}={},{keys:te}=Object,he=Ae=>{const Le=typeof Ae;if(Le!=="object"||!Ae)return[Pe,Le];const je=ne.call(Ae).slice(8,-1);switch(je){case"Array":return[Re,Fe];case"Object":return[Me,Fe];case"Date":return[We,Fe];case"RegExp":return[Te,Fe];case"Map":return[Ge,Fe];case"Set":return[st,Fe];case"DataView":return[Re,je]}return je.includes("Array")?[Re,je]:je.includes("Error")?[Qe,je]:[Me,je]},se=([Ae,Le])=>Ae===Pe&&(Le==="function"||Le==="symbol"),ge=(Ae,Le,je,$e)=>{const qe=(dt,it)=>{const bt=$e.push(dt)-1;return je.set(it,bt),bt},nt=dt=>{if(je.has(dt))return je.get(dt);let[it,bt]=he(dt);switch(it){case Pe:{let Ht=dt;switch(bt){case"bigint":it=Ye,Ht=dt.toString();break;case"function":case"symbol":if(Ae)throw new TypeError("unable to serialize "+bt);Ht=null;break;case"undefined":return qe([ce],dt)}return qe([it,Ht],dt)}case Re:{if(bt){let un=dt;return bt==="DataView"?un=new Uint8Array(dt.buffer):bt==="ArrayBuffer"&&(un=new Uint8Array(dt)),qe([bt,[...un]],dt)}const Ht=[],ln=qe([it,Ht],dt);for(const un of dt)Ht.push(nt(un));return ln}case Me:{if(bt)switch(bt){case"BigInt":return qe([bt,dt.toString()],dt);case"Boolean":case"Number":case"String":return qe([bt,dt.valueOf()],dt)}if(Le&&"toJSON"in dt)return nt(dt.toJSON());const Ht=[],ln=qe([it,Ht],dt);for(const un of te(dt))(Ae||!se(he(dt[un])))&&Ht.push([nt(un),nt(dt[un])]);return ln}case We:return qe([it,dt.toISOString()],dt);case Te:{const{source:Ht,flags:ln}=dt;return qe([it,{source:Ht,flags:ln}],dt)}case Ge:{const Ht=[],ln=qe([it,Ht],dt);for(const[un,Qt]of dt)(Ae||!(se(he(un))||se(he(Qt))))&&Ht.push([nt(un),nt(Qt)]);return ln}case st:{const Ht=[],ln=qe([it,Ht],dt);for(const un of dt)(Ae||!se(he(un)))&&Ht.push(nt(un));return ln}}const{message:It}=dt;return qe([it,{name:bt,message:It}],dt)};return nt},Se=(Ae,{json:Le,lossy:je}={})=>{const $e=[];return ge(!(Le||je),!!Le,new Map,$e)(Ae),$e};var be=typeof structuredClone=="function"?(Ae,Le)=>Le&&("json"in Le||"lossy"in Le)?Nt(Se(Ae,Le)):structuredClone(Ae):(Ae,Le)=>Nt(Se(Ae,Le))},11630:function(ze,Ee,ue){"use strict";ue.d(Ee,{P:function(){return Pe},Q:function(){return ce}});function ce(Re){const Me=[],We=String(Re||"");let Te=We.indexOf(","),Ge=0,st=!1;for(;!st;){Te===-1&&(Te=We.length,st=!0);const Qe=We.slice(Ge,Te).trim();(Qe||!st)&&Me.push(Qe),Ge=Te+1,Te=We.indexOf(",",Ge)}return Me}function Pe(Re,Me){const We=Me||{};return(Re[Re.length-1]===""?[...Re,""]:Re).join((We.padRight?" ":"")+","+(We.padLeft===!1?"":" ")).trim()}},87342:function(ze,Ee,ue){"use strict";ue.d(Ee,{ok:function(){return Re},t1:function(){return Me}});function ce(We){return We}function Pe(){}function Re(){}function Me(){}},40797:function(ze,Ee,ue){"use strict";ue.d(Ee,{N:function(){return Nt}});var ce=ue(81994),Pe=ue(43309);function Re(ne,te){return Me(ne,te||{})||{type:"root",children:[]}}function Me(ne,te){const he=We(ne,te);return he&&te.afterTransform&&te.afterTransform(ne,he),he}function We(ne,te){switch(ne.nodeType){case 1:return Ye(ne,te);case 3:return st(ne);case 8:return Qe(ne);case 9:return Te(ne,te);case 10:return Ge();case 11:return Te(ne,te);default:return}}function Te(ne,te){return{type:"root",children:yt(ne,te)}}function Ge(){return{type:"doctype"}}function st(ne){return{type:"text",value:ne.nodeValue||""}}function Qe(ne){return{type:"comment",value:ne.nodeValue||""}}function Ye(ne,te){const he=ne.namespaceURI,se=he===Pe.t.svg?ce.s:ce.h,ge=he===Pe.t.html?ne.tagName.toLowerCase():ne.tagName,Se=he===Pe.t.html&&ge==="template"?ne.content:ne,be=ne.getAttributeNames(),Ae={};let Le=-1;for(;++Le<be.length;)Ae[be[Le]]=ne.getAttribute(be[Le])||"";return se(ge,Ae,yt(Se,te))}function yt(ne,te){const he=ne.childNodes,se=[];let ge=-1;for(;++ge<he.length;){const Se=Me(he[ge],te);Se!==void 0&&se.push(Se)}return se}const ot=new DOMParser;function Nt(ne,te){const he=te!=null&&te.fragment?Fe(ne):ot.parseFromString(ne,"text/html");return Re(he)}function Fe(ne){const te=document.createElement("template");return te.innerHTML=ne,te.content}},91378:function(ze,Ee,ue){"use strict";ue.d(Ee,{l:function(){return se}});var ce=ue(10502);const Pe=function(dt,it,bt){const It=(0,ce.O)(bt);if(!dt||!dt.type||!dt.children)throw new Error("Expected parent node");if(typeof it=="number"){if(it<0||it===Number.POSITIVE_INFINITY)throw new Error("Expected positive finite number as index")}else if(it=dt.children.indexOf(it),it<0)throw new Error("Expected child node or index");for(;++it<dt.children.length;)if(It(dt.children[it],it,dt))return dt.children[it]},Re=function(dt,it,bt,It,Ht){const ln=Me(it);if(bt!=null&&(typeof bt!="number"||bt<0||bt===Number.POSITIVE_INFINITY))throw new Error("Expected positive finite `index`");if(It!=null&&(!It.type||!It.children))throw new Error("Expected valid `parent`");if(bt==null!=(It==null))throw new Error("Expected both `index` and `parent`");return Qe(dt)?ln.call(Ht,dt,bt,It):!1},Me=function(dt){if(dt==null)return st;if(typeof dt=="string")return Te(dt);if(typeof dt=="object")return We(dt);if(typeof dt=="function")return Ge(dt);throw new Error("Expected function, string, or array as `test`")};function We(dt){const it=[];let bt=-1;for(;++bt<dt.length;)it[bt]=Me(dt[bt]);return Ge(It);function It(...Ht){let ln=-1;for(;++ln<it.length;)if(it[ln].apply(this,Ht))return!0;return!1}}function Te(dt){return Ge(it);function it(bt){return bt.tagName===dt}}function Ge(dt){return it;function it(bt,It,Ht){return!!(Qe(bt)&&dt.call(this,bt,typeof It=="number"?It:void 0,Ht||void 0))}}function st(dt){return!!(dt&&typeof dt=="object"&&"type"in dt&&dt.type==="element"&&"tagName"in dt&&typeof dt.tagName=="string")}function Qe(dt){return dt!==null&&typeof dt=="object"&&"type"in dt&&"tagName"in dt}const Ye=/\n/g,yt=/[\t ]+/g,ot=Me("br"),Nt=Me(qe),Fe=Me("p"),ne=Me("tr"),te=Me(["datalist","head","noembed","noframes","noscript","rp","script","style","template","title",$e,nt]),he=Me(["address","article","aside","blockquote","body","caption","center","dd","dialog","dir","dl","dt","div","figure","figcaption","footer","form,","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","legend","li","listing","main","menu","nav","ol","p","plaintext","pre","section","ul","xmp"]);function se(dt,it){const bt=it||{},It="children"in dt?dt.children:[],Ht=he(dt),ln=je(dt,{whitespace:bt.whitespace||"normal",breakBefore:!1,breakAfter:!1}),un=[];(dt.type==="text"||dt.type==="comment")&&un.push(...be(dt,{whitespace:ln,breakBefore:!0,breakAfter:!0}));let Qt=-1;for(;++Qt<It.length;)un.push(...ge(It[Qt],dt,{whitespace:ln,breakBefore:Qt?void 0:Ht,breakAfter:Qt<It.length-1?ot(It[Qt+1]):Ht}));const nn=[];let At;for(Qt=-1;++Qt<un.length;){const ct=un[Qt];typeof ct=="number"?At!==void 0&&ct>At&&(At=ct):ct&&(At!==void 0&&At>-1&&nn.push(`
|
|
|
`.repeat(At)||" "),At=-1,nn.push(ct))}return nn.join("")}function ge(dt,it,bt){return dt.type==="element"?Se(dt,it,bt):dt.type==="text"?bt.whitespace==="normal"?be(dt,bt):Ae(dt):[]}function Se(dt,it,bt){const It=je(dt,bt),Ht=dt.children||[];let ln=-1,un=[];if(te(dt))return un;let Qt,nn;for(ot(dt)||ne(dt)&&Pe(it,dt,ne)?nn=`
|
|
|
`:Fe(dt)?(Qt=2,nn=2):he(dt)&&(Qt=1,nn=1);++ln<Ht.length;)un=un.concat(ge(Ht[ln],dt,{whitespace:It,breakBefore:ln?void 0:Qt,breakAfter:ln<Ht.length-1?ot(Ht[ln+1]):nn}));return Nt(dt)&&Pe(it,dt,Nt)&&un.push(" "),Qt&&un.unshift(Qt),nn&&un.push(nn),un}function be(dt,it){const bt=String(dt.value),It=[],Ht=[];let ln=0;for(;ln<=bt.length;){Ye.lastIndex=ln;const nn=Ye.exec(bt),At=nn&&"index"in nn?nn.index:bt.length;It.push(Le(bt.slice(ln,At).replace(/[\u061C\u200E\u200F\u202A-\u202E\u2066-\u2069]/g,""),ln===0?it.breakBefore:!0,At===bt.length?it.breakAfter:!0)),ln=At+1}let un=-1,Qt;for(;++un<It.length;)It[un].charCodeAt(It[un].length-1)===8203||un<It.length-1&&It[un+1].charCodeAt(0)===8203?(Ht.push(It[un]),Qt=void 0):It[un]?(typeof Qt=="number"&&Ht.push(Qt),Ht.push(It[un]),Qt=0):(un===0||un===It.length-1)&&Ht.push(0);return Ht}function Ae(dt){return[String(dt.value)]}function Le(dt,it,bt){const It=[];let Ht=0,ln;for(;Ht<dt.length;){yt.lastIndex=Ht;const un=yt.exec(dt);ln=un?un.index:dt.length,!Ht&&!ln&&un&&!it&&It.push(""),Ht!==ln&&It.push(dt.slice(Ht,ln)),Ht=un?ln+un[0].length:ln}return Ht!==ln&&!bt&&It.push(""),It.join(" ")}function je(dt,it){if(dt.type==="element"){const bt=dt.properties||{};switch(dt.tagName){case"listing":case"plaintext":case"xmp":return"pre";case"nobr":return"nowrap";case"pre":return bt.wrap?"pre-wrap":"pre";case"td":case"th":return bt.noWrap?"nowrap":it.whitespace;case"textarea":return"pre-wrap";default:}}return it.whitespace}function $e(dt){return!!(dt.properties||{}).hidden}function qe(dt){return dt.tagName==="td"||dt.tagName==="th"}function nt(dt){return dt.tagName==="dialog"&&!(dt.properties||{}).open}},81994:function(ze,Ee,ue){"use strict";ue.d(Ee,{h:function(){return te},s:function(){return he}});var ce=ue(58222),Pe=ue(11630);const Re=/[#.]/g;function Me(se,ge){const Se=se||"",be={};let Ae=0,Le,je;for(;Ae<Se.length;){Re.lastIndex=Ae;const $e=Re.exec(Se),qe=Se.slice(Ae,$e?$e.index:Se.length);qe&&(Le?Le==="#"?be.id=qe:Array.isArray(be.className)?be.className.push(qe):be.className=[qe]:je=qe,Ae+=qe.length),$e&&(Le=$e[0],Ae++)}return{type:"element",tagName:je||ge||"div",properties:be,children:[]}}var We=ue(84837),Te=ue(64326),Ge=ue(71523);function st(se,ge,Se){const be=Se?Fe(Se):void 0;function Ae(Le,je,...$e){let qe;if(Le==null){qe={type:"root",children:[]};const nt=je;$e.unshift(nt)}else{qe=Me(Le,ge);const nt=qe.tagName.toLowerCase(),dt=be?be.get(nt):void 0;if(qe.tagName=dt||nt,Qe(je))$e.unshift(je);else for(const[it,bt]of Object.entries(je))Ye(se,qe.properties,it,bt)}for(const nt of $e)yt(qe.children,nt);return qe.type==="element"&&qe.tagName==="template"&&(qe.content={type:"root",children:qe.children},qe.children=[]),qe}return Ae}function Qe(se){if(se===null||typeof se!="object"||Array.isArray(se))return!0;if(typeof se.type!="string")return!1;const ge=se,Se=Object.keys(se);for(const be of Se){const Ae=ge[be];if(Ae&&typeof Ae=="object"){if(!Array.isArray(Ae))return!0;const Le=Ae;for(const je of Le)if(typeof je!="number"&&typeof je!="string")return!0}}return!!("children"in se&&Array.isArray(se.children))}function Ye(se,ge,Se,be){const Ae=(0,We.s)(se,Se);let Le;if(be!=null){if(typeof be=="number"){if(Number.isNaN(be))return;Le=be}else typeof be=="boolean"?Le=be:typeof be=="string"?Ae.spaceSeparated?Le=(0,Ge.Q)(be):Ae.commaSeparated?Le=(0,Pe.Q)(be):Ae.commaOrSpaceSeparated?Le=(0,Ge.Q)((0,Pe.Q)(be).join(" ")):Le=ot(Ae,Ae.property,be):Array.isArray(be)?Le=[...be]:Le=Ae.property==="style"?Nt(be):String(be);if(Array.isArray(Le)){const je=[];for(const $e of Le)je.push(ot(Ae,Ae.property,$e));Le=je}Ae.property==="className"&&Array.isArray(ge.className)&&(Le=ge.className.concat(Le)),ge[Ae.property]=Le}}function yt(se,ge){if(ge!=null)if(typeof ge=="number"||typeof ge=="string")se.push({type:"text",value:String(ge)});else if(Array.isArray(ge))for(const Se of ge)yt(se,Se);else if(typeof ge=="object"&&"type"in ge)ge.type==="root"?yt(se,ge.children):se.push(ge);else throw new Error("Expected node, nodes, or string, got `"+ge+"`")}function ot(se,ge,Se){if(typeof Se=="string"){if(se.number&&Se&&!Number.isNaN(Number(Se)))return Number(Se);if((se.boolean||se.overloadedBoolean)&&(Se===""||(0,Te.F)(Se)===(0,Te.F)(ge)))return!0}return Se}function Nt(se){const ge=[];for(const[Se,be]of Object.entries(se))ge.push([Se,be].join(": "));return ge.join("; ")}function Fe(se){const ge=new Map;for(const Se of se)ge.set(Se.toLowerCase(),Se);return ge}const ne=["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"],te=st(ce.dy,"div"),he=st(ce.YP,"g",ne)},26735:function(ze,Ee,ue){"use strict";ue.d(Ee,{f:function(){return Pe}});var ce=ue(80722);function Pe(Re,Me,We,Te){const Ge=Te?Te-1:Number.POSITIVE_INFINITY;let st=0;return Qe;function Qe(yt){return(0,ce.xz)(yt)?(Re.enter(We),Ye(yt)):Me(yt)}function Ye(yt){return(0,ce.xz)(yt)&&st++<Ge?(Re.consume(yt),Ye):(Re.exit(We),Me(yt))}}},80722:function(ze,Ee,ue){"use strict";ue.d(Ee,{AF:function(){return Te},Av:function(){return Me},B8:function(){return ot},Ch:function(){return st},H$:function(){return Pe},Xh:function(){return yt},jv:function(){return ce},n9:function(){return Re},pY:function(){return We},sR:function(){return Ge},xz:function(){return Ye},z3:function(){return Qe}});const ce=Nt(/[A-Za-z]/),Pe=Nt(/[\dA-Za-z]/),Re=Nt(/[#-'*+\--9=?A-Z^-~]/);function Me(Fe){return Fe!==null&&(Fe<32||Fe===127)}const We=Nt(/\d/),Te=Nt(/[\dA-Fa-f]/),Ge=Nt(/[!-/:-@[-`{-~]/);function st(Fe){return Fe!==null&&Fe<-2}function Qe(Fe){return Fe!==null&&(Fe<0||Fe===32)}function Ye(Fe){return Fe===-2||Fe===-1||Fe===32}const yt=Nt(new RegExp("\\p{P}|\\p{S}","u")),ot=Nt(/\s/);function Nt(Fe){return ne;function ne(te){return te!==null&&te>-1&&Fe.test(String.fromCharCode(te))}}},58222:function(ze,Ee,ue){"use strict";ue.d(Ee,{dy:function(){return ne},YP:function(){return te}});class ce{constructor(se,ge,Se){this.normal=ge,this.property=se,Se&&(this.space=Se)}}ce.prototype.normal={},ce.prototype.property={},ce.prototype.space=void 0;function Pe(he,se){const ge={},Se={};for(const be of he)Object.assign(ge,be.property),Object.assign(Se,be.normal);return new ce(ge,Se,se)}var Re=ue(64326),Me=ue(95516);function We(he){const se={},ge={};for(const[Se,be]of Object.entries(he.properties)){const Ae=new Me.I(Se,he.transform(he.attributes||{},Se),be,he.space);he.mustUseProperty&&he.mustUseProperty.includes(Se)&&(Ae.mustUseProperty=!0),se[Se]=Ae,ge[(0,Re.F)(Se)]=Se,ge[(0,Re.F)(Ae.attribute)]=Se}return new ce(se,ge,he.space)}var Te=ue(56488);const Ge=We({properties:{ariaActiveDescendant:null,ariaAtomic:Te.booleanish,ariaAutoComplete:null,ariaBusy:Te.booleanish,ariaChecked:Te.booleanish,ariaColCount:Te.number,ariaColIndex:Te.number,ariaColSpan:Te.number,ariaControls:Te.spaceSeparated,ariaCurrent:null,ariaDescribedBy:Te.spaceSeparated,ariaDetails:null,ariaDisabled:Te.booleanish,ariaDropEffect:Te.spaceSeparated,ariaErrorMessage:null,ariaExpanded:Te.booleanish,ariaFlowTo:Te.spaceSeparated,ariaGrabbed:Te.booleanish,ariaHasPopup:null,ariaHidden:Te.booleanish,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Te.spaceSeparated,ariaLevel:Te.number,ariaLive:null,ariaModal:Te.booleanish,ariaMultiLine:Te.booleanish,ariaMultiSelectable:Te.booleanish,ariaOrientation:null,ariaOwns:Te.spaceSeparated,ariaPlaceholder:null,ariaPosInSet:Te.number,ariaPressed:Te.booleanish,ariaReadOnly:Te.booleanish,ariaRelevant:null,ariaRequired:Te.booleanish,ariaRoleDescription:Te.spaceSeparated,ariaRowCount:Te.number,ariaRowIndex:Te.number,ariaRowSpan:Te.number,ariaSelected:Te.booleanish,ariaSetSize:Te.number,ariaSort:null,ariaValueMax:Te.number,ariaValueMin:Te.number,ariaValueNow:Te.number,ariaValueText:null,role:null},transform(he,se){return se==="role"?se:"aria-"+se.slice(4).toLowerCase()}});function st(he,se){return se in he?he[se]:se}function Qe(he,se){return st(he,se.toLowerCase())}const Ye=We({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Te.commaSeparated,acceptCharset:Te.spaceSeparated,accessKey:Te.spaceSeparated,action:null,allow:null,allowFullScreen:Te.boolean,allowPaymentRequest:Te.boolean,allowUserMedia:Te.boolean,alt:null,as:null,async:Te.boolean,autoCapitalize:null,autoComplete:Te.spaceSeparated,autoFocus:Te.boolean,autoPlay:Te.boolean,blocking:Te.spaceSeparated,capture:null,charSet:null,checked:Te.boolean,cite:null,className:Te.spaceSeparated,cols:Te.number,colSpan:null,content:null,contentEditable:Te.booleanish,controls:Te.boolean,controlsList:Te.spaceSeparated,coords:Te.number|Te.commaSeparated,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Te.boolean,defer:Te.boolean,dir:null,dirName:null,disabled:Te.boolean,download:Te.overloadedBoolean,draggable:Te.booleanish,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Te.boolean,formTarget:null,headers:Te.spaceSeparated,height:Te.number,hidden:Te.boolean,high:Te.number,href:null,hrefLang:null,htmlFor:Te.spaceSeparated,httpEquiv:Te.spaceSeparated,id:null,imageSizes:null,imageSrcSet:null,inert:Te.boolean,inputMode:null,integrity:null,is:null,isMap:Te.boolean,itemId:null,itemProp:Te.spaceSeparated,itemRef:Te.spaceSeparated,itemScope:Te.boolean,itemType:Te.spaceSeparated,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Te.boolean,low:Te.number,manifest:null,max:null,maxLength:Te.number,media:null,method:null,min:null,minLength:Te.number,multiple:Te.boolean,muted:Te.boolean,name:null,nonce:null,noModule:Te.boolean,noValidate:Te.boolean,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Te.boolean,optimum:Te.number,pattern:null,ping:Te.spaceSeparated,placeholder:null,playsInline:Te.boolean,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Te.boolean,referrerPolicy:null,rel:Te.spaceSeparated,required:Te.boolean,reversed:Te.boolean,rows:Te.number,rowSpan:Te.number,sandbox:Te.spaceSeparated,scope:null,scoped:Te.boolean,seamless:Te.boolean,selected:Te.boolean,shadowRootClonable:Te.boolean,shadowRootDelegatesFocus:Te.boolean,shadowRootMode:null,shape:null,size:Te.number,sizes:null,slot:null,span:Te.number,spellCheck:Te.booleanish,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Te.number,step:null,style:null,tabIndex:Te.number,target:null,title:null,translate:null,type:null,typeMustMatch:Te.boolean,useMap:null,value:Te.booleanish,width:Te.number,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Te.spaceSeparated,axis:null,background:null,bgColor:null,border:Te.number,borderColor:null,bottomMargin:Te.number,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Te.boolean,declare:Te.boolean,event:null,face:null,frame:null,frameBorder:null,hSpace:Te.number,leftMargin:Te.number,link:null,longDesc:null,lowSrc:null,marginHeight:Te.number,marginWidth:Te.number,noResize:Te.boolean,noHref:Te.boolean,noShade:Te.boolean,noWrap:Te.boolean,object:null,profile:null,prompt:null,rev:null,rightMargin:Te.number,rules:null,scheme:null,scrolling:Te.booleanish,standby:null,summary:null,text:null,topMargin:Te.number,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Te.number,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Te.boolean,disableRemotePlayback:Te.boolean,prefix:null,property:null,results:Te.number,security:null,unselectable:null},space:"html",transform:Qe}),yt=We({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:Te.commaOrSpaceSeparated,accentHeight:Te.number,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Te.number,amplitude:Te.number,arabicForm:null,ascent:Te.number,attributeName:null,attributeType:null,azimuth:Te.number,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Te.number,by:null,calcMode:null,capHeight:Te.number,className:Te.spaceSeparated,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:Te.number,diffuseConstant:Te.number,direction:null,display:null,dur:null,divisor:Te.number,dominantBaseline:null,download:Te.boolean,dx:null,dy:null,edgeMode:null,editable:null,elevation:Te.number,enableBackground:null,end:null,event:null,exponent:Te.number,externalResourcesRequired:null,fill:null,fillOpacity:Te.number,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Te.commaSeparated,g2:Te.commaSeparated,glyphName:Te.commaSeparated,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Te.number,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Te.number,horizOriginX:Te.number,horizOriginY:Te.number,id:null,ideographic:Te.number,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Te.number,k:Te.number,k1:Te.number,k2:Te.number,k3:Te.number,k4:Te.number,kernelMatrix:Te.commaOrSpaceSeparated,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Te.number,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:Te.number,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:Te.number,overlineThickness:Te.number,paintOrder:null,panose1:null,path:null,pathLength:Te.number,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Te.spaceSeparated,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Te.number,pointsAtY:Te.number,pointsAtZ:Te.number,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Te.commaOrSpaceSeparated,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Te.commaOrSpaceSeparated,rev:Te.commaOrSpaceSeparated,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Te.commaOrSpaceSeparated,requiredFeatures:Te.commaOrSpaceSeparated,requiredFonts:Te.commaOrSpaceSeparated,requiredFormats:Te.commaOrSpaceSeparated,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:Te.number,specularExponent:Te.number,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Te.number,strikethroughThickness:Te.number,string:null,stroke:null,strokeDashArray:Te.commaOrSpaceSeparated,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Te.number,strokeOpacity:Te.number,strokeWidth:null,style:null,surfaceScale:Te.number,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Te.commaOrSpaceSeparated,tabIndex:Te.number,tableValues:null,target:null,targetX:Te.number,targetY:Te.number,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Te.commaOrSpaceSeparated,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Te.number,underlineThickness:Te.number,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Te.number,values:null,vAlphabetic:Te.number,vMathematical:Te.number,vectorEffect:null,vHanging:Te.number,vIdeographic:Te.number,version:null,vertAdvY:Te.number,vertOriginX:Te.number,vertOriginY:Te.number,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Te.number,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:st}),ot=We({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(he,se){return"xlink:"+se.slice(5).toLowerCase()}}),Nt=We({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Qe}),Fe=We({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(he,se){return"xml:"+se.slice(3).toLowerCase()}}),ne=Pe([Ge,Ye,ot,Nt,Fe],"html"),te=Pe([Ge,yt,ot,Nt,Fe],"svg")},84837:function(ze,Ee,ue){"use strict";ue.d(Ee,{s:function(){return Ge}});var ce=ue(95516),Pe=ue(56038),Re=ue(64326);const Me=/[A-Z]/g,We=/-[a-z]/g,Te=/^data[-\w.:]+$/i;function Ge(Ye,yt){const ot=(0,Re.F)(yt);let Nt=yt,Fe=Pe.k;if(ot in Ye.normal)return Ye.property[Ye.normal[ot]];if(ot.length>4&&ot.slice(0,4)==="data"&&Te.test(yt)){if(yt.charAt(4)==="-"){const ne=yt.slice(5).replace(We,Qe);Nt="data"+ne.charAt(0).toUpperCase()+ne.slice(1)}else{const ne=yt.slice(4);if(!We.test(ne)){let te=ne.replace(Me,st);te.charAt(0)!=="-"&&(te="-"+te),yt="data"+te}}Fe=ce.I}return new Fe(Nt,yt)}function st(Ye){return"-"+Ye.toLowerCase()}function Qe(Ye){return Ye.charAt(1).toUpperCase()}},64326:function(ze,Ee,ue){"use strict";ue.d(Ee,{F:function(){return ce}});function ce(Pe){return Pe.toLowerCase()}},95516:function(ze,Ee,ue){"use strict";ue.d(Ee,{I:function(){return Me}});var ce=ue(56038),Pe=ue(56488);const Re=Object.keys(Pe);class Me extends ce.k{constructor(Ge,st,Qe,Ye){let yt=-1;if(super(Ge,st),We(this,"space",Ye),typeof Qe=="number")for(;++yt<Re.length;){const ot=Re[yt];We(this,Re[yt],(Qe&Pe[ot])===Pe[ot])}}}Me.prototype.defined=!0;function We(Te,Ge,st){st&&(Te[Ge]=st)}},56038:function(ze,Ee,ue){"use strict";ue.d(Ee,{k:function(){return ce}});class ce{constructor(Re,Me){this.attribute=Me,this.property=Re}}ce.prototype.attribute="",ce.prototype.booleanish=!1,ce.prototype.boolean=!1,ce.prototype.commaOrSpaceSeparated=!1,ce.prototype.commaSeparated=!1,ce.prototype.defined=!1,ce.prototype.mustUseProperty=!1,ce.prototype.number=!1,ce.prototype.overloadedBoolean=!1,ce.prototype.property="",ce.prototype.spaceSeparated=!1,ce.prototype.space=void 0},56488:function(ze,Ee,ue){"use strict";ue.r(Ee),ue.d(Ee,{boolean:function(){return Pe},booleanish:function(){return Re},commaOrSpaceSeparated:function(){return st},commaSeparated:function(){return Ge},number:function(){return We},overloadedBoolean:function(){return Me},spaceSeparated:function(){return Te}});let ce=0;const Pe=Qe(),Re=Qe(),Me=Qe(),We=Qe(),Te=Qe(),Ge=Qe(),st=Qe();function Qe(){return Qy(2,++ce)}},96536:function(ze,Ee,ue){"use strict";ue.d(Ee,{UG:function(){return Cs}});var ce={};ue.r(ce),ue.d(ce,{attentionMarkers:function(){return ca},contentInitial:function(){return Ga},disable:function(){return wa},document:function(){return Oo},flow:function(){return us},flowInitial:function(){return pa},insideSpan:function(){return Ho},string:function(){return Za},text:function(){return pr}});var Pe=ue(87342),Re=ue(11630);const Me=/[$_\p{ID_Start}]/u,We=/[$_\u{200C}\u{200D}\p{ID_Continue}]/u,Te=/[-$_\u{200C}\u{200D}\p{ID_Continue}]/u,Ge=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,st=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Qe={};function Ye(we){return we?Me.test(String.fromCodePoint(we)):!1}function yt(we,He){const rt=(He||Qe).jsx?Te:We;return we?rt.test(String.fromCodePoint(we)):!1}function ot(we,He){return((He||Qe).jsx?st:Ge).test(we)}const Nt=/[ \t\n\f\r]/g;function Fe(we){return typeof we=="object"?we.type==="text"?ne(we.value):!1:ne(we)}function ne(we){return we.replace(Nt,"")===""}var te=ue(58222),he=ue(84837);const se={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"};var ge=ue(71523),Se=ue(77179),be=ue(17970);function Ae(we){return!we||typeof we!="object"?"":"position"in we||"type"in we?je(we.position):"start"in we||"end"in we?je(we):"line"in we||"column"in we?Le(we):""}function Le(we){return $e(we&&we.line)+":"+$e(we&&we.column)}function je(we){return Le(we&&we.start)+"-"+Le(we&&we.end)}function $e(we){return we&&typeof we=="number"?we:1}class qe extends Error{constructor(He,Ze,rt){super(),typeof Ze=="string"&&(rt=Ze,Ze=void 0);let xt="",wt={},Ft=!1;if(Ze&&("line"in Ze&&"column"in Ze?wt={place:Ze}:"start"in Ze&&"end"in Ze?wt={place:Ze}:"type"in Ze?wt={ancestors:[Ze],place:Ze.position}:wt=ta({},Ze)),typeof He=="string"?xt=He:!wt.cause&&He&&(Ft=!0,xt=He.message,wt.cause=He),!wt.ruleId&&!wt.source&&typeof rt=="string"){const Un=rt.indexOf(":");Un===-1?wt.ruleId=rt:(wt.source=rt.slice(0,Un),wt.ruleId=rt.slice(Un+1))}if(!wt.place&&wt.ancestors&&wt.ancestors){const Un=wt.ancestors[wt.ancestors.length-1];Un&&(wt.place=Un.position)}const Xt=wt.place&&"start"in wt.place?wt.place.start:wt.place;this.ancestors=wt.ancestors||void 0,this.cause=wt.cause||void 0,this.column=Xt?Xt.column:void 0,this.fatal=void 0,this.file,this.message=xt,this.line=Xt?Xt.line:void 0,this.name=Ae(wt.place)||"1:1",this.place=wt.place||void 0,this.reason=this.message,this.ruleId=wt.ruleId||void 0,this.source=wt.source||void 0,this.stack=Ft&&wt.cause&&typeof wt.cause.stack=="string"?wt.cause.stack:"",this.actual,this.expected,this.note,this.url}}qe.prototype.file="",qe.prototype.name="",qe.prototype.reason="",qe.prototype.message="",qe.prototype.stack="",qe.prototype.column=void 0,qe.prototype.line=void 0,qe.prototype.ancestors=void 0,qe.prototype.cause=void 0,qe.prototype.fatal=void 0,qe.prototype.place=void 0,qe.prototype.ruleId=void 0,qe.prototype.source=void 0;const nt={}.hasOwnProperty,dt=new Map,it=/[A-Z]/g,bt=new Set(["table","tbody","thead","tfoot","tr"]),It=new Set(["td","th"]),Ht="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function ln(we,He){if(!He||He.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const Ze=He.filePath||void 0;let rt;if(He.development){if(typeof He.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");rt=dn(Ze,He.jsxDEV)}else{if(typeof He.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof He.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");rt=pn(Ze,He.jsx,He.jsxs)}const xt={Fragment:He.Fragment,ancestors:[],components:He.components||{},create:rt,elementAttributeNameCase:He.elementAttributeNameCase||"react",evaluater:He.createEvaluater?He.createEvaluater():void 0,filePath:Ze,ignoreInvalidStyle:He.ignoreInvalidStyle||!1,passKeys:He.passKeys!==!1,passNode:He.passNode||!1,schema:He.space==="svg"?te.YP:te.dy,stylePropertyNameCase:He.stylePropertyNameCase||"dom",tableCellAlignToStyle:He.tableCellAlignToStyle!==!1},wt=un(xt,we,void 0);return wt&&typeof wt!="string"?wt:xt.create(we,xt.Fragment,{children:wt||void 0},void 0)}function un(we,He,Ze){if(He.type==="element")return Qt(we,He,Ze);if(He.type==="mdxFlowExpression"||He.type==="mdxTextExpression")return nn(we,He);if(He.type==="mdxJsxFlowElement"||He.type==="mdxJsxTextElement")return ct(we,He,Ze);if(He.type==="mdxjsEsm")return At(we,He);if(He.type==="root")return at(we,He,Ze);if(He.type==="text")return rn(we,He)}function Qt(we,He,Ze){const rt=we.schema;let xt=rt;He.tagName.toLowerCase()==="svg"&&rt.space==="html"&&(xt=te.YP,we.schema=xt),we.ancestors.push(He);const wt=ai(we,He.tagName,!1),Ft=_n(we,He);let Xt=On(we,He);return bt.has(He.tagName)&&(Xt=Xt.filter(function(Un){return typeof Un=="string"?!Fe(Un):!0})),hn(we,Ft,wt,He),Pt(Ft,Xt),we.ancestors.pop(),we.schema=rt,we.create(He,wt,Ft,Ze)}function nn(we,He){if(He.data&&He.data.estree&&we.evaluater){const rt=He.data.estree.body[0];return(0,Pe.ok)(rt.type==="ExpressionStatement"),we.evaluater.evaluateExpression(rt.expression)}et(we,He.position)}function At(we,He){if(He.data&&He.data.estree&&we.evaluater)return we.evaluater.evaluateProgram(He.data.estree);et(we,He.position)}function ct(we,He,Ze){const rt=we.schema;let xt=rt;He.name==="svg"&&rt.space==="html"&&(xt=te.YP,we.schema=xt),we.ancestors.push(He);const wt=He.name===null?we.Fragment:ai(we,He.name,!0),Ft=Yt(we,He),Xt=On(we,He);return hn(we,Ft,wt,He),Pt(Ft,Xt),we.ancestors.pop(),we.schema=rt,we.create(He,wt,Ft,Ze)}function at(we,He,Ze){const rt={};return Pt(rt,On(we,He)),we.create(He,we.Fragment,rt,Ze)}function rn(we,He){return He.value}function hn(we,He,Ze,rt){typeof Ze!="string"&&Ze!==we.Fragment&&we.passNode&&(He.node=rt)}function Pt(we,He){if(He.length>0){const Ze=He.length>1?He:He[0];Ze&&(we.children=Ze)}}function pn(we,He,Ze){return rt;function rt(xt,wt,Ft,Xt){const Gn=Array.isArray(Ft.children)?Ze:He;return Xt?Gn(wt,Ft,Xt):Gn(wt,Ft)}}function dn(we,He){return Ze;function Ze(rt,xt,wt,Ft){const Xt=Array.isArray(wt.children),Un=(0,be.Pk)(rt);return He(xt,wt,Ft,Xt,{columnNumber:Un?Un.column-1:void 0,fileName:we,lineNumber:Un?Un.line:void 0},void 0)}}function _n(we,He){const Ze={};let rt,xt;for(xt in He.properties)if(xt!=="children"&&nt.call(He.properties,xt)){const wt=kt(we,xt,He.properties[xt]);if(wt){const[Ft,Xt]=wt;we.tableCellAlignToStyle&&Ft==="align"&&typeof Xt=="string"&&It.has(He.tagName)?rt=Xt:Ze[Ft]=Xt}}if(rt){const wt=Ze.style||(Ze.style={});wt[we.stylePropertyNameCase==="css"?"text-align":"textAlign"]=rt}return Ze}function Yt(we,He){const Ze={};for(const rt of He.attributes)if(rt.type==="mdxJsxExpressionAttribute")if(rt.data&&rt.data.estree&&we.evaluater){const wt=rt.data.estree.body[0];(0,Pe.ok)(wt.type==="ExpressionStatement");const Ft=wt.expression;(0,Pe.ok)(Ft.type==="ObjectExpression");const Xt=Ft.properties[0];(0,Pe.ok)(Xt.type==="SpreadElement"),Object.assign(Ze,we.evaluater.evaluateExpression(Xt.argument))}else et(we,He.position);else{const xt=rt.name;let wt;if(rt.value&&typeof rt.value=="object")if(rt.value.data&&rt.value.data.estree&&we.evaluater){const Xt=rt.value.data.estree.body[0];(0,Pe.ok)(Xt.type==="ExpressionStatement"),wt=we.evaluater.evaluateExpression(Xt.expression)}else et(we,He.position);else wt=rt.value===null?!0:rt.value;Ze[xt]=wt}return Ze}function On(we,He){const Ze=[];let rt=-1;const xt=we.passKeys?new Map:dt;for(;++rt<He.children.length;){const wt=He.children[rt];let Ft;if(we.passKeys){const Un=wt.type==="element"?wt.tagName:wt.type==="mdxJsxFlowElement"||wt.type==="mdxJsxTextElement"?wt.name:void 0;if(Un){const Gn=xt.get(Un)||0;Ft=Un+"-"+Gn,xt.set(Un,Gn+1)}}const Xt=un(we,wt,Ft);Xt!==void 0&&Ze.push(Xt)}return Ze}function kt(we,He,Ze){const rt=(0,he.s)(we.schema,He);if(!(Ze==null||typeof Ze=="number"&&Number.isNaN(Ze))){if(Array.isArray(Ze)&&(Ze=rt.commaSeparated?(0,Re.P)(Ze):(0,ge.P)(Ze)),rt.property==="style"){let xt=typeof Ze=="object"?Ze:jn(we,String(Ze));return we.stylePropertyNameCase==="css"&&(xt=De(xt)),["style",xt]}return[we.elementAttributeNameCase==="react"&&rt.space?se[rt.property]||rt.property:rt.attribute,Ze]}}function jn(we,He){try{return Se(He,{reactCompat:!0})}catch(Ze){if(we.ignoreInvalidStyle)return{};const rt=Ze,xt=new qe("Cannot parse `style` attribute",{ancestors:we.ancestors,cause:rt,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw xt.file=we.filePath||void 0,xt.url=Ht+"#cannot-parse-style-attribute",xt}}function ai(we,He,Ze){let rt;if(!Ze)rt={type:"Literal",value:He};else if(He.includes(".")){const xt=He.split(".");let wt=-1,Ft;for(;++wt<xt.length;){const Xt=ot(xt[wt])?{type:"Identifier",name:xt[wt]}:{type:"Literal",value:xt[wt]};Ft=Ft?{type:"MemberExpression",object:Ft,property:Xt,computed:!!(wt&&Xt.type==="Literal"),optional:!1}:Xt}(0,Pe.ok)(Ft,"always a result"),rt=Ft}else rt=ot(He)&&!/^[a-z]/.test(He)?{type:"Identifier",name:He}:{type:"Literal",value:He};if(rt.type==="Literal"){const xt=rt.value;return nt.call(we.components,xt)?we.components[xt]:xt}if(we.evaluater)return we.evaluater.evaluateExpression(rt);et(we)}function et(we,He){const Ze=new qe("Cannot handle MDX estrees without `createEvaluater`",{ancestors:we.ancestors,place:He,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw Ze.file=we.filePath||void 0,Ze.url=Ht+"#cannot-handle-mdx-estrees-without-createevaluater",Ze}function De(we){const He={};let Ze;for(Ze in we)nt.call(we,Ze)&&(He[ke(Ze)]=we[Ze]);return He}function ke(we){let He=we.replace(it,Xe);return He.slice(0,3)==="ms-"&&(He="-"+He),He}function Xe(we){return"-"+we.toLowerCase()}const ut={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]};var Ue=ue(37712),gt=ue(59301);const _t={};function bn(we,He){const Ze=He||_t,rt=typeof Ze.includeImageAlt=="boolean"?Ze.includeImageAlt:!0,xt=typeof Ze.includeHtml=="boolean"?Ze.includeHtml:!0;return xn(we,rt,xt)}function xn(we,He,Ze){if(Zt(we)){if("value"in we)return we.type==="html"&&!Ze?"":we.value;if(He&&"alt"in we&&we.alt)return we.alt;if("children"in we)return Lt(we.children,He,Ze)}return Array.isArray(we)?Lt(we,He,Ze):""}function Lt(we,He,Ze){const rt=[];let xt=-1;for(;++xt<we.length;)rt[xt]=xn(we[xt],He,Ze);return rt.join("")}function Zt(we){return!!(we&&typeof we=="object")}function Vt(we,He,Ze,rt){const xt=we.length;let wt=0,Ft;if(He<0?He=-He>xt?0:xt+He:He=He>xt?xt:He,Ze=Ze>0?Ze:0,rt.length<1e4)Ft=Array.from(rt),Ft.unshift(He,Ze),we.splice(...Ft);else for(Ze&&we.splice(He,Ze);wt<rt.length;)Ft=rt.slice(wt,wt+1e4),Ft.unshift(He,0),we.splice(...Ft),wt+=1e4,He+=1e4}function fn(we,He){return we.length>0?(Vt(we,we.length,0,He),we):He}class Pn{constructor(He){this.left=He?[...He]:[],this.right=[]}get(He){if(He<0||He>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+He+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return He<this.left.length?this.left[He]:this.right[this.right.length-He+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(He,Ze){const rt=Ze==null?Number.POSITIVE_INFINITY:Ze;return rt<this.left.length?this.left.slice(He,rt):He>this.left.length?this.right.slice(this.right.length-rt+this.left.length,this.right.length-He+this.left.length).reverse():this.left.slice(He).concat(this.right.slice(this.right.length-rt+this.left.length).reverse())}splice(He,Ze,rt){const xt=Ze||0;this.setCursor(Math.trunc(He));const wt=this.right.splice(this.right.length-xt,Number.POSITIVE_INFINITY);return rt&&yn(this.left,rt),wt.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(He){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(He)}pushMany(He){this.setCursor(Number.POSITIVE_INFINITY),yn(this.left,He)}unshift(He){this.setCursor(0),this.right.push(He)}unshiftMany(He){this.setCursor(0),yn(this.right,He.reverse())}setCursor(He){if(!(He===this.left.length||He>this.left.length&&this.right.length===0||He<0&&this.left.length===0))if(He<this.left.length){const Ze=this.left.splice(He,Number.POSITIVE_INFINITY);yn(this.right,Ze.reverse())}else{const Ze=this.right.splice(this.left.length+this.right.length-He,Number.POSITIVE_INFINITY);yn(this.left,Ze.reverse())}}}function yn(we,He){let Ze=0;if(He.length<1e4)we.push(...He);else for(;Ze<He.length;)we.push(...He.slice(Ze,Ze+1e4)),Ze+=1e4}function Mt(we){const He={};let Ze=-1,rt,xt,wt,Ft,Xt,Un,Gn;const En=new Pn(we);for(;++Ze<En.length;){for(;Ze in He;)Ze=He[Ze];if(rt=En.get(Ze),Ze&&rt[1].type==="chunkFlow"&&En.get(Ze-1)[1].type==="listItemPrefix"&&(Un=rt[1]._tokenizer.events,wt=0,wt<Un.length&&Un[wt][1].type==="lineEndingBlank"&&(wt+=2),wt<Un.length&&Un[wt][1].type==="content"))for(;++wt<Un.length&&Un[wt][1].type!=="content";)Un[wt][1].type==="chunkText"&&(Un[wt][1]._isInFirstContentOfListItem=!0,wt++);if(rt[0]==="enter")rt[1].contentType&&(Object.assign(He,zn(En,Ze)),Ze=He[Ze],Gn=!0);else if(rt[1]._container){for(wt=Ze,xt=void 0;wt--;)if(Ft=En.get(wt),Ft[1].type==="lineEnding"||Ft[1].type==="lineEndingBlank")Ft[0]==="enter"&&(xt&&(En.get(xt)[1].type="lineEndingBlank"),Ft[1].type="lineEnding",xt=wt);else if(!(Ft[1].type==="linePrefix"||Ft[1].type==="listItemIndent"))break;xt&&(rt[1].end=ta({},En.get(xt)[1].start),Xt=En.slice(xt,Ze),Xt.unshift(rt),En.splice(xt,Ze-xt+1,Xt))}}return Vt(we,0,Number.POSITIVE_INFINITY,En.slice(0)),!Gn}function zn(we,He){const Ze=we.get(He)[1],rt=we.get(He)[2];let xt=He-1;const wt=[];let Ft=Ze._tokenizer;Ft||(Ft=rt.parser[Ze.contentType](Ze.start),Ze._contentTypeTextTrailing&&(Ft._contentTypeTextTrailing=!0));const Xt=Ft.events,Un=[],Gn={};let En,si,ni=-1,An=Ze,no=0,wo=0;const Uo=[wo];for(;An;){for(;we.get(++xt)[1]!==An;);wt.push(xt),An._tokenizer||(En=rt.sliceStream(An),An.next||En.push(null),si&&Ft.defineSkip(An.start),An._isInFirstContentOfListItem&&(Ft._gfmTasklistFirstContentOfListItem=!0),Ft.write(En),An._isInFirstContentOfListItem&&(Ft._gfmTasklistFirstContentOfListItem=void 0)),si=An,An=An.next}for(An=Ze;++ni<Xt.length;)Xt[ni][0]==="exit"&&Xt[ni-1][0]==="enter"&&Xt[ni][1].type===Xt[ni-1][1].type&&Xt[ni][1].start.line!==Xt[ni][1].end.line&&(wo=ni+1,Uo.push(wo),An._tokenizer=void 0,An.previous=void 0,An=An.next);for(Ft.events=[],An?(An._tokenizer=void 0,An.previous=void 0):Uo.pop(),ni=Uo.length;ni--;){const Mr=Xt.slice(Uo[ni],Uo[ni+1]),oo=wt.pop();Un.push([oo,oo+Mr.length-1]),we.splice(oo,2,Mr)}for(Un.reverse(),ni=-1;++ni<Un.length;)Gn[no+Un[ni][0]]=no+Un[ni][1],no+=Un[ni][1]-Un[ni][0]-1;return Gn}function qn(we){for(;!Mt(we););return we}const Rn={}.hasOwnProperty;function Zn(we){const He={};let Ze=-1;for(;++Ze<we.length;)Ai(He,we[Ze]);return He}function Ai(we,He){let Ze;for(Ze in He){const xt=(Rn.call(we,Ze)?we[Ze]:void 0)||(we[Ze]={}),wt=He[Ze];let Ft;if(wt)for(Ft in wt){Rn.call(xt,Ft)||(xt[Ft]=[]);const Xt=wt[Ft];Yn(xt[Ft],Array.isArray(Xt)?Xt:Xt?[Xt]:[])}}}function Yn(we,He){let Ze=-1;const rt=[];for(;++Ze<He.length;)(He[Ze].add==="after"?we:rt).push(He[Ze]);Vt(we,0,0,rt)}function Et(we){const He={};let Ze=-1;for(;++Ze<we.length;)vi(He,we[Ze]);return He}function vi(we,He){let Ze;for(Ze in He){const xt=(Rn.call(we,Ze)?we[Ze]:void 0)||(we[Ze]={}),wt=He[Ze];let Ft;if(wt)for(Ft in wt)xt[Ft]=wt[Ft]}}var Ri=ue(26735),sn=ue(80722);const Xi={tokenize:cr};function cr(we){const He=we.attempt(this.parser.constructs.contentInitial,rt,xt);let Ze;return He;function rt(Xt){if(Xt===null){we.consume(Xt);return}return we.enter("lineEnding"),we.consume(Xt),we.exit("lineEnding"),(0,Ri.f)(we,He,"linePrefix")}function xt(Xt){return we.enter("paragraph"),wt(Xt)}function wt(Xt){const Un=we.enter("chunkText",{contentType:"text",previous:Ze});return Ze&&(Ze.next=Un),Ze=Un,Ft(Xt)}function Ft(Xt){if(Xt===null){we.exit("chunkText"),we.exit("paragraph"),we.consume(Xt);return}return(0,sn.Ch)(Xt)?(we.consume(Xt),we.exit("chunkText"),wt):(we.consume(Xt),Ft)}}const fr={tokenize:Or},kn={tokenize:kr};function Or(we){const He=this,Ze=[];let rt=0,xt,wt,Ft;return Xt;function Xt(fo){if(rt<Ze.length){const Aa=Ze[rt];return He.containerState=Aa[1],we.attempt(Aa[0].continuation,Un,Gn)(fo)}return Gn(fo)}function Un(fo){if(rt++,He.containerState._closeFlow){He.containerState._closeFlow=void 0,xt&&oo();const Aa=He.events.length;let Pa=Aa,vr;for(;Pa--;)if(He.events[Pa][0]==="exit"&&He.events[Pa][1].type==="chunkFlow"){vr=He.events[Pa][1].end;break}Mr(rt);let Ia=Aa;for(;Ia<He.events.length;)He.events[Ia][1].end=ta({},vr),Ia++;return Vt(He.events,Pa+1,0,He.events.slice(Aa)),He.events.length=Ia,Gn(fo)}return Xt(fo)}function Gn(fo){if(rt===Ze.length){if(!xt)return ni(fo);if(xt.currentConstruct&&xt.currentConstruct.concrete)return no(fo);He.interrupt=!!(xt.currentConstruct&&!xt._gfmTableDynamicInterruptHack)}return He.containerState={},we.check(kn,En,si)(fo)}function En(fo){return xt&&oo(),Mr(rt),ni(fo)}function si(fo){return He.parser.lazy[He.now().line]=rt!==Ze.length,Ft=He.now().offset,no(fo)}function ni(fo){return He.containerState={},we.attempt(kn,An,no)(fo)}function An(fo){return rt++,Ze.push([He.currentConstruct,He.containerState]),ni(fo)}function no(fo){if(fo===null){xt&&oo(),Mr(0),we.consume(fo);return}return xt=xt||He.parser.flow(He.now()),we.enter("chunkFlow",{_tokenizer:xt,contentType:"flow",previous:wt}),wo(fo)}function wo(fo){if(fo===null){Uo(we.exit("chunkFlow"),!0),Mr(0),we.consume(fo);return}return(0,sn.Ch)(fo)?(we.consume(fo),Uo(we.exit("chunkFlow")),rt=0,He.interrupt=void 0,Xt):(we.consume(fo),wo)}function Uo(fo,Aa){const Pa=He.sliceStream(fo);if(Aa&&Pa.push(null),fo.previous=wt,wt&&(wt.next=fo),wt=fo,xt.defineSkip(fo.start),xt.write(Pa),He.parser.lazy[fo.start.line]){let vr=xt.events.length;for(;vr--;)if(xt.events[vr][1].start.offset<Ft&&(!xt.events[vr][1].end||xt.events[vr][1].end.offset>Ft))return;const Ia=He.events.length;let ns=Ia,Sa,eo;for(;ns--;)if(He.events[ns][0]==="exit"&&He.events[ns][1].type==="chunkFlow"){if(Sa){eo=He.events[ns][1].end;break}Sa=!0}for(Mr(rt),vr=Ia;vr<He.events.length;)He.events[vr][1].end=ta({},eo),vr++;Vt(He.events,ns+1,0,He.events.slice(Ia)),He.events.length=vr}}function Mr(fo){let Aa=Ze.length;for(;Aa-- >fo;){const Pa=Ze[Aa];He.containerState=Pa[1],Pa[0].exit.call(He,we)}Ze.length=fo}function oo(){xt.write([null]),wt=void 0,xt=void 0,He.containerState._closeFlow=void 0}}function kr(we,He,Ze){return(0,Ri.f)(we,we.attempt(this.parser.constructs.document,He,Ze),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}const Wi={partial:!0,tokenize:lr};function lr(we,He,Ze){return rt;function rt(wt){return(0,sn.xz)(wt)?(0,Ri.f)(we,xt,"linePrefix")(wt):xt(wt)}function xt(wt){return wt===null||(0,sn.Ch)(wt)?He(wt):Ze(wt)}}const wr={resolve:Yi,tokenize:Ei},Ie={partial:!0,tokenize:rr};function Yi(we){return Mt(we),we}function Ei(we,He){let Ze;return rt;function rt(Xt){return we.enter("content"),Ze=we.enter("chunkContent",{contentType:"content"}),xt(Xt)}function xt(Xt){return Xt===null?wt(Xt):(0,sn.Ch)(Xt)?we.check(Ie,Ft,wt)(Xt):(we.consume(Xt),xt)}function wt(Xt){return we.exit("chunkContent"),we.exit("content"),He(Xt)}function Ft(Xt){return we.consume(Xt),we.exit("chunkContent"),Ze.next=we.enter("chunkContent",{contentType:"content",previous:Ze}),Ze=Ze.next,xt}}function rr(we,He,Ze){const rt=this;return xt;function xt(Ft){return we.exit("chunkContent"),we.enter("lineEnding"),we.consume(Ft),we.exit("lineEnding"),(0,Ri.f)(we,wt,"linePrefix")}function wt(Ft){if(Ft===null||(0,sn.Ch)(Ft))return Ze(Ft);const Xt=rt.events[rt.events.length-1];return!rt.parser.constructs.disable.null.includes("codeIndented")&&Xt&&Xt[1].type==="linePrefix"&&Xt[2].sliceSerialize(Xt[1],!0).length>=4?He(Ft):we.interrupt(rt.parser.constructs.flow,Ze,He)(Ft)}}const Br={tokenize:Gr};function Gr(we){const He=this,Ze=we.attempt(Wi,rt,we.attempt(this.parser.constructs.flowInitial,xt,(0,Ri.f)(we,we.attempt(this.parser.constructs.flow,xt,we.attempt(wr,xt)),"linePrefix")));return Ze;function rt(wt){if(wt===null){we.consume(wt);return}return we.enter("lineEndingBlank"),we.consume(wt),we.exit("lineEndingBlank"),He.currentConstruct=void 0,Ze}function xt(wt){if(wt===null){we.consume(wt);return}return we.enter("lineEnding"),we.consume(wt),we.exit("lineEnding"),He.currentConstruct=void 0,Ze}}const yr={resolveAll:Wt()},Vi=Jt("string"),hi=Jt("text");function Jt(we){return{resolveAll:Wt(we==="text"?jt:void 0),tokenize:He};function He(Ze){const rt=this,xt=this.parser.constructs[we],wt=Ze.attempt(xt,Ft,Xt);return Ft;function Ft(En){return Gn(En)?wt(En):Xt(En)}function Xt(En){if(En===null){Ze.consume(En);return}return Ze.enter("data"),Ze.consume(En),Un}function Un(En){return Gn(En)?(Ze.exit("data"),wt(En)):(Ze.consume(En),Un)}function Gn(En){if(En===null)return!0;const si=xt[En];let ni=-1;if(si)for(;++ni<si.length;){const An=si[ni];if(!An.previous||An.previous.call(rt,rt.previous))return!0}return!1}}}function Wt(we){return He;function He(Ze,rt){let xt=-1,wt;for(;++xt<=Ze.length;)wt===void 0?Ze[xt]&&Ze[xt][1].type==="data"&&(wt=xt,xt++):(!Ze[xt]||Ze[xt][1].type!=="data")&&(xt!==wt+2&&(Ze[wt][1].end=Ze[xt-1][1].end,Ze.splice(wt+2,xt-wt-2),xt=wt+2),wt=void 0);return we?we(Ze,rt):Ze}}function jt(we,He){let Ze=0;for(;++Ze<=we.length;)if((Ze===we.length||we[Ze][1].type==="lineEnding")&&we[Ze-1][1].type==="data"){const rt=we[Ze-1][1],xt=He.sliceStream(rt);let wt=xt.length,Ft=-1,Xt=0,Un;for(;wt--;){const Gn=xt[wt];if(typeof Gn=="string"){for(Ft=Gn.length;Gn.charCodeAt(Ft-1)===32;)Xt++,Ft--;if(Ft)break;Ft=-1}else if(Gn===-2)Un=!0,Xt++;else if(Gn!==-1){wt++;break}}if(He._contentTypeTextTrailing&&Ze===we.length&&(Xt=0),Xt){const Gn={type:Ze===we.length||Un||Xt<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:wt?Ft:rt.start._bufferIndex+Ft,_index:rt.start._index+wt,line:rt.end.line,column:rt.end.column-Xt,offset:rt.end.offset-Xt},end:ta({},rt.end)};rt.end=ta({},Gn.start),rt.start.offset===rt.end.offset?Object.assign(rt,Gn):(we.splice(Ze,0,["enter",Gn,He],["exit",Gn,He]),Ze+=2)}Ze++}return we}const gi={name:"thematicBreak",tokenize:ii};function ii(we,He,Ze){let rt=0,xt;return wt;function wt(Gn){return we.enter("thematicBreak"),Ft(Gn)}function Ft(Gn){return xt=Gn,Xt(Gn)}function Xt(Gn){return Gn===xt?(we.enter("thematicBreakSequence"),Un(Gn)):rt>=3&&(Gn===null||(0,sn.Ch)(Gn))?(we.exit("thematicBreak"),He(Gn)):Ze(Gn)}function Un(Gn){return Gn===xt?(we.consume(Gn),rt++,Un):(we.exit("thematicBreakSequence"),(0,sn.xz)(Gn)?(0,Ri.f)(we,Xt,"whitespace")(Gn):Xt(Gn))}}const Pi={continuation:{tokenize:Gt},exit:vt,name:"list",tokenize:on},In={partial:!0,tokenize:Sn},fi={partial:!0,tokenize:li};function on(we,He,Ze){const rt=this,xt=rt.events[rt.events.length-1];let wt=xt&&xt[1].type==="linePrefix"?xt[2].sliceSerialize(xt[1],!0).length:0,Ft=0;return Xt;function Xt(An){const no=rt.containerState.type||(An===42||An===43||An===45?"listUnordered":"listOrdered");if(no==="listUnordered"?!rt.containerState.marker||An===rt.containerState.marker:(0,sn.pY)(An)){if(rt.containerState.type||(rt.containerState.type=no,we.enter(no,{_container:!0})),no==="listUnordered")return we.enter("listItemPrefix"),An===42||An===45?we.check(gi,Ze,Gn)(An):Gn(An);if(!rt.interrupt||An===49)return we.enter("listItemPrefix"),we.enter("listItemValue"),Un(An)}return Ze(An)}function Un(An){return(0,sn.pY)(An)&&++Ft<10?(we.consume(An),Un):(!rt.interrupt||Ft<2)&&(rt.containerState.marker?An===rt.containerState.marker:An===41||An===46)?(we.exit("listItemValue"),Gn(An)):Ze(An)}function Gn(An){return we.enter("listItemMarker"),we.consume(An),we.exit("listItemMarker"),rt.containerState.marker=rt.containerState.marker||An,we.check(Wi,rt.interrupt?Ze:En,we.attempt(In,ni,si))}function En(An){return rt.containerState.initialBlankLine=!0,wt++,ni(An)}function si(An){return(0,sn.xz)(An)?(we.enter("listItemPrefixWhitespace"),we.consume(An),we.exit("listItemPrefixWhitespace"),ni):Ze(An)}function ni(An){return rt.containerState.size=wt+rt.sliceSerialize(we.exit("listItemPrefix"),!0).length,He(An)}}function Gt(we,He,Ze){const rt=this;return rt.containerState._closeFlow=void 0,we.check(Wi,xt,wt);function xt(Xt){return rt.containerState.furtherBlankLines=rt.containerState.furtherBlankLines||rt.containerState.initialBlankLine,(0,Ri.f)(we,He,"listItemIndent",rt.containerState.size+1)(Xt)}function wt(Xt){return rt.containerState.furtherBlankLines||!(0,sn.xz)(Xt)?(rt.containerState.furtherBlankLines=void 0,rt.containerState.initialBlankLine=void 0,Ft(Xt)):(rt.containerState.furtherBlankLines=void 0,rt.containerState.initialBlankLine=void 0,we.attempt(fi,He,Ft)(Xt))}function Ft(Xt){return rt.containerState._closeFlow=!0,rt.interrupt=void 0,(0,Ri.f)(we,we.attempt(Pi,He,Ze),"linePrefix",rt.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(Xt)}}function li(we,He,Ze){const rt=this;return(0,Ri.f)(we,xt,"listItemIndent",rt.containerState.size+1);function xt(wt){const Ft=rt.events[rt.events.length-1];return Ft&&Ft[1].type==="listItemIndent"&&Ft[2].sliceSerialize(Ft[1],!0).length===rt.containerState.size?He(wt):Ze(wt)}}function vt(we){we.exit(this.containerState.type)}function Sn(we,He,Ze){const rt=this;return(0,Ri.f)(we,xt,"listItemPrefixWhitespace",rt.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function xt(wt){const Ft=rt.events[rt.events.length-1];return!(0,sn.xz)(wt)&&Ft&&Ft[1].type==="listItemPrefixWhitespace"?He(wt):Ze(wt)}}const ri={continuation:{tokenize:zt},exit:wn,name:"blockQuote",tokenize:ki};function ki(we,He,Ze){const rt=this;return xt;function xt(Ft){if(Ft===62){const Xt=rt.containerState;return Xt.open||(we.enter("blockQuote",{_container:!0}),Xt.open=!0),we.enter("blockQuotePrefix"),we.enter("blockQuoteMarker"),we.consume(Ft),we.exit("blockQuoteMarker"),wt}return Ze(Ft)}function wt(Ft){return(0,sn.xz)(Ft)?(we.enter("blockQuotePrefixWhitespace"),we.consume(Ft),we.exit("blockQuotePrefixWhitespace"),we.exit("blockQuotePrefix"),He):(we.exit("blockQuotePrefix"),He(Ft))}}function zt(we,He,Ze){const rt=this;return xt;function xt(Ft){return(0,sn.xz)(Ft)?(0,Ri.f)(we,wt,"linePrefix",rt.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(Ft):wt(Ft)}function wt(Ft){return we.attempt(ri,He,Ze)(Ft)}}function wn(we){we.exit("blockQuote")}function oi(we,He,Ze,rt,xt,wt,Ft,Xt,Un){const Gn=Un||Number.POSITIVE_INFINITY;let En=0;return si;function si(Mr){return Mr===60?(we.enter(rt),we.enter(xt),we.enter(wt),we.consume(Mr),we.exit(wt),ni):Mr===null||Mr===32||Mr===41||(0,sn.Av)(Mr)?Ze(Mr):(we.enter(rt),we.enter(Ft),we.enter(Xt),we.enter("chunkString",{contentType:"string"}),wo(Mr))}function ni(Mr){return Mr===62?(we.enter(wt),we.consume(Mr),we.exit(wt),we.exit(xt),we.exit(rt),He):(we.enter(Xt),we.enter("chunkString",{contentType:"string"}),An(Mr))}function An(Mr){return Mr===62?(we.exit("chunkString"),we.exit(Xt),ni(Mr)):Mr===null||Mr===60||(0,sn.Ch)(Mr)?Ze(Mr):(we.consume(Mr),Mr===92?no:An)}function no(Mr){return Mr===60||Mr===62||Mr===92?(we.consume(Mr),An):An(Mr)}function wo(Mr){return!En&&(Mr===null||Mr===41||(0,sn.z3)(Mr))?(we.exit("chunkString"),we.exit(Xt),we.exit(Ft),we.exit(rt),He(Mr)):En<Gn&&Mr===40?(we.consume(Mr),En++,wo):Mr===41?(we.consume(Mr),En--,wo):Mr===null||Mr===32||Mr===40||(0,sn.Av)(Mr)?Ze(Mr):(we.consume(Mr),Mr===92?Uo:wo)}function Uo(Mr){return Mr===40||Mr===41||Mr===92?(we.consume(Mr),wo):wo(Mr)}}function qt(we,He,Ze,rt,xt,wt){const Ft=this;let Xt=0,Un;return Gn;function Gn(An){return we.enter(rt),we.enter(xt),we.consume(An),we.exit(xt),we.enter(wt),En}function En(An){return Xt>999||An===null||An===91||An===93&&!Un||An===94&&!Xt&&"_hiddenFootnoteSupport"in Ft.parser.constructs?Ze(An):An===93?(we.exit(wt),we.enter(xt),we.consume(An),we.exit(xt),we.exit(rt),He):(0,sn.Ch)(An)?(we.enter("lineEnding"),we.consume(An),we.exit("lineEnding"),En):(we.enter("chunkString",{contentType:"string"}),si(An))}function si(An){return An===null||An===91||An===93||(0,sn.Ch)(An)||Xt++>999?(we.exit("chunkString"),En(An)):(we.consume(An),Un||(Un=!(0,sn.xz)(An)),An===92?ni:si)}function ni(An){return An===91||An===92||An===93?(we.consume(An),Xt++,si):si(An)}}function Be(we,He,Ze,rt,xt,wt){let Ft;return Xt;function Xt(ni){return ni===34||ni===39||ni===40?(we.enter(rt),we.enter(xt),we.consume(ni),we.exit(xt),Ft=ni===40?41:ni,Un):Ze(ni)}function Un(ni){return ni===Ft?(we.enter(xt),we.consume(ni),we.exit(xt),we.exit(rt),He):(we.enter(wt),Gn(ni))}function Gn(ni){return ni===Ft?(we.exit(wt),Un(Ft)):ni===null?Ze(ni):(0,sn.Ch)(ni)?(we.enter("lineEnding"),we.consume(ni),we.exit("lineEnding"),(0,Ri.f)(we,Gn,"linePrefix")):(we.enter("chunkString",{contentType:"string"}),En(ni))}function En(ni){return ni===Ft||ni===null||(0,sn.Ch)(ni)?(we.exit("chunkString"),Gn(ni)):(we.consume(ni),ni===92?si:En)}function si(ni){return ni===Ft||ni===92?(we.consume(ni),En):En(ni)}}function Mi(we,He){let Ze;return rt;function rt(xt){return(0,sn.Ch)(xt)?(we.enter("lineEnding"),we.consume(xt),we.exit("lineEnding"),Ze=!0,rt):(0,sn.xz)(xt)?(0,Ri.f)(we,rt,Ze?"linePrefix":"lineSuffix")(xt):He(xt)}}function ui(we){return we.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Tn={name:"definition",tokenize:er},Ki={partial:!0,tokenize:or};function er(we,He,Ze){const rt=this;let xt;return wt;function wt(An){return we.enter("definition"),Ft(An)}function Ft(An){return qt.call(rt,we,Xt,Ze,"definitionLabel","definitionLabelMarker","definitionLabelString")(An)}function Xt(An){return xt=ui(rt.sliceSerialize(rt.events[rt.events.length-1][1]).slice(1,-1)),An===58?(we.enter("definitionMarker"),we.consume(An),we.exit("definitionMarker"),Un):Ze(An)}function Un(An){return(0,sn.z3)(An)?Mi(we,Gn)(An):Gn(An)}function Gn(An){return oi(we,En,Ze,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(An)}function En(An){return we.attempt(Ki,si,si)(An)}function si(An){return(0,sn.xz)(An)?(0,Ri.f)(we,ni,"whitespace")(An):ni(An)}function ni(An){return An===null||(0,sn.Ch)(An)?(we.exit("definition"),rt.parser.defined.push(xt),He(An)):Ze(An)}}function or(we,He,Ze){return rt;function rt(Xt){return(0,sn.z3)(Xt)?Mi(we,xt)(Xt):Ze(Xt)}function xt(Xt){return Be(we,wt,Ze,"definitionTitle","definitionTitleMarker","definitionTitleString")(Xt)}function wt(Xt){return(0,sn.xz)(Xt)?(0,Ri.f)(we,Ft,"whitespace")(Xt):Ft(Xt)}function Ft(Xt){return Xt===null||(0,sn.Ch)(Xt)?He(Xt):Ze(Xt)}}const Cn={name:"codeIndented",tokenize:sr},Kt={partial:!0,tokenize:ro};function sr(we,He,Ze){const rt=this;return xt;function xt(Gn){return we.enter("codeIndented"),(0,Ri.f)(we,wt,"linePrefix",5)(Gn)}function wt(Gn){const En=rt.events[rt.events.length-1];return En&&En[1].type==="linePrefix"&&En[2].sliceSerialize(En[1],!0).length>=4?Ft(Gn):Ze(Gn)}function Ft(Gn){return Gn===null?Un(Gn):(0,sn.Ch)(Gn)?we.attempt(Kt,Ft,Un)(Gn):(we.enter("codeFlowValue"),Xt(Gn))}function Xt(Gn){return Gn===null||(0,sn.Ch)(Gn)?(we.exit("codeFlowValue"),Ft(Gn)):(we.consume(Gn),Xt)}function Un(Gn){return we.exit("codeIndented"),He(Gn)}}function ro(we,He,Ze){const rt=this;return xt;function xt(Ft){return rt.parser.lazy[rt.now().line]?Ze(Ft):(0,sn.Ch)(Ft)?(we.enter("lineEnding"),we.consume(Ft),we.exit("lineEnding"),xt):(0,Ri.f)(we,wt,"linePrefix",5)(Ft)}function wt(Ft){const Xt=rt.events[rt.events.length-1];return Xt&&Xt[1].type==="linePrefix"&&Xt[2].sliceSerialize(Xt[1],!0).length>=4?He(Ft):(0,sn.Ch)(Ft)?xt(Ft):Ze(Ft)}}const mn={name:"headingAtx",resolve:wi,tokenize:_i};function wi(we,He){let Ze=we.length-2,rt=3,xt,wt;return we[rt][1].type==="whitespace"&&(rt+=2),Ze-2>rt&&we[Ze][1].type==="whitespace"&&(Ze-=2),we[Ze][1].type==="atxHeadingSequence"&&(rt===Ze-1||Ze-4>rt&&we[Ze-2][1].type==="whitespace")&&(Ze-=rt+1===Ze?2:4),Ze>rt&&(xt={type:"atxHeadingText",start:we[rt][1].start,end:we[Ze][1].end},wt={type:"chunkText",start:we[rt][1].start,end:we[Ze][1].end,contentType:"text"},Vt(we,rt,Ze-rt+1,[["enter",xt,He],["enter",wt,He],["exit",wt,He],["exit",xt,He]])),we}function _i(we,He,Ze){let rt=0;return xt;function xt(En){return we.enter("atxHeading"),wt(En)}function wt(En){return we.enter("atxHeadingSequence"),Ft(En)}function Ft(En){return En===35&&rt++<6?(we.consume(En),Ft):En===null||(0,sn.z3)(En)?(we.exit("atxHeadingSequence"),Xt(En)):Ze(En)}function Xt(En){return En===35?(we.enter("atxHeadingSequence"),Un(En)):En===null||(0,sn.Ch)(En)?(we.exit("atxHeading"),He(En)):(0,sn.xz)(En)?(0,Ri.f)(we,Xt,"whitespace")(En):(we.enter("atxHeadingText"),Gn(En))}function Un(En){return En===35?(we.consume(En),Un):(we.exit("atxHeadingSequence"),Xt(En))}function Gn(En){return En===null||En===35||(0,sn.z3)(En)?(we.exit("atxHeadingText"),Xt(En)):(we.consume(En),Gn)}}const Ji={name:"setextUnderline",resolveTo:Gi,tokenize:ir};function Gi(we,He){let Ze=we.length,rt,xt,wt;for(;Ze--;)if(we[Ze][0]==="enter"){if(we[Ze][1].type==="content"){rt=Ze;break}we[Ze][1].type==="paragraph"&&(xt=Ze)}else we[Ze][1].type==="content"&&we.splice(Ze,1),!wt&&we[Ze][1].type==="definition"&&(wt=Ze);const Ft={type:"setextHeading",start:ta({},we[rt][1].start),end:ta({},we[we.length-1][1].end)};return we[xt][1].type="setextHeadingText",wt?(we.splice(xt,0,["enter",Ft,He]),we.splice(wt+1,0,["exit",we[rt][1],He]),we[rt][1].end=ta({},we[wt][1].end)):we[rt][1]=Ft,we.push(["exit",Ft,He]),we}function ir(we,He,Ze){const rt=this;let xt;return wt;function wt(Gn){let En=rt.events.length,si;for(;En--;)if(rt.events[En][1].type!=="lineEnding"&&rt.events[En][1].type!=="linePrefix"&&rt.events[En][1].type!=="content"){si=rt.events[En][1].type==="paragraph";break}return!rt.parser.lazy[rt.now().line]&&(rt.interrupt||si)?(we.enter("setextHeadingLine"),xt=Gn,Ft(Gn)):Ze(Gn)}function Ft(Gn){return we.enter("setextHeadingLineSequence"),Xt(Gn)}function Xt(Gn){return Gn===xt?(we.consume(Gn),Xt):(we.exit("setextHeadingLineSequence"),(0,sn.xz)(Gn)?(0,Ri.f)(we,Un,"lineSuffix")(Gn):Un(Gn))}function Un(Gn){return Gn===null||(0,sn.Ch)(Gn)?(we.exit("setextHeadingLine"),He(Gn)):Ze(Gn)}}const Fr=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Cr=["pre","script","style","textarea"],Ir={concrete:!0,name:"htmlFlow",resolveTo:Zr,tokenize:Bn},Ur={partial:!0,tokenize:ur},Dn={partial:!0,tokenize:qi};function Zr(we){let He=we.length;for(;He--&&!(we[He][0]==="enter"&&we[He][1].type==="htmlFlow"););return He>1&&we[He-2][1].type==="linePrefix"&&(we[He][1].start=we[He-2][1].start,we[He+1][1].start=we[He-2][1].start,we.splice(He-2,2)),we}function Bn(we,He,Ze){const rt=this;let xt,wt,Ft,Xt,Un;return Gn;function Gn(ti){return En(ti)}function En(ti){return we.enter("htmlFlow"),we.enter("htmlFlowData"),we.consume(ti),si}function si(ti){return ti===33?(we.consume(ti),ni):ti===47?(we.consume(ti),wt=!0,wo):ti===63?(we.consume(ti),xt=3,rt.interrupt?He:Xn):(0,sn.jv)(ti)?(we.consume(ti),Ft=String.fromCharCode(ti),Uo):Ze(ti)}function ni(ti){return ti===45?(we.consume(ti),xt=2,An):ti===91?(we.consume(ti),xt=5,Xt=0,no):(0,sn.jv)(ti)?(we.consume(ti),xt=4,rt.interrupt?He:Xn):Ze(ti)}function An(ti){return ti===45?(we.consume(ti),rt.interrupt?He:Xn):Ze(ti)}function no(ti){const Ks="CDATA[";return ti===Ks.charCodeAt(Xt++)?(we.consume(ti),Xt===Ks.length?rt.interrupt?He:_a:no):Ze(ti)}function wo(ti){return(0,sn.jv)(ti)?(we.consume(ti),Ft=String.fromCharCode(ti),Uo):Ze(ti)}function Uo(ti){if(ti===null||ti===47||ti===62||(0,sn.z3)(ti)){const Ks=ti===47,$l=Ft.toLowerCase();return!Ks&&!wt&&Cr.includes($l)?(xt=1,rt.interrupt?He(ti):_a(ti)):Fr.includes(Ft.toLowerCase())?(xt=6,Ks?(we.consume(ti),Mr):rt.interrupt?He(ti):_a(ti)):(xt=7,rt.interrupt&&!rt.parser.lazy[rt.now().line]?Ze(ti):wt?oo(ti):fo(ti))}return ti===45||(0,sn.H$)(ti)?(we.consume(ti),Ft+=String.fromCharCode(ti),Uo):Ze(ti)}function Mr(ti){return ti===62?(we.consume(ti),rt.interrupt?He:_a):Ze(ti)}function oo(ti){return(0,sn.xz)(ti)?(we.consume(ti),oo):eo(ti)}function fo(ti){return ti===47?(we.consume(ti),eo):ti===58||ti===95||(0,sn.jv)(ti)?(we.consume(ti),Aa):(0,sn.xz)(ti)?(we.consume(ti),fo):eo(ti)}function Aa(ti){return ti===45||ti===46||ti===58||ti===95||(0,sn.H$)(ti)?(we.consume(ti),Aa):Pa(ti)}function Pa(ti){return ti===61?(we.consume(ti),vr):(0,sn.xz)(ti)?(we.consume(ti),Pa):fo(ti)}function vr(ti){return ti===null||ti===60||ti===61||ti===62||ti===96?Ze(ti):ti===34||ti===39?(we.consume(ti),Un=ti,Ia):(0,sn.xz)(ti)?(we.consume(ti),vr):ns(ti)}function Ia(ti){return ti===Un?(we.consume(ti),Un=null,Sa):ti===null||(0,sn.Ch)(ti)?Ze(ti):(we.consume(ti),Ia)}function ns(ti){return ti===null||ti===34||ti===39||ti===47||ti===60||ti===61||ti===62||ti===96||(0,sn.z3)(ti)?Pa(ti):(we.consume(ti),ns)}function Sa(ti){return ti===47||ti===62||(0,sn.xz)(ti)?fo(ti):Ze(ti)}function eo(ti){return ti===62?(we.consume(ti),nl):Ze(ti)}function nl(ti){return ti===null||(0,sn.Ch)(ti)?_a(ti):(0,sn.xz)(ti)?(we.consume(ti),nl):Ze(ti)}function _a(ti){return ti===45&&xt===2?(we.consume(ti),qa):ti===60&&xt===1?(we.consume(ti),Os):ti===62&&xt===4?(we.consume(ti),il):ti===63&&xt===3?(we.consume(ti),Xn):ti===93&&xt===5?(we.consume(ti),Ll):(0,sn.Ch)(ti)&&(xt===6||xt===7)?(we.exit("htmlFlowData"),we.check(Ur,zl,Ro)(ti)):ti===null||(0,sn.Ch)(ti)?(we.exit("htmlFlowData"),Ro(ti)):(we.consume(ti),_a)}function Ro(ti){return we.check(Dn,ko,zl)(ti)}function ko(ti){return we.enter("lineEnding"),we.consume(ti),we.exit("lineEnding"),aa}function aa(ti){return ti===null||(0,sn.Ch)(ti)?Ro(ti):(we.enter("htmlFlowData"),_a(ti))}function qa(ti){return ti===45?(we.consume(ti),Xn):_a(ti)}function Os(ti){return ti===47?(we.consume(ti),Ft="",Ys):_a(ti)}function Ys(ti){if(ti===62){const Ks=Ft.toLowerCase();return Cr.includes(Ks)?(we.consume(ti),il):_a(ti)}return(0,sn.jv)(ti)&&Ft.length<8?(we.consume(ti),Ft+=String.fromCharCode(ti),Ys):_a(ti)}function Ll(ti){return ti===93?(we.consume(ti),Xn):_a(ti)}function Xn(ti){return ti===62?(we.consume(ti),il):ti===45&&xt===2?(we.consume(ti),Xn):_a(ti)}function il(ti){return ti===null||(0,sn.Ch)(ti)?(we.exit("htmlFlowData"),zl(ti)):(we.consume(ti),il)}function zl(ti){return we.exit("htmlFlow"),He(ti)}}function qi(we,He,Ze){const rt=this;return xt;function xt(Ft){return(0,sn.Ch)(Ft)?(we.enter("lineEnding"),we.consume(Ft),we.exit("lineEnding"),wt):Ze(Ft)}function wt(Ft){return rt.parser.lazy[rt.now().line]?Ze(Ft):He(Ft)}}function ur(we,He,Ze){return rt;function rt(xt){return we.enter("lineEnding"),we.consume(xt),we.exit("lineEnding"),we.attempt(Wi,He,Ze)}}const gr={partial:!0,tokenize:mo},xo={concrete:!0,name:"codeFenced",tokenize:yo};function yo(we,He,Ze){const rt=this,xt={partial:!0,tokenize:Pa};let wt=0,Ft=0,Xt;return Un;function Un(vr){return Gn(vr)}function Gn(vr){const Ia=rt.events[rt.events.length-1];return wt=Ia&&Ia[1].type==="linePrefix"?Ia[2].sliceSerialize(Ia[1],!0).length:0,Xt=vr,we.enter("codeFenced"),we.enter("codeFencedFence"),we.enter("codeFencedFenceSequence"),En(vr)}function En(vr){return vr===Xt?(Ft++,we.consume(vr),En):Ft<3?Ze(vr):(we.exit("codeFencedFenceSequence"),(0,sn.xz)(vr)?(0,Ri.f)(we,si,"whitespace")(vr):si(vr))}function si(vr){return vr===null||(0,sn.Ch)(vr)?(we.exit("codeFencedFence"),rt.interrupt?He(vr):we.check(gr,wo,Aa)(vr)):(we.enter("codeFencedFenceInfo"),we.enter("chunkString",{contentType:"string"}),ni(vr))}function ni(vr){return vr===null||(0,sn.Ch)(vr)?(we.exit("chunkString"),we.exit("codeFencedFenceInfo"),si(vr)):(0,sn.xz)(vr)?(we.exit("chunkString"),we.exit("codeFencedFenceInfo"),(0,Ri.f)(we,An,"whitespace")(vr)):vr===96&&vr===Xt?Ze(vr):(we.consume(vr),ni)}function An(vr){return vr===null||(0,sn.Ch)(vr)?si(vr):(we.enter("codeFencedFenceMeta"),we.enter("chunkString",{contentType:"string"}),no(vr))}function no(vr){return vr===null||(0,sn.Ch)(vr)?(we.exit("chunkString"),we.exit("codeFencedFenceMeta"),si(vr)):vr===96&&vr===Xt?Ze(vr):(we.consume(vr),no)}function wo(vr){return we.attempt(xt,Aa,Uo)(vr)}function Uo(vr){return we.enter("lineEnding"),we.consume(vr),we.exit("lineEnding"),Mr}function Mr(vr){return wt>0&&(0,sn.xz)(vr)?(0,Ri.f)(we,oo,"linePrefix",wt+1)(vr):oo(vr)}function oo(vr){return vr===null||(0,sn.Ch)(vr)?we.check(gr,wo,Aa)(vr):(we.enter("codeFlowValue"),fo(vr))}function fo(vr){return vr===null||(0,sn.Ch)(vr)?(we.exit("codeFlowValue"),oo(vr)):(we.consume(vr),fo)}function Aa(vr){return we.exit("codeFenced"),He(vr)}function Pa(vr,Ia,ns){let Sa=0;return eo;function eo(aa){return vr.enter("lineEnding"),vr.consume(aa),vr.exit("lineEnding"),nl}function nl(aa){return vr.enter("codeFencedFence"),(0,sn.xz)(aa)?(0,Ri.f)(vr,_a,"linePrefix",rt.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(aa):_a(aa)}function _a(aa){return aa===Xt?(vr.enter("codeFencedFenceSequence"),Ro(aa)):ns(aa)}function Ro(aa){return aa===Xt?(Sa++,vr.consume(aa),Ro):Sa>=Ft?(vr.exit("codeFencedFenceSequence"),(0,sn.xz)(aa)?(0,Ri.f)(vr,ko,"whitespace")(aa):ko(aa)):ns(aa)}function ko(aa){return aa===null||(0,sn.Ch)(aa)?(vr.exit("codeFencedFence"),Ia(aa)):ns(aa)}}}function mo(we,He,Ze){const rt=this;return xt;function xt(Ft){return Ft===null?Ze(Ft):(we.enter("lineEnding"),we.consume(Ft),we.exit("lineEnding"),wt)}function wt(Ft){return rt.parser.lazy[rt.now().line]?Ze(Ft):He(Ft)}}const bo=document.createElement("i");function cn(we){const He="&"+we+";";bo.innerHTML=He;const Ze=bo.textContent;return Ze.charCodeAt(Ze.length-1)===59&&we!=="semi"||Ze===He?!1:Ze}const Fn={name:"characterReference",tokenize:an};function an(we,He,Ze){const rt=this;let xt=0,wt,Ft;return Xt;function Xt(si){return we.enter("characterReference"),we.enter("characterReferenceMarker"),we.consume(si),we.exit("characterReferenceMarker"),Un}function Un(si){return si===35?(we.enter("characterReferenceMarkerNumeric"),we.consume(si),we.exit("characterReferenceMarkerNumeric"),Gn):(we.enter("characterReferenceValue"),wt=31,Ft=sn.H$,En(si))}function Gn(si){return si===88||si===120?(we.enter("characterReferenceMarkerHexadecimal"),we.consume(si),we.exit("characterReferenceMarkerHexadecimal"),we.enter("characterReferenceValue"),wt=6,Ft=sn.AF,En):(we.enter("characterReferenceValue"),wt=7,Ft=sn.pY,En(si))}function En(si){if(si===59&&xt){const ni=we.exit("characterReferenceValue");return Ft===sn.H$&&!cn(rt.sliceSerialize(ni))?Ze(si):(we.enter("characterReferenceMarker"),we.consume(si),we.exit("characterReferenceMarker"),we.exit("characterReference"),He)}return Ft(si)&&xt++<wt?(we.consume(si),En):Ze(si)}}const Je={name:"characterEscape",tokenize:ci};function ci(we,He,Ze){return rt;function rt(wt){return we.enter("characterEscape"),we.enter("escapeMarker"),we.consume(wt),we.exit("escapeMarker"),xt}function xt(wt){return(0,sn.sR)(wt)?(we.enter("characterEscapeValue"),we.consume(wt),we.exit("characterEscapeValue"),we.exit("characterEscape"),He):Ze(wt)}}const Qn={name:"lineEnding",tokenize:yi};function yi(we,He){return Ze;function Ze(rt){return we.enter("lineEnding"),we.consume(rt),we.exit("lineEnding"),(0,Ri.f)(we,He,"linePrefix")}}function Ci(we,He,Ze){const rt=[];let xt=-1;for(;++xt<we.length;){const wt=we[xt].resolveAll;wt&&!rt.includes(wt)&&(He=wt(He,Ze),rt.push(wt))}return He}const Fi={name:"labelEnd",resolveAll:xi,resolveTo:bi,tokenize:tr},Vn={tokenize:zi},pi={tokenize:Bi},mi={tokenize:Ln};function xi(we){let He=-1;const Ze=[];for(;++He<we.length;){const rt=we[He][1];if(Ze.push(we[He]),rt.type==="labelImage"||rt.type==="labelLink"||rt.type==="labelEnd"){const xt=rt.type==="labelImage"?4:2;rt.type="data",He+=xt}}return we.length!==Ze.length&&Vt(we,0,we.length,Ze),we}function bi(we,He){let Ze=we.length,rt=0,xt,wt,Ft,Xt;for(;Ze--;)if(xt=we[Ze][1],wt){if(xt.type==="link"||xt.type==="labelLink"&&xt._inactive)break;we[Ze][0]==="enter"&&xt.type==="labelLink"&&(xt._inactive=!0)}else if(Ft){if(we[Ze][0]==="enter"&&(xt.type==="labelImage"||xt.type==="labelLink")&&!xt._balanced&&(wt=Ze,xt.type!=="labelLink")){rt=2;break}}else xt.type==="labelEnd"&&(Ft=Ze);const Un={type:we[wt][1].type==="labelLink"?"link":"image",start:ta({},we[wt][1].start),end:ta({},we[we.length-1][1].end)},Gn={type:"label",start:ta({},we[wt][1].start),end:ta({},we[Ft][1].end)},En={type:"labelText",start:ta({},we[wt+rt+2][1].end),end:ta({},we[Ft-2][1].start)};return Xt=[["enter",Un,He],["enter",Gn,He]],Xt=fn(Xt,we.slice(wt+1,wt+rt+3)),Xt=fn(Xt,[["enter",En,He]]),Xt=fn(Xt,Ci(He.parser.constructs.insideSpan.null,we.slice(wt+rt+4,Ft-3),He)),Xt=fn(Xt,[["exit",En,He],we[Ft-2],we[Ft-1],["exit",Gn,He]]),Xt=fn(Xt,we.slice(Ft+1)),Xt=fn(Xt,[["exit",Un,He]]),Vt(we,wt,we.length,Xt),we}function tr(we,He,Ze){const rt=this;let xt=rt.events.length,wt,Ft;for(;xt--;)if((rt.events[xt][1].type==="labelImage"||rt.events[xt][1].type==="labelLink")&&!rt.events[xt][1]._balanced){wt=rt.events[xt][1];break}return Xt;function Xt(ni){return wt?wt._inactive?si(ni):(Ft=rt.parser.defined.includes(ui(rt.sliceSerialize({start:wt.end,end:rt.now()}))),we.enter("labelEnd"),we.enter("labelMarker"),we.consume(ni),we.exit("labelMarker"),we.exit("labelEnd"),Un):Ze(ni)}function Un(ni){return ni===40?we.attempt(Vn,En,Ft?En:si)(ni):ni===91?we.attempt(pi,En,Ft?Gn:si)(ni):Ft?En(ni):si(ni)}function Gn(ni){return we.attempt(mi,En,si)(ni)}function En(ni){return He(ni)}function si(ni){return wt._balanced=!0,Ze(ni)}}function zi(we,He,Ze){return rt;function rt(si){return we.enter("resource"),we.enter("resourceMarker"),we.consume(si),we.exit("resourceMarker"),xt}function xt(si){return(0,sn.z3)(si)?Mi(we,wt)(si):wt(si)}function wt(si){return si===41?En(si):oi(we,Ft,Xt,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(si)}function Ft(si){return(0,sn.z3)(si)?Mi(we,Un)(si):En(si)}function Xt(si){return Ze(si)}function Un(si){return si===34||si===39||si===40?Be(we,Gn,Ze,"resourceTitle","resourceTitleMarker","resourceTitleString")(si):En(si)}function Gn(si){return(0,sn.z3)(si)?Mi(we,En)(si):En(si)}function En(si){return si===41?(we.enter("resourceMarker"),we.consume(si),we.exit("resourceMarker"),we.exit("resource"),He):Ze(si)}}function Bi(we,He,Ze){const rt=this;return xt;function xt(Xt){return qt.call(rt,we,wt,Ft,"reference","referenceMarker","referenceString")(Xt)}function wt(Xt){return rt.parser.defined.includes(ui(rt.sliceSerialize(rt.events[rt.events.length-1][1]).slice(1,-1)))?He(Xt):Ze(Xt)}function Ft(Xt){return Ze(Xt)}}function Ln(we,He,Ze){return rt;function rt(wt){return we.enter("reference"),we.enter("referenceMarker"),we.consume(wt),we.exit("referenceMarker"),xt}function xt(wt){return wt===93?(we.enter("referenceMarker"),we.consume(wt),we.exit("referenceMarker"),we.exit("reference"),He):Ze(wt)}}const Oi={name:"labelStartImage",resolveAll:Fi.resolveAll,tokenize:ar};function ar(we,He,Ze){const rt=this;return xt;function xt(Xt){return we.enter("labelImage"),we.enter("labelImageMarker"),we.consume(Xt),we.exit("labelImageMarker"),wt}function wt(Xt){return Xt===91?(we.enter("labelMarker"),we.consume(Xt),we.exit("labelMarker"),we.exit("labelImage"),Ft):Ze(Xt)}function Ft(Xt){return Xt===94&&"_hiddenFootnoteSupport"in rt.parser.constructs?Ze(Xt):He(Xt)}}function _r(we){if(we===null||(0,sn.z3)(we)||(0,sn.B8)(we))return 1;if((0,sn.Xh)(we))return 2}const Lr={name:"attention",resolveAll:Wr,tokenize:Hr};function Wr(we,He){let Ze=-1,rt,xt,wt,Ft,Xt,Un,Gn,En;for(;++Ze<we.length;)if(we[Ze][0]==="enter"&&we[Ze][1].type==="attentionSequence"&&we[Ze][1]._close){for(rt=Ze;rt--;)if(we[rt][0]==="exit"&&we[rt][1].type==="attentionSequence"&&we[rt][1]._open&&He.sliceSerialize(we[rt][1]).charCodeAt(0)===He.sliceSerialize(we[Ze][1]).charCodeAt(0)){if((we[rt][1]._close||we[Ze][1]._open)&&(we[Ze][1].end.offset-we[Ze][1].start.offset)%3&&!((we[rt][1].end.offset-we[rt][1].start.offset+we[Ze][1].end.offset-we[Ze][1].start.offset)%3))continue;Un=we[rt][1].end.offset-we[rt][1].start.offset>1&&we[Ze][1].end.offset-we[Ze][1].start.offset>1?2:1;const si=ta({},we[rt][1].end),ni=ta({},we[Ze][1].start);jr(si,-Un),jr(ni,Un),Ft={type:Un>1?"strongSequence":"emphasisSequence",start:si,end:ta({},we[rt][1].end)},Xt={type:Un>1?"strongSequence":"emphasisSequence",start:ta({},we[Ze][1].start),end:ni},wt={type:Un>1?"strongText":"emphasisText",start:ta({},we[rt][1].end),end:ta({},we[Ze][1].start)},xt={type:Un>1?"strong":"emphasis",start:ta({},Ft.start),end:ta({},Xt.end)},we[rt][1].end=ta({},Ft.start),we[Ze][1].start=ta({},Xt.end),Gn=[],we[rt][1].end.offset-we[rt][1].start.offset&&(Gn=fn(Gn,[["enter",we[rt][1],He],["exit",we[rt][1],He]])),Gn=fn(Gn,[["enter",xt,He],["enter",Ft,He],["exit",Ft,He],["enter",wt,He]]),Gn=fn(Gn,Ci(He.parser.constructs.insideSpan.null,we.slice(rt+1,Ze),He)),Gn=fn(Gn,[["exit",wt,He],["enter",Xt,He],["exit",Xt,He],["exit",xt,He]]),we[Ze][1].end.offset-we[Ze][1].start.offset?(En=2,Gn=fn(Gn,[["enter",we[Ze][1],He],["exit",we[Ze][1],He]])):En=0,Vt(we,rt-1,Ze-rt+3,Gn),Ze=rt+Gn.length-En-2;break}}for(Ze=-1;++Ze<we.length;)we[Ze][1].type==="attentionSequence"&&(we[Ze][1].type="data");return we}function Hr(we,He){const Ze=this.parser.constructs.attentionMarkers.null,rt=this.previous,xt=_r(rt);let wt;return Ft;function Ft(Un){return wt=Un,we.enter("attentionSequence"),Xt(Un)}function Xt(Un){if(Un===wt)return we.consume(Un),Xt;const Gn=we.exit("attentionSequence"),En=_r(Un),si=!En||En===2&&xt||Ze.includes(Un),ni=!xt||xt===2&&En||Ze.includes(rt);return Gn._open=!!(wt===42?si:si&&(xt||!ni)),Gn._close=!!(wt===42?ni:ni&&(En||!si)),He(Un)}}function jr(we,He){we.column+=He,we.offset+=He,we._bufferIndex+=He}const So={name:"autolink",tokenize:vo};function vo(we,He,Ze){let rt=0;return xt;function xt(An){return we.enter("autolink"),we.enter("autolinkMarker"),we.consume(An),we.exit("autolinkMarker"),we.enter("autolinkProtocol"),wt}function wt(An){return(0,sn.jv)(An)?(we.consume(An),Ft):An===64?Ze(An):Gn(An)}function Ft(An){return An===43||An===45||An===46||(0,sn.H$)(An)?(rt=1,Xt(An)):Gn(An)}function Xt(An){return An===58?(we.consume(An),rt=0,Un):(An===43||An===45||An===46||(0,sn.H$)(An))&&rt++<32?(we.consume(An),Xt):(rt=0,Gn(An))}function Un(An){return An===62?(we.exit("autolinkProtocol"),we.enter("autolinkMarker"),we.consume(An),we.exit("autolinkMarker"),we.exit("autolink"),He):An===null||An===32||An===60||(0,sn.Av)(An)?Ze(An):(we.consume(An),Un)}function Gn(An){return An===64?(we.consume(An),En):(0,sn.n9)(An)?(we.consume(An),Gn):Ze(An)}function En(An){return(0,sn.H$)(An)?si(An):Ze(An)}function si(An){return An===46?(we.consume(An),rt=0,En):An===62?(we.exit("autolinkProtocol").type="autolinkEmail",we.enter("autolinkMarker"),we.consume(An),we.exit("autolinkMarker"),we.exit("autolink"),He):ni(An)}function ni(An){if((An===45||(0,sn.H$)(An))&&rt++<63){const no=An===45?ni:si;return we.consume(An),no}return Ze(An)}}const ra={name:"htmlText",tokenize:tn};function tn(we,He,Ze){const rt=this;let xt,wt,Ft;return Xt;function Xt(Xn){return we.enter("htmlText"),we.enter("htmlTextData"),we.consume(Xn),Un}function Un(Xn){return Xn===33?(we.consume(Xn),Gn):Xn===47?(we.consume(Xn),Pa):Xn===63?(we.consume(Xn),fo):(0,sn.jv)(Xn)?(we.consume(Xn),ns):Ze(Xn)}function Gn(Xn){return Xn===45?(we.consume(Xn),En):Xn===91?(we.consume(Xn),wt=0,no):(0,sn.jv)(Xn)?(we.consume(Xn),oo):Ze(Xn)}function En(Xn){return Xn===45?(we.consume(Xn),An):Ze(Xn)}function si(Xn){return Xn===null?Ze(Xn):Xn===45?(we.consume(Xn),ni):(0,sn.Ch)(Xn)?(Ft=si,Os(Xn)):(we.consume(Xn),si)}function ni(Xn){return Xn===45?(we.consume(Xn),An):si(Xn)}function An(Xn){return Xn===62?qa(Xn):Xn===45?ni(Xn):si(Xn)}function no(Xn){const il="CDATA[";return Xn===il.charCodeAt(wt++)?(we.consume(Xn),wt===il.length?wo:no):Ze(Xn)}function wo(Xn){return Xn===null?Ze(Xn):Xn===93?(we.consume(Xn),Uo):(0,sn.Ch)(Xn)?(Ft=wo,Os(Xn)):(we.consume(Xn),wo)}function Uo(Xn){return Xn===93?(we.consume(Xn),Mr):wo(Xn)}function Mr(Xn){return Xn===62?qa(Xn):Xn===93?(we.consume(Xn),Mr):wo(Xn)}function oo(Xn){return Xn===null||Xn===62?qa(Xn):(0,sn.Ch)(Xn)?(Ft=oo,Os(Xn)):(we.consume(Xn),oo)}function fo(Xn){return Xn===null?Ze(Xn):Xn===63?(we.consume(Xn),Aa):(0,sn.Ch)(Xn)?(Ft=fo,Os(Xn)):(we.consume(Xn),fo)}function Aa(Xn){return Xn===62?qa(Xn):fo(Xn)}function Pa(Xn){return(0,sn.jv)(Xn)?(we.consume(Xn),vr):Ze(Xn)}function vr(Xn){return Xn===45||(0,sn.H$)(Xn)?(we.consume(Xn),vr):Ia(Xn)}function Ia(Xn){return(0,sn.Ch)(Xn)?(Ft=Ia,Os(Xn)):(0,sn.xz)(Xn)?(we.consume(Xn),Ia):qa(Xn)}function ns(Xn){return Xn===45||(0,sn.H$)(Xn)?(we.consume(Xn),ns):Xn===47||Xn===62||(0,sn.z3)(Xn)?Sa(Xn):Ze(Xn)}function Sa(Xn){return Xn===47?(we.consume(Xn),qa):Xn===58||Xn===95||(0,sn.jv)(Xn)?(we.consume(Xn),eo):(0,sn.Ch)(Xn)?(Ft=Sa,Os(Xn)):(0,sn.xz)(Xn)?(we.consume(Xn),Sa):qa(Xn)}function eo(Xn){return Xn===45||Xn===46||Xn===58||Xn===95||(0,sn.H$)(Xn)?(we.consume(Xn),eo):nl(Xn)}function nl(Xn){return Xn===61?(we.consume(Xn),_a):(0,sn.Ch)(Xn)?(Ft=nl,Os(Xn)):(0,sn.xz)(Xn)?(we.consume(Xn),nl):Sa(Xn)}function _a(Xn){return Xn===null||Xn===60||Xn===61||Xn===62||Xn===96?Ze(Xn):Xn===34||Xn===39?(we.consume(Xn),xt=Xn,Ro):(0,sn.Ch)(Xn)?(Ft=_a,Os(Xn)):(0,sn.xz)(Xn)?(we.consume(Xn),_a):(we.consume(Xn),ko)}function Ro(Xn){return Xn===xt?(we.consume(Xn),xt=void 0,aa):Xn===null?Ze(Xn):(0,sn.Ch)(Xn)?(Ft=Ro,Os(Xn)):(we.consume(Xn),Ro)}function ko(Xn){return Xn===null||Xn===34||Xn===39||Xn===60||Xn===61||Xn===96?Ze(Xn):Xn===47||Xn===62||(0,sn.z3)(Xn)?Sa(Xn):(we.consume(Xn),ko)}function aa(Xn){return Xn===47||Xn===62||(0,sn.z3)(Xn)?Sa(Xn):Ze(Xn)}function qa(Xn){return Xn===62?(we.consume(Xn),we.exit("htmlTextData"),we.exit("htmlText"),He):Ze(Xn)}function Os(Xn){return we.exit("htmlTextData"),we.enter("lineEnding"),we.consume(Xn),we.exit("lineEnding"),Ys}function Ys(Xn){return(0,sn.xz)(Xn)?(0,Ri.f)(we,Ll,"linePrefix",rt.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(Xn):Ll(Xn)}function Ll(Xn){return we.enter("htmlTextData"),Ft(Xn)}}const Xr={name:"labelStartLink",resolveAll:Fi.resolveAll,tokenize:uo};function uo(we,He,Ze){const rt=this;return xt;function xt(Ft){return we.enter("labelLink"),we.enter("labelMarker"),we.consume(Ft),we.exit("labelMarker"),we.exit("labelLink"),wt}function wt(Ft){return Ft===94&&"_hiddenFootnoteSupport"in rt.parser.constructs?Ze(Ft):He(Ft)}}const Tr={name:"hardBreakEscape",tokenize:ao};function ao(we,He,Ze){return rt;function rt(wt){return we.enter("hardBreakEscape"),we.consume(wt),xt}function xt(wt){return(0,sn.Ch)(wt)?(we.exit("hardBreakEscape"),He(wt)):Ze(wt)}}const br={name:"codeText",previous:gn,resolve:Go,tokenize:qr};function Go(we){let He=we.length-4,Ze=3,rt,xt;if((we[Ze][1].type==="lineEnding"||we[Ze][1].type==="space")&&(we[He][1].type==="lineEnding"||we[He][1].type==="space")){for(rt=Ze;++rt<He;)if(we[rt][1].type==="codeTextData"){we[Ze][1].type="codeTextPadding",we[He][1].type="codeTextPadding",Ze+=2,He-=2;break}}for(rt=Ze-1,He++;++rt<=He;)xt===void 0?rt!==He&&we[rt][1].type!=="lineEnding"&&(xt=rt):(rt===He||we[rt][1].type==="lineEnding")&&(we[xt][1].type="codeTextData",rt!==xt+2&&(we[xt][1].end=we[rt-1][1].end,we.splice(xt+2,rt-xt-2),He-=rt-xt-2,rt=xt+2),xt=void 0);return we}function gn(we){return we!==96||this.events[this.events.length-1][1].type==="characterEscape"}function qr(we,He,Ze){const rt=this;let xt=0,wt,Ft;return Xt;function Xt(ni){return we.enter("codeText"),we.enter("codeTextSequence"),Un(ni)}function Un(ni){return ni===96?(we.consume(ni),xt++,Un):(we.exit("codeTextSequence"),Gn(ni))}function Gn(ni){return ni===null?Ze(ni):ni===32?(we.enter("space"),we.consume(ni),we.exit("space"),Gn):ni===96?(Ft=we.enter("codeTextSequence"),wt=0,si(ni)):(0,sn.Ch)(ni)?(we.enter("lineEnding"),we.consume(ni),we.exit("lineEnding"),Gn):(we.enter("codeTextData"),En(ni))}function En(ni){return ni===null||ni===32||ni===96||(0,sn.Ch)(ni)?(we.exit("codeTextData"),Gn(ni)):(we.consume(ni),En)}function si(ni){return ni===96?(we.consume(ni),wt++,si):wt===xt?(we.exit("codeTextSequence"),we.exit("codeText"),He(ni)):(Ft.type="codeTextData",En(ni))}}const Oo={42:Pi,43:Pi,45:Pi,48:Pi,49:Pi,50:Pi,51:Pi,52:Pi,53:Pi,54:Pi,55:Pi,56:Pi,57:Pi,62:ri},Ga={91:Tn},pa={[-2]:Cn,[-1]:Cn,32:Cn},us={35:mn,42:gi,45:[Ji,gi],60:Ir,61:Ji,95:gi,96:xo,126:xo},Za={38:Fn,92:Je},pr={[-5]:Qn,[-4]:Qn,[-3]:Qn,33:Oi,38:Fn,42:Lr,60:[So,ra],91:Xr,92:[Tr,Je],93:Fi,95:Lr,96:br},Ho={null:[Lr,yr]},ca={null:[42,95]},wa={null:[]};function to(we,He,Ze){let rt={_bufferIndex:-1,_index:0,line:Ze&&Ze.line||1,column:Ze&&Ze.column||1,offset:Ze&&Ze.offset||0};const xt={},wt=[];let Ft=[],Xt=[],Un=!0;const Gn={attempt:Sa(Ia),check:Sa(ns),consume:Aa,enter:Pa,exit:vr,interrupt:Sa(ns,{interrupt:!0})},En={code:null,containerState:{},defineSkip:Mr,events:[],now:Uo,parser:we,previous:null,sliceSerialize:no,sliceStream:wo,write:An};let si=He.tokenize.call(En,Gn),ni;return He.resolveAll&&wt.push(He),En;function An(Ro){return Ft=fn(Ft,Ro),oo(),Ft[Ft.length-1]!==null?[]:(eo(He,0),En.events=Ci(wt,En.events,En),En.events)}function no(Ro,ko){return Ut(wo(Ro),ko)}function wo(Ro){return Kr(Ft,Ro)}function Uo(){const{_bufferIndex:Ro,_index:ko,line:aa,column:qa,offset:Os}=rt;return{_bufferIndex:Ro,_index:ko,line:aa,column:qa,offset:Os}}function Mr(Ro){xt[Ro.line]=Ro.column,_a()}function oo(){let Ro;for(;rt._index<Ft.length;){const ko=Ft[rt._index];if(typeof ko=="string")for(Ro=rt._index,rt._bufferIndex<0&&(rt._bufferIndex=0);rt._index===Ro&&rt._bufferIndex<ko.length;)fo(ko.charCodeAt(rt._bufferIndex));else fo(ko)}}function fo(Ro){Un=void 0,ni=Ro,si=si(Ro)}function Aa(Ro){(0,sn.Ch)(Ro)?(rt.line++,rt.column=1,rt.offset+=Ro===-3?2:1,_a()):Ro!==-1&&(rt.column++,rt.offset++),rt._bufferIndex<0?rt._index++:(rt._bufferIndex++,rt._bufferIndex===Ft[rt._index].length&&(rt._bufferIndex=-1,rt._index++)),En.previous=Ro,Un=!0}function Pa(Ro,ko){const aa=ko||{};return aa.type=Ro,aa.start=Uo(),En.events.push(["enter",aa,En]),Xt.push(aa),aa}function vr(Ro){const ko=Xt.pop();return ko.end=Uo(),En.events.push(["exit",ko,En]),ko}function Ia(Ro,ko){eo(Ro,ko.from)}function ns(Ro,ko){ko.restore()}function Sa(Ro,ko){return aa;function aa(qa,Os,Ys){let Ll,Xn,il,zl;return Array.isArray(qa)?Ks(qa):"tokenize"in qa?Ks([qa]):ti(qa);function ti($a){return Hl;function Hl(_s){const Nu=_s!==null&&$a[_s],Ku=_s!==null&&$a.null,gd=[...Array.isArray(Nu)?Nu:Nu?[Nu]:[],...Array.isArray(Ku)?Ku:Ku?[Ku]:[]];return Ks(gd)(_s)}}function Ks($a){return Ll=$a,Xn=0,$a.length===0?Ys:$l($a[Xn])}function $l($a){return Hl;function Hl(_s){return zl=nl(),il=$a,$a.partial||(En.currentConstruct=$a),$a.name&&En.parser.constructs.disable.null.includes($a.name)?ks(_s):$a.tokenize.call(ko?Object.assign(Object.create(En),ko):En,Gn,du,ks)(_s)}}function du($a){return Un=!0,Ro(il,zl),Os}function ks($a){return Un=!0,zl.restore(),++Xn<Ll.length?$l(Ll[Xn]):Ys}}}function eo(Ro,ko){Ro.resolveAll&&!wt.includes(Ro)&&wt.push(Ro),Ro.resolve&&Vt(En.events,ko,En.events.length-ko,Ro.resolve(En.events.slice(ko),En)),Ro.resolveTo&&(En.events=Ro.resolveTo(En.events,En))}function nl(){const Ro=Uo(),ko=En.previous,aa=En.currentConstruct,qa=En.events.length,Os=Array.from(Xt);return{from:qa,restore:Ys};function Ys(){rt=Ro,En.previous=ko,En.currentConstruct=aa,En.events.length=qa,Xt=Os,_a()}}function _a(){rt.line in xt&&rt.column<2&&(rt.column=xt[rt.line],rt.offset+=xt[rt.line]-1)}}function Kr(we,He){const Ze=He.start._index,rt=He.start._bufferIndex,xt=He.end._index,wt=He.end._bufferIndex;let Ft;if(Ze===xt)Ft=[we[Ze].slice(rt,wt)];else{if(Ft=we.slice(Ze,xt),rt>-1){const Xt=Ft[0];typeof Xt=="string"?Ft[0]=Xt.slice(rt):Ft.shift()}wt>0&&Ft.push(we[xt].slice(0,wt))}return Ft}function Ut(we,He){let Ze=-1;const rt=[];let xt;for(;++Ze<we.length;){const wt=we[Ze];let Ft;if(typeof wt=="string")Ft=wt;else switch(wt){case-5:{Ft="\r";break}case-4:{Ft=`
|
|
|
`;break}case-3:{Ft=`\r
|
|
|
`;break}case-2:{Ft=He?" ":" ";break}case-1:{if(!He&&xt)continue;Ft=" ";break}default:Ft=String.fromCharCode(wt)}xt=wt===-2,rt.push(Ft)}return rt.join("")}function Ni(we){const rt={constructs:Zn([ce,...(we||{}).extensions||[]]),content:xt(Xi),defined:[],document:xt(fr),flow:xt(Br),lazy:{},string:xt(Vi),text:xt(hi)};return rt;function xt(wt){return Ft;function Ft(Xt){return to(rt,wt,Xt)}}}const Qi=/[\0\t\n\r]/g;function Pr(){let we=1,He="",Ze=!0,rt;return xt;function xt(wt,Ft,Xt){const Un=[];let Gn,En,si,ni,An;for(wt=He+(typeof wt=="string"?wt.toString():new TextDecoder(Ft||void 0).decode(wt)),si=0,He="",Ze&&(wt.charCodeAt(0)===65279&&si++,Ze=void 0);si<wt.length;){if(Qi.lastIndex=si,Gn=Qi.exec(wt),ni=Gn&&Gn.index!==void 0?Gn.index:wt.length,An=wt.charCodeAt(ni),!Gn){He=wt.slice(si);break}if(An===10&&si===ni&&rt)Un.push(-3),rt=void 0;else switch(rt&&(Un.push(-5),rt=void 0),si<ni&&(Un.push(wt.slice(si,ni)),we+=ni-si),An){case 0:{Un.push(65533),we++;break}case 9:{for(En=Math.ceil(we/4)*4,Un.push(-2);we++<En;)Un.push(-1);break}case 10:{Un.push(-4),we=1;break}default:rt=!0,we=1}si=ni+1}return Xt&&(rt&&Un.push(-5),He&&Un.push(He),Un.push(null)),Un}}function co(we,He){const Ze=Number.parseInt(we,He);return Ze<9||Ze===11||Ze>13&&Ze<32||Ze>126&&Ze<160||Ze>55295&&Ze<57344||Ze>64975&&Ze<65008||(Ze&65535)===65535||(Ze&65535)===65534||Ze>1114111?"\uFFFD":String.fromCodePoint(Ze)}const Qr=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function mr(we){return we.replace(Qr,Mo)}function Mo(we,He,Ze){if(He)return He;if(Ze.charCodeAt(0)===35){const xt=Ze.charCodeAt(1),wt=xt===120||xt===88;return co(Ze.slice(wt?2:1),wt?16:10)}return cn(Ze)||we}const Jo={}.hasOwnProperty;function Do(we,He,Ze){return typeof He!="string"&&(Ze=He,He=void 0),ho(Ze)(qn(Ni(Ze).document().write(Pr()(we,He,!0))))}function ho(we){const He={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:wt(Ke),autolinkProtocol:Sa,autolinkEmail:Sa,atxHeading:wt(lc),blockQuote:wt(_s),characterEscape:Sa,characterReference:Sa,codeFenced:wt(Nu),codeFencedFenceInfo:Ft,codeFencedFenceMeta:Ft,codeIndented:wt(Nu,Ft),codeText:wt(Ku,Ft),codeTextData:Sa,data:Sa,codeFlowValue:Sa,definition:wt(gd),definitionDestinationString:Ft,definitionLabelString:Ft,definitionTitleString:Ft,emphasis:wt(eu),hardBreakEscape:wt(zd),hardBreakTrailing:wt(zd),htmlFlow:wt(le,Ft),htmlFlowData:Sa,htmlText:wt(le,Ft),htmlTextData:Sa,image:wt(pe),label:Ft,link:wt(Ke),listItem:wt(Hn),listItemValue:ni,listOrdered:wt(Dt,si),listUnordered:wt(Dt),paragraph:wt(Ii),reference:ti,referenceString:Ft,resourceDestinationString:Ft,resourceTitleString:Ft,setextHeading:wt(lc),strong:wt($i),thematicBreak:wt(Lo)},exit:{atxHeading:Un(),atxHeadingSequence:Pa,autolink:Un(),autolinkEmail:Hl,autolinkProtocol:$a,blockQuote:Un(),characterEscapeValue:eo,characterReferenceMarkerHexadecimal:$l,characterReferenceMarkerNumeric:$l,characterReferenceValue:du,characterReference:ks,codeFenced:Un(Uo),codeFencedFence:wo,codeFencedFenceInfo:An,codeFencedFenceMeta:no,codeFlowValue:eo,codeIndented:Un(Mr),codeText:Un(aa),codeTextData:eo,data:eo,definition:Un(),definitionDestinationString:Aa,definitionLabelString:oo,definitionTitleString:fo,emphasis:Un(),hardBreakEscape:Un(_a),hardBreakTrailing:Un(_a),htmlFlow:Un(Ro),htmlFlowData:eo,htmlText:Un(ko),htmlTextData:eo,image:Un(Os),label:Ll,labelText:Ys,lineEnding:nl,link:Un(qa),listItem:Un(),listOrdered:Un(),listUnordered:Un(),paragraph:Un(),referenceString:Ks,resourceDestinationString:Xn,resourceTitleString:il,resource:zl,setextHeading:Un(ns),setextHeadingLineSequence:Ia,setextHeadingText:vr,strong:Un(),thematicBreak:Un()}};as(He,(we||{}).mdastExtensions||[]);const Ze={};return rt;function rt(Ti){let Ar={type:"root",children:[]};const zo={stack:[Ar],tokenStack:[],config:He,enter:Xt,exit:Gn,buffer:Ft,resume:En,data:Ze},ua=[];let Ba=-1;for(;++Ba<Ti.length;)if(Ti[Ba][1].type==="listOrdered"||Ti[Ba][1].type==="listUnordered")if(Ti[Ba][0]==="enter")ua.push(Ba);else{const hu=ua.pop();Ba=xt(Ti,hu,Ba)}for(Ba=-1;++Ba<Ti.length;){const hu=He[Ti[Ba][0]];Jo.call(hu,Ti[Ba][1].type)&&hu[Ti[Ba][1].type].call(Object.assign({sliceSerialize:Ti[Ba][2].sliceSerialize},zo),Ti[Ba][1])}if(zo.tokenStack.length>0){const hu=zo.tokenStack[zo.tokenStack.length-1];(hu[1]||ka).call(zo,void 0,hu[0])}for(Ar.position={start:na(Ti.length>0?Ti[0][1].start:{line:1,column:1,offset:0}),end:na(Ti.length>0?Ti[Ti.length-2][1].end:{line:1,column:1,offset:0})},Ba=-1;++Ba<He.transforms.length;)Ar=He.transforms[Ba](Ar)||Ar;return Ar}function xt(Ti,Ar,zo){let ua=Ar-1,Ba=-1,hu=!1,ku,uc,Zu,Sl;for(;++ua<=zo;){const tu=Ti[ua];switch(tu[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{tu[0]==="enter"?Ba++:Ba--,Sl=void 0;break}case"lineEndingBlank":{tu[0]==="enter"&&(ku&&!Sl&&!Ba&&!Zu&&(Zu=ua),Sl=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Sl=void 0}if(!Ba&&tu[0]==="enter"&&tu[1].type==="listItemPrefix"||Ba===-1&&tu[0]==="exit"&&(tu[1].type==="listUnordered"||tu[1].type==="listOrdered")){if(ku){let Mc=ua;for(uc=void 0;Mc--;){const jl=Ti[Mc];if(jl[1].type==="lineEnding"||jl[1].type==="lineEndingBlank"){if(jl[0]==="exit")continue;uc&&(Ti[uc][1].type="lineEndingBlank",hu=!0),jl[1].type="lineEnding",uc=Mc}else if(!(jl[1].type==="linePrefix"||jl[1].type==="blockQuotePrefix"||jl[1].type==="blockQuotePrefixWhitespace"||jl[1].type==="blockQuoteMarker"||jl[1].type==="listItemIndent"))break}Zu&&(!uc||Zu<uc)&&(ku._spread=!0),ku.end=Object.assign({},uc?Ti[uc][1].start:tu[1].end),Ti.splice(uc||ua,0,["exit",ku,tu[2]]),ua++,zo++}if(tu[1].type==="listItemPrefix"){const Mc={type:"listItem",_spread:!1,start:Object.assign({},tu[1].start),end:void 0};ku=Mc,Ti.splice(ua,0,["enter",Mc,tu[2]]),ua++,zo++,Zu=void 0,Sl=!0}}}return Ti[Ar][1]._spread=hu,zo}function wt(Ti,Ar){return zo;function zo(ua){Xt.call(this,Ti(ua),ua),Ar&&Ar.call(this,ua)}}function Ft(){this.stack.push({type:"fragment",children:[]})}function Xt(Ti,Ar,zo){this.stack[this.stack.length-1].children.push(Ti),this.stack.push(Ti),this.tokenStack.push([Ar,zo||void 0]),Ti.position={start:na(Ar.start),end:void 0}}function Un(Ti){return Ar;function Ar(zo){Ti&&Ti.call(this,zo),Gn.call(this,zo)}}function Gn(Ti,Ar){const zo=this.stack.pop(),ua=this.tokenStack.pop();if(ua)ua[0].type!==Ti.type&&(Ar?Ar.call(this,Ti,ua[0]):(ua[1]||ka).call(this,Ti,ua[0]));else throw new Error("Cannot close `"+Ti.type+"` ("+Ae({start:Ti.start,end:Ti.end})+"): it\u2019s not open");zo.position.end=na(Ti.end)}function En(){return bn(this.stack.pop())}function si(){this.data.expectingFirstListItemValue=!0}function ni(Ti){if(this.data.expectingFirstListItemValue){const Ar=this.stack[this.stack.length-2];Ar.start=Number.parseInt(this.sliceSerialize(Ti),10),this.data.expectingFirstListItemValue=void 0}}function An(){const Ti=this.resume(),Ar=this.stack[this.stack.length-1];Ar.lang=Ti}function no(){const Ti=this.resume(),Ar=this.stack[this.stack.length-1];Ar.meta=Ti}function wo(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function Uo(){const Ti=this.resume(),Ar=this.stack[this.stack.length-1];Ar.value=Ti.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function Mr(){const Ti=this.resume(),Ar=this.stack[this.stack.length-1];Ar.value=Ti.replace(/(\r?\n|\r)$/g,"")}function oo(Ti){const Ar=this.resume(),zo=this.stack[this.stack.length-1];zo.label=Ar,zo.identifier=ui(this.sliceSerialize(Ti)).toLowerCase()}function fo(){const Ti=this.resume(),Ar=this.stack[this.stack.length-1];Ar.title=Ti}function Aa(){const Ti=this.resume(),Ar=this.stack[this.stack.length-1];Ar.url=Ti}function Pa(Ti){const Ar=this.stack[this.stack.length-1];if(!Ar.depth){const zo=this.sliceSerialize(Ti).length;Ar.depth=zo}}function vr(){this.data.setextHeadingSlurpLineEnding=!0}function Ia(Ti){const Ar=this.stack[this.stack.length-1];Ar.depth=this.sliceSerialize(Ti).codePointAt(0)===61?1:2}function ns(){this.data.setextHeadingSlurpLineEnding=void 0}function Sa(Ti){const zo=this.stack[this.stack.length-1].children;let ua=zo[zo.length-1];(!ua||ua.type!=="text")&&(ua=so(),ua.position={start:na(Ti.start),end:void 0},zo.push(ua)),this.stack.push(ua)}function eo(Ti){const Ar=this.stack.pop();Ar.value+=this.sliceSerialize(Ti),Ar.position.end=na(Ti.end)}function nl(Ti){const Ar=this.stack[this.stack.length-1];if(this.data.atHardBreak){const zo=Ar.children[Ar.children.length-1];zo.position.end=na(Ti.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&He.canContainEols.includes(Ar.type)&&(Sa.call(this,Ti),eo.call(this,Ti))}function _a(){this.data.atHardBreak=!0}function Ro(){const Ti=this.resume(),Ar=this.stack[this.stack.length-1];Ar.value=Ti}function ko(){const Ti=this.resume(),Ar=this.stack[this.stack.length-1];Ar.value=Ti}function aa(){const Ti=this.resume(),Ar=this.stack[this.stack.length-1];Ar.value=Ti}function qa(){const Ti=this.stack[this.stack.length-1];if(this.data.inReference){const Ar=this.data.referenceType||"shortcut";Ti.type+="Reference",Ti.referenceType=Ar,delete Ti.url,delete Ti.title}else delete Ti.identifier,delete Ti.label;this.data.referenceType=void 0}function Os(){const Ti=this.stack[this.stack.length-1];if(this.data.inReference){const Ar=this.data.referenceType||"shortcut";Ti.type+="Reference",Ti.referenceType=Ar,delete Ti.url,delete Ti.title}else delete Ti.identifier,delete Ti.label;this.data.referenceType=void 0}function Ys(Ti){const Ar=this.sliceSerialize(Ti),zo=this.stack[this.stack.length-2];zo.label=mr(Ar),zo.identifier=ui(Ar).toLowerCase()}function Ll(){const Ti=this.stack[this.stack.length-1],Ar=this.resume(),zo=this.stack[this.stack.length-1];if(this.data.inReference=!0,zo.type==="link"){const ua=Ti.children;zo.children=ua}else zo.alt=Ar}function Xn(){const Ti=this.resume(),Ar=this.stack[this.stack.length-1];Ar.url=Ti}function il(){const Ti=this.resume(),Ar=this.stack[this.stack.length-1];Ar.title=Ti}function zl(){this.data.inReference=void 0}function ti(){this.data.referenceType="collapsed"}function Ks(Ti){const Ar=this.resume(),zo=this.stack[this.stack.length-1];zo.label=Ar,zo.identifier=ui(this.sliceSerialize(Ti)).toLowerCase(),this.data.referenceType="full"}function $l(Ti){this.data.characterReferenceType=Ti.type}function du(Ti){const Ar=this.sliceSerialize(Ti),zo=this.data.characterReferenceType;let ua;zo?(ua=co(Ar,zo==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):ua=cn(Ar);const Ba=this.stack[this.stack.length-1];Ba.value+=ua}function ks(Ti){const Ar=this.stack.pop();Ar.position.end=na(Ti.end)}function $a(Ti){eo.call(this,Ti);const Ar=this.stack[this.stack.length-1];Ar.url=this.sliceSerialize(Ti)}function Hl(Ti){eo.call(this,Ti);const Ar=this.stack[this.stack.length-1];Ar.url="mailto:"+this.sliceSerialize(Ti)}function _s(){return{type:"blockquote",children:[]}}function Nu(){return{type:"code",lang:null,meta:null,value:""}}function Ku(){return{type:"inlineCode",value:""}}function gd(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function eu(){return{type:"emphasis",children:[]}}function lc(){return{type:"heading",depth:0,children:[]}}function zd(){return{type:"break"}}function le(){return{type:"html",value:""}}function pe(){return{type:"image",title:null,url:"",alt:null}}function Ke(){return{type:"link",title:null,url:"",children:[]}}function Dt(Ti){return{type:"list",ordered:Ti.type==="listOrdered",start:null,spread:Ti._spread,children:[]}}function Hn(Ti){return{type:"listItem",spread:Ti._spread,checked:null,children:[]}}function Ii(){return{type:"paragraph",children:[]}}function $i(){return{type:"strong",children:[]}}function so(){return{type:"text",value:""}}function Lo(){return{type:"thematicBreak"}}}function na(we){return{line:we.line,column:we.column,offset:we.offset}}function as(we,He){let Ze=-1;for(;++Ze<He.length;){const rt=He[Ze];Array.isArray(rt)?as(we,rt):Po(we,rt)}}function Po(we,He){let Ze;for(Ze in He)if(Jo.call(He,Ze))switch(Ze){case"canContainEols":{const rt=He[Ze];rt&&we[Ze].push(...rt);break}case"transforms":{const rt=He[Ze];rt&&we[Ze].push(...rt);break}case"enter":case"exit":{const rt=He[Ze];rt&&Object.assign(we[Ze],rt);break}}}function ka(we,He){throw we?new Error("Cannot close `"+we.type+"` ("+Ae({start:we.start,end:we.end})+"): a different token (`"+He.type+"`, "+Ae({start:He.start,end:He.end})+") is open"):new Error("Cannot close document, a token (`"+He.type+"`, "+Ae({start:He.start,end:He.end})+") is still open")}function bs(we){const He=this;He.parser=Ze;function Ze(rt){return Do(rt,Pf(ta(ta({},He.data("settings")),we),{extensions:He.data("micromarkExtensions")||[],mdastExtensions:He.data("fromMarkdownExtensions")||[]}))}}var Ds=ue(90302);function fa(we,He){const Ze=encode(Gs(we||""));if(!He)return Ze;const rt=Ze.indexOf(":"),xt=Ze.indexOf("?"),wt=Ze.indexOf("#"),Ft=Ze.indexOf("/");return rt<0||Ft>-1&&rt>Ft||xt>-1&&rt>xt||wt>-1&&rt>wt||He.test(Ze.slice(0,rt))?Ze:""}function Gs(we){const He=[];let Ze=-1,rt=0,xt=0;for(;++Ze<we.length;){const wt=we.charCodeAt(Ze);let Ft="";if(wt===37&&(0,sn.H$)(we.charCodeAt(Ze+1))&&(0,sn.H$)(we.charCodeAt(Ze+2)))xt=2;else if(wt<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(wt))||(Ft=String.fromCharCode(wt));else if(wt>55295&&wt<57344){const Xt=we.charCodeAt(Ze+1);wt<56320&&Xt>56319&&Xt<57344?(Ft=String.fromCharCode(wt,Xt),xt=1):Ft="\uFFFD"}else Ft=String.fromCharCode(wt);Ft&&(He.push(we.slice(rt,Ze),encodeURIComponent(Ft)),rt=Ze+xt+1,Ft=""),xt&&(Ze+=xt,xt=0)}return He.join("")+we.slice(rt)}function pl(we,He){const Ze=[{type:"text",value:"\u21A9"}];return He>1&&Ze.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(He)}]}),Ze}function Es(we,He){return"Back to reference "+(we+1)+(He>1?"-"+He:"")}function As(we){const He=typeof we.options.clobberPrefix=="string"?we.options.clobberPrefix:"user-content-",Ze=we.options.footnoteBackContent||pl,rt=we.options.footnoteBackLabel||Es,xt=we.options.footnoteLabel||"Footnotes",wt=we.options.footnoteLabelTagName||"h2",Ft=we.options.footnoteLabelProperties||{className:["sr-only"]},Xt=[];let Un=-1;for(;++Un<we.footnoteOrder.length;){const Gn=we.footnoteById.get(we.footnoteOrder[Un]);if(!Gn)continue;const En=we.all(Gn),si=String(Gn.identifier).toUpperCase(),ni=Gs(si.toLowerCase());let An=0;const no=[],wo=we.footnoteCounts.get(si);for(;wo!==void 0&&++An<=wo;){no.length>0&&no.push({type:"text",value:" "});let oo=typeof Ze=="string"?Ze:Ze(Un,An);typeof oo=="string"&&(oo={type:"text",value:oo}),no.push({type:"element",tagName:"a",properties:{href:"#"+He+"fnref-"+ni+(An>1?"-"+An:""),dataFootnoteBackref:"",ariaLabel:typeof rt=="string"?rt:rt(Un,An),className:["data-footnote-backref"]},children:Array.isArray(oo)?oo:[oo]})}const Uo=En[En.length-1];if(Uo&&Uo.type==="element"&&Uo.tagName==="p"){const oo=Uo.children[Uo.children.length-1];oo&&oo.type==="text"?oo.value+=" ":Uo.children.push({type:"text",value:" "}),Uo.children.push(...no)}else En.push(...no);const Mr={type:"element",tagName:"li",properties:{id:He+"fn-"+ni},children:we.wrap(En,!0)};we.patch(Gn,Mr),Xt.push(Mr)}if(Xt.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:wt,properties:Pf(ta({},(0,Ds.ZP)(Ft)),{id:"footnote-label"}),children:[{type:"text",value:xt}]},{type:"text",value:`
|
|
|
`},{type:"element",tagName:"ol",properties:{},children:we.wrap(Xt,!0)},{type:"text",value:`
|
|
|
`}]}}var Fs=ue(10528);function Bl(we,He){const Ze={type:"element",tagName:"blockquote",properties:{},children:we.wrap(we.all(He),!0)};return we.patch(He,Ze),we.applyData(He,Ze)}function oc(we,He){const Ze={type:"element",tagName:"br",properties:{},children:[]};return we.patch(He,Ze),[we.applyData(He,Ze),{type:"text",value:`
|
|
|
`}]}function Uu(we,He){const Ze=He.value?He.value+`
|
|
|
`:"",rt={};He.lang&&(rt.className=["language-"+He.lang]);let xt={type:"element",tagName:"code",properties:rt,children:[{type:"text",value:Ze}]};return He.meta&&(xt.data={meta:He.meta}),we.patch(He,xt),xt=we.applyData(He,xt),xt={type:"element",tagName:"pre",properties:{},children:[xt]},we.patch(He,xt),xt}function Da(we,He){const Ze={type:"element",tagName:"del",properties:{},children:we.all(He)};return we.patch(He,Ze),we.applyData(He,Ze)}function zu(we,He){const Ze={type:"element",tagName:"em",properties:{},children:we.all(He)};return we.patch(He,Ze),we.applyData(He,Ze)}function ac(we,He){const Ze=typeof we.options.clobberPrefix=="string"?we.options.clobberPrefix:"user-content-",rt=String(He.identifier).toUpperCase(),xt=Gs(rt.toLowerCase()),wt=we.footnoteOrder.indexOf(rt);let Ft,Xt=we.footnoteCounts.get(rt);Xt===void 0?(Xt=0,we.footnoteOrder.push(rt),Ft=we.footnoteOrder.length):Ft=wt+1,Xt+=1,we.footnoteCounts.set(rt,Xt);const Un={type:"element",tagName:"a",properties:{href:"#"+Ze+"fn-"+xt,id:Ze+"fnref-"+xt+(Xt>1?"-"+Xt:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(Ft)}]};we.patch(He,Un);const Gn={type:"element",tagName:"sup",properties:{},children:[Un]};return we.patch(He,Gn),we.applyData(He,Gn)}function Cu(we,He){const Ze={type:"element",tagName:"h"+He.depth,properties:{},children:we.all(He)};return we.patch(He,Ze),we.applyData(He,Ze)}function Tu(we,He){if(we.options.allowDangerousHtml){const Ze={type:"raw",value:He.value};return we.patch(He,Ze),we.applyData(He,Ze)}}function ms(we,He){const Ze=He.referenceType;let rt="]";if(Ze==="collapsed"?rt+="[]":Ze==="full"&&(rt+="["+(He.label||He.identifier)+"]"),He.type==="imageReference")return[{type:"text",value:"!["+He.alt+rt}];const xt=we.all(He),wt=xt[0];wt&&wt.type==="text"?wt.value="["+wt.value:xt.unshift({type:"text",value:"["});const Ft=xt[xt.length-1];return Ft&&Ft.type==="text"?Ft.value+=rt:xt.push({type:"text",value:rt}),xt}function ws(we,He){const Ze=String(He.identifier).toUpperCase(),rt=we.definitionById.get(Ze);if(!rt)return ms(we,He);const xt={src:Gs(rt.url||""),alt:He.alt};rt.title!==null&&rt.title!==void 0&&(xt.title=rt.title);const wt={type:"element",tagName:"img",properties:xt,children:[]};return we.patch(He,wt),we.applyData(He,wt)}function Wa(we,He){const Ze={src:Gs(He.url)};He.alt!==null&&He.alt!==void 0&&(Ze.alt=He.alt),He.title!==null&&He.title!==void 0&&(Ze.title=He.title);const rt={type:"element",tagName:"img",properties:Ze,children:[]};return we.patch(He,rt),we.applyData(He,rt)}function Xa(we,He){const Ze={type:"text",value:He.value.replace(/\r?\n|\r/g," ")};we.patch(He,Ze);const rt={type:"element",tagName:"code",properties:{},children:[Ze]};return we.patch(He,rt),we.applyData(He,rt)}function ia(we,He){const Ze=String(He.identifier).toUpperCase(),rt=we.definitionById.get(Ze);if(!rt)return ms(we,He);const xt={href:Gs(rt.url||"")};rt.title!==null&&rt.title!==void 0&&(xt.title=rt.title);const wt={type:"element",tagName:"a",properties:xt,children:we.all(He)};return we.patch(He,wt),we.applyData(He,wt)}function Eo(we,He){const Ze={href:Gs(He.url)};He.title!==null&&He.title!==void 0&&(Ze.title=He.title);const rt={type:"element",tagName:"a",properties:Ze,children:we.all(He)};return we.patch(He,rt),we.applyData(He,rt)}function Fo(we,He,Ze){const rt=we.all(He),xt=Ze?Qa(Ze):La(He),wt={},Ft=[];if(typeof He.checked=="boolean"){const En=rt[0];let si;En&&En.type==="element"&&En.tagName==="p"?si=En:(si={type:"element",tagName:"p",properties:{},children:[]},rt.unshift(si)),si.children.length>0&&si.children.unshift({type:"text",value:" "}),si.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:He.checked,disabled:!0},children:[]}),wt.className=["task-list-item"]}let Xt=-1;for(;++Xt<rt.length;){const En=rt[Xt];(xt||Xt!==0||En.type!=="element"||En.tagName!=="p")&&Ft.push({type:"text",value:`
|
|
|
`}),En.type==="element"&&En.tagName==="p"&&!xt?Ft.push(...En.children):Ft.push(En)}const Un=rt[rt.length-1];Un&&(xt||Un.type!=="element"||Un.tagName!=="p")&&Ft.push({type:"text",value:`
|
|
|
`});const Gn={type:"element",tagName:"li",properties:wt,children:Ft};return we.patch(He,Gn),we.applyData(He,Gn)}function Qa(we){let He=!1;if(we.type==="list"){He=we.spread||!1;const Ze=we.children;let rt=-1;for(;!He&&++rt<Ze.length;)He=La(Ze[rt])}return He}function La(we){const He=we.spread;return He==null?we.children.length>1:He}function Fa(we,He){const Ze={},rt=we.all(He);let xt=-1;for(typeof He.start=="number"&&He.start!==1&&(Ze.start=He.start);++xt<rt.length;){const Ft=rt[xt];if(Ft.type==="element"&&Ft.tagName==="li"&&Ft.properties&&Array.isArray(Ft.properties.className)&&Ft.properties.className.includes("task-list-item")){Ze.className=["contains-task-list"];break}}const wt={type:"element",tagName:He.ordered?"ol":"ul",properties:Ze,children:we.wrap(rt,!0)};return we.patch(He,wt),we.applyData(He,wt)}function dr(we,He){const Ze={type:"element",tagName:"p",properties:{},children:we.all(He)};return we.patch(He,Ze),we.applyData(He,Ze)}function $s(we,He){const Ze={type:"root",children:we.wrap(we.all(He))};return we.patch(He,Ze),we.applyData(He,Ze)}function Bt(we,He){const Ze={type:"element",tagName:"strong",properties:{},children:we.all(He)};return we.patch(He,Ze),we.applyData(He,Ze)}function Jn(we,He){const Ze=we.all(He),rt=Ze.shift(),xt=[];if(rt){const Ft={type:"element",tagName:"thead",properties:{},children:we.wrap([rt],!0)};we.patch(He.children[0],Ft),xt.push(Ft)}if(Ze.length>0){const Ft={type:"element",tagName:"tbody",properties:{},children:we.wrap(Ze,!0)},Xt=(0,be.Pk)(He.children[1]),Un=(0,be.rb)(He.children[He.children.length-1]);Xt&&Un&&(Ft.position={start:Xt,end:Un}),xt.push(Ft)}const wt={type:"element",tagName:"table",properties:{},children:we.wrap(xt,!0)};return we.patch(He,wt),we.applyData(He,wt)}function Ql(we,He,Ze){const rt=Ze?Ze.children:void 0,wt=(rt?rt.indexOf(He):1)===0?"th":"td",Ft=Ze&&Ze.type==="table"?Ze.align:void 0,Xt=Ft?Ft.length:He.children.length;let Un=-1;const Gn=[];for(;++Un<Xt;){const si=He.children[Un],ni={},An=Ft?Ft[Un]:void 0;An&&(ni.align=An);let no={type:"element",tagName:wt,properties:ni,children:[]};si&&(no.children=we.all(si),we.patch(si,no),no=we.applyData(si,no)),Gn.push(no)}const En={type:"element",tagName:"tr",properties:{},children:we.wrap(Gn,!0)};return we.patch(He,En),we.applyData(He,En)}function Hu(we,He){const Ze={type:"element",tagName:"td",properties:{},children:we.all(He)};return we.patch(He,Ze),we.applyData(He,Ze)}const Va=9,Ws=32;function uu(we){const He=String(we),Ze=/\r?\n|\r/g;let rt=Ze.exec(He),xt=0;const wt=[];for(;rt;)wt.push(Au(He.slice(xt,rt.index),xt>0,!0),rt[0]),xt=rt.index+rt[0].length,rt=Ze.exec(He);return wt.push(Au(He.slice(xt),xt>0,!1)),wt.join("")}function Au(we,He,Ze){let rt=0,xt=we.length;if(He){let wt=we.codePointAt(rt);for(;wt===Va||wt===Ws;)rt++,wt=we.codePointAt(rt)}if(Ze){let wt=we.codePointAt(xt-1);for(;wt===Va||wt===Ws;)xt--,wt=we.codePointAt(xt-1)}return xt>rt?we.slice(rt,xt):""}function ju(we,He){const Ze={type:"text",value:uu(String(He.value))};return we.patch(He,Ze),we.applyData(He,Ze)}function ba(we,He){const Ze={type:"element",tagName:"hr",properties:{},children:[]};return we.patch(He,Ze),we.applyData(He,Ze)}const $r={blockquote:Bl,break:oc,code:Uu,delete:Da,emphasis:zu,footnoteReference:ac,heading:Cu,html:Tu,imageReference:ws,image:Wa,inlineCode:Xa,linkReference:ia,link:Eo,listItem:Fo,list:Fa,paragraph:dr,root:$s,strong:Bt,table:Jn,tableCell:Hu,tableRow:Ql,text:ju,thematicBreak:ba,toml:cs,yaml:cs,definition:cs,footnoteDefinition:cs};function cs(){}const Ms={}.hasOwnProperty,Xo={};function No(we,He){const Ze=He||Xo,rt=new Map,xt=new Map,wt=new Map,Ft=ta(ta({},$r),Ze.handlers),Xt={all:Gn,applyData:Bs,definitionById:rt,footnoteById:xt,footnoteCounts:wt,footnoteOrder:[],handlers:Ft,one:Un,options:Ze,patch:Ca,wrap:Vs};return(0,Fs.Vn)(we,function(En){if(En.type==="definition"||En.type==="footnoteDefinition"){const si=En.type==="definition"?rt:xt,ni=String(En.identifier).toUpperCase();si.has(ni)||si.set(ni,En)}}),Xt;function Un(En,si){const ni=En.type,An=Xt.handlers[ni];if(Ms.call(Xt.handlers,ni)&&An)return An(Xt,En,si);if(Xt.options.passThrough&&Xt.options.passThrough.includes(ni)){if("children"in En){const wo=En,{children:Uo}=wo,Mr=Cx(wo,["children"]),oo=(0,Ds.ZP)(Mr);return oo.children=Xt.all(En),oo}return(0,Ds.ZP)(En)}return(Xt.options.unknownHandler||ma)(Xt,En,si)}function Gn(En){const si=[];if("children"in En){const ni=En.children;let An=-1;for(;++An<ni.length;){const no=Xt.one(ni[An],En);if(no){if(An&&ni[An-1].type==="break"&&(!Array.isArray(no)&&no.type==="text"&&(no.value=es(no.value)),!Array.isArray(no)&&no.type==="element")){const wo=no.children[0];wo&&wo.type==="text"&&(wo.value=es(wo.value))}Array.isArray(no)?si.push(...no):si.push(no)}}}return si}}function Ca(we,He){we.position&&(He.position=(0,be.FK)(we))}function Bs(we,He){let Ze=He;if(we&&we.data){const rt=we.data.hName,xt=we.data.hChildren,wt=we.data.hProperties;if(typeof rt=="string")if(Ze.type==="element")Ze.tagName=rt;else{const Ft="children"in Ze?Ze.children:[Ze];Ze={type:"element",tagName:rt,properties:{},children:Ft}}Ze.type==="element"&&wt&&Object.assign(Ze.properties,(0,Ds.ZP)(wt)),"children"in Ze&&Ze.children&&xt!==null&&xt!==void 0&&(Ze.children=xt)}return Ze}function ma(we,He){const Ze=He.data||{},rt="value"in He&&!(Ms.call(Ze,"hProperties")||Ms.call(Ze,"hChildren"))?{type:"text",value:He.value}:{type:"element",tagName:"div",properties:{},children:we.all(He)};return we.patch(He,rt),we.applyData(He,rt)}function Vs(we,He){const Ze=[];let rt=-1;for(He&&Ze.push({type:"text",value:`
|
|
|
`});++rt<we.length;)rt&&Ze.push({type:"text",value:`
|
|
|
`}),Ze.push(we[rt]);return He&&we.length>0&&Ze.push({type:"text",value:`
|
|
|
`}),Ze}function es(we){let He=0,Ze=we.charCodeAt(He);for(;Ze===9||Ze===32;)He++,Ze=we.charCodeAt(He);return we.slice(He)}function cu(we,He){const Ze=No(we,He),rt=Ze.one(we,void 0),xt=As(Ze),wt=Array.isArray(rt)?{type:"root",children:rt}:rt||{type:"root",children:[]};return xt&&((0,Pe.ok)("children"in wt),wt.children.push({type:"text",value:`
|
|
|
`},xt)),wt}function qo(we,He){return we&&"run"in we?function(Ze,rt){return Jy(this,null,function*(){const xt=cu(Ze,ta({file:rt},He));yield we.run(xt,rt)})}:function(Ze,rt){return cu(Ze,ta({file:rt},we||He))}}function ds(we){if(we)throw we}var Wo=ue(58847);function la(we){if(typeof we!="object"||we===null)return!1;const He=Object.getPrototypeOf(we);return(He===null||He===Object.prototype||Object.getPrototypeOf(He)===null)&&!(Symbol.toStringTag in we)&&!(Symbol.iterator in we)}function ga(){const we=[],He={run:Ze,use:rt};return He;function Ze(...xt){let wt=-1;const Ft=xt.pop();if(typeof Ft!="function")throw new TypeError("Expected function as last argument, not "+Ft);Xt(null,...xt);function Xt(Un,...Gn){const En=we[++wt];let si=-1;if(Un){Ft(Un);return}for(;++si<xt.length;)(Gn[si]===null||Gn[si]===void 0)&&(Gn[si]=xt[si]);xt=Gn,En?Ea(En,Xt)(...Gn):Ft(null,...Gn)}}function rt(xt){if(typeof xt!="function")throw new TypeError("Expected `middelware` to be a function, not "+xt);return we.push(xt),He}}function Ea(we,He){let Ze;return rt;function rt(...Ft){const Xt=we.length>Ft.length;let Un;Xt&&Ft.push(xt);try{Un=we.apply(this,Ft)}catch(Gn){const En=Gn;if(Xt&&Ze)throw En;return xt(En)}Xt||(Un&&Un.then&&typeof Un.then=="function"?Un.then(wt,xt):Un instanceof Error?xt(Un):wt(Un))}function xt(Ft,...Xt){Ze||(Ze=!0,He(Ft,...Xt))}function wt(Ft){xt(null,Ft)}}const Bo={basename:Gu,dirname:Vr,extname:Qc,join:jo,sep:"/"};function Gu(we,He){if(He!==void 0&&typeof He!="string")throw new TypeError('"ext" argument must be a string');Jl(we);let Ze=0,rt=-1,xt=we.length,wt;if(He===void 0||He.length===0||He.length>we.length){for(;xt--;)if(we.codePointAt(xt)===47){if(wt){Ze=xt+1;break}}else rt<0&&(wt=!0,rt=xt+1);return rt<0?"":we.slice(Ze,rt)}if(He===we)return"";let Ft=-1,Xt=He.length-1;for(;xt--;)if(we.codePointAt(xt)===47){if(wt){Ze=xt+1;break}}else Ft<0&&(wt=!0,Ft=xt+1),Xt>-1&&(we.codePointAt(xt)===He.codePointAt(Xt--)?Xt<0&&(rt=xt):(Xt=-1,rt=Ft));return Ze===rt?rt=Ft:rt<0&&(rt=we.length),we.slice(Ze,rt)}function Vr(we){if(Jl(we),we.length===0)return".";let He=-1,Ze=we.length,rt;for(;--Ze;)if(we.codePointAt(Ze)===47){if(rt){He=Ze;break}}else rt||(rt=!0);return He<0?we.codePointAt(0)===47?"/":".":He===1&&we.codePointAt(0)===47?"//":we.slice(0,He)}function Qc(we){Jl(we);let He=we.length,Ze=-1,rt=0,xt=-1,wt=0,Ft;for(;He--;){const Xt=we.codePointAt(He);if(Xt===47){if(Ft){rt=He+1;break}continue}Ze<0&&(Ft=!0,Ze=He+1),Xt===46?xt<0?xt=He:wt!==1&&(wt=1):xt>-1&&(wt=-1)}return xt<0||Ze<0||wt===0||wt===1&&xt===Ze-1&&xt===rt+1?"":we.slice(xt,Ze)}function jo(...we){let He=-1,Ze;for(;++He<we.length;)Jl(we[He]),we[He]&&(Ze=Ze===void 0?we[He]:Ze+"/"+we[He]);return Ze===void 0?".":Lc(Ze)}function Lc(we){Jl(we);const He=we.codePointAt(0)===47;let Ze=Pu(we,!He);return Ze.length===0&&!He&&(Ze="."),Ze.length>0&&we.codePointAt(we.length-1)===47&&(Ze+="/"),He?"/"+Ze:Ze}function Pu(we,He){let Ze="",rt=0,xt=-1,wt=0,Ft=-1,Xt,Un;for(;++Ft<=we.length;){if(Ft<we.length)Xt=we.codePointAt(Ft);else{if(Xt===47)break;Xt=47}if(Xt===47){if(!(xt===Ft-1||wt===1))if(xt!==Ft-1&&wt===2){if(Ze.length<2||rt!==2||Ze.codePointAt(Ze.length-1)!==46||Ze.codePointAt(Ze.length-2)!==46){if(Ze.length>2){if(Un=Ze.lastIndexOf("/"),Un!==Ze.length-1){Un<0?(Ze="",rt=0):(Ze=Ze.slice(0,Un),rt=Ze.length-1-Ze.lastIndexOf("/")),xt=Ft,wt=0;continue}}else if(Ze.length>0){Ze="",rt=0,xt=Ft,wt=0;continue}}He&&(Ze=Ze.length>0?Ze+"/..":"..",rt=2)}else Ze.length>0?Ze+="/"+we.slice(xt+1,Ft):Ze=we.slice(xt+1,Ft),rt=Ft-xt-1;xt=Ft,wt=0}else Xt===46&&wt>-1?wt++:wt=-1}return Ze}function Jl(we){if(typeof we!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(we))}const Ic={cwd:xc};function xc(){return"/"}function Pl(we){return!!(we!==null&&typeof we=="object"&&"href"in we&&we.href&&"protocol"in we&&we.protocol&&we.auth===void 0)}function Nl(we){if(typeof we=="string")we=new URL(we);else if(!Pl(we)){const He=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+we+"`");throw He.code="ERR_INVALID_ARG_TYPE",He}if(we.protocol!=="file:"){const He=new TypeError("The URL must be of scheme file");throw He.code="ERR_INVALID_URL_SCHEME",He}return Vo(we)}function Vo(we){if(we.hostname!==""){const rt=new TypeError('File URL host must be "localhost" or empty on darwin');throw rt.code="ERR_INVALID_FILE_URL_HOST",rt}const He=we.pathname;let Ze=-1;for(;++Ze<He.length;)if(He.codePointAt(Ze)===37&&He.codePointAt(Ze+1)===50){const rt=He.codePointAt(Ze+2);if(rt===70||rt===102){const xt=new TypeError("File URL path must not include encoded / characters");throw xt.code="ERR_INVALID_FILE_URL_PATH",xt}}return decodeURIComponent(He)}const Ps=["history","path","basename","stem","extname","dirname"];class Wu{constructor(He){let Ze;He?Pl(He)?Ze={path:He}:typeof He=="string"||_o(He)?Ze={value:He}:Ze=He:Ze={},this.cwd="cwd"in Ze?"":Ic.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let rt=-1;for(;++rt<Ps.length;){const wt=Ps[rt];wt in Ze&&Ze[wt]!==void 0&&Ze[wt]!==null&&(this[wt]=wt==="history"?[...Ze[wt]]:Ze[wt])}let xt;for(xt in Ze)Ps.includes(xt)||(this[xt]=Ze[xt])}get basename(){return typeof this.path=="string"?Bo.basename(this.path):void 0}set basename(He){ql(He,"basename"),kl(He,"basename"),this.path=Bo.join(this.dirname||"",He)}get dirname(){return typeof this.path=="string"?Bo.dirname(this.path):void 0}set dirname(He){_l(this.basename,"dirname"),this.path=Bo.join(He||"",this.basename)}get extname(){return typeof this.path=="string"?Bo.extname(this.path):void 0}set extname(He){if(kl(He,"extname"),_l(this.dirname,"extname"),He){if(He.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(He.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Bo.join(this.dirname,this.stem+(He||""))}get path(){return this.history[this.history.length-1]}set path(He){Pl(He)&&(He=Nl(He)),ql(He,"path"),this.path!==He&&this.history.push(He)}get stem(){return typeof this.path=="string"?Bo.basename(this.path,this.extname):void 0}set stem(He){ql(He,"stem"),kl(He,"stem"),this.path=Bo.join(this.dirname||"",He+(this.extname||""))}fail(He,Ze,rt){const xt=this.message(He,Ze,rt);throw xt.fatal=!0,xt}info(He,Ze,rt){const xt=this.message(He,Ze,rt);return xt.fatal=void 0,xt}message(He,Ze,rt){const xt=new qe(He,Ze,rt);return this.path&&(xt.name=this.path+":"+xt.name,xt.file=this.path),xt.fatal=!1,this.messages.push(xt),xt}toString(He){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(He||void 0).decode(this.value)}}function kl(we,He){if(we&&we.includes(Bo.sep))throw new Error("`"+He+"` cannot be a path: did not expect `"+Bo.sep+"`")}function ql(we,He){if(!we)throw new Error("`"+He+"` cannot be empty")}function _l(we,He){if(!we)throw new Error("Setting `"+He+"` requires `path` to be set too")}function _o(we){return!!(we&&typeof we=="object"&&"byteLength"in we&&"byteOffset"in we)}const $o=function(we){const rt=this.constructor.prototype,xt=rt[we],wt=function(){return xt.apply(wt,arguments)};return Object.setPrototypeOf(wt,rt),wt},Ta={}.hasOwnProperty;class hs extends $o{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=ga()}copy(){const He=new hs;let Ze=-1;for(;++Ze<this.attachers.length;){const rt=this.attachers[Ze];He.use(...rt)}return He.data(Wo(!0,{},this.namespace)),He}data(He,Ze){return typeof He=="string"?arguments.length===2?(yl("data",this.frozen),this.namespace[He]=Ze,this):Ta.call(this.namespace,He)&&this.namespace[He]||void 0:He?(yl("data",this.frozen),this.namespace=He,this):this.namespace}freeze(){if(this.frozen)return this;const He=this;for(;++this.freezeIndex<this.attachers.length;){const[Ze,...rt]=this.attachers[this.freezeIndex];if(rt[0]===!1)continue;rt[0]===!0&&(rt[0]=void 0);const xt=Ze.call(He,...rt);typeof xt=="function"&&this.transformers.use(xt)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(He){this.freeze();const Ze=dd(He),rt=this.parser||this.Parser;return ml("parse",rt),rt(String(Ze),Ze)}process(He,Ze){const rt=this;return this.freeze(),ml("process",this.parser||this.Parser),vl("process",this.compiler||this.Compiler),Ze?xt(void 0,Ze):new Promise(xt);function xt(wt,Ft){const Xt=dd(He),Un=rt.parse(Xt);rt.run(Un,Xt,function(En,si,ni){if(En||!si||!ni)return Gn(En);const An=si,no=rt.stringify(An,ni);vh(no)?ni.value=no:ni.result=no,Gn(En,ni)});function Gn(En,si){En||!si?Ft(En):wt?wt(si):((0,Pe.ok)(Ze,"`done` is defined if `resolve` is not"),Ze(void 0,si))}}}processSync(He){let Ze=!1,rt;return this.freeze(),ml("processSync",this.parser||this.Parser),vl("processSync",this.compiler||this.Compiler),this.process(He,xt),Ul("processSync","process",Ze),(0,Pe.ok)(rt,"we either bailed on an error or have a tree"),rt;function xt(wt,Ft){Ze=!0,ds(wt),rt=Ft}}run(He,Ze,rt){el(He),this.freeze();const xt=this.transformers;return!rt&&typeof Ze=="function"&&(rt=Ze,Ze=void 0),rt?wt(void 0,rt):new Promise(wt);function wt(Ft,Xt){(0,Pe.ok)(typeof Ze!="function","`file` can\u2019t be a `done` anymore, we checked");const Un=dd(Ze);xt.run(He,Un,Gn);function Gn(En,si,ni){const An=si||He;En?Xt(En):Ft?Ft(An):((0,Pe.ok)(rt,"`done` is defined if `resolve` is not"),rt(void 0,An,ni))}}}runSync(He,Ze){let rt=!1,xt;return this.run(He,Ze,wt),Ul("runSync","run",rt),(0,Pe.ok)(xt,"we either bailed on an error or have a tree"),xt;function wt(Ft,Xt){ds(Ft),xt=Xt,rt=!0}}stringify(He,Ze){this.freeze();const rt=dd(Ze),xt=this.compiler||this.Compiler;return vl("stringify",xt),el(He),xt(He,rt)}use(He,...Ze){const rt=this.attachers,xt=this.namespace;if(yl("use",this.frozen),He!=null)if(typeof He=="function")Un(He,Ze);else if(typeof He=="object")Array.isArray(He)?Xt(He):Ft(He);else throw new TypeError("Expected usable value, not `"+He+"`");return this;function wt(Gn){if(typeof Gn=="function")Un(Gn,[]);else if(typeof Gn=="object")if(Array.isArray(Gn)){const[En,...si]=Gn;Un(En,si)}else Ft(Gn);else throw new TypeError("Expected usable value, not `"+Gn+"`")}function Ft(Gn){if(!("plugins"in Gn)&&!("settings"in Gn))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");Xt(Gn.plugins),Gn.settings&&(xt.settings=Wo(!0,xt.settings,Gn.settings))}function Xt(Gn){let En=-1;if(Gn!=null)if(Array.isArray(Gn))for(;++En<Gn.length;){const si=Gn[En];wt(si)}else throw new TypeError("Expected a list of plugins, not `"+Gn+"`")}function Un(Gn,En){let si=-1,ni=-1;for(;++si<rt.length;)if(rt[si][0]===Gn){ni=si;break}if(ni===-1)rt.push([Gn,...En]);else if(En.length>0){let[An,...no]=En;const wo=rt[ni][1];la(wo)&&la(An)&&(An=Wo(!0,wo,An)),rt[ni]=[Gn,An,...no]}}}}const ts=new hs().freeze();function ml(we,He){if(typeof He!="function")throw new TypeError("Cannot `"+we+"` without `parser`")}function vl(we,He){if(typeof He!="function")throw new TypeError("Cannot `"+we+"` without `compiler`")}function yl(we,He){if(He)throw new Error("Cannot call `"+we+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function el(we){if(!la(we)||typeof we.type!="string")throw new TypeError("Expected node, got `"+we+"`")}function Ul(we,He,Ze){if(!Ze)throw new Error("`"+we+"` finished async. Use `"+He+"` instead")}function dd(we){return mh(we)?we:new Wu(we)}function mh(we){return!!(we&&typeof we=="object"&&"message"in we&&"messages"in we)}function vh(we){return typeof we=="string"||yh(we)}function yh(we){return!!(we&&typeof we=="object"&&"byteLength"in we&&"byteOffset"in we)}const Ja="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Vu=[],da={allowDangerousHtml:!0},vs=/^(https?|ircs?|mailto|xmpp)$/i,Ns=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function Cs(we){const He=Yu(we),Ze=hd(we);return fd(He.runSync(He.parse(Ze),Ze),we)}function sc(we){return Jy(this,null,function*(){const He=Yu(we),Ze=hd(we),rt=yield He.run(He.parse(Ze),Ze);return fd(rt,we)})}function Rs(we){const He=Yu(we),[Ze,rt]=useState(void 0),[xt,wt]=useState(void 0);if(useEffect(function(){const Ft=hd(we);He.run(He.parse(Ft),Ft,function(Xt,Un){rt(Xt),wt(Un)})},[we.children,we.rehypePlugins,we.remarkPlugins,we.remarkRehypeOptions]),Ze)throw Ze;return xt?fd(xt,we):createElement(Fragment)}function Yu(we){const He=we.rehypePlugins||Vu,Ze=we.remarkPlugins||Vu,rt=we.remarkRehypeOptions?ta(ta({},we.remarkRehypeOptions),da):da;return ts().use(bs).use(Ze).use(qo,rt).use(He)}function hd(we){const He=we.children||"",Ze=new Wu;return typeof He=="string"?Ze.value=He:(0,Pe.t1)("Unexpected value `"+He+"` for `children` prop, expected `string`"),Ze}function fd(we,He){const Ze=He.allowedElements,rt=He.allowElement,xt=He.components,wt=He.disallowedElements,Ft=He.skipHtml,Xt=He.unwrapDisallowed,Un=He.urlTransform||tl;for(const En of Ns)Object.hasOwn(He,En.from)&&(0,Pe.t1)("Unexpected `"+En.from+"` prop, "+(En.to?"use `"+En.to+"` instead":"remove it")+" (see <"+Ja+"#"+En.id+"> for more info)");return Ze&&wt&&(0,Pe.t1)("Unexpected combined `allowedElements` and `disallowedElements`, expected one or the other"),He.className&&(we={type:"element",tagName:"div",properties:{className:He.className},children:we.type==="root"?we.children:[we]}),(0,Fs.Vn)(we,Gn),ln(we,{Fragment:Ue.Fragment,components:xt,ignoreInvalidStyle:!0,jsx:Ue.jsx,jsxs:Ue.jsxs,passKeys:!0,passNode:!0});function Gn(En,si,ni){if(En.type==="raw"&&ni&&typeof si=="number")return Ft?ni.children.splice(si,1):ni.children[si]={type:"text",value:En.value},si;if(En.type==="element"){let An;for(An in ut)if(Object.hasOwn(ut,An)&&Object.hasOwn(En.properties,An)){const no=En.properties[An],wo=ut[An];(wo===null||wo.includes(En.tagName))&&(En.properties[An]=Un(String(no||""),An,En))}}if(En.type==="element"){let An=Ze?!Ze.includes(En.tagName):wt?wt.includes(En.tagName):!1;if(!An&&rt&&typeof si=="number"&&(An=!rt(En,si,ni)),An&&ni&&typeof si=="number")return Xt&&En.children?ni.children.splice(si,1,...En.children):ni.children.splice(si,1),si}}}function tl(we){const He=we.indexOf(":"),Ze=we.indexOf("?"),rt=we.indexOf("#"),xt=we.indexOf("/");return He===-1||xt!==-1&&He>xt||Ze!==-1&&He>Ze||rt!==-1&&He>rt||vs.test(we.slice(0,He))?we:""}},93772:function(ze,Ee,ue){"use strict";ue.d(Ee,{Z:function(){return zd}});var ce={};ue.r(ce),ue.d(ce,{boolean:function(){return qe},booleanish:function(){return nt},commaOrSpaceSeparated:function(){return Ht},commaSeparated:function(){return It},number:function(){return it},overloadedBoolean:function(){return dt},spaceSeparated:function(){return bt}});var Pe=ue(90302),Re=ue(87342),Me=ue(81994),We=ue(58222),Te=ue(84837);function Ge(le){const pe=String(le),Ke=[];return{toOffset:Hn,toPoint:Dt};function Dt(Ii){if(typeof Ii=="number"&&Ii>-1&&Ii<=pe.length){let $i=0;for(;;){let so=Ke[$i];if(so===void 0){const Lo=st(pe,Ke[$i-1]);so=Lo===-1?pe.length+1:Lo+1,Ke[$i]=so}if(so>Ii)return{line:$i+1,column:Ii-($i>0?Ke[$i-1]:0)+1,offset:Ii};$i++}}}function Hn(Ii){if(Ii&&typeof Ii.line=="number"&&typeof Ii.column=="number"&&!Number.isNaN(Ii.line)&&!Number.isNaN(Ii.column)){for(;Ke.length<Ii.line;){const so=Ke[Ke.length-1],Lo=st(pe,so),Ti=Lo===-1?pe.length+1:Lo+1;if(so===Ti)break;Ke.push(Ti)}const $i=(Ii.line>1?Ke[Ii.line-2]:0)+Ii.column-1;if($i<Ke[Ii.line-1])return $i}}}function st(le,pe){const Ke=le.indexOf("\r",pe),Dt=le.indexOf(`
|
|
|
`,pe);return Dt===-1?Ke:Ke===-1||Ke+1===Dt?Dt:Ke<Dt?Ke:Dt}var Qe=ue(43309);const Ye={}.hasOwnProperty,yt=Object.prototype;function ot(le,pe){const Ke=pe||{};return Nt({file:Ke.file||void 0,location:!1,schema:Ke.space==="svg"?We.YP:We.dy,verbose:Ke.verbose||!1},le)}function Nt(le,pe){let Ke;switch(pe.nodeName){case"#comment":{const Dt=pe;return Ke={type:"comment",value:Dt.data},te(le,Dt,Ke),Ke}case"#document":case"#document-fragment":{const Dt=pe,Hn="mode"in Dt?Dt.mode==="quirks"||Dt.mode==="limited-quirks":!1;if(Ke={type:"root",children:Fe(le,pe.childNodes),data:{quirksMode:Hn}},le.file&&le.location){const Ii=String(le.file),$i=Ge(Ii),so=$i.toPoint(0),Lo=$i.toPoint(Ii.length);(0,Re.ok)(so,"expected `start`"),(0,Re.ok)(Lo,"expected `end`"),Ke.position={start:so,end:Lo}}return Ke}case"#documentType":{const Dt=pe;return Ke={type:"doctype"},te(le,Dt,Ke),Ke}case"#text":{const Dt=pe;return Ke={type:"text",value:Dt.value},te(le,Dt,Ke),Ke}default:return Ke=ne(le,pe),Ke}}function Fe(le,pe){let Ke=-1;const Dt=[];for(;++Ke<pe.length;){const Hn=Nt(le,pe[Ke]);Dt.push(Hn)}return Dt}function ne(le,pe){const Ke=le.schema;le.schema=pe.namespaceURI===Qe.t.svg?We.YP:We.dy;let Dt=-1;const Hn={};for(;++Dt<pe.attrs.length;){const so=pe.attrs[Dt],Lo=(so.prefix?so.prefix+":":"")+so.name;Ye.call(yt,Lo)||(Hn[Lo]=so.value)}const $i=(le.schema.space==="svg"?Me.s:Me.h)(pe.tagName,Hn,Fe(le,pe.childNodes));if(te(le,pe,$i),$i.tagName==="template"){const so=pe,Lo=so.sourceCodeLocation,Ti=Lo&&Lo.startTag&&se(Lo.startTag),Ar=Lo&&Lo.endTag&&se(Lo.endTag),zo=Nt(le,so.content);Ti&&Ar&&le.file&&(zo.position={start:Ti.end,end:Ar.start}),$i.content=zo}return le.schema=Ke,$i}function te(le,pe,Ke){if("sourceCodeLocation"in pe&&pe.sourceCodeLocation&&le.file){const Dt=he(le,Ke,pe.sourceCodeLocation);Dt&&(le.location=!0,Ke.position=Dt)}}function he(le,pe,Ke){const Dt=se(Ke);if(pe.type==="element"){const Hn=pe.children[pe.children.length-1];if(Dt&&!Ke.endTag&&Hn&&Hn.position&&Hn.position.end&&(Dt.end=Object.assign({},Hn.position.end)),le.verbose){const Ii={};let $i;if(Ke.attrs)for($i in Ke.attrs)Ye.call(Ke.attrs,$i)&&(Ii[(0,Te.s)(le.schema,$i).property]=se(Ke.attrs[$i]));(0,Re.ok)(Ke.startTag,"a start tag should exist");const so=se(Ke.startTag),Lo=Ke.endTag?se(Ke.endTag):void 0,Ti={opening:so};Lo&&(Ti.closing=Lo),Ti.properties=Ii,pe.data={position:Ti}}}return Dt}function se(le){const pe=ge({line:le.startLine,column:le.startCol,offset:le.startOffset}),Ke=ge({line:le.endLine,column:le.endCol,offset:le.endOffset});return pe||Ke?{start:pe,end:Ke}:void 0}function ge(le){return le.line&&le.column?le:void 0}var Se=ue(11630);class be{constructor(pe,Ke,Dt){this.property=pe,this.normal=Ke,Dt&&(this.space=Dt)}}be.prototype.property={},be.prototype.normal={},be.prototype.space=null;function Ae(le,pe){const Ke={},Dt={};let Hn=-1;for(;++Hn<le.length;)Object.assign(Ke,le[Hn].property),Object.assign(Dt,le[Hn].normal);return new be(Ke,Dt,pe)}function Le(le){return le.toLowerCase()}class je{constructor(pe,Ke){this.property=pe,this.attribute=Ke}}je.prototype.space=null,je.prototype.boolean=!1,je.prototype.booleanish=!1,je.prototype.overloadedBoolean=!1,je.prototype.number=!1,je.prototype.commaSeparated=!1,je.prototype.spaceSeparated=!1,je.prototype.commaOrSpaceSeparated=!1,je.prototype.mustUseProperty=!1,je.prototype.defined=!1;let $e=0;const qe=ln(),nt=ln(),dt=ln(),it=ln(),bt=ln(),It=ln(),Ht=ln();function ln(){return Qy(2,++$e)}const un=Object.keys(ce);class Qt extends je{constructor(pe,Ke,Dt,Hn){let Ii=-1;if(super(pe,Ke),nn(this,"space",Hn),typeof Dt=="number")for(;++Ii<un.length;){const $i=un[Ii];nn(this,un[Ii],(Dt&ce[$i])===ce[$i])}}}Qt.prototype.defined=!0;function nn(le,pe,Ke){Ke&&(le[pe]=Ke)}const At={}.hasOwnProperty;function ct(le){const pe={},Ke={};let Dt;for(Dt in le.properties)if(At.call(le.properties,Dt)){const Hn=le.properties[Dt],Ii=new Qt(Dt,le.transform(le.attributes||{},Dt),Hn,le.space);le.mustUseProperty&&le.mustUseProperty.includes(Dt)&&(Ii.mustUseProperty=!0),pe[Dt]=Ii,Ke[Le(Dt)]=Dt,Ke[Le(Ii.attribute)]=Dt}return new be(pe,Ke,le.space)}const at=ct({space:"xlink",transform(le,pe){return"xlink:"+pe.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),rn=ct({space:"xml",transform(le,pe){return"xml:"+pe.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function hn(le,pe){return pe in le?le[pe]:pe}function Pt(le,pe){return hn(le,pe.toLowerCase())}const pn=ct({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:Pt,properties:{xmlns:null,xmlnsXLink:null}}),dn=ct({transform(le,pe){return pe==="role"?pe:"aria-"+pe.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:nt,ariaAutoComplete:null,ariaBusy:nt,ariaChecked:nt,ariaColCount:it,ariaColIndex:it,ariaColSpan:it,ariaControls:bt,ariaCurrent:null,ariaDescribedBy:bt,ariaDetails:null,ariaDisabled:nt,ariaDropEffect:bt,ariaErrorMessage:null,ariaExpanded:nt,ariaFlowTo:bt,ariaGrabbed:nt,ariaHasPopup:null,ariaHidden:nt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:bt,ariaLevel:it,ariaLive:null,ariaModal:nt,ariaMultiLine:nt,ariaMultiSelectable:nt,ariaOrientation:null,ariaOwns:bt,ariaPlaceholder:null,ariaPosInSet:it,ariaPressed:nt,ariaReadOnly:nt,ariaRelevant:null,ariaRequired:nt,ariaRoleDescription:bt,ariaRowCount:it,ariaRowIndex:it,ariaRowSpan:it,ariaSelected:nt,ariaSetSize:it,ariaSort:null,ariaValueMax:it,ariaValueMin:it,ariaValueNow:it,ariaValueText:null,role:null}}),_n=ct({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:Pt,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:It,acceptCharset:bt,accessKey:bt,action:null,allow:null,allowFullScreen:qe,allowPaymentRequest:qe,allowUserMedia:qe,alt:null,as:null,async:qe,autoCapitalize:null,autoComplete:bt,autoFocus:qe,autoPlay:qe,blocking:bt,capture:null,charSet:null,checked:qe,cite:null,className:bt,cols:it,colSpan:null,content:null,contentEditable:nt,controls:qe,controlsList:bt,coords:it|It,crossOrigin:null,data:null,dateTime:null,decoding:null,default:qe,defer:qe,dir:null,dirName:null,disabled:qe,download:dt,draggable:nt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:qe,formTarget:null,headers:bt,height:it,hidden:qe,high:it,href:null,hrefLang:null,htmlFor:bt,httpEquiv:bt,id:null,imageSizes:null,imageSrcSet:null,inert:qe,inputMode:null,integrity:null,is:null,isMap:qe,itemId:null,itemProp:bt,itemRef:bt,itemScope:qe,itemType:bt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:qe,low:it,manifest:null,max:null,maxLength:it,media:null,method:null,min:null,minLength:it,multiple:qe,muted:qe,name:null,nonce:null,noModule:qe,noValidate:qe,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:qe,optimum:it,pattern:null,ping:bt,placeholder:null,playsInline:qe,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:qe,referrerPolicy:null,rel:bt,required:qe,reversed:qe,rows:it,rowSpan:it,sandbox:bt,scope:null,scoped:qe,seamless:qe,selected:qe,shadowRootClonable:qe,shadowRootDelegatesFocus:qe,shadowRootMode:null,shape:null,size:it,sizes:null,slot:null,span:it,spellCheck:nt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:it,step:null,style:null,tabIndex:it,target:null,title:null,translate:null,type:null,typeMustMatch:qe,useMap:null,value:nt,width:it,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:bt,axis:null,background:null,bgColor:null,border:it,borderColor:null,bottomMargin:it,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:qe,declare:qe,event:null,face:null,frame:null,frameBorder:null,hSpace:it,leftMargin:it,link:null,longDesc:null,lowSrc:null,marginHeight:it,marginWidth:it,noResize:qe,noHref:qe,noShade:qe,noWrap:qe,object:null,profile:null,prompt:null,rev:null,rightMargin:it,rules:null,scheme:null,scrolling:nt,standby:null,summary:null,text:null,topMargin:it,valueType:null,version:null,vAlign:null,vLink:null,vSpace:it,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:qe,disableRemotePlayback:qe,prefix:null,property:null,results:it,security:null,unselectable:null}}),Yt=ct({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:hn,properties:{about:Ht,accentHeight:it,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:it,amplitude:it,arabicForm:null,ascent:it,attributeName:null,attributeType:null,azimuth:it,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:it,by:null,calcMode:null,capHeight:it,className:bt,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:it,diffuseConstant:it,direction:null,display:null,dur:null,divisor:it,dominantBaseline:null,download:qe,dx:null,dy:null,edgeMode:null,editable:null,elevation:it,enableBackground:null,end:null,event:null,exponent:it,externalResourcesRequired:null,fill:null,fillOpacity:it,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:It,g2:It,glyphName:It,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:it,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:it,horizOriginX:it,horizOriginY:it,id:null,ideographic:it,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:it,k:it,k1:it,k2:it,k3:it,k4:it,kernelMatrix:Ht,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:it,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:it,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:it,overlineThickness:it,paintOrder:null,panose1:null,path:null,pathLength:it,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:bt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:it,pointsAtY:it,pointsAtZ:it,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Ht,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Ht,rev:Ht,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Ht,requiredFeatures:Ht,requiredFonts:Ht,requiredFormats:Ht,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:it,specularExponent:it,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:it,strikethroughThickness:it,string:null,stroke:null,strokeDashArray:Ht,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:it,strokeOpacity:it,strokeWidth:null,style:null,surfaceScale:it,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Ht,tabIndex:it,tableValues:null,target:null,targetX:it,targetY:it,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Ht,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:it,underlineThickness:it,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:it,values:null,vAlphabetic:it,vMathematical:it,vectorEffect:null,vHanging:it,vIdeographic:it,version:null,vertAdvY:it,vertOriginX:it,vertOriginY:it,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:it,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),On=Ae([rn,at,pn,dn,_n],"html"),kt=Ae([rn,at,pn,dn,Yt],"svg"),jn=/^data[-\w.:]+$/i,ai=/-[a-z]/g,et=/[A-Z]/g;function De(le,pe){const Ke=Le(pe);let Dt=pe,Hn=je;if(Ke in le.normal)return le.property[le.normal[Ke]];if(Ke.length>4&&Ke.slice(0,4)==="data"&&jn.test(pe)){if(pe.charAt(4)==="-"){const Ii=pe.slice(5).replace(ai,Xe);Dt="data"+Ii.charAt(0).toUpperCase()+Ii.slice(1)}else{const Ii=pe.slice(4);if(!ai.test(Ii)){let $i=Ii.replace(et,ke);$i.charAt(0)!=="-"&&($i="-"+$i),pe="data"+$i}}Hn=Qt}return new Hn(Dt,pe)}function ke(le){return"-"+le.toLowerCase()}function Xe(le){return le.charAt(1).toUpperCase()}var ut=ue(71523);const Ue={}.hasOwnProperty;function gt(le,pe){const Ke=pe||{};function Dt(Hn,...Ii){let $i=Dt.invalid;const so=Dt.handlers;if(Hn&&Ue.call(Hn,le)){const Lo=String(Hn[le]);$i=Ue.call(so,Lo)?so[Lo]:Dt.unknown}if($i)return $i.call(this,Hn,...Ii)}return Dt.handlers=Ke.handlers||{},Dt.invalid=Ke.invalid,Dt.unknown=Ke.unknown,Dt}const _t={},bn={}.hasOwnProperty,xn=gt("type",{handlers:{root:Zt,element:Mt,text:Pn,comment:yn,doctype:fn}});function Lt(le,pe){const Dt=(pe||_t).space;return xn(le,Dt==="svg"?kt:On)}function Zt(le,pe){const Ke={nodeName:"#document",mode:(le.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return Ke.childNodes=qn(le.children,Ke,pe),Rn(le,Ke),Ke}function Vt(le,pe){const Ke={nodeName:"#document-fragment",childNodes:[]};return Ke.childNodes=qn(le.children,Ke,pe),Rn(le,Ke),Ke}function fn(le){const pe={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return Rn(le,pe),pe}function Pn(le){const pe={nodeName:"#text",value:le.value,parentNode:null};return Rn(le,pe),pe}function yn(le){const pe={nodeName:"#comment",data:le.value,parentNode:null};return Rn(le,pe),pe}function Mt(le,pe){const Ke=pe;let Dt=Ke;le.type==="element"&&le.tagName.toLowerCase()==="svg"&&Ke.space==="html"&&(Dt=kt);const Hn=[];let Ii;if(le.properties){for(Ii in le.properties)if(Ii!=="children"&&bn.call(le.properties,Ii)){const Lo=zn(Dt,Ii,le.properties[Ii]);Lo&&Hn.push(Lo)}}const $i=Dt.space;(0,Re.ok)($i);const so={nodeName:le.tagName,tagName:le.tagName,attrs:Hn,namespaceURI:Qe.t[$i],childNodes:[],parentNode:null};return so.childNodes=qn(le.children,so,Dt),Rn(le,so),le.tagName==="template"&&le.content&&(so.content=Vt(le.content,Dt)),so}function zn(le,pe,Ke){const Dt=De(le,pe);if(Ke===!1||Ke===null||Ke===void 0||typeof Ke=="number"&&Number.isNaN(Ke)||!Ke&&Dt.boolean)return;Array.isArray(Ke)&&(Ke=Dt.commaSeparated?(0,Se.P)(Ke):(0,ut.P)(Ke));const Hn={name:Dt.attribute,value:Ke===!0?"":String(Ke)};if(Dt.space&&Dt.space!=="html"&&Dt.space!=="svg"){const Ii=Hn.name.indexOf(":");Ii<0?Hn.prefix="":(Hn.name=Hn.name.slice(Ii+1),Hn.prefix=Dt.attribute.slice(0,Ii)),Hn.namespace=Qe.t[Dt.space]}return Hn}function qn(le,pe,Ke){let Dt=-1;const Hn=[];if(le)for(;++Dt<le.length;){const Ii=xn(le[Dt],Ke);Ii.parentNode=pe,Hn.push(Ii)}return Hn}function Rn(le,pe){const Ke=le.position;Ke&&Ke.start&&Ke.end&&((0,Re.ok)(typeof Ke.start.offset=="number"),(0,Re.ok)(typeof Ke.end.offset=="number"),pe.sourceCodeLocation={startLine:Ke.start.line,startCol:Ke.start.column,startOffset:Ke.start.offset,endLine:Ke.end.line,endCol:Ke.end.column,endOffset:Ke.end.offset})}const Zn=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],Ai=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),Yn="\uFFFD";var Et;(function(le){le[le.EOF=-1]="EOF",le[le.NULL=0]="NULL",le[le.TABULATION=9]="TABULATION",le[le.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",le[le.LINE_FEED=10]="LINE_FEED",le[le.FORM_FEED=12]="FORM_FEED",le[le.SPACE=32]="SPACE",le[le.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",le[le.QUOTATION_MARK=34]="QUOTATION_MARK",le[le.AMPERSAND=38]="AMPERSAND",le[le.APOSTROPHE=39]="APOSTROPHE",le[le.HYPHEN_MINUS=45]="HYPHEN_MINUS",le[le.SOLIDUS=47]="SOLIDUS",le[le.DIGIT_0=48]="DIGIT_0",le[le.DIGIT_9=57]="DIGIT_9",le[le.SEMICOLON=59]="SEMICOLON",le[le.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",le[le.EQUALS_SIGN=61]="EQUALS_SIGN",le[le.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",le[le.QUESTION_MARK=63]="QUESTION_MARK",le[le.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",le[le.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",le[le.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",le[le.GRAVE_ACCENT=96]="GRAVE_ACCENT",le[le.LATIN_SMALL_A=97]="LATIN_SMALL_A",le[le.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(Et||(Et={}));const vi={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function Ri(le){return le>=55296&&le<=57343}function sn(le){return le>=56320&&le<=57343}function Xi(le,pe){return(le-55296)*1024+9216+pe}function cr(le){return le!==32&&le!==10&&le!==13&&le!==9&&le!==12&&le>=1&&le<=31||le>=127&&le<=159}function fr(le){return le>=64976&&le<=65007||Ai.has(le)}var kn;(function(le){le.controlCharacterInInputStream="control-character-in-input-stream",le.noncharacterInInputStream="noncharacter-in-input-stream",le.surrogateInInputStream="surrogate-in-input-stream",le.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",le.endTagWithAttributes="end-tag-with-attributes",le.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",le.unexpectedSolidusInTag="unexpected-solidus-in-tag",le.unexpectedNullCharacter="unexpected-null-character",le.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",le.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",le.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",le.missingEndTagName="missing-end-tag-name",le.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",le.unknownNamedCharacterReference="unknown-named-character-reference",le.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",le.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",le.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",le.eofBeforeTagName="eof-before-tag-name",le.eofInTag="eof-in-tag",le.missingAttributeValue="missing-attribute-value",le.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",le.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",le.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",le.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",le.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",le.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",le.missingDoctypePublicIdentifier="missing-doctype-public-identifier",le.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",le.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",le.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",le.cdataInHtmlContent="cdata-in-html-content",le.incorrectlyOpenedComment="incorrectly-opened-comment",le.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",le.eofInDoctype="eof-in-doctype",le.nestedComment="nested-comment",le.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",le.eofInComment="eof-in-comment",le.incorrectlyClosedComment="incorrectly-closed-comment",le.eofInCdata="eof-in-cdata",le.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",le.nullCharacterReference="null-character-reference",le.surrogateCharacterReference="surrogate-character-reference",le.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",le.controlCharacterReference="control-character-reference",le.noncharacterCharacterReference="noncharacter-character-reference",le.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",le.missingDoctypeName="missing-doctype-name",le.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",le.duplicateAttribute="duplicate-attribute",le.nonConformingDoctype="non-conforming-doctype",le.missingDoctype="missing-doctype",le.misplacedDoctype="misplaced-doctype",le.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",le.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",le.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",le.openElementsLeftAfterEof="open-elements-left-after-eof",le.abandonedHeadElementChild="abandoned-head-element-child",le.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",le.nestedNoscriptInHead="nested-noscript-in-head",le.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"})(kn||(kn={}));const Or=65536;class kr{constructor(pe){this.handler=pe,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=Or,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+ +(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(pe,Ke){const{line:Dt,col:Hn,offset:Ii}=this,$i=Hn+Ke,so=Ii+Ke;return{code:pe,startLine:Dt,endLine:Dt,startCol:$i,endCol:$i,startOffset:so,endOffset:so}}_err(pe){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(pe,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(pe){if(this.pos!==this.html.length-1){const Ke=this.html.charCodeAt(this.pos+1);if(sn(Ke))return this.pos++,this._addGap(),Xi(pe,Ke)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,Et.EOF;return this._err(kn.surrogateInInputStream),pe}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(pe,Ke){this.html.length>0?this.html+=pe:this.html=pe,this.endOfChunkHit=!1,this.lastChunkWritten=Ke}insertHtmlAtCurrentPos(pe){this.html=this.html.substring(0,this.pos+1)+pe+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(pe,Ke){if(this.pos+pe.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(Ke)return this.html.startsWith(pe,this.pos);for(let Dt=0;Dt<pe.length;Dt++)if((this.html.charCodeAt(this.pos+Dt)|32)!==pe.charCodeAt(Dt))return!1;return!0}peek(pe){const Ke=this.pos+pe;if(Ke>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,Et.EOF;const Dt=this.html.charCodeAt(Ke);return Dt===Et.CARRIAGE_RETURN?Et.LINE_FEED:Dt}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,Et.EOF;let pe=this.html.charCodeAt(this.pos);return pe===Et.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,Et.LINE_FEED):pe===Et.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,Ri(pe)&&(pe=this._processSurrogate(pe)),this.handler.onParseError===null||pe>31&&pe<127||pe===Et.LINE_FEED||pe===Et.CARRIAGE_RETURN||pe>159&&pe<64976||this._checkForProblematicCharacters(pe),pe)}_checkForProblematicCharacters(pe){cr(pe)?this._err(kn.controlCharacterInInputStream):fr(pe)&&this._err(kn.noncharacterInInputStream)}retreat(pe){for(this.pos-=pe;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}var Wi;(function(le){le[le.CHARACTER=0]="CHARACTER",le[le.NULL_CHARACTER=1]="NULL_CHARACTER",le[le.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",le[le.START_TAG=3]="START_TAG",le[le.END_TAG=4]="END_TAG",le[le.COMMENT=5]="COMMENT",le[le.DOCTYPE=6]="DOCTYPE",le[le.EOF=7]="EOF",le[le.HIBERNATION=8]="HIBERNATION"})(Wi||(Wi={}));function lr(le,pe){for(let Ke=le.attrs.length-1;Ke>=0;Ke--)if(le.attrs[Ke].name===pe)return le.attrs[Ke].value;return null}var wr=new Uint16Array('\u1D41<\xD5\u0131\u028A\u049D\u057B\u05D0\u0675\u06DE\u07A2\u07D6\u080F\u0A4A\u0A91\u0DA1\u0E6D\u0F09\u0F26\u10CA\u1228\u12E1\u1415\u149D\u14C3\u14DF\u1525\0\0\0\0\0\0\u156B\u16CD\u198D\u1C12\u1DDD\u1F7E\u2060\u21B0\u228D\u23C0\u23FB\u2442\u2824\u2912\u2D08\u2E48\u2FCE\u3016\u32BA\u3639\u37AC\u38FE\u3A28\u3A71\u3AE0\u3B2E\u0800EMabcfglmnoprstu\\bfms\x7F\x84\x8B\x90\x95\x98\xA6\xB3\xB9\xC8\xCFlig\u803B\xC6\u40C6P\u803B&\u4026cute\u803B\xC1\u40C1reve;\u4102\u0100iyx}rc\u803B\xC2\u40C2;\u4410r;\uC000\u{1D504}rave\u803B\xC0\u40C0pha;\u4391acr;\u4100d;\u6A53\u0100gp\x9D\xA1on;\u4104f;\uC000\u{1D538}plyFunction;\u6061ing\u803B\xC5\u40C5\u0100cs\xBE\xC3r;\uC000\u{1D49C}ign;\u6254ilde\u803B\xC3\u40C3ml\u803B\xC4\u40C4\u0400aceforsu\xE5\xFB\xFE\u0117\u011C\u0122\u0127\u012A\u0100cr\xEA\xF2kslash;\u6216\u0176\xF6\xF8;\u6AE7ed;\u6306y;\u4411\u0180crt\u0105\u010B\u0114ause;\u6235noullis;\u612Ca;\u4392r;\uC000\u{1D505}pf;\uC000\u{1D539}eve;\u42D8c\xF2\u0113mpeq;\u624E\u0700HOacdefhilorsu\u014D\u0151\u0156\u0180\u019E\u01A2\u01B5\u01B7\u01BA\u01DC\u0215\u0273\u0278\u027Ecy;\u4427PY\u803B\xA9\u40A9\u0180cpy\u015D\u0162\u017Aute;\u4106\u0100;i\u0167\u0168\u62D2talDifferentialD;\u6145leys;\u612D\u0200aeio\u0189\u018E\u0194\u0198ron;\u410Cdil\u803B\xC7\u40C7rc;\u4108nint;\u6230ot;\u410A\u0100dn\u01A7\u01ADilla;\u40B8terDot;\u40B7\xF2\u017Fi;\u43A7rcle\u0200DMPT\u01C7\u01CB\u01D1\u01D6ot;\u6299inus;\u6296lus;\u6295imes;\u6297o\u0100cs\u01E2\u01F8kwiseContourIntegral;\u6232eCurly\u0100DQ\u0203\u020FoubleQuote;\u601Duote;\u6019\u0200lnpu\u021E\u0228\u0247\u0255on\u0100;e\u0225\u0226\u6237;\u6A74\u0180git\u022F\u0236\u023Aruent;\u6261nt;\u622FourIntegral;\u622E\u0100fr\u024C\u024E;\u6102oduct;\u6210nterClockwiseContourIntegral;\u6233oss;\u6A2Fcr;\uC000\u{1D49E}p\u0100;C\u0284\u0285\u62D3ap;\u624D\u0580DJSZacefios\u02A0\u02AC\u02B0\u02B4\u02B8\u02CB\u02D7\u02E1\u02E6\u0333\u048D\u0100;o\u0179\u02A5trahd;\u6911cy;\u4402cy;\u4405cy;\u440F\u0180grs\u02BF\u02C4\u02C7ger;\u6021r;\u61A1hv;\u6AE4\u0100ay\u02D0\u02D5ron;\u410E;\u4414l\u0100;t\u02DD\u02DE\u6207a;\u4394r;\uC000\u{1D507}\u0100af\u02EB\u0327\u0100cm\u02F0\u0322ritical\u0200ADGT\u0300\u0306\u0316\u031Ccute;\u40B4o\u0174\u030B\u030D;\u42D9bleAcute;\u42DDrave;\u4060ilde;\u42DCond;\u62C4ferentialD;\u6146\u0470\u033D\0\0\0\u0342\u0354\0\u0405f;\uC000\u{1D53B}\u0180;DE\u0348\u0349\u034D\u40A8ot;\u60DCqual;\u6250ble\u0300CDLRUV\u0363\u0372\u0382\u03CF\u03E2\u03F8ontourIntegra\xEC\u0239o\u0274\u0379\0\0\u037B\xBB\u0349nArrow;\u61D3\u0100eo\u0387\u03A4ft\u0180ART\u0390\u0396\u03A1rrow;\u61D0ightArrow;\u61D4e\xE5\u02CAng\u0100LR\u03AB\u03C4eft\u0100AR\u03B3\u03B9rrow;\u67F8ightArrow;\u67FAightArrow;\u67F9ight\u0100AT\u03D8\u03DErrow;\u61D2ee;\u62A8p\u0241\u03E9\0\0\u03EFrrow;\u61D1ownArrow;\u61D5erticalBar;\u6225n\u0300ABLRTa\u0412\u042A\u0430\u045E\u047F\u037Crrow\u0180;BU\u041D\u041E\u0422\u6193ar;\u6913pArrow;\u61F5reve;\u4311eft\u02D2\u043A\0\u0446\0\u0450ightVector;\u6950eeVector;\u695Eector\u0100;B\u0459\u045A\u61BDar;\u6956ight\u01D4\u0467\0\u0471eeVector;\u695Fector\u0100;B\u047A\u047B\u61C1ar;\u6957ee\u0100;A\u0486\u0487\u62A4rrow;\u61A7\u0100ct\u0492\u0497r;\uC000\u{1D49F}rok;\u4110\u0800NTacdfglmopqstux\u04BD\u04C0\u04C4\u04CB\u04DE\u04E2\u04E7\u04EE\u04F5\u0521\u052F\u0536\u0552\u055D\u0560\u0565G;\u414AH\u803B\xD0\u40D0cute\u803B\xC9\u40C9\u0180aiy\u04D2\u04D7\u04DCron;\u411Arc\u803B\xCA\u40CA;\u442Dot;\u4116r;\uC000\u{1D508}rave\u803B\xC8\u40C8ement;\u6208\u0100ap\u04FA\u04FEcr;\u4112ty\u0253\u0506\0\0\u0512mallSquare;\u65FBerySmallSquare;\u65AB\u0100gp\u0526\u052Aon;\u4118f;\uC000\u{1D53C}silon;\u4395u\u0100ai\u053C\u0549l\u0100;T\u0542\u0543\u6A75ilde;\u6242librium;\u61CC\u0100ci\u0557\u055Ar;\u6130m;\u6A73a;\u4397ml\u803B\xCB\u40CB\u0100ip\u056A\u056Fsts;\u6203onentialE;\u6147\u0280cfios\u0585\u0588\u058D\u05B2\u05CCy;\u4424r;\uC000\u{1D509}lled\u0253\u0597\0\0\u05A3mallSquare;\u65FCerySmallSquare;\u65AA\u0370\u05BA\0\u05BF\0\0\u05C4f;\uC000\u{1D53D}All;\u6200riertrf;\u6131c\xF2\u05CB\u0600JTabcdfgorst\u05E8\u05EC\u05EF\u05FA\u0600\u0612\u0616\u061B\u061D\u0623\u066C\u0672cy;\u4403\u803B>\u403Emma\u0100;d\u05F7\u05F8\u4393;\u43DCreve;\u411E\u0180eiy\u0607\u060C\u0610dil;\u4122rc;\u411C;\u4413ot;\u4120r;\uC000\u{1D50A};\u62D9pf;\uC000\u{1D53E}eater\u0300EFGLST\u0635\u0644\u064E\u0656\u065B\u0666qual\u0100;L\u063E\u063F\u6265ess;\u62DBullEqual;\u6267reater;\u6AA2ess;\u6277lantEqual;\u6A7Eilde;\u6273cr;\uC000\u{1D4A2};\u626B\u0400Aacfiosu\u0685\u068B\u0696\u069B\u069E\u06AA\u06BE\u06CARDcy;\u442A\u0100ct\u0690\u0694ek;\u42C7;\u405Eirc;\u4124r;\u610ClbertSpace;\u610B\u01F0\u06AF\0\u06B2f;\u610DizontalLine;\u6500\u0100ct\u06C3\u06C5\xF2\u06A9rok;\u4126mp\u0144\u06D0\u06D8ownHum\xF0\u012Fqual;\u624F\u0700EJOacdfgmnostu\u06FA\u06FE\u0703\u0707\u070E\u071A\u071E\u0721\u0728\u0744\u0778\u078B\u078F\u0795cy;\u4415lig;\u4132cy;\u4401cute\u803B\xCD\u40CD\u0100iy\u0713\u0718rc\u803B\xCE\u40CE;\u4418ot;\u4130r;\u6111rave\u803B\xCC\u40CC\u0180;ap\u0720\u072F\u073F\u0100cg\u0734\u0737r;\u412AinaryI;\u6148lie\xF3\u03DD\u01F4\u0749\0\u0762\u0100;e\u074D\u074E\u622C\u0100gr\u0753\u0758ral;\u622Bsection;\u62C2isible\u0100CT\u076C\u0772omma;\u6063imes;\u6062\u0180gpt\u077F\u0783\u0788on;\u412Ef;\uC000\u{1D540}a;\u4399cr;\u6110ilde;\u4128\u01EB\u079A\0\u079Ecy;\u4406l\u803B\xCF\u40CF\u0280cfosu\u07AC\u07B7\u07BC\u07C2\u07D0\u0100iy\u07B1\u07B5rc;\u4134;\u4419r;\uC000\u{1D50D}pf;\uC000\u{1D541}\u01E3\u07C7\0\u07CCr;\uC000\u{1D4A5}rcy;\u4408kcy;\u4404\u0380HJacfos\u07E4\u07E8\u07EC\u07F1\u07FD\u0802\u0808cy;\u4425cy;\u440Cppa;\u439A\u0100ey\u07F6\u07FBdil;\u4136;\u441Ar;\uC000\u{1D50E}pf;\uC000\u{1D542}cr;\uC000\u{1D4A6}\u0580JTaceflmost\u0825\u0829\u082C\u0850\u0863\u09B3\u09B8\u09C7\u09CD\u0A37\u0A47cy;\u4409\u803B<\u403C\u0280cmnpr\u0837\u083C\u0841\u0844\u084Dute;\u4139bda;\u439Bg;\u67EAlacetrf;\u6112r;\u619E\u0180aey\u0857\u085C\u0861ron;\u413Ddil;\u413B;\u441B\u0100fs\u0868\u0970t\u0500ACDFRTUVar\u087E\u08A9\u08B1\u08E0\u08E6\u08FC\u092F\u095B\u0390\u096A\u0100nr\u0883\u088FgleBracket;\u67E8row\u0180;BR\u0899\u089A\u089E\u6190ar;\u61E4ightArrow;\u61C6eiling;\u6308o\u01F5\u08B7\0\u08C3bleBracket;\u67E6n\u01D4\u08C8\0\u08D2eeVector;\u6961ector\u0100;B\u08DB\u08DC\u61C3ar;\u6959loor;\u630Aight\u0100AV\u08EF\u08F5rrow;\u6194ector;\u694E\u0100er\u0901\u0917e\u0180;AV\u0909\u090A\u0910\u62A3rrow;\u61A4ector;\u695Aiangle\u0180;BE\u0924\u0925\u0929\u62B2ar;\u69CFqual;\u62B4p\u0180DTV\u0937\u0942\u094CownVector;\u6951eeVector;\u6960ector\u0100;B\u0956\u0957\u61BFar;\u6958ector\u0100;B\u0965\u0966\u61BCar;\u6952ight\xE1\u039Cs\u0300EFGLST\u097E\u098B\u0995\u099D\u09A2\u09ADqualGreater;\u62DAullEqual;\u6266reater;\u6276ess;\u6AA1lantEqual;\u6A7Dilde;\u6272r;\uC000\u{1D50F}\u0100;e\u09BD\u09BE\u62D8ftarrow;\u61DAidot;\u413F\u0180npw\u09D4\u0A16\u0A1Bg\u0200LRlr\u09DE\u09F7\u0A02\u0A10eft\u0100AR\u09E6\u09ECrrow;\u67F5ightArrow;\u67F7ightArrow;\u67F6eft\u0100ar\u03B3\u0A0Aight\xE1\u03BFight\xE1\u03CAf;\uC000\u{1D543}er\u0100LR\u0A22\u0A2CeftArrow;\u6199ightArrow;\u6198\u0180cht\u0A3E\u0A40\u0A42\xF2\u084C;\u61B0rok;\u4141;\u626A\u0400acefiosu\u0A5A\u0A5D\u0A60\u0A77\u0A7C\u0A85\u0A8B\u0A8Ep;\u6905y;\u441C\u0100dl\u0A65\u0A6FiumSpace;\u605Flintrf;\u6133r;\uC000\u{1D510}nusPlus;\u6213pf;\uC000\u{1D544}c\xF2\u0A76;\u439C\u0480Jacefostu\u0AA3\u0AA7\u0AAD\u0AC0\u0B14\u0B19\u0D91\u0D97\u0D9Ecy;\u440Acute;\u4143\u0180aey\u0AB4\u0AB9\u0ABEron;\u4147dil;\u4145;\u441D\u0180gsw\u0AC7\u0AF0\u0B0Eative\u0180MTV\u0AD3\u0ADF\u0AE8ediumSpace;\u600Bhi\u0100cn\u0AE6\u0AD8\xEB\u0AD9eryThi\xEE\u0AD9ted\u0100GL\u0AF8\u0B06reaterGreate\xF2\u0673essLes\xF3\u0A48Line;\u400Ar;\uC000\u{1D511}\u0200Bnpt\u0B22\u0B28\u0B37\u0B3Areak;\u6060BreakingSpace;\u40A0f;\u6115\u0680;CDEGHLNPRSTV\u0B55\u0B56\u0B6A\u0B7C\u0BA1\u0BEB\u0C04\u0C5E\u0C84\u0CA6\u0CD8\u0D61\u0D85\u6AEC\u0100ou\u0B5B\u0B64ngruent;\u6262pCap;\u626DoubleVerticalBar;\u6226\u0180lqx\u0B83\u0B8A\u0B9Bement;\u6209ual\u0100;T\u0B92\u0B93\u6260ilde;\uC000\u2242\u0338ists;\u6204reater\u0380;EFGLST\u0BB6\u0BB7\u0BBD\u0BC9\u0BD3\u0BD8\u0BE5\u626Fqual;\u6271ullEqual;\uC000\u2267\u0338reater;\uC000\u226B\u0338ess;\u6279lantEqual;\uC000\u2A7E\u0338ilde;\u6275ump\u0144\u0BF2\u0BFDownHump;\uC000\u224E\u0338qual;\uC000\u224F\u0338e\u0100fs\u0C0A\u0C27tTriangle\u0180;BE\u0C1A\u0C1B\u0C21\u62EAar;\uC000\u29CF\u0338qual;\u62ECs\u0300;EGLST\u0C35\u0C36\u0C3C\u0C44\u0C4B\u0C58\u626Equal;\u6270reater;\u6278ess;\uC000\u226A\u0338lantEqual;\uC000\u2A7D\u0338ilde;\u6274ested\u0100GL\u0C68\u0C79reaterGreater;\uC000\u2AA2\u0338essLess;\uC000\u2AA1\u0338recedes\u0180;ES\u0C92\u0C93\u0C9B\u6280qual;\uC000\u2AAF\u0338lantEqual;\u62E0\u0100ei\u0CAB\u0CB9verseElement;\u620CghtTriangle\u0180;BE\u0CCB\u0CCC\u0CD2\u62EBar;\uC000\u29D0\u0338qual;\u62ED\u0100qu\u0CDD\u0D0CuareSu\u0100bp\u0CE8\u0CF9set\u0100;E\u0CF0\u0CF3\uC000\u228F\u0338qual;\u62E2erset\u0100;E\u0D03\u0D06\uC000\u2290\u0338qual;\u62E3\u0180bcp\u0D13\u0D24\u0D4Eset\u0100;E\u0D1B\u0D1E\uC000\u2282\u20D2qual;\u6288ceeds\u0200;EST\u0D32\u0D33\u0D3B\u0D46\u6281qual;\uC000\u2AB0\u0338lantEqual;\u62E1ilde;\uC000\u227F\u0338erset\u0100;E\u0D58\u0D5B\uC000\u2283\u20D2qual;\u6289ilde\u0200;EFT\u0D6E\u0D6F\u0D75\u0D7F\u6241qual;\u6244ullEqual;\u6247ilde;\u6249erticalBar;\u6224cr;\uC000\u{1D4A9}ilde\u803B\xD1\u40D1;\u439D\u0700Eacdfgmoprstuv\u0DBD\u0DC2\u0DC9\u0DD5\u0DDB\u0DE0\u0DE7\u0DFC\u0E02\u0E20\u0E22\u0E32\u0E3F\u0E44lig;\u4152cute\u803B\xD3\u40D3\u0100iy\u0DCE\u0DD3rc\u803B\xD4\u40D4;\u441Eblac;\u4150r;\uC000\u{1D512}rave\u803B\xD2\u40D2\u0180aei\u0DEE\u0DF2\u0DF6cr;\u414Cga;\u43A9cron;\u439Fpf;\uC000\u{1D546}enCurly\u0100DQ\u0E0E\u0E1AoubleQuote;\u601Cuote;\u6018;\u6A54\u0100cl\u0E27\u0E2Cr;\uC000\u{1D4AA}ash\u803B\xD8\u40D8i\u016C\u0E37\u0E3Cde\u803B\xD5\u40D5es;\u6A37ml\u803B\xD6\u40D6er\u0100BP\u0E4B\u0E60\u0100ar\u0E50\u0E53r;\u603Eac\u0100ek\u0E5A\u0E5C;\u63DEet;\u63B4arenthesis;\u63DC\u0480acfhilors\u0E7F\u0E87\u0E8A\u0E8F\u0E92\u0E94\u0E9D\u0EB0\u0EFCrtialD;\u6202y;\u441Fr;\uC000\u{1D513}i;\u43A6;\u43A0usMinus;\u40B1\u0100ip\u0EA2\u0EADncareplan\xE5\u069Df;\u6119\u0200;eio\u0EB9\u0EBA\u0EE0\u0EE4\u6ABBcedes\u0200;EST\u0EC8\u0EC9\u0ECF\u0EDA\u627Aqual;\u6AAFlantEqual;\u627Cilde;\u627Eme;\u6033\u0100dp\u0EE9\u0EEEuct;\u620Fortion\u0100;a\u0225\u0EF9l;\u621D\u0100ci\u0F01\u0F06r;\uC000\u{1D4AB};\u43A8\u0200Ufos\u0F11\u0F16\u0F1B\u0F1FOT\u803B"\u4022r;\uC000\u{1D514}pf;\u611Acr;\uC000\u{1D4AC}\u0600BEacefhiorsu\u0F3E\u0F43\u0F47\u0F60\u0F73\u0FA7\u0FAA\u0FAD\u1096\u10A9\u10B4\u10BEarr;\u6910G\u803B\xAE\u40AE\u0180cnr\u0F4E\u0F53\u0F56ute;\u4154g;\u67EBr\u0100;t\u0F5C\u0F5D\u61A0l;\u6916\u0180aey\u0F67\u0F6C\u0F71ron;\u4158dil;\u4156;\u4420\u0100;v\u0F78\u0F79\u611Cerse\u0100EU\u0F82\u0F99\u0100lq\u0F87\u0F8Eement;\u620Builibrium;\u61CBpEquilibrium;\u696Fr\xBB\u0F79o;\u43A1ght\u0400ACDFTUVa\u0FC1\u0FEB\u0FF3\u1022\u1028\u105B\u1087\u03D8\u0100nr\u0FC6\u0FD2gleBracket;\u67E9row\u0180;BL\u0FDC\u0FDD\u0FE1\u6192ar;\u61E5eftArrow;\u61C4eiling;\u6309o\u01F5\u0FF9\0\u1005bleBracket;\u67E7n\u01D4\u100A\0\u1014eeVector;\u695Dector\u0100;B\u101D\u101E\u61C2ar;\u6955loor;\u630B\u0100er\u102D\u1043e\u0180;AV\u1035\u1036\u103C\u62A2rrow;\u61A6ector;\u695Biangle\u0180;BE\u1050\u1051\u1055\u62B3ar;\u69D0qual;\u62B5p\u0180DTV\u1063\u106E\u1078ownVector;\u694FeeVector;\u695Cector\u0100;B\u1082\u1083\u61BEar;\u6954ector\u0100;B\u1091\u1092\u61C0ar;\u6953\u0100pu\u109B\u109Ef;\u611DndImplies;\u6970ightarrow;\u61DB\u0100ch\u10B9\u10BCr;\u611B;\u61B1leDelayed;\u69F4\u0680HOacfhimoqstu\u10E4\u10F1\u10F7\u10FD\u1119\u111E\u1151\u1156\u1161\u1167\u11B5\u11BB\u11BF\u0100Cc\u10E9\u10EEHcy;\u4429y;\u4428FTcy;\u442Ccute;\u415A\u0280;aeiy\u1108\u1109\u110E\u1113\u1117\u6ABCron;\u4160dil;\u415Erc;\u415C;\u4421r;\uC000\u{1D516}ort\u0200DLRU\u112A\u1134\u113E\u1149ownArrow\xBB\u041EeftArrow\xBB\u089AightArrow\xBB\u0FDDpArrow;\u6191gma;\u43A3allCircle;\u6218pf;\uC000\u{1D54A}\u0272\u116D\0\0\u1170t;\u621Aare\u0200;ISU\u117B\u117C\u1189\u11AF\u65A1ntersection;\u6293u\u0100bp\u118F\u119Eset\u0100;E\u1197\u1198\u628Fqual;\u6291erset\u0100;E\u11A8\u11A9\u6290qual;\u6292nion;\u6294cr;\uC000\u{1D4AE}ar;\u62C6\u0200bcmp\u11C8\u11DB\u1209\u120B\u0100;s\u11CD\u11CE\u62D0et\u0100;E\u11CD\u11D5qual;\u6286\u0100ch\u11E0\u1205eeds\u0200;EST\u11ED\u11EE\u11F4\u11FF\u627Bqual;\u6AB0lantEqual;\u627Dilde;\u627FTh\xE1\u0F8C;\u6211\u0180;es\u1212\u1213\u1223\u62D1rset\u0100;E\u121C\u121D\u6283qual;\u6287et\xBB\u1213\u0580HRSacfhiors\u123E\u1244\u1249\u1255\u125E\u1271\u1276\u129F\u12C2\u12C8\u12D1ORN\u803B\xDE\u40DEADE;\u6122\u0100Hc\u124E\u1252cy;\u440By;\u4426\u0100bu\u125A\u125C;\u4009;\u43A4\u0180aey\u1265\u126A\u126Fron;\u4164dil;\u4162;\u4422r;\uC000\u{1D517}\u0100ei\u127B\u1289\u01F2\u1280\0\u1287efore;\u6234a;\u4398\u0100cn\u128E\u1298kSpace;\uC000\u205F\u200ASpace;\u6009lde\u0200;EFT\u12AB\u12AC\u12B2\u12BC\u623Cqual;\u6243ullEqual;\u6245ilde;\u6248pf;\uC000\u{1D54B}ipleDot;\u60DB\u0100ct\u12D6\u12DBr;\uC000\u{1D4AF}rok;\u4166\u0AE1\u12F7\u130E\u131A\u1326\0\u132C\u1331\0\0\0\0\0\u1338\u133D\u1377\u1385\0\u13FF\u1404\u140A\u1410\u0100cr\u12FB\u1301ute\u803B\xDA\u40DAr\u0100;o\u1307\u1308\u619Fcir;\u6949r\u01E3\u1313\0\u1316y;\u440Eve;\u416C\u0100iy\u131E\u1323rc\u803B\xDB\u40DB;\u4423blac;\u4170r;\uC000\u{1D518}rave\u803B\xD9\u40D9acr;\u416A\u0100di\u1341\u1369er\u0100BP\u1348\u135D\u0100ar\u134D\u1350r;\u405Fac\u0100ek\u1357\u1359;\u63DFet;\u63B5arenthesis;\u63DDon\u0100;P\u1370\u1371\u62C3lus;\u628E\u0100gp\u137B\u137Fon;\u4172f;\uC000\u{1D54C}\u0400ADETadps\u1395\u13AE\u13B8\u13C4\u03E8\u13D2\u13D7\u13F3rrow\u0180;BD\u1150\u13A0\u13A4ar;\u6912ownArrow;\u61C5ownArrow;\u6195quilibrium;\u696Eee\u0100;A\u13CB\u13CC\u62A5rrow;\u61A5own\xE1\u03F3er\u0100LR\u13DE\u13E8eftArrow;\u6196ightArrow;\u6197i\u0100;l\u13F9\u13FA\u43D2on;\u43A5ing;\u416Ecr;\uC000\u{1D4B0}ilde;\u4168ml\u803B\xDC\u40DC\u0480Dbcdefosv\u1427\u142C\u1430\u1433\u143E\u1485\u148A\u1490\u1496ash;\u62ABar;\u6AEBy;\u4412ash\u0100;l\u143B\u143C\u62A9;\u6AE6\u0100er\u1443\u1445;\u62C1\u0180bty\u144C\u1450\u147Aar;\u6016\u0100;i\u144F\u1455cal\u0200BLST\u1461\u1465\u146A\u1474ar;\u6223ine;\u407Ceparator;\u6758ilde;\u6240ThinSpace;\u600Ar;\uC000\u{1D519}pf;\uC000\u{1D54D}cr;\uC000\u{1D4B1}dash;\u62AA\u0280cefos\u14A7\u14AC\u14B1\u14B6\u14BCirc;\u4174dge;\u62C0r;\uC000\u{1D51A}pf;\uC000\u{1D54E}cr;\uC000\u{1D4B2}\u0200fios\u14CB\u14D0\u14D2\u14D8r;\uC000\u{1D51B};\u439Epf;\uC000\u{1D54F}cr;\uC000\u{1D4B3}\u0480AIUacfosu\u14F1\u14F5\u14F9\u14FD\u1504\u150F\u1514\u151A\u1520cy;\u442Fcy;\u4407cy;\u442Ecute\u803B\xDD\u40DD\u0100iy\u1509\u150Drc;\u4176;\u442Br;\uC000\u{1D51C}pf;\uC000\u{1D550}cr;\uC000\u{1D4B4}ml;\u4178\u0400Hacdefos\u1535\u1539\u153F\u154B\u154F\u155D\u1560\u1564cy;\u4416cute;\u4179\u0100ay\u1544\u1549ron;\u417D;\u4417ot;\u417B\u01F2\u1554\0\u155BoWidt\xE8\u0AD9a;\u4396r;\u6128pf;\u6124cr;\uC000\u{1D4B5}\u0BE1\u1583\u158A\u1590\0\u15B0\u15B6\u15BF\0\0\0\0\u15C6\u15DB\u15EB\u165F\u166D\0\u1695\u169B\u16B2\u16B9\0\u16BEcute\u803B\xE1\u40E1reve;\u4103\u0300;Ediuy\u159C\u159D\u15A1\u15A3\u15A8\u15AD\u623E;\uC000\u223E\u0333;\u623Frc\u803B\xE2\u40E2te\u80BB\xB4\u0306;\u4430lig\u803B\xE6\u40E6\u0100;r\xB2\u15BA;\uC000\u{1D51E}rave\u803B\xE0\u40E0\u0100ep\u15CA\u15D6\u0100fp\u15CF\u15D4sym;\u6135\xE8\u15D3ha;\u43B1\u0100ap\u15DFc\u0100cl\u15E4\u15E7r;\u4101g;\u6A3F\u0264\u15F0\0\0\u160A\u0280;adsv\u15FA\u15FB\u15FF\u1601\u1607\u6227nd;\u6A55;\u6A5Clope;\u6A58;\u6A5A\u0380;elmrsz\u1618\u1619\u161B\u161E\u163F\u164F\u1659\u6220;\u69A4e\xBB\u1619sd\u0100;a\u1625\u1626\u6221\u0461\u1630\u1632\u1634\u1636\u1638\u163A\u163C\u163E;\u69A8;\u69A9;\u69AA;\u69AB;\u69AC;\u69AD;\u69AE;\u69AFt\u0100;v\u1645\u1646\u621Fb\u0100;d\u164C\u164D\u62BE;\u699D\u0100pt\u1654\u1657h;\u6222\xBB\xB9arr;\u637C\u0100gp\u1663\u1667on;\u4105f;\uC000\u{1D552}\u0380;Eaeiop\u12C1\u167B\u167D\u1682\u1684\u1687\u168A;\u6A70cir;\u6A6F;\u624Ad;\u624Bs;\u4027rox\u0100;e\u12C1\u1692\xF1\u1683ing\u803B\xE5\u40E5\u0180cty\u16A1\u16A6\u16A8r;\uC000\u{1D4B6};\u402Amp\u0100;e\u12C1\u16AF\xF1\u0288ilde\u803B\xE3\u40E3ml\u803B\xE4\u40E4\u0100ci\u16C2\u16C8onin\xF4\u0272nt;\u6A11\u0800Nabcdefiklnoprsu\u16ED\u16F1\u1730\u173C\u1743\u1748\u1778\u177D\u17E0\u17E6\u1839\u1850\u170D\u193D\u1948\u1970ot;\u6AED\u0100cr\u16F6\u171Ek\u0200ceps\u1700\u1705\u170D\u1713ong;\u624Cpsilon;\u43F6rime;\u6035im\u0100;e\u171A\u171B\u623Dq;\u62CD\u0176\u1722\u1726ee;\u62BDed\u0100;g\u172C\u172D\u6305e\xBB\u172Drk\u0100;t\u135C\u1737brk;\u63B6\u0100oy\u1701\u1741;\u4431quo;\u601E\u0280cmprt\u1753\u175B\u1761\u1764\u1768aus\u0100;e\u010A\u0109ptyv;\u69B0s\xE9\u170Cno\xF5\u0113\u0180ahw\u176F\u1771\u1773;\u43B2;\u6136een;\u626Cr;\uC000\u{1D51F}g\u0380costuvw\u178D\u179D\u17B3\u17C1\u17D5\u17DB\u17DE\u0180aiu\u1794\u1796\u179A\xF0\u0760rc;\u65EFp\xBB\u1371\u0180dpt\u17A4\u17A8\u17ADot;\u6A00lus;\u6A01imes;\u6A02\u0271\u17B9\0\0\u17BEcup;\u6A06ar;\u6605riangle\u0100du\u17CD\u17D2own;\u65BDp;\u65B3plus;\u6A04e\xE5\u1444\xE5\u14ADarow;\u690D\u0180ako\u17ED\u1826\u1835\u0100cn\u17F2\u1823k\u0180lst\u17FA\u05AB\u1802ozenge;\u69EBriangle\u0200;dlr\u1812\u1813\u1818\u181D\u65B4own;\u65BEeft;\u65C2ight;\u65B8k;\u6423\u01B1\u182B\0\u1833\u01B2\u182F\0\u1831;\u6592;\u65914;\u6593ck;\u6588\u0100eo\u183E\u184D\u0100;q\u1843\u1846\uC000=\u20E5uiv;\uC000\u2261\u20E5t;\u6310\u0200ptwx\u1859\u185E\u1867\u186Cf;\uC000\u{1D553}\u0100;t\u13CB\u1863om\xBB\u13CCtie;\u62C8\u0600DHUVbdhmptuv\u1885\u1896\u18AA\u18BB\u18D7\u18DB\u18EC\u18FF\u1905\u190A\u1910\u1921\u0200LRlr\u188E\u1890\u1892\u1894;\u6557;\u6554;\u6556;\u6553\u0280;DUdu\u18A1\u18A2\u18A4\u18A6\u18A8\u6550;\u6566;\u6569;\u6564;\u6567\u0200LRlr\u18B3\u18B5\u18B7\u18B9;\u655D;\u655A;\u655C;\u6559\u0380;HLRhlr\u18CA\u18CB\u18CD\u18CF\u18D1\u18D3\u18D5\u6551;\u656C;\u6563;\u6560;\u656B;\u6562;\u655Fox;\u69C9\u0200LRlr\u18E4\u18E6\u18E8\u18EA;\u6555;\u6552;\u6510;\u650C\u0280;DUdu\u06BD\u18F7\u18F9\u18FB\u18FD;\u6565;\u6568;\u652C;\u6534inus;\u629Flus;\u629Eimes;\u62A0\u0200LRlr\u1919\u191B\u191D\u191F;\u655B;\u6558;\u6518;\u6514\u0380;HLRhlr\u1930\u1931\u1933\u1935\u1937\u1939\u193B\u6502;\u656A;\u6561;\u655E;\u653C;\u6524;\u651C\u0100ev\u0123\u1942bar\u803B\xA6\u40A6\u0200ceio\u1951\u1956\u195A\u1960r;\uC000\u{1D4B7}mi;\u604Fm\u0100;e\u171A\u171Cl\u0180;bh\u1968\u1969\u196B\u405C;\u69C5sub;\u67C8\u016C\u1974\u197El\u0100;e\u1979\u197A\u6022t\xBB\u197Ap\u0180;Ee\u012F\u1985\u1987;\u6AAE\u0100;q\u06DC\u06DB\u0CE1\u19A7\0\u19E8\u1A11\u1A15\u1A32\0\u1A37\u1A50\0\0\u1AB4\0\0\u1AC1\0\0\u1B21\u1B2E\u1B4D\u1B52\0\u1BFD\0\u1C0C\u0180cpr\u19AD\u19B2\u19DDute;\u4107\u0300;abcds\u19BF\u19C0\u19C4\u19CA\u19D5\u19D9\u6229nd;\u6A44rcup;\u6A49\u0100au\u19CF\u19D2p;\u6A4Bp;\u6A47ot;\u6A40;\uC000\u2229\uFE00\u0100eo\u19E2\u19E5t;\u6041\xEE\u0693\u0200aeiu\u19F0\u19FB\u1A01\u1A05\u01F0\u19F5\0\u19F8s;\u6A4Don;\u410Ddil\u803B\xE7\u40E7rc;\u4109ps\u0100;s\u1A0C\u1A0D\u6A4Cm;\u6A50ot;\u410B\u0180dmn\u1A1B\u1A20\u1A26il\u80BB\xB8\u01ADptyv;\u69B2t\u8100\xA2;e\u1A2D\u1A2E\u40A2r\xE4\u01B2r;\uC000\u{1D520}\u0180cei\u1A3D\u1A40\u1A4Dy;\u4447ck\u0100;m\u1A47\u1A48\u6713ark\xBB\u1A48;\u43C7r\u0380;Ecefms\u1A5F\u1A60\u1A62\u1A6B\u1AA4\u1AAA\u1AAE\u65CB;\u69C3\u0180;el\u1A69\u1A6A\u1A6D\u42C6q;\u6257e\u0261\u1A74\0\0\u1A88rrow\u0100lr\u1A7C\u1A81eft;\u61BAight;\u61BB\u0280RSacd\u1A92\u1A94\u1A96\u1A9A\u1A9F\xBB\u0F47;\u64C8st;\u629Birc;\u629Aash;\u629Dnint;\u6A10id;\u6AEFcir;\u69C2ubs\u0100;u\u1ABB\u1ABC\u6663it\xBB\u1ABC\u02EC\u1AC7\u1AD4\u1AFA\0\u1B0Aon\u0100;e\u1ACD\u1ACE\u403A\u0100;q\xC7\xC6\u026D\u1AD9\0\0\u1AE2a\u0100;t\u1ADE\u1ADF\u402C;\u4040\u0180;fl\u1AE8\u1AE9\u1AEB\u6201\xEE\u1160e\u0100mx\u1AF1\u1AF6ent\xBB\u1AE9e\xF3\u024D\u01E7\u1AFE\0\u1B07\u0100;d\u12BB\u1B02ot;\u6A6Dn\xF4\u0246\u0180fry\u1B10\u1B14\u1B17;\uC000\u{1D554}o\xE4\u0254\u8100\xA9;s\u0155\u1B1Dr;\u6117\u0100ao\u1B25\u1B29rr;\u61B5ss;\u6717\u0100cu\u1B32\u1B37r;\uC000\u{1D4B8}\u0100bp\u1B3C\u1B44\u0100;e\u1B41\u1B42\u6ACF;\u6AD1\u0100;e\u1B49\u1B4A\u6AD0;\u6AD2dot;\u62EF\u0380delprvw\u1B60\u1B6C\u1B77\u1B82\u1BAC\u1BD4\u1BF9arr\u0100lr\u1B68\u1B6A;\u6938;\u6935\u0270\u1B72\0\0\u1B75r;\u62DEc;\u62DFarr\u0100;p\u1B7F\u1B80\u61B6;\u693D\u0300;bcdos\u1B8F\u1B90\u1B96\u1BA1\u1BA5\u1BA8\u622Arcap;\u6A48\u0100au\u1B9B\u1B9Ep;\u6A46p;\u6A4Aot;\u628Dr;\u6A45;\uC000\u222A\uFE00\u0200alrv\u1BB5\u1BBF\u1BDE\u1BE3rr\u0100;m\u1BBC\u1BBD\u61B7;\u693Cy\u0180evw\u1BC7\u1BD4\u1BD8q\u0270\u1BCE\0\0\u1BD2re\xE3\u1B73u\xE3\u1B75ee;\u62CEedge;\u62CFen\u803B\xA4\u40A4earrow\u0100lr\u1BEE\u1BF3eft\xBB\u1B80ight\xBB\u1BBDe\xE4\u1BDD\u0100ci\u1C01\u1C07onin\xF4\u01F7nt;\u6231lcty;\u632D\u0980AHabcdefhijlorstuwz\u1C38\u1C3B\u1C3F\u1C5D\u1C69\u1C75\u1C8A\u1C9E\u1CAC\u1CB7\u1CFB\u1CFF\u1D0D\u1D7B\u1D91\u1DAB\u1DBB\u1DC6\u1DCDr\xF2\u0381ar;\u6965\u0200glrs\u1C48\u1C4D\u1C52\u1C54ger;\u6020eth;\u6138\xF2\u1133h\u0100;v\u1C5A\u1C5B\u6010\xBB\u090A\u016B\u1C61\u1C67arow;\u690Fa\xE3\u0315\u0100ay\u1C6E\u1C73ron;\u410F;\u4434\u0180;ao\u0332\u1C7C\u1C84\u0100gr\u02BF\u1C81r;\u61CAtseq;\u6A77\u0180glm\u1C91\u1C94\u1C98\u803B\xB0\u40B0ta;\u43B4ptyv;\u69B1\u0100ir\u1CA3\u1CA8sht;\u697F;\uC000\u{1D521}ar\u0100lr\u1CB3\u1CB5\xBB\u08DC\xBB\u101E\u0280aegsv\u1CC2\u0378\u1CD6\u1CDC\u1CE0m\u0180;os\u0326\u1CCA\u1CD4nd\u0100;s\u0326\u1CD1uit;\u6666amma;\u43DDin;\u62F2\u0180;io\u1CE7\u1CE8\u1CF8\u40F7de\u8100\xF7;o\u1CE7\u1CF0ntimes;\u62C7n\xF8\u1CF7cy;\u4452c\u026F\u1D06\0\0\u1D0Arn;\u631Eop;\u630D\u0280lptuw\u1D18\u1D1D\u1D22\u1D49\u1D55lar;\u4024f;\uC000\u{1D555}\u0280;emps\u030B\u1D2D\u1D37\u1D3D\u1D42q\u0100;d\u0352\u1D33ot;\u6251inus;\u6238lus;\u6214quare;\u62A1blebarwedg\xE5\xFAn\u0180adh\u112E\u1D5D\u1D67ownarrow\xF3\u1C83arpoon\u0100lr\u1D72\u1D76ef\xF4\u1CB4igh\xF4\u1CB6\u0162\u1D7F\u1D85karo\xF7\u0F42\u026F\u1D8A\0\0\u1D8Ern;\u631Fop;\u630C\u0180cot\u1D98\u1DA3\u1DA6\u0100ry\u1D9D\u1DA1;\uC000\u{1D4B9};\u4455l;\u69F6rok;\u4111\u0100dr\u1DB0\u1DB4ot;\u62F1i\u0100;f\u1DBA\u1816\u65BF\u0100ah\u1DC0\u1DC3r\xF2\u0429a\xF2\u0FA6angle;\u69A6\u0100ci\u1DD2\u1DD5y;\u445Fgrarr;\u67FF\u0900Dacdefglmnopqrstux\u1E01\u1E09\u1E19\u1E38\u0578\u1E3C\u1E49\u1E61\u1E7E\u1EA5\u1EAF\u1EBD\u1EE1\u1F2A\u1F37\u1F44\u1F4E\u1F5A\u0100Do\u1E06\u1D34o\xF4\u1C89\u0100cs\u1E0E\u1E14ute\u803B\xE9\u40E9ter;\u6A6E\u0200aioy\u1E22\u1E27\u1E31\u1E36ron;\u411Br\u0100;c\u1E2D\u1E2E\u6256\u803B\xEA\u40EAlon;\u6255;\u444Dot;\u4117\u0100Dr\u1E41\u1E45ot;\u6252;\uC000\u{1D522}\u0180;rs\u1E50\u1E51\u1E57\u6A9Aave\u803B\xE8\u40E8\u0100;d\u1E5C\u1E5D\u6A96ot;\u6A98\u0200;ils\u1E6A\u1E6B\u1E72\u1E74\u6A99nters;\u63E7;\u6113\u0100;d\u1E79\u1E7A\u6A95ot;\u6A97\u0180aps\u1E85\u1E89\u1E97cr;\u4113ty\u0180;sv\u1E92\u1E93\u1E95\u6205et\xBB\u1E93p\u01001;\u1E9D\u1EA4\u0133\u1EA1\u1EA3;\u6004;\u6005\u6003\u0100gs\u1EAA\u1EAC;\u414Bp;\u6002\u0100gp\u1EB4\u1EB8on;\u4119f;\uC000\u{1D556}\u0180als\u1EC4\u1ECE\u1ED2r\u0100;s\u1ECA\u1ECB\u62D5l;\u69E3us;\u6A71i\u0180;lv\u1EDA\u1EDB\u1EDF\u43B5on\xBB\u1EDB;\u43F5\u0200csuv\u1EEA\u1EF3\u1F0B\u1F23\u0100io\u1EEF\u1E31rc\xBB\u1E2E\u0269\u1EF9\0\0\u1EFB\xED\u0548ant\u0100gl\u1F02\u1F06tr\xBB\u1E5Dess\xBB\u1E7A\u0180aei\u1F12\u1F16\u1F1Als;\u403Dst;\u625Fv\u0100;D\u0235\u1F20D;\u6A78parsl;\u69E5\u0100Da\u1F2F\u1F33ot;\u6253rr;\u6971\u0180cdi\u1F3E\u1F41\u1EF8r;\u612Fo\xF4\u0352\u0100ah\u1F49\u1F4B;\u43B7\u803B\xF0\u40F0\u0100mr\u1F53\u1F57l\u803B\xEB\u40EBo;\u60AC\u0180cip\u1F61\u1F64\u1F67l;\u4021s\xF4\u056E\u0100eo\u1F6C\u1F74ctatio\xEE\u0559nential\xE5\u0579\u09E1\u1F92\0\u1F9E\0\u1FA1\u1FA7\0\0\u1FC6\u1FCC\0\u1FD3\0\u1FE6\u1FEA\u2000\0\u2008\u205Allingdotse\xF1\u1E44y;\u4444male;\u6640\u0180ilr\u1FAD\u1FB3\u1FC1lig;\u8000\uFB03\u0269\u1FB9\0\0\u1FBDg;\u8000\uFB00ig;\u8000\uFB04;\uC000\u{1D523}lig;\u8000\uFB01lig;\uC000fj\u0180alt\u1FD9\u1FDC\u1FE1t;\u666Dig;\u8000\uFB02ns;\u65B1of;\u4192\u01F0\u1FEE\0\u1FF3f;\uC000\u{1D557}\u0100ak\u05BF\u1FF7\u0100;v\u1FFC\u1FFD\u62D4;\u6AD9artint;\u6A0D\u0100ao\u200C\u2055\u0100cs\u2011\u2052\u03B1\u201A\u2030\u2038\u2045\u2048\0\u2050\u03B2\u2022\u2025\u2027\u202A\u202C\0\u202E\u803B\xBD\u40BD;\u6153\u803B\xBC\u40BC;\u6155;\u6159;\u615B\u01B3\u2034\0\u2036;\u6154;\u6156\u02B4\u203E\u2041\0\0\u2043\u803B\xBE\u40BE;\u6157;\u615C5;\u6158\u01B6\u204C\0\u204E;\u615A;\u615D8;\u615El;\u6044wn;\u6322cr;\uC000\u{1D4BB}\u0880Eabcdefgijlnorstv\u2082\u2089\u209F\u20A5\u20B0\u20B4\u20F0\u20F5\u20FA\u20FF\u2103\u2112\u2138\u0317\u213E\u2152\u219E\u0100;l\u064D\u2087;\u6A8C\u0180cmp\u2090\u2095\u209Dute;\u41F5ma\u0100;d\u209C\u1CDA\u43B3;\u6A86reve;\u411F\u0100iy\u20AA\u20AErc;\u411D;\u4433ot;\u4121\u0200;lqs\u063E\u0642\u20BD\u20C9\u0180;qs\u063E\u064C\u20C4lan\xF4\u0665\u0200;cdl\u0665\u20D2\u20D5\u20E5c;\u6AA9ot\u0100;o\u20DC\u20DD\u6A80\u0100;l\u20E2\u20E3\u6A82;\u6A84\u0100;e\u20EA\u20ED\uC000\u22DB\uFE00s;\u6A94r;\uC000\u{1D524}\u0100;g\u0673\u061Bmel;\u6137cy;\u4453\u0200;Eaj\u065A\u210C\u210E\u2110;\u6A92;\u6AA5;\u6AA4\u0200Eaes\u211B\u211D\u2129\u2134;\u6269p\u0100;p\u2123\u2124\u6A8Arox\xBB\u2124\u0100;q\u212E\u212F\u6A88\u0100;q\u212E\u211Bim;\u62E7pf;\uC000\u{1D558}\u0100ci\u2143\u2146r;\u610Am\u0180;el\u066B\u214E\u2150;\u6A8E;\u6A90\u8300>;cdlqr\u05EE\u2160\u216A\u216E\u2173\u2179\u0100ci\u2165\u2167;\u6AA7r;\u6A7Aot;\u62D7Par;\u6995uest;\u6A7C\u0280adels\u2184\u216A\u2190\u0656\u219B\u01F0\u2189\0\u218Epro\xF8\u209Er;\u6978q\u0100lq\u063F\u2196les\xF3\u2088i\xED\u066B\u0100en\u21A3\u21ADrtneqq;\uC000\u2269\uFE00\xC5\u21AA\u0500Aabcefkosy\u21C4\u21C7\u21F1\u21F5\u21FA\u2218\u221D\u222F\u2268\u227Dr\xF2\u03A0\u0200ilmr\u21D0\u21D4\u21D7\u21DBrs\xF0\u1484f\xBB\u2024il\xF4\u06A9\u0100dr\u21E0\u21E4cy;\u444A\u0180;cw\u08F4\u21EB\u21EFir;\u6948;\u61ADar;\u610Firc;\u4125\u0180alr\u2201\u220E\u2213rts\u0100;u\u2209\u220A\u6665it\xBB\u220Alip;\u6026con;\u62B9r;\uC000\u{1D525}s\u0100ew\u2223\u2229arow;\u6925arow;\u6926\u0280amopr\u223A\u223E\u2243\u225E\u2263rr;\u61FFtht;\u623Bk\u0100lr\u2249\u2253eftarrow;\u61A9ightarrow;\u61AAf;\uC000\u{1D559}bar;\u6015\u0180clt\u226F\u2274\u2278r;\uC000\u{1D4BD}as\xE8\u21F4rok;\u4127\u0100bp\u2282\u2287ull;\u6043hen\xBB\u1C5B\u0AE1\u22A3\0\u22AA\0\u22B8\u22C5\u22CE\0\u22D5\u22F3\0\0\u22F8\u2322\u2367\u2362\u237F\0\u2386\u23AA\u23B4cute\u803B\xED\u40ED\u0180;iy\u0771\u22B0\u22B5rc\u803B\xEE\u40EE;\u4438\u0100cx\u22BC\u22BFy;\u4435cl\u803B\xA1\u40A1\u0100fr\u039F\u22C9;\uC000\u{1D526}rave\u803B\xEC\u40EC\u0200;ino\u073E\u22DD\u22E9\u22EE\u0100in\u22E2\u22E6nt;\u6A0Ct;\u622Dfin;\u69DCta;\u6129lig;\u4133\u0180aop\u22FE\u231A\u231D\u0180cgt\u2305\u2308\u2317r;\u412B\u0180elp\u071F\u230F\u2313in\xE5\u078Ear\xF4\u0720h;\u4131f;\u62B7ed;\u41B5\u0280;cfot\u04F4\u232C\u2331\u233D\u2341are;\u6105in\u0100;t\u2338\u2339\u621Eie;\u69DDdo\xF4\u2319\u0280;celp\u0757\u234C\u2350\u235B\u2361al;\u62BA\u0100gr\u2355\u2359er\xF3\u1563\xE3\u234Darhk;\u6A17rod;\u6A3C\u0200cgpt\u236F\u2372\u2376\u237By;\u4451on;\u412Ff;\uC000\u{1D55A}a;\u43B9uest\u803B\xBF\u40BF\u0100ci\u238A\u238Fr;\uC000\u{1D4BE}n\u0280;Edsv\u04F4\u239B\u239D\u23A1\u04F3;\u62F9ot;\u62F5\u0100;v\u23A6\u23A7\u62F4;\u62F3\u0100;i\u0777\u23AElde;\u4129\u01EB\u23B8\0\u23BCcy;\u4456l\u803B\xEF\u40EF\u0300cfmosu\u23CC\u23D7\u23DC\u23E1\u23E7\u23F5\u0100iy\u23D1\u23D5rc;\u4135;\u4439r;\uC000\u{1D527}ath;\u4237pf;\uC000\u{1D55B}\u01E3\u23EC\0\u23F1r;\uC000\u{1D4BF}rcy;\u4458kcy;\u4454\u0400acfghjos\u240B\u2416\u2422\u2427\u242D\u2431\u2435\u243Bppa\u0100;v\u2413\u2414\u43BA;\u43F0\u0100ey\u241B\u2420dil;\u4137;\u443Ar;\uC000\u{1D528}reen;\u4138cy;\u4445cy;\u445Cpf;\uC000\u{1D55C}cr;\uC000\u{1D4C0}\u0B80ABEHabcdefghjlmnoprstuv\u2470\u2481\u2486\u248D\u2491\u250E\u253D\u255A\u2580\u264E\u265E\u2665\u2679\u267D\u269A\u26B2\u26D8\u275D\u2768\u278B\u27C0\u2801\u2812\u0180art\u2477\u247A\u247Cr\xF2\u09C6\xF2\u0395ail;\u691Barr;\u690E\u0100;g\u0994\u248B;\u6A8Bar;\u6962\u0963\u24A5\0\u24AA\0\u24B1\0\0\0\0\0\u24B5\u24BA\0\u24C6\u24C8\u24CD\0\u24F9ute;\u413Amptyv;\u69B4ra\xEE\u084Cbda;\u43BBg\u0180;dl\u088E\u24C1\u24C3;\u6991\xE5\u088E;\u6A85uo\u803B\xAB\u40ABr\u0400;bfhlpst\u0899\u24DE\u24E6\u24E9\u24EB\u24EE\u24F1\u24F5\u0100;f\u089D\u24E3s;\u691Fs;\u691D\xEB\u2252p;\u61ABl;\u6939im;\u6973l;\u61A2\u0180;ae\u24FF\u2500\u2504\u6AABil;\u6919\u0100;s\u2509\u250A\u6AAD;\uC000\u2AAD\uFE00\u0180abr\u2515\u2519\u251Drr;\u690Crk;\u6772\u0100ak\u2522\u252Cc\u0100ek\u2528\u252A;\u407B;\u405B\u0100es\u2531\u2533;\u698Bl\u0100du\u2539\u253B;\u698F;\u698D\u0200aeuy\u2546\u254B\u2556\u2558ron;\u413E\u0100di\u2550\u2554il;\u413C\xEC\u08B0\xE2\u2529;\u443B\u0200cqrs\u2563\u2566\u256D\u257Da;\u6936uo\u0100;r\u0E19\u1746\u0100du\u2572\u2577har;\u6967shar;\u694Bh;\u61B2\u0280;fgqs\u258B\u258C\u0989\u25F3\u25FF\u6264t\u0280ahlrt\u2598\u25A4\u25B7\u25C2\u25E8rrow\u0100;t\u0899\u25A1a\xE9\u24F6arpoon\u0100du\u25AF\u25B4own\xBB\u045Ap\xBB\u0966eftarrows;\u61C7ight\u0180ahs\u25CD\u25D6\u25DErrow\u0100;s\u08F4\u08A7arpoon\xF3\u0F98quigarro\xF7\u21F0hreetimes;\u62CB\u0180;qs\u258B\u0993\u25FAlan\xF4\u09AC\u0280;cdgs\u09AC\u260A\u260D\u261D\u2628c;\u6AA8ot\u0100;o\u2614\u2615\u6A7F\u0100;r\u261A\u261B\u6A81;\u6A83\u0100;e\u2622\u2625\uC000\u22DA\uFE00s;\u6A93\u0280adegs\u2633\u2639\u263D\u2649\u264Bppro\xF8\u24C6ot;\u62D6q\u0100gq\u2643\u2645\xF4\u0989gt\xF2\u248C\xF4\u099Bi\xED\u09B2\u0180ilr\u2655\u08E1\u265Asht;\u697C;\uC000\u{1D529}\u0100;E\u099C\u2663;\u6A91\u0161\u2669\u2676r\u0100du\u25B2\u266E\u0100;l\u0965\u2673;\u696Alk;\u6584cy;\u4459\u0280;acht\u0A48\u2688\u268B\u2691\u2696r\xF2\u25C1orne\xF2\u1D08ard;\u696Bri;\u65FA\u0100io\u269F\u26A4dot;\u4140ust\u0100;a\u26AC\u26AD\u63B0che\xBB\u26AD\u0200Eaes\u26BB\u26BD\u26C9\u26D4;\u6268p\u0100;p\u26C3\u26C4\u6A89rox\xBB\u26C4\u0100;q\u26CE\u26CF\u6A87\u0100;q\u26CE\u26BBim;\u62E6\u0400abnoptwz\u26E9\u26F4\u26F7\u271A\u272F\u2741\u2747\u2750\u0100nr\u26EE\u26F1g;\u67ECr;\u61FDr\xEB\u08C1g\u0180lmr\u26FF\u270D\u2714eft\u0100ar\u09E6\u2707ight\xE1\u09F2apsto;\u67FCight\xE1\u09FDparrow\u0100lr\u2725\u2729ef\xF4\u24EDight;\u61AC\u0180afl\u2736\u2739\u273Dr;\u6985;\uC000\u{1D55D}us;\u6A2Dimes;\u6A34\u0161\u274B\u274Fst;\u6217\xE1\u134E\u0180;ef\u2757\u2758\u1800\u65CAnge\xBB\u2758ar\u0100;l\u2764\u2765\u4028t;\u6993\u0280achmt\u2773\u2776\u277C\u2785\u2787r\xF2\u08A8orne\xF2\u1D8Car\u0100;d\u0F98\u2783;\u696D;\u600Eri;\u62BF\u0300achiqt\u2798\u279D\u0A40\u27A2\u27AE\u27BBquo;\u6039r;\uC000\u{1D4C1}m\u0180;eg\u09B2\u27AA\u27AC;\u6A8D;\u6A8F\u0100bu\u252A\u27B3o\u0100;r\u0E1F\u27B9;\u601Arok;\u4142\u8400<;cdhilqr\u082B\u27D2\u2639\u27DC\u27E0\u27E5\u27EA\u27F0\u0100ci\u27D7\u27D9;\u6AA6r;\u6A79re\xE5\u25F2mes;\u62C9arr;\u6976uest;\u6A7B\u0100Pi\u27F5\u27F9ar;\u6996\u0180;ef\u2800\u092D\u181B\u65C3r\u0100du\u2807\u280Dshar;\u694Ahar;\u6966\u0100en\u2817\u2821rtneqq;\uC000\u2268\uFE00\xC5\u281E\u0700Dacdefhilnopsu\u2840\u2845\u2882\u288E\u2893\u28A0\u28A5\u28A8\u28DA\u28E2\u28E4\u0A83\u28F3\u2902Dot;\u623A\u0200clpr\u284E\u2852\u2863\u287Dr\u803B\xAF\u40AF\u0100et\u2857\u2859;\u6642\u0100;e\u285E\u285F\u6720se\xBB\u285F\u0100;s\u103B\u2868to\u0200;dlu\u103B\u2873\u2877\u287Bow\xEE\u048Cef\xF4\u090F\xF0\u13D1ker;\u65AE\u0100oy\u2887\u288Cmma;\u6A29;\u443Cash;\u6014asuredangle\xBB\u1626r;\uC000\u{1D52A}o;\u6127\u0180cdn\u28AF\u28B4\u28C9ro\u803B\xB5\u40B5\u0200;acd\u1464\u28BD\u28C0\u28C4s\xF4\u16A7ir;\u6AF0ot\u80BB\xB7\u01B5us\u0180;bd\u28D2\u1903\u28D3\u6212\u0100;u\u1D3C\u28D8;\u6A2A\u0163\u28DE\u28E1p;\u6ADB\xF2\u2212\xF0\u0A81\u0100dp\u28E9\u28EEels;\u62A7f;\uC000\u{1D55E}\u0100ct\u28F8\u28FDr;\uC000\u{1D4C2}pos\xBB\u159D\u0180;lm\u2909\u290A\u290D\u43BCtimap;\u62B8\u0C00GLRVabcdefghijlmoprstuvw\u2942\u2953\u297E\u2989\u2998\u29DA\u29E9\u2A15\u2A1A\u2A58\u2A5D\u2A83\u2A95\u2AA4\u2AA8\u2B04\u2B07\u2B44\u2B7F\u2BAE\u2C34\u2C67\u2C7C\u2CE9\u0100gt\u2947\u294B;\uC000\u22D9\u0338\u0100;v\u2950\u0BCF\uC000\u226B\u20D2\u0180elt\u295A\u2972\u2976ft\u0100ar\u2961\u2967rrow;\u61CDightarrow;\u61CE;\uC000\u22D8\u0338\u0100;v\u297B\u0C47\uC000\u226A\u20D2ightarrow;\u61CF\u0100Dd\u298E\u2993ash;\u62AFash;\u62AE\u0280bcnpt\u29A3\u29A7\u29AC\u29B1\u29CCla\xBB\u02DEute;\u4144g;\uC000\u2220\u20D2\u0280;Eiop\u0D84\u29BC\u29C0\u29C5\u29C8;\uC000\u2A70\u0338d;\uC000\u224B\u0338s;\u4149ro\xF8\u0D84ur\u0100;a\u29D3\u29D4\u666El\u0100;s\u29D3\u0B38\u01F3\u29DF\0\u29E3p\u80BB\xA0\u0B37mp\u0100;e\u0BF9\u0C00\u0280aeouy\u29F4\u29FE\u2A03\u2A10\u2A13\u01F0\u29F9\0\u29FB;\u6A43on;\u4148dil;\u4146ng\u0100;d\u0D7E\u2A0Aot;\uC000\u2A6D\u0338p;\u6A42;\u443Dash;\u6013\u0380;Aadqsx\u0B92\u2A29\u2A2D\u2A3B\u2A41\u2A45\u2A50rr;\u61D7r\u0100hr\u2A33\u2A36k;\u6924\u0100;o\u13F2\u13F0ot;\uC000\u2250\u0338ui\xF6\u0B63\u0100ei\u2A4A\u2A4Ear;\u6928\xED\u0B98ist\u0100;s\u0BA0\u0B9Fr;\uC000\u{1D52B}\u0200Eest\u0BC5\u2A66\u2A79\u2A7C\u0180;qs\u0BBC\u2A6D\u0BE1\u0180;qs\u0BBC\u0BC5\u2A74lan\xF4\u0BE2i\xED\u0BEA\u0100;r\u0BB6\u2A81\xBB\u0BB7\u0180Aap\u2A8A\u2A8D\u2A91r\xF2\u2971rr;\u61AEar;\u6AF2\u0180;sv\u0F8D\u2A9C\u0F8C\u0100;d\u2AA1\u2AA2\u62FC;\u62FAcy;\u445A\u0380AEadest\u2AB7\u2ABA\u2ABE\u2AC2\u2AC5\u2AF6\u2AF9r\xF2\u2966;\uC000\u2266\u0338rr;\u619Ar;\u6025\u0200;fqs\u0C3B\u2ACE\u2AE3\u2AEFt\u0100ar\u2AD4\u2AD9rro\xF7\u2AC1ightarro\xF7\u2A90\u0180;qs\u0C3B\u2ABA\u2AEAlan\xF4\u0C55\u0100;s\u0C55\u2AF4\xBB\u0C36i\xED\u0C5D\u0100;r\u0C35\u2AFEi\u0100;e\u0C1A\u0C25i\xE4\u0D90\u0100pt\u2B0C\u2B11f;\uC000\u{1D55F}\u8180\xAC;in\u2B19\u2B1A\u2B36\u40ACn\u0200;Edv\u0B89\u2B24\u2B28\u2B2E;\uC000\u22F9\u0338ot;\uC000\u22F5\u0338\u01E1\u0B89\u2B33\u2B35;\u62F7;\u62F6i\u0100;v\u0CB8\u2B3C\u01E1\u0CB8\u2B41\u2B43;\u62FE;\u62FD\u0180aor\u2B4B\u2B63\u2B69r\u0200;ast\u0B7B\u2B55\u2B5A\u2B5Flle\xEC\u0B7Bl;\uC000\u2AFD\u20E5;\uC000\u2202\u0338lint;\u6A14\u0180;ce\u0C92\u2B70\u2B73u\xE5\u0CA5\u0100;c\u0C98\u2B78\u0100;e\u0C92\u2B7D\xF1\u0C98\u0200Aait\u2B88\u2B8B\u2B9D\u2BA7r\xF2\u2988rr\u0180;cw\u2B94\u2B95\u2B99\u619B;\uC000\u2933\u0338;\uC000\u219D\u0338ghtarrow\xBB\u2B95ri\u0100;e\u0CCB\u0CD6\u0380chimpqu\u2BBD\u2BCD\u2BD9\u2B04\u0B78\u2BE4\u2BEF\u0200;cer\u0D32\u2BC6\u0D37\u2BC9u\xE5\u0D45;\uC000\u{1D4C3}ort\u026D\u2B05\0\0\u2BD6ar\xE1\u2B56m\u0100;e\u0D6E\u2BDF\u0100;q\u0D74\u0D73su\u0100bp\u2BEB\u2BED\xE5\u0CF8\xE5\u0D0B\u0180bcp\u2BF6\u2C11\u2C19\u0200;Ees\u2BFF\u2C00\u0D22\u2C04\u6284;\uC000\u2AC5\u0338et\u0100;e\u0D1B\u2C0Bq\u0100;q\u0D23\u2C00c\u0100;e\u0D32\u2C17\xF1\u0D38\u0200;Ees\u2C22\u2C23\u0D5F\u2C27\u6285;\uC000\u2AC6\u0338et\u0100;e\u0D58\u2C2Eq\u0100;q\u0D60\u2C23\u0200gilr\u2C3D\u2C3F\u2C45\u2C47\xEC\u0BD7lde\u803B\xF1\u40F1\xE7\u0C43iangle\u0100lr\u2C52\u2C5Ceft\u0100;e\u0C1A\u2C5A\xF1\u0C26ight\u0100;e\u0CCB\u2C65\xF1\u0CD7\u0100;m\u2C6C\u2C6D\u43BD\u0180;es\u2C74\u2C75\u2C79\u4023ro;\u6116p;\u6007\u0480DHadgilrs\u2C8F\u2C94\u2C99\u2C9E\u2CA3\u2CB0\u2CB6\u2CD3\u2CE3ash;\u62ADarr;\u6904p;\uC000\u224D\u20D2ash;\u62AC\u0100et\u2CA8\u2CAC;\uC000\u2265\u20D2;\uC000>\u20D2nfin;\u69DE\u0180Aet\u2CBD\u2CC1\u2CC5rr;\u6902;\uC000\u2264\u20D2\u0100;r\u2CCA\u2CCD\uC000<\u20D2ie;\uC000\u22B4\u20D2\u0100At\u2CD8\u2CDCrr;\u6903rie;\uC000\u22B5\u20D2im;\uC000\u223C\u20D2\u0180Aan\u2CF0\u2CF4\u2D02rr;\u61D6r\u0100hr\u2CFA\u2CFDk;\u6923\u0100;o\u13E7\u13E5ear;\u6927\u1253\u1A95\0\0\0\0\0\0\0\0\0\0\0\0\0\u2D2D\0\u2D38\u2D48\u2D60\u2D65\u2D72\u2D84\u1B07\0\0\u2D8D\u2DAB\0\u2DC8\u2DCE\0\u2DDC\u2E19\u2E2B\u2E3E\u2E43\u0100cs\u2D31\u1A97ute\u803B\xF3\u40F3\u0100iy\u2D3C\u2D45r\u0100;c\u1A9E\u2D42\u803B\xF4\u40F4;\u443E\u0280abios\u1AA0\u2D52\u2D57\u01C8\u2D5Alac;\u4151v;\u6A38old;\u69BClig;\u4153\u0100cr\u2D69\u2D6Dir;\u69BF;\uC000\u{1D52C}\u036F\u2D79\0\0\u2D7C\0\u2D82n;\u42DBave\u803B\xF2\u40F2;\u69C1\u0100bm\u2D88\u0DF4ar;\u69B5\u0200acit\u2D95\u2D98\u2DA5\u2DA8r\xF2\u1A80\u0100ir\u2D9D\u2DA0r;\u69BEoss;\u69BBn\xE5\u0E52;\u69C0\u0180aei\u2DB1\u2DB5\u2DB9cr;\u414Dga;\u43C9\u0180cdn\u2DC0\u2DC5\u01CDron;\u43BF;\u69B6pf;\uC000\u{1D560}\u0180ael\u2DD4\u2DD7\u01D2r;\u69B7rp;\u69B9\u0380;adiosv\u2DEA\u2DEB\u2DEE\u2E08\u2E0D\u2E10\u2E16\u6228r\xF2\u1A86\u0200;efm\u2DF7\u2DF8\u2E02\u2E05\u6A5Dr\u0100;o\u2DFE\u2DFF\u6134f\xBB\u2DFF\u803B\xAA\u40AA\u803B\xBA\u40BAgof;\u62B6r;\u6A56lope;\u6A57;\u6A5B\u0180clo\u2E1F\u2E21\u2E27\xF2\u2E01ash\u803B\xF8\u40F8l;\u6298i\u016C\u2E2F\u2E34de\u803B\xF5\u40F5es\u0100;a\u01DB\u2E3As;\u6A36ml\u803B\xF6\u40F6bar;\u633D\u0AE1\u2E5E\0\u2E7D\0\u2E80\u2E9D\0\u2EA2\u2EB9\0\0\u2ECB\u0E9C\0\u2F13\0\0\u2F2B\u2FBC\0\u2FC8r\u0200;ast\u0403\u2E67\u2E72\u0E85\u8100\xB6;l\u2E6D\u2E6E\u40B6le\xEC\u0403\u0269\u2E78\0\0\u2E7Bm;\u6AF3;\u6AFDy;\u443Fr\u0280cimpt\u2E8B\u2E8F\u2E93\u1865\u2E97nt;\u4025od;\u402Eil;\u6030enk;\u6031r;\uC000\u{1D52D}\u0180imo\u2EA8\u2EB0\u2EB4\u0100;v\u2EAD\u2EAE\u43C6;\u43D5ma\xF4\u0A76ne;\u660E\u0180;tv\u2EBF\u2EC0\u2EC8\u43C0chfork\xBB\u1FFD;\u43D6\u0100au\u2ECF\u2EDFn\u0100ck\u2ED5\u2EDDk\u0100;h\u21F4\u2EDB;\u610E\xF6\u21F4s\u0480;abcdemst\u2EF3\u2EF4\u1908\u2EF9\u2EFD\u2F04\u2F06\u2F0A\u2F0E\u402Bcir;\u6A23ir;\u6A22\u0100ou\u1D40\u2F02;\u6A25;\u6A72n\u80BB\xB1\u0E9Dim;\u6A26wo;\u6A27\u0180ipu\u2F19\u2F20\u2F25ntint;\u6A15f;\uC000\u{1D561}nd\u803B\xA3\u40A3\u0500;Eaceinosu\u0EC8\u2F3F\u2F41\u2F44\u2F47\u2F81\u2F89\u2F92\u2F7E\u2FB6;\u6AB3p;\u6AB7u\xE5\u0ED9\u0100;c\u0ECE\u2F4C\u0300;acens\u0EC8\u2F59\u2F5F\u2F66\u2F68\u2F7Eppro\xF8\u2F43urlye\xF1\u0ED9\xF1\u0ECE\u0180aes\u2F6F\u2F76\u2F7Approx;\u6AB9qq;\u6AB5im;\u62E8i\xED\u0EDFme\u0100;s\u2F88\u0EAE\u6032\u0180Eas\u2F78\u2F90\u2F7A\xF0\u2F75\u0180dfp\u0EEC\u2F99\u2FAF\u0180als\u2FA0\u2FA5\u2FAAlar;\u632Eine;\u6312urf;\u6313\u0100;t\u0EFB\u2FB4\xEF\u0EFBrel;\u62B0\u0100ci\u2FC0\u2FC5r;\uC000\u{1D4C5};\u43C8ncsp;\u6008\u0300fiopsu\u2FDA\u22E2\u2FDF\u2FE5\u2FEB\u2FF1r;\uC000\u{1D52E}pf;\uC000\u{1D562}rime;\u6057cr;\uC000\u{1D4C6}\u0180aeo\u2FF8\u3009\u3013t\u0100ei\u2FFE\u3005rnion\xF3\u06B0nt;\u6A16st\u0100;e\u3010\u3011\u403F\xF1\u1F19\xF4\u0F14\u0A80ABHabcdefhilmnoprstux\u3040\u3051\u3055\u3059\u30E0\u310E\u312B\u3147\u3162\u3172\u318E\u3206\u3215\u3224\u3229\u3258\u326E\u3272\u3290\u32B0\u32B7\u0180art\u3047\u304A\u304Cr\xF2\u10B3\xF2\u03DDail;\u691Car\xF2\u1C65ar;\u6964\u0380cdenqrt\u3068\u3075\u3078\u307F\u308F\u3094\u30CC\u0100eu\u306D\u3071;\uC000\u223D\u0331te;\u4155i\xE3\u116Emptyv;\u69B3g\u0200;del\u0FD1\u3089\u308B\u308D;\u6992;\u69A5\xE5\u0FD1uo\u803B\xBB\u40BBr\u0580;abcfhlpstw\u0FDC\u30AC\u30AF\u30B7\u30B9\u30BC\u30BE\u30C0\u30C3\u30C7\u30CAp;\u6975\u0100;f\u0FE0\u30B4s;\u6920;\u6933s;\u691E\xEB\u225D\xF0\u272El;\u6945im;\u6974l;\u61A3;\u619D\u0100ai\u30D1\u30D5il;\u691Ao\u0100;n\u30DB\u30DC\u6236al\xF3\u0F1E\u0180abr\u30E7\u30EA\u30EEr\xF2\u17E5rk;\u6773\u0100ak\u30F3\u30FDc\u0100ek\u30F9\u30FB;\u407D;\u405D\u0100es\u3102\u3104;\u698Cl\u0100du\u310A\u310C;\u698E;\u6990\u0200aeuy\u3117\u311C\u3127\u3129ron;\u4159\u0100di\u3121\u3125il;\u4157\xEC\u0FF2\xE2\u30FA;\u4440\u0200clqs\u3134\u3137\u313D\u3144a;\u6937dhar;\u6969uo\u0100;r\u020E\u020Dh;\u61B3\u0180acg\u314E\u315F\u0F44l\u0200;ips\u0F78\u3158\u315B\u109Cn\xE5\u10BBar\xF4\u0FA9t;\u65AD\u0180ilr\u3169\u1023\u316Esht;\u697D;\uC000\u{1D52F}\u0100ao\u3177\u3186r\u0100du\u317D\u317F\xBB\u047B\u0100;l\u1091\u3184;\u696C\u0100;v\u318B\u318C\u43C1;\u43F1\u0180gns\u3195\u31F9\u31FCht\u0300ahlrst\u31A4\u31B0\u31C2\u31D8\u31E4\u31EErrow\u0100;t\u0FDC\u31ADa\xE9\u30C8arpoon\u0100du\u31BB\u31BFow\xEE\u317Ep\xBB\u1092eft\u0100ah\u31CA\u31D0rrow\xF3\u0FEAarpoon\xF3\u0551ightarrows;\u61C9quigarro\xF7\u30CBhreetimes;\u62CCg;\u42DAingdotse\xF1\u1F32\u0180ahm\u320D\u3210\u3213r\xF2\u0FEAa\xF2\u0551;\u600Foust\u0100;a\u321E\u321F\u63B1che\xBB\u321Fmid;\u6AEE\u0200abpt\u3232\u323D\u3240\u3252\u0100nr\u3237\u323Ag;\u67EDr;\u61FEr\xEB\u1003\u0180afl\u3247\u324A\u324Er;\u6986;\uC000\u{1D563}us;\u6A2Eimes;\u6A35\u0100ap\u325D\u3267r\u0100;g\u3263\u3264\u4029t;\u6994olint;\u6A12ar\xF2\u31E3\u0200achq\u327B\u3280\u10BC\u3285quo;\u603Ar;\uC000\u{1D4C7}\u0100bu\u30FB\u328Ao\u0100;r\u0214\u0213\u0180hir\u3297\u329B\u32A0re\xE5\u31F8mes;\u62CAi\u0200;efl\u32AA\u1059\u1821\u32AB\u65B9tri;\u69CEluhar;\u6968;\u611E\u0D61\u32D5\u32DB\u32DF\u332C\u3338\u3371\0\u337A\u33A4\0\0\u33EC\u33F0\0\u3428\u3448\u345A\u34AD\u34B1\u34CA\u34F1\0\u3616\0\0\u3633cute;\u415Bqu\xEF\u27BA\u0500;Eaceinpsy\u11ED\u32F3\u32F5\u32FF\u3302\u330B\u330F\u331F\u3326\u3329;\u6AB4\u01F0\u32FA\0\u32FC;\u6AB8on;\u4161u\xE5\u11FE\u0100;d\u11F3\u3307il;\u415Frc;\u415D\u0180Eas\u3316\u3318\u331B;\u6AB6p;\u6ABAim;\u62E9olint;\u6A13i\xED\u1204;\u4441ot\u0180;be\u3334\u1D47\u3335\u62C5;\u6A66\u0380Aacmstx\u3346\u334A\u3357\u335B\u335E\u3363\u336Drr;\u61D8r\u0100hr\u3350\u3352\xEB\u2228\u0100;o\u0A36\u0A34t\u803B\xA7\u40A7i;\u403Bwar;\u6929m\u0100in\u3369\xF0nu\xF3\xF1t;\u6736r\u0100;o\u3376\u2055\uC000\u{1D530}\u0200acoy\u3382\u3386\u3391\u33A0rp;\u666F\u0100hy\u338B\u338Fcy;\u4449;\u4448rt\u026D\u3399\0\0\u339Ci\xE4\u1464ara\xEC\u2E6F\u803B\xAD\u40AD\u0100gm\u33A8\u33B4ma\u0180;fv\u33B1\u33B2\u33B2\u43C3;\u43C2\u0400;deglnpr\u12AB\u33C5\u33C9\u33CE\u33D6\u33DE\u33E1\u33E6ot;\u6A6A\u0100;q\u12B1\u12B0\u0100;E\u33D3\u33D4\u6A9E;\u6AA0\u0100;E\u33DB\u33DC\u6A9D;\u6A9Fe;\u6246lus;\u6A24arr;\u6972ar\xF2\u113D\u0200aeit\u33F8\u3408\u340F\u3417\u0100ls\u33FD\u3404lsetm\xE9\u336Ahp;\u6A33parsl;\u69E4\u0100dl\u1463\u3414e;\u6323\u0100;e\u341C\u341D\u6AAA\u0100;s\u3422\u3423\u6AAC;\uC000\u2AAC\uFE00\u0180flp\u342E\u3433\u3442tcy;\u444C\u0100;b\u3438\u3439\u402F\u0100;a\u343E\u343F\u69C4r;\u633Ff;\uC000\u{1D564}a\u0100dr\u344D\u0402es\u0100;u\u3454\u3455\u6660it\xBB\u3455\u0180csu\u3460\u3479\u349F\u0100au\u3465\u346Fp\u0100;s\u1188\u346B;\uC000\u2293\uFE00p\u0100;s\u11B4\u3475;\uC000\u2294\uFE00u\u0100bp\u347F\u348F\u0180;es\u1197\u119C\u3486et\u0100;e\u1197\u348D\xF1\u119D\u0180;es\u11A8\u11AD\u3496et\u0100;e\u11A8\u349D\xF1\u11AE\u0180;af\u117B\u34A6\u05B0r\u0165\u34AB\u05B1\xBB\u117Car\xF2\u1148\u0200cemt\u34B9\u34BE\u34C2\u34C5r;\uC000\u{1D4C8}tm\xEE\xF1i\xEC\u3415ar\xE6\u11BE\u0100ar\u34CE\u34D5r\u0100;f\u34D4\u17BF\u6606\u0100an\u34DA\u34EDight\u0100ep\u34E3\u34EApsilo\xEE\u1EE0h\xE9\u2EAFs\xBB\u2852\u0280bcmnp\u34FB\u355E\u1209\u358B\u358E\u0480;Edemnprs\u350E\u350F\u3511\u3515\u351E\u3523\u352C\u3531\u3536\u6282;\u6AC5ot;\u6ABD\u0100;d\u11DA\u351Aot;\u6AC3ult;\u6AC1\u0100Ee\u3528\u352A;\u6ACB;\u628Alus;\u6ABFarr;\u6979\u0180eiu\u353D\u3552\u3555t\u0180;en\u350E\u3545\u354Bq\u0100;q\u11DA\u350Feq\u0100;q\u352B\u3528m;\u6AC7\u0100bp\u355A\u355C;\u6AD5;\u6AD3c\u0300;acens\u11ED\u356C\u3572\u3579\u357B\u3326ppro\xF8\u32FAurlye\xF1\u11FE\xF1\u11F3\u0180aes\u3582\u3588\u331Bppro\xF8\u331Aq\xF1\u3317g;\u666A\u0680123;Edehlmnps\u35A9\u35AC\u35AF\u121C\u35B2\u35B4\u35C0\u35C9\u35D5\u35DA\u35DF\u35E8\u35ED\u803B\xB9\u40B9\u803B\xB2\u40B2\u803B\xB3\u40B3;\u6AC6\u0100os\u35B9\u35BCt;\u6ABEub;\u6AD8\u0100;d\u1222\u35C5ot;\u6AC4s\u0100ou\u35CF\u35D2l;\u67C9b;\u6AD7arr;\u697Bult;\u6AC2\u0100Ee\u35E4\u35E6;\u6ACC;\u628Blus;\u6AC0\u0180eiu\u35F4\u3609\u360Ct\u0180;en\u121C\u35FC\u3602q\u0100;q\u1222\u35B2eq\u0100;q\u35E7\u35E4m;\u6AC8\u0100bp\u3611\u3613;\u6AD4;\u6AD6\u0180Aan\u361C\u3620\u362Drr;\u61D9r\u0100hr\u3626\u3628\xEB\u222E\u0100;o\u0A2B\u0A29war;\u692Alig\u803B\xDF\u40DF\u0BE1\u3651\u365D\u3660\u12CE\u3673\u3679\0\u367E\u36C2\0\0\0\0\0\u36DB\u3703\0\u3709\u376C\0\0\0\u3787\u0272\u3656\0\0\u365Bget;\u6316;\u43C4r\xEB\u0E5F\u0180aey\u3666\u366B\u3670ron;\u4165dil;\u4163;\u4442lrec;\u6315r;\uC000\u{1D531}\u0200eiko\u3686\u369D\u36B5\u36BC\u01F2\u368B\0\u3691e\u01004f\u1284\u1281a\u0180;sv\u3698\u3699\u369B\u43B8ym;\u43D1\u0100cn\u36A2\u36B2k\u0100as\u36A8\u36AEppro\xF8\u12C1im\xBB\u12ACs\xF0\u129E\u0100as\u36BA\u36AE\xF0\u12C1rn\u803B\xFE\u40FE\u01EC\u031F\u36C6\u22E7es\u8180\xD7;bd\u36CF\u36D0\u36D8\u40D7\u0100;a\u190F\u36D5r;\u6A31;\u6A30\u0180eps\u36E1\u36E3\u3700\xE1\u2A4D\u0200;bcf\u0486\u36EC\u36F0\u36F4ot;\u6336ir;\u6AF1\u0100;o\u36F9\u36FC\uC000\u{1D565}rk;\u6ADA\xE1\u3362rime;\u6034\u0180aip\u370F\u3712\u3764d\xE5\u1248\u0380adempst\u3721\u374D\u3740\u3751\u3757\u375C\u375Fngle\u0280;dlqr\u3730\u3731\u3736\u3740\u3742\u65B5own\xBB\u1DBBeft\u0100;e\u2800\u373E\xF1\u092E;\u625Cight\u0100;e\u32AA\u374B\xF1\u105Aot;\u65ECinus;\u6A3Alus;\u6A39b;\u69CDime;\u6A3Bezium;\u63E2\u0180cht\u3772\u377D\u3781\u0100ry\u3777\u377B;\uC000\u{1D4C9};\u4446cy;\u445Brok;\u4167\u0100io\u378B\u378Ex\xF4\u1777head\u0100lr\u3797\u37A0eftarro\xF7\u084Fightarrow\xBB\u0F5D\u0900AHabcdfghlmoprstuw\u37D0\u37D3\u37D7\u37E4\u37F0\u37FC\u380E\u381C\u3823\u3834\u3851\u385D\u386B\u38A9\u38CC\u38D2\u38EA\u38F6r\xF2\u03EDar;\u6963\u0100cr\u37DC\u37E2ute\u803B\xFA\u40FA\xF2\u1150r\u01E3\u37EA\0\u37EDy;\u445Eve;\u416D\u0100iy\u37F5\u37FArc\u803B\xFB\u40FB;\u4443\u0180abh\u3803\u3806\u380Br\xF2\u13ADlac;\u4171a\xF2\u13C3\u0100ir\u3813\u3818sht;\u697E;\uC000\u{1D532}rave\u803B\xF9\u40F9\u0161\u3827\u3831r\u0100lr\u382C\u382E\xBB\u0957\xBB\u1083lk;\u6580\u0100ct\u3839\u384D\u026F\u383F\0\0\u384Arn\u0100;e\u3845\u3846\u631Cr\xBB\u3846op;\u630Fri;\u65F8\u0100al\u3856\u385Acr;\u416B\u80BB\xA8\u0349\u0100gp\u3862\u3866on;\u4173f;\uC000\u{1D566}\u0300adhlsu\u114B\u3878\u387D\u1372\u3891\u38A0own\xE1\u13B3arpoon\u0100lr\u3888\u388Cef\xF4\u382Digh\xF4\u382Fi\u0180;hl\u3899\u389A\u389C\u43C5\xBB\u13FAon\xBB\u389Aparrows;\u61C8\u0180cit\u38B0\u38C4\u38C8\u026F\u38B6\0\0\u38C1rn\u0100;e\u38BC\u38BD\u631Dr\xBB\u38BDop;\u630Eng;\u416Fri;\u65F9cr;\uC000\u{1D4CA}\u0180dir\u38D9\u38DD\u38E2ot;\u62F0lde;\u4169i\u0100;f\u3730\u38E8\xBB\u1813\u0100am\u38EF\u38F2r\xF2\u38A8l\u803B\xFC\u40FCangle;\u69A7\u0780ABDacdeflnoprsz\u391C\u391F\u3929\u392D\u39B5\u39B8\u39BD\u39DF\u39E4\u39E8\u39F3\u39F9\u39FD\u3A01\u3A20r\xF2\u03F7ar\u0100;v\u3926\u3927\u6AE8;\u6AE9as\xE8\u03E1\u0100nr\u3932\u3937grt;\u699C\u0380eknprst\u34E3\u3946\u394B\u3952\u395D\u3964\u3996app\xE1\u2415othin\xE7\u1E96\u0180hir\u34EB\u2EC8\u3959op\xF4\u2FB5\u0100;h\u13B7\u3962\xEF\u318D\u0100iu\u3969\u396Dgm\xE1\u33B3\u0100bp\u3972\u3984setneq\u0100;q\u397D\u3980\uC000\u228A\uFE00;\uC000\u2ACB\uFE00setneq\u0100;q\u398F\u3992\uC000\u228B\uFE00;\uC000\u2ACC\uFE00\u0100hr\u399B\u399Fet\xE1\u369Ciangle\u0100lr\u39AA\u39AFeft\xBB\u0925ight\xBB\u1051y;\u4432ash\xBB\u1036\u0180elr\u39C4\u39D2\u39D7\u0180;be\u2DEA\u39CB\u39CFar;\u62BBq;\u625Alip;\u62EE\u0100bt\u39DC\u1468a\xF2\u1469r;\uC000\u{1D533}tr\xE9\u39AEsu\u0100bp\u39EF\u39F1\xBB\u0D1C\xBB\u0D59pf;\uC000\u{1D567}ro\xF0\u0EFBtr\xE9\u39B4\u0100cu\u3A06\u3A0Br;\uC000\u{1D4CB}\u0100bp\u3A10\u3A18n\u0100Ee\u3980\u3A16\xBB\u397En\u0100Ee\u3992\u3A1E\xBB\u3990igzag;\u699A\u0380cefoprs\u3A36\u3A3B\u3A56\u3A5B\u3A54\u3A61\u3A6Airc;\u4175\u0100di\u3A40\u3A51\u0100bg\u3A45\u3A49ar;\u6A5Fe\u0100;q\u15FA\u3A4F;\u6259erp;\u6118r;\uC000\u{1D534}pf;\uC000\u{1D568}\u0100;e\u1479\u3A66at\xE8\u1479cr;\uC000\u{1D4CC}\u0AE3\u178E\u3A87\0\u3A8B\0\u3A90\u3A9B\0\0\u3A9D\u3AA8\u3AAB\u3AAF\0\0\u3AC3\u3ACE\0\u3AD8\u17DC\u17DFtr\xE9\u17D1r;\uC000\u{1D535}\u0100Aa\u3A94\u3A97r\xF2\u03C3r\xF2\u09F6;\u43BE\u0100Aa\u3AA1\u3AA4r\xF2\u03B8r\xF2\u09EBa\xF0\u2713is;\u62FB\u0180dpt\u17A4\u3AB5\u3ABE\u0100fl\u3ABA\u17A9;\uC000\u{1D569}im\xE5\u17B2\u0100Aa\u3AC7\u3ACAr\xF2\u03CEr\xF2\u0A01\u0100cq\u3AD2\u17B8r;\uC000\u{1D4CD}\u0100pt\u17D6\u3ADCr\xE9\u17D4\u0400acefiosu\u3AF0\u3AFD\u3B08\u3B0C\u3B11\u3B15\u3B1B\u3B21c\u0100uy\u3AF6\u3AFBte\u803B\xFD\u40FD;\u444F\u0100iy\u3B02\u3B06rc;\u4177;\u444Bn\u803B\xA5\u40A5r;\uC000\u{1D536}cy;\u4457pf;\uC000\u{1D56A}cr;\uC000\u{1D4CE}\u0100cm\u3B26\u3B29y;\u444El\u803B\xFF\u40FF\u0500acdefhiosw\u3B42\u3B48\u3B54\u3B58\u3B64\u3B69\u3B6D\u3B74\u3B7A\u3B80cute;\u417A\u0100ay\u3B4D\u3B52ron;\u417E;\u4437ot;\u417C\u0100et\u3B5D\u3B61tr\xE6\u155Fa;\u43B6r;\uC000\u{1D537}cy;\u4436grarr;\u61DDpf;\uC000\u{1D56B}cr;\uC000\u{1D4CF}\u0100jn\u3B85\u3B87;\u600Dj;\u600C'.split("").map(le=>le.charCodeAt(0))),Ie=new Uint16Array("\u0200aglq \x1B\u026D\0\0p;\u4026os;\u4027t;\u403Et;\u403Cuot;\u4022".split("").map(le=>le.charCodeAt(0))),Yi;const Ei=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),rr=(Yi=String.fromCodePoint)!==null&&Yi!==void 0?Yi:function(le){let pe="";return le>65535&&(le-=65536,pe+=String.fromCharCode(le>>>10&1023|55296),le=56320|le&1023),pe+=String.fromCharCode(le),pe};function Br(le){var pe;return le>=55296&&le<=57343||le>1114111?65533:(pe=Ei.get(le))!==null&&pe!==void 0?pe:le}function Gr(le){return rr(Br(le))}var yr;(function(le){le[le.NUM=35]="NUM",le[le.SEMI=59]="SEMI",le[le.EQUALS=61]="EQUALS",le[le.ZERO=48]="ZERO",le[le.NINE=57]="NINE",le[le.LOWER_A=97]="LOWER_A",le[le.LOWER_F=102]="LOWER_F",le[le.LOWER_X=120]="LOWER_X",le[le.LOWER_Z=122]="LOWER_Z",le[le.UPPER_A=65]="UPPER_A",le[le.UPPER_F=70]="UPPER_F",le[le.UPPER_Z=90]="UPPER_Z"})(yr||(yr={}));const Vi=32;var hi;(function(le){le[le.VALUE_LENGTH=49152]="VALUE_LENGTH",le[le.BRANCH_LENGTH=16256]="BRANCH_LENGTH",le[le.JUMP_TABLE=127]="JUMP_TABLE"})(hi||(hi={}));function Jt(le){return le>=yr.ZERO&&le<=yr.NINE}function Wt(le){return le>=yr.UPPER_A&&le<=yr.UPPER_F||le>=yr.LOWER_A&&le<=yr.LOWER_F}function jt(le){return le>=yr.UPPER_A&&le<=yr.UPPER_Z||le>=yr.LOWER_A&&le<=yr.LOWER_Z||Jt(le)}function gi(le){return le===yr.EQUALS||jt(le)}var ii;(function(le){le[le.EntityStart=0]="EntityStart",le[le.NumericStart=1]="NumericStart",le[le.NumericDecimal=2]="NumericDecimal",le[le.NumericHex=3]="NumericHex",le[le.NamedEntity=4]="NamedEntity"})(ii||(ii={}));var Pi;(function(le){le[le.Legacy=0]="Legacy",le[le.Strict=1]="Strict",le[le.Attribute=2]="Attribute"})(Pi||(Pi={}));class In{constructor(pe,Ke,Dt){this.decodeTree=pe,this.emitCodePoint=Ke,this.errors=Dt,this.state=ii.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Pi.Strict}startEntity(pe){this.decodeMode=pe,this.state=ii.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(pe,Ke){switch(this.state){case ii.EntityStart:return pe.charCodeAt(Ke)===yr.NUM?(this.state=ii.NumericStart,this.consumed+=1,this.stateNumericStart(pe,Ke+1)):(this.state=ii.NamedEntity,this.stateNamedEntity(pe,Ke));case ii.NumericStart:return this.stateNumericStart(pe,Ke);case ii.NumericDecimal:return this.stateNumericDecimal(pe,Ke);case ii.NumericHex:return this.stateNumericHex(pe,Ke);case ii.NamedEntity:return this.stateNamedEntity(pe,Ke)}}stateNumericStart(pe,Ke){return Ke>=pe.length?-1:(pe.charCodeAt(Ke)|Vi)===yr.LOWER_X?(this.state=ii.NumericHex,this.consumed+=1,this.stateNumericHex(pe,Ke+1)):(this.state=ii.NumericDecimal,this.stateNumericDecimal(pe,Ke))}addToNumericResult(pe,Ke,Dt,Hn){if(Ke!==Dt){const Ii=Dt-Ke;this.result=this.result*Math.pow(Hn,Ii)+parseInt(pe.substr(Ke,Ii),Hn),this.consumed+=Ii}}stateNumericHex(pe,Ke){const Dt=Ke;for(;Ke<pe.length;){const Hn=pe.charCodeAt(Ke);if(Jt(Hn)||Wt(Hn))Ke+=1;else return this.addToNumericResult(pe,Dt,Ke,16),this.emitNumericEntity(Hn,3)}return this.addToNumericResult(pe,Dt,Ke,16),-1}stateNumericDecimal(pe,Ke){const Dt=Ke;for(;Ke<pe.length;){const Hn=pe.charCodeAt(Ke);if(Jt(Hn))Ke+=1;else return this.addToNumericResult(pe,Dt,Ke,10),this.emitNumericEntity(Hn,2)}return this.addToNumericResult(pe,Dt,Ke,10),-1}emitNumericEntity(pe,Ke){var Dt;if(this.consumed<=Ke)return(Dt=this.errors)===null||Dt===void 0||Dt.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(pe===yr.SEMI)this.consumed+=1;else if(this.decodeMode===Pi.Strict)return 0;return this.emitCodePoint(Br(this.result),this.consumed),this.errors&&(pe!==yr.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(pe,Ke){const{decodeTree:Dt}=this;let Hn=Dt[this.treeIndex],Ii=(Hn&hi.VALUE_LENGTH)>>14;for(;Ke<pe.length;Ke++,this.excess++){const $i=pe.charCodeAt(Ke);if(this.treeIndex=on(Dt,Hn,this.treeIndex+Math.max(1,Ii),$i),this.treeIndex<0)return this.result===0||this.decodeMode===Pi.Attribute&&(Ii===0||gi($i))?0:this.emitNotTerminatedNamedEntity();if(Hn=Dt[this.treeIndex],Ii=(Hn&hi.VALUE_LENGTH)>>14,Ii!==0){if($i===yr.SEMI)return this.emitNamedEntityData(this.treeIndex,Ii,this.consumed+this.excess);this.decodeMode!==Pi.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var pe;const{result:Ke,decodeTree:Dt}=this,Hn=(Dt[Ke]&hi.VALUE_LENGTH)>>14;return this.emitNamedEntityData(Ke,Hn,this.consumed),(pe=this.errors)===null||pe===void 0||pe.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(pe,Ke,Dt){const{decodeTree:Hn}=this;return this.emitCodePoint(Ke===1?Hn[pe]&~hi.VALUE_LENGTH:Hn[pe+1],Dt),Ke===3&&this.emitCodePoint(Hn[pe+2],Dt),Dt}end(){var pe;switch(this.state){case ii.NamedEntity:return this.result!==0&&(this.decodeMode!==Pi.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case ii.NumericDecimal:return this.emitNumericEntity(0,2);case ii.NumericHex:return this.emitNumericEntity(0,3);case ii.NumericStart:return(pe=this.errors)===null||pe===void 0||pe.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case ii.EntityStart:return 0}}}function fi(le){let pe="";const Ke=new In(le,Dt=>pe+=rr(Dt));return function(Hn,Ii){let $i=0,so=0;for(;(so=Hn.indexOf("&",so))>=0;){pe+=Hn.slice($i,so),Ke.startEntity(Ii);const Ti=Ke.write(Hn,so+1);if(Ti<0){$i=so+Ke.end();break}$i=so+Ti,so=Ti===0?$i+1:$i}const Lo=pe+Hn.slice($i);return pe="",Lo}}function on(le,pe,Ke,Dt){const Hn=(pe&hi.BRANCH_LENGTH)>>7,Ii=pe&hi.JUMP_TABLE;if(Hn===0)return Ii!==0&&Dt===Ii?Ke:-1;if(Ii){const Lo=Dt-Ii;return Lo<0||Lo>=Hn?-1:le[Ke+Lo]-1}let $i=Ke,so=$i+Hn-1;for(;$i<=so;){const Lo=$i+so>>>1,Ti=le[Lo];if(Ti<Dt)$i=Lo+1;else if(Ti>Dt)so=Lo-1;else return le[Lo+Hn]}return-1}const Gt=fi(wr),li=fi(Ie);function vt(le,pe=Pi.Legacy){return Gt(le,pe)}function Sn(le){return Gt(le,Pi.Attribute)}function ri(le){return Gt(le,Pi.Strict)}function ki(le){return li(le,Pi.Strict)}var zt;(function(le){le.HTML="http://www.w3.org/1999/xhtml",le.MATHML="http://www.w3.org/1998/Math/MathML",le.SVG="http://www.w3.org/2000/svg",le.XLINK="http://www.w3.org/1999/xlink",le.XML="http://www.w3.org/XML/1998/namespace",le.XMLNS="http://www.w3.org/2000/xmlns/"})(zt||(zt={}));var wn;(function(le){le.TYPE="type",le.ACTION="action",le.ENCODING="encoding",le.PROMPT="prompt",le.NAME="name",le.COLOR="color",le.FACE="face",le.SIZE="size"})(wn||(wn={}));var oi;(function(le){le.NO_QUIRKS="no-quirks",le.QUIRKS="quirks",le.LIMITED_QUIRKS="limited-quirks"})(oi||(oi={}));var qt;(function(le){le.A="a",le.ADDRESS="address",le.ANNOTATION_XML="annotation-xml",le.APPLET="applet",le.AREA="area",le.ARTICLE="article",le.ASIDE="aside",le.B="b",le.BASE="base",le.BASEFONT="basefont",le.BGSOUND="bgsound",le.BIG="big",le.BLOCKQUOTE="blockquote",le.BODY="body",le.BR="br",le.BUTTON="button",le.CAPTION="caption",le.CENTER="center",le.CODE="code",le.COL="col",le.COLGROUP="colgroup",le.DD="dd",le.DESC="desc",le.DETAILS="details",le.DIALOG="dialog",le.DIR="dir",le.DIV="div",le.DL="dl",le.DT="dt",le.EM="em",le.EMBED="embed",le.FIELDSET="fieldset",le.FIGCAPTION="figcaption",le.FIGURE="figure",le.FONT="font",le.FOOTER="footer",le.FOREIGN_OBJECT="foreignObject",le.FORM="form",le.FRAME="frame",le.FRAMESET="frameset",le.H1="h1",le.H2="h2",le.H3="h3",le.H4="h4",le.H5="h5",le.H6="h6",le.HEAD="head",le.HEADER="header",le.HGROUP="hgroup",le.HR="hr",le.HTML="html",le.I="i",le.IMG="img",le.IMAGE="image",le.INPUT="input",le.IFRAME="iframe",le.KEYGEN="keygen",le.LABEL="label",le.LI="li",le.LINK="link",le.LISTING="listing",le.MAIN="main",le.MALIGNMARK="malignmark",le.MARQUEE="marquee",le.MATH="math",le.MENU="menu",le.META="meta",le.MGLYPH="mglyph",le.MI="mi",le.MO="mo",le.MN="mn",le.MS="ms",le.MTEXT="mtext",le.NAV="nav",le.NOBR="nobr",le.NOFRAMES="noframes",le.NOEMBED="noembed",le.NOSCRIPT="noscript",le.OBJECT="object",le.OL="ol",le.OPTGROUP="optgroup",le.OPTION="option",le.P="p",le.PARAM="param",le.PLAINTEXT="plaintext",le.PRE="pre",le.RB="rb",le.RP="rp",le.RT="rt",le.RTC="rtc",le.RUBY="ruby",le.S="s",le.SCRIPT="script",le.SEARCH="search",le.SECTION="section",le.SELECT="select",le.SOURCE="source",le.SMALL="small",le.SPAN="span",le.STRIKE="strike",le.STRONG="strong",le.STYLE="style",le.SUB="sub",le.SUMMARY="summary",le.SUP="sup",le.TABLE="table",le.TBODY="tbody",le.TEMPLATE="template",le.TEXTAREA="textarea",le.TFOOT="tfoot",le.TD="td",le.TH="th",le.THEAD="thead",le.TITLE="title",le.TR="tr",le.TRACK="track",le.TT="tt",le.U="u",le.UL="ul",le.SVG="svg",le.VAR="var",le.WBR="wbr",le.XMP="xmp"})(qt||(qt={}));var Be;(function(le){le[le.UNKNOWN=0]="UNKNOWN",le[le.A=1]="A",le[le.ADDRESS=2]="ADDRESS",le[le.ANNOTATION_XML=3]="ANNOTATION_XML",le[le.APPLET=4]="APPLET",le[le.AREA=5]="AREA",le[le.ARTICLE=6]="ARTICLE",le[le.ASIDE=7]="ASIDE",le[le.B=8]="B",le[le.BASE=9]="BASE",le[le.BASEFONT=10]="BASEFONT",le[le.BGSOUND=11]="BGSOUND",le[le.BIG=12]="BIG",le[le.BLOCKQUOTE=13]="BLOCKQUOTE",le[le.BODY=14]="BODY",le[le.BR=15]="BR",le[le.BUTTON=16]="BUTTON",le[le.CAPTION=17]="CAPTION",le[le.CENTER=18]="CENTER",le[le.CODE=19]="CODE",le[le.COL=20]="COL",le[le.COLGROUP=21]="COLGROUP",le[le.DD=22]="DD",le[le.DESC=23]="DESC",le[le.DETAILS=24]="DETAILS",le[le.DIALOG=25]="DIALOG",le[le.DIR=26]="DIR",le[le.DIV=27]="DIV",le[le.DL=28]="DL",le[le.DT=29]="DT",le[le.EM=30]="EM",le[le.EMBED=31]="EMBED",le[le.FIELDSET=32]="FIELDSET",le[le.FIGCAPTION=33]="FIGCAPTION",le[le.FIGURE=34]="FIGURE",le[le.FONT=35]="FONT",le[le.FOOTER=36]="FOOTER",le[le.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",le[le.FORM=38]="FORM",le[le.FRAME=39]="FRAME",le[le.FRAMESET=40]="FRAMESET",le[le.H1=41]="H1",le[le.H2=42]="H2",le[le.H3=43]="H3",le[le.H4=44]="H4",le[le.H5=45]="H5",le[le.H6=46]="H6",le[le.HEAD=47]="HEAD",le[le.HEADER=48]="HEADER",le[le.HGROUP=49]="HGROUP",le[le.HR=50]="HR",le[le.HTML=51]="HTML",le[le.I=52]="I",le[le.IMG=53]="IMG",le[le.IMAGE=54]="IMAGE",le[le.INPUT=55]="INPUT",le[le.IFRAME=56]="IFRAME",le[le.KEYGEN=57]="KEYGEN",le[le.LABEL=58]="LABEL",le[le.LI=59]="LI",le[le.LINK=60]="LINK",le[le.LISTING=61]="LISTING",le[le.MAIN=62]="MAIN",le[le.MALIGNMARK=63]="MALIGNMARK",le[le.MARQUEE=64]="MARQUEE",le[le.MATH=65]="MATH",le[le.MENU=66]="MENU",le[le.META=67]="META",le[le.MGLYPH=68]="MGLYPH",le[le.MI=69]="MI",le[le.MO=70]="MO",le[le.MN=71]="MN",le[le.MS=72]="MS",le[le.MTEXT=73]="MTEXT",le[le.NAV=74]="NAV",le[le.NOBR=75]="NOBR",le[le.NOFRAMES=76]="NOFRAMES",le[le.NOEMBED=77]="NOEMBED",le[le.NOSCRIPT=78]="NOSCRIPT",le[le.OBJECT=79]="OBJECT",le[le.OL=80]="OL",le[le.OPTGROUP=81]="OPTGROUP",le[le.OPTION=82]="OPTION",le[le.P=83]="P",le[le.PARAM=84]="PARAM",le[le.PLAINTEXT=85]="PLAINTEXT",le[le.PRE=86]="PRE",le[le.RB=87]="RB",le[le.RP=88]="RP",le[le.RT=89]="RT",le[le.RTC=90]="RTC",le[le.RUBY=91]="RUBY",le[le.S=92]="S",le[le.SCRIPT=93]="SCRIPT",le[le.SEARCH=94]="SEARCH",le[le.SECTION=95]="SECTION",le[le.SELECT=96]="SELECT",le[le.SOURCE=97]="SOURCE",le[le.SMALL=98]="SMALL",le[le.SPAN=99]="SPAN",le[le.STRIKE=100]="STRIKE",le[le.STRONG=101]="STRONG",le[le.STYLE=102]="STYLE",le[le.SUB=103]="SUB",le[le.SUMMARY=104]="SUMMARY",le[le.SUP=105]="SUP",le[le.TABLE=106]="TABLE",le[le.TBODY=107]="TBODY",le[le.TEMPLATE=108]="TEMPLATE",le[le.TEXTAREA=109]="TEXTAREA",le[le.TFOOT=110]="TFOOT",le[le.TD=111]="TD",le[le.TH=112]="TH",le[le.THEAD=113]="THEAD",le[le.TITLE=114]="TITLE",le[le.TR=115]="TR",le[le.TRACK=116]="TRACK",le[le.TT=117]="TT",le[le.U=118]="U",le[le.UL=119]="UL",le[le.SVG=120]="SVG",le[le.VAR=121]="VAR",le[le.WBR=122]="WBR",le[le.XMP=123]="XMP"})(Be||(Be={}));const Mi=new Map([[qt.A,Be.A],[qt.ADDRESS,Be.ADDRESS],[qt.ANNOTATION_XML,Be.ANNOTATION_XML],[qt.APPLET,Be.APPLET],[qt.AREA,Be.AREA],[qt.ARTICLE,Be.ARTICLE],[qt.ASIDE,Be.ASIDE],[qt.B,Be.B],[qt.BASE,Be.BASE],[qt.BASEFONT,Be.BASEFONT],[qt.BGSOUND,Be.BGSOUND],[qt.BIG,Be.BIG],[qt.BLOCKQUOTE,Be.BLOCKQUOTE],[qt.BODY,Be.BODY],[qt.BR,Be.BR],[qt.BUTTON,Be.BUTTON],[qt.CAPTION,Be.CAPTION],[qt.CENTER,Be.CENTER],[qt.CODE,Be.CODE],[qt.COL,Be.COL],[qt.COLGROUP,Be.COLGROUP],[qt.DD,Be.DD],[qt.DESC,Be.DESC],[qt.DETAILS,Be.DETAILS],[qt.DIALOG,Be.DIALOG],[qt.DIR,Be.DIR],[qt.DIV,Be.DIV],[qt.DL,Be.DL],[qt.DT,Be.DT],[qt.EM,Be.EM],[qt.EMBED,Be.EMBED],[qt.FIELDSET,Be.FIELDSET],[qt.FIGCAPTION,Be.FIGCAPTION],[qt.FIGURE,Be.FIGURE],[qt.FONT,Be.FONT],[qt.FOOTER,Be.FOOTER],[qt.FOREIGN_OBJECT,Be.FOREIGN_OBJECT],[qt.FORM,Be.FORM],[qt.FRAME,Be.FRAME],[qt.FRAMESET,Be.FRAMESET],[qt.H1,Be.H1],[qt.H2,Be.H2],[qt.H3,Be.H3],[qt.H4,Be.H4],[qt.H5,Be.H5],[qt.H6,Be.H6],[qt.HEAD,Be.HEAD],[qt.HEADER,Be.HEADER],[qt.HGROUP,Be.HGROUP],[qt.HR,Be.HR],[qt.HTML,Be.HTML],[qt.I,Be.I],[qt.IMG,Be.IMG],[qt.IMAGE,Be.IMAGE],[qt.INPUT,Be.INPUT],[qt.IFRAME,Be.IFRAME],[qt.KEYGEN,Be.KEYGEN],[qt.LABEL,Be.LABEL],[qt.LI,Be.LI],[qt.LINK,Be.LINK],[qt.LISTING,Be.LISTING],[qt.MAIN,Be.MAIN],[qt.MALIGNMARK,Be.MALIGNMARK],[qt.MARQUEE,Be.MARQUEE],[qt.MATH,Be.MATH],[qt.MENU,Be.MENU],[qt.META,Be.META],[qt.MGLYPH,Be.MGLYPH],[qt.MI,Be.MI],[qt.MO,Be.MO],[qt.MN,Be.MN],[qt.MS,Be.MS],[qt.MTEXT,Be.MTEXT],[qt.NAV,Be.NAV],[qt.NOBR,Be.NOBR],[qt.NOFRAMES,Be.NOFRAMES],[qt.NOEMBED,Be.NOEMBED],[qt.NOSCRIPT,Be.NOSCRIPT],[qt.OBJECT,Be.OBJECT],[qt.OL,Be.OL],[qt.OPTGROUP,Be.OPTGROUP],[qt.OPTION,Be.OPTION],[qt.P,Be.P],[qt.PARAM,Be.PARAM],[qt.PLAINTEXT,Be.PLAINTEXT],[qt.PRE,Be.PRE],[qt.RB,Be.RB],[qt.RP,Be.RP],[qt.RT,Be.RT],[qt.RTC,Be.RTC],[qt.RUBY,Be.RUBY],[qt.S,Be.S],[qt.SCRIPT,Be.SCRIPT],[qt.SEARCH,Be.SEARCH],[qt.SECTION,Be.SECTION],[qt.SELECT,Be.SELECT],[qt.SOURCE,Be.SOURCE],[qt.SMALL,Be.SMALL],[qt.SPAN,Be.SPAN],[qt.STRIKE,Be.STRIKE],[qt.STRONG,Be.STRONG],[qt.STYLE,Be.STYLE],[qt.SUB,Be.SUB],[qt.SUMMARY,Be.SUMMARY],[qt.SUP,Be.SUP],[qt.TABLE,Be.TABLE],[qt.TBODY,Be.TBODY],[qt.TEMPLATE,Be.TEMPLATE],[qt.TEXTAREA,Be.TEXTAREA],[qt.TFOOT,Be.TFOOT],[qt.TD,Be.TD],[qt.TH,Be.TH],[qt.THEAD,Be.THEAD],[qt.TITLE,Be.TITLE],[qt.TR,Be.TR],[qt.TRACK,Be.TRACK],[qt.TT,Be.TT],[qt.U,Be.U],[qt.UL,Be.UL],[qt.SVG,Be.SVG],[qt.VAR,Be.VAR],[qt.WBR,Be.WBR],[qt.XMP,Be.XMP]]);function ui(le){var pe;return(pe=Mi.get(le))!==null&&pe!==void 0?pe:Be.UNKNOWN}const Tn=Be,Ki={[zt.HTML]:new Set([Tn.ADDRESS,Tn.APPLET,Tn.AREA,Tn.ARTICLE,Tn.ASIDE,Tn.BASE,Tn.BASEFONT,Tn.BGSOUND,Tn.BLOCKQUOTE,Tn.BODY,Tn.BR,Tn.BUTTON,Tn.CAPTION,Tn.CENTER,Tn.COL,Tn.COLGROUP,Tn.DD,Tn.DETAILS,Tn.DIR,Tn.DIV,Tn.DL,Tn.DT,Tn.EMBED,Tn.FIELDSET,Tn.FIGCAPTION,Tn.FIGURE,Tn.FOOTER,Tn.FORM,Tn.FRAME,Tn.FRAMESET,Tn.H1,Tn.H2,Tn.H3,Tn.H4,Tn.H5,Tn.H6,Tn.HEAD,Tn.HEADER,Tn.HGROUP,Tn.HR,Tn.HTML,Tn.IFRAME,Tn.IMG,Tn.INPUT,Tn.LI,Tn.LINK,Tn.LISTING,Tn.MAIN,Tn.MARQUEE,Tn.MENU,Tn.META,Tn.NAV,Tn.NOEMBED,Tn.NOFRAMES,Tn.NOSCRIPT,Tn.OBJECT,Tn.OL,Tn.P,Tn.PARAM,Tn.PLAINTEXT,Tn.PRE,Tn.SCRIPT,Tn.SECTION,Tn.SELECT,Tn.SOURCE,Tn.STYLE,Tn.SUMMARY,Tn.TABLE,Tn.TBODY,Tn.TD,Tn.TEMPLATE,Tn.TEXTAREA,Tn.TFOOT,Tn.TH,Tn.THEAD,Tn.TITLE,Tn.TR,Tn.TRACK,Tn.UL,Tn.WBR,Tn.XMP]),[zt.MATHML]:new Set([Tn.MI,Tn.MO,Tn.MN,Tn.MS,Tn.MTEXT,Tn.ANNOTATION_XML]),[zt.SVG]:new Set([Tn.TITLE,Tn.FOREIGN_OBJECT,Tn.DESC]),[zt.XLINK]:new Set,[zt.XML]:new Set,[zt.XMLNS]:new Set},er=new Set([Tn.H1,Tn.H2,Tn.H3,Tn.H4,Tn.H5,Tn.H6]),or=new Set([qt.STYLE,qt.SCRIPT,qt.XMP,qt.IFRAME,qt.NOEMBED,qt.NOFRAMES,qt.PLAINTEXT]);function Cn(le,pe){return or.has(le)||pe&&le===qt.NOSCRIPT}var Kt;(function(le){le[le.DATA=0]="DATA",le[le.RCDATA=1]="RCDATA",le[le.RAWTEXT=2]="RAWTEXT",le[le.SCRIPT_DATA=3]="SCRIPT_DATA",le[le.PLAINTEXT=4]="PLAINTEXT",le[le.TAG_OPEN=5]="TAG_OPEN",le[le.END_TAG_OPEN=6]="END_TAG_OPEN",le[le.TAG_NAME=7]="TAG_NAME",le[le.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",le[le.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",le[le.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",le[le.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",le[le.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",le[le.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",le[le.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",le[le.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",le[le.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",le[le.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",le[le.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",le[le.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",le[le.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",le[le.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",le[le.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",le[le.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",le[le.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",le[le.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",le[le.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",le[le.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",le[le.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",le[le.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",le[le.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",le[le.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",le[le.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",le[le.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",le[le.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",le[le.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",le[le.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",le[le.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",le[le.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",le[le.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",le[le.BOGUS_COMMENT=40]="BOGUS_COMMENT",le[le.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",le[le.COMMENT_START=42]="COMMENT_START",le[le.COMMENT_START_DASH=43]="COMMENT_START_DASH",le[le.COMMENT=44]="COMMENT",le[le.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",le[le.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",le[le.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",le[le.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",le[le.COMMENT_END_DASH=49]="COMMENT_END_DASH",le[le.COMMENT_END=50]="COMMENT_END",le[le.COMMENT_END_BANG=51]="COMMENT_END_BANG",le[le.DOCTYPE=52]="DOCTYPE",le[le.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",le[le.DOCTYPE_NAME=54]="DOCTYPE_NAME",le[le.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",le[le.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",le[le.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",le[le.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",le[le.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",le[le.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",le[le.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",le[le.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",le[le.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",le[le.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",le[le.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",le[le.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",le[le.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",le[le.CDATA_SECTION=68]="CDATA_SECTION",le[le.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",le[le.CDATA_SECTION_END=70]="CDATA_SECTION_END",le[le.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",le[le.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND"})(Kt||(Kt={}));const sr={DATA:Kt.DATA,RCDATA:Kt.RCDATA,RAWTEXT:Kt.RAWTEXT,SCRIPT_DATA:Kt.SCRIPT_DATA,PLAINTEXT:Kt.PLAINTEXT,CDATA_SECTION:Kt.CDATA_SECTION};function ro(le){return le>=Et.DIGIT_0&&le<=Et.DIGIT_9}function mn(le){return le>=Et.LATIN_CAPITAL_A&&le<=Et.LATIN_CAPITAL_Z}function wi(le){return le>=Et.LATIN_SMALL_A&&le<=Et.LATIN_SMALL_Z}function _i(le){return wi(le)||mn(le)}function Ji(le){return _i(le)||ro(le)}function Gi(le){return le+32}function ir(le){return le===Et.SPACE||le===Et.LINE_FEED||le===Et.TABULATION||le===Et.FORM_FEED}function Fr(le){return ir(le)||le===Et.SOLIDUS||le===Et.GREATER_THAN_SIGN}function Cr(le){return le===Et.NULL?kn.nullCharacterReference:le>1114111?kn.characterReferenceOutsideUnicodeRange:Ri(le)?kn.surrogateCharacterReference:fr(le)?kn.noncharacterCharacterReference:cr(le)||le===Et.CARRIAGE_RETURN?kn.controlCharacterReference:null}class Ir{constructor(pe,Ke){this.options=pe,this.handler=Ke,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=Kt.DATA,this.returnState=Kt.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new kr(Ke),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new In(wr,(Dt,Hn)=>{this.preprocessor.pos=this.entityStartPos+Hn-1,this._flushCodePointConsumedAsCharacterReference(Dt)},Ke.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(kn.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:Dt=>{this._err(kn.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+Dt)},validateNumericCharacterReference:Dt=>{const Hn=Cr(Dt);Hn&&this._err(Hn,1)}}:void 0)}_err(pe,Ke=0){var Dt,Hn;(Hn=(Dt=this.handler).onParseError)===null||Hn===void 0||Hn.call(Dt,this.preprocessor.getError(pe,Ke))}getCurrentLocation(pe){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-pe,startOffset:this.preprocessor.offset-pe,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const pe=this._consume();this._ensureHibernation()||this._callState(pe)}this.inLoop=!1}}pause(){this.paused=!0}resume(pe){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||pe==null||pe())}write(pe,Ke,Dt){this.active=!0,this.preprocessor.write(pe,Ke),this._runParsingLoop(),this.paused||Dt==null||Dt()}insertHtmlAtCurrentPos(pe){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(pe),this._runParsingLoop()}_ensureHibernation(){return this.preprocessor.endOfChunkHit?(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0):!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(pe){this.consumedAfterSnapshot+=pe;for(let Ke=0;Ke<pe;Ke++)this.preprocessor.advance()}_consumeSequenceIfMatch(pe,Ke){return this.preprocessor.startsWith(pe,Ke)?(this._advanceBy(pe.length-1),!0):!1}_createStartTagToken(){this.currentToken={type:Wi.START_TAG,tagName:"",tagID:Be.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:Wi.END_TAG,tagName:"",tagID:Be.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(pe){this.currentToken={type:Wi.COMMENT,data:"",location:this.getCurrentLocation(pe)}}_createDoctypeToken(pe){this.currentToken={type:Wi.DOCTYPE,name:pe,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(pe,Ke){this.currentCharacterToken={type:pe,chars:Ke,location:this.currentLocation}}_createAttr(pe){this.currentAttr={name:pe,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var pe,Ke;const Dt=this.currentToken;if(lr(Dt,this.currentAttr.name)===null){if(Dt.attrs.push(this.currentAttr),Dt.location&&this.currentLocation){const Hn=(pe=(Ke=Dt.location).attrs)!==null&&pe!==void 0?pe:Ke.attrs=Object.create(null);Hn[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(kn.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(pe){this._emitCurrentCharacterToken(pe.location),this.currentToken=null,pe.location&&(pe.location.endLine=this.preprocessor.line,pe.location.endCol=this.preprocessor.col+1,pe.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){const pe=this.currentToken;this.prepareToken(pe),pe.tagID=ui(pe.tagName),pe.type===Wi.START_TAG?(this.lastStartTagName=pe.tagName,this.handler.onStartTag(pe)):(pe.attrs.length>0&&this._err(kn.endTagWithAttributes),pe.selfClosing&&this._err(kn.endTagWithTrailingSolidus),this.handler.onEndTag(pe)),this.preprocessor.dropParsedChunk()}emitCurrentComment(pe){this.prepareToken(pe),this.handler.onComment(pe),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(pe){this.prepareToken(pe),this.handler.onDoctype(pe),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(pe){if(this.currentCharacterToken){switch(pe&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=pe.startLine,this.currentCharacterToken.location.endCol=pe.startCol,this.currentCharacterToken.location.endOffset=pe.startOffset),this.currentCharacterToken.type){case Wi.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case Wi.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case Wi.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){const pe=this.getCurrentLocation(0);pe&&(pe.endLine=pe.startLine,pe.endCol=pe.startCol,pe.endOffset=pe.startOffset),this._emitCurrentCharacterToken(pe),this.handler.onEof({type:Wi.EOF,location:pe}),this.active=!1}_appendCharToCurrentCharacterToken(pe,Ke){if(this.currentCharacterToken)if(this.currentCharacterToken.type===pe){this.currentCharacterToken.chars+=Ke;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(pe,Ke)}_emitCodePoint(pe){const Ke=ir(pe)?Wi.WHITESPACE_CHARACTER:pe===Et.NULL?Wi.NULL_CHARACTER:Wi.CHARACTER;this._appendCharToCurrentCharacterToken(Ke,String.fromCodePoint(pe))}_emitChars(pe){this._appendCharToCurrentCharacterToken(Wi.CHARACTER,pe)}_startCharacterReference(){this.returnState=this.state,this.state=Kt.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?Pi.Attribute:Pi.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===Kt.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===Kt.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===Kt.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(pe){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(pe):this._emitCodePoint(pe)}_callState(pe){switch(this.state){case Kt.DATA:{this._stateData(pe);break}case Kt.RCDATA:{this._stateRcdata(pe);break}case Kt.RAWTEXT:{this._stateRawtext(pe);break}case Kt.SCRIPT_DATA:{this._stateScriptData(pe);break}case Kt.PLAINTEXT:{this._statePlaintext(pe);break}case Kt.TAG_OPEN:{this._stateTagOpen(pe);break}case Kt.END_TAG_OPEN:{this._stateEndTagOpen(pe);break}case Kt.TAG_NAME:{this._stateTagName(pe);break}case Kt.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(pe);break}case Kt.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(pe);break}case Kt.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(pe);break}case Kt.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(pe);break}case Kt.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(pe);break}case Kt.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(pe);break}case Kt.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(pe);break}case Kt.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(pe);break}case Kt.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(pe);break}case Kt.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(pe);break}case Kt.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(pe);break}case Kt.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(pe);break}case Kt.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(pe);break}case Kt.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(pe);break}case Kt.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(pe);break}case Kt.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(pe);break}case Kt.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(pe);break}case Kt.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(pe);break}case Kt.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(pe);break}case Kt.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(pe);break}case Kt.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(pe);break}case Kt.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(pe);break}case Kt.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(pe);break}case Kt.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(pe);break}case Kt.ATTRIBUTE_NAME:{this._stateAttributeName(pe);break}case Kt.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(pe);break}case Kt.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(pe);break}case Kt.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(pe);break}case Kt.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(pe);break}case Kt.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(pe);break}case Kt.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(pe);break}case Kt.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(pe);break}case Kt.BOGUS_COMMENT:{this._stateBogusComment(pe);break}case Kt.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(pe);break}case Kt.COMMENT_START:{this._stateCommentStart(pe);break}case Kt.COMMENT_START_DASH:{this._stateCommentStartDash(pe);break}case Kt.COMMENT:{this._stateComment(pe);break}case Kt.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(pe);break}case Kt.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(pe);break}case Kt.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(pe);break}case Kt.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(pe);break}case Kt.COMMENT_END_DASH:{this._stateCommentEndDash(pe);break}case Kt.COMMENT_END:{this._stateCommentEnd(pe);break}case Kt.COMMENT_END_BANG:{this._stateCommentEndBang(pe);break}case Kt.DOCTYPE:{this._stateDoctype(pe);break}case Kt.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(pe);break}case Kt.DOCTYPE_NAME:{this._stateDoctypeName(pe);break}case Kt.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(pe);break}case Kt.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(pe);break}case Kt.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(pe);break}case Kt.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(pe);break}case Kt.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(pe);break}case Kt.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(pe);break}case Kt.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(pe);break}case Kt.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(pe);break}case Kt.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(pe);break}case Kt.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(pe);break}case Kt.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(pe);break}case Kt.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(pe);break}case Kt.BOGUS_DOCTYPE:{this._stateBogusDoctype(pe);break}case Kt.CDATA_SECTION:{this._stateCdataSection(pe);break}case Kt.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(pe);break}case Kt.CDATA_SECTION_END:{this._stateCdataSectionEnd(pe);break}case Kt.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case Kt.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(pe);break}default:throw new Error("Unknown state")}}_stateData(pe){switch(pe){case Et.LESS_THAN_SIGN:{this.state=Kt.TAG_OPEN;break}case Et.AMPERSAND:{this._startCharacterReference();break}case Et.NULL:{this._err(kn.unexpectedNullCharacter),this._emitCodePoint(pe);break}case Et.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(pe)}}_stateRcdata(pe){switch(pe){case Et.AMPERSAND:{this._startCharacterReference();break}case Et.LESS_THAN_SIGN:{this.state=Kt.RCDATA_LESS_THAN_SIGN;break}case Et.NULL:{this._err(kn.unexpectedNullCharacter),this._emitChars(Yn);break}case Et.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(pe)}}_stateRawtext(pe){switch(pe){case Et.LESS_THAN_SIGN:{this.state=Kt.RAWTEXT_LESS_THAN_SIGN;break}case Et.NULL:{this._err(kn.unexpectedNullCharacter),this._emitChars(Yn);break}case Et.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(pe)}}_stateScriptData(pe){switch(pe){case Et.LESS_THAN_SIGN:{this.state=Kt.SCRIPT_DATA_LESS_THAN_SIGN;break}case Et.NULL:{this._err(kn.unexpectedNullCharacter),this._emitChars(Yn);break}case Et.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(pe)}}_statePlaintext(pe){switch(pe){case Et.NULL:{this._err(kn.unexpectedNullCharacter),this._emitChars(Yn);break}case Et.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(pe)}}_stateTagOpen(pe){if(_i(pe))this._createStartTagToken(),this.state=Kt.TAG_NAME,this._stateTagName(pe);else switch(pe){case Et.EXCLAMATION_MARK:{this.state=Kt.MARKUP_DECLARATION_OPEN;break}case Et.SOLIDUS:{this.state=Kt.END_TAG_OPEN;break}case Et.QUESTION_MARK:{this._err(kn.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=Kt.BOGUS_COMMENT,this._stateBogusComment(pe);break}case Et.EOF:{this._err(kn.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(kn.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=Kt.DATA,this._stateData(pe)}}_stateEndTagOpen(pe){if(_i(pe))this._createEndTagToken(),this.state=Kt.TAG_NAME,this._stateTagName(pe);else switch(pe){case Et.GREATER_THAN_SIGN:{this._err(kn.missingEndTagName),this.state=Kt.DATA;break}case Et.EOF:{this._err(kn.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(kn.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=Kt.BOGUS_COMMENT,this._stateBogusComment(pe)}}_stateTagName(pe){const Ke=this.currentToken;switch(pe){case Et.SPACE:case Et.LINE_FEED:case Et.TABULATION:case Et.FORM_FEED:{this.state=Kt.BEFORE_ATTRIBUTE_NAME;break}case Et.SOLIDUS:{this.state=Kt.SELF_CLOSING_START_TAG;break}case Et.GREATER_THAN_SIGN:{this.state=Kt.DATA,this.emitCurrentTagToken();break}case Et.NULL:{this._err(kn.unexpectedNullCharacter),Ke.tagName+=Yn;break}case Et.EOF:{this._err(kn.eofInTag),this._emitEOFToken();break}default:Ke.tagName+=String.fromCodePoint(mn(pe)?Gi(pe):pe)}}_stateRcdataLessThanSign(pe){pe===Et.SOLIDUS?this.state=Kt.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=Kt.RCDATA,this._stateRcdata(pe))}_stateRcdataEndTagOpen(pe){_i(pe)?(this.state=Kt.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(pe)):(this._emitChars("</"),this.state=Kt.RCDATA,this._stateRcdata(pe))}handleSpecialEndTag(pe){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();this._createEndTagToken();const Ke=this.currentToken;switch(Ke.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case Et.SPACE:case Et.LINE_FEED:case Et.TABULATION:case Et.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=Kt.BEFORE_ATTRIBUTE_NAME,!1;case Et.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=Kt.SELF_CLOSING_START_TAG,!1;case Et.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=Kt.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(pe){this.handleSpecialEndTag(pe)&&(this._emitChars("</"),this.state=Kt.RCDATA,this._stateRcdata(pe))}_stateRawtextLessThanSign(pe){pe===Et.SOLIDUS?this.state=Kt.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=Kt.RAWTEXT,this._stateRawtext(pe))}_stateRawtextEndTagOpen(pe){_i(pe)?(this.state=Kt.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(pe)):(this._emitChars("</"),this.state=Kt.RAWTEXT,this._stateRawtext(pe))}_stateRawtextEndTagName(pe){this.handleSpecialEndTag(pe)&&(this._emitChars("</"),this.state=Kt.RAWTEXT,this._stateRawtext(pe))}_stateScriptDataLessThanSign(pe){switch(pe){case Et.SOLIDUS:{this.state=Kt.SCRIPT_DATA_END_TAG_OPEN;break}case Et.EXCLAMATION_MARK:{this.state=Kt.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break}default:this._emitChars("<"),this.state=Kt.SCRIPT_DATA,this._stateScriptData(pe)}}_stateScriptDataEndTagOpen(pe){_i(pe)?(this.state=Kt.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(pe)):(this._emitChars("</"),this.state=Kt.SCRIPT_DATA,this._stateScriptData(pe))}_stateScriptDataEndTagName(pe){this.handleSpecialEndTag(pe)&&(this._emitChars("</"),this.state=Kt.SCRIPT_DATA,this._stateScriptData(pe))}_stateScriptDataEscapeStart(pe){pe===Et.HYPHEN_MINUS?(this.state=Kt.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=Kt.SCRIPT_DATA,this._stateScriptData(pe))}_stateScriptDataEscapeStartDash(pe){pe===Et.HYPHEN_MINUS?(this.state=Kt.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=Kt.SCRIPT_DATA,this._stateScriptData(pe))}_stateScriptDataEscaped(pe){switch(pe){case Et.HYPHEN_MINUS:{this.state=Kt.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case Et.LESS_THAN_SIGN:{this.state=Kt.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case Et.NULL:{this._err(kn.unexpectedNullCharacter),this._emitChars(Yn);break}case Et.EOF:{this._err(kn.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(pe)}}_stateScriptDataEscapedDash(pe){switch(pe){case Et.HYPHEN_MINUS:{this.state=Kt.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case Et.LESS_THAN_SIGN:{this.state=Kt.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case Et.NULL:{this._err(kn.unexpectedNullCharacter),this.state=Kt.SCRIPT_DATA_ESCAPED,this._emitChars(Yn);break}case Et.EOF:{this._err(kn.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=Kt.SCRIPT_DATA_ESCAPED,this._emitCodePoint(pe)}}_stateScriptDataEscapedDashDash(pe){switch(pe){case Et.HYPHEN_MINUS:{this._emitChars("-");break}case Et.LESS_THAN_SIGN:{this.state=Kt.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case Et.GREATER_THAN_SIGN:{this.state=Kt.SCRIPT_DATA,this._emitChars(">");break}case Et.NULL:{this._err(kn.unexpectedNullCharacter),this.state=Kt.SCRIPT_DATA_ESCAPED,this._emitChars(Yn);break}case Et.EOF:{this._err(kn.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=Kt.SCRIPT_DATA_ESCAPED,this._emitCodePoint(pe)}}_stateScriptDataEscapedLessThanSign(pe){pe===Et.SOLIDUS?this.state=Kt.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:_i(pe)?(this._emitChars("<"),this.state=Kt.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(pe)):(this._emitChars("<"),this.state=Kt.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(pe))}_stateScriptDataEscapedEndTagOpen(pe){_i(pe)?(this.state=Kt.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(pe)):(this._emitChars("</"),this.state=Kt.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(pe))}_stateScriptDataEscapedEndTagName(pe){this.handleSpecialEndTag(pe)&&(this._emitChars("</"),this.state=Kt.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(pe))}_stateScriptDataDoubleEscapeStart(pe){if(this.preprocessor.startsWith(vi.SCRIPT,!1)&&Fr(this.preprocessor.peek(vi.SCRIPT.length))){this._emitCodePoint(pe);for(let Ke=0;Ke<vi.SCRIPT.length;Ke++)this._emitCodePoint(this._consume());this.state=Kt.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=Kt.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(pe))}_stateScriptDataDoubleEscaped(pe){switch(pe){case Et.HYPHEN_MINUS:{this.state=Kt.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case Et.LESS_THAN_SIGN:{this.state=Kt.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case Et.NULL:{this._err(kn.unexpectedNullCharacter),this._emitChars(Yn);break}case Et.EOF:{this._err(kn.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(pe)}}_stateScriptDataDoubleEscapedDash(pe){switch(pe){case Et.HYPHEN_MINUS:{this.state=Kt.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case Et.LESS_THAN_SIGN:{this.state=Kt.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case Et.NULL:{this._err(kn.unexpectedNullCharacter),this.state=Kt.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Yn);break}case Et.EOF:{this._err(kn.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=Kt.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(pe)}}_stateScriptDataDoubleEscapedDashDash(pe){switch(pe){case Et.HYPHEN_MINUS:{this._emitChars("-");break}case Et.LESS_THAN_SIGN:{this.state=Kt.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case Et.GREATER_THAN_SIGN:{this.state=Kt.SCRIPT_DATA,this._emitChars(">");break}case Et.NULL:{this._err(kn.unexpectedNullCharacter),this.state=Kt.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Yn);break}case Et.EOF:{this._err(kn.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=Kt.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(pe)}}_stateScriptDataDoubleEscapedLessThanSign(pe){pe===Et.SOLIDUS?(this.state=Kt.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=Kt.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(pe))}_stateScriptDataDoubleEscapeEnd(pe){if(this.preprocessor.startsWith(vi.SCRIPT,!1)&&Fr(this.preprocessor.peek(vi.SCRIPT.length))){this._emitCodePoint(pe);for(let Ke=0;Ke<vi.SCRIPT.length;Ke++)this._emitCodePoint(this._consume());this.state=Kt.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=Kt.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(pe))}_stateBeforeAttributeName(pe){switch(pe){case Et.SPACE:case Et.LINE_FEED:case Et.TABULATION:case Et.FORM_FEED:break;case Et.SOLIDUS:case Et.GREATER_THAN_SIGN:case Et.EOF:{this.state=Kt.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(pe);break}case Et.EQUALS_SIGN:{this._err(kn.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=Kt.ATTRIBUTE_NAME;break}default:this._createAttr(""),this.state=Kt.ATTRIBUTE_NAME,this._stateAttributeName(pe)}}_stateAttributeName(pe){switch(pe){case Et.SPACE:case Et.LINE_FEED:case Et.TABULATION:case Et.FORM_FEED:case Et.SOLIDUS:case Et.GREATER_THAN_SIGN:case Et.EOF:{this._leaveAttrName(),this.state=Kt.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(pe);break}case Et.EQUALS_SIGN:{this._leaveAttrName(),this.state=Kt.BEFORE_ATTRIBUTE_VALUE;break}case Et.QUOTATION_MARK:case Et.APOSTROPHE:case Et.LESS_THAN_SIGN:{this._err(kn.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(pe);break}case Et.NULL:{this._err(kn.unexpectedNullCharacter),this.currentAttr.name+=Yn;break}default:this.currentAttr.name+=String.fromCodePoint(mn(pe)?Gi(pe):pe)}}_stateAfterAttributeName(pe){switch(pe){case Et.SPACE:case Et.LINE_FEED:case Et.TABULATION:case Et.FORM_FEED:break;case Et.SOLIDUS:{this.state=Kt.SELF_CLOSING_START_TAG;break}case Et.EQUALS_SIGN:{this.state=Kt.BEFORE_ATTRIBUTE_VALUE;break}case Et.GREATER_THAN_SIGN:{this.state=Kt.DATA,this.emitCurrentTagToken();break}case Et.EOF:{this._err(kn.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=Kt.ATTRIBUTE_NAME,this._stateAttributeName(pe)}}_stateBeforeAttributeValue(pe){switch(pe){case Et.SPACE:case Et.LINE_FEED:case Et.TABULATION:case Et.FORM_FEED:break;case Et.QUOTATION_MARK:{this.state=Kt.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case Et.APOSTROPHE:{this.state=Kt.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case Et.GREATER_THAN_SIGN:{this._err(kn.missingAttributeValue),this.state=Kt.DATA,this.emitCurrentTagToken();break}default:this.state=Kt.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(pe)}}_stateAttributeValueDoubleQuoted(pe){switch(pe){case Et.QUOTATION_MARK:{this.state=Kt.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case Et.AMPERSAND:{this._startCharacterReference();break}case Et.NULL:{this._err(kn.unexpectedNullCharacter),this.currentAttr.value+=Yn;break}case Et.EOF:{this._err(kn.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(pe)}}_stateAttributeValueSingleQuoted(pe){switch(pe){case Et.APOSTROPHE:{this.state=Kt.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case Et.AMPERSAND:{this._startCharacterReference();break}case Et.NULL:{this._err(kn.unexpectedNullCharacter),this.currentAttr.value+=Yn;break}case Et.EOF:{this._err(kn.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(pe)}}_stateAttributeValueUnquoted(pe){switch(pe){case Et.SPACE:case Et.LINE_FEED:case Et.TABULATION:case Et.FORM_FEED:{this._leaveAttrValue(),this.state=Kt.BEFORE_ATTRIBUTE_NAME;break}case Et.AMPERSAND:{this._startCharacterReference();break}case Et.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=Kt.DATA,this.emitCurrentTagToken();break}case Et.NULL:{this._err(kn.unexpectedNullCharacter),this.currentAttr.value+=Yn;break}case Et.QUOTATION_MARK:case Et.APOSTROPHE:case Et.LESS_THAN_SIGN:case Et.EQUALS_SIGN:case Et.GRAVE_ACCENT:{this._err(kn.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(pe);break}case Et.EOF:{this._err(kn.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(pe)}}_stateAfterAttributeValueQuoted(pe){switch(pe){case Et.SPACE:case Et.LINE_FEED:case Et.TABULATION:case Et.FORM_FEED:{this._leaveAttrValue(),this.state=Kt.BEFORE_ATTRIBUTE_NAME;break}case Et.SOLIDUS:{this._leaveAttrValue(),this.state=Kt.SELF_CLOSING_START_TAG;break}case Et.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=Kt.DATA,this.emitCurrentTagToken();break}case Et.EOF:{this._err(kn.eofInTag),this._emitEOFToken();break}default:this._err(kn.missingWhitespaceBetweenAttributes),this.state=Kt.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(pe)}}_stateSelfClosingStartTag(pe){switch(pe){case Et.GREATER_THAN_SIGN:{const Ke=this.currentToken;Ke.selfClosing=!0,this.state=Kt.DATA,this.emitCurrentTagToken();break}case Et.EOF:{this._err(kn.eofInTag),this._emitEOFToken();break}default:this._err(kn.unexpectedSolidusInTag),this.state=Kt.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(pe)}}_stateBogusComment(pe){const Ke=this.currentToken;switch(pe){case Et.GREATER_THAN_SIGN:{this.state=Kt.DATA,this.emitCurrentComment(Ke);break}case Et.EOF:{this.emitCurrentComment(Ke),this._emitEOFToken();break}case Et.NULL:{this._err(kn.unexpectedNullCharacter),Ke.data+=Yn;break}default:Ke.data+=String.fromCodePoint(pe)}}_stateMarkupDeclarationOpen(pe){this._consumeSequenceIfMatch(vi.DASH_DASH,!0)?(this._createCommentToken(vi.DASH_DASH.length+1),this.state=Kt.COMMENT_START):this._consumeSequenceIfMatch(vi.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(vi.DOCTYPE.length+1),this.state=Kt.DOCTYPE):this._consumeSequenceIfMatch(vi.CDATA_START,!0)?this.inForeignNode?this.state=Kt.CDATA_SECTION:(this._err(kn.cdataInHtmlContent),this._createCommentToken(vi.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=Kt.BOGUS_COMMENT):this._ensureHibernation()||(this._err(kn.incorrectlyOpenedComment),this._createCommentToken(2),this.state=Kt.BOGUS_COMMENT,this._stateBogusComment(pe))}_stateCommentStart(pe){switch(pe){case Et.HYPHEN_MINUS:{this.state=Kt.COMMENT_START_DASH;break}case Et.GREATER_THAN_SIGN:{this._err(kn.abruptClosingOfEmptyComment),this.state=Kt.DATA;const Ke=this.currentToken;this.emitCurrentComment(Ke);break}default:this.state=Kt.COMMENT,this._stateComment(pe)}}_stateCommentStartDash(pe){const Ke=this.currentToken;switch(pe){case Et.HYPHEN_MINUS:{this.state=Kt.COMMENT_END;break}case Et.GREATER_THAN_SIGN:{this._err(kn.abruptClosingOfEmptyComment),this.state=Kt.DATA,this.emitCurrentComment(Ke);break}case Et.EOF:{this._err(kn.eofInComment),this.emitCurrentComment(Ke),this._emitEOFToken();break}default:Ke.data+="-",this.state=Kt.COMMENT,this._stateComment(pe)}}_stateComment(pe){const Ke=this.currentToken;switch(pe){case Et.HYPHEN_MINUS:{this.state=Kt.COMMENT_END_DASH;break}case Et.LESS_THAN_SIGN:{Ke.data+="<",this.state=Kt.COMMENT_LESS_THAN_SIGN;break}case Et.NULL:{this._err(kn.unexpectedNullCharacter),Ke.data+=Yn;break}case Et.EOF:{this._err(kn.eofInComment),this.emitCurrentComment(Ke),this._emitEOFToken();break}default:Ke.data+=String.fromCodePoint(pe)}}_stateCommentLessThanSign(pe){const Ke=this.currentToken;switch(pe){case Et.EXCLAMATION_MARK:{Ke.data+="!",this.state=Kt.COMMENT_LESS_THAN_SIGN_BANG;break}case Et.LESS_THAN_SIGN:{Ke.data+="<";break}default:this.state=Kt.COMMENT,this._stateComment(pe)}}_stateCommentLessThanSignBang(pe){pe===Et.HYPHEN_MINUS?this.state=Kt.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=Kt.COMMENT,this._stateComment(pe))}_stateCommentLessThanSignBangDash(pe){pe===Et.HYPHEN_MINUS?this.state=Kt.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=Kt.COMMENT_END_DASH,this._stateCommentEndDash(pe))}_stateCommentLessThanSignBangDashDash(pe){pe!==Et.GREATER_THAN_SIGN&&pe!==Et.EOF&&this._err(kn.nestedComment),this.state=Kt.COMMENT_END,this._stateCommentEnd(pe)}_stateCommentEndDash(pe){const Ke=this.currentToken;switch(pe){case Et.HYPHEN_MINUS:{this.state=Kt.COMMENT_END;break}case Et.EOF:{this._err(kn.eofInComment),this.emitCurrentComment(Ke),this._emitEOFToken();break}default:Ke.data+="-",this.state=Kt.COMMENT,this._stateComment(pe)}}_stateCommentEnd(pe){const Ke=this.currentToken;switch(pe){case Et.GREATER_THAN_SIGN:{this.state=Kt.DATA,this.emitCurrentComment(Ke);break}case Et.EXCLAMATION_MARK:{this.state=Kt.COMMENT_END_BANG;break}case Et.HYPHEN_MINUS:{Ke.data+="-";break}case Et.EOF:{this._err(kn.eofInComment),this.emitCurrentComment(Ke),this._emitEOFToken();break}default:Ke.data+="--",this.state=Kt.COMMENT,this._stateComment(pe)}}_stateCommentEndBang(pe){const Ke=this.currentToken;switch(pe){case Et.HYPHEN_MINUS:{Ke.data+="--!",this.state=Kt.COMMENT_END_DASH;break}case Et.GREATER_THAN_SIGN:{this._err(kn.incorrectlyClosedComment),this.state=Kt.DATA,this.emitCurrentComment(Ke);break}case Et.EOF:{this._err(kn.eofInComment),this.emitCurrentComment(Ke),this._emitEOFToken();break}default:Ke.data+="--!",this.state=Kt.COMMENT,this._stateComment(pe)}}_stateDoctype(pe){switch(pe){case Et.SPACE:case Et.LINE_FEED:case Et.TABULATION:case Et.FORM_FEED:{this.state=Kt.BEFORE_DOCTYPE_NAME;break}case Et.GREATER_THAN_SIGN:{this.state=Kt.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(pe);break}case Et.EOF:{this._err(kn.eofInDoctype),this._createDoctypeToken(null);const Ke=this.currentToken;Ke.forceQuirks=!0,this.emitCurrentDoctype(Ke),this._emitEOFToken();break}default:this._err(kn.missingWhitespaceBeforeDoctypeName),this.state=Kt.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(pe)}}_stateBeforeDoctypeName(pe){if(mn(pe))this._createDoctypeToken(String.fromCharCode(Gi(pe))),this.state=Kt.DOCTYPE_NAME;else switch(pe){case Et.SPACE:case Et.LINE_FEED:case Et.TABULATION:case Et.FORM_FEED:break;case Et.NULL:{this._err(kn.unexpectedNullCharacter),this._createDoctypeToken(Yn),this.state=Kt.DOCTYPE_NAME;break}case Et.GREATER_THAN_SIGN:{this._err(kn.missingDoctypeName),this._createDoctypeToken(null);const Ke=this.currentToken;Ke.forceQuirks=!0,this.emitCurrentDoctype(Ke),this.state=Kt.DATA;break}case Et.EOF:{this._err(kn.eofInDoctype),this._createDoctypeToken(null);const Ke=this.currentToken;Ke.forceQuirks=!0,this.emitCurrentDoctype(Ke),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(pe)),this.state=Kt.DOCTYPE_NAME}}_stateDoctypeName(pe){const Ke=this.currentToken;switch(pe){case Et.SPACE:case Et.LINE_FEED:case Et.TABULATION:case Et.FORM_FEED:{this.state=Kt.AFTER_DOCTYPE_NAME;break}case Et.GREATER_THAN_SIGN:{this.state=Kt.DATA,this.emitCurrentDoctype(Ke);break}case Et.NULL:{this._err(kn.unexpectedNullCharacter),Ke.name+=Yn;break}case Et.EOF:{this._err(kn.eofInDoctype),Ke.forceQuirks=!0,this.emitCurrentDoctype(Ke),this._emitEOFToken();break}default:Ke.name+=String.fromCodePoint(mn(pe)?Gi(pe):pe)}}_stateAfterDoctypeName(pe){const Ke=this.currentToken;switch(pe){case Et.SPACE:case Et.LINE_FEED:case Et.TABULATION:case Et.FORM_FEED:break;case Et.GREATER_THAN_SIGN:{this.state=Kt.DATA,this.emitCurrentDoctype(Ke);break}case Et.EOF:{this._err(kn.eofInDoctype),Ke.forceQuirks=!0,this.emitCurrentDoctype(Ke),this._emitEOFToken();break}default:this._consumeSequenceIfMatch(vi.PUBLIC,!1)?this.state=Kt.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(vi.SYSTEM,!1)?this.state=Kt.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(kn.invalidCharacterSequenceAfterDoctypeName),Ke.forceQuirks=!0,this.state=Kt.BOGUS_DOCTYPE,this._stateBogusDoctype(pe))}}_stateAfterDoctypePublicKeyword(pe){const Ke=this.currentToken;switch(pe){case Et.SPACE:case Et.LINE_FEED:case Et.TABULATION:case Et.FORM_FEED:{this.state=Kt.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case Et.QUOTATION_MARK:{this._err(kn.missingWhitespaceAfterDoctypePublicKeyword),Ke.publicId="",this.state=Kt.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case Et.APOSTROPHE:{this._err(kn.missingWhitespaceAfterDoctypePublicKeyword),Ke.publicId="",this.state=Kt.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case Et.GREATER_THAN_SIGN:{this._err(kn.missingDoctypePublicIdentifier),Ke.forceQuirks=!0,this.state=Kt.DATA,this.emitCurrentDoctype(Ke);break}case Et.EOF:{this._err(kn.eofInDoctype),Ke.forceQuirks=!0,this.emitCurrentDoctype(Ke),this._emitEOFToken();break}default:this._err(kn.missingQuoteBeforeDoctypePublicIdentifier),Ke.forceQuirks=!0,this.state=Kt.BOGUS_DOCTYPE,this._stateBogusDoctype(pe)}}_stateBeforeDoctypePublicIdentifier(pe){const Ke=this.currentToken;switch(pe){case Et.SPACE:case Et.LINE_FEED:case Et.TABULATION:case Et.FORM_FEED:break;case Et.QUOTATION_MARK:{Ke.publicId="",this.state=Kt.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case Et.APOSTROPHE:{Ke.publicId="",this.state=Kt.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case Et.GREATER_THAN_SIGN:{this._err(kn.missingDoctypePublicIdentifier),Ke.forceQuirks=!0,this.state=Kt.DATA,this.emitCurrentDoctype(Ke);break}case Et.EOF:{this._err(kn.eofInDoctype),Ke.forceQuirks=!0,this.emitCurrentDoctype(Ke),this._emitEOFToken();break}default:this._err(kn.missingQuoteBeforeDoctypePublicIdentifier),Ke.forceQuirks=!0,this.state=Kt.BOGUS_DOCTYPE,this._stateBogusDoctype(pe)}}_stateDoctypePublicIdentifierDoubleQuoted(pe){const Ke=this.currentToken;switch(pe){case Et.QUOTATION_MARK:{this.state=Kt.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case Et.NULL:{this._err(kn.unexpectedNullCharacter),Ke.publicId+=Yn;break}case Et.GREATER_THAN_SIGN:{this._err(kn.abruptDoctypePublicIdentifier),Ke.forceQuirks=!0,this.emitCurrentDoctype(Ke),this.state=Kt.DATA;break}case Et.EOF:{this._err(kn.eofInDoctype),Ke.forceQuirks=!0,this.emitCurrentDoctype(Ke),this._emitEOFToken();break}default:Ke.publicId+=String.fromCodePoint(pe)}}_stateDoctypePublicIdentifierSingleQuoted(pe){const Ke=this.currentToken;switch(pe){case Et.APOSTROPHE:{this.state=Kt.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case Et.NULL:{this._err(kn.unexpectedNullCharacter),Ke.publicId+=Yn;break}case Et.GREATER_THAN_SIGN:{this._err(kn.abruptDoctypePublicIdentifier),Ke.forceQuirks=!0,this.emitCurrentDoctype(Ke),this.state=Kt.DATA;break}case Et.EOF:{this._err(kn.eofInDoctype),Ke.forceQuirks=!0,this.emitCurrentDoctype(Ke),this._emitEOFToken();break}default:Ke.publicId+=String.fromCodePoint(pe)}}_stateAfterDoctypePublicIdentifier(pe){const Ke=this.currentToken;switch(pe){case Et.SPACE:case Et.LINE_FEED:case Et.TABULATION:case Et.FORM_FEED:{this.state=Kt.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case Et.GREATER_THAN_SIGN:{this.state=Kt.DATA,this.emitCurrentDoctype(Ke);break}case Et.QUOTATION_MARK:{this._err(kn.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),Ke.systemId="",this.state=Kt.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case Et.APOSTROPHE:{this._err(kn.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),Ke.systemId="",this.state=Kt.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case Et.EOF:{this._err(kn.eofInDoctype),Ke.forceQuirks=!0,this.emitCurrentDoctype(Ke),this._emitEOFToken();break}default:this._err(kn.missingQuoteBeforeDoctypeSystemIdentifier),Ke.forceQuirks=!0,this.state=Kt.BOGUS_DOCTYPE,this._stateBogusDoctype(pe)}}_stateBetweenDoctypePublicAndSystemIdentifiers(pe){const Ke=this.currentToken;switch(pe){case Et.SPACE:case Et.LINE_FEED:case Et.TABULATION:case Et.FORM_FEED:break;case Et.GREATER_THAN_SIGN:{this.emitCurrentDoctype(Ke),this.state=Kt.DATA;break}case Et.QUOTATION_MARK:{Ke.systemId="",this.state=Kt.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case Et.APOSTROPHE:{Ke.systemId="",this.state=Kt.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case Et.EOF:{this._err(kn.eofInDoctype),Ke.forceQuirks=!0,this.emitCurrentDoctype(Ke),this._emitEOFToken();break}default:this._err(kn.missingQuoteBeforeDoctypeSystemIdentifier),Ke.forceQuirks=!0,this.state=Kt.BOGUS_DOCTYPE,this._stateBogusDoctype(pe)}}_stateAfterDoctypeSystemKeyword(pe){const Ke=this.currentToken;switch(pe){case Et.SPACE:case Et.LINE_FEED:case Et.TABULATION:case Et.FORM_FEED:{this.state=Kt.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case Et.QUOTATION_MARK:{this._err(kn.missingWhitespaceAfterDoctypeSystemKeyword),Ke.systemId="",this.state=Kt.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case Et.APOSTROPHE:{this._err(kn.missingWhitespaceAfterDoctypeSystemKeyword),Ke.systemId="",this.state=Kt.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case Et.GREATER_THAN_SIGN:{this._err(kn.missingDoctypeSystemIdentifier),Ke.forceQuirks=!0,this.state=Kt.DATA,this.emitCurrentDoctype(Ke);break}case Et.EOF:{this._err(kn.eofInDoctype),Ke.forceQuirks=!0,this.emitCurrentDoctype(Ke),this._emitEOFToken();break}default:this._err(kn.missingQuoteBeforeDoctypeSystemIdentifier),Ke.forceQuirks=!0,this.state=Kt.BOGUS_DOCTYPE,this._stateBogusDoctype(pe)}}_stateBeforeDoctypeSystemIdentifier(pe){const Ke=this.currentToken;switch(pe){case Et.SPACE:case Et.LINE_FEED:case Et.TABULATION:case Et.FORM_FEED:break;case Et.QUOTATION_MARK:{Ke.systemId="",this.state=Kt.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case Et.APOSTROPHE:{Ke.systemId="",this.state=Kt.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case Et.GREATER_THAN_SIGN:{this._err(kn.missingDoctypeSystemIdentifier),Ke.forceQuirks=!0,this.state=Kt.DATA,this.emitCurrentDoctype(Ke);break}case Et.EOF:{this._err(kn.eofInDoctype),Ke.forceQuirks=!0,this.emitCurrentDoctype(Ke),this._emitEOFToken();break}default:this._err(kn.missingQuoteBeforeDoctypeSystemIdentifier),Ke.forceQuirks=!0,this.state=Kt.BOGUS_DOCTYPE,this._stateBogusDoctype(pe)}}_stateDoctypeSystemIdentifierDoubleQuoted(pe){const Ke=this.currentToken;switch(pe){case Et.QUOTATION_MARK:{this.state=Kt.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case Et.NULL:{this._err(kn.unexpectedNullCharacter),Ke.systemId+=Yn;break}case Et.GREATER_THAN_SIGN:{this._err(kn.abruptDoctypeSystemIdentifier),Ke.forceQuirks=!0,this.emitCurrentDoctype(Ke),this.state=Kt.DATA;break}case Et.EOF:{this._err(kn.eofInDoctype),Ke.forceQuirks=!0,this.emitCurrentDoctype(Ke),this._emitEOFToken();break}default:Ke.systemId+=String.fromCodePoint(pe)}}_stateDoctypeSystemIdentifierSingleQuoted(pe){const Ke=this.currentToken;switch(pe){case Et.APOSTROPHE:{this.state=Kt.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case Et.NULL:{this._err(kn.unexpectedNullCharacter),Ke.systemId+=Yn;break}case Et.GREATER_THAN_SIGN:{this._err(kn.abruptDoctypeSystemIdentifier),Ke.forceQuirks=!0,this.emitCurrentDoctype(Ke),this.state=Kt.DATA;break}case Et.EOF:{this._err(kn.eofInDoctype),Ke.forceQuirks=!0,this.emitCurrentDoctype(Ke),this._emitEOFToken();break}default:Ke.systemId+=String.fromCodePoint(pe)}}_stateAfterDoctypeSystemIdentifier(pe){const Ke=this.currentToken;switch(pe){case Et.SPACE:case Et.LINE_FEED:case Et.TABULATION:case Et.FORM_FEED:break;case Et.GREATER_THAN_SIGN:{this.emitCurrentDoctype(Ke),this.state=Kt.DATA;break}case Et.EOF:{this._err(kn.eofInDoctype),Ke.forceQuirks=!0,this.emitCurrentDoctype(Ke),this._emitEOFToken();break}default:this._err(kn.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=Kt.BOGUS_DOCTYPE,this._stateBogusDoctype(pe)}}_stateBogusDoctype(pe){const Ke=this.currentToken;switch(pe){case Et.GREATER_THAN_SIGN:{this.emitCurrentDoctype(Ke),this.state=Kt.DATA;break}case Et.NULL:{this._err(kn.unexpectedNullCharacter);break}case Et.EOF:{this.emitCurrentDoctype(Ke),this._emitEOFToken();break}default:}}_stateCdataSection(pe){switch(pe){case Et.RIGHT_SQUARE_BRACKET:{this.state=Kt.CDATA_SECTION_BRACKET;break}case Et.EOF:{this._err(kn.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(pe)}}_stateCdataSectionBracket(pe){pe===Et.RIGHT_SQUARE_BRACKET?this.state=Kt.CDATA_SECTION_END:(this._emitChars("]"),this.state=Kt.CDATA_SECTION,this._stateCdataSection(pe))}_stateCdataSectionEnd(pe){switch(pe){case Et.GREATER_THAN_SIGN:{this.state=Kt.DATA;break}case Et.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:this._emitChars("]]"),this.state=Kt.CDATA_SECTION,this._stateCdataSection(pe)}}_stateCharacterReference(){let pe=this.entityDecoder.write(this.preprocessor.html,this.preprocessor.pos);if(pe<0)if(this.preprocessor.lastChunkWritten)pe=this.entityDecoder.end();else{this.active=!1,this.preprocessor.pos=this.preprocessor.html.length-1,this.consumedAfterSnapshot=0,this.preprocessor.endOfChunkHit=!0;return}pe===0?(this.preprocessor.pos=this.entityStartPos,this._flushCodePointConsumedAsCharacterReference(Et.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&Ji(this.preprocessor.peek(1))?Kt.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(pe){Ji(pe)?this._flushCodePointConsumedAsCharacterReference(pe):(pe===Et.SEMICOLON&&this._err(kn.unknownNamedCharacterReference),this.state=this.returnState,this._callState(pe))}}const Ur=new Set([Be.DD,Be.DT,Be.LI,Be.OPTGROUP,Be.OPTION,Be.P,Be.RB,Be.RP,Be.RT,Be.RTC]),Dn=new Set([...Ur,Be.CAPTION,Be.COLGROUP,Be.TBODY,Be.TD,Be.TFOOT,Be.TH,Be.THEAD,Be.TR]),Zr=new Set([Be.APPLET,Be.CAPTION,Be.HTML,Be.MARQUEE,Be.OBJECT,Be.TABLE,Be.TD,Be.TEMPLATE,Be.TH]),Bn=new Set([...Zr,Be.OL,Be.UL]),qi=new Set([...Zr,Be.BUTTON]),ur=new Set([Be.ANNOTATION_XML,Be.MI,Be.MN,Be.MO,Be.MS,Be.MTEXT]),gr=new Set([Be.DESC,Be.FOREIGN_OBJECT,Be.TITLE]),xo=new Set([Be.TR,Be.TEMPLATE,Be.HTML]),yo=new Set([Be.TBODY,Be.TFOOT,Be.THEAD,Be.TEMPLATE,Be.HTML]),mo=new Set([Be.TABLE,Be.TEMPLATE,Be.HTML]),bo=new Set([Be.TD,Be.TH]);class cn{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(pe,Ke,Dt){this.treeAdapter=Ke,this.handler=Dt,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=Be.UNKNOWN,this.current=pe}_indexOf(pe){return this.items.lastIndexOf(pe,this.stackTop)}_isInTemplate(){return this.currentTagId===Be.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===zt.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(pe,Ke){this.stackTop++,this.items[this.stackTop]=pe,this.current=pe,this.tagIDs[this.stackTop]=Ke,this.currentTagId=Ke,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(pe,Ke,!0)}pop(){const pe=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(pe,!0)}replace(pe,Ke){const Dt=this._indexOf(pe);this.items[Dt]=Ke,Dt===this.stackTop&&(this.current=Ke)}insertAfter(pe,Ke,Dt){const Hn=this._indexOf(pe)+1;this.items.splice(Hn,0,Ke),this.tagIDs.splice(Hn,0,Dt),this.stackTop++,Hn===this.stackTop&&this._updateCurrentElement(),this.handler.onItemPush(this.current,this.currentTagId,Hn===this.stackTop)}popUntilTagNamePopped(pe){let Ke=this.stackTop+1;do Ke=this.tagIDs.lastIndexOf(pe,Ke-1);while(Ke>0&&this.treeAdapter.getNamespaceURI(this.items[Ke])!==zt.HTML);this.shortenToLength(Ke<0?0:Ke)}shortenToLength(pe){for(;this.stackTop>=pe;){const Ke=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(Ke,this.stackTop<pe)}}popUntilElementPopped(pe){const Ke=this._indexOf(pe);this.shortenToLength(Ke<0?0:Ke)}popUntilPopped(pe,Ke){const Dt=this._indexOfTagNames(pe,Ke);this.shortenToLength(Dt<0?0:Dt)}popUntilNumberedHeaderPopped(){this.popUntilPopped(er,zt.HTML)}popUntilTableCellPopped(){this.popUntilPopped(bo,zt.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(pe,Ke){for(let Dt=this.stackTop;Dt>=0;Dt--)if(pe.has(this.tagIDs[Dt])&&this.treeAdapter.getNamespaceURI(this.items[Dt])===Ke)return Dt;return-1}clearBackTo(pe,Ke){const Dt=this._indexOfTagNames(pe,Ke);this.shortenToLength(Dt+1)}clearBackToTableContext(){this.clearBackTo(mo,zt.HTML)}clearBackToTableBodyContext(){this.clearBackTo(yo,zt.HTML)}clearBackToTableRowContext(){this.clearBackTo(xo,zt.HTML)}remove(pe){const Ke=this._indexOf(pe);Ke>=0&&(Ke===this.stackTop?this.pop():(this.items.splice(Ke,1),this.tagIDs.splice(Ke,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(pe,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===Be.BODY?this.items[1]:null}contains(pe){return this._indexOf(pe)>-1}getCommonAncestor(pe){const Ke=this._indexOf(pe)-1;return Ke>=0?this.items[Ke]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===Be.HTML}hasInDynamicScope(pe,Ke){for(let Dt=this.stackTop;Dt>=0;Dt--){const Hn=this.tagIDs[Dt];switch(this.treeAdapter.getNamespaceURI(this.items[Dt])){case zt.HTML:{if(Hn===pe)return!0;if(Ke.has(Hn))return!1;break}case zt.SVG:{if(gr.has(Hn))return!1;break}case zt.MATHML:{if(ur.has(Hn))return!1;break}}}return!0}hasInScope(pe){return this.hasInDynamicScope(pe,Zr)}hasInListItemScope(pe){return this.hasInDynamicScope(pe,Bn)}hasInButtonScope(pe){return this.hasInDynamicScope(pe,qi)}hasNumberedHeaderInScope(){for(let pe=this.stackTop;pe>=0;pe--){const Ke=this.tagIDs[pe];switch(this.treeAdapter.getNamespaceURI(this.items[pe])){case zt.HTML:{if(er.has(Ke))return!0;if(Zr.has(Ke))return!1;break}case zt.SVG:{if(gr.has(Ke))return!1;break}case zt.MATHML:{if(ur.has(Ke))return!1;break}}}return!0}hasInTableScope(pe){for(let Ke=this.stackTop;Ke>=0;Ke--)if(this.treeAdapter.getNamespaceURI(this.items[Ke])===zt.HTML)switch(this.tagIDs[Ke]){case pe:return!0;case Be.TABLE:case Be.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let pe=this.stackTop;pe>=0;pe--)if(this.treeAdapter.getNamespaceURI(this.items[pe])===zt.HTML)switch(this.tagIDs[pe]){case Be.TBODY:case Be.THEAD:case Be.TFOOT:return!0;case Be.TABLE:case Be.HTML:return!1}return!0}hasInSelectScope(pe){for(let Ke=this.stackTop;Ke>=0;Ke--)if(this.treeAdapter.getNamespaceURI(this.items[Ke])===zt.HTML)switch(this.tagIDs[Ke]){case pe:return!0;case Be.OPTION:case Be.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;Ur.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;Dn.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(pe){for(;this.currentTagId!==pe&&Dn.has(this.currentTagId);)this.pop()}}const Fn=3;var an;(function(le){le[le.Marker=0]="Marker",le[le.Element=1]="Element"})(an||(an={}));const Je={type:an.Marker};class ci{constructor(pe){this.treeAdapter=pe,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(pe,Ke){const Dt=[],Hn=Ke.length,Ii=this.treeAdapter.getTagName(pe),$i=this.treeAdapter.getNamespaceURI(pe);for(let so=0;so<this.entries.length;so++){const Lo=this.entries[so];if(Lo.type===an.Marker)break;const{element:Ti}=Lo;if(this.treeAdapter.getTagName(Ti)===Ii&&this.treeAdapter.getNamespaceURI(Ti)===$i){const Ar=this.treeAdapter.getAttrList(Ti);Ar.length===Hn&&Dt.push({idx:so,attrs:Ar})}}return Dt}_ensureNoahArkCondition(pe){if(this.entries.length<Fn)return;const Ke=this.treeAdapter.getAttrList(pe),Dt=this._getNoahArkConditionCandidates(pe,Ke);if(Dt.length<Fn)return;const Hn=new Map(Ke.map($i=>[$i.name,$i.value]));let Ii=0;for(let $i=0;$i<Dt.length;$i++){const so=Dt[$i];so.attrs.every(Lo=>Hn.get(Lo.name)===Lo.value)&&(Ii+=1,Ii>=Fn&&this.entries.splice(so.idx,1))}}insertMarker(){this.entries.unshift(Je)}pushElement(pe,Ke){this._ensureNoahArkCondition(pe),this.entries.unshift({type:an.Element,element:pe,token:Ke})}insertElementAfterBookmark(pe,Ke){const Dt=this.entries.indexOf(this.bookmark);this.entries.splice(Dt,0,{type:an.Element,element:pe,token:Ke})}removeEntry(pe){const Ke=this.entries.indexOf(pe);Ke>=0&&this.entries.splice(Ke,1)}clearToLastMarker(){const pe=this.entries.indexOf(Je);pe>=0?this.entries.splice(0,pe+1):this.entries.length=0}getElementEntryInScopeWithTagName(pe){const Ke=this.entries.find(Dt=>Dt.type===an.Marker||this.treeAdapter.getTagName(Dt.element)===pe);return Ke&&Ke.type===an.Element?Ke:null}getElementEntry(pe){return this.entries.find(Ke=>Ke.type===an.Element&&Ke.element===pe)}}const Qn={createDocument(){return{nodeName:"#document",mode:oi.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(le,pe,Ke){return{nodeName:le,tagName:le,attrs:Ke,namespaceURI:pe,childNodes:[],parentNode:null}},createCommentNode(le){return{nodeName:"#comment",data:le,parentNode:null}},createTextNode(le){return{nodeName:"#text",value:le,parentNode:null}},appendChild(le,pe){le.childNodes.push(pe),pe.parentNode=le},insertBefore(le,pe,Ke){const Dt=le.childNodes.indexOf(Ke);le.childNodes.splice(Dt,0,pe),pe.parentNode=le},setTemplateContent(le,pe){le.content=pe},getTemplateContent(le){return le.content},setDocumentType(le,pe,Ke,Dt){const Hn=le.childNodes.find(Ii=>Ii.nodeName==="#documentType");if(Hn)Hn.name=pe,Hn.publicId=Ke,Hn.systemId=Dt;else{const Ii={nodeName:"#documentType",name:pe,publicId:Ke,systemId:Dt,parentNode:null};Qn.appendChild(le,Ii)}},setDocumentMode(le,pe){le.mode=pe},getDocumentMode(le){return le.mode},detachNode(le){if(le.parentNode){const pe=le.parentNode.childNodes.indexOf(le);le.parentNode.childNodes.splice(pe,1),le.parentNode=null}},insertText(le,pe){if(le.childNodes.length>0){const Ke=le.childNodes[le.childNodes.length-1];if(Qn.isTextNode(Ke)){Ke.value+=pe;return}}Qn.appendChild(le,Qn.createTextNode(pe))},insertTextBefore(le,pe,Ke){const Dt=le.childNodes[le.childNodes.indexOf(Ke)-1];Dt&&Qn.isTextNode(Dt)?Dt.value+=pe:Qn.insertBefore(le,Qn.createTextNode(pe),Ke)},adoptAttributes(le,pe){const Ke=new Set(le.attrs.map(Dt=>Dt.name));for(let Dt=0;Dt<pe.length;Dt++)Ke.has(pe[Dt].name)||le.attrs.push(pe[Dt])},getFirstChild(le){return le.childNodes[0]},getChildNodes(le){return le.childNodes},getParentNode(le){return le.parentNode},getAttrList(le){return le.attrs},getTagName(le){return le.tagName},getNamespaceURI(le){return le.namespaceURI},getTextNodeContent(le){return le.value},getCommentNodeContent(le){return le.data},getDocumentTypeNodeName(le){return le.name},getDocumentTypeNodePublicId(le){return le.publicId},getDocumentTypeNodeSystemId(le){return le.systemId},isTextNode(le){return le.nodeName==="#text"},isCommentNode(le){return le.nodeName==="#comment"},isDocumentTypeNode(le){return le.nodeName==="#documentType"},isElementNode(le){return Object.prototype.hasOwnProperty.call(le,"tagName")},setNodeSourceCodeLocation(le,pe){le.sourceCodeLocation=pe},getNodeSourceCodeLocation(le){return le.sourceCodeLocation},updateNodeSourceCodeLocation(le,pe){le.sourceCodeLocation=ta(ta({},le.sourceCodeLocation),pe)}},yi="html",Ci="about:legacy-compat",Fi="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",Vn=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],pi=[...Vn,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],mi=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),xi=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],bi=[...xi,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function tr(le,pe){return pe.some(Ke=>le.startsWith(Ke))}function zi(le){return le.name===yi&&le.publicId===null&&(le.systemId===null||le.systemId===Ci)}function Bi(le){if(le.name!==yi)return oi.QUIRKS;const{systemId:pe}=le;if(pe&&pe.toLowerCase()===Fi)return oi.QUIRKS;let{publicId:Ke}=le;if(Ke!==null){if(Ke=Ke.toLowerCase(),mi.has(Ke))return oi.QUIRKS;let Dt=pe===null?pi:Vn;if(tr(Ke,Dt))return oi.QUIRKS;if(Dt=pe===null?xi:bi,tr(Ke,Dt))return oi.LIMITED_QUIRKS}return oi.NO_QUIRKS}const Ln={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},Oi="definitionurl",ar="definitionURL",_r=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(le=>[le.toLowerCase(),le])),Lr=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:zt.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:zt.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:zt.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:zt.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:zt.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:zt.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:zt.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:zt.XML}],["xml:space",{prefix:"xml",name:"space",namespace:zt.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:zt.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:zt.XMLNS}]]),Wr=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(le=>[le.toLowerCase(),le])),Hr=new Set([Be.B,Be.BIG,Be.BLOCKQUOTE,Be.BODY,Be.BR,Be.CENTER,Be.CODE,Be.DD,Be.DIV,Be.DL,Be.DT,Be.EM,Be.EMBED,Be.H1,Be.H2,Be.H3,Be.H4,Be.H5,Be.H6,Be.HEAD,Be.HR,Be.I,Be.IMG,Be.LI,Be.LISTING,Be.MENU,Be.META,Be.NOBR,Be.OL,Be.P,Be.PRE,Be.RUBY,Be.S,Be.SMALL,Be.SPAN,Be.STRONG,Be.STRIKE,Be.SUB,Be.SUP,Be.TABLE,Be.TT,Be.U,Be.UL,Be.VAR]);function jr(le){const pe=le.tagID;return pe===Be.FONT&&le.attrs.some(({name:Dt})=>Dt===wn.COLOR||Dt===wn.SIZE||Dt===wn.FACE)||Hr.has(pe)}function So(le){for(let pe=0;pe<le.attrs.length;pe++)if(le.attrs[pe].name===Oi){le.attrs[pe].name=ar;break}}function vo(le){for(let pe=0;pe<le.attrs.length;pe++){const Ke=_r.get(le.attrs[pe].name);Ke!=null&&(le.attrs[pe].name=Ke)}}function ra(le){for(let pe=0;pe<le.attrs.length;pe++){const Ke=Lr.get(le.attrs[pe].name);Ke&&(le.attrs[pe].prefix=Ke.prefix,le.attrs[pe].name=Ke.name,le.attrs[pe].namespace=Ke.namespace)}}function tn(le){const pe=Wr.get(le.tagName);pe!=null&&(le.tagName=pe,le.tagID=ui(le.tagName))}function Xr(le,pe){return pe===zt.MATHML&&(le===Be.MI||le===Be.MO||le===Be.MN||le===Be.MS||le===Be.MTEXT)}function uo(le,pe,Ke){if(pe===zt.MATHML&&le===Be.ANNOTATION_XML){for(let Dt=0;Dt<Ke.length;Dt++)if(Ke[Dt].name===wn.ENCODING){const Hn=Ke[Dt].value.toLowerCase();return Hn===Ln.TEXT_HTML||Hn===Ln.APPLICATION_XML}}return pe===zt.SVG&&(le===Be.FOREIGN_OBJECT||le===Be.DESC||le===Be.TITLE)}function Tr(le,pe,Ke,Dt){return(!Dt||Dt===zt.HTML)&&uo(le,pe,Ke)||(!Dt||Dt===zt.MATHML)&&Xr(le,pe)}const ao="hidden",br=8,Go=3;var gn;(function(le){le[le.INITIAL=0]="INITIAL",le[le.BEFORE_HTML=1]="BEFORE_HTML",le[le.BEFORE_HEAD=2]="BEFORE_HEAD",le[le.IN_HEAD=3]="IN_HEAD",le[le.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",le[le.AFTER_HEAD=5]="AFTER_HEAD",le[le.IN_BODY=6]="IN_BODY",le[le.TEXT=7]="TEXT",le[le.IN_TABLE=8]="IN_TABLE",le[le.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",le[le.IN_CAPTION=10]="IN_CAPTION",le[le.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",le[le.IN_TABLE_BODY=12]="IN_TABLE_BODY",le[le.IN_ROW=13]="IN_ROW",le[le.IN_CELL=14]="IN_CELL",le[le.IN_SELECT=15]="IN_SELECT",le[le.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",le[le.IN_TEMPLATE=17]="IN_TEMPLATE",le[le.AFTER_BODY=18]="AFTER_BODY",le[le.IN_FRAMESET=19]="IN_FRAMESET",le[le.AFTER_FRAMESET=20]="AFTER_FRAMESET",le[le.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",le[le.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET"})(gn||(gn={}));const qr={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},Oo=new Set([Be.TABLE,Be.TBODY,Be.TFOOT,Be.THEAD,Be.TR]),Ga={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:Qn,onParseError:null};class pa{constructor(pe,Ke,Dt=null,Hn=null){this.fragmentContext=Dt,this.scriptHandler=Hn,this.currentToken=null,this.stopped=!1,this.insertionMode=gn.INITIAL,this.originalInsertionMode=gn.INITIAL,this.headElement=null,this.formElement=null,this.currentNotInHTML=!1,this.tmplInsertionModeStack=[],this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1,this.options=ta(ta({},Ga),pe),this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=Ke!=null?Ke:this.treeAdapter.createDocument(),this.tokenizer=new Ir(this.options,this),this.activeFormattingElements=new ci(this.treeAdapter),this.fragmentContextID=Dt?ui(this.treeAdapter.getTagName(Dt)):Be.UNKNOWN,this._setContextModes(Dt!=null?Dt:this.document,this.fragmentContextID),this.openElements=new cn(this.document,this.treeAdapter,this)}static parse(pe,Ke){const Dt=new this(Ke);return Dt.tokenizer.write(pe,!0),Dt.document}static getFragmentParser(pe,Ke){const Dt=ta(ta({},Ga),Ke);pe!=null||(pe=Dt.treeAdapter.createElement(qt.TEMPLATE,zt.HTML,[]));const Hn=Dt.treeAdapter.createElement("documentmock",zt.HTML,[]),Ii=new this(Dt,Hn,pe);return Ii.fragmentContextID===Be.TEMPLATE&&Ii.tmplInsertionModeStack.unshift(gn.IN_TEMPLATE),Ii._initTokenizerForFragmentParsing(),Ii._insertFakeRootElement(),Ii._resetInsertionMode(),Ii._findFormInFragmentContext(),Ii}getFragment(){const pe=this.treeAdapter.getFirstChild(this.document),Ke=this.treeAdapter.createDocumentFragment();return this._adoptNodes(pe,Ke),Ke}_err(pe,Ke,Dt){var Hn;if(!this.onParseError)return;const Ii=(Hn=pe.location)!==null&&Hn!==void 0?Hn:qr,$i={code:Ke,startLine:Ii.startLine,startCol:Ii.startCol,startOffset:Ii.startOffset,endLine:Dt?Ii.startLine:Ii.endLine,endCol:Dt?Ii.startCol:Ii.endCol,endOffset:Dt?Ii.startOffset:Ii.endOffset};this.onParseError($i)}onItemPush(pe,Ke,Dt){var Hn,Ii;(Ii=(Hn=this.treeAdapter).onItemPush)===null||Ii===void 0||Ii.call(Hn,pe),Dt&&this.openElements.stackTop>0&&this._setContextModes(pe,Ke)}onItemPop(pe,Ke){var Dt,Hn;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(pe,this.currentToken),(Hn=(Dt=this.treeAdapter).onItemPop)===null||Hn===void 0||Hn.call(Dt,pe,this.openElements.current),Ke){let Ii,$i;this.openElements.stackTop===0&&this.fragmentContext?(Ii=this.fragmentContext,$i=this.fragmentContextID):{current:Ii,currentTagId:$i}=this.openElements,this._setContextModes(Ii,$i)}}_setContextModes(pe,Ke){const Dt=pe===this.document||this.treeAdapter.getNamespaceURI(pe)===zt.HTML;this.currentNotInHTML=!Dt,this.tokenizer.inForeignNode=!Dt&&!this._isIntegrationPoint(Ke,pe)}_switchToTextParsing(pe,Ke){this._insertElement(pe,zt.HTML),this.tokenizer.state=Ke,this.originalInsertionMode=this.insertionMode,this.insertionMode=gn.TEXT}switchToPlaintextParsing(){this.insertionMode=gn.TEXT,this.originalInsertionMode=gn.IN_BODY,this.tokenizer.state=sr.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let pe=this.fragmentContext;for(;pe;){if(this.treeAdapter.getTagName(pe)===qt.FORM){this.formElement=pe;break}pe=this.treeAdapter.getParentNode(pe)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==zt.HTML))switch(this.fragmentContextID){case Be.TITLE:case Be.TEXTAREA:{this.tokenizer.state=sr.RCDATA;break}case Be.STYLE:case Be.XMP:case Be.IFRAME:case Be.NOEMBED:case Be.NOFRAMES:case Be.NOSCRIPT:{this.tokenizer.state=sr.RAWTEXT;break}case Be.SCRIPT:{this.tokenizer.state=sr.SCRIPT_DATA;break}case Be.PLAINTEXT:{this.tokenizer.state=sr.PLAINTEXT;break}default:}}_setDocumentType(pe){const Ke=pe.name||"",Dt=pe.publicId||"",Hn=pe.systemId||"";if(this.treeAdapter.setDocumentType(this.document,Ke,Dt,Hn),pe.location){const $i=this.treeAdapter.getChildNodes(this.document).find(so=>this.treeAdapter.isDocumentTypeNode(so));$i&&this.treeAdapter.setNodeSourceCodeLocation($i,pe.location)}}_attachElementToTree(pe,Ke){if(this.options.sourceCodeLocationInfo){const Dt=Ke&&Pf(ta({},Ke),{startTag:Ke});this.treeAdapter.setNodeSourceCodeLocation(pe,Dt)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(pe);else{const Dt=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(Dt,pe)}}_appendElement(pe,Ke){const Dt=this.treeAdapter.createElement(pe.tagName,Ke,pe.attrs);this._attachElementToTree(Dt,pe.location)}_insertElement(pe,Ke){const Dt=this.treeAdapter.createElement(pe.tagName,Ke,pe.attrs);this._attachElementToTree(Dt,pe.location),this.openElements.push(Dt,pe.tagID)}_insertFakeElement(pe,Ke){const Dt=this.treeAdapter.createElement(pe,zt.HTML,[]);this._attachElementToTree(Dt,null),this.openElements.push(Dt,Ke)}_insertTemplate(pe){const Ke=this.treeAdapter.createElement(pe.tagName,zt.HTML,pe.attrs),Dt=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(Ke,Dt),this._attachElementToTree(Ke,pe.location),this.openElements.push(Ke,pe.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(Dt,null)}_insertFakeRootElement(){const pe=this.treeAdapter.createElement(qt.HTML,zt.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(pe,null),this.treeAdapter.appendChild(this.openElements.current,pe),this.openElements.push(pe,Be.HTML)}_appendCommentNode(pe,Ke){const Dt=this.treeAdapter.createCommentNode(pe.data);this.treeAdapter.appendChild(Ke,Dt),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(Dt,pe.location)}_insertCharacters(pe){let Ke,Dt;if(this._shouldFosterParentOnInsertion()?({parent:Ke,beforeElement:Dt}=this._findFosterParentingLocation(),Dt?this.treeAdapter.insertTextBefore(Ke,pe.chars,Dt):this.treeAdapter.insertText(Ke,pe.chars)):(Ke=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(Ke,pe.chars)),!pe.location)return;const Hn=this.treeAdapter.getChildNodes(Ke),Ii=Dt?Hn.lastIndexOf(Dt):Hn.length,$i=Hn[Ii-1];if(this.treeAdapter.getNodeSourceCodeLocation($i)){const{endLine:Lo,endCol:Ti,endOffset:Ar}=pe.location;this.treeAdapter.updateNodeSourceCodeLocation($i,{endLine:Lo,endCol:Ti,endOffset:Ar})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation($i,pe.location)}_adoptNodes(pe,Ke){for(let Dt=this.treeAdapter.getFirstChild(pe);Dt;Dt=this.treeAdapter.getFirstChild(pe))this.treeAdapter.detachNode(Dt),this.treeAdapter.appendChild(Ke,Dt)}_setEndLocation(pe,Ke){if(this.treeAdapter.getNodeSourceCodeLocation(pe)&&Ke.location){const Dt=Ke.location,Hn=this.treeAdapter.getTagName(pe),Ii=Ke.type===Wi.END_TAG&&Hn===Ke.tagName?{endTag:ta({},Dt),endLine:Dt.endLine,endCol:Dt.endCol,endOffset:Dt.endOffset}:{endLine:Dt.startLine,endCol:Dt.startCol,endOffset:Dt.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(pe,Ii)}}shouldProcessStartTagTokenInForeignContent(pe){if(!this.currentNotInHTML)return!1;let Ke,Dt;return this.openElements.stackTop===0&&this.fragmentContext?(Ke=this.fragmentContext,Dt=this.fragmentContextID):{current:Ke,currentTagId:Dt}=this.openElements,pe.tagID===Be.SVG&&this.treeAdapter.getTagName(Ke)===qt.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(Ke)===zt.MATHML?!1:this.tokenizer.inForeignNode||(pe.tagID===Be.MGLYPH||pe.tagID===Be.MALIGNMARK)&&!this._isIntegrationPoint(Dt,Ke,zt.HTML)}_processToken(pe){switch(pe.type){case Wi.CHARACTER:{this.onCharacter(pe);break}case Wi.NULL_CHARACTER:{this.onNullCharacter(pe);break}case Wi.COMMENT:{this.onComment(pe);break}case Wi.DOCTYPE:{this.onDoctype(pe);break}case Wi.START_TAG:{this._processStartTag(pe);break}case Wi.END_TAG:{this.onEndTag(pe);break}case Wi.EOF:{this.onEof(pe);break}case Wi.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(pe);break}}}_isIntegrationPoint(pe,Ke,Dt){const Hn=this.treeAdapter.getNamespaceURI(Ke),Ii=this.treeAdapter.getAttrList(Ke);return Tr(pe,Hn,Ii,Dt)}_reconstructActiveFormattingElements(){const pe=this.activeFormattingElements.entries.length;if(pe){const Ke=this.activeFormattingElements.entries.findIndex(Hn=>Hn.type===an.Marker||this.openElements.contains(Hn.element)),Dt=Ke<0?pe-1:Ke-1;for(let Hn=Dt;Hn>=0;Hn--){const Ii=this.activeFormattingElements.entries[Hn];this._insertElement(Ii.token,this.treeAdapter.getNamespaceURI(Ii.element)),Ii.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=gn.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(Be.P),this.openElements.popUntilTagNamePopped(Be.P)}_resetInsertionMode(){for(let pe=this.openElements.stackTop;pe>=0;pe--)switch(pe===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[pe]){case Be.TR:{this.insertionMode=gn.IN_ROW;return}case Be.TBODY:case Be.THEAD:case Be.TFOOT:{this.insertionMode=gn.IN_TABLE_BODY;return}case Be.CAPTION:{this.insertionMode=gn.IN_CAPTION;return}case Be.COLGROUP:{this.insertionMode=gn.IN_COLUMN_GROUP;return}case Be.TABLE:{this.insertionMode=gn.IN_TABLE;return}case Be.BODY:{this.insertionMode=gn.IN_BODY;return}case Be.FRAMESET:{this.insertionMode=gn.IN_FRAMESET;return}case Be.SELECT:{this._resetInsertionModeForSelect(pe);return}case Be.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case Be.HTML:{this.insertionMode=this.headElement?gn.AFTER_HEAD:gn.BEFORE_HEAD;return}case Be.TD:case Be.TH:{if(pe>0){this.insertionMode=gn.IN_CELL;return}break}case Be.HEAD:{if(pe>0){this.insertionMode=gn.IN_HEAD;return}break}}this.insertionMode=gn.IN_BODY}_resetInsertionModeForSelect(pe){if(pe>0)for(let Ke=pe-1;Ke>0;Ke--){const Dt=this.openElements.tagIDs[Ke];if(Dt===Be.TEMPLATE)break;if(Dt===Be.TABLE){this.insertionMode=gn.IN_SELECT_IN_TABLE;return}}this.insertionMode=gn.IN_SELECT}_isElementCausesFosterParenting(pe){return Oo.has(pe)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let pe=this.openElements.stackTop;pe>=0;pe--){const Ke=this.openElements.items[pe];switch(this.openElements.tagIDs[pe]){case Be.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(Ke)===zt.HTML)return{parent:this.treeAdapter.getTemplateContent(Ke),beforeElement:null};break}case Be.TABLE:{const Dt=this.treeAdapter.getParentNode(Ke);return Dt?{parent:Dt,beforeElement:Ke}:{parent:this.openElements.items[pe-1],beforeElement:null}}default:}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(pe){const Ke=this._findFosterParentingLocation();Ke.beforeElement?this.treeAdapter.insertBefore(Ke.parent,pe,Ke.beforeElement):this.treeAdapter.appendChild(Ke.parent,pe)}_isSpecialElement(pe,Ke){const Dt=this.treeAdapter.getNamespaceURI(pe);return Ki[Dt].has(Ke)}onCharacter(pe){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){rt(this,pe);return}switch(this.insertionMode){case gn.INITIAL:{co(this,pe);break}case gn.BEFORE_HTML:{Mo(this,pe);break}case gn.BEFORE_HEAD:{ho(this,pe);break}case gn.IN_HEAD:{ka(this,pe);break}case gn.IN_HEAD_NO_SCRIPT:{fa(this,pe);break}case gn.AFTER_HEAD:{Es(this,pe);break}case gn.IN_BODY:case gn.IN_CAPTION:case gn.IN_CELL:case gn.IN_TEMPLATE:{Bl(this,pe);break}case gn.TEXT:case gn.IN_SELECT:case gn.IN_SELECT_IN_TABLE:{this._insertCharacters(pe);break}case gn.IN_TABLE:case gn.IN_TABLE_BODY:case gn.IN_ROW:{Vr(this,pe);break}case gn.IN_TABLE_TEXT:{kl(this,pe);break}case gn.IN_COLUMN_GROUP:{ts(this,pe);break}case gn.AFTER_BODY:{sc(this,pe);break}case gn.AFTER_AFTER_BODY:{we(this,pe);break}default:}}onNullCharacter(pe){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){Ze(this,pe);return}switch(this.insertionMode){case gn.INITIAL:{co(this,pe);break}case gn.BEFORE_HTML:{Mo(this,pe);break}case gn.BEFORE_HEAD:{ho(this,pe);break}case gn.IN_HEAD:{ka(this,pe);break}case gn.IN_HEAD_NO_SCRIPT:{fa(this,pe);break}case gn.AFTER_HEAD:{Es(this,pe);break}case gn.TEXT:{this._insertCharacters(pe);break}case gn.IN_TABLE:case gn.IN_TABLE_BODY:case gn.IN_ROW:{Vr(this,pe);break}case gn.IN_COLUMN_GROUP:{ts(this,pe);break}case gn.AFTER_BODY:{sc(this,pe);break}case gn.AFTER_AFTER_BODY:{we(this,pe);break}default:}}onComment(pe){if(this.skipNextNewLine=!1,this.currentNotInHTML){Kr(this,pe);return}switch(this.insertionMode){case gn.INITIAL:case gn.BEFORE_HTML:case gn.BEFORE_HEAD:case gn.IN_HEAD:case gn.IN_HEAD_NO_SCRIPT:case gn.AFTER_HEAD:case gn.IN_BODY:case gn.IN_TABLE:case gn.IN_CAPTION:case gn.IN_COLUMN_GROUP:case gn.IN_TABLE_BODY:case gn.IN_ROW:case gn.IN_CELL:case gn.IN_SELECT:case gn.IN_SELECT_IN_TABLE:case gn.IN_TEMPLATE:case gn.IN_FRAMESET:case gn.AFTER_FRAMESET:{Kr(this,pe);break}case gn.IN_TABLE_TEXT:{ql(this,pe);break}case gn.AFTER_BODY:{Ut(this,pe);break}case gn.AFTER_AFTER_BODY:case gn.AFTER_AFTER_FRAMESET:{Ni(this,pe);break}default:}}onDoctype(pe){switch(this.skipNextNewLine=!1,this.insertionMode){case gn.INITIAL:{Pr(this,pe);break}case gn.BEFORE_HEAD:case gn.IN_HEAD:case gn.IN_HEAD_NO_SCRIPT:case gn.AFTER_HEAD:{this._err(pe,kn.misplacedDoctype);break}case gn.IN_TABLE_TEXT:{ql(this,pe);break}default:}}onStartTag(pe){this.skipNextNewLine=!1,this.currentToken=pe,this._processStartTag(pe),pe.selfClosing&&!pe.ackSelfClosing&&this._err(pe,kn.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(pe){this.shouldProcessStartTagTokenInForeignContent(pe)?wt(this,pe):this._startTagOutsideForeignContent(pe)}_startTagOutsideForeignContent(pe){switch(this.insertionMode){case gn.INITIAL:{co(this,pe);break}case gn.BEFORE_HTML:{Qr(this,pe);break}case gn.BEFORE_HEAD:{Jo(this,pe);break}case gn.IN_HEAD:{na(this,pe);break}case gn.IN_HEAD_NO_SCRIPT:{bs(this,pe);break}case gn.AFTER_HEAD:{Gs(this,pe);break}case gn.IN_BODY:{Xo(this,pe);break}case gn.IN_TABLE:{Nl(this,pe);break}case gn.IN_TABLE_TEXT:{ql(this,pe);break}case gn.IN_CAPTION:{_o(this,pe);break}case gn.IN_COLUMN_GROUP:{Ta(this,pe);break}case gn.IN_TABLE_BODY:{ml(this,pe);break}case gn.IN_ROW:{yl(this,pe);break}case gn.IN_CELL:{Ul(this,pe);break}case gn.IN_SELECT:{mh(this,pe);break}case gn.IN_SELECT_IN_TABLE:{yh(this,pe);break}case gn.IN_TEMPLATE:{Vu(this,pe);break}case gn.AFTER_BODY:{Ns(this,pe);break}case gn.IN_FRAMESET:{Rs(this,pe);break}case gn.AFTER_FRAMESET:{hd(this,pe);break}case gn.AFTER_AFTER_BODY:{tl(this,pe);break}case gn.AFTER_AFTER_FRAMESET:{He(this,pe);break}default:}}onEndTag(pe){this.skipNextNewLine=!1,this.currentToken=pe,this.currentNotInHTML?Ft(this,pe):this._endTagOutsideForeignContent(pe)}_endTagOutsideForeignContent(pe){switch(this.insertionMode){case gn.INITIAL:{co(this,pe);break}case gn.BEFORE_HTML:{mr(this,pe);break}case gn.BEFORE_HEAD:{Do(this,pe);break}case gn.IN_HEAD:{as(this,pe);break}case gn.IN_HEAD_NO_SCRIPT:{Ds(this,pe);break}case gn.AFTER_HEAD:{pl(this,pe);break}case gn.IN_BODY:{ga(this,pe);break}case gn.TEXT:{Bo(this,pe);break}case gn.IN_TABLE:{Vo(this,pe);break}case gn.IN_TABLE_TEXT:{ql(this,pe);break}case gn.IN_CAPTION:{$o(this,pe);break}case gn.IN_COLUMN_GROUP:{hs(this,pe);break}case gn.IN_TABLE_BODY:{vl(this,pe);break}case gn.IN_ROW:{el(this,pe);break}case gn.IN_CELL:{dd(this,pe);break}case gn.IN_SELECT:{vh(this,pe);break}case gn.IN_SELECT_IN_TABLE:{Ja(this,pe);break}case gn.IN_TEMPLATE:{da(this,pe);break}case gn.AFTER_BODY:{Cs(this,pe);break}case gn.IN_FRAMESET:{Yu(this,pe);break}case gn.AFTER_FRAMESET:{fd(this,pe);break}case gn.AFTER_AFTER_BODY:{we(this,pe);break}default:}}onEof(pe){switch(this.insertionMode){case gn.INITIAL:{co(this,pe);break}case gn.BEFORE_HTML:{Mo(this,pe);break}case gn.BEFORE_HEAD:{ho(this,pe);break}case gn.IN_HEAD:{ka(this,pe);break}case gn.IN_HEAD_NO_SCRIPT:{fa(this,pe);break}case gn.AFTER_HEAD:{Es(this,pe);break}case gn.IN_BODY:case gn.IN_TABLE:case gn.IN_CAPTION:case gn.IN_COLUMN_GROUP:case gn.IN_TABLE_BODY:case gn.IN_ROW:case gn.IN_CELL:case gn.IN_SELECT:case gn.IN_SELECT_IN_TABLE:{Ea(this,pe);break}case gn.TEXT:{Gu(this,pe);break}case gn.IN_TABLE_TEXT:{ql(this,pe);break}case gn.IN_TEMPLATE:{vs(this,pe);break}case gn.AFTER_BODY:case gn.IN_FRAMESET:case gn.AFTER_FRAMESET:case gn.AFTER_AFTER_BODY:case gn.AFTER_AFTER_FRAMESET:{Qi(this,pe);break}default:}}onWhitespaceCharacter(pe){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,pe.chars.charCodeAt(0)===Et.LINE_FEED)){if(pe.chars.length===1)return;pe.chars=pe.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(pe);return}switch(this.insertionMode){case gn.IN_HEAD:case gn.IN_HEAD_NO_SCRIPT:case gn.AFTER_HEAD:case gn.TEXT:case gn.IN_COLUMN_GROUP:case gn.IN_SELECT:case gn.IN_SELECT_IN_TABLE:case gn.IN_FRAMESET:case gn.AFTER_FRAMESET:{this._insertCharacters(pe);break}case gn.IN_BODY:case gn.IN_CAPTION:case gn.IN_CELL:case gn.IN_TEMPLATE:case gn.AFTER_BODY:case gn.AFTER_AFTER_BODY:case gn.AFTER_AFTER_FRAMESET:{Fs(this,pe);break}case gn.IN_TABLE:case gn.IN_TABLE_BODY:case gn.IN_ROW:{Vr(this,pe);break}case gn.IN_TABLE_TEXT:{Wu(this,pe);break}default:}}}function us(le,pe){let Ke=le.activeFormattingElements.getElementEntryInScopeWithTagName(pe.tagName);return Ke?le.openElements.contains(Ke.element)?le.openElements.hasInScope(pe.tagID)||(Ke=null):(le.activeFormattingElements.removeEntry(Ke),Ke=null):la(le,pe),Ke}function Za(le,pe){let Ke=null,Dt=le.openElements.stackTop;for(;Dt>=0;Dt--){const Hn=le.openElements.items[Dt];if(Hn===pe.element)break;le._isSpecialElement(Hn,le.openElements.tagIDs[Dt])&&(Ke=Hn)}return Ke||(le.openElements.shortenToLength(Dt<0?0:Dt),le.activeFormattingElements.removeEntry(pe)),Ke}function pr(le,pe,Ke){let Dt=pe,Hn=le.openElements.getCommonAncestor(pe);for(let Ii=0,$i=Hn;$i!==Ke;Ii++,$i=Hn){Hn=le.openElements.getCommonAncestor($i);const so=le.activeFormattingElements.getElementEntry($i),Lo=so&&Ii>=Go;!so||Lo?(Lo&&le.activeFormattingElements.removeEntry(so),le.openElements.remove($i)):($i=Ho(le,so),Dt===pe&&(le.activeFormattingElements.bookmark=so),le.treeAdapter.detachNode(Dt),le.treeAdapter.appendChild($i,Dt),Dt=$i)}return Dt}function Ho(le,pe){const Ke=le.treeAdapter.getNamespaceURI(pe.element),Dt=le.treeAdapter.createElement(pe.token.tagName,Ke,pe.token.attrs);return le.openElements.replace(pe.element,Dt),pe.element=Dt,Dt}function ca(le,pe,Ke){const Dt=le.treeAdapter.getTagName(pe),Hn=ui(Dt);if(le._isElementCausesFosterParenting(Hn))le._fosterParentElement(Ke);else{const Ii=le.treeAdapter.getNamespaceURI(pe);Hn===Be.TEMPLATE&&Ii===zt.HTML&&(pe=le.treeAdapter.getTemplateContent(pe)),le.treeAdapter.appendChild(pe,Ke)}}function wa(le,pe,Ke){const Dt=le.treeAdapter.getNamespaceURI(Ke.element),{token:Hn}=Ke,Ii=le.treeAdapter.createElement(Hn.tagName,Dt,Hn.attrs);le._adoptNodes(pe,Ii),le.treeAdapter.appendChild(pe,Ii),le.activeFormattingElements.insertElementAfterBookmark(Ii,Hn),le.activeFormattingElements.removeEntry(Ke),le.openElements.remove(Ke.element),le.openElements.insertAfter(pe,Ii,Hn.tagID)}function to(le,pe){for(let Ke=0;Ke<br;Ke++){const Dt=us(le,pe);if(!Dt)break;const Hn=Za(le,Dt);if(!Hn)break;le.activeFormattingElements.bookmark=Dt;const Ii=pr(le,Hn,Dt.element),$i=le.openElements.getCommonAncestor(Dt.element);le.treeAdapter.detachNode(Ii),$i&&ca(le,$i,Ii),wa(le,Hn,Dt)}}function Kr(le,pe){le._appendCommentNode(pe,le.openElements.currentTmplContentOrNode)}function Ut(le,pe){le._appendCommentNode(pe,le.openElements.items[0])}function Ni(le,pe){le._appendCommentNode(pe,le.document)}function Qi(le,pe){if(le.stopped=!0,pe.location){const Ke=le.fragmentContext?0:2;for(let Dt=le.openElements.stackTop;Dt>=Ke;Dt--)le._setEndLocation(le.openElements.items[Dt],pe);if(!le.fragmentContext&&le.openElements.stackTop>=0){const Dt=le.openElements.items[0],Hn=le.treeAdapter.getNodeSourceCodeLocation(Dt);if(Hn&&!Hn.endTag&&(le._setEndLocation(Dt,pe),le.openElements.stackTop>=1)){const Ii=le.openElements.items[1],$i=le.treeAdapter.getNodeSourceCodeLocation(Ii);$i&&!$i.endTag&&le._setEndLocation(Ii,pe)}}}}function Pr(le,pe){le._setDocumentType(pe);const Ke=pe.forceQuirks?oi.QUIRKS:Bi(pe);zi(pe)||le._err(pe,kn.nonConformingDoctype),le.treeAdapter.setDocumentMode(le.document,Ke),le.insertionMode=gn.BEFORE_HTML}function co(le,pe){le._err(pe,kn.missingDoctype,!0),le.treeAdapter.setDocumentMode(le.document,oi.QUIRKS),le.insertionMode=gn.BEFORE_HTML,le._processToken(pe)}function Qr(le,pe){pe.tagID===Be.HTML?(le._insertElement(pe,zt.HTML),le.insertionMode=gn.BEFORE_HEAD):Mo(le,pe)}function mr(le,pe){const Ke=pe.tagID;(Ke===Be.HTML||Ke===Be.HEAD||Ke===Be.BODY||Ke===Be.BR)&&Mo(le,pe)}function Mo(le,pe){le._insertFakeRootElement(),le.insertionMode=gn.BEFORE_HEAD,le._processToken(pe)}function Jo(le,pe){switch(pe.tagID){case Be.HTML:{Xo(le,pe);break}case Be.HEAD:{le._insertElement(pe,zt.HTML),le.headElement=le.openElements.current,le.insertionMode=gn.IN_HEAD;break}default:ho(le,pe)}}function Do(le,pe){const Ke=pe.tagID;Ke===Be.HEAD||Ke===Be.BODY||Ke===Be.HTML||Ke===Be.BR?ho(le,pe):le._err(pe,kn.endTagWithoutMatchingOpenElement)}function ho(le,pe){le._insertFakeElement(qt.HEAD,Be.HEAD),le.headElement=le.openElements.current,le.insertionMode=gn.IN_HEAD,le._processToken(pe)}function na(le,pe){switch(pe.tagID){case Be.HTML:{Xo(le,pe);break}case Be.BASE:case Be.BASEFONT:case Be.BGSOUND:case Be.LINK:case Be.META:{le._appendElement(pe,zt.HTML),pe.ackSelfClosing=!0;break}case Be.TITLE:{le._switchToTextParsing(pe,sr.RCDATA);break}case Be.NOSCRIPT:{le.options.scriptingEnabled?le._switchToTextParsing(pe,sr.RAWTEXT):(le._insertElement(pe,zt.HTML),le.insertionMode=gn.IN_HEAD_NO_SCRIPT);break}case Be.NOFRAMES:case Be.STYLE:{le._switchToTextParsing(pe,sr.RAWTEXT);break}case Be.SCRIPT:{le._switchToTextParsing(pe,sr.SCRIPT_DATA);break}case Be.TEMPLATE:{le._insertTemplate(pe),le.activeFormattingElements.insertMarker(),le.framesetOk=!1,le.insertionMode=gn.IN_TEMPLATE,le.tmplInsertionModeStack.unshift(gn.IN_TEMPLATE);break}case Be.HEAD:{le._err(pe,kn.misplacedStartTagForHeadElement);break}default:ka(le,pe)}}function as(le,pe){switch(pe.tagID){case Be.HEAD:{le.openElements.pop(),le.insertionMode=gn.AFTER_HEAD;break}case Be.BODY:case Be.BR:case Be.HTML:{ka(le,pe);break}case Be.TEMPLATE:{Po(le,pe);break}default:le._err(pe,kn.endTagWithoutMatchingOpenElement)}}function Po(le,pe){le.openElements.tmplCount>0?(le.openElements.generateImpliedEndTagsThoroughly(),le.openElements.currentTagId!==Be.TEMPLATE&&le._err(pe,kn.closingOfElementWithOpenChildElements),le.openElements.popUntilTagNamePopped(Be.TEMPLATE),le.activeFormattingElements.clearToLastMarker(),le.tmplInsertionModeStack.shift(),le._resetInsertionMode()):le._err(pe,kn.endTagWithoutMatchingOpenElement)}function ka(le,pe){le.openElements.pop(),le.insertionMode=gn.AFTER_HEAD,le._processToken(pe)}function bs(le,pe){switch(pe.tagID){case Be.HTML:{Xo(le,pe);break}case Be.BASEFONT:case Be.BGSOUND:case Be.HEAD:case Be.LINK:case Be.META:case Be.NOFRAMES:case Be.STYLE:{na(le,pe);break}case Be.NOSCRIPT:{le._err(pe,kn.nestedNoscriptInHead);break}default:fa(le,pe)}}function Ds(le,pe){switch(pe.tagID){case Be.NOSCRIPT:{le.openElements.pop(),le.insertionMode=gn.IN_HEAD;break}case Be.BR:{fa(le,pe);break}default:le._err(pe,kn.endTagWithoutMatchingOpenElement)}}function fa(le,pe){const Ke=pe.type===Wi.EOF?kn.openElementsLeftAfterEof:kn.disallowedContentInNoscriptInHead;le._err(pe,Ke),le.openElements.pop(),le.insertionMode=gn.IN_HEAD,le._processToken(pe)}function Gs(le,pe){switch(pe.tagID){case Be.HTML:{Xo(le,pe);break}case Be.BODY:{le._insertElement(pe,zt.HTML),le.framesetOk=!1,le.insertionMode=gn.IN_BODY;break}case Be.FRAMESET:{le._insertElement(pe,zt.HTML),le.insertionMode=gn.IN_FRAMESET;break}case Be.BASE:case Be.BASEFONT:case Be.BGSOUND:case Be.LINK:case Be.META:case Be.NOFRAMES:case Be.SCRIPT:case Be.STYLE:case Be.TEMPLATE:case Be.TITLE:{le._err(pe,kn.abandonedHeadElementChild),le.openElements.push(le.headElement,Be.HEAD),na(le,pe),le.openElements.remove(le.headElement);break}case Be.HEAD:{le._err(pe,kn.misplacedStartTagForHeadElement);break}default:Es(le,pe)}}function pl(le,pe){switch(pe.tagID){case Be.BODY:case Be.HTML:case Be.BR:{Es(le,pe);break}case Be.TEMPLATE:{Po(le,pe);break}default:le._err(pe,kn.endTagWithoutMatchingOpenElement)}}function Es(le,pe){le._insertFakeElement(qt.BODY,Be.BODY),le.insertionMode=gn.IN_BODY,As(le,pe)}function As(le,pe){switch(pe.type){case Wi.CHARACTER:{Bl(le,pe);break}case Wi.WHITESPACE_CHARACTER:{Fs(le,pe);break}case Wi.COMMENT:{Kr(le,pe);break}case Wi.START_TAG:{Xo(le,pe);break}case Wi.END_TAG:{ga(le,pe);break}case Wi.EOF:{Ea(le,pe);break}default:}}function Fs(le,pe){le._reconstructActiveFormattingElements(),le._insertCharacters(pe)}function Bl(le,pe){le._reconstructActiveFormattingElements(),le._insertCharacters(pe),le.framesetOk=!1}function oc(le,pe){le.openElements.tmplCount===0&&le.treeAdapter.adoptAttributes(le.openElements.items[0],pe.attrs)}function Uu(le,pe){const Ke=le.openElements.tryPeekProperlyNestedBodyElement();Ke&&le.openElements.tmplCount===0&&(le.framesetOk=!1,le.treeAdapter.adoptAttributes(Ke,pe.attrs))}function Da(le,pe){const Ke=le.openElements.tryPeekProperlyNestedBodyElement();le.framesetOk&&Ke&&(le.treeAdapter.detachNode(Ke),le.openElements.popAllUpToHtmlElement(),le._insertElement(pe,zt.HTML),le.insertionMode=gn.IN_FRAMESET)}function zu(le,pe){le.openElements.hasInButtonScope(Be.P)&&le._closePElement(),le._insertElement(pe,zt.HTML)}function ac(le,pe){le.openElements.hasInButtonScope(Be.P)&&le._closePElement(),er.has(le.openElements.currentTagId)&&le.openElements.pop(),le._insertElement(pe,zt.HTML)}function Cu(le,pe){le.openElements.hasInButtonScope(Be.P)&&le._closePElement(),le._insertElement(pe,zt.HTML),le.skipNextNewLine=!0,le.framesetOk=!1}function Tu(le,pe){const Ke=le.openElements.tmplCount>0;(!le.formElement||Ke)&&(le.openElements.hasInButtonScope(Be.P)&&le._closePElement(),le._insertElement(pe,zt.HTML),Ke||(le.formElement=le.openElements.current))}function ms(le,pe){le.framesetOk=!1;const Ke=pe.tagID;for(let Dt=le.openElements.stackTop;Dt>=0;Dt--){const Hn=le.openElements.tagIDs[Dt];if(Ke===Be.LI&&Hn===Be.LI||(Ke===Be.DD||Ke===Be.DT)&&(Hn===Be.DD||Hn===Be.DT)){le.openElements.generateImpliedEndTagsWithExclusion(Hn),le.openElements.popUntilTagNamePopped(Hn);break}if(Hn!==Be.ADDRESS&&Hn!==Be.DIV&&Hn!==Be.P&&le._isSpecialElement(le.openElements.items[Dt],Hn))break}le.openElements.hasInButtonScope(Be.P)&&le._closePElement(),le._insertElement(pe,zt.HTML)}function ws(le,pe){le.openElements.hasInButtonScope(Be.P)&&le._closePElement(),le._insertElement(pe,zt.HTML),le.tokenizer.state=sr.PLAINTEXT}function Wa(le,pe){le.openElements.hasInScope(Be.BUTTON)&&(le.openElements.generateImpliedEndTags(),le.openElements.popUntilTagNamePopped(Be.BUTTON)),le._reconstructActiveFormattingElements(),le._insertElement(pe,zt.HTML),le.framesetOk=!1}function Xa(le,pe){const Ke=le.activeFormattingElements.getElementEntryInScopeWithTagName(qt.A);Ke&&(to(le,pe),le.openElements.remove(Ke.element),le.activeFormattingElements.removeEntry(Ke)),le._reconstructActiveFormattingElements(),le._insertElement(pe,zt.HTML),le.activeFormattingElements.pushElement(le.openElements.current,pe)}function ia(le,pe){le._reconstructActiveFormattingElements(),le._insertElement(pe,zt.HTML),le.activeFormattingElements.pushElement(le.openElements.current,pe)}function Eo(le,pe){le._reconstructActiveFormattingElements(),le.openElements.hasInScope(Be.NOBR)&&(to(le,pe),le._reconstructActiveFormattingElements()),le._insertElement(pe,zt.HTML),le.activeFormattingElements.pushElement(le.openElements.current,pe)}function Fo(le,pe){le._reconstructActiveFormattingElements(),le._insertElement(pe,zt.HTML),le.activeFormattingElements.insertMarker(),le.framesetOk=!1}function Qa(le,pe){le.treeAdapter.getDocumentMode(le.document)!==oi.QUIRKS&&le.openElements.hasInButtonScope(Be.P)&&le._closePElement(),le._insertElement(pe,zt.HTML),le.framesetOk=!1,le.insertionMode=gn.IN_TABLE}function La(le,pe){le._reconstructActiveFormattingElements(),le._appendElement(pe,zt.HTML),le.framesetOk=!1,pe.ackSelfClosing=!0}function Fa(le){const pe=lr(le,wn.TYPE);return pe!=null&&pe.toLowerCase()===ao}function dr(le,pe){le._reconstructActiveFormattingElements(),le._appendElement(pe,zt.HTML),Fa(pe)||(le.framesetOk=!1),pe.ackSelfClosing=!0}function $s(le,pe){le._appendElement(pe,zt.HTML),pe.ackSelfClosing=!0}function Bt(le,pe){le.openElements.hasInButtonScope(Be.P)&&le._closePElement(),le._appendElement(pe,zt.HTML),le.framesetOk=!1,pe.ackSelfClosing=!0}function Jn(le,pe){pe.tagName=qt.IMG,pe.tagID=Be.IMG,La(le,pe)}function Ql(le,pe){le._insertElement(pe,zt.HTML),le.skipNextNewLine=!0,le.tokenizer.state=sr.RCDATA,le.originalInsertionMode=le.insertionMode,le.framesetOk=!1,le.insertionMode=gn.TEXT}function Hu(le,pe){le.openElements.hasInButtonScope(Be.P)&&le._closePElement(),le._reconstructActiveFormattingElements(),le.framesetOk=!1,le._switchToTextParsing(pe,sr.RAWTEXT)}function Va(le,pe){le.framesetOk=!1,le._switchToTextParsing(pe,sr.RAWTEXT)}function Ws(le,pe){le._switchToTextParsing(pe,sr.RAWTEXT)}function uu(le,pe){le._reconstructActiveFormattingElements(),le._insertElement(pe,zt.HTML),le.framesetOk=!1,le.insertionMode=le.insertionMode===gn.IN_TABLE||le.insertionMode===gn.IN_CAPTION||le.insertionMode===gn.IN_TABLE_BODY||le.insertionMode===gn.IN_ROW||le.insertionMode===gn.IN_CELL?gn.IN_SELECT_IN_TABLE:gn.IN_SELECT}function Au(le,pe){le.openElements.currentTagId===Be.OPTION&&le.openElements.pop(),le._reconstructActiveFormattingElements(),le._insertElement(pe,zt.HTML)}function ju(le,pe){le.openElements.hasInScope(Be.RUBY)&&le.openElements.generateImpliedEndTags(),le._insertElement(pe,zt.HTML)}function ba(le,pe){le.openElements.hasInScope(Be.RUBY)&&le.openElements.generateImpliedEndTagsWithExclusion(Be.RTC),le._insertElement(pe,zt.HTML)}function $r(le,pe){le._reconstructActiveFormattingElements(),So(pe),ra(pe),pe.selfClosing?le._appendElement(pe,zt.MATHML):le._insertElement(pe,zt.MATHML),pe.ackSelfClosing=!0}function cs(le,pe){le._reconstructActiveFormattingElements(),vo(pe),ra(pe),pe.selfClosing?le._appendElement(pe,zt.SVG):le._insertElement(pe,zt.SVG),pe.ackSelfClosing=!0}function Ms(le,pe){le._reconstructActiveFormattingElements(),le._insertElement(pe,zt.HTML)}function Xo(le,pe){switch(pe.tagID){case Be.I:case Be.S:case Be.B:case Be.U:case Be.EM:case Be.TT:case Be.BIG:case Be.CODE:case Be.FONT:case Be.SMALL:case Be.STRIKE:case Be.STRONG:{ia(le,pe);break}case Be.A:{Xa(le,pe);break}case Be.H1:case Be.H2:case Be.H3:case Be.H4:case Be.H5:case Be.H6:{ac(le,pe);break}case Be.P:case Be.DL:case Be.OL:case Be.UL:case Be.DIV:case Be.DIR:case Be.NAV:case Be.MAIN:case Be.MENU:case Be.ASIDE:case Be.CENTER:case Be.FIGURE:case Be.FOOTER:case Be.HEADER:case Be.HGROUP:case Be.DIALOG:case Be.DETAILS:case Be.ADDRESS:case Be.ARTICLE:case Be.SEARCH:case Be.SECTION:case Be.SUMMARY:case Be.FIELDSET:case Be.BLOCKQUOTE:case Be.FIGCAPTION:{zu(le,pe);break}case Be.LI:case Be.DD:case Be.DT:{ms(le,pe);break}case Be.BR:case Be.IMG:case Be.WBR:case Be.AREA:case Be.EMBED:case Be.KEYGEN:{La(le,pe);break}case Be.HR:{Bt(le,pe);break}case Be.RB:case Be.RTC:{ju(le,pe);break}case Be.RT:case Be.RP:{ba(le,pe);break}case Be.PRE:case Be.LISTING:{Cu(le,pe);break}case Be.XMP:{Hu(le,pe);break}case Be.SVG:{cs(le,pe);break}case Be.HTML:{oc(le,pe);break}case Be.BASE:case Be.LINK:case Be.META:case Be.STYLE:case Be.TITLE:case Be.SCRIPT:case Be.BGSOUND:case Be.BASEFONT:case Be.TEMPLATE:{na(le,pe);break}case Be.BODY:{Uu(le,pe);break}case Be.FORM:{Tu(le,pe);break}case Be.NOBR:{Eo(le,pe);break}case Be.MATH:{$r(le,pe);break}case Be.TABLE:{Qa(le,pe);break}case Be.INPUT:{dr(le,pe);break}case Be.PARAM:case Be.TRACK:case Be.SOURCE:{$s(le,pe);break}case Be.IMAGE:{Jn(le,pe);break}case Be.BUTTON:{Wa(le,pe);break}case Be.APPLET:case Be.OBJECT:case Be.MARQUEE:{Fo(le,pe);break}case Be.IFRAME:{Va(le,pe);break}case Be.SELECT:{uu(le,pe);break}case Be.OPTION:case Be.OPTGROUP:{Au(le,pe);break}case Be.NOEMBED:case Be.NOFRAMES:{Ws(le,pe);break}case Be.FRAMESET:{Da(le,pe);break}case Be.TEXTAREA:{Ql(le,pe);break}case Be.NOSCRIPT:{le.options.scriptingEnabled?Ws(le,pe):Ms(le,pe);break}case Be.PLAINTEXT:{ws(le,pe);break}case Be.COL:case Be.TH:case Be.TD:case Be.TR:case Be.HEAD:case Be.FRAME:case Be.TBODY:case Be.TFOOT:case Be.THEAD:case Be.CAPTION:case Be.COLGROUP:break;default:Ms(le,pe)}}function No(le,pe){if(le.openElements.hasInScope(Be.BODY)&&(le.insertionMode=gn.AFTER_BODY,le.options.sourceCodeLocationInfo)){const Ke=le.openElements.tryPeekProperlyNestedBodyElement();Ke&&le._setEndLocation(Ke,pe)}}function Ca(le,pe){le.openElements.hasInScope(Be.BODY)&&(le.insertionMode=gn.AFTER_BODY,Cs(le,pe))}function Bs(le,pe){const Ke=pe.tagID;le.openElements.hasInScope(Ke)&&(le.openElements.generateImpliedEndTags(),le.openElements.popUntilTagNamePopped(Ke))}function ma(le){const pe=le.openElements.tmplCount>0,{formElement:Ke}=le;pe||(le.formElement=null),(Ke||pe)&&le.openElements.hasInScope(Be.FORM)&&(le.openElements.generateImpliedEndTags(),pe?le.openElements.popUntilTagNamePopped(Be.FORM):Ke&&le.openElements.remove(Ke))}function Vs(le){le.openElements.hasInButtonScope(Be.P)||le._insertFakeElement(qt.P,Be.P),le._closePElement()}function es(le){le.openElements.hasInListItemScope(Be.LI)&&(le.openElements.generateImpliedEndTagsWithExclusion(Be.LI),le.openElements.popUntilTagNamePopped(Be.LI))}function cu(le,pe){const Ke=pe.tagID;le.openElements.hasInScope(Ke)&&(le.openElements.generateImpliedEndTagsWithExclusion(Ke),le.openElements.popUntilTagNamePopped(Ke))}function qo(le){le.openElements.hasNumberedHeaderInScope()&&(le.openElements.generateImpliedEndTags(),le.openElements.popUntilNumberedHeaderPopped())}function ds(le,pe){const Ke=pe.tagID;le.openElements.hasInScope(Ke)&&(le.openElements.generateImpliedEndTags(),le.openElements.popUntilTagNamePopped(Ke),le.activeFormattingElements.clearToLastMarker())}function Wo(le){le._reconstructActiveFormattingElements(),le._insertFakeElement(qt.BR,Be.BR),le.openElements.pop(),le.framesetOk=!1}function la(le,pe){const Ke=pe.tagName,Dt=pe.tagID;for(let Hn=le.openElements.stackTop;Hn>0;Hn--){const Ii=le.openElements.items[Hn],$i=le.openElements.tagIDs[Hn];if(Dt===$i&&(Dt!==Be.UNKNOWN||le.treeAdapter.getTagName(Ii)===Ke)){le.openElements.generateImpliedEndTagsWithExclusion(Dt),le.openElements.stackTop>=Hn&&le.openElements.shortenToLength(Hn);break}if(le._isSpecialElement(Ii,$i))break}}function ga(le,pe){switch(pe.tagID){case Be.A:case Be.B:case Be.I:case Be.S:case Be.U:case Be.EM:case Be.TT:case Be.BIG:case Be.CODE:case Be.FONT:case Be.NOBR:case Be.SMALL:case Be.STRIKE:case Be.STRONG:{to(le,pe);break}case Be.P:{Vs(le);break}case Be.DL:case Be.UL:case Be.OL:case Be.DIR:case Be.DIV:case Be.NAV:case Be.PRE:case Be.MAIN:case Be.MENU:case Be.ASIDE:case Be.BUTTON:case Be.CENTER:case Be.FIGURE:case Be.FOOTER:case Be.HEADER:case Be.HGROUP:case Be.DIALOG:case Be.ADDRESS:case Be.ARTICLE:case Be.DETAILS:case Be.SEARCH:case Be.SECTION:case Be.SUMMARY:case Be.LISTING:case Be.FIELDSET:case Be.BLOCKQUOTE:case Be.FIGCAPTION:{Bs(le,pe);break}case Be.LI:{es(le);break}case Be.DD:case Be.DT:{cu(le,pe);break}case Be.H1:case Be.H2:case Be.H3:case Be.H4:case Be.H5:case Be.H6:{qo(le);break}case Be.BR:{Wo(le);break}case Be.BODY:{No(le,pe);break}case Be.HTML:{Ca(le,pe);break}case Be.FORM:{ma(le);break}case Be.APPLET:case Be.OBJECT:case Be.MARQUEE:{ds(le,pe);break}case Be.TEMPLATE:{Po(le,pe);break}default:la(le,pe)}}function Ea(le,pe){le.tmplInsertionModeStack.length>0?vs(le,pe):Qi(le,pe)}function Bo(le,pe){var Ke;pe.tagID===Be.SCRIPT&&((Ke=le.scriptHandler)===null||Ke===void 0||Ke.call(le,le.openElements.current)),le.openElements.pop(),le.insertionMode=le.originalInsertionMode}function Gu(le,pe){le._err(pe,kn.eofInElementThatCanContainOnlyText),le.openElements.pop(),le.insertionMode=le.originalInsertionMode,le.onEof(pe)}function Vr(le,pe){if(Oo.has(le.openElements.currentTagId))switch(le.pendingCharacterTokens.length=0,le.hasNonWhitespacePendingCharacterToken=!1,le.originalInsertionMode=le.insertionMode,le.insertionMode=gn.IN_TABLE_TEXT,pe.type){case Wi.CHARACTER:{kl(le,pe);break}case Wi.WHITESPACE_CHARACTER:{Wu(le,pe);break}}else Ps(le,pe)}function Qc(le,pe){le.openElements.clearBackToTableContext(),le.activeFormattingElements.insertMarker(),le._insertElement(pe,zt.HTML),le.insertionMode=gn.IN_CAPTION}function jo(le,pe){le.openElements.clearBackToTableContext(),le._insertElement(pe,zt.HTML),le.insertionMode=gn.IN_COLUMN_GROUP}function Lc(le,pe){le.openElements.clearBackToTableContext(),le._insertFakeElement(qt.COLGROUP,Be.COLGROUP),le.insertionMode=gn.IN_COLUMN_GROUP,Ta(le,pe)}function Pu(le,pe){le.openElements.clearBackToTableContext(),le._insertElement(pe,zt.HTML),le.insertionMode=gn.IN_TABLE_BODY}function Jl(le,pe){le.openElements.clearBackToTableContext(),le._insertFakeElement(qt.TBODY,Be.TBODY),le.insertionMode=gn.IN_TABLE_BODY,ml(le,pe)}function Ic(le,pe){le.openElements.hasInTableScope(Be.TABLE)&&(le.openElements.popUntilTagNamePopped(Be.TABLE),le._resetInsertionMode(),le._processStartTag(pe))}function xc(le,pe){Fa(pe)?le._appendElement(pe,zt.HTML):Ps(le,pe),pe.ackSelfClosing=!0}function Pl(le,pe){!le.formElement&&le.openElements.tmplCount===0&&(le._insertElement(pe,zt.HTML),le.formElement=le.openElements.current,le.openElements.pop())}function Nl(le,pe){switch(pe.tagID){case Be.TD:case Be.TH:case Be.TR:{Jl(le,pe);break}case Be.STYLE:case Be.SCRIPT:case Be.TEMPLATE:{na(le,pe);break}case Be.COL:{Lc(le,pe);break}case Be.FORM:{Pl(le,pe);break}case Be.TABLE:{Ic(le,pe);break}case Be.TBODY:case Be.TFOOT:case Be.THEAD:{Pu(le,pe);break}case Be.INPUT:{xc(le,pe);break}case Be.CAPTION:{Qc(le,pe);break}case Be.COLGROUP:{jo(le,pe);break}default:Ps(le,pe)}}function Vo(le,pe){switch(pe.tagID){case Be.TABLE:{le.openElements.hasInTableScope(Be.TABLE)&&(le.openElements.popUntilTagNamePopped(Be.TABLE),le._resetInsertionMode());break}case Be.TEMPLATE:{Po(le,pe);break}case Be.BODY:case Be.CAPTION:case Be.COL:case Be.COLGROUP:case Be.HTML:case Be.TBODY:case Be.TD:case Be.TFOOT:case Be.TH:case Be.THEAD:case Be.TR:break;default:Ps(le,pe)}}function Ps(le,pe){const Ke=le.fosterParentingEnabled;le.fosterParentingEnabled=!0,As(le,pe),le.fosterParentingEnabled=Ke}function Wu(le,pe){le.pendingCharacterTokens.push(pe)}function kl(le,pe){le.pendingCharacterTokens.push(pe),le.hasNonWhitespacePendingCharacterToken=!0}function ql(le,pe){let Ke=0;if(le.hasNonWhitespacePendingCharacterToken)for(;Ke<le.pendingCharacterTokens.length;Ke++)Ps(le,le.pendingCharacterTokens[Ke]);else for(;Ke<le.pendingCharacterTokens.length;Ke++)le._insertCharacters(le.pendingCharacterTokens[Ke]);le.insertionMode=le.originalInsertionMode,le._processToken(pe)}const _l=new Set([Be.CAPTION,Be.COL,Be.COLGROUP,Be.TBODY,Be.TD,Be.TFOOT,Be.TH,Be.THEAD,Be.TR]);function _o(le,pe){const Ke=pe.tagID;_l.has(Ke)?le.openElements.hasInTableScope(Be.CAPTION)&&(le.openElements.generateImpliedEndTags(),le.openElements.popUntilTagNamePopped(Be.CAPTION),le.activeFormattingElements.clearToLastMarker(),le.insertionMode=gn.IN_TABLE,Nl(le,pe)):Xo(le,pe)}function $o(le,pe){const Ke=pe.tagID;switch(Ke){case Be.CAPTION:case Be.TABLE:{le.openElements.hasInTableScope(Be.CAPTION)&&(le.openElements.generateImpliedEndTags(),le.openElements.popUntilTagNamePopped(Be.CAPTION),le.activeFormattingElements.clearToLastMarker(),le.insertionMode=gn.IN_TABLE,Ke===Be.TABLE&&Vo(le,pe));break}case Be.BODY:case Be.COL:case Be.COLGROUP:case Be.HTML:case Be.TBODY:case Be.TD:case Be.TFOOT:case Be.TH:case Be.THEAD:case Be.TR:break;default:ga(le,pe)}}function Ta(le,pe){switch(pe.tagID){case Be.HTML:{Xo(le,pe);break}case Be.COL:{le._appendElement(pe,zt.HTML),pe.ackSelfClosing=!0;break}case Be.TEMPLATE:{na(le,pe);break}default:ts(le,pe)}}function hs(le,pe){switch(pe.tagID){case Be.COLGROUP:{le.openElements.currentTagId===Be.COLGROUP&&(le.openElements.pop(),le.insertionMode=gn.IN_TABLE);break}case Be.TEMPLATE:{Po(le,pe);break}case Be.COL:break;default:ts(le,pe)}}function ts(le,pe){le.openElements.currentTagId===Be.COLGROUP&&(le.openElements.pop(),le.insertionMode=gn.IN_TABLE,le._processToken(pe))}function ml(le,pe){switch(pe.tagID){case Be.TR:{le.openElements.clearBackToTableBodyContext(),le._insertElement(pe,zt.HTML),le.insertionMode=gn.IN_ROW;break}case Be.TH:case Be.TD:{le.openElements.clearBackToTableBodyContext(),le._insertFakeElement(qt.TR,Be.TR),le.insertionMode=gn.IN_ROW,yl(le,pe);break}case Be.CAPTION:case Be.COL:case Be.COLGROUP:case Be.TBODY:case Be.TFOOT:case Be.THEAD:{le.openElements.hasTableBodyContextInTableScope()&&(le.openElements.clearBackToTableBodyContext(),le.openElements.pop(),le.insertionMode=gn.IN_TABLE,Nl(le,pe));break}default:Nl(le,pe)}}function vl(le,pe){const Ke=pe.tagID;switch(pe.tagID){case Be.TBODY:case Be.TFOOT:case Be.THEAD:{le.openElements.hasInTableScope(Ke)&&(le.openElements.clearBackToTableBodyContext(),le.openElements.pop(),le.insertionMode=gn.IN_TABLE);break}case Be.TABLE:{le.openElements.hasTableBodyContextInTableScope()&&(le.openElements.clearBackToTableBodyContext(),le.openElements.pop(),le.insertionMode=gn.IN_TABLE,Vo(le,pe));break}case Be.BODY:case Be.CAPTION:case Be.COL:case Be.COLGROUP:case Be.HTML:case Be.TD:case Be.TH:case Be.TR:break;default:Vo(le,pe)}}function yl(le,pe){switch(pe.tagID){case Be.TH:case Be.TD:{le.openElements.clearBackToTableRowContext(),le._insertElement(pe,zt.HTML),le.insertionMode=gn.IN_CELL,le.activeFormattingElements.insertMarker();break}case Be.CAPTION:case Be.COL:case Be.COLGROUP:case Be.TBODY:case Be.TFOOT:case Be.THEAD:case Be.TR:{le.openElements.hasInTableScope(Be.TR)&&(le.openElements.clearBackToTableRowContext(),le.openElements.pop(),le.insertionMode=gn.IN_TABLE_BODY,ml(le,pe));break}default:Nl(le,pe)}}function el(le,pe){switch(pe.tagID){case Be.TR:{le.openElements.hasInTableScope(Be.TR)&&(le.openElements.clearBackToTableRowContext(),le.openElements.pop(),le.insertionMode=gn.IN_TABLE_BODY);break}case Be.TABLE:{le.openElements.hasInTableScope(Be.TR)&&(le.openElements.clearBackToTableRowContext(),le.openElements.pop(),le.insertionMode=gn.IN_TABLE_BODY,vl(le,pe));break}case Be.TBODY:case Be.TFOOT:case Be.THEAD:{(le.openElements.hasInTableScope(pe.tagID)||le.openElements.hasInTableScope(Be.TR))&&(le.openElements.clearBackToTableRowContext(),le.openElements.pop(),le.insertionMode=gn.IN_TABLE_BODY,vl(le,pe));break}case Be.BODY:case Be.CAPTION:case Be.COL:case Be.COLGROUP:case Be.HTML:case Be.TD:case Be.TH:break;default:Vo(le,pe)}}function Ul(le,pe){const Ke=pe.tagID;_l.has(Ke)?(le.openElements.hasInTableScope(Be.TD)||le.openElements.hasInTableScope(Be.TH))&&(le._closeTableCell(),yl(le,pe)):Xo(le,pe)}function dd(le,pe){const Ke=pe.tagID;switch(Ke){case Be.TD:case Be.TH:{le.openElements.hasInTableScope(Ke)&&(le.openElements.generateImpliedEndTags(),le.openElements.popUntilTagNamePopped(Ke),le.activeFormattingElements.clearToLastMarker(),le.insertionMode=gn.IN_ROW);break}case Be.TABLE:case Be.TBODY:case Be.TFOOT:case Be.THEAD:case Be.TR:{le.openElements.hasInTableScope(Ke)&&(le._closeTableCell(),el(le,pe));break}case Be.BODY:case Be.CAPTION:case Be.COL:case Be.COLGROUP:case Be.HTML:break;default:ga(le,pe)}}function mh(le,pe){switch(pe.tagID){case Be.HTML:{Xo(le,pe);break}case Be.OPTION:{le.openElements.currentTagId===Be.OPTION&&le.openElements.pop(),le._insertElement(pe,zt.HTML);break}case Be.OPTGROUP:{le.openElements.currentTagId===Be.OPTION&&le.openElements.pop(),le.openElements.currentTagId===Be.OPTGROUP&&le.openElements.pop(),le._insertElement(pe,zt.HTML);break}case Be.HR:{le.openElements.currentTagId===Be.OPTION&&le.openElements.pop(),le.openElements.currentTagId===Be.OPTGROUP&&le.openElements.pop(),le._appendElement(pe,zt.HTML),pe.ackSelfClosing=!0;break}case Be.INPUT:case Be.KEYGEN:case Be.TEXTAREA:case Be.SELECT:{le.openElements.hasInSelectScope(Be.SELECT)&&(le.openElements.popUntilTagNamePopped(Be.SELECT),le._resetInsertionMode(),pe.tagID!==Be.SELECT&&le._processStartTag(pe));break}case Be.SCRIPT:case Be.TEMPLATE:{na(le,pe);break}default:}}function vh(le,pe){switch(pe.tagID){case Be.OPTGROUP:{le.openElements.stackTop>0&&le.openElements.currentTagId===Be.OPTION&&le.openElements.tagIDs[le.openElements.stackTop-1]===Be.OPTGROUP&&le.openElements.pop(),le.openElements.currentTagId===Be.OPTGROUP&&le.openElements.pop();break}case Be.OPTION:{le.openElements.currentTagId===Be.OPTION&&le.openElements.pop();break}case Be.SELECT:{le.openElements.hasInSelectScope(Be.SELECT)&&(le.openElements.popUntilTagNamePopped(Be.SELECT),le._resetInsertionMode());break}case Be.TEMPLATE:{Po(le,pe);break}default:}}function yh(le,pe){const Ke=pe.tagID;Ke===Be.CAPTION||Ke===Be.TABLE||Ke===Be.TBODY||Ke===Be.TFOOT||Ke===Be.THEAD||Ke===Be.TR||Ke===Be.TD||Ke===Be.TH?(le.openElements.popUntilTagNamePopped(Be.SELECT),le._resetInsertionMode(),le._processStartTag(pe)):mh(le,pe)}function Ja(le,pe){const Ke=pe.tagID;Ke===Be.CAPTION||Ke===Be.TABLE||Ke===Be.TBODY||Ke===Be.TFOOT||Ke===Be.THEAD||Ke===Be.TR||Ke===Be.TD||Ke===Be.TH?le.openElements.hasInTableScope(Ke)&&(le.openElements.popUntilTagNamePopped(Be.SELECT),le._resetInsertionMode(),le.onEndTag(pe)):vh(le,pe)}function Vu(le,pe){switch(pe.tagID){case Be.BASE:case Be.BASEFONT:case Be.BGSOUND:case Be.LINK:case Be.META:case Be.NOFRAMES:case Be.SCRIPT:case Be.STYLE:case Be.TEMPLATE:case Be.TITLE:{na(le,pe);break}case Be.CAPTION:case Be.COLGROUP:case Be.TBODY:case Be.TFOOT:case Be.THEAD:{le.tmplInsertionModeStack[0]=gn.IN_TABLE,le.insertionMode=gn.IN_TABLE,Nl(le,pe);break}case Be.COL:{le.tmplInsertionModeStack[0]=gn.IN_COLUMN_GROUP,le.insertionMode=gn.IN_COLUMN_GROUP,Ta(le,pe);break}case Be.TR:{le.tmplInsertionModeStack[0]=gn.IN_TABLE_BODY,le.insertionMode=gn.IN_TABLE_BODY,ml(le,pe);break}case Be.TD:case Be.TH:{le.tmplInsertionModeStack[0]=gn.IN_ROW,le.insertionMode=gn.IN_ROW,yl(le,pe);break}default:le.tmplInsertionModeStack[0]=gn.IN_BODY,le.insertionMode=gn.IN_BODY,Xo(le,pe)}}function da(le,pe){pe.tagID===Be.TEMPLATE&&Po(le,pe)}function vs(le,pe){le.openElements.tmplCount>0?(le.openElements.popUntilTagNamePopped(Be.TEMPLATE),le.activeFormattingElements.clearToLastMarker(),le.tmplInsertionModeStack.shift(),le._resetInsertionMode(),le.onEof(pe)):Qi(le,pe)}function Ns(le,pe){pe.tagID===Be.HTML?Xo(le,pe):sc(le,pe)}function Cs(le,pe){var Ke;if(pe.tagID===Be.HTML){if(le.fragmentContext||(le.insertionMode=gn.AFTER_AFTER_BODY),le.options.sourceCodeLocationInfo&&le.openElements.tagIDs[0]===Be.HTML){le._setEndLocation(le.openElements.items[0],pe);const Dt=le.openElements.items[1];Dt&&!(!((Ke=le.treeAdapter.getNodeSourceCodeLocation(Dt))===null||Ke===void 0)&&Ke.endTag)&&le._setEndLocation(Dt,pe)}}else sc(le,pe)}function sc(le,pe){le.insertionMode=gn.IN_BODY,As(le,pe)}function Rs(le,pe){switch(pe.tagID){case Be.HTML:{Xo(le,pe);break}case Be.FRAMESET:{le._insertElement(pe,zt.HTML);break}case Be.FRAME:{le._appendElement(pe,zt.HTML),pe.ackSelfClosing=!0;break}case Be.NOFRAMES:{na(le,pe);break}default:}}function Yu(le,pe){pe.tagID===Be.FRAMESET&&!le.openElements.isRootHtmlElementCurrent()&&(le.openElements.pop(),!le.fragmentContext&&le.openElements.currentTagId!==Be.FRAMESET&&(le.insertionMode=gn.AFTER_FRAMESET))}function hd(le,pe){switch(pe.tagID){case Be.HTML:{Xo(le,pe);break}case Be.NOFRAMES:{na(le,pe);break}default:}}function fd(le,pe){pe.tagID===Be.HTML&&(le.insertionMode=gn.AFTER_AFTER_FRAMESET)}function tl(le,pe){pe.tagID===Be.HTML?Xo(le,pe):we(le,pe)}function we(le,pe){le.insertionMode=gn.IN_BODY,As(le,pe)}function He(le,pe){switch(pe.tagID){case Be.HTML:{Xo(le,pe);break}case Be.NOFRAMES:{na(le,pe);break}default:}}function Ze(le,pe){pe.chars=Yn,le._insertCharacters(pe)}function rt(le,pe){le._insertCharacters(pe),le.framesetOk=!1}function xt(le){for(;le.treeAdapter.getNamespaceURI(le.openElements.current)!==zt.HTML&&!le._isIntegrationPoint(le.openElements.currentTagId,le.openElements.current);)le.openElements.pop()}function wt(le,pe){if(jr(pe))xt(le),le._startTagOutsideForeignContent(pe);else{const Ke=le._getAdjustedCurrentElement(),Dt=le.treeAdapter.getNamespaceURI(Ke);Dt===zt.MATHML?So(pe):Dt===zt.SVG&&(tn(pe),vo(pe)),ra(pe),pe.selfClosing?le._appendElement(pe,Dt):le._insertElement(pe,Dt),pe.ackSelfClosing=!0}}function Ft(le,pe){if(pe.tagID===Be.P||pe.tagID===Be.BR){xt(le),le._endTagOutsideForeignContent(pe);return}for(let Ke=le.openElements.stackTop;Ke>0;Ke--){const Dt=le.openElements.items[Ke];if(le.treeAdapter.getNamespaceURI(Dt)===zt.HTML){le._endTagOutsideForeignContent(pe);break}const Hn=le.treeAdapter.getTagName(Dt);if(Hn.toLowerCase()===pe.tagName){pe.tagName=Hn,le.openElements.shortenToLength(Ke);break}}}const Xt=/["&'<>$\x80-\uFFFF]/g,Un=new Map([[34,"""],[38,"&"],[39,"'"],[60,"<"],[62,">"]]),Gn=String.prototype.codePointAt!=null?(le,pe)=>le.codePointAt(pe):(le,pe)=>(le.charCodeAt(pe)&64512)===55296?(le.charCodeAt(pe)-55296)*1024+le.charCodeAt(pe+1)-56320+65536:le.charCodeAt(pe);function En(le){let pe="",Ke=0,Dt;for(;(Dt=Xt.exec(le))!==null;){const Hn=Dt.index,Ii=le.charCodeAt(Hn),$i=Un.get(Ii);$i!==void 0?(pe+=le.substring(Ke,Hn)+$i,Ke=Hn+1):(pe+=`${le.substring(Ke,Hn)}&#x${Gn(le,Hn).toString(16)};`,Ke=Xt.lastIndex+=+((Ii&64512)===55296))}return pe+le.substr(Ke)}const si=null;function ni(le,pe){return function(Dt){let Hn,Ii=0,$i="";for(;Hn=le.exec(Dt);)Ii!==Hn.index&&($i+=Dt.substring(Ii,Hn.index)),$i+=pe.get(Hn[0].charCodeAt(0)),Ii=Hn.index+1;return $i+Dt.substring(Ii)}}const An=ni(/[&<>'"]/g,Un),no=ni(/["&\u00A0]/g,new Map([[34,"""],[38,"&"],[160," "]])),wo=ni(/[&<>\u00A0]/g,new Map([[38,"&"],[60,"<"],[62,">"],[160," "]])),Uo=new Set([qt.AREA,qt.BASE,qt.BASEFONT,qt.BGSOUND,qt.BR,qt.COL,qt.EMBED,qt.FRAME,qt.HR,qt.IMG,qt.INPUT,qt.KEYGEN,qt.LINK,qt.META,qt.PARAM,qt.SOURCE,qt.TRACK,qt.WBR]);function Mr(le,pe){return pe.treeAdapter.isElementNode(le)&&pe.treeAdapter.getNamespaceURI(le)===NS.HTML&&Uo.has(pe.treeAdapter.getTagName(le))}const oo={treeAdapter:Qn,scriptingEnabled:!0};function fo(le,pe){const Ke=ta(ta({},oo),pe);return Mr(le,Ke)?"":Pa(le,Ke)}function Aa(le,pe){const Ke=ta(ta({},oo),pe);return vr(le,Ke)}function Pa(le,pe){let Ke="";const Dt=pe.treeAdapter.isElementNode(le)&&pe.treeAdapter.getTagName(le)===$.TEMPLATE&&pe.treeAdapter.getNamespaceURI(le)===NS.HTML?pe.treeAdapter.getTemplateContent(le):le,Hn=pe.treeAdapter.getChildNodes(Dt);if(Hn)for(const Ii of Hn)Ke+=vr(Ii,pe);return Ke}function vr(le,pe){return pe.treeAdapter.isElementNode(le)?Ia(le,pe):pe.treeAdapter.isTextNode(le)?Sa(le,pe):pe.treeAdapter.isCommentNode(le)?eo(le,pe):pe.treeAdapter.isDocumentTypeNode(le)?nl(le,pe):""}function Ia(le,pe){const Ke=pe.treeAdapter.getTagName(le);return`<${Ke}${ns(le,pe)}>${Mr(le,pe)?"":`${Pa(le,pe)}</${Ke}>`}`}function ns(le,{treeAdapter:pe}){let Ke="";for(const Dt of pe.getAttrList(le)){if(Ke+=" ",Dt.namespace)switch(Dt.namespace){case NS.XML:{Ke+=`xml:${Dt.name}`;break}case NS.XMLNS:{Dt.name!=="xmlns"&&(Ke+="xmlns:"),Ke+=Dt.name;break}case NS.XLINK:{Ke+=`xlink:${Dt.name}`;break}default:Ke+=`${Dt.prefix}:${Dt.name}`}else Ke+=Dt.name;Ke+=`="${escapeAttribute(Dt.value)}"`}return Ke}function Sa(le,pe){const{treeAdapter:Ke}=pe,Dt=Ke.getTextNodeContent(le),Hn=Ke.getParentNode(le),Ii=Hn&&Ke.isElementNode(Hn)&&Ke.getTagName(Hn);return Ii&&Ke.getNamespaceURI(Hn)===NS.HTML&&hasUnescapedText(Ii,pe.scriptingEnabled)?Dt:escapeText(Dt)}function eo(le,{treeAdapter:pe}){return`<!--${pe.getCommentNodeContent(le)}-->`}function nl(le,{treeAdapter:pe}){return`<!DOCTYPE ${pe.getDocumentTypeNodeName(le)}>`}function _a(le,pe){return Parser.parse(le,pe)}function Ro(le,pe,Ke){typeof le=="string"&&(Ke=pe,pe=le,le=null);const Dt=Parser.getFragmentParser(le,Ke);return Dt.tokenizer.write(pe,!0),Dt.getFragment()}var ko=ue(17970),aa=ue(10528);const qa=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,Os=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),Ys={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function Ll(le,pe){const Ke=gd(le),Dt=gt("type",{handlers:{root:il,element:zl,text:ti,comment:du,doctype:Ks,raw:ks},unknown:$a}),Hn={parser:Ke?new pa(Ys):pa.getFragmentParser(void 0,Ys),handle(so){Dt(so,Hn)},stitches:!1,options:pe||{}};Dt(le,Hn),Hl(Hn,(0,ko.Pk)());const Ii=Ke?Hn.parser.document:Hn.parser.getFragment(),$i=ot(Ii,{file:Hn.options.file});return Hn.stitches&&(0,aa.Vn)($i,"comment",function(so,Lo,Ti){const Ar=so;if(Ar.value.stitch&&Ti&&Lo!==void 0){const zo=Ti.children;return zo[Lo]=Ar.value.stitch,Lo}}),$i.type==="root"&&$i.children.length===1&&$i.children[0].type===le.type?$i.children[0]:$i}function Xn(le,pe){let Ke=-1;if(le)for(;++Ke<le.length;)pe.handle(le[Ke])}function il(le,pe){Xn(le.children,pe)}function zl(le,pe){Nu(le,pe),Xn(le.children,pe),Ku(le,pe)}function ti(le,pe){pe.parser.tokenizer.state>4&&(pe.parser.tokenizer.state=0);const Ke={type:Wi.CHARACTER,chars:le.value,location:eu(le)};Hl(pe,(0,ko.Pk)(le)),pe.parser.currentToken=Ke,pe.parser._processToken(pe.parser.currentToken)}function Ks(le,pe){const Ke={type:Wi.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:eu(le)};Hl(pe,(0,ko.Pk)(le)),pe.parser.currentToken=Ke,pe.parser._processToken(pe.parser.currentToken)}function $l(le,pe){pe.stitches=!0;const Ke=lc(le);if("children"in le&&"children"in Ke){const Dt=Ll({type:"root",children:le.children},pe.options);Ke.children=Dt.children}du({type:"comment",value:{stitch:Ke}},pe)}function du(le,pe){const Ke=le.value,Dt={type:Wi.COMMENT,data:Ke,location:eu(le)};Hl(pe,(0,ko.Pk)(le)),pe.parser.currentToken=Dt,pe.parser._processToken(pe.parser.currentToken)}function ks(le,pe){if(pe.parser.tokenizer.preprocessor.html="",pe.parser.tokenizer.preprocessor.pos=-1,pe.parser.tokenizer.preprocessor.lastGapPos=-2,pe.parser.tokenizer.preprocessor.gapStack=[],pe.parser.tokenizer.preprocessor.skipNextNewLine=!1,pe.parser.tokenizer.preprocessor.lastChunkWritten=!1,pe.parser.tokenizer.preprocessor.endOfChunkHit=!1,pe.parser.tokenizer.preprocessor.isEol=!1,_s(pe,(0,ko.Pk)(le)),pe.parser.tokenizer.write(pe.options.tagfilter?le.value.replace(qa,"<$1$2"):le.value,!1),pe.parser.tokenizer._runParsingLoop(),pe.parser.tokenizer.state===72||pe.parser.tokenizer.state===78){pe.parser.tokenizer.preprocessor.lastChunkWritten=!0;const Ke=pe.parser.tokenizer._consume();pe.parser.tokenizer._callState(Ke)}}function $a(le,pe){const Ke=le;if(pe.options.passThrough&&pe.options.passThrough.includes(Ke.type))$l(Ke,pe);else{let Dt="";throw Os.has(Ke.type)&&(Dt=". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"),new Error("Cannot compile `"+Ke.type+"` node"+Dt)}}function Hl(le,pe){_s(le,pe);const Ke=le.parser.tokenizer.currentCharacterToken;Ke&&Ke.location&&(Ke.location.endLine=le.parser.tokenizer.preprocessor.line,Ke.location.endCol=le.parser.tokenizer.preprocessor.col+1,Ke.location.endOffset=le.parser.tokenizer.preprocessor.offset+1,le.parser.currentToken=Ke,le.parser._processToken(le.parser.currentToken)),le.parser.tokenizer.paused=!1,le.parser.tokenizer.inLoop=!1,le.parser.tokenizer.active=!1,le.parser.tokenizer.returnState=sr.DATA,le.parser.tokenizer.charRefCode=-1,le.parser.tokenizer.consumedAfterSnapshot=-1,le.parser.tokenizer.currentLocation=null,le.parser.tokenizer.currentCharacterToken=null,le.parser.tokenizer.currentToken=null,le.parser.tokenizer.currentAttr={name:"",value:""}}function _s(le,pe){if(pe&&pe.offset!==void 0){const Ke={startLine:pe.line,startCol:pe.column,startOffset:pe.offset,endLine:-1,endCol:-1,endOffset:-1};le.parser.tokenizer.preprocessor.lineStartPos=-pe.column+1,le.parser.tokenizer.preprocessor.droppedBufferSize=pe.offset,le.parser.tokenizer.preprocessor.line=pe.line,le.parser.tokenizer.currentLocation=Ke}}function Nu(le,pe){const Ke=le.tagName.toLowerCase();if(pe.parser.tokenizer.state===sr.PLAINTEXT)return;Hl(pe,(0,ko.Pk)(le));const Dt=pe.parser.openElements.current;let Hn="namespaceURI"in Dt?Dt.namespaceURI:Qe.t.html;Hn===Qe.t.html&&Ke==="svg"&&(Hn=Qe.t.svg);const Ii=Lt(Pf(ta({},le),{children:[]}),{space:Hn===Qe.t.svg?"svg":"html"}),$i={type:Wi.START_TAG,tagName:Ke,tagID:ui(Ke),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in Ii?Ii.attrs:[],location:eu(le)};pe.parser.currentToken=$i,pe.parser._processToken(pe.parser.currentToken),pe.parser.tokenizer.lastStartTagName=Ke}function Ku(le,pe){const Ke=le.tagName.toLowerCase();if(!pe.parser.tokenizer.inForeignNode&&Zn.includes(Ke)||pe.parser.tokenizer.state===sr.PLAINTEXT)return;Hl(pe,(0,ko.rb)(le));const Dt={type:Wi.END_TAG,tagName:Ke,tagID:ui(Ke),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:eu(le)};pe.parser.currentToken=Dt,pe.parser._processToken(pe.parser.currentToken),Ke===pe.parser.tokenizer.lastStartTagName&&(pe.parser.tokenizer.state===sr.RCDATA||pe.parser.tokenizer.state===sr.RAWTEXT||pe.parser.tokenizer.state===sr.SCRIPT_DATA)&&(pe.parser.tokenizer.state=sr.DATA)}function gd(le){const pe=le.type==="root"?le.children[0]:le;return!!(pe&&(pe.type==="doctype"||pe.type==="element"&&pe.tagName.toLowerCase()==="html"))}function eu(le){const pe=(0,ko.Pk)(le)||{line:void 0,column:void 0,offset:void 0},Ke=(0,ko.rb)(le)||{line:void 0,column:void 0,offset:void 0};return{startLine:pe.line,startCol:pe.column,startOffset:pe.offset,endLine:Ke.line,endCol:Ke.column,endOffset:Ke.offset}}function lc(le){return"children"in le?(0,Pe.ZP)(Pf(ta({},le),{children:[]})):(0,Pe.ZP)(le)}function zd(le){return function(pe,Ke){return Ll(pe,Pf(ta({},le),{file:Ke}))}}},10787:function(ze,Ee,ue){"use strict";ue.d(Ee,{Z:function(){return Ye}});function ce(yt){if(typeof yt!="string")throw new TypeError("Expected a string");return yt.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var Pe=ue(2348),Re=ue(10502);function Me(yt,ot,Nt){const Fe=Nt||{},ne=(0,Re.O)(Fe.ignore||[]),te=We(ot);let he=-1;for(;++he<te.length;)(0,Pe.S4)(yt,"text",se);function se(Se,be){let Ae=-1,Le;for(;++Ae<be.length;){const je=be[Ae],$e=Le?Le.children:void 0;if(ne(je,$e?$e.indexOf(je):void 0,Le))return;Le=je}if(Le)return ge(Se,be)}function ge(Se,be){const Ae=be[be.length-1],Le=te[he][0],je=te[he][1];let $e=0;const nt=Ae.children.indexOf(Se);let dt=!1,it=[];Le.lastIndex=0;let bt=Le.exec(Se.value);for(;bt;){const It=bt.index,Ht={index:bt.index,input:bt.input,stack:[...be,Se]};let ln=je(...bt,Ht);if(typeof ln=="string"&&(ln=ln.length>0?{type:"text",value:ln}:void 0),ln===!1?Le.lastIndex=It+1:($e!==It&&it.push({type:"text",value:Se.value.slice($e,It)}),Array.isArray(ln)?it.push(...ln):ln&&it.push(ln),$e=It+bt[0].length,dt=!0),!Le.global)break;bt=Le.exec(Se.value)}return dt?($e<Se.value.length&&it.push({type:"text",value:Se.value.slice($e)}),Ae.children.splice(nt,1,...it)):it=[Se],nt+it.length}}function We(yt){const ot=[];if(!Array.isArray(yt))throw new TypeError("Expected find and replace tuple or list of tuples");const Nt=!yt[0]||Array.isArray(yt[0])?yt:[yt];let Fe=-1;for(;++Fe<Nt.length;){const ne=Nt[Fe];ot.push([Te(ne[0]),Ge(ne[1])])}return ot}function Te(yt){return typeof yt=="string"?new RegExp(ce(yt),"g"):yt}function Ge(yt){return typeof yt=="function"?yt:function(){return yt}}function st(yt){Me(yt,[/\r?\n|\r/g,Qe])}function Qe(){return{type:"break"}}function Ye(){return function(yt){st(yt)}}},30084:function(ze,Ee,ue){"use strict";ue.d(Ee,{Z:function(){return te}});var ce=ue(87342);function Pe(he,se){const ge=String(he);let Se=ge.indexOf(se),be=Se,Ae=0,Le=0;if(typeof se!="string")throw new TypeError("Expected substring");for(;Se!==-1;)Se===be?++Ae>Le&&(Le=Ae):Ae=1,be=Se+se.length,Se=ge.indexOf(se,be);return Le}function Re(){return{enter:{mathFlow:he,mathFlowFenceMeta:se,mathText:Ae},exit:{mathFlow:be,mathFlowFence:Se,mathFlowFenceMeta:ge,mathFlowValue:je,mathText:Le,mathTextData:je}};function he($e){const qe={type:"element",tagName:"code",properties:{className:["language-math","math-display"]},children:[]};this.enter({type:"math",meta:null,value:"",data:{hName:"pre",hChildren:[qe]}},$e)}function se(){this.buffer()}function ge(){const $e=this.resume(),qe=this.stack[this.stack.length-1];(0,ce.ok)(qe.type==="math"),qe.meta=$e}function Se(){this.data.mathFlowInside||(this.buffer(),this.data.mathFlowInside=!0)}function be($e){const qe=this.resume().replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),nt=this.stack[this.stack.length-1];(0,ce.ok)(nt.type==="math"),this.exit($e),nt.value=qe;const dt=nt.data.hChildren[0];(0,ce.ok)(dt.type==="element"),(0,ce.ok)(dt.tagName==="code"),dt.children.push({type:"text",value:qe}),this.data.mathFlowInside=void 0}function Ae($e){this.enter({type:"inlineMath",value:"",data:{hName:"code",hProperties:{className:["language-math","math-inline"]},hChildren:[]}},$e),this.buffer()}function Le($e){const qe=this.resume(),nt=this.stack[this.stack.length-1];(0,ce.ok)(nt.type==="inlineMath"),this.exit($e),nt.value=qe,nt.data.hChildren.push({type:"text",value:qe})}function je($e){this.config.enter.data.call(this,$e),this.config.exit.data.call(this,$e)}}function Me(he){let se=(he||{}).singleDollarTextMath;return se==null&&(se=!0),Se.peek=be,{unsafe:[{character:"\r",inConstruct:"mathFlowMeta"},{character:`
|
|
|
`,inConstruct:"mathFlowMeta"},{character:"$",after:se?void 0:"\\$",inConstruct:"phrasing"},{character:"$",inConstruct:"mathFlowMeta"},{atBreak:!0,character:"$",after:"\\$"}],handlers:{math:ge,inlineMath:Se}};function ge(Ae,Le,je,$e){const qe=Ae.value||"",nt=je.createTracker($e),dt="$".repeat(Math.max(Pe(qe,"$")+1,2)),it=je.enter("mathFlow");let bt=nt.move(dt);if(Ae.meta){const It=je.enter("mathFlowMeta");bt+=nt.move(je.safe(Ae.meta,ta({after:`
|
|
|
`,before:bt,encode:["$"]},nt.current()))),It()}return bt+=nt.move(`
|
|
|
`),qe&&(bt+=nt.move(qe+`
|
|
|
`)),bt+=nt.move(dt),it(),bt}function Se(Ae,Le,je){let $e=Ae.value||"",qe=1;for(se||qe++;new RegExp("(^|[^$])"+"\\$".repeat(qe)+"([^$]|$)").test($e);)qe++;const nt="$".repeat(qe);/[^ \r\n]/.test($e)&&(/^[ \r\n]/.test($e)&&/[ \r\n]$/.test($e)||/^\$|\$$/.test($e))&&($e=" "+$e+" ");let dt=-1;for(;++dt<je.unsafe.length;){const it=je.unsafe[dt];if(!it.atBreak)continue;const bt=je.compilePattern(it);let It;for(;It=bt.exec($e);){let Ht=It.index;$e.codePointAt(Ht)===10&&$e.codePointAt(Ht-1)===13&&Ht--,$e=$e.slice(0,Ht)+" "+$e.slice(It.index+1)}}return nt+$e+nt}function be(){return"$"}}var We=ue(26735),Te=ue(80722);const Ge={tokenize:Qe,concrete:!0,name:"mathFlow"},st={tokenize:Ye,partial:!0};function Qe(he,se,ge){const Se=this,be=Se.events[Se.events.length-1],Ae=be&&be[1].type==="linePrefix"?be[2].sliceSerialize(be[1],!0).length:0;let Le=0;return je;function je(Qt){return he.enter("mathFlow"),he.enter("mathFlowFence"),he.enter("mathFlowFenceSequence"),$e(Qt)}function $e(Qt){return Qt===36?(he.consume(Qt),Le++,$e):Le<2?ge(Qt):(he.exit("mathFlowFenceSequence"),(0,We.f)(he,qe,"whitespace")(Qt))}function qe(Qt){return Qt===null||(0,Te.Ch)(Qt)?dt(Qt):(he.enter("mathFlowFenceMeta"),he.enter("chunkString",{contentType:"string"}),nt(Qt))}function nt(Qt){return Qt===null||(0,Te.Ch)(Qt)?(he.exit("chunkString"),he.exit("mathFlowFenceMeta"),dt(Qt)):Qt===36?ge(Qt):(he.consume(Qt),nt)}function dt(Qt){return he.exit("mathFlowFence"),Se.interrupt?se(Qt):he.attempt(st,it,ln)(Qt)}function it(Qt){return he.attempt({tokenize:un,partial:!0},ln,bt)(Qt)}function bt(Qt){return(Ae?(0,We.f)(he,It,"linePrefix",Ae+1):It)(Qt)}function It(Qt){return Qt===null?ln(Qt):(0,Te.Ch)(Qt)?he.attempt(st,it,ln)(Qt):(he.enter("mathFlowValue"),Ht(Qt))}function Ht(Qt){return Qt===null||(0,Te.Ch)(Qt)?(he.exit("mathFlowValue"),It(Qt)):(he.consume(Qt),Ht)}function ln(Qt){return he.exit("mathFlow"),se(Qt)}function un(Qt,nn,At){let ct=0;return(0,We.f)(Qt,at,"linePrefix",Se.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function at(Pt){return Qt.enter("mathFlowFence"),Qt.enter("mathFlowFenceSequence"),rn(Pt)}function rn(Pt){return Pt===36?(ct++,Qt.consume(Pt),rn):ct<Le?At(Pt):(Qt.exit("mathFlowFenceSequence"),(0,We.f)(Qt,hn,"whitespace")(Pt))}function hn(Pt){return Pt===null||(0,Te.Ch)(Pt)?(Qt.exit("mathFlowFence"),nn(Pt)):At(Pt)}}}function Ye(he,se,ge){const Se=this;return be;function be(Le){return Le===null?se(Le):(he.enter("lineEnding"),he.consume(Le),he.exit("lineEnding"),Ae)}function Ae(Le){return Se.parser.lazy[Se.now().line]?ge(Le):se(Le)}}function yt(he){let ge=(he||{}).singleDollarTextMath;return ge==null&&(ge=!0),{tokenize:Se,resolve:ot,previous:Nt,name:"mathText"};function Se(be,Ae,Le){const je=this;let $e=0,qe,nt;return dt;function dt(ln){return be.enter("mathText"),be.enter("mathTextSequence"),it(ln)}function it(ln){return ln===36?(be.consume(ln),$e++,it):$e<2&&!ge?Le(ln):(be.exit("mathTextSequence"),bt(ln))}function bt(ln){return ln===null?Le(ln):ln===36?(nt=be.enter("mathTextSequence"),qe=0,Ht(ln)):ln===32?(be.enter("space"),be.consume(ln),be.exit("space"),bt):(0,Te.Ch)(ln)?(be.enter("lineEnding"),be.consume(ln),be.exit("lineEnding"),bt):(be.enter("mathTextData"),It(ln))}function It(ln){return ln===null||ln===32||ln===36||(0,Te.Ch)(ln)?(be.exit("mathTextData"),bt(ln)):(be.consume(ln),It)}function Ht(ln){return ln===36?(be.consume(ln),qe++,Ht):qe===$e?(be.exit("mathTextSequence"),be.exit("mathText"),Ae(ln)):(nt.type="mathTextData",It(ln))}}}function ot(he){let se=he.length-4,ge=3,Se,be;if((he[ge][1].type==="lineEnding"||he[ge][1].type==="space")&&(he[se][1].type==="lineEnding"||he[se][1].type==="space")){for(Se=ge;++Se<se;)if(he[Se][1].type==="mathTextData"){he[se][1].type="mathTextPadding",he[ge][1].type="mathTextPadding",ge+=2,se-=2;break}}for(Se=ge-1,se++;++Se<=se;)be===void 0?Se!==se&&he[Se][1].type!=="lineEnding"&&(be=Se):(Se===se||he[Se][1].type==="lineEnding")&&(he[be][1].type="mathTextData",Se!==be+2&&(he[be][1].end=he[Se-1][1].end,he.splice(be+2,Se-be-2),se-=Se-be-2,Se=be+2),be=void 0);return he}function Nt(he){return he!==36||this.events[this.events.length-1][1].type==="characterEscape"}function Fe(he){return{flow:{36:Ge},text:{36:yt(he)}}}const ne={};function te(he){const se=this,ge=he||ne,Se=se.data(),be=Se.micromarkExtensions||(Se.micromarkExtensions=[]),Ae=Se.fromMarkdownExtensions||(Se.fromMarkdownExtensions=[]),Le=Se.toMarkdownExtensions||(Se.toMarkdownExtensions=[]);be.push(Fe(ge)),Ae.push(Re()),Le.push(Me(ge))}},16722:function(ze,Ee,ue){"use strict";ue.d(Ee,{Z:function(){return st}});const ce=Qe=>typeof Qe=="object"&&Qe!=null&&Qe.nodeType===1,Pe=(Qe,Ye)=>(!Ye||Qe!=="hidden")&&Qe!=="visible"&&Qe!=="clip",Re=(Qe,Ye)=>{if(Qe.clientHeight<Qe.scrollHeight||Qe.clientWidth<Qe.scrollWidth){const yt=getComputedStyle(Qe,null);return Pe(yt.overflowY,Ye)||Pe(yt.overflowX,Ye)||(ot=>{const Nt=(Fe=>{if(!Fe.ownerDocument||!Fe.ownerDocument.defaultView)return null;try{return Fe.ownerDocument.defaultView.frameElement}catch(ne){return null}})(ot);return!!Nt&&(Nt.clientHeight<ot.scrollHeight||Nt.clientWidth<ot.scrollWidth)})(Qe)}return!1},Me=(Qe,Ye,yt,ot,Nt,Fe,ne,te)=>Fe<Qe&&ne>Ye||Fe>Qe&&ne<Ye?0:Fe<=Qe&&te<=yt||ne>=Ye&&te>=yt?Fe-Qe-ot:ne>Ye&&te<yt||Fe<Qe&&te>yt?ne-Ye+Nt:0,We=Qe=>{const Ye=Qe.parentElement;return Ye==null?Qe.getRootNode().host||null:Ye},Te=(Qe,Ye)=>{var yt,ot,Nt,Fe;if(typeof document=="undefined")return[];const{scrollMode:ne,block:te,inline:he,boundary:se,skipOverflowHiddenElements:ge}=Ye,Se=typeof se=="function"?se:hn=>hn!==se;if(!ce(Qe))throw new TypeError("Invalid target");const be=document.scrollingElement||document.documentElement,Ae=[];let Le=Qe;for(;ce(Le)&&Se(Le);){if(Le=We(Le),Le===be){Ae.push(Le);break}Le!=null&&Le===document.body&&Re(Le)&&!Re(document.documentElement)||Le!=null&&Re(Le,ge)&&Ae.push(Le)}const je=(ot=(yt=window.visualViewport)==null?void 0:yt.width)!=null?ot:innerWidth,$e=(Fe=(Nt=window.visualViewport)==null?void 0:Nt.height)!=null?Fe:innerHeight,{scrollX:qe,scrollY:nt}=window,{height:dt,width:it,top:bt,right:It,bottom:Ht,left:ln}=Qe.getBoundingClientRect(),{top:un,right:Qt,bottom:nn,left:At}=(hn=>{const Pt=window.getComputedStyle(hn);return{top:parseFloat(Pt.scrollMarginTop)||0,right:parseFloat(Pt.scrollMarginRight)||0,bottom:parseFloat(Pt.scrollMarginBottom)||0,left:parseFloat(Pt.scrollMarginLeft)||0}})(Qe);let ct=te==="start"||te==="nearest"?bt-un:te==="end"?Ht+nn:bt+dt/2-un+nn,at=he==="center"?ln+it/2-At+Qt:he==="end"?It+Qt:ln-At;const rn=[];for(let hn=0;hn<Ae.length;hn++){const Pt=Ae[hn],{height:pn,width:dn,top:_n,right:Yt,bottom:On,left:kt}=Pt.getBoundingClientRect();if(ne==="if-needed"&&bt>=0&&ln>=0&&Ht<=$e&&It<=je&&(Pt===be&&!Re(Pt)||bt>=_n&&Ht<=On&&ln>=kt&&It<=Yt))return rn;const jn=getComputedStyle(Pt),ai=parseInt(jn.borderLeftWidth,10),et=parseInt(jn.borderTopWidth,10),De=parseInt(jn.borderRightWidth,10),ke=parseInt(jn.borderBottomWidth,10);let Xe=0,ut=0;const Ue="offsetWidth"in Pt?Pt.offsetWidth-Pt.clientWidth-ai-De:0,gt="offsetHeight"in Pt?Pt.offsetHeight-Pt.clientHeight-et-ke:0,_t="offsetWidth"in Pt?Pt.offsetWidth===0?0:dn/Pt.offsetWidth:0,bn="offsetHeight"in Pt?Pt.offsetHeight===0?0:pn/Pt.offsetHeight:0;if(be===Pt)Xe=te==="start"?ct:te==="end"?ct-$e:te==="nearest"?Me(nt,nt+$e,$e,et,ke,nt+ct,nt+ct+dt,dt):ct-$e/2,ut=he==="start"?at:he==="center"?at-je/2:he==="end"?at-je:Me(qe,qe+je,je,ai,De,qe+at,qe+at+it,it),Xe=Math.max(0,Xe+nt),ut=Math.max(0,ut+qe);else{Xe=te==="start"?ct-_n-et:te==="end"?ct-On+ke+gt:te==="nearest"?Me(_n,On,pn,et,ke+gt,ct,ct+dt,dt):ct-(_n+pn/2)+gt/2,ut=he==="start"?at-kt-ai:he==="center"?at-(kt+dn/2)+Ue/2:he==="end"?at-Yt+De+Ue:Me(kt,Yt,dn,ai,De+Ue,at,at+it,it);const{scrollLeft:xn,scrollTop:Lt}=Pt;Xe=bn===0?0:Math.max(0,Math.min(Lt+Xe/bn,Pt.scrollHeight-pn/bn+gt)),ut=_t===0?0:Math.max(0,Math.min(xn+ut/_t,Pt.scrollWidth-dn/_t+Ue)),ct+=Lt-Xe,at+=xn-ut}rn.push({el:Pt,top:Xe,left:ut})}return rn},Ge=Qe=>Qe===!1?{block:"end",inline:"nearest"}:(Ye=>Ye===Object(Ye)&&Object.keys(Ye).length!==0)(Qe)?Qe:{block:"start",inline:"nearest"};function st(Qe,Ye){if(!Qe.isConnected||!(Nt=>{let Fe=Nt;for(;Fe&&Fe.parentNode;){if(Fe.parentNode===document)return!0;Fe=Fe.parentNode instanceof ShadowRoot?Fe.parentNode.host:Fe.parentNode}return!1})(Qe))return;const yt=(Nt=>{const Fe=window.getComputedStyle(Nt);return{top:parseFloat(Fe.scrollMarginTop)||0,right:parseFloat(Fe.scrollMarginRight)||0,bottom:parseFloat(Fe.scrollMarginBottom)||0,left:parseFloat(Fe.scrollMarginLeft)||0}})(Qe);if((Nt=>typeof Nt=="object"&&typeof Nt.behavior=="function")(Ye))return Ye.behavior(Te(Qe,Ye));const ot=typeof Ye=="boolean"||Ye==null?void 0:Ye.behavior;for(const{el:Nt,top:Fe,left:ne}of Te(Qe,Ge(Ye))){const te=Fe-yt.top+yt.bottom,he=ne-yt.left+yt.right;Nt.scroll({top:te,left:he,behavior:ot})}}},71523:function(ze,Ee,ue){"use strict";ue.d(Ee,{P:function(){return Pe},Q:function(){return ce}});function ce(Re){const Me=String(Re||"").trim();return Me?Me.split(/[ \t\n\r\f]+/g):[]}function Pe(Re){return Re.join(" ").trim()}},10502:function(ze,Ee,ue){"use strict";ue.d(Ee,{O:function(){return Pe}});const ce=function(Qe,Ye,yt,ot,Nt){const Fe=Pe(Ye);if(yt!=null&&(typeof yt!="number"||yt<0||yt===Number.POSITIVE_INFINITY))throw new Error("Expected positive finite index");if(ot!=null&&(!ce(ot)||!ot.children))throw new Error("Expected parent node");if(ot==null!=(yt==null))throw new Error("Expected both parent and index");return st(Qe)?Fe.call(Nt,Qe,yt,ot):!1},Pe=function(Qe){if(Qe==null)return Ge;if(typeof Qe=="function")return Te(Qe);if(typeof Qe=="object")return Array.isArray(Qe)?Re(Qe):Me(Qe);if(typeof Qe=="string")return We(Qe);throw new Error("Expected function, string, or object as test")};function Re(Qe){const Ye=[];let yt=-1;for(;++yt<Qe.length;)Ye[yt]=Pe(Qe[yt]);return Te(ot);function ot(...Nt){let Fe=-1;for(;++Fe<Ye.length;)if(Ye[Fe].apply(this,Nt))return!0;return!1}}function Me(Qe){const Ye=Qe;return Te(yt);function yt(ot){const Nt=ot;let Fe;for(Fe in Qe)if(Nt[Fe]!==Ye[Fe])return!1;return!0}}function We(Qe){return Te(Ye);function Ye(yt){return yt&&yt.type===Qe}}function Te(Qe){return Ye;function Ye(yt,ot,Nt){return!!(st(yt)&&Qe.call(this,yt,typeof ot=="number"?ot:void 0,Nt||void 0))}}function Ge(){return!0}function st(Qe){return Qe!==null&&typeof Qe=="object"&&"type"in Qe}},17970:function(ze,Ee,ue){"use strict";ue.d(Ee,{FK:function(){return Me},Pk:function(){return Pe},rb:function(){return ce}});const ce=Re("end"),Pe=Re("start");function Re(We){return Te;function Te(Ge){const st=Ge&&Ge.position&&Ge.position[We]||{};if(typeof st.line=="number"&&st.line>0&&typeof st.column=="number"&&st.column>0)return{line:st.line,column:st.column,offset:typeof st.offset=="number"&&st.offset>-1?st.offset:void 0}}}function Me(We){const Te=Pe(We),Ge=ce(We);if(Te&&Ge)return{start:Te,end:Ge}}},2348:function(ze,Ee,ue){"use strict";ue.d(Ee,{AM:function(){return Te},S4:function(){return Ge}});var ce=ue(10502);function Pe(Qe){return Qe}const Re=[],Me=!0,We=!1,Te="skip";function Ge(Qe,Ye,yt,ot){let Nt;typeof Ye=="function"&&typeof yt!="function"?(ot=yt,yt=Ye):Nt=Ye;const Fe=(0,ce.O)(Nt),ne=ot?-1:1;te(Qe,void 0,[])();function te(he,se,ge){const Se=he&&typeof he=="object"?he:{};if(typeof Se.type=="string"){const Ae=typeof Se.tagName=="string"?Se.tagName:typeof Se.name=="string"?Se.name:void 0;Object.defineProperty(be,"name",{value:"node ("+(he.type+(Ae?"<"+Ae+">":""))+")"})}return be;function be(){let Ae=Re,Le,je,$e;if((!Ye||Fe(he,se,ge[ge.length-1]||void 0))&&(Ae=st(yt(he,ge)),Ae[0]===We))return Ae;if("children"in he&&he.children){const qe=he;if(qe.children&&Ae[0]!==Te)for(je=(ot?qe.children.length:-1)+ne,$e=ge.concat(qe);je>-1&&je<qe.children.length;){const nt=qe.children[je];if(Le=te(nt,je,$e)(),Le[0]===We)return Le;je=typeof Le[1]=="number"?Le[1]:je+ne}}return Ae}}}function st(Qe){return Array.isArray(Qe)?Qe:typeof Qe=="number"?[Me,Qe]:Qe==null?Re:[Qe]}},10528:function(ze,Ee,ue){"use strict";ue.d(Ee,{Vn:function(){return Pe}});var ce=ue(2348);function Pe(Re,Me,We,Te){let Ge,st,Qe;typeof Me=="function"&&typeof We!="function"?(st=void 0,Qe=Me,Ge=We):(st=Me,Qe=We,Ge=Te),(0,ce.S4)(Re,st,Ye,Ge);function Ye(yt,ot){const Nt=ot[ot.length-1],Fe=Nt?Nt.children.indexOf(yt):void 0;return Qe(yt,Fe,Nt)}}},43309:function(ze,Ee,ue){"use strict";ue.d(Ee,{t:function(){return ce}});const ce={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"}},47854:function(ze){"use strict";ze.exports=JSON.parse('{"AElig":"\xC6","AMP":"&","Aacute":"\xC1","Acirc":"\xC2","Agrave":"\xC0","Aring":"\xC5","Atilde":"\xC3","Auml":"\xC4","COPY":"\xA9","Ccedil":"\xC7","ETH":"\xD0","Eacute":"\xC9","Ecirc":"\xCA","Egrave":"\xC8","Euml":"\xCB","GT":">","Iacute":"\xCD","Icirc":"\xCE","Igrave":"\xCC","Iuml":"\xCF","LT":"<","Ntilde":"\xD1","Oacute":"\xD3","Ocirc":"\xD4","Ograve":"\xD2","Oslash":"\xD8","Otilde":"\xD5","Ouml":"\xD6","QUOT":"\\"","REG":"\xAE","THORN":"\xDE","Uacute":"\xDA","Ucirc":"\xDB","Ugrave":"\xD9","Uuml":"\xDC","Yacute":"\xDD","aacute":"\xE1","acirc":"\xE2","acute":"\xB4","aelig":"\xE6","agrave":"\xE0","amp":"&","aring":"\xE5","atilde":"\xE3","auml":"\xE4","brvbar":"\xA6","ccedil":"\xE7","cedil":"\xB8","cent":"\xA2","copy":"\xA9","curren":"\xA4","deg":"\xB0","divide":"\xF7","eacute":"\xE9","ecirc":"\xEA","egrave":"\xE8","eth":"\xF0","euml":"\xEB","frac12":"\xBD","frac14":"\xBC","frac34":"\xBE","gt":">","iacute":"\xED","icirc":"\xEE","iexcl":"\xA1","igrave":"\xEC","iquest":"\xBF","iuml":"\xEF","laquo":"\xAB","lt":"<","macr":"\xAF","micro":"\xB5","middot":"\xB7","nbsp":"\xA0","not":"\xAC","ntilde":"\xF1","oacute":"\xF3","ocirc":"\xF4","ograve":"\xF2","ordf":"\xAA","ordm":"\xBA","oslash":"\xF8","otilde":"\xF5","ouml":"\xF6","para":"\xB6","plusmn":"\xB1","pound":"\xA3","quot":"\\"","raquo":"\xBB","reg":"\xAE","sect":"\xA7","shy":"\xAD","sup1":"\xB9","sup2":"\xB2","sup3":"\xB3","szlig":"\xDF","thorn":"\xFE","times":"\xD7","uacute":"\xFA","ucirc":"\xFB","ugrave":"\xF9","uml":"\xA8","uuml":"\xFC","yacute":"\xFD","yen":"\xA5","yuml":"\xFF"}')},80501:function(ze){"use strict";ze.exports=JSON.parse('{"0":"\uFFFD","128":"\u20AC","130":"\u201A","131":"\u0192","132":"\u201E","133":"\u2026","134":"\u2020","135":"\u2021","136":"\u02C6","137":"\u2030","138":"\u0160","139":"\u2039","140":"\u0152","142":"\u017D","145":"\u2018","146":"\u2019","147":"\u201C","148":"\u201D","149":"\u2022","150":"\u2013","151":"\u2014","152":"\u02DC","153":"\u2122","154":"\u0161","155":"\u203A","156":"\u0153","158":"\u017E","159":"\u0178"}')}}]);
|
|
|
}()); |