diff --git a/index.html b/index.html index bfa50fa46..7d0a56171 100644 --- a/index.html +++ b/index.html @@ -67,7 +67,7 @@ } } - + diff --git a/static/js/md-_basePickBy-uQ-3YVhY.js b/static/js/md-_basePickBy-DzqsyDBx.js similarity index 95% rename from static/js/md-_basePickBy-uQ-3YVhY.js rename to static/js/md-_basePickBy-DzqsyDBx.js index 0dd63fc2b..4d6e738cc 100644 --- a/static/js/md-_basePickBy-uQ-3YVhY.js +++ b/static/js/md-_basePickBy-DzqsyDBx.js @@ -1 +1 @@ -import{e as v,c as O,g as m,k as b,h as P,j as p,l as w,m as A,n as x,t as N,o as c}from"./md-_baseUniq-tMSgAJlj.js";import{aM as g,aA as M,aN as E,aO as F,aP as T,aQ as I,aR as _,aS as $,aT as y,aU as B}from"./md-index-xmajgeSt.js";var S=/\s/;function R(n){for(var r=n.length;r--&&S.test(n.charAt(r)););return r}var G=/^\s+/;function H(n){return n&&n.slice(0,R(n)+1).replace(G,"")}var o=NaN,L=/^[-+]0x[0-9a-f]+$/i,q=/^0b[01]+$/i,z=/^0o[0-7]+$/i,C=parseInt;function K(n){if(typeof n=="number")return n;if(v(n))return o;if(g(n)){var r=typeof n.valueOf=="function"?n.valueOf():n;n=g(r)?r+"":r}if(typeof n!="string")return n===0?n:+n;n=H(n);var t=q.test(n);return t||z.test(n)?C(n.slice(2),t?2:8):L.test(n)?o:+n}var Q=1/0,U=17976931348623157e292;function W(n){if(!n)return n===0?n:0;if(n=K(n),n===Q||n===-1/0){var r=n<0?-1:1;return r*U}return n===n?n:0}function X(n){var r=W(n),t=r%1;return r===r?t?r-t:r:0}function fn(n){var r=n==null?0:n.length;return r?O(n):[]}var l=Object.prototype,Y=l.hasOwnProperty,dn=M(function(n,r){n=Object(n);var t=-1,e=r.length,a=e>2?r[2]:void 0;for(a&&E(r[0],r[1],a)&&(e=1);++t-1?a[f?r[i]:i]:void 0}}var J=Math.max;function Z(n,r,t){var e=n==null?0:n.length;if(!e)return-1;var a=t==null?0:X(t);return a<0&&(a=J(e+a,0)),P(n,m(r),a)}var hn=D(Z);function V(n,r){var t=-1,e=I(n)?Array(n.length):[];return p(n,function(a,f,i){e[++t]=r(a,f,i)}),e}function gn(n,r){var t=_(n)?w:V;return t(n,m(r))}var j=Object.prototype,k=j.hasOwnProperty;function nn(n,r){return n!=null&&k.call(n,r)}function mn(n,r){return n!=null&&A(n,r,nn)}function rn(n,r){return n2?r[2]:void 0;for(a&&E(r[0],r[1],a)&&(e=1);++t-1?a[f?r[i]:i]:void 0}}var J=Math.max;function Z(n,r,t){var e=n==null?0:n.length;if(!e)return-1;var a=t==null?0:X(t);return a<0&&(a=J(e+a,0)),P(n,m(r),a)}var hn=D(Z);function V(n,r){var t=-1,e=I(n)?Array(n.length):[];return p(n,function(a,f,i){e[++t]=r(a,f,i)}),e}function gn(n,r){var t=_(n)?w:V;return t(n,m(r))}var j=Object.prototype,k=j.hasOwnProperty;function nn(n,r){return n!=null&&k.call(n,r)}function mn(n,r){return n!=null&&A(n,r,nn)}function rn(n,r){return n-1}function $(n){return sn(n)?xn(n):Mn(n)}var kn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,nr=/^\w*$/;function N(n,r){if(T(n))return!1;var e=typeof n;return e=="number"||e=="symbol"||e=="boolean"||n==null||B(n)?!0:nr.test(n)||!kn.test(n)||r!=null&&n in Object(r)}var rr=500;function er(n){var r=mn(n,function(t){return e.size===rr&&e.clear(),t}),e=r.cache;return r}var tr=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ir=/\\(\\)?/g,fr=er(function(n){var r=[];return n.charCodeAt(0)===46&&r.push(""),n.replace(tr,function(e,t,f,i){r.push(f?i.replace(ir,"$1"):t||e)}),r});function ar(n){return n==null?"":dn(n)}function An(n,r){return T(n)?n:N(n,r)?[n]:fr(ar(n))}function M(n){if(typeof n=="string"||B(n))return n;var r=n+"";return r=="0"&&1/n==-1/0?"-0":r}function yn(n,r){r=An(r,n);for(var e=0,t=r.length;n!=null&&es))return!1;var b=i.get(n),l=i.get(r);if(b&&l)return b==r&&l==n;var o=-1,c=!0,h=e&ve?new P:void 0;for(i.set(n,r),i.set(r,n);++o=ht){var b=r?null:Tt(n);if(b)return H(b);a=!1,f=En,u=new P}else u=r?[]:s;n:for(;++t-1}function $(n){return sn(n)?xn(n):Mn(n)}var kn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,nr=/^\w*$/;function N(n,r){if(T(n))return!1;var e=typeof n;return e=="number"||e=="symbol"||e=="boolean"||n==null||B(n)?!0:nr.test(n)||!kn.test(n)||r!=null&&n in Object(r)}var rr=500;function er(n){var r=mn(n,function(t){return e.size===rr&&e.clear(),t}),e=r.cache;return r}var tr=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ir=/\\(\\)?/g,fr=er(function(n){var r=[];return n.charCodeAt(0)===46&&r.push(""),n.replace(tr,function(e,t,f,i){r.push(f?i.replace(ir,"$1"):t||e)}),r});function ar(n){return n==null?"":dn(n)}function An(n,r){return T(n)?n:N(n,r)?[n]:fr(ar(n))}function M(n){if(typeof n=="string"||B(n))return n;var r=n+"";return r=="0"&&1/n==-1/0?"-0":r}function yn(n,r){r=An(r,n);for(var e=0,t=r.length;n!=null&&es))return!1;var b=i.get(n),l=i.get(r);if(b&&l)return b==r&&l==n;var o=-1,c=!0,h=e&ve?new P:void 0;for(i.set(n,r),i.set(r,n);++o=ht){var b=r?null:Tt(n);if(b)return H(b);a=!1,f=En,u=new P}else u=r?[]:s;n:for(;++tr*r+F*F&&($=w,j=p),{cx:$,cy:j,x01:-n,y01:-d,x11:$*(v/T-1),y11:j*(v/T-1)}}function hn(){var l=cn,h=yn,I=z(0),D=null,v=gn,A=dn,B=mn,a=null,O=ln(i);function i(){var n,d,u=+l.apply(this,arguments),s=+h.apply(this,arguments),f=v.apply(this,arguments)-an,c=A.apply(this,arguments)-an,C=un(c-f),t=c>f;if(a||(a=n=O()),sy))a.moveTo(0,0);else if(C>tn-y)a.moveTo(s*G(f),s*q(f)),a.arc(0,0,s,f,c,!t),u>y&&(a.moveTo(u*G(c),u*q(c)),a.arc(0,0,u,c,f,t));else{var m=f,g=c,R=f,T=c,P=C,S=C,$=B.apply(this,arguments)/2,j=$>y&&(D?+D.apply(this,arguments):K(u*u+s*s)),w=_(un(s-u)/2,+I.apply(this,arguments)),p=w,x=w,e,r;if(j>y){var F=sn(j/u*q($)),L=sn(j/s*q($));(P-=F*2)>y?(F*=t?1:-1,R+=F,T-=F):(P=0,R=T=(f+c)/2),(S-=L*2)>y?(L*=t?1:-1,m+=L,g-=L):(S=0,m=g=(f+c)/2)}var H=s*G(m),J=s*q(m),M=u*G(T),N=u*q(T);if(w>y){var Q=s*G(g),U=s*q(g),W=u*G(R),X=u*q(R),E;if(Cy?x>y?(e=V(W,X,H,J,s,x,t),r=V(Q,U,M,N,s,x,t),a.moveTo(e.cx+e.x01,e.cy+e.y01),xy)||!(P>y)?a.lineTo(M,N):p>y?(e=V(M,N,Q,U,u,-p,t),r=V(H,J,W,X,u,-p,t),a.lineTo(e.cx+e.x01,e.cy+e.y01),pr*r+F*F&&($=w,j=p),{cx:$,cy:j,x01:-n,y01:-d,x11:$*(v/T-1),y11:j*(v/T-1)}}function hn(){var l=cn,h=yn,I=z(0),D=null,v=gn,A=dn,B=mn,a=null,O=ln(i);function i(){var n,d,u=+l.apply(this,arguments),s=+h.apply(this,arguments),f=v.apply(this,arguments)-an,c=A.apply(this,arguments)-an,C=un(c-f),t=c>f;if(a||(a=n=O()),sy))a.moveTo(0,0);else if(C>tn-y)a.moveTo(s*G(f),s*q(f)),a.arc(0,0,s,f,c,!t),u>y&&(a.moveTo(u*G(c),u*q(c)),a.arc(0,0,u,c,f,t));else{var m=f,g=c,R=f,T=c,P=C,S=C,$=B.apply(this,arguments)/2,j=$>y&&(D?+D.apply(this,arguments):K(u*u+s*s)),w=_(un(s-u)/2,+I.apply(this,arguments)),p=w,x=w,e,r;if(j>y){var F=sn(j/u*q($)),L=sn(j/s*q($));(P-=F*2)>y?(F*=t?1:-1,R+=F,T-=F):(P=0,R=T=(f+c)/2),(S-=L*2)>y?(L*=t?1:-1,m+=L,g-=L):(S=0,m=g=(f+c)/2)}var H=s*G(m),J=s*q(m),M=u*G(T),N=u*q(T);if(w>y){var Q=s*G(g),U=s*q(g),W=u*G(R),X=u*q(R),E;if(Cy?x>y?(e=V(W,X,H,J,s,x,t),r=V(Q,U,M,N,s,x,t),a.moveTo(e.cx+e.x01,e.cy+e.y01),xy)||!(P>y)?a.lineTo(M,N):p>y?(e=V(M,N,Q,U,u,-p,t),r=V(H,J,W,X,u,-p,t),a.lineTo(e.cx+e.x01,e.cy+e.y01),ph?(this.rect.x-=(this.labelWidth-h)/2,this.setWidth(this.labelWidth)):this.labelPosHorizontal=="right"&&this.setWidth(h+this.labelWidth)),this.labelHeight&&(this.labelPosVertical=="top"?(this.rect.y-=this.labelHeight,this.setHeight(o+this.labelHeight)):this.labelPosVertical=="center"&&this.labelHeight>o?(this.rect.y-=(this.labelHeight-o)/2,this.setHeight(this.labelHeight)):this.labelPosVertical=="bottom"&&this.setHeight(o+this.labelHeight))}}},n.prototype.getInclusionTreeDepth=function(){if(this.inclusionTreeDepth==s.MAX_VALUE)throw"assert failed";return this.inclusionTreeDepth},n.prototype.transform=function(t){var h=this.rect.x;h>r.WORLD_BOUNDARY?h=r.WORLD_BOUNDARY:h<-r.WORLD_BOUNDARY&&(h=-r.WORLD_BOUNDARY);var o=this.rect.y;o>r.WORLD_BOUNDARY?o=r.WORLD_BOUNDARY:o<-r.WORLD_BOUNDARY&&(o=-r.WORLD_BOUNDARY);var c=new f(h,o),l=t.inverseTransformPoint(c);this.setLocation(l.x,l.y)},n.prototype.getLeft=function(){return this.rect.x},n.prototype.getRight=function(){return this.rect.x+this.rect.width},n.prototype.getTop=function(){return this.rect.y},n.prototype.getBottom=function(){return this.rect.y+this.rect.height},n.prototype.getParent=function(){return this.owner==null?null:this.owner.getParent()},C.exports=n},function(C,G,N){var u=N(0);function s(){}for(var i in u)s[i]=u[i];s.MAX_ITERATIONS=2500,s.DEFAULT_EDGE_LENGTH=50,s.DEFAULT_SPRING_STRENGTH=.45,s.DEFAULT_REPULSION_STRENGTH=4500,s.DEFAULT_GRAVITY_STRENGTH=.4,s.DEFAULT_COMPOUND_GRAVITY_STRENGTH=1,s.DEFAULT_GRAVITY_RANGE_FACTOR=3.8,s.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=1.5,s.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION=!0,s.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION=!0,s.DEFAULT_COOLING_FACTOR_INCREMENTAL=.3,s.COOLING_ADAPTATION_FACTOR=.33,s.ADAPTATION_LOWER_NODE_LIMIT=1e3,s.ADAPTATION_UPPER_NODE_LIMIT=5e3,s.MAX_NODE_DISPLACEMENT_INCREMENTAL=100,s.MAX_NODE_DISPLACEMENT=s.MAX_NODE_DISPLACEMENT_INCREMENTAL*3,s.MIN_REPULSION_DIST=s.DEFAULT_EDGE_LENGTH/10,s.CONVERGENCE_CHECK_PERIOD=100,s.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=.1,s.MIN_EDGE_LENGTH=1,s.GRID_CALCULATION_CHECK_PERIOD=10,C.exports=s},function(C,G,N){function u(s,i){s==null&&i==null?(this.x=0,this.y=0):(this.x=s,this.y=i)}u.prototype.getX=function(){return this.x},u.prototype.getY=function(){return this.y},u.prototype.setX=function(s){this.x=s},u.prototype.setY=function(s){this.y=s},u.prototype.getDifference=function(s){return new DimensionD(this.x-s.x,this.y-s.y)},u.prototype.getCopy=function(){return new u(this.x,this.y)},u.prototype.translate=function(s){return this.x+=s.width,this.y+=s.height,this},C.exports=u},function(C,G,N){var u=N(2),s=N(10),i=N(0),r=N(7),e=N(3),f=N(1),n=N(13),y=N(12),t=N(11);function h(c,l,T){u.call(this,T),this.estimatedSize=s.MIN_VALUE,this.margin=i.DEFAULT_GRAPH_MARGIN,this.edges=[],this.nodes=[],this.isConnected=!1,this.parent=c,l!=null&&l instanceof r?this.graphManager=l:l!=null&&l instanceof Layout&&(this.graphManager=l.graphManager)}h.prototype=Object.create(u.prototype);for(var o in u)h[o]=u[o];h.prototype.getNodes=function(){return this.nodes},h.prototype.getEdges=function(){return this.edges},h.prototype.getGraphManager=function(){return this.graphManager},h.prototype.getParent=function(){return this.parent},h.prototype.getLeft=function(){return this.left},h.prototype.getRight=function(){return this.right},h.prototype.getTop=function(){return this.top},h.prototype.getBottom=function(){return this.bottom},h.prototype.isConnected=function(){return this.isConnected},h.prototype.add=function(c,l,T){if(l==null&&T==null){var g=c;if(this.graphManager==null)throw"Graph has no graph mgr!";if(this.getNodes().indexOf(g)>-1)throw"Node already in graph!";return g.owner=this,this.getNodes().push(g),g}else{var d=c;if(!(this.getNodes().indexOf(l)>-1&&this.getNodes().indexOf(T)>-1))throw"Source or target not in graph!";if(!(l.owner==T.owner&&l.owner==this))throw"Both owners must be this graph!";return l.owner!=T.owner?null:(d.source=l,d.target=T,d.isInterGraph=!1,this.getEdges().push(d),l.edges.push(d),T!=l&&T.edges.push(d),d)}},h.prototype.remove=function(c){var l=c;if(c instanceof e){if(l==null)throw"Node is null!";if(!(l.owner!=null&&l.owner==this))throw"Owner graph is invalid!";if(this.graphManager==null)throw"Owner graph manager is invalid!";for(var T=l.edges.slice(),g,d=T.length,L=0;L-1&&P>-1))throw"Source and/or target doesn't know this edge!";g.source.edges.splice(A,1),g.target!=g.source&&g.target.edges.splice(P,1);var F=g.source.owner.getEdges().indexOf(g);if(F==-1)throw"Not in owner's edge list!";g.source.owner.getEdges().splice(F,1)}},h.prototype.updateLeftTop=function(){for(var c=s.MAX_VALUE,l=s.MAX_VALUE,T,g,d,L=this.getNodes(),F=L.length,A=0;AT&&(c=T),l>g&&(l=g)}return c==s.MAX_VALUE?null:(L[0].getParent().paddingLeft!=null?d=L[0].getParent().paddingLeft:d=this.margin,this.left=l-d,this.top=c-d,new y(this.left,this.top))},h.prototype.updateBounds=function(c){for(var l=s.MAX_VALUE,T=-s.MAX_VALUE,g=s.MAX_VALUE,d=-s.MAX_VALUE,L,F,A,P,J,V=this.nodes,Q=V.length,D=0;DL&&(l=L),TA&&(g=A),dL&&(l=L),TA&&(g=A),d=this.nodes.length){var Q=0;T.forEach(function(D){D.owner==c&&Q++}),Q==this.nodes.length&&(this.isConnected=!0)}},C.exports=h},function(C,G,N){var u,s=N(1);function i(r){u=N(6),this.layout=r,this.graphs=[],this.edges=[]}i.prototype.addRoot=function(){var r=this.layout.newGraph(),e=this.layout.newNode(null),f=this.add(r,e);return this.setRootGraph(f),this.rootGraph},i.prototype.add=function(r,e,f,n,y){if(f==null&&n==null&&y==null){if(r==null)throw"Graph is null!";if(e==null)throw"Parent node is null!";if(this.graphs.indexOf(r)>-1)throw"Graph already in this graph mgr!";if(this.graphs.push(r),r.parent!=null)throw"Already has a parent!";if(e.child!=null)throw"Already has a child!";return r.parent=e,e.child=r,r}else{y=f,n=e,f=r;var t=n.getOwner(),h=y.getOwner();if(!(t!=null&&t.getGraphManager()==this))throw"Source not in this graph mgr!";if(!(h!=null&&h.getGraphManager()==this))throw"Target not in this graph mgr!";if(t==h)return f.isInterGraph=!1,t.add(f,n,y);if(f.isInterGraph=!0,f.source=n,f.target=y,this.edges.indexOf(f)>-1)throw"Edge already in inter-graph edge list!";if(this.edges.push(f),!(f.source!=null&&f.target!=null))throw"Edge source and/or target is null!";if(!(f.source.edges.indexOf(f)==-1&&f.target.edges.indexOf(f)==-1))throw"Edge already in source and/or target incidency list!";return f.source.edges.push(f),f.target.edges.push(f),f}},i.prototype.remove=function(r){if(r instanceof u){var e=r;if(e.getGraphManager()!=this)throw"Graph not in this graph mgr";if(!(e==this.rootGraph||e.parent!=null&&e.parent.graphManager==this))throw"Invalid parent node!";var f=[];f=f.concat(e.getEdges());for(var n,y=f.length,t=0;t=r.getRight()?e[0]+=Math.min(r.getX()-i.getX(),i.getRight()-r.getRight()):r.getX()<=i.getX()&&r.getRight()>=i.getRight()&&(e[0]+=Math.min(i.getX()-r.getX(),r.getRight()-i.getRight())),i.getY()<=r.getY()&&i.getBottom()>=r.getBottom()?e[1]+=Math.min(r.getY()-i.getY(),i.getBottom()-r.getBottom()):r.getY()<=i.getY()&&r.getBottom()>=i.getBottom()&&(e[1]+=Math.min(i.getY()-r.getY(),r.getBottom()-i.getBottom()));var y=Math.abs((r.getCenterY()-i.getCenterY())/(r.getCenterX()-i.getCenterX()));r.getCenterY()===i.getCenterY()&&r.getCenterX()===i.getCenterX()&&(y=1);var t=y*e[0],h=e[1]/y;e[0]t)return e[0]=f,e[1]=o,e[2]=y,e[3]=V,!1;if(ny)return e[0]=h,e[1]=n,e[2]=P,e[3]=t,!1;if(fy?(e[0]=l,e[1]=T,a=!0):(e[0]=c,e[1]=o,a=!0):v===p&&(f>y?(e[0]=h,e[1]=o,a=!0):(e[0]=g,e[1]=T,a=!0)),-E===p?y>f?(e[2]=J,e[3]=V,m=!0):(e[2]=P,e[3]=A,m=!0):E===p&&(y>f?(e[2]=F,e[3]=A,m=!0):(e[2]=Q,e[3]=V,m=!0)),a&&m)return!1;if(f>y?n>t?(I=this.getCardinalDirection(v,p,4),w=this.getCardinalDirection(E,p,2)):(I=this.getCardinalDirection(-v,p,3),w=this.getCardinalDirection(-E,p,1)):n>t?(I=this.getCardinalDirection(-v,p,1),w=this.getCardinalDirection(-E,p,3)):(I=this.getCardinalDirection(v,p,2),w=this.getCardinalDirection(E,p,4)),!a)switch(I){case 1:H=o,R=f+-L/p,e[0]=R,e[1]=H;break;case 2:R=g,H=n+d*p,e[0]=R,e[1]=H;break;case 3:H=T,R=f+L/p,e[0]=R,e[1]=H;break;case 4:R=l,H=n+-d*p,e[0]=R,e[1]=H;break}if(!m)switch(w){case 1:k=A,x=y+-rt/p,e[2]=x,e[3]=k;break;case 2:x=Q,k=t+D*p,e[2]=x,e[3]=k;break;case 3:k=V,x=y+rt/p,e[2]=x,e[3]=k;break;case 4:x=J,k=t+-D*p,e[2]=x,e[3]=k;break}}return!1},s.getCardinalDirection=function(i,r,e){return i>r?e:1+e%4},s.getIntersection=function(i,r,e,f){if(f==null)return this.getIntersection2(i,r,e);var n=i.x,y=i.y,t=r.x,h=r.y,o=e.x,c=e.y,l=f.x,T=f.y,g=void 0,d=void 0,L=void 0,F=void 0,A=void 0,P=void 0,J=void 0,V=void 0,Q=void 0;return L=h-y,A=n-t,J=t*y-n*h,F=T-c,P=o-l,V=l*c-o*T,Q=L*P-F*A,Q===0?null:(g=(A*V-P*J)/Q,d=(F*J-L*V)/Q,new u(g,d))},s.angleOfVector=function(i,r,e,f){var n=void 0;return i!==e?(n=Math.atan((f-r)/(e-i)),e=0){var T=(-o+Math.sqrt(o*o-4*h*c))/(2*h),g=(-o-Math.sqrt(o*o-4*h*c))/(2*h),d=null;return T>=0&&T<=1?[T]:g>=0&&g<=1?[g]:d}else return null},s.HALF_PI=.5*Math.PI,s.ONE_AND_HALF_PI=1.5*Math.PI,s.TWO_PI=2*Math.PI,s.THREE_PI=3*Math.PI,C.exports=s},function(C,G,N){function u(){}u.sign=function(s){return s>0?1:s<0?-1:0},u.floor=function(s){return s<0?Math.ceil(s):Math.floor(s)},u.ceil=function(s){return s<0?Math.floor(s):Math.ceil(s)},C.exports=u},function(C,G,N){function u(){}u.MAX_VALUE=2147483647,u.MIN_VALUE=-2147483648,C.exports=u},function(C,G,N){var u=function(){function n(y,t){for(var h=0;h"u"?"undefined":u(i);return i==null||r!="object"&&r!="function"},C.exports=s},function(C,G,N){function u(o){if(Array.isArray(o)){for(var c=0,l=Array(o.length);c0&&c;){for(L.push(A[0]);L.length>0&&c;){var P=L[0];L.splice(0,1),d.add(P);for(var J=P.getEdges(),g=0;g-1&&A.splice(rt,1)}d=new Set,F=new Map}}return o},h.prototype.createDummyNodesForBendpoints=function(o){for(var c=[],l=o.source,T=this.graphManager.calcLowestCommonAncestor(o.source,o.target),g=0;g0){for(var T=this.edgeToDummyNodes.get(l),g=0;g=0&&c.splice(V,1);var Q=F.getNeighborsList();Q.forEach(function(a){if(l.indexOf(a)<0){var m=T.get(a),v=m-1;v==1&&P.push(a),T.set(a,v)}})}l=l.concat(P),(c.length==1||c.length==2)&&(g=!0,d=c[0])}return d},h.prototype.setGraphManager=function(o){this.graphManager=o},C.exports=h},function(C,G,N){function u(){}u.seed=1,u.x=0,u.nextDouble=function(){return u.x=Math.sin(u.seed++)*1e4,u.x-Math.floor(u.x)},C.exports=u},function(C,G,N){var u=N(5);function s(i,r){this.lworldOrgX=0,this.lworldOrgY=0,this.ldeviceOrgX=0,this.ldeviceOrgY=0,this.lworldExtX=1,this.lworldExtY=1,this.ldeviceExtX=1,this.ldeviceExtY=1}s.prototype.getWorldOrgX=function(){return this.lworldOrgX},s.prototype.setWorldOrgX=function(i){this.lworldOrgX=i},s.prototype.getWorldOrgY=function(){return this.lworldOrgY},s.prototype.setWorldOrgY=function(i){this.lworldOrgY=i},s.prototype.getWorldExtX=function(){return this.lworldExtX},s.prototype.setWorldExtX=function(i){this.lworldExtX=i},s.prototype.getWorldExtY=function(){return this.lworldExtY},s.prototype.setWorldExtY=function(i){this.lworldExtY=i},s.prototype.getDeviceOrgX=function(){return this.ldeviceOrgX},s.prototype.setDeviceOrgX=function(i){this.ldeviceOrgX=i},s.prototype.getDeviceOrgY=function(){return this.ldeviceOrgY},s.prototype.setDeviceOrgY=function(i){this.ldeviceOrgY=i},s.prototype.getDeviceExtX=function(){return this.ldeviceExtX},s.prototype.setDeviceExtX=function(i){this.ldeviceExtX=i},s.prototype.getDeviceExtY=function(){return this.ldeviceExtY},s.prototype.setDeviceExtY=function(i){this.ldeviceExtY=i},s.prototype.transformX=function(i){var r=0,e=this.lworldExtX;return e!=0&&(r=this.ldeviceOrgX+(i-this.lworldOrgX)*this.ldeviceExtX/e),r},s.prototype.transformY=function(i){var r=0,e=this.lworldExtY;return e!=0&&(r=this.ldeviceOrgY+(i-this.lworldOrgY)*this.ldeviceExtY/e),r},s.prototype.inverseTransformX=function(i){var r=0,e=this.ldeviceExtX;return e!=0&&(r=this.lworldOrgX+(i-this.ldeviceOrgX)*this.lworldExtX/e),r},s.prototype.inverseTransformY=function(i){var r=0,e=this.ldeviceExtY;return e!=0&&(r=this.lworldOrgY+(i-this.ldeviceOrgY)*this.lworldExtY/e),r},s.prototype.inverseTransformPoint=function(i){var r=new u(this.inverseTransformX(i.x),this.inverseTransformY(i.y));return r},C.exports=s},function(C,G,N){function u(t){if(Array.isArray(t)){for(var h=0,o=Array(t.length);hi.ADAPTATION_LOWER_NODE_LIMIT&&(this.coolingFactor=Math.max(this.coolingFactor*i.COOLING_ADAPTATION_FACTOR,this.coolingFactor-(t-i.ADAPTATION_LOWER_NODE_LIMIT)/(i.ADAPTATION_UPPER_NODE_LIMIT-i.ADAPTATION_LOWER_NODE_LIMIT)*this.coolingFactor*(1-i.COOLING_ADAPTATION_FACTOR))),this.maxNodeDisplacement=i.MAX_NODE_DISPLACEMENT_INCREMENTAL):(t>i.ADAPTATION_LOWER_NODE_LIMIT?this.coolingFactor=Math.max(i.COOLING_ADAPTATION_FACTOR,1-(t-i.ADAPTATION_LOWER_NODE_LIMIT)/(i.ADAPTATION_UPPER_NODE_LIMIT-i.ADAPTATION_LOWER_NODE_LIMIT)*(1-i.COOLING_ADAPTATION_FACTOR)):this.coolingFactor=1,this.initialCoolingFactor=this.coolingFactor,this.maxNodeDisplacement=i.MAX_NODE_DISPLACEMENT),this.maxIterations=Math.max(this.getAllNodes().length*5,this.maxIterations),this.displacementThresholdPerNode=3*i.DEFAULT_EDGE_LENGTH/100,this.totalDisplacementThreshold=this.displacementThresholdPerNode*this.getAllNodes().length,this.repulsionRange=this.calcRepulsionRange()},n.prototype.calcSpringForces=function(){for(var t=this.getAllEdges(),h,o=0;o0&&arguments[0]!==void 0?arguments[0]:!0,h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,o,c,l,T,g=this.getAllNodes(),d;if(this.useFRGridVariant)for(this.totalIterations%i.GRID_CALCULATION_CHECK_PERIOD==1&&t&&this.updateGrid(),d=new Set,o=0;oL||d>L)&&(t.gravitationForceX=-this.gravityConstant*l,t.gravitationForceY=-this.gravityConstant*T)):(L=h.getEstimatedSize()*this.compoundGravityRangeFactor,(g>L||d>L)&&(t.gravitationForceX=-this.gravityConstant*l*this.compoundGravityConstant,t.gravitationForceY=-this.gravityConstant*T*this.compoundGravityConstant))},n.prototype.isConverged=function(){var t,h=!1;return this.totalIterations>this.maxIterations/3&&(h=Math.abs(this.totalDisplacement-this.oldTotalDisplacement)<2),t=this.totalDisplacement=g.length||L>=g[0].length)){for(var F=0;Fn}}]),e}();C.exports=r},function(C,G,N){function u(){}u.svd=function(s){this.U=null,this.V=null,this.s=null,this.m=0,this.n=0,this.m=s.length,this.n=s[0].length;var i=Math.min(this.m,this.n);this.s=function(Nt){for(var At=[];Nt-- >0;)At.push(0);return At}(Math.min(this.m+1,this.n)),this.U=function(Nt){var At=function Zt(Gt){if(Gt.length==0)return 0;for(var $t=[],Ft=0;Ft0;)At.push(0);return At}(this.n),e=function(Nt){for(var At=[];Nt-- >0;)At.push(0);return At}(this.m),f=!0,n=Math.min(this.m-1,this.n),y=Math.max(0,Math.min(this.n-2,this.m)),t=0;t=0;E--)if(this.s[E]!==0){for(var p=E+1;p=0;W--){if(function(Nt,At){return Nt&&At}(W0;){var q=void 0,Rt=void 0;for(q=a-2;q>=-1&&q!==-1;q--)if(Math.abs(r[q])<=lt+_*(Math.abs(this.s[q])+Math.abs(this.s[q+1]))){r[q]=0;break}if(q===a-2)Rt=4;else{var Lt=void 0;for(Lt=a-1;Lt>=q&&Lt!==q;Lt--){var vt=(Lt!==a?Math.abs(r[Lt]):0)+(Lt!==q+1?Math.abs(r[Lt-1]):0);if(Math.abs(this.s[Lt])<=lt+_*vt){this.s[Lt]=0;break}}Lt===q?Rt=3:Lt===a-1?Rt=1:(Rt=2,q=Lt)}switch(q++,Rt){case 1:{var it=r[a-2];r[a-2]=0;for(var gt=a-2;gt>=q;gt--){var Tt=u.hypot(this.s[gt],it),Ct=this.s[gt]/Tt,Dt=it/Tt;this.s[gt]=Tt,gt!==q&&(it=-Dt*r[gt-1],r[gt-1]=Ct*r[gt-1]);for(var mt=0;mt=this.s[q+1]);){var Mt=this.s[q];if(this.s[q]=this.s[q+1],this.s[q+1]=Mt,qMath.abs(i)?(r=i/s,r=Math.abs(s)*Math.sqrt(1+r*r)):i!=0?(r=s/i,r=Math.abs(i)*Math.sqrt(1+r*r)):r=0,r},C.exports=u},function(C,G,N){var u=function(){function r(e,f){for(var n=0;n2&&arguments[2]!==void 0?arguments[2]:1,y=arguments.length>3&&arguments[3]!==void 0?arguments[3]:-1,t=arguments.length>4&&arguments[4]!==void 0?arguments[4]:-1;s(this,r),this.sequence1=e,this.sequence2=f,this.match_score=n,this.mismatch_penalty=y,this.gap_penalty=t,this.iMax=e.length+1,this.jMax=f.length+1,this.grid=new Array(this.iMax);for(var h=0;h=0;e--){var f=this.listeners[e];f.event===i&&f.callback===r&&this.listeners.splice(e,1)}},s.emit=function(i,r){for(var e=0;e{var G={45:(i,r,e)=>{var f={};f.layoutBase=e(551),f.CoSEConstants=e(806),f.CoSEEdge=e(767),f.CoSEGraph=e(880),f.CoSEGraphManager=e(578),f.CoSELayout=e(765),f.CoSENode=e(991),f.ConstraintHandler=e(902),i.exports=f},806:(i,r,e)=>{var f=e(551).FDLayoutConstants;function n(){}for(var y in f)n[y]=f[y];n.DEFAULT_USE_MULTI_LEVEL_SCALING=!1,n.DEFAULT_RADIAL_SEPARATION=f.DEFAULT_EDGE_LENGTH,n.DEFAULT_COMPONENT_SEPERATION=60,n.TILE=!0,n.TILING_PADDING_VERTICAL=10,n.TILING_PADDING_HORIZONTAL=10,n.TRANSFORM_ON_CONSTRAINT_HANDLING=!0,n.ENFORCE_CONSTRAINTS=!0,n.APPLY_LAYOUT=!0,n.RELAX_MOVEMENT_ON_CONSTRAINTS=!0,n.TREE_REDUCTION_ON_INCREMENTAL=!0,n.PURE_INCREMENTAL=n.DEFAULT_INCREMENTAL,i.exports=n},767:(i,r,e)=>{var f=e(551).FDLayoutEdge;function n(t,h,o){f.call(this,t,h,o)}n.prototype=Object.create(f.prototype);for(var y in f)n[y]=f[y];i.exports=n},880:(i,r,e)=>{var f=e(551).LGraph;function n(t,h,o){f.call(this,t,h,o)}n.prototype=Object.create(f.prototype);for(var y in f)n[y]=f[y];i.exports=n},578:(i,r,e)=>{var f=e(551).LGraphManager;function n(t){f.call(this,t)}n.prototype=Object.create(f.prototype);for(var y in f)n[y]=f[y];i.exports=n},765:(i,r,e)=>{var f=e(551).FDLayout,n=e(578),y=e(880),t=e(991),h=e(767),o=e(806),c=e(902),l=e(551).FDLayoutConstants,T=e(551).LayoutConstants,g=e(551).Point,d=e(551).PointD,L=e(551).DimensionD,F=e(551).Layout,A=e(551).Integer,P=e(551).IGeometry,J=e(551).LGraph,V=e(551).Transform,Q=e(551).LinkedList;function D(){f.call(this),this.toBeTiled={},this.constraints={}}D.prototype=Object.create(f.prototype);for(var rt in f)D[rt]=f[rt];D.prototype.newGraphManager=function(){var a=new n(this);return this.graphManager=a,a},D.prototype.newGraph=function(a){return new y(null,this.graphManager,a)},D.prototype.newNode=function(a){return new t(this.graphManager,a)},D.prototype.newEdge=function(a){return new h(null,null,a)},D.prototype.initParameters=function(){f.prototype.initParameters.call(this,arguments),this.isSubLayout||(o.DEFAULT_EDGE_LENGTH<10?this.idealEdgeLength=10:this.idealEdgeLength=o.DEFAULT_EDGE_LENGTH,this.useSmartIdealEdgeLengthCalculation=o.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION,this.gravityConstant=l.DEFAULT_GRAVITY_STRENGTH,this.compoundGravityConstant=l.DEFAULT_COMPOUND_GRAVITY_STRENGTH,this.gravityRangeFactor=l.DEFAULT_GRAVITY_RANGE_FACTOR,this.compoundGravityRangeFactor=l.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR,this.prunedNodesAll=[],this.growTreeIterations=0,this.afterGrowthIterations=0,this.isTreeGrowing=!1,this.isGrowthFinished=!1)},D.prototype.initSpringEmbedder=function(){f.prototype.initSpringEmbedder.call(this),this.coolingCycle=0,this.maxCoolingCycle=this.maxIterations/l.CONVERGENCE_CHECK_PERIOD,this.finalTemperature=.04,this.coolingAdjuster=1},D.prototype.layout=function(){var a=T.DEFAULT_CREATE_BENDS_AS_NEEDED;return a&&(this.createBendpoints(),this.graphManager.resetAllEdges()),this.level=0,this.classicLayout()},D.prototype.classicLayout=function(){if(this.nodesWithGravity=this.calculateNodesToApplyGravitationTo(),this.graphManager.setAllNodesToApplyGravitation(this.nodesWithGravity),this.calcNoOfChildrenForAllNodes(),this.graphManager.calcLowestCommonAncestors(),this.graphManager.calcInclusionTreeDepths(),this.graphManager.getRoot().calcEstimatedSize(),this.calcIdealEdgeLengths(),this.incremental){if(o.TREE_REDUCTION_ON_INCREMENTAL){this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var m=new Set(this.getAllNodes()),v=this.nodesWithGravity.filter(function(I){return m.has(I)});this.graphManager.setAllNodesToApplyGravitation(v)}}else{var a=this.getFlatForest();if(a.length>0)this.positionNodesRadially(a);else{this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var m=new Set(this.getAllNodes()),v=this.nodesWithGravity.filter(function(E){return m.has(E)});this.graphManager.setAllNodesToApplyGravitation(v),this.positionNodesRandomly()}}return Object.keys(this.constraints).length>0&&(c.handleConstraints(this),this.initConstraintVariables()),this.initSpringEmbedder(),o.APPLY_LAYOUT&&this.runSpringEmbedder(),!0},D.prototype.tick=function(){if(this.totalIterations++,this.totalIterations===this.maxIterations&&!this.isTreeGrowing&&!this.isGrowthFinished)if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;if(this.totalIterations%l.CONVERGENCE_CHECK_PERIOD==0&&!this.isTreeGrowing&&!this.isGrowthFinished){if(this.isConverged())if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;this.coolingCycle++,this.layoutQuality==0?this.coolingAdjuster=this.coolingCycle:this.layoutQuality==1&&(this.coolingAdjuster=this.coolingCycle/3),this.coolingFactor=Math.max(this.initialCoolingFactor-Math.pow(this.coolingCycle,Math.log(100*(this.initialCoolingFactor-this.finalTemperature))/Math.log(this.maxCoolingCycle))/100*this.coolingAdjuster,this.finalTemperature),this.animationPeriod=Math.ceil(this.initialAnimationPeriod*Math.sqrt(this.coolingFactor))}if(this.isTreeGrowing){if(this.growTreeIterations%10==0)if(this.prunedNodesAll.length>0){this.graphManager.updateBounds(),this.updateGrid(),this.growTree(this.prunedNodesAll),this.graphManager.resetAllNodesToApplyGravitation();var a=new Set(this.getAllNodes()),m=this.nodesWithGravity.filter(function(p){return a.has(p)});this.graphManager.setAllNodesToApplyGravitation(m),this.graphManager.updateBounds(),this.updateGrid(),o.PURE_INCREMENTAL?this.coolingFactor=l.DEFAULT_COOLING_FACTOR_INCREMENTAL/2:this.coolingFactor=l.DEFAULT_COOLING_FACTOR_INCREMENTAL}else this.isTreeGrowing=!1,this.isGrowthFinished=!0;this.growTreeIterations++}if(this.isGrowthFinished){if(this.isConverged())return!0;this.afterGrowthIterations%10==0&&(this.graphManager.updateBounds(),this.updateGrid()),o.PURE_INCREMENTAL?this.coolingFactor=l.DEFAULT_COOLING_FACTOR_INCREMENTAL/2*((100-this.afterGrowthIterations)/100):this.coolingFactor=l.DEFAULT_COOLING_FACTOR_INCREMENTAL*((100-this.afterGrowthIterations)/100),this.afterGrowthIterations++}var v=!this.isTreeGrowing&&!this.isGrowthFinished,E=this.growTreeIterations%10==1&&this.isTreeGrowing||this.afterGrowthIterations%10==1&&this.isGrowthFinished;return this.totalDisplacement=0,this.graphManager.updateBounds(),this.calcSpringForces(),this.calcRepulsionForces(v,E),this.calcGravitationalForces(),this.moveNodes(),this.animate(),!1},D.prototype.getPositionsData=function(){for(var a=this.graphManager.getAllNodes(),m={},v=0;v0&&this.updateDisplacements();for(var v=0;v0&&(E.fixedNodeWeight=I)}}if(this.constraints.relativePlacementConstraint){var w=new Map,R=new Map;if(this.dummyToNodeForVerticalAlignment=new Map,this.dummyToNodeForHorizontalAlignment=new Map,this.fixedNodesOnHorizontal=new Set,this.fixedNodesOnVertical=new Set,this.fixedNodeSet.forEach(function(O){a.fixedNodesOnHorizontal.add(O),a.fixedNodesOnVertical.add(O)}),this.constraints.alignmentConstraint){if(this.constraints.alignmentConstraint.vertical)for(var H=this.constraints.alignmentConstraint.vertical,v=0;v=2*O.length/3;_--)X=Math.floor(Math.random()*(_+1)),B=O[_],O[_]=O[X],O[X]=B;return O},this.nodesInRelativeHorizontal=[],this.nodesInRelativeVertical=[],this.nodeToRelativeConstraintMapHorizontal=new Map,this.nodeToRelativeConstraintMapVertical=new Map,this.nodeToTempPositionMapHorizontal=new Map,this.nodeToTempPositionMapVertical=new Map,this.constraints.relativePlacementConstraint.forEach(function(O){if(O.left){var X=w.has(O.left)?w.get(O.left):O.left,B=w.has(O.right)?w.get(O.right):O.right;a.nodesInRelativeHorizontal.includes(X)||(a.nodesInRelativeHorizontal.push(X),a.nodeToRelativeConstraintMapHorizontal.set(X,[]),a.dummyToNodeForVerticalAlignment.has(X)?a.nodeToTempPositionMapHorizontal.set(X,a.idToNodeMap.get(a.dummyToNodeForVerticalAlignment.get(X)[0]).getCenterX()):a.nodeToTempPositionMapHorizontal.set(X,a.idToNodeMap.get(X).getCenterX())),a.nodesInRelativeHorizontal.includes(B)||(a.nodesInRelativeHorizontal.push(B),a.nodeToRelativeConstraintMapHorizontal.set(B,[]),a.dummyToNodeForVerticalAlignment.has(B)?a.nodeToTempPositionMapHorizontal.set(B,a.idToNodeMap.get(a.dummyToNodeForVerticalAlignment.get(B)[0]).getCenterX()):a.nodeToTempPositionMapHorizontal.set(B,a.idToNodeMap.get(B).getCenterX())),a.nodeToRelativeConstraintMapHorizontal.get(X).push({right:B,gap:O.gap}),a.nodeToRelativeConstraintMapHorizontal.get(B).push({left:X,gap:O.gap})}else{var _=R.has(O.top)?R.get(O.top):O.top,lt=R.has(O.bottom)?R.get(O.bottom):O.bottom;a.nodesInRelativeVertical.includes(_)||(a.nodesInRelativeVertical.push(_),a.nodeToRelativeConstraintMapVertical.set(_,[]),a.dummyToNodeForHorizontalAlignment.has(_)?a.nodeToTempPositionMapVertical.set(_,a.idToNodeMap.get(a.dummyToNodeForHorizontalAlignment.get(_)[0]).getCenterY()):a.nodeToTempPositionMapVertical.set(_,a.idToNodeMap.get(_).getCenterY())),a.nodesInRelativeVertical.includes(lt)||(a.nodesInRelativeVertical.push(lt),a.nodeToRelativeConstraintMapVertical.set(lt,[]),a.dummyToNodeForHorizontalAlignment.has(lt)?a.nodeToTempPositionMapVertical.set(lt,a.idToNodeMap.get(a.dummyToNodeForHorizontalAlignment.get(lt)[0]).getCenterY()):a.nodeToTempPositionMapVertical.set(lt,a.idToNodeMap.get(lt).getCenterY())),a.nodeToRelativeConstraintMapVertical.get(_).push({bottom:lt,gap:O.gap}),a.nodeToRelativeConstraintMapVertical.get(lt).push({top:_,gap:O.gap})}});else{var k=new Map,W=new Map;this.constraints.relativePlacementConstraint.forEach(function(O){if(O.left){var X=w.has(O.left)?w.get(O.left):O.left,B=w.has(O.right)?w.get(O.right):O.right;k.has(X)?k.get(X).push(B):k.set(X,[B]),k.has(B)?k.get(B).push(X):k.set(B,[X])}else{var _=R.has(O.top)?R.get(O.top):O.top,lt=R.has(O.bottom)?R.get(O.bottom):O.bottom;W.has(_)?W.get(_).push(lt):W.set(_,[lt]),W.has(lt)?W.get(lt).push(_):W.set(lt,[_])}});var U=function(X,B){var _=[],lt=[],q=new Q,Rt=new Set,Lt=0;return X.forEach(function(vt,it){if(!Rt.has(it)){_[Lt]=[],lt[Lt]=!1;var gt=it;for(q.push(gt),Rt.add(gt),_[Lt].push(gt);q.length!=0;){gt=q.shift(),B.has(gt)&&(lt[Lt]=!0);var Tt=X.get(gt);Tt.forEach(function(Ct){Rt.has(Ct)||(q.push(Ct),Rt.add(Ct),_[Lt].push(Ct))})}Lt++}}),{components:_,isFixed:lt}},et=U(k,a.fixedNodesOnHorizontal);this.componentsOnHorizontal=et.components,this.fixedComponentsOnHorizontal=et.isFixed;var z=U(W,a.fixedNodesOnVertical);this.componentsOnVertical=z.components,this.fixedComponentsOnVertical=z.isFixed}}},D.prototype.updateDisplacements=function(){var a=this;if(this.constraints.fixedNodeConstraint&&this.constraints.fixedNodeConstraint.forEach(function(z){var O=a.idToNodeMap.get(z.nodeId);O.displacementX=0,O.displacementY=0}),this.constraints.alignmentConstraint){if(this.constraints.alignmentConstraint.vertical)for(var m=this.constraints.alignmentConstraint.vertical,v=0;v1){var R;for(R=0;RE&&(E=Math.floor(w.y)),I=Math.floor(w.x+o.DEFAULT_COMPONENT_SEPERATION)}this.transform(new d(T.WORLD_CENTER_X-w.x/2,T.WORLD_CENTER_Y-w.y/2))},D.radialLayout=function(a,m,v){var E=Math.max(this.maxDiagonalInTree(a),o.DEFAULT_RADIAL_SEPARATION);D.branchRadialLayout(m,null,0,359,0,E);var p=J.calculateBounds(a),I=new V;I.setDeviceOrgX(p.getMinX()),I.setDeviceOrgY(p.getMinY()),I.setWorldOrgX(v.x),I.setWorldOrgY(v.y);for(var w=0;w1;){var B=X[0];X.splice(0,1);var _=W.indexOf(B);_>=0&&W.splice(_,1),z--,U--}m!=null?O=(W.indexOf(X[0])+1)%z:O=0;for(var lt=Math.abs(E-v)/U,q=O;et!=U;q=++q%z){var Rt=W[q].getOtherEnd(a);if(Rt!=m){var Lt=(v+et*lt)%360,vt=(Lt+lt)%360;D.branchRadialLayout(Rt,a,Lt,vt,p+I,I),et++}}},D.maxDiagonalInTree=function(a){for(var m=A.MIN_VALUE,v=0;vm&&(m=p)}return m},D.prototype.calcRepulsionRange=function(){return 2*(this.level+1)*this.idealEdgeLength},D.prototype.groupZeroDegreeMembers=function(){var a=this,m={};this.memberGroups={},this.idToDummyNode={};for(var v=[],E=this.graphManager.getAllNodes(),p=0;p"u"&&(m[R]=[]),m[R]=m[R].concat(I)}Object.keys(m).forEach(function(H){if(m[H].length>1){var x="DummyCompound_"+H;a.memberGroups[x]=m[H];var k=m[H][0].getParent(),W=new t(a.graphManager);W.id=x,W.paddingLeft=k.paddingLeft||0,W.paddingRight=k.paddingRight||0,W.paddingBottom=k.paddingBottom||0,W.paddingTop=k.paddingTop||0,a.idToDummyNode[x]=W;var U=a.getGraphManager().add(a.newGraph(),W),et=k.getChild();et.add(W);for(var z=0;zp?(E.rect.x-=(E.labelWidth-p)/2,E.setWidth(E.labelWidth),E.labelMarginLeft=(E.labelWidth-p)/2):E.labelPosHorizontal=="right"&&E.setWidth(p+E.labelWidth)),E.labelHeight&&(E.labelPosVertical=="top"?(E.rect.y-=E.labelHeight,E.setHeight(I+E.labelHeight),E.labelMarginTop=E.labelHeight):E.labelPosVertical=="center"&&E.labelHeight>I?(E.rect.y-=(E.labelHeight-I)/2,E.setHeight(E.labelHeight),E.labelMarginTop=(E.labelHeight-I)/2):E.labelPosVertical=="bottom"&&E.setHeight(I+E.labelHeight))}})},D.prototype.repopulateCompounds=function(){for(var a=this.compoundOrder.length-1;a>=0;a--){var m=this.compoundOrder[a],v=m.id,E=m.paddingLeft,p=m.paddingTop,I=m.labelMarginLeft,w=m.labelMarginTop;this.adjustLocations(this.tiledMemberPack[v],m.rect.x,m.rect.y,E,p,I,w)}},D.prototype.repopulateZeroDegreeMembers=function(){var a=this,m=this.tiledZeroDegreePack;Object.keys(m).forEach(function(v){var E=a.idToDummyNode[v],p=E.paddingLeft,I=E.paddingTop,w=E.labelMarginLeft,R=E.labelMarginTop;a.adjustLocations(m[v],E.rect.x,E.rect.y,p,I,w,R)})},D.prototype.getToBeTiled=function(a){var m=a.id;if(this.toBeTiled[m]!=null)return this.toBeTiled[m];var v=a.getChild();if(v==null)return this.toBeTiled[m]=!1,!1;for(var E=v.getNodes(),p=0;p0)return this.toBeTiled[m]=!1,!1;if(I.getChild()==null){this.toBeTiled[I.id]=!1;continue}if(!this.getToBeTiled(I))return this.toBeTiled[m]=!1,!1}return this.toBeTiled[m]=!0,!0},D.prototype.getNodeDegree=function(a){a.id;for(var m=a.getEdges(),v=0,E=0;Ek&&(k=U.rect.height)}v+=k+a.verticalPadding}},D.prototype.tileCompoundMembers=function(a,m){var v=this;this.tiledMemberPack=[],Object.keys(a).forEach(function(E){var p=m[E];if(v.tiledMemberPack[E]=v.tileNodes(a[E],p.paddingLeft+p.paddingRight),p.rect.width=v.tiledMemberPack[E].width,p.rect.height=v.tiledMemberPack[E].height,p.setCenter(v.tiledMemberPack[E].centerX,v.tiledMemberPack[E].centerY),p.labelMarginLeft=0,p.labelMarginTop=0,o.NODE_DIMENSIONS_INCLUDE_LABELS){var I=p.rect.width,w=p.rect.height;p.labelWidth&&(p.labelPosHorizontal=="left"?(p.rect.x-=p.labelWidth,p.setWidth(I+p.labelWidth),p.labelMarginLeft=p.labelWidth):p.labelPosHorizontal=="center"&&p.labelWidth>I?(p.rect.x-=(p.labelWidth-I)/2,p.setWidth(p.labelWidth),p.labelMarginLeft=(p.labelWidth-I)/2):p.labelPosHorizontal=="right"&&p.setWidth(I+p.labelWidth)),p.labelHeight&&(p.labelPosVertical=="top"?(p.rect.y-=p.labelHeight,p.setHeight(w+p.labelHeight),p.labelMarginTop=p.labelHeight):p.labelPosVertical=="center"&&p.labelHeight>w?(p.rect.y-=(p.labelHeight-w)/2,p.setHeight(p.labelHeight),p.labelMarginTop=(p.labelHeight-w)/2):p.labelPosVertical=="bottom"&&p.setHeight(w+p.labelHeight))}})},D.prototype.tileNodes=function(a,m){var v=this.tileNodesByFavoringDim(a,m,!0),E=this.tileNodesByFavoringDim(a,m,!1),p=this.getOrgRatio(v),I=this.getOrgRatio(E),w;return IR&&(R=z.getWidth())});var H=I/p,x=w/p,k=Math.pow(v-E,2)+4*(H+E)*(x+v)*p,W=(E-v+Math.sqrt(k))/(2*(H+E)),U;m?(U=Math.ceil(W),U==W&&U++):U=Math.floor(W);var et=U*(H+E)-E;return R>et&&(et=R),et+=E*2,et},D.prototype.tileNodesByFavoringDim=function(a,m,v){var E=o.TILING_PADDING_VERTICAL,p=o.TILING_PADDING_HORIZONTAL,I=o.TILING_COMPARE_BY,w={rows:[],rowWidth:[],rowHeight:[],width:0,height:m,verticalPadding:E,horizontalPadding:p,centerX:0,centerY:0};I&&(w.idealRowWidth=this.calcIdealRowWidth(a,v));var R=function(O){return O.rect.width*O.rect.height},H=function(O,X){return R(X)-R(O)};a.sort(function(z,O){var X=H;return w.idealRowWidth?(X=I,X(z.id,O.id)):X(z,O)});for(var x=0,k=0,W=0;W0&&(w+=a.horizontalPadding),a.rowWidth[v]=w,a.width0&&(R+=a.verticalPadding);var H=0;R>a.rowHeight[v]&&(H=a.rowHeight[v],a.rowHeight[v]=R,H=a.rowHeight[v]-H),a.height+=H,a.rows[v].push(m)},D.prototype.getShortestRowIndex=function(a){for(var m=-1,v=Number.MAX_VALUE,E=0;Ev&&(m=E,v=a.rowWidth[E]);return m},D.prototype.canAddHorizontal=function(a,m,v){if(a.idealRowWidth){var E=a.rows.length-1,p=a.rowWidth[E];return p+m+a.horizontalPadding<=a.idealRowWidth}var I=this.getShortestRowIndex(a);if(I<0)return!0;var w=a.rowWidth[I];if(w+a.horizontalPadding+m<=a.width)return!0;var R=0;a.rowHeight[I]0&&(R=v+a.verticalPadding-a.rowHeight[I]);var H;a.width-w>=m+a.horizontalPadding?H=(a.height+R)/(w+m+a.horizontalPadding):H=(a.height+R)/a.width,R=v+a.verticalPadding;var x;return a.widthI&&m!=v){E.splice(-1,1),a.rows[v].push(p),a.rowWidth[m]=a.rowWidth[m]-I,a.rowWidth[v]=a.rowWidth[v]+I,a.width=a.rowWidth[instance.getLongestRowIndex(a)];for(var w=Number.MIN_VALUE,R=0;Rw&&(w=E[R].height);m>0&&(w+=a.verticalPadding);var H=a.rowHeight[m]+a.rowHeight[v];a.rowHeight[m]=w,a.rowHeight[v]0)for(var et=p;et<=I;et++)U[0]+=this.grid[et][w-1].length+this.grid[et][w].length-1;if(I0)for(var et=w;et<=R;et++)U[3]+=this.grid[p-1][et].length+this.grid[p][et].length-1;for(var z=A.MAX_VALUE,O,X,B=0;B{var f=e(551).FDLayoutNode,n=e(551).IMath;function y(h,o,c,l){f.call(this,h,o,c,l)}y.prototype=Object.create(f.prototype);for(var t in f)y[t]=f[t];y.prototype.calculateDisplacement=function(){var h=this.graphManager.getLayout();this.getChild()!=null&&this.fixedNodeWeight?(this.displacementX+=h.coolingFactor*(this.springForceX+this.repulsionForceX+this.gravitationForceX)/this.fixedNodeWeight,this.displacementY+=h.coolingFactor*(this.springForceY+this.repulsionForceY+this.gravitationForceY)/this.fixedNodeWeight):(this.displacementX+=h.coolingFactor*(this.springForceX+this.repulsionForceX+this.gravitationForceX)/this.noOfChildren,this.displacementY+=h.coolingFactor*(this.springForceY+this.repulsionForceY+this.gravitationForceY)/this.noOfChildren),Math.abs(this.displacementX)>h.coolingFactor*h.maxNodeDisplacement&&(this.displacementX=h.coolingFactor*h.maxNodeDisplacement*n.sign(this.displacementX)),Math.abs(this.displacementY)>h.coolingFactor*h.maxNodeDisplacement&&(this.displacementY=h.coolingFactor*h.maxNodeDisplacement*n.sign(this.displacementY)),this.child&&this.child.getNodes().length>0&&this.propogateDisplacementToChildren(this.displacementX,this.displacementY)},y.prototype.propogateDisplacementToChildren=function(h,o){for(var c=this.getChild().getNodes(),l,T=0;T{function f(c){if(Array.isArray(c)){for(var l=0,T=Array(c.length);l0){var Mt=0;st.forEach(function(ht){$=="horizontal"?(tt.set(ht,g.has(ht)?d[g.get(ht)]:Z.get(ht)),Mt+=tt.get(ht)):(tt.set(ht,g.has(ht)?L[g.get(ht)]:Z.get(ht)),Mt+=tt.get(ht))}),Mt=Mt/st.length,ft.forEach(function(ht){K.has(ht)||tt.set(ht,Mt)})}else{var ct=0;ft.forEach(function(ht){$=="horizontal"?ct+=g.has(ht)?d[g.get(ht)]:Z.get(ht):ct+=g.has(ht)?L[g.get(ht)]:Z.get(ht)}),ct=ct/ft.length,ft.forEach(function(ht){tt.set(ht,ct)})}});for(var wt=function(){var st=dt.shift(),Mt=b.get(st);Mt.forEach(function(ct){if(tt.get(ct.id)ht&&(ht=qt),_tWt&&(Wt=_t)}}catch(ie){At=!0,Zt=ie}finally{try{!Nt&&Gt.return&&Gt.return()}finally{if(At)throw Zt}}var ce=(Mt+ht)/2-(ct+Wt)/2,Kt=!0,te=!1,ee=void 0;try{for(var jt=ft[Symbol.iterator](),se;!(Kt=(se=jt.next()).done);Kt=!0){var re=se.value;tt.set(re,tt.get(re)+ce)}}catch(ie){te=!0,ee=ie}finally{try{!Kt&&jt.return&&jt.return()}finally{if(te)throw ee}}})}return tt},rt=function(b){var $=0,K=0,Z=0,nt=0;if(b.forEach(function(j){j.left?d[g.get(j.left)]-d[g.get(j.right)]>=0?$++:K++:L[g.get(j.top)]-L[g.get(j.bottom)]>=0?Z++:nt++}),$>K&&Z>nt)for(var ut=0;utK)for(var ot=0;otnt)for(var tt=0;tt1)l.fixedNodeConstraint.forEach(function(S,b){E[b]=[S.position.x,S.position.y],p[b]=[d[g.get(S.nodeId)],L[g.get(S.nodeId)]]}),I=!0;else if(l.alignmentConstraint)(function(){var S=0;if(l.alignmentConstraint.vertical){for(var b=l.alignmentConstraint.vertical,$=function(tt){var j=new Set;b[tt].forEach(function(yt){j.add(yt)});var dt=new Set([].concat(f(j)).filter(function(yt){return R.has(yt)})),wt=void 0;dt.size>0?wt=d[g.get(dt.values().next().value)]:wt=Q(j).x,b[tt].forEach(function(yt){E[S]=[wt,L[g.get(yt)]],p[S]=[d[g.get(yt)],L[g.get(yt)]],S++})},K=0;K0?wt=d[g.get(dt.values().next().value)]:wt=Q(j).y,Z[tt].forEach(function(yt){E[S]=[d[g.get(yt)],wt],p[S]=[d[g.get(yt)],L[g.get(yt)]],S++})},ut=0;utW&&(W=k[et].length,U=et);if(W0){var mt={x:0,y:0};l.fixedNodeConstraint.forEach(function(S,b){var $={x:d[g.get(S.nodeId)],y:L[g.get(S.nodeId)]},K=S.position,Z=V(K,$);mt.x+=Z.x,mt.y+=Z.y}),mt.x/=l.fixedNodeConstraint.length,mt.y/=l.fixedNodeConstraint.length,d.forEach(function(S,b){d[b]+=mt.x}),L.forEach(function(S,b){L[b]+=mt.y}),l.fixedNodeConstraint.forEach(function(S){d[g.get(S.nodeId)]=S.position.x,L[g.get(S.nodeId)]=S.position.y})}if(l.alignmentConstraint){if(l.alignmentConstraint.vertical)for(var xt=l.alignmentConstraint.vertical,St=function(b){var $=new Set;xt[b].forEach(function(nt){$.add(nt)});var K=new Set([].concat(f($)).filter(function(nt){return R.has(nt)})),Z=void 0;K.size>0?Z=d[g.get(K.values().next().value)]:Z=Q($).x,$.forEach(function(nt){R.has(nt)||(d[g.get(nt)]=Z)})},Vt=0;Vt0?Z=L[g.get(K.values().next().value)]:Z=Q($).y,$.forEach(function(nt){R.has(nt)||(L[g.get(nt)]=Z)})},bt=0;bt{i.exports=C}},N={};function u(i){var r=N[i];if(r!==void 0)return r.exports;var e=N[i]={exports:{}};return G[i](e,e.exports,u),e.exports}var s=u(45);return s})()})}(pe)),pe.exports}(function(M,Y){(function(G,N){M.exports=N(cr())})(Te,function(C){return(()=>{var G={658:i=>{i.exports=Object.assign!=null?Object.assign.bind(Object):function(r){for(var e=arguments.length,f=Array(e>1?e-1:0),n=1;n{var f=function(){function t(h,o){var c=[],l=!0,T=!1,g=void 0;try{for(var d=h[Symbol.iterator](),L;!(l=(L=d.next()).done)&&(c.push(L.value),!(o&&c.length===o));l=!0);}catch(F){T=!0,g=F}finally{try{!l&&d.return&&d.return()}finally{if(T)throw g}}return c}return function(h,o){if(Array.isArray(h))return h;if(Symbol.iterator in Object(h))return t(h,o);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),n=e(140).layoutBase.LinkedList,y={};y.getTopMostNodes=function(t){for(var h={},o=0;o0&&I.merge(x)});for(var w=0;w1){L=g[0],F=L.connectedEdges().length,g.forEach(function(p){p.connectedEdges().length0&&c.set("dummy"+(c.size+1),J),V},y.relocateComponent=function(t,h,o){if(!o.fixedNodeConstraint){var c=Number.POSITIVE_INFINITY,l=Number.NEGATIVE_INFINITY,T=Number.POSITIVE_INFINITY,g=Number.NEGATIVE_INFINITY;if(o.quality=="draft"){var d=!0,L=!1,F=void 0;try{for(var A=h.nodeIndexes[Symbol.iterator](),P;!(d=(P=A.next()).done);d=!0){var J=P.value,V=f(J,2),Q=V[0],D=V[1],rt=o.cy.getElementById(Q);if(rt){var a=rt.boundingBox(),m=h.xCoords[D]-a.w/2,v=h.xCoords[D]+a.w/2,E=h.yCoords[D]-a.h/2,p=h.yCoords[D]+a.h/2;ml&&(l=v),Eg&&(g=p)}}}catch(x){L=!0,F=x}finally{try{!d&&A.return&&A.return()}finally{if(L)throw F}}var I=t.x-(l+c)/2,w=t.y-(g+T)/2;h.xCoords=h.xCoords.map(function(x){return x+I}),h.yCoords=h.yCoords.map(function(x){return x+w})}else{Object.keys(h).forEach(function(x){var k=h[x],W=k.getRect().x,U=k.getRect().x+k.getRect().width,et=k.getRect().y,z=k.getRect().y+k.getRect().height;Wl&&(l=U),etg&&(g=z)});var R=t.x-(l+c)/2,H=t.y-(g+T)/2;Object.keys(h).forEach(function(x){var k=h[x];k.setCenter(k.getCenterX()+R,k.getCenterY()+H)})}}},y.calcBoundingBox=function(t,h,o,c){for(var l=Number.MAX_SAFE_INTEGER,T=Number.MIN_SAFE_INTEGER,g=Number.MAX_SAFE_INTEGER,d=Number.MIN_SAFE_INTEGER,L=void 0,F=void 0,A=void 0,P=void 0,J=t.descendants().not(":parent"),V=J.length,Q=0;QL&&(l=L),TA&&(g=A),d{var f=e(548),n=e(140).CoSELayout,y=e(140).CoSENode,t=e(140).layoutBase.PointD,h=e(140).layoutBase.DimensionD,o=e(140).layoutBase.LayoutConstants,c=e(140).layoutBase.FDLayoutConstants,l=e(140).CoSEConstants,T=function(d,L){var F=d.cy,A=d.eles,P=A.nodes(),J=A.edges(),V=void 0,Q=void 0,D=void 0,rt={};d.randomize&&(V=L.nodeIndexes,Q=L.xCoords,D=L.yCoords);var a=function(x){return typeof x=="function"},m=function(x,k){return a(x)?x(k):x},v=f.calcParentsWithoutChildren(F,A),E=function H(x,k,W,U){for(var et=k.length,z=0;z0){var q=void 0;q=W.getGraphManager().add(W.newGraph(),B),H(q,X,W,U)}}},p=function(x,k,W){for(var U=0,et=0,z=0;z0?l.DEFAULT_EDGE_LENGTH=c.DEFAULT_EDGE_LENGTH=U/et:a(d.idealEdgeLength)?l.DEFAULT_EDGE_LENGTH=c.DEFAULT_EDGE_LENGTH=50:l.DEFAULT_EDGE_LENGTH=c.DEFAULT_EDGE_LENGTH=d.idealEdgeLength,l.MIN_REPULSION_DIST=c.MIN_REPULSION_DIST=c.DEFAULT_EDGE_LENGTH/10,l.DEFAULT_RADIAL_SEPARATION=c.DEFAULT_EDGE_LENGTH)},I=function(x,k){k.fixedNodeConstraint&&(x.constraints.fixedNodeConstraint=k.fixedNodeConstraint),k.alignmentConstraint&&(x.constraints.alignmentConstraint=k.alignmentConstraint),k.relativePlacementConstraint&&(x.constraints.relativePlacementConstraint=k.relativePlacementConstraint)};d.nestingFactor!=null&&(l.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=c.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=d.nestingFactor),d.gravity!=null&&(l.DEFAULT_GRAVITY_STRENGTH=c.DEFAULT_GRAVITY_STRENGTH=d.gravity),d.numIter!=null&&(l.MAX_ITERATIONS=c.MAX_ITERATIONS=d.numIter),d.gravityRange!=null&&(l.DEFAULT_GRAVITY_RANGE_FACTOR=c.DEFAULT_GRAVITY_RANGE_FACTOR=d.gravityRange),d.gravityCompound!=null&&(l.DEFAULT_COMPOUND_GRAVITY_STRENGTH=c.DEFAULT_COMPOUND_GRAVITY_STRENGTH=d.gravityCompound),d.gravityRangeCompound!=null&&(l.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=c.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=d.gravityRangeCompound),d.initialEnergyOnIncremental!=null&&(l.DEFAULT_COOLING_FACTOR_INCREMENTAL=c.DEFAULT_COOLING_FACTOR_INCREMENTAL=d.initialEnergyOnIncremental),d.tilingCompareBy!=null&&(l.TILING_COMPARE_BY=d.tilingCompareBy),d.quality=="proof"?o.QUALITY=2:o.QUALITY=0,l.NODE_DIMENSIONS_INCLUDE_LABELS=c.NODE_DIMENSIONS_INCLUDE_LABELS=o.NODE_DIMENSIONS_INCLUDE_LABELS=d.nodeDimensionsIncludeLabels,l.DEFAULT_INCREMENTAL=c.DEFAULT_INCREMENTAL=o.DEFAULT_INCREMENTAL=!d.randomize,l.ANIMATE=c.ANIMATE=o.ANIMATE=d.animate,l.TILE=d.tile,l.TILING_PADDING_VERTICAL=typeof d.tilingPaddingVertical=="function"?d.tilingPaddingVertical.call():d.tilingPaddingVertical,l.TILING_PADDING_HORIZONTAL=typeof d.tilingPaddingHorizontal=="function"?d.tilingPaddingHorizontal.call():d.tilingPaddingHorizontal,l.DEFAULT_INCREMENTAL=c.DEFAULT_INCREMENTAL=o.DEFAULT_INCREMENTAL=!0,l.PURE_INCREMENTAL=!d.randomize,o.DEFAULT_UNIFORM_LEAF_NODE_SIZES=d.uniformNodeDimensions,d.step=="transformed"&&(l.TRANSFORM_ON_CONSTRAINT_HANDLING=!0,l.ENFORCE_CONSTRAINTS=!1,l.APPLY_LAYOUT=!1),d.step=="enforced"&&(l.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,l.ENFORCE_CONSTRAINTS=!0,l.APPLY_LAYOUT=!1),d.step=="cose"&&(l.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,l.ENFORCE_CONSTRAINTS=!1,l.APPLY_LAYOUT=!0),d.step=="all"&&(d.randomize?l.TRANSFORM_ON_CONSTRAINT_HANDLING=!0:l.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,l.ENFORCE_CONSTRAINTS=!0,l.APPLY_LAYOUT=!0),d.fixedNodeConstraint||d.alignmentConstraint||d.relativePlacementConstraint?l.TREE_REDUCTION_ON_INCREMENTAL=!1:l.TREE_REDUCTION_ON_INCREMENTAL=!0;var w=new n,R=w.newGraphManager();return E(R.addRoot(),f.getTopMostNodes(P),w,d),p(w,R,J),I(w,d),w.runLayout(),rt};i.exports={coseLayout:T}},212:(i,r,e)=>{var f=function(){function d(L,F){for(var A=0;A0)if(v){var I=t.getTopMostNodes(A.eles.nodes());if(D=t.connectComponents(P,A.eles,I),D.forEach(function(vt){var it=vt.boundingBox();rt.push({x:it.x1+it.w/2,y:it.y1+it.h/2})}),A.randomize&&D.forEach(function(vt){A.eles=vt,V.push(o(A))}),A.quality=="default"||A.quality=="proof"){var w=P.collection();if(A.tile){var R=new Map,H=[],x=[],k=0,W={nodeIndexes:R,xCoords:H,yCoords:x},U=[];if(D.forEach(function(vt,it){vt.edges().length==0&&(vt.nodes().forEach(function(gt,Tt){w.merge(vt.nodes()[Tt]),gt.isParent()||(W.nodeIndexes.set(vt.nodes()[Tt].id(),k++),W.xCoords.push(vt.nodes()[0].position().x),W.yCoords.push(vt.nodes()[0].position().y))}),U.push(it))}),w.length>1){var et=w.boundingBox();rt.push({x:et.x1+et.w/2,y:et.y1+et.h/2}),D.push(w),V.push(W);for(var z=U.length-1;z>=0;z--)D.splice(U[z],1),V.splice(U[z],1),rt.splice(U[z],1)}}D.forEach(function(vt,it){A.eles=vt,Q.push(l(A,V[it])),t.relocateComponent(rt[it],Q[it],A)})}else D.forEach(function(vt,it){t.relocateComponent(rt[it],V[it],A)});var O=new Set;if(D.length>1){var X=[],B=J.filter(function(vt){return vt.css("display")=="none"});D.forEach(function(vt,it){var gt=void 0;if(A.quality=="draft"&&(gt=V[it].nodeIndexes),vt.nodes().not(B).length>0){var Tt={};Tt.edges=[],Tt.nodes=[];var Ct=void 0;vt.nodes().not(B).forEach(function(Dt){if(A.quality=="draft")if(!Dt.isParent())Ct=gt.get(Dt.id()),Tt.nodes.push({x:V[it].xCoords[Ct]-Dt.boundingbox().w/2,y:V[it].yCoords[Ct]-Dt.boundingbox().h/2,width:Dt.boundingbox().w,height:Dt.boundingbox().h});else{var mt=t.calcBoundingBox(Dt,V[it].xCoords,V[it].yCoords,gt);Tt.nodes.push({x:mt.topLeftX,y:mt.topLeftY,width:mt.width,height:mt.height})}else Q[it][Dt.id()]&&Tt.nodes.push({x:Q[it][Dt.id()].getLeft(),y:Q[it][Dt.id()].getTop(),width:Q[it][Dt.id()].getWidth(),height:Q[it][Dt.id()].getHeight()})}),vt.edges().forEach(function(Dt){var mt=Dt.source(),xt=Dt.target();if(mt.css("display")!="none"&&xt.css("display")!="none")if(A.quality=="draft"){var St=gt.get(mt.id()),Vt=gt.get(xt.id()),Xt=[],Ut=[];if(mt.isParent()){var bt=t.calcBoundingBox(mt,V[it].xCoords,V[it].yCoords,gt);Xt.push(bt.topLeftX+bt.width/2),Xt.push(bt.topLeftY+bt.height/2)}else Xt.push(V[it].xCoords[St]),Xt.push(V[it].yCoords[St]);if(xt.isParent()){var Ht=t.calcBoundingBox(xt,V[it].xCoords,V[it].yCoords,gt);Ut.push(Ht.topLeftX+Ht.width/2),Ut.push(Ht.topLeftY+Ht.height/2)}else Ut.push(V[it].xCoords[Vt]),Ut.push(V[it].yCoords[Vt]);Tt.edges.push({startX:Xt[0],startY:Xt[1],endX:Ut[0],endY:Ut[1]})}else Q[it][mt.id()]&&Q[it][xt.id()]&&Tt.edges.push({startX:Q[it][mt.id()].getCenterX(),startY:Q[it][mt.id()].getCenterY(),endX:Q[it][xt.id()].getCenterX(),endY:Q[it][xt.id()].getCenterY()})}),Tt.nodes.length>0&&(X.push(Tt),O.add(it))}});var _=m.packComponents(X,A.randomize).shifts;if(A.quality=="draft")V.forEach(function(vt,it){var gt=vt.xCoords.map(function(Ct){return Ct+_[it].dx}),Tt=vt.yCoords.map(function(Ct){return Ct+_[it].dy});vt.xCoords=gt,vt.yCoords=Tt});else{var lt=0;O.forEach(function(vt){Object.keys(Q[vt]).forEach(function(it){var gt=Q[vt][it];gt.setCenter(gt.getCenterX()+_[lt].dx,gt.getCenterY()+_[lt].dy)}),lt++})}}}else{var E=A.eles.boundingBox();if(rt.push({x:E.x1+E.w/2,y:E.y1+E.h/2}),A.randomize){var p=o(A);V.push(p)}A.quality=="default"||A.quality=="proof"?(Q.push(l(A,V[0])),t.relocateComponent(rt[0],Q[0],A)):t.relocateComponent(rt[0],V[0],A)}var q=function(it,gt){if(A.quality=="default"||A.quality=="proof"){typeof it=="number"&&(it=gt);var Tt=void 0,Ct=void 0,Dt=it.data("id");return Q.forEach(function(xt){Dt in xt&&(Tt={x:xt[Dt].getRect().getCenterX(),y:xt[Dt].getRect().getCenterY()},Ct=xt[Dt])}),A.nodeDimensionsIncludeLabels&&(Ct.labelWidth&&(Ct.labelPosHorizontal=="left"?Tt.x+=Ct.labelWidth/2:Ct.labelPosHorizontal=="right"&&(Tt.x-=Ct.labelWidth/2)),Ct.labelHeight&&(Ct.labelPosVertical=="top"?Tt.y+=Ct.labelHeight/2:Ct.labelPosVertical=="bottom"&&(Tt.y-=Ct.labelHeight/2))),Tt==null&&(Tt={x:it.position("x"),y:it.position("y")}),{x:Tt.x,y:Tt.y}}else{var mt=void 0;return V.forEach(function(xt){var St=xt.nodeIndexes.get(it.id());St!=null&&(mt={x:xt.xCoords[St],y:xt.yCoords[St]})}),mt==null&&(mt={x:it.position("x"),y:it.position("y")}),{x:mt.x,y:mt.y}}};if(A.quality=="default"||A.quality=="proof"||A.randomize){var Rt=t.calcParentsWithoutChildren(P,J),Lt=J.filter(function(vt){return vt.css("display")=="none"});A.eles=J.not(Lt),J.nodes().not(":parent").not(Lt).layoutPositions(F,A,q),Rt.length>0&&Rt.forEach(function(vt){vt.position(q(vt))})}else console.log("If randomize option is set to false, then quality option must be 'default' or 'proof'.")}}]),d}();i.exports=g},657:(i,r,e)=>{var f=e(548),n=e(140).layoutBase.Matrix,y=e(140).layoutBase.SVD,t=function(o){var c=o.cy,l=o.eles,T=l.nodes(),g=l.nodes(":parent"),d=new Map,L=new Map,F=new Map,A=[],P=[],J=[],V=[],Q=[],D=[],rt=[],a=[],m=void 0,v=1e8,E=1e-9,p=o.piTol,I=o.samplingType,w=o.nodeSeparation,R=void 0,H=function(){for(var b=0,$=0,K=!1;$=nt;){ot=Z[nt++];for(var It=A[ot],ft=0;ftdt&&(dt=Q[Mt],wt=Mt)}return wt},k=function(b){var $=void 0;if(b){$=Math.floor(Math.random()*m);for(var Z=0;Z=1)break;j=tt}for(var yt=0;yt=1)break;j=tt}for(var ft=0;ft0&&($.isParent()?A[b].push(F.get($.id())):A[b].push($.id()))})});var Lt=function(b){var $=L.get(b),K=void 0;d.get(b).forEach(function(Z){c.getElementById(Z).isParent()?K=F.get(Z):K=Z,A[$].push(K),A[L.get(K)].push(b)})},vt=!0,it=!1,gt=void 0;try{for(var Tt=d.keys()[Symbol.iterator](),Ct;!(vt=(Ct=Tt.next()).done);vt=!0){var Dt=Ct.value;Lt(Dt)}}catch(S){it=!0,gt=S}finally{try{!vt&&Tt.return&&Tt.return()}finally{if(it)throw gt}}m=L.size;var mt=void 0;if(m>2){R=m{var f=e(212),n=function(t){t&&t("layout","fcose",f)};typeof cytoscape<"u"&&n(cytoscape),i.exports=n},140:i=>{i.exports=C}},N={};function u(i){var r=N[i];if(r!==void 0)return r.exports;var e=N[i]={exports:{}};return G[i](e,e.exports,u),e.exports}var s=u(579);return s})()})})(be);var ur=be.exports;const gr=ke(ur);var xe={L:"left",R:"right",T:"top",B:"bottom"},Ie={L:at(M=>`${M},${M/2} 0,${M} 0,0`,"L"),R:at(M=>`0,${M/2} ${M},0 ${M},${M}`,"R"),T:at(M=>`0,0 ${M},0 ${M/2},${M}`,"T"),B:at(M=>`${M/2},0 ${M},${M} 0,${M}`,"B")},he={L:at((M,Y)=>M-Y+2,"L"),R:at((M,Y)=>M-2,"R"),T:at((M,Y)=>M-Y+2,"T"),B:at((M,Y)=>M-2,"B")},dr=at(function(M){return zt(M)?M==="L"?"R":"L":M==="T"?"B":"T"},"getOppositeArchitectureDirection"),Re=at(function(M){const Y=M;return Y==="L"||Y==="R"||Y==="T"||Y==="B"},"isArchitectureDirection"),zt=at(function(M){const Y=M;return Y==="L"||Y==="R"},"isArchitectureDirectionX"),Qt=at(function(M){const Y=M;return Y==="T"||Y==="B"},"isArchitectureDirectionY"),Pe=at(function(M,Y){const C=zt(M)&&Qt(Y),G=Qt(M)&&zt(Y);return C||G},"isArchitectureDirectionXY"),vr=at(function(M){const Y=M[0],C=M[1],G=zt(Y)&&Qt(C),N=Qt(Y)&&zt(C);return G||N},"isArchitecturePairXY"),pr=at(function(M){return M!=="LL"&&M!=="RR"&&M!=="TT"&&M!=="BB"},"isValidArchitectureDirectionPair"),me=at(function(M,Y){const C=`${M}${Y}`;return pr(C)?C:void 0},"getArchitectureDirectionPair"),yr=at(function([M,Y],C){const G=C[0],N=C[1];return zt(G)?Qt(N)?[M+(G==="L"?-1:1),Y+(N==="T"?1:-1)]:[M+(G==="L"?-1:1),Y]:zt(N)?[M+(N==="L"?1:-1),Y+(G==="T"?1:-1)]:[M,Y+(G==="T"?1:-1)]},"shiftPositionByArchitectureDirectionPair"),Er=at(function(M){return M==="LT"||M==="TL"?[1,1]:M==="BL"||M==="LB"?[1,-1]:M==="BR"||M==="RB"?[-1,-1]:[-1,1]},"getArchitectureDirectionXYFactors"),mr=at(function(M){return M.type==="service"},"isArchitectureService"),Tr=at(function(M){return M.type==="junction"},"isArchitectureJunction"),Ge=at(M=>M.data(),"edgeData"),ae=at(M=>M.data(),"nodeData"),Ue=qe.architecture,pt=new hr(()=>({nodes:{},groups:{},edges:[],registeredIds:{},config:Ue,dataStructures:void 0,elements:{}})),Nr=at(()=>{pt.reset(),nr()},"clear"),Lr=at(function({id:M,icon:Y,in:C,title:G,iconText:N}){if(pt.records.registeredIds[M]!==void 0)throw new Error(`The service id [${M}] is already in use by another ${pt.records.registeredIds[M]}`);if(C!==void 0){if(M===C)throw new Error(`The service [${M}] cannot be placed within itself`);if(pt.records.registeredIds[C]===void 0)throw new Error(`The service [${M}]'s parent does not exist. Please make sure the parent is created before this service`);if(pt.records.registeredIds[C]==="node")throw new Error(`The service [${M}]'s parent is not a group`)}pt.records.registeredIds[M]="node",pt.records.nodes[M]={id:M,type:"service",icon:Y,iconText:N,title:G,edges:[],in:C}},"addService"),Mr=at(()=>Object.values(pt.records.nodes).filter(mr),"getServices"),Ar=at(function({id:M,in:Y}){pt.records.registeredIds[M]="node",pt.records.nodes[M]={id:M,type:"junction",edges:[],in:Y}},"addJunction"),Cr=at(()=>Object.values(pt.records.nodes).filter(Tr),"getJunctions"),wr=at(()=>Object.values(pt.records.nodes),"getNodes"),Or=at(M=>pt.records.nodes[M],"getNode"),Dr=at(function({id:M,icon:Y,in:C,title:G}){if(pt.records.registeredIds[M]!==void 0)throw new Error(`The group id [${M}] is already in use by another ${pt.records.registeredIds[M]}`);if(C!==void 0){if(M===C)throw new Error(`The group [${M}] cannot be placed within itself`);if(pt.records.registeredIds[C]===void 0)throw new Error(`The group [${M}]'s parent does not exist. Please make sure the parent is created before this group`);if(pt.records.registeredIds[C]==="node")throw new Error(`The group [${M}]'s parent is not a group`)}pt.records.registeredIds[M]="group",pt.records.groups[M]={id:M,icon:Y,title:G,in:C}},"addGroup"),xr=at(()=>Object.values(pt.records.groups),"getGroups"),Ir=at(function({lhsId:M,rhsId:Y,lhsDir:C,rhsDir:G,lhsInto:N,rhsInto:u,lhsGroup:s,rhsGroup:i,title:r}){if(!Re(C))throw new Error(`Invalid direction given for left hand side of edge ${M}--${Y}. Expected (L,R,T,B) got ${C}`);if(!Re(G))throw new Error(`Invalid direction given for right hand side of edge ${M}--${Y}. Expected (L,R,T,B) got ${G}`);if(pt.records.nodes[M]===void 0&&pt.records.groups[M]===void 0)throw new Error(`The left-hand id [${M}] does not yet exist. Please create the service/group before declaring an edge to it.`);if(pt.records.nodes[Y]===void 0&&pt.records.groups[M]===void 0)throw new Error(`The right-hand id [${Y}] does not yet exist. Please create the service/group before declaring an edge to it.`);const e=pt.records.nodes[M].in,f=pt.records.nodes[Y].in;if(s&&e&&f&&e==f)throw new Error(`The left-hand id [${M}] is modified to traverse the group boundary, but the edge does not pass through two groups.`);if(i&&e&&f&&e==f)throw new Error(`The right-hand id [${Y}] is modified to traverse the group boundary, but the edge does not pass through two groups.`);const n={lhsId:M,lhsDir:C,lhsInto:N,lhsGroup:s,rhsId:Y,rhsDir:G,rhsInto:u,rhsGroup:i,title:r};pt.records.edges.push(n),pt.records.nodes[M]&&pt.records.nodes[Y]&&(pt.records.nodes[M].edges.push(pt.records.edges[pt.records.edges.length-1]),pt.records.nodes[Y].edges.push(pt.records.edges[pt.records.edges.length-1]))},"addEdge"),Rr=at(()=>pt.records.edges,"getEdges"),Sr=at(()=>{if(pt.records.dataStructures===void 0){const M=Object.entries(pt.records.nodes).reduce((s,[i,r])=>(s[i]=r.edges.reduce((e,f)=>{if(f.lhsId===i){const n=me(f.lhsDir,f.rhsDir);n&&(e[n]=f.rhsId)}else{const n=me(f.rhsDir,f.lhsDir);n&&(e[n]=f.lhsId)}return e},{}),s),{}),Y=Object.keys(M)[0],C={[Y]:1},G=Object.keys(M).reduce((s,i)=>i===Y?s:{...s,[i]:1},{}),N=at(s=>{const i={[s]:[0,0]},r=[s];for(;r.length>0;){const e=r.shift();if(e){C[e]=1,delete G[e];const f=M[e],[n,y]=i[e];Object.entries(f).forEach(([t,h])=>{C[h]||(i[h]=yr([n,y],t),r.push(h))})}}return i},"BFS"),u=[N(Y)];for(;Object.keys(G).length>0;)u.push(N(Object.keys(G)[0]));pt.records.dataStructures={adjList:M,spatialMaps:u}}return pt.records.dataStructures},"getDataStructures"),Fr=at((M,Y)=>{pt.records.elements[M]=Y},"setElementForId"),br=at(M=>pt.records.elements[M],"getElementById"),le={clear:Nr,setDiagramTitle:Ke,getDiagramTitle:je,setAccTitle:_e,getAccTitle:tr,setAccDescription:er,getAccDescription:rr,addService:Lr,getServices:Mr,addJunction:Ar,getJunctions:Cr,getNodes:wr,getNode:Or,addGroup:Dr,getGroups:xr,addEdge:Ir,getEdges:Rr,setElementForId:Fr,getElementById:br,getDataStructures:Sr};function Pt(M){const Y=fe().architecture;return Y!=null&&Y[M]?Y[M]:Ue[M]}at(Pt,"getConfigField");var Pr=at((M,Y)=>{sr(M,Y),M.groups.map(Y.addGroup),M.services.map(C=>Y.addService({...C,type:"service"})),M.junctions.map(C=>Y.addJunction({...C,type:"junction"})),M.edges.map(Y.addEdge)},"populateDb"),Gr={parse:at(async M=>{const Y=await lr("architecture",M);Se.debug(Y),Pr(Y,le)},"parse")},Ur=at(M=>` +import{aH as Te,aI as ke,B as qe,_ as at,aJ as Je,aK as Qe,p as Ke,q as je,s as _e,g as tr,c as er,b as rr,d as fe,l as Se,j as ir,v as nr,G as ar,V as or,aj as Ne,aL as Ee}from"./md-index-DwcL-8Z2.js";import{p as sr}from"./md-chunk-TMUBEWPD-CpBAAqu6.js";import{I as hr}from"./md-chunk-KFBOBJHC-Ds-66270.js";import{p as lr}from"./md-gitGraph-YCYPL57B-CGrUuPMT.js";import{c as Fe}from"./md-cytoscape.esm-CYFrXB02.js";import"./md-_baseUniq-CnE51pk_.js";import"./md-_basePickBy-DzqsyDBx.js";import"./md-clone-DQRSbwhF.js";var be={exports:{}},pe={exports:{}},ye={exports:{}},Oe;function fr(){return Oe||(Oe=1,function(M,Y){(function(G,N){M.exports=N()})(Te,function(){return function(C){var G={};function N(u){if(G[u])return G[u].exports;var s=G[u]={i:u,l:!1,exports:{}};return C[u].call(s.exports,s,s.exports,N),s.l=!0,s.exports}return N.m=C,N.c=G,N.i=function(u){return u},N.d=function(u,s,i){N.o(u,s)||Object.defineProperty(u,s,{configurable:!1,enumerable:!0,get:i})},N.n=function(u){var s=u&&u.__esModule?function(){return u.default}:function(){return u};return N.d(s,"a",s),s},N.o=function(u,s){return Object.prototype.hasOwnProperty.call(u,s)},N.p="",N(N.s=28)}([function(C,G,N){function u(){}u.QUALITY=1,u.DEFAULT_CREATE_BENDS_AS_NEEDED=!1,u.DEFAULT_INCREMENTAL=!1,u.DEFAULT_ANIMATION_ON_LAYOUT=!0,u.DEFAULT_ANIMATION_DURING_LAYOUT=!1,u.DEFAULT_ANIMATION_PERIOD=50,u.DEFAULT_UNIFORM_LEAF_NODE_SIZES=!1,u.DEFAULT_GRAPH_MARGIN=15,u.NODE_DIMENSIONS_INCLUDE_LABELS=!1,u.SIMPLE_NODE_SIZE=40,u.SIMPLE_NODE_HALF_SIZE=u.SIMPLE_NODE_SIZE/2,u.EMPTY_COMPOUND_NODE_SIZE=40,u.MIN_EDGE_LENGTH=1,u.WORLD_BOUNDARY=1e6,u.INITIAL_WORLD_BOUNDARY=u.WORLD_BOUNDARY/1e3,u.WORLD_CENTER_X=1200,u.WORLD_CENTER_Y=900,C.exports=u},function(C,G,N){var u=N(2),s=N(8),i=N(9);function r(f,n,y){u.call(this,y),this.isOverlapingSourceAndTarget=!1,this.vGraphObject=y,this.bendpoints=[],this.source=f,this.target=n}r.prototype=Object.create(u.prototype);for(var e in u)r[e]=u[e];r.prototype.getSource=function(){return this.source},r.prototype.getTarget=function(){return this.target},r.prototype.isInterGraph=function(){return this.isInterGraph},r.prototype.getLength=function(){return this.length},r.prototype.isOverlapingSourceAndTarget=function(){return this.isOverlapingSourceAndTarget},r.prototype.getBendpoints=function(){return this.bendpoints},r.prototype.getLca=function(){return this.lca},r.prototype.getSourceInLca=function(){return this.sourceInLca},r.prototype.getTargetInLca=function(){return this.targetInLca},r.prototype.getOtherEnd=function(f){if(this.source===f)return this.target;if(this.target===f)return this.source;throw"Node is not incident with this edge"},r.prototype.getOtherEndInGraph=function(f,n){for(var y=this.getOtherEnd(f),t=n.getGraphManager().getRoot();;){if(y.getOwner()==n)return y;if(y.getOwner()==t)break;y=y.getOwner().getParent()}return null},r.prototype.updateLength=function(){var f=new Array(4);this.isOverlapingSourceAndTarget=s.getIntersection(this.target.getRect(),this.source.getRect(),f),this.isOverlapingSourceAndTarget||(this.lengthX=f[0]-f[2],this.lengthY=f[1]-f[3],Math.abs(this.lengthX)<1&&(this.lengthX=i.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=i.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY))},r.prototype.updateLengthSimple=function(){this.lengthX=this.target.getCenterX()-this.source.getCenterX(),this.lengthY=this.target.getCenterY()-this.source.getCenterY(),Math.abs(this.lengthX)<1&&(this.lengthX=i.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=i.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY)},C.exports=r},function(C,G,N){function u(s){this.vGraphObject=s}C.exports=u},function(C,G,N){var u=N(2),s=N(10),i=N(13),r=N(0),e=N(16),f=N(5);function n(t,h,o,c){o==null&&c==null&&(c=h),u.call(this,c),t.graphManager!=null&&(t=t.graphManager),this.estimatedSize=s.MIN_VALUE,this.inclusionTreeDepth=s.MAX_VALUE,this.vGraphObject=c,this.edges=[],this.graphManager=t,o!=null&&h!=null?this.rect=new i(h.x,h.y,o.width,o.height):this.rect=new i}n.prototype=Object.create(u.prototype);for(var y in u)n[y]=u[y];n.prototype.getEdges=function(){return this.edges},n.prototype.getChild=function(){return this.child},n.prototype.getOwner=function(){return this.owner},n.prototype.getWidth=function(){return this.rect.width},n.prototype.setWidth=function(t){this.rect.width=t},n.prototype.getHeight=function(){return this.rect.height},n.prototype.setHeight=function(t){this.rect.height=t},n.prototype.getCenterX=function(){return this.rect.x+this.rect.width/2},n.prototype.getCenterY=function(){return this.rect.y+this.rect.height/2},n.prototype.getCenter=function(){return new f(this.rect.x+this.rect.width/2,this.rect.y+this.rect.height/2)},n.prototype.getLocation=function(){return new f(this.rect.x,this.rect.y)},n.prototype.getRect=function(){return this.rect},n.prototype.getDiagonal=function(){return Math.sqrt(this.rect.width*this.rect.width+this.rect.height*this.rect.height)},n.prototype.getHalfTheDiagonal=function(){return Math.sqrt(this.rect.height*this.rect.height+this.rect.width*this.rect.width)/2},n.prototype.setRect=function(t,h){this.rect.x=t.x,this.rect.y=t.y,this.rect.width=h.width,this.rect.height=h.height},n.prototype.setCenter=function(t,h){this.rect.x=t-this.rect.width/2,this.rect.y=h-this.rect.height/2},n.prototype.setLocation=function(t,h){this.rect.x=t,this.rect.y=h},n.prototype.moveBy=function(t,h){this.rect.x+=t,this.rect.y+=h},n.prototype.getEdgeListToNode=function(t){var h=[],o=this;return o.edges.forEach(function(c){if(c.target==t){if(c.source!=o)throw"Incorrect edge source!";h.push(c)}}),h},n.prototype.getEdgesBetween=function(t){var h=[],o=this;return o.edges.forEach(function(c){if(!(c.source==o||c.target==o))throw"Incorrect edge source and/or target";(c.target==t||c.source==t)&&h.push(c)}),h},n.prototype.getNeighborsList=function(){var t=new Set,h=this;return h.edges.forEach(function(o){if(o.source==h)t.add(o.target);else{if(o.target!=h)throw"Incorrect incidency!";t.add(o.source)}}),t},n.prototype.withChildren=function(){var t=new Set,h,o;if(t.add(this),this.child!=null)for(var c=this.child.getNodes(),l=0;lh?(this.rect.x-=(this.labelWidth-h)/2,this.setWidth(this.labelWidth)):this.labelPosHorizontal=="right"&&this.setWidth(h+this.labelWidth)),this.labelHeight&&(this.labelPosVertical=="top"?(this.rect.y-=this.labelHeight,this.setHeight(o+this.labelHeight)):this.labelPosVertical=="center"&&this.labelHeight>o?(this.rect.y-=(this.labelHeight-o)/2,this.setHeight(this.labelHeight)):this.labelPosVertical=="bottom"&&this.setHeight(o+this.labelHeight))}}},n.prototype.getInclusionTreeDepth=function(){if(this.inclusionTreeDepth==s.MAX_VALUE)throw"assert failed";return this.inclusionTreeDepth},n.prototype.transform=function(t){var h=this.rect.x;h>r.WORLD_BOUNDARY?h=r.WORLD_BOUNDARY:h<-r.WORLD_BOUNDARY&&(h=-r.WORLD_BOUNDARY);var o=this.rect.y;o>r.WORLD_BOUNDARY?o=r.WORLD_BOUNDARY:o<-r.WORLD_BOUNDARY&&(o=-r.WORLD_BOUNDARY);var c=new f(h,o),l=t.inverseTransformPoint(c);this.setLocation(l.x,l.y)},n.prototype.getLeft=function(){return this.rect.x},n.prototype.getRight=function(){return this.rect.x+this.rect.width},n.prototype.getTop=function(){return this.rect.y},n.prototype.getBottom=function(){return this.rect.y+this.rect.height},n.prototype.getParent=function(){return this.owner==null?null:this.owner.getParent()},C.exports=n},function(C,G,N){var u=N(0);function s(){}for(var i in u)s[i]=u[i];s.MAX_ITERATIONS=2500,s.DEFAULT_EDGE_LENGTH=50,s.DEFAULT_SPRING_STRENGTH=.45,s.DEFAULT_REPULSION_STRENGTH=4500,s.DEFAULT_GRAVITY_STRENGTH=.4,s.DEFAULT_COMPOUND_GRAVITY_STRENGTH=1,s.DEFAULT_GRAVITY_RANGE_FACTOR=3.8,s.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=1.5,s.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION=!0,s.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION=!0,s.DEFAULT_COOLING_FACTOR_INCREMENTAL=.3,s.COOLING_ADAPTATION_FACTOR=.33,s.ADAPTATION_LOWER_NODE_LIMIT=1e3,s.ADAPTATION_UPPER_NODE_LIMIT=5e3,s.MAX_NODE_DISPLACEMENT_INCREMENTAL=100,s.MAX_NODE_DISPLACEMENT=s.MAX_NODE_DISPLACEMENT_INCREMENTAL*3,s.MIN_REPULSION_DIST=s.DEFAULT_EDGE_LENGTH/10,s.CONVERGENCE_CHECK_PERIOD=100,s.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=.1,s.MIN_EDGE_LENGTH=1,s.GRID_CALCULATION_CHECK_PERIOD=10,C.exports=s},function(C,G,N){function u(s,i){s==null&&i==null?(this.x=0,this.y=0):(this.x=s,this.y=i)}u.prototype.getX=function(){return this.x},u.prototype.getY=function(){return this.y},u.prototype.setX=function(s){this.x=s},u.prototype.setY=function(s){this.y=s},u.prototype.getDifference=function(s){return new DimensionD(this.x-s.x,this.y-s.y)},u.prototype.getCopy=function(){return new u(this.x,this.y)},u.prototype.translate=function(s){return this.x+=s.width,this.y+=s.height,this},C.exports=u},function(C,G,N){var u=N(2),s=N(10),i=N(0),r=N(7),e=N(3),f=N(1),n=N(13),y=N(12),t=N(11);function h(c,l,T){u.call(this,T),this.estimatedSize=s.MIN_VALUE,this.margin=i.DEFAULT_GRAPH_MARGIN,this.edges=[],this.nodes=[],this.isConnected=!1,this.parent=c,l!=null&&l instanceof r?this.graphManager=l:l!=null&&l instanceof Layout&&(this.graphManager=l.graphManager)}h.prototype=Object.create(u.prototype);for(var o in u)h[o]=u[o];h.prototype.getNodes=function(){return this.nodes},h.prototype.getEdges=function(){return this.edges},h.prototype.getGraphManager=function(){return this.graphManager},h.prototype.getParent=function(){return this.parent},h.prototype.getLeft=function(){return this.left},h.prototype.getRight=function(){return this.right},h.prototype.getTop=function(){return this.top},h.prototype.getBottom=function(){return this.bottom},h.prototype.isConnected=function(){return this.isConnected},h.prototype.add=function(c,l,T){if(l==null&&T==null){var g=c;if(this.graphManager==null)throw"Graph has no graph mgr!";if(this.getNodes().indexOf(g)>-1)throw"Node already in graph!";return g.owner=this,this.getNodes().push(g),g}else{var d=c;if(!(this.getNodes().indexOf(l)>-1&&this.getNodes().indexOf(T)>-1))throw"Source or target not in graph!";if(!(l.owner==T.owner&&l.owner==this))throw"Both owners must be this graph!";return l.owner!=T.owner?null:(d.source=l,d.target=T,d.isInterGraph=!1,this.getEdges().push(d),l.edges.push(d),T!=l&&T.edges.push(d),d)}},h.prototype.remove=function(c){var l=c;if(c instanceof e){if(l==null)throw"Node is null!";if(!(l.owner!=null&&l.owner==this))throw"Owner graph is invalid!";if(this.graphManager==null)throw"Owner graph manager is invalid!";for(var T=l.edges.slice(),g,d=T.length,L=0;L-1&&P>-1))throw"Source and/or target doesn't know this edge!";g.source.edges.splice(A,1),g.target!=g.source&&g.target.edges.splice(P,1);var F=g.source.owner.getEdges().indexOf(g);if(F==-1)throw"Not in owner's edge list!";g.source.owner.getEdges().splice(F,1)}},h.prototype.updateLeftTop=function(){for(var c=s.MAX_VALUE,l=s.MAX_VALUE,T,g,d,L=this.getNodes(),F=L.length,A=0;AT&&(c=T),l>g&&(l=g)}return c==s.MAX_VALUE?null:(L[0].getParent().paddingLeft!=null?d=L[0].getParent().paddingLeft:d=this.margin,this.left=l-d,this.top=c-d,new y(this.left,this.top))},h.prototype.updateBounds=function(c){for(var l=s.MAX_VALUE,T=-s.MAX_VALUE,g=s.MAX_VALUE,d=-s.MAX_VALUE,L,F,A,P,J,V=this.nodes,Q=V.length,D=0;DL&&(l=L),TA&&(g=A),dL&&(l=L),TA&&(g=A),d=this.nodes.length){var Q=0;T.forEach(function(D){D.owner==c&&Q++}),Q==this.nodes.length&&(this.isConnected=!0)}},C.exports=h},function(C,G,N){var u,s=N(1);function i(r){u=N(6),this.layout=r,this.graphs=[],this.edges=[]}i.prototype.addRoot=function(){var r=this.layout.newGraph(),e=this.layout.newNode(null),f=this.add(r,e);return this.setRootGraph(f),this.rootGraph},i.prototype.add=function(r,e,f,n,y){if(f==null&&n==null&&y==null){if(r==null)throw"Graph is null!";if(e==null)throw"Parent node is null!";if(this.graphs.indexOf(r)>-1)throw"Graph already in this graph mgr!";if(this.graphs.push(r),r.parent!=null)throw"Already has a parent!";if(e.child!=null)throw"Already has a child!";return r.parent=e,e.child=r,r}else{y=f,n=e,f=r;var t=n.getOwner(),h=y.getOwner();if(!(t!=null&&t.getGraphManager()==this))throw"Source not in this graph mgr!";if(!(h!=null&&h.getGraphManager()==this))throw"Target not in this graph mgr!";if(t==h)return f.isInterGraph=!1,t.add(f,n,y);if(f.isInterGraph=!0,f.source=n,f.target=y,this.edges.indexOf(f)>-1)throw"Edge already in inter-graph edge list!";if(this.edges.push(f),!(f.source!=null&&f.target!=null))throw"Edge source and/or target is null!";if(!(f.source.edges.indexOf(f)==-1&&f.target.edges.indexOf(f)==-1))throw"Edge already in source and/or target incidency list!";return f.source.edges.push(f),f.target.edges.push(f),f}},i.prototype.remove=function(r){if(r instanceof u){var e=r;if(e.getGraphManager()!=this)throw"Graph not in this graph mgr";if(!(e==this.rootGraph||e.parent!=null&&e.parent.graphManager==this))throw"Invalid parent node!";var f=[];f=f.concat(e.getEdges());for(var n,y=f.length,t=0;t=r.getRight()?e[0]+=Math.min(r.getX()-i.getX(),i.getRight()-r.getRight()):r.getX()<=i.getX()&&r.getRight()>=i.getRight()&&(e[0]+=Math.min(i.getX()-r.getX(),r.getRight()-i.getRight())),i.getY()<=r.getY()&&i.getBottom()>=r.getBottom()?e[1]+=Math.min(r.getY()-i.getY(),i.getBottom()-r.getBottom()):r.getY()<=i.getY()&&r.getBottom()>=i.getBottom()&&(e[1]+=Math.min(i.getY()-r.getY(),r.getBottom()-i.getBottom()));var y=Math.abs((r.getCenterY()-i.getCenterY())/(r.getCenterX()-i.getCenterX()));r.getCenterY()===i.getCenterY()&&r.getCenterX()===i.getCenterX()&&(y=1);var t=y*e[0],h=e[1]/y;e[0]t)return e[0]=f,e[1]=o,e[2]=y,e[3]=V,!1;if(ny)return e[0]=h,e[1]=n,e[2]=P,e[3]=t,!1;if(fy?(e[0]=l,e[1]=T,a=!0):(e[0]=c,e[1]=o,a=!0):v===p&&(f>y?(e[0]=h,e[1]=o,a=!0):(e[0]=g,e[1]=T,a=!0)),-E===p?y>f?(e[2]=J,e[3]=V,m=!0):(e[2]=P,e[3]=A,m=!0):E===p&&(y>f?(e[2]=F,e[3]=A,m=!0):(e[2]=Q,e[3]=V,m=!0)),a&&m)return!1;if(f>y?n>t?(I=this.getCardinalDirection(v,p,4),w=this.getCardinalDirection(E,p,2)):(I=this.getCardinalDirection(-v,p,3),w=this.getCardinalDirection(-E,p,1)):n>t?(I=this.getCardinalDirection(-v,p,1),w=this.getCardinalDirection(-E,p,3)):(I=this.getCardinalDirection(v,p,2),w=this.getCardinalDirection(E,p,4)),!a)switch(I){case 1:H=o,R=f+-L/p,e[0]=R,e[1]=H;break;case 2:R=g,H=n+d*p,e[0]=R,e[1]=H;break;case 3:H=T,R=f+L/p,e[0]=R,e[1]=H;break;case 4:R=l,H=n+-d*p,e[0]=R,e[1]=H;break}if(!m)switch(w){case 1:k=A,x=y+-rt/p,e[2]=x,e[3]=k;break;case 2:x=Q,k=t+D*p,e[2]=x,e[3]=k;break;case 3:k=V,x=y+rt/p,e[2]=x,e[3]=k;break;case 4:x=J,k=t+-D*p,e[2]=x,e[3]=k;break}}return!1},s.getCardinalDirection=function(i,r,e){return i>r?e:1+e%4},s.getIntersection=function(i,r,e,f){if(f==null)return this.getIntersection2(i,r,e);var n=i.x,y=i.y,t=r.x,h=r.y,o=e.x,c=e.y,l=f.x,T=f.y,g=void 0,d=void 0,L=void 0,F=void 0,A=void 0,P=void 0,J=void 0,V=void 0,Q=void 0;return L=h-y,A=n-t,J=t*y-n*h,F=T-c,P=o-l,V=l*c-o*T,Q=L*P-F*A,Q===0?null:(g=(A*V-P*J)/Q,d=(F*J-L*V)/Q,new u(g,d))},s.angleOfVector=function(i,r,e,f){var n=void 0;return i!==e?(n=Math.atan((f-r)/(e-i)),e=0){var T=(-o+Math.sqrt(o*o-4*h*c))/(2*h),g=(-o-Math.sqrt(o*o-4*h*c))/(2*h),d=null;return T>=0&&T<=1?[T]:g>=0&&g<=1?[g]:d}else return null},s.HALF_PI=.5*Math.PI,s.ONE_AND_HALF_PI=1.5*Math.PI,s.TWO_PI=2*Math.PI,s.THREE_PI=3*Math.PI,C.exports=s},function(C,G,N){function u(){}u.sign=function(s){return s>0?1:s<0?-1:0},u.floor=function(s){return s<0?Math.ceil(s):Math.floor(s)},u.ceil=function(s){return s<0?Math.floor(s):Math.ceil(s)},C.exports=u},function(C,G,N){function u(){}u.MAX_VALUE=2147483647,u.MIN_VALUE=-2147483648,C.exports=u},function(C,G,N){var u=function(){function n(y,t){for(var h=0;h"u"?"undefined":u(i);return i==null||r!="object"&&r!="function"},C.exports=s},function(C,G,N){function u(o){if(Array.isArray(o)){for(var c=0,l=Array(o.length);c0&&c;){for(L.push(A[0]);L.length>0&&c;){var P=L[0];L.splice(0,1),d.add(P);for(var J=P.getEdges(),g=0;g-1&&A.splice(rt,1)}d=new Set,F=new Map}}return o},h.prototype.createDummyNodesForBendpoints=function(o){for(var c=[],l=o.source,T=this.graphManager.calcLowestCommonAncestor(o.source,o.target),g=0;g0){for(var T=this.edgeToDummyNodes.get(l),g=0;g=0&&c.splice(V,1);var Q=F.getNeighborsList();Q.forEach(function(a){if(l.indexOf(a)<0){var m=T.get(a),v=m-1;v==1&&P.push(a),T.set(a,v)}})}l=l.concat(P),(c.length==1||c.length==2)&&(g=!0,d=c[0])}return d},h.prototype.setGraphManager=function(o){this.graphManager=o},C.exports=h},function(C,G,N){function u(){}u.seed=1,u.x=0,u.nextDouble=function(){return u.x=Math.sin(u.seed++)*1e4,u.x-Math.floor(u.x)},C.exports=u},function(C,G,N){var u=N(5);function s(i,r){this.lworldOrgX=0,this.lworldOrgY=0,this.ldeviceOrgX=0,this.ldeviceOrgY=0,this.lworldExtX=1,this.lworldExtY=1,this.ldeviceExtX=1,this.ldeviceExtY=1}s.prototype.getWorldOrgX=function(){return this.lworldOrgX},s.prototype.setWorldOrgX=function(i){this.lworldOrgX=i},s.prototype.getWorldOrgY=function(){return this.lworldOrgY},s.prototype.setWorldOrgY=function(i){this.lworldOrgY=i},s.prototype.getWorldExtX=function(){return this.lworldExtX},s.prototype.setWorldExtX=function(i){this.lworldExtX=i},s.prototype.getWorldExtY=function(){return this.lworldExtY},s.prototype.setWorldExtY=function(i){this.lworldExtY=i},s.prototype.getDeviceOrgX=function(){return this.ldeviceOrgX},s.prototype.setDeviceOrgX=function(i){this.ldeviceOrgX=i},s.prototype.getDeviceOrgY=function(){return this.ldeviceOrgY},s.prototype.setDeviceOrgY=function(i){this.ldeviceOrgY=i},s.prototype.getDeviceExtX=function(){return this.ldeviceExtX},s.prototype.setDeviceExtX=function(i){this.ldeviceExtX=i},s.prototype.getDeviceExtY=function(){return this.ldeviceExtY},s.prototype.setDeviceExtY=function(i){this.ldeviceExtY=i},s.prototype.transformX=function(i){var r=0,e=this.lworldExtX;return e!=0&&(r=this.ldeviceOrgX+(i-this.lworldOrgX)*this.ldeviceExtX/e),r},s.prototype.transformY=function(i){var r=0,e=this.lworldExtY;return e!=0&&(r=this.ldeviceOrgY+(i-this.lworldOrgY)*this.ldeviceExtY/e),r},s.prototype.inverseTransformX=function(i){var r=0,e=this.ldeviceExtX;return e!=0&&(r=this.lworldOrgX+(i-this.ldeviceOrgX)*this.lworldExtX/e),r},s.prototype.inverseTransformY=function(i){var r=0,e=this.ldeviceExtY;return e!=0&&(r=this.lworldOrgY+(i-this.ldeviceOrgY)*this.lworldExtY/e),r},s.prototype.inverseTransformPoint=function(i){var r=new u(this.inverseTransformX(i.x),this.inverseTransformY(i.y));return r},C.exports=s},function(C,G,N){function u(t){if(Array.isArray(t)){for(var h=0,o=Array(t.length);hi.ADAPTATION_LOWER_NODE_LIMIT&&(this.coolingFactor=Math.max(this.coolingFactor*i.COOLING_ADAPTATION_FACTOR,this.coolingFactor-(t-i.ADAPTATION_LOWER_NODE_LIMIT)/(i.ADAPTATION_UPPER_NODE_LIMIT-i.ADAPTATION_LOWER_NODE_LIMIT)*this.coolingFactor*(1-i.COOLING_ADAPTATION_FACTOR))),this.maxNodeDisplacement=i.MAX_NODE_DISPLACEMENT_INCREMENTAL):(t>i.ADAPTATION_LOWER_NODE_LIMIT?this.coolingFactor=Math.max(i.COOLING_ADAPTATION_FACTOR,1-(t-i.ADAPTATION_LOWER_NODE_LIMIT)/(i.ADAPTATION_UPPER_NODE_LIMIT-i.ADAPTATION_LOWER_NODE_LIMIT)*(1-i.COOLING_ADAPTATION_FACTOR)):this.coolingFactor=1,this.initialCoolingFactor=this.coolingFactor,this.maxNodeDisplacement=i.MAX_NODE_DISPLACEMENT),this.maxIterations=Math.max(this.getAllNodes().length*5,this.maxIterations),this.displacementThresholdPerNode=3*i.DEFAULT_EDGE_LENGTH/100,this.totalDisplacementThreshold=this.displacementThresholdPerNode*this.getAllNodes().length,this.repulsionRange=this.calcRepulsionRange()},n.prototype.calcSpringForces=function(){for(var t=this.getAllEdges(),h,o=0;o0&&arguments[0]!==void 0?arguments[0]:!0,h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,o,c,l,T,g=this.getAllNodes(),d;if(this.useFRGridVariant)for(this.totalIterations%i.GRID_CALCULATION_CHECK_PERIOD==1&&t&&this.updateGrid(),d=new Set,o=0;oL||d>L)&&(t.gravitationForceX=-this.gravityConstant*l,t.gravitationForceY=-this.gravityConstant*T)):(L=h.getEstimatedSize()*this.compoundGravityRangeFactor,(g>L||d>L)&&(t.gravitationForceX=-this.gravityConstant*l*this.compoundGravityConstant,t.gravitationForceY=-this.gravityConstant*T*this.compoundGravityConstant))},n.prototype.isConverged=function(){var t,h=!1;return this.totalIterations>this.maxIterations/3&&(h=Math.abs(this.totalDisplacement-this.oldTotalDisplacement)<2),t=this.totalDisplacement=g.length||L>=g[0].length)){for(var F=0;Fn}}]),e}();C.exports=r},function(C,G,N){function u(){}u.svd=function(s){this.U=null,this.V=null,this.s=null,this.m=0,this.n=0,this.m=s.length,this.n=s[0].length;var i=Math.min(this.m,this.n);this.s=function(Nt){for(var At=[];Nt-- >0;)At.push(0);return At}(Math.min(this.m+1,this.n)),this.U=function(Nt){var At=function Zt(Gt){if(Gt.length==0)return 0;for(var $t=[],Ft=0;Ft0;)At.push(0);return At}(this.n),e=function(Nt){for(var At=[];Nt-- >0;)At.push(0);return At}(this.m),f=!0,n=Math.min(this.m-1,this.n),y=Math.max(0,Math.min(this.n-2,this.m)),t=0;t=0;E--)if(this.s[E]!==0){for(var p=E+1;p=0;W--){if(function(Nt,At){return Nt&&At}(W0;){var q=void 0,Rt=void 0;for(q=a-2;q>=-1&&q!==-1;q--)if(Math.abs(r[q])<=lt+_*(Math.abs(this.s[q])+Math.abs(this.s[q+1]))){r[q]=0;break}if(q===a-2)Rt=4;else{var Lt=void 0;for(Lt=a-1;Lt>=q&&Lt!==q;Lt--){var vt=(Lt!==a?Math.abs(r[Lt]):0)+(Lt!==q+1?Math.abs(r[Lt-1]):0);if(Math.abs(this.s[Lt])<=lt+_*vt){this.s[Lt]=0;break}}Lt===q?Rt=3:Lt===a-1?Rt=1:(Rt=2,q=Lt)}switch(q++,Rt){case 1:{var it=r[a-2];r[a-2]=0;for(var gt=a-2;gt>=q;gt--){var Tt=u.hypot(this.s[gt],it),Ct=this.s[gt]/Tt,Dt=it/Tt;this.s[gt]=Tt,gt!==q&&(it=-Dt*r[gt-1],r[gt-1]=Ct*r[gt-1]);for(var mt=0;mt=this.s[q+1]);){var Mt=this.s[q];if(this.s[q]=this.s[q+1],this.s[q+1]=Mt,qMath.abs(i)?(r=i/s,r=Math.abs(s)*Math.sqrt(1+r*r)):i!=0?(r=s/i,r=Math.abs(i)*Math.sqrt(1+r*r)):r=0,r},C.exports=u},function(C,G,N){var u=function(){function r(e,f){for(var n=0;n2&&arguments[2]!==void 0?arguments[2]:1,y=arguments.length>3&&arguments[3]!==void 0?arguments[3]:-1,t=arguments.length>4&&arguments[4]!==void 0?arguments[4]:-1;s(this,r),this.sequence1=e,this.sequence2=f,this.match_score=n,this.mismatch_penalty=y,this.gap_penalty=t,this.iMax=e.length+1,this.jMax=f.length+1,this.grid=new Array(this.iMax);for(var h=0;h=0;e--){var f=this.listeners[e];f.event===i&&f.callback===r&&this.listeners.splice(e,1)}},s.emit=function(i,r){for(var e=0;e{var G={45:(i,r,e)=>{var f={};f.layoutBase=e(551),f.CoSEConstants=e(806),f.CoSEEdge=e(767),f.CoSEGraph=e(880),f.CoSEGraphManager=e(578),f.CoSELayout=e(765),f.CoSENode=e(991),f.ConstraintHandler=e(902),i.exports=f},806:(i,r,e)=>{var f=e(551).FDLayoutConstants;function n(){}for(var y in f)n[y]=f[y];n.DEFAULT_USE_MULTI_LEVEL_SCALING=!1,n.DEFAULT_RADIAL_SEPARATION=f.DEFAULT_EDGE_LENGTH,n.DEFAULT_COMPONENT_SEPERATION=60,n.TILE=!0,n.TILING_PADDING_VERTICAL=10,n.TILING_PADDING_HORIZONTAL=10,n.TRANSFORM_ON_CONSTRAINT_HANDLING=!0,n.ENFORCE_CONSTRAINTS=!0,n.APPLY_LAYOUT=!0,n.RELAX_MOVEMENT_ON_CONSTRAINTS=!0,n.TREE_REDUCTION_ON_INCREMENTAL=!0,n.PURE_INCREMENTAL=n.DEFAULT_INCREMENTAL,i.exports=n},767:(i,r,e)=>{var f=e(551).FDLayoutEdge;function n(t,h,o){f.call(this,t,h,o)}n.prototype=Object.create(f.prototype);for(var y in f)n[y]=f[y];i.exports=n},880:(i,r,e)=>{var f=e(551).LGraph;function n(t,h,o){f.call(this,t,h,o)}n.prototype=Object.create(f.prototype);for(var y in f)n[y]=f[y];i.exports=n},578:(i,r,e)=>{var f=e(551).LGraphManager;function n(t){f.call(this,t)}n.prototype=Object.create(f.prototype);for(var y in f)n[y]=f[y];i.exports=n},765:(i,r,e)=>{var f=e(551).FDLayout,n=e(578),y=e(880),t=e(991),h=e(767),o=e(806),c=e(902),l=e(551).FDLayoutConstants,T=e(551).LayoutConstants,g=e(551).Point,d=e(551).PointD,L=e(551).DimensionD,F=e(551).Layout,A=e(551).Integer,P=e(551).IGeometry,J=e(551).LGraph,V=e(551).Transform,Q=e(551).LinkedList;function D(){f.call(this),this.toBeTiled={},this.constraints={}}D.prototype=Object.create(f.prototype);for(var rt in f)D[rt]=f[rt];D.prototype.newGraphManager=function(){var a=new n(this);return this.graphManager=a,a},D.prototype.newGraph=function(a){return new y(null,this.graphManager,a)},D.prototype.newNode=function(a){return new t(this.graphManager,a)},D.prototype.newEdge=function(a){return new h(null,null,a)},D.prototype.initParameters=function(){f.prototype.initParameters.call(this,arguments),this.isSubLayout||(o.DEFAULT_EDGE_LENGTH<10?this.idealEdgeLength=10:this.idealEdgeLength=o.DEFAULT_EDGE_LENGTH,this.useSmartIdealEdgeLengthCalculation=o.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION,this.gravityConstant=l.DEFAULT_GRAVITY_STRENGTH,this.compoundGravityConstant=l.DEFAULT_COMPOUND_GRAVITY_STRENGTH,this.gravityRangeFactor=l.DEFAULT_GRAVITY_RANGE_FACTOR,this.compoundGravityRangeFactor=l.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR,this.prunedNodesAll=[],this.growTreeIterations=0,this.afterGrowthIterations=0,this.isTreeGrowing=!1,this.isGrowthFinished=!1)},D.prototype.initSpringEmbedder=function(){f.prototype.initSpringEmbedder.call(this),this.coolingCycle=0,this.maxCoolingCycle=this.maxIterations/l.CONVERGENCE_CHECK_PERIOD,this.finalTemperature=.04,this.coolingAdjuster=1},D.prototype.layout=function(){var a=T.DEFAULT_CREATE_BENDS_AS_NEEDED;return a&&(this.createBendpoints(),this.graphManager.resetAllEdges()),this.level=0,this.classicLayout()},D.prototype.classicLayout=function(){if(this.nodesWithGravity=this.calculateNodesToApplyGravitationTo(),this.graphManager.setAllNodesToApplyGravitation(this.nodesWithGravity),this.calcNoOfChildrenForAllNodes(),this.graphManager.calcLowestCommonAncestors(),this.graphManager.calcInclusionTreeDepths(),this.graphManager.getRoot().calcEstimatedSize(),this.calcIdealEdgeLengths(),this.incremental){if(o.TREE_REDUCTION_ON_INCREMENTAL){this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var m=new Set(this.getAllNodes()),v=this.nodesWithGravity.filter(function(I){return m.has(I)});this.graphManager.setAllNodesToApplyGravitation(v)}}else{var a=this.getFlatForest();if(a.length>0)this.positionNodesRadially(a);else{this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var m=new Set(this.getAllNodes()),v=this.nodesWithGravity.filter(function(E){return m.has(E)});this.graphManager.setAllNodesToApplyGravitation(v),this.positionNodesRandomly()}}return Object.keys(this.constraints).length>0&&(c.handleConstraints(this),this.initConstraintVariables()),this.initSpringEmbedder(),o.APPLY_LAYOUT&&this.runSpringEmbedder(),!0},D.prototype.tick=function(){if(this.totalIterations++,this.totalIterations===this.maxIterations&&!this.isTreeGrowing&&!this.isGrowthFinished)if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;if(this.totalIterations%l.CONVERGENCE_CHECK_PERIOD==0&&!this.isTreeGrowing&&!this.isGrowthFinished){if(this.isConverged())if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;this.coolingCycle++,this.layoutQuality==0?this.coolingAdjuster=this.coolingCycle:this.layoutQuality==1&&(this.coolingAdjuster=this.coolingCycle/3),this.coolingFactor=Math.max(this.initialCoolingFactor-Math.pow(this.coolingCycle,Math.log(100*(this.initialCoolingFactor-this.finalTemperature))/Math.log(this.maxCoolingCycle))/100*this.coolingAdjuster,this.finalTemperature),this.animationPeriod=Math.ceil(this.initialAnimationPeriod*Math.sqrt(this.coolingFactor))}if(this.isTreeGrowing){if(this.growTreeIterations%10==0)if(this.prunedNodesAll.length>0){this.graphManager.updateBounds(),this.updateGrid(),this.growTree(this.prunedNodesAll),this.graphManager.resetAllNodesToApplyGravitation();var a=new Set(this.getAllNodes()),m=this.nodesWithGravity.filter(function(p){return a.has(p)});this.graphManager.setAllNodesToApplyGravitation(m),this.graphManager.updateBounds(),this.updateGrid(),o.PURE_INCREMENTAL?this.coolingFactor=l.DEFAULT_COOLING_FACTOR_INCREMENTAL/2:this.coolingFactor=l.DEFAULT_COOLING_FACTOR_INCREMENTAL}else this.isTreeGrowing=!1,this.isGrowthFinished=!0;this.growTreeIterations++}if(this.isGrowthFinished){if(this.isConverged())return!0;this.afterGrowthIterations%10==0&&(this.graphManager.updateBounds(),this.updateGrid()),o.PURE_INCREMENTAL?this.coolingFactor=l.DEFAULT_COOLING_FACTOR_INCREMENTAL/2*((100-this.afterGrowthIterations)/100):this.coolingFactor=l.DEFAULT_COOLING_FACTOR_INCREMENTAL*((100-this.afterGrowthIterations)/100),this.afterGrowthIterations++}var v=!this.isTreeGrowing&&!this.isGrowthFinished,E=this.growTreeIterations%10==1&&this.isTreeGrowing||this.afterGrowthIterations%10==1&&this.isGrowthFinished;return this.totalDisplacement=0,this.graphManager.updateBounds(),this.calcSpringForces(),this.calcRepulsionForces(v,E),this.calcGravitationalForces(),this.moveNodes(),this.animate(),!1},D.prototype.getPositionsData=function(){for(var a=this.graphManager.getAllNodes(),m={},v=0;v0&&this.updateDisplacements();for(var v=0;v0&&(E.fixedNodeWeight=I)}}if(this.constraints.relativePlacementConstraint){var w=new Map,R=new Map;if(this.dummyToNodeForVerticalAlignment=new Map,this.dummyToNodeForHorizontalAlignment=new Map,this.fixedNodesOnHorizontal=new Set,this.fixedNodesOnVertical=new Set,this.fixedNodeSet.forEach(function(O){a.fixedNodesOnHorizontal.add(O),a.fixedNodesOnVertical.add(O)}),this.constraints.alignmentConstraint){if(this.constraints.alignmentConstraint.vertical)for(var H=this.constraints.alignmentConstraint.vertical,v=0;v=2*O.length/3;_--)X=Math.floor(Math.random()*(_+1)),B=O[_],O[_]=O[X],O[X]=B;return O},this.nodesInRelativeHorizontal=[],this.nodesInRelativeVertical=[],this.nodeToRelativeConstraintMapHorizontal=new Map,this.nodeToRelativeConstraintMapVertical=new Map,this.nodeToTempPositionMapHorizontal=new Map,this.nodeToTempPositionMapVertical=new Map,this.constraints.relativePlacementConstraint.forEach(function(O){if(O.left){var X=w.has(O.left)?w.get(O.left):O.left,B=w.has(O.right)?w.get(O.right):O.right;a.nodesInRelativeHorizontal.includes(X)||(a.nodesInRelativeHorizontal.push(X),a.nodeToRelativeConstraintMapHorizontal.set(X,[]),a.dummyToNodeForVerticalAlignment.has(X)?a.nodeToTempPositionMapHorizontal.set(X,a.idToNodeMap.get(a.dummyToNodeForVerticalAlignment.get(X)[0]).getCenterX()):a.nodeToTempPositionMapHorizontal.set(X,a.idToNodeMap.get(X).getCenterX())),a.nodesInRelativeHorizontal.includes(B)||(a.nodesInRelativeHorizontal.push(B),a.nodeToRelativeConstraintMapHorizontal.set(B,[]),a.dummyToNodeForVerticalAlignment.has(B)?a.nodeToTempPositionMapHorizontal.set(B,a.idToNodeMap.get(a.dummyToNodeForVerticalAlignment.get(B)[0]).getCenterX()):a.nodeToTempPositionMapHorizontal.set(B,a.idToNodeMap.get(B).getCenterX())),a.nodeToRelativeConstraintMapHorizontal.get(X).push({right:B,gap:O.gap}),a.nodeToRelativeConstraintMapHorizontal.get(B).push({left:X,gap:O.gap})}else{var _=R.has(O.top)?R.get(O.top):O.top,lt=R.has(O.bottom)?R.get(O.bottom):O.bottom;a.nodesInRelativeVertical.includes(_)||(a.nodesInRelativeVertical.push(_),a.nodeToRelativeConstraintMapVertical.set(_,[]),a.dummyToNodeForHorizontalAlignment.has(_)?a.nodeToTempPositionMapVertical.set(_,a.idToNodeMap.get(a.dummyToNodeForHorizontalAlignment.get(_)[0]).getCenterY()):a.nodeToTempPositionMapVertical.set(_,a.idToNodeMap.get(_).getCenterY())),a.nodesInRelativeVertical.includes(lt)||(a.nodesInRelativeVertical.push(lt),a.nodeToRelativeConstraintMapVertical.set(lt,[]),a.dummyToNodeForHorizontalAlignment.has(lt)?a.nodeToTempPositionMapVertical.set(lt,a.idToNodeMap.get(a.dummyToNodeForHorizontalAlignment.get(lt)[0]).getCenterY()):a.nodeToTempPositionMapVertical.set(lt,a.idToNodeMap.get(lt).getCenterY())),a.nodeToRelativeConstraintMapVertical.get(_).push({bottom:lt,gap:O.gap}),a.nodeToRelativeConstraintMapVertical.get(lt).push({top:_,gap:O.gap})}});else{var k=new Map,W=new Map;this.constraints.relativePlacementConstraint.forEach(function(O){if(O.left){var X=w.has(O.left)?w.get(O.left):O.left,B=w.has(O.right)?w.get(O.right):O.right;k.has(X)?k.get(X).push(B):k.set(X,[B]),k.has(B)?k.get(B).push(X):k.set(B,[X])}else{var _=R.has(O.top)?R.get(O.top):O.top,lt=R.has(O.bottom)?R.get(O.bottom):O.bottom;W.has(_)?W.get(_).push(lt):W.set(_,[lt]),W.has(lt)?W.get(lt).push(_):W.set(lt,[_])}});var U=function(X,B){var _=[],lt=[],q=new Q,Rt=new Set,Lt=0;return X.forEach(function(vt,it){if(!Rt.has(it)){_[Lt]=[],lt[Lt]=!1;var gt=it;for(q.push(gt),Rt.add(gt),_[Lt].push(gt);q.length!=0;){gt=q.shift(),B.has(gt)&&(lt[Lt]=!0);var Tt=X.get(gt);Tt.forEach(function(Ct){Rt.has(Ct)||(q.push(Ct),Rt.add(Ct),_[Lt].push(Ct))})}Lt++}}),{components:_,isFixed:lt}},et=U(k,a.fixedNodesOnHorizontal);this.componentsOnHorizontal=et.components,this.fixedComponentsOnHorizontal=et.isFixed;var z=U(W,a.fixedNodesOnVertical);this.componentsOnVertical=z.components,this.fixedComponentsOnVertical=z.isFixed}}},D.prototype.updateDisplacements=function(){var a=this;if(this.constraints.fixedNodeConstraint&&this.constraints.fixedNodeConstraint.forEach(function(z){var O=a.idToNodeMap.get(z.nodeId);O.displacementX=0,O.displacementY=0}),this.constraints.alignmentConstraint){if(this.constraints.alignmentConstraint.vertical)for(var m=this.constraints.alignmentConstraint.vertical,v=0;v1){var R;for(R=0;RE&&(E=Math.floor(w.y)),I=Math.floor(w.x+o.DEFAULT_COMPONENT_SEPERATION)}this.transform(new d(T.WORLD_CENTER_X-w.x/2,T.WORLD_CENTER_Y-w.y/2))},D.radialLayout=function(a,m,v){var E=Math.max(this.maxDiagonalInTree(a),o.DEFAULT_RADIAL_SEPARATION);D.branchRadialLayout(m,null,0,359,0,E);var p=J.calculateBounds(a),I=new V;I.setDeviceOrgX(p.getMinX()),I.setDeviceOrgY(p.getMinY()),I.setWorldOrgX(v.x),I.setWorldOrgY(v.y);for(var w=0;w1;){var B=X[0];X.splice(0,1);var _=W.indexOf(B);_>=0&&W.splice(_,1),z--,U--}m!=null?O=(W.indexOf(X[0])+1)%z:O=0;for(var lt=Math.abs(E-v)/U,q=O;et!=U;q=++q%z){var Rt=W[q].getOtherEnd(a);if(Rt!=m){var Lt=(v+et*lt)%360,vt=(Lt+lt)%360;D.branchRadialLayout(Rt,a,Lt,vt,p+I,I),et++}}},D.maxDiagonalInTree=function(a){for(var m=A.MIN_VALUE,v=0;vm&&(m=p)}return m},D.prototype.calcRepulsionRange=function(){return 2*(this.level+1)*this.idealEdgeLength},D.prototype.groupZeroDegreeMembers=function(){var a=this,m={};this.memberGroups={},this.idToDummyNode={};for(var v=[],E=this.graphManager.getAllNodes(),p=0;p"u"&&(m[R]=[]),m[R]=m[R].concat(I)}Object.keys(m).forEach(function(H){if(m[H].length>1){var x="DummyCompound_"+H;a.memberGroups[x]=m[H];var k=m[H][0].getParent(),W=new t(a.graphManager);W.id=x,W.paddingLeft=k.paddingLeft||0,W.paddingRight=k.paddingRight||0,W.paddingBottom=k.paddingBottom||0,W.paddingTop=k.paddingTop||0,a.idToDummyNode[x]=W;var U=a.getGraphManager().add(a.newGraph(),W),et=k.getChild();et.add(W);for(var z=0;zp?(E.rect.x-=(E.labelWidth-p)/2,E.setWidth(E.labelWidth),E.labelMarginLeft=(E.labelWidth-p)/2):E.labelPosHorizontal=="right"&&E.setWidth(p+E.labelWidth)),E.labelHeight&&(E.labelPosVertical=="top"?(E.rect.y-=E.labelHeight,E.setHeight(I+E.labelHeight),E.labelMarginTop=E.labelHeight):E.labelPosVertical=="center"&&E.labelHeight>I?(E.rect.y-=(E.labelHeight-I)/2,E.setHeight(E.labelHeight),E.labelMarginTop=(E.labelHeight-I)/2):E.labelPosVertical=="bottom"&&E.setHeight(I+E.labelHeight))}})},D.prototype.repopulateCompounds=function(){for(var a=this.compoundOrder.length-1;a>=0;a--){var m=this.compoundOrder[a],v=m.id,E=m.paddingLeft,p=m.paddingTop,I=m.labelMarginLeft,w=m.labelMarginTop;this.adjustLocations(this.tiledMemberPack[v],m.rect.x,m.rect.y,E,p,I,w)}},D.prototype.repopulateZeroDegreeMembers=function(){var a=this,m=this.tiledZeroDegreePack;Object.keys(m).forEach(function(v){var E=a.idToDummyNode[v],p=E.paddingLeft,I=E.paddingTop,w=E.labelMarginLeft,R=E.labelMarginTop;a.adjustLocations(m[v],E.rect.x,E.rect.y,p,I,w,R)})},D.prototype.getToBeTiled=function(a){var m=a.id;if(this.toBeTiled[m]!=null)return this.toBeTiled[m];var v=a.getChild();if(v==null)return this.toBeTiled[m]=!1,!1;for(var E=v.getNodes(),p=0;p0)return this.toBeTiled[m]=!1,!1;if(I.getChild()==null){this.toBeTiled[I.id]=!1;continue}if(!this.getToBeTiled(I))return this.toBeTiled[m]=!1,!1}return this.toBeTiled[m]=!0,!0},D.prototype.getNodeDegree=function(a){a.id;for(var m=a.getEdges(),v=0,E=0;Ek&&(k=U.rect.height)}v+=k+a.verticalPadding}},D.prototype.tileCompoundMembers=function(a,m){var v=this;this.tiledMemberPack=[],Object.keys(a).forEach(function(E){var p=m[E];if(v.tiledMemberPack[E]=v.tileNodes(a[E],p.paddingLeft+p.paddingRight),p.rect.width=v.tiledMemberPack[E].width,p.rect.height=v.tiledMemberPack[E].height,p.setCenter(v.tiledMemberPack[E].centerX,v.tiledMemberPack[E].centerY),p.labelMarginLeft=0,p.labelMarginTop=0,o.NODE_DIMENSIONS_INCLUDE_LABELS){var I=p.rect.width,w=p.rect.height;p.labelWidth&&(p.labelPosHorizontal=="left"?(p.rect.x-=p.labelWidth,p.setWidth(I+p.labelWidth),p.labelMarginLeft=p.labelWidth):p.labelPosHorizontal=="center"&&p.labelWidth>I?(p.rect.x-=(p.labelWidth-I)/2,p.setWidth(p.labelWidth),p.labelMarginLeft=(p.labelWidth-I)/2):p.labelPosHorizontal=="right"&&p.setWidth(I+p.labelWidth)),p.labelHeight&&(p.labelPosVertical=="top"?(p.rect.y-=p.labelHeight,p.setHeight(w+p.labelHeight),p.labelMarginTop=p.labelHeight):p.labelPosVertical=="center"&&p.labelHeight>w?(p.rect.y-=(p.labelHeight-w)/2,p.setHeight(p.labelHeight),p.labelMarginTop=(p.labelHeight-w)/2):p.labelPosVertical=="bottom"&&p.setHeight(w+p.labelHeight))}})},D.prototype.tileNodes=function(a,m){var v=this.tileNodesByFavoringDim(a,m,!0),E=this.tileNodesByFavoringDim(a,m,!1),p=this.getOrgRatio(v),I=this.getOrgRatio(E),w;return IR&&(R=z.getWidth())});var H=I/p,x=w/p,k=Math.pow(v-E,2)+4*(H+E)*(x+v)*p,W=(E-v+Math.sqrt(k))/(2*(H+E)),U;m?(U=Math.ceil(W),U==W&&U++):U=Math.floor(W);var et=U*(H+E)-E;return R>et&&(et=R),et+=E*2,et},D.prototype.tileNodesByFavoringDim=function(a,m,v){var E=o.TILING_PADDING_VERTICAL,p=o.TILING_PADDING_HORIZONTAL,I=o.TILING_COMPARE_BY,w={rows:[],rowWidth:[],rowHeight:[],width:0,height:m,verticalPadding:E,horizontalPadding:p,centerX:0,centerY:0};I&&(w.idealRowWidth=this.calcIdealRowWidth(a,v));var R=function(O){return O.rect.width*O.rect.height},H=function(O,X){return R(X)-R(O)};a.sort(function(z,O){var X=H;return w.idealRowWidth?(X=I,X(z.id,O.id)):X(z,O)});for(var x=0,k=0,W=0;W0&&(w+=a.horizontalPadding),a.rowWidth[v]=w,a.width0&&(R+=a.verticalPadding);var H=0;R>a.rowHeight[v]&&(H=a.rowHeight[v],a.rowHeight[v]=R,H=a.rowHeight[v]-H),a.height+=H,a.rows[v].push(m)},D.prototype.getShortestRowIndex=function(a){for(var m=-1,v=Number.MAX_VALUE,E=0;Ev&&(m=E,v=a.rowWidth[E]);return m},D.prototype.canAddHorizontal=function(a,m,v){if(a.idealRowWidth){var E=a.rows.length-1,p=a.rowWidth[E];return p+m+a.horizontalPadding<=a.idealRowWidth}var I=this.getShortestRowIndex(a);if(I<0)return!0;var w=a.rowWidth[I];if(w+a.horizontalPadding+m<=a.width)return!0;var R=0;a.rowHeight[I]0&&(R=v+a.verticalPadding-a.rowHeight[I]);var H;a.width-w>=m+a.horizontalPadding?H=(a.height+R)/(w+m+a.horizontalPadding):H=(a.height+R)/a.width,R=v+a.verticalPadding;var x;return a.widthI&&m!=v){E.splice(-1,1),a.rows[v].push(p),a.rowWidth[m]=a.rowWidth[m]-I,a.rowWidth[v]=a.rowWidth[v]+I,a.width=a.rowWidth[instance.getLongestRowIndex(a)];for(var w=Number.MIN_VALUE,R=0;Rw&&(w=E[R].height);m>0&&(w+=a.verticalPadding);var H=a.rowHeight[m]+a.rowHeight[v];a.rowHeight[m]=w,a.rowHeight[v]0)for(var et=p;et<=I;et++)U[0]+=this.grid[et][w-1].length+this.grid[et][w].length-1;if(I0)for(var et=w;et<=R;et++)U[3]+=this.grid[p-1][et].length+this.grid[p][et].length-1;for(var z=A.MAX_VALUE,O,X,B=0;B{var f=e(551).FDLayoutNode,n=e(551).IMath;function y(h,o,c,l){f.call(this,h,o,c,l)}y.prototype=Object.create(f.prototype);for(var t in f)y[t]=f[t];y.prototype.calculateDisplacement=function(){var h=this.graphManager.getLayout();this.getChild()!=null&&this.fixedNodeWeight?(this.displacementX+=h.coolingFactor*(this.springForceX+this.repulsionForceX+this.gravitationForceX)/this.fixedNodeWeight,this.displacementY+=h.coolingFactor*(this.springForceY+this.repulsionForceY+this.gravitationForceY)/this.fixedNodeWeight):(this.displacementX+=h.coolingFactor*(this.springForceX+this.repulsionForceX+this.gravitationForceX)/this.noOfChildren,this.displacementY+=h.coolingFactor*(this.springForceY+this.repulsionForceY+this.gravitationForceY)/this.noOfChildren),Math.abs(this.displacementX)>h.coolingFactor*h.maxNodeDisplacement&&(this.displacementX=h.coolingFactor*h.maxNodeDisplacement*n.sign(this.displacementX)),Math.abs(this.displacementY)>h.coolingFactor*h.maxNodeDisplacement&&(this.displacementY=h.coolingFactor*h.maxNodeDisplacement*n.sign(this.displacementY)),this.child&&this.child.getNodes().length>0&&this.propogateDisplacementToChildren(this.displacementX,this.displacementY)},y.prototype.propogateDisplacementToChildren=function(h,o){for(var c=this.getChild().getNodes(),l,T=0;T{function f(c){if(Array.isArray(c)){for(var l=0,T=Array(c.length);l0){var Mt=0;st.forEach(function(ht){$=="horizontal"?(tt.set(ht,g.has(ht)?d[g.get(ht)]:Z.get(ht)),Mt+=tt.get(ht)):(tt.set(ht,g.has(ht)?L[g.get(ht)]:Z.get(ht)),Mt+=tt.get(ht))}),Mt=Mt/st.length,ft.forEach(function(ht){K.has(ht)||tt.set(ht,Mt)})}else{var ct=0;ft.forEach(function(ht){$=="horizontal"?ct+=g.has(ht)?d[g.get(ht)]:Z.get(ht):ct+=g.has(ht)?L[g.get(ht)]:Z.get(ht)}),ct=ct/ft.length,ft.forEach(function(ht){tt.set(ht,ct)})}});for(var wt=function(){var st=dt.shift(),Mt=b.get(st);Mt.forEach(function(ct){if(tt.get(ct.id)ht&&(ht=qt),_tWt&&(Wt=_t)}}catch(ie){At=!0,Zt=ie}finally{try{!Nt&&Gt.return&&Gt.return()}finally{if(At)throw Zt}}var ce=(Mt+ht)/2-(ct+Wt)/2,Kt=!0,te=!1,ee=void 0;try{for(var jt=ft[Symbol.iterator](),se;!(Kt=(se=jt.next()).done);Kt=!0){var re=se.value;tt.set(re,tt.get(re)+ce)}}catch(ie){te=!0,ee=ie}finally{try{!Kt&&jt.return&&jt.return()}finally{if(te)throw ee}}})}return tt},rt=function(b){var $=0,K=0,Z=0,nt=0;if(b.forEach(function(j){j.left?d[g.get(j.left)]-d[g.get(j.right)]>=0?$++:K++:L[g.get(j.top)]-L[g.get(j.bottom)]>=0?Z++:nt++}),$>K&&Z>nt)for(var ut=0;utK)for(var ot=0;otnt)for(var tt=0;tt1)l.fixedNodeConstraint.forEach(function(S,b){E[b]=[S.position.x,S.position.y],p[b]=[d[g.get(S.nodeId)],L[g.get(S.nodeId)]]}),I=!0;else if(l.alignmentConstraint)(function(){var S=0;if(l.alignmentConstraint.vertical){for(var b=l.alignmentConstraint.vertical,$=function(tt){var j=new Set;b[tt].forEach(function(yt){j.add(yt)});var dt=new Set([].concat(f(j)).filter(function(yt){return R.has(yt)})),wt=void 0;dt.size>0?wt=d[g.get(dt.values().next().value)]:wt=Q(j).x,b[tt].forEach(function(yt){E[S]=[wt,L[g.get(yt)]],p[S]=[d[g.get(yt)],L[g.get(yt)]],S++})},K=0;K0?wt=d[g.get(dt.values().next().value)]:wt=Q(j).y,Z[tt].forEach(function(yt){E[S]=[d[g.get(yt)],wt],p[S]=[d[g.get(yt)],L[g.get(yt)]],S++})},ut=0;utW&&(W=k[et].length,U=et);if(W0){var mt={x:0,y:0};l.fixedNodeConstraint.forEach(function(S,b){var $={x:d[g.get(S.nodeId)],y:L[g.get(S.nodeId)]},K=S.position,Z=V(K,$);mt.x+=Z.x,mt.y+=Z.y}),mt.x/=l.fixedNodeConstraint.length,mt.y/=l.fixedNodeConstraint.length,d.forEach(function(S,b){d[b]+=mt.x}),L.forEach(function(S,b){L[b]+=mt.y}),l.fixedNodeConstraint.forEach(function(S){d[g.get(S.nodeId)]=S.position.x,L[g.get(S.nodeId)]=S.position.y})}if(l.alignmentConstraint){if(l.alignmentConstraint.vertical)for(var xt=l.alignmentConstraint.vertical,St=function(b){var $=new Set;xt[b].forEach(function(nt){$.add(nt)});var K=new Set([].concat(f($)).filter(function(nt){return R.has(nt)})),Z=void 0;K.size>0?Z=d[g.get(K.values().next().value)]:Z=Q($).x,$.forEach(function(nt){R.has(nt)||(d[g.get(nt)]=Z)})},Vt=0;Vt0?Z=L[g.get(K.values().next().value)]:Z=Q($).y,$.forEach(function(nt){R.has(nt)||(L[g.get(nt)]=Z)})},bt=0;bt{i.exports=C}},N={};function u(i){var r=N[i];if(r!==void 0)return r.exports;var e=N[i]={exports:{}};return G[i](e,e.exports,u),e.exports}var s=u(45);return s})()})}(pe)),pe.exports}(function(M,Y){(function(G,N){M.exports=N(cr())})(Te,function(C){return(()=>{var G={658:i=>{i.exports=Object.assign!=null?Object.assign.bind(Object):function(r){for(var e=arguments.length,f=Array(e>1?e-1:0),n=1;n{var f=function(){function t(h,o){var c=[],l=!0,T=!1,g=void 0;try{for(var d=h[Symbol.iterator](),L;!(l=(L=d.next()).done)&&(c.push(L.value),!(o&&c.length===o));l=!0);}catch(F){T=!0,g=F}finally{try{!l&&d.return&&d.return()}finally{if(T)throw g}}return c}return function(h,o){if(Array.isArray(h))return h;if(Symbol.iterator in Object(h))return t(h,o);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),n=e(140).layoutBase.LinkedList,y={};y.getTopMostNodes=function(t){for(var h={},o=0;o0&&I.merge(x)});for(var w=0;w1){L=g[0],F=L.connectedEdges().length,g.forEach(function(p){p.connectedEdges().length0&&c.set("dummy"+(c.size+1),J),V},y.relocateComponent=function(t,h,o){if(!o.fixedNodeConstraint){var c=Number.POSITIVE_INFINITY,l=Number.NEGATIVE_INFINITY,T=Number.POSITIVE_INFINITY,g=Number.NEGATIVE_INFINITY;if(o.quality=="draft"){var d=!0,L=!1,F=void 0;try{for(var A=h.nodeIndexes[Symbol.iterator](),P;!(d=(P=A.next()).done);d=!0){var J=P.value,V=f(J,2),Q=V[0],D=V[1],rt=o.cy.getElementById(Q);if(rt){var a=rt.boundingBox(),m=h.xCoords[D]-a.w/2,v=h.xCoords[D]+a.w/2,E=h.yCoords[D]-a.h/2,p=h.yCoords[D]+a.h/2;ml&&(l=v),Eg&&(g=p)}}}catch(x){L=!0,F=x}finally{try{!d&&A.return&&A.return()}finally{if(L)throw F}}var I=t.x-(l+c)/2,w=t.y-(g+T)/2;h.xCoords=h.xCoords.map(function(x){return x+I}),h.yCoords=h.yCoords.map(function(x){return x+w})}else{Object.keys(h).forEach(function(x){var k=h[x],W=k.getRect().x,U=k.getRect().x+k.getRect().width,et=k.getRect().y,z=k.getRect().y+k.getRect().height;Wl&&(l=U),etg&&(g=z)});var R=t.x-(l+c)/2,H=t.y-(g+T)/2;Object.keys(h).forEach(function(x){var k=h[x];k.setCenter(k.getCenterX()+R,k.getCenterY()+H)})}}},y.calcBoundingBox=function(t,h,o,c){for(var l=Number.MAX_SAFE_INTEGER,T=Number.MIN_SAFE_INTEGER,g=Number.MAX_SAFE_INTEGER,d=Number.MIN_SAFE_INTEGER,L=void 0,F=void 0,A=void 0,P=void 0,J=t.descendants().not(":parent"),V=J.length,Q=0;QL&&(l=L),TA&&(g=A),d{var f=e(548),n=e(140).CoSELayout,y=e(140).CoSENode,t=e(140).layoutBase.PointD,h=e(140).layoutBase.DimensionD,o=e(140).layoutBase.LayoutConstants,c=e(140).layoutBase.FDLayoutConstants,l=e(140).CoSEConstants,T=function(d,L){var F=d.cy,A=d.eles,P=A.nodes(),J=A.edges(),V=void 0,Q=void 0,D=void 0,rt={};d.randomize&&(V=L.nodeIndexes,Q=L.xCoords,D=L.yCoords);var a=function(x){return typeof x=="function"},m=function(x,k){return a(x)?x(k):x},v=f.calcParentsWithoutChildren(F,A),E=function H(x,k,W,U){for(var et=k.length,z=0;z0){var q=void 0;q=W.getGraphManager().add(W.newGraph(),B),H(q,X,W,U)}}},p=function(x,k,W){for(var U=0,et=0,z=0;z0?l.DEFAULT_EDGE_LENGTH=c.DEFAULT_EDGE_LENGTH=U/et:a(d.idealEdgeLength)?l.DEFAULT_EDGE_LENGTH=c.DEFAULT_EDGE_LENGTH=50:l.DEFAULT_EDGE_LENGTH=c.DEFAULT_EDGE_LENGTH=d.idealEdgeLength,l.MIN_REPULSION_DIST=c.MIN_REPULSION_DIST=c.DEFAULT_EDGE_LENGTH/10,l.DEFAULT_RADIAL_SEPARATION=c.DEFAULT_EDGE_LENGTH)},I=function(x,k){k.fixedNodeConstraint&&(x.constraints.fixedNodeConstraint=k.fixedNodeConstraint),k.alignmentConstraint&&(x.constraints.alignmentConstraint=k.alignmentConstraint),k.relativePlacementConstraint&&(x.constraints.relativePlacementConstraint=k.relativePlacementConstraint)};d.nestingFactor!=null&&(l.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=c.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=d.nestingFactor),d.gravity!=null&&(l.DEFAULT_GRAVITY_STRENGTH=c.DEFAULT_GRAVITY_STRENGTH=d.gravity),d.numIter!=null&&(l.MAX_ITERATIONS=c.MAX_ITERATIONS=d.numIter),d.gravityRange!=null&&(l.DEFAULT_GRAVITY_RANGE_FACTOR=c.DEFAULT_GRAVITY_RANGE_FACTOR=d.gravityRange),d.gravityCompound!=null&&(l.DEFAULT_COMPOUND_GRAVITY_STRENGTH=c.DEFAULT_COMPOUND_GRAVITY_STRENGTH=d.gravityCompound),d.gravityRangeCompound!=null&&(l.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=c.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=d.gravityRangeCompound),d.initialEnergyOnIncremental!=null&&(l.DEFAULT_COOLING_FACTOR_INCREMENTAL=c.DEFAULT_COOLING_FACTOR_INCREMENTAL=d.initialEnergyOnIncremental),d.tilingCompareBy!=null&&(l.TILING_COMPARE_BY=d.tilingCompareBy),d.quality=="proof"?o.QUALITY=2:o.QUALITY=0,l.NODE_DIMENSIONS_INCLUDE_LABELS=c.NODE_DIMENSIONS_INCLUDE_LABELS=o.NODE_DIMENSIONS_INCLUDE_LABELS=d.nodeDimensionsIncludeLabels,l.DEFAULT_INCREMENTAL=c.DEFAULT_INCREMENTAL=o.DEFAULT_INCREMENTAL=!d.randomize,l.ANIMATE=c.ANIMATE=o.ANIMATE=d.animate,l.TILE=d.tile,l.TILING_PADDING_VERTICAL=typeof d.tilingPaddingVertical=="function"?d.tilingPaddingVertical.call():d.tilingPaddingVertical,l.TILING_PADDING_HORIZONTAL=typeof d.tilingPaddingHorizontal=="function"?d.tilingPaddingHorizontal.call():d.tilingPaddingHorizontal,l.DEFAULT_INCREMENTAL=c.DEFAULT_INCREMENTAL=o.DEFAULT_INCREMENTAL=!0,l.PURE_INCREMENTAL=!d.randomize,o.DEFAULT_UNIFORM_LEAF_NODE_SIZES=d.uniformNodeDimensions,d.step=="transformed"&&(l.TRANSFORM_ON_CONSTRAINT_HANDLING=!0,l.ENFORCE_CONSTRAINTS=!1,l.APPLY_LAYOUT=!1),d.step=="enforced"&&(l.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,l.ENFORCE_CONSTRAINTS=!0,l.APPLY_LAYOUT=!1),d.step=="cose"&&(l.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,l.ENFORCE_CONSTRAINTS=!1,l.APPLY_LAYOUT=!0),d.step=="all"&&(d.randomize?l.TRANSFORM_ON_CONSTRAINT_HANDLING=!0:l.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,l.ENFORCE_CONSTRAINTS=!0,l.APPLY_LAYOUT=!0),d.fixedNodeConstraint||d.alignmentConstraint||d.relativePlacementConstraint?l.TREE_REDUCTION_ON_INCREMENTAL=!1:l.TREE_REDUCTION_ON_INCREMENTAL=!0;var w=new n,R=w.newGraphManager();return E(R.addRoot(),f.getTopMostNodes(P),w,d),p(w,R,J),I(w,d),w.runLayout(),rt};i.exports={coseLayout:T}},212:(i,r,e)=>{var f=function(){function d(L,F){for(var A=0;A0)if(v){var I=t.getTopMostNodes(A.eles.nodes());if(D=t.connectComponents(P,A.eles,I),D.forEach(function(vt){var it=vt.boundingBox();rt.push({x:it.x1+it.w/2,y:it.y1+it.h/2})}),A.randomize&&D.forEach(function(vt){A.eles=vt,V.push(o(A))}),A.quality=="default"||A.quality=="proof"){var w=P.collection();if(A.tile){var R=new Map,H=[],x=[],k=0,W={nodeIndexes:R,xCoords:H,yCoords:x},U=[];if(D.forEach(function(vt,it){vt.edges().length==0&&(vt.nodes().forEach(function(gt,Tt){w.merge(vt.nodes()[Tt]),gt.isParent()||(W.nodeIndexes.set(vt.nodes()[Tt].id(),k++),W.xCoords.push(vt.nodes()[0].position().x),W.yCoords.push(vt.nodes()[0].position().y))}),U.push(it))}),w.length>1){var et=w.boundingBox();rt.push({x:et.x1+et.w/2,y:et.y1+et.h/2}),D.push(w),V.push(W);for(var z=U.length-1;z>=0;z--)D.splice(U[z],1),V.splice(U[z],1),rt.splice(U[z],1)}}D.forEach(function(vt,it){A.eles=vt,Q.push(l(A,V[it])),t.relocateComponent(rt[it],Q[it],A)})}else D.forEach(function(vt,it){t.relocateComponent(rt[it],V[it],A)});var O=new Set;if(D.length>1){var X=[],B=J.filter(function(vt){return vt.css("display")=="none"});D.forEach(function(vt,it){var gt=void 0;if(A.quality=="draft"&&(gt=V[it].nodeIndexes),vt.nodes().not(B).length>0){var Tt={};Tt.edges=[],Tt.nodes=[];var Ct=void 0;vt.nodes().not(B).forEach(function(Dt){if(A.quality=="draft")if(!Dt.isParent())Ct=gt.get(Dt.id()),Tt.nodes.push({x:V[it].xCoords[Ct]-Dt.boundingbox().w/2,y:V[it].yCoords[Ct]-Dt.boundingbox().h/2,width:Dt.boundingbox().w,height:Dt.boundingbox().h});else{var mt=t.calcBoundingBox(Dt,V[it].xCoords,V[it].yCoords,gt);Tt.nodes.push({x:mt.topLeftX,y:mt.topLeftY,width:mt.width,height:mt.height})}else Q[it][Dt.id()]&&Tt.nodes.push({x:Q[it][Dt.id()].getLeft(),y:Q[it][Dt.id()].getTop(),width:Q[it][Dt.id()].getWidth(),height:Q[it][Dt.id()].getHeight()})}),vt.edges().forEach(function(Dt){var mt=Dt.source(),xt=Dt.target();if(mt.css("display")!="none"&&xt.css("display")!="none")if(A.quality=="draft"){var St=gt.get(mt.id()),Vt=gt.get(xt.id()),Xt=[],Ut=[];if(mt.isParent()){var bt=t.calcBoundingBox(mt,V[it].xCoords,V[it].yCoords,gt);Xt.push(bt.topLeftX+bt.width/2),Xt.push(bt.topLeftY+bt.height/2)}else Xt.push(V[it].xCoords[St]),Xt.push(V[it].yCoords[St]);if(xt.isParent()){var Ht=t.calcBoundingBox(xt,V[it].xCoords,V[it].yCoords,gt);Ut.push(Ht.topLeftX+Ht.width/2),Ut.push(Ht.topLeftY+Ht.height/2)}else Ut.push(V[it].xCoords[Vt]),Ut.push(V[it].yCoords[Vt]);Tt.edges.push({startX:Xt[0],startY:Xt[1],endX:Ut[0],endY:Ut[1]})}else Q[it][mt.id()]&&Q[it][xt.id()]&&Tt.edges.push({startX:Q[it][mt.id()].getCenterX(),startY:Q[it][mt.id()].getCenterY(),endX:Q[it][xt.id()].getCenterX(),endY:Q[it][xt.id()].getCenterY()})}),Tt.nodes.length>0&&(X.push(Tt),O.add(it))}});var _=m.packComponents(X,A.randomize).shifts;if(A.quality=="draft")V.forEach(function(vt,it){var gt=vt.xCoords.map(function(Ct){return Ct+_[it].dx}),Tt=vt.yCoords.map(function(Ct){return Ct+_[it].dy});vt.xCoords=gt,vt.yCoords=Tt});else{var lt=0;O.forEach(function(vt){Object.keys(Q[vt]).forEach(function(it){var gt=Q[vt][it];gt.setCenter(gt.getCenterX()+_[lt].dx,gt.getCenterY()+_[lt].dy)}),lt++})}}}else{var E=A.eles.boundingBox();if(rt.push({x:E.x1+E.w/2,y:E.y1+E.h/2}),A.randomize){var p=o(A);V.push(p)}A.quality=="default"||A.quality=="proof"?(Q.push(l(A,V[0])),t.relocateComponent(rt[0],Q[0],A)):t.relocateComponent(rt[0],V[0],A)}var q=function(it,gt){if(A.quality=="default"||A.quality=="proof"){typeof it=="number"&&(it=gt);var Tt=void 0,Ct=void 0,Dt=it.data("id");return Q.forEach(function(xt){Dt in xt&&(Tt={x:xt[Dt].getRect().getCenterX(),y:xt[Dt].getRect().getCenterY()},Ct=xt[Dt])}),A.nodeDimensionsIncludeLabels&&(Ct.labelWidth&&(Ct.labelPosHorizontal=="left"?Tt.x+=Ct.labelWidth/2:Ct.labelPosHorizontal=="right"&&(Tt.x-=Ct.labelWidth/2)),Ct.labelHeight&&(Ct.labelPosVertical=="top"?Tt.y+=Ct.labelHeight/2:Ct.labelPosVertical=="bottom"&&(Tt.y-=Ct.labelHeight/2))),Tt==null&&(Tt={x:it.position("x"),y:it.position("y")}),{x:Tt.x,y:Tt.y}}else{var mt=void 0;return V.forEach(function(xt){var St=xt.nodeIndexes.get(it.id());St!=null&&(mt={x:xt.xCoords[St],y:xt.yCoords[St]})}),mt==null&&(mt={x:it.position("x"),y:it.position("y")}),{x:mt.x,y:mt.y}}};if(A.quality=="default"||A.quality=="proof"||A.randomize){var Rt=t.calcParentsWithoutChildren(P,J),Lt=J.filter(function(vt){return vt.css("display")=="none"});A.eles=J.not(Lt),J.nodes().not(":parent").not(Lt).layoutPositions(F,A,q),Rt.length>0&&Rt.forEach(function(vt){vt.position(q(vt))})}else console.log("If randomize option is set to false, then quality option must be 'default' or 'proof'.")}}]),d}();i.exports=g},657:(i,r,e)=>{var f=e(548),n=e(140).layoutBase.Matrix,y=e(140).layoutBase.SVD,t=function(o){var c=o.cy,l=o.eles,T=l.nodes(),g=l.nodes(":parent"),d=new Map,L=new Map,F=new Map,A=[],P=[],J=[],V=[],Q=[],D=[],rt=[],a=[],m=void 0,v=1e8,E=1e-9,p=o.piTol,I=o.samplingType,w=o.nodeSeparation,R=void 0,H=function(){for(var b=0,$=0,K=!1;$=nt;){ot=Z[nt++];for(var It=A[ot],ft=0;ftdt&&(dt=Q[Mt],wt=Mt)}return wt},k=function(b){var $=void 0;if(b){$=Math.floor(Math.random()*m);for(var Z=0;Z=1)break;j=tt}for(var yt=0;yt=1)break;j=tt}for(var ft=0;ft0&&($.isParent()?A[b].push(F.get($.id())):A[b].push($.id()))})});var Lt=function(b){var $=L.get(b),K=void 0;d.get(b).forEach(function(Z){c.getElementById(Z).isParent()?K=F.get(Z):K=Z,A[$].push(K),A[L.get(K)].push(b)})},vt=!0,it=!1,gt=void 0;try{for(var Tt=d.keys()[Symbol.iterator](),Ct;!(vt=(Ct=Tt.next()).done);vt=!0){var Dt=Ct.value;Lt(Dt)}}catch(S){it=!0,gt=S}finally{try{!vt&&Tt.return&&Tt.return()}finally{if(it)throw gt}}m=L.size;var mt=void 0;if(m>2){R=m{var f=e(212),n=function(t){t&&t("layout","fcose",f)};typeof cytoscape<"u"&&n(cytoscape),i.exports=n},140:i=>{i.exports=C}},N={};function u(i){var r=N[i];if(r!==void 0)return r.exports;var e=N[i]={exports:{}};return G[i](e,e.exports,u),e.exports}var s=u(579);return s})()})})(be);var ur=be.exports;const gr=ke(ur);var xe={L:"left",R:"right",T:"top",B:"bottom"},Ie={L:at(M=>`${M},${M/2} 0,${M} 0,0`,"L"),R:at(M=>`0,${M/2} ${M},0 ${M},${M}`,"R"),T:at(M=>`0,0 ${M},0 ${M/2},${M}`,"T"),B:at(M=>`${M/2},0 ${M},${M} 0,${M}`,"B")},he={L:at((M,Y)=>M-Y+2,"L"),R:at((M,Y)=>M-2,"R"),T:at((M,Y)=>M-Y+2,"T"),B:at((M,Y)=>M-2,"B")},dr=at(function(M){return zt(M)?M==="L"?"R":"L":M==="T"?"B":"T"},"getOppositeArchitectureDirection"),Re=at(function(M){const Y=M;return Y==="L"||Y==="R"||Y==="T"||Y==="B"},"isArchitectureDirection"),zt=at(function(M){const Y=M;return Y==="L"||Y==="R"},"isArchitectureDirectionX"),Qt=at(function(M){const Y=M;return Y==="T"||Y==="B"},"isArchitectureDirectionY"),Pe=at(function(M,Y){const C=zt(M)&&Qt(Y),G=Qt(M)&&zt(Y);return C||G},"isArchitectureDirectionXY"),vr=at(function(M){const Y=M[0],C=M[1],G=zt(Y)&&Qt(C),N=Qt(Y)&&zt(C);return G||N},"isArchitecturePairXY"),pr=at(function(M){return M!=="LL"&&M!=="RR"&&M!=="TT"&&M!=="BB"},"isValidArchitectureDirectionPair"),me=at(function(M,Y){const C=`${M}${Y}`;return pr(C)?C:void 0},"getArchitectureDirectionPair"),yr=at(function([M,Y],C){const G=C[0],N=C[1];return zt(G)?Qt(N)?[M+(G==="L"?-1:1),Y+(N==="T"?1:-1)]:[M+(G==="L"?-1:1),Y]:zt(N)?[M+(N==="L"?1:-1),Y+(G==="T"?1:-1)]:[M,Y+(G==="T"?1:-1)]},"shiftPositionByArchitectureDirectionPair"),Er=at(function(M){return M==="LT"||M==="TL"?[1,1]:M==="BL"||M==="LB"?[1,-1]:M==="BR"||M==="RB"?[-1,-1]:[-1,1]},"getArchitectureDirectionXYFactors"),mr=at(function(M){return M.type==="service"},"isArchitectureService"),Tr=at(function(M){return M.type==="junction"},"isArchitectureJunction"),Ge=at(M=>M.data(),"edgeData"),ae=at(M=>M.data(),"nodeData"),Ue=qe.architecture,pt=new hr(()=>({nodes:{},groups:{},edges:[],registeredIds:{},config:Ue,dataStructures:void 0,elements:{}})),Nr=at(()=>{pt.reset(),nr()},"clear"),Lr=at(function({id:M,icon:Y,in:C,title:G,iconText:N}){if(pt.records.registeredIds[M]!==void 0)throw new Error(`The service id [${M}] is already in use by another ${pt.records.registeredIds[M]}`);if(C!==void 0){if(M===C)throw new Error(`The service [${M}] cannot be placed within itself`);if(pt.records.registeredIds[C]===void 0)throw new Error(`The service [${M}]'s parent does not exist. Please make sure the parent is created before this service`);if(pt.records.registeredIds[C]==="node")throw new Error(`The service [${M}]'s parent is not a group`)}pt.records.registeredIds[M]="node",pt.records.nodes[M]={id:M,type:"service",icon:Y,iconText:N,title:G,edges:[],in:C}},"addService"),Mr=at(()=>Object.values(pt.records.nodes).filter(mr),"getServices"),Ar=at(function({id:M,in:Y}){pt.records.registeredIds[M]="node",pt.records.nodes[M]={id:M,type:"junction",edges:[],in:Y}},"addJunction"),Cr=at(()=>Object.values(pt.records.nodes).filter(Tr),"getJunctions"),wr=at(()=>Object.values(pt.records.nodes),"getNodes"),Or=at(M=>pt.records.nodes[M],"getNode"),Dr=at(function({id:M,icon:Y,in:C,title:G}){if(pt.records.registeredIds[M]!==void 0)throw new Error(`The group id [${M}] is already in use by another ${pt.records.registeredIds[M]}`);if(C!==void 0){if(M===C)throw new Error(`The group [${M}] cannot be placed within itself`);if(pt.records.registeredIds[C]===void 0)throw new Error(`The group [${M}]'s parent does not exist. Please make sure the parent is created before this group`);if(pt.records.registeredIds[C]==="node")throw new Error(`The group [${M}]'s parent is not a group`)}pt.records.registeredIds[M]="group",pt.records.groups[M]={id:M,icon:Y,title:G,in:C}},"addGroup"),xr=at(()=>Object.values(pt.records.groups),"getGroups"),Ir=at(function({lhsId:M,rhsId:Y,lhsDir:C,rhsDir:G,lhsInto:N,rhsInto:u,lhsGroup:s,rhsGroup:i,title:r}){if(!Re(C))throw new Error(`Invalid direction given for left hand side of edge ${M}--${Y}. Expected (L,R,T,B) got ${C}`);if(!Re(G))throw new Error(`Invalid direction given for right hand side of edge ${M}--${Y}. Expected (L,R,T,B) got ${G}`);if(pt.records.nodes[M]===void 0&&pt.records.groups[M]===void 0)throw new Error(`The left-hand id [${M}] does not yet exist. Please create the service/group before declaring an edge to it.`);if(pt.records.nodes[Y]===void 0&&pt.records.groups[M]===void 0)throw new Error(`The right-hand id [${Y}] does not yet exist. Please create the service/group before declaring an edge to it.`);const e=pt.records.nodes[M].in,f=pt.records.nodes[Y].in;if(s&&e&&f&&e==f)throw new Error(`The left-hand id [${M}] is modified to traverse the group boundary, but the edge does not pass through two groups.`);if(i&&e&&f&&e==f)throw new Error(`The right-hand id [${Y}] is modified to traverse the group boundary, but the edge does not pass through two groups.`);const n={lhsId:M,lhsDir:C,lhsInto:N,lhsGroup:s,rhsId:Y,rhsDir:G,rhsInto:u,rhsGroup:i,title:r};pt.records.edges.push(n),pt.records.nodes[M]&&pt.records.nodes[Y]&&(pt.records.nodes[M].edges.push(pt.records.edges[pt.records.edges.length-1]),pt.records.nodes[Y].edges.push(pt.records.edges[pt.records.edges.length-1]))},"addEdge"),Rr=at(()=>pt.records.edges,"getEdges"),Sr=at(()=>{if(pt.records.dataStructures===void 0){const M=Object.entries(pt.records.nodes).reduce((s,[i,r])=>(s[i]=r.edges.reduce((e,f)=>{if(f.lhsId===i){const n=me(f.lhsDir,f.rhsDir);n&&(e[n]=f.rhsId)}else{const n=me(f.rhsDir,f.lhsDir);n&&(e[n]=f.lhsId)}return e},{}),s),{}),Y=Object.keys(M)[0],C={[Y]:1},G=Object.keys(M).reduce((s,i)=>i===Y?s:{...s,[i]:1},{}),N=at(s=>{const i={[s]:[0,0]},r=[s];for(;r.length>0;){const e=r.shift();if(e){C[e]=1,delete G[e];const f=M[e],[n,y]=i[e];Object.entries(f).forEach(([t,h])=>{C[h]||(i[h]=yr([n,y],t),r.push(h))})}}return i},"BFS"),u=[N(Y)];for(;Object.keys(G).length>0;)u.push(N(Object.keys(G)[0]));pt.records.dataStructures={adjList:M,spatialMaps:u}}return pt.records.dataStructures},"getDataStructures"),Fr=at((M,Y)=>{pt.records.elements[M]=Y},"setElementForId"),br=at(M=>pt.records.elements[M],"getElementById"),le={clear:Nr,setDiagramTitle:Ke,getDiagramTitle:je,setAccTitle:_e,getAccTitle:tr,setAccDescription:er,getAccDescription:rr,addService:Lr,getServices:Mr,addJunction:Ar,getJunctions:Cr,getNodes:wr,getNode:Or,addGroup:Dr,getGroups:xr,addEdge:Ir,getEdges:Rr,setElementForId:Fr,getElementById:br,getDataStructures:Sr};function Pt(M){const Y=fe().architecture;return Y!=null&&Y[M]?Y[M]:Ue[M]}at(Pt,"getConfigField");var Pr=at((M,Y)=>{sr(M,Y),M.groups.map(Y.addGroup),M.services.map(C=>Y.addService({...C,type:"service"})),M.junctions.map(C=>Y.addJunction({...C,type:"junction"})),M.edges.map(Y.addEdge)},"populateDb"),Gr={parse:at(async M=>{const Y=await lr("architecture",M);Se.debug(Y),Pr(Y,le)},"parse")},Ur=at(M=>` .edge { stroke-width: ${M.archEdgeWidth}; stroke: ${M.archEdgeColor}; diff --git a/static/js/md-blockDiagram-ZHA2E4KO-C1NPYHYN.js b/static/js/md-blockDiagram-ZHA2E4KO-DbcgUgA7.js similarity index 99% rename from static/js/md-blockDiagram-ZHA2E4KO-C1NPYHYN.js rename to static/js/md-blockDiagram-ZHA2E4KO-DbcgUgA7.js index 86edda62d..4f51aa70c 100644 --- a/static/js/md-blockDiagram-ZHA2E4KO-C1NPYHYN.js +++ b/static/js/md-blockDiagram-ZHA2E4KO-DbcgUgA7.js @@ -1,4 +1,4 @@ -import{_ as d,d as z,l as L,j as R,ah as de,D as at,ai as Z,aj as Yt,ak as ge,u as tt,al as ue,K as pe,k as fe,v as xe,A as ye,Q as be,am as we,an as xt,e as me,i as Tt}from"./md-index-xmajgeSt.js";import{c as Le}from"./md-clone-CA7_C22Z.js";import{G as Se}from"./md-graph-BHWZZcFR.js";import{c as ve}from"./md-channel-B-dfDPA1.js";import"./md-_baseUniq-tMSgAJlj.js";var yt=function(){var e=d(function(N,x,g,u){for(g=g||{},u=N.length;u--;g[N[u]]=x);return g},"o"),t=[1,7],r=[1,13],n=[1,14],i=[1,15],a=[1,19],s=[1,16],l=[1,17],o=[1,18],f=[8,30],h=[8,21,28,29,30,31,32,40,44,47],y=[1,23],b=[1,24],m=[8,15,16,21,28,29,30,31,32,40,44,47],E=[8,15,16,21,27,28,29,30,31,32,40,44,47],D=[1,49],v={trace:d(function(){},"trace"),yy:{},symbols_:{error:2,spaceLines:3,SPACELINE:4,NL:5,separator:6,SPACE:7,EOF:8,start:9,BLOCK_DIAGRAM_KEY:10,document:11,stop:12,statement:13,link:14,LINK:15,START_LINK:16,LINK_LABEL:17,STR:18,nodeStatement:19,columnsStatement:20,SPACE_BLOCK:21,blockStatement:22,classDefStatement:23,cssClassStatement:24,styleStatement:25,node:26,SIZE:27,COLUMNS:28,"id-block":29,end:30,block:31,NODE_ID:32,nodeShapeNLabel:33,dirList:34,DIR:35,NODE_DSTART:36,NODE_DEND:37,BLOCK_ARROW_START:38,BLOCK_ARROW_END:39,classDef:40,CLASSDEF_ID:41,CLASSDEF_STYLEOPTS:42,DEFAULT:43,class:44,CLASSENTITY_IDS:45,STYLECLASS:46,style:47,STYLE_ENTITY_IDS:48,STYLE_DEFINITION_DATA:49,$accept:0,$end:1},terminals_:{2:"error",4:"SPACELINE",5:"NL",7:"SPACE",8:"EOF",10:"BLOCK_DIAGRAM_KEY",15:"LINK",16:"START_LINK",17:"LINK_LABEL",18:"STR",21:"SPACE_BLOCK",27:"SIZE",28:"COLUMNS",29:"id-block",30:"end",31:"block",32:"NODE_ID",35:"DIR",36:"NODE_DSTART",37:"NODE_DEND",38:"BLOCK_ARROW_START",39:"BLOCK_ARROW_END",40:"classDef",41:"CLASSDEF_ID",42:"CLASSDEF_STYLEOPTS",43:"DEFAULT",44:"class",45:"CLASSENTITY_IDS",46:"STYLECLASS",47:"style",48:"STYLE_ENTITY_IDS",49:"STYLE_DEFINITION_DATA"},productions_:[0,[3,1],[3,2],[3,2],[6,1],[6,1],[6,1],[9,3],[12,1],[12,1],[12,2],[12,2],[11,1],[11,2],[14,1],[14,4],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[19,3],[19,2],[19,1],[20,1],[22,4],[22,3],[26,1],[26,2],[34,1],[34,2],[33,3],[33,4],[23,3],[23,3],[24,3],[25,3]],performAction:d(function(x,g,u,w,S,c,_){var p=c.length-1;switch(S){case 4:w.getLogger().debug("Rule: separator (NL) ");break;case 5:w.getLogger().debug("Rule: separator (Space) ");break;case 6:w.getLogger().debug("Rule: separator (EOF) ");break;case 7:w.getLogger().debug("Rule: hierarchy: ",c[p-1]),w.setHierarchy(c[p-1]);break;case 8:w.getLogger().debug("Stop NL ");break;case 9:w.getLogger().debug("Stop EOF ");break;case 10:w.getLogger().debug("Stop NL2 ");break;case 11:w.getLogger().debug("Stop EOF2 ");break;case 12:w.getLogger().debug("Rule: statement: ",c[p]),typeof c[p].length=="number"?this.$=c[p]:this.$=[c[p]];break;case 13:w.getLogger().debug("Rule: statement #2: ",c[p-1]),this.$=[c[p-1]].concat(c[p]);break;case 14:w.getLogger().debug("Rule: link: ",c[p],x),this.$={edgeTypeStr:c[p],label:""};break;case 15:w.getLogger().debug("Rule: LABEL link: ",c[p-3],c[p-1],c[p]),this.$={edgeTypeStr:c[p],label:c[p-1]};break;case 18:const A=parseInt(c[p]),O=w.generateId();this.$={id:O,type:"space",label:"",width:A,children:[]};break;case 23:w.getLogger().debug("Rule: (nodeStatement link node) ",c[p-2],c[p-1],c[p]," typestr: ",c[p-1].edgeTypeStr);const X=w.edgeStrToEdgeData(c[p-1].edgeTypeStr);this.$=[{id:c[p-2].id,label:c[p-2].label,type:c[p-2].type,directions:c[p-2].directions},{id:c[p-2].id+"-"+c[p].id,start:c[p-2].id,end:c[p].id,label:c[p-1].label,type:"edge",directions:c[p].directions,arrowTypeEnd:X,arrowTypeStart:"arrow_open"},{id:c[p].id,label:c[p].label,type:w.typeStr2Type(c[p].typeStr),directions:c[p].directions}];break;case 24:w.getLogger().debug("Rule: nodeStatement (abc88 node size) ",c[p-1],c[p]),this.$={id:c[p-1].id,label:c[p-1].label,type:w.typeStr2Type(c[p-1].typeStr),directions:c[p-1].directions,widthInColumns:parseInt(c[p],10)};break;case 25:w.getLogger().debug("Rule: nodeStatement (node) ",c[p]),this.$={id:c[p].id,label:c[p].label,type:w.typeStr2Type(c[p].typeStr),directions:c[p].directions,widthInColumns:1};break;case 26:w.getLogger().debug("APA123",this?this:"na"),w.getLogger().debug("COLUMNS: ",c[p]),this.$={type:"column-setting",columns:c[p]==="auto"?-1:parseInt(c[p])};break;case 27:w.getLogger().debug("Rule: id-block statement : ",c[p-2],c[p-1]),w.generateId(),this.$={...c[p-2],type:"composite",children:c[p-1]};break;case 28:w.getLogger().debug("Rule: blockStatement : ",c[p-2],c[p-1],c[p]);const W=w.generateId();this.$={id:W,type:"composite",label:"",children:c[p-1]};break;case 29:w.getLogger().debug("Rule: node (NODE_ID separator): ",c[p]),this.$={id:c[p]};break;case 30:w.getLogger().debug("Rule: node (NODE_ID nodeShapeNLabel separator): ",c[p-1],c[p]),this.$={id:c[p-1],label:c[p].label,typeStr:c[p].typeStr,directions:c[p].directions};break;case 31:w.getLogger().debug("Rule: dirList: ",c[p]),this.$=[c[p]];break;case 32:w.getLogger().debug("Rule: dirList: ",c[p-1],c[p]),this.$=[c[p-1]].concat(c[p]);break;case 33:w.getLogger().debug("Rule: nodeShapeNLabel: ",c[p-2],c[p-1],c[p]),this.$={typeStr:c[p-2]+c[p],label:c[p-1]};break;case 34:w.getLogger().debug("Rule: BLOCK_ARROW nodeShapeNLabel: ",c[p-3],c[p-2]," #3:",c[p-1],c[p]),this.$={typeStr:c[p-3]+c[p],label:c[p-2],directions:c[p-1]};break;case 35:case 36:this.$={type:"classDef",id:c[p-1].trim(),css:c[p].trim()};break;case 37:this.$={type:"applyClass",id:c[p-1].trim(),styleClass:c[p].trim()};break;case 38:this.$={type:"applyStyles",id:c[p-1].trim(),stylesStr:c[p].trim()};break}},"anonymous"),table:[{9:1,10:[1,2]},{1:[3]},{11:3,13:4,19:5,20:6,21:t,22:8,23:9,24:10,25:11,26:12,28:r,29:n,31:i,32:a,40:s,44:l,47:o},{8:[1,20]},e(f,[2,12],{13:4,19:5,20:6,22:8,23:9,24:10,25:11,26:12,11:21,21:t,28:r,29:n,31:i,32:a,40:s,44:l,47:o}),e(h,[2,16],{14:22,15:y,16:b}),e(h,[2,17]),e(h,[2,18]),e(h,[2,19]),e(h,[2,20]),e(h,[2,21]),e(h,[2,22]),e(m,[2,25],{27:[1,25]}),e(h,[2,26]),{19:26,26:12,32:a},{11:27,13:4,19:5,20:6,21:t,22:8,23:9,24:10,25:11,26:12,28:r,29:n,31:i,32:a,40:s,44:l,47:o},{41:[1,28],43:[1,29]},{45:[1,30]},{48:[1,31]},e(E,[2,29],{33:32,36:[1,33],38:[1,34]}),{1:[2,7]},e(f,[2,13]),{26:35,32:a},{32:[2,14]},{17:[1,36]},e(m,[2,24]),{11:37,13:4,14:22,15:y,16:b,19:5,20:6,21:t,22:8,23:9,24:10,25:11,26:12,28:r,29:n,31:i,32:a,40:s,44:l,47:o},{30:[1,38]},{42:[1,39]},{42:[1,40]},{46:[1,41]},{49:[1,42]},e(E,[2,30]),{18:[1,43]},{18:[1,44]},e(m,[2,23]),{18:[1,45]},{30:[1,46]},e(h,[2,28]),e(h,[2,35]),e(h,[2,36]),e(h,[2,37]),e(h,[2,38]),{37:[1,47]},{34:48,35:D},{15:[1,50]},e(h,[2,27]),e(E,[2,33]),{39:[1,51]},{34:52,35:D,39:[2,31]},{32:[2,15]},e(E,[2,34]),{39:[2,32]}],defaultActions:{20:[2,7],23:[2,14],50:[2,15],52:[2,32]},parseError:d(function(x,g){if(g.recoverable)this.trace(x);else{var u=new Error(x);throw u.hash=g,u}},"parseError"),parse:d(function(x){var g=this,u=[0],w=[],S=[null],c=[],_=this.table,p="",A=0,O=0,X=2,W=1,ce=c.slice.call(arguments,1),M=Object.create(this.lexer),J={yy:{}};for(var gt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,gt)&&(J.yy[gt]=this.yy[gt]);M.setInput(x,J.yy),J.yy.lexer=M,J.yy.parser=this,typeof M.yylloc>"u"&&(M.yylloc={});var ut=M.yylloc;c.push(ut);var oe=M.options&&M.options.ranges;typeof J.yy.parseError=="function"?this.parseError=J.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function he(H){u.length=u.length-2*H,S.length=S.length-H,c.length=c.length-H}d(he,"popStack");function Dt(){var H;return H=w.pop()||M.lex()||W,typeof H!="number"&&(H instanceof Array&&(w=H,H=w.pop()),H=g.symbols_[H]||H),H}d(Dt,"lex");for(var Y,Q,U,pt,$={},st,q,Nt,it;;){if(Q=u[u.length-1],this.defaultActions[Q]?U=this.defaultActions[Q]:((Y===null||typeof Y>"u")&&(Y=Dt()),U=_[Q]&&_[Q][Y]),typeof U>"u"||!U.length||!U[0]){var ft="";it=[];for(st in _[Q])this.terminals_[st]&&st>X&&it.push("'"+this.terminals_[st]+"'");M.showPosition?ft="Parse error on line "+(A+1)+`: +import{_ as d,d as z,l as L,j as R,ah as de,D as at,ai as Z,aj as Yt,ak as ge,u as tt,al as ue,K as pe,k as fe,v as xe,A as ye,Q as be,am as we,an as xt,e as me,i as Tt}from"./md-index-DwcL-8Z2.js";import{c as Le}from"./md-clone-DQRSbwhF.js";import{G as Se}from"./md-graph-Dei6eZAD.js";import{c as ve}from"./md-channel-CL0exIu9.js";import"./md-_baseUniq-CnE51pk_.js";var yt=function(){var e=d(function(N,x,g,u){for(g=g||{},u=N.length;u--;g[N[u]]=x);return g},"o"),t=[1,7],r=[1,13],n=[1,14],i=[1,15],a=[1,19],s=[1,16],l=[1,17],o=[1,18],f=[8,30],h=[8,21,28,29,30,31,32,40,44,47],y=[1,23],b=[1,24],m=[8,15,16,21,28,29,30,31,32,40,44,47],E=[8,15,16,21,27,28,29,30,31,32,40,44,47],D=[1,49],v={trace:d(function(){},"trace"),yy:{},symbols_:{error:2,spaceLines:3,SPACELINE:4,NL:5,separator:6,SPACE:7,EOF:8,start:9,BLOCK_DIAGRAM_KEY:10,document:11,stop:12,statement:13,link:14,LINK:15,START_LINK:16,LINK_LABEL:17,STR:18,nodeStatement:19,columnsStatement:20,SPACE_BLOCK:21,blockStatement:22,classDefStatement:23,cssClassStatement:24,styleStatement:25,node:26,SIZE:27,COLUMNS:28,"id-block":29,end:30,block:31,NODE_ID:32,nodeShapeNLabel:33,dirList:34,DIR:35,NODE_DSTART:36,NODE_DEND:37,BLOCK_ARROW_START:38,BLOCK_ARROW_END:39,classDef:40,CLASSDEF_ID:41,CLASSDEF_STYLEOPTS:42,DEFAULT:43,class:44,CLASSENTITY_IDS:45,STYLECLASS:46,style:47,STYLE_ENTITY_IDS:48,STYLE_DEFINITION_DATA:49,$accept:0,$end:1},terminals_:{2:"error",4:"SPACELINE",5:"NL",7:"SPACE",8:"EOF",10:"BLOCK_DIAGRAM_KEY",15:"LINK",16:"START_LINK",17:"LINK_LABEL",18:"STR",21:"SPACE_BLOCK",27:"SIZE",28:"COLUMNS",29:"id-block",30:"end",31:"block",32:"NODE_ID",35:"DIR",36:"NODE_DSTART",37:"NODE_DEND",38:"BLOCK_ARROW_START",39:"BLOCK_ARROW_END",40:"classDef",41:"CLASSDEF_ID",42:"CLASSDEF_STYLEOPTS",43:"DEFAULT",44:"class",45:"CLASSENTITY_IDS",46:"STYLECLASS",47:"style",48:"STYLE_ENTITY_IDS",49:"STYLE_DEFINITION_DATA"},productions_:[0,[3,1],[3,2],[3,2],[6,1],[6,1],[6,1],[9,3],[12,1],[12,1],[12,2],[12,2],[11,1],[11,2],[14,1],[14,4],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[19,3],[19,2],[19,1],[20,1],[22,4],[22,3],[26,1],[26,2],[34,1],[34,2],[33,3],[33,4],[23,3],[23,3],[24,3],[25,3]],performAction:d(function(x,g,u,w,S,c,_){var p=c.length-1;switch(S){case 4:w.getLogger().debug("Rule: separator (NL) ");break;case 5:w.getLogger().debug("Rule: separator (Space) ");break;case 6:w.getLogger().debug("Rule: separator (EOF) ");break;case 7:w.getLogger().debug("Rule: hierarchy: ",c[p-1]),w.setHierarchy(c[p-1]);break;case 8:w.getLogger().debug("Stop NL ");break;case 9:w.getLogger().debug("Stop EOF ");break;case 10:w.getLogger().debug("Stop NL2 ");break;case 11:w.getLogger().debug("Stop EOF2 ");break;case 12:w.getLogger().debug("Rule: statement: ",c[p]),typeof c[p].length=="number"?this.$=c[p]:this.$=[c[p]];break;case 13:w.getLogger().debug("Rule: statement #2: ",c[p-1]),this.$=[c[p-1]].concat(c[p]);break;case 14:w.getLogger().debug("Rule: link: ",c[p],x),this.$={edgeTypeStr:c[p],label:""};break;case 15:w.getLogger().debug("Rule: LABEL link: ",c[p-3],c[p-1],c[p]),this.$={edgeTypeStr:c[p],label:c[p-1]};break;case 18:const A=parseInt(c[p]),O=w.generateId();this.$={id:O,type:"space",label:"",width:A,children:[]};break;case 23:w.getLogger().debug("Rule: (nodeStatement link node) ",c[p-2],c[p-1],c[p]," typestr: ",c[p-1].edgeTypeStr);const X=w.edgeStrToEdgeData(c[p-1].edgeTypeStr);this.$=[{id:c[p-2].id,label:c[p-2].label,type:c[p-2].type,directions:c[p-2].directions},{id:c[p-2].id+"-"+c[p].id,start:c[p-2].id,end:c[p].id,label:c[p-1].label,type:"edge",directions:c[p].directions,arrowTypeEnd:X,arrowTypeStart:"arrow_open"},{id:c[p].id,label:c[p].label,type:w.typeStr2Type(c[p].typeStr),directions:c[p].directions}];break;case 24:w.getLogger().debug("Rule: nodeStatement (abc88 node size) ",c[p-1],c[p]),this.$={id:c[p-1].id,label:c[p-1].label,type:w.typeStr2Type(c[p-1].typeStr),directions:c[p-1].directions,widthInColumns:parseInt(c[p],10)};break;case 25:w.getLogger().debug("Rule: nodeStatement (node) ",c[p]),this.$={id:c[p].id,label:c[p].label,type:w.typeStr2Type(c[p].typeStr),directions:c[p].directions,widthInColumns:1};break;case 26:w.getLogger().debug("APA123",this?this:"na"),w.getLogger().debug("COLUMNS: ",c[p]),this.$={type:"column-setting",columns:c[p]==="auto"?-1:parseInt(c[p])};break;case 27:w.getLogger().debug("Rule: id-block statement : ",c[p-2],c[p-1]),w.generateId(),this.$={...c[p-2],type:"composite",children:c[p-1]};break;case 28:w.getLogger().debug("Rule: blockStatement : ",c[p-2],c[p-1],c[p]);const W=w.generateId();this.$={id:W,type:"composite",label:"",children:c[p-1]};break;case 29:w.getLogger().debug("Rule: node (NODE_ID separator): ",c[p]),this.$={id:c[p]};break;case 30:w.getLogger().debug("Rule: node (NODE_ID nodeShapeNLabel separator): ",c[p-1],c[p]),this.$={id:c[p-1],label:c[p].label,typeStr:c[p].typeStr,directions:c[p].directions};break;case 31:w.getLogger().debug("Rule: dirList: ",c[p]),this.$=[c[p]];break;case 32:w.getLogger().debug("Rule: dirList: ",c[p-1],c[p]),this.$=[c[p-1]].concat(c[p]);break;case 33:w.getLogger().debug("Rule: nodeShapeNLabel: ",c[p-2],c[p-1],c[p]),this.$={typeStr:c[p-2]+c[p],label:c[p-1]};break;case 34:w.getLogger().debug("Rule: BLOCK_ARROW nodeShapeNLabel: ",c[p-3],c[p-2]," #3:",c[p-1],c[p]),this.$={typeStr:c[p-3]+c[p],label:c[p-2],directions:c[p-1]};break;case 35:case 36:this.$={type:"classDef",id:c[p-1].trim(),css:c[p].trim()};break;case 37:this.$={type:"applyClass",id:c[p-1].trim(),styleClass:c[p].trim()};break;case 38:this.$={type:"applyStyles",id:c[p-1].trim(),stylesStr:c[p].trim()};break}},"anonymous"),table:[{9:1,10:[1,2]},{1:[3]},{11:3,13:4,19:5,20:6,21:t,22:8,23:9,24:10,25:11,26:12,28:r,29:n,31:i,32:a,40:s,44:l,47:o},{8:[1,20]},e(f,[2,12],{13:4,19:5,20:6,22:8,23:9,24:10,25:11,26:12,11:21,21:t,28:r,29:n,31:i,32:a,40:s,44:l,47:o}),e(h,[2,16],{14:22,15:y,16:b}),e(h,[2,17]),e(h,[2,18]),e(h,[2,19]),e(h,[2,20]),e(h,[2,21]),e(h,[2,22]),e(m,[2,25],{27:[1,25]}),e(h,[2,26]),{19:26,26:12,32:a},{11:27,13:4,19:5,20:6,21:t,22:8,23:9,24:10,25:11,26:12,28:r,29:n,31:i,32:a,40:s,44:l,47:o},{41:[1,28],43:[1,29]},{45:[1,30]},{48:[1,31]},e(E,[2,29],{33:32,36:[1,33],38:[1,34]}),{1:[2,7]},e(f,[2,13]),{26:35,32:a},{32:[2,14]},{17:[1,36]},e(m,[2,24]),{11:37,13:4,14:22,15:y,16:b,19:5,20:6,21:t,22:8,23:9,24:10,25:11,26:12,28:r,29:n,31:i,32:a,40:s,44:l,47:o},{30:[1,38]},{42:[1,39]},{42:[1,40]},{46:[1,41]},{49:[1,42]},e(E,[2,30]),{18:[1,43]},{18:[1,44]},e(m,[2,23]),{18:[1,45]},{30:[1,46]},e(h,[2,28]),e(h,[2,35]),e(h,[2,36]),e(h,[2,37]),e(h,[2,38]),{37:[1,47]},{34:48,35:D},{15:[1,50]},e(h,[2,27]),e(E,[2,33]),{39:[1,51]},{34:52,35:D,39:[2,31]},{32:[2,15]},e(E,[2,34]),{39:[2,32]}],defaultActions:{20:[2,7],23:[2,14],50:[2,15],52:[2,32]},parseError:d(function(x,g){if(g.recoverable)this.trace(x);else{var u=new Error(x);throw u.hash=g,u}},"parseError"),parse:d(function(x){var g=this,u=[0],w=[],S=[null],c=[],_=this.table,p="",A=0,O=0,X=2,W=1,ce=c.slice.call(arguments,1),M=Object.create(this.lexer),J={yy:{}};for(var gt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,gt)&&(J.yy[gt]=this.yy[gt]);M.setInput(x,J.yy),J.yy.lexer=M,J.yy.parser=this,typeof M.yylloc>"u"&&(M.yylloc={});var ut=M.yylloc;c.push(ut);var oe=M.options&&M.options.ranges;typeof J.yy.parseError=="function"?this.parseError=J.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function he(H){u.length=u.length-2*H,S.length=S.length-H,c.length=c.length-H}d(he,"popStack");function Dt(){var H;return H=w.pop()||M.lex()||W,typeof H!="number"&&(H instanceof Array&&(w=H,H=w.pop()),H=g.symbols_[H]||H),H}d(Dt,"lex");for(var Y,Q,U,pt,$={},st,q,Nt,it;;){if(Q=u[u.length-1],this.defaultActions[Q]?U=this.defaultActions[Q]:((Y===null||typeof Y>"u")&&(Y=Dt()),U=_[Q]&&_[Q][Y]),typeof U>"u"||!U.length||!U[0]){var ft="";it=[];for(st in _[Q])this.terminals_[st]&&st>X&&it.push("'"+this.terminals_[st]+"'");M.showPosition?ft="Parse error on line "+(A+1)+`: `+M.showPosition()+` Expecting `+it.join(", ")+", got '"+(this.terminals_[Y]||Y)+"'":ft="Parse error on line "+(A+1)+": Unexpected "+(Y==W?"end of input":"'"+(this.terminals_[Y]||Y)+"'"),this.parseError(ft,{text:M.match,token:this.terminals_[Y]||Y,line:M.yylineno,loc:ut,expected:it})}if(U[0]instanceof Array&&U.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Q+", token: "+Y);switch(U[0]){case 1:u.push(Y),S.push(M.yytext),c.push(M.yylloc),u.push(U[1]),Y=null,O=M.yyleng,p=M.yytext,A=M.yylineno,ut=M.yylloc;break;case 2:if(q=this.productions_[U[1]][1],$.$=S[S.length-q],$._$={first_line:c[c.length-(q||1)].first_line,last_line:c[c.length-1].last_line,first_column:c[c.length-(q||1)].first_column,last_column:c[c.length-1].last_column},oe&&($._$.range=[c[c.length-(q||1)].range[0],c[c.length-1].range[1]]),pt=this.performAction.apply($,[p,O,A,J.yy,U[1],S,c].concat(ce)),typeof pt<"u")return pt;q&&(u=u.slice(0,-1*q*2),S=S.slice(0,-1*q),c=c.slice(0,-1*q)),u.push(this.productions_[U[1]][0]),S.push($.$),c.push($._$),Nt=_[u[u.length-2]][u[u.length-1]],u.push(Nt);break;case 3:return!0}}return!0},"parse")},T=function(){var N={EOF:1,parseError:d(function(g,u){if(this.yy.parser)this.yy.parser.parseError(g,u);else throw new Error(g)},"parseError"),setInput:d(function(x,g){return this.yy=g||this.yy||{},this._input=x,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:d(function(){var x=this._input[0];this.yytext+=x,this.yyleng++,this.offset++,this.match+=x,this.matched+=x;var g=x.match(/(?:\r\n?|\n).*/g);return g?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),x},"input"),unput:d(function(x){var g=x.length,u=x.split(/(?:\r\n?|\n)/g);this._input=x+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-g),this.offset-=g;var w=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),u.length-1&&(this.yylineno-=u.length-1);var S=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:u?(u.length===w.length?this.yylloc.first_column:0)+w[w.length-u.length].length-u[0].length:this.yylloc.first_column-g},this.options.ranges&&(this.yylloc.range=[S[0],S[0]+this.yyleng-g]),this.yyleng=this.yytext.length,this},"unput"),more:d(function(){return this._more=!0,this},"more"),reject:d(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:d(function(x){this.unput(this.match.slice(x))},"less"),pastInput:d(function(){var x=this.matched.substr(0,this.matched.length-this.match.length);return(x.length>20?"...":"")+x.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:d(function(){var x=this.match;return x.length<20&&(x+=this._input.substr(0,20-x.length)),(x.substr(0,20)+(x.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:d(function(){var x=this.pastInput(),g=new Array(x.length+1).join("-");return x+this.upcomingInput()+` diff --git a/static/js/md-c4Diagram-6F5ED5ID-DBpwfSLv.js b/static/js/md-c4Diagram-6F5ED5ID-CucKeQac.js similarity index 99% rename from static/js/md-c4Diagram-6F5ED5ID-DBpwfSLv.js rename to static/js/md-c4Diagram-6F5ED5ID-CucKeQac.js index 710b037b2..52d48a571 100644 --- a/static/js/md-c4Diagram-6F5ED5ID-DBpwfSLv.js +++ b/static/js/md-c4Diagram-6F5ED5ID-CucKeQac.js @@ -1,4 +1,4 @@ -import{d as Se,g as De}from"./md-chunk-ASOPGD6M-CssFS237.js";import{_ as g,a as Pe,s as Be,g as Ie,b as Me,c as Le,d as Bt,w as Ne,e as $t,f as de,h as Tt,i as ge,j as jt,l as fe,k as Ye,m as je}from"./md-index-xmajgeSt.js";var Ft=function(){var e=g(function(_t,x,m,v){for(m=m||{},v=_t.length;v--;m[_t[v]]=x);return m},"o"),t=[1,24],s=[1,25],o=[1,26],l=[1,27],n=[1,28],r=[1,63],i=[1,64],a=[1,65],u=[1,66],d=[1,67],f=[1,68],y=[1,69],E=[1,29],O=[1,30],S=[1,31],P=[1,32],M=[1,33],U=[1,34],H=[1,35],q=[1,36],G=[1,37],K=[1,38],J=[1,39],Z=[1,40],$=[1,41],tt=[1,42],et=[1,43],nt=[1,44],at=[1,45],it=[1,46],rt=[1,47],st=[1,48],lt=[1,50],ot=[1,51],ct=[1,52],ht=[1,53],ut=[1,54],dt=[1,55],ft=[1,56],pt=[1,57],yt=[1,58],gt=[1,59],bt=[1,60],Ct=[14,42],Qt=[14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],St=[12,14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],k=[1,82],A=[1,83],C=[1,84],w=[1,85],T=[12,14,42],le=[12,14,33,42],Mt=[12,14,33,42,76,77,79,80],vt=[12,33],Ht=[34,36,37,38,39,40,41,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],qt={trace:g(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,direction:5,direction_tb:6,direction_bt:7,direction_rl:8,direction_lr:9,graphConfig:10,C4_CONTEXT:11,NEWLINE:12,statements:13,EOF:14,C4_CONTAINER:15,C4_COMPONENT:16,C4_DYNAMIC:17,C4_DEPLOYMENT:18,otherStatements:19,diagramStatements:20,otherStatement:21,title:22,accDescription:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,boundaryStatement:29,boundaryStartStatement:30,boundaryStopStatement:31,boundaryStart:32,LBRACE:33,ENTERPRISE_BOUNDARY:34,attributes:35,SYSTEM_BOUNDARY:36,BOUNDARY:37,CONTAINER_BOUNDARY:38,NODE:39,NODE_L:40,NODE_R:41,RBRACE:42,diagramStatement:43,PERSON:44,PERSON_EXT:45,SYSTEM:46,SYSTEM_DB:47,SYSTEM_QUEUE:48,SYSTEM_EXT:49,SYSTEM_EXT_DB:50,SYSTEM_EXT_QUEUE:51,CONTAINER:52,CONTAINER_DB:53,CONTAINER_QUEUE:54,CONTAINER_EXT:55,CONTAINER_EXT_DB:56,CONTAINER_EXT_QUEUE:57,COMPONENT:58,COMPONENT_DB:59,COMPONENT_QUEUE:60,COMPONENT_EXT:61,COMPONENT_EXT_DB:62,COMPONENT_EXT_QUEUE:63,REL:64,BIREL:65,REL_U:66,REL_D:67,REL_L:68,REL_R:69,REL_B:70,REL_INDEX:71,UPDATE_EL_STYLE:72,UPDATE_REL_STYLE:73,UPDATE_LAYOUT_CONFIG:74,attribute:75,STR:76,STR_KEY:77,STR_VALUE:78,ATTRIBUTE:79,ATTRIBUTE_EMPTY:80,$accept:0,$end:1},terminals_:{2:"error",6:"direction_tb",7:"direction_bt",8:"direction_rl",9:"direction_lr",11:"C4_CONTEXT",12:"NEWLINE",14:"EOF",15:"C4_CONTAINER",16:"C4_COMPONENT",17:"C4_DYNAMIC",18:"C4_DEPLOYMENT",22:"title",23:"accDescription",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"LBRACE",34:"ENTERPRISE_BOUNDARY",36:"SYSTEM_BOUNDARY",37:"BOUNDARY",38:"CONTAINER_BOUNDARY",39:"NODE",40:"NODE_L",41:"NODE_R",42:"RBRACE",44:"PERSON",45:"PERSON_EXT",46:"SYSTEM",47:"SYSTEM_DB",48:"SYSTEM_QUEUE",49:"SYSTEM_EXT",50:"SYSTEM_EXT_DB",51:"SYSTEM_EXT_QUEUE",52:"CONTAINER",53:"CONTAINER_DB",54:"CONTAINER_QUEUE",55:"CONTAINER_EXT",56:"CONTAINER_EXT_DB",57:"CONTAINER_EXT_QUEUE",58:"COMPONENT",59:"COMPONENT_DB",60:"COMPONENT_QUEUE",61:"COMPONENT_EXT",62:"COMPONENT_EXT_DB",63:"COMPONENT_EXT_QUEUE",64:"REL",65:"BIREL",66:"REL_U",67:"REL_D",68:"REL_L",69:"REL_R",70:"REL_B",71:"REL_INDEX",72:"UPDATE_EL_STYLE",73:"UPDATE_REL_STYLE",74:"UPDATE_LAYOUT_CONFIG",76:"STR",77:"STR_KEY",78:"STR_VALUE",79:"ATTRIBUTE",80:"ATTRIBUTE_EMPTY"},productions_:[0,[3,1],[3,1],[5,1],[5,1],[5,1],[5,1],[4,1],[10,4],[10,4],[10,4],[10,4],[10,4],[13,1],[13,1],[13,2],[19,1],[19,2],[19,3],[21,1],[21,1],[21,2],[21,2],[21,1],[29,3],[30,3],[30,3],[30,4],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[31,1],[20,1],[20,2],[20,3],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,1],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[35,1],[35,2],[75,1],[75,2],[75,1],[75,1]],performAction:g(function(x,m,v,b,R,h,Dt){var p=h.length-1;switch(R){case 3:b.setDirection("TB");break;case 4:b.setDirection("BT");break;case 5:b.setDirection("RL");break;case 6:b.setDirection("LR");break;case 8:case 9:case 10:case 11:case 12:b.setC4Type(h[p-3]);break;case 19:b.setTitle(h[p].substring(6)),this.$=h[p].substring(6);break;case 20:b.setAccDescription(h[p].substring(15)),this.$=h[p].substring(15);break;case 21:this.$=h[p].trim(),b.setTitle(this.$);break;case 22:case 23:this.$=h[p].trim(),b.setAccDescription(this.$);break;case 28:h[p].splice(2,0,"ENTERPRISE"),b.addPersonOrSystemBoundary(...h[p]),this.$=h[p];break;case 29:h[p].splice(2,0,"SYSTEM"),b.addPersonOrSystemBoundary(...h[p]),this.$=h[p];break;case 30:b.addPersonOrSystemBoundary(...h[p]),this.$=h[p];break;case 31:h[p].splice(2,0,"CONTAINER"),b.addContainerBoundary(...h[p]),this.$=h[p];break;case 32:b.addDeploymentNode("node",...h[p]),this.$=h[p];break;case 33:b.addDeploymentNode("nodeL",...h[p]),this.$=h[p];break;case 34:b.addDeploymentNode("nodeR",...h[p]),this.$=h[p];break;case 35:b.popBoundaryParseStack();break;case 39:b.addPersonOrSystem("person",...h[p]),this.$=h[p];break;case 40:b.addPersonOrSystem("external_person",...h[p]),this.$=h[p];break;case 41:b.addPersonOrSystem("system",...h[p]),this.$=h[p];break;case 42:b.addPersonOrSystem("system_db",...h[p]),this.$=h[p];break;case 43:b.addPersonOrSystem("system_queue",...h[p]),this.$=h[p];break;case 44:b.addPersonOrSystem("external_system",...h[p]),this.$=h[p];break;case 45:b.addPersonOrSystem("external_system_db",...h[p]),this.$=h[p];break;case 46:b.addPersonOrSystem("external_system_queue",...h[p]),this.$=h[p];break;case 47:b.addContainer("container",...h[p]),this.$=h[p];break;case 48:b.addContainer("container_db",...h[p]),this.$=h[p];break;case 49:b.addContainer("container_queue",...h[p]),this.$=h[p];break;case 50:b.addContainer("external_container",...h[p]),this.$=h[p];break;case 51:b.addContainer("external_container_db",...h[p]),this.$=h[p];break;case 52:b.addContainer("external_container_queue",...h[p]),this.$=h[p];break;case 53:b.addComponent("component",...h[p]),this.$=h[p];break;case 54:b.addComponent("component_db",...h[p]),this.$=h[p];break;case 55:b.addComponent("component_queue",...h[p]),this.$=h[p];break;case 56:b.addComponent("external_component",...h[p]),this.$=h[p];break;case 57:b.addComponent("external_component_db",...h[p]),this.$=h[p];break;case 58:b.addComponent("external_component_queue",...h[p]),this.$=h[p];break;case 60:b.addRel("rel",...h[p]),this.$=h[p];break;case 61:b.addRel("birel",...h[p]),this.$=h[p];break;case 62:b.addRel("rel_u",...h[p]),this.$=h[p];break;case 63:b.addRel("rel_d",...h[p]),this.$=h[p];break;case 64:b.addRel("rel_l",...h[p]),this.$=h[p];break;case 65:b.addRel("rel_r",...h[p]),this.$=h[p];break;case 66:b.addRel("rel_b",...h[p]),this.$=h[p];break;case 67:h[p].splice(0,1),b.addRel("rel",...h[p]),this.$=h[p];break;case 68:b.updateElStyle("update_el_style",...h[p]),this.$=h[p];break;case 69:b.updateRelStyle("update_rel_style",...h[p]),this.$=h[p];break;case 70:b.updateLayoutConfig("update_layout_config",...h[p]),this.$=h[p];break;case 71:this.$=[h[p]];break;case 72:h[p].unshift(h[p-1]),this.$=h[p];break;case 73:case 75:this.$=h[p].trim();break;case 74:let Et={};Et[h[p-1].trim()]=h[p].trim(),this.$=Et;break;case 76:this.$="";break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],7:[1,6],8:[1,7],9:[1,8],10:4,11:[1,9],15:[1,10],16:[1,11],17:[1,12],18:[1,13]},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,7]},{1:[2,3]},{1:[2,4]},{1:[2,5]},{1:[2,6]},{12:[1,14]},{12:[1,15]},{12:[1,16]},{12:[1,17]},{12:[1,18]},{13:19,19:20,20:21,21:22,22:t,23:s,24:o,26:l,28:n,29:49,30:61,32:62,34:r,36:i,37:a,38:u,39:d,40:f,41:y,43:23,44:E,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:nt,60:at,61:it,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt},{13:70,19:20,20:21,21:22,22:t,23:s,24:o,26:l,28:n,29:49,30:61,32:62,34:r,36:i,37:a,38:u,39:d,40:f,41:y,43:23,44:E,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:nt,60:at,61:it,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt},{13:71,19:20,20:21,21:22,22:t,23:s,24:o,26:l,28:n,29:49,30:61,32:62,34:r,36:i,37:a,38:u,39:d,40:f,41:y,43:23,44:E,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:nt,60:at,61:it,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt},{13:72,19:20,20:21,21:22,22:t,23:s,24:o,26:l,28:n,29:49,30:61,32:62,34:r,36:i,37:a,38:u,39:d,40:f,41:y,43:23,44:E,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:nt,60:at,61:it,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt},{13:73,19:20,20:21,21:22,22:t,23:s,24:o,26:l,28:n,29:49,30:61,32:62,34:r,36:i,37:a,38:u,39:d,40:f,41:y,43:23,44:E,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:nt,60:at,61:it,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt},{14:[1,74]},e(Ct,[2,13],{43:23,29:49,30:61,32:62,20:75,34:r,36:i,37:a,38:u,39:d,40:f,41:y,44:E,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:nt,60:at,61:it,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt}),e(Ct,[2,14]),e(Qt,[2,16],{12:[1,76]}),e(Ct,[2,36],{12:[1,77]}),e(St,[2,19]),e(St,[2,20]),{25:[1,78]},{27:[1,79]},e(St,[2,23]),{35:80,75:81,76:k,77:A,79:C,80:w},{35:86,75:81,76:k,77:A,79:C,80:w},{35:87,75:81,76:k,77:A,79:C,80:w},{35:88,75:81,76:k,77:A,79:C,80:w},{35:89,75:81,76:k,77:A,79:C,80:w},{35:90,75:81,76:k,77:A,79:C,80:w},{35:91,75:81,76:k,77:A,79:C,80:w},{35:92,75:81,76:k,77:A,79:C,80:w},{35:93,75:81,76:k,77:A,79:C,80:w},{35:94,75:81,76:k,77:A,79:C,80:w},{35:95,75:81,76:k,77:A,79:C,80:w},{35:96,75:81,76:k,77:A,79:C,80:w},{35:97,75:81,76:k,77:A,79:C,80:w},{35:98,75:81,76:k,77:A,79:C,80:w},{35:99,75:81,76:k,77:A,79:C,80:w},{35:100,75:81,76:k,77:A,79:C,80:w},{35:101,75:81,76:k,77:A,79:C,80:w},{35:102,75:81,76:k,77:A,79:C,80:w},{35:103,75:81,76:k,77:A,79:C,80:w},{35:104,75:81,76:k,77:A,79:C,80:w},e(T,[2,59]),{35:105,75:81,76:k,77:A,79:C,80:w},{35:106,75:81,76:k,77:A,79:C,80:w},{35:107,75:81,76:k,77:A,79:C,80:w},{35:108,75:81,76:k,77:A,79:C,80:w},{35:109,75:81,76:k,77:A,79:C,80:w},{35:110,75:81,76:k,77:A,79:C,80:w},{35:111,75:81,76:k,77:A,79:C,80:w},{35:112,75:81,76:k,77:A,79:C,80:w},{35:113,75:81,76:k,77:A,79:C,80:w},{35:114,75:81,76:k,77:A,79:C,80:w},{35:115,75:81,76:k,77:A,79:C,80:w},{20:116,29:49,30:61,32:62,34:r,36:i,37:a,38:u,39:d,40:f,41:y,43:23,44:E,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:nt,60:at,61:it,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt},{12:[1,118],33:[1,117]},{35:119,75:81,76:k,77:A,79:C,80:w},{35:120,75:81,76:k,77:A,79:C,80:w},{35:121,75:81,76:k,77:A,79:C,80:w},{35:122,75:81,76:k,77:A,79:C,80:w},{35:123,75:81,76:k,77:A,79:C,80:w},{35:124,75:81,76:k,77:A,79:C,80:w},{35:125,75:81,76:k,77:A,79:C,80:w},{14:[1,126]},{14:[1,127]},{14:[1,128]},{14:[1,129]},{1:[2,8]},e(Ct,[2,15]),e(Qt,[2,17],{21:22,19:130,22:t,23:s,24:o,26:l,28:n}),e(Ct,[2,37],{19:20,20:21,21:22,43:23,29:49,30:61,32:62,13:131,22:t,23:s,24:o,26:l,28:n,34:r,36:i,37:a,38:u,39:d,40:f,41:y,44:E,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:nt,60:at,61:it,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt}),e(St,[2,21]),e(St,[2,22]),e(T,[2,39]),e(le,[2,71],{75:81,35:132,76:k,77:A,79:C,80:w}),e(Mt,[2,73]),{78:[1,133]},e(Mt,[2,75]),e(Mt,[2,76]),e(T,[2,40]),e(T,[2,41]),e(T,[2,42]),e(T,[2,43]),e(T,[2,44]),e(T,[2,45]),e(T,[2,46]),e(T,[2,47]),e(T,[2,48]),e(T,[2,49]),e(T,[2,50]),e(T,[2,51]),e(T,[2,52]),e(T,[2,53]),e(T,[2,54]),e(T,[2,55]),e(T,[2,56]),e(T,[2,57]),e(T,[2,58]),e(T,[2,60]),e(T,[2,61]),e(T,[2,62]),e(T,[2,63]),e(T,[2,64]),e(T,[2,65]),e(T,[2,66]),e(T,[2,67]),e(T,[2,68]),e(T,[2,69]),e(T,[2,70]),{31:134,42:[1,135]},{12:[1,136]},{33:[1,137]},e(vt,[2,28]),e(vt,[2,29]),e(vt,[2,30]),e(vt,[2,31]),e(vt,[2,32]),e(vt,[2,33]),e(vt,[2,34]),{1:[2,9]},{1:[2,10]},{1:[2,11]},{1:[2,12]},e(Qt,[2,18]),e(Ct,[2,38]),e(le,[2,72]),e(Mt,[2,74]),e(T,[2,24]),e(T,[2,35]),e(Ht,[2,25]),e(Ht,[2,26],{12:[1,138]}),e(Ht,[2,27])],defaultActions:{2:[2,1],3:[2,2],4:[2,7],5:[2,3],6:[2,4],7:[2,5],8:[2,6],74:[2,8],126:[2,9],127:[2,10],128:[2,11],129:[2,12]},parseError:g(function(x,m){if(m.recoverable)this.trace(x);else{var v=new Error(x);throw v.hash=m,v}},"parseError"),parse:g(function(x){var m=this,v=[0],b=[],R=[null],h=[],Dt=this.table,p="",Et=0,oe=0,we=2,ce=1,Te=h.slice.call(arguments,1),D=Object.create(this.lexer),kt={yy:{}};for(var Gt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Gt)&&(kt.yy[Gt]=this.yy[Gt]);D.setInput(x,kt.yy),kt.yy.lexer=D,kt.yy.parser=this,typeof D.yylloc>"u"&&(D.yylloc={});var Kt=D.yylloc;h.push(Kt);var Oe=D.options&&D.options.ranges;typeof kt.yy.parseError=="function"?this.parseError=kt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Re(L){v.length=v.length-2*L,R.length=R.length-L,h.length=h.length-L}g(Re,"popStack");function he(){var L;return L=b.pop()||D.lex()||ce,typeof L!="number"&&(L instanceof Array&&(b=L,L=b.pop()),L=m.symbols_[L]||L),L}g(he,"lex");for(var I,At,N,Jt,wt={},Nt,W,ue,Yt;;){if(At=v[v.length-1],this.defaultActions[At]?N=this.defaultActions[At]:((I===null||typeof I>"u")&&(I=he()),N=Dt[At]&&Dt[At][I]),typeof N>"u"||!N.length||!N[0]){var Zt="";Yt=[];for(Nt in Dt[At])this.terminals_[Nt]&&Nt>we&&Yt.push("'"+this.terminals_[Nt]+"'");D.showPosition?Zt="Parse error on line "+(Et+1)+`: +import{d as Se,g as De}from"./md-chunk-ASOPGD6M-DOjjHUZG.js";import{_ as g,a as Pe,s as Be,g as Ie,b as Me,c as Le,d as Bt,w as Ne,e as $t,f as de,h as Tt,i as ge,j as jt,l as fe,k as Ye,m as je}from"./md-index-DwcL-8Z2.js";var Ft=function(){var e=g(function(_t,x,m,v){for(m=m||{},v=_t.length;v--;m[_t[v]]=x);return m},"o"),t=[1,24],s=[1,25],o=[1,26],l=[1,27],n=[1,28],r=[1,63],i=[1,64],a=[1,65],u=[1,66],d=[1,67],f=[1,68],y=[1,69],E=[1,29],O=[1,30],S=[1,31],P=[1,32],M=[1,33],U=[1,34],H=[1,35],q=[1,36],G=[1,37],K=[1,38],J=[1,39],Z=[1,40],$=[1,41],tt=[1,42],et=[1,43],nt=[1,44],at=[1,45],it=[1,46],rt=[1,47],st=[1,48],lt=[1,50],ot=[1,51],ct=[1,52],ht=[1,53],ut=[1,54],dt=[1,55],ft=[1,56],pt=[1,57],yt=[1,58],gt=[1,59],bt=[1,60],Ct=[14,42],Qt=[14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],St=[12,14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],k=[1,82],A=[1,83],C=[1,84],w=[1,85],T=[12,14,42],le=[12,14,33,42],Mt=[12,14,33,42,76,77,79,80],vt=[12,33],Ht=[34,36,37,38,39,40,41,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],qt={trace:g(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,direction:5,direction_tb:6,direction_bt:7,direction_rl:8,direction_lr:9,graphConfig:10,C4_CONTEXT:11,NEWLINE:12,statements:13,EOF:14,C4_CONTAINER:15,C4_COMPONENT:16,C4_DYNAMIC:17,C4_DEPLOYMENT:18,otherStatements:19,diagramStatements:20,otherStatement:21,title:22,accDescription:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,boundaryStatement:29,boundaryStartStatement:30,boundaryStopStatement:31,boundaryStart:32,LBRACE:33,ENTERPRISE_BOUNDARY:34,attributes:35,SYSTEM_BOUNDARY:36,BOUNDARY:37,CONTAINER_BOUNDARY:38,NODE:39,NODE_L:40,NODE_R:41,RBRACE:42,diagramStatement:43,PERSON:44,PERSON_EXT:45,SYSTEM:46,SYSTEM_DB:47,SYSTEM_QUEUE:48,SYSTEM_EXT:49,SYSTEM_EXT_DB:50,SYSTEM_EXT_QUEUE:51,CONTAINER:52,CONTAINER_DB:53,CONTAINER_QUEUE:54,CONTAINER_EXT:55,CONTAINER_EXT_DB:56,CONTAINER_EXT_QUEUE:57,COMPONENT:58,COMPONENT_DB:59,COMPONENT_QUEUE:60,COMPONENT_EXT:61,COMPONENT_EXT_DB:62,COMPONENT_EXT_QUEUE:63,REL:64,BIREL:65,REL_U:66,REL_D:67,REL_L:68,REL_R:69,REL_B:70,REL_INDEX:71,UPDATE_EL_STYLE:72,UPDATE_REL_STYLE:73,UPDATE_LAYOUT_CONFIG:74,attribute:75,STR:76,STR_KEY:77,STR_VALUE:78,ATTRIBUTE:79,ATTRIBUTE_EMPTY:80,$accept:0,$end:1},terminals_:{2:"error",6:"direction_tb",7:"direction_bt",8:"direction_rl",9:"direction_lr",11:"C4_CONTEXT",12:"NEWLINE",14:"EOF",15:"C4_CONTAINER",16:"C4_COMPONENT",17:"C4_DYNAMIC",18:"C4_DEPLOYMENT",22:"title",23:"accDescription",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"LBRACE",34:"ENTERPRISE_BOUNDARY",36:"SYSTEM_BOUNDARY",37:"BOUNDARY",38:"CONTAINER_BOUNDARY",39:"NODE",40:"NODE_L",41:"NODE_R",42:"RBRACE",44:"PERSON",45:"PERSON_EXT",46:"SYSTEM",47:"SYSTEM_DB",48:"SYSTEM_QUEUE",49:"SYSTEM_EXT",50:"SYSTEM_EXT_DB",51:"SYSTEM_EXT_QUEUE",52:"CONTAINER",53:"CONTAINER_DB",54:"CONTAINER_QUEUE",55:"CONTAINER_EXT",56:"CONTAINER_EXT_DB",57:"CONTAINER_EXT_QUEUE",58:"COMPONENT",59:"COMPONENT_DB",60:"COMPONENT_QUEUE",61:"COMPONENT_EXT",62:"COMPONENT_EXT_DB",63:"COMPONENT_EXT_QUEUE",64:"REL",65:"BIREL",66:"REL_U",67:"REL_D",68:"REL_L",69:"REL_R",70:"REL_B",71:"REL_INDEX",72:"UPDATE_EL_STYLE",73:"UPDATE_REL_STYLE",74:"UPDATE_LAYOUT_CONFIG",76:"STR",77:"STR_KEY",78:"STR_VALUE",79:"ATTRIBUTE",80:"ATTRIBUTE_EMPTY"},productions_:[0,[3,1],[3,1],[5,1],[5,1],[5,1],[5,1],[4,1],[10,4],[10,4],[10,4],[10,4],[10,4],[13,1],[13,1],[13,2],[19,1],[19,2],[19,3],[21,1],[21,1],[21,2],[21,2],[21,1],[29,3],[30,3],[30,3],[30,4],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[31,1],[20,1],[20,2],[20,3],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,1],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[35,1],[35,2],[75,1],[75,2],[75,1],[75,1]],performAction:g(function(x,m,v,b,R,h,Dt){var p=h.length-1;switch(R){case 3:b.setDirection("TB");break;case 4:b.setDirection("BT");break;case 5:b.setDirection("RL");break;case 6:b.setDirection("LR");break;case 8:case 9:case 10:case 11:case 12:b.setC4Type(h[p-3]);break;case 19:b.setTitle(h[p].substring(6)),this.$=h[p].substring(6);break;case 20:b.setAccDescription(h[p].substring(15)),this.$=h[p].substring(15);break;case 21:this.$=h[p].trim(),b.setTitle(this.$);break;case 22:case 23:this.$=h[p].trim(),b.setAccDescription(this.$);break;case 28:h[p].splice(2,0,"ENTERPRISE"),b.addPersonOrSystemBoundary(...h[p]),this.$=h[p];break;case 29:h[p].splice(2,0,"SYSTEM"),b.addPersonOrSystemBoundary(...h[p]),this.$=h[p];break;case 30:b.addPersonOrSystemBoundary(...h[p]),this.$=h[p];break;case 31:h[p].splice(2,0,"CONTAINER"),b.addContainerBoundary(...h[p]),this.$=h[p];break;case 32:b.addDeploymentNode("node",...h[p]),this.$=h[p];break;case 33:b.addDeploymentNode("nodeL",...h[p]),this.$=h[p];break;case 34:b.addDeploymentNode("nodeR",...h[p]),this.$=h[p];break;case 35:b.popBoundaryParseStack();break;case 39:b.addPersonOrSystem("person",...h[p]),this.$=h[p];break;case 40:b.addPersonOrSystem("external_person",...h[p]),this.$=h[p];break;case 41:b.addPersonOrSystem("system",...h[p]),this.$=h[p];break;case 42:b.addPersonOrSystem("system_db",...h[p]),this.$=h[p];break;case 43:b.addPersonOrSystem("system_queue",...h[p]),this.$=h[p];break;case 44:b.addPersonOrSystem("external_system",...h[p]),this.$=h[p];break;case 45:b.addPersonOrSystem("external_system_db",...h[p]),this.$=h[p];break;case 46:b.addPersonOrSystem("external_system_queue",...h[p]),this.$=h[p];break;case 47:b.addContainer("container",...h[p]),this.$=h[p];break;case 48:b.addContainer("container_db",...h[p]),this.$=h[p];break;case 49:b.addContainer("container_queue",...h[p]),this.$=h[p];break;case 50:b.addContainer("external_container",...h[p]),this.$=h[p];break;case 51:b.addContainer("external_container_db",...h[p]),this.$=h[p];break;case 52:b.addContainer("external_container_queue",...h[p]),this.$=h[p];break;case 53:b.addComponent("component",...h[p]),this.$=h[p];break;case 54:b.addComponent("component_db",...h[p]),this.$=h[p];break;case 55:b.addComponent("component_queue",...h[p]),this.$=h[p];break;case 56:b.addComponent("external_component",...h[p]),this.$=h[p];break;case 57:b.addComponent("external_component_db",...h[p]),this.$=h[p];break;case 58:b.addComponent("external_component_queue",...h[p]),this.$=h[p];break;case 60:b.addRel("rel",...h[p]),this.$=h[p];break;case 61:b.addRel("birel",...h[p]),this.$=h[p];break;case 62:b.addRel("rel_u",...h[p]),this.$=h[p];break;case 63:b.addRel("rel_d",...h[p]),this.$=h[p];break;case 64:b.addRel("rel_l",...h[p]),this.$=h[p];break;case 65:b.addRel("rel_r",...h[p]),this.$=h[p];break;case 66:b.addRel("rel_b",...h[p]),this.$=h[p];break;case 67:h[p].splice(0,1),b.addRel("rel",...h[p]),this.$=h[p];break;case 68:b.updateElStyle("update_el_style",...h[p]),this.$=h[p];break;case 69:b.updateRelStyle("update_rel_style",...h[p]),this.$=h[p];break;case 70:b.updateLayoutConfig("update_layout_config",...h[p]),this.$=h[p];break;case 71:this.$=[h[p]];break;case 72:h[p].unshift(h[p-1]),this.$=h[p];break;case 73:case 75:this.$=h[p].trim();break;case 74:let Et={};Et[h[p-1].trim()]=h[p].trim(),this.$=Et;break;case 76:this.$="";break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],7:[1,6],8:[1,7],9:[1,8],10:4,11:[1,9],15:[1,10],16:[1,11],17:[1,12],18:[1,13]},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,7]},{1:[2,3]},{1:[2,4]},{1:[2,5]},{1:[2,6]},{12:[1,14]},{12:[1,15]},{12:[1,16]},{12:[1,17]},{12:[1,18]},{13:19,19:20,20:21,21:22,22:t,23:s,24:o,26:l,28:n,29:49,30:61,32:62,34:r,36:i,37:a,38:u,39:d,40:f,41:y,43:23,44:E,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:nt,60:at,61:it,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt},{13:70,19:20,20:21,21:22,22:t,23:s,24:o,26:l,28:n,29:49,30:61,32:62,34:r,36:i,37:a,38:u,39:d,40:f,41:y,43:23,44:E,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:nt,60:at,61:it,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt},{13:71,19:20,20:21,21:22,22:t,23:s,24:o,26:l,28:n,29:49,30:61,32:62,34:r,36:i,37:a,38:u,39:d,40:f,41:y,43:23,44:E,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:nt,60:at,61:it,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt},{13:72,19:20,20:21,21:22,22:t,23:s,24:o,26:l,28:n,29:49,30:61,32:62,34:r,36:i,37:a,38:u,39:d,40:f,41:y,43:23,44:E,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:nt,60:at,61:it,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt},{13:73,19:20,20:21,21:22,22:t,23:s,24:o,26:l,28:n,29:49,30:61,32:62,34:r,36:i,37:a,38:u,39:d,40:f,41:y,43:23,44:E,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:nt,60:at,61:it,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt},{14:[1,74]},e(Ct,[2,13],{43:23,29:49,30:61,32:62,20:75,34:r,36:i,37:a,38:u,39:d,40:f,41:y,44:E,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:nt,60:at,61:it,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt}),e(Ct,[2,14]),e(Qt,[2,16],{12:[1,76]}),e(Ct,[2,36],{12:[1,77]}),e(St,[2,19]),e(St,[2,20]),{25:[1,78]},{27:[1,79]},e(St,[2,23]),{35:80,75:81,76:k,77:A,79:C,80:w},{35:86,75:81,76:k,77:A,79:C,80:w},{35:87,75:81,76:k,77:A,79:C,80:w},{35:88,75:81,76:k,77:A,79:C,80:w},{35:89,75:81,76:k,77:A,79:C,80:w},{35:90,75:81,76:k,77:A,79:C,80:w},{35:91,75:81,76:k,77:A,79:C,80:w},{35:92,75:81,76:k,77:A,79:C,80:w},{35:93,75:81,76:k,77:A,79:C,80:w},{35:94,75:81,76:k,77:A,79:C,80:w},{35:95,75:81,76:k,77:A,79:C,80:w},{35:96,75:81,76:k,77:A,79:C,80:w},{35:97,75:81,76:k,77:A,79:C,80:w},{35:98,75:81,76:k,77:A,79:C,80:w},{35:99,75:81,76:k,77:A,79:C,80:w},{35:100,75:81,76:k,77:A,79:C,80:w},{35:101,75:81,76:k,77:A,79:C,80:w},{35:102,75:81,76:k,77:A,79:C,80:w},{35:103,75:81,76:k,77:A,79:C,80:w},{35:104,75:81,76:k,77:A,79:C,80:w},e(T,[2,59]),{35:105,75:81,76:k,77:A,79:C,80:w},{35:106,75:81,76:k,77:A,79:C,80:w},{35:107,75:81,76:k,77:A,79:C,80:w},{35:108,75:81,76:k,77:A,79:C,80:w},{35:109,75:81,76:k,77:A,79:C,80:w},{35:110,75:81,76:k,77:A,79:C,80:w},{35:111,75:81,76:k,77:A,79:C,80:w},{35:112,75:81,76:k,77:A,79:C,80:w},{35:113,75:81,76:k,77:A,79:C,80:w},{35:114,75:81,76:k,77:A,79:C,80:w},{35:115,75:81,76:k,77:A,79:C,80:w},{20:116,29:49,30:61,32:62,34:r,36:i,37:a,38:u,39:d,40:f,41:y,43:23,44:E,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:nt,60:at,61:it,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt},{12:[1,118],33:[1,117]},{35:119,75:81,76:k,77:A,79:C,80:w},{35:120,75:81,76:k,77:A,79:C,80:w},{35:121,75:81,76:k,77:A,79:C,80:w},{35:122,75:81,76:k,77:A,79:C,80:w},{35:123,75:81,76:k,77:A,79:C,80:w},{35:124,75:81,76:k,77:A,79:C,80:w},{35:125,75:81,76:k,77:A,79:C,80:w},{14:[1,126]},{14:[1,127]},{14:[1,128]},{14:[1,129]},{1:[2,8]},e(Ct,[2,15]),e(Qt,[2,17],{21:22,19:130,22:t,23:s,24:o,26:l,28:n}),e(Ct,[2,37],{19:20,20:21,21:22,43:23,29:49,30:61,32:62,13:131,22:t,23:s,24:o,26:l,28:n,34:r,36:i,37:a,38:u,39:d,40:f,41:y,44:E,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:nt,60:at,61:it,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt}),e(St,[2,21]),e(St,[2,22]),e(T,[2,39]),e(le,[2,71],{75:81,35:132,76:k,77:A,79:C,80:w}),e(Mt,[2,73]),{78:[1,133]},e(Mt,[2,75]),e(Mt,[2,76]),e(T,[2,40]),e(T,[2,41]),e(T,[2,42]),e(T,[2,43]),e(T,[2,44]),e(T,[2,45]),e(T,[2,46]),e(T,[2,47]),e(T,[2,48]),e(T,[2,49]),e(T,[2,50]),e(T,[2,51]),e(T,[2,52]),e(T,[2,53]),e(T,[2,54]),e(T,[2,55]),e(T,[2,56]),e(T,[2,57]),e(T,[2,58]),e(T,[2,60]),e(T,[2,61]),e(T,[2,62]),e(T,[2,63]),e(T,[2,64]),e(T,[2,65]),e(T,[2,66]),e(T,[2,67]),e(T,[2,68]),e(T,[2,69]),e(T,[2,70]),{31:134,42:[1,135]},{12:[1,136]},{33:[1,137]},e(vt,[2,28]),e(vt,[2,29]),e(vt,[2,30]),e(vt,[2,31]),e(vt,[2,32]),e(vt,[2,33]),e(vt,[2,34]),{1:[2,9]},{1:[2,10]},{1:[2,11]},{1:[2,12]},e(Qt,[2,18]),e(Ct,[2,38]),e(le,[2,72]),e(Mt,[2,74]),e(T,[2,24]),e(T,[2,35]),e(Ht,[2,25]),e(Ht,[2,26],{12:[1,138]}),e(Ht,[2,27])],defaultActions:{2:[2,1],3:[2,2],4:[2,7],5:[2,3],6:[2,4],7:[2,5],8:[2,6],74:[2,8],126:[2,9],127:[2,10],128:[2,11],129:[2,12]},parseError:g(function(x,m){if(m.recoverable)this.trace(x);else{var v=new Error(x);throw v.hash=m,v}},"parseError"),parse:g(function(x){var m=this,v=[0],b=[],R=[null],h=[],Dt=this.table,p="",Et=0,oe=0,we=2,ce=1,Te=h.slice.call(arguments,1),D=Object.create(this.lexer),kt={yy:{}};for(var Gt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Gt)&&(kt.yy[Gt]=this.yy[Gt]);D.setInput(x,kt.yy),kt.yy.lexer=D,kt.yy.parser=this,typeof D.yylloc>"u"&&(D.yylloc={});var Kt=D.yylloc;h.push(Kt);var Oe=D.options&&D.options.ranges;typeof kt.yy.parseError=="function"?this.parseError=kt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Re(L){v.length=v.length-2*L,R.length=R.length-L,h.length=h.length-L}g(Re,"popStack");function he(){var L;return L=b.pop()||D.lex()||ce,typeof L!="number"&&(L instanceof Array&&(b=L,L=b.pop()),L=m.symbols_[L]||L),L}g(he,"lex");for(var I,At,N,Jt,wt={},Nt,W,ue,Yt;;){if(At=v[v.length-1],this.defaultActions[At]?N=this.defaultActions[At]:((I===null||typeof I>"u")&&(I=he()),N=Dt[At]&&Dt[At][I]),typeof N>"u"||!N.length||!N[0]){var Zt="";Yt=[];for(Nt in Dt[At])this.terminals_[Nt]&&Nt>we&&Yt.push("'"+this.terminals_[Nt]+"'");D.showPosition?Zt="Parse error on line "+(Et+1)+`: `+D.showPosition()+` Expecting `+Yt.join(", ")+", got '"+(this.terminals_[I]||I)+"'":Zt="Parse error on line "+(Et+1)+": Unexpected "+(I==ce?"end of input":"'"+(this.terminals_[I]||I)+"'"),this.parseError(Zt,{text:D.match,token:this.terminals_[I]||I,line:D.yylineno,loc:Kt,expected:Yt})}if(N[0]instanceof Array&&N.length>1)throw new Error("Parse Error: multiple actions possible at state: "+At+", token: "+I);switch(N[0]){case 1:v.push(I),R.push(D.yytext),h.push(D.yylloc),v.push(N[1]),I=null,oe=D.yyleng,p=D.yytext,Et=D.yylineno,Kt=D.yylloc;break;case 2:if(W=this.productions_[N[1]][1],wt.$=R[R.length-W],wt._$={first_line:h[h.length-(W||1)].first_line,last_line:h[h.length-1].last_line,first_column:h[h.length-(W||1)].first_column,last_column:h[h.length-1].last_column},Oe&&(wt._$.range=[h[h.length-(W||1)].range[0],h[h.length-1].range[1]]),Jt=this.performAction.apply(wt,[p,oe,Et,kt.yy,N[1],R,h].concat(Te)),typeof Jt<"u")return Jt;W&&(v=v.slice(0,-1*W*2),R=R.slice(0,-1*W),h=h.slice(0,-1*W)),v.push(this.productions_[N[1]][0]),R.push(wt.$),h.push(wt._$),ue=Dt[v[v.length-2]][v[v.length-1]],v.push(ue);break;case 3:return!0}}return!0},"parse")},Ce=function(){var _t={EOF:1,parseError:g(function(m,v){if(this.yy.parser)this.yy.parser.parseError(m,v);else throw new Error(m)},"parseError"),setInput:g(function(x,m){return this.yy=m||this.yy||{},this._input=x,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:g(function(){var x=this._input[0];this.yytext+=x,this.yyleng++,this.offset++,this.match+=x,this.matched+=x;var m=x.match(/(?:\r\n?|\n).*/g);return m?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),x},"input"),unput:g(function(x){var m=x.length,v=x.split(/(?:\r\n?|\n)/g);this._input=x+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-m),this.offset-=m;var b=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),v.length-1&&(this.yylineno-=v.length-1);var R=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:v?(v.length===b.length?this.yylloc.first_column:0)+b[b.length-v.length].length-v[0].length:this.yylloc.first_column-m},this.options.ranges&&(this.yylloc.range=[R[0],R[0]+this.yyleng-m]),this.yyleng=this.yytext.length,this},"unput"),more:g(function(){return this._more=!0,this},"more"),reject:g(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:g(function(x){this.unput(this.match.slice(x))},"less"),pastInput:g(function(){var x=this.matched.substr(0,this.matched.length-this.match.length);return(x.length>20?"...":"")+x.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:g(function(){var x=this.match;return x.length<20&&(x+=this._input.substr(0,20-x.length)),(x.substr(0,20)+(x.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:g(function(){var x=this.pastInput(),m=new Array(x.length+1).join("-");return x+this.upcomingInput()+` diff --git a/static/js/md-channel-B-dfDPA1.js b/static/js/md-channel-B-dfDPA1.js deleted file mode 100644 index 8d797ad75..000000000 --- a/static/js/md-channel-B-dfDPA1.js +++ /dev/null @@ -1 +0,0 @@ -import{ao as r,ap as n}from"./md-index-xmajgeSt.js";const t=(a,o)=>r.lang.round(n.parse(a)[o]);export{t as c}; diff --git a/static/js/md-channel-CL0exIu9.js b/static/js/md-channel-CL0exIu9.js new file mode 100644 index 000000000..583fc4865 --- /dev/null +++ b/static/js/md-channel-CL0exIu9.js @@ -0,0 +1 @@ +import{ao as r,ap as n}from"./md-index-DwcL-8Z2.js";const t=(a,o)=>r.lang.round(n.parse(a)[o]);export{t as c}; diff --git a/static/js/md-chunk-5HRBRIJM-ZvjOkuCg.js b/static/js/md-chunk-5HRBRIJM-BlmWzKS6.js similarity index 90% rename from static/js/md-chunk-5HRBRIJM-ZvjOkuCg.js rename to static/js/md-chunk-5HRBRIJM-BlmWzKS6.js index 83ba71787..6b71420d9 100644 --- a/static/js/md-chunk-5HRBRIJM-ZvjOkuCg.js +++ b/static/js/md-chunk-5HRBRIJM-BlmWzKS6.js @@ -1 +1 @@ -import{_ as n,j as r,k as g,l as d}from"./md-index-xmajgeSt.js";var u=n((t,e)=>{let o;return e==="sandbox"&&(o=r("#i"+t)),(e==="sandbox"?r(o.nodes()[0].contentDocument.body):r("body")).select(`[id="${t}"]`)},"getDiagramElement"),b=n((t,e,o,i)=>{t.attr("class",o);const{width:a,height:s,x:h,y:x}=l(t,e);g(t,s,a,i);const c=w(h,x,a,s,e);t.attr("viewBox",c),d.debug(`viewBox configured: ${c} with padding: ${e}`)},"setupViewPortForSVG"),l=n((t,e)=>{var i;const o=((i=t.node())==null?void 0:i.getBBox())||{width:0,height:0,x:0,y:0};return{width:o.width+e*2,height:o.height+e*2,x:o.x,y:o.y}},"calculateDimensionsWithPadding"),w=n((t,e,o,i,a)=>`${t-a} ${e-a} ${o} ${i}`,"createViewBox");export{u as g,b as s}; +import{_ as n,j as r,k as g,l as d}from"./md-index-DwcL-8Z2.js";var u=n((t,e)=>{let o;return e==="sandbox"&&(o=r("#i"+t)),(e==="sandbox"?r(o.nodes()[0].contentDocument.body):r("body")).select(`[id="${t}"]`)},"getDiagramElement"),b=n((t,e,o,i)=>{t.attr("class",o);const{width:a,height:s,x:h,y:x}=l(t,e);g(t,s,a,i);const c=w(h,x,a,s,e);t.attr("viewBox",c),d.debug(`viewBox configured: ${c} with padding: ${e}`)},"setupViewPortForSVG"),l=n((t,e)=>{var i;const o=((i=t.node())==null?void 0:i.getBBox())||{width:0,height:0,x:0,y:0};return{width:o.width+e*2,height:o.height+e*2,x:o.x,y:o.y}},"calculateDimensionsWithPadding"),w=n((t,e,o,i,a)=>`${t-a} ${e-a} ${o} ${i}`,"createViewBox");export{u as g,b as s}; diff --git a/static/js/md-chunk-7U56Z5CX-DOJOZdgE.js b/static/js/md-chunk-7U56Z5CX-B9JVyUo5.js similarity index 99% rename from static/js/md-chunk-7U56Z5CX-DOJOZdgE.js rename to static/js/md-chunk-7U56Z5CX-B9JVyUo5.js index 7f2608705..bc2b761b6 100644 --- a/static/js/md-chunk-7U56Z5CX-DOJOZdgE.js +++ b/static/js/md-chunk-7U56Z5CX-B9JVyUo5.js @@ -1,4 +1,4 @@ -import{g as De,s as Ce}from"./md-chunk-5HRBRIJM-ZvjOkuCg.js";import{_ as r,e as z,d as x,g as xe,s as Ae,b as Le,c as Re,p as Ie,q as Oe,l as b,z as Ne,u as we,v as $e,R as Pe}from"./md-index-xmajgeSt.js";var Ot=function(){var t=r(function($,o,u,n){for(u=u||{},n=$.length;n--;u[$[n]]=o);return u},"o"),e=[1,2],c=[1,3],a=[1,4],d=[2,4],s=[1,9],p=[1,11],g=[1,16],l=[1,17],_=[1,18],v=[1,19],A=[1,32],B=[1,20],Y=[1,21],R=[1,22],f=[1,23],L=[1,24],I=[1,26],F=[1,27],V=[1,28],N=[1,29],w=[1,30],rt=[1,31],at=[1,34],nt=[1,35],lt=[1,36],ot=[1,37],J=[1,33],S=[1,4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,42,45,48,49,50,51,54],ct=[1,4,5,14,15,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,42,45,48,49,50,51,54],Vt=[4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,42,45,48,49,50,51,54],kt={trace:r(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,SD:6,document:7,line:8,statement:9,classDefStatement:10,styleStatement:11,cssClassStatement:12,idStatement:13,DESCR:14,"-->":15,HIDE_EMPTY:16,scale:17,WIDTH:18,COMPOSIT_STATE:19,STRUCT_START:20,STRUCT_STOP:21,STATE_DESCR:22,AS:23,ID:24,FORK:25,JOIN:26,CHOICE:27,CONCURRENT:28,note:29,notePosition:30,NOTE_TEXT:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,classDef:38,CLASSDEF_ID:39,CLASSDEF_STYLEOPTS:40,DEFAULT:41,style:42,STYLE_IDS:43,STYLEDEF_STYLEOPTS:44,class:45,CLASSENTITY_IDS:46,STYLECLASS:47,direction_tb:48,direction_bt:49,direction_rl:50,direction_lr:51,eol:52,";":53,EDGE_STATE:54,STYLE_SEPARATOR:55,left_of:56,right_of:57,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",6:"SD",14:"DESCR",15:"-->",16:"HIDE_EMPTY",17:"scale",18:"WIDTH",19:"COMPOSIT_STATE",20:"STRUCT_START",21:"STRUCT_STOP",22:"STATE_DESCR",23:"AS",24:"ID",25:"FORK",26:"JOIN",27:"CHOICE",28:"CONCURRENT",29:"note",31:"NOTE_TEXT",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",38:"classDef",39:"CLASSDEF_ID",40:"CLASSDEF_STYLEOPTS",41:"DEFAULT",42:"style",43:"STYLE_IDS",44:"STYLEDEF_STYLEOPTS",45:"class",46:"CLASSENTITY_IDS",47:"STYLECLASS",48:"direction_tb",49:"direction_bt",50:"direction_rl",51:"direction_lr",53:";",54:"EDGE_STATE",55:"STYLE_SEPARATOR",56:"left_of",57:"right_of"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,3],[9,4],[9,1],[9,2],[9,1],[9,4],[9,3],[9,6],[9,1],[9,1],[9,1],[9,1],[9,4],[9,4],[9,1],[9,2],[9,2],[9,1],[10,3],[10,3],[11,3],[12,3],[32,1],[32,1],[32,1],[32,1],[52,1],[52,1],[13,1],[13,1],[13,3],[13,3],[30,1],[30,1]],performAction:r(function(o,u,n,y,T,i,q){var h=i.length-1;switch(T){case 3:return y.setRootDoc(i[h]),i[h];case 4:this.$=[];break;case 5:i[h]!="nl"&&(i[h-1].push(i[h]),this.$=i[h-1]);break;case 6:case 7:this.$=i[h];break;case 8:this.$="nl";break;case 12:this.$=i[h];break;case 13:const Q=i[h-1];Q.description=y.trimColon(i[h]),this.$=Q;break;case 14:this.$={stmt:"relation",state1:i[h-2],state2:i[h]};break;case 15:const Dt=y.trimColon(i[h]);this.$={stmt:"relation",state1:i[h-3],state2:i[h-1],description:Dt};break;case 19:this.$={stmt:"state",id:i[h-3],type:"default",description:"",doc:i[h-1]};break;case 20:var M=i[h],W=i[h-2].trim();if(i[h].match(":")){var ht=i[h].split(":");M=ht[0],W=[W,ht[1]]}this.$={stmt:"state",id:M,type:"default",description:W};break;case 21:this.$={stmt:"state",id:i[h-3],type:"default",description:i[h-5],doc:i[h-1]};break;case 22:this.$={stmt:"state",id:i[h],type:"fork"};break;case 23:this.$={stmt:"state",id:i[h],type:"join"};break;case 24:this.$={stmt:"state",id:i[h],type:"choice"};break;case 25:this.$={stmt:"state",id:y.getDividerId(),type:"divider"};break;case 26:this.$={stmt:"state",id:i[h-1].trim(),note:{position:i[h-2].trim(),text:i[h].trim()}};break;case 29:this.$=i[h].trim(),y.setAccTitle(this.$);break;case 30:case 31:this.$=i[h].trim(),y.setAccDescription(this.$);break;case 32:case 33:this.$={stmt:"classDef",id:i[h-1].trim(),classes:i[h].trim()};break;case 34:this.$={stmt:"style",id:i[h-1].trim(),styleClass:i[h].trim()};break;case 35:this.$={stmt:"applyClass",id:i[h-1].trim(),styleClass:i[h].trim()};break;case 36:y.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 37:y.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 38:y.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 39:y.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 42:case 43:this.$={stmt:"state",id:i[h].trim(),type:"default",description:""};break;case 44:this.$={stmt:"state",id:i[h-2].trim(),classes:[i[h].trim()],type:"default",description:""};break;case 45:this.$={stmt:"state",id:i[h-2].trim(),classes:[i[h].trim()],type:"default",description:""};break}},"anonymous"),table:[{3:1,4:e,5:c,6:a},{1:[3]},{3:5,4:e,5:c,6:a},{3:6,4:e,5:c,6:a},t([1,4,5,16,17,19,22,24,25,26,27,28,29,33,35,37,38,42,45,48,49,50,51,54],d,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:s,5:p,8:8,9:10,10:12,11:13,12:14,13:15,16:g,17:l,19:_,22:v,24:A,25:B,26:Y,27:R,28:f,29:L,32:25,33:I,35:F,37:V,38:N,42:w,45:rt,48:at,49:nt,50:lt,51:ot,54:J},t(S,[2,5]),{9:38,10:12,11:13,12:14,13:15,16:g,17:l,19:_,22:v,24:A,25:B,26:Y,27:R,28:f,29:L,32:25,33:I,35:F,37:V,38:N,42:w,45:rt,48:at,49:nt,50:lt,51:ot,54:J},t(S,[2,7]),t(S,[2,8]),t(S,[2,9]),t(S,[2,10]),t(S,[2,11]),t(S,[2,12],{14:[1,39],15:[1,40]}),t(S,[2,16]),{18:[1,41]},t(S,[2,18],{20:[1,42]}),{23:[1,43]},t(S,[2,22]),t(S,[2,23]),t(S,[2,24]),t(S,[2,25]),{30:44,31:[1,45],56:[1,46],57:[1,47]},t(S,[2,28]),{34:[1,48]},{36:[1,49]},t(S,[2,31]),{39:[1,50],41:[1,51]},{43:[1,52]},{46:[1,53]},t(ct,[2,42],{55:[1,54]}),t(ct,[2,43],{55:[1,55]}),t(S,[2,36]),t(S,[2,37]),t(S,[2,38]),t(S,[2,39]),t(S,[2,6]),t(S,[2,13]),{13:56,24:A,54:J},t(S,[2,17]),t(Vt,d,{7:57}),{24:[1,58]},{24:[1,59]},{23:[1,60]},{24:[2,46]},{24:[2,47]},t(S,[2,29]),t(S,[2,30]),{40:[1,61]},{40:[1,62]},{44:[1,63]},{47:[1,64]},{24:[1,65]},{24:[1,66]},t(S,[2,14],{14:[1,67]}),{4:s,5:p,8:8,9:10,10:12,11:13,12:14,13:15,16:g,17:l,19:_,21:[1,68],22:v,24:A,25:B,26:Y,27:R,28:f,29:L,32:25,33:I,35:F,37:V,38:N,42:w,45:rt,48:at,49:nt,50:lt,51:ot,54:J},t(S,[2,20],{20:[1,69]}),{31:[1,70]},{24:[1,71]},t(S,[2,32]),t(S,[2,33]),t(S,[2,34]),t(S,[2,35]),t(ct,[2,44]),t(ct,[2,45]),t(S,[2,15]),t(S,[2,19]),t(Vt,d,{7:72}),t(S,[2,26]),t(S,[2,27]),{4:s,5:p,8:8,9:10,10:12,11:13,12:14,13:15,16:g,17:l,19:_,21:[1,73],22:v,24:A,25:B,26:Y,27:R,28:f,29:L,32:25,33:I,35:F,37:V,38:N,42:w,45:rt,48:at,49:nt,50:lt,51:ot,54:J},t(S,[2,21])],defaultActions:{5:[2,1],6:[2,2],46:[2,46],47:[2,47]},parseError:r(function(o,u){if(u.recoverable)this.trace(o);else{var n=new Error(o);throw n.hash=u,n}},"parseError"),parse:r(function(o){var u=this,n=[0],y=[],T=[null],i=[],q=this.table,h="",M=0,W=0,ht=2,Q=1,Dt=i.slice.call(arguments,1),E=Object.create(this.lexer),U={yy:{}};for(var Ct in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ct)&&(U.yy[Ct]=this.yy[Ct]);E.setInput(o,U.yy),U.yy.lexer=E,U.yy.parser=this,typeof E.yylloc>"u"&&(E.yylloc={});var xt=E.yylloc;i.push(xt);var me=E.options&&E.options.ranges;typeof U.yy.parseError=="function"?this.parseError=U.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ke(D){n.length=n.length-2*D,T.length=T.length-D,i.length=i.length-D}r(ke,"popStack");function Mt(){var D;return D=y.pop()||E.lex()||Q,typeof D!="number"&&(D instanceof Array&&(y=D,D=y.pop()),D=u.symbols_[D]||D),D}r(Mt,"lex");for(var m,j,C,At,X={},dt,O,Ut,ft;;){if(j=n[n.length-1],this.defaultActions[j]?C=this.defaultActions[j]:((m===null||typeof m>"u")&&(m=Mt()),C=q[j]&&q[j][m]),typeof C>"u"||!C.length||!C[0]){var Lt="";ft=[];for(dt in q[j])this.terminals_[dt]&&dt>ht&&ft.push("'"+this.terminals_[dt]+"'");E.showPosition?Lt="Parse error on line "+(M+1)+`: +import{g as De,s as Ce}from"./md-chunk-5HRBRIJM-BlmWzKS6.js";import{_ as r,e as z,d as x,g as xe,s as Ae,b as Le,c as Re,p as Ie,q as Oe,l as b,z as Ne,u as we,v as $e,R as Pe}from"./md-index-DwcL-8Z2.js";var Ot=function(){var t=r(function($,o,u,n){for(u=u||{},n=$.length;n--;u[$[n]]=o);return u},"o"),e=[1,2],c=[1,3],a=[1,4],d=[2,4],s=[1,9],p=[1,11],g=[1,16],l=[1,17],_=[1,18],v=[1,19],A=[1,32],B=[1,20],Y=[1,21],R=[1,22],f=[1,23],L=[1,24],I=[1,26],F=[1,27],V=[1,28],N=[1,29],w=[1,30],rt=[1,31],at=[1,34],nt=[1,35],lt=[1,36],ot=[1,37],J=[1,33],S=[1,4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,42,45,48,49,50,51,54],ct=[1,4,5,14,15,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,42,45,48,49,50,51,54],Vt=[4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,42,45,48,49,50,51,54],kt={trace:r(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,SD:6,document:7,line:8,statement:9,classDefStatement:10,styleStatement:11,cssClassStatement:12,idStatement:13,DESCR:14,"-->":15,HIDE_EMPTY:16,scale:17,WIDTH:18,COMPOSIT_STATE:19,STRUCT_START:20,STRUCT_STOP:21,STATE_DESCR:22,AS:23,ID:24,FORK:25,JOIN:26,CHOICE:27,CONCURRENT:28,note:29,notePosition:30,NOTE_TEXT:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,classDef:38,CLASSDEF_ID:39,CLASSDEF_STYLEOPTS:40,DEFAULT:41,style:42,STYLE_IDS:43,STYLEDEF_STYLEOPTS:44,class:45,CLASSENTITY_IDS:46,STYLECLASS:47,direction_tb:48,direction_bt:49,direction_rl:50,direction_lr:51,eol:52,";":53,EDGE_STATE:54,STYLE_SEPARATOR:55,left_of:56,right_of:57,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",6:"SD",14:"DESCR",15:"-->",16:"HIDE_EMPTY",17:"scale",18:"WIDTH",19:"COMPOSIT_STATE",20:"STRUCT_START",21:"STRUCT_STOP",22:"STATE_DESCR",23:"AS",24:"ID",25:"FORK",26:"JOIN",27:"CHOICE",28:"CONCURRENT",29:"note",31:"NOTE_TEXT",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",38:"classDef",39:"CLASSDEF_ID",40:"CLASSDEF_STYLEOPTS",41:"DEFAULT",42:"style",43:"STYLE_IDS",44:"STYLEDEF_STYLEOPTS",45:"class",46:"CLASSENTITY_IDS",47:"STYLECLASS",48:"direction_tb",49:"direction_bt",50:"direction_rl",51:"direction_lr",53:";",54:"EDGE_STATE",55:"STYLE_SEPARATOR",56:"left_of",57:"right_of"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,3],[9,4],[9,1],[9,2],[9,1],[9,4],[9,3],[9,6],[9,1],[9,1],[9,1],[9,1],[9,4],[9,4],[9,1],[9,2],[9,2],[9,1],[10,3],[10,3],[11,3],[12,3],[32,1],[32,1],[32,1],[32,1],[52,1],[52,1],[13,1],[13,1],[13,3],[13,3],[30,1],[30,1]],performAction:r(function(o,u,n,y,T,i,q){var h=i.length-1;switch(T){case 3:return y.setRootDoc(i[h]),i[h];case 4:this.$=[];break;case 5:i[h]!="nl"&&(i[h-1].push(i[h]),this.$=i[h-1]);break;case 6:case 7:this.$=i[h];break;case 8:this.$="nl";break;case 12:this.$=i[h];break;case 13:const Q=i[h-1];Q.description=y.trimColon(i[h]),this.$=Q;break;case 14:this.$={stmt:"relation",state1:i[h-2],state2:i[h]};break;case 15:const Dt=y.trimColon(i[h]);this.$={stmt:"relation",state1:i[h-3],state2:i[h-1],description:Dt};break;case 19:this.$={stmt:"state",id:i[h-3],type:"default",description:"",doc:i[h-1]};break;case 20:var M=i[h],W=i[h-2].trim();if(i[h].match(":")){var ht=i[h].split(":");M=ht[0],W=[W,ht[1]]}this.$={stmt:"state",id:M,type:"default",description:W};break;case 21:this.$={stmt:"state",id:i[h-3],type:"default",description:i[h-5],doc:i[h-1]};break;case 22:this.$={stmt:"state",id:i[h],type:"fork"};break;case 23:this.$={stmt:"state",id:i[h],type:"join"};break;case 24:this.$={stmt:"state",id:i[h],type:"choice"};break;case 25:this.$={stmt:"state",id:y.getDividerId(),type:"divider"};break;case 26:this.$={stmt:"state",id:i[h-1].trim(),note:{position:i[h-2].trim(),text:i[h].trim()}};break;case 29:this.$=i[h].trim(),y.setAccTitle(this.$);break;case 30:case 31:this.$=i[h].trim(),y.setAccDescription(this.$);break;case 32:case 33:this.$={stmt:"classDef",id:i[h-1].trim(),classes:i[h].trim()};break;case 34:this.$={stmt:"style",id:i[h-1].trim(),styleClass:i[h].trim()};break;case 35:this.$={stmt:"applyClass",id:i[h-1].trim(),styleClass:i[h].trim()};break;case 36:y.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 37:y.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 38:y.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 39:y.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 42:case 43:this.$={stmt:"state",id:i[h].trim(),type:"default",description:""};break;case 44:this.$={stmt:"state",id:i[h-2].trim(),classes:[i[h].trim()],type:"default",description:""};break;case 45:this.$={stmt:"state",id:i[h-2].trim(),classes:[i[h].trim()],type:"default",description:""};break}},"anonymous"),table:[{3:1,4:e,5:c,6:a},{1:[3]},{3:5,4:e,5:c,6:a},{3:6,4:e,5:c,6:a},t([1,4,5,16,17,19,22,24,25,26,27,28,29,33,35,37,38,42,45,48,49,50,51,54],d,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:s,5:p,8:8,9:10,10:12,11:13,12:14,13:15,16:g,17:l,19:_,22:v,24:A,25:B,26:Y,27:R,28:f,29:L,32:25,33:I,35:F,37:V,38:N,42:w,45:rt,48:at,49:nt,50:lt,51:ot,54:J},t(S,[2,5]),{9:38,10:12,11:13,12:14,13:15,16:g,17:l,19:_,22:v,24:A,25:B,26:Y,27:R,28:f,29:L,32:25,33:I,35:F,37:V,38:N,42:w,45:rt,48:at,49:nt,50:lt,51:ot,54:J},t(S,[2,7]),t(S,[2,8]),t(S,[2,9]),t(S,[2,10]),t(S,[2,11]),t(S,[2,12],{14:[1,39],15:[1,40]}),t(S,[2,16]),{18:[1,41]},t(S,[2,18],{20:[1,42]}),{23:[1,43]},t(S,[2,22]),t(S,[2,23]),t(S,[2,24]),t(S,[2,25]),{30:44,31:[1,45],56:[1,46],57:[1,47]},t(S,[2,28]),{34:[1,48]},{36:[1,49]},t(S,[2,31]),{39:[1,50],41:[1,51]},{43:[1,52]},{46:[1,53]},t(ct,[2,42],{55:[1,54]}),t(ct,[2,43],{55:[1,55]}),t(S,[2,36]),t(S,[2,37]),t(S,[2,38]),t(S,[2,39]),t(S,[2,6]),t(S,[2,13]),{13:56,24:A,54:J},t(S,[2,17]),t(Vt,d,{7:57}),{24:[1,58]},{24:[1,59]},{23:[1,60]},{24:[2,46]},{24:[2,47]},t(S,[2,29]),t(S,[2,30]),{40:[1,61]},{40:[1,62]},{44:[1,63]},{47:[1,64]},{24:[1,65]},{24:[1,66]},t(S,[2,14],{14:[1,67]}),{4:s,5:p,8:8,9:10,10:12,11:13,12:14,13:15,16:g,17:l,19:_,21:[1,68],22:v,24:A,25:B,26:Y,27:R,28:f,29:L,32:25,33:I,35:F,37:V,38:N,42:w,45:rt,48:at,49:nt,50:lt,51:ot,54:J},t(S,[2,20],{20:[1,69]}),{31:[1,70]},{24:[1,71]},t(S,[2,32]),t(S,[2,33]),t(S,[2,34]),t(S,[2,35]),t(ct,[2,44]),t(ct,[2,45]),t(S,[2,15]),t(S,[2,19]),t(Vt,d,{7:72}),t(S,[2,26]),t(S,[2,27]),{4:s,5:p,8:8,9:10,10:12,11:13,12:14,13:15,16:g,17:l,19:_,21:[1,73],22:v,24:A,25:B,26:Y,27:R,28:f,29:L,32:25,33:I,35:F,37:V,38:N,42:w,45:rt,48:at,49:nt,50:lt,51:ot,54:J},t(S,[2,21])],defaultActions:{5:[2,1],6:[2,2],46:[2,46],47:[2,47]},parseError:r(function(o,u){if(u.recoverable)this.trace(o);else{var n=new Error(o);throw n.hash=u,n}},"parseError"),parse:r(function(o){var u=this,n=[0],y=[],T=[null],i=[],q=this.table,h="",M=0,W=0,ht=2,Q=1,Dt=i.slice.call(arguments,1),E=Object.create(this.lexer),U={yy:{}};for(var Ct in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ct)&&(U.yy[Ct]=this.yy[Ct]);E.setInput(o,U.yy),U.yy.lexer=E,U.yy.parser=this,typeof E.yylloc>"u"&&(E.yylloc={});var xt=E.yylloc;i.push(xt);var me=E.options&&E.options.ranges;typeof U.yy.parseError=="function"?this.parseError=U.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ke(D){n.length=n.length-2*D,T.length=T.length-D,i.length=i.length-D}r(ke,"popStack");function Mt(){var D;return D=y.pop()||E.lex()||Q,typeof D!="number"&&(D instanceof Array&&(y=D,D=y.pop()),D=u.symbols_[D]||D),D}r(Mt,"lex");for(var m,j,C,At,X={},dt,O,Ut,ft;;){if(j=n[n.length-1],this.defaultActions[j]?C=this.defaultActions[j]:((m===null||typeof m>"u")&&(m=Mt()),C=q[j]&&q[j][m]),typeof C>"u"||!C.length||!C[0]){var Lt="";ft=[];for(dt in q[j])this.terminals_[dt]&&dt>ht&&ft.push("'"+this.terminals_[dt]+"'");E.showPosition?Lt="Parse error on line "+(M+1)+`: `+E.showPosition()+` Expecting `+ft.join(", ")+", got '"+(this.terminals_[m]||m)+"'":Lt="Parse error on line "+(M+1)+": Unexpected "+(m==Q?"end of input":"'"+(this.terminals_[m]||m)+"'"),this.parseError(Lt,{text:E.match,token:this.terminals_[m]||m,line:E.yylineno,loc:xt,expected:ft})}if(C[0]instanceof Array&&C.length>1)throw new Error("Parse Error: multiple actions possible at state: "+j+", token: "+m);switch(C[0]){case 1:n.push(m),T.push(E.yytext),i.push(E.yylloc),n.push(C[1]),m=null,W=E.yyleng,h=E.yytext,M=E.yylineno,xt=E.yylloc;break;case 2:if(O=this.productions_[C[1]][1],X.$=T[T.length-O],X._$={first_line:i[i.length-(O||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(O||1)].first_column,last_column:i[i.length-1].last_column},me&&(X._$.range=[i[i.length-(O||1)].range[0],i[i.length-1].range[1]]),At=this.performAction.apply(X,[h,W,M,U.yy,C[1],T,i].concat(Dt)),typeof At<"u")return At;O&&(n=n.slice(0,-1*O*2),T=T.slice(0,-1*O),i=i.slice(0,-1*O)),n.push(this.productions_[C[1]][0]),T.push(X.$),i.push(X._$),Ut=q[n[n.length-2]][n[n.length-1]],n.push(Ut);break;case 3:return!0}}return!0},"parse")},be=function(){var $={EOF:1,parseError:r(function(u,n){if(this.yy.parser)this.yy.parser.parseError(u,n);else throw new Error(u)},"parseError"),setInput:r(function(o,u){return this.yy=u||this.yy||{},this._input=o,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:r(function(){var o=this._input[0];this.yytext+=o,this.yyleng++,this.offset++,this.match+=o,this.matched+=o;var u=o.match(/(?:\r\n?|\n).*/g);return u?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),o},"input"),unput:r(function(o){var u=o.length,n=o.split(/(?:\r\n?|\n)/g);this._input=o+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-u),this.offset-=u;var y=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var T=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===y.length?this.yylloc.first_column:0)+y[y.length-n.length].length-n[0].length:this.yylloc.first_column-u},this.options.ranges&&(this.yylloc.range=[T[0],T[0]+this.yyleng-u]),this.yyleng=this.yytext.length,this},"unput"),more:r(function(){return this._more=!0,this},"more"),reject:r(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:r(function(o){this.unput(this.match.slice(o))},"less"),pastInput:r(function(){var o=this.matched.substr(0,this.matched.length-this.match.length);return(o.length>20?"...":"")+o.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:r(function(){var o=this.match;return o.length<20&&(o+=this._input.substr(0,20-o.length)),(o.substr(0,20)+(o.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:r(function(){var o=this.pastInput(),u=new Array(o.length+1).join("-");return o+this.upcomingInput()+` diff --git a/static/js/md-chunk-ASOPGD6M-CssFS237.js b/static/js/md-chunk-ASOPGD6M-DOjjHUZG.js similarity index 95% rename from static/js/md-chunk-ASOPGD6M-CssFS237.js rename to static/js/md-chunk-ASOPGD6M-DOjjHUZG.js index 0f0370734..f901e2b2a 100644 --- a/static/js/md-chunk-ASOPGD6M-CssFS237.js +++ b/static/js/md-chunk-ASOPGD6M-DOjjHUZG.js @@ -1 +1 @@ -import{_ as n,S as c,m as l}from"./md-index-xmajgeSt.js";var x=n((a,t)=>{const e=a.append("rect");if(e.attr("x",t.x),e.attr("y",t.y),e.attr("fill",t.fill),e.attr("stroke",t.stroke),e.attr("width",t.width),e.attr("height",t.height),t.name&&e.attr("name",t.name),t.rx&&e.attr("rx",t.rx),t.ry&&e.attr("ry",t.ry),t.attrs!==void 0)for(const r in t.attrs)e.attr(r,t.attrs[r]);return t.class&&e.attr("class",t.class),e},"drawRect"),d=n((a,t)=>{const e={x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,stroke:t.stroke,class:"rect"};x(a,e).lower()},"drawBackgroundRect"),g=n((a,t)=>{const e=t.text.replace(c," "),r=a.append("text");r.attr("x",t.x),r.attr("y",t.y),r.attr("class","legend"),r.style("text-anchor",t.anchor),t.class&&r.attr("class",t.class);const s=r.append("tspan");return s.attr("x",t.x+t.textMargin*2),s.text(e),r},"drawText"),m=n((a,t,e,r)=>{const s=a.append("image");s.attr("x",t),s.attr("y",e);const i=l(r);s.attr("xlink:href",i)},"drawImage"),h=n((a,t,e,r)=>{const s=a.append("use");s.attr("x",t),s.attr("y",e);const i=l(r);s.attr("xlink:href",`#${i}`)},"drawEmbeddedImage"),y=n(()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}),"getNoteRect"),p=n(()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0}),"getTextObj");export{p as a,d as b,h as c,x as d,m as e,g as f,y as g}; +import{_ as n,S as c,m as l}from"./md-index-DwcL-8Z2.js";var x=n((a,t)=>{const e=a.append("rect");if(e.attr("x",t.x),e.attr("y",t.y),e.attr("fill",t.fill),e.attr("stroke",t.stroke),e.attr("width",t.width),e.attr("height",t.height),t.name&&e.attr("name",t.name),t.rx&&e.attr("rx",t.rx),t.ry&&e.attr("ry",t.ry),t.attrs!==void 0)for(const r in t.attrs)e.attr(r,t.attrs[r]);return t.class&&e.attr("class",t.class),e},"drawRect"),d=n((a,t)=>{const e={x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,stroke:t.stroke,class:"rect"};x(a,e).lower()},"drawBackgroundRect"),g=n((a,t)=>{const e=t.text.replace(c," "),r=a.append("text");r.attr("x",t.x),r.attr("y",t.y),r.attr("class","legend"),r.style("text-anchor",t.anchor),t.class&&r.attr("class",t.class);const s=r.append("tspan");return s.attr("x",t.x+t.textMargin*2),s.text(e),r},"drawText"),m=n((a,t,e,r)=>{const s=a.append("image");s.attr("x",t),s.attr("y",e);const i=l(r);s.attr("xlink:href",i)},"drawImage"),h=n((a,t,e,r)=>{const s=a.append("use");s.attr("x",t),s.attr("y",e);const i=l(r);s.attr("xlink:href",`#${i}`)},"drawEmbeddedImage"),y=n(()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}),"getNoteRect"),p=n(()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0}),"getTextObj");export{p as a,d as b,h as c,x as d,m as e,g as f,y as g}; diff --git a/static/js/md-chunk-KFBOBJHC-HfI5b6Uw.js b/static/js/md-chunk-KFBOBJHC-Ds-66270.js similarity index 66% rename from static/js/md-chunk-KFBOBJHC-HfI5b6Uw.js rename to static/js/md-chunk-KFBOBJHC-Ds-66270.js index 17011b60d..58863cf43 100644 --- a/static/js/md-chunk-KFBOBJHC-HfI5b6Uw.js +++ b/static/js/md-chunk-KFBOBJHC-Ds-66270.js @@ -1 +1 @@ -import{_ as s}from"./md-index-xmajgeSt.js";var t,e=(t=class{constructor(i){this.init=i,this.records=this.init()}reset(){this.records=this.init()}},s(t,"ImperativeState"),t);export{e as I}; +import{_ as s}from"./md-index-DwcL-8Z2.js";var t,e=(t=class{constructor(i){this.init=i,this.records=this.init()}reset(){this.records=this.init()}},s(t,"ImperativeState"),t);export{e as I}; diff --git a/static/js/md-chunk-T2TOU4HS-B-_XrVCj.js b/static/js/md-chunk-T2TOU4HS-B_GouoIk.js similarity index 99% rename from static/js/md-chunk-T2TOU4HS-B-_XrVCj.js rename to static/js/md-chunk-T2TOU4HS-B_GouoIk.js index 4fd9d0d30..3704b593b 100644 --- a/static/js/md-chunk-T2TOU4HS-B-_XrVCj.js +++ b/static/js/md-chunk-T2TOU4HS-B_GouoIk.js @@ -1,4 +1,4 @@ -import{g as mt,s as Et}from"./md-chunk-5HRBRIJM-ZvjOkuCg.js";import{_ as u,i as bt,d as D,P as z,s as kt,g as yt,b as Tt,c as Ft,p as Dt,q as _t,e as I,v as Bt,l as ze,u as Qe,j as ie,x as St,y as vt,z as Nt}from"./md-index-xmajgeSt.js";var Ke=function(){var e=u(function(O,o,h,d){for(h=h||{},d=O.length;d--;h[O[d]]=o);return h},"o"),i=[1,18],a=[1,19],l=[1,20],c=[1,41],r=[1,42],f=[1,26],A=[1,24],T=[1,25],S=[1,32],ke=[1,33],ye=[1,34],m=[1,45],Te=[1,35],Fe=[1,36],De=[1,37],_e=[1,38],Be=[1,27],Se=[1,28],ve=[1,29],Ne=[1,30],Le=[1,31],E=[1,44],b=[1,46],k=[1,43],F=[1,47],xe=[1,9],p=[1,8,9],re=[1,58],ue=[1,59],le=[1,60],oe=[1,61],ce=[1,62],Ie=[1,63],Oe=[1,64],he=[1,8,9,41],qe=[1,76],G=[1,8,9,12,13,22,39,41,44,66,67,68,69,70,71,72,77,79],pe=[1,8,9,12,13,17,20,22,39,41,44,48,58,66,67,68,69,70,71,72,77,79,84,99,101,102],de=[13,58,84,99,101,102],Q=[13,58,71,72,84,99,101,102],He=[13,58,66,67,68,69,70,84,99,101,102],we=[1,98],W=[1,115],X=[1,107],q=[1,113],H=[1,108],J=[1,109],Z=[1,110],$=[1,111],ee=[1,112],te=[1,114],Je=[22,58,59,80,84,85,86,87,88,89],Ve=[1,8,9,39,41,44],fe=[1,8,9,22],Ze=[1,143],$e=[1,8,9,59],N=[1,8,9,22,58,59,80,84,85,86,87,88,89],Pe={trace:u(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,statements:5,graphConfig:6,CLASS_DIAGRAM:7,NEWLINE:8,EOF:9,statement:10,classLabel:11,SQS:12,STR:13,SQE:14,namespaceName:15,alphaNumToken:16,DOT:17,className:18,classLiteralName:19,GENERICTYPE:20,relationStatement:21,LABEL:22,namespaceStatement:23,classStatement:24,memberStatement:25,annotationStatement:26,clickStatement:27,styleStatement:28,cssClassStatement:29,noteStatement:30,classDefStatement:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,namespaceIdentifier:38,STRUCT_START:39,classStatements:40,STRUCT_STOP:41,NAMESPACE:42,classIdentifier:43,STYLE_SEPARATOR:44,members:45,CLASS:46,ANNOTATION_START:47,ANNOTATION_END:48,MEMBER:49,SEPARATOR:50,relation:51,NOTE_FOR:52,noteText:53,NOTE:54,CLASSDEF:55,classList:56,stylesOpt:57,ALPHA:58,COMMA:59,direction_tb:60,direction_bt:61,direction_rl:62,direction_lr:63,relationType:64,lineType:65,AGGREGATION:66,EXTENSION:67,COMPOSITION:68,DEPENDENCY:69,LOLLIPOP:70,LINE:71,DOTTED_LINE:72,CALLBACK:73,LINK:74,LINK_TARGET:75,CLICK:76,CALLBACK_NAME:77,CALLBACK_ARGS:78,HREF:79,STYLE:80,CSSCLASS:81,style:82,styleComponent:83,NUM:84,COLON:85,UNIT:86,SPACE:87,BRKT:88,PCT:89,commentToken:90,textToken:91,graphCodeTokens:92,textNoTagsToken:93,TAGSTART:94,TAGEND:95,"==":96,"--":97,DEFAULT:98,MINUS:99,keywords:100,UNICODE_TEXT:101,BQUOTE_STR:102,$accept:0,$end:1},terminals_:{2:"error",7:"CLASS_DIAGRAM",8:"NEWLINE",9:"EOF",12:"SQS",13:"STR",14:"SQE",17:"DOT",20:"GENERICTYPE",22:"LABEL",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",39:"STRUCT_START",41:"STRUCT_STOP",42:"NAMESPACE",44:"STYLE_SEPARATOR",46:"CLASS",47:"ANNOTATION_START",48:"ANNOTATION_END",49:"MEMBER",50:"SEPARATOR",52:"NOTE_FOR",54:"NOTE",55:"CLASSDEF",58:"ALPHA",59:"COMMA",60:"direction_tb",61:"direction_bt",62:"direction_rl",63:"direction_lr",66:"AGGREGATION",67:"EXTENSION",68:"COMPOSITION",69:"DEPENDENCY",70:"LOLLIPOP",71:"LINE",72:"DOTTED_LINE",73:"CALLBACK",74:"LINK",75:"LINK_TARGET",76:"CLICK",77:"CALLBACK_NAME",78:"CALLBACK_ARGS",79:"HREF",80:"STYLE",81:"CSSCLASS",84:"NUM",85:"COLON",86:"UNIT",87:"SPACE",88:"BRKT",89:"PCT",92:"graphCodeTokens",94:"TAGSTART",95:"TAGEND",96:"==",97:"--",98:"DEFAULT",99:"MINUS",100:"keywords",101:"UNICODE_TEXT",102:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[4,1],[6,4],[5,1],[5,2],[5,3],[11,3],[15,1],[15,3],[15,2],[18,1],[18,3],[18,1],[18,2],[18,2],[18,2],[10,1],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[23,4],[23,5],[38,2],[40,1],[40,2],[40,3],[24,1],[24,3],[24,4],[24,6],[43,2],[43,3],[26,4],[45,1],[45,2],[25,1],[25,2],[25,1],[25,1],[21,3],[21,4],[21,4],[21,5],[30,3],[30,2],[31,3],[56,1],[56,3],[32,1],[32,1],[32,1],[32,1],[51,3],[51,2],[51,2],[51,1],[64,1],[64,1],[64,1],[64,1],[64,1],[65,1],[65,1],[27,3],[27,4],[27,3],[27,4],[27,4],[27,5],[27,3],[27,4],[27,4],[27,5],[27,4],[27,5],[27,5],[27,6],[28,3],[29,3],[57,1],[57,3],[82,1],[82,2],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[90,1],[90,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[93,1],[93,1],[93,1],[93,1],[16,1],[16,1],[16,1],[16,1],[19,1],[53,1]],performAction:u(function(o,h,d,n,C,t,se){var s=t.length-1;switch(C){case 8:this.$=t[s-1];break;case 9:case 12:case 14:this.$=t[s];break;case 10:case 13:this.$=t[s-2]+"."+t[s];break;case 11:case 15:this.$=t[s-1]+t[s];break;case 16:case 17:this.$=t[s-1]+"~"+t[s]+"~";break;case 18:n.addRelation(t[s]);break;case 19:t[s-1].title=n.cleanupLabel(t[s]),n.addRelation(t[s-1]);break;case 30:this.$=t[s].trim(),n.setAccTitle(this.$);break;case 31:case 32:this.$=t[s].trim(),n.setAccDescription(this.$);break;case 33:n.addClassesToNamespace(t[s-3],t[s-1]);break;case 34:n.addClassesToNamespace(t[s-4],t[s-1]);break;case 35:this.$=t[s],n.addNamespace(t[s]);break;case 36:this.$=[t[s]];break;case 37:this.$=[t[s-1]];break;case 38:t[s].unshift(t[s-2]),this.$=t[s];break;case 40:n.setCssClass(t[s-2],t[s]);break;case 41:n.addMembers(t[s-3],t[s-1]);break;case 42:n.setCssClass(t[s-5],t[s-3]),n.addMembers(t[s-5],t[s-1]);break;case 43:this.$=t[s],n.addClass(t[s]);break;case 44:this.$=t[s-1],n.addClass(t[s-1]),n.setClassLabel(t[s-1],t[s]);break;case 45:n.addAnnotation(t[s],t[s-2]);break;case 46:case 59:this.$=[t[s]];break;case 47:t[s].push(t[s-1]),this.$=t[s];break;case 48:break;case 49:n.addMember(t[s-1],n.cleanupLabel(t[s]));break;case 50:break;case 51:break;case 52:this.$={id1:t[s-2],id2:t[s],relation:t[s-1],relationTitle1:"none",relationTitle2:"none"};break;case 53:this.$={id1:t[s-3],id2:t[s],relation:t[s-1],relationTitle1:t[s-2],relationTitle2:"none"};break;case 54:this.$={id1:t[s-3],id2:t[s],relation:t[s-2],relationTitle1:"none",relationTitle2:t[s-1]};break;case 55:this.$={id1:t[s-4],id2:t[s],relation:t[s-2],relationTitle1:t[s-3],relationTitle2:t[s-1]};break;case 56:n.addNote(t[s],t[s-1]);break;case 57:n.addNote(t[s]);break;case 58:this.$=t[s-2],n.defineClass(t[s-1],t[s]);break;case 60:this.$=t[s-2].concat([t[s]]);break;case 61:n.setDirection("TB");break;case 62:n.setDirection("BT");break;case 63:n.setDirection("RL");break;case 64:n.setDirection("LR");break;case 65:this.$={type1:t[s-2],type2:t[s],lineType:t[s-1]};break;case 66:this.$={type1:"none",type2:t[s],lineType:t[s-1]};break;case 67:this.$={type1:t[s-1],type2:"none",lineType:t[s]};break;case 68:this.$={type1:"none",type2:"none",lineType:t[s]};break;case 69:this.$=n.relationType.AGGREGATION;break;case 70:this.$=n.relationType.EXTENSION;break;case 71:this.$=n.relationType.COMPOSITION;break;case 72:this.$=n.relationType.DEPENDENCY;break;case 73:this.$=n.relationType.LOLLIPOP;break;case 74:this.$=n.lineType.LINE;break;case 75:this.$=n.lineType.DOTTED_LINE;break;case 76:case 82:this.$=t[s-2],n.setClickEvent(t[s-1],t[s]);break;case 77:case 83:this.$=t[s-3],n.setClickEvent(t[s-2],t[s-1]),n.setTooltip(t[s-2],t[s]);break;case 78:this.$=t[s-2],n.setLink(t[s-1],t[s]);break;case 79:this.$=t[s-3],n.setLink(t[s-2],t[s-1],t[s]);break;case 80:this.$=t[s-3],n.setLink(t[s-2],t[s-1]),n.setTooltip(t[s-2],t[s]);break;case 81:this.$=t[s-4],n.setLink(t[s-3],t[s-2],t[s]),n.setTooltip(t[s-3],t[s-1]);break;case 84:this.$=t[s-3],n.setClickEvent(t[s-2],t[s-1],t[s]);break;case 85:this.$=t[s-4],n.setClickEvent(t[s-3],t[s-2],t[s-1]),n.setTooltip(t[s-3],t[s]);break;case 86:this.$=t[s-3],n.setLink(t[s-2],t[s]);break;case 87:this.$=t[s-4],n.setLink(t[s-3],t[s-1],t[s]);break;case 88:this.$=t[s-4],n.setLink(t[s-3],t[s-1]),n.setTooltip(t[s-3],t[s]);break;case 89:this.$=t[s-5],n.setLink(t[s-4],t[s-2],t[s]),n.setTooltip(t[s-4],t[s-1]);break;case 90:this.$=t[s-2],n.setCssStyle(t[s-1],t[s]);break;case 91:n.setCssClass(t[s-1],t[s]);break;case 92:this.$=[t[s]];break;case 93:t[s-2].push(t[s]),this.$=t[s-2];break;case 95:this.$=t[s-1]+t[s];break}},"anonymous"),table:[{3:1,4:2,5:3,6:4,7:[1,6],10:5,16:39,18:21,19:40,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:i,35:a,37:l,38:22,42:c,43:23,46:r,47:f,49:A,50:T,52:S,54:ke,55:ye,58:m,60:Te,61:Fe,62:De,63:_e,73:Be,74:Se,76:ve,80:Ne,81:Le,84:E,99:b,101:k,102:F},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},e(xe,[2,5],{8:[1,48]}),{8:[1,49]},e(p,[2,18],{22:[1,50]}),e(p,[2,20]),e(p,[2,21]),e(p,[2,22]),e(p,[2,23]),e(p,[2,24]),e(p,[2,25]),e(p,[2,26]),e(p,[2,27]),e(p,[2,28]),e(p,[2,29]),{34:[1,51]},{36:[1,52]},e(p,[2,32]),e(p,[2,48],{51:53,64:56,65:57,13:[1,54],22:[1,55],66:re,67:ue,68:le,69:oe,70:ce,71:Ie,72:Oe}),{39:[1,65]},e(he,[2,39],{39:[1,67],44:[1,66]}),e(p,[2,50]),e(p,[2,51]),{16:68,58:m,84:E,99:b,101:k},{16:39,18:69,19:40,58:m,84:E,99:b,101:k,102:F},{16:39,18:70,19:40,58:m,84:E,99:b,101:k,102:F},{16:39,18:71,19:40,58:m,84:E,99:b,101:k,102:F},{58:[1,72]},{13:[1,73]},{16:39,18:74,19:40,58:m,84:E,99:b,101:k,102:F},{13:qe,53:75},{56:77,58:[1,78]},e(p,[2,61]),e(p,[2,62]),e(p,[2,63]),e(p,[2,64]),e(G,[2,12],{16:39,19:40,18:80,17:[1,79],20:[1,81],58:m,84:E,99:b,101:k,102:F}),e(G,[2,14],{20:[1,82]}),{15:83,16:84,58:m,84:E,99:b,101:k},{16:39,18:85,19:40,58:m,84:E,99:b,101:k,102:F},e(pe,[2,118]),e(pe,[2,119]),e(pe,[2,120]),e(pe,[2,121]),e([1,8,9,12,13,20,22,39,41,44,66,67,68,69,70,71,72,77,79],[2,122]),e(xe,[2,6],{10:5,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,18:21,38:22,43:23,16:39,19:40,5:86,33:i,35:a,37:l,42:c,46:r,47:f,49:A,50:T,52:S,54:ke,55:ye,58:m,60:Te,61:Fe,62:De,63:_e,73:Be,74:Se,76:ve,80:Ne,81:Le,84:E,99:b,101:k,102:F}),{5:87,10:5,16:39,18:21,19:40,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:i,35:a,37:l,38:22,42:c,43:23,46:r,47:f,49:A,50:T,52:S,54:ke,55:ye,58:m,60:Te,61:Fe,62:De,63:_e,73:Be,74:Se,76:ve,80:Ne,81:Le,84:E,99:b,101:k,102:F},e(p,[2,19]),e(p,[2,30]),e(p,[2,31]),{13:[1,89],16:39,18:88,19:40,58:m,84:E,99:b,101:k,102:F},{51:90,64:56,65:57,66:re,67:ue,68:le,69:oe,70:ce,71:Ie,72:Oe},e(p,[2,49]),{65:91,71:Ie,72:Oe},e(de,[2,68],{64:92,66:re,67:ue,68:le,69:oe,70:ce}),e(Q,[2,69]),e(Q,[2,70]),e(Q,[2,71]),e(Q,[2,72]),e(Q,[2,73]),e(He,[2,74]),e(He,[2,75]),{8:[1,94],24:95,40:93,43:23,46:r},{16:96,58:m,84:E,99:b,101:k},{45:97,49:we},{48:[1,99]},{13:[1,100]},{13:[1,101]},{77:[1,102],79:[1,103]},{22:W,57:104,58:X,80:q,82:105,83:106,84:H,85:J,86:Z,87:$,88:ee,89:te},{58:[1,116]},{13:qe,53:117},e(p,[2,57]),e(p,[2,123]),{22:W,57:118,58:X,59:[1,119],80:q,82:105,83:106,84:H,85:J,86:Z,87:$,88:ee,89:te},e(Je,[2,59]),{16:39,18:120,19:40,58:m,84:E,99:b,101:k,102:F},e(G,[2,15]),e(G,[2,16]),e(G,[2,17]),{39:[2,35]},{15:122,16:84,17:[1,121],39:[2,9],58:m,84:E,99:b,101:k},e(Ve,[2,43],{11:123,12:[1,124]}),e(xe,[2,7]),{9:[1,125]},e(fe,[2,52]),{16:39,18:126,19:40,58:m,84:E,99:b,101:k,102:F},{13:[1,128],16:39,18:127,19:40,58:m,84:E,99:b,101:k,102:F},e(de,[2,67],{64:129,66:re,67:ue,68:le,69:oe,70:ce}),e(de,[2,66]),{41:[1,130]},{24:95,40:131,43:23,46:r},{8:[1,132],41:[2,36]},e(he,[2,40],{39:[1,133]}),{41:[1,134]},{41:[2,46],45:135,49:we},{16:39,18:136,19:40,58:m,84:E,99:b,101:k,102:F},e(p,[2,76],{13:[1,137]}),e(p,[2,78],{13:[1,139],75:[1,138]}),e(p,[2,82],{13:[1,140],78:[1,141]}),{13:[1,142]},e(p,[2,90],{59:Ze}),e($e,[2,92],{83:144,22:W,58:X,80:q,84:H,85:J,86:Z,87:$,88:ee,89:te}),e(N,[2,94]),e(N,[2,96]),e(N,[2,97]),e(N,[2,98]),e(N,[2,99]),e(N,[2,100]),e(N,[2,101]),e(N,[2,102]),e(N,[2,103]),e(N,[2,104]),e(p,[2,91]),e(p,[2,56]),e(p,[2,58],{59:Ze}),{58:[1,145]},e(G,[2,13]),{15:146,16:84,58:m,84:E,99:b,101:k},{39:[2,11]},e(Ve,[2,44]),{13:[1,147]},{1:[2,4]},e(fe,[2,54]),e(fe,[2,53]),{16:39,18:148,19:40,58:m,84:E,99:b,101:k,102:F},e(de,[2,65]),e(p,[2,33]),{41:[1,149]},{24:95,40:150,41:[2,37],43:23,46:r},{45:151,49:we},e(he,[2,41]),{41:[2,47]},e(p,[2,45]),e(p,[2,77]),e(p,[2,79]),e(p,[2,80],{75:[1,152]}),e(p,[2,83]),e(p,[2,84],{13:[1,153]}),e(p,[2,86],{13:[1,155],75:[1,154]}),{22:W,58:X,80:q,82:156,83:106,84:H,85:J,86:Z,87:$,88:ee,89:te},e(N,[2,95]),e(Je,[2,60]),{39:[2,10]},{14:[1,157]},e(fe,[2,55]),e(p,[2,34]),{41:[2,38]},{41:[1,158]},e(p,[2,81]),e(p,[2,85]),e(p,[2,87]),e(p,[2,88],{75:[1,159]}),e($e,[2,93],{83:144,22:W,58:X,80:q,84:H,85:J,86:Z,87:$,88:ee,89:te}),e(Ve,[2,8]),e(he,[2,42]),e(p,[2,89])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],83:[2,35],122:[2,11],125:[2,4],135:[2,47],146:[2,10],150:[2,38]},parseError:u(function(o,h){if(h.recoverable)this.trace(o);else{var d=new Error(o);throw d.hash=h,d}},"parseError"),parse:u(function(o){var h=this,d=[0],n=[],C=[null],t=[],se=this.table,s="",ge=0,et=0,ft=2,tt=1,At=t.slice.call(arguments,1),y=Object.create(this.lexer),V={yy:{}};for(var Re in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Re)&&(V.yy[Re]=this.yy[Re]);y.setInput(o,V.yy),V.yy.lexer=y,V.yy.parser=this,typeof y.yylloc>"u"&&(y.yylloc={});var Me=y.yylloc;t.push(Me);var gt=y.options&&y.options.ranges;typeof V.yy.parseError=="function"?this.parseError=V.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Ct(B){d.length=d.length-2*B,C.length=C.length-B,t.length=t.length-B}u(Ct,"popStack");function st(){var B;return B=n.pop()||y.lex()||tt,typeof B!="number"&&(B instanceof Array&&(n=B,B=n.pop()),B=h.symbols_[B]||B),B}u(st,"lex");for(var _,P,v,Ge,U={},Ce,x,it,me;;){if(P=d[d.length-1],this.defaultActions[P]?v=this.defaultActions[P]:((_===null||typeof _>"u")&&(_=st()),v=se[P]&&se[P][_]),typeof v>"u"||!v.length||!v[0]){var Ue="";me=[];for(Ce in se[P])this.terminals_[Ce]&&Ce>ft&&me.push("'"+this.terminals_[Ce]+"'");y.showPosition?Ue="Parse error on line "+(ge+1)+`: +import{g as mt,s as Et}from"./md-chunk-5HRBRIJM-BlmWzKS6.js";import{_ as u,i as bt,d as D,P as z,s as kt,g as yt,b as Tt,c as Ft,p as Dt,q as _t,e as I,v as Bt,l as ze,u as Qe,j as ie,x as St,y as vt,z as Nt}from"./md-index-DwcL-8Z2.js";var Ke=function(){var e=u(function(O,o,h,d){for(h=h||{},d=O.length;d--;h[O[d]]=o);return h},"o"),i=[1,18],a=[1,19],l=[1,20],c=[1,41],r=[1,42],f=[1,26],A=[1,24],T=[1,25],S=[1,32],ke=[1,33],ye=[1,34],m=[1,45],Te=[1,35],Fe=[1,36],De=[1,37],_e=[1,38],Be=[1,27],Se=[1,28],ve=[1,29],Ne=[1,30],Le=[1,31],E=[1,44],b=[1,46],k=[1,43],F=[1,47],xe=[1,9],p=[1,8,9],re=[1,58],ue=[1,59],le=[1,60],oe=[1,61],ce=[1,62],Ie=[1,63],Oe=[1,64],he=[1,8,9,41],qe=[1,76],G=[1,8,9,12,13,22,39,41,44,66,67,68,69,70,71,72,77,79],pe=[1,8,9,12,13,17,20,22,39,41,44,48,58,66,67,68,69,70,71,72,77,79,84,99,101,102],de=[13,58,84,99,101,102],Q=[13,58,71,72,84,99,101,102],He=[13,58,66,67,68,69,70,84,99,101,102],we=[1,98],W=[1,115],X=[1,107],q=[1,113],H=[1,108],J=[1,109],Z=[1,110],$=[1,111],ee=[1,112],te=[1,114],Je=[22,58,59,80,84,85,86,87,88,89],Ve=[1,8,9,39,41,44],fe=[1,8,9,22],Ze=[1,143],$e=[1,8,9,59],N=[1,8,9,22,58,59,80,84,85,86,87,88,89],Pe={trace:u(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,statements:5,graphConfig:6,CLASS_DIAGRAM:7,NEWLINE:8,EOF:9,statement:10,classLabel:11,SQS:12,STR:13,SQE:14,namespaceName:15,alphaNumToken:16,DOT:17,className:18,classLiteralName:19,GENERICTYPE:20,relationStatement:21,LABEL:22,namespaceStatement:23,classStatement:24,memberStatement:25,annotationStatement:26,clickStatement:27,styleStatement:28,cssClassStatement:29,noteStatement:30,classDefStatement:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,namespaceIdentifier:38,STRUCT_START:39,classStatements:40,STRUCT_STOP:41,NAMESPACE:42,classIdentifier:43,STYLE_SEPARATOR:44,members:45,CLASS:46,ANNOTATION_START:47,ANNOTATION_END:48,MEMBER:49,SEPARATOR:50,relation:51,NOTE_FOR:52,noteText:53,NOTE:54,CLASSDEF:55,classList:56,stylesOpt:57,ALPHA:58,COMMA:59,direction_tb:60,direction_bt:61,direction_rl:62,direction_lr:63,relationType:64,lineType:65,AGGREGATION:66,EXTENSION:67,COMPOSITION:68,DEPENDENCY:69,LOLLIPOP:70,LINE:71,DOTTED_LINE:72,CALLBACK:73,LINK:74,LINK_TARGET:75,CLICK:76,CALLBACK_NAME:77,CALLBACK_ARGS:78,HREF:79,STYLE:80,CSSCLASS:81,style:82,styleComponent:83,NUM:84,COLON:85,UNIT:86,SPACE:87,BRKT:88,PCT:89,commentToken:90,textToken:91,graphCodeTokens:92,textNoTagsToken:93,TAGSTART:94,TAGEND:95,"==":96,"--":97,DEFAULT:98,MINUS:99,keywords:100,UNICODE_TEXT:101,BQUOTE_STR:102,$accept:0,$end:1},terminals_:{2:"error",7:"CLASS_DIAGRAM",8:"NEWLINE",9:"EOF",12:"SQS",13:"STR",14:"SQE",17:"DOT",20:"GENERICTYPE",22:"LABEL",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",39:"STRUCT_START",41:"STRUCT_STOP",42:"NAMESPACE",44:"STYLE_SEPARATOR",46:"CLASS",47:"ANNOTATION_START",48:"ANNOTATION_END",49:"MEMBER",50:"SEPARATOR",52:"NOTE_FOR",54:"NOTE",55:"CLASSDEF",58:"ALPHA",59:"COMMA",60:"direction_tb",61:"direction_bt",62:"direction_rl",63:"direction_lr",66:"AGGREGATION",67:"EXTENSION",68:"COMPOSITION",69:"DEPENDENCY",70:"LOLLIPOP",71:"LINE",72:"DOTTED_LINE",73:"CALLBACK",74:"LINK",75:"LINK_TARGET",76:"CLICK",77:"CALLBACK_NAME",78:"CALLBACK_ARGS",79:"HREF",80:"STYLE",81:"CSSCLASS",84:"NUM",85:"COLON",86:"UNIT",87:"SPACE",88:"BRKT",89:"PCT",92:"graphCodeTokens",94:"TAGSTART",95:"TAGEND",96:"==",97:"--",98:"DEFAULT",99:"MINUS",100:"keywords",101:"UNICODE_TEXT",102:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[4,1],[6,4],[5,1],[5,2],[5,3],[11,3],[15,1],[15,3],[15,2],[18,1],[18,3],[18,1],[18,2],[18,2],[18,2],[10,1],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[23,4],[23,5],[38,2],[40,1],[40,2],[40,3],[24,1],[24,3],[24,4],[24,6],[43,2],[43,3],[26,4],[45,1],[45,2],[25,1],[25,2],[25,1],[25,1],[21,3],[21,4],[21,4],[21,5],[30,3],[30,2],[31,3],[56,1],[56,3],[32,1],[32,1],[32,1],[32,1],[51,3],[51,2],[51,2],[51,1],[64,1],[64,1],[64,1],[64,1],[64,1],[65,1],[65,1],[27,3],[27,4],[27,3],[27,4],[27,4],[27,5],[27,3],[27,4],[27,4],[27,5],[27,4],[27,5],[27,5],[27,6],[28,3],[29,3],[57,1],[57,3],[82,1],[82,2],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[90,1],[90,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[93,1],[93,1],[93,1],[93,1],[16,1],[16,1],[16,1],[16,1],[19,1],[53,1]],performAction:u(function(o,h,d,n,C,t,se){var s=t.length-1;switch(C){case 8:this.$=t[s-1];break;case 9:case 12:case 14:this.$=t[s];break;case 10:case 13:this.$=t[s-2]+"."+t[s];break;case 11:case 15:this.$=t[s-1]+t[s];break;case 16:case 17:this.$=t[s-1]+"~"+t[s]+"~";break;case 18:n.addRelation(t[s]);break;case 19:t[s-1].title=n.cleanupLabel(t[s]),n.addRelation(t[s-1]);break;case 30:this.$=t[s].trim(),n.setAccTitle(this.$);break;case 31:case 32:this.$=t[s].trim(),n.setAccDescription(this.$);break;case 33:n.addClassesToNamespace(t[s-3],t[s-1]);break;case 34:n.addClassesToNamespace(t[s-4],t[s-1]);break;case 35:this.$=t[s],n.addNamespace(t[s]);break;case 36:this.$=[t[s]];break;case 37:this.$=[t[s-1]];break;case 38:t[s].unshift(t[s-2]),this.$=t[s];break;case 40:n.setCssClass(t[s-2],t[s]);break;case 41:n.addMembers(t[s-3],t[s-1]);break;case 42:n.setCssClass(t[s-5],t[s-3]),n.addMembers(t[s-5],t[s-1]);break;case 43:this.$=t[s],n.addClass(t[s]);break;case 44:this.$=t[s-1],n.addClass(t[s-1]),n.setClassLabel(t[s-1],t[s]);break;case 45:n.addAnnotation(t[s],t[s-2]);break;case 46:case 59:this.$=[t[s]];break;case 47:t[s].push(t[s-1]),this.$=t[s];break;case 48:break;case 49:n.addMember(t[s-1],n.cleanupLabel(t[s]));break;case 50:break;case 51:break;case 52:this.$={id1:t[s-2],id2:t[s],relation:t[s-1],relationTitle1:"none",relationTitle2:"none"};break;case 53:this.$={id1:t[s-3],id2:t[s],relation:t[s-1],relationTitle1:t[s-2],relationTitle2:"none"};break;case 54:this.$={id1:t[s-3],id2:t[s],relation:t[s-2],relationTitle1:"none",relationTitle2:t[s-1]};break;case 55:this.$={id1:t[s-4],id2:t[s],relation:t[s-2],relationTitle1:t[s-3],relationTitle2:t[s-1]};break;case 56:n.addNote(t[s],t[s-1]);break;case 57:n.addNote(t[s]);break;case 58:this.$=t[s-2],n.defineClass(t[s-1],t[s]);break;case 60:this.$=t[s-2].concat([t[s]]);break;case 61:n.setDirection("TB");break;case 62:n.setDirection("BT");break;case 63:n.setDirection("RL");break;case 64:n.setDirection("LR");break;case 65:this.$={type1:t[s-2],type2:t[s],lineType:t[s-1]};break;case 66:this.$={type1:"none",type2:t[s],lineType:t[s-1]};break;case 67:this.$={type1:t[s-1],type2:"none",lineType:t[s]};break;case 68:this.$={type1:"none",type2:"none",lineType:t[s]};break;case 69:this.$=n.relationType.AGGREGATION;break;case 70:this.$=n.relationType.EXTENSION;break;case 71:this.$=n.relationType.COMPOSITION;break;case 72:this.$=n.relationType.DEPENDENCY;break;case 73:this.$=n.relationType.LOLLIPOP;break;case 74:this.$=n.lineType.LINE;break;case 75:this.$=n.lineType.DOTTED_LINE;break;case 76:case 82:this.$=t[s-2],n.setClickEvent(t[s-1],t[s]);break;case 77:case 83:this.$=t[s-3],n.setClickEvent(t[s-2],t[s-1]),n.setTooltip(t[s-2],t[s]);break;case 78:this.$=t[s-2],n.setLink(t[s-1],t[s]);break;case 79:this.$=t[s-3],n.setLink(t[s-2],t[s-1],t[s]);break;case 80:this.$=t[s-3],n.setLink(t[s-2],t[s-1]),n.setTooltip(t[s-2],t[s]);break;case 81:this.$=t[s-4],n.setLink(t[s-3],t[s-2],t[s]),n.setTooltip(t[s-3],t[s-1]);break;case 84:this.$=t[s-3],n.setClickEvent(t[s-2],t[s-1],t[s]);break;case 85:this.$=t[s-4],n.setClickEvent(t[s-3],t[s-2],t[s-1]),n.setTooltip(t[s-3],t[s]);break;case 86:this.$=t[s-3],n.setLink(t[s-2],t[s]);break;case 87:this.$=t[s-4],n.setLink(t[s-3],t[s-1],t[s]);break;case 88:this.$=t[s-4],n.setLink(t[s-3],t[s-1]),n.setTooltip(t[s-3],t[s]);break;case 89:this.$=t[s-5],n.setLink(t[s-4],t[s-2],t[s]),n.setTooltip(t[s-4],t[s-1]);break;case 90:this.$=t[s-2],n.setCssStyle(t[s-1],t[s]);break;case 91:n.setCssClass(t[s-1],t[s]);break;case 92:this.$=[t[s]];break;case 93:t[s-2].push(t[s]),this.$=t[s-2];break;case 95:this.$=t[s-1]+t[s];break}},"anonymous"),table:[{3:1,4:2,5:3,6:4,7:[1,6],10:5,16:39,18:21,19:40,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:i,35:a,37:l,38:22,42:c,43:23,46:r,47:f,49:A,50:T,52:S,54:ke,55:ye,58:m,60:Te,61:Fe,62:De,63:_e,73:Be,74:Se,76:ve,80:Ne,81:Le,84:E,99:b,101:k,102:F},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},e(xe,[2,5],{8:[1,48]}),{8:[1,49]},e(p,[2,18],{22:[1,50]}),e(p,[2,20]),e(p,[2,21]),e(p,[2,22]),e(p,[2,23]),e(p,[2,24]),e(p,[2,25]),e(p,[2,26]),e(p,[2,27]),e(p,[2,28]),e(p,[2,29]),{34:[1,51]},{36:[1,52]},e(p,[2,32]),e(p,[2,48],{51:53,64:56,65:57,13:[1,54],22:[1,55],66:re,67:ue,68:le,69:oe,70:ce,71:Ie,72:Oe}),{39:[1,65]},e(he,[2,39],{39:[1,67],44:[1,66]}),e(p,[2,50]),e(p,[2,51]),{16:68,58:m,84:E,99:b,101:k},{16:39,18:69,19:40,58:m,84:E,99:b,101:k,102:F},{16:39,18:70,19:40,58:m,84:E,99:b,101:k,102:F},{16:39,18:71,19:40,58:m,84:E,99:b,101:k,102:F},{58:[1,72]},{13:[1,73]},{16:39,18:74,19:40,58:m,84:E,99:b,101:k,102:F},{13:qe,53:75},{56:77,58:[1,78]},e(p,[2,61]),e(p,[2,62]),e(p,[2,63]),e(p,[2,64]),e(G,[2,12],{16:39,19:40,18:80,17:[1,79],20:[1,81],58:m,84:E,99:b,101:k,102:F}),e(G,[2,14],{20:[1,82]}),{15:83,16:84,58:m,84:E,99:b,101:k},{16:39,18:85,19:40,58:m,84:E,99:b,101:k,102:F},e(pe,[2,118]),e(pe,[2,119]),e(pe,[2,120]),e(pe,[2,121]),e([1,8,9,12,13,20,22,39,41,44,66,67,68,69,70,71,72,77,79],[2,122]),e(xe,[2,6],{10:5,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,18:21,38:22,43:23,16:39,19:40,5:86,33:i,35:a,37:l,42:c,46:r,47:f,49:A,50:T,52:S,54:ke,55:ye,58:m,60:Te,61:Fe,62:De,63:_e,73:Be,74:Se,76:ve,80:Ne,81:Le,84:E,99:b,101:k,102:F}),{5:87,10:5,16:39,18:21,19:40,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:i,35:a,37:l,38:22,42:c,43:23,46:r,47:f,49:A,50:T,52:S,54:ke,55:ye,58:m,60:Te,61:Fe,62:De,63:_e,73:Be,74:Se,76:ve,80:Ne,81:Le,84:E,99:b,101:k,102:F},e(p,[2,19]),e(p,[2,30]),e(p,[2,31]),{13:[1,89],16:39,18:88,19:40,58:m,84:E,99:b,101:k,102:F},{51:90,64:56,65:57,66:re,67:ue,68:le,69:oe,70:ce,71:Ie,72:Oe},e(p,[2,49]),{65:91,71:Ie,72:Oe},e(de,[2,68],{64:92,66:re,67:ue,68:le,69:oe,70:ce}),e(Q,[2,69]),e(Q,[2,70]),e(Q,[2,71]),e(Q,[2,72]),e(Q,[2,73]),e(He,[2,74]),e(He,[2,75]),{8:[1,94],24:95,40:93,43:23,46:r},{16:96,58:m,84:E,99:b,101:k},{45:97,49:we},{48:[1,99]},{13:[1,100]},{13:[1,101]},{77:[1,102],79:[1,103]},{22:W,57:104,58:X,80:q,82:105,83:106,84:H,85:J,86:Z,87:$,88:ee,89:te},{58:[1,116]},{13:qe,53:117},e(p,[2,57]),e(p,[2,123]),{22:W,57:118,58:X,59:[1,119],80:q,82:105,83:106,84:H,85:J,86:Z,87:$,88:ee,89:te},e(Je,[2,59]),{16:39,18:120,19:40,58:m,84:E,99:b,101:k,102:F},e(G,[2,15]),e(G,[2,16]),e(G,[2,17]),{39:[2,35]},{15:122,16:84,17:[1,121],39:[2,9],58:m,84:E,99:b,101:k},e(Ve,[2,43],{11:123,12:[1,124]}),e(xe,[2,7]),{9:[1,125]},e(fe,[2,52]),{16:39,18:126,19:40,58:m,84:E,99:b,101:k,102:F},{13:[1,128],16:39,18:127,19:40,58:m,84:E,99:b,101:k,102:F},e(de,[2,67],{64:129,66:re,67:ue,68:le,69:oe,70:ce}),e(de,[2,66]),{41:[1,130]},{24:95,40:131,43:23,46:r},{8:[1,132],41:[2,36]},e(he,[2,40],{39:[1,133]}),{41:[1,134]},{41:[2,46],45:135,49:we},{16:39,18:136,19:40,58:m,84:E,99:b,101:k,102:F},e(p,[2,76],{13:[1,137]}),e(p,[2,78],{13:[1,139],75:[1,138]}),e(p,[2,82],{13:[1,140],78:[1,141]}),{13:[1,142]},e(p,[2,90],{59:Ze}),e($e,[2,92],{83:144,22:W,58:X,80:q,84:H,85:J,86:Z,87:$,88:ee,89:te}),e(N,[2,94]),e(N,[2,96]),e(N,[2,97]),e(N,[2,98]),e(N,[2,99]),e(N,[2,100]),e(N,[2,101]),e(N,[2,102]),e(N,[2,103]),e(N,[2,104]),e(p,[2,91]),e(p,[2,56]),e(p,[2,58],{59:Ze}),{58:[1,145]},e(G,[2,13]),{15:146,16:84,58:m,84:E,99:b,101:k},{39:[2,11]},e(Ve,[2,44]),{13:[1,147]},{1:[2,4]},e(fe,[2,54]),e(fe,[2,53]),{16:39,18:148,19:40,58:m,84:E,99:b,101:k,102:F},e(de,[2,65]),e(p,[2,33]),{41:[1,149]},{24:95,40:150,41:[2,37],43:23,46:r},{45:151,49:we},e(he,[2,41]),{41:[2,47]},e(p,[2,45]),e(p,[2,77]),e(p,[2,79]),e(p,[2,80],{75:[1,152]}),e(p,[2,83]),e(p,[2,84],{13:[1,153]}),e(p,[2,86],{13:[1,155],75:[1,154]}),{22:W,58:X,80:q,82:156,83:106,84:H,85:J,86:Z,87:$,88:ee,89:te},e(N,[2,95]),e(Je,[2,60]),{39:[2,10]},{14:[1,157]},e(fe,[2,55]),e(p,[2,34]),{41:[2,38]},{41:[1,158]},e(p,[2,81]),e(p,[2,85]),e(p,[2,87]),e(p,[2,88],{75:[1,159]}),e($e,[2,93],{83:144,22:W,58:X,80:q,84:H,85:J,86:Z,87:$,88:ee,89:te}),e(Ve,[2,8]),e(he,[2,42]),e(p,[2,89])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],83:[2,35],122:[2,11],125:[2,4],135:[2,47],146:[2,10],150:[2,38]},parseError:u(function(o,h){if(h.recoverable)this.trace(o);else{var d=new Error(o);throw d.hash=h,d}},"parseError"),parse:u(function(o){var h=this,d=[0],n=[],C=[null],t=[],se=this.table,s="",ge=0,et=0,ft=2,tt=1,At=t.slice.call(arguments,1),y=Object.create(this.lexer),V={yy:{}};for(var Re in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Re)&&(V.yy[Re]=this.yy[Re]);y.setInput(o,V.yy),V.yy.lexer=y,V.yy.parser=this,typeof y.yylloc>"u"&&(y.yylloc={});var Me=y.yylloc;t.push(Me);var gt=y.options&&y.options.ranges;typeof V.yy.parseError=="function"?this.parseError=V.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Ct(B){d.length=d.length-2*B,C.length=C.length-B,t.length=t.length-B}u(Ct,"popStack");function st(){var B;return B=n.pop()||y.lex()||tt,typeof B!="number"&&(B instanceof Array&&(n=B,B=n.pop()),B=h.symbols_[B]||B),B}u(st,"lex");for(var _,P,v,Ge,U={},Ce,x,it,me;;){if(P=d[d.length-1],this.defaultActions[P]?v=this.defaultActions[P]:((_===null||typeof _>"u")&&(_=st()),v=se[P]&&se[P][_]),typeof v>"u"||!v.length||!v[0]){var Ue="";me=[];for(Ce in se[P])this.terminals_[Ce]&&Ce>ft&&me.push("'"+this.terminals_[Ce]+"'");y.showPosition?Ue="Parse error on line "+(ge+1)+`: `+y.showPosition()+` Expecting `+me.join(", ")+", got '"+(this.terminals_[_]||_)+"'":Ue="Parse error on line "+(ge+1)+": Unexpected "+(_==tt?"end of input":"'"+(this.terminals_[_]||_)+"'"),this.parseError(Ue,{text:y.match,token:this.terminals_[_]||_,line:y.yylineno,loc:Me,expected:me})}if(v[0]instanceof Array&&v.length>1)throw new Error("Parse Error: multiple actions possible at state: "+P+", token: "+_);switch(v[0]){case 1:d.push(_),C.push(y.yytext),t.push(y.yylloc),d.push(v[1]),_=null,et=y.yyleng,s=y.yytext,ge=y.yylineno,Me=y.yylloc;break;case 2:if(x=this.productions_[v[1]][1],U.$=C[C.length-x],U._$={first_line:t[t.length-(x||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(x||1)].first_column,last_column:t[t.length-1].last_column},gt&&(U._$.range=[t[t.length-(x||1)].range[0],t[t.length-1].range[1]]),Ge=this.performAction.apply(U,[s,et,ge,V.yy,v[1],C,t].concat(At)),typeof Ge<"u")return Ge;x&&(d=d.slice(0,-1*x*2),C=C.slice(0,-1*x),t=t.slice(0,-1*x)),d.push(this.productions_[v[1]][0]),C.push(U.$),t.push(U._$),it=se[d[d.length-2]][d[d.length-1]],d.push(it);break;case 3:return!0}}return!0},"parse")},dt=function(){var O={EOF:1,parseError:u(function(h,d){if(this.yy.parser)this.yy.parser.parseError(h,d);else throw new Error(h)},"parseError"),setInput:u(function(o,h){return this.yy=h||this.yy||{},this._input=o,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:u(function(){var o=this._input[0];this.yytext+=o,this.yyleng++,this.offset++,this.match+=o,this.matched+=o;var h=o.match(/(?:\r\n?|\n).*/g);return h?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),o},"input"),unput:u(function(o){var h=o.length,d=o.split(/(?:\r\n?|\n)/g);this._input=o+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-h),this.offset-=h;var n=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),d.length-1&&(this.yylineno-=d.length-1);var C=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:d?(d.length===n.length?this.yylloc.first_column:0)+n[n.length-d.length].length-d[0].length:this.yylloc.first_column-h},this.options.ranges&&(this.yylloc.range=[C[0],C[0]+this.yyleng-h]),this.yyleng=this.yytext.length,this},"unput"),more:u(function(){return this._more=!0,this},"more"),reject:u(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:u(function(o){this.unput(this.match.slice(o))},"less"),pastInput:u(function(){var o=this.matched.substr(0,this.matched.length-this.match.length);return(o.length>20?"...":"")+o.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:u(function(){var o=this.match;return o.length<20&&(o+=this._input.substr(0,20-o.length)),(o.substr(0,20)+(o.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:u(function(){var o=this.pastInput(),h=new Array(o.length+1).join("-");return o+this.upcomingInput()+` diff --git a/static/js/md-chunk-TMUBEWPD-CtrfoVMV.js b/static/js/md-chunk-TMUBEWPD-CpBAAqu6.js similarity index 78% rename from static/js/md-chunk-TMUBEWPD-CtrfoVMV.js rename to static/js/md-chunk-TMUBEWPD-CpBAAqu6.js index 9872362b5..b7a02bdfa 100644 --- a/static/js/md-chunk-TMUBEWPD-CtrfoVMV.js +++ b/static/js/md-chunk-TMUBEWPD-CpBAAqu6.js @@ -1 +1 @@ -import{_ as l}from"./md-index-xmajgeSt.js";function m(e,c){var i,t,o;e.accDescr&&((i=c.setAccDescription)==null||i.call(c,e.accDescr)),e.accTitle&&((t=c.setAccTitle)==null||t.call(c,e.accTitle)),e.title&&((o=c.setDiagramTitle)==null||o.call(c,e.title))}l(m,"populateCommonDb");export{m as p}; +import{_ as l}from"./md-index-DwcL-8Z2.js";function m(e,c){var i,t,o;e.accDescr&&((i=c.setAccDescription)==null||i.call(c,e.accDescr)),e.accTitle&&((t=c.setAccTitle)==null||t.call(c,e.accTitle)),e.title&&((o=c.setDiagramTitle)==null||o.call(c,e.title))}l(m,"populateCommonDb");export{m as p}; diff --git a/static/js/md-classDiagram-LNE6IOMH-B-vzwpIS.js b/static/js/md-classDiagram-LNE6IOMH-B-vzwpIS.js deleted file mode 100644 index 3cc7a1719..000000000 --- a/static/js/md-classDiagram-LNE6IOMH-B-vzwpIS.js +++ /dev/null @@ -1 +0,0 @@ -import{c as s,a as r,b as e,s as l}from"./md-chunk-T2TOU4HS-B-_XrVCj.js";import{_ as t}from"./md-index-xmajgeSt.js";import"./md-chunk-5HRBRIJM-ZvjOkuCg.js";var _={parser:s,db:r,renderer:e,styles:l,init:t(a=>{a.class||(a.class={}),a.class.arrowMarkerAbsolute=a.arrowMarkerAbsolute,r.clear()},"init")};export{_ as diagram}; diff --git a/static/js/md-classDiagram-LNE6IOMH-BglD_SeO.js b/static/js/md-classDiagram-LNE6IOMH-BglD_SeO.js new file mode 100644 index 000000000..f0eb2546a --- /dev/null +++ b/static/js/md-classDiagram-LNE6IOMH-BglD_SeO.js @@ -0,0 +1 @@ +import{c as s,a as r,b as e,s as l}from"./md-chunk-T2TOU4HS-B_GouoIk.js";import{_ as t}from"./md-index-DwcL-8Z2.js";import"./md-chunk-5HRBRIJM-BlmWzKS6.js";var _={parser:s,db:r,renderer:e,styles:l,init:t(a=>{a.class||(a.class={}),a.class.arrowMarkerAbsolute=a.arrowMarkerAbsolute,r.clear()},"init")};export{_ as diagram}; diff --git a/static/js/md-classDiagram-v2-MQ7JQ4JX-B-vzwpIS.js b/static/js/md-classDiagram-v2-MQ7JQ4JX-B-vzwpIS.js deleted file mode 100644 index 3cc7a1719..000000000 --- a/static/js/md-classDiagram-v2-MQ7JQ4JX-B-vzwpIS.js +++ /dev/null @@ -1 +0,0 @@ -import{c as s,a as r,b as e,s as l}from"./md-chunk-T2TOU4HS-B-_XrVCj.js";import{_ as t}from"./md-index-xmajgeSt.js";import"./md-chunk-5HRBRIJM-ZvjOkuCg.js";var _={parser:s,db:r,renderer:e,styles:l,init:t(a=>{a.class||(a.class={}),a.class.arrowMarkerAbsolute=a.arrowMarkerAbsolute,r.clear()},"init")};export{_ as diagram}; diff --git a/static/js/md-classDiagram-v2-MQ7JQ4JX-BglD_SeO.js b/static/js/md-classDiagram-v2-MQ7JQ4JX-BglD_SeO.js new file mode 100644 index 000000000..f0eb2546a --- /dev/null +++ b/static/js/md-classDiagram-v2-MQ7JQ4JX-BglD_SeO.js @@ -0,0 +1 @@ +import{c as s,a as r,b as e,s as l}from"./md-chunk-T2TOU4HS-B_GouoIk.js";import{_ as t}from"./md-index-DwcL-8Z2.js";import"./md-chunk-5HRBRIJM-BlmWzKS6.js";var _={parser:s,db:r,renderer:e,styles:l,init:t(a=>{a.class||(a.class={}),a.class.arrowMarkerAbsolute=a.arrowMarkerAbsolute,r.clear()},"init")};export{_ as diagram}; diff --git a/static/js/md-clone-CA7_C22Z.js b/static/js/md-clone-CA7_C22Z.js deleted file mode 100644 index c17befdd5..000000000 --- a/static/js/md-clone-CA7_C22Z.js +++ /dev/null @@ -1 +0,0 @@ -import{b as r}from"./md-_baseUniq-tMSgAJlj.js";var e=4;function a(o){return r(o,e)}export{a as c}; diff --git a/static/js/md-clone-DQRSbwhF.js b/static/js/md-clone-DQRSbwhF.js new file mode 100644 index 000000000..43ecfda70 --- /dev/null +++ b/static/js/md-clone-DQRSbwhF.js @@ -0,0 +1 @@ +import{b as r}from"./md-_baseUniq-CnE51pk_.js";var e=4;function a(o){return r(o,e)}export{a as c}; diff --git a/static/js/md-cytoscape.esm-CC2kYfRy.js b/static/js/md-cytoscape.esm-CYFrXB02.js similarity index 99% rename from static/js/md-cytoscape.esm-CC2kYfRy.js rename to static/js/md-cytoscape.esm-CYFrXB02.js index 3ceffd649..4408397af 100644 --- a/static/js/md-cytoscape.esm-CC2kYfRy.js +++ b/static/js/md-cytoscape.esm-CYFrXB02.js @@ -1,4 +1,4 @@ -import{aq as Yi}from"./md-index-xmajgeSt.js";function Ue(t){"@babel/helpers - typeof";return Ue=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ue(t)}function or(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function pl(t,e){for(var r=0;rt.length)&&(e=t.length);for(var r=0,a=new Array(e);rt.length)&&(e=t.length);for(var r=0,a=new Array(e);r=t.length?{done:!0}:{done:!1,value:t[a++]}},e:function(l){throw l},f:n}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=!0,s=!1,o;return{s:function(){r=r.call(t)},n:function(){var l=r.next();return i=l.done,l},e:function(l){s=!0,o=l},f:function(){try{!i&&r.return!=null&&r.return()}finally{if(s)throw o}}}}var We=typeof window>"u"?null:window,_i=We?We.navigator:null;We&&We.document;var Tl=Ue(""),po=Ue({}),Cl=Ue(function(){}),Sl=typeof HTMLElement>"u"?"undefined":Ue(HTMLElement),Pa=function(e){return e&&e.instanceString&&$e(e.instanceString)?e.instanceString():null},fe=function(e){return e!=null&&Ue(e)==Tl},$e=function(e){return e!=null&&Ue(e)===Cl},Ie=function(e){return!xt(e)&&(Array.isArray?Array.isArray(e):e!=null&&e instanceof Array)},ke=function(e){return e!=null&&Ue(e)===po&&!Ie(e)&&e.constructor===Object},Dl=function(e){return e!=null&&Ue(e)===po},re=function(e){return e!=null&&Ue(e)===Ue(1)&&!isNaN(e)},kl=function(e){return re(e)&&Math.floor(e)===e},vn=function(e){if(Sl!=="undefined")return e!=null&&e instanceof HTMLElement},xt=function(e){return Ba(e)||yo(e)},Ba=function(e){return Pa(e)==="collection"&&e._private.single},yo=function(e){return Pa(e)==="collection"&&!e._private.single},wi=function(e){return Pa(e)==="core"},mo=function(e){return Pa(e)==="stylesheet"},Pl=function(e){return Pa(e)==="event"},tr=function(e){return e==null?!0:!!(e===""||e.match(/^\s+$/))},Bl=function(e){return typeof HTMLElement>"u"?!1:e instanceof HTMLElement},Al=function(e){return ke(e)&&re(e.x1)&&re(e.x2)&&re(e.y1)&&re(e.y2)},Rl=function(e){return Dl(e)&&$e(e.then)},Ml=function(){return _i&&_i.userAgent.match(/msie|trident|edge/i)},ya=function(e,r){r||(r=function(){if(arguments.length===1)return arguments[0];if(arguments.length===0)return"undefined";for(var i=[],s=0;sr?1:0},Vl=function(e,r){return-1*wo(e,r)},de=Object.assign!=null?Object.assign.bind(Object):function(t){for(var e=arguments,r=1;r1&&(p-=1),p<1/6?d+(y-d)*6*p:p<1/2?y:p<2/3?d+(y-d)*(2/3-p)*6:d}var f=new RegExp("^"+Ol+"$").exec(e);if(f){if(a=parseInt(f[1]),a<0?a=(360- -1*a%360)%360:a>360&&(a=a%360),a/=360,n=parseFloat(f[2]),n<0||n>100||(n=n/100,i=parseFloat(f[3]),i<0||i>100)||(i=i/100,s=f[4],s!==void 0&&(s=parseFloat(s),s<0||s>1)))return;if(n===0)o=l=u=Math.round(i*255);else{var c=i<.5?i*(1+n):i+n-i*n,h=2*i-c;o=Math.round(255*v(h,c,a+1/3)),l=Math.round(255*v(h,c,a)),u=Math.round(255*v(h,c,a-1/3))}r=[o,l,u,s]}return r},Gl=function(e){var r,a=new RegExp("^"+Ll+"$").exec(e);if(a){r=[];for(var n=[],i=1;i<=3;i++){var s=a[i];if(s[s.length-1]==="%"&&(n[i]=!0),s=parseFloat(s),n[i]&&(s=s/100*255),s<0||s>255)return;r.push(Math.floor(s))}var o=n[1]||n[2]||n[3],l=n[1]&&n[2]&&n[3];if(o&&!l)return;var u=a[4];if(u!==void 0){if(u=parseFloat(u),u<0||u>1)return;r.push(u)}}return r},Kl=function(e){return Wl[e.toLowerCase()]},xo=function(e){return(Ie(e)?e:null)||Kl(e)||ql(e)||Gl(e)||$l(e)},Wl={transparent:[0,0,0,0],aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],grey:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},Eo=function(e){for(var r=e.map,a=e.keys,n=a.length,i=0;i=e||x<0||f&&S>=i}function g(){var E=$n();if(p(E))return m(E);o=setTimeout(g,y(E))}function m(E){return o=void 0,c&&a?h(E):(a=n=void 0,s)}function b(){o!==void 0&&clearTimeout(o),u=0,a=l=n=o=void 0}function w(){return o===void 0?s:m($n())}function T(){var E=$n(),x=p(E);if(a=arguments,n=this,l=E,x){if(o===void 0)return d(l);if(f)return clearTimeout(o),o=setTimeout(g,e),h(l)}return o===void 0&&(o=setTimeout(g,e)),s}return T.cancel=b,T.flush=w,T}var Ra=Pv,Gn=We?We.performance:null,Do=Gn&&Gn.now?function(){return Gn.now()}:function(){return Date.now()},Bv=function(){if(We){if(We.requestAnimationFrame)return function(t){We.requestAnimationFrame(t)};if(We.mozRequestAnimationFrame)return function(t){We.mozRequestAnimationFrame(t)};if(We.webkitRequestAnimationFrame)return function(t){We.webkitRequestAnimationFrame(t)};if(We.msRequestAnimationFrame)return function(t){We.msRequestAnimationFrame(t)}}return function(t){t&&setTimeout(function(){t(Do())},1e3/60)}}(),fn=function(e){return Bv(e)},Wt=Do,Rr=9261,ko=65599,la=5381,Po=function(e){for(var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Rr,a=r,n;n=e.next(),!n.done;)a=a*ko+n.value|0;return a},ma=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Rr;return r*ko+e|0},ba=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:la;return(r<<5)+r+e|0},Av=function(e,r){return e*2097152+r},_t=function(e){return e[0]*2097152+e[1]},qa=function(e,r){return[ma(e[0],r[0]),ba(e[1],r[1])]},Rv=function(e,r){var a={value:0,done:!1},n=0,i=e.length,s={next:function(){return n=0;n--)e[n]===r&&e.splice(n,1)},Ci=function(e){e.splice(0,e.length)},Fv=function(e,r){for(var a=0;a"u"?"undefined":Ue(Set))!==qv?Set:$v,Cn=function(e,r){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(e===void 0||r===void 0||!wi(e)){qe("An element must have a core reference and parameters set");return}var n=r.group;if(n==null&&(r.data&&r.data.source!=null&&r.data.target!=null?n="edges":n="nodes"),n!=="nodes"&&n!=="edges"){qe("An element must be of type `nodes` or `edges`; you specified `"+n+"`");return}this.length=1,this[0]=this;var i=this._private={cy:e,single:!0,data:r.data||{},position:r.position||{x:0,y:0},autoWidth:void 0,autoHeight:void 0,autoPadding:void 0,compoundBoundsClean:!1,listeners:[],group:n,style:{},rstyle:{},styleCxts:[],styleKeys:{},removed:!0,selected:!!r.selected,selectable:r.selectable===void 0?!0:!!r.selectable,locked:!!r.locked,grabbed:!1,grabbable:r.grabbable===void 0?!0:!!r.grabbable,pannable:r.pannable===void 0?n==="edges":!!r.pannable,active:!1,classes:new Kr,animation:{current:[],queue:[]},rscratch:{},scratch:r.scratch||{},edges:[],children:[],parent:r.parent&&r.parent.isNode()?r.parent:null,traversalCache:{},backgrounding:!1,bbCache:null,bbCacheShift:{x:0,y:0},bodyBounds:null,overlayBounds:null,labelBounds:{all:null,source:null,target:null,main:null},arrowBounds:{source:null,target:null,"mid-source":null,"mid-target":null}};if(i.position.x==null&&(i.position.x=0),i.position.y==null&&(i.position.y=0),r.renderedPosition){var s=r.renderedPosition,o=e.pan(),l=e.zoom();i.position={x:(s.x-o.x)/l,y:(s.y-o.y)/l}}var u=[];Ie(r.classes)?u=r.classes:fe(r.classes)&&(u=r.classes.split(/\s+/));for(var v=0,f=u.length;vm?1:0},v=function(g,m,b,w,T){var E;if(b==null&&(b=0),T==null&&(T=a),b<0)throw new Error("lo must be non-negative");for(w==null&&(w=g.length);bP;0<=P?C++:C--)S.push(C);return S}).apply(this).reverse(),x=[],w=0,T=E.length;wB;0<=B?++S:--S)k.push(s(g,b));return k},y=function(g,m,b,w){var T,E,x;for(w==null&&(w=a),T=g[b];b>m;){if(x=b-1>>1,E=g[x],w(T,E)<0){g[b]=E,b=x;continue}break}return g[b]=T},p=function(g,m,b){var w,T,E,x,S;for(b==null&&(b=a),T=g.length,S=m,E=g[m],w=2*m+1;w0;){var E=m.pop(),x=p(E),S=E.id();if(c[S]=x,x!==1/0)for(var C=E.neighborhood().intersect(d),P=0;P0)for(O.unshift(L);f[W];){var V=f[W];O.unshift(V.edge),O.unshift(V.node),q=V.node,W=q.id()}return o.spawn(O)}}}},Hv={kruskal:function(e){e=e||function(b){return 1};for(var r=this.byGroup(),a=r.nodes,n=r.edges,i=a.length,s=new Array(i),o=a,l=function(w){for(var T=0;T0;){if(T(),x++,w===v){for(var S=[],C=i,P=v,B=g[P];S.unshift(C),B!=null&&S.unshift(B),C=p[P],C!=null;)P=C.id(),B=g[P];return{found:!0,distance:f[w],path:this.spawn(S),steps:x}}h[w]=!0;for(var k=b._private.edges,R=0;RB&&(d[P]=B,m[P]=C,b[P]=T),!i){var k=C*v+S;!i&&d[k]>B&&(d[k]=B,m[k]=S,b[k]=T)}}}for(var R=0;R1&&arguments[1]!==void 0?arguments[1]:s,pe=b(le),ye=[],he=pe;;){if(he==null)return r.spawn();var me=m(he),Ee=me.edge,Se=me.pred;if(ye.unshift(he[0]),he.same(oe)&&ye.length>0)break;Ee!=null&&ye.unshift(Ee),he=Se}return l.spawn(ye)},E=0;E=0;v--){var f=u[v],c=f[1],h=f[2];(r[c]===o&&r[h]===l||r[c]===l&&r[h]===o)&&u.splice(v,1)}for(var d=0;dn;){var i=Math.floor(Math.random()*r.length);r=jv(i,e,r),a--}return r},ef={kargerStein:function(){var e=this,r=this.byGroup(),a=r.nodes,n=r.edges;n.unmergeBy(function(O){return O.isLoop()});var i=a.length,s=n.length,o=Math.ceil(Math.pow(Math.log(i)/Math.LN2,2)),l=Math.floor(i/Jv);if(i<2){qe("At least 2 nodes are required for Karger-Stein algorithm");return}for(var u=[],v=0;v1&&arguments[1]!==void 0?arguments[1]:0,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,n=1/0,i=r;i1&&arguments[1]!==void 0?arguments[1]:0,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,n=-1/0,i=r;i1&&arguments[1]!==void 0?arguments[1]:0,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,n=0,i=0,s=r;s1&&arguments[1]!==void 0?arguments[1]:0,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0;n?e=e.slice(r,a):(a0&&e.splice(0,r));for(var o=0,l=e.length-1;l>=0;l--){var u=e[l];s?isFinite(u)||(e[l]=-1/0,o++):e.splice(l,1)}i&&e.sort(function(c,h){return c-h});var v=e.length,f=Math.floor(v/2);return v%2!==0?e[f+1+o]:(e[f-1+o]+e[f+o])/2},of=function(e){return Math.PI*e/180},$a=function(e,r){return Math.atan2(r,e)-Math.PI/2},Si=Math.log2||function(t){return Math.log(t)/Math.log(2)},Oo=function(e){return e>0?1:e<0?-1:0},mr=function(e,r){return Math.sqrt(cr(e,r))},cr=function(e,r){var a=r.x-e.x,n=r.y-e.y;return a*a+n*n},uf=function(e){for(var r=e.length,a=0,n=0;n=e.x1&&e.y2>=e.y1)return{x1:e.x1,y1:e.y1,x2:e.x2,y2:e.y2,w:e.x2-e.x1,h:e.y2-e.y1};if(e.w!=null&&e.h!=null&&e.w>=0&&e.h>=0)return{x1:e.x1,y1:e.y1,x2:e.x1+e.w,y2:e.y1+e.h,w:e.w,h:e.h}}},vf=function(e){return{x1:e.x1,x2:e.x2,w:e.w,y1:e.y1,y2:e.y2,h:e.h}},ff=function(e){e.x1=1/0,e.y1=1/0,e.x2=-1/0,e.y2=-1/0,e.w=0,e.h=0},cf=function(e,r,a){return{x1:e.x1+r,x2:e.x2+r,y1:e.y1+a,y2:e.y2+a,w:e.w,h:e.h}},No=function(e,r){e.x1=Math.min(e.x1,r.x1),e.x2=Math.max(e.x2,r.x2),e.w=e.x2-e.x1,e.y1=Math.min(e.y1,r.y1),e.y2=Math.max(e.y2,r.y2),e.h=e.y2-e.y1},df=function(e,r,a){e.x1=Math.min(e.x1,r),e.x2=Math.max(e.x2,r),e.w=e.x2-e.x1,e.y1=Math.min(e.y1,a),e.y2=Math.max(e.y2,a),e.h=e.y2-e.y1},en=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return e.x1-=r,e.x2+=r,e.y1-=r,e.y2+=r,e.w=e.x2-e.x1,e.h=e.y2-e.y1,e},tn=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[0],a,n,i,s;if(r.length===1)a=n=i=s=r[0];else if(r.length===2)a=i=r[0],s=n=r[1];else if(r.length===4){var o=Je(r,4);a=o[0],n=o[1],i=o[2],s=o[3]}return e.x1-=s,e.x2+=n,e.y1-=a,e.y2+=i,e.w=e.x2-e.x1,e.h=e.y2-e.y1,e},as=function(e,r){e.x1=r.x1,e.y1=r.y1,e.x2=r.x2,e.y2=r.y2,e.w=e.x2-e.x1,e.h=e.y2-e.y1},Di=function(e,r){return!(e.x1>r.x2||r.x1>e.x2||e.x2r.y2||r.y1>e.y2)},Vr=function(e,r,a){return e.x1<=r&&r<=e.x2&&e.y1<=a&&a<=e.y2},hf=function(e,r){return Vr(e,r.x,r.y)},zo=function(e,r){return Vr(e,r.x1,r.y1)&&Vr(e,r.x2,r.y2)},Fo=function(e,r,a,n,i,s,o){var l=arguments.length>7&&arguments[7]!==void 0?arguments[7]:"auto",u=l==="auto"?br(i,s):l,v=i/2,f=s/2;u=Math.min(u,v,f);var c=u!==v,h=u!==f,d;if(c){var y=a-v+u-o,p=n-f-o,g=a+v-u+o,m=p;if(d=Jt(e,r,a,n,y,p,g,m,!1),d.length>0)return d}if(h){var b=a+v+o,w=n-f+u-o,T=b,E=n+f-u+o;if(d=Jt(e,r,a,n,b,w,T,E,!1),d.length>0)return d}if(c){var x=a-v+u-o,S=n+f+o,C=a+v-u+o,P=S;if(d=Jt(e,r,a,n,x,S,C,P,!1),d.length>0)return d}if(h){var B=a-v-o,k=n-f+u-o,R=B,A=n+f-u+o;if(d=Jt(e,r,a,n,B,k,R,A,!1),d.length>0)return d}var I;{var M=a-v+u,L=n-f+u;if(I=va(e,r,a,n,M,L,u+o),I.length>0&&I[0]<=M&&I[1]<=L)return[I[0],I[1]]}{var O=a+v-u,q=n-f+u;if(I=va(e,r,a,n,O,q,u+o),I.length>0&&I[0]>=O&&I[1]<=q)return[I[0],I[1]]}{var W=a+v-u,V=n+f-u;if(I=va(e,r,a,n,W,V,u+o),I.length>0&&I[0]>=W&&I[1]>=V)return[I[0],I[1]]}{var $=a-v+u,X=n+f-u;if(I=va(e,r,a,n,$,X,u+o),I.length>0&&I[0]<=$&&I[1]>=X)return[I[0],I[1]]}return[]},gf=function(e,r,a,n,i,s,o){var l=o,u=Math.min(a,i),v=Math.max(a,i),f=Math.min(n,s),c=Math.max(n,s);return u-l<=e&&e<=v+l&&f-l<=r&&r<=c+l},pf=function(e,r,a,n,i,s,o,l,u){var v={x1:Math.min(a,o,i)-u,x2:Math.max(a,o,i)+u,y1:Math.min(n,l,s)-u,y2:Math.max(n,l,s)+u};return!(ev.x2||rv.y2)},yf=function(e,r,a,n){a-=n;var i=r*r-4*e*a;if(i<0)return[];var s=Math.sqrt(i),o=2*e,l=(-r+s)/o,u=(-r-s)/o;return[l,u]},mf=function(e,r,a,n,i){var s=1e-5;e===0&&(e=s),r/=e,a/=e,n/=e;var o,l,u,v,f,c,h,d;if(l=(3*a-r*r)/9,u=-(27*n)+r*(9*a-2*(r*r)),u/=54,o=l*l*l+u*u,i[1]=0,h=r/3,o>0){f=u+Math.sqrt(o),f=f<0?-Math.pow(-f,1/3):Math.pow(f,1/3),c=u-Math.sqrt(o),c=c<0?-Math.pow(-c,1/3):Math.pow(c,1/3),i[0]=-h+f+c,h+=(f+c)/2,i[4]=i[2]=-h,h=Math.sqrt(3)*(-c+f)/2,i[3]=h,i[5]=-h;return}if(i[5]=i[3]=0,o===0){d=u<0?-Math.pow(-u,1/3):Math.pow(u,1/3),i[0]=-h+2*d,i[4]=i[2]=-(d+h);return}l=-l,v=l*l*l,v=Math.acos(u/Math.sqrt(v)),d=2*Math.sqrt(l),i[0]=-h+d*Math.cos(v/3),i[2]=-h+d*Math.cos((v+2*Math.PI)/3),i[4]=-h+d*Math.cos((v+4*Math.PI)/3)},bf=function(e,r,a,n,i,s,o,l){var u=1*a*a-4*a*i+2*a*o+4*i*i-4*i*o+o*o+n*n-4*n*s+2*n*l+4*s*s-4*s*l+l*l,v=1*9*a*i-3*a*a-3*a*o-6*i*i+3*i*o+9*n*s-3*n*n-3*n*l-6*s*s+3*s*l,f=1*3*a*a-6*a*i+a*o-a*e+2*i*i+2*i*e-o*e+3*n*n-6*n*s+n*l-n*r+2*s*s+2*s*r-l*r,c=1*a*i-a*a+a*e-i*e+n*s-n*n+n*r-s*r,h=[];mf(u,v,f,c,h);for(var d=1e-7,y=[],p=0;p<6;p+=2)Math.abs(h[p+1])=0&&h[p]<=1&&y.push(h[p]);y.push(1),y.push(0);for(var g=-1,m,b,w,T=0;T=0?wu?(e-i)*(e-i)+(r-s)*(r-s):v-c},gt=function(e,r,a){for(var n,i,s,o,l,u=0,v=0;v=e&&e>=s||n<=e&&e<=s)l=(e-n)/(s-n)*(o-i)+i,l>r&&u++;else continue;return u%2!==0},Ht=function(e,r,a,n,i,s,o,l,u){var v=new Array(a.length),f;l[0]!=null?(f=Math.atan(l[1]/l[0]),l[0]<0?f=f+Math.PI/2:f=-f-Math.PI/2):f=l;for(var c=Math.cos(-f),h=Math.sin(-f),d=0;d0){var p=hn(v,-u);y=dn(p)}else y=v;return gt(e,r,y)},xf=function(e,r,a,n,i,s,o,l){for(var u=new Array(a.length*2),v=0;v=0&&p<=1&&m.push(p),g>=0&&g<=1&&m.push(g),m.length===0)return[];var b=m[0]*l[0]+e,w=m[0]*l[1]+r;if(m.length>1){if(m[0]==m[1])return[b,w];var T=m[1]*l[0]+e,E=m[1]*l[1]+r;return[b,w,T,E]}else return[b,w]},Wn=function(e,r,a){return r<=e&&e<=a||a<=e&&e<=r?e:e<=r&&r<=a||a<=r&&r<=e?r:a},Jt=function(e,r,a,n,i,s,o,l,u){var v=e-i,f=a-e,c=o-i,h=r-s,d=n-r,y=l-s,p=c*h-y*v,g=f*h-d*v,m=y*f-c*d;if(m!==0){var b=p/m,w=g/m,T=.001,E=0-T,x=1+T;return E<=b&&b<=x&&E<=w&&w<=x?[e+b*f,r+b*d]:u?[e+b*f,r+b*d]:[]}else return p===0||g===0?Wn(e,a,o)===o?[o,l]:Wn(e,a,i)===i?[i,s]:Wn(i,o,a)===a?[a,n]:[]:[]},Ea=function(e,r,a,n,i,s,o,l){var u=[],v,f=new Array(a.length),c=!0;s==null&&(c=!1);var h;if(c){for(var d=0;d0){var y=hn(f,-l);h=dn(y)}else h=f}else h=a;for(var p,g,m,b,w=0;w2){for(var d=[v[0],v[1]],y=Math.pow(d[0]-e,2)+Math.pow(d[1]-r,2),p=1;pv&&(v=w)},get:function(b){return u[b]}},c=0;c0?M=I.edgesTo(A)[0]:M=A.edgesTo(I)[0];var L=n(M);A=A.id(),S[A]>S[k]+L&&(S[A]=S[k]+L,C.nodes.indexOf(A)<0?C.push(A):C.updateItem(A),x[A]=0,E[A]=[]),S[A]==S[k]+L&&(x[A]=x[A]+x[k],E[A].push(k))}else for(var O=0;O0;){for(var $=T.pop(),X=0;X0&&o.push(a[l]);o.length!==0&&i.push(n.collection(o))}return i},zf=function(e,r){for(var a=0;a5&&arguments[5]!==void 0?arguments[5]:qf,o=n,l,u,v=0;v=2?ra(e,r,a,0,us,$f):ra(e,r,a,0,os)},squaredEuclidean:function(e,r,a){return ra(e,r,a,0,us)},manhattan:function(e,r,a){return ra(e,r,a,0,os)},max:function(e,r,a){return ra(e,r,a,-1/0,Gf)}};qr["squared-euclidean"]=qr.squaredEuclidean;qr.squaredeuclidean=qr.squaredEuclidean;function Dn(t,e,r,a,n,i){var s;return $e(t)?s=t:s=qr[t]||qr.euclidean,e===0&&$e(t)?s(n,i):s(e,r,a,n,i)}var Kf=je({k:2,m:2,sensitivityThreshold:1e-4,distance:"euclidean",maxIterations:10,attributes:[],testMode:!1,testCentroids:null}),Pi=function(e){return Kf(e)},gn=function(e,r,a,n,i){var s=i!=="kMedoids",o=s?function(f){return a[f]}:function(f){return n[f](a)},l=function(c){return n[c](r)},u=a,v=r;return Dn(e,n.length,o,l,u,v)},Hn=function(e,r,a){for(var n=a.length,i=new Array(n),s=new Array(n),o=new Array(r),l=null,u=0;ua)return!1}return!0},Uf=function(e,r,a){for(var n=0;no&&(o=r[u][v],l=v);i[l].push(e[u])}for(var f=0;f=i.threshold||i.mode==="dendrogram"&&e.length===1)return!1;var d=r[s],y=r[n[s]],p;i.mode==="dendrogram"?p={left:d,right:y,key:d.key}:p={value:d.value.concat(y.value),key:d.key},e[d.index]=p,e.splice(y.index,1),r[d.key]=p;for(var g=0;ga[y.key][m.key]&&(l=a[y.key][m.key])):i.linkage==="max"?(l=a[d.key][m.key],a[d.key][m.key]0&&n.push(i);return n},hs=function(e,r,a){for(var n=[],i=0;io&&(s=u,o=r[i*e+u])}s>0&&n.push(s)}for(var v=0;vu&&(l=v,u=f)}a[i]=s[l]}return n=hs(e,r,a),n},gs=function(e){for(var r=this.cy(),a=this.nodes(),n=sc(e),i={},s=0;s=B?(k=B,B=A,R=I):A>k&&(k=A);for(var M=0;M0?1:0;x[C%n.minIterations*o+$]=X,V+=X}if(V>0&&(C>=n.minIterations-1||C==n.maxIterations-1)){for(var _=0,Q=0;Q1||E>1)&&(o=!0),f[b]=[],m.outgoers().forEach(function(S){S.isEdge()&&f[b].push(S.id())})}else c[b]=[void 0,m.target().id()]}):s.forEach(function(m){var b=m.id();if(m.isNode()){var w=m.degree(!0);w%2&&(l?u?o=!0:u=b:l=b),f[b]=[],m.connectedEdges().forEach(function(T){return f[b].push(T.id())})}else c[b]=[m.source().id(),m.target().id()]});var h={found:!1,trail:void 0};if(o)return h;if(u&&l)if(i){if(v&&u!=v)return h;v=u}else{if(v&&u!=v&&l!=v)return h;v||(v=u)}else v||(v=s[0].id());var d=function(b){for(var w=b,T=[b],E,x,S;f[w].length;)E=f[w].shift(),x=c[E][0],S=c[E][1],w!=S?(f[S]=f[S].filter(function(C){return C!=E}),w=S):!i&&w!=x&&(f[x]=f[x].filter(function(C){return C!=E}),w=x),T.unshift(E),T.unshift(w);return T},y=[],p=[];for(p=d(v);p.length!=1;)f[p[0]].length==0?(y.unshift(s.getElementById(p.shift())),y.unshift(s.getElementById(p.shift()))):p=d(p.shift()).concat(p);y.unshift(s.getElementById(p.shift()));for(var g in f)if(f[g].length)return h;return h.found=!0,h.trail=this.spawn(y,!0),h}},Wa=function(){var e=this,r={},a=0,n=0,i=[],s=[],o={},l=function(c,h){for(var d=s.length-1,y=[],p=e.spawn();s[d].x!=c||s[d].y!=h;)y.push(s.pop().edge),d--;y.push(s.pop().edge),y.forEach(function(g){var m=g.connectedNodes().intersection(e);p.merge(g),m.forEach(function(b){var w=b.id(),T=b.connectedEdges().intersection(e);p.merge(b),r[w].cutVertex?p.merge(T.filter(function(E){return E.isLoop()})):p.merge(T)})}),i.push(p)},u=function f(c,h,d){c===d&&(n+=1),r[h]={id:a,low:a++,cutVertex:!1};var y=e.getElementById(h).connectedEdges().intersection(e);if(y.size()===0)i.push(e.spawn(e.getElementById(h)));else{var p,g,m,b;y.forEach(function(w){p=w.source().id(),g=w.target().id(),m=p===h?g:p,m!==d&&(b=w.id(),o[b]||(o[b]=!0,s.push({x:h,y:m,edge:w})),m in r?r[h].low=Math.min(r[h].low,r[m].id):(f(c,m,h),r[h].low=Math.min(r[h].low,r[m].low),r[h].id<=r[m].low&&(r[h].cutVertex=!0,l(h,m))))})}};e.forEach(function(f){if(f.isNode()){var c=f.id();c in r||(n=0,u(c,c),r[c].cutVertex=n>1)}});var v=Object.keys(r).filter(function(f){return r[f].cutVertex}).map(function(f){return e.getElementById(f)});return{cut:e.spawn(v),components:i}},hc={hopcroftTarjanBiconnected:Wa,htbc:Wa,htb:Wa,hopcroftTarjanBiconnectedComponents:Wa},Ha=function(){var e=this,r={},a=0,n=[],i=[],s=e.spawn(e),o=function l(u){i.push(u),r[u]={index:a,low:a++,explored:!1};var v=e.getElementById(u).connectedEdges().intersection(e);if(v.forEach(function(y){var p=y.target().id();p!==u&&(p in r||l(p),r[p].explored||(r[u].low=Math.min(r[u].low,r[p].low)))}),r[u].index===r[u].low){for(var f=e.spawn();;){var c=i.pop();if(f.merge(e.getElementById(c)),r[c].low=r[u].index,r[c].explored=!0,c===u)break}var h=f.edgesWith(f),d=f.merge(h);n.push(d),s=s.difference(d)}};return e.forEach(function(l){if(l.isNode()){var u=l.id();u in r||o(u)}}),{cut:s,components:n}},gc={tarjanStronglyConnected:Ha,tsc:Ha,tscc:Ha,tarjanStronglyConnectedComponents:Ha},Ho={};[wa,Wv,Hv,Xv,_v,Qv,ef,Df,Or,Nr,ii,Vf,Jf,nc,fc,dc,hc,gc].forEach(function(t){de(Ho,t)});/*! diff --git a/static/js/md-dagre-4EVJKHTY-C74m9PzK.js b/static/js/md-dagre-4EVJKHTY-BNHKBi3d.js similarity index 97% rename from static/js/md-dagre-4EVJKHTY-C74m9PzK.js rename to static/js/md-dagre-4EVJKHTY-BNHKBi3d.js index 8dbab08b2..d7a7581c1 100644 --- a/static/js/md-dagre-4EVJKHTY-C74m9PzK.js +++ b/static/js/md-dagre-4EVJKHTY-BNHKBi3d.js @@ -1,4 +1,4 @@ -import{_ as X,ar as F,as as Y,at as _,au as H,l as i,d as V,av as z,aw as U,af as $,ak as q,ag as P,ae as K,ax as Q,ay as W,az as Z}from"./md-index-xmajgeSt.js";import{G as B}from"./md-graph-BHWZZcFR.js";import{l as I}from"./md-layout-BqDwQSB8.js";import{i as S}from"./md-_baseUniq-tMSgAJlj.js";import{c as L}from"./md-clone-CA7_C22Z.js";import{m as A}from"./md-_basePickBy-uQ-3YVhY.js";function p(e){var t={options:{directed:e.isDirected(),multigraph:e.isMultigraph(),compound:e.isCompound()},nodes:ee(e),edges:ne(e)};return S(e.graph())||(t.value=L(e.graph())),t}function ee(e){return A(e.nodes(),function(t){var n=e.node(t),o=e.parent(t),c={v:t};return S(n)||(c.value=n),S(o)||(c.parent=o),c})}function ne(e){return A(e.edges(),function(t){var n=e.edge(t),o={v:t.v,w:t.w};return S(t.name)||(o.name=t.name),S(n)||(o.value=n),o})}var f=new Map,b=new Map,J=new Map,te=X(()=>{b.clear(),J.clear(),f.clear()},"clear"),O=X((e,t)=>{const n=b.get(t)||[];return i.trace("In isDescendant",t," ",e," = ",n.includes(e)),n.includes(e)},"isDescendant"),se=X((e,t)=>{const n=b.get(t)||[];return i.info("Descendants of ",t," is ",n),i.info("Edge is ",e),e.v===t||e.w===t?!1:n?n.includes(e.v)||O(e.v,t)||O(e.w,t)||n.includes(e.w):(i.debug("Tilt, ",t,",not in descendants"),!1)},"edgeInCluster"),G=X((e,t,n,o)=>{i.warn("Copying children of ",e,"root",o,"data",t.node(e),o);const c=t.children(e)||[];e!==o&&c.push(e),i.warn("Copying (nodes) clusterId",e,"nodes",c),c.forEach(a=>{if(t.children(a).length>0)G(a,t,n,o);else{const r=t.node(a);i.info("cp ",a," to ",o," with parent ",e),n.setNode(a,r),o!==t.parent(a)&&(i.warn("Setting parent",a,t.parent(a)),n.setParent(a,t.parent(a))),e!==o&&a!==e?(i.debug("Setting parent",a,e),n.setParent(a,e)):(i.info("In copy ",e,"root",o,"data",t.node(e),o),i.debug("Not Setting parent for node=",a,"cluster!==rootId",e!==o,"node!==clusterId",a!==e));const u=t.edges(a);i.debug("Copying Edges",u),u.forEach(l=>{i.info("Edge",l);const v=t.edge(l.v,l.w,l.name);i.info("Edge data",v,o);try{se(l,o)?(i.info("Copying as ",l.v,l.w,v,l.name),n.setEdge(l.v,l.w,v,l.name),i.info("newGraph edges ",n.edges(),n.edge(n.edges()[0]))):i.info("Skipping copy of edge ",l.v,"-->",l.w," rootId: ",o," clusterId:",e)}catch(C){i.error(C)}})}i.debug("Removing node",a),t.removeNode(a)})},"copy"),R=X((e,t)=>{const n=t.children(e);let o=[...n];for(const c of n)J.set(c,e),o=[...o,...R(c,t)];return o},"extractDescendants"),ie=X((e,t,n)=>{const o=e.edges().filter(l=>l.v===t||l.w===t),c=e.edges().filter(l=>l.v===n||l.w===n),a=o.map(l=>({v:l.v===t?n:l.v,w:l.w===t?t:l.w})),r=c.map(l=>({v:l.v,w:l.w}));return a.filter(l=>r.some(v=>l.v===v.v&&l.w===v.w))},"findCommonEdges"),D=X((e,t,n)=>{const o=t.children(e);if(i.trace("Searching children of id ",e,o),o.length<1)return e;let c;for(const a of o){const r=D(a,t,n),u=ie(t,n,r);if(r)if(u.length>0)c=r;else return r}return c},"findNonClusterChild"),k=X(e=>!f.has(e)||!f.get(e).externalConnections?e:f.has(e)?f.get(e).id:e,"getAnchorId"),re=X((e,t)=>{if(!e||t>10){i.debug("Opting out, no graph ");return}else i.debug("Opting in, graph ");e.nodes().forEach(function(n){e.children(n).length>0&&(i.warn("Cluster identified",n," Replacement id in edges: ",D(n,e,n)),b.set(n,R(n,e)),f.set(n,{id:D(n,e,n),clusterData:e.node(n)}))}),e.nodes().forEach(function(n){const o=e.children(n),c=e.edges();o.length>0?(i.debug("Cluster identified",n,b),c.forEach(a=>{const r=O(a.v,n),u=O(a.w,n);r^u&&(i.warn("Edge: ",a," leaves cluster ",n),i.warn("Descendants of XXX ",n,": ",b.get(n)),f.get(n).externalConnections=!0)})):i.debug("Not a cluster ",n,b)});for(let n of f.keys()){const o=f.get(n).id,c=e.parent(o);c!==n&&f.has(c)&&!f.get(c).externalConnections&&(f.get(n).id=c)}e.edges().forEach(function(n){const o=e.edge(n);i.warn("Edge "+n.v+" -> "+n.w+": "+JSON.stringify(n)),i.warn("Edge "+n.v+" -> "+n.w+": "+JSON.stringify(e.edge(n)));let c=n.v,a=n.w;if(i.warn("Fix XXX",f,"ids:",n.v,n.w,"Translating: ",f.get(n.v)," --- ",f.get(n.w)),f.get(n.v)||f.get(n.w)){if(i.warn("Fixing and trying - removing XXX",n.v,n.w,n.name),c=k(n.v),a=k(n.w),e.removeEdge(n.v,n.w,n.name),c!==n.v){const r=e.parent(c);f.get(r).externalConnections=!0,o.fromCluster=n.v}if(a!==n.w){const r=e.parent(a);f.get(r).externalConnections=!0,o.toCluster=n.w}i.warn("Fix Replacing with XXX",c,a,n.name),e.setEdge(c,a,o,n.name)}}),i.warn("Adjusted Graph",p(e)),T(e,0),i.trace(f)},"adjustClustersAndEdges"),T=X((e,t)=>{var c,a;if(i.warn("extractor - ",t,p(e),e.children("D")),t>10){i.error("Bailing out");return}let n=e.nodes(),o=!1;for(const r of n){const u=e.children(r);o=o||u.length>0}if(!o){i.debug("Done, no node has children",e.nodes());return}i.debug("Nodes = ",n,t);for(const r of n)if(i.debug("Extracting node",r,f,f.has(r)&&!f.get(r).externalConnections,!e.parent(r),e.node(r),e.children("D")," Depth ",t),!f.has(r))i.debug("Not a cluster",r,t);else if(!f.get(r).externalConnections&&e.children(r)&&e.children(r).length>0){i.warn("Cluster without external connections, without a parent and with children",r,t);let l=e.graph().rankdir==="TB"?"LR":"TB";(a=(c=f.get(r))==null?void 0:c.clusterData)!=null&&a.dir&&(l=f.get(r).clusterData.dir,i.warn("Fixing dir",f.get(r).clusterData.dir,l));const v=new B({multigraph:!0,compound:!0}).setGraph({rankdir:l,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});i.warn("Old graph before copy",p(e)),G(r,e,v,r),e.setNode(r,{clusterNode:!0,id:r,clusterData:f.get(r).clusterData,label:f.get(r).label,graph:v}),i.warn("New graph after copy node: (",r,")",p(v)),i.debug("Old graph after copy",p(e))}else i.warn("Cluster ** ",r," **not meeting the criteria !externalConnections:",!f.get(r).externalConnections," no parent: ",!e.parent(r)," children ",e.children(r)&&e.children(r).length>0,e.children("D"),t),i.debug(f);n=e.nodes(),i.warn("New list of nodes",n);for(const r of n){const u=e.node(r);i.warn(" Now next level",r,u),u!=null&&u.clusterNode&&T(u.graph,t+1)}},"extractor"),M=X((e,t)=>{if(t.length===0)return[];let n=Object.assign([],t);return t.forEach(o=>{const c=e.children(o),a=M(e,c);n=[...n,...a]}),n},"sorter"),oe=X(e=>M(e,e.children()),"sortNodesByHierarchy"),j=X(async(e,t,n,o,c,a)=>{i.warn("Graph in recursive render:XAX",p(t),c);const r=t.graph().rankdir;i.trace("Dir in recursive render - dir:",r);const u=e.insert("g").attr("class","root");t.nodes()?i.info("Recursive render XXX",t.nodes()):i.info("No nodes found for",t),t.edges().length>0&&i.info("Recursive edges",t.edge(t.edges()[0]));const l=u.insert("g").attr("class","clusters"),v=u.insert("g").attr("class","edgePaths"),C=u.insert("g").attr("class","edgeLabels"),g=u.insert("g").attr("class","nodes");await Promise.all(t.nodes().map(async function(d){const s=t.node(d);if(c!==void 0){const m=JSON.parse(JSON.stringify(c.clusterData));i.trace(`Setting data for parent cluster XXX +import{_ as X,ar as F,as as Y,at as _,au as H,l as i,d as V,av as z,aw as U,af as $,ak as q,ag as P,ae as K,ax as Q,ay as W,az as Z}from"./md-index-DwcL-8Z2.js";import{G as B}from"./md-graph-Dei6eZAD.js";import{l as I}from"./md-layout-ao6zl1AG.js";import{i as S}from"./md-_baseUniq-CnE51pk_.js";import{c as L}from"./md-clone-DQRSbwhF.js";import{m as A}from"./md-_basePickBy-DzqsyDBx.js";function p(e){var t={options:{directed:e.isDirected(),multigraph:e.isMultigraph(),compound:e.isCompound()},nodes:ee(e),edges:ne(e)};return S(e.graph())||(t.value=L(e.graph())),t}function ee(e){return A(e.nodes(),function(t){var n=e.node(t),o=e.parent(t),c={v:t};return S(n)||(c.value=n),S(o)||(c.parent=o),c})}function ne(e){return A(e.edges(),function(t){var n=e.edge(t),o={v:t.v,w:t.w};return S(t.name)||(o.name=t.name),S(n)||(o.value=n),o})}var f=new Map,b=new Map,J=new Map,te=X(()=>{b.clear(),J.clear(),f.clear()},"clear"),O=X((e,t)=>{const n=b.get(t)||[];return i.trace("In isDescendant",t," ",e," = ",n.includes(e)),n.includes(e)},"isDescendant"),se=X((e,t)=>{const n=b.get(t)||[];return i.info("Descendants of ",t," is ",n),i.info("Edge is ",e),e.v===t||e.w===t?!1:n?n.includes(e.v)||O(e.v,t)||O(e.w,t)||n.includes(e.w):(i.debug("Tilt, ",t,",not in descendants"),!1)},"edgeInCluster"),G=X((e,t,n,o)=>{i.warn("Copying children of ",e,"root",o,"data",t.node(e),o);const c=t.children(e)||[];e!==o&&c.push(e),i.warn("Copying (nodes) clusterId",e,"nodes",c),c.forEach(a=>{if(t.children(a).length>0)G(a,t,n,o);else{const r=t.node(a);i.info("cp ",a," to ",o," with parent ",e),n.setNode(a,r),o!==t.parent(a)&&(i.warn("Setting parent",a,t.parent(a)),n.setParent(a,t.parent(a))),e!==o&&a!==e?(i.debug("Setting parent",a,e),n.setParent(a,e)):(i.info("In copy ",e,"root",o,"data",t.node(e),o),i.debug("Not Setting parent for node=",a,"cluster!==rootId",e!==o,"node!==clusterId",a!==e));const u=t.edges(a);i.debug("Copying Edges",u),u.forEach(l=>{i.info("Edge",l);const v=t.edge(l.v,l.w,l.name);i.info("Edge data",v,o);try{se(l,o)?(i.info("Copying as ",l.v,l.w,v,l.name),n.setEdge(l.v,l.w,v,l.name),i.info("newGraph edges ",n.edges(),n.edge(n.edges()[0]))):i.info("Skipping copy of edge ",l.v,"-->",l.w," rootId: ",o," clusterId:",e)}catch(C){i.error(C)}})}i.debug("Removing node",a),t.removeNode(a)})},"copy"),R=X((e,t)=>{const n=t.children(e);let o=[...n];for(const c of n)J.set(c,e),o=[...o,...R(c,t)];return o},"extractDescendants"),ie=X((e,t,n)=>{const o=e.edges().filter(l=>l.v===t||l.w===t),c=e.edges().filter(l=>l.v===n||l.w===n),a=o.map(l=>({v:l.v===t?n:l.v,w:l.w===t?t:l.w})),r=c.map(l=>({v:l.v,w:l.w}));return a.filter(l=>r.some(v=>l.v===v.v&&l.w===v.w))},"findCommonEdges"),D=X((e,t,n)=>{const o=t.children(e);if(i.trace("Searching children of id ",e,o),o.length<1)return e;let c;for(const a of o){const r=D(a,t,n),u=ie(t,n,r);if(r)if(u.length>0)c=r;else return r}return c},"findNonClusterChild"),k=X(e=>!f.has(e)||!f.get(e).externalConnections?e:f.has(e)?f.get(e).id:e,"getAnchorId"),re=X((e,t)=>{if(!e||t>10){i.debug("Opting out, no graph ");return}else i.debug("Opting in, graph ");e.nodes().forEach(function(n){e.children(n).length>0&&(i.warn("Cluster identified",n," Replacement id in edges: ",D(n,e,n)),b.set(n,R(n,e)),f.set(n,{id:D(n,e,n),clusterData:e.node(n)}))}),e.nodes().forEach(function(n){const o=e.children(n),c=e.edges();o.length>0?(i.debug("Cluster identified",n,b),c.forEach(a=>{const r=O(a.v,n),u=O(a.w,n);r^u&&(i.warn("Edge: ",a," leaves cluster ",n),i.warn("Descendants of XXX ",n,": ",b.get(n)),f.get(n).externalConnections=!0)})):i.debug("Not a cluster ",n,b)});for(let n of f.keys()){const o=f.get(n).id,c=e.parent(o);c!==n&&f.has(c)&&!f.get(c).externalConnections&&(f.get(n).id=c)}e.edges().forEach(function(n){const o=e.edge(n);i.warn("Edge "+n.v+" -> "+n.w+": "+JSON.stringify(n)),i.warn("Edge "+n.v+" -> "+n.w+": "+JSON.stringify(e.edge(n)));let c=n.v,a=n.w;if(i.warn("Fix XXX",f,"ids:",n.v,n.w,"Translating: ",f.get(n.v)," --- ",f.get(n.w)),f.get(n.v)||f.get(n.w)){if(i.warn("Fixing and trying - removing XXX",n.v,n.w,n.name),c=k(n.v),a=k(n.w),e.removeEdge(n.v,n.w,n.name),c!==n.v){const r=e.parent(c);f.get(r).externalConnections=!0,o.fromCluster=n.v}if(a!==n.w){const r=e.parent(a);f.get(r).externalConnections=!0,o.toCluster=n.w}i.warn("Fix Replacing with XXX",c,a,n.name),e.setEdge(c,a,o,n.name)}}),i.warn("Adjusted Graph",p(e)),T(e,0),i.trace(f)},"adjustClustersAndEdges"),T=X((e,t)=>{var c,a;if(i.warn("extractor - ",t,p(e),e.children("D")),t>10){i.error("Bailing out");return}let n=e.nodes(),o=!1;for(const r of n){const u=e.children(r);o=o||u.length>0}if(!o){i.debug("Done, no node has children",e.nodes());return}i.debug("Nodes = ",n,t);for(const r of n)if(i.debug("Extracting node",r,f,f.has(r)&&!f.get(r).externalConnections,!e.parent(r),e.node(r),e.children("D")," Depth ",t),!f.has(r))i.debug("Not a cluster",r,t);else if(!f.get(r).externalConnections&&e.children(r)&&e.children(r).length>0){i.warn("Cluster without external connections, without a parent and with children",r,t);let l=e.graph().rankdir==="TB"?"LR":"TB";(a=(c=f.get(r))==null?void 0:c.clusterData)!=null&&a.dir&&(l=f.get(r).clusterData.dir,i.warn("Fixing dir",f.get(r).clusterData.dir,l));const v=new B({multigraph:!0,compound:!0}).setGraph({rankdir:l,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});i.warn("Old graph before copy",p(e)),G(r,e,v,r),e.setNode(r,{clusterNode:!0,id:r,clusterData:f.get(r).clusterData,label:f.get(r).label,graph:v}),i.warn("New graph after copy node: (",r,")",p(v)),i.debug("Old graph after copy",p(e))}else i.warn("Cluster ** ",r," **not meeting the criteria !externalConnections:",!f.get(r).externalConnections," no parent: ",!e.parent(r)," children ",e.children(r)&&e.children(r).length>0,e.children("D"),t),i.debug(f);n=e.nodes(),i.warn("New list of nodes",n);for(const r of n){const u=e.node(r);i.warn(" Now next level",r,u),u!=null&&u.clusterNode&&T(u.graph,t+1)}},"extractor"),M=X((e,t)=>{if(t.length===0)return[];let n=Object.assign([],t);return t.forEach(o=>{const c=e.children(o),a=M(e,c);n=[...n,...a]}),n},"sorter"),oe=X(e=>M(e,e.children()),"sortNodesByHierarchy"),j=X(async(e,t,n,o,c,a)=>{i.warn("Graph in recursive render:XAX",p(t),c);const r=t.graph().rankdir;i.trace("Dir in recursive render - dir:",r);const u=e.insert("g").attr("class","root");t.nodes()?i.info("Recursive render XXX",t.nodes()):i.info("No nodes found for",t),t.edges().length>0&&i.info("Recursive edges",t.edge(t.edges()[0]));const l=u.insert("g").attr("class","clusters"),v=u.insert("g").attr("class","edgePaths"),C=u.insert("g").attr("class","edgeLabels"),g=u.insert("g").attr("class","nodes");await Promise.all(t.nodes().map(async function(d){const s=t.node(d);if(c!==void 0){const m=JSON.parse(JSON.stringify(c.clusterData));i.trace(`Setting data for parent cluster XXX Node.id = `,d,` data=`,m.height,` Parent cluster`,c.height),t.setNode(c.id,m),t.parent(d)||(i.trace("Setting parent",d,c.id),t.setParent(d,c.id,m))}if(i.info("(Insert) Node XXX"+d+": "+JSON.stringify(t.node(d))),s!=null&&s.clusterNode){i.info("Cluster identified XBX",d,s.width,t.node(d));const{ranksep:m,nodesep:h}=t.graph();s.graph.setGraph({...s.graph.graph(),ranksep:m+25,nodesep:h});const N=await j(g,s.graph,n,o,t.node(d),a),x=N.elem;z(s,x),s.diff=N.diff||0,i.info("New compound node after recursive render XAX",d,"width",s.width,"height",s.height),U(x,s)}else t.children(d).length>0?(i.trace("Cluster - the non recursive path XBX",d,s.id,s,s.width,"Graph:",t),i.trace(D(s.id,t)),f.set(s.id,{id:D(s.id,t),node:s})):(i.trace("Node - the non recursive path XAX",d,g,t.node(d),r),await $(g,t.node(d),{config:a,dir:r}))})),await X(async()=>{const d=t.edges().map(async function(s){const m=t.edge(s.v,s.w,s.name);i.info("Edge "+s.v+" -> "+s.w+": "+JSON.stringify(s)),i.info("Edge "+s.v+" -> "+s.w+": ",s," ",JSON.stringify(t.edge(s))),i.info("Fix",f,"ids:",s.v,s.w,"Translating: ",f.get(s.v),f.get(s.w)),await Z(C,m)});await Promise.all(d)},"processEdges")(),i.info("Graph before layout:",JSON.stringify(p(t))),i.info("############################################# XXX"),i.info("### Layout ### XXX"),i.info("############################################# XXX"),I(t),i.info("Graph after layout:",JSON.stringify(p(t)));let E=0,{subGraphTitleTotalMargin:y}=q(a);return await Promise.all(oe(t).map(async function(d){var m;const s=t.node(d);if(i.info("Position XBX => "+d+": ("+s.x,","+s.y,") width: ",s.width," height: ",s.height),s!=null&&s.clusterNode)s.y+=y,i.info("A tainted cluster node XBX1",d,s.id,s.width,s.height,s.x,s.y,t.parent(d)),f.get(s.id).node=s,P(s);else if(t.children(d).length>0){i.info("A pure cluster node XBX1",d,s.id,s.x,s.y,s.width,s.height,t.parent(d)),s.height+=y,t.node(s.parentId);const h=(s==null?void 0:s.padding)/2||0,N=((m=s==null?void 0:s.labelBBox)==null?void 0:m.height)||0,x=N-h||0;i.debug("OffsetY",x,"labelHeight",N,"halfPadding",h),await K(l,s),f.get(s.id).node=s}else{const h=t.node(s.parentId);s.y+=y/2,i.info("A regular node XBX1 - using the padding",s.id,"parent",s.parentId,s.width,s.height,s.x,s.y,"offsetY",s.offsetY,"parent",h,h==null?void 0:h.offsetY,s),P(s)}})),t.edges().forEach(function(d){const s=t.edge(d);i.info("Edge "+d.v+" -> "+d.w+": "+JSON.stringify(s),s),s.points.forEach(x=>x.y+=y/2);const m=t.node(d.v);var h=t.node(d.w);const N=Q(v,s,f,n,m,h,o);W(s,N)}),t.nodes().forEach(function(d){const s=t.node(d);i.info(d,s.type,s.diff),s.isGroup&&(E=s.diff)}),i.warn("Returning from recursive render XAX",u,E),{elem:u,diff:E}},"recursiveRender"),ge=X(async(e,t)=>{var a,r,u,l,v,C;const n=new B({multigraph:!0,compound:!0}).setGraph({rankdir:e.direction,nodesep:((a=e.config)==null?void 0:a.nodeSpacing)||((u=(r=e.config)==null?void 0:r.flowchart)==null?void 0:u.nodeSpacing)||e.nodeSpacing,ranksep:((l=e.config)==null?void 0:l.rankSpacing)||((C=(v=e.config)==null?void 0:v.flowchart)==null?void 0:C.rankSpacing)||e.rankSpacing,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}}),o=t.select("g");F(o,e.markers,e.type,e.diagramId),Y(),_(),H(),te(),e.nodes.forEach(g=>{n.setNode(g.id,{...g}),g.parentId&&n.setParent(g.id,g.parentId)}),i.debug("Edges:",e.edges),e.edges.forEach(g=>{if(g.start===g.end){const w=g.start,E=w+"---"+w+"---1",y=w+"---"+w+"---2",d=n.node(w);n.setNode(E,{domId:E,id:E,parentId:d.parentId,labelStyle:"",label:"",padding:0,shape:"labelRect",style:"",width:10,height:10}),n.setParent(E,d.parentId),n.setNode(y,{domId:y,id:y,parentId:d.parentId,labelStyle:"",padding:0,shape:"labelRect",label:"",style:"",width:10,height:10}),n.setParent(y,d.parentId);const s=structuredClone(g),m=structuredClone(g),h=structuredClone(g);s.label="",s.arrowTypeEnd="none",s.id=w+"-cyclic-special-1",m.arrowTypeEnd="none",m.id=w+"-cyclic-special-mid",h.label="",d.isGroup&&(s.fromCluster=w,h.toCluster=w),h.id=w+"-cyclic-special-2",n.setEdge(w,E,s,w+"-cyclic-special-0"),n.setEdge(E,y,m,w+"-cyclic-special-1"),n.setEdge(y,w,h,w+"-cyc{const t=v({...L,...T().packet});return t.showBits&&(t.paddingY+=10),t},"getConfig"),G=n(()=>m.packet,"getPacket"),I=n(t=>{t.length>0&&m.packet.push(t)},"pushWord"),M=n(()=>{_(),m=structuredClone(C)},"clear"),h={pushWord:I,getPacket:G,getConfig:Y,clear:M,setAccTitle:S,getAccTitle:F,setDiagramTitle:z,getDiagramTitle:P,getAccDescription:W,setAccDescription:D},O=1e4,q=n(t=>{w(t,h);let e=-1,o=[],s=1;const{bitsPerRow:i}=h.getConfig();for(let{start:a,end:r,label:p}of t.blocks){if(r&&r{if(t.end===void 0&&(t.end=t.start),t.start>t.end)throw new Error(`Block start ${t.start} is greater than block end ${t.end}.`);return t.end+1<=e*o?[t,void 0]:[{start:t.start,end:e*o-1,label:t.label},{start:e*o,end:t.end,label:t.label}]},"getNextFittingBlock"),K={parse:n(async t=>{const e=await N("packet",t);x.debug(e),q(e)},"parse")},R=n((t,e,o,s)=>{const i=s.db,a=i.getConfig(),{rowHeight:r,paddingY:p,bitWidth:b,bitsPerRow:c}=a,u=i.getPacket(),l=i.getDiagramTitle(),g=r+p,d=g*(u.length+1)-(l?0:r),k=b*c+2,f=A(e);f.attr("viewbox",`0 0 ${k} ${d}`),E(f,d,k,a.useMaxWidth);for(const[$,y]of u.entries())U(f,y,$,a);f.append("text").text(l).attr("x",k/2).attr("y",d-g/2).attr("dominant-baseline","middle").attr("text-anchor","middle").attr("class","packetTitle")},"draw"),U=n((t,e,o,{rowHeight:s,paddingX:i,paddingY:a,bitWidth:r,bitsPerRow:p,showBits:b})=>{const c=t.append("g"),u=o*(s+a)+a;for(const l of e){const g=l.start%p*r+1,d=(l.end-l.start+1)*r-i;if(c.append("rect").attr("x",g).attr("y",u).attr("width",d).attr("height",s).attr("class","packetBlock"),c.append("text").attr("x",g+d/2).attr("y",u+s/2).attr("class","packetLabel").attr("dominant-baseline","middle").attr("text-anchor","middle").text(l.label),!b)continue;const k=l.end===l.start,f=u-2;c.append("text").attr("x",g+(k?d/2:0)).attr("y",f).attr("class","packetByte start").attr("dominant-baseline","auto").attr("text-anchor",k?"middle":"start").text(l.start),k||c.append("text").attr("x",g+d).attr("y",f).attr("class","packetByte end").attr("dominant-baseline","auto").attr("text-anchor","end").text(l.end)}},"drawWord"),X={draw:R},j={byteFontSize:"10px",startByteColor:"black",endByteColor:"black",labelColor:"black",labelFontSize:"12px",titleColor:"black",titleFontSize:"14px",blockStrokeColor:"black",blockStrokeWidth:"1",blockFillColor:"#efefef"},J=n(({packet:t}={})=>{const e=v(j,t);return` +import{p as w}from"./md-chunk-TMUBEWPD-CpBAAqu6.js";import{B,s as S,g as F,p as z,q as P,b as W,c as D,_ as n,l as x,C as v,D as T,v as _,G as A,k as E}from"./md-index-DwcL-8Z2.js";import{p as N}from"./md-gitGraph-YCYPL57B-CGrUuPMT.js";import"./md-_baseUniq-CnE51pk_.js";import"./md-_basePickBy-DzqsyDBx.js";import"./md-clone-DQRSbwhF.js";var C={packet:[]},m=structuredClone(C),L=B.packet,Y=n(()=>{const t=v({...L,...T().packet});return t.showBits&&(t.paddingY+=10),t},"getConfig"),G=n(()=>m.packet,"getPacket"),I=n(t=>{t.length>0&&m.packet.push(t)},"pushWord"),M=n(()=>{_(),m=structuredClone(C)},"clear"),h={pushWord:I,getPacket:G,getConfig:Y,clear:M,setAccTitle:S,getAccTitle:F,setDiagramTitle:z,getDiagramTitle:P,getAccDescription:W,setAccDescription:D},O=1e4,q=n(t=>{w(t,h);let e=-1,o=[],s=1;const{bitsPerRow:i}=h.getConfig();for(let{start:a,end:r,label:p}of t.blocks){if(r&&r{if(t.end===void 0&&(t.end=t.start),t.start>t.end)throw new Error(`Block start ${t.start} is greater than block end ${t.end}.`);return t.end+1<=e*o?[t,void 0]:[{start:t.start,end:e*o-1,label:t.label},{start:e*o,end:t.end,label:t.label}]},"getNextFittingBlock"),K={parse:n(async t=>{const e=await N("packet",t);x.debug(e),q(e)},"parse")},R=n((t,e,o,s)=>{const i=s.db,a=i.getConfig(),{rowHeight:r,paddingY:p,bitWidth:b,bitsPerRow:c}=a,u=i.getPacket(),l=i.getDiagramTitle(),g=r+p,d=g*(u.length+1)-(l?0:r),k=b*c+2,f=A(e);f.attr("viewbox",`0 0 ${k} ${d}`),E(f,d,k,a.useMaxWidth);for(const[$,y]of u.entries())U(f,y,$,a);f.append("text").text(l).attr("x",k/2).attr("y",d-g/2).attr("dominant-baseline","middle").attr("text-anchor","middle").attr("class","packetTitle")},"draw"),U=n((t,e,o,{rowHeight:s,paddingX:i,paddingY:a,bitWidth:r,bitsPerRow:p,showBits:b})=>{const c=t.append("g"),u=o*(s+a)+a;for(const l of e){const g=l.start%p*r+1,d=(l.end-l.start+1)*r-i;if(c.append("rect").attr("x",g).attr("y",u).attr("width",d).attr("height",s).attr("class","packetBlock"),c.append("text").attr("x",g+d/2).attr("y",u+s/2).attr("class","packetLabel").attr("dominant-baseline","middle").attr("text-anchor","middle").text(l.label),!b)continue;const k=l.end===l.start,f=u-2;c.append("text").attr("x",g+(k?d/2:0)).attr("y",f).attr("class","packetByte start").attr("dominant-baseline","auto").attr("text-anchor",k?"middle":"start").text(l.start),k||c.append("text").attr("x",g+d).attr("y",f).attr("class","packetByte end").attr("dominant-baseline","auto").attr("text-anchor","end").text(l.end)}},"drawWord"),X={draw:R},j={byteFontSize:"10px",startByteColor:"black",endByteColor:"black",labelColor:"black",labelFontSize:"12px",titleColor:"black",titleFontSize:"14px",blockStrokeColor:"black",blockStrokeWidth:"1",blockFillColor:"#efefef"},J=n(({packet:t}={})=>{const e=v(j,t);return` .packetByte { font-size: ${e.byteFontSize}; } diff --git a/static/js/md-erDiagram-6RL3IURR-D51C91no.js b/static/js/md-erDiagram-6RL3IURR-B6EcPYCQ.js similarity index 99% rename from static/js/md-erDiagram-6RL3IURR-D51C91no.js rename to static/js/md-erDiagram-6RL3IURR-B6EcPYCQ.js index 215b31a33..1a60d566b 100644 --- a/static/js/md-erDiagram-6RL3IURR-D51C91no.js +++ b/static/js/md-erDiagram-6RL3IURR-B6EcPYCQ.js @@ -1,4 +1,4 @@ -import{_ as u,d as U,s as kt,g as xt,c as Rt,b as Ot,p as bt,q as Nt,l as X,v as Tt,j as at,u as At,k as Mt,K as vt,Q as St,P as wt}from"./md-index-xmajgeSt.js";import{G as It}from"./md-graph-BHWZZcFR.js";import{l as Dt}from"./md-layout-BqDwQSB8.js";import"./md-_baseUniq-tMSgAJlj.js";import"./md-_basePickBy-uQ-3YVhY.js";const Lt=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function Bt(t){return typeof t=="string"&&Lt.test(t)}const v=[];for(let t=0;t<256;++t)v.push((t+256).toString(16).slice(1));function Ct(t,e=0){return v[t[e+0]]+v[t[e+1]]+v[t[e+2]]+v[t[e+3]]+"-"+v[t[e+4]]+v[t[e+5]]+"-"+v[t[e+6]]+v[t[e+7]]+"-"+v[t[e+8]]+v[t[e+9]]+"-"+v[t[e+10]]+v[t[e+11]]+v[t[e+12]]+v[t[e+13]]+v[t[e+14]]+v[t[e+15]]}function Pt(t){if(!Bt(t))throw TypeError("Invalid UUID");let e;const r=new Uint8Array(16);return r[0]=(e=parseInt(t.slice(0,8),16))>>>24,r[1]=e>>>16&255,r[2]=e>>>8&255,r[3]=e&255,r[4]=(e=parseInt(t.slice(9,13),16))>>>8,r[5]=e&255,r[6]=(e=parseInt(t.slice(14,18),16))>>>8,r[7]=e&255,r[8]=(e=parseInt(t.slice(19,23),16))>>>8,r[9]=e&255,r[10]=(e=parseInt(t.slice(24,36),16))/1099511627776&255,r[11]=e/4294967296&255,r[12]=e>>>24&255,r[13]=e>>>16&255,r[14]=e>>>8&255,r[15]=e&255,r}function Yt(t){t=unescape(encodeURIComponent(t));const e=[];for(let r=0;r>>32-e}function Ht(t){const e=[1518500249,1859775393,2400959708,3395469782],r=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof t=="string"){const y=unescape(encodeURIComponent(t));t=[];for(let o=0;o>>0;x=k,k=m,m=it(g,30)>>>0,g=h,h=b}r[0]=r[0]+h>>>0,r[1]=r[1]+g>>>0,r[2]=r[2]+m>>>0,r[3]=r[3]+k>>>0,r[4]=r[4]+x>>>0}return[r[0]>>24&255,r[0]>>16&255,r[0]>>8&255,r[0]&255,r[1]>>24&255,r[1]>>16&255,r[1]>>8&255,r[1]&255,r[2]>>24&255,r[2]>>16&255,r[2]>>8&255,r[2]&255,r[3]>>24&255,r[3]>>16&255,r[3]>>8&255,r[3]&255,r[4]>>24&255,r[4]>>16&255,r[4]>>8&255,r[4]&255]}const zt=Wt("v5",80,Ht);var nt=function(){var t=u(function(w,i,n,l){for(n=n||{},l=w.length;l--;n[w[l]]=i);return n},"o"),e=[6,8,10,20,22,24,26,27,28],r=[1,10],f=[1,11],c=[1,12],_=[1,13],y=[1,14],o=[1,15],h=[1,21],g=[1,22],m=[1,23],k=[1,24],x=[1,25],p=[6,8,10,13,15,18,19,20,22,24,26,27,28,41,42,43,44,45],O=[1,34],b=[27,28,46,47],Y=[41,42,43,44,45],Z=[17,34],F=[1,54],M=[1,53],S=[17,34,36,38],N={trace:u(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,entityName:11,relSpec:12,":":13,role:14,BLOCK_START:15,attributes:16,BLOCK_STOP:17,SQS:18,SQE:19,title:20,title_value:21,acc_title:22,acc_title_value:23,acc_descr:24,acc_descr_value:25,acc_descr_multiline_value:26,ALPHANUM:27,ENTITY_NAME:28,attribute:29,attributeType:30,attributeName:31,attributeKeyTypeList:32,attributeComment:33,ATTRIBUTE_WORD:34,attributeKeyType:35,COMMA:36,ATTRIBUTE_KEY:37,COMMENT:38,cardinality:39,relType:40,ZERO_OR_ONE:41,ZERO_OR_MORE:42,ONE_OR_MORE:43,ONLY_ONE:44,MD_PARENT:45,NON_IDENTIFYING:46,IDENTIFYING:47,WORD:48,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",8:"SPACE",10:"NEWLINE",13:":",15:"BLOCK_START",17:"BLOCK_STOP",18:"SQS",19:"SQE",20:"title",21:"title_value",22:"acc_title",23:"acc_title_value",24:"acc_descr",25:"acc_descr_value",26:"acc_descr_multiline_value",27:"ALPHANUM",28:"ENTITY_NAME",34:"ATTRIBUTE_WORD",36:"COMMA",37:"ATTRIBUTE_KEY",38:"COMMENT",41:"ZERO_OR_ONE",42:"ZERO_OR_MORE",43:"ONE_OR_MORE",44:"ONLY_ONE",45:"MD_PARENT",46:"NON_IDENTIFYING",47:"IDENTIFYING",48:"WORD"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,5],[9,4],[9,3],[9,1],[9,7],[9,6],[9,4],[9,2],[9,2],[9,2],[9,1],[11,1],[11,1],[16,1],[16,2],[29,2],[29,3],[29,3],[29,4],[30,1],[31,1],[32,1],[32,3],[35,1],[33,1],[12,3],[39,1],[39,1],[39,1],[39,1],[39,1],[40,1],[40,1],[14,1],[14,1],[14,1]],performAction:u(function(i,n,l,d,E,a,V){var s=a.length-1;switch(E){case 1:break;case 2:this.$=[];break;case 3:a[s-1].push(a[s]),this.$=a[s-1];break;case 4:case 5:this.$=a[s];break;case 6:case 7:this.$=[];break;case 8:d.addEntity(a[s-4]),d.addEntity(a[s-2]),d.addRelationship(a[s-4],a[s],a[s-2],a[s-3]);break;case 9:d.addEntity(a[s-3]),d.addAttributes(a[s-3],a[s-1]);break;case 10:d.addEntity(a[s-2]);break;case 11:d.addEntity(a[s]);break;case 12:d.addEntity(a[s-6],a[s-4]),d.addAttributes(a[s-6],a[s-1]);break;case 13:d.addEntity(a[s-5],a[s-3]);break;case 14:d.addEntity(a[s-3],a[s-1]);break;case 15:case 16:this.$=a[s].trim(),d.setAccTitle(this.$);break;case 17:case 18:this.$=a[s].trim(),d.setAccDescription(this.$);break;case 19:case 43:this.$=a[s];break;case 20:case 41:case 42:this.$=a[s].replace(/"/g,"");break;case 21:case 29:this.$=[a[s]];break;case 22:a[s].push(a[s-1]),this.$=a[s];break;case 23:this.$={attributeType:a[s-1],attributeName:a[s]};break;case 24:this.$={attributeType:a[s-2],attributeName:a[s-1],attributeKeyTypeList:a[s]};break;case 25:this.$={attributeType:a[s-2],attributeName:a[s-1],attributeComment:a[s]};break;case 26:this.$={attributeType:a[s-3],attributeName:a[s-2],attributeKeyTypeList:a[s-1],attributeComment:a[s]};break;case 27:case 28:case 31:this.$=a[s];break;case 30:a[s-2].push(a[s]),this.$=a[s-2];break;case 32:this.$=a[s].replace(/"/g,"");break;case 33:this.$={cardA:a[s],relType:a[s-1],cardB:a[s-2]};break;case 34:this.$=d.Cardinality.ZERO_OR_ONE;break;case 35:this.$=d.Cardinality.ZERO_OR_MORE;break;case 36:this.$=d.Cardinality.ONE_OR_MORE;break;case 37:this.$=d.Cardinality.ONLY_ONE;break;case 38:this.$=d.Cardinality.MD_PARENT;break;case 39:this.$=d.Identification.NON_IDENTIFYING;break;case 40:this.$=d.Identification.IDENTIFYING;break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:9,20:r,22:f,24:c,26:_,27:y,28:o},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:16,11:9,20:r,22:f,24:c,26:_,27:y,28:o},t(e,[2,5]),t(e,[2,6]),t(e,[2,11],{12:17,39:20,15:[1,18],18:[1,19],41:h,42:g,43:m,44:k,45:x}),{21:[1,26]},{23:[1,27]},{25:[1,28]},t(e,[2,18]),t(p,[2,19]),t(p,[2,20]),t(e,[2,4]),{11:29,27:y,28:o},{16:30,17:[1,31],29:32,30:33,34:O},{11:35,27:y,28:o},{40:36,46:[1,37],47:[1,38]},t(b,[2,34]),t(b,[2,35]),t(b,[2,36]),t(b,[2,37]),t(b,[2,38]),t(e,[2,15]),t(e,[2,16]),t(e,[2,17]),{13:[1,39]},{17:[1,40]},t(e,[2,10]),{16:41,17:[2,21],29:32,30:33,34:O},{31:42,34:[1,43]},{34:[2,27]},{19:[1,44]},{39:45,41:h,42:g,43:m,44:k,45:x},t(Y,[2,39]),t(Y,[2,40]),{14:46,27:[1,49],28:[1,48],48:[1,47]},t(e,[2,9]),{17:[2,22]},t(Z,[2,23],{32:50,33:51,35:52,37:F,38:M}),t([17,34,37,38],[2,28]),t(e,[2,14],{15:[1,55]}),t([27,28],[2,33]),t(e,[2,8]),t(e,[2,41]),t(e,[2,42]),t(e,[2,43]),t(Z,[2,24],{33:56,36:[1,57],38:M}),t(Z,[2,25]),t(S,[2,29]),t(Z,[2,32]),t(S,[2,31]),{16:58,17:[1,59],29:32,30:33,34:O},t(Z,[2,26]),{35:60,37:F},{17:[1,61]},t(e,[2,13]),t(S,[2,30]),t(e,[2,12])],defaultActions:{34:[2,27],41:[2,22]},parseError:u(function(i,n){if(n.recoverable)this.trace(i);else{var l=new Error(i);throw l.hash=n,l}},"parseError"),parse:u(function(i){var n=this,l=[0],d=[],E=[null],a=[],V=this.table,s="",j=0,lt=0,_t=2,ct=1,Et=a.slice.call(arguments,1),A=Object.create(this.lexer),H={yy:{}};for(var $ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,$)&&(H.yy[$]=this.yy[$]);A.setInput(i,H.yy),H.yy.lexer=A,H.yy.parser=this,typeof A.yylloc>"u"&&(A.yylloc={});var tt=A.yylloc;a.push(tt);var gt=A.options&&A.options.ranges;typeof H.yy.parseError=="function"?this.parseError=H.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function mt(D){l.length=l.length-2*D,E.length=E.length-D,a.length=a.length-D}u(mt,"popStack");function ht(){var D;return D=d.pop()||A.lex()||ct,typeof D!="number"&&(D instanceof Array&&(d=D,D=d.pop()),D=n.symbols_[D]||D),D}u(ht,"lex");for(var I,z,B,et,G={},q,W,dt,J;;){if(z=l[l.length-1],this.defaultActions[z]?B=this.defaultActions[z]:((I===null||typeof I>"u")&&(I=ht()),B=V[z]&&V[z][I]),typeof B>"u"||!B.length||!B[0]){var rt="";J=[];for(q in V[z])this.terminals_[q]&&q>_t&&J.push("'"+this.terminals_[q]+"'");A.showPosition?rt="Parse error on line "+(j+1)+`: +import{_ as u,d as U,s as kt,g as xt,c as Rt,b as Ot,p as bt,q as Nt,l as X,v as Tt,j as at,u as At,k as Mt,K as vt,Q as St,P as wt}from"./md-index-DwcL-8Z2.js";import{G as It}from"./md-graph-Dei6eZAD.js";import{l as Dt}from"./md-layout-ao6zl1AG.js";import"./md-_baseUniq-CnE51pk_.js";import"./md-_basePickBy-DzqsyDBx.js";const Lt=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function Bt(t){return typeof t=="string"&&Lt.test(t)}const v=[];for(let t=0;t<256;++t)v.push((t+256).toString(16).slice(1));function Ct(t,e=0){return v[t[e+0]]+v[t[e+1]]+v[t[e+2]]+v[t[e+3]]+"-"+v[t[e+4]]+v[t[e+5]]+"-"+v[t[e+6]]+v[t[e+7]]+"-"+v[t[e+8]]+v[t[e+9]]+"-"+v[t[e+10]]+v[t[e+11]]+v[t[e+12]]+v[t[e+13]]+v[t[e+14]]+v[t[e+15]]}function Pt(t){if(!Bt(t))throw TypeError("Invalid UUID");let e;const r=new Uint8Array(16);return r[0]=(e=parseInt(t.slice(0,8),16))>>>24,r[1]=e>>>16&255,r[2]=e>>>8&255,r[3]=e&255,r[4]=(e=parseInt(t.slice(9,13),16))>>>8,r[5]=e&255,r[6]=(e=parseInt(t.slice(14,18),16))>>>8,r[7]=e&255,r[8]=(e=parseInt(t.slice(19,23),16))>>>8,r[9]=e&255,r[10]=(e=parseInt(t.slice(24,36),16))/1099511627776&255,r[11]=e/4294967296&255,r[12]=e>>>24&255,r[13]=e>>>16&255,r[14]=e>>>8&255,r[15]=e&255,r}function Yt(t){t=unescape(encodeURIComponent(t));const e=[];for(let r=0;r>>32-e}function Ht(t){const e=[1518500249,1859775393,2400959708,3395469782],r=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof t=="string"){const y=unescape(encodeURIComponent(t));t=[];for(let o=0;o>>0;x=k,k=m,m=it(g,30)>>>0,g=h,h=b}r[0]=r[0]+h>>>0,r[1]=r[1]+g>>>0,r[2]=r[2]+m>>>0,r[3]=r[3]+k>>>0,r[4]=r[4]+x>>>0}return[r[0]>>24&255,r[0]>>16&255,r[0]>>8&255,r[0]&255,r[1]>>24&255,r[1]>>16&255,r[1]>>8&255,r[1]&255,r[2]>>24&255,r[2]>>16&255,r[2]>>8&255,r[2]&255,r[3]>>24&255,r[3]>>16&255,r[3]>>8&255,r[3]&255,r[4]>>24&255,r[4]>>16&255,r[4]>>8&255,r[4]&255]}const zt=Wt("v5",80,Ht);var nt=function(){var t=u(function(w,i,n,l){for(n=n||{},l=w.length;l--;n[w[l]]=i);return n},"o"),e=[6,8,10,20,22,24,26,27,28],r=[1,10],f=[1,11],c=[1,12],_=[1,13],y=[1,14],o=[1,15],h=[1,21],g=[1,22],m=[1,23],k=[1,24],x=[1,25],p=[6,8,10,13,15,18,19,20,22,24,26,27,28,41,42,43,44,45],O=[1,34],b=[27,28,46,47],Y=[41,42,43,44,45],Z=[17,34],F=[1,54],M=[1,53],S=[17,34,36,38],N={trace:u(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,entityName:11,relSpec:12,":":13,role:14,BLOCK_START:15,attributes:16,BLOCK_STOP:17,SQS:18,SQE:19,title:20,title_value:21,acc_title:22,acc_title_value:23,acc_descr:24,acc_descr_value:25,acc_descr_multiline_value:26,ALPHANUM:27,ENTITY_NAME:28,attribute:29,attributeType:30,attributeName:31,attributeKeyTypeList:32,attributeComment:33,ATTRIBUTE_WORD:34,attributeKeyType:35,COMMA:36,ATTRIBUTE_KEY:37,COMMENT:38,cardinality:39,relType:40,ZERO_OR_ONE:41,ZERO_OR_MORE:42,ONE_OR_MORE:43,ONLY_ONE:44,MD_PARENT:45,NON_IDENTIFYING:46,IDENTIFYING:47,WORD:48,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",8:"SPACE",10:"NEWLINE",13:":",15:"BLOCK_START",17:"BLOCK_STOP",18:"SQS",19:"SQE",20:"title",21:"title_value",22:"acc_title",23:"acc_title_value",24:"acc_descr",25:"acc_descr_value",26:"acc_descr_multiline_value",27:"ALPHANUM",28:"ENTITY_NAME",34:"ATTRIBUTE_WORD",36:"COMMA",37:"ATTRIBUTE_KEY",38:"COMMENT",41:"ZERO_OR_ONE",42:"ZERO_OR_MORE",43:"ONE_OR_MORE",44:"ONLY_ONE",45:"MD_PARENT",46:"NON_IDENTIFYING",47:"IDENTIFYING",48:"WORD"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,5],[9,4],[9,3],[9,1],[9,7],[9,6],[9,4],[9,2],[9,2],[9,2],[9,1],[11,1],[11,1],[16,1],[16,2],[29,2],[29,3],[29,3],[29,4],[30,1],[31,1],[32,1],[32,3],[35,1],[33,1],[12,3],[39,1],[39,1],[39,1],[39,1],[39,1],[40,1],[40,1],[14,1],[14,1],[14,1]],performAction:u(function(i,n,l,d,E,a,V){var s=a.length-1;switch(E){case 1:break;case 2:this.$=[];break;case 3:a[s-1].push(a[s]),this.$=a[s-1];break;case 4:case 5:this.$=a[s];break;case 6:case 7:this.$=[];break;case 8:d.addEntity(a[s-4]),d.addEntity(a[s-2]),d.addRelationship(a[s-4],a[s],a[s-2],a[s-3]);break;case 9:d.addEntity(a[s-3]),d.addAttributes(a[s-3],a[s-1]);break;case 10:d.addEntity(a[s-2]);break;case 11:d.addEntity(a[s]);break;case 12:d.addEntity(a[s-6],a[s-4]),d.addAttributes(a[s-6],a[s-1]);break;case 13:d.addEntity(a[s-5],a[s-3]);break;case 14:d.addEntity(a[s-3],a[s-1]);break;case 15:case 16:this.$=a[s].trim(),d.setAccTitle(this.$);break;case 17:case 18:this.$=a[s].trim(),d.setAccDescription(this.$);break;case 19:case 43:this.$=a[s];break;case 20:case 41:case 42:this.$=a[s].replace(/"/g,"");break;case 21:case 29:this.$=[a[s]];break;case 22:a[s].push(a[s-1]),this.$=a[s];break;case 23:this.$={attributeType:a[s-1],attributeName:a[s]};break;case 24:this.$={attributeType:a[s-2],attributeName:a[s-1],attributeKeyTypeList:a[s]};break;case 25:this.$={attributeType:a[s-2],attributeName:a[s-1],attributeComment:a[s]};break;case 26:this.$={attributeType:a[s-3],attributeName:a[s-2],attributeKeyTypeList:a[s-1],attributeComment:a[s]};break;case 27:case 28:case 31:this.$=a[s];break;case 30:a[s-2].push(a[s]),this.$=a[s-2];break;case 32:this.$=a[s].replace(/"/g,"");break;case 33:this.$={cardA:a[s],relType:a[s-1],cardB:a[s-2]};break;case 34:this.$=d.Cardinality.ZERO_OR_ONE;break;case 35:this.$=d.Cardinality.ZERO_OR_MORE;break;case 36:this.$=d.Cardinality.ONE_OR_MORE;break;case 37:this.$=d.Cardinality.ONLY_ONE;break;case 38:this.$=d.Cardinality.MD_PARENT;break;case 39:this.$=d.Identification.NON_IDENTIFYING;break;case 40:this.$=d.Identification.IDENTIFYING;break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:9,20:r,22:f,24:c,26:_,27:y,28:o},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:16,11:9,20:r,22:f,24:c,26:_,27:y,28:o},t(e,[2,5]),t(e,[2,6]),t(e,[2,11],{12:17,39:20,15:[1,18],18:[1,19],41:h,42:g,43:m,44:k,45:x}),{21:[1,26]},{23:[1,27]},{25:[1,28]},t(e,[2,18]),t(p,[2,19]),t(p,[2,20]),t(e,[2,4]),{11:29,27:y,28:o},{16:30,17:[1,31],29:32,30:33,34:O},{11:35,27:y,28:o},{40:36,46:[1,37],47:[1,38]},t(b,[2,34]),t(b,[2,35]),t(b,[2,36]),t(b,[2,37]),t(b,[2,38]),t(e,[2,15]),t(e,[2,16]),t(e,[2,17]),{13:[1,39]},{17:[1,40]},t(e,[2,10]),{16:41,17:[2,21],29:32,30:33,34:O},{31:42,34:[1,43]},{34:[2,27]},{19:[1,44]},{39:45,41:h,42:g,43:m,44:k,45:x},t(Y,[2,39]),t(Y,[2,40]),{14:46,27:[1,49],28:[1,48],48:[1,47]},t(e,[2,9]),{17:[2,22]},t(Z,[2,23],{32:50,33:51,35:52,37:F,38:M}),t([17,34,37,38],[2,28]),t(e,[2,14],{15:[1,55]}),t([27,28],[2,33]),t(e,[2,8]),t(e,[2,41]),t(e,[2,42]),t(e,[2,43]),t(Z,[2,24],{33:56,36:[1,57],38:M}),t(Z,[2,25]),t(S,[2,29]),t(Z,[2,32]),t(S,[2,31]),{16:58,17:[1,59],29:32,30:33,34:O},t(Z,[2,26]),{35:60,37:F},{17:[1,61]},t(e,[2,13]),t(S,[2,30]),t(e,[2,12])],defaultActions:{34:[2,27],41:[2,22]},parseError:u(function(i,n){if(n.recoverable)this.trace(i);else{var l=new Error(i);throw l.hash=n,l}},"parseError"),parse:u(function(i){var n=this,l=[0],d=[],E=[null],a=[],V=this.table,s="",j=0,lt=0,_t=2,ct=1,Et=a.slice.call(arguments,1),A=Object.create(this.lexer),H={yy:{}};for(var $ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,$)&&(H.yy[$]=this.yy[$]);A.setInput(i,H.yy),H.yy.lexer=A,H.yy.parser=this,typeof A.yylloc>"u"&&(A.yylloc={});var tt=A.yylloc;a.push(tt);var gt=A.options&&A.options.ranges;typeof H.yy.parseError=="function"?this.parseError=H.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function mt(D){l.length=l.length-2*D,E.length=E.length-D,a.length=a.length-D}u(mt,"popStack");function ht(){var D;return D=d.pop()||A.lex()||ct,typeof D!="number"&&(D instanceof Array&&(d=D,D=d.pop()),D=n.symbols_[D]||D),D}u(ht,"lex");for(var I,z,B,et,G={},q,W,dt,J;;){if(z=l[l.length-1],this.defaultActions[z]?B=this.defaultActions[z]:((I===null||typeof I>"u")&&(I=ht()),B=V[z]&&V[z][I]),typeof B>"u"||!B.length||!B[0]){var rt="";J=[];for(q in V[z])this.terminals_[q]&&q>_t&&J.push("'"+this.terminals_[q]+"'");A.showPosition?rt="Parse error on line "+(j+1)+`: `+A.showPosition()+` Expecting `+J.join(", ")+", got '"+(this.terminals_[I]||I)+"'":rt="Parse error on line "+(j+1)+": Unexpected "+(I==ct?"end of input":"'"+(this.terminals_[I]||I)+"'"),this.parseError(rt,{text:A.match,token:this.terminals_[I]||I,line:A.yylineno,loc:tt,expected:J})}if(B[0]instanceof Array&&B.length>1)throw new Error("Parse Error: multiple actions possible at state: "+z+", token: "+I);switch(B[0]){case 1:l.push(I),E.push(A.yytext),a.push(A.yylloc),l.push(B[1]),I=null,lt=A.yyleng,s=A.yytext,j=A.yylineno,tt=A.yylloc;break;case 2:if(W=this.productions_[B[1]][1],G.$=E[E.length-W],G._$={first_line:a[a.length-(W||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(W||1)].first_column,last_column:a[a.length-1].last_column},gt&&(G._$.range=[a[a.length-(W||1)].range[0],a[a.length-1].range[1]]),et=this.performAction.apply(G,[s,lt,j,H.yy,B[1],E,a].concat(Et)),typeof et<"u")return et;W&&(l=l.slice(0,-1*W*2),E=E.slice(0,-1*W),a=a.slice(0,-1*W)),l.push(this.productions_[B[1]][0]),E.push(G.$),a.push(G._$),dt=V[l[l.length-2]][l[l.length-1]],l.push(dt);break;case 3:return!0}}return!0},"parse")},T=function(){var w={EOF:1,parseError:u(function(n,l){if(this.yy.parser)this.yy.parser.parseError(n,l);else throw new Error(n)},"parseError"),setInput:u(function(i,n){return this.yy=n||this.yy||{},this._input=i,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:u(function(){var i=this._input[0];this.yytext+=i,this.yyleng++,this.offset++,this.match+=i,this.matched+=i;var n=i.match(/(?:\r\n?|\n).*/g);return n?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),i},"input"),unput:u(function(i){var n=i.length,l=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;var d=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),l.length-1&&(this.yylineno-=l.length-1);var E=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:l?(l.length===d.length?this.yylloc.first_column:0)+d[d.length-l.length].length-l[0].length:this.yylloc.first_column-n},this.options.ranges&&(this.yylloc.range=[E[0],E[0]+this.yyleng-n]),this.yyleng=this.yytext.length,this},"unput"),more:u(function(){return this._more=!0,this},"more"),reject:u(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:u(function(i){this.unput(this.match.slice(i))},"less"),pastInput:u(function(){var i=this.matched.substr(0,this.matched.length-this.match.length);return(i.length>20?"...":"")+i.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:u(function(){var i=this.match;return i.length<20&&(i+=this._input.substr(0,20-i.length)),(i.substr(0,20)+(i.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:u(function(){var i=this.pastInput(),n=new Array(i.length+1).join("-");return i+this.upcomingInput()+` diff --git a/static/js/md-flowDiagram-7ASYPVHJ-J29PyV-p.js b/static/js/md-flowDiagram-7ASYPVHJ-CNc02Idl.js similarity index 99% rename from static/js/md-flowDiagram-7ASYPVHJ-J29PyV-p.js rename to static/js/md-flowDiagram-7ASYPVHJ-CNc02Idl.js index 610846832..f9b26b070 100644 --- a/static/js/md-flowDiagram-7ASYPVHJ-J29PyV-p.js +++ b/static/js/md-flowDiagram-7ASYPVHJ-CNc02Idl.js @@ -1,4 +1,4 @@ -import{g as gt,s as At}from"./md-chunk-5HRBRIJM-ZvjOkuCg.js";import{d as U1,_ as l,n as Ze,o as bt,s as kt,g as mt,b as Et,c as St,p as Dt,q as xt,r as Ct,J as Tt,t as yt,l as e1,u as ge,v as Ft,x as _t,j as C1,y as Bt,z as vt,e as Vt,A as Lt}from"./md-index-xmajgeSt.js";import{c as wt}from"./md-channel-B-dfDPA1.js";var It="flowchart-",$e=0,M1=U1(),b1=new Map,K=[],K1=new Map,f1=[],Ae=new Map,be=new Map,ee=0,fe=!0,J,se,re=[],ne=l(e=>Vt.sanitizeText(e,M1),"sanitizeText"),ie=l(function(e){for(const r of b1.values())if(r.id===e)return r.domId;return e},"lookUpDomId"),Rt=l(function(e,r,n,i,u,d,g={},D){var _,z;if(!e||e.trim().length===0)return;let c,o=b1.get(e);if(o===void 0&&(o={id:e,labelType:"text",domId:It+e+"-"+$e,styles:[],classes:[]},b1.set(e,o)),$e++,r!==void 0?(M1=U1(),c=ne(r.text.trim()),o.labelType=r.type,c.startsWith('"')&&c.endsWith('"')&&(c=c.substring(1,c.length-1)),o.text=c):o.text===void 0&&(o.text=e),n!==void 0&&(o.type=n),i!=null&&i.forEach(function(B){o.styles.push(B)}),u!=null&&u.forEach(function(B){o.classes.push(B)}),d!==void 0&&(o.dir=d),o.props===void 0?o.props=g:g!==void 0&&Object.assign(o.props,g),D!==void 0){let B;D.includes(` +import{g as gt,s as At}from"./md-chunk-5HRBRIJM-BlmWzKS6.js";import{d as U1,_ as l,n as Ze,o as bt,s as kt,g as mt,b as Et,c as St,p as Dt,q as xt,r as Ct,J as Tt,t as yt,l as e1,u as ge,v as Ft,x as _t,j as C1,y as Bt,z as vt,e as Vt,A as Lt}from"./md-index-DwcL-8Z2.js";import{c as wt}from"./md-channel-CL0exIu9.js";var It="flowchart-",$e=0,M1=U1(),b1=new Map,K=[],K1=new Map,f1=[],Ae=new Map,be=new Map,ee=0,fe=!0,J,se,re=[],ne=l(e=>Vt.sanitizeText(e,M1),"sanitizeText"),ie=l(function(e){for(const r of b1.values())if(r.id===e)return r.domId;return e},"lookUpDomId"),Rt=l(function(e,r,n,i,u,d,g={},D){var _,z;if(!e||e.trim().length===0)return;let c,o=b1.get(e);if(o===void 0&&(o={id:e,labelType:"text",domId:It+e+"-"+$e,styles:[],classes:[]},b1.set(e,o)),$e++,r!==void 0?(M1=U1(),c=ne(r.text.trim()),o.labelType=r.type,c.startsWith('"')&&c.endsWith('"')&&(c=c.substring(1,c.length-1)),o.text=c):o.text===void 0&&(o.text=e),n!==void 0&&(o.type=n),i!=null&&i.forEach(function(B){o.styles.push(B)}),u!=null&&u.forEach(function(B){o.classes.push(B)}),d!==void 0&&(o.dir=d),o.props===void 0?o.props=g:g!==void 0&&Object.assign(o.props,g),D!==void 0){let B;D.includes(` `)?B=D+` `:B=`{ `+D+` diff --git a/static/js/md-ganttDiagram-NTVNEXSI-Cih-I6r8.js b/static/js/md-ganttDiagram-NTVNEXSI-Cd6Fwjxw.js similarity index 99% rename from static/js/md-ganttDiagram-NTVNEXSI-Cih-I6r8.js rename to static/js/md-ganttDiagram-NTVNEXSI-Cd6Fwjxw.js index a0bab2389..c02349f99 100644 --- a/static/js/md-ganttDiagram-NTVNEXSI-Cih-I6r8.js +++ b/static/js/md-ganttDiagram-NTVNEXSI-Cd6Fwjxw.js @@ -1,4 +1,4 @@ -import{aV as Jt,aW as $t,aX as Kt,aY as en,aZ as Fn,a_ as rt,a$ as En,aH as vt,aI as bt,_ as d,b0 as ae,d as _e,s as Ln,g as An,p as In,q as Wn,c as On,b as Hn,v as Nn,m as Vn,l as Qe,j as Ze,k as zn,e as Pn,u as Rn}from"./md-index-xmajgeSt.js";import{b as Bn,t as It,c as Zn,a as qn,l as Xn}from"./md-linear-ZI0YCQr4.js";import{i as Gn}from"./md-init-Gi6I4Gst.js";function jn(e,t){let n;if(t===void 0)for(const r of e)r!=null&&(n=r)&&(n=r);else{let r=-1;for(let a of e)(a=t(a,++r,e))!=null&&(n=a)&&(n=a)}return n}function Qn(e,t){let n;if(t===void 0)for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let a of e)(a=t(a,++r,e))!=null&&(n>a||n===void 0&&a>=a)&&(n=a)}return n}function Jn(e){return e}var Xe=1,at=2,mt=3,qe=4,Wt=1e-6;function $n(e){return"translate("+e+",0)"}function Kn(e){return"translate(0,"+e+")"}function er(e){return t=>+e(t)}function tr(e,t){return t=Math.max(0,e.bandwidth()-t*2)/2,e.round()&&(t=Math.round(t)),n=>+e(n)+t}function nr(){return!this.__axis}function tn(e,t){var n=[],r=null,a=null,i=6,s=6,k=3,M=typeof window<"u"&&window.devicePixelRatio>1?0:.5,v=e===Xe||e===qe?-1:1,g=e===qe||e===at?"x":"y",F=e===Xe||e===mt?$n:Kn;function D(b){var X=r??(t.ticks?t.ticks.apply(t,n):t.domain()),O=a??(t.tickFormat?t.tickFormat.apply(t,n):Jn),C=Math.max(i,0)+k,I=t.range(),V=+I[0]+M,W=+I[I.length-1]+M,Z=(t.bandwidth?tr:er)(t.copy(),M),Q=b.selection?b.selection():b,w=Q.selectAll(".domain").data([null]),H=Q.selectAll(".tick").data(X,t).order(),x=H.exit(),Y=H.enter().append("g").attr("class","tick"),_=H.select("line"),S=H.select("text");w=w.merge(w.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),H=H.merge(Y),_=_.merge(Y.append("line").attr("stroke","currentColor").attr(g+"2",v*i)),S=S.merge(Y.append("text").attr("fill","currentColor").attr(g,v*C).attr("dy",e===Xe?"0em":e===mt?"0.71em":"0.32em")),b!==Q&&(w=w.transition(b),H=H.transition(b),_=_.transition(b),S=S.transition(b),x=x.transition(b).attr("opacity",Wt).attr("transform",function(p){return isFinite(p=Z(p))?F(p+M):this.getAttribute("transform")}),Y.attr("opacity",Wt).attr("transform",function(p){var U=this.parentNode.__axis;return F((U&&isFinite(U=U(p))?U:Z(p))+M)})),x.remove(),w.attr("d",e===qe||e===at?s?"M"+v*s+","+V+"H"+M+"V"+W+"H"+v*s:"M"+M+","+V+"V"+W:s?"M"+V+","+v*s+"V"+M+"H"+W+"V"+v*s:"M"+V+","+M+"H"+W),H.attr("opacity",1).attr("transform",function(p){return F(Z(p)+M)}),_.attr(g+"2",v*i),S.attr(g,v*C).text(O),Q.filter(nr).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",e===at?"start":e===qe?"end":"middle"),Q.each(function(){this.__axis=Z})}return D.scale=function(b){return arguments.length?(t=b,D):t},D.ticks=function(){return n=Array.from(arguments),D},D.tickArguments=function(b){return arguments.length?(n=b==null?[]:Array.from(b),D):n.slice()},D.tickValues=function(b){return arguments.length?(r=b==null?null:Array.from(b),D):r&&r.slice()},D.tickFormat=function(b){return arguments.length?(a=b,D):a},D.tickSize=function(b){return arguments.length?(i=s=+b,D):i},D.tickSizeInner=function(b){return arguments.length?(i=+b,D):i},D.tickSizeOuter=function(b){return arguments.length?(s=+b,D):s},D.tickPadding=function(b){return arguments.length?(k=+b,D):k},D.offset=function(b){return arguments.length?(M=+b,D):M},D}function rr(e){return tn(Xe,e)}function ar(e){return tn(mt,e)}const ir=Math.PI/180,sr=180/Math.PI,Je=18,nn=.96422,rn=1,an=.82521,sn=4/29,Se=6/29,on=3*Se*Se,or=Se*Se*Se;function cn(e){if(e instanceof fe)return new fe(e.l,e.a,e.b,e.opacity);if(e instanceof he)return un(e);e instanceof Kt||(e=Fn(e));var t=ct(e.r),n=ct(e.g),r=ct(e.b),a=it((.2225045*t+.7168786*n+.0606169*r)/rn),i,s;return t===n&&n===r?i=s=a:(i=it((.4360747*t+.3850649*n+.1430804*r)/nn),s=it((.0139322*t+.0971045*n+.7141733*r)/an)),new fe(116*a-16,500*(i-a),200*(a-s),e.opacity)}function cr(e,t,n,r){return arguments.length===1?cn(e):new fe(e,t,n,r??1)}function fe(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}Jt(fe,cr,$t(en,{brighter(e){return new fe(this.l+Je*(e??1),this.a,this.b,this.opacity)},darker(e){return new fe(this.l-Je*(e??1),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return t=nn*st(t),e=rn*st(e),n=an*st(n),new Kt(ot(3.1338561*t-1.6168667*e-.4906146*n),ot(-.9787684*t+1.9161415*e+.033454*n),ot(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}}));function it(e){return e>or?Math.pow(e,1/3):e/on+sn}function st(e){return e>Se?e*e*e:on*(e-sn)}function ot(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function ct(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function ur(e){if(e instanceof he)return new he(e.h,e.c,e.l,e.opacity);if(e instanceof fe||(e=cn(e)),e.a===0&&e.b===0)return new he(NaN,0(e(i=new Date(+i)),i),a.ceil=i=>(e(i=new Date(i-1)),t(i,1),e(i),i),a.round=i=>{const s=a(i),k=a.ceil(i);return i-s(t(i=new Date(+i),s==null?1:Math.floor(s)),i),a.range=(i,s,k)=>{const M=[];if(i=a.ceil(i),k=k==null?1:Math.floor(k),!(i0))return M;let v;do M.push(v=new Date(+i)),t(i,k),e(i);while(vte(s=>{if(s>=s)for(;e(s),!i(s);)s.setTime(s-1)},(s,k)=>{if(s>=s)if(k<0)for(;++k<=0;)for(;t(s,-1),!i(s););else for(;--k>=0;)for(;t(s,1),!i(s););}),n&&(a.count=(i,s)=>(ut.setTime(+i),lt.setTime(+s),e(ut),e(lt),Math.floor(n(ut,lt))),a.every=i=>(i=Math.floor(i),!isFinite(i)||!(i>0)?null:i>1?a.filter(r?s=>r(s)%i===0:s=>a.count(0,s)%i===0):a)),a}const Ue=te(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Ue.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?te(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):Ue);Ue.range;const me=1e3,ce=me*60,ge=ce*60,ye=ge*24,xt=ye*7,Ot=ye*30,ft=ye*365,Te=te(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*me)},(e,t)=>(t-e)/me,e=>e.getUTCSeconds());Te.range;const We=te(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*me)},(e,t)=>{e.setTime(+e+t*ce)},(e,t)=>(t-e)/ce,e=>e.getMinutes());We.range;const hr=te(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*ce)},(e,t)=>(t-e)/ce,e=>e.getUTCMinutes());hr.range;const Oe=te(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*me-e.getMinutes()*ce)},(e,t)=>{e.setTime(+e+t*ge)},(e,t)=>(t-e)/ge,e=>e.getHours());Oe.range;const mr=te(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*ge)},(e,t)=>(t-e)/ge,e=>e.getUTCHours());mr.range;const ve=te(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*ce)/ye,e=>e.getDate()-1);ve.range;const wt=te(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/ye,e=>e.getUTCDate()-1);wt.range;const gr=te(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/ye,e=>Math.floor(e/ye));gr.range;function we(e){return te(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,n)=>{t.setDate(t.getDate()+n*7)},(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*ce)/xt)}const Ve=we(0),He=we(1),ln=we(2),fn=we(3),be=we(4),dn=we(5),hn=we(6);Ve.range;He.range;ln.range;fn.range;be.range;dn.range;hn.range;function De(e){return te(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCDate(t.getUTCDate()+n*7)},(t,n)=>(n-t)/xt)}const mn=De(0),$e=De(1),yr=De(2),kr=De(3),Fe=De(4),pr=De(5),Tr=De(6);mn.range;$e.range;yr.range;kr.range;Fe.range;pr.range;Tr.range;const Ne=te(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());Ne.range;const vr=te(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());vr.range;const ke=te(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());ke.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:te(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)});ke.range;const xe=te(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());xe.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:te(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)});xe.range;function br(e,t,n,r,a,i){const s=[[Te,1,me],[Te,5,5*me],[Te,15,15*me],[Te,30,30*me],[i,1,ce],[i,5,5*ce],[i,15,15*ce],[i,30,30*ce],[a,1,ge],[a,3,3*ge],[a,6,6*ge],[a,12,12*ge],[r,1,ye],[r,2,2*ye],[n,1,xt],[t,1,Ot],[t,3,3*Ot],[e,1,ft]];function k(v,g,F){const D=gC).right(s,D);if(b===s.length)return e.every(It(v/ft,g/ft,F));if(b===0)return Ue.every(Math.max(It(v,g,F),1));const[X,O]=s[D/s[b-1][2]53)return null;"w"in l||(l.w=1),"Z"in l?(L=ht(Le(l.y,0,1)),j=L.getUTCDay(),L=j>4||j===0?$e.ceil(L):$e(L),L=wt.offset(L,(l.V-1)*7),l.y=L.getUTCFullYear(),l.m=L.getUTCMonth(),l.d=L.getUTCDate()+(l.w+6)%7):(L=dt(Le(l.y,0,1)),j=L.getDay(),L=j>4||j===0?He.ceil(L):He(L),L=ve.offset(L,(l.V-1)*7),l.y=L.getFullYear(),l.m=L.getMonth(),l.d=L.getDate()+(l.w+6)%7)}else("W"in l||"U"in l)&&("w"in l||(l.w="u"in l?l.u%7:"W"in l?1:0),j="Z"in l?ht(Le(l.y,0,1)).getUTCDay():dt(Le(l.y,0,1)).getDay(),l.m=0,l.d="W"in l?(l.w+6)%7+l.W*7-(j+5)%7:l.w+l.U*7-(j+6)%7);return"Z"in l?(l.H+=l.Z/100|0,l.M+=l.Z%100,ht(l)):dt(l)}}function x(T,A,N,l){for(var $=0,L=A.length,j=N.length,q,re;$=j)return-1;if(q=A.charCodeAt($++),q===37){if(q=A.charAt($++),re=Q[q in Ht?A.charAt($++):q],!re||(l=re(T,N,l))<0)return-1}else if(q!=N.charCodeAt(l++))return-1}return l}function Y(T,A,N){var l=v.exec(A.slice(N));return l?(T.p=g.get(l[0].toLowerCase()),N+l[0].length):-1}function _(T,A,N){var l=b.exec(A.slice(N));return l?(T.w=X.get(l[0].toLowerCase()),N+l[0].length):-1}function S(T,A,N){var l=F.exec(A.slice(N));return l?(T.w=D.get(l[0].toLowerCase()),N+l[0].length):-1}function p(T,A,N){var l=I.exec(A.slice(N));return l?(T.m=V.get(l[0].toLowerCase()),N+l[0].length):-1}function U(T,A,N){var l=O.exec(A.slice(N));return l?(T.m=C.get(l[0].toLowerCase()),N+l[0].length):-1}function u(T,A,N){return x(T,t,A,N)}function f(T,A,N){return x(T,n,A,N)}function y(T,A,N){return x(T,r,A,N)}function m(T){return s[T.getDay()]}function E(T){return i[T.getDay()]}function c(T){return M[T.getMonth()]}function h(T){return k[T.getMonth()]}function o(T){return a[+(T.getHours()>=12)]}function P(T){return 1+~~(T.getMonth()/3)}function z(T){return s[T.getUTCDay()]}function R(T){return i[T.getUTCDay()]}function K(T){return M[T.getUTCMonth()]}function G(T){return k[T.getUTCMonth()]}function J(T){return a[+(T.getUTCHours()>=12)]}function ie(T){return 1+~~(T.getUTCMonth()/3)}return{format:function(T){var A=w(T+="",W);return A.toString=function(){return T},A},parse:function(T){var A=H(T+="",!1);return A.toString=function(){return T},A},utcFormat:function(T){var A=w(T+="",Z);return A.toString=function(){return T},A},utcParse:function(T){var A=H(T+="",!0);return A.toString=function(){return T},A}}}var Ht={"-":"",_:" ",0:"0"},ne=/^\s*\d+/,Cr=/^%/,Mr=/[\\^$*+?|[\]().{}]/g;function B(e,t,n){var r=e<0?"-":"",a=(r?-e:e)+"",i=a.length;return r+(i[t.toLowerCase(),n]))}function Sr(e,t,n){var r=ne.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function Yr(e,t,n){var r=ne.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function Ur(e,t,n){var r=ne.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function Fr(e,t,n){var r=ne.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function Er(e,t,n){var r=ne.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function Nt(e,t,n){var r=ne.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function Vt(e,t,n){var r=ne.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Lr(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function Ar(e,t,n){var r=ne.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function Ir(e,t,n){var r=ne.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function zt(e,t,n){var r=ne.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function Wr(e,t,n){var r=ne.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function Pt(e,t,n){var r=ne.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function Or(e,t,n){var r=ne.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function Hr(e,t,n){var r=ne.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function Nr(e,t,n){var r=ne.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function Vr(e,t,n){var r=ne.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function zr(e,t,n){var r=Cr.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function Pr(e,t,n){var r=ne.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function Rr(e,t,n){var r=ne.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function Rt(e,t){return B(e.getDate(),t,2)}function Br(e,t){return B(e.getHours(),t,2)}function Zr(e,t){return B(e.getHours()%12||12,t,2)}function qr(e,t){return B(1+ve.count(ke(e),e),t,3)}function gn(e,t){return B(e.getMilliseconds(),t,3)}function Xr(e,t){return gn(e,t)+"000"}function Gr(e,t){return B(e.getMonth()+1,t,2)}function jr(e,t){return B(e.getMinutes(),t,2)}function Qr(e,t){return B(e.getSeconds(),t,2)}function Jr(e){var t=e.getDay();return t===0?7:t}function $r(e,t){return B(Ve.count(ke(e)-1,e),t,2)}function yn(e){var t=e.getDay();return t>=4||t===0?be(e):be.ceil(e)}function Kr(e,t){return e=yn(e),B(be.count(ke(e),e)+(ke(e).getDay()===4),t,2)}function ea(e){return e.getDay()}function ta(e,t){return B(He.count(ke(e)-1,e),t,2)}function na(e,t){return B(e.getFullYear()%100,t,2)}function ra(e,t){return e=yn(e),B(e.getFullYear()%100,t,2)}function aa(e,t){return B(e.getFullYear()%1e4,t,4)}function ia(e,t){var n=e.getDay();return e=n>=4||n===0?be(e):be.ceil(e),B(e.getFullYear()%1e4,t,4)}function sa(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+B(t/60|0,"0",2)+B(t%60,"0",2)}function Bt(e,t){return B(e.getUTCDate(),t,2)}function oa(e,t){return B(e.getUTCHours(),t,2)}function ca(e,t){return B(e.getUTCHours()%12||12,t,2)}function ua(e,t){return B(1+wt.count(xe(e),e),t,3)}function kn(e,t){return B(e.getUTCMilliseconds(),t,3)}function la(e,t){return kn(e,t)+"000"}function fa(e,t){return B(e.getUTCMonth()+1,t,2)}function da(e,t){return B(e.getUTCMinutes(),t,2)}function ha(e,t){return B(e.getUTCSeconds(),t,2)}function ma(e){var t=e.getUTCDay();return t===0?7:t}function ga(e,t){return B(mn.count(xe(e)-1,e),t,2)}function pn(e){var t=e.getUTCDay();return t>=4||t===0?Fe(e):Fe.ceil(e)}function ya(e,t){return e=pn(e),B(Fe.count(xe(e),e)+(xe(e).getUTCDay()===4),t,2)}function ka(e){return e.getUTCDay()}function pa(e,t){return B($e.count(xe(e)-1,e),t,2)}function Ta(e,t){return B(e.getUTCFullYear()%100,t,2)}function va(e,t){return e=pn(e),B(e.getUTCFullYear()%100,t,2)}function ba(e,t){return B(e.getUTCFullYear()%1e4,t,4)}function xa(e,t){var n=e.getUTCDay();return e=n>=4||n===0?Fe(e):Fe.ceil(e),B(e.getUTCFullYear()%1e4,t,4)}function wa(){return"+0000"}function Zt(){return"%"}function qt(e){return+e}function Xt(e){return Math.floor(+e/1e3)}var Me,Ke;Da({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function Da(e){return Me=Dr(e),Ke=Me.format,Me.parse,Me.utcFormat,Me.utcParse,Me}function Ca(e){return new Date(e)}function Ma(e){return e instanceof Date?+e:+new Date(+e)}function Tn(e,t,n,r,a,i,s,k,M,v){var g=Zn(),F=g.invert,D=g.domain,b=v(".%L"),X=v(":%S"),O=v("%I:%M"),C=v("%I %p"),I=v("%a %d"),V=v("%b %d"),W=v("%B"),Z=v("%Y");function Q(w){return(M(w)4&&(b+=7),D.add(b,n));return X.diff(O,"week")+1},k.isoWeekday=function(v){return this.$utils().u(v)?this.day()||7:this.day(this.day()%7?v:v-7)};var M=k.startOf;k.startOf=function(v,g){var F=this.$utils(),D=!!F.u(g)||g;return F.p(v)==="isoweek"?D?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):M.bind(this)(v,g)}}})})(vn);var Sa=vn.exports;const Ya=bt(Sa);var bn={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(vt,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,a=/\d/,i=/\d\d/,s=/\d\d?/,k=/\d*[^-_:/,()\s\d]+/,M={},v=function(C){return(C=+C)+(C>68?1900:2e3)},g=function(C){return function(I){this[C]=+I}},F=[/[+-]\d\d:?(\d\d)?|Z/,function(C){(this.zone||(this.zone={})).offset=function(I){if(!I||I==="Z")return 0;var V=I.match(/([+-]|\d\d)/g),W=60*V[1]+(+V[2]||0);return W===0?0:V[0]==="+"?-W:W}(C)}],D=function(C){var I=M[C];return I&&(I.indexOf?I:I.s.concat(I.f))},b=function(C,I){var V,W=M.meridiem;if(W){for(var Z=1;Z<=24;Z+=1)if(C.indexOf(W(Z,0,I))>-1){V=Z>12;break}}else V=C===(I?"pm":"PM");return V},X={A:[k,function(C){this.afternoon=b(C,!1)}],a:[k,function(C){this.afternoon=b(C,!0)}],Q:[a,function(C){this.month=3*(C-1)+1}],S:[a,function(C){this.milliseconds=100*+C}],SS:[i,function(C){this.milliseconds=10*+C}],SSS:[/\d{3}/,function(C){this.milliseconds=+C}],s:[s,g("seconds")],ss:[s,g("seconds")],m:[s,g("minutes")],mm:[s,g("minutes")],H:[s,g("hours")],h:[s,g("hours")],HH:[s,g("hours")],hh:[s,g("hours")],D:[s,g("day")],DD:[i,g("day")],Do:[k,function(C){var I=M.ordinal,V=C.match(/\d+/);if(this.day=V[0],I)for(var W=1;W<=31;W+=1)I(W).replace(/\[|\]/g,"")===C&&(this.day=W)}],w:[s,g("week")],ww:[i,g("week")],M:[s,g("month")],MM:[i,g("month")],MMM:[k,function(C){var I=D("months"),V=(D("monthsShort")||I.map(function(W){return W.slice(0,3)})).indexOf(C)+1;if(V<1)throw new Error;this.month=V%12||V}],MMMM:[k,function(C){var I=D("months").indexOf(C)+1;if(I<1)throw new Error;this.month=I%12||I}],Y:[/[+-]?\d+/,g("year")],YY:[i,function(C){this.year=v(C)}],YYYY:[/\d{4}/,g("year")],Z:F,ZZ:F};function O(C){var I,V;I=C,V=M&&M.formats;for(var W=(C=I.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(_,S,p){var U=p&&p.toUpperCase();return S||V[p]||n[p]||V[U].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(u,f,y){return f||y.slice(1)})})).match(r),Z=W.length,Q=0;Q-1)return new Date((E==="X"?1e3:1)*m);var o=O(E)(m),P=o.year,z=o.month,R=o.day,K=o.hours,G=o.minutes,J=o.seconds,ie=o.milliseconds,T=o.zone,A=o.week,N=new Date,l=R||(P||z?1:N.getDate()),$=P||N.getFullYear(),L=0;P&&!z||(L=z>0?z-1:N.getMonth());var j,q=K||0,re=G||0,se=J||0,pe=ie||0;return T?new Date(Date.UTC($,L,l,q,re,se,pe+60*T.offset*1e3)):c?new Date(Date.UTC($,L,l,q,re,se,pe)):(j=new Date($,L,l,q,re,se,pe),A&&(j=h(j).week(A).toDate()),j)}catch{return new Date("")}}(w,Y,H,V),this.init(),U&&U!==!0&&(this.$L=this.locale(U).$L),p&&w!=this.format(Y)&&(this.$d=new Date("")),M={}}else if(Y instanceof Array)for(var u=Y.length,f=1;f<=u;f+=1){x[1]=Y[f-1];var y=V.apply(this,x);if(y.isValid()){this.$d=y.$d,this.$L=y.$L,this.init();break}f===u&&(this.$d=new Date(""))}else Z.call(this,Q)}}})})(bn);var Ua=bn.exports;const Fa=bt(Ua);var xn={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(vt,function(){return function(n,r){var a=r.prototype,i=a.format;a.format=function(s){var k=this,M=this.$locale();if(!this.isValid())return i.bind(this)(s);var v=this.$utils(),g=(s||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(F){switch(F){case"Q":return Math.ceil((k.$M+1)/3);case"Do":return M.ordinal(k.$D);case"gggg":return k.weekYear();case"GGGG":return k.isoWeekYear();case"wo":return M.ordinal(k.week(),"W");case"w":case"ww":return v.s(k.week(),F==="w"?1:2,"0");case"W":case"WW":return v.s(k.isoWeek(),F==="W"?1:2,"0");case"k":case"kk":return v.s(String(k.$H===0?24:k.$H),F==="k"?1:2,"0");case"X":return Math.floor(k.$d.getTime()/1e3);case"x":return k.$d.getTime();case"z":return"["+k.offsetName()+"]";case"zzz":return"["+k.offsetName("long")+"]";default:return F}});return i.bind(this)(g)}}})})(xn);var Ea=xn.exports;const La=bt(Ea);var yt=function(){var e=d(function(U,u,f,y){for(f=f||{},y=U.length;y--;f[U[y]]=u);return f},"o"),t=[6,8,10,12,13,14,15,16,17,18,20,21,22,23,24,25,26,27,28,29,30,31,33,35,36,38,40],n=[1,26],r=[1,27],a=[1,28],i=[1,29],s=[1,30],k=[1,31],M=[1,32],v=[1,33],g=[1,34],F=[1,9],D=[1,10],b=[1,11],X=[1,12],O=[1,13],C=[1,14],I=[1,15],V=[1,16],W=[1,19],Z=[1,20],Q=[1,21],w=[1,22],H=[1,23],x=[1,25],Y=[1,35],_={trace:d(function(){},"trace"),yy:{},symbols_:{error:2,start:3,gantt:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NL:10,weekday:11,weekday_monday:12,weekday_tuesday:13,weekday_wednesday:14,weekday_thursday:15,weekday_friday:16,weekday_saturday:17,weekday_sunday:18,weekend:19,weekend_friday:20,weekend_saturday:21,dateFormat:22,inclusiveEndDates:23,topAxis:24,axisFormat:25,tickInterval:26,excludes:27,includes:28,todayMarker:29,title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,section:36,clickStatement:37,taskTxt:38,taskData:39,click:40,callbackname:41,callbackargs:42,href:43,clickStatementDebug:44,$accept:0,$end:1},terminals_:{2:"error",4:"gantt",6:"EOF",8:"SPACE",10:"NL",12:"weekday_monday",13:"weekday_tuesday",14:"weekday_wednesday",15:"weekday_thursday",16:"weekday_friday",17:"weekday_saturday",18:"weekday_sunday",20:"weekend_friday",21:"weekend_saturday",22:"dateFormat",23:"inclusiveEndDates",24:"topAxis",25:"axisFormat",26:"tickInterval",27:"excludes",28:"includes",29:"todayMarker",30:"title",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",36:"section",38:"taskTxt",39:"taskData",40:"click",41:"callbackname",42:"callbackargs",43:"href"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[19,1],[19,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,2],[37,2],[37,3],[37,3],[37,4],[37,3],[37,4],[37,2],[44,2],[44,3],[44,3],[44,4],[44,3],[44,4],[44,2]],performAction:d(function(u,f,y,m,E,c,h){var o=c.length-1;switch(E){case 1:return c[o-1];case 2:this.$=[];break;case 3:c[o-1].push(c[o]),this.$=c[o-1];break;case 4:case 5:this.$=c[o];break;case 6:case 7:this.$=[];break;case 8:m.setWeekday("monday");break;case 9:m.setWeekday("tuesday");break;case 10:m.setWeekday("wednesday");break;case 11:m.setWeekday("thursday");break;case 12:m.setWeekday("friday");break;case 13:m.setWeekday("saturday");break;case 14:m.setWeekday("sunday");break;case 15:m.setWeekend("friday");break;case 16:m.setWeekend("saturday");break;case 17:m.setDateFormat(c[o].substr(11)),this.$=c[o].substr(11);break;case 18:m.enableInclusiveEndDates(),this.$=c[o].substr(18);break;case 19:m.TopAxis(),this.$=c[o].substr(8);break;case 20:m.setAxisFormat(c[o].substr(11)),this.$=c[o].substr(11);break;case 21:m.setTickInterval(c[o].substr(13)),this.$=c[o].substr(13);break;case 22:m.setExcludes(c[o].substr(9)),this.$=c[o].substr(9);break;case 23:m.setIncludes(c[o].substr(9)),this.$=c[o].substr(9);break;case 24:m.setTodayMarker(c[o].substr(12)),this.$=c[o].substr(12);break;case 27:m.setDiagramTitle(c[o].substr(6)),this.$=c[o].substr(6);break;case 28:this.$=c[o].trim(),m.setAccTitle(this.$);break;case 29:case 30:this.$=c[o].trim(),m.setAccDescription(this.$);break;case 31:m.addSection(c[o].substr(8)),this.$=c[o].substr(8);break;case 33:m.addTask(c[o-1],c[o]),this.$="task";break;case 34:this.$=c[o-1],m.setClickEvent(c[o-1],c[o],null);break;case 35:this.$=c[o-2],m.setClickEvent(c[o-2],c[o-1],c[o]);break;case 36:this.$=c[o-2],m.setClickEvent(c[o-2],c[o-1],null),m.setLink(c[o-2],c[o]);break;case 37:this.$=c[o-3],m.setClickEvent(c[o-3],c[o-2],c[o-1]),m.setLink(c[o-3],c[o]);break;case 38:this.$=c[o-2],m.setClickEvent(c[o-2],c[o],null),m.setLink(c[o-2],c[o-1]);break;case 39:this.$=c[o-3],m.setClickEvent(c[o-3],c[o-1],c[o]),m.setLink(c[o-3],c[o-2]);break;case 40:this.$=c[o-1],m.setLink(c[o-1],c[o]);break;case 41:case 47:this.$=c[o-1]+" "+c[o];break;case 42:case 43:case 45:this.$=c[o-2]+" "+c[o-1]+" "+c[o];break;case 44:case 46:this.$=c[o-3]+" "+c[o-2]+" "+c[o-1]+" "+c[o];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},e(t,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:17,12:n,13:r,14:a,15:i,16:s,17:k,18:M,19:18,20:v,21:g,22:F,23:D,24:b,25:X,26:O,27:C,28:I,29:V,30:W,31:Z,33:Q,35:w,36:H,37:24,38:x,40:Y},e(t,[2,7],{1:[2,1]}),e(t,[2,3]),{9:36,11:17,12:n,13:r,14:a,15:i,16:s,17:k,18:M,19:18,20:v,21:g,22:F,23:D,24:b,25:X,26:O,27:C,28:I,29:V,30:W,31:Z,33:Q,35:w,36:H,37:24,38:x,40:Y},e(t,[2,5]),e(t,[2,6]),e(t,[2,17]),e(t,[2,18]),e(t,[2,19]),e(t,[2,20]),e(t,[2,21]),e(t,[2,22]),e(t,[2,23]),e(t,[2,24]),e(t,[2,25]),e(t,[2,26]),e(t,[2,27]),{32:[1,37]},{34:[1,38]},e(t,[2,30]),e(t,[2,31]),e(t,[2,32]),{39:[1,39]},e(t,[2,8]),e(t,[2,9]),e(t,[2,10]),e(t,[2,11]),e(t,[2,12]),e(t,[2,13]),e(t,[2,14]),e(t,[2,15]),e(t,[2,16]),{41:[1,40],43:[1,41]},e(t,[2,4]),e(t,[2,28]),e(t,[2,29]),e(t,[2,33]),e(t,[2,34],{42:[1,42],43:[1,43]}),e(t,[2,40],{41:[1,44]}),e(t,[2,35],{43:[1,45]}),e(t,[2,36]),e(t,[2,38],{42:[1,46]}),e(t,[2,37]),e(t,[2,39])],defaultActions:{},parseError:d(function(u,f){if(f.recoverable)this.trace(u);else{var y=new Error(u);throw y.hash=f,y}},"parseError"),parse:d(function(u){var f=this,y=[0],m=[],E=[null],c=[],h=this.table,o="",P=0,z=0,R=2,K=1,G=c.slice.call(arguments,1),J=Object.create(this.lexer),ie={yy:{}};for(var T in this.yy)Object.prototype.hasOwnProperty.call(this.yy,T)&&(ie.yy[T]=this.yy[T]);J.setInput(u,ie.yy),ie.yy.lexer=J,ie.yy.parser=this,typeof J.yylloc>"u"&&(J.yylloc={});var A=J.yylloc;c.push(A);var N=J.options&&J.options.ranges;typeof ie.yy.parseError=="function"?this.parseError=ie.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function l(oe){y.length=y.length-2*oe,E.length=E.length-oe,c.length=c.length-oe}d(l,"popStack");function $(){var oe;return oe=m.pop()||J.lex()||K,typeof oe!="number"&&(oe instanceof Array&&(m=oe,oe=m.pop()),oe=f.symbols_[oe]||oe),oe}d($,"lex");for(var L,j,q,re,se={},pe,ue,At,Be;;){if(j=y[y.length-1],this.defaultActions[j]?q=this.defaultActions[j]:((L===null||typeof L>"u")&&(L=$()),q=h[j]&&h[j][L]),typeof q>"u"||!q.length||!q[0]){var nt="";Be=[];for(pe in h[j])this.terminals_[pe]&&pe>R&&Be.push("'"+this.terminals_[pe]+"'");J.showPosition?nt="Parse error on line "+(P+1)+`: +import{aV as Jt,aW as $t,aX as Kt,aY as en,aZ as Fn,a_ as rt,a$ as En,aH as vt,aI as bt,_ as d,b0 as ae,d as _e,s as Ln,g as An,p as In,q as Wn,c as On,b as Hn,v as Nn,m as Vn,l as Qe,j as Ze,k as zn,e as Pn,u as Rn}from"./md-index-DwcL-8Z2.js";import{b as Bn,t as It,c as Zn,a as qn,l as Xn}from"./md-linear-BK_nKPY0.js";import{i as Gn}from"./md-init-Gi6I4Gst.js";function jn(e,t){let n;if(t===void 0)for(const r of e)r!=null&&(n=r)&&(n=r);else{let r=-1;for(let a of e)(a=t(a,++r,e))!=null&&(n=a)&&(n=a)}return n}function Qn(e,t){let n;if(t===void 0)for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let a of e)(a=t(a,++r,e))!=null&&(n>a||n===void 0&&a>=a)&&(n=a)}return n}function Jn(e){return e}var Xe=1,at=2,mt=3,qe=4,Wt=1e-6;function $n(e){return"translate("+e+",0)"}function Kn(e){return"translate(0,"+e+")"}function er(e){return t=>+e(t)}function tr(e,t){return t=Math.max(0,e.bandwidth()-t*2)/2,e.round()&&(t=Math.round(t)),n=>+e(n)+t}function nr(){return!this.__axis}function tn(e,t){var n=[],r=null,a=null,i=6,s=6,k=3,M=typeof window<"u"&&window.devicePixelRatio>1?0:.5,v=e===Xe||e===qe?-1:1,g=e===qe||e===at?"x":"y",F=e===Xe||e===mt?$n:Kn;function D(b){var X=r??(t.ticks?t.ticks.apply(t,n):t.domain()),O=a??(t.tickFormat?t.tickFormat.apply(t,n):Jn),C=Math.max(i,0)+k,I=t.range(),V=+I[0]+M,W=+I[I.length-1]+M,Z=(t.bandwidth?tr:er)(t.copy(),M),Q=b.selection?b.selection():b,w=Q.selectAll(".domain").data([null]),H=Q.selectAll(".tick").data(X,t).order(),x=H.exit(),Y=H.enter().append("g").attr("class","tick"),_=H.select("line"),S=H.select("text");w=w.merge(w.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),H=H.merge(Y),_=_.merge(Y.append("line").attr("stroke","currentColor").attr(g+"2",v*i)),S=S.merge(Y.append("text").attr("fill","currentColor").attr(g,v*C).attr("dy",e===Xe?"0em":e===mt?"0.71em":"0.32em")),b!==Q&&(w=w.transition(b),H=H.transition(b),_=_.transition(b),S=S.transition(b),x=x.transition(b).attr("opacity",Wt).attr("transform",function(p){return isFinite(p=Z(p))?F(p+M):this.getAttribute("transform")}),Y.attr("opacity",Wt).attr("transform",function(p){var U=this.parentNode.__axis;return F((U&&isFinite(U=U(p))?U:Z(p))+M)})),x.remove(),w.attr("d",e===qe||e===at?s?"M"+v*s+","+V+"H"+M+"V"+W+"H"+v*s:"M"+M+","+V+"V"+W:s?"M"+V+","+v*s+"V"+M+"H"+W+"V"+v*s:"M"+V+","+M+"H"+W),H.attr("opacity",1).attr("transform",function(p){return F(Z(p)+M)}),_.attr(g+"2",v*i),S.attr(g,v*C).text(O),Q.filter(nr).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",e===at?"start":e===qe?"end":"middle"),Q.each(function(){this.__axis=Z})}return D.scale=function(b){return arguments.length?(t=b,D):t},D.ticks=function(){return n=Array.from(arguments),D},D.tickArguments=function(b){return arguments.length?(n=b==null?[]:Array.from(b),D):n.slice()},D.tickValues=function(b){return arguments.length?(r=b==null?null:Array.from(b),D):r&&r.slice()},D.tickFormat=function(b){return arguments.length?(a=b,D):a},D.tickSize=function(b){return arguments.length?(i=s=+b,D):i},D.tickSizeInner=function(b){return arguments.length?(i=+b,D):i},D.tickSizeOuter=function(b){return arguments.length?(s=+b,D):s},D.tickPadding=function(b){return arguments.length?(k=+b,D):k},D.offset=function(b){return arguments.length?(M=+b,D):M},D}function rr(e){return tn(Xe,e)}function ar(e){return tn(mt,e)}const ir=Math.PI/180,sr=180/Math.PI,Je=18,nn=.96422,rn=1,an=.82521,sn=4/29,Se=6/29,on=3*Se*Se,or=Se*Se*Se;function cn(e){if(e instanceof fe)return new fe(e.l,e.a,e.b,e.opacity);if(e instanceof he)return un(e);e instanceof Kt||(e=Fn(e));var t=ct(e.r),n=ct(e.g),r=ct(e.b),a=it((.2225045*t+.7168786*n+.0606169*r)/rn),i,s;return t===n&&n===r?i=s=a:(i=it((.4360747*t+.3850649*n+.1430804*r)/nn),s=it((.0139322*t+.0971045*n+.7141733*r)/an)),new fe(116*a-16,500*(i-a),200*(a-s),e.opacity)}function cr(e,t,n,r){return arguments.length===1?cn(e):new fe(e,t,n,r??1)}function fe(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}Jt(fe,cr,$t(en,{brighter(e){return new fe(this.l+Je*(e??1),this.a,this.b,this.opacity)},darker(e){return new fe(this.l-Je*(e??1),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return t=nn*st(t),e=rn*st(e),n=an*st(n),new Kt(ot(3.1338561*t-1.6168667*e-.4906146*n),ot(-.9787684*t+1.9161415*e+.033454*n),ot(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}}));function it(e){return e>or?Math.pow(e,1/3):e/on+sn}function st(e){return e>Se?e*e*e:on*(e-sn)}function ot(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function ct(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function ur(e){if(e instanceof he)return new he(e.h,e.c,e.l,e.opacity);if(e instanceof fe||(e=cn(e)),e.a===0&&e.b===0)return new he(NaN,0(e(i=new Date(+i)),i),a.ceil=i=>(e(i=new Date(i-1)),t(i,1),e(i),i),a.round=i=>{const s=a(i),k=a.ceil(i);return i-s(t(i=new Date(+i),s==null?1:Math.floor(s)),i),a.range=(i,s,k)=>{const M=[];if(i=a.ceil(i),k=k==null?1:Math.floor(k),!(i0))return M;let v;do M.push(v=new Date(+i)),t(i,k),e(i);while(vte(s=>{if(s>=s)for(;e(s),!i(s);)s.setTime(s-1)},(s,k)=>{if(s>=s)if(k<0)for(;++k<=0;)for(;t(s,-1),!i(s););else for(;--k>=0;)for(;t(s,1),!i(s););}),n&&(a.count=(i,s)=>(ut.setTime(+i),lt.setTime(+s),e(ut),e(lt),Math.floor(n(ut,lt))),a.every=i=>(i=Math.floor(i),!isFinite(i)||!(i>0)?null:i>1?a.filter(r?s=>r(s)%i===0:s=>a.count(0,s)%i===0):a)),a}const Ue=te(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Ue.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?te(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):Ue);Ue.range;const me=1e3,ce=me*60,ge=ce*60,ye=ge*24,xt=ye*7,Ot=ye*30,ft=ye*365,Te=te(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*me)},(e,t)=>(t-e)/me,e=>e.getUTCSeconds());Te.range;const We=te(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*me)},(e,t)=>{e.setTime(+e+t*ce)},(e,t)=>(t-e)/ce,e=>e.getMinutes());We.range;const hr=te(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*ce)},(e,t)=>(t-e)/ce,e=>e.getUTCMinutes());hr.range;const Oe=te(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*me-e.getMinutes()*ce)},(e,t)=>{e.setTime(+e+t*ge)},(e,t)=>(t-e)/ge,e=>e.getHours());Oe.range;const mr=te(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*ge)},(e,t)=>(t-e)/ge,e=>e.getUTCHours());mr.range;const ve=te(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*ce)/ye,e=>e.getDate()-1);ve.range;const wt=te(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/ye,e=>e.getUTCDate()-1);wt.range;const gr=te(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/ye,e=>Math.floor(e/ye));gr.range;function we(e){return te(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,n)=>{t.setDate(t.getDate()+n*7)},(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*ce)/xt)}const Ve=we(0),He=we(1),ln=we(2),fn=we(3),be=we(4),dn=we(5),hn=we(6);Ve.range;He.range;ln.range;fn.range;be.range;dn.range;hn.range;function De(e){return te(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCDate(t.getUTCDate()+n*7)},(t,n)=>(n-t)/xt)}const mn=De(0),$e=De(1),yr=De(2),kr=De(3),Fe=De(4),pr=De(5),Tr=De(6);mn.range;$e.range;yr.range;kr.range;Fe.range;pr.range;Tr.range;const Ne=te(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());Ne.range;const vr=te(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());vr.range;const ke=te(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());ke.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:te(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)});ke.range;const xe=te(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());xe.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:te(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)});xe.range;function br(e,t,n,r,a,i){const s=[[Te,1,me],[Te,5,5*me],[Te,15,15*me],[Te,30,30*me],[i,1,ce],[i,5,5*ce],[i,15,15*ce],[i,30,30*ce],[a,1,ge],[a,3,3*ge],[a,6,6*ge],[a,12,12*ge],[r,1,ye],[r,2,2*ye],[n,1,xt],[t,1,Ot],[t,3,3*Ot],[e,1,ft]];function k(v,g,F){const D=gC).right(s,D);if(b===s.length)return e.every(It(v/ft,g/ft,F));if(b===0)return Ue.every(Math.max(It(v,g,F),1));const[X,O]=s[D/s[b-1][2]53)return null;"w"in l||(l.w=1),"Z"in l?(L=ht(Le(l.y,0,1)),j=L.getUTCDay(),L=j>4||j===0?$e.ceil(L):$e(L),L=wt.offset(L,(l.V-1)*7),l.y=L.getUTCFullYear(),l.m=L.getUTCMonth(),l.d=L.getUTCDate()+(l.w+6)%7):(L=dt(Le(l.y,0,1)),j=L.getDay(),L=j>4||j===0?He.ceil(L):He(L),L=ve.offset(L,(l.V-1)*7),l.y=L.getFullYear(),l.m=L.getMonth(),l.d=L.getDate()+(l.w+6)%7)}else("W"in l||"U"in l)&&("w"in l||(l.w="u"in l?l.u%7:"W"in l?1:0),j="Z"in l?ht(Le(l.y,0,1)).getUTCDay():dt(Le(l.y,0,1)).getDay(),l.m=0,l.d="W"in l?(l.w+6)%7+l.W*7-(j+5)%7:l.w+l.U*7-(j+6)%7);return"Z"in l?(l.H+=l.Z/100|0,l.M+=l.Z%100,ht(l)):dt(l)}}function x(T,A,N,l){for(var $=0,L=A.length,j=N.length,q,re;$=j)return-1;if(q=A.charCodeAt($++),q===37){if(q=A.charAt($++),re=Q[q in Ht?A.charAt($++):q],!re||(l=re(T,N,l))<0)return-1}else if(q!=N.charCodeAt(l++))return-1}return l}function Y(T,A,N){var l=v.exec(A.slice(N));return l?(T.p=g.get(l[0].toLowerCase()),N+l[0].length):-1}function _(T,A,N){var l=b.exec(A.slice(N));return l?(T.w=X.get(l[0].toLowerCase()),N+l[0].length):-1}function S(T,A,N){var l=F.exec(A.slice(N));return l?(T.w=D.get(l[0].toLowerCase()),N+l[0].length):-1}function p(T,A,N){var l=I.exec(A.slice(N));return l?(T.m=V.get(l[0].toLowerCase()),N+l[0].length):-1}function U(T,A,N){var l=O.exec(A.slice(N));return l?(T.m=C.get(l[0].toLowerCase()),N+l[0].length):-1}function u(T,A,N){return x(T,t,A,N)}function f(T,A,N){return x(T,n,A,N)}function y(T,A,N){return x(T,r,A,N)}function m(T){return s[T.getDay()]}function E(T){return i[T.getDay()]}function c(T){return M[T.getMonth()]}function h(T){return k[T.getMonth()]}function o(T){return a[+(T.getHours()>=12)]}function P(T){return 1+~~(T.getMonth()/3)}function z(T){return s[T.getUTCDay()]}function R(T){return i[T.getUTCDay()]}function K(T){return M[T.getUTCMonth()]}function G(T){return k[T.getUTCMonth()]}function J(T){return a[+(T.getUTCHours()>=12)]}function ie(T){return 1+~~(T.getUTCMonth()/3)}return{format:function(T){var A=w(T+="",W);return A.toString=function(){return T},A},parse:function(T){var A=H(T+="",!1);return A.toString=function(){return T},A},utcFormat:function(T){var A=w(T+="",Z);return A.toString=function(){return T},A},utcParse:function(T){var A=H(T+="",!0);return A.toString=function(){return T},A}}}var Ht={"-":"",_:" ",0:"0"},ne=/^\s*\d+/,Cr=/^%/,Mr=/[\\^$*+?|[\]().{}]/g;function B(e,t,n){var r=e<0?"-":"",a=(r?-e:e)+"",i=a.length;return r+(i[t.toLowerCase(),n]))}function Sr(e,t,n){var r=ne.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function Yr(e,t,n){var r=ne.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function Ur(e,t,n){var r=ne.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function Fr(e,t,n){var r=ne.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function Er(e,t,n){var r=ne.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function Nt(e,t,n){var r=ne.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function Vt(e,t,n){var r=ne.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Lr(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function Ar(e,t,n){var r=ne.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function Ir(e,t,n){var r=ne.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function zt(e,t,n){var r=ne.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function Wr(e,t,n){var r=ne.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function Pt(e,t,n){var r=ne.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function Or(e,t,n){var r=ne.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function Hr(e,t,n){var r=ne.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function Nr(e,t,n){var r=ne.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function Vr(e,t,n){var r=ne.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function zr(e,t,n){var r=Cr.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function Pr(e,t,n){var r=ne.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function Rr(e,t,n){var r=ne.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function Rt(e,t){return B(e.getDate(),t,2)}function Br(e,t){return B(e.getHours(),t,2)}function Zr(e,t){return B(e.getHours()%12||12,t,2)}function qr(e,t){return B(1+ve.count(ke(e),e),t,3)}function gn(e,t){return B(e.getMilliseconds(),t,3)}function Xr(e,t){return gn(e,t)+"000"}function Gr(e,t){return B(e.getMonth()+1,t,2)}function jr(e,t){return B(e.getMinutes(),t,2)}function Qr(e,t){return B(e.getSeconds(),t,2)}function Jr(e){var t=e.getDay();return t===0?7:t}function $r(e,t){return B(Ve.count(ke(e)-1,e),t,2)}function yn(e){var t=e.getDay();return t>=4||t===0?be(e):be.ceil(e)}function Kr(e,t){return e=yn(e),B(be.count(ke(e),e)+(ke(e).getDay()===4),t,2)}function ea(e){return e.getDay()}function ta(e,t){return B(He.count(ke(e)-1,e),t,2)}function na(e,t){return B(e.getFullYear()%100,t,2)}function ra(e,t){return e=yn(e),B(e.getFullYear()%100,t,2)}function aa(e,t){return B(e.getFullYear()%1e4,t,4)}function ia(e,t){var n=e.getDay();return e=n>=4||n===0?be(e):be.ceil(e),B(e.getFullYear()%1e4,t,4)}function sa(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+B(t/60|0,"0",2)+B(t%60,"0",2)}function Bt(e,t){return B(e.getUTCDate(),t,2)}function oa(e,t){return B(e.getUTCHours(),t,2)}function ca(e,t){return B(e.getUTCHours()%12||12,t,2)}function ua(e,t){return B(1+wt.count(xe(e),e),t,3)}function kn(e,t){return B(e.getUTCMilliseconds(),t,3)}function la(e,t){return kn(e,t)+"000"}function fa(e,t){return B(e.getUTCMonth()+1,t,2)}function da(e,t){return B(e.getUTCMinutes(),t,2)}function ha(e,t){return B(e.getUTCSeconds(),t,2)}function ma(e){var t=e.getUTCDay();return t===0?7:t}function ga(e,t){return B(mn.count(xe(e)-1,e),t,2)}function pn(e){var t=e.getUTCDay();return t>=4||t===0?Fe(e):Fe.ceil(e)}function ya(e,t){return e=pn(e),B(Fe.count(xe(e),e)+(xe(e).getUTCDay()===4),t,2)}function ka(e){return e.getUTCDay()}function pa(e,t){return B($e.count(xe(e)-1,e),t,2)}function Ta(e,t){return B(e.getUTCFullYear()%100,t,2)}function va(e,t){return e=pn(e),B(e.getUTCFullYear()%100,t,2)}function ba(e,t){return B(e.getUTCFullYear()%1e4,t,4)}function xa(e,t){var n=e.getUTCDay();return e=n>=4||n===0?Fe(e):Fe.ceil(e),B(e.getUTCFullYear()%1e4,t,4)}function wa(){return"+0000"}function Zt(){return"%"}function qt(e){return+e}function Xt(e){return Math.floor(+e/1e3)}var Me,Ke;Da({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function Da(e){return Me=Dr(e),Ke=Me.format,Me.parse,Me.utcFormat,Me.utcParse,Me}function Ca(e){return new Date(e)}function Ma(e){return e instanceof Date?+e:+new Date(+e)}function Tn(e,t,n,r,a,i,s,k,M,v){var g=Zn(),F=g.invert,D=g.domain,b=v(".%L"),X=v(":%S"),O=v("%I:%M"),C=v("%I %p"),I=v("%a %d"),V=v("%b %d"),W=v("%B"),Z=v("%Y");function Q(w){return(M(w)4&&(b+=7),D.add(b,n));return X.diff(O,"week")+1},k.isoWeekday=function(v){return this.$utils().u(v)?this.day()||7:this.day(this.day()%7?v:v-7)};var M=k.startOf;k.startOf=function(v,g){var F=this.$utils(),D=!!F.u(g)||g;return F.p(v)==="isoweek"?D?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):M.bind(this)(v,g)}}})})(vn);var Sa=vn.exports;const Ya=bt(Sa);var bn={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(vt,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,a=/\d/,i=/\d\d/,s=/\d\d?/,k=/\d*[^-_:/,()\s\d]+/,M={},v=function(C){return(C=+C)+(C>68?1900:2e3)},g=function(C){return function(I){this[C]=+I}},F=[/[+-]\d\d:?(\d\d)?|Z/,function(C){(this.zone||(this.zone={})).offset=function(I){if(!I||I==="Z")return 0;var V=I.match(/([+-]|\d\d)/g),W=60*V[1]+(+V[2]||0);return W===0?0:V[0]==="+"?-W:W}(C)}],D=function(C){var I=M[C];return I&&(I.indexOf?I:I.s.concat(I.f))},b=function(C,I){var V,W=M.meridiem;if(W){for(var Z=1;Z<=24;Z+=1)if(C.indexOf(W(Z,0,I))>-1){V=Z>12;break}}else V=C===(I?"pm":"PM");return V},X={A:[k,function(C){this.afternoon=b(C,!1)}],a:[k,function(C){this.afternoon=b(C,!0)}],Q:[a,function(C){this.month=3*(C-1)+1}],S:[a,function(C){this.milliseconds=100*+C}],SS:[i,function(C){this.milliseconds=10*+C}],SSS:[/\d{3}/,function(C){this.milliseconds=+C}],s:[s,g("seconds")],ss:[s,g("seconds")],m:[s,g("minutes")],mm:[s,g("minutes")],H:[s,g("hours")],h:[s,g("hours")],HH:[s,g("hours")],hh:[s,g("hours")],D:[s,g("day")],DD:[i,g("day")],Do:[k,function(C){var I=M.ordinal,V=C.match(/\d+/);if(this.day=V[0],I)for(var W=1;W<=31;W+=1)I(W).replace(/\[|\]/g,"")===C&&(this.day=W)}],w:[s,g("week")],ww:[i,g("week")],M:[s,g("month")],MM:[i,g("month")],MMM:[k,function(C){var I=D("months"),V=(D("monthsShort")||I.map(function(W){return W.slice(0,3)})).indexOf(C)+1;if(V<1)throw new Error;this.month=V%12||V}],MMMM:[k,function(C){var I=D("months").indexOf(C)+1;if(I<1)throw new Error;this.month=I%12||I}],Y:[/[+-]?\d+/,g("year")],YY:[i,function(C){this.year=v(C)}],YYYY:[/\d{4}/,g("year")],Z:F,ZZ:F};function O(C){var I,V;I=C,V=M&&M.formats;for(var W=(C=I.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(_,S,p){var U=p&&p.toUpperCase();return S||V[p]||n[p]||V[U].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(u,f,y){return f||y.slice(1)})})).match(r),Z=W.length,Q=0;Q-1)return new Date((E==="X"?1e3:1)*m);var o=O(E)(m),P=o.year,z=o.month,R=o.day,K=o.hours,G=o.minutes,J=o.seconds,ie=o.milliseconds,T=o.zone,A=o.week,N=new Date,l=R||(P||z?1:N.getDate()),$=P||N.getFullYear(),L=0;P&&!z||(L=z>0?z-1:N.getMonth());var j,q=K||0,re=G||0,se=J||0,pe=ie||0;return T?new Date(Date.UTC($,L,l,q,re,se,pe+60*T.offset*1e3)):c?new Date(Date.UTC($,L,l,q,re,se,pe)):(j=new Date($,L,l,q,re,se,pe),A&&(j=h(j).week(A).toDate()),j)}catch{return new Date("")}}(w,Y,H,V),this.init(),U&&U!==!0&&(this.$L=this.locale(U).$L),p&&w!=this.format(Y)&&(this.$d=new Date("")),M={}}else if(Y instanceof Array)for(var u=Y.length,f=1;f<=u;f+=1){x[1]=Y[f-1];var y=V.apply(this,x);if(y.isValid()){this.$d=y.$d,this.$L=y.$L,this.init();break}f===u&&(this.$d=new Date(""))}else Z.call(this,Q)}}})})(bn);var Ua=bn.exports;const Fa=bt(Ua);var xn={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(vt,function(){return function(n,r){var a=r.prototype,i=a.format;a.format=function(s){var k=this,M=this.$locale();if(!this.isValid())return i.bind(this)(s);var v=this.$utils(),g=(s||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(F){switch(F){case"Q":return Math.ceil((k.$M+1)/3);case"Do":return M.ordinal(k.$D);case"gggg":return k.weekYear();case"GGGG":return k.isoWeekYear();case"wo":return M.ordinal(k.week(),"W");case"w":case"ww":return v.s(k.week(),F==="w"?1:2,"0");case"W":case"WW":return v.s(k.isoWeek(),F==="W"?1:2,"0");case"k":case"kk":return v.s(String(k.$H===0?24:k.$H),F==="k"?1:2,"0");case"X":return Math.floor(k.$d.getTime()/1e3);case"x":return k.$d.getTime();case"z":return"["+k.offsetName()+"]";case"zzz":return"["+k.offsetName("long")+"]";default:return F}});return i.bind(this)(g)}}})})(xn);var Ea=xn.exports;const La=bt(Ea);var yt=function(){var e=d(function(U,u,f,y){for(f=f||{},y=U.length;y--;f[U[y]]=u);return f},"o"),t=[6,8,10,12,13,14,15,16,17,18,20,21,22,23,24,25,26,27,28,29,30,31,33,35,36,38,40],n=[1,26],r=[1,27],a=[1,28],i=[1,29],s=[1,30],k=[1,31],M=[1,32],v=[1,33],g=[1,34],F=[1,9],D=[1,10],b=[1,11],X=[1,12],O=[1,13],C=[1,14],I=[1,15],V=[1,16],W=[1,19],Z=[1,20],Q=[1,21],w=[1,22],H=[1,23],x=[1,25],Y=[1,35],_={trace:d(function(){},"trace"),yy:{},symbols_:{error:2,start:3,gantt:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NL:10,weekday:11,weekday_monday:12,weekday_tuesday:13,weekday_wednesday:14,weekday_thursday:15,weekday_friday:16,weekday_saturday:17,weekday_sunday:18,weekend:19,weekend_friday:20,weekend_saturday:21,dateFormat:22,inclusiveEndDates:23,topAxis:24,axisFormat:25,tickInterval:26,excludes:27,includes:28,todayMarker:29,title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,section:36,clickStatement:37,taskTxt:38,taskData:39,click:40,callbackname:41,callbackargs:42,href:43,clickStatementDebug:44,$accept:0,$end:1},terminals_:{2:"error",4:"gantt",6:"EOF",8:"SPACE",10:"NL",12:"weekday_monday",13:"weekday_tuesday",14:"weekday_wednesday",15:"weekday_thursday",16:"weekday_friday",17:"weekday_saturday",18:"weekday_sunday",20:"weekend_friday",21:"weekend_saturday",22:"dateFormat",23:"inclusiveEndDates",24:"topAxis",25:"axisFormat",26:"tickInterval",27:"excludes",28:"includes",29:"todayMarker",30:"title",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",36:"section",38:"taskTxt",39:"taskData",40:"click",41:"callbackname",42:"callbackargs",43:"href"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[19,1],[19,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,2],[37,2],[37,3],[37,3],[37,4],[37,3],[37,4],[37,2],[44,2],[44,3],[44,3],[44,4],[44,3],[44,4],[44,2]],performAction:d(function(u,f,y,m,E,c,h){var o=c.length-1;switch(E){case 1:return c[o-1];case 2:this.$=[];break;case 3:c[o-1].push(c[o]),this.$=c[o-1];break;case 4:case 5:this.$=c[o];break;case 6:case 7:this.$=[];break;case 8:m.setWeekday("monday");break;case 9:m.setWeekday("tuesday");break;case 10:m.setWeekday("wednesday");break;case 11:m.setWeekday("thursday");break;case 12:m.setWeekday("friday");break;case 13:m.setWeekday("saturday");break;case 14:m.setWeekday("sunday");break;case 15:m.setWeekend("friday");break;case 16:m.setWeekend("saturday");break;case 17:m.setDateFormat(c[o].substr(11)),this.$=c[o].substr(11);break;case 18:m.enableInclusiveEndDates(),this.$=c[o].substr(18);break;case 19:m.TopAxis(),this.$=c[o].substr(8);break;case 20:m.setAxisFormat(c[o].substr(11)),this.$=c[o].substr(11);break;case 21:m.setTickInterval(c[o].substr(13)),this.$=c[o].substr(13);break;case 22:m.setExcludes(c[o].substr(9)),this.$=c[o].substr(9);break;case 23:m.setIncludes(c[o].substr(9)),this.$=c[o].substr(9);break;case 24:m.setTodayMarker(c[o].substr(12)),this.$=c[o].substr(12);break;case 27:m.setDiagramTitle(c[o].substr(6)),this.$=c[o].substr(6);break;case 28:this.$=c[o].trim(),m.setAccTitle(this.$);break;case 29:case 30:this.$=c[o].trim(),m.setAccDescription(this.$);break;case 31:m.addSection(c[o].substr(8)),this.$=c[o].substr(8);break;case 33:m.addTask(c[o-1],c[o]),this.$="task";break;case 34:this.$=c[o-1],m.setClickEvent(c[o-1],c[o],null);break;case 35:this.$=c[o-2],m.setClickEvent(c[o-2],c[o-1],c[o]);break;case 36:this.$=c[o-2],m.setClickEvent(c[o-2],c[o-1],null),m.setLink(c[o-2],c[o]);break;case 37:this.$=c[o-3],m.setClickEvent(c[o-3],c[o-2],c[o-1]),m.setLink(c[o-3],c[o]);break;case 38:this.$=c[o-2],m.setClickEvent(c[o-2],c[o],null),m.setLink(c[o-2],c[o-1]);break;case 39:this.$=c[o-3],m.setClickEvent(c[o-3],c[o-1],c[o]),m.setLink(c[o-3],c[o-2]);break;case 40:this.$=c[o-1],m.setLink(c[o-1],c[o]);break;case 41:case 47:this.$=c[o-1]+" "+c[o];break;case 42:case 43:case 45:this.$=c[o-2]+" "+c[o-1]+" "+c[o];break;case 44:case 46:this.$=c[o-3]+" "+c[o-2]+" "+c[o-1]+" "+c[o];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},e(t,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:17,12:n,13:r,14:a,15:i,16:s,17:k,18:M,19:18,20:v,21:g,22:F,23:D,24:b,25:X,26:O,27:C,28:I,29:V,30:W,31:Z,33:Q,35:w,36:H,37:24,38:x,40:Y},e(t,[2,7],{1:[2,1]}),e(t,[2,3]),{9:36,11:17,12:n,13:r,14:a,15:i,16:s,17:k,18:M,19:18,20:v,21:g,22:F,23:D,24:b,25:X,26:O,27:C,28:I,29:V,30:W,31:Z,33:Q,35:w,36:H,37:24,38:x,40:Y},e(t,[2,5]),e(t,[2,6]),e(t,[2,17]),e(t,[2,18]),e(t,[2,19]),e(t,[2,20]),e(t,[2,21]),e(t,[2,22]),e(t,[2,23]),e(t,[2,24]),e(t,[2,25]),e(t,[2,26]),e(t,[2,27]),{32:[1,37]},{34:[1,38]},e(t,[2,30]),e(t,[2,31]),e(t,[2,32]),{39:[1,39]},e(t,[2,8]),e(t,[2,9]),e(t,[2,10]),e(t,[2,11]),e(t,[2,12]),e(t,[2,13]),e(t,[2,14]),e(t,[2,15]),e(t,[2,16]),{41:[1,40],43:[1,41]},e(t,[2,4]),e(t,[2,28]),e(t,[2,29]),e(t,[2,33]),e(t,[2,34],{42:[1,42],43:[1,43]}),e(t,[2,40],{41:[1,44]}),e(t,[2,35],{43:[1,45]}),e(t,[2,36]),e(t,[2,38],{42:[1,46]}),e(t,[2,37]),e(t,[2,39])],defaultActions:{},parseError:d(function(u,f){if(f.recoverable)this.trace(u);else{var y=new Error(u);throw y.hash=f,y}},"parseError"),parse:d(function(u){var f=this,y=[0],m=[],E=[null],c=[],h=this.table,o="",P=0,z=0,R=2,K=1,G=c.slice.call(arguments,1),J=Object.create(this.lexer),ie={yy:{}};for(var T in this.yy)Object.prototype.hasOwnProperty.call(this.yy,T)&&(ie.yy[T]=this.yy[T]);J.setInput(u,ie.yy),ie.yy.lexer=J,ie.yy.parser=this,typeof J.yylloc>"u"&&(J.yylloc={});var A=J.yylloc;c.push(A);var N=J.options&&J.options.ranges;typeof ie.yy.parseError=="function"?this.parseError=ie.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function l(oe){y.length=y.length-2*oe,E.length=E.length-oe,c.length=c.length-oe}d(l,"popStack");function $(){var oe;return oe=m.pop()||J.lex()||K,typeof oe!="number"&&(oe instanceof Array&&(m=oe,oe=m.pop()),oe=f.symbols_[oe]||oe),oe}d($,"lex");for(var L,j,q,re,se={},pe,ue,At,Be;;){if(j=y[y.length-1],this.defaultActions[j]?q=this.defaultActions[j]:((L===null||typeof L>"u")&&(L=$()),q=h[j]&&h[j][L]),typeof q>"u"||!q.length||!q[0]){var nt="";Be=[];for(pe in h[j])this.terminals_[pe]&&pe>R&&Be.push("'"+this.terminals_[pe]+"'");J.showPosition?nt="Parse error on line "+(P+1)+`: `+J.showPosition()+` Expecting `+Be.join(", ")+", got '"+(this.terminals_[L]||L)+"'":nt="Parse error on line "+(P+1)+": Unexpected "+(L==K?"end of input":"'"+(this.terminals_[L]||L)+"'"),this.parseError(nt,{text:J.match,token:this.terminals_[L]||L,line:J.yylineno,loc:A,expected:Be})}if(q[0]instanceof Array&&q.length>1)throw new Error("Parse Error: multiple actions possible at state: "+j+", token: "+L);switch(q[0]){case 1:y.push(L),E.push(J.yytext),c.push(J.yylloc),y.push(q[1]),L=null,z=J.yyleng,o=J.yytext,P=J.yylineno,A=J.yylloc;break;case 2:if(ue=this.productions_[q[1]][1],se.$=E[E.length-ue],se._$={first_line:c[c.length-(ue||1)].first_line,last_line:c[c.length-1].last_line,first_column:c[c.length-(ue||1)].first_column,last_column:c[c.length-1].last_column},N&&(se._$.range=[c[c.length-(ue||1)].range[0],c[c.length-1].range[1]]),re=this.performAction.apply(se,[o,z,P,ie.yy,q[1],E,c].concat(G)),typeof re<"u")return re;ue&&(y=y.slice(0,-1*ue*2),E=E.slice(0,-1*ue),c=c.slice(0,-1*ue)),y.push(this.productions_[q[1]][0]),E.push(se.$),c.push(se._$),At=h[y[y.length-2]][y[y.length-1]],y.push(At);break;case 3:return!0}}return!0},"parse")},S=function(){var U={EOF:1,parseError:d(function(f,y){if(this.yy.parser)this.yy.parser.parseError(f,y);else throw new Error(f)},"parseError"),setInput:d(function(u,f){return this.yy=f||this.yy||{},this._input=u,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:d(function(){var u=this._input[0];this.yytext+=u,this.yyleng++,this.offset++,this.match+=u,this.matched+=u;var f=u.match(/(?:\r\n?|\n).*/g);return f?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),u},"input"),unput:d(function(u){var f=u.length,y=u.split(/(?:\r\n?|\n)/g);this._input=u+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-f),this.offset-=f;var m=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),y.length-1&&(this.yylineno-=y.length-1);var E=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:y?(y.length===m.length?this.yylloc.first_column:0)+m[m.length-y.length].length-y[0].length:this.yylloc.first_column-f},this.options.ranges&&(this.yylloc.range=[E[0],E[0]+this.yyleng-f]),this.yyleng=this.yytext.length,this},"unput"),more:d(function(){return this._more=!0,this},"more"),reject:d(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:d(function(u){this.unput(this.match.slice(u))},"less"),pastInput:d(function(){var u=this.matched.substr(0,this.matched.length-this.match.length);return(u.length>20?"...":"")+u.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:d(function(){var u=this.match;return u.length<20&&(u+=this._input.substr(0,20-u.length)),(u.substr(0,20)+(u.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:d(function(){var u=this.pastInput(),f=new Array(u.length+1).join("-");return u+this.upcomingInput()+` diff --git a/static/js/md-gitGraph-YCYPL57B-CO7l4bat.js b/static/js/md-gitGraph-YCYPL57B-CGrUuPMT.js similarity index 83% rename from static/js/md-gitGraph-YCYPL57B-CO7l4bat.js rename to static/js/md-gitGraph-YCYPL57B-CGrUuPMT.js index 296e00b65..417e0d402 100644 --- a/static/js/md-gitGraph-YCYPL57B-CO7l4bat.js +++ b/static/js/md-gitGraph-YCYPL57B-CGrUuPMT.js @@ -1,4 +1,4 @@ -var Gc=Object.defineProperty;var Uc=(n,e,t)=>e in n?Gc(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t;var Je=(n,e,t)=>Uc(n,typeof e!="symbol"?e+"":e,t);import{bz as Fc,bA as Bc,aQ as so,bj as Hc,aU as Vc,aR as Z,aA as Wc,aB as Ji,b9 as Kc,bc as ao,bd as oo,bo as Qi,ba as zc,aD as mt,aE as D,aS as Zi,aM as qc,bB as tn}from"./md-index-xmajgeSt.js";import{k as Mt,j as Ti,g as Kt,S as Yc,w as Xc,x as Jc,c as lo,v as K,y as co,l as Qc,z as Zc,A as eu,B as tu,C as nu,a as uo,d as S,i as ze,r as oe,f as Re,D as q}from"./md-_baseUniq-tMSgAJlj.js";import{j as _i,m as b,d as ru,f as Ie,g as Dt,i as Ei,h as x,l as jt,e as iu}from"./md-_basePickBy-uQ-3YVhY.js";import{c as te}from"./md-clone-CA7_C22Z.js";var su=Object.prototype,au=su.hasOwnProperty,Ee=Fc(function(n,e){if(Bc(e)||so(e)){Hc(e,Mt(e),n);return}for(var t in e)au.call(e,t)&&Vc(n,t,e[t])});function fo(n,e,t){var r=-1,i=n.length;e<0&&(e=-e>i?0:i+e),t=t>i?i:t,t<0&&(t+=i),i=e>t?0:t-e>>>0,e>>>=0;for(var s=Array(i);++r=uu&&(s=Jc,a=!1,e=new Yc(e));e:for(;++i-1:!!i&&co(n,e,t)>-1}function es(n,e,t){var r=n==null?0:n.length;if(!r)return-1;var i=0;return co(n,e,i)}var _u="[object RegExp]";function Eu(n){return ao(n)&&oo(n)==_u}var ts=Qi&&Qi.isRegExp,qe=ts?zc(ts):Eu,Ru="Expected a function";function Au(n){if(typeof n!="function")throw new TypeError(Ru);return function(){var e=arguments;switch(e.length){case 0:return!n.call(this);case 1:return!n.call(this,e[0]);case 2:return!n.call(this,e[0],e[1]);case 3:return!n.call(this,e[0],e[1],e[2])}return!n.apply(this,e)}}function Pe(n,e){if(n==null)return{};var t=Qc(Zc(n),function(r){return[r]});return e=Kt(e),ru(n,t,function(r,i){return e(r,i[0])})}function rr(n,e){var t=Z(n)?eu:tu;return t(n,Au(Kt(e)))}function vu(n,e){var t;return Ti(n,function(r,i,s){return t=e(r,i,s),!t}),!!t}function ho(n,e,t){var r=Z(n)?nu:vu;return r(n,Kt(e))}function Ri(n){return n&&n.length?uo(n):[]}function bu(n,e){return n&&n.length?uo(n,Kt(e)):[]}function ae(n){return typeof n=="object"&&n!==null&&typeof n.$type=="string"}function Ge(n){return typeof n=="object"&&n!==null&&typeof n.$refText=="string"}function Nu(n){return typeof n=="object"&&n!==null&&typeof n.name=="string"&&typeof n.type=="string"&&typeof n.path=="string"}function kn(n){return typeof n=="object"&&n!==null&&ae(n.container)&&Ge(n.reference)&&typeof n.message=="string"}class po{constructor(){this.subtypes={},this.allSubtypes={}}isInstance(e,t){return ae(e)&&this.isSubtype(e.$type,t)}isSubtype(e,t){if(e===t)return!0;let r=this.subtypes[e];r||(r=this.subtypes[e]={});const i=r[t];if(i!==void 0)return i;{const s=this.computeIsSubtype(e,t);return r[t]=s,s}}getAllSubTypes(e){const t=this.allSubtypes[e];if(t)return t;{const r=this.getAllTypes(),i=[];for(const s of r)this.isSubtype(s,e)&&i.push(s);return this.allSubtypes[e]=i,i}}}function Gt(n){return typeof n=="object"&&n!==null&&Array.isArray(n.content)}function mo(n){return typeof n=="object"&&n!==null&&typeof n.tokenType=="object"}function go(n){return Gt(n)&&typeof n.fullText=="string"}class ie{constructor(e,t){this.startFn=e,this.nextFn=t}iterator(){const e={state:this.startFn(),next:()=>this.nextFn(e.state),[Symbol.iterator]:()=>e};return e}[Symbol.iterator](){return this.iterator()}isEmpty(){return!!this.iterator().next().done}count(){const e=this.iterator();let t=0,r=e.next();for(;!r.done;)t++,r=e.next();return t}toArray(){const e=[],t=this.iterator();let r;do r=t.next(),r.value!==void 0&&e.push(r.value);while(!r.done);return e}toSet(){return new Set(this)}toMap(e,t){const r=this.map(i=>[e?e(i):i,t?t(i):i]);return new Map(r)}toString(){return this.join()}concat(e){const t=e[Symbol.iterator]();return new ie(()=>({first:this.startFn(),firstDone:!1}),r=>{let i;if(!r.firstDone){do if(i=this.nextFn(r.first),!i.done)return i;while(!i.done);r.firstDone=!0}do if(i=t.next(),!i.done)return i;while(!i.done);return ke})}join(e=","){const t=this.iterator();let r="",i,s=!1;do i=t.next(),i.done||(s&&(r+=e),r+=ku(i.value)),s=!0;while(!i.done);return r}indexOf(e,t=0){const r=this.iterator();let i=0,s=r.next();for(;!s.done;){if(i>=t&&s.value===e)return i;s=r.next(),i++}return-1}every(e){const t=this.iterator();let r=t.next();for(;!r.done;){if(!e(r.value))return!1;r=t.next()}return!0}some(e){const t=this.iterator();let r=t.next();for(;!r.done;){if(e(r.value))return!0;r=t.next()}return!1}forEach(e){const t=this.iterator();let r=0,i=t.next();for(;!i.done;)e(i.value,r),i=t.next(),r++}map(e){return new ie(this.startFn,t=>{const{done:r,value:i}=this.nextFn(t);return r?ke:{done:!1,value:e(i)}})}filter(e){return new ie(this.startFn,t=>{let r;do if(r=this.nextFn(t),!r.done&&e(r.value))return r;while(!r.done);return ke})}nonNullable(){return this.filter(e=>e!=null)}reduce(e,t){const r=this.iterator();let i=t,s=r.next();for(;!s.done;)i===void 0?i=s.value:i=e(i,s.value),s=r.next();return i}reduceRight(e,t){return this.recursiveReduce(this.iterator(),e,t)}recursiveReduce(e,t,r){const i=e.next();if(i.done)return r;const s=this.recursiveReduce(e,t,r);return s===void 0?i.value:t(s,i.value)}find(e){const t=this.iterator();let r=t.next();for(;!r.done;){if(e(r.value))return r.value;r=t.next()}}findIndex(e){const t=this.iterator();let r=0,i=t.next();for(;!i.done;){if(e(i.value))return r;i=t.next(),r++}return-1}includes(e){const t=this.iterator();let r=t.next();for(;!r.done;){if(r.value===e)return!0;r=t.next()}return!1}flatMap(e){return new ie(()=>({this:this.startFn()}),t=>{do{if(t.iterator){const s=t.iterator.next();if(s.done)t.iterator=void 0;else return s}const{done:r,value:i}=this.nextFn(t.this);if(!r){const s=e(i);if(On(s))t.iterator=s[Symbol.iterator]();else return{done:!1,value:s}}}while(t.iterator);return ke})}flat(e){if(e===void 0&&(e=1),e<=0)return this;const t=e>1?this.flat(e-1):this;return new ie(()=>({this:t.startFn()}),r=>{do{if(r.iterator){const a=r.iterator.next();if(a.done)r.iterator=void 0;else return a}const{done:i,value:s}=t.nextFn(r.this);if(!i)if(On(s))r.iterator=s[Symbol.iterator]();else return{done:!1,value:s}}while(r.iterator);return ke})}head(){const t=this.iterator().next();if(!t.done)return t.value}tail(e=1){return new ie(()=>{const t=this.startFn();for(let r=0;r({size:0,state:this.startFn()}),t=>(t.size++,t.size>e?ke:this.nextFn(t.state)))}distinct(e){const t=new Set;return this.filter(r=>{const i=e?e(r):r;return t.has(i)?!1:(t.add(i),!0)})}exclude(e,t){const r=new Set;for(const i of e){const s=t?t(i):i;r.add(s)}return this.filter(i=>{const s=t?t(i):i;return!r.has(s)})}}function ku(n){return typeof n=="string"?n:typeof n>"u"?"undefined":typeof n.toString=="function"?n.toString():Object.prototype.toString.call(n)}function On(n){return!!n&&typeof n[Symbol.iterator]=="function"}const Iu=new ie(()=>{},()=>ke),ke=Object.freeze({done:!0,value:void 0});function Q(...n){if(n.length===1){const e=n[0];if(e instanceof ie)return e;if(On(e))return new ie(()=>e[Symbol.iterator](),t=>t.next());if(typeof e.length=="number")return new ie(()=>({index:0}),t=>t.index1?new ie(()=>({collIndex:0,arrIndex:0}),e=>{do{if(e.iterator){const t=e.iterator.next();if(!t.done)return t;e.iterator=void 0}if(e.array){if(e.arrIndex({iterators:r!=null&&r.includeRoot?[[e][Symbol.iterator]()]:[t(e)[Symbol.iterator]()],pruned:!1}),i=>{for(i.pruned&&(i.iterators.pop(),i.pruned=!1);i.iterators.length>0;){const a=i.iterators[i.iterators.length-1].next();if(a.done)i.iterators.pop();else return i.iterators.push(t(a.value)[Symbol.iterator]()),a}return ke})}iterator(){const e={state:this.startFn(),next:()=>this.nextFn(e.state),prune:()=>{e.state.pruned=!0},[Symbol.iterator]:()=>e};return e}}var Pr;(function(n){function e(s){return s.reduce((a,o)=>a+o,0)}n.sum=e;function t(s){return s.reduce((a,o)=>a*o,0)}n.product=t;function r(s){return s.reduce((a,o)=>Math.min(a,o))}n.min=r;function i(s){return s.reduce((a,o)=>Math.max(a,o))}n.max=i})(Pr||(Pr={}));function Mr(n){return new Ai(n,e=>Gt(e)?e.content:[],{includeRoot:!0})}function Su(n,e){for(;n.container;)if(n=n.container,n===e)return!0;return!1}function Dr(n){return{start:{character:n.startColumn-1,line:n.startLine-1},end:{character:n.endColumn,line:n.endLine-1}}}function Ln(n){if(!n)return;const{offset:e,end:t,range:r}=n;return{range:r,offset:e,end:t,length:t-e}}var Ze;(function(n){n[n.Before=0]="Before",n[n.After=1]="After",n[n.OverlapFront=2]="OverlapFront",n[n.OverlapBack=3]="OverlapBack",n[n.Inside=4]="Inside"})(Ze||(Ze={}));function xu(n,e){if(n.end.linee.end.line||n.start.line===e.end.line&&n.start.character>e.end.character)return Ze.After;const t=n.start.line>e.start.line||n.start.line===e.start.line&&n.start.character>=e.start.character,r=n.end.lineZe.After}const wu=/^[\w\p{L}]$/u;function Ou(n,e){if(n){const t=Lu(n,!0);if(t&&ns(t,e))return t;if(go(n)){const r=n.content.findIndex(i=>!i.hidden);for(let i=r-1;i>=0;i--){const s=n.content[i];if(ns(s,e))return s}}}}function ns(n,e){return mo(n)&&e.includes(n.tokenType.name)}function Lu(n,e=!0){for(;n.container;){const t=n.container;let r=t.content.indexOf(n);for(;r>0;){r--;const i=t.content[r];if(e||!i.hidden)return i}n=t}}class yo extends Error{constructor(e,t){super(e?`${t} at ${e.range.start.line}:${e.range.start.character}`:t)}}function ir(n){throw new Error("Error! The input value was not handled.")}const Er="AbstractRule",Rr="AbstractType",rs="Condition",$u="TypeDefinition",is="ValueLiteral",To="AbstractElement";function Pu(n){return M.isInstance(n,To)}const Mu="ArrayLiteral",Du="ArrayType",_o="BooleanLiteral";function ju(n){return M.isInstance(n,_o)}const Eo="Conjunction";function Gu(n){return M.isInstance(n,Eo)}const Ro="Disjunction";function Uu(n){return M.isInstance(n,Ro)}const Fu="Grammar",Ao="InferredType";function vo(n){return M.isInstance(n,Ao)}const bo="Interface";function No(n){return M.isInstance(n,bo)}const ko="Negation";function Bu(n){return M.isInstance(n,ko)}const Hu="NumberLiteral",Vu="Parameter",Io="ParameterReference";function Wu(n){return M.isInstance(n,Io)}const So="ParserRule";function Se(n){return M.isInstance(n,So)}const Ku="ReferenceType",zu="ReturnType";function qu(n){return M.isInstance(n,zu)}const xo="SimpleType";function Yu(n){return M.isInstance(n,xo)}const Xu="StringLiteral",jr="TerminalRule";function gt(n){return M.isInstance(n,jr)}const Co="Type";function wo(n){return M.isInstance(n,Co)}const Ju="UnionType",Oo="Action";function sr(n){return M.isInstance(n,Oo)}const Lo="Alternatives";function $o(n){return M.isInstance(n,Lo)}const Po="Assignment";function ut(n){return M.isInstance(n,Po)}const Mo="CharacterRange";function Qu(n){return M.isInstance(n,Mo)}const Do="CrossReference";function vi(n){return M.isInstance(n,Do)}const jo="EndOfFile";function Zu(n){return M.isInstance(n,jo)}const Go="Group";function bi(n){return M.isInstance(n,Go)}const Uo="Keyword";function dt(n){return M.isInstance(n,Uo)}const Fo="NegatedToken";function ed(n){return M.isInstance(n,Fo)}const Bo="RegexToken";function td(n){return M.isInstance(n,Bo)}const Ho="RuleCall";function ft(n){return M.isInstance(n,Ho)}const Vo="TerminalAlternatives";function nd(n){return M.isInstance(n,Vo)}const Wo="TerminalGroup";function rd(n){return M.isInstance(n,Wo)}const Ko="TerminalRuleCall";function id(n){return M.isInstance(n,Ko)}const zo="UnorderedGroup";function qo(n){return M.isInstance(n,zo)}const Yo="UntilToken";function sd(n){return M.isInstance(n,Yo)}const Xo="Wildcard";function ad(n){return M.isInstance(n,Xo)}class Jo extends po{getAllTypes(){return["AbstractElement","AbstractRule","AbstractType","Action","Alternatives","ArrayLiteral","ArrayType","Assignment","BooleanLiteral","CharacterRange","Condition","Conjunction","CrossReference","Disjunction","EndOfFile","Grammar","GrammarImport","Group","InferredType","Interface","Keyword","NamedArgument","NegatedToken","Negation","NumberLiteral","Parameter","ParameterReference","ParserRule","ReferenceType","RegexToken","ReturnType","RuleCall","SimpleType","StringLiteral","TerminalAlternatives","TerminalGroup","TerminalRule","TerminalRuleCall","Type","TypeAttribute","TypeDefinition","UnionType","UnorderedGroup","UntilToken","ValueLiteral","Wildcard"]}computeIsSubtype(e,t){switch(e){case Oo:case Lo:case Po:case Mo:case Do:case jo:case Go:case Uo:case Fo:case Bo:case Ho:case Vo:case Wo:case Ko:case zo:case Yo:case Xo:return this.isSubtype(To,t);case Mu:case Hu:case Xu:return this.isSubtype(is,t);case Du:case Ku:case xo:case Ju:return this.isSubtype($u,t);case _o:return this.isSubtype(rs,t)||this.isSubtype(is,t);case Eo:case Ro:case ko:case Io:return this.isSubtype(rs,t);case Ao:case bo:case Co:return this.isSubtype(Rr,t);case So:return this.isSubtype(Er,t)||this.isSubtype(Rr,t);case jr:return this.isSubtype(Er,t);default:return!1}}getReferenceType(e){const t=`${e.container.$type}:${e.property}`;switch(t){case"Action:type":case"CrossReference:type":case"Interface:superTypes":case"ParserRule:returnType":case"SimpleType:typeRef":return Rr;case"Grammar:hiddenTokens":case"ParserRule:hiddenTokens":case"RuleCall:rule":return Er;case"Grammar:usedGrammars":return Fu;case"NamedArgument:parameter":case"ParameterReference:parameter":return Vu;case"TerminalRuleCall:rule":return jr;default:throw new Error(`${t} is not a valid reference id.`)}}getTypeMetaData(e){switch(e){case"AbstractElement":return{name:"AbstractElement",properties:[{name:"cardinality"},{name:"lookahead"}]};case"ArrayLiteral":return{name:"ArrayLiteral",properties:[{name:"elements",defaultValue:[]}]};case"ArrayType":return{name:"ArrayType",properties:[{name:"elementType"}]};case"BooleanLiteral":return{name:"BooleanLiteral",properties:[{name:"true",defaultValue:!1}]};case"Conjunction":return{name:"Conjunction",properties:[{name:"left"},{name:"right"}]};case"Disjunction":return{name:"Disjunction",properties:[{name:"left"},{name:"right"}]};case"Grammar":return{name:"Grammar",properties:[{name:"definesHiddenTokens",defaultValue:!1},{name:"hiddenTokens",defaultValue:[]},{name:"imports",defaultValue:[]},{name:"interfaces",defaultValue:[]},{name:"isDeclared",defaultValue:!1},{name:"name"},{name:"rules",defaultValue:[]},{name:"types",defaultValue:[]},{name:"usedGrammars",defaultValue:[]}]};case"GrammarImport":return{name:"GrammarImport",properties:[{name:"path"}]};case"InferredType":return{name:"InferredType",properties:[{name:"name"}]};case"Interface":return{name:"Interface",properties:[{name:"attributes",defaultValue:[]},{name:"name"},{name:"superTypes",defaultValue:[]}]};case"NamedArgument":return{name:"NamedArgument",properties:[{name:"calledByName",defaultValue:!1},{name:"parameter"},{name:"value"}]};case"Negation":return{name:"Negation",properties:[{name:"value"}]};case"NumberLiteral":return{name:"NumberLiteral",properties:[{name:"value"}]};case"Parameter":return{name:"Parameter",properties:[{name:"name"}]};case"ParameterReference":return{name:"ParameterReference",properties:[{name:"parameter"}]};case"ParserRule":return{name:"ParserRule",properties:[{name:"dataType"},{name:"definesHiddenTokens",defaultValue:!1},{name:"definition"},{name:"entry",defaultValue:!1},{name:"fragment",defaultValue:!1},{name:"hiddenTokens",defaultValue:[]},{name:"inferredType"},{name:"name"},{name:"parameters",defaultValue:[]},{name:"returnType"},{name:"wildcard",defaultValue:!1}]};case"ReferenceType":return{name:"ReferenceType",properties:[{name:"referenceType"}]};case"ReturnType":return{name:"ReturnType",properties:[{name:"name"}]};case"SimpleType":return{name:"SimpleType",properties:[{name:"primitiveType"},{name:"stringType"},{name:"typeRef"}]};case"StringLiteral":return{name:"StringLiteral",properties:[{name:"value"}]};case"TerminalRule":return{name:"TerminalRule",properties:[{name:"definition"},{name:"fragment",defaultValue:!1},{name:"hidden",defaultValue:!1},{name:"name"},{name:"type"}]};case"Type":return{name:"Type",properties:[{name:"name"},{name:"type"}]};case"TypeAttribute":return{name:"TypeAttribute",properties:[{name:"defaultValue"},{name:"isOptional",defaultValue:!1},{name:"name"},{name:"type"}]};case"UnionType":return{name:"UnionType",properties:[{name:"types",defaultValue:[]}]};case"Action":return{name:"Action",properties:[{name:"cardinality"},{name:"feature"},{name:"inferredType"},{name:"lookahead"},{name:"operator"},{name:"type"}]};case"Alternatives":return{name:"Alternatives",properties:[{name:"cardinality"},{name:"elements",defaultValue:[]},{name:"lookahead"}]};case"Assignment":return{name:"Assignment",properties:[{name:"cardinality"},{name:"feature"},{name:"lookahead"},{name:"operator"},{name:"terminal"}]};case"CharacterRange":return{name:"CharacterRange",properties:[{name:"cardinality"},{name:"left"},{name:"lookahead"},{name:"right"}]};case"CrossReference":return{name:"CrossReference",properties:[{name:"cardinality"},{name:"deprecatedSyntax",defaultValue:!1},{name:"lookahead"},{name:"terminal"},{name:"type"}]};case"EndOfFile":return{name:"EndOfFile",properties:[{name:"cardinality"},{name:"lookahead"}]};case"Group":return{name:"Group",properties:[{name:"cardinality"},{name:"elements",defaultValue:[]},{name:"guardCondition"},{name:"lookahead"}]};case"Keyword":return{name:"Keyword",properties:[{name:"cardinality"},{name:"lookahead"},{name:"value"}]};case"NegatedToken":return{name:"NegatedToken",properties:[{name:"cardinality"},{name:"lookahead"},{name:"terminal"}]};case"RegexToken":return{name:"RegexToken",properties:[{name:"cardinality"},{name:"lookahead"},{name:"regex"}]};case"RuleCall":return{name:"RuleCall",properties:[{name:"arguments",defaultValue:[]},{name:"cardinality"},{name:"lookahead"},{name:"rule"}]};case"TerminalAlternatives":return{name:"TerminalAlternatives",properties:[{name:"cardinality"},{name:"elements",defaultValue:[]},{name:"lookahead"}]};case"TerminalGroup":return{name:"TerminalGroup",properties:[{name:"cardinality"},{name:"elements",defaultValue:[]},{name:"lookahead"}]};case"TerminalRuleCall":return{name:"TerminalRuleCall",properties:[{name:"cardinality"},{name:"lookahead"},{name:"rule"}]};case"UnorderedGroup":return{name:"UnorderedGroup",properties:[{name:"cardinality"},{name:"elements",defaultValue:[]},{name:"lookahead"}]};case"UntilToken":return{name:"UntilToken",properties:[{name:"cardinality"},{name:"lookahead"},{name:"terminal"}]};case"Wildcard":return{name:"Wildcard",properties:[{name:"cardinality"},{name:"lookahead"}]};default:return{name:e,properties:[]}}}}const M=new Jo;function od(n){for(const[e,t]of Object.entries(n))e.startsWith("$")||(Array.isArray(t)?t.forEach((r,i)=>{ae(r)&&(r.$container=n,r.$containerProperty=e,r.$containerIndex=i)}):ae(t)&&(t.$container=n,t.$containerProperty=e))}function ar(n,e){let t=n;for(;t;){if(e(t))return t;t=t.$container}}function Ue(n){const t=ld(n).$document;if(!t)throw new Error("AST node has no document.");return t}function ld(n){for(;n.$container;)n=n.$container;return n}function Ni(n,e){if(!n)throw new Error("Node must be an AstNode.");const t=e==null?void 0:e.range;return new ie(()=>({keys:Object.keys(n),keyIndex:0,arrayIndex:0}),r=>{for(;r.keyIndexNi(t,e))}function Rt(n,e){if(!n)throw new Error("Root node must be an AstNode.");return new Ai(n,t=>Ni(t,e),{includeRoot:!0})}function ss(n,e){var t;if(!e)return!0;const r=(t=n.$cstNode)===null||t===void 0?void 0:t.range;return r?Cu(r,e):!1}function Qo(n){return new ie(()=>({keys:Object.keys(n),keyIndex:0,arrayIndex:0}),e=>{for(;e.keyIndexe in n?Gc(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t;var Je=(n,e,t)=>Uc(n,typeof e!="symbol"?e+"":e,t);import{bz as Fc,bA as Bc,aQ as so,bj as Hc,aU as Vc,aR as Z,aA as Wc,aB as Ji,b9 as Kc,bc as ao,bd as oo,bo as Qi,ba as zc,aD as mt,aE as D,aS as Zi,aM as qc,bB as tn}from"./md-index-DwcL-8Z2.js";import{k as Mt,j as Ti,g as Kt,S as Yc,w as Xc,x as Jc,c as lo,v as K,y as co,l as Qc,z as Zc,A as eu,B as tu,C as nu,a as uo,d as S,i as ze,r as oe,f as Re,D as q}from"./md-_baseUniq-CnE51pk_.js";import{j as _i,m as b,d as ru,f as Ie,g as Dt,i as Ei,h as x,l as jt,e as iu}from"./md-_basePickBy-DzqsyDBx.js";import{c as te}from"./md-clone-DQRSbwhF.js";var su=Object.prototype,au=su.hasOwnProperty,Ee=Fc(function(n,e){if(Bc(e)||so(e)){Hc(e,Mt(e),n);return}for(var t in e)au.call(e,t)&&Vc(n,t,e[t])});function fo(n,e,t){var r=-1,i=n.length;e<0&&(e=-e>i?0:i+e),t=t>i?i:t,t<0&&(t+=i),i=e>t?0:t-e>>>0,e>>>=0;for(var s=Array(i);++r=uu&&(s=Jc,a=!1,e=new Yc(e));e:for(;++i-1:!!i&&co(n,e,t)>-1}function es(n,e,t){var r=n==null?0:n.length;if(!r)return-1;var i=0;return co(n,e,i)}var _u="[object RegExp]";function Eu(n){return ao(n)&&oo(n)==_u}var ts=Qi&&Qi.isRegExp,qe=ts?zc(ts):Eu,Ru="Expected a function";function Au(n){if(typeof n!="function")throw new TypeError(Ru);return function(){var e=arguments;switch(e.length){case 0:return!n.call(this);case 1:return!n.call(this,e[0]);case 2:return!n.call(this,e[0],e[1]);case 3:return!n.call(this,e[0],e[1],e[2])}return!n.apply(this,e)}}function Pe(n,e){if(n==null)return{};var t=Qc(Zc(n),function(r){return[r]});return e=Kt(e),ru(n,t,function(r,i){return e(r,i[0])})}function rr(n,e){var t=Z(n)?eu:tu;return t(n,Au(Kt(e)))}function vu(n,e){var t;return Ti(n,function(r,i,s){return t=e(r,i,s),!t}),!!t}function ho(n,e,t){var r=Z(n)?nu:vu;return r(n,Kt(e))}function Ri(n){return n&&n.length?uo(n):[]}function bu(n,e){return n&&n.length?uo(n,Kt(e)):[]}function ae(n){return typeof n=="object"&&n!==null&&typeof n.$type=="string"}function Ge(n){return typeof n=="object"&&n!==null&&typeof n.$refText=="string"}function Nu(n){return typeof n=="object"&&n!==null&&typeof n.name=="string"&&typeof n.type=="string"&&typeof n.path=="string"}function kn(n){return typeof n=="object"&&n!==null&&ae(n.container)&&Ge(n.reference)&&typeof n.message=="string"}class po{constructor(){this.subtypes={},this.allSubtypes={}}isInstance(e,t){return ae(e)&&this.isSubtype(e.$type,t)}isSubtype(e,t){if(e===t)return!0;let r=this.subtypes[e];r||(r=this.subtypes[e]={});const i=r[t];if(i!==void 0)return i;{const s=this.computeIsSubtype(e,t);return r[t]=s,s}}getAllSubTypes(e){const t=this.allSubtypes[e];if(t)return t;{const r=this.getAllTypes(),i=[];for(const s of r)this.isSubtype(s,e)&&i.push(s);return this.allSubtypes[e]=i,i}}}function Gt(n){return typeof n=="object"&&n!==null&&Array.isArray(n.content)}function mo(n){return typeof n=="object"&&n!==null&&typeof n.tokenType=="object"}function go(n){return Gt(n)&&typeof n.fullText=="string"}class ie{constructor(e,t){this.startFn=e,this.nextFn=t}iterator(){const e={state:this.startFn(),next:()=>this.nextFn(e.state),[Symbol.iterator]:()=>e};return e}[Symbol.iterator](){return this.iterator()}isEmpty(){return!!this.iterator().next().done}count(){const e=this.iterator();let t=0,r=e.next();for(;!r.done;)t++,r=e.next();return t}toArray(){const e=[],t=this.iterator();let r;do r=t.next(),r.value!==void 0&&e.push(r.value);while(!r.done);return e}toSet(){return new Set(this)}toMap(e,t){const r=this.map(i=>[e?e(i):i,t?t(i):i]);return new Map(r)}toString(){return this.join()}concat(e){const t=e[Symbol.iterator]();return new ie(()=>({first:this.startFn(),firstDone:!1}),r=>{let i;if(!r.firstDone){do if(i=this.nextFn(r.first),!i.done)return i;while(!i.done);r.firstDone=!0}do if(i=t.next(),!i.done)return i;while(!i.done);return ke})}join(e=","){const t=this.iterator();let r="",i,s=!1;do i=t.next(),i.done||(s&&(r+=e),r+=ku(i.value)),s=!0;while(!i.done);return r}indexOf(e,t=0){const r=this.iterator();let i=0,s=r.next();for(;!s.done;){if(i>=t&&s.value===e)return i;s=r.next(),i++}return-1}every(e){const t=this.iterator();let r=t.next();for(;!r.done;){if(!e(r.value))return!1;r=t.next()}return!0}some(e){const t=this.iterator();let r=t.next();for(;!r.done;){if(e(r.value))return!0;r=t.next()}return!1}forEach(e){const t=this.iterator();let r=0,i=t.next();for(;!i.done;)e(i.value,r),i=t.next(),r++}map(e){return new ie(this.startFn,t=>{const{done:r,value:i}=this.nextFn(t);return r?ke:{done:!1,value:e(i)}})}filter(e){return new ie(this.startFn,t=>{let r;do if(r=this.nextFn(t),!r.done&&e(r.value))return r;while(!r.done);return ke})}nonNullable(){return this.filter(e=>e!=null)}reduce(e,t){const r=this.iterator();let i=t,s=r.next();for(;!s.done;)i===void 0?i=s.value:i=e(i,s.value),s=r.next();return i}reduceRight(e,t){return this.recursiveReduce(this.iterator(),e,t)}recursiveReduce(e,t,r){const i=e.next();if(i.done)return r;const s=this.recursiveReduce(e,t,r);return s===void 0?i.value:t(s,i.value)}find(e){const t=this.iterator();let r=t.next();for(;!r.done;){if(e(r.value))return r.value;r=t.next()}}findIndex(e){const t=this.iterator();let r=0,i=t.next();for(;!i.done;){if(e(i.value))return r;i=t.next(),r++}return-1}includes(e){const t=this.iterator();let r=t.next();for(;!r.done;){if(r.value===e)return!0;r=t.next()}return!1}flatMap(e){return new ie(()=>({this:this.startFn()}),t=>{do{if(t.iterator){const s=t.iterator.next();if(s.done)t.iterator=void 0;else return s}const{done:r,value:i}=this.nextFn(t.this);if(!r){const s=e(i);if(On(s))t.iterator=s[Symbol.iterator]();else return{done:!1,value:s}}}while(t.iterator);return ke})}flat(e){if(e===void 0&&(e=1),e<=0)return this;const t=e>1?this.flat(e-1):this;return new ie(()=>({this:t.startFn()}),r=>{do{if(r.iterator){const a=r.iterator.next();if(a.done)r.iterator=void 0;else return a}const{done:i,value:s}=t.nextFn(r.this);if(!i)if(On(s))r.iterator=s[Symbol.iterator]();else return{done:!1,value:s}}while(r.iterator);return ke})}head(){const t=this.iterator().next();if(!t.done)return t.value}tail(e=1){return new ie(()=>{const t=this.startFn();for(let r=0;r({size:0,state:this.startFn()}),t=>(t.size++,t.size>e?ke:this.nextFn(t.state)))}distinct(e){const t=new Set;return this.filter(r=>{const i=e?e(r):r;return t.has(i)?!1:(t.add(i),!0)})}exclude(e,t){const r=new Set;for(const i of e){const s=t?t(i):i;r.add(s)}return this.filter(i=>{const s=t?t(i):i;return!r.has(s)})}}function ku(n){return typeof n=="string"?n:typeof n>"u"?"undefined":typeof n.toString=="function"?n.toString():Object.prototype.toString.call(n)}function On(n){return!!n&&typeof n[Symbol.iterator]=="function"}const Iu=new ie(()=>{},()=>ke),ke=Object.freeze({done:!0,value:void 0});function Q(...n){if(n.length===1){const e=n[0];if(e instanceof ie)return e;if(On(e))return new ie(()=>e[Symbol.iterator](),t=>t.next());if(typeof e.length=="number")return new ie(()=>({index:0}),t=>t.index1?new ie(()=>({collIndex:0,arrIndex:0}),e=>{do{if(e.iterator){const t=e.iterator.next();if(!t.done)return t;e.iterator=void 0}if(e.array){if(e.arrIndex({iterators:r!=null&&r.includeRoot?[[e][Symbol.iterator]()]:[t(e)[Symbol.iterator]()],pruned:!1}),i=>{for(i.pruned&&(i.iterators.pop(),i.pruned=!1);i.iterators.length>0;){const a=i.iterators[i.iterators.length-1].next();if(a.done)i.iterators.pop();else return i.iterators.push(t(a.value)[Symbol.iterator]()),a}return ke})}iterator(){const e={state:this.startFn(),next:()=>this.nextFn(e.state),prune:()=>{e.state.pruned=!0},[Symbol.iterator]:()=>e};return e}}var Pr;(function(n){function e(s){return s.reduce((a,o)=>a+o,0)}n.sum=e;function t(s){return s.reduce((a,o)=>a*o,0)}n.product=t;function r(s){return s.reduce((a,o)=>Math.min(a,o))}n.min=r;function i(s){return s.reduce((a,o)=>Math.max(a,o))}n.max=i})(Pr||(Pr={}));function Mr(n){return new Ai(n,e=>Gt(e)?e.content:[],{includeRoot:!0})}function Su(n,e){for(;n.container;)if(n=n.container,n===e)return!0;return!1}function Dr(n){return{start:{character:n.startColumn-1,line:n.startLine-1},end:{character:n.endColumn,line:n.endLine-1}}}function Ln(n){if(!n)return;const{offset:e,end:t,range:r}=n;return{range:r,offset:e,end:t,length:t-e}}var Ze;(function(n){n[n.Before=0]="Before",n[n.After=1]="After",n[n.OverlapFront=2]="OverlapFront",n[n.OverlapBack=3]="OverlapBack",n[n.Inside=4]="Inside"})(Ze||(Ze={}));function xu(n,e){if(n.end.linee.end.line||n.start.line===e.end.line&&n.start.character>e.end.character)return Ze.After;const t=n.start.line>e.start.line||n.start.line===e.start.line&&n.start.character>=e.start.character,r=n.end.lineZe.After}const wu=/^[\w\p{L}]$/u;function Ou(n,e){if(n){const t=Lu(n,!0);if(t&&ns(t,e))return t;if(go(n)){const r=n.content.findIndex(i=>!i.hidden);for(let i=r-1;i>=0;i--){const s=n.content[i];if(ns(s,e))return s}}}}function ns(n,e){return mo(n)&&e.includes(n.tokenType.name)}function Lu(n,e=!0){for(;n.container;){const t=n.container;let r=t.content.indexOf(n);for(;r>0;){r--;const i=t.content[r];if(e||!i.hidden)return i}n=t}}class yo extends Error{constructor(e,t){super(e?`${t} at ${e.range.start.line}:${e.range.start.character}`:t)}}function ir(n){throw new Error("Error! The input value was not handled.")}const Er="AbstractRule",Rr="AbstractType",rs="Condition",$u="TypeDefinition",is="ValueLiteral",To="AbstractElement";function Pu(n){return M.isInstance(n,To)}const Mu="ArrayLiteral",Du="ArrayType",_o="BooleanLiteral";function ju(n){return M.isInstance(n,_o)}const Eo="Conjunction";function Gu(n){return M.isInstance(n,Eo)}const Ro="Disjunction";function Uu(n){return M.isInstance(n,Ro)}const Fu="Grammar",Ao="InferredType";function vo(n){return M.isInstance(n,Ao)}const bo="Interface";function No(n){return M.isInstance(n,bo)}const ko="Negation";function Bu(n){return M.isInstance(n,ko)}const Hu="NumberLiteral",Vu="Parameter",Io="ParameterReference";function Wu(n){return M.isInstance(n,Io)}const So="ParserRule";function Se(n){return M.isInstance(n,So)}const Ku="ReferenceType",zu="ReturnType";function qu(n){return M.isInstance(n,zu)}const xo="SimpleType";function Yu(n){return M.isInstance(n,xo)}const Xu="StringLiteral",jr="TerminalRule";function gt(n){return M.isInstance(n,jr)}const Co="Type";function wo(n){return M.isInstance(n,Co)}const Ju="UnionType",Oo="Action";function sr(n){return M.isInstance(n,Oo)}const Lo="Alternatives";function $o(n){return M.isInstance(n,Lo)}const Po="Assignment";function ut(n){return M.isInstance(n,Po)}const Mo="CharacterRange";function Qu(n){return M.isInstance(n,Mo)}const Do="CrossReference";function vi(n){return M.isInstance(n,Do)}const jo="EndOfFile";function Zu(n){return M.isInstance(n,jo)}const Go="Group";function bi(n){return M.isInstance(n,Go)}const Uo="Keyword";function dt(n){return M.isInstance(n,Uo)}const Fo="NegatedToken";function ed(n){return M.isInstance(n,Fo)}const Bo="RegexToken";function td(n){return M.isInstance(n,Bo)}const Ho="RuleCall";function ft(n){return M.isInstance(n,Ho)}const Vo="TerminalAlternatives";function nd(n){return M.isInstance(n,Vo)}const Wo="TerminalGroup";function rd(n){return M.isInstance(n,Wo)}const Ko="TerminalRuleCall";function id(n){return M.isInstance(n,Ko)}const zo="UnorderedGroup";function qo(n){return M.isInstance(n,zo)}const Yo="UntilToken";function sd(n){return M.isInstance(n,Yo)}const Xo="Wildcard";function ad(n){return M.isInstance(n,Xo)}class Jo extends po{getAllTypes(){return["AbstractElement","AbstractRule","AbstractType","Action","Alternatives","ArrayLiteral","ArrayType","Assignment","BooleanLiteral","CharacterRange","Condition","Conjunction","CrossReference","Disjunction","EndOfFile","Grammar","GrammarImport","Group","InferredType","Interface","Keyword","NamedArgument","NegatedToken","Negation","NumberLiteral","Parameter","ParameterReference","ParserRule","ReferenceType","RegexToken","ReturnType","RuleCall","SimpleType","StringLiteral","TerminalAlternatives","TerminalGroup","TerminalRule","TerminalRuleCall","Type","TypeAttribute","TypeDefinition","UnionType","UnorderedGroup","UntilToken","ValueLiteral","Wildcard"]}computeIsSubtype(e,t){switch(e){case Oo:case Lo:case Po:case Mo:case Do:case jo:case Go:case Uo:case Fo:case Bo:case Ho:case Vo:case Wo:case Ko:case zo:case Yo:case Xo:return this.isSubtype(To,t);case Mu:case Hu:case Xu:return this.isSubtype(is,t);case Du:case Ku:case xo:case Ju:return this.isSubtype($u,t);case _o:return this.isSubtype(rs,t)||this.isSubtype(is,t);case Eo:case Ro:case ko:case Io:return this.isSubtype(rs,t);case Ao:case bo:case Co:return this.isSubtype(Rr,t);case So:return this.isSubtype(Er,t)||this.isSubtype(Rr,t);case jr:return this.isSubtype(Er,t);default:return!1}}getReferenceType(e){const t=`${e.container.$type}:${e.property}`;switch(t){case"Action:type":case"CrossReference:type":case"Interface:superTypes":case"ParserRule:returnType":case"SimpleType:typeRef":return Rr;case"Grammar:hiddenTokens":case"ParserRule:hiddenTokens":case"RuleCall:rule":return Er;case"Grammar:usedGrammars":return Fu;case"NamedArgument:parameter":case"ParameterReference:parameter":return Vu;case"TerminalRuleCall:rule":return jr;default:throw new Error(`${t} is not a valid reference id.`)}}getTypeMetaData(e){switch(e){case"AbstractElement":return{name:"AbstractElement",properties:[{name:"cardinality"},{name:"lookahead"}]};case"ArrayLiteral":return{name:"ArrayLiteral",properties:[{name:"elements",defaultValue:[]}]};case"ArrayType":return{name:"ArrayType",properties:[{name:"elementType"}]};case"BooleanLiteral":return{name:"BooleanLiteral",properties:[{name:"true",defaultValue:!1}]};case"Conjunction":return{name:"Conjunction",properties:[{name:"left"},{name:"right"}]};case"Disjunction":return{name:"Disjunction",properties:[{name:"left"},{name:"right"}]};case"Grammar":return{name:"Grammar",properties:[{name:"definesHiddenTokens",defaultValue:!1},{name:"hiddenTokens",defaultValue:[]},{name:"imports",defaultValue:[]},{name:"interfaces",defaultValue:[]},{name:"isDeclared",defaultValue:!1},{name:"name"},{name:"rules",defaultValue:[]},{name:"types",defaultValue:[]},{name:"usedGrammars",defaultValue:[]}]};case"GrammarImport":return{name:"GrammarImport",properties:[{name:"path"}]};case"InferredType":return{name:"InferredType",properties:[{name:"name"}]};case"Interface":return{name:"Interface",properties:[{name:"attributes",defaultValue:[]},{name:"name"},{name:"superTypes",defaultValue:[]}]};case"NamedArgument":return{name:"NamedArgument",properties:[{name:"calledByName",defaultValue:!1},{name:"parameter"},{name:"value"}]};case"Negation":return{name:"Negation",properties:[{name:"value"}]};case"NumberLiteral":return{name:"NumberLiteral",properties:[{name:"value"}]};case"Parameter":return{name:"Parameter",properties:[{name:"name"}]};case"ParameterReference":return{name:"ParameterReference",properties:[{name:"parameter"}]};case"ParserRule":return{name:"ParserRule",properties:[{name:"dataType"},{name:"definesHiddenTokens",defaultValue:!1},{name:"definition"},{name:"entry",defaultValue:!1},{name:"fragment",defaultValue:!1},{name:"hiddenTokens",defaultValue:[]},{name:"inferredType"},{name:"name"},{name:"parameters",defaultValue:[]},{name:"returnType"},{name:"wildcard",defaultValue:!1}]};case"ReferenceType":return{name:"ReferenceType",properties:[{name:"referenceType"}]};case"ReturnType":return{name:"ReturnType",properties:[{name:"name"}]};case"SimpleType":return{name:"SimpleType",properties:[{name:"primitiveType"},{name:"stringType"},{name:"typeRef"}]};case"StringLiteral":return{name:"StringLiteral",properties:[{name:"value"}]};case"TerminalRule":return{name:"TerminalRule",properties:[{name:"definition"},{name:"fragment",defaultValue:!1},{name:"hidden",defaultValue:!1},{name:"name"},{name:"type"}]};case"Type":return{name:"Type",properties:[{name:"name"},{name:"type"}]};case"TypeAttribute":return{name:"TypeAttribute",properties:[{name:"defaultValue"},{name:"isOptional",defaultValue:!1},{name:"name"},{name:"type"}]};case"UnionType":return{name:"UnionType",properties:[{name:"types",defaultValue:[]}]};case"Action":return{name:"Action",properties:[{name:"cardinality"},{name:"feature"},{name:"inferredType"},{name:"lookahead"},{name:"operator"},{name:"type"}]};case"Alternatives":return{name:"Alternatives",properties:[{name:"cardinality"},{name:"elements",defaultValue:[]},{name:"lookahead"}]};case"Assignment":return{name:"Assignment",properties:[{name:"cardinality"},{name:"feature"},{name:"lookahead"},{name:"operator"},{name:"terminal"}]};case"CharacterRange":return{name:"CharacterRange",properties:[{name:"cardinality"},{name:"left"},{name:"lookahead"},{name:"right"}]};case"CrossReference":return{name:"CrossReference",properties:[{name:"cardinality"},{name:"deprecatedSyntax",defaultValue:!1},{name:"lookahead"},{name:"terminal"},{name:"type"}]};case"EndOfFile":return{name:"EndOfFile",properties:[{name:"cardinality"},{name:"lookahead"}]};case"Group":return{name:"Group",properties:[{name:"cardinality"},{name:"elements",defaultValue:[]},{name:"guardCondition"},{name:"lookahead"}]};case"Keyword":return{name:"Keyword",properties:[{name:"cardinality"},{name:"lookahead"},{name:"value"}]};case"NegatedToken":return{name:"NegatedToken",properties:[{name:"cardinality"},{name:"lookahead"},{name:"terminal"}]};case"RegexToken":return{name:"RegexToken",properties:[{name:"cardinality"},{name:"lookahead"},{name:"regex"}]};case"RuleCall":return{name:"RuleCall",properties:[{name:"arguments",defaultValue:[]},{name:"cardinality"},{name:"lookahead"},{name:"rule"}]};case"TerminalAlternatives":return{name:"TerminalAlternatives",properties:[{name:"cardinality"},{name:"elements",defaultValue:[]},{name:"lookahead"}]};case"TerminalGroup":return{name:"TerminalGroup",properties:[{name:"cardinality"},{name:"elements",defaultValue:[]},{name:"lookahead"}]};case"TerminalRuleCall":return{name:"TerminalRuleCall",properties:[{name:"cardinality"},{name:"lookahead"},{name:"rule"}]};case"UnorderedGroup":return{name:"UnorderedGroup",properties:[{name:"cardinality"},{name:"elements",defaultValue:[]},{name:"lookahead"}]};case"UntilToken":return{name:"UntilToken",properties:[{name:"cardinality"},{name:"lookahead"},{name:"terminal"}]};case"Wildcard":return{name:"Wildcard",properties:[{name:"cardinality"},{name:"lookahead"}]};default:return{name:e,properties:[]}}}}const M=new Jo;function od(n){for(const[e,t]of Object.entries(n))e.startsWith("$")||(Array.isArray(t)?t.forEach((r,i)=>{ae(r)&&(r.$container=n,r.$containerProperty=e,r.$containerIndex=i)}):ae(t)&&(t.$container=n,t.$containerProperty=e))}function ar(n,e){let t=n;for(;t;){if(e(t))return t;t=t.$container}}function Ue(n){const t=ld(n).$document;if(!t)throw new Error("AST node has no document.");return t}function ld(n){for(;n.$container;)n=n.$container;return n}function Ni(n,e){if(!n)throw new Error("Node must be an AstNode.");const t=e==null?void 0:e.range;return new ie(()=>({keys:Object.keys(n),keyIndex:0,arrayIndex:0}),r=>{for(;r.keyIndexNi(t,e))}function Rt(n,e){if(!n)throw new Error("Root node must be an AstNode.");return new Ai(n,t=>Ni(t,e),{includeRoot:!0})}function ss(n,e){var t;if(!e)return!0;const r=(t=n.$cstNode)===null||t===void 0?void 0:t.range;return r?Cu(r,e):!1}function Qo(n){return new ie(()=>({keys:Object.keys(n),keyIndex:0,arrayIndex:0}),e=>{for(;e.keyIndexs.state.transitions),i=bu(r.filter(s=>s instanceof Mi).map(s=>s.tokenType),s=>s.tokenTypeIdx);return{actualToken:t,possibleTokenTypes:i,tokenPath:n}}function mp(n,e){return n.edges[e.tokenTypeIdx]}function gp(n,e,t){const r=new qr,i=[];for(const a of n.elements){if(t.is(a.alt)===!1)continue;if(a.state.type===_n){i.push(a);continue}const o=a.state.transitions.length;for(let l=0;l0&&!Rp(s))for(const a of i)s.add(a);return s}function yp(n,e){if(n instanceof Mi&&Al(e,n.tokenType))return n.target}function Tp(n,e){let t;for(const r of n.elements)if(e.is(r.alt)===!0){if(t===void 0)t=r.alt;else if(t!==r.alt)return}return t}function Xl(n){return{configs:n,edges:{},isAcceptState:!1,prediction:-1}}function Ps(n,e,t,r){return r=Jl(n,r),e.edges[t.tokenTypeIdx]=r,r}function Jl(n,e){if(e===Hn)return e;const t=e.configs.key,r=n.states[t];return r!==void 0?r:(e.configs.finalize(),n.states[t]=e,e)}function _p(n){const e=new qr,t=n.transitions.length;for(let r=0;r0){const i=[...n.stack],a={state:i.pop(),alt:n.alt,stack:i};Vn(a,e)}else e.add(n);return}t.epsilonOnlyTransitions||e.add(n);const r=t.transitions.length;for(let i=0;i1)return!0;return!1}function kp(n){for(const e of Array.from(n.values()))if(Object.keys(e).length===1)return!0;return!1}var Ms;(function(n){function e(t){return typeof t=="string"}n.is=e})(Ms||(Ms={}));var Yr;(function(n){function e(t){return typeof t=="string"}n.is=e})(Yr||(Yr={}));var Ds;(function(n){n.MIN_VALUE=-2147483648,n.MAX_VALUE=2147483647;function e(t){return typeof t=="number"&&n.MIN_VALUE<=t&&t<=n.MAX_VALUE}n.is=e})(Ds||(Ds={}));var Wn;(function(n){n.MIN_VALUE=0,n.MAX_VALUE=2147483647;function e(t){return typeof t=="number"&&n.MIN_VALUE<=t&&t<=n.MAX_VALUE}n.is=e})(Wn||(Wn={}));var P;(function(n){function e(r,i){return r===Number.MAX_VALUE&&(r=Wn.MAX_VALUE),i===Number.MAX_VALUE&&(i=Wn.MAX_VALUE),{line:r,character:i}}n.create=e;function t(r){let i=r;return p.objectLiteral(i)&&p.uinteger(i.line)&&p.uinteger(i.character)}n.is=t})(P||(P={}));var $;(function(n){function e(r,i,s,a){if(p.uinteger(r)&&p.uinteger(i)&&p.uinteger(s)&&p.uinteger(a))return{start:P.create(r,i),end:P.create(s,a)};if(P.is(r)&&P.is(i))return{start:r,end:i};throw new Error(`Range#create called with invalid arguments[${r}, ${i}, ${s}, ${a}]`)}n.create=e;function t(r){let i=r;return p.objectLiteral(i)&&P.is(i.start)&&P.is(i.end)}n.is=t})($||($={}));var Kn;(function(n){function e(r,i){return{uri:r,range:i}}n.create=e;function t(r){let i=r;return p.objectLiteral(i)&&$.is(i.range)&&(p.string(i.uri)||p.undefined(i.uri))}n.is=t})(Kn||(Kn={}));var js;(function(n){function e(r,i,s,a){return{targetUri:r,targetRange:i,targetSelectionRange:s,originSelectionRange:a}}n.create=e;function t(r){let i=r;return p.objectLiteral(i)&&$.is(i.targetRange)&&p.string(i.targetUri)&&$.is(i.targetSelectionRange)&&($.is(i.originSelectionRange)||p.undefined(i.originSelectionRange))}n.is=t})(js||(js={}));var Xr;(function(n){function e(r,i,s,a){return{red:r,green:i,blue:s,alpha:a}}n.create=e;function t(r){const i=r;return p.objectLiteral(i)&&p.numberRange(i.red,0,1)&&p.numberRange(i.green,0,1)&&p.numberRange(i.blue,0,1)&&p.numberRange(i.alpha,0,1)}n.is=t})(Xr||(Xr={}));var Gs;(function(n){function e(r,i){return{range:r,color:i}}n.create=e;function t(r){const i=r;return p.objectLiteral(i)&&$.is(i.range)&&Xr.is(i.color)}n.is=t})(Gs||(Gs={}));var Us;(function(n){function e(r,i,s){return{label:r,textEdit:i,additionalTextEdits:s}}n.create=e;function t(r){const i=r;return p.objectLiteral(i)&&p.string(i.label)&&(p.undefined(i.textEdit)||Bt.is(i))&&(p.undefined(i.additionalTextEdits)||p.typedArray(i.additionalTextEdits,Bt.is))}n.is=t})(Us||(Us={}));var Fs;(function(n){n.Comment="comment",n.Imports="imports",n.Region="region"})(Fs||(Fs={}));var Bs;(function(n){function e(r,i,s,a,o,l){const c={startLine:r,endLine:i};return p.defined(s)&&(c.startCharacter=s),p.defined(a)&&(c.endCharacter=a),p.defined(o)&&(c.kind=o),p.defined(l)&&(c.collapsedText=l),c}n.create=e;function t(r){const i=r;return p.objectLiteral(i)&&p.uinteger(i.startLine)&&p.uinteger(i.startLine)&&(p.undefined(i.startCharacter)||p.uinteger(i.startCharacter))&&(p.undefined(i.endCharacter)||p.uinteger(i.endCharacter))&&(p.undefined(i.kind)||p.string(i.kind))}n.is=t})(Bs||(Bs={}));var Jr;(function(n){function e(r,i){return{location:r,message:i}}n.create=e;function t(r){let i=r;return p.defined(i)&&Kn.is(i.location)&&p.string(i.message)}n.is=t})(Jr||(Jr={}));var Hs;(function(n){n.Error=1,n.Warning=2,n.Information=3,n.Hint=4})(Hs||(Hs={}));var Vs;(function(n){n.Unnecessary=1,n.Deprecated=2})(Vs||(Vs={}));var Ws;(function(n){function e(t){const r=t;return p.objectLiteral(r)&&p.string(r.href)}n.is=e})(Ws||(Ws={}));var zn;(function(n){function e(r,i,s,a,o,l){let c={range:r,message:i};return p.defined(s)&&(c.severity=s),p.defined(a)&&(c.code=a),p.defined(o)&&(c.source=o),p.defined(l)&&(c.relatedInformation=l),c}n.create=e;function t(r){var i;let s=r;return p.defined(s)&&$.is(s.range)&&p.string(s.message)&&(p.number(s.severity)||p.undefined(s.severity))&&(p.integer(s.code)||p.string(s.code)||p.undefined(s.code))&&(p.undefined(s.codeDescription)||p.string((i=s.codeDescription)===null||i===void 0?void 0:i.href))&&(p.string(s.source)||p.undefined(s.source))&&(p.undefined(s.relatedInformation)||p.typedArray(s.relatedInformation,Jr.is))}n.is=t})(zn||(zn={}));var Ft;(function(n){function e(r,i,...s){let a={title:r,command:i};return p.defined(s)&&s.length>0&&(a.arguments=s),a}n.create=e;function t(r){let i=r;return p.defined(i)&&p.string(i.title)&&p.string(i.command)}n.is=t})(Ft||(Ft={}));var Bt;(function(n){function e(s,a){return{range:s,newText:a}}n.replace=e;function t(s,a){return{range:{start:s,end:s},newText:a}}n.insert=t;function r(s){return{range:s,newText:""}}n.del=r;function i(s){const a=s;return p.objectLiteral(a)&&p.string(a.newText)&&$.is(a.range)}n.is=i})(Bt||(Bt={}));var Qr;(function(n){function e(r,i,s){const a={label:r};return i!==void 0&&(a.needsConfirmation=i),s!==void 0&&(a.description=s),a}n.create=e;function t(r){const i=r;return p.objectLiteral(i)&&p.string(i.label)&&(p.boolean(i.needsConfirmation)||i.needsConfirmation===void 0)&&(p.string(i.description)||i.description===void 0)}n.is=t})(Qr||(Qr={}));var Ht;(function(n){function e(t){const r=t;return p.string(r)}n.is=e})(Ht||(Ht={}));var Ks;(function(n){function e(s,a,o){return{range:s,newText:a,annotationId:o}}n.replace=e;function t(s,a,o){return{range:{start:s,end:s},newText:a,annotationId:o}}n.insert=t;function r(s,a){return{range:s,newText:"",annotationId:a}}n.del=r;function i(s){const a=s;return Bt.is(a)&&(Qr.is(a.annotationId)||Ht.is(a.annotationId))}n.is=i})(Ks||(Ks={}));var Zr;(function(n){function e(r,i){return{textDocument:r,edits:i}}n.create=e;function t(r){let i=r;return p.defined(i)&&ii.is(i.textDocument)&&Array.isArray(i.edits)}n.is=t})(Zr||(Zr={}));var ei;(function(n){function e(r,i,s){let a={kind:"create",uri:r};return i!==void 0&&(i.overwrite!==void 0||i.ignoreIfExists!==void 0)&&(a.options=i),s!==void 0&&(a.annotationId=s),a}n.create=e;function t(r){let i=r;return i&&i.kind==="create"&&p.string(i.uri)&&(i.options===void 0||(i.options.overwrite===void 0||p.boolean(i.options.overwrite))&&(i.options.ignoreIfExists===void 0||p.boolean(i.options.ignoreIfExists)))&&(i.annotationId===void 0||Ht.is(i.annotationId))}n.is=t})(ei||(ei={}));var ti;(function(n){function e(r,i,s,a){let o={kind:"rename",oldUri:r,newUri:i};return s!==void 0&&(s.overwrite!==void 0||s.ignoreIfExists!==void 0)&&(o.options=s),a!==void 0&&(o.annotationId=a),o}n.create=e;function t(r){let i=r;return i&&i.kind==="rename"&&p.string(i.oldUri)&&p.string(i.newUri)&&(i.options===void 0||(i.options.overwrite===void 0||p.boolean(i.options.overwrite))&&(i.options.ignoreIfExists===void 0||p.boolean(i.options.ignoreIfExists)))&&(i.annotationId===void 0||Ht.is(i.annotationId))}n.is=t})(ti||(ti={}));var ni;(function(n){function e(r,i,s){let a={kind:"delete",uri:r};return i!==void 0&&(i.recursive!==void 0||i.ignoreIfNotExists!==void 0)&&(a.options=i),s!==void 0&&(a.annotationId=s),a}n.create=e;function t(r){let i=r;return i&&i.kind==="delete"&&p.string(i.uri)&&(i.options===void 0||(i.options.recursive===void 0||p.boolean(i.options.recursive))&&(i.options.ignoreIfNotExists===void 0||p.boolean(i.options.ignoreIfNotExists)))&&(i.annotationId===void 0||Ht.is(i.annotationId))}n.is=t})(ni||(ni={}));var ri;(function(n){function e(t){let r=t;return r&&(r.changes!==void 0||r.documentChanges!==void 0)&&(r.documentChanges===void 0||r.documentChanges.every(i=>p.string(i.kind)?ei.is(i)||ti.is(i)||ni.is(i):Zr.is(i)))}n.is=e})(ri||(ri={}));var zs;(function(n){function e(r){return{uri:r}}n.create=e;function t(r){let i=r;return p.defined(i)&&p.string(i.uri)}n.is=t})(zs||(zs={}));var qs;(function(n){function e(r,i){return{uri:r,version:i}}n.create=e;function t(r){let i=r;return p.defined(i)&&p.string(i.uri)&&p.integer(i.version)}n.is=t})(qs||(qs={}));var ii;(function(n){function e(r,i){return{uri:r,version:i}}n.create=e;function t(r){let i=r;return p.defined(i)&&p.string(i.uri)&&(i.version===null||p.integer(i.version))}n.is=t})(ii||(ii={}));var Ys;(function(n){function e(r,i,s,a){return{uri:r,languageId:i,version:s,text:a}}n.create=e;function t(r){let i=r;return p.defined(i)&&p.string(i.uri)&&p.string(i.languageId)&&p.integer(i.version)&&p.string(i.text)}n.is=t})(Ys||(Ys={}));var si;(function(n){n.PlainText="plaintext",n.Markdown="markdown";function e(t){const r=t;return r===n.PlainText||r===n.Markdown}n.is=e})(si||(si={}));var un;(function(n){function e(t){const r=t;return p.objectLiteral(t)&&si.is(r.kind)&&p.string(r.value)}n.is=e})(un||(un={}));var Xs;(function(n){n.Text=1,n.Method=2,n.Function=3,n.Constructor=4,n.Field=5,n.Variable=6,n.Class=7,n.Interface=8,n.Module=9,n.Property=10,n.Unit=11,n.Value=12,n.Enum=13,n.Keyword=14,n.Snippet=15,n.Color=16,n.File=17,n.Reference=18,n.Folder=19,n.EnumMember=20,n.Constant=21,n.Struct=22,n.Event=23,n.Operator=24,n.TypeParameter=25})(Xs||(Xs={}));var Js;(function(n){n.PlainText=1,n.Snippet=2})(Js||(Js={}));var Qs;(function(n){n.Deprecated=1})(Qs||(Qs={}));var Zs;(function(n){function e(r,i,s){return{newText:r,insert:i,replace:s}}n.create=e;function t(r){const i=r;return i&&p.string(i.newText)&&$.is(i.insert)&&$.is(i.replace)}n.is=t})(Zs||(Zs={}));var ea;(function(n){n.asIs=1,n.adjustIndentation=2})(ea||(ea={}));var ta;(function(n){function e(t){const r=t;return r&&(p.string(r.detail)||r.detail===void 0)&&(p.string(r.description)||r.description===void 0)}n.is=e})(ta||(ta={}));var na;(function(n){function e(t){return{label:t}}n.create=e})(na||(na={}));var ra;(function(n){function e(t,r){return{items:t||[],isIncomplete:!!r}}n.create=e})(ra||(ra={}));var qn;(function(n){function e(r){return r.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}n.fromPlainText=e;function t(r){const i=r;return p.string(i)||p.objectLiteral(i)&&p.string(i.language)&&p.string(i.value)}n.is=t})(qn||(qn={}));var ia;(function(n){function e(t){let r=t;return!!r&&p.objectLiteral(r)&&(un.is(r.contents)||qn.is(r.contents)||p.typedArray(r.contents,qn.is))&&(t.range===void 0||$.is(t.range))}n.is=e})(ia||(ia={}));var sa;(function(n){function e(t,r){return r?{label:t,documentation:r}:{label:t}}n.create=e})(sa||(sa={}));var aa;(function(n){function e(t,r,...i){let s={label:t};return p.defined(r)&&(s.documentation=r),p.defined(i)?s.parameters=i:s.parameters=[],s}n.create=e})(aa||(aa={}));var oa;(function(n){n.Text=1,n.Read=2,n.Write=3})(oa||(oa={}));var la;(function(n){function e(t,r){let i={range:t};return p.number(r)&&(i.kind=r),i}n.create=e})(la||(la={}));var ca;(function(n){n.File=1,n.Module=2,n.Namespace=3,n.Package=4,n.Class=5,n.Method=6,n.Property=7,n.Field=8,n.Constructor=9,n.Enum=10,n.Interface=11,n.Function=12,n.Variable=13,n.Constant=14,n.String=15,n.Number=16,n.Boolean=17,n.Array=18,n.Object=19,n.Key=20,n.Null=21,n.EnumMember=22,n.Struct=23,n.Event=24,n.Operator=25,n.TypeParameter=26})(ca||(ca={}));var ua;(function(n){n.Deprecated=1})(ua||(ua={}));var da;(function(n){function e(t,r,i,s,a){let o={name:t,kind:r,location:{uri:s,range:i}};return a&&(o.containerName=a),o}n.create=e})(da||(da={}));var fa;(function(n){function e(t,r,i,s){return s!==void 0?{name:t,kind:r,location:{uri:i,range:s}}:{name:t,kind:r,location:{uri:i}}}n.create=e})(fa||(fa={}));var ha;(function(n){function e(r,i,s,a,o,l){let c={name:r,detail:i,kind:s,range:a,selectionRange:o};return l!==void 0&&(c.children=l),c}n.create=e;function t(r){let i=r;return i&&p.string(i.name)&&p.number(i.kind)&&$.is(i.range)&&$.is(i.selectionRange)&&(i.detail===void 0||p.string(i.detail))&&(i.deprecated===void 0||p.boolean(i.deprecated))&&(i.children===void 0||Array.isArray(i.children))&&(i.tags===void 0||Array.isArray(i.tags))}n.is=t})(ha||(ha={}));var pa;(function(n){n.Empty="",n.QuickFix="quickfix",n.Refactor="refactor",n.RefactorExtract="refactor.extract",n.RefactorInline="refactor.inline",n.RefactorRewrite="refactor.rewrite",n.Source="source",n.SourceOrganizeImports="source.organizeImports",n.SourceFixAll="source.fixAll"})(pa||(pa={}));var Yn;(function(n){n.Invoked=1,n.Automatic=2})(Yn||(Yn={}));var ma;(function(n){function e(r,i,s){let a={diagnostics:r};return i!=null&&(a.only=i),s!=null&&(a.triggerKind=s),a}n.create=e;function t(r){let i=r;return p.defined(i)&&p.typedArray(i.diagnostics,zn.is)&&(i.only===void 0||p.typedArray(i.only,p.string))&&(i.triggerKind===void 0||i.triggerKind===Yn.Invoked||i.triggerKind===Yn.Automatic)}n.is=t})(ma||(ma={}));var ga;(function(n){function e(r,i,s){let a={title:r},o=!0;return typeof i=="string"?(o=!1,a.kind=i):Ft.is(i)?a.command=i:a.edit=i,o&&s!==void 0&&(a.kind=s),a}n.create=e;function t(r){let i=r;return i&&p.string(i.title)&&(i.diagnostics===void 0||p.typedArray(i.diagnostics,zn.is))&&(i.kind===void 0||p.string(i.kind))&&(i.edit!==void 0||i.command!==void 0)&&(i.command===void 0||Ft.is(i.command))&&(i.isPreferred===void 0||p.boolean(i.isPreferred))&&(i.edit===void 0||ri.is(i.edit))}n.is=t})(ga||(ga={}));var ya;(function(n){function e(r,i){let s={range:r};return p.defined(i)&&(s.data=i),s}n.create=e;function t(r){let i=r;return p.defined(i)&&$.is(i.range)&&(p.undefined(i.command)||Ft.is(i.command))}n.is=t})(ya||(ya={}));var Ta;(function(n){function e(r,i){return{tabSize:r,insertSpaces:i}}n.create=e;function t(r){let i=r;return p.defined(i)&&p.uinteger(i.tabSize)&&p.boolean(i.insertSpaces)}n.is=t})(Ta||(Ta={}));var _a;(function(n){function e(r,i,s){return{range:r,target:i,data:s}}n.create=e;function t(r){let i=r;return p.defined(i)&&$.is(i.range)&&(p.undefined(i.target)||p.string(i.target))}n.is=t})(_a||(_a={}));var Ea;(function(n){function e(r,i){return{range:r,parent:i}}n.create=e;function t(r){let i=r;return p.objectLiteral(i)&&$.is(i.range)&&(i.parent===void 0||n.is(i.parent))}n.is=t})(Ea||(Ea={}));var Ra;(function(n){n.namespace="namespace",n.type="type",n.class="class",n.enum="enum",n.interface="interface",n.struct="struct",n.typeParameter="typeParameter",n.parameter="parameter",n.variable="variable",n.property="property",n.enumMember="enumMember",n.event="event",n.function="function",n.method="method",n.macro="macro",n.keyword="keyword",n.modifier="modifier",n.comment="comment",n.string="string",n.number="number",n.regexp="regexp",n.operator="operator",n.decorator="decorator"})(Ra||(Ra={}));var Aa;(function(n){n.declaration="declaration",n.definition="definition",n.readonly="readonly",n.static="static",n.deprecated="deprecated",n.abstract="abstract",n.async="async",n.modification="modification",n.documentation="documentation",n.defaultLibrary="defaultLibrary"})(Aa||(Aa={}));var va;(function(n){function e(t){const r=t;return p.objectLiteral(r)&&(r.resultId===void 0||typeof r.resultId=="string")&&Array.isArray(r.data)&&(r.data.length===0||typeof r.data[0]=="number")}n.is=e})(va||(va={}));var ba;(function(n){function e(r,i){return{range:r,text:i}}n.create=e;function t(r){const i=r;return i!=null&&$.is(i.range)&&p.string(i.text)}n.is=t})(ba||(ba={}));var Na;(function(n){function e(r,i,s){return{range:r,variableName:i,caseSensitiveLookup:s}}n.create=e;function t(r){const i=r;return i!=null&&$.is(i.range)&&p.boolean(i.caseSensitiveLookup)&&(p.string(i.variableName)||i.variableName===void 0)}n.is=t})(Na||(Na={}));var ka;(function(n){function e(r,i){return{range:r,expression:i}}n.create=e;function t(r){const i=r;return i!=null&&$.is(i.range)&&(p.string(i.expression)||i.expression===void 0)}n.is=t})(ka||(ka={}));var Ia;(function(n){function e(r,i){return{frameId:r,stoppedLocation:i}}n.create=e;function t(r){const i=r;return p.defined(i)&&$.is(r.stoppedLocation)}n.is=t})(Ia||(Ia={}));var ai;(function(n){n.Type=1,n.Parameter=2;function e(t){return t===1||t===2}n.is=e})(ai||(ai={}));var oi;(function(n){function e(r){return{value:r}}n.create=e;function t(r){const i=r;return p.objectLiteral(i)&&(i.tooltip===void 0||p.string(i.tooltip)||un.is(i.tooltip))&&(i.location===void 0||Kn.is(i.location))&&(i.command===void 0||Ft.is(i.command))}n.is=t})(oi||(oi={}));var Sa;(function(n){function e(r,i,s){const a={position:r,label:i};return s!==void 0&&(a.kind=s),a}n.create=e;function t(r){const i=r;return p.objectLiteral(i)&&P.is(i.position)&&(p.string(i.label)||p.typedArray(i.label,oi.is))&&(i.kind===void 0||ai.is(i.kind))&&i.textEdits===void 0||p.typedArray(i.textEdits,Bt.is)&&(i.tooltip===void 0||p.string(i.tooltip)||un.is(i.tooltip))&&(i.paddingLeft===void 0||p.boolean(i.paddingLeft))&&(i.paddingRight===void 0||p.boolean(i.paddingRight))}n.is=t})(Sa||(Sa={}));var xa;(function(n){function e(t){return{kind:"snippet",value:t}}n.createSnippet=e})(xa||(xa={}));var Ca;(function(n){function e(t,r,i,s){return{insertText:t,filterText:r,range:i,command:s}}n.create=e})(Ca||(Ca={}));var wa;(function(n){function e(t){return{items:t}}n.create=e})(wa||(wa={}));var Oa;(function(n){n.Invoked=0,n.Automatic=1})(Oa||(Oa={}));var La;(function(n){function e(t,r){return{range:t,text:r}}n.create=e})(La||(La={}));var $a;(function(n){function e(t,r){return{triggerKind:t,selectedCompletionInfo:r}}n.create=e})($a||($a={}));var Pa;(function(n){function e(t){const r=t;return p.objectLiteral(r)&&Yr.is(r.uri)&&p.string(r.name)}n.is=e})(Pa||(Pa={}));var Ma;(function(n){function e(s,a,o,l){return new Ip(s,a,o,l)}n.create=e;function t(s){let a=s;return!!(p.defined(a)&&p.string(a.uri)&&(p.undefined(a.languageId)||p.string(a.languageId))&&p.uinteger(a.lineCount)&&p.func(a.getText)&&p.func(a.positionAt)&&p.func(a.offsetAt))}n.is=t;function r(s,a){let o=s.getText(),l=i(a,(u,d)=>{let f=u.range.start.line-d.range.start.line;return f===0?u.range.start.character-d.range.start.character:f}),c=o.length;for(let u=l.length-1;u>=0;u--){let d=l[u],f=s.offsetAt(d.range.start),h=s.offsetAt(d.range.end);if(h<=c)o=o.substring(0,f)+d.newText+o.substring(h,o.length);else throw new Error("Overlapping edit");c=f}return o}n.applyEdits=r;function i(s,a){if(s.length<=1)return s;const o=s.length/2|0,l=s.slice(0,o),c=s.slice(o);i(l,a),i(c,a);let u=0,d=0,f=0;for(;u0&&e.push(t.length),this._lineOffsets=e}return this._lineOffsets}positionAt(e){e=Math.max(Math.min(e,this._content.length),0);let t=this.getLineOffsets(),r=0,i=t.length;if(i===0)return P.create(0,e);for(;re?i=a:r=a+1}let s=r-1;return P.create(s,e-t[s])}offsetAt(e){let t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;let r=t[e.line],i=e.line+1"u"}n.undefined=r;function i(h){return h===!0||h===!1}n.boolean=i;function s(h){return e.call(h)==="[object String]"}n.string=s;function a(h){return e.call(h)==="[object Number]"}n.number=a;function o(h,m,g){return e.call(h)==="[object Number]"&&m<=h&&h<=g}n.numberRange=o;function l(h){return e.call(h)==="[object Number]"&&-2147483648<=h&&h<=2147483647}n.integer=l;function c(h){return e.call(h)==="[object Number]"&&0<=h&&h<=2147483647}n.uinteger=c;function u(h){return e.call(h)==="[object Function]"}n.func=u;function d(h){return h!==null&&typeof h=="object"}n.objectLiteral=d;function f(h,m){return Array.isArray(h)&&h.every(m)}n.typedArray=f})(p||(p={}));class Sp{constructor(){this.nodeStack=[]}get current(){return this.nodeStack[this.nodeStack.length-1]}buildRootNode(e){return this.rootNode=new Zl(e),this.rootNode.root=this.rootNode,this.nodeStack=[this.rootNode],this.rootNode}buildCompositeNode(e){const t=new Ui;return t.grammarSource=e,t.root=this.rootNode,this.current.content.push(t),this.nodeStack.push(t),t}buildLeafNode(e,t){const r=new li(e.startOffset,e.image.length,Dr(e),e.tokenType,!1);return r.grammarSource=t,r.root=this.rootNode,this.current.content.push(r),r}removeNode(e){const t=e.container;if(t){const r=t.content.indexOf(e);r>=0&&t.content.splice(r,1)}}construct(e){const t=this.current;typeof e.$type=="string"&&(this.current.astNode=e),e.$cstNode=t;const r=this.nodeStack.pop();(r==null?void 0:r.content.length)===0&&this.removeNode(r)}addHiddenTokens(e){for(const t of e){const r=new li(t.startOffset,t.image.length,Dr(t),t.tokenType,!0);r.root=this.rootNode,this.addHiddenToken(this.rootNode,r)}}addHiddenToken(e,t){const{offset:r,end:i}=t;for(let s=0;so&&i=0;e--){const t=this.content[e];if(!t.hidden)return t}return this.content[this.content.length-1]}}class Fi extends Array{constructor(e){super(),this.parent=e,Object.setPrototypeOf(this,Fi.prototype)}push(...e){return this.addParents(e),super.push(...e)}unshift(...e){return this.addParents(e),super.unshift(...e)}splice(e,t,...r){return this.addParents(r),super.splice(e,t,...r)}addParents(e){for(const t of e)t.container=this.parent}}class Zl extends Ui{get text(){return this._text.substring(this.offset,this.end)}get fullText(){return this._text}constructor(e){super(),this._text="",this._text=e??""}}const ci=Symbol("Datatype");function Cr(n){return n.$type===ci}const Da="​",ec=n=>n.endsWith(Da)?n:n+Da;class tc{constructor(e){this._unorderedGroups=new Map,this.lexer=e.parser.Lexer;const t=this.lexer.definition;this.wrapper=new Lp(t,Object.assign(Object.assign({},e.parser.ParserConfig),{errorMessageProvider:e.parser.ParserErrorMessageProvider}))}alternatives(e,t){this.wrapper.wrapOr(e,t)}optional(e,t){this.wrapper.wrapOption(e,t)}many(e,t){this.wrapper.wrapMany(e,t)}atLeastOne(e,t){this.wrapper.wrapAtLeastOne(e,t)}isRecording(){return this.wrapper.IS_RECORDING}get unorderedGroups(){return this._unorderedGroups}getRuleStack(){return this.wrapper.RULE_STACK}finalize(){this.wrapper.wrapSelfAnalysis()}}class xp extends tc{get current(){return this.stack[this.stack.length-1]}constructor(e){super(e),this.nodeBuilder=new Sp,this.stack=[],this.assignmentMap=new Map,this.linker=e.references.Linker,this.converter=e.parser.ValueConverter,this.astReflection=e.shared.AstReflection}rule(e,t){const r=e.fragment?void 0:Ii(e)?ci:cr(e),i=this.wrapper.DEFINE_RULE(ec(e.name),this.startImplementation(r,t).bind(this));return e.entry&&(this.mainRule=i),i}parse(e){this.nodeBuilder.buildRootNode(e);const t=this.lexer.tokenize(e);this.wrapper.input=t.tokens;const r=this.mainRule.call(this.wrapper,{});return this.nodeBuilder.addHiddenTokens(t.hidden),this.unorderedGroups.clear(),{value:r,lexerErrors:t.errors,parserErrors:this.wrapper.errors}}startImplementation(e,t){return r=>{if(!this.isRecording()){const s={$type:e};this.stack.push(s),e===ci&&(s.value="")}let i;try{i=t(r)}catch{i=void 0}return!this.isRecording()&&i===void 0&&(i=this.construct()),i}}consume(e,t,r){const i=this.wrapper.wrapConsume(e,t);if(!this.isRecording()&&this.isValidToken(i)){const s=this.nodeBuilder.buildLeafNode(i,r),{assignment:a,isCrossRef:o}=this.getAssignment(r),l=this.current;if(a){const c=dt(r)?i.image:this.converter.convert(i.image,s);this.assign(a.operator,a.feature,c,s,o)}else if(Cr(l)){let c=i.image;dt(r)||(c=this.converter.convert(c,s).toString()),l.value+=c}}}isValidToken(e){return!e.isInsertedInRecovery&&!isNaN(e.startOffset)&&typeof e.endOffset=="number"&&!isNaN(e.endOffset)}subrule(e,t,r,i){let s;this.isRecording()||(s=this.nodeBuilder.buildCompositeNode(r));const a=this.wrapper.wrapSubrule(e,t,i);!this.isRecording()&&s&&s.length>0&&this.performSubruleAssignment(a,r,s)}performSubruleAssignment(e,t,r){const{assignment:i,isCrossRef:s}=this.getAssignment(t);if(i)this.assign(i.operator,i.feature,e,r,s);else if(!i){const a=this.current;if(Cr(a))a.value+=e.toString();else if(typeof e=="object"&&e){const o=e.$type,l=this.assignWithoutOverride(e,a);o&&(l.$type=o);const c=l;this.stack.pop(),this.stack.push(c)}}}action(e,t){if(!this.isRecording()){let r=this.current;if(!r.$cstNode&&t.feature&&t.operator){r=this.construct(!1);const s=r.$cstNode.feature;this.nodeBuilder.buildCompositeNode(s)}const i={$type:e};this.stack.pop(),this.stack.push(i),t.feature&&t.operator&&this.assign(t.operator,t.feature,r,r.$cstNode,!1)}}construct(e=!0){if(this.isRecording())return;const t=this.current;return od(t),this.nodeBuilder.construct(t),e&&this.stack.pop(),Cr(t)?this.converter.convert(t.value,t.$cstNode):(cd(this.astReflection,t),t)}getAssignment(e){if(!this.assignmentMap.has(e)){const t=ar(e,ut);this.assignmentMap.set(e,{assignment:t,isCrossRef:t?vi(t.terminal):!1})}return this.assignmentMap.get(e)}assign(e,t,r,i,s){const a=this.current;let o;switch(s&&typeof r=="string"?o=this.linker.buildReference(a,t,i,r):o=r,e){case"=":{a[t]=o;break}case"?=":{a[t]=!0;break}case"+=":Array.isArray(a[t])||(a[t]=[]),a[t].push(o)}}assignWithoutOverride(e,t){for(const[r,i]of Object.entries(t)){const s=e[r];s===void 0?e[r]=i:Array.isArray(s)&&Array.isArray(i)&&(i.push(...s),e[r]=i)}return e}get definitionErrors(){return this.wrapper.definitionErrors}}class Cp{buildMismatchTokenMessage(e){return Et.buildMismatchTokenMessage(e)}buildNotAllInputParsedMessage(e){return Et.buildNotAllInputParsedMessage(e)}buildNoViableAltMessage(e){return Et.buildNoViableAltMessage(e)}buildEarlyExitMessage(e){return Et.buildEarlyExitMessage(e)}}class nc extends Cp{buildMismatchTokenMessage({expected:e,actual:t}){return`Expecting ${e.LABEL?"`"+e.LABEL+"`":e.name.endsWith(":KW")?`keyword '${e.name.substring(0,e.name.length-3)}'`:`token of type '${e.name}'`} but found \`${t.image}\`.`}buildNotAllInputParsedMessage({firstRedundant:e}){return`Expecting end of file but found \`${e.image}\`.`}}class wp extends tc{constructor(){super(...arguments),this.tokens=[],this.elementStack=[],this.lastElementStack=[],this.nextTokenIndex=0,this.stackSize=0}action(){}construct(){}parse(e){this.resetState();const t=this.lexer.tokenize(e);return this.tokens=t.tokens,this.wrapper.input=[...this.tokens],this.mainRule.call(this.wrapper,{}),this.unorderedGroups.clear(),{tokens:this.tokens,elementStack:[...this.lastElementStack],tokenIndex:this.nextTokenIndex}}rule(e,t){const r=this.wrapper.DEFINE_RULE(ec(e.name),this.startImplementation(t).bind(this));return e.entry&&(this.mainRule=r),r}resetState(){this.elementStack=[],this.lastElementStack=[],this.nextTokenIndex=0,this.stackSize=0}startImplementation(e){return t=>{const r=this.keepStackSize();try{e(t)}finally{this.resetStackSize(r)}}}removeUnexpectedElements(){this.elementStack.splice(this.stackSize)}keepStackSize(){const e=this.elementStack.length;return this.stackSize=e,e}resetStackSize(e){this.removeUnexpectedElements(),this.stackSize=e}consume(e,t,r){this.wrapper.wrapConsume(e,t),this.isRecording()||(this.lastElementStack=[...this.elementStack,r],this.nextTokenIndex=this.currIdx+1)}subrule(e,t,r,i){this.before(r),this.wrapper.wrapSubrule(e,t,i),this.after(r)}before(e){this.isRecording()||this.elementStack.push(e)}after(e){if(!this.isRecording()){const t=this.elementStack.lastIndexOf(e);t>=0&&this.elementStack.splice(t)}}get currIdx(){return this.wrapper.currIdx}}const Op={recoveryEnabled:!0,nodeLocationTracking:"full",skipValidations:!0,errorMessageProvider:new nc};class Lp extends Uh{constructor(e,t){const r=t&&"maxLookahead"in t;super(e,Object.assign(Object.assign(Object.assign({},Op),{lookaheadStrategy:r?new $i({maxLookahead:t.maxLookahead}):new op}),t))}get IS_RECORDING(){return this.RECORDING_PHASE}DEFINE_RULE(e,t){return this.RULE(e,t)}wrapSelfAnalysis(){this.performSelfAnalysis()}wrapConsume(e,t){return this.consume(e,t)}wrapSubrule(e,t,r){return this.subrule(e,t,{ARGS:[r]})}wrapOr(e,t){this.or(e,t)}wrapOption(e,t){this.option(e,t)}wrapMany(e,t){this.many(e,t)}wrapAtLeastOne(e,t){this.atLeastOne(e,t)}}function rc(n,e,t){return $p({parser:e,tokens:t,rules:new Map,ruleNames:new Map},n),e}function $p(n,e){const t=tl(e,!1),r=Q(e.rules).filter(Se).filter(i=>t.has(i));for(const i of r){const s=Object.assign(Object.assign({},n),{consume:1,optional:1,subrule:1,many:1,or:1});s.rules.set(i.name,n.parser.rule(i,pt(s,i.definition)))}}function pt(n,e,t=!1){let r;if(dt(e))r=Fp(n,e);else if(sr(e))r=Pp(n,e);else if(ut(e))r=pt(n,e.terminal);else if(vi(e))r=ic(n,e);else if(ft(e))r=Mp(n,e);else if($o(e))r=jp(n,e);else if(qo(e))r=Gp(n,e);else if(bi(e))r=Up(n,e);else if(Zu(e)){const i=n.consume++;r=()=>n.parser.consume(i,tt,e)}else throw new yo(e.$cstNode,`Unexpected element type: ${e.$type}`);return sc(n,t?void 0:Xn(e),r,e.cardinality)}function Pp(n,e){const t=cr(e);return()=>n.parser.action(t,e)}function Mp(n,e){const t=e.rule.ref;if(Se(t)){const r=n.subrule++,i=e.arguments.length>0?Dp(t,e.arguments):()=>({});return s=>n.parser.subrule(r,ac(n,t),e,i(s))}else if(gt(t)){const r=n.consume++,i=ui(n,t.name);return()=>n.parser.consume(r,i,e)}else if(t)ir();else throw new yo(e.$cstNode,`Undefined rule type: ${e.$type}`)}function Dp(n,e){const t=e.map(r=>We(r.value));return r=>{const i={};for(let s=0;se(r)||t(r)}else if(Gu(n)){const e=We(n.left),t=We(n.right);return r=>e(r)&&t(r)}else if(Bu(n)){const e=We(n.value);return t=>!e(t)}else if(Wu(n)){const e=n.parameter.ref.name;return t=>t!==void 0&&t[e]===!0}else if(ju(n)){const e=!!n.true;return()=>e}ir()}function jp(n,e){if(e.elements.length===1)return pt(n,e.elements[0]);{const t=[];for(const i of e.elements){const s={ALT:pt(n,i,!0)},a=Xn(i);a&&(s.GATE=We(a)),t.push(s)}const r=n.or++;return i=>n.parser.alternatives(r,t.map(s=>{const a={ALT:()=>s.ALT(i)},o=s.GATE;return o&&(a.GATE=()=>o(i)),a}))}}function Gp(n,e){if(e.elements.length===1)return pt(n,e.elements[0]);const t=[];for(const o of e.elements){const l={ALT:pt(n,o,!0)},c=Xn(o);c&&(l.GATE=We(c)),t.push(l)}const r=n.or++,i=(o,l)=>{const c=l.getRuleStack().join("-");return`uGroup_${o}_${c}`},s=o=>n.parser.alternatives(r,t.map((l,c)=>{const u={ALT:()=>!0},d=n.parser;u.ALT=()=>{if(l.ALT(o),!d.isRecording()){const h=i(r,d);d.unorderedGroups.get(h)||d.unorderedGroups.set(h,[]);const m=d.unorderedGroups.get(h);typeof(m==null?void 0:m[c])>"u"&&(m[c]=!0)}};const f=l.GATE;return f?u.GATE=()=>f(o):u.GATE=()=>{const h=d.unorderedGroups.get(i(r,d));return!(h!=null&&h[c])},u})),a=sc(n,Xn(e),s,"*");return o=>{a(o),n.parser.isRecording()||n.parser.unorderedGroups.delete(i(r,n.parser))}}function Up(n,e){const t=e.elements.map(r=>pt(n,r));return r=>t.forEach(i=>i(r))}function Xn(n){if(bi(n))return n.guardCondition}function ic(n,e,t=e.terminal){if(t)if(ft(t)&&Se(t.rule.ref)){const r=n.subrule++;return i=>n.parser.subrule(r,ac(n,t.rule.ref),e,i)}else if(ft(t)&>(t.rule.ref)){const r=n.consume++,i=ui(n,t.rule.ref.name);return()=>n.parser.consume(r,i,e)}else if(dt(t)){const r=n.consume++,i=ui(n,t.value);return()=>n.parser.consume(r,i,e)}else throw new Error("Could not build cross reference parser");else{if(!e.type.ref)throw new Error("Could not resolve reference to type: "+e.type.$refText);const r=il(e.type.ref),i=r==null?void 0:r.terminal;if(!i)throw new Error("Could not find name assignment for type: "+cr(e.type.ref));return ic(n,e,i)}}function Fp(n,e){const t=n.consume++,r=n.tokens[e.value];if(!r)throw new Error("Could not find token for keyword: "+e.value);return()=>n.parser.consume(t,r,e)}function sc(n,e,t,r){const i=e&&We(e);if(!r)if(i){const s=n.or++;return a=>n.parser.alternatives(s,[{ALT:()=>t(a),GATE:()=>i(a)},{ALT:Os(),GATE:()=>!i(a)}])}else return t;if(r==="*"){const s=n.many++;return a=>n.parser.many(s,{DEF:()=>t(a),GATE:i?()=>i(a):void 0})}else if(r==="+"){const s=n.many++;if(i){const a=n.or++;return o=>n.parser.alternatives(a,[{ALT:()=>n.parser.atLeastOne(s,{DEF:()=>t(o)}),GATE:()=>i(o)},{ALT:Os(),GATE:()=>!i(o)}])}else return a=>n.parser.atLeastOne(s,{DEF:()=>t(a)})}else if(r==="?"){const s=n.optional++;return a=>n.parser.optional(s,{DEF:()=>t(a),GATE:i?()=>i(a):void 0})}else ir()}function ac(n,e){const t=Bp(n,e),r=n.rules.get(t);if(!r)throw new Error(`Rule "${t}" not found."`);return r}function Bp(n,e){if(Se(e))return e.name;if(n.ruleNames.has(e))return n.ruleNames.get(e);{let t=e,r=t.$container,i=e.$type;for(;!Se(r);)(bi(r)||$o(r)||qo(r))&&(i=r.elements.indexOf(t).toString()+":"+i),t=r,r=r.$container;return i=r.name+":"+i,n.ruleNames.set(e,i),i}}function ui(n,e){const t=n.tokens[e];if(!t)throw new Error(`Token "${e}" not found."`);return t}function Hp(n){const e=n.Grammar,t=n.parser.Lexer,r=new wp(n);return rc(e,r,t.definition),r.finalize(),r}function Vp(n){const e=Wp(n);return e.finalize(),e}function Wp(n){const e=n.Grammar,t=n.parser.Lexer,r=new xp(n);return rc(e,r,t.definition)}class oc{buildTokens(e,t){const r=Q(tl(e,!1)),i=this.buildTerminalTokens(r),s=this.buildKeywordTokens(r,i,t);return i.forEach(a=>{const o=a.PATTERN;typeof o=="object"&&o&&"test"in o&&ls(o)?s.unshift(a):s.push(a)}),s}buildTerminalTokens(e){return e.filter(gt).filter(t=>!t.fragment).map(t=>this.buildTerminalToken(t)).toArray()}buildTerminalToken(e){const t=Si(e),r=this.requiresCustomPattern(t)?this.regexPatternFunction(t):t,i={name:e.name,PATTERN:r,LINE_BREAKS:!0};return e.hidden&&(i.GROUP=ls(t)?de.SKIPPED:"hidden"),i}requiresCustomPattern(e){return e.flags.includes("u")?!0:!!(e.source.includes("?<=")||e.source.includes("?(t.lastIndex=i,t.exec(r))}buildKeywordTokens(e,t,r){return e.filter(Se).flatMap(i=>pn(i).filter(dt)).distinct(i=>i.value).toArray().sort((i,s)=>s.value.length-i.value.length).map(i=>this.buildKeywordToken(i,t,!!(r!=null&&r.caseInsensitive)))}buildKeywordToken(e,t,r){return{name:e.value,PATTERN:this.buildKeywordPattern(e,r),LONGER_ALT:this.findLongerAlt(e,t)}}buildKeywordPattern(e,t){return t?new RegExp(yd(e.value)):e.value}findLongerAlt(e,t){return t.reduce((r,i)=>{const s=i==null?void 0:i.PATTERN;return s!=null&&s.source&&Td("^"+s.source+"$",e.value)&&r.push(i),r},[])}}class lc{convert(e,t){let r=t.grammarSource;if(vi(r)&&(r=Ad(r)),ft(r)){const i=r.rule.ref;if(!i)throw new Error("This cst node was not parsed by a rule.");return this.runConverter(i,e,t)}return e}runConverter(e,t,r){var i;switch(e.name.toUpperCase()){case"INT":return Ve.convertInt(t);case"STRING":return Ve.convertString(t);case"ID":return Ve.convertID(t)}switch((i=xd(e))===null||i===void 0?void 0:i.toLowerCase()){case"number":return Ve.convertNumber(t);case"boolean":return Ve.convertBoolean(t);case"bigint":return Ve.convertBigint(t);case"date":return Ve.convertDate(t);default:return t}}}var Ve;(function(n){function e(c){let u="";for(let d=1;duc(e))}se.stringArray=Xp;var Vt={};Object.defineProperty(Vt,"__esModule",{value:!0});Vt.Emitter=Vt.Event=void 0;const Jp=yr;var ja;(function(n){const e={dispose(){}};n.None=function(){return e}})(ja||(Vt.Event=ja={}));class Qp{add(e,t=null,r){this._callbacks||(this._callbacks=[],this._contexts=[]),this._callbacks.push(e),this._contexts.push(t),Array.isArray(r)&&r.push({dispose:()=>this.remove(e,t)})}remove(e,t=null){if(!this._callbacks)return;let r=!1;for(let i=0,s=this._callbacks.length;i{this._callbacks||(this._callbacks=new Qp),this._options&&this._options.onFirstListenerAdd&&this._callbacks.isEmpty()&&this._options.onFirstListenerAdd(this),this._callbacks.add(e,t);const i={dispose:()=>{this._callbacks&&(this._callbacks.remove(e,t),i.dispose=Tr._noop,this._options&&this._options.onLastListenerRemove&&this._callbacks.isEmpty()&&this._options.onLastListenerRemove(this))}};return Array.isArray(r)&&r.push(i),i}),this._event}fire(e){this._callbacks&&this._callbacks.invoke.call(this._callbacks,e)}dispose(){this._callbacks&&(this._callbacks.dispose(),this._callbacks=void 0)}}Vt.Emitter=Tr;Tr._noop=function(){};var X;Object.defineProperty(dn,"__esModule",{value:!0});var fi=dn.CancellationTokenSource=X=dn.CancellationToken=void 0;const Zp=yr,em=se,hi=Vt;var Jn;(function(n){n.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:hi.Event.None}),n.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:hi.Event.None});function e(t){const r=t;return r&&(r===n.None||r===n.Cancelled||em.boolean(r.isCancellationRequested)&&!!r.onCancellationRequested)}n.is=e})(Jn||(X=dn.CancellationToken=Jn={}));const tm=Object.freeze(function(n,e){const t=(0,Zp.default)().timer.setTimeout(n.bind(e),0);return{dispose(){t.dispose()}}});class Ga{constructor(){this._isCancelled=!1}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?tm:(this._emitter||(this._emitter=new hi.Emitter),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=void 0)}}class nm{get token(){return this._token||(this._token=new Ga),this._token}cancel(){this._token?this._token.cancel():this._token=Jn.Cancelled}dispose(){this._token?this._token instanceof Ga&&this._token.dispose():this._token=Jn.None}}fi=dn.CancellationTokenSource=nm;function rm(){return new Promise(n=>{typeof setImmediate>"u"?setTimeout(n,0):setImmediate(n)})}let Ua=0,im=10;const Qn=Symbol("OperationCancelled");function Bi(n){return n===Qn}async function Le(n){if(n===X.None)return;const e=Date.now();if(e-Ua>=im&&(Ua=e,await rm()),n.isCancellationRequested)throw Qn}class Hi{constructor(){this.promise=new Promise((e,t)=>{this.resolve=r=>(e(r),this),this.reject=r=>(t(r),this)})}}class fn{constructor(e,t,r,i){this._uri=e,this._languageId=t,this._version=r,this._content=i,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(e){if(e){const t=this.offsetAt(e.start),r=this.offsetAt(e.end);return this._content.substring(t,r)}return this._content}update(e,t){for(const r of e)if(fn.isIncremental(r)){const i=hc(r.range),s=this.offsetAt(i.start),a=this.offsetAt(i.end);this._content=this._content.substring(0,s)+r.text+this._content.substring(a,this._content.length);const o=Math.max(i.start.line,0),l=Math.max(i.end.line,0);let c=this._lineOffsets;const u=Fa(r.text,!1,s);if(l-o===u.length)for(let f=0,h=u.length;fe?i=a:r=a+1}const s=r-1;return e=this.ensureBeforeEOL(e,t[s]),{line:s,character:e-t[s]}}offsetAt(e){const t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;const r=t[e.line];if(e.character<=0)return r;const i=e.line+1t&&fc(this._content.charCodeAt(e-1));)e--;return e}get lineCount(){return this.getLineOffsets().length}static isIncremental(e){const t=e;return t!=null&&typeof t.text=="string"&&t.range!==void 0&&(t.rangeLength===void 0||typeof t.rangeLength=="number")}static isFull(e){const t=e;return t!=null&&typeof t.text=="string"&&t.range===void 0&&t.rangeLength===void 0}}var pi;(function(n){function e(i,s,a,o){return new fn(i,s,a,o)}n.create=e;function t(i,s,a){if(i instanceof fn)return i.update(s,a),i;throw new Error("TextDocument.update: document must be created by TextDocument.create")}n.update=t;function r(i,s){const a=i.getText(),o=mi(s.map(sm),(u,d)=>{const f=u.range.start.line-d.range.start.line;return f===0?u.range.start.character-d.range.start.character:f});let l=0;const c=[];for(const u of o){const d=i.offsetAt(u.range.start);if(dl&&c.push(a.substring(l,d)),u.newText.length&&c.push(u.newText),l=i.offsetAt(u.range.end)}return c.push(a.substr(l)),c.join("")}n.applyEdits=r})(pi||(pi={}));function mi(n,e){if(n.length<=1)return n;const t=n.length/2|0,r=n.slice(0,t),i=n.slice(t);mi(r,e),mi(i,e);let s=0,a=0,o=0;for(;st.line||e.line===t.line&&e.character>t.character?{start:t,end:e}:n}function sm(n){const e=hc(n.range);return e!==n.range?{newText:n.newText,range:e}:n}var wr={version:"v20.18.3",versions:{node:"20.18.3",acorn:"8.14.0",ada:"2.9.2",ares:"1.34.4",base64:"0.5.2",brotli:"1.1.0",cjs_module_lexer:"1.4.1",cldr:"45.0",icu:"75.1",llhttp:"8.1.2",modules:"115",napi:"9",nghttp2:"1.61.0",nghttp3:"0.7.0",ngtcp2:"1.1.0",openssl:"3.0.15+quic",simdutf:"5.6.4",tz:"2024b",undici:"6.21.1",unicode:"15.1",uv:"1.46.0",uvwasi:"0.0.21",v8:"11.3.244.8-node.25",zlib:"1.3.0.1-motley-82a5fec"},arch:"x64",platform:"linux",release:{name:"node",lts:"Iron",sourceUrl:"https://nodejs.org/download/release/v20.18.3/node-v20.18.3.tar.gz",headersUrl:"https://nodejs.org/download/release/v20.18.3/node-v20.18.3-headers.tar.gz"},moduleLoadList:["Internal Binding builtins","Internal Binding module_wrap","Internal Binding errors","NativeModule internal/assert","Internal Binding util","NativeModule internal/errors","Internal Binding config","Internal Binding timers","Internal Binding async_wrap","Internal Binding task_queue","Internal Binding symbols","NativeModule internal/async_hooks","Internal Binding constants","Internal Binding types","Internal Binding options","NativeModule internal/options","Internal Binding string_decoder","NativeModule internal/util","NativeModule internal/util/types","NativeModule internal/validators","NativeModule internal/linkedlist","NativeModule internal/priority_queue","Internal Binding icu","NativeModule internal/util/inspect","NativeModule internal/util/debuglog","NativeModule internal/timers","NativeModule internal/events/abort_listener","NativeModule events","Internal Binding buffer","NativeModule internal/buffer","NativeModule buffer","Internal Binding messaging","NativeModule internal/worker/js_transferable","NativeModule internal/querystring","NativeModule internal/constants","NativeModule path","NativeModule querystring","Internal Binding url","NativeModule internal/url","NativeModule internal/fs/utils","Internal Binding process_methods","NativeModule internal/process/per_thread","Internal Binding credentials","NativeModule internal/process/promises","NativeModule internal/fixed_queue","NativeModule async_hooks","NativeModule internal/process/task_queues","NativeModule timers","Internal Binding trace_events","Internal Binding contextify","NativeModule internal/vm","NativeModule internal/process/execution","NativeModule internal/process/warning","NativeModule internal/source_map/source_map_cache","Internal Binding fs","Internal Binding blob","Internal Binding encoding_binding","NativeModule internal/encoding","NativeModule internal/streams/utils","NativeModule util","NativeModule internal/webstreams/util","NativeModule internal/webstreams/queuingstrategies","NativeModule internal/blob","Internal Binding permission","NativeModule internal/process/permission","NativeModule fs","NativeModule internal/modules/helpers","NativeModule internal/console/constructor","NativeModule internal/console/global","NativeModule internal/util/inspector","Internal Binding inspector","NativeModule internal/webidl","Internal Binding performance","NativeModule internal/perf/utils","NativeModule internal/event_target","Internal Binding wasm_web_api","Internal Binding mksnapshot","NativeModule internal/v8/startup_snapshot","NativeModule internal/process/signal","NativeModule url","NativeModule internal/modules/package_json_reader","NativeModule internal/modules/cjs/loader","NativeModule internal/process/pre_execution","NativeModule internal/modules/esm/utils","NativeModule internal/inspector_async_hook","Internal Binding worker","NativeModule internal/modules/run_main","NativeModule internal/net","NativeModule internal/dns/utils","NativeModule internal/modules/esm/assert","NativeModule internal/modules/esm/loader","NativeModule internal/modules/esm/module_map","NativeModule internal/modules/esm/translators","NativeModule internal/modules/esm/package_config","NativeModule internal/modules/esm/formats","NativeModule internal/modules/esm/get_format","NativeModule internal/modules/esm/resolve","NativeModule internal/modules/esm/module_job","NativeModule internal/modules/esm/load","Internal Binding fs_dir","NativeModule internal/fs/dir","NativeModule string_decoder","Internal Binding fs_event_wrap","Internal Binding uv","NativeModule internal/fs/watchers","NativeModule internal/fs/recursive_watch","NativeModule internal/readline/utils","NativeModule internal/readline/callbacks","NativeModule internal/readline/interface","NativeModule internal/fs/promises","NativeModule internal/perf/performance_entry","NativeModule internal/perf/observe","NativeModule internal/perf/resource_timing","NativeModule internal/perf/nodetiming","NativeModule internal/perf/usertiming","NativeModule internal/perf/event_loop_utilization","NativeModule internal/histogram","NativeModule internal/perf/timerify","NativeModule internal/perf/performance","NativeModule internal/perf/event_loop_delay","NativeModule perf_hooks","NativeModule internal/modules/esm/initialize_import_meta","NativeModule internal/streams/destroy","NativeModule internal/abort_controller","NativeModule internal/streams/end-of-stream","NativeModule internal/streams/legacy","NativeModule internal/streams/add-abort-signal","NativeModule internal/streams/state","NativeModule internal/streams/from","NativeModule internal/streams/readable","NativeModule internal/streams/writable","NativeModule internal/streams/duplex","NativeModule internal/streams/pipeline","NativeModule internal/streams/compose","NativeModule internal/streams/operators","NativeModule stream/promises","NativeModule internal/streams/transform","NativeModule internal/streams/passthrough","NativeModule internal/streams/duplexpair","NativeModule stream","NativeModule internal/fs/streams","NativeModule fs/promises","NativeModule internal/util/parse_args/utils","NativeModule internal/util/parse_args/parse_args","NativeModule internal/mime","NativeModule internal/source_map/source_map","NativeModule module","Internal Binding crypto","NativeModule internal/crypto/random","NativeModule internal/crypto/hashnames","NativeModule internal/crypto/util","NativeModule internal/crypto/pbkdf2","NativeModule internal/crypto/scrypt","NativeModule internal/crypto/keys","NativeModule internal/crypto/hkdf","NativeModule internal/crypto/keygen","NativeModule internal/crypto/diffiehellman","NativeModule internal/streams/lazy_transform","NativeModule internal/crypto/cipher","NativeModule internal/crypto/sig","NativeModule internal/crypto/hash","NativeModule internal/crypto/x509","NativeModule internal/crypto/certificate","NativeModule crypto","NativeModule internal/crypto/webcrypto","Internal Binding stream_wrap","Internal Binding tcp_wrap","Internal Binding pipe_wrap","NativeModule internal/stream_base_commons","NativeModule diagnostics_channel","NativeModule net","Internal Binding tty_wrap","NativeModule internal/tty","NativeModule tty","NativeModule internal/deps/cjs-module-lexer/dist/lexer","Internal Binding udp_wrap","NativeModule internal/dgram","NativeModule dgram","Internal Binding process_wrap","NativeModule internal/socket_list","Internal Binding spawn_sync","NativeModule internal/child_process","NativeModule child_process","NativeModule _http_agent","Internal Binding http_parser","NativeModule internal/freelist","NativeModule _http_incoming","NativeModule _http_common","NativeModule internal/http","NativeModule _http_outgoing","NativeModule _http_client","NativeModule _http_server","NativeModule http","Internal Binding cares_wrap","NativeModule internal/tls/secure-context","NativeModule _tls_common","Internal Binding js_stream","NativeModule internal/js_stream_socket","Internal Binding tls_wrap","NativeModule _tls_wrap","NativeModule internal/tls/secure-pair","NativeModule tls","NativeModule https","Internal Binding block_list","NativeModule internal/socketaddress","NativeModule internal/blocklist","Internal Binding os","NativeModule os","NativeModule internal/dns/callback_resolver","NativeModule dns","NativeModule internal/dns/promises","NativeModule internal/util/colors","NativeModule internal/assert/assertion_error","NativeModule internal/assert/utils","NativeModule internal/assert/calltracker","NativeModule assert","Internal Binding serdes","Internal Binding profiler","Internal Binding heap_utils","Internal Binding internal_only_v8","NativeModule internal/heap_utils","NativeModule internal/promise_hooks","Internal Binding v8","NativeModule v8","NativeModule internal/worker/io","NativeModule internal/error_serdes","NativeModule internal/worker","NativeModule worker_threads","NativeModule internal/file","NativeModule internal/readline/emitKeypressEvents","NativeModule internal/readline/promises","NativeModule readline/promises","NativeModule readline","Internal Binding zlib","NativeModule zlib","NativeModule process","Internal Binding report","NativeModule internal/process/report","NativeModule constants","NativeModule internal/crypto/webidl"],_events:{newListener:[null,null],removeListener:[null,null]},_eventsCount:3,domain:null,_exiting:!1,config:{target_defaults:{cflags:[],default_configuration:"Release",defines:["NODE_OPENSSL_CONF_NAME=nodejs_conf","NODE_OPENSSL_HAS_QUIC","ICU_NO_USER_DATA_OVERRIDE"],include_dirs:[],libraries:[]},variables:{asan:0,clang:0,coverage:!1,dcheck_always_on:0,debug_nghttp2:!1,debug_node:!1,enable_lto:!1,enable_pgo_generate:!1,enable_pgo_use:!1,error_on_warn:!1,force_dynamic_crt:0,gas_version:"2.35",host_arch:"x64",icu_data_in:"../../deps/icu-tmp/icudt75l.dat",icu_endianness:"l",icu_gyp_path:"tools/icu/icu-generic.gyp",icu_path:"deps/icu-small",icu_small:!1,icu_ver_major:"75",is_debug:0,libdir:"lib",llvm_version:"0.0",napi_build_version:"9",node_builtin_shareable_builtins:["deps/cjs-module-lexer/lexer.js","deps/cjs-module-lexer/dist/lexer.js","deps/undici/undici.js"],node_byteorder:"little",node_debug_lib:!1,node_enable_d8:!1,node_enable_v8_vtunejit:!1,node_fipsinstall:!1,node_install_corepack:!0,node_install_npm:!0,node_library_files:["lib/_http_agent.js","lib/_http_client.js","lib/_http_common.js","lib/_http_incoming.js","lib/_http_outgoing.js","lib/_http_server.js","lib/_stream_duplex.js","lib/_stream_passthrough.js","lib/_stream_readable.js","lib/_stream_transform.js","lib/_stream_wrap.js","lib/_stream_writable.js","lib/_tls_common.js","lib/_tls_wrap.js","lib/assert.js","lib/assert/strict.js","lib/async_hooks.js","lib/buffer.js","lib/child_process.js","lib/cluster.js","lib/console.js","lib/constants.js","lib/crypto.js","lib/dgram.js","lib/diagnostics_channel.js","lib/dns.js","lib/dns/promises.js","lib/domain.js","lib/events.js","lib/fs.js","lib/fs/promises.js","lib/http.js","lib/http2.js","lib/https.js","lib/inspector.js","lib/inspector/promises.js","lib/internal/abort_controller.js","lib/internal/assert.js","lib/internal/assert/assertion_error.js","lib/internal/assert/calltracker.js","lib/internal/assert/utils.js","lib/internal/async_hooks.js","lib/internal/blob.js","lib/internal/blocklist.js","lib/internal/bootstrap/node.js","lib/internal/bootstrap/realm.js","lib/internal/bootstrap/shadow_realm.js","lib/internal/bootstrap/switches/does_not_own_process_state.js","lib/internal/bootstrap/switches/does_own_process_state.js","lib/internal/bootstrap/switches/is_main_thread.js","lib/internal/bootstrap/switches/is_not_main_thread.js","lib/internal/bootstrap/web/exposed-wildcard.js","lib/internal/bootstrap/web/exposed-window-or-worker.js","lib/internal/buffer.js","lib/internal/child_process.js","lib/internal/child_process/serialization.js","lib/internal/cli_table.js","lib/internal/cluster/child.js","lib/internal/cluster/primary.js","lib/internal/cluster/round_robin_handle.js","lib/internal/cluster/shared_handle.js","lib/internal/cluster/utils.js","lib/internal/cluster/worker.js","lib/internal/console/constructor.js","lib/internal/console/global.js","lib/internal/constants.js","lib/internal/crypto/aes.js","lib/internal/crypto/certificate.js","lib/internal/crypto/cfrg.js","lib/internal/crypto/cipher.js","lib/internal/crypto/diffiehellman.js","lib/internal/crypto/ec.js","lib/internal/crypto/hash.js","lib/internal/crypto/hashnames.js","lib/internal/crypto/hkdf.js","lib/internal/crypto/keygen.js","lib/internal/crypto/keys.js","lib/internal/crypto/mac.js","lib/internal/crypto/pbkdf2.js","lib/internal/crypto/random.js","lib/internal/crypto/rsa.js","lib/internal/crypto/scrypt.js","lib/internal/crypto/sig.js","lib/internal/crypto/util.js","lib/internal/crypto/webcrypto.js","lib/internal/crypto/webidl.js","lib/internal/crypto/x509.js","lib/internal/debugger/inspect.js","lib/internal/debugger/inspect_client.js","lib/internal/debugger/inspect_repl.js","lib/internal/dgram.js","lib/internal/dns/callback_resolver.js","lib/internal/dns/promises.js","lib/internal/dns/utils.js","lib/internal/encoding.js","lib/internal/error_serdes.js","lib/internal/errors.js","lib/internal/event_target.js","lib/internal/events/abort_listener.js","lib/internal/events/symbols.js","lib/internal/file.js","lib/internal/fixed_queue.js","lib/internal/freelist.js","lib/internal/freeze_intrinsics.js","lib/internal/fs/cp/cp-sync.js","lib/internal/fs/cp/cp.js","lib/internal/fs/dir.js","lib/internal/fs/promises.js","lib/internal/fs/read/context.js","lib/internal/fs/recursive_watch.js","lib/internal/fs/rimraf.js","lib/internal/fs/streams.js","lib/internal/fs/sync_write_stream.js","lib/internal/fs/utils.js","lib/internal/fs/watchers.js","lib/internal/heap_utils.js","lib/internal/histogram.js","lib/internal/http.js","lib/internal/http2/compat.js","lib/internal/http2/core.js","lib/internal/http2/util.js","lib/internal/inspector_async_hook.js","lib/internal/inspector_network_tracking.js","lib/internal/js_stream_socket.js","lib/internal/legacy/processbinding.js","lib/internal/linkedlist.js","lib/internal/main/check_syntax.js","lib/internal/main/embedding.js","lib/internal/main/eval_stdin.js","lib/internal/main/eval_string.js","lib/internal/main/inspect.js","lib/internal/main/mksnapshot.js","lib/internal/main/print_help.js","lib/internal/main/prof_process.js","lib/internal/main/repl.js","lib/internal/main/run_main_module.js","lib/internal/main/test_runner.js","lib/internal/main/watch_mode.js","lib/internal/main/worker_thread.js","lib/internal/mime.js","lib/internal/modules/cjs/loader.js","lib/internal/modules/esm/assert.js","lib/internal/modules/esm/create_dynamic_module.js","lib/internal/modules/esm/fetch_module.js","lib/internal/modules/esm/formats.js","lib/internal/modules/esm/get_format.js","lib/internal/modules/esm/hooks.js","lib/internal/modules/esm/initialize_import_meta.js","lib/internal/modules/esm/load.js","lib/internal/modules/esm/loader.js","lib/internal/modules/esm/module_job.js","lib/internal/modules/esm/module_map.js","lib/internal/modules/esm/package_config.js","lib/internal/modules/esm/resolve.js","lib/internal/modules/esm/shared_constants.js","lib/internal/modules/esm/translators.js","lib/internal/modules/esm/utils.js","lib/internal/modules/esm/worker.js","lib/internal/modules/helpers.js","lib/internal/modules/package_json_reader.js","lib/internal/modules/run_main.js","lib/internal/navigator.js","lib/internal/net.js","lib/internal/options.js","lib/internal/per_context/domexception.js","lib/internal/per_context/messageport.js","lib/internal/per_context/primordials.js","lib/internal/perf/event_loop_delay.js","lib/internal/perf/event_loop_utilization.js","lib/internal/perf/nodetiming.js","lib/internal/perf/observe.js","lib/internal/perf/performance.js","lib/internal/perf/performance_entry.js","lib/internal/perf/resource_timing.js","lib/internal/perf/timerify.js","lib/internal/perf/usertiming.js","lib/internal/perf/utils.js","lib/internal/policy/manifest.js","lib/internal/policy/sri.js","lib/internal/priority_queue.js","lib/internal/process/execution.js","lib/internal/process/per_thread.js","lib/internal/process/permission.js","lib/internal/process/policy.js","lib/internal/process/pre_execution.js","lib/internal/process/promises.js","lib/internal/process/report.js","lib/internal/process/signal.js","lib/internal/process/task_queues.js","lib/internal/process/warning.js","lib/internal/process/worker_thread_only.js","lib/internal/promise_hooks.js","lib/internal/querystring.js","lib/internal/readline/callbacks.js","lib/internal/readline/emitKeypressEvents.js","lib/internal/readline/interface.js","lib/internal/readline/promises.js","lib/internal/readline/utils.js","lib/internal/repl.js","lib/internal/repl/await.js","lib/internal/repl/history.js","lib/internal/repl/utils.js","lib/internal/socket_list.js","lib/internal/socketaddress.js","lib/internal/source_map/prepare_stack_trace.js","lib/internal/source_map/source_map.js","lib/internal/source_map/source_map_cache.js","lib/internal/stream_base_commons.js","lib/internal/streams/add-abort-signal.js","lib/internal/streams/compose.js","lib/internal/streams/destroy.js","lib/internal/streams/duplex.js","lib/internal/streams/duplexify.js","lib/internal/streams/duplexpair.js","lib/internal/streams/end-of-stream.js","lib/internal/streams/from.js","lib/internal/streams/lazy_transform.js","lib/internal/streams/legacy.js","lib/internal/streams/operators.js","lib/internal/streams/passthrough.js","lib/internal/streams/pipeline.js","lib/internal/streams/readable.js","lib/internal/streams/state.js","lib/internal/streams/transform.js","lib/internal/streams/utils.js","lib/internal/streams/writable.js","lib/internal/test/binding.js","lib/internal/test/transfer.js","lib/internal/test_runner/coverage.js","lib/internal/test_runner/harness.js","lib/internal/test_runner/mock/loader.js","lib/internal/test_runner/mock/mock.js","lib/internal/test_runner/mock/mock_timers.js","lib/internal/test_runner/reporter/dot.js","lib/internal/test_runner/reporter/junit.js","lib/internal/test_runner/reporter/lcov.js","lib/internal/test_runner/reporter/spec.js","lib/internal/test_runner/reporter/tap.js","lib/internal/test_runner/reporter/utils.js","lib/internal/test_runner/reporter/v8-serializer.js","lib/internal/test_runner/runner.js","lib/internal/test_runner/test.js","lib/internal/test_runner/tests_stream.js","lib/internal/test_runner/utils.js","lib/internal/timers.js","lib/internal/tls/secure-context.js","lib/internal/tls/secure-pair.js","lib/internal/trace_events_async_hooks.js","lib/internal/tty.js","lib/internal/url.js","lib/internal/util.js","lib/internal/util/colors.js","lib/internal/util/comparisons.js","lib/internal/util/debuglog.js","lib/internal/util/embedding.js","lib/internal/util/inspect.js","lib/internal/util/inspector.js","lib/internal/util/iterable_weak_map.js","lib/internal/util/parse_args/parse_args.js","lib/internal/util/parse_args/utils.js","lib/internal/util/types.js","lib/internal/v8/startup_snapshot.js","lib/internal/v8_prof_polyfill.js","lib/internal/v8_prof_processor.js","lib/internal/validators.js","lib/internal/vm.js","lib/internal/vm/module.js","lib/internal/wasm_web_api.js","lib/internal/watch_mode/files_watcher.js","lib/internal/watchdog.js","lib/internal/webidl.js","lib/internal/webstreams/adapters.js","lib/internal/webstreams/compression.js","lib/internal/webstreams/encoding.js","lib/internal/webstreams/queuingstrategies.js","lib/internal/webstreams/readablestream.js","lib/internal/webstreams/transfer.js","lib/internal/webstreams/transformstream.js","lib/internal/webstreams/util.js","lib/internal/webstreams/writablestream.js","lib/internal/worker.js","lib/internal/worker/io.js","lib/internal/worker/js_transferable.js","lib/module.js","lib/net.js","lib/os.js","lib/path.js","lib/path/posix.js","lib/path/win32.js","lib/perf_hooks.js","lib/process.js","lib/punycode.js","lib/querystring.js","lib/readline.js","lib/readline/promises.js","lib/repl.js","lib/sea.js","lib/stream.js","lib/stream/consumers.js","lib/stream/promises.js","lib/stream/web.js","lib/string_decoder.js","lib/sys.js","lib/test.js","lib/test/reporters.js","lib/timers.js","lib/timers/promises.js","lib/tls.js","lib/trace_events.js","lib/tty.js","lib/url.js","lib/util.js","lib/util/types.js","lib/v8.js","lib/vm.js","lib/wasi.js","lib/worker_threads.js","lib/zlib.js"],node_module_version:115,node_no_browser_globals:!1,node_prefix:"/",node_release_urlbase:"https://nodejs.org/download/release/",node_section_ordering_info:"",node_shared:!1,node_shared_ada:!1,node_shared_brotli:!1,node_shared_cares:!1,node_shared_http_parser:!1,node_shared_libuv:!1,node_shared_nghttp2:!1,node_shared_nghttp3:!1,node_shared_ngtcp2:!1,node_shared_openssl:!1,node_shared_simdjson:!1,node_shared_simdutf:!1,node_shared_uvwasi:!1,node_shared_zlib:!1,node_tag:"",node_target_type:"executable",node_use_bundled_v8:!0,node_use_node_code_cache:!0,node_use_node_snapshot:!0,node_use_openssl:!0,node_use_v8_platform:!0,node_with_ltcg:!1,node_without_node_options:!1,node_write_snapshot_as_array_literals:!1,openssl_is_fips:!1,openssl_quic:!0,ossfuzz:!1,shlib_suffix:"so.115",single_executable_application:!0,target_arch:"x64",ubsan:0,use_prefix_to_find_headers:!1,v8_enable_31bit_smis_on_64bit_arch:0,v8_enable_extensible_ro_snapshot:0,v8_enable_gdbjit:0,v8_enable_hugepage:0,v8_enable_i18n_support:1,v8_enable_inspector:1,v8_enable_javascript_promise_hooks:1,v8_enable_lite_mode:0,v8_enable_maglev:0,v8_enable_object_print:1,v8_enable_pointer_compression:0,v8_enable_sandbox:0,v8_enable_shared_ro_heap:1,v8_enable_short_builtin_calls:1,v8_enable_v8_checks:0,v8_enable_webassembly:1,v8_no_strict_aliasing:1,v8_optimized_debug:1,v8_promise_internal_field_count:1,v8_random_seed:0,v8_trace_maps:0,v8_use_siphash:1,want_separate_host_toolset:0}},allowedNodeEnvironmentFlags:{},features:{inspector:!0,debug:!1,uv:!0,ipv6:!0,tls_alpn:!0,tls_sni:!0,tls_ocsp:!0,tls:!0,cached_builtins:!0},sourceMapsEnabled:!1,stdout:{connecting:!1,_hadError:!1,_parent:null,_host:null,_closeAfterHandlingError:!1,_events:{},_readableState:{highWaterMark:16384,buffer:[],bufferIndex:0,length:0,pipes:[],awaitDrainWriters:null,readable:!1},_writableState:{highWaterMark:16384,length:0,corked:0,writelen:0,bufferedIndex:0,pendingcb:0},allowHalfOpen:!1,_eventsCount:1,_sockname:null,_pendingData:null,_pendingEncoding:"",server:null,_server:null,_type:"pipe",fd:1,_isStdio:!0},stdin:{connecting:!1,_hadError:!1,_parent:null,_host:null,_closeAfterHandlingError:!1,_events:{},_readableState:{highWaterMark:16384,buffer:[],bufferIndex:0,length:0,pipes:[],awaitDrainWriters:null},_writableState:{highWaterMark:16384,length:0,corked:0,writelen:0,bufferedIndex:0,pendingcb:0},allowHalfOpen:!1,_eventsCount:2,_sockname:null,_pendingData:null,_pendingEncoding:"",server:null,_server:null,fd:0},stderr:{connecting:!1,_hadError:!1,_parent:null,_host:null,_closeAfterHandlingError:!1,_events:{},_readableState:{highWaterMark:16384,buffer:[],bufferIndex:0,length:0,pipes:[],awaitDrainWriters:null,readable:!1},_writableState:{highWaterMark:16384,length:0,corked:0,writelen:0,bufferedIndex:0,pendingcb:0},allowHalfOpen:!1,_eventsCount:1,_sockname:null,_pendingData:null,_pendingEncoding:"",server:null,_server:null,_type:"pipe",fd:2,_isStdio:!0},env:{GITHUB_STATE:"/home/runner/work/_temp/_runner_file_commands/save_state_18a51caf-e5c9-4051-9c6d-047b16202017",STATS_TRP:"true",DEPLOYMENT_BASEPATH:"/opt/runner",DOTNET_NOLOGO:"1",USER:"runner",npm_config_user_agent:"npm/10.8.2 node/v20.18.3 linux x64 workspaces/false ci/github-actions",CI:"true",RUNNER_ENVIRONMENT:"github-hosted",GITHUB_ENV:"/home/runner/work/_temp/_runner_file_commands/set_env_18a51caf-e5c9-4051-9c6d-047b16202017",PIPX_HOME:"/opt/pipx",npm_node_execpath:"/opt/hostedtoolcache/node/20.18.3/x64/bin/node",JAVA_HOME_8_X64:"/usr/lib/jvm/temurin-8-jdk-amd64",SHLVL:"1",npm_config_noproxy:"",HOME:"/home/runner",RUNNER_TEMP:"/home/runner/work/_temp",GITHUB_EVENT_PATH:"/home/runner/work/_temp/_github_workflow/event.json",npm_package_json:"/home/runner/work/md/md/package.json",JAVA_HOME_11_X64:"/usr/lib/jvm/temurin-11-jdk-amd64",PIPX_BIN_DIR:"/opt/pipx_bin",GITHUB_REPOSITORY_OWNER:"doocs",GRADLE_HOME:"/usr/share/gradle-8.12.1",ANDROID_NDK_LATEST_HOME:"/usr/local/lib/android/sdk/ndk/28.0.13004108",JAVA_HOME_21_X64:"/usr/lib/jvm/temurin-21-jdk-amd64",STATS_RDCL:"true",GITHUB_RETENTION_DAYS:"90",GITHUB_REPOSITORY_OWNER_ID:"43716716",POWERSHELL_DISTRIBUTION_CHANNEL:"GitHub-Actions-ubuntu24",AZURE_EXTENSION_DIR:"/opt/az/azcliextensions",GITHUB_HEAD_REF:"",npm_config_userconfig:"/home/runner/.npmrc",npm_config_local_prefix:"/home/runner/work/md/md",SYSTEMD_EXEC_PID:"830",GITHUB_GRAPHQL_URL:"https://api.github.com/graphql",COLOR:"0",NVM_DIR:"/home/runner/.nvm",DOTNET_SKIP_FIRST_TIME_EXPERIENCE:"1",GOROOT_1_21_X64:"/opt/hostedtoolcache/go/1.21.13/x64",JAVA_HOME_17_X64:"/usr/lib/jvm/temurin-17-jdk-amd64",ImageVersion:"20250223.1.0",RUNNER_OS:"Linux",GITHUB_API_URL:"https://api.github.com",GOROOT_1_22_X64:"/opt/hostedtoolcache/go/1.22.12/x64",SWIFT_PATH:"/usr/share/swift/usr/bin",RUNNER_USER:"runner",STATS_V3PS:"true",CHROMEWEBDRIVER:"/usr/local/share/chromedriver-linux64",GOROOT_1_23_X64:"/opt/hostedtoolcache/go/1.23.6/x64",JOURNAL_STREAM:"8:7475",GITHUB_WORKFLOW:"Build and Deploy",_:"/opt/hostedtoolcache/node/20.18.3/x64/bin/npm",npm_config_prefix:"/opt/hostedtoolcache/node/20.18.3/x64",npm_config_npm_version:"10.8.2",MEMORY_PRESSURE_WATCH:"/sys/fs/cgroup/system.slice/runner-provisioner.service/memory.pressure",ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE:"/opt/actionarchivecache",STATS_D:"true",GITHUB_RUN_ID:"13615010219",STATS_VMFE:"true",npm_config_cache:"/home/runner/.npm",GITHUB_REF_TYPE:"branch",BOOTSTRAP_HASKELL_NONINTERACTIVE:"1",GITHUB_WORKFLOW_SHA:"757697bf0a09df0bac18ef9292efbd16190f9623",GITHUB_BASE_REF:"",ImageOS:"ubuntu24",GITHUB_WORKFLOW_REF:"doocs/md/.github/workflows/build.yml@refs/heads/main",PERFLOG_LOCATION_SETTING:"RUNNER_PERFLOG",GITHUB_ACTION_REPOSITORY:"",npm_config_node_gyp:"/opt/hostedtoolcache/node/20.18.3/x64/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",PATH:"/home/runner/work/md/md/node_modules/.bin:/home/runner/work/md/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/20.18.3/x64/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/home/runner/work/md/md/node_modules/.bin:/home/runner/work/md/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/20.18.3/x64/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/opt/hostedtoolcache/node/20.18.3/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin",ANT_HOME:"/usr/share/ant",DOTNET_MULTILEVEL_LOOKUP:"0",RUNNER_TRACKING_ID:"github_1fb27123-8112-41d5-8496-e07ab36dd844",INVOCATION_ID:"e834f6d4e33e4a03b891bf70cc20a8b3",RUNNER_TOOL_CACHE:"/opt/hostedtoolcache",NODE:"/opt/hostedtoolcache/node/20.18.3/x64/bin/node",npm_package_name:"md",GITHUB_ACTION:"__run_2",GITHUB_RUN_NUMBER:"501",GITHUB_TRIGGERING_ACTOR:"yanglbme",RUNNER_ARCH:"X64",XDG_RUNTIME_DIR:"/run/user/1001",AGENT_TOOLSDIRECTORY:"/opt/hostedtoolcache",LANG:"C.UTF-8",VCPKG_INSTALLATION_ROOT:"/usr/local/share/vcpkg",CONDA:"/usr/share/miniconda",RUNNER_NAME:"GitHub Actions 4",XDG_CONFIG_HOME:"/home/runner/.config",STATS_VMD:"true",GITHUB_REF_NAME:"main",GITHUB_REPOSITORY:"doocs/md",STATS_D_D:"true",npm_lifecycle_script:"vite build",STATS_UE:"true",ANDROID_NDK_ROOT:"/usr/local/lib/android/sdk/ndk/27.2.12479018",GITHUB_ACTION_REF:"",DEBIAN_FRONTEND:"noninteractive",GITHUB_REPOSITORY_ID:"218952803",GITHUB_ACTIONS:"true",STATS_PIP:"false",npm_package_version:"1.6.0",npm_lifecycle_event:"build:only",GITHUB_REF_PROTECTED:"true",GITHUB_WORKSPACE:"/home/runner/work/md/md",ACCEPT_EULA:"Y",GITHUB_JOB:"build-and-deploy",RUNNER_PERFLOG:"/home/runner/perflog",GITHUB_SHA:"757697bf0a09df0bac18ef9292efbd16190f9623",GITHUB_RUN_ATTEMPT:"1",STATS_D_TC:"true",GITHUB_REF:"refs/heads/main",GITHUB_ACTOR:"yanglbme",ANDROID_SDK_ROOT:"/usr/local/lib/android/sdk",npm_config_globalconfig:"/opt/hostedtoolcache/node/20.18.3/x64/etc/npmrc",npm_config_init_module:"/home/runner/.npm-init.js",GITHUB_PATH:"/home/runner/work/_temp/_runner_file_commands/add_path_18a51caf-e5c9-4051-9c6d-047b16202017",JAVA_HOME:"/usr/lib/jvm/temurin-17-jdk-amd64",PWD:"/home/runner/work/md/md",GITHUB_ACTOR_ID:"21008209",RUNNER_WORKSPACE:"/home/runner/work/md",npm_execpath:"/opt/hostedtoolcache/node/20.18.3/x64/lib/node_modules/npm/bin/npm-cli.js",HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS:"3650",GITHUB_EVENT_NAME:"push",HOMEBREW_NO_AUTO_UPDATE:"1",ANDROID_HOME:"/usr/local/lib/android/sdk",GITHUB_SERVER_URL:"https://github.com",GECKOWEBDRIVER:"/usr/local/share/gecko_driver",GHCUP_INSTALL_BASE_PREFIX:"/usr/local",GITHUB_OUTPUT:"/home/runner/work/_temp/_runner_file_commands/set_output_18a51caf-e5c9-4051-9c6d-047b16202017",npm_config_global_prefix:"/opt/hostedtoolcache/node/20.18.3/x64",EDGEWEBDRIVER:"/usr/local/share/edge_driver",STATS_EXT:"true",npm_command:"run-script",ANDROID_NDK:"/usr/local/lib/android/sdk/ndk/27.2.12479018",SGX_AESM_ADDR:"1",CHROME_BIN:"/usr/bin/google-chrome",SELENIUM_JAR_PATH:"/usr/share/java/selenium-server.jar",MEMORY_PRESSURE_WRITE:"c29tZSAyMDAwMDAgMjAwMDAwMAA=",STATS_EXTP:"https://provjobdprod.z13.web.core.windows.net/settings/provjobdsettings-latest/provjobd.data",ANDROID_NDK_HOME:"/usr/local/lib/android/sdk/ndk/27.2.12479018",GITHUB_STEP_SUMMARY:"/home/runner/work/_temp/_runner_file_commands/step_summary_18a51caf-e5c9-4051-9c6d-047b16202017",INIT_CWD:"/home/runner/work/md/md",EDITOR:"vi",NODE_ENV:"production",LAUNCH_EDITOR:"code"},title:"node",argv:["/opt/hostedtoolcache/node/20.18.3/x64/bin/node","/home/runner/work/md/md/node_modules/.bin/vite","build"],execArgv:[],pid:2166,ppid:2165,execPath:"/opt/hostedtoolcache/node/20.18.3/x64/bin/node",debugPort:9229,argv0:"node",_preload_modules:[],report:{directory:"",filename:"",compact:!1,excludeNetwork:!1,signal:"SIGUSR2",reportOnFatalError:!1,reportOnSignal:!1,reportOnUncaughtException:!1}},pc;(()=>{var n={470:i=>{function s(l){if(typeof l!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(l))}function a(l,c){for(var u,d="",f=0,h=-1,m=0,g=0;g<=l.length;++g){if(g2){var E=d.lastIndexOf("/");if(E!==d.length-1){E===-1?(d="",f=0):f=(d=d.slice(0,E)).length-1-d.lastIndexOf("/"),h=g,m=0;continue}}else if(d.length===2||d.length===1){d="",f=0,h=g,m=0;continue}}c&&(d.length>0?d+="/..":d="..",f=2)}else d.length>0?d+="/"+l.slice(h+1,g):d=l.slice(h+1,g),f=g-h-1;h=g,m=0}else u===46&&m!==-1?++m:m=-1}return d}var o={resolve:function(){for(var l,c="",u=!1,d=arguments.length-1;d>=-1&&!u;d--){var f;d>=0?f=arguments[d]:(l===void 0&&(l=wr.cwd()),f=l),s(f),f.length!==0&&(c=f+"/"+c,u=f.charCodeAt(0)===47)}return c=a(c,!u),u?c.length>0?"/"+c:"/":c.length>0?c:"."},normalize:function(l){if(s(l),l.length===0)return".";var c=l.charCodeAt(0)===47,u=l.charCodeAt(l.length-1)===47;return(l=a(l,!c)).length!==0||c||(l="."),l.length>0&&u&&(l+="/"),c?"/"+l:l},isAbsolute:function(l){return s(l),l.length>0&&l.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var l,c=0;c0&&(l===void 0?l=u:l+="/"+u)}return l===void 0?".":o.normalize(l)},relative:function(l,c){if(s(l),s(c),l===c||(l=o.resolve(l))===(c=o.resolve(c)))return"";for(var u=1;ug){if(c.charCodeAt(h+y)===47)return c.slice(h+y+1);if(y===0)return c.slice(h+y)}else f>g&&(l.charCodeAt(u+y)===47?E=y:y===0&&(E=0));break}var R=l.charCodeAt(u+y);if(R!==c.charCodeAt(h+y))break;R===47&&(E=y)}var _="";for(y=u+E+1;y<=d;++y)y!==d&&l.charCodeAt(y)!==47||(_.length===0?_+="..":_+="/..");return _.length>0?_+c.slice(h+E):(h+=E,c.charCodeAt(h)===47&&++h,c.slice(h))},_makeLong:function(l){return l},dirname:function(l){if(s(l),l.length===0)return".";for(var c=l.charCodeAt(0),u=c===47,d=-1,f=!0,h=l.length-1;h>=1;--h)if((c=l.charCodeAt(h))===47){if(!f){d=h;break}}else f=!1;return d===-1?u?"/":".":u&&d===1?"//":l.slice(0,d)},basename:function(l,c){if(c!==void 0&&typeof c!="string")throw new TypeError('"ext" argument must be a string');s(l);var u,d=0,f=-1,h=!0;if(c!==void 0&&c.length>0&&c.length<=l.length){if(c.length===l.length&&c===l)return"";var m=c.length-1,g=-1;for(u=l.length-1;u>=0;--u){var E=l.charCodeAt(u);if(E===47){if(!h){d=u+1;break}}else g===-1&&(h=!1,g=u+1),m>=0&&(E===c.charCodeAt(m)?--m==-1&&(f=u):(m=-1,f=g))}return d===f?f=g:f===-1&&(f=l.length),l.slice(d,f)}for(u=l.length-1;u>=0;--u)if(l.charCodeAt(u)===47){if(!h){d=u+1;break}}else f===-1&&(h=!1,f=u+1);return f===-1?"":l.slice(d,f)},extname:function(l){s(l);for(var c=-1,u=0,d=-1,f=!0,h=0,m=l.length-1;m>=0;--m){var g=l.charCodeAt(m);if(g!==47)d===-1&&(f=!1,d=m+1),g===46?c===-1?c=m:h!==1&&(h=1):c!==-1&&(h=-1);else if(!f){u=m+1;break}}return c===-1||d===-1||h===0||h===1&&c===d-1&&c===u+1?"":l.slice(c,d)},format:function(l){if(l===null||typeof l!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof l);return function(c,u){var d=u.dir||u.root,f=u.base||(u.name||"")+(u.ext||"");return d?d===u.root?d+f:d+"/"+f:f}(0,l)},parse:function(l){s(l);var c={root:"",dir:"",base:"",ext:"",name:""};if(l.length===0)return c;var u,d=l.charCodeAt(0),f=d===47;f?(c.root="/",u=1):u=0;for(var h=-1,m=0,g=-1,E=!0,y=l.length-1,R=0;y>=u;--y)if((d=l.charCodeAt(y))!==47)g===-1&&(E=!1,g=y+1),d===46?h===-1?h=y:R!==1&&(R=1):h!==-1&&(R=-1);else if(!E){m=y+1;break}return h===-1||g===-1||R===0||R===1&&h===g-1&&h===m+1?g!==-1&&(c.base=c.name=m===0&&f?l.slice(1,g):l.slice(m,g)):(m===0&&f?(c.name=l.slice(1,h),c.base=l.slice(1,g)):(c.name=l.slice(m,h),c.base=l.slice(m,g)),c.ext=l.slice(h,g)),m>0?c.dir=l.slice(0,m-1):f&&(c.dir="/"),c},sep:"/",delimiter:":",win32:null,posix:null};o.posix=o,i.exports=o}},e={};function t(i){var s=e[i];if(s!==void 0)return s.exports;var a=e[i]={exports:{}};return n[i](a,a.exports,t),a.exports}t.d=(i,s)=>{for(var a in s)t.o(s,a)&&!t.o(i,a)&&Object.defineProperty(i,a,{enumerable:!0,get:s[a]})},t.o=(i,s)=>Object.prototype.hasOwnProperty.call(i,s),t.r=i=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(i,"__esModule",{value:!0})};var r={};(()=>{let i;t.r(r),t.d(r,{URI:()=>f,Utils:()=>be}),typeof wr=="object"?i=wr.platform==="win32":typeof navigator=="object"&&(i=navigator.userAgent.indexOf("Windows")>=0);const s=/^\w[\w\d+.-]*$/,a=/^\//,o=/^\/\//;function l(v,T){if(!v.scheme&&T)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${v.authority}", path: "${v.path}", query: "${v.query}", fragment: "${v.fragment}"}`);if(v.scheme&&!s.test(v.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(v.path){if(v.authority){if(!a.test(v.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(o.test(v.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}const c="",u="/",d=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class f{constructor(T,A,N,L,O,w=!1){Je(this,"scheme");Je(this,"authority");Je(this,"path");Je(this,"query");Je(this,"fragment");typeof T=="object"?(this.scheme=T.scheme||c,this.authority=T.authority||c,this.path=T.path||c,this.query=T.query||c,this.fragment=T.fragment||c):(this.scheme=function(ye,z){return ye||z?ye:"file"}(T,w),this.authority=A||c,this.path=function(ye,z){switch(ye){case"https":case"http":case"file":z?z[0]!==u&&(z=u+z):z=u}return z}(this.scheme,N||c),this.query=L||c,this.fragment=O||c,l(this,w))}static isUri(T){return T instanceof f||!!T&&typeof T.authority=="string"&&typeof T.fragment=="string"&&typeof T.path=="string"&&typeof T.query=="string"&&typeof T.scheme=="string"&&typeof T.fsPath=="string"&&typeof T.with=="function"&&typeof T.toString=="function"}get fsPath(){return R(this)}with(T){if(!T)return this;let{scheme:A,authority:N,path:L,query:O,fragment:w}=T;return A===void 0?A=this.scheme:A===null&&(A=c),N===void 0?N=this.authority:N===null&&(N=c),L===void 0?L=this.path:L===null&&(L=c),O===void 0?O=this.query:O===null&&(O=c),w===void 0?w=this.fragment:w===null&&(w=c),A===this.scheme&&N===this.authority&&L===this.path&&O===this.query&&w===this.fragment?this:new m(A,N,L,O,w)}static parse(T,A=!1){const N=d.exec(T);return N?new m(N[2]||c,ne(N[4]||c),ne(N[5]||c),ne(N[7]||c),ne(N[9]||c),A):new m(c,c,c,c,c)}static file(T){let A=c;if(i&&(T=T.replace(/\\/g,u)),T[0]===u&&T[1]===u){const N=T.indexOf(u,2);N===-1?(A=T.substring(2),T=u):(A=T.substring(2,N),T=T.substring(N)||u)}return new m("file",A,T,c,c)}static from(T){const A=new m(T.scheme,T.authority,T.path,T.query,T.fragment);return l(A,!0),A}toString(T=!1){return _(this,T)}toJSON(){return this}static revive(T){if(T){if(T instanceof f)return T;{const A=new m(T);return A._formatted=T.external,A._fsPath=T._sep===h?T.fsPath:null,A}}return T}}const h=i?1:void 0;class m extends f{constructor(){super(...arguments);Je(this,"_formatted",null);Je(this,"_fsPath",null)}get fsPath(){return this._fsPath||(this._fsPath=R(this)),this._fsPath}toString(A=!1){return A?_(this,!0):(this._formatted||(this._formatted=_(this,!1)),this._formatted)}toJSON(){const A={$mid:1};return this._fsPath&&(A.fsPath=this._fsPath,A._sep=h),this._formatted&&(A.external=this._formatted),this.path&&(A.path=this.path),this.scheme&&(A.scheme=this.scheme),this.authority&&(A.authority=this.authority),this.query&&(A.query=this.query),this.fragment&&(A.fragment=this.fragment),A}}const g={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function E(v,T,A){let N,L=-1;for(let O=0;O=97&&w<=122||w>=65&&w<=90||w>=48&&w<=57||w===45||w===46||w===95||w===126||T&&w===47||A&&w===91||A&&w===93||A&&w===58)L!==-1&&(N+=encodeURIComponent(v.substring(L,O)),L=-1),N!==void 0&&(N+=v.charAt(O));else{N===void 0&&(N=v.substr(0,O));const ye=g[w];ye!==void 0?(L!==-1&&(N+=encodeURIComponent(v.substring(L,O)),L=-1),N+=ye):L===-1&&(L=O)}}return L!==-1&&(N+=encodeURIComponent(v.substring(L))),N!==void 0?N:v}function y(v){let T;for(let A=0;A1&&v.scheme==="file"?`//${v.authority}${v.path}`:v.path.charCodeAt(0)===47&&(v.path.charCodeAt(1)>=65&&v.path.charCodeAt(1)<=90||v.path.charCodeAt(1)>=97&&v.path.charCodeAt(1)<=122)&&v.path.charCodeAt(2)===58?v.path[1].toLowerCase()+v.path.substr(2):v.path,i&&(A=A.replace(/\//g,"\\")),A}function _(v,T){const A=T?y:E;let N="",{scheme:L,authority:O,path:w,query:ye,fragment:z}=v;if(L&&(N+=L,N+=":"),(O||L==="file")&&(N+=u,N+=u),O){let B=O.indexOf("@");if(B!==-1){const at=O.substr(0,B);O=O.substr(B+1),B=at.lastIndexOf(":"),B===-1?N+=A(at,!1,!1):(N+=A(at.substr(0,B),!1,!1),N+=":",N+=A(at.substr(B+1),!1,!0)),N+="@"}O=O.toLowerCase(),B=O.lastIndexOf(":"),B===-1?N+=A(O,!1,!0):(N+=A(O.substr(0,B),!1,!0),N+=O.substr(B))}if(w){if(w.length>=3&&w.charCodeAt(0)===47&&w.charCodeAt(2)===58){const B=w.charCodeAt(1);B>=65&&B<=90&&(w=`/${String.fromCharCode(B+32)}:${w.substr(3)}`)}else if(w.length>=2&&w.charCodeAt(1)===58){const B=w.charCodeAt(0);B>=65&&B<=90&&(w=`${String.fromCharCode(B+32)}:${w.substr(2)}`)}N+=A(w,!0,!1)}return ye&&(N+="?",N+=A(ye,!1,!1)),z&&(N+="#",N+=T?z:E(z,!1,!1)),N}function I(v){try{return decodeURIComponent(v)}catch{return v.length>3?v.substr(0,3)+I(v.substr(3)):v}}const j=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function ne(v){return v.match(j)?v.replace(j,T=>I(T)):v}var Ce=t(470);const ge=Ce.posix||Ce,De="/";var be;(function(v){v.joinPath=function(T,...A){return T.with({path:ge.join(T.path,...A)})},v.resolvePath=function(T,...A){let N=T.path,L=!1;N[0]!==De&&(N=De+N,L=!0);let O=ge.resolve(N,...A);return L&&O[0]===De&&!T.authority&&(O=O.substring(1)),T.with({path:O})},v.dirname=function(T){if(T.path.length===0||T.path===De)return T;let A=ge.dirname(T.path);return A.length===1&&A.charCodeAt(0)===46&&(A=""),T.with({path:A})},v.basename=function(T){return ge.basename(T.path)},v.extname=function(T){return ge.extname(T.path)}})(be||(be={}))})(),pc=r})();const{URI:Wt,Utils:sn}=pc;var rt;(function(n){n.basename=sn.basename,n.dirname=sn.dirname,n.extname=sn.extname,n.joinPath=sn.joinPath,n.resolvePath=sn.resolvePath;function e(r,i){return(r==null?void 0:r.toString())===(i==null?void 0:i.toString())}n.equals=e;function t(r,i){const s=typeof r=="string"?r:r.path,a=typeof i=="string"?i:i.path,o=s.split("/").filter(f=>f.length>0),l=a.split("/").filter(f=>f.length>0);let c=0;for(;ci??(i=pi.create(e.toString(),r.getServices(e).LanguageMetaData.languageId,0,t??""))}}class om{constructor(e){this.documentMap=new Map,this.langiumDocumentFactory=e.workspace.LangiumDocumentFactory}get all(){return Q(this.documentMap.values())}addDocument(e){const t=e.uri.toString();if(this.documentMap.has(t))throw new Error(`A document with the URI '${t}' is already present.`);this.documentMap.set(t,e)}getDocument(e){const t=e.toString();return this.documentMap.get(t)}async getOrCreateDocument(e,t){let r=this.getDocument(e);return r||(r=await this.langiumDocumentFactory.fromUri(e,t),this.addDocument(r),r)}createDocument(e,t,r){if(r)return this.langiumDocumentFactory.fromString(t,e,r).then(i=>(this.addDocument(i),i));{const i=this.langiumDocumentFactory.fromString(t,e);return this.addDocument(i),i}}hasDocument(e){return this.documentMap.has(e.toString())}invalidateDocument(e){const t=e.toString(),r=this.documentMap.get(t);return r&&(r.state=U.Changed,r.precomputedScopes=void 0,r.references=[],r.diagnostics=void 0),r}deleteDocument(e){const t=e.toString(),r=this.documentMap.get(t);return r&&(r.state=U.Changed,this.documentMap.delete(t)),r}}class lm{constructor(e){this.reflection=e.shared.AstReflection,this.langiumDocuments=()=>e.shared.workspace.LangiumDocuments,this.scopeProvider=e.references.ScopeProvider,this.astNodeLocator=e.workspace.AstNodeLocator}async link(e,t=X.None){for(const r of Rt(e.parseResult.value))await Le(t),Qo(r).forEach(i=>this.doLink(i,e))}doLink(e,t){const r=e.reference;if(r._ref===void 0)try{const i=this.getCandidate(e);if(kn(i))r._ref=i;else if(r._nodeDescription=i,this.langiumDocuments().hasDocument(i.documentUri)){const s=this.loadAstNode(i);r._ref=s??this.createLinkingError(e,i)}}catch(i){r._ref=Object.assign(Object.assign({},e),{message:`An error occurred while resolving reference to '${r.$refText}': ${i}`})}t.references.push(r)}unlink(e){for(const t of e.references)delete t._ref,delete t._nodeDescription;e.references=[]}getCandidate(e){const r=this.scopeProvider.getScope(e).getElement(e.reference.$refText);return r??this.createLinkingError(e)}buildReference(e,t,r,i){const s=this,a={$refNode:r,$refText:i,get ref(){var o;if(ae(this._ref))return this._ref;if(Nu(this._nodeDescription)){const l=s.loadAstNode(this._nodeDescription);this._ref=l??s.createLinkingError({reference:a,container:e,property:t},this._nodeDescription)}else if(this._ref===void 0){const l=s.getLinkedNode({reference:a,container:e,property:t});if(l.error&&Ue(e).state=e.end)return s.ref}}if(r){const i=this.nameProvider.getNameNode(r);if(i&&(i===e||Su(e,i)))return r}}}findDeclarationNode(e){const t=this.findDeclaration(e);if(t!=null&&t.$cstNode){const r=this.nameProvider.getNameNode(t);return r??t.$cstNode}}findReferences(e,t){const r=[];if(t.includeDeclaration){const s=this.getReferenceToSelf(e);s&&r.push(s)}let i=this.index.findAllReferences(e,this.nodeLocator.getAstNodePath(e));return t.documentUri&&(i=i.filter(s=>rt.equals(s.sourceUri,t.documentUri))),r.push(...i),Q(r)}getReferenceToSelf(e){const t=this.nameProvider.getNameNode(e);if(t){const r=Ue(e),i=this.nodeLocator.getAstNodePath(e);return{sourceUri:r.uri,sourcePath:i,targetUri:r.uri,targetPath:i,segment:Ln(t),local:!0}}}}class Vi{constructor(e){if(this.map=new Map,e)for(const[t,r]of e)this.add(t,r)}get size(){return Pr.sum(Q(this.map.values()).map(e=>e.length))}clear(){this.map.clear()}delete(e,t){if(t===void 0)return this.map.delete(e);{const r=this.map.get(e);if(r){const i=r.indexOf(t);if(i>=0)return r.length===1?this.map.delete(e):r.splice(i,1),!0}return!1}}get(e){var t;return(t=this.map.get(e))!==null&&t!==void 0?t:[]}has(e,t){if(t===void 0)return this.map.has(e);{const r=this.map.get(e);return r?r.indexOf(t)>=0:!1}}add(e,t){return this.map.has(e)?this.map.get(e).push(t):this.map.set(e,[t]),this}addAll(e,t){return this.map.has(e)?this.map.get(e).push(...t):this.map.set(e,Array.from(t)),this}forEach(e){this.map.forEach((t,r)=>t.forEach(i=>e(i,r,this)))}[Symbol.iterator](){return this.entries().iterator()}entries(){return Q(this.map.entries()).flatMap(([e,t])=>t.map(r=>[e,r]))}keys(){return Q(this.map.keys())}values(){return Q(this.map.values()).flat()}entriesGroupedByKey(){return Q(this.map.entries())}}class Ba{get size(){return this.map.size}constructor(e){if(this.map=new Map,this.inverse=new Map,e)for(const[t,r]of e)this.set(t,r)}clear(){this.map.clear(),this.inverse.clear()}set(e,t){return this.map.set(e,t),this.inverse.set(t,e),this}get(e){return this.map.get(e)}getKey(e){return this.inverse.get(e)}delete(e){const t=this.map.get(e);return t!==void 0?(this.map.delete(e),this.inverse.delete(t),!0):!1}}class fm{constructor(e){this.nameProvider=e.references.NameProvider,this.descriptions=e.workspace.AstNodeDescriptionProvider}async computeExports(e,t=X.None){return this.computeExportsForNode(e.parseResult.value,e,void 0,t)}async computeExportsForNode(e,t,r=Ni,i=X.None){const s=[];this.exportNode(e,s,t);for(const a of r(e))await Le(i),this.exportNode(a,s,t);return s}exportNode(e,t,r){const i=this.nameProvider.getName(e);i&&t.push(this.descriptions.createDescription(e,i,r))}async computeLocalScopes(e,t=X.None){const r=e.parseResult.value,i=new Vi;for(const s of pn(r))await Le(t),this.processNode(s,e,i);return i}processNode(e,t,r){const i=e.$container;if(i){const s=this.nameProvider.getName(e);s&&r.add(i,this.descriptions.createDescription(e,s,t))}}}class Ha{constructor(e,t,r){var i;this.elements=e,this.outerScope=t,this.caseInsensitive=(i=r==null?void 0:r.caseInsensitive)!==null&&i!==void 0?i:!1}getAllElements(){return this.outerScope?this.elements.concat(this.outerScope.getAllElements()):this.elements}getElement(e){const t=this.caseInsensitive?this.elements.find(r=>r.name.toLowerCase()===e.toLowerCase()):this.elements.find(r=>r.name===e);if(t)return t;if(this.outerScope)return this.outerScope.getElement(e)}}class hm{constructor(e,t,r){var i;this.elements=new Map,this.caseInsensitive=(i=r==null?void 0:r.caseInsensitive)!==null&&i!==void 0?i:!1;for(const s of e){const a=this.caseInsensitive?s.name.toLowerCase():s.name;this.elements.set(a,s)}this.outerScope=t}getElement(e){const t=this.caseInsensitive?e.toLowerCase():e,r=this.elements.get(t);if(r)return r;if(this.outerScope)return this.outerScope.getElement(e)}getAllElements(){let e=Q(this.elements.values());return this.outerScope&&(e=e.concat(this.outerScope.getAllElements())),e}}class mc{constructor(){this.toDispose=[],this.isDisposed=!1}onDispose(e){this.toDispose.push(e)}dispose(){this.throwIfDisposed(),this.clear(),this.isDisposed=!0,this.toDispose.forEach(e=>e.dispose())}throwIfDisposed(){if(this.isDisposed)throw new Error("This cache has already been disposed")}}class pm extends mc{constructor(){super(...arguments),this.cache=new Map}has(e){return this.throwIfDisposed(),this.cache.has(e)}set(e,t){this.throwIfDisposed(),this.cache.set(e,t)}get(e,t){if(this.throwIfDisposed(),this.cache.has(e))return this.cache.get(e);if(t){const r=t();return this.cache.set(e,r),r}else return}delete(e){return this.throwIfDisposed(),this.cache.delete(e)}clear(){this.throwIfDisposed(),this.cache.clear()}}class mm extends mc{constructor(e){super(),this.cache=new Map,this.converter=e??(t=>t)}has(e,t){return this.throwIfDisposed(),this.cacheForContext(e).has(t)}set(e,t,r){this.throwIfDisposed(),this.cacheForContext(e).set(t,r)}get(e,t,r){this.throwIfDisposed();const i=this.cacheForContext(e);if(i.has(t))return i.get(t);if(r){const s=r();return i.set(t,s),s}else return}delete(e,t){return this.throwIfDisposed(),this.cacheForContext(e).delete(t)}clear(e){if(this.throwIfDisposed(),e){const t=this.converter(e);this.cache.delete(t)}else this.cache.clear()}cacheForContext(e){const t=this.converter(e);let r=this.cache.get(t);return r||(r=new Map,this.cache.set(t,r)),r}}class gm extends pm{constructor(e){super(),this.onDispose(e.workspace.DocumentBuilder.onUpdate(()=>{this.clear()}))}}class ym{constructor(e){this.reflection=e.shared.AstReflection,this.nameProvider=e.references.NameProvider,this.descriptions=e.workspace.AstNodeDescriptionProvider,this.indexManager=e.shared.workspace.IndexManager,this.globalScopeCache=new gm(e.shared)}getScope(e){const t=[],r=this.reflection.getReferenceType(e),i=Ue(e.container).precomputedScopes;if(i){let a=e.container;do{const o=i.get(a);o.length>0&&t.push(Q(o).filter(l=>this.reflection.isSubtype(l.type,r))),a=a.$container}while(a)}let s=this.getGlobalScope(r,e);for(let a=t.length-1;a>=0;a--)s=this.createScope(t[a],s);return s}createScope(e,t,r){return new Ha(Q(e),t,r)}createScopeForNodes(e,t,r){const i=Q(e).map(s=>{const a=this.nameProvider.getName(s);if(a)return this.descriptions.createDescription(s,a)}).nonNullable();return new Ha(i,t,r)}getGlobalScope(e,t){return this.globalScopeCache.get(e,()=>new hm(this.indexManager.allElements(e)))}}function Tm(n){return typeof n.$comment=="string"}function Va(n){return typeof n=="object"&&!!n&&("$ref"in n||"$error"in n)}class _m{constructor(e){this.ignoreProperties=new Set(["$container","$containerProperty","$containerIndex","$document","$cstNode"]),this.langiumDocuments=e.shared.workspace.LangiumDocuments,this.astNodeLocator=e.workspace.AstNodeLocator,this.nameProvider=e.references.NameProvider,this.commentProvider=e.documentation.CommentProvider}serialize(e,t={}){const r=t==null?void 0:t.replacer,i=(a,o)=>this.replacer(a,o,t),s=r?(a,o)=>r(a,o,i):i;try{return this.currentDocument=Ue(e),JSON.stringify(e,s,t==null?void 0:t.space)}finally{this.currentDocument=void 0}}deserialize(e,t={}){const r=JSON.parse(e);return this.linkNode(r,r,t),r}replacer(e,t,{refText:r,sourceText:i,textRegions:s,comments:a,uriConverter:o}){var l,c,u,d;if(!this.ignoreProperties.has(e))if(Ge(t)){const f=t.ref,h=r?t.$refText:void 0;if(f){const m=Ue(f);let g="";this.currentDocument&&this.currentDocument!==m&&(o?g=o(m.uri,t):g=m.uri.toString());const E=this.astNodeLocator.getAstNodePath(f);return{$ref:`${g}#${E}`,$refText:h}}else return{$error:(c=(l=t.error)===null||l===void 0?void 0:l.message)!==null&&c!==void 0?c:"Could not resolve reference",$refText:h}}else if(ae(t)){let f;if(s&&(f=this.addAstNodeRegionWithAssignmentsTo(Object.assign({},t)),(!e||t.$document)&&(f!=null&&f.$textRegion)&&(f.$textRegion.documentURI=(u=this.currentDocument)===null||u===void 0?void 0:u.uri.toString())),i&&!e&&(f??(f=Object.assign({},t)),f.$sourceText=(d=t.$cstNode)===null||d===void 0?void 0:d.text),a){f??(f=Object.assign({},t));const h=this.commentProvider.getComment(t);h&&(f.$comment=h.replace(/\r/g,""))}return f??t}else return t}addAstNodeRegionWithAssignmentsTo(e){const t=r=>({offset:r.offset,end:r.end,length:r.length,range:r.range});if(e.$cstNode){const r=e.$textRegion=t(e.$cstNode),i=r.assignments={};return Object.keys(e).filter(s=>!s.startsWith("$")).forEach(s=>{const a=bd(e.$cstNode,s).map(t);a.length!==0&&(i[s]=a)}),e}}linkNode(e,t,r,i,s,a){for(const[l,c]of Object.entries(e))if(Array.isArray(c))for(let u=0;u{try{await e.call(t,r,i,s)}catch(a){if(Bi(a))throw a;console.error("An error occurred during validation:",a);const o=a instanceof Error?a.message:String(a);a instanceof Error&&a.stack&&console.error(a.stack),i("error","An error occurred during validation: "+o,{node:r})}}}addEntry(e,t){if(e==="AstNode"){this.entries.add("AstNode",t);return}for(const r of this.reflection.getAllSubTypes(e))this.entries.add(r,t)}getChecks(e,t){let r=Q(this.entries.get(e)).concat(this.entries.get("AstNode"));return t&&(r=r.filter(i=>t.includes(i.category))),r.map(i=>i.check)}}class Am{constructor(e){this.validationRegistry=e.validation.ValidationRegistry,this.metadata=e.LanguageMetaData}async validateDocument(e,t={},r=X.None){const i=e.parseResult,s=[];if(await Le(r),(!t.categories||t.categories.includes("built-in"))&&(this.processLexingErrors(i,s,t),t.stopAfterLexingErrors&&s.some(a=>{var o;return((o=a.data)===null||o===void 0?void 0:o.code)===Qe.LexingError})||(this.processParsingErrors(i,s,t),t.stopAfterParsingErrors&&s.some(a=>{var o;return((o=a.data)===null||o===void 0?void 0:o.code)===Qe.ParsingError}))||(this.processLinkingErrors(e,s,t),t.stopAfterLinkingErrors&&s.some(a=>{var o;return((o=a.data)===null||o===void 0?void 0:o.code)===Qe.LinkingError}))))return s;try{s.push(...await this.validateAst(i.value,t,r))}catch(a){if(Bi(a))throw a;console.error("An error occurred during validation:",a)}return await Le(r),s}processLexingErrors(e,t,r){for(const i of e.lexerErrors){const s={severity:Or("error"),range:{start:{line:i.line-1,character:i.column-1},end:{line:i.line-1,character:i.column+i.length-1}},message:i.message,data:Wa(Qe.LexingError),source:this.getSource()};t.push(s)}}processParsingErrors(e,t,r){for(const i of e.parserErrors){let s;if(isNaN(i.token.startOffset)){if("previousToken"in i){const a=i.previousToken;if(isNaN(a.startOffset)){const o={line:0,character:0};s={start:o,end:o}}else{const o={line:a.endLine-1,character:a.endColumn};s={start:o,end:o}}}}else s=Dr(i.token);if(s){const a={severity:Or("error"),range:s,message:i.message,data:Wa(Qe.ParsingError),source:this.getSource()};t.push(a)}}}processLinkingErrors(e,t,r){for(const i of e.references){const s=i.error;if(s){const a={node:s.container,property:s.property,index:s.index,data:{code:Qe.LinkingError,containerType:s.container.$type,property:s.property,refText:s.reference.$refText}};t.push(this.toDiagnostic("error",s.message,a))}}}async validateAst(e,t,r=X.None){const i=[],s=(a,o,l)=>{i.push(this.toDiagnostic(a,o,l))};return await Promise.all(Rt(e).map(async a=>{await Le(r);const o=this.validationRegistry.getChecks(a.$type,t.categories);for(const l of o)await l(a,s,r)})),i}toDiagnostic(e,t,r){return{message:t,range:vm(r),severity:Or(e),code:r.code,codeDescription:r.codeDescription,tags:r.tags,relatedInformation:r.relatedInformation,data:r.data,source:this.getSource()}}getSource(){return this.metadata.languageId}}function vm(n){if(n.range)return n.range;let e;return typeof n.property=="string"?e=rl(n.node.$cstNode,n.property,n.index):typeof n.keyword=="string"&&(e=Nd(n.node.$cstNode,n.keyword,n.index)),e??(e=n.node.$cstNode),e?e.range:{start:{line:0,character:0},end:{line:0,character:0}}}function Or(n){switch(n){case"error":return 1;case"warning":return 2;case"info":return 3;case"hint":return 4;default:throw new Error("Invalid diagnostic severity: "+n)}}var Qe;(function(n){n.LexingError="lexing-error",n.ParsingError="parsing-error",n.LinkingError="linking-error"})(Qe||(Qe={}));class bm{constructor(e){this.astNodeLocator=e.workspace.AstNodeLocator,this.nameProvider=e.references.NameProvider}createDescription(e,t,r=Ue(e)){t??(t=this.nameProvider.getName(e));const i=this.astNodeLocator.getAstNodePath(e);if(!t)throw new Error(`Node at path ${i} has no name.`);let s;const a=()=>{var o;return s??(s=Ln((o=this.nameProvider.getNameNode(e))!==null&&o!==void 0?o:e.$cstNode))};return{node:e,name:t,get nameSegment(){return a()},selectionSegment:Ln(e.$cstNode),type:e.$type,documentUri:r.uri,path:i}}}class Nm{constructor(e){this.nodeLocator=e.workspace.AstNodeLocator}async createDescriptions(e,t=X.None){const r=[],i=e.parseResult.value;for(const s of Rt(i))await Le(t),Qo(s).filter(a=>!kn(a)).forEach(a=>{const o=this.createDescription(a);o&&r.push(o)});return r}createDescription(e){const t=e.reference.$nodeDescription,r=e.reference.$refNode;if(!t||!r)return;const i=Ue(e.container).uri;return{sourceUri:i,sourcePath:this.nodeLocator.getAstNodePath(e.container),targetUri:t.documentUri,targetPath:t.path,segment:Ln(r),local:rt.equals(t.documentUri,i)}}}class km{constructor(){this.segmentSeparator="/",this.indexSeparator="@"}getAstNodePath(e){if(e.$container){const t=this.getAstNodePath(e.$container),r=this.getPathSegment(e);return t+this.segmentSeparator+r}return""}getPathSegment({$containerProperty:e,$containerIndex:t}){if(!e)throw new Error("Missing '$containerProperty' in AST node.");return t!==void 0?e+this.indexSeparator+t:e}getAstNode(e,t){return t.split(this.segmentSeparator).reduce((i,s)=>{if(!i||s.length===0)return i;const a=s.indexOf(this.indexSeparator);if(a>0){const o=s.substring(0,a),l=parseInt(s.substring(a+1)),c=i[o];return c==null?void 0:c[l]}return i[s]},e)}}class Im{constructor(e){this._ready=new Hi,this.settings={},this.workspaceConfig=!1,this.serviceRegistry=e.ServiceRegistry}get ready(){return this._ready.promise}initialize(e){var t,r;this.workspaceConfig=(r=(t=e.capabilities.workspace)===null||t===void 0?void 0:t.configuration)!==null&&r!==void 0?r:!1}async initialized(e){if(this.workspaceConfig){if(e.register){const t=this.serviceRegistry.all;e.register({section:t.map(r=>this.toSectionName(r.LanguageMetaData.languageId))})}if(e.fetchConfiguration){const t=this.serviceRegistry.all.map(i=>({section:this.toSectionName(i.LanguageMetaData.languageId)})),r=await e.fetchConfiguration(t);t.forEach((i,s)=>{this.updateSectionConfiguration(i.section,r[s])})}}this._ready.resolve()}updateConfiguration(e){e.settings&&Object.keys(e.settings).forEach(t=>{this.updateSectionConfiguration(t,e.settings[t])})}updateSectionConfiguration(e,t){this.settings[e]=t}async getConfiguration(e,t){await this.ready;const r=this.toSectionName(e);if(this.settings[r])return this.settings[r][t]}toSectionName(e){return`${e}`}}var er;(function(n){function e(t){return{dispose:async()=>await t()}}n.create=e})(er||(er={}));class Sm{constructor(e){this.updateBuildOptions={validation:{categories:["built-in","fast"]}},this.updateListeners=[],this.buildPhaseListeners=new Vi,this.buildState=new Map,this.documentBuildWaiters=new Map,this.currentState=U.Changed,this.langiumDocuments=e.workspace.LangiumDocuments,this.langiumDocumentFactory=e.workspace.LangiumDocumentFactory,this.indexManager=e.workspace.IndexManager,this.serviceRegistry=e.ServiceRegistry}async build(e,t={},r=X.None){var i,s;for(const a of e){const o=a.uri.toString();if(a.state===U.Validated){if(typeof t.validation=="boolean"&&t.validation)a.state=U.IndexedReferences,a.diagnostics=void 0,this.buildState.delete(o);else if(typeof t.validation=="object"){const l=this.buildState.get(o),c=(i=l==null?void 0:l.result)===null||i===void 0?void 0:i.validationChecks;if(c){const d=((s=t.validation.categories)!==null&&s!==void 0?s:Zn.all).filter(f=>!c.includes(f));d.length>0&&(this.buildState.set(o,{completed:!1,options:{validation:Object.assign(Object.assign({},t.validation),{categories:d})},result:l.result}),a.state=U.IndexedReferences)}}}else this.buildState.delete(o)}this.currentState=U.Changed,await this.emitUpdate(e.map(a=>a.uri),[]),await this.buildDocuments(e,t,r)}async update(e,t,r=X.None){this.currentState=U.Changed;for(const a of t)this.langiumDocuments.deleteDocument(a),this.buildState.delete(a.toString()),this.indexManager.remove(a);for(const a of e){if(!this.langiumDocuments.invalidateDocument(a)){const l=this.langiumDocumentFactory.fromModel({$type:"INVALID"},a);l.state=U.Changed,this.langiumDocuments.addDocument(l)}this.buildState.delete(a.toString())}const i=Q(e).concat(t).map(a=>a.toString()).toSet();this.langiumDocuments.all.filter(a=>!i.has(a.uri.toString())&&this.shouldRelink(a,i)).forEach(a=>{this.serviceRegistry.getServices(a.uri).references.Linker.unlink(a),a.state=Math.min(a.state,U.ComputedScopes),a.diagnostics=void 0}),await this.emitUpdate(e,t),await Le(r);const s=this.langiumDocuments.all.filter(a=>{var o;return a.stater(e,t)))}shouldRelink(e,t){return e.references.some(r=>r.error!==void 0)?!0:this.indexManager.isAffected(e,t)}onUpdate(e){return this.updateListeners.push(e),er.create(()=>{const t=this.updateListeners.indexOf(e);t>=0&&this.updateListeners.splice(t,1)})}async buildDocuments(e,t,r){this.prepareBuild(e,t),await this.runCancelable(e,U.Parsed,r,s=>this.langiumDocumentFactory.update(s,r)),await this.runCancelable(e,U.IndexedContent,r,s=>this.indexManager.updateContent(s,r)),await this.runCancelable(e,U.ComputedScopes,r,async s=>{const a=this.serviceRegistry.getServices(s.uri).references.ScopeComputation;s.precomputedScopes=await a.computeLocalScopes(s,r)}),await this.runCancelable(e,U.Linked,r,s=>this.serviceRegistry.getServices(s.uri).references.Linker.link(s,r)),await this.runCancelable(e,U.IndexedReferences,r,s=>this.indexManager.updateReferences(s,r));const i=e.filter(s=>this.shouldValidate(s));await this.runCancelable(i,U.Validated,r,s=>this.validate(s,r));for(const s of e){const a=this.buildState.get(s.uri.toString());a&&(a.completed=!0)}}prepareBuild(e,t){for(const r of e){const i=r.uri.toString(),s=this.buildState.get(i);(!s||s.completed)&&this.buildState.set(i,{completed:!1,options:t,result:s==null?void 0:s.result})}}async runCancelable(e,t,r,i){const s=e.filter(a=>a.state{this.buildPhaseListeners.delete(e,t)})}waitUntil(e,t,r){let i;if(t&&"path"in t?i=t:r=t,r??(r=X.None),i){const s=this.langiumDocuments.getDocument(i);if(s&&s.state>e)return Promise.resolve(i)}return this.currentState>=e?Promise.resolve(void 0):r.isCancellationRequested?Promise.reject(Qn):new Promise((s,a)=>{const o=this.onBuildPhase(e,()=>{if(o.dispose(),l.dispose(),i){const c=this.langiumDocuments.getDocument(i);s(c==null?void 0:c.uri)}else s(void 0)}),l=r.onCancellationRequested(()=>{o.dispose(),l.dispose(),a(Qn)})})}async notifyBuildPhase(e,t,r){if(e.length===0)return;const i=this.buildPhaseListeners.get(t);for(const s of i)await Le(r),await s(e,r)}shouldValidate(e){return!!this.getBuildOptions(e).validation}async validate(e,t){var r,i;const s=this.serviceRegistry.getServices(e.uri).validation.DocumentValidator,a=this.getBuildOptions(e).validation,o=typeof a=="object"?a:void 0,l=await s.validateDocument(e,o,t);e.diagnostics?e.diagnostics.push(...l):e.diagnostics=l;const c=this.buildState.get(e.uri.toString());if(c){(r=c.result)!==null&&r!==void 0||(c.result={});const u=(i=o==null?void 0:o.categories)!==null&&i!==void 0?i:Zn.all;c.result.validationChecks?c.result.validationChecks.push(...u):c.result.validationChecks=[...u]}}getBuildOptions(e){var t,r;return(r=(t=this.buildState.get(e.uri.toString()))===null||t===void 0?void 0:t.options)!==null&&r!==void 0?r:{}}}class xm{constructor(e){this.symbolIndex=new Map,this.symbolByTypeIndex=new mm,this.referenceIndex=new Map,this.documents=e.workspace.LangiumDocuments,this.serviceRegistry=e.ServiceRegistry,this.astReflection=e.AstReflection}findAllReferences(e,t){const r=Ue(e).uri,i=[];return this.referenceIndex.forEach(s=>{s.forEach(a=>{rt.equals(a.targetUri,r)&&a.targetPath===t&&i.push(a)})}),Q(i)}allElements(e,t){let r=Q(this.symbolIndex.keys());return t&&(r=r.filter(i=>!t||t.has(i))),r.map(i=>this.getFileDescriptions(i,e)).flat()}getFileDescriptions(e,t){var r;return t?this.symbolByTypeIndex.get(e,t,()=>{var s;return((s=this.symbolIndex.get(e))!==null&&s!==void 0?s:[]).filter(o=>this.astReflection.isSubtype(o.type,t))}):(r=this.symbolIndex.get(e))!==null&&r!==void 0?r:[]}remove(e){const t=e.toString();this.symbolIndex.delete(t),this.symbolByTypeIndex.clear(t),this.referenceIndex.delete(t)}async updateContent(e,t=X.None){const i=await this.serviceRegistry.getServices(e.uri).references.ScopeComputation.computeExports(e,t),s=e.uri.toString();this.symbolIndex.set(s,i),this.symbolByTypeIndex.clear(s)}async updateReferences(e,t=X.None){const i=await this.serviceRegistry.getServices(e.uri).workspace.ReferenceDescriptionProvider.createDescriptions(e,t);this.referenceIndex.set(e.uri.toString(),i)}isAffected(e,t){const r=this.referenceIndex.get(e.uri.toString());return r?r.some(i=>!i.local&&t.has(i.targetUri.toString())):!1}}class Cm{constructor(e){this.initialBuildOptions={},this._ready=new Hi,this.serviceRegistry=e.ServiceRegistry,this.langiumDocuments=e.workspace.LangiumDocuments,this.documentBuilder=e.workspace.DocumentBuilder,this.fileSystemProvider=e.workspace.FileSystemProvider,this.mutex=e.workspace.WorkspaceLock}get ready(){return this._ready.promise}initialize(e){var t;this.folders=(t=e.workspaceFolders)!==null&&t!==void 0?t:void 0}initialized(e){return this.mutex.write(t=>{var r;return this.initializeWorkspace((r=this.folders)!==null&&r!==void 0?r:[],t)})}async initializeWorkspace(e,t=X.None){const r=await this.performStartup(e);await Le(t),await this.documentBuilder.build(r,this.initialBuildOptions,t)}async performStartup(e){const t=this.serviceRegistry.all.flatMap(s=>s.LanguageMetaData.fileExtensions),r=[],i=s=>{r.push(s),this.langiumDocuments.hasDocument(s.uri)||this.langiumDocuments.addDocument(s)};return await this.loadAdditionalDocuments(e,i),await Promise.all(e.map(s=>[s,this.getRootFolder(s)]).map(async s=>this.traverseFolder(...s,t,i))),this._ready.resolve(),r}loadAdditionalDocuments(e,t){return Promise.resolve()}getRootFolder(e){return Wt.parse(e.uri)}async traverseFolder(e,t,r,i){const s=await this.fileSystemProvider.readDirectory(t);await Promise.all(s.map(async a=>{if(this.includeEntry(e,a,r)){if(a.isDirectory)await this.traverseFolder(e,a.uri,r,i);else if(a.isFile){const o=await this.langiumDocuments.getOrCreateDocument(a.uri);i(o)}}}))}includeEntry(e,t,r){const i=rt.basename(t.uri);if(i.startsWith("."))return!1;if(t.isDirectory)return i!=="node_modules"&&i!=="out";if(t.isFile){const s=rt.extname(t.uri);return r.includes(s)}return!1}}class wm{constructor(e){const t=e.parser.TokenBuilder.buildTokens(e.Grammar,{caseInsensitive:e.LanguageMetaData.caseInsensitive});this.tokenTypes=this.toTokenTypeDictionary(t);const r=Ka(t)?Object.values(t):t;this.chevrotainLexer=new de(r,{positionTracking:"full"})}get definition(){return this.tokenTypes}tokenize(e){var t;const r=this.chevrotainLexer.tokenize(e);return{tokens:r.tokens,errors:r.errors,hidden:(t=r.groups.hidden)!==null&&t!==void 0?t:[]}}toTokenTypeDictionary(e){if(Ka(e))return e;const t=gc(e)?Object.values(e.modes).flat():e,r={};return t.forEach(i=>r[i.name]=i),r}}function Om(n){return Array.isArray(n)&&(n.length===0||"name"in n[0])}function gc(n){return n&&"modes"in n&&"defaultMode"in n}function Ka(n){return!Om(n)&&!gc(n)}function Lm(n,e,t){let r,i;typeof n=="string"?(i=e,r=t):(i=n.range.start,r=e),i||(i=P.create(0,0));const s=yc(n),a=Wi(r),o=Mm({lines:s,position:i,options:a});return Fm({index:0,tokens:o,position:i})}function $m(n,e){const t=Wi(e),r=yc(n);if(r.length===0)return!1;const i=r[0],s=r[r.length-1],a=t.start,o=t.end;return!!(a!=null&&a.exec(i))&&!!(o!=null&&o.exec(s))}function yc(n){let e="";return typeof n=="string"?e=n:e=n.text,e.split(hd)}const za=/\s*(@([\p{L}][\p{L}\p{N}]*)?)/uy,Pm=/\{(@[\p{L}][\p{L}\p{N}]*)(\s*)([^\r\n}]+)?\}/gu;function Mm(n){var e,t,r;const i=[];let s=n.position.line,a=n.position.character;for(let o=0;o=u.length){if(i.length>0){const h=P.create(s,a);i.push({type:"break",content:"",range:$.create(h,h)})}}else{za.lastIndex=d;const h=za.exec(u);if(h){const m=h[0],g=h[1],E=P.create(s,a+d),y=P.create(s,a+d+m.length);i.push({type:"tag",content:g,range:$.create(E,y)}),d+=m.length,d=gi(u,d)}if(d0&&i[i.length-1].type==="break"?i.slice(0,-1):i}function Dm(n,e,t,r){const i=[];if(n.length===0){const s=P.create(t,r),a=P.create(t,r+e.length);i.push({type:"text",content:e,range:$.create(s,a)})}else{let s=0;for(const o of n){const l=o.index,c=e.substring(s,l);c.length>0&&i.push({type:"text",content:e.substring(s,l),range:$.create(P.create(t,s+r),P.create(t,l+r))});let u=c.length+1;const d=o[1];if(i.push({type:"inline-tag",content:d,range:$.create(P.create(t,s+u+r),P.create(t,s+u+d.length+r))}),u+=d.length,o.length===4){u+=o[2].length;const f=o[3];i.push({type:"text",content:f,range:$.create(P.create(t,s+u+r),P.create(t,s+u+f.length+r))})}else i.push({type:"text",content:"",range:$.create(P.create(t,s+u+r),P.create(t,s+u+r))});s=l+o[0].length}const a=e.substring(s);a.length>0&&i.push({type:"text",content:a,range:$.create(P.create(t,s+r),P.create(t,s+r+a.length))})}return i}const jm=/\S/,Gm=/\s*$/;function gi(n,e){const t=n.substring(e).match(jm);return t?e+t.index:n.length}function Um(n){const e=n.match(Gm);if(e&&typeof e.index=="number")return e.index}function Fm(n){var e,t,r,i;const s=P.create(n.position.line,n.position.character);if(n.tokens.length===0)return new qa([],$.create(s,s));const a=[];for(;n.indext.name===e)}getTags(e){return this.getAllTags().filter(t=>t.name===e)}getAllTags(){return this.elements.filter(e=>"name"in e)}toString(){let e="";for(const t of this.elements)if(e.length===0)e=t.toString();else{const r=t.toString();e+=Ya(e)+r}return e.trim()}toMarkdown(e){let t="";for(const r of this.elements)if(t.length===0)t=r.toMarkdown(e);else{const i=r.toMarkdown(e);t+=Ya(t)+i}return t.trim()}}class $r{constructor(e,t,r,i){this.name=e,this.content=t,this.inline=r,this.range=i}toString(){let e=`@${this.name}`;const t=this.content.toString();return this.content.inlines.length===1?e=`${e} ${t}`:this.content.inlines.length>1&&(e=`${e} +`;case"r":return"\r";case"t":return" ";case"v":return"\v";case"0":return"\0";default:return c}}function r(c){return c.charAt(0)==="^"?c.substring(1):c}n.convertID=r;function i(c){return parseInt(c)}n.convertInt=i;function s(c){return BigInt(c)}n.convertBigint=s;function a(c){return new Date(c)}n.convertDate=a;function o(c){return Number(c)}n.convertNumber=o;function l(c){return c.toLowerCase()==="true"}n.convertBoolean=l})(Ve||(Ve={}));var dn={},yr={};Object.defineProperty(yr,"__esModule",{value:!0});let di;function cc(){if(di===void 0)throw new Error("No runtime abstraction layer installed");return di}(function(n){function e(t){if(t===void 0)throw new Error("No runtime abstraction layer provided");di=t}n.install=e})(cc);yr.default=cc;var se={};Object.defineProperty(se,"__esModule",{value:!0});se.stringArray=se.array=se.func=se.error=se.number=se.string=se.boolean=void 0;function Kp(n){return n===!0||n===!1}se.boolean=Kp;function uc(n){return typeof n=="string"||n instanceof String}se.string=uc;function zp(n){return typeof n=="number"||n instanceof Number}se.number=zp;function qp(n){return n instanceof Error}se.error=qp;function Yp(n){return typeof n=="function"}se.func=Yp;function dc(n){return Array.isArray(n)}se.array=dc;function Xp(n){return dc(n)&&n.every(e=>uc(e))}se.stringArray=Xp;var Vt={};Object.defineProperty(Vt,"__esModule",{value:!0});Vt.Emitter=Vt.Event=void 0;const Jp=yr;var ja;(function(n){const e={dispose(){}};n.None=function(){return e}})(ja||(Vt.Event=ja={}));class Qp{add(e,t=null,r){this._callbacks||(this._callbacks=[],this._contexts=[]),this._callbacks.push(e),this._contexts.push(t),Array.isArray(r)&&r.push({dispose:()=>this.remove(e,t)})}remove(e,t=null){if(!this._callbacks)return;let r=!1;for(let i=0,s=this._callbacks.length;i{this._callbacks||(this._callbacks=new Qp),this._options&&this._options.onFirstListenerAdd&&this._callbacks.isEmpty()&&this._options.onFirstListenerAdd(this),this._callbacks.add(e,t);const i={dispose:()=>{this._callbacks&&(this._callbacks.remove(e,t),i.dispose=Tr._noop,this._options&&this._options.onLastListenerRemove&&this._callbacks.isEmpty()&&this._options.onLastListenerRemove(this))}};return Array.isArray(r)&&r.push(i),i}),this._event}fire(e){this._callbacks&&this._callbacks.invoke.call(this._callbacks,e)}dispose(){this._callbacks&&(this._callbacks.dispose(),this._callbacks=void 0)}}Vt.Emitter=Tr;Tr._noop=function(){};var X;Object.defineProperty(dn,"__esModule",{value:!0});var fi=dn.CancellationTokenSource=X=dn.CancellationToken=void 0;const Zp=yr,em=se,hi=Vt;var Jn;(function(n){n.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:hi.Event.None}),n.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:hi.Event.None});function e(t){const r=t;return r&&(r===n.None||r===n.Cancelled||em.boolean(r.isCancellationRequested)&&!!r.onCancellationRequested)}n.is=e})(Jn||(X=dn.CancellationToken=Jn={}));const tm=Object.freeze(function(n,e){const t=(0,Zp.default)().timer.setTimeout(n.bind(e),0);return{dispose(){t.dispose()}}});class Ga{constructor(){this._isCancelled=!1}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?tm:(this._emitter||(this._emitter=new hi.Emitter),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=void 0)}}class nm{get token(){return this._token||(this._token=new Ga),this._token}cancel(){this._token?this._token.cancel():this._token=Jn.Cancelled}dispose(){this._token?this._token instanceof Ga&&this._token.dispose():this._token=Jn.None}}fi=dn.CancellationTokenSource=nm;function rm(){return new Promise(n=>{typeof setImmediate>"u"?setTimeout(n,0):setImmediate(n)})}let Ua=0,im=10;const Qn=Symbol("OperationCancelled");function Bi(n){return n===Qn}async function Le(n){if(n===X.None)return;const e=Date.now();if(e-Ua>=im&&(Ua=e,await rm()),n.isCancellationRequested)throw Qn}class Hi{constructor(){this.promise=new Promise((e,t)=>{this.resolve=r=>(e(r),this),this.reject=r=>(t(r),this)})}}class fn{constructor(e,t,r,i){this._uri=e,this._languageId=t,this._version=r,this._content=i,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(e){if(e){const t=this.offsetAt(e.start),r=this.offsetAt(e.end);return this._content.substring(t,r)}return this._content}update(e,t){for(const r of e)if(fn.isIncremental(r)){const i=hc(r.range),s=this.offsetAt(i.start),a=this.offsetAt(i.end);this._content=this._content.substring(0,s)+r.text+this._content.substring(a,this._content.length);const o=Math.max(i.start.line,0),l=Math.max(i.end.line,0);let c=this._lineOffsets;const u=Fa(r.text,!1,s);if(l-o===u.length)for(let f=0,h=u.length;fe?i=a:r=a+1}const s=r-1;return e=this.ensureBeforeEOL(e,t[s]),{line:s,character:e-t[s]}}offsetAt(e){const t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;const r=t[e.line];if(e.character<=0)return r;const i=e.line+1t&&fc(this._content.charCodeAt(e-1));)e--;return e}get lineCount(){return this.getLineOffsets().length}static isIncremental(e){const t=e;return t!=null&&typeof t.text=="string"&&t.range!==void 0&&(t.rangeLength===void 0||typeof t.rangeLength=="number")}static isFull(e){const t=e;return t!=null&&typeof t.text=="string"&&t.range===void 0&&t.rangeLength===void 0}}var pi;(function(n){function e(i,s,a,o){return new fn(i,s,a,o)}n.create=e;function t(i,s,a){if(i instanceof fn)return i.update(s,a),i;throw new Error("TextDocument.update: document must be created by TextDocument.create")}n.update=t;function r(i,s){const a=i.getText(),o=mi(s.map(sm),(u,d)=>{const f=u.range.start.line-d.range.start.line;return f===0?u.range.start.character-d.range.start.character:f});let l=0;const c=[];for(const u of o){const d=i.offsetAt(u.range.start);if(dl&&c.push(a.substring(l,d)),u.newText.length&&c.push(u.newText),l=i.offsetAt(u.range.end)}return c.push(a.substr(l)),c.join("")}n.applyEdits=r})(pi||(pi={}));function mi(n,e){if(n.length<=1)return n;const t=n.length/2|0,r=n.slice(0,t),i=n.slice(t);mi(r,e),mi(i,e);let s=0,a=0,o=0;for(;st.line||e.line===t.line&&e.character>t.character?{start:t,end:e}:n}function sm(n){const e=hc(n.range);return e!==n.range?{newText:n.newText,range:e}:n}var wr={version:"v20.18.3",versions:{node:"20.18.3",acorn:"8.14.0",ada:"2.9.2",ares:"1.34.4",base64:"0.5.2",brotli:"1.1.0",cjs_module_lexer:"1.4.1",cldr:"45.0",icu:"75.1",llhttp:"8.1.2",modules:"115",napi:"9",nghttp2:"1.61.0",nghttp3:"0.7.0",ngtcp2:"1.1.0",openssl:"3.0.15+quic",simdutf:"5.6.4",tz:"2024b",undici:"6.21.1",unicode:"15.1",uv:"1.46.0",uvwasi:"0.0.21",v8:"11.3.244.8-node.25",zlib:"1.3.0.1-motley-82a5fec"},arch:"x64",platform:"linux",release:{name:"node",lts:"Iron",sourceUrl:"https://nodejs.org/download/release/v20.18.3/node-v20.18.3.tar.gz",headersUrl:"https://nodejs.org/download/release/v20.18.3/node-v20.18.3-headers.tar.gz"},moduleLoadList:["Internal Binding builtins","Internal Binding module_wrap","Internal Binding errors","NativeModule internal/assert","Internal Binding util","NativeModule internal/errors","Internal Binding config","Internal Binding timers","Internal Binding async_wrap","Internal Binding task_queue","Internal Binding symbols","NativeModule internal/async_hooks","Internal Binding constants","Internal Binding types","Internal Binding options","NativeModule internal/options","Internal Binding string_decoder","NativeModule internal/util","NativeModule internal/util/types","NativeModule internal/validators","NativeModule internal/linkedlist","NativeModule internal/priority_queue","Internal Binding icu","NativeModule internal/util/inspect","NativeModule internal/util/debuglog","NativeModule internal/timers","NativeModule internal/events/abort_listener","NativeModule events","Internal Binding buffer","NativeModule internal/buffer","NativeModule buffer","Internal Binding messaging","NativeModule internal/worker/js_transferable","NativeModule internal/querystring","NativeModule internal/constants","NativeModule path","NativeModule querystring","Internal Binding url","NativeModule internal/url","NativeModule internal/fs/utils","Internal Binding process_methods","NativeModule internal/process/per_thread","Internal Binding credentials","NativeModule internal/process/promises","NativeModule internal/fixed_queue","NativeModule async_hooks","NativeModule internal/process/task_queues","NativeModule timers","Internal Binding trace_events","Internal Binding contextify","NativeModule internal/vm","NativeModule internal/process/execution","NativeModule internal/process/warning","NativeModule internal/source_map/source_map_cache","Internal Binding fs","Internal Binding blob","Internal Binding encoding_binding","NativeModule internal/encoding","NativeModule internal/streams/utils","NativeModule util","NativeModule internal/webstreams/util","NativeModule internal/webstreams/queuingstrategies","NativeModule internal/blob","Internal Binding permission","NativeModule internal/process/permission","NativeModule fs","NativeModule internal/modules/helpers","NativeModule internal/console/constructor","NativeModule internal/console/global","NativeModule internal/util/inspector","Internal Binding inspector","NativeModule internal/webidl","Internal Binding performance","NativeModule internal/perf/utils","NativeModule internal/event_target","Internal Binding wasm_web_api","Internal Binding mksnapshot","NativeModule internal/v8/startup_snapshot","NativeModule internal/process/signal","NativeModule url","NativeModule internal/modules/package_json_reader","NativeModule internal/modules/cjs/loader","NativeModule internal/process/pre_execution","NativeModule internal/modules/esm/utils","NativeModule internal/inspector_async_hook","Internal Binding worker","NativeModule internal/modules/run_main","NativeModule internal/net","NativeModule internal/dns/utils","NativeModule internal/modules/esm/assert","NativeModule internal/modules/esm/loader","NativeModule internal/modules/esm/module_map","NativeModule internal/modules/esm/translators","NativeModule internal/modules/esm/package_config","NativeModule internal/modules/esm/formats","NativeModule internal/modules/esm/get_format","NativeModule internal/modules/esm/resolve","NativeModule internal/modules/esm/module_job","NativeModule internal/modules/esm/load","Internal Binding fs_dir","NativeModule internal/fs/dir","NativeModule string_decoder","Internal Binding fs_event_wrap","Internal Binding uv","NativeModule internal/fs/watchers","NativeModule internal/fs/recursive_watch","NativeModule internal/readline/utils","NativeModule internal/readline/callbacks","NativeModule internal/readline/interface","NativeModule internal/fs/promises","NativeModule internal/perf/performance_entry","NativeModule internal/perf/observe","NativeModule internal/perf/resource_timing","NativeModule internal/perf/nodetiming","NativeModule internal/perf/usertiming","NativeModule internal/perf/event_loop_utilization","NativeModule internal/histogram","NativeModule internal/perf/timerify","NativeModule internal/perf/performance","NativeModule internal/perf/event_loop_delay","NativeModule perf_hooks","NativeModule internal/modules/esm/initialize_import_meta","NativeModule internal/streams/destroy","NativeModule internal/abort_controller","NativeModule internal/streams/end-of-stream","NativeModule internal/streams/legacy","NativeModule internal/streams/add-abort-signal","NativeModule internal/streams/state","NativeModule internal/streams/from","NativeModule internal/streams/readable","NativeModule internal/streams/writable","NativeModule internal/streams/duplex","NativeModule internal/streams/pipeline","NativeModule internal/streams/compose","NativeModule internal/streams/operators","NativeModule stream/promises","NativeModule internal/streams/transform","NativeModule internal/streams/passthrough","NativeModule internal/streams/duplexpair","NativeModule stream","NativeModule internal/fs/streams","NativeModule fs/promises","NativeModule internal/util/parse_args/utils","NativeModule internal/util/parse_args/parse_args","NativeModule internal/mime","NativeModule internal/source_map/source_map","NativeModule module","Internal Binding crypto","NativeModule internal/crypto/random","NativeModule internal/crypto/hashnames","NativeModule internal/crypto/util","NativeModule internal/crypto/pbkdf2","NativeModule internal/crypto/scrypt","NativeModule internal/crypto/keys","NativeModule internal/crypto/hkdf","NativeModule internal/crypto/keygen","NativeModule internal/crypto/diffiehellman","NativeModule internal/streams/lazy_transform","NativeModule internal/crypto/cipher","NativeModule internal/crypto/sig","NativeModule internal/crypto/hash","NativeModule internal/crypto/x509","NativeModule internal/crypto/certificate","NativeModule crypto","NativeModule internal/crypto/webcrypto","Internal Binding stream_wrap","Internal Binding tcp_wrap","Internal Binding pipe_wrap","NativeModule internal/stream_base_commons","NativeModule diagnostics_channel","NativeModule net","Internal Binding tty_wrap","NativeModule internal/tty","NativeModule tty","NativeModule internal/deps/cjs-module-lexer/dist/lexer","Internal Binding udp_wrap","NativeModule internal/dgram","NativeModule dgram","Internal Binding process_wrap","NativeModule internal/socket_list","Internal Binding spawn_sync","NativeModule internal/child_process","NativeModule child_process","NativeModule _http_agent","Internal Binding http_parser","NativeModule internal/freelist","NativeModule _http_incoming","NativeModule _http_common","NativeModule internal/http","NativeModule _http_outgoing","NativeModule _http_client","NativeModule _http_server","NativeModule http","Internal Binding cares_wrap","NativeModule internal/tls/secure-context","NativeModule _tls_common","Internal Binding js_stream","NativeModule internal/js_stream_socket","Internal Binding tls_wrap","NativeModule _tls_wrap","NativeModule internal/tls/secure-pair","NativeModule tls","NativeModule https","Internal Binding block_list","NativeModule internal/socketaddress","NativeModule internal/blocklist","Internal Binding os","NativeModule os","NativeModule internal/dns/callback_resolver","NativeModule dns","NativeModule internal/dns/promises","NativeModule internal/util/colors","NativeModule internal/assert/assertion_error","NativeModule internal/assert/utils","NativeModule internal/assert/calltracker","NativeModule assert","Internal Binding serdes","Internal Binding profiler","Internal Binding heap_utils","Internal Binding internal_only_v8","NativeModule internal/heap_utils","NativeModule internal/promise_hooks","Internal Binding v8","NativeModule v8","NativeModule internal/worker/io","NativeModule internal/error_serdes","NativeModule internal/worker","NativeModule worker_threads","NativeModule internal/file","NativeModule internal/readline/emitKeypressEvents","NativeModule internal/readline/promises","NativeModule readline/promises","NativeModule readline","Internal Binding zlib","NativeModule zlib","NativeModule process","Internal Binding report","NativeModule internal/process/report","NativeModule constants","NativeModule internal/crypto/webidl"],_events:{newListener:[null,null],removeListener:[null,null]},_eventsCount:3,domain:null,_exiting:!1,config:{target_defaults:{cflags:[],default_configuration:"Release",defines:["NODE_OPENSSL_CONF_NAME=nodejs_conf","NODE_OPENSSL_HAS_QUIC","ICU_NO_USER_DATA_OVERRIDE"],include_dirs:[],libraries:[]},variables:{asan:0,clang:0,coverage:!1,dcheck_always_on:0,debug_nghttp2:!1,debug_node:!1,enable_lto:!1,enable_pgo_generate:!1,enable_pgo_use:!1,error_on_warn:!1,force_dynamic_crt:0,gas_version:"2.35",host_arch:"x64",icu_data_in:"../../deps/icu-tmp/icudt75l.dat",icu_endianness:"l",icu_gyp_path:"tools/icu/icu-generic.gyp",icu_path:"deps/icu-small",icu_small:!1,icu_ver_major:"75",is_debug:0,libdir:"lib",llvm_version:"0.0",napi_build_version:"9",node_builtin_shareable_builtins:["deps/cjs-module-lexer/lexer.js","deps/cjs-module-lexer/dist/lexer.js","deps/undici/undici.js"],node_byteorder:"little",node_debug_lib:!1,node_enable_d8:!1,node_enable_v8_vtunejit:!1,node_fipsinstall:!1,node_install_corepack:!0,node_install_npm:!0,node_library_files:["lib/_http_agent.js","lib/_http_client.js","lib/_http_common.js","lib/_http_incoming.js","lib/_http_outgoing.js","lib/_http_server.js","lib/_stream_duplex.js","lib/_stream_passthrough.js","lib/_stream_readable.js","lib/_stream_transform.js","lib/_stream_wrap.js","lib/_stream_writable.js","lib/_tls_common.js","lib/_tls_wrap.js","lib/assert.js","lib/assert/strict.js","lib/async_hooks.js","lib/buffer.js","lib/child_process.js","lib/cluster.js","lib/console.js","lib/constants.js","lib/crypto.js","lib/dgram.js","lib/diagnostics_channel.js","lib/dns.js","lib/dns/promises.js","lib/domain.js","lib/events.js","lib/fs.js","lib/fs/promises.js","lib/http.js","lib/http2.js","lib/https.js","lib/inspector.js","lib/inspector/promises.js","lib/internal/abort_controller.js","lib/internal/assert.js","lib/internal/assert/assertion_error.js","lib/internal/assert/calltracker.js","lib/internal/assert/utils.js","lib/internal/async_hooks.js","lib/internal/blob.js","lib/internal/blocklist.js","lib/internal/bootstrap/node.js","lib/internal/bootstrap/realm.js","lib/internal/bootstrap/shadow_realm.js","lib/internal/bootstrap/switches/does_not_own_process_state.js","lib/internal/bootstrap/switches/does_own_process_state.js","lib/internal/bootstrap/switches/is_main_thread.js","lib/internal/bootstrap/switches/is_not_main_thread.js","lib/internal/bootstrap/web/exposed-wildcard.js","lib/internal/bootstrap/web/exposed-window-or-worker.js","lib/internal/buffer.js","lib/internal/child_process.js","lib/internal/child_process/serialization.js","lib/internal/cli_table.js","lib/internal/cluster/child.js","lib/internal/cluster/primary.js","lib/internal/cluster/round_robin_handle.js","lib/internal/cluster/shared_handle.js","lib/internal/cluster/utils.js","lib/internal/cluster/worker.js","lib/internal/console/constructor.js","lib/internal/console/global.js","lib/internal/constants.js","lib/internal/crypto/aes.js","lib/internal/crypto/certificate.js","lib/internal/crypto/cfrg.js","lib/internal/crypto/cipher.js","lib/internal/crypto/diffiehellman.js","lib/internal/crypto/ec.js","lib/internal/crypto/hash.js","lib/internal/crypto/hashnames.js","lib/internal/crypto/hkdf.js","lib/internal/crypto/keygen.js","lib/internal/crypto/keys.js","lib/internal/crypto/mac.js","lib/internal/crypto/pbkdf2.js","lib/internal/crypto/random.js","lib/internal/crypto/rsa.js","lib/internal/crypto/scrypt.js","lib/internal/crypto/sig.js","lib/internal/crypto/util.js","lib/internal/crypto/webcrypto.js","lib/internal/crypto/webidl.js","lib/internal/crypto/x509.js","lib/internal/debugger/inspect.js","lib/internal/debugger/inspect_client.js","lib/internal/debugger/inspect_repl.js","lib/internal/dgram.js","lib/internal/dns/callback_resolver.js","lib/internal/dns/promises.js","lib/internal/dns/utils.js","lib/internal/encoding.js","lib/internal/error_serdes.js","lib/internal/errors.js","lib/internal/event_target.js","lib/internal/events/abort_listener.js","lib/internal/events/symbols.js","lib/internal/file.js","lib/internal/fixed_queue.js","lib/internal/freelist.js","lib/internal/freeze_intrinsics.js","lib/internal/fs/cp/cp-sync.js","lib/internal/fs/cp/cp.js","lib/internal/fs/dir.js","lib/internal/fs/promises.js","lib/internal/fs/read/context.js","lib/internal/fs/recursive_watch.js","lib/internal/fs/rimraf.js","lib/internal/fs/streams.js","lib/internal/fs/sync_write_stream.js","lib/internal/fs/utils.js","lib/internal/fs/watchers.js","lib/internal/heap_utils.js","lib/internal/histogram.js","lib/internal/http.js","lib/internal/http2/compat.js","lib/internal/http2/core.js","lib/internal/http2/util.js","lib/internal/inspector_async_hook.js","lib/internal/inspector_network_tracking.js","lib/internal/js_stream_socket.js","lib/internal/legacy/processbinding.js","lib/internal/linkedlist.js","lib/internal/main/check_syntax.js","lib/internal/main/embedding.js","lib/internal/main/eval_stdin.js","lib/internal/main/eval_string.js","lib/internal/main/inspect.js","lib/internal/main/mksnapshot.js","lib/internal/main/print_help.js","lib/internal/main/prof_process.js","lib/internal/main/repl.js","lib/internal/main/run_main_module.js","lib/internal/main/test_runner.js","lib/internal/main/watch_mode.js","lib/internal/main/worker_thread.js","lib/internal/mime.js","lib/internal/modules/cjs/loader.js","lib/internal/modules/esm/assert.js","lib/internal/modules/esm/create_dynamic_module.js","lib/internal/modules/esm/fetch_module.js","lib/internal/modules/esm/formats.js","lib/internal/modules/esm/get_format.js","lib/internal/modules/esm/hooks.js","lib/internal/modules/esm/initialize_import_meta.js","lib/internal/modules/esm/load.js","lib/internal/modules/esm/loader.js","lib/internal/modules/esm/module_job.js","lib/internal/modules/esm/module_map.js","lib/internal/modules/esm/package_config.js","lib/internal/modules/esm/resolve.js","lib/internal/modules/esm/shared_constants.js","lib/internal/modules/esm/translators.js","lib/internal/modules/esm/utils.js","lib/internal/modules/esm/worker.js","lib/internal/modules/helpers.js","lib/internal/modules/package_json_reader.js","lib/internal/modules/run_main.js","lib/internal/navigator.js","lib/internal/net.js","lib/internal/options.js","lib/internal/per_context/domexception.js","lib/internal/per_context/messageport.js","lib/internal/per_context/primordials.js","lib/internal/perf/event_loop_delay.js","lib/internal/perf/event_loop_utilization.js","lib/internal/perf/nodetiming.js","lib/internal/perf/observe.js","lib/internal/perf/performance.js","lib/internal/perf/performance_entry.js","lib/internal/perf/resource_timing.js","lib/internal/perf/timerify.js","lib/internal/perf/usertiming.js","lib/internal/perf/utils.js","lib/internal/policy/manifest.js","lib/internal/policy/sri.js","lib/internal/priority_queue.js","lib/internal/process/execution.js","lib/internal/process/per_thread.js","lib/internal/process/permission.js","lib/internal/process/policy.js","lib/internal/process/pre_execution.js","lib/internal/process/promises.js","lib/internal/process/report.js","lib/internal/process/signal.js","lib/internal/process/task_queues.js","lib/internal/process/warning.js","lib/internal/process/worker_thread_only.js","lib/internal/promise_hooks.js","lib/internal/querystring.js","lib/internal/readline/callbacks.js","lib/internal/readline/emitKeypressEvents.js","lib/internal/readline/interface.js","lib/internal/readline/promises.js","lib/internal/readline/utils.js","lib/internal/repl.js","lib/internal/repl/await.js","lib/internal/repl/history.js","lib/internal/repl/utils.js","lib/internal/socket_list.js","lib/internal/socketaddress.js","lib/internal/source_map/prepare_stack_trace.js","lib/internal/source_map/source_map.js","lib/internal/source_map/source_map_cache.js","lib/internal/stream_base_commons.js","lib/internal/streams/add-abort-signal.js","lib/internal/streams/compose.js","lib/internal/streams/destroy.js","lib/internal/streams/duplex.js","lib/internal/streams/duplexify.js","lib/internal/streams/duplexpair.js","lib/internal/streams/end-of-stream.js","lib/internal/streams/from.js","lib/internal/streams/lazy_transform.js","lib/internal/streams/legacy.js","lib/internal/streams/operators.js","lib/internal/streams/passthrough.js","lib/internal/streams/pipeline.js","lib/internal/streams/readable.js","lib/internal/streams/state.js","lib/internal/streams/transform.js","lib/internal/streams/utils.js","lib/internal/streams/writable.js","lib/internal/test/binding.js","lib/internal/test/transfer.js","lib/internal/test_runner/coverage.js","lib/internal/test_runner/harness.js","lib/internal/test_runner/mock/loader.js","lib/internal/test_runner/mock/mock.js","lib/internal/test_runner/mock/mock_timers.js","lib/internal/test_runner/reporter/dot.js","lib/internal/test_runner/reporter/junit.js","lib/internal/test_runner/reporter/lcov.js","lib/internal/test_runner/reporter/spec.js","lib/internal/test_runner/reporter/tap.js","lib/internal/test_runner/reporter/utils.js","lib/internal/test_runner/reporter/v8-serializer.js","lib/internal/test_runner/runner.js","lib/internal/test_runner/test.js","lib/internal/test_runner/tests_stream.js","lib/internal/test_runner/utils.js","lib/internal/timers.js","lib/internal/tls/secure-context.js","lib/internal/tls/secure-pair.js","lib/internal/trace_events_async_hooks.js","lib/internal/tty.js","lib/internal/url.js","lib/internal/util.js","lib/internal/util/colors.js","lib/internal/util/comparisons.js","lib/internal/util/debuglog.js","lib/internal/util/embedding.js","lib/internal/util/inspect.js","lib/internal/util/inspector.js","lib/internal/util/iterable_weak_map.js","lib/internal/util/parse_args/parse_args.js","lib/internal/util/parse_args/utils.js","lib/internal/util/types.js","lib/internal/v8/startup_snapshot.js","lib/internal/v8_prof_polyfill.js","lib/internal/v8_prof_processor.js","lib/internal/validators.js","lib/internal/vm.js","lib/internal/vm/module.js","lib/internal/wasm_web_api.js","lib/internal/watch_mode/files_watcher.js","lib/internal/watchdog.js","lib/internal/webidl.js","lib/internal/webstreams/adapters.js","lib/internal/webstreams/compression.js","lib/internal/webstreams/encoding.js","lib/internal/webstreams/queuingstrategies.js","lib/internal/webstreams/readablestream.js","lib/internal/webstreams/transfer.js","lib/internal/webstreams/transformstream.js","lib/internal/webstreams/util.js","lib/internal/webstreams/writablestream.js","lib/internal/worker.js","lib/internal/worker/io.js","lib/internal/worker/js_transferable.js","lib/module.js","lib/net.js","lib/os.js","lib/path.js","lib/path/posix.js","lib/path/win32.js","lib/perf_hooks.js","lib/process.js","lib/punycode.js","lib/querystring.js","lib/readline.js","lib/readline/promises.js","lib/repl.js","lib/sea.js","lib/stream.js","lib/stream/consumers.js","lib/stream/promises.js","lib/stream/web.js","lib/string_decoder.js","lib/sys.js","lib/test.js","lib/test/reporters.js","lib/timers.js","lib/timers/promises.js","lib/tls.js","lib/trace_events.js","lib/tty.js","lib/url.js","lib/util.js","lib/util/types.js","lib/v8.js","lib/vm.js","lib/wasi.js","lib/worker_threads.js","lib/zlib.js"],node_module_version:115,node_no_browser_globals:!1,node_prefix:"/",node_release_urlbase:"https://nodejs.org/download/release/",node_section_ordering_info:"",node_shared:!1,node_shared_ada:!1,node_shared_brotli:!1,node_shared_cares:!1,node_shared_http_parser:!1,node_shared_libuv:!1,node_shared_nghttp2:!1,node_shared_nghttp3:!1,node_shared_ngtcp2:!1,node_shared_openssl:!1,node_shared_simdjson:!1,node_shared_simdutf:!1,node_shared_uvwasi:!1,node_shared_zlib:!1,node_tag:"",node_target_type:"executable",node_use_bundled_v8:!0,node_use_node_code_cache:!0,node_use_node_snapshot:!0,node_use_openssl:!0,node_use_v8_platform:!0,node_with_ltcg:!1,node_without_node_options:!1,node_write_snapshot_as_array_literals:!1,openssl_is_fips:!1,openssl_quic:!0,ossfuzz:!1,shlib_suffix:"so.115",single_executable_application:!0,target_arch:"x64",ubsan:0,use_prefix_to_find_headers:!1,v8_enable_31bit_smis_on_64bit_arch:0,v8_enable_extensible_ro_snapshot:0,v8_enable_gdbjit:0,v8_enable_hugepage:0,v8_enable_i18n_support:1,v8_enable_inspector:1,v8_enable_javascript_promise_hooks:1,v8_enable_lite_mode:0,v8_enable_maglev:0,v8_enable_object_print:1,v8_enable_pointer_compression:0,v8_enable_sandbox:0,v8_enable_shared_ro_heap:1,v8_enable_short_builtin_calls:1,v8_enable_v8_checks:0,v8_enable_webassembly:1,v8_no_strict_aliasing:1,v8_optimized_debug:1,v8_promise_internal_field_count:1,v8_random_seed:0,v8_trace_maps:0,v8_use_siphash:1,want_separate_host_toolset:0}},allowedNodeEnvironmentFlags:{},features:{inspector:!0,debug:!1,uv:!0,ipv6:!0,tls_alpn:!0,tls_sni:!0,tls_ocsp:!0,tls:!0,cached_builtins:!0},sourceMapsEnabled:!1,stdout:{connecting:!1,_hadError:!1,_parent:null,_host:null,_closeAfterHandlingError:!1,_events:{},_readableState:{highWaterMark:16384,buffer:[],bufferIndex:0,length:0,pipes:[],awaitDrainWriters:null,readable:!1},_writableState:{highWaterMark:16384,length:0,corked:0,writelen:0,bufferedIndex:0,pendingcb:0},allowHalfOpen:!1,_eventsCount:1,_sockname:null,_pendingData:null,_pendingEncoding:"",server:null,_server:null,_type:"pipe",fd:1,_isStdio:!0},stdin:{connecting:!1,_hadError:!1,_parent:null,_host:null,_closeAfterHandlingError:!1,_events:{},_readableState:{highWaterMark:16384,buffer:[],bufferIndex:0,length:0,pipes:[],awaitDrainWriters:null},_writableState:{highWaterMark:16384,length:0,corked:0,writelen:0,bufferedIndex:0,pendingcb:0},allowHalfOpen:!1,_eventsCount:2,_sockname:null,_pendingData:null,_pendingEncoding:"",server:null,_server:null,fd:0},stderr:{connecting:!1,_hadError:!1,_parent:null,_host:null,_closeAfterHandlingError:!1,_events:{},_readableState:{highWaterMark:16384,buffer:[],bufferIndex:0,length:0,pipes:[],awaitDrainWriters:null,readable:!1},_writableState:{highWaterMark:16384,length:0,corked:0,writelen:0,bufferedIndex:0,pendingcb:0},allowHalfOpen:!1,_eventsCount:1,_sockname:null,_pendingData:null,_pendingEncoding:"",server:null,_server:null,_type:"pipe",fd:2,_isStdio:!0},env:{GITHUB_STATE:"/home/runner/work/_temp/_runner_file_commands/save_state_d53cc035-1b76-4af7-9fb5-24f8457de40c",STATS_TRP:"true",DEPLOYMENT_BASEPATH:"/opt/runner",DOTNET_NOLOGO:"1",USER:"runner",npm_config_user_agent:"npm/10.8.2 node/v20.18.3 linux x64 workspaces/false ci/github-actions",CI:"true",RUNNER_ENVIRONMENT:"github-hosted",GITHUB_ENV:"/home/runner/work/_temp/_runner_file_commands/set_env_d53cc035-1b76-4af7-9fb5-24f8457de40c",PIPX_HOME:"/opt/pipx",npm_node_execpath:"/opt/hostedtoolcache/node/20.18.3/x64/bin/node",JAVA_HOME_8_X64:"/usr/lib/jvm/temurin-8-jdk-amd64",SHLVL:"1",npm_config_noproxy:"",HOME:"/home/runner",RUNNER_TEMP:"/home/runner/work/_temp",GITHUB_EVENT_PATH:"/home/runner/work/_temp/_github_workflow/event.json",npm_package_json:"/home/runner/work/md/md/package.json",JAVA_HOME_11_X64:"/usr/lib/jvm/temurin-11-jdk-amd64",PIPX_BIN_DIR:"/opt/pipx_bin",GITHUB_REPOSITORY_OWNER:"doocs",GRADLE_HOME:"/usr/share/gradle-8.12.1",ANDROID_NDK_LATEST_HOME:"/usr/local/lib/android/sdk/ndk/28.0.13004108",JAVA_HOME_21_X64:"/usr/lib/jvm/temurin-21-jdk-amd64",STATS_RDCL:"true",GITHUB_RETENTION_DAYS:"90",GITHUB_REPOSITORY_OWNER_ID:"43716716",POWERSHELL_DISTRIBUTION_CHANNEL:"GitHub-Actions-ubuntu24",AZURE_EXTENSION_DIR:"/opt/az/azcliextensions",GITHUB_HEAD_REF:"",npm_config_userconfig:"/home/runner/.npmrc",npm_config_local_prefix:"/home/runner/work/md/md",SYSTEMD_EXEC_PID:"835",GITHUB_GRAPHQL_URL:"https://api.github.com/graphql",COLOR:"0",NVM_DIR:"/home/runner/.nvm",DOTNET_SKIP_FIRST_TIME_EXPERIENCE:"1",GOROOT_1_21_X64:"/opt/hostedtoolcache/go/1.21.13/x64",JAVA_HOME_17_X64:"/usr/lib/jvm/temurin-17-jdk-amd64",ImageVersion:"20250223.1.0",RUNNER_OS:"Linux",GITHUB_API_URL:"https://api.github.com",GOROOT_1_22_X64:"/opt/hostedtoolcache/go/1.22.12/x64",SWIFT_PATH:"/usr/share/swift/usr/bin",RUNNER_USER:"runner",STATS_V3PS:"true",CHROMEWEBDRIVER:"/usr/local/share/chromedriver-linux64",GOROOT_1_23_X64:"/opt/hostedtoolcache/go/1.23.6/x64",JOURNAL_STREAM:"8:5890",GITHUB_WORKFLOW:"Build and Deploy",_:"/opt/hostedtoolcache/node/20.18.3/x64/bin/npm",npm_config_prefix:"/opt/hostedtoolcache/node/20.18.3/x64",npm_config_npm_version:"10.8.2",MEMORY_PRESSURE_WATCH:"/sys/fs/cgroup/system.slice/runner-provisioner.service/memory.pressure",ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE:"/opt/actionarchivecache",STATS_D:"true",GITHUB_RUN_ID:"13625656549",STATS_VMFE:"true",npm_config_cache:"/home/runner/.npm",GITHUB_REF_TYPE:"branch",BOOTSTRAP_HASKELL_NONINTERACTIVE:"1",GITHUB_WORKFLOW_SHA:"28ede70a704c676eed43a63c290863c0eb2e51aa",GITHUB_BASE_REF:"",ImageOS:"ubuntu24",GITHUB_WORKFLOW_REF:"doocs/md/.github/workflows/build.yml@refs/heads/main",PERFLOG_LOCATION_SETTING:"RUNNER_PERFLOG",GITHUB_ACTION_REPOSITORY:"",npm_config_node_gyp:"/opt/hostedtoolcache/node/20.18.3/x64/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",PATH:"/home/runner/work/md/md/node_modules/.bin:/home/runner/work/md/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/20.18.3/x64/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/home/runner/work/md/md/node_modules/.bin:/home/runner/work/md/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/20.18.3/x64/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/opt/hostedtoolcache/node/20.18.3/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin",ANT_HOME:"/usr/share/ant",DOTNET_MULTILEVEL_LOOKUP:"0",RUNNER_TRACKING_ID:"github_4ead6fd7-fa08-4c5d-a36f-08f8752a0ffe",INVOCATION_ID:"015617c2a5044170892be94fa638d8ab",RUNNER_TOOL_CACHE:"/opt/hostedtoolcache",NODE:"/opt/hostedtoolcache/node/20.18.3/x64/bin/node",npm_package_name:"md",GITHUB_ACTION:"__run_2",GITHUB_RUN_NUMBER:"502",GITHUB_TRIGGERING_ACTOR:"yanglbme",RUNNER_ARCH:"X64",XDG_RUNTIME_DIR:"/run/user/1001",AGENT_TOOLSDIRECTORY:"/opt/hostedtoolcache",LANG:"C.UTF-8",VCPKG_INSTALLATION_ROOT:"/usr/local/share/vcpkg",CONDA:"/usr/share/miniconda",RUNNER_NAME:"GitHub Actions 14",XDG_CONFIG_HOME:"/home/runner/.config",STATS_VMD:"true",GITHUB_REF_NAME:"main",GITHUB_REPOSITORY:"doocs/md",STATS_D_D:"true",npm_lifecycle_script:"vite build",STATS_UE:"true",ANDROID_NDK_ROOT:"/usr/local/lib/android/sdk/ndk/27.2.12479018",GITHUB_ACTION_REF:"",DEBIAN_FRONTEND:"noninteractive",GITHUB_REPOSITORY_ID:"218952803",GITHUB_ACTIONS:"true",STATS_PIP:"false",npm_package_version:"1.6.0",npm_lifecycle_event:"build:only",GITHUB_REF_PROTECTED:"true",GITHUB_WORKSPACE:"/home/runner/work/md/md",ACCEPT_EULA:"Y",GITHUB_JOB:"build-and-deploy",RUNNER_PERFLOG:"/home/runner/perflog",GITHUB_SHA:"28ede70a704c676eed43a63c290863c0eb2e51aa",GITHUB_RUN_ATTEMPT:"1",STATS_D_TC:"true",GITHUB_REF:"refs/heads/main",GITHUB_ACTOR:"yanglbme",ANDROID_SDK_ROOT:"/usr/local/lib/android/sdk",npm_config_globalconfig:"/opt/hostedtoolcache/node/20.18.3/x64/etc/npmrc",npm_config_init_module:"/home/runner/.npm-init.js",GITHUB_PATH:"/home/runner/work/_temp/_runner_file_commands/add_path_d53cc035-1b76-4af7-9fb5-24f8457de40c",JAVA_HOME:"/usr/lib/jvm/temurin-17-jdk-amd64",PWD:"/home/runner/work/md/md",GITHUB_ACTOR_ID:"21008209",RUNNER_WORKSPACE:"/home/runner/work/md",npm_execpath:"/opt/hostedtoolcache/node/20.18.3/x64/lib/node_modules/npm/bin/npm-cli.js",HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS:"3650",GITHUB_EVENT_NAME:"push",HOMEBREW_NO_AUTO_UPDATE:"1",ANDROID_HOME:"/usr/local/lib/android/sdk",GITHUB_SERVER_URL:"https://github.com",GECKOWEBDRIVER:"/usr/local/share/gecko_driver",GHCUP_INSTALL_BASE_PREFIX:"/usr/local",GITHUB_OUTPUT:"/home/runner/work/_temp/_runner_file_commands/set_output_d53cc035-1b76-4af7-9fb5-24f8457de40c",npm_config_global_prefix:"/opt/hostedtoolcache/node/20.18.3/x64",EDGEWEBDRIVER:"/usr/local/share/edge_driver",STATS_EXT:"true",npm_command:"run-script",ANDROID_NDK:"/usr/local/lib/android/sdk/ndk/27.2.12479018",SGX_AESM_ADDR:"1",CHROME_BIN:"/usr/bin/google-chrome",SELENIUM_JAR_PATH:"/usr/share/java/selenium-server.jar",MEMORY_PRESSURE_WRITE:"c29tZSAyMDAwMDAgMjAwMDAwMAA=",STATS_EXTP:"https://provjobdprod.z13.web.core.windows.net/settings/provjobdsettings-latest/provjobd.data",ANDROID_NDK_HOME:"/usr/local/lib/android/sdk/ndk/27.2.12479018",GITHUB_STEP_SUMMARY:"/home/runner/work/_temp/_runner_file_commands/step_summary_d53cc035-1b76-4af7-9fb5-24f8457de40c",INIT_CWD:"/home/runner/work/md/md",EDITOR:"vi",NODE_ENV:"production",LAUNCH_EDITOR:"code"},title:"node",argv:["/opt/hostedtoolcache/node/20.18.3/x64/bin/node","/home/runner/work/md/md/node_modules/.bin/vite","build"],execArgv:[],pid:2138,ppid:2137,execPath:"/opt/hostedtoolcache/node/20.18.3/x64/bin/node",debugPort:9229,argv0:"node",_preload_modules:[],report:{directory:"",filename:"",compact:!1,excludeNetwork:!1,signal:"SIGUSR2",reportOnFatalError:!1,reportOnSignal:!1,reportOnUncaughtException:!1}},pc;(()=>{var n={470:i=>{function s(l){if(typeof l!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(l))}function a(l,c){for(var u,d="",f=0,h=-1,m=0,g=0;g<=l.length;++g){if(g2){var E=d.lastIndexOf("/");if(E!==d.length-1){E===-1?(d="",f=0):f=(d=d.slice(0,E)).length-1-d.lastIndexOf("/"),h=g,m=0;continue}}else if(d.length===2||d.length===1){d="",f=0,h=g,m=0;continue}}c&&(d.length>0?d+="/..":d="..",f=2)}else d.length>0?d+="/"+l.slice(h+1,g):d=l.slice(h+1,g),f=g-h-1;h=g,m=0}else u===46&&m!==-1?++m:m=-1}return d}var o={resolve:function(){for(var l,c="",u=!1,d=arguments.length-1;d>=-1&&!u;d--){var f;d>=0?f=arguments[d]:(l===void 0&&(l=wr.cwd()),f=l),s(f),f.length!==0&&(c=f+"/"+c,u=f.charCodeAt(0)===47)}return c=a(c,!u),u?c.length>0?"/"+c:"/":c.length>0?c:"."},normalize:function(l){if(s(l),l.length===0)return".";var c=l.charCodeAt(0)===47,u=l.charCodeAt(l.length-1)===47;return(l=a(l,!c)).length!==0||c||(l="."),l.length>0&&u&&(l+="/"),c?"/"+l:l},isAbsolute:function(l){return s(l),l.length>0&&l.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var l,c=0;c0&&(l===void 0?l=u:l+="/"+u)}return l===void 0?".":o.normalize(l)},relative:function(l,c){if(s(l),s(c),l===c||(l=o.resolve(l))===(c=o.resolve(c)))return"";for(var u=1;ug){if(c.charCodeAt(h+y)===47)return c.slice(h+y+1);if(y===0)return c.slice(h+y)}else f>g&&(l.charCodeAt(u+y)===47?E=y:y===0&&(E=0));break}var R=l.charCodeAt(u+y);if(R!==c.charCodeAt(h+y))break;R===47&&(E=y)}var _="";for(y=u+E+1;y<=d;++y)y!==d&&l.charCodeAt(y)!==47||(_.length===0?_+="..":_+="/..");return _.length>0?_+c.slice(h+E):(h+=E,c.charCodeAt(h)===47&&++h,c.slice(h))},_makeLong:function(l){return l},dirname:function(l){if(s(l),l.length===0)return".";for(var c=l.charCodeAt(0),u=c===47,d=-1,f=!0,h=l.length-1;h>=1;--h)if((c=l.charCodeAt(h))===47){if(!f){d=h;break}}else f=!1;return d===-1?u?"/":".":u&&d===1?"//":l.slice(0,d)},basename:function(l,c){if(c!==void 0&&typeof c!="string")throw new TypeError('"ext" argument must be a string');s(l);var u,d=0,f=-1,h=!0;if(c!==void 0&&c.length>0&&c.length<=l.length){if(c.length===l.length&&c===l)return"";var m=c.length-1,g=-1;for(u=l.length-1;u>=0;--u){var E=l.charCodeAt(u);if(E===47){if(!h){d=u+1;break}}else g===-1&&(h=!1,g=u+1),m>=0&&(E===c.charCodeAt(m)?--m==-1&&(f=u):(m=-1,f=g))}return d===f?f=g:f===-1&&(f=l.length),l.slice(d,f)}for(u=l.length-1;u>=0;--u)if(l.charCodeAt(u)===47){if(!h){d=u+1;break}}else f===-1&&(h=!1,f=u+1);return f===-1?"":l.slice(d,f)},extname:function(l){s(l);for(var c=-1,u=0,d=-1,f=!0,h=0,m=l.length-1;m>=0;--m){var g=l.charCodeAt(m);if(g!==47)d===-1&&(f=!1,d=m+1),g===46?c===-1?c=m:h!==1&&(h=1):c!==-1&&(h=-1);else if(!f){u=m+1;break}}return c===-1||d===-1||h===0||h===1&&c===d-1&&c===u+1?"":l.slice(c,d)},format:function(l){if(l===null||typeof l!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof l);return function(c,u){var d=u.dir||u.root,f=u.base||(u.name||"")+(u.ext||"");return d?d===u.root?d+f:d+"/"+f:f}(0,l)},parse:function(l){s(l);var c={root:"",dir:"",base:"",ext:"",name:""};if(l.length===0)return c;var u,d=l.charCodeAt(0),f=d===47;f?(c.root="/",u=1):u=0;for(var h=-1,m=0,g=-1,E=!0,y=l.length-1,R=0;y>=u;--y)if((d=l.charCodeAt(y))!==47)g===-1&&(E=!1,g=y+1),d===46?h===-1?h=y:R!==1&&(R=1):h!==-1&&(R=-1);else if(!E){m=y+1;break}return h===-1||g===-1||R===0||R===1&&h===g-1&&h===m+1?g!==-1&&(c.base=c.name=m===0&&f?l.slice(1,g):l.slice(m,g)):(m===0&&f?(c.name=l.slice(1,h),c.base=l.slice(1,g)):(c.name=l.slice(m,h),c.base=l.slice(m,g)),c.ext=l.slice(h,g)),m>0?c.dir=l.slice(0,m-1):f&&(c.dir="/"),c},sep:"/",delimiter:":",win32:null,posix:null};o.posix=o,i.exports=o}},e={};function t(i){var s=e[i];if(s!==void 0)return s.exports;var a=e[i]={exports:{}};return n[i](a,a.exports,t),a.exports}t.d=(i,s)=>{for(var a in s)t.o(s,a)&&!t.o(i,a)&&Object.defineProperty(i,a,{enumerable:!0,get:s[a]})},t.o=(i,s)=>Object.prototype.hasOwnProperty.call(i,s),t.r=i=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(i,"__esModule",{value:!0})};var r={};(()=>{let i;t.r(r),t.d(r,{URI:()=>f,Utils:()=>be}),typeof wr=="object"?i=wr.platform==="win32":typeof navigator=="object"&&(i=navigator.userAgent.indexOf("Windows")>=0);const s=/^\w[\w\d+.-]*$/,a=/^\//,o=/^\/\//;function l(v,T){if(!v.scheme&&T)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${v.authority}", path: "${v.path}", query: "${v.query}", fragment: "${v.fragment}"}`);if(v.scheme&&!s.test(v.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(v.path){if(v.authority){if(!a.test(v.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(o.test(v.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}const c="",u="/",d=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class f{constructor(T,A,N,L,O,w=!1){Je(this,"scheme");Je(this,"authority");Je(this,"path");Je(this,"query");Je(this,"fragment");typeof T=="object"?(this.scheme=T.scheme||c,this.authority=T.authority||c,this.path=T.path||c,this.query=T.query||c,this.fragment=T.fragment||c):(this.scheme=function(ye,z){return ye||z?ye:"file"}(T,w),this.authority=A||c,this.path=function(ye,z){switch(ye){case"https":case"http":case"file":z?z[0]!==u&&(z=u+z):z=u}return z}(this.scheme,N||c),this.query=L||c,this.fragment=O||c,l(this,w))}static isUri(T){return T instanceof f||!!T&&typeof T.authority=="string"&&typeof T.fragment=="string"&&typeof T.path=="string"&&typeof T.query=="string"&&typeof T.scheme=="string"&&typeof T.fsPath=="string"&&typeof T.with=="function"&&typeof T.toString=="function"}get fsPath(){return R(this)}with(T){if(!T)return this;let{scheme:A,authority:N,path:L,query:O,fragment:w}=T;return A===void 0?A=this.scheme:A===null&&(A=c),N===void 0?N=this.authority:N===null&&(N=c),L===void 0?L=this.path:L===null&&(L=c),O===void 0?O=this.query:O===null&&(O=c),w===void 0?w=this.fragment:w===null&&(w=c),A===this.scheme&&N===this.authority&&L===this.path&&O===this.query&&w===this.fragment?this:new m(A,N,L,O,w)}static parse(T,A=!1){const N=d.exec(T);return N?new m(N[2]||c,ne(N[4]||c),ne(N[5]||c),ne(N[7]||c),ne(N[9]||c),A):new m(c,c,c,c,c)}static file(T){let A=c;if(i&&(T=T.replace(/\\/g,u)),T[0]===u&&T[1]===u){const N=T.indexOf(u,2);N===-1?(A=T.substring(2),T=u):(A=T.substring(2,N),T=T.substring(N)||u)}return new m("file",A,T,c,c)}static from(T){const A=new m(T.scheme,T.authority,T.path,T.query,T.fragment);return l(A,!0),A}toString(T=!1){return _(this,T)}toJSON(){return this}static revive(T){if(T){if(T instanceof f)return T;{const A=new m(T);return A._formatted=T.external,A._fsPath=T._sep===h?T.fsPath:null,A}}return T}}const h=i?1:void 0;class m extends f{constructor(){super(...arguments);Je(this,"_formatted",null);Je(this,"_fsPath",null)}get fsPath(){return this._fsPath||(this._fsPath=R(this)),this._fsPath}toString(A=!1){return A?_(this,!0):(this._formatted||(this._formatted=_(this,!1)),this._formatted)}toJSON(){const A={$mid:1};return this._fsPath&&(A.fsPath=this._fsPath,A._sep=h),this._formatted&&(A.external=this._formatted),this.path&&(A.path=this.path),this.scheme&&(A.scheme=this.scheme),this.authority&&(A.authority=this.authority),this.query&&(A.query=this.query),this.fragment&&(A.fragment=this.fragment),A}}const g={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function E(v,T,A){let N,L=-1;for(let O=0;O=97&&w<=122||w>=65&&w<=90||w>=48&&w<=57||w===45||w===46||w===95||w===126||T&&w===47||A&&w===91||A&&w===93||A&&w===58)L!==-1&&(N+=encodeURIComponent(v.substring(L,O)),L=-1),N!==void 0&&(N+=v.charAt(O));else{N===void 0&&(N=v.substr(0,O));const ye=g[w];ye!==void 0?(L!==-1&&(N+=encodeURIComponent(v.substring(L,O)),L=-1),N+=ye):L===-1&&(L=O)}}return L!==-1&&(N+=encodeURIComponent(v.substring(L))),N!==void 0?N:v}function y(v){let T;for(let A=0;A1&&v.scheme==="file"?`//${v.authority}${v.path}`:v.path.charCodeAt(0)===47&&(v.path.charCodeAt(1)>=65&&v.path.charCodeAt(1)<=90||v.path.charCodeAt(1)>=97&&v.path.charCodeAt(1)<=122)&&v.path.charCodeAt(2)===58?v.path[1].toLowerCase()+v.path.substr(2):v.path,i&&(A=A.replace(/\//g,"\\")),A}function _(v,T){const A=T?y:E;let N="",{scheme:L,authority:O,path:w,query:ye,fragment:z}=v;if(L&&(N+=L,N+=":"),(O||L==="file")&&(N+=u,N+=u),O){let B=O.indexOf("@");if(B!==-1){const at=O.substr(0,B);O=O.substr(B+1),B=at.lastIndexOf(":"),B===-1?N+=A(at,!1,!1):(N+=A(at.substr(0,B),!1,!1),N+=":",N+=A(at.substr(B+1),!1,!0)),N+="@"}O=O.toLowerCase(),B=O.lastIndexOf(":"),B===-1?N+=A(O,!1,!0):(N+=A(O.substr(0,B),!1,!0),N+=O.substr(B))}if(w){if(w.length>=3&&w.charCodeAt(0)===47&&w.charCodeAt(2)===58){const B=w.charCodeAt(1);B>=65&&B<=90&&(w=`/${String.fromCharCode(B+32)}:${w.substr(3)}`)}else if(w.length>=2&&w.charCodeAt(1)===58){const B=w.charCodeAt(0);B>=65&&B<=90&&(w=`${String.fromCharCode(B+32)}:${w.substr(2)}`)}N+=A(w,!0,!1)}return ye&&(N+="?",N+=A(ye,!1,!1)),z&&(N+="#",N+=T?z:E(z,!1,!1)),N}function I(v){try{return decodeURIComponent(v)}catch{return v.length>3?v.substr(0,3)+I(v.substr(3)):v}}const j=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function ne(v){return v.match(j)?v.replace(j,T=>I(T)):v}var Ce=t(470);const ge=Ce.posix||Ce,De="/";var be;(function(v){v.joinPath=function(T,...A){return T.with({path:ge.join(T.path,...A)})},v.resolvePath=function(T,...A){let N=T.path,L=!1;N[0]!==De&&(N=De+N,L=!0);let O=ge.resolve(N,...A);return L&&O[0]===De&&!T.authority&&(O=O.substring(1)),T.with({path:O})},v.dirname=function(T){if(T.path.length===0||T.path===De)return T;let A=ge.dirname(T.path);return A.length===1&&A.charCodeAt(0)===46&&(A=""),T.with({path:A})},v.basename=function(T){return ge.basename(T.path)},v.extname=function(T){return ge.extname(T.path)}})(be||(be={}))})(),pc=r})();const{URI:Wt,Utils:sn}=pc;var rt;(function(n){n.basename=sn.basename,n.dirname=sn.dirname,n.extname=sn.extname,n.joinPath=sn.joinPath,n.resolvePath=sn.resolvePath;function e(r,i){return(r==null?void 0:r.toString())===(i==null?void 0:i.toString())}n.equals=e;function t(r,i){const s=typeof r=="string"?r:r.path,a=typeof i=="string"?i:i.path,o=s.split("/").filter(f=>f.length>0),l=a.split("/").filter(f=>f.length>0);let c=0;for(;ci??(i=pi.create(e.toString(),r.getServices(e).LanguageMetaData.languageId,0,t??""))}}class om{constructor(e){this.documentMap=new Map,this.langiumDocumentFactory=e.workspace.LangiumDocumentFactory}get all(){return Q(this.documentMap.values())}addDocument(e){const t=e.uri.toString();if(this.documentMap.has(t))throw new Error(`A document with the URI '${t}' is already present.`);this.documentMap.set(t,e)}getDocument(e){const t=e.toString();return this.documentMap.get(t)}async getOrCreateDocument(e,t){let r=this.getDocument(e);return r||(r=await this.langiumDocumentFactory.fromUri(e,t),this.addDocument(r),r)}createDocument(e,t,r){if(r)return this.langiumDocumentFactory.fromString(t,e,r).then(i=>(this.addDocument(i),i));{const i=this.langiumDocumentFactory.fromString(t,e);return this.addDocument(i),i}}hasDocument(e){return this.documentMap.has(e.toString())}invalidateDocument(e){const t=e.toString(),r=this.documentMap.get(t);return r&&(r.state=U.Changed,r.precomputedScopes=void 0,r.references=[],r.diagnostics=void 0),r}deleteDocument(e){const t=e.toString(),r=this.documentMap.get(t);return r&&(r.state=U.Changed,this.documentMap.delete(t)),r}}class lm{constructor(e){this.reflection=e.shared.AstReflection,this.langiumDocuments=()=>e.shared.workspace.LangiumDocuments,this.scopeProvider=e.references.ScopeProvider,this.astNodeLocator=e.workspace.AstNodeLocator}async link(e,t=X.None){for(const r of Rt(e.parseResult.value))await Le(t),Qo(r).forEach(i=>this.doLink(i,e))}doLink(e,t){const r=e.reference;if(r._ref===void 0)try{const i=this.getCandidate(e);if(kn(i))r._ref=i;else if(r._nodeDescription=i,this.langiumDocuments().hasDocument(i.documentUri)){const s=this.loadAstNode(i);r._ref=s??this.createLinkingError(e,i)}}catch(i){r._ref=Object.assign(Object.assign({},e),{message:`An error occurred while resolving reference to '${r.$refText}': ${i}`})}t.references.push(r)}unlink(e){for(const t of e.references)delete t._ref,delete t._nodeDescription;e.references=[]}getCandidate(e){const r=this.scopeProvider.getScope(e).getElement(e.reference.$refText);return r??this.createLinkingError(e)}buildReference(e,t,r,i){const s=this,a={$refNode:r,$refText:i,get ref(){var o;if(ae(this._ref))return this._ref;if(Nu(this._nodeDescription)){const l=s.loadAstNode(this._nodeDescription);this._ref=l??s.createLinkingError({reference:a,container:e,property:t},this._nodeDescription)}else if(this._ref===void 0){const l=s.getLinkedNode({reference:a,container:e,property:t});if(l.error&&Ue(e).state=e.end)return s.ref}}if(r){const i=this.nameProvider.getNameNode(r);if(i&&(i===e||Su(e,i)))return r}}}findDeclarationNode(e){const t=this.findDeclaration(e);if(t!=null&&t.$cstNode){const r=this.nameProvider.getNameNode(t);return r??t.$cstNode}}findReferences(e,t){const r=[];if(t.includeDeclaration){const s=this.getReferenceToSelf(e);s&&r.push(s)}let i=this.index.findAllReferences(e,this.nodeLocator.getAstNodePath(e));return t.documentUri&&(i=i.filter(s=>rt.equals(s.sourceUri,t.documentUri))),r.push(...i),Q(r)}getReferenceToSelf(e){const t=this.nameProvider.getNameNode(e);if(t){const r=Ue(e),i=this.nodeLocator.getAstNodePath(e);return{sourceUri:r.uri,sourcePath:i,targetUri:r.uri,targetPath:i,segment:Ln(t),local:!0}}}}class Vi{constructor(e){if(this.map=new Map,e)for(const[t,r]of e)this.add(t,r)}get size(){return Pr.sum(Q(this.map.values()).map(e=>e.length))}clear(){this.map.clear()}delete(e,t){if(t===void 0)return this.map.delete(e);{const r=this.map.get(e);if(r){const i=r.indexOf(t);if(i>=0)return r.length===1?this.map.delete(e):r.splice(i,1),!0}return!1}}get(e){var t;return(t=this.map.get(e))!==null&&t!==void 0?t:[]}has(e,t){if(t===void 0)return this.map.has(e);{const r=this.map.get(e);return r?r.indexOf(t)>=0:!1}}add(e,t){return this.map.has(e)?this.map.get(e).push(t):this.map.set(e,[t]),this}addAll(e,t){return this.map.has(e)?this.map.get(e).push(...t):this.map.set(e,Array.from(t)),this}forEach(e){this.map.forEach((t,r)=>t.forEach(i=>e(i,r,this)))}[Symbol.iterator](){return this.entries().iterator()}entries(){return Q(this.map.entries()).flatMap(([e,t])=>t.map(r=>[e,r]))}keys(){return Q(this.map.keys())}values(){return Q(this.map.values()).flat()}entriesGroupedByKey(){return Q(this.map.entries())}}class Ba{get size(){return this.map.size}constructor(e){if(this.map=new Map,this.inverse=new Map,e)for(const[t,r]of e)this.set(t,r)}clear(){this.map.clear(),this.inverse.clear()}set(e,t){return this.map.set(e,t),this.inverse.set(t,e),this}get(e){return this.map.get(e)}getKey(e){return this.inverse.get(e)}delete(e){const t=this.map.get(e);return t!==void 0?(this.map.delete(e),this.inverse.delete(t),!0):!1}}class fm{constructor(e){this.nameProvider=e.references.NameProvider,this.descriptions=e.workspace.AstNodeDescriptionProvider}async computeExports(e,t=X.None){return this.computeExportsForNode(e.parseResult.value,e,void 0,t)}async computeExportsForNode(e,t,r=Ni,i=X.None){const s=[];this.exportNode(e,s,t);for(const a of r(e))await Le(i),this.exportNode(a,s,t);return s}exportNode(e,t,r){const i=this.nameProvider.getName(e);i&&t.push(this.descriptions.createDescription(e,i,r))}async computeLocalScopes(e,t=X.None){const r=e.parseResult.value,i=new Vi;for(const s of pn(r))await Le(t),this.processNode(s,e,i);return i}processNode(e,t,r){const i=e.$container;if(i){const s=this.nameProvider.getName(e);s&&r.add(i,this.descriptions.createDescription(e,s,t))}}}class Ha{constructor(e,t,r){var i;this.elements=e,this.outerScope=t,this.caseInsensitive=(i=r==null?void 0:r.caseInsensitive)!==null&&i!==void 0?i:!1}getAllElements(){return this.outerScope?this.elements.concat(this.outerScope.getAllElements()):this.elements}getElement(e){const t=this.caseInsensitive?this.elements.find(r=>r.name.toLowerCase()===e.toLowerCase()):this.elements.find(r=>r.name===e);if(t)return t;if(this.outerScope)return this.outerScope.getElement(e)}}class hm{constructor(e,t,r){var i;this.elements=new Map,this.caseInsensitive=(i=r==null?void 0:r.caseInsensitive)!==null&&i!==void 0?i:!1;for(const s of e){const a=this.caseInsensitive?s.name.toLowerCase():s.name;this.elements.set(a,s)}this.outerScope=t}getElement(e){const t=this.caseInsensitive?e.toLowerCase():e,r=this.elements.get(t);if(r)return r;if(this.outerScope)return this.outerScope.getElement(e)}getAllElements(){let e=Q(this.elements.values());return this.outerScope&&(e=e.concat(this.outerScope.getAllElements())),e}}class mc{constructor(){this.toDispose=[],this.isDisposed=!1}onDispose(e){this.toDispose.push(e)}dispose(){this.throwIfDisposed(),this.clear(),this.isDisposed=!0,this.toDispose.forEach(e=>e.dispose())}throwIfDisposed(){if(this.isDisposed)throw new Error("This cache has already been disposed")}}class pm extends mc{constructor(){super(...arguments),this.cache=new Map}has(e){return this.throwIfDisposed(),this.cache.has(e)}set(e,t){this.throwIfDisposed(),this.cache.set(e,t)}get(e,t){if(this.throwIfDisposed(),this.cache.has(e))return this.cache.get(e);if(t){const r=t();return this.cache.set(e,r),r}else return}delete(e){return this.throwIfDisposed(),this.cache.delete(e)}clear(){this.throwIfDisposed(),this.cache.clear()}}class mm extends mc{constructor(e){super(),this.cache=new Map,this.converter=e??(t=>t)}has(e,t){return this.throwIfDisposed(),this.cacheForContext(e).has(t)}set(e,t,r){this.throwIfDisposed(),this.cacheForContext(e).set(t,r)}get(e,t,r){this.throwIfDisposed();const i=this.cacheForContext(e);if(i.has(t))return i.get(t);if(r){const s=r();return i.set(t,s),s}else return}delete(e,t){return this.throwIfDisposed(),this.cacheForContext(e).delete(t)}clear(e){if(this.throwIfDisposed(),e){const t=this.converter(e);this.cache.delete(t)}else this.cache.clear()}cacheForContext(e){const t=this.converter(e);let r=this.cache.get(t);return r||(r=new Map,this.cache.set(t,r)),r}}class gm extends pm{constructor(e){super(),this.onDispose(e.workspace.DocumentBuilder.onUpdate(()=>{this.clear()}))}}class ym{constructor(e){this.reflection=e.shared.AstReflection,this.nameProvider=e.references.NameProvider,this.descriptions=e.workspace.AstNodeDescriptionProvider,this.indexManager=e.shared.workspace.IndexManager,this.globalScopeCache=new gm(e.shared)}getScope(e){const t=[],r=this.reflection.getReferenceType(e),i=Ue(e.container).precomputedScopes;if(i){let a=e.container;do{const o=i.get(a);o.length>0&&t.push(Q(o).filter(l=>this.reflection.isSubtype(l.type,r))),a=a.$container}while(a)}let s=this.getGlobalScope(r,e);for(let a=t.length-1;a>=0;a--)s=this.createScope(t[a],s);return s}createScope(e,t,r){return new Ha(Q(e),t,r)}createScopeForNodes(e,t,r){const i=Q(e).map(s=>{const a=this.nameProvider.getName(s);if(a)return this.descriptions.createDescription(s,a)}).nonNullable();return new Ha(i,t,r)}getGlobalScope(e,t){return this.globalScopeCache.get(e,()=>new hm(this.indexManager.allElements(e)))}}function Tm(n){return typeof n.$comment=="string"}function Va(n){return typeof n=="object"&&!!n&&("$ref"in n||"$error"in n)}class _m{constructor(e){this.ignoreProperties=new Set(["$container","$containerProperty","$containerIndex","$document","$cstNode"]),this.langiumDocuments=e.shared.workspace.LangiumDocuments,this.astNodeLocator=e.workspace.AstNodeLocator,this.nameProvider=e.references.NameProvider,this.commentProvider=e.documentation.CommentProvider}serialize(e,t={}){const r=t==null?void 0:t.replacer,i=(a,o)=>this.replacer(a,o,t),s=r?(a,o)=>r(a,o,i):i;try{return this.currentDocument=Ue(e),JSON.stringify(e,s,t==null?void 0:t.space)}finally{this.currentDocument=void 0}}deserialize(e,t={}){const r=JSON.parse(e);return this.linkNode(r,r,t),r}replacer(e,t,{refText:r,sourceText:i,textRegions:s,comments:a,uriConverter:o}){var l,c,u,d;if(!this.ignoreProperties.has(e))if(Ge(t)){const f=t.ref,h=r?t.$refText:void 0;if(f){const m=Ue(f);let g="";this.currentDocument&&this.currentDocument!==m&&(o?g=o(m.uri,t):g=m.uri.toString());const E=this.astNodeLocator.getAstNodePath(f);return{$ref:`${g}#${E}`,$refText:h}}else return{$error:(c=(l=t.error)===null||l===void 0?void 0:l.message)!==null&&c!==void 0?c:"Could not resolve reference",$refText:h}}else if(ae(t)){let f;if(s&&(f=this.addAstNodeRegionWithAssignmentsTo(Object.assign({},t)),(!e||t.$document)&&(f!=null&&f.$textRegion)&&(f.$textRegion.documentURI=(u=this.currentDocument)===null||u===void 0?void 0:u.uri.toString())),i&&!e&&(f??(f=Object.assign({},t)),f.$sourceText=(d=t.$cstNode)===null||d===void 0?void 0:d.text),a){f??(f=Object.assign({},t));const h=this.commentProvider.getComment(t);h&&(f.$comment=h.replace(/\r/g,""))}return f??t}else return t}addAstNodeRegionWithAssignmentsTo(e){const t=r=>({offset:r.offset,end:r.end,length:r.length,range:r.range});if(e.$cstNode){const r=e.$textRegion=t(e.$cstNode),i=r.assignments={};return Object.keys(e).filter(s=>!s.startsWith("$")).forEach(s=>{const a=bd(e.$cstNode,s).map(t);a.length!==0&&(i[s]=a)}),e}}linkNode(e,t,r,i,s,a){for(const[l,c]of Object.entries(e))if(Array.isArray(c))for(let u=0;u{try{await e.call(t,r,i,s)}catch(a){if(Bi(a))throw a;console.error("An error occurred during validation:",a);const o=a instanceof Error?a.message:String(a);a instanceof Error&&a.stack&&console.error(a.stack),i("error","An error occurred during validation: "+o,{node:r})}}}addEntry(e,t){if(e==="AstNode"){this.entries.add("AstNode",t);return}for(const r of this.reflection.getAllSubTypes(e))this.entries.add(r,t)}getChecks(e,t){let r=Q(this.entries.get(e)).concat(this.entries.get("AstNode"));return t&&(r=r.filter(i=>t.includes(i.category))),r.map(i=>i.check)}}class Am{constructor(e){this.validationRegistry=e.validation.ValidationRegistry,this.metadata=e.LanguageMetaData}async validateDocument(e,t={},r=X.None){const i=e.parseResult,s=[];if(await Le(r),(!t.categories||t.categories.includes("built-in"))&&(this.processLexingErrors(i,s,t),t.stopAfterLexingErrors&&s.some(a=>{var o;return((o=a.data)===null||o===void 0?void 0:o.code)===Qe.LexingError})||(this.processParsingErrors(i,s,t),t.stopAfterParsingErrors&&s.some(a=>{var o;return((o=a.data)===null||o===void 0?void 0:o.code)===Qe.ParsingError}))||(this.processLinkingErrors(e,s,t),t.stopAfterLinkingErrors&&s.some(a=>{var o;return((o=a.data)===null||o===void 0?void 0:o.code)===Qe.LinkingError}))))return s;try{s.push(...await this.validateAst(i.value,t,r))}catch(a){if(Bi(a))throw a;console.error("An error occurred during validation:",a)}return await Le(r),s}processLexingErrors(e,t,r){for(const i of e.lexerErrors){const s={severity:Or("error"),range:{start:{line:i.line-1,character:i.column-1},end:{line:i.line-1,character:i.column+i.length-1}},message:i.message,data:Wa(Qe.LexingError),source:this.getSource()};t.push(s)}}processParsingErrors(e,t,r){for(const i of e.parserErrors){let s;if(isNaN(i.token.startOffset)){if("previousToken"in i){const a=i.previousToken;if(isNaN(a.startOffset)){const o={line:0,character:0};s={start:o,end:o}}else{const o={line:a.endLine-1,character:a.endColumn};s={start:o,end:o}}}}else s=Dr(i.token);if(s){const a={severity:Or("error"),range:s,message:i.message,data:Wa(Qe.ParsingError),source:this.getSource()};t.push(a)}}}processLinkingErrors(e,t,r){for(const i of e.references){const s=i.error;if(s){const a={node:s.container,property:s.property,index:s.index,data:{code:Qe.LinkingError,containerType:s.container.$type,property:s.property,refText:s.reference.$refText}};t.push(this.toDiagnostic("error",s.message,a))}}}async validateAst(e,t,r=X.None){const i=[],s=(a,o,l)=>{i.push(this.toDiagnostic(a,o,l))};return await Promise.all(Rt(e).map(async a=>{await Le(r);const o=this.validationRegistry.getChecks(a.$type,t.categories);for(const l of o)await l(a,s,r)})),i}toDiagnostic(e,t,r){return{message:t,range:vm(r),severity:Or(e),code:r.code,codeDescription:r.codeDescription,tags:r.tags,relatedInformation:r.relatedInformation,data:r.data,source:this.getSource()}}getSource(){return this.metadata.languageId}}function vm(n){if(n.range)return n.range;let e;return typeof n.property=="string"?e=rl(n.node.$cstNode,n.property,n.index):typeof n.keyword=="string"&&(e=Nd(n.node.$cstNode,n.keyword,n.index)),e??(e=n.node.$cstNode),e?e.range:{start:{line:0,character:0},end:{line:0,character:0}}}function Or(n){switch(n){case"error":return 1;case"warning":return 2;case"info":return 3;case"hint":return 4;default:throw new Error("Invalid diagnostic severity: "+n)}}var Qe;(function(n){n.LexingError="lexing-error",n.ParsingError="parsing-error",n.LinkingError="linking-error"})(Qe||(Qe={}));class bm{constructor(e){this.astNodeLocator=e.workspace.AstNodeLocator,this.nameProvider=e.references.NameProvider}createDescription(e,t,r=Ue(e)){t??(t=this.nameProvider.getName(e));const i=this.astNodeLocator.getAstNodePath(e);if(!t)throw new Error(`Node at path ${i} has no name.`);let s;const a=()=>{var o;return s??(s=Ln((o=this.nameProvider.getNameNode(e))!==null&&o!==void 0?o:e.$cstNode))};return{node:e,name:t,get nameSegment(){return a()},selectionSegment:Ln(e.$cstNode),type:e.$type,documentUri:r.uri,path:i}}}class Nm{constructor(e){this.nodeLocator=e.workspace.AstNodeLocator}async createDescriptions(e,t=X.None){const r=[],i=e.parseResult.value;for(const s of Rt(i))await Le(t),Qo(s).filter(a=>!kn(a)).forEach(a=>{const o=this.createDescription(a);o&&r.push(o)});return r}createDescription(e){const t=e.reference.$nodeDescription,r=e.reference.$refNode;if(!t||!r)return;const i=Ue(e.container).uri;return{sourceUri:i,sourcePath:this.nodeLocator.getAstNodePath(e.container),targetUri:t.documentUri,targetPath:t.path,segment:Ln(r),local:rt.equals(t.documentUri,i)}}}class km{constructor(){this.segmentSeparator="/",this.indexSeparator="@"}getAstNodePath(e){if(e.$container){const t=this.getAstNodePath(e.$container),r=this.getPathSegment(e);return t+this.segmentSeparator+r}return""}getPathSegment({$containerProperty:e,$containerIndex:t}){if(!e)throw new Error("Missing '$containerProperty' in AST node.");return t!==void 0?e+this.indexSeparator+t:e}getAstNode(e,t){return t.split(this.segmentSeparator).reduce((i,s)=>{if(!i||s.length===0)return i;const a=s.indexOf(this.indexSeparator);if(a>0){const o=s.substring(0,a),l=parseInt(s.substring(a+1)),c=i[o];return c==null?void 0:c[l]}return i[s]},e)}}class Im{constructor(e){this._ready=new Hi,this.settings={},this.workspaceConfig=!1,this.serviceRegistry=e.ServiceRegistry}get ready(){return this._ready.promise}initialize(e){var t,r;this.workspaceConfig=(r=(t=e.capabilities.workspace)===null||t===void 0?void 0:t.configuration)!==null&&r!==void 0?r:!1}async initialized(e){if(this.workspaceConfig){if(e.register){const t=this.serviceRegistry.all;e.register({section:t.map(r=>this.toSectionName(r.LanguageMetaData.languageId))})}if(e.fetchConfiguration){const t=this.serviceRegistry.all.map(i=>({section:this.toSectionName(i.LanguageMetaData.languageId)})),r=await e.fetchConfiguration(t);t.forEach((i,s)=>{this.updateSectionConfiguration(i.section,r[s])})}}this._ready.resolve()}updateConfiguration(e){e.settings&&Object.keys(e.settings).forEach(t=>{this.updateSectionConfiguration(t,e.settings[t])})}updateSectionConfiguration(e,t){this.settings[e]=t}async getConfiguration(e,t){await this.ready;const r=this.toSectionName(e);if(this.settings[r])return this.settings[r][t]}toSectionName(e){return`${e}`}}var er;(function(n){function e(t){return{dispose:async()=>await t()}}n.create=e})(er||(er={}));class Sm{constructor(e){this.updateBuildOptions={validation:{categories:["built-in","fast"]}},this.updateListeners=[],this.buildPhaseListeners=new Vi,this.buildState=new Map,this.documentBuildWaiters=new Map,this.currentState=U.Changed,this.langiumDocuments=e.workspace.LangiumDocuments,this.langiumDocumentFactory=e.workspace.LangiumDocumentFactory,this.indexManager=e.workspace.IndexManager,this.serviceRegistry=e.ServiceRegistry}async build(e,t={},r=X.None){var i,s;for(const a of e){const o=a.uri.toString();if(a.state===U.Validated){if(typeof t.validation=="boolean"&&t.validation)a.state=U.IndexedReferences,a.diagnostics=void 0,this.buildState.delete(o);else if(typeof t.validation=="object"){const l=this.buildState.get(o),c=(i=l==null?void 0:l.result)===null||i===void 0?void 0:i.validationChecks;if(c){const d=((s=t.validation.categories)!==null&&s!==void 0?s:Zn.all).filter(f=>!c.includes(f));d.length>0&&(this.buildState.set(o,{completed:!1,options:{validation:Object.assign(Object.assign({},t.validation),{categories:d})},result:l.result}),a.state=U.IndexedReferences)}}}else this.buildState.delete(o)}this.currentState=U.Changed,await this.emitUpdate(e.map(a=>a.uri),[]),await this.buildDocuments(e,t,r)}async update(e,t,r=X.None){this.currentState=U.Changed;for(const a of t)this.langiumDocuments.deleteDocument(a),this.buildState.delete(a.toString()),this.indexManager.remove(a);for(const a of e){if(!this.langiumDocuments.invalidateDocument(a)){const l=this.langiumDocumentFactory.fromModel({$type:"INVALID"},a);l.state=U.Changed,this.langiumDocuments.addDocument(l)}this.buildState.delete(a.toString())}const i=Q(e).concat(t).map(a=>a.toString()).toSet();this.langiumDocuments.all.filter(a=>!i.has(a.uri.toString())&&this.shouldRelink(a,i)).forEach(a=>{this.serviceRegistry.getServices(a.uri).references.Linker.unlink(a),a.state=Math.min(a.state,U.ComputedScopes),a.diagnostics=void 0}),await this.emitUpdate(e,t),await Le(r);const s=this.langiumDocuments.all.filter(a=>{var o;return a.stater(e,t)))}shouldRelink(e,t){return e.references.some(r=>r.error!==void 0)?!0:this.indexManager.isAffected(e,t)}onUpdate(e){return this.updateListeners.push(e),er.create(()=>{const t=this.updateListeners.indexOf(e);t>=0&&this.updateListeners.splice(t,1)})}async buildDocuments(e,t,r){this.prepareBuild(e,t),await this.runCancelable(e,U.Parsed,r,s=>this.langiumDocumentFactory.update(s,r)),await this.runCancelable(e,U.IndexedContent,r,s=>this.indexManager.updateContent(s,r)),await this.runCancelable(e,U.ComputedScopes,r,async s=>{const a=this.serviceRegistry.getServices(s.uri).references.ScopeComputation;s.precomputedScopes=await a.computeLocalScopes(s,r)}),await this.runCancelable(e,U.Linked,r,s=>this.serviceRegistry.getServices(s.uri).references.Linker.link(s,r)),await this.runCancelable(e,U.IndexedReferences,r,s=>this.indexManager.updateReferences(s,r));const i=e.filter(s=>this.shouldValidate(s));await this.runCancelable(i,U.Validated,r,s=>this.validate(s,r));for(const s of e){const a=this.buildState.get(s.uri.toString());a&&(a.completed=!0)}}prepareBuild(e,t){for(const r of e){const i=r.uri.toString(),s=this.buildState.get(i);(!s||s.completed)&&this.buildState.set(i,{completed:!1,options:t,result:s==null?void 0:s.result})}}async runCancelable(e,t,r,i){const s=e.filter(a=>a.state{this.buildPhaseListeners.delete(e,t)})}waitUntil(e,t,r){let i;if(t&&"path"in t?i=t:r=t,r??(r=X.None),i){const s=this.langiumDocuments.getDocument(i);if(s&&s.state>e)return Promise.resolve(i)}return this.currentState>=e?Promise.resolve(void 0):r.isCancellationRequested?Promise.reject(Qn):new Promise((s,a)=>{const o=this.onBuildPhase(e,()=>{if(o.dispose(),l.dispose(),i){const c=this.langiumDocuments.getDocument(i);s(c==null?void 0:c.uri)}else s(void 0)}),l=r.onCancellationRequested(()=>{o.dispose(),l.dispose(),a(Qn)})})}async notifyBuildPhase(e,t,r){if(e.length===0)return;const i=this.buildPhaseListeners.get(t);for(const s of i)await Le(r),await s(e,r)}shouldValidate(e){return!!this.getBuildOptions(e).validation}async validate(e,t){var r,i;const s=this.serviceRegistry.getServices(e.uri).validation.DocumentValidator,a=this.getBuildOptions(e).validation,o=typeof a=="object"?a:void 0,l=await s.validateDocument(e,o,t);e.diagnostics?e.diagnostics.push(...l):e.diagnostics=l;const c=this.buildState.get(e.uri.toString());if(c){(r=c.result)!==null&&r!==void 0||(c.result={});const u=(i=o==null?void 0:o.categories)!==null&&i!==void 0?i:Zn.all;c.result.validationChecks?c.result.validationChecks.push(...u):c.result.validationChecks=[...u]}}getBuildOptions(e){var t,r;return(r=(t=this.buildState.get(e.uri.toString()))===null||t===void 0?void 0:t.options)!==null&&r!==void 0?r:{}}}class xm{constructor(e){this.symbolIndex=new Map,this.symbolByTypeIndex=new mm,this.referenceIndex=new Map,this.documents=e.workspace.LangiumDocuments,this.serviceRegistry=e.ServiceRegistry,this.astReflection=e.AstReflection}findAllReferences(e,t){const r=Ue(e).uri,i=[];return this.referenceIndex.forEach(s=>{s.forEach(a=>{rt.equals(a.targetUri,r)&&a.targetPath===t&&i.push(a)})}),Q(i)}allElements(e,t){let r=Q(this.symbolIndex.keys());return t&&(r=r.filter(i=>!t||t.has(i))),r.map(i=>this.getFileDescriptions(i,e)).flat()}getFileDescriptions(e,t){var r;return t?this.symbolByTypeIndex.get(e,t,()=>{var s;return((s=this.symbolIndex.get(e))!==null&&s!==void 0?s:[]).filter(o=>this.astReflection.isSubtype(o.type,t))}):(r=this.symbolIndex.get(e))!==null&&r!==void 0?r:[]}remove(e){const t=e.toString();this.symbolIndex.delete(t),this.symbolByTypeIndex.clear(t),this.referenceIndex.delete(t)}async updateContent(e,t=X.None){const i=await this.serviceRegistry.getServices(e.uri).references.ScopeComputation.computeExports(e,t),s=e.uri.toString();this.symbolIndex.set(s,i),this.symbolByTypeIndex.clear(s)}async updateReferences(e,t=X.None){const i=await this.serviceRegistry.getServices(e.uri).workspace.ReferenceDescriptionProvider.createDescriptions(e,t);this.referenceIndex.set(e.uri.toString(),i)}isAffected(e,t){const r=this.referenceIndex.get(e.uri.toString());return r?r.some(i=>!i.local&&t.has(i.targetUri.toString())):!1}}class Cm{constructor(e){this.initialBuildOptions={},this._ready=new Hi,this.serviceRegistry=e.ServiceRegistry,this.langiumDocuments=e.workspace.LangiumDocuments,this.documentBuilder=e.workspace.DocumentBuilder,this.fileSystemProvider=e.workspace.FileSystemProvider,this.mutex=e.workspace.WorkspaceLock}get ready(){return this._ready.promise}initialize(e){var t;this.folders=(t=e.workspaceFolders)!==null&&t!==void 0?t:void 0}initialized(e){return this.mutex.write(t=>{var r;return this.initializeWorkspace((r=this.folders)!==null&&r!==void 0?r:[],t)})}async initializeWorkspace(e,t=X.None){const r=await this.performStartup(e);await Le(t),await this.documentBuilder.build(r,this.initialBuildOptions,t)}async performStartup(e){const t=this.serviceRegistry.all.flatMap(s=>s.LanguageMetaData.fileExtensions),r=[],i=s=>{r.push(s),this.langiumDocuments.hasDocument(s.uri)||this.langiumDocuments.addDocument(s)};return await this.loadAdditionalDocuments(e,i),await Promise.all(e.map(s=>[s,this.getRootFolder(s)]).map(async s=>this.traverseFolder(...s,t,i))),this._ready.resolve(),r}loadAdditionalDocuments(e,t){return Promise.resolve()}getRootFolder(e){return Wt.parse(e.uri)}async traverseFolder(e,t,r,i){const s=await this.fileSystemProvider.readDirectory(t);await Promise.all(s.map(async a=>{if(this.includeEntry(e,a,r)){if(a.isDirectory)await this.traverseFolder(e,a.uri,r,i);else if(a.isFile){const o=await this.langiumDocuments.getOrCreateDocument(a.uri);i(o)}}}))}includeEntry(e,t,r){const i=rt.basename(t.uri);if(i.startsWith("."))return!1;if(t.isDirectory)return i!=="node_modules"&&i!=="out";if(t.isFile){const s=rt.extname(t.uri);return r.includes(s)}return!1}}class wm{constructor(e){const t=e.parser.TokenBuilder.buildTokens(e.Grammar,{caseInsensitive:e.LanguageMetaData.caseInsensitive});this.tokenTypes=this.toTokenTypeDictionary(t);const r=Ka(t)?Object.values(t):t;this.chevrotainLexer=new de(r,{positionTracking:"full"})}get definition(){return this.tokenTypes}tokenize(e){var t;const r=this.chevrotainLexer.tokenize(e);return{tokens:r.tokens,errors:r.errors,hidden:(t=r.groups.hidden)!==null&&t!==void 0?t:[]}}toTokenTypeDictionary(e){if(Ka(e))return e;const t=gc(e)?Object.values(e.modes).flat():e,r={};return t.forEach(i=>r[i.name]=i),r}}function Om(n){return Array.isArray(n)&&(n.length===0||"name"in n[0])}function gc(n){return n&&"modes"in n&&"defaultMode"in n}function Ka(n){return!Om(n)&&!gc(n)}function Lm(n,e,t){let r,i;typeof n=="string"?(i=e,r=t):(i=n.range.start,r=e),i||(i=P.create(0,0));const s=yc(n),a=Wi(r),o=Mm({lines:s,position:i,options:a});return Fm({index:0,tokens:o,position:i})}function $m(n,e){const t=Wi(e),r=yc(n);if(r.length===0)return!1;const i=r[0],s=r[r.length-1],a=t.start,o=t.end;return!!(a!=null&&a.exec(i))&&!!(o!=null&&o.exec(s))}function yc(n){let e="";return typeof n=="string"?e=n:e=n.text,e.split(hd)}const za=/\s*(@([\p{L}][\p{L}\p{N}]*)?)/uy,Pm=/\{(@[\p{L}][\p{L}\p{N}]*)(\s*)([^\r\n}]+)?\}/gu;function Mm(n){var e,t,r;const i=[];let s=n.position.line,a=n.position.character;for(let o=0;o=u.length){if(i.length>0){const h=P.create(s,a);i.push({type:"break",content:"",range:$.create(h,h)})}}else{za.lastIndex=d;const h=za.exec(u);if(h){const m=h[0],g=h[1],E=P.create(s,a+d),y=P.create(s,a+d+m.length);i.push({type:"tag",content:g,range:$.create(E,y)}),d+=m.length,d=gi(u,d)}if(d0&&i[i.length-1].type==="break"?i.slice(0,-1):i}function Dm(n,e,t,r){const i=[];if(n.length===0){const s=P.create(t,r),a=P.create(t,r+e.length);i.push({type:"text",content:e,range:$.create(s,a)})}else{let s=0;for(const o of n){const l=o.index,c=e.substring(s,l);c.length>0&&i.push({type:"text",content:e.substring(s,l),range:$.create(P.create(t,s+r),P.create(t,l+r))});let u=c.length+1;const d=o[1];if(i.push({type:"inline-tag",content:d,range:$.create(P.create(t,s+u+r),P.create(t,s+u+d.length+r))}),u+=d.length,o.length===4){u+=o[2].length;const f=o[3];i.push({type:"text",content:f,range:$.create(P.create(t,s+u+r),P.create(t,s+u+f.length+r))})}else i.push({type:"text",content:"",range:$.create(P.create(t,s+u+r),P.create(t,s+u+r))});s=l+o[0].length}const a=e.substring(s);a.length>0&&i.push({type:"text",content:a,range:$.create(P.create(t,s+r),P.create(t,s+r+a.length))})}return i}const jm=/\S/,Gm=/\s*$/;function gi(n,e){const t=n.substring(e).match(jm);return t?e+t.index:n.length}function Um(n){const e=n.match(Gm);if(e&&typeof e.index=="number")return e.index}function Fm(n){var e,t,r,i;const s=P.create(n.position.line,n.position.character);if(n.tokens.length===0)return new qa([],$.create(s,s));const a=[];for(;n.indext.name===e)}getTags(e){return this.getAllTags().filter(t=>t.name===e)}getAllTags(){return this.elements.filter(e=>"name"in e)}toString(){let e="";for(const t of this.elements)if(e.length===0)e=t.toString();else{const r=t.toString();e+=Ya(e)+r}return e.trim()}toMarkdown(e){let t="";for(const r of this.elements)if(t.length===0)t=r.toMarkdown(e);else{const i=r.toMarkdown(e);t+=Ya(t)+i}return t.trim()}}class $r{constructor(e,t,r,i){this.name=e,this.content=t,this.inline=r,this.range=i}toString(){let e=`@${this.name}`;const t=this.content.toString();return this.content.inlines.length===1?e=`${e} ${t}`:this.content.inlines.length>1&&(e=`${e} ${t}`),this.inline?`{${e}}`:e}toMarkdown(e){var t,r;return(r=(t=e==null?void 0:e.renderTag)===null||t===void 0?void 0:t.call(e,this))!==null&&r!==void 0?r:this.toMarkdownDefault(e)}toMarkdownDefault(e){const t=this.content.toMarkdown(e);if(this.inline){const s=Wm(this.name,t,e??{});if(typeof s=="string")return s}let r="";(e==null?void 0:e.tag)==="italic"||(e==null?void 0:e.tag)===void 0?r="*":(e==null?void 0:e.tag)==="bold"?r="**":(e==null?void 0:e.tag)==="bold-italic"&&(r="***");let i=`${r}@${this.name}${r}`;return this.content.inlines.length===1?i=`${i} — ${t}`:this.content.inlines.length>1&&(i=`${i} ${t}`),this.inline?`{${i}}`:i}}function Wm(n,e,t){var r,i;if(n==="linkplain"||n==="linkcode"||n==="link"){const s=e.indexOf(" ");let a=e;if(s>0){const l=gi(e,s);a=e.substring(l),e=e.substring(0,s)}return(n==="linkcode"||n==="link"&&t.link==="code")&&(a=`\`${a}\``),(i=(r=t.renderLink)===null||r===void 0?void 0:r.call(t,e,a))!==null&&i!==void 0?i:Km(e,a)}}function Km(n,e){try{return Wt.parse(n,!0),`[${e}](${n})`}catch{return n}}class yi{constructor(e,t){this.inlines=e,this.range=t}toString(){let e="";for(let t=0;tr.range.start.line&&(e+=` `)}return e}toMarkdown(e){let t="";for(let r=0;ri.range.start.line&&(t+=` diff --git a/static/js/md-gitGraphDiagram-NRZ2UAAF-BW6MaeAJ.js b/static/js/md-gitGraphDiagram-NRZ2UAAF-BWOWDXGd.js similarity index 98% rename from static/js/md-gitGraphDiagram-NRZ2UAAF-BW6MaeAJ.js rename to static/js/md-gitGraphDiagram-NRZ2UAAF-BWOWDXGd.js index 7472d343f..98df05678 100644 --- a/static/js/md-gitGraphDiagram-NRZ2UAAF-BW6MaeAJ.js +++ b/static/js/md-gitGraphDiagram-NRZ2UAAF-BWOWDXGd.js @@ -1,4 +1,4 @@ -import{p as Z}from"./md-chunk-TMUBEWPD-CtrfoVMV.js";import{I as F}from"./md-chunk-KFBOBJHC-HfI5b6Uw.js";import{B as U,_ as h,d as ee,C as re,D as te,E as ae,l as w,s as ne,g as se,b as ce,c as oe,p as ie,q as de,e as B,v as he,j as le,u as $e,F as fe}from"./md-index-xmajgeSt.js";import{p as ge}from"./md-gitGraph-YCYPL57B-CO7l4bat.js";import"./md-_baseUniq-tMSgAJlj.js";import"./md-_basePickBy-uQ-3YVhY.js";import"./md-clone-CA7_C22Z.js";var x={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},ye=U.gitGraph,z=h(()=>re({...ye,...te().gitGraph}),"getConfig"),i=new F(()=>{const t=z(),e=t.mainBranchName,a=t.mainBranchOrder;return{mainBranchName:e,commits:new Map,head:null,branchConfig:new Map([[e,{name:e,order:a}]]),branches:new Map([[e,null]]),currBranch:e,direction:"LR",seq:0,options:{}}});function j(){return ae({length:7})}h(j,"getID");function N(t,e){const a=Object.create(null);return t.reduce((s,r)=>{const n=e(r);return a[n]||(a[n]=!0,s.push(r)),s},[])}h(N,"uniqBy");var ue=h(function(t){i.records.direction=t},"setDirection"),xe=h(function(t){w.debug("options str",t),t=t==null?void 0:t.trim(),t=t||"{}";try{i.records.options=JSON.parse(t)}catch(e){w.error("error while parsing gitGraph options",e.message)}},"setOptions"),pe=h(function(){return i.records.options},"getOptions"),be=h(function(t){let e=t.msg,a=t.id;const s=t.type;let r=t.tags;w.info("commit",e,a,s,r),w.debug("Entering commit:",e,a,s,r);const n=z();a=B.sanitizeText(a,n),e=B.sanitizeText(e,n),r=r==null?void 0:r.map(c=>B.sanitizeText(c,n));const o={id:a||i.records.seq+"-"+j(),message:e,seq:i.records.seq++,type:s??x.NORMAL,tags:r??[],parents:i.records.head==null?[]:[i.records.head.id],branch:i.records.currBranch};i.records.head=o,w.info("main branch",n.mainBranchName),i.records.commits.set(o.id,o),i.records.branches.set(i.records.currBranch,o.id),w.debug("in pushCommit "+o.id)},"commit"),me=h(function(t){let e=t.name;const a=t.order;if(e=B.sanitizeText(e,z()),i.records.branches.has(e))throw new Error(`Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout ${e}")`);i.records.branches.set(e,i.records.head!=null?i.records.head.id:null),i.records.branchConfig.set(e,{name:e,order:a}),_(e),w.debug("in createBranch")},"branch"),we=h(t=>{let e=t.branch,a=t.id;const s=t.type,r=t.tags,n=z();e=B.sanitizeText(e,n),a&&(a=B.sanitizeText(a,n));const o=i.records.branches.get(i.records.currBranch),c=i.records.branches.get(e),$=o?i.records.commits.get(o):void 0,l=c?i.records.commits.get(c):void 0;if($&&l&&$.branch===e)throw new Error(`Cannot merge branch '${e}' into itself.`);if(i.records.currBranch===e){const d=new Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw d.hash={text:`merge ${e}`,token:`merge ${e}`,expected:["branch abc"]},d}if($===void 0||!$){const d=new Error(`Incorrect usage of "merge". Current branch (${i.records.currBranch})has no commits`);throw d.hash={text:`merge ${e}`,token:`merge ${e}`,expected:["commit"]},d}if(!i.records.branches.has(e)){const d=new Error('Incorrect usage of "merge". Branch to be merged ('+e+") does not exist");throw d.hash={text:`merge ${e}`,token:`merge ${e}`,expected:[`branch ${e}`]},d}if(l===void 0||!l){const d=new Error('Incorrect usage of "merge". Branch to be merged ('+e+") has no commits");throw d.hash={text:`merge ${e}`,token:`merge ${e}`,expected:['"commit"']},d}if($===l){const d=new Error('Incorrect usage of "merge". Both branches have same head');throw d.hash={text:`merge ${e}`,token:`merge ${e}`,expected:["branch abc"]},d}if(a&&i.records.commits.has(a)){const d=new Error('Incorrect usage of "merge". Commit with id:'+a+" already exists, use different custom Id");throw d.hash={text:`merge ${e} ${a} ${s} ${r==null?void 0:r.join(" ")}`,token:`merge ${e} ${a} ${s} ${r==null?void 0:r.join(" ")}`,expected:[`merge ${e} ${a}_UNIQUE ${s} ${r==null?void 0:r.join(" ")}`]},d}const f=c||"",g={id:a||`${i.records.seq}-${j()}`,message:`merged branch ${e} into ${i.records.currBranch}`,seq:i.records.seq++,parents:i.records.head==null?[]:[i.records.head.id,f],branch:i.records.currBranch,type:x.MERGE,customType:s,customId:!!a,tags:r??[]};i.records.head=g,i.records.commits.set(g.id,g),i.records.branches.set(i.records.currBranch,g.id),w.debug(i.records.branches),w.debug("in mergeBranch")},"merge"),Ce=h(function(t){let e=t.id,a=t.targetId,s=t.tags,r=t.parent;w.debug("Entering cherryPick:",e,a,s);const n=z();if(e=B.sanitizeText(e,n),a=B.sanitizeText(a,n),s=s==null?void 0:s.map($=>B.sanitizeText($,n)),r=B.sanitizeText(r,n),!e||!i.records.commits.has(e)){const $=new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw $.hash={text:`cherryPick ${e} ${a}`,token:`cherryPick ${e} ${a}`,expected:["cherry-pick abc"]},$}const o=i.records.commits.get(e);if(o===void 0||!o)throw new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');if(r&&!(Array.isArray(o.parents)&&o.parents.includes(r)))throw new Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.");const c=o.branch;if(o.type===x.MERGE&&!r)throw new Error("Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.");if(!a||!i.records.commits.has(a)){if(c===i.records.currBranch){const g=new Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw g.hash={text:`cherryPick ${e} ${a}`,token:`cherryPick ${e} ${a}`,expected:["cherry-pick abc"]},g}const $=i.records.branches.get(i.records.currBranch);if($===void 0||!$){const g=new Error(`Incorrect usage of "cherry-pick". Current branch (${i.records.currBranch})has no commits`);throw g.hash={text:`cherryPick ${e} ${a}`,token:`cherryPick ${e} ${a}`,expected:["cherry-pick abc"]},g}const l=i.records.commits.get($);if(l===void 0||!l){const g=new Error(`Incorrect usage of "cherry-pick". Current branch (${i.records.currBranch})has no commits`);throw g.hash={text:`cherryPick ${e} ${a}`,token:`cherryPick ${e} ${a}`,expected:["cherry-pick abc"]},g}const f={id:i.records.seq+"-"+j(),message:`cherry-picked ${o==null?void 0:o.message} into ${i.records.currBranch}`,seq:i.records.seq++,parents:i.records.head==null?[]:[i.records.head.id,o.id],branch:i.records.currBranch,type:x.CHERRY_PICK,tags:s?s.filter(Boolean):[`cherry-pick:${o.id}${o.type===x.MERGE?`|parent:${r}`:""}`]};i.records.head=f,i.records.commits.set(f.id,f),i.records.branches.set(i.records.currBranch,f.id),w.debug(i.records.branches),w.debug("in cherryPick")}},"cherryPick"),_=h(function(t){if(t=B.sanitizeText(t,z()),i.records.branches.has(t)){i.records.currBranch=t;const e=i.records.branches.get(i.records.currBranch);e===void 0||!e?i.records.head=null:i.records.head=i.records.commits.get(e)??null}else{const e=new Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${t}")`);throw e.hash={text:`checkout ${t}`,token:`checkout ${t}`,expected:[`branch ${t}`]},e}},"checkout");function A(t,e,a){const s=t.indexOf(e);s===-1?t.push(a):t.splice(s,1,a)}h(A,"upsert");function D(t){const e=t.reduce((r,n)=>r.seq>n.seq?r:n,t[0]);let a="";t.forEach(function(r){r===e?a+=" *":a+=" |"});const s=[a,e.id,e.seq];for(const r in i.records.branches)i.records.branches.get(r)===e.id&&s.push(r);if(w.debug(s.join(" ")),e.parents&&e.parents.length==2&&e.parents[0]&&e.parents[1]){const r=i.records.commits.get(e.parents[0]);A(t,e,r),e.parents[1]&&t.push(i.records.commits.get(e.parents[1]))}else{if(e.parents.length==0)return;if(e.parents[0]){const r=i.records.commits.get(e.parents[0]);A(t,e,r)}}t=N(t,r=>r.id),D(t)}h(D,"prettyPrintCommitHistory");var ve=h(function(){w.debug(i.records.commits);const t=V()[0];D([t])},"prettyPrint"),Ee=h(function(){i.reset(),he()},"clear"),Be=h(function(){return[...i.records.branchConfig.values()].map((e,a)=>e.order!==null&&e.order!==void 0?e:{...e,order:parseFloat(`0.${a}`)}).sort((e,a)=>(e.order??0)-(a.order??0)).map(({name:e})=>({name:e}))},"getBranchesAsObjArray"),ke=h(function(){return i.records.branches},"getBranches"),Le=h(function(){return i.records.commits},"getCommits"),V=h(function(){const t=[...i.records.commits.values()];return t.forEach(function(e){w.debug(e.id)}),t.sort((e,a)=>e.seq-a.seq),t},"getCommitsArray"),Te=h(function(){return i.records.currBranch},"getCurrentBranch"),Me=h(function(){return i.records.direction},"getDirection"),Re=h(function(){return i.records.head},"getHead"),X={commitType:x,getConfig:z,setDirection:ue,setOptions:xe,getOptions:pe,commit:be,branch:me,merge:we,cherryPick:Ce,checkout:_,prettyPrint:ve,clear:Ee,getBranchesAsObjArray:Be,getBranches:ke,getCommits:Le,getCommitsArray:V,getCurrentBranch:Te,getDirection:Me,getHead:Re,setAccTitle:ne,getAccTitle:se,getAccDescription:ce,setAccDescription:oe,setDiagramTitle:ie,getDiagramTitle:de},Ie=h((t,e)=>{Z(t,e),t.dir&&e.setDirection(t.dir);for(const a of t.statements)qe(a,e)},"populate"),qe=h((t,e)=>{const s={Commit:h(r=>e.commit(Oe(r)),"Commit"),Branch:h(r=>e.branch(ze(r)),"Branch"),Merge:h(r=>e.merge(Ge(r)),"Merge"),Checkout:h(r=>e.checkout(He(r)),"Checkout"),CherryPicking:h(r=>e.cherryPick(Pe(r)),"CherryPicking")}[t.$type];s?s(t):w.error(`Unknown statement type: ${t.$type}`)},"parseStatement"),Oe=h(t=>({id:t.id,msg:t.message??"",type:t.type!==void 0?x[t.type]:x.NORMAL,tags:t.tags??void 0}),"parseCommit"),ze=h(t=>({name:t.name,order:t.order??0}),"parseBranch"),Ge=h(t=>({branch:t.branch,id:t.id??"",type:t.type!==void 0?x[t.type]:void 0,tags:t.tags??void 0}),"parseMerge"),He=h(t=>t.branch,"parseCheckout"),Pe=h(t=>{var a;return{id:t.id,targetId:"",tags:((a=t.tags)==null?void 0:a.length)===0?void 0:t.tags,parent:t.parent}},"parseCherryPicking"),We={parse:h(async t=>{const e=await ge("gitGraph",t);w.debug(e),Ie(e,X)},"parse")},S=ee(),b=S==null?void 0:S.gitGraph,R=10,I=40,k=4,L=2,O=8,v=new Map,E=new Map,P=30,G=new Map,W=[],M=0,u="LR",je=h(()=>{v.clear(),E.clear(),G.clear(),M=0,W=[],u="LR"},"clear"),J=h(t=>{const e=document.createElementNS("http://www.w3.org/2000/svg","text");return(typeof t=="string"?t.split(/\\n|\n|/gi):t).forEach(s=>{const r=document.createElementNS("http://www.w3.org/2000/svg","tspan");r.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),r.setAttribute("dy","1em"),r.setAttribute("x","0"),r.setAttribute("class","row"),r.textContent=s.trim(),e.appendChild(r)}),e},"drawText"),Q=h(t=>{let e,a,s;return u==="BT"?(a=h((r,n)=>r<=n,"comparisonFunc"),s=1/0):(a=h((r,n)=>r>=n,"comparisonFunc"),s=0),t.forEach(r=>{var o,c;const n=u==="TB"||u=="BT"?(o=E.get(r))==null?void 0:o.y:(c=E.get(r))==null?void 0:c.x;n!==void 0&&a(n,s)&&(e=r,s=n)}),e},"findClosestParent"),Se=h(t=>{let e="",a=1/0;return t.forEach(s=>{const r=E.get(s).y;r<=a&&(e=s,a=r)}),e||void 0},"findClosestParentBT"),Ae=h((t,e,a)=>{let s=a,r=a;const n=[];t.forEach(o=>{const c=e.get(o);if(!c)throw new Error(`Commit not found for key ${o}`);c.parents.length?(s=Ye(c),r=Math.max(s,r)):n.push(c),Ke(c,s)}),s=r,n.forEach(o=>{Ne(o,s,a)}),t.forEach(o=>{const c=e.get(o);if(c!=null&&c.parents.length){const $=Se(c.parents);s=E.get($).y-I,s<=r&&(r=s);const l=v.get(c.branch).pos,f=s-R;E.set(c.id,{x:l,y:f})}})},"setParallelBTPos"),De=h(t=>{var s;const e=Q(t.parents.filter(r=>r!==null));if(!e)throw new Error(`Closest parent not found for commit ${t.id}`);const a=(s=E.get(e))==null?void 0:s.y;if(a===void 0)throw new Error(`Closest parent position not found for commit ${t.id}`);return a},"findClosestParentPos"),Ye=h(t=>De(t)+I,"calculateCommitPosition"),Ke=h((t,e)=>{const a=v.get(t.branch);if(!a)throw new Error(`Branch not found for commit ${t.id}`);const s=a.pos,r=e+R;return E.set(t.id,{x:s,y:r}),{x:s,y:r}},"setCommitPosition"),Ne=h((t,e,a)=>{const s=v.get(t.branch);if(!s)throw new Error(`Branch not found for commit ${t.id}`);const r=e+a,n=s.pos;E.set(t.id,{x:n,y:r})},"setRootPosition"),_e=h((t,e,a,s,r,n)=>{if(n===x.HIGHLIGHT)t.append("rect").attr("x",a.x-10).attr("y",a.y-10).attr("width",20).attr("height",20).attr("class",`commit ${e.id} commit-highlight${r%O} ${s}-outer`),t.append("rect").attr("x",a.x-6).attr("y",a.y-6).attr("width",12).attr("height",12).attr("class",`commit ${e.id} commit${r%O} ${s}-inner`);else if(n===x.CHERRY_PICK)t.append("circle").attr("cx",a.x).attr("cy",a.y).attr("r",10).attr("class",`commit ${e.id} ${s}`),t.append("circle").attr("cx",a.x-3).attr("cy",a.y+2).attr("r",2.75).attr("fill","#fff").attr("class",`commit ${e.id} ${s}`),t.append("circle").attr("cx",a.x+3).attr("cy",a.y+2).attr("r",2.75).attr("fill","#fff").attr("class",`commit ${e.id} ${s}`),t.append("line").attr("x1",a.x+3).attr("y1",a.y+1).attr("x2",a.x).attr("y2",a.y-5).attr("stroke","#fff").attr("class",`commit ${e.id} ${s}`),t.append("line").attr("x1",a.x-3).attr("y1",a.y+1).attr("x2",a.x).attr("y2",a.y-5).attr("stroke","#fff").attr("class",`commit ${e.id} ${s}`);else{const o=t.append("circle");if(o.attr("cx",a.x),o.attr("cy",a.y),o.attr("r",e.type===x.MERGE?9:10),o.attr("class",`commit ${e.id} commit${r%O}`),n===x.MERGE){const c=t.append("circle");c.attr("cx",a.x),c.attr("cy",a.y),c.attr("r",6),c.attr("class",`commit ${s} ${e.id} commit${r%O}`)}n===x.REVERSE&&t.append("path").attr("d",`M ${a.x-5},${a.y-5}L${a.x+5},${a.y+5}M${a.x-5},${a.y+5}L${a.x+5},${a.y-5}`).attr("class",`commit ${s} ${e.id} commit${r%O}`)}},"drawCommitBullet"),Ve=h((t,e,a,s)=>{var r;if(e.type!==x.CHERRY_PICK&&(e.customId&&e.type===x.MERGE||e.type!==x.MERGE)&&(b!=null&&b.showCommitLabel)){const n=t.append("g"),o=n.insert("rect").attr("class","commit-label-bkg"),c=n.append("text").attr("x",s).attr("y",a.y+25).attr("class","commit-label").text(e.id),$=(r=c.node())==null?void 0:r.getBBox();if($&&(o.attr("x",a.posWithOffset-$.width/2-L).attr("y",a.y+13.5).attr("width",$.width+2*L).attr("height",$.height+2*L),u==="TB"||u==="BT"?(o.attr("x",a.x-($.width+4*k+5)).attr("y",a.y-12),c.attr("x",a.x-($.width+4*k)).attr("y",a.y+$.height-12)):c.attr("x",a.posWithOffset-$.width/2),b.rotateCommitLabel))if(u==="TB"||u==="BT")c.attr("transform","rotate(-45, "+a.x+", "+a.y+")"),o.attr("transform","rotate(-45, "+a.x+", "+a.y+")");else{const l=-7.5-($.width+10)/25*9.5,f=10+$.width/25*8.5;n.attr("transform","translate("+l+", "+f+") rotate(-45, "+s+", "+a.y+")")}}},"drawCommitLabel"),Xe=h((t,e,a,s)=>{var r;if(e.tags.length>0){let n=0,o=0,c=0;const $=[];for(const l of e.tags.reverse()){const f=t.insert("polygon"),g=t.append("circle"),d=t.append("text").attr("y",a.y-16-n).attr("class","tag-label").text(l),y=(r=d.node())==null?void 0:r.getBBox();if(!y)throw new Error("Tag bbox not found");o=Math.max(o,y.width),c=Math.max(c,y.height),d.attr("x",a.posWithOffset-y.width/2),$.push({tag:d,hole:g,rect:f,yOffset:n}),n+=20}for(const{tag:l,hole:f,rect:g,yOffset:d}of $){const y=c/2,p=a.y-19.2-d;if(g.attr("class","tag-label-bkg").attr("points",` +import{p as Z}from"./md-chunk-TMUBEWPD-CpBAAqu6.js";import{I as F}from"./md-chunk-KFBOBJHC-Ds-66270.js";import{B as U,_ as h,d as ee,C as re,D as te,E as ae,l as w,s as ne,g as se,b as ce,c as oe,p as ie,q as de,e as B,v as he,j as le,u as $e,F as fe}from"./md-index-DwcL-8Z2.js";import{p as ge}from"./md-gitGraph-YCYPL57B-CGrUuPMT.js";import"./md-_baseUniq-CnE51pk_.js";import"./md-_basePickBy-DzqsyDBx.js";import"./md-clone-DQRSbwhF.js";var x={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},ye=U.gitGraph,z=h(()=>re({...ye,...te().gitGraph}),"getConfig"),i=new F(()=>{const t=z(),e=t.mainBranchName,a=t.mainBranchOrder;return{mainBranchName:e,commits:new Map,head:null,branchConfig:new Map([[e,{name:e,order:a}]]),branches:new Map([[e,null]]),currBranch:e,direction:"LR",seq:0,options:{}}});function j(){return ae({length:7})}h(j,"getID");function N(t,e){const a=Object.create(null);return t.reduce((s,r)=>{const n=e(r);return a[n]||(a[n]=!0,s.push(r)),s},[])}h(N,"uniqBy");var ue=h(function(t){i.records.direction=t},"setDirection"),xe=h(function(t){w.debug("options str",t),t=t==null?void 0:t.trim(),t=t||"{}";try{i.records.options=JSON.parse(t)}catch(e){w.error("error while parsing gitGraph options",e.message)}},"setOptions"),pe=h(function(){return i.records.options},"getOptions"),be=h(function(t){let e=t.msg,a=t.id;const s=t.type;let r=t.tags;w.info("commit",e,a,s,r),w.debug("Entering commit:",e,a,s,r);const n=z();a=B.sanitizeText(a,n),e=B.sanitizeText(e,n),r=r==null?void 0:r.map(c=>B.sanitizeText(c,n));const o={id:a||i.records.seq+"-"+j(),message:e,seq:i.records.seq++,type:s??x.NORMAL,tags:r??[],parents:i.records.head==null?[]:[i.records.head.id],branch:i.records.currBranch};i.records.head=o,w.info("main branch",n.mainBranchName),i.records.commits.set(o.id,o),i.records.branches.set(i.records.currBranch,o.id),w.debug("in pushCommit "+o.id)},"commit"),me=h(function(t){let e=t.name;const a=t.order;if(e=B.sanitizeText(e,z()),i.records.branches.has(e))throw new Error(`Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout ${e}")`);i.records.branches.set(e,i.records.head!=null?i.records.head.id:null),i.records.branchConfig.set(e,{name:e,order:a}),_(e),w.debug("in createBranch")},"branch"),we=h(t=>{let e=t.branch,a=t.id;const s=t.type,r=t.tags,n=z();e=B.sanitizeText(e,n),a&&(a=B.sanitizeText(a,n));const o=i.records.branches.get(i.records.currBranch),c=i.records.branches.get(e),$=o?i.records.commits.get(o):void 0,l=c?i.records.commits.get(c):void 0;if($&&l&&$.branch===e)throw new Error(`Cannot merge branch '${e}' into itself.`);if(i.records.currBranch===e){const d=new Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw d.hash={text:`merge ${e}`,token:`merge ${e}`,expected:["branch abc"]},d}if($===void 0||!$){const d=new Error(`Incorrect usage of "merge". Current branch (${i.records.currBranch})has no commits`);throw d.hash={text:`merge ${e}`,token:`merge ${e}`,expected:["commit"]},d}if(!i.records.branches.has(e)){const d=new Error('Incorrect usage of "merge". Branch to be merged ('+e+") does not exist");throw d.hash={text:`merge ${e}`,token:`merge ${e}`,expected:[`branch ${e}`]},d}if(l===void 0||!l){const d=new Error('Incorrect usage of "merge". Branch to be merged ('+e+") has no commits");throw d.hash={text:`merge ${e}`,token:`merge ${e}`,expected:['"commit"']},d}if($===l){const d=new Error('Incorrect usage of "merge". Both branches have same head');throw d.hash={text:`merge ${e}`,token:`merge ${e}`,expected:["branch abc"]},d}if(a&&i.records.commits.has(a)){const d=new Error('Incorrect usage of "merge". Commit with id:'+a+" already exists, use different custom Id");throw d.hash={text:`merge ${e} ${a} ${s} ${r==null?void 0:r.join(" ")}`,token:`merge ${e} ${a} ${s} ${r==null?void 0:r.join(" ")}`,expected:[`merge ${e} ${a}_UNIQUE ${s} ${r==null?void 0:r.join(" ")}`]},d}const f=c||"",g={id:a||`${i.records.seq}-${j()}`,message:`merged branch ${e} into ${i.records.currBranch}`,seq:i.records.seq++,parents:i.records.head==null?[]:[i.records.head.id,f],branch:i.records.currBranch,type:x.MERGE,customType:s,customId:!!a,tags:r??[]};i.records.head=g,i.records.commits.set(g.id,g),i.records.branches.set(i.records.currBranch,g.id),w.debug(i.records.branches),w.debug("in mergeBranch")},"merge"),Ce=h(function(t){let e=t.id,a=t.targetId,s=t.tags,r=t.parent;w.debug("Entering cherryPick:",e,a,s);const n=z();if(e=B.sanitizeText(e,n),a=B.sanitizeText(a,n),s=s==null?void 0:s.map($=>B.sanitizeText($,n)),r=B.sanitizeText(r,n),!e||!i.records.commits.has(e)){const $=new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw $.hash={text:`cherryPick ${e} ${a}`,token:`cherryPick ${e} ${a}`,expected:["cherry-pick abc"]},$}const o=i.records.commits.get(e);if(o===void 0||!o)throw new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');if(r&&!(Array.isArray(o.parents)&&o.parents.includes(r)))throw new Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.");const c=o.branch;if(o.type===x.MERGE&&!r)throw new Error("Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.");if(!a||!i.records.commits.has(a)){if(c===i.records.currBranch){const g=new Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw g.hash={text:`cherryPick ${e} ${a}`,token:`cherryPick ${e} ${a}`,expected:["cherry-pick abc"]},g}const $=i.records.branches.get(i.records.currBranch);if($===void 0||!$){const g=new Error(`Incorrect usage of "cherry-pick". Current branch (${i.records.currBranch})has no commits`);throw g.hash={text:`cherryPick ${e} ${a}`,token:`cherryPick ${e} ${a}`,expected:["cherry-pick abc"]},g}const l=i.records.commits.get($);if(l===void 0||!l){const g=new Error(`Incorrect usage of "cherry-pick". Current branch (${i.records.currBranch})has no commits`);throw g.hash={text:`cherryPick ${e} ${a}`,token:`cherryPick ${e} ${a}`,expected:["cherry-pick abc"]},g}const f={id:i.records.seq+"-"+j(),message:`cherry-picked ${o==null?void 0:o.message} into ${i.records.currBranch}`,seq:i.records.seq++,parents:i.records.head==null?[]:[i.records.head.id,o.id],branch:i.records.currBranch,type:x.CHERRY_PICK,tags:s?s.filter(Boolean):[`cherry-pick:${o.id}${o.type===x.MERGE?`|parent:${r}`:""}`]};i.records.head=f,i.records.commits.set(f.id,f),i.records.branches.set(i.records.currBranch,f.id),w.debug(i.records.branches),w.debug("in cherryPick")}},"cherryPick"),_=h(function(t){if(t=B.sanitizeText(t,z()),i.records.branches.has(t)){i.records.currBranch=t;const e=i.records.branches.get(i.records.currBranch);e===void 0||!e?i.records.head=null:i.records.head=i.records.commits.get(e)??null}else{const e=new Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${t}")`);throw e.hash={text:`checkout ${t}`,token:`checkout ${t}`,expected:[`branch ${t}`]},e}},"checkout");function A(t,e,a){const s=t.indexOf(e);s===-1?t.push(a):t.splice(s,1,a)}h(A,"upsert");function D(t){const e=t.reduce((r,n)=>r.seq>n.seq?r:n,t[0]);let a="";t.forEach(function(r){r===e?a+=" *":a+=" |"});const s=[a,e.id,e.seq];for(const r in i.records.branches)i.records.branches.get(r)===e.id&&s.push(r);if(w.debug(s.join(" ")),e.parents&&e.parents.length==2&&e.parents[0]&&e.parents[1]){const r=i.records.commits.get(e.parents[0]);A(t,e,r),e.parents[1]&&t.push(i.records.commits.get(e.parents[1]))}else{if(e.parents.length==0)return;if(e.parents[0]){const r=i.records.commits.get(e.parents[0]);A(t,e,r)}}t=N(t,r=>r.id),D(t)}h(D,"prettyPrintCommitHistory");var ve=h(function(){w.debug(i.records.commits);const t=V()[0];D([t])},"prettyPrint"),Ee=h(function(){i.reset(),he()},"clear"),Be=h(function(){return[...i.records.branchConfig.values()].map((e,a)=>e.order!==null&&e.order!==void 0?e:{...e,order:parseFloat(`0.${a}`)}).sort((e,a)=>(e.order??0)-(a.order??0)).map(({name:e})=>({name:e}))},"getBranchesAsObjArray"),ke=h(function(){return i.records.branches},"getBranches"),Le=h(function(){return i.records.commits},"getCommits"),V=h(function(){const t=[...i.records.commits.values()];return t.forEach(function(e){w.debug(e.id)}),t.sort((e,a)=>e.seq-a.seq),t},"getCommitsArray"),Te=h(function(){return i.records.currBranch},"getCurrentBranch"),Me=h(function(){return i.records.direction},"getDirection"),Re=h(function(){return i.records.head},"getHead"),X={commitType:x,getConfig:z,setDirection:ue,setOptions:xe,getOptions:pe,commit:be,branch:me,merge:we,cherryPick:Ce,checkout:_,prettyPrint:ve,clear:Ee,getBranchesAsObjArray:Be,getBranches:ke,getCommits:Le,getCommitsArray:V,getCurrentBranch:Te,getDirection:Me,getHead:Re,setAccTitle:ne,getAccTitle:se,getAccDescription:ce,setAccDescription:oe,setDiagramTitle:ie,getDiagramTitle:de},Ie=h((t,e)=>{Z(t,e),t.dir&&e.setDirection(t.dir);for(const a of t.statements)qe(a,e)},"populate"),qe=h((t,e)=>{const s={Commit:h(r=>e.commit(Oe(r)),"Commit"),Branch:h(r=>e.branch(ze(r)),"Branch"),Merge:h(r=>e.merge(Ge(r)),"Merge"),Checkout:h(r=>e.checkout(He(r)),"Checkout"),CherryPicking:h(r=>e.cherryPick(Pe(r)),"CherryPicking")}[t.$type];s?s(t):w.error(`Unknown statement type: ${t.$type}`)},"parseStatement"),Oe=h(t=>({id:t.id,msg:t.message??"",type:t.type!==void 0?x[t.type]:x.NORMAL,tags:t.tags??void 0}),"parseCommit"),ze=h(t=>({name:t.name,order:t.order??0}),"parseBranch"),Ge=h(t=>({branch:t.branch,id:t.id??"",type:t.type!==void 0?x[t.type]:void 0,tags:t.tags??void 0}),"parseMerge"),He=h(t=>t.branch,"parseCheckout"),Pe=h(t=>{var a;return{id:t.id,targetId:"",tags:((a=t.tags)==null?void 0:a.length)===0?void 0:t.tags,parent:t.parent}},"parseCherryPicking"),We={parse:h(async t=>{const e=await ge("gitGraph",t);w.debug(e),Ie(e,X)},"parse")},S=ee(),b=S==null?void 0:S.gitGraph,R=10,I=40,k=4,L=2,O=8,v=new Map,E=new Map,P=30,G=new Map,W=[],M=0,u="LR",je=h(()=>{v.clear(),E.clear(),G.clear(),M=0,W=[],u="LR"},"clear"),J=h(t=>{const e=document.createElementNS("http://www.w3.org/2000/svg","text");return(typeof t=="string"?t.split(/\\n|\n|/gi):t).forEach(s=>{const r=document.createElementNS("http://www.w3.org/2000/svg","tspan");r.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),r.setAttribute("dy","1em"),r.setAttribute("x","0"),r.setAttribute("class","row"),r.textContent=s.trim(),e.appendChild(r)}),e},"drawText"),Q=h(t=>{let e,a,s;return u==="BT"?(a=h((r,n)=>r<=n,"comparisonFunc"),s=1/0):(a=h((r,n)=>r>=n,"comparisonFunc"),s=0),t.forEach(r=>{var o,c;const n=u==="TB"||u=="BT"?(o=E.get(r))==null?void 0:o.y:(c=E.get(r))==null?void 0:c.x;n!==void 0&&a(n,s)&&(e=r,s=n)}),e},"findClosestParent"),Se=h(t=>{let e="",a=1/0;return t.forEach(s=>{const r=E.get(s).y;r<=a&&(e=s,a=r)}),e||void 0},"findClosestParentBT"),Ae=h((t,e,a)=>{let s=a,r=a;const n=[];t.forEach(o=>{const c=e.get(o);if(!c)throw new Error(`Commit not found for key ${o}`);c.parents.length?(s=Ye(c),r=Math.max(s,r)):n.push(c),Ke(c,s)}),s=r,n.forEach(o=>{Ne(o,s,a)}),t.forEach(o=>{const c=e.get(o);if(c!=null&&c.parents.length){const $=Se(c.parents);s=E.get($).y-I,s<=r&&(r=s);const l=v.get(c.branch).pos,f=s-R;E.set(c.id,{x:l,y:f})}})},"setParallelBTPos"),De=h(t=>{var s;const e=Q(t.parents.filter(r=>r!==null));if(!e)throw new Error(`Closest parent not found for commit ${t.id}`);const a=(s=E.get(e))==null?void 0:s.y;if(a===void 0)throw new Error(`Closest parent position not found for commit ${t.id}`);return a},"findClosestParentPos"),Ye=h(t=>De(t)+I,"calculateCommitPosition"),Ke=h((t,e)=>{const a=v.get(t.branch);if(!a)throw new Error(`Branch not found for commit ${t.id}`);const s=a.pos,r=e+R;return E.set(t.id,{x:s,y:r}),{x:s,y:r}},"setCommitPosition"),Ne=h((t,e,a)=>{const s=v.get(t.branch);if(!s)throw new Error(`Branch not found for commit ${t.id}`);const r=e+a,n=s.pos;E.set(t.id,{x:n,y:r})},"setRootPosition"),_e=h((t,e,a,s,r,n)=>{if(n===x.HIGHLIGHT)t.append("rect").attr("x",a.x-10).attr("y",a.y-10).attr("width",20).attr("height",20).attr("class",`commit ${e.id} commit-highlight${r%O} ${s}-outer`),t.append("rect").attr("x",a.x-6).attr("y",a.y-6).attr("width",12).attr("height",12).attr("class",`commit ${e.id} commit${r%O} ${s}-inner`);else if(n===x.CHERRY_PICK)t.append("circle").attr("cx",a.x).attr("cy",a.y).attr("r",10).attr("class",`commit ${e.id} ${s}`),t.append("circle").attr("cx",a.x-3).attr("cy",a.y+2).attr("r",2.75).attr("fill","#fff").attr("class",`commit ${e.id} ${s}`),t.append("circle").attr("cx",a.x+3).attr("cy",a.y+2).attr("r",2.75).attr("fill","#fff").attr("class",`commit ${e.id} ${s}`),t.append("line").attr("x1",a.x+3).attr("y1",a.y+1).attr("x2",a.x).attr("y2",a.y-5).attr("stroke","#fff").attr("class",`commit ${e.id} ${s}`),t.append("line").attr("x1",a.x-3).attr("y1",a.y+1).attr("x2",a.x).attr("y2",a.y-5).attr("stroke","#fff").attr("class",`commit ${e.id} ${s}`);else{const o=t.append("circle");if(o.attr("cx",a.x),o.attr("cy",a.y),o.attr("r",e.type===x.MERGE?9:10),o.attr("class",`commit ${e.id} commit${r%O}`),n===x.MERGE){const c=t.append("circle");c.attr("cx",a.x),c.attr("cy",a.y),c.attr("r",6),c.attr("class",`commit ${s} ${e.id} commit${r%O}`)}n===x.REVERSE&&t.append("path").attr("d",`M ${a.x-5},${a.y-5}L${a.x+5},${a.y+5}M${a.x-5},${a.y+5}L${a.x+5},${a.y-5}`).attr("class",`commit ${s} ${e.id} commit${r%O}`)}},"drawCommitBullet"),Ve=h((t,e,a,s)=>{var r;if(e.type!==x.CHERRY_PICK&&(e.customId&&e.type===x.MERGE||e.type!==x.MERGE)&&(b!=null&&b.showCommitLabel)){const n=t.append("g"),o=n.insert("rect").attr("class","commit-label-bkg"),c=n.append("text").attr("x",s).attr("y",a.y+25).attr("class","commit-label").text(e.id),$=(r=c.node())==null?void 0:r.getBBox();if($&&(o.attr("x",a.posWithOffset-$.width/2-L).attr("y",a.y+13.5).attr("width",$.width+2*L).attr("height",$.height+2*L),u==="TB"||u==="BT"?(o.attr("x",a.x-($.width+4*k+5)).attr("y",a.y-12),c.attr("x",a.x-($.width+4*k)).attr("y",a.y+$.height-12)):c.attr("x",a.posWithOffset-$.width/2),b.rotateCommitLabel))if(u==="TB"||u==="BT")c.attr("transform","rotate(-45, "+a.x+", "+a.y+")"),o.attr("transform","rotate(-45, "+a.x+", "+a.y+")");else{const l=-7.5-($.width+10)/25*9.5,f=10+$.width/25*8.5;n.attr("transform","translate("+l+", "+f+") rotate(-45, "+s+", "+a.y+")")}}},"drawCommitLabel"),Xe=h((t,e,a,s)=>{var r;if(e.tags.length>0){let n=0,o=0,c=0;const $=[];for(const l of e.tags.reverse()){const f=t.insert("polygon"),g=t.append("circle"),d=t.append("text").attr("y",a.y-16-n).attr("class","tag-label").text(l),y=(r=d.node())==null?void 0:r.getBBox();if(!y)throw new Error("Tag bbox not found");o=Math.max(o,y.width),c=Math.max(c,y.height),d.attr("x",a.posWithOffset-y.width/2),$.push({tag:d,hole:g,rect:f,yOffset:n}),n+=20}for(const{tag:l,hole:f,rect:g,yOffset:d}of $){const y=c/2,p=a.y-19.2-d;if(g.attr("class","tag-label-bkg").attr("points",` ${s-o/2-k/2},${p+L} ${s-o/2-k/2},${p-L} ${a.posWithOffset-o/2-k},${p-y-L} diff --git a/static/js/md-graph-BHWZZcFR.js b/static/js/md-graph-Dei6eZAD.js similarity index 96% rename from static/js/md-graph-BHWZZcFR.js rename to static/js/md-graph-Dei6eZAD.js index 31dcde039..c2439e27b 100644 --- a/static/js/md-graph-BHWZZcFR.js +++ b/static/js/md-graph-Dei6eZAD.js @@ -1 +1 @@ -import{aA as N,aB as j,aC as f,aD as b,aE as E}from"./md-index-xmajgeSt.js";import{a as v,c as P,k as _,f as g,d,i as l,v as p,r as D}from"./md-_baseUniq-tMSgAJlj.js";var w=N(function(o){return v(P(o,1,j,!0))}),F="\0",a="\0",O="";class L{constructor(e={}){this._isDirected=Object.prototype.hasOwnProperty.call(e,"directed")?e.directed:!0,this._isMultigraph=Object.prototype.hasOwnProperty.call(e,"multigraph")?e.multigraph:!1,this._isCompound=Object.prototype.hasOwnProperty.call(e,"compound")?e.compound:!1,this._label=void 0,this._defaultNodeLabelFn=f(void 0),this._defaultEdgeLabelFn=f(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[a]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}isDirected(){return this._isDirected}isMultigraph(){return this._isMultigraph}isCompound(){return this._isCompound}setGraph(e){return this._label=e,this}graph(){return this._label}setDefaultNodeLabel(e){return b(e)||(e=f(e)),this._defaultNodeLabelFn=e,this}nodeCount(){return this._nodeCount}nodes(){return _(this._nodes)}sources(){var e=this;return g(this.nodes(),function(t){return E(e._in[t])})}sinks(){var e=this;return g(this.nodes(),function(t){return E(e._out[t])})}setNodes(e,t){var s=arguments,i=this;return d(e,function(r){s.length>1?i.setNode(r,t):i.setNode(r)}),this}setNode(e,t){return Object.prototype.hasOwnProperty.call(this._nodes,e)?(arguments.length>1&&(this._nodes[e]=t),this):(this._nodes[e]=arguments.length>1?t:this._defaultNodeLabelFn(e),this._isCompound&&(this._parent[e]=a,this._children[e]={},this._children[a][e]=!0),this._in[e]={},this._preds[e]={},this._out[e]={},this._sucs[e]={},++this._nodeCount,this)}node(e){return this._nodes[e]}hasNode(e){return Object.prototype.hasOwnProperty.call(this._nodes,e)}removeNode(e){if(Object.prototype.hasOwnProperty.call(this._nodes,e)){var t=s=>this.removeEdge(this._edgeObjs[s]);delete this._nodes[e],this._isCompound&&(this._removeFromParentsChildList(e),delete this._parent[e],d(this.children(e),s=>{this.setParent(s)}),delete this._children[e]),d(_(this._in[e]),t),delete this._in[e],delete this._preds[e],d(_(this._out[e]),t),delete this._out[e],delete this._sucs[e],--this._nodeCount}return this}setParent(e,t){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(l(t))t=a;else{t+="";for(var s=t;!l(s);s=this.parent(s))if(s===e)throw new Error("Setting "+t+" as parent of "+e+" would create a cycle");this.setNode(t)}return this.setNode(e),this._removeFromParentsChildList(e),this._parent[e]=t,this._children[t][e]=!0,this}_removeFromParentsChildList(e){delete this._children[this._parent[e]][e]}parent(e){if(this._isCompound){var t=this._parent[e];if(t!==a)return t}}children(e){if(l(e)&&(e=a),this._isCompound){var t=this._children[e];if(t)return _(t)}else{if(e===a)return this.nodes();if(this.hasNode(e))return[]}}predecessors(e){var t=this._preds[e];if(t)return _(t)}successors(e){var t=this._sucs[e];if(t)return _(t)}neighbors(e){var t=this.predecessors(e);if(t)return w(t,this.successors(e))}isLeaf(e){var t;return this.isDirected()?t=this.successors(e):t=this.neighbors(e),t.length===0}filterNodes(e){var t=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});t.setGraph(this.graph());var s=this;d(this._nodes,function(n,h){e(h)&&t.setNode(h,n)}),d(this._edgeObjs,function(n){t.hasNode(n.v)&&t.hasNode(n.w)&&t.setEdge(n,s.edge(n))});var i={};function r(n){var h=s.parent(n);return h===void 0||t.hasNode(h)?(i[n]=h,h):h in i?i[h]:r(h)}return this._isCompound&&d(t.nodes(),function(n){t.setParent(n,r(n))}),t}setDefaultEdgeLabel(e){return b(e)||(e=f(e)),this._defaultEdgeLabelFn=e,this}edgeCount(){return this._edgeCount}edges(){return p(this._edgeObjs)}setPath(e,t){var s=this,i=arguments;return D(e,function(r,n){return i.length>1?s.setEdge(r,n,t):s.setEdge(r,n),n}),this}setEdge(){var e,t,s,i,r=!1,n=arguments[0];typeof n=="object"&&n!==null&&"v"in n?(e=n.v,t=n.w,s=n.name,arguments.length===2&&(i=arguments[1],r=!0)):(e=n,t=arguments[1],s=arguments[3],arguments.length>2&&(i=arguments[2],r=!0)),e=""+e,t=""+t,l(s)||(s=""+s);var h=c(this._isDirected,e,t,s);if(Object.prototype.hasOwnProperty.call(this._edgeLabels,h))return r&&(this._edgeLabels[h]=i),this;if(!l(s)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(e),this.setNode(t),this._edgeLabels[h]=r?i:this._defaultEdgeLabelFn(e,t,s);var u=M(this._isDirected,e,t,s);return e=u.v,t=u.w,Object.freeze(u),this._edgeObjs[h]=u,C(this._preds[t],e),C(this._sucs[e],t),this._in[t][h]=u,this._out[e][h]=u,this._edgeCount++,this}edge(e,t,s){var i=arguments.length===1?m(this._isDirected,arguments[0]):c(this._isDirected,e,t,s);return this._edgeLabels[i]}hasEdge(e,t,s){var i=arguments.length===1?m(this._isDirected,arguments[0]):c(this._isDirected,e,t,s);return Object.prototype.hasOwnProperty.call(this._edgeLabels,i)}removeEdge(e,t,s){var i=arguments.length===1?m(this._isDirected,arguments[0]):c(this._isDirected,e,t,s),r=this._edgeObjs[i];return r&&(e=r.v,t=r.w,delete this._edgeLabels[i],delete this._edgeObjs[i],y(this._preds[t],e),y(this._sucs[e],t),delete this._in[t][i],delete this._out[e][i],this._edgeCount--),this}inEdges(e,t){var s=this._in[e];if(s){var i=p(s);return t?g(i,function(r){return r.v===t}):i}}outEdges(e,t){var s=this._out[e];if(s){var i=p(s);return t?g(i,function(r){return r.w===t}):i}}nodeEdges(e,t){var s=this.inEdges(e,t);if(s)return s.concat(this.outEdges(e,t))}}L.prototype._nodeCount=0;L.prototype._edgeCount=0;function C(o,e){o[e]?o[e]++:o[e]=1}function y(o,e){--o[e]||delete o[e]}function c(o,e,t,s){var i=""+e,r=""+t;if(!o&&i>r){var n=i;i=r,r=n}return i+O+r+O+(l(s)?F:s)}function M(o,e,t,s){var i=""+e,r=""+t;if(!o&&i>r){var n=i;i=r,r=n}var h={v:i,w:r};return s&&(h.name=s),h}function m(o,e){return c(o,e.v,e.w,e.name)}export{L as G}; +import{aA as N,aB as j,aC as f,aD as b,aE as E}from"./md-index-DwcL-8Z2.js";import{a as v,c as P,k as _,f as g,d,i as l,v as p,r as D}from"./md-_baseUniq-CnE51pk_.js";var w=N(function(o){return v(P(o,1,j,!0))}),F="\0",a="\0",O="";class L{constructor(e={}){this._isDirected=Object.prototype.hasOwnProperty.call(e,"directed")?e.directed:!0,this._isMultigraph=Object.prototype.hasOwnProperty.call(e,"multigraph")?e.multigraph:!1,this._isCompound=Object.prototype.hasOwnProperty.call(e,"compound")?e.compound:!1,this._label=void 0,this._defaultNodeLabelFn=f(void 0),this._defaultEdgeLabelFn=f(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[a]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}isDirected(){return this._isDirected}isMultigraph(){return this._isMultigraph}isCompound(){return this._isCompound}setGraph(e){return this._label=e,this}graph(){return this._label}setDefaultNodeLabel(e){return b(e)||(e=f(e)),this._defaultNodeLabelFn=e,this}nodeCount(){return this._nodeCount}nodes(){return _(this._nodes)}sources(){var e=this;return g(this.nodes(),function(t){return E(e._in[t])})}sinks(){var e=this;return g(this.nodes(),function(t){return E(e._out[t])})}setNodes(e,t){var s=arguments,i=this;return d(e,function(r){s.length>1?i.setNode(r,t):i.setNode(r)}),this}setNode(e,t){return Object.prototype.hasOwnProperty.call(this._nodes,e)?(arguments.length>1&&(this._nodes[e]=t),this):(this._nodes[e]=arguments.length>1?t:this._defaultNodeLabelFn(e),this._isCompound&&(this._parent[e]=a,this._children[e]={},this._children[a][e]=!0),this._in[e]={},this._preds[e]={},this._out[e]={},this._sucs[e]={},++this._nodeCount,this)}node(e){return this._nodes[e]}hasNode(e){return Object.prototype.hasOwnProperty.call(this._nodes,e)}removeNode(e){if(Object.prototype.hasOwnProperty.call(this._nodes,e)){var t=s=>this.removeEdge(this._edgeObjs[s]);delete this._nodes[e],this._isCompound&&(this._removeFromParentsChildList(e),delete this._parent[e],d(this.children(e),s=>{this.setParent(s)}),delete this._children[e]),d(_(this._in[e]),t),delete this._in[e],delete this._preds[e],d(_(this._out[e]),t),delete this._out[e],delete this._sucs[e],--this._nodeCount}return this}setParent(e,t){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(l(t))t=a;else{t+="";for(var s=t;!l(s);s=this.parent(s))if(s===e)throw new Error("Setting "+t+" as parent of "+e+" would create a cycle");this.setNode(t)}return this.setNode(e),this._removeFromParentsChildList(e),this._parent[e]=t,this._children[t][e]=!0,this}_removeFromParentsChildList(e){delete this._children[this._parent[e]][e]}parent(e){if(this._isCompound){var t=this._parent[e];if(t!==a)return t}}children(e){if(l(e)&&(e=a),this._isCompound){var t=this._children[e];if(t)return _(t)}else{if(e===a)return this.nodes();if(this.hasNode(e))return[]}}predecessors(e){var t=this._preds[e];if(t)return _(t)}successors(e){var t=this._sucs[e];if(t)return _(t)}neighbors(e){var t=this.predecessors(e);if(t)return w(t,this.successors(e))}isLeaf(e){var t;return this.isDirected()?t=this.successors(e):t=this.neighbors(e),t.length===0}filterNodes(e){var t=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});t.setGraph(this.graph());var s=this;d(this._nodes,function(n,h){e(h)&&t.setNode(h,n)}),d(this._edgeObjs,function(n){t.hasNode(n.v)&&t.hasNode(n.w)&&t.setEdge(n,s.edge(n))});var i={};function r(n){var h=s.parent(n);return h===void 0||t.hasNode(h)?(i[n]=h,h):h in i?i[h]:r(h)}return this._isCompound&&d(t.nodes(),function(n){t.setParent(n,r(n))}),t}setDefaultEdgeLabel(e){return b(e)||(e=f(e)),this._defaultEdgeLabelFn=e,this}edgeCount(){return this._edgeCount}edges(){return p(this._edgeObjs)}setPath(e,t){var s=this,i=arguments;return D(e,function(r,n){return i.length>1?s.setEdge(r,n,t):s.setEdge(r,n),n}),this}setEdge(){var e,t,s,i,r=!1,n=arguments[0];typeof n=="object"&&n!==null&&"v"in n?(e=n.v,t=n.w,s=n.name,arguments.length===2&&(i=arguments[1],r=!0)):(e=n,t=arguments[1],s=arguments[3],arguments.length>2&&(i=arguments[2],r=!0)),e=""+e,t=""+t,l(s)||(s=""+s);var h=c(this._isDirected,e,t,s);if(Object.prototype.hasOwnProperty.call(this._edgeLabels,h))return r&&(this._edgeLabels[h]=i),this;if(!l(s)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(e),this.setNode(t),this._edgeLabels[h]=r?i:this._defaultEdgeLabelFn(e,t,s);var u=M(this._isDirected,e,t,s);return e=u.v,t=u.w,Object.freeze(u),this._edgeObjs[h]=u,C(this._preds[t],e),C(this._sucs[e],t),this._in[t][h]=u,this._out[e][h]=u,this._edgeCount++,this}edge(e,t,s){var i=arguments.length===1?m(this._isDirected,arguments[0]):c(this._isDirected,e,t,s);return this._edgeLabels[i]}hasEdge(e,t,s){var i=arguments.length===1?m(this._isDirected,arguments[0]):c(this._isDirected,e,t,s);return Object.prototype.hasOwnProperty.call(this._edgeLabels,i)}removeEdge(e,t,s){var i=arguments.length===1?m(this._isDirected,arguments[0]):c(this._isDirected,e,t,s),r=this._edgeObjs[i];return r&&(e=r.v,t=r.w,delete this._edgeLabels[i],delete this._edgeObjs[i],y(this._preds[t],e),y(this._sucs[e],t),delete this._in[t][i],delete this._out[e][i],this._edgeCount--),this}inEdges(e,t){var s=this._in[e];if(s){var i=p(s);return t?g(i,function(r){return r.v===t}):i}}outEdges(e,t){var s=this._out[e];if(s){var i=p(s);return t?g(i,function(r){return r.w===t}):i}}nodeEdges(e,t){var s=this.inEdges(e,t);if(s)return s.concat(this.outEdges(e,t))}}L.prototype._nodeCount=0;L.prototype._edgeCount=0;function C(o,e){o[e]?o[e]++:o[e]=1}function y(o,e){--o[e]||delete o[e]}function c(o,e,t,s){var i=""+e,r=""+t;if(!o&&i>r){var n=i;i=r,r=n}return i+O+r+O+(l(s)?F:s)}function M(o,e,t,s){var i=""+e,r=""+t;if(!o&&i>r){var n=i;i=r,r=n}var h={v:i,w:r};return s&&(h.name=s),h}function m(o,e){return c(o,e.v,e.w,e.name)}export{L as G}; diff --git a/static/js/md-index-xmajgeSt.js b/static/js/md-index-DwcL-8Z2.js similarity index 90% rename from static/js/md-index-xmajgeSt.js rename to static/js/md-index-DwcL-8Z2.js index 56e0c5bcd..4235bd9f6 100644 --- a/static/js/md-index-xmajgeSt.js +++ b/static/js/md-index-DwcL-8Z2.js @@ -1,4 +1,4 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["static/js/md-dagre-4EVJKHTY-C74m9PzK.js","static/js/md-graph-BHWZZcFR.js","static/js/md-_baseUniq-tMSgAJlj.js","static/js/md-layout-BqDwQSB8.js","static/js/md-_basePickBy-uQ-3YVhY.js","static/js/md-clone-CA7_C22Z.js","static/js/md-c4Diagram-6F5ED5ID-DBpwfSLv.js","static/js/md-chunk-ASOPGD6M-CssFS237.js","static/js/md-flowDiagram-7ASYPVHJ-J29PyV-p.js","static/js/md-chunk-5HRBRIJM-ZvjOkuCg.js","static/js/md-channel-B-dfDPA1.js","static/js/md-erDiagram-6RL3IURR-D51C91no.js","static/js/md-gitGraphDiagram-NRZ2UAAF-BW6MaeAJ.js","static/js/md-chunk-TMUBEWPD-CtrfoVMV.js","static/js/md-chunk-KFBOBJHC-HfI5b6Uw.js","static/js/md-gitGraph-YCYPL57B-CO7l4bat.js","static/js/md-ganttDiagram-NTVNEXSI-Cih-I6r8.js","static/js/md-linear-ZI0YCQr4.js","static/js/md-init-Gi6I4Gst.js","static/js/md-infoDiagram-A4XQUW5V-CoDJThRs.js","static/js/md-pieDiagram-YF2LJOPJ-BefXGgDU.js","static/js/md-arc-ZRoKAPxT.js","static/js/md-ordinal-CxVaQH2l.js","static/js/md-quadrantDiagram-OS5C2QUG-D-1dDcst.js","static/js/md-xychartDiagram-6QU3TZC5-BTBLNZIZ.js","static/js/md-requirementDiagram-MIRIMTAZ-CVpbpU2X.js","static/js/md-sequenceDiagram-G6AWOVSC-DEpdFIke.js","static/js/md-classDiagram-LNE6IOMH-B-vzwpIS.js","static/js/md-chunk-T2TOU4HS-B-_XrVCj.js","static/js/md-classDiagram-v2-MQ7JQ4JX-B-vzwpIS.js","static/js/md-stateDiagram-MAYHULR4-C3DlYV9d.js","static/js/md-chunk-7U56Z5CX-DOJOZdgE.js","static/js/md-stateDiagram-v2-4JROLMXI-Dxxlrmqs.js","static/js/md-journeyDiagram-G5WM74LC-8wGIa7iP.js","static/js/md-timeline-definition-U7ZMHBDA-_Jm9VfuV.js","static/js/md-mindmap-definition-GWI6TPTV-_OAhJZ9o.js","static/js/md-cytoscape.esm-CC2kYfRy.js","static/js/md-sankeyDiagram-Y46BX6SQ-DXtcZX8d.js","static/js/md-diagram-QW4FP2JN-CHUVC0i7.js","static/js/md-blockDiagram-ZHA2E4KO-C1NPYHYN.js","static/js/md-architectureDiagram-UYN6MBPD-C737qlCv.js"])))=>i.map(i=>d[i]); +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["static/js/md-dagre-4EVJKHTY-BNHKBi3d.js","static/js/md-graph-Dei6eZAD.js","static/js/md-_baseUniq-CnE51pk_.js","static/js/md-layout-ao6zl1AG.js","static/js/md-_basePickBy-DzqsyDBx.js","static/js/md-clone-DQRSbwhF.js","static/js/md-c4Diagram-6F5ED5ID-CucKeQac.js","static/js/md-chunk-ASOPGD6M-DOjjHUZG.js","static/js/md-flowDiagram-7ASYPVHJ-CNc02Idl.js","static/js/md-chunk-5HRBRIJM-BlmWzKS6.js","static/js/md-channel-CL0exIu9.js","static/js/md-erDiagram-6RL3IURR-B6EcPYCQ.js","static/js/md-gitGraphDiagram-NRZ2UAAF-BWOWDXGd.js","static/js/md-chunk-TMUBEWPD-CpBAAqu6.js","static/js/md-chunk-KFBOBJHC-Ds-66270.js","static/js/md-gitGraph-YCYPL57B-CGrUuPMT.js","static/js/md-ganttDiagram-NTVNEXSI-Cd6Fwjxw.js","static/js/md-linear-BK_nKPY0.js","static/js/md-init-Gi6I4Gst.js","static/js/md-infoDiagram-A4XQUW5V-BBvf_S6j.js","static/js/md-pieDiagram-YF2LJOPJ-O0QriEt-.js","static/js/md-arc-Kysyz51x.js","static/js/md-ordinal-CxVaQH2l.js","static/js/md-quadrantDiagram-OS5C2QUG-DV5z-JAy.js","static/js/md-xychartDiagram-6QU3TZC5-Byj9-Kuq.js","static/js/md-requirementDiagram-MIRIMTAZ-CK7gN75T.js","static/js/md-sequenceDiagram-G6AWOVSC-Dv2O27DJ.js","static/js/md-classDiagram-LNE6IOMH-BglD_SeO.js","static/js/md-chunk-T2TOU4HS-B_GouoIk.js","static/js/md-classDiagram-v2-MQ7JQ4JX-BglD_SeO.js","static/js/md-stateDiagram-MAYHULR4-DfSd1v8I.js","static/js/md-chunk-7U56Z5CX-B9JVyUo5.js","static/js/md-stateDiagram-v2-4JROLMXI-B7lF6Wsi.js","static/js/md-journeyDiagram-G5WM74LC-DGrnBqyQ.js","static/js/md-timeline-definition-U7ZMHBDA-SVQQVrz6.js","static/js/md-mindmap-definition-GWI6TPTV-C66ZRu1A.js","static/js/md-cytoscape.esm-CYFrXB02.js","static/js/md-sankeyDiagram-Y46BX6SQ-DsdI1xJ4.js","static/js/md-diagram-QW4FP2JN-CiY8H-i6.js","static/js/md-blockDiagram-ZHA2E4KO-DbcgUgA7.js","static/js/md-architectureDiagram-UYN6MBPD-r90AIZIa.js"])))=>i.map(i=>d[i]); var ZN=Object.defineProperty;var LC=Ra=>{throw TypeError(Ra)};var eI=(Ra,qa,rd)=>qa in Ra?ZN(Ra,qa,{enumerable:!0,configurable:!0,writable:!0,value:rd}):Ra[qa]=rd;var Ng=(Ra,qa,rd)=>eI(Ra,typeof qa!="symbol"?qa+"":qa,rd),tI=(Ra,qa,rd)=>qa.has(Ra)||LC("Cannot "+rd);var BC=(Ra,qa,rd)=>qa.has(Ra)?LC("Cannot add the same private member more than once"):qa instanceof WeakSet?qa.add(Ra):qa.set(Ra,rd);var ZT=(Ra,qa,rd)=>(tI(Ra,qa,"access private method"),rd);(function(){const qa=document.createElement("link").relList;if(qa&&qa.supports&&qa.supports("modulepreload"))return;for(const pd of document.querySelectorAll('link[rel="modulepreload"]'))sd(pd);new MutationObserver(pd=>{for(const fd of pd)if(fd.type==="childList")for(const hd of fd.addedNodes)hd.tagName==="LINK"&&hd.rel==="modulepreload"&&sd(hd)}).observe(document,{childList:!0,subtree:!0});function rd(pd){const fd={};return pd.integrity&&(fd.integrity=pd.integrity),pd.referrerPolicy&&(fd.referrerPolicy=pd.referrerPolicy),pd.crossOrigin==="use-credentials"?fd.credentials="include":pd.crossOrigin==="anonymous"?fd.credentials="omit":fd.credentials="same-origin",fd}function sd(pd){if(pd.ep)return;pd.ep=!0;const fd=rd(pd);fetch(pd.href,fd)}})();const global$1=globalThis||void 0||self;/** * @vue/shared v3.5.13 * (c) 2018-present Yuxi (Evan) You and Vue contributors @@ -478,7 +478,7 @@ code_pre { fieldset[disabled]:not(fieldset[disabled] legend:first-of-type *) )`,enabled:":not(:disabled)",checked:":is(:is(input[type=radio], input[type=checkbox])[checked], option:selected)",required:":is(input, select, textarea)[required]",optional:":is(input, select, textarea):not([required])",selected:"option:is([selected], select:not([multiple]):not(:has(> option[selected])) > :first-of-type)",checkbox:"[type=checkbox]",file:"[type=file]",password:"[type=password]",radio:"[type=radio]",reset:"[type=reset]",image:"[type=image]",submit:"[type=submit]",parent:":not(:empty)",header:":is(h1, h2, h3, h4, h5, h6)",button:":is(button, input[type=button])",input:":is(input, textarea, select, button)",text:"input:is(:not([type!='']), [type=text])"},PLACEHOLDER_ELEMENT={};function ensureIsTag(Ra,qa){return Ra===boolbase$1.falseFunc?boolbase$1.falseFunc:rd=>qa.isTag(rd)&&Ra(rd)}function getNextSiblings(Ra,qa){const rd=qa.getSiblings(Ra);if(rd.length<=1)return[];const sd=rd.indexOf(Ra);return sd<0||sd===rd.length-1?[]:rd.slice(sd+1).filter(qa.isTag)}function copyOptions(Ra){return{xmlMode:!!Ra.xmlMode,lowerCaseAttributeNames:!!Ra.lowerCaseAttributeNames,lowerCaseTags:!!Ra.lowerCaseTags,quirksMode:!!Ra.quirksMode,cacheResults:!!Ra.cacheResults,pseudos:Ra.pseudos,adapter:Ra.adapter,equals:Ra.equals}}const is$3=(Ra,qa,rd,sd,pd)=>{const fd=pd(qa,copyOptions(rd),sd);return fd===boolbase$1.trueFunc?Ra:fd===boolbase$1.falseFunc?boolbase$1.falseFunc:hd=>fd(hd)&&Ra(hd)},subselects={is:is$3,matches:is$3,where:is$3,not(Ra,qa,rd,sd,pd){const fd=pd(qa,copyOptions(rd),sd);return fd===boolbase$1.falseFunc?Ra:fd===boolbase$1.trueFunc?boolbase$1.falseFunc:hd=>!fd(hd)&&Ra(hd)},has(Ra,qa,rd,sd,pd){const{adapter:fd}=rd,hd=copyOptions(rd);hd.relativeSelector=!0;const md=qa.some(vd=>vd.some(isTraversal))?[PLACEHOLDER_ELEMENT]:void 0,gd=pd(qa,hd,md);if(gd===boolbase$1.falseFunc)return boolbase$1.falseFunc;const yd=ensureIsTag(gd,fd);if(md&&gd!==boolbase$1.trueFunc){const{shouldTestNextSiblings:vd=!1}=gd;return Nd=>{if(!Ra(Nd))return!1;md[0]=Nd;const Md=fd.getChildren(Nd),Ld=vd?[...Md,...getNextSiblings(Nd,fd)]:Md;return fd.existsOne(yd,Ld)}}return vd=>Ra(vd)&&fd.existsOne(yd,fd.getChildren(vd))}};function compilePseudoSelector(Ra,qa,rd,sd,pd){var fd;const{name:hd,data:md}=qa;if(Array.isArray(md)){if(!(hd in subselects))throw new Error(`Unknown pseudo-class :${hd}(${md})`);return subselects[hd](Ra,md,rd,sd,pd)}const gd=(fd=rd.pseudos)===null||fd===void 0?void 0:fd[hd],yd=typeof gd=="string"?gd:aliases[hd];if(typeof yd=="string"){if(md!=null)throw new Error(`Pseudo ${hd} doesn't have any arguments`);const vd=parse$8(yd);return subselects.is(Ra,vd,rd,sd,pd)}if(typeof gd=="function")return verifyPseudoArgs(gd,hd,md,1),vd=>gd(vd,md)&&Ra(vd);if(hd in filters)return filters[hd](Ra,md,rd,sd);if(hd in pseudos){const vd=pseudos[hd];return verifyPseudoArgs(vd,hd,md,2),Nd=>vd(Nd,rd,md)&&Ra(Nd)}throw new Error(`Unknown pseudo-class :${hd}`)}function getElementParent(Ra,qa){const rd=qa.getParent(Ra);return rd&&qa.isTag(rd)?rd:null}function compileGeneralSelector(Ra,qa,rd,sd,pd){const{adapter:fd,equals:hd}=rd;switch(qa.type){case SelectorType$2.PseudoElement:throw new Error("Pseudo-elements are not supported by css-select");case SelectorType$2.ColumnCombinator:throw new Error("Column combinators are not yet supported by css-select");case SelectorType$2.Attribute:{if(qa.namespace!=null)throw new Error("Namespaced attributes are not yet supported by css-select");return(!rd.xmlMode||rd.lowerCaseAttributeNames)&&(qa.name=qa.name.toLowerCase()),attributeRules[qa.action](Ra,qa,rd)}case SelectorType$2.Pseudo:return compilePseudoSelector(Ra,qa,rd,sd,pd);case SelectorType$2.Tag:{if(qa.namespace!=null)throw new Error("Namespaced tag names are not yet supported by css-select");let{name:md}=qa;return(!rd.xmlMode||rd.lowerCaseTags)&&(md=md.toLowerCase()),function(yd){return fd.getName(yd)===md&&Ra(yd)}}case SelectorType$2.Descendant:{if(rd.cacheResults===!1||typeof WeakSet>"u")return function(yd){let vd=yd;for(;vd=getElementParent(vd,fd);)if(Ra(vd))return!0;return!1};const md=new WeakSet;return function(yd){let vd=yd;for(;vd=getElementParent(vd,fd);)if(!md.has(vd)){if(fd.isTag(vd)&&Ra(vd))return!0;md.add(vd)}return!1}}case"_flexibleDescendant":return function(gd){let yd=gd;do if(Ra(yd))return!0;while(yd=getElementParent(yd,fd));return!1};case SelectorType$2.Parent:return function(gd){return fd.getChildren(gd).some(yd=>fd.isTag(yd)&&Ra(yd))};case SelectorType$2.Child:return function(gd){const yd=fd.getParent(gd);return yd!=null&&fd.isTag(yd)&&Ra(yd)};case SelectorType$2.Sibling:return function(gd){const yd=fd.getSiblings(gd);for(let vd=0;vdqa.some(includesScopePseudo)))}const DESCENDANT_TOKEN={type:SelectorType$2.Descendant},FLEXIBLE_DESCENDANT_TOKEN={type:"_flexibleDescendant"},SCOPE_TOKEN={type:SelectorType$2.Pseudo,name:"scope",data:null};function absolutize(Ra,{adapter:qa},rd){const sd=!!(rd!=null&&rd.every(pd=>{const fd=qa.isTag(pd)&&qa.getParent(pd);return pd===PLACEHOLDER_ELEMENT||fd&&qa.isTag(fd)}));for(const pd of Ra){if(!(pd.length>0&&isTraversal(pd[0])&&pd[0].type!==SelectorType$2.Descendant))if(sd&&!pd.some(includesScopePseudo))pd.unshift(DESCENDANT_TOKEN);else continue;pd.unshift(SCOPE_TOKEN)}}function compileToken(Ra,qa,rd){var sd;Ra.forEach(sortByProcedure),rd=(sd=qa.context)!==null&&sd!==void 0?sd:rd;const pd=Array.isArray(rd),fd=rd&&(Array.isArray(rd)?rd:[rd]);if(qa.relativeSelector!==!1)absolutize(Ra,qa,fd);else if(Ra.some(gd=>gd.length>0&&isTraversal(gd[0])))throw new Error("Relative selectors are not allowed when the `relativeSelector` option is disabled");let hd=!1;const md=Ra.map(gd=>{if(gd.length>=2){const[yd,vd]=gd;yd.type!==SelectorType$2.Pseudo||yd.name!=="scope"||(pd&&vd.type===SelectorType$2.Descendant?gd[1]=FLEXIBLE_DESCENDANT_TOKEN:(vd.type===SelectorType$2.Adjacent||vd.type===SelectorType$2.Sibling)&&(hd=!0))}return compileRules(gd,qa,fd)}).reduce(reduceRules,boolbase$1.falseFunc);return md.shouldTestNextSiblings=hd,md}function compileRules(Ra,qa,rd){var sd;return Ra.reduce((pd,fd)=>pd===boolbase$1.falseFunc?boolbase$1.falseFunc:compileGeneralSelector(pd,fd,qa,rd,compileToken),(sd=qa.rootFunc)!==null&&sd!==void 0?sd:boolbase$1.trueFunc)}function reduceRules(Ra,qa){return qa===boolbase$1.falseFunc||Ra===boolbase$1.trueFunc?Ra:Ra===boolbase$1.falseFunc||qa===boolbase$1.trueFunc?qa:function(sd){return Ra(sd)||qa(sd)}}const defaultEquals=(Ra,qa)=>Ra===qa,defaultOptions$3={adapter:DomUtils,equals:defaultEquals};function convertOptionFormats(Ra){var qa,rd,sd,pd;const fd=Ra??defaultOptions$3;return(qa=fd.adapter)!==null&&qa!==void 0||(fd.adapter=DomUtils),(rd=fd.equals)!==null&&rd!==void 0||(fd.equals=(pd=(sd=fd.adapter)===null||sd===void 0?void 0:sd.equals)!==null&&pd!==void 0?pd:defaultEquals),fd}function wrapCompile(Ra){return function(rd,sd,pd){const fd=convertOptionFormats(sd);return Ra(rd,fd,pd)}}const _compileToken=wrapCompile(compileToken);function prepareContext(Ra,qa,rd=!1){return rd&&(Ra=appendNextSiblings(Ra,qa)),Array.isArray(Ra)?qa.removeSubsets(Ra):qa.getChildren(Ra)}function appendNextSiblings(Ra,qa){const rd=Array.isArray(Ra)?Ra.slice(0):[Ra],sd=rd.length;for(let pd=0;pdqa.some(isFilter)):!1}function getLimit(Ra,qa,rd){const sd=qa!=null?parseInt(qa,10):NaN;switch(Ra){case"first":return 1;case"nth":case"eq":return isFinite(sd)?sd>=0?sd+1:1/0:0;case"lt":return isFinite(sd)?sd>=0?Math.min(sd,rd):1/0:0;case"gt":return isFinite(sd)?1/0:0;case"odd":return 2*rd;case"even":return 2*rd-1;case"last":case"not":return 1/0}}function getDocumentRoot(Ra){for(;Ra.parent;)Ra=Ra.parent;return Ra}function groupSelectors(Ra){const qa=[],rd=[];for(const sd of Ra)sd.some(isFilter)?qa.push(sd):rd.push(sd);return[rd,qa]}const UNIVERSAL_SELECTOR={type:SelectorType$2.Universal,namespace:null},SCOPE_PSEUDO={type:SelectorType$2.Pseudo,name:"scope",data:null};function is$2(Ra,qa,rd={}){return some$2([Ra],qa,rd)}function some$2(Ra,qa,rd={}){if(typeof qa=="function")return Ra.some(qa);const[sd,pd]=groupSelectors(parse$8(qa));return sd.length>0&&Ra.some(_compileToken(sd,rd))||pd.some(fd=>filterBySelector(fd,Ra,rd).length>0)}function filterByPosition(Ra,qa,rd,sd){const pd=typeof rd=="string"?parseInt(rd,10):NaN;switch(Ra){case"first":case"lt":return qa;case"last":return qa.length>0?[qa[qa.length-1]]:qa;case"nth":case"eq":return isFinite(pd)&&Math.abs(pd)hd%2===0);case"odd":return qa.filter((fd,hd)=>hd%2===1);case"not":{const fd=new Set(filterParsed(rd,qa,sd));return qa.filter(hd=>!fd.has(hd))}}}function filter$4(Ra,qa,rd={}){return filterParsed(parse$8(Ra),qa,rd)}function filterParsed(Ra,qa,rd){if(qa.length===0)return[];const[sd,pd]=groupSelectors(Ra);let fd;if(sd.length){const hd=filterElements(qa,sd,rd);if(pd.length===0)return hd;hd.length&&(fd=new Set(hd))}for(let hd=0;hdisTag(vd)&&!fd.has(vd)):qa).length===0)break;const yd=filterBySelector(md,qa,rd);if(yd.length)if(fd)yd.forEach(vd=>fd.add(vd));else{if(hd===pd.length-1)return yd;fd=new Set(yd)}}return typeof fd<"u"?fd.size===qa.length?qa:qa.filter(hd=>fd.has(hd)):[]}function filterBySelector(Ra,qa,rd){var sd;if(Ra.some(isTraversal$1)){const pd=(sd=rd.root)!==null&&sd!==void 0?sd:getDocumentRoot(qa[0]),fd={...rd,context:qa,relativeSelector:!1};return Ra.push(SCOPE_PSEUDO),findFilterElements(pd,Ra,fd,!0,qa.length)}return findFilterElements(qa,Ra,rd,!1,qa.length)}function select$1(Ra,qa,rd={},sd=1/0){if(typeof Ra=="function")return find$2(qa,Ra);const[pd,fd]=groupSelectors(parse$8(Ra)),hd=fd.map(md=>findFilterElements(qa,md,rd,!0,sd));return pd.length&&hd.push(findElements(qa,pd,rd,sd)),hd.length===0?[]:hd.length===1?hd[0]:uniqueSort(hd.reduce((md,gd)=>[...md,...gd]))}function findFilterElements(Ra,qa,rd,sd,pd){const fd=qa.findIndex(isFilter),hd=qa.slice(0,fd),md=qa[fd],gd=qa.length-1===fd?pd:1/0,yd=getLimit(md.name,md.data,gd);if(yd===0)return[];const Nd=(hd.length===0&&!Array.isArray(Ra)?getChildren(Ra).filter(isTag):hd.length===0?(Array.isArray(Ra)?Ra:[Ra]).filter(isTag):sd||hd.some(isTraversal$1)?findElements(Ra,[hd],rd,yd):filterElements(Ra,[hd],rd)).slice(0,yd);let Md=filterByPosition(md.name,Nd,md.data,rd);if(Md.length===0||qa.length===fd+1)return Md;const Ld=qa.slice(fd+1),Fd=Ld.some(isTraversal$1);if(Fd){if(isTraversal$1(Ld[0])){const{type:Hd}=Ld[0];(Hd===SelectorType$2.Sibling||Hd===SelectorType$2.Adjacent)&&(Md=prepareContext(Md,DomUtils,!0)),Ld.unshift(UNIVERSAL_SELECTOR)}rd={...rd,relativeSelector:!1,rootFunc:Hd=>Md.includes(Hd)}}else rd.rootFunc&&rd.rootFunc!==boolbase.trueFunc&&(rd={...rd,rootFunc:boolbase.trueFunc});return Ld.some(isFilter)?findFilterElements(Md,Ld,rd,!1,pd):Fd?findElements(Md,[Ld],rd,pd):filterElements(Md,[Ld],rd)}function findElements(Ra,qa,rd,sd){const pd=_compileToken(qa,rd,Ra);return find$2(Ra,pd,sd)}function find$2(Ra,qa,rd=1/0){const sd=prepareContext(Ra,DomUtils,qa.shouldTestNextSiblings);return find$3(pd=>isTag(pd)&&qa(pd),sd,!0,rd)}function filterElements(Ra,qa,rd){const sd=(Array.isArray(Ra)?Ra:[Ra]).filter(isTag);if(sd.length===0)return sd;const pd=_compileToken(qa,rd);return pd===boolbase.trueFunc?sd:sd.filter(pd)}const reSiblingSelector=/^\s*[+~]/;function find$1(Ra){if(!Ra)return this._make([]);if(typeof Ra!="string"){const qa=isCheerio(Ra)?Ra.toArray():[Ra],rd=this.toArray();return this._make(qa.filter(sd=>rd.some(pd=>contains$1(pd,sd))))}return this._findBySelector(Ra,Number.POSITIVE_INFINITY)}function _findBySelector(Ra,qa){var rd;const sd=this.toArray(),pd=reSiblingSelector.test(Ra)?sd:this.children().toArray(),fd={context:sd,root:(rd=this._root)===null||rd===void 0?void 0:rd[0],xmlMode:this.options.xmlMode,lowerCaseTags:this.options.lowerCaseTags,lowerCaseAttributeNames:this.options.lowerCaseAttributeNames,pseudos:this.options.pseudos,quirksMode:this.options.quirksMode};return this._make(select$1(Ra,pd,fd,qa))}function _getMatcher(Ra){return function(qa,...rd){return function(sd){var pd;let fd=Ra(qa,this);return sd&&(fd=filterArray$1(fd,sd,this.options.xmlMode,(pd=this._root)===null||pd===void 0?void 0:pd[0])),this._make(this.length>1&&fd.length>1?rd.reduce((hd,md)=>md(hd),fd):fd)}}}const _matcher=_getMatcher((Ra,qa)=>{let rd=[];for(let sd=0;sd0&&(rd=rd.concat(pd))}return rd}),_singleMatcher=_getMatcher((Ra,qa)=>{const rd=[];for(let sd=0;sd{const hd=[];return domEach(fd,md=>{for(let gd;(gd=pd(md))&&!(rd!=null&&rd(gd,hd.length));md=gd)hd.push(gd)}),hd})(Ra,...qa);return function(pd,fd){rd=typeof pd=="string"?md=>is$2(md,pd,this.options):pd?getFilterFn(pd):null;const hd=sd.call(this,fd);return rd=null,hd}}function _removeDuplicates(Ra){return Ra.length>1?Array.from(new Set(Ra)):Ra}const parent$1=_singleMatcher(({parent:Ra})=>Ra&&!isDocument(Ra)?Ra:null,_removeDuplicates),parents=_matcher(Ra=>{const qa=[];for(;Ra.parent&&!isDocument(Ra.parent);)qa.push(Ra.parent),Ra=Ra.parent;return qa},uniqueSort,Ra=>Ra.reverse()),parentsUntil=_matchUntil(({parent:Ra})=>Ra&&!isDocument(Ra)?Ra:null,uniqueSort,Ra=>Ra.reverse());function closest(Ra){var qa;const rd=[];if(!Ra)return this._make(rd);const sd={xmlMode:this.options.xmlMode,root:(qa=this._root)===null||qa===void 0?void 0:qa[0]},pd=typeof Ra=="string"?fd=>is$2(fd,Ra,sd):getFilterFn(Ra);return domEach(this,fd=>{for(fd&&!isDocument(fd)&&!isTag(fd)&&(fd=fd.parent);fd&&isTag(fd);){if(pd(fd,0)){rd.includes(fd)||rd.push(fd);break}fd=fd.parent}}),this._make(rd)}const next$1=_singleMatcher(Ra=>nextElementSibling(Ra)),nextAll=_matcher(Ra=>{const qa=[];for(;Ra.next;)Ra=Ra.next,isTag(Ra)&&qa.push(Ra);return qa},_removeDuplicates),nextUntil=_matchUntil(Ra=>nextElementSibling(Ra),_removeDuplicates),prev$1=_singleMatcher(Ra=>prevElementSibling(Ra)),prevAll=_matcher(Ra=>{const qa=[];for(;Ra.prev;)Ra=Ra.prev,isTag(Ra)&&qa.push(Ra);return qa},_removeDuplicates),prevUntil=_matchUntil(Ra=>prevElementSibling(Ra),_removeDuplicates),siblings=_matcher(Ra=>getSiblings(Ra).filter(qa=>isTag(qa)&&qa!==Ra),uniqueSort),children$2=_matcher(Ra=>getChildren(Ra).filter(isTag),_removeDuplicates);function contents(){const Ra=this.toArray().reduce((qa,rd)=>hasChildren(rd)?qa.concat(rd.children):qa,[]);return this._make(Ra)}function each$1(Ra){let qa=0;const rd=this.length;for(;qaRa.call(qa,rd,qa):isCheerio(Ra)?qa=>Array.prototype.includes.call(Ra,qa):function(qa){return Ra===qa}}function filter$3(Ra){var qa;return this._make(filterArray$1(this.toArray(),Ra,this.options.xmlMode,(qa=this._root)===null||qa===void 0?void 0:qa[0]))}function filterArray$1(Ra,qa,rd,sd){return typeof qa=="string"?filter$4(qa,Ra,{xmlMode:rd,root:sd}):Ra.filter(getFilterFn(qa))}function is$1(Ra){const qa=this.toArray();return typeof Ra=="string"?some$2(qa.filter(isTag),Ra,this.options):Ra?qa.some(getFilterFn(Ra)):!1}function not$1(Ra){let qa=this.toArray();if(typeof Ra=="string"){const rd=new Set(filter$4(Ra,qa,this.options));qa=qa.filter(sd=>!rd.has(sd))}else{const rd=getFilterFn(Ra);qa=qa.filter((sd,pd)=>!rd(sd,pd))}return this._make(qa)}function has(Ra){return this.filter(typeof Ra=="string"?`:has(${Ra})`:(qa,rd)=>this._make(rd).find(Ra).length>0)}function first(){return this.length>1?this._make(this[0]):this}function last(){return this.length>0?this._make(this[this.length-1]):this}function eq$1(Ra){var qa;return Ra=+Ra,Ra===0&&this.length<=1?this:(Ra<0&&(Ra=this.length+Ra),this._make((qa=this[Ra])!==null&&qa!==void 0?qa:[]))}function get$3(Ra){return Ra==null?this.toArray():this[Ra<0?this.length+Ra:Ra]}function toArray$5(){return Array.prototype.slice.call(this)}function index$1(Ra){let qa,rd;return Ra==null?(qa=this.parent().children(),rd=this[0]):typeof Ra=="string"?(qa=this._make(Ra),rd=this[0]):(qa=this,rd=isCheerio(Ra)?Ra[0]:Ra),Array.prototype.indexOf.call(qa,rd)}function slice$1(Ra,qa){return this._make(Array.prototype.slice.call(this,Ra,qa))}function end$1(){var Ra;return(Ra=this.prevObject)!==null&&Ra!==void 0?Ra:this._make([])}function add(Ra,qa){const rd=this._make(Ra,qa),sd=uniqueSort([...this.get(),...rd.get()]);return this._make(sd)}function addBack(Ra){return this.prevObject?this.add(Ra?this.prevObject.filter(Ra):this.prevObject):this}const Traversing=Object.freeze(Object.defineProperty({__proto__:null,_findBySelector,add,addBack,children:children$2,closest,contents,each:each$1,end:end$1,eq:eq$1,filter:filter$3,filterArray:filterArray$1,find:find$1,first,get:get$3,has,index:index$1,is:is$1,last,map:map$5,next:next$1,nextAll,nextUntil,not:not$1,parent:parent$1,parents,parentsUntil,prev:prev$1,prevAll,prevUntil,siblings,slice:slice$1,toArray:toArray$5},Symbol.toStringTag,{value:"Module"}));function getParse(Ra){return function(rd,sd,pd,fd){if(typeof Buffer$4<"u"&&Buffer$4.isBuffer(rd)&&(rd=rd.toString()),typeof rd=="string")return Ra(rd,sd,pd,fd);const hd=rd;if(!Array.isArray(hd)&&isDocument(hd))return hd;const md=new Document([]);return update(hd,md),md}}function update(Ra,qa){const rd=Array.isArray(Ra)?Ra:[Ra];qa?qa.children=rd:qa=null;for(let sd=0;sd{if(!hasChildren(sd))return;const fd=typeof qa[0]=="function"?qa[0].call(sd,pd,this._render(sd.children)):qa,hd=this._makeDomArray(fd,pd=Ra.length?null:Ra[qa+rd];for(let vd=0;vd-1&&(Md.children.splice(Fd,1),pd===Md&&qa>Fd&&md[0]--)}Nd.parent=pd,Nd.prev&&(Nd.prev.next=(fd=Nd.next)!==null&&fd!==void 0?fd:null),Nd.next&&(Nd.next.prev=(hd=Nd.prev)!==null&&hd!==void 0?hd:null),Nd.prev=vd===0?gd:sd[vd-1],Nd.next=vd===sd.length-1?yd:sd[vd+1]}return gd&&(gd.next=sd[0]),yd&&(yd.prev=sd[sd.length-1]),Ra.splice(...md)}function appendTo(Ra){return(isCheerio(Ra)?Ra:this._make(Ra)).append(this),this}function prependTo(Ra){return(isCheerio(Ra)?Ra:this._make(Ra)).prepend(this),this}const append$2=_insert((Ra,qa,rd)=>{uniqueSplice(qa,qa.length,0,Ra,rd)}),prepend=_insert((Ra,qa,rd)=>{uniqueSplice(qa,0,0,Ra,rd)});function _wrap(Ra){return function(qa){const rd=this.length-1,sd=this.parents().last();for(let pd=0;pd{const{parent:sd}=Ra;if(!sd)return;const pd=sd.children,fd=pd.indexOf(Ra);update([Ra],qa),uniqueSplice(pd,fd,0,rd,sd)}),wrapInner=_wrap((Ra,qa,rd)=>{hasChildren(Ra)&&(update(Ra.children,qa),update(rd,Ra))});function unwrap(Ra){return this.parent(Ra).not("body").each((qa,rd)=>{this._make(rd).replaceWith(rd.children)}),this}function wrapAll(Ra){const qa=this[0];if(qa){const rd=this._make(typeof Ra=="function"?Ra.call(qa,0,qa):Ra).insertBefore(qa);let sd;for(let fd=0;fd{if(!hasChildren(rd)||!rd.parent)return;const pd=rd.parent.children,fd=pd.indexOf(rd);if(fd<0)return;const hd=typeof Ra[0]=="function"?Ra[0].call(rd,sd,this._render(rd.children)):Ra,md=this._makeDomArray(hd,sd{if(!hasChildren(rd)||!rd.parent)return;const pd=rd.parent.children,fd=pd.indexOf(rd);if(fd<0)return;const hd=typeof Ra[0]=="function"?Ra[0].call(rd,sd,this._render(rd.children)):Ra,md=this._makeDomArray(hd,sd{const pd=this.clone().toArray(),{parent:fd}=sd;if(!fd)return;const hd=fd.children,md=hd.indexOf(sd);md<0||(uniqueSplice(hd,md,0,pd,fd),rd.push(...pd))}),this._make(rd)}function remove$1(Ra){const qa=Ra?this.filter(Ra):this;return domEach(qa,rd=>{removeElement(rd),rd.prev=rd.next=rd.parent=null}),this}function replaceWith(Ra){return domEach(this,(qa,rd)=>{const{parent:sd}=qa;if(!sd)return;const pd=sd.children,fd=typeof Ra=="function"?Ra.call(qa,rd,qa):Ra,hd=this._makeDomArray(fd);update(hd,null);const md=pd.indexOf(qa);uniqueSplice(pd,md,1,hd,sd),hd.includes(qa)||(qa.parent=qa.prev=qa.next=null)})}function empty$1(){return domEach(this,Ra=>{if(hasChildren(Ra)){for(const qa of Ra.children)qa.next=qa.prev=qa.parent=null;Ra.children.length=0}})}function html$4(Ra){if(Ra===void 0){const qa=this[0];return!qa||!hasChildren(qa)?null:this._render(qa.children)}return domEach(this,qa=>{if(!hasChildren(qa))return;for(const sd of qa.children)sd.next=sd.prev=sd.parent=null;const rd=isCheerio(Ra)?Ra.toArray():this._parse(`${Ra}`,this.options,!1,qa).children;update(rd,qa)})}function toString$3(){return this._render(this)}function text$2(Ra){return Ra===void 0?text$3(this):typeof Ra=="function"?domEach(this,(qa,rd)=>this._make(qa).text(Ra.call(qa,rd,text$3([qa])))):domEach(this,qa=>{if(!hasChildren(qa))return;for(const sd of qa.children)sd.next=sd.prev=sd.parent=null;const rd=new Text(`${Ra}`);update(rd,qa)})}function clone$2(){const Ra=Array.prototype.map.call(this.get(),rd=>cloneNode(rd,!0)),qa=new Document(Ra);for(const rd of Ra)rd.parent=qa;return this._make(Ra)}const Manipulation=Object.freeze(Object.defineProperty({__proto__:null,_makeDomArray,after,append:append$2,appendTo,before,clone:clone$2,empty:empty$1,html:html$4,insertAfter,insertBefore,prepend,prependTo,remove:remove$1,replaceWith,text:text$2,toString:toString$3,unwrap,wrap:wrap$1,wrapAll,wrapInner},Symbol.toStringTag,{value:"Module"}));function css$1(Ra,qa){if(Ra!=null&&qa!=null||typeof Ra=="object"&&!Array.isArray(Ra))return domEach(this,(rd,sd)=>{isTag(rd)&&setCss(rd,Ra,qa,sd)});if(this.length!==0)return getCss(this[0],Ra)}function setCss(Ra,qa,rd,sd){if(typeof qa=="string"){const pd=getCss(Ra),fd=typeof rd=="function"?rd.call(Ra,sd,pd[qa]):rd;fd===""?delete pd[qa]:fd!=null&&(pd[qa]=fd),Ra.attribs.style=stringify$3(pd)}else if(typeof qa=="object"){const pd=Object.keys(qa);for(let fd=0;fd`${qa}${qa?" ":""}${rd}: ${Ra[rd]};`,"")}function parse$6(Ra){if(Ra=(Ra||"").trim(),!Ra)return{};const qa={};let rd;for(const sd of Ra.split(";")){const pd=sd.indexOf(":");if(pd<1||pd===sd.length-1){const fd=sd.trimEnd();fd.length>0&&rd!==void 0&&(qa[rd]+=`;${fd}`)}else rd=sd.slice(0,pd).trim(),qa[rd]=sd.slice(pd+1).trim()}return qa}const Css=Object.freeze(Object.defineProperty({__proto__:null,css:css$1},Symbol.toStringTag,{value:"Module"})),submittableSelector="input,select,textarea,keygen",r20=/%20/g,rCRLF=/\r?\n/g;function serialize$1(){return this.serializeArray().map(rd=>`${encodeURIComponent(rd.name)}=${encodeURIComponent(rd.value)}`).join("&").replace(r20,"+")}function serializeArray(){return this.map((Ra,qa)=>{const rd=this._make(qa);return isTag(qa)&&qa.name==="form"?rd.find(submittableSelector).toArray():rd.filter(submittableSelector).toArray()}).filter('[name!=""]:enabled:not(:submit, :button, :image, :reset, :file):matches([checked], :not(:checkbox, :radio))').map((Ra,qa)=>{var rd;const sd=this._make(qa),pd=sd.attr("name"),fd=(rd=sd.val())!==null&&rd!==void 0?rd:"";return Array.isArray(fd)?fd.map(hd=>({name:pd,value:hd.replace(rCRLF,`\r `)})):{name:pd,value:fd.replace(rCRLF,`\r -`)}}).toArray()}const Forms=Object.freeze(Object.defineProperty({__proto__:null,serialize:serialize$1,serializeArray},Symbol.toStringTag,{value:"Module"}));function getExtractDescr(Ra){var qa;return typeof Ra=="string"?{selector:Ra,value:"textContent"}:{selector:Ra.selector,value:(qa=Ra.value)!==null&&qa!==void 0?qa:"textContent"}}function extract(Ra){const qa={};for(const rd in Ra){const sd=Ra[rd],pd=Array.isArray(sd),{selector:fd,value:hd}=getExtractDescr(pd?sd[0]:sd),md=typeof hd=="function"?hd:typeof hd=="string"?gd=>this._make(gd).prop(hd):gd=>this._make(gd).extract(hd);if(pd)qa[rd]=this._findBySelector(fd,Number.POSITIVE_INFINITY).map((gd,yd)=>md(yd,rd,qa)).get();else{const gd=this._findBySelector(fd,1);qa[rd]=gd.length>0?md(gd[0],rd,qa):void 0}}return qa}const Extract=Object.freeze(Object.defineProperty({__proto__:null,extract},Symbol.toStringTag,{value:"Module"}));class Cheerio{constructor(qa,rd,sd){if(this.length=0,this.options=sd,this._root=rd,qa){for(let pd=0;pd=55296&&Ra<=57343}function isSurrogatePair(Ra){return Ra>=56320&&Ra<=57343}function getSurrogatePairCodePoint(Ra,qa){return(Ra-55296)*1024+9216+qa}function isControlCodePoint(Ra){return Ra!==32&&Ra!==10&&Ra!==13&&Ra!==9&&Ra!==12&&Ra>=1&&Ra<=31||Ra>=127&&Ra<=159}function isUndefinedCodePoint(Ra){return Ra>=64976&&Ra<=65007||UNDEFINED_CODE_POINTS.has(Ra)}var ERR;(function(Ra){Ra.controlCharacterInInputStream="control-character-in-input-stream",Ra.noncharacterInInputStream="noncharacter-in-input-stream",Ra.surrogateInInputStream="surrogate-in-input-stream",Ra.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",Ra.endTagWithAttributes="end-tag-with-attributes",Ra.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",Ra.unexpectedSolidusInTag="unexpected-solidus-in-tag",Ra.unexpectedNullCharacter="unexpected-null-character",Ra.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",Ra.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",Ra.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",Ra.missingEndTagName="missing-end-tag-name",Ra.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",Ra.unknownNamedCharacterReference="unknown-named-character-reference",Ra.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",Ra.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",Ra.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",Ra.eofBeforeTagName="eof-before-tag-name",Ra.eofInTag="eof-in-tag",Ra.missingAttributeValue="missing-attribute-value",Ra.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",Ra.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",Ra.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",Ra.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",Ra.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",Ra.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",Ra.missingDoctypePublicIdentifier="missing-doctype-public-identifier",Ra.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",Ra.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",Ra.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",Ra.cdataInHtmlContent="cdata-in-html-content",Ra.incorrectlyOpenedComment="incorrectly-opened-comment",Ra.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",Ra.eofInDoctype="eof-in-doctype",Ra.nestedComment="nested-comment",Ra.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",Ra.eofInComment="eof-in-comment",Ra.incorrectlyClosedComment="incorrectly-closed-comment",Ra.eofInCdata="eof-in-cdata",Ra.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",Ra.nullCharacterReference="null-character-reference",Ra.surrogateCharacterReference="surrogate-character-reference",Ra.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",Ra.controlCharacterReference="control-character-reference",Ra.noncharacterCharacterReference="noncharacter-character-reference",Ra.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",Ra.missingDoctypeName="missing-doctype-name",Ra.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",Ra.duplicateAttribute="duplicate-attribute",Ra.nonConformingDoctype="non-conforming-doctype",Ra.missingDoctype="missing-doctype",Ra.misplacedDoctype="misplaced-doctype",Ra.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",Ra.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",Ra.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",Ra.openElementsLeftAfterEof="open-elements-left-after-eof",Ra.abandonedHeadElementChild="abandoned-head-element-child",Ra.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",Ra.nestedNoscriptInHead="nested-noscript-in-head",Ra.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"})(ERR||(ERR={}));const DEFAULT_BUFFER_WATERLINE=65536;class Preprocessor{constructor(qa){this.handler=qa,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=DEFAULT_BUFFER_WATERLINE,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(qa,rd){const{line:sd,col:pd,offset:fd}=this,hd=pd+rd,md=fd+rd;return{code:qa,startLine:sd,endLine:sd,startCol:hd,endCol:hd,startOffset:md,endOffset:md}}_err(qa){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(qa,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(qa){if(this.pos!==this.html.length-1){const rd=this.html.charCodeAt(this.pos+1);if(isSurrogatePair(rd))return this.pos++,this._addGap(),getSurrogatePairCodePoint(qa,rd)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,CODE_POINTS.EOF;return this._err(ERR.surrogateInInputStream),qa}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(qa,rd){this.html.length>0?this.html+=qa:this.html=qa,this.endOfChunkHit=!1,this.lastChunkWritten=rd}insertHtmlAtCurrentPos(qa){this.html=this.html.substring(0,this.pos+1)+qa+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(qa,rd){if(this.pos+qa.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(rd)return this.html.startsWith(qa,this.pos);for(let sd=0;sd=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,CODE_POINTS.EOF;const sd=this.html.charCodeAt(rd);return sd===CODE_POINTS.CARRIAGE_RETURN?CODE_POINTS.LINE_FEED:sd}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,CODE_POINTS.EOF;let qa=this.html.charCodeAt(this.pos);return qa===CODE_POINTS.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,CODE_POINTS.LINE_FEED):qa===CODE_POINTS.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,isSurrogate(qa)&&(qa=this._processSurrogate(qa)),this.handler.onParseError===null||qa>31&&qa<127||qa===CODE_POINTS.LINE_FEED||qa===CODE_POINTS.CARRIAGE_RETURN||qa>159&&qa<64976||this._checkForProblematicCharacters(qa),qa)}_checkForProblematicCharacters(qa){isControlCodePoint(qa)?this._err(ERR.controlCharacterInInputStream):isUndefinedCodePoint(qa)&&this._err(ERR.noncharacterInInputStream)}retreat(qa){for(this.pos-=qa;this.pos=0;rd--)if(Ra.attrs[rd].name===qa)return Ra.attrs[rd].value;return null}var NS;(function(Ra){Ra.HTML="http://www.w3.org/1999/xhtml",Ra.MATHML="http://www.w3.org/1998/Math/MathML",Ra.SVG="http://www.w3.org/2000/svg",Ra.XLINK="http://www.w3.org/1999/xlink",Ra.XML="http://www.w3.org/XML/1998/namespace",Ra.XMLNS="http://www.w3.org/2000/xmlns/"})(NS||(NS={}));var ATTRS;(function(Ra){Ra.TYPE="type",Ra.ACTION="action",Ra.ENCODING="encoding",Ra.PROMPT="prompt",Ra.NAME="name",Ra.COLOR="color",Ra.FACE="face",Ra.SIZE="size"})(ATTRS||(ATTRS={}));var DOCUMENT_MODE;(function(Ra){Ra.NO_QUIRKS="no-quirks",Ra.QUIRKS="quirks",Ra.LIMITED_QUIRKS="limited-quirks"})(DOCUMENT_MODE||(DOCUMENT_MODE={}));var TAG_NAMES;(function(Ra){Ra.A="a",Ra.ADDRESS="address",Ra.ANNOTATION_XML="annotation-xml",Ra.APPLET="applet",Ra.AREA="area",Ra.ARTICLE="article",Ra.ASIDE="aside",Ra.B="b",Ra.BASE="base",Ra.BASEFONT="basefont",Ra.BGSOUND="bgsound",Ra.BIG="big",Ra.BLOCKQUOTE="blockquote",Ra.BODY="body",Ra.BR="br",Ra.BUTTON="button",Ra.CAPTION="caption",Ra.CENTER="center",Ra.CODE="code",Ra.COL="col",Ra.COLGROUP="colgroup",Ra.DD="dd",Ra.DESC="desc",Ra.DETAILS="details",Ra.DIALOG="dialog",Ra.DIR="dir",Ra.DIV="div",Ra.DL="dl",Ra.DT="dt",Ra.EM="em",Ra.EMBED="embed",Ra.FIELDSET="fieldset",Ra.FIGCAPTION="figcaption",Ra.FIGURE="figure",Ra.FONT="font",Ra.FOOTER="footer",Ra.FOREIGN_OBJECT="foreignObject",Ra.FORM="form",Ra.FRAME="frame",Ra.FRAMESET="frameset",Ra.H1="h1",Ra.H2="h2",Ra.H3="h3",Ra.H4="h4",Ra.H5="h5",Ra.H6="h6",Ra.HEAD="head",Ra.HEADER="header",Ra.HGROUP="hgroup",Ra.HR="hr",Ra.HTML="html",Ra.I="i",Ra.IMG="img",Ra.IMAGE="image",Ra.INPUT="input",Ra.IFRAME="iframe",Ra.KEYGEN="keygen",Ra.LABEL="label",Ra.LI="li",Ra.LINK="link",Ra.LISTING="listing",Ra.MAIN="main",Ra.MALIGNMARK="malignmark",Ra.MARQUEE="marquee",Ra.MATH="math",Ra.MENU="menu",Ra.META="meta",Ra.MGLYPH="mglyph",Ra.MI="mi",Ra.MO="mo",Ra.MN="mn",Ra.MS="ms",Ra.MTEXT="mtext",Ra.NAV="nav",Ra.NOBR="nobr",Ra.NOFRAMES="noframes",Ra.NOEMBED="noembed",Ra.NOSCRIPT="noscript",Ra.OBJECT="object",Ra.OL="ol",Ra.OPTGROUP="optgroup",Ra.OPTION="option",Ra.P="p",Ra.PARAM="param",Ra.PLAINTEXT="plaintext",Ra.PRE="pre",Ra.RB="rb",Ra.RP="rp",Ra.RT="rt",Ra.RTC="rtc",Ra.RUBY="ruby",Ra.S="s",Ra.SCRIPT="script",Ra.SEARCH="search",Ra.SECTION="section",Ra.SELECT="select",Ra.SOURCE="source",Ra.SMALL="small",Ra.SPAN="span",Ra.STRIKE="strike",Ra.STRONG="strong",Ra.STYLE="style",Ra.SUB="sub",Ra.SUMMARY="summary",Ra.SUP="sup",Ra.TABLE="table",Ra.TBODY="tbody",Ra.TEMPLATE="template",Ra.TEXTAREA="textarea",Ra.TFOOT="tfoot",Ra.TD="td",Ra.TH="th",Ra.THEAD="thead",Ra.TITLE="title",Ra.TR="tr",Ra.TRACK="track",Ra.TT="tt",Ra.U="u",Ra.UL="ul",Ra.SVG="svg",Ra.VAR="var",Ra.WBR="wbr",Ra.XMP="xmp"})(TAG_NAMES||(TAG_NAMES={}));var TAG_ID;(function(Ra){Ra[Ra.UNKNOWN=0]="UNKNOWN",Ra[Ra.A=1]="A",Ra[Ra.ADDRESS=2]="ADDRESS",Ra[Ra.ANNOTATION_XML=3]="ANNOTATION_XML",Ra[Ra.APPLET=4]="APPLET",Ra[Ra.AREA=5]="AREA",Ra[Ra.ARTICLE=6]="ARTICLE",Ra[Ra.ASIDE=7]="ASIDE",Ra[Ra.B=8]="B",Ra[Ra.BASE=9]="BASE",Ra[Ra.BASEFONT=10]="BASEFONT",Ra[Ra.BGSOUND=11]="BGSOUND",Ra[Ra.BIG=12]="BIG",Ra[Ra.BLOCKQUOTE=13]="BLOCKQUOTE",Ra[Ra.BODY=14]="BODY",Ra[Ra.BR=15]="BR",Ra[Ra.BUTTON=16]="BUTTON",Ra[Ra.CAPTION=17]="CAPTION",Ra[Ra.CENTER=18]="CENTER",Ra[Ra.CODE=19]="CODE",Ra[Ra.COL=20]="COL",Ra[Ra.COLGROUP=21]="COLGROUP",Ra[Ra.DD=22]="DD",Ra[Ra.DESC=23]="DESC",Ra[Ra.DETAILS=24]="DETAILS",Ra[Ra.DIALOG=25]="DIALOG",Ra[Ra.DIR=26]="DIR",Ra[Ra.DIV=27]="DIV",Ra[Ra.DL=28]="DL",Ra[Ra.DT=29]="DT",Ra[Ra.EM=30]="EM",Ra[Ra.EMBED=31]="EMBED",Ra[Ra.FIELDSET=32]="FIELDSET",Ra[Ra.FIGCAPTION=33]="FIGCAPTION",Ra[Ra.FIGURE=34]="FIGURE",Ra[Ra.FONT=35]="FONT",Ra[Ra.FOOTER=36]="FOOTER",Ra[Ra.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",Ra[Ra.FORM=38]="FORM",Ra[Ra.FRAME=39]="FRAME",Ra[Ra.FRAMESET=40]="FRAMESET",Ra[Ra.H1=41]="H1",Ra[Ra.H2=42]="H2",Ra[Ra.H3=43]="H3",Ra[Ra.H4=44]="H4",Ra[Ra.H5=45]="H5",Ra[Ra.H6=46]="H6",Ra[Ra.HEAD=47]="HEAD",Ra[Ra.HEADER=48]="HEADER",Ra[Ra.HGROUP=49]="HGROUP",Ra[Ra.HR=50]="HR",Ra[Ra.HTML=51]="HTML",Ra[Ra.I=52]="I",Ra[Ra.IMG=53]="IMG",Ra[Ra.IMAGE=54]="IMAGE",Ra[Ra.INPUT=55]="INPUT",Ra[Ra.IFRAME=56]="IFRAME",Ra[Ra.KEYGEN=57]="KEYGEN",Ra[Ra.LABEL=58]="LABEL",Ra[Ra.LI=59]="LI",Ra[Ra.LINK=60]="LINK",Ra[Ra.LISTING=61]="LISTING",Ra[Ra.MAIN=62]="MAIN",Ra[Ra.MALIGNMARK=63]="MALIGNMARK",Ra[Ra.MARQUEE=64]="MARQUEE",Ra[Ra.MATH=65]="MATH",Ra[Ra.MENU=66]="MENU",Ra[Ra.META=67]="META",Ra[Ra.MGLYPH=68]="MGLYPH",Ra[Ra.MI=69]="MI",Ra[Ra.MO=70]="MO",Ra[Ra.MN=71]="MN",Ra[Ra.MS=72]="MS",Ra[Ra.MTEXT=73]="MTEXT",Ra[Ra.NAV=74]="NAV",Ra[Ra.NOBR=75]="NOBR",Ra[Ra.NOFRAMES=76]="NOFRAMES",Ra[Ra.NOEMBED=77]="NOEMBED",Ra[Ra.NOSCRIPT=78]="NOSCRIPT",Ra[Ra.OBJECT=79]="OBJECT",Ra[Ra.OL=80]="OL",Ra[Ra.OPTGROUP=81]="OPTGROUP",Ra[Ra.OPTION=82]="OPTION",Ra[Ra.P=83]="P",Ra[Ra.PARAM=84]="PARAM",Ra[Ra.PLAINTEXT=85]="PLAINTEXT",Ra[Ra.PRE=86]="PRE",Ra[Ra.RB=87]="RB",Ra[Ra.RP=88]="RP",Ra[Ra.RT=89]="RT",Ra[Ra.RTC=90]="RTC",Ra[Ra.RUBY=91]="RUBY",Ra[Ra.S=92]="S",Ra[Ra.SCRIPT=93]="SCRIPT",Ra[Ra.SEARCH=94]="SEARCH",Ra[Ra.SECTION=95]="SECTION",Ra[Ra.SELECT=96]="SELECT",Ra[Ra.SOURCE=97]="SOURCE",Ra[Ra.SMALL=98]="SMALL",Ra[Ra.SPAN=99]="SPAN",Ra[Ra.STRIKE=100]="STRIKE",Ra[Ra.STRONG=101]="STRONG",Ra[Ra.STYLE=102]="STYLE",Ra[Ra.SUB=103]="SUB",Ra[Ra.SUMMARY=104]="SUMMARY",Ra[Ra.SUP=105]="SUP",Ra[Ra.TABLE=106]="TABLE",Ra[Ra.TBODY=107]="TBODY",Ra[Ra.TEMPLATE=108]="TEMPLATE",Ra[Ra.TEXTAREA=109]="TEXTAREA",Ra[Ra.TFOOT=110]="TFOOT",Ra[Ra.TD=111]="TD",Ra[Ra.TH=112]="TH",Ra[Ra.THEAD=113]="THEAD",Ra[Ra.TITLE=114]="TITLE",Ra[Ra.TR=115]="TR",Ra[Ra.TRACK=116]="TRACK",Ra[Ra.TT=117]="TT",Ra[Ra.U=118]="U",Ra[Ra.UL=119]="UL",Ra[Ra.SVG=120]="SVG",Ra[Ra.VAR=121]="VAR",Ra[Ra.WBR=122]="WBR",Ra[Ra.XMP=123]="XMP"})(TAG_ID||(TAG_ID={}));const TAG_NAME_TO_ID=new Map([[TAG_NAMES.A,TAG_ID.A],[TAG_NAMES.ADDRESS,TAG_ID.ADDRESS],[TAG_NAMES.ANNOTATION_XML,TAG_ID.ANNOTATION_XML],[TAG_NAMES.APPLET,TAG_ID.APPLET],[TAG_NAMES.AREA,TAG_ID.AREA],[TAG_NAMES.ARTICLE,TAG_ID.ARTICLE],[TAG_NAMES.ASIDE,TAG_ID.ASIDE],[TAG_NAMES.B,TAG_ID.B],[TAG_NAMES.BASE,TAG_ID.BASE],[TAG_NAMES.BASEFONT,TAG_ID.BASEFONT],[TAG_NAMES.BGSOUND,TAG_ID.BGSOUND],[TAG_NAMES.BIG,TAG_ID.BIG],[TAG_NAMES.BLOCKQUOTE,TAG_ID.BLOCKQUOTE],[TAG_NAMES.BODY,TAG_ID.BODY],[TAG_NAMES.BR,TAG_ID.BR],[TAG_NAMES.BUTTON,TAG_ID.BUTTON],[TAG_NAMES.CAPTION,TAG_ID.CAPTION],[TAG_NAMES.CENTER,TAG_ID.CENTER],[TAG_NAMES.CODE,TAG_ID.CODE],[TAG_NAMES.COL,TAG_ID.COL],[TAG_NAMES.COLGROUP,TAG_ID.COLGROUP],[TAG_NAMES.DD,TAG_ID.DD],[TAG_NAMES.DESC,TAG_ID.DESC],[TAG_NAMES.DETAILS,TAG_ID.DETAILS],[TAG_NAMES.DIALOG,TAG_ID.DIALOG],[TAG_NAMES.DIR,TAG_ID.DIR],[TAG_NAMES.DIV,TAG_ID.DIV],[TAG_NAMES.DL,TAG_ID.DL],[TAG_NAMES.DT,TAG_ID.DT],[TAG_NAMES.EM,TAG_ID.EM],[TAG_NAMES.EMBED,TAG_ID.EMBED],[TAG_NAMES.FIELDSET,TAG_ID.FIELDSET],[TAG_NAMES.FIGCAPTION,TAG_ID.FIGCAPTION],[TAG_NAMES.FIGURE,TAG_ID.FIGURE],[TAG_NAMES.FONT,TAG_ID.FONT],[TAG_NAMES.FOOTER,TAG_ID.FOOTER],[TAG_NAMES.FOREIGN_OBJECT,TAG_ID.FOREIGN_OBJECT],[TAG_NAMES.FORM,TAG_ID.FORM],[TAG_NAMES.FRAME,TAG_ID.FRAME],[TAG_NAMES.FRAMESET,TAG_ID.FRAMESET],[TAG_NAMES.H1,TAG_ID.H1],[TAG_NAMES.H2,TAG_ID.H2],[TAG_NAMES.H3,TAG_ID.H3],[TAG_NAMES.H4,TAG_ID.H4],[TAG_NAMES.H5,TAG_ID.H5],[TAG_NAMES.H6,TAG_ID.H6],[TAG_NAMES.HEAD,TAG_ID.HEAD],[TAG_NAMES.HEADER,TAG_ID.HEADER],[TAG_NAMES.HGROUP,TAG_ID.HGROUP],[TAG_NAMES.HR,TAG_ID.HR],[TAG_NAMES.HTML,TAG_ID.HTML],[TAG_NAMES.I,TAG_ID.I],[TAG_NAMES.IMG,TAG_ID.IMG],[TAG_NAMES.IMAGE,TAG_ID.IMAGE],[TAG_NAMES.INPUT,TAG_ID.INPUT],[TAG_NAMES.IFRAME,TAG_ID.IFRAME],[TAG_NAMES.KEYGEN,TAG_ID.KEYGEN],[TAG_NAMES.LABEL,TAG_ID.LABEL],[TAG_NAMES.LI,TAG_ID.LI],[TAG_NAMES.LINK,TAG_ID.LINK],[TAG_NAMES.LISTING,TAG_ID.LISTING],[TAG_NAMES.MAIN,TAG_ID.MAIN],[TAG_NAMES.MALIGNMARK,TAG_ID.MALIGNMARK],[TAG_NAMES.MARQUEE,TAG_ID.MARQUEE],[TAG_NAMES.MATH,TAG_ID.MATH],[TAG_NAMES.MENU,TAG_ID.MENU],[TAG_NAMES.META,TAG_ID.META],[TAG_NAMES.MGLYPH,TAG_ID.MGLYPH],[TAG_NAMES.MI,TAG_ID.MI],[TAG_NAMES.MO,TAG_ID.MO],[TAG_NAMES.MN,TAG_ID.MN],[TAG_NAMES.MS,TAG_ID.MS],[TAG_NAMES.MTEXT,TAG_ID.MTEXT],[TAG_NAMES.NAV,TAG_ID.NAV],[TAG_NAMES.NOBR,TAG_ID.NOBR],[TAG_NAMES.NOFRAMES,TAG_ID.NOFRAMES],[TAG_NAMES.NOEMBED,TAG_ID.NOEMBED],[TAG_NAMES.NOSCRIPT,TAG_ID.NOSCRIPT],[TAG_NAMES.OBJECT,TAG_ID.OBJECT],[TAG_NAMES.OL,TAG_ID.OL],[TAG_NAMES.OPTGROUP,TAG_ID.OPTGROUP],[TAG_NAMES.OPTION,TAG_ID.OPTION],[TAG_NAMES.P,TAG_ID.P],[TAG_NAMES.PARAM,TAG_ID.PARAM],[TAG_NAMES.PLAINTEXT,TAG_ID.PLAINTEXT],[TAG_NAMES.PRE,TAG_ID.PRE],[TAG_NAMES.RB,TAG_ID.RB],[TAG_NAMES.RP,TAG_ID.RP],[TAG_NAMES.RT,TAG_ID.RT],[TAG_NAMES.RTC,TAG_ID.RTC],[TAG_NAMES.RUBY,TAG_ID.RUBY],[TAG_NAMES.S,TAG_ID.S],[TAG_NAMES.SCRIPT,TAG_ID.SCRIPT],[TAG_NAMES.SEARCH,TAG_ID.SEARCH],[TAG_NAMES.SECTION,TAG_ID.SECTION],[TAG_NAMES.SELECT,TAG_ID.SELECT],[TAG_NAMES.SOURCE,TAG_ID.SOURCE],[TAG_NAMES.SMALL,TAG_ID.SMALL],[TAG_NAMES.SPAN,TAG_ID.SPAN],[TAG_NAMES.STRIKE,TAG_ID.STRIKE],[TAG_NAMES.STRONG,TAG_ID.STRONG],[TAG_NAMES.STYLE,TAG_ID.STYLE],[TAG_NAMES.SUB,TAG_ID.SUB],[TAG_NAMES.SUMMARY,TAG_ID.SUMMARY],[TAG_NAMES.SUP,TAG_ID.SUP],[TAG_NAMES.TABLE,TAG_ID.TABLE],[TAG_NAMES.TBODY,TAG_ID.TBODY],[TAG_NAMES.TEMPLATE,TAG_ID.TEMPLATE],[TAG_NAMES.TEXTAREA,TAG_ID.TEXTAREA],[TAG_NAMES.TFOOT,TAG_ID.TFOOT],[TAG_NAMES.TD,TAG_ID.TD],[TAG_NAMES.TH,TAG_ID.TH],[TAG_NAMES.THEAD,TAG_ID.THEAD],[TAG_NAMES.TITLE,TAG_ID.TITLE],[TAG_NAMES.TR,TAG_ID.TR],[TAG_NAMES.TRACK,TAG_ID.TRACK],[TAG_NAMES.TT,TAG_ID.TT],[TAG_NAMES.U,TAG_ID.U],[TAG_NAMES.UL,TAG_ID.UL],[TAG_NAMES.SVG,TAG_ID.SVG],[TAG_NAMES.VAR,TAG_ID.VAR],[TAG_NAMES.WBR,TAG_ID.WBR],[TAG_NAMES.XMP,TAG_ID.XMP]]);function getTagID(Ra){var qa;return(qa=TAG_NAME_TO_ID.get(Ra))!==null&&qa!==void 0?qa:TAG_ID.UNKNOWN}const $$4=TAG_ID,SPECIAL_ELEMENTS={[NS.HTML]:new Set([$$4.ADDRESS,$$4.APPLET,$$4.AREA,$$4.ARTICLE,$$4.ASIDE,$$4.BASE,$$4.BASEFONT,$$4.BGSOUND,$$4.BLOCKQUOTE,$$4.BODY,$$4.BR,$$4.BUTTON,$$4.CAPTION,$$4.CENTER,$$4.COL,$$4.COLGROUP,$$4.DD,$$4.DETAILS,$$4.DIR,$$4.DIV,$$4.DL,$$4.DT,$$4.EMBED,$$4.FIELDSET,$$4.FIGCAPTION,$$4.FIGURE,$$4.FOOTER,$$4.FORM,$$4.FRAME,$$4.FRAMESET,$$4.H1,$$4.H2,$$4.H3,$$4.H4,$$4.H5,$$4.H6,$$4.HEAD,$$4.HEADER,$$4.HGROUP,$$4.HR,$$4.HTML,$$4.IFRAME,$$4.IMG,$$4.INPUT,$$4.LI,$$4.LINK,$$4.LISTING,$$4.MAIN,$$4.MARQUEE,$$4.MENU,$$4.META,$$4.NAV,$$4.NOEMBED,$$4.NOFRAMES,$$4.NOSCRIPT,$$4.OBJECT,$$4.OL,$$4.P,$$4.PARAM,$$4.PLAINTEXT,$$4.PRE,$$4.SCRIPT,$$4.SECTION,$$4.SELECT,$$4.SOURCE,$$4.STYLE,$$4.SUMMARY,$$4.TABLE,$$4.TBODY,$$4.TD,$$4.TEMPLATE,$$4.TEXTAREA,$$4.TFOOT,$$4.TH,$$4.THEAD,$$4.TITLE,$$4.TR,$$4.TRACK,$$4.UL,$$4.WBR,$$4.XMP]),[NS.MATHML]:new Set([$$4.MI,$$4.MO,$$4.MN,$$4.MS,$$4.MTEXT,$$4.ANNOTATION_XML]),[NS.SVG]:new Set([$$4.TITLE,$$4.FOREIGN_OBJECT,$$4.DESC]),[NS.XLINK]:new Set,[NS.XML]:new Set,[NS.XMLNS]:new Set},NUMBERED_HEADERS=new Set([$$4.H1,$$4.H2,$$4.H3,$$4.H4,$$4.H5,$$4.H6]),UNESCAPED_TEXT=new Set([TAG_NAMES.STYLE,TAG_NAMES.SCRIPT,TAG_NAMES.XMP,TAG_NAMES.IFRAME,TAG_NAMES.NOEMBED,TAG_NAMES.NOFRAMES,TAG_NAMES.PLAINTEXT]);function hasUnescapedText(Ra,qa){return UNESCAPED_TEXT.has(Ra)||qa&&Ra===TAG_NAMES.NOSCRIPT}var State$5;(function(Ra){Ra[Ra.DATA=0]="DATA",Ra[Ra.RCDATA=1]="RCDATA",Ra[Ra.RAWTEXT=2]="RAWTEXT",Ra[Ra.SCRIPT_DATA=3]="SCRIPT_DATA",Ra[Ra.PLAINTEXT=4]="PLAINTEXT",Ra[Ra.TAG_OPEN=5]="TAG_OPEN",Ra[Ra.END_TAG_OPEN=6]="END_TAG_OPEN",Ra[Ra.TAG_NAME=7]="TAG_NAME",Ra[Ra.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",Ra[Ra.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",Ra[Ra.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",Ra[Ra.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",Ra[Ra.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",Ra[Ra.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",Ra[Ra.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",Ra[Ra.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",Ra[Ra.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",Ra[Ra.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",Ra[Ra.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",Ra[Ra.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",Ra[Ra.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",Ra[Ra.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",Ra[Ra.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",Ra[Ra.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",Ra[Ra.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",Ra[Ra.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",Ra[Ra.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",Ra[Ra.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",Ra[Ra.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",Ra[Ra.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",Ra[Ra.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",Ra[Ra.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",Ra[Ra.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",Ra[Ra.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",Ra[Ra.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",Ra[Ra.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",Ra[Ra.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",Ra[Ra.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",Ra[Ra.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",Ra[Ra.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",Ra[Ra.BOGUS_COMMENT=40]="BOGUS_COMMENT",Ra[Ra.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",Ra[Ra.COMMENT_START=42]="COMMENT_START",Ra[Ra.COMMENT_START_DASH=43]="COMMENT_START_DASH",Ra[Ra.COMMENT=44]="COMMENT",Ra[Ra.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",Ra[Ra.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",Ra[Ra.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",Ra[Ra.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",Ra[Ra.COMMENT_END_DASH=49]="COMMENT_END_DASH",Ra[Ra.COMMENT_END=50]="COMMENT_END",Ra[Ra.COMMENT_END_BANG=51]="COMMENT_END_BANG",Ra[Ra.DOCTYPE=52]="DOCTYPE",Ra[Ra.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",Ra[Ra.DOCTYPE_NAME=54]="DOCTYPE_NAME",Ra[Ra.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",Ra[Ra.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",Ra[Ra.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",Ra[Ra.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",Ra[Ra.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",Ra[Ra.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",Ra[Ra.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",Ra[Ra.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",Ra[Ra.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",Ra[Ra.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",Ra[Ra.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",Ra[Ra.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",Ra[Ra.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",Ra[Ra.CDATA_SECTION=68]="CDATA_SECTION",Ra[Ra.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",Ra[Ra.CDATA_SECTION_END=70]="CDATA_SECTION_END",Ra[Ra.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",Ra[Ra.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND"})(State$5||(State$5={}));const TokenizerMode={DATA:State$5.DATA,RCDATA:State$5.RCDATA,RAWTEXT:State$5.RAWTEXT,SCRIPT_DATA:State$5.SCRIPT_DATA,PLAINTEXT:State$5.PLAINTEXT,CDATA_SECTION:State$5.CDATA_SECTION};function isAsciiDigit(Ra){return Ra>=CODE_POINTS.DIGIT_0&&Ra<=CODE_POINTS.DIGIT_9}function isAsciiUpper(Ra){return Ra>=CODE_POINTS.LATIN_CAPITAL_A&&Ra<=CODE_POINTS.LATIN_CAPITAL_Z}function isAsciiLower(Ra){return Ra>=CODE_POINTS.LATIN_SMALL_A&&Ra<=CODE_POINTS.LATIN_SMALL_Z}function isAsciiLetter(Ra){return isAsciiLower(Ra)||isAsciiUpper(Ra)}function isAsciiAlphaNumeric(Ra){return isAsciiLetter(Ra)||isAsciiDigit(Ra)}function toAsciiLower(Ra){return Ra+32}function isWhitespace$3(Ra){return Ra===CODE_POINTS.SPACE||Ra===CODE_POINTS.LINE_FEED||Ra===CODE_POINTS.TABULATION||Ra===CODE_POINTS.FORM_FEED}function isScriptDataDoubleEscapeSequenceEnd(Ra){return isWhitespace$3(Ra)||Ra===CODE_POINTS.SOLIDUS||Ra===CODE_POINTS.GREATER_THAN_SIGN}function getErrorForNumericCharacterReference(Ra){return Ra===CODE_POINTS.NULL?ERR.nullCharacterReference:Ra>1114111?ERR.characterReferenceOutsideUnicodeRange:isSurrogate(Ra)?ERR.surrogateCharacterReference:isUndefinedCodePoint(Ra)?ERR.noncharacterCharacterReference:isControlCodePoint(Ra)||Ra===CODE_POINTS.CARRIAGE_RETURN?ERR.controlCharacterReference:null}let Tokenizer$1=class{constructor(qa,rd){this.options=qa,this.handler=rd,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=State$5.DATA,this.returnState=State$5.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new Preprocessor(rd),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new EntityDecoder(htmlDecodeTree,(sd,pd)=>{this.preprocessor.pos=this.entityStartPos+pd-1,this._flushCodePointConsumedAsCharacterReference(sd)},rd.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(ERR.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:sd=>{this._err(ERR.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+sd)},validateNumericCharacterReference:sd=>{const pd=getErrorForNumericCharacterReference(sd);pd&&this._err(pd,1)}}:void 0)}_err(qa,rd=0){var sd,pd;(pd=(sd=this.handler).onParseError)===null||pd===void 0||pd.call(sd,this.preprocessor.getError(qa,rd))}getCurrentLocation(qa){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-qa,startOffset:this.preprocessor.offset-qa,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const qa=this._consume();this._ensureHibernation()||this._callState(qa)}this.inLoop=!1}}pause(){this.paused=!0}resume(qa){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||qa==null||qa())}write(qa,rd,sd){this.active=!0,this.preprocessor.write(qa,rd),this._runParsingLoop(),this.paused||sd==null||sd()}insertHtmlAtCurrentPos(qa){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(qa),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(qa){this.consumedAfterSnapshot+=qa;for(let rd=0;rd0&&this._err(ERR.endTagWithAttributes),qa.selfClosing&&this._err(ERR.endTagWithTrailingSolidus),this.handler.onEndTag(qa)),this.preprocessor.dropParsedChunk()}emitCurrentComment(qa){this.prepareToken(qa),this.handler.onComment(qa),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(qa){this.prepareToken(qa),this.handler.onDoctype(qa),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(qa){if(this.currentCharacterToken){switch(qa&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=qa.startLine,this.currentCharacterToken.location.endCol=qa.startCol,this.currentCharacterToken.location.endOffset=qa.startOffset),this.currentCharacterToken.type){case TokenType.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case TokenType.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case TokenType.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){const qa=this.getCurrentLocation(0);qa&&(qa.endLine=qa.startLine,qa.endCol=qa.startCol,qa.endOffset=qa.startOffset),this._emitCurrentCharacterToken(qa),this.handler.onEof({type:TokenType.EOF,location:qa}),this.active=!1}_appendCharToCurrentCharacterToken(qa,rd){if(this.currentCharacterToken)if(this.currentCharacterToken.type===qa){this.currentCharacterToken.chars+=rd;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(qa,rd)}_emitCodePoint(qa){const rd=isWhitespace$3(qa)?TokenType.WHITESPACE_CHARACTER:qa===CODE_POINTS.NULL?TokenType.NULL_CHARACTER:TokenType.CHARACTER;this._appendCharToCurrentCharacterToken(rd,String.fromCodePoint(qa))}_emitChars(qa){this._appendCharToCurrentCharacterToken(TokenType.CHARACTER,qa)}_startCharacterReference(){this.returnState=this.state,this.state=State$5.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?DecodingMode.Attribute:DecodingMode.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===State$5.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===State$5.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===State$5.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(qa){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(qa):this._emitCodePoint(qa)}_callState(qa){switch(this.state){case State$5.DATA:{this._stateData(qa);break}case State$5.RCDATA:{this._stateRcdata(qa);break}case State$5.RAWTEXT:{this._stateRawtext(qa);break}case State$5.SCRIPT_DATA:{this._stateScriptData(qa);break}case State$5.PLAINTEXT:{this._statePlaintext(qa);break}case State$5.TAG_OPEN:{this._stateTagOpen(qa);break}case State$5.END_TAG_OPEN:{this._stateEndTagOpen(qa);break}case State$5.TAG_NAME:{this._stateTagName(qa);break}case State$5.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(qa);break}case State$5.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(qa);break}case State$5.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(qa);break}case State$5.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(qa);break}case State$5.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(qa);break}case State$5.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(qa);break}case State$5.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(qa);break}case State$5.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(qa);break}case State$5.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(qa);break}case State$5.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(qa);break}case State$5.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(qa);break}case State$5.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(qa);break}case State$5.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(qa);break}case State$5.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(qa);break}case State$5.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(qa);break}case State$5.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(qa);break}case State$5.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(qa);break}case State$5.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(qa);break}case State$5.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(qa);break}case State$5.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(qa);break}case State$5.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(qa);break}case State$5.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(qa);break}case State$5.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(qa);break}case State$5.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(qa);break}case State$5.ATTRIBUTE_NAME:{this._stateAttributeName(qa);break}case State$5.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(qa);break}case State$5.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(qa);break}case State$5.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(qa);break}case State$5.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(qa);break}case State$5.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(qa);break}case State$5.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(qa);break}case State$5.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(qa);break}case State$5.BOGUS_COMMENT:{this._stateBogusComment(qa);break}case State$5.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(qa);break}case State$5.COMMENT_START:{this._stateCommentStart(qa);break}case State$5.COMMENT_START_DASH:{this._stateCommentStartDash(qa);break}case State$5.COMMENT:{this._stateComment(qa);break}case State$5.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(qa);break}case State$5.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(qa);break}case State$5.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(qa);break}case State$5.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(qa);break}case State$5.COMMENT_END_DASH:{this._stateCommentEndDash(qa);break}case State$5.COMMENT_END:{this._stateCommentEnd(qa);break}case State$5.COMMENT_END_BANG:{this._stateCommentEndBang(qa);break}case State$5.DOCTYPE:{this._stateDoctype(qa);break}case State$5.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(qa);break}case State$5.DOCTYPE_NAME:{this._stateDoctypeName(qa);break}case State$5.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(qa);break}case State$5.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(qa);break}case State$5.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(qa);break}case State$5.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(qa);break}case State$5.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(qa);break}case State$5.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(qa);break}case State$5.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(qa);break}case State$5.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(qa);break}case State$5.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(qa);break}case State$5.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(qa);break}case State$5.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(qa);break}case State$5.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(qa);break}case State$5.BOGUS_DOCTYPE:{this._stateBogusDoctype(qa);break}case State$5.CDATA_SECTION:{this._stateCdataSection(qa);break}case State$5.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(qa);break}case State$5.CDATA_SECTION_END:{this._stateCdataSectionEnd(qa);break}case State$5.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case State$5.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(qa);break}default:throw new Error("Unknown state")}}_stateData(qa){switch(qa){case CODE_POINTS.LESS_THAN_SIGN:{this.state=State$5.TAG_OPEN;break}case CODE_POINTS.AMPERSAND:{this._startCharacterReference();break}case CODE_POINTS.NULL:{this._err(ERR.unexpectedNullCharacter),this._emitCodePoint(qa);break}case CODE_POINTS.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(qa)}}_stateRcdata(qa){switch(qa){case CODE_POINTS.AMPERSAND:{this._startCharacterReference();break}case CODE_POINTS.LESS_THAN_SIGN:{this.state=State$5.RCDATA_LESS_THAN_SIGN;break}case CODE_POINTS.NULL:{this._err(ERR.unexpectedNullCharacter),this._emitChars(REPLACEMENT_CHARACTER);break}case CODE_POINTS.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(qa)}}_stateRawtext(qa){switch(qa){case CODE_POINTS.LESS_THAN_SIGN:{this.state=State$5.RAWTEXT_LESS_THAN_SIGN;break}case CODE_POINTS.NULL:{this._err(ERR.unexpectedNullCharacter),this._emitChars(REPLACEMENT_CHARACTER);break}case CODE_POINTS.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(qa)}}_stateScriptData(qa){switch(qa){case CODE_POINTS.LESS_THAN_SIGN:{this.state=State$5.SCRIPT_DATA_LESS_THAN_SIGN;break}case CODE_POINTS.NULL:{this._err(ERR.unexpectedNullCharacter),this._emitChars(REPLACEMENT_CHARACTER);break}case CODE_POINTS.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(qa)}}_statePlaintext(qa){switch(qa){case CODE_POINTS.NULL:{this._err(ERR.unexpectedNullCharacter),this._emitChars(REPLACEMENT_CHARACTER);break}case CODE_POINTS.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(qa)}}_stateTagOpen(qa){if(isAsciiLetter(qa))this._createStartTagToken(),this.state=State$5.TAG_NAME,this._stateTagName(qa);else switch(qa){case CODE_POINTS.EXCLAMATION_MARK:{this.state=State$5.MARKUP_DECLARATION_OPEN;break}case CODE_POINTS.SOLIDUS:{this.state=State$5.END_TAG_OPEN;break}case CODE_POINTS.QUESTION_MARK:{this._err(ERR.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=State$5.BOGUS_COMMENT,this._stateBogusComment(qa);break}case CODE_POINTS.EOF:{this._err(ERR.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(ERR.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=State$5.DATA,this._stateData(qa)}}_stateEndTagOpen(qa){if(isAsciiLetter(qa))this._createEndTagToken(),this.state=State$5.TAG_NAME,this._stateTagName(qa);else switch(qa){case CODE_POINTS.GREATER_THAN_SIGN:{this._err(ERR.missingEndTagName),this.state=State$5.DATA;break}case CODE_POINTS.EOF:{this._err(ERR.eofBeforeTagName),this._emitChars("");break}case CODE_POINTS.NULL:{this._err(ERR.unexpectedNullCharacter),this.state=State$5.SCRIPT_DATA_ESCAPED,this._emitChars(REPLACEMENT_CHARACTER);break}case CODE_POINTS.EOF:{this._err(ERR.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=State$5.SCRIPT_DATA_ESCAPED,this._emitCodePoint(qa)}}_stateScriptDataEscapedLessThanSign(qa){qa===CODE_POINTS.SOLIDUS?this.state=State$5.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:isAsciiLetter(qa)?(this._emitChars("<"),this.state=State$5.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(qa)):(this._emitChars("<"),this.state=State$5.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(qa))}_stateScriptDataEscapedEndTagOpen(qa){isAsciiLetter(qa)?(this.state=State$5.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(qa)):(this._emitChars("");break}case CODE_POINTS.NULL:{this._err(ERR.unexpectedNullCharacter),this.state=State$5.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(REPLACEMENT_CHARACTER);break}case CODE_POINTS.EOF:{this._err(ERR.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=State$5.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(qa)}}_stateScriptDataDoubleEscapedLessThanSign(qa){qa===CODE_POINTS.SOLIDUS?(this.state=State$5.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=State$5.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(qa))}_stateScriptDataDoubleEscapeEnd(qa){if(this.preprocessor.startsWith(SEQUENCES.SCRIPT,!1)&&isScriptDataDoubleEscapeSequenceEnd(this.preprocessor.peek(SEQUENCES.SCRIPT.length))){this._emitCodePoint(qa);for(let rd=0;rd0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(qa,!0)}replace(qa,rd){const sd=this._indexOf(qa);this.items[sd]=rd,sd===this.stackTop&&(this.current=rd)}insertAfter(qa,rd,sd){const pd=this._indexOf(qa)+1;this.items.splice(pd,0,rd),this.tagIDs.splice(pd,0,sd),this.stackTop++,pd===this.stackTop&&this._updateCurrentElement(),this.handler.onItemPush(this.current,this.currentTagId,pd===this.stackTop)}popUntilTagNamePopped(qa){let rd=this.stackTop+1;do rd=this.tagIDs.lastIndexOf(qa,rd-1);while(rd>0&&this.treeAdapter.getNamespaceURI(this.items[rd])!==NS.HTML);this.shortenToLength(rd<0?0:rd)}shortenToLength(qa){for(;this.stackTop>=qa;){const rd=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(rd,this.stackTop=0;sd--)if(qa.has(this.tagIDs[sd])&&this.treeAdapter.getNamespaceURI(this.items[sd])===rd)return sd;return-1}clearBackTo(qa,rd){const sd=this._indexOfTagNames(qa,rd);this.shortenToLength(sd+1)}clearBackToTableContext(){this.clearBackTo(TABLE_CONTEXT,NS.HTML)}clearBackToTableBodyContext(){this.clearBackTo(TABLE_BODY_CONTEXT,NS.HTML)}clearBackToTableRowContext(){this.clearBackTo(TABLE_ROW_CONTEXT,NS.HTML)}remove(qa){const rd=this._indexOf(qa);rd>=0&&(rd===this.stackTop?this.pop():(this.items.splice(rd,1),this.tagIDs.splice(rd,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(qa,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===TAG_ID.BODY?this.items[1]:null}contains(qa){return this._indexOf(qa)>-1}getCommonAncestor(qa){const rd=this._indexOf(qa)-1;return rd>=0?this.items[rd]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===TAG_ID.HTML}hasInDynamicScope(qa,rd){for(let sd=this.stackTop;sd>=0;sd--){const pd=this.tagIDs[sd];switch(this.treeAdapter.getNamespaceURI(this.items[sd])){case NS.HTML:{if(pd===qa)return!0;if(rd.has(pd))return!1;break}case NS.SVG:{if(SCOPING_ELEMENTS_SVG.has(pd))return!1;break}case NS.MATHML:{if(SCOPING_ELEMENTS_MATHML.has(pd))return!1;break}}}return!0}hasInScope(qa){return this.hasInDynamicScope(qa,SCOPING_ELEMENTS_HTML)}hasInListItemScope(qa){return this.hasInDynamicScope(qa,SCOPING_ELEMENTS_HTML_LIST)}hasInButtonScope(qa){return this.hasInDynamicScope(qa,SCOPING_ELEMENTS_HTML_BUTTON)}hasNumberedHeaderInScope(){for(let qa=this.stackTop;qa>=0;qa--){const rd=this.tagIDs[qa];switch(this.treeAdapter.getNamespaceURI(this.items[qa])){case NS.HTML:{if(NUMBERED_HEADERS.has(rd))return!0;if(SCOPING_ELEMENTS_HTML.has(rd))return!1;break}case NS.SVG:{if(SCOPING_ELEMENTS_SVG.has(rd))return!1;break}case NS.MATHML:{if(SCOPING_ELEMENTS_MATHML.has(rd))return!1;break}}}return!0}hasInTableScope(qa){for(let rd=this.stackTop;rd>=0;rd--)if(this.treeAdapter.getNamespaceURI(this.items[rd])===NS.HTML)switch(this.tagIDs[rd]){case qa:return!0;case TAG_ID.TABLE:case TAG_ID.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let qa=this.stackTop;qa>=0;qa--)if(this.treeAdapter.getNamespaceURI(this.items[qa])===NS.HTML)switch(this.tagIDs[qa]){case TAG_ID.TBODY:case TAG_ID.THEAD:case TAG_ID.TFOOT:return!0;case TAG_ID.TABLE:case TAG_ID.HTML:return!1}return!0}hasInSelectScope(qa){for(let rd=this.stackTop;rd>=0;rd--)if(this.treeAdapter.getNamespaceURI(this.items[rd])===NS.HTML)switch(this.tagIDs[rd]){case qa:return!0;case TAG_ID.OPTION:case TAG_ID.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;IMPLICIT_END_TAG_REQUIRED.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;IMPLICIT_END_TAG_REQUIRED_THOROUGHLY.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(qa){for(;this.currentTagId!==qa&&IMPLICIT_END_TAG_REQUIRED_THOROUGHLY.has(this.currentTagId);)this.pop()}}const NOAH_ARK_CAPACITY=3;var EntryType;(function(Ra){Ra[Ra.Marker=0]="Marker",Ra[Ra.Element=1]="Element"})(EntryType||(EntryType={}));const MARKER={type:EntryType.Marker};class FormattingElementList{constructor(qa){this.treeAdapter=qa,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(qa,rd){const sd=[],pd=rd.length,fd=this.treeAdapter.getTagName(qa),hd=this.treeAdapter.getNamespaceURI(qa);for(let md=0;md[hd.name,hd.value]));let fd=0;for(let hd=0;hdpd.get(gd.name)===gd.value)&&(fd+=1,fd>=NOAH_ARK_CAPACITY&&this.entries.splice(md.idx,1))}}insertMarker(){this.entries.unshift(MARKER)}pushElement(qa,rd){this._ensureNoahArkCondition(qa),this.entries.unshift({type:EntryType.Element,element:qa,token:rd})}insertElementAfterBookmark(qa,rd){const sd=this.entries.indexOf(this.bookmark);this.entries.splice(sd,0,{type:EntryType.Element,element:qa,token:rd})}removeEntry(qa){const rd=this.entries.indexOf(qa);rd>=0&&this.entries.splice(rd,1)}clearToLastMarker(){const qa=this.entries.indexOf(MARKER);qa>=0?this.entries.splice(0,qa+1):this.entries.length=0}getElementEntryInScopeWithTagName(qa){const rd=this.entries.find(sd=>sd.type===EntryType.Marker||this.treeAdapter.getTagName(sd.element)===qa);return rd&&rd.type===EntryType.Element?rd:null}getElementEntry(qa){return this.entries.find(rd=>rd.type===EntryType.Element&&rd.element===qa)}}const defaultTreeAdapter={createDocument(){return{nodeName:"#document",mode:DOCUMENT_MODE.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(Ra,qa,rd){return{nodeName:Ra,tagName:Ra,attrs:rd,namespaceURI:qa,childNodes:[],parentNode:null}},createCommentNode(Ra){return{nodeName:"#comment",data:Ra,parentNode:null}},createTextNode(Ra){return{nodeName:"#text",value:Ra,parentNode:null}},appendChild(Ra,qa){Ra.childNodes.push(qa),qa.parentNode=Ra},insertBefore(Ra,qa,rd){const sd=Ra.childNodes.indexOf(rd);Ra.childNodes.splice(sd,0,qa),qa.parentNode=Ra},setTemplateContent(Ra,qa){Ra.content=qa},getTemplateContent(Ra){return Ra.content},setDocumentType(Ra,qa,rd,sd){const pd=Ra.childNodes.find(fd=>fd.nodeName==="#documentType");if(pd)pd.name=qa,pd.publicId=rd,pd.systemId=sd;else{const fd={nodeName:"#documentType",name:qa,publicId:rd,systemId:sd,parentNode:null};defaultTreeAdapter.appendChild(Ra,fd)}},setDocumentMode(Ra,qa){Ra.mode=qa},getDocumentMode(Ra){return Ra.mode},detachNode(Ra){if(Ra.parentNode){const qa=Ra.parentNode.childNodes.indexOf(Ra);Ra.parentNode.childNodes.splice(qa,1),Ra.parentNode=null}},insertText(Ra,qa){if(Ra.childNodes.length>0){const rd=Ra.childNodes[Ra.childNodes.length-1];if(defaultTreeAdapter.isTextNode(rd)){rd.value+=qa;return}}defaultTreeAdapter.appendChild(Ra,defaultTreeAdapter.createTextNode(qa))},insertTextBefore(Ra,qa,rd){const sd=Ra.childNodes[Ra.childNodes.indexOf(rd)-1];sd&&defaultTreeAdapter.isTextNode(sd)?sd.value+=qa:defaultTreeAdapter.insertBefore(Ra,defaultTreeAdapter.createTextNode(qa),rd)},adoptAttributes(Ra,qa){const rd=new Set(Ra.attrs.map(sd=>sd.name));for(let sd=0;sdRa.startsWith(rd))}function isConforming(Ra){return Ra.name===VALID_DOCTYPE_NAME&&Ra.publicId===null&&(Ra.systemId===null||Ra.systemId===VALID_SYSTEM_ID)}function getDocumentMode(Ra){if(Ra.name!==VALID_DOCTYPE_NAME)return DOCUMENT_MODE.QUIRKS;const{systemId:qa}=Ra;if(qa&&qa.toLowerCase()===QUIRKS_MODE_SYSTEM_ID)return DOCUMENT_MODE.QUIRKS;let{publicId:rd}=Ra;if(rd!==null){if(rd=rd.toLowerCase(),QUIRKS_MODE_PUBLIC_IDS.has(rd))return DOCUMENT_MODE.QUIRKS;let sd=qa===null?QUIRKS_MODE_NO_SYSTEM_ID_PUBLIC_ID_PREFIXES:QUIRKS_MODE_PUBLIC_ID_PREFIXES;if(hasPrefix(rd,sd))return DOCUMENT_MODE.QUIRKS;if(sd=qa===null?LIMITED_QUIRKS_PUBLIC_ID_PREFIXES:LIMITED_QUIRKS_WITH_SYSTEM_ID_PUBLIC_ID_PREFIXES,hasPrefix(rd,sd))return DOCUMENT_MODE.LIMITED_QUIRKS}return DOCUMENT_MODE.NO_QUIRKS}const MIME_TYPES={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},DEFINITION_URL_ATTR="definitionurl",ADJUSTED_DEFINITION_URL_ATTR="definitionURL",SVG_ATTRS_ADJUSTMENT_MAP=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(Ra=>[Ra.toLowerCase(),Ra])),XML_ATTRS_ADJUSTMENT_MAP=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:NS.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:NS.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:NS.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:NS.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:NS.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:NS.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:NS.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:NS.XML}],["xml:space",{prefix:"xml",name:"space",namespace:NS.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:NS.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:NS.XMLNS}]]),SVG_TAG_NAMES_ADJUSTMENT_MAP=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(Ra=>[Ra.toLowerCase(),Ra])),EXITS_FOREIGN_CONTENT=new Set([TAG_ID.B,TAG_ID.BIG,TAG_ID.BLOCKQUOTE,TAG_ID.BODY,TAG_ID.BR,TAG_ID.CENTER,TAG_ID.CODE,TAG_ID.DD,TAG_ID.DIV,TAG_ID.DL,TAG_ID.DT,TAG_ID.EM,TAG_ID.EMBED,TAG_ID.H1,TAG_ID.H2,TAG_ID.H3,TAG_ID.H4,TAG_ID.H5,TAG_ID.H6,TAG_ID.HEAD,TAG_ID.HR,TAG_ID.I,TAG_ID.IMG,TAG_ID.LI,TAG_ID.LISTING,TAG_ID.MENU,TAG_ID.META,TAG_ID.NOBR,TAG_ID.OL,TAG_ID.P,TAG_ID.PRE,TAG_ID.RUBY,TAG_ID.S,TAG_ID.SMALL,TAG_ID.SPAN,TAG_ID.STRONG,TAG_ID.STRIKE,TAG_ID.SUB,TAG_ID.SUP,TAG_ID.TABLE,TAG_ID.TT,TAG_ID.U,TAG_ID.UL,TAG_ID.VAR]);function causesExit(Ra){const qa=Ra.tagID;return qa===TAG_ID.FONT&&Ra.attrs.some(({name:sd})=>sd===ATTRS.COLOR||sd===ATTRS.SIZE||sd===ATTRS.FACE)||EXITS_FOREIGN_CONTENT.has(qa)}function adjustTokenMathMLAttrs(Ra){for(let qa=0;qa0&&this._setContextModes(qa,rd)}onItemPop(qa,rd){var sd,pd;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(qa,this.currentToken),(pd=(sd=this.treeAdapter).onItemPop)===null||pd===void 0||pd.call(sd,qa,this.openElements.current),rd){let fd,hd;this.openElements.stackTop===0&&this.fragmentContext?(fd=this.fragmentContext,hd=this.fragmentContextID):{current:fd,currentTagId:hd}=this.openElements,this._setContextModes(fd,hd)}}_setContextModes(qa,rd){const sd=qa===this.document||this.treeAdapter.getNamespaceURI(qa)===NS.HTML;this.currentNotInHTML=!sd,this.tokenizer.inForeignNode=!sd&&!this._isIntegrationPoint(rd,qa)}_switchToTextParsing(qa,rd){this._insertElement(qa,NS.HTML),this.tokenizer.state=rd,this.originalInsertionMode=this.insertionMode,this.insertionMode=InsertionMode.TEXT}switchToPlaintextParsing(){this.insertionMode=InsertionMode.TEXT,this.originalInsertionMode=InsertionMode.IN_BODY,this.tokenizer.state=TokenizerMode.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let qa=this.fragmentContext;for(;qa;){if(this.treeAdapter.getTagName(qa)===TAG_NAMES.FORM){this.formElement=qa;break}qa=this.treeAdapter.getParentNode(qa)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==NS.HTML))switch(this.fragmentContextID){case TAG_ID.TITLE:case TAG_ID.TEXTAREA:{this.tokenizer.state=TokenizerMode.RCDATA;break}case TAG_ID.STYLE:case TAG_ID.XMP:case TAG_ID.IFRAME:case TAG_ID.NOEMBED:case TAG_ID.NOFRAMES:case TAG_ID.NOSCRIPT:{this.tokenizer.state=TokenizerMode.RAWTEXT;break}case TAG_ID.SCRIPT:{this.tokenizer.state=TokenizerMode.SCRIPT_DATA;break}case TAG_ID.PLAINTEXT:{this.tokenizer.state=TokenizerMode.PLAINTEXT;break}}}_setDocumentType(qa){const rd=qa.name||"",sd=qa.publicId||"",pd=qa.systemId||"";if(this.treeAdapter.setDocumentType(this.document,rd,sd,pd),qa.location){const hd=this.treeAdapter.getChildNodes(this.document).find(md=>this.treeAdapter.isDocumentTypeNode(md));hd&&this.treeAdapter.setNodeSourceCodeLocation(hd,qa.location)}}_attachElementToTree(qa,rd){if(this.options.sourceCodeLocationInfo){const sd=rd&&{...rd,startTag:rd};this.treeAdapter.setNodeSourceCodeLocation(qa,sd)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(qa);else{const sd=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(sd,qa)}}_appendElement(qa,rd){const sd=this.treeAdapter.createElement(qa.tagName,rd,qa.attrs);this._attachElementToTree(sd,qa.location)}_insertElement(qa,rd){const sd=this.treeAdapter.createElement(qa.tagName,rd,qa.attrs);this._attachElementToTree(sd,qa.location),this.openElements.push(sd,qa.tagID)}_insertFakeElement(qa,rd){const sd=this.treeAdapter.createElement(qa,NS.HTML,[]);this._attachElementToTree(sd,null),this.openElements.push(sd,rd)}_insertTemplate(qa){const rd=this.treeAdapter.createElement(qa.tagName,NS.HTML,qa.attrs),sd=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(rd,sd),this._attachElementToTree(rd,qa.location),this.openElements.push(rd,qa.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(sd,null)}_insertFakeRootElement(){const qa=this.treeAdapter.createElement(TAG_NAMES.HTML,NS.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(qa,null),this.treeAdapter.appendChild(this.openElements.current,qa),this.openElements.push(qa,TAG_ID.HTML)}_appendCommentNode(qa,rd){const sd=this.treeAdapter.createCommentNode(qa.data);this.treeAdapter.appendChild(rd,sd),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(sd,qa.location)}_insertCharacters(qa){let rd,sd;if(this._shouldFosterParentOnInsertion()?({parent:rd,beforeElement:sd}=this._findFosterParentingLocation(),sd?this.treeAdapter.insertTextBefore(rd,qa.chars,sd):this.treeAdapter.insertText(rd,qa.chars)):(rd=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(rd,qa.chars)),!qa.location)return;const pd=this.treeAdapter.getChildNodes(rd),fd=sd?pd.lastIndexOf(sd):pd.length,hd=pd[fd-1];if(this.treeAdapter.getNodeSourceCodeLocation(hd)){const{endLine:gd,endCol:yd,endOffset:vd}=qa.location;this.treeAdapter.updateNodeSourceCodeLocation(hd,{endLine:gd,endCol:yd,endOffset:vd})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(hd,qa.location)}_adoptNodes(qa,rd){for(let sd=this.treeAdapter.getFirstChild(qa);sd;sd=this.treeAdapter.getFirstChild(qa))this.treeAdapter.detachNode(sd),this.treeAdapter.appendChild(rd,sd)}_setEndLocation(qa,rd){if(this.treeAdapter.getNodeSourceCodeLocation(qa)&&rd.location){const sd=rd.location,pd=this.treeAdapter.getTagName(qa),fd=rd.type===TokenType.END_TAG&&pd===rd.tagName?{endTag:{...sd},endLine:sd.endLine,endCol:sd.endCol,endOffset:sd.endOffset}:{endLine:sd.startLine,endCol:sd.startCol,endOffset:sd.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(qa,fd)}}shouldProcessStartTagTokenInForeignContent(qa){if(!this.currentNotInHTML)return!1;let rd,sd;return this.openElements.stackTop===0&&this.fragmentContext?(rd=this.fragmentContext,sd=this.fragmentContextID):{current:rd,currentTagId:sd}=this.openElements,qa.tagID===TAG_ID.SVG&&this.treeAdapter.getTagName(rd)===TAG_NAMES.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(rd)===NS.MATHML?!1:this.tokenizer.inForeignNode||(qa.tagID===TAG_ID.MGLYPH||qa.tagID===TAG_ID.MALIGNMARK)&&!this._isIntegrationPoint(sd,rd,NS.HTML)}_processToken(qa){switch(qa.type){case TokenType.CHARACTER:{this.onCharacter(qa);break}case TokenType.NULL_CHARACTER:{this.onNullCharacter(qa);break}case TokenType.COMMENT:{this.onComment(qa);break}case TokenType.DOCTYPE:{this.onDoctype(qa);break}case TokenType.START_TAG:{this._processStartTag(qa);break}case TokenType.END_TAG:{this.onEndTag(qa);break}case TokenType.EOF:{this.onEof(qa);break}case TokenType.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(qa);break}}}_isIntegrationPoint(qa,rd,sd){const pd=this.treeAdapter.getNamespaceURI(rd),fd=this.treeAdapter.getAttrList(rd);return isIntegrationPoint(qa,pd,fd,sd)}_reconstructActiveFormattingElements(){const qa=this.activeFormattingElements.entries.length;if(qa){const rd=this.activeFormattingElements.entries.findIndex(pd=>pd.type===EntryType.Marker||this.openElements.contains(pd.element)),sd=rd<0?qa-1:rd-1;for(let pd=sd;pd>=0;pd--){const fd=this.activeFormattingElements.entries[pd];this._insertElement(fd.token,this.treeAdapter.getNamespaceURI(fd.element)),fd.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=InsertionMode.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(TAG_ID.P),this.openElements.popUntilTagNamePopped(TAG_ID.P)}_resetInsertionMode(){for(let qa=this.openElements.stackTop;qa>=0;qa--)switch(qa===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[qa]){case TAG_ID.TR:{this.insertionMode=InsertionMode.IN_ROW;return}case TAG_ID.TBODY:case TAG_ID.THEAD:case TAG_ID.TFOOT:{this.insertionMode=InsertionMode.IN_TABLE_BODY;return}case TAG_ID.CAPTION:{this.insertionMode=InsertionMode.IN_CAPTION;return}case TAG_ID.COLGROUP:{this.insertionMode=InsertionMode.IN_COLUMN_GROUP;return}case TAG_ID.TABLE:{this.insertionMode=InsertionMode.IN_TABLE;return}case TAG_ID.BODY:{this.insertionMode=InsertionMode.IN_BODY;return}case TAG_ID.FRAMESET:{this.insertionMode=InsertionMode.IN_FRAMESET;return}case TAG_ID.SELECT:{this._resetInsertionModeForSelect(qa);return}case TAG_ID.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case TAG_ID.HTML:{this.insertionMode=this.headElement?InsertionMode.AFTER_HEAD:InsertionMode.BEFORE_HEAD;return}case TAG_ID.TD:case TAG_ID.TH:{if(qa>0){this.insertionMode=InsertionMode.IN_CELL;return}break}case TAG_ID.HEAD:{if(qa>0){this.insertionMode=InsertionMode.IN_HEAD;return}break}}this.insertionMode=InsertionMode.IN_BODY}_resetInsertionModeForSelect(qa){if(qa>0)for(let rd=qa-1;rd>0;rd--){const sd=this.openElements.tagIDs[rd];if(sd===TAG_ID.TEMPLATE)break;if(sd===TAG_ID.TABLE){this.insertionMode=InsertionMode.IN_SELECT_IN_TABLE;return}}this.insertionMode=InsertionMode.IN_SELECT}_isElementCausesFosterParenting(qa){return TABLE_STRUCTURE_TAGS.has(qa)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let qa=this.openElements.stackTop;qa>=0;qa--){const rd=this.openElements.items[qa];switch(this.openElements.tagIDs[qa]){case TAG_ID.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(rd)===NS.HTML)return{parent:this.treeAdapter.getTemplateContent(rd),beforeElement:null};break}case TAG_ID.TABLE:{const sd=this.treeAdapter.getParentNode(rd);return sd?{parent:sd,beforeElement:rd}:{parent:this.openElements.items[qa-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(qa){const rd=this._findFosterParentingLocation();rd.beforeElement?this.treeAdapter.insertBefore(rd.parent,qa,rd.beforeElement):this.treeAdapter.appendChild(rd.parent,qa)}_isSpecialElement(qa,rd){const sd=this.treeAdapter.getNamespaceURI(qa);return SPECIAL_ELEMENTS[sd].has(rd)}onCharacter(qa){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){characterInForeignContent(this,qa);return}switch(this.insertionMode){case InsertionMode.INITIAL:{tokenInInitialMode(this,qa);break}case InsertionMode.BEFORE_HTML:{tokenBeforeHtml(this,qa);break}case InsertionMode.BEFORE_HEAD:{tokenBeforeHead(this,qa);break}case InsertionMode.IN_HEAD:{tokenInHead(this,qa);break}case InsertionMode.IN_HEAD_NO_SCRIPT:{tokenInHeadNoScript(this,qa);break}case InsertionMode.AFTER_HEAD:{tokenAfterHead(this,qa);break}case InsertionMode.IN_BODY:case InsertionMode.IN_CAPTION:case InsertionMode.IN_CELL:case InsertionMode.IN_TEMPLATE:{characterInBody(this,qa);break}case InsertionMode.TEXT:case InsertionMode.IN_SELECT:case InsertionMode.IN_SELECT_IN_TABLE:{this._insertCharacters(qa);break}case InsertionMode.IN_TABLE:case InsertionMode.IN_TABLE_BODY:case InsertionMode.IN_ROW:{characterInTable(this,qa);break}case InsertionMode.IN_TABLE_TEXT:{characterInTableText(this,qa);break}case InsertionMode.IN_COLUMN_GROUP:{tokenInColumnGroup(this,qa);break}case InsertionMode.AFTER_BODY:{tokenAfterBody(this,qa);break}case InsertionMode.AFTER_AFTER_BODY:{tokenAfterAfterBody(this,qa);break}}}onNullCharacter(qa){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){nullCharacterInForeignContent(this,qa);return}switch(this.insertionMode){case InsertionMode.INITIAL:{tokenInInitialMode(this,qa);break}case InsertionMode.BEFORE_HTML:{tokenBeforeHtml(this,qa);break}case InsertionMode.BEFORE_HEAD:{tokenBeforeHead(this,qa);break}case InsertionMode.IN_HEAD:{tokenInHead(this,qa);break}case InsertionMode.IN_HEAD_NO_SCRIPT:{tokenInHeadNoScript(this,qa);break}case InsertionMode.AFTER_HEAD:{tokenAfterHead(this,qa);break}case InsertionMode.TEXT:{this._insertCharacters(qa);break}case InsertionMode.IN_TABLE:case InsertionMode.IN_TABLE_BODY:case InsertionMode.IN_ROW:{characterInTable(this,qa);break}case InsertionMode.IN_COLUMN_GROUP:{tokenInColumnGroup(this,qa);break}case InsertionMode.AFTER_BODY:{tokenAfterBody(this,qa);break}case InsertionMode.AFTER_AFTER_BODY:{tokenAfterAfterBody(this,qa);break}}}onComment(qa){if(this.skipNextNewLine=!1,this.currentNotInHTML){appendComment(this,qa);return}switch(this.insertionMode){case InsertionMode.INITIAL:case InsertionMode.BEFORE_HTML:case InsertionMode.BEFORE_HEAD:case InsertionMode.IN_HEAD:case InsertionMode.IN_HEAD_NO_SCRIPT:case InsertionMode.AFTER_HEAD:case InsertionMode.IN_BODY:case InsertionMode.IN_TABLE:case InsertionMode.IN_CAPTION:case InsertionMode.IN_COLUMN_GROUP:case InsertionMode.IN_TABLE_BODY:case InsertionMode.IN_ROW:case InsertionMode.IN_CELL:case InsertionMode.IN_SELECT:case InsertionMode.IN_SELECT_IN_TABLE:case InsertionMode.IN_TEMPLATE:case InsertionMode.IN_FRAMESET:case InsertionMode.AFTER_FRAMESET:{appendComment(this,qa);break}case InsertionMode.IN_TABLE_TEXT:{tokenInTableText(this,qa);break}case InsertionMode.AFTER_BODY:{appendCommentToRootHtmlElement(this,qa);break}case InsertionMode.AFTER_AFTER_BODY:case InsertionMode.AFTER_AFTER_FRAMESET:{appendCommentToDocument(this,qa);break}}}onDoctype(qa){switch(this.skipNextNewLine=!1,this.insertionMode){case InsertionMode.INITIAL:{doctypeInInitialMode(this,qa);break}case InsertionMode.BEFORE_HEAD:case InsertionMode.IN_HEAD:case InsertionMode.IN_HEAD_NO_SCRIPT:case InsertionMode.AFTER_HEAD:{this._err(qa,ERR.misplacedDoctype);break}case InsertionMode.IN_TABLE_TEXT:{tokenInTableText(this,qa);break}}}onStartTag(qa){this.skipNextNewLine=!1,this.currentToken=qa,this._processStartTag(qa),qa.selfClosing&&!qa.ackSelfClosing&&this._err(qa,ERR.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(qa){this.shouldProcessStartTagTokenInForeignContent(qa)?startTagInForeignContent(this,qa):this._startTagOutsideForeignContent(qa)}_startTagOutsideForeignContent(qa){switch(this.insertionMode){case InsertionMode.INITIAL:{tokenInInitialMode(this,qa);break}case InsertionMode.BEFORE_HTML:{startTagBeforeHtml(this,qa);break}case InsertionMode.BEFORE_HEAD:{startTagBeforeHead(this,qa);break}case InsertionMode.IN_HEAD:{startTagInHead(this,qa);break}case InsertionMode.IN_HEAD_NO_SCRIPT:{startTagInHeadNoScript(this,qa);break}case InsertionMode.AFTER_HEAD:{startTagAfterHead(this,qa);break}case InsertionMode.IN_BODY:{startTagInBody(this,qa);break}case InsertionMode.IN_TABLE:{startTagInTable(this,qa);break}case InsertionMode.IN_TABLE_TEXT:{tokenInTableText(this,qa);break}case InsertionMode.IN_CAPTION:{startTagInCaption(this,qa);break}case InsertionMode.IN_COLUMN_GROUP:{startTagInColumnGroup(this,qa);break}case InsertionMode.IN_TABLE_BODY:{startTagInTableBody(this,qa);break}case InsertionMode.IN_ROW:{startTagInRow(this,qa);break}case InsertionMode.IN_CELL:{startTagInCell(this,qa);break}case InsertionMode.IN_SELECT:{startTagInSelect(this,qa);break}case InsertionMode.IN_SELECT_IN_TABLE:{startTagInSelectInTable(this,qa);break}case InsertionMode.IN_TEMPLATE:{startTagInTemplate(this,qa);break}case InsertionMode.AFTER_BODY:{startTagAfterBody(this,qa);break}case InsertionMode.IN_FRAMESET:{startTagInFrameset(this,qa);break}case InsertionMode.AFTER_FRAMESET:{startTagAfterFrameset(this,qa);break}case InsertionMode.AFTER_AFTER_BODY:{startTagAfterAfterBody(this,qa);break}case InsertionMode.AFTER_AFTER_FRAMESET:{startTagAfterAfterFrameset(this,qa);break}}}onEndTag(qa){this.skipNextNewLine=!1,this.currentToken=qa,this.currentNotInHTML?endTagInForeignContent(this,qa):this._endTagOutsideForeignContent(qa)}_endTagOutsideForeignContent(qa){switch(this.insertionMode){case InsertionMode.INITIAL:{tokenInInitialMode(this,qa);break}case InsertionMode.BEFORE_HTML:{endTagBeforeHtml(this,qa);break}case InsertionMode.BEFORE_HEAD:{endTagBeforeHead(this,qa);break}case InsertionMode.IN_HEAD:{endTagInHead(this,qa);break}case InsertionMode.IN_HEAD_NO_SCRIPT:{endTagInHeadNoScript(this,qa);break}case InsertionMode.AFTER_HEAD:{endTagAfterHead(this,qa);break}case InsertionMode.IN_BODY:{endTagInBody(this,qa);break}case InsertionMode.TEXT:{endTagInText(this,qa);break}case InsertionMode.IN_TABLE:{endTagInTable(this,qa);break}case InsertionMode.IN_TABLE_TEXT:{tokenInTableText(this,qa);break}case InsertionMode.IN_CAPTION:{endTagInCaption(this,qa);break}case InsertionMode.IN_COLUMN_GROUP:{endTagInColumnGroup(this,qa);break}case InsertionMode.IN_TABLE_BODY:{endTagInTableBody(this,qa);break}case InsertionMode.IN_ROW:{endTagInRow(this,qa);break}case InsertionMode.IN_CELL:{endTagInCell(this,qa);break}case InsertionMode.IN_SELECT:{endTagInSelect(this,qa);break}case InsertionMode.IN_SELECT_IN_TABLE:{endTagInSelectInTable(this,qa);break}case InsertionMode.IN_TEMPLATE:{endTagInTemplate(this,qa);break}case InsertionMode.AFTER_BODY:{endTagAfterBody(this,qa);break}case InsertionMode.IN_FRAMESET:{endTagInFrameset(this,qa);break}case InsertionMode.AFTER_FRAMESET:{endTagAfterFrameset(this,qa);break}case InsertionMode.AFTER_AFTER_BODY:{tokenAfterAfterBody(this,qa);break}}}onEof(qa){switch(this.insertionMode){case InsertionMode.INITIAL:{tokenInInitialMode(this,qa);break}case InsertionMode.BEFORE_HTML:{tokenBeforeHtml(this,qa);break}case InsertionMode.BEFORE_HEAD:{tokenBeforeHead(this,qa);break}case InsertionMode.IN_HEAD:{tokenInHead(this,qa);break}case InsertionMode.IN_HEAD_NO_SCRIPT:{tokenInHeadNoScript(this,qa);break}case InsertionMode.AFTER_HEAD:{tokenAfterHead(this,qa);break}case InsertionMode.IN_BODY:case InsertionMode.IN_TABLE:case InsertionMode.IN_CAPTION:case InsertionMode.IN_COLUMN_GROUP:case InsertionMode.IN_TABLE_BODY:case InsertionMode.IN_ROW:case InsertionMode.IN_CELL:case InsertionMode.IN_SELECT:case InsertionMode.IN_SELECT_IN_TABLE:{eofInBody(this,qa);break}case InsertionMode.TEXT:{eofInText(this,qa);break}case InsertionMode.IN_TABLE_TEXT:{tokenInTableText(this,qa);break}case InsertionMode.IN_TEMPLATE:{eofInTemplate(this,qa);break}case InsertionMode.AFTER_BODY:case InsertionMode.IN_FRAMESET:case InsertionMode.AFTER_FRAMESET:case InsertionMode.AFTER_AFTER_BODY:case InsertionMode.AFTER_AFTER_FRAMESET:{stopParsing(this,qa);break}}}onWhitespaceCharacter(qa){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,qa.chars.charCodeAt(0)===CODE_POINTS.LINE_FEED)){if(qa.chars.length===1)return;qa.chars=qa.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(qa);return}switch(this.insertionMode){case InsertionMode.IN_HEAD:case InsertionMode.IN_HEAD_NO_SCRIPT:case InsertionMode.AFTER_HEAD:case InsertionMode.TEXT:case InsertionMode.IN_COLUMN_GROUP:case InsertionMode.IN_SELECT:case InsertionMode.IN_SELECT_IN_TABLE:case InsertionMode.IN_FRAMESET:case InsertionMode.AFTER_FRAMESET:{this._insertCharacters(qa);break}case InsertionMode.IN_BODY:case InsertionMode.IN_CAPTION:case InsertionMode.IN_CELL:case InsertionMode.IN_TEMPLATE:case InsertionMode.AFTER_BODY:case InsertionMode.AFTER_AFTER_BODY:case InsertionMode.AFTER_AFTER_FRAMESET:{whitespaceCharacterInBody(this,qa);break}case InsertionMode.IN_TABLE:case InsertionMode.IN_TABLE_BODY:case InsertionMode.IN_ROW:{characterInTable(this,qa);break}case InsertionMode.IN_TABLE_TEXT:{whitespaceCharacterInTableText(this,qa);break}}}};function aaObtainFormattingElementEntry(Ra,qa){let rd=Ra.activeFormattingElements.getElementEntryInScopeWithTagName(qa.tagName);return rd?Ra.openElements.contains(rd.element)?Ra.openElements.hasInScope(qa.tagID)||(rd=null):(Ra.activeFormattingElements.removeEntry(rd),rd=null):genericEndTagInBody(Ra,qa),rd}function aaObtainFurthestBlock(Ra,qa){let rd=null,sd=Ra.openElements.stackTop;for(;sd>=0;sd--){const pd=Ra.openElements.items[sd];if(pd===qa.element)break;Ra._isSpecialElement(pd,Ra.openElements.tagIDs[sd])&&(rd=pd)}return rd||(Ra.openElements.shortenToLength(sd<0?0:sd),Ra.activeFormattingElements.removeEntry(qa)),rd}function aaInnerLoop(Ra,qa,rd){let sd=qa,pd=Ra.openElements.getCommonAncestor(qa);for(let fd=0,hd=pd;hd!==rd;fd++,hd=pd){pd=Ra.openElements.getCommonAncestor(hd);const md=Ra.activeFormattingElements.getElementEntry(hd),gd=md&&fd>=AA_INNER_LOOP_ITER;!md||gd?(gd&&Ra.activeFormattingElements.removeEntry(md),Ra.openElements.remove(hd)):(hd=aaRecreateElementFromEntry(Ra,md),sd===qa&&(Ra.activeFormattingElements.bookmark=md),Ra.treeAdapter.detachNode(sd),Ra.treeAdapter.appendChild(hd,sd),sd=hd)}return sd}function aaRecreateElementFromEntry(Ra,qa){const rd=Ra.treeAdapter.getNamespaceURI(qa.element),sd=Ra.treeAdapter.createElement(qa.token.tagName,rd,qa.token.attrs);return Ra.openElements.replace(qa.element,sd),qa.element=sd,sd}function aaInsertLastNodeInCommonAncestor(Ra,qa,rd){const sd=Ra.treeAdapter.getTagName(qa),pd=getTagID(sd);if(Ra._isElementCausesFosterParenting(pd))Ra._fosterParentElement(rd);else{const fd=Ra.treeAdapter.getNamespaceURI(qa);pd===TAG_ID.TEMPLATE&&fd===NS.HTML&&(qa=Ra.treeAdapter.getTemplateContent(qa)),Ra.treeAdapter.appendChild(qa,rd)}}function aaReplaceFormattingElement(Ra,qa,rd){const sd=Ra.treeAdapter.getNamespaceURI(rd.element),{token:pd}=rd,fd=Ra.treeAdapter.createElement(pd.tagName,sd,pd.attrs);Ra._adoptNodes(qa,fd),Ra.treeAdapter.appendChild(qa,fd),Ra.activeFormattingElements.insertElementAfterBookmark(fd,pd),Ra.activeFormattingElements.removeEntry(rd),Ra.openElements.remove(rd.element),Ra.openElements.insertAfter(qa,fd,pd.tagID)}function callAdoptionAgency(Ra,qa){for(let rd=0;rd=rd;sd--)Ra._setEndLocation(Ra.openElements.items[sd],qa);if(!Ra.fragmentContext&&Ra.openElements.stackTop>=0){const sd=Ra.openElements.items[0],pd=Ra.treeAdapter.getNodeSourceCodeLocation(sd);if(pd&&!pd.endTag&&(Ra._setEndLocation(sd,qa),Ra.openElements.stackTop>=1)){const fd=Ra.openElements.items[1],hd=Ra.treeAdapter.getNodeSourceCodeLocation(fd);hd&&!hd.endTag&&Ra._setEndLocation(fd,qa)}}}}function doctypeInInitialMode(Ra,qa){Ra._setDocumentType(qa);const rd=qa.forceQuirks?DOCUMENT_MODE.QUIRKS:getDocumentMode(qa);isConforming(qa)||Ra._err(qa,ERR.nonConformingDoctype),Ra.treeAdapter.setDocumentMode(Ra.document,rd),Ra.insertionMode=InsertionMode.BEFORE_HTML}function tokenInInitialMode(Ra,qa){Ra._err(qa,ERR.missingDoctype,!0),Ra.treeAdapter.setDocumentMode(Ra.document,DOCUMENT_MODE.QUIRKS),Ra.insertionMode=InsertionMode.BEFORE_HTML,Ra._processToken(qa)}function startTagBeforeHtml(Ra,qa){qa.tagID===TAG_ID.HTML?(Ra._insertElement(qa,NS.HTML),Ra.insertionMode=InsertionMode.BEFORE_HEAD):tokenBeforeHtml(Ra,qa)}function endTagBeforeHtml(Ra,qa){const rd=qa.tagID;(rd===TAG_ID.HTML||rd===TAG_ID.HEAD||rd===TAG_ID.BODY||rd===TAG_ID.BR)&&tokenBeforeHtml(Ra,qa)}function tokenBeforeHtml(Ra,qa){Ra._insertFakeRootElement(),Ra.insertionMode=InsertionMode.BEFORE_HEAD,Ra._processToken(qa)}function startTagBeforeHead(Ra,qa){switch(qa.tagID){case TAG_ID.HTML:{startTagInBody(Ra,qa);break}case TAG_ID.HEAD:{Ra._insertElement(qa,NS.HTML),Ra.headElement=Ra.openElements.current,Ra.insertionMode=InsertionMode.IN_HEAD;break}default:tokenBeforeHead(Ra,qa)}}function endTagBeforeHead(Ra,qa){const rd=qa.tagID;rd===TAG_ID.HEAD||rd===TAG_ID.BODY||rd===TAG_ID.HTML||rd===TAG_ID.BR?tokenBeforeHead(Ra,qa):Ra._err(qa,ERR.endTagWithoutMatchingOpenElement)}function tokenBeforeHead(Ra,qa){Ra._insertFakeElement(TAG_NAMES.HEAD,TAG_ID.HEAD),Ra.headElement=Ra.openElements.current,Ra.insertionMode=InsertionMode.IN_HEAD,Ra._processToken(qa)}function startTagInHead(Ra,qa){switch(qa.tagID){case TAG_ID.HTML:{startTagInBody(Ra,qa);break}case TAG_ID.BASE:case TAG_ID.BASEFONT:case TAG_ID.BGSOUND:case TAG_ID.LINK:case TAG_ID.META:{Ra._appendElement(qa,NS.HTML),qa.ackSelfClosing=!0;break}case TAG_ID.TITLE:{Ra._switchToTextParsing(qa,TokenizerMode.RCDATA);break}case TAG_ID.NOSCRIPT:{Ra.options.scriptingEnabled?Ra._switchToTextParsing(qa,TokenizerMode.RAWTEXT):(Ra._insertElement(qa,NS.HTML),Ra.insertionMode=InsertionMode.IN_HEAD_NO_SCRIPT);break}case TAG_ID.NOFRAMES:case TAG_ID.STYLE:{Ra._switchToTextParsing(qa,TokenizerMode.RAWTEXT);break}case TAG_ID.SCRIPT:{Ra._switchToTextParsing(qa,TokenizerMode.SCRIPT_DATA);break}case TAG_ID.TEMPLATE:{Ra._insertTemplate(qa),Ra.activeFormattingElements.insertMarker(),Ra.framesetOk=!1,Ra.insertionMode=InsertionMode.IN_TEMPLATE,Ra.tmplInsertionModeStack.unshift(InsertionMode.IN_TEMPLATE);break}case TAG_ID.HEAD:{Ra._err(qa,ERR.misplacedStartTagForHeadElement);break}default:tokenInHead(Ra,qa)}}function endTagInHead(Ra,qa){switch(qa.tagID){case TAG_ID.HEAD:{Ra.openElements.pop(),Ra.insertionMode=InsertionMode.AFTER_HEAD;break}case TAG_ID.BODY:case TAG_ID.BR:case TAG_ID.HTML:{tokenInHead(Ra,qa);break}case TAG_ID.TEMPLATE:{templateEndTagInHead(Ra,qa);break}default:Ra._err(qa,ERR.endTagWithoutMatchingOpenElement)}}function templateEndTagInHead(Ra,qa){Ra.openElements.tmplCount>0?(Ra.openElements.generateImpliedEndTagsThoroughly(),Ra.openElements.currentTagId!==TAG_ID.TEMPLATE&&Ra._err(qa,ERR.closingOfElementWithOpenChildElements),Ra.openElements.popUntilTagNamePopped(TAG_ID.TEMPLATE),Ra.activeFormattingElements.clearToLastMarker(),Ra.tmplInsertionModeStack.shift(),Ra._resetInsertionMode()):Ra._err(qa,ERR.endTagWithoutMatchingOpenElement)}function tokenInHead(Ra,qa){Ra.openElements.pop(),Ra.insertionMode=InsertionMode.AFTER_HEAD,Ra._processToken(qa)}function startTagInHeadNoScript(Ra,qa){switch(qa.tagID){case TAG_ID.HTML:{startTagInBody(Ra,qa);break}case TAG_ID.BASEFONT:case TAG_ID.BGSOUND:case TAG_ID.HEAD:case TAG_ID.LINK:case TAG_ID.META:case TAG_ID.NOFRAMES:case TAG_ID.STYLE:{startTagInHead(Ra,qa);break}case TAG_ID.NOSCRIPT:{Ra._err(qa,ERR.nestedNoscriptInHead);break}default:tokenInHeadNoScript(Ra,qa)}}function endTagInHeadNoScript(Ra,qa){switch(qa.tagID){case TAG_ID.NOSCRIPT:{Ra.openElements.pop(),Ra.insertionMode=InsertionMode.IN_HEAD;break}case TAG_ID.BR:{tokenInHeadNoScript(Ra,qa);break}default:Ra._err(qa,ERR.endTagWithoutMatchingOpenElement)}}function tokenInHeadNoScript(Ra,qa){const rd=qa.type===TokenType.EOF?ERR.openElementsLeftAfterEof:ERR.disallowedContentInNoscriptInHead;Ra._err(qa,rd),Ra.openElements.pop(),Ra.insertionMode=InsertionMode.IN_HEAD,Ra._processToken(qa)}function startTagAfterHead(Ra,qa){switch(qa.tagID){case TAG_ID.HTML:{startTagInBody(Ra,qa);break}case TAG_ID.BODY:{Ra._insertElement(qa,NS.HTML),Ra.framesetOk=!1,Ra.insertionMode=InsertionMode.IN_BODY;break}case TAG_ID.FRAMESET:{Ra._insertElement(qa,NS.HTML),Ra.insertionMode=InsertionMode.IN_FRAMESET;break}case TAG_ID.BASE:case TAG_ID.BASEFONT:case TAG_ID.BGSOUND:case TAG_ID.LINK:case TAG_ID.META:case TAG_ID.NOFRAMES:case TAG_ID.SCRIPT:case TAG_ID.STYLE:case TAG_ID.TEMPLATE:case TAG_ID.TITLE:{Ra._err(qa,ERR.abandonedHeadElementChild),Ra.openElements.push(Ra.headElement,TAG_ID.HEAD),startTagInHead(Ra,qa),Ra.openElements.remove(Ra.headElement);break}case TAG_ID.HEAD:{Ra._err(qa,ERR.misplacedStartTagForHeadElement);break}default:tokenAfterHead(Ra,qa)}}function endTagAfterHead(Ra,qa){switch(qa.tagID){case TAG_ID.BODY:case TAG_ID.HTML:case TAG_ID.BR:{tokenAfterHead(Ra,qa);break}case TAG_ID.TEMPLATE:{templateEndTagInHead(Ra,qa);break}default:Ra._err(qa,ERR.endTagWithoutMatchingOpenElement)}}function tokenAfterHead(Ra,qa){Ra._insertFakeElement(TAG_NAMES.BODY,TAG_ID.BODY),Ra.insertionMode=InsertionMode.IN_BODY,modeInBody(Ra,qa)}function modeInBody(Ra,qa){switch(qa.type){case TokenType.CHARACTER:{characterInBody(Ra,qa);break}case TokenType.WHITESPACE_CHARACTER:{whitespaceCharacterInBody(Ra,qa);break}case TokenType.COMMENT:{appendComment(Ra,qa);break}case TokenType.START_TAG:{startTagInBody(Ra,qa);break}case TokenType.END_TAG:{endTagInBody(Ra,qa);break}case TokenType.EOF:{eofInBody(Ra,qa);break}}}function whitespaceCharacterInBody(Ra,qa){Ra._reconstructActiveFormattingElements(),Ra._insertCharacters(qa)}function characterInBody(Ra,qa){Ra._reconstructActiveFormattingElements(),Ra._insertCharacters(qa),Ra.framesetOk=!1}function htmlStartTagInBody(Ra,qa){Ra.openElements.tmplCount===0&&Ra.treeAdapter.adoptAttributes(Ra.openElements.items[0],qa.attrs)}function bodyStartTagInBody(Ra,qa){const rd=Ra.openElements.tryPeekProperlyNestedBodyElement();rd&&Ra.openElements.tmplCount===0&&(Ra.framesetOk=!1,Ra.treeAdapter.adoptAttributes(rd,qa.attrs))}function framesetStartTagInBody(Ra,qa){const rd=Ra.openElements.tryPeekProperlyNestedBodyElement();Ra.framesetOk&&rd&&(Ra.treeAdapter.detachNode(rd),Ra.openElements.popAllUpToHtmlElement(),Ra._insertElement(qa,NS.HTML),Ra.insertionMode=InsertionMode.IN_FRAMESET)}function addressStartTagInBody(Ra,qa){Ra.openElements.hasInButtonScope(TAG_ID.P)&&Ra._closePElement(),Ra._insertElement(qa,NS.HTML)}function numberedHeaderStartTagInBody(Ra,qa){Ra.openElements.hasInButtonScope(TAG_ID.P)&&Ra._closePElement(),NUMBERED_HEADERS.has(Ra.openElements.currentTagId)&&Ra.openElements.pop(),Ra._insertElement(qa,NS.HTML)}function preStartTagInBody(Ra,qa){Ra.openElements.hasInButtonScope(TAG_ID.P)&&Ra._closePElement(),Ra._insertElement(qa,NS.HTML),Ra.skipNextNewLine=!0,Ra.framesetOk=!1}function formStartTagInBody(Ra,qa){const rd=Ra.openElements.tmplCount>0;(!Ra.formElement||rd)&&(Ra.openElements.hasInButtonScope(TAG_ID.P)&&Ra._closePElement(),Ra._insertElement(qa,NS.HTML),rd||(Ra.formElement=Ra.openElements.current))}function listItemStartTagInBody(Ra,qa){Ra.framesetOk=!1;const rd=qa.tagID;for(let sd=Ra.openElements.stackTop;sd>=0;sd--){const pd=Ra.openElements.tagIDs[sd];if(rd===TAG_ID.LI&&pd===TAG_ID.LI||(rd===TAG_ID.DD||rd===TAG_ID.DT)&&(pd===TAG_ID.DD||pd===TAG_ID.DT)){Ra.openElements.generateImpliedEndTagsWithExclusion(pd),Ra.openElements.popUntilTagNamePopped(pd);break}if(pd!==TAG_ID.ADDRESS&&pd!==TAG_ID.DIV&&pd!==TAG_ID.P&&Ra._isSpecialElement(Ra.openElements.items[sd],pd))break}Ra.openElements.hasInButtonScope(TAG_ID.P)&&Ra._closePElement(),Ra._insertElement(qa,NS.HTML)}function plaintextStartTagInBody(Ra,qa){Ra.openElements.hasInButtonScope(TAG_ID.P)&&Ra._closePElement(),Ra._insertElement(qa,NS.HTML),Ra.tokenizer.state=TokenizerMode.PLAINTEXT}function buttonStartTagInBody(Ra,qa){Ra.openElements.hasInScope(TAG_ID.BUTTON)&&(Ra.openElements.generateImpliedEndTags(),Ra.openElements.popUntilTagNamePopped(TAG_ID.BUTTON)),Ra._reconstructActiveFormattingElements(),Ra._insertElement(qa,NS.HTML),Ra.framesetOk=!1}function aStartTagInBody(Ra,qa){const rd=Ra.activeFormattingElements.getElementEntryInScopeWithTagName(TAG_NAMES.A);rd&&(callAdoptionAgency(Ra,qa),Ra.openElements.remove(rd.element),Ra.activeFormattingElements.removeEntry(rd)),Ra._reconstructActiveFormattingElements(),Ra._insertElement(qa,NS.HTML),Ra.activeFormattingElements.pushElement(Ra.openElements.current,qa)}function bStartTagInBody(Ra,qa){Ra._reconstructActiveFormattingElements(),Ra._insertElement(qa,NS.HTML),Ra.activeFormattingElements.pushElement(Ra.openElements.current,qa)}function nobrStartTagInBody(Ra,qa){Ra._reconstructActiveFormattingElements(),Ra.openElements.hasInScope(TAG_ID.NOBR)&&(callAdoptionAgency(Ra,qa),Ra._reconstructActiveFormattingElements()),Ra._insertElement(qa,NS.HTML),Ra.activeFormattingElements.pushElement(Ra.openElements.current,qa)}function appletStartTagInBody(Ra,qa){Ra._reconstructActiveFormattingElements(),Ra._insertElement(qa,NS.HTML),Ra.activeFormattingElements.insertMarker(),Ra.framesetOk=!1}function tableStartTagInBody(Ra,qa){Ra.treeAdapter.getDocumentMode(Ra.document)!==DOCUMENT_MODE.QUIRKS&&Ra.openElements.hasInButtonScope(TAG_ID.P)&&Ra._closePElement(),Ra._insertElement(qa,NS.HTML),Ra.framesetOk=!1,Ra.insertionMode=InsertionMode.IN_TABLE}function areaStartTagInBody(Ra,qa){Ra._reconstructActiveFormattingElements(),Ra._appendElement(qa,NS.HTML),Ra.framesetOk=!1,qa.ackSelfClosing=!0}function isHiddenInput(Ra){const qa=getTokenAttr(Ra,ATTRS.TYPE);return qa!=null&&qa.toLowerCase()===HIDDEN_INPUT_TYPE}function inputStartTagInBody(Ra,qa){Ra._reconstructActiveFormattingElements(),Ra._appendElement(qa,NS.HTML),isHiddenInput(qa)||(Ra.framesetOk=!1),qa.ackSelfClosing=!0}function paramStartTagInBody(Ra,qa){Ra._appendElement(qa,NS.HTML),qa.ackSelfClosing=!0}function hrStartTagInBody(Ra,qa){Ra.openElements.hasInButtonScope(TAG_ID.P)&&Ra._closePElement(),Ra._appendElement(qa,NS.HTML),Ra.framesetOk=!1,qa.ackSelfClosing=!0}function imageStartTagInBody(Ra,qa){qa.tagName=TAG_NAMES.IMG,qa.tagID=TAG_ID.IMG,areaStartTagInBody(Ra,qa)}function textareaStartTagInBody(Ra,qa){Ra._insertElement(qa,NS.HTML),Ra.skipNextNewLine=!0,Ra.tokenizer.state=TokenizerMode.RCDATA,Ra.originalInsertionMode=Ra.insertionMode,Ra.framesetOk=!1,Ra.insertionMode=InsertionMode.TEXT}function xmpStartTagInBody(Ra,qa){Ra.openElements.hasInButtonScope(TAG_ID.P)&&Ra._closePElement(),Ra._reconstructActiveFormattingElements(),Ra.framesetOk=!1,Ra._switchToTextParsing(qa,TokenizerMode.RAWTEXT)}function iframeStartTagInBody(Ra,qa){Ra.framesetOk=!1,Ra._switchToTextParsing(qa,TokenizerMode.RAWTEXT)}function rawTextStartTagInBody(Ra,qa){Ra._switchToTextParsing(qa,TokenizerMode.RAWTEXT)}function selectStartTagInBody(Ra,qa){Ra._reconstructActiveFormattingElements(),Ra._insertElement(qa,NS.HTML),Ra.framesetOk=!1,Ra.insertionMode=Ra.insertionMode===InsertionMode.IN_TABLE||Ra.insertionMode===InsertionMode.IN_CAPTION||Ra.insertionMode===InsertionMode.IN_TABLE_BODY||Ra.insertionMode===InsertionMode.IN_ROW||Ra.insertionMode===InsertionMode.IN_CELL?InsertionMode.IN_SELECT_IN_TABLE:InsertionMode.IN_SELECT}function optgroupStartTagInBody(Ra,qa){Ra.openElements.currentTagId===TAG_ID.OPTION&&Ra.openElements.pop(),Ra._reconstructActiveFormattingElements(),Ra._insertElement(qa,NS.HTML)}function rbStartTagInBody(Ra,qa){Ra.openElements.hasInScope(TAG_ID.RUBY)&&Ra.openElements.generateImpliedEndTags(),Ra._insertElement(qa,NS.HTML)}function rtStartTagInBody(Ra,qa){Ra.openElements.hasInScope(TAG_ID.RUBY)&&Ra.openElements.generateImpliedEndTagsWithExclusion(TAG_ID.RTC),Ra._insertElement(qa,NS.HTML)}function mathStartTagInBody(Ra,qa){Ra._reconstructActiveFormattingElements(),adjustTokenMathMLAttrs(qa),adjustTokenXMLAttrs(qa),qa.selfClosing?Ra._appendElement(qa,NS.MATHML):Ra._insertElement(qa,NS.MATHML),qa.ackSelfClosing=!0}function svgStartTagInBody(Ra,qa){Ra._reconstructActiveFormattingElements(),adjustTokenSVGAttrs(qa),adjustTokenXMLAttrs(qa),qa.selfClosing?Ra._appendElement(qa,NS.SVG):Ra._insertElement(qa,NS.SVG),qa.ackSelfClosing=!0}function genericStartTagInBody(Ra,qa){Ra._reconstructActiveFormattingElements(),Ra._insertElement(qa,NS.HTML)}function startTagInBody(Ra,qa){switch(qa.tagID){case TAG_ID.I:case TAG_ID.S:case TAG_ID.B:case TAG_ID.U:case TAG_ID.EM:case TAG_ID.TT:case TAG_ID.BIG:case TAG_ID.CODE:case TAG_ID.FONT:case TAG_ID.SMALL:case TAG_ID.STRIKE:case TAG_ID.STRONG:{bStartTagInBody(Ra,qa);break}case TAG_ID.A:{aStartTagInBody(Ra,qa);break}case TAG_ID.H1:case TAG_ID.H2:case TAG_ID.H3:case TAG_ID.H4:case TAG_ID.H5:case TAG_ID.H6:{numberedHeaderStartTagInBody(Ra,qa);break}case TAG_ID.P:case TAG_ID.DL:case TAG_ID.OL:case TAG_ID.UL:case TAG_ID.DIV:case TAG_ID.DIR:case TAG_ID.NAV:case TAG_ID.MAIN:case TAG_ID.MENU:case TAG_ID.ASIDE:case TAG_ID.CENTER:case TAG_ID.FIGURE:case TAG_ID.FOOTER:case TAG_ID.HEADER:case TAG_ID.HGROUP:case TAG_ID.DIALOG:case TAG_ID.DETAILS:case TAG_ID.ADDRESS:case TAG_ID.ARTICLE:case TAG_ID.SEARCH:case TAG_ID.SECTION:case TAG_ID.SUMMARY:case TAG_ID.FIELDSET:case TAG_ID.BLOCKQUOTE:case TAG_ID.FIGCAPTION:{addressStartTagInBody(Ra,qa);break}case TAG_ID.LI:case TAG_ID.DD:case TAG_ID.DT:{listItemStartTagInBody(Ra,qa);break}case TAG_ID.BR:case TAG_ID.IMG:case TAG_ID.WBR:case TAG_ID.AREA:case TAG_ID.EMBED:case TAG_ID.KEYGEN:{areaStartTagInBody(Ra,qa);break}case TAG_ID.HR:{hrStartTagInBody(Ra,qa);break}case TAG_ID.RB:case TAG_ID.RTC:{rbStartTagInBody(Ra,qa);break}case TAG_ID.RT:case TAG_ID.RP:{rtStartTagInBody(Ra,qa);break}case TAG_ID.PRE:case TAG_ID.LISTING:{preStartTagInBody(Ra,qa);break}case TAG_ID.XMP:{xmpStartTagInBody(Ra,qa);break}case TAG_ID.SVG:{svgStartTagInBody(Ra,qa);break}case TAG_ID.HTML:{htmlStartTagInBody(Ra,qa);break}case TAG_ID.BASE:case TAG_ID.LINK:case TAG_ID.META:case TAG_ID.STYLE:case TAG_ID.TITLE:case TAG_ID.SCRIPT:case TAG_ID.BGSOUND:case TAG_ID.BASEFONT:case TAG_ID.TEMPLATE:{startTagInHead(Ra,qa);break}case TAG_ID.BODY:{bodyStartTagInBody(Ra,qa);break}case TAG_ID.FORM:{formStartTagInBody(Ra,qa);break}case TAG_ID.NOBR:{nobrStartTagInBody(Ra,qa);break}case TAG_ID.MATH:{mathStartTagInBody(Ra,qa);break}case TAG_ID.TABLE:{tableStartTagInBody(Ra,qa);break}case TAG_ID.INPUT:{inputStartTagInBody(Ra,qa);break}case TAG_ID.PARAM:case TAG_ID.TRACK:case TAG_ID.SOURCE:{paramStartTagInBody(Ra,qa);break}case TAG_ID.IMAGE:{imageStartTagInBody(Ra,qa);break}case TAG_ID.BUTTON:{buttonStartTagInBody(Ra,qa);break}case TAG_ID.APPLET:case TAG_ID.OBJECT:case TAG_ID.MARQUEE:{appletStartTagInBody(Ra,qa);break}case TAG_ID.IFRAME:{iframeStartTagInBody(Ra,qa);break}case TAG_ID.SELECT:{selectStartTagInBody(Ra,qa);break}case TAG_ID.OPTION:case TAG_ID.OPTGROUP:{optgroupStartTagInBody(Ra,qa);break}case TAG_ID.NOEMBED:case TAG_ID.NOFRAMES:{rawTextStartTagInBody(Ra,qa);break}case TAG_ID.FRAMESET:{framesetStartTagInBody(Ra,qa);break}case TAG_ID.TEXTAREA:{textareaStartTagInBody(Ra,qa);break}case TAG_ID.NOSCRIPT:{Ra.options.scriptingEnabled?rawTextStartTagInBody(Ra,qa):genericStartTagInBody(Ra,qa);break}case TAG_ID.PLAINTEXT:{plaintextStartTagInBody(Ra,qa);break}case TAG_ID.COL:case TAG_ID.TH:case TAG_ID.TD:case TAG_ID.TR:case TAG_ID.HEAD:case TAG_ID.FRAME:case TAG_ID.TBODY:case TAG_ID.TFOOT:case TAG_ID.THEAD:case TAG_ID.CAPTION:case TAG_ID.COLGROUP:break;default:genericStartTagInBody(Ra,qa)}}function bodyEndTagInBody(Ra,qa){if(Ra.openElements.hasInScope(TAG_ID.BODY)&&(Ra.insertionMode=InsertionMode.AFTER_BODY,Ra.options.sourceCodeLocationInfo)){const rd=Ra.openElements.tryPeekProperlyNestedBodyElement();rd&&Ra._setEndLocation(rd,qa)}}function htmlEndTagInBody(Ra,qa){Ra.openElements.hasInScope(TAG_ID.BODY)&&(Ra.insertionMode=InsertionMode.AFTER_BODY,endTagAfterBody(Ra,qa))}function addressEndTagInBody(Ra,qa){const rd=qa.tagID;Ra.openElements.hasInScope(rd)&&(Ra.openElements.generateImpliedEndTags(),Ra.openElements.popUntilTagNamePopped(rd))}function formEndTagInBody(Ra){const qa=Ra.openElements.tmplCount>0,{formElement:rd}=Ra;qa||(Ra.formElement=null),(rd||qa)&&Ra.openElements.hasInScope(TAG_ID.FORM)&&(Ra.openElements.generateImpliedEndTags(),qa?Ra.openElements.popUntilTagNamePopped(TAG_ID.FORM):rd&&Ra.openElements.remove(rd))}function pEndTagInBody(Ra){Ra.openElements.hasInButtonScope(TAG_ID.P)||Ra._insertFakeElement(TAG_NAMES.P,TAG_ID.P),Ra._closePElement()}function liEndTagInBody(Ra){Ra.openElements.hasInListItemScope(TAG_ID.LI)&&(Ra.openElements.generateImpliedEndTagsWithExclusion(TAG_ID.LI),Ra.openElements.popUntilTagNamePopped(TAG_ID.LI))}function ddEndTagInBody(Ra,qa){const rd=qa.tagID;Ra.openElements.hasInScope(rd)&&(Ra.openElements.generateImpliedEndTagsWithExclusion(rd),Ra.openElements.popUntilTagNamePopped(rd))}function numberedHeaderEndTagInBody(Ra){Ra.openElements.hasNumberedHeaderInScope()&&(Ra.openElements.generateImpliedEndTags(),Ra.openElements.popUntilNumberedHeaderPopped())}function appletEndTagInBody(Ra,qa){const rd=qa.tagID;Ra.openElements.hasInScope(rd)&&(Ra.openElements.generateImpliedEndTags(),Ra.openElements.popUntilTagNamePopped(rd),Ra.activeFormattingElements.clearToLastMarker())}function brEndTagInBody(Ra){Ra._reconstructActiveFormattingElements(),Ra._insertFakeElement(TAG_NAMES.BR,TAG_ID.BR),Ra.openElements.pop(),Ra.framesetOk=!1}function genericEndTagInBody(Ra,qa){const rd=qa.tagName,sd=qa.tagID;for(let pd=Ra.openElements.stackTop;pd>0;pd--){const fd=Ra.openElements.items[pd],hd=Ra.openElements.tagIDs[pd];if(sd===hd&&(sd!==TAG_ID.UNKNOWN||Ra.treeAdapter.getTagName(fd)===rd)){Ra.openElements.generateImpliedEndTagsWithExclusion(sd),Ra.openElements.stackTop>=pd&&Ra.openElements.shortenToLength(pd);break}if(Ra._isSpecialElement(fd,hd))break}}function endTagInBody(Ra,qa){switch(qa.tagID){case TAG_ID.A:case TAG_ID.B:case TAG_ID.I:case TAG_ID.S:case TAG_ID.U:case TAG_ID.EM:case TAG_ID.TT:case TAG_ID.BIG:case TAG_ID.CODE:case TAG_ID.FONT:case TAG_ID.NOBR:case TAG_ID.SMALL:case TAG_ID.STRIKE:case TAG_ID.STRONG:{callAdoptionAgency(Ra,qa);break}case TAG_ID.P:{pEndTagInBody(Ra);break}case TAG_ID.DL:case TAG_ID.UL:case TAG_ID.OL:case TAG_ID.DIR:case TAG_ID.DIV:case TAG_ID.NAV:case TAG_ID.PRE:case TAG_ID.MAIN:case TAG_ID.MENU:case TAG_ID.ASIDE:case TAG_ID.BUTTON:case TAG_ID.CENTER:case TAG_ID.FIGURE:case TAG_ID.FOOTER:case TAG_ID.HEADER:case TAG_ID.HGROUP:case TAG_ID.DIALOG:case TAG_ID.ADDRESS:case TAG_ID.ARTICLE:case TAG_ID.DETAILS:case TAG_ID.SEARCH:case TAG_ID.SECTION:case TAG_ID.SUMMARY:case TAG_ID.LISTING:case TAG_ID.FIELDSET:case TAG_ID.BLOCKQUOTE:case TAG_ID.FIGCAPTION:{addressEndTagInBody(Ra,qa);break}case TAG_ID.LI:{liEndTagInBody(Ra);break}case TAG_ID.DD:case TAG_ID.DT:{ddEndTagInBody(Ra,qa);break}case TAG_ID.H1:case TAG_ID.H2:case TAG_ID.H3:case TAG_ID.H4:case TAG_ID.H5:case TAG_ID.H6:{numberedHeaderEndTagInBody(Ra);break}case TAG_ID.BR:{brEndTagInBody(Ra);break}case TAG_ID.BODY:{bodyEndTagInBody(Ra,qa);break}case TAG_ID.HTML:{htmlEndTagInBody(Ra,qa);break}case TAG_ID.FORM:{formEndTagInBody(Ra);break}case TAG_ID.APPLET:case TAG_ID.OBJECT:case TAG_ID.MARQUEE:{appletEndTagInBody(Ra,qa);break}case TAG_ID.TEMPLATE:{templateEndTagInHead(Ra,qa);break}default:genericEndTagInBody(Ra,qa)}}function eofInBody(Ra,qa){Ra.tmplInsertionModeStack.length>0?eofInTemplate(Ra,qa):stopParsing(Ra,qa)}function endTagInText(Ra,qa){var rd;qa.tagID===TAG_ID.SCRIPT&&((rd=Ra.scriptHandler)===null||rd===void 0||rd.call(Ra,Ra.openElements.current)),Ra.openElements.pop(),Ra.insertionMode=Ra.originalInsertionMode}function eofInText(Ra,qa){Ra._err(qa,ERR.eofInElementThatCanContainOnlyText),Ra.openElements.pop(),Ra.insertionMode=Ra.originalInsertionMode,Ra.onEof(qa)}function characterInTable(Ra,qa){if(TABLE_STRUCTURE_TAGS.has(Ra.openElements.currentTagId))switch(Ra.pendingCharacterTokens.length=0,Ra.hasNonWhitespacePendingCharacterToken=!1,Ra.originalInsertionMode=Ra.insertionMode,Ra.insertionMode=InsertionMode.IN_TABLE_TEXT,qa.type){case TokenType.CHARACTER:{characterInTableText(Ra,qa);break}case TokenType.WHITESPACE_CHARACTER:{whitespaceCharacterInTableText(Ra,qa);break}}else tokenInTable(Ra,qa)}function captionStartTagInTable(Ra,qa){Ra.openElements.clearBackToTableContext(),Ra.activeFormattingElements.insertMarker(),Ra._insertElement(qa,NS.HTML),Ra.insertionMode=InsertionMode.IN_CAPTION}function colgroupStartTagInTable(Ra,qa){Ra.openElements.clearBackToTableContext(),Ra._insertElement(qa,NS.HTML),Ra.insertionMode=InsertionMode.IN_COLUMN_GROUP}function colStartTagInTable(Ra,qa){Ra.openElements.clearBackToTableContext(),Ra._insertFakeElement(TAG_NAMES.COLGROUP,TAG_ID.COLGROUP),Ra.insertionMode=InsertionMode.IN_COLUMN_GROUP,startTagInColumnGroup(Ra,qa)}function tbodyStartTagInTable(Ra,qa){Ra.openElements.clearBackToTableContext(),Ra._insertElement(qa,NS.HTML),Ra.insertionMode=InsertionMode.IN_TABLE_BODY}function tdStartTagInTable(Ra,qa){Ra.openElements.clearBackToTableContext(),Ra._insertFakeElement(TAG_NAMES.TBODY,TAG_ID.TBODY),Ra.insertionMode=InsertionMode.IN_TABLE_BODY,startTagInTableBody(Ra,qa)}function tableStartTagInTable(Ra,qa){Ra.openElements.hasInTableScope(TAG_ID.TABLE)&&(Ra.openElements.popUntilTagNamePopped(TAG_ID.TABLE),Ra._resetInsertionMode(),Ra._processStartTag(qa))}function inputStartTagInTable(Ra,qa){isHiddenInput(qa)?Ra._appendElement(qa,NS.HTML):tokenInTable(Ra,qa),qa.ackSelfClosing=!0}function formStartTagInTable(Ra,qa){!Ra.formElement&&Ra.openElements.tmplCount===0&&(Ra._insertElement(qa,NS.HTML),Ra.formElement=Ra.openElements.current,Ra.openElements.pop())}function startTagInTable(Ra,qa){switch(qa.tagID){case TAG_ID.TD:case TAG_ID.TH:case TAG_ID.TR:{tdStartTagInTable(Ra,qa);break}case TAG_ID.STYLE:case TAG_ID.SCRIPT:case TAG_ID.TEMPLATE:{startTagInHead(Ra,qa);break}case TAG_ID.COL:{colStartTagInTable(Ra,qa);break}case TAG_ID.FORM:{formStartTagInTable(Ra,qa);break}case TAG_ID.TABLE:{tableStartTagInTable(Ra,qa);break}case TAG_ID.TBODY:case TAG_ID.TFOOT:case TAG_ID.THEAD:{tbodyStartTagInTable(Ra,qa);break}case TAG_ID.INPUT:{inputStartTagInTable(Ra,qa);break}case TAG_ID.CAPTION:{captionStartTagInTable(Ra,qa);break}case TAG_ID.COLGROUP:{colgroupStartTagInTable(Ra,qa);break}default:tokenInTable(Ra,qa)}}function endTagInTable(Ra,qa){switch(qa.tagID){case TAG_ID.TABLE:{Ra.openElements.hasInTableScope(TAG_ID.TABLE)&&(Ra.openElements.popUntilTagNamePopped(TAG_ID.TABLE),Ra._resetInsertionMode());break}case TAG_ID.TEMPLATE:{templateEndTagInHead(Ra,qa);break}case TAG_ID.BODY:case TAG_ID.CAPTION:case TAG_ID.COL:case TAG_ID.COLGROUP:case TAG_ID.HTML:case TAG_ID.TBODY:case TAG_ID.TD:case TAG_ID.TFOOT:case TAG_ID.TH:case TAG_ID.THEAD:case TAG_ID.TR:break;default:tokenInTable(Ra,qa)}}function tokenInTable(Ra,qa){const rd=Ra.fosterParentingEnabled;Ra.fosterParentingEnabled=!0,modeInBody(Ra,qa),Ra.fosterParentingEnabled=rd}function whitespaceCharacterInTableText(Ra,qa){Ra.pendingCharacterTokens.push(qa)}function characterInTableText(Ra,qa){Ra.pendingCharacterTokens.push(qa),Ra.hasNonWhitespacePendingCharacterToken=!0}function tokenInTableText(Ra,qa){let rd=0;if(Ra.hasNonWhitespacePendingCharacterToken)for(;rd0&&Ra.openElements.currentTagId===TAG_ID.OPTION&&Ra.openElements.tagIDs[Ra.openElements.stackTop-1]===TAG_ID.OPTGROUP&&Ra.openElements.pop(),Ra.openElements.currentTagId===TAG_ID.OPTGROUP&&Ra.openElements.pop();break}case TAG_ID.OPTION:{Ra.openElements.currentTagId===TAG_ID.OPTION&&Ra.openElements.pop();break}case TAG_ID.SELECT:{Ra.openElements.hasInSelectScope(TAG_ID.SELECT)&&(Ra.openElements.popUntilTagNamePopped(TAG_ID.SELECT),Ra._resetInsertionMode());break}case TAG_ID.TEMPLATE:{templateEndTagInHead(Ra,qa);break}}}function startTagInSelectInTable(Ra,qa){const rd=qa.tagID;rd===TAG_ID.CAPTION||rd===TAG_ID.TABLE||rd===TAG_ID.TBODY||rd===TAG_ID.TFOOT||rd===TAG_ID.THEAD||rd===TAG_ID.TR||rd===TAG_ID.TD||rd===TAG_ID.TH?(Ra.openElements.popUntilTagNamePopped(TAG_ID.SELECT),Ra._resetInsertionMode(),Ra._processStartTag(qa)):startTagInSelect(Ra,qa)}function endTagInSelectInTable(Ra,qa){const rd=qa.tagID;rd===TAG_ID.CAPTION||rd===TAG_ID.TABLE||rd===TAG_ID.TBODY||rd===TAG_ID.TFOOT||rd===TAG_ID.THEAD||rd===TAG_ID.TR||rd===TAG_ID.TD||rd===TAG_ID.TH?Ra.openElements.hasInTableScope(rd)&&(Ra.openElements.popUntilTagNamePopped(TAG_ID.SELECT),Ra._resetInsertionMode(),Ra.onEndTag(qa)):endTagInSelect(Ra,qa)}function startTagInTemplate(Ra,qa){switch(qa.tagID){case TAG_ID.BASE:case TAG_ID.BASEFONT:case TAG_ID.BGSOUND:case TAG_ID.LINK:case TAG_ID.META:case TAG_ID.NOFRAMES:case TAG_ID.SCRIPT:case TAG_ID.STYLE:case TAG_ID.TEMPLATE:case TAG_ID.TITLE:{startTagInHead(Ra,qa);break}case TAG_ID.CAPTION:case TAG_ID.COLGROUP:case TAG_ID.TBODY:case TAG_ID.TFOOT:case TAG_ID.THEAD:{Ra.tmplInsertionModeStack[0]=InsertionMode.IN_TABLE,Ra.insertionMode=InsertionMode.IN_TABLE,startTagInTable(Ra,qa);break}case TAG_ID.COL:{Ra.tmplInsertionModeStack[0]=InsertionMode.IN_COLUMN_GROUP,Ra.insertionMode=InsertionMode.IN_COLUMN_GROUP,startTagInColumnGroup(Ra,qa);break}case TAG_ID.TR:{Ra.tmplInsertionModeStack[0]=InsertionMode.IN_TABLE_BODY,Ra.insertionMode=InsertionMode.IN_TABLE_BODY,startTagInTableBody(Ra,qa);break}case TAG_ID.TD:case TAG_ID.TH:{Ra.tmplInsertionModeStack[0]=InsertionMode.IN_ROW,Ra.insertionMode=InsertionMode.IN_ROW,startTagInRow(Ra,qa);break}default:Ra.tmplInsertionModeStack[0]=InsertionMode.IN_BODY,Ra.insertionMode=InsertionMode.IN_BODY,startTagInBody(Ra,qa)}}function endTagInTemplate(Ra,qa){qa.tagID===TAG_ID.TEMPLATE&&templateEndTagInHead(Ra,qa)}function eofInTemplate(Ra,qa){Ra.openElements.tmplCount>0?(Ra.openElements.popUntilTagNamePopped(TAG_ID.TEMPLATE),Ra.activeFormattingElements.clearToLastMarker(),Ra.tmplInsertionModeStack.shift(),Ra._resetInsertionMode(),Ra.onEof(qa)):stopParsing(Ra,qa)}function startTagAfterBody(Ra,qa){qa.tagID===TAG_ID.HTML?startTagInBody(Ra,qa):tokenAfterBody(Ra,qa)}function endTagAfterBody(Ra,qa){var rd;if(qa.tagID===TAG_ID.HTML){if(Ra.fragmentContext||(Ra.insertionMode=InsertionMode.AFTER_AFTER_BODY),Ra.options.sourceCodeLocationInfo&&Ra.openElements.tagIDs[0]===TAG_ID.HTML){Ra._setEndLocation(Ra.openElements.items[0],qa);const sd=Ra.openElements.items[1];sd&&!(!((rd=Ra.treeAdapter.getNodeSourceCodeLocation(sd))===null||rd===void 0)&&rd.endTag)&&Ra._setEndLocation(sd,qa)}}else tokenAfterBody(Ra,qa)}function tokenAfterBody(Ra,qa){Ra.insertionMode=InsertionMode.IN_BODY,modeInBody(Ra,qa)}function startTagInFrameset(Ra,qa){switch(qa.tagID){case TAG_ID.HTML:{startTagInBody(Ra,qa);break}case TAG_ID.FRAMESET:{Ra._insertElement(qa,NS.HTML);break}case TAG_ID.FRAME:{Ra._appendElement(qa,NS.HTML),qa.ackSelfClosing=!0;break}case TAG_ID.NOFRAMES:{startTagInHead(Ra,qa);break}}}function endTagInFrameset(Ra,qa){qa.tagID===TAG_ID.FRAMESET&&!Ra.openElements.isRootHtmlElementCurrent()&&(Ra.openElements.pop(),!Ra.fragmentContext&&Ra.openElements.currentTagId!==TAG_ID.FRAMESET&&(Ra.insertionMode=InsertionMode.AFTER_FRAMESET))}function startTagAfterFrameset(Ra,qa){switch(qa.tagID){case TAG_ID.HTML:{startTagInBody(Ra,qa);break}case TAG_ID.NOFRAMES:{startTagInHead(Ra,qa);break}}}function endTagAfterFrameset(Ra,qa){qa.tagID===TAG_ID.HTML&&(Ra.insertionMode=InsertionMode.AFTER_AFTER_FRAMESET)}function startTagAfterAfterBody(Ra,qa){qa.tagID===TAG_ID.HTML?startTagInBody(Ra,qa):tokenAfterAfterBody(Ra,qa)}function tokenAfterAfterBody(Ra,qa){Ra.insertionMode=InsertionMode.IN_BODY,modeInBody(Ra,qa)}function startTagAfterAfterFrameset(Ra,qa){switch(qa.tagID){case TAG_ID.HTML:{startTagInBody(Ra,qa);break}case TAG_ID.NOFRAMES:{startTagInHead(Ra,qa);break}}}function nullCharacterInForeignContent(Ra,qa){qa.chars=REPLACEMENT_CHARACTER,Ra._insertCharacters(qa)}function characterInForeignContent(Ra,qa){Ra._insertCharacters(qa),Ra.framesetOk=!1}function popUntilHtmlOrIntegrationPoint(Ra){for(;Ra.treeAdapter.getNamespaceURI(Ra.openElements.current)!==NS.HTML&&!Ra._isIntegrationPoint(Ra.openElements.currentTagId,Ra.openElements.current);)Ra.openElements.pop()}function startTagInForeignContent(Ra,qa){if(causesExit(qa))popUntilHtmlOrIntegrationPoint(Ra),Ra._startTagOutsideForeignContent(qa);else{const rd=Ra._getAdjustedCurrentElement(),sd=Ra.treeAdapter.getNamespaceURI(rd);sd===NS.MATHML?adjustTokenMathMLAttrs(qa):sd===NS.SVG&&(adjustTokenSVGTagName(qa),adjustTokenSVGAttrs(qa)),adjustTokenXMLAttrs(qa),qa.selfClosing?Ra._appendElement(qa,sd):Ra._insertElement(qa,sd),qa.ackSelfClosing=!0}}function endTagInForeignContent(Ra,qa){if(qa.tagID===TAG_ID.P||qa.tagID===TAG_ID.BR){popUntilHtmlOrIntegrationPoint(Ra),Ra._endTagOutsideForeignContent(qa);return}for(let rd=Ra.openElements.stackTop;rd>0;rd--){const sd=Ra.openElements.items[rd];if(Ra.treeAdapter.getNamespaceURI(sd)===NS.HTML){Ra._endTagOutsideForeignContent(qa);break}const pd=Ra.treeAdapter.getTagName(sd);if(pd.toLowerCase()===qa.tagName){qa.tagName=pd,Ra.openElements.shortenToLength(rd);break}}}const VOID_ELEMENTS=new Set([TAG_NAMES.AREA,TAG_NAMES.BASE,TAG_NAMES.BASEFONT,TAG_NAMES.BGSOUND,TAG_NAMES.BR,TAG_NAMES.COL,TAG_NAMES.EMBED,TAG_NAMES.FRAME,TAG_NAMES.HR,TAG_NAMES.IMG,TAG_NAMES.INPUT,TAG_NAMES.KEYGEN,TAG_NAMES.LINK,TAG_NAMES.META,TAG_NAMES.PARAM,TAG_NAMES.SOURCE,TAG_NAMES.TRACK,TAG_NAMES.WBR]);function isVoidElement(Ra,qa){return qa.treeAdapter.isElementNode(Ra)&&qa.treeAdapter.getNamespaceURI(Ra)===NS.HTML&&VOID_ELEMENTS.has(qa.treeAdapter.getTagName(Ra))}const defaultOpts={treeAdapter:defaultTreeAdapter,scriptingEnabled:!0};function serializeOuter(Ra,qa){const rd={...defaultOpts,...qa};return serializeNode(Ra,rd)}function serializeChildNodes(Ra,qa){let rd="";const sd=qa.treeAdapter.isElementNode(Ra)&&qa.treeAdapter.getTagName(Ra)===TAG_NAMES.TEMPLATE&&qa.treeAdapter.getNamespaceURI(Ra)===NS.HTML?qa.treeAdapter.getTemplateContent(Ra):Ra,pd=qa.treeAdapter.getChildNodes(sd);if(pd)for(const fd of pd)rd+=serializeNode(fd,qa);return rd}function serializeNode(Ra,qa){return qa.treeAdapter.isElementNode(Ra)?serializeElement(Ra,qa):qa.treeAdapter.isTextNode(Ra)?serializeTextNode(Ra,qa):qa.treeAdapter.isCommentNode(Ra)?serializeCommentNode(Ra,qa):qa.treeAdapter.isDocumentTypeNode(Ra)?serializeDocumentTypeNode(Ra,qa):""}function serializeElement(Ra,qa){const rd=qa.treeAdapter.getTagName(Ra);return`<${rd}${serializeAttributes(Ra,qa)}>${isVoidElement(Ra,qa)?"":`${serializeChildNodes(Ra,qa)}`}`}function serializeAttributes(Ra,{treeAdapter:qa}){let rd="";for(const sd of qa.getAttrList(Ra)){if(rd+=" ",sd.namespace)switch(sd.namespace){case NS.XML:{rd+=`xml:${sd.name}`;break}case NS.XMLNS:{sd.name!=="xmlns"&&(rd+="xmlns:"),rd+=sd.name;break}case NS.XLINK:{rd+=`xlink:${sd.name}`;break}default:rd+=`${sd.prefix}:${sd.name}`}else rd+=sd.name;rd+=`="${escapeAttribute(sd.value)}"`}return rd}function serializeTextNode(Ra,qa){const{treeAdapter:rd}=qa,sd=rd.getTextNodeContent(Ra),pd=rd.getParentNode(Ra),fd=pd&&rd.isElementNode(pd)&&rd.getTagName(pd);return fd&&rd.getNamespaceURI(pd)===NS.HTML&&hasUnescapedText(fd,qa.scriptingEnabled)?sd:escapeText(sd)}function serializeCommentNode(Ra,{treeAdapter:qa}){return``}function serializeDocumentTypeNode(Ra,{treeAdapter:qa}){return``}function parse$5(Ra,qa){return Parser$2.parse(Ra,qa)}function parseFragment(Ra,qa,rd){typeof Ra=="string"&&(rd=qa,qa=Ra,Ra=null);const sd=Parser$2.getFragmentParser(Ra,rd);return sd.tokenizer.write(qa,!0),sd.getFragment()}function enquoteDoctypeId(Ra){const qa=Ra.includes('"')?"'":'"';return qa+Ra+qa}function serializeDoctypeContent(Ra,qa,rd){let sd="!DOCTYPE ";return Ra&&(sd+=Ra),qa?sd+=` PUBLIC ${enquoteDoctypeId(qa)}`:rd&&(sd+=" SYSTEM"),rd&&(sd+=` ${enquoteDoctypeId(rd)}`),sd}const adapter={isCommentNode:isComment,isElementNode:isTag,isTextNode:isText,createDocument(){const Ra=new Document([]);return Ra["x-mode"]=DOCUMENT_MODE.NO_QUIRKS,Ra},createDocumentFragment(){return new Document([])},createElement(Ra,qa,rd){const sd=Object.create(null),pd=Object.create(null),fd=Object.create(null);for(let md=0;mdisDirective(hd)&&hd.name==="!doctype");fd?fd.data=pd??null:(fd=new ProcessingInstruction("!doctype",pd),adapter.appendChild(Ra,fd)),fd["x-name"]=qa,fd["x-publicId"]=rd,fd["x-systemId"]=sd},setDocumentMode(Ra,qa){Ra["x-mode"]=qa},getDocumentMode(Ra){return Ra["x-mode"]},detachNode(Ra){if(Ra.parent){const qa=Ra.parent.children.indexOf(Ra),{prev:rd,next:sd}=Ra;Ra.prev=null,Ra.next=null,rd&&(rd.next=sd),sd&&(sd.prev=rd),Ra.parent.children.splice(qa,1),Ra.parent=null}},insertText(Ra,qa){const rd=Ra.children[Ra.children.length-1];rd&&isText(rd)?rd.data+=qa:adapter.appendChild(Ra,adapter.createTextNode(qa))},insertTextBefore(Ra,qa,rd){const sd=Ra.children[Ra.children.indexOf(rd)-1];sd&&isText(sd)?sd.data+=qa:adapter.insertBefore(Ra,adapter.createTextNode(qa),rd)},adoptAttributes(Ra,qa){for(let rd=0;rd=CharCodes.LowerA&&Ra<=CharCodes.LowerZ||Ra>=CharCodes.UpperA&&Ra<=CharCodes.UpperZ}var QuoteType;(function(Ra){Ra[Ra.NoValue=0]="NoValue",Ra[Ra.Unquoted=1]="Unquoted",Ra[Ra.Single=2]="Single",Ra[Ra.Double=3]="Double"})(QuoteType||(QuoteType={}));const Sequences={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101]),TextareaEnd:new Uint8Array([60,47,116,101,120,116,97,114,101,97])};class Tokenizer{constructor({xmlMode:qa=!1,decodeEntities:rd=!0},sd){this.cbs=sd,this.state=State$4.Text,this.buffer="",this.sectionStart=0,this.index=0,this.entityStart=0,this.baseState=State$4.Text,this.isSpecial=!1,this.running=!0,this.offset=0,this.currentSequence=void 0,this.sequenceIndex=0,this.xmlMode=qa,this.decodeEntities=rd,this.entityDecoder=new EntityDecoder(qa?xmlDecodeTree:htmlDecodeTree,(pd,fd)=>this.emitCodePoint(pd,fd))}reset(){this.state=State$4.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=State$4.Text,this.currentSequence=void 0,this.running=!0,this.offset=0}write(qa){this.offset+=this.buffer.length,this.buffer=qa,this.parse()}end(){this.running&&this.finish()}pause(){this.running=!1}resume(){this.running=!0,this.indexthis.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=State$4.BeforeTagName,this.sectionStart=this.index):this.decodeEntities&&qa===CharCodes.Amp&&this.startEntity()}stateSpecialStartSequence(qa){const rd=this.sequenceIndex===this.currentSequence.length;if(!(rd?isEndOfTagSection(qa):(qa|32)===this.currentSequence[this.sequenceIndex]))this.isSpecial=!1;else if(!rd){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=State$4.InTagName,this.stateInTagName(qa)}stateInSpecialTag(qa){if(this.sequenceIndex===this.currentSequence.length){if(qa===CharCodes.Gt||isWhitespace$2(qa)){const rd=this.index-this.currentSequence.length;if(this.sectionStart=0?(this.state=this.baseState,qa===0&&(this.index=this.entityStart)):this.index=this.offset+this.buffer.length-1}cleanup(){this.running&&this.sectionStart!==this.index&&(this.state===State$4.Text||this.state===State$4.InSpecialTag&&this.sequenceIndex===0?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):(this.state===State$4.InAttributeValueDq||this.state===State$4.InAttributeValueSq||this.state===State$4.InAttributeValueNq)&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))}shouldContinue(){return this.index=qa||(this.state===State$4.InCommentLike?this.currentSequence===Sequences.CdataEnd?this.cbs.oncdata(this.sectionStart,qa,0):this.cbs.oncomment(this.sectionStart,qa,0):this.state===State$4.InTagName||this.state===State$4.BeforeAttributeName||this.state===State$4.BeforeAttributeValue||this.state===State$4.AfterAttributeName||this.state===State$4.InAttributeName||this.state===State$4.InAttributeValueSq||this.state===State$4.InAttributeValueDq||this.state===State$4.InAttributeValueNq||this.state===State$4.InClosingTagName||this.cbs.ontext(this.sectionStart,qa))}emitCodePoint(qa,rd){this.baseState!==State$4.Text&&this.baseState!==State$4.InSpecialTag?(this.sectionStart0&&hd.has(this.stack[0]);){const md=this.stack.shift();(sd=(rd=this.cbs).onclosetag)===null||sd===void 0||sd.call(rd,md,!0)}this.isVoidElement(qa)||(this.stack.unshift(qa),this.htmlMode&&(foreignContextElements.has(qa)?this.foreignContext.unshift(!0):htmlIntegrationElements.has(qa)&&this.foreignContext.unshift(!1))),(fd=(pd=this.cbs).onopentagname)===null||fd===void 0||fd.call(pd,qa),this.cbs.onopentag&&(this.attribs={})}endOpenTag(qa){var rd,sd;this.startIndex=this.openTagStart,this.attribs&&((sd=(rd=this.cbs).onopentag)===null||sd===void 0||sd.call(rd,this.tagname,this.attribs,qa),this.attribs=null),this.cbs.onclosetag&&this.isVoidElement(this.tagname)&&this.cbs.onclosetag(this.tagname,!0),this.tagname=""}onopentagend(qa){this.endIndex=qa,this.endOpenTag(!1),this.startIndex=qa+1}onclosetag(qa,rd){var sd,pd,fd,hd,md,gd,yd,vd;this.endIndex=rd;let Nd=this.getSlice(qa,rd);if(this.lowerCaseTagNames&&(Nd=Nd.toLowerCase()),this.htmlMode&&(foreignContextElements.has(Nd)||htmlIntegrationElements.has(Nd))&&this.foreignContext.shift(),this.isVoidElement(Nd))this.htmlMode&&Nd==="br"&&((hd=(fd=this.cbs).onopentagname)===null||hd===void 0||hd.call(fd,"br"),(gd=(md=this.cbs).onopentag)===null||gd===void 0||gd.call(md,"br",{},!0),(vd=(yd=this.cbs).onclosetag)===null||vd===void 0||vd.call(yd,"br",!1));else{const Md=this.stack.indexOf(Nd);if(Md!==-1)for(let Ld=0;Ld<=Md;Ld++){const Fd=this.stack.shift();(pd=(sd=this.cbs).onclosetag)===null||pd===void 0||pd.call(sd,Fd,Ld!==Md)}else this.htmlMode&&Nd==="p"&&(this.emitOpenTag("p"),this.closeCurrentTag(!0))}this.startIndex=rd+1}onselfclosingtag(qa){this.endIndex=qa,this.recognizeSelfClosing||this.foreignContext[0]?(this.closeCurrentTag(!1),this.startIndex=qa+1):this.onopentagend(qa)}closeCurrentTag(qa){var rd,sd;const pd=this.tagname;this.endOpenTag(qa),this.stack[0]===pd&&((sd=(rd=this.cbs).onclosetag)===null||sd===void 0||sd.call(rd,pd,!qa),this.stack.shift())}onattribname(qa,rd){this.startIndex=qa;const sd=this.getSlice(qa,rd);this.attribname=this.lowerCaseAttributeNames?sd.toLowerCase():sd}onattribdata(qa,rd){this.attribvalue+=this.getSlice(qa,rd)}onattribentity(qa){this.attribvalue+=fromCodePoint(qa)}onattribend(qa,rd){var sd,pd;this.endIndex=rd,(pd=(sd=this.cbs).onattribute)===null||pd===void 0||pd.call(sd,this.attribname,this.attribvalue,qa===QuoteType.Double?'"':qa===QuoteType.Single?"'":qa===QuoteType.NoValue?void 0:null),this.attribs&&!Object.prototype.hasOwnProperty.call(this.attribs,this.attribname)&&(this.attribs[this.attribname]=this.attribvalue),this.attribvalue=""}getInstructionName(qa){const rd=qa.search(reNameEnd);let sd=rd<0?qa:qa.substr(0,rd);return this.lowerCaseTagNames&&(sd=sd.toLowerCase()),sd}ondeclaration(qa,rd){this.endIndex=rd;const sd=this.getSlice(qa,rd);if(this.cbs.onprocessinginstruction){const pd=this.getInstructionName(sd);this.cbs.onprocessinginstruction(`!${pd}`,`!${sd}`)}this.startIndex=rd+1}onprocessinginstruction(qa,rd){this.endIndex=rd;const sd=this.getSlice(qa,rd);if(this.cbs.onprocessinginstruction){const pd=this.getInstructionName(sd);this.cbs.onprocessinginstruction(`?${pd}`,`?${sd}`)}this.startIndex=rd+1}oncomment(qa,rd,sd){var pd,fd,hd,md;this.endIndex=rd,(fd=(pd=this.cbs).oncomment)===null||fd===void 0||fd.call(pd,this.getSlice(qa,rd-sd)),(md=(hd=this.cbs).oncommentend)===null||md===void 0||md.call(hd),this.startIndex=rd+1}oncdata(qa,rd,sd){var pd,fd,hd,md,gd,yd,vd,Nd,Md,Ld;this.endIndex=rd;const Fd=this.getSlice(qa,rd-sd);!this.htmlMode||this.options.recognizeCDATA?((fd=(pd=this.cbs).oncdatastart)===null||fd===void 0||fd.call(pd),(md=(hd=this.cbs).ontext)===null||md===void 0||md.call(hd,Fd),(yd=(gd=this.cbs).oncdataend)===null||yd===void 0||yd.call(gd)):((Nd=(vd=this.cbs).oncomment)===null||Nd===void 0||Nd.call(vd,`[CDATA[${Fd}]]`),(Ld=(Md=this.cbs).oncommentend)===null||Ld===void 0||Ld.call(Md)),this.startIndex=rd+1}onend(){var qa,rd;if(this.cbs.onclosetag){this.endIndex=this.startIndex;for(let sd=0;sd=this.buffers[0].length;)this.shiftBuffer();let sd=this.buffers[0].slice(qa-this.bufferOffset,rd-this.bufferOffset);for(;rd-this.bufferOffset>this.buffers[0].length;)this.shiftBuffer(),sd+=this.buffers[0].slice(0,rd-this.bufferOffset);return sd}shiftBuffer(){this.bufferOffset+=this.buffers[0].length,this.writeIndex--,this.buffers.shift()}write(qa){var rd,sd;if(this.ended){(sd=(rd=this.cbs).onerror)===null||sd===void 0||sd.call(rd,new Error(".write() after done!"));return}this.buffers.push(qa),this.tokenizer.running&&(this.tokenizer.write(qa),this.writeIndex++)}end(qa){var rd,sd;if(this.ended){(sd=(rd=this.cbs).onerror)===null||sd===void 0||sd.call(rd,new Error(".end() after done!"));return}qa&&this.write(qa),this.ended=!0,this.tokenizer.end()}pause(){this.tokenizer.pause()}resume(){for(this.tokenizer.resume();this.tokenizer.running&&this.writeIndexqa._useHtmlParser2?parseDocument(Ra,qa):parseWithParse5(Ra,qa,rd,sd)),load$3=getLoad(parse$4,(Ra,qa)=>qa._useHtmlParser2?render$3(Ra,qa):renderWithParse5(Ra)),browser$2=Object.freeze(Object.defineProperty({__proto__:null,contains:contains$1,load:load$3,merge:merge$6},Symbol.toStringTag,{value:"Module"})),require$$0$2=getAugmentedNamespace(browser$2);var utils$4={},lexer={exports:{}},debug={exports:{}};(function(Ra,qa){var rd={version:"v20.18.3",versions:{node:"20.18.3",acorn:"8.14.0",ada:"2.9.2",ares:"1.34.4",base64:"0.5.2",brotli:"1.1.0",cjs_module_lexer:"1.4.1",cldr:"45.0",icu:"75.1",llhttp:"8.1.2",modules:"115",napi:"9",nghttp2:"1.61.0",nghttp3:"0.7.0",ngtcp2:"1.1.0",openssl:"3.0.15+quic",simdutf:"5.6.4",tz:"2024b",undici:"6.21.1",unicode:"15.1",uv:"1.46.0",uvwasi:"0.0.21",v8:"11.3.244.8-node.25",zlib:"1.3.0.1-motley-82a5fec"},arch:"x64",platform:"linux",release:{name:"node",lts:"Iron",sourceUrl:"https://nodejs.org/download/release/v20.18.3/node-v20.18.3.tar.gz",headersUrl:"https://nodejs.org/download/release/v20.18.3/node-v20.18.3-headers.tar.gz"},moduleLoadList:["Internal Binding builtins","Internal Binding module_wrap","Internal Binding errors","NativeModule internal/assert","Internal Binding util","NativeModule internal/errors","Internal Binding config","Internal Binding timers","Internal Binding async_wrap","Internal Binding task_queue","Internal Binding symbols","NativeModule internal/async_hooks","Internal Binding constants","Internal Binding types","Internal Binding options","NativeModule internal/options","Internal Binding string_decoder","NativeModule internal/util","NativeModule internal/util/types","NativeModule internal/validators","NativeModule internal/linkedlist","NativeModule internal/priority_queue","Internal Binding icu","NativeModule internal/util/inspect","NativeModule internal/util/debuglog","NativeModule internal/timers","NativeModule internal/events/abort_listener","NativeModule events","Internal Binding buffer","NativeModule internal/buffer","NativeModule buffer","Internal Binding messaging","NativeModule internal/worker/js_transferable","NativeModule internal/querystring","NativeModule internal/constants","NativeModule path","NativeModule querystring","Internal Binding url","NativeModule internal/url","NativeModule internal/fs/utils","Internal Binding process_methods","NativeModule internal/process/per_thread","Internal Binding credentials","NativeModule internal/process/promises","NativeModule internal/fixed_queue","NativeModule async_hooks","NativeModule internal/process/task_queues","NativeModule timers","Internal Binding trace_events","Internal Binding contextify","NativeModule internal/vm","NativeModule internal/process/execution","NativeModule internal/process/warning","NativeModule internal/source_map/source_map_cache","Internal Binding fs","Internal Binding blob","Internal Binding encoding_binding","NativeModule internal/encoding","NativeModule internal/streams/utils","NativeModule util","NativeModule internal/webstreams/util","NativeModule internal/webstreams/queuingstrategies","NativeModule internal/blob","Internal Binding permission","NativeModule internal/process/permission","NativeModule fs","NativeModule internal/modules/helpers","NativeModule internal/console/constructor","NativeModule internal/console/global","NativeModule internal/util/inspector","Internal Binding inspector","NativeModule internal/webidl","Internal Binding performance","NativeModule internal/perf/utils","NativeModule internal/event_target","Internal Binding wasm_web_api","Internal Binding mksnapshot","NativeModule internal/v8/startup_snapshot","NativeModule internal/process/signal","NativeModule url","NativeModule internal/modules/package_json_reader","NativeModule internal/modules/cjs/loader","NativeModule internal/process/pre_execution","NativeModule internal/modules/esm/utils","NativeModule internal/inspector_async_hook","Internal Binding worker","NativeModule internal/modules/run_main","NativeModule internal/net","NativeModule internal/dns/utils","NativeModule internal/modules/esm/assert","NativeModule internal/modules/esm/loader","NativeModule internal/modules/esm/module_map","NativeModule internal/modules/esm/translators","NativeModule internal/modules/esm/package_config","NativeModule internal/modules/esm/formats","NativeModule internal/modules/esm/get_format","NativeModule internal/modules/esm/resolve","NativeModule internal/modules/esm/module_job","NativeModule internal/modules/esm/load","Internal Binding fs_dir","NativeModule internal/fs/dir","NativeModule string_decoder","Internal Binding fs_event_wrap","Internal Binding uv","NativeModule internal/fs/watchers","NativeModule internal/fs/recursive_watch","NativeModule internal/readline/utils","NativeModule internal/readline/callbacks","NativeModule internal/readline/interface","NativeModule internal/fs/promises","NativeModule internal/perf/performance_entry","NativeModule internal/perf/observe","NativeModule internal/perf/resource_timing","NativeModule internal/perf/nodetiming","NativeModule internal/perf/usertiming","NativeModule internal/perf/event_loop_utilization","NativeModule internal/histogram","NativeModule internal/perf/timerify","NativeModule internal/perf/performance","NativeModule internal/perf/event_loop_delay","NativeModule perf_hooks","NativeModule internal/modules/esm/initialize_import_meta","NativeModule internal/streams/destroy","NativeModule internal/abort_controller","NativeModule internal/streams/end-of-stream","NativeModule internal/streams/legacy","NativeModule internal/streams/add-abort-signal","NativeModule internal/streams/state","NativeModule internal/streams/from","NativeModule internal/streams/readable","NativeModule internal/streams/writable","NativeModule internal/streams/duplex","NativeModule internal/streams/pipeline","NativeModule internal/streams/compose","NativeModule internal/streams/operators","NativeModule stream/promises","NativeModule internal/streams/transform","NativeModule internal/streams/passthrough","NativeModule internal/streams/duplexpair","NativeModule stream","NativeModule internal/fs/streams","NativeModule fs/promises","NativeModule internal/util/parse_args/utils","NativeModule internal/util/parse_args/parse_args","NativeModule internal/mime","NativeModule internal/source_map/source_map","NativeModule module","Internal Binding crypto","NativeModule internal/crypto/random","NativeModule internal/crypto/hashnames","NativeModule internal/crypto/util","NativeModule internal/crypto/pbkdf2","NativeModule internal/crypto/scrypt","NativeModule internal/crypto/keys","NativeModule internal/crypto/hkdf","NativeModule internal/crypto/keygen","NativeModule internal/crypto/diffiehellman","NativeModule internal/streams/lazy_transform","NativeModule internal/crypto/cipher","NativeModule internal/crypto/sig","NativeModule internal/crypto/hash","NativeModule internal/crypto/x509","NativeModule internal/crypto/certificate","NativeModule crypto","NativeModule internal/crypto/webcrypto","Internal Binding stream_wrap","Internal Binding tcp_wrap","Internal Binding pipe_wrap","NativeModule internal/stream_base_commons","NativeModule diagnostics_channel","NativeModule net","Internal Binding tty_wrap","NativeModule internal/tty","NativeModule tty","NativeModule internal/deps/cjs-module-lexer/dist/lexer","Internal Binding udp_wrap","NativeModule internal/dgram","NativeModule dgram","Internal Binding process_wrap","NativeModule internal/socket_list","Internal Binding spawn_sync","NativeModule internal/child_process","NativeModule child_process","NativeModule _http_agent","Internal Binding http_parser","NativeModule internal/freelist","NativeModule _http_incoming","NativeModule _http_common","NativeModule internal/http","NativeModule _http_outgoing","NativeModule _http_client","NativeModule _http_server","NativeModule http","Internal Binding cares_wrap","NativeModule internal/tls/secure-context","NativeModule _tls_common","Internal Binding js_stream","NativeModule internal/js_stream_socket","Internal Binding tls_wrap","NativeModule _tls_wrap","NativeModule internal/tls/secure-pair","NativeModule tls","NativeModule https","Internal Binding block_list","NativeModule internal/socketaddress","NativeModule internal/blocklist","Internal Binding os","NativeModule os","NativeModule internal/dns/callback_resolver","NativeModule dns","NativeModule internal/dns/promises","NativeModule internal/util/colors","NativeModule internal/assert/assertion_error","NativeModule internal/assert/utils","NativeModule internal/assert/calltracker","NativeModule assert","Internal Binding serdes","Internal Binding profiler","Internal Binding heap_utils","Internal Binding internal_only_v8","NativeModule internal/heap_utils","NativeModule internal/promise_hooks","Internal Binding v8","NativeModule v8","NativeModule internal/worker/io","NativeModule internal/error_serdes","NativeModule internal/worker","NativeModule worker_threads","NativeModule internal/file","NativeModule internal/readline/emitKeypressEvents","NativeModule internal/readline/promises","NativeModule readline/promises","NativeModule readline","Internal Binding zlib","NativeModule zlib","NativeModule process","Internal Binding report","NativeModule internal/process/report","NativeModule constants","NativeModule internal/crypto/webidl"],_events:{newListener:[null,null],removeListener:[null,null]},_eventsCount:3,domain:null,_exiting:!1,config:{target_defaults:{cflags:[],default_configuration:"Release",defines:["NODE_OPENSSL_CONF_NAME=nodejs_conf","NODE_OPENSSL_HAS_QUIC","ICU_NO_USER_DATA_OVERRIDE"],include_dirs:[],libraries:[]},variables:{asan:0,clang:0,coverage:!1,dcheck_always_on:0,debug_nghttp2:!1,debug_node:!1,enable_lto:!1,enable_pgo_generate:!1,enable_pgo_use:!1,error_on_warn:!1,force_dynamic_crt:0,gas_version:"2.35",host_arch:"x64",icu_data_in:"../../deps/icu-tmp/icudt75l.dat",icu_endianness:"l",icu_gyp_path:"tools/icu/icu-generic.gyp",icu_path:"deps/icu-small",icu_small:!1,icu_ver_major:"75",is_debug:0,libdir:"lib",llvm_version:"0.0",napi_build_version:"9",node_builtin_shareable_builtins:["deps/cjs-module-lexer/lexer.js","deps/cjs-module-lexer/dist/lexer.js","deps/undici/undici.js"],node_byteorder:"little",node_debug_lib:!1,node_enable_d8:!1,node_enable_v8_vtunejit:!1,node_fipsinstall:!1,node_install_corepack:!0,node_install_npm:!0,node_library_files:["lib/_http_agent.js","lib/_http_client.js","lib/_http_common.js","lib/_http_incoming.js","lib/_http_outgoing.js","lib/_http_server.js","lib/_stream_duplex.js","lib/_stream_passthrough.js","lib/_stream_readable.js","lib/_stream_transform.js","lib/_stream_wrap.js","lib/_stream_writable.js","lib/_tls_common.js","lib/_tls_wrap.js","lib/assert.js","lib/assert/strict.js","lib/async_hooks.js","lib/buffer.js","lib/child_process.js","lib/cluster.js","lib/console.js","lib/constants.js","lib/crypto.js","lib/dgram.js","lib/diagnostics_channel.js","lib/dns.js","lib/dns/promises.js","lib/domain.js","lib/events.js","lib/fs.js","lib/fs/promises.js","lib/http.js","lib/http2.js","lib/https.js","lib/inspector.js","lib/inspector/promises.js","lib/internal/abort_controller.js","lib/internal/assert.js","lib/internal/assert/assertion_error.js","lib/internal/assert/calltracker.js","lib/internal/assert/utils.js","lib/internal/async_hooks.js","lib/internal/blob.js","lib/internal/blocklist.js","lib/internal/bootstrap/node.js","lib/internal/bootstrap/realm.js","lib/internal/bootstrap/shadow_realm.js","lib/internal/bootstrap/switches/does_not_own_process_state.js","lib/internal/bootstrap/switches/does_own_process_state.js","lib/internal/bootstrap/switches/is_main_thread.js","lib/internal/bootstrap/switches/is_not_main_thread.js","lib/internal/bootstrap/web/exposed-wildcard.js","lib/internal/bootstrap/web/exposed-window-or-worker.js","lib/internal/buffer.js","lib/internal/child_process.js","lib/internal/child_process/serialization.js","lib/internal/cli_table.js","lib/internal/cluster/child.js","lib/internal/cluster/primary.js","lib/internal/cluster/round_robin_handle.js","lib/internal/cluster/shared_handle.js","lib/internal/cluster/utils.js","lib/internal/cluster/worker.js","lib/internal/console/constructor.js","lib/internal/console/global.js","lib/internal/constants.js","lib/internal/crypto/aes.js","lib/internal/crypto/certificate.js","lib/internal/crypto/cfrg.js","lib/internal/crypto/cipher.js","lib/internal/crypto/diffiehellman.js","lib/internal/crypto/ec.js","lib/internal/crypto/hash.js","lib/internal/crypto/hashnames.js","lib/internal/crypto/hkdf.js","lib/internal/crypto/keygen.js","lib/internal/crypto/keys.js","lib/internal/crypto/mac.js","lib/internal/crypto/pbkdf2.js","lib/internal/crypto/random.js","lib/internal/crypto/rsa.js","lib/internal/crypto/scrypt.js","lib/internal/crypto/sig.js","lib/internal/crypto/util.js","lib/internal/crypto/webcrypto.js","lib/internal/crypto/webidl.js","lib/internal/crypto/x509.js","lib/internal/debugger/inspect.js","lib/internal/debugger/inspect_client.js","lib/internal/debugger/inspect_repl.js","lib/internal/dgram.js","lib/internal/dns/callback_resolver.js","lib/internal/dns/promises.js","lib/internal/dns/utils.js","lib/internal/encoding.js","lib/internal/error_serdes.js","lib/internal/errors.js","lib/internal/event_target.js","lib/internal/events/abort_listener.js","lib/internal/events/symbols.js","lib/internal/file.js","lib/internal/fixed_queue.js","lib/internal/freelist.js","lib/internal/freeze_intrinsics.js","lib/internal/fs/cp/cp-sync.js","lib/internal/fs/cp/cp.js","lib/internal/fs/dir.js","lib/internal/fs/promises.js","lib/internal/fs/read/context.js","lib/internal/fs/recursive_watch.js","lib/internal/fs/rimraf.js","lib/internal/fs/streams.js","lib/internal/fs/sync_write_stream.js","lib/internal/fs/utils.js","lib/internal/fs/watchers.js","lib/internal/heap_utils.js","lib/internal/histogram.js","lib/internal/http.js","lib/internal/http2/compat.js","lib/internal/http2/core.js","lib/internal/http2/util.js","lib/internal/inspector_async_hook.js","lib/internal/inspector_network_tracking.js","lib/internal/js_stream_socket.js","lib/internal/legacy/processbinding.js","lib/internal/linkedlist.js","lib/internal/main/check_syntax.js","lib/internal/main/embedding.js","lib/internal/main/eval_stdin.js","lib/internal/main/eval_string.js","lib/internal/main/inspect.js","lib/internal/main/mksnapshot.js","lib/internal/main/print_help.js","lib/internal/main/prof_process.js","lib/internal/main/repl.js","lib/internal/main/run_main_module.js","lib/internal/main/test_runner.js","lib/internal/main/watch_mode.js","lib/internal/main/worker_thread.js","lib/internal/mime.js","lib/internal/modules/cjs/loader.js","lib/internal/modules/esm/assert.js","lib/internal/modules/esm/create_dynamic_module.js","lib/internal/modules/esm/fetch_module.js","lib/internal/modules/esm/formats.js","lib/internal/modules/esm/get_format.js","lib/internal/modules/esm/hooks.js","lib/internal/modules/esm/initialize_import_meta.js","lib/internal/modules/esm/load.js","lib/internal/modules/esm/loader.js","lib/internal/modules/esm/module_job.js","lib/internal/modules/esm/module_map.js","lib/internal/modules/esm/package_config.js","lib/internal/modules/esm/resolve.js","lib/internal/modules/esm/shared_constants.js","lib/internal/modules/esm/translators.js","lib/internal/modules/esm/utils.js","lib/internal/modules/esm/worker.js","lib/internal/modules/helpers.js","lib/internal/modules/package_json_reader.js","lib/internal/modules/run_main.js","lib/internal/navigator.js","lib/internal/net.js","lib/internal/options.js","lib/internal/per_context/domexception.js","lib/internal/per_context/messageport.js","lib/internal/per_context/primordials.js","lib/internal/perf/event_loop_delay.js","lib/internal/perf/event_loop_utilization.js","lib/internal/perf/nodetiming.js","lib/internal/perf/observe.js","lib/internal/perf/performance.js","lib/internal/perf/performance_entry.js","lib/internal/perf/resource_timing.js","lib/internal/perf/timerify.js","lib/internal/perf/usertiming.js","lib/internal/perf/utils.js","lib/internal/policy/manifest.js","lib/internal/policy/sri.js","lib/internal/priority_queue.js","lib/internal/process/execution.js","lib/internal/process/per_thread.js","lib/internal/process/permission.js","lib/internal/process/policy.js","lib/internal/process/pre_execution.js","lib/internal/process/promises.js","lib/internal/process/report.js","lib/internal/process/signal.js","lib/internal/process/task_queues.js","lib/internal/process/warning.js","lib/internal/process/worker_thread_only.js","lib/internal/promise_hooks.js","lib/internal/querystring.js","lib/internal/readline/callbacks.js","lib/internal/readline/emitKeypressEvents.js","lib/internal/readline/interface.js","lib/internal/readline/promises.js","lib/internal/readline/utils.js","lib/internal/repl.js","lib/internal/repl/await.js","lib/internal/repl/history.js","lib/internal/repl/utils.js","lib/internal/socket_list.js","lib/internal/socketaddress.js","lib/internal/source_map/prepare_stack_trace.js","lib/internal/source_map/source_map.js","lib/internal/source_map/source_map_cache.js","lib/internal/stream_base_commons.js","lib/internal/streams/add-abort-signal.js","lib/internal/streams/compose.js","lib/internal/streams/destroy.js","lib/internal/streams/duplex.js","lib/internal/streams/duplexify.js","lib/internal/streams/duplexpair.js","lib/internal/streams/end-of-stream.js","lib/internal/streams/from.js","lib/internal/streams/lazy_transform.js","lib/internal/streams/legacy.js","lib/internal/streams/operators.js","lib/internal/streams/passthrough.js","lib/internal/streams/pipeline.js","lib/internal/streams/readable.js","lib/internal/streams/state.js","lib/internal/streams/transform.js","lib/internal/streams/utils.js","lib/internal/streams/writable.js","lib/internal/test/binding.js","lib/internal/test/transfer.js","lib/internal/test_runner/coverage.js","lib/internal/test_runner/harness.js","lib/internal/test_runner/mock/loader.js","lib/internal/test_runner/mock/mock.js","lib/internal/test_runner/mock/mock_timers.js","lib/internal/test_runner/reporter/dot.js","lib/internal/test_runner/reporter/junit.js","lib/internal/test_runner/reporter/lcov.js","lib/internal/test_runner/reporter/spec.js","lib/internal/test_runner/reporter/tap.js","lib/internal/test_runner/reporter/utils.js","lib/internal/test_runner/reporter/v8-serializer.js","lib/internal/test_runner/runner.js","lib/internal/test_runner/test.js","lib/internal/test_runner/tests_stream.js","lib/internal/test_runner/utils.js","lib/internal/timers.js","lib/internal/tls/secure-context.js","lib/internal/tls/secure-pair.js","lib/internal/trace_events_async_hooks.js","lib/internal/tty.js","lib/internal/url.js","lib/internal/util.js","lib/internal/util/colors.js","lib/internal/util/comparisons.js","lib/internal/util/debuglog.js","lib/internal/util/embedding.js","lib/internal/util/inspect.js","lib/internal/util/inspector.js","lib/internal/util/iterable_weak_map.js","lib/internal/util/parse_args/parse_args.js","lib/internal/util/parse_args/utils.js","lib/internal/util/types.js","lib/internal/v8/startup_snapshot.js","lib/internal/v8_prof_polyfill.js","lib/internal/v8_prof_processor.js","lib/internal/validators.js","lib/internal/vm.js","lib/internal/vm/module.js","lib/internal/wasm_web_api.js","lib/internal/watch_mode/files_watcher.js","lib/internal/watchdog.js","lib/internal/webidl.js","lib/internal/webstreams/adapters.js","lib/internal/webstreams/compression.js","lib/internal/webstreams/encoding.js","lib/internal/webstreams/queuingstrategies.js","lib/internal/webstreams/readablestream.js","lib/internal/webstreams/transfer.js","lib/internal/webstreams/transformstream.js","lib/internal/webstreams/util.js","lib/internal/webstreams/writablestream.js","lib/internal/worker.js","lib/internal/worker/io.js","lib/internal/worker/js_transferable.js","lib/module.js","lib/net.js","lib/os.js","lib/path.js","lib/path/posix.js","lib/path/win32.js","lib/perf_hooks.js","lib/process.js","lib/punycode.js","lib/querystring.js","lib/readline.js","lib/readline/promises.js","lib/repl.js","lib/sea.js","lib/stream.js","lib/stream/consumers.js","lib/stream/promises.js","lib/stream/web.js","lib/string_decoder.js","lib/sys.js","lib/test.js","lib/test/reporters.js","lib/timers.js","lib/timers/promises.js","lib/tls.js","lib/trace_events.js","lib/tty.js","lib/url.js","lib/util.js","lib/util/types.js","lib/v8.js","lib/vm.js","lib/wasi.js","lib/worker_threads.js","lib/zlib.js"],node_module_version:115,node_no_browser_globals:!1,node_prefix:"/",node_release_urlbase:"https://nodejs.org/download/release/",node_section_ordering_info:"",node_shared:!1,node_shared_ada:!1,node_shared_brotli:!1,node_shared_cares:!1,node_shared_http_parser:!1,node_shared_libuv:!1,node_shared_nghttp2:!1,node_shared_nghttp3:!1,node_shared_ngtcp2:!1,node_shared_openssl:!1,node_shared_simdjson:!1,node_shared_simdutf:!1,node_shared_uvwasi:!1,node_shared_zlib:!1,node_tag:"",node_target_type:"executable",node_use_bundled_v8:!0,node_use_node_code_cache:!0,node_use_node_snapshot:!0,node_use_openssl:!0,node_use_v8_platform:!0,node_with_ltcg:!1,node_without_node_options:!1,node_write_snapshot_as_array_literals:!1,openssl_is_fips:!1,openssl_quic:!0,ossfuzz:!1,shlib_suffix:"so.115",single_executable_application:!0,target_arch:"x64",ubsan:0,use_prefix_to_find_headers:!1,v8_enable_31bit_smis_on_64bit_arch:0,v8_enable_extensible_ro_snapshot:0,v8_enable_gdbjit:0,v8_enable_hugepage:0,v8_enable_i18n_support:1,v8_enable_inspector:1,v8_enable_javascript_promise_hooks:1,v8_enable_lite_mode:0,v8_enable_maglev:0,v8_enable_object_print:1,v8_enable_pointer_compression:0,v8_enable_sandbox:0,v8_enable_shared_ro_heap:1,v8_enable_short_builtin_calls:1,v8_enable_v8_checks:0,v8_enable_webassembly:1,v8_no_strict_aliasing:1,v8_optimized_debug:1,v8_promise_internal_field_count:1,v8_random_seed:0,v8_trace_maps:0,v8_use_siphash:1,want_separate_host_toolset:0}},allowedNodeEnvironmentFlags:{},features:{inspector:!0,debug:!1,uv:!0,ipv6:!0,tls_alpn:!0,tls_sni:!0,tls_ocsp:!0,tls:!0,cached_builtins:!0},sourceMapsEnabled:!1,stdout:{connecting:!1,_hadError:!1,_parent:null,_host:null,_closeAfterHandlingError:!1,_events:{},_readableState:{highWaterMark:16384,buffer:[],bufferIndex:0,length:0,pipes:[],awaitDrainWriters:null,readable:!1},_writableState:{highWaterMark:16384,length:0,corked:0,writelen:0,bufferedIndex:0,pendingcb:0},allowHalfOpen:!1,_eventsCount:1,_sockname:null,_pendingData:null,_pendingEncoding:"",server:null,_server:null,_type:"pipe",fd:1,_isStdio:!0},stdin:{connecting:!1,_hadError:!1,_parent:null,_host:null,_closeAfterHandlingError:!1,_events:{},_readableState:{highWaterMark:16384,buffer:[],bufferIndex:0,length:0,pipes:[],awaitDrainWriters:null},_writableState:{highWaterMark:16384,length:0,corked:0,writelen:0,bufferedIndex:0,pendingcb:0},allowHalfOpen:!1,_eventsCount:2,_sockname:null,_pendingData:null,_pendingEncoding:"",server:null,_server:null,fd:0},stderr:{connecting:!1,_hadError:!1,_parent:null,_host:null,_closeAfterHandlingError:!1,_events:{},_readableState:{highWaterMark:16384,buffer:[],bufferIndex:0,length:0,pipes:[],awaitDrainWriters:null,readable:!1},_writableState:{highWaterMark:16384,length:0,corked:0,writelen:0,bufferedIndex:0,pendingcb:0},allowHalfOpen:!1,_eventsCount:1,_sockname:null,_pendingData:null,_pendingEncoding:"",server:null,_server:null,_type:"pipe",fd:2,_isStdio:!0},env:{GITHUB_STATE:"/home/runner/work/_temp/_runner_file_commands/save_state_18a51caf-e5c9-4051-9c6d-047b16202017",STATS_TRP:"true",DEPLOYMENT_BASEPATH:"/opt/runner",DOTNET_NOLOGO:"1",USER:"runner",npm_config_user_agent:"npm/10.8.2 node/v20.18.3 linux x64 workspaces/false ci/github-actions",CI:"true",RUNNER_ENVIRONMENT:"github-hosted",GITHUB_ENV:"/home/runner/work/_temp/_runner_file_commands/set_env_18a51caf-e5c9-4051-9c6d-047b16202017",PIPX_HOME:"/opt/pipx",npm_node_execpath:"/opt/hostedtoolcache/node/20.18.3/x64/bin/node",JAVA_HOME_8_X64:"/usr/lib/jvm/temurin-8-jdk-amd64",SHLVL:"1",npm_config_noproxy:"",HOME:"/home/runner",RUNNER_TEMP:"/home/runner/work/_temp",GITHUB_EVENT_PATH:"/home/runner/work/_temp/_github_workflow/event.json",npm_package_json:"/home/runner/work/md/md/package.json",JAVA_HOME_11_X64:"/usr/lib/jvm/temurin-11-jdk-amd64",PIPX_BIN_DIR:"/opt/pipx_bin",GITHUB_REPOSITORY_OWNER:"doocs",GRADLE_HOME:"/usr/share/gradle-8.12.1",ANDROID_NDK_LATEST_HOME:"/usr/local/lib/android/sdk/ndk/28.0.13004108",JAVA_HOME_21_X64:"/usr/lib/jvm/temurin-21-jdk-amd64",STATS_RDCL:"true",GITHUB_RETENTION_DAYS:"90",GITHUB_REPOSITORY_OWNER_ID:"43716716",POWERSHELL_DISTRIBUTION_CHANNEL:"GitHub-Actions-ubuntu24",AZURE_EXTENSION_DIR:"/opt/az/azcliextensions",GITHUB_HEAD_REF:"",npm_config_userconfig:"/home/runner/.npmrc",npm_config_local_prefix:"/home/runner/work/md/md",SYSTEMD_EXEC_PID:"830",GITHUB_GRAPHQL_URL:"https://api.github.com/graphql",COLOR:"0",NVM_DIR:"/home/runner/.nvm",DOTNET_SKIP_FIRST_TIME_EXPERIENCE:"1",GOROOT_1_21_X64:"/opt/hostedtoolcache/go/1.21.13/x64",JAVA_HOME_17_X64:"/usr/lib/jvm/temurin-17-jdk-amd64",ImageVersion:"20250223.1.0",RUNNER_OS:"Linux",GITHUB_API_URL:"https://api.github.com",GOROOT_1_22_X64:"/opt/hostedtoolcache/go/1.22.12/x64",SWIFT_PATH:"/usr/share/swift/usr/bin",RUNNER_USER:"runner",STATS_V3PS:"true",CHROMEWEBDRIVER:"/usr/local/share/chromedriver-linux64",GOROOT_1_23_X64:"/opt/hostedtoolcache/go/1.23.6/x64",JOURNAL_STREAM:"8:7475",GITHUB_WORKFLOW:"Build and Deploy",_:"/opt/hostedtoolcache/node/20.18.3/x64/bin/npm",npm_config_prefix:"/opt/hostedtoolcache/node/20.18.3/x64",npm_config_npm_version:"10.8.2",MEMORY_PRESSURE_WATCH:"/sys/fs/cgroup/system.slice/runner-provisioner.service/memory.pressure",ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE:"/opt/actionarchivecache",STATS_D:"true",GITHUB_RUN_ID:"13615010219",STATS_VMFE:"true",npm_config_cache:"/home/runner/.npm",GITHUB_REF_TYPE:"branch",BOOTSTRAP_HASKELL_NONINTERACTIVE:"1",GITHUB_WORKFLOW_SHA:"757697bf0a09df0bac18ef9292efbd16190f9623",GITHUB_BASE_REF:"",ImageOS:"ubuntu24",GITHUB_WORKFLOW_REF:"doocs/md/.github/workflows/build.yml@refs/heads/main",PERFLOG_LOCATION_SETTING:"RUNNER_PERFLOG",GITHUB_ACTION_REPOSITORY:"",npm_config_node_gyp:"/opt/hostedtoolcache/node/20.18.3/x64/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",PATH:"/home/runner/work/md/md/node_modules/.bin:/home/runner/work/md/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/20.18.3/x64/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/home/runner/work/md/md/node_modules/.bin:/home/runner/work/md/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/20.18.3/x64/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/opt/hostedtoolcache/node/20.18.3/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin",ANT_HOME:"/usr/share/ant",DOTNET_MULTILEVEL_LOOKUP:"0",RUNNER_TRACKING_ID:"github_1fb27123-8112-41d5-8496-e07ab36dd844",INVOCATION_ID:"e834f6d4e33e4a03b891bf70cc20a8b3",RUNNER_TOOL_CACHE:"/opt/hostedtoolcache",NODE:"/opt/hostedtoolcache/node/20.18.3/x64/bin/node",npm_package_name:"md",GITHUB_ACTION:"__run_2",GITHUB_RUN_NUMBER:"501",GITHUB_TRIGGERING_ACTOR:"yanglbme",RUNNER_ARCH:"X64",XDG_RUNTIME_DIR:"/run/user/1001",AGENT_TOOLSDIRECTORY:"/opt/hostedtoolcache",LANG:"C.UTF-8",VCPKG_INSTALLATION_ROOT:"/usr/local/share/vcpkg",CONDA:"/usr/share/miniconda",RUNNER_NAME:"GitHub Actions 4",XDG_CONFIG_HOME:"/home/runner/.config",STATS_VMD:"true",GITHUB_REF_NAME:"main",GITHUB_REPOSITORY:"doocs/md",STATS_D_D:"true",npm_lifecycle_script:"vite build",STATS_UE:"true",ANDROID_NDK_ROOT:"/usr/local/lib/android/sdk/ndk/27.2.12479018",GITHUB_ACTION_REF:"",DEBIAN_FRONTEND:"noninteractive",GITHUB_REPOSITORY_ID:"218952803",GITHUB_ACTIONS:"true",STATS_PIP:"false",npm_package_version:"1.6.0",npm_lifecycle_event:"build:only",GITHUB_REF_PROTECTED:"true",GITHUB_WORKSPACE:"/home/runner/work/md/md",ACCEPT_EULA:"Y",GITHUB_JOB:"build-and-deploy",RUNNER_PERFLOG:"/home/runner/perflog",GITHUB_SHA:"757697bf0a09df0bac18ef9292efbd16190f9623",GITHUB_RUN_ATTEMPT:"1",STATS_D_TC:"true",GITHUB_REF:"refs/heads/main",GITHUB_ACTOR:"yanglbme",ANDROID_SDK_ROOT:"/usr/local/lib/android/sdk",npm_config_globalconfig:"/opt/hostedtoolcache/node/20.18.3/x64/etc/npmrc",npm_config_init_module:"/home/runner/.npm-init.js",GITHUB_PATH:"/home/runner/work/_temp/_runner_file_commands/add_path_18a51caf-e5c9-4051-9c6d-047b16202017",JAVA_HOME:"/usr/lib/jvm/temurin-17-jdk-amd64",PWD:"/home/runner/work/md/md",GITHUB_ACTOR_ID:"21008209",RUNNER_WORKSPACE:"/home/runner/work/md",npm_execpath:"/opt/hostedtoolcache/node/20.18.3/x64/lib/node_modules/npm/bin/npm-cli.js",HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS:"3650",GITHUB_EVENT_NAME:"push",HOMEBREW_NO_AUTO_UPDATE:"1",ANDROID_HOME:"/usr/local/lib/android/sdk",GITHUB_SERVER_URL:"https://github.com",GECKOWEBDRIVER:"/usr/local/share/gecko_driver",GHCUP_INSTALL_BASE_PREFIX:"/usr/local",GITHUB_OUTPUT:"/home/runner/work/_temp/_runner_file_commands/set_output_18a51caf-e5c9-4051-9c6d-047b16202017",npm_config_global_prefix:"/opt/hostedtoolcache/node/20.18.3/x64",EDGEWEBDRIVER:"/usr/local/share/edge_driver",STATS_EXT:"true",npm_command:"run-script",ANDROID_NDK:"/usr/local/lib/android/sdk/ndk/27.2.12479018",SGX_AESM_ADDR:"1",CHROME_BIN:"/usr/bin/google-chrome",SELENIUM_JAR_PATH:"/usr/share/java/selenium-server.jar",MEMORY_PRESSURE_WRITE:"c29tZSAyMDAwMDAgMjAwMDAwMAA=",STATS_EXTP:"https://provjobdprod.z13.web.core.windows.net/settings/provjobdsettings-latest/provjobd.data",ANDROID_NDK_HOME:"/usr/local/lib/android/sdk/ndk/27.2.12479018",GITHUB_STEP_SUMMARY:"/home/runner/work/_temp/_runner_file_commands/step_summary_18a51caf-e5c9-4051-9c6d-047b16202017",INIT_CWD:"/home/runner/work/md/md",EDITOR:"vi",NODE_ENV:"production",LAUNCH_EDITOR:"code"},title:"node",argv:["/opt/hostedtoolcache/node/20.18.3/x64/bin/node","/home/runner/work/md/md/node_modules/.bin/vite","build"],execArgv:[],pid:2166,ppid:2165,execPath:"/opt/hostedtoolcache/node/20.18.3/x64/bin/node",debugPort:9229,argv0:"node",_preload_modules:[],report:{directory:"",filename:"",compact:!1,excludeNetwork:!1,signal:"SIGUSR2",reportOnFatalError:!1,reportOnSignal:!1,reportOnUncaughtException:!1}};Ra.exports=sd;function sd(fd){return pd.bind(null,fd)}function pd(fd){var hd=[].slice.call(arguments,1);hd.unshift("["+fd+"]"),rd.stderr.write(hd.join(" ")+` +`)}}).toArray()}const Forms=Object.freeze(Object.defineProperty({__proto__:null,serialize:serialize$1,serializeArray},Symbol.toStringTag,{value:"Module"}));function getExtractDescr(Ra){var qa;return typeof Ra=="string"?{selector:Ra,value:"textContent"}:{selector:Ra.selector,value:(qa=Ra.value)!==null&&qa!==void 0?qa:"textContent"}}function extract(Ra){const qa={};for(const rd in Ra){const sd=Ra[rd],pd=Array.isArray(sd),{selector:fd,value:hd}=getExtractDescr(pd?sd[0]:sd),md=typeof hd=="function"?hd:typeof hd=="string"?gd=>this._make(gd).prop(hd):gd=>this._make(gd).extract(hd);if(pd)qa[rd]=this._findBySelector(fd,Number.POSITIVE_INFINITY).map((gd,yd)=>md(yd,rd,qa)).get();else{const gd=this._findBySelector(fd,1);qa[rd]=gd.length>0?md(gd[0],rd,qa):void 0}}return qa}const Extract=Object.freeze(Object.defineProperty({__proto__:null,extract},Symbol.toStringTag,{value:"Module"}));class Cheerio{constructor(qa,rd,sd){if(this.length=0,this.options=sd,this._root=rd,qa){for(let pd=0;pd=55296&&Ra<=57343}function isSurrogatePair(Ra){return Ra>=56320&&Ra<=57343}function getSurrogatePairCodePoint(Ra,qa){return(Ra-55296)*1024+9216+qa}function isControlCodePoint(Ra){return Ra!==32&&Ra!==10&&Ra!==13&&Ra!==9&&Ra!==12&&Ra>=1&&Ra<=31||Ra>=127&&Ra<=159}function isUndefinedCodePoint(Ra){return Ra>=64976&&Ra<=65007||UNDEFINED_CODE_POINTS.has(Ra)}var ERR;(function(Ra){Ra.controlCharacterInInputStream="control-character-in-input-stream",Ra.noncharacterInInputStream="noncharacter-in-input-stream",Ra.surrogateInInputStream="surrogate-in-input-stream",Ra.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",Ra.endTagWithAttributes="end-tag-with-attributes",Ra.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",Ra.unexpectedSolidusInTag="unexpected-solidus-in-tag",Ra.unexpectedNullCharacter="unexpected-null-character",Ra.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",Ra.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",Ra.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",Ra.missingEndTagName="missing-end-tag-name",Ra.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",Ra.unknownNamedCharacterReference="unknown-named-character-reference",Ra.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",Ra.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",Ra.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",Ra.eofBeforeTagName="eof-before-tag-name",Ra.eofInTag="eof-in-tag",Ra.missingAttributeValue="missing-attribute-value",Ra.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",Ra.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",Ra.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",Ra.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",Ra.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",Ra.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",Ra.missingDoctypePublicIdentifier="missing-doctype-public-identifier",Ra.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",Ra.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",Ra.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",Ra.cdataInHtmlContent="cdata-in-html-content",Ra.incorrectlyOpenedComment="incorrectly-opened-comment",Ra.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",Ra.eofInDoctype="eof-in-doctype",Ra.nestedComment="nested-comment",Ra.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",Ra.eofInComment="eof-in-comment",Ra.incorrectlyClosedComment="incorrectly-closed-comment",Ra.eofInCdata="eof-in-cdata",Ra.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",Ra.nullCharacterReference="null-character-reference",Ra.surrogateCharacterReference="surrogate-character-reference",Ra.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",Ra.controlCharacterReference="control-character-reference",Ra.noncharacterCharacterReference="noncharacter-character-reference",Ra.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",Ra.missingDoctypeName="missing-doctype-name",Ra.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",Ra.duplicateAttribute="duplicate-attribute",Ra.nonConformingDoctype="non-conforming-doctype",Ra.missingDoctype="missing-doctype",Ra.misplacedDoctype="misplaced-doctype",Ra.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",Ra.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",Ra.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",Ra.openElementsLeftAfterEof="open-elements-left-after-eof",Ra.abandonedHeadElementChild="abandoned-head-element-child",Ra.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",Ra.nestedNoscriptInHead="nested-noscript-in-head",Ra.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"})(ERR||(ERR={}));const DEFAULT_BUFFER_WATERLINE=65536;class Preprocessor{constructor(qa){this.handler=qa,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=DEFAULT_BUFFER_WATERLINE,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(qa,rd){const{line:sd,col:pd,offset:fd}=this,hd=pd+rd,md=fd+rd;return{code:qa,startLine:sd,endLine:sd,startCol:hd,endCol:hd,startOffset:md,endOffset:md}}_err(qa){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(qa,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(qa){if(this.pos!==this.html.length-1){const rd=this.html.charCodeAt(this.pos+1);if(isSurrogatePair(rd))return this.pos++,this._addGap(),getSurrogatePairCodePoint(qa,rd)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,CODE_POINTS.EOF;return this._err(ERR.surrogateInInputStream),qa}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(qa,rd){this.html.length>0?this.html+=qa:this.html=qa,this.endOfChunkHit=!1,this.lastChunkWritten=rd}insertHtmlAtCurrentPos(qa){this.html=this.html.substring(0,this.pos+1)+qa+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(qa,rd){if(this.pos+qa.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(rd)return this.html.startsWith(qa,this.pos);for(let sd=0;sd=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,CODE_POINTS.EOF;const sd=this.html.charCodeAt(rd);return sd===CODE_POINTS.CARRIAGE_RETURN?CODE_POINTS.LINE_FEED:sd}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,CODE_POINTS.EOF;let qa=this.html.charCodeAt(this.pos);return qa===CODE_POINTS.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,CODE_POINTS.LINE_FEED):qa===CODE_POINTS.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,isSurrogate(qa)&&(qa=this._processSurrogate(qa)),this.handler.onParseError===null||qa>31&&qa<127||qa===CODE_POINTS.LINE_FEED||qa===CODE_POINTS.CARRIAGE_RETURN||qa>159&&qa<64976||this._checkForProblematicCharacters(qa),qa)}_checkForProblematicCharacters(qa){isControlCodePoint(qa)?this._err(ERR.controlCharacterInInputStream):isUndefinedCodePoint(qa)&&this._err(ERR.noncharacterInInputStream)}retreat(qa){for(this.pos-=qa;this.pos=0;rd--)if(Ra.attrs[rd].name===qa)return Ra.attrs[rd].value;return null}var NS;(function(Ra){Ra.HTML="http://www.w3.org/1999/xhtml",Ra.MATHML="http://www.w3.org/1998/Math/MathML",Ra.SVG="http://www.w3.org/2000/svg",Ra.XLINK="http://www.w3.org/1999/xlink",Ra.XML="http://www.w3.org/XML/1998/namespace",Ra.XMLNS="http://www.w3.org/2000/xmlns/"})(NS||(NS={}));var ATTRS;(function(Ra){Ra.TYPE="type",Ra.ACTION="action",Ra.ENCODING="encoding",Ra.PROMPT="prompt",Ra.NAME="name",Ra.COLOR="color",Ra.FACE="face",Ra.SIZE="size"})(ATTRS||(ATTRS={}));var DOCUMENT_MODE;(function(Ra){Ra.NO_QUIRKS="no-quirks",Ra.QUIRKS="quirks",Ra.LIMITED_QUIRKS="limited-quirks"})(DOCUMENT_MODE||(DOCUMENT_MODE={}));var TAG_NAMES;(function(Ra){Ra.A="a",Ra.ADDRESS="address",Ra.ANNOTATION_XML="annotation-xml",Ra.APPLET="applet",Ra.AREA="area",Ra.ARTICLE="article",Ra.ASIDE="aside",Ra.B="b",Ra.BASE="base",Ra.BASEFONT="basefont",Ra.BGSOUND="bgsound",Ra.BIG="big",Ra.BLOCKQUOTE="blockquote",Ra.BODY="body",Ra.BR="br",Ra.BUTTON="button",Ra.CAPTION="caption",Ra.CENTER="center",Ra.CODE="code",Ra.COL="col",Ra.COLGROUP="colgroup",Ra.DD="dd",Ra.DESC="desc",Ra.DETAILS="details",Ra.DIALOG="dialog",Ra.DIR="dir",Ra.DIV="div",Ra.DL="dl",Ra.DT="dt",Ra.EM="em",Ra.EMBED="embed",Ra.FIELDSET="fieldset",Ra.FIGCAPTION="figcaption",Ra.FIGURE="figure",Ra.FONT="font",Ra.FOOTER="footer",Ra.FOREIGN_OBJECT="foreignObject",Ra.FORM="form",Ra.FRAME="frame",Ra.FRAMESET="frameset",Ra.H1="h1",Ra.H2="h2",Ra.H3="h3",Ra.H4="h4",Ra.H5="h5",Ra.H6="h6",Ra.HEAD="head",Ra.HEADER="header",Ra.HGROUP="hgroup",Ra.HR="hr",Ra.HTML="html",Ra.I="i",Ra.IMG="img",Ra.IMAGE="image",Ra.INPUT="input",Ra.IFRAME="iframe",Ra.KEYGEN="keygen",Ra.LABEL="label",Ra.LI="li",Ra.LINK="link",Ra.LISTING="listing",Ra.MAIN="main",Ra.MALIGNMARK="malignmark",Ra.MARQUEE="marquee",Ra.MATH="math",Ra.MENU="menu",Ra.META="meta",Ra.MGLYPH="mglyph",Ra.MI="mi",Ra.MO="mo",Ra.MN="mn",Ra.MS="ms",Ra.MTEXT="mtext",Ra.NAV="nav",Ra.NOBR="nobr",Ra.NOFRAMES="noframes",Ra.NOEMBED="noembed",Ra.NOSCRIPT="noscript",Ra.OBJECT="object",Ra.OL="ol",Ra.OPTGROUP="optgroup",Ra.OPTION="option",Ra.P="p",Ra.PARAM="param",Ra.PLAINTEXT="plaintext",Ra.PRE="pre",Ra.RB="rb",Ra.RP="rp",Ra.RT="rt",Ra.RTC="rtc",Ra.RUBY="ruby",Ra.S="s",Ra.SCRIPT="script",Ra.SEARCH="search",Ra.SECTION="section",Ra.SELECT="select",Ra.SOURCE="source",Ra.SMALL="small",Ra.SPAN="span",Ra.STRIKE="strike",Ra.STRONG="strong",Ra.STYLE="style",Ra.SUB="sub",Ra.SUMMARY="summary",Ra.SUP="sup",Ra.TABLE="table",Ra.TBODY="tbody",Ra.TEMPLATE="template",Ra.TEXTAREA="textarea",Ra.TFOOT="tfoot",Ra.TD="td",Ra.TH="th",Ra.THEAD="thead",Ra.TITLE="title",Ra.TR="tr",Ra.TRACK="track",Ra.TT="tt",Ra.U="u",Ra.UL="ul",Ra.SVG="svg",Ra.VAR="var",Ra.WBR="wbr",Ra.XMP="xmp"})(TAG_NAMES||(TAG_NAMES={}));var TAG_ID;(function(Ra){Ra[Ra.UNKNOWN=0]="UNKNOWN",Ra[Ra.A=1]="A",Ra[Ra.ADDRESS=2]="ADDRESS",Ra[Ra.ANNOTATION_XML=3]="ANNOTATION_XML",Ra[Ra.APPLET=4]="APPLET",Ra[Ra.AREA=5]="AREA",Ra[Ra.ARTICLE=6]="ARTICLE",Ra[Ra.ASIDE=7]="ASIDE",Ra[Ra.B=8]="B",Ra[Ra.BASE=9]="BASE",Ra[Ra.BASEFONT=10]="BASEFONT",Ra[Ra.BGSOUND=11]="BGSOUND",Ra[Ra.BIG=12]="BIG",Ra[Ra.BLOCKQUOTE=13]="BLOCKQUOTE",Ra[Ra.BODY=14]="BODY",Ra[Ra.BR=15]="BR",Ra[Ra.BUTTON=16]="BUTTON",Ra[Ra.CAPTION=17]="CAPTION",Ra[Ra.CENTER=18]="CENTER",Ra[Ra.CODE=19]="CODE",Ra[Ra.COL=20]="COL",Ra[Ra.COLGROUP=21]="COLGROUP",Ra[Ra.DD=22]="DD",Ra[Ra.DESC=23]="DESC",Ra[Ra.DETAILS=24]="DETAILS",Ra[Ra.DIALOG=25]="DIALOG",Ra[Ra.DIR=26]="DIR",Ra[Ra.DIV=27]="DIV",Ra[Ra.DL=28]="DL",Ra[Ra.DT=29]="DT",Ra[Ra.EM=30]="EM",Ra[Ra.EMBED=31]="EMBED",Ra[Ra.FIELDSET=32]="FIELDSET",Ra[Ra.FIGCAPTION=33]="FIGCAPTION",Ra[Ra.FIGURE=34]="FIGURE",Ra[Ra.FONT=35]="FONT",Ra[Ra.FOOTER=36]="FOOTER",Ra[Ra.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",Ra[Ra.FORM=38]="FORM",Ra[Ra.FRAME=39]="FRAME",Ra[Ra.FRAMESET=40]="FRAMESET",Ra[Ra.H1=41]="H1",Ra[Ra.H2=42]="H2",Ra[Ra.H3=43]="H3",Ra[Ra.H4=44]="H4",Ra[Ra.H5=45]="H5",Ra[Ra.H6=46]="H6",Ra[Ra.HEAD=47]="HEAD",Ra[Ra.HEADER=48]="HEADER",Ra[Ra.HGROUP=49]="HGROUP",Ra[Ra.HR=50]="HR",Ra[Ra.HTML=51]="HTML",Ra[Ra.I=52]="I",Ra[Ra.IMG=53]="IMG",Ra[Ra.IMAGE=54]="IMAGE",Ra[Ra.INPUT=55]="INPUT",Ra[Ra.IFRAME=56]="IFRAME",Ra[Ra.KEYGEN=57]="KEYGEN",Ra[Ra.LABEL=58]="LABEL",Ra[Ra.LI=59]="LI",Ra[Ra.LINK=60]="LINK",Ra[Ra.LISTING=61]="LISTING",Ra[Ra.MAIN=62]="MAIN",Ra[Ra.MALIGNMARK=63]="MALIGNMARK",Ra[Ra.MARQUEE=64]="MARQUEE",Ra[Ra.MATH=65]="MATH",Ra[Ra.MENU=66]="MENU",Ra[Ra.META=67]="META",Ra[Ra.MGLYPH=68]="MGLYPH",Ra[Ra.MI=69]="MI",Ra[Ra.MO=70]="MO",Ra[Ra.MN=71]="MN",Ra[Ra.MS=72]="MS",Ra[Ra.MTEXT=73]="MTEXT",Ra[Ra.NAV=74]="NAV",Ra[Ra.NOBR=75]="NOBR",Ra[Ra.NOFRAMES=76]="NOFRAMES",Ra[Ra.NOEMBED=77]="NOEMBED",Ra[Ra.NOSCRIPT=78]="NOSCRIPT",Ra[Ra.OBJECT=79]="OBJECT",Ra[Ra.OL=80]="OL",Ra[Ra.OPTGROUP=81]="OPTGROUP",Ra[Ra.OPTION=82]="OPTION",Ra[Ra.P=83]="P",Ra[Ra.PARAM=84]="PARAM",Ra[Ra.PLAINTEXT=85]="PLAINTEXT",Ra[Ra.PRE=86]="PRE",Ra[Ra.RB=87]="RB",Ra[Ra.RP=88]="RP",Ra[Ra.RT=89]="RT",Ra[Ra.RTC=90]="RTC",Ra[Ra.RUBY=91]="RUBY",Ra[Ra.S=92]="S",Ra[Ra.SCRIPT=93]="SCRIPT",Ra[Ra.SEARCH=94]="SEARCH",Ra[Ra.SECTION=95]="SECTION",Ra[Ra.SELECT=96]="SELECT",Ra[Ra.SOURCE=97]="SOURCE",Ra[Ra.SMALL=98]="SMALL",Ra[Ra.SPAN=99]="SPAN",Ra[Ra.STRIKE=100]="STRIKE",Ra[Ra.STRONG=101]="STRONG",Ra[Ra.STYLE=102]="STYLE",Ra[Ra.SUB=103]="SUB",Ra[Ra.SUMMARY=104]="SUMMARY",Ra[Ra.SUP=105]="SUP",Ra[Ra.TABLE=106]="TABLE",Ra[Ra.TBODY=107]="TBODY",Ra[Ra.TEMPLATE=108]="TEMPLATE",Ra[Ra.TEXTAREA=109]="TEXTAREA",Ra[Ra.TFOOT=110]="TFOOT",Ra[Ra.TD=111]="TD",Ra[Ra.TH=112]="TH",Ra[Ra.THEAD=113]="THEAD",Ra[Ra.TITLE=114]="TITLE",Ra[Ra.TR=115]="TR",Ra[Ra.TRACK=116]="TRACK",Ra[Ra.TT=117]="TT",Ra[Ra.U=118]="U",Ra[Ra.UL=119]="UL",Ra[Ra.SVG=120]="SVG",Ra[Ra.VAR=121]="VAR",Ra[Ra.WBR=122]="WBR",Ra[Ra.XMP=123]="XMP"})(TAG_ID||(TAG_ID={}));const TAG_NAME_TO_ID=new Map([[TAG_NAMES.A,TAG_ID.A],[TAG_NAMES.ADDRESS,TAG_ID.ADDRESS],[TAG_NAMES.ANNOTATION_XML,TAG_ID.ANNOTATION_XML],[TAG_NAMES.APPLET,TAG_ID.APPLET],[TAG_NAMES.AREA,TAG_ID.AREA],[TAG_NAMES.ARTICLE,TAG_ID.ARTICLE],[TAG_NAMES.ASIDE,TAG_ID.ASIDE],[TAG_NAMES.B,TAG_ID.B],[TAG_NAMES.BASE,TAG_ID.BASE],[TAG_NAMES.BASEFONT,TAG_ID.BASEFONT],[TAG_NAMES.BGSOUND,TAG_ID.BGSOUND],[TAG_NAMES.BIG,TAG_ID.BIG],[TAG_NAMES.BLOCKQUOTE,TAG_ID.BLOCKQUOTE],[TAG_NAMES.BODY,TAG_ID.BODY],[TAG_NAMES.BR,TAG_ID.BR],[TAG_NAMES.BUTTON,TAG_ID.BUTTON],[TAG_NAMES.CAPTION,TAG_ID.CAPTION],[TAG_NAMES.CENTER,TAG_ID.CENTER],[TAG_NAMES.CODE,TAG_ID.CODE],[TAG_NAMES.COL,TAG_ID.COL],[TAG_NAMES.COLGROUP,TAG_ID.COLGROUP],[TAG_NAMES.DD,TAG_ID.DD],[TAG_NAMES.DESC,TAG_ID.DESC],[TAG_NAMES.DETAILS,TAG_ID.DETAILS],[TAG_NAMES.DIALOG,TAG_ID.DIALOG],[TAG_NAMES.DIR,TAG_ID.DIR],[TAG_NAMES.DIV,TAG_ID.DIV],[TAG_NAMES.DL,TAG_ID.DL],[TAG_NAMES.DT,TAG_ID.DT],[TAG_NAMES.EM,TAG_ID.EM],[TAG_NAMES.EMBED,TAG_ID.EMBED],[TAG_NAMES.FIELDSET,TAG_ID.FIELDSET],[TAG_NAMES.FIGCAPTION,TAG_ID.FIGCAPTION],[TAG_NAMES.FIGURE,TAG_ID.FIGURE],[TAG_NAMES.FONT,TAG_ID.FONT],[TAG_NAMES.FOOTER,TAG_ID.FOOTER],[TAG_NAMES.FOREIGN_OBJECT,TAG_ID.FOREIGN_OBJECT],[TAG_NAMES.FORM,TAG_ID.FORM],[TAG_NAMES.FRAME,TAG_ID.FRAME],[TAG_NAMES.FRAMESET,TAG_ID.FRAMESET],[TAG_NAMES.H1,TAG_ID.H1],[TAG_NAMES.H2,TAG_ID.H2],[TAG_NAMES.H3,TAG_ID.H3],[TAG_NAMES.H4,TAG_ID.H4],[TAG_NAMES.H5,TAG_ID.H5],[TAG_NAMES.H6,TAG_ID.H6],[TAG_NAMES.HEAD,TAG_ID.HEAD],[TAG_NAMES.HEADER,TAG_ID.HEADER],[TAG_NAMES.HGROUP,TAG_ID.HGROUP],[TAG_NAMES.HR,TAG_ID.HR],[TAG_NAMES.HTML,TAG_ID.HTML],[TAG_NAMES.I,TAG_ID.I],[TAG_NAMES.IMG,TAG_ID.IMG],[TAG_NAMES.IMAGE,TAG_ID.IMAGE],[TAG_NAMES.INPUT,TAG_ID.INPUT],[TAG_NAMES.IFRAME,TAG_ID.IFRAME],[TAG_NAMES.KEYGEN,TAG_ID.KEYGEN],[TAG_NAMES.LABEL,TAG_ID.LABEL],[TAG_NAMES.LI,TAG_ID.LI],[TAG_NAMES.LINK,TAG_ID.LINK],[TAG_NAMES.LISTING,TAG_ID.LISTING],[TAG_NAMES.MAIN,TAG_ID.MAIN],[TAG_NAMES.MALIGNMARK,TAG_ID.MALIGNMARK],[TAG_NAMES.MARQUEE,TAG_ID.MARQUEE],[TAG_NAMES.MATH,TAG_ID.MATH],[TAG_NAMES.MENU,TAG_ID.MENU],[TAG_NAMES.META,TAG_ID.META],[TAG_NAMES.MGLYPH,TAG_ID.MGLYPH],[TAG_NAMES.MI,TAG_ID.MI],[TAG_NAMES.MO,TAG_ID.MO],[TAG_NAMES.MN,TAG_ID.MN],[TAG_NAMES.MS,TAG_ID.MS],[TAG_NAMES.MTEXT,TAG_ID.MTEXT],[TAG_NAMES.NAV,TAG_ID.NAV],[TAG_NAMES.NOBR,TAG_ID.NOBR],[TAG_NAMES.NOFRAMES,TAG_ID.NOFRAMES],[TAG_NAMES.NOEMBED,TAG_ID.NOEMBED],[TAG_NAMES.NOSCRIPT,TAG_ID.NOSCRIPT],[TAG_NAMES.OBJECT,TAG_ID.OBJECT],[TAG_NAMES.OL,TAG_ID.OL],[TAG_NAMES.OPTGROUP,TAG_ID.OPTGROUP],[TAG_NAMES.OPTION,TAG_ID.OPTION],[TAG_NAMES.P,TAG_ID.P],[TAG_NAMES.PARAM,TAG_ID.PARAM],[TAG_NAMES.PLAINTEXT,TAG_ID.PLAINTEXT],[TAG_NAMES.PRE,TAG_ID.PRE],[TAG_NAMES.RB,TAG_ID.RB],[TAG_NAMES.RP,TAG_ID.RP],[TAG_NAMES.RT,TAG_ID.RT],[TAG_NAMES.RTC,TAG_ID.RTC],[TAG_NAMES.RUBY,TAG_ID.RUBY],[TAG_NAMES.S,TAG_ID.S],[TAG_NAMES.SCRIPT,TAG_ID.SCRIPT],[TAG_NAMES.SEARCH,TAG_ID.SEARCH],[TAG_NAMES.SECTION,TAG_ID.SECTION],[TAG_NAMES.SELECT,TAG_ID.SELECT],[TAG_NAMES.SOURCE,TAG_ID.SOURCE],[TAG_NAMES.SMALL,TAG_ID.SMALL],[TAG_NAMES.SPAN,TAG_ID.SPAN],[TAG_NAMES.STRIKE,TAG_ID.STRIKE],[TAG_NAMES.STRONG,TAG_ID.STRONG],[TAG_NAMES.STYLE,TAG_ID.STYLE],[TAG_NAMES.SUB,TAG_ID.SUB],[TAG_NAMES.SUMMARY,TAG_ID.SUMMARY],[TAG_NAMES.SUP,TAG_ID.SUP],[TAG_NAMES.TABLE,TAG_ID.TABLE],[TAG_NAMES.TBODY,TAG_ID.TBODY],[TAG_NAMES.TEMPLATE,TAG_ID.TEMPLATE],[TAG_NAMES.TEXTAREA,TAG_ID.TEXTAREA],[TAG_NAMES.TFOOT,TAG_ID.TFOOT],[TAG_NAMES.TD,TAG_ID.TD],[TAG_NAMES.TH,TAG_ID.TH],[TAG_NAMES.THEAD,TAG_ID.THEAD],[TAG_NAMES.TITLE,TAG_ID.TITLE],[TAG_NAMES.TR,TAG_ID.TR],[TAG_NAMES.TRACK,TAG_ID.TRACK],[TAG_NAMES.TT,TAG_ID.TT],[TAG_NAMES.U,TAG_ID.U],[TAG_NAMES.UL,TAG_ID.UL],[TAG_NAMES.SVG,TAG_ID.SVG],[TAG_NAMES.VAR,TAG_ID.VAR],[TAG_NAMES.WBR,TAG_ID.WBR],[TAG_NAMES.XMP,TAG_ID.XMP]]);function getTagID(Ra){var qa;return(qa=TAG_NAME_TO_ID.get(Ra))!==null&&qa!==void 0?qa:TAG_ID.UNKNOWN}const $$4=TAG_ID,SPECIAL_ELEMENTS={[NS.HTML]:new Set([$$4.ADDRESS,$$4.APPLET,$$4.AREA,$$4.ARTICLE,$$4.ASIDE,$$4.BASE,$$4.BASEFONT,$$4.BGSOUND,$$4.BLOCKQUOTE,$$4.BODY,$$4.BR,$$4.BUTTON,$$4.CAPTION,$$4.CENTER,$$4.COL,$$4.COLGROUP,$$4.DD,$$4.DETAILS,$$4.DIR,$$4.DIV,$$4.DL,$$4.DT,$$4.EMBED,$$4.FIELDSET,$$4.FIGCAPTION,$$4.FIGURE,$$4.FOOTER,$$4.FORM,$$4.FRAME,$$4.FRAMESET,$$4.H1,$$4.H2,$$4.H3,$$4.H4,$$4.H5,$$4.H6,$$4.HEAD,$$4.HEADER,$$4.HGROUP,$$4.HR,$$4.HTML,$$4.IFRAME,$$4.IMG,$$4.INPUT,$$4.LI,$$4.LINK,$$4.LISTING,$$4.MAIN,$$4.MARQUEE,$$4.MENU,$$4.META,$$4.NAV,$$4.NOEMBED,$$4.NOFRAMES,$$4.NOSCRIPT,$$4.OBJECT,$$4.OL,$$4.P,$$4.PARAM,$$4.PLAINTEXT,$$4.PRE,$$4.SCRIPT,$$4.SECTION,$$4.SELECT,$$4.SOURCE,$$4.STYLE,$$4.SUMMARY,$$4.TABLE,$$4.TBODY,$$4.TD,$$4.TEMPLATE,$$4.TEXTAREA,$$4.TFOOT,$$4.TH,$$4.THEAD,$$4.TITLE,$$4.TR,$$4.TRACK,$$4.UL,$$4.WBR,$$4.XMP]),[NS.MATHML]:new Set([$$4.MI,$$4.MO,$$4.MN,$$4.MS,$$4.MTEXT,$$4.ANNOTATION_XML]),[NS.SVG]:new Set([$$4.TITLE,$$4.FOREIGN_OBJECT,$$4.DESC]),[NS.XLINK]:new Set,[NS.XML]:new Set,[NS.XMLNS]:new Set},NUMBERED_HEADERS=new Set([$$4.H1,$$4.H2,$$4.H3,$$4.H4,$$4.H5,$$4.H6]),UNESCAPED_TEXT=new Set([TAG_NAMES.STYLE,TAG_NAMES.SCRIPT,TAG_NAMES.XMP,TAG_NAMES.IFRAME,TAG_NAMES.NOEMBED,TAG_NAMES.NOFRAMES,TAG_NAMES.PLAINTEXT]);function hasUnescapedText(Ra,qa){return UNESCAPED_TEXT.has(Ra)||qa&&Ra===TAG_NAMES.NOSCRIPT}var State$5;(function(Ra){Ra[Ra.DATA=0]="DATA",Ra[Ra.RCDATA=1]="RCDATA",Ra[Ra.RAWTEXT=2]="RAWTEXT",Ra[Ra.SCRIPT_DATA=3]="SCRIPT_DATA",Ra[Ra.PLAINTEXT=4]="PLAINTEXT",Ra[Ra.TAG_OPEN=5]="TAG_OPEN",Ra[Ra.END_TAG_OPEN=6]="END_TAG_OPEN",Ra[Ra.TAG_NAME=7]="TAG_NAME",Ra[Ra.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",Ra[Ra.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",Ra[Ra.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",Ra[Ra.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",Ra[Ra.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",Ra[Ra.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",Ra[Ra.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",Ra[Ra.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",Ra[Ra.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",Ra[Ra.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",Ra[Ra.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",Ra[Ra.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",Ra[Ra.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",Ra[Ra.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",Ra[Ra.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",Ra[Ra.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",Ra[Ra.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",Ra[Ra.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",Ra[Ra.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",Ra[Ra.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",Ra[Ra.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",Ra[Ra.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",Ra[Ra.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",Ra[Ra.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",Ra[Ra.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",Ra[Ra.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",Ra[Ra.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",Ra[Ra.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",Ra[Ra.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",Ra[Ra.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",Ra[Ra.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",Ra[Ra.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",Ra[Ra.BOGUS_COMMENT=40]="BOGUS_COMMENT",Ra[Ra.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",Ra[Ra.COMMENT_START=42]="COMMENT_START",Ra[Ra.COMMENT_START_DASH=43]="COMMENT_START_DASH",Ra[Ra.COMMENT=44]="COMMENT",Ra[Ra.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",Ra[Ra.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",Ra[Ra.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",Ra[Ra.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",Ra[Ra.COMMENT_END_DASH=49]="COMMENT_END_DASH",Ra[Ra.COMMENT_END=50]="COMMENT_END",Ra[Ra.COMMENT_END_BANG=51]="COMMENT_END_BANG",Ra[Ra.DOCTYPE=52]="DOCTYPE",Ra[Ra.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",Ra[Ra.DOCTYPE_NAME=54]="DOCTYPE_NAME",Ra[Ra.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",Ra[Ra.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",Ra[Ra.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",Ra[Ra.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",Ra[Ra.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",Ra[Ra.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",Ra[Ra.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",Ra[Ra.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",Ra[Ra.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",Ra[Ra.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",Ra[Ra.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",Ra[Ra.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",Ra[Ra.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",Ra[Ra.CDATA_SECTION=68]="CDATA_SECTION",Ra[Ra.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",Ra[Ra.CDATA_SECTION_END=70]="CDATA_SECTION_END",Ra[Ra.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",Ra[Ra.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND"})(State$5||(State$5={}));const TokenizerMode={DATA:State$5.DATA,RCDATA:State$5.RCDATA,RAWTEXT:State$5.RAWTEXT,SCRIPT_DATA:State$5.SCRIPT_DATA,PLAINTEXT:State$5.PLAINTEXT,CDATA_SECTION:State$5.CDATA_SECTION};function isAsciiDigit(Ra){return Ra>=CODE_POINTS.DIGIT_0&&Ra<=CODE_POINTS.DIGIT_9}function isAsciiUpper(Ra){return Ra>=CODE_POINTS.LATIN_CAPITAL_A&&Ra<=CODE_POINTS.LATIN_CAPITAL_Z}function isAsciiLower(Ra){return Ra>=CODE_POINTS.LATIN_SMALL_A&&Ra<=CODE_POINTS.LATIN_SMALL_Z}function isAsciiLetter(Ra){return isAsciiLower(Ra)||isAsciiUpper(Ra)}function isAsciiAlphaNumeric(Ra){return isAsciiLetter(Ra)||isAsciiDigit(Ra)}function toAsciiLower(Ra){return Ra+32}function isWhitespace$3(Ra){return Ra===CODE_POINTS.SPACE||Ra===CODE_POINTS.LINE_FEED||Ra===CODE_POINTS.TABULATION||Ra===CODE_POINTS.FORM_FEED}function isScriptDataDoubleEscapeSequenceEnd(Ra){return isWhitespace$3(Ra)||Ra===CODE_POINTS.SOLIDUS||Ra===CODE_POINTS.GREATER_THAN_SIGN}function getErrorForNumericCharacterReference(Ra){return Ra===CODE_POINTS.NULL?ERR.nullCharacterReference:Ra>1114111?ERR.characterReferenceOutsideUnicodeRange:isSurrogate(Ra)?ERR.surrogateCharacterReference:isUndefinedCodePoint(Ra)?ERR.noncharacterCharacterReference:isControlCodePoint(Ra)||Ra===CODE_POINTS.CARRIAGE_RETURN?ERR.controlCharacterReference:null}let Tokenizer$1=class{constructor(qa,rd){this.options=qa,this.handler=rd,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=State$5.DATA,this.returnState=State$5.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new Preprocessor(rd),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new EntityDecoder(htmlDecodeTree,(sd,pd)=>{this.preprocessor.pos=this.entityStartPos+pd-1,this._flushCodePointConsumedAsCharacterReference(sd)},rd.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(ERR.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:sd=>{this._err(ERR.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+sd)},validateNumericCharacterReference:sd=>{const pd=getErrorForNumericCharacterReference(sd);pd&&this._err(pd,1)}}:void 0)}_err(qa,rd=0){var sd,pd;(pd=(sd=this.handler).onParseError)===null||pd===void 0||pd.call(sd,this.preprocessor.getError(qa,rd))}getCurrentLocation(qa){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-qa,startOffset:this.preprocessor.offset-qa,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const qa=this._consume();this._ensureHibernation()||this._callState(qa)}this.inLoop=!1}}pause(){this.paused=!0}resume(qa){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||qa==null||qa())}write(qa,rd,sd){this.active=!0,this.preprocessor.write(qa,rd),this._runParsingLoop(),this.paused||sd==null||sd()}insertHtmlAtCurrentPos(qa){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(qa),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(qa){this.consumedAfterSnapshot+=qa;for(let rd=0;rd0&&this._err(ERR.endTagWithAttributes),qa.selfClosing&&this._err(ERR.endTagWithTrailingSolidus),this.handler.onEndTag(qa)),this.preprocessor.dropParsedChunk()}emitCurrentComment(qa){this.prepareToken(qa),this.handler.onComment(qa),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(qa){this.prepareToken(qa),this.handler.onDoctype(qa),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(qa){if(this.currentCharacterToken){switch(qa&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=qa.startLine,this.currentCharacterToken.location.endCol=qa.startCol,this.currentCharacterToken.location.endOffset=qa.startOffset),this.currentCharacterToken.type){case TokenType.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case TokenType.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case TokenType.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){const qa=this.getCurrentLocation(0);qa&&(qa.endLine=qa.startLine,qa.endCol=qa.startCol,qa.endOffset=qa.startOffset),this._emitCurrentCharacterToken(qa),this.handler.onEof({type:TokenType.EOF,location:qa}),this.active=!1}_appendCharToCurrentCharacterToken(qa,rd){if(this.currentCharacterToken)if(this.currentCharacterToken.type===qa){this.currentCharacterToken.chars+=rd;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(qa,rd)}_emitCodePoint(qa){const rd=isWhitespace$3(qa)?TokenType.WHITESPACE_CHARACTER:qa===CODE_POINTS.NULL?TokenType.NULL_CHARACTER:TokenType.CHARACTER;this._appendCharToCurrentCharacterToken(rd,String.fromCodePoint(qa))}_emitChars(qa){this._appendCharToCurrentCharacterToken(TokenType.CHARACTER,qa)}_startCharacterReference(){this.returnState=this.state,this.state=State$5.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?DecodingMode.Attribute:DecodingMode.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===State$5.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===State$5.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===State$5.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(qa){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(qa):this._emitCodePoint(qa)}_callState(qa){switch(this.state){case State$5.DATA:{this._stateData(qa);break}case State$5.RCDATA:{this._stateRcdata(qa);break}case State$5.RAWTEXT:{this._stateRawtext(qa);break}case State$5.SCRIPT_DATA:{this._stateScriptData(qa);break}case State$5.PLAINTEXT:{this._statePlaintext(qa);break}case State$5.TAG_OPEN:{this._stateTagOpen(qa);break}case State$5.END_TAG_OPEN:{this._stateEndTagOpen(qa);break}case State$5.TAG_NAME:{this._stateTagName(qa);break}case State$5.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(qa);break}case State$5.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(qa);break}case State$5.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(qa);break}case State$5.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(qa);break}case State$5.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(qa);break}case State$5.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(qa);break}case State$5.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(qa);break}case State$5.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(qa);break}case State$5.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(qa);break}case State$5.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(qa);break}case State$5.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(qa);break}case State$5.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(qa);break}case State$5.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(qa);break}case State$5.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(qa);break}case State$5.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(qa);break}case State$5.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(qa);break}case State$5.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(qa);break}case State$5.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(qa);break}case State$5.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(qa);break}case State$5.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(qa);break}case State$5.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(qa);break}case State$5.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(qa);break}case State$5.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(qa);break}case State$5.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(qa);break}case State$5.ATTRIBUTE_NAME:{this._stateAttributeName(qa);break}case State$5.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(qa);break}case State$5.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(qa);break}case State$5.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(qa);break}case State$5.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(qa);break}case State$5.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(qa);break}case State$5.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(qa);break}case State$5.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(qa);break}case State$5.BOGUS_COMMENT:{this._stateBogusComment(qa);break}case State$5.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(qa);break}case State$5.COMMENT_START:{this._stateCommentStart(qa);break}case State$5.COMMENT_START_DASH:{this._stateCommentStartDash(qa);break}case State$5.COMMENT:{this._stateComment(qa);break}case State$5.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(qa);break}case State$5.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(qa);break}case State$5.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(qa);break}case State$5.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(qa);break}case State$5.COMMENT_END_DASH:{this._stateCommentEndDash(qa);break}case State$5.COMMENT_END:{this._stateCommentEnd(qa);break}case State$5.COMMENT_END_BANG:{this._stateCommentEndBang(qa);break}case State$5.DOCTYPE:{this._stateDoctype(qa);break}case State$5.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(qa);break}case State$5.DOCTYPE_NAME:{this._stateDoctypeName(qa);break}case State$5.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(qa);break}case State$5.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(qa);break}case State$5.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(qa);break}case State$5.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(qa);break}case State$5.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(qa);break}case State$5.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(qa);break}case State$5.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(qa);break}case State$5.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(qa);break}case State$5.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(qa);break}case State$5.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(qa);break}case State$5.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(qa);break}case State$5.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(qa);break}case State$5.BOGUS_DOCTYPE:{this._stateBogusDoctype(qa);break}case State$5.CDATA_SECTION:{this._stateCdataSection(qa);break}case State$5.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(qa);break}case State$5.CDATA_SECTION_END:{this._stateCdataSectionEnd(qa);break}case State$5.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case State$5.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(qa);break}default:throw new Error("Unknown state")}}_stateData(qa){switch(qa){case CODE_POINTS.LESS_THAN_SIGN:{this.state=State$5.TAG_OPEN;break}case CODE_POINTS.AMPERSAND:{this._startCharacterReference();break}case CODE_POINTS.NULL:{this._err(ERR.unexpectedNullCharacter),this._emitCodePoint(qa);break}case CODE_POINTS.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(qa)}}_stateRcdata(qa){switch(qa){case CODE_POINTS.AMPERSAND:{this._startCharacterReference();break}case CODE_POINTS.LESS_THAN_SIGN:{this.state=State$5.RCDATA_LESS_THAN_SIGN;break}case CODE_POINTS.NULL:{this._err(ERR.unexpectedNullCharacter),this._emitChars(REPLACEMENT_CHARACTER);break}case CODE_POINTS.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(qa)}}_stateRawtext(qa){switch(qa){case CODE_POINTS.LESS_THAN_SIGN:{this.state=State$5.RAWTEXT_LESS_THAN_SIGN;break}case CODE_POINTS.NULL:{this._err(ERR.unexpectedNullCharacter),this._emitChars(REPLACEMENT_CHARACTER);break}case CODE_POINTS.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(qa)}}_stateScriptData(qa){switch(qa){case CODE_POINTS.LESS_THAN_SIGN:{this.state=State$5.SCRIPT_DATA_LESS_THAN_SIGN;break}case CODE_POINTS.NULL:{this._err(ERR.unexpectedNullCharacter),this._emitChars(REPLACEMENT_CHARACTER);break}case CODE_POINTS.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(qa)}}_statePlaintext(qa){switch(qa){case CODE_POINTS.NULL:{this._err(ERR.unexpectedNullCharacter),this._emitChars(REPLACEMENT_CHARACTER);break}case CODE_POINTS.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(qa)}}_stateTagOpen(qa){if(isAsciiLetter(qa))this._createStartTagToken(),this.state=State$5.TAG_NAME,this._stateTagName(qa);else switch(qa){case CODE_POINTS.EXCLAMATION_MARK:{this.state=State$5.MARKUP_DECLARATION_OPEN;break}case CODE_POINTS.SOLIDUS:{this.state=State$5.END_TAG_OPEN;break}case CODE_POINTS.QUESTION_MARK:{this._err(ERR.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=State$5.BOGUS_COMMENT,this._stateBogusComment(qa);break}case CODE_POINTS.EOF:{this._err(ERR.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(ERR.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=State$5.DATA,this._stateData(qa)}}_stateEndTagOpen(qa){if(isAsciiLetter(qa))this._createEndTagToken(),this.state=State$5.TAG_NAME,this._stateTagName(qa);else switch(qa){case CODE_POINTS.GREATER_THAN_SIGN:{this._err(ERR.missingEndTagName),this.state=State$5.DATA;break}case CODE_POINTS.EOF:{this._err(ERR.eofBeforeTagName),this._emitChars("");break}case CODE_POINTS.NULL:{this._err(ERR.unexpectedNullCharacter),this.state=State$5.SCRIPT_DATA_ESCAPED,this._emitChars(REPLACEMENT_CHARACTER);break}case CODE_POINTS.EOF:{this._err(ERR.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=State$5.SCRIPT_DATA_ESCAPED,this._emitCodePoint(qa)}}_stateScriptDataEscapedLessThanSign(qa){qa===CODE_POINTS.SOLIDUS?this.state=State$5.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:isAsciiLetter(qa)?(this._emitChars("<"),this.state=State$5.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(qa)):(this._emitChars("<"),this.state=State$5.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(qa))}_stateScriptDataEscapedEndTagOpen(qa){isAsciiLetter(qa)?(this.state=State$5.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(qa)):(this._emitChars("");break}case CODE_POINTS.NULL:{this._err(ERR.unexpectedNullCharacter),this.state=State$5.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(REPLACEMENT_CHARACTER);break}case CODE_POINTS.EOF:{this._err(ERR.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=State$5.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(qa)}}_stateScriptDataDoubleEscapedLessThanSign(qa){qa===CODE_POINTS.SOLIDUS?(this.state=State$5.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=State$5.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(qa))}_stateScriptDataDoubleEscapeEnd(qa){if(this.preprocessor.startsWith(SEQUENCES.SCRIPT,!1)&&isScriptDataDoubleEscapeSequenceEnd(this.preprocessor.peek(SEQUENCES.SCRIPT.length))){this._emitCodePoint(qa);for(let rd=0;rd0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(qa,!0)}replace(qa,rd){const sd=this._indexOf(qa);this.items[sd]=rd,sd===this.stackTop&&(this.current=rd)}insertAfter(qa,rd,sd){const pd=this._indexOf(qa)+1;this.items.splice(pd,0,rd),this.tagIDs.splice(pd,0,sd),this.stackTop++,pd===this.stackTop&&this._updateCurrentElement(),this.handler.onItemPush(this.current,this.currentTagId,pd===this.stackTop)}popUntilTagNamePopped(qa){let rd=this.stackTop+1;do rd=this.tagIDs.lastIndexOf(qa,rd-1);while(rd>0&&this.treeAdapter.getNamespaceURI(this.items[rd])!==NS.HTML);this.shortenToLength(rd<0?0:rd)}shortenToLength(qa){for(;this.stackTop>=qa;){const rd=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(rd,this.stackTop=0;sd--)if(qa.has(this.tagIDs[sd])&&this.treeAdapter.getNamespaceURI(this.items[sd])===rd)return sd;return-1}clearBackTo(qa,rd){const sd=this._indexOfTagNames(qa,rd);this.shortenToLength(sd+1)}clearBackToTableContext(){this.clearBackTo(TABLE_CONTEXT,NS.HTML)}clearBackToTableBodyContext(){this.clearBackTo(TABLE_BODY_CONTEXT,NS.HTML)}clearBackToTableRowContext(){this.clearBackTo(TABLE_ROW_CONTEXT,NS.HTML)}remove(qa){const rd=this._indexOf(qa);rd>=0&&(rd===this.stackTop?this.pop():(this.items.splice(rd,1),this.tagIDs.splice(rd,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(qa,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===TAG_ID.BODY?this.items[1]:null}contains(qa){return this._indexOf(qa)>-1}getCommonAncestor(qa){const rd=this._indexOf(qa)-1;return rd>=0?this.items[rd]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===TAG_ID.HTML}hasInDynamicScope(qa,rd){for(let sd=this.stackTop;sd>=0;sd--){const pd=this.tagIDs[sd];switch(this.treeAdapter.getNamespaceURI(this.items[sd])){case NS.HTML:{if(pd===qa)return!0;if(rd.has(pd))return!1;break}case NS.SVG:{if(SCOPING_ELEMENTS_SVG.has(pd))return!1;break}case NS.MATHML:{if(SCOPING_ELEMENTS_MATHML.has(pd))return!1;break}}}return!0}hasInScope(qa){return this.hasInDynamicScope(qa,SCOPING_ELEMENTS_HTML)}hasInListItemScope(qa){return this.hasInDynamicScope(qa,SCOPING_ELEMENTS_HTML_LIST)}hasInButtonScope(qa){return this.hasInDynamicScope(qa,SCOPING_ELEMENTS_HTML_BUTTON)}hasNumberedHeaderInScope(){for(let qa=this.stackTop;qa>=0;qa--){const rd=this.tagIDs[qa];switch(this.treeAdapter.getNamespaceURI(this.items[qa])){case NS.HTML:{if(NUMBERED_HEADERS.has(rd))return!0;if(SCOPING_ELEMENTS_HTML.has(rd))return!1;break}case NS.SVG:{if(SCOPING_ELEMENTS_SVG.has(rd))return!1;break}case NS.MATHML:{if(SCOPING_ELEMENTS_MATHML.has(rd))return!1;break}}}return!0}hasInTableScope(qa){for(let rd=this.stackTop;rd>=0;rd--)if(this.treeAdapter.getNamespaceURI(this.items[rd])===NS.HTML)switch(this.tagIDs[rd]){case qa:return!0;case TAG_ID.TABLE:case TAG_ID.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let qa=this.stackTop;qa>=0;qa--)if(this.treeAdapter.getNamespaceURI(this.items[qa])===NS.HTML)switch(this.tagIDs[qa]){case TAG_ID.TBODY:case TAG_ID.THEAD:case TAG_ID.TFOOT:return!0;case TAG_ID.TABLE:case TAG_ID.HTML:return!1}return!0}hasInSelectScope(qa){for(let rd=this.stackTop;rd>=0;rd--)if(this.treeAdapter.getNamespaceURI(this.items[rd])===NS.HTML)switch(this.tagIDs[rd]){case qa:return!0;case TAG_ID.OPTION:case TAG_ID.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;IMPLICIT_END_TAG_REQUIRED.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;IMPLICIT_END_TAG_REQUIRED_THOROUGHLY.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(qa){for(;this.currentTagId!==qa&&IMPLICIT_END_TAG_REQUIRED_THOROUGHLY.has(this.currentTagId);)this.pop()}}const NOAH_ARK_CAPACITY=3;var EntryType;(function(Ra){Ra[Ra.Marker=0]="Marker",Ra[Ra.Element=1]="Element"})(EntryType||(EntryType={}));const MARKER={type:EntryType.Marker};class FormattingElementList{constructor(qa){this.treeAdapter=qa,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(qa,rd){const sd=[],pd=rd.length,fd=this.treeAdapter.getTagName(qa),hd=this.treeAdapter.getNamespaceURI(qa);for(let md=0;md[hd.name,hd.value]));let fd=0;for(let hd=0;hdpd.get(gd.name)===gd.value)&&(fd+=1,fd>=NOAH_ARK_CAPACITY&&this.entries.splice(md.idx,1))}}insertMarker(){this.entries.unshift(MARKER)}pushElement(qa,rd){this._ensureNoahArkCondition(qa),this.entries.unshift({type:EntryType.Element,element:qa,token:rd})}insertElementAfterBookmark(qa,rd){const sd=this.entries.indexOf(this.bookmark);this.entries.splice(sd,0,{type:EntryType.Element,element:qa,token:rd})}removeEntry(qa){const rd=this.entries.indexOf(qa);rd>=0&&this.entries.splice(rd,1)}clearToLastMarker(){const qa=this.entries.indexOf(MARKER);qa>=0?this.entries.splice(0,qa+1):this.entries.length=0}getElementEntryInScopeWithTagName(qa){const rd=this.entries.find(sd=>sd.type===EntryType.Marker||this.treeAdapter.getTagName(sd.element)===qa);return rd&&rd.type===EntryType.Element?rd:null}getElementEntry(qa){return this.entries.find(rd=>rd.type===EntryType.Element&&rd.element===qa)}}const defaultTreeAdapter={createDocument(){return{nodeName:"#document",mode:DOCUMENT_MODE.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(Ra,qa,rd){return{nodeName:Ra,tagName:Ra,attrs:rd,namespaceURI:qa,childNodes:[],parentNode:null}},createCommentNode(Ra){return{nodeName:"#comment",data:Ra,parentNode:null}},createTextNode(Ra){return{nodeName:"#text",value:Ra,parentNode:null}},appendChild(Ra,qa){Ra.childNodes.push(qa),qa.parentNode=Ra},insertBefore(Ra,qa,rd){const sd=Ra.childNodes.indexOf(rd);Ra.childNodes.splice(sd,0,qa),qa.parentNode=Ra},setTemplateContent(Ra,qa){Ra.content=qa},getTemplateContent(Ra){return Ra.content},setDocumentType(Ra,qa,rd,sd){const pd=Ra.childNodes.find(fd=>fd.nodeName==="#documentType");if(pd)pd.name=qa,pd.publicId=rd,pd.systemId=sd;else{const fd={nodeName:"#documentType",name:qa,publicId:rd,systemId:sd,parentNode:null};defaultTreeAdapter.appendChild(Ra,fd)}},setDocumentMode(Ra,qa){Ra.mode=qa},getDocumentMode(Ra){return Ra.mode},detachNode(Ra){if(Ra.parentNode){const qa=Ra.parentNode.childNodes.indexOf(Ra);Ra.parentNode.childNodes.splice(qa,1),Ra.parentNode=null}},insertText(Ra,qa){if(Ra.childNodes.length>0){const rd=Ra.childNodes[Ra.childNodes.length-1];if(defaultTreeAdapter.isTextNode(rd)){rd.value+=qa;return}}defaultTreeAdapter.appendChild(Ra,defaultTreeAdapter.createTextNode(qa))},insertTextBefore(Ra,qa,rd){const sd=Ra.childNodes[Ra.childNodes.indexOf(rd)-1];sd&&defaultTreeAdapter.isTextNode(sd)?sd.value+=qa:defaultTreeAdapter.insertBefore(Ra,defaultTreeAdapter.createTextNode(qa),rd)},adoptAttributes(Ra,qa){const rd=new Set(Ra.attrs.map(sd=>sd.name));for(let sd=0;sdRa.startsWith(rd))}function isConforming(Ra){return Ra.name===VALID_DOCTYPE_NAME&&Ra.publicId===null&&(Ra.systemId===null||Ra.systemId===VALID_SYSTEM_ID)}function getDocumentMode(Ra){if(Ra.name!==VALID_DOCTYPE_NAME)return DOCUMENT_MODE.QUIRKS;const{systemId:qa}=Ra;if(qa&&qa.toLowerCase()===QUIRKS_MODE_SYSTEM_ID)return DOCUMENT_MODE.QUIRKS;let{publicId:rd}=Ra;if(rd!==null){if(rd=rd.toLowerCase(),QUIRKS_MODE_PUBLIC_IDS.has(rd))return DOCUMENT_MODE.QUIRKS;let sd=qa===null?QUIRKS_MODE_NO_SYSTEM_ID_PUBLIC_ID_PREFIXES:QUIRKS_MODE_PUBLIC_ID_PREFIXES;if(hasPrefix(rd,sd))return DOCUMENT_MODE.QUIRKS;if(sd=qa===null?LIMITED_QUIRKS_PUBLIC_ID_PREFIXES:LIMITED_QUIRKS_WITH_SYSTEM_ID_PUBLIC_ID_PREFIXES,hasPrefix(rd,sd))return DOCUMENT_MODE.LIMITED_QUIRKS}return DOCUMENT_MODE.NO_QUIRKS}const MIME_TYPES={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},DEFINITION_URL_ATTR="definitionurl",ADJUSTED_DEFINITION_URL_ATTR="definitionURL",SVG_ATTRS_ADJUSTMENT_MAP=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(Ra=>[Ra.toLowerCase(),Ra])),XML_ATTRS_ADJUSTMENT_MAP=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:NS.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:NS.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:NS.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:NS.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:NS.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:NS.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:NS.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:NS.XML}],["xml:space",{prefix:"xml",name:"space",namespace:NS.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:NS.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:NS.XMLNS}]]),SVG_TAG_NAMES_ADJUSTMENT_MAP=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(Ra=>[Ra.toLowerCase(),Ra])),EXITS_FOREIGN_CONTENT=new Set([TAG_ID.B,TAG_ID.BIG,TAG_ID.BLOCKQUOTE,TAG_ID.BODY,TAG_ID.BR,TAG_ID.CENTER,TAG_ID.CODE,TAG_ID.DD,TAG_ID.DIV,TAG_ID.DL,TAG_ID.DT,TAG_ID.EM,TAG_ID.EMBED,TAG_ID.H1,TAG_ID.H2,TAG_ID.H3,TAG_ID.H4,TAG_ID.H5,TAG_ID.H6,TAG_ID.HEAD,TAG_ID.HR,TAG_ID.I,TAG_ID.IMG,TAG_ID.LI,TAG_ID.LISTING,TAG_ID.MENU,TAG_ID.META,TAG_ID.NOBR,TAG_ID.OL,TAG_ID.P,TAG_ID.PRE,TAG_ID.RUBY,TAG_ID.S,TAG_ID.SMALL,TAG_ID.SPAN,TAG_ID.STRONG,TAG_ID.STRIKE,TAG_ID.SUB,TAG_ID.SUP,TAG_ID.TABLE,TAG_ID.TT,TAG_ID.U,TAG_ID.UL,TAG_ID.VAR]);function causesExit(Ra){const qa=Ra.tagID;return qa===TAG_ID.FONT&&Ra.attrs.some(({name:sd})=>sd===ATTRS.COLOR||sd===ATTRS.SIZE||sd===ATTRS.FACE)||EXITS_FOREIGN_CONTENT.has(qa)}function adjustTokenMathMLAttrs(Ra){for(let qa=0;qa0&&this._setContextModes(qa,rd)}onItemPop(qa,rd){var sd,pd;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(qa,this.currentToken),(pd=(sd=this.treeAdapter).onItemPop)===null||pd===void 0||pd.call(sd,qa,this.openElements.current),rd){let fd,hd;this.openElements.stackTop===0&&this.fragmentContext?(fd=this.fragmentContext,hd=this.fragmentContextID):{current:fd,currentTagId:hd}=this.openElements,this._setContextModes(fd,hd)}}_setContextModes(qa,rd){const sd=qa===this.document||this.treeAdapter.getNamespaceURI(qa)===NS.HTML;this.currentNotInHTML=!sd,this.tokenizer.inForeignNode=!sd&&!this._isIntegrationPoint(rd,qa)}_switchToTextParsing(qa,rd){this._insertElement(qa,NS.HTML),this.tokenizer.state=rd,this.originalInsertionMode=this.insertionMode,this.insertionMode=InsertionMode.TEXT}switchToPlaintextParsing(){this.insertionMode=InsertionMode.TEXT,this.originalInsertionMode=InsertionMode.IN_BODY,this.tokenizer.state=TokenizerMode.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let qa=this.fragmentContext;for(;qa;){if(this.treeAdapter.getTagName(qa)===TAG_NAMES.FORM){this.formElement=qa;break}qa=this.treeAdapter.getParentNode(qa)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==NS.HTML))switch(this.fragmentContextID){case TAG_ID.TITLE:case TAG_ID.TEXTAREA:{this.tokenizer.state=TokenizerMode.RCDATA;break}case TAG_ID.STYLE:case TAG_ID.XMP:case TAG_ID.IFRAME:case TAG_ID.NOEMBED:case TAG_ID.NOFRAMES:case TAG_ID.NOSCRIPT:{this.tokenizer.state=TokenizerMode.RAWTEXT;break}case TAG_ID.SCRIPT:{this.tokenizer.state=TokenizerMode.SCRIPT_DATA;break}case TAG_ID.PLAINTEXT:{this.tokenizer.state=TokenizerMode.PLAINTEXT;break}}}_setDocumentType(qa){const rd=qa.name||"",sd=qa.publicId||"",pd=qa.systemId||"";if(this.treeAdapter.setDocumentType(this.document,rd,sd,pd),qa.location){const hd=this.treeAdapter.getChildNodes(this.document).find(md=>this.treeAdapter.isDocumentTypeNode(md));hd&&this.treeAdapter.setNodeSourceCodeLocation(hd,qa.location)}}_attachElementToTree(qa,rd){if(this.options.sourceCodeLocationInfo){const sd=rd&&{...rd,startTag:rd};this.treeAdapter.setNodeSourceCodeLocation(qa,sd)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(qa);else{const sd=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(sd,qa)}}_appendElement(qa,rd){const sd=this.treeAdapter.createElement(qa.tagName,rd,qa.attrs);this._attachElementToTree(sd,qa.location)}_insertElement(qa,rd){const sd=this.treeAdapter.createElement(qa.tagName,rd,qa.attrs);this._attachElementToTree(sd,qa.location),this.openElements.push(sd,qa.tagID)}_insertFakeElement(qa,rd){const sd=this.treeAdapter.createElement(qa,NS.HTML,[]);this._attachElementToTree(sd,null),this.openElements.push(sd,rd)}_insertTemplate(qa){const rd=this.treeAdapter.createElement(qa.tagName,NS.HTML,qa.attrs),sd=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(rd,sd),this._attachElementToTree(rd,qa.location),this.openElements.push(rd,qa.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(sd,null)}_insertFakeRootElement(){const qa=this.treeAdapter.createElement(TAG_NAMES.HTML,NS.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(qa,null),this.treeAdapter.appendChild(this.openElements.current,qa),this.openElements.push(qa,TAG_ID.HTML)}_appendCommentNode(qa,rd){const sd=this.treeAdapter.createCommentNode(qa.data);this.treeAdapter.appendChild(rd,sd),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(sd,qa.location)}_insertCharacters(qa){let rd,sd;if(this._shouldFosterParentOnInsertion()?({parent:rd,beforeElement:sd}=this._findFosterParentingLocation(),sd?this.treeAdapter.insertTextBefore(rd,qa.chars,sd):this.treeAdapter.insertText(rd,qa.chars)):(rd=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(rd,qa.chars)),!qa.location)return;const pd=this.treeAdapter.getChildNodes(rd),fd=sd?pd.lastIndexOf(sd):pd.length,hd=pd[fd-1];if(this.treeAdapter.getNodeSourceCodeLocation(hd)){const{endLine:gd,endCol:yd,endOffset:vd}=qa.location;this.treeAdapter.updateNodeSourceCodeLocation(hd,{endLine:gd,endCol:yd,endOffset:vd})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(hd,qa.location)}_adoptNodes(qa,rd){for(let sd=this.treeAdapter.getFirstChild(qa);sd;sd=this.treeAdapter.getFirstChild(qa))this.treeAdapter.detachNode(sd),this.treeAdapter.appendChild(rd,sd)}_setEndLocation(qa,rd){if(this.treeAdapter.getNodeSourceCodeLocation(qa)&&rd.location){const sd=rd.location,pd=this.treeAdapter.getTagName(qa),fd=rd.type===TokenType.END_TAG&&pd===rd.tagName?{endTag:{...sd},endLine:sd.endLine,endCol:sd.endCol,endOffset:sd.endOffset}:{endLine:sd.startLine,endCol:sd.startCol,endOffset:sd.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(qa,fd)}}shouldProcessStartTagTokenInForeignContent(qa){if(!this.currentNotInHTML)return!1;let rd,sd;return this.openElements.stackTop===0&&this.fragmentContext?(rd=this.fragmentContext,sd=this.fragmentContextID):{current:rd,currentTagId:sd}=this.openElements,qa.tagID===TAG_ID.SVG&&this.treeAdapter.getTagName(rd)===TAG_NAMES.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(rd)===NS.MATHML?!1:this.tokenizer.inForeignNode||(qa.tagID===TAG_ID.MGLYPH||qa.tagID===TAG_ID.MALIGNMARK)&&!this._isIntegrationPoint(sd,rd,NS.HTML)}_processToken(qa){switch(qa.type){case TokenType.CHARACTER:{this.onCharacter(qa);break}case TokenType.NULL_CHARACTER:{this.onNullCharacter(qa);break}case TokenType.COMMENT:{this.onComment(qa);break}case TokenType.DOCTYPE:{this.onDoctype(qa);break}case TokenType.START_TAG:{this._processStartTag(qa);break}case TokenType.END_TAG:{this.onEndTag(qa);break}case TokenType.EOF:{this.onEof(qa);break}case TokenType.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(qa);break}}}_isIntegrationPoint(qa,rd,sd){const pd=this.treeAdapter.getNamespaceURI(rd),fd=this.treeAdapter.getAttrList(rd);return isIntegrationPoint(qa,pd,fd,sd)}_reconstructActiveFormattingElements(){const qa=this.activeFormattingElements.entries.length;if(qa){const rd=this.activeFormattingElements.entries.findIndex(pd=>pd.type===EntryType.Marker||this.openElements.contains(pd.element)),sd=rd<0?qa-1:rd-1;for(let pd=sd;pd>=0;pd--){const fd=this.activeFormattingElements.entries[pd];this._insertElement(fd.token,this.treeAdapter.getNamespaceURI(fd.element)),fd.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=InsertionMode.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(TAG_ID.P),this.openElements.popUntilTagNamePopped(TAG_ID.P)}_resetInsertionMode(){for(let qa=this.openElements.stackTop;qa>=0;qa--)switch(qa===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[qa]){case TAG_ID.TR:{this.insertionMode=InsertionMode.IN_ROW;return}case TAG_ID.TBODY:case TAG_ID.THEAD:case TAG_ID.TFOOT:{this.insertionMode=InsertionMode.IN_TABLE_BODY;return}case TAG_ID.CAPTION:{this.insertionMode=InsertionMode.IN_CAPTION;return}case TAG_ID.COLGROUP:{this.insertionMode=InsertionMode.IN_COLUMN_GROUP;return}case TAG_ID.TABLE:{this.insertionMode=InsertionMode.IN_TABLE;return}case TAG_ID.BODY:{this.insertionMode=InsertionMode.IN_BODY;return}case TAG_ID.FRAMESET:{this.insertionMode=InsertionMode.IN_FRAMESET;return}case TAG_ID.SELECT:{this._resetInsertionModeForSelect(qa);return}case TAG_ID.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case TAG_ID.HTML:{this.insertionMode=this.headElement?InsertionMode.AFTER_HEAD:InsertionMode.BEFORE_HEAD;return}case TAG_ID.TD:case TAG_ID.TH:{if(qa>0){this.insertionMode=InsertionMode.IN_CELL;return}break}case TAG_ID.HEAD:{if(qa>0){this.insertionMode=InsertionMode.IN_HEAD;return}break}}this.insertionMode=InsertionMode.IN_BODY}_resetInsertionModeForSelect(qa){if(qa>0)for(let rd=qa-1;rd>0;rd--){const sd=this.openElements.tagIDs[rd];if(sd===TAG_ID.TEMPLATE)break;if(sd===TAG_ID.TABLE){this.insertionMode=InsertionMode.IN_SELECT_IN_TABLE;return}}this.insertionMode=InsertionMode.IN_SELECT}_isElementCausesFosterParenting(qa){return TABLE_STRUCTURE_TAGS.has(qa)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let qa=this.openElements.stackTop;qa>=0;qa--){const rd=this.openElements.items[qa];switch(this.openElements.tagIDs[qa]){case TAG_ID.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(rd)===NS.HTML)return{parent:this.treeAdapter.getTemplateContent(rd),beforeElement:null};break}case TAG_ID.TABLE:{const sd=this.treeAdapter.getParentNode(rd);return sd?{parent:sd,beforeElement:rd}:{parent:this.openElements.items[qa-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(qa){const rd=this._findFosterParentingLocation();rd.beforeElement?this.treeAdapter.insertBefore(rd.parent,qa,rd.beforeElement):this.treeAdapter.appendChild(rd.parent,qa)}_isSpecialElement(qa,rd){const sd=this.treeAdapter.getNamespaceURI(qa);return SPECIAL_ELEMENTS[sd].has(rd)}onCharacter(qa){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){characterInForeignContent(this,qa);return}switch(this.insertionMode){case InsertionMode.INITIAL:{tokenInInitialMode(this,qa);break}case InsertionMode.BEFORE_HTML:{tokenBeforeHtml(this,qa);break}case InsertionMode.BEFORE_HEAD:{tokenBeforeHead(this,qa);break}case InsertionMode.IN_HEAD:{tokenInHead(this,qa);break}case InsertionMode.IN_HEAD_NO_SCRIPT:{tokenInHeadNoScript(this,qa);break}case InsertionMode.AFTER_HEAD:{tokenAfterHead(this,qa);break}case InsertionMode.IN_BODY:case InsertionMode.IN_CAPTION:case InsertionMode.IN_CELL:case InsertionMode.IN_TEMPLATE:{characterInBody(this,qa);break}case InsertionMode.TEXT:case InsertionMode.IN_SELECT:case InsertionMode.IN_SELECT_IN_TABLE:{this._insertCharacters(qa);break}case InsertionMode.IN_TABLE:case InsertionMode.IN_TABLE_BODY:case InsertionMode.IN_ROW:{characterInTable(this,qa);break}case InsertionMode.IN_TABLE_TEXT:{characterInTableText(this,qa);break}case InsertionMode.IN_COLUMN_GROUP:{tokenInColumnGroup(this,qa);break}case InsertionMode.AFTER_BODY:{tokenAfterBody(this,qa);break}case InsertionMode.AFTER_AFTER_BODY:{tokenAfterAfterBody(this,qa);break}}}onNullCharacter(qa){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){nullCharacterInForeignContent(this,qa);return}switch(this.insertionMode){case InsertionMode.INITIAL:{tokenInInitialMode(this,qa);break}case InsertionMode.BEFORE_HTML:{tokenBeforeHtml(this,qa);break}case InsertionMode.BEFORE_HEAD:{tokenBeforeHead(this,qa);break}case InsertionMode.IN_HEAD:{tokenInHead(this,qa);break}case InsertionMode.IN_HEAD_NO_SCRIPT:{tokenInHeadNoScript(this,qa);break}case InsertionMode.AFTER_HEAD:{tokenAfterHead(this,qa);break}case InsertionMode.TEXT:{this._insertCharacters(qa);break}case InsertionMode.IN_TABLE:case InsertionMode.IN_TABLE_BODY:case InsertionMode.IN_ROW:{characterInTable(this,qa);break}case InsertionMode.IN_COLUMN_GROUP:{tokenInColumnGroup(this,qa);break}case InsertionMode.AFTER_BODY:{tokenAfterBody(this,qa);break}case InsertionMode.AFTER_AFTER_BODY:{tokenAfterAfterBody(this,qa);break}}}onComment(qa){if(this.skipNextNewLine=!1,this.currentNotInHTML){appendComment(this,qa);return}switch(this.insertionMode){case InsertionMode.INITIAL:case InsertionMode.BEFORE_HTML:case InsertionMode.BEFORE_HEAD:case InsertionMode.IN_HEAD:case InsertionMode.IN_HEAD_NO_SCRIPT:case InsertionMode.AFTER_HEAD:case InsertionMode.IN_BODY:case InsertionMode.IN_TABLE:case InsertionMode.IN_CAPTION:case InsertionMode.IN_COLUMN_GROUP:case InsertionMode.IN_TABLE_BODY:case InsertionMode.IN_ROW:case InsertionMode.IN_CELL:case InsertionMode.IN_SELECT:case InsertionMode.IN_SELECT_IN_TABLE:case InsertionMode.IN_TEMPLATE:case InsertionMode.IN_FRAMESET:case InsertionMode.AFTER_FRAMESET:{appendComment(this,qa);break}case InsertionMode.IN_TABLE_TEXT:{tokenInTableText(this,qa);break}case InsertionMode.AFTER_BODY:{appendCommentToRootHtmlElement(this,qa);break}case InsertionMode.AFTER_AFTER_BODY:case InsertionMode.AFTER_AFTER_FRAMESET:{appendCommentToDocument(this,qa);break}}}onDoctype(qa){switch(this.skipNextNewLine=!1,this.insertionMode){case InsertionMode.INITIAL:{doctypeInInitialMode(this,qa);break}case InsertionMode.BEFORE_HEAD:case InsertionMode.IN_HEAD:case InsertionMode.IN_HEAD_NO_SCRIPT:case InsertionMode.AFTER_HEAD:{this._err(qa,ERR.misplacedDoctype);break}case InsertionMode.IN_TABLE_TEXT:{tokenInTableText(this,qa);break}}}onStartTag(qa){this.skipNextNewLine=!1,this.currentToken=qa,this._processStartTag(qa),qa.selfClosing&&!qa.ackSelfClosing&&this._err(qa,ERR.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(qa){this.shouldProcessStartTagTokenInForeignContent(qa)?startTagInForeignContent(this,qa):this._startTagOutsideForeignContent(qa)}_startTagOutsideForeignContent(qa){switch(this.insertionMode){case InsertionMode.INITIAL:{tokenInInitialMode(this,qa);break}case InsertionMode.BEFORE_HTML:{startTagBeforeHtml(this,qa);break}case InsertionMode.BEFORE_HEAD:{startTagBeforeHead(this,qa);break}case InsertionMode.IN_HEAD:{startTagInHead(this,qa);break}case InsertionMode.IN_HEAD_NO_SCRIPT:{startTagInHeadNoScript(this,qa);break}case InsertionMode.AFTER_HEAD:{startTagAfterHead(this,qa);break}case InsertionMode.IN_BODY:{startTagInBody(this,qa);break}case InsertionMode.IN_TABLE:{startTagInTable(this,qa);break}case InsertionMode.IN_TABLE_TEXT:{tokenInTableText(this,qa);break}case InsertionMode.IN_CAPTION:{startTagInCaption(this,qa);break}case InsertionMode.IN_COLUMN_GROUP:{startTagInColumnGroup(this,qa);break}case InsertionMode.IN_TABLE_BODY:{startTagInTableBody(this,qa);break}case InsertionMode.IN_ROW:{startTagInRow(this,qa);break}case InsertionMode.IN_CELL:{startTagInCell(this,qa);break}case InsertionMode.IN_SELECT:{startTagInSelect(this,qa);break}case InsertionMode.IN_SELECT_IN_TABLE:{startTagInSelectInTable(this,qa);break}case InsertionMode.IN_TEMPLATE:{startTagInTemplate(this,qa);break}case InsertionMode.AFTER_BODY:{startTagAfterBody(this,qa);break}case InsertionMode.IN_FRAMESET:{startTagInFrameset(this,qa);break}case InsertionMode.AFTER_FRAMESET:{startTagAfterFrameset(this,qa);break}case InsertionMode.AFTER_AFTER_BODY:{startTagAfterAfterBody(this,qa);break}case InsertionMode.AFTER_AFTER_FRAMESET:{startTagAfterAfterFrameset(this,qa);break}}}onEndTag(qa){this.skipNextNewLine=!1,this.currentToken=qa,this.currentNotInHTML?endTagInForeignContent(this,qa):this._endTagOutsideForeignContent(qa)}_endTagOutsideForeignContent(qa){switch(this.insertionMode){case InsertionMode.INITIAL:{tokenInInitialMode(this,qa);break}case InsertionMode.BEFORE_HTML:{endTagBeforeHtml(this,qa);break}case InsertionMode.BEFORE_HEAD:{endTagBeforeHead(this,qa);break}case InsertionMode.IN_HEAD:{endTagInHead(this,qa);break}case InsertionMode.IN_HEAD_NO_SCRIPT:{endTagInHeadNoScript(this,qa);break}case InsertionMode.AFTER_HEAD:{endTagAfterHead(this,qa);break}case InsertionMode.IN_BODY:{endTagInBody(this,qa);break}case InsertionMode.TEXT:{endTagInText(this,qa);break}case InsertionMode.IN_TABLE:{endTagInTable(this,qa);break}case InsertionMode.IN_TABLE_TEXT:{tokenInTableText(this,qa);break}case InsertionMode.IN_CAPTION:{endTagInCaption(this,qa);break}case InsertionMode.IN_COLUMN_GROUP:{endTagInColumnGroup(this,qa);break}case InsertionMode.IN_TABLE_BODY:{endTagInTableBody(this,qa);break}case InsertionMode.IN_ROW:{endTagInRow(this,qa);break}case InsertionMode.IN_CELL:{endTagInCell(this,qa);break}case InsertionMode.IN_SELECT:{endTagInSelect(this,qa);break}case InsertionMode.IN_SELECT_IN_TABLE:{endTagInSelectInTable(this,qa);break}case InsertionMode.IN_TEMPLATE:{endTagInTemplate(this,qa);break}case InsertionMode.AFTER_BODY:{endTagAfterBody(this,qa);break}case InsertionMode.IN_FRAMESET:{endTagInFrameset(this,qa);break}case InsertionMode.AFTER_FRAMESET:{endTagAfterFrameset(this,qa);break}case InsertionMode.AFTER_AFTER_BODY:{tokenAfterAfterBody(this,qa);break}}}onEof(qa){switch(this.insertionMode){case InsertionMode.INITIAL:{tokenInInitialMode(this,qa);break}case InsertionMode.BEFORE_HTML:{tokenBeforeHtml(this,qa);break}case InsertionMode.BEFORE_HEAD:{tokenBeforeHead(this,qa);break}case InsertionMode.IN_HEAD:{tokenInHead(this,qa);break}case InsertionMode.IN_HEAD_NO_SCRIPT:{tokenInHeadNoScript(this,qa);break}case InsertionMode.AFTER_HEAD:{tokenAfterHead(this,qa);break}case InsertionMode.IN_BODY:case InsertionMode.IN_TABLE:case InsertionMode.IN_CAPTION:case InsertionMode.IN_COLUMN_GROUP:case InsertionMode.IN_TABLE_BODY:case InsertionMode.IN_ROW:case InsertionMode.IN_CELL:case InsertionMode.IN_SELECT:case InsertionMode.IN_SELECT_IN_TABLE:{eofInBody(this,qa);break}case InsertionMode.TEXT:{eofInText(this,qa);break}case InsertionMode.IN_TABLE_TEXT:{tokenInTableText(this,qa);break}case InsertionMode.IN_TEMPLATE:{eofInTemplate(this,qa);break}case InsertionMode.AFTER_BODY:case InsertionMode.IN_FRAMESET:case InsertionMode.AFTER_FRAMESET:case InsertionMode.AFTER_AFTER_BODY:case InsertionMode.AFTER_AFTER_FRAMESET:{stopParsing(this,qa);break}}}onWhitespaceCharacter(qa){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,qa.chars.charCodeAt(0)===CODE_POINTS.LINE_FEED)){if(qa.chars.length===1)return;qa.chars=qa.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(qa);return}switch(this.insertionMode){case InsertionMode.IN_HEAD:case InsertionMode.IN_HEAD_NO_SCRIPT:case InsertionMode.AFTER_HEAD:case InsertionMode.TEXT:case InsertionMode.IN_COLUMN_GROUP:case InsertionMode.IN_SELECT:case InsertionMode.IN_SELECT_IN_TABLE:case InsertionMode.IN_FRAMESET:case InsertionMode.AFTER_FRAMESET:{this._insertCharacters(qa);break}case InsertionMode.IN_BODY:case InsertionMode.IN_CAPTION:case InsertionMode.IN_CELL:case InsertionMode.IN_TEMPLATE:case InsertionMode.AFTER_BODY:case InsertionMode.AFTER_AFTER_BODY:case InsertionMode.AFTER_AFTER_FRAMESET:{whitespaceCharacterInBody(this,qa);break}case InsertionMode.IN_TABLE:case InsertionMode.IN_TABLE_BODY:case InsertionMode.IN_ROW:{characterInTable(this,qa);break}case InsertionMode.IN_TABLE_TEXT:{whitespaceCharacterInTableText(this,qa);break}}}};function aaObtainFormattingElementEntry(Ra,qa){let rd=Ra.activeFormattingElements.getElementEntryInScopeWithTagName(qa.tagName);return rd?Ra.openElements.contains(rd.element)?Ra.openElements.hasInScope(qa.tagID)||(rd=null):(Ra.activeFormattingElements.removeEntry(rd),rd=null):genericEndTagInBody(Ra,qa),rd}function aaObtainFurthestBlock(Ra,qa){let rd=null,sd=Ra.openElements.stackTop;for(;sd>=0;sd--){const pd=Ra.openElements.items[sd];if(pd===qa.element)break;Ra._isSpecialElement(pd,Ra.openElements.tagIDs[sd])&&(rd=pd)}return rd||(Ra.openElements.shortenToLength(sd<0?0:sd),Ra.activeFormattingElements.removeEntry(qa)),rd}function aaInnerLoop(Ra,qa,rd){let sd=qa,pd=Ra.openElements.getCommonAncestor(qa);for(let fd=0,hd=pd;hd!==rd;fd++,hd=pd){pd=Ra.openElements.getCommonAncestor(hd);const md=Ra.activeFormattingElements.getElementEntry(hd),gd=md&&fd>=AA_INNER_LOOP_ITER;!md||gd?(gd&&Ra.activeFormattingElements.removeEntry(md),Ra.openElements.remove(hd)):(hd=aaRecreateElementFromEntry(Ra,md),sd===qa&&(Ra.activeFormattingElements.bookmark=md),Ra.treeAdapter.detachNode(sd),Ra.treeAdapter.appendChild(hd,sd),sd=hd)}return sd}function aaRecreateElementFromEntry(Ra,qa){const rd=Ra.treeAdapter.getNamespaceURI(qa.element),sd=Ra.treeAdapter.createElement(qa.token.tagName,rd,qa.token.attrs);return Ra.openElements.replace(qa.element,sd),qa.element=sd,sd}function aaInsertLastNodeInCommonAncestor(Ra,qa,rd){const sd=Ra.treeAdapter.getTagName(qa),pd=getTagID(sd);if(Ra._isElementCausesFosterParenting(pd))Ra._fosterParentElement(rd);else{const fd=Ra.treeAdapter.getNamespaceURI(qa);pd===TAG_ID.TEMPLATE&&fd===NS.HTML&&(qa=Ra.treeAdapter.getTemplateContent(qa)),Ra.treeAdapter.appendChild(qa,rd)}}function aaReplaceFormattingElement(Ra,qa,rd){const sd=Ra.treeAdapter.getNamespaceURI(rd.element),{token:pd}=rd,fd=Ra.treeAdapter.createElement(pd.tagName,sd,pd.attrs);Ra._adoptNodes(qa,fd),Ra.treeAdapter.appendChild(qa,fd),Ra.activeFormattingElements.insertElementAfterBookmark(fd,pd),Ra.activeFormattingElements.removeEntry(rd),Ra.openElements.remove(rd.element),Ra.openElements.insertAfter(qa,fd,pd.tagID)}function callAdoptionAgency(Ra,qa){for(let rd=0;rd=rd;sd--)Ra._setEndLocation(Ra.openElements.items[sd],qa);if(!Ra.fragmentContext&&Ra.openElements.stackTop>=0){const sd=Ra.openElements.items[0],pd=Ra.treeAdapter.getNodeSourceCodeLocation(sd);if(pd&&!pd.endTag&&(Ra._setEndLocation(sd,qa),Ra.openElements.stackTop>=1)){const fd=Ra.openElements.items[1],hd=Ra.treeAdapter.getNodeSourceCodeLocation(fd);hd&&!hd.endTag&&Ra._setEndLocation(fd,qa)}}}}function doctypeInInitialMode(Ra,qa){Ra._setDocumentType(qa);const rd=qa.forceQuirks?DOCUMENT_MODE.QUIRKS:getDocumentMode(qa);isConforming(qa)||Ra._err(qa,ERR.nonConformingDoctype),Ra.treeAdapter.setDocumentMode(Ra.document,rd),Ra.insertionMode=InsertionMode.BEFORE_HTML}function tokenInInitialMode(Ra,qa){Ra._err(qa,ERR.missingDoctype,!0),Ra.treeAdapter.setDocumentMode(Ra.document,DOCUMENT_MODE.QUIRKS),Ra.insertionMode=InsertionMode.BEFORE_HTML,Ra._processToken(qa)}function startTagBeforeHtml(Ra,qa){qa.tagID===TAG_ID.HTML?(Ra._insertElement(qa,NS.HTML),Ra.insertionMode=InsertionMode.BEFORE_HEAD):tokenBeforeHtml(Ra,qa)}function endTagBeforeHtml(Ra,qa){const rd=qa.tagID;(rd===TAG_ID.HTML||rd===TAG_ID.HEAD||rd===TAG_ID.BODY||rd===TAG_ID.BR)&&tokenBeforeHtml(Ra,qa)}function tokenBeforeHtml(Ra,qa){Ra._insertFakeRootElement(),Ra.insertionMode=InsertionMode.BEFORE_HEAD,Ra._processToken(qa)}function startTagBeforeHead(Ra,qa){switch(qa.tagID){case TAG_ID.HTML:{startTagInBody(Ra,qa);break}case TAG_ID.HEAD:{Ra._insertElement(qa,NS.HTML),Ra.headElement=Ra.openElements.current,Ra.insertionMode=InsertionMode.IN_HEAD;break}default:tokenBeforeHead(Ra,qa)}}function endTagBeforeHead(Ra,qa){const rd=qa.tagID;rd===TAG_ID.HEAD||rd===TAG_ID.BODY||rd===TAG_ID.HTML||rd===TAG_ID.BR?tokenBeforeHead(Ra,qa):Ra._err(qa,ERR.endTagWithoutMatchingOpenElement)}function tokenBeforeHead(Ra,qa){Ra._insertFakeElement(TAG_NAMES.HEAD,TAG_ID.HEAD),Ra.headElement=Ra.openElements.current,Ra.insertionMode=InsertionMode.IN_HEAD,Ra._processToken(qa)}function startTagInHead(Ra,qa){switch(qa.tagID){case TAG_ID.HTML:{startTagInBody(Ra,qa);break}case TAG_ID.BASE:case TAG_ID.BASEFONT:case TAG_ID.BGSOUND:case TAG_ID.LINK:case TAG_ID.META:{Ra._appendElement(qa,NS.HTML),qa.ackSelfClosing=!0;break}case TAG_ID.TITLE:{Ra._switchToTextParsing(qa,TokenizerMode.RCDATA);break}case TAG_ID.NOSCRIPT:{Ra.options.scriptingEnabled?Ra._switchToTextParsing(qa,TokenizerMode.RAWTEXT):(Ra._insertElement(qa,NS.HTML),Ra.insertionMode=InsertionMode.IN_HEAD_NO_SCRIPT);break}case TAG_ID.NOFRAMES:case TAG_ID.STYLE:{Ra._switchToTextParsing(qa,TokenizerMode.RAWTEXT);break}case TAG_ID.SCRIPT:{Ra._switchToTextParsing(qa,TokenizerMode.SCRIPT_DATA);break}case TAG_ID.TEMPLATE:{Ra._insertTemplate(qa),Ra.activeFormattingElements.insertMarker(),Ra.framesetOk=!1,Ra.insertionMode=InsertionMode.IN_TEMPLATE,Ra.tmplInsertionModeStack.unshift(InsertionMode.IN_TEMPLATE);break}case TAG_ID.HEAD:{Ra._err(qa,ERR.misplacedStartTagForHeadElement);break}default:tokenInHead(Ra,qa)}}function endTagInHead(Ra,qa){switch(qa.tagID){case TAG_ID.HEAD:{Ra.openElements.pop(),Ra.insertionMode=InsertionMode.AFTER_HEAD;break}case TAG_ID.BODY:case TAG_ID.BR:case TAG_ID.HTML:{tokenInHead(Ra,qa);break}case TAG_ID.TEMPLATE:{templateEndTagInHead(Ra,qa);break}default:Ra._err(qa,ERR.endTagWithoutMatchingOpenElement)}}function templateEndTagInHead(Ra,qa){Ra.openElements.tmplCount>0?(Ra.openElements.generateImpliedEndTagsThoroughly(),Ra.openElements.currentTagId!==TAG_ID.TEMPLATE&&Ra._err(qa,ERR.closingOfElementWithOpenChildElements),Ra.openElements.popUntilTagNamePopped(TAG_ID.TEMPLATE),Ra.activeFormattingElements.clearToLastMarker(),Ra.tmplInsertionModeStack.shift(),Ra._resetInsertionMode()):Ra._err(qa,ERR.endTagWithoutMatchingOpenElement)}function tokenInHead(Ra,qa){Ra.openElements.pop(),Ra.insertionMode=InsertionMode.AFTER_HEAD,Ra._processToken(qa)}function startTagInHeadNoScript(Ra,qa){switch(qa.tagID){case TAG_ID.HTML:{startTagInBody(Ra,qa);break}case TAG_ID.BASEFONT:case TAG_ID.BGSOUND:case TAG_ID.HEAD:case TAG_ID.LINK:case TAG_ID.META:case TAG_ID.NOFRAMES:case TAG_ID.STYLE:{startTagInHead(Ra,qa);break}case TAG_ID.NOSCRIPT:{Ra._err(qa,ERR.nestedNoscriptInHead);break}default:tokenInHeadNoScript(Ra,qa)}}function endTagInHeadNoScript(Ra,qa){switch(qa.tagID){case TAG_ID.NOSCRIPT:{Ra.openElements.pop(),Ra.insertionMode=InsertionMode.IN_HEAD;break}case TAG_ID.BR:{tokenInHeadNoScript(Ra,qa);break}default:Ra._err(qa,ERR.endTagWithoutMatchingOpenElement)}}function tokenInHeadNoScript(Ra,qa){const rd=qa.type===TokenType.EOF?ERR.openElementsLeftAfterEof:ERR.disallowedContentInNoscriptInHead;Ra._err(qa,rd),Ra.openElements.pop(),Ra.insertionMode=InsertionMode.IN_HEAD,Ra._processToken(qa)}function startTagAfterHead(Ra,qa){switch(qa.tagID){case TAG_ID.HTML:{startTagInBody(Ra,qa);break}case TAG_ID.BODY:{Ra._insertElement(qa,NS.HTML),Ra.framesetOk=!1,Ra.insertionMode=InsertionMode.IN_BODY;break}case TAG_ID.FRAMESET:{Ra._insertElement(qa,NS.HTML),Ra.insertionMode=InsertionMode.IN_FRAMESET;break}case TAG_ID.BASE:case TAG_ID.BASEFONT:case TAG_ID.BGSOUND:case TAG_ID.LINK:case TAG_ID.META:case TAG_ID.NOFRAMES:case TAG_ID.SCRIPT:case TAG_ID.STYLE:case TAG_ID.TEMPLATE:case TAG_ID.TITLE:{Ra._err(qa,ERR.abandonedHeadElementChild),Ra.openElements.push(Ra.headElement,TAG_ID.HEAD),startTagInHead(Ra,qa),Ra.openElements.remove(Ra.headElement);break}case TAG_ID.HEAD:{Ra._err(qa,ERR.misplacedStartTagForHeadElement);break}default:tokenAfterHead(Ra,qa)}}function endTagAfterHead(Ra,qa){switch(qa.tagID){case TAG_ID.BODY:case TAG_ID.HTML:case TAG_ID.BR:{tokenAfterHead(Ra,qa);break}case TAG_ID.TEMPLATE:{templateEndTagInHead(Ra,qa);break}default:Ra._err(qa,ERR.endTagWithoutMatchingOpenElement)}}function tokenAfterHead(Ra,qa){Ra._insertFakeElement(TAG_NAMES.BODY,TAG_ID.BODY),Ra.insertionMode=InsertionMode.IN_BODY,modeInBody(Ra,qa)}function modeInBody(Ra,qa){switch(qa.type){case TokenType.CHARACTER:{characterInBody(Ra,qa);break}case TokenType.WHITESPACE_CHARACTER:{whitespaceCharacterInBody(Ra,qa);break}case TokenType.COMMENT:{appendComment(Ra,qa);break}case TokenType.START_TAG:{startTagInBody(Ra,qa);break}case TokenType.END_TAG:{endTagInBody(Ra,qa);break}case TokenType.EOF:{eofInBody(Ra,qa);break}}}function whitespaceCharacterInBody(Ra,qa){Ra._reconstructActiveFormattingElements(),Ra._insertCharacters(qa)}function characterInBody(Ra,qa){Ra._reconstructActiveFormattingElements(),Ra._insertCharacters(qa),Ra.framesetOk=!1}function htmlStartTagInBody(Ra,qa){Ra.openElements.tmplCount===0&&Ra.treeAdapter.adoptAttributes(Ra.openElements.items[0],qa.attrs)}function bodyStartTagInBody(Ra,qa){const rd=Ra.openElements.tryPeekProperlyNestedBodyElement();rd&&Ra.openElements.tmplCount===0&&(Ra.framesetOk=!1,Ra.treeAdapter.adoptAttributes(rd,qa.attrs))}function framesetStartTagInBody(Ra,qa){const rd=Ra.openElements.tryPeekProperlyNestedBodyElement();Ra.framesetOk&&rd&&(Ra.treeAdapter.detachNode(rd),Ra.openElements.popAllUpToHtmlElement(),Ra._insertElement(qa,NS.HTML),Ra.insertionMode=InsertionMode.IN_FRAMESET)}function addressStartTagInBody(Ra,qa){Ra.openElements.hasInButtonScope(TAG_ID.P)&&Ra._closePElement(),Ra._insertElement(qa,NS.HTML)}function numberedHeaderStartTagInBody(Ra,qa){Ra.openElements.hasInButtonScope(TAG_ID.P)&&Ra._closePElement(),NUMBERED_HEADERS.has(Ra.openElements.currentTagId)&&Ra.openElements.pop(),Ra._insertElement(qa,NS.HTML)}function preStartTagInBody(Ra,qa){Ra.openElements.hasInButtonScope(TAG_ID.P)&&Ra._closePElement(),Ra._insertElement(qa,NS.HTML),Ra.skipNextNewLine=!0,Ra.framesetOk=!1}function formStartTagInBody(Ra,qa){const rd=Ra.openElements.tmplCount>0;(!Ra.formElement||rd)&&(Ra.openElements.hasInButtonScope(TAG_ID.P)&&Ra._closePElement(),Ra._insertElement(qa,NS.HTML),rd||(Ra.formElement=Ra.openElements.current))}function listItemStartTagInBody(Ra,qa){Ra.framesetOk=!1;const rd=qa.tagID;for(let sd=Ra.openElements.stackTop;sd>=0;sd--){const pd=Ra.openElements.tagIDs[sd];if(rd===TAG_ID.LI&&pd===TAG_ID.LI||(rd===TAG_ID.DD||rd===TAG_ID.DT)&&(pd===TAG_ID.DD||pd===TAG_ID.DT)){Ra.openElements.generateImpliedEndTagsWithExclusion(pd),Ra.openElements.popUntilTagNamePopped(pd);break}if(pd!==TAG_ID.ADDRESS&&pd!==TAG_ID.DIV&&pd!==TAG_ID.P&&Ra._isSpecialElement(Ra.openElements.items[sd],pd))break}Ra.openElements.hasInButtonScope(TAG_ID.P)&&Ra._closePElement(),Ra._insertElement(qa,NS.HTML)}function plaintextStartTagInBody(Ra,qa){Ra.openElements.hasInButtonScope(TAG_ID.P)&&Ra._closePElement(),Ra._insertElement(qa,NS.HTML),Ra.tokenizer.state=TokenizerMode.PLAINTEXT}function buttonStartTagInBody(Ra,qa){Ra.openElements.hasInScope(TAG_ID.BUTTON)&&(Ra.openElements.generateImpliedEndTags(),Ra.openElements.popUntilTagNamePopped(TAG_ID.BUTTON)),Ra._reconstructActiveFormattingElements(),Ra._insertElement(qa,NS.HTML),Ra.framesetOk=!1}function aStartTagInBody(Ra,qa){const rd=Ra.activeFormattingElements.getElementEntryInScopeWithTagName(TAG_NAMES.A);rd&&(callAdoptionAgency(Ra,qa),Ra.openElements.remove(rd.element),Ra.activeFormattingElements.removeEntry(rd)),Ra._reconstructActiveFormattingElements(),Ra._insertElement(qa,NS.HTML),Ra.activeFormattingElements.pushElement(Ra.openElements.current,qa)}function bStartTagInBody(Ra,qa){Ra._reconstructActiveFormattingElements(),Ra._insertElement(qa,NS.HTML),Ra.activeFormattingElements.pushElement(Ra.openElements.current,qa)}function nobrStartTagInBody(Ra,qa){Ra._reconstructActiveFormattingElements(),Ra.openElements.hasInScope(TAG_ID.NOBR)&&(callAdoptionAgency(Ra,qa),Ra._reconstructActiveFormattingElements()),Ra._insertElement(qa,NS.HTML),Ra.activeFormattingElements.pushElement(Ra.openElements.current,qa)}function appletStartTagInBody(Ra,qa){Ra._reconstructActiveFormattingElements(),Ra._insertElement(qa,NS.HTML),Ra.activeFormattingElements.insertMarker(),Ra.framesetOk=!1}function tableStartTagInBody(Ra,qa){Ra.treeAdapter.getDocumentMode(Ra.document)!==DOCUMENT_MODE.QUIRKS&&Ra.openElements.hasInButtonScope(TAG_ID.P)&&Ra._closePElement(),Ra._insertElement(qa,NS.HTML),Ra.framesetOk=!1,Ra.insertionMode=InsertionMode.IN_TABLE}function areaStartTagInBody(Ra,qa){Ra._reconstructActiveFormattingElements(),Ra._appendElement(qa,NS.HTML),Ra.framesetOk=!1,qa.ackSelfClosing=!0}function isHiddenInput(Ra){const qa=getTokenAttr(Ra,ATTRS.TYPE);return qa!=null&&qa.toLowerCase()===HIDDEN_INPUT_TYPE}function inputStartTagInBody(Ra,qa){Ra._reconstructActiveFormattingElements(),Ra._appendElement(qa,NS.HTML),isHiddenInput(qa)||(Ra.framesetOk=!1),qa.ackSelfClosing=!0}function paramStartTagInBody(Ra,qa){Ra._appendElement(qa,NS.HTML),qa.ackSelfClosing=!0}function hrStartTagInBody(Ra,qa){Ra.openElements.hasInButtonScope(TAG_ID.P)&&Ra._closePElement(),Ra._appendElement(qa,NS.HTML),Ra.framesetOk=!1,qa.ackSelfClosing=!0}function imageStartTagInBody(Ra,qa){qa.tagName=TAG_NAMES.IMG,qa.tagID=TAG_ID.IMG,areaStartTagInBody(Ra,qa)}function textareaStartTagInBody(Ra,qa){Ra._insertElement(qa,NS.HTML),Ra.skipNextNewLine=!0,Ra.tokenizer.state=TokenizerMode.RCDATA,Ra.originalInsertionMode=Ra.insertionMode,Ra.framesetOk=!1,Ra.insertionMode=InsertionMode.TEXT}function xmpStartTagInBody(Ra,qa){Ra.openElements.hasInButtonScope(TAG_ID.P)&&Ra._closePElement(),Ra._reconstructActiveFormattingElements(),Ra.framesetOk=!1,Ra._switchToTextParsing(qa,TokenizerMode.RAWTEXT)}function iframeStartTagInBody(Ra,qa){Ra.framesetOk=!1,Ra._switchToTextParsing(qa,TokenizerMode.RAWTEXT)}function rawTextStartTagInBody(Ra,qa){Ra._switchToTextParsing(qa,TokenizerMode.RAWTEXT)}function selectStartTagInBody(Ra,qa){Ra._reconstructActiveFormattingElements(),Ra._insertElement(qa,NS.HTML),Ra.framesetOk=!1,Ra.insertionMode=Ra.insertionMode===InsertionMode.IN_TABLE||Ra.insertionMode===InsertionMode.IN_CAPTION||Ra.insertionMode===InsertionMode.IN_TABLE_BODY||Ra.insertionMode===InsertionMode.IN_ROW||Ra.insertionMode===InsertionMode.IN_CELL?InsertionMode.IN_SELECT_IN_TABLE:InsertionMode.IN_SELECT}function optgroupStartTagInBody(Ra,qa){Ra.openElements.currentTagId===TAG_ID.OPTION&&Ra.openElements.pop(),Ra._reconstructActiveFormattingElements(),Ra._insertElement(qa,NS.HTML)}function rbStartTagInBody(Ra,qa){Ra.openElements.hasInScope(TAG_ID.RUBY)&&Ra.openElements.generateImpliedEndTags(),Ra._insertElement(qa,NS.HTML)}function rtStartTagInBody(Ra,qa){Ra.openElements.hasInScope(TAG_ID.RUBY)&&Ra.openElements.generateImpliedEndTagsWithExclusion(TAG_ID.RTC),Ra._insertElement(qa,NS.HTML)}function mathStartTagInBody(Ra,qa){Ra._reconstructActiveFormattingElements(),adjustTokenMathMLAttrs(qa),adjustTokenXMLAttrs(qa),qa.selfClosing?Ra._appendElement(qa,NS.MATHML):Ra._insertElement(qa,NS.MATHML),qa.ackSelfClosing=!0}function svgStartTagInBody(Ra,qa){Ra._reconstructActiveFormattingElements(),adjustTokenSVGAttrs(qa),adjustTokenXMLAttrs(qa),qa.selfClosing?Ra._appendElement(qa,NS.SVG):Ra._insertElement(qa,NS.SVG),qa.ackSelfClosing=!0}function genericStartTagInBody(Ra,qa){Ra._reconstructActiveFormattingElements(),Ra._insertElement(qa,NS.HTML)}function startTagInBody(Ra,qa){switch(qa.tagID){case TAG_ID.I:case TAG_ID.S:case TAG_ID.B:case TAG_ID.U:case TAG_ID.EM:case TAG_ID.TT:case TAG_ID.BIG:case TAG_ID.CODE:case TAG_ID.FONT:case TAG_ID.SMALL:case TAG_ID.STRIKE:case TAG_ID.STRONG:{bStartTagInBody(Ra,qa);break}case TAG_ID.A:{aStartTagInBody(Ra,qa);break}case TAG_ID.H1:case TAG_ID.H2:case TAG_ID.H3:case TAG_ID.H4:case TAG_ID.H5:case TAG_ID.H6:{numberedHeaderStartTagInBody(Ra,qa);break}case TAG_ID.P:case TAG_ID.DL:case TAG_ID.OL:case TAG_ID.UL:case TAG_ID.DIV:case TAG_ID.DIR:case TAG_ID.NAV:case TAG_ID.MAIN:case TAG_ID.MENU:case TAG_ID.ASIDE:case TAG_ID.CENTER:case TAG_ID.FIGURE:case TAG_ID.FOOTER:case TAG_ID.HEADER:case TAG_ID.HGROUP:case TAG_ID.DIALOG:case TAG_ID.DETAILS:case TAG_ID.ADDRESS:case TAG_ID.ARTICLE:case TAG_ID.SEARCH:case TAG_ID.SECTION:case TAG_ID.SUMMARY:case TAG_ID.FIELDSET:case TAG_ID.BLOCKQUOTE:case TAG_ID.FIGCAPTION:{addressStartTagInBody(Ra,qa);break}case TAG_ID.LI:case TAG_ID.DD:case TAG_ID.DT:{listItemStartTagInBody(Ra,qa);break}case TAG_ID.BR:case TAG_ID.IMG:case TAG_ID.WBR:case TAG_ID.AREA:case TAG_ID.EMBED:case TAG_ID.KEYGEN:{areaStartTagInBody(Ra,qa);break}case TAG_ID.HR:{hrStartTagInBody(Ra,qa);break}case TAG_ID.RB:case TAG_ID.RTC:{rbStartTagInBody(Ra,qa);break}case TAG_ID.RT:case TAG_ID.RP:{rtStartTagInBody(Ra,qa);break}case TAG_ID.PRE:case TAG_ID.LISTING:{preStartTagInBody(Ra,qa);break}case TAG_ID.XMP:{xmpStartTagInBody(Ra,qa);break}case TAG_ID.SVG:{svgStartTagInBody(Ra,qa);break}case TAG_ID.HTML:{htmlStartTagInBody(Ra,qa);break}case TAG_ID.BASE:case TAG_ID.LINK:case TAG_ID.META:case TAG_ID.STYLE:case TAG_ID.TITLE:case TAG_ID.SCRIPT:case TAG_ID.BGSOUND:case TAG_ID.BASEFONT:case TAG_ID.TEMPLATE:{startTagInHead(Ra,qa);break}case TAG_ID.BODY:{bodyStartTagInBody(Ra,qa);break}case TAG_ID.FORM:{formStartTagInBody(Ra,qa);break}case TAG_ID.NOBR:{nobrStartTagInBody(Ra,qa);break}case TAG_ID.MATH:{mathStartTagInBody(Ra,qa);break}case TAG_ID.TABLE:{tableStartTagInBody(Ra,qa);break}case TAG_ID.INPUT:{inputStartTagInBody(Ra,qa);break}case TAG_ID.PARAM:case TAG_ID.TRACK:case TAG_ID.SOURCE:{paramStartTagInBody(Ra,qa);break}case TAG_ID.IMAGE:{imageStartTagInBody(Ra,qa);break}case TAG_ID.BUTTON:{buttonStartTagInBody(Ra,qa);break}case TAG_ID.APPLET:case TAG_ID.OBJECT:case TAG_ID.MARQUEE:{appletStartTagInBody(Ra,qa);break}case TAG_ID.IFRAME:{iframeStartTagInBody(Ra,qa);break}case TAG_ID.SELECT:{selectStartTagInBody(Ra,qa);break}case TAG_ID.OPTION:case TAG_ID.OPTGROUP:{optgroupStartTagInBody(Ra,qa);break}case TAG_ID.NOEMBED:case TAG_ID.NOFRAMES:{rawTextStartTagInBody(Ra,qa);break}case TAG_ID.FRAMESET:{framesetStartTagInBody(Ra,qa);break}case TAG_ID.TEXTAREA:{textareaStartTagInBody(Ra,qa);break}case TAG_ID.NOSCRIPT:{Ra.options.scriptingEnabled?rawTextStartTagInBody(Ra,qa):genericStartTagInBody(Ra,qa);break}case TAG_ID.PLAINTEXT:{plaintextStartTagInBody(Ra,qa);break}case TAG_ID.COL:case TAG_ID.TH:case TAG_ID.TD:case TAG_ID.TR:case TAG_ID.HEAD:case TAG_ID.FRAME:case TAG_ID.TBODY:case TAG_ID.TFOOT:case TAG_ID.THEAD:case TAG_ID.CAPTION:case TAG_ID.COLGROUP:break;default:genericStartTagInBody(Ra,qa)}}function bodyEndTagInBody(Ra,qa){if(Ra.openElements.hasInScope(TAG_ID.BODY)&&(Ra.insertionMode=InsertionMode.AFTER_BODY,Ra.options.sourceCodeLocationInfo)){const rd=Ra.openElements.tryPeekProperlyNestedBodyElement();rd&&Ra._setEndLocation(rd,qa)}}function htmlEndTagInBody(Ra,qa){Ra.openElements.hasInScope(TAG_ID.BODY)&&(Ra.insertionMode=InsertionMode.AFTER_BODY,endTagAfterBody(Ra,qa))}function addressEndTagInBody(Ra,qa){const rd=qa.tagID;Ra.openElements.hasInScope(rd)&&(Ra.openElements.generateImpliedEndTags(),Ra.openElements.popUntilTagNamePopped(rd))}function formEndTagInBody(Ra){const qa=Ra.openElements.tmplCount>0,{formElement:rd}=Ra;qa||(Ra.formElement=null),(rd||qa)&&Ra.openElements.hasInScope(TAG_ID.FORM)&&(Ra.openElements.generateImpliedEndTags(),qa?Ra.openElements.popUntilTagNamePopped(TAG_ID.FORM):rd&&Ra.openElements.remove(rd))}function pEndTagInBody(Ra){Ra.openElements.hasInButtonScope(TAG_ID.P)||Ra._insertFakeElement(TAG_NAMES.P,TAG_ID.P),Ra._closePElement()}function liEndTagInBody(Ra){Ra.openElements.hasInListItemScope(TAG_ID.LI)&&(Ra.openElements.generateImpliedEndTagsWithExclusion(TAG_ID.LI),Ra.openElements.popUntilTagNamePopped(TAG_ID.LI))}function ddEndTagInBody(Ra,qa){const rd=qa.tagID;Ra.openElements.hasInScope(rd)&&(Ra.openElements.generateImpliedEndTagsWithExclusion(rd),Ra.openElements.popUntilTagNamePopped(rd))}function numberedHeaderEndTagInBody(Ra){Ra.openElements.hasNumberedHeaderInScope()&&(Ra.openElements.generateImpliedEndTags(),Ra.openElements.popUntilNumberedHeaderPopped())}function appletEndTagInBody(Ra,qa){const rd=qa.tagID;Ra.openElements.hasInScope(rd)&&(Ra.openElements.generateImpliedEndTags(),Ra.openElements.popUntilTagNamePopped(rd),Ra.activeFormattingElements.clearToLastMarker())}function brEndTagInBody(Ra){Ra._reconstructActiveFormattingElements(),Ra._insertFakeElement(TAG_NAMES.BR,TAG_ID.BR),Ra.openElements.pop(),Ra.framesetOk=!1}function genericEndTagInBody(Ra,qa){const rd=qa.tagName,sd=qa.tagID;for(let pd=Ra.openElements.stackTop;pd>0;pd--){const fd=Ra.openElements.items[pd],hd=Ra.openElements.tagIDs[pd];if(sd===hd&&(sd!==TAG_ID.UNKNOWN||Ra.treeAdapter.getTagName(fd)===rd)){Ra.openElements.generateImpliedEndTagsWithExclusion(sd),Ra.openElements.stackTop>=pd&&Ra.openElements.shortenToLength(pd);break}if(Ra._isSpecialElement(fd,hd))break}}function endTagInBody(Ra,qa){switch(qa.tagID){case TAG_ID.A:case TAG_ID.B:case TAG_ID.I:case TAG_ID.S:case TAG_ID.U:case TAG_ID.EM:case TAG_ID.TT:case TAG_ID.BIG:case TAG_ID.CODE:case TAG_ID.FONT:case TAG_ID.NOBR:case TAG_ID.SMALL:case TAG_ID.STRIKE:case TAG_ID.STRONG:{callAdoptionAgency(Ra,qa);break}case TAG_ID.P:{pEndTagInBody(Ra);break}case TAG_ID.DL:case TAG_ID.UL:case TAG_ID.OL:case TAG_ID.DIR:case TAG_ID.DIV:case TAG_ID.NAV:case TAG_ID.PRE:case TAG_ID.MAIN:case TAG_ID.MENU:case TAG_ID.ASIDE:case TAG_ID.BUTTON:case TAG_ID.CENTER:case TAG_ID.FIGURE:case TAG_ID.FOOTER:case TAG_ID.HEADER:case TAG_ID.HGROUP:case TAG_ID.DIALOG:case TAG_ID.ADDRESS:case TAG_ID.ARTICLE:case TAG_ID.DETAILS:case TAG_ID.SEARCH:case TAG_ID.SECTION:case TAG_ID.SUMMARY:case TAG_ID.LISTING:case TAG_ID.FIELDSET:case TAG_ID.BLOCKQUOTE:case TAG_ID.FIGCAPTION:{addressEndTagInBody(Ra,qa);break}case TAG_ID.LI:{liEndTagInBody(Ra);break}case TAG_ID.DD:case TAG_ID.DT:{ddEndTagInBody(Ra,qa);break}case TAG_ID.H1:case TAG_ID.H2:case TAG_ID.H3:case TAG_ID.H4:case TAG_ID.H5:case TAG_ID.H6:{numberedHeaderEndTagInBody(Ra);break}case TAG_ID.BR:{brEndTagInBody(Ra);break}case TAG_ID.BODY:{bodyEndTagInBody(Ra,qa);break}case TAG_ID.HTML:{htmlEndTagInBody(Ra,qa);break}case TAG_ID.FORM:{formEndTagInBody(Ra);break}case TAG_ID.APPLET:case TAG_ID.OBJECT:case TAG_ID.MARQUEE:{appletEndTagInBody(Ra,qa);break}case TAG_ID.TEMPLATE:{templateEndTagInHead(Ra,qa);break}default:genericEndTagInBody(Ra,qa)}}function eofInBody(Ra,qa){Ra.tmplInsertionModeStack.length>0?eofInTemplate(Ra,qa):stopParsing(Ra,qa)}function endTagInText(Ra,qa){var rd;qa.tagID===TAG_ID.SCRIPT&&((rd=Ra.scriptHandler)===null||rd===void 0||rd.call(Ra,Ra.openElements.current)),Ra.openElements.pop(),Ra.insertionMode=Ra.originalInsertionMode}function eofInText(Ra,qa){Ra._err(qa,ERR.eofInElementThatCanContainOnlyText),Ra.openElements.pop(),Ra.insertionMode=Ra.originalInsertionMode,Ra.onEof(qa)}function characterInTable(Ra,qa){if(TABLE_STRUCTURE_TAGS.has(Ra.openElements.currentTagId))switch(Ra.pendingCharacterTokens.length=0,Ra.hasNonWhitespacePendingCharacterToken=!1,Ra.originalInsertionMode=Ra.insertionMode,Ra.insertionMode=InsertionMode.IN_TABLE_TEXT,qa.type){case TokenType.CHARACTER:{characterInTableText(Ra,qa);break}case TokenType.WHITESPACE_CHARACTER:{whitespaceCharacterInTableText(Ra,qa);break}}else tokenInTable(Ra,qa)}function captionStartTagInTable(Ra,qa){Ra.openElements.clearBackToTableContext(),Ra.activeFormattingElements.insertMarker(),Ra._insertElement(qa,NS.HTML),Ra.insertionMode=InsertionMode.IN_CAPTION}function colgroupStartTagInTable(Ra,qa){Ra.openElements.clearBackToTableContext(),Ra._insertElement(qa,NS.HTML),Ra.insertionMode=InsertionMode.IN_COLUMN_GROUP}function colStartTagInTable(Ra,qa){Ra.openElements.clearBackToTableContext(),Ra._insertFakeElement(TAG_NAMES.COLGROUP,TAG_ID.COLGROUP),Ra.insertionMode=InsertionMode.IN_COLUMN_GROUP,startTagInColumnGroup(Ra,qa)}function tbodyStartTagInTable(Ra,qa){Ra.openElements.clearBackToTableContext(),Ra._insertElement(qa,NS.HTML),Ra.insertionMode=InsertionMode.IN_TABLE_BODY}function tdStartTagInTable(Ra,qa){Ra.openElements.clearBackToTableContext(),Ra._insertFakeElement(TAG_NAMES.TBODY,TAG_ID.TBODY),Ra.insertionMode=InsertionMode.IN_TABLE_BODY,startTagInTableBody(Ra,qa)}function tableStartTagInTable(Ra,qa){Ra.openElements.hasInTableScope(TAG_ID.TABLE)&&(Ra.openElements.popUntilTagNamePopped(TAG_ID.TABLE),Ra._resetInsertionMode(),Ra._processStartTag(qa))}function inputStartTagInTable(Ra,qa){isHiddenInput(qa)?Ra._appendElement(qa,NS.HTML):tokenInTable(Ra,qa),qa.ackSelfClosing=!0}function formStartTagInTable(Ra,qa){!Ra.formElement&&Ra.openElements.tmplCount===0&&(Ra._insertElement(qa,NS.HTML),Ra.formElement=Ra.openElements.current,Ra.openElements.pop())}function startTagInTable(Ra,qa){switch(qa.tagID){case TAG_ID.TD:case TAG_ID.TH:case TAG_ID.TR:{tdStartTagInTable(Ra,qa);break}case TAG_ID.STYLE:case TAG_ID.SCRIPT:case TAG_ID.TEMPLATE:{startTagInHead(Ra,qa);break}case TAG_ID.COL:{colStartTagInTable(Ra,qa);break}case TAG_ID.FORM:{formStartTagInTable(Ra,qa);break}case TAG_ID.TABLE:{tableStartTagInTable(Ra,qa);break}case TAG_ID.TBODY:case TAG_ID.TFOOT:case TAG_ID.THEAD:{tbodyStartTagInTable(Ra,qa);break}case TAG_ID.INPUT:{inputStartTagInTable(Ra,qa);break}case TAG_ID.CAPTION:{captionStartTagInTable(Ra,qa);break}case TAG_ID.COLGROUP:{colgroupStartTagInTable(Ra,qa);break}default:tokenInTable(Ra,qa)}}function endTagInTable(Ra,qa){switch(qa.tagID){case TAG_ID.TABLE:{Ra.openElements.hasInTableScope(TAG_ID.TABLE)&&(Ra.openElements.popUntilTagNamePopped(TAG_ID.TABLE),Ra._resetInsertionMode());break}case TAG_ID.TEMPLATE:{templateEndTagInHead(Ra,qa);break}case TAG_ID.BODY:case TAG_ID.CAPTION:case TAG_ID.COL:case TAG_ID.COLGROUP:case TAG_ID.HTML:case TAG_ID.TBODY:case TAG_ID.TD:case TAG_ID.TFOOT:case TAG_ID.TH:case TAG_ID.THEAD:case TAG_ID.TR:break;default:tokenInTable(Ra,qa)}}function tokenInTable(Ra,qa){const rd=Ra.fosterParentingEnabled;Ra.fosterParentingEnabled=!0,modeInBody(Ra,qa),Ra.fosterParentingEnabled=rd}function whitespaceCharacterInTableText(Ra,qa){Ra.pendingCharacterTokens.push(qa)}function characterInTableText(Ra,qa){Ra.pendingCharacterTokens.push(qa),Ra.hasNonWhitespacePendingCharacterToken=!0}function tokenInTableText(Ra,qa){let rd=0;if(Ra.hasNonWhitespacePendingCharacterToken)for(;rd0&&Ra.openElements.currentTagId===TAG_ID.OPTION&&Ra.openElements.tagIDs[Ra.openElements.stackTop-1]===TAG_ID.OPTGROUP&&Ra.openElements.pop(),Ra.openElements.currentTagId===TAG_ID.OPTGROUP&&Ra.openElements.pop();break}case TAG_ID.OPTION:{Ra.openElements.currentTagId===TAG_ID.OPTION&&Ra.openElements.pop();break}case TAG_ID.SELECT:{Ra.openElements.hasInSelectScope(TAG_ID.SELECT)&&(Ra.openElements.popUntilTagNamePopped(TAG_ID.SELECT),Ra._resetInsertionMode());break}case TAG_ID.TEMPLATE:{templateEndTagInHead(Ra,qa);break}}}function startTagInSelectInTable(Ra,qa){const rd=qa.tagID;rd===TAG_ID.CAPTION||rd===TAG_ID.TABLE||rd===TAG_ID.TBODY||rd===TAG_ID.TFOOT||rd===TAG_ID.THEAD||rd===TAG_ID.TR||rd===TAG_ID.TD||rd===TAG_ID.TH?(Ra.openElements.popUntilTagNamePopped(TAG_ID.SELECT),Ra._resetInsertionMode(),Ra._processStartTag(qa)):startTagInSelect(Ra,qa)}function endTagInSelectInTable(Ra,qa){const rd=qa.tagID;rd===TAG_ID.CAPTION||rd===TAG_ID.TABLE||rd===TAG_ID.TBODY||rd===TAG_ID.TFOOT||rd===TAG_ID.THEAD||rd===TAG_ID.TR||rd===TAG_ID.TD||rd===TAG_ID.TH?Ra.openElements.hasInTableScope(rd)&&(Ra.openElements.popUntilTagNamePopped(TAG_ID.SELECT),Ra._resetInsertionMode(),Ra.onEndTag(qa)):endTagInSelect(Ra,qa)}function startTagInTemplate(Ra,qa){switch(qa.tagID){case TAG_ID.BASE:case TAG_ID.BASEFONT:case TAG_ID.BGSOUND:case TAG_ID.LINK:case TAG_ID.META:case TAG_ID.NOFRAMES:case TAG_ID.SCRIPT:case TAG_ID.STYLE:case TAG_ID.TEMPLATE:case TAG_ID.TITLE:{startTagInHead(Ra,qa);break}case TAG_ID.CAPTION:case TAG_ID.COLGROUP:case TAG_ID.TBODY:case TAG_ID.TFOOT:case TAG_ID.THEAD:{Ra.tmplInsertionModeStack[0]=InsertionMode.IN_TABLE,Ra.insertionMode=InsertionMode.IN_TABLE,startTagInTable(Ra,qa);break}case TAG_ID.COL:{Ra.tmplInsertionModeStack[0]=InsertionMode.IN_COLUMN_GROUP,Ra.insertionMode=InsertionMode.IN_COLUMN_GROUP,startTagInColumnGroup(Ra,qa);break}case TAG_ID.TR:{Ra.tmplInsertionModeStack[0]=InsertionMode.IN_TABLE_BODY,Ra.insertionMode=InsertionMode.IN_TABLE_BODY,startTagInTableBody(Ra,qa);break}case TAG_ID.TD:case TAG_ID.TH:{Ra.tmplInsertionModeStack[0]=InsertionMode.IN_ROW,Ra.insertionMode=InsertionMode.IN_ROW,startTagInRow(Ra,qa);break}default:Ra.tmplInsertionModeStack[0]=InsertionMode.IN_BODY,Ra.insertionMode=InsertionMode.IN_BODY,startTagInBody(Ra,qa)}}function endTagInTemplate(Ra,qa){qa.tagID===TAG_ID.TEMPLATE&&templateEndTagInHead(Ra,qa)}function eofInTemplate(Ra,qa){Ra.openElements.tmplCount>0?(Ra.openElements.popUntilTagNamePopped(TAG_ID.TEMPLATE),Ra.activeFormattingElements.clearToLastMarker(),Ra.tmplInsertionModeStack.shift(),Ra._resetInsertionMode(),Ra.onEof(qa)):stopParsing(Ra,qa)}function startTagAfterBody(Ra,qa){qa.tagID===TAG_ID.HTML?startTagInBody(Ra,qa):tokenAfterBody(Ra,qa)}function endTagAfterBody(Ra,qa){var rd;if(qa.tagID===TAG_ID.HTML){if(Ra.fragmentContext||(Ra.insertionMode=InsertionMode.AFTER_AFTER_BODY),Ra.options.sourceCodeLocationInfo&&Ra.openElements.tagIDs[0]===TAG_ID.HTML){Ra._setEndLocation(Ra.openElements.items[0],qa);const sd=Ra.openElements.items[1];sd&&!(!((rd=Ra.treeAdapter.getNodeSourceCodeLocation(sd))===null||rd===void 0)&&rd.endTag)&&Ra._setEndLocation(sd,qa)}}else tokenAfterBody(Ra,qa)}function tokenAfterBody(Ra,qa){Ra.insertionMode=InsertionMode.IN_BODY,modeInBody(Ra,qa)}function startTagInFrameset(Ra,qa){switch(qa.tagID){case TAG_ID.HTML:{startTagInBody(Ra,qa);break}case TAG_ID.FRAMESET:{Ra._insertElement(qa,NS.HTML);break}case TAG_ID.FRAME:{Ra._appendElement(qa,NS.HTML),qa.ackSelfClosing=!0;break}case TAG_ID.NOFRAMES:{startTagInHead(Ra,qa);break}}}function endTagInFrameset(Ra,qa){qa.tagID===TAG_ID.FRAMESET&&!Ra.openElements.isRootHtmlElementCurrent()&&(Ra.openElements.pop(),!Ra.fragmentContext&&Ra.openElements.currentTagId!==TAG_ID.FRAMESET&&(Ra.insertionMode=InsertionMode.AFTER_FRAMESET))}function startTagAfterFrameset(Ra,qa){switch(qa.tagID){case TAG_ID.HTML:{startTagInBody(Ra,qa);break}case TAG_ID.NOFRAMES:{startTagInHead(Ra,qa);break}}}function endTagAfterFrameset(Ra,qa){qa.tagID===TAG_ID.HTML&&(Ra.insertionMode=InsertionMode.AFTER_AFTER_FRAMESET)}function startTagAfterAfterBody(Ra,qa){qa.tagID===TAG_ID.HTML?startTagInBody(Ra,qa):tokenAfterAfterBody(Ra,qa)}function tokenAfterAfterBody(Ra,qa){Ra.insertionMode=InsertionMode.IN_BODY,modeInBody(Ra,qa)}function startTagAfterAfterFrameset(Ra,qa){switch(qa.tagID){case TAG_ID.HTML:{startTagInBody(Ra,qa);break}case TAG_ID.NOFRAMES:{startTagInHead(Ra,qa);break}}}function nullCharacterInForeignContent(Ra,qa){qa.chars=REPLACEMENT_CHARACTER,Ra._insertCharacters(qa)}function characterInForeignContent(Ra,qa){Ra._insertCharacters(qa),Ra.framesetOk=!1}function popUntilHtmlOrIntegrationPoint(Ra){for(;Ra.treeAdapter.getNamespaceURI(Ra.openElements.current)!==NS.HTML&&!Ra._isIntegrationPoint(Ra.openElements.currentTagId,Ra.openElements.current);)Ra.openElements.pop()}function startTagInForeignContent(Ra,qa){if(causesExit(qa))popUntilHtmlOrIntegrationPoint(Ra),Ra._startTagOutsideForeignContent(qa);else{const rd=Ra._getAdjustedCurrentElement(),sd=Ra.treeAdapter.getNamespaceURI(rd);sd===NS.MATHML?adjustTokenMathMLAttrs(qa):sd===NS.SVG&&(adjustTokenSVGTagName(qa),adjustTokenSVGAttrs(qa)),adjustTokenXMLAttrs(qa),qa.selfClosing?Ra._appendElement(qa,sd):Ra._insertElement(qa,sd),qa.ackSelfClosing=!0}}function endTagInForeignContent(Ra,qa){if(qa.tagID===TAG_ID.P||qa.tagID===TAG_ID.BR){popUntilHtmlOrIntegrationPoint(Ra),Ra._endTagOutsideForeignContent(qa);return}for(let rd=Ra.openElements.stackTop;rd>0;rd--){const sd=Ra.openElements.items[rd];if(Ra.treeAdapter.getNamespaceURI(sd)===NS.HTML){Ra._endTagOutsideForeignContent(qa);break}const pd=Ra.treeAdapter.getTagName(sd);if(pd.toLowerCase()===qa.tagName){qa.tagName=pd,Ra.openElements.shortenToLength(rd);break}}}const VOID_ELEMENTS=new Set([TAG_NAMES.AREA,TAG_NAMES.BASE,TAG_NAMES.BASEFONT,TAG_NAMES.BGSOUND,TAG_NAMES.BR,TAG_NAMES.COL,TAG_NAMES.EMBED,TAG_NAMES.FRAME,TAG_NAMES.HR,TAG_NAMES.IMG,TAG_NAMES.INPUT,TAG_NAMES.KEYGEN,TAG_NAMES.LINK,TAG_NAMES.META,TAG_NAMES.PARAM,TAG_NAMES.SOURCE,TAG_NAMES.TRACK,TAG_NAMES.WBR]);function isVoidElement(Ra,qa){return qa.treeAdapter.isElementNode(Ra)&&qa.treeAdapter.getNamespaceURI(Ra)===NS.HTML&&VOID_ELEMENTS.has(qa.treeAdapter.getTagName(Ra))}const defaultOpts={treeAdapter:defaultTreeAdapter,scriptingEnabled:!0};function serializeOuter(Ra,qa){const rd={...defaultOpts,...qa};return serializeNode(Ra,rd)}function serializeChildNodes(Ra,qa){let rd="";const sd=qa.treeAdapter.isElementNode(Ra)&&qa.treeAdapter.getTagName(Ra)===TAG_NAMES.TEMPLATE&&qa.treeAdapter.getNamespaceURI(Ra)===NS.HTML?qa.treeAdapter.getTemplateContent(Ra):Ra,pd=qa.treeAdapter.getChildNodes(sd);if(pd)for(const fd of pd)rd+=serializeNode(fd,qa);return rd}function serializeNode(Ra,qa){return qa.treeAdapter.isElementNode(Ra)?serializeElement(Ra,qa):qa.treeAdapter.isTextNode(Ra)?serializeTextNode(Ra,qa):qa.treeAdapter.isCommentNode(Ra)?serializeCommentNode(Ra,qa):qa.treeAdapter.isDocumentTypeNode(Ra)?serializeDocumentTypeNode(Ra,qa):""}function serializeElement(Ra,qa){const rd=qa.treeAdapter.getTagName(Ra);return`<${rd}${serializeAttributes(Ra,qa)}>${isVoidElement(Ra,qa)?"":`${serializeChildNodes(Ra,qa)}`}`}function serializeAttributes(Ra,{treeAdapter:qa}){let rd="";for(const sd of qa.getAttrList(Ra)){if(rd+=" ",sd.namespace)switch(sd.namespace){case NS.XML:{rd+=`xml:${sd.name}`;break}case NS.XMLNS:{sd.name!=="xmlns"&&(rd+="xmlns:"),rd+=sd.name;break}case NS.XLINK:{rd+=`xlink:${sd.name}`;break}default:rd+=`${sd.prefix}:${sd.name}`}else rd+=sd.name;rd+=`="${escapeAttribute(sd.value)}"`}return rd}function serializeTextNode(Ra,qa){const{treeAdapter:rd}=qa,sd=rd.getTextNodeContent(Ra),pd=rd.getParentNode(Ra),fd=pd&&rd.isElementNode(pd)&&rd.getTagName(pd);return fd&&rd.getNamespaceURI(pd)===NS.HTML&&hasUnescapedText(fd,qa.scriptingEnabled)?sd:escapeText(sd)}function serializeCommentNode(Ra,{treeAdapter:qa}){return``}function serializeDocumentTypeNode(Ra,{treeAdapter:qa}){return``}function parse$5(Ra,qa){return Parser$2.parse(Ra,qa)}function parseFragment(Ra,qa,rd){typeof Ra=="string"&&(rd=qa,qa=Ra,Ra=null);const sd=Parser$2.getFragmentParser(Ra,rd);return sd.tokenizer.write(qa,!0),sd.getFragment()}function enquoteDoctypeId(Ra){const qa=Ra.includes('"')?"'":'"';return qa+Ra+qa}function serializeDoctypeContent(Ra,qa,rd){let sd="!DOCTYPE ";return Ra&&(sd+=Ra),qa?sd+=` PUBLIC ${enquoteDoctypeId(qa)}`:rd&&(sd+=" SYSTEM"),rd&&(sd+=` ${enquoteDoctypeId(rd)}`),sd}const adapter={isCommentNode:isComment,isElementNode:isTag,isTextNode:isText,createDocument(){const Ra=new Document([]);return Ra["x-mode"]=DOCUMENT_MODE.NO_QUIRKS,Ra},createDocumentFragment(){return new Document([])},createElement(Ra,qa,rd){const sd=Object.create(null),pd=Object.create(null),fd=Object.create(null);for(let md=0;mdisDirective(hd)&&hd.name==="!doctype");fd?fd.data=pd??null:(fd=new ProcessingInstruction("!doctype",pd),adapter.appendChild(Ra,fd)),fd["x-name"]=qa,fd["x-publicId"]=rd,fd["x-systemId"]=sd},setDocumentMode(Ra,qa){Ra["x-mode"]=qa},getDocumentMode(Ra){return Ra["x-mode"]},detachNode(Ra){if(Ra.parent){const qa=Ra.parent.children.indexOf(Ra),{prev:rd,next:sd}=Ra;Ra.prev=null,Ra.next=null,rd&&(rd.next=sd),sd&&(sd.prev=rd),Ra.parent.children.splice(qa,1),Ra.parent=null}},insertText(Ra,qa){const rd=Ra.children[Ra.children.length-1];rd&&isText(rd)?rd.data+=qa:adapter.appendChild(Ra,adapter.createTextNode(qa))},insertTextBefore(Ra,qa,rd){const sd=Ra.children[Ra.children.indexOf(rd)-1];sd&&isText(sd)?sd.data+=qa:adapter.insertBefore(Ra,adapter.createTextNode(qa),rd)},adoptAttributes(Ra,qa){for(let rd=0;rd=CharCodes.LowerA&&Ra<=CharCodes.LowerZ||Ra>=CharCodes.UpperA&&Ra<=CharCodes.UpperZ}var QuoteType;(function(Ra){Ra[Ra.NoValue=0]="NoValue",Ra[Ra.Unquoted=1]="Unquoted",Ra[Ra.Single=2]="Single",Ra[Ra.Double=3]="Double"})(QuoteType||(QuoteType={}));const Sequences={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101]),TextareaEnd:new Uint8Array([60,47,116,101,120,116,97,114,101,97])};class Tokenizer{constructor({xmlMode:qa=!1,decodeEntities:rd=!0},sd){this.cbs=sd,this.state=State$4.Text,this.buffer="",this.sectionStart=0,this.index=0,this.entityStart=0,this.baseState=State$4.Text,this.isSpecial=!1,this.running=!0,this.offset=0,this.currentSequence=void 0,this.sequenceIndex=0,this.xmlMode=qa,this.decodeEntities=rd,this.entityDecoder=new EntityDecoder(qa?xmlDecodeTree:htmlDecodeTree,(pd,fd)=>this.emitCodePoint(pd,fd))}reset(){this.state=State$4.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=State$4.Text,this.currentSequence=void 0,this.running=!0,this.offset=0}write(qa){this.offset+=this.buffer.length,this.buffer=qa,this.parse()}end(){this.running&&this.finish()}pause(){this.running=!1}resume(){this.running=!0,this.indexthis.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=State$4.BeforeTagName,this.sectionStart=this.index):this.decodeEntities&&qa===CharCodes.Amp&&this.startEntity()}stateSpecialStartSequence(qa){const rd=this.sequenceIndex===this.currentSequence.length;if(!(rd?isEndOfTagSection(qa):(qa|32)===this.currentSequence[this.sequenceIndex]))this.isSpecial=!1;else if(!rd){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=State$4.InTagName,this.stateInTagName(qa)}stateInSpecialTag(qa){if(this.sequenceIndex===this.currentSequence.length){if(qa===CharCodes.Gt||isWhitespace$2(qa)){const rd=this.index-this.currentSequence.length;if(this.sectionStart=0?(this.state=this.baseState,qa===0&&(this.index=this.entityStart)):this.index=this.offset+this.buffer.length-1}cleanup(){this.running&&this.sectionStart!==this.index&&(this.state===State$4.Text||this.state===State$4.InSpecialTag&&this.sequenceIndex===0?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):(this.state===State$4.InAttributeValueDq||this.state===State$4.InAttributeValueSq||this.state===State$4.InAttributeValueNq)&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))}shouldContinue(){return this.index=qa||(this.state===State$4.InCommentLike?this.currentSequence===Sequences.CdataEnd?this.cbs.oncdata(this.sectionStart,qa,0):this.cbs.oncomment(this.sectionStart,qa,0):this.state===State$4.InTagName||this.state===State$4.BeforeAttributeName||this.state===State$4.BeforeAttributeValue||this.state===State$4.AfterAttributeName||this.state===State$4.InAttributeName||this.state===State$4.InAttributeValueSq||this.state===State$4.InAttributeValueDq||this.state===State$4.InAttributeValueNq||this.state===State$4.InClosingTagName||this.cbs.ontext(this.sectionStart,qa))}emitCodePoint(qa,rd){this.baseState!==State$4.Text&&this.baseState!==State$4.InSpecialTag?(this.sectionStart0&&hd.has(this.stack[0]);){const md=this.stack.shift();(sd=(rd=this.cbs).onclosetag)===null||sd===void 0||sd.call(rd,md,!0)}this.isVoidElement(qa)||(this.stack.unshift(qa),this.htmlMode&&(foreignContextElements.has(qa)?this.foreignContext.unshift(!0):htmlIntegrationElements.has(qa)&&this.foreignContext.unshift(!1))),(fd=(pd=this.cbs).onopentagname)===null||fd===void 0||fd.call(pd,qa),this.cbs.onopentag&&(this.attribs={})}endOpenTag(qa){var rd,sd;this.startIndex=this.openTagStart,this.attribs&&((sd=(rd=this.cbs).onopentag)===null||sd===void 0||sd.call(rd,this.tagname,this.attribs,qa),this.attribs=null),this.cbs.onclosetag&&this.isVoidElement(this.tagname)&&this.cbs.onclosetag(this.tagname,!0),this.tagname=""}onopentagend(qa){this.endIndex=qa,this.endOpenTag(!1),this.startIndex=qa+1}onclosetag(qa,rd){var sd,pd,fd,hd,md,gd,yd,vd;this.endIndex=rd;let Nd=this.getSlice(qa,rd);if(this.lowerCaseTagNames&&(Nd=Nd.toLowerCase()),this.htmlMode&&(foreignContextElements.has(Nd)||htmlIntegrationElements.has(Nd))&&this.foreignContext.shift(),this.isVoidElement(Nd))this.htmlMode&&Nd==="br"&&((hd=(fd=this.cbs).onopentagname)===null||hd===void 0||hd.call(fd,"br"),(gd=(md=this.cbs).onopentag)===null||gd===void 0||gd.call(md,"br",{},!0),(vd=(yd=this.cbs).onclosetag)===null||vd===void 0||vd.call(yd,"br",!1));else{const Md=this.stack.indexOf(Nd);if(Md!==-1)for(let Ld=0;Ld<=Md;Ld++){const Fd=this.stack.shift();(pd=(sd=this.cbs).onclosetag)===null||pd===void 0||pd.call(sd,Fd,Ld!==Md)}else this.htmlMode&&Nd==="p"&&(this.emitOpenTag("p"),this.closeCurrentTag(!0))}this.startIndex=rd+1}onselfclosingtag(qa){this.endIndex=qa,this.recognizeSelfClosing||this.foreignContext[0]?(this.closeCurrentTag(!1),this.startIndex=qa+1):this.onopentagend(qa)}closeCurrentTag(qa){var rd,sd;const pd=this.tagname;this.endOpenTag(qa),this.stack[0]===pd&&((sd=(rd=this.cbs).onclosetag)===null||sd===void 0||sd.call(rd,pd,!qa),this.stack.shift())}onattribname(qa,rd){this.startIndex=qa;const sd=this.getSlice(qa,rd);this.attribname=this.lowerCaseAttributeNames?sd.toLowerCase():sd}onattribdata(qa,rd){this.attribvalue+=this.getSlice(qa,rd)}onattribentity(qa){this.attribvalue+=fromCodePoint(qa)}onattribend(qa,rd){var sd,pd;this.endIndex=rd,(pd=(sd=this.cbs).onattribute)===null||pd===void 0||pd.call(sd,this.attribname,this.attribvalue,qa===QuoteType.Double?'"':qa===QuoteType.Single?"'":qa===QuoteType.NoValue?void 0:null),this.attribs&&!Object.prototype.hasOwnProperty.call(this.attribs,this.attribname)&&(this.attribs[this.attribname]=this.attribvalue),this.attribvalue=""}getInstructionName(qa){const rd=qa.search(reNameEnd);let sd=rd<0?qa:qa.substr(0,rd);return this.lowerCaseTagNames&&(sd=sd.toLowerCase()),sd}ondeclaration(qa,rd){this.endIndex=rd;const sd=this.getSlice(qa,rd);if(this.cbs.onprocessinginstruction){const pd=this.getInstructionName(sd);this.cbs.onprocessinginstruction(`!${pd}`,`!${sd}`)}this.startIndex=rd+1}onprocessinginstruction(qa,rd){this.endIndex=rd;const sd=this.getSlice(qa,rd);if(this.cbs.onprocessinginstruction){const pd=this.getInstructionName(sd);this.cbs.onprocessinginstruction(`?${pd}`,`?${sd}`)}this.startIndex=rd+1}oncomment(qa,rd,sd){var pd,fd,hd,md;this.endIndex=rd,(fd=(pd=this.cbs).oncomment)===null||fd===void 0||fd.call(pd,this.getSlice(qa,rd-sd)),(md=(hd=this.cbs).oncommentend)===null||md===void 0||md.call(hd),this.startIndex=rd+1}oncdata(qa,rd,sd){var pd,fd,hd,md,gd,yd,vd,Nd,Md,Ld;this.endIndex=rd;const Fd=this.getSlice(qa,rd-sd);!this.htmlMode||this.options.recognizeCDATA?((fd=(pd=this.cbs).oncdatastart)===null||fd===void 0||fd.call(pd),(md=(hd=this.cbs).ontext)===null||md===void 0||md.call(hd,Fd),(yd=(gd=this.cbs).oncdataend)===null||yd===void 0||yd.call(gd)):((Nd=(vd=this.cbs).oncomment)===null||Nd===void 0||Nd.call(vd,`[CDATA[${Fd}]]`),(Ld=(Md=this.cbs).oncommentend)===null||Ld===void 0||Ld.call(Md)),this.startIndex=rd+1}onend(){var qa,rd;if(this.cbs.onclosetag){this.endIndex=this.startIndex;for(let sd=0;sd=this.buffers[0].length;)this.shiftBuffer();let sd=this.buffers[0].slice(qa-this.bufferOffset,rd-this.bufferOffset);for(;rd-this.bufferOffset>this.buffers[0].length;)this.shiftBuffer(),sd+=this.buffers[0].slice(0,rd-this.bufferOffset);return sd}shiftBuffer(){this.bufferOffset+=this.buffers[0].length,this.writeIndex--,this.buffers.shift()}write(qa){var rd,sd;if(this.ended){(sd=(rd=this.cbs).onerror)===null||sd===void 0||sd.call(rd,new Error(".write() after done!"));return}this.buffers.push(qa),this.tokenizer.running&&(this.tokenizer.write(qa),this.writeIndex++)}end(qa){var rd,sd;if(this.ended){(sd=(rd=this.cbs).onerror)===null||sd===void 0||sd.call(rd,new Error(".end() after done!"));return}qa&&this.write(qa),this.ended=!0,this.tokenizer.end()}pause(){this.tokenizer.pause()}resume(){for(this.tokenizer.resume();this.tokenizer.running&&this.writeIndexqa._useHtmlParser2?parseDocument(Ra,qa):parseWithParse5(Ra,qa,rd,sd)),load$3=getLoad(parse$4,(Ra,qa)=>qa._useHtmlParser2?render$3(Ra,qa):renderWithParse5(Ra)),browser$2=Object.freeze(Object.defineProperty({__proto__:null,contains:contains$1,load:load$3,merge:merge$6},Symbol.toStringTag,{value:"Module"})),require$$0$2=getAugmentedNamespace(browser$2);var utils$4={},lexer={exports:{}},debug={exports:{}};(function(Ra,qa){var rd={version:"v20.18.3",versions:{node:"20.18.3",acorn:"8.14.0",ada:"2.9.2",ares:"1.34.4",base64:"0.5.2",brotli:"1.1.0",cjs_module_lexer:"1.4.1",cldr:"45.0",icu:"75.1",llhttp:"8.1.2",modules:"115",napi:"9",nghttp2:"1.61.0",nghttp3:"0.7.0",ngtcp2:"1.1.0",openssl:"3.0.15+quic",simdutf:"5.6.4",tz:"2024b",undici:"6.21.1",unicode:"15.1",uv:"1.46.0",uvwasi:"0.0.21",v8:"11.3.244.8-node.25",zlib:"1.3.0.1-motley-82a5fec"},arch:"x64",platform:"linux",release:{name:"node",lts:"Iron",sourceUrl:"https://nodejs.org/download/release/v20.18.3/node-v20.18.3.tar.gz",headersUrl:"https://nodejs.org/download/release/v20.18.3/node-v20.18.3-headers.tar.gz"},moduleLoadList:["Internal Binding builtins","Internal Binding module_wrap","Internal Binding errors","NativeModule internal/assert","Internal Binding util","NativeModule internal/errors","Internal Binding config","Internal Binding timers","Internal Binding async_wrap","Internal Binding task_queue","Internal Binding symbols","NativeModule internal/async_hooks","Internal Binding constants","Internal Binding types","Internal Binding options","NativeModule internal/options","Internal Binding string_decoder","NativeModule internal/util","NativeModule internal/util/types","NativeModule internal/validators","NativeModule internal/linkedlist","NativeModule internal/priority_queue","Internal Binding icu","NativeModule internal/util/inspect","NativeModule internal/util/debuglog","NativeModule internal/timers","NativeModule internal/events/abort_listener","NativeModule events","Internal Binding buffer","NativeModule internal/buffer","NativeModule buffer","Internal Binding messaging","NativeModule internal/worker/js_transferable","NativeModule internal/querystring","NativeModule internal/constants","NativeModule path","NativeModule querystring","Internal Binding url","NativeModule internal/url","NativeModule internal/fs/utils","Internal Binding process_methods","NativeModule internal/process/per_thread","Internal Binding credentials","NativeModule internal/process/promises","NativeModule internal/fixed_queue","NativeModule async_hooks","NativeModule internal/process/task_queues","NativeModule timers","Internal Binding trace_events","Internal Binding contextify","NativeModule internal/vm","NativeModule internal/process/execution","NativeModule internal/process/warning","NativeModule internal/source_map/source_map_cache","Internal Binding fs","Internal Binding blob","Internal Binding encoding_binding","NativeModule internal/encoding","NativeModule internal/streams/utils","NativeModule util","NativeModule internal/webstreams/util","NativeModule internal/webstreams/queuingstrategies","NativeModule internal/blob","Internal Binding permission","NativeModule internal/process/permission","NativeModule fs","NativeModule internal/modules/helpers","NativeModule internal/console/constructor","NativeModule internal/console/global","NativeModule internal/util/inspector","Internal Binding inspector","NativeModule internal/webidl","Internal Binding performance","NativeModule internal/perf/utils","NativeModule internal/event_target","Internal Binding wasm_web_api","Internal Binding mksnapshot","NativeModule internal/v8/startup_snapshot","NativeModule internal/process/signal","NativeModule url","NativeModule internal/modules/package_json_reader","NativeModule internal/modules/cjs/loader","NativeModule internal/process/pre_execution","NativeModule internal/modules/esm/utils","NativeModule internal/inspector_async_hook","Internal Binding worker","NativeModule internal/modules/run_main","NativeModule internal/net","NativeModule internal/dns/utils","NativeModule internal/modules/esm/assert","NativeModule internal/modules/esm/loader","NativeModule internal/modules/esm/module_map","NativeModule internal/modules/esm/translators","NativeModule internal/modules/esm/package_config","NativeModule internal/modules/esm/formats","NativeModule internal/modules/esm/get_format","NativeModule internal/modules/esm/resolve","NativeModule internal/modules/esm/module_job","NativeModule internal/modules/esm/load","Internal Binding fs_dir","NativeModule internal/fs/dir","NativeModule string_decoder","Internal Binding fs_event_wrap","Internal Binding uv","NativeModule internal/fs/watchers","NativeModule internal/fs/recursive_watch","NativeModule internal/readline/utils","NativeModule internal/readline/callbacks","NativeModule internal/readline/interface","NativeModule internal/fs/promises","NativeModule internal/perf/performance_entry","NativeModule internal/perf/observe","NativeModule internal/perf/resource_timing","NativeModule internal/perf/nodetiming","NativeModule internal/perf/usertiming","NativeModule internal/perf/event_loop_utilization","NativeModule internal/histogram","NativeModule internal/perf/timerify","NativeModule internal/perf/performance","NativeModule internal/perf/event_loop_delay","NativeModule perf_hooks","NativeModule internal/modules/esm/initialize_import_meta","NativeModule internal/streams/destroy","NativeModule internal/abort_controller","NativeModule internal/streams/end-of-stream","NativeModule internal/streams/legacy","NativeModule internal/streams/add-abort-signal","NativeModule internal/streams/state","NativeModule internal/streams/from","NativeModule internal/streams/readable","NativeModule internal/streams/writable","NativeModule internal/streams/duplex","NativeModule internal/streams/pipeline","NativeModule internal/streams/compose","NativeModule internal/streams/operators","NativeModule stream/promises","NativeModule internal/streams/transform","NativeModule internal/streams/passthrough","NativeModule internal/streams/duplexpair","NativeModule stream","NativeModule internal/fs/streams","NativeModule fs/promises","NativeModule internal/util/parse_args/utils","NativeModule internal/util/parse_args/parse_args","NativeModule internal/mime","NativeModule internal/source_map/source_map","NativeModule module","Internal Binding crypto","NativeModule internal/crypto/random","NativeModule internal/crypto/hashnames","NativeModule internal/crypto/util","NativeModule internal/crypto/pbkdf2","NativeModule internal/crypto/scrypt","NativeModule internal/crypto/keys","NativeModule internal/crypto/hkdf","NativeModule internal/crypto/keygen","NativeModule internal/crypto/diffiehellman","NativeModule internal/streams/lazy_transform","NativeModule internal/crypto/cipher","NativeModule internal/crypto/sig","NativeModule internal/crypto/hash","NativeModule internal/crypto/x509","NativeModule internal/crypto/certificate","NativeModule crypto","NativeModule internal/crypto/webcrypto","Internal Binding stream_wrap","Internal Binding tcp_wrap","Internal Binding pipe_wrap","NativeModule internal/stream_base_commons","NativeModule diagnostics_channel","NativeModule net","Internal Binding tty_wrap","NativeModule internal/tty","NativeModule tty","NativeModule internal/deps/cjs-module-lexer/dist/lexer","Internal Binding udp_wrap","NativeModule internal/dgram","NativeModule dgram","Internal Binding process_wrap","NativeModule internal/socket_list","Internal Binding spawn_sync","NativeModule internal/child_process","NativeModule child_process","NativeModule _http_agent","Internal Binding http_parser","NativeModule internal/freelist","NativeModule _http_incoming","NativeModule _http_common","NativeModule internal/http","NativeModule _http_outgoing","NativeModule _http_client","NativeModule _http_server","NativeModule http","Internal Binding cares_wrap","NativeModule internal/tls/secure-context","NativeModule _tls_common","Internal Binding js_stream","NativeModule internal/js_stream_socket","Internal Binding tls_wrap","NativeModule _tls_wrap","NativeModule internal/tls/secure-pair","NativeModule tls","NativeModule https","Internal Binding block_list","NativeModule internal/socketaddress","NativeModule internal/blocklist","Internal Binding os","NativeModule os","NativeModule internal/dns/callback_resolver","NativeModule dns","NativeModule internal/dns/promises","NativeModule internal/util/colors","NativeModule internal/assert/assertion_error","NativeModule internal/assert/utils","NativeModule internal/assert/calltracker","NativeModule assert","Internal Binding serdes","Internal Binding profiler","Internal Binding heap_utils","Internal Binding internal_only_v8","NativeModule internal/heap_utils","NativeModule internal/promise_hooks","Internal Binding v8","NativeModule v8","NativeModule internal/worker/io","NativeModule internal/error_serdes","NativeModule internal/worker","NativeModule worker_threads","NativeModule internal/file","NativeModule internal/readline/emitKeypressEvents","NativeModule internal/readline/promises","NativeModule readline/promises","NativeModule readline","Internal Binding zlib","NativeModule zlib","NativeModule process","Internal Binding report","NativeModule internal/process/report","NativeModule constants","NativeModule internal/crypto/webidl"],_events:{newListener:[null,null],removeListener:[null,null]},_eventsCount:3,domain:null,_exiting:!1,config:{target_defaults:{cflags:[],default_configuration:"Release",defines:["NODE_OPENSSL_CONF_NAME=nodejs_conf","NODE_OPENSSL_HAS_QUIC","ICU_NO_USER_DATA_OVERRIDE"],include_dirs:[],libraries:[]},variables:{asan:0,clang:0,coverage:!1,dcheck_always_on:0,debug_nghttp2:!1,debug_node:!1,enable_lto:!1,enable_pgo_generate:!1,enable_pgo_use:!1,error_on_warn:!1,force_dynamic_crt:0,gas_version:"2.35",host_arch:"x64",icu_data_in:"../../deps/icu-tmp/icudt75l.dat",icu_endianness:"l",icu_gyp_path:"tools/icu/icu-generic.gyp",icu_path:"deps/icu-small",icu_small:!1,icu_ver_major:"75",is_debug:0,libdir:"lib",llvm_version:"0.0",napi_build_version:"9",node_builtin_shareable_builtins:["deps/cjs-module-lexer/lexer.js","deps/cjs-module-lexer/dist/lexer.js","deps/undici/undici.js"],node_byteorder:"little",node_debug_lib:!1,node_enable_d8:!1,node_enable_v8_vtunejit:!1,node_fipsinstall:!1,node_install_corepack:!0,node_install_npm:!0,node_library_files:["lib/_http_agent.js","lib/_http_client.js","lib/_http_common.js","lib/_http_incoming.js","lib/_http_outgoing.js","lib/_http_server.js","lib/_stream_duplex.js","lib/_stream_passthrough.js","lib/_stream_readable.js","lib/_stream_transform.js","lib/_stream_wrap.js","lib/_stream_writable.js","lib/_tls_common.js","lib/_tls_wrap.js","lib/assert.js","lib/assert/strict.js","lib/async_hooks.js","lib/buffer.js","lib/child_process.js","lib/cluster.js","lib/console.js","lib/constants.js","lib/crypto.js","lib/dgram.js","lib/diagnostics_channel.js","lib/dns.js","lib/dns/promises.js","lib/domain.js","lib/events.js","lib/fs.js","lib/fs/promises.js","lib/http.js","lib/http2.js","lib/https.js","lib/inspector.js","lib/inspector/promises.js","lib/internal/abort_controller.js","lib/internal/assert.js","lib/internal/assert/assertion_error.js","lib/internal/assert/calltracker.js","lib/internal/assert/utils.js","lib/internal/async_hooks.js","lib/internal/blob.js","lib/internal/blocklist.js","lib/internal/bootstrap/node.js","lib/internal/bootstrap/realm.js","lib/internal/bootstrap/shadow_realm.js","lib/internal/bootstrap/switches/does_not_own_process_state.js","lib/internal/bootstrap/switches/does_own_process_state.js","lib/internal/bootstrap/switches/is_main_thread.js","lib/internal/bootstrap/switches/is_not_main_thread.js","lib/internal/bootstrap/web/exposed-wildcard.js","lib/internal/bootstrap/web/exposed-window-or-worker.js","lib/internal/buffer.js","lib/internal/child_process.js","lib/internal/child_process/serialization.js","lib/internal/cli_table.js","lib/internal/cluster/child.js","lib/internal/cluster/primary.js","lib/internal/cluster/round_robin_handle.js","lib/internal/cluster/shared_handle.js","lib/internal/cluster/utils.js","lib/internal/cluster/worker.js","lib/internal/console/constructor.js","lib/internal/console/global.js","lib/internal/constants.js","lib/internal/crypto/aes.js","lib/internal/crypto/certificate.js","lib/internal/crypto/cfrg.js","lib/internal/crypto/cipher.js","lib/internal/crypto/diffiehellman.js","lib/internal/crypto/ec.js","lib/internal/crypto/hash.js","lib/internal/crypto/hashnames.js","lib/internal/crypto/hkdf.js","lib/internal/crypto/keygen.js","lib/internal/crypto/keys.js","lib/internal/crypto/mac.js","lib/internal/crypto/pbkdf2.js","lib/internal/crypto/random.js","lib/internal/crypto/rsa.js","lib/internal/crypto/scrypt.js","lib/internal/crypto/sig.js","lib/internal/crypto/util.js","lib/internal/crypto/webcrypto.js","lib/internal/crypto/webidl.js","lib/internal/crypto/x509.js","lib/internal/debugger/inspect.js","lib/internal/debugger/inspect_client.js","lib/internal/debugger/inspect_repl.js","lib/internal/dgram.js","lib/internal/dns/callback_resolver.js","lib/internal/dns/promises.js","lib/internal/dns/utils.js","lib/internal/encoding.js","lib/internal/error_serdes.js","lib/internal/errors.js","lib/internal/event_target.js","lib/internal/events/abort_listener.js","lib/internal/events/symbols.js","lib/internal/file.js","lib/internal/fixed_queue.js","lib/internal/freelist.js","lib/internal/freeze_intrinsics.js","lib/internal/fs/cp/cp-sync.js","lib/internal/fs/cp/cp.js","lib/internal/fs/dir.js","lib/internal/fs/promises.js","lib/internal/fs/read/context.js","lib/internal/fs/recursive_watch.js","lib/internal/fs/rimraf.js","lib/internal/fs/streams.js","lib/internal/fs/sync_write_stream.js","lib/internal/fs/utils.js","lib/internal/fs/watchers.js","lib/internal/heap_utils.js","lib/internal/histogram.js","lib/internal/http.js","lib/internal/http2/compat.js","lib/internal/http2/core.js","lib/internal/http2/util.js","lib/internal/inspector_async_hook.js","lib/internal/inspector_network_tracking.js","lib/internal/js_stream_socket.js","lib/internal/legacy/processbinding.js","lib/internal/linkedlist.js","lib/internal/main/check_syntax.js","lib/internal/main/embedding.js","lib/internal/main/eval_stdin.js","lib/internal/main/eval_string.js","lib/internal/main/inspect.js","lib/internal/main/mksnapshot.js","lib/internal/main/print_help.js","lib/internal/main/prof_process.js","lib/internal/main/repl.js","lib/internal/main/run_main_module.js","lib/internal/main/test_runner.js","lib/internal/main/watch_mode.js","lib/internal/main/worker_thread.js","lib/internal/mime.js","lib/internal/modules/cjs/loader.js","lib/internal/modules/esm/assert.js","lib/internal/modules/esm/create_dynamic_module.js","lib/internal/modules/esm/fetch_module.js","lib/internal/modules/esm/formats.js","lib/internal/modules/esm/get_format.js","lib/internal/modules/esm/hooks.js","lib/internal/modules/esm/initialize_import_meta.js","lib/internal/modules/esm/load.js","lib/internal/modules/esm/loader.js","lib/internal/modules/esm/module_job.js","lib/internal/modules/esm/module_map.js","lib/internal/modules/esm/package_config.js","lib/internal/modules/esm/resolve.js","lib/internal/modules/esm/shared_constants.js","lib/internal/modules/esm/translators.js","lib/internal/modules/esm/utils.js","lib/internal/modules/esm/worker.js","lib/internal/modules/helpers.js","lib/internal/modules/package_json_reader.js","lib/internal/modules/run_main.js","lib/internal/navigator.js","lib/internal/net.js","lib/internal/options.js","lib/internal/per_context/domexception.js","lib/internal/per_context/messageport.js","lib/internal/per_context/primordials.js","lib/internal/perf/event_loop_delay.js","lib/internal/perf/event_loop_utilization.js","lib/internal/perf/nodetiming.js","lib/internal/perf/observe.js","lib/internal/perf/performance.js","lib/internal/perf/performance_entry.js","lib/internal/perf/resource_timing.js","lib/internal/perf/timerify.js","lib/internal/perf/usertiming.js","lib/internal/perf/utils.js","lib/internal/policy/manifest.js","lib/internal/policy/sri.js","lib/internal/priority_queue.js","lib/internal/process/execution.js","lib/internal/process/per_thread.js","lib/internal/process/permission.js","lib/internal/process/policy.js","lib/internal/process/pre_execution.js","lib/internal/process/promises.js","lib/internal/process/report.js","lib/internal/process/signal.js","lib/internal/process/task_queues.js","lib/internal/process/warning.js","lib/internal/process/worker_thread_only.js","lib/internal/promise_hooks.js","lib/internal/querystring.js","lib/internal/readline/callbacks.js","lib/internal/readline/emitKeypressEvents.js","lib/internal/readline/interface.js","lib/internal/readline/promises.js","lib/internal/readline/utils.js","lib/internal/repl.js","lib/internal/repl/await.js","lib/internal/repl/history.js","lib/internal/repl/utils.js","lib/internal/socket_list.js","lib/internal/socketaddress.js","lib/internal/source_map/prepare_stack_trace.js","lib/internal/source_map/source_map.js","lib/internal/source_map/source_map_cache.js","lib/internal/stream_base_commons.js","lib/internal/streams/add-abort-signal.js","lib/internal/streams/compose.js","lib/internal/streams/destroy.js","lib/internal/streams/duplex.js","lib/internal/streams/duplexify.js","lib/internal/streams/duplexpair.js","lib/internal/streams/end-of-stream.js","lib/internal/streams/from.js","lib/internal/streams/lazy_transform.js","lib/internal/streams/legacy.js","lib/internal/streams/operators.js","lib/internal/streams/passthrough.js","lib/internal/streams/pipeline.js","lib/internal/streams/readable.js","lib/internal/streams/state.js","lib/internal/streams/transform.js","lib/internal/streams/utils.js","lib/internal/streams/writable.js","lib/internal/test/binding.js","lib/internal/test/transfer.js","lib/internal/test_runner/coverage.js","lib/internal/test_runner/harness.js","lib/internal/test_runner/mock/loader.js","lib/internal/test_runner/mock/mock.js","lib/internal/test_runner/mock/mock_timers.js","lib/internal/test_runner/reporter/dot.js","lib/internal/test_runner/reporter/junit.js","lib/internal/test_runner/reporter/lcov.js","lib/internal/test_runner/reporter/spec.js","lib/internal/test_runner/reporter/tap.js","lib/internal/test_runner/reporter/utils.js","lib/internal/test_runner/reporter/v8-serializer.js","lib/internal/test_runner/runner.js","lib/internal/test_runner/test.js","lib/internal/test_runner/tests_stream.js","lib/internal/test_runner/utils.js","lib/internal/timers.js","lib/internal/tls/secure-context.js","lib/internal/tls/secure-pair.js","lib/internal/trace_events_async_hooks.js","lib/internal/tty.js","lib/internal/url.js","lib/internal/util.js","lib/internal/util/colors.js","lib/internal/util/comparisons.js","lib/internal/util/debuglog.js","lib/internal/util/embedding.js","lib/internal/util/inspect.js","lib/internal/util/inspector.js","lib/internal/util/iterable_weak_map.js","lib/internal/util/parse_args/parse_args.js","lib/internal/util/parse_args/utils.js","lib/internal/util/types.js","lib/internal/v8/startup_snapshot.js","lib/internal/v8_prof_polyfill.js","lib/internal/v8_prof_processor.js","lib/internal/validators.js","lib/internal/vm.js","lib/internal/vm/module.js","lib/internal/wasm_web_api.js","lib/internal/watch_mode/files_watcher.js","lib/internal/watchdog.js","lib/internal/webidl.js","lib/internal/webstreams/adapters.js","lib/internal/webstreams/compression.js","lib/internal/webstreams/encoding.js","lib/internal/webstreams/queuingstrategies.js","lib/internal/webstreams/readablestream.js","lib/internal/webstreams/transfer.js","lib/internal/webstreams/transformstream.js","lib/internal/webstreams/util.js","lib/internal/webstreams/writablestream.js","lib/internal/worker.js","lib/internal/worker/io.js","lib/internal/worker/js_transferable.js","lib/module.js","lib/net.js","lib/os.js","lib/path.js","lib/path/posix.js","lib/path/win32.js","lib/perf_hooks.js","lib/process.js","lib/punycode.js","lib/querystring.js","lib/readline.js","lib/readline/promises.js","lib/repl.js","lib/sea.js","lib/stream.js","lib/stream/consumers.js","lib/stream/promises.js","lib/stream/web.js","lib/string_decoder.js","lib/sys.js","lib/test.js","lib/test/reporters.js","lib/timers.js","lib/timers/promises.js","lib/tls.js","lib/trace_events.js","lib/tty.js","lib/url.js","lib/util.js","lib/util/types.js","lib/v8.js","lib/vm.js","lib/wasi.js","lib/worker_threads.js","lib/zlib.js"],node_module_version:115,node_no_browser_globals:!1,node_prefix:"/",node_release_urlbase:"https://nodejs.org/download/release/",node_section_ordering_info:"",node_shared:!1,node_shared_ada:!1,node_shared_brotli:!1,node_shared_cares:!1,node_shared_http_parser:!1,node_shared_libuv:!1,node_shared_nghttp2:!1,node_shared_nghttp3:!1,node_shared_ngtcp2:!1,node_shared_openssl:!1,node_shared_simdjson:!1,node_shared_simdutf:!1,node_shared_uvwasi:!1,node_shared_zlib:!1,node_tag:"",node_target_type:"executable",node_use_bundled_v8:!0,node_use_node_code_cache:!0,node_use_node_snapshot:!0,node_use_openssl:!0,node_use_v8_platform:!0,node_with_ltcg:!1,node_without_node_options:!1,node_write_snapshot_as_array_literals:!1,openssl_is_fips:!1,openssl_quic:!0,ossfuzz:!1,shlib_suffix:"so.115",single_executable_application:!0,target_arch:"x64",ubsan:0,use_prefix_to_find_headers:!1,v8_enable_31bit_smis_on_64bit_arch:0,v8_enable_extensible_ro_snapshot:0,v8_enable_gdbjit:0,v8_enable_hugepage:0,v8_enable_i18n_support:1,v8_enable_inspector:1,v8_enable_javascript_promise_hooks:1,v8_enable_lite_mode:0,v8_enable_maglev:0,v8_enable_object_print:1,v8_enable_pointer_compression:0,v8_enable_sandbox:0,v8_enable_shared_ro_heap:1,v8_enable_short_builtin_calls:1,v8_enable_v8_checks:0,v8_enable_webassembly:1,v8_no_strict_aliasing:1,v8_optimized_debug:1,v8_promise_internal_field_count:1,v8_random_seed:0,v8_trace_maps:0,v8_use_siphash:1,want_separate_host_toolset:0}},allowedNodeEnvironmentFlags:{},features:{inspector:!0,debug:!1,uv:!0,ipv6:!0,tls_alpn:!0,tls_sni:!0,tls_ocsp:!0,tls:!0,cached_builtins:!0},sourceMapsEnabled:!1,stdout:{connecting:!1,_hadError:!1,_parent:null,_host:null,_closeAfterHandlingError:!1,_events:{},_readableState:{highWaterMark:16384,buffer:[],bufferIndex:0,length:0,pipes:[],awaitDrainWriters:null,readable:!1},_writableState:{highWaterMark:16384,length:0,corked:0,writelen:0,bufferedIndex:0,pendingcb:0},allowHalfOpen:!1,_eventsCount:1,_sockname:null,_pendingData:null,_pendingEncoding:"",server:null,_server:null,_type:"pipe",fd:1,_isStdio:!0},stdin:{connecting:!1,_hadError:!1,_parent:null,_host:null,_closeAfterHandlingError:!1,_events:{},_readableState:{highWaterMark:16384,buffer:[],bufferIndex:0,length:0,pipes:[],awaitDrainWriters:null},_writableState:{highWaterMark:16384,length:0,corked:0,writelen:0,bufferedIndex:0,pendingcb:0},allowHalfOpen:!1,_eventsCount:2,_sockname:null,_pendingData:null,_pendingEncoding:"",server:null,_server:null,fd:0},stderr:{connecting:!1,_hadError:!1,_parent:null,_host:null,_closeAfterHandlingError:!1,_events:{},_readableState:{highWaterMark:16384,buffer:[],bufferIndex:0,length:0,pipes:[],awaitDrainWriters:null,readable:!1},_writableState:{highWaterMark:16384,length:0,corked:0,writelen:0,bufferedIndex:0,pendingcb:0},allowHalfOpen:!1,_eventsCount:1,_sockname:null,_pendingData:null,_pendingEncoding:"",server:null,_server:null,_type:"pipe",fd:2,_isStdio:!0},env:{GITHUB_STATE:"/home/runner/work/_temp/_runner_file_commands/save_state_d53cc035-1b76-4af7-9fb5-24f8457de40c",STATS_TRP:"true",DEPLOYMENT_BASEPATH:"/opt/runner",DOTNET_NOLOGO:"1",USER:"runner",npm_config_user_agent:"npm/10.8.2 node/v20.18.3 linux x64 workspaces/false ci/github-actions",CI:"true",RUNNER_ENVIRONMENT:"github-hosted",GITHUB_ENV:"/home/runner/work/_temp/_runner_file_commands/set_env_d53cc035-1b76-4af7-9fb5-24f8457de40c",PIPX_HOME:"/opt/pipx",npm_node_execpath:"/opt/hostedtoolcache/node/20.18.3/x64/bin/node",JAVA_HOME_8_X64:"/usr/lib/jvm/temurin-8-jdk-amd64",SHLVL:"1",npm_config_noproxy:"",HOME:"/home/runner",RUNNER_TEMP:"/home/runner/work/_temp",GITHUB_EVENT_PATH:"/home/runner/work/_temp/_github_workflow/event.json",npm_package_json:"/home/runner/work/md/md/package.json",JAVA_HOME_11_X64:"/usr/lib/jvm/temurin-11-jdk-amd64",PIPX_BIN_DIR:"/opt/pipx_bin",GITHUB_REPOSITORY_OWNER:"doocs",GRADLE_HOME:"/usr/share/gradle-8.12.1",ANDROID_NDK_LATEST_HOME:"/usr/local/lib/android/sdk/ndk/28.0.13004108",JAVA_HOME_21_X64:"/usr/lib/jvm/temurin-21-jdk-amd64",STATS_RDCL:"true",GITHUB_RETENTION_DAYS:"90",GITHUB_REPOSITORY_OWNER_ID:"43716716",POWERSHELL_DISTRIBUTION_CHANNEL:"GitHub-Actions-ubuntu24",AZURE_EXTENSION_DIR:"/opt/az/azcliextensions",GITHUB_HEAD_REF:"",npm_config_userconfig:"/home/runner/.npmrc",npm_config_local_prefix:"/home/runner/work/md/md",SYSTEMD_EXEC_PID:"835",GITHUB_GRAPHQL_URL:"https://api.github.com/graphql",COLOR:"0",NVM_DIR:"/home/runner/.nvm",DOTNET_SKIP_FIRST_TIME_EXPERIENCE:"1",GOROOT_1_21_X64:"/opt/hostedtoolcache/go/1.21.13/x64",JAVA_HOME_17_X64:"/usr/lib/jvm/temurin-17-jdk-amd64",ImageVersion:"20250223.1.0",RUNNER_OS:"Linux",GITHUB_API_URL:"https://api.github.com",GOROOT_1_22_X64:"/opt/hostedtoolcache/go/1.22.12/x64",SWIFT_PATH:"/usr/share/swift/usr/bin",RUNNER_USER:"runner",STATS_V3PS:"true",CHROMEWEBDRIVER:"/usr/local/share/chromedriver-linux64",GOROOT_1_23_X64:"/opt/hostedtoolcache/go/1.23.6/x64",JOURNAL_STREAM:"8:5890",GITHUB_WORKFLOW:"Build and Deploy",_:"/opt/hostedtoolcache/node/20.18.3/x64/bin/npm",npm_config_prefix:"/opt/hostedtoolcache/node/20.18.3/x64",npm_config_npm_version:"10.8.2",MEMORY_PRESSURE_WATCH:"/sys/fs/cgroup/system.slice/runner-provisioner.service/memory.pressure",ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE:"/opt/actionarchivecache",STATS_D:"true",GITHUB_RUN_ID:"13625656549",STATS_VMFE:"true",npm_config_cache:"/home/runner/.npm",GITHUB_REF_TYPE:"branch",BOOTSTRAP_HASKELL_NONINTERACTIVE:"1",GITHUB_WORKFLOW_SHA:"28ede70a704c676eed43a63c290863c0eb2e51aa",GITHUB_BASE_REF:"",ImageOS:"ubuntu24",GITHUB_WORKFLOW_REF:"doocs/md/.github/workflows/build.yml@refs/heads/main",PERFLOG_LOCATION_SETTING:"RUNNER_PERFLOG",GITHUB_ACTION_REPOSITORY:"",npm_config_node_gyp:"/opt/hostedtoolcache/node/20.18.3/x64/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",PATH:"/home/runner/work/md/md/node_modules/.bin:/home/runner/work/md/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/20.18.3/x64/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/home/runner/work/md/md/node_modules/.bin:/home/runner/work/md/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/20.18.3/x64/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/opt/hostedtoolcache/node/20.18.3/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin",ANT_HOME:"/usr/share/ant",DOTNET_MULTILEVEL_LOOKUP:"0",RUNNER_TRACKING_ID:"github_4ead6fd7-fa08-4c5d-a36f-08f8752a0ffe",INVOCATION_ID:"015617c2a5044170892be94fa638d8ab",RUNNER_TOOL_CACHE:"/opt/hostedtoolcache",NODE:"/opt/hostedtoolcache/node/20.18.3/x64/bin/node",npm_package_name:"md",GITHUB_ACTION:"__run_2",GITHUB_RUN_NUMBER:"502",GITHUB_TRIGGERING_ACTOR:"yanglbme",RUNNER_ARCH:"X64",XDG_RUNTIME_DIR:"/run/user/1001",AGENT_TOOLSDIRECTORY:"/opt/hostedtoolcache",LANG:"C.UTF-8",VCPKG_INSTALLATION_ROOT:"/usr/local/share/vcpkg",CONDA:"/usr/share/miniconda",RUNNER_NAME:"GitHub Actions 14",XDG_CONFIG_HOME:"/home/runner/.config",STATS_VMD:"true",GITHUB_REF_NAME:"main",GITHUB_REPOSITORY:"doocs/md",STATS_D_D:"true",npm_lifecycle_script:"vite build",STATS_UE:"true",ANDROID_NDK_ROOT:"/usr/local/lib/android/sdk/ndk/27.2.12479018",GITHUB_ACTION_REF:"",DEBIAN_FRONTEND:"noninteractive",GITHUB_REPOSITORY_ID:"218952803",GITHUB_ACTIONS:"true",STATS_PIP:"false",npm_package_version:"1.6.0",npm_lifecycle_event:"build:only",GITHUB_REF_PROTECTED:"true",GITHUB_WORKSPACE:"/home/runner/work/md/md",ACCEPT_EULA:"Y",GITHUB_JOB:"build-and-deploy",RUNNER_PERFLOG:"/home/runner/perflog",GITHUB_SHA:"28ede70a704c676eed43a63c290863c0eb2e51aa",GITHUB_RUN_ATTEMPT:"1",STATS_D_TC:"true",GITHUB_REF:"refs/heads/main",GITHUB_ACTOR:"yanglbme",ANDROID_SDK_ROOT:"/usr/local/lib/android/sdk",npm_config_globalconfig:"/opt/hostedtoolcache/node/20.18.3/x64/etc/npmrc",npm_config_init_module:"/home/runner/.npm-init.js",GITHUB_PATH:"/home/runner/work/_temp/_runner_file_commands/add_path_d53cc035-1b76-4af7-9fb5-24f8457de40c",JAVA_HOME:"/usr/lib/jvm/temurin-17-jdk-amd64",PWD:"/home/runner/work/md/md",GITHUB_ACTOR_ID:"21008209",RUNNER_WORKSPACE:"/home/runner/work/md",npm_execpath:"/opt/hostedtoolcache/node/20.18.3/x64/lib/node_modules/npm/bin/npm-cli.js",HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS:"3650",GITHUB_EVENT_NAME:"push",HOMEBREW_NO_AUTO_UPDATE:"1",ANDROID_HOME:"/usr/local/lib/android/sdk",GITHUB_SERVER_URL:"https://github.com",GECKOWEBDRIVER:"/usr/local/share/gecko_driver",GHCUP_INSTALL_BASE_PREFIX:"/usr/local",GITHUB_OUTPUT:"/home/runner/work/_temp/_runner_file_commands/set_output_d53cc035-1b76-4af7-9fb5-24f8457de40c",npm_config_global_prefix:"/opt/hostedtoolcache/node/20.18.3/x64",EDGEWEBDRIVER:"/usr/local/share/edge_driver",STATS_EXT:"true",npm_command:"run-script",ANDROID_NDK:"/usr/local/lib/android/sdk/ndk/27.2.12479018",SGX_AESM_ADDR:"1",CHROME_BIN:"/usr/bin/google-chrome",SELENIUM_JAR_PATH:"/usr/share/java/selenium-server.jar",MEMORY_PRESSURE_WRITE:"c29tZSAyMDAwMDAgMjAwMDAwMAA=",STATS_EXTP:"https://provjobdprod.z13.web.core.windows.net/settings/provjobdsettings-latest/provjobd.data",ANDROID_NDK_HOME:"/usr/local/lib/android/sdk/ndk/27.2.12479018",GITHUB_STEP_SUMMARY:"/home/runner/work/_temp/_runner_file_commands/step_summary_d53cc035-1b76-4af7-9fb5-24f8457de40c",INIT_CWD:"/home/runner/work/md/md",EDITOR:"vi",NODE_ENV:"production",LAUNCH_EDITOR:"code"},title:"node",argv:["/opt/hostedtoolcache/node/20.18.3/x64/bin/node","/home/runner/work/md/md/node_modules/.bin/vite","build"],execArgv:[],pid:2138,ppid:2137,execPath:"/opt/hostedtoolcache/node/20.18.3/x64/bin/node",debugPort:9229,argv0:"node",_preload_modules:[],report:{directory:"",filename:"",compact:!1,excludeNetwork:!1,signal:"SIGUSR2",reportOnFatalError:!1,reportOnSignal:!1,reportOnUncaughtException:!1}};Ra.exports=sd;function sd(fd){return pd.bind(null,fd)}function pd(fd){var hd=[].slice.call(arguments,1);hd.unshift("["+fd+"]"),rd.stderr.write(hd.join(" ")+` `)}})(debug);var debugExports=debug.exports;(function(Ra,qa){debugExports("lex"),Ra.exports=rd;function rd(sd){var pd="",fd,hd=0,md=-1,gd=0,yd=1,vd="before-selector",Nd=[vd],Md={},Ld=[],Fd=["media","keyframes",{name:"-webkit-keyframes",type:"keyframes",prefix:"-webkit-"},{name:"-moz-keyframes",type:"keyframes",prefix:"-moz-"},{name:"-ms-keyframes",type:"keyframes",prefix:"-ms-"},{name:"-o-keyframes",type:"keyframes",prefix:"-o-"},"font-face",{name:"import",state:"before-at-value"},{name:"charset",state:"before-at-value"},"supports","viewport",{name:"namespace",state:"before-at-value"},"document",{name:"-moz-document",type:"document",prefix:"-moz-"},"page"];function Hd(){return Ef(),sd[md]}function Vd(Pf){return Pf?Nd[Nd.length-1-Pf]:vd}function Gd(Pf){var lh=md+1;return Pf===sd.slice(lh,lh+Pf.length)}function Ud(Pf){var lh=sd.slice(md).indexOf(Pf);return lh>0?lh:!1}function qd(Pf){return Pf===Wd(1)}function Wd(Pf){return sd[md+(Pf||1)]}function Kd(){var Pf=Nd.pop();return vd=Nd[Nd.length-1],Pf}function Xd(Pf){return vd=Pf,Nd.push(vd),Nd.length}function df(Pf){var lh=vd;return Nd[Nd.length-1]=vd=Pf,lh}function Ef(Pf){if((Pf||1)==1)sd[md]==` `?(yd++,hd=1):hd++,md++;else{var lh=sd.slice(md,md+Pf).split(` `);lh.length>1&&(yd+=lh.length-1,hd=1),hd+=lh[lh.length-1].length,md=md+Pf}}function pf(){Md.end={line:yd,col:hd},Ld.push(Md),pd="",Md={}}function mf(Pf){Md={type:Pf,start:{line:yd,col:hd}}}for(;fd=Hd();)switch(fd){case" ":switch(Vd()){case"selector":case"value":case"value-paren":case"at-group":case"at-value":case"comment":case"double-string":case"single-string":pd+=fd;break}break;case` @@ -501,9 +501,9 @@ code_pre { `+Ld.extraCss,rd(Md,Fd,Ld),Md}function vd(Md,Ld){var Fd=[],Hd=Md("style"),Vd,Gd,Ud;return Hd.each(function(){if(Ud=this,Vd=Ud.childNodes,Vd.length!==1){Ld.removeStyleTags&&Md(Ud).remove();return}if(Gd=Vd[0].data,Ld.applyStyleTags&&Md(Ud).attr("data-embed")===void 0&&Fd.push(Gd),Ld.removeStyleTags&&Md(Ud).attr("data-embed")===void 0){var qd=Ud.childNodes[0].nodeValue,Wd=utils$3.getPreservedText(qd,{mediaQueries:Ld.preserveMediaQueries,fontFaces:Ld.preserveFontFaces,keyFrames:Ld.preserveKeyFrames,pseudos:Ld.preservePseudos},qa.ignoredPseudos);Wd?Ud.childNodes[0].nodeValue=Wd:Md(Ud).remove()}Md(Ud).removeAttr("data-embed")}),Fd}function Nd(Md,Ld){var Fd=vd(Md,Ld),Hd=Fd.join(` `);return Hd}return qa},cheerio=cheerioExports,makeJuiceClient=inline$2,juiceClient=makeJuiceClient(function(Ra,qa){return cheerio(Ra,{xmlMode:qa&&qa.xmlMode},juiceDocument,[qa])}),juiceDocument=function(Ra,qa){return juiceClient.juiceDocument(Ra,qa)};juiceClient.inlineContent=function(Ra,qa,rd){return cheerio(Ra,{xmlMode:rd&&rd.xmlMode},juiceClient.inlineDocument,[qa,rd])};juiceClient.codeBlocks=cheerio.codeBlocks;var client=juiceClient;const juice=getDefaultExportFromCjs(client);var $s$1=Object.create,je$5=Object.defineProperty,Vs$1=Object.getOwnPropertyDescriptor,qs$2=Object.getOwnPropertyNames,zs$1=Object.getPrototypeOf,Ks$2=Object.prototype.hasOwnProperty,Hs$2=(Ra,qa)=>()=>(qa||Ra((qa={exports:{}}).exports,qa),qa.exports),Ws$1=(Ra,qa)=>{for(var rd in qa)je$5(Ra,rd,{get:qa[rd],enumerable:!0})},Js$1=(Ra,qa,rd,sd)=>{if(qa&&typeof qa=="object"||typeof qa=="function")for(let pd of qs$2(qa))!Ks$2.call(Ra,pd)&&pd!==rd&&je$5(Ra,pd,{get:()=>qa[pd],enumerable:!(sd=Vs$1(qa,pd))||sd.enumerable});return Ra},vt$4=(Ra,qa,rd)=>(rd=Ra!=null?$s$1(zs$1(Ra)):{},Js$1(je$5(rd,"default",{value:Ra,enumerable:!0}),Ra)),At$4=Hs$2(Ra=>{Object.defineProperty(Ra,"__esModule",{value:!0});function qa(Jd,zd){if(Jd==null)return{};var Zd={},Tf=Object.keys(Jd),Bf,Ph;for(Ph=0;Ph=0)&&(Zd[Bf]=Jd[Bf]);return Zd}var rd=class{constructor(Jd,zd,Zd){this.line=void 0,this.column=void 0,this.index=void 0,this.line=Jd,this.column=zd,this.index=Zd}},sd=class{constructor(Jd,zd){this.start=void 0,this.end=void 0,this.filename=void 0,this.identifierName=void 0,this.start=Jd,this.end=zd}};function pd(Jd,zd){let{line:Zd,column:Tf,index:Bf}=Jd;return new rd(Zd,Tf+zd,Bf+zd)}var fd="BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED",hd={ImportMetaOutsideModule:{message:`import.meta may appear only with 'sourceType: "module"'`,code:fd},ImportOutsideModule:{message:`'import' and 'export' may appear only with 'sourceType: "module"'`,code:fd}},md={ArrayPattern:"array destructuring pattern",AssignmentExpression:"assignment expression",AssignmentPattern:"assignment expression",ArrowFunctionExpression:"arrow function expression",ConditionalExpression:"conditional expression",CatchClause:"catch clause",ForOfStatement:"for-of statement",ForInStatement:"for-in statement",ForStatement:"for-loop",FormalParameters:"function parameter list",Identifier:"identifier",ImportSpecifier:"import specifier",ImportDefaultSpecifier:"import default specifier",ImportNamespaceSpecifier:"import namespace specifier",ObjectPattern:"object destructuring pattern",ParenthesizedExpression:"parenthesized expression",RestElement:"rest element",UpdateExpression:{true:"prefix operation",false:"postfix operation"},VariableDeclarator:"variable declaration",YieldExpression:"yield expression"},gd=Jd=>Jd.type==="UpdateExpression"?md.UpdateExpression[`${Jd.prefix}`]:md[Jd.type],yd={AccessorIsGenerator:({kind:Jd})=>`A ${Jd}ter cannot be a generator.`,ArgumentsInClass:"'arguments' is only allowed in functions and class methods.",AsyncFunctionInSingleStatementContext:"Async functions can only be declared at the top level or inside a block.",AwaitBindingIdentifier:"Can not use 'await' as identifier inside an async function.",AwaitBindingIdentifierInStaticBlock:"Can not use 'await' as identifier inside a static block.",AwaitExpressionFormalParameter:"'await' is not allowed in async function parameters.",AwaitUsingNotInAsyncContext:"'await using' is only allowed within async functions and at the top levels of modules.",AwaitNotInAsyncContext:"'await' is only allowed within async functions and at the top levels of modules.",AwaitNotInAsyncFunction:"'await' is only allowed within async functions.",BadGetterArity:"A 'get' accessor must not have any formal parameters.",BadSetterArity:"A 'set' accessor must have exactly one formal parameter.",BadSetterRestParameter:"A 'set' accessor function argument must not be a rest parameter.",ConstructorClassField:"Classes may not have a field named 'constructor'.",ConstructorClassPrivateField:"Classes may not have a private field named '#constructor'.",ConstructorIsAccessor:"Class constructor may not be an accessor.",ConstructorIsAsync:"Constructor can't be an async function.",ConstructorIsGenerator:"Constructor can't be a generator.",DeclarationMissingInitializer:({kind:Jd})=>`Missing initializer in ${Jd} declaration.`,DecoratorArgumentsOutsideParentheses:"Decorator arguments must be moved inside parentheses: use '@(decorator(args))' instead of '@(decorator)(args)'.",DecoratorBeforeExport:"Decorators must be placed *before* the 'export' keyword. Remove the 'decoratorsBeforeExport: true' option to use the 'export @decorator class {}' syntax.",DecoratorsBeforeAfterExport:"Decorators can be placed *either* before or after the 'export' keyword, but not in both locations at the same time.",DecoratorConstructor:"Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?",DecoratorExportClass:"Decorators must be placed *after* the 'export' keyword. Remove the 'decoratorsBeforeExport: false' option to use the '@decorator export class {}' syntax.",DecoratorSemicolon:"Decorators must not be followed by a semicolon.",DecoratorStaticBlock:"Decorators can't be used with a static block.",DeferImportRequiresNamespace:'Only `import defer * as x from "./module"` is valid.',DeletePrivateField:"Deleting a private field is not allowed.",DestructureNamedImport:"ES2015 named imports do not destructure. Use another statement for destructuring after the import.",DuplicateConstructor:"Duplicate constructor in the same class.",DuplicateDefaultExport:"Only one default export allowed per module.",DuplicateExport:({exportName:Jd})=>`\`${Jd}\` has already been exported. Exported identifiers must be unique.`,DuplicateProto:"Redefinition of __proto__ property.",DuplicateRegExpFlags:"Duplicate regular expression flag.",DynamicImportPhaseRequiresImportExpressions:({phase:Jd})=>`'import.${Jd}(...)' can only be parsed when using the 'createImportExpressions' option.`,ElementAfterRest:"Rest element must be last element.",EscapedCharNotAnIdentifier:"Invalid Unicode escape.",ExportBindingIsString:({localName:Jd,exportName:zd})=>`A string literal cannot be used as an exported binding without \`from\`. - Did you mean \`export { '${Jd}' as '${zd}' } from 'some-module'\`?`,ExportDefaultFromAsIdentifier:"'from' is not allowed as an identifier after 'export default'.",ForInOfLoopInitializer:({type:Jd})=>`'${Jd==="ForInStatement"?"for-in":"for-of"}' loop variable declaration may not have an initializer.`,ForInUsing:"For-in loop may not start with 'using' declaration.",ForOfAsync:"The left-hand side of a for-of loop may not be 'async'.",ForOfLet:"The left-hand side of a for-of loop may not start with 'let'.",GeneratorInSingleStatementContext:"Generators can only be declared at the top level or inside a block.",IllegalBreakContinue:({type:Jd})=>`Unsyntactic ${Jd==="BreakStatement"?"break":"continue"}.`,IllegalLanguageModeDirective:"Illegal 'use strict' directive in function with non-simple parameter list.",IllegalReturn:"'return' outside of function.",ImportAttributesUseAssert:"The `assert` keyword in import attributes is deprecated and it has been replaced by the `with` keyword. You can enable the `deprecatedAssertSyntax: true` option in the import attributes plugin to suppress this error.",ImportBindingIsString:({importName:Jd})=>`A string literal cannot be used as an imported binding. -- Did you mean \`import { "${Jd}" as foo }\`?`,ImportCallArgumentTrailingComma:"Trailing comma is disallowed inside import(...) arguments.",ImportCallArity:({maxArgumentCount:Jd})=>`\`import()\` requires exactly ${Jd===1?"one argument":"one or two arguments"}.`,ImportCallNotNewExpression:"Cannot use new with import(...).",ImportCallSpreadArgument:"`...` is not allowed in `import()`.",ImportJSONBindingNotDefault:"A JSON module can only be imported with `default`.",ImportReflectionHasAssertion:"`import module x` cannot have assertions.",ImportReflectionNotBinding:'Only `import module x from "./module"` is valid.',IncompatibleRegExpUVFlags:"The 'u' and 'v' regular expression flags cannot be enabled at the same time.",InvalidBigIntLiteral:"Invalid BigIntLiteral.",InvalidCodePoint:"Code point out of bounds.",InvalidCoverInitializedName:"Invalid shorthand property initializer.",InvalidDecimal:"Invalid decimal.",InvalidDigit:({radix:Jd})=>`Expected number in radix ${Jd}.`,InvalidEscapeSequence:"Bad character escape sequence.",InvalidEscapeSequenceTemplate:"Invalid escape sequence in template.",InvalidEscapedReservedWord:({reservedWord:Jd})=>`Escape sequence in keyword ${Jd}.`,InvalidIdentifier:({identifierName:Jd})=>`Invalid identifier ${Jd}.`,InvalidLhs:({ancestor:Jd})=>`Invalid left-hand side in ${gd(Jd)}.`,InvalidLhsBinding:({ancestor:Jd})=>`Binding invalid left-hand side in ${gd(Jd)}.`,InvalidLhsOptionalChaining:({ancestor:Jd})=>`Invalid optional chaining in the left-hand side of ${gd(Jd)}.`,InvalidNumber:"Invalid number.",InvalidOrMissingExponent:"Floating-point numbers require a valid exponent after the 'e'.",InvalidOrUnexpectedToken:({unexpected:Jd})=>`Unexpected character '${Jd}'.`,InvalidParenthesizedAssignment:"Invalid parenthesized assignment pattern.",InvalidPrivateFieldResolution:({identifierName:Jd})=>`Private name #${Jd} is not defined.`,InvalidPropertyBindingPattern:"Binding member expression.",InvalidRecordProperty:"Only properties and spread elements are allowed in record definitions.",InvalidRestAssignmentPattern:"Invalid rest operator's argument.",LabelRedeclaration:({labelName:Jd})=>`Label '${Jd}' is already declared.`,LetInLexicalBinding:"'let' is disallowed as a lexically bound name.",LineTerminatorBeforeArrow:"No line break is allowed before '=>'.",MalformedRegExpFlags:"Invalid regular expression flag.",MissingClassName:"A class name is required.",MissingEqInAssignment:"Only '=' operator can be used for specifying default value.",MissingSemicolon:"Missing semicolon.",MissingPlugin:({missingPlugin:Jd})=>`This experimental syntax requires enabling the parser plugin: ${Jd.map(zd=>JSON.stringify(zd)).join(", ")}.`,MissingOneOfPlugins:({missingPlugin:Jd})=>`This experimental syntax requires enabling one of the following parser plugin(s): ${Jd.map(zd=>JSON.stringify(zd)).join(", ")}.`,MissingUnicodeEscape:"Expecting Unicode escape sequence \\uXXXX.",MixingCoalesceWithLogical:"Nullish coalescing operator(??) requires parens when mixing with logical operators.",ModuleAttributeDifferentFromType:"The only accepted module attribute is `type`.",ModuleAttributeInvalidValue:"Only string literals are allowed as module attribute values.",ModuleAttributesWithDuplicateKeys:({key:Jd})=>`Duplicate key "${Jd}" is not allowed in module attributes.`,ModuleExportNameHasLoneSurrogate:({surrogateCharCode:Jd})=>`An export name cannot include a lone surrogate, found '\\u${Jd.toString(16)}'.`,ModuleExportUndefined:({localName:Jd})=>`Export '${Jd}' is not defined.`,MultipleDefaultsInSwitch:"Multiple default clauses.",NewlineAfterThrow:"Illegal newline after throw.",NoCatchOrFinally:"Missing catch or finally clause.",NumberIdentifier:"Identifier directly after number.",NumericSeparatorInEscapeSequence:"Numeric separators are not allowed inside unicode escape sequences or hex escape sequences.",ObsoleteAwaitStar:"'await*' has been removed from the async functions proposal. Use Promise.all() instead.",OptionalChainingNoNew:"Constructors in/after an Optional Chain are not allowed.",OptionalChainingNoTemplate:"Tagged Template Literals are not allowed in optionalChain.",OverrideOnConstructor:"'override' modifier cannot appear on a constructor declaration.",ParamDupe:"Argument name clash.",PatternHasAccessor:"Object pattern can't contain getter or setter.",PatternHasMethod:"Object pattern can't contain methods.",PrivateInExpectedIn:({identifierName:Jd})=>`Private names are only allowed in property accesses (\`obj.#${Jd}\`) or in \`in\` expressions (\`#${Jd} in obj\`).`,PrivateNameRedeclaration:({identifierName:Jd})=>`Duplicate private name #${Jd}.`,RecordExpressionBarIncorrectEndSyntaxType:"Record expressions ending with '|}' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionBarIncorrectStartSyntaxType:"Record expressions starting with '{|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionHashIncorrectStartSyntaxType:"Record expressions starting with '#{' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",RecordNoProto:"'__proto__' is not allowed in Record expressions.",RestTrailingComma:"Unexpected trailing comma after rest element.",SloppyFunction:"In non-strict mode code, functions can only be declared at top level or inside a block.",SloppyFunctionAnnexB:"In non-strict mode code, functions can only be declared at top level, inside a block, or as the body of an if statement.",SourcePhaseImportRequiresDefault:'Only `import source x from "./module"` is valid.',StaticPrototype:"Classes may not have static property named prototype.",SuperNotAllowed:"`super()` is only valid inside a class constructor of a subclass. Maybe a typo in the method name ('constructor') or not extending another class?",SuperPrivateField:"Private fields can't be accessed on super.",TrailingDecorator:"Decorators must be attached to a class element.",TupleExpressionBarIncorrectEndSyntaxType:"Tuple expressions ending with '|]' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionBarIncorrectStartSyntaxType:"Tuple expressions starting with '[|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionHashIncorrectStartSyntaxType:"Tuple expressions starting with '#[' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",UnexpectedArgumentPlaceholder:"Unexpected argument placeholder.",UnexpectedAwaitAfterPipelineBody:'Unexpected "await" after pipeline body; await must have parentheses in minimal proposal.',UnexpectedDigitAfterHash:"Unexpected digit after hash token.",UnexpectedImportExport:"'import' and 'export' may only appear at the top level.",UnexpectedKeyword:({keyword:Jd})=>`Unexpected keyword '${Jd}'.`,UnexpectedLeadingDecorator:"Leading decorators must be attached to a class declaration.",UnexpectedLexicalDeclaration:"Lexical declaration cannot appear in a single-statement context.",UnexpectedNewTarget:"`new.target` can only be used in functions or class properties.",UnexpectedNumericSeparator:"A numeric separator is only allowed between two digits.",UnexpectedPrivateField:"Unexpected private name.",UnexpectedReservedWord:({reservedWord:Jd})=>`Unexpected reserved word '${Jd}'.`,UnexpectedSuper:"'super' is only allowed in object methods and classes.",UnexpectedToken:({expected:Jd,unexpected:zd})=>`Unexpected token${zd?` '${zd}'.`:""}${Jd?`, expected "${Jd}"`:""}`,UnexpectedTokenUnaryExponentiation:"Illegal expression. Wrap left hand side or entire exponentiation in parentheses.",UnexpectedUsingDeclaration:"Using declaration cannot appear in the top level when source type is `script`.",UnsupportedBind:"Binding should be performed on object property.",UnsupportedDecoratorExport:"A decorated export must export a class declaration.",UnsupportedDefaultExport:"Only expressions, functions or classes are allowed as the `default` export.",UnsupportedImport:"`import` can only be used in `import()` or `import.meta`.",UnsupportedMetaProperty:({target:Jd,onlyValidPropertyName:zd})=>`The only valid meta property for ${Jd} is ${Jd}.${zd}.`,UnsupportedParameterDecorator:"Decorators cannot be used to decorate parameters.",UnsupportedPropertyDecorator:"Decorators cannot be used to decorate object literal properties.",UnsupportedSuper:"'super' can only be used with function calls (i.e. super()) or in property accesses (i.e. super.prop or super[prop]).",UnterminatedComment:"Unterminated comment.",UnterminatedRegExp:"Unterminated regular expression.",UnterminatedString:"Unterminated string constant.",UnterminatedTemplate:"Unterminated template.",UsingDeclarationExport:"Using declaration cannot be exported.",UsingDeclarationHasBindingPattern:"Using declaration cannot have destructuring patterns.",VarRedeclaration:({identifierName:Jd})=>`Identifier '${Jd}' has already been declared.`,YieldBindingIdentifier:"Can not use 'yield' as identifier inside a generator.",YieldInParameter:"Yield expression is not allowed in formal parameters.",ZeroDigitNumericSeparator:"Numeric separator can not be used after leading 0."},vd={StrictDelete:"Deleting local variable in strict mode.",StrictEvalArguments:({referenceName:Jd})=>`Assigning to '${Jd}' in strict mode.`,StrictEvalArgumentsBinding:({bindingName:Jd})=>`Binding '${Jd}' in strict mode.`,StrictFunction:"In strict mode code, functions can only be declared at top level or inside a block.",StrictNumericEscape:"The only valid numeric escape in strict mode is '\\0'.",StrictOctalLiteral:"Legacy octal literals are not allowed in strict mode.",StrictWith:"'with' in strict mode."},Nd=new Set(["ArrowFunctionExpression","AssignmentExpression","ConditionalExpression","YieldExpression"]),Md={PipeBodyIsTighter:"Unexpected yield after pipeline body; any yield expression acting as Hack-style pipe body must be parenthesized due to its loose operator precedence.",PipeTopicRequiresHackPipes:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.',PipeTopicUnbound:"Topic reference is unbound; it must be inside a pipe body.",PipeTopicUnconfiguredToken:({token:Jd})=>`Invalid topic token ${Jd}. In order to use ${Jd} as a topic reference, the pipelineOperator plugin must be configured with { "proposal": "hack", "topicToken": "${Jd}" }.`,PipeTopicUnused:"Hack-style pipe body does not contain a topic reference; Hack-style pipes must use topic at least once.",PipeUnparenthesizedBody:({type:Jd})=>`Hack-style pipe body cannot be an unparenthesized ${gd({type:Jd})}; please wrap it in parentheses.`,PipelineBodyNoArrow:'Unexpected arrow "=>" after pipeline body; arrow function in pipeline body must be parenthesized.',PipelineBodySequenceExpression:"Pipeline body may not be a comma-separated sequence expression.",PipelineHeadSequenceExpression:"Pipeline head should not be a comma-separated sequence expression.",PipelineTopicUnused:"Pipeline is in topic style but does not use topic reference.",PrimaryTopicNotAllowed:"Topic reference was used in a lexical context without topic binding.",PrimaryTopicRequiresSmartPipeline:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.'},Ld=["toMessage"],Fd=["message"];function Hd(Jd,zd,Zd){Object.defineProperty(Jd,zd,{enumerable:!1,configurable:!0,value:Zd})}function Vd(Jd){let{toMessage:zd}=Jd,Zd=qa(Jd,Ld);return function Tf(Bf,Ph){let hm=new SyntaxError;return Object.assign(hm,Zd,{loc:Bf,pos:Bf.index}),"missingPlugin"in Ph&&Object.assign(hm,{missingPlugin:Ph.missingPlugin}),Hd(hm,"clone",function(Im={}){var Gm;let{line:Um,column:Sg,index:Bg}=(Gm=Im.loc)!=null?Gm:Bf;return Tf(new rd(Um,Sg,Bg),Object.assign({},Ph,Im.details))}),Hd(hm,"details",Ph),Object.defineProperty(hm,"message",{configurable:!0,get(){let Im=`${zd(Ph)} (${Bf.line}:${Bf.column})`;return this.message=Im,Im},set(Im){Object.defineProperty(this,"message",{value:Im,writable:!0})}}),hm}}function Gd(Jd,zd){if(Array.isArray(Jd))return Tf=>Gd(Tf,Jd[0]);let Zd={};for(let Tf of Object.keys(Jd)){let Bf=Jd[Tf],Ph=typeof Bf=="string"?{message:()=>Bf}:typeof Bf=="function"?{message:Bf}:Bf,{message:hm}=Ph,Im=qa(Ph,Fd),Gm=typeof hm=="string"?()=>hm:hm;Zd[Tf]=Vd(Object.assign({code:"BABEL_PARSER_SYNTAX_ERROR",reasonCode:Tf,toMessage:Gm},zd?{syntaxPlugin:zd}:{},Im))}return Zd}var Ud=Object.assign({},Gd(hd),Gd(yd),Gd(vd),Gd`pipelineOperator`(Md)),{defineProperty:qd}=Object,Wd=(Jd,zd)=>{Jd&&qd(Jd,zd,{enumerable:!1,value:Jd[zd]})};function Kd(Jd){return Wd(Jd.loc.start,"index"),Wd(Jd.loc.end,"index"),Jd}var Xd=Jd=>class extends Jd{parse(){let zd=Kd(super.parse());return this.options.tokens&&(zd.tokens=zd.tokens.map(Kd)),zd}parseRegExpLiteral({pattern:zd,flags:Zd}){let Tf=null;try{Tf=new RegExp(zd,Zd)}catch{}let Bf=this.estreeParseLiteral(Tf);return Bf.regex={pattern:zd,flags:Zd},Bf}parseBigIntLiteral(zd){let Zd;try{Zd=BigInt(zd)}catch{Zd=null}let Tf=this.estreeParseLiteral(Zd);return Tf.bigint=String(Tf.value||zd),Tf}parseDecimalLiteral(zd){let Zd=this.estreeParseLiteral(null);return Zd.decimal=String(Zd.value||zd),Zd}estreeParseLiteral(zd){return this.parseLiteral(zd,"Literal")}parseStringLiteral(zd){return this.estreeParseLiteral(zd)}parseNumericLiteral(zd){return this.estreeParseLiteral(zd)}parseNullLiteral(){return this.estreeParseLiteral(null)}parseBooleanLiteral(zd){return this.estreeParseLiteral(zd)}directiveToStmt(zd){let Zd=zd.value;delete zd.value,Zd.type="Literal",Zd.raw=Zd.extra.raw,Zd.value=Zd.extra.expressionValue;let Tf=zd;return Tf.type="ExpressionStatement",Tf.expression=Zd,Tf.directive=Zd.extra.rawValue,delete Zd.extra,Tf}initFunction(zd,Zd){super.initFunction(zd,Zd),zd.expression=!1}checkDeclaration(zd){zd!=null&&this.isObjectProperty(zd)?this.checkDeclaration(zd.value):super.checkDeclaration(zd)}getObjectOrClassMethodParams(zd){return zd.value.params}isValidDirective(zd){var Zd;return zd.type==="ExpressionStatement"&&zd.expression.type==="Literal"&&typeof zd.expression.value=="string"&&!((Zd=zd.expression.extra)!=null&&Zd.parenthesized)}parseBlockBody(zd,Zd,Tf,Bf,Ph){super.parseBlockBody(zd,Zd,Tf,Bf,Ph);let hm=zd.directives.map(Im=>this.directiveToStmt(Im));zd.body=hm.concat(zd.body),delete zd.directives}pushClassMethod(zd,Zd,Tf,Bf,Ph,hm){this.parseMethod(Zd,Tf,Bf,Ph,hm,"ClassMethod",!0),Zd.typeParameters&&(Zd.value.typeParameters=Zd.typeParameters,delete Zd.typeParameters),zd.body.push(Zd)}parsePrivateName(){let zd=super.parsePrivateName();return this.getPluginOption("estree","classFeatures")?this.convertPrivateNameToPrivateIdentifier(zd):zd}convertPrivateNameToPrivateIdentifier(zd){let Zd=super.getPrivateNameSV(zd);return zd=zd,delete zd.id,zd.name=Zd,zd.type="PrivateIdentifier",zd}isPrivateName(zd){return this.getPluginOption("estree","classFeatures")?zd.type==="PrivateIdentifier":super.isPrivateName(zd)}getPrivateNameSV(zd){return this.getPluginOption("estree","classFeatures")?zd.name:super.getPrivateNameSV(zd)}parseLiteral(zd,Zd){let Tf=super.parseLiteral(zd,Zd);return Tf.raw=Tf.extra.raw,delete Tf.extra,Tf}parseFunctionBody(zd,Zd,Tf=!1){super.parseFunctionBody(zd,Zd,Tf),zd.expression=zd.body.type!=="BlockStatement"}parseMethod(zd,Zd,Tf,Bf,Ph,hm,Im=!1){let Gm=this.startNode();return Gm.kind=zd.kind,Gm=super.parseMethod(Gm,Zd,Tf,Bf,Ph,hm,Im),Gm.type="FunctionExpression",delete Gm.kind,zd.value=Gm,hm==="ClassPrivateMethod"&&(zd.computed=!1),this.finishNode(zd,"MethodDefinition")}nameIsConstructor(zd){return zd.type==="Literal"?zd.value==="constructor":super.nameIsConstructor(zd)}parseClassProperty(...zd){let Zd=super.parseClassProperty(...zd);return this.getPluginOption("estree","classFeatures")&&(Zd.type="PropertyDefinition"),Zd}parseClassPrivateProperty(...zd){let Zd=super.parseClassPrivateProperty(...zd);return this.getPluginOption("estree","classFeatures")&&(Zd.type="PropertyDefinition",Zd.computed=!1),Zd}parseObjectMethod(zd,Zd,Tf,Bf,Ph){let hm=super.parseObjectMethod(zd,Zd,Tf,Bf,Ph);return hm&&(hm.type="Property",hm.kind==="method"&&(hm.kind="init"),hm.shorthand=!1),hm}parseObjectProperty(zd,Zd,Tf,Bf){let Ph=super.parseObjectProperty(zd,Zd,Tf,Bf);return Ph&&(Ph.kind="init",Ph.type="Property"),Ph}isValidLVal(zd,Zd,Tf){return zd==="Property"?"value":super.isValidLVal(zd,Zd,Tf)}isAssignable(zd,Zd){return zd!=null&&this.isObjectProperty(zd)?this.isAssignable(zd.value,Zd):super.isAssignable(zd,Zd)}toAssignable(zd,Zd=!1){if(zd!=null&&this.isObjectProperty(zd)){let{key:Tf,value:Bf}=zd;this.isPrivateName(Tf)&&this.classScope.usePrivateName(this.getPrivateNameSV(Tf),Tf.loc.start),this.toAssignable(Bf,Zd)}else super.toAssignable(zd,Zd)}toAssignableObjectExpressionProp(zd,Zd,Tf){zd.type==="Property"&&(zd.kind==="get"||zd.kind==="set")?this.raise(Ud.PatternHasAccessor,zd.key):zd.type==="Property"&&zd.method?this.raise(Ud.PatternHasMethod,zd.key):super.toAssignableObjectExpressionProp(zd,Zd,Tf)}finishCallExpression(zd,Zd){let Tf=super.finishCallExpression(zd,Zd);if(Tf.callee.type==="Import"){if(Tf.type="ImportExpression",Tf.source=Tf.arguments[0],this.hasPlugin("importAttributes")||this.hasPlugin("importAssertions")){var Bf,Ph;Tf.options=(Bf=Tf.arguments[1])!=null?Bf:null,Tf.attributes=(Ph=Tf.arguments[1])!=null?Ph:null}delete Tf.arguments,delete Tf.callee}return Tf}toReferencedArguments(zd){zd.type!=="ImportExpression"&&super.toReferencedArguments(zd)}parseExport(zd,Zd){let Tf=this.state.lastTokStartLoc,Bf=super.parseExport(zd,Zd);switch(Bf.type){case"ExportAllDeclaration":Bf.exported=null;break;case"ExportNamedDeclaration":Bf.specifiers.length===1&&Bf.specifiers[0].type==="ExportNamespaceSpecifier"&&(Bf.type="ExportAllDeclaration",Bf.exported=Bf.specifiers[0].exported,delete Bf.specifiers);case"ExportDefaultDeclaration":{var Ph;let{declaration:hm}=Bf;(hm==null?void 0:hm.type)==="ClassDeclaration"&&((Ph=hm.decorators)==null?void 0:Ph.length)>0&&hm.start===Bf.start&&this.resetStartLocation(Bf,Tf)}break}return Bf}parseSubscript(zd,Zd,Tf,Bf){let Ph=super.parseSubscript(zd,Zd,Tf,Bf);if(Bf.optionalChainMember){if((Ph.type==="OptionalMemberExpression"||Ph.type==="OptionalCallExpression")&&(Ph.type=Ph.type.substring(8)),Bf.stop){let hm=this.startNodeAtNode(Ph);return hm.expression=Ph,this.finishNode(hm,"ChainExpression")}}else(Ph.type==="MemberExpression"||Ph.type==="CallExpression")&&(Ph.optional=!1);return Ph}isOptionalMemberExpression(zd){return zd.type==="ChainExpression"?zd.expression.type==="MemberExpression":super.isOptionalMemberExpression(zd)}hasPropertyAsPrivateName(zd){return zd.type==="ChainExpression"&&(zd=zd.expression),super.hasPropertyAsPrivateName(zd)}isObjectProperty(zd){return zd.type==="Property"&&zd.kind==="init"&&!zd.method}isObjectMethod(zd){return zd.type==="Property"&&(zd.method||zd.kind==="get"||zd.kind==="set")}finishNodeAt(zd,Zd,Tf){return Kd(super.finishNodeAt(zd,Zd,Tf))}resetStartLocation(zd,Zd){super.resetStartLocation(zd,Zd),Kd(zd)}resetEndLocation(zd,Zd=this.state.lastTokEndLoc){super.resetEndLocation(zd,Zd),Kd(zd)}},df=class{constructor(Jd,zd){this.token=void 0,this.preserveSpace=void 0,this.token=Jd,this.preserveSpace=!!zd}},Ef={brace:new df("{"),j_oTag:new df("...",!0)};Ef.template=new df("`",!0);var pf=!0,mf=!0,_f=!0,xf=!0,Cf=!0,If=!0,Sf=class{constructor(Jd,zd={}){this.label=void 0,this.keyword=void 0,this.beforeExpr=void 0,this.startsExpr=void 0,this.rightAssociative=void 0,this.isLoop=void 0,this.isAssign=void 0,this.prefix=void 0,this.postfix=void 0,this.binop=void 0,this.label=Jd,this.keyword=zd.keyword,this.beforeExpr=!!zd.beforeExpr,this.startsExpr=!!zd.startsExpr,this.rightAssociative=!!zd.rightAssociative,this.isLoop=!!zd.isLoop,this.isAssign=!!zd.isAssign,this.prefix=!!zd.prefix,this.postfix=!!zd.postfix,this.binop=zd.binop!=null?zd.binop:null,this.updateContext=null}},wf=new Map;function Pf(Jd,zd={}){zd.keyword=Jd;let Zd=vh(Jd,zd);return wf.set(Jd,Zd),Zd}function lh(Jd,zd){return vh(Jd,{beforeExpr:pf,binop:zd})}var xh=-1,Eh=[],Mh=[],dh=[],eh=[],fh=[],Sh=[];function vh(Jd,zd={}){var Zd,Tf,Bf,Ph;return++xh,Mh.push(Jd),dh.push((Zd=zd.binop)!=null?Zd:-1),eh.push((Tf=zd.beforeExpr)!=null?Tf:!1),fh.push((Bf=zd.startsExpr)!=null?Bf:!1),Sh.push((Ph=zd.prefix)!=null?Ph:!1),Eh.push(new Sf(Jd,zd)),xh}function Df(Jd,zd={}){var Zd,Tf,Bf,Ph;return++xh,wf.set(Jd,xh),Mh.push(Jd),dh.push((Zd=zd.binop)!=null?Zd:-1),eh.push((Tf=zd.beforeExpr)!=null?Tf:!1),fh.push((Bf=zd.startsExpr)!=null?Bf:!1),Sh.push((Ph=zd.prefix)!=null?Ph:!1),Eh.push(new Sf("name",zd)),xh}var Af={bracketL:vh("[",{beforeExpr:pf,startsExpr:mf}),bracketHashL:vh("#[",{beforeExpr:pf,startsExpr:mf}),bracketBarL:vh("[|",{beforeExpr:pf,startsExpr:mf}),bracketR:vh("]"),bracketBarR:vh("|]"),braceL:vh("{",{beforeExpr:pf,startsExpr:mf}),braceBarL:vh("{|",{beforeExpr:pf,startsExpr:mf}),braceHashL:vh("#{",{beforeExpr:pf,startsExpr:mf}),braceR:vh("}"),braceBarR:vh("|}"),parenL:vh("(",{beforeExpr:pf,startsExpr:mf}),parenR:vh(")"),comma:vh(",",{beforeExpr:pf}),semi:vh(";",{beforeExpr:pf}),colon:vh(":",{beforeExpr:pf}),doubleColon:vh("::",{beforeExpr:pf}),dot:vh("."),question:vh("?",{beforeExpr:pf}),questionDot:vh("?."),arrow:vh("=>",{beforeExpr:pf}),template:vh("template"),ellipsis:vh("...",{beforeExpr:pf}),backQuote:vh("`",{startsExpr:mf}),dollarBraceL:vh("${",{beforeExpr:pf,startsExpr:mf}),templateTail:vh("...`",{startsExpr:mf}),templateNonTail:vh("...${",{beforeExpr:pf,startsExpr:mf}),at:vh("@"),hash:vh("#",{startsExpr:mf}),interpreterDirective:vh("#!..."),eq:vh("=",{beforeExpr:pf,isAssign:xf}),assign:vh("_=",{beforeExpr:pf,isAssign:xf}),slashAssign:vh("_=",{beforeExpr:pf,isAssign:xf}),xorAssign:vh("_=",{beforeExpr:pf,isAssign:xf}),moduloAssign:vh("_=",{beforeExpr:pf,isAssign:xf}),incDec:vh("++/--",{prefix:Cf,postfix:If,startsExpr:mf}),bang:vh("!",{beforeExpr:pf,prefix:Cf,startsExpr:mf}),tilde:vh("~",{beforeExpr:pf,prefix:Cf,startsExpr:mf}),doubleCaret:vh("^^",{startsExpr:mf}),doubleAt:vh("@@",{startsExpr:mf}),pipeline:lh("|>",0),nullishCoalescing:lh("??",1),logicalOR:lh("||",1),logicalAND:lh("&&",2),bitwiseOR:lh("|",3),bitwiseXOR:lh("^",4),bitwiseAND:lh("&",5),equality:lh("==/!=/===/!==",6),lt:lh("/<=/>=",7),gt:lh("/<=/>=",7),relational:lh("/<=/>=",7),bitShift:lh("<>/>>>",8),bitShiftL:lh("<>/>>>",8),bitShiftR:lh("<>/>>>",8),plusMin:vh("+/-",{beforeExpr:pf,binop:9,prefix:Cf,startsExpr:mf}),modulo:vh("%",{binop:10,startsExpr:mf}),star:vh("*",{binop:10}),slash:lh("/",10),exponent:vh("**",{beforeExpr:pf,binop:11,rightAssociative:!0}),_in:Pf("in",{beforeExpr:pf,binop:7}),_instanceof:Pf("instanceof",{beforeExpr:pf,binop:7}),_break:Pf("break"),_case:Pf("case",{beforeExpr:pf}),_catch:Pf("catch"),_continue:Pf("continue"),_debugger:Pf("debugger"),_default:Pf("default",{beforeExpr:pf}),_else:Pf("else",{beforeExpr:pf}),_finally:Pf("finally"),_function:Pf("function",{startsExpr:mf}),_if:Pf("if"),_return:Pf("return",{beforeExpr:pf}),_switch:Pf("switch"),_throw:Pf("throw",{beforeExpr:pf,prefix:Cf,startsExpr:mf}),_try:Pf("try"),_var:Pf("var"),_const:Pf("const"),_with:Pf("with"),_new:Pf("new",{beforeExpr:pf,startsExpr:mf}),_this:Pf("this",{startsExpr:mf}),_super:Pf("super",{startsExpr:mf}),_class:Pf("class",{startsExpr:mf}),_extends:Pf("extends",{beforeExpr:pf}),_export:Pf("export"),_import:Pf("import",{startsExpr:mf}),_null:Pf("null",{startsExpr:mf}),_true:Pf("true",{startsExpr:mf}),_false:Pf("false",{startsExpr:mf}),_typeof:Pf("typeof",{beforeExpr:pf,prefix:Cf,startsExpr:mf}),_void:Pf("void",{beforeExpr:pf,prefix:Cf,startsExpr:mf}),_delete:Pf("delete",{beforeExpr:pf,prefix:Cf,startsExpr:mf}),_do:Pf("do",{isLoop:_f,beforeExpr:pf}),_for:Pf("for",{isLoop:_f}),_while:Pf("while",{isLoop:_f}),_as:Df("as",{startsExpr:mf}),_assert:Df("assert",{startsExpr:mf}),_async:Df("async",{startsExpr:mf}),_await:Df("await",{startsExpr:mf}),_defer:Df("defer",{startsExpr:mf}),_from:Df("from",{startsExpr:mf}),_get:Df("get",{startsExpr:mf}),_let:Df("let",{startsExpr:mf}),_meta:Df("meta",{startsExpr:mf}),_of:Df("of",{startsExpr:mf}),_sent:Df("sent",{startsExpr:mf}),_set:Df("set",{startsExpr:mf}),_source:Df("source",{startsExpr:mf}),_static:Df("static",{startsExpr:mf}),_using:Df("using",{startsExpr:mf}),_yield:Df("yield",{startsExpr:mf}),_asserts:Df("asserts",{startsExpr:mf}),_checks:Df("checks",{startsExpr:mf}),_exports:Df("exports",{startsExpr:mf}),_global:Df("global",{startsExpr:mf}),_implements:Df("implements",{startsExpr:mf}),_intrinsic:Df("intrinsic",{startsExpr:mf}),_infer:Df("infer",{startsExpr:mf}),_is:Df("is",{startsExpr:mf}),_mixins:Df("mixins",{startsExpr:mf}),_proto:Df("proto",{startsExpr:mf}),_require:Df("require",{startsExpr:mf}),_satisfies:Df("satisfies",{startsExpr:mf}),_keyof:Df("keyof",{startsExpr:mf}),_readonly:Df("readonly",{startsExpr:mf}),_unique:Df("unique",{startsExpr:mf}),_abstract:Df("abstract",{startsExpr:mf}),_declare:Df("declare",{startsExpr:mf}),_enum:Df("enum",{startsExpr:mf}),_module:Df("module",{startsExpr:mf}),_namespace:Df("namespace",{startsExpr:mf}),_interface:Df("interface",{startsExpr:mf}),_type:Df("type",{startsExpr:mf}),_opaque:Df("opaque",{startsExpr:mf}),name:vh("name",{startsExpr:mf}),string:vh("string",{startsExpr:mf}),num:vh("num",{startsExpr:mf}),bigint:vh("bigint",{startsExpr:mf}),decimal:vh("decimal",{startsExpr:mf}),regexp:vh("regexp",{startsExpr:mf}),privateName:vh("#name",{startsExpr:mf}),eof:vh("eof"),jsxName:vh("jsxName"),jsxText:vh("jsxText",{beforeExpr:!0}),jsxTagStart:vh("jsxTagStart",{startsExpr:!0}),jsxTagEnd:vh("jsxTagEnd"),placeholder:vh("%%",{startsExpr:!0})};function _h(Jd){return Jd>=93&&Jd<=132}function Nh(Jd){return Jd<=92}function dm(Jd){return Jd>=58&&Jd<=132}function Jf(Jd){return Jd>=58&&Jd<=136}function oh(Jd){return eh[Jd]}function Xh(Jd){return fh[Jd]}function Tm(Jd){return Jd>=29&&Jd<=33}function kh(Jd){return Jd>=129&&Jd<=131}function Zf(Jd){return Jd>=90&&Jd<=92}function th(Jd){return Jd>=58&&Jd<=92}function $h(Jd){return Jd>=39&&Jd<=59}function wh(Jd){return Jd===34}function fm(Jd){return Sh[Jd]}function zh(Jd){return Jd>=121&&Jd<=123}function Mm(Jd){return Jd>=124&&Jd<=130}function Rm(Jd){return Mh[Jd]}function tg(Jd){return dh[Jd]}function Fm(Jd){return Jd===57}function Ym(Jd){return Jd>=24&&Jd<=25}function rg(Jd){return Eh[Jd]}Eh[8].updateContext=Jd=>{Jd.pop()},Eh[5].updateContext=Eh[7].updateContext=Eh[23].updateContext=Jd=>{Jd.push(Ef.brace)},Eh[22].updateContext=Jd=>{Jd[Jd.length-1]===Ef.template?Jd.pop():Jd.push(Ef.template)},Eh[142].updateContext=Jd=>{Jd.push(Ef.j_expr,Ef.j_oTag)};var Eg="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟊꟐꟑꟓꟕ-ꟙꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",Fh="‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࢘-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・",kf=new RegExp("["+Eg+"]"),Rf=new RegExp("["+Eg+Fh+"]");Eg=Fh=null;var Dh=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,68,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,4026,582,8634,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,757,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191],Vh=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,81,2,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,9,5351,0,7,14,13835,9,87,9,39,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,4706,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,983,6,110,6,6,9,4759,9,787719,239];function Sm(Jd,zd){let Zd=65536;for(let Tf=0,Bf=zd.length;TfJd)return!1;if(Zd+=zd[Tf+1],Zd>=Jd)return!0}return!1}function $m(Jd){return Jd<65?Jd===36:Jd<=90?!0:Jd<97?Jd===95:Jd<=122?!0:Jd<=65535?Jd>=170&&kf.test(String.fromCharCode(Jd)):Sm(Jd,Dh)}function Km(Jd){return Jd<48?Jd===36:Jd<58?!0:Jd<65?!1:Jd<=90?!0:Jd<97?Jd===95:Jd<=122?!0:Jd<=65535?Jd>=170&&Rf.test(String.fromCharCode(Jd)):Sm(Jd,Dh)||Sm(Jd,Vh)}var Ag={keyword:["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"],strict:["implements","interface","let","package","private","protected","public","static","yield"],strictBind:["eval","arguments"]},ig=new Set(Ag.keyword),_g=new Set(Ag.strict),vg=new Set(Ag.strictBind);function Og(Jd,zd){return zd&&Jd==="await"||Jd==="enum"}function Wg(Jd,zd){return Og(Jd,zd)||_g.has(Jd)}function d_(Jd){return vg.has(Jd)}function o_(Jd,zd){return Wg(Jd,zd)||d_(Jd)}function y_(Jd){return ig.has(Jd)}function t_(Jd,zd,Zd){return Jd===64&&zd===64&&$m(Zd)}var R_=new Set(["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete","implements","interface","let","package","private","protected","public","static","yield","eval","arguments","enum","await"]);function v_(Jd){return R_.has(Jd)}var X_=class{constructor(Jd){this.flags=0,this.names=new Map,this.firstLexicalName="",this.flags=Jd}},eb=class{constructor(Jd,zd){this.parser=void 0,this.scopeStack=[],this.inModule=void 0,this.undefinedExports=new Map,this.parser=Jd,this.inModule=zd}get inTopLevel(){return(this.currentScope().flags&1)>0}get inFunction(){return(this.currentVarScopeFlags()&2)>0}get allowSuper(){return(this.currentThisScopeFlags()&16)>0}get allowDirectSuper(){return(this.currentThisScopeFlags()&32)>0}get inClass(){return(this.currentThisScopeFlags()&64)>0}get inClassAndNotInNonArrowFunction(){let Jd=this.currentThisScopeFlags();return(Jd&64)>0&&(Jd&2)===0}get inStaticBlock(){for(let Jd=this.scopeStack.length-1;;Jd--){let{flags:zd}=this.scopeStack[Jd];if(zd&128)return!0;if(zd&451)return!1}}get inNonArrowFunction(){return(this.currentThisScopeFlags()&2)>0}get treatFunctionsAsVar(){return this.treatFunctionsAsVarInScope(this.currentScope())}createScope(Jd){return new X_(Jd)}enter(Jd){this.scopeStack.push(this.createScope(Jd))}exit(){return this.scopeStack.pop().flags}treatFunctionsAsVarInScope(Jd){return!!(Jd.flags&130||!this.parser.inModule&&Jd.flags&1)}declareName(Jd,zd,Zd){let Tf=this.currentScope();if(zd&8||zd&16){this.checkRedeclarationInScope(Tf,Jd,zd,Zd);let Bf=Tf.names.get(Jd)||0;zd&16?Bf=Bf|4:(Tf.firstLexicalName||(Tf.firstLexicalName=Jd),Bf=Bf|2),Tf.names.set(Jd,Bf),zd&8&&this.maybeExportDefined(Tf,Jd)}else if(zd&4)for(let Bf=this.scopeStack.length-1;Bf>=0&&(Tf=this.scopeStack[Bf],this.checkRedeclarationInScope(Tf,Jd,zd,Zd),Tf.names.set(Jd,(Tf.names.get(Jd)||0)|1),this.maybeExportDefined(Tf,Jd),!(Tf.flags&387));--Bf);this.parser.inModule&&Tf.flags&1&&this.undefinedExports.delete(Jd)}maybeExportDefined(Jd,zd){this.parser.inModule&&Jd.flags&1&&this.undefinedExports.delete(zd)}checkRedeclarationInScope(Jd,zd,Zd,Tf){this.isRedeclaredInScope(Jd,zd,Zd)&&this.parser.raise(Ud.VarRedeclaration,Tf,{identifierName:zd})}isRedeclaredInScope(Jd,zd,Zd){if(!(Zd&1))return!1;if(Zd&8)return Jd.names.has(zd);let Tf=Jd.names.get(zd);return Zd&16?(Tf&2)>0||!this.treatFunctionsAsVarInScope(Jd)&&(Tf&1)>0:(Tf&2)>0&&!(Jd.flags&8&&Jd.firstLexicalName===zd)||!this.treatFunctionsAsVarInScope(Jd)&&(Tf&4)>0}checkLocalExport(Jd){let{name:zd}=Jd;this.scopeStack[0].names.has(zd)||this.undefinedExports.set(zd,Jd.loc.start)}currentScope(){return this.scopeStack[this.scopeStack.length-1]}currentVarScopeFlags(){for(let Jd=this.scopeStack.length-1;;Jd--){let{flags:zd}=this.scopeStack[Jd];if(zd&387)return zd}}currentThisScopeFlags(){for(let Jd=this.scopeStack.length-1;;Jd--){let{flags:zd}=this.scopeStack[Jd];if(zd&451&&!(zd&4))return zd}}},I_=class extends X_{constructor(...Jd){super(...Jd),this.declareFunctions=new Set}},$_=class extends eb{createScope(Jd){return new I_(Jd)}declareName(Jd,zd,Zd){let Tf=this.currentScope();if(zd&2048){this.checkRedeclarationInScope(Tf,Jd,zd,Zd),this.maybeExportDefined(Tf,Jd),Tf.declareFunctions.add(Jd);return}super.declareName(Jd,zd,Zd)}isRedeclaredInScope(Jd,zd,Zd){if(super.isRedeclaredInScope(Jd,zd,Zd))return!0;if(Zd&2048&&!Jd.declareFunctions.has(zd)){let Tf=Jd.names.get(zd);return(Tf&4)>0||(Tf&2)>0}return!1}checkLocalExport(Jd){this.scopeStack[0].declareFunctions.has(Jd.name)||super.checkLocalExport(Jd)}},$g=class{constructor(){this.sawUnambiguousESM=!1,this.ambiguousScriptDifferentAst=!1}hasPlugin(Jd){if(typeof Jd=="string")return this.plugins.has(Jd);{let[zd,Zd]=Jd;if(!this.hasPlugin(zd))return!1;let Tf=this.plugins.get(zd);for(let Bf of Object.keys(Zd))if((Tf==null?void 0:Tf[Bf])!==Zd[Bf])return!1;return!0}}getPluginOption(Jd,zd){var Zd;return(Zd=this.plugins.get(Jd))==null?void 0:Zd[zd]}};function Lb(Jd,zd){Jd.trailingComments===void 0?Jd.trailingComments=zd:Jd.trailingComments.unshift(...zd)}function Kb(Jd,zd){Jd.leadingComments===void 0?Jd.leadingComments=zd:Jd.leadingComments.unshift(...zd)}function db(Jd,zd){Jd.innerComments===void 0?Jd.innerComments=zd:Jd.innerComments.unshift(...zd)}function nh(Jd,zd,Zd){let Tf=null,Bf=zd.length;for(;Tf===null&&Bf>0;)Tf=zd[--Bf];Tf===null||Tf.start>Zd.start?db(Jd,Zd.comments):Lb(Tf,Zd.comments)}var gm=class extends $g{addComment(Jd){this.filename&&(Jd.loc.filename=this.filename);let{commentsLen:zd}=this.state;this.comments.length!==zd&&(this.comments.length=zd),this.comments.push(Jd),this.state.commentsLen++}processComment(Jd){let{commentStack:zd}=this.state,Zd=zd.length;if(Zd===0)return;let Tf=Zd-1,Bf=zd[Tf];Bf.start===Jd.end&&(Bf.leadingNode=Jd,Tf--);let{start:Ph}=Jd;for(;Tf>=0;Tf--){let hm=zd[Tf],Im=hm.end;if(Im>Ph)hm.containingNode=Jd,this.finalizeComment(hm),zd.splice(Tf,1);else{Im===Ph&&(hm.trailingNode=Jd);break}}}finalizeComment(Jd){let{comments:zd}=Jd;if(Jd.leadingNode!==null||Jd.trailingNode!==null)Jd.leadingNode!==null&&Lb(Jd.leadingNode,zd),Jd.trailingNode!==null&&Kb(Jd.trailingNode,zd);else{let{containingNode:Zd,start:Tf}=Jd;if(this.input.charCodeAt(Tf-1)===44)switch(Zd.type){case"ObjectExpression":case"ObjectPattern":case"RecordExpression":nh(Zd,Zd.properties,Jd);break;case"CallExpression":case"OptionalCallExpression":nh(Zd,Zd.arguments,Jd);break;case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":nh(Zd,Zd.params,Jd);break;case"ArrayExpression":case"ArrayPattern":case"TupleExpression":nh(Zd,Zd.elements,Jd);break;case"ExportNamedDeclaration":case"ImportDeclaration":nh(Zd,Zd.specifiers,Jd);break;default:db(Zd,zd)}else db(Zd,zd)}}finalizeRemainingComments(){let{commentStack:Jd}=this.state;for(let zd=Jd.length-1;zd>=0;zd--)this.finalizeComment(Jd[zd]);this.state.commentStack=[]}resetPreviousNodeTrailingComments(Jd){let{commentStack:zd}=this.state,{length:Zd}=zd;if(Zd===0)return;let Tf=zd[Zd-1];Tf.leadingNode===Jd&&(Tf.leadingNode=null)}resetPreviousIdentifierLeadingComments(Jd){let{commentStack:zd}=this.state,{length:Zd}=zd;Zd!==0&&(zd[Zd-1].trailingNode===Jd?zd[Zd-1].trailingNode=null:Zd>=2&&zd[Zd-2].trailingNode===Jd&&(zd[Zd-2].trailingNode=null))}takeSurroundingComments(Jd,zd,Zd){let{commentStack:Tf}=this.state,Bf=Tf.length;if(Bf===0)return;let Ph=Bf-1;for(;Ph>=0;Ph--){let hm=Tf[Ph],Im=hm.end;if(hm.start===Zd)hm.leadingNode=Jd;else if(Im===zd)hm.trailingNode=Jd;else if(Im0}set strict(zd){zd?this.flags|=1:this.flags&=-2}init({strictMode:zd,sourceType:Zd,startLine:Tf,startColumn:Bf}){this.strict=zd===!1?!1:zd===!0?!0:Zd==="module",this.curLine=Tf,this.lineStart=-Bf,this.startLoc=this.endLoc=new rd(Tf,Bf,0)}get maybeInArrowParameters(){return(this.flags&2)>0}set maybeInArrowParameters(zd){zd?this.flags|=2:this.flags&=-3}get inType(){return(this.flags&4)>0}set inType(zd){zd?this.flags|=4:this.flags&=-5}get noAnonFunctionType(){return(this.flags&8)>0}set noAnonFunctionType(zd){zd?this.flags|=8:this.flags&=-9}get hasFlowComment(){return(this.flags&16)>0}set hasFlowComment(zd){zd?this.flags|=16:this.flags&=-17}get isAmbientContext(){return(this.flags&32)>0}set isAmbientContext(zd){zd?this.flags|=32:this.flags&=-33}get inAbstractClass(){return(this.flags&64)>0}set inAbstractClass(zd){zd?this.flags|=64:this.flags&=-65}get inDisallowConditionalTypesContext(){return(this.flags&128)>0}set inDisallowConditionalTypesContext(zd){zd?this.flags|=128:this.flags&=-129}get soloAwait(){return(this.flags&256)>0}set soloAwait(zd){zd?this.flags|=256:this.flags&=-257}get inFSharpPipelineDirectBody(){return(this.flags&512)>0}set inFSharpPipelineDirectBody(zd){zd?this.flags|=512:this.flags&=-513}get canStartJSXElement(){return(this.flags&1024)>0}set canStartJSXElement(zd){zd?this.flags|=1024:this.flags&=-1025}get containsEsc(){return(this.flags&2048)>0}set containsEsc(zd){zd?this.flags|=2048:this.flags&=-2049}curPosition(){return new rd(this.curLine,this.pos-this.lineStart,this.pos)}clone(){let zd=new FC;return zd.flags=this.flags,zd.curLine=this.curLine,zd.lineStart=this.lineStart,zd.startLoc=this.startLoc,zd.endLoc=this.endLoc,zd.errors=this.errors.slice(),zd.potentialArrowAt=this.potentialArrowAt,zd.noArrowAt=this.noArrowAt.slice(),zd.noArrowParamsConversionAt=this.noArrowParamsConversionAt.slice(),zd.topicContext=this.topicContext,zd.labels=this.labels.slice(),zd.commentsLen=this.commentsLen,zd.commentStack=this.commentStack.slice(),zd.pos=this.pos,zd.type=this.type,zd.value=this.value,zd.start=this.start,zd.end=this.end,zd.lastTokEndLoc=this.lastTokEndLoc,zd.lastTokStartLoc=this.lastTokStartLoc,zd.context=this.context.slice(),zd.firstInvalidTemplateEscapePos=this.firstInvalidTemplateEscapePos,zd.strictErrors=this.strictErrors,zd.tokensLength=this.tokensLength,zd}},pg=function(Jd){return Jd>=48&&Jd<=57},qg={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},xg={bin:Jd=>Jd===48||Jd===49,oct:Jd=>Jd>=48&&Jd<=55,dec:Jd=>Jd>=48&&Jd<=57,hex:Jd=>Jd>=48&&Jd<=57||Jd>=65&&Jd<=70||Jd>=97&&Jd<=102};function Yg(Jd,zd,Zd,Tf,Bf,Ph){let hm=Zd,Im=Tf,Gm=Bf,Um="",Sg=null,Bg=Zd,{length:Xg}=zd;for(;;){if(Zd>=Xg){Ph.unterminated(hm,Im,Gm),Um+=zd.slice(Bg,Zd);break}let Zg=zd.charCodeAt(Zd);if(w_(Jd,Zg,zd,Zd)){Um+=zd.slice(Bg,Zd);break}if(Zg===92){Um+=zd.slice(Bg,Zd);let g_=C_(zd,Zd,Tf,Bf,Jd==="template",Ph);g_.ch===null&&!Sg?Sg={pos:Zd,lineStart:Tf,curLine:Bf}:Um+=g_.ch,{pos:Zd,lineStart:Tf,curLine:Bf}=g_,Bg=Zd}else Zg===8232||Zg===8233?(++Zd,++Bf,Tf=Zd):Zg===10||Zg===13?Jd==="template"?(Um+=zd.slice(Bg,Zd)+` +- Did you mean \`import { "${Jd}" as foo }\`?`,ImportCallArgumentTrailingComma:"Trailing comma is disallowed inside import(...) arguments.",ImportCallArity:({maxArgumentCount:Jd})=>`\`import()\` requires exactly ${Jd===1?"one argument":"one or two arguments"}.`,ImportCallNotNewExpression:"Cannot use new with import(...).",ImportCallSpreadArgument:"`...` is not allowed in `import()`.",ImportJSONBindingNotDefault:"A JSON module can only be imported with `default`.",ImportReflectionHasAssertion:"`import module x` cannot have assertions.",ImportReflectionNotBinding:'Only `import module x from "./module"` is valid.',IncompatibleRegExpUVFlags:"The 'u' and 'v' regular expression flags cannot be enabled at the same time.",InvalidBigIntLiteral:"Invalid BigIntLiteral.",InvalidCodePoint:"Code point out of bounds.",InvalidCoverInitializedName:"Invalid shorthand property initializer.",InvalidDecimal:"Invalid decimal.",InvalidDigit:({radix:Jd})=>`Expected number in radix ${Jd}.`,InvalidEscapeSequence:"Bad character escape sequence.",InvalidEscapeSequenceTemplate:"Invalid escape sequence in template.",InvalidEscapedReservedWord:({reservedWord:Jd})=>`Escape sequence in keyword ${Jd}.`,InvalidIdentifier:({identifierName:Jd})=>`Invalid identifier ${Jd}.`,InvalidLhs:({ancestor:Jd})=>`Invalid left-hand side in ${gd(Jd)}.`,InvalidLhsBinding:({ancestor:Jd})=>`Binding invalid left-hand side in ${gd(Jd)}.`,InvalidLhsOptionalChaining:({ancestor:Jd})=>`Invalid optional chaining in the left-hand side of ${gd(Jd)}.`,InvalidNumber:"Invalid number.",InvalidOrMissingExponent:"Floating-point numbers require a valid exponent after the 'e'.",InvalidOrUnexpectedToken:({unexpected:Jd})=>`Unexpected character '${Jd}'.`,InvalidParenthesizedAssignment:"Invalid parenthesized assignment pattern.",InvalidPrivateFieldResolution:({identifierName:Jd})=>`Private name #${Jd} is not defined.`,InvalidPropertyBindingPattern:"Binding member expression.",InvalidRecordProperty:"Only properties and spread elements are allowed in record definitions.",InvalidRestAssignmentPattern:"Invalid rest operator's argument.",LabelRedeclaration:({labelName:Jd})=>`Label '${Jd}' is already declared.`,LetInLexicalBinding:"'let' is disallowed as a lexically bound name.",LineTerminatorBeforeArrow:"No line break is allowed before '=>'.",MalformedRegExpFlags:"Invalid regular expression flag.",MissingClassName:"A class name is required.",MissingEqInAssignment:"Only '=' operator can be used for specifying default value.",MissingSemicolon:"Missing semicolon.",MissingPlugin:({missingPlugin:Jd})=>`This experimental syntax requires enabling the parser plugin: ${Jd.map(zd=>JSON.stringify(zd)).join(", ")}.`,MissingOneOfPlugins:({missingPlugin:Jd})=>`This experimental syntax requires enabling one of the following parser plugin(s): ${Jd.map(zd=>JSON.stringify(zd)).join(", ")}.`,MissingUnicodeEscape:"Expecting Unicode escape sequence \\uXXXX.",MixingCoalesceWithLogical:"Nullish coalescing operator(??) requires parens when mixing with logical operators.",ModuleAttributeDifferentFromType:"The only accepted module attribute is `type`.",ModuleAttributeInvalidValue:"Only string literals are allowed as module attribute values.",ModuleAttributesWithDuplicateKeys:({key:Jd})=>`Duplicate key "${Jd}" is not allowed in module attributes.`,ModuleExportNameHasLoneSurrogate:({surrogateCharCode:Jd})=>`An export name cannot include a lone surrogate, found '\\u${Jd.toString(16)}'.`,ModuleExportUndefined:({localName:Jd})=>`Export '${Jd}' is not defined.`,MultipleDefaultsInSwitch:"Multiple default clauses.",NewlineAfterThrow:"Illegal newline after throw.",NoCatchOrFinally:"Missing catch or finally clause.",NumberIdentifier:"Identifier directly after number.",NumericSeparatorInEscapeSequence:"Numeric separators are not allowed inside unicode escape sequences or hex escape sequences.",ObsoleteAwaitStar:"'await*' has been removed from the async functions proposal. Use Promise.all() instead.",OptionalChainingNoNew:"Constructors in/after an Optional Chain are not allowed.",OptionalChainingNoTemplate:"Tagged Template Literals are not allowed in optionalChain.",OverrideOnConstructor:"'override' modifier cannot appear on a constructor declaration.",ParamDupe:"Argument name clash.",PatternHasAccessor:"Object pattern can't contain getter or setter.",PatternHasMethod:"Object pattern can't contain methods.",PrivateInExpectedIn:({identifierName:Jd})=>`Private names are only allowed in property accesses (\`obj.#${Jd}\`) or in \`in\` expressions (\`#${Jd} in obj\`).`,PrivateNameRedeclaration:({identifierName:Jd})=>`Duplicate private name #${Jd}.`,RecordExpressionBarIncorrectEndSyntaxType:"Record expressions ending with '|}' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionBarIncorrectStartSyntaxType:"Record expressions starting with '{|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionHashIncorrectStartSyntaxType:"Record expressions starting with '#{' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",RecordNoProto:"'__proto__' is not allowed in Record expressions.",RestTrailingComma:"Unexpected trailing comma after rest element.",SloppyFunction:"In non-strict mode code, functions can only be declared at top level or inside a block.",SloppyFunctionAnnexB:"In non-strict mode code, functions can only be declared at top level, inside a block, or as the body of an if statement.",SourcePhaseImportRequiresDefault:'Only `import source x from "./module"` is valid.',StaticPrototype:"Classes may not have static property named prototype.",SuperNotAllowed:"`super()` is only valid inside a class constructor of a subclass. Maybe a typo in the method name ('constructor') or not extending another class?",SuperPrivateField:"Private fields can't be accessed on super.",TrailingDecorator:"Decorators must be attached to a class element.",TupleExpressionBarIncorrectEndSyntaxType:"Tuple expressions ending with '|]' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionBarIncorrectStartSyntaxType:"Tuple expressions starting with '[|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionHashIncorrectStartSyntaxType:"Tuple expressions starting with '#[' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",UnexpectedArgumentPlaceholder:"Unexpected argument placeholder.",UnexpectedAwaitAfterPipelineBody:'Unexpected "await" after pipeline body; await must have parentheses in minimal proposal.',UnexpectedDigitAfterHash:"Unexpected digit after hash token.",UnexpectedImportExport:"'import' and 'export' may only appear at the top level.",UnexpectedKeyword:({keyword:Jd})=>`Unexpected keyword '${Jd}'.`,UnexpectedLeadingDecorator:"Leading decorators must be attached to a class declaration.",UnexpectedLexicalDeclaration:"Lexical declaration cannot appear in a single-statement context.",UnexpectedNewTarget:"`new.target` can only be used in functions or class properties.",UnexpectedNumericSeparator:"A numeric separator is only allowed between two digits.",UnexpectedPrivateField:"Unexpected private name.",UnexpectedReservedWord:({reservedWord:Jd})=>`Unexpected reserved word '${Jd}'.`,UnexpectedSuper:"'super' is only allowed in object methods and classes.",UnexpectedToken:({expected:Jd,unexpected:zd})=>`Unexpected token${zd?` '${zd}'.`:""}${Jd?`, expected "${Jd}"`:""}`,UnexpectedTokenUnaryExponentiation:"Illegal expression. Wrap left hand side or entire exponentiation in parentheses.",UnexpectedUsingDeclaration:"Using declaration cannot appear in the top level when source type is `script`.",UnsupportedBind:"Binding should be performed on object property.",UnsupportedDecoratorExport:"A decorated export must export a class declaration.",UnsupportedDefaultExport:"Only expressions, functions or classes are allowed as the `default` export.",UnsupportedImport:"`import` can only be used in `import()` or `import.meta`.",UnsupportedMetaProperty:({target:Jd,onlyValidPropertyName:zd})=>`The only valid meta property for ${Jd} is ${Jd}.${zd}.`,UnsupportedParameterDecorator:"Decorators cannot be used to decorate parameters.",UnsupportedPropertyDecorator:"Decorators cannot be used to decorate object literal properties.",UnsupportedSuper:"'super' can only be used with function calls (i.e. super()) or in property accesses (i.e. super.prop or super[prop]).",UnterminatedComment:"Unterminated comment.",UnterminatedRegExp:"Unterminated regular expression.",UnterminatedString:"Unterminated string constant.",UnterminatedTemplate:"Unterminated template.",UsingDeclarationExport:"Using declaration cannot be exported.",UsingDeclarationHasBindingPattern:"Using declaration cannot have destructuring patterns.",VarRedeclaration:({identifierName:Jd})=>`Identifier '${Jd}' has already been declared.`,YieldBindingIdentifier:"Can not use 'yield' as identifier inside a generator.",YieldInParameter:"Yield expression is not allowed in formal parameters.",ZeroDigitNumericSeparator:"Numeric separator can not be used after leading 0."},vd={StrictDelete:"Deleting local variable in strict mode.",StrictEvalArguments:({referenceName:Jd})=>`Assigning to '${Jd}' in strict mode.`,StrictEvalArgumentsBinding:({bindingName:Jd})=>`Binding '${Jd}' in strict mode.`,StrictFunction:"In strict mode code, functions can only be declared at top level or inside a block.",StrictNumericEscape:"The only valid numeric escape in strict mode is '\\0'.",StrictOctalLiteral:"Legacy octal literals are not allowed in strict mode.",StrictWith:"'with' in strict mode."},Nd=new Set(["ArrowFunctionExpression","AssignmentExpression","ConditionalExpression","YieldExpression"]),Md={PipeBodyIsTighter:"Unexpected yield after pipeline body; any yield expression acting as Hack-style pipe body must be parenthesized due to its loose operator precedence.",PipeTopicRequiresHackPipes:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.',PipeTopicUnbound:"Topic reference is unbound; it must be inside a pipe body.",PipeTopicUnconfiguredToken:({token:Jd})=>`Invalid topic token ${Jd}. In order to use ${Jd} as a topic reference, the pipelineOperator plugin must be configured with { "proposal": "hack", "topicToken": "${Jd}" }.`,PipeTopicUnused:"Hack-style pipe body does not contain a topic reference; Hack-style pipes must use topic at least once.",PipeUnparenthesizedBody:({type:Jd})=>`Hack-style pipe body cannot be an unparenthesized ${gd({type:Jd})}; please wrap it in parentheses.`,PipelineBodyNoArrow:'Unexpected arrow "=>" after pipeline body; arrow function in pipeline body must be parenthesized.',PipelineBodySequenceExpression:"Pipeline body may not be a comma-separated sequence expression.",PipelineHeadSequenceExpression:"Pipeline head should not be a comma-separated sequence expression.",PipelineTopicUnused:"Pipeline is in topic style but does not use topic reference.",PrimaryTopicNotAllowed:"Topic reference was used in a lexical context without topic binding.",PrimaryTopicRequiresSmartPipeline:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.'},Ld=["toMessage"],Fd=["message"];function Hd(Jd,zd,Zd){Object.defineProperty(Jd,zd,{enumerable:!1,configurable:!0,value:Zd})}function Vd(Jd){let{toMessage:zd}=Jd,Zd=qa(Jd,Ld);return function Tf(Bf,Ph){let hm=new SyntaxError;return Object.assign(hm,Zd,{loc:Bf,pos:Bf.index}),"missingPlugin"in Ph&&Object.assign(hm,{missingPlugin:Ph.missingPlugin}),Hd(hm,"clone",function(Im={}){var Gm;let{line:Um,column:Sg,index:Bg}=(Gm=Im.loc)!=null?Gm:Bf;return Tf(new rd(Um,Sg,Bg),Object.assign({},Ph,Im.details))}),Hd(hm,"details",Ph),Object.defineProperty(hm,"message",{configurable:!0,get(){let Im=`${zd(Ph)} (${Bf.line}:${Bf.column})`;return this.message=Im,Im},set(Im){Object.defineProperty(this,"message",{value:Im,writable:!0})}}),hm}}function Gd(Jd,zd){if(Array.isArray(Jd))return Tf=>Gd(Tf,Jd[0]);let Zd={};for(let Tf of Object.keys(Jd)){let Bf=Jd[Tf],Ph=typeof Bf=="string"?{message:()=>Bf}:typeof Bf=="function"?{message:Bf}:Bf,{message:hm}=Ph,Im=qa(Ph,Fd),Gm=typeof hm=="string"?()=>hm:hm;Zd[Tf]=Vd(Object.assign({code:"BABEL_PARSER_SYNTAX_ERROR",reasonCode:Tf,toMessage:Gm},zd?{syntaxPlugin:zd}:{},Im))}return Zd}var Ud=Object.assign({},Gd(hd),Gd(yd),Gd(vd),Gd`pipelineOperator`(Md)),{defineProperty:qd}=Object,Wd=(Jd,zd)=>{Jd&&qd(Jd,zd,{enumerable:!1,value:Jd[zd]})};function Kd(Jd){return Wd(Jd.loc.start,"index"),Wd(Jd.loc.end,"index"),Jd}var Xd=Jd=>class extends Jd{parse(){let zd=Kd(super.parse());return this.options.tokens&&(zd.tokens=zd.tokens.map(Kd)),zd}parseRegExpLiteral({pattern:zd,flags:Zd}){let Tf=null;try{Tf=new RegExp(zd,Zd)}catch{}let Bf=this.estreeParseLiteral(Tf);return Bf.regex={pattern:zd,flags:Zd},Bf}parseBigIntLiteral(zd){let Zd;try{Zd=BigInt(zd)}catch{Zd=null}let Tf=this.estreeParseLiteral(Zd);return Tf.bigint=String(Tf.value||zd),Tf}parseDecimalLiteral(zd){let Zd=this.estreeParseLiteral(null);return Zd.decimal=String(Zd.value||zd),Zd}estreeParseLiteral(zd){return this.parseLiteral(zd,"Literal")}parseStringLiteral(zd){return this.estreeParseLiteral(zd)}parseNumericLiteral(zd){return this.estreeParseLiteral(zd)}parseNullLiteral(){return this.estreeParseLiteral(null)}parseBooleanLiteral(zd){return this.estreeParseLiteral(zd)}directiveToStmt(zd){let Zd=zd.value;delete zd.value,Zd.type="Literal",Zd.raw=Zd.extra.raw,Zd.value=Zd.extra.expressionValue;let Tf=zd;return Tf.type="ExpressionStatement",Tf.expression=Zd,Tf.directive=Zd.extra.rawValue,delete Zd.extra,Tf}initFunction(zd,Zd){super.initFunction(zd,Zd),zd.expression=!1}checkDeclaration(zd){zd!=null&&this.isObjectProperty(zd)?this.checkDeclaration(zd.value):super.checkDeclaration(zd)}getObjectOrClassMethodParams(zd){return zd.value.params}isValidDirective(zd){var Zd;return zd.type==="ExpressionStatement"&&zd.expression.type==="Literal"&&typeof zd.expression.value=="string"&&!((Zd=zd.expression.extra)!=null&&Zd.parenthesized)}parseBlockBody(zd,Zd,Tf,Bf,Ph){super.parseBlockBody(zd,Zd,Tf,Bf,Ph);let hm=zd.directives.map(Im=>this.directiveToStmt(Im));zd.body=hm.concat(zd.body),delete zd.directives}pushClassMethod(zd,Zd,Tf,Bf,Ph,hm){this.parseMethod(Zd,Tf,Bf,Ph,hm,"ClassMethod",!0),Zd.typeParameters&&(Zd.value.typeParameters=Zd.typeParameters,delete Zd.typeParameters),zd.body.push(Zd)}parsePrivateName(){let zd=super.parsePrivateName();return this.getPluginOption("estree","classFeatures")?this.convertPrivateNameToPrivateIdentifier(zd):zd}convertPrivateNameToPrivateIdentifier(zd){let Zd=super.getPrivateNameSV(zd);return zd=zd,delete zd.id,zd.name=Zd,zd.type="PrivateIdentifier",zd}isPrivateName(zd){return this.getPluginOption("estree","classFeatures")?zd.type==="PrivateIdentifier":super.isPrivateName(zd)}getPrivateNameSV(zd){return this.getPluginOption("estree","classFeatures")?zd.name:super.getPrivateNameSV(zd)}parseLiteral(zd,Zd){let Tf=super.parseLiteral(zd,Zd);return Tf.raw=Tf.extra.raw,delete Tf.extra,Tf}parseFunctionBody(zd,Zd,Tf=!1){super.parseFunctionBody(zd,Zd,Tf),zd.expression=zd.body.type!=="BlockStatement"}parseMethod(zd,Zd,Tf,Bf,Ph,hm,Im=!1){let Gm=this.startNode();return Gm.kind=zd.kind,Gm=super.parseMethod(Gm,Zd,Tf,Bf,Ph,hm,Im),Gm.type="FunctionExpression",delete Gm.kind,zd.value=Gm,hm==="ClassPrivateMethod"&&(zd.computed=!1),this.finishNode(zd,"MethodDefinition")}nameIsConstructor(zd){return zd.type==="Literal"?zd.value==="constructor":super.nameIsConstructor(zd)}parseClassProperty(...zd){let Zd=super.parseClassProperty(...zd);return this.getPluginOption("estree","classFeatures")&&(Zd.type="PropertyDefinition"),Zd}parseClassPrivateProperty(...zd){let Zd=super.parseClassPrivateProperty(...zd);return this.getPluginOption("estree","classFeatures")&&(Zd.type="PropertyDefinition",Zd.computed=!1),Zd}parseObjectMethod(zd,Zd,Tf,Bf,Ph){let hm=super.parseObjectMethod(zd,Zd,Tf,Bf,Ph);return hm&&(hm.type="Property",hm.kind==="method"&&(hm.kind="init"),hm.shorthand=!1),hm}parseObjectProperty(zd,Zd,Tf,Bf){let Ph=super.parseObjectProperty(zd,Zd,Tf,Bf);return Ph&&(Ph.kind="init",Ph.type="Property"),Ph}isValidLVal(zd,Zd,Tf){return zd==="Property"?"value":super.isValidLVal(zd,Zd,Tf)}isAssignable(zd,Zd){return zd!=null&&this.isObjectProperty(zd)?this.isAssignable(zd.value,Zd):super.isAssignable(zd,Zd)}toAssignable(zd,Zd=!1){if(zd!=null&&this.isObjectProperty(zd)){let{key:Tf,value:Bf}=zd;this.isPrivateName(Tf)&&this.classScope.usePrivateName(this.getPrivateNameSV(Tf),Tf.loc.start),this.toAssignable(Bf,Zd)}else super.toAssignable(zd,Zd)}toAssignableObjectExpressionProp(zd,Zd,Tf){zd.type==="Property"&&(zd.kind==="get"||zd.kind==="set")?this.raise(Ud.PatternHasAccessor,zd.key):zd.type==="Property"&&zd.method?this.raise(Ud.PatternHasMethod,zd.key):super.toAssignableObjectExpressionProp(zd,Zd,Tf)}finishCallExpression(zd,Zd){let Tf=super.finishCallExpression(zd,Zd);if(Tf.callee.type==="Import"){if(Tf.type="ImportExpression",Tf.source=Tf.arguments[0],this.hasPlugin("importAttributes")||this.hasPlugin("importAssertions")){var Bf,Ph;Tf.options=(Bf=Tf.arguments[1])!=null?Bf:null,Tf.attributes=(Ph=Tf.arguments[1])!=null?Ph:null}delete Tf.arguments,delete Tf.callee}return Tf}toReferencedArguments(zd){zd.type!=="ImportExpression"&&super.toReferencedArguments(zd)}parseExport(zd,Zd){let Tf=this.state.lastTokStartLoc,Bf=super.parseExport(zd,Zd);switch(Bf.type){case"ExportAllDeclaration":Bf.exported=null;break;case"ExportNamedDeclaration":Bf.specifiers.length===1&&Bf.specifiers[0].type==="ExportNamespaceSpecifier"&&(Bf.type="ExportAllDeclaration",Bf.exported=Bf.specifiers[0].exported,delete Bf.specifiers);case"ExportDefaultDeclaration":{var Ph;let{declaration:hm}=Bf;(hm==null?void 0:hm.type)==="ClassDeclaration"&&((Ph=hm.decorators)==null?void 0:Ph.length)>0&&hm.start===Bf.start&&this.resetStartLocation(Bf,Tf)}break}return Bf}parseSubscript(zd,Zd,Tf,Bf){let Ph=super.parseSubscript(zd,Zd,Tf,Bf);if(Bf.optionalChainMember){if((Ph.type==="OptionalMemberExpression"||Ph.type==="OptionalCallExpression")&&(Ph.type=Ph.type.substring(8)),Bf.stop){let hm=this.startNodeAtNode(Ph);return hm.expression=Ph,this.finishNode(hm,"ChainExpression")}}else(Ph.type==="MemberExpression"||Ph.type==="CallExpression")&&(Ph.optional=!1);return Ph}isOptionalMemberExpression(zd){return zd.type==="ChainExpression"?zd.expression.type==="MemberExpression":super.isOptionalMemberExpression(zd)}hasPropertyAsPrivateName(zd){return zd.type==="ChainExpression"&&(zd=zd.expression),super.hasPropertyAsPrivateName(zd)}isObjectProperty(zd){return zd.type==="Property"&&zd.kind==="init"&&!zd.method}isObjectMethod(zd){return zd.type==="Property"&&(zd.method||zd.kind==="get"||zd.kind==="set")}finishNodeAt(zd,Zd,Tf){return Kd(super.finishNodeAt(zd,Zd,Tf))}resetStartLocation(zd,Zd){super.resetStartLocation(zd,Zd),Kd(zd)}resetEndLocation(zd,Zd=this.state.lastTokEndLoc){super.resetEndLocation(zd,Zd),Kd(zd)}},df=class{constructor(Jd,zd){this.token=void 0,this.preserveSpace=void 0,this.token=Jd,this.preserveSpace=!!zd}},Ef={brace:new df("{"),j_oTag:new df("...",!0)};Ef.template=new df("`",!0);var pf=!0,mf=!0,_f=!0,xf=!0,Cf=!0,If=!0,Sf=class{constructor(Jd,zd={}){this.label=void 0,this.keyword=void 0,this.beforeExpr=void 0,this.startsExpr=void 0,this.rightAssociative=void 0,this.isLoop=void 0,this.isAssign=void 0,this.prefix=void 0,this.postfix=void 0,this.binop=void 0,this.label=Jd,this.keyword=zd.keyword,this.beforeExpr=!!zd.beforeExpr,this.startsExpr=!!zd.startsExpr,this.rightAssociative=!!zd.rightAssociative,this.isLoop=!!zd.isLoop,this.isAssign=!!zd.isAssign,this.prefix=!!zd.prefix,this.postfix=!!zd.postfix,this.binop=zd.binop!=null?zd.binop:null,this.updateContext=null}},wf=new Map;function Pf(Jd,zd={}){zd.keyword=Jd;let Zd=vh(Jd,zd);return wf.set(Jd,Zd),Zd}function lh(Jd,zd){return vh(Jd,{beforeExpr:pf,binop:zd})}var xh=-1,Eh=[],Mh=[],dh=[],eh=[],fh=[],Sh=[];function vh(Jd,zd={}){var Zd,Tf,Bf,Ph;return++xh,Mh.push(Jd),dh.push((Zd=zd.binop)!=null?Zd:-1),eh.push((Tf=zd.beforeExpr)!=null?Tf:!1),fh.push((Bf=zd.startsExpr)!=null?Bf:!1),Sh.push((Ph=zd.prefix)!=null?Ph:!1),Eh.push(new Sf(Jd,zd)),xh}function Df(Jd,zd={}){var Zd,Tf,Bf,Ph;return++xh,wf.set(Jd,xh),Mh.push(Jd),dh.push((Zd=zd.binop)!=null?Zd:-1),eh.push((Tf=zd.beforeExpr)!=null?Tf:!1),fh.push((Bf=zd.startsExpr)!=null?Bf:!1),Sh.push((Ph=zd.prefix)!=null?Ph:!1),Eh.push(new Sf("name",zd)),xh}var Af={bracketL:vh("[",{beforeExpr:pf,startsExpr:mf}),bracketHashL:vh("#[",{beforeExpr:pf,startsExpr:mf}),bracketBarL:vh("[|",{beforeExpr:pf,startsExpr:mf}),bracketR:vh("]"),bracketBarR:vh("|]"),braceL:vh("{",{beforeExpr:pf,startsExpr:mf}),braceBarL:vh("{|",{beforeExpr:pf,startsExpr:mf}),braceHashL:vh("#{",{beforeExpr:pf,startsExpr:mf}),braceR:vh("}"),braceBarR:vh("|}"),parenL:vh("(",{beforeExpr:pf,startsExpr:mf}),parenR:vh(")"),comma:vh(",",{beforeExpr:pf}),semi:vh(";",{beforeExpr:pf}),colon:vh(":",{beforeExpr:pf}),doubleColon:vh("::",{beforeExpr:pf}),dot:vh("."),question:vh("?",{beforeExpr:pf}),questionDot:vh("?."),arrow:vh("=>",{beforeExpr:pf}),template:vh("template"),ellipsis:vh("...",{beforeExpr:pf}),backQuote:vh("`",{startsExpr:mf}),dollarBraceL:vh("${",{beforeExpr:pf,startsExpr:mf}),templateTail:vh("...`",{startsExpr:mf}),templateNonTail:vh("...${",{beforeExpr:pf,startsExpr:mf}),at:vh("@"),hash:vh("#",{startsExpr:mf}),interpreterDirective:vh("#!..."),eq:vh("=",{beforeExpr:pf,isAssign:xf}),assign:vh("_=",{beforeExpr:pf,isAssign:xf}),slashAssign:vh("_=",{beforeExpr:pf,isAssign:xf}),xorAssign:vh("_=",{beforeExpr:pf,isAssign:xf}),moduloAssign:vh("_=",{beforeExpr:pf,isAssign:xf}),incDec:vh("++/--",{prefix:Cf,postfix:If,startsExpr:mf}),bang:vh("!",{beforeExpr:pf,prefix:Cf,startsExpr:mf}),tilde:vh("~",{beforeExpr:pf,prefix:Cf,startsExpr:mf}),doubleCaret:vh("^^",{startsExpr:mf}),doubleAt:vh("@@",{startsExpr:mf}),pipeline:lh("|>",0),nullishCoalescing:lh("??",1),logicalOR:lh("||",1),logicalAND:lh("&&",2),bitwiseOR:lh("|",3),bitwiseXOR:lh("^",4),bitwiseAND:lh("&",5),equality:lh("==/!=/===/!==",6),lt:lh("/<=/>=",7),gt:lh("/<=/>=",7),relational:lh("/<=/>=",7),bitShift:lh("<>/>>>",8),bitShiftL:lh("<>/>>>",8),bitShiftR:lh("<>/>>>",8),plusMin:vh("+/-",{beforeExpr:pf,binop:9,prefix:Cf,startsExpr:mf}),modulo:vh("%",{binop:10,startsExpr:mf}),star:vh("*",{binop:10}),slash:lh("/",10),exponent:vh("**",{beforeExpr:pf,binop:11,rightAssociative:!0}),_in:Pf("in",{beforeExpr:pf,binop:7}),_instanceof:Pf("instanceof",{beforeExpr:pf,binop:7}),_break:Pf("break"),_case:Pf("case",{beforeExpr:pf}),_catch:Pf("catch"),_continue:Pf("continue"),_debugger:Pf("debugger"),_default:Pf("default",{beforeExpr:pf}),_else:Pf("else",{beforeExpr:pf}),_finally:Pf("finally"),_function:Pf("function",{startsExpr:mf}),_if:Pf("if"),_return:Pf("return",{beforeExpr:pf}),_switch:Pf("switch"),_throw:Pf("throw",{beforeExpr:pf,prefix:Cf,startsExpr:mf}),_try:Pf("try"),_var:Pf("var"),_const:Pf("const"),_with:Pf("with"),_new:Pf("new",{beforeExpr:pf,startsExpr:mf}),_this:Pf("this",{startsExpr:mf}),_super:Pf("super",{startsExpr:mf}),_class:Pf("class",{startsExpr:mf}),_extends:Pf("extends",{beforeExpr:pf}),_export:Pf("export"),_import:Pf("import",{startsExpr:mf}),_null:Pf("null",{startsExpr:mf}),_true:Pf("true",{startsExpr:mf}),_false:Pf("false",{startsExpr:mf}),_typeof:Pf("typeof",{beforeExpr:pf,prefix:Cf,startsExpr:mf}),_void:Pf("void",{beforeExpr:pf,prefix:Cf,startsExpr:mf}),_delete:Pf("delete",{beforeExpr:pf,prefix:Cf,startsExpr:mf}),_do:Pf("do",{isLoop:_f,beforeExpr:pf}),_for:Pf("for",{isLoop:_f}),_while:Pf("while",{isLoop:_f}),_as:Df("as",{startsExpr:mf}),_assert:Df("assert",{startsExpr:mf}),_async:Df("async",{startsExpr:mf}),_await:Df("await",{startsExpr:mf}),_defer:Df("defer",{startsExpr:mf}),_from:Df("from",{startsExpr:mf}),_get:Df("get",{startsExpr:mf}),_let:Df("let",{startsExpr:mf}),_meta:Df("meta",{startsExpr:mf}),_of:Df("of",{startsExpr:mf}),_sent:Df("sent",{startsExpr:mf}),_set:Df("set",{startsExpr:mf}),_source:Df("source",{startsExpr:mf}),_static:Df("static",{startsExpr:mf}),_using:Df("using",{startsExpr:mf}),_yield:Df("yield",{startsExpr:mf}),_asserts:Df("asserts",{startsExpr:mf}),_checks:Df("checks",{startsExpr:mf}),_exports:Df("exports",{startsExpr:mf}),_global:Df("global",{startsExpr:mf}),_implements:Df("implements",{startsExpr:mf}),_intrinsic:Df("intrinsic",{startsExpr:mf}),_infer:Df("infer",{startsExpr:mf}),_is:Df("is",{startsExpr:mf}),_mixins:Df("mixins",{startsExpr:mf}),_proto:Df("proto",{startsExpr:mf}),_require:Df("require",{startsExpr:mf}),_satisfies:Df("satisfies",{startsExpr:mf}),_keyof:Df("keyof",{startsExpr:mf}),_readonly:Df("readonly",{startsExpr:mf}),_unique:Df("unique",{startsExpr:mf}),_abstract:Df("abstract",{startsExpr:mf}),_declare:Df("declare",{startsExpr:mf}),_enum:Df("enum",{startsExpr:mf}),_module:Df("module",{startsExpr:mf}),_namespace:Df("namespace",{startsExpr:mf}),_interface:Df("interface",{startsExpr:mf}),_type:Df("type",{startsExpr:mf}),_opaque:Df("opaque",{startsExpr:mf}),name:vh("name",{startsExpr:mf}),string:vh("string",{startsExpr:mf}),num:vh("num",{startsExpr:mf}),bigint:vh("bigint",{startsExpr:mf}),decimal:vh("decimal",{startsExpr:mf}),regexp:vh("regexp",{startsExpr:mf}),privateName:vh("#name",{startsExpr:mf}),eof:vh("eof"),jsxName:vh("jsxName"),jsxText:vh("jsxText",{beforeExpr:!0}),jsxTagStart:vh("jsxTagStart",{startsExpr:!0}),jsxTagEnd:vh("jsxTagEnd"),placeholder:vh("%%",{startsExpr:!0})};function _h(Jd){return Jd>=93&&Jd<=132}function Nh(Jd){return Jd<=92}function dm(Jd){return Jd>=58&&Jd<=132}function Jf(Jd){return Jd>=58&&Jd<=136}function oh(Jd){return eh[Jd]}function Xh(Jd){return fh[Jd]}function Tm(Jd){return Jd>=29&&Jd<=33}function kh(Jd){return Jd>=129&&Jd<=131}function Zf(Jd){return Jd>=90&&Jd<=92}function th(Jd){return Jd>=58&&Jd<=92}function $h(Jd){return Jd>=39&&Jd<=59}function wh(Jd){return Jd===34}function fm(Jd){return Sh[Jd]}function zh(Jd){return Jd>=121&&Jd<=123}function Mm(Jd){return Jd>=124&&Jd<=130}function Rm(Jd){return Mh[Jd]}function tg(Jd){return dh[Jd]}function Fm(Jd){return Jd===57}function Ym(Jd){return Jd>=24&&Jd<=25}function rg(Jd){return Eh[Jd]}Eh[8].updateContext=Jd=>{Jd.pop()},Eh[5].updateContext=Eh[7].updateContext=Eh[23].updateContext=Jd=>{Jd.push(Ef.brace)},Eh[22].updateContext=Jd=>{Jd[Jd.length-1]===Ef.template?Jd.pop():Jd.push(Ef.template)},Eh[142].updateContext=Jd=>{Jd.push(Ef.j_expr,Ef.j_oTag)};var Eg="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟊꟐꟑꟓꟕ-ꟙꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",Fh="‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࢘-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・",kf=new RegExp("["+Eg+"]"),Rf=new RegExp("["+Eg+Fh+"]");Eg=Fh=null;var Dh=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,68,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,4026,582,8634,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,757,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191],Vh=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,81,2,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,9,5351,0,7,14,13835,9,87,9,39,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,4706,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,983,6,110,6,6,9,4759,9,787719,239];function Sm(Jd,zd){let Zd=65536;for(let Tf=0,Bf=zd.length;TfJd)return!1;if(Zd+=zd[Tf+1],Zd>=Jd)return!0}return!1}function $m(Jd){return Jd<65?Jd===36:Jd<=90?!0:Jd<97?Jd===95:Jd<=122?!0:Jd<=65535?Jd>=170&&kf.test(String.fromCharCode(Jd)):Sm(Jd,Dh)}function Km(Jd){return Jd<48?Jd===36:Jd<58?!0:Jd<65?!1:Jd<=90?!0:Jd<97?Jd===95:Jd<=122?!0:Jd<=65535?Jd>=170&&Rf.test(String.fromCharCode(Jd)):Sm(Jd,Dh)||Sm(Jd,Vh)}var Ag={keyword:["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"],strict:["implements","interface","let","package","private","protected","public","static","yield"],strictBind:["eval","arguments"]},ig=new Set(Ag.keyword),_g=new Set(Ag.strict),vg=new Set(Ag.strictBind);function Og(Jd,zd){return zd&&Jd==="await"||Jd==="enum"}function Wg(Jd,zd){return Og(Jd,zd)||_g.has(Jd)}function d_(Jd){return vg.has(Jd)}function o_(Jd,zd){return Wg(Jd,zd)||d_(Jd)}function y_(Jd){return ig.has(Jd)}function t_(Jd,zd,Zd){return Jd===64&&zd===64&&$m(Zd)}var R_=new Set(["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete","implements","interface","let","package","private","protected","public","static","yield","eval","arguments","enum","await"]);function v_(Jd){return R_.has(Jd)}var X_=class{constructor(Jd){this.flags=0,this.names=new Map,this.firstLexicalName="",this.flags=Jd}},eb=class{constructor(Jd,zd){this.parser=void 0,this.scopeStack=[],this.inModule=void 0,this.undefinedExports=new Map,this.parser=Jd,this.inModule=zd}get inTopLevel(){return(this.currentScope().flags&1)>0}get inFunction(){return(this.currentVarScopeFlags()&2)>0}get allowSuper(){return(this.currentThisScopeFlags()&16)>0}get allowDirectSuper(){return(this.currentThisScopeFlags()&32)>0}get inClass(){return(this.currentThisScopeFlags()&64)>0}get inClassAndNotInNonArrowFunction(){let Jd=this.currentThisScopeFlags();return(Jd&64)>0&&(Jd&2)===0}get inStaticBlock(){for(let Jd=this.scopeStack.length-1;;Jd--){let{flags:zd}=this.scopeStack[Jd];if(zd&128)return!0;if(zd&451)return!1}}get inNonArrowFunction(){return(this.currentThisScopeFlags()&2)>0}get treatFunctionsAsVar(){return this.treatFunctionsAsVarInScope(this.currentScope())}createScope(Jd){return new X_(Jd)}enter(Jd){this.scopeStack.push(this.createScope(Jd))}exit(){return this.scopeStack.pop().flags}treatFunctionsAsVarInScope(Jd){return!!(Jd.flags&130||!this.parser.inModule&&Jd.flags&1)}declareName(Jd,zd,Zd){let Tf=this.currentScope();if(zd&8||zd&16){this.checkRedeclarationInScope(Tf,Jd,zd,Zd);let Bf=Tf.names.get(Jd)||0;zd&16?Bf=Bf|4:(Tf.firstLexicalName||(Tf.firstLexicalName=Jd),Bf=Bf|2),Tf.names.set(Jd,Bf),zd&8&&this.maybeExportDefined(Tf,Jd)}else if(zd&4)for(let Bf=this.scopeStack.length-1;Bf>=0&&(Tf=this.scopeStack[Bf],this.checkRedeclarationInScope(Tf,Jd,zd,Zd),Tf.names.set(Jd,(Tf.names.get(Jd)||0)|1),this.maybeExportDefined(Tf,Jd),!(Tf.flags&387));--Bf);this.parser.inModule&&Tf.flags&1&&this.undefinedExports.delete(Jd)}maybeExportDefined(Jd,zd){this.parser.inModule&&Jd.flags&1&&this.undefinedExports.delete(zd)}checkRedeclarationInScope(Jd,zd,Zd,Tf){this.isRedeclaredInScope(Jd,zd,Zd)&&this.parser.raise(Ud.VarRedeclaration,Tf,{identifierName:zd})}isRedeclaredInScope(Jd,zd,Zd){if(!(Zd&1))return!1;if(Zd&8)return Jd.names.has(zd);let Tf=Jd.names.get(zd);return Zd&16?(Tf&2)>0||!this.treatFunctionsAsVarInScope(Jd)&&(Tf&1)>0:(Tf&2)>0&&!(Jd.flags&8&&Jd.firstLexicalName===zd)||!this.treatFunctionsAsVarInScope(Jd)&&(Tf&4)>0}checkLocalExport(Jd){let{name:zd}=Jd;this.scopeStack[0].names.has(zd)||this.undefinedExports.set(zd,Jd.loc.start)}currentScope(){return this.scopeStack[this.scopeStack.length-1]}currentVarScopeFlags(){for(let Jd=this.scopeStack.length-1;;Jd--){let{flags:zd}=this.scopeStack[Jd];if(zd&387)return zd}}currentThisScopeFlags(){for(let Jd=this.scopeStack.length-1;;Jd--){let{flags:zd}=this.scopeStack[Jd];if(zd&451&&!(zd&4))return zd}}},I_=class extends X_{constructor(...Jd){super(...Jd),this.declareFunctions=new Set}},$_=class extends eb{createScope(Jd){return new I_(Jd)}declareName(Jd,zd,Zd){let Tf=this.currentScope();if(zd&2048){this.checkRedeclarationInScope(Tf,Jd,zd,Zd),this.maybeExportDefined(Tf,Jd),Tf.declareFunctions.add(Jd);return}super.declareName(Jd,zd,Zd)}isRedeclaredInScope(Jd,zd,Zd){if(super.isRedeclaredInScope(Jd,zd,Zd))return!0;if(Zd&2048&&!Jd.declareFunctions.has(zd)){let Tf=Jd.names.get(zd);return(Tf&4)>0||(Tf&2)>0}return!1}checkLocalExport(Jd){this.scopeStack[0].declareFunctions.has(Jd.name)||super.checkLocalExport(Jd)}},$g=class{constructor(){this.sawUnambiguousESM=!1,this.ambiguousScriptDifferentAst=!1}hasPlugin(Jd){if(typeof Jd=="string")return this.plugins.has(Jd);{let[zd,Zd]=Jd;if(!this.hasPlugin(zd))return!1;let Tf=this.plugins.get(zd);for(let Bf of Object.keys(Zd))if((Tf==null?void 0:Tf[Bf])!==Zd[Bf])return!1;return!0}}getPluginOption(Jd,zd){var Zd;return(Zd=this.plugins.get(Jd))==null?void 0:Zd[zd]}};function Lb(Jd,zd){Jd.trailingComments===void 0?Jd.trailingComments=zd:Jd.trailingComments.unshift(...zd)}function Kb(Jd,zd){Jd.leadingComments===void 0?Jd.leadingComments=zd:Jd.leadingComments.unshift(...zd)}function db(Jd,zd){Jd.innerComments===void 0?Jd.innerComments=zd:Jd.innerComments.unshift(...zd)}function nh(Jd,zd,Zd){let Tf=null,Bf=zd.length;for(;Tf===null&&Bf>0;)Tf=zd[--Bf];Tf===null||Tf.start>Zd.start?db(Jd,Zd.comments):Lb(Tf,Zd.comments)}var gm=class extends $g{addComment(Jd){this.filename&&(Jd.loc.filename=this.filename);let{commentsLen:zd}=this.state;this.comments.length!==zd&&(this.comments.length=zd),this.comments.push(Jd),this.state.commentsLen++}processComment(Jd){let{commentStack:zd}=this.state,Zd=zd.length;if(Zd===0)return;let Tf=Zd-1,Bf=zd[Tf];Bf.start===Jd.end&&(Bf.leadingNode=Jd,Tf--);let{start:Ph}=Jd;for(;Tf>=0;Tf--){let hm=zd[Tf],Im=hm.end;if(Im>Ph)hm.containingNode=Jd,this.finalizeComment(hm),zd.splice(Tf,1);else{Im===Ph&&(hm.trailingNode=Jd);break}}}finalizeComment(Jd){let{comments:zd}=Jd;if(Jd.leadingNode!==null||Jd.trailingNode!==null)Jd.leadingNode!==null&&Lb(Jd.leadingNode,zd),Jd.trailingNode!==null&&Kb(Jd.trailingNode,zd);else{let{containingNode:Zd,start:Tf}=Jd;if(this.input.charCodeAt(Tf-1)===44)switch(Zd.type){case"ObjectExpression":case"ObjectPattern":case"RecordExpression":nh(Zd,Zd.properties,Jd);break;case"CallExpression":case"OptionalCallExpression":nh(Zd,Zd.arguments,Jd);break;case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":nh(Zd,Zd.params,Jd);break;case"ArrayExpression":case"ArrayPattern":case"TupleExpression":nh(Zd,Zd.elements,Jd);break;case"ExportNamedDeclaration":case"ImportDeclaration":nh(Zd,Zd.specifiers,Jd);break;default:db(Zd,zd)}else db(Zd,zd)}}finalizeRemainingComments(){let{commentStack:Jd}=this.state;for(let zd=Jd.length-1;zd>=0;zd--)this.finalizeComment(Jd[zd]);this.state.commentStack=[]}resetPreviousNodeTrailingComments(Jd){let{commentStack:zd}=this.state,{length:Zd}=zd;if(Zd===0)return;let Tf=zd[Zd-1];Tf.leadingNode===Jd&&(Tf.leadingNode=null)}resetPreviousIdentifierLeadingComments(Jd){let{commentStack:zd}=this.state,{length:Zd}=zd;Zd!==0&&(zd[Zd-1].trailingNode===Jd?zd[Zd-1].trailingNode=null:Zd>=2&&zd[Zd-2].trailingNode===Jd&&(zd[Zd-2].trailingNode=null))}takeSurroundingComments(Jd,zd,Zd){let{commentStack:Tf}=this.state,Bf=Tf.length;if(Bf===0)return;let Ph=Bf-1;for(;Ph>=0;Ph--){let hm=Tf[Ph],Im=hm.end;if(hm.start===Zd)hm.leadingNode=Jd;else if(Im===zd)hm.trailingNode=Jd;else if(Im0}set strict(zd){zd?this.flags|=1:this.flags&=-2}init({strictMode:zd,sourceType:Zd,startLine:Tf,startColumn:Bf}){this.strict=zd===!1?!1:zd===!0?!0:Zd==="module",this.curLine=Tf,this.lineStart=-Bf,this.startLoc=this.endLoc=new rd(Tf,Bf,0)}get maybeInArrowParameters(){return(this.flags&2)>0}set maybeInArrowParameters(zd){zd?this.flags|=2:this.flags&=-3}get inType(){return(this.flags&4)>0}set inType(zd){zd?this.flags|=4:this.flags&=-5}get noAnonFunctionType(){return(this.flags&8)>0}set noAnonFunctionType(zd){zd?this.flags|=8:this.flags&=-9}get hasFlowComment(){return(this.flags&16)>0}set hasFlowComment(zd){zd?this.flags|=16:this.flags&=-17}get isAmbientContext(){return(this.flags&32)>0}set isAmbientContext(zd){zd?this.flags|=32:this.flags&=-33}get inAbstractClass(){return(this.flags&64)>0}set inAbstractClass(zd){zd?this.flags|=64:this.flags&=-65}get inDisallowConditionalTypesContext(){return(this.flags&128)>0}set inDisallowConditionalTypesContext(zd){zd?this.flags|=128:this.flags&=-129}get soloAwait(){return(this.flags&256)>0}set soloAwait(zd){zd?this.flags|=256:this.flags&=-257}get inFSharpPipelineDirectBody(){return(this.flags&512)>0}set inFSharpPipelineDirectBody(zd){zd?this.flags|=512:this.flags&=-513}get canStartJSXElement(){return(this.flags&1024)>0}set canStartJSXElement(zd){zd?this.flags|=1024:this.flags&=-1025}get containsEsc(){return(this.flags&2048)>0}set containsEsc(zd){zd?this.flags|=2048:this.flags&=-2049}curPosition(){return new rd(this.curLine,this.pos-this.lineStart,this.pos)}clone(){let zd=new FC;return zd.flags=this.flags,zd.curLine=this.curLine,zd.lineStart=this.lineStart,zd.startLoc=this.startLoc,zd.endLoc=this.endLoc,zd.errors=this.errors.slice(),zd.potentialArrowAt=this.potentialArrowAt,zd.noArrowAt=this.noArrowAt.slice(),zd.noArrowParamsConversionAt=this.noArrowParamsConversionAt.slice(),zd.topicContext=this.topicContext,zd.labels=this.labels.slice(),zd.commentsLen=this.commentsLen,zd.commentStack=this.commentStack.slice(),zd.pos=this.pos,zd.type=this.type,zd.value=this.value,zd.start=this.start,zd.end=this.end,zd.lastTokEndLoc=this.lastTokEndLoc,zd.lastTokStartLoc=this.lastTokStartLoc,zd.context=this.context.slice(),zd.firstInvalidTemplateEscapePos=this.firstInvalidTemplateEscapePos,zd.strictErrors=this.strictErrors,zd.tokensLength=this.tokensLength,zd}},pg=function(Jd){return Jd>=48&&Jd<=57},qg={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},xg={bin:Jd=>Jd===48||Jd===49,oct:Jd=>Jd>=48&&Jd<=55,dec:Jd=>Jd>=48&&Jd<=57,hex:Jd=>Jd>=48&&Jd<=57||Jd>=65&&Jd<=70||Jd>=97&&Jd<=102};function Yg(Jd,zd,Zd,Tf,Bf,Ph){let hm=Zd,Im=Tf,Gm=Bf,Um="",Sg=null,Bg=Zd,{length:Xg}=zd;for(;;){if(Zd>=Xg){Ph.unterminated(hm,Im,Gm),Um+=zd.slice(Bg,Zd);break}let Zg=zd.charCodeAt(Zd);if(w_(Jd,Zg,zd,Zd)){Um+=zd.slice(Bg,Zd);break}if(Zg===92){Um+=zd.slice(Bg,Zd);let g_=C_(zd,Zd,Tf,Bf,Jd==="template",Ph);g_.ch===null&&!Sg?Sg={pos:Zd,lineStart:Tf,curLine:Bf}:Um+=g_.ch,{pos:Zd,lineStart:Tf,curLine:Bf}=g_,Bg=Zd}else Zg===8232||Zg===8233?(++Zd,++Bf,Tf=Zd):Zg===10||Zg===13?Jd==="template"?(Um+=zd.slice(Bg,Zd)+` `,++Zd,Zg===13&&zd.charCodeAt(Zd)===10&&++Zd,++Bf,Bg=Tf=Zd):Ph.unterminated(hm,Im,Gm):++Zd}return{pos:Zd,str:Um,firstInvalidLoc:Sg,lineStart:Tf,curLine:Bf,containsInvalid:!!Sg}}function w_(Jd,zd,Zd,Tf){return Jd==="template"?zd===96||zd===36&&Zd.charCodeAt(Tf+1)===123:zd===(Jd==="double"?34:39)}function C_(Jd,zd,Zd,Tf,Bf,Ph){let hm=!Bf;zd++;let Im=Um=>({pos:zd,ch:Um,lineStart:Zd,curLine:Tf}),Gm=Jd.charCodeAt(zd++);switch(Gm){case 110:return Im(` -`);case 114:return Im("\r");case 120:{let Um;return{code:Um,pos:zd}=p_(Jd,zd,Zd,Tf,2,!1,hm,Ph),Im(Um===null?null:String.fromCharCode(Um))}case 117:{let Um;return{code:Um,pos:zd}=q_(Jd,zd,Zd,Tf,hm,Ph),Im(Um===null?null:String.fromCodePoint(Um))}case 116:return Im(" ");case 98:return Im("\b");case 118:return Im("\v");case 102:return Im("\f");case 13:Jd.charCodeAt(zd)===10&&++zd;case 10:Zd=zd,++Tf;case 8232:case 8233:return Im("");case 56:case 57:if(Bf)return Im(null);Ph.strictNumericEscape(zd-1,Zd,Tf);default:if(Gm>=48&&Gm<=55){let Um=zd-1,Sg=/^[0-7]+/.exec(Jd.slice(Um,zd+2))[0],Bg=parseInt(Sg,8);Bg>255&&(Sg=Sg.slice(0,-1),Bg=parseInt(Sg,8)),zd+=Sg.length-1;let Xg=Jd.charCodeAt(zd);if(Sg!=="0"||Xg===56||Xg===57){if(Bf)return Im(null);Ph.strictNumericEscape(Um,Zd,Tf)}return Im(String.fromCharCode(Bg))}return Im(String.fromCharCode(Gm))}}function p_(Jd,zd,Zd,Tf,Bf,Ph,hm,Im){let Gm=zd,Um;return{n:Um,pos:zd}=Mg(Jd,zd,Zd,Tf,16,Bf,Ph,!1,Im,!hm),Um===null&&(hm?Im.invalidEscapeSequence(Gm,Zd,Tf):zd=Gm-1),{code:Um,pos:zd}}function Mg(Jd,zd,Zd,Tf,Bf,Ph,hm,Im,Gm,Um){let Sg=zd,Bg=Bf===16?qg.hex:qg.decBinOct,Xg=Bf===16?xg.hex:Bf===10?xg.dec:Bf===8?xg.oct:xg.bin,Zg=!1,g_=0;for(let tb=0,D_=Ph??1/0;tb=97?Cb=P_-97+10:P_>=65?Cb=P_-65+10:pg(P_)?Cb=P_-48:Cb=1/0,Cb>=Bf){if(Cb<=9&&Um)return{n:null,pos:zd};if(Cb<=9&&Gm.invalidDigit(zd,Zd,Tf,Bf))Cb=0;else if(hm)Cb=0,Zg=!0;else break}++zd,g_=g_*Bf+Cb}return zd===Sg||Ph!=null&&zd-Sg!==Ph||Zg?{n:null,pos:zd}:{n:g_,pos:zd}}function q_(Jd,zd,Zd,Tf,Bf,Ph){let hm=Jd.charCodeAt(zd),Im;if(hm===123){if(++zd,{code:Im,pos:zd}=p_(Jd,zd,Zd,Tf,Jd.indexOf("}",zd)-zd,!0,Bf,Ph),++zd,Im!==null&&Im>1114111)if(Bf)Ph.invalidCodePoint(zd,Zd,Tf);else return{code:null,pos:zd}}else({code:Im,pos:zd}=p_(Jd,zd,Zd,Tf,4,!1,Bf,Ph));return{code:Im,pos:zd}}function m_(Jd,zd,Zd){return new rd(Zd,Jd-zd,Jd)}var a_=new Set([103,109,115,105,121,117,100,118]),qh=class{constructor(Jd){this.type=Jd.type,this.value=Jd.value,this.start=Jd.start,this.end=Jd.end,this.loc=new sd(Jd.startLoc,Jd.endLoc)}},Pm=class extends gm{constructor(Jd,zd){super(),this.isLookahead=void 0,this.tokens=[],this.errorHandlers_readInt={invalidDigit:(Zd,Tf,Bf,Ph)=>this.options.errorRecovery?(this.raise(Ud.InvalidDigit,m_(Zd,Tf,Bf),{radix:Ph}),!0):!1,numericSeparatorInEscapeSequence:this.errorBuilder(Ud.NumericSeparatorInEscapeSequence),unexpectedNumericSeparator:this.errorBuilder(Ud.UnexpectedNumericSeparator)},this.errorHandlers_readCodePoint=Object.assign({},this.errorHandlers_readInt,{invalidEscapeSequence:this.errorBuilder(Ud.InvalidEscapeSequence),invalidCodePoint:this.errorBuilder(Ud.InvalidCodePoint)}),this.errorHandlers_readStringContents_string=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:(Zd,Tf,Bf)=>{this.recordStrictModeErrors(Ud.StrictNumericEscape,m_(Zd,Tf,Bf))},unterminated:(Zd,Tf,Bf)=>{throw this.raise(Ud.UnterminatedString,m_(Zd-1,Tf,Bf))}}),this.errorHandlers_readStringContents_template=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:this.errorBuilder(Ud.StrictNumericEscape),unterminated:(Zd,Tf,Bf)=>{throw this.raise(Ud.UnterminatedTemplate,m_(Zd,Tf,Bf))}}),this.state=new lg,this.state.init(Jd),this.input=zd,this.length=zd.length,this.comments=[],this.isLookahead=!1}pushToken(Jd){this.tokens.length=this.state.tokensLength,this.tokens.push(Jd),++this.state.tokensLength}next(){this.checkKeywordEscapes(),this.options.tokens&&this.pushToken(new qh(this.state)),this.state.lastTokEndLoc=this.state.endLoc,this.state.lastTokStartLoc=this.state.startLoc,this.nextToken()}eat(Jd){return this.match(Jd)?(this.next(),!0):!1}match(Jd){return this.state.type===Jd}createLookaheadState(Jd){return{pos:Jd.pos,value:null,type:Jd.type,start:Jd.start,end:Jd.end,context:[this.curContext()],inType:Jd.inType,startLoc:Jd.startLoc,lastTokEndLoc:Jd.lastTokEndLoc,curLine:Jd.curLine,lineStart:Jd.lineStart,curPosition:Jd.curPosition}}lookahead(){let Jd=this.state;this.state=this.createLookaheadState(Jd),this.isLookahead=!0,this.nextToken(),this.isLookahead=!1;let zd=this.state;return this.state=Jd,zd}nextTokenStart(){return this.nextTokenStartSince(this.state.pos)}nextTokenStartSince(Jd){return Lm.lastIndex=Jd,Lm.test(this.input)?Lm.lastIndex:Jd}lookaheadCharCode(){return this.input.charCodeAt(this.nextTokenStart())}nextTokenInLineStart(){return this.nextTokenInLineStartSince(this.state.pos)}nextTokenInLineStartSince(Jd){return zm.lastIndex=Jd,zm.test(this.input)?zm.lastIndex:Jd}lookaheadInLineCharCode(){return this.input.charCodeAt(this.nextTokenInLineStart())}codePointAtPos(Jd){let zd=this.input.charCodeAt(Jd);if((zd&64512)===55296&&++Jdthis.raise(zd,Zd)),this.state.strictErrors.clear())}curContext(){return this.state.context[this.state.context.length-1]}nextToken(){if(this.skipSpace(),this.state.start=this.state.pos,this.isLookahead||(this.state.startLoc=this.state.curPosition()),this.state.pos>=this.length){this.finishToken(139);return}this.getTokenFromCode(this.codePointAtPos(this.state.pos))}skipBlockComment(Jd){let zd;this.isLookahead||(zd=this.state.curPosition());let Zd=this.state.pos,Tf=this.input.indexOf(Jd,Zd+2);if(Tf===-1)throw this.raise(Ud.UnterminatedComment,this.state.curPosition());for(this.state.pos=Tf+Jd.length,mm.lastIndex=Zd+2;mm.test(this.input)&&mm.lastIndex<=Tf;)++this.state.curLine,this.state.lineStart=mm.lastIndex;if(this.isLookahead)return;let Bf={type:"CommentBlock",value:this.input.slice(Zd+2,Tf),start:Zd,end:Tf+Jd.length,loc:new sd(zd,this.state.curPosition())};return this.options.tokens&&this.pushToken(Bf),Bf}skipLineComment(Jd){let zd=this.state.pos,Zd;this.isLookahead||(Zd=this.state.curPosition());let Tf=this.input.charCodeAt(this.state.pos+=Jd);if(this.state.posJd)){let Bf=this.skipLineComment(3);Bf!==void 0&&(this.addComment(Bf),this.options.attachComment&&zd.push(Bf))}else break e}else if(Zd===60&&!this.inModule&&this.options.annexB){let Tf=this.state.pos;if(this.input.charCodeAt(Tf+1)===33&&this.input.charCodeAt(Tf+2)===45&&this.input.charCodeAt(Tf+3)===45){let Bf=this.skipLineComment(4);Bf!==void 0&&(this.addComment(Bf),this.options.attachComment&&zd.push(Bf))}else break e}else break e}}if(zd.length>0){let Zd=this.state.pos,Tf={start:Jd,end:Zd,comments:zd,leadingNode:null,trailingNode:null,containingNode:null};this.state.commentStack.push(Tf)}}finishToken(Jd,zd){this.state.end=this.state.pos,this.state.endLoc=this.state.curPosition();let Zd=this.state.type;this.state.type=Jd,this.state.value=zd,this.isLookahead||this.updateContext(Zd)}replaceToken(Jd){this.state.type=Jd,this.updateContext()}readToken_numberSign(){if(this.state.pos===0&&this.readToken_interpreter())return;let Jd=this.state.pos+1,zd=this.codePointAtPos(Jd);if(zd>=48&&zd<=57)throw this.raise(Ud.UnexpectedDigitAfterHash,this.state.curPosition());if(zd===123||zd===91&&this.hasPlugin("recordAndTuple")){if(this.expectPlugin("recordAndTuple"),this.getPluginOption("recordAndTuple","syntaxType")==="bar")throw this.raise(zd===123?Ud.RecordExpressionHashIncorrectStartSyntaxType:Ud.TupleExpressionHashIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,zd===123?this.finishToken(7):this.finishToken(1)}else $m(zd)?(++this.state.pos,this.finishToken(138,this.readWord1(zd))):zd===92?(++this.state.pos,this.finishToken(138,this.readWord1())):this.finishOp(27,1)}readToken_dot(){let Jd=this.input.charCodeAt(this.state.pos+1);if(Jd>=48&&Jd<=57){this.readNumber(!0);return}Jd===46&&this.input.charCodeAt(this.state.pos+2)===46?(this.state.pos+=3,this.finishToken(21)):(++this.state.pos,this.finishToken(16))}readToken_slash(){this.input.charCodeAt(this.state.pos+1)===61?this.finishOp(31,2):this.finishOp(56,1)}readToken_interpreter(){if(this.state.pos!==0||this.length<2)return!1;let Jd=this.input.charCodeAt(this.state.pos+1);if(Jd!==33)return!1;let zd=this.state.pos;for(this.state.pos+=1;!jm(Jd)&&++this.state.pos=48&&zd<=57)?(this.state.pos+=2,this.finishToken(18)):(++this.state.pos,this.finishToken(17))}getTokenFromCode(Jd){switch(Jd){case 46:this.readToken_dot();return;case 40:++this.state.pos,this.finishToken(10);return;case 41:++this.state.pos,this.finishToken(11);return;case 59:++this.state.pos,this.finishToken(13);return;case 44:++this.state.pos,this.finishToken(12);return;case 91:if(this.hasPlugin("recordAndTuple")&&this.input.charCodeAt(this.state.pos+1)===124){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar")throw this.raise(Ud.TupleExpressionBarIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(2)}else++this.state.pos,this.finishToken(0);return;case 93:++this.state.pos,this.finishToken(3);return;case 123:if(this.hasPlugin("recordAndTuple")&&this.input.charCodeAt(this.state.pos+1)===124){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar")throw this.raise(Ud.RecordExpressionBarIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(6)}else++this.state.pos,this.finishToken(5);return;case 125:++this.state.pos,this.finishToken(8);return;case 58:this.hasPlugin("functionBind")&&this.input.charCodeAt(this.state.pos+1)===58?this.finishOp(15,2):(++this.state.pos,this.finishToken(14));return;case 63:this.readToken_question();return;case 96:this.readTemplateToken();return;case 48:{let zd=this.input.charCodeAt(this.state.pos+1);if(zd===120||zd===88){this.readRadixNumber(16);return}if(zd===111||zd===79){this.readRadixNumber(8);return}if(zd===98||zd===66){this.readRadixNumber(2);return}}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:this.readNumber(!1);return;case 34:case 39:this.readString(Jd);return;case 47:this.readToken_slash();return;case 37:case 42:this.readToken_mult_modulo(Jd);return;case 124:case 38:this.readToken_pipe_amp(Jd);return;case 94:this.readToken_caret();return;case 43:case 45:this.readToken_plus_min(Jd);return;case 60:this.readToken_lt();return;case 62:this.readToken_gt();return;case 61:case 33:this.readToken_eq_excl(Jd);return;case 126:this.finishOp(36,1);return;case 64:this.readToken_atSign();return;case 35:this.readToken_numberSign();return;case 92:this.readWord();return;default:if($m(Jd)){this.readWord(Jd);return}}throw this.raise(Ud.InvalidOrUnexpectedToken,this.state.curPosition(),{unexpected:String.fromCodePoint(Jd)})}finishOp(Jd,zd){let Zd=this.input.slice(this.state.pos,this.state.pos+zd);this.state.pos+=zd,this.finishToken(Jd,Zd)}readRegexp(){let Jd=this.state.startLoc,zd=this.state.start+1,Zd,Tf,{pos:Bf}=this.state;for(;;++Bf){if(Bf>=this.length)throw this.raise(Ud.UnterminatedRegExp,pd(Jd,1));let Gm=this.input.charCodeAt(Bf);if(jm(Gm))throw this.raise(Ud.UnterminatedRegExp,pd(Jd,1));if(Zd)Zd=!1;else{if(Gm===91)Tf=!0;else if(Gm===93&&Tf)Tf=!1;else if(Gm===47&&!Tf)break;Zd=Gm===92}}let Ph=this.input.slice(zd,Bf);++Bf;let hm="",Im=()=>pd(Jd,Bf+2-zd);for(;Bf=2&&this.input.charCodeAt(zd)===48;if(Gm){let Xg=this.input.slice(zd,this.state.pos);if(this.recordStrictModeErrors(Ud.StrictOctalLiteral,Zd),!this.state.strict){let Zg=Xg.indexOf("_");Zg>0&&this.raise(Ud.ZeroDigitNumericSeparator,pd(Zd,Zg))}Im=Gm&&!/[89]/.test(Xg)}let Um=this.input.charCodeAt(this.state.pos);if(Um===46&&!Im&&(++this.state.pos,this.readInt(10),Tf=!0,Um=this.input.charCodeAt(this.state.pos)),(Um===69||Um===101)&&!Im&&(Um=this.input.charCodeAt(++this.state.pos),(Um===43||Um===45)&&++this.state.pos,this.readInt(10)===null&&this.raise(Ud.InvalidOrMissingExponent,Zd),Tf=!0,hm=!0,Um=this.input.charCodeAt(this.state.pos)),Um===110&&((Tf||Gm)&&this.raise(Ud.InvalidBigIntLiteral,Zd),++this.state.pos,Bf=!0),Um===109&&(this.expectPlugin("decimal",this.state.curPosition()),(hm||Gm)&&this.raise(Ud.InvalidDecimal,Zd),++this.state.pos,Ph=!0),$m(this.codePointAtPos(this.state.pos)))throw this.raise(Ud.NumberIdentifier,this.state.curPosition());let Sg=this.input.slice(zd,this.state.pos).replace(/[_mn]/g,"");if(Bf){this.finishToken(135,Sg);return}if(Ph){this.finishToken(136,Sg);return}let Bg=Im?parseInt(Sg,8):parseFloat(Sg);this.finishToken(134,Bg)}readCodePoint(Jd){let{code:zd,pos:Zd}=q_(this.input,this.state.pos,this.state.lineStart,this.state.curLine,Jd,this.errorHandlers_readCodePoint);return this.state.pos=Zd,zd}readString(Jd){let{str:zd,pos:Zd,curLine:Tf,lineStart:Bf}=Yg(Jd===34?"double":"single",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_string);this.state.pos=Zd+1,this.state.lineStart=Bf,this.state.curLine=Tf,this.finishToken(133,zd)}readTemplateContinuation(){this.match(8)||this.unexpected(null,8),this.state.pos--,this.readTemplateToken()}readTemplateToken(){let Jd=this.input[this.state.pos],{str:zd,firstInvalidLoc:Zd,pos:Tf,curLine:Bf,lineStart:Ph}=Yg("template",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_template);this.state.pos=Tf+1,this.state.lineStart=Ph,this.state.curLine=Bf,Zd&&(this.state.firstInvalidTemplateEscapePos=new rd(Zd.curLine,Zd.pos-Zd.lineStart,Zd.pos)),this.input.codePointAt(Tf)===96?this.finishToken(24,Zd?null:Jd+zd+"`"):(this.state.pos++,this.finishToken(25,Zd?null:Jd+zd+"${"))}recordStrictModeErrors(Jd,zd){let Zd=zd.index;this.state.strict&&!this.state.strictErrors.has(Zd)?this.raise(Jd,zd):this.state.strictErrors.set(Zd,[Jd,zd])}readWord1(Jd){this.state.containsEsc=!1;let zd="",Zd=this.state.pos,Tf=this.state.pos;for(Jd!==void 0&&(this.state.pos+=Jd<=65535?1:2);this.state.pos=0;hm--){let Im=Ph[hm];if(Im.loc.index===Bf)return Ph[hm]=Jd(Tf,Zd);if(Im.loc.indexthis.hasPlugin(zd)))throw this.raise(Ud.MissingOneOfPlugins,this.state.startLoc,{missingPlugin:Jd})}errorBuilder(Jd){return(zd,Zd,Tf)=>{this.raise(Jd,m_(zd,Zd,Tf))}}},dg=class{constructor(){this.privateNames=new Set,this.loneAccessors=new Map,this.undefinedPrivateNames=new Map}},Ig=class{constructor(Jd){this.parser=void 0,this.stack=[],this.undefinedPrivateNames=new Map,this.parser=Jd}current(){return this.stack[this.stack.length-1]}enter(){this.stack.push(new dg)}exit(){let Jd=this.stack.pop(),zd=this.current();for(let[Zd,Tf]of Array.from(Jd.undefinedPrivateNames))zd?zd.undefinedPrivateNames.has(Zd)||zd.undefinedPrivateNames.set(Zd,Tf):this.parser.raise(Ud.InvalidPrivateFieldResolution,Tf,{identifierName:Zd})}declarePrivateName(Jd,zd,Zd){let{privateNames:Tf,loneAccessors:Bf,undefinedPrivateNames:Ph}=this.current(),hm=Tf.has(Jd);if(zd&3){let Im=hm&&Bf.get(Jd);if(Im){let Gm=Im&4,Um=zd&4,Sg=Im&3,Bg=zd&3;hm=Sg===Bg||Gm!==Um,hm||Bf.delete(Jd)}else hm||Bf.set(Jd,zd)}hm&&this.parser.raise(Ud.PrivateNameRedeclaration,Zd,{identifierName:Jd}),Tf.add(Jd),Ph.delete(Jd)}usePrivateName(Jd,zd){let Zd;for(Zd of this.stack)if(Zd.privateNames.has(Jd))return;Zd?Zd.undefinedPrivateNames.set(Jd,zd):this.parser.raise(Ud.InvalidPrivateFieldResolution,zd,{identifierName:Jd})}},sg=class{constructor(Jd=0){this.type=Jd}canBeArrowParameterDeclaration(){return this.type===2||this.type===1}isCertainlyParameterDeclaration(){return this.type===3}},Fg=class extends sg{constructor(Jd){super(Jd),this.declarationErrors=new Map}recordDeclarationError(Jd,zd){let Zd=zd.index;this.declarationErrors.set(Zd,[Jd,zd])}clearDeclarationError(Jd){this.declarationErrors.delete(Jd)}iterateErrors(Jd){this.declarationErrors.forEach(Jd)}},b_=class{constructor(Jd){this.parser=void 0,this.stack=[new sg],this.parser=Jd}enter(Jd){this.stack.push(Jd)}exit(){this.stack.pop()}recordParameterInitializerError(Jd,zd){let Zd=zd.loc.start,{stack:Tf}=this,Bf=Tf.length-1,Ph=Tf[Bf];for(;!Ph.isCertainlyParameterDeclaration();){if(Ph.canBeArrowParameterDeclaration())Ph.recordDeclarationError(Jd,Zd);else return;Ph=Tf[--Bf]}this.parser.raise(Jd,Zd)}recordArrowParameterBindingError(Jd,zd){let{stack:Zd}=this,Tf=Zd[Zd.length-1],Bf=zd.loc.start;if(Tf.isCertainlyParameterDeclaration())this.parser.raise(Jd,Bf);else if(Tf.canBeArrowParameterDeclaration())Tf.recordDeclarationError(Jd,Bf);else return}recordAsyncArrowParametersError(Jd){let{stack:zd}=this,Zd=zd.length-1,Tf=zd[Zd];for(;Tf.canBeArrowParameterDeclaration();)Tf.type===2&&Tf.recordDeclarationError(Ud.AwaitBindingIdentifier,Jd),Tf=zd[--Zd]}validateAsPattern(){let{stack:Jd}=this,zd=Jd[Jd.length-1];zd.canBeArrowParameterDeclaration()&&zd.iterateErrors(([Zd,Tf])=>{this.parser.raise(Zd,Tf);let Bf=Jd.length-2,Ph=Jd[Bf];for(;Ph.canBeArrowParameterDeclaration();)Ph.clearDeclarationError(Tf.index),Ph=Jd[--Bf]})}};function W_(){return new sg(3)}function sb(){return new Fg(1)}function jb(){return new Fg(2)}function uy(){return new sg}var l_=class{constructor(){this.stacks=[]}enter(Jd){this.stacks.push(Jd)}exit(){this.stacks.pop()}currentFlags(){return this.stacks[this.stacks.length-1]}get hasAwait(){return(this.currentFlags()&2)>0}get hasYield(){return(this.currentFlags()&1)>0}get hasReturn(){return(this.currentFlags()&4)>0}get hasIn(){return(this.currentFlags()&8)>0}};function Ub(Jd,zd){return(Jd?2:0)|(zd?1:0)}var Y_=class extends Pm{addExtra(Jd,zd,Zd,Tf=!0){if(!Jd)return;let Bf=Jd.extra=Jd.extra||{};Tf?Bf[zd]=Zd:Object.defineProperty(Bf,zd,{enumerable:Tf,value:Zd})}isContextual(Jd){return this.state.type===Jd&&!this.state.containsEsc}isUnparsedContextual(Jd,zd){let Zd=Jd+zd.length;if(this.input.slice(Jd,Zd)===zd){let Tf=this.input.charCodeAt(Zd);return!(Km(Tf)||(Tf&64512)===55296)}return!1}isLookaheadContextual(Jd){let zd=this.nextTokenStart();return this.isUnparsedContextual(zd,Jd)}eatContextual(Jd){return this.isContextual(Jd)?(this.next(),!0):!1}expectContextual(Jd,zd){if(!this.eatContextual(Jd)){if(zd!=null)throw this.raise(zd,this.state.startLoc);this.unexpected(null,Jd)}}canInsertSemicolon(){return this.match(139)||this.match(8)||this.hasPrecedingLineBreak()}hasPrecedingLineBreak(){return im.test(this.input.slice(this.state.lastTokEndLoc.index,this.state.start))}hasFollowingLineBreak(){return Vm.lastIndex=this.state.end,Vm.test(this.input)}isLineTerminator(){return this.eat(13)||this.canInsertSemicolon()}semicolon(Jd=!0){(Jd?this.isLineTerminator():this.eat(13))||this.raise(Ud.MissingSemicolon,this.state.lastTokEndLoc)}expect(Jd,zd){this.eat(Jd)||this.unexpected(zd,Jd)}tryParse(Jd,zd=this.state.clone()){let Zd={node:null};try{let Tf=Jd((Bf=null)=>{throw Zd.node=Bf,Zd});if(this.state.errors.length>zd.errors.length){let Bf=this.state;return this.state=zd,this.state.tokensLength=Bf.tokensLength,{node:Tf,error:Bf.errors[zd.errors.length],thrown:!1,aborted:!1,failState:Bf}}return{node:Tf,error:null,thrown:!1,aborted:!1,failState:null}}catch(Tf){let Bf=this.state;if(this.state=zd,Tf instanceof SyntaxError)return{node:null,error:Tf,thrown:!0,aborted:!1,failState:Bf};if(Tf===Zd)return{node:Zd.node,error:null,thrown:!1,aborted:!0,failState:Bf};throw Tf}}checkExpressionErrors(Jd,zd){if(!Jd)return!1;let{shorthandAssignLoc:Zd,doubleProtoLoc:Tf,privateKeyLoc:Bf,optionalParametersLoc:Ph}=Jd,hm=!!Zd||!!Tf||!!Ph||!!Bf;if(!zd)return hm;Zd!=null&&this.raise(Ud.InvalidCoverInitializedName,Zd),Tf!=null&&this.raise(Ud.DuplicateProto,Tf),Bf!=null&&this.raise(Ud.UnexpectedPrivateField,Bf),Ph!=null&&this.unexpected(Ph)}isLiteralPropertyName(){return Jf(this.state.type)}isPrivateName(Jd){return Jd.type==="PrivateName"}getPrivateNameSV(Jd){return Jd.id.name}hasPropertyAsPrivateName(Jd){return(Jd.type==="MemberExpression"||Jd.type==="OptionalMemberExpression")&&this.isPrivateName(Jd.property)}isObjectProperty(Jd){return Jd.type==="ObjectProperty"}isObjectMethod(Jd){return Jd.type==="ObjectMethod"}initializeScopes(Jd=this.options.sourceType==="module"){let zd=this.state.labels;this.state.labels=[];let Zd=this.exportedIdentifiers;this.exportedIdentifiers=new Set;let Tf=this.inModule;this.inModule=Jd;let Bf=this.scope,Ph=this.getScopeHandler();this.scope=new Ph(this,Jd);let hm=this.prodParam;this.prodParam=new l_;let Im=this.classScope;this.classScope=new Ig(this);let Gm=this.expressionScope;return this.expressionScope=new b_(this),()=>{this.state.labels=zd,this.exportedIdentifiers=Zd,this.inModule=Tf,this.scope=Bf,this.prodParam=hm,this.classScope=Im,this.expressionScope=Gm}}enterInitialScopes(){let Jd=0;this.inModule&&(Jd|=2),this.scope.enter(1),this.prodParam.enter(Jd)}checkDestructuringPrivate(Jd){let{privateKeyLoc:zd}=Jd;zd!==null&&this.expectPlugin("destructuringPrivate",zd)}},Tb=class{constructor(){this.shorthandAssignLoc=null,this.doubleProtoLoc=null,this.privateKeyLoc=null,this.optionalParametersLoc=null}},pb=class{constructor(Jd,zd,Zd){this.type="",this.start=zd,this.end=0,this.loc=new sd(Zd),Jd!=null&&Jd.options.ranges&&(this.range=[zd,0]),Jd!=null&&Jd.filename&&(this.loc.filename=Jd.filename)}},Sy=pb.prototype;Sy.__clone=function(){let Jd=new pb(void 0,this.start,this.loc.start),zd=Object.keys(this);for(let Zd=0,Tf=zd.length;Zd`Cannot overwrite reserved type ${Jd}.`,DeclareClassElement:"The `declare` modifier can only appear on class fields.",DeclareClassFieldInitializer:"Initializers are not allowed in fields with the `declare` modifier.",DuplicateDeclareModuleExports:"Duplicate `declare module.exports` statement.",EnumBooleanMemberNotInitialized:({memberName:Jd,enumName:zd})=>`Boolean enum members need to be initialized. Use either \`${Jd} = true,\` or \`${Jd} = false,\` in enum \`${zd}\`.`,EnumDuplicateMemberName:({memberName:Jd,enumName:zd})=>`Enum member names need to be unique, but the name \`${Jd}\` has already been used before in enum \`${zd}\`.`,EnumInconsistentMemberValues:({enumName:Jd})=>`Enum \`${Jd}\` has inconsistent member initializers. Either use no initializers, or consistently use literals (either booleans, numbers, or strings) for all member initializers.`,EnumInvalidExplicitType:({invalidEnumType:Jd,enumName:zd})=>`Enum type \`${Jd}\` is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${zd}\`.`,EnumInvalidExplicitTypeUnknownSupplied:({enumName:Jd})=>`Supplied enum type is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${Jd}\`.`,EnumInvalidMemberInitializerPrimaryType:({enumName:Jd,memberName:zd,explicitType:Zd})=>`Enum \`${Jd}\` has type \`${Zd}\`, so the initializer of \`${zd}\` needs to be a ${Zd} literal.`,EnumInvalidMemberInitializerSymbolType:({enumName:Jd,memberName:zd})=>`Symbol enum members cannot be initialized. Use \`${zd},\` in enum \`${Jd}\`.`,EnumInvalidMemberInitializerUnknownType:({enumName:Jd,memberName:zd})=>`The enum member initializer for \`${zd}\` needs to be a literal (either a boolean, number, or string) in enum \`${Jd}\`.`,EnumInvalidMemberName:({enumName:Jd,memberName:zd,suggestion:Zd})=>`Enum member names cannot start with lowercase 'a' through 'z'. Instead of using \`${zd}\`, consider using \`${Zd}\`, in enum \`${Jd}\`.`,EnumNumberMemberNotInitialized:({enumName:Jd,memberName:zd})=>`Number enum members need to be initialized, e.g. \`${zd} = 1\` in enum \`${Jd}\`.`,EnumStringMemberInconsistentlyInitialized:({enumName:Jd})=>`String enum members need to consistently either all use initializers, or use no initializers, in enum \`${Jd}\`.`,GetterMayNotHaveThisParam:"A getter cannot have a `this` parameter.",ImportReflectionHasImportType:"An `import module` declaration can not use `type` or `typeof` keyword.",ImportTypeShorthandOnlyInPureImport:"The `type` and `typeof` keywords on named imports can only be used on regular `import` statements. It cannot be used with `import type` or `import typeof` statements.",InexactInsideExact:"Explicit inexact syntax cannot appear inside an explicit exact object type.",InexactInsideNonObject:"Explicit inexact syntax cannot appear in class or interface definitions.",InexactVariance:"Explicit inexact syntax cannot have variance.",InvalidNonTypeImportInDeclareModule:"Imports within a `declare module` body must always be `import type` or `import typeof`.",MissingTypeParamDefault:"Type parameter declaration needs a default, since a preceding type parameter declaration has a default.",NestedDeclareModule:"`declare module` cannot be used inside another `declare module`.",NestedFlowComment:"Cannot have a flow comment inside another flow comment.",PatternIsOptional:Object.assign({message:"A binding pattern parameter cannot be optional in an implementation signature."},{reasonCode:"OptionalBindingPattern"}),SetterMayNotHaveThisParam:"A setter cannot have a `this` parameter.",SpreadVariance:"Spread properties cannot have variance.",ThisParamAnnotationRequired:"A type annotation is required for the `this` parameter.",ThisParamBannedInConstructor:"Constructors cannot have a `this` parameter; constructors don't bind `this` like other functions.",ThisParamMayNotBeOptional:"The `this` parameter cannot be optional.",ThisParamMustBeFirst:"The `this` parameter must be the first function parameter.",ThisParamNoDefault:"The `this` parameter may not have a default value.",TypeBeforeInitializer:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeCastInPattern:"The type cast expression is expected to be wrapped with parenthesis.",UnexpectedExplicitInexactInObject:"Explicit inexact syntax must appear at the end of an inexact object.",UnexpectedReservedType:({reservedType:Jd})=>`Unexpected reserved type ${Jd}.`,UnexpectedReservedUnderscore:"`_` is only allowed as a type argument to call or new.",UnexpectedSpaceBetweenModuloChecks:"Spaces between `%` and `checks` are not allowed here.",UnexpectedSpreadType:"Spread operator cannot appear in class or interface definitions.",UnexpectedSubtractionOperand:'Unexpected token, expected "number" or "bigint".',UnexpectedTokenAfterTypeParameter:"Expected an arrow function after this type parameter declaration.",UnexpectedTypeParameterBeforeAsyncArrowFunction:"Type parameters must come after the async keyword, e.g. instead of ` async () => {}`, use `async () => {}`.",UnsupportedDeclareExportKind:({unsupportedExportKind:Jd,suggestion:zd})=>`\`declare export ${Jd}\` is not supported. Use \`${zd}\` instead.`,UnsupportedStatementInDeclareModule:"Only declares and type imports are allowed inside declare module.",UnterminatedFlowComment:"Unterminated flow-comment."});function B0(Jd){return Jd.type==="DeclareExportAllDeclaration"||Jd.type==="DeclareExportDeclaration"&&(!Jd.declaration||Jd.declaration.type!=="TypeAlias"&&Jd.declaration.type!=="InterfaceDeclaration")}function x0(Jd){return Jd.importKind==="type"||Jd.importKind==="typeof"}var sE={const:"declare export var",let:"declare export var",type:"export type",interface:"export interface"};function LE(Jd,zd){let Zd=[],Tf=[];for(let Bf=0;Bfclass extends Jd{constructor(...zd){super(...zd),this.flowPragma=void 0}getScopeHandler(){return $_}shouldParseTypes(){return this.getPluginOption("flow","all")||this.flowPragma==="flow"}shouldParseEnums(){return!!this.getPluginOption("flow","enums")}finishToken(zd,Zd){zd!==133&&zd!==13&&zd!==28&&this.flowPragma===void 0&&(this.flowPragma=null),super.finishToken(zd,Zd)}addComment(zd){if(this.flowPragma===void 0){let Zd=BE.exec(zd.value);if(Zd)if(Zd[1]==="flow")this.flowPragma="flow";else if(Zd[1]==="noflow")this.flowPragma="noflow";else throw new Error("Unexpected flow pragma")}super.addComment(zd)}flowParseTypeInitialiser(zd){let Zd=this.state.inType;this.state.inType=!0,this.expect(zd||14);let Tf=this.flowParseType();return this.state.inType=Zd,Tf}flowParsePredicate(){let zd=this.startNode(),Zd=this.state.startLoc;return this.next(),this.expectContextual(110),this.state.lastTokStartLoc.index>Zd.index+1&&this.raise(r_.UnexpectedSpaceBetweenModuloChecks,Zd),this.eat(10)?(zd.value=super.parseExpression(),this.expect(11),this.finishNode(zd,"DeclaredPredicate")):this.finishNode(zd,"InferredPredicate")}flowParseTypeAndPredicateInitialiser(){let zd=this.state.inType;this.state.inType=!0,this.expect(14);let Zd=null,Tf=null;return this.match(54)?(this.state.inType=zd,Tf=this.flowParsePredicate()):(Zd=this.flowParseType(),this.state.inType=zd,this.match(54)&&(Tf=this.flowParsePredicate())),[Zd,Tf]}flowParseDeclareClass(zd){return this.next(),this.flowParseInterfaceish(zd,!0),this.finishNode(zd,"DeclareClass")}flowParseDeclareFunction(zd){this.next();let Zd=zd.id=this.parseIdentifier(),Tf=this.startNode(),Bf=this.startNode();this.match(47)?Tf.typeParameters=this.flowParseTypeParameterDeclaration():Tf.typeParameters=null,this.expect(10);let Ph=this.flowParseFunctionTypeParams();return Tf.params=Ph.params,Tf.rest=Ph.rest,Tf.this=Ph._this,this.expect(11),[Tf.returnType,zd.predicate]=this.flowParseTypeAndPredicateInitialiser(),Bf.typeAnnotation=this.finishNode(Tf,"FunctionTypeAnnotation"),Zd.typeAnnotation=this.finishNode(Bf,"TypeAnnotation"),this.resetEndLocation(Zd),this.semicolon(),this.scope.declareName(zd.id.name,2048,zd.id.loc.start),this.finishNode(zd,"DeclareFunction")}flowParseDeclare(zd,Zd){if(this.match(80))return this.flowParseDeclareClass(zd);if(this.match(68))return this.flowParseDeclareFunction(zd);if(this.match(74))return this.flowParseDeclareVariable(zd);if(this.eatContextual(127))return this.match(16)?this.flowParseDeclareModuleExports(zd):(Zd&&this.raise(r_.NestedDeclareModule,this.state.lastTokStartLoc),this.flowParseDeclareModule(zd));if(this.isContextual(130))return this.flowParseDeclareTypeAlias(zd);if(this.isContextual(131))return this.flowParseDeclareOpaqueType(zd);if(this.isContextual(129))return this.flowParseDeclareInterface(zd);if(this.match(82))return this.flowParseDeclareExportDeclaration(zd,Zd);this.unexpected()}flowParseDeclareVariable(zd){return this.next(),zd.id=this.flowParseTypeAnnotatableIdentifier(!0),this.scope.declareName(zd.id.name,5,zd.id.loc.start),this.semicolon(),this.finishNode(zd,"DeclareVariable")}flowParseDeclareModule(zd){this.scope.enter(0),this.match(133)?zd.id=super.parseExprAtom():zd.id=this.parseIdentifier();let Zd=zd.body=this.startNode(),Tf=Zd.body=[];for(this.expect(5);!this.match(8);){let hm=this.startNode();this.match(83)?(this.next(),!this.isContextual(130)&&!this.match(87)&&this.raise(r_.InvalidNonTypeImportInDeclareModule,this.state.lastTokStartLoc),super.parseImport(hm)):(this.expectContextual(125,r_.UnsupportedStatementInDeclareModule),hm=this.flowParseDeclare(hm,!0)),Tf.push(hm)}this.scope.exit(),this.expect(8),this.finishNode(Zd,"BlockStatement");let Bf=null,Ph=!1;return Tf.forEach(hm=>{B0(hm)?(Bf==="CommonJS"&&this.raise(r_.AmbiguousDeclareModuleKind,hm),Bf="ES"):hm.type==="DeclareModuleExports"&&(Ph&&this.raise(r_.DuplicateDeclareModuleExports,hm),Bf==="ES"&&this.raise(r_.AmbiguousDeclareModuleKind,hm),Bf="CommonJS",Ph=!0)}),zd.kind=Bf||"CommonJS",this.finishNode(zd,"DeclareModule")}flowParseDeclareExportDeclaration(zd,Zd){if(this.expect(82),this.eat(65))return this.match(68)||this.match(80)?zd.declaration=this.flowParseDeclare(this.startNode()):(zd.declaration=this.flowParseType(),this.semicolon()),zd.default=!0,this.finishNode(zd,"DeclareExportDeclaration");if(this.match(75)||this.isLet()||(this.isContextual(130)||this.isContextual(129))&&!Zd){let Tf=this.state.value;throw this.raise(r_.UnsupportedDeclareExportKind,this.state.startLoc,{unsupportedExportKind:Tf,suggestion:sE[Tf]})}if(this.match(74)||this.match(68)||this.match(80)||this.isContextual(131))return zd.declaration=this.flowParseDeclare(this.startNode()),zd.default=!1,this.finishNode(zd,"DeclareExportDeclaration");if(this.match(55)||this.match(5)||this.isContextual(129)||this.isContextual(130)||this.isContextual(131))return zd=this.parseExport(zd,null),zd.type==="ExportNamedDeclaration"&&(zd.type="ExportDeclaration",zd.default=!1,delete zd.exportKind),zd.type="Declare"+zd.type,zd;this.unexpected()}flowParseDeclareModuleExports(zd){return this.next(),this.expectContextual(111),zd.typeAnnotation=this.flowParseTypeAnnotation(),this.semicolon(),this.finishNode(zd,"DeclareModuleExports")}flowParseDeclareTypeAlias(zd){this.next();let Zd=this.flowParseTypeAlias(zd);return Zd.type="DeclareTypeAlias",Zd}flowParseDeclareOpaqueType(zd){this.next();let Zd=this.flowParseOpaqueType(zd,!0);return Zd.type="DeclareOpaqueType",Zd}flowParseDeclareInterface(zd){return this.next(),this.flowParseInterfaceish(zd,!1),this.finishNode(zd,"DeclareInterface")}flowParseInterfaceish(zd,Zd){if(zd.id=this.flowParseRestrictedIdentifier(!Zd,!0),this.scope.declareName(zd.id.name,Zd?17:8201,zd.id.loc.start),this.match(47)?zd.typeParameters=this.flowParseTypeParameterDeclaration():zd.typeParameters=null,zd.extends=[],this.eat(81))do zd.extends.push(this.flowParseInterfaceExtends());while(!Zd&&this.eat(12));if(Zd){if(zd.implements=[],zd.mixins=[],this.eatContextual(117))do zd.mixins.push(this.flowParseInterfaceExtends());while(this.eat(12));if(this.eatContextual(113))do zd.implements.push(this.flowParseInterfaceExtends());while(this.eat(12))}zd.body=this.flowParseObjectType({allowStatic:Zd,allowExact:!1,allowSpread:!1,allowProto:Zd,allowInexact:!1})}flowParseInterfaceExtends(){let zd=this.startNode();return zd.id=this.flowParseQualifiedTypeIdentifier(),this.match(47)?zd.typeParameters=this.flowParseTypeParameterInstantiation():zd.typeParameters=null,this.finishNode(zd,"InterfaceExtends")}flowParseInterface(zd){return this.flowParseInterfaceish(zd,!1),this.finishNode(zd,"InterfaceDeclaration")}checkNotUnderscore(zd){zd==="_"&&this.raise(r_.UnexpectedReservedUnderscore,this.state.startLoc)}checkReservedType(zd,Zd,Tf){L0.has(zd)&&this.raise(Tf?r_.AssignReservedType:r_.UnexpectedReservedType,Zd,{reservedType:zd})}flowParseRestrictedIdentifier(zd,Zd){return this.checkReservedType(this.state.value,this.state.startLoc,Zd),this.parseIdentifier(zd)}flowParseTypeAlias(zd){return zd.id=this.flowParseRestrictedIdentifier(!1,!0),this.scope.declareName(zd.id.name,8201,zd.id.loc.start),this.match(47)?zd.typeParameters=this.flowParseTypeParameterDeclaration():zd.typeParameters=null,zd.right=this.flowParseTypeInitialiser(29),this.semicolon(),this.finishNode(zd,"TypeAlias")}flowParseOpaqueType(zd,Zd){return this.expectContextual(130),zd.id=this.flowParseRestrictedIdentifier(!0,!0),this.scope.declareName(zd.id.name,8201,zd.id.loc.start),this.match(47)?zd.typeParameters=this.flowParseTypeParameterDeclaration():zd.typeParameters=null,zd.supertype=null,this.match(14)&&(zd.supertype=this.flowParseTypeInitialiser(14)),zd.impltype=null,Zd||(zd.impltype=this.flowParseTypeInitialiser(29)),this.semicolon(),this.finishNode(zd,"OpaqueType")}flowParseTypeParameter(zd=!1){let Zd=this.state.startLoc,Tf=this.startNode(),Bf=this.flowParseVariance(),Ph=this.flowParseTypeAnnotatableIdentifier();return Tf.name=Ph.name,Tf.variance=Bf,Tf.bound=Ph.typeAnnotation,this.match(29)?(this.eat(29),Tf.default=this.flowParseType()):zd&&this.raise(r_.MissingTypeParamDefault,Zd),this.finishNode(Tf,"TypeParameter")}flowParseTypeParameterDeclaration(){let zd=this.state.inType,Zd=this.startNode();Zd.params=[],this.state.inType=!0,this.match(47)||this.match(142)?this.next():this.unexpected();let Tf=!1;do{let Bf=this.flowParseTypeParameter(Tf);Zd.params.push(Bf),Bf.default&&(Tf=!0),this.match(48)||this.expect(12)}while(!this.match(48));return this.expect(48),this.state.inType=zd,this.finishNode(Zd,"TypeParameterDeclaration")}flowParseTypeParameterInstantiation(){let zd=this.startNode(),Zd=this.state.inType;zd.params=[],this.state.inType=!0,this.expect(47);let Tf=this.state.noAnonFunctionType;for(this.state.noAnonFunctionType=!1;!this.match(48);)zd.params.push(this.flowParseType()),this.match(48)||this.expect(12);return this.state.noAnonFunctionType=Tf,this.expect(48),this.state.inType=Zd,this.finishNode(zd,"TypeParameterInstantiation")}flowParseTypeParameterInstantiationCallOrNew(){let zd=this.startNode(),Zd=this.state.inType;for(zd.params=[],this.state.inType=!0,this.expect(47);!this.match(48);)zd.params.push(this.flowParseTypeOrImplicitInstantiation()),this.match(48)||this.expect(12);return this.expect(48),this.state.inType=Zd,this.finishNode(zd,"TypeParameterInstantiation")}flowParseInterfaceType(){let zd=this.startNode();if(this.expectContextual(129),zd.extends=[],this.eat(81))do zd.extends.push(this.flowParseInterfaceExtends());while(this.eat(12));return zd.body=this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!1,allowProto:!1,allowInexact:!1}),this.finishNode(zd,"InterfaceTypeAnnotation")}flowParseObjectPropertyKey(){return this.match(134)||this.match(133)?super.parseExprAtom():this.parseIdentifier(!0)}flowParseObjectTypeIndexer(zd,Zd,Tf){return zd.static=Zd,this.lookahead().type===14?(zd.id=this.flowParseObjectPropertyKey(),zd.key=this.flowParseTypeInitialiser()):(zd.id=null,zd.key=this.flowParseType()),this.expect(3),zd.value=this.flowParseTypeInitialiser(),zd.variance=Tf,this.finishNode(zd,"ObjectTypeIndexer")}flowParseObjectTypeInternalSlot(zd,Zd){return zd.static=Zd,zd.id=this.flowParseObjectPropertyKey(),this.expect(3),this.expect(3),this.match(47)||this.match(10)?(zd.method=!0,zd.optional=!1,zd.value=this.flowParseObjectTypeMethodish(this.startNodeAt(zd.loc.start))):(zd.method=!1,this.eat(17)&&(zd.optional=!0),zd.value=this.flowParseTypeInitialiser()),this.finishNode(zd,"ObjectTypeInternalSlot")}flowParseObjectTypeMethodish(zd){for(zd.params=[],zd.rest=null,zd.typeParameters=null,zd.this=null,this.match(47)&&(zd.typeParameters=this.flowParseTypeParameterDeclaration()),this.expect(10),this.match(78)&&(zd.this=this.flowParseFunctionTypeParam(!0),zd.this.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)zd.params.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(zd.rest=this.flowParseFunctionTypeParam(!1)),this.expect(11),zd.returnType=this.flowParseTypeInitialiser(),this.finishNode(zd,"FunctionTypeAnnotation")}flowParseObjectTypeCallProperty(zd,Zd){let Tf=this.startNode();return zd.static=Zd,zd.value=this.flowParseObjectTypeMethodish(Tf),this.finishNode(zd,"ObjectTypeCallProperty")}flowParseObjectType({allowStatic:zd,allowExact:Zd,allowSpread:Tf,allowProto:Bf,allowInexact:Ph}){let hm=this.state.inType;this.state.inType=!0;let Im=this.startNode();Im.callProperties=[],Im.properties=[],Im.indexers=[],Im.internalSlots=[];let Gm,Um,Sg=!1;for(Zd&&this.match(6)?(this.expect(6),Gm=9,Um=!0):(this.expect(5),Gm=8,Um=!1),Im.exact=Um;!this.match(Gm);){let Xg=!1,Zg=null,g_=null,tb=this.startNode();if(Bf&&this.isContextual(118)){let P_=this.lookahead();P_.type!==14&&P_.type!==17&&(this.next(),Zg=this.state.startLoc,zd=!1)}if(zd&&this.isContextual(106)){let P_=this.lookahead();P_.type!==14&&P_.type!==17&&(this.next(),Xg=!0)}let D_=this.flowParseVariance();if(this.eat(0))Zg!=null&&this.unexpected(Zg),this.eat(0)?(D_&&this.unexpected(D_.loc.start),Im.internalSlots.push(this.flowParseObjectTypeInternalSlot(tb,Xg))):Im.indexers.push(this.flowParseObjectTypeIndexer(tb,Xg,D_));else if(this.match(10)||this.match(47))Zg!=null&&this.unexpected(Zg),D_&&this.unexpected(D_.loc.start),Im.callProperties.push(this.flowParseObjectTypeCallProperty(tb,Xg));else{let P_="init";if(this.isContextual(99)||this.isContextual(104)){let dE=this.lookahead();Jf(dE.type)&&(P_=this.state.value,this.next())}let Cb=this.flowParseObjectTypeProperty(tb,Xg,Zg,D_,P_,Tf,Ph??!Um);Cb===null?(Sg=!0,g_=this.state.lastTokStartLoc):Im.properties.push(Cb)}this.flowObjectTypeSemicolon(),g_&&!this.match(8)&&!this.match(9)&&this.raise(r_.UnexpectedExplicitInexactInObject,g_)}this.expect(Gm),Tf&&(Im.inexact=Sg);let Bg=this.finishNode(Im,"ObjectTypeAnnotation");return this.state.inType=hm,Bg}flowParseObjectTypeProperty(zd,Zd,Tf,Bf,Ph,hm,Im){if(this.eat(21))return this.match(12)||this.match(13)||this.match(8)||this.match(9)?(hm?Im||this.raise(r_.InexactInsideExact,this.state.lastTokStartLoc):this.raise(r_.InexactInsideNonObject,this.state.lastTokStartLoc),Bf&&this.raise(r_.InexactVariance,Bf),null):(hm||this.raise(r_.UnexpectedSpreadType,this.state.lastTokStartLoc),Tf!=null&&this.unexpected(Tf),Bf&&this.raise(r_.SpreadVariance,Bf),zd.argument=this.flowParseType(),this.finishNode(zd,"ObjectTypeSpreadProperty"));{zd.key=this.flowParseObjectPropertyKey(),zd.static=Zd,zd.proto=Tf!=null,zd.kind=Ph;let Gm=!1;return this.match(47)||this.match(10)?(zd.method=!0,Tf!=null&&this.unexpected(Tf),Bf&&this.unexpected(Bf.loc.start),zd.value=this.flowParseObjectTypeMethodish(this.startNodeAt(zd.loc.start)),(Ph==="get"||Ph==="set")&&this.flowCheckGetterSetterParams(zd),!hm&&zd.key.name==="constructor"&&zd.value.this&&this.raise(r_.ThisParamBannedInConstructor,zd.value.this)):(Ph!=="init"&&this.unexpected(),zd.method=!1,this.eat(17)&&(Gm=!0),zd.value=this.flowParseTypeInitialiser(),zd.variance=Bf),zd.optional=Gm,this.finishNode(zd,"ObjectTypeProperty")}}flowCheckGetterSetterParams(zd){let Zd=zd.kind==="get"?0:1,Tf=zd.value.params.length+(zd.value.rest?1:0);zd.value.this&&this.raise(zd.kind==="get"?r_.GetterMayNotHaveThisParam:r_.SetterMayNotHaveThisParam,zd.value.this),Tf!==Zd&&this.raise(zd.kind==="get"?Ud.BadGetterArity:Ud.BadSetterArity,zd),zd.kind==="set"&&zd.value.rest&&this.raise(Ud.BadSetterRestParameter,zd)}flowObjectTypeSemicolon(){!this.eat(13)&&!this.eat(12)&&!this.match(8)&&!this.match(9)&&this.unexpected()}flowParseQualifiedTypeIdentifier(zd,Zd){zd!=null||(zd=this.state.startLoc);let Tf=Zd||this.flowParseRestrictedIdentifier(!0);for(;this.eat(16);){let Bf=this.startNodeAt(zd);Bf.qualification=Tf,Bf.id=this.flowParseRestrictedIdentifier(!0),Tf=this.finishNode(Bf,"QualifiedTypeIdentifier")}return Tf}flowParseGenericType(zd,Zd){let Tf=this.startNodeAt(zd);return Tf.typeParameters=null,Tf.id=this.flowParseQualifiedTypeIdentifier(zd,Zd),this.match(47)&&(Tf.typeParameters=this.flowParseTypeParameterInstantiation()),this.finishNode(Tf,"GenericTypeAnnotation")}flowParseTypeofType(){let zd=this.startNode();return this.expect(87),zd.argument=this.flowParsePrimaryType(),this.finishNode(zd,"TypeofTypeAnnotation")}flowParseTupleType(){let zd=this.startNode();for(zd.types=[],this.expect(0);this.state.possuper.parseFunctionBody(zd,!0,Tf));return}super.parseFunctionBody(zd,!1,Tf)}parseFunctionBodyAndFinish(zd,Zd,Tf=!1){if(this.match(14)){let Bf=this.startNode();[Bf.typeAnnotation,zd.predicate]=this.flowParseTypeAndPredicateInitialiser(),zd.returnType=Bf.typeAnnotation?this.finishNode(Bf,"TypeAnnotation"):null}return super.parseFunctionBodyAndFinish(zd,Zd,Tf)}parseStatementLike(zd){if(this.state.strict&&this.isContextual(129)){let Tf=this.lookahead();if(dm(Tf.type)){let Bf=this.startNode();return this.next(),this.flowParseInterface(Bf)}}else if(this.shouldParseEnums()&&this.isContextual(126)){let Tf=this.startNode();return this.next(),this.flowParseEnumDeclaration(Tf)}let Zd=super.parseStatementLike(zd);return this.flowPragma===void 0&&!this.isValidDirective(Zd)&&(this.flowPragma=null),Zd}parseExpressionStatement(zd,Zd,Tf){if(Zd.type==="Identifier"){if(Zd.name==="declare"){if(this.match(80)||_h(this.state.type)||this.match(68)||this.match(74)||this.match(82))return this.flowParseDeclare(zd)}else if(_h(this.state.type)){if(Zd.name==="interface")return this.flowParseInterface(zd);if(Zd.name==="type")return this.flowParseTypeAlias(zd);if(Zd.name==="opaque")return this.flowParseOpaqueType(zd,!1)}}return super.parseExpressionStatement(zd,Zd,Tf)}shouldParseExportDeclaration(){let{type:zd}=this.state;return kh(zd)||this.shouldParseEnums()&&zd===126?!this.state.containsEsc:super.shouldParseExportDeclaration()}isExportDefaultSpecifier(){let{type:zd}=this.state;return kh(zd)||this.shouldParseEnums()&&zd===126?this.state.containsEsc:super.isExportDefaultSpecifier()}parseExportDefaultExpression(){if(this.shouldParseEnums()&&this.isContextual(126)){let zd=this.startNode();return this.next(),this.flowParseEnumDeclaration(zd)}return super.parseExportDefaultExpression()}parseConditional(zd,Zd,Tf){if(!this.match(17))return zd;if(this.state.maybeInArrowParameters){let Bg=this.lookaheadCharCode();if(Bg===44||Bg===61||Bg===58||Bg===41)return this.setOptionalParametersError(Tf),zd}this.expect(17);let Bf=this.state.clone(),Ph=this.state.noArrowAt,hm=this.startNodeAt(Zd),{consequent:Im,failed:Gm}=this.tryParseConditionalConsequent(),[Um,Sg]=this.getArrowLikeExpressions(Im);if(Gm||Sg.length>0){let Bg=[...Ph];if(Sg.length>0){this.state=Bf,this.state.noArrowAt=Bg;for(let Xg=0;Xg1&&this.raise(r_.AmbiguousConditionalArrow,Bf.startLoc),Gm&&Um.length===1&&(this.state=Bf,Bg.push(Um[0].start),this.state.noArrowAt=Bg,{consequent:Im,failed:Gm}=this.tryParseConditionalConsequent())}return this.getArrowLikeExpressions(Im,!0),this.state.noArrowAt=Ph,this.expect(14),hm.test=zd,hm.consequent=Im,hm.alternate=this.forwardNoArrowParamsConversionAt(hm,()=>this.parseMaybeAssign(void 0,void 0)),this.finishNode(hm,"ConditionalExpression")}tryParseConditionalConsequent(){this.state.noArrowParamsConversionAt.push(this.state.start);let zd=this.parseMaybeAssignAllowIn(),Zd=!this.match(14);return this.state.noArrowParamsConversionAt.pop(),{consequent:zd,failed:Zd}}getArrowLikeExpressions(zd,Zd){let Tf=[zd],Bf=[];for(;Tf.length!==0;){let Ph=Tf.pop();Ph.type==="ArrowFunctionExpression"&&Ph.body.type!=="BlockStatement"?(Ph.typeParameters||!Ph.returnType?this.finishArrowValidation(Ph):Bf.push(Ph),Tf.push(Ph.body)):Ph.type==="ConditionalExpression"&&(Tf.push(Ph.consequent),Tf.push(Ph.alternate))}return Zd?(Bf.forEach(Ph=>this.finishArrowValidation(Ph)),[Bf,[]]):LE(Bf,Ph=>Ph.params.every(hm=>this.isAssignable(hm,!0)))}finishArrowValidation(zd){var Zd;this.toAssignableList(zd.params,(Zd=zd.extra)==null?void 0:Zd.trailingCommaLoc,!1),this.scope.enter(6),super.checkParams(zd,!1,!0),this.scope.exit()}forwardNoArrowParamsConversionAt(zd,Zd){let Tf;return this.state.noArrowParamsConversionAt.includes(zd.start)?(this.state.noArrowParamsConversionAt.push(this.state.start),Tf=Zd(),this.state.noArrowParamsConversionAt.pop()):Tf=Zd(),Tf}parseParenItem(zd,Zd){let Tf=super.parseParenItem(zd,Zd);if(this.eat(17)&&(Tf.optional=!0,this.resetEndLocation(zd)),this.match(14)){let Bf=this.startNodeAt(Zd);return Bf.expression=Tf,Bf.typeAnnotation=this.flowParseTypeAnnotation(),this.finishNode(Bf,"TypeCastExpression")}return Tf}assertModuleNodeAllowed(zd){zd.type==="ImportDeclaration"&&(zd.importKind==="type"||zd.importKind==="typeof")||zd.type==="ExportNamedDeclaration"&&zd.exportKind==="type"||zd.type==="ExportAllDeclaration"&&zd.exportKind==="type"||super.assertModuleNodeAllowed(zd)}parseExportDeclaration(zd){if(this.isContextual(130)){zd.exportKind="type";let Zd=this.startNode();return this.next(),this.match(5)?(zd.specifiers=this.parseExportSpecifiers(!0),super.parseExportFrom(zd),null):this.flowParseTypeAlias(Zd)}else if(this.isContextual(131)){zd.exportKind="type";let Zd=this.startNode();return this.next(),this.flowParseOpaqueType(Zd,!1)}else if(this.isContextual(129)){zd.exportKind="type";let Zd=this.startNode();return this.next(),this.flowParseInterface(Zd)}else if(this.shouldParseEnums()&&this.isContextual(126)){zd.exportKind="value";let Zd=this.startNode();return this.next(),this.flowParseEnumDeclaration(Zd)}else return super.parseExportDeclaration(zd)}eatExportStar(zd){return super.eatExportStar(zd)?!0:this.isContextual(130)&&this.lookahead().type===55?(zd.exportKind="type",this.next(),this.next(),!0):!1}maybeParseExportNamespaceSpecifier(zd){let{startLoc:Zd}=this.state,Tf=super.maybeParseExportNamespaceSpecifier(zd);return Tf&&zd.exportKind==="type"&&this.unexpected(Zd),Tf}parseClassId(zd,Zd,Tf){super.parseClassId(zd,Zd,Tf),this.match(47)&&(zd.typeParameters=this.flowParseTypeParameterDeclaration())}parseClassMember(zd,Zd,Tf){let{startLoc:Bf}=this.state;if(this.isContextual(125)){if(super.parseClassMemberFromModifier(zd,Zd))return;Zd.declare=!0}super.parseClassMember(zd,Zd,Tf),Zd.declare&&(Zd.type!=="ClassProperty"&&Zd.type!=="ClassPrivateProperty"&&Zd.type!=="PropertyDefinition"?this.raise(r_.DeclareClassElement,Bf):Zd.value&&this.raise(r_.DeclareClassFieldInitializer,Zd.value))}isIterator(zd){return zd==="iterator"||zd==="asyncIterator"}readIterator(){let zd=super.readWord1(),Zd="@@"+zd;(!this.isIterator(zd)||!this.state.inType)&&this.raise(Ud.InvalidIdentifier,this.state.curPosition(),{identifierName:Zd}),this.finishToken(132,Zd)}getTokenFromCode(zd){let Zd=this.input.charCodeAt(this.state.pos+1);zd===123&&Zd===124?this.finishOp(6,2):this.state.inType&&(zd===62||zd===60)?this.finishOp(zd===62?48:47,1):this.state.inType&&zd===63?Zd===46?this.finishOp(18,2):this.finishOp(17,1):t_(zd,Zd,this.input.charCodeAt(this.state.pos+2))?(this.state.pos+=2,this.readIterator()):super.getTokenFromCode(zd)}isAssignable(zd,Zd){return zd.type==="TypeCastExpression"?this.isAssignable(zd.expression,Zd):super.isAssignable(zd,Zd)}toAssignable(zd,Zd=!1){!Zd&&zd.type==="AssignmentExpression"&&zd.left.type==="TypeCastExpression"&&(zd.left=this.typeCastToParameter(zd.left)),super.toAssignable(zd,Zd)}toAssignableList(zd,Zd,Tf){for(let Bf=0;Bf1||!Zd)&&this.raise(r_.TypeCastInPattern,Ph.typeAnnotation)}return zd}parseArrayLike(zd,Zd,Tf,Bf){let Ph=super.parseArrayLike(zd,Zd,Tf,Bf);return Zd&&!this.state.maybeInArrowParameters&&this.toReferencedList(Ph.elements),Ph}isValidLVal(zd,Zd,Tf){return zd==="TypeCastExpression"||super.isValidLVal(zd,Zd,Tf)}parseClassProperty(zd){return this.match(14)&&(zd.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassProperty(zd)}parseClassPrivateProperty(zd){return this.match(14)&&(zd.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassPrivateProperty(zd)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(14)||super.isClassProperty()}isNonstaticConstructor(zd){return!this.match(14)&&super.isNonstaticConstructor(zd)}pushClassMethod(zd,Zd,Tf,Bf,Ph,hm){if(Zd.variance&&this.unexpected(Zd.variance.loc.start),delete Zd.variance,this.match(47)&&(Zd.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassMethod(zd,Zd,Tf,Bf,Ph,hm),Zd.params&&Ph){let Im=Zd.params;Im.length>0&&this.isThisParam(Im[0])&&this.raise(r_.ThisParamBannedInConstructor,Zd)}else if(Zd.type==="MethodDefinition"&&Ph&&Zd.value.params){let Im=Zd.value.params;Im.length>0&&this.isThisParam(Im[0])&&this.raise(r_.ThisParamBannedInConstructor,Zd)}}pushClassPrivateMethod(zd,Zd,Tf,Bf){Zd.variance&&this.unexpected(Zd.variance.loc.start),delete Zd.variance,this.match(47)&&(Zd.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassPrivateMethod(zd,Zd,Tf,Bf)}parseClassSuper(zd){if(super.parseClassSuper(zd),zd.superClass&&this.match(47)&&(zd.superTypeParameters=this.flowParseTypeParameterInstantiation()),this.isContextual(113)){this.next();let Zd=zd.implements=[];do{let Tf=this.startNode();Tf.id=this.flowParseRestrictedIdentifier(!0),this.match(47)?Tf.typeParameters=this.flowParseTypeParameterInstantiation():Tf.typeParameters=null,Zd.push(this.finishNode(Tf,"ClassImplements"))}while(this.eat(12))}}checkGetterSetterParams(zd){super.checkGetterSetterParams(zd);let Zd=this.getObjectOrClassMethodParams(zd);if(Zd.length>0){let Tf=Zd[0];this.isThisParam(Tf)&&zd.kind==="get"?this.raise(r_.GetterMayNotHaveThisParam,Tf):this.isThisParam(Tf)&&this.raise(r_.SetterMayNotHaveThisParam,Tf)}}parsePropertyNamePrefixOperator(zd){zd.variance=this.flowParseVariance()}parseObjPropValue(zd,Zd,Tf,Bf,Ph,hm,Im){zd.variance&&this.unexpected(zd.variance.loc.start),delete zd.variance;let Gm;this.match(47)&&!hm&&(Gm=this.flowParseTypeParameterDeclaration(),this.match(10)||this.unexpected());let Um=super.parseObjPropValue(zd,Zd,Tf,Bf,Ph,hm,Im);return Gm&&((Um.value||Um).typeParameters=Gm),Um}parseAssignableListItemTypes(zd){return this.eat(17)&&(zd.type!=="Identifier"&&this.raise(r_.PatternIsOptional,zd),this.isThisParam(zd)&&this.raise(r_.ThisParamMayNotBeOptional,zd),zd.optional=!0),this.match(14)?zd.typeAnnotation=this.flowParseTypeAnnotation():this.isThisParam(zd)&&this.raise(r_.ThisParamAnnotationRequired,zd),this.match(29)&&this.isThisParam(zd)&&this.raise(r_.ThisParamNoDefault,zd),this.resetEndLocation(zd),zd}parseMaybeDefault(zd,Zd){let Tf=super.parseMaybeDefault(zd,Zd);return Tf.type==="AssignmentPattern"&&Tf.typeAnnotation&&Tf.right.startsuper.parseMaybeAssign(zd,Zd),Bf),!Ph.error)return Ph.node;let{context:Gm}=this.state,Um=Gm[Gm.length-1];(Um===Ef.j_oTag||Um===Ef.j_expr)&&Gm.pop()}if((Tf=Ph)!=null&&Tf.error||this.match(47)){var hm,Im;Bf=Bf||this.state.clone();let Gm,Um=this.tryParse(Bg=>{var Xg;Gm=this.flowParseTypeParameterDeclaration();let Zg=this.forwardNoArrowParamsConversionAt(Gm,()=>{let tb=super.parseMaybeAssign(zd,Zd);return this.resetStartLocationFromNode(tb,Gm),tb});(Xg=Zg.extra)!=null&&Xg.parenthesized&&Bg();let g_=this.maybeUnwrapTypeCastExpression(Zg);return g_.type!=="ArrowFunctionExpression"&&Bg(),g_.typeParameters=Gm,this.resetStartLocationFromNode(g_,Gm),Zg},Bf),Sg=null;if(Um.node&&this.maybeUnwrapTypeCastExpression(Um.node).type==="ArrowFunctionExpression"){if(!Um.error&&!Um.aborted)return Um.node.async&&this.raise(r_.UnexpectedTypeParameterBeforeAsyncArrowFunction,Gm),Um.node;Sg=Um.node}if((hm=Ph)!=null&&hm.node)return this.state=Ph.failState,Ph.node;if(Sg)return this.state=Um.failState,Sg;throw(Im=Ph)!=null&&Im.thrown?Ph.error:Um.thrown?Um.error:this.raise(r_.UnexpectedTokenAfterTypeParameter,Gm)}return super.parseMaybeAssign(zd,Zd)}parseArrow(zd){if(this.match(14)){let Zd=this.tryParse(()=>{let Tf=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0;let Bf=this.startNode();return[Bf.typeAnnotation,zd.predicate]=this.flowParseTypeAndPredicateInitialiser(),this.state.noAnonFunctionType=Tf,this.canInsertSemicolon()&&this.unexpected(),this.match(19)||this.unexpected(),Bf});if(Zd.thrown)return null;Zd.error&&(this.state=Zd.failState),zd.returnType=Zd.node.typeAnnotation?this.finishNode(Zd.node,"TypeAnnotation"):null}return super.parseArrow(zd)}shouldParseArrow(zd){return this.match(14)||super.shouldParseArrow(zd)}setArrowFunctionParameters(zd,Zd){this.state.noArrowParamsConversionAt.includes(zd.start)?zd.params=Zd:super.setArrowFunctionParameters(zd,Zd)}checkParams(zd,Zd,Tf,Bf=!0){if(!(Tf&&this.state.noArrowParamsConversionAt.includes(zd.start))){for(let Ph=0;Ph0&&this.raise(r_.ThisParamMustBeFirst,zd.params[Ph]);super.checkParams(zd,Zd,Tf,Bf)}}parseParenAndDistinguishExpression(zd){return super.parseParenAndDistinguishExpression(zd&&!this.state.noArrowAt.includes(this.state.start))}parseSubscripts(zd,Zd,Tf){if(zd.type==="Identifier"&&zd.name==="async"&&this.state.noArrowAt.includes(Zd.index)){this.next();let Bf=this.startNodeAt(Zd);Bf.callee=zd,Bf.arguments=super.parseCallExpressionArguments(11,!1),zd=this.finishNode(Bf,"CallExpression")}else if(zd.type==="Identifier"&&zd.name==="async"&&this.match(47)){let Bf=this.state.clone(),Ph=this.tryParse(Im=>this.parseAsyncArrowWithTypeParameters(Zd)||Im(),Bf);if(!Ph.error&&!Ph.aborted)return Ph.node;let hm=this.tryParse(()=>super.parseSubscripts(zd,Zd,Tf),Bf);if(hm.node&&!hm.error)return hm.node;if(Ph.node)return this.state=Ph.failState,Ph.node;if(hm.node)return this.state=hm.failState,hm.node;throw Ph.error||hm.error}return super.parseSubscripts(zd,Zd,Tf)}parseSubscript(zd,Zd,Tf,Bf){if(this.match(18)&&this.isLookaheadToken_lt()){if(Bf.optionalChainMember=!0,Tf)return Bf.stop=!0,zd;this.next();let Ph=this.startNodeAt(Zd);return Ph.callee=zd,Ph.typeArguments=this.flowParseTypeParameterInstantiation(),this.expect(10),Ph.arguments=this.parseCallExpressionArguments(11,!1),Ph.optional=!0,this.finishCallExpression(Ph,!0)}else if(!Tf&&this.shouldParseTypes()&&this.match(47)){let Ph=this.startNodeAt(Zd);Ph.callee=zd;let hm=this.tryParse(()=>(Ph.typeArguments=this.flowParseTypeParameterInstantiationCallOrNew(),this.expect(10),Ph.arguments=super.parseCallExpressionArguments(11,!1),Bf.optionalChainMember&&(Ph.optional=!1),this.finishCallExpression(Ph,Bf.optionalChainMember)));if(hm.node)return hm.error&&(this.state=hm.failState),hm.node}return super.parseSubscript(zd,Zd,Tf,Bf)}parseNewCallee(zd){super.parseNewCallee(zd);let Zd=null;this.shouldParseTypes()&&this.match(47)&&(Zd=this.tryParse(()=>this.flowParseTypeParameterInstantiationCallOrNew()).node),zd.typeArguments=Zd}parseAsyncArrowWithTypeParameters(zd){let Zd=this.startNodeAt(zd);if(this.parseFunctionParams(Zd,!1),!!this.parseArrow(Zd))return super.parseArrowExpression(Zd,void 0,!0)}readToken_mult_modulo(zd){let Zd=this.input.charCodeAt(this.state.pos+1);if(zd===42&&Zd===47&&this.state.hasFlowComment){this.state.hasFlowComment=!1,this.state.pos+=2,this.nextToken();return}super.readToken_mult_modulo(zd)}readToken_pipe_amp(zd){let Zd=this.input.charCodeAt(this.state.pos+1);if(zd===124&&Zd===125){this.finishOp(9,2);return}super.readToken_pipe_amp(zd)}parseTopLevel(zd,Zd){let Tf=super.parseTopLevel(zd,Zd);return this.state.hasFlowComment&&this.raise(r_.UnterminatedFlowComment,this.state.curPosition()),Tf}skipBlockComment(){if(this.hasPlugin("flowComments")&&this.skipFlowComment()){if(this.state.hasFlowComment)throw this.raise(r_.NestedFlowComment,this.state.startLoc);this.hasFlowCommentCompletion();let zd=this.skipFlowComment();zd&&(this.state.pos+=zd,this.state.hasFlowComment=!0);return}return super.skipBlockComment(this.state.hasFlowComment?"*-/":"*/")}skipFlowComment(){let{pos:zd}=this.state,Zd=2;for(;[32,9].includes(this.input.charCodeAt(zd+Zd));)Zd++;let Tf=this.input.charCodeAt(Zd+zd),Bf=this.input.charCodeAt(Zd+zd+1);return Tf===58&&Bf===58?Zd+2:this.input.slice(Zd+zd,Zd+zd+12)==="flow-include"?Zd+12:Tf===58&&Bf!==58?Zd:!1}hasFlowCommentCompletion(){if(this.input.indexOf("*/",this.state.pos)===-1)throw this.raise(Ud.UnterminatedComment,this.state.curPosition())}flowEnumErrorBooleanMemberNotInitialized(zd,{enumName:Zd,memberName:Tf}){this.raise(r_.EnumBooleanMemberNotInitialized,zd,{memberName:Tf,enumName:Zd})}flowEnumErrorInvalidMemberInitializer(zd,Zd){return this.raise(Zd.explicitType?Zd.explicitType==="symbol"?r_.EnumInvalidMemberInitializerSymbolType:r_.EnumInvalidMemberInitializerPrimaryType:r_.EnumInvalidMemberInitializerUnknownType,zd,Zd)}flowEnumErrorNumberMemberNotInitialized(zd,Zd){this.raise(r_.EnumNumberMemberNotInitialized,zd,Zd)}flowEnumErrorStringMemberInconsistentlyInitialized(zd,Zd){this.raise(r_.EnumStringMemberInconsistentlyInitialized,zd,Zd)}flowEnumMemberInit(){let zd=this.state.startLoc,Zd=()=>this.match(12)||this.match(8);switch(this.state.type){case 134:{let Tf=this.parseNumericLiteral(this.state.value);return Zd()?{type:"number",loc:Tf.loc.start,value:Tf}:{type:"invalid",loc:zd}}case 133:{let Tf=this.parseStringLiteral(this.state.value);return Zd()?{type:"string",loc:Tf.loc.start,value:Tf}:{type:"invalid",loc:zd}}case 85:case 86:{let Tf=this.parseBooleanLiteral(this.match(85));return Zd()?{type:"boolean",loc:Tf.loc.start,value:Tf}:{type:"invalid",loc:zd}}default:return{type:"invalid",loc:zd}}}flowEnumMemberRaw(){let zd=this.state.startLoc,Zd=this.parseIdentifier(!0),Tf=this.eat(29)?this.flowEnumMemberInit():{type:"none",loc:zd};return{id:Zd,init:Tf}}flowEnumCheckExplicitTypeMismatch(zd,Zd,Tf){let{explicitType:Bf}=Zd;Bf!==null&&Bf!==Tf&&this.flowEnumErrorInvalidMemberInitializer(zd,Zd)}flowEnumMembers({enumName:zd,explicitType:Zd}){let Tf=new Set,Bf={booleanMembers:[],numberMembers:[],stringMembers:[],defaultedMembers:[]},Ph=!1;for(;!this.match(8);){if(this.eat(21)){Ph=!0;break}let hm=this.startNode(),{id:Im,init:Gm}=this.flowEnumMemberRaw(),Um=Im.name;if(Um==="")continue;/^[a-z]/.test(Um)&&this.raise(r_.EnumInvalidMemberName,Im,{memberName:Um,suggestion:Um[0].toUpperCase()+Um.slice(1),enumName:zd}),Tf.has(Um)&&this.raise(r_.EnumDuplicateMemberName,Im,{memberName:Um,enumName:zd}),Tf.add(Um);let Sg={enumName:zd,explicitType:Zd,memberName:Um};switch(hm.id=Im,Gm.type){case"boolean":{this.flowEnumCheckExplicitTypeMismatch(Gm.loc,Sg,"boolean"),hm.init=Gm.value,Bf.booleanMembers.push(this.finishNode(hm,"EnumBooleanMember"));break}case"number":{this.flowEnumCheckExplicitTypeMismatch(Gm.loc,Sg,"number"),hm.init=Gm.value,Bf.numberMembers.push(this.finishNode(hm,"EnumNumberMember"));break}case"string":{this.flowEnumCheckExplicitTypeMismatch(Gm.loc,Sg,"string"),hm.init=Gm.value,Bf.stringMembers.push(this.finishNode(hm,"EnumStringMember"));break}case"invalid":throw this.flowEnumErrorInvalidMemberInitializer(Gm.loc,Sg);case"none":switch(Zd){case"boolean":this.flowEnumErrorBooleanMemberNotInitialized(Gm.loc,Sg);break;case"number":this.flowEnumErrorNumberMemberNotInitialized(Gm.loc,Sg);break;default:Bf.defaultedMembers.push(this.finishNode(hm,"EnumDefaultedMember"))}}this.match(8)||this.expect(12)}return{members:Bf,hasUnknownMembers:Ph}}flowEnumStringMembers(zd,Zd,{enumName:Tf}){if(zd.length===0)return Zd;if(Zd.length===0)return zd;if(Zd.length>zd.length){for(let Bf of zd)this.flowEnumErrorStringMemberInconsistentlyInitialized(Bf,{enumName:Tf});return Zd}else{for(let Bf of Zd)this.flowEnumErrorStringMemberInconsistentlyInitialized(Bf,{enumName:Tf});return zd}}flowEnumParseExplicitType({enumName:zd}){if(!this.eatContextual(102))return null;if(!_h(this.state.type))throw this.raise(r_.EnumInvalidExplicitTypeUnknownSupplied,this.state.startLoc,{enumName:zd});let{value:Zd}=this.state;return this.next(),Zd!=="boolean"&&Zd!=="number"&&Zd!=="string"&&Zd!=="symbol"&&this.raise(r_.EnumInvalidExplicitType,this.state.startLoc,{enumName:zd,invalidEnumType:Zd}),Zd}flowEnumBody(zd,Zd){let Tf=Zd.name,Bf=Zd.loc.start,Ph=this.flowEnumParseExplicitType({enumName:Tf});this.expect(5);let{members:hm,hasUnknownMembers:Im}=this.flowEnumMembers({enumName:Tf,explicitType:Ph});switch(zd.hasUnknownMembers=Im,Ph){case"boolean":return zd.explicitType=!0,zd.members=hm.booleanMembers,this.expect(8),this.finishNode(zd,"EnumBooleanBody");case"number":return zd.explicitType=!0,zd.members=hm.numberMembers,this.expect(8),this.finishNode(zd,"EnumNumberBody");case"string":return zd.explicitType=!0,zd.members=this.flowEnumStringMembers(hm.stringMembers,hm.defaultedMembers,{enumName:Tf}),this.expect(8),this.finishNode(zd,"EnumStringBody");case"symbol":return zd.members=hm.defaultedMembers,this.expect(8),this.finishNode(zd,"EnumSymbolBody");default:{let Gm=()=>(zd.members=[],this.expect(8),this.finishNode(zd,"EnumStringBody"));zd.explicitType=!1;let Um=hm.booleanMembers.length,Sg=hm.numberMembers.length,Bg=hm.stringMembers.length,Xg=hm.defaultedMembers.length;if(!Um&&!Sg&&!Bg&&!Xg)return Gm();if(!Um&&!Sg)return zd.members=this.flowEnumStringMembers(hm.stringMembers,hm.defaultedMembers,{enumName:Tf}),this.expect(8),this.finishNode(zd,"EnumStringBody");if(!Sg&&!Bg&&Um>=Xg){for(let Zg of hm.defaultedMembers)this.flowEnumErrorBooleanMemberNotInitialized(Zg.loc.start,{enumName:Tf,memberName:Zg.id.name});return zd.members=hm.booleanMembers,this.expect(8),this.finishNode(zd,"EnumBooleanBody")}else if(!Um&&!Bg&&Sg>=Xg){for(let Zg of hm.defaultedMembers)this.flowEnumErrorNumberMemberNotInitialized(Zg.loc.start,{enumName:Tf,memberName:Zg.id.name});return zd.members=hm.numberMembers,this.expect(8),this.finishNode(zd,"EnumNumberBody")}else return this.raise(r_.EnumInconsistentMemberValues,Bf,{enumName:Tf}),Gm()}}}flowParseEnumDeclaration(zd){let Zd=this.parseIdentifier();return zd.id=Zd,zd.body=this.flowEnumBody(this.startNode(),Zd),this.finishNode(zd,"EnumDeclaration")}isLookaheadToken_lt(){let zd=this.nextTokenStart();if(this.input.charCodeAt(zd)===60){let Zd=this.input.charCodeAt(zd+1);return Zd!==60&&Zd!==61}return!1}maybeUnwrapTypeCastExpression(zd){return zd.type==="TypeCastExpression"?zd.expression:zd}},fb=Gd`jsx`({AttributeIsEmpty:"JSX attributes must only be assigned a non-empty expression.",MissingClosingTagElement:({openingTagName:Jd})=>`Expected corresponding JSX closing tag for <${Jd}>.`,MissingClosingTagFragment:"Expected corresponding JSX closing tag for <>.",UnexpectedSequenceExpression:"Sequence expressions cannot be directly nested inside JSX. Did you mean to wrap it in parentheses (...)?",UnexpectedToken:({unexpected:Jd,HTMLEntity:zd})=>`Unexpected token \`${Jd}\`. Did you mean \`${zd}\` or \`{'${Jd}'}\`?`,UnsupportedJsxValue:"JSX value should be either an expression or a quoted JSX text.",UnterminatedJsxContent:"Unterminated JSX contents.",UnwrappedAdjacentJSXElements:"Adjacent JSX elements must be wrapped in an enclosing tag. Did you want a JSX fragment <>...?"});function Xb(Jd){return Jd?Jd.type==="JSXOpeningFragment"||Jd.type==="JSXClosingFragment":!1}function Fy(Jd){if(Jd.type==="JSXIdentifier")return Jd.name;if(Jd.type==="JSXNamespacedName")return Jd.namespace.name+":"+Jd.name.name;if(Jd.type==="JSXMemberExpression")return Fy(Jd.object)+"."+Fy(Jd.property);throw new Error("Node had unexpected type: "+Jd.type)}var A0=Jd=>class extends Jd{jsxReadToken(){let zd="",Zd=this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(fb.UnterminatedJsxContent,this.state.startLoc);let Tf=this.input.charCodeAt(this.state.pos);switch(Tf){case 60:case 123:if(this.state.pos===this.state.start){Tf===60&&this.state.canStartJSXElement?(++this.state.pos,this.finishToken(142)):super.getTokenFromCode(Tf);return}zd+=this.input.slice(Zd,this.state.pos),this.finishToken(141,zd);return;case 38:zd+=this.input.slice(Zd,this.state.pos),zd+=this.jsxReadEntity(),Zd=this.state.pos;break;case 62:case 125:default:jm(Tf)?(zd+=this.input.slice(Zd,this.state.pos),zd+=this.jsxReadNewLine(!0),Zd=this.state.pos):++this.state.pos}}}jsxReadNewLine(zd){let Zd=this.input.charCodeAt(this.state.pos),Tf;return++this.state.pos,Zd===13&&this.input.charCodeAt(this.state.pos)===10?(++this.state.pos,Tf=zd?` +`);case 114:return Im("\r");case 120:{let Um;return{code:Um,pos:zd}=p_(Jd,zd,Zd,Tf,2,!1,hm,Ph),Im(Um===null?null:String.fromCharCode(Um))}case 117:{let Um;return{code:Um,pos:zd}=q_(Jd,zd,Zd,Tf,hm,Ph),Im(Um===null?null:String.fromCodePoint(Um))}case 116:return Im(" ");case 98:return Im("\b");case 118:return Im("\v");case 102:return Im("\f");case 13:Jd.charCodeAt(zd)===10&&++zd;case 10:Zd=zd,++Tf;case 8232:case 8233:return Im("");case 56:case 57:if(Bf)return Im(null);Ph.strictNumericEscape(zd-1,Zd,Tf);default:if(Gm>=48&&Gm<=55){let Um=zd-1,Sg=/^[0-7]+/.exec(Jd.slice(Um,zd+2))[0],Bg=parseInt(Sg,8);Bg>255&&(Sg=Sg.slice(0,-1),Bg=parseInt(Sg,8)),zd+=Sg.length-1;let Xg=Jd.charCodeAt(zd);if(Sg!=="0"||Xg===56||Xg===57){if(Bf)return Im(null);Ph.strictNumericEscape(Um,Zd,Tf)}return Im(String.fromCharCode(Bg))}return Im(String.fromCharCode(Gm))}}function p_(Jd,zd,Zd,Tf,Bf,Ph,hm,Im){let Gm=zd,Um;return{n:Um,pos:zd}=Mg(Jd,zd,Zd,Tf,16,Bf,Ph,!1,Im,!hm),Um===null&&(hm?Im.invalidEscapeSequence(Gm,Zd,Tf):zd=Gm-1),{code:Um,pos:zd}}function Mg(Jd,zd,Zd,Tf,Bf,Ph,hm,Im,Gm,Um){let Sg=zd,Bg=Bf===16?qg.hex:qg.decBinOct,Xg=Bf===16?xg.hex:Bf===10?xg.dec:Bf===8?xg.oct:xg.bin,Zg=!1,g_=0;for(let tb=0,D_=Ph??1/0;tb=97?Cb=P_-97+10:P_>=65?Cb=P_-65+10:pg(P_)?Cb=P_-48:Cb=1/0,Cb>=Bf){if(Cb<=9&&Um)return{n:null,pos:zd};if(Cb<=9&&Gm.invalidDigit(zd,Zd,Tf,Bf))Cb=0;else if(hm)Cb=0,Zg=!0;else break}++zd,g_=g_*Bf+Cb}return zd===Sg||Ph!=null&&zd-Sg!==Ph||Zg?{n:null,pos:zd}:{n:g_,pos:zd}}function q_(Jd,zd,Zd,Tf,Bf,Ph){let hm=Jd.charCodeAt(zd),Im;if(hm===123){if(++zd,{code:Im,pos:zd}=p_(Jd,zd,Zd,Tf,Jd.indexOf("}",zd)-zd,!0,Bf,Ph),++zd,Im!==null&&Im>1114111)if(Bf)Ph.invalidCodePoint(zd,Zd,Tf);else return{code:null,pos:zd}}else({code:Im,pos:zd}=p_(Jd,zd,Zd,Tf,4,!1,Bf,Ph));return{code:Im,pos:zd}}function m_(Jd,zd,Zd){return new rd(Zd,Jd-zd,Jd)}var a_=new Set([103,109,115,105,121,117,100,118]),qh=class{constructor(Jd){this.type=Jd.type,this.value=Jd.value,this.start=Jd.start,this.end=Jd.end,this.loc=new sd(Jd.startLoc,Jd.endLoc)}},Pm=class extends gm{constructor(Jd,zd){super(),this.isLookahead=void 0,this.tokens=[],this.errorHandlers_readInt={invalidDigit:(Zd,Tf,Bf,Ph)=>this.options.errorRecovery?(this.raise(Ud.InvalidDigit,m_(Zd,Tf,Bf),{radix:Ph}),!0):!1,numericSeparatorInEscapeSequence:this.errorBuilder(Ud.NumericSeparatorInEscapeSequence),unexpectedNumericSeparator:this.errorBuilder(Ud.UnexpectedNumericSeparator)},this.errorHandlers_readCodePoint=Object.assign({},this.errorHandlers_readInt,{invalidEscapeSequence:this.errorBuilder(Ud.InvalidEscapeSequence),invalidCodePoint:this.errorBuilder(Ud.InvalidCodePoint)}),this.errorHandlers_readStringContents_string=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:(Zd,Tf,Bf)=>{this.recordStrictModeErrors(Ud.StrictNumericEscape,m_(Zd,Tf,Bf))},unterminated:(Zd,Tf,Bf)=>{throw this.raise(Ud.UnterminatedString,m_(Zd-1,Tf,Bf))}}),this.errorHandlers_readStringContents_template=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:this.errorBuilder(Ud.StrictNumericEscape),unterminated:(Zd,Tf,Bf)=>{throw this.raise(Ud.UnterminatedTemplate,m_(Zd,Tf,Bf))}}),this.state=new og,this.state.init(Jd),this.input=zd,this.length=zd.length,this.comments=[],this.isLookahead=!1}pushToken(Jd){this.tokens.length=this.state.tokensLength,this.tokens.push(Jd),++this.state.tokensLength}next(){this.checkKeywordEscapes(),this.options.tokens&&this.pushToken(new qh(this.state)),this.state.lastTokEndLoc=this.state.endLoc,this.state.lastTokStartLoc=this.state.startLoc,this.nextToken()}eat(Jd){return this.match(Jd)?(this.next(),!0):!1}match(Jd){return this.state.type===Jd}createLookaheadState(Jd){return{pos:Jd.pos,value:null,type:Jd.type,start:Jd.start,end:Jd.end,context:[this.curContext()],inType:Jd.inType,startLoc:Jd.startLoc,lastTokEndLoc:Jd.lastTokEndLoc,curLine:Jd.curLine,lineStart:Jd.lineStart,curPosition:Jd.curPosition}}lookahead(){let Jd=this.state;this.state=this.createLookaheadState(Jd),this.isLookahead=!0,this.nextToken(),this.isLookahead=!1;let zd=this.state;return this.state=Jd,zd}nextTokenStart(){return this.nextTokenStartSince(this.state.pos)}nextTokenStartSince(Jd){return Lm.lastIndex=Jd,Lm.test(this.input)?Lm.lastIndex:Jd}lookaheadCharCode(){return this.input.charCodeAt(this.nextTokenStart())}nextTokenInLineStart(){return this.nextTokenInLineStartSince(this.state.pos)}nextTokenInLineStartSince(Jd){return zm.lastIndex=Jd,zm.test(this.input)?zm.lastIndex:Jd}lookaheadInLineCharCode(){return this.input.charCodeAt(this.nextTokenInLineStart())}codePointAtPos(Jd){let zd=this.input.charCodeAt(Jd);if((zd&64512)===55296&&++Jdthis.raise(zd,Zd)),this.state.strictErrors.clear())}curContext(){return this.state.context[this.state.context.length-1]}nextToken(){if(this.skipSpace(),this.state.start=this.state.pos,this.isLookahead||(this.state.startLoc=this.state.curPosition()),this.state.pos>=this.length){this.finishToken(139);return}this.getTokenFromCode(this.codePointAtPos(this.state.pos))}skipBlockComment(Jd){let zd;this.isLookahead||(zd=this.state.curPosition());let Zd=this.state.pos,Tf=this.input.indexOf(Jd,Zd+2);if(Tf===-1)throw this.raise(Ud.UnterminatedComment,this.state.curPosition());for(this.state.pos=Tf+Jd.length,mm.lastIndex=Zd+2;mm.test(this.input)&&mm.lastIndex<=Tf;)++this.state.curLine,this.state.lineStart=mm.lastIndex;if(this.isLookahead)return;let Bf={type:"CommentBlock",value:this.input.slice(Zd+2,Tf),start:Zd,end:Tf+Jd.length,loc:new sd(zd,this.state.curPosition())};return this.options.tokens&&this.pushToken(Bf),Bf}skipLineComment(Jd){let zd=this.state.pos,Zd;this.isLookahead||(Zd=this.state.curPosition());let Tf=this.input.charCodeAt(this.state.pos+=Jd);if(this.state.posJd)){let Bf=this.skipLineComment(3);Bf!==void 0&&(this.addComment(Bf),this.options.attachComment&&zd.push(Bf))}else break e}else if(Zd===60&&!this.inModule&&this.options.annexB){let Tf=this.state.pos;if(this.input.charCodeAt(Tf+1)===33&&this.input.charCodeAt(Tf+2)===45&&this.input.charCodeAt(Tf+3)===45){let Bf=this.skipLineComment(4);Bf!==void 0&&(this.addComment(Bf),this.options.attachComment&&zd.push(Bf))}else break e}else break e}}if(zd.length>0){let Zd=this.state.pos,Tf={start:Jd,end:Zd,comments:zd,leadingNode:null,trailingNode:null,containingNode:null};this.state.commentStack.push(Tf)}}finishToken(Jd,zd){this.state.end=this.state.pos,this.state.endLoc=this.state.curPosition();let Zd=this.state.type;this.state.type=Jd,this.state.value=zd,this.isLookahead||this.updateContext(Zd)}replaceToken(Jd){this.state.type=Jd,this.updateContext()}readToken_numberSign(){if(this.state.pos===0&&this.readToken_interpreter())return;let Jd=this.state.pos+1,zd=this.codePointAtPos(Jd);if(zd>=48&&zd<=57)throw this.raise(Ud.UnexpectedDigitAfterHash,this.state.curPosition());if(zd===123||zd===91&&this.hasPlugin("recordAndTuple")){if(this.expectPlugin("recordAndTuple"),this.getPluginOption("recordAndTuple","syntaxType")==="bar")throw this.raise(zd===123?Ud.RecordExpressionHashIncorrectStartSyntaxType:Ud.TupleExpressionHashIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,zd===123?this.finishToken(7):this.finishToken(1)}else $m(zd)?(++this.state.pos,this.finishToken(138,this.readWord1(zd))):zd===92?(++this.state.pos,this.finishToken(138,this.readWord1())):this.finishOp(27,1)}readToken_dot(){let Jd=this.input.charCodeAt(this.state.pos+1);if(Jd>=48&&Jd<=57){this.readNumber(!0);return}Jd===46&&this.input.charCodeAt(this.state.pos+2)===46?(this.state.pos+=3,this.finishToken(21)):(++this.state.pos,this.finishToken(16))}readToken_slash(){this.input.charCodeAt(this.state.pos+1)===61?this.finishOp(31,2):this.finishOp(56,1)}readToken_interpreter(){if(this.state.pos!==0||this.length<2)return!1;let Jd=this.input.charCodeAt(this.state.pos+1);if(Jd!==33)return!1;let zd=this.state.pos;for(this.state.pos+=1;!jm(Jd)&&++this.state.pos=48&&zd<=57)?(this.state.pos+=2,this.finishToken(18)):(++this.state.pos,this.finishToken(17))}getTokenFromCode(Jd){switch(Jd){case 46:this.readToken_dot();return;case 40:++this.state.pos,this.finishToken(10);return;case 41:++this.state.pos,this.finishToken(11);return;case 59:++this.state.pos,this.finishToken(13);return;case 44:++this.state.pos,this.finishToken(12);return;case 91:if(this.hasPlugin("recordAndTuple")&&this.input.charCodeAt(this.state.pos+1)===124){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar")throw this.raise(Ud.TupleExpressionBarIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(2)}else++this.state.pos,this.finishToken(0);return;case 93:++this.state.pos,this.finishToken(3);return;case 123:if(this.hasPlugin("recordAndTuple")&&this.input.charCodeAt(this.state.pos+1)===124){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar")throw this.raise(Ud.RecordExpressionBarIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(6)}else++this.state.pos,this.finishToken(5);return;case 125:++this.state.pos,this.finishToken(8);return;case 58:this.hasPlugin("functionBind")&&this.input.charCodeAt(this.state.pos+1)===58?this.finishOp(15,2):(++this.state.pos,this.finishToken(14));return;case 63:this.readToken_question();return;case 96:this.readTemplateToken();return;case 48:{let zd=this.input.charCodeAt(this.state.pos+1);if(zd===120||zd===88){this.readRadixNumber(16);return}if(zd===111||zd===79){this.readRadixNumber(8);return}if(zd===98||zd===66){this.readRadixNumber(2);return}}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:this.readNumber(!1);return;case 34:case 39:this.readString(Jd);return;case 47:this.readToken_slash();return;case 37:case 42:this.readToken_mult_modulo(Jd);return;case 124:case 38:this.readToken_pipe_amp(Jd);return;case 94:this.readToken_caret();return;case 43:case 45:this.readToken_plus_min(Jd);return;case 60:this.readToken_lt();return;case 62:this.readToken_gt();return;case 61:case 33:this.readToken_eq_excl(Jd);return;case 126:this.finishOp(36,1);return;case 64:this.readToken_atSign();return;case 35:this.readToken_numberSign();return;case 92:this.readWord();return;default:if($m(Jd)){this.readWord(Jd);return}}throw this.raise(Ud.InvalidOrUnexpectedToken,this.state.curPosition(),{unexpected:String.fromCodePoint(Jd)})}finishOp(Jd,zd){let Zd=this.input.slice(this.state.pos,this.state.pos+zd);this.state.pos+=zd,this.finishToken(Jd,Zd)}readRegexp(){let Jd=this.state.startLoc,zd=this.state.start+1,Zd,Tf,{pos:Bf}=this.state;for(;;++Bf){if(Bf>=this.length)throw this.raise(Ud.UnterminatedRegExp,pd(Jd,1));let Gm=this.input.charCodeAt(Bf);if(jm(Gm))throw this.raise(Ud.UnterminatedRegExp,pd(Jd,1));if(Zd)Zd=!1;else{if(Gm===91)Tf=!0;else if(Gm===93&&Tf)Tf=!1;else if(Gm===47&&!Tf)break;Zd=Gm===92}}let Ph=this.input.slice(zd,Bf);++Bf;let hm="",Im=()=>pd(Jd,Bf+2-zd);for(;Bf=2&&this.input.charCodeAt(zd)===48;if(Gm){let Xg=this.input.slice(zd,this.state.pos);if(this.recordStrictModeErrors(Ud.StrictOctalLiteral,Zd),!this.state.strict){let Zg=Xg.indexOf("_");Zg>0&&this.raise(Ud.ZeroDigitNumericSeparator,pd(Zd,Zg))}Im=Gm&&!/[89]/.test(Xg)}let Um=this.input.charCodeAt(this.state.pos);if(Um===46&&!Im&&(++this.state.pos,this.readInt(10),Tf=!0,Um=this.input.charCodeAt(this.state.pos)),(Um===69||Um===101)&&!Im&&(Um=this.input.charCodeAt(++this.state.pos),(Um===43||Um===45)&&++this.state.pos,this.readInt(10)===null&&this.raise(Ud.InvalidOrMissingExponent,Zd),Tf=!0,hm=!0,Um=this.input.charCodeAt(this.state.pos)),Um===110&&((Tf||Gm)&&this.raise(Ud.InvalidBigIntLiteral,Zd),++this.state.pos,Bf=!0),Um===109&&(this.expectPlugin("decimal",this.state.curPosition()),(hm||Gm)&&this.raise(Ud.InvalidDecimal,Zd),++this.state.pos,Ph=!0),$m(this.codePointAtPos(this.state.pos)))throw this.raise(Ud.NumberIdentifier,this.state.curPosition());let Sg=this.input.slice(zd,this.state.pos).replace(/[_mn]/g,"");if(Bf){this.finishToken(135,Sg);return}if(Ph){this.finishToken(136,Sg);return}let Bg=Im?parseInt(Sg,8):parseFloat(Sg);this.finishToken(134,Bg)}readCodePoint(Jd){let{code:zd,pos:Zd}=q_(this.input,this.state.pos,this.state.lineStart,this.state.curLine,Jd,this.errorHandlers_readCodePoint);return this.state.pos=Zd,zd}readString(Jd){let{str:zd,pos:Zd,curLine:Tf,lineStart:Bf}=Yg(Jd===34?"double":"single",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_string);this.state.pos=Zd+1,this.state.lineStart=Bf,this.state.curLine=Tf,this.finishToken(133,zd)}readTemplateContinuation(){this.match(8)||this.unexpected(null,8),this.state.pos--,this.readTemplateToken()}readTemplateToken(){let Jd=this.input[this.state.pos],{str:zd,firstInvalidLoc:Zd,pos:Tf,curLine:Bf,lineStart:Ph}=Yg("template",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_template);this.state.pos=Tf+1,this.state.lineStart=Ph,this.state.curLine=Bf,Zd&&(this.state.firstInvalidTemplateEscapePos=new rd(Zd.curLine,Zd.pos-Zd.lineStart,Zd.pos)),this.input.codePointAt(Tf)===96?this.finishToken(24,Zd?null:Jd+zd+"`"):(this.state.pos++,this.finishToken(25,Zd?null:Jd+zd+"${"))}recordStrictModeErrors(Jd,zd){let Zd=zd.index;this.state.strict&&!this.state.strictErrors.has(Zd)?this.raise(Jd,zd):this.state.strictErrors.set(Zd,[Jd,zd])}readWord1(Jd){this.state.containsEsc=!1;let zd="",Zd=this.state.pos,Tf=this.state.pos;for(Jd!==void 0&&(this.state.pos+=Jd<=65535?1:2);this.state.pos=0;hm--){let Im=Ph[hm];if(Im.loc.index===Bf)return Ph[hm]=Jd(Tf,Zd);if(Im.loc.indexthis.hasPlugin(zd)))throw this.raise(Ud.MissingOneOfPlugins,this.state.startLoc,{missingPlugin:Jd})}errorBuilder(Jd){return(zd,Zd,Tf)=>{this.raise(Jd,m_(zd,Zd,Tf))}}},dg=class{constructor(){this.privateNames=new Set,this.loneAccessors=new Map,this.undefinedPrivateNames=new Map}},Ig=class{constructor(Jd){this.parser=void 0,this.stack=[],this.undefinedPrivateNames=new Map,this.parser=Jd}current(){return this.stack[this.stack.length-1]}enter(){this.stack.push(new dg)}exit(){let Jd=this.stack.pop(),zd=this.current();for(let[Zd,Tf]of Array.from(Jd.undefinedPrivateNames))zd?zd.undefinedPrivateNames.has(Zd)||zd.undefinedPrivateNames.set(Zd,Tf):this.parser.raise(Ud.InvalidPrivateFieldResolution,Tf,{identifierName:Zd})}declarePrivateName(Jd,zd,Zd){let{privateNames:Tf,loneAccessors:Bf,undefinedPrivateNames:Ph}=this.current(),hm=Tf.has(Jd);if(zd&3){let Im=hm&&Bf.get(Jd);if(Im){let Gm=Im&4,Um=zd&4,Sg=Im&3,Bg=zd&3;hm=Sg===Bg||Gm!==Um,hm||Bf.delete(Jd)}else hm||Bf.set(Jd,zd)}hm&&this.parser.raise(Ud.PrivateNameRedeclaration,Zd,{identifierName:Jd}),Tf.add(Jd),Ph.delete(Jd)}usePrivateName(Jd,zd){let Zd;for(Zd of this.stack)if(Zd.privateNames.has(Jd))return;Zd?Zd.undefinedPrivateNames.set(Jd,zd):this.parser.raise(Ud.InvalidPrivateFieldResolution,zd,{identifierName:Jd})}},sg=class{constructor(Jd=0){this.type=Jd}canBeArrowParameterDeclaration(){return this.type===2||this.type===1}isCertainlyParameterDeclaration(){return this.type===3}},Fg=class extends sg{constructor(Jd){super(Jd),this.declarationErrors=new Map}recordDeclarationError(Jd,zd){let Zd=zd.index;this.declarationErrors.set(Zd,[Jd,zd])}clearDeclarationError(Jd){this.declarationErrors.delete(Jd)}iterateErrors(Jd){this.declarationErrors.forEach(Jd)}},b_=class{constructor(Jd){this.parser=void 0,this.stack=[new sg],this.parser=Jd}enter(Jd){this.stack.push(Jd)}exit(){this.stack.pop()}recordParameterInitializerError(Jd,zd){let Zd=zd.loc.start,{stack:Tf}=this,Bf=Tf.length-1,Ph=Tf[Bf];for(;!Ph.isCertainlyParameterDeclaration();){if(Ph.canBeArrowParameterDeclaration())Ph.recordDeclarationError(Jd,Zd);else return;Ph=Tf[--Bf]}this.parser.raise(Jd,Zd)}recordArrowParameterBindingError(Jd,zd){let{stack:Zd}=this,Tf=Zd[Zd.length-1],Bf=zd.loc.start;if(Tf.isCertainlyParameterDeclaration())this.parser.raise(Jd,Bf);else if(Tf.canBeArrowParameterDeclaration())Tf.recordDeclarationError(Jd,Bf);else return}recordAsyncArrowParametersError(Jd){let{stack:zd}=this,Zd=zd.length-1,Tf=zd[Zd];for(;Tf.canBeArrowParameterDeclaration();)Tf.type===2&&Tf.recordDeclarationError(Ud.AwaitBindingIdentifier,Jd),Tf=zd[--Zd]}validateAsPattern(){let{stack:Jd}=this,zd=Jd[Jd.length-1];zd.canBeArrowParameterDeclaration()&&zd.iterateErrors(([Zd,Tf])=>{this.parser.raise(Zd,Tf);let Bf=Jd.length-2,Ph=Jd[Bf];for(;Ph.canBeArrowParameterDeclaration();)Ph.clearDeclarationError(Tf.index),Ph=Jd[--Bf]})}};function W_(){return new sg(3)}function sb(){return new Fg(1)}function jb(){return new Fg(2)}function uy(){return new sg}var l_=class{constructor(){this.stacks=[]}enter(Jd){this.stacks.push(Jd)}exit(){this.stacks.pop()}currentFlags(){return this.stacks[this.stacks.length-1]}get hasAwait(){return(this.currentFlags()&2)>0}get hasYield(){return(this.currentFlags()&1)>0}get hasReturn(){return(this.currentFlags()&4)>0}get hasIn(){return(this.currentFlags()&8)>0}};function Ub(Jd,zd){return(Jd?2:0)|(zd?1:0)}var Y_=class extends Pm{addExtra(Jd,zd,Zd,Tf=!0){if(!Jd)return;let Bf=Jd.extra=Jd.extra||{};Tf?Bf[zd]=Zd:Object.defineProperty(Bf,zd,{enumerable:Tf,value:Zd})}isContextual(Jd){return this.state.type===Jd&&!this.state.containsEsc}isUnparsedContextual(Jd,zd){let Zd=Jd+zd.length;if(this.input.slice(Jd,Zd)===zd){let Tf=this.input.charCodeAt(Zd);return!(Km(Tf)||(Tf&64512)===55296)}return!1}isLookaheadContextual(Jd){let zd=this.nextTokenStart();return this.isUnparsedContextual(zd,Jd)}eatContextual(Jd){return this.isContextual(Jd)?(this.next(),!0):!1}expectContextual(Jd,zd){if(!this.eatContextual(Jd)){if(zd!=null)throw this.raise(zd,this.state.startLoc);this.unexpected(null,Jd)}}canInsertSemicolon(){return this.match(139)||this.match(8)||this.hasPrecedingLineBreak()}hasPrecedingLineBreak(){return im.test(this.input.slice(this.state.lastTokEndLoc.index,this.state.start))}hasFollowingLineBreak(){return Vm.lastIndex=this.state.end,Vm.test(this.input)}isLineTerminator(){return this.eat(13)||this.canInsertSemicolon()}semicolon(Jd=!0){(Jd?this.isLineTerminator():this.eat(13))||this.raise(Ud.MissingSemicolon,this.state.lastTokEndLoc)}expect(Jd,zd){this.eat(Jd)||this.unexpected(zd,Jd)}tryParse(Jd,zd=this.state.clone()){let Zd={node:null};try{let Tf=Jd((Bf=null)=>{throw Zd.node=Bf,Zd});if(this.state.errors.length>zd.errors.length){let Bf=this.state;return this.state=zd,this.state.tokensLength=Bf.tokensLength,{node:Tf,error:Bf.errors[zd.errors.length],thrown:!1,aborted:!1,failState:Bf}}return{node:Tf,error:null,thrown:!1,aborted:!1,failState:null}}catch(Tf){let Bf=this.state;if(this.state=zd,Tf instanceof SyntaxError)return{node:null,error:Tf,thrown:!0,aborted:!1,failState:Bf};if(Tf===Zd)return{node:Zd.node,error:null,thrown:!1,aborted:!0,failState:Bf};throw Tf}}checkExpressionErrors(Jd,zd){if(!Jd)return!1;let{shorthandAssignLoc:Zd,doubleProtoLoc:Tf,privateKeyLoc:Bf,optionalParametersLoc:Ph}=Jd,hm=!!Zd||!!Tf||!!Ph||!!Bf;if(!zd)return hm;Zd!=null&&this.raise(Ud.InvalidCoverInitializedName,Zd),Tf!=null&&this.raise(Ud.DuplicateProto,Tf),Bf!=null&&this.raise(Ud.UnexpectedPrivateField,Bf),Ph!=null&&this.unexpected(Ph)}isLiteralPropertyName(){return Jf(this.state.type)}isPrivateName(Jd){return Jd.type==="PrivateName"}getPrivateNameSV(Jd){return Jd.id.name}hasPropertyAsPrivateName(Jd){return(Jd.type==="MemberExpression"||Jd.type==="OptionalMemberExpression")&&this.isPrivateName(Jd.property)}isObjectProperty(Jd){return Jd.type==="ObjectProperty"}isObjectMethod(Jd){return Jd.type==="ObjectMethod"}initializeScopes(Jd=this.options.sourceType==="module"){let zd=this.state.labels;this.state.labels=[];let Zd=this.exportedIdentifiers;this.exportedIdentifiers=new Set;let Tf=this.inModule;this.inModule=Jd;let Bf=this.scope,Ph=this.getScopeHandler();this.scope=new Ph(this,Jd);let hm=this.prodParam;this.prodParam=new l_;let Im=this.classScope;this.classScope=new Ig(this);let Gm=this.expressionScope;return this.expressionScope=new b_(this),()=>{this.state.labels=zd,this.exportedIdentifiers=Zd,this.inModule=Tf,this.scope=Bf,this.prodParam=hm,this.classScope=Im,this.expressionScope=Gm}}enterInitialScopes(){let Jd=0;this.inModule&&(Jd|=2),this.scope.enter(1),this.prodParam.enter(Jd)}checkDestructuringPrivate(Jd){let{privateKeyLoc:zd}=Jd;zd!==null&&this.expectPlugin("destructuringPrivate",zd)}},Tb=class{constructor(){this.shorthandAssignLoc=null,this.doubleProtoLoc=null,this.privateKeyLoc=null,this.optionalParametersLoc=null}},pb=class{constructor(Jd,zd,Zd){this.type="",this.start=zd,this.end=0,this.loc=new sd(Zd),Jd!=null&&Jd.options.ranges&&(this.range=[zd,0]),Jd!=null&&Jd.filename&&(this.loc.filename=Jd.filename)}},Sy=pb.prototype;Sy.__clone=function(){let Jd=new pb(void 0,this.start,this.loc.start),zd=Object.keys(this);for(let Zd=0,Tf=zd.length;Zd`Cannot overwrite reserved type ${Jd}.`,DeclareClassElement:"The `declare` modifier can only appear on class fields.",DeclareClassFieldInitializer:"Initializers are not allowed in fields with the `declare` modifier.",DuplicateDeclareModuleExports:"Duplicate `declare module.exports` statement.",EnumBooleanMemberNotInitialized:({memberName:Jd,enumName:zd})=>`Boolean enum members need to be initialized. Use either \`${Jd} = true,\` or \`${Jd} = false,\` in enum \`${zd}\`.`,EnumDuplicateMemberName:({memberName:Jd,enumName:zd})=>`Enum member names need to be unique, but the name \`${Jd}\` has already been used before in enum \`${zd}\`.`,EnumInconsistentMemberValues:({enumName:Jd})=>`Enum \`${Jd}\` has inconsistent member initializers. Either use no initializers, or consistently use literals (either booleans, numbers, or strings) for all member initializers.`,EnumInvalidExplicitType:({invalidEnumType:Jd,enumName:zd})=>`Enum type \`${Jd}\` is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${zd}\`.`,EnumInvalidExplicitTypeUnknownSupplied:({enumName:Jd})=>`Supplied enum type is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${Jd}\`.`,EnumInvalidMemberInitializerPrimaryType:({enumName:Jd,memberName:zd,explicitType:Zd})=>`Enum \`${Jd}\` has type \`${Zd}\`, so the initializer of \`${zd}\` needs to be a ${Zd} literal.`,EnumInvalidMemberInitializerSymbolType:({enumName:Jd,memberName:zd})=>`Symbol enum members cannot be initialized. Use \`${zd},\` in enum \`${Jd}\`.`,EnumInvalidMemberInitializerUnknownType:({enumName:Jd,memberName:zd})=>`The enum member initializer for \`${zd}\` needs to be a literal (either a boolean, number, or string) in enum \`${Jd}\`.`,EnumInvalidMemberName:({enumName:Jd,memberName:zd,suggestion:Zd})=>`Enum member names cannot start with lowercase 'a' through 'z'. Instead of using \`${zd}\`, consider using \`${Zd}\`, in enum \`${Jd}\`.`,EnumNumberMemberNotInitialized:({enumName:Jd,memberName:zd})=>`Number enum members need to be initialized, e.g. \`${zd} = 1\` in enum \`${Jd}\`.`,EnumStringMemberInconsistentlyInitialized:({enumName:Jd})=>`String enum members need to consistently either all use initializers, or use no initializers, in enum \`${Jd}\`.`,GetterMayNotHaveThisParam:"A getter cannot have a `this` parameter.",ImportReflectionHasImportType:"An `import module` declaration can not use `type` or `typeof` keyword.",ImportTypeShorthandOnlyInPureImport:"The `type` and `typeof` keywords on named imports can only be used on regular `import` statements. It cannot be used with `import type` or `import typeof` statements.",InexactInsideExact:"Explicit inexact syntax cannot appear inside an explicit exact object type.",InexactInsideNonObject:"Explicit inexact syntax cannot appear in class or interface definitions.",InexactVariance:"Explicit inexact syntax cannot have variance.",InvalidNonTypeImportInDeclareModule:"Imports within a `declare module` body must always be `import type` or `import typeof`.",MissingTypeParamDefault:"Type parameter declaration needs a default, since a preceding type parameter declaration has a default.",NestedDeclareModule:"`declare module` cannot be used inside another `declare module`.",NestedFlowComment:"Cannot have a flow comment inside another flow comment.",PatternIsOptional:Object.assign({message:"A binding pattern parameter cannot be optional in an implementation signature."},{reasonCode:"OptionalBindingPattern"}),SetterMayNotHaveThisParam:"A setter cannot have a `this` parameter.",SpreadVariance:"Spread properties cannot have variance.",ThisParamAnnotationRequired:"A type annotation is required for the `this` parameter.",ThisParamBannedInConstructor:"Constructors cannot have a `this` parameter; constructors don't bind `this` like other functions.",ThisParamMayNotBeOptional:"The `this` parameter cannot be optional.",ThisParamMustBeFirst:"The `this` parameter must be the first function parameter.",ThisParamNoDefault:"The `this` parameter may not have a default value.",TypeBeforeInitializer:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeCastInPattern:"The type cast expression is expected to be wrapped with parenthesis.",UnexpectedExplicitInexactInObject:"Explicit inexact syntax must appear at the end of an inexact object.",UnexpectedReservedType:({reservedType:Jd})=>`Unexpected reserved type ${Jd}.`,UnexpectedReservedUnderscore:"`_` is only allowed as a type argument to call or new.",UnexpectedSpaceBetweenModuloChecks:"Spaces between `%` and `checks` are not allowed here.",UnexpectedSpreadType:"Spread operator cannot appear in class or interface definitions.",UnexpectedSubtractionOperand:'Unexpected token, expected "number" or "bigint".',UnexpectedTokenAfterTypeParameter:"Expected an arrow function after this type parameter declaration.",UnexpectedTypeParameterBeforeAsyncArrowFunction:"Type parameters must come after the async keyword, e.g. instead of ` async () => {}`, use `async () => {}`.",UnsupportedDeclareExportKind:({unsupportedExportKind:Jd,suggestion:zd})=>`\`declare export ${Jd}\` is not supported. Use \`${zd}\` instead.`,UnsupportedStatementInDeclareModule:"Only declares and type imports are allowed inside declare module.",UnterminatedFlowComment:"Unterminated flow-comment."});function B0(Jd){return Jd.type==="DeclareExportAllDeclaration"||Jd.type==="DeclareExportDeclaration"&&(!Jd.declaration||Jd.declaration.type!=="TypeAlias"&&Jd.declaration.type!=="InterfaceDeclaration")}function x0(Jd){return Jd.importKind==="type"||Jd.importKind==="typeof"}var sE={const:"declare export var",let:"declare export var",type:"export type",interface:"export interface"};function LE(Jd,zd){let Zd=[],Tf=[];for(let Bf=0;Bfclass extends Jd{constructor(...zd){super(...zd),this.flowPragma=void 0}getScopeHandler(){return $_}shouldParseTypes(){return this.getPluginOption("flow","all")||this.flowPragma==="flow"}shouldParseEnums(){return!!this.getPluginOption("flow","enums")}finishToken(zd,Zd){zd!==133&&zd!==13&&zd!==28&&this.flowPragma===void 0&&(this.flowPragma=null),super.finishToken(zd,Zd)}addComment(zd){if(this.flowPragma===void 0){let Zd=BE.exec(zd.value);if(Zd)if(Zd[1]==="flow")this.flowPragma="flow";else if(Zd[1]==="noflow")this.flowPragma="noflow";else throw new Error("Unexpected flow pragma")}super.addComment(zd)}flowParseTypeInitialiser(zd){let Zd=this.state.inType;this.state.inType=!0,this.expect(zd||14);let Tf=this.flowParseType();return this.state.inType=Zd,Tf}flowParsePredicate(){let zd=this.startNode(),Zd=this.state.startLoc;return this.next(),this.expectContextual(110),this.state.lastTokStartLoc.index>Zd.index+1&&this.raise(r_.UnexpectedSpaceBetweenModuloChecks,Zd),this.eat(10)?(zd.value=super.parseExpression(),this.expect(11),this.finishNode(zd,"DeclaredPredicate")):this.finishNode(zd,"InferredPredicate")}flowParseTypeAndPredicateInitialiser(){let zd=this.state.inType;this.state.inType=!0,this.expect(14);let Zd=null,Tf=null;return this.match(54)?(this.state.inType=zd,Tf=this.flowParsePredicate()):(Zd=this.flowParseType(),this.state.inType=zd,this.match(54)&&(Tf=this.flowParsePredicate())),[Zd,Tf]}flowParseDeclareClass(zd){return this.next(),this.flowParseInterfaceish(zd,!0),this.finishNode(zd,"DeclareClass")}flowParseDeclareFunction(zd){this.next();let Zd=zd.id=this.parseIdentifier(),Tf=this.startNode(),Bf=this.startNode();this.match(47)?Tf.typeParameters=this.flowParseTypeParameterDeclaration():Tf.typeParameters=null,this.expect(10);let Ph=this.flowParseFunctionTypeParams();return Tf.params=Ph.params,Tf.rest=Ph.rest,Tf.this=Ph._this,this.expect(11),[Tf.returnType,zd.predicate]=this.flowParseTypeAndPredicateInitialiser(),Bf.typeAnnotation=this.finishNode(Tf,"FunctionTypeAnnotation"),Zd.typeAnnotation=this.finishNode(Bf,"TypeAnnotation"),this.resetEndLocation(Zd),this.semicolon(),this.scope.declareName(zd.id.name,2048,zd.id.loc.start),this.finishNode(zd,"DeclareFunction")}flowParseDeclare(zd,Zd){if(this.match(80))return this.flowParseDeclareClass(zd);if(this.match(68))return this.flowParseDeclareFunction(zd);if(this.match(74))return this.flowParseDeclareVariable(zd);if(this.eatContextual(127))return this.match(16)?this.flowParseDeclareModuleExports(zd):(Zd&&this.raise(r_.NestedDeclareModule,this.state.lastTokStartLoc),this.flowParseDeclareModule(zd));if(this.isContextual(130))return this.flowParseDeclareTypeAlias(zd);if(this.isContextual(131))return this.flowParseDeclareOpaqueType(zd);if(this.isContextual(129))return this.flowParseDeclareInterface(zd);if(this.match(82))return this.flowParseDeclareExportDeclaration(zd,Zd);this.unexpected()}flowParseDeclareVariable(zd){return this.next(),zd.id=this.flowParseTypeAnnotatableIdentifier(!0),this.scope.declareName(zd.id.name,5,zd.id.loc.start),this.semicolon(),this.finishNode(zd,"DeclareVariable")}flowParseDeclareModule(zd){this.scope.enter(0),this.match(133)?zd.id=super.parseExprAtom():zd.id=this.parseIdentifier();let Zd=zd.body=this.startNode(),Tf=Zd.body=[];for(this.expect(5);!this.match(8);){let hm=this.startNode();this.match(83)?(this.next(),!this.isContextual(130)&&!this.match(87)&&this.raise(r_.InvalidNonTypeImportInDeclareModule,this.state.lastTokStartLoc),super.parseImport(hm)):(this.expectContextual(125,r_.UnsupportedStatementInDeclareModule),hm=this.flowParseDeclare(hm,!0)),Tf.push(hm)}this.scope.exit(),this.expect(8),this.finishNode(Zd,"BlockStatement");let Bf=null,Ph=!1;return Tf.forEach(hm=>{B0(hm)?(Bf==="CommonJS"&&this.raise(r_.AmbiguousDeclareModuleKind,hm),Bf="ES"):hm.type==="DeclareModuleExports"&&(Ph&&this.raise(r_.DuplicateDeclareModuleExports,hm),Bf==="ES"&&this.raise(r_.AmbiguousDeclareModuleKind,hm),Bf="CommonJS",Ph=!0)}),zd.kind=Bf||"CommonJS",this.finishNode(zd,"DeclareModule")}flowParseDeclareExportDeclaration(zd,Zd){if(this.expect(82),this.eat(65))return this.match(68)||this.match(80)?zd.declaration=this.flowParseDeclare(this.startNode()):(zd.declaration=this.flowParseType(),this.semicolon()),zd.default=!0,this.finishNode(zd,"DeclareExportDeclaration");if(this.match(75)||this.isLet()||(this.isContextual(130)||this.isContextual(129))&&!Zd){let Tf=this.state.value;throw this.raise(r_.UnsupportedDeclareExportKind,this.state.startLoc,{unsupportedExportKind:Tf,suggestion:sE[Tf]})}if(this.match(74)||this.match(68)||this.match(80)||this.isContextual(131))return zd.declaration=this.flowParseDeclare(this.startNode()),zd.default=!1,this.finishNode(zd,"DeclareExportDeclaration");if(this.match(55)||this.match(5)||this.isContextual(129)||this.isContextual(130)||this.isContextual(131))return zd=this.parseExport(zd,null),zd.type==="ExportNamedDeclaration"&&(zd.type="ExportDeclaration",zd.default=!1,delete zd.exportKind),zd.type="Declare"+zd.type,zd;this.unexpected()}flowParseDeclareModuleExports(zd){return this.next(),this.expectContextual(111),zd.typeAnnotation=this.flowParseTypeAnnotation(),this.semicolon(),this.finishNode(zd,"DeclareModuleExports")}flowParseDeclareTypeAlias(zd){this.next();let Zd=this.flowParseTypeAlias(zd);return Zd.type="DeclareTypeAlias",Zd}flowParseDeclareOpaqueType(zd){this.next();let Zd=this.flowParseOpaqueType(zd,!0);return Zd.type="DeclareOpaqueType",Zd}flowParseDeclareInterface(zd){return this.next(),this.flowParseInterfaceish(zd,!1),this.finishNode(zd,"DeclareInterface")}flowParseInterfaceish(zd,Zd){if(zd.id=this.flowParseRestrictedIdentifier(!Zd,!0),this.scope.declareName(zd.id.name,Zd?17:8201,zd.id.loc.start),this.match(47)?zd.typeParameters=this.flowParseTypeParameterDeclaration():zd.typeParameters=null,zd.extends=[],this.eat(81))do zd.extends.push(this.flowParseInterfaceExtends());while(!Zd&&this.eat(12));if(Zd){if(zd.implements=[],zd.mixins=[],this.eatContextual(117))do zd.mixins.push(this.flowParseInterfaceExtends());while(this.eat(12));if(this.eatContextual(113))do zd.implements.push(this.flowParseInterfaceExtends());while(this.eat(12))}zd.body=this.flowParseObjectType({allowStatic:Zd,allowExact:!1,allowSpread:!1,allowProto:Zd,allowInexact:!1})}flowParseInterfaceExtends(){let zd=this.startNode();return zd.id=this.flowParseQualifiedTypeIdentifier(),this.match(47)?zd.typeParameters=this.flowParseTypeParameterInstantiation():zd.typeParameters=null,this.finishNode(zd,"InterfaceExtends")}flowParseInterface(zd){return this.flowParseInterfaceish(zd,!1),this.finishNode(zd,"InterfaceDeclaration")}checkNotUnderscore(zd){zd==="_"&&this.raise(r_.UnexpectedReservedUnderscore,this.state.startLoc)}checkReservedType(zd,Zd,Tf){L0.has(zd)&&this.raise(Tf?r_.AssignReservedType:r_.UnexpectedReservedType,Zd,{reservedType:zd})}flowParseRestrictedIdentifier(zd,Zd){return this.checkReservedType(this.state.value,this.state.startLoc,Zd),this.parseIdentifier(zd)}flowParseTypeAlias(zd){return zd.id=this.flowParseRestrictedIdentifier(!1,!0),this.scope.declareName(zd.id.name,8201,zd.id.loc.start),this.match(47)?zd.typeParameters=this.flowParseTypeParameterDeclaration():zd.typeParameters=null,zd.right=this.flowParseTypeInitialiser(29),this.semicolon(),this.finishNode(zd,"TypeAlias")}flowParseOpaqueType(zd,Zd){return this.expectContextual(130),zd.id=this.flowParseRestrictedIdentifier(!0,!0),this.scope.declareName(zd.id.name,8201,zd.id.loc.start),this.match(47)?zd.typeParameters=this.flowParseTypeParameterDeclaration():zd.typeParameters=null,zd.supertype=null,this.match(14)&&(zd.supertype=this.flowParseTypeInitialiser(14)),zd.impltype=null,Zd||(zd.impltype=this.flowParseTypeInitialiser(29)),this.semicolon(),this.finishNode(zd,"OpaqueType")}flowParseTypeParameter(zd=!1){let Zd=this.state.startLoc,Tf=this.startNode(),Bf=this.flowParseVariance(),Ph=this.flowParseTypeAnnotatableIdentifier();return Tf.name=Ph.name,Tf.variance=Bf,Tf.bound=Ph.typeAnnotation,this.match(29)?(this.eat(29),Tf.default=this.flowParseType()):zd&&this.raise(r_.MissingTypeParamDefault,Zd),this.finishNode(Tf,"TypeParameter")}flowParseTypeParameterDeclaration(){let zd=this.state.inType,Zd=this.startNode();Zd.params=[],this.state.inType=!0,this.match(47)||this.match(142)?this.next():this.unexpected();let Tf=!1;do{let Bf=this.flowParseTypeParameter(Tf);Zd.params.push(Bf),Bf.default&&(Tf=!0),this.match(48)||this.expect(12)}while(!this.match(48));return this.expect(48),this.state.inType=zd,this.finishNode(Zd,"TypeParameterDeclaration")}flowParseTypeParameterInstantiation(){let zd=this.startNode(),Zd=this.state.inType;zd.params=[],this.state.inType=!0,this.expect(47);let Tf=this.state.noAnonFunctionType;for(this.state.noAnonFunctionType=!1;!this.match(48);)zd.params.push(this.flowParseType()),this.match(48)||this.expect(12);return this.state.noAnonFunctionType=Tf,this.expect(48),this.state.inType=Zd,this.finishNode(zd,"TypeParameterInstantiation")}flowParseTypeParameterInstantiationCallOrNew(){let zd=this.startNode(),Zd=this.state.inType;for(zd.params=[],this.state.inType=!0,this.expect(47);!this.match(48);)zd.params.push(this.flowParseTypeOrImplicitInstantiation()),this.match(48)||this.expect(12);return this.expect(48),this.state.inType=Zd,this.finishNode(zd,"TypeParameterInstantiation")}flowParseInterfaceType(){let zd=this.startNode();if(this.expectContextual(129),zd.extends=[],this.eat(81))do zd.extends.push(this.flowParseInterfaceExtends());while(this.eat(12));return zd.body=this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!1,allowProto:!1,allowInexact:!1}),this.finishNode(zd,"InterfaceTypeAnnotation")}flowParseObjectPropertyKey(){return this.match(134)||this.match(133)?super.parseExprAtom():this.parseIdentifier(!0)}flowParseObjectTypeIndexer(zd,Zd,Tf){return zd.static=Zd,this.lookahead().type===14?(zd.id=this.flowParseObjectPropertyKey(),zd.key=this.flowParseTypeInitialiser()):(zd.id=null,zd.key=this.flowParseType()),this.expect(3),zd.value=this.flowParseTypeInitialiser(),zd.variance=Tf,this.finishNode(zd,"ObjectTypeIndexer")}flowParseObjectTypeInternalSlot(zd,Zd){return zd.static=Zd,zd.id=this.flowParseObjectPropertyKey(),this.expect(3),this.expect(3),this.match(47)||this.match(10)?(zd.method=!0,zd.optional=!1,zd.value=this.flowParseObjectTypeMethodish(this.startNodeAt(zd.loc.start))):(zd.method=!1,this.eat(17)&&(zd.optional=!0),zd.value=this.flowParseTypeInitialiser()),this.finishNode(zd,"ObjectTypeInternalSlot")}flowParseObjectTypeMethodish(zd){for(zd.params=[],zd.rest=null,zd.typeParameters=null,zd.this=null,this.match(47)&&(zd.typeParameters=this.flowParseTypeParameterDeclaration()),this.expect(10),this.match(78)&&(zd.this=this.flowParseFunctionTypeParam(!0),zd.this.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)zd.params.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(zd.rest=this.flowParseFunctionTypeParam(!1)),this.expect(11),zd.returnType=this.flowParseTypeInitialiser(),this.finishNode(zd,"FunctionTypeAnnotation")}flowParseObjectTypeCallProperty(zd,Zd){let Tf=this.startNode();return zd.static=Zd,zd.value=this.flowParseObjectTypeMethodish(Tf),this.finishNode(zd,"ObjectTypeCallProperty")}flowParseObjectType({allowStatic:zd,allowExact:Zd,allowSpread:Tf,allowProto:Bf,allowInexact:Ph}){let hm=this.state.inType;this.state.inType=!0;let Im=this.startNode();Im.callProperties=[],Im.properties=[],Im.indexers=[],Im.internalSlots=[];let Gm,Um,Sg=!1;for(Zd&&this.match(6)?(this.expect(6),Gm=9,Um=!0):(this.expect(5),Gm=8,Um=!1),Im.exact=Um;!this.match(Gm);){let Xg=!1,Zg=null,g_=null,tb=this.startNode();if(Bf&&this.isContextual(118)){let P_=this.lookahead();P_.type!==14&&P_.type!==17&&(this.next(),Zg=this.state.startLoc,zd=!1)}if(zd&&this.isContextual(106)){let P_=this.lookahead();P_.type!==14&&P_.type!==17&&(this.next(),Xg=!0)}let D_=this.flowParseVariance();if(this.eat(0))Zg!=null&&this.unexpected(Zg),this.eat(0)?(D_&&this.unexpected(D_.loc.start),Im.internalSlots.push(this.flowParseObjectTypeInternalSlot(tb,Xg))):Im.indexers.push(this.flowParseObjectTypeIndexer(tb,Xg,D_));else if(this.match(10)||this.match(47))Zg!=null&&this.unexpected(Zg),D_&&this.unexpected(D_.loc.start),Im.callProperties.push(this.flowParseObjectTypeCallProperty(tb,Xg));else{let P_="init";if(this.isContextual(99)||this.isContextual(104)){let dE=this.lookahead();Jf(dE.type)&&(P_=this.state.value,this.next())}let Cb=this.flowParseObjectTypeProperty(tb,Xg,Zg,D_,P_,Tf,Ph??!Um);Cb===null?(Sg=!0,g_=this.state.lastTokStartLoc):Im.properties.push(Cb)}this.flowObjectTypeSemicolon(),g_&&!this.match(8)&&!this.match(9)&&this.raise(r_.UnexpectedExplicitInexactInObject,g_)}this.expect(Gm),Tf&&(Im.inexact=Sg);let Bg=this.finishNode(Im,"ObjectTypeAnnotation");return this.state.inType=hm,Bg}flowParseObjectTypeProperty(zd,Zd,Tf,Bf,Ph,hm,Im){if(this.eat(21))return this.match(12)||this.match(13)||this.match(8)||this.match(9)?(hm?Im||this.raise(r_.InexactInsideExact,this.state.lastTokStartLoc):this.raise(r_.InexactInsideNonObject,this.state.lastTokStartLoc),Bf&&this.raise(r_.InexactVariance,Bf),null):(hm||this.raise(r_.UnexpectedSpreadType,this.state.lastTokStartLoc),Tf!=null&&this.unexpected(Tf),Bf&&this.raise(r_.SpreadVariance,Bf),zd.argument=this.flowParseType(),this.finishNode(zd,"ObjectTypeSpreadProperty"));{zd.key=this.flowParseObjectPropertyKey(),zd.static=Zd,zd.proto=Tf!=null,zd.kind=Ph;let Gm=!1;return this.match(47)||this.match(10)?(zd.method=!0,Tf!=null&&this.unexpected(Tf),Bf&&this.unexpected(Bf.loc.start),zd.value=this.flowParseObjectTypeMethodish(this.startNodeAt(zd.loc.start)),(Ph==="get"||Ph==="set")&&this.flowCheckGetterSetterParams(zd),!hm&&zd.key.name==="constructor"&&zd.value.this&&this.raise(r_.ThisParamBannedInConstructor,zd.value.this)):(Ph!=="init"&&this.unexpected(),zd.method=!1,this.eat(17)&&(Gm=!0),zd.value=this.flowParseTypeInitialiser(),zd.variance=Bf),zd.optional=Gm,this.finishNode(zd,"ObjectTypeProperty")}}flowCheckGetterSetterParams(zd){let Zd=zd.kind==="get"?0:1,Tf=zd.value.params.length+(zd.value.rest?1:0);zd.value.this&&this.raise(zd.kind==="get"?r_.GetterMayNotHaveThisParam:r_.SetterMayNotHaveThisParam,zd.value.this),Tf!==Zd&&this.raise(zd.kind==="get"?Ud.BadGetterArity:Ud.BadSetterArity,zd),zd.kind==="set"&&zd.value.rest&&this.raise(Ud.BadSetterRestParameter,zd)}flowObjectTypeSemicolon(){!this.eat(13)&&!this.eat(12)&&!this.match(8)&&!this.match(9)&&this.unexpected()}flowParseQualifiedTypeIdentifier(zd,Zd){zd!=null||(zd=this.state.startLoc);let Tf=Zd||this.flowParseRestrictedIdentifier(!0);for(;this.eat(16);){let Bf=this.startNodeAt(zd);Bf.qualification=Tf,Bf.id=this.flowParseRestrictedIdentifier(!0),Tf=this.finishNode(Bf,"QualifiedTypeIdentifier")}return Tf}flowParseGenericType(zd,Zd){let Tf=this.startNodeAt(zd);return Tf.typeParameters=null,Tf.id=this.flowParseQualifiedTypeIdentifier(zd,Zd),this.match(47)&&(Tf.typeParameters=this.flowParseTypeParameterInstantiation()),this.finishNode(Tf,"GenericTypeAnnotation")}flowParseTypeofType(){let zd=this.startNode();return this.expect(87),zd.argument=this.flowParsePrimaryType(),this.finishNode(zd,"TypeofTypeAnnotation")}flowParseTupleType(){let zd=this.startNode();for(zd.types=[],this.expect(0);this.state.possuper.parseFunctionBody(zd,!0,Tf));return}super.parseFunctionBody(zd,!1,Tf)}parseFunctionBodyAndFinish(zd,Zd,Tf=!1){if(this.match(14)){let Bf=this.startNode();[Bf.typeAnnotation,zd.predicate]=this.flowParseTypeAndPredicateInitialiser(),zd.returnType=Bf.typeAnnotation?this.finishNode(Bf,"TypeAnnotation"):null}return super.parseFunctionBodyAndFinish(zd,Zd,Tf)}parseStatementLike(zd){if(this.state.strict&&this.isContextual(129)){let Tf=this.lookahead();if(dm(Tf.type)){let Bf=this.startNode();return this.next(),this.flowParseInterface(Bf)}}else if(this.shouldParseEnums()&&this.isContextual(126)){let Tf=this.startNode();return this.next(),this.flowParseEnumDeclaration(Tf)}let Zd=super.parseStatementLike(zd);return this.flowPragma===void 0&&!this.isValidDirective(Zd)&&(this.flowPragma=null),Zd}parseExpressionStatement(zd,Zd,Tf){if(Zd.type==="Identifier"){if(Zd.name==="declare"){if(this.match(80)||_h(this.state.type)||this.match(68)||this.match(74)||this.match(82))return this.flowParseDeclare(zd)}else if(_h(this.state.type)){if(Zd.name==="interface")return this.flowParseInterface(zd);if(Zd.name==="type")return this.flowParseTypeAlias(zd);if(Zd.name==="opaque")return this.flowParseOpaqueType(zd,!1)}}return super.parseExpressionStatement(zd,Zd,Tf)}shouldParseExportDeclaration(){let{type:zd}=this.state;return kh(zd)||this.shouldParseEnums()&&zd===126?!this.state.containsEsc:super.shouldParseExportDeclaration()}isExportDefaultSpecifier(){let{type:zd}=this.state;return kh(zd)||this.shouldParseEnums()&&zd===126?this.state.containsEsc:super.isExportDefaultSpecifier()}parseExportDefaultExpression(){if(this.shouldParseEnums()&&this.isContextual(126)){let zd=this.startNode();return this.next(),this.flowParseEnumDeclaration(zd)}return super.parseExportDefaultExpression()}parseConditional(zd,Zd,Tf){if(!this.match(17))return zd;if(this.state.maybeInArrowParameters){let Bg=this.lookaheadCharCode();if(Bg===44||Bg===61||Bg===58||Bg===41)return this.setOptionalParametersError(Tf),zd}this.expect(17);let Bf=this.state.clone(),Ph=this.state.noArrowAt,hm=this.startNodeAt(Zd),{consequent:Im,failed:Gm}=this.tryParseConditionalConsequent(),[Um,Sg]=this.getArrowLikeExpressions(Im);if(Gm||Sg.length>0){let Bg=[...Ph];if(Sg.length>0){this.state=Bf,this.state.noArrowAt=Bg;for(let Xg=0;Xg1&&this.raise(r_.AmbiguousConditionalArrow,Bf.startLoc),Gm&&Um.length===1&&(this.state=Bf,Bg.push(Um[0].start),this.state.noArrowAt=Bg,{consequent:Im,failed:Gm}=this.tryParseConditionalConsequent())}return this.getArrowLikeExpressions(Im,!0),this.state.noArrowAt=Ph,this.expect(14),hm.test=zd,hm.consequent=Im,hm.alternate=this.forwardNoArrowParamsConversionAt(hm,()=>this.parseMaybeAssign(void 0,void 0)),this.finishNode(hm,"ConditionalExpression")}tryParseConditionalConsequent(){this.state.noArrowParamsConversionAt.push(this.state.start);let zd=this.parseMaybeAssignAllowIn(),Zd=!this.match(14);return this.state.noArrowParamsConversionAt.pop(),{consequent:zd,failed:Zd}}getArrowLikeExpressions(zd,Zd){let Tf=[zd],Bf=[];for(;Tf.length!==0;){let Ph=Tf.pop();Ph.type==="ArrowFunctionExpression"&&Ph.body.type!=="BlockStatement"?(Ph.typeParameters||!Ph.returnType?this.finishArrowValidation(Ph):Bf.push(Ph),Tf.push(Ph.body)):Ph.type==="ConditionalExpression"&&(Tf.push(Ph.consequent),Tf.push(Ph.alternate))}return Zd?(Bf.forEach(Ph=>this.finishArrowValidation(Ph)),[Bf,[]]):LE(Bf,Ph=>Ph.params.every(hm=>this.isAssignable(hm,!0)))}finishArrowValidation(zd){var Zd;this.toAssignableList(zd.params,(Zd=zd.extra)==null?void 0:Zd.trailingCommaLoc,!1),this.scope.enter(6),super.checkParams(zd,!1,!0),this.scope.exit()}forwardNoArrowParamsConversionAt(zd,Zd){let Tf;return this.state.noArrowParamsConversionAt.includes(zd.start)?(this.state.noArrowParamsConversionAt.push(this.state.start),Tf=Zd(),this.state.noArrowParamsConversionAt.pop()):Tf=Zd(),Tf}parseParenItem(zd,Zd){let Tf=super.parseParenItem(zd,Zd);if(this.eat(17)&&(Tf.optional=!0,this.resetEndLocation(zd)),this.match(14)){let Bf=this.startNodeAt(Zd);return Bf.expression=Tf,Bf.typeAnnotation=this.flowParseTypeAnnotation(),this.finishNode(Bf,"TypeCastExpression")}return Tf}assertModuleNodeAllowed(zd){zd.type==="ImportDeclaration"&&(zd.importKind==="type"||zd.importKind==="typeof")||zd.type==="ExportNamedDeclaration"&&zd.exportKind==="type"||zd.type==="ExportAllDeclaration"&&zd.exportKind==="type"||super.assertModuleNodeAllowed(zd)}parseExportDeclaration(zd){if(this.isContextual(130)){zd.exportKind="type";let Zd=this.startNode();return this.next(),this.match(5)?(zd.specifiers=this.parseExportSpecifiers(!0),super.parseExportFrom(zd),null):this.flowParseTypeAlias(Zd)}else if(this.isContextual(131)){zd.exportKind="type";let Zd=this.startNode();return this.next(),this.flowParseOpaqueType(Zd,!1)}else if(this.isContextual(129)){zd.exportKind="type";let Zd=this.startNode();return this.next(),this.flowParseInterface(Zd)}else if(this.shouldParseEnums()&&this.isContextual(126)){zd.exportKind="value";let Zd=this.startNode();return this.next(),this.flowParseEnumDeclaration(Zd)}else return super.parseExportDeclaration(zd)}eatExportStar(zd){return super.eatExportStar(zd)?!0:this.isContextual(130)&&this.lookahead().type===55?(zd.exportKind="type",this.next(),this.next(),!0):!1}maybeParseExportNamespaceSpecifier(zd){let{startLoc:Zd}=this.state,Tf=super.maybeParseExportNamespaceSpecifier(zd);return Tf&&zd.exportKind==="type"&&this.unexpected(Zd),Tf}parseClassId(zd,Zd,Tf){super.parseClassId(zd,Zd,Tf),this.match(47)&&(zd.typeParameters=this.flowParseTypeParameterDeclaration())}parseClassMember(zd,Zd,Tf){let{startLoc:Bf}=this.state;if(this.isContextual(125)){if(super.parseClassMemberFromModifier(zd,Zd))return;Zd.declare=!0}super.parseClassMember(zd,Zd,Tf),Zd.declare&&(Zd.type!=="ClassProperty"&&Zd.type!=="ClassPrivateProperty"&&Zd.type!=="PropertyDefinition"?this.raise(r_.DeclareClassElement,Bf):Zd.value&&this.raise(r_.DeclareClassFieldInitializer,Zd.value))}isIterator(zd){return zd==="iterator"||zd==="asyncIterator"}readIterator(){let zd=super.readWord1(),Zd="@@"+zd;(!this.isIterator(zd)||!this.state.inType)&&this.raise(Ud.InvalidIdentifier,this.state.curPosition(),{identifierName:Zd}),this.finishToken(132,Zd)}getTokenFromCode(zd){let Zd=this.input.charCodeAt(this.state.pos+1);zd===123&&Zd===124?this.finishOp(6,2):this.state.inType&&(zd===62||zd===60)?this.finishOp(zd===62?48:47,1):this.state.inType&&zd===63?Zd===46?this.finishOp(18,2):this.finishOp(17,1):t_(zd,Zd,this.input.charCodeAt(this.state.pos+2))?(this.state.pos+=2,this.readIterator()):super.getTokenFromCode(zd)}isAssignable(zd,Zd){return zd.type==="TypeCastExpression"?this.isAssignable(zd.expression,Zd):super.isAssignable(zd,Zd)}toAssignable(zd,Zd=!1){!Zd&&zd.type==="AssignmentExpression"&&zd.left.type==="TypeCastExpression"&&(zd.left=this.typeCastToParameter(zd.left)),super.toAssignable(zd,Zd)}toAssignableList(zd,Zd,Tf){for(let Bf=0;Bf1||!Zd)&&this.raise(r_.TypeCastInPattern,Ph.typeAnnotation)}return zd}parseArrayLike(zd,Zd,Tf,Bf){let Ph=super.parseArrayLike(zd,Zd,Tf,Bf);return Zd&&!this.state.maybeInArrowParameters&&this.toReferencedList(Ph.elements),Ph}isValidLVal(zd,Zd,Tf){return zd==="TypeCastExpression"||super.isValidLVal(zd,Zd,Tf)}parseClassProperty(zd){return this.match(14)&&(zd.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassProperty(zd)}parseClassPrivateProperty(zd){return this.match(14)&&(zd.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassPrivateProperty(zd)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(14)||super.isClassProperty()}isNonstaticConstructor(zd){return!this.match(14)&&super.isNonstaticConstructor(zd)}pushClassMethod(zd,Zd,Tf,Bf,Ph,hm){if(Zd.variance&&this.unexpected(Zd.variance.loc.start),delete Zd.variance,this.match(47)&&(Zd.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassMethod(zd,Zd,Tf,Bf,Ph,hm),Zd.params&&Ph){let Im=Zd.params;Im.length>0&&this.isThisParam(Im[0])&&this.raise(r_.ThisParamBannedInConstructor,Zd)}else if(Zd.type==="MethodDefinition"&&Ph&&Zd.value.params){let Im=Zd.value.params;Im.length>0&&this.isThisParam(Im[0])&&this.raise(r_.ThisParamBannedInConstructor,Zd)}}pushClassPrivateMethod(zd,Zd,Tf,Bf){Zd.variance&&this.unexpected(Zd.variance.loc.start),delete Zd.variance,this.match(47)&&(Zd.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassPrivateMethod(zd,Zd,Tf,Bf)}parseClassSuper(zd){if(super.parseClassSuper(zd),zd.superClass&&this.match(47)&&(zd.superTypeParameters=this.flowParseTypeParameterInstantiation()),this.isContextual(113)){this.next();let Zd=zd.implements=[];do{let Tf=this.startNode();Tf.id=this.flowParseRestrictedIdentifier(!0),this.match(47)?Tf.typeParameters=this.flowParseTypeParameterInstantiation():Tf.typeParameters=null,Zd.push(this.finishNode(Tf,"ClassImplements"))}while(this.eat(12))}}checkGetterSetterParams(zd){super.checkGetterSetterParams(zd);let Zd=this.getObjectOrClassMethodParams(zd);if(Zd.length>0){let Tf=Zd[0];this.isThisParam(Tf)&&zd.kind==="get"?this.raise(r_.GetterMayNotHaveThisParam,Tf):this.isThisParam(Tf)&&this.raise(r_.SetterMayNotHaveThisParam,Tf)}}parsePropertyNamePrefixOperator(zd){zd.variance=this.flowParseVariance()}parseObjPropValue(zd,Zd,Tf,Bf,Ph,hm,Im){zd.variance&&this.unexpected(zd.variance.loc.start),delete zd.variance;let Gm;this.match(47)&&!hm&&(Gm=this.flowParseTypeParameterDeclaration(),this.match(10)||this.unexpected());let Um=super.parseObjPropValue(zd,Zd,Tf,Bf,Ph,hm,Im);return Gm&&((Um.value||Um).typeParameters=Gm),Um}parseAssignableListItemTypes(zd){return this.eat(17)&&(zd.type!=="Identifier"&&this.raise(r_.PatternIsOptional,zd),this.isThisParam(zd)&&this.raise(r_.ThisParamMayNotBeOptional,zd),zd.optional=!0),this.match(14)?zd.typeAnnotation=this.flowParseTypeAnnotation():this.isThisParam(zd)&&this.raise(r_.ThisParamAnnotationRequired,zd),this.match(29)&&this.isThisParam(zd)&&this.raise(r_.ThisParamNoDefault,zd),this.resetEndLocation(zd),zd}parseMaybeDefault(zd,Zd){let Tf=super.parseMaybeDefault(zd,Zd);return Tf.type==="AssignmentPattern"&&Tf.typeAnnotation&&Tf.right.startsuper.parseMaybeAssign(zd,Zd),Bf),!Ph.error)return Ph.node;let{context:Gm}=this.state,Um=Gm[Gm.length-1];(Um===Ef.j_oTag||Um===Ef.j_expr)&&Gm.pop()}if((Tf=Ph)!=null&&Tf.error||this.match(47)){var hm,Im;Bf=Bf||this.state.clone();let Gm,Um=this.tryParse(Bg=>{var Xg;Gm=this.flowParseTypeParameterDeclaration();let Zg=this.forwardNoArrowParamsConversionAt(Gm,()=>{let tb=super.parseMaybeAssign(zd,Zd);return this.resetStartLocationFromNode(tb,Gm),tb});(Xg=Zg.extra)!=null&&Xg.parenthesized&&Bg();let g_=this.maybeUnwrapTypeCastExpression(Zg);return g_.type!=="ArrowFunctionExpression"&&Bg(),g_.typeParameters=Gm,this.resetStartLocationFromNode(g_,Gm),Zg},Bf),Sg=null;if(Um.node&&this.maybeUnwrapTypeCastExpression(Um.node).type==="ArrowFunctionExpression"){if(!Um.error&&!Um.aborted)return Um.node.async&&this.raise(r_.UnexpectedTypeParameterBeforeAsyncArrowFunction,Gm),Um.node;Sg=Um.node}if((hm=Ph)!=null&&hm.node)return this.state=Ph.failState,Ph.node;if(Sg)return this.state=Um.failState,Sg;throw(Im=Ph)!=null&&Im.thrown?Ph.error:Um.thrown?Um.error:this.raise(r_.UnexpectedTokenAfterTypeParameter,Gm)}return super.parseMaybeAssign(zd,Zd)}parseArrow(zd){if(this.match(14)){let Zd=this.tryParse(()=>{let Tf=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0;let Bf=this.startNode();return[Bf.typeAnnotation,zd.predicate]=this.flowParseTypeAndPredicateInitialiser(),this.state.noAnonFunctionType=Tf,this.canInsertSemicolon()&&this.unexpected(),this.match(19)||this.unexpected(),Bf});if(Zd.thrown)return null;Zd.error&&(this.state=Zd.failState),zd.returnType=Zd.node.typeAnnotation?this.finishNode(Zd.node,"TypeAnnotation"):null}return super.parseArrow(zd)}shouldParseArrow(zd){return this.match(14)||super.shouldParseArrow(zd)}setArrowFunctionParameters(zd,Zd){this.state.noArrowParamsConversionAt.includes(zd.start)?zd.params=Zd:super.setArrowFunctionParameters(zd,Zd)}checkParams(zd,Zd,Tf,Bf=!0){if(!(Tf&&this.state.noArrowParamsConversionAt.includes(zd.start))){for(let Ph=0;Ph0&&this.raise(r_.ThisParamMustBeFirst,zd.params[Ph]);super.checkParams(zd,Zd,Tf,Bf)}}parseParenAndDistinguishExpression(zd){return super.parseParenAndDistinguishExpression(zd&&!this.state.noArrowAt.includes(this.state.start))}parseSubscripts(zd,Zd,Tf){if(zd.type==="Identifier"&&zd.name==="async"&&this.state.noArrowAt.includes(Zd.index)){this.next();let Bf=this.startNodeAt(Zd);Bf.callee=zd,Bf.arguments=super.parseCallExpressionArguments(11,!1),zd=this.finishNode(Bf,"CallExpression")}else if(zd.type==="Identifier"&&zd.name==="async"&&this.match(47)){let Bf=this.state.clone(),Ph=this.tryParse(Im=>this.parseAsyncArrowWithTypeParameters(Zd)||Im(),Bf);if(!Ph.error&&!Ph.aborted)return Ph.node;let hm=this.tryParse(()=>super.parseSubscripts(zd,Zd,Tf),Bf);if(hm.node&&!hm.error)return hm.node;if(Ph.node)return this.state=Ph.failState,Ph.node;if(hm.node)return this.state=hm.failState,hm.node;throw Ph.error||hm.error}return super.parseSubscripts(zd,Zd,Tf)}parseSubscript(zd,Zd,Tf,Bf){if(this.match(18)&&this.isLookaheadToken_lt()){if(Bf.optionalChainMember=!0,Tf)return Bf.stop=!0,zd;this.next();let Ph=this.startNodeAt(Zd);return Ph.callee=zd,Ph.typeArguments=this.flowParseTypeParameterInstantiation(),this.expect(10),Ph.arguments=this.parseCallExpressionArguments(11,!1),Ph.optional=!0,this.finishCallExpression(Ph,!0)}else if(!Tf&&this.shouldParseTypes()&&this.match(47)){let Ph=this.startNodeAt(Zd);Ph.callee=zd;let hm=this.tryParse(()=>(Ph.typeArguments=this.flowParseTypeParameterInstantiationCallOrNew(),this.expect(10),Ph.arguments=super.parseCallExpressionArguments(11,!1),Bf.optionalChainMember&&(Ph.optional=!1),this.finishCallExpression(Ph,Bf.optionalChainMember)));if(hm.node)return hm.error&&(this.state=hm.failState),hm.node}return super.parseSubscript(zd,Zd,Tf,Bf)}parseNewCallee(zd){super.parseNewCallee(zd);let Zd=null;this.shouldParseTypes()&&this.match(47)&&(Zd=this.tryParse(()=>this.flowParseTypeParameterInstantiationCallOrNew()).node),zd.typeArguments=Zd}parseAsyncArrowWithTypeParameters(zd){let Zd=this.startNodeAt(zd);if(this.parseFunctionParams(Zd,!1),!!this.parseArrow(Zd))return super.parseArrowExpression(Zd,void 0,!0)}readToken_mult_modulo(zd){let Zd=this.input.charCodeAt(this.state.pos+1);if(zd===42&&Zd===47&&this.state.hasFlowComment){this.state.hasFlowComment=!1,this.state.pos+=2,this.nextToken();return}super.readToken_mult_modulo(zd)}readToken_pipe_amp(zd){let Zd=this.input.charCodeAt(this.state.pos+1);if(zd===124&&Zd===125){this.finishOp(9,2);return}super.readToken_pipe_amp(zd)}parseTopLevel(zd,Zd){let Tf=super.parseTopLevel(zd,Zd);return this.state.hasFlowComment&&this.raise(r_.UnterminatedFlowComment,this.state.curPosition()),Tf}skipBlockComment(){if(this.hasPlugin("flowComments")&&this.skipFlowComment()){if(this.state.hasFlowComment)throw this.raise(r_.NestedFlowComment,this.state.startLoc);this.hasFlowCommentCompletion();let zd=this.skipFlowComment();zd&&(this.state.pos+=zd,this.state.hasFlowComment=!0);return}return super.skipBlockComment(this.state.hasFlowComment?"*-/":"*/")}skipFlowComment(){let{pos:zd}=this.state,Zd=2;for(;[32,9].includes(this.input.charCodeAt(zd+Zd));)Zd++;let Tf=this.input.charCodeAt(Zd+zd),Bf=this.input.charCodeAt(Zd+zd+1);return Tf===58&&Bf===58?Zd+2:this.input.slice(Zd+zd,Zd+zd+12)==="flow-include"?Zd+12:Tf===58&&Bf!==58?Zd:!1}hasFlowCommentCompletion(){if(this.input.indexOf("*/",this.state.pos)===-1)throw this.raise(Ud.UnterminatedComment,this.state.curPosition())}flowEnumErrorBooleanMemberNotInitialized(zd,{enumName:Zd,memberName:Tf}){this.raise(r_.EnumBooleanMemberNotInitialized,zd,{memberName:Tf,enumName:Zd})}flowEnumErrorInvalidMemberInitializer(zd,Zd){return this.raise(Zd.explicitType?Zd.explicitType==="symbol"?r_.EnumInvalidMemberInitializerSymbolType:r_.EnumInvalidMemberInitializerPrimaryType:r_.EnumInvalidMemberInitializerUnknownType,zd,Zd)}flowEnumErrorNumberMemberNotInitialized(zd,Zd){this.raise(r_.EnumNumberMemberNotInitialized,zd,Zd)}flowEnumErrorStringMemberInconsistentlyInitialized(zd,Zd){this.raise(r_.EnumStringMemberInconsistentlyInitialized,zd,Zd)}flowEnumMemberInit(){let zd=this.state.startLoc,Zd=()=>this.match(12)||this.match(8);switch(this.state.type){case 134:{let Tf=this.parseNumericLiteral(this.state.value);return Zd()?{type:"number",loc:Tf.loc.start,value:Tf}:{type:"invalid",loc:zd}}case 133:{let Tf=this.parseStringLiteral(this.state.value);return Zd()?{type:"string",loc:Tf.loc.start,value:Tf}:{type:"invalid",loc:zd}}case 85:case 86:{let Tf=this.parseBooleanLiteral(this.match(85));return Zd()?{type:"boolean",loc:Tf.loc.start,value:Tf}:{type:"invalid",loc:zd}}default:return{type:"invalid",loc:zd}}}flowEnumMemberRaw(){let zd=this.state.startLoc,Zd=this.parseIdentifier(!0),Tf=this.eat(29)?this.flowEnumMemberInit():{type:"none",loc:zd};return{id:Zd,init:Tf}}flowEnumCheckExplicitTypeMismatch(zd,Zd,Tf){let{explicitType:Bf}=Zd;Bf!==null&&Bf!==Tf&&this.flowEnumErrorInvalidMemberInitializer(zd,Zd)}flowEnumMembers({enumName:zd,explicitType:Zd}){let Tf=new Set,Bf={booleanMembers:[],numberMembers:[],stringMembers:[],defaultedMembers:[]},Ph=!1;for(;!this.match(8);){if(this.eat(21)){Ph=!0;break}let hm=this.startNode(),{id:Im,init:Gm}=this.flowEnumMemberRaw(),Um=Im.name;if(Um==="")continue;/^[a-z]/.test(Um)&&this.raise(r_.EnumInvalidMemberName,Im,{memberName:Um,suggestion:Um[0].toUpperCase()+Um.slice(1),enumName:zd}),Tf.has(Um)&&this.raise(r_.EnumDuplicateMemberName,Im,{memberName:Um,enumName:zd}),Tf.add(Um);let Sg={enumName:zd,explicitType:Zd,memberName:Um};switch(hm.id=Im,Gm.type){case"boolean":{this.flowEnumCheckExplicitTypeMismatch(Gm.loc,Sg,"boolean"),hm.init=Gm.value,Bf.booleanMembers.push(this.finishNode(hm,"EnumBooleanMember"));break}case"number":{this.flowEnumCheckExplicitTypeMismatch(Gm.loc,Sg,"number"),hm.init=Gm.value,Bf.numberMembers.push(this.finishNode(hm,"EnumNumberMember"));break}case"string":{this.flowEnumCheckExplicitTypeMismatch(Gm.loc,Sg,"string"),hm.init=Gm.value,Bf.stringMembers.push(this.finishNode(hm,"EnumStringMember"));break}case"invalid":throw this.flowEnumErrorInvalidMemberInitializer(Gm.loc,Sg);case"none":switch(Zd){case"boolean":this.flowEnumErrorBooleanMemberNotInitialized(Gm.loc,Sg);break;case"number":this.flowEnumErrorNumberMemberNotInitialized(Gm.loc,Sg);break;default:Bf.defaultedMembers.push(this.finishNode(hm,"EnumDefaultedMember"))}}this.match(8)||this.expect(12)}return{members:Bf,hasUnknownMembers:Ph}}flowEnumStringMembers(zd,Zd,{enumName:Tf}){if(zd.length===0)return Zd;if(Zd.length===0)return zd;if(Zd.length>zd.length){for(let Bf of zd)this.flowEnumErrorStringMemberInconsistentlyInitialized(Bf,{enumName:Tf});return Zd}else{for(let Bf of Zd)this.flowEnumErrorStringMemberInconsistentlyInitialized(Bf,{enumName:Tf});return zd}}flowEnumParseExplicitType({enumName:zd}){if(!this.eatContextual(102))return null;if(!_h(this.state.type))throw this.raise(r_.EnumInvalidExplicitTypeUnknownSupplied,this.state.startLoc,{enumName:zd});let{value:Zd}=this.state;return this.next(),Zd!=="boolean"&&Zd!=="number"&&Zd!=="string"&&Zd!=="symbol"&&this.raise(r_.EnumInvalidExplicitType,this.state.startLoc,{enumName:zd,invalidEnumType:Zd}),Zd}flowEnumBody(zd,Zd){let Tf=Zd.name,Bf=Zd.loc.start,Ph=this.flowEnumParseExplicitType({enumName:Tf});this.expect(5);let{members:hm,hasUnknownMembers:Im}=this.flowEnumMembers({enumName:Tf,explicitType:Ph});switch(zd.hasUnknownMembers=Im,Ph){case"boolean":return zd.explicitType=!0,zd.members=hm.booleanMembers,this.expect(8),this.finishNode(zd,"EnumBooleanBody");case"number":return zd.explicitType=!0,zd.members=hm.numberMembers,this.expect(8),this.finishNode(zd,"EnumNumberBody");case"string":return zd.explicitType=!0,zd.members=this.flowEnumStringMembers(hm.stringMembers,hm.defaultedMembers,{enumName:Tf}),this.expect(8),this.finishNode(zd,"EnumStringBody");case"symbol":return zd.members=hm.defaultedMembers,this.expect(8),this.finishNode(zd,"EnumSymbolBody");default:{let Gm=()=>(zd.members=[],this.expect(8),this.finishNode(zd,"EnumStringBody"));zd.explicitType=!1;let Um=hm.booleanMembers.length,Sg=hm.numberMembers.length,Bg=hm.stringMembers.length,Xg=hm.defaultedMembers.length;if(!Um&&!Sg&&!Bg&&!Xg)return Gm();if(!Um&&!Sg)return zd.members=this.flowEnumStringMembers(hm.stringMembers,hm.defaultedMembers,{enumName:Tf}),this.expect(8),this.finishNode(zd,"EnumStringBody");if(!Sg&&!Bg&&Um>=Xg){for(let Zg of hm.defaultedMembers)this.flowEnumErrorBooleanMemberNotInitialized(Zg.loc.start,{enumName:Tf,memberName:Zg.id.name});return zd.members=hm.booleanMembers,this.expect(8),this.finishNode(zd,"EnumBooleanBody")}else if(!Um&&!Bg&&Sg>=Xg){for(let Zg of hm.defaultedMembers)this.flowEnumErrorNumberMemberNotInitialized(Zg.loc.start,{enumName:Tf,memberName:Zg.id.name});return zd.members=hm.numberMembers,this.expect(8),this.finishNode(zd,"EnumNumberBody")}else return this.raise(r_.EnumInconsistentMemberValues,Bf,{enumName:Tf}),Gm()}}}flowParseEnumDeclaration(zd){let Zd=this.parseIdentifier();return zd.id=Zd,zd.body=this.flowEnumBody(this.startNode(),Zd),this.finishNode(zd,"EnumDeclaration")}isLookaheadToken_lt(){let zd=this.nextTokenStart();if(this.input.charCodeAt(zd)===60){let Zd=this.input.charCodeAt(zd+1);return Zd!==60&&Zd!==61}return!1}maybeUnwrapTypeCastExpression(zd){return zd.type==="TypeCastExpression"?zd.expression:zd}},fb=Gd`jsx`({AttributeIsEmpty:"JSX attributes must only be assigned a non-empty expression.",MissingClosingTagElement:({openingTagName:Jd})=>`Expected corresponding JSX closing tag for <${Jd}>.`,MissingClosingTagFragment:"Expected corresponding JSX closing tag for <>.",UnexpectedSequenceExpression:"Sequence expressions cannot be directly nested inside JSX. Did you mean to wrap it in parentheses (...)?",UnexpectedToken:({unexpected:Jd,HTMLEntity:zd})=>`Unexpected token \`${Jd}\`. Did you mean \`${zd}\` or \`{'${Jd}'}\`?`,UnsupportedJsxValue:"JSX value should be either an expression or a quoted JSX text.",UnterminatedJsxContent:"Unterminated JSX contents.",UnwrappedAdjacentJSXElements:"Adjacent JSX elements must be wrapped in an enclosing tag. Did you want a JSX fragment <>...?"});function Xb(Jd){return Jd?Jd.type==="JSXOpeningFragment"||Jd.type==="JSXClosingFragment":!1}function Fy(Jd){if(Jd.type==="JSXIdentifier")return Jd.name;if(Jd.type==="JSXNamespacedName")return Jd.namespace.name+":"+Jd.name.name;if(Jd.type==="JSXMemberExpression")return Fy(Jd.object)+"."+Fy(Jd.property);throw new Error("Node had unexpected type: "+Jd.type)}var A0=Jd=>class extends Jd{jsxReadToken(){let zd="",Zd=this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(fb.UnterminatedJsxContent,this.state.startLoc);let Tf=this.input.charCodeAt(this.state.pos);switch(Tf){case 60:case 123:if(this.state.pos===this.state.start){Tf===60&&this.state.canStartJSXElement?(++this.state.pos,this.finishToken(142)):super.getTokenFromCode(Tf);return}zd+=this.input.slice(Zd,this.state.pos),this.finishToken(141,zd);return;case 38:zd+=this.input.slice(Zd,this.state.pos),zd+=this.jsxReadEntity(),Zd=this.state.pos;break;case 62:case 125:default:jm(Tf)?(zd+=this.input.slice(Zd,this.state.pos),zd+=this.jsxReadNewLine(!0),Zd=this.state.pos):++this.state.pos}}}jsxReadNewLine(zd){let Zd=this.input.charCodeAt(this.state.pos),Tf;return++this.state.pos,Zd===13&&this.input.charCodeAt(this.state.pos)===10?(++this.state.pos,Tf=zd?` `:`\r `):Tf=String.fromCharCode(Zd),++this.state.curLine,this.state.lineStart=this.state.pos,Tf}jsxReadString(zd){let Zd="",Tf=++this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(Ud.UnterminatedString,this.state.startLoc);let Bf=this.input.charCodeAt(this.state.pos);if(Bf===zd)break;Bf===38?(Zd+=this.input.slice(Tf,this.state.pos),Zd+=this.jsxReadEntity(),Tf=this.state.pos):jm(Bf)?(Zd+=this.input.slice(Tf,this.state.pos),Zd+=this.jsxReadNewLine(!1),Tf=this.state.pos):++this.state.pos}Zd+=this.input.slice(Tf,this.state.pos++),this.finishToken(133,Zd)}jsxReadEntity(){let zd=++this.state.pos;if(this.codePointAtPos(this.state.pos)===35){++this.state.pos;let Zd=10;this.codePointAtPos(this.state.pos)===120&&(Zd=16,++this.state.pos);let Tf=this.readInt(Zd,void 0,!1,"bail");if(Tf!==null&&this.codePointAtPos(this.state.pos)===59)return++this.state.pos,String.fromCodePoint(Tf)}else{let Zd=0,Tf=!1;for(;Zd++<10&&this.state.pos1){for(let Tf=0;Tf0){if(Zd&256){let Bf=!!(Zd&512),Ph=(Tf&4)>0;return Bf!==Ph}return!0}return Zd&128&&(Tf&8)>0?Jd.names.get(zd)&2?!!(Zd&1):!1:Zd&2&&(Tf&1)>0?!0:super.isRedeclaredInScope(Jd,zd,Zd)}checkLocalExport(Jd){let{name:zd}=Jd;if(this.hasImport(zd))return;let Zd=this.scopeStack.length;for(let Tf=Zd-1;Tf>=0;Tf--){let Bf=this.scopeStack[Tf].tsNames.get(zd);if((Bf&1)>0||(Bf&16)>0)return}super.checkLocalExport(Jd)}},Sv=(Jd,zd)=>hasOwnProperty.call(Jd,zd)&&Jd[zd],mS=Jd=>Jd.type==="ParenthesizedExpression"?mS(Jd.expression):Jd,pT=class extends iE{toAssignable(Jd,zd=!1){var Zd,Tf;let Bf;switch((Jd.type==="ParenthesizedExpression"||(Zd=Jd.extra)!=null&&Zd.parenthesized)&&(Bf=mS(Jd),zd?Bf.type==="Identifier"?this.expressionScope.recordArrowParameterBindingError(Ud.InvalidParenthesizedAssignment,Jd):Bf.type!=="MemberExpression"&&!this.isOptionalMemberExpression(Bf)&&this.raise(Ud.InvalidParenthesizedAssignment,Jd):this.raise(Ud.InvalidParenthesizedAssignment,Jd)),Jd.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":Jd.type="ObjectPattern";for(let hm=0,Im=Jd.properties.length,Gm=Im-1;hmTf.type!=="ObjectMethod"&&(Bf===Zd||Tf.type!=="SpreadElement")&&this.isAssignable(Tf))}case"ObjectProperty":return this.isAssignable(Jd.value);case"SpreadElement":return this.isAssignable(Jd.argument);case"ArrayExpression":return Jd.elements.every(Zd=>Zd===null||this.isAssignable(Zd));case"AssignmentExpression":return Jd.operator==="=";case"ParenthesizedExpression":return this.isAssignable(Jd.expression);case"MemberExpression":case"OptionalMemberExpression":return!zd;default:return!1}}toReferencedList(Jd,zd){return Jd}toReferencedListDeep(Jd,zd){this.toReferencedList(Jd,zd);for(let Zd of Jd)(Zd==null?void 0:Zd.type)==="ArrayExpression"&&this.toReferencedListDeep(Zd.elements)}parseSpread(Jd){let zd=this.startNode();return this.next(),zd.argument=this.parseMaybeAssignAllowIn(Jd,void 0),this.finishNode(zd,"SpreadElement")}parseRestBinding(){let Jd=this.startNode();return this.next(),Jd.argument=this.parseBindingAtom(),this.finishNode(Jd,"RestElement")}parseBindingAtom(){switch(this.state.type){case 0:{let Jd=this.startNode();return this.next(),Jd.elements=this.parseBindingList(3,93,1),this.finishNode(Jd,"ArrayPattern")}case 5:return this.parseObjectLike(8,!0)}return this.parseIdentifier()}parseBindingList(Jd,zd,Zd){let Tf=Zd&1,Bf=[],Ph=!0;for(;!this.eat(Jd);)if(Ph?Ph=!1:this.expect(12),Tf&&this.match(12))Bf.push(null);else{if(this.eat(Jd))break;if(this.match(21)){if(Bf.push(this.parseAssignableListItemTypes(this.parseRestBinding(),Zd)),!this.checkCommaAfterRest(zd)){this.expect(Jd);break}}else{let hm=[];for(this.match(26)&&this.hasPlugin("decorators")&&this.raise(Ud.UnsupportedParameterDecorator,this.state.startLoc);this.match(26);)hm.push(this.parseDecorator());Bf.push(this.parseAssignableListItem(Zd,hm))}}return Bf}parseBindingRestProperty(Jd){return this.next(),Jd.argument=this.parseIdentifier(),this.checkCommaAfterRest(125),this.finishNode(Jd,"RestElement")}parseBindingProperty(){let{type:Jd,startLoc:zd}=this.state;if(Jd===21)return this.parseBindingRestProperty(this.startNode());let Zd=this.startNode();return Jd===138?(this.expectPlugin("destructuringPrivate",zd),this.classScope.usePrivateName(this.state.value,zd),Zd.key=this.parsePrivateName()):this.parsePropertyName(Zd),Zd.method=!1,this.parseObjPropValue(Zd,zd,!1,!1,!0,!1)}parseAssignableListItem(Jd,zd){let Zd=this.parseMaybeDefault();this.parseAssignableListItemTypes(Zd,Jd);let Tf=this.parseMaybeDefault(Zd.loc.start,Zd);return zd.length&&(Zd.decorators=zd),Tf}parseAssignableListItemTypes(Jd,zd){return Jd}parseMaybeDefault(Jd,zd){var Zd;if(Jd!=null||(Jd=this.state.startLoc),zd=(Zd=zd)!=null?Zd:this.parseBindingAtom(),!this.eat(29))return zd;let Tf=this.startNodeAt(Jd);return Tf.left=zd,Tf.right=this.parseMaybeAssignAllowIn(),this.finishNode(Tf,"AssignmentPattern")}isValidLVal(Jd,zd,Zd){return Sv({AssignmentPattern:"left",RestElement:"argument",ObjectProperty:"value",ParenthesizedExpression:"expression",ArrayPattern:"elements",ObjectPattern:"properties"},Jd)}isOptionalMemberExpression(Jd){return Jd.type==="OptionalMemberExpression"}checkLVal(Jd,{in:zd,binding:Zd=64,checkClashes:Tf=!1,strictModeChanged:Bf=!1,hasParenthesizedAncestor:Ph=!1}){var hm;let Im=Jd.type;if(this.isObjectMethod(Jd))return;let Gm=this.isOptionalMemberExpression(Jd);if(Gm||Im==="MemberExpression"){Gm&&(this.expectPlugin("optionalChainingAssign",Jd.loc.start),zd.type!=="AssignmentExpression"&&this.raise(Ud.InvalidLhsOptionalChaining,Jd,{ancestor:zd})),Zd!==64&&this.raise(Ud.InvalidPropertyBindingPattern,Jd);return}if(Im==="Identifier"){this.checkIdentifier(Jd,Zd,Bf);let{name:Zg}=Jd;Tf&&(Tf.has(Zg)?this.raise(Ud.ParamDupe,Jd):Tf.add(Zg));return}let Um=this.isValidLVal(Im,!(Ph||(hm=Jd.extra)!=null&&hm.parenthesized)&&zd.type==="AssignmentExpression",Zd);if(Um===!0)return;if(Um===!1){let Zg=Zd===64?Ud.InvalidLhs:Ud.InvalidLhsBinding;this.raise(Zg,Jd,{ancestor:zd});return}let[Sg,Bg]=Array.isArray(Um)?Um:[Um,Im==="ParenthesizedExpression"],Xg=Im==="ArrayPattern"||Im==="ObjectPattern"?{type:Im}:zd;for(let Zg of[].concat(Jd[Sg]))Zg&&this.checkLVal(Zg,{in:Xg,binding:Zd,checkClashes:Tf,strictModeChanged:Bf,hasParenthesizedAncestor:Bg})}checkIdentifier(Jd,zd,Zd=!1){this.state.strict&&(Zd?o_(Jd.name,this.inModule):d_(Jd.name))&&(zd===64?this.raise(Ud.StrictEvalArguments,Jd,{referenceName:Jd.name}):this.raise(Ud.StrictEvalArgumentsBinding,Jd,{bindingName:Jd.name})),zd&8192&&Jd.name==="let"&&this.raise(Ud.LetInLexicalBinding,Jd),zd&64||this.declareNameFromIdentifier(Jd,zd)}declareNameFromIdentifier(Jd,zd){this.scope.declareName(Jd.name,zd,Jd.loc.start)}checkToRestConversion(Jd,zd){switch(Jd.type){case"ParenthesizedExpression":this.checkToRestConversion(Jd.expression,zd);break;case"Identifier":case"MemberExpression":break;case"ArrayExpression":case"ObjectExpression":if(zd)break;default:this.raise(Ud.InvalidRestAssignmentPattern,Jd)}}checkCommaAfterRest(Jd){return this.match(12)?(this.raise(this.lookaheadCharCode()===Jd?Ud.RestTrailingComma:Ud.ElementAfterRest,this.state.startLoc),!0):!1}},xv=(Jd,zd)=>hasOwnProperty.call(Jd,zd)&&Jd[zd];function gS(Jd){if(Jd==null)throw new Error(`Unexpected ${Jd} value.`);return Jd}function _S(Jd){if(!Jd)throw new Error("Assert fail")}var Pg=Gd`typescript`({AbstractMethodHasImplementation:({methodName:Jd})=>`Method '${Jd}' cannot have an implementation because it is marked abstract.`,AbstractPropertyHasInitializer:({propertyName:Jd})=>`Property '${Jd}' cannot have an initializer because it is marked abstract.`,AccesorCannotDeclareThisParameter:"'get' and 'set' accessors cannot declare 'this' parameters.",AccesorCannotHaveTypeParameters:"An accessor cannot have type parameters.",AccessorCannotBeOptional:"An 'accessor' property cannot be declared optional.",ClassMethodHasDeclare:"Class methods cannot have the 'declare' modifier.",ClassMethodHasReadonly:"Class methods cannot have the 'readonly' modifier.",ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference:"A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference.",ConstructorHasTypeParameters:"Type parameters cannot appear on a constructor declaration.",DeclareAccessor:({kind:Jd})=>`'declare' is not allowed in ${Jd}ters.`,DeclareClassFieldHasInitializer:"Initializers are not allowed in ambient contexts.",DeclareFunctionHasImplementation:"An implementation cannot be declared in ambient contexts.",DuplicateAccessibilityModifier:({modifier:Jd})=>"Accessibility modifier already seen.",DuplicateModifier:({modifier:Jd})=>`Duplicate modifier: '${Jd}'.`,EmptyHeritageClauseType:({token:Jd})=>`'${Jd}' list cannot be empty.`,EmptyTypeArguments:"Type argument list cannot be empty.",EmptyTypeParameters:"Type parameter list cannot be empty.",ExpectedAmbientAfterExportDeclare:"'export declare' must be followed by an ambient declaration.",ImportAliasHasImportType:"An import alias can not use 'import type'.",ImportReflectionHasImportType:"An `import module` declaration can not use `type` modifier",IncompatibleModifiers:({modifiers:Jd})=>`'${Jd[0]}' modifier cannot be used with '${Jd[1]}' modifier.`,IndexSignatureHasAbstract:"Index signatures cannot have the 'abstract' modifier.",IndexSignatureHasAccessibility:({modifier:Jd})=>`Index signatures cannot have an accessibility modifier ('${Jd}').`,IndexSignatureHasDeclare:"Index signatures cannot have the 'declare' modifier.",IndexSignatureHasOverride:"'override' modifier cannot appear on an index signature.",IndexSignatureHasStatic:"Index signatures cannot have the 'static' modifier.",InitializerNotAllowedInAmbientContext:"Initializers are not allowed in ambient contexts.",InvalidModifierOnTypeMember:({modifier:Jd})=>`'${Jd}' modifier cannot appear on a type member.`,InvalidModifierOnTypeParameter:({modifier:Jd})=>`'${Jd}' modifier cannot appear on a type parameter.`,InvalidModifierOnTypeParameterPositions:({modifier:Jd})=>`'${Jd}' modifier can only appear on a type parameter of a class, interface or type alias.`,InvalidModifiersOrder:({orderedModifiers:Jd})=>`'${Jd[0]}' modifier must precede '${Jd[1]}' modifier.`,InvalidPropertyAccessAfterInstantiationExpression:"Invalid property access after an instantiation expression. You can either wrap the instantiation expression in parentheses, or delete the type arguments.",InvalidTupleMemberLabel:"Tuple members must be labeled with a simple identifier.",MissingInterfaceName:"'interface' declarations must be followed by an identifier.",NonAbstractClassHasAbstractMethod:"Abstract methods can only appear within an abstract class.",NonClassMethodPropertyHasAbstractModifer:"'abstract' modifier can only appear on a class, method, or property declaration.",OptionalTypeBeforeRequired:"A required element cannot follow an optional element.",OverrideNotInSubClass:"This member cannot have an 'override' modifier because its containing class does not extend another class.",PatternIsOptional:"A binding pattern parameter cannot be optional in an implementation signature.",PrivateElementHasAbstract:"Private elements cannot have the 'abstract' modifier.",PrivateElementHasAccessibility:({modifier:Jd})=>`Private elements cannot have an accessibility modifier ('${Jd}').`,ReadonlyForMethodSignature:"'readonly' modifier can only appear on a property declaration or index signature.",ReservedArrowTypeParam:"This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma, as in `() => ...`.",ReservedTypeAssertion:"This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead.",SetAccesorCannotHaveOptionalParameter:"A 'set' accessor cannot have an optional parameter.",SetAccesorCannotHaveRestParameter:"A 'set' accessor cannot have rest parameter.",SetAccesorCannotHaveReturnType:"A 'set' accessor cannot have a return type annotation.",SingleTypeParameterWithoutTrailingComma:({typeParameterName:Jd})=>`Single type parameter ${Jd} should have a trailing comma. Example usage: <${Jd},>.`,StaticBlockCannotHaveModifier:"Static class blocks cannot have any modifier.",TupleOptionalAfterType:"A labeled tuple optional element must be declared using a question mark after the name and before the colon (`name?: type`), rather than after the type (`name: type?`).",TypeAnnotationAfterAssign:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeImportCannotSpecifyDefaultAndNamed:"A type-only import can specify a default import or named bindings, but not both.",TypeModifierIsUsedInTypeExports:"The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement.",TypeModifierIsUsedInTypeImports:"The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement.",UnexpectedParameterModifier:"A parameter property is only allowed in a constructor implementation.",UnexpectedReadonly:"'readonly' type modifier is only permitted on array and tuple literal types.",UnexpectedTypeAnnotation:"Did not expect a type annotation here.",UnexpectedTypeCastInParameter:"Unexpected type cast in parameter position.",UnsupportedImportTypeArgument:"Argument in a type import must be a string literal.",UnsupportedParameterPropertyKind:"A parameter property may not be declared using a binding pattern.",UnsupportedSignatureParameterKind:({type:Jd})=>`Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got ${Jd}.`});function H_(Jd){switch(Jd){case"any":return"TSAnyKeyword";case"boolean":return"TSBooleanKeyword";case"bigint":return"TSBigIntKeyword";case"never":return"TSNeverKeyword";case"number":return"TSNumberKeyword";case"object":return"TSObjectKeyword";case"string":return"TSStringKeyword";case"symbol":return"TSSymbolKeyword";case"undefined":return"TSUndefinedKeyword";case"unknown":return"TSUnknownKeyword";default:return}}function oE(Jd){return Jd==="private"||Jd==="public"||Jd==="protected"}function FE(Jd){return Jd==="in"||Jd==="out"}var Cv=Jd=>class extends Jd{constructor(...zd){super(...zd),this.tsParseInOutModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out"],disallowedModifiers:["const","public","private","protected","readonly","declare","abstract","override"],errorTemplate:Pg.InvalidModifierOnTypeParameter}),this.tsParseConstModifier=this.tsParseModifiers.bind(this,{allowedModifiers:["const"],disallowedModifiers:["in","out"],errorTemplate:Pg.InvalidModifierOnTypeParameterPositions}),this.tsParseInOutConstModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out","const"],disallowedModifiers:["public","private","protected","readonly","declare","abstract","override"],errorTemplate:Pg.InvalidModifierOnTypeParameter})}getScopeHandler(){return hS}tsIsIdentifier(){return _h(this.state.type)}tsTokenCanFollowModifier(){return(this.match(0)||this.match(5)||this.match(55)||this.match(21)||this.match(138)||this.isLiteralPropertyName())&&!this.hasPrecedingLineBreak()}tsNextTokenCanFollowModifier(){return this.next(),this.tsTokenCanFollowModifier()}tsParseModifier(zd,Zd){if(!_h(this.state.type)&&this.state.type!==58&&this.state.type!==75)return;let Tf=this.state.value;if(zd.includes(Tf)){if(Zd&&this.tsIsStartOfStaticBlocks())return;if(this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this)))return Tf}}tsParseModifiers({allowedModifiers:zd,disallowedModifiers:Zd,stopOnStartOfClassStaticBlock:Tf,errorTemplate:Bf=Pg.InvalidModifierOnTypeMember},Ph){let hm=(Gm,Um,Sg,Bg)=>{Um===Sg&&Ph[Bg]&&this.raise(Pg.InvalidModifiersOrder,Gm,{orderedModifiers:[Sg,Bg]})},Im=(Gm,Um,Sg,Bg)=>{(Ph[Sg]&&Um===Bg||Ph[Bg]&&Um===Sg)&&this.raise(Pg.IncompatibleModifiers,Gm,{modifiers:[Sg,Bg]})};for(;;){let{startLoc:Gm}=this.state,Um=this.tsParseModifier(zd.concat(Zd??[]),Tf);if(!Um)break;oE(Um)?Ph.accessibility?this.raise(Pg.DuplicateAccessibilityModifier,Gm,{modifier:Um}):(hm(Gm,Um,Um,"override"),hm(Gm,Um,Um,"static"),hm(Gm,Um,Um,"readonly"),Ph.accessibility=Um):FE(Um)?(Ph[Um]&&this.raise(Pg.DuplicateModifier,Gm,{modifier:Um}),Ph[Um]=!0,hm(Gm,Um,"in","out")):(hasOwnProperty.call(Ph,Um)?this.raise(Pg.DuplicateModifier,Gm,{modifier:Um}):(hm(Gm,Um,"static","readonly"),hm(Gm,Um,"static","override"),hm(Gm,Um,"override","readonly"),hm(Gm,Um,"abstract","override"),Im(Gm,Um,"declare","override"),Im(Gm,Um,"static","abstract")),Ph[Um]=!0),Zd!=null&&Zd.includes(Um)&&this.raise(Bf,Gm,{modifier:Um})}}tsIsListTerminator(zd){switch(zd){case"EnumMembers":case"TypeMembers":return this.match(8);case"HeritageClauseElement":return this.match(5);case"TupleElementTypes":return this.match(3);case"TypeParametersOrArguments":return this.match(48)}}tsParseList(zd,Zd){let Tf=[];for(;!this.tsIsListTerminator(zd);)Tf.push(Zd());return Tf}tsParseDelimitedList(zd,Zd,Tf){return gS(this.tsParseDelimitedListWorker(zd,Zd,!0,Tf))}tsParseDelimitedListWorker(zd,Zd,Tf,Bf){let Ph=[],hm=-1;for(;!this.tsIsListTerminator(zd);){hm=-1;let Im=Zd();if(Im==null)return;if(Ph.push(Im),this.eat(12)){hm=this.state.lastTokStartLoc.index;continue}if(this.tsIsListTerminator(zd))break;Tf&&this.expect(12);return}return Bf&&(Bf.value=hm),Ph}tsParseBracketedList(zd,Zd,Tf,Bf,Ph){Bf||(Tf?this.expect(0):this.expect(47));let hm=this.tsParseDelimitedList(zd,Zd,Ph);return Tf?this.expect(3):this.expect(48),hm}tsParseImportType(){let zd=this.startNode();return this.expect(83),this.expect(10),this.match(133)||this.raise(Pg.UnsupportedImportTypeArgument,this.state.startLoc),zd.argument=super.parseExprAtom(),(this.hasPlugin("importAttributes")||this.hasPlugin("importAssertions"))&&(zd.options=null),this.eat(12)&&(this.expectImportAttributesPlugin(),this.match(11)||(zd.options=super.parseMaybeAssignAllowIn(),this.eat(12))),this.expect(11),this.eat(16)&&(zd.qualifier=this.tsParseEntityName()),this.match(47)&&(zd.typeParameters=this.tsParseTypeArguments()),this.finishNode(zd,"TSImportType")}tsParseEntityName(zd=!0){let Zd=this.parseIdentifier(zd);for(;this.eat(16);){let Tf=this.startNodeAtNode(Zd);Tf.left=Zd,Tf.right=this.parseIdentifier(zd),Zd=this.finishNode(Tf,"TSQualifiedName")}return Zd}tsParseTypeReference(){let zd=this.startNode();return zd.typeName=this.tsParseEntityName(),!this.hasPrecedingLineBreak()&&this.match(47)&&(zd.typeParameters=this.tsParseTypeArguments()),this.finishNode(zd,"TSTypeReference")}tsParseThisTypePredicate(zd){this.next();let Zd=this.startNodeAtNode(zd);return Zd.parameterName=zd,Zd.typeAnnotation=this.tsParseTypeAnnotation(!1),Zd.asserts=!1,this.finishNode(Zd,"TSTypePredicate")}tsParseThisTypeNode(){let zd=this.startNode();return this.next(),this.finishNode(zd,"TSThisType")}tsParseTypeQuery(){let zd=this.startNode();return this.expect(87),this.match(83)?zd.exprName=this.tsParseImportType():zd.exprName=this.tsParseEntityName(),!this.hasPrecedingLineBreak()&&this.match(47)&&(zd.typeParameters=this.tsParseTypeArguments()),this.finishNode(zd,"TSTypeQuery")}tsParseTypeParameter(zd){let Zd=this.startNode();return zd(Zd),Zd.name=this.tsParseTypeParameterName(),Zd.constraint=this.tsEatThenParseType(81),Zd.default=this.tsEatThenParseType(29),this.finishNode(Zd,"TSTypeParameter")}tsTryParseTypeParameters(zd){if(this.match(47))return this.tsParseTypeParameters(zd)}tsParseTypeParameters(zd){let Zd=this.startNode();this.match(47)||this.match(142)?this.next():this.unexpected();let Tf={value:-1};return Zd.params=this.tsParseBracketedList("TypeParametersOrArguments",this.tsParseTypeParameter.bind(this,zd),!1,!0,Tf),Zd.params.length===0&&this.raise(Pg.EmptyTypeParameters,Zd),Tf.value!==-1&&this.addExtra(Zd,"trailingComma",Tf.value),this.finishNode(Zd,"TSTypeParameterDeclaration")}tsFillSignature(zd,Zd){let Tf=zd===19,Bf="parameters",Ph="typeAnnotation";Zd.typeParameters=this.tsTryParseTypeParameters(this.tsParseConstModifier),this.expect(10),Zd[Bf]=this.tsParseBindingListForSignature(),Tf?Zd[Ph]=this.tsParseTypeOrTypePredicateAnnotation(zd):this.match(zd)&&(Zd[Ph]=this.tsParseTypeOrTypePredicateAnnotation(zd))}tsParseBindingListForSignature(){let zd=super.parseBindingList(11,41,2);for(let Zd of zd){let{type:Tf}=Zd;(Tf==="AssignmentPattern"||Tf==="TSParameterProperty")&&this.raise(Pg.UnsupportedSignatureParameterKind,Zd,{type:Tf})}return zd}tsParseTypeMemberSemicolon(){!this.eat(12)&&!this.isLineTerminator()&&this.expect(13)}tsParseSignatureMember(zd,Zd){return this.tsFillSignature(14,Zd),this.tsParseTypeMemberSemicolon(),this.finishNode(Zd,zd)}tsIsUnambiguouslyIndexSignature(){return this.next(),_h(this.state.type)?(this.next(),this.match(14)):!1}tsTryParseIndexSignature(zd){if(!(this.match(0)&&this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this))))return;this.expect(0);let Zd=this.parseIdentifier();Zd.typeAnnotation=this.tsParseTypeAnnotation(),this.resetEndLocation(Zd),this.expect(3),zd.parameters=[Zd];let Tf=this.tsTryParseTypeAnnotation();return Tf&&(zd.typeAnnotation=Tf),this.tsParseTypeMemberSemicolon(),this.finishNode(zd,"TSIndexSignature")}tsParsePropertyOrMethodSignature(zd,Zd){this.eat(17)&&(zd.optional=!0);let Tf=zd;if(this.match(10)||this.match(47)){Zd&&this.raise(Pg.ReadonlyForMethodSignature,zd);let Bf=Tf;Bf.kind&&this.match(47)&&this.raise(Pg.AccesorCannotHaveTypeParameters,this.state.curPosition()),this.tsFillSignature(14,Bf),this.tsParseTypeMemberSemicolon();let Ph="parameters",hm="typeAnnotation";if(Bf.kind==="get")Bf[Ph].length>0&&(this.raise(Ud.BadGetterArity,this.state.curPosition()),this.isThisParam(Bf[Ph][0])&&this.raise(Pg.AccesorCannotDeclareThisParameter,this.state.curPosition()));else if(Bf.kind==="set"){if(Bf[Ph].length!==1)this.raise(Ud.BadSetterArity,this.state.curPosition());else{let Im=Bf[Ph][0];this.isThisParam(Im)&&this.raise(Pg.AccesorCannotDeclareThisParameter,this.state.curPosition()),Im.type==="Identifier"&&Im.optional&&this.raise(Pg.SetAccesorCannotHaveOptionalParameter,this.state.curPosition()),Im.type==="RestElement"&&this.raise(Pg.SetAccesorCannotHaveRestParameter,this.state.curPosition())}Bf[hm]&&this.raise(Pg.SetAccesorCannotHaveReturnType,Bf[hm])}else Bf.kind="method";return this.finishNode(Bf,"TSMethodSignature")}else{let Bf=Tf;Zd&&(Bf.readonly=!0);let Ph=this.tsTryParseTypeAnnotation();return Ph&&(Bf.typeAnnotation=Ph),this.tsParseTypeMemberSemicolon(),this.finishNode(Bf,"TSPropertySignature")}}tsParseTypeMember(){let zd=this.startNode();if(this.match(10)||this.match(47))return this.tsParseSignatureMember("TSCallSignatureDeclaration",zd);if(this.match(77)){let Tf=this.startNode();return this.next(),this.match(10)||this.match(47)?this.tsParseSignatureMember("TSConstructSignatureDeclaration",zd):(zd.key=this.createIdentifier(Tf,"new"),this.tsParsePropertyOrMethodSignature(zd,!1))}return this.tsParseModifiers({allowedModifiers:["readonly"],disallowedModifiers:["declare","abstract","private","protected","public","static","override"]},zd),this.tsTryParseIndexSignature(zd)||(super.parsePropertyName(zd),!zd.computed&&zd.key.type==="Identifier"&&(zd.key.name==="get"||zd.key.name==="set")&&this.tsTokenCanFollowModifier()&&(zd.kind=zd.key.name,super.parsePropertyName(zd)),this.tsParsePropertyOrMethodSignature(zd,!!zd.readonly))}tsParseTypeLiteral(){let zd=this.startNode();return zd.members=this.tsParseObjectTypeMembers(),this.finishNode(zd,"TSTypeLiteral")}tsParseObjectTypeMembers(){this.expect(5);let zd=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.expect(8),zd}tsIsStartOfMappedType(){return this.next(),this.eat(53)?this.isContextual(122):(this.isContextual(122)&&this.next(),!this.match(0)||(this.next(),!this.tsIsIdentifier())?!1:(this.next(),this.match(58)))}tsParseMappedTypeParameter(){let zd=this.startNode();return zd.name=this.tsParseTypeParameterName(),zd.constraint=this.tsExpectThenParseType(58),this.finishNode(zd,"TSTypeParameter")}tsParseMappedType(){let zd=this.startNode();return this.expect(5),this.match(53)?(zd.readonly=this.state.value,this.next(),this.expectContextual(122)):this.eatContextual(122)&&(zd.readonly=!0),this.expect(0),zd.typeParameter=this.tsParseMappedTypeParameter(),zd.nameType=this.eatContextual(93)?this.tsParseType():null,this.expect(3),this.match(53)?(zd.optional=this.state.value,this.next(),this.expect(17)):this.eat(17)&&(zd.optional=!0),zd.typeAnnotation=this.tsTryParseType(),this.semicolon(),this.expect(8),this.finishNode(zd,"TSMappedType")}tsParseTupleType(){let zd=this.startNode();zd.elementTypes=this.tsParseBracketedList("TupleElementTypes",this.tsParseTupleElementType.bind(this),!0,!1);let Zd=!1;return zd.elementTypes.forEach(Tf=>{let{type:Bf}=Tf;Zd&&Bf!=="TSRestType"&&Bf!=="TSOptionalType"&&!(Bf==="TSNamedTupleMember"&&Tf.optional)&&this.raise(Pg.OptionalTypeBeforeRequired,Tf),Zd||(Zd=Bf==="TSNamedTupleMember"&&Tf.optional||Bf==="TSOptionalType")}),this.finishNode(zd,"TSTupleType")}tsParseTupleElementType(){let{startLoc:zd}=this.state,Zd=this.eat(21),Tf,Bf,Ph,hm,Im=dm(this.state.type)?this.lookaheadCharCode():null;if(Im===58)Tf=!0,Ph=!1,Bf=this.parseIdentifier(!0),this.expect(14),hm=this.tsParseType();else if(Im===63){Ph=!0;let Gm=this.state.startLoc,Um=this.state.value,Sg=this.tsParseNonArrayType();this.lookaheadCharCode()===58?(Tf=!0,Bf=this.createIdentifier(this.startNodeAt(Gm),Um),this.expect(17),this.expect(14),hm=this.tsParseType()):(Tf=!1,hm=Sg,this.expect(17))}else hm=this.tsParseType(),Ph=this.eat(17),Tf=this.eat(14);if(Tf){let Gm;Bf?(Gm=this.startNodeAtNode(Bf),Gm.optional=Ph,Gm.label=Bf,Gm.elementType=hm,this.eat(17)&&(Gm.optional=!0,this.raise(Pg.TupleOptionalAfterType,this.state.lastTokStartLoc))):(Gm=this.startNodeAtNode(hm),Gm.optional=Ph,this.raise(Pg.InvalidTupleMemberLabel,hm),Gm.label=hm,Gm.elementType=this.tsParseType()),hm=this.finishNode(Gm,"TSNamedTupleMember")}else if(Ph){let Gm=this.startNodeAtNode(hm);Gm.typeAnnotation=hm,hm=this.finishNode(Gm,"TSOptionalType")}if(Zd){let Gm=this.startNodeAt(zd);Gm.typeAnnotation=hm,hm=this.finishNode(Gm,"TSRestType")}return hm}tsParseParenthesizedType(){let zd=this.startNode();return this.expect(10),zd.typeAnnotation=this.tsParseType(),this.expect(11),this.finishNode(zd,"TSParenthesizedType")}tsParseFunctionOrConstructorType(zd,Zd){let Tf=this.startNode();return zd==="TSConstructorType"&&(Tf.abstract=!!Zd,Zd&&this.next(),this.next()),this.tsInAllowConditionalTypesContext(()=>this.tsFillSignature(19,Tf)),this.finishNode(Tf,zd)}tsParseLiteralTypeNode(){let zd=this.startNode();switch(this.state.type){case 134:case 135:case 133:case 85:case 86:zd.literal=super.parseExprAtom();break;default:this.unexpected()}return this.finishNode(zd,"TSLiteralType")}tsParseTemplateLiteralType(){let zd=this.startNode();return zd.literal=super.parseTemplate(!1),this.finishNode(zd,"TSLiteralType")}parseTemplateSubstitution(){return this.state.inType?this.tsParseType():super.parseTemplateSubstitution()}tsParseThisTypeOrThisTypePredicate(){let zd=this.tsParseThisTypeNode();return this.isContextual(116)&&!this.hasPrecedingLineBreak()?this.tsParseThisTypePredicate(zd):zd}tsParseNonArrayType(){switch(this.state.type){case 133:case 134:case 135:case 85:case 86:return this.tsParseLiteralTypeNode();case 53:if(this.state.value==="-"){let zd=this.startNode(),Zd=this.lookahead();return Zd.type!==134&&Zd.type!==135&&this.unexpected(),zd.literal=this.parseMaybeUnary(),this.finishNode(zd,"TSLiteralType")}break;case 78:return this.tsParseThisTypeOrThisTypePredicate();case 87:return this.tsParseTypeQuery();case 83:return this.tsParseImportType();case 5:return this.tsLookAhead(this.tsIsStartOfMappedType.bind(this))?this.tsParseMappedType():this.tsParseTypeLiteral();case 0:return this.tsParseTupleType();case 10:return this.tsParseParenthesizedType();case 25:case 24:return this.tsParseTemplateLiteralType();default:{let{type:zd}=this.state;if(_h(zd)||zd===88||zd===84){let Zd=zd===88?"TSVoidKeyword":zd===84?"TSNullKeyword":H_(this.state.value);if(Zd!==void 0&&this.lookaheadCharCode()!==46){let Tf=this.startNode();return this.next(),this.finishNode(Tf,Zd)}return this.tsParseTypeReference()}}}this.unexpected()}tsParseArrayTypeOrHigher(){let zd=this.tsParseNonArrayType();for(;!this.hasPrecedingLineBreak()&&this.eat(0);)if(this.match(3)){let Zd=this.startNodeAtNode(zd);Zd.elementType=zd,this.expect(3),zd=this.finishNode(Zd,"TSArrayType")}else{let Zd=this.startNodeAtNode(zd);Zd.objectType=zd,Zd.indexType=this.tsParseType(),this.expect(3),zd=this.finishNode(Zd,"TSIndexedAccessType")}return zd}tsParseTypeOperator(){let zd=this.startNode(),Zd=this.state.value;return this.next(),zd.operator=Zd,zd.typeAnnotation=this.tsParseTypeOperatorOrHigher(),Zd==="readonly"&&this.tsCheckTypeAnnotationForReadOnly(zd),this.finishNode(zd,"TSTypeOperator")}tsCheckTypeAnnotationForReadOnly(zd){switch(zd.typeAnnotation.type){case"TSTupleType":case"TSArrayType":return;default:this.raise(Pg.UnexpectedReadonly,zd)}}tsParseInferType(){let zd=this.startNode();this.expectContextual(115);let Zd=this.startNode();return Zd.name=this.tsParseTypeParameterName(),Zd.constraint=this.tsTryParse(()=>this.tsParseConstraintForInferType()),zd.typeParameter=this.finishNode(Zd,"TSTypeParameter"),this.finishNode(zd,"TSInferType")}tsParseConstraintForInferType(){if(this.eat(81)){let zd=this.tsInDisallowConditionalTypesContext(()=>this.tsParseType());if(this.state.inDisallowConditionalTypesContext||!this.match(17))return zd}}tsParseTypeOperatorOrHigher(){return zh(this.state.type)&&!this.state.containsEsc?this.tsParseTypeOperator():this.isContextual(115)?this.tsParseInferType():this.tsInAllowConditionalTypesContext(()=>this.tsParseArrayTypeOrHigher())}tsParseUnionOrIntersectionType(zd,Zd,Tf){let Bf=this.startNode(),Ph=this.eat(Tf),hm=[];do hm.push(Zd());while(this.eat(Tf));return hm.length===1&&!Ph?hm[0]:(Bf.types=hm,this.finishNode(Bf,zd))}tsParseIntersectionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSIntersectionType",this.tsParseTypeOperatorOrHigher.bind(this),45)}tsParseUnionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSUnionType",this.tsParseIntersectionTypeOrHigher.bind(this),43)}tsIsStartOfFunctionType(){return this.match(47)?!0:this.match(10)&&this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this))}tsSkipParameterStart(){if(_h(this.state.type)||this.match(78))return this.next(),!0;if(this.match(5)){let{errors:zd}=this.state,Zd=zd.length;try{return this.parseObjectLike(8,!0),zd.length===Zd}catch{return!1}}if(this.match(0)){this.next();let{errors:zd}=this.state,Zd=zd.length;try{return super.parseBindingList(3,93,1),zd.length===Zd}catch{return!1}}return!1}tsIsUnambiguouslyStartOfFunctionType(){return this.next(),!!(this.match(11)||this.match(21)||this.tsSkipParameterStart()&&(this.match(14)||this.match(12)||this.match(17)||this.match(29)||this.match(11)&&(this.next(),this.match(19))))}tsParseTypeOrTypePredicateAnnotation(zd){return this.tsInType(()=>{let Zd=this.startNode();this.expect(zd);let Tf=this.startNode(),Bf=!!this.tsTryParse(this.tsParseTypePredicateAsserts.bind(this));if(Bf&&this.match(78)){let Im=this.tsParseThisTypeOrThisTypePredicate();return Im.type==="TSThisType"?(Tf.parameterName=Im,Tf.asserts=!0,Tf.typeAnnotation=null,Im=this.finishNode(Tf,"TSTypePredicate")):(this.resetStartLocationFromNode(Im,Tf),Im.asserts=!0),Zd.typeAnnotation=Im,this.finishNode(Zd,"TSTypeAnnotation")}let Ph=this.tsIsIdentifier()&&this.tsTryParse(this.tsParseTypePredicatePrefix.bind(this));if(!Ph)return Bf?(Tf.parameterName=this.parseIdentifier(),Tf.asserts=Bf,Tf.typeAnnotation=null,Zd.typeAnnotation=this.finishNode(Tf,"TSTypePredicate"),this.finishNode(Zd,"TSTypeAnnotation")):this.tsParseTypeAnnotation(!1,Zd);let hm=this.tsParseTypeAnnotation(!1);return Tf.parameterName=Ph,Tf.typeAnnotation=hm,Tf.asserts=Bf,Zd.typeAnnotation=this.finishNode(Tf,"TSTypePredicate"),this.finishNode(Zd,"TSTypeAnnotation")})}tsTryParseTypeOrTypePredicateAnnotation(){if(this.match(14))return this.tsParseTypeOrTypePredicateAnnotation(14)}tsTryParseTypeAnnotation(){if(this.match(14))return this.tsParseTypeAnnotation()}tsTryParseType(){return this.tsEatThenParseType(14)}tsParseTypePredicatePrefix(){let zd=this.parseIdentifier();if(this.isContextual(116)&&!this.hasPrecedingLineBreak())return this.next(),zd}tsParseTypePredicateAsserts(){if(this.state.type!==109)return!1;let zd=this.state.containsEsc;return this.next(),!_h(this.state.type)&&!this.match(78)?!1:(zd&&this.raise(Ud.InvalidEscapedReservedWord,this.state.lastTokStartLoc,{reservedWord:"asserts"}),!0)}tsParseTypeAnnotation(zd=!0,Zd=this.startNode()){return this.tsInType(()=>{zd&&this.expect(14),Zd.typeAnnotation=this.tsParseType()}),this.finishNode(Zd,"TSTypeAnnotation")}tsParseType(){_S(this.state.inType);let zd=this.tsParseNonConditionalType();if(this.state.inDisallowConditionalTypesContext||this.hasPrecedingLineBreak()||!this.eat(81))return zd;let Zd=this.startNodeAtNode(zd);return Zd.checkType=zd,Zd.extendsType=this.tsInDisallowConditionalTypesContext(()=>this.tsParseNonConditionalType()),this.expect(17),Zd.trueType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.expect(14),Zd.falseType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.finishNode(Zd,"TSConditionalType")}isAbstractConstructorSignature(){return this.isContextual(124)&&this.lookahead().type===77}tsParseNonConditionalType(){return this.tsIsStartOfFunctionType()?this.tsParseFunctionOrConstructorType("TSFunctionType"):this.match(77)?this.tsParseFunctionOrConstructorType("TSConstructorType"):this.isAbstractConstructorSignature()?this.tsParseFunctionOrConstructorType("TSConstructorType",!0):this.tsParseUnionTypeOrHigher()}tsParseTypeAssertion(){this.getPluginOption("typescript","disallowAmbiguousJSXLike")&&this.raise(Pg.ReservedTypeAssertion,this.state.startLoc);let zd=this.startNode();return zd.typeAnnotation=this.tsInType(()=>(this.next(),this.match(75)?this.tsParseTypeReference():this.tsParseType())),this.expect(48),zd.expression=this.parseMaybeUnary(),this.finishNode(zd,"TSTypeAssertion")}tsParseHeritageClause(zd){let Zd=this.state.startLoc,Tf=this.tsParseDelimitedList("HeritageClauseElement",()=>{let Bf=this.startNode();return Bf.expression=this.tsParseEntityName(),this.match(47)&&(Bf.typeParameters=this.tsParseTypeArguments()),this.finishNode(Bf,"TSExpressionWithTypeArguments")});return Tf.length||this.raise(Pg.EmptyHeritageClauseType,Zd,{token:zd}),Tf}tsParseInterfaceDeclaration(zd,Zd={}){if(this.hasFollowingLineBreak())return null;this.expectContextual(129),Zd.declare&&(zd.declare=!0),_h(this.state.type)?(zd.id=this.parseIdentifier(),this.checkIdentifier(zd.id,130)):(zd.id=null,this.raise(Pg.MissingInterfaceName,this.state.startLoc)),zd.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers),this.eat(81)&&(zd.extends=this.tsParseHeritageClause("extends"));let Tf=this.startNode();return Tf.body=this.tsInType(this.tsParseObjectTypeMembers.bind(this)),zd.body=this.finishNode(Tf,"TSInterfaceBody"),this.finishNode(zd,"TSInterfaceDeclaration")}tsParseTypeAliasDeclaration(zd){return zd.id=this.parseIdentifier(),this.checkIdentifier(zd.id,2),zd.typeAnnotation=this.tsInType(()=>{if(zd.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutModifiers),this.expect(29),this.isContextual(114)&&this.lookahead().type!==16){let Zd=this.startNode();return this.next(),this.finishNode(Zd,"TSIntrinsicKeyword")}return this.tsParseType()}),this.semicolon(),this.finishNode(zd,"TSTypeAliasDeclaration")}tsInNoContext(zd){let Zd=this.state.context;this.state.context=[Zd[0]];try{return zd()}finally{this.state.context=Zd}}tsInType(zd){let Zd=this.state.inType;this.state.inType=!0;try{return zd()}finally{this.state.inType=Zd}}tsInDisallowConditionalTypesContext(zd){let Zd=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!0;try{return zd()}finally{this.state.inDisallowConditionalTypesContext=Zd}}tsInAllowConditionalTypesContext(zd){let Zd=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!1;try{return zd()}finally{this.state.inDisallowConditionalTypesContext=Zd}}tsEatThenParseType(zd){if(this.match(zd))return this.tsNextThenParseType()}tsExpectThenParseType(zd){return this.tsInType(()=>(this.expect(zd),this.tsParseType()))}tsNextThenParseType(){return this.tsInType(()=>(this.next(),this.tsParseType()))}tsParseEnumMember(){let zd=this.startNode();return zd.id=this.match(133)?super.parseStringLiteral(this.state.value):this.parseIdentifier(!0),this.eat(29)&&(zd.initializer=super.parseMaybeAssignAllowIn()),this.finishNode(zd,"TSEnumMember")}tsParseEnumDeclaration(zd,Zd={}){return Zd.const&&(zd.const=!0),Zd.declare&&(zd.declare=!0),this.expectContextual(126),zd.id=this.parseIdentifier(),this.checkIdentifier(zd.id,zd.const?8971:8459),this.expect(5),zd.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(8),this.finishNode(zd,"TSEnumDeclaration")}tsParseModuleBlock(){let zd=this.startNode();return this.scope.enter(0),this.expect(5),super.parseBlockOrModuleBlockBody(zd.body=[],void 0,!0,8),this.scope.exit(),this.finishNode(zd,"TSModuleBlock")}tsParseModuleOrNamespaceDeclaration(zd,Zd=!1){if(zd.id=this.parseIdentifier(),Zd||this.checkIdentifier(zd.id,1024),this.eat(16)){let Tf=this.startNode();this.tsParseModuleOrNamespaceDeclaration(Tf,!0),zd.body=Tf}else this.scope.enter(256),this.prodParam.enter(0),zd.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit();return this.finishNode(zd,"TSModuleDeclaration")}tsParseAmbientExternalModuleDeclaration(zd){return this.isContextual(112)?(zd.global=!0,zd.id=this.parseIdentifier()):this.match(133)?zd.id=super.parseStringLiteral(this.state.value):this.unexpected(),this.match(5)?(this.scope.enter(256),this.prodParam.enter(0),zd.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit()):this.semicolon(),this.finishNode(zd,"TSModuleDeclaration")}tsParseImportEqualsDeclaration(zd,Zd,Tf){zd.isExport=Tf||!1,zd.id=Zd||this.parseIdentifier(),this.checkIdentifier(zd.id,4096),this.expect(29);let Bf=this.tsParseModuleReference();return zd.importKind==="type"&&Bf.type!=="TSExternalModuleReference"&&this.raise(Pg.ImportAliasHasImportType,Bf),zd.moduleReference=Bf,this.semicolon(),this.finishNode(zd,"TSImportEqualsDeclaration")}tsIsExternalModuleReference(){return this.isContextual(119)&&this.lookaheadCharCode()===40}tsParseModuleReference(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(!1)}tsParseExternalModuleReference(){let zd=this.startNode();return this.expectContextual(119),this.expect(10),this.match(133)||this.unexpected(),zd.expression=super.parseExprAtom(),this.expect(11),this.sawUnambiguousESM=!0,this.finishNode(zd,"TSExternalModuleReference")}tsLookAhead(zd){let Zd=this.state.clone(),Tf=zd();return this.state=Zd,Tf}tsTryParseAndCatch(zd){let Zd=this.tryParse(Tf=>zd()||Tf());if(!(Zd.aborted||!Zd.node))return Zd.error&&(this.state=Zd.failState),Zd.node}tsTryParse(zd){let Zd=this.state.clone(),Tf=zd();if(Tf!==void 0&&Tf!==!1)return Tf;this.state=Zd}tsTryParseDeclare(zd){if(this.isLineTerminator())return;let Zd=this.state.type,Tf;return this.isContextual(100)&&(Zd=74,Tf="let"),this.tsInAmbientContext(()=>{switch(Zd){case 68:return zd.declare=!0,super.parseFunctionStatement(zd,!1,!1);case 80:return zd.declare=!0,this.parseClass(zd,!0,!1);case 126:return this.tsParseEnumDeclaration(zd,{declare:!0});case 112:return this.tsParseAmbientExternalModuleDeclaration(zd);case 75:case 74:return!this.match(75)||!this.isLookaheadContextual("enum")?(zd.declare=!0,this.parseVarStatement(zd,Tf||this.state.value,!0)):(this.expect(75),this.tsParseEnumDeclaration(zd,{const:!0,declare:!0}));case 129:{let Bf=this.tsParseInterfaceDeclaration(zd,{declare:!0});if(Bf)return Bf}default:if(_h(Zd))return this.tsParseDeclaration(zd,this.state.value,!0,null)}})}tsTryParseExportDeclaration(){return this.tsParseDeclaration(this.startNode(),this.state.value,!0,null)}tsParseExpressionStatement(zd,Zd,Tf){switch(Zd.name){case"declare":{let Bf=this.tsTryParseDeclare(zd);return Bf&&(Bf.declare=!0),Bf}case"global":if(this.match(5)){this.scope.enter(256),this.prodParam.enter(0);let Bf=zd;return Bf.global=!0,Bf.id=Zd,Bf.body=this.tsParseModuleBlock(),this.scope.exit(),this.prodParam.exit(),this.finishNode(Bf,"TSModuleDeclaration")}break;default:return this.tsParseDeclaration(zd,Zd.name,!1,Tf)}}tsParseDeclaration(zd,Zd,Tf,Bf){switch(Zd){case"abstract":if(this.tsCheckLineTerminator(Tf)&&(this.match(80)||_h(this.state.type)))return this.tsParseAbstractDeclaration(zd,Bf);break;case"module":if(this.tsCheckLineTerminator(Tf)){if(this.match(133))return this.tsParseAmbientExternalModuleDeclaration(zd);if(_h(this.state.type))return this.tsParseModuleOrNamespaceDeclaration(zd)}break;case"namespace":if(this.tsCheckLineTerminator(Tf)&&_h(this.state.type))return this.tsParseModuleOrNamespaceDeclaration(zd);break;case"type":if(this.tsCheckLineTerminator(Tf)&&_h(this.state.type))return this.tsParseTypeAliasDeclaration(zd);break}}tsCheckLineTerminator(zd){return zd?this.hasFollowingLineBreak()?!1:(this.next(),!0):!this.isLineTerminator()}tsTryParseGenericAsyncArrowFunction(zd){if(!this.match(47))return;let Zd=this.state.maybeInArrowParameters;this.state.maybeInArrowParameters=!0;let Tf=this.tsTryParseAndCatch(()=>{let Bf=this.startNodeAt(zd);return Bf.typeParameters=this.tsParseTypeParameters(this.tsParseConstModifier),super.parseFunctionParams(Bf),Bf.returnType=this.tsTryParseTypeOrTypePredicateAnnotation(),this.expect(19),Bf});if(this.state.maybeInArrowParameters=Zd,!!Tf)return super.parseArrowExpression(Tf,null,!0)}tsParseTypeArgumentsInExpression(){if(this.reScan_lt()===47)return this.tsParseTypeArguments()}tsParseTypeArguments(){let zd=this.startNode();return zd.params=this.tsInType(()=>this.tsInNoContext(()=>(this.expect(47),this.tsParseDelimitedList("TypeParametersOrArguments",this.tsParseType.bind(this))))),zd.params.length===0?this.raise(Pg.EmptyTypeArguments,zd):!this.state.inType&&this.curContext()===Ef.brace&&this.reScan_lt_gt(),this.expect(48),this.finishNode(zd,"TSTypeParameterInstantiation")}tsIsDeclarationStart(){return Mm(this.state.type)}isExportDefaultSpecifier(){return this.tsIsDeclarationStart()?!1:super.isExportDefaultSpecifier()}parseAssignableListItem(zd,Zd){let Tf=this.state.startLoc,Bf={};this.tsParseModifiers({allowedModifiers:["public","private","protected","override","readonly"]},Bf);let Ph=Bf.accessibility,hm=Bf.override,Im=Bf.readonly;!(zd&4)&&(Ph||Im||hm)&&this.raise(Pg.UnexpectedParameterModifier,Tf);let Gm=this.parseMaybeDefault();this.parseAssignableListItemTypes(Gm,zd);let Um=this.parseMaybeDefault(Gm.loc.start,Gm);if(Ph||Im||hm){let Sg=this.startNodeAt(Tf);return Zd.length&&(Sg.decorators=Zd),Ph&&(Sg.accessibility=Ph),Im&&(Sg.readonly=Im),hm&&(Sg.override=hm),Um.type!=="Identifier"&&Um.type!=="AssignmentPattern"&&this.raise(Pg.UnsupportedParameterPropertyKind,Sg),Sg.parameter=Um,this.finishNode(Sg,"TSParameterProperty")}return Zd.length&&(Gm.decorators=Zd),Um}isSimpleParameter(zd){return zd.type==="TSParameterProperty"&&super.isSimpleParameter(zd.parameter)||super.isSimpleParameter(zd)}tsDisallowOptionalPattern(zd){for(let Zd of zd.params)Zd.type!=="Identifier"&&Zd.optional&&!this.state.isAmbientContext&&this.raise(Pg.PatternIsOptional,Zd)}setArrowFunctionParameters(zd,Zd,Tf){super.setArrowFunctionParameters(zd,Zd,Tf),this.tsDisallowOptionalPattern(zd)}parseFunctionBodyAndFinish(zd,Zd,Tf=!1){this.match(14)&&(zd.returnType=this.tsParseTypeOrTypePredicateAnnotation(14));let Bf=Zd==="FunctionDeclaration"?"TSDeclareFunction":Zd==="ClassMethod"||Zd==="ClassPrivateMethod"?"TSDeclareMethod":void 0;return Bf&&!this.match(5)&&this.isLineTerminator()?this.finishNode(zd,Bf):Bf==="TSDeclareFunction"&&this.state.isAmbientContext&&(this.raise(Pg.DeclareFunctionHasImplementation,zd),zd.declare)?super.parseFunctionBodyAndFinish(zd,Bf,Tf):(this.tsDisallowOptionalPattern(zd),super.parseFunctionBodyAndFinish(zd,Zd,Tf))}registerFunctionStatementId(zd){!zd.body&&zd.id?this.checkIdentifier(zd.id,1024):super.registerFunctionStatementId(zd)}tsCheckForInvalidTypeCasts(zd){zd.forEach(Zd=>{(Zd==null?void 0:Zd.type)==="TSTypeCastExpression"&&this.raise(Pg.UnexpectedTypeAnnotation,Zd.typeAnnotation)})}toReferencedList(zd,Zd){return this.tsCheckForInvalidTypeCasts(zd),zd}parseArrayLike(zd,Zd,Tf,Bf){let Ph=super.parseArrayLike(zd,Zd,Tf,Bf);return Ph.type==="ArrayExpression"&&this.tsCheckForInvalidTypeCasts(Ph.elements),Ph}parseSubscript(zd,Zd,Tf,Bf){if(!this.hasPrecedingLineBreak()&&this.match(35)){this.state.canStartJSXElement=!1,this.next();let hm=this.startNodeAt(Zd);return hm.expression=zd,this.finishNode(hm,"TSNonNullExpression")}let Ph=!1;if(this.match(18)&&this.lookaheadCharCode()===60){if(Tf)return Bf.stop=!0,zd;Bf.optionalChainMember=Ph=!0,this.next()}if(this.match(47)||this.match(51)){let hm,Im=this.tsTryParseAndCatch(()=>{if(!Tf&&this.atPossibleAsyncArrow(zd)){let Bg=this.tsTryParseGenericAsyncArrowFunction(Zd);if(Bg)return Bg}let Gm=this.tsParseTypeArgumentsInExpression();if(!Gm)return;if(Ph&&!this.match(10)){hm=this.state.curPosition();return}if(Ym(this.state.type)){let Bg=super.parseTaggedTemplateExpression(zd,Zd,Bf);return Bg.typeParameters=Gm,Bg}if(!Tf&&this.eat(10)){let Bg=this.startNodeAt(Zd);return Bg.callee=zd,Bg.arguments=this.parseCallExpressionArguments(11,!1),this.tsCheckForInvalidTypeCasts(Bg.arguments),Bg.typeParameters=Gm,Bf.optionalChainMember&&(Bg.optional=Ph),this.finishCallExpression(Bg,Bf.optionalChainMember)}let Um=this.state.type;if(Um===48||Um===52||Um!==10&&Xh(Um)&&!this.hasPrecedingLineBreak())return;let Sg=this.startNodeAt(Zd);return Sg.expression=zd,Sg.typeParameters=Gm,this.finishNode(Sg,"TSInstantiationExpression")});if(hm&&this.unexpected(hm,10),Im)return Im.type==="TSInstantiationExpression"&&(this.match(16)||this.match(18)&&this.lookaheadCharCode()!==40)&&this.raise(Pg.InvalidPropertyAccessAfterInstantiationExpression,this.state.startLoc),Im}return super.parseSubscript(zd,Zd,Tf,Bf)}parseNewCallee(zd){var Zd;super.parseNewCallee(zd);let{callee:Tf}=zd;Tf.type==="TSInstantiationExpression"&&!((Zd=Tf.extra)!=null&&Zd.parenthesized)&&(zd.typeParameters=Tf.typeParameters,zd.callee=Tf.expression)}parseExprOp(zd,Zd,Tf){let Bf;if(tg(58)>Tf&&!this.hasPrecedingLineBreak()&&(this.isContextual(93)||(Bf=this.isContextual(120)))){let Ph=this.startNodeAt(Zd);return Ph.expression=zd,Ph.typeAnnotation=this.tsInType(()=>(this.next(),this.match(75)?(Bf&&this.raise(Ud.UnexpectedKeyword,this.state.startLoc,{keyword:"const"}),this.tsParseTypeReference()):this.tsParseType())),this.finishNode(Ph,Bf?"TSSatisfiesExpression":"TSAsExpression"),this.reScan_lt_gt(),this.parseExprOp(Ph,Zd,Tf)}return super.parseExprOp(zd,Zd,Tf)}checkReservedWord(zd,Zd,Tf,Bf){this.state.isAmbientContext||super.checkReservedWord(zd,Zd,Tf,Bf)}checkImportReflection(zd){super.checkImportReflection(zd),zd.module&&zd.importKind!=="value"&&this.raise(Pg.ImportReflectionHasImportType,zd.specifiers[0].loc.start)}checkDuplicateExports(){}isPotentialImportPhase(zd){if(super.isPotentialImportPhase(zd))return!0;if(this.isContextual(130)){let Zd=this.lookaheadCharCode();return zd?Zd===123||Zd===42:Zd!==61}return!zd&&this.isContextual(87)}applyImportPhase(zd,Zd,Tf,Bf){super.applyImportPhase(zd,Zd,Tf,Bf),Zd?zd.exportKind=Tf==="type"?"type":"value":zd.importKind=Tf==="type"||Tf==="typeof"?Tf:"value"}parseImport(zd){if(this.match(133))return zd.importKind="value",super.parseImport(zd);let Zd;if(_h(this.state.type)&&this.lookaheadCharCode()===61)return zd.importKind="value",this.tsParseImportEqualsDeclaration(zd);if(this.isContextual(130)){let Tf=this.parseMaybeImportPhase(zd,!1);if(this.lookaheadCharCode()===61)return this.tsParseImportEqualsDeclaration(zd,Tf);Zd=super.parseImportSpecifiersAndAfter(zd,Tf)}else Zd=super.parseImport(zd);return Zd.importKind==="type"&&Zd.specifiers.length>1&&Zd.specifiers[0].type==="ImportDefaultSpecifier"&&this.raise(Pg.TypeImportCannotSpecifyDefaultAndNamed,Zd),Zd}parseExport(zd,Zd){if(this.match(83)){this.next();let Tf=zd,Bf=null;return this.isContextual(130)&&this.isPotentialImportPhase(!1)?Bf=this.parseMaybeImportPhase(Tf,!1):Tf.importKind="value",this.tsParseImportEqualsDeclaration(Tf,Bf,!0)}else if(this.eat(29)){let Tf=zd;return Tf.expression=super.parseExpression(),this.semicolon(),this.sawUnambiguousESM=!0,this.finishNode(Tf,"TSExportAssignment")}else if(this.eatContextual(93)){let Tf=zd;return this.expectContextual(128),Tf.id=this.parseIdentifier(),this.semicolon(),this.finishNode(Tf,"TSNamespaceExportDeclaration")}else return super.parseExport(zd,Zd)}isAbstractClass(){return this.isContextual(124)&&this.lookahead().type===80}parseExportDefaultExpression(){if(this.isAbstractClass()){let zd=this.startNode();return this.next(),zd.abstract=!0,this.parseClass(zd,!0,!0)}if(this.match(129)){let zd=this.tsParseInterfaceDeclaration(this.startNode());if(zd)return zd}return super.parseExportDefaultExpression()}parseVarStatement(zd,Zd,Tf=!1){let{isAmbientContext:Bf}=this.state,Ph=super.parseVarStatement(zd,Zd,Tf||Bf);if(!Bf)return Ph;for(let{id:hm,init:Im}of Ph.declarations)Im&&(Zd!=="const"||hm.typeAnnotation?this.raise(Pg.InitializerNotAllowedInAmbientContext,Im):ES(Im,this.hasPlugin("estree"))||this.raise(Pg.ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference,Im));return Ph}parseStatementContent(zd,Zd){if(this.match(75)&&this.isLookaheadContextual("enum")){let Tf=this.startNode();return this.expect(75),this.tsParseEnumDeclaration(Tf,{const:!0})}if(this.isContextual(126))return this.tsParseEnumDeclaration(this.startNode());if(this.isContextual(129)){let Tf=this.tsParseInterfaceDeclaration(this.startNode());if(Tf)return Tf}return super.parseStatementContent(zd,Zd)}parseAccessModifier(){return this.tsParseModifier(["public","protected","private"])}tsHasSomeModifiers(zd,Zd){return Zd.some(Tf=>oE(Tf)?zd.accessibility===Tf:!!zd[Tf])}tsIsStartOfStaticBlocks(){return this.isContextual(106)&&this.lookaheadCharCode()===123}parseClassMember(zd,Zd,Tf){let Bf=["declare","private","public","protected","override","abstract","readonly","static"];this.tsParseModifiers({allowedModifiers:Bf,disallowedModifiers:["in","out"],stopOnStartOfClassStaticBlock:!0,errorTemplate:Pg.InvalidModifierOnTypeParameterPositions},Zd);let Ph=()=>{this.tsIsStartOfStaticBlocks()?(this.next(),this.next(),this.tsHasSomeModifiers(Zd,Bf)&&this.raise(Pg.StaticBlockCannotHaveModifier,this.state.curPosition()),super.parseClassStaticBlock(zd,Zd)):this.parseClassMemberWithIsStatic(zd,Zd,Tf,!!Zd.static)};Zd.declare?this.tsInAmbientContext(Ph):Ph()}parseClassMemberWithIsStatic(zd,Zd,Tf,Bf){let Ph=this.tsTryParseIndexSignature(Zd);if(Ph){zd.body.push(Ph),Zd.abstract&&this.raise(Pg.IndexSignatureHasAbstract,Zd),Zd.accessibility&&this.raise(Pg.IndexSignatureHasAccessibility,Zd,{modifier:Zd.accessibility}),Zd.declare&&this.raise(Pg.IndexSignatureHasDeclare,Zd),Zd.override&&this.raise(Pg.IndexSignatureHasOverride,Zd);return}!this.state.inAbstractClass&&Zd.abstract&&this.raise(Pg.NonAbstractClassHasAbstractMethod,Zd),Zd.override&&(Tf.hadSuperClass||this.raise(Pg.OverrideNotInSubClass,Zd)),super.parseClassMemberWithIsStatic(zd,Zd,Tf,Bf)}parsePostMemberNameModifiers(zd){this.eat(17)&&(zd.optional=!0),zd.readonly&&this.match(10)&&this.raise(Pg.ClassMethodHasReadonly,zd),zd.declare&&this.match(10)&&this.raise(Pg.ClassMethodHasDeclare,zd)}parseExpressionStatement(zd,Zd,Tf){return(Zd.type==="Identifier"?this.tsParseExpressionStatement(zd,Zd,Tf):void 0)||super.parseExpressionStatement(zd,Zd,Tf)}shouldParseExportDeclaration(){return this.tsIsDeclarationStart()?!0:super.shouldParseExportDeclaration()}parseConditional(zd,Zd,Tf){if(!this.state.maybeInArrowParameters||!this.match(17))return super.parseConditional(zd,Zd,Tf);let Bf=this.tryParse(()=>super.parseConditional(zd,Zd));return Bf.node?(Bf.error&&(this.state=Bf.failState),Bf.node):(Bf.error&&super.setOptionalParametersError(Tf,Bf.error),zd)}parseParenItem(zd,Zd){let Tf=super.parseParenItem(zd,Zd);if(this.eat(17)&&(Tf.optional=!0,this.resetEndLocation(zd)),this.match(14)){let Bf=this.startNodeAt(Zd);return Bf.expression=zd,Bf.typeAnnotation=this.tsParseTypeAnnotation(),this.finishNode(Bf,"TSTypeCastExpression")}return zd}parseExportDeclaration(zd){if(!this.state.isAmbientContext&&this.isContextual(125))return this.tsInAmbientContext(()=>this.parseExportDeclaration(zd));let Zd=this.state.startLoc,Tf=this.eatContextual(125);if(Tf&&(this.isContextual(125)||!this.shouldParseExportDeclaration()))throw this.raise(Pg.ExpectedAmbientAfterExportDeclare,this.state.startLoc);let Bf=_h(this.state.type)&&this.tsTryParseExportDeclaration()||super.parseExportDeclaration(zd);return Bf?((Bf.type==="TSInterfaceDeclaration"||Bf.type==="TSTypeAliasDeclaration"||Tf)&&(zd.exportKind="type"),Tf&&(this.resetStartLocation(Bf,Zd),Bf.declare=!0),Bf):null}parseClassId(zd,Zd,Tf,Bf){if((!Zd||Tf)&&this.isContextual(113))return;super.parseClassId(zd,Zd,Tf,zd.declare?1024:8331);let Ph=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers);Ph&&(zd.typeParameters=Ph)}parseClassPropertyAnnotation(zd){zd.optional||(this.eat(35)?zd.definite=!0:this.eat(17)&&(zd.optional=!0));let Zd=this.tsTryParseTypeAnnotation();Zd&&(zd.typeAnnotation=Zd)}parseClassProperty(zd){if(this.parseClassPropertyAnnotation(zd),this.state.isAmbientContext&&!(zd.readonly&&!zd.typeAnnotation)&&this.match(29)&&this.raise(Pg.DeclareClassFieldHasInitializer,this.state.startLoc),zd.abstract&&this.match(29)){let{key:Zd}=zd;this.raise(Pg.AbstractPropertyHasInitializer,this.state.startLoc,{propertyName:Zd.type==="Identifier"&&!zd.computed?Zd.name:`[${this.input.slice(Zd.start,Zd.end)}]`})}return super.parseClassProperty(zd)}parseClassPrivateProperty(zd){return zd.abstract&&this.raise(Pg.PrivateElementHasAbstract,zd),zd.accessibility&&this.raise(Pg.PrivateElementHasAccessibility,zd,{modifier:zd.accessibility}),this.parseClassPropertyAnnotation(zd),super.parseClassPrivateProperty(zd)}parseClassAccessorProperty(zd){return this.parseClassPropertyAnnotation(zd),zd.optional&&this.raise(Pg.AccessorCannotBeOptional,zd),super.parseClassAccessorProperty(zd)}pushClassMethod(zd,Zd,Tf,Bf,Ph,hm){let Im=this.tsTryParseTypeParameters(this.tsParseConstModifier);Im&&Ph&&this.raise(Pg.ConstructorHasTypeParameters,Im);let{declare:Gm=!1,kind:Um}=Zd;Gm&&(Um==="get"||Um==="set")&&this.raise(Pg.DeclareAccessor,Zd,{kind:Um}),Im&&(Zd.typeParameters=Im),super.pushClassMethod(zd,Zd,Tf,Bf,Ph,hm)}pushClassPrivateMethod(zd,Zd,Tf,Bf){let Ph=this.tsTryParseTypeParameters(this.tsParseConstModifier);Ph&&(Zd.typeParameters=Ph),super.pushClassPrivateMethod(zd,Zd,Tf,Bf)}declareClassPrivateMethodInScope(zd,Zd){zd.type!=="TSDeclareMethod"&&(zd.type==="MethodDefinition"&&!hasOwnProperty.call(zd.value,"body")||super.declareClassPrivateMethodInScope(zd,Zd))}parseClassSuper(zd){super.parseClassSuper(zd),zd.superClass&&(this.match(47)||this.match(51))&&(zd.superTypeParameters=this.tsParseTypeArgumentsInExpression()),this.eatContextual(113)&&(zd.implements=this.tsParseHeritageClause("implements"))}parseObjPropValue(zd,Zd,Tf,Bf,Ph,hm,Im){let Gm=this.tsTryParseTypeParameters(this.tsParseConstModifier);return Gm&&(zd.typeParameters=Gm),super.parseObjPropValue(zd,Zd,Tf,Bf,Ph,hm,Im)}parseFunctionParams(zd,Zd){let Tf=this.tsTryParseTypeParameters(this.tsParseConstModifier);Tf&&(zd.typeParameters=Tf),super.parseFunctionParams(zd,Zd)}parseVarId(zd,Zd){super.parseVarId(zd,Zd),zd.id.type==="Identifier"&&!this.hasPrecedingLineBreak()&&this.eat(35)&&(zd.definite=!0);let Tf=this.tsTryParseTypeAnnotation();Tf&&(zd.id.typeAnnotation=Tf,this.resetEndLocation(zd.id))}parseAsyncArrowFromCallExpression(zd,Zd){return this.match(14)&&(zd.returnType=this.tsParseTypeAnnotation()),super.parseAsyncArrowFromCallExpression(zd,Zd)}parseMaybeAssign(zd,Zd){var Tf,Bf,Ph,hm,Im;let Gm,Um,Sg;if(this.hasPlugin("jsx")&&(this.match(142)||this.match(47))){if(Gm=this.state.clone(),Um=this.tryParse(()=>super.parseMaybeAssign(zd,Zd),Gm),!Um.error)return Um.node;let{context:Zg}=this.state,g_=Zg[Zg.length-1];(g_===Ef.j_oTag||g_===Ef.j_expr)&&Zg.pop()}if(!((Tf=Um)!=null&&Tf.error)&&!this.match(47))return super.parseMaybeAssign(zd,Zd);(!Gm||Gm===this.state)&&(Gm=this.state.clone());let Bg,Xg=this.tryParse(Zg=>{var g_,tb;Bg=this.tsParseTypeParameters(this.tsParseConstModifier);let D_=super.parseMaybeAssign(zd,Zd);return(D_.type!=="ArrowFunctionExpression"||(g_=D_.extra)!=null&&g_.parenthesized)&&Zg(),((tb=Bg)==null?void 0:tb.params.length)!==0&&this.resetStartLocationFromNode(D_,Bg),D_.typeParameters=Bg,D_},Gm);if(!Xg.error&&!Xg.aborted)return Bg&&this.reportReservedArrowTypeParam(Bg),Xg.node;if(!Um&&(_S(!this.hasPlugin("jsx")),Sg=this.tryParse(()=>super.parseMaybeAssign(zd,Zd),Gm),!Sg.error))return Sg.node;if((Bf=Um)!=null&&Bf.node)return this.state=Um.failState,Um.node;if(Xg.node)return this.state=Xg.failState,Bg&&this.reportReservedArrowTypeParam(Bg),Xg.node;if((Ph=Sg)!=null&&Ph.node)return this.state=Sg.failState,Sg.node;throw((hm=Um)==null?void 0:hm.error)||Xg.error||((Im=Sg)==null?void 0:Im.error)}reportReservedArrowTypeParam(zd){var Zd;zd.params.length===1&&!zd.params[0].constraint&&!((Zd=zd.extra)!=null&&Zd.trailingComma)&&this.getPluginOption("typescript","disallowAmbiguousJSXLike")&&this.raise(Pg.ReservedArrowTypeParam,zd)}parseMaybeUnary(zd,Zd){return!this.hasPlugin("jsx")&&this.match(47)?this.tsParseTypeAssertion():super.parseMaybeUnary(zd,Zd)}parseArrow(zd){if(this.match(14)){let Zd=this.tryParse(Tf=>{let Bf=this.tsParseTypeOrTypePredicateAnnotation(14);return(this.canInsertSemicolon()||!this.match(19))&&Tf(),Bf});if(Zd.aborted)return;Zd.thrown||(Zd.error&&(this.state=Zd.failState),zd.returnType=Zd.node)}return super.parseArrow(zd)}parseAssignableListItemTypes(zd,Zd){if(!(Zd&2))return zd;this.eat(17)&&(zd.optional=!0);let Tf=this.tsTryParseTypeAnnotation();return Tf&&(zd.typeAnnotation=Tf),this.resetEndLocation(zd),zd}isAssignable(zd,Zd){switch(zd.type){case"TSTypeCastExpression":return this.isAssignable(zd.expression,Zd);case"TSParameterProperty":return!0;default:return super.isAssignable(zd,Zd)}}toAssignable(zd,Zd=!1){switch(zd.type){case"ParenthesizedExpression":this.toAssignableParenthesizedExpression(zd,Zd);break;case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":Zd?this.expressionScope.recordArrowParameterBindingError(Pg.UnexpectedTypeCastInParameter,zd):this.raise(Pg.UnexpectedTypeCastInParameter,zd),this.toAssignable(zd.expression,Zd);break;case"AssignmentExpression":!Zd&&zd.left.type==="TSTypeCastExpression"&&(zd.left=this.typeCastToParameter(zd.left));default:super.toAssignable(zd,Zd)}}toAssignableParenthesizedExpression(zd,Zd){switch(zd.expression.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":case"ParenthesizedExpression":this.toAssignable(zd.expression,Zd);break;default:super.toAssignable(zd,Zd)}}checkToRestConversion(zd,Zd){switch(zd.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":this.checkToRestConversion(zd.expression,!1);break;default:super.checkToRestConversion(zd,Zd)}}isValidLVal(zd,Zd,Tf){return xv({TSTypeCastExpression:!0,TSParameterProperty:"parameter",TSNonNullExpression:"expression",TSInstantiationExpression:"expression",TSAsExpression:(Tf!==64||!Zd)&&["expression",!0],TSSatisfiesExpression:(Tf!==64||!Zd)&&["expression",!0],TSTypeAssertion:(Tf!==64||!Zd)&&["expression",!0]},zd)||super.isValidLVal(zd,Zd,Tf)}parseBindingAtom(){return this.state.type===78?this.parseIdentifier(!0):super.parseBindingAtom()}parseMaybeDecoratorArguments(zd){if(this.match(47)||this.match(51)){let Zd=this.tsParseTypeArgumentsInExpression();if(this.match(10)){let Tf=super.parseMaybeDecoratorArguments(zd);return Tf.typeParameters=Zd,Tf}this.unexpected(null,10)}return super.parseMaybeDecoratorArguments(zd)}checkCommaAfterRest(zd){return this.state.isAmbientContext&&this.match(12)&&this.lookaheadCharCode()===zd?(this.next(),!1):super.checkCommaAfterRest(zd)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(35)||this.match(14)||super.isClassProperty()}parseMaybeDefault(zd,Zd){let Tf=super.parseMaybeDefault(zd,Zd);return Tf.type==="AssignmentPattern"&&Tf.typeAnnotation&&Tf.right.startthis.isAssignable(Zd,!0)):super.shouldParseArrow(zd)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}canHaveLeadingDecorator(){return super.canHaveLeadingDecorator()||this.isAbstractClass()}jsxParseOpeningElementAfterName(zd){if(this.match(47)||this.match(51)){let Zd=this.tsTryParseAndCatch(()=>this.tsParseTypeArgumentsInExpression());Zd&&(zd.typeParameters=Zd)}return super.jsxParseOpeningElementAfterName(zd)}getGetterSetterExpectedParamCount(zd){let Zd=super.getGetterSetterExpectedParamCount(zd),Tf=this.getObjectOrClassMethodParams(zd)[0];return Tf&&this.isThisParam(Tf)?Zd+1:Zd}parseCatchClauseParam(){let zd=super.parseCatchClauseParam(),Zd=this.tsTryParseTypeAnnotation();return Zd&&(zd.typeAnnotation=Zd,this.resetEndLocation(zd)),zd}tsInAmbientContext(zd){let{isAmbientContext:Zd,strict:Tf}=this.state;this.state.isAmbientContext=!0,this.state.strict=!1;try{return zd()}finally{this.state.isAmbientContext=Zd,this.state.strict=Tf}}parseClass(zd,Zd,Tf){let Bf=this.state.inAbstractClass;this.state.inAbstractClass=!!zd.abstract;try{return super.parseClass(zd,Zd,Tf)}finally{this.state.inAbstractClass=Bf}}tsParseAbstractDeclaration(zd,Zd){if(this.match(80))return zd.abstract=!0,this.maybeTakeDecorators(Zd,this.parseClass(zd,!0,!1));if(this.isContextual(129)){if(!this.hasFollowingLineBreak())return zd.abstract=!0,this.raise(Pg.NonClassMethodPropertyHasAbstractModifer,zd),this.tsParseInterfaceDeclaration(zd)}else this.unexpected(null,80)}parseMethod(zd,Zd,Tf,Bf,Ph,hm,Im){let Gm=super.parseMethod(zd,Zd,Tf,Bf,Ph,hm,Im);if(Gm.abstract&&(this.hasPlugin("estree")?Gm.value.body:Gm.body)){let{key:Um}=Gm;this.raise(Pg.AbstractMethodHasImplementation,Gm,{methodName:Um.type==="Identifier"&&!Gm.computed?Um.name:`[${this.input.slice(Um.start,Um.end)}]`})}return Gm}tsParseTypeParameterName(){return this.parseIdentifier().name}shouldParseAsAmbientContext(){return!!this.getPluginOption("typescript","dts")}parse(){return this.shouldParseAsAmbientContext()&&(this.state.isAmbientContext=!0),super.parse()}getExpression(){return this.shouldParseAsAmbientContext()&&(this.state.isAmbientContext=!0),super.getExpression()}parseExportSpecifier(zd,Zd,Tf,Bf){return!Zd&&Bf?(this.parseTypeOnlyImportExportSpecifier(zd,!1,Tf),this.finishNode(zd,"ExportSpecifier")):(zd.exportKind="value",super.parseExportSpecifier(zd,Zd,Tf,Bf))}parseImportSpecifier(zd,Zd,Tf,Bf,Ph){return!Zd&&Bf?(this.parseTypeOnlyImportExportSpecifier(zd,!0,Tf),this.finishNode(zd,"ImportSpecifier")):(zd.importKind="value",super.parseImportSpecifier(zd,Zd,Tf,Bf,Tf?4098:4096))}parseTypeOnlyImportExportSpecifier(zd,Zd,Tf){let Bf=Zd?"imported":"local",Ph=Zd?"local":"exported",hm=zd[Bf],Im,Gm=!1,Um=!0,Sg=hm.loc.start;if(this.isContextual(93)){let Xg=this.parseIdentifier();if(this.isContextual(93)){let Zg=this.parseIdentifier();dm(this.state.type)?(Gm=!0,hm=Xg,Im=Zd?this.parseIdentifier():this.parseModuleExportName(),Um=!1):(Im=Zg,Um=!1)}else dm(this.state.type)?(Um=!1,Im=Zd?this.parseIdentifier():this.parseModuleExportName()):(Gm=!0,hm=Xg)}else dm(this.state.type)&&(Gm=!0,Zd?(hm=this.parseIdentifier(!0),this.isContextual(93)||this.checkReservedWord(hm.name,hm.loc.start,!0,!0)):hm=this.parseModuleExportName());Gm&&Tf&&this.raise(Zd?Pg.TypeModifierIsUsedInTypeImports:Pg.TypeModifierIsUsedInTypeExports,Sg),zd[Bf]=hm,zd[Ph]=Im;let Bg=Zd?"importKind":"exportKind";zd[Bg]=Gm?"type":"value",Um&&this.eatContextual(93)&&(zd[Ph]=Zd?this.parseIdentifier():this.parseModuleExportName()),zd[Ph]||(zd[Ph]=xb(zd[Bf])),Zd&&this.checkIdentifier(zd[Ph],Gm?4098:4096)}};function yS(Jd){if(Jd.type!=="MemberExpression")return!1;let{computed:zd,property:Zd}=Jd;return zd&&Zd.type!=="StringLiteral"&&(Zd.type!=="TemplateLiteral"||Zd.expressions.length>0)?!1:wv(Jd.object)}function ES(Jd,zd){var Zd;let{type:Tf}=Jd;if((Zd=Jd.extra)!=null&&Zd.parenthesized)return!1;if(zd){if(Tf==="Literal"){let{value:Bf}=Jd;if(typeof Bf=="string"||typeof Bf=="boolean")return!0}}else if(Tf==="StringLiteral"||Tf==="BooleanLiteral")return!0;return!!(lE(Jd,zd)||vS(Jd,zd)||Tf==="TemplateLiteral"&&Jd.expressions.length===0||yS(Jd))}function lE(Jd,zd){return zd?Jd.type==="Literal"&&(typeof Jd.value=="number"||"bigint"in Jd):Jd.type==="NumericLiteral"||Jd.type==="BigIntLiteral"}function vS(Jd,zd){if(Jd.type==="UnaryExpression"){let{operator:Zd,argument:Tf}=Jd;if(Zd==="-"&&lE(Tf,zd))return!0}return!1}function wv(Jd){return Jd.type==="Identifier"?!0:Jd.type!=="MemberExpression"||Jd.computed?!1:wv(Jd.object)}var j_=Gd`placeholders`({ClassNameIsRequired:"A class name is required.",UnexpectedSpace:"Unexpected space in placeholder."}),Nv=Jd=>class extends Jd{parsePlaceholder(zd){if(this.match(144)){let Zd=this.startNode();return this.next(),this.assertNoSpace(),Zd.name=super.parseIdentifier(!0),this.assertNoSpace(),this.expect(144),this.finishPlaceholder(Zd,zd)}}finishPlaceholder(zd,Zd){let Tf=zd;return(!Tf.expectedNode||!Tf.type)&&(Tf=this.finishNode(Tf,"Placeholder")),Tf.expectedNode=Zd,Tf}getTokenFromCode(zd){zd===37&&this.input.charCodeAt(this.state.pos+1)===37?this.finishOp(144,2):super.getTokenFromCode(zd)}parseExprAtom(zd){return this.parsePlaceholder("Expression")||super.parseExprAtom(zd)}parseIdentifier(zd){return this.parsePlaceholder("Identifier")||super.parseIdentifier(zd)}checkReservedWord(zd,Zd,Tf,Bf){zd!==void 0&&super.checkReservedWord(zd,Zd,Tf,Bf)}parseBindingAtom(){return this.parsePlaceholder("Pattern")||super.parseBindingAtom()}isValidLVal(zd,Zd,Tf){return zd==="Placeholder"||super.isValidLVal(zd,Zd,Tf)}toAssignable(zd,Zd){zd&&zd.type==="Placeholder"&&zd.expectedNode==="Expression"?zd.expectedNode="Pattern":super.toAssignable(zd,Zd)}chStartsBindingIdentifier(zd,Zd){return!!(super.chStartsBindingIdentifier(zd,Zd)||this.lookahead().type===144)}verifyBreakContinue(zd,Zd){zd.label&&zd.label.type==="Placeholder"||super.verifyBreakContinue(zd,Zd)}parseExpressionStatement(zd,Zd){var Tf;if(Zd.type!=="Placeholder"||(Tf=Zd.extra)!=null&&Tf.parenthesized)return super.parseExpressionStatement(zd,Zd);if(this.match(14)){let Ph=zd;return Ph.label=this.finishPlaceholder(Zd,"Identifier"),this.next(),Ph.body=super.parseStatementOrSloppyAnnexBFunctionDeclaration(),this.finishNode(Ph,"LabeledStatement")}this.semicolon();let Bf=zd;return Bf.name=Zd.name,this.finishPlaceholder(Bf,"Statement")}parseBlock(zd,Zd,Tf){return this.parsePlaceholder("BlockStatement")||super.parseBlock(zd,Zd,Tf)}parseFunctionId(zd){return this.parsePlaceholder("Identifier")||super.parseFunctionId(zd)}parseClass(zd,Zd,Tf){let Bf=Zd?"ClassDeclaration":"ClassExpression";this.next();let Ph=this.state.strict,hm=this.parsePlaceholder("Identifier");if(hm)if(this.match(81)||this.match(144)||this.match(5))zd.id=hm;else{if(Tf||!Zd)return zd.id=null,zd.body=this.finishPlaceholder(hm,"ClassBody"),this.finishNode(zd,Bf);throw this.raise(j_.ClassNameIsRequired,this.state.startLoc)}else this.parseClassId(zd,Zd,Tf);return super.parseClassSuper(zd),zd.body=this.parsePlaceholder("ClassBody")||super.parseClassBody(!!zd.superClass,Ph),this.finishNode(zd,Bf)}parseExport(zd,Zd){let Tf=this.parsePlaceholder("Identifier");if(!Tf)return super.parseExport(zd,Zd);let Bf=zd;if(!this.isContextual(98)&&!this.match(12))return Bf.specifiers=[],Bf.source=null,Bf.declaration=this.finishPlaceholder(Tf,"Declaration"),this.finishNode(Bf,"ExportNamedDeclaration");this.expectPlugin("exportDefaultFrom");let Ph=this.startNode();return Ph.exported=Tf,Bf.specifiers=[this.finishNode(Ph,"ExportDefaultSpecifier")],super.parseExport(Bf,Zd)}isExportDefaultSpecifier(){if(this.match(65)){let zd=this.nextTokenStart();if(this.isUnparsedContextual(zd,"from")&&this.input.startsWith(Rm(144),this.nextTokenStartSince(zd+4)))return!0}return super.isExportDefaultSpecifier()}maybeParseExportDefaultSpecifier(zd,Zd){var Tf;return(Tf=zd.specifiers)!=null&&Tf.length?!0:super.maybeParseExportDefaultSpecifier(zd,Zd)}checkExport(zd){let{specifiers:Zd}=zd;Zd!=null&&Zd.length&&(zd.specifiers=Zd.filter(Tf=>Tf.exported.type==="Placeholder")),super.checkExport(zd),zd.specifiers=Zd}parseImport(zd){let Zd=this.parsePlaceholder("Identifier");if(!Zd)return super.parseImport(zd);if(zd.specifiers=[],!this.isContextual(98)&&!this.match(12))return zd.source=this.finishPlaceholder(Zd,"StringLiteral"),this.semicolon(),this.finishNode(zd,"ImportDeclaration");let Tf=this.startNodeAtNode(Zd);return Tf.local=Zd,zd.specifiers.push(this.finishNode(Tf,"ImportDefaultSpecifier")),this.eat(12)&&(this.maybeParseStarImportSpecifier(zd)||this.parseNamedImportSpecifiers(zd)),this.expectContextual(98),zd.source=this.parseImportSource(),this.semicolon(),this.finishNode(zd,"ImportDeclaration")}parseImportSource(){return this.parsePlaceholder("StringLiteral")||super.parseImportSource()}assertNoSpace(){this.state.start>this.state.lastTokEndLoc.index&&this.raise(j_.UnexpectedSpace,this.state.lastTokEndLoc)}},w0=Jd=>class extends Jd{parseV8Intrinsic(){if(this.match(54)){let zd=this.state.startLoc,Zd=this.startNode();if(this.next(),_h(this.state.type)){let Tf=this.parseIdentifierName(),Bf=this.createIdentifier(Zd,Tf);if(Bf.type="V8IntrinsicIdentifier",this.match(10))return Bf}this.unexpected(zd)}}parseExprAtom(zd){return this.parseV8Intrinsic()||super.parseExprAtom(zd)}};function Q_(Jd,zd){let[Zd,Tf]=typeof zd=="string"?[zd,{}]:zd,Bf=Object.keys(Tf),Ph=Bf.length===0;return Jd.some(hm=>{if(typeof hm=="string")return Ph&&hm===Zd;{let[Im,Gm]=hm;if(Im!==Zd)return!1;for(let Um of Bf)if(Gm[Um]!==Tf[Um])return!1;return!0}})}function Cy(Jd,zd,Zd){let Tf=Jd.find(Bf=>Array.isArray(Bf)?Bf[0]===zd:Bf===zd);return Tf&&Array.isArray(Tf)&&Tf.length>1?Tf[1][Zd]:null}var ob=["minimal","fsharp","hack","smart"],uE=["^^","@@","^","%","#"];function Ay(Jd){if(Q_(Jd,"decorators")){if(Q_(Jd,"decorators-legacy"))throw new Error("Cannot use the decorators and decorators-legacy plugin together");let zd=Cy(Jd,"decorators","decoratorsBeforeExport");if(zd!=null&&typeof zd!="boolean")throw new Error("'decoratorsBeforeExport' must be a boolean, if specified.");let Zd=Cy(Jd,"decorators","allowCallParenthesized");if(Zd!=null&&typeof Zd!="boolean")throw new Error("'allowCallParenthesized' must be a boolean.")}if(Q_(Jd,"flow")&&Q_(Jd,"typescript"))throw new Error("Cannot combine flow and typescript plugins.");if(Q_(Jd,"placeholders")&&Q_(Jd,"v8intrinsic"))throw new Error("Cannot combine placeholders and v8intrinsic plugins.");if(Q_(Jd,"pipelineOperator")){let zd=Cy(Jd,"pipelineOperator","proposal");if(!ob.includes(zd)){let Bf=ob.map(Ph=>`"${Ph}"`).join(", ");throw new Error(`"pipelineOperator" requires "proposal" option whose value must be one of: ${Bf}.`)}let Zd=["recordAndTuple",{syntaxType:"hash"}],Tf=Q_(Jd,Zd);if(zd==="hack"){if(Q_(Jd,"placeholders"))throw new Error("Cannot combine placeholders plugin and Hack-style pipes.");if(Q_(Jd,"v8intrinsic"))throw new Error("Cannot combine v8intrinsic plugin and Hack-style pipes.");let Bf=Cy(Jd,"pipelineOperator","topicToken");if(!uE.includes(Bf)){let Ph=uE.map(hm=>`"${hm}"`).join(", ");throw new Error(`"pipelineOperator" in "proposal": "hack" mode also requires a "topicToken" option whose value must be one of: ${Ph}.`)}if(Bf==="#"&&Tf)throw new Error(`Plugin conflict between \`["pipelineOperator", { proposal: "hack", topicToken: "#" }]\` and \`${JSON.stringify(Zd)}\`.`)}else if(zd==="smart"&&Tf)throw new Error(`Plugin conflict between \`["pipelineOperator", { proposal: "smart" }]\` and \`${JSON.stringify(Zd)}\`.`)}if(Q_(Jd,"moduleAttributes")){if(Q_(Jd,"importAssertions")||Q_(Jd,"importAttributes"))throw new Error("Cannot combine importAssertions, importAttributes and moduleAttributes plugins.");if(Cy(Jd,"moduleAttributes","version")!=="may-2020")throw new Error("The 'moduleAttributes' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is 'may-2020'.")}if(Q_(Jd,"importAssertions")&&Q_(Jd,"importAttributes"))throw new Error("Cannot combine importAssertions and importAttributes plugins.");if(Q_(Jd,"recordAndTuple")){let zd=Cy(Jd,"recordAndTuple","syntaxType");if(zd!=null){let Zd=["hash","bar"];if(!Zd.includes(zd))throw new Error("The 'syntaxType' option of the 'recordAndTuple' plugin must be one of: "+Zd.map(Tf=>`'${Tf}'`).join(", "))}}if(Q_(Jd,"asyncDoExpressions")&&!Q_(Jd,"doExpressions")){let zd=new Error("'asyncDoExpressions' requires 'doExpressions', please add 'doExpressions' to parser plugins.");throw zd.missingPlugins="doExpressions",zd}if(Q_(Jd,"optionalChainingAssign")&&Cy(Jd,"optionalChainingAssign","version")!=="2023-07")throw new Error("The 'optionalChainingAssign' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is '2023-07'.")}var j0={estree:Xd,jsx:A0,flow:C0,typescript:Cv,v8intrinsic:w0,placeholders:Nv},jE=Object.keys(j0),Hy={sourceType:"script",sourceFilename:void 0,startColumn:0,startLine:1,allowAwaitOutsideFunction:!1,allowReturnOutsideFunction:!1,allowNewTargetOutsideFunction:!1,allowImportExportEverywhere:!1,allowSuperOutsideMethod:!1,allowUndeclaredExports:!1,plugins:[],strictMode:null,ranges:!1,tokens:!1,createImportExpressions:!1,createParenthesizedExpressions:!1,errorRecovery:!1,attachComment:!0,annexB:!0};function SS(Jd){if(Jd==null)return Object.assign({},Hy);if(Jd.annexB!=null&&Jd.annexB!==!1)throw new Error("The `annexB` option can only be set to `false`.");let zd={};for(let Tf of Object.keys(Hy)){var Zd;zd[Tf]=(Zd=Jd[Tf])!=null?Zd:Hy[Tf]}return zd}var zb=class extends pT{checkProto(Jd,zd,Zd,Tf){if(Jd.type==="SpreadElement"||this.isObjectMethod(Jd)||Jd.computed||Jd.shorthand)return;let Bf=Jd.key;if((Bf.type==="Identifier"?Bf.name:Bf.value)==="__proto__"){if(zd){this.raise(Ud.RecordNoProto,Bf);return}Zd.used&&(Tf?Tf.doubleProtoLoc===null&&(Tf.doubleProtoLoc=Bf.loc.start):this.raise(Ud.DuplicateProto,Bf)),Zd.used=!0}}shouldExitDescending(Jd,zd){return Jd.type==="ArrowFunctionExpression"&&Jd.start===zd}getExpression(){this.enterInitialScopes(),this.nextToken();let Jd=this.parseExpression();return this.match(139)||this.unexpected(),this.finalizeRemainingComments(),Jd.comments=this.comments,Jd.errors=this.state.errors,this.options.tokens&&(Jd.tokens=this.tokens),Jd}parseExpression(Jd,zd){return Jd?this.disallowInAnd(()=>this.parseExpressionBase(zd)):this.allowInAnd(()=>this.parseExpressionBase(zd))}parseExpressionBase(Jd){let zd=this.state.startLoc,Zd=this.parseMaybeAssign(Jd);if(this.match(12)){let Tf=this.startNodeAt(zd);for(Tf.expressions=[Zd];this.eat(12);)Tf.expressions.push(this.parseMaybeAssign(Jd));return this.toReferencedList(Tf.expressions),this.finishNode(Tf,"SequenceExpression")}return Zd}parseMaybeAssignDisallowIn(Jd,zd){return this.disallowInAnd(()=>this.parseMaybeAssign(Jd,zd))}parseMaybeAssignAllowIn(Jd,zd){return this.allowInAnd(()=>this.parseMaybeAssign(Jd,zd))}setOptionalParametersError(Jd,zd){var Zd;Jd.optionalParametersLoc=(Zd=zd==null?void 0:zd.loc)!=null?Zd:this.state.startLoc}parseMaybeAssign(Jd,zd){let Zd=this.state.startLoc;if(this.isContextual(108)&&this.prodParam.hasYield){let hm=this.parseYield();return zd&&(hm=zd.call(this,hm,Zd)),hm}let Tf;Jd?Tf=!1:(Jd=new Tb,Tf=!0);let{type:Bf}=this.state;(Bf===10||_h(Bf))&&(this.state.potentialArrowAt=this.state.start);let Ph=this.parseMaybeConditional(Jd);if(zd&&(Ph=zd.call(this,Ph,Zd)),Tm(this.state.type)){let hm=this.startNodeAt(Zd),Im=this.state.value;if(hm.operator=Im,this.match(29)){this.toAssignable(Ph,!0),hm.left=Ph;let Gm=Zd.index;Jd.doubleProtoLoc!=null&&Jd.doubleProtoLoc.index>=Gm&&(Jd.doubleProtoLoc=null),Jd.shorthandAssignLoc!=null&&Jd.shorthandAssignLoc.index>=Gm&&(Jd.shorthandAssignLoc=null),Jd.privateKeyLoc!=null&&Jd.privateKeyLoc.index>=Gm&&(this.checkDestructuringPrivate(Jd),Jd.privateKeyLoc=null)}else hm.left=Ph;return this.next(),hm.right=this.parseMaybeAssign(),this.checkLVal(Ph,{in:this.finishNode(hm,"AssignmentExpression")}),hm}else Tf&&this.checkExpressionErrors(Jd,!0);return Ph}parseMaybeConditional(Jd){let zd=this.state.startLoc,Zd=this.state.potentialArrowAt,Tf=this.parseExprOps(Jd);return this.shouldExitDescending(Tf,Zd)?Tf:this.parseConditional(Tf,zd,Jd)}parseConditional(Jd,zd,Zd){if(this.eat(17)){let Tf=this.startNodeAt(zd);return Tf.test=Jd,Tf.consequent=this.parseMaybeAssignAllowIn(),this.expect(14),Tf.alternate=this.parseMaybeAssign(),this.finishNode(Tf,"ConditionalExpression")}return Jd}parseMaybeUnaryOrPrivate(Jd){return this.match(138)?this.parsePrivateName():this.parseMaybeUnary(Jd)}parseExprOps(Jd){let zd=this.state.startLoc,Zd=this.state.potentialArrowAt,Tf=this.parseMaybeUnaryOrPrivate(Jd);return this.shouldExitDescending(Tf,Zd)?Tf:this.parseExprOp(Tf,zd,-1)}parseExprOp(Jd,zd,Zd){if(this.isPrivateName(Jd)){let Bf=this.getPrivateNameSV(Jd);(Zd>=tg(58)||!this.prodParam.hasIn||!this.match(58))&&this.raise(Ud.PrivateInExpectedIn,Jd,{identifierName:Bf}),this.classScope.usePrivateName(Bf,Jd.loc.start)}let Tf=this.state.type;if($h(Tf)&&(this.prodParam.hasIn||!this.match(58))){let Bf=tg(Tf);if(Bf>Zd){if(Tf===39){if(this.expectPlugin("pipelineOperator"),this.state.inFSharpPipelineDirectBody)return Jd;this.checkPipelineAtInfixOperator(Jd,zd)}let Ph=this.startNodeAt(zd);Ph.left=Jd,Ph.operator=this.state.value;let hm=Tf===41||Tf===42,Im=Tf===40;if(Im&&(Bf=tg(42)),this.next(),Tf===39&&this.hasPlugin(["pipelineOperator",{proposal:"minimal"}])&&this.state.type===96&&this.prodParam.hasAwait)throw this.raise(Ud.UnexpectedAwaitAfterPipelineBody,this.state.startLoc);Ph.right=this.parseExprOpRightExpr(Tf,Bf);let Gm=this.finishNode(Ph,hm||Im?"LogicalExpression":"BinaryExpression"),Um=this.state.type;if(Im&&(Um===41||Um===42)||hm&&Um===40)throw this.raise(Ud.MixingCoalesceWithLogical,this.state.startLoc);return this.parseExprOp(Gm,zd,Zd)}}return Jd}parseExprOpRightExpr(Jd,zd){let Zd=this.state.startLoc;switch(Jd){case 39:switch(this.getPluginOption("pipelineOperator","proposal")){case"hack":return this.withTopicBindingContext(()=>this.parseHackPipeBody());case"smart":return this.withTopicBindingContext(()=>{if(this.prodParam.hasYield&&this.isContextual(108))throw this.raise(Ud.PipeBodyIsTighter,this.state.startLoc);return this.parseSmartPipelineBodyInStyle(this.parseExprOpBaseRightExpr(Jd,zd),Zd)});case"fsharp":return this.withSoloAwaitPermittingContext(()=>this.parseFSharpPipelineBody(zd))}default:return this.parseExprOpBaseRightExpr(Jd,zd)}}parseExprOpBaseRightExpr(Jd,zd){let Zd=this.state.startLoc;return this.parseExprOp(this.parseMaybeUnaryOrPrivate(),Zd,Fm(Jd)?zd-1:zd)}parseHackPipeBody(){var Jd;let{startLoc:zd}=this.state,Zd=this.parseMaybeAssign();return Nd.has(Zd.type)&&!((Jd=Zd.extra)!=null&&Jd.parenthesized)&&this.raise(Ud.PipeUnparenthesizedBody,zd,{type:Zd.type}),this.topicReferenceWasUsedInCurrentContext()||this.raise(Ud.PipeTopicUnused,zd),Zd}checkExponentialAfterUnary(Jd){this.match(57)&&this.raise(Ud.UnexpectedTokenUnaryExponentiation,Jd.argument)}parseMaybeUnary(Jd,zd){let Zd=this.state.startLoc,Tf=this.isContextual(96);if(Tf&&this.isAwaitAllowed()){this.next();let Im=this.parseAwait(Zd);return zd||this.checkExponentialAfterUnary(Im),Im}let Bf=this.match(34),Ph=this.startNode();if(fm(this.state.type)){Ph.operator=this.state.value,Ph.prefix=!0,this.match(72)&&this.expectPlugin("throwExpressions");let Im=this.match(89);if(this.next(),Ph.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(Jd,!0),this.state.strict&&Im){let Gm=Ph.argument;Gm.type==="Identifier"?this.raise(Ud.StrictDelete,Ph):this.hasPropertyAsPrivateName(Gm)&&this.raise(Ud.DeletePrivateField,Ph)}if(!Bf)return zd||this.checkExponentialAfterUnary(Ph),this.finishNode(Ph,"UnaryExpression")}let hm=this.parseUpdate(Ph,Bf,Jd);if(Tf){let{type:Im}=this.state;if((this.hasPlugin("v8intrinsic")?Xh(Im):Xh(Im)&&!this.match(54))&&!this.isAmbiguousAwait())return this.raiseOverwrite(Ud.AwaitNotInAsyncContext,Zd),this.parseAwait(Zd)}return hm}parseUpdate(Jd,zd,Zd){if(zd){let Ph=Jd;return this.checkLVal(Ph.argument,{in:this.finishNode(Ph,"UpdateExpression")}),Jd}let Tf=this.state.startLoc,Bf=this.parseExprSubscripts(Zd);if(this.checkExpressionErrors(Zd,!1))return Bf;for(;wh(this.state.type)&&!this.canInsertSemicolon();){let Ph=this.startNodeAt(Tf);Ph.operator=this.state.value,Ph.prefix=!1,Ph.argument=Bf,this.next(),this.checkLVal(Bf,{in:Bf=this.finishNode(Ph,"UpdateExpression")})}return Bf}parseExprSubscripts(Jd){let zd=this.state.startLoc,Zd=this.state.potentialArrowAt,Tf=this.parseExprAtom(Jd);return this.shouldExitDescending(Tf,Zd)?Tf:this.parseSubscripts(Tf,zd)}parseSubscripts(Jd,zd,Zd){let Tf={optionalChainMember:!1,maybeAsyncArrow:this.atPossibleAsyncArrow(Jd),stop:!1};do Jd=this.parseSubscript(Jd,zd,Zd,Tf),Tf.maybeAsyncArrow=!1;while(!Tf.stop);return Jd}parseSubscript(Jd,zd,Zd,Tf){let{type:Bf}=this.state;if(!Zd&&Bf===15)return this.parseBind(Jd,zd,Zd,Tf);if(Ym(Bf))return this.parseTaggedTemplateExpression(Jd,zd,Tf);let Ph=!1;if(Bf===18){if(Zd&&(this.raise(Ud.OptionalChainingNoNew,this.state.startLoc),this.lookaheadCharCode()===40))return Tf.stop=!0,Jd;Tf.optionalChainMember=Ph=!0,this.next()}if(!Zd&&this.match(10))return this.parseCoverCallAndAsyncArrowHead(Jd,zd,Tf,Ph);{let hm=this.eat(0);return hm||Ph||this.eat(16)?this.parseMember(Jd,zd,Tf,hm,Ph):(Tf.stop=!0,Jd)}}parseMember(Jd,zd,Zd,Tf,Bf){let Ph=this.startNodeAt(zd);return Ph.object=Jd,Ph.computed=Tf,Tf?(Ph.property=this.parseExpression(),this.expect(3)):this.match(138)?(Jd.type==="Super"&&this.raise(Ud.SuperPrivateField,zd),this.classScope.usePrivateName(this.state.value,this.state.startLoc),Ph.property=this.parsePrivateName()):Ph.property=this.parseIdentifier(!0),Zd.optionalChainMember?(Ph.optional=Bf,this.finishNode(Ph,"OptionalMemberExpression")):this.finishNode(Ph,"MemberExpression")}parseBind(Jd,zd,Zd,Tf){let Bf=this.startNodeAt(zd);return Bf.object=Jd,this.next(),Bf.callee=this.parseNoCallExpr(),Tf.stop=!0,this.parseSubscripts(this.finishNode(Bf,"BindExpression"),zd,Zd)}parseCoverCallAndAsyncArrowHead(Jd,zd,Zd,Tf){let Bf=this.state.maybeInArrowParameters,Ph=null;this.state.maybeInArrowParameters=!0,this.next();let hm=this.startNodeAt(zd);hm.callee=Jd;let{maybeAsyncArrow:Im,optionalChainMember:Gm}=Zd;Im&&(this.expressionScope.enter(jb()),Ph=new Tb),Gm&&(hm.optional=Tf),Tf?hm.arguments=this.parseCallExpressionArguments(11):hm.arguments=this.parseCallExpressionArguments(11,Jd.type==="Import",Jd.type!=="Super",hm,Ph);let Um=this.finishCallExpression(hm,Gm);return Im&&this.shouldParseAsyncArrow()&&!Tf?(Zd.stop=!0,this.checkDestructuringPrivate(Ph),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),Um=this.parseAsyncArrowFromCallExpression(this.startNodeAt(zd),Um)):(Im&&(this.checkExpressionErrors(Ph,!0),this.expressionScope.exit()),this.toReferencedArguments(Um)),this.state.maybeInArrowParameters=Bf,Um}toReferencedArguments(Jd,zd){this.toReferencedListDeep(Jd.arguments,zd)}parseTaggedTemplateExpression(Jd,zd,Zd){let Tf=this.startNodeAt(zd);return Tf.tag=Jd,Tf.quasi=this.parseTemplate(!0),Zd.optionalChainMember&&this.raise(Ud.OptionalChainingNoTemplate,zd),this.finishNode(Tf,"TaggedTemplateExpression")}atPossibleAsyncArrow(Jd){return Jd.type==="Identifier"&&Jd.name==="async"&&this.state.lastTokEndLoc.index===Jd.end&&!this.canInsertSemicolon()&&Jd.end-Jd.start===5&&Jd.start===this.state.potentialArrowAt}expectImportAttributesPlugin(){this.hasPlugin("importAssertions")||this.expectPlugin("importAttributes")}finishCallExpression(Jd,zd){if(Jd.callee.type==="Import")if(Jd.arguments.length===2&&(this.hasPlugin("moduleAttributes")||this.expectImportAttributesPlugin()),Jd.arguments.length===0||Jd.arguments.length>2)this.raise(Ud.ImportCallArity,Jd,{maxArgumentCount:this.hasPlugin("importAttributes")||this.hasPlugin("importAssertions")||this.hasPlugin("moduleAttributes")?2:1});else for(let Zd of Jd.arguments)Zd.type==="SpreadElement"&&this.raise(Ud.ImportCallSpreadArgument,Zd);return this.finishNode(Jd,zd?"OptionalCallExpression":"CallExpression")}parseCallExpressionArguments(Jd,zd,Zd,Tf,Bf){let Ph=[],hm=!0,Im=this.state.inFSharpPipelineDirectBody;for(this.state.inFSharpPipelineDirectBody=!1;!this.eat(Jd);){if(hm)hm=!1;else if(this.expect(12),this.match(Jd)){zd&&!this.hasPlugin("importAttributes")&&!this.hasPlugin("importAssertions")&&!this.hasPlugin("moduleAttributes")&&this.raise(Ud.ImportCallArgumentTrailingComma,this.state.lastTokStartLoc),Tf&&this.addTrailingCommaExtraToNode(Tf),this.next();break}Ph.push(this.parseExprListItem(!1,Bf,Zd))}return this.state.inFSharpPipelineDirectBody=Im,Ph}shouldParseAsyncArrow(){return this.match(19)&&!this.canInsertSemicolon()}parseAsyncArrowFromCallExpression(Jd,zd){var Zd;return this.resetPreviousNodeTrailingComments(zd),this.expect(19),this.parseArrowExpression(Jd,zd.arguments,!0,(Zd=zd.extra)==null?void 0:Zd.trailingCommaLoc),zd.innerComments&&db(Jd,zd.innerComments),zd.callee.trailingComments&&db(Jd,zd.callee.trailingComments),Jd}parseNoCallExpr(){let Jd=this.state.startLoc;return this.parseSubscripts(this.parseExprAtom(),Jd,!0)}parseExprAtom(Jd){let zd,Zd=null,{type:Tf}=this.state;switch(Tf){case 79:return this.parseSuper();case 83:return zd=this.startNode(),this.next(),this.match(16)?this.parseImportMetaProperty(zd):this.match(10)?this.options.createImportExpressions?this.parseImportCall(zd):this.finishNode(zd,"Import"):(this.raise(Ud.UnsupportedImport,this.state.lastTokStartLoc),this.finishNode(zd,"Import"));case 78:return zd=this.startNode(),this.next(),this.finishNode(zd,"ThisExpression");case 90:return this.parseDo(this.startNode(),!1);case 56:case 31:return this.readRegexp(),this.parseRegExpLiteral(this.state.value);case 134:return this.parseNumericLiteral(this.state.value);case 135:return this.parseBigIntLiteral(this.state.value);case 136:return this.parseDecimalLiteral(this.state.value);case 133:return this.parseStringLiteral(this.state.value);case 84:return this.parseNullLiteral();case 85:return this.parseBooleanLiteral(!0);case 86:return this.parseBooleanLiteral(!1);case 10:{let Bf=this.state.potentialArrowAt===this.state.start;return this.parseParenAndDistinguishExpression(Bf)}case 2:case 1:return this.parseArrayLike(this.state.type===2?4:3,!1,!0);case 0:return this.parseArrayLike(3,!0,!1,Jd);case 6:case 7:return this.parseObjectLike(this.state.type===6?9:8,!1,!0);case 5:return this.parseObjectLike(8,!1,!1,Jd);case 68:return this.parseFunctionOrFunctionSent();case 26:Zd=this.parseDecorators();case 80:return this.parseClass(this.maybeTakeDecorators(Zd,this.startNode()),!1);case 77:return this.parseNewOrNewTarget();case 25:case 24:return this.parseTemplate(!1);case 15:{zd=this.startNode(),this.next(),zd.object=null;let Bf=zd.callee=this.parseNoCallExpr();if(Bf.type==="MemberExpression")return this.finishNode(zd,"BindExpression");throw this.raise(Ud.UnsupportedBind,Bf)}case 138:return this.raise(Ud.PrivateInExpectedIn,this.state.startLoc,{identifierName:this.state.value}),this.parsePrivateName();case 33:return this.parseTopicReferenceThenEqualsSign(54,"%");case 32:return this.parseTopicReferenceThenEqualsSign(44,"^");case 37:case 38:return this.parseTopicReference("hack");case 44:case 54:case 27:{let Bf=this.getPluginOption("pipelineOperator","proposal");if(Bf)return this.parseTopicReference(Bf);this.unexpected();break}case 47:{let Bf=this.input.codePointAt(this.nextTokenStart());$m(Bf)||Bf===62?this.expectOnePlugin(["jsx","flow","typescript"]):this.unexpected();break}default:if(_h(Tf)){if(this.isContextual(127)&&this.lookaheadInLineCharCode()===123)return this.parseModuleExpression();let Bf=this.state.potentialArrowAt===this.state.start,Ph=this.state.containsEsc,hm=this.parseIdentifier();if(!Ph&&hm.name==="async"&&!this.canInsertSemicolon()){let{type:Im}=this.state;if(Im===68)return this.resetPreviousNodeTrailingComments(hm),this.next(),this.parseAsyncFunctionExpression(this.startNodeAtNode(hm));if(_h(Im))return this.lookaheadCharCode()===61?this.parseAsyncArrowUnaryFunction(this.startNodeAtNode(hm)):hm;if(Im===90)return this.resetPreviousNodeTrailingComments(hm),this.parseDo(this.startNodeAtNode(hm),!0)}return Bf&&this.match(19)&&!this.canInsertSemicolon()?(this.next(),this.parseArrowExpression(this.startNodeAtNode(hm),[hm],!1)):hm}else this.unexpected()}}parseTopicReferenceThenEqualsSign(Jd,zd){let Zd=this.getPluginOption("pipelineOperator","proposal");if(Zd)return this.state.type=Jd,this.state.value=zd,this.state.pos--,this.state.end--,this.state.endLoc=pd(this.state.endLoc,-1),this.parseTopicReference(Zd);this.unexpected()}parseTopicReference(Jd){let zd=this.startNode(),Zd=this.state.startLoc,Tf=this.state.type;return this.next(),this.finishTopicReference(zd,Zd,Jd,Tf)}finishTopicReference(Jd,zd,Zd,Tf){if(this.testTopicReferenceConfiguration(Zd,zd,Tf)){let Bf=Zd==="smart"?"PipelinePrimaryTopicReference":"TopicReference";return this.topicReferenceIsAllowedInCurrentContext()||this.raise(Zd==="smart"?Ud.PrimaryTopicNotAllowed:Ud.PipeTopicUnbound,zd),this.registerTopicReference(),this.finishNode(Jd,Bf)}else throw this.raise(Ud.PipeTopicUnconfiguredToken,zd,{token:Rm(Tf)})}testTopicReferenceConfiguration(Jd,zd,Zd){switch(Jd){case"hack":return this.hasPlugin(["pipelineOperator",{topicToken:Rm(Zd)}]);case"smart":return Zd===27;default:throw this.raise(Ud.PipeTopicRequiresHackPipes,zd)}}parseAsyncArrowUnaryFunction(Jd){this.prodParam.enter(Ub(!0,this.prodParam.hasYield));let zd=[this.parseIdentifier()];return this.prodParam.exit(),this.hasPrecedingLineBreak()&&this.raise(Ud.LineTerminatorBeforeArrow,this.state.curPosition()),this.expect(19),this.parseArrowExpression(Jd,zd,!0)}parseDo(Jd,zd){this.expectPlugin("doExpressions"),zd&&this.expectPlugin("asyncDoExpressions"),Jd.async=zd,this.next();let Zd=this.state.labels;return this.state.labels=[],zd?(this.prodParam.enter(2),Jd.body=this.parseBlock(),this.prodParam.exit()):Jd.body=this.parseBlock(),this.state.labels=Zd,this.finishNode(Jd,"DoExpression")}parseSuper(){let Jd=this.startNode();return this.next(),this.match(10)&&!this.scope.allowDirectSuper&&!this.options.allowSuperOutsideMethod?this.raise(Ud.SuperNotAllowed,Jd):!this.scope.allowSuper&&!this.options.allowSuperOutsideMethod&&this.raise(Ud.UnexpectedSuper,Jd),!this.match(10)&&!this.match(0)&&!this.match(16)&&this.raise(Ud.UnsupportedSuper,Jd),this.finishNode(Jd,"Super")}parsePrivateName(){let Jd=this.startNode(),zd=this.startNodeAt(pd(this.state.startLoc,1)),Zd=this.state.value;return this.next(),Jd.id=this.createIdentifier(zd,Zd),this.finishNode(Jd,"PrivateName")}parseFunctionOrFunctionSent(){let Jd=this.startNode();if(this.next(),this.prodParam.hasYield&&this.match(16)){let zd=this.createIdentifier(this.startNodeAtNode(Jd),"function");return this.next(),this.match(103)?this.expectPlugin("functionSent"):this.hasPlugin("functionSent")||this.unexpected(),this.parseMetaProperty(Jd,zd,"sent")}return this.parseFunction(Jd)}parseMetaProperty(Jd,zd,Zd){Jd.meta=zd;let Tf=this.state.containsEsc;return Jd.property=this.parseIdentifier(!0),(Jd.property.name!==Zd||Tf)&&this.raise(Ud.UnsupportedMetaProperty,Jd.property,{target:zd.name,onlyValidPropertyName:Zd}),this.finishNode(Jd,"MetaProperty")}parseImportMetaProperty(Jd){let zd=this.createIdentifier(this.startNodeAtNode(Jd),"import");if(this.next(),this.isContextual(101))this.inModule||this.raise(Ud.ImportMetaOutsideModule,zd),this.sawUnambiguousESM=!0;else if(this.isContextual(105)||this.isContextual(97)){let Zd=this.isContextual(105);if(Zd||this.unexpected(),this.expectPlugin(Zd?"sourcePhaseImports":"deferredImportEvaluation"),!this.options.createImportExpressions)throw this.raise(Ud.DynamicImportPhaseRequiresImportExpressions,this.state.startLoc,{phase:this.state.value});return this.next(),Jd.phase=Zd?"source":"defer",this.parseImportCall(Jd)}return this.parseMetaProperty(Jd,zd,"meta")}parseLiteralAtNode(Jd,zd,Zd){return this.addExtra(Zd,"rawValue",Jd),this.addExtra(Zd,"raw",this.input.slice(Zd.start,this.state.end)),Zd.value=Jd,this.next(),this.finishNode(Zd,zd)}parseLiteral(Jd,zd){let Zd=this.startNode();return this.parseLiteralAtNode(Jd,zd,Zd)}parseStringLiteral(Jd){return this.parseLiteral(Jd,"StringLiteral")}parseNumericLiteral(Jd){return this.parseLiteral(Jd,"NumericLiteral")}parseBigIntLiteral(Jd){return this.parseLiteral(Jd,"BigIntLiteral")}parseDecimalLiteral(Jd){return this.parseLiteral(Jd,"DecimalLiteral")}parseRegExpLiteral(Jd){let zd=this.startNode();return this.addExtra(zd,"raw",this.input.slice(zd.start,this.state.end)),zd.pattern=Jd.pattern,zd.flags=Jd.flags,this.next(),this.finishNode(zd,"RegExpLiteral")}parseBooleanLiteral(Jd){let zd=this.startNode();return zd.value=Jd,this.next(),this.finishNode(zd,"BooleanLiteral")}parseNullLiteral(){let Jd=this.startNode();return this.next(),this.finishNode(Jd,"NullLiteral")}parseParenAndDistinguishExpression(Jd){let zd=this.state.startLoc,Zd;this.next(),this.expressionScope.enter(sb());let Tf=this.state.maybeInArrowParameters,Bf=this.state.inFSharpPipelineDirectBody;this.state.maybeInArrowParameters=!0,this.state.inFSharpPipelineDirectBody=!1;let Ph=this.state.startLoc,hm=[],Im=new Tb,Gm=!0,Um,Sg;for(;!this.match(11);){if(Gm)Gm=!1;else if(this.expect(12,Im.optionalParametersLoc===null?null:Im.optionalParametersLoc),this.match(11)){Sg=this.state.startLoc;break}if(this.match(21)){let Zg=this.state.startLoc;if(Um=this.state.startLoc,hm.push(this.parseParenItem(this.parseRestBinding(),Zg)),!this.checkCommaAfterRest(41))break}else hm.push(this.parseMaybeAssignAllowIn(Im,this.parseParenItem))}let Bg=this.state.lastTokEndLoc;this.expect(11),this.state.maybeInArrowParameters=Tf,this.state.inFSharpPipelineDirectBody=Bf;let Xg=this.startNodeAt(zd);return Jd&&this.shouldParseArrow(hm)&&(Xg=this.parseArrow(Xg))?(this.checkDestructuringPrivate(Im),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),this.parseArrowExpression(Xg,hm,!1),Xg):(this.expressionScope.exit(),hm.length||this.unexpected(this.state.lastTokStartLoc),Sg&&this.unexpected(Sg),Um&&this.unexpected(Um),this.checkExpressionErrors(Im,!0),this.toReferencedListDeep(hm,!0),hm.length>1?(Zd=this.startNodeAt(Ph),Zd.expressions=hm,this.finishNode(Zd,"SequenceExpression"),this.resetEndLocation(Zd,Bg)):Zd=hm[0],this.wrapParenthesis(zd,Zd))}wrapParenthesis(Jd,zd){if(!this.options.createParenthesizedExpressions)return this.addExtra(zd,"parenthesized",!0),this.addExtra(zd,"parenStart",Jd.index),this.takeSurroundingComments(zd,Jd.index,this.state.lastTokEndLoc.index),zd;let Zd=this.startNodeAt(Jd);return Zd.expression=zd,this.finishNode(Zd,"ParenthesizedExpression")}shouldParseArrow(Jd){return!this.canInsertSemicolon()}parseArrow(Jd){if(this.eat(19))return Jd}parseParenItem(Jd,zd){return Jd}parseNewOrNewTarget(){let Jd=this.startNode();if(this.next(),this.match(16)){let zd=this.createIdentifier(this.startNodeAtNode(Jd),"new");this.next();let Zd=this.parseMetaProperty(Jd,zd,"target");return!this.scope.inNonArrowFunction&&!this.scope.inClass&&!this.options.allowNewTargetOutsideFunction&&this.raise(Ud.UnexpectedNewTarget,Zd),Zd}return this.parseNew(Jd)}parseNew(Jd){if(this.parseNewCallee(Jd),this.eat(10)){let zd=this.parseExprList(11);this.toReferencedList(zd),Jd.arguments=zd}else Jd.arguments=[];return this.finishNode(Jd,"NewExpression")}parseNewCallee(Jd){let zd=this.match(83),Zd=this.parseNoCallExpr();Jd.callee=Zd,zd&&(Zd.type==="Import"||Zd.type==="ImportExpression")&&this.raise(Ud.ImportCallNotNewExpression,Zd)}parseTemplateElement(Jd){let{start:zd,startLoc:Zd,end:Tf,value:Bf}=this.state,Ph=zd+1,hm=this.startNodeAt(pd(Zd,1));Bf===null&&(Jd||this.raise(Ud.InvalidEscapeSequenceTemplate,pd(this.state.firstInvalidTemplateEscapePos,1)));let Im=this.match(24),Gm=Im?-1:-2,Um=Tf+Gm;hm.value={raw:this.input.slice(Ph,Um).replace(/\r\n?/g,` `),cooked:Bf===null?null:Bf.slice(1,Gm)},hm.tail=Im,this.next();let Sg=this.finishNode(hm,"TemplateElement");return this.resetEndLocation(Sg,pd(this.state.lastTokEndLoc,Gm)),Sg}parseTemplate(Jd){let zd=this.startNode(),Zd=this.parseTemplateElement(Jd),Tf=[Zd],Bf=[];for(;!Zd.tail;)Bf.push(this.parseTemplateSubstitution()),this.readTemplateContinuation(),Tf.push(Zd=this.parseTemplateElement(Jd));return zd.expressions=Bf,zd.quasis=Tf,this.finishNode(zd,"TemplateLiteral")}parseTemplateSubstitution(){return this.parseExpression()}parseObjectLike(Jd,zd,Zd,Tf){Zd&&this.expectPlugin("recordAndTuple");let Bf=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let Ph=Object.create(null),hm=!0,Im=this.startNode();for(Im.properties=[],this.next();!this.match(Jd);){if(hm)hm=!1;else if(this.expect(12),this.match(Jd)){this.addTrailingCommaExtraToNode(Im);break}let Um;zd?Um=this.parseBindingProperty():(Um=this.parsePropertyDefinition(Tf),this.checkProto(Um,Zd,Ph,Tf)),Zd&&!this.isObjectProperty(Um)&&Um.type!=="SpreadElement"&&this.raise(Ud.InvalidRecordProperty,Um),Um.shorthand&&this.addExtra(Um,"shorthand",!0),Im.properties.push(Um)}this.next(),this.state.inFSharpPipelineDirectBody=Bf;let Gm="ObjectExpression";return zd?Gm="ObjectPattern":Zd&&(Gm="RecordExpression"),this.finishNode(Im,Gm)}addTrailingCommaExtraToNode(Jd){this.addExtra(Jd,"trailingComma",this.state.lastTokStartLoc.index),this.addExtra(Jd,"trailingCommaLoc",this.state.lastTokStartLoc,!1)}maybeAsyncOrAccessorProp(Jd){return!Jd.computed&&Jd.key.type==="Identifier"&&(this.isLiteralPropertyName()||this.match(0)||this.match(55))}parsePropertyDefinition(Jd){let zd=[];if(this.match(26))for(this.hasPlugin("decorators")&&this.raise(Ud.UnsupportedPropertyDecorator,this.state.startLoc);this.match(26);)zd.push(this.parseDecorator());let Zd=this.startNode(),Tf=!1,Bf=!1,Ph;if(this.match(21))return zd.length&&this.unexpected(),this.parseSpread();zd.length&&(Zd.decorators=zd,zd=[]),Zd.method=!1,Jd&&(Ph=this.state.startLoc);let hm=this.eat(55);this.parsePropertyNamePrefixOperator(Zd);let Im=this.state.containsEsc;if(this.parsePropertyName(Zd,Jd),!hm&&!Im&&this.maybeAsyncOrAccessorProp(Zd)){let{key:Gm}=Zd,Um=Gm.name;Um==="async"&&!this.hasPrecedingLineBreak()&&(Tf=!0,this.resetPreviousNodeTrailingComments(Gm),hm=this.eat(55),this.parsePropertyName(Zd)),(Um==="get"||Um==="set")&&(Bf=!0,this.resetPreviousNodeTrailingComments(Gm),Zd.kind=Um,this.match(55)&&(hm=!0,this.raise(Ud.AccessorIsGenerator,this.state.curPosition(),{kind:Um}),this.next()),this.parsePropertyName(Zd))}return this.parseObjPropValue(Zd,Ph,hm,Tf,!1,Bf,Jd)}getGetterSetterExpectedParamCount(Jd){return Jd.kind==="get"?0:1}getObjectOrClassMethodParams(Jd){return Jd.params}checkGetterSetterParams(Jd){var zd;let Zd=this.getGetterSetterExpectedParamCount(Jd),Tf=this.getObjectOrClassMethodParams(Jd);Tf.length!==Zd&&this.raise(Jd.kind==="get"?Ud.BadGetterArity:Ud.BadSetterArity,Jd),Jd.kind==="set"&&((zd=Tf[Tf.length-1])==null?void 0:zd.type)==="RestElement"&&this.raise(Ud.BadSetterRestParameter,Jd)}parseObjectMethod(Jd,zd,Zd,Tf,Bf){if(Bf){let Ph=this.parseMethod(Jd,zd,!1,!1,!1,"ObjectMethod");return this.checkGetterSetterParams(Ph),Ph}if(Zd||zd||this.match(10))return Tf&&this.unexpected(),Jd.kind="method",Jd.method=!0,this.parseMethod(Jd,zd,Zd,!1,!1,"ObjectMethod")}parseObjectProperty(Jd,zd,Zd,Tf){if(Jd.shorthand=!1,this.eat(14))return Jd.value=Zd?this.parseMaybeDefault(this.state.startLoc):this.parseMaybeAssignAllowIn(Tf),this.finishNode(Jd,"ObjectProperty");if(!Jd.computed&&Jd.key.type==="Identifier"){if(this.checkReservedWord(Jd.key.name,Jd.key.loc.start,!0,!1),Zd)Jd.value=this.parseMaybeDefault(zd,xb(Jd.key));else if(this.match(29)){let Bf=this.state.startLoc;Tf!=null?Tf.shorthandAssignLoc===null&&(Tf.shorthandAssignLoc=Bf):this.raise(Ud.InvalidCoverInitializedName,Bf),Jd.value=this.parseMaybeDefault(zd,xb(Jd.key))}else Jd.value=xb(Jd.key);return Jd.shorthand=!0,this.finishNode(Jd,"ObjectProperty")}}parseObjPropValue(Jd,zd,Zd,Tf,Bf,Ph,hm){let Im=this.parseObjectMethod(Jd,Zd,Tf,Bf,Ph)||this.parseObjectProperty(Jd,zd,Bf,hm);return Im||this.unexpected(),Im}parsePropertyName(Jd,zd){if(this.eat(0))Jd.computed=!0,Jd.key=this.parseMaybeAssignAllowIn(),this.expect(3);else{let{type:Zd,value:Tf}=this.state,Bf;if(dm(Zd))Bf=this.parseIdentifier(!0);else switch(Zd){case 134:Bf=this.parseNumericLiteral(Tf);break;case 133:Bf=this.parseStringLiteral(Tf);break;case 135:Bf=this.parseBigIntLiteral(Tf);break;case 136:Bf=this.parseDecimalLiteral(Tf);break;case 138:{let Ph=this.state.startLoc;zd!=null?zd.privateKeyLoc===null&&(zd.privateKeyLoc=Ph):this.raise(Ud.UnexpectedPrivateField,Ph),Bf=this.parsePrivateName();break}default:this.unexpected()}Jd.key=Bf,Zd!==138&&(Jd.computed=!1)}}initFunction(Jd,zd){Jd.id=null,Jd.generator=!1,Jd.async=zd}parseMethod(Jd,zd,Zd,Tf,Bf,Ph,hm=!1){this.initFunction(Jd,Zd),Jd.generator=zd,this.scope.enter(18|(hm?64:0)|(Bf?32:0)),this.prodParam.enter(Ub(Zd,Jd.generator)),this.parseFunctionParams(Jd,Tf);let Im=this.parseFunctionBodyAndFinish(Jd,Ph,!0);return this.prodParam.exit(),this.scope.exit(),Im}parseArrayLike(Jd,zd,Zd,Tf){Zd&&this.expectPlugin("recordAndTuple");let Bf=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let Ph=this.startNode();return this.next(),Ph.elements=this.parseExprList(Jd,!Zd,Tf,Ph),this.state.inFSharpPipelineDirectBody=Bf,this.finishNode(Ph,Zd?"TupleExpression":"ArrayExpression")}parseArrowExpression(Jd,zd,Zd,Tf){this.scope.enter(6);let Bf=Ub(Zd,!1);!this.match(5)&&this.prodParam.hasIn&&(Bf|=8),this.prodParam.enter(Bf),this.initFunction(Jd,Zd);let Ph=this.state.maybeInArrowParameters;return zd&&(this.state.maybeInArrowParameters=!0,this.setArrowFunctionParameters(Jd,zd,Tf)),this.state.maybeInArrowParameters=!1,this.parseFunctionBody(Jd,!0),this.prodParam.exit(),this.scope.exit(),this.state.maybeInArrowParameters=Ph,this.finishNode(Jd,"ArrowFunctionExpression")}setArrowFunctionParameters(Jd,zd,Zd){this.toAssignableList(zd,Zd,!1),Jd.params=zd}parseFunctionBodyAndFinish(Jd,zd,Zd=!1){return this.parseFunctionBody(Jd,!1,Zd),this.finishNode(Jd,zd)}parseFunctionBody(Jd,zd,Zd=!1){let Tf=zd&&!this.match(5);if(this.expressionScope.enter(uy()),Tf)Jd.body=this.parseMaybeAssign(),this.checkParams(Jd,!1,zd,!1);else{let Bf=this.state.strict,Ph=this.state.labels;this.state.labels=[],this.prodParam.enter(this.prodParam.currentFlags()|4),Jd.body=this.parseBlock(!0,!1,hm=>{let Im=!this.isSimpleParamList(Jd.params);hm&&Im&&this.raise(Ud.IllegalLanguageModeDirective,(Jd.kind==="method"||Jd.kind==="constructor")&&Jd.key?Jd.key.loc.end:Jd);let Gm=!Bf&&this.state.strict;this.checkParams(Jd,!this.state.strict&&!zd&&!Zd&&!Im,zd,Gm),this.state.strict&&Jd.id&&this.checkIdentifier(Jd.id,65,Gm)}),this.prodParam.exit(),this.state.labels=Ph}this.expressionScope.exit()}isSimpleParameter(Jd){return Jd.type==="Identifier"}isSimpleParamList(Jd){for(let zd=0,Zd=Jd.length;zd10||!v_(Jd))){if(Zd&&y_(Jd)){this.raise(Ud.UnexpectedKeyword,zd,{keyword:Jd});return}if((this.state.strict?Tf?o_:Wg:Og)(Jd,this.inModule)){this.raise(Ud.UnexpectedReservedWord,zd,{reservedWord:Jd});return}else if(Jd==="yield"){if(this.prodParam.hasYield){this.raise(Ud.YieldBindingIdentifier,zd);return}}else if(Jd==="await"){if(this.prodParam.hasAwait){this.raise(Ud.AwaitBindingIdentifier,zd);return}if(this.scope.inStaticBlock){this.raise(Ud.AwaitBindingIdentifierInStaticBlock,zd);return}this.expressionScope.recordAsyncArrowParametersError(zd)}else if(Jd==="arguments"&&this.scope.inClassAndNotInNonArrowFunction){this.raise(Ud.ArgumentsInClass,zd);return}}}isAwaitAllowed(){return!!(this.prodParam.hasAwait||this.options.allowAwaitOutsideFunction&&!this.scope.inFunction)}parseAwait(Jd){let zd=this.startNodeAt(Jd);return this.expressionScope.recordParameterInitializerError(Ud.AwaitExpressionFormalParameter,zd),this.eat(55)&&this.raise(Ud.ObsoleteAwaitStar,zd),!this.scope.inFunction&&!this.options.allowAwaitOutsideFunction&&(this.isAmbiguousAwait()?this.ambiguousScriptDifferentAst=!0:this.sawUnambiguousESM=!0),this.state.soloAwait||(zd.argument=this.parseMaybeUnary(null,!0)),this.finishNode(zd,"AwaitExpression")}isAmbiguousAwait(){if(this.hasPrecedingLineBreak())return!0;let{type:Jd}=this.state;return Jd===53||Jd===10||Jd===0||Ym(Jd)||Jd===102&&!this.state.containsEsc||Jd===137||Jd===56||this.hasPlugin("v8intrinsic")&&Jd===54}parseYield(){let Jd=this.startNode();this.expressionScope.recordParameterInitializerError(Ud.YieldInParameter,Jd),this.next();let zd=!1,Zd=null;if(!this.hasPrecedingLineBreak())switch(zd=this.eat(55),this.state.type){case 13:case 139:case 8:case 11:case 3:case 9:case 14:case 12:if(!zd)break;default:Zd=this.parseMaybeAssign()}return Jd.delegate=zd,Jd.argument=Zd,this.finishNode(Jd,"YieldExpression")}parseImportCall(Jd){return this.next(),Jd.source=this.parseMaybeAssignAllowIn(),(this.hasPlugin("importAttributes")||this.hasPlugin("importAssertions"))&&(Jd.options=null),this.eat(12)&&(this.expectImportAttributesPlugin(),this.match(11)||(Jd.options=this.parseMaybeAssignAllowIn(),this.eat(12))),this.expect(11),this.finishNode(Jd,"ImportExpression")}checkPipelineAtInfixOperator(Jd,zd){this.hasPlugin(["pipelineOperator",{proposal:"smart"}])&&Jd.type==="SequenceExpression"&&this.raise(Ud.PipelineHeadSequenceExpression,zd)}parseSmartPipelineBodyInStyle(Jd,zd){if(this.isSimpleReference(Jd)){let Zd=this.startNodeAt(zd);return Zd.callee=Jd,this.finishNode(Zd,"PipelineBareFunction")}else{let Zd=this.startNodeAt(zd);return this.checkSmartPipeTopicBodyEarlyErrors(zd),Zd.expression=Jd,this.finishNode(Zd,"PipelineTopicExpression")}}isSimpleReference(Jd){switch(Jd.type){case"MemberExpression":return!Jd.computed&&this.isSimpleReference(Jd.object);case"Identifier":return!0;default:return!1}}checkSmartPipeTopicBodyEarlyErrors(Jd){if(this.match(19))throw this.raise(Ud.PipelineBodyNoArrow,this.state.startLoc);this.topicReferenceWasUsedInCurrentContext()||this.raise(Ud.PipelineTopicUnused,Jd)}withTopicBindingContext(Jd){let zd=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:1,maxTopicIndex:null};try{return Jd()}finally{this.state.topicContext=zd}}withSmartMixTopicForbiddingContext(Jd){if(this.hasPlugin(["pipelineOperator",{proposal:"smart"}])){let zd=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null};try{return Jd()}finally{this.state.topicContext=zd}}else return Jd()}withSoloAwaitPermittingContext(Jd){let zd=this.state.soloAwait;this.state.soloAwait=!0;try{return Jd()}finally{this.state.soloAwait=zd}}allowInAnd(Jd){let zd=this.prodParam.currentFlags();if(8&~zd){this.prodParam.enter(zd|8);try{return Jd()}finally{this.prodParam.exit()}}return Jd()}disallowInAnd(Jd){let zd=this.prodParam.currentFlags();if(8&zd){this.prodParam.enter(zd&-9);try{return Jd()}finally{this.prodParam.exit()}}return Jd()}registerTopicReference(){this.state.topicContext.maxTopicIndex=0}topicReferenceIsAllowedInCurrentContext(){return this.state.topicContext.maxNumOfResolvableTopics>=1}topicReferenceWasUsedInCurrentContext(){return this.state.topicContext.maxTopicIndex!=null&&this.state.topicContext.maxTopicIndex>=0}parseFSharpPipelineBody(Jd){let zd=this.state.startLoc;this.state.potentialArrowAt=this.state.start;let Zd=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!0;let Tf=this.parseExprOp(this.parseMaybeUnaryOrPrivate(),zd,Jd);return this.state.inFSharpPipelineDirectBody=Zd,Tf}parseModuleExpression(){this.expectPlugin("moduleBlocks");let Jd=this.startNode();this.next(),this.match(5)||this.unexpected(null,5);let zd=this.startNodeAt(this.state.endLoc);this.next();let Zd=this.initializeScopes(!0);this.enterInitialScopes();try{Jd.body=this.parseProgram(zd,8,"module")}finally{Zd()}return this.finishNode(Jd,"ModuleExpression")}parsePropertyNamePrefixOperator(Jd){}},Pv={kind:1},Qb={kind:2},TS=/[\uD800-\uDFFF]/u,cE=/in(?:stanceof)?/y;function p0(Jd,zd){for(let Zd=0;Zd0)for(let[Bf,Ph]of Array.from(this.scope.undefinedExports))this.raise(Ud.ModuleExportUndefined,Ph,{localName:Bf});let Tf;return zd===139?Tf=this.finishNode(Jd,"Program"):Tf=this.finishNodeAt(Jd,"Program",pd(this.state.startLoc,-1)),Tf}stmtToDirective(Jd){let zd=Jd;zd.type="Directive",zd.value=zd.expression,delete zd.expression;let Zd=zd.value,Tf=Zd.value,Bf=this.input.slice(Zd.start,Zd.end),Ph=Zd.value=Bf.slice(1,-1);return this.addExtra(Zd,"raw",Bf),this.addExtra(Zd,"rawValue",Ph),this.addExtra(Zd,"expressionValue",Tf),Zd.type="DirectiveLiteral",zd}parseInterpreterDirective(){if(!this.match(28))return null;let Jd=this.startNode();return Jd.value=this.state.value,this.next(),this.finishNode(Jd,"InterpreterDirective")}isLet(){return this.isContextual(100)?this.hasFollowingBindingAtom():!1}chStartsBindingIdentifier(Jd,zd){if($m(Jd)){if(cE.lastIndex=zd,cE.test(this.input)){let Zd=this.codePointAtPos(cE.lastIndex);if(!Km(Zd)&&Zd!==92)return!1}return!0}else return Jd===92}chStartsBindingPattern(Jd){return Jd===91||Jd===123}hasFollowingBindingAtom(){let Jd=this.nextTokenStart(),zd=this.codePointAtPos(Jd);return this.chStartsBindingPattern(zd)||this.chStartsBindingIdentifier(zd,Jd)}hasInLineFollowingBindingIdentifierOrBrace(){let Jd=this.nextTokenInLineStart(),zd=this.codePointAtPos(Jd);return zd===123||this.chStartsBindingIdentifier(zd,Jd)}startsUsingForOf(){let{type:Jd,containsEsc:zd}=this.lookahead();if(Jd===102&&!zd)return!1;if(_h(Jd)&&!this.hasFollowingLineBreak())return this.expectPlugin("explicitResourceManagement"),!0}startsAwaitUsing(){let Jd=this.nextTokenInLineStart();if(this.isUnparsedContextual(Jd,"using")){Jd=this.nextTokenInLineStartSince(Jd+5);let zd=this.codePointAtPos(Jd);if(this.chStartsBindingIdentifier(zd,Jd))return this.expectPlugin("explicitResourceManagement"),!0}return!1}parseModuleItem(){return this.parseStatementLike(15)}parseStatementListItem(){return this.parseStatementLike(6|(!this.options.annexB||this.state.strict?0:8))}parseStatementOrSloppyAnnexBFunctionDeclaration(Jd=!1){let zd=0;return this.options.annexB&&!this.state.strict&&(zd|=4,Jd&&(zd|=8)),this.parseStatementLike(zd)}parseStatement(){return this.parseStatementLike(0)}parseStatementLike(Jd){let zd=null;return this.match(26)&&(zd=this.parseDecorators(!0)),this.parseStatementContent(Jd,zd)}parseStatementContent(Jd,zd){let Zd=this.state.type,Tf=this.startNode(),Bf=!!(Jd&2),Ph=!!(Jd&4),hm=Jd&1;switch(Zd){case 60:return this.parseBreakContinueStatement(Tf,!0);case 63:return this.parseBreakContinueStatement(Tf,!1);case 64:return this.parseDebuggerStatement(Tf);case 90:return this.parseDoWhileStatement(Tf);case 91:return this.parseForStatement(Tf);case 68:if(this.lookaheadCharCode()===46)break;return Ph||this.raise(this.state.strict?Ud.StrictFunction:this.options.annexB?Ud.SloppyFunctionAnnexB:Ud.SloppyFunction,this.state.startLoc),this.parseFunctionStatement(Tf,!1,!Bf&&Ph);case 80:return Bf||this.unexpected(),this.parseClass(this.maybeTakeDecorators(zd,Tf),!0);case 69:return this.parseIfStatement(Tf);case 70:return this.parseReturnStatement(Tf);case 71:return this.parseSwitchStatement(Tf);case 72:return this.parseThrowStatement(Tf);case 73:return this.parseTryStatement(Tf);case 96:if(!this.state.containsEsc&&this.startsAwaitUsing())return this.isAwaitAllowed()?Bf||this.raise(Ud.UnexpectedLexicalDeclaration,Tf):this.raise(Ud.AwaitUsingNotInAsyncContext,Tf),this.next(),this.parseVarStatement(Tf,"await using");break;case 107:if(this.state.containsEsc||!this.hasInLineFollowingBindingIdentifierOrBrace())break;return this.expectPlugin("explicitResourceManagement"),!this.scope.inModule&&this.scope.inTopLevel?this.raise(Ud.UnexpectedUsingDeclaration,this.state.startLoc):Bf||this.raise(Ud.UnexpectedLexicalDeclaration,this.state.startLoc),this.parseVarStatement(Tf,"using");case 100:{if(this.state.containsEsc)break;let Um=this.nextTokenStart(),Sg=this.codePointAtPos(Um);if(Sg!==91&&(!Bf&&this.hasFollowingLineBreak()||!this.chStartsBindingIdentifier(Sg,Um)&&Sg!==123))break}case 75:Bf||this.raise(Ud.UnexpectedLexicalDeclaration,this.state.startLoc);case 74:{let Um=this.state.value;return this.parseVarStatement(Tf,Um)}case 92:return this.parseWhileStatement(Tf);case 76:return this.parseWithStatement(Tf);case 5:return this.parseBlock();case 13:return this.parseEmptyStatement(Tf);case 83:{let Um=this.lookaheadCharCode();if(Um===40||Um===46)break}case 82:{!this.options.allowImportExportEverywhere&&!hm&&this.raise(Ud.UnexpectedImportExport,this.state.startLoc),this.next();let Um;return Zd===83?(Um=this.parseImport(Tf),Um.type==="ImportDeclaration"&&(!Um.importKind||Um.importKind==="value")&&(this.sawUnambiguousESM=!0)):(Um=this.parseExport(Tf,zd),(Um.type==="ExportNamedDeclaration"&&(!Um.exportKind||Um.exportKind==="value")||Um.type==="ExportAllDeclaration"&&(!Um.exportKind||Um.exportKind==="value")||Um.type==="ExportDefaultDeclaration")&&(this.sawUnambiguousESM=!0)),this.assertModuleNodeAllowed(Um),Um}default:if(this.isAsyncFunction())return Bf||this.raise(Ud.AsyncFunctionInSingleStatementContext,this.state.startLoc),this.next(),this.parseFunctionStatement(Tf,!0,!Bf&&Ph)}let Im=this.state.value,Gm=this.parseExpression();return _h(Zd)&&Gm.type==="Identifier"&&this.eat(14)?this.parseLabeledStatement(Tf,Im,Gm,Jd):this.parseExpressionStatement(Tf,Gm,zd)}assertModuleNodeAllowed(Jd){!this.options.allowImportExportEverywhere&&!this.inModule&&this.raise(Ud.ImportOutsideModule,Jd)}decoratorsEnabledBeforeExport(){return this.hasPlugin("decorators-legacy")?!0:this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")!==!1}maybeTakeDecorators(Jd,zd,Zd){return Jd&&(zd.decorators&&zd.decorators.length>0?(typeof this.getPluginOption("decorators","decoratorsBeforeExport")!="boolean"&&this.raise(Ud.DecoratorsBeforeAfterExport,zd.decorators[0]),zd.decorators.unshift(...Jd)):zd.decorators=Jd,this.resetStartLocationFromNode(zd,Jd[0]),Zd&&this.resetStartLocationFromNode(Zd,zd)),zd}canHaveLeadingDecorator(){return this.match(80)}parseDecorators(Jd){let zd=[];do zd.push(this.parseDecorator());while(this.match(26));if(this.match(82))Jd||this.unexpected(),this.decoratorsEnabledBeforeExport()||this.raise(Ud.DecoratorExportClass,this.state.startLoc);else if(!this.canHaveLeadingDecorator())throw this.raise(Ud.UnexpectedLeadingDecorator,this.state.startLoc);return zd}parseDecorator(){this.expectOnePlugin(["decorators","decorators-legacy"]);let Jd=this.startNode();if(this.next(),this.hasPlugin("decorators")){let zd=this.state.startLoc,Zd;if(this.match(10)){let Tf=this.state.startLoc;this.next(),Zd=this.parseExpression(),this.expect(11),Zd=this.wrapParenthesis(Tf,Zd);let Bf=this.state.startLoc;Jd.expression=this.parseMaybeDecoratorArguments(Zd),this.getPluginOption("decorators","allowCallParenthesized")===!1&&Jd.expression!==Zd&&this.raise(Ud.DecoratorArgumentsOutsideParentheses,Bf)}else{for(Zd=this.parseIdentifier(!1);this.eat(16);){let Tf=this.startNodeAt(zd);Tf.object=Zd,this.match(138)?(this.classScope.usePrivateName(this.state.value,this.state.startLoc),Tf.property=this.parsePrivateName()):Tf.property=this.parseIdentifier(!0),Tf.computed=!1,Zd=this.finishNode(Tf,"MemberExpression")}Jd.expression=this.parseMaybeDecoratorArguments(Zd)}}else Jd.expression=this.parseExprSubscripts();return this.finishNode(Jd,"Decorator")}parseMaybeDecoratorArguments(Jd){if(this.eat(10)){let zd=this.startNodeAtNode(Jd);return zd.callee=Jd,zd.arguments=this.parseCallExpressionArguments(11,!1),this.toReferencedList(zd.arguments),this.finishNode(zd,"CallExpression")}return Jd}parseBreakContinueStatement(Jd,zd){return this.next(),this.isLineTerminator()?Jd.label=null:(Jd.label=this.parseIdentifier(),this.semicolon()),this.verifyBreakContinue(Jd,zd),this.finishNode(Jd,zd?"BreakStatement":"ContinueStatement")}verifyBreakContinue(Jd,zd){let Zd;for(Zd=0;Zdthis.parseStatement()),this.state.labels.pop(),this.expect(92),Jd.test=this.parseHeaderExpression(),this.eat(13),this.finishNode(Jd,"DoWhileStatement")}parseForStatement(Jd){this.next(),this.state.labels.push(Pv);let zd=null;if(this.isAwaitAllowed()&&this.eatContextual(96)&&(zd=this.state.lastTokStartLoc),this.scope.enter(0),this.expect(10),this.match(13))return zd!==null&&this.unexpected(zd),this.parseFor(Jd,null);let Zd=this.isContextual(100);{let Im=this.isContextual(96)&&this.startsAwaitUsing(),Gm=Im||this.isContextual(107)&&this.startsUsingForOf(),Um=Zd&&this.hasFollowingBindingAtom()||Gm;if(this.match(74)||this.match(75)||Um){let Sg=this.startNode(),Bg;Im?(Bg="await using",this.isAwaitAllowed()||this.raise(Ud.AwaitUsingNotInAsyncContext,this.state.startLoc),this.next()):Bg=this.state.value,this.next(),this.parseVar(Sg,!0,Bg);let Xg=this.finishNode(Sg,"VariableDeclaration"),Zg=this.match(58);return Zg&&Gm&&this.raise(Ud.ForInUsing,Xg),(Zg||this.isContextual(102))&&Xg.declarations.length===1?this.parseForIn(Jd,Xg,zd):(zd!==null&&this.unexpected(zd),this.parseFor(Jd,Xg))}}let Tf=this.isContextual(95),Bf=new Tb,Ph=this.parseExpression(!0,Bf),hm=this.isContextual(102);if(hm&&(Zd&&this.raise(Ud.ForOfLet,Ph),zd===null&&Tf&&Ph.type==="Identifier"&&this.raise(Ud.ForOfAsync,Ph)),hm||this.match(58)){this.checkDestructuringPrivate(Bf),this.toAssignable(Ph,!0);let Im=hm?"ForOfStatement":"ForInStatement";return this.checkLVal(Ph,{in:{type:Im}}),this.parseForIn(Jd,Ph,zd)}else this.checkExpressionErrors(Bf,!0);return zd!==null&&this.unexpected(zd),this.parseFor(Jd,Ph)}parseFunctionStatement(Jd,zd,Zd){return this.next(),this.parseFunction(Jd,1|(Zd?2:0)|(zd?8:0))}parseIfStatement(Jd){return this.next(),Jd.test=this.parseHeaderExpression(),Jd.consequent=this.parseStatementOrSloppyAnnexBFunctionDeclaration(),Jd.alternate=this.eat(66)?this.parseStatementOrSloppyAnnexBFunctionDeclaration():null,this.finishNode(Jd,"IfStatement")}parseReturnStatement(Jd){return!this.prodParam.hasReturn&&!this.options.allowReturnOutsideFunction&&this.raise(Ud.IllegalReturn,this.state.startLoc),this.next(),this.isLineTerminator()?Jd.argument=null:(Jd.argument=this.parseExpression(),this.semicolon()),this.finishNode(Jd,"ReturnStatement")}parseSwitchStatement(Jd){this.next(),Jd.discriminant=this.parseHeaderExpression();let zd=Jd.cases=[];this.expect(5),this.state.labels.push(Qb),this.scope.enter(0);let Zd;for(let Tf;!this.match(8);)if(this.match(61)||this.match(65)){let Bf=this.match(61);Zd&&this.finishNode(Zd,"SwitchCase"),zd.push(Zd=this.startNode()),Zd.consequent=[],this.next(),Bf?Zd.test=this.parseExpression():(Tf&&this.raise(Ud.MultipleDefaultsInSwitch,this.state.lastTokStartLoc),Tf=!0,Zd.test=null),this.expect(14)}else Zd?Zd.consequent.push(this.parseStatementListItem()):this.unexpected();return this.scope.exit(),Zd&&this.finishNode(Zd,"SwitchCase"),this.next(),this.state.labels.pop(),this.finishNode(Jd,"SwitchStatement")}parseThrowStatement(Jd){return this.next(),this.hasPrecedingLineBreak()&&this.raise(Ud.NewlineAfterThrow,this.state.lastTokEndLoc),Jd.argument=this.parseExpression(),this.semicolon(),this.finishNode(Jd,"ThrowStatement")}parseCatchClauseParam(){let Jd=this.parseBindingAtom();return this.scope.enter(this.options.annexB&&Jd.type==="Identifier"?8:0),this.checkLVal(Jd,{in:{type:"CatchClause"},binding:9}),Jd}parseTryStatement(Jd){if(this.next(),Jd.block=this.parseBlock(),Jd.handler=null,this.match(62)){let zd=this.startNode();this.next(),this.match(10)?(this.expect(10),zd.param=this.parseCatchClauseParam(),this.expect(11)):(zd.param=null,this.scope.enter(0)),zd.body=this.withSmartMixTopicForbiddingContext(()=>this.parseBlock(!1,!1)),this.scope.exit(),Jd.handler=this.finishNode(zd,"CatchClause")}return Jd.finalizer=this.eat(67)?this.parseBlock():null,!Jd.handler&&!Jd.finalizer&&this.raise(Ud.NoCatchOrFinally,Jd),this.finishNode(Jd,"TryStatement")}parseVarStatement(Jd,zd,Zd=!1){return this.next(),this.parseVar(Jd,!1,zd,Zd),this.semicolon(),this.finishNode(Jd,"VariableDeclaration")}parseWhileStatement(Jd){return this.next(),Jd.test=this.parseHeaderExpression(),this.state.labels.push(Pv),Jd.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.state.labels.pop(),this.finishNode(Jd,"WhileStatement")}parseWithStatement(Jd){return this.state.strict&&this.raise(Ud.StrictWith,this.state.startLoc),this.next(),Jd.object=this.parseHeaderExpression(),Jd.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.finishNode(Jd,"WithStatement")}parseEmptyStatement(Jd){return this.next(),this.finishNode(Jd,"EmptyStatement")}parseLabeledStatement(Jd,zd,Zd,Tf){for(let Ph of this.state.labels)Ph.name===zd&&this.raise(Ud.LabelRedeclaration,Zd,{labelName:zd});let Bf=Zf(this.state.type)?1:this.match(71)?2:null;for(let Ph=this.state.labels.length-1;Ph>=0;Ph--){let hm=this.state.labels[Ph];if(hm.statementStart===Jd.start)hm.statementStart=this.state.start,hm.kind=Bf;else break}return this.state.labels.push({name:zd,kind:Bf,statementStart:this.state.start}),Jd.body=Tf&8?this.parseStatementOrSloppyAnnexBFunctionDeclaration(!0):this.parseStatement(),this.state.labels.pop(),Jd.label=Zd,this.finishNode(Jd,"LabeledStatement")}parseExpressionStatement(Jd,zd,Zd){return Jd.expression=zd,this.semicolon(),this.finishNode(Jd,"ExpressionStatement")}parseBlock(Jd=!1,zd=!0,Zd){let Tf=this.startNode();return Jd&&this.state.strictErrors.clear(),this.expect(5),zd&&this.scope.enter(0),this.parseBlockBody(Tf,Jd,!1,8,Zd),zd&&this.scope.exit(),this.finishNode(Tf,"BlockStatement")}isValidDirective(Jd){return Jd.type==="ExpressionStatement"&&Jd.expression.type==="StringLiteral"&&!Jd.expression.extra.parenthesized}parseBlockBody(Jd,zd,Zd,Tf,Bf){let Ph=Jd.body=[],hm=Jd.directives=[];this.parseBlockOrModuleBlockBody(Ph,zd?hm:void 0,Zd,Tf,Bf)}parseBlockOrModuleBlockBody(Jd,zd,Zd,Tf,Bf){let Ph=this.state.strict,hm=!1,Im=!1;for(;!this.match(Tf);){let Gm=Zd?this.parseModuleItem():this.parseStatementListItem();if(zd&&!Im){if(this.isValidDirective(Gm)){let Um=this.stmtToDirective(Gm);zd.push(Um),!hm&&Um.value.value==="use strict"&&(hm=!0,this.setStrict(!0));continue}Im=!0,this.state.strictErrors.clear()}Jd.push(Gm)}Bf==null||Bf.call(this,hm),Ph||this.setStrict(!1),this.next()}parseFor(Jd,zd){return Jd.init=zd,this.semicolon(!1),Jd.test=this.match(13)?null:this.parseExpression(),this.semicolon(!1),Jd.update=this.match(11)?null:this.parseExpression(),this.expect(11),Jd.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.scope.exit(),this.state.labels.pop(),this.finishNode(Jd,"ForStatement")}parseForIn(Jd,zd,Zd){let Tf=this.match(58);return this.next(),Tf?Zd!==null&&this.unexpected(Zd):Jd.await=Zd!==null,zd.type==="VariableDeclaration"&&zd.declarations[0].init!=null&&(!Tf||!this.options.annexB||this.state.strict||zd.kind!=="var"||zd.declarations[0].id.type!=="Identifier")&&this.raise(Ud.ForInOfLoopInitializer,zd,{type:Tf?"ForInStatement":"ForOfStatement"}),zd.type==="AssignmentPattern"&&this.raise(Ud.InvalidLhs,zd,{ancestor:{type:"ForStatement"}}),Jd.left=zd,Jd.right=Tf?this.parseExpression():this.parseMaybeAssignAllowIn(),this.expect(11),Jd.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.scope.exit(),this.state.labels.pop(),this.finishNode(Jd,Tf?"ForInStatement":"ForOfStatement")}parseVar(Jd,zd,Zd,Tf=!1){let Bf=Jd.declarations=[];for(Jd.kind=Zd;;){let Ph=this.startNode();if(this.parseVarId(Ph,Zd),Ph.init=this.eat(29)?zd?this.parseMaybeAssignDisallowIn():this.parseMaybeAssignAllowIn():null,Ph.init===null&&!Tf&&(Ph.id.type!=="Identifier"&&!(zd&&(this.match(58)||this.isContextual(102)))?this.raise(Ud.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:"destructuring"}):(Zd==="const"||Zd==="using"||Zd==="await using")&&!(this.match(58)||this.isContextual(102))&&this.raise(Ud.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:Zd})),Bf.push(this.finishNode(Ph,"VariableDeclarator")),!this.eat(12))break}return Jd}parseVarId(Jd,zd){let Zd=this.parseBindingAtom();(zd==="using"||zd==="await using")&&(Zd.type==="ArrayPattern"||Zd.type==="ObjectPattern")&&this.raise(Ud.UsingDeclarationHasBindingPattern,Zd.loc.start),this.checkLVal(Zd,{in:{type:"VariableDeclarator"},binding:zd==="var"?5:8201}),Jd.id=Zd}parseAsyncFunctionExpression(Jd){return this.parseFunction(Jd,8)}parseFunction(Jd,zd=0){let Zd=zd&2,Tf=!!(zd&1),Bf=Tf&&!(zd&4),Ph=!!(zd&8);this.initFunction(Jd,Ph),this.match(55)&&(Zd&&this.raise(Ud.GeneratorInSingleStatementContext,this.state.startLoc),this.next(),Jd.generator=!0),Tf&&(Jd.id=this.parseFunctionId(Bf));let hm=this.state.maybeInArrowParameters;return this.state.maybeInArrowParameters=!1,this.scope.enter(2),this.prodParam.enter(Ub(Ph,Jd.generator)),Tf||(Jd.id=this.parseFunctionId()),this.parseFunctionParams(Jd,!1),this.withSmartMixTopicForbiddingContext(()=>{this.parseFunctionBodyAndFinish(Jd,Tf?"FunctionDeclaration":"FunctionExpression")}),this.prodParam.exit(),this.scope.exit(),Tf&&!Zd&&this.registerFunctionStatementId(Jd),this.state.maybeInArrowParameters=hm,Jd}parseFunctionId(Jd){return Jd||_h(this.state.type)?this.parseIdentifier():null}parseFunctionParams(Jd,zd){this.expect(10),this.expressionScope.enter(W_()),Jd.params=this.parseBindingList(11,41,2|(zd?4:0)),this.expressionScope.exit()}registerFunctionStatementId(Jd){Jd.id&&this.scope.declareName(Jd.id.name,!this.options.annexB||this.state.strict||Jd.generator||Jd.async?this.scope.treatFunctionsAsVar?5:8201:17,Jd.id.loc.start)}parseClass(Jd,zd,Zd){this.next();let Tf=this.state.strict;return this.state.strict=!0,this.parseClassId(Jd,zd,Zd),this.parseClassSuper(Jd),Jd.body=this.parseClassBody(!!Jd.superClass,Tf),this.finishNode(Jd,zd?"ClassDeclaration":"ClassExpression")}isClassProperty(){return this.match(29)||this.match(13)||this.match(8)}isClassMethod(){return this.match(10)}nameIsConstructor(Jd){return Jd.type==="Identifier"&&Jd.name==="constructor"||Jd.type==="StringLiteral"&&Jd.value==="constructor"}isNonstaticConstructor(Jd){return!Jd.computed&&!Jd.static&&this.nameIsConstructor(Jd.key)}parseClassBody(Jd,zd){this.classScope.enter();let Zd={hadConstructor:!1,hadSuperClass:Jd},Tf=[],Bf=this.startNode();if(Bf.body=[],this.expect(5),this.withSmartMixTopicForbiddingContext(()=>{for(;!this.match(8);){if(this.eat(13)){if(Tf.length>0)throw this.raise(Ud.DecoratorSemicolon,this.state.lastTokEndLoc);continue}if(this.match(26)){Tf.push(this.parseDecorator());continue}let Ph=this.startNode();Tf.length&&(Ph.decorators=Tf,this.resetStartLocationFromNode(Ph,Tf[0]),Tf=[]),this.parseClassMember(Bf,Ph,Zd),Ph.kind==="constructor"&&Ph.decorators&&Ph.decorators.length>0&&this.raise(Ud.DecoratorConstructor,Ph)}}),this.state.strict=zd,this.next(),Tf.length)throw this.raise(Ud.TrailingDecorator,this.state.startLoc);return this.classScope.exit(),this.finishNode(Bf,"ClassBody")}parseClassMemberFromModifier(Jd,zd){let Zd=this.parseIdentifier(!0);if(this.isClassMethod()){let Tf=zd;return Tf.kind="method",Tf.computed=!1,Tf.key=Zd,Tf.static=!1,this.pushClassMethod(Jd,Tf,!1,!1,!1,!1),!0}else if(this.isClassProperty()){let Tf=zd;return Tf.computed=!1,Tf.key=Zd,Tf.static=!1,Jd.body.push(this.parseClassProperty(Tf)),!0}return this.resetPreviousNodeTrailingComments(Zd),!1}parseClassMember(Jd,zd,Zd){let Tf=this.isContextual(106);if(Tf){if(this.parseClassMemberFromModifier(Jd,zd))return;if(this.eat(5)){this.parseClassStaticBlock(Jd,zd);return}}this.parseClassMemberWithIsStatic(Jd,zd,Zd,Tf)}parseClassMemberWithIsStatic(Jd,zd,Zd,Tf){let Bf=zd,Ph=zd,hm=zd,Im=zd,Gm=zd,Um=Bf,Sg=Bf;if(zd.static=Tf,this.parsePropertyNamePrefixOperator(zd),this.eat(55)){Um.kind="method";let D_=this.match(138);if(this.parseClassElementName(Um),D_){this.pushClassPrivateMethod(Jd,Ph,!0,!1);return}this.isNonstaticConstructor(Bf)&&this.raise(Ud.ConstructorIsGenerator,Bf.key),this.pushClassMethod(Jd,Bf,!0,!1,!1,!1);return}let Bg=!this.state.containsEsc&&_h(this.state.type),Xg=this.parseClassElementName(zd),Zg=Bg?Xg.name:null,g_=this.isPrivateName(Xg),tb=this.state.startLoc;if(this.parsePostMemberNameModifiers(Sg),this.isClassMethod()){if(Um.kind="method",g_){this.pushClassPrivateMethod(Jd,Ph,!1,!1);return}let D_=this.isNonstaticConstructor(Bf),P_=!1;D_&&(Bf.kind="constructor",Zd.hadConstructor&&!this.hasPlugin("typescript")&&this.raise(Ud.DuplicateConstructor,Xg),D_&&this.hasPlugin("typescript")&&zd.override&&this.raise(Ud.OverrideOnConstructor,Xg),Zd.hadConstructor=!0,P_=Zd.hadSuperClass),this.pushClassMethod(Jd,Bf,!1,!1,D_,P_)}else if(this.isClassProperty())g_?this.pushClassPrivateProperty(Jd,Im):this.pushClassProperty(Jd,hm);else if(Zg==="async"&&!this.isLineTerminator()){this.resetPreviousNodeTrailingComments(Xg);let D_=this.eat(55);Sg.optional&&this.unexpected(tb),Um.kind="method";let P_=this.match(138);this.parseClassElementName(Um),this.parsePostMemberNameModifiers(Sg),P_?this.pushClassPrivateMethod(Jd,Ph,D_,!0):(this.isNonstaticConstructor(Bf)&&this.raise(Ud.ConstructorIsAsync,Bf.key),this.pushClassMethod(Jd,Bf,D_,!0,!1,!1))}else if((Zg==="get"||Zg==="set")&&!(this.match(55)&&this.isLineTerminator())){this.resetPreviousNodeTrailingComments(Xg),Um.kind=Zg;let D_=this.match(138);this.parseClassElementName(Bf),D_?this.pushClassPrivateMethod(Jd,Ph,!1,!1):(this.isNonstaticConstructor(Bf)&&this.raise(Ud.ConstructorIsAccessor,Bf.key),this.pushClassMethod(Jd,Bf,!1,!1,!1,!1)),this.checkGetterSetterParams(Bf)}else if(Zg==="accessor"&&!this.isLineTerminator()){this.expectPlugin("decoratorAutoAccessors"),this.resetPreviousNodeTrailingComments(Xg);let D_=this.match(138);this.parseClassElementName(hm),this.pushClassAccessorProperty(Jd,Gm,D_)}else this.isLineTerminator()?g_?this.pushClassPrivateProperty(Jd,Im):this.pushClassProperty(Jd,hm):this.unexpected()}parseClassElementName(Jd){let{type:zd,value:Zd}=this.state;if((zd===132||zd===133)&&Jd.static&&Zd==="prototype"&&this.raise(Ud.StaticPrototype,this.state.startLoc),zd===138){Zd==="constructor"&&this.raise(Ud.ConstructorClassPrivateField,this.state.startLoc);let Tf=this.parsePrivateName();return Jd.key=Tf,Tf}return this.parsePropertyName(Jd),Jd.key}parseClassStaticBlock(Jd,zd){var Zd;this.scope.enter(208);let Tf=this.state.labels;this.state.labels=[],this.prodParam.enter(0);let Bf=zd.body=[];this.parseBlockOrModuleBlockBody(Bf,void 0,!1,8),this.prodParam.exit(),this.scope.exit(),this.state.labels=Tf,Jd.body.push(this.finishNode(zd,"StaticBlock")),(Zd=zd.decorators)!=null&&Zd.length&&this.raise(Ud.DecoratorStaticBlock,zd)}pushClassProperty(Jd,zd){!zd.computed&&this.nameIsConstructor(zd.key)&&this.raise(Ud.ConstructorClassField,zd.key),Jd.body.push(this.parseClassProperty(zd))}pushClassPrivateProperty(Jd,zd){let Zd=this.parseClassPrivateProperty(zd);Jd.body.push(Zd),this.classScope.declarePrivateName(this.getPrivateNameSV(Zd.key),0,Zd.key.loc.start)}pushClassAccessorProperty(Jd,zd,Zd){!Zd&&!zd.computed&&this.nameIsConstructor(zd.key)&&this.raise(Ud.ConstructorClassField,zd.key);let Tf=this.parseClassAccessorProperty(zd);Jd.body.push(Tf),Zd&&this.classScope.declarePrivateName(this.getPrivateNameSV(Tf.key),0,Tf.key.loc.start)}pushClassMethod(Jd,zd,Zd,Tf,Bf,Ph){Jd.body.push(this.parseMethod(zd,Zd,Tf,Bf,Ph,"ClassMethod",!0))}pushClassPrivateMethod(Jd,zd,Zd,Tf){let Bf=this.parseMethod(zd,Zd,Tf,!1,!1,"ClassPrivateMethod",!0);Jd.body.push(Bf);let Ph=Bf.kind==="get"?Bf.static?6:2:Bf.kind==="set"?Bf.static?5:1:0;this.declareClassPrivateMethodInScope(Bf,Ph)}declareClassPrivateMethodInScope(Jd,zd){this.classScope.declarePrivateName(this.getPrivateNameSV(Jd.key),zd,Jd.key.loc.start)}parsePostMemberNameModifiers(Jd){}parseClassPrivateProperty(Jd){return this.parseInitializer(Jd),this.semicolon(),this.finishNode(Jd,"ClassPrivateProperty")}parseClassProperty(Jd){return this.parseInitializer(Jd),this.semicolon(),this.finishNode(Jd,"ClassProperty")}parseClassAccessorProperty(Jd){return this.parseInitializer(Jd),this.semicolon(),this.finishNode(Jd,"ClassAccessorProperty")}parseInitializer(Jd){this.scope.enter(80),this.expressionScope.enter(uy()),this.prodParam.enter(0),Jd.value=this.eat(29)?this.parseMaybeAssignAllowIn():null,this.expressionScope.exit(),this.prodParam.exit(),this.scope.exit()}parseClassId(Jd,zd,Zd,Tf=8331){if(_h(this.state.type))Jd.id=this.parseIdentifier(),zd&&this.declareNameFromIdentifier(Jd.id,Tf);else if(Zd||!zd)Jd.id=null;else throw this.raise(Ud.MissingClassName,this.state.startLoc)}parseClassSuper(Jd){Jd.superClass=this.eat(81)?this.parseExprSubscripts():null}parseExport(Jd,zd){let Zd=this.parseMaybeImportPhase(Jd,!0),Tf=this.maybeParseExportDefaultSpecifier(Jd,Zd),Bf=!Tf||this.eat(12),Ph=Bf&&this.eatExportStar(Jd),hm=Ph&&this.maybeParseExportNamespaceSpecifier(Jd),Im=Bf&&(!hm||this.eat(12)),Gm=Tf||Ph;if(Ph&&!hm){if(Tf&&this.unexpected(),zd)throw this.raise(Ud.UnsupportedDecoratorExport,Jd);return this.parseExportFrom(Jd,!0),this.finishNode(Jd,"ExportAllDeclaration")}let Um=this.maybeParseExportNamedSpecifiers(Jd);Tf&&Bf&&!Ph&&!Um&&this.unexpected(null,5),hm&&Im&&this.unexpected(null,98);let Sg;if(Gm||Um){if(Sg=!1,zd)throw this.raise(Ud.UnsupportedDecoratorExport,Jd);this.parseExportFrom(Jd,Gm)}else Sg=this.maybeParseExportDeclaration(Jd);if(Gm||Um||Sg){var Bg;let Xg=Jd;if(this.checkExport(Xg,!0,!1,!!Xg.source),((Bg=Xg.declaration)==null?void 0:Bg.type)==="ClassDeclaration")this.maybeTakeDecorators(zd,Xg.declaration,Xg);else if(zd)throw this.raise(Ud.UnsupportedDecoratorExport,Jd);return this.finishNode(Xg,"ExportNamedDeclaration")}if(this.eat(65)){let Xg=Jd,Zg=this.parseExportDefaultExpression();if(Xg.declaration=Zg,Zg.type==="ClassDeclaration")this.maybeTakeDecorators(zd,Zg,Xg);else if(zd)throw this.raise(Ud.UnsupportedDecoratorExport,Jd);return this.checkExport(Xg,!0,!0),this.finishNode(Xg,"ExportDefaultDeclaration")}this.unexpected(null,5)}eatExportStar(Jd){return this.eat(55)}maybeParseExportDefaultSpecifier(Jd,zd){if(zd||this.isExportDefaultSpecifier()){this.expectPlugin("exportDefaultFrom",zd==null?void 0:zd.loc.start);let Zd=zd||this.parseIdentifier(!0),Tf=this.startNodeAtNode(Zd);return Tf.exported=Zd,Jd.specifiers=[this.finishNode(Tf,"ExportDefaultSpecifier")],!0}return!1}maybeParseExportNamespaceSpecifier(Jd){if(this.isContextual(93)){var zd;(zd=Jd).specifiers!=null||(zd.specifiers=[]);let Zd=this.startNodeAt(this.state.lastTokStartLoc);return this.next(),Zd.exported=this.parseModuleExportName(),Jd.specifiers.push(this.finishNode(Zd,"ExportNamespaceSpecifier")),!0}return!1}maybeParseExportNamedSpecifiers(Jd){if(this.match(5)){let zd=Jd;zd.specifiers||(zd.specifiers=[]);let Zd=zd.exportKind==="type";return zd.specifiers.push(...this.parseExportSpecifiers(Zd)),zd.source=null,zd.declaration=null,this.hasPlugin("importAssertions")&&(zd.assertions=[]),!0}return!1}maybeParseExportDeclaration(Jd){return this.shouldParseExportDeclaration()?(Jd.specifiers=[],Jd.source=null,this.hasPlugin("importAssertions")&&(Jd.assertions=[]),Jd.declaration=this.parseExportDeclaration(Jd),!0):!1}isAsyncFunction(){if(!this.isContextual(95))return!1;let Jd=this.nextTokenInLineStart();return this.isUnparsedContextual(Jd,"function")}parseExportDefaultExpression(){let Jd=this.startNode();if(this.match(68))return this.next(),this.parseFunction(Jd,5);if(this.isAsyncFunction())return this.next(),this.next(),this.parseFunction(Jd,13);if(this.match(80))return this.parseClass(Jd,!0,!0);if(this.match(26))return this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")===!0&&this.raise(Ud.DecoratorBeforeExport,this.state.startLoc),this.parseClass(this.maybeTakeDecorators(this.parseDecorators(!1),this.startNode()),!0,!0);if(this.match(75)||this.match(74)||this.isLet())throw this.raise(Ud.UnsupportedDefaultExport,this.state.startLoc);let zd=this.parseMaybeAssignAllowIn();return this.semicolon(),zd}parseExportDeclaration(Jd){return this.match(80)?this.parseClass(this.startNode(),!0,!1):this.parseStatementListItem()}isExportDefaultSpecifier(){let{type:Jd}=this.state;if(_h(Jd)){if(Jd===95&&!this.state.containsEsc||Jd===100)return!1;if((Jd===130||Jd===129)&&!this.state.containsEsc){let{type:Tf}=this.lookahead();if(_h(Tf)&&Tf!==98||Tf===5)return this.expectOnePlugin(["flow","typescript"]),!1}}else if(!this.match(65))return!1;let zd=this.nextTokenStart(),Zd=this.isUnparsedContextual(zd,"from");if(this.input.charCodeAt(zd)===44||_h(this.state.type)&&Zd)return!0;if(this.match(65)&&Zd){let Tf=this.input.charCodeAt(this.nextTokenStartSince(zd+4));return Tf===34||Tf===39}return!1}parseExportFrom(Jd,zd){this.eatContextual(98)?(Jd.source=this.parseImportSource(),this.checkExport(Jd),this.maybeParseImportAttributes(Jd),this.checkJSONModuleImport(Jd)):zd&&this.unexpected(),this.semicolon()}shouldParseExportDeclaration(){let{type:Jd}=this.state;return Jd===26&&(this.expectOnePlugin(["decorators","decorators-legacy"]),this.hasPlugin("decorators"))?(this.getPluginOption("decorators","decoratorsBeforeExport")===!0&&this.raise(Ud.DecoratorBeforeExport,this.state.startLoc),!0):this.isContextual(107)?(this.raise(Ud.UsingDeclarationExport,this.state.startLoc),!0):this.isContextual(96)&&this.startsAwaitUsing()?(this.raise(Ud.UsingDeclarationExport,this.state.startLoc),!0):Jd===74||Jd===75||Jd===68||Jd===80||this.isLet()||this.isAsyncFunction()}checkExport(Jd,zd,Zd,Tf){if(zd){var Bf;if(Zd){if(this.checkDuplicateExports(Jd,"default"),this.hasPlugin("exportDefaultFrom")){var Ph;let hm=Jd.declaration;hm.type==="Identifier"&&hm.name==="from"&&hm.end-hm.start===4&&!((Ph=hm.extra)!=null&&Ph.parenthesized)&&this.raise(Ud.ExportDefaultFromAsIdentifier,hm)}}else if((Bf=Jd.specifiers)!=null&&Bf.length)for(let hm of Jd.specifiers){let{exported:Im}=hm,Gm=Im.type==="Identifier"?Im.name:Im.value;if(this.checkDuplicateExports(hm,Gm),!Tf&&hm.local){let{local:Um}=hm;Um.type!=="Identifier"?this.raise(Ud.ExportBindingIsString,hm,{localName:Um.value,exportName:Gm}):(this.checkReservedWord(Um.name,Um.loc.start,!0,!1),this.scope.checkLocalExport(Um))}}else if(Jd.declaration){let hm=Jd.declaration;if(hm.type==="FunctionDeclaration"||hm.type==="ClassDeclaration"){let{id:Im}=hm;if(!Im)throw new Error("Assertion failure");this.checkDuplicateExports(Jd,Im.name)}else if(hm.type==="VariableDeclaration")for(let Im of hm.declarations)this.checkDeclaration(Im.id)}}}checkDeclaration(Jd){if(Jd.type==="Identifier")this.checkDuplicateExports(Jd,Jd.name);else if(Jd.type==="ObjectPattern")for(let zd of Jd.properties)this.checkDeclaration(zd);else if(Jd.type==="ArrayPattern")for(let zd of Jd.elements)zd&&this.checkDeclaration(zd);else Jd.type==="ObjectProperty"?this.checkDeclaration(Jd.value):Jd.type==="RestElement"?this.checkDeclaration(Jd.argument):Jd.type==="AssignmentPattern"&&this.checkDeclaration(Jd.left)}checkDuplicateExports(Jd,zd){this.exportedIdentifiers.has(zd)&&(zd==="default"?this.raise(Ud.DuplicateDefaultExport,Jd):this.raise(Ud.DuplicateExport,Jd,{exportName:zd})),this.exportedIdentifiers.add(zd)}parseExportSpecifiers(Jd){let zd=[],Zd=!0;for(this.expect(5);!this.eat(8);){if(Zd)Zd=!1;else if(this.expect(12),this.eat(8))break;let Tf=this.isContextual(130),Bf=this.match(133),Ph=this.startNode();Ph.local=this.parseModuleExportName(),zd.push(this.parseExportSpecifier(Ph,Bf,Jd,Tf))}return zd}parseExportSpecifier(Jd,zd,Zd,Tf){return this.eatContextual(93)?Jd.exported=this.parseModuleExportName():zd?Jd.exported=Ty(Jd.local):Jd.exported||(Jd.exported=xb(Jd.local)),this.finishNode(Jd,"ExportSpecifier")}parseModuleExportName(){if(this.match(133)){let Jd=this.parseStringLiteral(this.state.value),zd=TS.exec(Jd.value);return zd&&this.raise(Ud.ModuleExportNameHasLoneSurrogate,Jd,{surrogateCharCode:zd[0].charCodeAt(0)}),Jd}return this.parseIdentifier(!0)}isJSONModuleImport(Jd){return Jd.assertions!=null?Jd.assertions.some(({key:zd,value:Zd})=>Zd.value==="json"&&(zd.type==="Identifier"?zd.name==="type":zd.value==="type")):!1}checkImportReflection(Jd){let{specifiers:zd}=Jd,Zd=zd.length===1?zd[0].type:null;if(Jd.phase==="source")Zd!=="ImportDefaultSpecifier"&&this.raise(Ud.SourcePhaseImportRequiresDefault,zd[0].loc.start);else if(Jd.phase==="defer")Zd!=="ImportNamespaceSpecifier"&&this.raise(Ud.DeferImportRequiresNamespace,zd[0].loc.start);else if(Jd.module){var Tf;Zd!=="ImportDefaultSpecifier"&&this.raise(Ud.ImportReflectionNotBinding,zd[0].loc.start),((Tf=Jd.assertions)==null?void 0:Tf.length)>0&&this.raise(Ud.ImportReflectionHasAssertion,zd[0].loc.start)}}checkJSONModuleImport(Jd){if(this.isJSONModuleImport(Jd)&&Jd.type!=="ExportAllDeclaration"){let{specifiers:zd}=Jd;if(zd!=null){let Zd=zd.find(Tf=>{let Bf;if(Tf.type==="ExportSpecifier"?Bf=Tf.local:Tf.type==="ImportSpecifier"&&(Bf=Tf.imported),Bf!==void 0)return Bf.type==="Identifier"?Bf.name!=="default":Bf.value!=="default"});Zd!==void 0&&this.raise(Ud.ImportJSONBindingNotDefault,Zd.loc.start)}}}isPotentialImportPhase(Jd){return Jd?!1:this.isContextual(105)||this.isContextual(97)||this.isContextual(127)}applyImportPhase(Jd,zd,Zd,Tf){zd||(Zd==="module"?(this.expectPlugin("importReflection",Tf),Jd.module=!0):this.hasPlugin("importReflection")&&(Jd.module=!1),Zd==="source"?(this.expectPlugin("sourcePhaseImports",Tf),Jd.phase="source"):Zd==="defer"?(this.expectPlugin("deferredImportEvaluation",Tf),Jd.phase="defer"):this.hasPlugin("sourcePhaseImports")&&(Jd.phase=null))}parseMaybeImportPhase(Jd,zd){if(!this.isPotentialImportPhase(zd))return this.applyImportPhase(Jd,zd,null),null;let Zd=this.parseIdentifier(!0),{type:Tf}=this.state;return(dm(Tf)?Tf!==98||this.lookaheadCharCode()===102:Tf!==12)?(this.resetPreviousIdentifierLeadingComments(Zd),this.applyImportPhase(Jd,zd,Zd.name,Zd.loc.start),null):(this.applyImportPhase(Jd,zd,null),Zd)}isPrecedingIdImportPhase(Jd){let{type:zd}=this.state;return _h(zd)?zd!==98||this.lookaheadCharCode()===102:zd!==12}parseImport(Jd){return this.match(133)?this.parseImportSourceAndAttributes(Jd):this.parseImportSpecifiersAndAfter(Jd,this.parseMaybeImportPhase(Jd,!1))}parseImportSpecifiersAndAfter(Jd,zd){Jd.specifiers=[];let Zd=!this.maybeParseDefaultImportSpecifier(Jd,zd)||this.eat(12),Tf=Zd&&this.maybeParseStarImportSpecifier(Jd);return Zd&&!Tf&&this.parseNamedImportSpecifiers(Jd),this.expectContextual(98),this.parseImportSourceAndAttributes(Jd)}parseImportSourceAndAttributes(Jd){return Jd.specifiers!=null||(Jd.specifiers=[]),Jd.source=this.parseImportSource(),this.maybeParseImportAttributes(Jd),this.checkImportReflection(Jd),this.checkJSONModuleImport(Jd),this.semicolon(),this.finishNode(Jd,"ImportDeclaration")}parseImportSource(){return this.match(133)||this.unexpected(),this.parseExprAtom()}parseImportSpecifierLocal(Jd,zd,Zd){zd.local=this.parseIdentifier(),Jd.specifiers.push(this.finishImportSpecifier(zd,Zd))}finishImportSpecifier(Jd,zd,Zd=8201){return this.checkLVal(Jd.local,{in:{type:zd},binding:Zd}),this.finishNode(Jd,zd)}parseImportAttributes(){this.expect(5);let Jd=[],zd=new Set;do{if(this.match(8))break;let Zd=this.startNode(),Tf=this.state.value;if(zd.has(Tf)&&this.raise(Ud.ModuleAttributesWithDuplicateKeys,this.state.startLoc,{key:Tf}),zd.add(Tf),this.match(133)?Zd.key=this.parseStringLiteral(Tf):Zd.key=this.parseIdentifier(!0),this.expect(14),!this.match(133))throw this.raise(Ud.ModuleAttributeInvalidValue,this.state.startLoc);Zd.value=this.parseStringLiteral(this.state.value),Jd.push(this.finishNode(Zd,"ImportAttribute"))}while(this.eat(12));return this.expect(8),Jd}parseModuleAttributes(){let Jd=[],zd=new Set;do{let Zd=this.startNode();if(Zd.key=this.parseIdentifier(!0),Zd.key.name!=="type"&&this.raise(Ud.ModuleAttributeDifferentFromType,Zd.key),zd.has(Zd.key.name)&&this.raise(Ud.ModuleAttributesWithDuplicateKeys,Zd.key,{key:Zd.key.name}),zd.add(Zd.key.name),this.expect(14),!this.match(133))throw this.raise(Ud.ModuleAttributeInvalidValue,this.state.startLoc);Zd.value=this.parseStringLiteral(this.state.value),Jd.push(this.finishNode(Zd,"ImportAttribute"))}while(this.eat(12));return Jd}maybeParseImportAttributes(Jd){let zd,Zd=!1;if(this.match(76)){if(this.hasPrecedingLineBreak()&&this.lookaheadCharCode()===40)return;this.next(),this.hasPlugin("moduleAttributes")?zd=this.parseModuleAttributes():(this.expectImportAttributesPlugin(),zd=this.parseImportAttributes()),Zd=!0}else if(this.isContextual(94)&&!this.hasPrecedingLineBreak())this.hasPlugin("importAttributes")?(this.getPluginOption("importAttributes","deprecatedAssertSyntax")!==!0&&this.raise(Ud.ImportAttributesUseAssert,this.state.startLoc),this.addExtra(Jd,"deprecatedAssertSyntax",!0)):this.expectOnePlugin(["importAttributes","importAssertions"]),this.next(),zd=this.parseImportAttributes();else if(this.hasPlugin("importAttributes")||this.hasPlugin("importAssertions"))zd=[];else if(this.hasPlugin("moduleAttributes"))zd=[];else return;!Zd&&this.hasPlugin("importAssertions")?Jd.assertions=zd:Jd.attributes=zd}maybeParseDefaultImportSpecifier(Jd,zd){if(zd){let Zd=this.startNodeAtNode(zd);return Zd.local=zd,Jd.specifiers.push(this.finishImportSpecifier(Zd,"ImportDefaultSpecifier")),!0}else if(dm(this.state.type))return this.parseImportSpecifierLocal(Jd,this.startNode(),"ImportDefaultSpecifier"),!0;return!1}maybeParseStarImportSpecifier(Jd){if(this.match(55)){let zd=this.startNode();return this.next(),this.expectContextual(93),this.parseImportSpecifierLocal(Jd,zd,"ImportNamespaceSpecifier"),!0}return!1}parseNamedImportSpecifiers(Jd){let zd=!0;for(this.expect(5);!this.eat(8);){if(zd)zd=!1;else{if(this.eat(14))throw this.raise(Ud.DestructureNamedImport,this.state.startLoc);if(this.expect(12),this.eat(8))break}let Zd=this.startNode(),Tf=this.match(133),Bf=this.isContextual(130);Zd.imported=this.parseModuleExportName();let Ph=this.parseImportSpecifier(Zd,Tf,Jd.importKind==="type"||Jd.importKind==="typeof",Bf,void 0);Jd.specifiers.push(Ph)}}parseImportSpecifier(Jd,zd,Zd,Tf,Bf){if(this.eatContextual(93))Jd.local=this.parseIdentifier();else{let{imported:Ph}=Jd;if(zd)throw this.raise(Ud.ImportBindingIsString,Jd,{importName:Ph.value});this.checkReservedWord(Ph.name,Jd.loc.start,!0,!0),Jd.local||(Jd.local=xb(Ph))}return this.finishImportSpecifier(Jd,"ImportSpecifier",Bf)}isThisParam(Jd){return Jd.type==="Identifier"&&Jd.name==="this"}},HE=class extends UE{constructor(Jd,zd){Jd=SS(Jd),super(Jd,zd),this.options=Jd,this.initializeScopes(),this.plugins=K_(this.options.plugins),this.filename=Jd.sourceFilename}getScopeHandler(){return eb}parse(){this.enterInitialScopes();let Jd=this.startNode(),zd=this.startNode();return this.nextToken(),Jd.errors=null,this.parseTopLevel(Jd,zd),Jd.errors=this.state.errors,Jd.comments.length=this.state.commentsLen,Jd}};function K_(Jd){let zd=new Map;for(let Zd of Jd){let[Tf,Bf]=Array.isArray(Zd)?Zd:[Zd,{}];zd.has(Tf)||zd.set(Tf,Bf||{})}return zd}function Gy(Jd,zd){var Zd;if(((Zd=zd)==null?void 0:Zd.sourceType)==="unambiguous"){zd=Object.assign({},zd);try{zd.sourceType="module";let Tf=Dy(zd,Jd),Bf=Tf.parse();if(Tf.sawUnambiguousESM)return Bf;if(Tf.ambiguousScriptDifferentAst)try{return zd.sourceType="script",Dy(zd,Jd).parse()}catch{}else Bf.program.sourceType="script";return Bf}catch(Tf){try{return zd.sourceType="script",Dy(zd,Jd).parse()}catch{}throw Tf}}else return Dy(zd,Jd).parse()}function Lv(Jd,zd){let Zd=Dy(zd,Jd);return Zd.options.strictMode&&(Zd.state.strict=!0),Zd.getExpression()}function xS(Jd){let zd={};for(let Zd of Object.keys(Jd))zd[Zd]=rg(Jd[Zd]);return zd}var U0=xS(Af);function Dy(Jd,zd){let Zd=HE;return Jd!=null&&Jd.plugins&&(Ay(Jd.plugins),Zd=fT(Jd.plugins)),new Zd(Jd,zd)}var CS={};function fT(Jd){let zd=jE.filter(Bf=>Q_(Jd,Bf)),Zd=zd.join("/"),Tf=CS[Zd];if(!Tf){Tf=HE;for(let Bf of zd)Tf=j0[Bf](Tf);CS[Zd]=Tf}return Tf}Ra.parse=Gy,Ra.parseExpression=Lv,Ra.tokTypes=U0}),kt$3={};Ws$1(kt$3,{parsers:()=>Qr$3});var _e$6=vt$4(At$4());function Me$6(Ra){return(qa,rd,sd)=>{let pd=!!(sd!=null&&sd.backwards);if(rd===!1)return!1;let{length:fd}=qa,hd=rd;for(;hd>=0&&hdqa&&hd>pd?gd+=Ra.slice(pd,hd)+` `+Ra.slice(hd+1):gd+=Ra.slice(pd),gd.slice(1)}function escapeString$1(Ra){for(var qa="",rd,sd,pd,fd=0;fd=55296&&rd<=56319&&(sd=Ra.charCodeAt(fd+1),sd>=56320&&sd<=57343)){qa+=encodeHex$1((rd-55296)*1024+sd-56320+65536),fd++;continue}pd=ESCAPE_SEQUENCES$1[rd],qa+=!pd&&isPrintable$1(rd)?Ra[fd]:pd||encodeHex$1(rd)}return qa}function writeFlowSequence$1(Ra,qa,rd){var sd="",pd=Ra.tag,fd,hd;for(fd=0,hd=rd.length;fd1024&&(vd+="? "),vd+=Ra.dump+(Ra.condenseFlow?'"':"")+":"+(Ra.condenseFlow?"":" "),writeNode$1(Ra,qa,yd,!1,!1)&&(vd+=Ra.dump,sd+=vd));Ra.tag=pd,Ra.dump="{"+sd+"}"}function writeBlockMapping$1(Ra,qa,rd,sd){var pd="",fd=Ra.tag,hd=Object.keys(rd),md,gd,yd,vd,Nd,Md;if(Ra.sortKeys===!0)hd.sort();else if(typeof Ra.sortKeys=="function")hd.sort(Ra.sortKeys);else if(Ra.sortKeys)throw new YAMLException("sortKeys must be a boolean or a function");for(md=0,gd=hd.length;md1024,Nd&&(Ra.dump&&CHAR_LINE_FEED$1===Ra.dump.charCodeAt(0)?Md+="?":Md+="? "),Md+=Ra.dump,Nd&&(Md+=generateNextLine$1(Ra,qa)),writeNode$1(Ra,qa+1,vd,!0,Nd)&&(Ra.dump&&CHAR_LINE_FEED$1===Ra.dump.charCodeAt(0)?Md+=":":Md+=": ",Md+=Ra.dump,pd+=Md));Ra.tag=fd,Ra.dump=pd||"{}"}function detectType$2(Ra,qa,rd){var sd,pd,fd,hd,md,gd;for(pd=rd?Ra.explicitTypes:Ra.implicitTypes,fd=0,hd=pd.length;fd tag resolver accepts not "'+gd+'" style');Ra.dump=sd}return!0}return!1}function writeNode$1(Ra,qa,rd,sd,pd,fd){Ra.tag=null,Ra.dump=rd,detectType$2(Ra,rd,!1)||detectType$2(Ra,rd,!0);var hd=_toString$3.call(Ra.dump);sd&&(sd=Ra.flowLevel<0||Ra.flowLevel>qa);var md=hd==="[object Object]"||hd==="[object Array]",gd,yd;if(md&&(gd=Ra.duplicates.indexOf(rd),yd=gd!==-1),(Ra.tag!==null&&Ra.tag!=="?"||yd||Ra.indent!==2&&qa>0)&&(pd=!1),yd&&Ra.usedDuplicates[gd])Ra.dump="*ref_"+gd;else{if(md&&yd&&!Ra.usedDuplicates[gd]&&(Ra.usedDuplicates[gd]=!0),hd==="[object Object]")sd&&Object.keys(Ra.dump).length!==0?(writeBlockMapping$1(Ra,qa,Ra.dump,pd),yd&&(Ra.dump="&ref_"+gd+Ra.dump)):(writeFlowMapping$1(Ra,qa,Ra.dump),yd&&(Ra.dump="&ref_"+gd+" "+Ra.dump));else if(hd==="[object Array]"){var vd=Ra.noArrayIndent&&qa>0?qa-1:qa;sd&&Ra.dump.length!==0?(writeBlockSequence$1(Ra,vd,Ra.dump,pd),yd&&(Ra.dump="&ref_"+gd+Ra.dump)):(writeFlowSequence$1(Ra,vd,Ra.dump),yd&&(Ra.dump="&ref_"+gd+" "+Ra.dump))}else if(hd==="[object String]")Ra.tag!=="?"&&writeScalar$1(Ra,Ra.dump,qa,fd);else{if(Ra.skipInvalid)return!1;throw new YAMLException("unacceptable kind of an object to dump "+hd)}Ra.tag!==null&&Ra.tag!=="?"&&(Ra.dump="!<"+Ra.tag+"> "+Ra.dump)}return!0}function getDuplicateReferences$1(Ra,qa){var rd=[],sd=[],pd,fd;for(inspectNode$1(Ra,rd,sd),pd=0,fd=sd.length;pd=pd)return rd;rd++,sd=qa.indexOf(` `,sd+1)}return rd}function parse$2(Ra,qa){var rd=regex$1.exec(Ra);if(!rd)return{attributes:{},body:Ra,bodyBegin:1};var sd=qa?parser$1.load:parser$1.safeLoad,pd=rd[rd.length-1].replace(/^\s+|\s+$/g,""),fd=sd(pd)||{},hd=Ra.replace(rd[0],""),md=computeLocation(rd,Ra);return{attributes:fd,body:hd,bodyBegin:md,frontmatter:pd}}function test$1(Ra){return Ra=Ra||"",regex$1.test(Ra)}var frontMatterExports=frontMatter$1.exports;const frontMatter=getDefaultExportFromCjs(frontMatterExports);function deepFreeze(Ra){return Ra instanceof Map?Ra.clear=Ra.delete=Ra.set=function(){throw new Error("map is read-only")}:Ra instanceof Set&&(Ra.add=Ra.clear=Ra.delete=function(){throw new Error("set is read-only")}),Object.freeze(Ra),Object.getOwnPropertyNames(Ra).forEach(qa=>{const rd=Ra[qa],sd=typeof rd;(sd==="object"||sd==="function")&&!Object.isFrozen(rd)&&deepFreeze(rd)}),Ra}let Response$1=class{constructor(qa){qa.data===void 0&&(qa.data={}),this.data=qa.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}};function escapeHTML(Ra){return Ra.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}function inherit$1(Ra,...qa){const rd=Object.create(null);for(const sd in Ra)rd[sd]=Ra[sd];return qa.forEach(function(sd){for(const pd in sd)rd[pd]=sd[pd]}),rd}const SPAN_CLOSE="",emitsWrappingTags=Ra=>!!Ra.scope,scopeToCSSClass=(Ra,{prefix:qa})=>{if(Ra.startsWith("language:"))return Ra.replace("language:","language-");if(Ra.includes(".")){const rd=Ra.split(".");return[`${qa}${rd.shift()}`,...rd.map((sd,pd)=>`${sd}${"_".repeat(pd+1)}`)].join(" ")}return`${qa}${Ra}`};class HTMLRenderer{constructor(qa,rd){this.buffer="",this.classPrefix=rd.classPrefix,qa.walk(this)}addText(qa){this.buffer+=escapeHTML(qa)}openNode(qa){if(!emitsWrappingTags(qa))return;const rd=scopeToCSSClass(qa.scope,{prefix:this.classPrefix});this.span(rd)}closeNode(qa){emitsWrappingTags(qa)&&(this.buffer+=SPAN_CLOSE)}value(){return this.buffer}span(qa){this.buffer+=``}}const newNode=(Ra={})=>{const qa={children:[]};return Object.assign(qa,Ra),qa};class TokenTree{constructor(){this.rootNode=newNode(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(qa){this.top.children.push(qa)}openNode(qa){const rd=newNode({scope:qa});this.add(rd),this.stack.push(rd)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(qa){return this.constructor._walk(qa,this.rootNode)}static _walk(qa,rd){return typeof rd=="string"?qa.addText(rd):rd.children&&(qa.openNode(rd),rd.children.forEach(sd=>this._walk(qa,sd)),qa.closeNode(rd)),qa}static _collapse(qa){typeof qa!="string"&&qa.children&&(qa.children.every(rd=>typeof rd=="string")?qa.children=[qa.children.join("")]:qa.children.forEach(rd=>{TokenTree._collapse(rd)}))}}class TokenTreeEmitter extends TokenTree{constructor(qa){super(),this.options=qa}addText(qa){qa!==""&&this.add(qa)}startScope(qa){this.openNode(qa)}endScope(){this.closeNode()}__addSublanguage(qa,rd){const sd=qa.root;rd&&(sd.scope=`language:${rd}`),this.add(sd)}toHTML(){return new HTMLRenderer(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function source(Ra){return Ra?typeof Ra=="string"?Ra:Ra.source:null}function lookahead(Ra){return concat$2("(?=",Ra,")")}function anyNumberOfTimes(Ra){return concat$2("(?:",Ra,")*")}function optional(Ra){return concat$2("(?:",Ra,")?")}function concat$2(...Ra){return Ra.map(rd=>source(rd)).join("")}function stripOptionsFromArgs(Ra){const qa=Ra[Ra.length-1];return typeof qa=="object"&&qa.constructor===Object?(Ra.splice(Ra.length-1,1),qa):{}}function either(...Ra){return"("+(stripOptionsFromArgs(Ra).capture?"":"?:")+Ra.map(sd=>source(sd)).join("|")+")"}function countMatchGroups(Ra){return new RegExp(Ra.toString()+"|").exec("").length-1}function startsWith$1(Ra,qa){const rd=Ra&&Ra.exec(qa);return rd&&rd.index===0}const BACKREF_RE=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function _rewriteBackreferences(Ra,{joinWith:qa}){let rd=0;return Ra.map(sd=>{rd+=1;const pd=rd;let fd=source(sd),hd="";for(;fd.length>0;){const md=BACKREF_RE.exec(fd);if(!md){hd+=fd;break}hd+=fd.substring(0,md.index),fd=fd.substring(md.index+md[0].length),md[0][0]==="\\"&&md[1]?hd+="\\"+String(Number(md[1])+pd):(hd+=md[0],md[0]==="("&&rd++)}return hd}).map(sd=>`(${sd})`).join(qa)}const MATCH_NOTHING_RE=/\b\B/,IDENT_RE="[a-zA-Z]\\w*",UNDERSCORE_IDENT_RE="[a-zA-Z_]\\w*",NUMBER_RE="\\b\\d+(\\.\\d+)?",C_NUMBER_RE="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",BINARY_NUMBER_RE="\\b(0b[01]+)",RE_STARTERS_RE="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",SHEBANG=(Ra={})=>{const qa=/^#![ ]*\//;return Ra.binary&&(Ra.begin=concat$2(qa,/.*\b/,Ra.binary,/\b.*/)),inherit$1({scope:"meta",begin:qa,end:/$/,relevance:0,"on:begin":(rd,sd)=>{rd.index!==0&&sd.ignoreMatch()}},Ra)},BACKSLASH_ESCAPE={begin:"\\\\[\\s\\S]",relevance:0},APOS_STRING_MODE={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[BACKSLASH_ESCAPE]},QUOTE_STRING_MODE={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[BACKSLASH_ESCAPE]},PHRASAL_WORDS_MODE={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},COMMENT$1=function(Ra,qa,rd={}){const sd=inherit$1({scope:"comment",begin:Ra,end:qa,contains:[]},rd);sd.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const pd=either("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return sd.contains.push({begin:concat$2(/[ ]+/,"(",pd,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),sd},C_LINE_COMMENT_MODE=COMMENT$1("//","$"),C_BLOCK_COMMENT_MODE=COMMENT$1("/\\*","\\*/"),HASH_COMMENT_MODE=COMMENT$1("#","$"),NUMBER_MODE={scope:"number",begin:NUMBER_RE,relevance:0},C_NUMBER_MODE={scope:"number",begin:C_NUMBER_RE,relevance:0},BINARY_NUMBER_MODE={scope:"number",begin:BINARY_NUMBER_RE,relevance:0},REGEXP_MODE={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[BACKSLASH_ESCAPE,{begin:/\[/,end:/\]/,relevance:0,contains:[BACKSLASH_ESCAPE]}]},TITLE_MODE={scope:"title",begin:IDENT_RE,relevance:0},UNDERSCORE_TITLE_MODE={scope:"title",begin:UNDERSCORE_IDENT_RE,relevance:0},METHOD_GUARD={begin:"\\.\\s*"+UNDERSCORE_IDENT_RE,relevance:0},END_SAME_AS_BEGIN=function(Ra){return Object.assign(Ra,{"on:begin":(qa,rd)=>{rd.data._beginMatch=qa[1]},"on:end":(qa,rd)=>{rd.data._beginMatch!==qa[1]&&rd.ignoreMatch()}})};var MODES=Object.freeze({__proto__:null,APOS_STRING_MODE,BACKSLASH_ESCAPE,BINARY_NUMBER_MODE,BINARY_NUMBER_RE,COMMENT:COMMENT$1,C_BLOCK_COMMENT_MODE,C_LINE_COMMENT_MODE,C_NUMBER_MODE,C_NUMBER_RE,END_SAME_AS_BEGIN,HASH_COMMENT_MODE,IDENT_RE,MATCH_NOTHING_RE,METHOD_GUARD,NUMBER_MODE,NUMBER_RE,PHRASAL_WORDS_MODE,QUOTE_STRING_MODE,REGEXP_MODE,RE_STARTERS_RE,SHEBANG,TITLE_MODE,UNDERSCORE_IDENT_RE,UNDERSCORE_TITLE_MODE});function skipIfHasPrecedingDot(Ra,qa){Ra.input[Ra.index-1]==="."&&qa.ignoreMatch()}function scopeClassName(Ra,qa){Ra.className!==void 0&&(Ra.scope=Ra.className,delete Ra.className)}function beginKeywords(Ra,qa){qa&&Ra.beginKeywords&&(Ra.begin="\\b("+Ra.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",Ra.__beforeBegin=skipIfHasPrecedingDot,Ra.keywords=Ra.keywords||Ra.beginKeywords,delete Ra.beginKeywords,Ra.relevance===void 0&&(Ra.relevance=0))}function compileIllegal(Ra,qa){Array.isArray(Ra.illegal)&&(Ra.illegal=either(...Ra.illegal))}function compileMatch(Ra,qa){if(Ra.match){if(Ra.begin||Ra.end)throw new Error("begin & end are not supported with match");Ra.begin=Ra.match,delete Ra.match}}function compileRelevance(Ra,qa){Ra.relevance===void 0&&(Ra.relevance=1)}const beforeMatchExt=(Ra,qa)=>{if(!Ra.beforeMatch)return;if(Ra.starts)throw new Error("beforeMatch cannot be used with starts");const rd=Object.assign({},Ra);Object.keys(Ra).forEach(sd=>{delete Ra[sd]}),Ra.keywords=rd.keywords,Ra.begin=concat$2(rd.beforeMatch,lookahead(rd.begin)),Ra.starts={relevance:0,contains:[Object.assign(rd,{endsParent:!0})]},Ra.relevance=0,delete rd.beforeMatch},COMMON_KEYWORDS=["of","and","for","in","not","or","if","then","parent","list","value"],DEFAULT_KEYWORD_SCOPE="keyword";function compileKeywords(Ra,qa,rd=DEFAULT_KEYWORD_SCOPE){const sd=Object.create(null);return typeof Ra=="string"?pd(rd,Ra.split(" ")):Array.isArray(Ra)?pd(rd,Ra):Object.keys(Ra).forEach(function(fd){Object.assign(sd,compileKeywords(Ra[fd],qa,fd))}),sd;function pd(fd,hd){qa&&(hd=hd.map(md=>md.toLowerCase())),hd.forEach(function(md){const gd=md.split("|");sd[gd[0]]=[fd,scoreForKeyword(gd[0],gd[1])]})}}function scoreForKeyword(Ra,qa){return qa?Number(qa):commonKeyword(Ra)?0:1}function commonKeyword(Ra){return COMMON_KEYWORDS.includes(Ra.toLowerCase())}const seenDeprecations={},error=Ra=>{console.error(Ra)},warn=(Ra,...qa)=>{console.log(`WARN: ${Ra}`,...qa)},deprecated=(Ra,qa)=>{seenDeprecations[`${Ra}/${qa}`]||(console.log(`Deprecated as of ${Ra}. ${qa}`),seenDeprecations[`${Ra}/${qa}`]=!0)},MultiClassError=new Error;function remapScopeNames(Ra,qa,{key:rd}){let sd=0;const pd=Ra[rd],fd={},hd={};for(let md=1;md<=qa.length;md++)hd[md+sd]=pd[md],fd[md+sd]=!0,sd+=countMatchGroups(qa[md-1]);Ra[rd]=hd,Ra[rd]._emit=fd,Ra[rd]._multi=!0}function beginMultiClass(Ra){if(Array.isArray(Ra.begin)){if(Ra.skip||Ra.excludeBegin||Ra.returnBegin)throw error("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),MultiClassError;if(typeof Ra.beginScope!="object"||Ra.beginScope===null)throw error("beginScope must be object"),MultiClassError;remapScopeNames(Ra,Ra.begin,{key:"beginScope"}),Ra.begin=_rewriteBackreferences(Ra.begin,{joinWith:""})}}function endMultiClass(Ra){if(Array.isArray(Ra.end)){if(Ra.skip||Ra.excludeEnd||Ra.returnEnd)throw error("skip, excludeEnd, returnEnd not compatible with endScope: {}"),MultiClassError;if(typeof Ra.endScope!="object"||Ra.endScope===null)throw error("endScope must be object"),MultiClassError;remapScopeNames(Ra,Ra.end,{key:"endScope"}),Ra.end=_rewriteBackreferences(Ra.end,{joinWith:""})}}function scopeSugar(Ra){Ra.scope&&typeof Ra.scope=="object"&&Ra.scope!==null&&(Ra.beginScope=Ra.scope,delete Ra.scope)}function MultiClass(Ra){scopeSugar(Ra),typeof Ra.beginScope=="string"&&(Ra.beginScope={_wrap:Ra.beginScope}),typeof Ra.endScope=="string"&&(Ra.endScope={_wrap:Ra.endScope}),beginMultiClass(Ra),endMultiClass(Ra)}function compileLanguage(Ra){function qa(hd,md){return new RegExp(source(hd),"m"+(Ra.case_insensitive?"i":"")+(Ra.unicodeRegex?"u":"")+(md?"g":""))}class rd{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(md,gd){gd.position=this.position++,this.matchIndexes[this.matchAt]=gd,this.regexes.push([gd,md]),this.matchAt+=countMatchGroups(md)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const md=this.regexes.map(gd=>gd[1]);this.matcherRe=qa(_rewriteBackreferences(md,{joinWith:"|"}),!0),this.lastIndex=0}exec(md){this.matcherRe.lastIndex=this.lastIndex;const gd=this.matcherRe.exec(md);if(!gd)return null;const yd=gd.findIndex((Nd,Md)=>Md>0&&Nd!==void 0),vd=this.matchIndexes[yd];return gd.splice(0,yd),Object.assign(gd,vd)}}class sd{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(md){if(this.multiRegexes[md])return this.multiRegexes[md];const gd=new rd;return this.rules.slice(md).forEach(([yd,vd])=>gd.addRule(yd,vd)),gd.compile(),this.multiRegexes[md]=gd,gd}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(md,gd){this.rules.push([md,gd]),gd.type==="begin"&&this.count++}exec(md){const gd=this.getMatcher(this.regexIndex);gd.lastIndex=this.lastIndex;let yd=gd.exec(md);if(this.resumingScanAtSamePosition()&&!(yd&&yd.index===this.lastIndex)){const vd=this.getMatcher(0);vd.lastIndex=this.lastIndex+1,yd=vd.exec(md)}return yd&&(this.regexIndex+=yd.position+1,this.regexIndex===this.count&&this.considerAll()),yd}}function pd(hd){const md=new sd;return hd.contains.forEach(gd=>md.addRule(gd.begin,{rule:gd,type:"begin"})),hd.terminatorEnd&&md.addRule(hd.terminatorEnd,{type:"end"}),hd.illegal&&md.addRule(hd.illegal,{type:"illegal"}),md}function fd(hd,md){const gd=hd;if(hd.isCompiled)return gd;[scopeClassName,compileMatch,MultiClass,beforeMatchExt].forEach(vd=>vd(hd,md)),Ra.compilerExtensions.forEach(vd=>vd(hd,md)),hd.__beforeBegin=null,[beginKeywords,compileIllegal,compileRelevance].forEach(vd=>vd(hd,md)),hd.isCompiled=!0;let yd=null;return typeof hd.keywords=="object"&&hd.keywords.$pattern&&(hd.keywords=Object.assign({},hd.keywords),yd=hd.keywords.$pattern,delete hd.keywords.$pattern),yd=yd||/\w+/,hd.keywords&&(hd.keywords=compileKeywords(hd.keywords,Ra.case_insensitive)),gd.keywordPatternRe=qa(yd,!0),md&&(hd.begin||(hd.begin=/\B|\b/),gd.beginRe=qa(gd.begin),!hd.end&&!hd.endsWithParent&&(hd.end=/\B|\b/),hd.end&&(gd.endRe=qa(gd.end)),gd.terminatorEnd=source(gd.end)||"",hd.endsWithParent&&md.terminatorEnd&&(gd.terminatorEnd+=(hd.end?"|":"")+md.terminatorEnd)),hd.illegal&&(gd.illegalRe=qa(hd.illegal)),hd.contains||(hd.contains=[]),hd.contains=[].concat(...hd.contains.map(function(vd){return expandOrCloneMode(vd==="self"?hd:vd)})),hd.contains.forEach(function(vd){fd(vd,gd)}),hd.starts&&fd(hd.starts,md),gd.matcher=pd(gd),gd}if(Ra.compilerExtensions||(Ra.compilerExtensions=[]),Ra.contains&&Ra.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return Ra.classNameAliases=inherit$1(Ra.classNameAliases||{}),fd(Ra)}function dependencyOnParent(Ra){return Ra?Ra.endsWithParent||dependencyOnParent(Ra.starts):!1}function expandOrCloneMode(Ra){return Ra.variants&&!Ra.cachedVariants&&(Ra.cachedVariants=Ra.variants.map(function(qa){return inherit$1(Ra,{variants:null},qa)})),Ra.cachedVariants?Ra.cachedVariants:dependencyOnParent(Ra)?inherit$1(Ra,{starts:Ra.starts?inherit$1(Ra.starts):null}):Object.isFrozen(Ra)?inherit$1(Ra):Ra}var version$3="11.11.1";class HTMLInjectionError extends Error{constructor(qa,rd){super(qa),this.name="HTMLInjectionError",this.html=rd}}const escape$4=escapeHTML,inherit$2=inherit$1,NO_MATCH=Symbol("nomatch"),MAX_KEYWORD_HITS=7,HLJS=function(Ra){const qa=Object.create(null),rd=Object.create(null),sd=[];let pd=!0;const fd="Could not find the language '{}', did you forget to load/include a language module?",hd={disableAutodetect:!0,name:"Plain text",contains:[]};let md={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:TokenTreeEmitter};function gd(wf){return md.noHighlightRe.test(wf)}function yd(wf){let Pf=wf.className+" ";Pf+=wf.parentNode?wf.parentNode.className:"";const lh=md.languageDetectRe.exec(Pf);if(lh){const xh=Ef(lh[1]);return xh||(warn(fd.replace("{}",lh[1])),warn("Falling back to no-highlight mode for this block.",wf)),xh?lh[1]:"no-highlight"}return Pf.split(/\s+/).find(xh=>gd(xh)||Ef(xh))}function vd(wf,Pf,lh){let xh="",Eh="";typeof Pf=="object"?(xh=wf,lh=Pf.ignoreIllegals,Eh=Pf.language):(deprecated("10.7.0","highlight(lang, code, ...args) has been deprecated."),deprecated("10.7.0",`Please use highlight(code, options) instead. https://github.com/highlightjs/highlight.js/issues/2277`),Eh=wf,xh=Pf),lh===void 0&&(lh=!0);const Mh={code:xh,language:Eh};If("before:highlight",Mh);const dh=Mh.result?Mh.result:Nd(Mh.language,Mh.code,lh);return dh.code=Mh.code,If("after:highlight",dh),dh}function Nd(wf,Pf,lh,xh){const Eh=Object.create(null);function Mh(Fm,Ym){return Fm.keywords[Ym]}function dh(){if(!th.keywords){wh.addText(fm);return}let Fm=0;th.keywordPatternRe.lastIndex=0;let Ym=th.keywordPatternRe.exec(fm),rg="";for(;Ym;){rg+=fm.substring(Fm,Ym.index);const Eg=Tm.case_insensitive?Ym[0].toLowerCase():Ym[0],Fh=Mh(th,Eg);if(Fh){const[kf,Rf]=Fh;if(wh.addText(rg),rg="",Eh[Eg]=(Eh[Eg]||0)+1,Eh[Eg]<=MAX_KEYWORD_HITS&&(zh+=Rf),kf.startsWith("_"))rg+=Ym[0];else{const Dh=Tm.classNameAliases[kf]||kf;Sh(Ym[0],Dh)}}else rg+=Ym[0];Fm=th.keywordPatternRe.lastIndex,Ym=th.keywordPatternRe.exec(fm)}rg+=fm.substring(Fm),wh.addText(rg)}function eh(){if(fm==="")return;let Fm=null;if(typeof th.subLanguage=="string"){if(!qa[th.subLanguage]){wh.addText(fm);return}Fm=Nd(th.subLanguage,fm,!0,$h[th.subLanguage]),$h[th.subLanguage]=Fm._top}else Fm=Ld(fm,th.subLanguage.length?th.subLanguage:null);th.relevance>0&&(zh+=Fm.relevance),wh.__addSublanguage(Fm._emitter,Fm.language)}function fh(){th.subLanguage!=null?eh():dh(),fm=""}function Sh(Fm,Ym){Fm!==""&&(wh.startScope(Ym),wh.addText(Fm),wh.endScope())}function vh(Fm,Ym){let rg=1;const Eg=Ym.length-1;for(;rg<=Eg;){if(!Fm._emit[rg]){rg++;continue}const Fh=Tm.classNameAliases[Fm[rg]]||Fm[rg],kf=Ym[rg];Fh?Sh(kf,Fh):(fm=kf,dh(),fm=""),rg++}}function Df(Fm,Ym){return Fm.scope&&typeof Fm.scope=="string"&&wh.openNode(Tm.classNameAliases[Fm.scope]||Fm.scope),Fm.beginScope&&(Fm.beginScope._wrap?(Sh(fm,Tm.classNameAliases[Fm.beginScope._wrap]||Fm.beginScope._wrap),fm=""):Fm.beginScope._multi&&(vh(Fm.beginScope,Ym),fm="")),th=Object.create(Fm,{parent:{value:th}}),th}function Af(Fm,Ym,rg){let Eg=startsWith$1(Fm.endRe,rg);if(Eg){if(Fm["on:end"]){const Fh=new Response$1(Fm);Fm["on:end"](Ym,Fh),Fh.isMatchIgnored&&(Eg=!1)}if(Eg){for(;Fm.endsParent&&Fm.parent;)Fm=Fm.parent;return Fm}}if(Fm.endsWithParent)return Af(Fm.parent,Ym,rg)}function _h(Fm){return th.matcher.regexIndex===0?(fm+=Fm[0],1):(tg=!0,0)}function Nh(Fm){const Ym=Fm[0],rg=Fm.rule,Eg=new Response$1(rg),Fh=[rg.__beforeBegin,rg["on:begin"]];for(const kf of Fh)if(kf&&(kf(Fm,Eg),Eg.isMatchIgnored))return _h(Ym);return rg.skip?fm+=Ym:(rg.excludeBegin&&(fm+=Ym),fh(),!rg.returnBegin&&!rg.excludeBegin&&(fm=Ym)),Df(rg,Fm),rg.returnBegin?0:Ym.length}function dm(Fm){const Ym=Fm[0],rg=Pf.substring(Fm.index),Eg=Af(th,Fm,rg);if(!Eg)return NO_MATCH;const Fh=th;th.endScope&&th.endScope._wrap?(fh(),Sh(Ym,th.endScope._wrap)):th.endScope&&th.endScope._multi?(fh(),vh(th.endScope,Fm)):Fh.skip?fm+=Ym:(Fh.returnEnd||Fh.excludeEnd||(fm+=Ym),fh(),Fh.excludeEnd&&(fm=Ym));do th.scope&&wh.closeNode(),!th.skip&&!th.subLanguage&&(zh+=th.relevance),th=th.parent;while(th!==Eg.parent);return Eg.starts&&Df(Eg.starts,Fm),Fh.returnEnd?0:Ym.length}function Jf(){const Fm=[];for(let Ym=th;Ym!==Tm;Ym=Ym.parent)Ym.scope&&Fm.unshift(Ym.scope);Fm.forEach(Ym=>wh.openNode(Ym))}let oh={};function Xh(Fm,Ym){const rg=Ym&&Ym[0];if(fm+=Fm,rg==null)return fh(),0;if(oh.type==="begin"&&Ym.type==="end"&&oh.index===Ym.index&&rg===""){if(fm+=Pf.slice(Ym.index,Ym.index+1),!pd){const Eg=new Error(`0 width match regex (${wf})`);throw Eg.languageName=wf,Eg.badRule=oh.rule,Eg}return 1}if(oh=Ym,Ym.type==="begin")return Nh(Ym);if(Ym.type==="illegal"&&!lh){const Eg=new Error('Illegal lexeme "'+rg+'" for mode "'+(th.scope||"")+'"');throw Eg.mode=th,Eg}else if(Ym.type==="end"){const Eg=dm(Ym);if(Eg!==NO_MATCH)return Eg}if(Ym.type==="illegal"&&rg==="")return fm+=` @@ -792,8 +792,8 @@ ${qa} `}tablecell(qa){const rd=this.parser.parseInline(qa.tokens),sd=qa.header?"th":"td";return(qa.align?`<${sd} align="${qa.align}">`:`<${sd}>`)+rd+` `}strong({tokens:qa}){return`${this.parser.parseInline(qa)}`}em({tokens:qa}){return`${this.parser.parseInline(qa)}`}codespan({text:qa}){return`${escape$3(qa,!0)}`}br(qa){return"
"}del({tokens:qa}){return`${this.parser.parseInline(qa)}`}link({href:qa,title:rd,tokens:sd}){const pd=this.parser.parseInline(sd),fd=cleanUrl$1(qa);if(fd===null)return pd;qa=fd;let hd='",hd}image({href:qa,title:rd,text:sd}){const pd=cleanUrl$1(qa);if(pd===null)return escape$3(sd);qa=pd;let fd=`${sd}{const yd=md[gd].flat(1/0);sd=sd.concat(this.walkTokens(yd,rd))}):md.tokens&&(sd=sd.concat(this.walkTokens(md.tokens,rd)))}}return sd}use(...qa){const rd=this.defaults.extensions||{renderers:{},childTokens:{}};return qa.forEach(sd=>{const pd={...sd};if(pd.async=this.defaults.async||pd.async||!1,sd.extensions&&(sd.extensions.forEach(fd=>{if(!fd.name)throw new Error("extension name required");if("renderer"in fd){const hd=rd.renderers[fd.name];hd?rd.renderers[fd.name]=function(...md){let gd=fd.renderer.apply(this,md);return gd===!1&&(gd=hd.apply(this,md)),gd}:rd.renderers[fd.name]=fd.renderer}if("tokenizer"in fd){if(!fd.level||fd.level!=="block"&&fd.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");const hd=rd[fd.level];hd?hd.unshift(fd.tokenizer):rd[fd.level]=[fd.tokenizer],fd.start&&(fd.level==="block"?rd.startBlock?rd.startBlock.push(fd.start):rd.startBlock=[fd.start]:fd.level==="inline"&&(rd.startInline?rd.startInline.push(fd.start):rd.startInline=[fd.start]))}"childTokens"in fd&&fd.childTokens&&(rd.childTokens[fd.name]=fd.childTokens)}),pd.extensions=rd),sd.renderer){const fd=this.defaults.renderer||new _Renderer$1(this.defaults);for(const hd in sd.renderer){if(!(hd in fd))throw new Error(`renderer '${hd}' does not exist`);if(["options","parser"].includes(hd))continue;const md=hd,gd=sd.renderer[md],yd=fd[md];fd[md]=(...vd)=>{let Nd=gd.apply(fd,vd);return Nd===!1&&(Nd=yd.apply(fd,vd)),Nd||""}}pd.renderer=fd}if(sd.tokenizer){const fd=this.defaults.tokenizer||new _Tokenizer$1(this.defaults);for(const hd in sd.tokenizer){if(!(hd in fd))throw new Error(`tokenizer '${hd}' does not exist`);if(["options","rules","lexer"].includes(hd))continue;const md=hd,gd=sd.tokenizer[md],yd=fd[md];fd[md]=(...vd)=>{let Nd=gd.apply(fd,vd);return Nd===!1&&(Nd=yd.apply(fd,vd)),Nd}}pd.tokenizer=fd}if(sd.hooks){const fd=this.defaults.hooks||new _Hooks$1;for(const hd in sd.hooks){if(!(hd in fd))throw new Error(`hook '${hd}' does not exist`);if(["options","block"].includes(hd))continue;const md=hd,gd=sd.hooks[md],yd=fd[md];_Hooks$1.passThroughHooks.has(hd)?fd[md]=vd=>{if(this.defaults.async)return Promise.resolve(gd.call(fd,vd)).then(Md=>yd.call(fd,Md));const Nd=gd.call(fd,vd);return yd.call(fd,Nd)}:fd[md]=(...vd)=>{let Nd=gd.apply(fd,vd);return Nd===!1&&(Nd=yd.apply(fd,vd)),Nd}}pd.hooks=fd}if(sd.walkTokens){const fd=this.defaults.walkTokens,hd=sd.walkTokens;pd.walkTokens=function(md){let gd=[];return gd.push(hd.call(this,md)),fd&&(gd=gd.concat(fd.call(this,md))),gd}}this.defaults={...this.defaults,...pd}}),this}setOptions(qa){return this.defaults={...this.defaults,...qa},this}lexer(qa,rd){return _Lexer$1.lex(qa,rd??this.defaults)}parser(qa,rd){return _Parser$1.parse(qa,rd??this.defaults)}parseMarkdown(qa){return(sd,pd)=>{const fd={...pd},hd={...this.defaults,...fd},md=this.onError(!!hd.silent,!!hd.async);if(this.defaults.async===!0&&fd.async===!1)return md(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof sd>"u"||sd===null)return md(new Error("marked(): input parameter is undefined or null"));if(typeof sd!="string")return md(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(sd)+", string expected"));hd.hooks&&(hd.hooks.options=hd,hd.hooks.block=qa);const gd=hd.hooks?hd.hooks.provideLexer():qa?_Lexer$1.lex:_Lexer$1.lexInline,yd=hd.hooks?hd.hooks.provideParser():qa?_Parser$1.parse:_Parser$1.parseInline;if(hd.async)return Promise.resolve(hd.hooks?hd.hooks.preprocess(sd):sd).then(vd=>gd(vd,hd)).then(vd=>hd.hooks?hd.hooks.processAllTokens(vd):vd).then(vd=>hd.walkTokens?Promise.all(this.walkTokens(vd,hd.walkTokens)).then(()=>vd):vd).then(vd=>yd(vd,hd)).then(vd=>hd.hooks?hd.hooks.postprocess(vd):vd).catch(md);try{hd.hooks&&(sd=hd.hooks.preprocess(sd));let vd=gd(sd,hd);hd.hooks&&(vd=hd.hooks.processAllTokens(vd)),hd.walkTokens&&this.walkTokens(vd,hd.walkTokens);let Nd=yd(vd,hd);return hd.hooks&&(Nd=hd.hooks.postprocess(Nd)),Nd}catch(vd){return md(vd)}}}onError(qa,rd){return sd=>{if(sd.message+=` -Please report this to https://github.com/markedjs/marked.`,qa){const pd="

An error occurred:

"+escape$3(sd.message+"",!0)+"
";return rd?Promise.resolve(pd):pd}if(rd)return Promise.reject(sd);throw sd}}};const markedInstance$1=new Marked$1;function marked$1(Ra,qa){return markedInstance$1.parse(Ra,qa)}marked$1.options=marked$1.setOptions=function(Ra){return markedInstance$1.setOptions(Ra),marked$1.defaults=markedInstance$1.defaults,changeDefaults$1(marked$1.defaults),marked$1};marked$1.getDefaults=_getDefaults$1;marked$1.defaults=_defaults$1;marked$1.use=function(...Ra){return markedInstance$1.use(...Ra),marked$1.defaults=markedInstance$1.defaults,changeDefaults$1(marked$1.defaults),marked$1};marked$1.walkTokens=function(Ra,qa){return markedInstance$1.walkTokens(Ra,qa)};marked$1.parseInline=markedInstance$1.parseInline;marked$1.Parser=_Parser$1;marked$1.parser=_Parser$1.parse;marked$1.Renderer=_Renderer$1;marked$1.TextRenderer=_TextRenderer$1;marked$1.Lexer=_Lexer$1;marked$1.lexer=_Lexer$1.lex;marked$1.Tokenizer=_Tokenizer$1;marked$1.Hooks=_Hooks$1;marked$1.parse=marked$1;marked$1.options;marked$1.setOptions;marked$1.use;marked$1.walkTokens;marked$1.parseInline;_Parser$1.parse;_Lexer$1.lex;const scriptRel="modulepreload",assetsURL=function(Ra){return"/md/"+Ra},seen={},__vitePreload=function(qa,rd,sd){let pd=Promise.resolve();if(rd&&rd.length>0){document.getElementsByTagName("link");const hd=document.querySelector("meta[property=csp-nonce]"),md=(hd==null?void 0:hd.nonce)||(hd==null?void 0:hd.getAttribute("nonce"));pd=Promise.allSettled(rd.map(gd=>{if(gd=assetsURL(gd),gd in seen)return;seen[gd]=!0;const yd=gd.endsWith(".css"),vd=yd?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${gd}"]${vd}`))return;const Nd=document.createElement("link");if(Nd.rel=yd?"stylesheet":scriptRel,yd||(Nd.as="script"),Nd.crossOrigin="",Nd.href=gd,md&&Nd.setAttribute("nonce",md),document.head.appendChild(Nd),yd)return new Promise((Md,Ld)=>{Nd.addEventListener("load",Md),Nd.addEventListener("error",()=>Ld(new Error(`Unable to preload CSS for ${gd}`)))})}))}function fd(hd){const md=new Event("vite:preloadError",{cancelable:!0});if(md.payload=hd,window.dispatchEvent(md),!md.defaultPrevented)throw hd}return pd.then(hd=>{for(const md of hd||[])md.status==="rejected"&&fd(md.reason);return qa().catch(fd)})};var dayjs_min={exports:{}};(function(Ra,qa){(function(rd,sd){Ra.exports=sd()})(commonjsGlobal,function(){var rd=1e3,sd=6e4,pd=36e5,fd="millisecond",hd="second",md="minute",gd="hour",yd="day",vd="week",Nd="month",Md="quarter",Ld="year",Fd="date",Hd="Invalid Date",Vd=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,Gd=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,Ud={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(If){var Sf=["th","st","nd","rd"],wf=If%100;return"["+If+(Sf[(wf-20)%10]||Sf[wf]||Sf[0])+"]"}},qd=function(If,Sf,wf){var Pf=String(If);return!Pf||Pf.length>=Sf?If:""+Array(Sf+1-Pf.length).join(wf)+If},Wd={s:qd,z:function(If){var Sf=-If.utcOffset(),wf=Math.abs(Sf),Pf=Math.floor(wf/60),lh=wf%60;return(Sf<=0?"+":"-")+qd(Pf,2,"0")+":"+qd(lh,2,"0")},m:function If(Sf,wf){if(Sf.date()1)return If(Eh[0])}else{var Mh=Sf.name;Xd[Mh]=Sf,lh=Mh}return!Pf&&lh&&(Kd=lh),lh||!Pf&&Kd},mf=function(If,Sf){if(Ef(If))return If.clone();var wf=typeof Sf=="object"?Sf:{};return wf.date=If,wf.args=arguments,new xf(wf)},_f=Wd;_f.l=pf,_f.i=Ef,_f.w=function(If,Sf){return mf(If,{locale:Sf.$L,utc:Sf.$u,x:Sf.$x,$offset:Sf.$offset})};var xf=function(){function If(wf){this.$L=pf(wf.locale,null,!0),this.parse(wf),this.$x=this.$x||wf.x||{},this[df]=!0}var Sf=If.prototype;return Sf.parse=function(wf){this.$d=function(Pf){var lh=Pf.date,xh=Pf.utc;if(lh===null)return new Date(NaN);if(_f.u(lh))return new Date;if(lh instanceof Date)return new Date(lh);if(typeof lh=="string"&&!/Z$/i.test(lh)){var Eh=lh.match(Vd);if(Eh){var Mh=Eh[2]-1||0,dh=(Eh[7]||"0").substring(0,3);return xh?new Date(Date.UTC(Eh[1],Mh,Eh[3]||1,Eh[4]||0,Eh[5]||0,Eh[6]||0,dh)):new Date(Eh[1],Mh,Eh[3]||1,Eh[4]||0,Eh[5]||0,Eh[6]||0,dh)}}return new Date(lh)}(wf),this.init()},Sf.init=function(){var wf=this.$d;this.$y=wf.getFullYear(),this.$M=wf.getMonth(),this.$D=wf.getDate(),this.$W=wf.getDay(),this.$H=wf.getHours(),this.$m=wf.getMinutes(),this.$s=wf.getSeconds(),this.$ms=wf.getMilliseconds()},Sf.$utils=function(){return _f},Sf.isValid=function(){return this.$d.toString()!==Hd},Sf.isSame=function(wf,Pf){var lh=mf(wf);return this.startOf(Pf)<=lh&&lh<=this.endOf(Pf)},Sf.isAfter=function(wf,Pf){return mf(wf)Ra>=255?255:Ra<0?0:Ra,g:Ra=>Ra>=255?255:Ra<0?0:Ra,b:Ra=>Ra>=255?255:Ra<0?0:Ra,h:Ra=>Ra%360,s:Ra=>Ra>=100?100:Ra<0?0:Ra,l:Ra=>Ra>=100?100:Ra<0?0:Ra,a:Ra=>Ra>=1?1:Ra<0?0:Ra},toLinear:Ra=>{const qa=Ra/255;return Ra>.03928?Math.pow((qa+.055)/1.055,2.4):qa/12.92},hue2rgb:(Ra,qa,rd)=>(rd<0&&(rd+=1),rd>1&&(rd-=1),rd<1/6?Ra+(qa-Ra)*6*rd:rd<1/2?qa:rd<2/3?Ra+(qa-Ra)*(2/3-rd)*6:Ra),hsl2rgb:({h:Ra,s:qa,l:rd},sd)=>{if(!qa)return rd*2.55;Ra/=360,qa/=100,rd/=100;const pd=rd<.5?rd*(1+qa):rd+qa-rd*qa,fd=2*rd-pd;switch(sd){case"r":return Channel.hue2rgb(fd,pd,Ra+1/3)*255;case"g":return Channel.hue2rgb(fd,pd,Ra)*255;case"b":return Channel.hue2rgb(fd,pd,Ra-1/3)*255}},rgb2hsl:({r:Ra,g:qa,b:rd},sd)=>{Ra/=255,qa/=255,rd/=255;const pd=Math.max(Ra,qa,rd),fd=Math.min(Ra,qa,rd),hd=(pd+fd)/2;if(sd==="l")return hd*100;if(pd===fd)return 0;const md=pd-fd,gd=hd>.5?md/(2-pd-fd):md/(pd+fd);if(sd==="s")return gd*100;switch(pd){case Ra:return((qa-rd)/md+(qaqa>rd?Math.min(qa,Math.max(rd,Ra)):Math.min(rd,Math.max(qa,Ra)),round:Ra=>Math.round(Ra*1e10)/1e10},Unit={dec2hex:Ra=>{const qa=Math.round(Ra).toString(16);return qa.length>1?qa:`0${qa}`}},Utils$1={channel:Channel,lang:Lang,unit:Unit},DEC2HEX={};for(let Ra=0;Ra<=255;Ra++)DEC2HEX[Ra]=Utils$1.unit.dec2hex(Ra);const TYPE={ALL:0,RGB:1,HSL:2};class Type{constructor(){this.type=TYPE.ALL}get(){return this.type}set(qa){if(this.type&&this.type!==qa)throw new Error("Cannot change both RGB and HSL channels at the same time");this.type=qa}reset(){this.type=TYPE.ALL}is(qa){return this.type===qa}}class Channels{constructor(qa,rd){this.color=rd,this.changed=!1,this.data=qa,this.type=new Type}set(qa,rd){return this.color=rd,this.changed=!1,this.data=qa,this.type.type=TYPE.ALL,this}_ensureHSL(){const qa=this.data,{h:rd,s:sd,l:pd}=qa;rd===void 0&&(qa.h=Utils$1.channel.rgb2hsl(qa,"h")),sd===void 0&&(qa.s=Utils$1.channel.rgb2hsl(qa,"s")),pd===void 0&&(qa.l=Utils$1.channel.rgb2hsl(qa,"l"))}_ensureRGB(){const qa=this.data,{r:rd,g:sd,b:pd}=qa;rd===void 0&&(qa.r=Utils$1.channel.hsl2rgb(qa,"r")),sd===void 0&&(qa.g=Utils$1.channel.hsl2rgb(qa,"g")),pd===void 0&&(qa.b=Utils$1.channel.hsl2rgb(qa,"b"))}get r(){const qa=this.data,rd=qa.r;return!this.type.is(TYPE.HSL)&&rd!==void 0?rd:(this._ensureHSL(),Utils$1.channel.hsl2rgb(qa,"r"))}get g(){const qa=this.data,rd=qa.g;return!this.type.is(TYPE.HSL)&&rd!==void 0?rd:(this._ensureHSL(),Utils$1.channel.hsl2rgb(qa,"g"))}get b(){const qa=this.data,rd=qa.b;return!this.type.is(TYPE.HSL)&&rd!==void 0?rd:(this._ensureHSL(),Utils$1.channel.hsl2rgb(qa,"b"))}get h(){const qa=this.data,rd=qa.h;return!this.type.is(TYPE.RGB)&&rd!==void 0?rd:(this._ensureRGB(),Utils$1.channel.rgb2hsl(qa,"h"))}get s(){const qa=this.data,rd=qa.s;return!this.type.is(TYPE.RGB)&&rd!==void 0?rd:(this._ensureRGB(),Utils$1.channel.rgb2hsl(qa,"s"))}get l(){const qa=this.data,rd=qa.l;return!this.type.is(TYPE.RGB)&&rd!==void 0?rd:(this._ensureRGB(),Utils$1.channel.rgb2hsl(qa,"l"))}get a(){return this.data.a}set r(qa){this.type.set(TYPE.RGB),this.changed=!0,this.data.r=qa}set g(qa){this.type.set(TYPE.RGB),this.changed=!0,this.data.g=qa}set b(qa){this.type.set(TYPE.RGB),this.changed=!0,this.data.b=qa}set h(qa){this.type.set(TYPE.HSL),this.changed=!0,this.data.h=qa}set s(qa){this.type.set(TYPE.HSL),this.changed=!0,this.data.s=qa}set l(qa){this.type.set(TYPE.HSL),this.changed=!0,this.data.l=qa}set a(qa){this.changed=!0,this.data.a=qa}}const channels=new Channels({r:0,g:0,b:0,a:0},"transparent"),Hex={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:Ra=>{if(Ra.charCodeAt(0)!==35)return;const qa=Ra.match(Hex.re);if(!qa)return;const rd=qa[1],sd=parseInt(rd,16),pd=rd.length,fd=pd%4===0,hd=pd>4,md=hd?1:17,gd=hd?8:4,yd=fd?0:-1,vd=hd?255:15;return channels.set({r:(sd>>gd*(yd+3)&vd)*md,g:(sd>>gd*(yd+2)&vd)*md,b:(sd>>gd*(yd+1)&vd)*md,a:fd?(sd&vd)*md/255:1},Ra)},stringify:Ra=>{const{r:qa,g:rd,b:sd,a:pd}=Ra;return pd<1?`#${DEC2HEX[Math.round(qa)]}${DEC2HEX[Math.round(rd)]}${DEC2HEX[Math.round(sd)]}${DEC2HEX[Math.round(pd*255)]}`:`#${DEC2HEX[Math.round(qa)]}${DEC2HEX[Math.round(rd)]}${DEC2HEX[Math.round(sd)]}`}},HSL={re:/^hsla?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(?:deg|grad|rad|turn)?)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(%)?))?\s*?\)$/i,hueRe:/^(.+?)(deg|grad|rad|turn)$/i,_hue2deg:Ra=>{const qa=Ra.match(HSL.hueRe);if(qa){const[,rd,sd]=qa;switch(sd){case"grad":return Utils$1.channel.clamp.h(parseFloat(rd)*.9);case"rad":return Utils$1.channel.clamp.h(parseFloat(rd)*180/Math.PI);case"turn":return Utils$1.channel.clamp.h(parseFloat(rd)*360)}}return Utils$1.channel.clamp.h(parseFloat(Ra))},parse:Ra=>{const qa=Ra.charCodeAt(0);if(qa!==104&&qa!==72)return;const rd=Ra.match(HSL.re);if(!rd)return;const[,sd,pd,fd,hd,md]=rd;return channels.set({h:HSL._hue2deg(sd),s:Utils$1.channel.clamp.s(parseFloat(pd)),l:Utils$1.channel.clamp.l(parseFloat(fd)),a:hd?Utils$1.channel.clamp.a(md?parseFloat(hd)/100:parseFloat(hd)):1},Ra)},stringify:Ra=>{const{h:qa,s:rd,l:sd,a:pd}=Ra;return pd<1?`hsla(${Utils$1.lang.round(qa)}, ${Utils$1.lang.round(rd)}%, ${Utils$1.lang.round(sd)}%, ${pd})`:`hsl(${Utils$1.lang.round(qa)}, ${Utils$1.lang.round(rd)}%, ${Utils$1.lang.round(sd)}%)`}},Keyword={colors:{aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyanaqua:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",transparent:"#00000000",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},parse:Ra=>{Ra=Ra.toLowerCase();const qa=Keyword.colors[Ra];if(qa)return Hex.parse(qa)},stringify:Ra=>{const qa=Hex.stringify(Ra);for(const rd in Keyword.colors)if(Keyword.colors[rd]===qa)return rd}},RGB={re:/^rgba?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?)))?\s*?\)$/i,parse:Ra=>{const qa=Ra.charCodeAt(0);if(qa!==114&&qa!==82)return;const rd=Ra.match(RGB.re);if(!rd)return;const[,sd,pd,fd,hd,md,gd,yd,vd]=rd;return channels.set({r:Utils$1.channel.clamp.r(pd?parseFloat(sd)*2.55:parseFloat(sd)),g:Utils$1.channel.clamp.g(hd?parseFloat(fd)*2.55:parseFloat(fd)),b:Utils$1.channel.clamp.b(gd?parseFloat(md)*2.55:parseFloat(md)),a:yd?Utils$1.channel.clamp.a(vd?parseFloat(yd)/100:parseFloat(yd)):1},Ra)},stringify:Ra=>{const{r:qa,g:rd,b:sd,a:pd}=Ra;return pd<1?`rgba(${Utils$1.lang.round(qa)}, ${Utils$1.lang.round(rd)}, ${Utils$1.lang.round(sd)}, ${Utils$1.lang.round(pd)})`:`rgb(${Utils$1.lang.round(qa)}, ${Utils$1.lang.round(rd)}, ${Utils$1.lang.round(sd)})`}},Color$1={format:{keyword:Keyword,hex:Hex,rgb:RGB,rgba:RGB,hsl:HSL,hsla:HSL},parse:Ra=>{if(typeof Ra!="string")return Ra;const qa=Hex.parse(Ra)||RGB.parse(Ra)||HSL.parse(Ra)||Keyword.parse(Ra);if(qa)return qa;throw new Error(`Unsupported color format: "${Ra}"`)},stringify:Ra=>!Ra.changed&&Ra.color?Ra.color:Ra.type.is(TYPE.HSL)||Ra.data.r===void 0?HSL.stringify(Ra):Ra.a<1||!Number.isInteger(Ra.r)||!Number.isInteger(Ra.g)||!Number.isInteger(Ra.b)?RGB.stringify(Ra):Hex.stringify(Ra)},change=(Ra,qa)=>{const rd=Color$1.parse(Ra);for(const sd in qa)rd[sd]=Utils$1.channel.clamp[sd](qa[sd]);return Color$1.stringify(rd)},rgba$1=(Ra,qa,rd=0,sd=1)=>{if(typeof Ra!="number")return change(Ra,{a:qa});const pd=channels.set({r:Utils$1.channel.clamp.r(Ra),g:Utils$1.channel.clamp.g(qa),b:Utils$1.channel.clamp.b(rd),a:Utils$1.channel.clamp.a(sd)});return Color$1.stringify(pd)},luminance=Ra=>{const{r:qa,g:rd,b:sd}=Color$1.parse(Ra),pd=.2126*Utils$1.channel.toLinear(qa)+.7152*Utils$1.channel.toLinear(rd)+.0722*Utils$1.channel.toLinear(sd);return Utils$1.lang.round(pd)},isLight=Ra=>luminance(Ra)>=.5,isDark=Ra=>!isLight(Ra),adjustChannel=(Ra,qa,rd)=>{const sd=Color$1.parse(Ra),pd=sd[qa],fd=Utils$1.channel.clamp[qa](pd+rd);return pd!==fd&&(sd[qa]=fd),Color$1.stringify(sd)},lighten=(Ra,qa)=>adjustChannel(Ra,"l",qa),darken=(Ra,qa)=>adjustChannel(Ra,"l",-qa),adjust=(Ra,qa)=>{const rd=Color$1.parse(Ra),sd={};for(const pd in qa)qa[pd]&&(sd[pd]=rd[pd]+qa[pd]);return change(Ra,sd)},mix=(Ra,qa,rd=50)=>{const{r:sd,g:pd,b:fd,a:hd}=Color$1.parse(Ra),{r:md,g:gd,b:yd,a:vd}=Color$1.parse(qa),Nd=rd/100,Md=Nd*2-1,Ld=hd-vd,Hd=((Md*Ld===-1?Md:(Md+Ld)/(1+Md*Ld))+1)/2,Vd=1-Hd,Gd=sd*Hd+md*Vd,Ud=pd*Hd+gd*Vd,qd=fd*Hd+yd*Vd,Wd=hd*Nd+vd*(1-Nd);return rgba$1(Gd,Ud,qd,Wd)},invert=(Ra,qa=100)=>{const rd=Color$1.parse(Ra);return rd.r=255-rd.r,rd.g=255-rd.g,rd.b=255-rd.b,mix(rd,Ra,qa)};/*! @license DOMPurify 3.2.3 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.3/LICENSE */const{entries,setPrototypeOf,isFrozen,getPrototypeOf:getPrototypeOf$2,getOwnPropertyDescriptor}=Object;let{freeze,seal,create:create$1}=Object,{apply:apply$2,construct}=typeof Reflect<"u"&&Reflect;freeze||(freeze=function(qa){return qa});seal||(seal=function(qa){return qa});apply$2||(apply$2=function(qa,rd,sd){return qa.apply(rd,sd)});construct||(construct=function(qa,rd){return new qa(...rd)});const arrayForEach=unapply(Array.prototype.forEach),arrayPop=unapply(Array.prototype.pop),arrayPush=unapply(Array.prototype.push),stringToLowerCase=unapply(String.prototype.toLowerCase),stringToString=unapply(String.prototype.toString),stringMatch=unapply(String.prototype.match),stringReplace=unapply(String.prototype.replace),stringIndexOf=unapply(String.prototype.indexOf),stringTrim=unapply(String.prototype.trim),objectHasOwnProperty=unapply(Object.prototype.hasOwnProperty),regExpTest=unapply(RegExp.prototype.test),typeErrorCreate=unconstruct(TypeError);function unapply(Ra){return function(qa){for(var rd=arguments.length,sd=new Array(rd>1?rd-1:0),pd=1;pd2&&arguments[2]!==void 0?arguments[2]:stringToLowerCase;setPrototypeOf&&setPrototypeOf(Ra,null);let sd=qa.length;for(;sd--;){let pd=qa[sd];if(typeof pd=="string"){const fd=rd(pd);fd!==pd&&(isFrozen(qa)||(qa[sd]=fd),pd=fd)}Ra[pd]=!0}return Ra}function cleanArray(Ra){for(let qa=0;qa/gm),TMPLIT_EXPR=seal(/\$\{[\w\W]*}/gm),DATA_ATTR=seal(/^data-[\-\w.\u00B7-\uFFFF]+$/),ARIA_ATTR=seal(/^aria-[\-\w]+$/),IS_ALLOWED_URI=seal(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),IS_SCRIPT_OR_DATA=seal(/^(?:\w+script|data):/i),ATTR_WHITESPACE=seal(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),DOCTYPE_NAME=seal(/^html$/i),CUSTOM_ELEMENT=seal(/^[a-z][.\w]*(-[.\w]+)+$/i);var EXPRESSIONS=Object.freeze({__proto__:null,ARIA_ATTR,ATTR_WHITESPACE,CUSTOM_ELEMENT,DATA_ATTR,DOCTYPE_NAME,ERB_EXPR,IS_ALLOWED_URI,IS_SCRIPT_OR_DATA,MUSTACHE_EXPR,TMPLIT_EXPR});const NODE_TYPE={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},getGlobal=function(){return typeof window>"u"?null:window},_createTrustedTypesPolicy=function(qa,rd){if(typeof qa!="object"||typeof qa.createPolicy!="function")return null;let sd=null;const pd="data-tt-policy-suffix";rd&&rd.hasAttribute(pd)&&(sd=rd.getAttribute(pd));const fd="dompurify"+(sd?"#"+sd:"");try{return qa.createPolicy(fd,{createHTML(hd){return hd},createScriptURL(hd){return hd}})}catch{return console.warn("TrustedTypes policy "+fd+" could not be created."),null}},_createHooksMap=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function createDOMPurify(){let Ra=arguments.length>0&&arguments[0]!==void 0?arguments[0]:getGlobal();const qa=Vm=>createDOMPurify(Vm);if(qa.version="3.2.3",qa.removed=[],!Ra||!Ra.document||Ra.document.nodeType!==NODE_TYPE.document)return qa.isSupported=!1,qa;let{document:rd}=Ra;const sd=rd,pd=sd.currentScript,{DocumentFragment:fd,HTMLTemplateElement:hd,Node:md,Element:gd,NodeFilter:yd,NamedNodeMap:vd=Ra.NamedNodeMap||Ra.MozNamedAttrMap,HTMLFormElement:Nd,DOMParser:Md,trustedTypes:Ld}=Ra,Fd=gd.prototype,Hd=lookupGetter(Fd,"cloneNode"),Vd=lookupGetter(Fd,"remove"),Gd=lookupGetter(Fd,"nextSibling"),Ud=lookupGetter(Fd,"childNodes"),qd=lookupGetter(Fd,"parentNode");if(typeof hd=="function"){const Vm=rd.createElement("template");Vm.content&&Vm.content.ownerDocument&&(rd=Vm.content.ownerDocument)}let Wd,Kd="";const{implementation:Xd,createNodeIterator:df,createDocumentFragment:Ef,getElementsByTagName:pf}=rd,{importNode:mf}=sd;let _f=_createHooksMap();qa.isSupported=typeof entries=="function"&&typeof qd=="function"&&Xd&&Xd.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:xf,ERB_EXPR:Cf,TMPLIT_EXPR:If,DATA_ATTR:Sf,ARIA_ATTR:wf,IS_SCRIPT_OR_DATA:Pf,ATTR_WHITESPACE:lh,CUSTOM_ELEMENT:xh}=EXPRESSIONS;let{IS_ALLOWED_URI:Eh}=EXPRESSIONS,Mh=null;const dh=addToSet({},[...html$1,...svg$1,...svgFilters,...mathMl$1,...text$1]);let eh=null;const fh=addToSet({},[...html$2,...svg,...mathMl,...xml$3]);let Sh=Object.seal(create$1(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),vh=null,Df=null,Af=!0,_h=!0,Nh=!1,dm=!0,Jf=!1,oh=!0,Xh=!1,Tm=!1,kh=!1,Zf=!1,th=!1,$h=!1,wh=!0,fm=!1;const zh="user-content-";let Mm=!0,Rm=!1,tg={},Fm=null;const Ym=addToSet({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let rg=null;const Eg=addToSet({},["audio","video","img","source","image","track"]);let Fh=null;const kf=addToSet({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Rf="http://www.w3.org/1998/Math/MathML",Dh="http://www.w3.org/2000/svg",Vh="http://www.w3.org/1999/xhtml";let Sm=Vh,$m=!1,Km=null;const Ag=addToSet({},[Rf,Dh,Vh],stringToString);let ig=addToSet({},["mi","mo","mn","ms","mtext"]),_g=addToSet({},["annotation-xml"]);const vg=addToSet({},["title","style","font","a","script"]);let Og=null;const Wg=["application/xhtml+xml","text/html"],d_="text/html";let o_=null,y_=null;const t_=rd.createElement("form"),R_=function(Nm){return Nm instanceof RegExp||Nm instanceof Function},v_=function(){let Nm=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(y_&&y_===Nm)){if((!Nm||typeof Nm!="object")&&(Nm={}),Nm=clone$1(Nm),Og=Wg.indexOf(Nm.PARSER_MEDIA_TYPE)===-1?d_:Nm.PARSER_MEDIA_TYPE,o_=Og==="application/xhtml+xml"?stringToString:stringToLowerCase,Mh=objectHasOwnProperty(Nm,"ALLOWED_TAGS")?addToSet({},Nm.ALLOWED_TAGS,o_):dh,eh=objectHasOwnProperty(Nm,"ALLOWED_ATTR")?addToSet({},Nm.ALLOWED_ATTR,o_):fh,Km=objectHasOwnProperty(Nm,"ALLOWED_NAMESPACES")?addToSet({},Nm.ALLOWED_NAMESPACES,stringToString):Ag,Fh=objectHasOwnProperty(Nm,"ADD_URI_SAFE_ATTR")?addToSet(clone$1(kf),Nm.ADD_URI_SAFE_ATTR,o_):kf,rg=objectHasOwnProperty(Nm,"ADD_DATA_URI_TAGS")?addToSet(clone$1(Eg),Nm.ADD_DATA_URI_TAGS,o_):Eg,Fm=objectHasOwnProperty(Nm,"FORBID_CONTENTS")?addToSet({},Nm.FORBID_CONTENTS,o_):Ym,vh=objectHasOwnProperty(Nm,"FORBID_TAGS")?addToSet({},Nm.FORBID_TAGS,o_):{},Df=objectHasOwnProperty(Nm,"FORBID_ATTR")?addToSet({},Nm.FORBID_ATTR,o_):{},tg=objectHasOwnProperty(Nm,"USE_PROFILES")?Nm.USE_PROFILES:!1,Af=Nm.ALLOW_ARIA_ATTR!==!1,_h=Nm.ALLOW_DATA_ATTR!==!1,Nh=Nm.ALLOW_UNKNOWN_PROTOCOLS||!1,dm=Nm.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Jf=Nm.SAFE_FOR_TEMPLATES||!1,oh=Nm.SAFE_FOR_XML!==!1,Xh=Nm.WHOLE_DOCUMENT||!1,Zf=Nm.RETURN_DOM||!1,th=Nm.RETURN_DOM_FRAGMENT||!1,$h=Nm.RETURN_TRUSTED_TYPE||!1,kh=Nm.FORCE_BODY||!1,wh=Nm.SANITIZE_DOM!==!1,fm=Nm.SANITIZE_NAMED_PROPS||!1,Mm=Nm.KEEP_CONTENT!==!1,Rm=Nm.IN_PLACE||!1,Eh=Nm.ALLOWED_URI_REGEXP||IS_ALLOWED_URI,Sm=Nm.NAMESPACE||Vh,ig=Nm.MATHML_TEXT_INTEGRATION_POINTS||ig,_g=Nm.HTML_INTEGRATION_POINTS||_g,Sh=Nm.CUSTOM_ELEMENT_HANDLING||{},Nm.CUSTOM_ELEMENT_HANDLING&&R_(Nm.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Sh.tagNameCheck=Nm.CUSTOM_ELEMENT_HANDLING.tagNameCheck),Nm.CUSTOM_ELEMENT_HANDLING&&R_(Nm.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Sh.attributeNameCheck=Nm.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),Nm.CUSTOM_ELEMENT_HANDLING&&typeof Nm.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(Sh.allowCustomizedBuiltInElements=Nm.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Jf&&(_h=!1),th&&(Zf=!0),tg&&(Mh=addToSet({},text$1),eh=[],tg.html===!0&&(addToSet(Mh,html$1),addToSet(eh,html$2)),tg.svg===!0&&(addToSet(Mh,svg$1),addToSet(eh,svg),addToSet(eh,xml$3)),tg.svgFilters===!0&&(addToSet(Mh,svgFilters),addToSet(eh,svg),addToSet(eh,xml$3)),tg.mathMl===!0&&(addToSet(Mh,mathMl$1),addToSet(eh,mathMl),addToSet(eh,xml$3))),Nm.ADD_TAGS&&(Mh===dh&&(Mh=clone$1(Mh)),addToSet(Mh,Nm.ADD_TAGS,o_)),Nm.ADD_ATTR&&(eh===fh&&(eh=clone$1(eh)),addToSet(eh,Nm.ADD_ATTR,o_)),Nm.ADD_URI_SAFE_ATTR&&addToSet(Fh,Nm.ADD_URI_SAFE_ATTR,o_),Nm.FORBID_CONTENTS&&(Fm===Ym&&(Fm=clone$1(Fm)),addToSet(Fm,Nm.FORBID_CONTENTS,o_)),Mm&&(Mh["#text"]=!0),Xh&&addToSet(Mh,["html","head","body"]),Mh.table&&(addToSet(Mh,["tbody"]),delete vh.tbody),Nm.TRUSTED_TYPES_POLICY){if(typeof Nm.TRUSTED_TYPES_POLICY.createHTML!="function")throw typeErrorCreate('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof Nm.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw typeErrorCreate('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');Wd=Nm.TRUSTED_TYPES_POLICY,Kd=Wd.createHTML("")}else Wd===void 0&&(Wd=_createTrustedTypesPolicy(Ld,pd)),Wd!==null&&typeof Kd=="string"&&(Kd=Wd.createHTML(""));freeze&&freeze(Nm),y_=Nm}},X_=addToSet({},[...svg$1,...svgFilters,...svgDisallowed]),eb=addToSet({},[...mathMl$1,...mathMlDisallowed]),I_=function(Nm){let lg=qd(Nm);(!lg||!lg.tagName)&&(lg={namespaceURI:Sm,tagName:"template"});const pg=stringToLowerCase(Nm.tagName),qg=stringToLowerCase(lg.tagName);return Km[Nm.namespaceURI]?Nm.namespaceURI===Dh?lg.namespaceURI===Vh?pg==="svg":lg.namespaceURI===Rf?pg==="svg"&&(qg==="annotation-xml"||ig[qg]):!!X_[pg]:Nm.namespaceURI===Rf?lg.namespaceURI===Vh?pg==="math":lg.namespaceURI===Dh?pg==="math"&&_g[qg]:!!eb[pg]:Nm.namespaceURI===Vh?lg.namespaceURI===Dh&&!_g[qg]||lg.namespaceURI===Rf&&!ig[qg]?!1:!eb[pg]&&(vg[pg]||!X_[pg]):!!(Og==="application/xhtml+xml"&&Km[Nm.namespaceURI]):!1},$_=function(Nm){arrayPush(qa.removed,{element:Nm});try{qd(Nm).removeChild(Nm)}catch{Vd(Nm)}},$g=function(Nm,lg){try{arrayPush(qa.removed,{attribute:lg.getAttributeNode(Nm),from:lg})}catch{arrayPush(qa.removed,{attribute:null,from:lg})}if(lg.removeAttribute(Nm),Nm==="is")if(Zf||th)try{$_(lg)}catch{}else try{lg.setAttribute(Nm,"")}catch{}},Lb=function(Nm){let lg=null,pg=null;if(kh)Nm=""+Nm;else{const Yg=stringMatch(Nm,/^[\r\n\t ]+/);pg=Yg&&Yg[0]}Og==="application/xhtml+xml"&&Sm===Vh&&(Nm=''+Nm+"");const qg=Wd?Wd.createHTML(Nm):Nm;if(Sm===Vh)try{lg=new Md().parseFromString(qg,Og)}catch{}if(!lg||!lg.documentElement){lg=Xd.createDocument(Sm,"template",null);try{lg.documentElement.innerHTML=$m?Kd:qg}catch{}}const xg=lg.body||lg.documentElement;return Nm&&pg&&xg.insertBefore(rd.createTextNode(pg),xg.childNodes[0]||null),Sm===Vh?pf.call(lg,Xh?"html":"body")[0]:Xh?lg.documentElement:xg},Kb=function(Nm){return df.call(Nm.ownerDocument||Nm,Nm,yd.SHOW_ELEMENT|yd.SHOW_COMMENT|yd.SHOW_TEXT|yd.SHOW_PROCESSING_INSTRUCTION|yd.SHOW_CDATA_SECTION,null)},db=function(Nm){return Nm instanceof Nd&&(typeof Nm.nodeName!="string"||typeof Nm.textContent!="string"||typeof Nm.removeChild!="function"||!(Nm.attributes instanceof vd)||typeof Nm.removeAttribute!="function"||typeof Nm.setAttribute!="function"||typeof Nm.namespaceURI!="string"||typeof Nm.insertBefore!="function"||typeof Nm.hasChildNodes!="function")},nh=function(Nm){return typeof md=="function"&&Nm instanceof md};function gm(Vm,Nm,lg){arrayForEach(Vm,pg=>{pg.call(qa,Nm,lg,y_)})}const im=function(Nm){let lg=null;if(gm(_f.beforeSanitizeElements,Nm,null),db(Nm))return $_(Nm),!0;const pg=o_(Nm.nodeName);if(gm(_f.uponSanitizeElement,Nm,{tagName:pg,allowedTags:Mh}),Nm.hasChildNodes()&&!nh(Nm.firstElementChild)&®ExpTest(/<[/\w]/g,Nm.innerHTML)&®ExpTest(/<[/\w]/g,Nm.textContent)||Nm.nodeType===NODE_TYPE.progressingInstruction||oh&&Nm.nodeType===NODE_TYPE.comment&®ExpTest(/<[/\w]/g,Nm.data))return $_(Nm),!0;if(!Mh[pg]||vh[pg]){if(!vh[pg]&&jm(pg)&&(Sh.tagNameCheck instanceof RegExp&®ExpTest(Sh.tagNameCheck,pg)||Sh.tagNameCheck instanceof Function&&Sh.tagNameCheck(pg)))return!1;if(Mm&&!Fm[pg]){const qg=qd(Nm)||Nm.parentNode,xg=Ud(Nm)||Nm.childNodes;if(xg&&qg){const Yg=xg.length;for(let w_=Yg-1;w_>=0;--w_){const C_=Hd(xg[w_],!0);C_.__removalCount=(Nm.__removalCount||0)+1,qg.insertBefore(C_,Gd(Nm))}}}return $_(Nm),!0}return Nm instanceof gd&&!I_(Nm)||(pg==="noscript"||pg==="noembed"||pg==="noframes")&®ExpTest(/<\/no(script|embed|frames)/i,Nm.innerHTML)?($_(Nm),!0):(Jf&&Nm.nodeType===NODE_TYPE.text&&(lg=Nm.textContent,arrayForEach([xf,Cf,If],qg=>{lg=stringReplace(lg,qg," ")}),Nm.textContent!==lg&&(arrayPush(qa.removed,{element:Nm.cloneNode()}),Nm.textContent=lg)),gm(_f.afterSanitizeElements,Nm,null),!1)},mm=function(Nm,lg,pg){if(wh&&(lg==="id"||lg==="name")&&(pg in rd||pg in t_))return!1;if(!(_h&&!Df[lg]&®ExpTest(Sf,lg))){if(!(Af&®ExpTest(wf,lg))){if(!eh[lg]||Df[lg]){if(!(jm(Nm)&&(Sh.tagNameCheck instanceof RegExp&®ExpTest(Sh.tagNameCheck,Nm)||Sh.tagNameCheck instanceof Function&&Sh.tagNameCheck(Nm))&&(Sh.attributeNameCheck instanceof RegExp&®ExpTest(Sh.attributeNameCheck,lg)||Sh.attributeNameCheck instanceof Function&&Sh.attributeNameCheck(lg))||lg==="is"&&Sh.allowCustomizedBuiltInElements&&(Sh.tagNameCheck instanceof RegExp&®ExpTest(Sh.tagNameCheck,pg)||Sh.tagNameCheck instanceof Function&&Sh.tagNameCheck(pg))))return!1}else if(!Fh[lg]){if(!regExpTest(Eh,stringReplace(pg,lh,""))){if(!((lg==="src"||lg==="xlink:href"||lg==="href")&&Nm!=="script"&&stringIndexOf(pg,"data:")===0&&rg[Nm])){if(!(Nh&&!regExpTest(Pf,stringReplace(pg,lh,"")))){if(pg)return!1}}}}}}return!0},jm=function(Nm){return Nm!=="annotation-xml"&&stringMatch(Nm,xh)},Lm=function(Nm){gm(_f.beforeSanitizeAttributes,Nm,null);const{attributes:lg}=Nm;if(!lg||db(Nm))return;const pg={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:eh,forceKeepAttr:void 0};let qg=lg.length;for(;qg--;){const xg=lg[qg],{name:Yg,namespaceURI:w_,value:C_}=xg,p_=o_(Yg);let Mg=Yg==="value"?C_:stringTrim(C_);if(pg.attrName=p_,pg.attrValue=Mg,pg.keepAttr=!0,pg.forceKeepAttr=void 0,gm(_f.uponSanitizeAttribute,Nm,pg),Mg=pg.attrValue,fm&&(p_==="id"||p_==="name")&&($g(Yg,Nm),Mg=zh+Mg),oh&®ExpTest(/((--!?|])>)|<\/(style|title)/i,Mg)){$g(Yg,Nm);continue}if(pg.forceKeepAttr||($g(Yg,Nm),!pg.keepAttr))continue;if(!dm&®ExpTest(/\/>/i,Mg)){$g(Yg,Nm);continue}Jf&&arrayForEach([xf,Cf,If],m_=>{Mg=stringReplace(Mg,m_," ")});const q_=o_(Nm.nodeName);if(mm(q_,p_,Mg)){if(Wd&&typeof Ld=="object"&&typeof Ld.getAttributeType=="function"&&!w_)switch(Ld.getAttributeType(q_,p_)){case"TrustedHTML":{Mg=Wd.createHTML(Mg);break}case"TrustedScriptURL":{Mg=Wd.createScriptURL(Mg);break}}try{w_?Nm.setAttributeNS(w_,Yg,Mg):Nm.setAttribute(Yg,Mg),db(Nm)?$_(Nm):arrayPop(qa.removed)}catch{}}}gm(_f.afterSanitizeAttributes,Nm,null)},zm=function Vm(Nm){let lg=null;const pg=Kb(Nm);for(gm(_f.beforeSanitizeShadowDOM,Nm,null);lg=pg.nextNode();)gm(_f.uponSanitizeShadowNode,lg,null),im(lg),Lm(lg),lg.content instanceof fd&&Vm(lg.content);gm(_f.afterSanitizeShadowDOM,Nm,null)};return qa.sanitize=function(Vm){let Nm=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},lg=null,pg=null,qg=null,xg=null;if($m=!Vm,$m&&(Vm=""),typeof Vm!="string"&&!nh(Vm))if(typeof Vm.toString=="function"){if(Vm=Vm.toString(),typeof Vm!="string")throw typeErrorCreate("dirty is not a string, aborting")}else throw typeErrorCreate("toString is not a function");if(!qa.isSupported)return Vm;if(Tm||v_(Nm),qa.removed=[],typeof Vm=="string"&&(Rm=!1),Rm){if(Vm.nodeName){const C_=o_(Vm.nodeName);if(!Mh[C_]||vh[C_])throw typeErrorCreate("root node is forbidden and cannot be sanitized in-place")}}else if(Vm instanceof md)lg=Lb(""),pg=lg.ownerDocument.importNode(Vm,!0),pg.nodeType===NODE_TYPE.element&&pg.nodeName==="BODY"||pg.nodeName==="HTML"?lg=pg:lg.appendChild(pg);else{if(!Zf&&!Jf&&!Xh&&Vm.indexOf("<")===-1)return Wd&&$h?Wd.createHTML(Vm):Vm;if(lg=Lb(Vm),!lg)return Zf?null:$h?Kd:""}lg&&kh&&$_(lg.firstChild);const Yg=Kb(Rm?Vm:lg);for(;qg=Yg.nextNode();)im(qg),Lm(qg),qg.content instanceof fd&&zm(qg.content);if(Rm)return Vm;if(Zf){if(th)for(xg=Ef.call(lg.ownerDocument);lg.firstChild;)xg.appendChild(lg.firstChild);else xg=lg;return(eh.shadowroot||eh.shadowrootmode)&&(xg=mf.call(sd,xg,!0)),xg}let w_=Xh?lg.outerHTML:lg.innerHTML;return Xh&&Mh["!doctype"]&&lg.ownerDocument&&lg.ownerDocument.doctype&&lg.ownerDocument.doctype.name&®ExpTest(DOCTYPE_NAME,lg.ownerDocument.doctype.name)&&(w_=" -`+w_),Jf&&arrayForEach([xf,Cf,If],C_=>{w_=stringReplace(w_,C_," ")}),Wd&&$h?Wd.createHTML(w_):w_},qa.setConfig=function(){let Vm=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};v_(Vm),Tm=!0},qa.clearConfig=function(){y_=null,Tm=!1},qa.isValidAttribute=function(Vm,Nm,lg){y_||v_({});const pg=o_(Vm),qg=o_(Nm);return mm(pg,qg,lg)},qa.addHook=function(Vm,Nm){typeof Nm=="function"&&arrayPush(_f[Vm],Nm)},qa.removeHook=function(Vm){return arrayPop(_f[Vm])},qa.removeHooks=function(Vm){_f[Vm]=[]},qa.removeAllHooks=function(){_f=_createHooksMap()},qa}var purify=createDOMPurify(),__defProp=Object.defineProperty,__name=(Ra,qa)=>__defProp(Ra,"name",{value:qa,configurable:!0}),__export=(Ra,qa)=>{for(var rd in qa)__defProp(Ra,rd,{get:qa[rd],enumerable:!0})},LEVELS={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},log$1={trace:__name((...Ra)=>{},"trace"),debug:__name((...Ra)=>{},"debug"),info:__name((...Ra)=>{},"info"),warn:__name((...Ra)=>{},"warn"),error:__name((...Ra)=>{},"error"),fatal:__name((...Ra)=>{},"fatal")},setLogLevel=__name(function(Ra="fatal"){let qa=LEVELS.fatal;typeof Ra=="string"?Ra.toLowerCase()in LEVELS&&(qa=LEVELS[Ra]):typeof Ra=="number"&&(qa=Ra),log$1.trace=()=>{},log$1.debug=()=>{},log$1.info=()=>{},log$1.warn=()=>{},log$1.error=()=>{},log$1.fatal=()=>{},qa<=LEVELS.fatal&&(log$1.fatal=console.error?console.error.bind(console,format$1("FATAL"),"color: orange"):console.log.bind(console,"\x1B[35m",format$1("FATAL"))),qa<=LEVELS.error&&(log$1.error=console.error?console.error.bind(console,format$1("ERROR"),"color: orange"):console.log.bind(console,"\x1B[31m",format$1("ERROR"))),qa<=LEVELS.warn&&(log$1.warn=console.warn?console.warn.bind(console,format$1("WARN"),"color: orange"):console.log.bind(console,"\x1B[33m",format$1("WARN"))),qa<=LEVELS.info&&(log$1.info=console.info?console.info.bind(console,format$1("INFO"),"color: lightblue"):console.log.bind(console,"\x1B[34m",format$1("INFO"))),qa<=LEVELS.debug&&(log$1.debug=console.debug?console.debug.bind(console,format$1("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",format$1("DEBUG"))),qa<=LEVELS.trace&&(log$1.trace=console.debug?console.debug.bind(console,format$1("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",format$1("TRACE")))},"setLogLevel"),format$1=__name(Ra=>`%c${dayjs2().format("ss.SSS")} : ${Ra} : `,"format"),frontMatterRegex=/^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s,directiveRegex=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,anyCommentRegex=/\s*%%.*\n/gm,rT,UnknownDiagramError=(rT=class extends Error{constructor(qa){super(qa),this.name="UnknownDiagramError"}},__name(rT,"UnknownDiagramError"),rT),detectors={},detectType$1=__name(function(Ra,qa){Ra=Ra.replace(frontMatterRegex,"").replace(directiveRegex,"").replace(anyCommentRegex,` +Please report this to https://github.com/markedjs/marked.`,qa){const pd="

An error occurred:

"+escape$3(sd.message+"",!0)+"
";return rd?Promise.resolve(pd):pd}if(rd)return Promise.reject(sd);throw sd}}};const markedInstance$1=new Marked$1;function marked$1(Ra,qa){return markedInstance$1.parse(Ra,qa)}marked$1.options=marked$1.setOptions=function(Ra){return markedInstance$1.setOptions(Ra),marked$1.defaults=markedInstance$1.defaults,changeDefaults$1(marked$1.defaults),marked$1};marked$1.getDefaults=_getDefaults$1;marked$1.defaults=_defaults$1;marked$1.use=function(...Ra){return markedInstance$1.use(...Ra),marked$1.defaults=markedInstance$1.defaults,changeDefaults$1(marked$1.defaults),marked$1};marked$1.walkTokens=function(Ra,qa){return markedInstance$1.walkTokens(Ra,qa)};marked$1.parseInline=markedInstance$1.parseInline;marked$1.Parser=_Parser$1;marked$1.parser=_Parser$1.parse;marked$1.Renderer=_Renderer$1;marked$1.TextRenderer=_TextRenderer$1;marked$1.Lexer=_Lexer$1;marked$1.lexer=_Lexer$1.lex;marked$1.Tokenizer=_Tokenizer$1;marked$1.Hooks=_Hooks$1;marked$1.parse=marked$1;marked$1.options;marked$1.setOptions;marked$1.use;marked$1.walkTokens;marked$1.parseInline;_Parser$1.parse;_Lexer$1.lex;const scriptRel="modulepreload",assetsURL=function(Ra){return"/md/"+Ra},seen={},__vitePreload=function(qa,rd,sd){let pd=Promise.resolve();if(rd&&rd.length>0){document.getElementsByTagName("link");const hd=document.querySelector("meta[property=csp-nonce]"),md=(hd==null?void 0:hd.nonce)||(hd==null?void 0:hd.getAttribute("nonce"));pd=Promise.allSettled(rd.map(gd=>{if(gd=assetsURL(gd),gd in seen)return;seen[gd]=!0;const yd=gd.endsWith(".css"),vd=yd?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${gd}"]${vd}`))return;const Nd=document.createElement("link");if(Nd.rel=yd?"stylesheet":scriptRel,yd||(Nd.as="script"),Nd.crossOrigin="",Nd.href=gd,md&&Nd.setAttribute("nonce",md),document.head.appendChild(Nd),yd)return new Promise((Md,Ld)=>{Nd.addEventListener("load",Md),Nd.addEventListener("error",()=>Ld(new Error(`Unable to preload CSS for ${gd}`)))})}))}function fd(hd){const md=new Event("vite:preloadError",{cancelable:!0});if(md.payload=hd,window.dispatchEvent(md),!md.defaultPrevented)throw hd}return pd.then(hd=>{for(const md of hd||[])md.status==="rejected"&&fd(md.reason);return qa().catch(fd)})};var dayjs_min={exports:{}};(function(Ra,qa){(function(rd,sd){Ra.exports=sd()})(commonjsGlobal,function(){var rd=1e3,sd=6e4,pd=36e5,fd="millisecond",hd="second",md="minute",gd="hour",yd="day",vd="week",Nd="month",Md="quarter",Ld="year",Fd="date",Hd="Invalid Date",Vd=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,Gd=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,Ud={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(If){var Sf=["th","st","nd","rd"],wf=If%100;return"["+If+(Sf[(wf-20)%10]||Sf[wf]||Sf[0])+"]"}},qd=function(If,Sf,wf){var Pf=String(If);return!Pf||Pf.length>=Sf?If:""+Array(Sf+1-Pf.length).join(wf)+If},Wd={s:qd,z:function(If){var Sf=-If.utcOffset(),wf=Math.abs(Sf),Pf=Math.floor(wf/60),lh=wf%60;return(Sf<=0?"+":"-")+qd(Pf,2,"0")+":"+qd(lh,2,"0")},m:function If(Sf,wf){if(Sf.date()1)return If(Eh[0])}else{var Mh=Sf.name;Xd[Mh]=Sf,lh=Mh}return!Pf&&lh&&(Kd=lh),lh||!Pf&&Kd},mf=function(If,Sf){if(Ef(If))return If.clone();var wf=typeof Sf=="object"?Sf:{};return wf.date=If,wf.args=arguments,new xf(wf)},_f=Wd;_f.l=pf,_f.i=Ef,_f.w=function(If,Sf){return mf(If,{locale:Sf.$L,utc:Sf.$u,x:Sf.$x,$offset:Sf.$offset})};var xf=function(){function If(wf){this.$L=pf(wf.locale,null,!0),this.parse(wf),this.$x=this.$x||wf.x||{},this[df]=!0}var Sf=If.prototype;return Sf.parse=function(wf){this.$d=function(Pf){var lh=Pf.date,xh=Pf.utc;if(lh===null)return new Date(NaN);if(_f.u(lh))return new Date;if(lh instanceof Date)return new Date(lh);if(typeof lh=="string"&&!/Z$/i.test(lh)){var Eh=lh.match(Vd);if(Eh){var Mh=Eh[2]-1||0,dh=(Eh[7]||"0").substring(0,3);return xh?new Date(Date.UTC(Eh[1],Mh,Eh[3]||1,Eh[4]||0,Eh[5]||0,Eh[6]||0,dh)):new Date(Eh[1],Mh,Eh[3]||1,Eh[4]||0,Eh[5]||0,Eh[6]||0,dh)}}return new Date(lh)}(wf),this.init()},Sf.init=function(){var wf=this.$d;this.$y=wf.getFullYear(),this.$M=wf.getMonth(),this.$D=wf.getDate(),this.$W=wf.getDay(),this.$H=wf.getHours(),this.$m=wf.getMinutes(),this.$s=wf.getSeconds(),this.$ms=wf.getMilliseconds()},Sf.$utils=function(){return _f},Sf.isValid=function(){return this.$d.toString()!==Hd},Sf.isSame=function(wf,Pf){var lh=mf(wf);return this.startOf(Pf)<=lh&&lh<=this.endOf(Pf)},Sf.isAfter=function(wf,Pf){return mf(wf)Ra>=255?255:Ra<0?0:Ra,g:Ra=>Ra>=255?255:Ra<0?0:Ra,b:Ra=>Ra>=255?255:Ra<0?0:Ra,h:Ra=>Ra%360,s:Ra=>Ra>=100?100:Ra<0?0:Ra,l:Ra=>Ra>=100?100:Ra<0?0:Ra,a:Ra=>Ra>=1?1:Ra<0?0:Ra},toLinear:Ra=>{const qa=Ra/255;return Ra>.03928?Math.pow((qa+.055)/1.055,2.4):qa/12.92},hue2rgb:(Ra,qa,rd)=>(rd<0&&(rd+=1),rd>1&&(rd-=1),rd<1/6?Ra+(qa-Ra)*6*rd:rd<1/2?qa:rd<2/3?Ra+(qa-Ra)*(2/3-rd)*6:Ra),hsl2rgb:({h:Ra,s:qa,l:rd},sd)=>{if(!qa)return rd*2.55;Ra/=360,qa/=100,rd/=100;const pd=rd<.5?rd*(1+qa):rd+qa-rd*qa,fd=2*rd-pd;switch(sd){case"r":return Channel.hue2rgb(fd,pd,Ra+1/3)*255;case"g":return Channel.hue2rgb(fd,pd,Ra)*255;case"b":return Channel.hue2rgb(fd,pd,Ra-1/3)*255}},rgb2hsl:({r:Ra,g:qa,b:rd},sd)=>{Ra/=255,qa/=255,rd/=255;const pd=Math.max(Ra,qa,rd),fd=Math.min(Ra,qa,rd),hd=(pd+fd)/2;if(sd==="l")return hd*100;if(pd===fd)return 0;const md=pd-fd,gd=hd>.5?md/(2-pd-fd):md/(pd+fd);if(sd==="s")return gd*100;switch(pd){case Ra:return((qa-rd)/md+(qaqa>rd?Math.min(qa,Math.max(rd,Ra)):Math.min(rd,Math.max(qa,Ra)),round:Ra=>Math.round(Ra*1e10)/1e10},Unit={dec2hex:Ra=>{const qa=Math.round(Ra).toString(16);return qa.length>1?qa:`0${qa}`}},Utils$1={channel:Channel,lang:Lang,unit:Unit},DEC2HEX={};for(let Ra=0;Ra<=255;Ra++)DEC2HEX[Ra]=Utils$1.unit.dec2hex(Ra);const TYPE={ALL:0,RGB:1,HSL:2};class Type{constructor(){this.type=TYPE.ALL}get(){return this.type}set(qa){if(this.type&&this.type!==qa)throw new Error("Cannot change both RGB and HSL channels at the same time");this.type=qa}reset(){this.type=TYPE.ALL}is(qa){return this.type===qa}}class Channels{constructor(qa,rd){this.color=rd,this.changed=!1,this.data=qa,this.type=new Type}set(qa,rd){return this.color=rd,this.changed=!1,this.data=qa,this.type.type=TYPE.ALL,this}_ensureHSL(){const qa=this.data,{h:rd,s:sd,l:pd}=qa;rd===void 0&&(qa.h=Utils$1.channel.rgb2hsl(qa,"h")),sd===void 0&&(qa.s=Utils$1.channel.rgb2hsl(qa,"s")),pd===void 0&&(qa.l=Utils$1.channel.rgb2hsl(qa,"l"))}_ensureRGB(){const qa=this.data,{r:rd,g:sd,b:pd}=qa;rd===void 0&&(qa.r=Utils$1.channel.hsl2rgb(qa,"r")),sd===void 0&&(qa.g=Utils$1.channel.hsl2rgb(qa,"g")),pd===void 0&&(qa.b=Utils$1.channel.hsl2rgb(qa,"b"))}get r(){const qa=this.data,rd=qa.r;return!this.type.is(TYPE.HSL)&&rd!==void 0?rd:(this._ensureHSL(),Utils$1.channel.hsl2rgb(qa,"r"))}get g(){const qa=this.data,rd=qa.g;return!this.type.is(TYPE.HSL)&&rd!==void 0?rd:(this._ensureHSL(),Utils$1.channel.hsl2rgb(qa,"g"))}get b(){const qa=this.data,rd=qa.b;return!this.type.is(TYPE.HSL)&&rd!==void 0?rd:(this._ensureHSL(),Utils$1.channel.hsl2rgb(qa,"b"))}get h(){const qa=this.data,rd=qa.h;return!this.type.is(TYPE.RGB)&&rd!==void 0?rd:(this._ensureRGB(),Utils$1.channel.rgb2hsl(qa,"h"))}get s(){const qa=this.data,rd=qa.s;return!this.type.is(TYPE.RGB)&&rd!==void 0?rd:(this._ensureRGB(),Utils$1.channel.rgb2hsl(qa,"s"))}get l(){const qa=this.data,rd=qa.l;return!this.type.is(TYPE.RGB)&&rd!==void 0?rd:(this._ensureRGB(),Utils$1.channel.rgb2hsl(qa,"l"))}get a(){return this.data.a}set r(qa){this.type.set(TYPE.RGB),this.changed=!0,this.data.r=qa}set g(qa){this.type.set(TYPE.RGB),this.changed=!0,this.data.g=qa}set b(qa){this.type.set(TYPE.RGB),this.changed=!0,this.data.b=qa}set h(qa){this.type.set(TYPE.HSL),this.changed=!0,this.data.h=qa}set s(qa){this.type.set(TYPE.HSL),this.changed=!0,this.data.s=qa}set l(qa){this.type.set(TYPE.HSL),this.changed=!0,this.data.l=qa}set a(qa){this.changed=!0,this.data.a=qa}}const channels=new Channels({r:0,g:0,b:0,a:0},"transparent"),Hex={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:Ra=>{if(Ra.charCodeAt(0)!==35)return;const qa=Ra.match(Hex.re);if(!qa)return;const rd=qa[1],sd=parseInt(rd,16),pd=rd.length,fd=pd%4===0,hd=pd>4,md=hd?1:17,gd=hd?8:4,yd=fd?0:-1,vd=hd?255:15;return channels.set({r:(sd>>gd*(yd+3)&vd)*md,g:(sd>>gd*(yd+2)&vd)*md,b:(sd>>gd*(yd+1)&vd)*md,a:fd?(sd&vd)*md/255:1},Ra)},stringify:Ra=>{const{r:qa,g:rd,b:sd,a:pd}=Ra;return pd<1?`#${DEC2HEX[Math.round(qa)]}${DEC2HEX[Math.round(rd)]}${DEC2HEX[Math.round(sd)]}${DEC2HEX[Math.round(pd*255)]}`:`#${DEC2HEX[Math.round(qa)]}${DEC2HEX[Math.round(rd)]}${DEC2HEX[Math.round(sd)]}`}},HSL={re:/^hsla?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(?:deg|grad|rad|turn)?)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(%)?))?\s*?\)$/i,hueRe:/^(.+?)(deg|grad|rad|turn)$/i,_hue2deg:Ra=>{const qa=Ra.match(HSL.hueRe);if(qa){const[,rd,sd]=qa;switch(sd){case"grad":return Utils$1.channel.clamp.h(parseFloat(rd)*.9);case"rad":return Utils$1.channel.clamp.h(parseFloat(rd)*180/Math.PI);case"turn":return Utils$1.channel.clamp.h(parseFloat(rd)*360)}}return Utils$1.channel.clamp.h(parseFloat(Ra))},parse:Ra=>{const qa=Ra.charCodeAt(0);if(qa!==104&&qa!==72)return;const rd=Ra.match(HSL.re);if(!rd)return;const[,sd,pd,fd,hd,md]=rd;return channels.set({h:HSL._hue2deg(sd),s:Utils$1.channel.clamp.s(parseFloat(pd)),l:Utils$1.channel.clamp.l(parseFloat(fd)),a:hd?Utils$1.channel.clamp.a(md?parseFloat(hd)/100:parseFloat(hd)):1},Ra)},stringify:Ra=>{const{h:qa,s:rd,l:sd,a:pd}=Ra;return pd<1?`hsla(${Utils$1.lang.round(qa)}, ${Utils$1.lang.round(rd)}%, ${Utils$1.lang.round(sd)}%, ${pd})`:`hsl(${Utils$1.lang.round(qa)}, ${Utils$1.lang.round(rd)}%, ${Utils$1.lang.round(sd)}%)`}},Keyword={colors:{aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyanaqua:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",transparent:"#00000000",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},parse:Ra=>{Ra=Ra.toLowerCase();const qa=Keyword.colors[Ra];if(qa)return Hex.parse(qa)},stringify:Ra=>{const qa=Hex.stringify(Ra);for(const rd in Keyword.colors)if(Keyword.colors[rd]===qa)return rd}},RGB={re:/^rgba?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?)))?\s*?\)$/i,parse:Ra=>{const qa=Ra.charCodeAt(0);if(qa!==114&&qa!==82)return;const rd=Ra.match(RGB.re);if(!rd)return;const[,sd,pd,fd,hd,md,gd,yd,vd]=rd;return channels.set({r:Utils$1.channel.clamp.r(pd?parseFloat(sd)*2.55:parseFloat(sd)),g:Utils$1.channel.clamp.g(hd?parseFloat(fd)*2.55:parseFloat(fd)),b:Utils$1.channel.clamp.b(gd?parseFloat(md)*2.55:parseFloat(md)),a:yd?Utils$1.channel.clamp.a(vd?parseFloat(yd)/100:parseFloat(yd)):1},Ra)},stringify:Ra=>{const{r:qa,g:rd,b:sd,a:pd}=Ra;return pd<1?`rgba(${Utils$1.lang.round(qa)}, ${Utils$1.lang.round(rd)}, ${Utils$1.lang.round(sd)}, ${Utils$1.lang.round(pd)})`:`rgb(${Utils$1.lang.round(qa)}, ${Utils$1.lang.round(rd)}, ${Utils$1.lang.round(sd)})`}},Color$1={format:{keyword:Keyword,hex:Hex,rgb:RGB,rgba:RGB,hsl:HSL,hsla:HSL},parse:Ra=>{if(typeof Ra!="string")return Ra;const qa=Hex.parse(Ra)||RGB.parse(Ra)||HSL.parse(Ra)||Keyword.parse(Ra);if(qa)return qa;throw new Error(`Unsupported color format: "${Ra}"`)},stringify:Ra=>!Ra.changed&&Ra.color?Ra.color:Ra.type.is(TYPE.HSL)||Ra.data.r===void 0?HSL.stringify(Ra):Ra.a<1||!Number.isInteger(Ra.r)||!Number.isInteger(Ra.g)||!Number.isInteger(Ra.b)?RGB.stringify(Ra):Hex.stringify(Ra)},change=(Ra,qa)=>{const rd=Color$1.parse(Ra);for(const sd in qa)rd[sd]=Utils$1.channel.clamp[sd](qa[sd]);return Color$1.stringify(rd)},rgba$1=(Ra,qa,rd=0,sd=1)=>{if(typeof Ra!="number")return change(Ra,{a:qa});const pd=channels.set({r:Utils$1.channel.clamp.r(Ra),g:Utils$1.channel.clamp.g(qa),b:Utils$1.channel.clamp.b(rd),a:Utils$1.channel.clamp.a(sd)});return Color$1.stringify(pd)},luminance=Ra=>{const{r:qa,g:rd,b:sd}=Color$1.parse(Ra),pd=.2126*Utils$1.channel.toLinear(qa)+.7152*Utils$1.channel.toLinear(rd)+.0722*Utils$1.channel.toLinear(sd);return Utils$1.lang.round(pd)},isLight=Ra=>luminance(Ra)>=.5,isDark=Ra=>!isLight(Ra),adjustChannel=(Ra,qa,rd)=>{const sd=Color$1.parse(Ra),pd=sd[qa],fd=Utils$1.channel.clamp[qa](pd+rd);return pd!==fd&&(sd[qa]=fd),Color$1.stringify(sd)},lighten=(Ra,qa)=>adjustChannel(Ra,"l",qa),darken=(Ra,qa)=>adjustChannel(Ra,"l",-qa),adjust=(Ra,qa)=>{const rd=Color$1.parse(Ra),sd={};for(const pd in qa)qa[pd]&&(sd[pd]=rd[pd]+qa[pd]);return change(Ra,sd)},mix=(Ra,qa,rd=50)=>{const{r:sd,g:pd,b:fd,a:hd}=Color$1.parse(Ra),{r:md,g:gd,b:yd,a:vd}=Color$1.parse(qa),Nd=rd/100,Md=Nd*2-1,Ld=hd-vd,Hd=((Md*Ld===-1?Md:(Md+Ld)/(1+Md*Ld))+1)/2,Vd=1-Hd,Gd=sd*Hd+md*Vd,Ud=pd*Hd+gd*Vd,qd=fd*Hd+yd*Vd,Wd=hd*Nd+vd*(1-Nd);return rgba$1(Gd,Ud,qd,Wd)},invert=(Ra,qa=100)=>{const rd=Color$1.parse(Ra);return rd.r=255-rd.r,rd.g=255-rd.g,rd.b=255-rd.b,mix(rd,Ra,qa)};/*! @license DOMPurify 3.2.4 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.4/LICENSE */const{entries,setPrototypeOf,isFrozen,getPrototypeOf:getPrototypeOf$2,getOwnPropertyDescriptor}=Object;let{freeze,seal,create:create$1}=Object,{apply:apply$2,construct}=typeof Reflect<"u"&&Reflect;freeze||(freeze=function(qa){return qa});seal||(seal=function(qa){return qa});apply$2||(apply$2=function(qa,rd,sd){return qa.apply(rd,sd)});construct||(construct=function(qa,rd){return new qa(...rd)});const arrayForEach=unapply(Array.prototype.forEach),arrayLastIndexOf=unapply(Array.prototype.lastIndexOf),arrayPop=unapply(Array.prototype.pop),arrayPush=unapply(Array.prototype.push),arraySplice=unapply(Array.prototype.splice),stringToLowerCase=unapply(String.prototype.toLowerCase),stringToString=unapply(String.prototype.toString),stringMatch=unapply(String.prototype.match),stringReplace=unapply(String.prototype.replace),stringIndexOf=unapply(String.prototype.indexOf),stringTrim=unapply(String.prototype.trim),objectHasOwnProperty=unapply(Object.prototype.hasOwnProperty),regExpTest=unapply(RegExp.prototype.test),typeErrorCreate=unconstruct(TypeError);function unapply(Ra){return function(qa){for(var rd=arguments.length,sd=new Array(rd>1?rd-1:0),pd=1;pd2&&arguments[2]!==void 0?arguments[2]:stringToLowerCase;setPrototypeOf&&setPrototypeOf(Ra,null);let sd=qa.length;for(;sd--;){let pd=qa[sd];if(typeof pd=="string"){const fd=rd(pd);fd!==pd&&(isFrozen(qa)||(qa[sd]=fd),pd=fd)}Ra[pd]=!0}return Ra}function cleanArray(Ra){for(let qa=0;qa/gm),TMPLIT_EXPR=seal(/\$\{[\w\W]*/gm),DATA_ATTR=seal(/^data-[\-\w.\u00B7-\uFFFF]+$/),ARIA_ATTR=seal(/^aria-[\-\w]+$/),IS_ALLOWED_URI=seal(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),IS_SCRIPT_OR_DATA=seal(/^(?:\w+script|data):/i),ATTR_WHITESPACE=seal(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),DOCTYPE_NAME=seal(/^html$/i),CUSTOM_ELEMENT=seal(/^[a-z][.\w]*(-[.\w]+)+$/i);var EXPRESSIONS=Object.freeze({__proto__:null,ARIA_ATTR,ATTR_WHITESPACE,CUSTOM_ELEMENT,DATA_ATTR,DOCTYPE_NAME,ERB_EXPR,IS_ALLOWED_URI,IS_SCRIPT_OR_DATA,MUSTACHE_EXPR,TMPLIT_EXPR});const NODE_TYPE={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},getGlobal=function(){return typeof window>"u"?null:window},_createTrustedTypesPolicy=function(qa,rd){if(typeof qa!="object"||typeof qa.createPolicy!="function")return null;let sd=null;const pd="data-tt-policy-suffix";rd&&rd.hasAttribute(pd)&&(sd=rd.getAttribute(pd));const fd="dompurify"+(sd?"#"+sd:"");try{return qa.createPolicy(fd,{createHTML(hd){return hd},createScriptURL(hd){return hd}})}catch{return console.warn("TrustedTypes policy "+fd+" could not be created."),null}},_createHooksMap=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function createDOMPurify(){let Ra=arguments.length>0&&arguments[0]!==void 0?arguments[0]:getGlobal();const qa=Vm=>createDOMPurify(Vm);if(qa.version="3.2.4",qa.removed=[],!Ra||!Ra.document||Ra.document.nodeType!==NODE_TYPE.document||!Ra.Element)return qa.isSupported=!1,qa;let{document:rd}=Ra;const sd=rd,pd=sd.currentScript,{DocumentFragment:fd,HTMLTemplateElement:hd,Node:md,Element:gd,NodeFilter:yd,NamedNodeMap:vd=Ra.NamedNodeMap||Ra.MozNamedAttrMap,HTMLFormElement:Nd,DOMParser:Md,trustedTypes:Ld}=Ra,Fd=gd.prototype,Hd=lookupGetter(Fd,"cloneNode"),Vd=lookupGetter(Fd,"remove"),Gd=lookupGetter(Fd,"nextSibling"),Ud=lookupGetter(Fd,"childNodes"),qd=lookupGetter(Fd,"parentNode");if(typeof hd=="function"){const Vm=rd.createElement("template");Vm.content&&Vm.content.ownerDocument&&(rd=Vm.content.ownerDocument)}let Wd,Kd="";const{implementation:Xd,createNodeIterator:df,createDocumentFragment:Ef,getElementsByTagName:pf}=rd,{importNode:mf}=sd;let _f=_createHooksMap();qa.isSupported=typeof entries=="function"&&typeof qd=="function"&&Xd&&Xd.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:xf,ERB_EXPR:Cf,TMPLIT_EXPR:If,DATA_ATTR:Sf,ARIA_ATTR:wf,IS_SCRIPT_OR_DATA:Pf,ATTR_WHITESPACE:lh,CUSTOM_ELEMENT:xh}=EXPRESSIONS;let{IS_ALLOWED_URI:Eh}=EXPRESSIONS,Mh=null;const dh=addToSet({},[...html$1,...svg$1,...svgFilters,...mathMl$1,...text$1]);let eh=null;const fh=addToSet({},[...html$2,...svg,...mathMl,...xml$3]);let Sh=Object.seal(create$1(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),vh=null,Df=null,Af=!0,_h=!0,Nh=!1,dm=!0,Jf=!1,oh=!0,Xh=!1,Tm=!1,kh=!1,Zf=!1,th=!1,$h=!1,wh=!0,fm=!1;const zh="user-content-";let Mm=!0,Rm=!1,tg={},Fm=null;const Ym=addToSet({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let rg=null;const Eg=addToSet({},["audio","video","img","source","image","track"]);let Fh=null;const kf=addToSet({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Rf="http://www.w3.org/1998/Math/MathML",Dh="http://www.w3.org/2000/svg",Vh="http://www.w3.org/1999/xhtml";let Sm=Vh,$m=!1,Km=null;const Ag=addToSet({},[Rf,Dh,Vh],stringToString);let ig=addToSet({},["mi","mo","mn","ms","mtext"]),_g=addToSet({},["annotation-xml"]);const vg=addToSet({},["title","style","font","a","script"]);let Og=null;const Wg=["application/xhtml+xml","text/html"],d_="text/html";let o_=null,y_=null;const t_=rd.createElement("form"),R_=function(Dm){return Dm instanceof RegExp||Dm instanceof Function},v_=function(){let Dm=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(y_&&y_===Dm)){if((!Dm||typeof Dm!="object")&&(Dm={}),Dm=clone$1(Dm),Og=Wg.indexOf(Dm.PARSER_MEDIA_TYPE)===-1?d_:Dm.PARSER_MEDIA_TYPE,o_=Og==="application/xhtml+xml"?stringToString:stringToLowerCase,Mh=objectHasOwnProperty(Dm,"ALLOWED_TAGS")?addToSet({},Dm.ALLOWED_TAGS,o_):dh,eh=objectHasOwnProperty(Dm,"ALLOWED_ATTR")?addToSet({},Dm.ALLOWED_ATTR,o_):fh,Km=objectHasOwnProperty(Dm,"ALLOWED_NAMESPACES")?addToSet({},Dm.ALLOWED_NAMESPACES,stringToString):Ag,Fh=objectHasOwnProperty(Dm,"ADD_URI_SAFE_ATTR")?addToSet(clone$1(kf),Dm.ADD_URI_SAFE_ATTR,o_):kf,rg=objectHasOwnProperty(Dm,"ADD_DATA_URI_TAGS")?addToSet(clone$1(Eg),Dm.ADD_DATA_URI_TAGS,o_):Eg,Fm=objectHasOwnProperty(Dm,"FORBID_CONTENTS")?addToSet({},Dm.FORBID_CONTENTS,o_):Ym,vh=objectHasOwnProperty(Dm,"FORBID_TAGS")?addToSet({},Dm.FORBID_TAGS,o_):{},Df=objectHasOwnProperty(Dm,"FORBID_ATTR")?addToSet({},Dm.FORBID_ATTR,o_):{},tg=objectHasOwnProperty(Dm,"USE_PROFILES")?Dm.USE_PROFILES:!1,Af=Dm.ALLOW_ARIA_ATTR!==!1,_h=Dm.ALLOW_DATA_ATTR!==!1,Nh=Dm.ALLOW_UNKNOWN_PROTOCOLS||!1,dm=Dm.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Jf=Dm.SAFE_FOR_TEMPLATES||!1,oh=Dm.SAFE_FOR_XML!==!1,Xh=Dm.WHOLE_DOCUMENT||!1,Zf=Dm.RETURN_DOM||!1,th=Dm.RETURN_DOM_FRAGMENT||!1,$h=Dm.RETURN_TRUSTED_TYPE||!1,kh=Dm.FORCE_BODY||!1,wh=Dm.SANITIZE_DOM!==!1,fm=Dm.SANITIZE_NAMED_PROPS||!1,Mm=Dm.KEEP_CONTENT!==!1,Rm=Dm.IN_PLACE||!1,Eh=Dm.ALLOWED_URI_REGEXP||IS_ALLOWED_URI,Sm=Dm.NAMESPACE||Vh,ig=Dm.MATHML_TEXT_INTEGRATION_POINTS||ig,_g=Dm.HTML_INTEGRATION_POINTS||_g,Sh=Dm.CUSTOM_ELEMENT_HANDLING||{},Dm.CUSTOM_ELEMENT_HANDLING&&R_(Dm.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Sh.tagNameCheck=Dm.CUSTOM_ELEMENT_HANDLING.tagNameCheck),Dm.CUSTOM_ELEMENT_HANDLING&&R_(Dm.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Sh.attributeNameCheck=Dm.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),Dm.CUSTOM_ELEMENT_HANDLING&&typeof Dm.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(Sh.allowCustomizedBuiltInElements=Dm.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Jf&&(_h=!1),th&&(Zf=!0),tg&&(Mh=addToSet({},text$1),eh=[],tg.html===!0&&(addToSet(Mh,html$1),addToSet(eh,html$2)),tg.svg===!0&&(addToSet(Mh,svg$1),addToSet(eh,svg),addToSet(eh,xml$3)),tg.svgFilters===!0&&(addToSet(Mh,svgFilters),addToSet(eh,svg),addToSet(eh,xml$3)),tg.mathMl===!0&&(addToSet(Mh,mathMl$1),addToSet(eh,mathMl),addToSet(eh,xml$3))),Dm.ADD_TAGS&&(Mh===dh&&(Mh=clone$1(Mh)),addToSet(Mh,Dm.ADD_TAGS,o_)),Dm.ADD_ATTR&&(eh===fh&&(eh=clone$1(eh)),addToSet(eh,Dm.ADD_ATTR,o_)),Dm.ADD_URI_SAFE_ATTR&&addToSet(Fh,Dm.ADD_URI_SAFE_ATTR,o_),Dm.FORBID_CONTENTS&&(Fm===Ym&&(Fm=clone$1(Fm)),addToSet(Fm,Dm.FORBID_CONTENTS,o_)),Mm&&(Mh["#text"]=!0),Xh&&addToSet(Mh,["html","head","body"]),Mh.table&&(addToSet(Mh,["tbody"]),delete vh.tbody),Dm.TRUSTED_TYPES_POLICY){if(typeof Dm.TRUSTED_TYPES_POLICY.createHTML!="function")throw typeErrorCreate('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof Dm.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw typeErrorCreate('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');Wd=Dm.TRUSTED_TYPES_POLICY,Kd=Wd.createHTML("")}else Wd===void 0&&(Wd=_createTrustedTypesPolicy(Ld,pd)),Wd!==null&&typeof Kd=="string"&&(Kd=Wd.createHTML(""));freeze&&freeze(Dm),y_=Dm}},X_=addToSet({},[...svg$1,...svgFilters,...svgDisallowed]),eb=addToSet({},[...mathMl$1,...mathMlDisallowed]),I_=function(Dm){let og=qd(Dm);(!og||!og.tagName)&&(og={namespaceURI:Sm,tagName:"template"});const pg=stringToLowerCase(Dm.tagName),qg=stringToLowerCase(og.tagName);return Km[Dm.namespaceURI]?Dm.namespaceURI===Dh?og.namespaceURI===Vh?pg==="svg":og.namespaceURI===Rf?pg==="svg"&&(qg==="annotation-xml"||ig[qg]):!!X_[pg]:Dm.namespaceURI===Rf?og.namespaceURI===Vh?pg==="math":og.namespaceURI===Dh?pg==="math"&&_g[qg]:!!eb[pg]:Dm.namespaceURI===Vh?og.namespaceURI===Dh&&!_g[qg]||og.namespaceURI===Rf&&!ig[qg]?!1:!eb[pg]&&(vg[pg]||!X_[pg]):!!(Og==="application/xhtml+xml"&&Km[Dm.namespaceURI]):!1},$_=function(Dm){arrayPush(qa.removed,{element:Dm});try{qd(Dm).removeChild(Dm)}catch{Vd(Dm)}},$g=function(Dm,og){try{arrayPush(qa.removed,{attribute:og.getAttributeNode(Dm),from:og})}catch{arrayPush(qa.removed,{attribute:null,from:og})}if(og.removeAttribute(Dm),Dm==="is")if(Zf||th)try{$_(og)}catch{}else try{og.setAttribute(Dm,"")}catch{}},Lb=function(Dm){let og=null,pg=null;if(kh)Dm=""+Dm;else{const Yg=stringMatch(Dm,/^[\r\n\t ]+/);pg=Yg&&Yg[0]}Og==="application/xhtml+xml"&&Sm===Vh&&(Dm=''+Dm+"");const qg=Wd?Wd.createHTML(Dm):Dm;if(Sm===Vh)try{og=new Md().parseFromString(qg,Og)}catch{}if(!og||!og.documentElement){og=Xd.createDocument(Sm,"template",null);try{og.documentElement.innerHTML=$m?Kd:qg}catch{}}const xg=og.body||og.documentElement;return Dm&&pg&&xg.insertBefore(rd.createTextNode(pg),xg.childNodes[0]||null),Sm===Vh?pf.call(og,Xh?"html":"body")[0]:Xh?og.documentElement:xg},Kb=function(Dm){return df.call(Dm.ownerDocument||Dm,Dm,yd.SHOW_ELEMENT|yd.SHOW_COMMENT|yd.SHOW_TEXT|yd.SHOW_PROCESSING_INSTRUCTION|yd.SHOW_CDATA_SECTION,null)},db=function(Dm){return Dm instanceof Nd&&(typeof Dm.nodeName!="string"||typeof Dm.textContent!="string"||typeof Dm.removeChild!="function"||!(Dm.attributes instanceof vd)||typeof Dm.removeAttribute!="function"||typeof Dm.setAttribute!="function"||typeof Dm.namespaceURI!="string"||typeof Dm.insertBefore!="function"||typeof Dm.hasChildNodes!="function")},nh=function(Dm){return typeof md=="function"&&Dm instanceof md};function gm(Vm,Dm,og){arrayForEach(Vm,pg=>{pg.call(qa,Dm,og,y_)})}const im=function(Dm){let og=null;if(gm(_f.beforeSanitizeElements,Dm,null),db(Dm))return $_(Dm),!0;const pg=o_(Dm.nodeName);if(gm(_f.uponSanitizeElement,Dm,{tagName:pg,allowedTags:Mh}),Dm.hasChildNodes()&&!nh(Dm.firstElementChild)&®ExpTest(/<[/\w]/g,Dm.innerHTML)&®ExpTest(/<[/\w]/g,Dm.textContent)||Dm.nodeType===NODE_TYPE.progressingInstruction||oh&&Dm.nodeType===NODE_TYPE.comment&®ExpTest(/<[/\w]/g,Dm.data))return $_(Dm),!0;if(!Mh[pg]||vh[pg]){if(!vh[pg]&&jm(pg)&&(Sh.tagNameCheck instanceof RegExp&®ExpTest(Sh.tagNameCheck,pg)||Sh.tagNameCheck instanceof Function&&Sh.tagNameCheck(pg)))return!1;if(Mm&&!Fm[pg]){const qg=qd(Dm)||Dm.parentNode,xg=Ud(Dm)||Dm.childNodes;if(xg&&qg){const Yg=xg.length;for(let w_=Yg-1;w_>=0;--w_){const C_=Hd(xg[w_],!0);C_.__removalCount=(Dm.__removalCount||0)+1,qg.insertBefore(C_,Gd(Dm))}}}return $_(Dm),!0}return Dm instanceof gd&&!I_(Dm)||(pg==="noscript"||pg==="noembed"||pg==="noframes")&®ExpTest(/<\/no(script|embed|frames)/i,Dm.innerHTML)?($_(Dm),!0):(Jf&&Dm.nodeType===NODE_TYPE.text&&(og=Dm.textContent,arrayForEach([xf,Cf,If],qg=>{og=stringReplace(og,qg," ")}),Dm.textContent!==og&&(arrayPush(qa.removed,{element:Dm.cloneNode()}),Dm.textContent=og)),gm(_f.afterSanitizeElements,Dm,null),!1)},mm=function(Dm,og,pg){if(wh&&(og==="id"||og==="name")&&(pg in rd||pg in t_))return!1;if(!(_h&&!Df[og]&®ExpTest(Sf,og))){if(!(Af&®ExpTest(wf,og))){if(!eh[og]||Df[og]){if(!(jm(Dm)&&(Sh.tagNameCheck instanceof RegExp&®ExpTest(Sh.tagNameCheck,Dm)||Sh.tagNameCheck instanceof Function&&Sh.tagNameCheck(Dm))&&(Sh.attributeNameCheck instanceof RegExp&®ExpTest(Sh.attributeNameCheck,og)||Sh.attributeNameCheck instanceof Function&&Sh.attributeNameCheck(og))||og==="is"&&Sh.allowCustomizedBuiltInElements&&(Sh.tagNameCheck instanceof RegExp&®ExpTest(Sh.tagNameCheck,pg)||Sh.tagNameCheck instanceof Function&&Sh.tagNameCheck(pg))))return!1}else if(!Fh[og]){if(!regExpTest(Eh,stringReplace(pg,lh,""))){if(!((og==="src"||og==="xlink:href"||og==="href")&&Dm!=="script"&&stringIndexOf(pg,"data:")===0&&rg[Dm])){if(!(Nh&&!regExpTest(Pf,stringReplace(pg,lh,"")))){if(pg)return!1}}}}}}return!0},jm=function(Dm){return Dm!=="annotation-xml"&&stringMatch(Dm,xh)},Lm=function(Dm){gm(_f.beforeSanitizeAttributes,Dm,null);const{attributes:og}=Dm;if(!og||db(Dm))return;const pg={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:eh,forceKeepAttr:void 0};let qg=og.length;for(;qg--;){const xg=og[qg],{name:Yg,namespaceURI:w_,value:C_}=xg,p_=o_(Yg);let Mg=Yg==="value"?C_:stringTrim(C_);if(pg.attrName=p_,pg.attrValue=Mg,pg.keepAttr=!0,pg.forceKeepAttr=void 0,gm(_f.uponSanitizeAttribute,Dm,pg),Mg=pg.attrValue,fm&&(p_==="id"||p_==="name")&&($g(Yg,Dm),Mg=zh+Mg),oh&®ExpTest(/((--!?|])>)|<\/(style|title)/i,Mg)){$g(Yg,Dm);continue}if(pg.forceKeepAttr||($g(Yg,Dm),!pg.keepAttr))continue;if(!dm&®ExpTest(/\/>/i,Mg)){$g(Yg,Dm);continue}Jf&&arrayForEach([xf,Cf,If],m_=>{Mg=stringReplace(Mg,m_," ")});const q_=o_(Dm.nodeName);if(mm(q_,p_,Mg)){if(Wd&&typeof Ld=="object"&&typeof Ld.getAttributeType=="function"&&!w_)switch(Ld.getAttributeType(q_,p_)){case"TrustedHTML":{Mg=Wd.createHTML(Mg);break}case"TrustedScriptURL":{Mg=Wd.createScriptURL(Mg);break}}try{w_?Dm.setAttributeNS(w_,Yg,Mg):Dm.setAttribute(Yg,Mg),db(Dm)?$_(Dm):arrayPop(qa.removed)}catch{}}}gm(_f.afterSanitizeAttributes,Dm,null)},zm=function Vm(Dm){let og=null;const pg=Kb(Dm);for(gm(_f.beforeSanitizeShadowDOM,Dm,null);og=pg.nextNode();)gm(_f.uponSanitizeShadowNode,og,null),im(og),Lm(og),og.content instanceof fd&&Vm(og.content);gm(_f.afterSanitizeShadowDOM,Dm,null)};return qa.sanitize=function(Vm){let Dm=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},og=null,pg=null,qg=null,xg=null;if($m=!Vm,$m&&(Vm=""),typeof Vm!="string"&&!nh(Vm))if(typeof Vm.toString=="function"){if(Vm=Vm.toString(),typeof Vm!="string")throw typeErrorCreate("dirty is not a string, aborting")}else throw typeErrorCreate("toString is not a function");if(!qa.isSupported)return Vm;if(Tm||v_(Dm),qa.removed=[],typeof Vm=="string"&&(Rm=!1),Rm){if(Vm.nodeName){const C_=o_(Vm.nodeName);if(!Mh[C_]||vh[C_])throw typeErrorCreate("root node is forbidden and cannot be sanitized in-place")}}else if(Vm instanceof md)og=Lb(""),pg=og.ownerDocument.importNode(Vm,!0),pg.nodeType===NODE_TYPE.element&&pg.nodeName==="BODY"||pg.nodeName==="HTML"?og=pg:og.appendChild(pg);else{if(!Zf&&!Jf&&!Xh&&Vm.indexOf("<")===-1)return Wd&&$h?Wd.createHTML(Vm):Vm;if(og=Lb(Vm),!og)return Zf?null:$h?Kd:""}og&&kh&&$_(og.firstChild);const Yg=Kb(Rm?Vm:og);for(;qg=Yg.nextNode();)im(qg),Lm(qg),qg.content instanceof fd&&zm(qg.content);if(Rm)return Vm;if(Zf){if(th)for(xg=Ef.call(og.ownerDocument);og.firstChild;)xg.appendChild(og.firstChild);else xg=og;return(eh.shadowroot||eh.shadowrootmode)&&(xg=mf.call(sd,xg,!0)),xg}let w_=Xh?og.outerHTML:og.innerHTML;return Xh&&Mh["!doctype"]&&og.ownerDocument&&og.ownerDocument.doctype&&og.ownerDocument.doctype.name&®ExpTest(DOCTYPE_NAME,og.ownerDocument.doctype.name)&&(w_=" +`+w_),Jf&&arrayForEach([xf,Cf,If],C_=>{w_=stringReplace(w_,C_," ")}),Wd&&$h?Wd.createHTML(w_):w_},qa.setConfig=function(){let Vm=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};v_(Vm),Tm=!0},qa.clearConfig=function(){y_=null,Tm=!1},qa.isValidAttribute=function(Vm,Dm,og){y_||v_({});const pg=o_(Vm),qg=o_(Dm);return mm(pg,qg,og)},qa.addHook=function(Vm,Dm){typeof Dm=="function"&&arrayPush(_f[Vm],Dm)},qa.removeHook=function(Vm,Dm){if(Dm!==void 0){const og=arrayLastIndexOf(_f[Vm],Dm);return og===-1?void 0:arraySplice(_f[Vm],og,1)[0]}return arrayPop(_f[Vm])},qa.removeHooks=function(Vm){_f[Vm]=[]},qa.removeAllHooks=function(){_f=_createHooksMap()},qa}var purify=createDOMPurify(),__defProp=Object.defineProperty,__name=(Ra,qa)=>__defProp(Ra,"name",{value:qa,configurable:!0}),__export=(Ra,qa)=>{for(var rd in qa)__defProp(Ra,rd,{get:qa[rd],enumerable:!0})},LEVELS={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},log$1={trace:__name((...Ra)=>{},"trace"),debug:__name((...Ra)=>{},"debug"),info:__name((...Ra)=>{},"info"),warn:__name((...Ra)=>{},"warn"),error:__name((...Ra)=>{},"error"),fatal:__name((...Ra)=>{},"fatal")},setLogLevel=__name(function(Ra="fatal"){let qa=LEVELS.fatal;typeof Ra=="string"?Ra.toLowerCase()in LEVELS&&(qa=LEVELS[Ra]):typeof Ra=="number"&&(qa=Ra),log$1.trace=()=>{},log$1.debug=()=>{},log$1.info=()=>{},log$1.warn=()=>{},log$1.error=()=>{},log$1.fatal=()=>{},qa<=LEVELS.fatal&&(log$1.fatal=console.error?console.error.bind(console,format$1("FATAL"),"color: orange"):console.log.bind(console,"\x1B[35m",format$1("FATAL"))),qa<=LEVELS.error&&(log$1.error=console.error?console.error.bind(console,format$1("ERROR"),"color: orange"):console.log.bind(console,"\x1B[31m",format$1("ERROR"))),qa<=LEVELS.warn&&(log$1.warn=console.warn?console.warn.bind(console,format$1("WARN"),"color: orange"):console.log.bind(console,"\x1B[33m",format$1("WARN"))),qa<=LEVELS.info&&(log$1.info=console.info?console.info.bind(console,format$1("INFO"),"color: lightblue"):console.log.bind(console,"\x1B[34m",format$1("INFO"))),qa<=LEVELS.debug&&(log$1.debug=console.debug?console.debug.bind(console,format$1("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",format$1("DEBUG"))),qa<=LEVELS.trace&&(log$1.trace=console.debug?console.debug.bind(console,format$1("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",format$1("TRACE")))},"setLogLevel"),format$1=__name(Ra=>`%c${dayjs2().format("ss.SSS")} : ${Ra} : `,"format"),frontMatterRegex=/^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s,directiveRegex=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,anyCommentRegex=/\s*%%.*\n/gm,rT,UnknownDiagramError=(rT=class extends Error{constructor(qa){super(qa),this.name="UnknownDiagramError"}},__name(rT,"UnknownDiagramError"),rT),detectors={},detectType$1=__name(function(Ra,qa){Ra=Ra.replace(frontMatterRegex,"").replace(directiveRegex,"").replace(anyCommentRegex,` `);for(const[rd,{detector:sd}]of Object.entries(detectors))if(sd(Ra,qa))return rd;throw new UnknownDiagramError(`No diagram type detected matching given configuration for text: ${Ra}`)},"detectType"),registerLazyLoadedDiagrams=__name((...Ra)=>{for(const{id:qa,detector:rd,loader:sd}of Ra)addDetector(qa,rd,sd)},"registerLazyLoadedDiagrams"),addDetector=__name((Ra,qa,rd)=>{detectors[Ra]&&log$1.warn(`Detector with key ${Ra} already exists. Overwriting.`),detectors[Ra]={detector:qa,loader:rd},log$1.debug(`Detector with key ${Ra} added${rd?" with loader":""}`)},"addDetector"),getDiagramLoader=__name(Ra=>detectors[Ra].loader,"getDiagramLoader"),assignWithDepth=__name((Ra,qa,{depth:rd=2,clobber:sd=!1}={})=>{const pd={depth:rd,clobber:sd};return Array.isArray(qa)&&!Array.isArray(Ra)?(qa.forEach(fd=>assignWithDepth(Ra,fd,pd)),Ra):Array.isArray(qa)&&Array.isArray(Ra)?(qa.forEach(fd=>{Ra.includes(fd)||Ra.push(fd)}),Ra):Ra===void 0||rd<=0?Ra!=null&&typeof Ra=="object"&&typeof qa=="object"?Object.assign(Ra,qa):qa:(qa!==void 0&&typeof Ra=="object"&&typeof qa=="object"&&Object.keys(qa).forEach(fd=>{typeof qa[fd]=="object"&&(Ra[fd]===void 0||typeof Ra[fd]=="object")?(Ra[fd]===void 0&&(Ra[fd]=Array.isArray(qa[fd])?[]:{}),Ra[fd]=assignWithDepth(Ra[fd],qa[fd],{depth:rd-1,clobber:sd})):(sd||typeof Ra[fd]!="object"&&typeof qa[fd]!="object")&&(Ra[fd]=qa[fd])}),Ra)},"assignWithDepth"),assignWithDepth_default=assignWithDepth,oldAttributeBackgroundColorOdd="#ffffff",oldAttributeBackgroundColorEven="#f2f2f2",mkBorder=__name((Ra,qa)=>qa?adjust(Ra,{s:-40,l:10}):adjust(Ra,{s:-40,l:-10}),"mkBorder"),iT,Theme=(iT=class{constructor(){this.background="#f4f4f4",this.primaryColor="#fff4dd",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px"}updateColors(){var rd,sd,pd,fd,hd,md,gd,yd,vd,Nd,Md;if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||adjust(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||adjust(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||mkBorder(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||mkBorder(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||mkBorder(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||mkBorder(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||invert(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||invert(this.tertiaryColor),this.lineColor=this.lineColor||invert(this.background),this.arrowheadColor=this.arrowheadColor||invert(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?darken(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||darken(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||invert(this.lineColor),this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||lighten(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||this.tertiaryColor,this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||adjust(this.primaryColor,{h:30}),this.cScale4=this.cScale4||adjust(this.primaryColor,{h:60}),this.cScale5=this.cScale5||adjust(this.primaryColor,{h:90}),this.cScale6=this.cScale6||adjust(this.primaryColor,{h:120}),this.cScale7=this.cScale7||adjust(this.primaryColor,{h:150}),this.cScale8=this.cScale8||adjust(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||adjust(this.primaryColor,{h:270}),this.cScale10=this.cScale10||adjust(this.primaryColor,{h:300}),this.cScale11=this.cScale11||adjust(this.primaryColor,{h:330}),this.darkMode)for(let Ld=0;Ld{this[sd]=qa[sd]}),this.updateColors(),rd.forEach(sd=>{this[sd]=qa[sd]})}},__name(iT,"Theme"),iT),getThemeVariables=__name(Ra=>{const qa=new Theme;return qa.calculate(Ra),qa},"getThemeVariables"),sT,Theme2=(sT=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=lighten(this.primaryColor,16),this.tertiaryColor=adjust(this.primaryColor,{h:-160}),this.primaryBorderColor=invert(this.background),this.secondaryBorderColor=mkBorder(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=mkBorder(this.tertiaryColor,this.darkMode),this.primaryTextColor=invert(this.primaryColor),this.secondaryTextColor=invert(this.secondaryColor),this.tertiaryTextColor=invert(this.tertiaryColor),this.lineColor=invert(this.background),this.textColor=invert(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=lighten(invert("#323D47"),10),this.lineColor="calculated",this.border1="#ccc",this.border2=rgba$1(255,255,255,.25),this.arrowheadColor="calculated",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#181818",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#F9FFFE",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="calculated",this.activationBkgColor="calculated",this.sequenceNumberColor="black",this.sectionBkgColor=darken("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.excludeBkgColor=darken(this.sectionBkgColor,10),this.taskBorderColor=rgba$1(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=rgba$1(255,255,255,50),this.activeTaskBkgColor="#81B1DB",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="grey",this.critBorderColor="#E83737",this.critBkgColor="#E83737",this.taskTextDarkColor="calculated",this.todayLineColor="#DB5757",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.labelColor="calculated",this.errorBkgColor="#a44141",this.errorTextColor="#ddd"}updateColors(){var qa,rd,sd,pd,fd,hd,md,gd,yd,vd,Nd;this.secondBkg=lighten(this.mainBkg,16),this.lineColor=this.mainContrastColor,this.arrowheadColor=this.mainContrastColor,this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.edgeLabelBackground=lighten(this.labelBackground,25),this.actorBorder=this.border1,this.actorBkg=this.mainBkg,this.actorTextColor=this.mainContrastColor,this.actorLineColor=this.actorBorder,this.signalColor=this.mainContrastColor,this.signalTextColor=this.mainContrastColor,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.mainContrastColor,this.loopTextColor=this.mainContrastColor,this.noteBorderColor=this.secondaryBorderColor,this.noteBkgColor=this.secondBkg,this.noteTextColor=this.secondaryTextColor,this.activationBorderColor=this.border1,this.activationBkgColor=this.secondBkg,this.altSectionBkgColor=this.background,this.taskBkgColor=lighten(this.mainBkg,23),this.taskTextColor=this.darkTextColor,this.taskTextLightColor=this.mainContrastColor,this.taskTextOutsideColor=this.taskTextLightColor,this.gridColor=this.mainContrastColor,this.doneTaskBkgColor=this.mainContrastColor,this.taskTextDarkColor=this.darkTextColor,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#555",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#f4f4f4",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=adjust(this.primaryColor,{h:64}),this.fillType3=adjust(this.secondaryColor,{h:64}),this.fillType4=adjust(this.primaryColor,{h:-64}),this.fillType5=adjust(this.secondaryColor,{h:-64}),this.fillType6=adjust(this.primaryColor,{h:128}),this.fillType7=adjust(this.secondaryColor,{h:128}),this.cScale1=this.cScale1||"#0b0000",this.cScale2=this.cScale2||"#4d1037",this.cScale3=this.cScale3||"#3f5258",this.cScale4=this.cScale4||"#4f2f1b",this.cScale5=this.cScale5||"#6e0a0a",this.cScale6=this.cScale6||"#3b0048",this.cScale7=this.cScale7||"#995a01",this.cScale8=this.cScale8||"#154706",this.cScale9=this.cScale9||"#161722",this.cScale10=this.cScale10||"#00296f",this.cScale11=this.cScale11||"#01629c",this.cScale12=this.cScale12||"#010029",this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||adjust(this.primaryColor,{h:30}),this.cScale4=this.cScale4||adjust(this.primaryColor,{h:60}),this.cScale5=this.cScale5||adjust(this.primaryColor,{h:90}),this.cScale6=this.cScale6||adjust(this.primaryColor,{h:120}),this.cScale7=this.cScale7||adjust(this.primaryColor,{h:150}),this.cScale8=this.cScale8||adjust(this.primaryColor,{h:210}),this.cScale9=this.cScale9||adjust(this.primaryColor,{h:270}),this.cScale10=this.cScale10||adjust(this.primaryColor,{h:300}),this.cScale11=this.cScale11||adjust(this.primaryColor,{h:330});for(let Md=0;Md{this[sd]=qa[sd]}),this.updateColors(),rd.forEach(sd=>{this[sd]=qa[sd]})}},__name(sT,"Theme"),sT),getThemeVariables2=__name(Ra=>{const qa=new Theme2;return qa.calculate(Ra),qa},"getThemeVariables"),oT,Theme3=(oT=class{constructor(){this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=adjust(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=adjust(this.primaryColor,{h:-160}),this.primaryBorderColor=mkBorder(this.primaryColor,this.darkMode),this.secondaryBorderColor=mkBorder(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=mkBorder(this.tertiaryColor,this.darkMode),this.primaryTextColor=invert(this.primaryColor),this.secondaryTextColor=invert(this.secondaryColor),this.tertiaryTextColor=invert(this.tertiaryColor),this.lineColor=invert(this.background),this.textColor=invert(this.background),this.background="white",this.mainBkg="#ECECFF",this.secondBkg="#ffffde",this.lineColor="#333333",this.border1="#9370DB",this.border2="#aaaa33",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="rgba(232,232,232, 0.8)",this.textColor="#333",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="calculated",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="calculated",this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor="calculated",this.taskTextOutsideColor=this.taskTextDarkColor,this.taskTextClickableColor="calculated",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBorderColor="calculated",this.critBkgColor="calculated",this.todayLineColor="calculated",this.sectionBkgColor=rgba$1(102,102,255,.49),this.altSectionBkgColor="white",this.sectionBkgColor2="#fff400",this.taskBorderColor="#534fbc",this.taskBkgColor="#8a90dd",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="#534fbc",this.activeTaskBkgColor="#bfc7ff",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.updateColors()}updateColors(){var qa,rd,sd,pd,fd,hd,md,gd,yd,vd,Nd;this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||adjust(this.primaryColor,{h:30}),this.cScale4=this.cScale4||adjust(this.primaryColor,{h:60}),this.cScale5=this.cScale5||adjust(this.primaryColor,{h:90}),this.cScale6=this.cScale6||adjust(this.primaryColor,{h:120}),this.cScale7=this.cScale7||adjust(this.primaryColor,{h:150}),this.cScale8=this.cScale8||adjust(this.primaryColor,{h:210}),this.cScale9=this.cScale9||adjust(this.primaryColor,{h:270}),this.cScale10=this.cScale10||adjust(this.primaryColor,{h:300}),this.cScale11=this.cScale11||adjust(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||darken(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||darken(this.tertiaryColor,40);for(let Md=0;Md{this[sd]=qa[sd]}),this.updateColors(),rd.forEach(sd=>{this[sd]=qa[sd]})}},__name(oT,"Theme"),oT),getThemeVariables3=__name(Ra=>{const qa=new Theme3;return qa.calculate(Ra),qa},"getThemeVariables"),lT,Theme4=(lT=class{constructor(){this.background="#f4f4f4",this.primaryColor="#cde498",this.secondaryColor="#cdffb2",this.background="white",this.mainBkg="#cde498",this.secondBkg="#cdffb2",this.lineColor="green",this.border1="#13540c",this.border2="#6eaa49",this.arrowheadColor="green",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.tertiaryColor=lighten("#cde498",10),this.primaryBorderColor=mkBorder(this.primaryColor,this.darkMode),this.secondaryBorderColor=mkBorder(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=mkBorder(this.tertiaryColor,this.darkMode),this.primaryTextColor=invert(this.primaryColor),this.secondaryTextColor=invert(this.secondaryColor),this.tertiaryTextColor=invert(this.primaryColor),this.lineColor=invert(this.background),this.textColor=invert(this.background),this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#333",this.edgeLabelBackground="#e8e8e8",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="calculated",this.signalColor="#333",this.signalTextColor="#333",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="#326932",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="#6eaa49",this.altSectionBkgColor="white",this.sectionBkgColor2="#6eaa49",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="#487e3a",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){var qa,rd,sd,pd,fd,hd,md,gd,yd,vd,Nd;this.actorBorder=darken(this.mainBkg,20),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.actorLineColor=this.actorBorder,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||adjust(this.primaryColor,{h:30}),this.cScale4=this.cScale4||adjust(this.primaryColor,{h:60}),this.cScale5=this.cScale5||adjust(this.primaryColor,{h:90}),this.cScale6=this.cScale6||adjust(this.primaryColor,{h:120}),this.cScale7=this.cScale7||adjust(this.primaryColor,{h:150}),this.cScale8=this.cScale8||adjust(this.primaryColor,{h:210}),this.cScale9=this.cScale9||adjust(this.primaryColor,{h:270}),this.cScale10=this.cScale10||adjust(this.primaryColor,{h:300}),this.cScale11=this.cScale11||adjust(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||darken(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||darken(this.tertiaryColor,40);for(let Md=0;Md{this[sd]=qa[sd]}),this.updateColors(),rd.forEach(sd=>{this[sd]=qa[sd]})}},__name(lT,"Theme"),lT),getThemeVariables4=__name(Ra=>{const qa=new Theme4;return qa.calculate(Ra),qa},"getThemeVariables"),uT,Theme5=(uT=class{constructor(){this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=lighten(this.contrast,55),this.background="#ffffff",this.tertiaryColor=adjust(this.primaryColor,{h:-160}),this.primaryBorderColor=mkBorder(this.primaryColor,this.darkMode),this.secondaryBorderColor=mkBorder(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=mkBorder(this.tertiaryColor,this.darkMode),this.primaryTextColor=invert(this.primaryColor),this.secondaryTextColor=invert(this.secondaryColor),this.tertiaryTextColor=invert(this.tertiaryColor),this.lineColor=invert(this.background),this.textColor=invert(this.background),this.mainBkg="#eee",this.secondBkg="calculated",this.lineColor="#666",this.border1="#999",this.border2="calculated",this.note="#ffa",this.text="#333",this.critical="#d42",this.done="#bbb",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="white",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor=this.actorBorder,this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="calculated",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="white",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBkgColor="calculated",this.critBorderColor="calculated",this.todayLineColor="calculated",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){var qa,rd,sd,pd,fd,hd,md,gd,yd,vd,Nd;this.secondBkg=lighten(this.contrast,55),this.border2=this.contrast,this.actorBorder=lighten(this.border1,23),this.actorBkg=this.mainBkg,this.actorTextColor=this.text,this.actorLineColor=this.actorBorder,this.signalColor=this.text,this.signalTextColor=this.text,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.text,this.loopTextColor=this.text,this.noteBorderColor="#999",this.noteBkgColor="#666",this.noteTextColor="#fff",this.cScale0=this.cScale0||"#555",this.cScale1=this.cScale1||"#F4F4F4",this.cScale2=this.cScale2||"#555",this.cScale3=this.cScale3||"#BBB",this.cScale4=this.cScale4||"#777",this.cScale5=this.cScale5||"#999",this.cScale6=this.cScale6||"#DDD",this.cScale7=this.cScale7||"#FFF",this.cScale8=this.cScale8||"#DDD",this.cScale9=this.cScale9||"#BBB",this.cScale10=this.cScale10||"#999",this.cScale11=this.cScale11||"#777";for(let Md=0;Md{this[sd]=qa[sd]}),this.updateColors(),rd.forEach(sd=>{this[sd]=qa[sd]})}},__name(uT,"Theme"),uT),getThemeVariables5=__name(Ra=>{const qa=new Theme5;return qa.calculate(Ra),qa},"getThemeVariables"),themes_default={base:{getThemeVariables},dark:{getThemeVariables:getThemeVariables2},default:{getThemeVariables:getThemeVariables3},forest:{getThemeVariables:getThemeVariables4},neutral:{getThemeVariables:getThemeVariables5}},config_schema_default={flowchart:{useMaxWidth:!0,titleTopMargin:25,subGraphTitleMargin:{top:0,bottom:0},diagramPadding:8,htmlLabels:!0,nodeSpacing:50,rankSpacing:50,curve:"basis",padding:15,defaultRenderer:"dagre-wrapper",wrappingWidth:200},sequence:{useMaxWidth:!0,hideUnusedParticipants:!1,activationWidth:10,diagramMarginX:50,diagramMarginY:10,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",mirrorActors:!0,forceMenus:!1,bottomMarginAdj:1,rightAngles:!1,showSequenceNumbers:!1,actorFontSize:14,actorFontFamily:'"Open Sans", sans-serif',actorFontWeight:400,noteFontSize:14,noteFontFamily:'"trebuchet ms", verdana, arial, sans-serif',noteFontWeight:400,noteAlign:"center",messageFontSize:16,messageFontFamily:'"trebuchet ms", verdana, arial, sans-serif',messageFontWeight:400,wrap:!1,wrapPadding:10,labelBoxWidth:50,labelBoxHeight:20},gantt:{useMaxWidth:!0,titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,rightPadding:75,leftPadding:75,gridLineStartPadding:35,fontSize:11,sectionFontSize:11,numberSectionStyles:4,axisFormat:"%Y-%m-%d",topAxis:!1,displayMode:"",weekday:"sunday"},journey:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"]},class:{useMaxWidth:!0,titleTopMargin:25,arrowMarkerAbsolute:!1,dividerMargin:10,padding:5,textHeight:10,defaultRenderer:"dagre-wrapper",htmlLabels:!1,hideEmptyMembersBox:!1},state:{useMaxWidth:!0,titleTopMargin:25,dividerMargin:10,sizeUnit:5,padding:8,textHeight:10,titleShift:-15,noteMargin:10,forkWidth:70,forkHeight:7,miniPadding:2,fontSizeFactor:5.02,fontSize:24,labelHeight:16,edgeLengthFactor:"20",compositTitleSize:35,radius:5,defaultRenderer:"dagre-wrapper"},er:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:20,layoutDirection:"TB",minEntityWidth:100,minEntityHeight:75,entityPadding:15,stroke:"gray",fill:"honeydew",fontSize:12},pie:{useMaxWidth:!0,textPosition:.75},quadrantChart:{useMaxWidth:!0,chartWidth:500,chartHeight:500,titleFontSize:20,titlePadding:10,quadrantPadding:5,xAxisLabelPadding:5,yAxisLabelPadding:5,xAxisLabelFontSize:16,yAxisLabelFontSize:16,quadrantLabelFontSize:16,quadrantTextTopPadding:5,pointTextPadding:5,pointLabelFontSize:12,pointRadius:5,xAxisPosition:"top",yAxisPosition:"left",quadrantInternalBorderStrokeWidth:1,quadrantExternalBorderStrokeWidth:2},xyChart:{useMaxWidth:!0,width:700,height:500,titleFontSize:20,titlePadding:10,showTitle:!0,xAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2},yAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2},chartOrientation:"vertical",plotReservedSpacePercent:50},requirement:{useMaxWidth:!0,rect_fill:"#f9f9f9",text_color:"#333",rect_border_size:"0.5px",rect_border_color:"#bbb",rect_min_width:200,rect_min_height:200,fontSize:14,rect_padding:10,line_height:20},mindmap:{useMaxWidth:!0,padding:10,maxNodeWidth:200},kanban:{useMaxWidth:!0,padding:8,sectionWidth:200,ticketBaseUrl:""},timeline:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"],disableMulticolor:!1},gitGraph:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:8,nodeLabel:{width:75,height:100,x:-25,y:0},mainBranchName:"main",mainBranchOrder:0,showCommitLabel:!0,showBranches:!0,rotateCommitLabel:!0,parallelCommits:!1,arrowMarkerAbsolute:!1},c4:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,c4ShapeMargin:50,c4ShapePadding:20,width:216,height:60,boxMargin:10,c4ShapeInRow:4,nextLinePaddingX:0,c4BoundaryInRow:2,personFontSize:14,personFontFamily:'"Open Sans", sans-serif',personFontWeight:"normal",external_personFontSize:14,external_personFontFamily:'"Open Sans", sans-serif',external_personFontWeight:"normal",systemFontSize:14,systemFontFamily:'"Open Sans", sans-serif',systemFontWeight:"normal",external_systemFontSize:14,external_systemFontFamily:'"Open Sans", sans-serif',external_systemFontWeight:"normal",system_dbFontSize:14,system_dbFontFamily:'"Open Sans", sans-serif',system_dbFontWeight:"normal",external_system_dbFontSize:14,external_system_dbFontFamily:'"Open Sans", sans-serif',external_system_dbFontWeight:"normal",system_queueFontSize:14,system_queueFontFamily:'"Open Sans", sans-serif',system_queueFontWeight:"normal",external_system_queueFontSize:14,external_system_queueFontFamily:'"Open Sans", sans-serif',external_system_queueFontWeight:"normal",boundaryFontSize:14,boundaryFontFamily:'"Open Sans", sans-serif',boundaryFontWeight:"normal",messageFontSize:12,messageFontFamily:'"Open Sans", sans-serif',messageFontWeight:"normal",containerFontSize:14,containerFontFamily:'"Open Sans", sans-serif',containerFontWeight:"normal",external_containerFontSize:14,external_containerFontFamily:'"Open Sans", sans-serif',external_containerFontWeight:"normal",container_dbFontSize:14,container_dbFontFamily:'"Open Sans", sans-serif',container_dbFontWeight:"normal",external_container_dbFontSize:14,external_container_dbFontFamily:'"Open Sans", sans-serif',external_container_dbFontWeight:"normal",container_queueFontSize:14,container_queueFontFamily:'"Open Sans", sans-serif',container_queueFontWeight:"normal",external_container_queueFontSize:14,external_container_queueFontFamily:'"Open Sans", sans-serif',external_container_queueFontWeight:"normal",componentFontSize:14,componentFontFamily:'"Open Sans", sans-serif',componentFontWeight:"normal",external_componentFontSize:14,external_componentFontFamily:'"Open Sans", sans-serif',external_componentFontWeight:"normal",component_dbFontSize:14,component_dbFontFamily:'"Open Sans", sans-serif',component_dbFontWeight:"normal",external_component_dbFontSize:14,external_component_dbFontFamily:'"Open Sans", sans-serif',external_component_dbFontWeight:"normal",component_queueFontSize:14,component_queueFontFamily:'"Open Sans", sans-serif',component_queueFontWeight:"normal",external_component_queueFontSize:14,external_component_queueFontFamily:'"Open Sans", sans-serif',external_component_queueFontWeight:"normal",wrap:!0,wrapPadding:10,person_bg_color:"#08427B",person_border_color:"#073B6F",external_person_bg_color:"#686868",external_person_border_color:"#8A8A8A",system_bg_color:"#1168BD",system_border_color:"#3C7FC0",system_db_bg_color:"#1168BD",system_db_border_color:"#3C7FC0",system_queue_bg_color:"#1168BD",system_queue_border_color:"#3C7FC0",external_system_bg_color:"#999999",external_system_border_color:"#8A8A8A",external_system_db_bg_color:"#999999",external_system_db_border_color:"#8A8A8A",external_system_queue_bg_color:"#999999",external_system_queue_border_color:"#8A8A8A",container_bg_color:"#438DD5",container_border_color:"#3C7FC0",container_db_bg_color:"#438DD5",container_db_border_color:"#3C7FC0",container_queue_bg_color:"#438DD5",container_queue_border_color:"#3C7FC0",external_container_bg_color:"#B3B3B3",external_container_border_color:"#A6A6A6",external_container_db_bg_color:"#B3B3B3",external_container_db_border_color:"#A6A6A6",external_container_queue_bg_color:"#B3B3B3",external_container_queue_border_color:"#A6A6A6",component_bg_color:"#85BBF0",component_border_color:"#78A8D8",component_db_bg_color:"#85BBF0",component_db_border_color:"#78A8D8",component_queue_bg_color:"#85BBF0",component_queue_border_color:"#78A8D8",external_component_bg_color:"#CCCCCC",external_component_border_color:"#BFBFBF",external_component_db_bg_color:"#CCCCCC",external_component_db_border_color:"#BFBFBF",external_component_queue_bg_color:"#CCCCCC",external_component_queue_border_color:"#BFBFBF"},sankey:{useMaxWidth:!0,width:600,height:400,linkColor:"gradient",nodeAlignment:"justify",showValues:!0,prefix:"",suffix:""},block:{useMaxWidth:!0,padding:8},packet:{useMaxWidth:!0,rowHeight:32,bitWidth:32,bitsPerRow:32,showBits:!0,paddingX:5,paddingY:5},architecture:{useMaxWidth:!0,padding:40,iconSize:80,fontSize:16},theme:"default",look:"classic",handDrawnSeed:0,layout:"dagre",maxTextSize:5e4,maxEdges:500,darkMode:!1,fontFamily:'"trebuchet ms", verdana, arial, sans-serif;',logLevel:5,securityLevel:"strict",startOnLoad:!0,arrowMarkerAbsolute:!1,secure:["secure","securityLevel","startOnLoad","maxTextSize","suppressErrorRendering","maxEdges"],legacyMathML:!1,forceLegacyMathML:!1,deterministicIds:!1,fontSize:16,markdownAutoWrap:!0,suppressErrorRendering:!1},config$1={...config_schema_default,deterministicIDSeed:void 0,elk:{mergeEdges:!1,nodePlacementStrategy:"BRANDES_KOEPF"},themeCSS:void 0,themeVariables:themes_default.default.getThemeVariables(),sequence:{...config_schema_default.sequence,messageFont:__name(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},"messageFont"),noteFont:__name(function(){return{fontFamily:this.noteFontFamily,fontSize:this.noteFontSize,fontWeight:this.noteFontWeight}},"noteFont"),actorFont:__name(function(){return{fontFamily:this.actorFontFamily,fontSize:this.actorFontSize,fontWeight:this.actorFontWeight}},"actorFont")},class:{hideEmptyMembersBox:!1},gantt:{...config_schema_default.gantt,tickInterval:void 0,useWidth:void 0},c4:{...config_schema_default.c4,useWidth:void 0,personFont:__name(function(){return{fontFamily:this.personFontFamily,fontSize:this.personFontSize,fontWeight:this.personFontWeight}},"personFont"),external_personFont:__name(function(){return{fontFamily:this.external_personFontFamily,fontSize:this.external_personFontSize,fontWeight:this.external_personFontWeight}},"external_personFont"),systemFont:__name(function(){return{fontFamily:this.systemFontFamily,fontSize:this.systemFontSize,fontWeight:this.systemFontWeight}},"systemFont"),external_systemFont:__name(function(){return{fontFamily:this.external_systemFontFamily,fontSize:this.external_systemFontSize,fontWeight:this.external_systemFontWeight}},"external_systemFont"),system_dbFont:__name(function(){return{fontFamily:this.system_dbFontFamily,fontSize:this.system_dbFontSize,fontWeight:this.system_dbFontWeight}},"system_dbFont"),external_system_dbFont:__name(function(){return{fontFamily:this.external_system_dbFontFamily,fontSize:this.external_system_dbFontSize,fontWeight:this.external_system_dbFontWeight}},"external_system_dbFont"),system_queueFont:__name(function(){return{fontFamily:this.system_queueFontFamily,fontSize:this.system_queueFontSize,fontWeight:this.system_queueFontWeight}},"system_queueFont"),external_system_queueFont:__name(function(){return{fontFamily:this.external_system_queueFontFamily,fontSize:this.external_system_queueFontSize,fontWeight:this.external_system_queueFontWeight}},"external_system_queueFont"),containerFont:__name(function(){return{fontFamily:this.containerFontFamily,fontSize:this.containerFontSize,fontWeight:this.containerFontWeight}},"containerFont"),external_containerFont:__name(function(){return{fontFamily:this.external_containerFontFamily,fontSize:this.external_containerFontSize,fontWeight:this.external_containerFontWeight}},"external_containerFont"),container_dbFont:__name(function(){return{fontFamily:this.container_dbFontFamily,fontSize:this.container_dbFontSize,fontWeight:this.container_dbFontWeight}},"container_dbFont"),external_container_dbFont:__name(function(){return{fontFamily:this.external_container_dbFontFamily,fontSize:this.external_container_dbFontSize,fontWeight:this.external_container_dbFontWeight}},"external_container_dbFont"),container_queueFont:__name(function(){return{fontFamily:this.container_queueFontFamily,fontSize:this.container_queueFontSize,fontWeight:this.container_queueFontWeight}},"container_queueFont"),external_container_queueFont:__name(function(){return{fontFamily:this.external_container_queueFontFamily,fontSize:this.external_container_queueFontSize,fontWeight:this.external_container_queueFontWeight}},"external_container_queueFont"),componentFont:__name(function(){return{fontFamily:this.componentFontFamily,fontSize:this.componentFontSize,fontWeight:this.componentFontWeight}},"componentFont"),external_componentFont:__name(function(){return{fontFamily:this.external_componentFontFamily,fontSize:this.external_componentFontSize,fontWeight:this.external_componentFontWeight}},"external_componentFont"),component_dbFont:__name(function(){return{fontFamily:this.component_dbFontFamily,fontSize:this.component_dbFontSize,fontWeight:this.component_dbFontWeight}},"component_dbFont"),external_component_dbFont:__name(function(){return{fontFamily:this.external_component_dbFontFamily,fontSize:this.external_component_dbFontSize,fontWeight:this.external_component_dbFontWeight}},"external_component_dbFont"),component_queueFont:__name(function(){return{fontFamily:this.component_queueFontFamily,fontSize:this.component_queueFontSize,fontWeight:this.component_queueFontWeight}},"component_queueFont"),external_component_queueFont:__name(function(){return{fontFamily:this.external_component_queueFontFamily,fontSize:this.external_component_queueFontSize,fontWeight:this.external_component_queueFontWeight}},"external_component_queueFont"),boundaryFont:__name(function(){return{fontFamily:this.boundaryFontFamily,fontSize:this.boundaryFontSize,fontWeight:this.boundaryFontWeight}},"boundaryFont"),messageFont:__name(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},"messageFont")},pie:{...config_schema_default.pie,useWidth:984},xyChart:{...config_schema_default.xyChart,useWidth:void 0},requirement:{...config_schema_default.requirement,useWidth:void 0},packet:{...config_schema_default.packet}},keyify=__name((Ra,qa="")=>Object.keys(Ra).reduce((rd,sd)=>Array.isArray(Ra[sd])?rd:typeof Ra[sd]=="object"&&Ra[sd]!==null?[...rd,qa+sd,...keyify(Ra[sd],"")]:[...rd,qa+sd],[]),"keyify"),configKeys=new Set(keyify(config$1,"")),defaultConfig_default=config$1,sanitizeDirective=__name(Ra=>{if(log$1.debug("sanitizeDirective called with",Ra),!(typeof Ra!="object"||Ra==null)){if(Array.isArray(Ra)){Ra.forEach(qa=>sanitizeDirective(qa));return}for(const qa of Object.keys(Ra)){if(log$1.debug("Checking key",qa),qa.startsWith("__")||qa.includes("proto")||qa.includes("constr")||!configKeys.has(qa)||Ra[qa]==null){log$1.debug("sanitize deleting key: ",qa),delete Ra[qa];continue}if(typeof Ra[qa]=="object"){log$1.debug("sanitizing object",qa),sanitizeDirective(Ra[qa]);continue}const rd=["themeCSS","fontFamily","altFontFamily"];for(const sd of rd)qa.includes(sd)&&(log$1.debug("sanitizing css option",qa),Ra[qa]=sanitizeCss(Ra[qa]))}if(Ra.themeVariables)for(const qa of Object.keys(Ra.themeVariables)){const rd=Ra.themeVariables[qa];rd!=null&&rd.match&&!rd.match(/^[\d "#%(),.;A-Za-z]+$/)&&(Ra.themeVariables[qa]="")}log$1.debug("After sanitization",Ra)}},"sanitizeDirective"),sanitizeCss=__name(Ra=>{let qa=0,rd=0;for(const sd of Ra){if(qa{let rd=assignWithDepth_default({},Ra),sd={};for(const pd of qa)sanitize(pd),sd=assignWithDepth_default(sd,pd);if(rd=assignWithDepth_default(rd,sd),sd.theme&&sd.theme in themes_default){const pd=assignWithDepth_default({},configFromInitialize),fd=assignWithDepth_default(pd.themeVariables||{},sd.themeVariables);rd.theme&&rd.theme in themes_default&&(rd.themeVariables=themes_default[rd.theme].getThemeVariables(fd))}return currentConfig$1=rd,checkConfig(currentConfig$1),currentConfig$1},"updateCurrentConfig"),setSiteConfig=__name(Ra=>(siteConfig=assignWithDepth_default({},defaultConfig),siteConfig=assignWithDepth_default(siteConfig,Ra),Ra.theme&&themes_default[Ra.theme]&&(siteConfig.themeVariables=themes_default[Ra.theme].getThemeVariables(Ra.themeVariables)),updateCurrentConfig(siteConfig,directives),siteConfig),"setSiteConfig"),saveConfigFromInitialize=__name(Ra=>{configFromInitialize=assignWithDepth_default({},Ra)},"saveConfigFromInitialize"),updateSiteConfig=__name(Ra=>(siteConfig=assignWithDepth_default(siteConfig,Ra),updateCurrentConfig(siteConfig,directives),siteConfig),"updateSiteConfig"),getSiteConfig=__name(()=>assignWithDepth_default({},siteConfig),"getSiteConfig"),setConfig=__name(Ra=>(checkConfig(Ra),assignWithDepth_default(currentConfig$1,Ra),getConfig$2()),"setConfig"),getConfig$2=__name(()=>assignWithDepth_default({},currentConfig$1),"getConfig"),sanitize=__name(Ra=>{Ra&&(["secure",...siteConfig.secure??[]].forEach(qa=>{Object.hasOwn(Ra,qa)&&(log$1.debug(`Denied attempt to modify a secure key ${qa}`,Ra[qa]),delete Ra[qa])}),Object.keys(Ra).forEach(qa=>{qa.startsWith("__")&&delete Ra[qa]}),Object.keys(Ra).forEach(qa=>{typeof Ra[qa]=="string"&&(Ra[qa].includes("<")||Ra[qa].includes(">")||Ra[qa].includes("url(data:"))&&delete Ra[qa],typeof Ra[qa]=="object"&&sanitize(Ra[qa])}))},"sanitize"),addDirective=__name(Ra=>{var qa;sanitizeDirective(Ra),Ra.fontFamily&&!((qa=Ra.themeVariables)!=null&&qa.fontFamily)&&(Ra.themeVariables={...Ra.themeVariables,fontFamily:Ra.fontFamily}),directives.push(Ra),updateCurrentConfig(siteConfig,directives)},"addDirective"),reset=__name((Ra=siteConfig)=>{directives=[],updateCurrentConfig(Ra,directives)},"reset"),ConfigWarning={LAZY_LOAD_DEPRECATED:"The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead."},issuedWarnings={},issueWarning=__name(Ra=>{issuedWarnings[Ra]||(log$1.warn(ConfigWarning[Ra]),issuedWarnings[Ra]=!0)},"issueWarning"),checkConfig=__name(Ra=>{Ra&&(Ra.lazyLoadedDiagrams||Ra.loadExternalDiagramsAtStartup)&&issueWarning("LAZY_LOAD_DEPRECATED")},"checkConfig"),lineBreakRegex=//gi,getRows=__name(Ra=>Ra?breakToPlaceholder(Ra).replace(/\\n/g,"#br#").split("#br#"):[""],"getRows"),setupDompurifyHooksIfNotSetup=(()=>{let Ra=!1;return()=>{Ra||(setupDompurifyHooks(),Ra=!0)}})();function setupDompurifyHooks(){const Ra="data-temp-href-target";purify.addHook("beforeSanitizeAttributes",qa=>{qa instanceof Element&&qa.tagName==="A"&&qa.hasAttribute("target")&&qa.setAttribute(Ra,qa.getAttribute("target")??"")}),purify.addHook("afterSanitizeAttributes",qa=>{qa instanceof Element&&qa.tagName==="A"&&qa.hasAttribute(Ra)&&(qa.setAttribute("target",qa.getAttribute(Ra)??""),qa.removeAttribute(Ra),qa.getAttribute("target")==="_blank"&&qa.setAttribute("rel","noopener"))})}__name(setupDompurifyHooks,"setupDompurifyHooks");var removeScript=__name(Ra=>(setupDompurifyHooksIfNotSetup(),purify.sanitize(Ra)),"removeScript"),sanitizeMore=__name((Ra,qa)=>{var rd;if(((rd=qa.flowchart)==null?void 0:rd.htmlLabels)!==!1){const sd=qa.securityLevel;sd==="antiscript"||sd==="strict"?Ra=removeScript(Ra):sd!=="loose"&&(Ra=breakToPlaceholder(Ra),Ra=Ra.replace(//g,">"),Ra=Ra.replace(/=/g,"="),Ra=placeholderToBreak(Ra))}return Ra},"sanitizeMore"),sanitizeText=__name((Ra,qa)=>Ra&&(qa.dompurifyConfig?Ra=purify.sanitize(sanitizeMore(Ra,qa),qa.dompurifyConfig).toString():Ra=purify.sanitize(sanitizeMore(Ra,qa),{FORBID_TAGS:["style"]}).toString(),Ra),"sanitizeText"),sanitizeTextOrArray=__name((Ra,qa)=>typeof Ra=="string"?sanitizeText(Ra,qa):Ra.flat().map(rd=>sanitizeText(rd,qa)),"sanitizeTextOrArray"),hasBreaks=__name(Ra=>lineBreakRegex.test(Ra),"hasBreaks"),splitBreaks=__name(Ra=>Ra.split(lineBreakRegex),"splitBreaks"),placeholderToBreak=__name(Ra=>Ra.replace(/#br#/g,"
"),"placeholderToBreak"),breakToPlaceholder=__name(Ra=>Ra.replace(lineBreakRegex,"#br#"),"breakToPlaceholder"),getUrl=__name(Ra=>{let qa="";return Ra&&(qa=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,qa=qa.replaceAll(/\(/g,"\\("),qa=qa.replaceAll(/\)/g,"\\)")),qa},"getUrl"),evaluate=__name(Ra=>!(Ra===!1||["false","null","0"].includes(String(Ra).trim().toLowerCase())),"evaluate"),getMax=__name(function(...Ra){const qa=Ra.filter(rd=>!isNaN(rd));return Math.max(...qa)},"getMax"),getMin=__name(function(...Ra){const qa=Ra.filter(rd=>!isNaN(rd));return Math.min(...qa)},"getMin"),parseGenericTypes=__name(function(Ra){const qa=Ra.split(/(,)/),rd=[];for(let sd=0;sd0&&sd+1Math.max(0,Ra.split(qa).length-1),"countOccurrence"),shouldCombineSets=__name((Ra,qa)=>{const rd=countOccurrence(Ra,"~"),sd=countOccurrence(qa,"~");return rd===1&&sd===1},"shouldCombineSets"),processSet=__name(Ra=>{const qa=countOccurrence(Ra,"~");let rd=!1;if(qa<=1)return Ra;qa%2!==0&&Ra.startsWith("~")&&(Ra=Ra.substring(1),rd=!0);const sd=[...Ra];let pd=sd.indexOf("~"),fd=sd.lastIndexOf("~");for(;pd!==-1&&fd!==-1&&pd!==fd;)sd[pd]="<",sd[fd]=">",pd=sd.indexOf("~"),fd=sd.lastIndexOf("~");return rd&&sd.unshift("~"),sd.join("")},"processSet"),isMathMLSupported=__name(()=>window.MathMLElement!==void 0,"isMathMLSupported"),katexRegex=/\$\$(.*)\$\$/g,hasKatex=__name(Ra=>{var qa;return(((qa=Ra.match(katexRegex))==null?void 0:qa.length)??0)>0},"hasKatex"),calculateMathMLDimensions=__name(async(Ra,qa)=>{Ra=await renderKatex(Ra,qa);const rd=document.createElement("div");rd.innerHTML=Ra,rd.id="katex-temp",rd.style.visibility="hidden",rd.style.position="absolute",rd.style.top="0";const sd=document.querySelector("body");sd==null||sd.insertAdjacentElement("beforeend",rd);const pd={width:rd.clientWidth,height:rd.clientHeight};return rd.remove(),pd},"calculateMathMLDimensions"),renderKatex=__name(async(Ra,qa)=>{if(!hasKatex(Ra))return Ra;if(!(isMathMLSupported()||qa.legacyMathML||qa.forceLegacyMathML))return Ra.replace(katexRegex,"MathML is unsupported in this environment.");const{default:rd}=await __vitePreload(async()=>{const{default:pd}=await import("./md-katex-LRgywARg.js");return{default:pd}},[]),sd=qa.forceLegacyMathML||!isMathMLSupported()&&qa.legacyMathML?"htmlAndMathml":"mathml";return Ra.split(lineBreakRegex).map(pd=>hasKatex(pd)?`
${pd}
`:`
${pd}
`).join("").replace(katexRegex,(pd,fd)=>rd.renderToString(fd,{throwOnError:!0,displayMode:!0,output:sd}).replace(/\n/g," ").replace(//g,""))},"renderKatex"),common_default={getRows,sanitizeText,sanitizeTextOrArray,hasBreaks,splitBreaks,lineBreakRegex,removeScript,getUrl,evaluate,getMax,getMin},d3Attrs=__name(function(Ra,qa){for(let rd of qa)Ra.attr(rd[0],rd[1])},"d3Attrs"),calculateSvgSizeAttrs=__name(function(Ra,qa,rd){let sd=new Map;return rd?(sd.set("width","100%"),sd.set("style",`max-width: ${qa}px;`)):(sd.set("height",Ra),sd.set("width",qa)),sd},"calculateSvgSizeAttrs"),configureSvgSize=__name(function(Ra,qa,rd,sd){const pd=calculateSvgSizeAttrs(qa,rd,sd);d3Attrs(Ra,pd)},"configureSvgSize"),setupGraphViewbox=__name(function(Ra,qa,rd,sd){const pd=qa.node().getBBox(),fd=pd.width,hd=pd.height;log$1.info(`SVG bounds: ${fd}x${hd}`,pd);let md=0,gd=0;log$1.info(`Graph bounds: ${md}x${gd}`,Ra),md=fd+rd*2,gd=hd+rd*2,log$1.info(`Calculated bounds: ${md}x${gd}`),configureSvgSize(qa,gd,md,sd);const yd=`${pd.x-rd} ${pd.y-rd} ${pd.width+2*rd} ${pd.height+2*rd}`;qa.attr("viewBox",yd)},"setupGraphViewbox"),themes={},getStyles$1=__name((Ra,qa,rd)=>{let sd="";return Ra in themes&&themes[Ra]?sd=themes[Ra](rd):log$1.warn(`No theme found for ${Ra}`),` & { font-family: ${rd.fontFamily}; font-size: ${rd.fontSize}; @@ -968,8 +968,8 @@ res:`,intersect_default.polygon(qa,yd,Md)),intersect_default.polygon(qa,yd,Md)}, M${vd},${Nd-yd} L${vd},${Nd+gd}`;qa.look!=="handDrawn"&&(Fd.roughness=0,Fd.fillStyle="solid");const Gd=Ld.path(Vd,Fd),Ud=pd.insert(()=>Gd,":first-child");return Ud.attr("transform",`translate(${yd/2}, ${yd/2})`),Ud.attr("class","basic label-container"),Md&&qa.look!=="handDrawn"&&Ud.selectAll("path").attr("style",Md),sd&&qa.look!=="handDrawn"&&Ud.selectAll("path").attr("style",sd),hd.attr("transform",`translate(${-(fd.width/2)+yd/2-(fd.x-(fd.left??0))}, ${-(fd.height/2)+yd/2-(fd.y-(fd.top??0))})`),updateNodeBounds(qa,Ud),qa.intersect=function(qd){return intersect_default.polygon(qa,Hd,qd)},pd}__name(windowPane,"windowPane");async function textHelper(Ra,qa,rd,sd,pd=rd.class.padding??12){const fd=sd?0:3,hd=Ra.insert("g").attr("class",getNodeClasses(qa)).attr("id",qa.domId||qa.id);let md=null,gd=null,yd=null,vd=null,Nd=0,Md=0,Ld=0;if(md=hd.insert("g").attr("class","annotation-group text"),qa.annotations.length>0){const Ud=qa.annotations[0];await addText(md,{text:`«${Ud}»`},0),Nd=md.node().getBBox().height}gd=hd.insert("g").attr("class","label-group text"),await addText(gd,qa,0,["font-weight: bolder"]);const Fd=gd.node().getBBox();Md=Fd.height,yd=hd.insert("g").attr("class","members-group text");let Hd=0;for(const Ud of qa.members){const qd=await addText(yd,Ud,Hd,[Ud.parseClassifier()]);Hd+=qd+fd}Ld=yd.node().getBBox().height,Ld<=0&&(Ld=pd/2),vd=hd.insert("g").attr("class","methods-group text");let Vd=0;for(const Ud of qa.methods){const qd=await addText(vd,Ud,Vd,[Ud.parseClassifier()]);Vd+=qd+fd}let Gd=hd.node().getBBox();if(md!==null){const Ud=md.node().getBBox();md.attr("transform",`translate(${-Ud.width/2})`)}return gd.attr("transform",`translate(${-Fd.width/2}, ${Nd})`),Gd=hd.node().getBBox(),yd.attr("transform",`translate(0, ${Nd+Md+pd*2})`),Gd=hd.node().getBBox(),vd.attr("transform",`translate(0, ${Nd+Md+(Ld?Ld+pd*4:pd*2)})`),Gd=hd.node().getBBox(),{shapeSvg:hd,bbox:Gd}}__name(textHelper,"textHelper");async function addText(Ra,qa,rd,sd=[]){const pd=Ra.insert("g").attr("class","label").attr("style",sd.join("; ")),fd=getConfig$2();let hd="useHtmlLabels"in qa?qa.useHtmlLabels:evaluate(fd.htmlLabels)??!0,md="";"text"in qa?md=qa.text:md=qa.label,!hd&&md.startsWith("\\")&&(md=md.substring(1)),hasKatex(md)&&(hd=!0);const gd=await createText(pd,sanitizeText3(decodeEntities(md)),{width:calculateTextWidth(md,fd)+50,classes:"markdown-node-label",useHtmlLabels:hd},fd);let yd,vd=1;if(hd){const Nd=gd.children[0],Md=select(gd);vd=Nd.innerHTML.split("
").length,Nd.innerHTML.includes("")&&(vd+=Nd.innerHTML.split("").length-1);const Ld=Nd.getElementsByTagName("img");if(Ld){const Fd=md.replace(/]*>/g,"").trim()==="";await Promise.all([...Ld].map(Hd=>new Promise(Vd=>{function Gd(){var Ud;if(Hd.style.display="flex",Hd.style.flexDirection="column",Fd){const qd=((Ud=fd.fontSize)==null?void 0:Ud.toString())??window.getComputedStyle(document.body).fontSize,Kd=parseInt(qd,10)*5+"px";Hd.style.minWidth=Kd,Hd.style.maxWidth=Kd}else Hd.style.width="100%";Vd(Hd)}__name(Gd,"setupImage"),setTimeout(()=>{Hd.complete&&Gd()}),Hd.addEventListener("error",Gd),Hd.addEventListener("load",Gd)})))}yd=Nd.getBoundingClientRect(),Md.attr("width",yd.width),Md.attr("height",yd.height)}else{sd.includes("font-weight: bolder")&&select(gd).selectAll("tspan").attr("font-weight",""),vd=gd.children.length;const Nd=gd.children[0];(gd.textContent===""||gd.textContent.includes(">"))&&(Nd.textContent=md[0]+md.substring(1).replaceAll(">",">").replaceAll("<","<").trim(),md[1]===" "&&(Nd.textContent=Nd.textContent[0]+" "+Nd.textContent.substring(1))),Nd.textContent==="undefined"&&(Nd.textContent=""),yd=gd.getBBox()}return pd.attr("transform","translate(0,"+(-yd.height/(2*vd)+rd)+")"),yd.height}__name(addText,"addText");async function classBox(Ra,qa){var pf,mf;const rd=getConfig2(),sd=rd.class.padding??12,pd=sd,fd=qa.useHtmlLabels??evaluate(rd.htmlLabels)??!0,hd=qa;hd.annotations=hd.annotations??[],hd.members=hd.members??[],hd.methods=hd.methods??[];const{shapeSvg:md,bbox:gd}=await textHelper(Ra,qa,rd,fd,pd),{labelStyles:yd,nodeStyles:vd}=styles2String(qa);qa.labelStyle=yd,qa.cssStyles=hd.styles||"";const Nd=((pf=hd.styles)==null?void 0:pf.join(";"))||vd||"";qa.cssStyles||(qa.cssStyles=Nd.replaceAll("!important","").split(";"));const Md=hd.members.length===0&&hd.methods.length===0&&!((mf=rd.class)!=null&&mf.hideEmptyMembersBox),Ld=at$2.svg(md),Fd=userNodeOverrides(qa,{});qa.look!=="handDrawn"&&(Fd.roughness=0,Fd.fillStyle="solid");const Hd=gd.width;let Vd=gd.height;hd.members.length===0&&hd.methods.length===0?Vd+=pd:hd.members.length>0&&hd.methods.length===0&&(Vd+=pd*2);const Gd=-Hd/2,Ud=-Vd/2,qd=Ld.rectangle(Gd-sd,Ud-sd-(Md?sd:hd.members.length===0&&hd.methods.length===0?-sd/2:0),Hd+2*sd,Vd+2*sd+(Md?sd*2:hd.members.length===0&&hd.methods.length===0?-sd:0),Fd),Wd=md.insert(()=>qd,":first-child");Wd.attr("class","basic label-container");const Kd=Wd.node().getBBox();md.selectAll(".text").each((_f,xf,Cf)=>{var xh;const If=select(Cf[xf]),Sf=If.attr("transform");let wf=0;if(Sf){const Mh=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(Sf);Mh&&(wf=parseFloat(Mh[2]))}let Pf=wf+Ud+sd-(Md?sd:hd.members.length===0&&hd.methods.length===0?-sd/2:0);fd||(Pf-=4);let lh=Gd;(If.attr("class").includes("label-group")||If.attr("class").includes("annotation-group"))&&(lh=-((xh=If.node())==null?void 0:xh.getBBox().width)/2||0,md.selectAll("text").each(function(Eh,Mh,dh){window.getComputedStyle(dh[Mh]).textAnchor==="middle"&&(lh=0)})),If.attr("transform",`translate(${lh}, ${Pf})`)});const Xd=md.select(".annotation-group").node().getBBox().height-(Md?sd/2:0)||0,df=md.select(".label-group").node().getBBox().height-(Md?sd/2:0)||0,Ef=md.select(".members-group").node().getBBox().height-(Md?sd/2:0)||0;if(hd.members.length>0||hd.methods.length>0||Md){const _f=Ld.line(Kd.x,Xd+df+Ud+sd,Kd.x+Kd.width,Xd+df+Ud+sd,Fd);md.insert(()=>_f).attr("class","divider").attr("style",Nd)}if(Md||hd.members.length>0||hd.methods.length>0){const _f=Ld.line(Kd.x,Xd+df+Ef+Ud+pd*2+sd,Kd.x+Kd.width,Xd+df+Ef+Ud+sd+pd*2,Fd);md.insert(()=>_f).attr("class","divider").attr("style",Nd)}if(hd.look!=="handDrawn"&&md.selectAll("path").attr("style",Nd),Wd.select(":nth-child(2)").attr("style",Nd),md.selectAll(".divider").select("path").attr("style",Nd),qa.labelStyle?md.selectAll("span").attr("style",qa.labelStyle):md.selectAll("span").attr("style",Nd),!fd){const _f=RegExp(/color\s*:\s*([^;]*)/),xf=_f.exec(Nd);if(xf){const Cf=xf[0].replace("color","fill");md.selectAll("tspan").attr("style",Cf)}else if(yd){const Cf=_f.exec(yd);if(Cf){const If=Cf[0].replace("color","fill");md.selectAll("tspan").attr("style",If)}}}return updateNodeBounds(qa,Wd),qa.intersect=function(_f){return intersect_default.rect(qa,_f)},md}__name(classBox,"classBox");var colorFromPriority=__name(Ra=>{switch(Ra){case"Very High":return"red";case"High":return"orange";case"Medium":return null;case"Low":return"blue";case"Very Low":return"lightblue"}},"colorFromPriority");async function kanbanItem(Ra,qa,{config:rd}){var xf,Cf;const{labelStyles:sd,nodeStyles:pd}=styles2String(qa);qa.labelStyle=sd||"";const fd=10,hd=qa.width;qa.width=(qa.width??200)-10;const{shapeSvg:md,bbox:gd,label:yd}=await labelHelper(Ra,qa,getNodeClasses(qa)),vd=qa.padding||10;let Nd="",Md;"ticket"in qa&&qa.ticket&&((xf=rd==null?void 0:rd.kanban)!=null&&xf.ticketBaseUrl)&&(Nd=(Cf=rd==null?void 0:rd.kanban)==null?void 0:Cf.ticketBaseUrl.replace("#TICKET#",qa.ticket),Md=md.insert("svg:a",":first-child").attr("class","kanban-ticket-link").attr("xlink:href",Nd).attr("target","_blank"));const Ld={useHtmlLabels:qa.useHtmlLabels,labelStyle:qa.labelStyle||"",width:qa.width,img:qa.img,padding:qa.padding||8,centerLabel:!1};let Fd,Hd;Md?{label:Fd,bbox:Hd}=await insertLabel(Md,"ticket"in qa&&qa.ticket||"",Ld):{label:Fd,bbox:Hd}=await insertLabel(md,"ticket"in qa&&qa.ticket||"",Ld);const{label:Vd,bbox:Gd}=await insertLabel(md,"assigned"in qa&&qa.assigned||"",Ld);qa.width=hd;const Ud=10,qd=(qa==null?void 0:qa.width)||0,Wd=Math.max(Hd.height,Gd.height)/2,Kd=Math.max(gd.height+Ud*2,(qa==null?void 0:qa.height)||0)+Wd,Xd=-qd/2,df=-Kd/2;yd.attr("transform","translate("+(vd-qd/2)+", "+(-Wd-gd.height/2)+")"),Fd.attr("transform","translate("+(vd-qd/2)+", "+(-Wd+gd.height/2)+")"),Vd.attr("transform","translate("+(vd+qd/2-Gd.width-2*fd)+", "+(-Wd+gd.height/2)+")");let Ef;const{rx:pf,ry:mf}=qa,{cssStyles:_f}=qa;if(qa.look==="handDrawn"){const If=at$2.svg(md),Sf=userNodeOverrides(qa,{}),wf=pf||mf?If.path(createRoundedRectPathD(Xd,df,qd,Kd,pf||0),Sf):If.rectangle(Xd,df,qd,Kd,Sf);Ef=md.insert(()=>wf,":first-child"),Ef.attr("class","basic label-container").attr("style",_f||null)}else{Ef=md.insert("rect",":first-child"),Ef.attr("class","basic label-container __APA__").attr("style",pd).attr("rx",pf??5).attr("ry",mf??5).attr("x",Xd).attr("y",df).attr("width",qd).attr("height",Kd);const If="priority"in qa&&qa.priority;if(If){const Sf=md.append("line"),wf=Xd+2,Pf=df+Math.floor((pf??0)/2),lh=df+Kd-Math.floor((pf??0)/2);Sf.attr("x1",wf).attr("y1",Pf).attr("x2",wf).attr("y2",lh).attr("stroke-width","4").attr("stroke",colorFromPriority(If))}}return updateNodeBounds(qa,Ef),qa.height=Kd,qa.intersect=function(If){return intersect_default.rect(qa,If)},md}__name(kanbanItem,"kanbanItem");var shapesDefs=[{semanticName:"Process",name:"Rectangle",shortName:"rect",description:"Standard process shape",aliases:["proc","process","rectangle"],internalAliases:["squareRect"],handler:squareRect2},{semanticName:"Event",name:"Rounded Rectangle",shortName:"rounded",description:"Represents an event",aliases:["event"],internalAliases:["roundedRect"],handler:roundedRect},{semanticName:"Terminal Point",name:"Stadium",shortName:"stadium",description:"Terminal point",aliases:["terminal","pill"],handler:stadium},{semanticName:"Subprocess",name:"Framed Rectangle",shortName:"fr-rect",description:"Subprocess",aliases:["subprocess","subproc","framed-rectangle","subroutine"],handler:subroutine},{semanticName:"Database",name:"Cylinder",shortName:"cyl",description:"Database storage",aliases:["db","database","cylinder"],handler:cylinder},{semanticName:"Start",name:"Circle",shortName:"circle",description:"Starting point",aliases:["circ"],handler:circle$1},{semanticName:"Decision",name:"Diamond",shortName:"diam",description:"Decision-making step",aliases:["decision","diamond","question"],handler:question},{semanticName:"Prepare Conditional",name:"Hexagon",shortName:"hex",description:"Preparation or condition step",aliases:["hexagon","prepare"],handler:hexagon},{semanticName:"Data Input/Output",name:"Lean Right",shortName:"lean-r",description:"Represents input or output",aliases:["lean-right","in-out"],internalAliases:["lean_right"],handler:lean_right},{semanticName:"Data Input/Output",name:"Lean Left",shortName:"lean-l",description:"Represents output or input",aliases:["lean-left","out-in"],internalAliases:["lean_left"],handler:lean_left},{semanticName:"Priority Action",name:"Trapezoid Base Bottom",shortName:"trap-b",description:"Priority action",aliases:["priority","trapezoid-bottom","trapezoid"],handler:trapezoid},{semanticName:"Manual Operation",name:"Trapezoid Base Top",shortName:"trap-t",description:"Represents a manual task",aliases:["manual","trapezoid-top","inv-trapezoid"],internalAliases:["inv_trapezoid"],handler:inv_trapezoid},{semanticName:"Stop",name:"Double Circle",shortName:"dbl-circ",description:"Represents a stop point",aliases:["double-circle"],internalAliases:["doublecircle"],handler:doublecircle},{semanticName:"Text Block",name:"Text Block",shortName:"text",description:"Text block",handler:text},{semanticName:"Card",name:"Notched Rectangle",shortName:"notch-rect",description:"Represents a card",aliases:["card","notched-rectangle"],handler:card},{semanticName:"Lined/Shaded Process",name:"Lined Rectangle",shortName:"lin-rect",description:"Lined process shape",aliases:["lined-rectangle","lined-process","lin-proc","shaded-process"],handler:shadedProcess},{semanticName:"Start",name:"Small Circle",shortName:"sm-circ",description:"Small starting point",aliases:["start","small-circle"],internalAliases:["stateStart"],handler:stateStart},{semanticName:"Stop",name:"Framed Circle",shortName:"fr-circ",description:"Stop point",aliases:["stop","framed-circle"],internalAliases:["stateEnd"],handler:stateEnd},{semanticName:"Fork/Join",name:"Filled Rectangle",shortName:"fork",description:"Fork or join in process flow",aliases:["join"],internalAliases:["forkJoin"],handler:forkJoin},{semanticName:"Collate",name:"Hourglass",shortName:"hourglass",description:"Represents a collate operation",aliases:["hourglass","collate"],handler:hourglass},{semanticName:"Comment",name:"Curly Brace",shortName:"brace",description:"Adds a comment",aliases:["comment","brace-l"],handler:curlyBraceLeft},{semanticName:"Comment Right",name:"Curly Brace",shortName:"brace-r",description:"Adds a comment",handler:curlyBraceRight},{semanticName:"Comment with braces on both sides",name:"Curly Braces",shortName:"braces",description:"Adds a comment",handler:curlyBraces},{semanticName:"Com Link",name:"Lightning Bolt",shortName:"bolt",description:"Communication link",aliases:["com-link","lightning-bolt"],handler:lightningBolt},{semanticName:"Document",name:"Document",shortName:"doc",description:"Represents a document",aliases:["doc","document"],handler:waveEdgedRectangle},{semanticName:"Delay",name:"Half-Rounded Rectangle",shortName:"delay",description:"Represents a delay",aliases:["half-rounded-rectangle"],handler:halfRoundedRectangle},{semanticName:"Direct Access Storage",name:"Horizontal Cylinder",shortName:"h-cyl",description:"Direct access storage",aliases:["das","horizontal-cylinder"],handler:tiltedCylinder},{semanticName:"Disk Storage",name:"Lined Cylinder",shortName:"lin-cyl",description:"Disk storage",aliases:["disk","lined-cylinder"],handler:linedCylinder},{semanticName:"Display",name:"Curved Trapezoid",shortName:"curv-trap",description:"Represents a display",aliases:["curved-trapezoid","display"],handler:curvedTrapezoid},{semanticName:"Divided Process",name:"Divided Rectangle",shortName:"div-rect",description:"Divided process shape",aliases:["div-proc","divided-rectangle","divided-process"],handler:dividedRectangle},{semanticName:"Extract",name:"Triangle",shortName:"tri",description:"Extraction process",aliases:["extract","triangle"],handler:triangle},{semanticName:"Internal Storage",name:"Window Pane",shortName:"win-pane",description:"Internal storage",aliases:["internal-storage","window-pane"],handler:windowPane},{semanticName:"Junction",name:"Filled Circle",shortName:"f-circ",description:"Junction point",aliases:["junction","filled-circle"],handler:filledCircle},{semanticName:"Loop Limit",name:"Trapezoidal Pentagon",shortName:"notch-pent",description:"Loop limit step",aliases:["loop-limit","notched-pentagon"],handler:trapezoidalPentagon},{semanticName:"Manual File",name:"Flipped Triangle",shortName:"flip-tri",description:"Manual file operation",aliases:["manual-file","flipped-triangle"],handler:flippedTriangle},{semanticName:"Manual Input",name:"Sloped Rectangle",shortName:"sl-rect",description:"Manual input step",aliases:["manual-input","sloped-rectangle"],handler:slopedRect},{semanticName:"Multi-Document",name:"Stacked Document",shortName:"docs",description:"Multiple documents",aliases:["documents","st-doc","stacked-document"],handler:multiWaveEdgedRectangle},{semanticName:"Multi-Process",name:"Stacked Rectangle",shortName:"st-rect",description:"Multiple processes",aliases:["procs","processes","stacked-rectangle"],handler:multiRect},{semanticName:"Stored Data",name:"Bow Tie Rectangle",shortName:"bow-rect",description:"Stored data",aliases:["stored-data","bow-tie-rectangle"],handler:bowTieRect},{semanticName:"Summary",name:"Crossed Circle",shortName:"cross-circ",description:"Summary",aliases:["summary","crossed-circle"],handler:crossedCircle},{semanticName:"Tagged Document",name:"Tagged Document",shortName:"tag-doc",description:"Tagged document",aliases:["tag-doc","tagged-document"],handler:taggedWaveEdgedRectangle},{semanticName:"Tagged Process",name:"Tagged Rectangle",shortName:"tag-rect",description:"Tagged process",aliases:["tagged-rectangle","tag-proc","tagged-process"],handler:taggedRect},{semanticName:"Paper Tape",name:"Flag",shortName:"flag",description:"Paper tape",aliases:["paper-tape"],handler:waveRectangle},{semanticName:"Odd",name:"Odd",shortName:"odd",description:"Odd shape",internalAliases:["rect_left_inv_arrow"],handler:rect_left_inv_arrow},{semanticName:"Lined Document",name:"Lined Document",shortName:"lin-doc",description:"Lined document",aliases:["lined-document"],handler:linedWaveEdgedRect}],generateShapeMap=__name(()=>{const qa=[...Object.entries({state:state$1,choice,note,rectWithTitle,labelRect,iconSquare,iconCircle,icon,iconRounded,imageSquare,anchor,kanbanItem,classBox}),...shapesDefs.flatMap(rd=>[rd.shortName,..."aliases"in rd?rd.aliases:[],..."internalAliases"in rd?rd.internalAliases:[]].map(pd=>[pd,rd.handler]))];return Object.fromEntries(qa)},"generateShapeMap"),shapes2=generateShapeMap();function isValidShape(Ra){return Ra in shapes2}__name(isValidShape,"isValidShape");var nodeElems=new Map;async function insertNode(Ra,qa,rd){let sd,pd;qa.shape==="rect"&&(qa.rx&&qa.ry?qa.shape="roundedRect":qa.shape="squareRect");const fd=qa.shape?shapes2[qa.shape]:void 0;if(!fd)throw new Error(`No such shape: ${qa.shape}. Please check your syntax.`);if(qa.link){let hd;rd.config.securityLevel==="sandbox"?hd="_top":qa.linkTarget&&(hd=qa.linkTarget||"_blank"),sd=Ra.insert("svg:a").attr("xlink:href",qa.link).attr("target",hd??null),pd=await fd(sd,qa,rd)}else pd=await fd(Ra,qa,rd),sd=pd;return qa.tooltip&&pd.attr("title",qa.tooltip),nodeElems.set(qa.id,sd),qa.haveCallback&&sd.attr("class",sd.attr("class")+" clickable"),sd}__name(insertNode,"insertNode");var setNodeElem=__name((Ra,qa)=>{nodeElems.set(qa.id,Ra)},"setNodeElem"),clear2=__name(()=>{nodeElems.clear()},"clear"),positionNode=__name(Ra=>{const qa=nodeElems.get(Ra.id);log$1.trace("Transforming node",Ra.diff,Ra,"translate("+(Ra.x-Ra.width/2-5)+", "+Ra.width/2+")");const rd=8,sd=Ra.diff||0;return Ra.clusterNode?qa.attr("transform","translate("+(Ra.x+sd-Ra.width/2)+", "+(Ra.y-Ra.height/2-rd)+")"):qa.attr("transform","translate("+Ra.x+", "+Ra.y+")"),sd},"positionNode"),markerOffsets={aggregation:18,extension:18,composition:18,dependency:6,lollipop:13.5,arrow_point:4};function calculateDeltaAndAngle(Ra,qa){if(Ra===void 0||qa===void 0)return{angle:0,deltaX:0,deltaY:0};Ra=pointTransformer(Ra),qa=pointTransformer(qa);const[rd,sd]=[Ra.x,Ra.y],[pd,fd]=[qa.x,qa.y],hd=pd-rd,md=fd-sd;return{angle:Math.atan(md/hd),deltaX:hd,deltaY:md}}__name(calculateDeltaAndAngle,"calculateDeltaAndAngle");var pointTransformer=__name(Ra=>Array.isArray(Ra)?{x:Ra[0],y:Ra[1]}:Ra,"pointTransformer"),getLineFunctionsWithOffset=__name(Ra=>({x:__name(function(qa,rd,sd){let pd=0;const fd=pointTransformer(sd[0]).x=0?1:-1)}else if(rd===sd.length-1&&Object.hasOwn(markerOffsets,Ra.arrowTypeEnd)){const{angle:Ld,deltaX:Fd}=calculateDeltaAndAngle(sd[sd.length-1],sd[sd.length-2]);pd=markerOffsets[Ra.arrowTypeEnd]*Math.cos(Ld)*(Fd>=0?1:-1)}const hd=Math.abs(pointTransformer(qa).x-pointTransformer(sd[sd.length-1]).x),md=Math.abs(pointTransformer(qa).y-pointTransformer(sd[sd.length-1]).y),gd=Math.abs(pointTransformer(qa).x-pointTransformer(sd[0]).x),yd=Math.abs(pointTransformer(qa).y-pointTransformer(sd[0]).y),vd=markerOffsets[Ra.arrowTypeStart],Nd=markerOffsets[Ra.arrowTypeEnd],Md=1;if(hd0&&md0&&yd=0?1:-1)}else if(rd===sd.length-1&&Object.hasOwn(markerOffsets,Ra.arrowTypeEnd)){const{angle:Ld,deltaY:Fd}=calculateDeltaAndAngle(sd[sd.length-1],sd[sd.length-2]);pd=markerOffsets[Ra.arrowTypeEnd]*Math.abs(Math.sin(Ld))*(Fd>=0?1:-1)}const hd=Math.abs(pointTransformer(qa).y-pointTransformer(sd[sd.length-1]).y),md=Math.abs(pointTransformer(qa).x-pointTransformer(sd[sd.length-1]).x),gd=Math.abs(pointTransformer(qa).y-pointTransformer(sd[0]).y),yd=Math.abs(pointTransformer(qa).x-pointTransformer(sd[0]).x),vd=markerOffsets[Ra.arrowTypeStart],Nd=markerOffsets[Ra.arrowTypeEnd],Md=1;if(hd0&&md0&&yd{qa.arrowTypeStart&&addEdgeMarker(Ra,"start",qa.arrowTypeStart,rd,sd,pd),qa.arrowTypeEnd&&addEdgeMarker(Ra,"end",qa.arrowTypeEnd,rd,sd,pd)},"addEdgeMarkers"),arrowTypesMap={arrow_cross:"cross",arrow_point:"point",arrow_barb:"barb",arrow_circle:"circle",aggregation:"aggregation",extension:"extension",composition:"composition",dependency:"dependency",lollipop:"lollipop"},addEdgeMarker=__name((Ra,qa,rd,sd,pd,fd)=>{const hd=arrowTypesMap[rd];if(!hd){log$1.warn(`Unknown arrow type: ${rd}`);return}const md=qa==="start"?"Start":"End";Ra.attr(`marker-${qa}`,`url(${sd}#${pd}_${fd}-${hd}${md})`)},"addEdgeMarker"),edgeLabels=new Map,terminalLabels=new Map,clear=__name(()=>{edgeLabels.clear(),terminalLabels.clear()},"clear"),getLabelStyles=__name(Ra=>Ra?Ra.reduce((rd,sd)=>rd+";"+sd,""):"","getLabelStyles"),insertEdgeLabel=__name(async(Ra,qa)=>{let rd=evaluate(getConfig2().flowchart.htmlLabels);const sd=await createText(Ra,qa.label,{style:getLabelStyles(qa.labelStyle),useHtmlLabels:rd,addSvgBackground:!0,isNode:!1});log$1.info("abc82",qa,qa.labelType);const pd=Ra.insert("g").attr("class","edgeLabel"),fd=pd.insert("g").attr("class","label");fd.node().appendChild(sd);let hd=sd.getBBox();if(rd){const gd=sd.children[0],yd=select(sd);hd=gd.getBoundingClientRect(),yd.attr("width",hd.width),yd.attr("height",hd.height)}fd.attr("transform","translate("+-hd.width/2+", "+-hd.height/2+")"),edgeLabels.set(qa.id,pd),qa.width=hd.width,qa.height=hd.height;let md;if(qa.startLabelLeft){const gd=await createLabel_default(qa.startLabelLeft,getLabelStyles(qa.labelStyle)),yd=Ra.insert("g").attr("class","edgeTerminals"),vd=yd.insert("g").attr("class","inner");md=vd.node().appendChild(gd);const Nd=gd.getBBox();vd.attr("transform","translate("+-Nd.width/2+", "+-Nd.height/2+")"),terminalLabels.get(qa.id)||terminalLabels.set(qa.id,{}),terminalLabels.get(qa.id).startLeft=yd,setTerminalWidth(md,qa.startLabelLeft)}if(qa.startLabelRight){const gd=await createLabel_default(qa.startLabelRight,getLabelStyles(qa.labelStyle)),yd=Ra.insert("g").attr("class","edgeTerminals"),vd=yd.insert("g").attr("class","inner");md=yd.node().appendChild(gd),vd.node().appendChild(gd);const Nd=gd.getBBox();vd.attr("transform","translate("+-Nd.width/2+", "+-Nd.height/2+")"),terminalLabels.get(qa.id)||terminalLabels.set(qa.id,{}),terminalLabels.get(qa.id).startRight=yd,setTerminalWidth(md,qa.startLabelRight)}if(qa.endLabelLeft){const gd=await createLabel_default(qa.endLabelLeft,getLabelStyles(qa.labelStyle)),yd=Ra.insert("g").attr("class","edgeTerminals"),vd=yd.insert("g").attr("class","inner");md=vd.node().appendChild(gd);const Nd=gd.getBBox();vd.attr("transform","translate("+-Nd.width/2+", "+-Nd.height/2+")"),yd.node().appendChild(gd),terminalLabels.get(qa.id)||terminalLabels.set(qa.id,{}),terminalLabels.get(qa.id).endLeft=yd,setTerminalWidth(md,qa.endLabelLeft)}if(qa.endLabelRight){const gd=await createLabel_default(qa.endLabelRight,getLabelStyles(qa.labelStyle)),yd=Ra.insert("g").attr("class","edgeTerminals"),vd=yd.insert("g").attr("class","inner");md=vd.node().appendChild(gd);const Nd=gd.getBBox();vd.attr("transform","translate("+-Nd.width/2+", "+-Nd.height/2+")"),yd.node().appendChild(gd),terminalLabels.get(qa.id)||terminalLabels.set(qa.id,{}),terminalLabels.get(qa.id).endRight=yd,setTerminalWidth(md,qa.endLabelRight)}return sd},"insertEdgeLabel");function setTerminalWidth(Ra,qa){getConfig2().flowchart.htmlLabels&&Ra&&(Ra.style.width=qa.length*9+"px",Ra.style.height="12px")}__name(setTerminalWidth,"setTerminalWidth");var positionEdgeLabel=__name((Ra,qa)=>{log$1.debug("Moving label abc88 ",Ra.id,Ra.label,edgeLabels.get(Ra.id),qa);let rd=qa.updatedPath?qa.updatedPath:qa.originalPath;const sd=getConfig2(),{subGraphTitleTotalMargin:pd}=getSubGraphTitleMargins(sd);if(Ra.label){const fd=edgeLabels.get(Ra.id);let hd=Ra.x,md=Ra.y;if(rd){const gd=utils_default.calcLabelPosition(rd);log$1.debug("Moving label "+Ra.label+" from (",hd,",",md,") to (",gd.x,",",gd.y,") abc88"),qa.updatedPath&&(hd=gd.x,md=gd.y)}fd.attr("transform",`translate(${hd}, ${md+pd/2})`)}if(Ra.startLabelLeft){const fd=terminalLabels.get(Ra.id).startLeft;let hd=Ra.x,md=Ra.y;if(rd){const gd=utils_default.calcTerminalLabelPosition(Ra.arrowTypeStart?10:0,"start_left",rd);hd=gd.x,md=gd.y}fd.attr("transform",`translate(${hd}, ${md})`)}if(Ra.startLabelRight){const fd=terminalLabels.get(Ra.id).startRight;let hd=Ra.x,md=Ra.y;if(rd){const gd=utils_default.calcTerminalLabelPosition(Ra.arrowTypeStart?10:0,"start_right",rd);hd=gd.x,md=gd.y}fd.attr("transform",`translate(${hd}, ${md})`)}if(Ra.endLabelLeft){const fd=terminalLabels.get(Ra.id).endLeft;let hd=Ra.x,md=Ra.y;if(rd){const gd=utils_default.calcTerminalLabelPosition(Ra.arrowTypeEnd?10:0,"end_left",rd);hd=gd.x,md=gd.y}fd.attr("transform",`translate(${hd}, ${md})`)}if(Ra.endLabelRight){const fd=terminalLabels.get(Ra.id).endRight;let hd=Ra.x,md=Ra.y;if(rd){const gd=utils_default.calcTerminalLabelPosition(Ra.arrowTypeEnd?10:0,"end_right",rd);hd=gd.x,md=gd.y}fd.attr("transform",`translate(${hd}, ${md})`)}},"positionEdgeLabel"),outsideNode=__name((Ra,qa)=>{const rd=Ra.x,sd=Ra.y,pd=Math.abs(qa.x-rd),fd=Math.abs(qa.y-sd),hd=Ra.width/2,md=Ra.height/2;return pd>=hd||fd>=md},"outsideNode"),intersection=__name((Ra,qa,rd)=>{log$1.debug(`intersection calc abc89: outsidePoint: ${JSON.stringify(qa)} insidePoint : ${JSON.stringify(rd)} - node : x:${Ra.x} y:${Ra.y} w:${Ra.width} h:${Ra.height}`);const sd=Ra.x,pd=Ra.y,fd=Math.abs(sd-rd.x),hd=Ra.width/2;let md=rd.xMath.abs(sd-qa.x)*gd){let Nd=rd.y{log$1.warn("abc88 cutPathAtIntersect",Ra,qa);let rd=[],sd=Ra[0],pd=!1;return Ra.forEach(fd=>{if(log$1.info("abc88 checking point",fd,qa),!outsideNode(qa,fd)&&!pd){const hd=intersection(qa,sd,fd);log$1.debug("abc88 inside",fd,sd,hd),log$1.debug("abc88 intersection",hd,qa);let md=!1;rd.forEach(gd=>{md=md||gd.x===hd.x&&gd.y===hd.y}),rd.some(gd=>gd.x===hd.x&&gd.y===hd.y)?log$1.warn("abc88 no intersect",hd,rd):rd.push(hd),pd=!0}else log$1.warn("abc88 outside",fd,sd),sd=fd,pd||rd.push(fd)}),log$1.debug("returning points",rd),rd},"cutPathAtIntersect");function extractCornerPoints(Ra){const qa=[],rd=[];for(let sd=1;sd5&&Math.abs(fd.y-pd.y)>5||pd.y===fd.y&&fd.x===hd.x&&Math.abs(fd.x-pd.x)>5&&Math.abs(fd.y-hd.y)>5)&&(qa.push(fd),rd.push(sd))}return{cornerPoints:qa,cornerPointPositions:rd}}__name(extractCornerPoints,"extractCornerPoints");var findAdjacentPoint=__name(function(Ra,qa,rd){const sd=qa.x-Ra.x,pd=qa.y-Ra.y,fd=Math.sqrt(sd*sd+pd*pd),hd=rd/fd;return{x:qa.x-hd*sd,y:qa.y-hd*pd}},"findAdjacentPoint"),fixCorners=__name(function(Ra){const{cornerPointPositions:qa}=extractCornerPoints(Ra),rd=[];for(let sd=0;sd10&&Math.abs(fd.y-pd.y)>=10){log$1.debug("Corner point fixing",Math.abs(fd.x-pd.x),Math.abs(fd.y-pd.y));const Ld=5;hd.x===md.x?Md={x:yd<0?md.x-Ld+Nd:md.x+Ld-Nd,y:vd<0?md.y-Nd:md.y+Nd}:Md={x:yd<0?md.x-Nd:md.x+Nd,y:vd<0?md.y-Ld+Nd:md.y+Ld-Nd}}else log$1.debug("Corner point skipping fixing",Math.abs(fd.x-pd.x),Math.abs(fd.y-pd.y));rd.push(Md,gd)}else rd.push(Ra[sd]);return rd},"fixCorners"),insertEdge=__name(function(Ra,qa,rd,sd,pd,fd,hd){const{handDrawnSeed:md}=getConfig2();let gd=qa.points,yd=!1;const vd=pd;var Nd=fd;Nd.intersect&&vd.intersect&&(gd=gd.slice(1,qa.points.length-1),gd.unshift(vd.intersect(gd[0])),log$1.debug("Last point APA12",qa.start,"-->",qa.end,gd[gd.length-1],Nd,Nd.intersect(gd[gd.length-1])),gd.push(Nd.intersect(gd[gd.length-1]))),qa.toCluster&&(log$1.info("to cluster abc88",rd.get(qa.toCluster)),gd=cutPathAtIntersect(qa.points,rd.get(qa.toCluster).node),yd=!0),qa.fromCluster&&(log$1.debug("from cluster abc88",rd.get(qa.fromCluster),JSON.stringify(gd,null,2)),gd=cutPathAtIntersect(gd.reverse(),rd.get(qa.fromCluster).node).reverse(),yd=!0);let Md=gd.filter(df=>!Number.isNaN(df.y));Md=fixCorners(Md);let Ld=curveBasis;qa.curve&&(Ld=qa.curve);const{x:Fd,y:Hd}=getLineFunctionsWithOffset(qa),Vd=line$1().x(Fd).y(Hd).curve(Ld);let Gd;switch(qa.thickness){case"normal":Gd="edge-thickness-normal";break;case"thick":Gd="edge-thickness-thick";break;case"invisible":Gd="edge-thickness-invisible";break;default:Gd="edge-thickness-normal"}switch(qa.pattern){case"solid":Gd+=" edge-pattern-solid";break;case"dotted":Gd+=" edge-pattern-dotted";break;case"dashed":Gd+=" edge-pattern-dashed";break;default:Gd+=" edge-pattern-solid"}let Ud,qd=Vd(Md);const Wd=Array.isArray(qa.style)?qa.style:[qa.style];if(qa.look==="handDrawn"){const df=at$2.svg(Ra);Object.assign([],Md);const Ef=df.path(qd,{roughness:.3,seed:md});Gd+=" transition",Ud=select(Ef).select("path").attr("id",qa.id).attr("class"," "+Gd+(qa.classes?" "+qa.classes:"")).attr("style",Wd?Wd.reduce((mf,_f)=>mf+";"+_f,""):"");let pf=Ud.attr("d");Ud.attr("d",pf),Ra.node().appendChild(Ud.node())}else Ud=Ra.append("path").attr("d",qd).attr("id",qa.id).attr("class"," "+Gd+(qa.classes?" "+qa.classes:"")).attr("style",Wd?Wd.reduce((df,Ef)=>df+";"+Ef,""):"");let Kd="";(getConfig2().flowchart.arrowMarkerAbsolute||getConfig2().state.arrowMarkerAbsolute)&&(Kd=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,Kd=Kd.replace(/\(/g,"\\(").replace(/\)/g,"\\)")),log$1.info("arrowTypeStart",qa.arrowTypeStart),log$1.info("arrowTypeEnd",qa.arrowTypeEnd),addEdgeMarkers(Ud,qa,Kd,hd,sd);let Xd={};return yd&&(Xd.updatedPath=gd),Xd.originalPath=qa.points,Xd},"insertEdge"),insertMarkers=__name((Ra,qa,rd,sd)=>{qa.forEach(pd=>{markers[pd](Ra,rd,sd)})},"insertMarkers"),extension=__name((Ra,qa,rd)=>{log$1.trace("Making markers for ",rd),Ra.append("defs").append("marker").attr("id",rd+"_"+qa+"-extensionStart").attr("class","marker extension "+qa).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),Ra.append("defs").append("marker").attr("id",rd+"_"+qa+"-extensionEnd").attr("class","marker extension "+qa).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z")},"extension"),composition=__name((Ra,qa,rd)=>{Ra.append("defs").append("marker").attr("id",rd+"_"+qa+"-compositionStart").attr("class","marker composition "+qa).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),Ra.append("defs").append("marker").attr("id",rd+"_"+qa+"-compositionEnd").attr("class","marker composition "+qa).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"composition"),aggregation=__name((Ra,qa,rd)=>{Ra.append("defs").append("marker").attr("id",rd+"_"+qa+"-aggregationStart").attr("class","marker aggregation "+qa).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),Ra.append("defs").append("marker").attr("id",rd+"_"+qa+"-aggregationEnd").attr("class","marker aggregation "+qa).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"aggregation"),dependency=__name((Ra,qa,rd)=>{Ra.append("defs").append("marker").attr("id",rd+"_"+qa+"-dependencyStart").attr("class","marker dependency "+qa).attr("refX",6).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),Ra.append("defs").append("marker").attr("id",rd+"_"+qa+"-dependencyEnd").attr("class","marker dependency "+qa).attr("refX",13).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},"dependency"),lollipop=__name((Ra,qa,rd)=>{Ra.append("defs").append("marker").attr("id",rd+"_"+qa+"-lollipopStart").attr("class","marker lollipop "+qa).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),Ra.append("defs").append("marker").attr("id",rd+"_"+qa+"-lollipopEnd").attr("class","marker lollipop "+qa).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6)},"lollipop"),point=__name((Ra,qa,rd)=>{Ra.append("marker").attr("id",rd+"_"+qa+"-pointEnd").attr("class","marker "+qa).attr("viewBox","0 0 10 10").attr("refX",5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),Ra.append("marker").attr("id",rd+"_"+qa+"-pointStart").attr("class","marker "+qa).attr("viewBox","0 0 10 10").attr("refX",4.5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).attr("orient","auto").append("path").attr("d","M 0 5 L 10 10 L 10 0 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},"point"),circle=__name((Ra,qa,rd)=>{Ra.append("marker").attr("id",rd+"_"+qa+"-circleEnd").attr("class","marker "+qa).attr("viewBox","0 0 10 10").attr("refX",11).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),Ra.append("marker").attr("id",rd+"_"+qa+"-circleStart").attr("class","marker "+qa).attr("viewBox","0 0 10 10").attr("refX",-1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},"circle"),cross=__name((Ra,qa,rd)=>{Ra.append("marker").attr("id",rd+"_"+qa+"-crossEnd").attr("class","marker cross "+qa).attr("viewBox","0 0 11 11").attr("refX",12).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),Ra.append("marker").attr("id",rd+"_"+qa+"-crossStart").attr("class","marker cross "+qa).attr("viewBox","0 0 11 11").attr("refX",-1).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0")},"cross"),barb=__name((Ra,qa,rd)=>{Ra.append("defs").append("marker").attr("id",rd+"_"+qa+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},"barb"),markers={extension,composition,aggregation,dependency,lollipop,point,circle,cross,barb},markers_default=insertMarkers,internalHelpers={common:common_default,getConfig:getConfig$2,insertCluster,insertEdge,insertEdgeLabel,insertMarkers:markers_default,insertNode,interpolateToCurve,labelHelper,log:log$1,positionEdgeLabel},layoutAlgorithms={},registerLayoutLoaders=__name(Ra=>{for(const qa of Ra)layoutAlgorithms[qa.name]=qa},"registerLayoutLoaders"),registerDefaultLayoutLoaders=__name(()=>{registerLayoutLoaders([{name:"dagre",loader:__name(async()=>await __vitePreload(()=>import("./md-dagre-4EVJKHTY-C74m9PzK.js"),__vite__mapDeps([0,1,2,3,4,5])),"loader")}])},"registerDefaultLayoutLoaders");registerDefaultLayoutLoaders();var render$1=__name(async(Ra,qa)=>{if(!(Ra.layoutAlgorithm in layoutAlgorithms))throw new Error(`Unknown layout algorithm: ${Ra.layoutAlgorithm}`);const rd=layoutAlgorithms[Ra.layoutAlgorithm];return(await rd.loader()).render(Ra,qa,internalHelpers,{algorithm:rd.algorithm})},"render"),getRegisteredLayoutAlgorithm=__name((Ra="",{fallback:qa="dagre"}={})=>{if(Ra in layoutAlgorithms)return Ra;if(qa in layoutAlgorithms)return log$1.warn(`Layout algorithm ${Ra} is not registered. Using ${qa} as fallback.`),qa;throw new Error(`Both layout algorithms ${Ra} and ${qa} are not registered.`)},"getRegisteredLayoutAlgorithm"),version$2="11.4.1",selectSvgElement=__name(Ra=>{var pd;const{securityLevel:qa}=getConfig2();let rd=select("body");if(qa==="sandbox"){const hd=((pd=select(`#i${Ra}`).node())==null?void 0:pd.contentDocument)??document;rd=select(hd.body)}return rd.select(`#${Ra}`)},"selectSvgElement"),COMMENT="comm",RULESET="rule",DECLARATION="decl",IMPORT="@import",KEYFRAMES="@keyframes",LAYER="@layer",abs$2=Math.abs,from=String.fromCharCode;function trim$1(Ra){return Ra.trim()}function replace(Ra,qa,rd){return Ra.replace(qa,rd)}function indexof(Ra,qa,rd){return Ra.indexOf(qa,rd)}function charat(Ra,qa){return Ra.charCodeAt(qa)|0}function substr(Ra,qa,rd){return Ra.slice(qa,rd)}function strlen(Ra){return Ra.length}function sizeof(Ra){return Ra.length}function append(Ra,qa){return qa.push(Ra),Ra}var line=1,column=1,length=0,position=0,character=0,characters="";function node(Ra,qa,rd,sd,pd,fd,hd,md){return{value:Ra,root:qa,parent:rd,type:sd,props:pd,children:fd,line,column,length:hd,return:"",siblings:md}}function char(){return character}function prev(){return character=position>0?charat(characters,--position):0,column--,character===10&&(column=1,line--),character}function next(){return character=position2||token$1(character)>3?"":" "}function escaping(Ra,qa){for(;--qa&&next()&&!(character<48||character>102||character>57&&character<65||character>70&&character<97););return slice(Ra,caret()+(qa<6&&peek()==32&&next()==32))}function delimiter(Ra){for(;next();)switch(character){case Ra:return position;case 34:case 39:Ra!==34&&Ra!==39&&delimiter(character);break;case 40:Ra===41&&delimiter(Ra);break;case 92:next();break}return position}function commenter(Ra,qa){for(;next()&&Ra+character!==57;)if(Ra+character===84&&peek()===47)break;return"/*"+slice(qa,position-1)+"*"+from(Ra===47?Ra:next())}function identifier(Ra){for(;!token$1(peek());)next();return slice(Ra,position)}function compile(Ra){return dealloc(parse$1("",null,null,null,[""],Ra=alloc(Ra),0,[0],Ra))}function parse$1(Ra,qa,rd,sd,pd,fd,hd,md,gd){for(var yd=0,vd=0,Nd=hd,Md=0,Ld=0,Fd=0,Hd=1,Vd=1,Gd=1,Ud=0,qd="",Wd=pd,Kd=fd,Xd=sd,df=qd;Vd;)switch(Fd=Ud,Ud=next()){case 40:if(Fd!=108&&charat(df,Nd-1)==58){indexof(df+=replace(delimit(Ud),"&","&\f"),"&\f",abs$2(yd?md[yd-1]:0))!=-1&&(Gd=-1);break}case 34:case 39:case 91:df+=delimit(Ud);break;case 9:case 10:case 13:case 32:df+=whitespace(Fd);break;case 92:df+=escaping(caret()-1,7);continue;case 47:switch(peek()){case 42:case 47:append(comment(commenter(next(),caret()),qa,rd,gd),gd),(token$1(Fd||1)==5||token$1(peek()||1)==5)&&strlen(df)&&substr(df,-1,void 0)!==" "&&(df+=" ");break;default:df+="/"}break;case 123*Hd:md[yd++]=strlen(df)*Gd;case 125*Hd:case 59:case 0:switch(Ud){case 0:case 125:Vd=0;case 59+vd:Gd==-1&&(df=replace(df,/\f/g,"")),Ld>0&&(strlen(df)-Nd||Hd===0&&Fd===47)&&append(Ld>32?declaration(df+";",sd,rd,Nd-1,gd):declaration(replace(df," ","")+";",sd,rd,Nd-2,gd),gd);break;case 59:df+=";";default:if(append(Xd=ruleset(df,qa,rd,yd,vd,pd,md,qd,Wd=[],Kd=[],Nd,fd),fd),Ud===123)if(vd===0)parse$1(df,qa,Xd,Xd,Wd,fd,Nd,md,Kd);else{switch(Md){case 99:if(charat(df,3)===110)break;case 108:if(charat(df,2)===97)break;default:vd=0;case 100:case 109:case 115:}vd?parse$1(Ra,Xd,Xd,sd&&append(ruleset(Ra,Xd,Xd,0,0,pd,md,qd,pd,Wd=[],Nd,Kd),Kd),pd,Kd,Nd,md,sd?Wd:Kd):parse$1(df,Xd,Xd,Xd,[""],Kd,0,md,Kd)}}yd=vd=Ld=0,Hd=Gd=1,qd=df="",Nd=hd;break;case 58:Nd=1+strlen(df),Ld=Fd;default:if(Hd<1){if(Ud==123)--Hd;else if(Ud==125&&Hd++==0&&prev()==125)continue}switch(df+=from(Ud),Ud*Hd){case 38:Gd=vd>0?1:(df+="\f",-1);break;case 44:md[yd++]=(strlen(df)-1)*Gd,Gd=1;break;case 64:peek()===45&&(df+=delimit(next())),Md=peek(),vd=Nd=strlen(qd=df+=identifier(caret())),Ud++;break;case 45:Fd===45&&strlen(df)==2&&(Hd=0)}}return fd}function ruleset(Ra,qa,rd,sd,pd,fd,hd,md,gd,yd,vd,Nd){for(var Md=pd-1,Ld=pd===0?fd:[""],Fd=sizeof(Ld),Hd=0,Vd=0,Gd=0;Hd0?Ld[Ud]+" "+qd:replace(qd,/&\f/g,Ld[Ud])))&&(gd[Gd++]=Wd);return node(Ra,qa,rd,pd===0?RULESET:md,gd,yd,vd,Nd)}function comment(Ra,qa,rd,sd){return node(Ra,qa,rd,COMMENT,from(char()),substr(Ra,2,-2),0,sd)}function declaration(Ra,qa,rd,sd,pd){return node(Ra,qa,rd,DECLARATION,substr(Ra,0,sd),substr(Ra,sd+1,-1),sd,pd)}function serialize(Ra,qa){for(var rd="",sd=0;sd/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(Ra),"detector"),loader=__name(async()=>{const{diagram:Ra}=await __vitePreload(async()=>{const{diagram:qa}=await import("./md-c4Diagram-6F5ED5ID-DBpwfSLv.js");return{diagram:qa}},__vite__mapDeps([6,7]));return{id,diagram:Ra}},"loader"),plugin={id,detector,loader},c4Detector_default=plugin,id2="flowchart",detector2=__name((Ra,qa)=>{var rd,sd;return((rd=qa==null?void 0:qa.flowchart)==null?void 0:rd.defaultRenderer)==="dagre-wrapper"||((sd=qa==null?void 0:qa.flowchart)==null?void 0:sd.defaultRenderer)==="elk"?!1:/^\s*graph/.test(Ra)},"detector"),loader2=__name(async()=>{const{diagram:Ra}=await __vitePreload(async()=>{const{diagram:qa}=await import("./md-flowDiagram-7ASYPVHJ-J29PyV-p.js");return{diagram:qa}},__vite__mapDeps([8,9,10]));return{id:id2,diagram:Ra}},"loader"),plugin2={id:id2,detector:detector2,loader:loader2},flowDetector_default=plugin2,id3="flowchart-v2",detector3=__name((Ra,qa)=>{var rd,sd,pd;return((rd=qa==null?void 0:qa.flowchart)==null?void 0:rd.defaultRenderer)==="dagre-d3"?!1:(((sd=qa==null?void 0:qa.flowchart)==null?void 0:sd.defaultRenderer)==="elk"&&(qa.layout="elk"),/^\s*graph/.test(Ra)&&((pd=qa==null?void 0:qa.flowchart)==null?void 0:pd.defaultRenderer)==="dagre-wrapper"?!0:/^\s*flowchart/.test(Ra))},"detector"),loader3=__name(async()=>{const{diagram:Ra}=await __vitePreload(async()=>{const{diagram:qa}=await import("./md-flowDiagram-7ASYPVHJ-J29PyV-p.js");return{diagram:qa}},__vite__mapDeps([8,9,10]));return{id:id3,diagram:Ra}},"loader"),plugin3={id:id3,detector:detector3,loader:loader3},flowDetector_v2_default=plugin3,id4="er",detector4=__name(Ra=>/^\s*erDiagram/.test(Ra),"detector"),loader4=__name(async()=>{const{diagram:Ra}=await __vitePreload(async()=>{const{diagram:qa}=await import("./md-erDiagram-6RL3IURR-D51C91no.js");return{diagram:qa}},__vite__mapDeps([11,1,2,3,4]));return{id:id4,diagram:Ra}},"loader"),plugin4={id:id4,detector:detector4,loader:loader4},erDetector_default=plugin4,id5="gitGraph",detector5=__name(Ra=>/^\s*gitGraph/.test(Ra),"detector"),loader5=__name(async()=>{const{diagram:Ra}=await __vitePreload(async()=>{const{diagram:qa}=await import("./md-gitGraphDiagram-NRZ2UAAF-BW6MaeAJ.js");return{diagram:qa}},__vite__mapDeps([12,13,14,15,2,4,5]));return{id:id5,diagram:Ra}},"loader"),plugin5={id:id5,detector:detector5,loader:loader5},gitGraphDetector_default=plugin5,id6="gantt",detector6=__name(Ra=>/^\s*gantt/.test(Ra),"detector"),loader6=__name(async()=>{const{diagram:Ra}=await __vitePreload(async()=>{const{diagram:qa}=await import("./md-ganttDiagram-NTVNEXSI-Cih-I6r8.js");return{diagram:qa}},__vite__mapDeps([16,17,18]));return{id:id6,diagram:Ra}},"loader"),plugin6={id:id6,detector:detector6,loader:loader6},ganttDetector_default=plugin6,id7="info",detector7=__name(Ra=>/^\s*info/.test(Ra),"detector"),loader7=__name(async()=>{const{diagram:Ra}=await __vitePreload(async()=>{const{diagram:qa}=await import("./md-infoDiagram-A4XQUW5V-CoDJThRs.js");return{diagram:qa}},__vite__mapDeps([19,15,2,4,5]));return{id:id7,diagram:Ra}},"loader"),info={id:id7,detector:detector7,loader:loader7},id8="pie",detector8=__name(Ra=>/^\s*pie/.test(Ra),"detector"),loader8=__name(async()=>{const{diagram:Ra}=await __vitePreload(async()=>{const{diagram:qa}=await import("./md-pieDiagram-YF2LJOPJ-BefXGgDU.js");return{diagram:qa}},__vite__mapDeps([20,13,15,2,4,5,21,22,18]));return{id:id8,diagram:Ra}},"loader"),pie={id:id8,detector:detector8,loader:loader8},id9="quadrantChart",detector9=__name(Ra=>/^\s*quadrantChart/.test(Ra),"detector"),loader9=__name(async()=>{const{diagram:Ra}=await __vitePreload(async()=>{const{diagram:qa}=await import("./md-quadrantDiagram-OS5C2QUG-D-1dDcst.js");return{diagram:qa}},__vite__mapDeps([23,17,18]));return{id:id9,diagram:Ra}},"loader"),plugin7={id:id9,detector:detector9,loader:loader9},quadrantDetector_default=plugin7,id10="xychart",detector10=__name(Ra=>/^\s*xychart-beta/.test(Ra),"detector"),loader10=__name(async()=>{const{diagram:Ra}=await __vitePreload(async()=>{const{diagram:qa}=await import("./md-xychartDiagram-6QU3TZC5-BTBLNZIZ.js");return{diagram:qa}},__vite__mapDeps([24,18,22,17]));return{id:id10,diagram:Ra}},"loader"),plugin8={id:id10,detector:detector10,loader:loader10},xychartDetector_default=plugin8,id11="requirement",detector11=__name(Ra=>/^\s*requirement(Diagram)?/.test(Ra),"detector"),loader11=__name(async()=>{const{diagram:Ra}=await __vitePreload(async()=>{const{diagram:qa}=await import("./md-requirementDiagram-MIRIMTAZ-CVpbpU2X.js");return{diagram:qa}},__vite__mapDeps([25,1,2,3,4]));return{id:id11,diagram:Ra}},"loader"),plugin9={id:id11,detector:detector11,loader:loader11},requirementDetector_default=plugin9,id12="sequence",detector12=__name(Ra=>/^\s*sequenceDiagram/.test(Ra),"detector"),loader12=__name(async()=>{const{diagram:Ra}=await __vitePreload(async()=>{const{diagram:qa}=await import("./md-sequenceDiagram-G6AWOVSC-DEpdFIke.js");return{diagram:qa}},__vite__mapDeps([26,7,14]));return{id:id12,diagram:Ra}},"loader"),plugin10={id:id12,detector:detector12,loader:loader12},sequenceDetector_default=plugin10,id13="class",detector13=__name((Ra,qa)=>{var rd;return((rd=qa==null?void 0:qa.class)==null?void 0:rd.defaultRenderer)==="dagre-wrapper"?!1:/^\s*classDiagram/.test(Ra)},"detector"),loader13=__name(async()=>{const{diagram:Ra}=await __vitePreload(async()=>{const{diagram:qa}=await import("./md-classDiagram-LNE6IOMH-B-vzwpIS.js");return{diagram:qa}},__vite__mapDeps([27,28,9]));return{id:id13,diagram:Ra}},"loader"),plugin11={id:id13,detector:detector13,loader:loader13},classDetector_default=plugin11,id14="classDiagram",detector14=__name((Ra,qa)=>{var rd;return/^\s*classDiagram/.test(Ra)&&((rd=qa==null?void 0:qa.class)==null?void 0:rd.defaultRenderer)==="dagre-wrapper"?!0:/^\s*classDiagram-v2/.test(Ra)},"detector"),loader14=__name(async()=>{const{diagram:Ra}=await __vitePreload(async()=>{const{diagram:qa}=await import("./md-classDiagram-v2-MQ7JQ4JX-B-vzwpIS.js");return{diagram:qa}},__vite__mapDeps([29,28,9]));return{id:id14,diagram:Ra}},"loader"),plugin12={id:id14,detector:detector14,loader:loader14},classDetector_V2_default=plugin12,id15="state",detector15=__name((Ra,qa)=>{var rd;return((rd=qa==null?void 0:qa.state)==null?void 0:rd.defaultRenderer)==="dagre-wrapper"?!1:/^\s*stateDiagram/.test(Ra)},"detector"),loader15=__name(async()=>{const{diagram:Ra}=await __vitePreload(async()=>{const{diagram:qa}=await import("./md-stateDiagram-MAYHULR4-C3DlYV9d.js");return{diagram:qa}},__vite__mapDeps([30,31,9,1,2,3,4]));return{id:id15,diagram:Ra}},"loader"),plugin13={id:id15,detector:detector15,loader:loader15},stateDetector_default=plugin13,id16="stateDiagram",detector16=__name((Ra,qa)=>{var rd;return!!(/^\s*stateDiagram-v2/.test(Ra)||/^\s*stateDiagram/.test(Ra)&&((rd=qa==null?void 0:qa.state)==null?void 0:rd.defaultRenderer)==="dagre-wrapper")},"detector"),loader16=__name(async()=>{const{diagram:Ra}=await __vitePreload(async()=>{const{diagram:qa}=await import("./md-stateDiagram-v2-4JROLMXI-Dxxlrmqs.js");return{diagram:qa}},__vite__mapDeps([32,31,9]));return{id:id16,diagram:Ra}},"loader"),plugin14={id:id16,detector:detector16,loader:loader16},stateDetector_V2_default=plugin14,id17="journey",detector17=__name(Ra=>/^\s*journey/.test(Ra),"detector"),loader17=__name(async()=>{const{diagram:Ra}=await __vitePreload(async()=>{const{diagram:qa}=await import("./md-journeyDiagram-G5WM74LC-8wGIa7iP.js");return{diagram:qa}},__vite__mapDeps([33,7,21]));return{id:id17,diagram:Ra}},"loader"),plugin15={id:id17,detector:detector17,loader:loader17},journeyDetector_default=plugin15,draw=__name((Ra,qa,rd)=>{log$1.debug(`rendering svg for syntax error -`);const sd=selectSvgElement(qa),pd=sd.append("g");sd.attr("viewBox","0 0 2412 512"),configureSvgSize(sd,100,512,!0),pd.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),pd.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),pd.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),pd.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"),pd.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),pd.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),pd.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in text"),pd.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${rd}`)},"draw"),renderer={draw},errorRenderer_default=renderer,diagram={db:{},renderer,parser:{parse:__name(()=>{},"parse")}},errorDiagram_default=diagram,id18="flowchart-elk",detector18=__name((Ra,qa={})=>{var rd;return/^\s*flowchart-elk/.test(Ra)||/^\s*flowchart|graph/.test(Ra)&&((rd=qa==null?void 0:qa.flowchart)==null?void 0:rd.defaultRenderer)==="elk"?(qa.layout="elk",!0):!1},"detector"),loader18=__name(async()=>{const{diagram:Ra}=await __vitePreload(async()=>{const{diagram:qa}=await import("./md-flowDiagram-7ASYPVHJ-J29PyV-p.js");return{diagram:qa}},__vite__mapDeps([8,9,10]));return{id:id18,diagram:Ra}},"loader"),plugin16={id:id18,detector:detector18,loader:loader18},detector_default=plugin16,id19="timeline",detector19=__name(Ra=>/^\s*timeline/.test(Ra),"detector"),loader19=__name(async()=>{const{diagram:Ra}=await __vitePreload(async()=>{const{diagram:qa}=await import("./md-timeline-definition-U7ZMHBDA-_Jm9VfuV.js");return{diagram:qa}},__vite__mapDeps([34,21]));return{id:id19,diagram:Ra}},"loader"),plugin17={id:id19,detector:detector19,loader:loader19},detector_default2=plugin17,id20="mindmap",detector20=__name(Ra=>/^\s*mindmap/.test(Ra),"detector"),loader20=__name(async()=>{const{diagram:Ra}=await __vitePreload(async()=>{const{diagram:qa}=await import("./md-mindmap-definition-GWI6TPTV-_OAhJZ9o.js");return{diagram:qa}},__vite__mapDeps([35,36]));return{id:id20,diagram:Ra}},"loader"),plugin18={id:id20,detector:detector20,loader:loader20},detector_default3=plugin18,id21="kanban",detector21=__name(Ra=>/^\s*kanban/.test(Ra),"detector"),loader21=__name(async()=>{const{diagram:Ra}=await __vitePreload(async()=>{const{diagram:qa}=await import("./md-kanban-definition-QRCXZQQD-JMWAobnt.js");return{diagram:qa}},[]);return{id:id21,diagram:Ra}},"loader"),plugin19={id:id21,detector:detector21,loader:loader21},detector_default4=plugin19,id22="sankey",detector22=__name(Ra=>/^\s*sankey-beta/.test(Ra),"detector"),loader22=__name(async()=>{const{diagram:Ra}=await __vitePreload(async()=>{const{diagram:qa}=await import("./md-sankeyDiagram-Y46BX6SQ-DXtcZX8d.js");return{diagram:qa}},__vite__mapDeps([37,22,18]));return{id:id22,diagram:Ra}},"loader"),plugin20={id:id22,detector:detector22,loader:loader22},sankeyDetector_default=plugin20,id23="packet",detector23=__name(Ra=>/^\s*packet-beta/.test(Ra),"detector"),loader23=__name(async()=>{const{diagram:Ra}=await __vitePreload(async()=>{const{diagram:qa}=await import("./md-diagram-QW4FP2JN-CHUVC0i7.js");return{diagram:qa}},__vite__mapDeps([38,13,15,2,4,5]));return{id:id23,diagram:Ra}},"loader"),packet={id:id23,detector:detector23,loader:loader23},id24="block",detector24=__name(Ra=>/^\s*block-beta/.test(Ra),"detector"),loader24=__name(async()=>{const{diagram:Ra}=await __vitePreload(async()=>{const{diagram:qa}=await import("./md-blockDiagram-ZHA2E4KO-C1NPYHYN.js");return{diagram:qa}},__vite__mapDeps([39,5,2,1,10]));return{id:id24,diagram:Ra}},"loader"),plugin21={id:id24,detector:detector24,loader:loader24},blockDetector_default=plugin21,id25="architecture",detector25=__name(Ra=>/^\s*architecture/.test(Ra),"detector"),loader25=__name(async()=>{const{diagram:Ra}=await __vitePreload(async()=>{const{diagram:qa}=await import("./md-architectureDiagram-UYN6MBPD-C737qlCv.js");return{diagram:qa}},__vite__mapDeps([40,13,14,15,2,4,5,36]));return{id:id25,diagram:Ra}},"loader"),architecture={id:id25,detector:detector25,loader:loader25},architectureDetector_default=architecture,hasLoadedDiagrams=!1,addDiagrams=__name(()=>{hasLoadedDiagrams||(hasLoadedDiagrams=!0,registerDiagram("error",errorDiagram_default,Ra=>Ra.toLowerCase().trim()==="error"),registerDiagram("---",{db:{clear:__name(()=>{},"clear")},styles:{},renderer:{draw:__name(()=>{},"draw")},parser:{parse:__name(()=>{throw new Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks")},"parse")},init:__name(()=>null,"init")},Ra=>Ra.toLowerCase().trimStart().startsWith("---")),registerLazyLoadedDiagrams(c4Detector_default,detector_default4,classDetector_V2_default,classDetector_default,erDetector_default,ganttDetector_default,info,pie,requirementDetector_default,sequenceDetector_default,detector_default,flowDetector_v2_default,flowDetector_default,detector_default3,detector_default2,gitGraphDetector_default,stateDetector_V2_default,stateDetector_default,journeyDetector_default,quadrantDetector_default,sankeyDetector_default,packet,xychartDetector_default,blockDetector_default,architectureDetector_default))},"addDiagrams"),loadRegisteredDiagrams=__name(async()=>{log$1.debug("Loading registered diagrams");const qa=(await Promise.allSettled(Object.entries(detectors).map(async([rd,{detector:sd,loader:pd}])=>{if(pd)try{getDiagram(rd)}catch{try{const{diagram:fd,id:hd}=await pd();registerDiagram(hd,fd,sd)}catch(fd){throw log$1.error(`Failed to load external diagram with key ${rd}. Removing from detectors.`),delete detectors[rd],fd}}}))).filter(rd=>rd.status==="rejected");if(qa.length>0){log$1.error(`Failed to load ${qa.length} external diagrams`);for(const rd of qa)log$1.error(rd);throw new Error(`Failed to load ${qa.length} external diagrams`)}},"loadRegisteredDiagrams"),SVG_ROLE="graphics-document document";function setA11yDiagramInfo(Ra,qa){Ra.attr("role",SVG_ROLE),qa!==""&&Ra.attr("aria-roledescription",qa)}__name(setA11yDiagramInfo,"setA11yDiagramInfo");function addSVGa11yTitleDescription(Ra,qa,rd,sd){if(Ra.insert!==void 0){if(rd){const pd=`chart-desc-${sd}`;Ra.attr("aria-describedby",pd),Ra.insert("desc",":first-child").attr("id",pd).text(rd)}if(qa){const pd=`chart-title-${sd}`;Ra.attr("aria-labelledby",pd),Ra.insert("title",":first-child").attr("id",pd).text(qa)}}}__name(addSVGa11yTitleDescription,"addSVGa11yTitleDescription");var fS,Diagram=(fS=class{constructor(qa,rd,sd,pd,fd){this.type=qa,this.text=rd,this.db=sd,this.parser=pd,this.renderer=fd}static async fromText(qa,rd={}){var yd,vd;const sd=getConfig$2(),pd=detectType$1(qa,sd);qa=encodeEntities(qa)+` + node : x:${Ra.x} y:${Ra.y} w:${Ra.width} h:${Ra.height}`);const sd=Ra.x,pd=Ra.y,fd=Math.abs(sd-rd.x),hd=Ra.width/2;let md=rd.xMath.abs(sd-qa.x)*gd){let Nd=rd.y{log$1.warn("abc88 cutPathAtIntersect",Ra,qa);let rd=[],sd=Ra[0],pd=!1;return Ra.forEach(fd=>{if(log$1.info("abc88 checking point",fd,qa),!outsideNode(qa,fd)&&!pd){const hd=intersection(qa,sd,fd);log$1.debug("abc88 inside",fd,sd,hd),log$1.debug("abc88 intersection",hd,qa);let md=!1;rd.forEach(gd=>{md=md||gd.x===hd.x&&gd.y===hd.y}),rd.some(gd=>gd.x===hd.x&&gd.y===hd.y)?log$1.warn("abc88 no intersect",hd,rd):rd.push(hd),pd=!0}else log$1.warn("abc88 outside",fd,sd),sd=fd,pd||rd.push(fd)}),log$1.debug("returning points",rd),rd},"cutPathAtIntersect");function extractCornerPoints(Ra){const qa=[],rd=[];for(let sd=1;sd5&&Math.abs(fd.y-pd.y)>5||pd.y===fd.y&&fd.x===hd.x&&Math.abs(fd.x-pd.x)>5&&Math.abs(fd.y-hd.y)>5)&&(qa.push(fd),rd.push(sd))}return{cornerPoints:qa,cornerPointPositions:rd}}__name(extractCornerPoints,"extractCornerPoints");var findAdjacentPoint=__name(function(Ra,qa,rd){const sd=qa.x-Ra.x,pd=qa.y-Ra.y,fd=Math.sqrt(sd*sd+pd*pd),hd=rd/fd;return{x:qa.x-hd*sd,y:qa.y-hd*pd}},"findAdjacentPoint"),fixCorners=__name(function(Ra){const{cornerPointPositions:qa}=extractCornerPoints(Ra),rd=[];for(let sd=0;sd10&&Math.abs(fd.y-pd.y)>=10){log$1.debug("Corner point fixing",Math.abs(fd.x-pd.x),Math.abs(fd.y-pd.y));const Ld=5;hd.x===md.x?Md={x:yd<0?md.x-Ld+Nd:md.x+Ld-Nd,y:vd<0?md.y-Nd:md.y+Nd}:Md={x:yd<0?md.x-Nd:md.x+Nd,y:vd<0?md.y-Ld+Nd:md.y+Ld-Nd}}else log$1.debug("Corner point skipping fixing",Math.abs(fd.x-pd.x),Math.abs(fd.y-pd.y));rd.push(Md,gd)}else rd.push(Ra[sd]);return rd},"fixCorners"),insertEdge=__name(function(Ra,qa,rd,sd,pd,fd,hd){const{handDrawnSeed:md}=getConfig2();let gd=qa.points,yd=!1;const vd=pd;var Nd=fd;Nd.intersect&&vd.intersect&&(gd=gd.slice(1,qa.points.length-1),gd.unshift(vd.intersect(gd[0])),log$1.debug("Last point APA12",qa.start,"-->",qa.end,gd[gd.length-1],Nd,Nd.intersect(gd[gd.length-1])),gd.push(Nd.intersect(gd[gd.length-1]))),qa.toCluster&&(log$1.info("to cluster abc88",rd.get(qa.toCluster)),gd=cutPathAtIntersect(qa.points,rd.get(qa.toCluster).node),yd=!0),qa.fromCluster&&(log$1.debug("from cluster abc88",rd.get(qa.fromCluster),JSON.stringify(gd,null,2)),gd=cutPathAtIntersect(gd.reverse(),rd.get(qa.fromCluster).node).reverse(),yd=!0);let Md=gd.filter(df=>!Number.isNaN(df.y));Md=fixCorners(Md);let Ld=curveBasis;qa.curve&&(Ld=qa.curve);const{x:Fd,y:Hd}=getLineFunctionsWithOffset(qa),Vd=line$1().x(Fd).y(Hd).curve(Ld);let Gd;switch(qa.thickness){case"normal":Gd="edge-thickness-normal";break;case"thick":Gd="edge-thickness-thick";break;case"invisible":Gd="edge-thickness-invisible";break;default:Gd="edge-thickness-normal"}switch(qa.pattern){case"solid":Gd+=" edge-pattern-solid";break;case"dotted":Gd+=" edge-pattern-dotted";break;case"dashed":Gd+=" edge-pattern-dashed";break;default:Gd+=" edge-pattern-solid"}let Ud,qd=Vd(Md);const Wd=Array.isArray(qa.style)?qa.style:[qa.style];if(qa.look==="handDrawn"){const df=at$2.svg(Ra);Object.assign([],Md);const Ef=df.path(qd,{roughness:.3,seed:md});Gd+=" transition",Ud=select(Ef).select("path").attr("id",qa.id).attr("class"," "+Gd+(qa.classes?" "+qa.classes:"")).attr("style",Wd?Wd.reduce((mf,_f)=>mf+";"+_f,""):"");let pf=Ud.attr("d");Ud.attr("d",pf),Ra.node().appendChild(Ud.node())}else Ud=Ra.append("path").attr("d",qd).attr("id",qa.id).attr("class"," "+Gd+(qa.classes?" "+qa.classes:"")).attr("style",Wd?Wd.reduce((df,Ef)=>df+";"+Ef,""):"");let Kd="";(getConfig2().flowchart.arrowMarkerAbsolute||getConfig2().state.arrowMarkerAbsolute)&&(Kd=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,Kd=Kd.replace(/\(/g,"\\(").replace(/\)/g,"\\)")),log$1.info("arrowTypeStart",qa.arrowTypeStart),log$1.info("arrowTypeEnd",qa.arrowTypeEnd),addEdgeMarkers(Ud,qa,Kd,hd,sd);let Xd={};return yd&&(Xd.updatedPath=gd),Xd.originalPath=qa.points,Xd},"insertEdge"),insertMarkers=__name((Ra,qa,rd,sd)=>{qa.forEach(pd=>{markers[pd](Ra,rd,sd)})},"insertMarkers"),extension=__name((Ra,qa,rd)=>{log$1.trace("Making markers for ",rd),Ra.append("defs").append("marker").attr("id",rd+"_"+qa+"-extensionStart").attr("class","marker extension "+qa).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),Ra.append("defs").append("marker").attr("id",rd+"_"+qa+"-extensionEnd").attr("class","marker extension "+qa).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z")},"extension"),composition=__name((Ra,qa,rd)=>{Ra.append("defs").append("marker").attr("id",rd+"_"+qa+"-compositionStart").attr("class","marker composition "+qa).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),Ra.append("defs").append("marker").attr("id",rd+"_"+qa+"-compositionEnd").attr("class","marker composition "+qa).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"composition"),aggregation=__name((Ra,qa,rd)=>{Ra.append("defs").append("marker").attr("id",rd+"_"+qa+"-aggregationStart").attr("class","marker aggregation "+qa).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),Ra.append("defs").append("marker").attr("id",rd+"_"+qa+"-aggregationEnd").attr("class","marker aggregation "+qa).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"aggregation"),dependency=__name((Ra,qa,rd)=>{Ra.append("defs").append("marker").attr("id",rd+"_"+qa+"-dependencyStart").attr("class","marker dependency "+qa).attr("refX",6).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),Ra.append("defs").append("marker").attr("id",rd+"_"+qa+"-dependencyEnd").attr("class","marker dependency "+qa).attr("refX",13).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},"dependency"),lollipop=__name((Ra,qa,rd)=>{Ra.append("defs").append("marker").attr("id",rd+"_"+qa+"-lollipopStart").attr("class","marker lollipop "+qa).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),Ra.append("defs").append("marker").attr("id",rd+"_"+qa+"-lollipopEnd").attr("class","marker lollipop "+qa).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6)},"lollipop"),point=__name((Ra,qa,rd)=>{Ra.append("marker").attr("id",rd+"_"+qa+"-pointEnd").attr("class","marker "+qa).attr("viewBox","0 0 10 10").attr("refX",5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),Ra.append("marker").attr("id",rd+"_"+qa+"-pointStart").attr("class","marker "+qa).attr("viewBox","0 0 10 10").attr("refX",4.5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).attr("orient","auto").append("path").attr("d","M 0 5 L 10 10 L 10 0 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},"point"),circle=__name((Ra,qa,rd)=>{Ra.append("marker").attr("id",rd+"_"+qa+"-circleEnd").attr("class","marker "+qa).attr("viewBox","0 0 10 10").attr("refX",11).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),Ra.append("marker").attr("id",rd+"_"+qa+"-circleStart").attr("class","marker "+qa).attr("viewBox","0 0 10 10").attr("refX",-1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},"circle"),cross=__name((Ra,qa,rd)=>{Ra.append("marker").attr("id",rd+"_"+qa+"-crossEnd").attr("class","marker cross "+qa).attr("viewBox","0 0 11 11").attr("refX",12).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),Ra.append("marker").attr("id",rd+"_"+qa+"-crossStart").attr("class","marker cross "+qa).attr("viewBox","0 0 11 11").attr("refX",-1).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0")},"cross"),barb=__name((Ra,qa,rd)=>{Ra.append("defs").append("marker").attr("id",rd+"_"+qa+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},"barb"),markers={extension,composition,aggregation,dependency,lollipop,point,circle,cross,barb},markers_default=insertMarkers,internalHelpers={common:common_default,getConfig:getConfig$2,insertCluster,insertEdge,insertEdgeLabel,insertMarkers:markers_default,insertNode,interpolateToCurve,labelHelper,log:log$1,positionEdgeLabel},layoutAlgorithms={},registerLayoutLoaders=__name(Ra=>{for(const qa of Ra)layoutAlgorithms[qa.name]=qa},"registerLayoutLoaders"),registerDefaultLayoutLoaders=__name(()=>{registerLayoutLoaders([{name:"dagre",loader:__name(async()=>await __vitePreload(()=>import("./md-dagre-4EVJKHTY-BNHKBi3d.js"),__vite__mapDeps([0,1,2,3,4,5])),"loader")}])},"registerDefaultLayoutLoaders");registerDefaultLayoutLoaders();var render$1=__name(async(Ra,qa)=>{if(!(Ra.layoutAlgorithm in layoutAlgorithms))throw new Error(`Unknown layout algorithm: ${Ra.layoutAlgorithm}`);const rd=layoutAlgorithms[Ra.layoutAlgorithm];return(await rd.loader()).render(Ra,qa,internalHelpers,{algorithm:rd.algorithm})},"render"),getRegisteredLayoutAlgorithm=__name((Ra="",{fallback:qa="dagre"}={})=>{if(Ra in layoutAlgorithms)return Ra;if(qa in layoutAlgorithms)return log$1.warn(`Layout algorithm ${Ra} is not registered. Using ${qa} as fallback.`),qa;throw new Error(`Both layout algorithms ${Ra} and ${qa} are not registered.`)},"getRegisteredLayoutAlgorithm"),version$2="11.4.1",selectSvgElement=__name(Ra=>{var pd;const{securityLevel:qa}=getConfig2();let rd=select("body");if(qa==="sandbox"){const hd=((pd=select(`#i${Ra}`).node())==null?void 0:pd.contentDocument)??document;rd=select(hd.body)}return rd.select(`#${Ra}`)},"selectSvgElement"),COMMENT="comm",RULESET="rule",DECLARATION="decl",IMPORT="@import",KEYFRAMES="@keyframes",LAYER="@layer",abs$2=Math.abs,from=String.fromCharCode;function trim$1(Ra){return Ra.trim()}function replace(Ra,qa,rd){return Ra.replace(qa,rd)}function indexof(Ra,qa,rd){return Ra.indexOf(qa,rd)}function charat(Ra,qa){return Ra.charCodeAt(qa)|0}function substr(Ra,qa,rd){return Ra.slice(qa,rd)}function strlen(Ra){return Ra.length}function sizeof(Ra){return Ra.length}function append(Ra,qa){return qa.push(Ra),Ra}var line=1,column=1,length=0,position=0,character=0,characters="";function node(Ra,qa,rd,sd,pd,fd,hd,md){return{value:Ra,root:qa,parent:rd,type:sd,props:pd,children:fd,line,column,length:hd,return:"",siblings:md}}function char(){return character}function prev(){return character=position>0?charat(characters,--position):0,column--,character===10&&(column=1,line--),character}function next(){return character=position2||token$1(character)>3?"":" "}function escaping(Ra,qa){for(;--qa&&next()&&!(character<48||character>102||character>57&&character<65||character>70&&character<97););return slice(Ra,caret()+(qa<6&&peek()==32&&next()==32))}function delimiter(Ra){for(;next();)switch(character){case Ra:return position;case 34:case 39:Ra!==34&&Ra!==39&&delimiter(character);break;case 40:Ra===41&&delimiter(Ra);break;case 92:next();break}return position}function commenter(Ra,qa){for(;next()&&Ra+character!==57;)if(Ra+character===84&&peek()===47)break;return"/*"+slice(qa,position-1)+"*"+from(Ra===47?Ra:next())}function identifier(Ra){for(;!token$1(peek());)next();return slice(Ra,position)}function compile(Ra){return dealloc(parse$1("",null,null,null,[""],Ra=alloc(Ra),0,[0],Ra))}function parse$1(Ra,qa,rd,sd,pd,fd,hd,md,gd){for(var yd=0,vd=0,Nd=hd,Md=0,Ld=0,Fd=0,Hd=1,Vd=1,Gd=1,Ud=0,qd="",Wd=pd,Kd=fd,Xd=sd,df=qd;Vd;)switch(Fd=Ud,Ud=next()){case 40:if(Fd!=108&&charat(df,Nd-1)==58){indexof(df+=replace(delimit(Ud),"&","&\f"),"&\f",abs$2(yd?md[yd-1]:0))!=-1&&(Gd=-1);break}case 34:case 39:case 91:df+=delimit(Ud);break;case 9:case 10:case 13:case 32:df+=whitespace(Fd);break;case 92:df+=escaping(caret()-1,7);continue;case 47:switch(peek()){case 42:case 47:append(comment(commenter(next(),caret()),qa,rd,gd),gd),(token$1(Fd||1)==5||token$1(peek()||1)==5)&&strlen(df)&&substr(df,-1,void 0)!==" "&&(df+=" ");break;default:df+="/"}break;case 123*Hd:md[yd++]=strlen(df)*Gd;case 125*Hd:case 59:case 0:switch(Ud){case 0:case 125:Vd=0;case 59+vd:Gd==-1&&(df=replace(df,/\f/g,"")),Ld>0&&(strlen(df)-Nd||Hd===0&&Fd===47)&&append(Ld>32?declaration(df+";",sd,rd,Nd-1,gd):declaration(replace(df," ","")+";",sd,rd,Nd-2,gd),gd);break;case 59:df+=";";default:if(append(Xd=ruleset(df,qa,rd,yd,vd,pd,md,qd,Wd=[],Kd=[],Nd,fd),fd),Ud===123)if(vd===0)parse$1(df,qa,Xd,Xd,Wd,fd,Nd,md,Kd);else{switch(Md){case 99:if(charat(df,3)===110)break;case 108:if(charat(df,2)===97)break;default:vd=0;case 100:case 109:case 115:}vd?parse$1(Ra,Xd,Xd,sd&&append(ruleset(Ra,Xd,Xd,0,0,pd,md,qd,pd,Wd=[],Nd,Kd),Kd),pd,Kd,Nd,md,sd?Wd:Kd):parse$1(df,Xd,Xd,Xd,[""],Kd,0,md,Kd)}}yd=vd=Ld=0,Hd=Gd=1,qd=df="",Nd=hd;break;case 58:Nd=1+strlen(df),Ld=Fd;default:if(Hd<1){if(Ud==123)--Hd;else if(Ud==125&&Hd++==0&&prev()==125)continue}switch(df+=from(Ud),Ud*Hd){case 38:Gd=vd>0?1:(df+="\f",-1);break;case 44:md[yd++]=(strlen(df)-1)*Gd,Gd=1;break;case 64:peek()===45&&(df+=delimit(next())),Md=peek(),vd=Nd=strlen(qd=df+=identifier(caret())),Ud++;break;case 45:Fd===45&&strlen(df)==2&&(Hd=0)}}return fd}function ruleset(Ra,qa,rd,sd,pd,fd,hd,md,gd,yd,vd,Nd){for(var Md=pd-1,Ld=pd===0?fd:[""],Fd=sizeof(Ld),Hd=0,Vd=0,Gd=0;Hd0?Ld[Ud]+" "+qd:replace(qd,/&\f/g,Ld[Ud])))&&(gd[Gd++]=Wd);return node(Ra,qa,rd,pd===0?RULESET:md,gd,yd,vd,Nd)}function comment(Ra,qa,rd,sd){return node(Ra,qa,rd,COMMENT,from(char()),substr(Ra,2,-2),0,sd)}function declaration(Ra,qa,rd,sd,pd){return node(Ra,qa,rd,DECLARATION,substr(Ra,0,sd),substr(Ra,sd+1,-1),sd,pd)}function serialize(Ra,qa){for(var rd="",sd=0;sd/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(Ra),"detector"),loader=__name(async()=>{const{diagram:Ra}=await __vitePreload(async()=>{const{diagram:qa}=await import("./md-c4Diagram-6F5ED5ID-CucKeQac.js");return{diagram:qa}},__vite__mapDeps([6,7]));return{id,diagram:Ra}},"loader"),plugin={id,detector,loader},c4Detector_default=plugin,id2="flowchart",detector2=__name((Ra,qa)=>{var rd,sd;return((rd=qa==null?void 0:qa.flowchart)==null?void 0:rd.defaultRenderer)==="dagre-wrapper"||((sd=qa==null?void 0:qa.flowchart)==null?void 0:sd.defaultRenderer)==="elk"?!1:/^\s*graph/.test(Ra)},"detector"),loader2=__name(async()=>{const{diagram:Ra}=await __vitePreload(async()=>{const{diagram:qa}=await import("./md-flowDiagram-7ASYPVHJ-CNc02Idl.js");return{diagram:qa}},__vite__mapDeps([8,9,10]));return{id:id2,diagram:Ra}},"loader"),plugin2={id:id2,detector:detector2,loader:loader2},flowDetector_default=plugin2,id3="flowchart-v2",detector3=__name((Ra,qa)=>{var rd,sd,pd;return((rd=qa==null?void 0:qa.flowchart)==null?void 0:rd.defaultRenderer)==="dagre-d3"?!1:(((sd=qa==null?void 0:qa.flowchart)==null?void 0:sd.defaultRenderer)==="elk"&&(qa.layout="elk"),/^\s*graph/.test(Ra)&&((pd=qa==null?void 0:qa.flowchart)==null?void 0:pd.defaultRenderer)==="dagre-wrapper"?!0:/^\s*flowchart/.test(Ra))},"detector"),loader3=__name(async()=>{const{diagram:Ra}=await __vitePreload(async()=>{const{diagram:qa}=await import("./md-flowDiagram-7ASYPVHJ-CNc02Idl.js");return{diagram:qa}},__vite__mapDeps([8,9,10]));return{id:id3,diagram:Ra}},"loader"),plugin3={id:id3,detector:detector3,loader:loader3},flowDetector_v2_default=plugin3,id4="er",detector4=__name(Ra=>/^\s*erDiagram/.test(Ra),"detector"),loader4=__name(async()=>{const{diagram:Ra}=await __vitePreload(async()=>{const{diagram:qa}=await import("./md-erDiagram-6RL3IURR-B6EcPYCQ.js");return{diagram:qa}},__vite__mapDeps([11,1,2,3,4]));return{id:id4,diagram:Ra}},"loader"),plugin4={id:id4,detector:detector4,loader:loader4},erDetector_default=plugin4,id5="gitGraph",detector5=__name(Ra=>/^\s*gitGraph/.test(Ra),"detector"),loader5=__name(async()=>{const{diagram:Ra}=await __vitePreload(async()=>{const{diagram:qa}=await import("./md-gitGraphDiagram-NRZ2UAAF-BWOWDXGd.js");return{diagram:qa}},__vite__mapDeps([12,13,14,15,2,4,5]));return{id:id5,diagram:Ra}},"loader"),plugin5={id:id5,detector:detector5,loader:loader5},gitGraphDetector_default=plugin5,id6="gantt",detector6=__name(Ra=>/^\s*gantt/.test(Ra),"detector"),loader6=__name(async()=>{const{diagram:Ra}=await __vitePreload(async()=>{const{diagram:qa}=await import("./md-ganttDiagram-NTVNEXSI-Cd6Fwjxw.js");return{diagram:qa}},__vite__mapDeps([16,17,18]));return{id:id6,diagram:Ra}},"loader"),plugin6={id:id6,detector:detector6,loader:loader6},ganttDetector_default=plugin6,id7="info",detector7=__name(Ra=>/^\s*info/.test(Ra),"detector"),loader7=__name(async()=>{const{diagram:Ra}=await __vitePreload(async()=>{const{diagram:qa}=await import("./md-infoDiagram-A4XQUW5V-BBvf_S6j.js");return{diagram:qa}},__vite__mapDeps([19,15,2,4,5]));return{id:id7,diagram:Ra}},"loader"),info={id:id7,detector:detector7,loader:loader7},id8="pie",detector8=__name(Ra=>/^\s*pie/.test(Ra),"detector"),loader8=__name(async()=>{const{diagram:Ra}=await __vitePreload(async()=>{const{diagram:qa}=await import("./md-pieDiagram-YF2LJOPJ-O0QriEt-.js");return{diagram:qa}},__vite__mapDeps([20,13,15,2,4,5,21,22,18]));return{id:id8,diagram:Ra}},"loader"),pie={id:id8,detector:detector8,loader:loader8},id9="quadrantChart",detector9=__name(Ra=>/^\s*quadrantChart/.test(Ra),"detector"),loader9=__name(async()=>{const{diagram:Ra}=await __vitePreload(async()=>{const{diagram:qa}=await import("./md-quadrantDiagram-OS5C2QUG-DV5z-JAy.js");return{diagram:qa}},__vite__mapDeps([23,17,18]));return{id:id9,diagram:Ra}},"loader"),plugin7={id:id9,detector:detector9,loader:loader9},quadrantDetector_default=plugin7,id10="xychart",detector10=__name(Ra=>/^\s*xychart-beta/.test(Ra),"detector"),loader10=__name(async()=>{const{diagram:Ra}=await __vitePreload(async()=>{const{diagram:qa}=await import("./md-xychartDiagram-6QU3TZC5-Byj9-Kuq.js");return{diagram:qa}},__vite__mapDeps([24,18,22,17]));return{id:id10,diagram:Ra}},"loader"),plugin8={id:id10,detector:detector10,loader:loader10},xychartDetector_default=plugin8,id11="requirement",detector11=__name(Ra=>/^\s*requirement(Diagram)?/.test(Ra),"detector"),loader11=__name(async()=>{const{diagram:Ra}=await __vitePreload(async()=>{const{diagram:qa}=await import("./md-requirementDiagram-MIRIMTAZ-CK7gN75T.js");return{diagram:qa}},__vite__mapDeps([25,1,2,3,4]));return{id:id11,diagram:Ra}},"loader"),plugin9={id:id11,detector:detector11,loader:loader11},requirementDetector_default=plugin9,id12="sequence",detector12=__name(Ra=>/^\s*sequenceDiagram/.test(Ra),"detector"),loader12=__name(async()=>{const{diagram:Ra}=await __vitePreload(async()=>{const{diagram:qa}=await import("./md-sequenceDiagram-G6AWOVSC-Dv2O27DJ.js");return{diagram:qa}},__vite__mapDeps([26,7,14]));return{id:id12,diagram:Ra}},"loader"),plugin10={id:id12,detector:detector12,loader:loader12},sequenceDetector_default=plugin10,id13="class",detector13=__name((Ra,qa)=>{var rd;return((rd=qa==null?void 0:qa.class)==null?void 0:rd.defaultRenderer)==="dagre-wrapper"?!1:/^\s*classDiagram/.test(Ra)},"detector"),loader13=__name(async()=>{const{diagram:Ra}=await __vitePreload(async()=>{const{diagram:qa}=await import("./md-classDiagram-LNE6IOMH-BglD_SeO.js");return{diagram:qa}},__vite__mapDeps([27,28,9]));return{id:id13,diagram:Ra}},"loader"),plugin11={id:id13,detector:detector13,loader:loader13},classDetector_default=plugin11,id14="classDiagram",detector14=__name((Ra,qa)=>{var rd;return/^\s*classDiagram/.test(Ra)&&((rd=qa==null?void 0:qa.class)==null?void 0:rd.defaultRenderer)==="dagre-wrapper"?!0:/^\s*classDiagram-v2/.test(Ra)},"detector"),loader14=__name(async()=>{const{diagram:Ra}=await __vitePreload(async()=>{const{diagram:qa}=await import("./md-classDiagram-v2-MQ7JQ4JX-BglD_SeO.js");return{diagram:qa}},__vite__mapDeps([29,28,9]));return{id:id14,diagram:Ra}},"loader"),plugin12={id:id14,detector:detector14,loader:loader14},classDetector_V2_default=plugin12,id15="state",detector15=__name((Ra,qa)=>{var rd;return((rd=qa==null?void 0:qa.state)==null?void 0:rd.defaultRenderer)==="dagre-wrapper"?!1:/^\s*stateDiagram/.test(Ra)},"detector"),loader15=__name(async()=>{const{diagram:Ra}=await __vitePreload(async()=>{const{diagram:qa}=await import("./md-stateDiagram-MAYHULR4-DfSd1v8I.js");return{diagram:qa}},__vite__mapDeps([30,31,9,1,2,3,4]));return{id:id15,diagram:Ra}},"loader"),plugin13={id:id15,detector:detector15,loader:loader15},stateDetector_default=plugin13,id16="stateDiagram",detector16=__name((Ra,qa)=>{var rd;return!!(/^\s*stateDiagram-v2/.test(Ra)||/^\s*stateDiagram/.test(Ra)&&((rd=qa==null?void 0:qa.state)==null?void 0:rd.defaultRenderer)==="dagre-wrapper")},"detector"),loader16=__name(async()=>{const{diagram:Ra}=await __vitePreload(async()=>{const{diagram:qa}=await import("./md-stateDiagram-v2-4JROLMXI-B7lF6Wsi.js");return{diagram:qa}},__vite__mapDeps([32,31,9]));return{id:id16,diagram:Ra}},"loader"),plugin14={id:id16,detector:detector16,loader:loader16},stateDetector_V2_default=plugin14,id17="journey",detector17=__name(Ra=>/^\s*journey/.test(Ra),"detector"),loader17=__name(async()=>{const{diagram:Ra}=await __vitePreload(async()=>{const{diagram:qa}=await import("./md-journeyDiagram-G5WM74LC-DGrnBqyQ.js");return{diagram:qa}},__vite__mapDeps([33,7,21]));return{id:id17,diagram:Ra}},"loader"),plugin15={id:id17,detector:detector17,loader:loader17},journeyDetector_default=plugin15,draw=__name((Ra,qa,rd)=>{log$1.debug(`rendering svg for syntax error +`);const sd=selectSvgElement(qa),pd=sd.append("g");sd.attr("viewBox","0 0 2412 512"),configureSvgSize(sd,100,512,!0),pd.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),pd.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),pd.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),pd.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"),pd.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),pd.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),pd.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in text"),pd.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${rd}`)},"draw"),renderer={draw},errorRenderer_default=renderer,diagram={db:{},renderer,parser:{parse:__name(()=>{},"parse")}},errorDiagram_default=diagram,id18="flowchart-elk",detector18=__name((Ra,qa={})=>{var rd;return/^\s*flowchart-elk/.test(Ra)||/^\s*flowchart|graph/.test(Ra)&&((rd=qa==null?void 0:qa.flowchart)==null?void 0:rd.defaultRenderer)==="elk"?(qa.layout="elk",!0):!1},"detector"),loader18=__name(async()=>{const{diagram:Ra}=await __vitePreload(async()=>{const{diagram:qa}=await import("./md-flowDiagram-7ASYPVHJ-CNc02Idl.js");return{diagram:qa}},__vite__mapDeps([8,9,10]));return{id:id18,diagram:Ra}},"loader"),plugin16={id:id18,detector:detector18,loader:loader18},detector_default=plugin16,id19="timeline",detector19=__name(Ra=>/^\s*timeline/.test(Ra),"detector"),loader19=__name(async()=>{const{diagram:Ra}=await __vitePreload(async()=>{const{diagram:qa}=await import("./md-timeline-definition-U7ZMHBDA-SVQQVrz6.js");return{diagram:qa}},__vite__mapDeps([34,21]));return{id:id19,diagram:Ra}},"loader"),plugin17={id:id19,detector:detector19,loader:loader19},detector_default2=plugin17,id20="mindmap",detector20=__name(Ra=>/^\s*mindmap/.test(Ra),"detector"),loader20=__name(async()=>{const{diagram:Ra}=await __vitePreload(async()=>{const{diagram:qa}=await import("./md-mindmap-definition-GWI6TPTV-C66ZRu1A.js");return{diagram:qa}},__vite__mapDeps([35,36]));return{id:id20,diagram:Ra}},"loader"),plugin18={id:id20,detector:detector20,loader:loader20},detector_default3=plugin18,id21="kanban",detector21=__name(Ra=>/^\s*kanban/.test(Ra),"detector"),loader21=__name(async()=>{const{diagram:Ra}=await __vitePreload(async()=>{const{diagram:qa}=await import("./md-kanban-definition-QRCXZQQD-D01Qv2xr.js");return{diagram:qa}},[]);return{id:id21,diagram:Ra}},"loader"),plugin19={id:id21,detector:detector21,loader:loader21},detector_default4=plugin19,id22="sankey",detector22=__name(Ra=>/^\s*sankey-beta/.test(Ra),"detector"),loader22=__name(async()=>{const{diagram:Ra}=await __vitePreload(async()=>{const{diagram:qa}=await import("./md-sankeyDiagram-Y46BX6SQ-DsdI1xJ4.js");return{diagram:qa}},__vite__mapDeps([37,22,18]));return{id:id22,diagram:Ra}},"loader"),plugin20={id:id22,detector:detector22,loader:loader22},sankeyDetector_default=plugin20,id23="packet",detector23=__name(Ra=>/^\s*packet-beta/.test(Ra),"detector"),loader23=__name(async()=>{const{diagram:Ra}=await __vitePreload(async()=>{const{diagram:qa}=await import("./md-diagram-QW4FP2JN-CiY8H-i6.js");return{diagram:qa}},__vite__mapDeps([38,13,15,2,4,5]));return{id:id23,diagram:Ra}},"loader"),packet={id:id23,detector:detector23,loader:loader23},id24="block",detector24=__name(Ra=>/^\s*block-beta/.test(Ra),"detector"),loader24=__name(async()=>{const{diagram:Ra}=await __vitePreload(async()=>{const{diagram:qa}=await import("./md-blockDiagram-ZHA2E4KO-DbcgUgA7.js");return{diagram:qa}},__vite__mapDeps([39,5,2,1,10]));return{id:id24,diagram:Ra}},"loader"),plugin21={id:id24,detector:detector24,loader:loader24},blockDetector_default=plugin21,id25="architecture",detector25=__name(Ra=>/^\s*architecture/.test(Ra),"detector"),loader25=__name(async()=>{const{diagram:Ra}=await __vitePreload(async()=>{const{diagram:qa}=await import("./md-architectureDiagram-UYN6MBPD-r90AIZIa.js");return{diagram:qa}},__vite__mapDeps([40,13,14,15,2,4,5,36]));return{id:id25,diagram:Ra}},"loader"),architecture={id:id25,detector:detector25,loader:loader25},architectureDetector_default=architecture,hasLoadedDiagrams=!1,addDiagrams=__name(()=>{hasLoadedDiagrams||(hasLoadedDiagrams=!0,registerDiagram("error",errorDiagram_default,Ra=>Ra.toLowerCase().trim()==="error"),registerDiagram("---",{db:{clear:__name(()=>{},"clear")},styles:{},renderer:{draw:__name(()=>{},"draw")},parser:{parse:__name(()=>{throw new Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks")},"parse")},init:__name(()=>null,"init")},Ra=>Ra.toLowerCase().trimStart().startsWith("---")),registerLazyLoadedDiagrams(c4Detector_default,detector_default4,classDetector_V2_default,classDetector_default,erDetector_default,ganttDetector_default,info,pie,requirementDetector_default,sequenceDetector_default,detector_default,flowDetector_v2_default,flowDetector_default,detector_default3,detector_default2,gitGraphDetector_default,stateDetector_V2_default,stateDetector_default,journeyDetector_default,quadrantDetector_default,sankeyDetector_default,packet,xychartDetector_default,blockDetector_default,architectureDetector_default))},"addDiagrams"),loadRegisteredDiagrams=__name(async()=>{log$1.debug("Loading registered diagrams");const qa=(await Promise.allSettled(Object.entries(detectors).map(async([rd,{detector:sd,loader:pd}])=>{if(pd)try{getDiagram(rd)}catch{try{const{diagram:fd,id:hd}=await pd();registerDiagram(hd,fd,sd)}catch(fd){throw log$1.error(`Failed to load external diagram with key ${rd}. Removing from detectors.`),delete detectors[rd],fd}}}))).filter(rd=>rd.status==="rejected");if(qa.length>0){log$1.error(`Failed to load ${qa.length} external diagrams`);for(const rd of qa)log$1.error(rd);throw new Error(`Failed to load ${qa.length} external diagrams`)}},"loadRegisteredDiagrams"),SVG_ROLE="graphics-document document";function setA11yDiagramInfo(Ra,qa){Ra.attr("role",SVG_ROLE),qa!==""&&Ra.attr("aria-roledescription",qa)}__name(setA11yDiagramInfo,"setA11yDiagramInfo");function addSVGa11yTitleDescription(Ra,qa,rd,sd){if(Ra.insert!==void 0){if(rd){const pd=`chart-desc-${sd}`;Ra.attr("aria-describedby",pd),Ra.insert("desc",":first-child").attr("id",pd).text(rd)}if(qa){const pd=`chart-title-${sd}`;Ra.attr("aria-labelledby",pd),Ra.insert("title",":first-child").attr("id",pd).text(qa)}}}__name(addSVGa11yTitleDescription,"addSVGa11yTitleDescription");var fS,Diagram=(fS=class{constructor(qa,rd,sd,pd,fd){this.type=qa,this.text=rd,this.db=sd,this.parser=pd,this.renderer=fd}static async fromText(qa,rd={}){var yd,vd;const sd=getConfig$2(),pd=detectType$1(qa,sd);qa=encodeEntities(qa)+` `;try{getDiagram(pd)}catch{const Nd=getDiagramLoader(pd);if(!Nd)throw new UnknownDiagramError(`Diagram ${pd} not found.`);const{id:Md,diagram:Ld}=await Nd();registerDiagram(Md,Ld)}const{db:fd,parser:hd,renderer:md,init:gd}=getDiagram(pd);return hd.parser&&(hd.parser.yy=fd),(yd=fd.clear)==null||yd.call(fd),gd==null||gd(sd),rd.title&&((vd=fd.setDiagramTitle)==null||vd.call(fd,rd.title)),await hd.parse(qa),new fS(pd,qa,fd,hd,md)}async render(qa,rd){await this.renderer.draw(this.text,qa,rd,this)}getParser(){return this.parser}getType(){return this.type}},__name(fS,"Diagram"),fS),interactionFunctions=[],attachFunctions=__name(()=>{interactionFunctions.forEach(Ra=>{Ra()}),interactionFunctions=[]},"attachFunctions"),cleanupComments=__name(Ra=>Ra.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart(),"cleanupComments");function extractFrontMatter(Ra){const qa=Ra.match(frontMatterRegex);if(!qa)return{text:Ra,metadata:{}};let rd=load(qa[1],{schema:JSON_SCHEMA})??{};rd=typeof rd=="object"&&!Array.isArray(rd)?rd:{};const sd={};return rd.displayMode&&(sd.displayMode=rd.displayMode.toString()),rd.title&&(sd.title=rd.title.toString()),rd.config&&(sd.config=rd.config),{text:Ra.slice(qa[0].length),metadata:sd}}__name(extractFrontMatter,"extractFrontMatter");var cleanupText=__name(Ra=>Ra.replace(/\r\n?/g,` `).replace(/<(\w+)([^>]*)>/g,(qa,rd,sd)=>"<"+rd+sd.replace(/="([^"]*)"/g,"='$1'")+">"),"cleanupText"),processFrontmatter=__name(Ra=>{const{text:qa,metadata:rd}=extractFrontMatter(Ra),{displayMode:sd,title:pd,config:fd={}}=rd;return sd&&(fd.gantt||(fd.gantt={}),fd.gantt.displayMode=sd),{title:pd,config:fd,text:qa}},"processFrontmatter"),processDirectives=__name(Ra=>{const qa=utils_default.detectInit(Ra)??{},rd=utils_default.detectDirective(Ra,"wrap");return Array.isArray(rd)?qa.wrap=rd.some(({type:sd})=>sd==="wrap"):(rd==null?void 0:rd.type)==="wrap"&&(qa.wrap=!0),{text:removeDirectives(Ra),directive:qa}},"processDirectives");function preprocessDiagram(Ra){const qa=cleanupText(Ra),rd=processFrontmatter(qa),sd=processDirectives(rd.text),pd=cleanAndMerge(rd.config,sd.directive);return Ra=cleanupComments(sd.text),{code:Ra,title:rd.title,config:pd}}__name(preprocessDiagram,"preprocessDiagram");function toBase64$1(Ra){const qa=new TextEncoder().encode(Ra),rd=Array.from(qa,sd=>String.fromCodePoint(sd)).join("");return btoa(rd)}__name(toBase64$1,"toBase64");var MAX_TEXTLENGTH=5e4,MAX_TEXTLENGTH_EXCEEDED_MSG="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa",SECURITY_LVL_SANDBOX="sandbox",SECURITY_LVL_LOOSE="loose",XMLNS_SVG_STD="http://www.w3.org/2000/svg",XMLNS_XLINK_STD="http://www.w3.org/1999/xlink",XMLNS_XHTML_STD="http://www.w3.org/1999/xhtml",IFRAME_WIDTH="100%",IFRAME_HEIGHT="100%",IFRAME_STYLES="border:0;margin:0;",IFRAME_BODY_STYLE="margin:0",IFRAME_SANDBOX_OPTS="allow-top-navigation-by-user-activation allow-popups",IFRAME_NOT_SUPPORTED_MSG='The "iframe" tag is not supported by your browser.',DOMPURIFY_TAGS=["foreignobject"],DOMPURIFY_ATTR=["dominant-baseline"];function processAndSetConfigs(Ra){const qa=preprocessDiagram(Ra);return reset(),addDirective(qa.config??{}),qa}__name(processAndSetConfigs,"processAndSetConfigs");async function parse(Ra,qa){addDiagrams();try{const{code:rd,config:sd}=processAndSetConfigs(Ra);return{diagramType:(await getDiagramFromText(rd)).type,config:sd}}catch(rd){if(qa!=null&&qa.suppressErrors)return!1;throw rd}}__name(parse,"parse");var cssImportantStyles=__name((Ra,qa,rd=[])=>` .${Ra} ${qa} { ${rd.join(" !important; ")} !important; }`,"cssImportantStyles"),createCssStyles=__name((Ra,qa=new Map)=>{var sd;let rd="";if(Ra.themeCSS!==void 0&&(rd+=` @@ -990,7 +990,7 @@ ${Ra.themeCSS}`),Ra.fontFamily!==void 0&&(rd+=` * * @author Feross Aboukhadijeh * @license MIT - */(function(Ra){var qa=requireBase64Js(),rd=ieee754,sd=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;Ra.Buffer=md,Ra.SlowBuffer=Ud,Ra.INSPECT_MAX_BYTES=50;var pd=2147483647;Ra.kMaxLength=pd,md.TYPED_ARRAY_SUPPORT=fd(),!md.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function fd(){try{var kh=new Uint8Array(1),Zf={foo:function(){return 42}};return Object.setPrototypeOf(Zf,Uint8Array.prototype),Object.setPrototypeOf(kh,Zf),kh.foo()===42}catch{return!1}}Object.defineProperty(md.prototype,"parent",{enumerable:!0,get:function(){if(md.isBuffer(this))return this.buffer}}),Object.defineProperty(md.prototype,"offset",{enumerable:!0,get:function(){if(md.isBuffer(this))return this.byteOffset}});function hd(kh){if(kh>pd)throw new RangeError('The value "'+kh+'" is invalid for option "size"');var Zf=new Uint8Array(kh);return Object.setPrototypeOf(Zf,md.prototype),Zf}function md(kh,Zf,th){if(typeof kh=="number"){if(typeof Zf=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return Nd(kh)}return gd(kh,Zf,th)}md.poolSize=8192;function gd(kh,Zf,th){if(typeof kh=="string")return Md(kh,Zf);if(ArrayBuffer.isView(kh))return Fd(kh);if(kh==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof kh);if(oh(kh,ArrayBuffer)||kh&&oh(kh.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(oh(kh,SharedArrayBuffer)||kh&&oh(kh.buffer,SharedArrayBuffer)))return Hd(kh,Zf,th);if(typeof kh=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var $h=kh.valueOf&&kh.valueOf();if($h!=null&&$h!==kh)return md.from($h,Zf,th);var wh=Vd(kh);if(wh)return wh;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof kh[Symbol.toPrimitive]=="function")return md.from(kh[Symbol.toPrimitive]("string"),Zf,th);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof kh)}md.from=function(kh,Zf,th){return gd(kh,Zf,th)},Object.setPrototypeOf(md.prototype,Uint8Array.prototype),Object.setPrototypeOf(md,Uint8Array);function yd(kh){if(typeof kh!="number")throw new TypeError('"size" argument must be of type number');if(kh<0)throw new RangeError('The value "'+kh+'" is invalid for option "size"')}function vd(kh,Zf,th){return yd(kh),kh<=0?hd(kh):Zf!==void 0?typeof th=="string"?hd(kh).fill(Zf,th):hd(kh).fill(Zf):hd(kh)}md.alloc=function(kh,Zf,th){return vd(kh,Zf,th)};function Nd(kh){return yd(kh),hd(kh<0?0:Gd(kh)|0)}md.allocUnsafe=function(kh){return Nd(kh)},md.allocUnsafeSlow=function(kh){return Nd(kh)};function Md(kh,Zf){if((typeof Zf!="string"||Zf==="")&&(Zf="utf8"),!md.isEncoding(Zf))throw new TypeError("Unknown encoding: "+Zf);var th=qd(kh,Zf)|0,$h=hd(th),wh=$h.write(kh,Zf);return wh!==th&&($h=$h.slice(0,wh)),$h}function Ld(kh){for(var Zf=kh.length<0?0:Gd(kh.length)|0,th=hd(Zf),$h=0;$h=pd)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+pd.toString(16)+" bytes");return kh|0}function Ud(kh){return+kh!=kh&&(kh=0),md.alloc(+kh)}md.isBuffer=function(Zf){return Zf!=null&&Zf._isBuffer===!0&&Zf!==md.prototype},md.compare=function(Zf,th){if(oh(Zf,Uint8Array)&&(Zf=md.from(Zf,Zf.offset,Zf.byteLength)),oh(th,Uint8Array)&&(th=md.from(th,th.offset,th.byteLength)),!md.isBuffer(Zf)||!md.isBuffer(th))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(Zf===th)return 0;for(var $h=Zf.length,wh=th.length,fm=0,zh=Math.min($h,wh);fmwh.length?md.from(zh).copy(wh,fm):Uint8Array.prototype.set.call(wh,zh,fm);else if(md.isBuffer(zh))zh.copy(wh,fm);else throw new TypeError('"list" argument must be an Array of Buffers');fm+=zh.length}return wh};function qd(kh,Zf){if(md.isBuffer(kh))return kh.length;if(ArrayBuffer.isView(kh)||oh(kh,ArrayBuffer))return kh.byteLength;if(typeof kh!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof kh);var th=kh.length,$h=arguments.length>2&&arguments[2]===!0;if(!$h&&th===0)return 0;for(var wh=!1;;)switch(Zf){case"ascii":case"latin1":case"binary":return th;case"utf8":case"utf-8":return Af(kh).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return th*2;case"hex":return th>>>1;case"base64":return dm(kh).length;default:if(wh)return $h?-1:Af(kh).length;Zf=(""+Zf).toLowerCase(),wh=!0}}md.byteLength=qd;function Wd(kh,Zf,th){var $h=!1;if((Zf===void 0||Zf<0)&&(Zf=0),Zf>this.length||((th===void 0||th>this.length)&&(th=this.length),th<=0)||(th>>>=0,Zf>>>=0,th<=Zf))return"";for(kh||(kh="utf8");;)switch(kh){case"hex":return xh(this,Zf,th);case"utf8":case"utf-8":return If(this,Zf,th);case"ascii":return Pf(this,Zf,th);case"latin1":case"binary":return lh(this,Zf,th);case"base64":return Cf(this,Zf,th);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Eh(this,Zf,th);default:if($h)throw new TypeError("Unknown encoding: "+kh);kh=(kh+"").toLowerCase(),$h=!0}}md.prototype._isBuffer=!0;function Kd(kh,Zf,th){var $h=kh[Zf];kh[Zf]=kh[th],kh[th]=$h}md.prototype.swap16=function(){var Zf=this.length;if(Zf%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var th=0;thth&&(Zf+=" ... "),""},sd&&(md.prototype[sd]=md.prototype.inspect),md.prototype.compare=function(Zf,th,$h,wh,fm){if(oh(Zf,Uint8Array)&&(Zf=md.from(Zf,Zf.offset,Zf.byteLength)),!md.isBuffer(Zf))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof Zf);if(th===void 0&&(th=0),$h===void 0&&($h=Zf?Zf.length:0),wh===void 0&&(wh=0),fm===void 0&&(fm=this.length),th<0||$h>Zf.length||wh<0||fm>this.length)throw new RangeError("out of range index");if(wh>=fm&&th>=$h)return 0;if(wh>=fm)return-1;if(th>=$h)return 1;if(th>>>=0,$h>>>=0,wh>>>=0,fm>>>=0,this===Zf)return 0;for(var zh=fm-wh,Mm=$h-th,Rm=Math.min(zh,Mm),tg=this.slice(wh,fm),Fm=Zf.slice(th,$h),Ym=0;Ym2147483647?th=2147483647:th<-2147483648&&(th=-2147483648),th=+th,Xh(th)&&(th=wh?0:kh.length-1),th<0&&(th=kh.length+th),th>=kh.length){if(wh)return-1;th=kh.length-1}else if(th<0)if(wh)th=0;else return-1;if(typeof Zf=="string"&&(Zf=md.from(Zf,$h)),md.isBuffer(Zf))return Zf.length===0?-1:df(kh,Zf,th,$h,wh);if(typeof Zf=="number")return Zf=Zf&255,typeof Uint8Array.prototype.indexOf=="function"?wh?Uint8Array.prototype.indexOf.call(kh,Zf,th):Uint8Array.prototype.lastIndexOf.call(kh,Zf,th):df(kh,[Zf],th,$h,wh);throw new TypeError("val must be string, number or Buffer")}function df(kh,Zf,th,$h,wh){var fm=1,zh=kh.length,Mm=Zf.length;if($h!==void 0&&($h=String($h).toLowerCase(),$h==="ucs2"||$h==="ucs-2"||$h==="utf16le"||$h==="utf-16le")){if(kh.length<2||Zf.length<2)return-1;fm=2,zh/=2,Mm/=2,th/=2}function Rm(Eg,Fh){return fm===1?Eg[Fh]:Eg.readUInt16BE(Fh*fm)}var tg;if(wh){var Fm=-1;for(tg=th;tgzh&&(th=zh-Mm),tg=th;tg>=0;tg--){for(var Ym=!0,rg=0;rgwh&&($h=wh)):$h=wh;var fm=Zf.length;$h>fm/2&&($h=fm/2);for(var zh=0;zh<$h;++zh){var Mm=parseInt(Zf.substr(zh*2,2),16);if(Xh(Mm))return zh;kh[th+zh]=Mm}return zh}function pf(kh,Zf,th,$h){return Jf(Af(Zf,kh.length-th),kh,th,$h)}function mf(kh,Zf,th,$h){return Jf(_h(Zf),kh,th,$h)}function _f(kh,Zf,th,$h){return Jf(dm(Zf),kh,th,$h)}function xf(kh,Zf,th,$h){return Jf(Nh(Zf,kh.length-th),kh,th,$h)}md.prototype.write=function(Zf,th,$h,wh){if(th===void 0)wh="utf8",$h=this.length,th=0;else if($h===void 0&&typeof th=="string")wh=th,$h=this.length,th=0;else if(isFinite(th))th=th>>>0,isFinite($h)?($h=$h>>>0,wh===void 0&&(wh="utf8")):(wh=$h,$h=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var fm=this.length-th;if(($h===void 0||$h>fm)&&($h=fm),Zf.length>0&&($h<0||th<0)||th>this.length)throw new RangeError("Attempt to write outside buffer bounds");wh||(wh="utf8");for(var zh=!1;;)switch(wh){case"hex":return Ef(this,Zf,th,$h);case"utf8":case"utf-8":return pf(this,Zf,th,$h);case"ascii":case"latin1":case"binary":return mf(this,Zf,th,$h);case"base64":return _f(this,Zf,th,$h);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return xf(this,Zf,th,$h);default:if(zh)throw new TypeError("Unknown encoding: "+wh);wh=(""+wh).toLowerCase(),zh=!0}},md.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Cf(kh,Zf,th){return Zf===0&&th===kh.length?qa.fromByteArray(kh):qa.fromByteArray(kh.slice(Zf,th))}function If(kh,Zf,th){th=Math.min(kh.length,th);for(var $h=[],wh=Zf;wh239?4:fm>223?3:fm>191?2:1;if(wh+Mm<=th){var Rm,tg,Fm,Ym;switch(Mm){case 1:fm<128&&(zh=fm);break;case 2:Rm=kh[wh+1],(Rm&192)===128&&(Ym=(fm&31)<<6|Rm&63,Ym>127&&(zh=Ym));break;case 3:Rm=kh[wh+1],tg=kh[wh+2],(Rm&192)===128&&(tg&192)===128&&(Ym=(fm&15)<<12|(Rm&63)<<6|tg&63,Ym>2047&&(Ym<55296||Ym>57343)&&(zh=Ym));break;case 4:Rm=kh[wh+1],tg=kh[wh+2],Fm=kh[wh+3],(Rm&192)===128&&(tg&192)===128&&(Fm&192)===128&&(Ym=(fm&15)<<18|(Rm&63)<<12|(tg&63)<<6|Fm&63,Ym>65535&&Ym<1114112&&(zh=Ym))}}zh===null?(zh=65533,Mm=1):zh>65535&&(zh-=65536,$h.push(zh>>>10&1023|55296),zh=56320|zh&1023),$h.push(zh),wh+=Mm}return wf($h)}var Sf=4096;function wf(kh){var Zf=kh.length;if(Zf<=Sf)return String.fromCharCode.apply(String,kh);for(var th="",$h=0;$h$h)&&(th=$h);for(var wh="",fm=Zf;fm$h&&(Zf=$h),th<0?(th+=$h,th<0&&(th=0)):th>$h&&(th=$h),thth)throw new RangeError("Trying to access beyond buffer length")}md.prototype.readUintLE=md.prototype.readUIntLE=function(Zf,th,$h){Zf=Zf>>>0,th=th>>>0,$h||Mh(Zf,th,this.length);for(var wh=this[Zf],fm=1,zh=0;++zh>>0,th=th>>>0,$h||Mh(Zf,th,this.length);for(var wh=this[Zf+--th],fm=1;th>0&&(fm*=256);)wh+=this[Zf+--th]*fm;return wh},md.prototype.readUint8=md.prototype.readUInt8=function(Zf,th){return Zf=Zf>>>0,th||Mh(Zf,1,this.length),this[Zf]},md.prototype.readUint16LE=md.prototype.readUInt16LE=function(Zf,th){return Zf=Zf>>>0,th||Mh(Zf,2,this.length),this[Zf]|this[Zf+1]<<8},md.prototype.readUint16BE=md.prototype.readUInt16BE=function(Zf,th){return Zf=Zf>>>0,th||Mh(Zf,2,this.length),this[Zf]<<8|this[Zf+1]},md.prototype.readUint32LE=md.prototype.readUInt32LE=function(Zf,th){return Zf=Zf>>>0,th||Mh(Zf,4,this.length),(this[Zf]|this[Zf+1]<<8|this[Zf+2]<<16)+this[Zf+3]*16777216},md.prototype.readUint32BE=md.prototype.readUInt32BE=function(Zf,th){return Zf=Zf>>>0,th||Mh(Zf,4,this.length),this[Zf]*16777216+(this[Zf+1]<<16|this[Zf+2]<<8|this[Zf+3])},md.prototype.readIntLE=function(Zf,th,$h){Zf=Zf>>>0,th=th>>>0,$h||Mh(Zf,th,this.length);for(var wh=this[Zf],fm=1,zh=0;++zh=fm&&(wh-=Math.pow(2,8*th)),wh},md.prototype.readIntBE=function(Zf,th,$h){Zf=Zf>>>0,th=th>>>0,$h||Mh(Zf,th,this.length);for(var wh=th,fm=1,zh=this[Zf+--wh];wh>0&&(fm*=256);)zh+=this[Zf+--wh]*fm;return fm*=128,zh>=fm&&(zh-=Math.pow(2,8*th)),zh},md.prototype.readInt8=function(Zf,th){return Zf=Zf>>>0,th||Mh(Zf,1,this.length),this[Zf]&128?(255-this[Zf]+1)*-1:this[Zf]},md.prototype.readInt16LE=function(Zf,th){Zf=Zf>>>0,th||Mh(Zf,2,this.length);var $h=this[Zf]|this[Zf+1]<<8;return $h&32768?$h|4294901760:$h},md.prototype.readInt16BE=function(Zf,th){Zf=Zf>>>0,th||Mh(Zf,2,this.length);var $h=this[Zf+1]|this[Zf]<<8;return $h&32768?$h|4294901760:$h},md.prototype.readInt32LE=function(Zf,th){return Zf=Zf>>>0,th||Mh(Zf,4,this.length),this[Zf]|this[Zf+1]<<8|this[Zf+2]<<16|this[Zf+3]<<24},md.prototype.readInt32BE=function(Zf,th){return Zf=Zf>>>0,th||Mh(Zf,4,this.length),this[Zf]<<24|this[Zf+1]<<16|this[Zf+2]<<8|this[Zf+3]},md.prototype.readFloatLE=function(Zf,th){return Zf=Zf>>>0,th||Mh(Zf,4,this.length),rd.read(this,Zf,!0,23,4)},md.prototype.readFloatBE=function(Zf,th){return Zf=Zf>>>0,th||Mh(Zf,4,this.length),rd.read(this,Zf,!1,23,4)},md.prototype.readDoubleLE=function(Zf,th){return Zf=Zf>>>0,th||Mh(Zf,8,this.length),rd.read(this,Zf,!0,52,8)},md.prototype.readDoubleBE=function(Zf,th){return Zf=Zf>>>0,th||Mh(Zf,8,this.length),rd.read(this,Zf,!1,52,8)};function dh(kh,Zf,th,$h,wh,fm){if(!md.isBuffer(kh))throw new TypeError('"buffer" argument must be a Buffer instance');if(Zf>wh||Zfkh.length)throw new RangeError("Index out of range")}md.prototype.writeUintLE=md.prototype.writeUIntLE=function(Zf,th,$h,wh){if(Zf=+Zf,th=th>>>0,$h=$h>>>0,!wh){var fm=Math.pow(2,8*$h)-1;dh(this,Zf,th,$h,fm,0)}var zh=1,Mm=0;for(this[th]=Zf&255;++Mm<$h&&(zh*=256);)this[th+Mm]=Zf/zh&255;return th+$h},md.prototype.writeUintBE=md.prototype.writeUIntBE=function(Zf,th,$h,wh){if(Zf=+Zf,th=th>>>0,$h=$h>>>0,!wh){var fm=Math.pow(2,8*$h)-1;dh(this,Zf,th,$h,fm,0)}var zh=$h-1,Mm=1;for(this[th+zh]=Zf&255;--zh>=0&&(Mm*=256);)this[th+zh]=Zf/Mm&255;return th+$h},md.prototype.writeUint8=md.prototype.writeUInt8=function(Zf,th,$h){return Zf=+Zf,th=th>>>0,$h||dh(this,Zf,th,1,255,0),this[th]=Zf&255,th+1},md.prototype.writeUint16LE=md.prototype.writeUInt16LE=function(Zf,th,$h){return Zf=+Zf,th=th>>>0,$h||dh(this,Zf,th,2,65535,0),this[th]=Zf&255,this[th+1]=Zf>>>8,th+2},md.prototype.writeUint16BE=md.prototype.writeUInt16BE=function(Zf,th,$h){return Zf=+Zf,th=th>>>0,$h||dh(this,Zf,th,2,65535,0),this[th]=Zf>>>8,this[th+1]=Zf&255,th+2},md.prototype.writeUint32LE=md.prototype.writeUInt32LE=function(Zf,th,$h){return Zf=+Zf,th=th>>>0,$h||dh(this,Zf,th,4,4294967295,0),this[th+3]=Zf>>>24,this[th+2]=Zf>>>16,this[th+1]=Zf>>>8,this[th]=Zf&255,th+4},md.prototype.writeUint32BE=md.prototype.writeUInt32BE=function(Zf,th,$h){return Zf=+Zf,th=th>>>0,$h||dh(this,Zf,th,4,4294967295,0),this[th]=Zf>>>24,this[th+1]=Zf>>>16,this[th+2]=Zf>>>8,this[th+3]=Zf&255,th+4},md.prototype.writeIntLE=function(Zf,th,$h,wh){if(Zf=+Zf,th=th>>>0,!wh){var fm=Math.pow(2,8*$h-1);dh(this,Zf,th,$h,fm-1,-fm)}var zh=0,Mm=1,Rm=0;for(this[th]=Zf&255;++zh<$h&&(Mm*=256);)Zf<0&&Rm===0&&this[th+zh-1]!==0&&(Rm=1),this[th+zh]=(Zf/Mm>>0)-Rm&255;return th+$h},md.prototype.writeIntBE=function(Zf,th,$h,wh){if(Zf=+Zf,th=th>>>0,!wh){var fm=Math.pow(2,8*$h-1);dh(this,Zf,th,$h,fm-1,-fm)}var zh=$h-1,Mm=1,Rm=0;for(this[th+zh]=Zf&255;--zh>=0&&(Mm*=256);)Zf<0&&Rm===0&&this[th+zh+1]!==0&&(Rm=1),this[th+zh]=(Zf/Mm>>0)-Rm&255;return th+$h},md.prototype.writeInt8=function(Zf,th,$h){return Zf=+Zf,th=th>>>0,$h||dh(this,Zf,th,1,127,-128),Zf<0&&(Zf=255+Zf+1),this[th]=Zf&255,th+1},md.prototype.writeInt16LE=function(Zf,th,$h){return Zf=+Zf,th=th>>>0,$h||dh(this,Zf,th,2,32767,-32768),this[th]=Zf&255,this[th+1]=Zf>>>8,th+2},md.prototype.writeInt16BE=function(Zf,th,$h){return Zf=+Zf,th=th>>>0,$h||dh(this,Zf,th,2,32767,-32768),this[th]=Zf>>>8,this[th+1]=Zf&255,th+2},md.prototype.writeInt32LE=function(Zf,th,$h){return Zf=+Zf,th=th>>>0,$h||dh(this,Zf,th,4,2147483647,-2147483648),this[th]=Zf&255,this[th+1]=Zf>>>8,this[th+2]=Zf>>>16,this[th+3]=Zf>>>24,th+4},md.prototype.writeInt32BE=function(Zf,th,$h){return Zf=+Zf,th=th>>>0,$h||dh(this,Zf,th,4,2147483647,-2147483648),Zf<0&&(Zf=4294967295+Zf+1),this[th]=Zf>>>24,this[th+1]=Zf>>>16,this[th+2]=Zf>>>8,this[th+3]=Zf&255,th+4};function eh(kh,Zf,th,$h,wh,fm){if(th+$h>kh.length)throw new RangeError("Index out of range");if(th<0)throw new RangeError("Index out of range")}function fh(kh,Zf,th,$h,wh){return Zf=+Zf,th=th>>>0,wh||eh(kh,Zf,th,4),rd.write(kh,Zf,th,$h,23,4),th+4}md.prototype.writeFloatLE=function(Zf,th,$h){return fh(this,Zf,th,!0,$h)},md.prototype.writeFloatBE=function(Zf,th,$h){return fh(this,Zf,th,!1,$h)};function Sh(kh,Zf,th,$h,wh){return Zf=+Zf,th=th>>>0,wh||eh(kh,Zf,th,8),rd.write(kh,Zf,th,$h,52,8),th+8}md.prototype.writeDoubleLE=function(Zf,th,$h){return Sh(this,Zf,th,!0,$h)},md.prototype.writeDoubleBE=function(Zf,th,$h){return Sh(this,Zf,th,!1,$h)},md.prototype.copy=function(Zf,th,$h,wh){if(!md.isBuffer(Zf))throw new TypeError("argument should be a Buffer");if($h||($h=0),!wh&&wh!==0&&(wh=this.length),th>=Zf.length&&(th=Zf.length),th||(th=0),wh>0&&wh<$h&&(wh=$h),wh===$h||Zf.length===0||this.length===0)return 0;if(th<0)throw new RangeError("targetStart out of bounds");if($h<0||$h>=this.length)throw new RangeError("Index out of range");if(wh<0)throw new RangeError("sourceEnd out of bounds");wh>this.length&&(wh=this.length),Zf.length-th>>0,$h=$h===void 0?this.length:$h>>>0,Zf||(Zf=0);var zh;if(typeof Zf=="number")for(zh=th;zh<$h;++zh)this[zh]=Zf;else{var Mm=md.isBuffer(Zf)?Zf:md.from(Zf,wh),Rm=Mm.length;if(Rm===0)throw new TypeError('The value "'+Zf+'" is invalid for argument "value"');for(zh=0;zh<$h-th;++zh)this[zh+th]=Mm[zh%Rm]}return this};var vh=/[^+/0-9A-Za-z-_]/g;function Df(kh){if(kh=kh.split("=")[0],kh=kh.trim().replace(vh,""),kh.length<2)return"";for(;kh.length%4!==0;)kh=kh+"=";return kh}function Af(kh,Zf){Zf=Zf||1/0;for(var th,$h=kh.length,wh=null,fm=[],zh=0;zh<$h;++zh){if(th=kh.charCodeAt(zh),th>55295&&th<57344){if(!wh){if(th>56319){(Zf-=3)>-1&&fm.push(239,191,189);continue}else if(zh+1===$h){(Zf-=3)>-1&&fm.push(239,191,189);continue}wh=th;continue}if(th<56320){(Zf-=3)>-1&&fm.push(239,191,189),wh=th;continue}th=(wh-55296<<10|th-56320)+65536}else wh&&(Zf-=3)>-1&&fm.push(239,191,189);if(wh=null,th<128){if((Zf-=1)<0)break;fm.push(th)}else if(th<2048){if((Zf-=2)<0)break;fm.push(th>>6|192,th&63|128)}else if(th<65536){if((Zf-=3)<0)break;fm.push(th>>12|224,th>>6&63|128,th&63|128)}else if(th<1114112){if((Zf-=4)<0)break;fm.push(th>>18|240,th>>12&63|128,th>>6&63|128,th&63|128)}else throw new Error("Invalid code point")}return fm}function _h(kh){for(var Zf=[],th=0;th>8,wh=th%256,fm.push(wh),fm.push($h);return fm}function dm(kh){return qa.toByteArray(Df(kh))}function Jf(kh,Zf,th,$h){for(var wh=0;wh<$h&&!(wh+th>=Zf.length||wh>=kh.length);++wh)Zf[wh+th]=kh[wh];return wh}function oh(kh,Zf){return kh instanceof Zf||kh!=null&&kh.constructor!=null&&kh.constructor.name!=null&&kh.constructor.name===Zf.name}function Xh(kh){return kh!==kh}var Tm=function(){for(var kh="0123456789abcdef",Zf=new Array(256),th=0;th<16;++th)for(var $h=th*16,wh=0;wh<16;++wh)Zf[$h+wh]=kh[th]+kh[wh];return Zf}()})(buffer);var util$6={},types$1={},shams$1=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var qa={},rd=Symbol("test"),sd=Object(rd);if(typeof rd=="string"||Object.prototype.toString.call(rd)!=="[object Symbol]"||Object.prototype.toString.call(sd)!=="[object Symbol]")return!1;var pd=42;qa[rd]=pd;for(var fd in qa)return!1;if(typeof Object.keys=="function"&&Object.keys(qa).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(qa).length!==0)return!1;var hd=Object.getOwnPropertySymbols(qa);if(hd.length!==1||hd[0]!==rd||!Object.prototype.propertyIsEnumerable.call(qa,rd))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var md=Object.getOwnPropertyDescriptor(qa,rd);if(md.value!==pd||md.enumerable!==!0)return!1}return!0},hasSymbols$2=shams$1,shams=function(){return hasSymbols$2()&&!!Symbol.toStringTag},esObjectAtoms=Object,esErrors=Error,_eval=EvalError,range$1=RangeError,ref=ReferenceError,syntax=SyntaxError,type=TypeError,uri=URIError,abs$1=Math.abs,floor$1=Math.floor,max$3=Math.max,min$2=Math.min,pow$1=Math.pow,round$2=Math.round,_isNaN=Number.isNaN||function(qa){return qa!==qa},$isNaN=_isNaN,sign$1=function(qa){return $isNaN(qa)||qa===0?qa:qa<0?-1:1},gOPD$3=Object.getOwnPropertyDescriptor,$gOPD$1=gOPD$3;if($gOPD$1)try{$gOPD$1([],"length")}catch{$gOPD$1=null}var gopd$1=$gOPD$1,$defineProperty$3=Object.defineProperty||!1;if($defineProperty$3)try{$defineProperty$3({},"a",{value:1})}catch{$defineProperty$3=!1}var esDefineProperty=$defineProperty$3,hasSymbols$1,hasRequiredHasSymbols;function requireHasSymbols(){if(hasRequiredHasSymbols)return hasSymbols$1;hasRequiredHasSymbols=1;var Ra=typeof Symbol<"u"&&Symbol,qa=shams$1;return hasSymbols$1=function(){return typeof Ra!="function"||typeof Symbol!="function"||typeof Ra("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:qa()},hasSymbols$1}var Reflect_getPrototypeOf,hasRequiredReflect_getPrototypeOf;function requireReflect_getPrototypeOf(){return hasRequiredReflect_getPrototypeOf||(hasRequiredReflect_getPrototypeOf=1,Reflect_getPrototypeOf=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),Reflect_getPrototypeOf}var Object_getPrototypeOf,hasRequiredObject_getPrototypeOf;function requireObject_getPrototypeOf(){if(hasRequiredObject_getPrototypeOf)return Object_getPrototypeOf;hasRequiredObject_getPrototypeOf=1;var Ra=esObjectAtoms;return Object_getPrototypeOf=Ra.getPrototypeOf||null,Object_getPrototypeOf}var ERROR_MESSAGE="Function.prototype.bind called on incompatible ",toStr$3=Object.prototype.toString,max$2=Math.max,funcType="[object Function]",concatty=function(qa,rd){for(var sd=[],pd=0;pd"u"||!getProto$1?undefined$1:getProto$1(Uint8Array),INTRINSICS={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?undefined$1:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?undefined$1:ArrayBuffer,"%ArrayIteratorPrototype%":hasSymbols&&getProto$1?getProto$1([][Symbol.iterator]()):undefined$1,"%AsyncFromSyncIteratorPrototype%":undefined$1,"%AsyncFunction%":needsEval,"%AsyncGenerator%":needsEval,"%AsyncGeneratorFunction%":needsEval,"%AsyncIteratorPrototype%":needsEval,"%Atomics%":typeof Atomics>"u"?undefined$1:Atomics,"%BigInt%":typeof BigInt>"u"?undefined$1:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?undefined$1:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?undefined$1:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?undefined$1:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":$Error,"%eval%":eval,"%EvalError%":$EvalError,"%Float32Array%":typeof Float32Array>"u"?undefined$1:Float32Array,"%Float64Array%":typeof Float64Array>"u"?undefined$1:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?undefined$1:FinalizationRegistry,"%Function%":$Function,"%GeneratorFunction%":needsEval,"%Int8Array%":typeof Int8Array>"u"?undefined$1:Int8Array,"%Int16Array%":typeof Int16Array>"u"?undefined$1:Int16Array,"%Int32Array%":typeof Int32Array>"u"?undefined$1:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":hasSymbols&&getProto$1?getProto$1(getProto$1([][Symbol.iterator]())):undefined$1,"%JSON%":typeof JSON=="object"?JSON:undefined$1,"%Map%":typeof Map>"u"?undefined$1:Map,"%MapIteratorPrototype%":typeof Map>"u"||!hasSymbols||!getProto$1?undefined$1:getProto$1(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":$Object,"%Object.getOwnPropertyDescriptor%":$gOPD,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?undefined$1:Promise,"%Proxy%":typeof Proxy>"u"?undefined$1:Proxy,"%RangeError%":$RangeError,"%ReferenceError%":$ReferenceError,"%Reflect%":typeof Reflect>"u"?undefined$1:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?undefined$1:Set,"%SetIteratorPrototype%":typeof Set>"u"||!hasSymbols||!getProto$1?undefined$1:getProto$1(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?undefined$1:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":hasSymbols&&getProto$1?getProto$1(""[Symbol.iterator]()):undefined$1,"%Symbol%":hasSymbols?Symbol:undefined$1,"%SyntaxError%":$SyntaxError$1,"%ThrowTypeError%":ThrowTypeError,"%TypedArray%":TypedArray,"%TypeError%":$TypeError$3,"%Uint8Array%":typeof Uint8Array>"u"?undefined$1:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?undefined$1:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?undefined$1:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?undefined$1:Uint32Array,"%URIError%":$URIError,"%WeakMap%":typeof WeakMap>"u"?undefined$1:WeakMap,"%WeakRef%":typeof WeakRef>"u"?undefined$1:WeakRef,"%WeakSet%":typeof WeakSet>"u"?undefined$1:WeakSet,"%Function.prototype.call%":$call,"%Function.prototype.apply%":$apply$1,"%Object.defineProperty%":$defineProperty$2,"%Object.getPrototypeOf%":$ObjectGPO,"%Math.abs%":abs,"%Math.floor%":floor,"%Math.max%":max$1,"%Math.min%":min$1,"%Math.pow%":pow,"%Math.round%":round$1,"%Math.sign%":sign,"%Reflect.getPrototypeOf%":$ReflectGPO};if(getProto$1)try{null.error}catch(Ra){var errorProto=getProto$1(getProto$1(Ra));INTRINSICS["%Error.prototype%"]=errorProto}var doEval=function Ra(qa){var rd;if(qa==="%AsyncFunction%")rd=getEvalledConstructor("async function () {}");else if(qa==="%GeneratorFunction%")rd=getEvalledConstructor("function* () {}");else if(qa==="%AsyncGeneratorFunction%")rd=getEvalledConstructor("async function* () {}");else if(qa==="%AsyncGenerator%"){var sd=Ra("%AsyncGeneratorFunction%");sd&&(rd=sd.prototype)}else if(qa==="%AsyncIteratorPrototype%"){var pd=Ra("%AsyncGenerator%");pd&&getProto$1&&(rd=getProto$1(pd.prototype))}return INTRINSICS[qa]=rd,rd},LEGACY_ALIASES={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},bind$2=functionBind,hasOwn$1=hasown,$concat=bind$2.call($call,Array.prototype.concat),$spliceApply=bind$2.call($apply$1,Array.prototype.splice),$replace=bind$2.call($call,String.prototype.replace),$strSlice=bind$2.call($call,String.prototype.slice),$exec$2=bind$2.call($call,RegExp.prototype.exec),rePropName=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,reEscapeChar=/\\(\\)?/g,stringToPath=function(qa){var rd=$strSlice(qa,0,1),sd=$strSlice(qa,-1);if(rd==="%"&&sd!=="%")throw new $SyntaxError$1("invalid intrinsic syntax, expected closing `%`");if(sd==="%"&&rd!=="%")throw new $SyntaxError$1("invalid intrinsic syntax, expected opening `%`");var pd=[];return $replace(qa,rePropName,function(fd,hd,md,gd){pd[pd.length]=md?$replace(gd,reEscapeChar,"$1"):hd||fd}),pd},getBaseIntrinsic=function(qa,rd){var sd=qa,pd;if(hasOwn$1(LEGACY_ALIASES,sd)&&(pd=LEGACY_ALIASES[sd],sd="%"+pd[0]+"%"),hasOwn$1(INTRINSICS,sd)){var fd=INTRINSICS[sd];if(fd===needsEval&&(fd=doEval(sd)),typeof fd>"u"&&!rd)throw new $TypeError$3("intrinsic "+qa+" exists, but is not available. Please file an issue!");return{alias:pd,name:sd,value:fd}}throw new $SyntaxError$1("intrinsic "+qa+" does not exist!")},getIntrinsic=function(qa,rd){if(typeof qa!="string"||qa.length===0)throw new $TypeError$3("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof rd!="boolean")throw new $TypeError$3('"allowMissing" argument must be a boolean');if($exec$2(/^%?[^%]*%?$/,qa)===null)throw new $SyntaxError$1("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var sd=stringToPath(qa),pd=sd.length>0?sd[0]:"",fd=getBaseIntrinsic("%"+pd+"%",rd),hd=fd.name,md=fd.value,gd=!1,yd=fd.alias;yd&&(pd=yd[0],$spliceApply(sd,$concat([0,1],yd)));for(var vd=1,Nd=!0;vd=sd.length){var Hd=$gOPD(md,Md);Nd=!!Hd,Nd&&"get"in Hd&&!("originalValue"in Hd.get)?md=Hd.get:md=md[Md]}else Nd=hasOwn$1(md,Md),md=md[Md];Nd&&!gd&&(INTRINSICS[hd]=md)}}return md},GetIntrinsic$1=getIntrinsic,callBindBasic=callBindApplyHelpers,$indexOf$1=callBindBasic([GetIntrinsic$1("%String.prototype.indexOf%")]),callBound$5=function(qa,rd){var sd=GetIntrinsic$1(qa,!!rd);return typeof sd=="function"&&$indexOf$1(qa,".prototype.")>-1?callBindBasic([sd]):sd},hasToStringTag$4=shams(),callBound$4=callBound$5,$toString$2=callBound$4("Object.prototype.toString"),isStandardArguments=function(qa){return hasToStringTag$4&&qa&&typeof qa=="object"&&Symbol.toStringTag in qa?!1:$toString$2(qa)==="[object Arguments]"},isLegacyArguments=function(qa){return isStandardArguments(qa)?!0:qa!==null&&typeof qa=="object"&&"length"in qa&&typeof qa.length=="number"&&qa.length>=0&&$toString$2(qa)!=="[object Array]"&&"callee"in qa&&$toString$2(qa.callee)==="[object Function]"},supportsStandardArguments=function(){return isStandardArguments(arguments)}();isStandardArguments.isLegacyArguments=isLegacyArguments;var isArguments=supportsStandardArguments?isStandardArguments:isLegacyArguments,callBound$3=callBound$5,hasToStringTag$3=shams(),hasOwn=hasown,gOPD$2=gopd$1,fn;if(hasToStringTag$3){var $exec$1=callBound$3("RegExp.prototype.exec"),isRegexMarker={},throwRegexMarker=function(){throw isRegexMarker},badStringifier={toString:throwRegexMarker,valueOf:throwRegexMarker};typeof Symbol.toPrimitive=="symbol"&&(badStringifier[Symbol.toPrimitive]=throwRegexMarker),fn=function(qa){if(!qa||typeof qa!="object")return!1;var rd=gOPD$2(qa,"lastIndex"),sd=rd&&hasOwn(rd,"value");if(!sd)return!1;try{$exec$1(qa,badStringifier)}catch(pd){return pd===isRegexMarker}}}else{var $toString$1=callBound$3("Object.prototype.toString"),regexClass="[object RegExp]";fn=function(qa){return!qa||typeof qa!="object"&&typeof qa!="function"?!1:$toString$1(qa)===regexClass}}var isRegex$1=fn,callBound$2=callBound$5,isRegex=isRegex$1,$exec=callBound$2("RegExp.prototype.exec"),$TypeError$2=type,safeRegexTest$1=function(qa){if(!isRegex(qa))throw new $TypeError$2("`regex` must be a RegExp");return function(sd){return $exec(qa,sd)!==null}},callBound$1=callBound$5,safeRegexTest=safeRegexTest$1,isFnRegex=safeRegexTest(/^\s*(?:function)?\*/),hasToStringTag$2=shams(),getProto=requireGetProto(),toStr$2=callBound$1("Object.prototype.toString"),fnToStr$1=callBound$1("Function.prototype.toString"),getGeneratorFunc=function(){if(!hasToStringTag$2)return!1;try{return Function("return function*() {}")()}catch{}},GeneratorFunction,isGeneratorFunction=function(qa){if(typeof qa!="function")return!1;if(isFnRegex(fnToStr$1(qa)))return!0;if(!hasToStringTag$2){var rd=toStr$2(qa);return rd==="[object GeneratorFunction]"}if(!getProto)return!1;if(typeof GeneratorFunction>"u"){var sd=getGeneratorFunc();GeneratorFunction=sd?getProto(sd):!1}return getProto(qa)===GeneratorFunction},fnToStr=Function.prototype.toString,reflectApply=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,badArrayLike,isCallableMarker;if(typeof reflectApply=="function"&&typeof Object.defineProperty=="function")try{badArrayLike=Object.defineProperty({},"length",{get:function(){throw isCallableMarker}}),isCallableMarker={},reflectApply(function(){throw 42},null,badArrayLike)}catch(Ra){Ra!==isCallableMarker&&(reflectApply=null)}else reflectApply=null;var constructorRegex=/^\s*class\b/,isES6ClassFn=function(qa){try{var rd=fnToStr.call(qa);return constructorRegex.test(rd)}catch{return!1}},tryFunctionObject=function(qa){try{return isES6ClassFn(qa)?!1:(fnToStr.call(qa),!0)}catch{return!1}},toStr$1=Object.prototype.toString,objectClass="[object Object]",fnClass="[object Function]",genClass="[object GeneratorFunction]",ddaClass="[object HTMLAllCollection]",ddaClass2="[object HTML document.all class]",ddaClass3="[object HTMLCollection]",hasToStringTag$1=typeof Symbol=="function"&&!!Symbol.toStringTag,isIE68=!(0 in[,]),isDDA=function(){return!1};if(typeof document=="object"){var all=document.all;toStr$1.call(all)===toStr$1.call(document.all)&&(isDDA=function(qa){if((isIE68||!qa)&&(typeof qa>"u"||typeof qa=="object"))try{var rd=toStr$1.call(qa);return(rd===ddaClass||rd===ddaClass2||rd===ddaClass3||rd===objectClass)&&qa("")==null}catch{}return!1})}var isCallable$2=reflectApply?function(qa){if(isDDA(qa))return!0;if(!qa||typeof qa!="function"&&typeof qa!="object")return!1;try{reflectApply(qa,null,badArrayLike)}catch(rd){if(rd!==isCallableMarker)return!1}return!isES6ClassFn(qa)&&tryFunctionObject(qa)}:function(qa){if(isDDA(qa))return!0;if(!qa||typeof qa!="function"&&typeof qa!="object")return!1;if(hasToStringTag$1)return tryFunctionObject(qa);if(isES6ClassFn(qa))return!1;var rd=toStr$1.call(qa);return rd!==fnClass&&rd!==genClass&&!/^\[object HTML/.test(rd)?!1:tryFunctionObject(qa)},isCallable$1=isCallable$2,toStr=Object.prototype.toString,hasOwnProperty$2=Object.prototype.hasOwnProperty,forEachArray=function(qa,rd,sd){for(var pd=0,fd=qa.length;pd=3&&(pd=sd),toStr.call(qa)==="[object Array]"?forEachArray(qa,rd,pd):typeof qa=="string"?forEachString(qa,rd,pd):forEachObject(qa,rd,pd)},forEach_1=forEach$3,possibleTypedArrayNames=["Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"],possibleNames=possibleTypedArrayNames,g$2=typeof globalThis>"u"?commonjsGlobal:globalThis,availableTypedArrays$1=function(){for(var qa=[],rd=0;rd3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new $TypeError$1("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new $TypeError$1("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new $TypeError$1("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new $TypeError$1("`loose`, if provided, must be a boolean");var pd=arguments.length>3?arguments[3]:null,fd=arguments.length>4?arguments[4]:null,hd=arguments.length>5?arguments[5]:null,md=arguments.length>6?arguments[6]:!1,gd=!!gopd&&gopd(qa,rd);if($defineProperty$1)$defineProperty$1(qa,rd,{configurable:hd===null&&gd?gd.configurable:!hd,enumerable:pd===null&&gd?gd.enumerable:!pd,value:sd,writable:fd===null&&gd?gd.writable:!fd});else if(md||!pd&&!fd&&!hd)qa[rd]=sd;else throw new $SyntaxError("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},$defineProperty=esDefineProperty,hasPropertyDescriptors=function(){return!!$defineProperty};hasPropertyDescriptors.hasArrayLengthDefineBug=function(){if(!$defineProperty)return null;try{return $defineProperty([],"length",{value:1}).length!==1}catch{return!0}};var hasPropertyDescriptors_1=hasPropertyDescriptors,GetIntrinsic=getIntrinsic,define=defineDataProperty,hasDescriptors=hasPropertyDescriptors_1(),gOPD$1=gopd$1,$TypeError=type,$floor=GetIntrinsic("%Math.floor%"),setFunctionLength=function(qa,rd){if(typeof qa!="function")throw new $TypeError("`fn` is not a function");if(typeof rd!="number"||rd<0||rd>4294967295||$floor(rd)!==rd)throw new $TypeError("`length` must be a positive 32-bit integer");var sd=arguments.length>2&&!!arguments[2],pd=!0,fd=!0;if("length"in qa&&gOPD$1){var hd=gOPD$1(qa,"length");hd&&!hd.configurable&&(pd=!1),hd&&!hd.writable&&(fd=!1)}return(pd||fd||!sd)&&(hasDescriptors?define(qa,"length",rd,!0,!0):define(qa,"length",rd)),qa},bind$1=functionBind,$apply=functionApply,actualApply=actualApply$1,applyBind=function(){return actualApply(bind$1,$apply,arguments)};(function(Ra){var qa=setFunctionLength,rd=esDefineProperty,sd=callBindApplyHelpers,pd=applyBind;Ra.exports=function(hd){var md=sd(arguments),gd=hd.length-(arguments.length-1);return qa(md,1+(gd>0?gd:0),!0)},rd?rd(Ra.exports,"apply",{value:pd}):Ra.exports.apply=pd})(callBind$1);var callBindExports=callBind$1.exports,forEach$2=forEach_1,availableTypedArrays=availableTypedArrays$1,callBind=callBindExports,callBound=callBound$5,gOPD=gopd$1,$toString=callBound("Object.prototype.toString"),hasToStringTag=shams(),g$1=typeof globalThis>"u"?commonjsGlobal:globalThis,typedArrays=availableTypedArrays(),$slice=callBound("String.prototype.slice"),getPrototypeOf$1=Object.getPrototypeOf,$indexOf=callBound("Array.prototype.indexOf",!0)||function(qa,rd){for(var sd=0;sd-1?rd:rd!=="Object"?!1:trySlices(qa)}return gOPD?tryTypedArrays(qa):null},whichTypedArray=whichTypedArray$1,isTypedArray$1=function(qa){return!!whichTypedArray(qa)};(function(Ra){var qa=isArguments,rd=isGeneratorFunction,sd=whichTypedArray$1,pd=isTypedArray$1;function fd($h){return $h.call.bind($h)}var hd=typeof BigInt<"u",md=typeof Symbol<"u",gd=fd(Object.prototype.toString),yd=fd(Number.prototype.valueOf),vd=fd(String.prototype.valueOf),Nd=fd(Boolean.prototype.valueOf);if(hd)var Md=fd(BigInt.prototype.valueOf);if(md)var Ld=fd(Symbol.prototype.valueOf);function Fd($h,wh){if(typeof $h!="object")return!1;try{return wh($h),!0}catch{return!1}}Ra.isArgumentsObject=qa,Ra.isGeneratorFunction=rd,Ra.isTypedArray=pd;function Hd($h){return typeof Promise<"u"&&$h instanceof Promise||$h!==null&&typeof $h=="object"&&typeof $h.then=="function"&&typeof $h.catch=="function"}Ra.isPromise=Hd;function Vd($h){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView($h):pd($h)||eh($h)}Ra.isArrayBufferView=Vd;function Gd($h){return sd($h)==="Uint8Array"}Ra.isUint8Array=Gd;function Ud($h){return sd($h)==="Uint8ClampedArray"}Ra.isUint8ClampedArray=Ud;function qd($h){return sd($h)==="Uint16Array"}Ra.isUint16Array=qd;function Wd($h){return sd($h)==="Uint32Array"}Ra.isUint32Array=Wd;function Kd($h){return sd($h)==="Int8Array"}Ra.isInt8Array=Kd;function Xd($h){return sd($h)==="Int16Array"}Ra.isInt16Array=Xd;function df($h){return sd($h)==="Int32Array"}Ra.isInt32Array=df;function Ef($h){return sd($h)==="Float32Array"}Ra.isFloat32Array=Ef;function pf($h){return sd($h)==="Float64Array"}Ra.isFloat64Array=pf;function mf($h){return sd($h)==="BigInt64Array"}Ra.isBigInt64Array=mf;function _f($h){return sd($h)==="BigUint64Array"}Ra.isBigUint64Array=_f;function xf($h){return gd($h)==="[object Map]"}xf.working=typeof Map<"u"&&xf(new Map);function Cf($h){return typeof Map>"u"?!1:xf.working?xf($h):$h instanceof Map}Ra.isMap=Cf;function If($h){return gd($h)==="[object Set]"}If.working=typeof Set<"u"&&If(new Set);function Sf($h){return typeof Set>"u"?!1:If.working?If($h):$h instanceof Set}Ra.isSet=Sf;function wf($h){return gd($h)==="[object WeakMap]"}wf.working=typeof WeakMap<"u"&&wf(new WeakMap);function Pf($h){return typeof WeakMap>"u"?!1:wf.working?wf($h):$h instanceof WeakMap}Ra.isWeakMap=Pf;function lh($h){return gd($h)==="[object WeakSet]"}lh.working=typeof WeakSet<"u"&&lh(new WeakSet);function xh($h){return lh($h)}Ra.isWeakSet=xh;function Eh($h){return gd($h)==="[object ArrayBuffer]"}Eh.working=typeof ArrayBuffer<"u"&&Eh(new ArrayBuffer);function Mh($h){return typeof ArrayBuffer>"u"?!1:Eh.working?Eh($h):$h instanceof ArrayBuffer}Ra.isArrayBuffer=Mh;function dh($h){return gd($h)==="[object DataView]"}dh.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&dh(new DataView(new ArrayBuffer(1),0,1));function eh($h){return typeof DataView>"u"?!1:dh.working?dh($h):$h instanceof DataView}Ra.isDataView=eh;var fh=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function Sh($h){return gd($h)==="[object SharedArrayBuffer]"}function vh($h){return typeof fh>"u"?!1:(typeof Sh.working>"u"&&(Sh.working=Sh(new fh)),Sh.working?Sh($h):$h instanceof fh)}Ra.isSharedArrayBuffer=vh;function Df($h){return gd($h)==="[object AsyncFunction]"}Ra.isAsyncFunction=Df;function Af($h){return gd($h)==="[object Map Iterator]"}Ra.isMapIterator=Af;function _h($h){return gd($h)==="[object Set Iterator]"}Ra.isSetIterator=_h;function Nh($h){return gd($h)==="[object Generator]"}Ra.isGeneratorObject=Nh;function dm($h){return gd($h)==="[object WebAssembly.Module]"}Ra.isWebAssemblyCompiledModule=dm;function Jf($h){return Fd($h,yd)}Ra.isNumberObject=Jf;function oh($h){return Fd($h,vd)}Ra.isStringObject=oh;function Xh($h){return Fd($h,Nd)}Ra.isBooleanObject=Xh;function Tm($h){return hd&&Fd($h,Md)}Ra.isBigIntObject=Tm;function kh($h){return md&&Fd($h,Ld)}Ra.isSymbolObject=kh;function Zf($h){return Jf($h)||oh($h)||Xh($h)||Tm($h)||kh($h)}Ra.isBoxedPrimitive=Zf;function th($h){return typeof Uint8Array<"u"&&(Mh($h)||vh($h))}Ra.isAnyArrayBuffer=th,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function($h){Object.defineProperty(Ra,$h,{enumerable:!1,value:function(){throw new Error($h+" is not supported in userland")}})})})(types$1);var isBufferBrowser=function(qa){return qa&&typeof qa=="object"&&typeof qa.copy=="function"&&typeof qa.fill=="function"&&typeof qa.readUInt8=="function"};(function(Ra){var qa={version:"v20.18.3",versions:{node:"20.18.3",acorn:"8.14.0",ada:"2.9.2",ares:"1.34.4",base64:"0.5.2",brotli:"1.1.0",cjs_module_lexer:"1.4.1",cldr:"45.0",icu:"75.1",llhttp:"8.1.2",modules:"115",napi:"9",nghttp2:"1.61.0",nghttp3:"0.7.0",ngtcp2:"1.1.0",openssl:"3.0.15+quic",simdutf:"5.6.4",tz:"2024b",undici:"6.21.1",unicode:"15.1",uv:"1.46.0",uvwasi:"0.0.21",v8:"11.3.244.8-node.25",zlib:"1.3.0.1-motley-82a5fec"},arch:"x64",platform:"linux",release:{name:"node",lts:"Iron",sourceUrl:"https://nodejs.org/download/release/v20.18.3/node-v20.18.3.tar.gz",headersUrl:"https://nodejs.org/download/release/v20.18.3/node-v20.18.3-headers.tar.gz"},moduleLoadList:["Internal Binding builtins","Internal Binding module_wrap","Internal Binding errors","NativeModule internal/assert","Internal Binding util","NativeModule internal/errors","Internal Binding config","Internal Binding timers","Internal Binding async_wrap","Internal Binding task_queue","Internal Binding symbols","NativeModule internal/async_hooks","Internal Binding constants","Internal Binding types","Internal Binding options","NativeModule internal/options","Internal Binding string_decoder","NativeModule internal/util","NativeModule internal/util/types","NativeModule internal/validators","NativeModule internal/linkedlist","NativeModule internal/priority_queue","Internal Binding icu","NativeModule internal/util/inspect","NativeModule internal/util/debuglog","NativeModule internal/timers","NativeModule internal/events/abort_listener","NativeModule events","Internal Binding buffer","NativeModule internal/buffer","NativeModule buffer","Internal Binding messaging","NativeModule internal/worker/js_transferable","NativeModule internal/querystring","NativeModule internal/constants","NativeModule path","NativeModule querystring","Internal Binding url","NativeModule internal/url","NativeModule internal/fs/utils","Internal Binding process_methods","NativeModule internal/process/per_thread","Internal Binding credentials","NativeModule internal/process/promises","NativeModule internal/fixed_queue","NativeModule async_hooks","NativeModule internal/process/task_queues","NativeModule timers","Internal Binding trace_events","Internal Binding contextify","NativeModule internal/vm","NativeModule internal/process/execution","NativeModule internal/process/warning","NativeModule internal/source_map/source_map_cache","Internal Binding fs","Internal Binding blob","Internal Binding encoding_binding","NativeModule internal/encoding","NativeModule internal/streams/utils","NativeModule util","NativeModule internal/webstreams/util","NativeModule internal/webstreams/queuingstrategies","NativeModule internal/blob","Internal Binding permission","NativeModule internal/process/permission","NativeModule fs","NativeModule internal/modules/helpers","NativeModule internal/console/constructor","NativeModule internal/console/global","NativeModule internal/util/inspector","Internal Binding inspector","NativeModule internal/webidl","Internal Binding performance","NativeModule internal/perf/utils","NativeModule internal/event_target","Internal Binding wasm_web_api","Internal Binding mksnapshot","NativeModule internal/v8/startup_snapshot","NativeModule internal/process/signal","NativeModule url","NativeModule internal/modules/package_json_reader","NativeModule internal/modules/cjs/loader","NativeModule internal/process/pre_execution","NativeModule internal/modules/esm/utils","NativeModule internal/inspector_async_hook","Internal Binding worker","NativeModule internal/modules/run_main","NativeModule internal/net","NativeModule internal/dns/utils","NativeModule internal/modules/esm/assert","NativeModule internal/modules/esm/loader","NativeModule internal/modules/esm/module_map","NativeModule internal/modules/esm/translators","NativeModule internal/modules/esm/package_config","NativeModule internal/modules/esm/formats","NativeModule internal/modules/esm/get_format","NativeModule internal/modules/esm/resolve","NativeModule internal/modules/esm/module_job","NativeModule internal/modules/esm/load","Internal Binding fs_dir","NativeModule internal/fs/dir","NativeModule string_decoder","Internal Binding fs_event_wrap","Internal Binding uv","NativeModule internal/fs/watchers","NativeModule internal/fs/recursive_watch","NativeModule internal/readline/utils","NativeModule internal/readline/callbacks","NativeModule internal/readline/interface","NativeModule internal/fs/promises","NativeModule internal/perf/performance_entry","NativeModule internal/perf/observe","NativeModule internal/perf/resource_timing","NativeModule internal/perf/nodetiming","NativeModule internal/perf/usertiming","NativeModule internal/perf/event_loop_utilization","NativeModule internal/histogram","NativeModule internal/perf/timerify","NativeModule internal/perf/performance","NativeModule internal/perf/event_loop_delay","NativeModule perf_hooks","NativeModule internal/modules/esm/initialize_import_meta","NativeModule internal/streams/destroy","NativeModule internal/abort_controller","NativeModule internal/streams/end-of-stream","NativeModule internal/streams/legacy","NativeModule internal/streams/add-abort-signal","NativeModule internal/streams/state","NativeModule internal/streams/from","NativeModule internal/streams/readable","NativeModule internal/streams/writable","NativeModule internal/streams/duplex","NativeModule internal/streams/pipeline","NativeModule internal/streams/compose","NativeModule internal/streams/operators","NativeModule stream/promises","NativeModule internal/streams/transform","NativeModule internal/streams/passthrough","NativeModule internal/streams/duplexpair","NativeModule stream","NativeModule internal/fs/streams","NativeModule fs/promises","NativeModule internal/util/parse_args/utils","NativeModule internal/util/parse_args/parse_args","NativeModule internal/mime","NativeModule internal/source_map/source_map","NativeModule module","Internal Binding crypto","NativeModule internal/crypto/random","NativeModule internal/crypto/hashnames","NativeModule internal/crypto/util","NativeModule internal/crypto/pbkdf2","NativeModule internal/crypto/scrypt","NativeModule internal/crypto/keys","NativeModule internal/crypto/hkdf","NativeModule internal/crypto/keygen","NativeModule internal/crypto/diffiehellman","NativeModule internal/streams/lazy_transform","NativeModule internal/crypto/cipher","NativeModule internal/crypto/sig","NativeModule internal/crypto/hash","NativeModule internal/crypto/x509","NativeModule internal/crypto/certificate","NativeModule crypto","NativeModule internal/crypto/webcrypto","Internal Binding stream_wrap","Internal Binding tcp_wrap","Internal Binding pipe_wrap","NativeModule internal/stream_base_commons","NativeModule diagnostics_channel","NativeModule net","Internal Binding tty_wrap","NativeModule internal/tty","NativeModule tty","NativeModule internal/deps/cjs-module-lexer/dist/lexer","Internal Binding udp_wrap","NativeModule internal/dgram","NativeModule dgram","Internal Binding process_wrap","NativeModule internal/socket_list","Internal Binding spawn_sync","NativeModule internal/child_process","NativeModule child_process","NativeModule _http_agent","Internal Binding http_parser","NativeModule internal/freelist","NativeModule _http_incoming","NativeModule _http_common","NativeModule internal/http","NativeModule _http_outgoing","NativeModule _http_client","NativeModule _http_server","NativeModule http","Internal Binding cares_wrap","NativeModule internal/tls/secure-context","NativeModule _tls_common","Internal Binding js_stream","NativeModule internal/js_stream_socket","Internal Binding tls_wrap","NativeModule _tls_wrap","NativeModule internal/tls/secure-pair","NativeModule tls","NativeModule https","Internal Binding block_list","NativeModule internal/socketaddress","NativeModule internal/blocklist","Internal Binding os","NativeModule os","NativeModule internal/dns/callback_resolver","NativeModule dns","NativeModule internal/dns/promises","NativeModule internal/util/colors","NativeModule internal/assert/assertion_error","NativeModule internal/assert/utils","NativeModule internal/assert/calltracker","NativeModule assert","Internal Binding serdes","Internal Binding profiler","Internal Binding heap_utils","Internal Binding internal_only_v8","NativeModule internal/heap_utils","NativeModule internal/promise_hooks","Internal Binding v8","NativeModule v8","NativeModule internal/worker/io","NativeModule internal/error_serdes","NativeModule internal/worker","NativeModule worker_threads","NativeModule internal/file","NativeModule internal/readline/emitKeypressEvents","NativeModule internal/readline/promises","NativeModule readline/promises","NativeModule readline","Internal Binding zlib","NativeModule zlib","NativeModule process","Internal Binding report","NativeModule internal/process/report","NativeModule constants","NativeModule internal/crypto/webidl"],_events:{newListener:[null,null],removeListener:[null,null]},_eventsCount:3,domain:null,_exiting:!1,config:{target_defaults:{cflags:[],default_configuration:"Release",defines:["NODE_OPENSSL_CONF_NAME=nodejs_conf","NODE_OPENSSL_HAS_QUIC","ICU_NO_USER_DATA_OVERRIDE"],include_dirs:[],libraries:[]},variables:{asan:0,clang:0,coverage:!1,dcheck_always_on:0,debug_nghttp2:!1,debug_node:!1,enable_lto:!1,enable_pgo_generate:!1,enable_pgo_use:!1,error_on_warn:!1,force_dynamic_crt:0,gas_version:"2.35",host_arch:"x64",icu_data_in:"../../deps/icu-tmp/icudt75l.dat",icu_endianness:"l",icu_gyp_path:"tools/icu/icu-generic.gyp",icu_path:"deps/icu-small",icu_small:!1,icu_ver_major:"75",is_debug:0,libdir:"lib",llvm_version:"0.0",napi_build_version:"9",node_builtin_shareable_builtins:["deps/cjs-module-lexer/lexer.js","deps/cjs-module-lexer/dist/lexer.js","deps/undici/undici.js"],node_byteorder:"little",node_debug_lib:!1,node_enable_d8:!1,node_enable_v8_vtunejit:!1,node_fipsinstall:!1,node_install_corepack:!0,node_install_npm:!0,node_library_files:["lib/_http_agent.js","lib/_http_client.js","lib/_http_common.js","lib/_http_incoming.js","lib/_http_outgoing.js","lib/_http_server.js","lib/_stream_duplex.js","lib/_stream_passthrough.js","lib/_stream_readable.js","lib/_stream_transform.js","lib/_stream_wrap.js","lib/_stream_writable.js","lib/_tls_common.js","lib/_tls_wrap.js","lib/assert.js","lib/assert/strict.js","lib/async_hooks.js","lib/buffer.js","lib/child_process.js","lib/cluster.js","lib/console.js","lib/constants.js","lib/crypto.js","lib/dgram.js","lib/diagnostics_channel.js","lib/dns.js","lib/dns/promises.js","lib/domain.js","lib/events.js","lib/fs.js","lib/fs/promises.js","lib/http.js","lib/http2.js","lib/https.js","lib/inspector.js","lib/inspector/promises.js","lib/internal/abort_controller.js","lib/internal/assert.js","lib/internal/assert/assertion_error.js","lib/internal/assert/calltracker.js","lib/internal/assert/utils.js","lib/internal/async_hooks.js","lib/internal/blob.js","lib/internal/blocklist.js","lib/internal/bootstrap/node.js","lib/internal/bootstrap/realm.js","lib/internal/bootstrap/shadow_realm.js","lib/internal/bootstrap/switches/does_not_own_process_state.js","lib/internal/bootstrap/switches/does_own_process_state.js","lib/internal/bootstrap/switches/is_main_thread.js","lib/internal/bootstrap/switches/is_not_main_thread.js","lib/internal/bootstrap/web/exposed-wildcard.js","lib/internal/bootstrap/web/exposed-window-or-worker.js","lib/internal/buffer.js","lib/internal/child_process.js","lib/internal/child_process/serialization.js","lib/internal/cli_table.js","lib/internal/cluster/child.js","lib/internal/cluster/primary.js","lib/internal/cluster/round_robin_handle.js","lib/internal/cluster/shared_handle.js","lib/internal/cluster/utils.js","lib/internal/cluster/worker.js","lib/internal/console/constructor.js","lib/internal/console/global.js","lib/internal/constants.js","lib/internal/crypto/aes.js","lib/internal/crypto/certificate.js","lib/internal/crypto/cfrg.js","lib/internal/crypto/cipher.js","lib/internal/crypto/diffiehellman.js","lib/internal/crypto/ec.js","lib/internal/crypto/hash.js","lib/internal/crypto/hashnames.js","lib/internal/crypto/hkdf.js","lib/internal/crypto/keygen.js","lib/internal/crypto/keys.js","lib/internal/crypto/mac.js","lib/internal/crypto/pbkdf2.js","lib/internal/crypto/random.js","lib/internal/crypto/rsa.js","lib/internal/crypto/scrypt.js","lib/internal/crypto/sig.js","lib/internal/crypto/util.js","lib/internal/crypto/webcrypto.js","lib/internal/crypto/webidl.js","lib/internal/crypto/x509.js","lib/internal/debugger/inspect.js","lib/internal/debugger/inspect_client.js","lib/internal/debugger/inspect_repl.js","lib/internal/dgram.js","lib/internal/dns/callback_resolver.js","lib/internal/dns/promises.js","lib/internal/dns/utils.js","lib/internal/encoding.js","lib/internal/error_serdes.js","lib/internal/errors.js","lib/internal/event_target.js","lib/internal/events/abort_listener.js","lib/internal/events/symbols.js","lib/internal/file.js","lib/internal/fixed_queue.js","lib/internal/freelist.js","lib/internal/freeze_intrinsics.js","lib/internal/fs/cp/cp-sync.js","lib/internal/fs/cp/cp.js","lib/internal/fs/dir.js","lib/internal/fs/promises.js","lib/internal/fs/read/context.js","lib/internal/fs/recursive_watch.js","lib/internal/fs/rimraf.js","lib/internal/fs/streams.js","lib/internal/fs/sync_write_stream.js","lib/internal/fs/utils.js","lib/internal/fs/watchers.js","lib/internal/heap_utils.js","lib/internal/histogram.js","lib/internal/http.js","lib/internal/http2/compat.js","lib/internal/http2/core.js","lib/internal/http2/util.js","lib/internal/inspector_async_hook.js","lib/internal/inspector_network_tracking.js","lib/internal/js_stream_socket.js","lib/internal/legacy/processbinding.js","lib/internal/linkedlist.js","lib/internal/main/check_syntax.js","lib/internal/main/embedding.js","lib/internal/main/eval_stdin.js","lib/internal/main/eval_string.js","lib/internal/main/inspect.js","lib/internal/main/mksnapshot.js","lib/internal/main/print_help.js","lib/internal/main/prof_process.js","lib/internal/main/repl.js","lib/internal/main/run_main_module.js","lib/internal/main/test_runner.js","lib/internal/main/watch_mode.js","lib/internal/main/worker_thread.js","lib/internal/mime.js","lib/internal/modules/cjs/loader.js","lib/internal/modules/esm/assert.js","lib/internal/modules/esm/create_dynamic_module.js","lib/internal/modules/esm/fetch_module.js","lib/internal/modules/esm/formats.js","lib/internal/modules/esm/get_format.js","lib/internal/modules/esm/hooks.js","lib/internal/modules/esm/initialize_import_meta.js","lib/internal/modules/esm/load.js","lib/internal/modules/esm/loader.js","lib/internal/modules/esm/module_job.js","lib/internal/modules/esm/module_map.js","lib/internal/modules/esm/package_config.js","lib/internal/modules/esm/resolve.js","lib/internal/modules/esm/shared_constants.js","lib/internal/modules/esm/translators.js","lib/internal/modules/esm/utils.js","lib/internal/modules/esm/worker.js","lib/internal/modules/helpers.js","lib/internal/modules/package_json_reader.js","lib/internal/modules/run_main.js","lib/internal/navigator.js","lib/internal/net.js","lib/internal/options.js","lib/internal/per_context/domexception.js","lib/internal/per_context/messageport.js","lib/internal/per_context/primordials.js","lib/internal/perf/event_loop_delay.js","lib/internal/perf/event_loop_utilization.js","lib/internal/perf/nodetiming.js","lib/internal/perf/observe.js","lib/internal/perf/performance.js","lib/internal/perf/performance_entry.js","lib/internal/perf/resource_timing.js","lib/internal/perf/timerify.js","lib/internal/perf/usertiming.js","lib/internal/perf/utils.js","lib/internal/policy/manifest.js","lib/internal/policy/sri.js","lib/internal/priority_queue.js","lib/internal/process/execution.js","lib/internal/process/per_thread.js","lib/internal/process/permission.js","lib/internal/process/policy.js","lib/internal/process/pre_execution.js","lib/internal/process/promises.js","lib/internal/process/report.js","lib/internal/process/signal.js","lib/internal/process/task_queues.js","lib/internal/process/warning.js","lib/internal/process/worker_thread_only.js","lib/internal/promise_hooks.js","lib/internal/querystring.js","lib/internal/readline/callbacks.js","lib/internal/readline/emitKeypressEvents.js","lib/internal/readline/interface.js","lib/internal/readline/promises.js","lib/internal/readline/utils.js","lib/internal/repl.js","lib/internal/repl/await.js","lib/internal/repl/history.js","lib/internal/repl/utils.js","lib/internal/socket_list.js","lib/internal/socketaddress.js","lib/internal/source_map/prepare_stack_trace.js","lib/internal/source_map/source_map.js","lib/internal/source_map/source_map_cache.js","lib/internal/stream_base_commons.js","lib/internal/streams/add-abort-signal.js","lib/internal/streams/compose.js","lib/internal/streams/destroy.js","lib/internal/streams/duplex.js","lib/internal/streams/duplexify.js","lib/internal/streams/duplexpair.js","lib/internal/streams/end-of-stream.js","lib/internal/streams/from.js","lib/internal/streams/lazy_transform.js","lib/internal/streams/legacy.js","lib/internal/streams/operators.js","lib/internal/streams/passthrough.js","lib/internal/streams/pipeline.js","lib/internal/streams/readable.js","lib/internal/streams/state.js","lib/internal/streams/transform.js","lib/internal/streams/utils.js","lib/internal/streams/writable.js","lib/internal/test/binding.js","lib/internal/test/transfer.js","lib/internal/test_runner/coverage.js","lib/internal/test_runner/harness.js","lib/internal/test_runner/mock/loader.js","lib/internal/test_runner/mock/mock.js","lib/internal/test_runner/mock/mock_timers.js","lib/internal/test_runner/reporter/dot.js","lib/internal/test_runner/reporter/junit.js","lib/internal/test_runner/reporter/lcov.js","lib/internal/test_runner/reporter/spec.js","lib/internal/test_runner/reporter/tap.js","lib/internal/test_runner/reporter/utils.js","lib/internal/test_runner/reporter/v8-serializer.js","lib/internal/test_runner/runner.js","lib/internal/test_runner/test.js","lib/internal/test_runner/tests_stream.js","lib/internal/test_runner/utils.js","lib/internal/timers.js","lib/internal/tls/secure-context.js","lib/internal/tls/secure-pair.js","lib/internal/trace_events_async_hooks.js","lib/internal/tty.js","lib/internal/url.js","lib/internal/util.js","lib/internal/util/colors.js","lib/internal/util/comparisons.js","lib/internal/util/debuglog.js","lib/internal/util/embedding.js","lib/internal/util/inspect.js","lib/internal/util/inspector.js","lib/internal/util/iterable_weak_map.js","lib/internal/util/parse_args/parse_args.js","lib/internal/util/parse_args/utils.js","lib/internal/util/types.js","lib/internal/v8/startup_snapshot.js","lib/internal/v8_prof_polyfill.js","lib/internal/v8_prof_processor.js","lib/internal/validators.js","lib/internal/vm.js","lib/internal/vm/module.js","lib/internal/wasm_web_api.js","lib/internal/watch_mode/files_watcher.js","lib/internal/watchdog.js","lib/internal/webidl.js","lib/internal/webstreams/adapters.js","lib/internal/webstreams/compression.js","lib/internal/webstreams/encoding.js","lib/internal/webstreams/queuingstrategies.js","lib/internal/webstreams/readablestream.js","lib/internal/webstreams/transfer.js","lib/internal/webstreams/transformstream.js","lib/internal/webstreams/util.js","lib/internal/webstreams/writablestream.js","lib/internal/worker.js","lib/internal/worker/io.js","lib/internal/worker/js_transferable.js","lib/module.js","lib/net.js","lib/os.js","lib/path.js","lib/path/posix.js","lib/path/win32.js","lib/perf_hooks.js","lib/process.js","lib/punycode.js","lib/querystring.js","lib/readline.js","lib/readline/promises.js","lib/repl.js","lib/sea.js","lib/stream.js","lib/stream/consumers.js","lib/stream/promises.js","lib/stream/web.js","lib/string_decoder.js","lib/sys.js","lib/test.js","lib/test/reporters.js","lib/timers.js","lib/timers/promises.js","lib/tls.js","lib/trace_events.js","lib/tty.js","lib/url.js","lib/util.js","lib/util/types.js","lib/v8.js","lib/vm.js","lib/wasi.js","lib/worker_threads.js","lib/zlib.js"],node_module_version:115,node_no_browser_globals:!1,node_prefix:"/",node_release_urlbase:"https://nodejs.org/download/release/",node_section_ordering_info:"",node_shared:!1,node_shared_ada:!1,node_shared_brotli:!1,node_shared_cares:!1,node_shared_http_parser:!1,node_shared_libuv:!1,node_shared_nghttp2:!1,node_shared_nghttp3:!1,node_shared_ngtcp2:!1,node_shared_openssl:!1,node_shared_simdjson:!1,node_shared_simdutf:!1,node_shared_uvwasi:!1,node_shared_zlib:!1,node_tag:"",node_target_type:"executable",node_use_bundled_v8:!0,node_use_node_code_cache:!0,node_use_node_snapshot:!0,node_use_openssl:!0,node_use_v8_platform:!0,node_with_ltcg:!1,node_without_node_options:!1,node_write_snapshot_as_array_literals:!1,openssl_is_fips:!1,openssl_quic:!0,ossfuzz:!1,shlib_suffix:"so.115",single_executable_application:!0,target_arch:"x64",ubsan:0,use_prefix_to_find_headers:!1,v8_enable_31bit_smis_on_64bit_arch:0,v8_enable_extensible_ro_snapshot:0,v8_enable_gdbjit:0,v8_enable_hugepage:0,v8_enable_i18n_support:1,v8_enable_inspector:1,v8_enable_javascript_promise_hooks:1,v8_enable_lite_mode:0,v8_enable_maglev:0,v8_enable_object_print:1,v8_enable_pointer_compression:0,v8_enable_sandbox:0,v8_enable_shared_ro_heap:1,v8_enable_short_builtin_calls:1,v8_enable_v8_checks:0,v8_enable_webassembly:1,v8_no_strict_aliasing:1,v8_optimized_debug:1,v8_promise_internal_field_count:1,v8_random_seed:0,v8_trace_maps:0,v8_use_siphash:1,want_separate_host_toolset:0}},allowedNodeEnvironmentFlags:{},features:{inspector:!0,debug:!1,uv:!0,ipv6:!0,tls_alpn:!0,tls_sni:!0,tls_ocsp:!0,tls:!0,cached_builtins:!0},sourceMapsEnabled:!1,stdout:{connecting:!1,_hadError:!1,_parent:null,_host:null,_closeAfterHandlingError:!1,_events:{},_readableState:{highWaterMark:16384,buffer:[],bufferIndex:0,length:0,pipes:[],awaitDrainWriters:null,readable:!1},_writableState:{highWaterMark:16384,length:0,corked:0,writelen:0,bufferedIndex:0,pendingcb:0},allowHalfOpen:!1,_eventsCount:1,_sockname:null,_pendingData:null,_pendingEncoding:"",server:null,_server:null,_type:"pipe",fd:1,_isStdio:!0},stdin:{connecting:!1,_hadError:!1,_parent:null,_host:null,_closeAfterHandlingError:!1,_events:{},_readableState:{highWaterMark:16384,buffer:[],bufferIndex:0,length:0,pipes:[],awaitDrainWriters:null},_writableState:{highWaterMark:16384,length:0,corked:0,writelen:0,bufferedIndex:0,pendingcb:0},allowHalfOpen:!1,_eventsCount:2,_sockname:null,_pendingData:null,_pendingEncoding:"",server:null,_server:null,fd:0},stderr:{connecting:!1,_hadError:!1,_parent:null,_host:null,_closeAfterHandlingError:!1,_events:{},_readableState:{highWaterMark:16384,buffer:[],bufferIndex:0,length:0,pipes:[],awaitDrainWriters:null,readable:!1},_writableState:{highWaterMark:16384,length:0,corked:0,writelen:0,bufferedIndex:0,pendingcb:0},allowHalfOpen:!1,_eventsCount:1,_sockname:null,_pendingData:null,_pendingEncoding:"",server:null,_server:null,_type:"pipe",fd:2,_isStdio:!0},env:{GITHUB_STATE:"/home/runner/work/_temp/_runner_file_commands/save_state_18a51caf-e5c9-4051-9c6d-047b16202017",STATS_TRP:"true",DEPLOYMENT_BASEPATH:"/opt/runner",DOTNET_NOLOGO:"1",USER:"runner",npm_config_user_agent:"npm/10.8.2 node/v20.18.3 linux x64 workspaces/false ci/github-actions",CI:"true",RUNNER_ENVIRONMENT:"github-hosted",GITHUB_ENV:"/home/runner/work/_temp/_runner_file_commands/set_env_18a51caf-e5c9-4051-9c6d-047b16202017",PIPX_HOME:"/opt/pipx",npm_node_execpath:"/opt/hostedtoolcache/node/20.18.3/x64/bin/node",JAVA_HOME_8_X64:"/usr/lib/jvm/temurin-8-jdk-amd64",SHLVL:"1",npm_config_noproxy:"",HOME:"/home/runner",RUNNER_TEMP:"/home/runner/work/_temp",GITHUB_EVENT_PATH:"/home/runner/work/_temp/_github_workflow/event.json",npm_package_json:"/home/runner/work/md/md/package.json",JAVA_HOME_11_X64:"/usr/lib/jvm/temurin-11-jdk-amd64",PIPX_BIN_DIR:"/opt/pipx_bin",GITHUB_REPOSITORY_OWNER:"doocs",GRADLE_HOME:"/usr/share/gradle-8.12.1",ANDROID_NDK_LATEST_HOME:"/usr/local/lib/android/sdk/ndk/28.0.13004108",JAVA_HOME_21_X64:"/usr/lib/jvm/temurin-21-jdk-amd64",STATS_RDCL:"true",GITHUB_RETENTION_DAYS:"90",GITHUB_REPOSITORY_OWNER_ID:"43716716",POWERSHELL_DISTRIBUTION_CHANNEL:"GitHub-Actions-ubuntu24",AZURE_EXTENSION_DIR:"/opt/az/azcliextensions",GITHUB_HEAD_REF:"",npm_config_userconfig:"/home/runner/.npmrc",npm_config_local_prefix:"/home/runner/work/md/md",SYSTEMD_EXEC_PID:"830",GITHUB_GRAPHQL_URL:"https://api.github.com/graphql",COLOR:"0",NVM_DIR:"/home/runner/.nvm",DOTNET_SKIP_FIRST_TIME_EXPERIENCE:"1",GOROOT_1_21_X64:"/opt/hostedtoolcache/go/1.21.13/x64",JAVA_HOME_17_X64:"/usr/lib/jvm/temurin-17-jdk-amd64",ImageVersion:"20250223.1.0",RUNNER_OS:"Linux",GITHUB_API_URL:"https://api.github.com",GOROOT_1_22_X64:"/opt/hostedtoolcache/go/1.22.12/x64",SWIFT_PATH:"/usr/share/swift/usr/bin",RUNNER_USER:"runner",STATS_V3PS:"true",CHROMEWEBDRIVER:"/usr/local/share/chromedriver-linux64",GOROOT_1_23_X64:"/opt/hostedtoolcache/go/1.23.6/x64",JOURNAL_STREAM:"8:7475",GITHUB_WORKFLOW:"Build and Deploy",_:"/opt/hostedtoolcache/node/20.18.3/x64/bin/npm",npm_config_prefix:"/opt/hostedtoolcache/node/20.18.3/x64",npm_config_npm_version:"10.8.2",MEMORY_PRESSURE_WATCH:"/sys/fs/cgroup/system.slice/runner-provisioner.service/memory.pressure",ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE:"/opt/actionarchivecache",STATS_D:"true",GITHUB_RUN_ID:"13615010219",STATS_VMFE:"true",npm_config_cache:"/home/runner/.npm",GITHUB_REF_TYPE:"branch",BOOTSTRAP_HASKELL_NONINTERACTIVE:"1",GITHUB_WORKFLOW_SHA:"757697bf0a09df0bac18ef9292efbd16190f9623",GITHUB_BASE_REF:"",ImageOS:"ubuntu24",GITHUB_WORKFLOW_REF:"doocs/md/.github/workflows/build.yml@refs/heads/main",PERFLOG_LOCATION_SETTING:"RUNNER_PERFLOG",GITHUB_ACTION_REPOSITORY:"",npm_config_node_gyp:"/opt/hostedtoolcache/node/20.18.3/x64/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",PATH:"/home/runner/work/md/md/node_modules/.bin:/home/runner/work/md/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/20.18.3/x64/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/home/runner/work/md/md/node_modules/.bin:/home/runner/work/md/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/20.18.3/x64/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/opt/hostedtoolcache/node/20.18.3/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin",ANT_HOME:"/usr/share/ant",DOTNET_MULTILEVEL_LOOKUP:"0",RUNNER_TRACKING_ID:"github_1fb27123-8112-41d5-8496-e07ab36dd844",INVOCATION_ID:"e834f6d4e33e4a03b891bf70cc20a8b3",RUNNER_TOOL_CACHE:"/opt/hostedtoolcache",NODE:"/opt/hostedtoolcache/node/20.18.3/x64/bin/node",npm_package_name:"md",GITHUB_ACTION:"__run_2",GITHUB_RUN_NUMBER:"501",GITHUB_TRIGGERING_ACTOR:"yanglbme",RUNNER_ARCH:"X64",XDG_RUNTIME_DIR:"/run/user/1001",AGENT_TOOLSDIRECTORY:"/opt/hostedtoolcache",LANG:"C.UTF-8",VCPKG_INSTALLATION_ROOT:"/usr/local/share/vcpkg",CONDA:"/usr/share/miniconda",RUNNER_NAME:"GitHub Actions 4",XDG_CONFIG_HOME:"/home/runner/.config",STATS_VMD:"true",GITHUB_REF_NAME:"main",GITHUB_REPOSITORY:"doocs/md",STATS_D_D:"true",npm_lifecycle_script:"vite build",STATS_UE:"true",ANDROID_NDK_ROOT:"/usr/local/lib/android/sdk/ndk/27.2.12479018",GITHUB_ACTION_REF:"",DEBIAN_FRONTEND:"noninteractive",GITHUB_REPOSITORY_ID:"218952803",GITHUB_ACTIONS:"true",STATS_PIP:"false",npm_package_version:"1.6.0",npm_lifecycle_event:"build:only",GITHUB_REF_PROTECTED:"true",GITHUB_WORKSPACE:"/home/runner/work/md/md",ACCEPT_EULA:"Y",GITHUB_JOB:"build-and-deploy",RUNNER_PERFLOG:"/home/runner/perflog",GITHUB_SHA:"757697bf0a09df0bac18ef9292efbd16190f9623",GITHUB_RUN_ATTEMPT:"1",STATS_D_TC:"true",GITHUB_REF:"refs/heads/main",GITHUB_ACTOR:"yanglbme",ANDROID_SDK_ROOT:"/usr/local/lib/android/sdk",npm_config_globalconfig:"/opt/hostedtoolcache/node/20.18.3/x64/etc/npmrc",npm_config_init_module:"/home/runner/.npm-init.js",GITHUB_PATH:"/home/runner/work/_temp/_runner_file_commands/add_path_18a51caf-e5c9-4051-9c6d-047b16202017",JAVA_HOME:"/usr/lib/jvm/temurin-17-jdk-amd64",PWD:"/home/runner/work/md/md",GITHUB_ACTOR_ID:"21008209",RUNNER_WORKSPACE:"/home/runner/work/md",npm_execpath:"/opt/hostedtoolcache/node/20.18.3/x64/lib/node_modules/npm/bin/npm-cli.js",HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS:"3650",GITHUB_EVENT_NAME:"push",HOMEBREW_NO_AUTO_UPDATE:"1",ANDROID_HOME:"/usr/local/lib/android/sdk",GITHUB_SERVER_URL:"https://github.com",GECKOWEBDRIVER:"/usr/local/share/gecko_driver",GHCUP_INSTALL_BASE_PREFIX:"/usr/local",GITHUB_OUTPUT:"/home/runner/work/_temp/_runner_file_commands/set_output_18a51caf-e5c9-4051-9c6d-047b16202017",npm_config_global_prefix:"/opt/hostedtoolcache/node/20.18.3/x64",EDGEWEBDRIVER:"/usr/local/share/edge_driver",STATS_EXT:"true",npm_command:"run-script",ANDROID_NDK:"/usr/local/lib/android/sdk/ndk/27.2.12479018",SGX_AESM_ADDR:"1",CHROME_BIN:"/usr/bin/google-chrome",SELENIUM_JAR_PATH:"/usr/share/java/selenium-server.jar",MEMORY_PRESSURE_WRITE:"c29tZSAyMDAwMDAgMjAwMDAwMAA=",STATS_EXTP:"https://provjobdprod.z13.web.core.windows.net/settings/provjobdsettings-latest/provjobd.data",ANDROID_NDK_HOME:"/usr/local/lib/android/sdk/ndk/27.2.12479018",GITHUB_STEP_SUMMARY:"/home/runner/work/_temp/_runner_file_commands/step_summary_18a51caf-e5c9-4051-9c6d-047b16202017",INIT_CWD:"/home/runner/work/md/md",EDITOR:"vi",NODE_ENV:"production",LAUNCH_EDITOR:"code"},title:"node",argv:["/opt/hostedtoolcache/node/20.18.3/x64/bin/node","/home/runner/work/md/md/node_modules/.bin/vite","build"],execArgv:[],pid:2166,ppid:2165,execPath:"/opt/hostedtoolcache/node/20.18.3/x64/bin/node",debugPort:9229,argv0:"node",_preload_modules:[],report:{directory:"",filename:"",compact:!1,excludeNetwork:!1,signal:"SIGUSR2",reportOnFatalError:!1,reportOnSignal:!1,reportOnUncaughtException:!1}},rd={},sd=Object.getOwnPropertyDescriptors||function(Sh){for(var vh=Object.keys(Sh),Df={},Af=0;Af=Af)return dm;switch(dm){case"%s":return String(Df[vh++]);case"%d":return Number(Df[vh++]);case"%j":try{return JSON.stringify(Df[vh++])}catch{return"[Circular]"}default:return dm}}),Nh=Df[vh];vh"u")return function(){return Ra.deprecate(fh,Sh).apply(this,arguments)};var vh=!1;function Df(){if(!vh){if(qa.throwDeprecation)throw new Error(Sh);qa.traceDeprecation?console.trace(Sh):console.error(Sh),vh=!0}return fh.apply(this,arguments)}return Df};var fd={},hd=/^$/;if(rd.NODE_DEBUG){var md=rd.NODE_DEBUG;md=md.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),hd=new RegExp("^"+md+"$","i")}Ra.debuglog=function(fh){if(fh=fh.toUpperCase(),!fd[fh])if(hd.test(fh)){var Sh=qa.pid;fd[fh]=function(){var vh=Ra.format.apply(Ra,arguments);console.error("%s %d: %s",fh,Sh,vh)}}else fd[fh]=function(){};return fd[fh]};function gd(fh,Sh){var vh={seen:[],stylize:vd};return arguments.length>=3&&(vh.depth=arguments[2]),arguments.length>=4&&(vh.colors=arguments[3]),qd(Sh)?vh.showHidden=Sh:Sh&&Ra._extend(vh,Sh),pf(vh.showHidden)&&(vh.showHidden=!1),pf(vh.depth)&&(vh.depth=2),pf(vh.colors)&&(vh.colors=!1),pf(vh.customInspect)&&(vh.customInspect=!0),vh.colors&&(vh.stylize=yd),Md(vh,fh,vh.depth)}Ra.inspect=gd,gd.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},gd.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function yd(fh,Sh){var vh=gd.styles[Sh];return vh?"\x1B["+gd.colors[vh][0]+"m"+fh+"\x1B["+gd.colors[vh][1]+"m":fh}function vd(fh,Sh){return fh}function Nd(fh){var Sh={};return fh.forEach(function(vh,Df){Sh[vh]=!0}),Sh}function Md(fh,Sh,vh){if(fh.customInspect&&Sh&&If(Sh.inspect)&&Sh.inspect!==Ra.inspect&&!(Sh.constructor&&Sh.constructor.prototype===Sh)){var Df=Sh.inspect(vh,fh);return df(Df)||(Df=Md(fh,Df,vh)),Df}var Af=Ld(fh,Sh);if(Af)return Af;var _h=Object.keys(Sh),Nh=Nd(_h);if(fh.showHidden&&(_h=Object.getOwnPropertyNames(Sh)),Cf(Sh)&&(_h.indexOf("message")>=0||_h.indexOf("description")>=0))return Fd(Sh);if(_h.length===0){if(If(Sh)){var dm=Sh.name?": "+Sh.name:"";return fh.stylize("[Function"+dm+"]","special")}if(mf(Sh))return fh.stylize(RegExp.prototype.toString.call(Sh),"regexp");if(xf(Sh))return fh.stylize(Date.prototype.toString.call(Sh),"date");if(Cf(Sh))return Fd(Sh)}var Jf="",oh=!1,Xh=["{","}"];if(Ud(Sh)&&(oh=!0,Xh=["[","]"]),If(Sh)){var Tm=Sh.name?": "+Sh.name:"";Jf=" [Function"+Tm+"]"}if(mf(Sh)&&(Jf=" "+RegExp.prototype.toString.call(Sh)),xf(Sh)&&(Jf=" "+Date.prototype.toUTCString.call(Sh)),Cf(Sh)&&(Jf=" "+Fd(Sh)),_h.length===0&&(!oh||Sh.length==0))return Xh[0]+Jf+Xh[1];if(vh<0)return mf(Sh)?fh.stylize(RegExp.prototype.toString.call(Sh),"regexp"):fh.stylize("[Object]","special");fh.seen.push(Sh);var kh;return oh?kh=Hd(fh,Sh,vh,Nh,_h):kh=_h.map(function(Zf){return Vd(fh,Sh,vh,Nh,Zf,oh)}),fh.seen.pop(),Gd(kh,Jf,Xh)}function Ld(fh,Sh){if(pf(Sh))return fh.stylize("undefined","undefined");if(df(Sh)){var vh="'"+JSON.stringify(Sh).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return fh.stylize(vh,"string")}if(Xd(Sh))return fh.stylize(""+Sh,"number");if(qd(Sh))return fh.stylize(""+Sh,"boolean");if(Wd(Sh))return fh.stylize("null","null")}function Fd(fh){return"["+Error.prototype.toString.call(fh)+"]"}function Hd(fh,Sh,vh,Df,Af){for(var _h=[],Nh=0,dm=Sh.length;Nhpd)throw new RangeError('The value "'+kh+'" is invalid for option "size"');var Zf=new Uint8Array(kh);return Object.setPrototypeOf(Zf,md.prototype),Zf}function md(kh,Zf,th){if(typeof kh=="number"){if(typeof Zf=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return Nd(kh)}return gd(kh,Zf,th)}md.poolSize=8192;function gd(kh,Zf,th){if(typeof kh=="string")return Md(kh,Zf);if(ArrayBuffer.isView(kh))return Fd(kh);if(kh==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof kh);if(oh(kh,ArrayBuffer)||kh&&oh(kh.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(oh(kh,SharedArrayBuffer)||kh&&oh(kh.buffer,SharedArrayBuffer)))return Hd(kh,Zf,th);if(typeof kh=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var $h=kh.valueOf&&kh.valueOf();if($h!=null&&$h!==kh)return md.from($h,Zf,th);var wh=Vd(kh);if(wh)return wh;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof kh[Symbol.toPrimitive]=="function")return md.from(kh[Symbol.toPrimitive]("string"),Zf,th);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof kh)}md.from=function(kh,Zf,th){return gd(kh,Zf,th)},Object.setPrototypeOf(md.prototype,Uint8Array.prototype),Object.setPrototypeOf(md,Uint8Array);function yd(kh){if(typeof kh!="number")throw new TypeError('"size" argument must be of type number');if(kh<0)throw new RangeError('The value "'+kh+'" is invalid for option "size"')}function vd(kh,Zf,th){return yd(kh),kh<=0?hd(kh):Zf!==void 0?typeof th=="string"?hd(kh).fill(Zf,th):hd(kh).fill(Zf):hd(kh)}md.alloc=function(kh,Zf,th){return vd(kh,Zf,th)};function Nd(kh){return yd(kh),hd(kh<0?0:Gd(kh)|0)}md.allocUnsafe=function(kh){return Nd(kh)},md.allocUnsafeSlow=function(kh){return Nd(kh)};function Md(kh,Zf){if((typeof Zf!="string"||Zf==="")&&(Zf="utf8"),!md.isEncoding(Zf))throw new TypeError("Unknown encoding: "+Zf);var th=qd(kh,Zf)|0,$h=hd(th),wh=$h.write(kh,Zf);return wh!==th&&($h=$h.slice(0,wh)),$h}function Ld(kh){for(var Zf=kh.length<0?0:Gd(kh.length)|0,th=hd(Zf),$h=0;$h=pd)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+pd.toString(16)+" bytes");return kh|0}function Ud(kh){return+kh!=kh&&(kh=0),md.alloc(+kh)}md.isBuffer=function(Zf){return Zf!=null&&Zf._isBuffer===!0&&Zf!==md.prototype},md.compare=function(Zf,th){if(oh(Zf,Uint8Array)&&(Zf=md.from(Zf,Zf.offset,Zf.byteLength)),oh(th,Uint8Array)&&(th=md.from(th,th.offset,th.byteLength)),!md.isBuffer(Zf)||!md.isBuffer(th))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(Zf===th)return 0;for(var $h=Zf.length,wh=th.length,fm=0,zh=Math.min($h,wh);fmwh.length?md.from(zh).copy(wh,fm):Uint8Array.prototype.set.call(wh,zh,fm);else if(md.isBuffer(zh))zh.copy(wh,fm);else throw new TypeError('"list" argument must be an Array of Buffers');fm+=zh.length}return wh};function qd(kh,Zf){if(md.isBuffer(kh))return kh.length;if(ArrayBuffer.isView(kh)||oh(kh,ArrayBuffer))return kh.byteLength;if(typeof kh!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof kh);var th=kh.length,$h=arguments.length>2&&arguments[2]===!0;if(!$h&&th===0)return 0;for(var wh=!1;;)switch(Zf){case"ascii":case"latin1":case"binary":return th;case"utf8":case"utf-8":return Af(kh).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return th*2;case"hex":return th>>>1;case"base64":return dm(kh).length;default:if(wh)return $h?-1:Af(kh).length;Zf=(""+Zf).toLowerCase(),wh=!0}}md.byteLength=qd;function Wd(kh,Zf,th){var $h=!1;if((Zf===void 0||Zf<0)&&(Zf=0),Zf>this.length||((th===void 0||th>this.length)&&(th=this.length),th<=0)||(th>>>=0,Zf>>>=0,th<=Zf))return"";for(kh||(kh="utf8");;)switch(kh){case"hex":return xh(this,Zf,th);case"utf8":case"utf-8":return If(this,Zf,th);case"ascii":return Pf(this,Zf,th);case"latin1":case"binary":return lh(this,Zf,th);case"base64":return Cf(this,Zf,th);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Eh(this,Zf,th);default:if($h)throw new TypeError("Unknown encoding: "+kh);kh=(kh+"").toLowerCase(),$h=!0}}md.prototype._isBuffer=!0;function Kd(kh,Zf,th){var $h=kh[Zf];kh[Zf]=kh[th],kh[th]=$h}md.prototype.swap16=function(){var Zf=this.length;if(Zf%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var th=0;thth&&(Zf+=" ... "),""},sd&&(md.prototype[sd]=md.prototype.inspect),md.prototype.compare=function(Zf,th,$h,wh,fm){if(oh(Zf,Uint8Array)&&(Zf=md.from(Zf,Zf.offset,Zf.byteLength)),!md.isBuffer(Zf))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof Zf);if(th===void 0&&(th=0),$h===void 0&&($h=Zf?Zf.length:0),wh===void 0&&(wh=0),fm===void 0&&(fm=this.length),th<0||$h>Zf.length||wh<0||fm>this.length)throw new RangeError("out of range index");if(wh>=fm&&th>=$h)return 0;if(wh>=fm)return-1;if(th>=$h)return 1;if(th>>>=0,$h>>>=0,wh>>>=0,fm>>>=0,this===Zf)return 0;for(var zh=fm-wh,Mm=$h-th,Rm=Math.min(zh,Mm),tg=this.slice(wh,fm),Fm=Zf.slice(th,$h),Ym=0;Ym2147483647?th=2147483647:th<-2147483648&&(th=-2147483648),th=+th,Xh(th)&&(th=wh?0:kh.length-1),th<0&&(th=kh.length+th),th>=kh.length){if(wh)return-1;th=kh.length-1}else if(th<0)if(wh)th=0;else return-1;if(typeof Zf=="string"&&(Zf=md.from(Zf,$h)),md.isBuffer(Zf))return Zf.length===0?-1:df(kh,Zf,th,$h,wh);if(typeof Zf=="number")return Zf=Zf&255,typeof Uint8Array.prototype.indexOf=="function"?wh?Uint8Array.prototype.indexOf.call(kh,Zf,th):Uint8Array.prototype.lastIndexOf.call(kh,Zf,th):df(kh,[Zf],th,$h,wh);throw new TypeError("val must be string, number or Buffer")}function df(kh,Zf,th,$h,wh){var fm=1,zh=kh.length,Mm=Zf.length;if($h!==void 0&&($h=String($h).toLowerCase(),$h==="ucs2"||$h==="ucs-2"||$h==="utf16le"||$h==="utf-16le")){if(kh.length<2||Zf.length<2)return-1;fm=2,zh/=2,Mm/=2,th/=2}function Rm(Eg,Fh){return fm===1?Eg[Fh]:Eg.readUInt16BE(Fh*fm)}var tg;if(wh){var Fm=-1;for(tg=th;tgzh&&(th=zh-Mm),tg=th;tg>=0;tg--){for(var Ym=!0,rg=0;rgwh&&($h=wh)):$h=wh;var fm=Zf.length;$h>fm/2&&($h=fm/2);for(var zh=0;zh<$h;++zh){var Mm=parseInt(Zf.substr(zh*2,2),16);if(Xh(Mm))return zh;kh[th+zh]=Mm}return zh}function pf(kh,Zf,th,$h){return Jf(Af(Zf,kh.length-th),kh,th,$h)}function mf(kh,Zf,th,$h){return Jf(_h(Zf),kh,th,$h)}function _f(kh,Zf,th,$h){return Jf(dm(Zf),kh,th,$h)}function xf(kh,Zf,th,$h){return Jf(Nh(Zf,kh.length-th),kh,th,$h)}md.prototype.write=function(Zf,th,$h,wh){if(th===void 0)wh="utf8",$h=this.length,th=0;else if($h===void 0&&typeof th=="string")wh=th,$h=this.length,th=0;else if(isFinite(th))th=th>>>0,isFinite($h)?($h=$h>>>0,wh===void 0&&(wh="utf8")):(wh=$h,$h=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var fm=this.length-th;if(($h===void 0||$h>fm)&&($h=fm),Zf.length>0&&($h<0||th<0)||th>this.length)throw new RangeError("Attempt to write outside buffer bounds");wh||(wh="utf8");for(var zh=!1;;)switch(wh){case"hex":return Ef(this,Zf,th,$h);case"utf8":case"utf-8":return pf(this,Zf,th,$h);case"ascii":case"latin1":case"binary":return mf(this,Zf,th,$h);case"base64":return _f(this,Zf,th,$h);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return xf(this,Zf,th,$h);default:if(zh)throw new TypeError("Unknown encoding: "+wh);wh=(""+wh).toLowerCase(),zh=!0}},md.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Cf(kh,Zf,th){return Zf===0&&th===kh.length?qa.fromByteArray(kh):qa.fromByteArray(kh.slice(Zf,th))}function If(kh,Zf,th){th=Math.min(kh.length,th);for(var $h=[],wh=Zf;wh239?4:fm>223?3:fm>191?2:1;if(wh+Mm<=th){var Rm,tg,Fm,Ym;switch(Mm){case 1:fm<128&&(zh=fm);break;case 2:Rm=kh[wh+1],(Rm&192)===128&&(Ym=(fm&31)<<6|Rm&63,Ym>127&&(zh=Ym));break;case 3:Rm=kh[wh+1],tg=kh[wh+2],(Rm&192)===128&&(tg&192)===128&&(Ym=(fm&15)<<12|(Rm&63)<<6|tg&63,Ym>2047&&(Ym<55296||Ym>57343)&&(zh=Ym));break;case 4:Rm=kh[wh+1],tg=kh[wh+2],Fm=kh[wh+3],(Rm&192)===128&&(tg&192)===128&&(Fm&192)===128&&(Ym=(fm&15)<<18|(Rm&63)<<12|(tg&63)<<6|Fm&63,Ym>65535&&Ym<1114112&&(zh=Ym))}}zh===null?(zh=65533,Mm=1):zh>65535&&(zh-=65536,$h.push(zh>>>10&1023|55296),zh=56320|zh&1023),$h.push(zh),wh+=Mm}return wf($h)}var Sf=4096;function wf(kh){var Zf=kh.length;if(Zf<=Sf)return String.fromCharCode.apply(String,kh);for(var th="",$h=0;$h$h)&&(th=$h);for(var wh="",fm=Zf;fm$h&&(Zf=$h),th<0?(th+=$h,th<0&&(th=0)):th>$h&&(th=$h),thth)throw new RangeError("Trying to access beyond buffer length")}md.prototype.readUintLE=md.prototype.readUIntLE=function(Zf,th,$h){Zf=Zf>>>0,th=th>>>0,$h||Mh(Zf,th,this.length);for(var wh=this[Zf],fm=1,zh=0;++zh>>0,th=th>>>0,$h||Mh(Zf,th,this.length);for(var wh=this[Zf+--th],fm=1;th>0&&(fm*=256);)wh+=this[Zf+--th]*fm;return wh},md.prototype.readUint8=md.prototype.readUInt8=function(Zf,th){return Zf=Zf>>>0,th||Mh(Zf,1,this.length),this[Zf]},md.prototype.readUint16LE=md.prototype.readUInt16LE=function(Zf,th){return Zf=Zf>>>0,th||Mh(Zf,2,this.length),this[Zf]|this[Zf+1]<<8},md.prototype.readUint16BE=md.prototype.readUInt16BE=function(Zf,th){return Zf=Zf>>>0,th||Mh(Zf,2,this.length),this[Zf]<<8|this[Zf+1]},md.prototype.readUint32LE=md.prototype.readUInt32LE=function(Zf,th){return Zf=Zf>>>0,th||Mh(Zf,4,this.length),(this[Zf]|this[Zf+1]<<8|this[Zf+2]<<16)+this[Zf+3]*16777216},md.prototype.readUint32BE=md.prototype.readUInt32BE=function(Zf,th){return Zf=Zf>>>0,th||Mh(Zf,4,this.length),this[Zf]*16777216+(this[Zf+1]<<16|this[Zf+2]<<8|this[Zf+3])},md.prototype.readIntLE=function(Zf,th,$h){Zf=Zf>>>0,th=th>>>0,$h||Mh(Zf,th,this.length);for(var wh=this[Zf],fm=1,zh=0;++zh=fm&&(wh-=Math.pow(2,8*th)),wh},md.prototype.readIntBE=function(Zf,th,$h){Zf=Zf>>>0,th=th>>>0,$h||Mh(Zf,th,this.length);for(var wh=th,fm=1,zh=this[Zf+--wh];wh>0&&(fm*=256);)zh+=this[Zf+--wh]*fm;return fm*=128,zh>=fm&&(zh-=Math.pow(2,8*th)),zh},md.prototype.readInt8=function(Zf,th){return Zf=Zf>>>0,th||Mh(Zf,1,this.length),this[Zf]&128?(255-this[Zf]+1)*-1:this[Zf]},md.prototype.readInt16LE=function(Zf,th){Zf=Zf>>>0,th||Mh(Zf,2,this.length);var $h=this[Zf]|this[Zf+1]<<8;return $h&32768?$h|4294901760:$h},md.prototype.readInt16BE=function(Zf,th){Zf=Zf>>>0,th||Mh(Zf,2,this.length);var $h=this[Zf+1]|this[Zf]<<8;return $h&32768?$h|4294901760:$h},md.prototype.readInt32LE=function(Zf,th){return Zf=Zf>>>0,th||Mh(Zf,4,this.length),this[Zf]|this[Zf+1]<<8|this[Zf+2]<<16|this[Zf+3]<<24},md.prototype.readInt32BE=function(Zf,th){return Zf=Zf>>>0,th||Mh(Zf,4,this.length),this[Zf]<<24|this[Zf+1]<<16|this[Zf+2]<<8|this[Zf+3]},md.prototype.readFloatLE=function(Zf,th){return Zf=Zf>>>0,th||Mh(Zf,4,this.length),rd.read(this,Zf,!0,23,4)},md.prototype.readFloatBE=function(Zf,th){return Zf=Zf>>>0,th||Mh(Zf,4,this.length),rd.read(this,Zf,!1,23,4)},md.prototype.readDoubleLE=function(Zf,th){return Zf=Zf>>>0,th||Mh(Zf,8,this.length),rd.read(this,Zf,!0,52,8)},md.prototype.readDoubleBE=function(Zf,th){return Zf=Zf>>>0,th||Mh(Zf,8,this.length),rd.read(this,Zf,!1,52,8)};function dh(kh,Zf,th,$h,wh,fm){if(!md.isBuffer(kh))throw new TypeError('"buffer" argument must be a Buffer instance');if(Zf>wh||Zfkh.length)throw new RangeError("Index out of range")}md.prototype.writeUintLE=md.prototype.writeUIntLE=function(Zf,th,$h,wh){if(Zf=+Zf,th=th>>>0,$h=$h>>>0,!wh){var fm=Math.pow(2,8*$h)-1;dh(this,Zf,th,$h,fm,0)}var zh=1,Mm=0;for(this[th]=Zf&255;++Mm<$h&&(zh*=256);)this[th+Mm]=Zf/zh&255;return th+$h},md.prototype.writeUintBE=md.prototype.writeUIntBE=function(Zf,th,$h,wh){if(Zf=+Zf,th=th>>>0,$h=$h>>>0,!wh){var fm=Math.pow(2,8*$h)-1;dh(this,Zf,th,$h,fm,0)}var zh=$h-1,Mm=1;for(this[th+zh]=Zf&255;--zh>=0&&(Mm*=256);)this[th+zh]=Zf/Mm&255;return th+$h},md.prototype.writeUint8=md.prototype.writeUInt8=function(Zf,th,$h){return Zf=+Zf,th=th>>>0,$h||dh(this,Zf,th,1,255,0),this[th]=Zf&255,th+1},md.prototype.writeUint16LE=md.prototype.writeUInt16LE=function(Zf,th,$h){return Zf=+Zf,th=th>>>0,$h||dh(this,Zf,th,2,65535,0),this[th]=Zf&255,this[th+1]=Zf>>>8,th+2},md.prototype.writeUint16BE=md.prototype.writeUInt16BE=function(Zf,th,$h){return Zf=+Zf,th=th>>>0,$h||dh(this,Zf,th,2,65535,0),this[th]=Zf>>>8,this[th+1]=Zf&255,th+2},md.prototype.writeUint32LE=md.prototype.writeUInt32LE=function(Zf,th,$h){return Zf=+Zf,th=th>>>0,$h||dh(this,Zf,th,4,4294967295,0),this[th+3]=Zf>>>24,this[th+2]=Zf>>>16,this[th+1]=Zf>>>8,this[th]=Zf&255,th+4},md.prototype.writeUint32BE=md.prototype.writeUInt32BE=function(Zf,th,$h){return Zf=+Zf,th=th>>>0,$h||dh(this,Zf,th,4,4294967295,0),this[th]=Zf>>>24,this[th+1]=Zf>>>16,this[th+2]=Zf>>>8,this[th+3]=Zf&255,th+4},md.prototype.writeIntLE=function(Zf,th,$h,wh){if(Zf=+Zf,th=th>>>0,!wh){var fm=Math.pow(2,8*$h-1);dh(this,Zf,th,$h,fm-1,-fm)}var zh=0,Mm=1,Rm=0;for(this[th]=Zf&255;++zh<$h&&(Mm*=256);)Zf<0&&Rm===0&&this[th+zh-1]!==0&&(Rm=1),this[th+zh]=(Zf/Mm>>0)-Rm&255;return th+$h},md.prototype.writeIntBE=function(Zf,th,$h,wh){if(Zf=+Zf,th=th>>>0,!wh){var fm=Math.pow(2,8*$h-1);dh(this,Zf,th,$h,fm-1,-fm)}var zh=$h-1,Mm=1,Rm=0;for(this[th+zh]=Zf&255;--zh>=0&&(Mm*=256);)Zf<0&&Rm===0&&this[th+zh+1]!==0&&(Rm=1),this[th+zh]=(Zf/Mm>>0)-Rm&255;return th+$h},md.prototype.writeInt8=function(Zf,th,$h){return Zf=+Zf,th=th>>>0,$h||dh(this,Zf,th,1,127,-128),Zf<0&&(Zf=255+Zf+1),this[th]=Zf&255,th+1},md.prototype.writeInt16LE=function(Zf,th,$h){return Zf=+Zf,th=th>>>0,$h||dh(this,Zf,th,2,32767,-32768),this[th]=Zf&255,this[th+1]=Zf>>>8,th+2},md.prototype.writeInt16BE=function(Zf,th,$h){return Zf=+Zf,th=th>>>0,$h||dh(this,Zf,th,2,32767,-32768),this[th]=Zf>>>8,this[th+1]=Zf&255,th+2},md.prototype.writeInt32LE=function(Zf,th,$h){return Zf=+Zf,th=th>>>0,$h||dh(this,Zf,th,4,2147483647,-2147483648),this[th]=Zf&255,this[th+1]=Zf>>>8,this[th+2]=Zf>>>16,this[th+3]=Zf>>>24,th+4},md.prototype.writeInt32BE=function(Zf,th,$h){return Zf=+Zf,th=th>>>0,$h||dh(this,Zf,th,4,2147483647,-2147483648),Zf<0&&(Zf=4294967295+Zf+1),this[th]=Zf>>>24,this[th+1]=Zf>>>16,this[th+2]=Zf>>>8,this[th+3]=Zf&255,th+4};function eh(kh,Zf,th,$h,wh,fm){if(th+$h>kh.length)throw new RangeError("Index out of range");if(th<0)throw new RangeError("Index out of range")}function fh(kh,Zf,th,$h,wh){return Zf=+Zf,th=th>>>0,wh||eh(kh,Zf,th,4),rd.write(kh,Zf,th,$h,23,4),th+4}md.prototype.writeFloatLE=function(Zf,th,$h){return fh(this,Zf,th,!0,$h)},md.prototype.writeFloatBE=function(Zf,th,$h){return fh(this,Zf,th,!1,$h)};function Sh(kh,Zf,th,$h,wh){return Zf=+Zf,th=th>>>0,wh||eh(kh,Zf,th,8),rd.write(kh,Zf,th,$h,52,8),th+8}md.prototype.writeDoubleLE=function(Zf,th,$h){return Sh(this,Zf,th,!0,$h)},md.prototype.writeDoubleBE=function(Zf,th,$h){return Sh(this,Zf,th,!1,$h)},md.prototype.copy=function(Zf,th,$h,wh){if(!md.isBuffer(Zf))throw new TypeError("argument should be a Buffer");if($h||($h=0),!wh&&wh!==0&&(wh=this.length),th>=Zf.length&&(th=Zf.length),th||(th=0),wh>0&&wh<$h&&(wh=$h),wh===$h||Zf.length===0||this.length===0)return 0;if(th<0)throw new RangeError("targetStart out of bounds");if($h<0||$h>=this.length)throw new RangeError("Index out of range");if(wh<0)throw new RangeError("sourceEnd out of bounds");wh>this.length&&(wh=this.length),Zf.length-th>>0,$h=$h===void 0?this.length:$h>>>0,Zf||(Zf=0);var zh;if(typeof Zf=="number")for(zh=th;zh<$h;++zh)this[zh]=Zf;else{var Mm=md.isBuffer(Zf)?Zf:md.from(Zf,wh),Rm=Mm.length;if(Rm===0)throw new TypeError('The value "'+Zf+'" is invalid for argument "value"');for(zh=0;zh<$h-th;++zh)this[zh+th]=Mm[zh%Rm]}return this};var vh=/[^+/0-9A-Za-z-_]/g;function Df(kh){if(kh=kh.split("=")[0],kh=kh.trim().replace(vh,""),kh.length<2)return"";for(;kh.length%4!==0;)kh=kh+"=";return kh}function Af(kh,Zf){Zf=Zf||1/0;for(var th,$h=kh.length,wh=null,fm=[],zh=0;zh<$h;++zh){if(th=kh.charCodeAt(zh),th>55295&&th<57344){if(!wh){if(th>56319){(Zf-=3)>-1&&fm.push(239,191,189);continue}else if(zh+1===$h){(Zf-=3)>-1&&fm.push(239,191,189);continue}wh=th;continue}if(th<56320){(Zf-=3)>-1&&fm.push(239,191,189),wh=th;continue}th=(wh-55296<<10|th-56320)+65536}else wh&&(Zf-=3)>-1&&fm.push(239,191,189);if(wh=null,th<128){if((Zf-=1)<0)break;fm.push(th)}else if(th<2048){if((Zf-=2)<0)break;fm.push(th>>6|192,th&63|128)}else if(th<65536){if((Zf-=3)<0)break;fm.push(th>>12|224,th>>6&63|128,th&63|128)}else if(th<1114112){if((Zf-=4)<0)break;fm.push(th>>18|240,th>>12&63|128,th>>6&63|128,th&63|128)}else throw new Error("Invalid code point")}return fm}function _h(kh){for(var Zf=[],th=0;th>8,wh=th%256,fm.push(wh),fm.push($h);return fm}function dm(kh){return qa.toByteArray(Df(kh))}function Jf(kh,Zf,th,$h){for(var wh=0;wh<$h&&!(wh+th>=Zf.length||wh>=kh.length);++wh)Zf[wh+th]=kh[wh];return wh}function oh(kh,Zf){return kh instanceof Zf||kh!=null&&kh.constructor!=null&&kh.constructor.name!=null&&kh.constructor.name===Zf.name}function Xh(kh){return kh!==kh}var Tm=function(){for(var kh="0123456789abcdef",Zf=new Array(256),th=0;th<16;++th)for(var $h=th*16,wh=0;wh<16;++wh)Zf[$h+wh]=kh[th]+kh[wh];return Zf}()})(buffer);var util$6={},types$1={},shams$1=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var qa={},rd=Symbol("test"),sd=Object(rd);if(typeof rd=="string"||Object.prototype.toString.call(rd)!=="[object Symbol]"||Object.prototype.toString.call(sd)!=="[object Symbol]")return!1;var pd=42;qa[rd]=pd;for(var fd in qa)return!1;if(typeof Object.keys=="function"&&Object.keys(qa).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(qa).length!==0)return!1;var hd=Object.getOwnPropertySymbols(qa);if(hd.length!==1||hd[0]!==rd||!Object.prototype.propertyIsEnumerable.call(qa,rd))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var md=Object.getOwnPropertyDescriptor(qa,rd);if(md.value!==pd||md.enumerable!==!0)return!1}return!0},hasSymbols$2=shams$1,shams=function(){return hasSymbols$2()&&!!Symbol.toStringTag},esObjectAtoms=Object,esErrors=Error,_eval=EvalError,range$1=RangeError,ref=ReferenceError,syntax=SyntaxError,type=TypeError,uri=URIError,abs$1=Math.abs,floor$1=Math.floor,max$3=Math.max,min$2=Math.min,pow$1=Math.pow,round$2=Math.round,_isNaN=Number.isNaN||function(qa){return qa!==qa},$isNaN=_isNaN,sign$1=function(qa){return $isNaN(qa)||qa===0?qa:qa<0?-1:1},gOPD$3=Object.getOwnPropertyDescriptor,$gOPD$1=gOPD$3;if($gOPD$1)try{$gOPD$1([],"length")}catch{$gOPD$1=null}var gopd$1=$gOPD$1,$defineProperty$3=Object.defineProperty||!1;if($defineProperty$3)try{$defineProperty$3({},"a",{value:1})}catch{$defineProperty$3=!1}var esDefineProperty=$defineProperty$3,hasSymbols$1,hasRequiredHasSymbols;function requireHasSymbols(){if(hasRequiredHasSymbols)return hasSymbols$1;hasRequiredHasSymbols=1;var Ra=typeof Symbol<"u"&&Symbol,qa=shams$1;return hasSymbols$1=function(){return typeof Ra!="function"||typeof Symbol!="function"||typeof Ra("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:qa()},hasSymbols$1}var Reflect_getPrototypeOf,hasRequiredReflect_getPrototypeOf;function requireReflect_getPrototypeOf(){return hasRequiredReflect_getPrototypeOf||(hasRequiredReflect_getPrototypeOf=1,Reflect_getPrototypeOf=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),Reflect_getPrototypeOf}var Object_getPrototypeOf,hasRequiredObject_getPrototypeOf;function requireObject_getPrototypeOf(){if(hasRequiredObject_getPrototypeOf)return Object_getPrototypeOf;hasRequiredObject_getPrototypeOf=1;var Ra=esObjectAtoms;return Object_getPrototypeOf=Ra.getPrototypeOf||null,Object_getPrototypeOf}var ERROR_MESSAGE="Function.prototype.bind called on incompatible ",toStr$3=Object.prototype.toString,max$2=Math.max,funcType="[object Function]",concatty=function(qa,rd){for(var sd=[],pd=0;pd"u"||!getProto$1?undefined$1:getProto$1(Uint8Array),INTRINSICS={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?undefined$1:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?undefined$1:ArrayBuffer,"%ArrayIteratorPrototype%":hasSymbols&&getProto$1?getProto$1([][Symbol.iterator]()):undefined$1,"%AsyncFromSyncIteratorPrototype%":undefined$1,"%AsyncFunction%":needsEval,"%AsyncGenerator%":needsEval,"%AsyncGeneratorFunction%":needsEval,"%AsyncIteratorPrototype%":needsEval,"%Atomics%":typeof Atomics>"u"?undefined$1:Atomics,"%BigInt%":typeof BigInt>"u"?undefined$1:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?undefined$1:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?undefined$1:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?undefined$1:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":$Error,"%eval%":eval,"%EvalError%":$EvalError,"%Float32Array%":typeof Float32Array>"u"?undefined$1:Float32Array,"%Float64Array%":typeof Float64Array>"u"?undefined$1:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?undefined$1:FinalizationRegistry,"%Function%":$Function,"%GeneratorFunction%":needsEval,"%Int8Array%":typeof Int8Array>"u"?undefined$1:Int8Array,"%Int16Array%":typeof Int16Array>"u"?undefined$1:Int16Array,"%Int32Array%":typeof Int32Array>"u"?undefined$1:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":hasSymbols&&getProto$1?getProto$1(getProto$1([][Symbol.iterator]())):undefined$1,"%JSON%":typeof JSON=="object"?JSON:undefined$1,"%Map%":typeof Map>"u"?undefined$1:Map,"%MapIteratorPrototype%":typeof Map>"u"||!hasSymbols||!getProto$1?undefined$1:getProto$1(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":$Object,"%Object.getOwnPropertyDescriptor%":$gOPD,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?undefined$1:Promise,"%Proxy%":typeof Proxy>"u"?undefined$1:Proxy,"%RangeError%":$RangeError,"%ReferenceError%":$ReferenceError,"%Reflect%":typeof Reflect>"u"?undefined$1:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?undefined$1:Set,"%SetIteratorPrototype%":typeof Set>"u"||!hasSymbols||!getProto$1?undefined$1:getProto$1(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?undefined$1:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":hasSymbols&&getProto$1?getProto$1(""[Symbol.iterator]()):undefined$1,"%Symbol%":hasSymbols?Symbol:undefined$1,"%SyntaxError%":$SyntaxError$1,"%ThrowTypeError%":ThrowTypeError,"%TypedArray%":TypedArray,"%TypeError%":$TypeError$3,"%Uint8Array%":typeof Uint8Array>"u"?undefined$1:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?undefined$1:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?undefined$1:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?undefined$1:Uint32Array,"%URIError%":$URIError,"%WeakMap%":typeof WeakMap>"u"?undefined$1:WeakMap,"%WeakRef%":typeof WeakRef>"u"?undefined$1:WeakRef,"%WeakSet%":typeof WeakSet>"u"?undefined$1:WeakSet,"%Function.prototype.call%":$call,"%Function.prototype.apply%":$apply$1,"%Object.defineProperty%":$defineProperty$2,"%Object.getPrototypeOf%":$ObjectGPO,"%Math.abs%":abs,"%Math.floor%":floor,"%Math.max%":max$1,"%Math.min%":min$1,"%Math.pow%":pow,"%Math.round%":round$1,"%Math.sign%":sign,"%Reflect.getPrototypeOf%":$ReflectGPO};if(getProto$1)try{null.error}catch(Ra){var errorProto=getProto$1(getProto$1(Ra));INTRINSICS["%Error.prototype%"]=errorProto}var doEval=function Ra(qa){var rd;if(qa==="%AsyncFunction%")rd=getEvalledConstructor("async function () {}");else if(qa==="%GeneratorFunction%")rd=getEvalledConstructor("function* () {}");else if(qa==="%AsyncGeneratorFunction%")rd=getEvalledConstructor("async function* () {}");else if(qa==="%AsyncGenerator%"){var sd=Ra("%AsyncGeneratorFunction%");sd&&(rd=sd.prototype)}else if(qa==="%AsyncIteratorPrototype%"){var pd=Ra("%AsyncGenerator%");pd&&getProto$1&&(rd=getProto$1(pd.prototype))}return INTRINSICS[qa]=rd,rd},LEGACY_ALIASES={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},bind$2=functionBind,hasOwn$1=hasown,$concat=bind$2.call($call,Array.prototype.concat),$spliceApply=bind$2.call($apply$1,Array.prototype.splice),$replace=bind$2.call($call,String.prototype.replace),$strSlice=bind$2.call($call,String.prototype.slice),$exec$2=bind$2.call($call,RegExp.prototype.exec),rePropName=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,reEscapeChar=/\\(\\)?/g,stringToPath=function(qa){var rd=$strSlice(qa,0,1),sd=$strSlice(qa,-1);if(rd==="%"&&sd!=="%")throw new $SyntaxError$1("invalid intrinsic syntax, expected closing `%`");if(sd==="%"&&rd!=="%")throw new $SyntaxError$1("invalid intrinsic syntax, expected opening `%`");var pd=[];return $replace(qa,rePropName,function(fd,hd,md,gd){pd[pd.length]=md?$replace(gd,reEscapeChar,"$1"):hd||fd}),pd},getBaseIntrinsic=function(qa,rd){var sd=qa,pd;if(hasOwn$1(LEGACY_ALIASES,sd)&&(pd=LEGACY_ALIASES[sd],sd="%"+pd[0]+"%"),hasOwn$1(INTRINSICS,sd)){var fd=INTRINSICS[sd];if(fd===needsEval&&(fd=doEval(sd)),typeof fd>"u"&&!rd)throw new $TypeError$3("intrinsic "+qa+" exists, but is not available. Please file an issue!");return{alias:pd,name:sd,value:fd}}throw new $SyntaxError$1("intrinsic "+qa+" does not exist!")},getIntrinsic=function(qa,rd){if(typeof qa!="string"||qa.length===0)throw new $TypeError$3("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof rd!="boolean")throw new $TypeError$3('"allowMissing" argument must be a boolean');if($exec$2(/^%?[^%]*%?$/,qa)===null)throw new $SyntaxError$1("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var sd=stringToPath(qa),pd=sd.length>0?sd[0]:"",fd=getBaseIntrinsic("%"+pd+"%",rd),hd=fd.name,md=fd.value,gd=!1,yd=fd.alias;yd&&(pd=yd[0],$spliceApply(sd,$concat([0,1],yd)));for(var vd=1,Nd=!0;vd=sd.length){var Hd=$gOPD(md,Md);Nd=!!Hd,Nd&&"get"in Hd&&!("originalValue"in Hd.get)?md=Hd.get:md=md[Md]}else Nd=hasOwn$1(md,Md),md=md[Md];Nd&&!gd&&(INTRINSICS[hd]=md)}}return md},GetIntrinsic$1=getIntrinsic,callBindBasic=callBindApplyHelpers,$indexOf$1=callBindBasic([GetIntrinsic$1("%String.prototype.indexOf%")]),callBound$5=function(qa,rd){var sd=GetIntrinsic$1(qa,!!rd);return typeof sd=="function"&&$indexOf$1(qa,".prototype.")>-1?callBindBasic([sd]):sd},hasToStringTag$4=shams(),callBound$4=callBound$5,$toString$2=callBound$4("Object.prototype.toString"),isStandardArguments=function(qa){return hasToStringTag$4&&qa&&typeof qa=="object"&&Symbol.toStringTag in qa?!1:$toString$2(qa)==="[object Arguments]"},isLegacyArguments=function(qa){return isStandardArguments(qa)?!0:qa!==null&&typeof qa=="object"&&"length"in qa&&typeof qa.length=="number"&&qa.length>=0&&$toString$2(qa)!=="[object Array]"&&"callee"in qa&&$toString$2(qa.callee)==="[object Function]"},supportsStandardArguments=function(){return isStandardArguments(arguments)}();isStandardArguments.isLegacyArguments=isLegacyArguments;var isArguments=supportsStandardArguments?isStandardArguments:isLegacyArguments,callBound$3=callBound$5,hasToStringTag$3=shams(),hasOwn=hasown,gOPD$2=gopd$1,fn;if(hasToStringTag$3){var $exec$1=callBound$3("RegExp.prototype.exec"),isRegexMarker={},throwRegexMarker=function(){throw isRegexMarker},badStringifier={toString:throwRegexMarker,valueOf:throwRegexMarker};typeof Symbol.toPrimitive=="symbol"&&(badStringifier[Symbol.toPrimitive]=throwRegexMarker),fn=function(qa){if(!qa||typeof qa!="object")return!1;var rd=gOPD$2(qa,"lastIndex"),sd=rd&&hasOwn(rd,"value");if(!sd)return!1;try{$exec$1(qa,badStringifier)}catch(pd){return pd===isRegexMarker}}}else{var $toString$1=callBound$3("Object.prototype.toString"),regexClass="[object RegExp]";fn=function(qa){return!qa||typeof qa!="object"&&typeof qa!="function"?!1:$toString$1(qa)===regexClass}}var isRegex$1=fn,callBound$2=callBound$5,isRegex=isRegex$1,$exec=callBound$2("RegExp.prototype.exec"),$TypeError$2=type,safeRegexTest$1=function(qa){if(!isRegex(qa))throw new $TypeError$2("`regex` must be a RegExp");return function(sd){return $exec(qa,sd)!==null}},callBound$1=callBound$5,safeRegexTest=safeRegexTest$1,isFnRegex=safeRegexTest(/^\s*(?:function)?\*/),hasToStringTag$2=shams(),getProto=requireGetProto(),toStr$2=callBound$1("Object.prototype.toString"),fnToStr$1=callBound$1("Function.prototype.toString"),getGeneratorFunc=function(){if(!hasToStringTag$2)return!1;try{return Function("return function*() {}")()}catch{}},GeneratorFunction,isGeneratorFunction=function(qa){if(typeof qa!="function")return!1;if(isFnRegex(fnToStr$1(qa)))return!0;if(!hasToStringTag$2){var rd=toStr$2(qa);return rd==="[object GeneratorFunction]"}if(!getProto)return!1;if(typeof GeneratorFunction>"u"){var sd=getGeneratorFunc();GeneratorFunction=sd?getProto(sd):!1}return getProto(qa)===GeneratorFunction},fnToStr=Function.prototype.toString,reflectApply=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,badArrayLike,isCallableMarker;if(typeof reflectApply=="function"&&typeof Object.defineProperty=="function")try{badArrayLike=Object.defineProperty({},"length",{get:function(){throw isCallableMarker}}),isCallableMarker={},reflectApply(function(){throw 42},null,badArrayLike)}catch(Ra){Ra!==isCallableMarker&&(reflectApply=null)}else reflectApply=null;var constructorRegex=/^\s*class\b/,isES6ClassFn=function(qa){try{var rd=fnToStr.call(qa);return constructorRegex.test(rd)}catch{return!1}},tryFunctionObject=function(qa){try{return isES6ClassFn(qa)?!1:(fnToStr.call(qa),!0)}catch{return!1}},toStr$1=Object.prototype.toString,objectClass="[object Object]",fnClass="[object Function]",genClass="[object GeneratorFunction]",ddaClass="[object HTMLAllCollection]",ddaClass2="[object HTML document.all class]",ddaClass3="[object HTMLCollection]",hasToStringTag$1=typeof Symbol=="function"&&!!Symbol.toStringTag,isIE68=!(0 in[,]),isDDA=function(){return!1};if(typeof document=="object"){var all=document.all;toStr$1.call(all)===toStr$1.call(document.all)&&(isDDA=function(qa){if((isIE68||!qa)&&(typeof qa>"u"||typeof qa=="object"))try{var rd=toStr$1.call(qa);return(rd===ddaClass||rd===ddaClass2||rd===ddaClass3||rd===objectClass)&&qa("")==null}catch{}return!1})}var isCallable$2=reflectApply?function(qa){if(isDDA(qa))return!0;if(!qa||typeof qa!="function"&&typeof qa!="object")return!1;try{reflectApply(qa,null,badArrayLike)}catch(rd){if(rd!==isCallableMarker)return!1}return!isES6ClassFn(qa)&&tryFunctionObject(qa)}:function(qa){if(isDDA(qa))return!0;if(!qa||typeof qa!="function"&&typeof qa!="object")return!1;if(hasToStringTag$1)return tryFunctionObject(qa);if(isES6ClassFn(qa))return!1;var rd=toStr$1.call(qa);return rd!==fnClass&&rd!==genClass&&!/^\[object HTML/.test(rd)?!1:tryFunctionObject(qa)},isCallable$1=isCallable$2,toStr=Object.prototype.toString,hasOwnProperty$2=Object.prototype.hasOwnProperty,forEachArray=function(qa,rd,sd){for(var pd=0,fd=qa.length;pd=3&&(pd=sd),toStr.call(qa)==="[object Array]"?forEachArray(qa,rd,pd):typeof qa=="string"?forEachString(qa,rd,pd):forEachObject(qa,rd,pd)},forEach_1=forEach$3,possibleTypedArrayNames=["Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"],possibleNames=possibleTypedArrayNames,g$2=typeof globalThis>"u"?commonjsGlobal:globalThis,availableTypedArrays$1=function(){for(var qa=[],rd=0;rd3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new $TypeError$1("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new $TypeError$1("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new $TypeError$1("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new $TypeError$1("`loose`, if provided, must be a boolean");var pd=arguments.length>3?arguments[3]:null,fd=arguments.length>4?arguments[4]:null,hd=arguments.length>5?arguments[5]:null,md=arguments.length>6?arguments[6]:!1,gd=!!gopd&&gopd(qa,rd);if($defineProperty$1)$defineProperty$1(qa,rd,{configurable:hd===null&&gd?gd.configurable:!hd,enumerable:pd===null&&gd?gd.enumerable:!pd,value:sd,writable:fd===null&&gd?gd.writable:!fd});else if(md||!pd&&!fd&&!hd)qa[rd]=sd;else throw new $SyntaxError("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},$defineProperty=esDefineProperty,hasPropertyDescriptors=function(){return!!$defineProperty};hasPropertyDescriptors.hasArrayLengthDefineBug=function(){if(!$defineProperty)return null;try{return $defineProperty([],"length",{value:1}).length!==1}catch{return!0}};var hasPropertyDescriptors_1=hasPropertyDescriptors,GetIntrinsic=getIntrinsic,define=defineDataProperty,hasDescriptors=hasPropertyDescriptors_1(),gOPD$1=gopd$1,$TypeError=type,$floor=GetIntrinsic("%Math.floor%"),setFunctionLength=function(qa,rd){if(typeof qa!="function")throw new $TypeError("`fn` is not a function");if(typeof rd!="number"||rd<0||rd>4294967295||$floor(rd)!==rd)throw new $TypeError("`length` must be a positive 32-bit integer");var sd=arguments.length>2&&!!arguments[2],pd=!0,fd=!0;if("length"in qa&&gOPD$1){var hd=gOPD$1(qa,"length");hd&&!hd.configurable&&(pd=!1),hd&&!hd.writable&&(fd=!1)}return(pd||fd||!sd)&&(hasDescriptors?define(qa,"length",rd,!0,!0):define(qa,"length",rd)),qa},bind$1=functionBind,$apply=functionApply,actualApply=actualApply$1,applyBind=function(){return actualApply(bind$1,$apply,arguments)};(function(Ra){var qa=setFunctionLength,rd=esDefineProperty,sd=callBindApplyHelpers,pd=applyBind;Ra.exports=function(hd){var md=sd(arguments),gd=hd.length-(arguments.length-1);return qa(md,1+(gd>0?gd:0),!0)},rd?rd(Ra.exports,"apply",{value:pd}):Ra.exports.apply=pd})(callBind$1);var callBindExports=callBind$1.exports,forEach$2=forEach_1,availableTypedArrays=availableTypedArrays$1,callBind=callBindExports,callBound=callBound$5,gOPD=gopd$1,$toString=callBound("Object.prototype.toString"),hasToStringTag=shams(),g$1=typeof globalThis>"u"?commonjsGlobal:globalThis,typedArrays=availableTypedArrays(),$slice=callBound("String.prototype.slice"),getPrototypeOf$1=Object.getPrototypeOf,$indexOf=callBound("Array.prototype.indexOf",!0)||function(qa,rd){for(var sd=0;sd-1?rd:rd!=="Object"?!1:trySlices(qa)}return gOPD?tryTypedArrays(qa):null},whichTypedArray=whichTypedArray$1,isTypedArray$1=function(qa){return!!whichTypedArray(qa)};(function(Ra){var qa=isArguments,rd=isGeneratorFunction,sd=whichTypedArray$1,pd=isTypedArray$1;function fd($h){return $h.call.bind($h)}var hd=typeof BigInt<"u",md=typeof Symbol<"u",gd=fd(Object.prototype.toString),yd=fd(Number.prototype.valueOf),vd=fd(String.prototype.valueOf),Nd=fd(Boolean.prototype.valueOf);if(hd)var Md=fd(BigInt.prototype.valueOf);if(md)var Ld=fd(Symbol.prototype.valueOf);function Fd($h,wh){if(typeof $h!="object")return!1;try{return wh($h),!0}catch{return!1}}Ra.isArgumentsObject=qa,Ra.isGeneratorFunction=rd,Ra.isTypedArray=pd;function Hd($h){return typeof Promise<"u"&&$h instanceof Promise||$h!==null&&typeof $h=="object"&&typeof $h.then=="function"&&typeof $h.catch=="function"}Ra.isPromise=Hd;function Vd($h){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView($h):pd($h)||eh($h)}Ra.isArrayBufferView=Vd;function Gd($h){return sd($h)==="Uint8Array"}Ra.isUint8Array=Gd;function Ud($h){return sd($h)==="Uint8ClampedArray"}Ra.isUint8ClampedArray=Ud;function qd($h){return sd($h)==="Uint16Array"}Ra.isUint16Array=qd;function Wd($h){return sd($h)==="Uint32Array"}Ra.isUint32Array=Wd;function Kd($h){return sd($h)==="Int8Array"}Ra.isInt8Array=Kd;function Xd($h){return sd($h)==="Int16Array"}Ra.isInt16Array=Xd;function df($h){return sd($h)==="Int32Array"}Ra.isInt32Array=df;function Ef($h){return sd($h)==="Float32Array"}Ra.isFloat32Array=Ef;function pf($h){return sd($h)==="Float64Array"}Ra.isFloat64Array=pf;function mf($h){return sd($h)==="BigInt64Array"}Ra.isBigInt64Array=mf;function _f($h){return sd($h)==="BigUint64Array"}Ra.isBigUint64Array=_f;function xf($h){return gd($h)==="[object Map]"}xf.working=typeof Map<"u"&&xf(new Map);function Cf($h){return typeof Map>"u"?!1:xf.working?xf($h):$h instanceof Map}Ra.isMap=Cf;function If($h){return gd($h)==="[object Set]"}If.working=typeof Set<"u"&&If(new Set);function Sf($h){return typeof Set>"u"?!1:If.working?If($h):$h instanceof Set}Ra.isSet=Sf;function wf($h){return gd($h)==="[object WeakMap]"}wf.working=typeof WeakMap<"u"&&wf(new WeakMap);function Pf($h){return typeof WeakMap>"u"?!1:wf.working?wf($h):$h instanceof WeakMap}Ra.isWeakMap=Pf;function lh($h){return gd($h)==="[object WeakSet]"}lh.working=typeof WeakSet<"u"&&lh(new WeakSet);function xh($h){return lh($h)}Ra.isWeakSet=xh;function Eh($h){return gd($h)==="[object ArrayBuffer]"}Eh.working=typeof ArrayBuffer<"u"&&Eh(new ArrayBuffer);function Mh($h){return typeof ArrayBuffer>"u"?!1:Eh.working?Eh($h):$h instanceof ArrayBuffer}Ra.isArrayBuffer=Mh;function dh($h){return gd($h)==="[object DataView]"}dh.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&dh(new DataView(new ArrayBuffer(1),0,1));function eh($h){return typeof DataView>"u"?!1:dh.working?dh($h):$h instanceof DataView}Ra.isDataView=eh;var fh=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function Sh($h){return gd($h)==="[object SharedArrayBuffer]"}function vh($h){return typeof fh>"u"?!1:(typeof Sh.working>"u"&&(Sh.working=Sh(new fh)),Sh.working?Sh($h):$h instanceof fh)}Ra.isSharedArrayBuffer=vh;function Df($h){return gd($h)==="[object AsyncFunction]"}Ra.isAsyncFunction=Df;function Af($h){return gd($h)==="[object Map Iterator]"}Ra.isMapIterator=Af;function _h($h){return gd($h)==="[object Set Iterator]"}Ra.isSetIterator=_h;function Nh($h){return gd($h)==="[object Generator]"}Ra.isGeneratorObject=Nh;function dm($h){return gd($h)==="[object WebAssembly.Module]"}Ra.isWebAssemblyCompiledModule=dm;function Jf($h){return Fd($h,yd)}Ra.isNumberObject=Jf;function oh($h){return Fd($h,vd)}Ra.isStringObject=oh;function Xh($h){return Fd($h,Nd)}Ra.isBooleanObject=Xh;function Tm($h){return hd&&Fd($h,Md)}Ra.isBigIntObject=Tm;function kh($h){return md&&Fd($h,Ld)}Ra.isSymbolObject=kh;function Zf($h){return Jf($h)||oh($h)||Xh($h)||Tm($h)||kh($h)}Ra.isBoxedPrimitive=Zf;function th($h){return typeof Uint8Array<"u"&&(Mh($h)||vh($h))}Ra.isAnyArrayBuffer=th,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function($h){Object.defineProperty(Ra,$h,{enumerable:!1,value:function(){throw new Error($h+" is not supported in userland")}})})})(types$1);var isBufferBrowser=function(qa){return qa&&typeof qa=="object"&&typeof qa.copy=="function"&&typeof qa.fill=="function"&&typeof qa.readUInt8=="function"};(function(Ra){var qa={version:"v20.18.3",versions:{node:"20.18.3",acorn:"8.14.0",ada:"2.9.2",ares:"1.34.4",base64:"0.5.2",brotli:"1.1.0",cjs_module_lexer:"1.4.1",cldr:"45.0",icu:"75.1",llhttp:"8.1.2",modules:"115",napi:"9",nghttp2:"1.61.0",nghttp3:"0.7.0",ngtcp2:"1.1.0",openssl:"3.0.15+quic",simdutf:"5.6.4",tz:"2024b",undici:"6.21.1",unicode:"15.1",uv:"1.46.0",uvwasi:"0.0.21",v8:"11.3.244.8-node.25",zlib:"1.3.0.1-motley-82a5fec"},arch:"x64",platform:"linux",release:{name:"node",lts:"Iron",sourceUrl:"https://nodejs.org/download/release/v20.18.3/node-v20.18.3.tar.gz",headersUrl:"https://nodejs.org/download/release/v20.18.3/node-v20.18.3-headers.tar.gz"},moduleLoadList:["Internal Binding builtins","Internal Binding module_wrap","Internal Binding errors","NativeModule internal/assert","Internal Binding util","NativeModule internal/errors","Internal Binding config","Internal Binding timers","Internal Binding async_wrap","Internal Binding task_queue","Internal Binding symbols","NativeModule internal/async_hooks","Internal Binding constants","Internal Binding types","Internal Binding options","NativeModule internal/options","Internal Binding string_decoder","NativeModule internal/util","NativeModule internal/util/types","NativeModule internal/validators","NativeModule internal/linkedlist","NativeModule internal/priority_queue","Internal Binding icu","NativeModule internal/util/inspect","NativeModule internal/util/debuglog","NativeModule internal/timers","NativeModule internal/events/abort_listener","NativeModule events","Internal Binding buffer","NativeModule internal/buffer","NativeModule buffer","Internal Binding messaging","NativeModule internal/worker/js_transferable","NativeModule internal/querystring","NativeModule internal/constants","NativeModule path","NativeModule querystring","Internal Binding url","NativeModule internal/url","NativeModule internal/fs/utils","Internal Binding process_methods","NativeModule internal/process/per_thread","Internal Binding credentials","NativeModule internal/process/promises","NativeModule internal/fixed_queue","NativeModule async_hooks","NativeModule internal/process/task_queues","NativeModule timers","Internal Binding trace_events","Internal Binding contextify","NativeModule internal/vm","NativeModule internal/process/execution","NativeModule internal/process/warning","NativeModule internal/source_map/source_map_cache","Internal Binding fs","Internal Binding blob","Internal Binding encoding_binding","NativeModule internal/encoding","NativeModule internal/streams/utils","NativeModule util","NativeModule internal/webstreams/util","NativeModule internal/webstreams/queuingstrategies","NativeModule internal/blob","Internal Binding permission","NativeModule internal/process/permission","NativeModule fs","NativeModule internal/modules/helpers","NativeModule internal/console/constructor","NativeModule internal/console/global","NativeModule internal/util/inspector","Internal Binding inspector","NativeModule internal/webidl","Internal Binding performance","NativeModule internal/perf/utils","NativeModule internal/event_target","Internal Binding wasm_web_api","Internal Binding mksnapshot","NativeModule internal/v8/startup_snapshot","NativeModule internal/process/signal","NativeModule url","NativeModule internal/modules/package_json_reader","NativeModule internal/modules/cjs/loader","NativeModule internal/process/pre_execution","NativeModule internal/modules/esm/utils","NativeModule internal/inspector_async_hook","Internal Binding worker","NativeModule internal/modules/run_main","NativeModule internal/net","NativeModule internal/dns/utils","NativeModule internal/modules/esm/assert","NativeModule internal/modules/esm/loader","NativeModule internal/modules/esm/module_map","NativeModule internal/modules/esm/translators","NativeModule internal/modules/esm/package_config","NativeModule internal/modules/esm/formats","NativeModule internal/modules/esm/get_format","NativeModule internal/modules/esm/resolve","NativeModule internal/modules/esm/module_job","NativeModule internal/modules/esm/load","Internal Binding fs_dir","NativeModule internal/fs/dir","NativeModule string_decoder","Internal Binding fs_event_wrap","Internal Binding uv","NativeModule internal/fs/watchers","NativeModule internal/fs/recursive_watch","NativeModule internal/readline/utils","NativeModule internal/readline/callbacks","NativeModule internal/readline/interface","NativeModule internal/fs/promises","NativeModule internal/perf/performance_entry","NativeModule internal/perf/observe","NativeModule internal/perf/resource_timing","NativeModule internal/perf/nodetiming","NativeModule internal/perf/usertiming","NativeModule internal/perf/event_loop_utilization","NativeModule internal/histogram","NativeModule internal/perf/timerify","NativeModule internal/perf/performance","NativeModule internal/perf/event_loop_delay","NativeModule perf_hooks","NativeModule internal/modules/esm/initialize_import_meta","NativeModule internal/streams/destroy","NativeModule internal/abort_controller","NativeModule internal/streams/end-of-stream","NativeModule internal/streams/legacy","NativeModule internal/streams/add-abort-signal","NativeModule internal/streams/state","NativeModule internal/streams/from","NativeModule internal/streams/readable","NativeModule internal/streams/writable","NativeModule internal/streams/duplex","NativeModule internal/streams/pipeline","NativeModule internal/streams/compose","NativeModule internal/streams/operators","NativeModule stream/promises","NativeModule internal/streams/transform","NativeModule internal/streams/passthrough","NativeModule internal/streams/duplexpair","NativeModule stream","NativeModule internal/fs/streams","NativeModule fs/promises","NativeModule internal/util/parse_args/utils","NativeModule internal/util/parse_args/parse_args","NativeModule internal/mime","NativeModule internal/source_map/source_map","NativeModule module","Internal Binding crypto","NativeModule internal/crypto/random","NativeModule internal/crypto/hashnames","NativeModule internal/crypto/util","NativeModule internal/crypto/pbkdf2","NativeModule internal/crypto/scrypt","NativeModule internal/crypto/keys","NativeModule internal/crypto/hkdf","NativeModule internal/crypto/keygen","NativeModule internal/crypto/diffiehellman","NativeModule internal/streams/lazy_transform","NativeModule internal/crypto/cipher","NativeModule internal/crypto/sig","NativeModule internal/crypto/hash","NativeModule internal/crypto/x509","NativeModule internal/crypto/certificate","NativeModule crypto","NativeModule internal/crypto/webcrypto","Internal Binding stream_wrap","Internal Binding tcp_wrap","Internal Binding pipe_wrap","NativeModule internal/stream_base_commons","NativeModule diagnostics_channel","NativeModule net","Internal Binding tty_wrap","NativeModule internal/tty","NativeModule tty","NativeModule internal/deps/cjs-module-lexer/dist/lexer","Internal Binding udp_wrap","NativeModule internal/dgram","NativeModule dgram","Internal Binding process_wrap","NativeModule internal/socket_list","Internal Binding spawn_sync","NativeModule internal/child_process","NativeModule child_process","NativeModule _http_agent","Internal Binding http_parser","NativeModule internal/freelist","NativeModule _http_incoming","NativeModule _http_common","NativeModule internal/http","NativeModule _http_outgoing","NativeModule _http_client","NativeModule _http_server","NativeModule http","Internal Binding cares_wrap","NativeModule internal/tls/secure-context","NativeModule _tls_common","Internal Binding js_stream","NativeModule internal/js_stream_socket","Internal Binding tls_wrap","NativeModule _tls_wrap","NativeModule internal/tls/secure-pair","NativeModule tls","NativeModule https","Internal Binding block_list","NativeModule internal/socketaddress","NativeModule internal/blocklist","Internal Binding os","NativeModule os","NativeModule internal/dns/callback_resolver","NativeModule dns","NativeModule internal/dns/promises","NativeModule internal/util/colors","NativeModule internal/assert/assertion_error","NativeModule internal/assert/utils","NativeModule internal/assert/calltracker","NativeModule assert","Internal Binding serdes","Internal Binding profiler","Internal Binding heap_utils","Internal Binding internal_only_v8","NativeModule internal/heap_utils","NativeModule internal/promise_hooks","Internal Binding v8","NativeModule v8","NativeModule internal/worker/io","NativeModule internal/error_serdes","NativeModule internal/worker","NativeModule worker_threads","NativeModule internal/file","NativeModule internal/readline/emitKeypressEvents","NativeModule internal/readline/promises","NativeModule readline/promises","NativeModule readline","Internal Binding zlib","NativeModule zlib","NativeModule process","Internal Binding report","NativeModule internal/process/report","NativeModule constants","NativeModule internal/crypto/webidl"],_events:{newListener:[null,null],removeListener:[null,null]},_eventsCount:3,domain:null,_exiting:!1,config:{target_defaults:{cflags:[],default_configuration:"Release",defines:["NODE_OPENSSL_CONF_NAME=nodejs_conf","NODE_OPENSSL_HAS_QUIC","ICU_NO_USER_DATA_OVERRIDE"],include_dirs:[],libraries:[]},variables:{asan:0,clang:0,coverage:!1,dcheck_always_on:0,debug_nghttp2:!1,debug_node:!1,enable_lto:!1,enable_pgo_generate:!1,enable_pgo_use:!1,error_on_warn:!1,force_dynamic_crt:0,gas_version:"2.35",host_arch:"x64",icu_data_in:"../../deps/icu-tmp/icudt75l.dat",icu_endianness:"l",icu_gyp_path:"tools/icu/icu-generic.gyp",icu_path:"deps/icu-small",icu_small:!1,icu_ver_major:"75",is_debug:0,libdir:"lib",llvm_version:"0.0",napi_build_version:"9",node_builtin_shareable_builtins:["deps/cjs-module-lexer/lexer.js","deps/cjs-module-lexer/dist/lexer.js","deps/undici/undici.js"],node_byteorder:"little",node_debug_lib:!1,node_enable_d8:!1,node_enable_v8_vtunejit:!1,node_fipsinstall:!1,node_install_corepack:!0,node_install_npm:!0,node_library_files:["lib/_http_agent.js","lib/_http_client.js","lib/_http_common.js","lib/_http_incoming.js","lib/_http_outgoing.js","lib/_http_server.js","lib/_stream_duplex.js","lib/_stream_passthrough.js","lib/_stream_readable.js","lib/_stream_transform.js","lib/_stream_wrap.js","lib/_stream_writable.js","lib/_tls_common.js","lib/_tls_wrap.js","lib/assert.js","lib/assert/strict.js","lib/async_hooks.js","lib/buffer.js","lib/child_process.js","lib/cluster.js","lib/console.js","lib/constants.js","lib/crypto.js","lib/dgram.js","lib/diagnostics_channel.js","lib/dns.js","lib/dns/promises.js","lib/domain.js","lib/events.js","lib/fs.js","lib/fs/promises.js","lib/http.js","lib/http2.js","lib/https.js","lib/inspector.js","lib/inspector/promises.js","lib/internal/abort_controller.js","lib/internal/assert.js","lib/internal/assert/assertion_error.js","lib/internal/assert/calltracker.js","lib/internal/assert/utils.js","lib/internal/async_hooks.js","lib/internal/blob.js","lib/internal/blocklist.js","lib/internal/bootstrap/node.js","lib/internal/bootstrap/realm.js","lib/internal/bootstrap/shadow_realm.js","lib/internal/bootstrap/switches/does_not_own_process_state.js","lib/internal/bootstrap/switches/does_own_process_state.js","lib/internal/bootstrap/switches/is_main_thread.js","lib/internal/bootstrap/switches/is_not_main_thread.js","lib/internal/bootstrap/web/exposed-wildcard.js","lib/internal/bootstrap/web/exposed-window-or-worker.js","lib/internal/buffer.js","lib/internal/child_process.js","lib/internal/child_process/serialization.js","lib/internal/cli_table.js","lib/internal/cluster/child.js","lib/internal/cluster/primary.js","lib/internal/cluster/round_robin_handle.js","lib/internal/cluster/shared_handle.js","lib/internal/cluster/utils.js","lib/internal/cluster/worker.js","lib/internal/console/constructor.js","lib/internal/console/global.js","lib/internal/constants.js","lib/internal/crypto/aes.js","lib/internal/crypto/certificate.js","lib/internal/crypto/cfrg.js","lib/internal/crypto/cipher.js","lib/internal/crypto/diffiehellman.js","lib/internal/crypto/ec.js","lib/internal/crypto/hash.js","lib/internal/crypto/hashnames.js","lib/internal/crypto/hkdf.js","lib/internal/crypto/keygen.js","lib/internal/crypto/keys.js","lib/internal/crypto/mac.js","lib/internal/crypto/pbkdf2.js","lib/internal/crypto/random.js","lib/internal/crypto/rsa.js","lib/internal/crypto/scrypt.js","lib/internal/crypto/sig.js","lib/internal/crypto/util.js","lib/internal/crypto/webcrypto.js","lib/internal/crypto/webidl.js","lib/internal/crypto/x509.js","lib/internal/debugger/inspect.js","lib/internal/debugger/inspect_client.js","lib/internal/debugger/inspect_repl.js","lib/internal/dgram.js","lib/internal/dns/callback_resolver.js","lib/internal/dns/promises.js","lib/internal/dns/utils.js","lib/internal/encoding.js","lib/internal/error_serdes.js","lib/internal/errors.js","lib/internal/event_target.js","lib/internal/events/abort_listener.js","lib/internal/events/symbols.js","lib/internal/file.js","lib/internal/fixed_queue.js","lib/internal/freelist.js","lib/internal/freeze_intrinsics.js","lib/internal/fs/cp/cp-sync.js","lib/internal/fs/cp/cp.js","lib/internal/fs/dir.js","lib/internal/fs/promises.js","lib/internal/fs/read/context.js","lib/internal/fs/recursive_watch.js","lib/internal/fs/rimraf.js","lib/internal/fs/streams.js","lib/internal/fs/sync_write_stream.js","lib/internal/fs/utils.js","lib/internal/fs/watchers.js","lib/internal/heap_utils.js","lib/internal/histogram.js","lib/internal/http.js","lib/internal/http2/compat.js","lib/internal/http2/core.js","lib/internal/http2/util.js","lib/internal/inspector_async_hook.js","lib/internal/inspector_network_tracking.js","lib/internal/js_stream_socket.js","lib/internal/legacy/processbinding.js","lib/internal/linkedlist.js","lib/internal/main/check_syntax.js","lib/internal/main/embedding.js","lib/internal/main/eval_stdin.js","lib/internal/main/eval_string.js","lib/internal/main/inspect.js","lib/internal/main/mksnapshot.js","lib/internal/main/print_help.js","lib/internal/main/prof_process.js","lib/internal/main/repl.js","lib/internal/main/run_main_module.js","lib/internal/main/test_runner.js","lib/internal/main/watch_mode.js","lib/internal/main/worker_thread.js","lib/internal/mime.js","lib/internal/modules/cjs/loader.js","lib/internal/modules/esm/assert.js","lib/internal/modules/esm/create_dynamic_module.js","lib/internal/modules/esm/fetch_module.js","lib/internal/modules/esm/formats.js","lib/internal/modules/esm/get_format.js","lib/internal/modules/esm/hooks.js","lib/internal/modules/esm/initialize_import_meta.js","lib/internal/modules/esm/load.js","lib/internal/modules/esm/loader.js","lib/internal/modules/esm/module_job.js","lib/internal/modules/esm/module_map.js","lib/internal/modules/esm/package_config.js","lib/internal/modules/esm/resolve.js","lib/internal/modules/esm/shared_constants.js","lib/internal/modules/esm/translators.js","lib/internal/modules/esm/utils.js","lib/internal/modules/esm/worker.js","lib/internal/modules/helpers.js","lib/internal/modules/package_json_reader.js","lib/internal/modules/run_main.js","lib/internal/navigator.js","lib/internal/net.js","lib/internal/options.js","lib/internal/per_context/domexception.js","lib/internal/per_context/messageport.js","lib/internal/per_context/primordials.js","lib/internal/perf/event_loop_delay.js","lib/internal/perf/event_loop_utilization.js","lib/internal/perf/nodetiming.js","lib/internal/perf/observe.js","lib/internal/perf/performance.js","lib/internal/perf/performance_entry.js","lib/internal/perf/resource_timing.js","lib/internal/perf/timerify.js","lib/internal/perf/usertiming.js","lib/internal/perf/utils.js","lib/internal/policy/manifest.js","lib/internal/policy/sri.js","lib/internal/priority_queue.js","lib/internal/process/execution.js","lib/internal/process/per_thread.js","lib/internal/process/permission.js","lib/internal/process/policy.js","lib/internal/process/pre_execution.js","lib/internal/process/promises.js","lib/internal/process/report.js","lib/internal/process/signal.js","lib/internal/process/task_queues.js","lib/internal/process/warning.js","lib/internal/process/worker_thread_only.js","lib/internal/promise_hooks.js","lib/internal/querystring.js","lib/internal/readline/callbacks.js","lib/internal/readline/emitKeypressEvents.js","lib/internal/readline/interface.js","lib/internal/readline/promises.js","lib/internal/readline/utils.js","lib/internal/repl.js","lib/internal/repl/await.js","lib/internal/repl/history.js","lib/internal/repl/utils.js","lib/internal/socket_list.js","lib/internal/socketaddress.js","lib/internal/source_map/prepare_stack_trace.js","lib/internal/source_map/source_map.js","lib/internal/source_map/source_map_cache.js","lib/internal/stream_base_commons.js","lib/internal/streams/add-abort-signal.js","lib/internal/streams/compose.js","lib/internal/streams/destroy.js","lib/internal/streams/duplex.js","lib/internal/streams/duplexify.js","lib/internal/streams/duplexpair.js","lib/internal/streams/end-of-stream.js","lib/internal/streams/from.js","lib/internal/streams/lazy_transform.js","lib/internal/streams/legacy.js","lib/internal/streams/operators.js","lib/internal/streams/passthrough.js","lib/internal/streams/pipeline.js","lib/internal/streams/readable.js","lib/internal/streams/state.js","lib/internal/streams/transform.js","lib/internal/streams/utils.js","lib/internal/streams/writable.js","lib/internal/test/binding.js","lib/internal/test/transfer.js","lib/internal/test_runner/coverage.js","lib/internal/test_runner/harness.js","lib/internal/test_runner/mock/loader.js","lib/internal/test_runner/mock/mock.js","lib/internal/test_runner/mock/mock_timers.js","lib/internal/test_runner/reporter/dot.js","lib/internal/test_runner/reporter/junit.js","lib/internal/test_runner/reporter/lcov.js","lib/internal/test_runner/reporter/spec.js","lib/internal/test_runner/reporter/tap.js","lib/internal/test_runner/reporter/utils.js","lib/internal/test_runner/reporter/v8-serializer.js","lib/internal/test_runner/runner.js","lib/internal/test_runner/test.js","lib/internal/test_runner/tests_stream.js","lib/internal/test_runner/utils.js","lib/internal/timers.js","lib/internal/tls/secure-context.js","lib/internal/tls/secure-pair.js","lib/internal/trace_events_async_hooks.js","lib/internal/tty.js","lib/internal/url.js","lib/internal/util.js","lib/internal/util/colors.js","lib/internal/util/comparisons.js","lib/internal/util/debuglog.js","lib/internal/util/embedding.js","lib/internal/util/inspect.js","lib/internal/util/inspector.js","lib/internal/util/iterable_weak_map.js","lib/internal/util/parse_args/parse_args.js","lib/internal/util/parse_args/utils.js","lib/internal/util/types.js","lib/internal/v8/startup_snapshot.js","lib/internal/v8_prof_polyfill.js","lib/internal/v8_prof_processor.js","lib/internal/validators.js","lib/internal/vm.js","lib/internal/vm/module.js","lib/internal/wasm_web_api.js","lib/internal/watch_mode/files_watcher.js","lib/internal/watchdog.js","lib/internal/webidl.js","lib/internal/webstreams/adapters.js","lib/internal/webstreams/compression.js","lib/internal/webstreams/encoding.js","lib/internal/webstreams/queuingstrategies.js","lib/internal/webstreams/readablestream.js","lib/internal/webstreams/transfer.js","lib/internal/webstreams/transformstream.js","lib/internal/webstreams/util.js","lib/internal/webstreams/writablestream.js","lib/internal/worker.js","lib/internal/worker/io.js","lib/internal/worker/js_transferable.js","lib/module.js","lib/net.js","lib/os.js","lib/path.js","lib/path/posix.js","lib/path/win32.js","lib/perf_hooks.js","lib/process.js","lib/punycode.js","lib/querystring.js","lib/readline.js","lib/readline/promises.js","lib/repl.js","lib/sea.js","lib/stream.js","lib/stream/consumers.js","lib/stream/promises.js","lib/stream/web.js","lib/string_decoder.js","lib/sys.js","lib/test.js","lib/test/reporters.js","lib/timers.js","lib/timers/promises.js","lib/tls.js","lib/trace_events.js","lib/tty.js","lib/url.js","lib/util.js","lib/util/types.js","lib/v8.js","lib/vm.js","lib/wasi.js","lib/worker_threads.js","lib/zlib.js"],node_module_version:115,node_no_browser_globals:!1,node_prefix:"/",node_release_urlbase:"https://nodejs.org/download/release/",node_section_ordering_info:"",node_shared:!1,node_shared_ada:!1,node_shared_brotli:!1,node_shared_cares:!1,node_shared_http_parser:!1,node_shared_libuv:!1,node_shared_nghttp2:!1,node_shared_nghttp3:!1,node_shared_ngtcp2:!1,node_shared_openssl:!1,node_shared_simdjson:!1,node_shared_simdutf:!1,node_shared_uvwasi:!1,node_shared_zlib:!1,node_tag:"",node_target_type:"executable",node_use_bundled_v8:!0,node_use_node_code_cache:!0,node_use_node_snapshot:!0,node_use_openssl:!0,node_use_v8_platform:!0,node_with_ltcg:!1,node_without_node_options:!1,node_write_snapshot_as_array_literals:!1,openssl_is_fips:!1,openssl_quic:!0,ossfuzz:!1,shlib_suffix:"so.115",single_executable_application:!0,target_arch:"x64",ubsan:0,use_prefix_to_find_headers:!1,v8_enable_31bit_smis_on_64bit_arch:0,v8_enable_extensible_ro_snapshot:0,v8_enable_gdbjit:0,v8_enable_hugepage:0,v8_enable_i18n_support:1,v8_enable_inspector:1,v8_enable_javascript_promise_hooks:1,v8_enable_lite_mode:0,v8_enable_maglev:0,v8_enable_object_print:1,v8_enable_pointer_compression:0,v8_enable_sandbox:0,v8_enable_shared_ro_heap:1,v8_enable_short_builtin_calls:1,v8_enable_v8_checks:0,v8_enable_webassembly:1,v8_no_strict_aliasing:1,v8_optimized_debug:1,v8_promise_internal_field_count:1,v8_random_seed:0,v8_trace_maps:0,v8_use_siphash:1,want_separate_host_toolset:0}},allowedNodeEnvironmentFlags:{},features:{inspector:!0,debug:!1,uv:!0,ipv6:!0,tls_alpn:!0,tls_sni:!0,tls_ocsp:!0,tls:!0,cached_builtins:!0},sourceMapsEnabled:!1,stdout:{connecting:!1,_hadError:!1,_parent:null,_host:null,_closeAfterHandlingError:!1,_events:{},_readableState:{highWaterMark:16384,buffer:[],bufferIndex:0,length:0,pipes:[],awaitDrainWriters:null,readable:!1},_writableState:{highWaterMark:16384,length:0,corked:0,writelen:0,bufferedIndex:0,pendingcb:0},allowHalfOpen:!1,_eventsCount:1,_sockname:null,_pendingData:null,_pendingEncoding:"",server:null,_server:null,_type:"pipe",fd:1,_isStdio:!0},stdin:{connecting:!1,_hadError:!1,_parent:null,_host:null,_closeAfterHandlingError:!1,_events:{},_readableState:{highWaterMark:16384,buffer:[],bufferIndex:0,length:0,pipes:[],awaitDrainWriters:null},_writableState:{highWaterMark:16384,length:0,corked:0,writelen:0,bufferedIndex:0,pendingcb:0},allowHalfOpen:!1,_eventsCount:2,_sockname:null,_pendingData:null,_pendingEncoding:"",server:null,_server:null,fd:0},stderr:{connecting:!1,_hadError:!1,_parent:null,_host:null,_closeAfterHandlingError:!1,_events:{},_readableState:{highWaterMark:16384,buffer:[],bufferIndex:0,length:0,pipes:[],awaitDrainWriters:null,readable:!1},_writableState:{highWaterMark:16384,length:0,corked:0,writelen:0,bufferedIndex:0,pendingcb:0},allowHalfOpen:!1,_eventsCount:1,_sockname:null,_pendingData:null,_pendingEncoding:"",server:null,_server:null,_type:"pipe",fd:2,_isStdio:!0},env:{GITHUB_STATE:"/home/runner/work/_temp/_runner_file_commands/save_state_d53cc035-1b76-4af7-9fb5-24f8457de40c",STATS_TRP:"true",DEPLOYMENT_BASEPATH:"/opt/runner",DOTNET_NOLOGO:"1",USER:"runner",npm_config_user_agent:"npm/10.8.2 node/v20.18.3 linux x64 workspaces/false ci/github-actions",CI:"true",RUNNER_ENVIRONMENT:"github-hosted",GITHUB_ENV:"/home/runner/work/_temp/_runner_file_commands/set_env_d53cc035-1b76-4af7-9fb5-24f8457de40c",PIPX_HOME:"/opt/pipx",npm_node_execpath:"/opt/hostedtoolcache/node/20.18.3/x64/bin/node",JAVA_HOME_8_X64:"/usr/lib/jvm/temurin-8-jdk-amd64",SHLVL:"1",npm_config_noproxy:"",HOME:"/home/runner",RUNNER_TEMP:"/home/runner/work/_temp",GITHUB_EVENT_PATH:"/home/runner/work/_temp/_github_workflow/event.json",npm_package_json:"/home/runner/work/md/md/package.json",JAVA_HOME_11_X64:"/usr/lib/jvm/temurin-11-jdk-amd64",PIPX_BIN_DIR:"/opt/pipx_bin",GITHUB_REPOSITORY_OWNER:"doocs",GRADLE_HOME:"/usr/share/gradle-8.12.1",ANDROID_NDK_LATEST_HOME:"/usr/local/lib/android/sdk/ndk/28.0.13004108",JAVA_HOME_21_X64:"/usr/lib/jvm/temurin-21-jdk-amd64",STATS_RDCL:"true",GITHUB_RETENTION_DAYS:"90",GITHUB_REPOSITORY_OWNER_ID:"43716716",POWERSHELL_DISTRIBUTION_CHANNEL:"GitHub-Actions-ubuntu24",AZURE_EXTENSION_DIR:"/opt/az/azcliextensions",GITHUB_HEAD_REF:"",npm_config_userconfig:"/home/runner/.npmrc",npm_config_local_prefix:"/home/runner/work/md/md",SYSTEMD_EXEC_PID:"835",GITHUB_GRAPHQL_URL:"https://api.github.com/graphql",COLOR:"0",NVM_DIR:"/home/runner/.nvm",DOTNET_SKIP_FIRST_TIME_EXPERIENCE:"1",GOROOT_1_21_X64:"/opt/hostedtoolcache/go/1.21.13/x64",JAVA_HOME_17_X64:"/usr/lib/jvm/temurin-17-jdk-amd64",ImageVersion:"20250223.1.0",RUNNER_OS:"Linux",GITHUB_API_URL:"https://api.github.com",GOROOT_1_22_X64:"/opt/hostedtoolcache/go/1.22.12/x64",SWIFT_PATH:"/usr/share/swift/usr/bin",RUNNER_USER:"runner",STATS_V3PS:"true",CHROMEWEBDRIVER:"/usr/local/share/chromedriver-linux64",GOROOT_1_23_X64:"/opt/hostedtoolcache/go/1.23.6/x64",JOURNAL_STREAM:"8:5890",GITHUB_WORKFLOW:"Build and Deploy",_:"/opt/hostedtoolcache/node/20.18.3/x64/bin/npm",npm_config_prefix:"/opt/hostedtoolcache/node/20.18.3/x64",npm_config_npm_version:"10.8.2",MEMORY_PRESSURE_WATCH:"/sys/fs/cgroup/system.slice/runner-provisioner.service/memory.pressure",ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE:"/opt/actionarchivecache",STATS_D:"true",GITHUB_RUN_ID:"13625656549",STATS_VMFE:"true",npm_config_cache:"/home/runner/.npm",GITHUB_REF_TYPE:"branch",BOOTSTRAP_HASKELL_NONINTERACTIVE:"1",GITHUB_WORKFLOW_SHA:"28ede70a704c676eed43a63c290863c0eb2e51aa",GITHUB_BASE_REF:"",ImageOS:"ubuntu24",GITHUB_WORKFLOW_REF:"doocs/md/.github/workflows/build.yml@refs/heads/main",PERFLOG_LOCATION_SETTING:"RUNNER_PERFLOG",GITHUB_ACTION_REPOSITORY:"",npm_config_node_gyp:"/opt/hostedtoolcache/node/20.18.3/x64/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",PATH:"/home/runner/work/md/md/node_modules/.bin:/home/runner/work/md/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/20.18.3/x64/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/home/runner/work/md/md/node_modules/.bin:/home/runner/work/md/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/20.18.3/x64/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/opt/hostedtoolcache/node/20.18.3/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin",ANT_HOME:"/usr/share/ant",DOTNET_MULTILEVEL_LOOKUP:"0",RUNNER_TRACKING_ID:"github_4ead6fd7-fa08-4c5d-a36f-08f8752a0ffe",INVOCATION_ID:"015617c2a5044170892be94fa638d8ab",RUNNER_TOOL_CACHE:"/opt/hostedtoolcache",NODE:"/opt/hostedtoolcache/node/20.18.3/x64/bin/node",npm_package_name:"md",GITHUB_ACTION:"__run_2",GITHUB_RUN_NUMBER:"502",GITHUB_TRIGGERING_ACTOR:"yanglbme",RUNNER_ARCH:"X64",XDG_RUNTIME_DIR:"/run/user/1001",AGENT_TOOLSDIRECTORY:"/opt/hostedtoolcache",LANG:"C.UTF-8",VCPKG_INSTALLATION_ROOT:"/usr/local/share/vcpkg",CONDA:"/usr/share/miniconda",RUNNER_NAME:"GitHub Actions 14",XDG_CONFIG_HOME:"/home/runner/.config",STATS_VMD:"true",GITHUB_REF_NAME:"main",GITHUB_REPOSITORY:"doocs/md",STATS_D_D:"true",npm_lifecycle_script:"vite build",STATS_UE:"true",ANDROID_NDK_ROOT:"/usr/local/lib/android/sdk/ndk/27.2.12479018",GITHUB_ACTION_REF:"",DEBIAN_FRONTEND:"noninteractive",GITHUB_REPOSITORY_ID:"218952803",GITHUB_ACTIONS:"true",STATS_PIP:"false",npm_package_version:"1.6.0",npm_lifecycle_event:"build:only",GITHUB_REF_PROTECTED:"true",GITHUB_WORKSPACE:"/home/runner/work/md/md",ACCEPT_EULA:"Y",GITHUB_JOB:"build-and-deploy",RUNNER_PERFLOG:"/home/runner/perflog",GITHUB_SHA:"28ede70a704c676eed43a63c290863c0eb2e51aa",GITHUB_RUN_ATTEMPT:"1",STATS_D_TC:"true",GITHUB_REF:"refs/heads/main",GITHUB_ACTOR:"yanglbme",ANDROID_SDK_ROOT:"/usr/local/lib/android/sdk",npm_config_globalconfig:"/opt/hostedtoolcache/node/20.18.3/x64/etc/npmrc",npm_config_init_module:"/home/runner/.npm-init.js",GITHUB_PATH:"/home/runner/work/_temp/_runner_file_commands/add_path_d53cc035-1b76-4af7-9fb5-24f8457de40c",JAVA_HOME:"/usr/lib/jvm/temurin-17-jdk-amd64",PWD:"/home/runner/work/md/md",GITHUB_ACTOR_ID:"21008209",RUNNER_WORKSPACE:"/home/runner/work/md",npm_execpath:"/opt/hostedtoolcache/node/20.18.3/x64/lib/node_modules/npm/bin/npm-cli.js",HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS:"3650",GITHUB_EVENT_NAME:"push",HOMEBREW_NO_AUTO_UPDATE:"1",ANDROID_HOME:"/usr/local/lib/android/sdk",GITHUB_SERVER_URL:"https://github.com",GECKOWEBDRIVER:"/usr/local/share/gecko_driver",GHCUP_INSTALL_BASE_PREFIX:"/usr/local",GITHUB_OUTPUT:"/home/runner/work/_temp/_runner_file_commands/set_output_d53cc035-1b76-4af7-9fb5-24f8457de40c",npm_config_global_prefix:"/opt/hostedtoolcache/node/20.18.3/x64",EDGEWEBDRIVER:"/usr/local/share/edge_driver",STATS_EXT:"true",npm_command:"run-script",ANDROID_NDK:"/usr/local/lib/android/sdk/ndk/27.2.12479018",SGX_AESM_ADDR:"1",CHROME_BIN:"/usr/bin/google-chrome",SELENIUM_JAR_PATH:"/usr/share/java/selenium-server.jar",MEMORY_PRESSURE_WRITE:"c29tZSAyMDAwMDAgMjAwMDAwMAA=",STATS_EXTP:"https://provjobdprod.z13.web.core.windows.net/settings/provjobdsettings-latest/provjobd.data",ANDROID_NDK_HOME:"/usr/local/lib/android/sdk/ndk/27.2.12479018",GITHUB_STEP_SUMMARY:"/home/runner/work/_temp/_runner_file_commands/step_summary_d53cc035-1b76-4af7-9fb5-24f8457de40c",INIT_CWD:"/home/runner/work/md/md",EDITOR:"vi",NODE_ENV:"production",LAUNCH_EDITOR:"code"},title:"node",argv:["/opt/hostedtoolcache/node/20.18.3/x64/bin/node","/home/runner/work/md/md/node_modules/.bin/vite","build"],execArgv:[],pid:2138,ppid:2137,execPath:"/opt/hostedtoolcache/node/20.18.3/x64/bin/node",debugPort:9229,argv0:"node",_preload_modules:[],report:{directory:"",filename:"",compact:!1,excludeNetwork:!1,signal:"SIGUSR2",reportOnFatalError:!1,reportOnSignal:!1,reportOnUncaughtException:!1}},rd={},sd=Object.getOwnPropertyDescriptors||function(Sh){for(var vh=Object.keys(Sh),Df={},Af=0;Af=Af)return dm;switch(dm){case"%s":return String(Df[vh++]);case"%d":return Number(Df[vh++]);case"%j":try{return JSON.stringify(Df[vh++])}catch{return"[Circular]"}default:return dm}}),Nh=Df[vh];vh"u")return function(){return Ra.deprecate(fh,Sh).apply(this,arguments)};var vh=!1;function Df(){if(!vh){if(qa.throwDeprecation)throw new Error(Sh);qa.traceDeprecation?console.trace(Sh):console.error(Sh),vh=!0}return fh.apply(this,arguments)}return Df};var fd={},hd=/^$/;if(rd.NODE_DEBUG){var md=rd.NODE_DEBUG;md=md.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),hd=new RegExp("^"+md+"$","i")}Ra.debuglog=function(fh){if(fh=fh.toUpperCase(),!fd[fh])if(hd.test(fh)){var Sh=qa.pid;fd[fh]=function(){var vh=Ra.format.apply(Ra,arguments);console.error("%s %d: %s",fh,Sh,vh)}}else fd[fh]=function(){};return fd[fh]};function gd(fh,Sh){var vh={seen:[],stylize:vd};return arguments.length>=3&&(vh.depth=arguments[2]),arguments.length>=4&&(vh.colors=arguments[3]),qd(Sh)?vh.showHidden=Sh:Sh&&Ra._extend(vh,Sh),pf(vh.showHidden)&&(vh.showHidden=!1),pf(vh.depth)&&(vh.depth=2),pf(vh.colors)&&(vh.colors=!1),pf(vh.customInspect)&&(vh.customInspect=!0),vh.colors&&(vh.stylize=yd),Md(vh,fh,vh.depth)}Ra.inspect=gd,gd.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},gd.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function yd(fh,Sh){var vh=gd.styles[Sh];return vh?"\x1B["+gd.colors[vh][0]+"m"+fh+"\x1B["+gd.colors[vh][1]+"m":fh}function vd(fh,Sh){return fh}function Nd(fh){var Sh={};return fh.forEach(function(vh,Df){Sh[vh]=!0}),Sh}function Md(fh,Sh,vh){if(fh.customInspect&&Sh&&If(Sh.inspect)&&Sh.inspect!==Ra.inspect&&!(Sh.constructor&&Sh.constructor.prototype===Sh)){var Df=Sh.inspect(vh,fh);return df(Df)||(Df=Md(fh,Df,vh)),Df}var Af=Ld(fh,Sh);if(Af)return Af;var _h=Object.keys(Sh),Nh=Nd(_h);if(fh.showHidden&&(_h=Object.getOwnPropertyNames(Sh)),Cf(Sh)&&(_h.indexOf("message")>=0||_h.indexOf("description")>=0))return Fd(Sh);if(_h.length===0){if(If(Sh)){var dm=Sh.name?": "+Sh.name:"";return fh.stylize("[Function"+dm+"]","special")}if(mf(Sh))return fh.stylize(RegExp.prototype.toString.call(Sh),"regexp");if(xf(Sh))return fh.stylize(Date.prototype.toString.call(Sh),"date");if(Cf(Sh))return Fd(Sh)}var Jf="",oh=!1,Xh=["{","}"];if(Ud(Sh)&&(oh=!0,Xh=["[","]"]),If(Sh)){var Tm=Sh.name?": "+Sh.name:"";Jf=" [Function"+Tm+"]"}if(mf(Sh)&&(Jf=" "+RegExp.prototype.toString.call(Sh)),xf(Sh)&&(Jf=" "+Date.prototype.toUTCString.call(Sh)),Cf(Sh)&&(Jf=" "+Fd(Sh)),_h.length===0&&(!oh||Sh.length==0))return Xh[0]+Jf+Xh[1];if(vh<0)return mf(Sh)?fh.stylize(RegExp.prototype.toString.call(Sh),"regexp"):fh.stylize("[Object]","special");fh.seen.push(Sh);var kh;return oh?kh=Hd(fh,Sh,vh,Nh,_h):kh=_h.map(function(Zf){return Vd(fh,Sh,vh,Nh,Zf,oh)}),fh.seen.pop(),Gd(kh,Jf,Xh)}function Ld(fh,Sh){if(pf(Sh))return fh.stylize("undefined","undefined");if(df(Sh)){var vh="'"+JSON.stringify(Sh).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return fh.stylize(vh,"string")}if(Xd(Sh))return fh.stylize(""+Sh,"number");if(qd(Sh))return fh.stylize(""+Sh,"boolean");if(Wd(Sh))return fh.stylize("null","null")}function Fd(fh){return"["+Error.prototype.toString.call(fh)+"]"}function Hd(fh,Sh,vh,Df,Af){for(var _h=[],Nh=0,dm=Sh.length;Nh-1&&(_h?dm=dm.split(` `).map(function(oh){return" "+oh}).join(` `).slice(2):dm=` @@ -999,7 +999,7 @@ ${Ra.themeCSS}`),Ra.fontFamily!==void 0&&(rd+=` `))):dm=fh.stylize("[Circular]","special")),pf(Nh)){if(_h&&Af.match(/^\d+$/))return dm;Nh=JSON.stringify(""+Af),Nh.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(Nh=Nh.slice(1,-1),Nh=fh.stylize(Nh,"name")):(Nh=Nh.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),Nh=fh.stylize(Nh,"string"))}return Nh+": "+dm}function Gd(fh,Sh,vh){var Df=fh.reduce(function(Af,_h){return _h.indexOf(` `)>=0,Af+_h.replace(/\u001b\[\d\d?m/g,"").length+1},0);return Df>60?vh[0]+(Sh===""?"":Sh+` `)+" "+fh.join(`, - `)+" "+vh[1]:vh[0]+Sh+" "+fh.join(", ")+" "+vh[1]}Ra.types=types$1;function Ud(fh){return Array.isArray(fh)}Ra.isArray=Ud;function qd(fh){return typeof fh=="boolean"}Ra.isBoolean=qd;function Wd(fh){return fh===null}Ra.isNull=Wd;function Kd(fh){return fh==null}Ra.isNullOrUndefined=Kd;function Xd(fh){return typeof fh=="number"}Ra.isNumber=Xd;function df(fh){return typeof fh=="string"}Ra.isString=df;function Ef(fh){return typeof fh=="symbol"}Ra.isSymbol=Ef;function pf(fh){return fh===void 0}Ra.isUndefined=pf;function mf(fh){return _f(fh)&&wf(fh)==="[object RegExp]"}Ra.isRegExp=mf,Ra.types.isRegExp=mf;function _f(fh){return typeof fh=="object"&&fh!==null}Ra.isObject=_f;function xf(fh){return _f(fh)&&wf(fh)==="[object Date]"}Ra.isDate=xf,Ra.types.isDate=xf;function Cf(fh){return _f(fh)&&(wf(fh)==="[object Error]"||fh instanceof Error)}Ra.isError=Cf,Ra.types.isNativeError=Cf;function If(fh){return typeof fh=="function"}Ra.isFunction=If;function Sf(fh){return fh===null||typeof fh=="boolean"||typeof fh=="number"||typeof fh=="string"||typeof fh=="symbol"||typeof fh>"u"}Ra.isPrimitive=Sf,Ra.isBuffer=isBufferBrowser;function wf(fh){return Object.prototype.toString.call(fh)}function Pf(fh){return fh<10?"0"+fh.toString(10):fh.toString(10)}var lh=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function xh(){var fh=new Date,Sh=[Pf(fh.getHours()),Pf(fh.getMinutes()),Pf(fh.getSeconds())].join(":");return[fh.getDate(),lh[fh.getMonth()],Sh].join(" ")}Ra.log=function(){console.log("%s - %s",xh(),Ra.format.apply(Ra,arguments))},Ra.inherits=inherits_browserExports,Ra._extend=function(fh,Sh){if(!Sh||!_f(Sh))return fh;for(var vh=Object.keys(Sh),Df=vh.length;Df--;)fh[vh[Df]]=Sh[vh[Df]];return fh};function Eh(fh,Sh){return Object.prototype.hasOwnProperty.call(fh,Sh)}var Mh=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;Ra.promisify=function(Sh){if(typeof Sh!="function")throw new TypeError('The "original" argument must be of type Function');if(Mh&&Sh[Mh]){var vh=Sh[Mh];if(typeof vh!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(vh,Mh,{value:vh,enumerable:!1,writable:!1,configurable:!0}),vh}function vh(){for(var Df,Af,_h=new Promise(function(Jf,oh){Df=Jf,Af=oh}),Nh=[],dm=0;dm0?this.tail.next=Gd:this.head=Gd,this.tail=Gd,++this.length}},{key:"unshift",value:function(Vd){var Gd={data:Vd,next:this.head};this.length===0&&(this.tail=Gd),this.head=Gd,++this.length}},{key:"shift",value:function(){if(this.length!==0){var Vd=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,Vd}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(Vd){if(this.length===0)return"";for(var Gd=this.head,Ud=""+Gd.data;Gd=Gd.next;)Ud+=Vd+Gd.data;return Ud}},{key:"concat",value:function(Vd){if(this.length===0)return yd.alloc(0);for(var Gd=yd.allocUnsafe(Vd>>>0),Ud=this.head,qd=0;Ud;)Ld(Ud.data,Gd,qd),qd+=Ud.data.length,Ud=Ud.next;return Gd}},{key:"consume",value:function(Vd,Gd){var Ud;return VdWd.length?Wd.length:Vd;if(Kd===Wd.length?qd+=Wd:qd+=Wd.slice(0,Vd),Vd-=Kd,Vd===0){Kd===Wd.length?(++Ud,Gd.next?this.head=Gd.next:this.head=this.tail=null):(this.head=Gd,Gd.data=Wd.slice(Kd));break}++Ud}return this.length-=Ud,qd}},{key:"_getBuffer",value:function(Vd){var Gd=yd.allocUnsafe(Vd),Ud=this.head,qd=1;for(Ud.data.copy(Gd),Vd-=Ud.data.length;Ud=Ud.next;){var Wd=Ud.data,Kd=Vd>Wd.length?Wd.length:Vd;if(Wd.copy(Gd,Gd.length-Vd,0,Kd),Vd-=Kd,Vd===0){Kd===Wd.length?(++qd,Ud.next?this.head=Ud.next:this.head=this.tail=null):(this.head=Ud,Ud.data=Wd.slice(Kd));break}++qd}return this.length-=qd,Gd}},{key:Md,value:function(Vd,Gd){return Nd(this,qa(qa({},Gd),{},{depth:0,customInspect:!1}))}}]),Fd}(),buffer_list}var define_process_default$8={version:"v20.18.3",versions:{node:"20.18.3",acorn:"8.14.0",ada:"2.9.2",ares:"1.34.4",base64:"0.5.2",brotli:"1.1.0",cjs_module_lexer:"1.4.1",cldr:"45.0",icu:"75.1",llhttp:"8.1.2",modules:"115",napi:"9",nghttp2:"1.61.0",nghttp3:"0.7.0",ngtcp2:"1.1.0",openssl:"3.0.15+quic",simdutf:"5.6.4",tz:"2024b",undici:"6.21.1",unicode:"15.1",uv:"1.46.0",uvwasi:"0.0.21",v8:"11.3.244.8-node.25",zlib:"1.3.0.1-motley-82a5fec"},arch:"x64",platform:"linux",release:{name:"node",lts:"Iron",sourceUrl:"https://nodejs.org/download/release/v20.18.3/node-v20.18.3.tar.gz",headersUrl:"https://nodejs.org/download/release/v20.18.3/node-v20.18.3-headers.tar.gz"},moduleLoadList:["Internal Binding builtins","Internal Binding module_wrap","Internal Binding errors","NativeModule internal/assert","Internal Binding util","NativeModule internal/errors","Internal Binding config","Internal Binding timers","Internal Binding async_wrap","Internal Binding task_queue","Internal Binding symbols","NativeModule internal/async_hooks","Internal Binding constants","Internal Binding types","Internal Binding options","NativeModule internal/options","Internal Binding string_decoder","NativeModule internal/util","NativeModule internal/util/types","NativeModule internal/validators","NativeModule internal/linkedlist","NativeModule internal/priority_queue","Internal Binding icu","NativeModule internal/util/inspect","NativeModule internal/util/debuglog","NativeModule internal/timers","NativeModule internal/events/abort_listener","NativeModule events","Internal Binding buffer","NativeModule internal/buffer","NativeModule buffer","Internal Binding messaging","NativeModule internal/worker/js_transferable","NativeModule internal/querystring","NativeModule internal/constants","NativeModule path","NativeModule querystring","Internal Binding url","NativeModule internal/url","NativeModule internal/fs/utils","Internal Binding process_methods","NativeModule internal/process/per_thread","Internal Binding credentials","NativeModule internal/process/promises","NativeModule internal/fixed_queue","NativeModule async_hooks","NativeModule internal/process/task_queues","NativeModule timers","Internal Binding trace_events","Internal Binding contextify","NativeModule internal/vm","NativeModule internal/process/execution","NativeModule internal/process/warning","NativeModule internal/source_map/source_map_cache","Internal Binding fs","Internal Binding blob","Internal Binding encoding_binding","NativeModule internal/encoding","NativeModule internal/streams/utils","NativeModule util","NativeModule internal/webstreams/util","NativeModule internal/webstreams/queuingstrategies","NativeModule internal/blob","Internal Binding permission","NativeModule internal/process/permission","NativeModule fs","NativeModule internal/modules/helpers","NativeModule internal/console/constructor","NativeModule internal/console/global","NativeModule internal/util/inspector","Internal Binding inspector","NativeModule internal/webidl","Internal Binding performance","NativeModule internal/perf/utils","NativeModule internal/event_target","Internal Binding wasm_web_api","Internal Binding mksnapshot","NativeModule internal/v8/startup_snapshot","NativeModule internal/process/signal","NativeModule url","NativeModule internal/modules/package_json_reader","NativeModule internal/modules/cjs/loader","NativeModule internal/process/pre_execution","NativeModule internal/modules/esm/utils","NativeModule internal/inspector_async_hook","Internal Binding worker","NativeModule internal/modules/run_main","NativeModule internal/net","NativeModule internal/dns/utils","NativeModule internal/modules/esm/assert","NativeModule internal/modules/esm/loader","NativeModule internal/modules/esm/module_map","NativeModule internal/modules/esm/translators","NativeModule internal/modules/esm/package_config","NativeModule internal/modules/esm/formats","NativeModule internal/modules/esm/get_format","NativeModule internal/modules/esm/resolve","NativeModule internal/modules/esm/module_job","NativeModule internal/modules/esm/load","Internal Binding fs_dir","NativeModule internal/fs/dir","NativeModule string_decoder","Internal Binding fs_event_wrap","Internal Binding uv","NativeModule internal/fs/watchers","NativeModule internal/fs/recursive_watch","NativeModule internal/readline/utils","NativeModule internal/readline/callbacks","NativeModule internal/readline/interface","NativeModule internal/fs/promises","NativeModule internal/perf/performance_entry","NativeModule internal/perf/observe","NativeModule internal/perf/resource_timing","NativeModule internal/perf/nodetiming","NativeModule internal/perf/usertiming","NativeModule internal/perf/event_loop_utilization","NativeModule internal/histogram","NativeModule internal/perf/timerify","NativeModule internal/perf/performance","NativeModule internal/perf/event_loop_delay","NativeModule perf_hooks","NativeModule internal/modules/esm/initialize_import_meta","NativeModule internal/streams/destroy","NativeModule internal/abort_controller","NativeModule internal/streams/end-of-stream","NativeModule internal/streams/legacy","NativeModule internal/streams/add-abort-signal","NativeModule internal/streams/state","NativeModule internal/streams/from","NativeModule internal/streams/readable","NativeModule internal/streams/writable","NativeModule internal/streams/duplex","NativeModule internal/streams/pipeline","NativeModule internal/streams/compose","NativeModule internal/streams/operators","NativeModule stream/promises","NativeModule internal/streams/transform","NativeModule internal/streams/passthrough","NativeModule internal/streams/duplexpair","NativeModule stream","NativeModule internal/fs/streams","NativeModule fs/promises","NativeModule internal/util/parse_args/utils","NativeModule internal/util/parse_args/parse_args","NativeModule internal/mime","NativeModule internal/source_map/source_map","NativeModule module","Internal Binding crypto","NativeModule internal/crypto/random","NativeModule internal/crypto/hashnames","NativeModule internal/crypto/util","NativeModule internal/crypto/pbkdf2","NativeModule internal/crypto/scrypt","NativeModule internal/crypto/keys","NativeModule internal/crypto/hkdf","NativeModule internal/crypto/keygen","NativeModule internal/crypto/diffiehellman","NativeModule internal/streams/lazy_transform","NativeModule internal/crypto/cipher","NativeModule internal/crypto/sig","NativeModule internal/crypto/hash","NativeModule internal/crypto/x509","NativeModule internal/crypto/certificate","NativeModule crypto","NativeModule internal/crypto/webcrypto","Internal Binding stream_wrap","Internal Binding tcp_wrap","Internal Binding pipe_wrap","NativeModule internal/stream_base_commons","NativeModule diagnostics_channel","NativeModule net","Internal Binding tty_wrap","NativeModule internal/tty","NativeModule tty","NativeModule internal/deps/cjs-module-lexer/dist/lexer","Internal Binding udp_wrap","NativeModule internal/dgram","NativeModule dgram","Internal Binding process_wrap","NativeModule internal/socket_list","Internal Binding spawn_sync","NativeModule internal/child_process","NativeModule child_process","NativeModule _http_agent","Internal Binding http_parser","NativeModule internal/freelist","NativeModule _http_incoming","NativeModule _http_common","NativeModule internal/http","NativeModule _http_outgoing","NativeModule _http_client","NativeModule _http_server","NativeModule http","Internal Binding cares_wrap","NativeModule internal/tls/secure-context","NativeModule _tls_common","Internal Binding js_stream","NativeModule internal/js_stream_socket","Internal Binding tls_wrap","NativeModule _tls_wrap","NativeModule internal/tls/secure-pair","NativeModule tls","NativeModule https","Internal Binding block_list","NativeModule internal/socketaddress","NativeModule internal/blocklist","Internal Binding os","NativeModule os","NativeModule internal/dns/callback_resolver","NativeModule dns","NativeModule internal/dns/promises","NativeModule internal/util/colors","NativeModule internal/assert/assertion_error","NativeModule internal/assert/utils","NativeModule internal/assert/calltracker","NativeModule assert","Internal Binding serdes","Internal Binding profiler","Internal Binding heap_utils","Internal Binding internal_only_v8","NativeModule internal/heap_utils","NativeModule internal/promise_hooks","Internal Binding v8","NativeModule v8","NativeModule internal/worker/io","NativeModule internal/error_serdes","NativeModule internal/worker","NativeModule worker_threads","NativeModule internal/file","NativeModule internal/readline/emitKeypressEvents","NativeModule internal/readline/promises","NativeModule readline/promises","NativeModule readline","Internal Binding zlib","NativeModule zlib","NativeModule process","Internal Binding report","NativeModule internal/process/report","NativeModule constants","NativeModule internal/crypto/webidl"],_events:{newListener:[null,null],removeListener:[null,null]},_eventsCount:3,domain:null,_exiting:!1,config:{target_defaults:{cflags:[],default_configuration:"Release",defines:["NODE_OPENSSL_CONF_NAME=nodejs_conf","NODE_OPENSSL_HAS_QUIC","ICU_NO_USER_DATA_OVERRIDE"],include_dirs:[],libraries:[]},variables:{asan:0,clang:0,coverage:!1,dcheck_always_on:0,debug_nghttp2:!1,debug_node:!1,enable_lto:!1,enable_pgo_generate:!1,enable_pgo_use:!1,error_on_warn:!1,force_dynamic_crt:0,gas_version:"2.35",host_arch:"x64",icu_data_in:"../../deps/icu-tmp/icudt75l.dat",icu_endianness:"l",icu_gyp_path:"tools/icu/icu-generic.gyp",icu_path:"deps/icu-small",icu_small:!1,icu_ver_major:"75",is_debug:0,libdir:"lib",llvm_version:"0.0",napi_build_version:"9",node_builtin_shareable_builtins:["deps/cjs-module-lexer/lexer.js","deps/cjs-module-lexer/dist/lexer.js","deps/undici/undici.js"],node_byteorder:"little",node_debug_lib:!1,node_enable_d8:!1,node_enable_v8_vtunejit:!1,node_fipsinstall:!1,node_install_corepack:!0,node_install_npm:!0,node_library_files:["lib/_http_agent.js","lib/_http_client.js","lib/_http_common.js","lib/_http_incoming.js","lib/_http_outgoing.js","lib/_http_server.js","lib/_stream_duplex.js","lib/_stream_passthrough.js","lib/_stream_readable.js","lib/_stream_transform.js","lib/_stream_wrap.js","lib/_stream_writable.js","lib/_tls_common.js","lib/_tls_wrap.js","lib/assert.js","lib/assert/strict.js","lib/async_hooks.js","lib/buffer.js","lib/child_process.js","lib/cluster.js","lib/console.js","lib/constants.js","lib/crypto.js","lib/dgram.js","lib/diagnostics_channel.js","lib/dns.js","lib/dns/promises.js","lib/domain.js","lib/events.js","lib/fs.js","lib/fs/promises.js","lib/http.js","lib/http2.js","lib/https.js","lib/inspector.js","lib/inspector/promises.js","lib/internal/abort_controller.js","lib/internal/assert.js","lib/internal/assert/assertion_error.js","lib/internal/assert/calltracker.js","lib/internal/assert/utils.js","lib/internal/async_hooks.js","lib/internal/blob.js","lib/internal/blocklist.js","lib/internal/bootstrap/node.js","lib/internal/bootstrap/realm.js","lib/internal/bootstrap/shadow_realm.js","lib/internal/bootstrap/switches/does_not_own_process_state.js","lib/internal/bootstrap/switches/does_own_process_state.js","lib/internal/bootstrap/switches/is_main_thread.js","lib/internal/bootstrap/switches/is_not_main_thread.js","lib/internal/bootstrap/web/exposed-wildcard.js","lib/internal/bootstrap/web/exposed-window-or-worker.js","lib/internal/buffer.js","lib/internal/child_process.js","lib/internal/child_process/serialization.js","lib/internal/cli_table.js","lib/internal/cluster/child.js","lib/internal/cluster/primary.js","lib/internal/cluster/round_robin_handle.js","lib/internal/cluster/shared_handle.js","lib/internal/cluster/utils.js","lib/internal/cluster/worker.js","lib/internal/console/constructor.js","lib/internal/console/global.js","lib/internal/constants.js","lib/internal/crypto/aes.js","lib/internal/crypto/certificate.js","lib/internal/crypto/cfrg.js","lib/internal/crypto/cipher.js","lib/internal/crypto/diffiehellman.js","lib/internal/crypto/ec.js","lib/internal/crypto/hash.js","lib/internal/crypto/hashnames.js","lib/internal/crypto/hkdf.js","lib/internal/crypto/keygen.js","lib/internal/crypto/keys.js","lib/internal/crypto/mac.js","lib/internal/crypto/pbkdf2.js","lib/internal/crypto/random.js","lib/internal/crypto/rsa.js","lib/internal/crypto/scrypt.js","lib/internal/crypto/sig.js","lib/internal/crypto/util.js","lib/internal/crypto/webcrypto.js","lib/internal/crypto/webidl.js","lib/internal/crypto/x509.js","lib/internal/debugger/inspect.js","lib/internal/debugger/inspect_client.js","lib/internal/debugger/inspect_repl.js","lib/internal/dgram.js","lib/internal/dns/callback_resolver.js","lib/internal/dns/promises.js","lib/internal/dns/utils.js","lib/internal/encoding.js","lib/internal/error_serdes.js","lib/internal/errors.js","lib/internal/event_target.js","lib/internal/events/abort_listener.js","lib/internal/events/symbols.js","lib/internal/file.js","lib/internal/fixed_queue.js","lib/internal/freelist.js","lib/internal/freeze_intrinsics.js","lib/internal/fs/cp/cp-sync.js","lib/internal/fs/cp/cp.js","lib/internal/fs/dir.js","lib/internal/fs/promises.js","lib/internal/fs/read/context.js","lib/internal/fs/recursive_watch.js","lib/internal/fs/rimraf.js","lib/internal/fs/streams.js","lib/internal/fs/sync_write_stream.js","lib/internal/fs/utils.js","lib/internal/fs/watchers.js","lib/internal/heap_utils.js","lib/internal/histogram.js","lib/internal/http.js","lib/internal/http2/compat.js","lib/internal/http2/core.js","lib/internal/http2/util.js","lib/internal/inspector_async_hook.js","lib/internal/inspector_network_tracking.js","lib/internal/js_stream_socket.js","lib/internal/legacy/processbinding.js","lib/internal/linkedlist.js","lib/internal/main/check_syntax.js","lib/internal/main/embedding.js","lib/internal/main/eval_stdin.js","lib/internal/main/eval_string.js","lib/internal/main/inspect.js","lib/internal/main/mksnapshot.js","lib/internal/main/print_help.js","lib/internal/main/prof_process.js","lib/internal/main/repl.js","lib/internal/main/run_main_module.js","lib/internal/main/test_runner.js","lib/internal/main/watch_mode.js","lib/internal/main/worker_thread.js","lib/internal/mime.js","lib/internal/modules/cjs/loader.js","lib/internal/modules/esm/assert.js","lib/internal/modules/esm/create_dynamic_module.js","lib/internal/modules/esm/fetch_module.js","lib/internal/modules/esm/formats.js","lib/internal/modules/esm/get_format.js","lib/internal/modules/esm/hooks.js","lib/internal/modules/esm/initialize_import_meta.js","lib/internal/modules/esm/load.js","lib/internal/modules/esm/loader.js","lib/internal/modules/esm/module_job.js","lib/internal/modules/esm/module_map.js","lib/internal/modules/esm/package_config.js","lib/internal/modules/esm/resolve.js","lib/internal/modules/esm/shared_constants.js","lib/internal/modules/esm/translators.js","lib/internal/modules/esm/utils.js","lib/internal/modules/esm/worker.js","lib/internal/modules/helpers.js","lib/internal/modules/package_json_reader.js","lib/internal/modules/run_main.js","lib/internal/navigator.js","lib/internal/net.js","lib/internal/options.js","lib/internal/per_context/domexception.js","lib/internal/per_context/messageport.js","lib/internal/per_context/primordials.js","lib/internal/perf/event_loop_delay.js","lib/internal/perf/event_loop_utilization.js","lib/internal/perf/nodetiming.js","lib/internal/perf/observe.js","lib/internal/perf/performance.js","lib/internal/perf/performance_entry.js","lib/internal/perf/resource_timing.js","lib/internal/perf/timerify.js","lib/internal/perf/usertiming.js","lib/internal/perf/utils.js","lib/internal/policy/manifest.js","lib/internal/policy/sri.js","lib/internal/priority_queue.js","lib/internal/process/execution.js","lib/internal/process/per_thread.js","lib/internal/process/permission.js","lib/internal/process/policy.js","lib/internal/process/pre_execution.js","lib/internal/process/promises.js","lib/internal/process/report.js","lib/internal/process/signal.js","lib/internal/process/task_queues.js","lib/internal/process/warning.js","lib/internal/process/worker_thread_only.js","lib/internal/promise_hooks.js","lib/internal/querystring.js","lib/internal/readline/callbacks.js","lib/internal/readline/emitKeypressEvents.js","lib/internal/readline/interface.js","lib/internal/readline/promises.js","lib/internal/readline/utils.js","lib/internal/repl.js","lib/internal/repl/await.js","lib/internal/repl/history.js","lib/internal/repl/utils.js","lib/internal/socket_list.js","lib/internal/socketaddress.js","lib/internal/source_map/prepare_stack_trace.js","lib/internal/source_map/source_map.js","lib/internal/source_map/source_map_cache.js","lib/internal/stream_base_commons.js","lib/internal/streams/add-abort-signal.js","lib/internal/streams/compose.js","lib/internal/streams/destroy.js","lib/internal/streams/duplex.js","lib/internal/streams/duplexify.js","lib/internal/streams/duplexpair.js","lib/internal/streams/end-of-stream.js","lib/internal/streams/from.js","lib/internal/streams/lazy_transform.js","lib/internal/streams/legacy.js","lib/internal/streams/operators.js","lib/internal/streams/passthrough.js","lib/internal/streams/pipeline.js","lib/internal/streams/readable.js","lib/internal/streams/state.js","lib/internal/streams/transform.js","lib/internal/streams/utils.js","lib/internal/streams/writable.js","lib/internal/test/binding.js","lib/internal/test/transfer.js","lib/internal/test_runner/coverage.js","lib/internal/test_runner/harness.js","lib/internal/test_runner/mock/loader.js","lib/internal/test_runner/mock/mock.js","lib/internal/test_runner/mock/mock_timers.js","lib/internal/test_runner/reporter/dot.js","lib/internal/test_runner/reporter/junit.js","lib/internal/test_runner/reporter/lcov.js","lib/internal/test_runner/reporter/spec.js","lib/internal/test_runner/reporter/tap.js","lib/internal/test_runner/reporter/utils.js","lib/internal/test_runner/reporter/v8-serializer.js","lib/internal/test_runner/runner.js","lib/internal/test_runner/test.js","lib/internal/test_runner/tests_stream.js","lib/internal/test_runner/utils.js","lib/internal/timers.js","lib/internal/tls/secure-context.js","lib/internal/tls/secure-pair.js","lib/internal/trace_events_async_hooks.js","lib/internal/tty.js","lib/internal/url.js","lib/internal/util.js","lib/internal/util/colors.js","lib/internal/util/comparisons.js","lib/internal/util/debuglog.js","lib/internal/util/embedding.js","lib/internal/util/inspect.js","lib/internal/util/inspector.js","lib/internal/util/iterable_weak_map.js","lib/internal/util/parse_args/parse_args.js","lib/internal/util/parse_args/utils.js","lib/internal/util/types.js","lib/internal/v8/startup_snapshot.js","lib/internal/v8_prof_polyfill.js","lib/internal/v8_prof_processor.js","lib/internal/validators.js","lib/internal/vm.js","lib/internal/vm/module.js","lib/internal/wasm_web_api.js","lib/internal/watch_mode/files_watcher.js","lib/internal/watchdog.js","lib/internal/webidl.js","lib/internal/webstreams/adapters.js","lib/internal/webstreams/compression.js","lib/internal/webstreams/encoding.js","lib/internal/webstreams/queuingstrategies.js","lib/internal/webstreams/readablestream.js","lib/internal/webstreams/transfer.js","lib/internal/webstreams/transformstream.js","lib/internal/webstreams/util.js","lib/internal/webstreams/writablestream.js","lib/internal/worker.js","lib/internal/worker/io.js","lib/internal/worker/js_transferable.js","lib/module.js","lib/net.js","lib/os.js","lib/path.js","lib/path/posix.js","lib/path/win32.js","lib/perf_hooks.js","lib/process.js","lib/punycode.js","lib/querystring.js","lib/readline.js","lib/readline/promises.js","lib/repl.js","lib/sea.js","lib/stream.js","lib/stream/consumers.js","lib/stream/promises.js","lib/stream/web.js","lib/string_decoder.js","lib/sys.js","lib/test.js","lib/test/reporters.js","lib/timers.js","lib/timers/promises.js","lib/tls.js","lib/trace_events.js","lib/tty.js","lib/url.js","lib/util.js","lib/util/types.js","lib/v8.js","lib/vm.js","lib/wasi.js","lib/worker_threads.js","lib/zlib.js"],node_module_version:115,node_no_browser_globals:!1,node_prefix:"/",node_release_urlbase:"https://nodejs.org/download/release/",node_section_ordering_info:"",node_shared:!1,node_shared_ada:!1,node_shared_brotli:!1,node_shared_cares:!1,node_shared_http_parser:!1,node_shared_libuv:!1,node_shared_nghttp2:!1,node_shared_nghttp3:!1,node_shared_ngtcp2:!1,node_shared_openssl:!1,node_shared_simdjson:!1,node_shared_simdutf:!1,node_shared_uvwasi:!1,node_shared_zlib:!1,node_tag:"",node_target_type:"executable",node_use_bundled_v8:!0,node_use_node_code_cache:!0,node_use_node_snapshot:!0,node_use_openssl:!0,node_use_v8_platform:!0,node_with_ltcg:!1,node_without_node_options:!1,node_write_snapshot_as_array_literals:!1,openssl_is_fips:!1,openssl_quic:!0,ossfuzz:!1,shlib_suffix:"so.115",single_executable_application:!0,target_arch:"x64",ubsan:0,use_prefix_to_find_headers:!1,v8_enable_31bit_smis_on_64bit_arch:0,v8_enable_extensible_ro_snapshot:0,v8_enable_gdbjit:0,v8_enable_hugepage:0,v8_enable_i18n_support:1,v8_enable_inspector:1,v8_enable_javascript_promise_hooks:1,v8_enable_lite_mode:0,v8_enable_maglev:0,v8_enable_object_print:1,v8_enable_pointer_compression:0,v8_enable_sandbox:0,v8_enable_shared_ro_heap:1,v8_enable_short_builtin_calls:1,v8_enable_v8_checks:0,v8_enable_webassembly:1,v8_no_strict_aliasing:1,v8_optimized_debug:1,v8_promise_internal_field_count:1,v8_random_seed:0,v8_trace_maps:0,v8_use_siphash:1,want_separate_host_toolset:0}},allowedNodeEnvironmentFlags:{},features:{inspector:!0,debug:!1,uv:!0,ipv6:!0,tls_alpn:!0,tls_sni:!0,tls_ocsp:!0,tls:!0,cached_builtins:!0},sourceMapsEnabled:!1,stdout:{connecting:!1,_hadError:!1,_parent:null,_host:null,_closeAfterHandlingError:!1,_events:{},_readableState:{highWaterMark:16384,buffer:[],bufferIndex:0,length:0,pipes:[],awaitDrainWriters:null,readable:!1},_writableState:{highWaterMark:16384,length:0,corked:0,writelen:0,bufferedIndex:0,pendingcb:0},allowHalfOpen:!1,_eventsCount:1,_sockname:null,_pendingData:null,_pendingEncoding:"",server:null,_server:null,_type:"pipe",fd:1,_isStdio:!0},stdin:{connecting:!1,_hadError:!1,_parent:null,_host:null,_closeAfterHandlingError:!1,_events:{},_readableState:{highWaterMark:16384,buffer:[],bufferIndex:0,length:0,pipes:[],awaitDrainWriters:null},_writableState:{highWaterMark:16384,length:0,corked:0,writelen:0,bufferedIndex:0,pendingcb:0},allowHalfOpen:!1,_eventsCount:2,_sockname:null,_pendingData:null,_pendingEncoding:"",server:null,_server:null,fd:0},stderr:{connecting:!1,_hadError:!1,_parent:null,_host:null,_closeAfterHandlingError:!1,_events:{},_readableState:{highWaterMark:16384,buffer:[],bufferIndex:0,length:0,pipes:[],awaitDrainWriters:null,readable:!1},_writableState:{highWaterMark:16384,length:0,corked:0,writelen:0,bufferedIndex:0,pendingcb:0},allowHalfOpen:!1,_eventsCount:1,_sockname:null,_pendingData:null,_pendingEncoding:"",server:null,_server:null,_type:"pipe",fd:2,_isStdio:!0},env:{GITHUB_STATE:"/home/runner/work/_temp/_runner_file_commands/save_state_18a51caf-e5c9-4051-9c6d-047b16202017",STATS_TRP:"true",DEPLOYMENT_BASEPATH:"/opt/runner",DOTNET_NOLOGO:"1",USER:"runner",npm_config_user_agent:"npm/10.8.2 node/v20.18.3 linux x64 workspaces/false ci/github-actions",CI:"true",RUNNER_ENVIRONMENT:"github-hosted",GITHUB_ENV:"/home/runner/work/_temp/_runner_file_commands/set_env_18a51caf-e5c9-4051-9c6d-047b16202017",PIPX_HOME:"/opt/pipx",npm_node_execpath:"/opt/hostedtoolcache/node/20.18.3/x64/bin/node",JAVA_HOME_8_X64:"/usr/lib/jvm/temurin-8-jdk-amd64",SHLVL:"1",npm_config_noproxy:"",HOME:"/home/runner",RUNNER_TEMP:"/home/runner/work/_temp",GITHUB_EVENT_PATH:"/home/runner/work/_temp/_github_workflow/event.json",npm_package_json:"/home/runner/work/md/md/package.json",JAVA_HOME_11_X64:"/usr/lib/jvm/temurin-11-jdk-amd64",PIPX_BIN_DIR:"/opt/pipx_bin",GITHUB_REPOSITORY_OWNER:"doocs",GRADLE_HOME:"/usr/share/gradle-8.12.1",ANDROID_NDK_LATEST_HOME:"/usr/local/lib/android/sdk/ndk/28.0.13004108",JAVA_HOME_21_X64:"/usr/lib/jvm/temurin-21-jdk-amd64",STATS_RDCL:"true",GITHUB_RETENTION_DAYS:"90",GITHUB_REPOSITORY_OWNER_ID:"43716716",POWERSHELL_DISTRIBUTION_CHANNEL:"GitHub-Actions-ubuntu24",AZURE_EXTENSION_DIR:"/opt/az/azcliextensions",GITHUB_HEAD_REF:"",npm_config_userconfig:"/home/runner/.npmrc",npm_config_local_prefix:"/home/runner/work/md/md",SYSTEMD_EXEC_PID:"830",GITHUB_GRAPHQL_URL:"https://api.github.com/graphql",COLOR:"0",NVM_DIR:"/home/runner/.nvm",DOTNET_SKIP_FIRST_TIME_EXPERIENCE:"1",GOROOT_1_21_X64:"/opt/hostedtoolcache/go/1.21.13/x64",JAVA_HOME_17_X64:"/usr/lib/jvm/temurin-17-jdk-amd64",ImageVersion:"20250223.1.0",RUNNER_OS:"Linux",GITHUB_API_URL:"https://api.github.com",GOROOT_1_22_X64:"/opt/hostedtoolcache/go/1.22.12/x64",SWIFT_PATH:"/usr/share/swift/usr/bin",RUNNER_USER:"runner",STATS_V3PS:"true",CHROMEWEBDRIVER:"/usr/local/share/chromedriver-linux64",GOROOT_1_23_X64:"/opt/hostedtoolcache/go/1.23.6/x64",JOURNAL_STREAM:"8:7475",GITHUB_WORKFLOW:"Build and Deploy",_:"/opt/hostedtoolcache/node/20.18.3/x64/bin/npm",npm_config_prefix:"/opt/hostedtoolcache/node/20.18.3/x64",npm_config_npm_version:"10.8.2",MEMORY_PRESSURE_WATCH:"/sys/fs/cgroup/system.slice/runner-provisioner.service/memory.pressure",ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE:"/opt/actionarchivecache",STATS_D:"true",GITHUB_RUN_ID:"13615010219",STATS_VMFE:"true",npm_config_cache:"/home/runner/.npm",GITHUB_REF_TYPE:"branch",BOOTSTRAP_HASKELL_NONINTERACTIVE:"1",GITHUB_WORKFLOW_SHA:"757697bf0a09df0bac18ef9292efbd16190f9623",GITHUB_BASE_REF:"",ImageOS:"ubuntu24",GITHUB_WORKFLOW_REF:"doocs/md/.github/workflows/build.yml@refs/heads/main",PERFLOG_LOCATION_SETTING:"RUNNER_PERFLOG",GITHUB_ACTION_REPOSITORY:"",npm_config_node_gyp:"/opt/hostedtoolcache/node/20.18.3/x64/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",PATH:"/home/runner/work/md/md/node_modules/.bin:/home/runner/work/md/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/20.18.3/x64/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/home/runner/work/md/md/node_modules/.bin:/home/runner/work/md/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/20.18.3/x64/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/opt/hostedtoolcache/node/20.18.3/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin",ANT_HOME:"/usr/share/ant",DOTNET_MULTILEVEL_LOOKUP:"0",RUNNER_TRACKING_ID:"github_1fb27123-8112-41d5-8496-e07ab36dd844",INVOCATION_ID:"e834f6d4e33e4a03b891bf70cc20a8b3",RUNNER_TOOL_CACHE:"/opt/hostedtoolcache",NODE:"/opt/hostedtoolcache/node/20.18.3/x64/bin/node",npm_package_name:"md",GITHUB_ACTION:"__run_2",GITHUB_RUN_NUMBER:"501",GITHUB_TRIGGERING_ACTOR:"yanglbme",RUNNER_ARCH:"X64",XDG_RUNTIME_DIR:"/run/user/1001",AGENT_TOOLSDIRECTORY:"/opt/hostedtoolcache",LANG:"C.UTF-8",VCPKG_INSTALLATION_ROOT:"/usr/local/share/vcpkg",CONDA:"/usr/share/miniconda",RUNNER_NAME:"GitHub Actions 4",XDG_CONFIG_HOME:"/home/runner/.config",STATS_VMD:"true",GITHUB_REF_NAME:"main",GITHUB_REPOSITORY:"doocs/md",STATS_D_D:"true",npm_lifecycle_script:"vite build",STATS_UE:"true",ANDROID_NDK_ROOT:"/usr/local/lib/android/sdk/ndk/27.2.12479018",GITHUB_ACTION_REF:"",DEBIAN_FRONTEND:"noninteractive",GITHUB_REPOSITORY_ID:"218952803",GITHUB_ACTIONS:"true",STATS_PIP:"false",npm_package_version:"1.6.0",npm_lifecycle_event:"build:only",GITHUB_REF_PROTECTED:"true",GITHUB_WORKSPACE:"/home/runner/work/md/md",ACCEPT_EULA:"Y",GITHUB_JOB:"build-and-deploy",RUNNER_PERFLOG:"/home/runner/perflog",GITHUB_SHA:"757697bf0a09df0bac18ef9292efbd16190f9623",GITHUB_RUN_ATTEMPT:"1",STATS_D_TC:"true",GITHUB_REF:"refs/heads/main",GITHUB_ACTOR:"yanglbme",ANDROID_SDK_ROOT:"/usr/local/lib/android/sdk",npm_config_globalconfig:"/opt/hostedtoolcache/node/20.18.3/x64/etc/npmrc",npm_config_init_module:"/home/runner/.npm-init.js",GITHUB_PATH:"/home/runner/work/_temp/_runner_file_commands/add_path_18a51caf-e5c9-4051-9c6d-047b16202017",JAVA_HOME:"/usr/lib/jvm/temurin-17-jdk-amd64",PWD:"/home/runner/work/md/md",GITHUB_ACTOR_ID:"21008209",RUNNER_WORKSPACE:"/home/runner/work/md",npm_execpath:"/opt/hostedtoolcache/node/20.18.3/x64/lib/node_modules/npm/bin/npm-cli.js",HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS:"3650",GITHUB_EVENT_NAME:"push",HOMEBREW_NO_AUTO_UPDATE:"1",ANDROID_HOME:"/usr/local/lib/android/sdk",GITHUB_SERVER_URL:"https://github.com",GECKOWEBDRIVER:"/usr/local/share/gecko_driver",GHCUP_INSTALL_BASE_PREFIX:"/usr/local",GITHUB_OUTPUT:"/home/runner/work/_temp/_runner_file_commands/set_output_18a51caf-e5c9-4051-9c6d-047b16202017",npm_config_global_prefix:"/opt/hostedtoolcache/node/20.18.3/x64",EDGEWEBDRIVER:"/usr/local/share/edge_driver",STATS_EXT:"true",npm_command:"run-script",ANDROID_NDK:"/usr/local/lib/android/sdk/ndk/27.2.12479018",SGX_AESM_ADDR:"1",CHROME_BIN:"/usr/bin/google-chrome",SELENIUM_JAR_PATH:"/usr/share/java/selenium-server.jar",MEMORY_PRESSURE_WRITE:"c29tZSAyMDAwMDAgMjAwMDAwMAA=",STATS_EXTP:"https://provjobdprod.z13.web.core.windows.net/settings/provjobdsettings-latest/provjobd.data",ANDROID_NDK_HOME:"/usr/local/lib/android/sdk/ndk/27.2.12479018",GITHUB_STEP_SUMMARY:"/home/runner/work/_temp/_runner_file_commands/step_summary_18a51caf-e5c9-4051-9c6d-047b16202017",INIT_CWD:"/home/runner/work/md/md",EDITOR:"vi",NODE_ENV:"production",LAUNCH_EDITOR:"code"},title:"node",argv:["/opt/hostedtoolcache/node/20.18.3/x64/bin/node","/home/runner/work/md/md/node_modules/.bin/vite","build"],execArgv:[],pid:2166,ppid:2165,execPath:"/opt/hostedtoolcache/node/20.18.3/x64/bin/node",debugPort:9229,argv0:"node",_preload_modules:[],report:{directory:"",filename:"",compact:!1,excludeNetwork:!1,signal:"SIGUSR2",reportOnFatalError:!1,reportOnSignal:!1,reportOnUncaughtException:!1}};function destroy(Ra,qa){var rd=this,sd=this._readableState&&this._readableState.destroyed,pd=this._writableState&&this._writableState.destroyed;return sd||pd?(qa?qa(Ra):Ra&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,define_process_default$8.nextTick(emitErrorNT,this,Ra)):define_process_default$8.nextTick(emitErrorNT,this,Ra)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(Ra||null,function(fd){!qa&&fd?rd._writableState?rd._writableState.errorEmitted?define_process_default$8.nextTick(emitCloseNT,rd):(rd._writableState.errorEmitted=!0,define_process_default$8.nextTick(emitErrorAndCloseNT,rd,fd)):define_process_default$8.nextTick(emitErrorAndCloseNT,rd,fd):qa?(define_process_default$8.nextTick(emitCloseNT,rd),qa(fd)):define_process_default$8.nextTick(emitCloseNT,rd)}),this)}function emitErrorAndCloseNT(Ra,qa){emitErrorNT(Ra,qa),emitCloseNT(Ra)}function emitCloseNT(Ra){Ra._writableState&&!Ra._writableState.emitClose||Ra._readableState&&!Ra._readableState.emitClose||Ra.emit("close")}function undestroy(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function emitErrorNT(Ra,qa){Ra.emit("error",qa)}function errorOrDestroy(Ra,qa){var rd=Ra._readableState,sd=Ra._writableState;rd&&rd.autoDestroy||sd&&sd.autoDestroy?Ra.destroy(qa):Ra.emit("error",qa)}var destroy_1={destroy,undestroy,errorOrDestroy},errorsBrowser={};function _inheritsLoose(Ra,qa){Ra.prototype=Object.create(qa.prototype),Ra.prototype.constructor=Ra,Ra.__proto__=qa}var codes={};function createErrorType(Ra,qa,rd){rd||(rd=Error);function sd(fd,hd,md){return typeof qa=="string"?qa:qa(fd,hd,md)}var pd=function(fd){_inheritsLoose(hd,fd);function hd(md,gd,yd){return fd.call(this,sd(md,gd,yd))||this}return hd}(rd);pd.prototype.name=rd.name,pd.prototype.code=Ra,codes[Ra]=pd}function oneOf(Ra,qa){if(Array.isArray(Ra)){var rd=Ra.length;return Ra=Ra.map(function(sd){return String(sd)}),rd>2?"one of ".concat(qa," ").concat(Ra.slice(0,rd-1).join(", "),", or ")+Ra[rd-1]:rd===2?"one of ".concat(qa," ").concat(Ra[0]," or ").concat(Ra[1]):"of ".concat(qa," ").concat(Ra[0])}else return"of ".concat(qa," ").concat(String(Ra))}function startsWith(Ra,qa,rd){return Ra.substr(0,qa.length)===qa}function endsWith$1(Ra,qa,rd){return(rd===void 0||rd>Ra.length)&&(rd=Ra.length),Ra.substring(rd-qa.length,rd)===qa}function includes(Ra,qa,rd){return typeof rd!="number"&&(rd=0),rd+qa.length>Ra.length?!1:Ra.indexOf(qa,rd)!==-1}createErrorType("ERR_INVALID_OPT_VALUE",function(Ra,qa){return'The value "'+qa+'" is invalid for option "'+Ra+'"'},TypeError);createErrorType("ERR_INVALID_ARG_TYPE",function(Ra,qa,rd){var sd;typeof qa=="string"&&startsWith(qa,"not ")?(sd="must not be",qa=qa.replace(/^not /,"")):sd="must be";var pd;if(endsWith$1(Ra," argument"))pd="The ".concat(Ra," ").concat(sd," ").concat(oneOf(qa,"type"));else{var fd=includes(Ra,".")?"property":"argument";pd='The "'.concat(Ra,'" ').concat(fd," ").concat(sd," ").concat(oneOf(qa,"type"))}return pd+=". Received type ".concat(typeof rd),pd},TypeError);createErrorType("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");createErrorType("ERR_METHOD_NOT_IMPLEMENTED",function(Ra){return"The "+Ra+" method is not implemented"});createErrorType("ERR_STREAM_PREMATURE_CLOSE","Premature close");createErrorType("ERR_STREAM_DESTROYED",function(Ra){return"Cannot call "+Ra+" after a stream was destroyed"});createErrorType("ERR_MULTIPLE_CALLBACK","Callback called multiple times");createErrorType("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");createErrorType("ERR_STREAM_WRITE_AFTER_END","write after end");createErrorType("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);createErrorType("ERR_UNKNOWN_ENCODING",function(Ra){return"Unknown encoding: "+Ra},TypeError);createErrorType("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");errorsBrowser.codes=codes;var ERR_INVALID_OPT_VALUE=errorsBrowser.codes.ERR_INVALID_OPT_VALUE;function highWaterMarkFrom(Ra,qa,rd){return Ra.highWaterMark!=null?Ra.highWaterMark:qa?Ra[rd]:null}function getHighWaterMark(Ra,qa,rd,sd){var pd=highWaterMarkFrom(qa,sd,rd);if(pd!=null){if(!(isFinite(pd)&&Math.floor(pd)===pd)||pd<0){var fd=sd?rd:"highWaterMark";throw new ERR_INVALID_OPT_VALUE(fd,pd)}return Math.floor(pd)}return Ra.objectMode?16:16*1024}var state={getHighWaterMark},browser$1=deprecate;function deprecate(Ra,qa){if(config("noDeprecation"))return Ra;var rd=!1;function sd(){if(!rd){if(config("throwDeprecation"))throw new Error(qa);config("traceDeprecation")?console.trace(qa):console.warn(qa),rd=!0}return Ra.apply(this,arguments)}return sd}function config(Ra){try{if(!commonjsGlobal.localStorage)return!1}catch{return!1}var qa=commonjsGlobal.localStorage[Ra];return qa==null?!1:String(qa).toLowerCase()==="true"}var _stream_writable,hasRequired_stream_writable;function require_stream_writable(){if(hasRequired_stream_writable)return _stream_writable;hasRequired_stream_writable=1;var Ra={version:"v20.18.3",versions:{node:"20.18.3",acorn:"8.14.0",ada:"2.9.2",ares:"1.34.4",base64:"0.5.2",brotli:"1.1.0",cjs_module_lexer:"1.4.1",cldr:"45.0",icu:"75.1",llhttp:"8.1.2",modules:"115",napi:"9",nghttp2:"1.61.0",nghttp3:"0.7.0",ngtcp2:"1.1.0",openssl:"3.0.15+quic",simdutf:"5.6.4",tz:"2024b",undici:"6.21.1",unicode:"15.1",uv:"1.46.0",uvwasi:"0.0.21",v8:"11.3.244.8-node.25",zlib:"1.3.0.1-motley-82a5fec"},arch:"x64",platform:"linux",release:{name:"node",lts:"Iron",sourceUrl:"https://nodejs.org/download/release/v20.18.3/node-v20.18.3.tar.gz",headersUrl:"https://nodejs.org/download/release/v20.18.3/node-v20.18.3-headers.tar.gz"},moduleLoadList:["Internal Binding builtins","Internal Binding module_wrap","Internal Binding errors","NativeModule internal/assert","Internal Binding util","NativeModule internal/errors","Internal Binding config","Internal Binding timers","Internal Binding async_wrap","Internal Binding task_queue","Internal Binding symbols","NativeModule internal/async_hooks","Internal Binding constants","Internal Binding types","Internal Binding options","NativeModule internal/options","Internal Binding string_decoder","NativeModule internal/util","NativeModule internal/util/types","NativeModule internal/validators","NativeModule internal/linkedlist","NativeModule internal/priority_queue","Internal Binding icu","NativeModule internal/util/inspect","NativeModule internal/util/debuglog","NativeModule internal/timers","NativeModule internal/events/abort_listener","NativeModule events","Internal Binding buffer","NativeModule internal/buffer","NativeModule buffer","Internal Binding messaging","NativeModule internal/worker/js_transferable","NativeModule internal/querystring","NativeModule internal/constants","NativeModule path","NativeModule querystring","Internal Binding url","NativeModule internal/url","NativeModule internal/fs/utils","Internal Binding process_methods","NativeModule internal/process/per_thread","Internal Binding credentials","NativeModule internal/process/promises","NativeModule internal/fixed_queue","NativeModule async_hooks","NativeModule internal/process/task_queues","NativeModule timers","Internal Binding trace_events","Internal Binding contextify","NativeModule internal/vm","NativeModule internal/process/execution","NativeModule internal/process/warning","NativeModule internal/source_map/source_map_cache","Internal Binding fs","Internal Binding blob","Internal Binding encoding_binding","NativeModule internal/encoding","NativeModule internal/streams/utils","NativeModule util","NativeModule internal/webstreams/util","NativeModule internal/webstreams/queuingstrategies","NativeModule internal/blob","Internal Binding permission","NativeModule internal/process/permission","NativeModule fs","NativeModule internal/modules/helpers","NativeModule internal/console/constructor","NativeModule internal/console/global","NativeModule internal/util/inspector","Internal Binding inspector","NativeModule internal/webidl","Internal Binding performance","NativeModule internal/perf/utils","NativeModule internal/event_target","Internal Binding wasm_web_api","Internal Binding mksnapshot","NativeModule internal/v8/startup_snapshot","NativeModule internal/process/signal","NativeModule url","NativeModule internal/modules/package_json_reader","NativeModule internal/modules/cjs/loader","NativeModule internal/process/pre_execution","NativeModule internal/modules/esm/utils","NativeModule internal/inspector_async_hook","Internal Binding worker","NativeModule internal/modules/run_main","NativeModule internal/net","NativeModule internal/dns/utils","NativeModule internal/modules/esm/assert","NativeModule internal/modules/esm/loader","NativeModule internal/modules/esm/module_map","NativeModule internal/modules/esm/translators","NativeModule internal/modules/esm/package_config","NativeModule internal/modules/esm/formats","NativeModule internal/modules/esm/get_format","NativeModule internal/modules/esm/resolve","NativeModule internal/modules/esm/module_job","NativeModule internal/modules/esm/load","Internal Binding fs_dir","NativeModule internal/fs/dir","NativeModule string_decoder","Internal Binding fs_event_wrap","Internal Binding uv","NativeModule internal/fs/watchers","NativeModule internal/fs/recursive_watch","NativeModule internal/readline/utils","NativeModule internal/readline/callbacks","NativeModule internal/readline/interface","NativeModule internal/fs/promises","NativeModule internal/perf/performance_entry","NativeModule internal/perf/observe","NativeModule internal/perf/resource_timing","NativeModule internal/perf/nodetiming","NativeModule internal/perf/usertiming","NativeModule internal/perf/event_loop_utilization","NativeModule internal/histogram","NativeModule internal/perf/timerify","NativeModule internal/perf/performance","NativeModule internal/perf/event_loop_delay","NativeModule perf_hooks","NativeModule internal/modules/esm/initialize_import_meta","NativeModule internal/streams/destroy","NativeModule internal/abort_controller","NativeModule internal/streams/end-of-stream","NativeModule internal/streams/legacy","NativeModule internal/streams/add-abort-signal","NativeModule internal/streams/state","NativeModule internal/streams/from","NativeModule internal/streams/readable","NativeModule internal/streams/writable","NativeModule internal/streams/duplex","NativeModule internal/streams/pipeline","NativeModule internal/streams/compose","NativeModule internal/streams/operators","NativeModule stream/promises","NativeModule internal/streams/transform","NativeModule internal/streams/passthrough","NativeModule internal/streams/duplexpair","NativeModule stream","NativeModule internal/fs/streams","NativeModule fs/promises","NativeModule internal/util/parse_args/utils","NativeModule internal/util/parse_args/parse_args","NativeModule internal/mime","NativeModule internal/source_map/source_map","NativeModule module","Internal Binding crypto","NativeModule internal/crypto/random","NativeModule internal/crypto/hashnames","NativeModule internal/crypto/util","NativeModule internal/crypto/pbkdf2","NativeModule internal/crypto/scrypt","NativeModule internal/crypto/keys","NativeModule internal/crypto/hkdf","NativeModule internal/crypto/keygen","NativeModule internal/crypto/diffiehellman","NativeModule internal/streams/lazy_transform","NativeModule internal/crypto/cipher","NativeModule internal/crypto/sig","NativeModule internal/crypto/hash","NativeModule internal/crypto/x509","NativeModule internal/crypto/certificate","NativeModule crypto","NativeModule internal/crypto/webcrypto","Internal Binding stream_wrap","Internal Binding tcp_wrap","Internal Binding pipe_wrap","NativeModule internal/stream_base_commons","NativeModule diagnostics_channel","NativeModule net","Internal Binding tty_wrap","NativeModule internal/tty","NativeModule tty","NativeModule internal/deps/cjs-module-lexer/dist/lexer","Internal Binding udp_wrap","NativeModule internal/dgram","NativeModule dgram","Internal Binding process_wrap","NativeModule internal/socket_list","Internal Binding spawn_sync","NativeModule internal/child_process","NativeModule child_process","NativeModule _http_agent","Internal Binding http_parser","NativeModule internal/freelist","NativeModule _http_incoming","NativeModule _http_common","NativeModule internal/http","NativeModule _http_outgoing","NativeModule _http_client","NativeModule _http_server","NativeModule http","Internal Binding cares_wrap","NativeModule internal/tls/secure-context","NativeModule _tls_common","Internal Binding js_stream","NativeModule internal/js_stream_socket","Internal Binding tls_wrap","NativeModule _tls_wrap","NativeModule internal/tls/secure-pair","NativeModule tls","NativeModule https","Internal Binding block_list","NativeModule internal/socketaddress","NativeModule internal/blocklist","Internal Binding os","NativeModule os","NativeModule internal/dns/callback_resolver","NativeModule dns","NativeModule internal/dns/promises","NativeModule internal/util/colors","NativeModule internal/assert/assertion_error","NativeModule internal/assert/utils","NativeModule internal/assert/calltracker","NativeModule assert","Internal Binding serdes","Internal Binding profiler","Internal Binding heap_utils","Internal Binding internal_only_v8","NativeModule internal/heap_utils","NativeModule internal/promise_hooks","Internal Binding v8","NativeModule v8","NativeModule internal/worker/io","NativeModule internal/error_serdes","NativeModule internal/worker","NativeModule worker_threads","NativeModule internal/file","NativeModule internal/readline/emitKeypressEvents","NativeModule internal/readline/promises","NativeModule readline/promises","NativeModule readline","Internal Binding zlib","NativeModule zlib","NativeModule process","Internal Binding report","NativeModule internal/process/report","NativeModule constants","NativeModule internal/crypto/webidl"],_events:{newListener:[null,null],removeListener:[null,null]},_eventsCount:3,domain:null,_exiting:!1,config:{target_defaults:{cflags:[],default_configuration:"Release",defines:["NODE_OPENSSL_CONF_NAME=nodejs_conf","NODE_OPENSSL_HAS_QUIC","ICU_NO_USER_DATA_OVERRIDE"],include_dirs:[],libraries:[]},variables:{asan:0,clang:0,coverage:!1,dcheck_always_on:0,debug_nghttp2:!1,debug_node:!1,enable_lto:!1,enable_pgo_generate:!1,enable_pgo_use:!1,error_on_warn:!1,force_dynamic_crt:0,gas_version:"2.35",host_arch:"x64",icu_data_in:"../../deps/icu-tmp/icudt75l.dat",icu_endianness:"l",icu_gyp_path:"tools/icu/icu-generic.gyp",icu_path:"deps/icu-small",icu_small:!1,icu_ver_major:"75",is_debug:0,libdir:"lib",llvm_version:"0.0",napi_build_version:"9",node_builtin_shareable_builtins:["deps/cjs-module-lexer/lexer.js","deps/cjs-module-lexer/dist/lexer.js","deps/undici/undici.js"],node_byteorder:"little",node_debug_lib:!1,node_enable_d8:!1,node_enable_v8_vtunejit:!1,node_fipsinstall:!1,node_install_corepack:!0,node_install_npm:!0,node_library_files:["lib/_http_agent.js","lib/_http_client.js","lib/_http_common.js","lib/_http_incoming.js","lib/_http_outgoing.js","lib/_http_server.js","lib/_stream_duplex.js","lib/_stream_passthrough.js","lib/_stream_readable.js","lib/_stream_transform.js","lib/_stream_wrap.js","lib/_stream_writable.js","lib/_tls_common.js","lib/_tls_wrap.js","lib/assert.js","lib/assert/strict.js","lib/async_hooks.js","lib/buffer.js","lib/child_process.js","lib/cluster.js","lib/console.js","lib/constants.js","lib/crypto.js","lib/dgram.js","lib/diagnostics_channel.js","lib/dns.js","lib/dns/promises.js","lib/domain.js","lib/events.js","lib/fs.js","lib/fs/promises.js","lib/http.js","lib/http2.js","lib/https.js","lib/inspector.js","lib/inspector/promises.js","lib/internal/abort_controller.js","lib/internal/assert.js","lib/internal/assert/assertion_error.js","lib/internal/assert/calltracker.js","lib/internal/assert/utils.js","lib/internal/async_hooks.js","lib/internal/blob.js","lib/internal/blocklist.js","lib/internal/bootstrap/node.js","lib/internal/bootstrap/realm.js","lib/internal/bootstrap/shadow_realm.js","lib/internal/bootstrap/switches/does_not_own_process_state.js","lib/internal/bootstrap/switches/does_own_process_state.js","lib/internal/bootstrap/switches/is_main_thread.js","lib/internal/bootstrap/switches/is_not_main_thread.js","lib/internal/bootstrap/web/exposed-wildcard.js","lib/internal/bootstrap/web/exposed-window-or-worker.js","lib/internal/buffer.js","lib/internal/child_process.js","lib/internal/child_process/serialization.js","lib/internal/cli_table.js","lib/internal/cluster/child.js","lib/internal/cluster/primary.js","lib/internal/cluster/round_robin_handle.js","lib/internal/cluster/shared_handle.js","lib/internal/cluster/utils.js","lib/internal/cluster/worker.js","lib/internal/console/constructor.js","lib/internal/console/global.js","lib/internal/constants.js","lib/internal/crypto/aes.js","lib/internal/crypto/certificate.js","lib/internal/crypto/cfrg.js","lib/internal/crypto/cipher.js","lib/internal/crypto/diffiehellman.js","lib/internal/crypto/ec.js","lib/internal/crypto/hash.js","lib/internal/crypto/hashnames.js","lib/internal/crypto/hkdf.js","lib/internal/crypto/keygen.js","lib/internal/crypto/keys.js","lib/internal/crypto/mac.js","lib/internal/crypto/pbkdf2.js","lib/internal/crypto/random.js","lib/internal/crypto/rsa.js","lib/internal/crypto/scrypt.js","lib/internal/crypto/sig.js","lib/internal/crypto/util.js","lib/internal/crypto/webcrypto.js","lib/internal/crypto/webidl.js","lib/internal/crypto/x509.js","lib/internal/debugger/inspect.js","lib/internal/debugger/inspect_client.js","lib/internal/debugger/inspect_repl.js","lib/internal/dgram.js","lib/internal/dns/callback_resolver.js","lib/internal/dns/promises.js","lib/internal/dns/utils.js","lib/internal/encoding.js","lib/internal/error_serdes.js","lib/internal/errors.js","lib/internal/event_target.js","lib/internal/events/abort_listener.js","lib/internal/events/symbols.js","lib/internal/file.js","lib/internal/fixed_queue.js","lib/internal/freelist.js","lib/internal/freeze_intrinsics.js","lib/internal/fs/cp/cp-sync.js","lib/internal/fs/cp/cp.js","lib/internal/fs/dir.js","lib/internal/fs/promises.js","lib/internal/fs/read/context.js","lib/internal/fs/recursive_watch.js","lib/internal/fs/rimraf.js","lib/internal/fs/streams.js","lib/internal/fs/sync_write_stream.js","lib/internal/fs/utils.js","lib/internal/fs/watchers.js","lib/internal/heap_utils.js","lib/internal/histogram.js","lib/internal/http.js","lib/internal/http2/compat.js","lib/internal/http2/core.js","lib/internal/http2/util.js","lib/internal/inspector_async_hook.js","lib/internal/inspector_network_tracking.js","lib/internal/js_stream_socket.js","lib/internal/legacy/processbinding.js","lib/internal/linkedlist.js","lib/internal/main/check_syntax.js","lib/internal/main/embedding.js","lib/internal/main/eval_stdin.js","lib/internal/main/eval_string.js","lib/internal/main/inspect.js","lib/internal/main/mksnapshot.js","lib/internal/main/print_help.js","lib/internal/main/prof_process.js","lib/internal/main/repl.js","lib/internal/main/run_main_module.js","lib/internal/main/test_runner.js","lib/internal/main/watch_mode.js","lib/internal/main/worker_thread.js","lib/internal/mime.js","lib/internal/modules/cjs/loader.js","lib/internal/modules/esm/assert.js","lib/internal/modules/esm/create_dynamic_module.js","lib/internal/modules/esm/fetch_module.js","lib/internal/modules/esm/formats.js","lib/internal/modules/esm/get_format.js","lib/internal/modules/esm/hooks.js","lib/internal/modules/esm/initialize_import_meta.js","lib/internal/modules/esm/load.js","lib/internal/modules/esm/loader.js","lib/internal/modules/esm/module_job.js","lib/internal/modules/esm/module_map.js","lib/internal/modules/esm/package_config.js","lib/internal/modules/esm/resolve.js","lib/internal/modules/esm/shared_constants.js","lib/internal/modules/esm/translators.js","lib/internal/modules/esm/utils.js","lib/internal/modules/esm/worker.js","lib/internal/modules/helpers.js","lib/internal/modules/package_json_reader.js","lib/internal/modules/run_main.js","lib/internal/navigator.js","lib/internal/net.js","lib/internal/options.js","lib/internal/per_context/domexception.js","lib/internal/per_context/messageport.js","lib/internal/per_context/primordials.js","lib/internal/perf/event_loop_delay.js","lib/internal/perf/event_loop_utilization.js","lib/internal/perf/nodetiming.js","lib/internal/perf/observe.js","lib/internal/perf/performance.js","lib/internal/perf/performance_entry.js","lib/internal/perf/resource_timing.js","lib/internal/perf/timerify.js","lib/internal/perf/usertiming.js","lib/internal/perf/utils.js","lib/internal/policy/manifest.js","lib/internal/policy/sri.js","lib/internal/priority_queue.js","lib/internal/process/execution.js","lib/internal/process/per_thread.js","lib/internal/process/permission.js","lib/internal/process/policy.js","lib/internal/process/pre_execution.js","lib/internal/process/promises.js","lib/internal/process/report.js","lib/internal/process/signal.js","lib/internal/process/task_queues.js","lib/internal/process/warning.js","lib/internal/process/worker_thread_only.js","lib/internal/promise_hooks.js","lib/internal/querystring.js","lib/internal/readline/callbacks.js","lib/internal/readline/emitKeypressEvents.js","lib/internal/readline/interface.js","lib/internal/readline/promises.js","lib/internal/readline/utils.js","lib/internal/repl.js","lib/internal/repl/await.js","lib/internal/repl/history.js","lib/internal/repl/utils.js","lib/internal/socket_list.js","lib/internal/socketaddress.js","lib/internal/source_map/prepare_stack_trace.js","lib/internal/source_map/source_map.js","lib/internal/source_map/source_map_cache.js","lib/internal/stream_base_commons.js","lib/internal/streams/add-abort-signal.js","lib/internal/streams/compose.js","lib/internal/streams/destroy.js","lib/internal/streams/duplex.js","lib/internal/streams/duplexify.js","lib/internal/streams/duplexpair.js","lib/internal/streams/end-of-stream.js","lib/internal/streams/from.js","lib/internal/streams/lazy_transform.js","lib/internal/streams/legacy.js","lib/internal/streams/operators.js","lib/internal/streams/passthrough.js","lib/internal/streams/pipeline.js","lib/internal/streams/readable.js","lib/internal/streams/state.js","lib/internal/streams/transform.js","lib/internal/streams/utils.js","lib/internal/streams/writable.js","lib/internal/test/binding.js","lib/internal/test/transfer.js","lib/internal/test_runner/coverage.js","lib/internal/test_runner/harness.js","lib/internal/test_runner/mock/loader.js","lib/internal/test_runner/mock/mock.js","lib/internal/test_runner/mock/mock_timers.js","lib/internal/test_runner/reporter/dot.js","lib/internal/test_runner/reporter/junit.js","lib/internal/test_runner/reporter/lcov.js","lib/internal/test_runner/reporter/spec.js","lib/internal/test_runner/reporter/tap.js","lib/internal/test_runner/reporter/utils.js","lib/internal/test_runner/reporter/v8-serializer.js","lib/internal/test_runner/runner.js","lib/internal/test_runner/test.js","lib/internal/test_runner/tests_stream.js","lib/internal/test_runner/utils.js","lib/internal/timers.js","lib/internal/tls/secure-context.js","lib/internal/tls/secure-pair.js","lib/internal/trace_events_async_hooks.js","lib/internal/tty.js","lib/internal/url.js","lib/internal/util.js","lib/internal/util/colors.js","lib/internal/util/comparisons.js","lib/internal/util/debuglog.js","lib/internal/util/embedding.js","lib/internal/util/inspect.js","lib/internal/util/inspector.js","lib/internal/util/iterable_weak_map.js","lib/internal/util/parse_args/parse_args.js","lib/internal/util/parse_args/utils.js","lib/internal/util/types.js","lib/internal/v8/startup_snapshot.js","lib/internal/v8_prof_polyfill.js","lib/internal/v8_prof_processor.js","lib/internal/validators.js","lib/internal/vm.js","lib/internal/vm/module.js","lib/internal/wasm_web_api.js","lib/internal/watch_mode/files_watcher.js","lib/internal/watchdog.js","lib/internal/webidl.js","lib/internal/webstreams/adapters.js","lib/internal/webstreams/compression.js","lib/internal/webstreams/encoding.js","lib/internal/webstreams/queuingstrategies.js","lib/internal/webstreams/readablestream.js","lib/internal/webstreams/transfer.js","lib/internal/webstreams/transformstream.js","lib/internal/webstreams/util.js","lib/internal/webstreams/writablestream.js","lib/internal/worker.js","lib/internal/worker/io.js","lib/internal/worker/js_transferable.js","lib/module.js","lib/net.js","lib/os.js","lib/path.js","lib/path/posix.js","lib/path/win32.js","lib/perf_hooks.js","lib/process.js","lib/punycode.js","lib/querystring.js","lib/readline.js","lib/readline/promises.js","lib/repl.js","lib/sea.js","lib/stream.js","lib/stream/consumers.js","lib/stream/promises.js","lib/stream/web.js","lib/string_decoder.js","lib/sys.js","lib/test.js","lib/test/reporters.js","lib/timers.js","lib/timers/promises.js","lib/tls.js","lib/trace_events.js","lib/tty.js","lib/url.js","lib/util.js","lib/util/types.js","lib/v8.js","lib/vm.js","lib/wasi.js","lib/worker_threads.js","lib/zlib.js"],node_module_version:115,node_no_browser_globals:!1,node_prefix:"/",node_release_urlbase:"https://nodejs.org/download/release/",node_section_ordering_info:"",node_shared:!1,node_shared_ada:!1,node_shared_brotli:!1,node_shared_cares:!1,node_shared_http_parser:!1,node_shared_libuv:!1,node_shared_nghttp2:!1,node_shared_nghttp3:!1,node_shared_ngtcp2:!1,node_shared_openssl:!1,node_shared_simdjson:!1,node_shared_simdutf:!1,node_shared_uvwasi:!1,node_shared_zlib:!1,node_tag:"",node_target_type:"executable",node_use_bundled_v8:!0,node_use_node_code_cache:!0,node_use_node_snapshot:!0,node_use_openssl:!0,node_use_v8_platform:!0,node_with_ltcg:!1,node_without_node_options:!1,node_write_snapshot_as_array_literals:!1,openssl_is_fips:!1,openssl_quic:!0,ossfuzz:!1,shlib_suffix:"so.115",single_executable_application:!0,target_arch:"x64",ubsan:0,use_prefix_to_find_headers:!1,v8_enable_31bit_smis_on_64bit_arch:0,v8_enable_extensible_ro_snapshot:0,v8_enable_gdbjit:0,v8_enable_hugepage:0,v8_enable_i18n_support:1,v8_enable_inspector:1,v8_enable_javascript_promise_hooks:1,v8_enable_lite_mode:0,v8_enable_maglev:0,v8_enable_object_print:1,v8_enable_pointer_compression:0,v8_enable_sandbox:0,v8_enable_shared_ro_heap:1,v8_enable_short_builtin_calls:1,v8_enable_v8_checks:0,v8_enable_webassembly:1,v8_no_strict_aliasing:1,v8_optimized_debug:1,v8_promise_internal_field_count:1,v8_random_seed:0,v8_trace_maps:0,v8_use_siphash:1,want_separate_host_toolset:0}},allowedNodeEnvironmentFlags:{},features:{inspector:!0,debug:!1,uv:!0,ipv6:!0,tls_alpn:!0,tls_sni:!0,tls_ocsp:!0,tls:!0,cached_builtins:!0},sourceMapsEnabled:!1,stdout:{connecting:!1,_hadError:!1,_parent:null,_host:null,_closeAfterHandlingError:!1,_events:{},_readableState:{highWaterMark:16384,buffer:[],bufferIndex:0,length:0,pipes:[],awaitDrainWriters:null,readable:!1},_writableState:{highWaterMark:16384,length:0,corked:0,writelen:0,bufferedIndex:0,pendingcb:0},allowHalfOpen:!1,_eventsCount:1,_sockname:null,_pendingData:null,_pendingEncoding:"",server:null,_server:null,_type:"pipe",fd:1,_isStdio:!0},stdin:{connecting:!1,_hadError:!1,_parent:null,_host:null,_closeAfterHandlingError:!1,_events:{},_readableState:{highWaterMark:16384,buffer:[],bufferIndex:0,length:0,pipes:[],awaitDrainWriters:null},_writableState:{highWaterMark:16384,length:0,corked:0,writelen:0,bufferedIndex:0,pendingcb:0},allowHalfOpen:!1,_eventsCount:2,_sockname:null,_pendingData:null,_pendingEncoding:"",server:null,_server:null,fd:0},stderr:{connecting:!1,_hadError:!1,_parent:null,_host:null,_closeAfterHandlingError:!1,_events:{},_readableState:{highWaterMark:16384,buffer:[],bufferIndex:0,length:0,pipes:[],awaitDrainWriters:null,readable:!1},_writableState:{highWaterMark:16384,length:0,corked:0,writelen:0,bufferedIndex:0,pendingcb:0},allowHalfOpen:!1,_eventsCount:1,_sockname:null,_pendingData:null,_pendingEncoding:"",server:null,_server:null,_type:"pipe",fd:2,_isStdio:!0},env:{GITHUB_STATE:"/home/runner/work/_temp/_runner_file_commands/save_state_18a51caf-e5c9-4051-9c6d-047b16202017",STATS_TRP:"true",DEPLOYMENT_BASEPATH:"/opt/runner",DOTNET_NOLOGO:"1",USER:"runner",npm_config_user_agent:"npm/10.8.2 node/v20.18.3 linux x64 workspaces/false ci/github-actions",CI:"true",RUNNER_ENVIRONMENT:"github-hosted",GITHUB_ENV:"/home/runner/work/_temp/_runner_file_commands/set_env_18a51caf-e5c9-4051-9c6d-047b16202017",PIPX_HOME:"/opt/pipx",npm_node_execpath:"/opt/hostedtoolcache/node/20.18.3/x64/bin/node",JAVA_HOME_8_X64:"/usr/lib/jvm/temurin-8-jdk-amd64",SHLVL:"1",npm_config_noproxy:"",HOME:"/home/runner",RUNNER_TEMP:"/home/runner/work/_temp",GITHUB_EVENT_PATH:"/home/runner/work/_temp/_github_workflow/event.json",npm_package_json:"/home/runner/work/md/md/package.json",JAVA_HOME_11_X64:"/usr/lib/jvm/temurin-11-jdk-amd64",PIPX_BIN_DIR:"/opt/pipx_bin",GITHUB_REPOSITORY_OWNER:"doocs",GRADLE_HOME:"/usr/share/gradle-8.12.1",ANDROID_NDK_LATEST_HOME:"/usr/local/lib/android/sdk/ndk/28.0.13004108",JAVA_HOME_21_X64:"/usr/lib/jvm/temurin-21-jdk-amd64",STATS_RDCL:"true",GITHUB_RETENTION_DAYS:"90",GITHUB_REPOSITORY_OWNER_ID:"43716716",POWERSHELL_DISTRIBUTION_CHANNEL:"GitHub-Actions-ubuntu24",AZURE_EXTENSION_DIR:"/opt/az/azcliextensions",GITHUB_HEAD_REF:"",npm_config_userconfig:"/home/runner/.npmrc",npm_config_local_prefix:"/home/runner/work/md/md",SYSTEMD_EXEC_PID:"830",GITHUB_GRAPHQL_URL:"https://api.github.com/graphql",COLOR:"0",NVM_DIR:"/home/runner/.nvm",DOTNET_SKIP_FIRST_TIME_EXPERIENCE:"1",GOROOT_1_21_X64:"/opt/hostedtoolcache/go/1.21.13/x64",JAVA_HOME_17_X64:"/usr/lib/jvm/temurin-17-jdk-amd64",ImageVersion:"20250223.1.0",RUNNER_OS:"Linux",GITHUB_API_URL:"https://api.github.com",GOROOT_1_22_X64:"/opt/hostedtoolcache/go/1.22.12/x64",SWIFT_PATH:"/usr/share/swift/usr/bin",RUNNER_USER:"runner",STATS_V3PS:"true",CHROMEWEBDRIVER:"/usr/local/share/chromedriver-linux64",GOROOT_1_23_X64:"/opt/hostedtoolcache/go/1.23.6/x64",JOURNAL_STREAM:"8:7475",GITHUB_WORKFLOW:"Build and Deploy",_:"/opt/hostedtoolcache/node/20.18.3/x64/bin/npm",npm_config_prefix:"/opt/hostedtoolcache/node/20.18.3/x64",npm_config_npm_version:"10.8.2",MEMORY_PRESSURE_WATCH:"/sys/fs/cgroup/system.slice/runner-provisioner.service/memory.pressure",ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE:"/opt/actionarchivecache",STATS_D:"true",GITHUB_RUN_ID:"13615010219",STATS_VMFE:"true",npm_config_cache:"/home/runner/.npm",GITHUB_REF_TYPE:"branch",BOOTSTRAP_HASKELL_NONINTERACTIVE:"1",GITHUB_WORKFLOW_SHA:"757697bf0a09df0bac18ef9292efbd16190f9623",GITHUB_BASE_REF:"",ImageOS:"ubuntu24",GITHUB_WORKFLOW_REF:"doocs/md/.github/workflows/build.yml@refs/heads/main",PERFLOG_LOCATION_SETTING:"RUNNER_PERFLOG",GITHUB_ACTION_REPOSITORY:"",npm_config_node_gyp:"/opt/hostedtoolcache/node/20.18.3/x64/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",PATH:"/home/runner/work/md/md/node_modules/.bin:/home/runner/work/md/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/20.18.3/x64/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/home/runner/work/md/md/node_modules/.bin:/home/runner/work/md/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/20.18.3/x64/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/opt/hostedtoolcache/node/20.18.3/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin",ANT_HOME:"/usr/share/ant",DOTNET_MULTILEVEL_LOOKUP:"0",RUNNER_TRACKING_ID:"github_1fb27123-8112-41d5-8496-e07ab36dd844",INVOCATION_ID:"e834f6d4e33e4a03b891bf70cc20a8b3",RUNNER_TOOL_CACHE:"/opt/hostedtoolcache",NODE:"/opt/hostedtoolcache/node/20.18.3/x64/bin/node",npm_package_name:"md",GITHUB_ACTION:"__run_2",GITHUB_RUN_NUMBER:"501",GITHUB_TRIGGERING_ACTOR:"yanglbme",RUNNER_ARCH:"X64",XDG_RUNTIME_DIR:"/run/user/1001",AGENT_TOOLSDIRECTORY:"/opt/hostedtoolcache",LANG:"C.UTF-8",VCPKG_INSTALLATION_ROOT:"/usr/local/share/vcpkg",CONDA:"/usr/share/miniconda",RUNNER_NAME:"GitHub Actions 4",XDG_CONFIG_HOME:"/home/runner/.config",STATS_VMD:"true",GITHUB_REF_NAME:"main",GITHUB_REPOSITORY:"doocs/md",STATS_D_D:"true",npm_lifecycle_script:"vite build",STATS_UE:"true",ANDROID_NDK_ROOT:"/usr/local/lib/android/sdk/ndk/27.2.12479018",GITHUB_ACTION_REF:"",DEBIAN_FRONTEND:"noninteractive",GITHUB_REPOSITORY_ID:"218952803",GITHUB_ACTIONS:"true",STATS_PIP:"false",npm_package_version:"1.6.0",npm_lifecycle_event:"build:only",GITHUB_REF_PROTECTED:"true",GITHUB_WORKSPACE:"/home/runner/work/md/md",ACCEPT_EULA:"Y",GITHUB_JOB:"build-and-deploy",RUNNER_PERFLOG:"/home/runner/perflog",GITHUB_SHA:"757697bf0a09df0bac18ef9292efbd16190f9623",GITHUB_RUN_ATTEMPT:"1",STATS_D_TC:"true",GITHUB_REF:"refs/heads/main",GITHUB_ACTOR:"yanglbme",ANDROID_SDK_ROOT:"/usr/local/lib/android/sdk",npm_config_globalconfig:"/opt/hostedtoolcache/node/20.18.3/x64/etc/npmrc",npm_config_init_module:"/home/runner/.npm-init.js",GITHUB_PATH:"/home/runner/work/_temp/_runner_file_commands/add_path_18a51caf-e5c9-4051-9c6d-047b16202017",JAVA_HOME:"/usr/lib/jvm/temurin-17-jdk-amd64",PWD:"/home/runner/work/md/md",GITHUB_ACTOR_ID:"21008209",RUNNER_WORKSPACE:"/home/runner/work/md",npm_execpath:"/opt/hostedtoolcache/node/20.18.3/x64/lib/node_modules/npm/bin/npm-cli.js",HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS:"3650",GITHUB_EVENT_NAME:"push",HOMEBREW_NO_AUTO_UPDATE:"1",ANDROID_HOME:"/usr/local/lib/android/sdk",GITHUB_SERVER_URL:"https://github.com",GECKOWEBDRIVER:"/usr/local/share/gecko_driver",GHCUP_INSTALL_BASE_PREFIX:"/usr/local",GITHUB_OUTPUT:"/home/runner/work/_temp/_runner_file_commands/set_output_18a51caf-e5c9-4051-9c6d-047b16202017",npm_config_global_prefix:"/opt/hostedtoolcache/node/20.18.3/x64",EDGEWEBDRIVER:"/usr/local/share/edge_driver",STATS_EXT:"true",npm_command:"run-script",ANDROID_NDK:"/usr/local/lib/android/sdk/ndk/27.2.12479018",SGX_AESM_ADDR:"1",CHROME_BIN:"/usr/bin/google-chrome",SELENIUM_JAR_PATH:"/usr/share/java/selenium-server.jar",MEMORY_PRESSURE_WRITE:"c29tZSAyMDAwMDAgMjAwMDAwMAA=",STATS_EXTP:"https://provjobdprod.z13.web.core.windows.net/settings/provjobdsettings-latest/provjobd.data",ANDROID_NDK_HOME:"/usr/local/lib/android/sdk/ndk/27.2.12479018",GITHUB_STEP_SUMMARY:"/home/runner/work/_temp/_runner_file_commands/step_summary_18a51caf-e5c9-4051-9c6d-047b16202017",INIT_CWD:"/home/runner/work/md/md",EDITOR:"vi",NODE_ENV:"production",LAUNCH_EDITOR:"code"},title:"node",argv:["/opt/hostedtoolcache/node/20.18.3/x64/bin/node","/home/runner/work/md/md/node_modules/.bin/vite","build"],execArgv:[],pid:2166,ppid:2165,execPath:"/opt/hostedtoolcache/node/20.18.3/x64/bin/node",debugPort:9229,argv0:"node",_preload_modules:[],report:{directory:"",filename:"",compact:!1,excludeNetwork:!1,signal:"SIGUSR2",reportOnFatalError:!1,reportOnSignal:!1,reportOnUncaughtException:!1}};_stream_writable=pf;function qa(Df){var Af=this;this.next=null,this.entry=null,this.finish=function(){vh(Af,Df)}}var rd;pf.WritableState=df;var sd={deprecate:browser$1},pd=streamBrowser,fd=buffer.Buffer,hd=(typeof commonjsGlobal<"u"?commonjsGlobal:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function md(Df){return fd.from(Df)}function gd(Df){return fd.isBuffer(Df)||Df instanceof hd}var yd=destroy_1,vd=state,Nd=vd.getHighWaterMark,Md=errorsBrowser.codes,Ld=Md.ERR_INVALID_ARG_TYPE,Fd=Md.ERR_METHOD_NOT_IMPLEMENTED,Hd=Md.ERR_MULTIPLE_CALLBACK,Vd=Md.ERR_STREAM_CANNOT_PIPE,Gd=Md.ERR_STREAM_DESTROYED,Ud=Md.ERR_STREAM_NULL_VALUES,qd=Md.ERR_STREAM_WRITE_AFTER_END,Wd=Md.ERR_UNKNOWN_ENCODING,Kd=yd.errorOrDestroy;inherits_browserExports(pf,pd);function Xd(){}function df(Df,Af,_h){rd=rd||require_stream_duplex(),Df=Df||{},typeof _h!="boolean"&&(_h=Af instanceof rd),this.objectMode=!!Df.objectMode,_h&&(this.objectMode=this.objectMode||!!Df.writableObjectMode),this.highWaterMark=Nd(this,Df,"writableHighWaterMark",_h),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var Nh=Df.decodeStrings===!1;this.decodeStrings=!Nh,this.defaultEncoding=Df.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(dm){Pf(Af,dm)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=Df.emitClose!==!1,this.autoDestroy=!!Df.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new qa(this)}df.prototype.getBuffer=function(){for(var Af=this.bufferedRequest,_h=[];Af;)_h.push(Af),Af=Af.next;return _h},function(){try{Object.defineProperty(df.prototype,"buffer",{get:sd.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var Ef;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(Ef=Function.prototype[Symbol.hasInstance],Object.defineProperty(pf,Symbol.hasInstance,{value:function(Af){return Ef.call(this,Af)?!0:this!==pf?!1:Af&&Af._writableState instanceof df}})):Ef=function(Af){return Af instanceof this};function pf(Df){rd=rd||require_stream_duplex();var Af=this instanceof rd;if(!Af&&!Ef.call(pf,this))return new pf(Df);this._writableState=new df(Df,this,Af),this.writable=!0,Df&&(typeof Df.write=="function"&&(this._write=Df.write),typeof Df.writev=="function"&&(this._writev=Df.writev),typeof Df.destroy=="function"&&(this._destroy=Df.destroy),typeof Df.final=="function"&&(this._final=Df.final)),pd.call(this)}pf.prototype.pipe=function(){Kd(this,new Vd)};function mf(Df,Af){var _h=new qd;Kd(Df,_h),Ra.nextTick(Af,_h)}function _f(Df,Af,_h,Nh){var dm;return _h===null?dm=new Ud:typeof _h!="string"&&!Af.objectMode&&(dm=new Ld("chunk",["string","Buffer"],_h)),dm?(Kd(Df,dm),Ra.nextTick(Nh,dm),!1):!0}pf.prototype.write=function(Df,Af,_h){var Nh=this._writableState,dm=!1,Jf=!Nh.objectMode&&gd(Df);return Jf&&!fd.isBuffer(Df)&&(Df=md(Df)),typeof Af=="function"&&(_h=Af,Af=null),Jf?Af="buffer":Af||(Af=Nh.defaultEncoding),typeof _h!="function"&&(_h=Xd),Nh.ending?mf(this,_h):(Jf||_f(this,Nh,Df,_h))&&(Nh.pendingcb++,dm=Cf(this,Nh,Jf,Df,Af,_h)),dm},pf.prototype.cork=function(){this._writableState.corked++},pf.prototype.uncork=function(){var Df=this._writableState;Df.corked&&(Df.corked--,!Df.writing&&!Df.corked&&!Df.bufferProcessing&&Df.bufferedRequest&&Eh(this,Df))},pf.prototype.setDefaultEncoding=function(Af){if(typeof Af=="string"&&(Af=Af.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((Af+"").toLowerCase())>-1))throw new Wd(Af);return this._writableState.defaultEncoding=Af,this},Object.defineProperty(pf.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function xf(Df,Af,_h){return!Df.objectMode&&Df.decodeStrings!==!1&&typeof Af=="string"&&(Af=fd.from(Af,_h)),Af}Object.defineProperty(pf.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function Cf(Df,Af,_h,Nh,dm,Jf){if(!_h){var oh=xf(Af,Nh,dm);Nh!==oh&&(_h=!0,dm="buffer",Nh=oh)}var Xh=Af.objectMode?1:Nh.length;Af.length+=Xh;var Tm=Af.length */var hasRequiredSafeBuffer;function requireSafeBuffer(){return hasRequiredSafeBuffer||(hasRequiredSafeBuffer=1,function(Ra,qa){var rd=buffer,sd=rd.Buffer;function pd(hd,md){for(var gd in hd)md[gd]=hd[gd]}sd.from&&sd.alloc&&sd.allocUnsafe&&sd.allocUnsafeSlow?Ra.exports=rd:(pd(rd,qa),qa.Buffer=fd);function fd(hd,md,gd){return sd(hd,md,gd)}fd.prototype=Object.create(sd.prototype),pd(sd,fd),fd.from=function(hd,md,gd){if(typeof hd=="number")throw new TypeError("Argument must not be a number");return sd(hd,md,gd)},fd.alloc=function(hd,md,gd){if(typeof hd!="number")throw new TypeError("Argument must be a number");var yd=sd(hd);return md!==void 0?typeof gd=="string"?yd.fill(md,gd):yd.fill(md):yd.fill(0),yd},fd.allocUnsafe=function(hd){if(typeof hd!="number")throw new TypeError("Argument must be a number");return sd(hd)},fd.allocUnsafeSlow=function(hd){if(typeof hd!="number")throw new TypeError("Argument must be a number");return rd.SlowBuffer(hd)}}(safeBuffer,safeBuffer.exports)),safeBuffer.exports}var hasRequiredString_decoder;function requireString_decoder(){if(hasRequiredString_decoder)return string_decoder;hasRequiredString_decoder=1;var Ra=requireSafeBuffer().Buffer,qa=Ra.isEncoding||function(Gd){switch(Gd=""+Gd,Gd&&Gd.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function rd(Gd){if(!Gd)return"utf8";for(var Ud;;)switch(Gd){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return Gd;default:if(Ud)return;Gd=(""+Gd).toLowerCase(),Ud=!0}}function sd(Gd){var Ud=rd(Gd);if(typeof Ud!="string"&&(Ra.isEncoding===qa||!qa(Gd)))throw new Error("Unknown encoding: "+Gd);return Ud||Gd}string_decoder.StringDecoder=pd;function pd(Gd){this.encoding=sd(Gd);var Ud;switch(this.encoding){case"utf16le":this.text=Nd,this.end=Md,Ud=4;break;case"utf8":this.fillLast=gd,Ud=4;break;case"base64":this.text=Ld,this.end=Fd,Ud=3;break;default:this.write=Hd,this.end=Vd;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=Ra.allocUnsafe(Ud)}pd.prototype.write=function(Gd){if(Gd.length===0)return"";var Ud,qd;if(this.lastNeed){if(Ud=this.fillLast(Gd),Ud===void 0)return"";qd=this.lastNeed,this.lastNeed=0}else qd=0;return qd>5===6?2:Gd>>4===14?3:Gd>>3===30?4:Gd>>6===2?-1:-2}function hd(Gd,Ud,qd){var Wd=Ud.length-1;if(Wd=0?(Kd>0&&(Gd.lastNeed=Kd-1),Kd):--Wd=0?(Kd>0&&(Gd.lastNeed=Kd-2),Kd):--Wd=0?(Kd>0&&(Kd===2?Kd=0:Gd.lastNeed=Kd-3),Kd):0))}function md(Gd,Ud,qd){if((Ud[0]&192)!==128)return Gd.lastNeed=0,"�";if(Gd.lastNeed>1&&Ud.length>1){if((Ud[1]&192)!==128)return Gd.lastNeed=1,"�";if(Gd.lastNeed>2&&Ud.length>2&&(Ud[2]&192)!==128)return Gd.lastNeed=2,"�"}}function gd(Gd){var Ud=this.lastTotal-this.lastNeed,qd=md(this,Gd);if(qd!==void 0)return qd;if(this.lastNeed<=Gd.length)return Gd.copy(this.lastChar,Ud,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);Gd.copy(this.lastChar,Ud,0,Gd.length),this.lastNeed-=Gd.length}function yd(Gd,Ud){var qd=hd(this,Gd,Ud);if(!this.lastNeed)return Gd.toString("utf8",Ud);this.lastTotal=qd;var Wd=Gd.length-(qd-this.lastNeed);return Gd.copy(this.lastChar,0,Wd),Gd.toString("utf8",Ud,Wd)}function vd(Gd){var Ud=Gd&&Gd.length?this.write(Gd):"";return this.lastNeed?Ud+"�":Ud}function Nd(Gd,Ud){if((Gd.length-Ud)%2===0){var qd=Gd.toString("utf16le",Ud);if(qd){var Wd=qd.charCodeAt(qd.length-1);if(Wd>=55296&&Wd<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=Gd[Gd.length-2],this.lastChar[1]=Gd[Gd.length-1],qd.slice(0,-1)}return qd}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=Gd[Gd.length-1],Gd.toString("utf16le",Ud,Gd.length-1)}function Md(Gd){var Ud=Gd&&Gd.length?this.write(Gd):"";if(this.lastNeed){var qd=this.lastTotal-this.lastNeed;return Ud+this.lastChar.toString("utf16le",0,qd)}return Ud}function Ld(Gd,Ud){var qd=(Gd.length-Ud)%3;return qd===0?Gd.toString("base64",Ud):(this.lastNeed=3-qd,this.lastTotal=3,qd===1?this.lastChar[0]=Gd[Gd.length-1]:(this.lastChar[0]=Gd[Gd.length-2],this.lastChar[1]=Gd[Gd.length-1]),Gd.toString("base64",Ud,Gd.length-qd))}function Fd(Gd){var Ud=Gd&&Gd.length?this.write(Gd):"";return this.lastNeed?Ud+this.lastChar.toString("base64",0,3-this.lastNeed):Ud}function Hd(Gd){return Gd.toString(this.encoding)}function Vd(Gd){return Gd&&Gd.length?this.write(Gd):""}return string_decoder}var ERR_STREAM_PREMATURE_CLOSE=errorsBrowser.codes.ERR_STREAM_PREMATURE_CLOSE;function once$2(Ra){var qa=!1;return function(){if(!qa){qa=!0;for(var rd=arguments.length,sd=new Array(rd),pd=0;pd0)if(typeof oh!="string"&&!Zf.objectMode&&Object.getPrototypeOf(oh)!==pd.prototype&&(oh=hd(oh)),Tm)Zf.endEmitted?Xd(Jf,new Ud):xf(Jf,Zf,oh,!0);else if(Zf.ended)Xd(Jf,new Vd);else{if(Zf.destroyed)return!1;Zf.reading=!1,Zf.decoder&&!Xh?(oh=Zf.decoder.write(oh),Zf.objectMode||oh.length!==0?xf(Jf,Zf,oh,!1):Eh(Jf,Zf)):xf(Jf,Zf,oh,!1)}else Tm||(Zf.reading=!1,Eh(Jf,Zf))}return!Zf.ended&&(Zf.length=If?Jf=If:(Jf--,Jf|=Jf>>>1,Jf|=Jf>>>2,Jf|=Jf>>>4,Jf|=Jf>>>8,Jf|=Jf>>>16,Jf++),Jf}function wf(Jf,oh){return Jf<=0||oh.length===0&&oh.ended?0:oh.objectMode?1:Jf!==Jf?oh.flowing&&oh.length?oh.buffer.head.data.length:oh.length:(Jf>oh.highWaterMark&&(oh.highWaterMark=Sf(Jf)),Jf<=oh.length?Jf:oh.ended?oh.length:(oh.needReadable=!0,0))}mf.prototype.read=function(Jf){yd("read",Jf),Jf=parseInt(Jf,10);var oh=this._readableState,Xh=Jf;if(Jf!==0&&(oh.emittedReadable=!1),Jf===0&&oh.needReadable&&((oh.highWaterMark!==0?oh.length>=oh.highWaterMark:oh.length>0)||oh.ended))return yd("read: emitReadable",oh.length,oh.ended),oh.length===0&&oh.ended?_h(this):lh(this),null;if(Jf=wf(Jf,oh),Jf===0&&oh.ended)return oh.length===0&&_h(this),null;var Tm=oh.needReadable;yd("need readable",Tm),(oh.length===0||oh.length-Jf0?kh=Af(Jf,oh):kh=null,kh===null?(oh.needReadable=oh.length<=oh.highWaterMark,Jf=0):(oh.length-=Jf,oh.awaitDrain=0),oh.length===0&&(oh.ended||(oh.needReadable=!0),Xh!==Jf&&oh.ended&&_h(this)),kh!==null&&this.emit("data",kh),kh};function Pf(Jf,oh){if(yd("onEofChunk"),!oh.ended){if(oh.decoder){var Xh=oh.decoder.end();Xh&&Xh.length&&(oh.buffer.push(Xh),oh.length+=oh.objectMode?1:Xh.length)}oh.ended=!0,oh.sync?lh(Jf):(oh.needReadable=!1,oh.emittedReadable||(oh.emittedReadable=!0,xh(Jf)))}}function lh(Jf){var oh=Jf._readableState;yd("emitReadable",oh.needReadable,oh.emittedReadable),oh.needReadable=!1,oh.emittedReadable||(yd("emitReadable",oh.flowing),oh.emittedReadable=!0,Ra.nextTick(xh,Jf))}function xh(Jf){var oh=Jf._readableState;yd("emitReadable_",oh.destroyed,oh.length,oh.ended),!oh.destroyed&&(oh.length||oh.ended)&&(Jf.emit("readable"),oh.emittedReadable=!1),oh.needReadable=!oh.flowing&&!oh.ended&&oh.length<=oh.highWaterMark,Df(Jf)}function Eh(Jf,oh){oh.readingMore||(oh.readingMore=!0,Ra.nextTick(Mh,Jf,oh))}function Mh(Jf,oh){for(;!oh.reading&&!oh.ended&&(oh.length1&&dm(Tm.pipes,Jf)!==-1)&&!fm&&(yd("false write response, pause",Tm.awaitDrain),Tm.awaitDrain++),Xh.pause())}function Rm(rg){yd("onerror",rg),Ym(),Jf.removeListener("error",Rm),rd(Jf,"error")===0&&Xd(Jf,rg)}Ef(Jf,"error",Rm);function tg(){Jf.removeListener("finish",Fm),Ym()}Jf.once("close",tg);function Fm(){yd("onfinish"),Jf.removeListener("close",tg),Ym()}Jf.once("finish",Fm);function Ym(){yd("unpipe"),Xh.unpipe(Jf)}return Jf.emit("pipe",Xh),Tm.flowing||(yd("pipe resume"),Xh.resume()),Jf};function dh(Jf){return function(){var Xh=Jf._readableState;yd("pipeOnDrain",Xh.awaitDrain),Xh.awaitDrain&&Xh.awaitDrain--,Xh.awaitDrain===0&&rd(Jf,"data")&&(Xh.flowing=!0,Df(Jf))}}mf.prototype.unpipe=function(Jf){var oh=this._readableState,Xh={hasUnpiped:!1};if(oh.pipesCount===0)return this;if(oh.pipesCount===1)return Jf&&Jf!==oh.pipes?this:(Jf||(Jf=oh.pipes),oh.pipes=null,oh.pipesCount=0,oh.flowing=!1,Jf&&Jf.emit("unpipe",this,Xh),this);if(!Jf){var Tm=oh.pipes,kh=oh.pipesCount;oh.pipes=null,oh.pipesCount=0,oh.flowing=!1;for(var Zf=0;Zf0,Tm.flowing!==!1&&this.resume()):Jf==="readable"&&!Tm.endEmitted&&!Tm.readableListening&&(Tm.readableListening=Tm.needReadable=!0,Tm.flowing=!1,Tm.emittedReadable=!1,yd("on readable",Tm.length,Tm.reading),Tm.length?lh(this):Tm.reading||Ra.nextTick(fh,this)),Xh},mf.prototype.addListener=mf.prototype.on,mf.prototype.removeListener=function(Jf,oh){var Xh=sd.prototype.removeListener.call(this,Jf,oh);return Jf==="readable"&&Ra.nextTick(eh,this),Xh},mf.prototype.removeAllListeners=function(Jf){var oh=sd.prototype.removeAllListeners.apply(this,arguments);return(Jf==="readable"||Jf===void 0)&&Ra.nextTick(eh,this),oh};function eh(Jf){var oh=Jf._readableState;oh.readableListening=Jf.listenerCount("readable")>0,oh.resumeScheduled&&!oh.paused?oh.flowing=!0:Jf.listenerCount("data")>0&&Jf.resume()}function fh(Jf){yd("readable nexttick read 0"),Jf.read(0)}mf.prototype.resume=function(){var Jf=this._readableState;return Jf.flowing||(yd("resume"),Jf.flowing=!Jf.readableListening,Sh(this,Jf)),Jf.paused=!1,this};function Sh(Jf,oh){oh.resumeScheduled||(oh.resumeScheduled=!0,Ra.nextTick(vh,Jf,oh))}function vh(Jf,oh){yd("resume",oh.reading),oh.reading||Jf.read(0),oh.resumeScheduled=!1,Jf.emit("resume"),Df(Jf),oh.flowing&&!oh.reading&&Jf.read(0)}mf.prototype.pause=function(){return yd("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(yd("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function Df(Jf){var oh=Jf._readableState;for(yd("flow",oh.flowing);oh.flowing&&Jf.read()!==null;);}mf.prototype.wrap=function(Jf){var oh=this,Xh=this._readableState,Tm=!1;Jf.on("end",function(){if(yd("wrapped end"),Xh.decoder&&!Xh.ended){var th=Xh.decoder.end();th&&th.length&&oh.push(th)}oh.push(null)}),Jf.on("data",function(th){if(yd("wrapped data"),Xh.decoder&&(th=Xh.decoder.write(th)),!(Xh.objectMode&&th==null)&&!(!Xh.objectMode&&(!th||!th.length))){var $h=oh.push(th);$h||(Tm=!0,Jf.pause())}});for(var kh in Jf)this[kh]===void 0&&typeof Jf[kh]=="function"&&(this[kh]=function($h){return function(){return Jf[$h].apply(Jf,arguments)}}(kh));for(var Zf=0;Zf=oh.length?(oh.decoder?Xh=oh.buffer.join(""):oh.buffer.length===1?Xh=oh.buffer.first():Xh=oh.buffer.concat(oh.length),oh.buffer.clear()):Xh=oh.buffer.consume(Jf,oh.decoder),Xh}function _h(Jf){var oh=Jf._readableState;yd("endReadable",oh.endEmitted),oh.endEmitted||(oh.ended=!0,Ra.nextTick(Nh,oh,Jf))}function Nh(Jf,oh){if(yd("endReadableNT",Jf.endEmitted,Jf.length),!Jf.endEmitted&&Jf.length===0&&(Jf.endEmitted=!0,oh.readable=!1,oh.emit("end"),Jf.autoDestroy)){var Xh=oh._writableState;(!Xh||Xh.autoDestroy&&Xh.finished)&&oh.destroy()}}typeof Symbol=="function"&&(mf.from=function(Jf,oh){return Kd===void 0&&(Kd=requireFromBrowser()),Kd(mf,Jf,oh)});function dm(Jf,oh){for(var Xh=0,Tm=Jf.length;Xh0;return destroyer(hd,gd,yd,function(vd){pd||(pd=vd),vd&&fd.forEach(call),!gd&&(fd.forEach(call),sd(pd))})});return qa.reduce(pipe)}var pipeline_1=pipeline$1,streamBrowserify=Stream$1,EE=eventsExports.EventEmitter,inherits$2=inherits_browserExports;inherits$2(Stream$1,EE);Stream$1.Readable=require_stream_readable();Stream$1.Writable=require_stream_writable();Stream$1.Duplex=require_stream_duplex();Stream$1.Transform=_stream_transform;Stream$1.PassThrough=_stream_passthrough;Stream$1.finished=endOfStream;Stream$1.pipeline=pipeline_1;Stream$1.Stream=Stream$1;function Stream$1(){EE.call(this)}Stream$1.prototype.pipe=function(Ra,qa){var rd=this;function sd(vd){Ra.writable&&Ra.write(vd)===!1&&rd.pause&&rd.pause()}rd.on("data",sd);function pd(){rd.readable&&rd.resume&&rd.resume()}Ra.on("drain",pd),!Ra._isStdio&&(!qa||qa.end!==!1)&&(rd.on("end",hd),rd.on("close",md));var fd=!1;function hd(){fd||(fd=!0,Ra.end())}function md(){fd||(fd=!0,typeof Ra.destroy=="function"&&Ra.destroy())}function gd(vd){if(yd(),EE.listenerCount(this,"error")===0)throw vd}rd.on("error",gd),Ra.on("error",gd);function yd(){rd.removeListener("data",sd),Ra.removeListener("drain",pd),rd.removeListener("end",hd),rd.removeListener("close",md),rd.removeListener("error",gd),Ra.removeListener("error",gd),rd.removeListener("end",yd),rd.removeListener("close",yd),Ra.removeListener("close",yd)}return rd.on("end",yd),rd.on("close",yd),Ra.on("close",yd),Ra.emit("pipe",rd),Ra};/*! + `)+" "+vh[1]:vh[0]+Sh+" "+fh.join(", ")+" "+vh[1]}Ra.types=types$1;function Ud(fh){return Array.isArray(fh)}Ra.isArray=Ud;function qd(fh){return typeof fh=="boolean"}Ra.isBoolean=qd;function Wd(fh){return fh===null}Ra.isNull=Wd;function Kd(fh){return fh==null}Ra.isNullOrUndefined=Kd;function Xd(fh){return typeof fh=="number"}Ra.isNumber=Xd;function df(fh){return typeof fh=="string"}Ra.isString=df;function Ef(fh){return typeof fh=="symbol"}Ra.isSymbol=Ef;function pf(fh){return fh===void 0}Ra.isUndefined=pf;function mf(fh){return _f(fh)&&wf(fh)==="[object RegExp]"}Ra.isRegExp=mf,Ra.types.isRegExp=mf;function _f(fh){return typeof fh=="object"&&fh!==null}Ra.isObject=_f;function xf(fh){return _f(fh)&&wf(fh)==="[object Date]"}Ra.isDate=xf,Ra.types.isDate=xf;function Cf(fh){return _f(fh)&&(wf(fh)==="[object Error]"||fh instanceof Error)}Ra.isError=Cf,Ra.types.isNativeError=Cf;function If(fh){return typeof fh=="function"}Ra.isFunction=If;function Sf(fh){return fh===null||typeof fh=="boolean"||typeof fh=="number"||typeof fh=="string"||typeof fh=="symbol"||typeof fh>"u"}Ra.isPrimitive=Sf,Ra.isBuffer=isBufferBrowser;function wf(fh){return Object.prototype.toString.call(fh)}function Pf(fh){return fh<10?"0"+fh.toString(10):fh.toString(10)}var lh=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function xh(){var fh=new Date,Sh=[Pf(fh.getHours()),Pf(fh.getMinutes()),Pf(fh.getSeconds())].join(":");return[fh.getDate(),lh[fh.getMonth()],Sh].join(" ")}Ra.log=function(){console.log("%s - %s",xh(),Ra.format.apply(Ra,arguments))},Ra.inherits=inherits_browserExports,Ra._extend=function(fh,Sh){if(!Sh||!_f(Sh))return fh;for(var vh=Object.keys(Sh),Df=vh.length;Df--;)fh[vh[Df]]=Sh[vh[Df]];return fh};function Eh(fh,Sh){return Object.prototype.hasOwnProperty.call(fh,Sh)}var Mh=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;Ra.promisify=function(Sh){if(typeof Sh!="function")throw new TypeError('The "original" argument must be of type Function');if(Mh&&Sh[Mh]){var vh=Sh[Mh];if(typeof vh!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(vh,Mh,{value:vh,enumerable:!1,writable:!1,configurable:!0}),vh}function vh(){for(var Df,Af,_h=new Promise(function(Jf,oh){Df=Jf,Af=oh}),Nh=[],dm=0;dm0?this.tail.next=Gd:this.head=Gd,this.tail=Gd,++this.length}},{key:"unshift",value:function(Vd){var Gd={data:Vd,next:this.head};this.length===0&&(this.tail=Gd),this.head=Gd,++this.length}},{key:"shift",value:function(){if(this.length!==0){var Vd=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,Vd}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(Vd){if(this.length===0)return"";for(var Gd=this.head,Ud=""+Gd.data;Gd=Gd.next;)Ud+=Vd+Gd.data;return Ud}},{key:"concat",value:function(Vd){if(this.length===0)return yd.alloc(0);for(var Gd=yd.allocUnsafe(Vd>>>0),Ud=this.head,qd=0;Ud;)Ld(Ud.data,Gd,qd),qd+=Ud.data.length,Ud=Ud.next;return Gd}},{key:"consume",value:function(Vd,Gd){var Ud;return VdWd.length?Wd.length:Vd;if(Kd===Wd.length?qd+=Wd:qd+=Wd.slice(0,Vd),Vd-=Kd,Vd===0){Kd===Wd.length?(++Ud,Gd.next?this.head=Gd.next:this.head=this.tail=null):(this.head=Gd,Gd.data=Wd.slice(Kd));break}++Ud}return this.length-=Ud,qd}},{key:"_getBuffer",value:function(Vd){var Gd=yd.allocUnsafe(Vd),Ud=this.head,qd=1;for(Ud.data.copy(Gd),Vd-=Ud.data.length;Ud=Ud.next;){var Wd=Ud.data,Kd=Vd>Wd.length?Wd.length:Vd;if(Wd.copy(Gd,Gd.length-Vd,0,Kd),Vd-=Kd,Vd===0){Kd===Wd.length?(++qd,Ud.next?this.head=Ud.next:this.head=this.tail=null):(this.head=Ud,Ud.data=Wd.slice(Kd));break}++qd}return this.length-=qd,Gd}},{key:Md,value:function(Vd,Gd){return Nd(this,qa(qa({},Gd),{},{depth:0,customInspect:!1}))}}]),Fd}(),buffer_list}var define_process_default$8={version:"v20.18.3",versions:{node:"20.18.3",acorn:"8.14.0",ada:"2.9.2",ares:"1.34.4",base64:"0.5.2",brotli:"1.1.0",cjs_module_lexer:"1.4.1",cldr:"45.0",icu:"75.1",llhttp:"8.1.2",modules:"115",napi:"9",nghttp2:"1.61.0",nghttp3:"0.7.0",ngtcp2:"1.1.0",openssl:"3.0.15+quic",simdutf:"5.6.4",tz:"2024b",undici:"6.21.1",unicode:"15.1",uv:"1.46.0",uvwasi:"0.0.21",v8:"11.3.244.8-node.25",zlib:"1.3.0.1-motley-82a5fec"},arch:"x64",platform:"linux",release:{name:"node",lts:"Iron",sourceUrl:"https://nodejs.org/download/release/v20.18.3/node-v20.18.3.tar.gz",headersUrl:"https://nodejs.org/download/release/v20.18.3/node-v20.18.3-headers.tar.gz"},moduleLoadList:["Internal Binding builtins","Internal Binding module_wrap","Internal Binding errors","NativeModule internal/assert","Internal Binding util","NativeModule internal/errors","Internal Binding config","Internal Binding timers","Internal Binding async_wrap","Internal Binding task_queue","Internal Binding symbols","NativeModule internal/async_hooks","Internal Binding constants","Internal Binding types","Internal Binding options","NativeModule internal/options","Internal Binding string_decoder","NativeModule internal/util","NativeModule internal/util/types","NativeModule internal/validators","NativeModule internal/linkedlist","NativeModule internal/priority_queue","Internal Binding icu","NativeModule internal/util/inspect","NativeModule internal/util/debuglog","NativeModule internal/timers","NativeModule internal/events/abort_listener","NativeModule events","Internal Binding buffer","NativeModule internal/buffer","NativeModule buffer","Internal Binding messaging","NativeModule internal/worker/js_transferable","NativeModule internal/querystring","NativeModule internal/constants","NativeModule path","NativeModule querystring","Internal Binding url","NativeModule internal/url","NativeModule internal/fs/utils","Internal Binding process_methods","NativeModule internal/process/per_thread","Internal Binding credentials","NativeModule internal/process/promises","NativeModule internal/fixed_queue","NativeModule async_hooks","NativeModule internal/process/task_queues","NativeModule timers","Internal Binding trace_events","Internal Binding contextify","NativeModule internal/vm","NativeModule internal/process/execution","NativeModule internal/process/warning","NativeModule internal/source_map/source_map_cache","Internal Binding fs","Internal Binding blob","Internal Binding encoding_binding","NativeModule internal/encoding","NativeModule internal/streams/utils","NativeModule util","NativeModule internal/webstreams/util","NativeModule internal/webstreams/queuingstrategies","NativeModule internal/blob","Internal Binding permission","NativeModule internal/process/permission","NativeModule fs","NativeModule internal/modules/helpers","NativeModule internal/console/constructor","NativeModule internal/console/global","NativeModule internal/util/inspector","Internal Binding inspector","NativeModule internal/webidl","Internal Binding performance","NativeModule internal/perf/utils","NativeModule internal/event_target","Internal Binding wasm_web_api","Internal Binding mksnapshot","NativeModule internal/v8/startup_snapshot","NativeModule internal/process/signal","NativeModule url","NativeModule internal/modules/package_json_reader","NativeModule internal/modules/cjs/loader","NativeModule internal/process/pre_execution","NativeModule internal/modules/esm/utils","NativeModule internal/inspector_async_hook","Internal Binding worker","NativeModule internal/modules/run_main","NativeModule internal/net","NativeModule internal/dns/utils","NativeModule internal/modules/esm/assert","NativeModule internal/modules/esm/loader","NativeModule internal/modules/esm/module_map","NativeModule internal/modules/esm/translators","NativeModule internal/modules/esm/package_config","NativeModule internal/modules/esm/formats","NativeModule internal/modules/esm/get_format","NativeModule internal/modules/esm/resolve","NativeModule internal/modules/esm/module_job","NativeModule internal/modules/esm/load","Internal Binding fs_dir","NativeModule internal/fs/dir","NativeModule string_decoder","Internal Binding fs_event_wrap","Internal Binding uv","NativeModule internal/fs/watchers","NativeModule internal/fs/recursive_watch","NativeModule internal/readline/utils","NativeModule internal/readline/callbacks","NativeModule internal/readline/interface","NativeModule internal/fs/promises","NativeModule internal/perf/performance_entry","NativeModule internal/perf/observe","NativeModule internal/perf/resource_timing","NativeModule internal/perf/nodetiming","NativeModule internal/perf/usertiming","NativeModule internal/perf/event_loop_utilization","NativeModule internal/histogram","NativeModule internal/perf/timerify","NativeModule internal/perf/performance","NativeModule internal/perf/event_loop_delay","NativeModule perf_hooks","NativeModule internal/modules/esm/initialize_import_meta","NativeModule internal/streams/destroy","NativeModule internal/abort_controller","NativeModule internal/streams/end-of-stream","NativeModule internal/streams/legacy","NativeModule internal/streams/add-abort-signal","NativeModule internal/streams/state","NativeModule internal/streams/from","NativeModule internal/streams/readable","NativeModule internal/streams/writable","NativeModule internal/streams/duplex","NativeModule internal/streams/pipeline","NativeModule internal/streams/compose","NativeModule internal/streams/operators","NativeModule stream/promises","NativeModule internal/streams/transform","NativeModule internal/streams/passthrough","NativeModule internal/streams/duplexpair","NativeModule stream","NativeModule internal/fs/streams","NativeModule fs/promises","NativeModule internal/util/parse_args/utils","NativeModule internal/util/parse_args/parse_args","NativeModule internal/mime","NativeModule internal/source_map/source_map","NativeModule module","Internal Binding crypto","NativeModule internal/crypto/random","NativeModule internal/crypto/hashnames","NativeModule internal/crypto/util","NativeModule internal/crypto/pbkdf2","NativeModule internal/crypto/scrypt","NativeModule internal/crypto/keys","NativeModule internal/crypto/hkdf","NativeModule internal/crypto/keygen","NativeModule internal/crypto/diffiehellman","NativeModule internal/streams/lazy_transform","NativeModule internal/crypto/cipher","NativeModule internal/crypto/sig","NativeModule internal/crypto/hash","NativeModule internal/crypto/x509","NativeModule internal/crypto/certificate","NativeModule crypto","NativeModule internal/crypto/webcrypto","Internal Binding stream_wrap","Internal Binding tcp_wrap","Internal Binding pipe_wrap","NativeModule internal/stream_base_commons","NativeModule diagnostics_channel","NativeModule net","Internal Binding tty_wrap","NativeModule internal/tty","NativeModule tty","NativeModule internal/deps/cjs-module-lexer/dist/lexer","Internal Binding udp_wrap","NativeModule internal/dgram","NativeModule dgram","Internal Binding process_wrap","NativeModule internal/socket_list","Internal Binding spawn_sync","NativeModule internal/child_process","NativeModule child_process","NativeModule _http_agent","Internal Binding http_parser","NativeModule internal/freelist","NativeModule _http_incoming","NativeModule _http_common","NativeModule internal/http","NativeModule _http_outgoing","NativeModule _http_client","NativeModule _http_server","NativeModule http","Internal Binding cares_wrap","NativeModule internal/tls/secure-context","NativeModule _tls_common","Internal Binding js_stream","NativeModule internal/js_stream_socket","Internal Binding tls_wrap","NativeModule _tls_wrap","NativeModule internal/tls/secure-pair","NativeModule tls","NativeModule https","Internal Binding block_list","NativeModule internal/socketaddress","NativeModule internal/blocklist","Internal Binding os","NativeModule os","NativeModule internal/dns/callback_resolver","NativeModule dns","NativeModule internal/dns/promises","NativeModule internal/util/colors","NativeModule internal/assert/assertion_error","NativeModule internal/assert/utils","NativeModule internal/assert/calltracker","NativeModule assert","Internal Binding serdes","Internal Binding profiler","Internal Binding heap_utils","Internal Binding internal_only_v8","NativeModule internal/heap_utils","NativeModule internal/promise_hooks","Internal Binding v8","NativeModule v8","NativeModule internal/worker/io","NativeModule internal/error_serdes","NativeModule internal/worker","NativeModule worker_threads","NativeModule internal/file","NativeModule internal/readline/emitKeypressEvents","NativeModule internal/readline/promises","NativeModule readline/promises","NativeModule readline","Internal Binding zlib","NativeModule zlib","NativeModule process","Internal Binding report","NativeModule internal/process/report","NativeModule constants","NativeModule internal/crypto/webidl"],_events:{newListener:[null,null],removeListener:[null,null]},_eventsCount:3,domain:null,_exiting:!1,config:{target_defaults:{cflags:[],default_configuration:"Release",defines:["NODE_OPENSSL_CONF_NAME=nodejs_conf","NODE_OPENSSL_HAS_QUIC","ICU_NO_USER_DATA_OVERRIDE"],include_dirs:[],libraries:[]},variables:{asan:0,clang:0,coverage:!1,dcheck_always_on:0,debug_nghttp2:!1,debug_node:!1,enable_lto:!1,enable_pgo_generate:!1,enable_pgo_use:!1,error_on_warn:!1,force_dynamic_crt:0,gas_version:"2.35",host_arch:"x64",icu_data_in:"../../deps/icu-tmp/icudt75l.dat",icu_endianness:"l",icu_gyp_path:"tools/icu/icu-generic.gyp",icu_path:"deps/icu-small",icu_small:!1,icu_ver_major:"75",is_debug:0,libdir:"lib",llvm_version:"0.0",napi_build_version:"9",node_builtin_shareable_builtins:["deps/cjs-module-lexer/lexer.js","deps/cjs-module-lexer/dist/lexer.js","deps/undici/undici.js"],node_byteorder:"little",node_debug_lib:!1,node_enable_d8:!1,node_enable_v8_vtunejit:!1,node_fipsinstall:!1,node_install_corepack:!0,node_install_npm:!0,node_library_files:["lib/_http_agent.js","lib/_http_client.js","lib/_http_common.js","lib/_http_incoming.js","lib/_http_outgoing.js","lib/_http_server.js","lib/_stream_duplex.js","lib/_stream_passthrough.js","lib/_stream_readable.js","lib/_stream_transform.js","lib/_stream_wrap.js","lib/_stream_writable.js","lib/_tls_common.js","lib/_tls_wrap.js","lib/assert.js","lib/assert/strict.js","lib/async_hooks.js","lib/buffer.js","lib/child_process.js","lib/cluster.js","lib/console.js","lib/constants.js","lib/crypto.js","lib/dgram.js","lib/diagnostics_channel.js","lib/dns.js","lib/dns/promises.js","lib/domain.js","lib/events.js","lib/fs.js","lib/fs/promises.js","lib/http.js","lib/http2.js","lib/https.js","lib/inspector.js","lib/inspector/promises.js","lib/internal/abort_controller.js","lib/internal/assert.js","lib/internal/assert/assertion_error.js","lib/internal/assert/calltracker.js","lib/internal/assert/utils.js","lib/internal/async_hooks.js","lib/internal/blob.js","lib/internal/blocklist.js","lib/internal/bootstrap/node.js","lib/internal/bootstrap/realm.js","lib/internal/bootstrap/shadow_realm.js","lib/internal/bootstrap/switches/does_not_own_process_state.js","lib/internal/bootstrap/switches/does_own_process_state.js","lib/internal/bootstrap/switches/is_main_thread.js","lib/internal/bootstrap/switches/is_not_main_thread.js","lib/internal/bootstrap/web/exposed-wildcard.js","lib/internal/bootstrap/web/exposed-window-or-worker.js","lib/internal/buffer.js","lib/internal/child_process.js","lib/internal/child_process/serialization.js","lib/internal/cli_table.js","lib/internal/cluster/child.js","lib/internal/cluster/primary.js","lib/internal/cluster/round_robin_handle.js","lib/internal/cluster/shared_handle.js","lib/internal/cluster/utils.js","lib/internal/cluster/worker.js","lib/internal/console/constructor.js","lib/internal/console/global.js","lib/internal/constants.js","lib/internal/crypto/aes.js","lib/internal/crypto/certificate.js","lib/internal/crypto/cfrg.js","lib/internal/crypto/cipher.js","lib/internal/crypto/diffiehellman.js","lib/internal/crypto/ec.js","lib/internal/crypto/hash.js","lib/internal/crypto/hashnames.js","lib/internal/crypto/hkdf.js","lib/internal/crypto/keygen.js","lib/internal/crypto/keys.js","lib/internal/crypto/mac.js","lib/internal/crypto/pbkdf2.js","lib/internal/crypto/random.js","lib/internal/crypto/rsa.js","lib/internal/crypto/scrypt.js","lib/internal/crypto/sig.js","lib/internal/crypto/util.js","lib/internal/crypto/webcrypto.js","lib/internal/crypto/webidl.js","lib/internal/crypto/x509.js","lib/internal/debugger/inspect.js","lib/internal/debugger/inspect_client.js","lib/internal/debugger/inspect_repl.js","lib/internal/dgram.js","lib/internal/dns/callback_resolver.js","lib/internal/dns/promises.js","lib/internal/dns/utils.js","lib/internal/encoding.js","lib/internal/error_serdes.js","lib/internal/errors.js","lib/internal/event_target.js","lib/internal/events/abort_listener.js","lib/internal/events/symbols.js","lib/internal/file.js","lib/internal/fixed_queue.js","lib/internal/freelist.js","lib/internal/freeze_intrinsics.js","lib/internal/fs/cp/cp-sync.js","lib/internal/fs/cp/cp.js","lib/internal/fs/dir.js","lib/internal/fs/promises.js","lib/internal/fs/read/context.js","lib/internal/fs/recursive_watch.js","lib/internal/fs/rimraf.js","lib/internal/fs/streams.js","lib/internal/fs/sync_write_stream.js","lib/internal/fs/utils.js","lib/internal/fs/watchers.js","lib/internal/heap_utils.js","lib/internal/histogram.js","lib/internal/http.js","lib/internal/http2/compat.js","lib/internal/http2/core.js","lib/internal/http2/util.js","lib/internal/inspector_async_hook.js","lib/internal/inspector_network_tracking.js","lib/internal/js_stream_socket.js","lib/internal/legacy/processbinding.js","lib/internal/linkedlist.js","lib/internal/main/check_syntax.js","lib/internal/main/embedding.js","lib/internal/main/eval_stdin.js","lib/internal/main/eval_string.js","lib/internal/main/inspect.js","lib/internal/main/mksnapshot.js","lib/internal/main/print_help.js","lib/internal/main/prof_process.js","lib/internal/main/repl.js","lib/internal/main/run_main_module.js","lib/internal/main/test_runner.js","lib/internal/main/watch_mode.js","lib/internal/main/worker_thread.js","lib/internal/mime.js","lib/internal/modules/cjs/loader.js","lib/internal/modules/esm/assert.js","lib/internal/modules/esm/create_dynamic_module.js","lib/internal/modules/esm/fetch_module.js","lib/internal/modules/esm/formats.js","lib/internal/modules/esm/get_format.js","lib/internal/modules/esm/hooks.js","lib/internal/modules/esm/initialize_import_meta.js","lib/internal/modules/esm/load.js","lib/internal/modules/esm/loader.js","lib/internal/modules/esm/module_job.js","lib/internal/modules/esm/module_map.js","lib/internal/modules/esm/package_config.js","lib/internal/modules/esm/resolve.js","lib/internal/modules/esm/shared_constants.js","lib/internal/modules/esm/translators.js","lib/internal/modules/esm/utils.js","lib/internal/modules/esm/worker.js","lib/internal/modules/helpers.js","lib/internal/modules/package_json_reader.js","lib/internal/modules/run_main.js","lib/internal/navigator.js","lib/internal/net.js","lib/internal/options.js","lib/internal/per_context/domexception.js","lib/internal/per_context/messageport.js","lib/internal/per_context/primordials.js","lib/internal/perf/event_loop_delay.js","lib/internal/perf/event_loop_utilization.js","lib/internal/perf/nodetiming.js","lib/internal/perf/observe.js","lib/internal/perf/performance.js","lib/internal/perf/performance_entry.js","lib/internal/perf/resource_timing.js","lib/internal/perf/timerify.js","lib/internal/perf/usertiming.js","lib/internal/perf/utils.js","lib/internal/policy/manifest.js","lib/internal/policy/sri.js","lib/internal/priority_queue.js","lib/internal/process/execution.js","lib/internal/process/per_thread.js","lib/internal/process/permission.js","lib/internal/process/policy.js","lib/internal/process/pre_execution.js","lib/internal/process/promises.js","lib/internal/process/report.js","lib/internal/process/signal.js","lib/internal/process/task_queues.js","lib/internal/process/warning.js","lib/internal/process/worker_thread_only.js","lib/internal/promise_hooks.js","lib/internal/querystring.js","lib/internal/readline/callbacks.js","lib/internal/readline/emitKeypressEvents.js","lib/internal/readline/interface.js","lib/internal/readline/promises.js","lib/internal/readline/utils.js","lib/internal/repl.js","lib/internal/repl/await.js","lib/internal/repl/history.js","lib/internal/repl/utils.js","lib/internal/socket_list.js","lib/internal/socketaddress.js","lib/internal/source_map/prepare_stack_trace.js","lib/internal/source_map/source_map.js","lib/internal/source_map/source_map_cache.js","lib/internal/stream_base_commons.js","lib/internal/streams/add-abort-signal.js","lib/internal/streams/compose.js","lib/internal/streams/destroy.js","lib/internal/streams/duplex.js","lib/internal/streams/duplexify.js","lib/internal/streams/duplexpair.js","lib/internal/streams/end-of-stream.js","lib/internal/streams/from.js","lib/internal/streams/lazy_transform.js","lib/internal/streams/legacy.js","lib/internal/streams/operators.js","lib/internal/streams/passthrough.js","lib/internal/streams/pipeline.js","lib/internal/streams/readable.js","lib/internal/streams/state.js","lib/internal/streams/transform.js","lib/internal/streams/utils.js","lib/internal/streams/writable.js","lib/internal/test/binding.js","lib/internal/test/transfer.js","lib/internal/test_runner/coverage.js","lib/internal/test_runner/harness.js","lib/internal/test_runner/mock/loader.js","lib/internal/test_runner/mock/mock.js","lib/internal/test_runner/mock/mock_timers.js","lib/internal/test_runner/reporter/dot.js","lib/internal/test_runner/reporter/junit.js","lib/internal/test_runner/reporter/lcov.js","lib/internal/test_runner/reporter/spec.js","lib/internal/test_runner/reporter/tap.js","lib/internal/test_runner/reporter/utils.js","lib/internal/test_runner/reporter/v8-serializer.js","lib/internal/test_runner/runner.js","lib/internal/test_runner/test.js","lib/internal/test_runner/tests_stream.js","lib/internal/test_runner/utils.js","lib/internal/timers.js","lib/internal/tls/secure-context.js","lib/internal/tls/secure-pair.js","lib/internal/trace_events_async_hooks.js","lib/internal/tty.js","lib/internal/url.js","lib/internal/util.js","lib/internal/util/colors.js","lib/internal/util/comparisons.js","lib/internal/util/debuglog.js","lib/internal/util/embedding.js","lib/internal/util/inspect.js","lib/internal/util/inspector.js","lib/internal/util/iterable_weak_map.js","lib/internal/util/parse_args/parse_args.js","lib/internal/util/parse_args/utils.js","lib/internal/util/types.js","lib/internal/v8/startup_snapshot.js","lib/internal/v8_prof_polyfill.js","lib/internal/v8_prof_processor.js","lib/internal/validators.js","lib/internal/vm.js","lib/internal/vm/module.js","lib/internal/wasm_web_api.js","lib/internal/watch_mode/files_watcher.js","lib/internal/watchdog.js","lib/internal/webidl.js","lib/internal/webstreams/adapters.js","lib/internal/webstreams/compression.js","lib/internal/webstreams/encoding.js","lib/internal/webstreams/queuingstrategies.js","lib/internal/webstreams/readablestream.js","lib/internal/webstreams/transfer.js","lib/internal/webstreams/transformstream.js","lib/internal/webstreams/util.js","lib/internal/webstreams/writablestream.js","lib/internal/worker.js","lib/internal/worker/io.js","lib/internal/worker/js_transferable.js","lib/module.js","lib/net.js","lib/os.js","lib/path.js","lib/path/posix.js","lib/path/win32.js","lib/perf_hooks.js","lib/process.js","lib/punycode.js","lib/querystring.js","lib/readline.js","lib/readline/promises.js","lib/repl.js","lib/sea.js","lib/stream.js","lib/stream/consumers.js","lib/stream/promises.js","lib/stream/web.js","lib/string_decoder.js","lib/sys.js","lib/test.js","lib/test/reporters.js","lib/timers.js","lib/timers/promises.js","lib/tls.js","lib/trace_events.js","lib/tty.js","lib/url.js","lib/util.js","lib/util/types.js","lib/v8.js","lib/vm.js","lib/wasi.js","lib/worker_threads.js","lib/zlib.js"],node_module_version:115,node_no_browser_globals:!1,node_prefix:"/",node_release_urlbase:"https://nodejs.org/download/release/",node_section_ordering_info:"",node_shared:!1,node_shared_ada:!1,node_shared_brotli:!1,node_shared_cares:!1,node_shared_http_parser:!1,node_shared_libuv:!1,node_shared_nghttp2:!1,node_shared_nghttp3:!1,node_shared_ngtcp2:!1,node_shared_openssl:!1,node_shared_simdjson:!1,node_shared_simdutf:!1,node_shared_uvwasi:!1,node_shared_zlib:!1,node_tag:"",node_target_type:"executable",node_use_bundled_v8:!0,node_use_node_code_cache:!0,node_use_node_snapshot:!0,node_use_openssl:!0,node_use_v8_platform:!0,node_with_ltcg:!1,node_without_node_options:!1,node_write_snapshot_as_array_literals:!1,openssl_is_fips:!1,openssl_quic:!0,ossfuzz:!1,shlib_suffix:"so.115",single_executable_application:!0,target_arch:"x64",ubsan:0,use_prefix_to_find_headers:!1,v8_enable_31bit_smis_on_64bit_arch:0,v8_enable_extensible_ro_snapshot:0,v8_enable_gdbjit:0,v8_enable_hugepage:0,v8_enable_i18n_support:1,v8_enable_inspector:1,v8_enable_javascript_promise_hooks:1,v8_enable_lite_mode:0,v8_enable_maglev:0,v8_enable_object_print:1,v8_enable_pointer_compression:0,v8_enable_sandbox:0,v8_enable_shared_ro_heap:1,v8_enable_short_builtin_calls:1,v8_enable_v8_checks:0,v8_enable_webassembly:1,v8_no_strict_aliasing:1,v8_optimized_debug:1,v8_promise_internal_field_count:1,v8_random_seed:0,v8_trace_maps:0,v8_use_siphash:1,want_separate_host_toolset:0}},allowedNodeEnvironmentFlags:{},features:{inspector:!0,debug:!1,uv:!0,ipv6:!0,tls_alpn:!0,tls_sni:!0,tls_ocsp:!0,tls:!0,cached_builtins:!0},sourceMapsEnabled:!1,stdout:{connecting:!1,_hadError:!1,_parent:null,_host:null,_closeAfterHandlingError:!1,_events:{},_readableState:{highWaterMark:16384,buffer:[],bufferIndex:0,length:0,pipes:[],awaitDrainWriters:null,readable:!1},_writableState:{highWaterMark:16384,length:0,corked:0,writelen:0,bufferedIndex:0,pendingcb:0},allowHalfOpen:!1,_eventsCount:1,_sockname:null,_pendingData:null,_pendingEncoding:"",server:null,_server:null,_type:"pipe",fd:1,_isStdio:!0},stdin:{connecting:!1,_hadError:!1,_parent:null,_host:null,_closeAfterHandlingError:!1,_events:{},_readableState:{highWaterMark:16384,buffer:[],bufferIndex:0,length:0,pipes:[],awaitDrainWriters:null},_writableState:{highWaterMark:16384,length:0,corked:0,writelen:0,bufferedIndex:0,pendingcb:0},allowHalfOpen:!1,_eventsCount:2,_sockname:null,_pendingData:null,_pendingEncoding:"",server:null,_server:null,fd:0},stderr:{connecting:!1,_hadError:!1,_parent:null,_host:null,_closeAfterHandlingError:!1,_events:{},_readableState:{highWaterMark:16384,buffer:[],bufferIndex:0,length:0,pipes:[],awaitDrainWriters:null,readable:!1},_writableState:{highWaterMark:16384,length:0,corked:0,writelen:0,bufferedIndex:0,pendingcb:0},allowHalfOpen:!1,_eventsCount:1,_sockname:null,_pendingData:null,_pendingEncoding:"",server:null,_server:null,_type:"pipe",fd:2,_isStdio:!0},env:{GITHUB_STATE:"/home/runner/work/_temp/_runner_file_commands/save_state_d53cc035-1b76-4af7-9fb5-24f8457de40c",STATS_TRP:"true",DEPLOYMENT_BASEPATH:"/opt/runner",DOTNET_NOLOGO:"1",USER:"runner",npm_config_user_agent:"npm/10.8.2 node/v20.18.3 linux x64 workspaces/false ci/github-actions",CI:"true",RUNNER_ENVIRONMENT:"github-hosted",GITHUB_ENV:"/home/runner/work/_temp/_runner_file_commands/set_env_d53cc035-1b76-4af7-9fb5-24f8457de40c",PIPX_HOME:"/opt/pipx",npm_node_execpath:"/opt/hostedtoolcache/node/20.18.3/x64/bin/node",JAVA_HOME_8_X64:"/usr/lib/jvm/temurin-8-jdk-amd64",SHLVL:"1",npm_config_noproxy:"",HOME:"/home/runner",RUNNER_TEMP:"/home/runner/work/_temp",GITHUB_EVENT_PATH:"/home/runner/work/_temp/_github_workflow/event.json",npm_package_json:"/home/runner/work/md/md/package.json",JAVA_HOME_11_X64:"/usr/lib/jvm/temurin-11-jdk-amd64",PIPX_BIN_DIR:"/opt/pipx_bin",GITHUB_REPOSITORY_OWNER:"doocs",GRADLE_HOME:"/usr/share/gradle-8.12.1",ANDROID_NDK_LATEST_HOME:"/usr/local/lib/android/sdk/ndk/28.0.13004108",JAVA_HOME_21_X64:"/usr/lib/jvm/temurin-21-jdk-amd64",STATS_RDCL:"true",GITHUB_RETENTION_DAYS:"90",GITHUB_REPOSITORY_OWNER_ID:"43716716",POWERSHELL_DISTRIBUTION_CHANNEL:"GitHub-Actions-ubuntu24",AZURE_EXTENSION_DIR:"/opt/az/azcliextensions",GITHUB_HEAD_REF:"",npm_config_userconfig:"/home/runner/.npmrc",npm_config_local_prefix:"/home/runner/work/md/md",SYSTEMD_EXEC_PID:"835",GITHUB_GRAPHQL_URL:"https://api.github.com/graphql",COLOR:"0",NVM_DIR:"/home/runner/.nvm",DOTNET_SKIP_FIRST_TIME_EXPERIENCE:"1",GOROOT_1_21_X64:"/opt/hostedtoolcache/go/1.21.13/x64",JAVA_HOME_17_X64:"/usr/lib/jvm/temurin-17-jdk-amd64",ImageVersion:"20250223.1.0",RUNNER_OS:"Linux",GITHUB_API_URL:"https://api.github.com",GOROOT_1_22_X64:"/opt/hostedtoolcache/go/1.22.12/x64",SWIFT_PATH:"/usr/share/swift/usr/bin",RUNNER_USER:"runner",STATS_V3PS:"true",CHROMEWEBDRIVER:"/usr/local/share/chromedriver-linux64",GOROOT_1_23_X64:"/opt/hostedtoolcache/go/1.23.6/x64",JOURNAL_STREAM:"8:5890",GITHUB_WORKFLOW:"Build and Deploy",_:"/opt/hostedtoolcache/node/20.18.3/x64/bin/npm",npm_config_prefix:"/opt/hostedtoolcache/node/20.18.3/x64",npm_config_npm_version:"10.8.2",MEMORY_PRESSURE_WATCH:"/sys/fs/cgroup/system.slice/runner-provisioner.service/memory.pressure",ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE:"/opt/actionarchivecache",STATS_D:"true",GITHUB_RUN_ID:"13625656549",STATS_VMFE:"true",npm_config_cache:"/home/runner/.npm",GITHUB_REF_TYPE:"branch",BOOTSTRAP_HASKELL_NONINTERACTIVE:"1",GITHUB_WORKFLOW_SHA:"28ede70a704c676eed43a63c290863c0eb2e51aa",GITHUB_BASE_REF:"",ImageOS:"ubuntu24",GITHUB_WORKFLOW_REF:"doocs/md/.github/workflows/build.yml@refs/heads/main",PERFLOG_LOCATION_SETTING:"RUNNER_PERFLOG",GITHUB_ACTION_REPOSITORY:"",npm_config_node_gyp:"/opt/hostedtoolcache/node/20.18.3/x64/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",PATH:"/home/runner/work/md/md/node_modules/.bin:/home/runner/work/md/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/20.18.3/x64/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/home/runner/work/md/md/node_modules/.bin:/home/runner/work/md/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/20.18.3/x64/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/opt/hostedtoolcache/node/20.18.3/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin",ANT_HOME:"/usr/share/ant",DOTNET_MULTILEVEL_LOOKUP:"0",RUNNER_TRACKING_ID:"github_4ead6fd7-fa08-4c5d-a36f-08f8752a0ffe",INVOCATION_ID:"015617c2a5044170892be94fa638d8ab",RUNNER_TOOL_CACHE:"/opt/hostedtoolcache",NODE:"/opt/hostedtoolcache/node/20.18.3/x64/bin/node",npm_package_name:"md",GITHUB_ACTION:"__run_2",GITHUB_RUN_NUMBER:"502",GITHUB_TRIGGERING_ACTOR:"yanglbme",RUNNER_ARCH:"X64",XDG_RUNTIME_DIR:"/run/user/1001",AGENT_TOOLSDIRECTORY:"/opt/hostedtoolcache",LANG:"C.UTF-8",VCPKG_INSTALLATION_ROOT:"/usr/local/share/vcpkg",CONDA:"/usr/share/miniconda",RUNNER_NAME:"GitHub Actions 14",XDG_CONFIG_HOME:"/home/runner/.config",STATS_VMD:"true",GITHUB_REF_NAME:"main",GITHUB_REPOSITORY:"doocs/md",STATS_D_D:"true",npm_lifecycle_script:"vite build",STATS_UE:"true",ANDROID_NDK_ROOT:"/usr/local/lib/android/sdk/ndk/27.2.12479018",GITHUB_ACTION_REF:"",DEBIAN_FRONTEND:"noninteractive",GITHUB_REPOSITORY_ID:"218952803",GITHUB_ACTIONS:"true",STATS_PIP:"false",npm_package_version:"1.6.0",npm_lifecycle_event:"build:only",GITHUB_REF_PROTECTED:"true",GITHUB_WORKSPACE:"/home/runner/work/md/md",ACCEPT_EULA:"Y",GITHUB_JOB:"build-and-deploy",RUNNER_PERFLOG:"/home/runner/perflog",GITHUB_SHA:"28ede70a704c676eed43a63c290863c0eb2e51aa",GITHUB_RUN_ATTEMPT:"1",STATS_D_TC:"true",GITHUB_REF:"refs/heads/main",GITHUB_ACTOR:"yanglbme",ANDROID_SDK_ROOT:"/usr/local/lib/android/sdk",npm_config_globalconfig:"/opt/hostedtoolcache/node/20.18.3/x64/etc/npmrc",npm_config_init_module:"/home/runner/.npm-init.js",GITHUB_PATH:"/home/runner/work/_temp/_runner_file_commands/add_path_d53cc035-1b76-4af7-9fb5-24f8457de40c",JAVA_HOME:"/usr/lib/jvm/temurin-17-jdk-amd64",PWD:"/home/runner/work/md/md",GITHUB_ACTOR_ID:"21008209",RUNNER_WORKSPACE:"/home/runner/work/md",npm_execpath:"/opt/hostedtoolcache/node/20.18.3/x64/lib/node_modules/npm/bin/npm-cli.js",HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS:"3650",GITHUB_EVENT_NAME:"push",HOMEBREW_NO_AUTO_UPDATE:"1",ANDROID_HOME:"/usr/local/lib/android/sdk",GITHUB_SERVER_URL:"https://github.com",GECKOWEBDRIVER:"/usr/local/share/gecko_driver",GHCUP_INSTALL_BASE_PREFIX:"/usr/local",GITHUB_OUTPUT:"/home/runner/work/_temp/_runner_file_commands/set_output_d53cc035-1b76-4af7-9fb5-24f8457de40c",npm_config_global_prefix:"/opt/hostedtoolcache/node/20.18.3/x64",EDGEWEBDRIVER:"/usr/local/share/edge_driver",STATS_EXT:"true",npm_command:"run-script",ANDROID_NDK:"/usr/local/lib/android/sdk/ndk/27.2.12479018",SGX_AESM_ADDR:"1",CHROME_BIN:"/usr/bin/google-chrome",SELENIUM_JAR_PATH:"/usr/share/java/selenium-server.jar",MEMORY_PRESSURE_WRITE:"c29tZSAyMDAwMDAgMjAwMDAwMAA=",STATS_EXTP:"https://provjobdprod.z13.web.core.windows.net/settings/provjobdsettings-latest/provjobd.data",ANDROID_NDK_HOME:"/usr/local/lib/android/sdk/ndk/27.2.12479018",GITHUB_STEP_SUMMARY:"/home/runner/work/_temp/_runner_file_commands/step_summary_d53cc035-1b76-4af7-9fb5-24f8457de40c",INIT_CWD:"/home/runner/work/md/md",EDITOR:"vi",NODE_ENV:"production",LAUNCH_EDITOR:"code"},title:"node",argv:["/opt/hostedtoolcache/node/20.18.3/x64/bin/node","/home/runner/work/md/md/node_modules/.bin/vite","build"],execArgv:[],pid:2138,ppid:2137,execPath:"/opt/hostedtoolcache/node/20.18.3/x64/bin/node",debugPort:9229,argv0:"node",_preload_modules:[],report:{directory:"",filename:"",compact:!1,excludeNetwork:!1,signal:"SIGUSR2",reportOnFatalError:!1,reportOnSignal:!1,reportOnUncaughtException:!1}};function destroy(Ra,qa){var rd=this,sd=this._readableState&&this._readableState.destroyed,pd=this._writableState&&this._writableState.destroyed;return sd||pd?(qa?qa(Ra):Ra&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,define_process_default$8.nextTick(emitErrorNT,this,Ra)):define_process_default$8.nextTick(emitErrorNT,this,Ra)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(Ra||null,function(fd){!qa&&fd?rd._writableState?rd._writableState.errorEmitted?define_process_default$8.nextTick(emitCloseNT,rd):(rd._writableState.errorEmitted=!0,define_process_default$8.nextTick(emitErrorAndCloseNT,rd,fd)):define_process_default$8.nextTick(emitErrorAndCloseNT,rd,fd):qa?(define_process_default$8.nextTick(emitCloseNT,rd),qa(fd)):define_process_default$8.nextTick(emitCloseNT,rd)}),this)}function emitErrorAndCloseNT(Ra,qa){emitErrorNT(Ra,qa),emitCloseNT(Ra)}function emitCloseNT(Ra){Ra._writableState&&!Ra._writableState.emitClose||Ra._readableState&&!Ra._readableState.emitClose||Ra.emit("close")}function undestroy(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function emitErrorNT(Ra,qa){Ra.emit("error",qa)}function errorOrDestroy(Ra,qa){var rd=Ra._readableState,sd=Ra._writableState;rd&&rd.autoDestroy||sd&&sd.autoDestroy?Ra.destroy(qa):Ra.emit("error",qa)}var destroy_1={destroy,undestroy,errorOrDestroy},errorsBrowser={};function _inheritsLoose(Ra,qa){Ra.prototype=Object.create(qa.prototype),Ra.prototype.constructor=Ra,Ra.__proto__=qa}var codes={};function createErrorType(Ra,qa,rd){rd||(rd=Error);function sd(fd,hd,md){return typeof qa=="string"?qa:qa(fd,hd,md)}var pd=function(fd){_inheritsLoose(hd,fd);function hd(md,gd,yd){return fd.call(this,sd(md,gd,yd))||this}return hd}(rd);pd.prototype.name=rd.name,pd.prototype.code=Ra,codes[Ra]=pd}function oneOf(Ra,qa){if(Array.isArray(Ra)){var rd=Ra.length;return Ra=Ra.map(function(sd){return String(sd)}),rd>2?"one of ".concat(qa," ").concat(Ra.slice(0,rd-1).join(", "),", or ")+Ra[rd-1]:rd===2?"one of ".concat(qa," ").concat(Ra[0]," or ").concat(Ra[1]):"of ".concat(qa," ").concat(Ra[0])}else return"of ".concat(qa," ").concat(String(Ra))}function startsWith(Ra,qa,rd){return Ra.substr(0,qa.length)===qa}function endsWith$1(Ra,qa,rd){return(rd===void 0||rd>Ra.length)&&(rd=Ra.length),Ra.substring(rd-qa.length,rd)===qa}function includes(Ra,qa,rd){return typeof rd!="number"&&(rd=0),rd+qa.length>Ra.length?!1:Ra.indexOf(qa,rd)!==-1}createErrorType("ERR_INVALID_OPT_VALUE",function(Ra,qa){return'The value "'+qa+'" is invalid for option "'+Ra+'"'},TypeError);createErrorType("ERR_INVALID_ARG_TYPE",function(Ra,qa,rd){var sd;typeof qa=="string"&&startsWith(qa,"not ")?(sd="must not be",qa=qa.replace(/^not /,"")):sd="must be";var pd;if(endsWith$1(Ra," argument"))pd="The ".concat(Ra," ").concat(sd," ").concat(oneOf(qa,"type"));else{var fd=includes(Ra,".")?"property":"argument";pd='The "'.concat(Ra,'" ').concat(fd," ").concat(sd," ").concat(oneOf(qa,"type"))}return pd+=". Received type ".concat(typeof rd),pd},TypeError);createErrorType("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");createErrorType("ERR_METHOD_NOT_IMPLEMENTED",function(Ra){return"The "+Ra+" method is not implemented"});createErrorType("ERR_STREAM_PREMATURE_CLOSE","Premature close");createErrorType("ERR_STREAM_DESTROYED",function(Ra){return"Cannot call "+Ra+" after a stream was destroyed"});createErrorType("ERR_MULTIPLE_CALLBACK","Callback called multiple times");createErrorType("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");createErrorType("ERR_STREAM_WRITE_AFTER_END","write after end");createErrorType("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);createErrorType("ERR_UNKNOWN_ENCODING",function(Ra){return"Unknown encoding: "+Ra},TypeError);createErrorType("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");errorsBrowser.codes=codes;var ERR_INVALID_OPT_VALUE=errorsBrowser.codes.ERR_INVALID_OPT_VALUE;function highWaterMarkFrom(Ra,qa,rd){return Ra.highWaterMark!=null?Ra.highWaterMark:qa?Ra[rd]:null}function getHighWaterMark(Ra,qa,rd,sd){var pd=highWaterMarkFrom(qa,sd,rd);if(pd!=null){if(!(isFinite(pd)&&Math.floor(pd)===pd)||pd<0){var fd=sd?rd:"highWaterMark";throw new ERR_INVALID_OPT_VALUE(fd,pd)}return Math.floor(pd)}return Ra.objectMode?16:16*1024}var state={getHighWaterMark},browser$1=deprecate;function deprecate(Ra,qa){if(config("noDeprecation"))return Ra;var rd=!1;function sd(){if(!rd){if(config("throwDeprecation"))throw new Error(qa);config("traceDeprecation")?console.trace(qa):console.warn(qa),rd=!0}return Ra.apply(this,arguments)}return sd}function config(Ra){try{if(!commonjsGlobal.localStorage)return!1}catch{return!1}var qa=commonjsGlobal.localStorage[Ra];return qa==null?!1:String(qa).toLowerCase()==="true"}var _stream_writable,hasRequired_stream_writable;function require_stream_writable(){if(hasRequired_stream_writable)return _stream_writable;hasRequired_stream_writable=1;var Ra={version:"v20.18.3",versions:{node:"20.18.3",acorn:"8.14.0",ada:"2.9.2",ares:"1.34.4",base64:"0.5.2",brotli:"1.1.0",cjs_module_lexer:"1.4.1",cldr:"45.0",icu:"75.1",llhttp:"8.1.2",modules:"115",napi:"9",nghttp2:"1.61.0",nghttp3:"0.7.0",ngtcp2:"1.1.0",openssl:"3.0.15+quic",simdutf:"5.6.4",tz:"2024b",undici:"6.21.1",unicode:"15.1",uv:"1.46.0",uvwasi:"0.0.21",v8:"11.3.244.8-node.25",zlib:"1.3.0.1-motley-82a5fec"},arch:"x64",platform:"linux",release:{name:"node",lts:"Iron",sourceUrl:"https://nodejs.org/download/release/v20.18.3/node-v20.18.3.tar.gz",headersUrl:"https://nodejs.org/download/release/v20.18.3/node-v20.18.3-headers.tar.gz"},moduleLoadList:["Internal Binding builtins","Internal Binding module_wrap","Internal Binding errors","NativeModule internal/assert","Internal Binding util","NativeModule internal/errors","Internal Binding config","Internal Binding timers","Internal Binding async_wrap","Internal Binding task_queue","Internal Binding symbols","NativeModule internal/async_hooks","Internal Binding constants","Internal Binding types","Internal Binding options","NativeModule internal/options","Internal Binding string_decoder","NativeModule internal/util","NativeModule internal/util/types","NativeModule internal/validators","NativeModule internal/linkedlist","NativeModule internal/priority_queue","Internal Binding icu","NativeModule internal/util/inspect","NativeModule internal/util/debuglog","NativeModule internal/timers","NativeModule internal/events/abort_listener","NativeModule events","Internal Binding buffer","NativeModule internal/buffer","NativeModule buffer","Internal Binding messaging","NativeModule internal/worker/js_transferable","NativeModule internal/querystring","NativeModule internal/constants","NativeModule path","NativeModule querystring","Internal Binding url","NativeModule internal/url","NativeModule internal/fs/utils","Internal Binding process_methods","NativeModule internal/process/per_thread","Internal Binding credentials","NativeModule internal/process/promises","NativeModule internal/fixed_queue","NativeModule async_hooks","NativeModule internal/process/task_queues","NativeModule timers","Internal Binding trace_events","Internal Binding contextify","NativeModule internal/vm","NativeModule internal/process/execution","NativeModule internal/process/warning","NativeModule internal/source_map/source_map_cache","Internal Binding fs","Internal Binding blob","Internal Binding encoding_binding","NativeModule internal/encoding","NativeModule internal/streams/utils","NativeModule util","NativeModule internal/webstreams/util","NativeModule internal/webstreams/queuingstrategies","NativeModule internal/blob","Internal Binding permission","NativeModule internal/process/permission","NativeModule fs","NativeModule internal/modules/helpers","NativeModule internal/console/constructor","NativeModule internal/console/global","NativeModule internal/util/inspector","Internal Binding inspector","NativeModule internal/webidl","Internal Binding performance","NativeModule internal/perf/utils","NativeModule internal/event_target","Internal Binding wasm_web_api","Internal Binding mksnapshot","NativeModule internal/v8/startup_snapshot","NativeModule internal/process/signal","NativeModule url","NativeModule internal/modules/package_json_reader","NativeModule internal/modules/cjs/loader","NativeModule internal/process/pre_execution","NativeModule internal/modules/esm/utils","NativeModule internal/inspector_async_hook","Internal Binding worker","NativeModule internal/modules/run_main","NativeModule internal/net","NativeModule internal/dns/utils","NativeModule internal/modules/esm/assert","NativeModule internal/modules/esm/loader","NativeModule internal/modules/esm/module_map","NativeModule internal/modules/esm/translators","NativeModule internal/modules/esm/package_config","NativeModule internal/modules/esm/formats","NativeModule internal/modules/esm/get_format","NativeModule internal/modules/esm/resolve","NativeModule internal/modules/esm/module_job","NativeModule internal/modules/esm/load","Internal Binding fs_dir","NativeModule internal/fs/dir","NativeModule string_decoder","Internal Binding fs_event_wrap","Internal Binding uv","NativeModule internal/fs/watchers","NativeModule internal/fs/recursive_watch","NativeModule internal/readline/utils","NativeModule internal/readline/callbacks","NativeModule internal/readline/interface","NativeModule internal/fs/promises","NativeModule internal/perf/performance_entry","NativeModule internal/perf/observe","NativeModule internal/perf/resource_timing","NativeModule internal/perf/nodetiming","NativeModule internal/perf/usertiming","NativeModule internal/perf/event_loop_utilization","NativeModule internal/histogram","NativeModule internal/perf/timerify","NativeModule internal/perf/performance","NativeModule internal/perf/event_loop_delay","NativeModule perf_hooks","NativeModule internal/modules/esm/initialize_import_meta","NativeModule internal/streams/destroy","NativeModule internal/abort_controller","NativeModule internal/streams/end-of-stream","NativeModule internal/streams/legacy","NativeModule internal/streams/add-abort-signal","NativeModule internal/streams/state","NativeModule internal/streams/from","NativeModule internal/streams/readable","NativeModule internal/streams/writable","NativeModule internal/streams/duplex","NativeModule internal/streams/pipeline","NativeModule internal/streams/compose","NativeModule internal/streams/operators","NativeModule stream/promises","NativeModule internal/streams/transform","NativeModule internal/streams/passthrough","NativeModule internal/streams/duplexpair","NativeModule stream","NativeModule internal/fs/streams","NativeModule fs/promises","NativeModule internal/util/parse_args/utils","NativeModule internal/util/parse_args/parse_args","NativeModule internal/mime","NativeModule internal/source_map/source_map","NativeModule module","Internal Binding crypto","NativeModule internal/crypto/random","NativeModule internal/crypto/hashnames","NativeModule internal/crypto/util","NativeModule internal/crypto/pbkdf2","NativeModule internal/crypto/scrypt","NativeModule internal/crypto/keys","NativeModule internal/crypto/hkdf","NativeModule internal/crypto/keygen","NativeModule internal/crypto/diffiehellman","NativeModule internal/streams/lazy_transform","NativeModule internal/crypto/cipher","NativeModule internal/crypto/sig","NativeModule internal/crypto/hash","NativeModule internal/crypto/x509","NativeModule internal/crypto/certificate","NativeModule crypto","NativeModule internal/crypto/webcrypto","Internal Binding stream_wrap","Internal Binding tcp_wrap","Internal Binding pipe_wrap","NativeModule internal/stream_base_commons","NativeModule diagnostics_channel","NativeModule net","Internal Binding tty_wrap","NativeModule internal/tty","NativeModule tty","NativeModule internal/deps/cjs-module-lexer/dist/lexer","Internal Binding udp_wrap","NativeModule internal/dgram","NativeModule dgram","Internal Binding process_wrap","NativeModule internal/socket_list","Internal Binding spawn_sync","NativeModule internal/child_process","NativeModule child_process","NativeModule _http_agent","Internal Binding http_parser","NativeModule internal/freelist","NativeModule _http_incoming","NativeModule _http_common","NativeModule internal/http","NativeModule _http_outgoing","NativeModule _http_client","NativeModule _http_server","NativeModule http","Internal Binding cares_wrap","NativeModule internal/tls/secure-context","NativeModule _tls_common","Internal Binding js_stream","NativeModule internal/js_stream_socket","Internal Binding tls_wrap","NativeModule _tls_wrap","NativeModule internal/tls/secure-pair","NativeModule tls","NativeModule https","Internal Binding block_list","NativeModule internal/socketaddress","NativeModule internal/blocklist","Internal Binding os","NativeModule os","NativeModule internal/dns/callback_resolver","NativeModule dns","NativeModule internal/dns/promises","NativeModule internal/util/colors","NativeModule internal/assert/assertion_error","NativeModule internal/assert/utils","NativeModule internal/assert/calltracker","NativeModule assert","Internal Binding serdes","Internal Binding profiler","Internal Binding heap_utils","Internal Binding internal_only_v8","NativeModule internal/heap_utils","NativeModule internal/promise_hooks","Internal Binding v8","NativeModule v8","NativeModule internal/worker/io","NativeModule internal/error_serdes","NativeModule internal/worker","NativeModule worker_threads","NativeModule internal/file","NativeModule internal/readline/emitKeypressEvents","NativeModule internal/readline/promises","NativeModule readline/promises","NativeModule readline","Internal Binding zlib","NativeModule zlib","NativeModule process","Internal Binding report","NativeModule internal/process/report","NativeModule constants","NativeModule internal/crypto/webidl"],_events:{newListener:[null,null],removeListener:[null,null]},_eventsCount:3,domain:null,_exiting:!1,config:{target_defaults:{cflags:[],default_configuration:"Release",defines:["NODE_OPENSSL_CONF_NAME=nodejs_conf","NODE_OPENSSL_HAS_QUIC","ICU_NO_USER_DATA_OVERRIDE"],include_dirs:[],libraries:[]},variables:{asan:0,clang:0,coverage:!1,dcheck_always_on:0,debug_nghttp2:!1,debug_node:!1,enable_lto:!1,enable_pgo_generate:!1,enable_pgo_use:!1,error_on_warn:!1,force_dynamic_crt:0,gas_version:"2.35",host_arch:"x64",icu_data_in:"../../deps/icu-tmp/icudt75l.dat",icu_endianness:"l",icu_gyp_path:"tools/icu/icu-generic.gyp",icu_path:"deps/icu-small",icu_small:!1,icu_ver_major:"75",is_debug:0,libdir:"lib",llvm_version:"0.0",napi_build_version:"9",node_builtin_shareable_builtins:["deps/cjs-module-lexer/lexer.js","deps/cjs-module-lexer/dist/lexer.js","deps/undici/undici.js"],node_byteorder:"little",node_debug_lib:!1,node_enable_d8:!1,node_enable_v8_vtunejit:!1,node_fipsinstall:!1,node_install_corepack:!0,node_install_npm:!0,node_library_files:["lib/_http_agent.js","lib/_http_client.js","lib/_http_common.js","lib/_http_incoming.js","lib/_http_outgoing.js","lib/_http_server.js","lib/_stream_duplex.js","lib/_stream_passthrough.js","lib/_stream_readable.js","lib/_stream_transform.js","lib/_stream_wrap.js","lib/_stream_writable.js","lib/_tls_common.js","lib/_tls_wrap.js","lib/assert.js","lib/assert/strict.js","lib/async_hooks.js","lib/buffer.js","lib/child_process.js","lib/cluster.js","lib/console.js","lib/constants.js","lib/crypto.js","lib/dgram.js","lib/diagnostics_channel.js","lib/dns.js","lib/dns/promises.js","lib/domain.js","lib/events.js","lib/fs.js","lib/fs/promises.js","lib/http.js","lib/http2.js","lib/https.js","lib/inspector.js","lib/inspector/promises.js","lib/internal/abort_controller.js","lib/internal/assert.js","lib/internal/assert/assertion_error.js","lib/internal/assert/calltracker.js","lib/internal/assert/utils.js","lib/internal/async_hooks.js","lib/internal/blob.js","lib/internal/blocklist.js","lib/internal/bootstrap/node.js","lib/internal/bootstrap/realm.js","lib/internal/bootstrap/shadow_realm.js","lib/internal/bootstrap/switches/does_not_own_process_state.js","lib/internal/bootstrap/switches/does_own_process_state.js","lib/internal/bootstrap/switches/is_main_thread.js","lib/internal/bootstrap/switches/is_not_main_thread.js","lib/internal/bootstrap/web/exposed-wildcard.js","lib/internal/bootstrap/web/exposed-window-or-worker.js","lib/internal/buffer.js","lib/internal/child_process.js","lib/internal/child_process/serialization.js","lib/internal/cli_table.js","lib/internal/cluster/child.js","lib/internal/cluster/primary.js","lib/internal/cluster/round_robin_handle.js","lib/internal/cluster/shared_handle.js","lib/internal/cluster/utils.js","lib/internal/cluster/worker.js","lib/internal/console/constructor.js","lib/internal/console/global.js","lib/internal/constants.js","lib/internal/crypto/aes.js","lib/internal/crypto/certificate.js","lib/internal/crypto/cfrg.js","lib/internal/crypto/cipher.js","lib/internal/crypto/diffiehellman.js","lib/internal/crypto/ec.js","lib/internal/crypto/hash.js","lib/internal/crypto/hashnames.js","lib/internal/crypto/hkdf.js","lib/internal/crypto/keygen.js","lib/internal/crypto/keys.js","lib/internal/crypto/mac.js","lib/internal/crypto/pbkdf2.js","lib/internal/crypto/random.js","lib/internal/crypto/rsa.js","lib/internal/crypto/scrypt.js","lib/internal/crypto/sig.js","lib/internal/crypto/util.js","lib/internal/crypto/webcrypto.js","lib/internal/crypto/webidl.js","lib/internal/crypto/x509.js","lib/internal/debugger/inspect.js","lib/internal/debugger/inspect_client.js","lib/internal/debugger/inspect_repl.js","lib/internal/dgram.js","lib/internal/dns/callback_resolver.js","lib/internal/dns/promises.js","lib/internal/dns/utils.js","lib/internal/encoding.js","lib/internal/error_serdes.js","lib/internal/errors.js","lib/internal/event_target.js","lib/internal/events/abort_listener.js","lib/internal/events/symbols.js","lib/internal/file.js","lib/internal/fixed_queue.js","lib/internal/freelist.js","lib/internal/freeze_intrinsics.js","lib/internal/fs/cp/cp-sync.js","lib/internal/fs/cp/cp.js","lib/internal/fs/dir.js","lib/internal/fs/promises.js","lib/internal/fs/read/context.js","lib/internal/fs/recursive_watch.js","lib/internal/fs/rimraf.js","lib/internal/fs/streams.js","lib/internal/fs/sync_write_stream.js","lib/internal/fs/utils.js","lib/internal/fs/watchers.js","lib/internal/heap_utils.js","lib/internal/histogram.js","lib/internal/http.js","lib/internal/http2/compat.js","lib/internal/http2/core.js","lib/internal/http2/util.js","lib/internal/inspector_async_hook.js","lib/internal/inspector_network_tracking.js","lib/internal/js_stream_socket.js","lib/internal/legacy/processbinding.js","lib/internal/linkedlist.js","lib/internal/main/check_syntax.js","lib/internal/main/embedding.js","lib/internal/main/eval_stdin.js","lib/internal/main/eval_string.js","lib/internal/main/inspect.js","lib/internal/main/mksnapshot.js","lib/internal/main/print_help.js","lib/internal/main/prof_process.js","lib/internal/main/repl.js","lib/internal/main/run_main_module.js","lib/internal/main/test_runner.js","lib/internal/main/watch_mode.js","lib/internal/main/worker_thread.js","lib/internal/mime.js","lib/internal/modules/cjs/loader.js","lib/internal/modules/esm/assert.js","lib/internal/modules/esm/create_dynamic_module.js","lib/internal/modules/esm/fetch_module.js","lib/internal/modules/esm/formats.js","lib/internal/modules/esm/get_format.js","lib/internal/modules/esm/hooks.js","lib/internal/modules/esm/initialize_import_meta.js","lib/internal/modules/esm/load.js","lib/internal/modules/esm/loader.js","lib/internal/modules/esm/module_job.js","lib/internal/modules/esm/module_map.js","lib/internal/modules/esm/package_config.js","lib/internal/modules/esm/resolve.js","lib/internal/modules/esm/shared_constants.js","lib/internal/modules/esm/translators.js","lib/internal/modules/esm/utils.js","lib/internal/modules/esm/worker.js","lib/internal/modules/helpers.js","lib/internal/modules/package_json_reader.js","lib/internal/modules/run_main.js","lib/internal/navigator.js","lib/internal/net.js","lib/internal/options.js","lib/internal/per_context/domexception.js","lib/internal/per_context/messageport.js","lib/internal/per_context/primordials.js","lib/internal/perf/event_loop_delay.js","lib/internal/perf/event_loop_utilization.js","lib/internal/perf/nodetiming.js","lib/internal/perf/observe.js","lib/internal/perf/performance.js","lib/internal/perf/performance_entry.js","lib/internal/perf/resource_timing.js","lib/internal/perf/timerify.js","lib/internal/perf/usertiming.js","lib/internal/perf/utils.js","lib/internal/policy/manifest.js","lib/internal/policy/sri.js","lib/internal/priority_queue.js","lib/internal/process/execution.js","lib/internal/process/per_thread.js","lib/internal/process/permission.js","lib/internal/process/policy.js","lib/internal/process/pre_execution.js","lib/internal/process/promises.js","lib/internal/process/report.js","lib/internal/process/signal.js","lib/internal/process/task_queues.js","lib/internal/process/warning.js","lib/internal/process/worker_thread_only.js","lib/internal/promise_hooks.js","lib/internal/querystring.js","lib/internal/readline/callbacks.js","lib/internal/readline/emitKeypressEvents.js","lib/internal/readline/interface.js","lib/internal/readline/promises.js","lib/internal/readline/utils.js","lib/internal/repl.js","lib/internal/repl/await.js","lib/internal/repl/history.js","lib/internal/repl/utils.js","lib/internal/socket_list.js","lib/internal/socketaddress.js","lib/internal/source_map/prepare_stack_trace.js","lib/internal/source_map/source_map.js","lib/internal/source_map/source_map_cache.js","lib/internal/stream_base_commons.js","lib/internal/streams/add-abort-signal.js","lib/internal/streams/compose.js","lib/internal/streams/destroy.js","lib/internal/streams/duplex.js","lib/internal/streams/duplexify.js","lib/internal/streams/duplexpair.js","lib/internal/streams/end-of-stream.js","lib/internal/streams/from.js","lib/internal/streams/lazy_transform.js","lib/internal/streams/legacy.js","lib/internal/streams/operators.js","lib/internal/streams/passthrough.js","lib/internal/streams/pipeline.js","lib/internal/streams/readable.js","lib/internal/streams/state.js","lib/internal/streams/transform.js","lib/internal/streams/utils.js","lib/internal/streams/writable.js","lib/internal/test/binding.js","lib/internal/test/transfer.js","lib/internal/test_runner/coverage.js","lib/internal/test_runner/harness.js","lib/internal/test_runner/mock/loader.js","lib/internal/test_runner/mock/mock.js","lib/internal/test_runner/mock/mock_timers.js","lib/internal/test_runner/reporter/dot.js","lib/internal/test_runner/reporter/junit.js","lib/internal/test_runner/reporter/lcov.js","lib/internal/test_runner/reporter/spec.js","lib/internal/test_runner/reporter/tap.js","lib/internal/test_runner/reporter/utils.js","lib/internal/test_runner/reporter/v8-serializer.js","lib/internal/test_runner/runner.js","lib/internal/test_runner/test.js","lib/internal/test_runner/tests_stream.js","lib/internal/test_runner/utils.js","lib/internal/timers.js","lib/internal/tls/secure-context.js","lib/internal/tls/secure-pair.js","lib/internal/trace_events_async_hooks.js","lib/internal/tty.js","lib/internal/url.js","lib/internal/util.js","lib/internal/util/colors.js","lib/internal/util/comparisons.js","lib/internal/util/debuglog.js","lib/internal/util/embedding.js","lib/internal/util/inspect.js","lib/internal/util/inspector.js","lib/internal/util/iterable_weak_map.js","lib/internal/util/parse_args/parse_args.js","lib/internal/util/parse_args/utils.js","lib/internal/util/types.js","lib/internal/v8/startup_snapshot.js","lib/internal/v8_prof_polyfill.js","lib/internal/v8_prof_processor.js","lib/internal/validators.js","lib/internal/vm.js","lib/internal/vm/module.js","lib/internal/wasm_web_api.js","lib/internal/watch_mode/files_watcher.js","lib/internal/watchdog.js","lib/internal/webidl.js","lib/internal/webstreams/adapters.js","lib/internal/webstreams/compression.js","lib/internal/webstreams/encoding.js","lib/internal/webstreams/queuingstrategies.js","lib/internal/webstreams/readablestream.js","lib/internal/webstreams/transfer.js","lib/internal/webstreams/transformstream.js","lib/internal/webstreams/util.js","lib/internal/webstreams/writablestream.js","lib/internal/worker.js","lib/internal/worker/io.js","lib/internal/worker/js_transferable.js","lib/module.js","lib/net.js","lib/os.js","lib/path.js","lib/path/posix.js","lib/path/win32.js","lib/perf_hooks.js","lib/process.js","lib/punycode.js","lib/querystring.js","lib/readline.js","lib/readline/promises.js","lib/repl.js","lib/sea.js","lib/stream.js","lib/stream/consumers.js","lib/stream/promises.js","lib/stream/web.js","lib/string_decoder.js","lib/sys.js","lib/test.js","lib/test/reporters.js","lib/timers.js","lib/timers/promises.js","lib/tls.js","lib/trace_events.js","lib/tty.js","lib/url.js","lib/util.js","lib/util/types.js","lib/v8.js","lib/vm.js","lib/wasi.js","lib/worker_threads.js","lib/zlib.js"],node_module_version:115,node_no_browser_globals:!1,node_prefix:"/",node_release_urlbase:"https://nodejs.org/download/release/",node_section_ordering_info:"",node_shared:!1,node_shared_ada:!1,node_shared_brotli:!1,node_shared_cares:!1,node_shared_http_parser:!1,node_shared_libuv:!1,node_shared_nghttp2:!1,node_shared_nghttp3:!1,node_shared_ngtcp2:!1,node_shared_openssl:!1,node_shared_simdjson:!1,node_shared_simdutf:!1,node_shared_uvwasi:!1,node_shared_zlib:!1,node_tag:"",node_target_type:"executable",node_use_bundled_v8:!0,node_use_node_code_cache:!0,node_use_node_snapshot:!0,node_use_openssl:!0,node_use_v8_platform:!0,node_with_ltcg:!1,node_without_node_options:!1,node_write_snapshot_as_array_literals:!1,openssl_is_fips:!1,openssl_quic:!0,ossfuzz:!1,shlib_suffix:"so.115",single_executable_application:!0,target_arch:"x64",ubsan:0,use_prefix_to_find_headers:!1,v8_enable_31bit_smis_on_64bit_arch:0,v8_enable_extensible_ro_snapshot:0,v8_enable_gdbjit:0,v8_enable_hugepage:0,v8_enable_i18n_support:1,v8_enable_inspector:1,v8_enable_javascript_promise_hooks:1,v8_enable_lite_mode:0,v8_enable_maglev:0,v8_enable_object_print:1,v8_enable_pointer_compression:0,v8_enable_sandbox:0,v8_enable_shared_ro_heap:1,v8_enable_short_builtin_calls:1,v8_enable_v8_checks:0,v8_enable_webassembly:1,v8_no_strict_aliasing:1,v8_optimized_debug:1,v8_promise_internal_field_count:1,v8_random_seed:0,v8_trace_maps:0,v8_use_siphash:1,want_separate_host_toolset:0}},allowedNodeEnvironmentFlags:{},features:{inspector:!0,debug:!1,uv:!0,ipv6:!0,tls_alpn:!0,tls_sni:!0,tls_ocsp:!0,tls:!0,cached_builtins:!0},sourceMapsEnabled:!1,stdout:{connecting:!1,_hadError:!1,_parent:null,_host:null,_closeAfterHandlingError:!1,_events:{},_readableState:{highWaterMark:16384,buffer:[],bufferIndex:0,length:0,pipes:[],awaitDrainWriters:null,readable:!1},_writableState:{highWaterMark:16384,length:0,corked:0,writelen:0,bufferedIndex:0,pendingcb:0},allowHalfOpen:!1,_eventsCount:1,_sockname:null,_pendingData:null,_pendingEncoding:"",server:null,_server:null,_type:"pipe",fd:1,_isStdio:!0},stdin:{connecting:!1,_hadError:!1,_parent:null,_host:null,_closeAfterHandlingError:!1,_events:{},_readableState:{highWaterMark:16384,buffer:[],bufferIndex:0,length:0,pipes:[],awaitDrainWriters:null},_writableState:{highWaterMark:16384,length:0,corked:0,writelen:0,bufferedIndex:0,pendingcb:0},allowHalfOpen:!1,_eventsCount:2,_sockname:null,_pendingData:null,_pendingEncoding:"",server:null,_server:null,fd:0},stderr:{connecting:!1,_hadError:!1,_parent:null,_host:null,_closeAfterHandlingError:!1,_events:{},_readableState:{highWaterMark:16384,buffer:[],bufferIndex:0,length:0,pipes:[],awaitDrainWriters:null,readable:!1},_writableState:{highWaterMark:16384,length:0,corked:0,writelen:0,bufferedIndex:0,pendingcb:0},allowHalfOpen:!1,_eventsCount:1,_sockname:null,_pendingData:null,_pendingEncoding:"",server:null,_server:null,_type:"pipe",fd:2,_isStdio:!0},env:{GITHUB_STATE:"/home/runner/work/_temp/_runner_file_commands/save_state_d53cc035-1b76-4af7-9fb5-24f8457de40c",STATS_TRP:"true",DEPLOYMENT_BASEPATH:"/opt/runner",DOTNET_NOLOGO:"1",USER:"runner",npm_config_user_agent:"npm/10.8.2 node/v20.18.3 linux x64 workspaces/false ci/github-actions",CI:"true",RUNNER_ENVIRONMENT:"github-hosted",GITHUB_ENV:"/home/runner/work/_temp/_runner_file_commands/set_env_d53cc035-1b76-4af7-9fb5-24f8457de40c",PIPX_HOME:"/opt/pipx",npm_node_execpath:"/opt/hostedtoolcache/node/20.18.3/x64/bin/node",JAVA_HOME_8_X64:"/usr/lib/jvm/temurin-8-jdk-amd64",SHLVL:"1",npm_config_noproxy:"",HOME:"/home/runner",RUNNER_TEMP:"/home/runner/work/_temp",GITHUB_EVENT_PATH:"/home/runner/work/_temp/_github_workflow/event.json",npm_package_json:"/home/runner/work/md/md/package.json",JAVA_HOME_11_X64:"/usr/lib/jvm/temurin-11-jdk-amd64",PIPX_BIN_DIR:"/opt/pipx_bin",GITHUB_REPOSITORY_OWNER:"doocs",GRADLE_HOME:"/usr/share/gradle-8.12.1",ANDROID_NDK_LATEST_HOME:"/usr/local/lib/android/sdk/ndk/28.0.13004108",JAVA_HOME_21_X64:"/usr/lib/jvm/temurin-21-jdk-amd64",STATS_RDCL:"true",GITHUB_RETENTION_DAYS:"90",GITHUB_REPOSITORY_OWNER_ID:"43716716",POWERSHELL_DISTRIBUTION_CHANNEL:"GitHub-Actions-ubuntu24",AZURE_EXTENSION_DIR:"/opt/az/azcliextensions",GITHUB_HEAD_REF:"",npm_config_userconfig:"/home/runner/.npmrc",npm_config_local_prefix:"/home/runner/work/md/md",SYSTEMD_EXEC_PID:"835",GITHUB_GRAPHQL_URL:"https://api.github.com/graphql",COLOR:"0",NVM_DIR:"/home/runner/.nvm",DOTNET_SKIP_FIRST_TIME_EXPERIENCE:"1",GOROOT_1_21_X64:"/opt/hostedtoolcache/go/1.21.13/x64",JAVA_HOME_17_X64:"/usr/lib/jvm/temurin-17-jdk-amd64",ImageVersion:"20250223.1.0",RUNNER_OS:"Linux",GITHUB_API_URL:"https://api.github.com",GOROOT_1_22_X64:"/opt/hostedtoolcache/go/1.22.12/x64",SWIFT_PATH:"/usr/share/swift/usr/bin",RUNNER_USER:"runner",STATS_V3PS:"true",CHROMEWEBDRIVER:"/usr/local/share/chromedriver-linux64",GOROOT_1_23_X64:"/opt/hostedtoolcache/go/1.23.6/x64",JOURNAL_STREAM:"8:5890",GITHUB_WORKFLOW:"Build and Deploy",_:"/opt/hostedtoolcache/node/20.18.3/x64/bin/npm",npm_config_prefix:"/opt/hostedtoolcache/node/20.18.3/x64",npm_config_npm_version:"10.8.2",MEMORY_PRESSURE_WATCH:"/sys/fs/cgroup/system.slice/runner-provisioner.service/memory.pressure",ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE:"/opt/actionarchivecache",STATS_D:"true",GITHUB_RUN_ID:"13625656549",STATS_VMFE:"true",npm_config_cache:"/home/runner/.npm",GITHUB_REF_TYPE:"branch",BOOTSTRAP_HASKELL_NONINTERACTIVE:"1",GITHUB_WORKFLOW_SHA:"28ede70a704c676eed43a63c290863c0eb2e51aa",GITHUB_BASE_REF:"",ImageOS:"ubuntu24",GITHUB_WORKFLOW_REF:"doocs/md/.github/workflows/build.yml@refs/heads/main",PERFLOG_LOCATION_SETTING:"RUNNER_PERFLOG",GITHUB_ACTION_REPOSITORY:"",npm_config_node_gyp:"/opt/hostedtoolcache/node/20.18.3/x64/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",PATH:"/home/runner/work/md/md/node_modules/.bin:/home/runner/work/md/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/20.18.3/x64/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/home/runner/work/md/md/node_modules/.bin:/home/runner/work/md/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/20.18.3/x64/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/opt/hostedtoolcache/node/20.18.3/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin",ANT_HOME:"/usr/share/ant",DOTNET_MULTILEVEL_LOOKUP:"0",RUNNER_TRACKING_ID:"github_4ead6fd7-fa08-4c5d-a36f-08f8752a0ffe",INVOCATION_ID:"015617c2a5044170892be94fa638d8ab",RUNNER_TOOL_CACHE:"/opt/hostedtoolcache",NODE:"/opt/hostedtoolcache/node/20.18.3/x64/bin/node",npm_package_name:"md",GITHUB_ACTION:"__run_2",GITHUB_RUN_NUMBER:"502",GITHUB_TRIGGERING_ACTOR:"yanglbme",RUNNER_ARCH:"X64",XDG_RUNTIME_DIR:"/run/user/1001",AGENT_TOOLSDIRECTORY:"/opt/hostedtoolcache",LANG:"C.UTF-8",VCPKG_INSTALLATION_ROOT:"/usr/local/share/vcpkg",CONDA:"/usr/share/miniconda",RUNNER_NAME:"GitHub Actions 14",XDG_CONFIG_HOME:"/home/runner/.config",STATS_VMD:"true",GITHUB_REF_NAME:"main",GITHUB_REPOSITORY:"doocs/md",STATS_D_D:"true",npm_lifecycle_script:"vite build",STATS_UE:"true",ANDROID_NDK_ROOT:"/usr/local/lib/android/sdk/ndk/27.2.12479018",GITHUB_ACTION_REF:"",DEBIAN_FRONTEND:"noninteractive",GITHUB_REPOSITORY_ID:"218952803",GITHUB_ACTIONS:"true",STATS_PIP:"false",npm_package_version:"1.6.0",npm_lifecycle_event:"build:only",GITHUB_REF_PROTECTED:"true",GITHUB_WORKSPACE:"/home/runner/work/md/md",ACCEPT_EULA:"Y",GITHUB_JOB:"build-and-deploy",RUNNER_PERFLOG:"/home/runner/perflog",GITHUB_SHA:"28ede70a704c676eed43a63c290863c0eb2e51aa",GITHUB_RUN_ATTEMPT:"1",STATS_D_TC:"true",GITHUB_REF:"refs/heads/main",GITHUB_ACTOR:"yanglbme",ANDROID_SDK_ROOT:"/usr/local/lib/android/sdk",npm_config_globalconfig:"/opt/hostedtoolcache/node/20.18.3/x64/etc/npmrc",npm_config_init_module:"/home/runner/.npm-init.js",GITHUB_PATH:"/home/runner/work/_temp/_runner_file_commands/add_path_d53cc035-1b76-4af7-9fb5-24f8457de40c",JAVA_HOME:"/usr/lib/jvm/temurin-17-jdk-amd64",PWD:"/home/runner/work/md/md",GITHUB_ACTOR_ID:"21008209",RUNNER_WORKSPACE:"/home/runner/work/md",npm_execpath:"/opt/hostedtoolcache/node/20.18.3/x64/lib/node_modules/npm/bin/npm-cli.js",HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS:"3650",GITHUB_EVENT_NAME:"push",HOMEBREW_NO_AUTO_UPDATE:"1",ANDROID_HOME:"/usr/local/lib/android/sdk",GITHUB_SERVER_URL:"https://github.com",GECKOWEBDRIVER:"/usr/local/share/gecko_driver",GHCUP_INSTALL_BASE_PREFIX:"/usr/local",GITHUB_OUTPUT:"/home/runner/work/_temp/_runner_file_commands/set_output_d53cc035-1b76-4af7-9fb5-24f8457de40c",npm_config_global_prefix:"/opt/hostedtoolcache/node/20.18.3/x64",EDGEWEBDRIVER:"/usr/local/share/edge_driver",STATS_EXT:"true",npm_command:"run-script",ANDROID_NDK:"/usr/local/lib/android/sdk/ndk/27.2.12479018",SGX_AESM_ADDR:"1",CHROME_BIN:"/usr/bin/google-chrome",SELENIUM_JAR_PATH:"/usr/share/java/selenium-server.jar",MEMORY_PRESSURE_WRITE:"c29tZSAyMDAwMDAgMjAwMDAwMAA=",STATS_EXTP:"https://provjobdprod.z13.web.core.windows.net/settings/provjobdsettings-latest/provjobd.data",ANDROID_NDK_HOME:"/usr/local/lib/android/sdk/ndk/27.2.12479018",GITHUB_STEP_SUMMARY:"/home/runner/work/_temp/_runner_file_commands/step_summary_d53cc035-1b76-4af7-9fb5-24f8457de40c",INIT_CWD:"/home/runner/work/md/md",EDITOR:"vi",NODE_ENV:"production",LAUNCH_EDITOR:"code"},title:"node",argv:["/opt/hostedtoolcache/node/20.18.3/x64/bin/node","/home/runner/work/md/md/node_modules/.bin/vite","build"],execArgv:[],pid:2138,ppid:2137,execPath:"/opt/hostedtoolcache/node/20.18.3/x64/bin/node",debugPort:9229,argv0:"node",_preload_modules:[],report:{directory:"",filename:"",compact:!1,excludeNetwork:!1,signal:"SIGUSR2",reportOnFatalError:!1,reportOnSignal:!1,reportOnUncaughtException:!1}};_stream_writable=pf;function qa(Df){var Af=this;this.next=null,this.entry=null,this.finish=function(){vh(Af,Df)}}var rd;pf.WritableState=df;var sd={deprecate:browser$1},pd=streamBrowser,fd=buffer.Buffer,hd=(typeof commonjsGlobal<"u"?commonjsGlobal:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function md(Df){return fd.from(Df)}function gd(Df){return fd.isBuffer(Df)||Df instanceof hd}var yd=destroy_1,vd=state,Nd=vd.getHighWaterMark,Md=errorsBrowser.codes,Ld=Md.ERR_INVALID_ARG_TYPE,Fd=Md.ERR_METHOD_NOT_IMPLEMENTED,Hd=Md.ERR_MULTIPLE_CALLBACK,Vd=Md.ERR_STREAM_CANNOT_PIPE,Gd=Md.ERR_STREAM_DESTROYED,Ud=Md.ERR_STREAM_NULL_VALUES,qd=Md.ERR_STREAM_WRITE_AFTER_END,Wd=Md.ERR_UNKNOWN_ENCODING,Kd=yd.errorOrDestroy;inherits_browserExports(pf,pd);function Xd(){}function df(Df,Af,_h){rd=rd||require_stream_duplex(),Df=Df||{},typeof _h!="boolean"&&(_h=Af instanceof rd),this.objectMode=!!Df.objectMode,_h&&(this.objectMode=this.objectMode||!!Df.writableObjectMode),this.highWaterMark=Nd(this,Df,"writableHighWaterMark",_h),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var Nh=Df.decodeStrings===!1;this.decodeStrings=!Nh,this.defaultEncoding=Df.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(dm){Pf(Af,dm)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=Df.emitClose!==!1,this.autoDestroy=!!Df.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new qa(this)}df.prototype.getBuffer=function(){for(var Af=this.bufferedRequest,_h=[];Af;)_h.push(Af),Af=Af.next;return _h},function(){try{Object.defineProperty(df.prototype,"buffer",{get:sd.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var Ef;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(Ef=Function.prototype[Symbol.hasInstance],Object.defineProperty(pf,Symbol.hasInstance,{value:function(Af){return Ef.call(this,Af)?!0:this!==pf?!1:Af&&Af._writableState instanceof df}})):Ef=function(Af){return Af instanceof this};function pf(Df){rd=rd||require_stream_duplex();var Af=this instanceof rd;if(!Af&&!Ef.call(pf,this))return new pf(Df);this._writableState=new df(Df,this,Af),this.writable=!0,Df&&(typeof Df.write=="function"&&(this._write=Df.write),typeof Df.writev=="function"&&(this._writev=Df.writev),typeof Df.destroy=="function"&&(this._destroy=Df.destroy),typeof Df.final=="function"&&(this._final=Df.final)),pd.call(this)}pf.prototype.pipe=function(){Kd(this,new Vd)};function mf(Df,Af){var _h=new qd;Kd(Df,_h),Ra.nextTick(Af,_h)}function _f(Df,Af,_h,Nh){var dm;return _h===null?dm=new Ud:typeof _h!="string"&&!Af.objectMode&&(dm=new Ld("chunk",["string","Buffer"],_h)),dm?(Kd(Df,dm),Ra.nextTick(Nh,dm),!1):!0}pf.prototype.write=function(Df,Af,_h){var Nh=this._writableState,dm=!1,Jf=!Nh.objectMode&&gd(Df);return Jf&&!fd.isBuffer(Df)&&(Df=md(Df)),typeof Af=="function"&&(_h=Af,Af=null),Jf?Af="buffer":Af||(Af=Nh.defaultEncoding),typeof _h!="function"&&(_h=Xd),Nh.ending?mf(this,_h):(Jf||_f(this,Nh,Df,_h))&&(Nh.pendingcb++,dm=Cf(this,Nh,Jf,Df,Af,_h)),dm},pf.prototype.cork=function(){this._writableState.corked++},pf.prototype.uncork=function(){var Df=this._writableState;Df.corked&&(Df.corked--,!Df.writing&&!Df.corked&&!Df.bufferProcessing&&Df.bufferedRequest&&Eh(this,Df))},pf.prototype.setDefaultEncoding=function(Af){if(typeof Af=="string"&&(Af=Af.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((Af+"").toLowerCase())>-1))throw new Wd(Af);return this._writableState.defaultEncoding=Af,this},Object.defineProperty(pf.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function xf(Df,Af,_h){return!Df.objectMode&&Df.decodeStrings!==!1&&typeof Af=="string"&&(Af=fd.from(Af,_h)),Af}Object.defineProperty(pf.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function Cf(Df,Af,_h,Nh,dm,Jf){if(!_h){var oh=xf(Af,Nh,dm);Nh!==oh&&(_h=!0,dm="buffer",Nh=oh)}var Xh=Af.objectMode?1:Nh.length;Af.length+=Xh;var Tm=Af.length */var hasRequiredSafeBuffer;function requireSafeBuffer(){return hasRequiredSafeBuffer||(hasRequiredSafeBuffer=1,function(Ra,qa){var rd=buffer,sd=rd.Buffer;function pd(hd,md){for(var gd in hd)md[gd]=hd[gd]}sd.from&&sd.alloc&&sd.allocUnsafe&&sd.allocUnsafeSlow?Ra.exports=rd:(pd(rd,qa),qa.Buffer=fd);function fd(hd,md,gd){return sd(hd,md,gd)}fd.prototype=Object.create(sd.prototype),pd(sd,fd),fd.from=function(hd,md,gd){if(typeof hd=="number")throw new TypeError("Argument must not be a number");return sd(hd,md,gd)},fd.alloc=function(hd,md,gd){if(typeof hd!="number")throw new TypeError("Argument must be a number");var yd=sd(hd);return md!==void 0?typeof gd=="string"?yd.fill(md,gd):yd.fill(md):yd.fill(0),yd},fd.allocUnsafe=function(hd){if(typeof hd!="number")throw new TypeError("Argument must be a number");return sd(hd)},fd.allocUnsafeSlow=function(hd){if(typeof hd!="number")throw new TypeError("Argument must be a number");return rd.SlowBuffer(hd)}}(safeBuffer,safeBuffer.exports)),safeBuffer.exports}var hasRequiredString_decoder;function requireString_decoder(){if(hasRequiredString_decoder)return string_decoder;hasRequiredString_decoder=1;var Ra=requireSafeBuffer().Buffer,qa=Ra.isEncoding||function(Gd){switch(Gd=""+Gd,Gd&&Gd.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function rd(Gd){if(!Gd)return"utf8";for(var Ud;;)switch(Gd){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return Gd;default:if(Ud)return;Gd=(""+Gd).toLowerCase(),Ud=!0}}function sd(Gd){var Ud=rd(Gd);if(typeof Ud!="string"&&(Ra.isEncoding===qa||!qa(Gd)))throw new Error("Unknown encoding: "+Gd);return Ud||Gd}string_decoder.StringDecoder=pd;function pd(Gd){this.encoding=sd(Gd);var Ud;switch(this.encoding){case"utf16le":this.text=Nd,this.end=Md,Ud=4;break;case"utf8":this.fillLast=gd,Ud=4;break;case"base64":this.text=Ld,this.end=Fd,Ud=3;break;default:this.write=Hd,this.end=Vd;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=Ra.allocUnsafe(Ud)}pd.prototype.write=function(Gd){if(Gd.length===0)return"";var Ud,qd;if(this.lastNeed){if(Ud=this.fillLast(Gd),Ud===void 0)return"";qd=this.lastNeed,this.lastNeed=0}else qd=0;return qd>5===6?2:Gd>>4===14?3:Gd>>3===30?4:Gd>>6===2?-1:-2}function hd(Gd,Ud,qd){var Wd=Ud.length-1;if(Wd=0?(Kd>0&&(Gd.lastNeed=Kd-1),Kd):--Wd=0?(Kd>0&&(Gd.lastNeed=Kd-2),Kd):--Wd=0?(Kd>0&&(Kd===2?Kd=0:Gd.lastNeed=Kd-3),Kd):0))}function md(Gd,Ud,qd){if((Ud[0]&192)!==128)return Gd.lastNeed=0,"�";if(Gd.lastNeed>1&&Ud.length>1){if((Ud[1]&192)!==128)return Gd.lastNeed=1,"�";if(Gd.lastNeed>2&&Ud.length>2&&(Ud[2]&192)!==128)return Gd.lastNeed=2,"�"}}function gd(Gd){var Ud=this.lastTotal-this.lastNeed,qd=md(this,Gd);if(qd!==void 0)return qd;if(this.lastNeed<=Gd.length)return Gd.copy(this.lastChar,Ud,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);Gd.copy(this.lastChar,Ud,0,Gd.length),this.lastNeed-=Gd.length}function yd(Gd,Ud){var qd=hd(this,Gd,Ud);if(!this.lastNeed)return Gd.toString("utf8",Ud);this.lastTotal=qd;var Wd=Gd.length-(qd-this.lastNeed);return Gd.copy(this.lastChar,0,Wd),Gd.toString("utf8",Ud,Wd)}function vd(Gd){var Ud=Gd&&Gd.length?this.write(Gd):"";return this.lastNeed?Ud+"�":Ud}function Nd(Gd,Ud){if((Gd.length-Ud)%2===0){var qd=Gd.toString("utf16le",Ud);if(qd){var Wd=qd.charCodeAt(qd.length-1);if(Wd>=55296&&Wd<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=Gd[Gd.length-2],this.lastChar[1]=Gd[Gd.length-1],qd.slice(0,-1)}return qd}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=Gd[Gd.length-1],Gd.toString("utf16le",Ud,Gd.length-1)}function Md(Gd){var Ud=Gd&&Gd.length?this.write(Gd):"";if(this.lastNeed){var qd=this.lastTotal-this.lastNeed;return Ud+this.lastChar.toString("utf16le",0,qd)}return Ud}function Ld(Gd,Ud){var qd=(Gd.length-Ud)%3;return qd===0?Gd.toString("base64",Ud):(this.lastNeed=3-qd,this.lastTotal=3,qd===1?this.lastChar[0]=Gd[Gd.length-1]:(this.lastChar[0]=Gd[Gd.length-2],this.lastChar[1]=Gd[Gd.length-1]),Gd.toString("base64",Ud,Gd.length-qd))}function Fd(Gd){var Ud=Gd&&Gd.length?this.write(Gd):"";return this.lastNeed?Ud+this.lastChar.toString("base64",0,3-this.lastNeed):Ud}function Hd(Gd){return Gd.toString(this.encoding)}function Vd(Gd){return Gd&&Gd.length?this.write(Gd):""}return string_decoder}var ERR_STREAM_PREMATURE_CLOSE=errorsBrowser.codes.ERR_STREAM_PREMATURE_CLOSE;function once$2(Ra){var qa=!1;return function(){if(!qa){qa=!0;for(var rd=arguments.length,sd=new Array(rd),pd=0;pd0)if(typeof oh!="string"&&!Zf.objectMode&&Object.getPrototypeOf(oh)!==pd.prototype&&(oh=hd(oh)),Tm)Zf.endEmitted?Xd(Jf,new Ud):xf(Jf,Zf,oh,!0);else if(Zf.ended)Xd(Jf,new Vd);else{if(Zf.destroyed)return!1;Zf.reading=!1,Zf.decoder&&!Xh?(oh=Zf.decoder.write(oh),Zf.objectMode||oh.length!==0?xf(Jf,Zf,oh,!1):Eh(Jf,Zf)):xf(Jf,Zf,oh,!1)}else Tm||(Zf.reading=!1,Eh(Jf,Zf))}return!Zf.ended&&(Zf.length=If?Jf=If:(Jf--,Jf|=Jf>>>1,Jf|=Jf>>>2,Jf|=Jf>>>4,Jf|=Jf>>>8,Jf|=Jf>>>16,Jf++),Jf}function wf(Jf,oh){return Jf<=0||oh.length===0&&oh.ended?0:oh.objectMode?1:Jf!==Jf?oh.flowing&&oh.length?oh.buffer.head.data.length:oh.length:(Jf>oh.highWaterMark&&(oh.highWaterMark=Sf(Jf)),Jf<=oh.length?Jf:oh.ended?oh.length:(oh.needReadable=!0,0))}mf.prototype.read=function(Jf){yd("read",Jf),Jf=parseInt(Jf,10);var oh=this._readableState,Xh=Jf;if(Jf!==0&&(oh.emittedReadable=!1),Jf===0&&oh.needReadable&&((oh.highWaterMark!==0?oh.length>=oh.highWaterMark:oh.length>0)||oh.ended))return yd("read: emitReadable",oh.length,oh.ended),oh.length===0&&oh.ended?_h(this):lh(this),null;if(Jf=wf(Jf,oh),Jf===0&&oh.ended)return oh.length===0&&_h(this),null;var Tm=oh.needReadable;yd("need readable",Tm),(oh.length===0||oh.length-Jf0?kh=Af(Jf,oh):kh=null,kh===null?(oh.needReadable=oh.length<=oh.highWaterMark,Jf=0):(oh.length-=Jf,oh.awaitDrain=0),oh.length===0&&(oh.ended||(oh.needReadable=!0),Xh!==Jf&&oh.ended&&_h(this)),kh!==null&&this.emit("data",kh),kh};function Pf(Jf,oh){if(yd("onEofChunk"),!oh.ended){if(oh.decoder){var Xh=oh.decoder.end();Xh&&Xh.length&&(oh.buffer.push(Xh),oh.length+=oh.objectMode?1:Xh.length)}oh.ended=!0,oh.sync?lh(Jf):(oh.needReadable=!1,oh.emittedReadable||(oh.emittedReadable=!0,xh(Jf)))}}function lh(Jf){var oh=Jf._readableState;yd("emitReadable",oh.needReadable,oh.emittedReadable),oh.needReadable=!1,oh.emittedReadable||(yd("emitReadable",oh.flowing),oh.emittedReadable=!0,Ra.nextTick(xh,Jf))}function xh(Jf){var oh=Jf._readableState;yd("emitReadable_",oh.destroyed,oh.length,oh.ended),!oh.destroyed&&(oh.length||oh.ended)&&(Jf.emit("readable"),oh.emittedReadable=!1),oh.needReadable=!oh.flowing&&!oh.ended&&oh.length<=oh.highWaterMark,Df(Jf)}function Eh(Jf,oh){oh.readingMore||(oh.readingMore=!0,Ra.nextTick(Mh,Jf,oh))}function Mh(Jf,oh){for(;!oh.reading&&!oh.ended&&(oh.length1&&dm(Tm.pipes,Jf)!==-1)&&!fm&&(yd("false write response, pause",Tm.awaitDrain),Tm.awaitDrain++),Xh.pause())}function Rm(rg){yd("onerror",rg),Ym(),Jf.removeListener("error",Rm),rd(Jf,"error")===0&&Xd(Jf,rg)}Ef(Jf,"error",Rm);function tg(){Jf.removeListener("finish",Fm),Ym()}Jf.once("close",tg);function Fm(){yd("onfinish"),Jf.removeListener("close",tg),Ym()}Jf.once("finish",Fm);function Ym(){yd("unpipe"),Xh.unpipe(Jf)}return Jf.emit("pipe",Xh),Tm.flowing||(yd("pipe resume"),Xh.resume()),Jf};function dh(Jf){return function(){var Xh=Jf._readableState;yd("pipeOnDrain",Xh.awaitDrain),Xh.awaitDrain&&Xh.awaitDrain--,Xh.awaitDrain===0&&rd(Jf,"data")&&(Xh.flowing=!0,Df(Jf))}}mf.prototype.unpipe=function(Jf){var oh=this._readableState,Xh={hasUnpiped:!1};if(oh.pipesCount===0)return this;if(oh.pipesCount===1)return Jf&&Jf!==oh.pipes?this:(Jf||(Jf=oh.pipes),oh.pipes=null,oh.pipesCount=0,oh.flowing=!1,Jf&&Jf.emit("unpipe",this,Xh),this);if(!Jf){var Tm=oh.pipes,kh=oh.pipesCount;oh.pipes=null,oh.pipesCount=0,oh.flowing=!1;for(var Zf=0;Zf0,Tm.flowing!==!1&&this.resume()):Jf==="readable"&&!Tm.endEmitted&&!Tm.readableListening&&(Tm.readableListening=Tm.needReadable=!0,Tm.flowing=!1,Tm.emittedReadable=!1,yd("on readable",Tm.length,Tm.reading),Tm.length?lh(this):Tm.reading||Ra.nextTick(fh,this)),Xh},mf.prototype.addListener=mf.prototype.on,mf.prototype.removeListener=function(Jf,oh){var Xh=sd.prototype.removeListener.call(this,Jf,oh);return Jf==="readable"&&Ra.nextTick(eh,this),Xh},mf.prototype.removeAllListeners=function(Jf){var oh=sd.prototype.removeAllListeners.apply(this,arguments);return(Jf==="readable"||Jf===void 0)&&Ra.nextTick(eh,this),oh};function eh(Jf){var oh=Jf._readableState;oh.readableListening=Jf.listenerCount("readable")>0,oh.resumeScheduled&&!oh.paused?oh.flowing=!0:Jf.listenerCount("data")>0&&Jf.resume()}function fh(Jf){yd("readable nexttick read 0"),Jf.read(0)}mf.prototype.resume=function(){var Jf=this._readableState;return Jf.flowing||(yd("resume"),Jf.flowing=!Jf.readableListening,Sh(this,Jf)),Jf.paused=!1,this};function Sh(Jf,oh){oh.resumeScheduled||(oh.resumeScheduled=!0,Ra.nextTick(vh,Jf,oh))}function vh(Jf,oh){yd("resume",oh.reading),oh.reading||Jf.read(0),oh.resumeScheduled=!1,Jf.emit("resume"),Df(Jf),oh.flowing&&!oh.reading&&Jf.read(0)}mf.prototype.pause=function(){return yd("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(yd("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function Df(Jf){var oh=Jf._readableState;for(yd("flow",oh.flowing);oh.flowing&&Jf.read()!==null;);}mf.prototype.wrap=function(Jf){var oh=this,Xh=this._readableState,Tm=!1;Jf.on("end",function(){if(yd("wrapped end"),Xh.decoder&&!Xh.ended){var th=Xh.decoder.end();th&&th.length&&oh.push(th)}oh.push(null)}),Jf.on("data",function(th){if(yd("wrapped data"),Xh.decoder&&(th=Xh.decoder.write(th)),!(Xh.objectMode&&th==null)&&!(!Xh.objectMode&&(!th||!th.length))){var $h=oh.push(th);$h||(Tm=!0,Jf.pause())}});for(var kh in Jf)this[kh]===void 0&&typeof Jf[kh]=="function"&&(this[kh]=function($h){return function(){return Jf[$h].apply(Jf,arguments)}}(kh));for(var Zf=0;Zf=oh.length?(oh.decoder?Xh=oh.buffer.join(""):oh.buffer.length===1?Xh=oh.buffer.first():Xh=oh.buffer.concat(oh.length),oh.buffer.clear()):Xh=oh.buffer.consume(Jf,oh.decoder),Xh}function _h(Jf){var oh=Jf._readableState;yd("endReadable",oh.endEmitted),oh.endEmitted||(oh.ended=!0,Ra.nextTick(Nh,oh,Jf))}function Nh(Jf,oh){if(yd("endReadableNT",Jf.endEmitted,Jf.length),!Jf.endEmitted&&Jf.length===0&&(Jf.endEmitted=!0,oh.readable=!1,oh.emit("end"),Jf.autoDestroy)){var Xh=oh._writableState;(!Xh||Xh.autoDestroy&&Xh.finished)&&oh.destroy()}}typeof Symbol=="function"&&(mf.from=function(Jf,oh){return Kd===void 0&&(Kd=requireFromBrowser()),Kd(mf,Jf,oh)});function dm(Jf,oh){for(var Xh=0,Tm=Jf.length;Xh0;return destroyer(hd,gd,yd,function(vd){pd||(pd=vd),vd&&fd.forEach(call),!gd&&(fd.forEach(call),sd(pd))})});return qa.reduce(pipe)}var pipeline_1=pipeline$1,streamBrowserify=Stream$1,EE=eventsExports.EventEmitter,inherits$2=inherits_browserExports;inherits$2(Stream$1,EE);Stream$1.Readable=require_stream_readable();Stream$1.Writable=require_stream_writable();Stream$1.Duplex=require_stream_duplex();Stream$1.Transform=_stream_transform;Stream$1.PassThrough=_stream_passthrough;Stream$1.finished=endOfStream;Stream$1.pipeline=pipeline_1;Stream$1.Stream=Stream$1;function Stream$1(){EE.call(this)}Stream$1.prototype.pipe=function(Ra,qa){var rd=this;function sd(vd){Ra.writable&&Ra.write(vd)===!1&&rd.pause&&rd.pause()}rd.on("data",sd);function pd(){rd.readable&&rd.resume&&rd.resume()}Ra.on("drain",pd),!Ra._isStdio&&(!qa||qa.end!==!1)&&(rd.on("end",hd),rd.on("close",md));var fd=!1;function hd(){fd||(fd=!0,Ra.end())}function md(){fd||(fd=!0,typeof Ra.destroy=="function"&&Ra.destroy())}function gd(vd){if(yd(),EE.listenerCount(this,"error")===0)throw vd}rd.on("error",gd),Ra.on("error",gd);function yd(){rd.removeListener("data",sd),Ra.removeListener("drain",pd),rd.removeListener("end",hd),rd.removeListener("close",md),rd.removeListener("error",gd),Ra.removeListener("error",gd),rd.removeListener("end",yd),rd.removeListener("close",yd),Ra.removeListener("close",yd)}return rd.on("end",yd),rd.on("close",yd),Ra.on("close",yd),Ra.emit("pipe",rd),Ra};/*! * reading-time * Copyright (c) Nicolas Gryman * MIT Licensed @@ -1043,27 +1043,27 @@ ${Ra.themeCSS}`),Ra.fontFamily!==void 0&&(rd+=` `},tablecell(Hd){const Vd=this.parser.parseInline(Hd.tokens);return gd("td",Vd)},hr(Hd){return gd("hr","")}};return marked$1.use({renderer:Fd}),{buildAddition,buildFootnotes:Ld,setOptions:Nd,reset:vd,parseFrontMatterAndContent,buildReadingTime:Md,createContainer(Hd){return gd("container",Hd,"section")}}}var codemirror={exports:{}},hasRequiredCodemirror;function requireCodemirror(){return hasRequiredCodemirror||(hasRequiredCodemirror=1,function(Ra,qa){(function(rd,sd){Ra.exports=sd()})(commonjsGlobal,function(){var rd=navigator.userAgent,sd=navigator.platform,pd=/gecko\/\d/i.test(rd),fd=/MSIE \d/.test(rd),hd=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(rd),md=/Edge\/(\d+)/.exec(rd),gd=fd||hd||md,yd=gd&&(fd?document.documentMode||6:+(md||hd)[1]),vd=!md&&/WebKit\//.test(rd),Nd=vd&&/Qt\/\d+\.\d+/.test(rd),Md=!md&&/Chrome\/(\d+)/.exec(rd),Ld=Md&&+Md[1],Fd=/Opera\//.test(rd),Hd=/Apple Computer/.test(navigator.vendor),Vd=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(rd),Gd=/PhantomJS/.test(rd),Ud=Hd&&(/Mobile\/\w+/.test(rd)||navigator.maxTouchPoints>2),qd=/Android/.test(rd),Wd=Ud||qd||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(rd),Kd=Ud||/Mac/.test(sd),Xd=/\bCrOS\b/.test(rd),df=/win/i.test(sd),Ef=Fd&&rd.match(/Version\/(\d*\.\d*)/);Ef&&(Ef=Number(Ef[1])),Ef&&Ef>=15&&(Fd=!1,vd=!0);var pf=Kd&&(Nd||Fd&&(Ef==null||Ef<12.11)),mf=pd||gd&&yd>=9;function _f(jd){return new RegExp("(^|\\s)"+jd+"(?:$|\\s)\\s*")}var xf=function(jd,Yd){var gf=jd.className,hf=_f(Yd).exec(gf);if(hf){var vf=gf.slice(hf.index+hf[0].length);jd.className=gf.slice(0,hf.index)+(vf?hf[1]+vf:"")}};function Cf(jd){for(var Yd=jd.childNodes.length;Yd>0;--Yd)jd.removeChild(jd.firstChild);return jd}function If(jd,Yd){return Cf(jd).appendChild(Yd)}function Sf(jd,Yd,gf,hf){var vf=document.createElement(jd);if(gf&&(vf.className=gf),hf&&(vf.style.cssText=hf),typeof Yd=="string")vf.appendChild(document.createTextNode(Yd));else if(Yd)for(var $f=0;$f=Yd)return ph+(Yd-$f);ph+=Ah-$f,ph+=gf-ph%gf,$f=Ah+1}}var Nh=function(){this.id=null,this.f=null,this.time=0,this.handler=Df(this.onTimeout,this)};Nh.prototype.onTimeout=function(jd){jd.id=0,jd.time<=+new Date?jd.f():setTimeout(jd.handler,jd.time-+new Date)},Nh.prototype.set=function(jd,Yd){this.f=Yd;var gf=+new Date+jd;(!this.id||gf=Yd)return hf+Math.min(ph,Yd-vf);if(vf+=$f-hf,vf+=gf-vf%gf,hf=$f+1,vf>=Yd)return hf}}var th=[""];function $h(jd){for(;th.length<=jd;)th.push(wh(th)+" ");return th[jd]}function wh(jd){return jd[jd.length-1]}function fm(jd,Yd){for(var gf=[],hf=0;hf"€"&&(jd.toUpperCase()!=jd.toLowerCase()||tg.test(jd))}function Ym(jd,Yd){return Yd?Yd.source.indexOf("\\w")>-1&&Fm(jd)?!0:Yd.test(jd):Fm(jd)}function rg(jd){for(var Yd in jd)if(jd.hasOwnProperty(Yd)&&jd[Yd])return!1;return!0}var Eg=/[\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 Fh(jd){return jd.charCodeAt(0)>=768&&Eg.test(jd)}function kf(jd,Yd,gf){for(;(gf<0?Yd>0:Ydgf?-1:1;;){if(Yd==gf)return Yd;var vf=(Yd+gf)/2,$f=hf<0?Math.ceil(vf):Math.floor(vf);if($f==Yd)return jd($f)?Yd:gf;jd($f)?gf=$f:Yd=$f+hf}}function Dh(jd,Yd,gf,hf){if(!jd)return hf(Yd,gf,"ltr",0);for(var vf=!1,$f=0;$fYd||Yd==gf&&ph.to==Yd)&&(hf(Math.max(ph.from,Yd),Math.min(ph.to,gf),ph.level==1?"rtl":"ltr",$f),vf=!0)}vf||hf(Yd,gf,"ltr")}var Vh=null;function Sm(jd,Yd,gf){var hf;Vh=null;for(var vf=0;vfYd)return vf;$f.to==Yd&&($f.from!=$f.to&&gf=="before"?hf=vf:Vh=vf),$f.from==Yd&&($f.from!=$f.to&&gf!="before"?hf=vf:Vh=vf)}return hf??Vh}var $m=function(){var jd="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",Yd="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function gf(Kh){return Kh<=247?jd.charAt(Kh):1424<=Kh&&Kh<=1524?"R":1536<=Kh&&Kh<=1785?Yd.charAt(Kh-1536):1774<=Kh&&Kh<=2220?"r":8192<=Kh&&Kh<=8203?"w":Kh==8204?"b":"L"}var hf=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,vf=/[stwN]/,$f=/[LRr]/,ph=/[Lb1n]/,Ah=/[1n]/;function Lh(Kh,Om,Hm){this.level=Kh,this.from=Om,this.to=Hm}return function(Kh,Om){var Hm=Om=="ltr"?"L":"R";if(Kh.length==0||Om=="ltr"&&!hf.test(Kh))return!1;for(var Jm=Kh.length,Qm=[],ug=0;ug-1&&(hf[Yd]=vf.slice(0,$f).concat(vf.slice($f+1)))}}}function Og(jd,Yd){var gf=_g(jd,Yd);if(gf.length)for(var hf=Array.prototype.slice.call(arguments,2),vf=0;vf0}function y_(jd){jd.prototype.on=function(Yd,gf){ig(this,Yd,gf)},jd.prototype.off=function(Yd,gf){vg(this,Yd,gf)}}function t_(jd){jd.preventDefault?jd.preventDefault():jd.returnValue=!1}function R_(jd){jd.stopPropagation?jd.stopPropagation():jd.cancelBubble=!0}function v_(jd){return jd.defaultPrevented!=null?jd.defaultPrevented:jd.returnValue==!1}function X_(jd){t_(jd),R_(jd)}function eb(jd){return jd.target||jd.srcElement}function I_(jd){var Yd=jd.which;return Yd==null&&(jd.button&1?Yd=1:jd.button&2?Yd=3:jd.button&4&&(Yd=2)),Kd&&jd.ctrlKey&&Yd==1&&(Yd=3),Yd}var $_=function(){if(gd&&yd<9)return!1;var jd=Sf("div");return"draggable"in jd||"dragDrop"in jd}(),$g;function Lb(jd){if($g==null){var Yd=Sf("span","​");If(jd,Sf("span",[Yd,document.createTextNode("x")])),jd.firstChild.offsetHeight!=0&&($g=Yd.offsetWidth<=1&&Yd.offsetHeight>2&&!(gd&&yd<8))}var gf=$g?Sf("span","​"):Sf("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return gf.setAttribute("cm-text",""),gf}var Kb;function db(jd){if(Kb!=null)return Kb;var Yd=If(jd,document.createTextNode("AخA")),gf=Pf(Yd,0,1).getBoundingClientRect(),hf=Pf(Yd,1,2).getBoundingClientRect();return Cf(jd),!gf||gf.left==gf.right?!1:Kb=hf.right-gf.right<3}var nh=` b`.split(/\n/).length!=3?function(jd){for(var Yd=0,gf=[],hf=jd.length;Yd<=hf;){var vf=jd.indexOf(` -`,Yd);vf==-1&&(vf=jd.length);var $f=jd.slice(Yd,jd.charAt(vf-1)=="\r"?vf-1:vf),ph=$f.indexOf("\r");ph!=-1?(gf.push($f.slice(0,ph)),Yd+=ph+1):(gf.push($f),Yd=vf+1)}return gf}:function(jd){return jd.split(/\r\n?|\n/)},gm=window.getSelection?function(jd){try{return jd.selectionStart!=jd.selectionEnd}catch{return!1}}:function(jd){var Yd;try{Yd=jd.ownerDocument.selection.createRange()}catch{}return!Yd||Yd.parentElement()!=jd?!1:Yd.compareEndPoints("StartToEnd",Yd)!=0},im=function(){var jd=Sf("div");return"oncopy"in jd?!0:(jd.setAttribute("oncopy","return;"),typeof jd.oncopy=="function")}(),mm=null;function jm(jd){if(mm!=null)return mm;var Yd=If(jd,Sf("span","x")),gf=Yd.getBoundingClientRect(),hf=Pf(Yd,0,1).getBoundingClientRect();return mm=Math.abs(gf.left-hf.left)>1}var Lm={},zm={};function Vm(jd,Yd){arguments.length>2&&(Yd.dependencies=Array.prototype.slice.call(arguments,2)),Lm[jd]=Yd}function Nm(jd,Yd){zm[jd]=Yd}function lg(jd){if(typeof jd=="string"&&zm.hasOwnProperty(jd))jd=zm[jd];else if(jd&&typeof jd.name=="string"&&zm.hasOwnProperty(jd.name)){var Yd=zm[jd.name];typeof Yd=="string"&&(Yd={name:Yd}),jd=Rm(Yd,jd),jd.name=Yd.name}else{if(typeof jd=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(jd))return lg("application/xml");if(typeof jd=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(jd))return lg("application/json")}return typeof jd=="string"?{name:jd}:jd||{name:"null"}}function pg(jd,Yd){Yd=lg(Yd);var gf=Lm[Yd.name];if(!gf)return pg(jd,"text/plain");var hf=gf(jd,Yd);if(qg.hasOwnProperty(Yd.name)){var vf=qg[Yd.name];for(var $f in vf)vf.hasOwnProperty($f)&&(hf.hasOwnProperty($f)&&(hf["_"+$f]=hf[$f]),hf[$f]=vf[$f])}if(hf.name=Yd.name,Yd.helperType&&(hf.helperType=Yd.helperType),Yd.modeProps)for(var ph in Yd.modeProps)hf[ph]=Yd.modeProps[ph];return hf}var qg={};function xg(jd,Yd){var gf=qg.hasOwnProperty(jd)?qg[jd]:qg[jd]={};Af(Yd,gf)}function Yg(jd,Yd){if(Yd===!0)return Yd;if(jd.copyState)return jd.copyState(Yd);var gf={};for(var hf in Yd){var vf=Yd[hf];vf instanceof Array&&(vf=vf.concat([])),gf[hf]=vf}return gf}function w_(jd,Yd){for(var gf;jd.innerMode&&(gf=jd.innerMode(Yd),!(!gf||gf.mode==jd));)Yd=gf.state,jd=gf.mode;return gf||{mode:jd,state:Yd}}function C_(jd,Yd,gf){return jd.startState?jd.startState(Yd,gf):!0}var p_=function(jd,Yd,gf){this.pos=this.start=0,this.string=jd,this.tabSize=Yd||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=gf};p_.prototype.eol=function(){return this.pos>=this.string.length},p_.prototype.sol=function(){return this.pos==this.lineStart},p_.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},p_.prototype.next=function(){if(this.posYd},p_.prototype.eatSpace=function(){for(var jd=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>jd},p_.prototype.skipToEnd=function(){this.pos=this.string.length},p_.prototype.skipTo=function(jd){var Yd=this.string.indexOf(jd,this.pos);if(Yd>-1)return this.pos=Yd,!0},p_.prototype.backUp=function(jd){this.pos-=jd},p_.prototype.column=function(){return this.lastColumnPos0?null:($f&&Yd!==!1&&(this.pos+=$f[0].length),$f)}},p_.prototype.current=function(){return this.string.slice(this.start,this.pos)},p_.prototype.hideFirstChars=function(jd,Yd){this.lineStart+=jd;try{return Yd()}finally{this.lineStart-=jd}},p_.prototype.lookAhead=function(jd){var Yd=this.lineOracle;return Yd&&Yd.lookAhead(jd)},p_.prototype.baseToken=function(){var jd=this.lineOracle;return jd&&jd.baseToken(this.pos)};function Mg(jd,Yd){if(Yd-=jd.first,Yd<0||Yd>=jd.size)throw new Error("There is no line "+(Yd+jd.first)+" in the document.");for(var gf=jd;!gf.lines;)for(var hf=0;;++hf){var vf=gf.children[hf],$f=vf.chunkSize();if(Yd<$f){gf=vf;break}Yd-=$f}return gf.lines[Yd]}function q_(jd,Yd,gf){var hf=[],vf=Yd.line;return jd.iter(Yd.line,gf.line+1,function($f){var ph=$f.text;vf==gf.line&&(ph=ph.slice(0,gf.ch)),vf==Yd.line&&(ph=ph.slice(Yd.ch)),hf.push(ph),++vf}),hf}function m_(jd,Yd,gf){var hf=[];return jd.iter(Yd,gf,function(vf){hf.push(vf.text)}),hf}function a_(jd,Yd){var gf=Yd-jd.height;if(gf)for(var hf=jd;hf;hf=hf.parent)hf.height+=gf}function qh(jd){if(jd.parent==null)return null;for(var Yd=jd.parent,gf=dm(Yd.lines,jd),hf=Yd.parent;hf;Yd=hf,hf=hf.parent)for(var vf=0;hf.children[vf]!=Yd;++vf)gf+=hf.children[vf].chunkSize();return gf+Yd.first}function Pm(jd,Yd){var gf=jd.first;e:do{for(var hf=0;hf=jd.first&&Ydgf?sg(gf,Mg(jd,gf).text.length):Ub(Yd,Mg(jd,Yd.line).text.length)}function Ub(jd,Yd){var gf=jd.ch;return gf==null||gf>Yd?sg(jd.line,Yd):gf<0?sg(jd.line,0):jd}function Y_(jd,Yd){for(var gf=[],hf=0;hfthis.maxLookAhead&&(this.maxLookAhead=jd),Yd},pb.prototype.baseToken=function(jd){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=jd;)this.baseTokenPos+=2;var Yd=this.baseTokens[this.baseTokenPos+1];return{type:Yd&&Yd.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-jd}},pb.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},pb.fromSaved=function(jd,Yd,gf){return Yd instanceof Tb?new pb(jd,Yg(jd.mode,Yd.state),gf,Yd.lookAhead):new pb(jd,Yg(jd.mode,Yd),gf)},pb.prototype.save=function(jd){var Yd=jd!==!1?Yg(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Tb(Yd,this.maxLookAhead):Yd};function Sy(jd,Yd,gf,hf){var vf=[jd.state.modeGen],$f={};sE(jd,Yd.text,jd.doc.mode,gf,function(Kh,Om){return vf.push(Kh,Om)},$f,hf);for(var ph=gf.state,Ah=function(Kh){gf.baseTokens=vf;var Om=jd.state.overlays[Kh],Hm=1,Jm=0;gf.state=!0,sE(jd,Yd.text,Om.mode,gf,function(Qm,ug){for(var Tg=Hm;JmQm&&vf.splice(Hm,1,Qm,vf[Hm+1],kg),Hm+=2,Jm=Math.min(Qm,kg)}if(ug)if(Om.opaque)vf.splice(Tg,Hm-Tg,Qm,"overlay "+ug),Hm=Tg+2;else for(;Tgjd.options.maxHighlightLength&&Yg(jd.doc.mode,hf.state),$f=Sy(jd,Yd,hf);vf&&(hf.state=vf),Yd.stateAfter=hf.save(!vf),Yd.styles=$f.styles,$f.classes?Yd.styleClasses=$f.classes:Yd.styleClasses&&(Yd.styleClasses=null),gf===jd.doc.highlightFrontier&&(jd.doc.modeFrontier=Math.max(jd.doc.modeFrontier,++jd.doc.highlightFrontier))}return Yd.styles}function xb(jd,Yd,gf){var hf=jd.doc,vf=jd.display;if(!hf.mode.startState)return new pb(hf,!0,Yd);var $f=LE(jd,Yd,gf),ph=$f>hf.first&&Mg(hf,$f-1).stateAfter,Ah=ph?pb.fromSaved(hf,ph,$f):new pb(hf,C_(hf.mode),$f);return hf.iter($f,Yd,function(Lh){Ty(jd,Lh.text,Ah);var Kh=Ah.line;Lh.stateAfter=Kh==Yd-1||Kh%5==0||Kh>=vf.viewFrom&&KhYd.start)return $f}throw new Error("Mode "+jd.name+" failed to advance stream.")}var r_=function(jd,Yd,gf){this.start=jd.start,this.end=jd.pos,this.string=jd.current(),this.type=Yd||null,this.state=gf};function B0(jd,Yd,gf,hf){var vf=jd.doc,$f=vf.mode,ph;Yd=l_(vf,Yd);var Ah=Mg(vf,Yd.line),Lh=xb(jd,Yd.line,gf),Kh=new p_(Ah.text,jd.options.tabSize,Lh),Om;for(hf&&(Om=[]);(hf||Kh.posjd.options.maxHighlightLength?(Ah=!1,ph&&Ty(jd,Yd,hf,Om.pos),Om.pos=Yd.length,Hm=null):Hm=x0(L0(gf,Om,hf.state,Jm),$f),Jm){var Qm=Jm[0].name;Qm&&(Hm="m-"+(Hm?Qm+" "+Hm:Qm))}if(!Ah||Kh!=Hm){for(;Lhph;--Ah){if(Ah<=$f.first)return $f.first;var Lh=Mg($f,Ah-1),Kh=Lh.stateAfter;if(Kh&&(!gf||Ah+(Kh instanceof Tb?Kh.lookAhead:0)<=$f.modeFrontier))return Ah;var Om=_h(Lh.text,null,jd.options.tabSize);(vf==null||hf>Om)&&(vf=Ah-1,hf=Om)}return vf}function BE(jd,Yd){if(jd.modeFrontier=Math.min(jd.modeFrontier,Yd),!(jd.highlightFrontiergf;hf--){var vf=Mg(jd,hf).stateAfter;if(vf&&(!(vf instanceof Tb)||hf+vf.lookAhead=Yd:$f.to>Yd);(hf||(hf=[])).push(new A0(ph,$f.from,Lh?null:$f.to))}}return hf}function pT(jd,Yd,gf){var hf;if(jd)for(var vf=0;vf=Yd:$f.to>Yd);if(Ah||$f.from==Yd&&ph.type=="bookmark"&&(!gf||$f.marker.insertLeft)){var Lh=$f.from==null||(ph.inclusiveLeft?$f.from<=Yd:$f.from0&&Ah)for(var Qg=0;Qg0)){var Om=[Lh,1],Hm=Fg(Kh.from,Ah.from),Jm=Fg(Kh.to,Ah.to);(Hm<0||!ph.inclusiveLeft&&!Hm)&&Om.push({from:Kh.from,to:Ah.from}),(Jm>0||!ph.inclusiveRight&&!Jm)&&Om.push({from:Ah.to,to:Kh.to}),vf.splice.apply(vf,Om),Lh+=Om.length-3}}return vf}function Pg(jd){var Yd=jd.markedSpans;if(Yd){for(var gf=0;gfYd)&&(!hf||Cv(hf,$f.marker)<0)&&(hf=$f.marker)}return hf}function wv(jd,Yd,gf,hf,vf){var $f=Mg(jd,Yd),ph=fb&&$f.markedSpans;if(ph)for(var Ah=0;Ah=0&&Hm<=0||Om<=0&&Hm>=0)&&(Om<=0&&(Lh.marker.inclusiveRight&&vf.inclusiveLeft?Fg(Kh.to,gf)>=0:Fg(Kh.to,gf)>0)||Om>=0&&(Lh.marker.inclusiveRight&&vf.inclusiveLeft?Fg(Kh.from,hf)<=0:Fg(Kh.from,hf)<0)))return!0}}}function j_(jd){for(var Yd;Yd=ES(jd);)jd=Yd.find(-1,!0).line;return jd}function Nv(jd){for(var Yd;Yd=lE(jd);)jd=Yd.find(1,!0).line;return jd}function w0(jd){for(var Yd,gf;Yd=lE(jd);)jd=Yd.find(1,!0).line,(gf||(gf=[])).push(jd);return gf}function Q_(jd,Yd){var gf=Mg(jd,Yd),hf=j_(gf);return gf==hf?Yd:qh(hf)}function Cy(jd,Yd){if(Yd>jd.lastLine())return Yd;var gf=Mg(jd,Yd),hf;if(!ob(jd,gf))return Yd;for(;hf=lE(gf);)gf=hf.find(1,!0).line;return qh(gf)+1}function ob(jd,Yd){var gf=fb&&Yd.markedSpans;if(gf){for(var hf=void 0,vf=0;vfYd.maxLineLength&&(Yd.maxLineLength=vf,Yd.maxLine=hf)})}var Hy=function(jd,Yd,gf){this.text=jd,H_(this,Yd),this.height=gf?gf(this):1};Hy.prototype.lineNo=function(){return qh(this)},y_(Hy);function SS(jd,Yd,gf,hf){jd.text=Yd,jd.stateAfter&&(jd.stateAfter=null),jd.styles&&(jd.styles=null),jd.order!=null&&(jd.order=null),Pg(jd),H_(jd,gf);var vf=hf?hf(jd):1;vf!=jd.height&&a_(jd,vf)}function zb(jd){jd.parent=null,Pg(jd)}var Pv={},Qb={};function TS(jd,Yd){if(!jd||/^\s*$/.test(jd))return null;var gf=Yd.addModeClass?Qb:Pv;return gf[jd]||(gf[jd]=jd.replace(/\S+/g,"cm-$&"))}function cE(jd,Yd){var gf=wf("span",null,null,vd?"padding-right: .1px":null),hf={pre:wf("pre",[gf],"CodeMirror-line"),content:gf,col:0,pos:0,cm:jd,trailingSpace:!1,splitSpaces:jd.getOption("lineWrapping")};Yd.measure={};for(var vf=0;vf<=(Yd.rest?Yd.rest.length:0);vf++){var $f=vf?Yd.rest[vf-1]:Yd.line,ph=void 0;hf.pos=0,hf.addToken=UE,db(jd.display.measure)&&(ph=Km($f,jd.doc.direction))&&(hf.addToken=K_(hf.addToken,ph)),hf.map=[];var Ah=Yd!=jd.display.externalMeasured&&qh($f);Lv($f,hf,d0(jd,$f,Ah)),$f.styleClasses&&($f.styleClasses.bgClass&&(hf.bgClass=Mh($f.styleClasses.bgClass,hf.bgClass||"")),$f.styleClasses.textClass&&(hf.textClass=Mh($f.styleClasses.textClass,hf.textClass||""))),hf.map.length==0&&hf.map.push(0,0,hf.content.appendChild(Lb(jd.display.measure))),vf==0?(Yd.measure.map=hf.map,Yd.measure.cache={}):((Yd.measure.maps||(Yd.measure.maps=[])).push(hf.map),(Yd.measure.caches||(Yd.measure.caches=[])).push({}))}if(vd){var Lh=hf.content.lastChild;(/\bcm-tab\b/.test(Lh.className)||Lh.querySelector&&Lh.querySelector(".cm-tab"))&&(hf.content.className="cm-tab-wrap-hack")}return Og(jd,"renderLine",jd,Yd.line,hf.pre),hf.pre.className&&(hf.textClass=Mh(hf.pre.className,hf.textClass||"")),hf}function p0(jd){var Yd=Sf("span","•","cm-invalidchar");return Yd.title="\\u"+jd.charCodeAt(0).toString(16),Yd.setAttribute("aria-label",Yd.title),Yd}function UE(jd,Yd,gf,hf,vf,$f,ph){if(Yd){var Ah=jd.splitSpaces?HE(Yd,jd.trailingSpace):Yd,Lh=jd.cm.state.specialChars,Kh=!1,Om;if(!Lh.test(Yd))jd.col+=Yd.length,Om=document.createTextNode(Ah),jd.map.push(jd.pos,jd.pos+Yd.length,Om),gd&&yd<9&&(Kh=!0),jd.pos+=Yd.length;else{Om=document.createDocumentFragment();for(var Hm=0;;){Lh.lastIndex=Hm;var Jm=Lh.exec(Yd),Qm=Jm?Jm.index-Hm:Yd.length-Hm;if(Qm){var ug=document.createTextNode(Ah.slice(Hm,Hm+Qm));gd&&yd<9?Om.appendChild(Sf("span",[ug])):Om.appendChild(ug),jd.map.push(jd.pos,jd.pos+Qm,ug),jd.col+=Qm,jd.pos+=Qm}if(!Jm)break;Hm+=Qm+1;var Tg=void 0;if(Jm[0]==" "){var kg=jd.cm.options.tabSize,Gg=kg-jd.col%kg;Tg=Om.appendChild(Sf("span",$h(Gg),"cm-tab")),Tg.setAttribute("role","presentation"),Tg.setAttribute("cm-text"," "),jd.col+=Gg}else Jm[0]=="\r"||Jm[0]==` -`?(Tg=Om.appendChild(Sf("span",Jm[0]=="\r"?"␍":"␤","cm-invalidchar")),Tg.setAttribute("cm-text",Jm[0]),jd.col+=1):(Tg=jd.cm.options.specialCharPlaceholder(Jm[0]),Tg.setAttribute("cm-text",Jm[0]),gd&&yd<9?Om.appendChild(Sf("span",[Tg])):Om.appendChild(Tg),jd.col+=1);jd.map.push(jd.pos,jd.pos+1,Tg),jd.pos++}}if(jd.trailingSpace=Ah.charCodeAt(Yd.length-1)==32,gf||hf||vf||Kh||$f||ph){var Vg=gf||"";hf&&(Vg+=hf),vf&&(Vg+=vf);var Ug=Sf("span",[Om],Vg,$f);if(ph)for(var Qg in ph)ph.hasOwnProperty(Qg)&&Qg!="style"&&Qg!="class"&&Ug.setAttribute(Qg,ph[Qg]);return jd.content.appendChild(Ug)}jd.content.appendChild(Om)}}function HE(jd,Yd){if(jd.length>1&&!/ /.test(jd))return jd;for(var gf=Yd,hf="",vf=0;vfKh&&Hm.from<=Kh));Jm++);if(Hm.to>=Om)return jd(gf,hf,vf,$f,ph,Ah,Lh);jd(gf,hf.slice(0,Hm.to-Kh),vf,$f,null,Ah,Lh),$f=null,hf=hf.slice(Hm.to-Kh),Kh=Hm.to}}}function Gy(jd,Yd,gf,hf){var vf=!hf&&gf.widgetNode;vf&&jd.map.push(jd.pos,jd.pos+Yd,vf),!hf&&jd.cm.display.input.needsContentAttribute&&(vf||(vf=jd.content.appendChild(document.createElement("span"))),vf.setAttribute("cm-marker",gf.id)),vf&&(jd.cm.display.input.setUneditable(vf),jd.content.appendChild(vf)),jd.pos+=Yd,jd.trailingSpace=!1}function Lv(jd,Yd,gf){var hf=jd.markedSpans,vf=jd.text,$f=0;if(!hf){for(var ph=1;phLh||E_.collapsed&&n_.to==Lh&&n_.from==Lh)){if(n_.to!=null&&n_.to!=Lh&&Qm>n_.to&&(Qm=n_.to,Tg=""),E_.className&&(ug+=" "+E_.className),E_.css&&(Jm=(Jm?Jm+";":"")+E_.css),E_.startStyle&&n_.from==Lh&&(kg+=" "+E_.startStyle),E_.endStyle&&n_.to==Qm&&(Qg||(Qg=[])).push(E_.endStyle,n_.to),E_.title&&((Vg||(Vg={})).title=E_.title),E_.attributes)for(var G_ in E_.attributes)(Vg||(Vg={}))[G_]=E_.attributes[G_];E_.collapsed&&(!Gg||Cv(Gg.marker,E_)<0)&&(Gg=n_)}else n_.from>Lh&&Qm>n_.from&&(Qm=n_.from)}if(Qg)for(var ub=0;ub=Ah)break;for(var rb=Math.min(Ah,Qm);;){if(Om){var hb=Lh+Om.length;if(!Gg){var mb=hb>rb?Om.slice(0,rb-Lh):Om;Yd.addToken(Yd,mb,Hm?Hm+ug:ug,kg,Lh+mb.length==Qm?Tg:"",Jm,Vg)}if(hb>=rb){Om=Om.slice(rb-Lh),Lh=rb;break}Lh=hb,kg=""}Om=vf.slice($f,$f=gf[Kh++]),Hm=TS(gf[Kh++],Yd.cm.options)}}}function xS(jd,Yd,gf){this.line=Yd,this.rest=w0(Yd),this.size=this.rest?qh(wh(this.rest))-gf+1:1,this.node=this.text=null,this.hidden=ob(jd,Yd)}function U0(jd,Yd,gf){for(var hf=[],vf,$f=Yd;$f2&&$f.push((Lh.bottom+Kh.top)/2-gf.top)}}$f.push(gf.bottom-gf.top)}}function ex(jd,Yd,gf){if(jd.line==Yd)return{map:jd.measure.map,cache:jd.measure.cache};if(jd.rest){for(var hf=0;hfgf)return{map:jd.measure.maps[vf],cache:jd.measure.caches[vf],before:!0}}}function o1(jd,Yd){Yd=j_(Yd);var gf=qh(Yd),hf=jd.display.externalMeasured=new xS(jd.doc,Yd,gf);hf.lineN=gf;var vf=hf.built=cE(jd,hf);return hf.text=vf.pre,If(jd.display.lineMeasure,vf.pre),hf}function AS(jd,Yd,gf,hf){return ey(jd,Zb(jd,Yd),gf,hf)}function wS(jd,Yd){if(Yd>=jd.display.viewFrom&&Yd=gf.lineN&&YdYd)&&($f=Lh-Ah,vf=$f-1,Yd>=Lh&&(ph="right")),vf!=null){if(hf=jd[Kh+2],Ah==Lh&&gf==(hf.insertLeft?"left":"right")&&(ph=gf),gf=="left"&&vf==0)for(;Kh&&jd[Kh-2]==jd[Kh-3]&&jd[Kh-1].insertLeft;)hf=jd[(Kh-=3)+2],ph="left";if(gf=="right"&&vf==Lh-Ah)for(;Kh=0&&(gf=jd[vf]).left==gf.right;vf--);return gf}function VE(jd,Yd,gf,hf){var vf=nx(Yd.map,gf,hf),$f=vf.node,ph=vf.start,Ah=vf.end,Lh=vf.collapse,Kh;if($f.nodeType==3){for(var Om=0;Om<4;Om++){for(;ph&&Fh(Yd.line.text.charAt(vf.coverStart+ph));)--ph;for(;vf.coverStart+Ah0&&(Lh=hf="right");var Hm;jd.options.lineWrapping&&(Hm=$f.getClientRects()).length>1?Kh=Hm[hf=="right"?Hm.length-1:0]:Kh=$f.getBoundingClientRect()}if(gd&&yd<9&&!ph&&(!Kh||!Kh.left&&!Kh.right)){var Jm=$f.parentNode.getClientRects()[0];Jm?Kh={left:Jm.left,right:Jm.left+N0(jd.display),top:Jm.top,bottom:Jm.bottom}:Kh=tx}for(var Qm=Kh.top-Yd.rect.top,ug=Kh.bottom-Yd.rect.top,Tg=(Qm+ug)/2,kg=Yd.view.measure.heights,Gg=0;Gg=hf.text.length?(Lh=hf.text.length,Kh="before"):Lh<=0&&(Lh=0,Kh="after"),!Ah)return ph(Kh=="before"?Lh-1:Lh,Kh=="before");function Om(ug,Tg,kg){var Gg=Ah[Tg],Vg=Gg.level==1;return ph(kg?ug-1:ug,Vg!=kg)}var Hm=Sm(Ah,Lh,Kh),Jm=Vh,Qm=Om(Lh,Hm,Kh=="before");return Jm!=null&&(Qm.other=Om(Lh,Jm,Kh!="before")),Qm}function e_(jd,Yd){var gf=0;Yd=l_(jd.doc,Yd),jd.options.lineWrapping||(gf=N0(jd.display)*Yd.ch);var hf=Mg(jd.doc,Yd.line),vf=Ay(hf)+Cb(jd.display);return{left:gf,right:gf,top:vf,bottom:vf+hf.height}}function __(jd,Yd,gf,hf,vf){var $f=sg(jd,Yd,gf);return $f.xRel=vf,hf&&($f.outside=hf),$f}function O_(jd,Yd,gf){var hf=jd.doc;if(gf+=jd.display.viewOffset,gf<0)return __(hf.first,0,null,-1,-1);var vf=Pm(hf,gf),$f=hf.first+hf.size-1;if(vf>$f)return __(hf.first+hf.size-1,Mg(hf,$f).text.length,null,1,1);Yd<0&&(Yd=0);for(var ph=Mg(hf,vf);;){var Ah=u1(jd,ph,vf,Yd,gf),Lh=vS(ph,Ah.ch+(Ah.xRel>0||Ah.outside>0?1:0));if(!Lh)return Ah;var Kh=Lh.find(1);if(Kh.line==vf)return Kh;ph=Mg(hf,vf=Kh.line)}}function yb(jd,Yd,gf,hf){hf-=gT(Yd);var vf=Yd.text.length,$f=Rf(function(ph){return ey(jd,gf,ph-1).bottom<=hf},vf,0);return vf=Rf(function(ph){return ey(jd,gf,ph).top>hf},$f,vf),{begin:$f,end:vf}}function V_(jd,Yd,gf,hf){gf||(gf=Zb(jd,Yd));var vf=D0(jd,Yd,ey(jd,gf,hf),"line").top;return yb(jd,Yd,gf,vf)}function Fv(jd,Yd,gf,hf){return jd.bottom<=gf?!1:jd.top>gf?!0:(hf?jd.left:jd.right)>Yd}function u1(jd,Yd,gf,hf,vf){vf-=Ay(Yd);var $f=Zb(jd,Yd),ph=gT(Yd),Ah=0,Lh=Yd.text.length,Kh=!0,Om=Km(Yd,jd.doc.direction);if(Om){var Hm=(jd.options.lineWrapping?DS:Iy)(jd,Yd,gf,$f,Om,hf,vf);Kh=Hm.level!=1,Ah=Kh?Hm.from:Hm.to-1,Lh=Kh?Hm.to:Hm.from-1}var Jm=null,Qm=null,ug=Rf(function(i_){var n_=ey(jd,$f,i_);return n_.top+=ph,n_.bottom+=ph,Fv(n_,hf,vf,!1)?(n_.top<=vf&&n_.left<=hf&&(Jm=i_,Qm=n_),!0):!1},Ah,Lh),Tg,kg,Gg=!1;if(Qm){var Vg=hf-Qm.left=Qg.bottom?1:0}return ug=kf(Yd.text,ug,1),__(gf,ug,kg,Gg,hf-Tg)}function Iy(jd,Yd,gf,hf,vf,$f,ph){var Ah=Rf(function(Hm){var Jm=vf[Hm],Qm=Jm.level!=1;return Fv(og(jd,sg(gf,Qm?Jm.to:Jm.from,Qm?"before":"after"),"line",Yd,hf),$f,ph,!0)},0,vf.length-1),Lh=vf[Ah];if(Ah>0){var Kh=Lh.level!=1,Om=og(jd,sg(gf,Kh?Lh.from:Lh.to,Kh?"after":"before"),"line",Yd,hf);Fv(Om,$f,ph,!0)&&Om.top>ph&&(Lh=vf[Ah-1])}return Lh}function DS(jd,Yd,gf,hf,vf,$f,ph){var Ah=yb(jd,Yd,hf,ph),Lh=Ah.begin,Kh=Ah.end;/\s/.test(Yd.text.charAt(Kh-1))&&Kh--;for(var Om=null,Hm=null,Jm=0;Jm=Kh||Qm.to<=Lh)){var ug=Qm.level!=1,Tg=ey(jd,hf,ug?Math.min(Kh,Qm.to)-1:Math.max(Lh,Qm.from)).right,kg=Tg<$f?$f-Tg+1e9:Tg-$f;(!Om||Hm>kg)&&(Om=Qm,Hm=kg)}}return Om||(Om=vf[vf.length-1]),Om.fromKh&&(Om={from:Om.from,to:Kh,level:Om.level}),Om}var fE;function Vy(jd){if(jd.cachedTextHeight!=null)return jd.cachedTextHeight;if(fE==null){fE=Sf("pre",null,"CodeMirror-line-like");for(var Yd=0;Yd<49;++Yd)fE.appendChild(document.createTextNode("x")),fE.appendChild(Sf("br"));fE.appendChild(document.createTextNode("x"))}If(jd.measure,fE);var gf=fE.offsetHeight/50;return gf>3&&(jd.cachedTextHeight=gf),Cf(jd.measure),gf||1}function N0(jd){if(jd.cachedCharWidth!=null)return jd.cachedCharWidth;var Yd=Sf("span","xxxxxxxxxx"),gf=Sf("pre",[Yd],"CodeMirror-line-like");If(jd.measure,gf);var hf=Yd.getBoundingClientRect(),vf=(hf.right-hf.left)/10;return vf>2&&(jd.cachedCharWidth=vf),vf||10}function zE(jd){for(var Yd=jd.display,gf={},hf={},vf=Yd.gutters.clientLeft,$f=Yd.gutters.firstChild,ph=0;$f;$f=$f.nextSibling,++ph){var Ah=jd.display.gutterSpecs[ph].className;gf[Ah]=$f.offsetLeft+$f.clientLeft+vf,hf[Ah]=$f.clientWidth}return{fixedPos:F_(Yd),gutterTotalWidth:Yd.gutters.offsetWidth,gutterLeft:gf,gutterWidth:hf,wrapperWidth:Yd.wrapper.clientWidth}}function F_(jd){return jd.scroller.getBoundingClientRect().left-jd.sizer.getBoundingClientRect().left}function ox(jd){var Yd=Vy(jd.display),gf=jd.options.lineWrapping,hf=gf&&Math.max(5,jd.display.scroller.clientWidth/N0(jd.display)-3);return function(vf){if(ob(jd.doc,vf))return 0;var $f=0;if(vf.widgets)for(var ph=0;ph0&&(Kh=Mg(jd.doc,Lh.line).text).length==Lh.ch){var Om=_h(Kh,Kh.length,jd.options.tabSize)-Kh.length;Lh=sg(Lh.line,Math.max(0,Math.round(($f-GE(jd.display).left)/N0(jd.display))-Om))}return Lh}function hE(jd,Yd){if(Yd>=jd.display.viewTo||(Yd-=jd.display.viewFrom,Yd<0))return null;for(var gf=jd.display.view,hf=0;hfYd)&&(vf.updateLineNumbers=Yd),jd.curOp.viewChanged=!0,Yd>=vf.viewTo)fb&&Q_(jd.doc,Yd)vf.viewFrom?Wy(jd):(vf.viewFrom+=hf,vf.viewTo+=hf);else if(Yd<=vf.viewFrom&&gf>=vf.viewTo)Wy(jd);else if(Yd<=vf.viewFrom){var $f=e0(jd,gf,gf+hf,1);$f?(vf.view=vf.view.slice($f.index),vf.viewFrom=$f.lineN,vf.viewTo+=hf):Wy(jd)}else if(gf>=vf.viewTo){var ph=e0(jd,Yd,Yd,-1);ph?(vf.view=vf.view.slice(0,ph.index),vf.viewTo=ph.lineN):Wy(jd)}else{var Ah=e0(jd,Yd,Yd,-1),Lh=e0(jd,gf,gf+hf,1);Ah&&Lh?(vf.view=vf.view.slice(0,Ah.index).concat(U0(jd,Ah.lineN,Lh.lineN)).concat(vf.view.slice(Lh.index)),vf.viewTo+=hf):Wy(jd)}var Kh=vf.externalMeasured;Kh&&(gf=vf.lineN&&Yd=hf.viewTo)){var $f=hf.view[hE(jd,Yd)];if($f.node!=null){var ph=$f.changes||($f.changes=[]);dm(ph,gf)==-1&&ph.push(gf)}}}function Wy(jd){jd.display.viewFrom=jd.display.viewTo=jd.doc.first,jd.display.view=[],jd.display.viewOffset=0}function e0(jd,Yd,gf,hf){var vf=hE(jd,Yd),$f,ph=jd.display.view;if(!fb||gf==jd.doc.first+jd.doc.size)return{index:vf,lineN:gf};for(var Ah=jd.display.viewFrom,Lh=0;Lh0){if(vf==ph.length-1)return null;$f=Ah+ph[vf].size-Yd,vf++}else $f=Ah-Yd;Yd+=$f,gf+=$f}for(;Q_(jd.doc,gf)!=gf;){if(vf==(hf<0?0:ph.length-1))return null;gf+=hf*ph[vf-(hf<0?1:0)].size,vf+=hf}return{index:vf,lineN:gf}}function RS(jd,Yd,gf){var hf=jd.display,vf=hf.view;vf.length==0||Yd>=hf.viewTo||gf<=hf.viewFrom?(hf.view=U0(jd,Yd,gf),hf.viewFrom=Yd):(hf.viewFrom>Yd?hf.view=U0(jd,Yd,hf.viewFrom).concat(hf.view):hf.viewFromgf&&(hf.view=hf.view.slice(0,hE(jd,gf)))),hf.viewTo=gf}function yT(jd){for(var Yd=jd.display.view,gf=0,hf=0;hf=jd.display.viewTo||Lh.to().line0?ph:jd.defaultCharWidth())+"px"}if(hf.other){var Ah=gf.appendChild(Sf("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));Ah.style.display="",Ah.style.left=hf.other.left+"px",Ah.style.top=hf.other.top+"px",Ah.style.height=(hf.other.bottom-hf.other.top)*.85+"px"}}function mE(jd,Yd){return jd.top-Yd.top||jd.left-Yd.left}function lx(jd,Yd,gf){var hf=jd.display,vf=jd.doc,$f=document.createDocumentFragment(),ph=GE(jd.display),Ah=ph.left,Lh=Math.max(hf.sizerWidth,pE(jd)-hf.sizer.offsetLeft)-ph.right,Kh=vf.direction=="ltr";function Om(Ug,Qg,i_,n_){Qg<0&&(Qg=0),Qg=Math.round(Qg),n_=Math.round(n_),$f.appendChild(Sf("div",null,"CodeMirror-selected","position: absolute; left: "+Ug+`px; +`,Yd);vf==-1&&(vf=jd.length);var $f=jd.slice(Yd,jd.charAt(vf-1)=="\r"?vf-1:vf),ph=$f.indexOf("\r");ph!=-1?(gf.push($f.slice(0,ph)),Yd+=ph+1):(gf.push($f),Yd=vf+1)}return gf}:function(jd){return jd.split(/\r\n?|\n/)},gm=window.getSelection?function(jd){try{return jd.selectionStart!=jd.selectionEnd}catch{return!1}}:function(jd){var Yd;try{Yd=jd.ownerDocument.selection.createRange()}catch{}return!Yd||Yd.parentElement()!=jd?!1:Yd.compareEndPoints("StartToEnd",Yd)!=0},im=function(){var jd=Sf("div");return"oncopy"in jd?!0:(jd.setAttribute("oncopy","return;"),typeof jd.oncopy=="function")}(),mm=null;function jm(jd){if(mm!=null)return mm;var Yd=If(jd,Sf("span","x")),gf=Yd.getBoundingClientRect(),hf=Pf(Yd,0,1).getBoundingClientRect();return mm=Math.abs(gf.left-hf.left)>1}var Lm={},zm={};function Vm(jd,Yd){arguments.length>2&&(Yd.dependencies=Array.prototype.slice.call(arguments,2)),Lm[jd]=Yd}function Dm(jd,Yd){zm[jd]=Yd}function og(jd){if(typeof jd=="string"&&zm.hasOwnProperty(jd))jd=zm[jd];else if(jd&&typeof jd.name=="string"&&zm.hasOwnProperty(jd.name)){var Yd=zm[jd.name];typeof Yd=="string"&&(Yd={name:Yd}),jd=Rm(Yd,jd),jd.name=Yd.name}else{if(typeof jd=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(jd))return og("application/xml");if(typeof jd=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(jd))return og("application/json")}return typeof jd=="string"?{name:jd}:jd||{name:"null"}}function pg(jd,Yd){Yd=og(Yd);var gf=Lm[Yd.name];if(!gf)return pg(jd,"text/plain");var hf=gf(jd,Yd);if(qg.hasOwnProperty(Yd.name)){var vf=qg[Yd.name];for(var $f in vf)vf.hasOwnProperty($f)&&(hf.hasOwnProperty($f)&&(hf["_"+$f]=hf[$f]),hf[$f]=vf[$f])}if(hf.name=Yd.name,Yd.helperType&&(hf.helperType=Yd.helperType),Yd.modeProps)for(var ph in Yd.modeProps)hf[ph]=Yd.modeProps[ph];return hf}var qg={};function xg(jd,Yd){var gf=qg.hasOwnProperty(jd)?qg[jd]:qg[jd]={};Af(Yd,gf)}function Yg(jd,Yd){if(Yd===!0)return Yd;if(jd.copyState)return jd.copyState(Yd);var gf={};for(var hf in Yd){var vf=Yd[hf];vf instanceof Array&&(vf=vf.concat([])),gf[hf]=vf}return gf}function w_(jd,Yd){for(var gf;jd.innerMode&&(gf=jd.innerMode(Yd),!(!gf||gf.mode==jd));)Yd=gf.state,jd=gf.mode;return gf||{mode:jd,state:Yd}}function C_(jd,Yd,gf){return jd.startState?jd.startState(Yd,gf):!0}var p_=function(jd,Yd,gf){this.pos=this.start=0,this.string=jd,this.tabSize=Yd||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=gf};p_.prototype.eol=function(){return this.pos>=this.string.length},p_.prototype.sol=function(){return this.pos==this.lineStart},p_.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},p_.prototype.next=function(){if(this.posYd},p_.prototype.eatSpace=function(){for(var jd=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>jd},p_.prototype.skipToEnd=function(){this.pos=this.string.length},p_.prototype.skipTo=function(jd){var Yd=this.string.indexOf(jd,this.pos);if(Yd>-1)return this.pos=Yd,!0},p_.prototype.backUp=function(jd){this.pos-=jd},p_.prototype.column=function(){return this.lastColumnPos0?null:($f&&Yd!==!1&&(this.pos+=$f[0].length),$f)}},p_.prototype.current=function(){return this.string.slice(this.start,this.pos)},p_.prototype.hideFirstChars=function(jd,Yd){this.lineStart+=jd;try{return Yd()}finally{this.lineStart-=jd}},p_.prototype.lookAhead=function(jd){var Yd=this.lineOracle;return Yd&&Yd.lookAhead(jd)},p_.prototype.baseToken=function(){var jd=this.lineOracle;return jd&&jd.baseToken(this.pos)};function Mg(jd,Yd){if(Yd-=jd.first,Yd<0||Yd>=jd.size)throw new Error("There is no line "+(Yd+jd.first)+" in the document.");for(var gf=jd;!gf.lines;)for(var hf=0;;++hf){var vf=gf.children[hf],$f=vf.chunkSize();if(Yd<$f){gf=vf;break}Yd-=$f}return gf.lines[Yd]}function q_(jd,Yd,gf){var hf=[],vf=Yd.line;return jd.iter(Yd.line,gf.line+1,function($f){var ph=$f.text;vf==gf.line&&(ph=ph.slice(0,gf.ch)),vf==Yd.line&&(ph=ph.slice(Yd.ch)),hf.push(ph),++vf}),hf}function m_(jd,Yd,gf){var hf=[];return jd.iter(Yd,gf,function(vf){hf.push(vf.text)}),hf}function a_(jd,Yd){var gf=Yd-jd.height;if(gf)for(var hf=jd;hf;hf=hf.parent)hf.height+=gf}function qh(jd){if(jd.parent==null)return null;for(var Yd=jd.parent,gf=dm(Yd.lines,jd),hf=Yd.parent;hf;Yd=hf,hf=hf.parent)for(var vf=0;hf.children[vf]!=Yd;++vf)gf+=hf.children[vf].chunkSize();return gf+Yd.first}function Pm(jd,Yd){var gf=jd.first;e:do{for(var hf=0;hf=jd.first&&Ydgf?sg(gf,Mg(jd,gf).text.length):Ub(Yd,Mg(jd,Yd.line).text.length)}function Ub(jd,Yd){var gf=jd.ch;return gf==null||gf>Yd?sg(jd.line,Yd):gf<0?sg(jd.line,0):jd}function Y_(jd,Yd){for(var gf=[],hf=0;hfthis.maxLookAhead&&(this.maxLookAhead=jd),Yd},pb.prototype.baseToken=function(jd){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=jd;)this.baseTokenPos+=2;var Yd=this.baseTokens[this.baseTokenPos+1];return{type:Yd&&Yd.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-jd}},pb.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},pb.fromSaved=function(jd,Yd,gf){return Yd instanceof Tb?new pb(jd,Yg(jd.mode,Yd.state),gf,Yd.lookAhead):new pb(jd,Yg(jd.mode,Yd),gf)},pb.prototype.save=function(jd){var Yd=jd!==!1?Yg(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Tb(Yd,this.maxLookAhead):Yd};function Sy(jd,Yd,gf,hf){var vf=[jd.state.modeGen],$f={};sE(jd,Yd.text,jd.doc.mode,gf,function(Kh,Om){return vf.push(Kh,Om)},$f,hf);for(var ph=gf.state,Ah=function(Kh){gf.baseTokens=vf;var Om=jd.state.overlays[Kh],Hm=1,Jm=0;gf.state=!0,sE(jd,Yd.text,Om.mode,gf,function(Qm,ug){for(var Tg=Hm;JmQm&&vf.splice(Hm,1,Qm,vf[Hm+1],kg),Hm+=2,Jm=Math.min(Qm,kg)}if(ug)if(Om.opaque)vf.splice(Tg,Hm-Tg,Qm,"overlay "+ug),Hm=Tg+2;else for(;Tgjd.options.maxHighlightLength&&Yg(jd.doc.mode,hf.state),$f=Sy(jd,Yd,hf);vf&&(hf.state=vf),Yd.stateAfter=hf.save(!vf),Yd.styles=$f.styles,$f.classes?Yd.styleClasses=$f.classes:Yd.styleClasses&&(Yd.styleClasses=null),gf===jd.doc.highlightFrontier&&(jd.doc.modeFrontier=Math.max(jd.doc.modeFrontier,++jd.doc.highlightFrontier))}return Yd.styles}function xb(jd,Yd,gf){var hf=jd.doc,vf=jd.display;if(!hf.mode.startState)return new pb(hf,!0,Yd);var $f=LE(jd,Yd,gf),ph=$f>hf.first&&Mg(hf,$f-1).stateAfter,Ah=ph?pb.fromSaved(hf,ph,$f):new pb(hf,C_(hf.mode),$f);return hf.iter($f,Yd,function(Lh){Ty(jd,Lh.text,Ah);var Kh=Ah.line;Lh.stateAfter=Kh==Yd-1||Kh%5==0||Kh>=vf.viewFrom&&KhYd.start)return $f}throw new Error("Mode "+jd.name+" failed to advance stream.")}var r_=function(jd,Yd,gf){this.start=jd.start,this.end=jd.pos,this.string=jd.current(),this.type=Yd||null,this.state=gf};function B0(jd,Yd,gf,hf){var vf=jd.doc,$f=vf.mode,ph;Yd=l_(vf,Yd);var Ah=Mg(vf,Yd.line),Lh=xb(jd,Yd.line,gf),Kh=new p_(Ah.text,jd.options.tabSize,Lh),Om;for(hf&&(Om=[]);(hf||Kh.posjd.options.maxHighlightLength?(Ah=!1,ph&&Ty(jd,Yd,hf,Om.pos),Om.pos=Yd.length,Hm=null):Hm=x0(L0(gf,Om,hf.state,Jm),$f),Jm){var Qm=Jm[0].name;Qm&&(Hm="m-"+(Hm?Qm+" "+Hm:Qm))}if(!Ah||Kh!=Hm){for(;Lhph;--Ah){if(Ah<=$f.first)return $f.first;var Lh=Mg($f,Ah-1),Kh=Lh.stateAfter;if(Kh&&(!gf||Ah+(Kh instanceof Tb?Kh.lookAhead:0)<=$f.modeFrontier))return Ah;var Om=_h(Lh.text,null,jd.options.tabSize);(vf==null||hf>Om)&&(vf=Ah-1,hf=Om)}return vf}function BE(jd,Yd){if(jd.modeFrontier=Math.min(jd.modeFrontier,Yd),!(jd.highlightFrontiergf;hf--){var vf=Mg(jd,hf).stateAfter;if(vf&&(!(vf instanceof Tb)||hf+vf.lookAhead=Yd:$f.to>Yd);(hf||(hf=[])).push(new A0(ph,$f.from,Lh?null:$f.to))}}return hf}function pT(jd,Yd,gf){var hf;if(jd)for(var vf=0;vf=Yd:$f.to>Yd);if(Ah||$f.from==Yd&&ph.type=="bookmark"&&(!gf||$f.marker.insertLeft)){var Lh=$f.from==null||(ph.inclusiveLeft?$f.from<=Yd:$f.from0&&Ah)for(var Qg=0;Qg0)){var Om=[Lh,1],Hm=Fg(Kh.from,Ah.from),Jm=Fg(Kh.to,Ah.to);(Hm<0||!ph.inclusiveLeft&&!Hm)&&Om.push({from:Kh.from,to:Ah.from}),(Jm>0||!ph.inclusiveRight&&!Jm)&&Om.push({from:Ah.to,to:Kh.to}),vf.splice.apply(vf,Om),Lh+=Om.length-3}}return vf}function Pg(jd){var Yd=jd.markedSpans;if(Yd){for(var gf=0;gfYd)&&(!hf||Cv(hf,$f.marker)<0)&&(hf=$f.marker)}return hf}function wv(jd,Yd,gf,hf,vf){var $f=Mg(jd,Yd),ph=fb&&$f.markedSpans;if(ph)for(var Ah=0;Ah=0&&Hm<=0||Om<=0&&Hm>=0)&&(Om<=0&&(Lh.marker.inclusiveRight&&vf.inclusiveLeft?Fg(Kh.to,gf)>=0:Fg(Kh.to,gf)>0)||Om>=0&&(Lh.marker.inclusiveRight&&vf.inclusiveLeft?Fg(Kh.from,hf)<=0:Fg(Kh.from,hf)<0)))return!0}}}function j_(jd){for(var Yd;Yd=ES(jd);)jd=Yd.find(-1,!0).line;return jd}function Nv(jd){for(var Yd;Yd=lE(jd);)jd=Yd.find(1,!0).line;return jd}function w0(jd){for(var Yd,gf;Yd=lE(jd);)jd=Yd.find(1,!0).line,(gf||(gf=[])).push(jd);return gf}function Q_(jd,Yd){var gf=Mg(jd,Yd),hf=j_(gf);return gf==hf?Yd:qh(hf)}function Cy(jd,Yd){if(Yd>jd.lastLine())return Yd;var gf=Mg(jd,Yd),hf;if(!ob(jd,gf))return Yd;for(;hf=lE(gf);)gf=hf.find(1,!0).line;return qh(gf)+1}function ob(jd,Yd){var gf=fb&&Yd.markedSpans;if(gf){for(var hf=void 0,vf=0;vfYd.maxLineLength&&(Yd.maxLineLength=vf,Yd.maxLine=hf)})}var Hy=function(jd,Yd,gf){this.text=jd,H_(this,Yd),this.height=gf?gf(this):1};Hy.prototype.lineNo=function(){return qh(this)},y_(Hy);function SS(jd,Yd,gf,hf){jd.text=Yd,jd.stateAfter&&(jd.stateAfter=null),jd.styles&&(jd.styles=null),jd.order!=null&&(jd.order=null),Pg(jd),H_(jd,gf);var vf=hf?hf(jd):1;vf!=jd.height&&a_(jd,vf)}function zb(jd){jd.parent=null,Pg(jd)}var Pv={},Qb={};function TS(jd,Yd){if(!jd||/^\s*$/.test(jd))return null;var gf=Yd.addModeClass?Qb:Pv;return gf[jd]||(gf[jd]=jd.replace(/\S+/g,"cm-$&"))}function cE(jd,Yd){var gf=wf("span",null,null,vd?"padding-right: .1px":null),hf={pre:wf("pre",[gf],"CodeMirror-line"),content:gf,col:0,pos:0,cm:jd,trailingSpace:!1,splitSpaces:jd.getOption("lineWrapping")};Yd.measure={};for(var vf=0;vf<=(Yd.rest?Yd.rest.length:0);vf++){var $f=vf?Yd.rest[vf-1]:Yd.line,ph=void 0;hf.pos=0,hf.addToken=UE,db(jd.display.measure)&&(ph=Km($f,jd.doc.direction))&&(hf.addToken=K_(hf.addToken,ph)),hf.map=[];var Ah=Yd!=jd.display.externalMeasured&&qh($f);Lv($f,hf,d0(jd,$f,Ah)),$f.styleClasses&&($f.styleClasses.bgClass&&(hf.bgClass=Mh($f.styleClasses.bgClass,hf.bgClass||"")),$f.styleClasses.textClass&&(hf.textClass=Mh($f.styleClasses.textClass,hf.textClass||""))),hf.map.length==0&&hf.map.push(0,0,hf.content.appendChild(Lb(jd.display.measure))),vf==0?(Yd.measure.map=hf.map,Yd.measure.cache={}):((Yd.measure.maps||(Yd.measure.maps=[])).push(hf.map),(Yd.measure.caches||(Yd.measure.caches=[])).push({}))}if(vd){var Lh=hf.content.lastChild;(/\bcm-tab\b/.test(Lh.className)||Lh.querySelector&&Lh.querySelector(".cm-tab"))&&(hf.content.className="cm-tab-wrap-hack")}return Og(jd,"renderLine",jd,Yd.line,hf.pre),hf.pre.className&&(hf.textClass=Mh(hf.pre.className,hf.textClass||"")),hf}function p0(jd){var Yd=Sf("span","•","cm-invalidchar");return Yd.title="\\u"+jd.charCodeAt(0).toString(16),Yd.setAttribute("aria-label",Yd.title),Yd}function UE(jd,Yd,gf,hf,vf,$f,ph){if(Yd){var Ah=jd.splitSpaces?HE(Yd,jd.trailingSpace):Yd,Lh=jd.cm.state.specialChars,Kh=!1,Om;if(!Lh.test(Yd))jd.col+=Yd.length,Om=document.createTextNode(Ah),jd.map.push(jd.pos,jd.pos+Yd.length,Om),gd&&yd<9&&(Kh=!0),jd.pos+=Yd.length;else{Om=document.createDocumentFragment();for(var Hm=0;;){Lh.lastIndex=Hm;var Jm=Lh.exec(Yd),Qm=Jm?Jm.index-Hm:Yd.length-Hm;if(Qm){var ug=document.createTextNode(Ah.slice(Hm,Hm+Qm));gd&&yd<9?Om.appendChild(Sf("span",[ug])):Om.appendChild(ug),jd.map.push(jd.pos,jd.pos+Qm,ug),jd.col+=Qm,jd.pos+=Qm}if(!Jm)break;Hm+=Qm+1;var Tg=void 0;if(Jm[0]==" "){var kg=jd.cm.options.tabSize,Gg=kg-jd.col%kg;Tg=Om.appendChild(Sf("span",$h(Gg),"cm-tab")),Tg.setAttribute("role","presentation"),Tg.setAttribute("cm-text"," "),jd.col+=Gg}else Jm[0]=="\r"||Jm[0]==` +`?(Tg=Om.appendChild(Sf("span",Jm[0]=="\r"?"␍":"␤","cm-invalidchar")),Tg.setAttribute("cm-text",Jm[0]),jd.col+=1):(Tg=jd.cm.options.specialCharPlaceholder(Jm[0]),Tg.setAttribute("cm-text",Jm[0]),gd&&yd<9?Om.appendChild(Sf("span",[Tg])):Om.appendChild(Tg),jd.col+=1);jd.map.push(jd.pos,jd.pos+1,Tg),jd.pos++}}if(jd.trailingSpace=Ah.charCodeAt(Yd.length-1)==32,gf||hf||vf||Kh||$f||ph){var Vg=gf||"";hf&&(Vg+=hf),vf&&(Vg+=vf);var Ug=Sf("span",[Om],Vg,$f);if(ph)for(var Qg in ph)ph.hasOwnProperty(Qg)&&Qg!="style"&&Qg!="class"&&Ug.setAttribute(Qg,ph[Qg]);return jd.content.appendChild(Ug)}jd.content.appendChild(Om)}}function HE(jd,Yd){if(jd.length>1&&!/ /.test(jd))return jd;for(var gf=Yd,hf="",vf=0;vfKh&&Hm.from<=Kh));Jm++);if(Hm.to>=Om)return jd(gf,hf,vf,$f,ph,Ah,Lh);jd(gf,hf.slice(0,Hm.to-Kh),vf,$f,null,Ah,Lh),$f=null,hf=hf.slice(Hm.to-Kh),Kh=Hm.to}}}function Gy(jd,Yd,gf,hf){var vf=!hf&&gf.widgetNode;vf&&jd.map.push(jd.pos,jd.pos+Yd,vf),!hf&&jd.cm.display.input.needsContentAttribute&&(vf||(vf=jd.content.appendChild(document.createElement("span"))),vf.setAttribute("cm-marker",gf.id)),vf&&(jd.cm.display.input.setUneditable(vf),jd.content.appendChild(vf)),jd.pos+=Yd,jd.trailingSpace=!1}function Lv(jd,Yd,gf){var hf=jd.markedSpans,vf=jd.text,$f=0;if(!hf){for(var ph=1;phLh||E_.collapsed&&n_.to==Lh&&n_.from==Lh)){if(n_.to!=null&&n_.to!=Lh&&Qm>n_.to&&(Qm=n_.to,Tg=""),E_.className&&(ug+=" "+E_.className),E_.css&&(Jm=(Jm?Jm+";":"")+E_.css),E_.startStyle&&n_.from==Lh&&(kg+=" "+E_.startStyle),E_.endStyle&&n_.to==Qm&&(Qg||(Qg=[])).push(E_.endStyle,n_.to),E_.title&&((Vg||(Vg={})).title=E_.title),E_.attributes)for(var G_ in E_.attributes)(Vg||(Vg={}))[G_]=E_.attributes[G_];E_.collapsed&&(!Gg||Cv(Gg.marker,E_)<0)&&(Gg=n_)}else n_.from>Lh&&Qm>n_.from&&(Qm=n_.from)}if(Qg)for(var ub=0;ub=Ah)break;for(var rb=Math.min(Ah,Qm);;){if(Om){var hb=Lh+Om.length;if(!Gg){var mb=hb>rb?Om.slice(0,rb-Lh):Om;Yd.addToken(Yd,mb,Hm?Hm+ug:ug,kg,Lh+mb.length==Qm?Tg:"",Jm,Vg)}if(hb>=rb){Om=Om.slice(rb-Lh),Lh=rb;break}Lh=hb,kg=""}Om=vf.slice($f,$f=gf[Kh++]),Hm=TS(gf[Kh++],Yd.cm.options)}}}function xS(jd,Yd,gf){this.line=Yd,this.rest=w0(Yd),this.size=this.rest?qh(wh(this.rest))-gf+1:1,this.node=this.text=null,this.hidden=ob(jd,Yd)}function U0(jd,Yd,gf){for(var hf=[],vf,$f=Yd;$f2&&$f.push((Lh.bottom+Kh.top)/2-gf.top)}}$f.push(gf.bottom-gf.top)}}function ex(jd,Yd,gf){if(jd.line==Yd)return{map:jd.measure.map,cache:jd.measure.cache};if(jd.rest){for(var hf=0;hfgf)return{map:jd.measure.maps[vf],cache:jd.measure.caches[vf],before:!0}}}function o1(jd,Yd){Yd=j_(Yd);var gf=qh(Yd),hf=jd.display.externalMeasured=new xS(jd.doc,Yd,gf);hf.lineN=gf;var vf=hf.built=cE(jd,hf);return hf.text=vf.pre,If(jd.display.lineMeasure,vf.pre),hf}function AS(jd,Yd,gf,hf){return ey(jd,Zb(jd,Yd),gf,hf)}function wS(jd,Yd){if(Yd>=jd.display.viewFrom&&Yd=gf.lineN&&YdYd)&&($f=Lh-Ah,vf=$f-1,Yd>=Lh&&(ph="right")),vf!=null){if(hf=jd[Kh+2],Ah==Lh&&gf==(hf.insertLeft?"left":"right")&&(ph=gf),gf=="left"&&vf==0)for(;Kh&&jd[Kh-2]==jd[Kh-3]&&jd[Kh-1].insertLeft;)hf=jd[(Kh-=3)+2],ph="left";if(gf=="right"&&vf==Lh-Ah)for(;Kh=0&&(gf=jd[vf]).left==gf.right;vf--);return gf}function VE(jd,Yd,gf,hf){var vf=nx(Yd.map,gf,hf),$f=vf.node,ph=vf.start,Ah=vf.end,Lh=vf.collapse,Kh;if($f.nodeType==3){for(var Om=0;Om<4;Om++){for(;ph&&Fh(Yd.line.text.charAt(vf.coverStart+ph));)--ph;for(;vf.coverStart+Ah0&&(Lh=hf="right");var Hm;jd.options.lineWrapping&&(Hm=$f.getClientRects()).length>1?Kh=Hm[hf=="right"?Hm.length-1:0]:Kh=$f.getBoundingClientRect()}if(gd&&yd<9&&!ph&&(!Kh||!Kh.left&&!Kh.right)){var Jm=$f.parentNode.getClientRects()[0];Jm?Kh={left:Jm.left,right:Jm.left+N0(jd.display),top:Jm.top,bottom:Jm.bottom}:Kh=tx}for(var Qm=Kh.top-Yd.rect.top,ug=Kh.bottom-Yd.rect.top,Tg=(Qm+ug)/2,kg=Yd.view.measure.heights,Gg=0;Gg=hf.text.length?(Lh=hf.text.length,Kh="before"):Lh<=0&&(Lh=0,Kh="after"),!Ah)return ph(Kh=="before"?Lh-1:Lh,Kh=="before");function Om(ug,Tg,kg){var Gg=Ah[Tg],Vg=Gg.level==1;return ph(kg?ug-1:ug,Vg!=kg)}var Hm=Sm(Ah,Lh,Kh),Jm=Vh,Qm=Om(Lh,Hm,Kh=="before");return Jm!=null&&(Qm.other=Om(Lh,Jm,Kh!="before")),Qm}function e_(jd,Yd){var gf=0;Yd=l_(jd.doc,Yd),jd.options.lineWrapping||(gf=N0(jd.display)*Yd.ch);var hf=Mg(jd.doc,Yd.line),vf=Ay(hf)+Cb(jd.display);return{left:gf,right:gf,top:vf,bottom:vf+hf.height}}function __(jd,Yd,gf,hf,vf){var $f=sg(jd,Yd,gf);return $f.xRel=vf,hf&&($f.outside=hf),$f}function O_(jd,Yd,gf){var hf=jd.doc;if(gf+=jd.display.viewOffset,gf<0)return __(hf.first,0,null,-1,-1);var vf=Pm(hf,gf),$f=hf.first+hf.size-1;if(vf>$f)return __(hf.first+hf.size-1,Mg(hf,$f).text.length,null,1,1);Yd<0&&(Yd=0);for(var ph=Mg(hf,vf);;){var Ah=u1(jd,ph,vf,Yd,gf),Lh=vS(ph,Ah.ch+(Ah.xRel>0||Ah.outside>0?1:0));if(!Lh)return Ah;var Kh=Lh.find(1);if(Kh.line==vf)return Kh;ph=Mg(hf,vf=Kh.line)}}function yb(jd,Yd,gf,hf){hf-=gT(Yd);var vf=Yd.text.length,$f=Rf(function(ph){return ey(jd,gf,ph-1).bottom<=hf},vf,0);return vf=Rf(function(ph){return ey(jd,gf,ph).top>hf},$f,vf),{begin:$f,end:vf}}function V_(jd,Yd,gf,hf){gf||(gf=Zb(jd,Yd));var vf=D0(jd,Yd,ey(jd,gf,hf),"line").top;return yb(jd,Yd,gf,vf)}function Fv(jd,Yd,gf,hf){return jd.bottom<=gf?!1:jd.top>gf?!0:(hf?jd.left:jd.right)>Yd}function u1(jd,Yd,gf,hf,vf){vf-=Ay(Yd);var $f=Zb(jd,Yd),ph=gT(Yd),Ah=0,Lh=Yd.text.length,Kh=!0,Om=Km(Yd,jd.doc.direction);if(Om){var Hm=(jd.options.lineWrapping?DS:Iy)(jd,Yd,gf,$f,Om,hf,vf);Kh=Hm.level!=1,Ah=Kh?Hm.from:Hm.to-1,Lh=Kh?Hm.to:Hm.from-1}var Jm=null,Qm=null,ug=Rf(function(i_){var n_=ey(jd,$f,i_);return n_.top+=ph,n_.bottom+=ph,Fv(n_,hf,vf,!1)?(n_.top<=vf&&n_.left<=hf&&(Jm=i_,Qm=n_),!0):!1},Ah,Lh),Tg,kg,Gg=!1;if(Qm){var Vg=hf-Qm.left=Qg.bottom?1:0}return ug=kf(Yd.text,ug,1),__(gf,ug,kg,Gg,hf-Tg)}function Iy(jd,Yd,gf,hf,vf,$f,ph){var Ah=Rf(function(Hm){var Jm=vf[Hm],Qm=Jm.level!=1;return Fv(lg(jd,sg(gf,Qm?Jm.to:Jm.from,Qm?"before":"after"),"line",Yd,hf),$f,ph,!0)},0,vf.length-1),Lh=vf[Ah];if(Ah>0){var Kh=Lh.level!=1,Om=lg(jd,sg(gf,Kh?Lh.from:Lh.to,Kh?"after":"before"),"line",Yd,hf);Fv(Om,$f,ph,!0)&&Om.top>ph&&(Lh=vf[Ah-1])}return Lh}function DS(jd,Yd,gf,hf,vf,$f,ph){var Ah=yb(jd,Yd,hf,ph),Lh=Ah.begin,Kh=Ah.end;/\s/.test(Yd.text.charAt(Kh-1))&&Kh--;for(var Om=null,Hm=null,Jm=0;Jm=Kh||Qm.to<=Lh)){var ug=Qm.level!=1,Tg=ey(jd,hf,ug?Math.min(Kh,Qm.to)-1:Math.max(Lh,Qm.from)).right,kg=Tg<$f?$f-Tg+1e9:Tg-$f;(!Om||Hm>kg)&&(Om=Qm,Hm=kg)}}return Om||(Om=vf[vf.length-1]),Om.fromKh&&(Om={from:Om.from,to:Kh,level:Om.level}),Om}var fE;function Vy(jd){if(jd.cachedTextHeight!=null)return jd.cachedTextHeight;if(fE==null){fE=Sf("pre",null,"CodeMirror-line-like");for(var Yd=0;Yd<49;++Yd)fE.appendChild(document.createTextNode("x")),fE.appendChild(Sf("br"));fE.appendChild(document.createTextNode("x"))}If(jd.measure,fE);var gf=fE.offsetHeight/50;return gf>3&&(jd.cachedTextHeight=gf),Cf(jd.measure),gf||1}function N0(jd){if(jd.cachedCharWidth!=null)return jd.cachedCharWidth;var Yd=Sf("span","xxxxxxxxxx"),gf=Sf("pre",[Yd],"CodeMirror-line-like");If(jd.measure,gf);var hf=Yd.getBoundingClientRect(),vf=(hf.right-hf.left)/10;return vf>2&&(jd.cachedCharWidth=vf),vf||10}function zE(jd){for(var Yd=jd.display,gf={},hf={},vf=Yd.gutters.clientLeft,$f=Yd.gutters.firstChild,ph=0;$f;$f=$f.nextSibling,++ph){var Ah=jd.display.gutterSpecs[ph].className;gf[Ah]=$f.offsetLeft+$f.clientLeft+vf,hf[Ah]=$f.clientWidth}return{fixedPos:F_(Yd),gutterTotalWidth:Yd.gutters.offsetWidth,gutterLeft:gf,gutterWidth:hf,wrapperWidth:Yd.wrapper.clientWidth}}function F_(jd){return jd.scroller.getBoundingClientRect().left-jd.sizer.getBoundingClientRect().left}function ox(jd){var Yd=Vy(jd.display),gf=jd.options.lineWrapping,hf=gf&&Math.max(5,jd.display.scroller.clientWidth/N0(jd.display)-3);return function(vf){if(ob(jd.doc,vf))return 0;var $f=0;if(vf.widgets)for(var ph=0;ph0&&(Kh=Mg(jd.doc,Lh.line).text).length==Lh.ch){var Om=_h(Kh,Kh.length,jd.options.tabSize)-Kh.length;Lh=sg(Lh.line,Math.max(0,Math.round(($f-GE(jd.display).left)/N0(jd.display))-Om))}return Lh}function hE(jd,Yd){if(Yd>=jd.display.viewTo||(Yd-=jd.display.viewFrom,Yd<0))return null;for(var gf=jd.display.view,hf=0;hfYd)&&(vf.updateLineNumbers=Yd),jd.curOp.viewChanged=!0,Yd>=vf.viewTo)fb&&Q_(jd.doc,Yd)vf.viewFrom?Wy(jd):(vf.viewFrom+=hf,vf.viewTo+=hf);else if(Yd<=vf.viewFrom&&gf>=vf.viewTo)Wy(jd);else if(Yd<=vf.viewFrom){var $f=e0(jd,gf,gf+hf,1);$f?(vf.view=vf.view.slice($f.index),vf.viewFrom=$f.lineN,vf.viewTo+=hf):Wy(jd)}else if(gf>=vf.viewTo){var ph=e0(jd,Yd,Yd,-1);ph?(vf.view=vf.view.slice(0,ph.index),vf.viewTo=ph.lineN):Wy(jd)}else{var Ah=e0(jd,Yd,Yd,-1),Lh=e0(jd,gf,gf+hf,1);Ah&&Lh?(vf.view=vf.view.slice(0,Ah.index).concat(U0(jd,Ah.lineN,Lh.lineN)).concat(vf.view.slice(Lh.index)),vf.viewTo+=hf):Wy(jd)}var Kh=vf.externalMeasured;Kh&&(gf=vf.lineN&&Yd=hf.viewTo)){var $f=hf.view[hE(jd,Yd)];if($f.node!=null){var ph=$f.changes||($f.changes=[]);dm(ph,gf)==-1&&ph.push(gf)}}}function Wy(jd){jd.display.viewFrom=jd.display.viewTo=jd.doc.first,jd.display.view=[],jd.display.viewOffset=0}function e0(jd,Yd,gf,hf){var vf=hE(jd,Yd),$f,ph=jd.display.view;if(!fb||gf==jd.doc.first+jd.doc.size)return{index:vf,lineN:gf};for(var Ah=jd.display.viewFrom,Lh=0;Lh0){if(vf==ph.length-1)return null;$f=Ah+ph[vf].size-Yd,vf++}else $f=Ah-Yd;Yd+=$f,gf+=$f}for(;Q_(jd.doc,gf)!=gf;){if(vf==(hf<0?0:ph.length-1))return null;gf+=hf*ph[vf-(hf<0?1:0)].size,vf+=hf}return{index:vf,lineN:gf}}function RS(jd,Yd,gf){var hf=jd.display,vf=hf.view;vf.length==0||Yd>=hf.viewTo||gf<=hf.viewFrom?(hf.view=U0(jd,Yd,gf),hf.viewFrom=Yd):(hf.viewFrom>Yd?hf.view=U0(jd,Yd,hf.viewFrom).concat(hf.view):hf.viewFromgf&&(hf.view=hf.view.slice(0,hE(jd,gf)))),hf.viewTo=gf}function yT(jd){for(var Yd=jd.display.view,gf=0,hf=0;hf=jd.display.viewTo||Lh.to().line0?ph:jd.defaultCharWidth())+"px"}if(hf.other){var Ah=gf.appendChild(Sf("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));Ah.style.display="",Ah.style.left=hf.other.left+"px",Ah.style.top=hf.other.top+"px",Ah.style.height=(hf.other.bottom-hf.other.top)*.85+"px"}}function mE(jd,Yd){return jd.top-Yd.top||jd.left-Yd.left}function lx(jd,Yd,gf){var hf=jd.display,vf=jd.doc,$f=document.createDocumentFragment(),ph=GE(jd.display),Ah=ph.left,Lh=Math.max(hf.sizerWidth,pE(jd)-hf.sizer.offsetLeft)-ph.right,Kh=vf.direction=="ltr";function Om(Ug,Qg,i_,n_){Qg<0&&(Qg=0),Qg=Math.round(Qg),n_=Math.round(n_),$f.appendChild(Sf("div",null,"CodeMirror-selected","position: absolute; left: "+Ug+`px; top: `+Qg+"px; width: "+(i_??Lh-Ug)+`px; height: `+(n_-Qg)+"px"))}function Hm(Ug,Qg,i_){var n_=Mg(vf,Ug),E_=n_.text.length,G_,ub;function J_(mb,Gb){return fg(jd,sg(Ug,mb),"div",n_,Gb)}function rb(mb,Gb,Pb){var vb=V_(jd,n_,null,mb),gb=Gb=="ltr"==(Pb=="after")?"left":"right",ib=Pb=="after"?vb.begin:vb.end-(/\s/.test(n_.text.charAt(vb.end-1))?2:1);return J_(ib,gb)[gb]}var hb=Km(n_,vf.direction);return Dh(hb,Qg||0,i_??E_,function(mb,Gb,Pb,vb){var gb=Pb=="ltr",ib=J_(mb,gb?"left":"right"),Yb=J_(Gb-1,gb?"right":"left"),yv=Qg==null&&mb==0,tE=i_==null&&Gb==E_,Fb=vb==0,E0=!hb||vb==hb.length-1;if(Yb.top-ib.top<=3){var Ib=(Kh?yv:tE)&&Fb,XT=(Kh?tE:yv)&&E0,v0=Ib?Ah:(gb?ib:Yb).left,nE=XT?Lh:(gb?Yb:ib).right;Om(v0,ib.top,nE-v0,ib.bottom)}else{var rE,qb,Ev,QT;gb?(rE=Kh&&yv&&Fb?Ah:ib.left,qb=Kh?Lh:rb(mb,Pb,"before"),Ev=Kh?Ah:rb(Gb,Pb,"after"),QT=Kh&&tE&&E0?Lh:Yb.right):(rE=Kh?rb(mb,Pb,"before"):Ah,qb=!Kh&&yv&&Fb?Lh:ib.right,Ev=!Kh&&tE&&E0?Ah:Yb.left,QT=Kh?rb(Gb,Pb,"after"):Lh),Om(rE,ib.top,qb-rE,ib.bottom),ib.bottom0?Yd.blinker=setInterval(function(){jd.hasFocus()||YE(jd),Yd.cursorDiv.style.visibility=(gf=!gf)?"":"hidden"},jd.options.cursorBlinkRate):jd.options.cursorBlinkRate<0&&(Yd.cursorDiv.style.visibility="hidden")}}function q0(jd){jd.hasFocus()||(jd.display.input.focus(),jd.state.focused||vT(jd))}function WE(jd){jd.state.delayingBlurEvent=!0,setTimeout(function(){jd.state.delayingBlurEvent&&(jd.state.delayingBlurEvent=!1,jd.state.focused&&YE(jd))},100)}function vT(jd,Yd){jd.state.delayingBlurEvent&&!jd.state.draggingText&&(jd.state.delayingBlurEvent=!1),jd.options.readOnly!="nocursor"&&(jd.state.focused||(Og(jd,"focus",jd,Yd),jd.state.focused=!0,Eh(jd.display.wrapper,"CodeMirror-focused"),!jd.curOp&&jd.display.selForContextMenu!=jd.doc.sel&&(jd.display.input.reset(),vd&&setTimeout(function(){return jd.display.input.reset(!0)},20)),jd.display.input.receivedFocus()),gE(jd))}function YE(jd,Yd){jd.state.delayingBlurEvent||(jd.state.focused&&(Og(jd,"blur",jd,Yd),jd.state.focused=!1,xf(jd.display.wrapper,"CodeMirror-focused")),clearInterval(jd.display.blinker),setTimeout(function(){jd.state.focused||(jd.display.shift=!1)},150))}function kS(jd){for(var Yd=jd.display,gf=Yd.lineDiv.offsetTop,hf=Math.max(0,Yd.scroller.getBoundingClientRect().top),vf=Yd.lineDiv.getBoundingClientRect().top,$f=0,ph=0;ph.005||Qm<-.005)&&(vfjd.display.sizerWidth){var Tg=Math.ceil(Om/N0(jd.display));Tg>jd.display.maxLineLength&&(jd.display.maxLineLength=Tg,jd.display.maxLine=Ah.line,jd.display.maxLineChanged=!0)}}}Math.abs($f)>2&&(Yd.scroller.scrollTop+=$f)}function jv(jd){if(jd.widgets)for(var Yd=0;Yd=ph&&($f=Pm(Yd,Ay(Mg(Yd,Lh))-jd.wrapper.clientHeight),ph=Lh)}return{from:$f,to:Math.max(ph,$f+1)}}function ST(jd,Yd){if(!Wg(jd,"scrollCursorIntoView")){var gf=jd.display,hf=gf.sizer.getBoundingClientRect(),vf=null,$f=gf.wrapper.ownerDocument;if(Yd.top+hf.top<0?vf=!0:Yd.bottom+hf.top>($f.defaultView.innerHeight||$f.documentElement.clientHeight)&&(vf=!1),vf!=null&&!Gd){var ph=Sf("div","​",null,`position: absolute; top: `+(Yd.top-gf.viewOffset-Cb(jd.display))+`px; height: `+(Yd.bottom-Yd.top+f0(jd)+gf.barHeight)+`px; - left: `+Yd.left+"px; width: "+Math.max(2,Yd.right-Yd.left)+"px;");jd.display.lineSpace.appendChild(ph),ph.scrollIntoView(vf),jd.display.lineSpace.removeChild(ph)}}}function c1(jd,Yd,gf,hf){hf==null&&(hf=0);var vf;!jd.options.lineWrapping&&Yd==gf&&(gf=Yd.sticky=="before"?sg(Yd.line,Yd.ch+1,"before"):Yd,Yd=Yd.ch?sg(Yd.line,Yd.sticky=="before"?Yd.ch-1:Yd.ch,"after"):Yd);for(var $f=0;$f<5;$f++){var ph=!1,Ah=og(jd,Yd),Lh=!gf||gf==Yd?Ah:og(jd,gf);vf={left:Math.min(Ah.left,Lh.left),top:Math.min(Ah.top,Lh.top)-hf,right:Math.max(Ah.left,Lh.left),bottom:Math.max(Ah.bottom,Lh.bottom)+hf};var Kh=TT(jd,vf),Om=jd.doc.scrollTop,Hm=jd.doc.scrollLeft;if(Kh.scrollTop!=null&&(Uv(jd,Kh.scrollTop),Math.abs(jd.doc.scrollTop-Om)>1&&(ph=!0)),Kh.scrollLeft!=null&&(t0(jd,Kh.scrollLeft),Math.abs(jd.doc.scrollLeft-Hm)>1&&(ph=!0)),!ph)break}return vf}function ux(jd,Yd){var gf=TT(jd,Yd);gf.scrollTop!=null&&Uv(jd,gf.scrollTop),gf.scrollLeft!=null&&t0(jd,gf.scrollLeft)}function TT(jd,Yd){var gf=jd.display,hf=Vy(jd.display);Yd.top<0&&(Yd.top=0);var vf=jd.curOp&&jd.curOp.scrollTop!=null?jd.curOp.scrollTop:gf.scroller.scrollTop,$f=hT(jd),ph={};Yd.bottom-Yd.top>$f&&(Yd.bottom=Yd.top+$f);var Ah=jd.doc.height+dE(gf),Lh=Yd.topAh-hf;if(Yd.topvf+$f){var Om=Math.min(Yd.top,(Kh?Ah:Yd.bottom)-$f);Om!=vf&&(ph.scrollTop=Om)}var Hm=jd.options.fixedGutter?0:gf.gutters.offsetWidth,Jm=jd.curOp&&jd.curOp.scrollLeft!=null?jd.curOp.scrollLeft:gf.scroller.scrollLeft-Hm,Qm=pE(jd)-gf.gutters.offsetWidth,ug=Yd.right-Yd.left>Qm;return ug&&(Yd.right=Yd.left+Qm),Yd.left<10?ph.scrollLeft=0:Yd.leftQm+Jm-3&&(ph.scrollLeft=Yd.right+(ug?0:10)-Qm),ph}function xT(jd,Yd){Yd!=null&&(MS(jd),jd.curOp.scrollTop=(jd.curOp.scrollTop==null?jd.doc.scrollTop:jd.curOp.scrollTop)+Yd)}function Z_(jd){MS(jd);var Yd=jd.getCursor();jd.curOp.scrollToPos={from:Yd,to:Yd,margin:jd.options.cursorScrollMargin}}function Eb(jd,Yd,gf){(Yd!=null||gf!=null)&&MS(jd),Yd!=null&&(jd.curOp.scrollLeft=Yd),gf!=null&&(jd.curOp.scrollTop=gf)}function d1(jd,Yd){MS(jd),jd.curOp.scrollToPos=Yd}function MS(jd){var Yd=jd.curOp.scrollToPos;if(Yd){jd.curOp.scrollToPos=null;var gf=e_(jd,Yd.from),hf=e_(jd,Yd.to);CT(jd,gf,hf,Yd.margin)}}function CT(jd,Yd,gf,hf){var vf=TT(jd,{left:Math.min(Yd.left,gf.left),top:Math.min(Yd.top,gf.top)-hf,right:Math.max(Yd.right,gf.right),bottom:Math.max(Yd.bottom,gf.bottom)+hf});Eb(jd,vf.scrollLeft,vf.scrollTop)}function Uv(jd,Yd){Math.abs(jd.doc.scrollTop-Yd)<2||(pd||n0(jd,{top:Yd}),$S(jd,Yd,!0),pd&&n0(jd),qv(jd,100))}function $S(jd,Yd,gf){Yd=Math.max(0,Math.min(jd.display.scroller.scrollHeight-jd.display.scroller.clientHeight,Yd)),!(jd.display.scroller.scrollTop==Yd&&!gf)&&(jd.doc.scrollTop=Yd,jd.display.scrollbars.setScrollTop(Yd),jd.display.scroller.scrollTop!=Yd&&(jd.display.scroller.scrollTop=Yd))}function t0(jd,Yd,gf,hf){Yd=Math.max(0,Math.min(Yd,jd.display.scroller.scrollWidth-jd.display.scroller.clientWidth)),!((gf?Yd==jd.doc.scrollLeft:Math.abs(jd.doc.scrollLeft-Yd)<2)&&!hf)&&(jd.doc.scrollLeft=Yd,hx(jd),jd.display.scroller.scrollLeft!=Yd&&(jd.display.scroller.scrollLeft=Yd),jd.display.scrollbars.setScrollLeft(Yd))}function vE(jd){var Yd=jd.display,gf=Yd.gutters.offsetWidth,hf=Math.round(jd.doc.height+dE(jd.display));return{clientHeight:Yd.scroller.clientHeight,viewHeight:Yd.wrapper.clientHeight,scrollWidth:Yd.scroller.scrollWidth,clientWidth:Yd.scroller.clientWidth,viewWidth:Yd.wrapper.clientWidth,barLeft:jd.options.fixedGutter?gf:0,docHeight:hf,scrollHeight:hf+f0(jd)+Yd.barHeight,nativeBarWidth:Yd.nativeBarWidth,gutterWidth:gf}}var Ry=function(jd,Yd,gf){this.cm=gf;var hf=this.vert=Sf("div",[Sf("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),vf=this.horiz=Sf("div",[Sf("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");hf.tabIndex=vf.tabIndex=-1,jd(hf),jd(vf),ig(hf,"scroll",function(){hf.clientHeight&&Yd(hf.scrollTop,"vertical")}),ig(vf,"scroll",function(){vf.clientWidth&&Yd(vf.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,gd&&yd<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Ry.prototype.update=function(jd){var Yd=jd.scrollWidth>jd.clientWidth+1,gf=jd.scrollHeight>jd.clientHeight+1,hf=jd.nativeBarWidth;if(gf){this.vert.style.display="block",this.vert.style.bottom=Yd?hf+"px":"0";var vf=jd.viewHeight-(Yd?hf:0);this.vert.firstChild.style.height=Math.max(0,jd.scrollHeight-jd.clientHeight+vf)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(Yd){this.horiz.style.display="block",this.horiz.style.right=gf?hf+"px":"0",this.horiz.style.left=jd.barLeft+"px";var $f=jd.viewWidth-jd.barLeft-(gf?hf:0);this.horiz.firstChild.style.width=Math.max(0,jd.scrollWidth-jd.clientWidth+$f)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&jd.clientHeight>0&&(hf==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:gf?hf:0,bottom:Yd?hf:0}},Ry.prototype.setScrollLeft=function(jd){this.horiz.scrollLeft!=jd&&(this.horiz.scrollLeft=jd),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Ry.prototype.setScrollTop=function(jd){this.vert.scrollTop!=jd&&(this.vert.scrollTop=jd),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Ry.prototype.zeroWidthHack=function(){var jd=Kd&&!Vd?"12px":"18px";this.horiz.style.height=this.vert.style.width=jd,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new Nh,this.disableVert=new Nh},Ry.prototype.enableZeroWidthBar=function(jd,Yd,gf){jd.style.visibility="";function hf(){var vf=jd.getBoundingClientRect(),$f=gf=="vert"?document.elementFromPoint(vf.right-1,(vf.top+vf.bottom)/2):document.elementFromPoint((vf.right+vf.left)/2,vf.bottom-1);$f!=jd?jd.style.visibility="hidden":Yd.set(1e3,hf)}Yd.set(1e3,hf)},Ry.prototype.clear=function(){var jd=this.horiz.parentNode;jd.removeChild(this.horiz),jd.removeChild(this.vert)};var I0=function(){};I0.prototype.update=function(){return{bottom:0,right:0}},I0.prototype.setScrollLeft=function(){},I0.prototype.setScrollTop=function(){},I0.prototype.clear=function(){};function m0(jd,Yd){Yd||(Yd=vE(jd));var gf=jd.display.barWidth,hf=jd.display.barHeight;Hv(jd,Yd);for(var vf=0;vf<4&&gf!=jd.display.barWidth||hf!=jd.display.barHeight;vf++)gf!=jd.display.barWidth&&jd.options.lineWrapping&&kS(jd),Hv(jd,vE(jd)),gf=jd.display.barWidth,hf=jd.display.barHeight}function Hv(jd,Yd){var gf=jd.display,hf=gf.scrollbars.update(Yd);gf.sizer.style.paddingRight=(gf.barWidth=hf.right)+"px",gf.sizer.style.paddingBottom=(gf.barHeight=hf.bottom)+"px",gf.heightForcer.style.borderBottom=hf.bottom+"px solid transparent",hf.right&&hf.bottom?(gf.scrollbarFiller.style.display="block",gf.scrollbarFiller.style.height=hf.bottom+"px",gf.scrollbarFiller.style.width=hf.right+"px"):gf.scrollbarFiller.style.display="",hf.bottom&&jd.options.coverGutterNextToScrollbar&&jd.options.fixedGutter?(gf.gutterFiller.style.display="block",gf.gutterFiller.style.height=hf.bottom+"px",gf.gutterFiller.style.width=Yd.gutterWidth+"px"):gf.gutterFiller.style.display=""}var SE={native:Ry,null:I0};function dx(jd){jd.display.scrollbars&&(jd.display.scrollbars.clear(),jd.display.scrollbars.addClass&&xf(jd.display.wrapper,jd.display.scrollbars.addClass)),jd.display.scrollbars=new SE[jd.options.scrollbarStyle](function(Yd){jd.display.wrapper.insertBefore(Yd,jd.display.scrollbarFiller),ig(Yd,"mousedown",function(){jd.state.focused&&setTimeout(function(){return jd.display.input.focus()},0)}),Yd.setAttribute("cm-not-content","true")},function(Yd,gf){gf=="horizontal"?t0(jd,Yd):Uv(jd,Yd)},jd),jd.display.scrollbars.addClass&&Eh(jd.display.wrapper,jd.display.scrollbars.addClass)}var p1=0;function TE(jd){jd.curOp={cm:jd,viewChanged:!1,startHeight:jd.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:++p1,markArrays:null},CS(jd.curOp)}function xE(jd){var Yd=jd.curOp;Yd&&Jd(Yd,function(gf){for(var hf=0;hf=gf.viewTo)||gf.maxLineChanged&&Yd.options.lineWrapping,jd.update=jd.mustUpdate&&new g0(Yd,jd.mustUpdate&&{top:jd.scrollTop,ensure:jd.scrollToPos},jd.forceUpdate)}function Gv(jd){jd.updatedDisplay=jd.mustUpdate&&AT(jd.cm,jd.update)}function px(jd){var Yd=jd.cm,gf=Yd.display;jd.updatedDisplay&&kS(Yd),jd.barMeasure=vE(Yd),gf.maxLineChanged&&!Yd.options.lineWrapping&&(jd.adjustWidthTo=AS(Yd,gf.maxLine,gf.maxLine.text.length).left+3,Yd.display.sizerWidth=jd.adjustWidthTo,jd.barMeasure.scrollWidth=Math.max(gf.scroller.clientWidth,gf.sizer.offsetLeft+jd.adjustWidthTo+f0(Yd)+Yd.display.barWidth),jd.maxScrollLeft=Math.max(0,gf.sizer.offsetLeft+jd.adjustWidthTo-pE(Yd))),(jd.updatedDisplay||jd.selectionChanged)&&(jd.preparedSelection=gf.input.prepareSelection())}function _m(jd){var Yd=jd.cm;jd.adjustWidthTo!=null&&(Yd.display.sizer.style.minWidth=jd.adjustWidthTo+"px",jd.maxScrollLeft=jd.display.viewTo)){var gf=+new Date+jd.options.workTime,hf=xb(jd,Yd.highlightFrontier),vf=[];Yd.iter(hf.line,Math.min(Yd.first+Yd.size,jd.display.viewTo+500),function($f){if(hf.line>=jd.display.viewFrom){var ph=$f.styles,Ah=$f.text.length>jd.options.maxHighlightLength?Yg(Yd.mode,hf.state):null,Lh=Sy(jd,$f,hf,!0);Ah&&(hf.state=Ah),$f.styles=Lh.styles;var Kh=$f.styleClasses,Om=Lh.classes;Om?$f.styleClasses=Om:Kh&&($f.styleClasses=null);for(var Hm=!ph||ph.length!=$f.styles.length||Kh!=Om&&(!Kh||!Om||Kh.bgClass!=Om.bgClass||Kh.textClass!=Om.textClass),Jm=0;!Hm&&Jmgf)return qv(jd,jd.options.workDelay),!0}),Yd.highlightFrontier=hf.line,Yd.modeFrontier=Math.max(Yd.modeFrontier,hf.line),vf.length&&Bb(jd,function(){for(var $f=0;$f=gf.viewFrom&&Yd.visible.to<=gf.viewTo&&(gf.updateLineNumbers==null||gf.updateLineNumbers>=gf.viewTo)&&gf.renderedView==gf.view&&yT(jd)==0)return!1;mx(jd)&&(Wy(jd),Yd.dims=zE(jd));var vf=hf.first+hf.size,$f=Math.max(Yd.visible.from-jd.options.viewportMargin,hf.first),ph=Math.min(vf,Yd.visible.to+jd.options.viewportMargin);gf.viewFrom<$f&&$f-gf.viewFrom<20&&($f=Math.max(hf.first,gf.viewFrom)),gf.viewTo>ph&&gf.viewTo-ph<20&&(ph=Math.min(vf,gf.viewTo)),fb&&($f=Q_(jd.doc,$f),ph=Cy(jd.doc,ph));var Ah=$f!=gf.viewFrom||ph!=gf.viewTo||gf.lastWrapHeight!=Yd.wrapperHeight||gf.lastWrapWidth!=Yd.wrapperWidth;RS(jd,$f,ph),gf.viewOffset=Ay(Mg(jd.doc,gf.viewFrom)),jd.display.mover.style.top=gf.viewOffset+"px";var Lh=yT(jd);if(!Ah&&Lh==0&&!Yd.force&&gf.renderedView==gf.view&&(gf.updateLineNumbers==null||gf.updateLineNumbers>=gf.viewTo))return!1;var Kh=g1(jd);return Lh>4&&(gf.lineDiv.style.display="none"),b1(jd,gf.updateLineNumbers,Yd.dims),Lh>4&&(gf.lineDiv.style.display=""),gf.renderedView=gf.view,_1(Kh),Cf(gf.cursorDiv),Cf(gf.selectionDiv),gf.gutters.style.height=gf.sizer.style.minHeight=0,Ah&&(gf.lastWrapHeight=Yd.wrapperHeight,gf.lastWrapWidth=Yd.wrapperWidth,qv(jd,400)),gf.updateLineNumbers=null,!0}function fx(jd,Yd){for(var gf=Yd.viewport,hf=!0;;hf=!1){if(!hf||!jd.options.lineWrapping||Yd.oldDisplayWidth==pE(jd)){if(gf&&gf.top!=null&&(gf={top:Math.min(jd.doc.height+dE(jd.display)-hT(jd),gf.top)}),Yd.visible=yE(jd.display,jd.doc,gf),Yd.visible.from>=jd.display.viewFrom&&Yd.visible.to<=jd.display.viewTo)break}else hf&&(Yd.visible=yE(jd.display,jd.doc,gf));if(!AT(jd,Yd))break;kS(jd);var vf=vE(jd);G0(jd),m0(jd,vf),DT(jd,vf),Yd.force=!1}Yd.signal(jd,"update",jd),(jd.display.viewFrom!=jd.display.reportedViewFrom||jd.display.viewTo!=jd.display.reportedViewTo)&&(Yd.signal(jd,"viewportChange",jd,jd.display.viewFrom,jd.display.viewTo),jd.display.reportedViewFrom=jd.display.viewFrom,jd.display.reportedViewTo=jd.display.viewTo)}function n0(jd,Yd){var gf=new g0(jd,Yd);if(AT(jd,gf)){kS(jd),fx(jd,gf);var hf=vE(jd);G0(jd),m0(jd,hf),DT(jd,hf),gf.finish()}}function b1(jd,Yd,gf){var hf=jd.display,vf=jd.options.lineNumbers,$f=hf.lineDiv,ph=$f.firstChild;function Ah(ug){var Tg=ug.nextSibling;return vd&&Kd&&jd.display.currentWheelTarget==ug?ug.style.display="none":ug.parentNode.removeChild(ug),Tg}for(var Lh=hf.view,Kh=hf.viewFrom,Om=0;Om-1&&(Qm=!1),Bf(jd,Hm,Kh,gf)),Qm&&(Cf(Hm.lineNumber),Hm.lineNumber.appendChild(document.createTextNode(Ig(jd.options,Kh)))),ph=Hm.node.nextSibling}Kh+=Hm.size}for(;ph;)ph=Ah(ph)}function wT(jd){var Yd=jd.gutters.offsetWidth;jd.sizer.style.marginLeft=Yd+"px",Zd(jd,"gutterChanged",jd)}function DT(jd,Yd){jd.display.sizer.style.minHeight=Yd.docHeight+"px",jd.display.heightForcer.style.top=Yd.docHeight+"px",jd.display.gutters.style.height=Yd.docHeight+jd.display.barHeight+f0(jd)+"px"}function hx(jd){var Yd=jd.display,gf=Yd.view;if(!(!Yd.alignWidgets&&(!Yd.gutters.firstChild||!jd.options.fixedGutter))){for(var hf=F_(Yd)-Yd.scroller.scrollLeft+jd.doc.scrollLeft,vf=Yd.gutters.offsetWidth,$f=hf+"px",ph=0;ph=105&&(vf.wrapper.style.clipPath="inset(0px)"),vf.wrapper.setAttribute("translate","no"),gd&&yd<8&&(vf.gutters.style.zIndex=-1,vf.scroller.style.paddingRight=0),!vd&&!(pd&&Wd)&&(vf.scroller.draggable=!0),jd&&(jd.appendChild?jd.appendChild(vf.wrapper):jd(vf.wrapper)),vf.viewFrom=vf.viewTo=Yd.first,vf.reportedViewFrom=vf.reportedViewTo=Yd.first,vf.view=[],vf.renderedView=null,vf.externalMeasured=null,vf.viewOffset=0,vf.lastWrapHeight=vf.lastWrapWidth=0,vf.updateLineNumbers=null,vf.nativeBarWidth=vf.barHeight=vf.barWidth=0,vf.scrollbarsClipped=!1,vf.lineNumWidth=vf.lineNumInnerWidth=vf.lineNumChars=null,vf.alignWidgets=!1,vf.cachedCharWidth=vf.cachedTextHeight=vf.cachedPaddingH=null,vf.maxLine=null,vf.maxLineLength=0,vf.maxLineChanged=!1,vf.wheelDX=vf.wheelDY=vf.wheelStartX=vf.wheelStartY=null,vf.shift=!1,vf.selForContextMenu=null,vf.activeTouch=null,vf.gutterSpecs=r0(hf.gutters,hf.lineNumbers),gx(vf),gf.init(vf)}var LS=0,R0=null;gd?R0=-.53:pd?R0=15:Md?R0=-.7:Hd&&(R0=-1/3);function V0(jd){var Yd=jd.wheelDeltaX,gf=jd.wheelDeltaY;return Yd==null&&jd.detail&&jd.axis==jd.HORIZONTAL_AXIS&&(Yd=jd.detail),gf==null&&jd.detail&&jd.axis==jd.VERTICAL_AXIS?gf=jd.detail:gf==null&&(gf=jd.wheelDelta),{x:Yd,y:gf}}function E1(jd){var Yd=V0(jd);return Yd.x*=R0,Yd.y*=R0,Yd}function _x(jd,Yd){Md&&Ld==102&&(jd.display.chromeScrollHack==null?jd.display.sizer.style.pointerEvents="none":clearTimeout(jd.display.chromeScrollHack),jd.display.chromeScrollHack=setTimeout(function(){jd.display.chromeScrollHack=null,jd.display.sizer.style.pointerEvents=""},100));var gf=V0(Yd),hf=gf.x,vf=gf.y,$f=R0;Yd.deltaMode===0&&(hf=Yd.deltaX,vf=Yd.deltaY,$f=1);var ph=jd.display,Ah=ph.scroller,Lh=Ah.scrollWidth>Ah.clientWidth,Kh=Ah.scrollHeight>Ah.clientHeight;if(hf&&Lh||vf&&Kh){if(vf&&Kd&&vd){e:for(var Om=Yd.target,Hm=ph.view;Om!=Ah;Om=Om.parentNode)for(var Jm=0;Jm=0&&Fg(jd,hf.to())<=0)return gf}return-1};var L_=function(jd,Yd){this.anchor=jd,this.head=Yd};L_.prototype.from=function(){return jb(this.anchor,this.head)},L_.prototype.to=function(){return sb(this.anchor,this.head)},L_.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function i0(jd,Yd,gf){var hf=jd&&jd.options.selectionsMayTouch,vf=Yd[gf];Yd.sort(function(Jm,Qm){return Fg(Jm.from(),Qm.from())}),gf=dm(Yd,vf);for(var $f=1;$f0:Lh>=0){var Kh=jb(Ah.from(),ph.from()),Om=sb(Ah.to(),ph.to()),Hm=Ah.empty()?ph.from()==ph.head:Ah.from()==Ah.head;$f<=gf&&--gf,Yd.splice(--$f,2,new L_(Hm?Om:Kh,Hm?Kh:Om))}}return new nb(Yd,gf)}function z0(jd,Yd){return new nb([new L_(jd,Yd||jd)],0)}function W0(jd){return jd.text?sg(jd.from.line+jd.text.length-1,wh(jd.text).length+(jd.text.length==1?jd.from.ch:0)):jd.to}function yx(jd,Yd){if(Fg(jd,Yd.from)<0)return jd;if(Fg(jd,Yd.to)<=0)return W0(Yd);var gf=jd.line+Yd.text.length-(Yd.to.line-Yd.from.line)-1,hf=jd.ch;return jd.line==Yd.to.line&&(hf+=W0(Yd).ch-Yd.to.ch),sg(gf,hf)}function BS(jd,Yd){for(var gf=[],hf=0;hf1&&jd.remove(Ah.line+1,ug-1),jd.insert(Ah.line+1,Gg)}Zd(jd,"change",jd,Yd)}function Y0(jd,Yd,gf){function hf(vf,$f,ph){if(vf.linked)for(var Ah=0;Ah1&&!jd.done[jd.done.length-2].ranges)return jd.done.pop(),wh(jd.done)}function OT(jd,Yd,gf,hf){var vf=jd.history;vf.undone.length=0;var $f=+new Date,ph,Ah;if((vf.lastOp==hf||vf.lastOrigin==Yd.origin&&Yd.origin&&(Yd.origin.charAt(0)=="+"&&vf.lastModTime>$f-(jd.cm?jd.cm.options.historyEventDelay:500)||Yd.origin.charAt(0)=="*"))&&(ph=S1(vf,vf.lastOp==hf)))Ah=wh(ph.changes),Fg(Yd.from,Yd.to)==0&&Fg(Yd.from,Ah.to)==0?Ah.to=W0(Yd):ph.changes.push(k0(jd,Yd));else{var Lh=wh(vf.done);for((!Lh||!Lh.ranges)&&a0(jd.sel,vf.done),ph={changes:[k0(jd,Yd)],generation:vf.generation},vf.done.push(ph);vf.done.length>vf.undoDepth;)vf.done.shift(),vf.done[0].ranges||vf.done.shift()}vf.done.push(gf),vf.generation=++vf.maxGeneration,vf.lastModTime=vf.lastSelTime=$f,vf.lastOp=vf.lastSelOp=hf,vf.lastOrigin=vf.lastSelOrigin=Yd.origin,Ah||Og(jd,"historyAdded")}function vx(jd,Yd,gf,hf){var vf=Yd.charAt(0);return vf=="*"||vf=="+"&&gf.ranges.length==hf.ranges.length&&gf.somethingSelected()==hf.somethingSelected()&&new Date-jd.history.lastSelTime<=(jd.cm?jd.cm.options.historyEventDelay:500)}function Wv(jd,Yd,gf,hf){var vf=jd.history,$f=hf&&hf.origin;gf==vf.lastSelOp||$f&&vf.lastSelOrigin==$f&&(vf.lastModTime==vf.lastSelTime&&vf.lastOrigin==$f||vx(jd,$f,wh(vf.done),Yd))?vf.done[vf.done.length-1]=Yd:a0(Yd,vf.done),vf.lastSelTime=+new Date,vf.lastSelOrigin=$f,vf.lastSelOp=gf,hf&&hf.clearRedo!==!1&&ty(vf.undone)}function a0(jd,Yd){var gf=wh(Yd);gf&&gf.ranges&&gf.equals(jd)||Yd.push(jd)}function kT(jd,Yd,gf,hf){var vf=Yd["spans_"+jd.id],$f=0;jd.iter(Math.max(jd.first,gf),Math.min(jd.first+jd.size,hf),function(ph){ph.markedSpans&&((vf||(vf=Yd["spans_"+jd.id]={}))[$f]=ph.markedSpans),++$f})}function T1(jd){if(!jd)return null;for(var Yd,gf=0;gf-1&&(wh(Ah)[Hm]=Kh[Hm],delete Kh[Hm])}}return hf}function wb(jd,Yd,gf,hf){if(hf){var vf=jd.anchor;if(gf){var $f=Fg(Yd,vf)<0;$f!=Fg(gf,vf)<0?(vf=Yd,Yd=gf):$f!=Fg(Yd,gf)<0&&(Yd=gf)}return new L_(vf,Yd)}else return new L_(gf||Yd,Yd)}function ZE(jd,Yd,gf,hf,vf){vf==null&&(vf=jd.cm&&(jd.cm.display.shift||jd.extend)),Mb(jd,new nb([wb(jd.sel.primary(),Yd,gf,vf)],0),hf)}function MT(jd,Yd,gf){for(var hf=[],vf=jd.cm&&(jd.cm.display.shift||jd.extend),$f=0;$f=Yd.ch:Ah.to>Yd.ch))){if(vf&&(Og(Lh,"beforeCursorEnter"),Lh.explicitlyCleared))if($f.markedSpans){--ph;continue}else break;if(!Lh.atomic)continue;if(gf){var Hm=Lh.find(hf<0?1:-1),Jm=void 0;if((hf<0?Om:Kh)&&(Hm=Cx(jd,Hm,-hf,Hm&&Hm.line==Yd.line?$f:null)),Hm&&Hm.line==Yd.line&&(Jm=Fg(Hm,gf))&&(hf<0?Jm<0:Jm>0))return ev(jd,Hm,Yd,hf,vf)}var Qm=Lh.find(hf<0?-1:1);return(hf<0?Kh:Om)&&(Qm=Cx(jd,Qm,hf,Qm.line==Yd.line?$f:null)),Qm?ev(jd,Qm,Yd,hf,vf):null}}return Yd}function tv(jd,Yd,gf,hf,vf){var $f=hf||1,ph=ev(jd,Yd,gf,$f,vf)||!vf&&ev(jd,Yd,gf,$f,!0)||ev(jd,Yd,gf,-$f,vf)||!vf&&ev(jd,Yd,gf,-$f,!0);return ph||(jd.cantEdit=!0,sg(jd.first,0))}function Cx(jd,Yd,gf,hf){return gf<0&&Yd.ch==0?Yd.line>jd.first?l_(jd,sg(Yd.line-1)):null:gf>0&&Yd.ch==(hf||Mg(jd,Yd.line)).text.length?Yd.line=0;--vf)Ax(jd,{from:hf[vf].from,to:hf[vf].to,text:vf?[""]:Yd.text,origin:Yd.origin});else Ax(jd,Yd)}}function Ax(jd,Yd){if(!(Yd.text.length==1&&Yd.text[0]==""&&Fg(Yd.from,Yd.to)==0)){var gf=BS(jd,Yd);OT(jd,Yd,gf,jd.cm?jd.cm.curOp.id:NaN),Yv(jd,Yd,gf,xv(jd,Yd));var hf=[];Y0(jd,function(vf,$f){!$f&&dm(hf,vf.history)==-1&&(Ix(vf.history,Yd),hf.push(vf.history)),Yv(vf,Yd,null,xv(vf,Yd))})}}function X0(jd,Yd,gf){var hf=jd.cm&&jd.cm.state.suppressEdits;if(!(hf&&!gf)){for(var vf=jd.history,$f,ph=jd.sel,Ah=Yd=="undo"?vf.done:vf.undone,Lh=Yd=="undo"?vf.undone:vf.done,Kh=0;Kh=0;--Qm){var ug=Jm(Qm);if(ug)return ug.v}}}}function wx(jd,Yd){if(Yd!=0&&(jd.first+=Yd,jd.sel=new nb(fm(jd.sel.ranges,function(vf){return new L_(sg(vf.anchor.line+Yd,vf.anchor.ch),sg(vf.head.line+Yd,vf.head.ch))}),jd.sel.primIndex),jd.cm)){Wb(jd.cm,jd.first,jd.first-Yd,Yd);for(var gf=jd.cm.display,hf=gf.viewFrom;hfjd.lastLine())){if(Yd.from.line$f&&(Yd={from:Yd.from,to:sg($f,Mg(jd,$f).text.length),text:[Yd.text[0]],origin:Yd.origin}),Yd.removed=q_(jd,Yd.from,Yd.to),gf||(gf=BS(jd,Yd)),jd.cm?PT(jd.cm,Yd,hf):QE(jd,Yd,hf),$b(jd,gf,Xh),jd.cantEdit&&tv(jd,sg(jd.firstLine(),0))&&(jd.cantEdit=!1)}}function PT(jd,Yd,gf){var hf=jd.doc,vf=jd.display,$f=Yd.from,ph=Yd.to,Ah=!1,Lh=$f.line;jd.options.lineWrapping||(Lh=qh(j_(Mg(hf,$f.line))),hf.iter(Lh,ph.line+1,function(Qm){if(Qm==vf.maxLine)return Ah=!0,!0})),hf.sel.contains(Yd.from,Yd.to)>-1&&d_(jd),QE(hf,Yd,gf,ox(jd)),jd.options.lineWrapping||(hf.iter(Lh,$f.line+Yd.text.length,function(Qm){var ug=j0(Qm);ug>vf.maxLineLength&&(vf.maxLine=Qm,vf.maxLineLength=ug,vf.maxLineChanged=!0,Ah=!1)}),Ah&&(jd.curOp.updateMaxLine=!0)),BE(hf,$f.line),qv(jd,400);var Kh=Yd.text.length-(ph.line-$f.line)-1;Yd.full?Wb(jd):$f.line==ph.line&&Yd.text.length==1&&!XE(jd.doc,Yd)?H0(jd,$f.line,"text"):Wb(jd,$f.line,ph.line+1,Kh);var Om=o_(jd,"changes"),Hm=o_(jd,"change");if(Hm||Om){var Jm={from:$f,to:ph,text:Yd.text,removed:Yd.removed,origin:Yd.origin};Hm&&Zd(jd,"change",jd,Jm),Om&&(jd.curOp.changeObjs||(jd.curOp.changeObjs=[])).push(Jm)}jd.display.selForContextMenu=null}function wE(jd,Yd,gf,hf,vf){var $f;hf||(hf=gf),Fg(hf,gf)<0&&($f=[hf,gf],gf=$f[0],hf=$f[1]),typeof Yd=="string"&&(Yd=jd.splitLines(Yd)),rv(jd,{from:gf,to:hf,text:Yd,origin:vf})}function Dx(jd,Yd,gf,hf){gf1||!(this.children[0]instanceof DE))){var Ah=[];this.collapse(Ah),this.children=[new DE(Ah)],this.children[0].parent=this}},collapse:function(jd){for(var Yd=0;Yd50){for(var ph=vf.lines.length%25+25,Ah=ph;Ah10);jd.parent.maybeSpill()}},iterN:function(jd,Yd,gf){for(var hf=0;hfjd.display.maxLineLength&&(jd.display.maxLine=Kh,jd.display.maxLineLength=Om,jd.display.maxLineChanged=!0)}hf!=null&&jd&&this.collapsed&&Wb(jd,hf,vf+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,jd&&Tx(jd.doc)),jd&&Zd(jd,"markerCleared",jd,this,hf,vf),Yd&&xE(jd),this.parent&&this.parent.clear()}},s0.prototype.find=function(jd,Yd){jd==null&&this.type=="bookmark"&&(jd=1);for(var gf,hf,vf=0;vf0||ph==0&&$f.clearWhenEmpty!==!1)return $f;if($f.replacedWith&&($f.collapsed=!0,$f.widgetNode=wf("span",[$f.replacedWith],"CodeMirror-widget"),hf.handleMouseEvents||$f.widgetNode.setAttribute("cm-ignore-events","true"),hf.insertLeft&&($f.widgetNode.insertLeft=!0)),$f.collapsed){if(wv(jd,Yd.line,Yd,gf,$f)||Yd.line!=gf.line&&wv(jd,gf.line,Yd,gf,$f))throw new Error("Inserting collapsed marker partially overlapping an existing one");Fy()}$f.addToHistory&&OT(jd,{from:Yd,to:gf,origin:"markText"},jd.sel,NaN);var Ah=Yd.line,Lh=jd.cm,Kh;if(jd.iter(Ah,gf.line+1,function(Hm){Lh&&$f.collapsed&&!Lh.options.lineWrapping&&j_(Hm)==Lh.display.maxLine&&(Kh=!0),$f.collapsed&&Ah!=Yd.line&&a_(Hm,0),Sv(Hm,new A0($f,Ah==Yd.line?Yd.ch:null,Ah==gf.line?gf.ch:null),jd.cm&&jd.cm.curOp),++Ah}),$f.collapsed&&jd.iter(Yd.line,gf.line+1,function(Hm){ob(jd,Hm)&&a_(Hm,0)}),$f.clearOnEnter&&ig($f,"beforeCursorEnter",function(){return $f.clear()}),$f.readOnly&&(Xb(),(jd.history.done.length||jd.history.undone.length)&&jd.clearHistory()),$f.collapsed&&($f.id=++BT,$f.atomic=!0),Lh){if(Kh&&(Lh.curOp.updateMaxLine=!0),$f.collapsed)Wb(Lh,Yd.line,gf.line+1);else if($f.className||$f.startStyle||$f.endStyle||$f.css||$f.attributes||$f.title)for(var Om=Yd.line;Om<=gf.line;Om++)H0(Lh,Om,"text");$f.atomic&&Tx(Lh.doc),Zd(Lh,"markerAdded",Lh,$f)}return $f}var ov=function(jd,Yd){this.markers=jd,this.primary=Yd;for(var gf=0;gf=0;Lh--)rv(this,hf[Lh]);Ah?K0(this,Ah):this.cm&&Z_(this.cm)}),undo:Ab(function(){X0(this,"undo")}),redo:Ab(function(){X0(this,"redo")}),undoSelection:Ab(function(){X0(this,"undo",!0)}),redoSelection:Ab(function(){X0(this,"redo",!0)}),setExtending:function(jd){this.extend=jd},getExtending:function(){return this.extend},historySize:function(){for(var jd=this.history,Yd=0,gf=0,hf=0;hf=jd.ch)&&Yd.push(vf.marker.parent||vf.marker)}return Yd},findMarks:function(jd,Yd,gf){jd=l_(this,jd),Yd=l_(this,Yd);var hf=[],vf=jd.line;return this.iter(jd.line,Yd.line+1,function($f){var ph=$f.markedSpans;if(ph)for(var Ah=0;Ah=Lh.to||Lh.from==null&&vf!=jd.line||Lh.from!=null&&vf==Yd.line&&Lh.from>=Yd.ch)&&(!gf||gf(Lh.marker))&&hf.push(Lh.marker.parent||Lh.marker)}++vf}),hf},getAllMarks:function(){var jd=[];return this.iter(function(Yd){var gf=Yd.markedSpans;if(gf)for(var hf=0;hfjd)return Yd=jd,!0;jd-=$f,++gf}),l_(this,sg(gf,Yd))},indexFromPos:function(jd){jd=l_(this,jd);var Yd=jd.ch;if(jd.lineYd&&(Yd=jd.from),jd.to!=null&&jd.to1&&(ph=!0)),Kh.scrollLeft!=null&&(t0(jd,Kh.scrollLeft),Math.abs(jd.doc.scrollLeft-Hm)>1&&(ph=!0)),!ph)break}return vf}function ux(jd,Yd){var gf=TT(jd,Yd);gf.scrollTop!=null&&Uv(jd,gf.scrollTop),gf.scrollLeft!=null&&t0(jd,gf.scrollLeft)}function TT(jd,Yd){var gf=jd.display,hf=Vy(jd.display);Yd.top<0&&(Yd.top=0);var vf=jd.curOp&&jd.curOp.scrollTop!=null?jd.curOp.scrollTop:gf.scroller.scrollTop,$f=hT(jd),ph={};Yd.bottom-Yd.top>$f&&(Yd.bottom=Yd.top+$f);var Ah=jd.doc.height+dE(gf),Lh=Yd.topAh-hf;if(Yd.topvf+$f){var Om=Math.min(Yd.top,(Kh?Ah:Yd.bottom)-$f);Om!=vf&&(ph.scrollTop=Om)}var Hm=jd.options.fixedGutter?0:gf.gutters.offsetWidth,Jm=jd.curOp&&jd.curOp.scrollLeft!=null?jd.curOp.scrollLeft:gf.scroller.scrollLeft-Hm,Qm=pE(jd)-gf.gutters.offsetWidth,ug=Yd.right-Yd.left>Qm;return ug&&(Yd.right=Yd.left+Qm),Yd.left<10?ph.scrollLeft=0:Yd.leftQm+Jm-3&&(ph.scrollLeft=Yd.right+(ug?0:10)-Qm),ph}function xT(jd,Yd){Yd!=null&&(MS(jd),jd.curOp.scrollTop=(jd.curOp.scrollTop==null?jd.doc.scrollTop:jd.curOp.scrollTop)+Yd)}function Z_(jd){MS(jd);var Yd=jd.getCursor();jd.curOp.scrollToPos={from:Yd,to:Yd,margin:jd.options.cursorScrollMargin}}function Eb(jd,Yd,gf){(Yd!=null||gf!=null)&&MS(jd),Yd!=null&&(jd.curOp.scrollLeft=Yd),gf!=null&&(jd.curOp.scrollTop=gf)}function d1(jd,Yd){MS(jd),jd.curOp.scrollToPos=Yd}function MS(jd){var Yd=jd.curOp.scrollToPos;if(Yd){jd.curOp.scrollToPos=null;var gf=e_(jd,Yd.from),hf=e_(jd,Yd.to);CT(jd,gf,hf,Yd.margin)}}function CT(jd,Yd,gf,hf){var vf=TT(jd,{left:Math.min(Yd.left,gf.left),top:Math.min(Yd.top,gf.top)-hf,right:Math.max(Yd.right,gf.right),bottom:Math.max(Yd.bottom,gf.bottom)+hf});Eb(jd,vf.scrollLeft,vf.scrollTop)}function Uv(jd,Yd){Math.abs(jd.doc.scrollTop-Yd)<2||(pd||n0(jd,{top:Yd}),$S(jd,Yd,!0),pd&&n0(jd),qv(jd,100))}function $S(jd,Yd,gf){Yd=Math.max(0,Math.min(jd.display.scroller.scrollHeight-jd.display.scroller.clientHeight,Yd)),!(jd.display.scroller.scrollTop==Yd&&!gf)&&(jd.doc.scrollTop=Yd,jd.display.scrollbars.setScrollTop(Yd),jd.display.scroller.scrollTop!=Yd&&(jd.display.scroller.scrollTop=Yd))}function t0(jd,Yd,gf,hf){Yd=Math.max(0,Math.min(Yd,jd.display.scroller.scrollWidth-jd.display.scroller.clientWidth)),!((gf?Yd==jd.doc.scrollLeft:Math.abs(jd.doc.scrollLeft-Yd)<2)&&!hf)&&(jd.doc.scrollLeft=Yd,hx(jd),jd.display.scroller.scrollLeft!=Yd&&(jd.display.scroller.scrollLeft=Yd),jd.display.scrollbars.setScrollLeft(Yd))}function vE(jd){var Yd=jd.display,gf=Yd.gutters.offsetWidth,hf=Math.round(jd.doc.height+dE(jd.display));return{clientHeight:Yd.scroller.clientHeight,viewHeight:Yd.wrapper.clientHeight,scrollWidth:Yd.scroller.scrollWidth,clientWidth:Yd.scroller.clientWidth,viewWidth:Yd.wrapper.clientWidth,barLeft:jd.options.fixedGutter?gf:0,docHeight:hf,scrollHeight:hf+f0(jd)+Yd.barHeight,nativeBarWidth:Yd.nativeBarWidth,gutterWidth:gf}}var Ry=function(jd,Yd,gf){this.cm=gf;var hf=this.vert=Sf("div",[Sf("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),vf=this.horiz=Sf("div",[Sf("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");hf.tabIndex=vf.tabIndex=-1,jd(hf),jd(vf),ig(hf,"scroll",function(){hf.clientHeight&&Yd(hf.scrollTop,"vertical")}),ig(vf,"scroll",function(){vf.clientWidth&&Yd(vf.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,gd&&yd<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Ry.prototype.update=function(jd){var Yd=jd.scrollWidth>jd.clientWidth+1,gf=jd.scrollHeight>jd.clientHeight+1,hf=jd.nativeBarWidth;if(gf){this.vert.style.display="block",this.vert.style.bottom=Yd?hf+"px":"0";var vf=jd.viewHeight-(Yd?hf:0);this.vert.firstChild.style.height=Math.max(0,jd.scrollHeight-jd.clientHeight+vf)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(Yd){this.horiz.style.display="block",this.horiz.style.right=gf?hf+"px":"0",this.horiz.style.left=jd.barLeft+"px";var $f=jd.viewWidth-jd.barLeft-(gf?hf:0);this.horiz.firstChild.style.width=Math.max(0,jd.scrollWidth-jd.clientWidth+$f)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&jd.clientHeight>0&&(hf==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:gf?hf:0,bottom:Yd?hf:0}},Ry.prototype.setScrollLeft=function(jd){this.horiz.scrollLeft!=jd&&(this.horiz.scrollLeft=jd),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Ry.prototype.setScrollTop=function(jd){this.vert.scrollTop!=jd&&(this.vert.scrollTop=jd),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Ry.prototype.zeroWidthHack=function(){var jd=Kd&&!Vd?"12px":"18px";this.horiz.style.height=this.vert.style.width=jd,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new Nh,this.disableVert=new Nh},Ry.prototype.enableZeroWidthBar=function(jd,Yd,gf){jd.style.visibility="";function hf(){var vf=jd.getBoundingClientRect(),$f=gf=="vert"?document.elementFromPoint(vf.right-1,(vf.top+vf.bottom)/2):document.elementFromPoint((vf.right+vf.left)/2,vf.bottom-1);$f!=jd?jd.style.visibility="hidden":Yd.set(1e3,hf)}Yd.set(1e3,hf)},Ry.prototype.clear=function(){var jd=this.horiz.parentNode;jd.removeChild(this.horiz),jd.removeChild(this.vert)};var I0=function(){};I0.prototype.update=function(){return{bottom:0,right:0}},I0.prototype.setScrollLeft=function(){},I0.prototype.setScrollTop=function(){},I0.prototype.clear=function(){};function m0(jd,Yd){Yd||(Yd=vE(jd));var gf=jd.display.barWidth,hf=jd.display.barHeight;Hv(jd,Yd);for(var vf=0;vf<4&&gf!=jd.display.barWidth||hf!=jd.display.barHeight;vf++)gf!=jd.display.barWidth&&jd.options.lineWrapping&&kS(jd),Hv(jd,vE(jd)),gf=jd.display.barWidth,hf=jd.display.barHeight}function Hv(jd,Yd){var gf=jd.display,hf=gf.scrollbars.update(Yd);gf.sizer.style.paddingRight=(gf.barWidth=hf.right)+"px",gf.sizer.style.paddingBottom=(gf.barHeight=hf.bottom)+"px",gf.heightForcer.style.borderBottom=hf.bottom+"px solid transparent",hf.right&&hf.bottom?(gf.scrollbarFiller.style.display="block",gf.scrollbarFiller.style.height=hf.bottom+"px",gf.scrollbarFiller.style.width=hf.right+"px"):gf.scrollbarFiller.style.display="",hf.bottom&&jd.options.coverGutterNextToScrollbar&&jd.options.fixedGutter?(gf.gutterFiller.style.display="block",gf.gutterFiller.style.height=hf.bottom+"px",gf.gutterFiller.style.width=Yd.gutterWidth+"px"):gf.gutterFiller.style.display=""}var SE={native:Ry,null:I0};function dx(jd){jd.display.scrollbars&&(jd.display.scrollbars.clear(),jd.display.scrollbars.addClass&&xf(jd.display.wrapper,jd.display.scrollbars.addClass)),jd.display.scrollbars=new SE[jd.options.scrollbarStyle](function(Yd){jd.display.wrapper.insertBefore(Yd,jd.display.scrollbarFiller),ig(Yd,"mousedown",function(){jd.state.focused&&setTimeout(function(){return jd.display.input.focus()},0)}),Yd.setAttribute("cm-not-content","true")},function(Yd,gf){gf=="horizontal"?t0(jd,Yd):Uv(jd,Yd)},jd),jd.display.scrollbars.addClass&&Eh(jd.display.wrapper,jd.display.scrollbars.addClass)}var p1=0;function TE(jd){jd.curOp={cm:jd,viewChanged:!1,startHeight:jd.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:++p1,markArrays:null},CS(jd.curOp)}function xE(jd){var Yd=jd.curOp;Yd&&Jd(Yd,function(gf){for(var hf=0;hf=gf.viewTo)||gf.maxLineChanged&&Yd.options.lineWrapping,jd.update=jd.mustUpdate&&new g0(Yd,jd.mustUpdate&&{top:jd.scrollTop,ensure:jd.scrollToPos},jd.forceUpdate)}function Gv(jd){jd.updatedDisplay=jd.mustUpdate&&AT(jd.cm,jd.update)}function px(jd){var Yd=jd.cm,gf=Yd.display;jd.updatedDisplay&&kS(Yd),jd.barMeasure=vE(Yd),gf.maxLineChanged&&!Yd.options.lineWrapping&&(jd.adjustWidthTo=AS(Yd,gf.maxLine,gf.maxLine.text.length).left+3,Yd.display.sizerWidth=jd.adjustWidthTo,jd.barMeasure.scrollWidth=Math.max(gf.scroller.clientWidth,gf.sizer.offsetLeft+jd.adjustWidthTo+f0(Yd)+Yd.display.barWidth),jd.maxScrollLeft=Math.max(0,gf.sizer.offsetLeft+jd.adjustWidthTo-pE(Yd))),(jd.updatedDisplay||jd.selectionChanged)&&(jd.preparedSelection=gf.input.prepareSelection())}function _m(jd){var Yd=jd.cm;jd.adjustWidthTo!=null&&(Yd.display.sizer.style.minWidth=jd.adjustWidthTo+"px",jd.maxScrollLeft=jd.display.viewTo)){var gf=+new Date+jd.options.workTime,hf=xb(jd,Yd.highlightFrontier),vf=[];Yd.iter(hf.line,Math.min(Yd.first+Yd.size,jd.display.viewTo+500),function($f){if(hf.line>=jd.display.viewFrom){var ph=$f.styles,Ah=$f.text.length>jd.options.maxHighlightLength?Yg(Yd.mode,hf.state):null,Lh=Sy(jd,$f,hf,!0);Ah&&(hf.state=Ah),$f.styles=Lh.styles;var Kh=$f.styleClasses,Om=Lh.classes;Om?$f.styleClasses=Om:Kh&&($f.styleClasses=null);for(var Hm=!ph||ph.length!=$f.styles.length||Kh!=Om&&(!Kh||!Om||Kh.bgClass!=Om.bgClass||Kh.textClass!=Om.textClass),Jm=0;!Hm&&Jmgf)return qv(jd,jd.options.workDelay),!0}),Yd.highlightFrontier=hf.line,Yd.modeFrontier=Math.max(Yd.modeFrontier,hf.line),vf.length&&Bb(jd,function(){for(var $f=0;$f=gf.viewFrom&&Yd.visible.to<=gf.viewTo&&(gf.updateLineNumbers==null||gf.updateLineNumbers>=gf.viewTo)&&gf.renderedView==gf.view&&yT(jd)==0)return!1;mx(jd)&&(Wy(jd),Yd.dims=zE(jd));var vf=hf.first+hf.size,$f=Math.max(Yd.visible.from-jd.options.viewportMargin,hf.first),ph=Math.min(vf,Yd.visible.to+jd.options.viewportMargin);gf.viewFrom<$f&&$f-gf.viewFrom<20&&($f=Math.max(hf.first,gf.viewFrom)),gf.viewTo>ph&&gf.viewTo-ph<20&&(ph=Math.min(vf,gf.viewTo)),fb&&($f=Q_(jd.doc,$f),ph=Cy(jd.doc,ph));var Ah=$f!=gf.viewFrom||ph!=gf.viewTo||gf.lastWrapHeight!=Yd.wrapperHeight||gf.lastWrapWidth!=Yd.wrapperWidth;RS(jd,$f,ph),gf.viewOffset=Ay(Mg(jd.doc,gf.viewFrom)),jd.display.mover.style.top=gf.viewOffset+"px";var Lh=yT(jd);if(!Ah&&Lh==0&&!Yd.force&&gf.renderedView==gf.view&&(gf.updateLineNumbers==null||gf.updateLineNumbers>=gf.viewTo))return!1;var Kh=g1(jd);return Lh>4&&(gf.lineDiv.style.display="none"),b1(jd,gf.updateLineNumbers,Yd.dims),Lh>4&&(gf.lineDiv.style.display=""),gf.renderedView=gf.view,_1(Kh),Cf(gf.cursorDiv),Cf(gf.selectionDiv),gf.gutters.style.height=gf.sizer.style.minHeight=0,Ah&&(gf.lastWrapHeight=Yd.wrapperHeight,gf.lastWrapWidth=Yd.wrapperWidth,qv(jd,400)),gf.updateLineNumbers=null,!0}function fx(jd,Yd){for(var gf=Yd.viewport,hf=!0;;hf=!1){if(!hf||!jd.options.lineWrapping||Yd.oldDisplayWidth==pE(jd)){if(gf&&gf.top!=null&&(gf={top:Math.min(jd.doc.height+dE(jd.display)-hT(jd),gf.top)}),Yd.visible=yE(jd.display,jd.doc,gf),Yd.visible.from>=jd.display.viewFrom&&Yd.visible.to<=jd.display.viewTo)break}else hf&&(Yd.visible=yE(jd.display,jd.doc,gf));if(!AT(jd,Yd))break;kS(jd);var vf=vE(jd);G0(jd),m0(jd,vf),DT(jd,vf),Yd.force=!1}Yd.signal(jd,"update",jd),(jd.display.viewFrom!=jd.display.reportedViewFrom||jd.display.viewTo!=jd.display.reportedViewTo)&&(Yd.signal(jd,"viewportChange",jd,jd.display.viewFrom,jd.display.viewTo),jd.display.reportedViewFrom=jd.display.viewFrom,jd.display.reportedViewTo=jd.display.viewTo)}function n0(jd,Yd){var gf=new g0(jd,Yd);if(AT(jd,gf)){kS(jd),fx(jd,gf);var hf=vE(jd);G0(jd),m0(jd,hf),DT(jd,hf),gf.finish()}}function b1(jd,Yd,gf){var hf=jd.display,vf=jd.options.lineNumbers,$f=hf.lineDiv,ph=$f.firstChild;function Ah(ug){var Tg=ug.nextSibling;return vd&&Kd&&jd.display.currentWheelTarget==ug?ug.style.display="none":ug.parentNode.removeChild(ug),Tg}for(var Lh=hf.view,Kh=hf.viewFrom,Om=0;Om-1&&(Qm=!1),Bf(jd,Hm,Kh,gf)),Qm&&(Cf(Hm.lineNumber),Hm.lineNumber.appendChild(document.createTextNode(Ig(jd.options,Kh)))),ph=Hm.node.nextSibling}Kh+=Hm.size}for(;ph;)ph=Ah(ph)}function wT(jd){var Yd=jd.gutters.offsetWidth;jd.sizer.style.marginLeft=Yd+"px",Zd(jd,"gutterChanged",jd)}function DT(jd,Yd){jd.display.sizer.style.minHeight=Yd.docHeight+"px",jd.display.heightForcer.style.top=Yd.docHeight+"px",jd.display.gutters.style.height=Yd.docHeight+jd.display.barHeight+f0(jd)+"px"}function hx(jd){var Yd=jd.display,gf=Yd.view;if(!(!Yd.alignWidgets&&(!Yd.gutters.firstChild||!jd.options.fixedGutter))){for(var hf=F_(Yd)-Yd.scroller.scrollLeft+jd.doc.scrollLeft,vf=Yd.gutters.offsetWidth,$f=hf+"px",ph=0;ph=105&&(vf.wrapper.style.clipPath="inset(0px)"),vf.wrapper.setAttribute("translate","no"),gd&&yd<8&&(vf.gutters.style.zIndex=-1,vf.scroller.style.paddingRight=0),!vd&&!(pd&&Wd)&&(vf.scroller.draggable=!0),jd&&(jd.appendChild?jd.appendChild(vf.wrapper):jd(vf.wrapper)),vf.viewFrom=vf.viewTo=Yd.first,vf.reportedViewFrom=vf.reportedViewTo=Yd.first,vf.view=[],vf.renderedView=null,vf.externalMeasured=null,vf.viewOffset=0,vf.lastWrapHeight=vf.lastWrapWidth=0,vf.updateLineNumbers=null,vf.nativeBarWidth=vf.barHeight=vf.barWidth=0,vf.scrollbarsClipped=!1,vf.lineNumWidth=vf.lineNumInnerWidth=vf.lineNumChars=null,vf.alignWidgets=!1,vf.cachedCharWidth=vf.cachedTextHeight=vf.cachedPaddingH=null,vf.maxLine=null,vf.maxLineLength=0,vf.maxLineChanged=!1,vf.wheelDX=vf.wheelDY=vf.wheelStartX=vf.wheelStartY=null,vf.shift=!1,vf.selForContextMenu=null,vf.activeTouch=null,vf.gutterSpecs=r0(hf.gutters,hf.lineNumbers),gx(vf),gf.init(vf)}var LS=0,R0=null;gd?R0=-.53:pd?R0=15:Md?R0=-.7:Hd&&(R0=-1/3);function V0(jd){var Yd=jd.wheelDeltaX,gf=jd.wheelDeltaY;return Yd==null&&jd.detail&&jd.axis==jd.HORIZONTAL_AXIS&&(Yd=jd.detail),gf==null&&jd.detail&&jd.axis==jd.VERTICAL_AXIS?gf=jd.detail:gf==null&&(gf=jd.wheelDelta),{x:Yd,y:gf}}function E1(jd){var Yd=V0(jd);return Yd.x*=R0,Yd.y*=R0,Yd}function _x(jd,Yd){Md&&Ld==102&&(jd.display.chromeScrollHack==null?jd.display.sizer.style.pointerEvents="none":clearTimeout(jd.display.chromeScrollHack),jd.display.chromeScrollHack=setTimeout(function(){jd.display.chromeScrollHack=null,jd.display.sizer.style.pointerEvents=""},100));var gf=V0(Yd),hf=gf.x,vf=gf.y,$f=R0;Yd.deltaMode===0&&(hf=Yd.deltaX,vf=Yd.deltaY,$f=1);var ph=jd.display,Ah=ph.scroller,Lh=Ah.scrollWidth>Ah.clientWidth,Kh=Ah.scrollHeight>Ah.clientHeight;if(hf&&Lh||vf&&Kh){if(vf&&Kd&&vd){e:for(var Om=Yd.target,Hm=ph.view;Om!=Ah;Om=Om.parentNode)for(var Jm=0;Jm=0&&Fg(jd,hf.to())<=0)return gf}return-1};var L_=function(jd,Yd){this.anchor=jd,this.head=Yd};L_.prototype.from=function(){return jb(this.anchor,this.head)},L_.prototype.to=function(){return sb(this.anchor,this.head)},L_.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function i0(jd,Yd,gf){var hf=jd&&jd.options.selectionsMayTouch,vf=Yd[gf];Yd.sort(function(Jm,Qm){return Fg(Jm.from(),Qm.from())}),gf=dm(Yd,vf);for(var $f=1;$f0:Lh>=0){var Kh=jb(Ah.from(),ph.from()),Om=sb(Ah.to(),ph.to()),Hm=Ah.empty()?ph.from()==ph.head:Ah.from()==Ah.head;$f<=gf&&--gf,Yd.splice(--$f,2,new L_(Hm?Om:Kh,Hm?Kh:Om))}}return new nb(Yd,gf)}function z0(jd,Yd){return new nb([new L_(jd,Yd||jd)],0)}function W0(jd){return jd.text?sg(jd.from.line+jd.text.length-1,wh(jd.text).length+(jd.text.length==1?jd.from.ch:0)):jd.to}function yx(jd,Yd){if(Fg(jd,Yd.from)<0)return jd;if(Fg(jd,Yd.to)<=0)return W0(Yd);var gf=jd.line+Yd.text.length-(Yd.to.line-Yd.from.line)-1,hf=jd.ch;return jd.line==Yd.to.line&&(hf+=W0(Yd).ch-Yd.to.ch),sg(gf,hf)}function BS(jd,Yd){for(var gf=[],hf=0;hf1&&jd.remove(Ah.line+1,ug-1),jd.insert(Ah.line+1,Gg)}Zd(jd,"change",jd,Yd)}function Y0(jd,Yd,gf){function hf(vf,$f,ph){if(vf.linked)for(var Ah=0;Ah1&&!jd.done[jd.done.length-2].ranges)return jd.done.pop(),wh(jd.done)}function OT(jd,Yd,gf,hf){var vf=jd.history;vf.undone.length=0;var $f=+new Date,ph,Ah;if((vf.lastOp==hf||vf.lastOrigin==Yd.origin&&Yd.origin&&(Yd.origin.charAt(0)=="+"&&vf.lastModTime>$f-(jd.cm?jd.cm.options.historyEventDelay:500)||Yd.origin.charAt(0)=="*"))&&(ph=S1(vf,vf.lastOp==hf)))Ah=wh(ph.changes),Fg(Yd.from,Yd.to)==0&&Fg(Yd.from,Ah.to)==0?Ah.to=W0(Yd):ph.changes.push(k0(jd,Yd));else{var Lh=wh(vf.done);for((!Lh||!Lh.ranges)&&a0(jd.sel,vf.done),ph={changes:[k0(jd,Yd)],generation:vf.generation},vf.done.push(ph);vf.done.length>vf.undoDepth;)vf.done.shift(),vf.done[0].ranges||vf.done.shift()}vf.done.push(gf),vf.generation=++vf.maxGeneration,vf.lastModTime=vf.lastSelTime=$f,vf.lastOp=vf.lastSelOp=hf,vf.lastOrigin=vf.lastSelOrigin=Yd.origin,Ah||Og(jd,"historyAdded")}function vx(jd,Yd,gf,hf){var vf=Yd.charAt(0);return vf=="*"||vf=="+"&&gf.ranges.length==hf.ranges.length&&gf.somethingSelected()==hf.somethingSelected()&&new Date-jd.history.lastSelTime<=(jd.cm?jd.cm.options.historyEventDelay:500)}function Wv(jd,Yd,gf,hf){var vf=jd.history,$f=hf&&hf.origin;gf==vf.lastSelOp||$f&&vf.lastSelOrigin==$f&&(vf.lastModTime==vf.lastSelTime&&vf.lastOrigin==$f||vx(jd,$f,wh(vf.done),Yd))?vf.done[vf.done.length-1]=Yd:a0(Yd,vf.done),vf.lastSelTime=+new Date,vf.lastSelOrigin=$f,vf.lastSelOp=gf,hf&&hf.clearRedo!==!1&&ty(vf.undone)}function a0(jd,Yd){var gf=wh(Yd);gf&&gf.ranges&&gf.equals(jd)||Yd.push(jd)}function kT(jd,Yd,gf,hf){var vf=Yd["spans_"+jd.id],$f=0;jd.iter(Math.max(jd.first,gf),Math.min(jd.first+jd.size,hf),function(ph){ph.markedSpans&&((vf||(vf=Yd["spans_"+jd.id]={}))[$f]=ph.markedSpans),++$f})}function T1(jd){if(!jd)return null;for(var Yd,gf=0;gf-1&&(wh(Ah)[Hm]=Kh[Hm],delete Kh[Hm])}}return hf}function wb(jd,Yd,gf,hf){if(hf){var vf=jd.anchor;if(gf){var $f=Fg(Yd,vf)<0;$f!=Fg(gf,vf)<0?(vf=Yd,Yd=gf):$f!=Fg(Yd,gf)<0&&(Yd=gf)}return new L_(vf,Yd)}else return new L_(gf||Yd,Yd)}function ZE(jd,Yd,gf,hf,vf){vf==null&&(vf=jd.cm&&(jd.cm.display.shift||jd.extend)),Mb(jd,new nb([wb(jd.sel.primary(),Yd,gf,vf)],0),hf)}function MT(jd,Yd,gf){for(var hf=[],vf=jd.cm&&(jd.cm.display.shift||jd.extend),$f=0;$f=Yd.ch:Ah.to>Yd.ch))){if(vf&&(Og(Lh,"beforeCursorEnter"),Lh.explicitlyCleared))if($f.markedSpans){--ph;continue}else break;if(!Lh.atomic)continue;if(gf){var Hm=Lh.find(hf<0?1:-1),Jm=void 0;if((hf<0?Om:Kh)&&(Hm=Cx(jd,Hm,-hf,Hm&&Hm.line==Yd.line?$f:null)),Hm&&Hm.line==Yd.line&&(Jm=Fg(Hm,gf))&&(hf<0?Jm<0:Jm>0))return ev(jd,Hm,Yd,hf,vf)}var Qm=Lh.find(hf<0?-1:1);return(hf<0?Kh:Om)&&(Qm=Cx(jd,Qm,hf,Qm.line==Yd.line?$f:null)),Qm?ev(jd,Qm,Yd,hf,vf):null}}return Yd}function tv(jd,Yd,gf,hf,vf){var $f=hf||1,ph=ev(jd,Yd,gf,$f,vf)||!vf&&ev(jd,Yd,gf,$f,!0)||ev(jd,Yd,gf,-$f,vf)||!vf&&ev(jd,Yd,gf,-$f,!0);return ph||(jd.cantEdit=!0,sg(jd.first,0))}function Cx(jd,Yd,gf,hf){return gf<0&&Yd.ch==0?Yd.line>jd.first?l_(jd,sg(Yd.line-1)):null:gf>0&&Yd.ch==(hf||Mg(jd,Yd.line)).text.length?Yd.line=0;--vf)Ax(jd,{from:hf[vf].from,to:hf[vf].to,text:vf?[""]:Yd.text,origin:Yd.origin});else Ax(jd,Yd)}}function Ax(jd,Yd){if(!(Yd.text.length==1&&Yd.text[0]==""&&Fg(Yd.from,Yd.to)==0)){var gf=BS(jd,Yd);OT(jd,Yd,gf,jd.cm?jd.cm.curOp.id:NaN),Yv(jd,Yd,gf,xv(jd,Yd));var hf=[];Y0(jd,function(vf,$f){!$f&&dm(hf,vf.history)==-1&&(Ix(vf.history,Yd),hf.push(vf.history)),Yv(vf,Yd,null,xv(vf,Yd))})}}function X0(jd,Yd,gf){var hf=jd.cm&&jd.cm.state.suppressEdits;if(!(hf&&!gf)){for(var vf=jd.history,$f,ph=jd.sel,Ah=Yd=="undo"?vf.done:vf.undone,Lh=Yd=="undo"?vf.undone:vf.done,Kh=0;Kh=0;--Qm){var ug=Jm(Qm);if(ug)return ug.v}}}}function wx(jd,Yd){if(Yd!=0&&(jd.first+=Yd,jd.sel=new nb(fm(jd.sel.ranges,function(vf){return new L_(sg(vf.anchor.line+Yd,vf.anchor.ch),sg(vf.head.line+Yd,vf.head.ch))}),jd.sel.primIndex),jd.cm)){Wb(jd.cm,jd.first,jd.first-Yd,Yd);for(var gf=jd.cm.display,hf=gf.viewFrom;hfjd.lastLine())){if(Yd.from.line$f&&(Yd={from:Yd.from,to:sg($f,Mg(jd,$f).text.length),text:[Yd.text[0]],origin:Yd.origin}),Yd.removed=q_(jd,Yd.from,Yd.to),gf||(gf=BS(jd,Yd)),jd.cm?PT(jd.cm,Yd,hf):QE(jd,Yd,hf),$b(jd,gf,Xh),jd.cantEdit&&tv(jd,sg(jd.firstLine(),0))&&(jd.cantEdit=!1)}}function PT(jd,Yd,gf){var hf=jd.doc,vf=jd.display,$f=Yd.from,ph=Yd.to,Ah=!1,Lh=$f.line;jd.options.lineWrapping||(Lh=qh(j_(Mg(hf,$f.line))),hf.iter(Lh,ph.line+1,function(Qm){if(Qm==vf.maxLine)return Ah=!0,!0})),hf.sel.contains(Yd.from,Yd.to)>-1&&d_(jd),QE(hf,Yd,gf,ox(jd)),jd.options.lineWrapping||(hf.iter(Lh,$f.line+Yd.text.length,function(Qm){var ug=j0(Qm);ug>vf.maxLineLength&&(vf.maxLine=Qm,vf.maxLineLength=ug,vf.maxLineChanged=!0,Ah=!1)}),Ah&&(jd.curOp.updateMaxLine=!0)),BE(hf,$f.line),qv(jd,400);var Kh=Yd.text.length-(ph.line-$f.line)-1;Yd.full?Wb(jd):$f.line==ph.line&&Yd.text.length==1&&!XE(jd.doc,Yd)?H0(jd,$f.line,"text"):Wb(jd,$f.line,ph.line+1,Kh);var Om=o_(jd,"changes"),Hm=o_(jd,"change");if(Hm||Om){var Jm={from:$f,to:ph,text:Yd.text,removed:Yd.removed,origin:Yd.origin};Hm&&Zd(jd,"change",jd,Jm),Om&&(jd.curOp.changeObjs||(jd.curOp.changeObjs=[])).push(Jm)}jd.display.selForContextMenu=null}function wE(jd,Yd,gf,hf,vf){var $f;hf||(hf=gf),Fg(hf,gf)<0&&($f=[hf,gf],gf=$f[0],hf=$f[1]),typeof Yd=="string"&&(Yd=jd.splitLines(Yd)),rv(jd,{from:gf,to:hf,text:Yd,origin:vf})}function Dx(jd,Yd,gf,hf){gf1||!(this.children[0]instanceof DE))){var Ah=[];this.collapse(Ah),this.children=[new DE(Ah)],this.children[0].parent=this}},collapse:function(jd){for(var Yd=0;Yd50){for(var ph=vf.lines.length%25+25,Ah=ph;Ah10);jd.parent.maybeSpill()}},iterN:function(jd,Yd,gf){for(var hf=0;hfjd.display.maxLineLength&&(jd.display.maxLine=Kh,jd.display.maxLineLength=Om,jd.display.maxLineChanged=!0)}hf!=null&&jd&&this.collapsed&&Wb(jd,hf,vf+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,jd&&Tx(jd.doc)),jd&&Zd(jd,"markerCleared",jd,this,hf,vf),Yd&&xE(jd),this.parent&&this.parent.clear()}},s0.prototype.find=function(jd,Yd){jd==null&&this.type=="bookmark"&&(jd=1);for(var gf,hf,vf=0;vf0||ph==0&&$f.clearWhenEmpty!==!1)return $f;if($f.replacedWith&&($f.collapsed=!0,$f.widgetNode=wf("span",[$f.replacedWith],"CodeMirror-widget"),hf.handleMouseEvents||$f.widgetNode.setAttribute("cm-ignore-events","true"),hf.insertLeft&&($f.widgetNode.insertLeft=!0)),$f.collapsed){if(wv(jd,Yd.line,Yd,gf,$f)||Yd.line!=gf.line&&wv(jd,gf.line,Yd,gf,$f))throw new Error("Inserting collapsed marker partially overlapping an existing one");Fy()}$f.addToHistory&&OT(jd,{from:Yd,to:gf,origin:"markText"},jd.sel,NaN);var Ah=Yd.line,Lh=jd.cm,Kh;if(jd.iter(Ah,gf.line+1,function(Hm){Lh&&$f.collapsed&&!Lh.options.lineWrapping&&j_(Hm)==Lh.display.maxLine&&(Kh=!0),$f.collapsed&&Ah!=Yd.line&&a_(Hm,0),Sv(Hm,new A0($f,Ah==Yd.line?Yd.ch:null,Ah==gf.line?gf.ch:null),jd.cm&&jd.cm.curOp),++Ah}),$f.collapsed&&jd.iter(Yd.line,gf.line+1,function(Hm){ob(jd,Hm)&&a_(Hm,0)}),$f.clearOnEnter&&ig($f,"beforeCursorEnter",function(){return $f.clear()}),$f.readOnly&&(Xb(),(jd.history.done.length||jd.history.undone.length)&&jd.clearHistory()),$f.collapsed&&($f.id=++BT,$f.atomic=!0),Lh){if(Kh&&(Lh.curOp.updateMaxLine=!0),$f.collapsed)Wb(Lh,Yd.line,gf.line+1);else if($f.className||$f.startStyle||$f.endStyle||$f.css||$f.attributes||$f.title)for(var Om=Yd.line;Om<=gf.line;Om++)H0(Lh,Om,"text");$f.atomic&&Tx(Lh.doc),Zd(Lh,"markerAdded",Lh,$f)}return $f}var ov=function(jd,Yd){this.markers=jd,this.primary=Yd;for(var gf=0;gf=0;Lh--)rv(this,hf[Lh]);Ah?K0(this,Ah):this.cm&&Z_(this.cm)}),undo:Ab(function(){X0(this,"undo")}),redo:Ab(function(){X0(this,"redo")}),undoSelection:Ab(function(){X0(this,"undo",!0)}),redoSelection:Ab(function(){X0(this,"redo",!0)}),setExtending:function(jd){this.extend=jd},getExtending:function(){return this.extend},historySize:function(){for(var jd=this.history,Yd=0,gf=0,hf=0;hf=jd.ch)&&Yd.push(vf.marker.parent||vf.marker)}return Yd},findMarks:function(jd,Yd,gf){jd=l_(this,jd),Yd=l_(this,Yd);var hf=[],vf=jd.line;return this.iter(jd.line,Yd.line+1,function($f){var ph=$f.markedSpans;if(ph)for(var Ah=0;Ah=Lh.to||Lh.from==null&&vf!=jd.line||Lh.from!=null&&vf==Yd.line&&Lh.from>=Yd.ch)&&(!gf||gf(Lh.marker))&&hf.push(Lh.marker.parent||Lh.marker)}++vf}),hf},getAllMarks:function(){var jd=[];return this.iter(function(Yd){var gf=Yd.markedSpans;if(gf)for(var hf=0;hfjd)return Yd=jd,!0;jd-=$f,++gf}),l_(this,sg(gf,Yd))},indexFromPos:function(jd){jd=l_(this,jd);var Yd=jd.ch;if(jd.lineYd&&(Yd=jd.from),jd.to!=null&&jd.to-1){Yd.state.draggingText(jd),setTimeout(function(){return Yd.display.input.focus()},20);return}try{var Om=jd.dataTransfer.getData("Text");if(Om){var Hm;if(Yd.state.draggingText&&!Yd.state.draggingText.copy&&(Hm=Yd.listSelections()),$b(Yd.doc,z0(gf,gf)),Hm)for(var Jm=0;Jm=0;Ah--)wE(jd.doc,"",hf[Ah].from,hf[Ah].to,"+delete");Z_(jd)})}function VS(jd,Yd,gf){var hf=kf(jd.text,Yd+gf,gf);return hf<0||hf>jd.text.length?null:hf}function eS(jd,Yd,gf){var hf=VS(jd,Yd.ch,gf);return hf==null?null:new sg(Yd.line,hf,gf<0?"after":"before")}function tS(jd,Yd,gf,hf,vf){if(jd){Yd.doc.direction=="rtl"&&(vf=-vf);var $f=Km(gf,Yd.doc.direction);if($f){var ph=vf<0?wh($f):$f[0],Ah=vf<0==(ph.level==1),Lh=Ah?"after":"before",Kh;if(ph.level>0||Yd.doc.direction=="rtl"){var Om=Zb(Yd,gf);Kh=vf<0?gf.text.length-1:0;var Hm=ey(Yd,Om,Kh).top;Kh=Rf(function(Jm){return ey(Yd,Om,Jm).top==Hm},vf<0==(ph.level==1)?ph.from:ph.to-1,Kh),Lh=="before"&&(Kh=VS(gf,Kh,1))}else Kh=vf<0?ph.to:ph.from;return new sg(hf,Kh,Lh)}}return new sg(hf,vf<0?gf.text.length:0,vf<0?"before":"after")}function J0(jd,Yd,gf,hf){var vf=Km(Yd,jd.doc.direction);if(!vf)return eS(Yd,gf,hf);gf.ch>=Yd.text.length?(gf.ch=Yd.text.length,gf.sticky="before"):gf.ch<=0&&(gf.ch=0,gf.sticky="after");var $f=Sm(vf,gf.ch,gf.sticky),ph=vf[$f];if(jd.doc.direction=="ltr"&&ph.level%2==0&&(hf>0?ph.to>gf.ch:ph.from=ph.from&&Jm>=Om.begin)){var Qm=Hm?"before":"after";return new sg(gf.line,Jm,Qm)}}var ug=function(Gg,Vg,Ug){for(var Qg=function(G_,ub){return ub?new sg(gf.line,Ah(G_,1),"before"):new sg(gf.line,G_,"after")};Gg>=0&&Gg0==(i_.level!=1),E_=n_?Ug.begin:Ah(Ug.end,-1);if(i_.from<=E_&&E_0?Om.end:Ah(Om.begin,-1);return kg!=null&&!(hf>0&&kg==Yd.text.length)&&(Tg=ug(hf>0?0:vf.length-1,hf,Kh(kg)),Tg)?Tg:null}var nS={selectAll:nv,singleSelection:function(jd){return jd.setSelection(jd.getCursor("anchor"),jd.getCursor("head"),Xh)},killLine:function(jd){return Q0(jd,function(Yd){if(Yd.empty()){var gf=Mg(jd.doc,Yd.head.line).text.length;return Yd.head.ch==gf&&Yd.head.line0)vf=new sg(vf.line,vf.ch+1),jd.replaceRange($f.charAt(vf.ch-1)+$f.charAt(vf.ch-2),sg(vf.line,vf.ch-2),vf,"+transpose");else if(vf.line>jd.doc.first){var ph=Mg(jd.doc,vf.line-1).text;ph&&(vf=new sg(vf.line,1),jd.replaceRange($f.charAt(0)+jd.doc.lineSeparator()+ph.charAt(ph.length-1),sg(vf.line-1,ph.length-1),vf,"+transpose"))}}gf.push(new L_(vf,vf))}jd.setSelections(gf)})},newlineAndIndent:function(jd){return Bb(jd,function(){for(var Yd=jd.listSelections(),gf=Yd.length-1;gf>=0;gf--)jd.replaceRange(jd.doc.lineSeparator(),Yd[gf].anchor,Yd[gf].head,"+input");Yd=jd.listSelections();for(var hf=0;hfjd&&Fg(Yd,this.pos)==0&&gf==this.button};var b0,hv;function Ux(jd,Yd){var gf=+new Date;return hv&&hv.compare(gf,jd,Yd)?(b0=hv=null,"triple"):b0&&b0.compare(gf,jd,Yd)?(hv=new fv(gf,jd,Yd),b0=null,"double"):(b0=new fv(gf,jd,Yd),hv=null,"single")}function Hx(jd){var Yd=this,gf=Yd.display;if(!(Wg(Yd,jd)||gf.activeTouch&&gf.input.supportsTouch())){if(gf.input.ensurePolled(),gf.shift=jd.shiftKey,P_(gf,jd)){vd||(gf.scroller.draggable=!1,setTimeout(function(){return gf.scroller.draggable=!0},100));return}if(!gv(Yd,jd)){var hf=h0(Yd,jd),vf=I_(jd),$f=hf?Ux(hf,vf):"single";vh(Yd).focus(),vf==1&&Yd.state.selectingText&&Yd.state.selectingText(jd),!(hf&&Gx(Yd,vf,hf,$f,jd))&&(vf==1?hf?iS(Yd,hf,$f,jd):eb(jd)==gf.scroller&&t_(jd):vf==2?(hf&&ZE(Yd.doc,hf),setTimeout(function(){return gf.input.focus()},20)):vf==3&&(mf?Yd.display.input.onContextMenu(jd):WE(Yd)))}}}function Gx(jd,Yd,gf,hf,vf){var $f="Click";return hf=="double"?$f="Double"+$f:hf=="triple"&&($f="Triple"+$f),$f=(Yd==1?"Left":Yd==2?"Middle":"Right")+$f,rS(jd,UT($f,vf),vf,function(ph){if(typeof ph=="string"&&(ph=nS[ph]),!ph)return!1;var Ah=!1;try{jd.isReadOnly()&&(jd.state.suppressEdits=!0),Ah=ph(jd,gf)!=oh}finally{jd.state.suppressEdits=!1}return Ah})}function mv(jd,Yd,gf){var hf=jd.getOption("configureMouse"),vf=hf?hf(jd,Yd,gf):{};if(vf.unit==null){var $f=Xd?gf.shiftKey&&gf.metaKey:gf.altKey;vf.unit=$f?"rectangle":Yd=="single"?"char":Yd=="double"?"word":"line"}return(vf.extend==null||jd.doc.extend)&&(vf.extend=jd.doc.extend||gf.shiftKey),vf.addNew==null&&(vf.addNew=Kd?gf.metaKey:gf.ctrlKey),vf.moveOnDrag==null&&(vf.moveOnDrag=!(Kd?gf.altKey:gf.ctrlKey)),vf}function iS(jd,Yd,gf,hf){gd?setTimeout(Df(q0,jd),0):jd.curOp.focus=xh(fh(jd));var vf=mv(jd,gf,hf),$f=jd.doc.sel,ph;jd.options.dragDrop&&$_&&!jd.isReadOnly()&&gf=="single"&&(ph=$f.contains(Yd))>-1&&(Fg((ph=$f.ranges[ph]).from(),Yd)<0||Yd.xRel>0)&&(Fg(ph.to(),Yd)>0||Yd.xRel<0)?O1(jd,hf,Yd,vf):qx(jd,hf,Yd,vf)}function O1(jd,Yd,gf,hf){var vf=jd.display,$f=!1,ph=U_(jd,function(Kh){vd&&(vf.scroller.draggable=!1),jd.state.draggingText=!1,jd.state.delayingBlurEvent&&(jd.hasFocus()?jd.state.delayingBlurEvent=!1:WE(jd)),vg(vf.wrapper.ownerDocument,"mouseup",ph),vg(vf.wrapper.ownerDocument,"mousemove",Ah),vg(vf.scroller,"dragstart",Lh),vg(vf.scroller,"drop",ph),$f||(t_(Kh),hf.addNew||ZE(jd.doc,gf,null,null,hf.extend),vd&&!Hd||gd&&yd==9?setTimeout(function(){vf.wrapper.ownerDocument.body.focus({preventScroll:!0}),vf.input.focus()},20):vf.input.focus())}),Ah=function(Kh){$f=$f||Math.abs(Yd.clientX-Kh.clientX)+Math.abs(Yd.clientY-Kh.clientY)>=10},Lh=function(){return $f=!0};vd&&(vf.scroller.draggable=!0),jd.state.draggingText=ph,ph.copy=!hf.moveOnDrag,ig(vf.wrapper.ownerDocument,"mouseup",ph),ig(vf.wrapper.ownerDocument,"mousemove",Ah),ig(vf.scroller,"dragstart",Lh),ig(vf.scroller,"drop",ph),jd.state.delayingBlurEvent=!0,setTimeout(function(){return vf.input.focus()},20),vf.scroller.dragDrop&&vf.scroller.dragDrop()}function zT(jd,Yd,gf){if(gf=="char")return new L_(Yd,Yd);if(gf=="word")return jd.findWordAt(Yd);if(gf=="line")return new L_(sg(Yd.line,0),l_(jd.doc,sg(Yd.line+1,0)));var hf=gf(jd,Yd);return new L_(hf.from,hf.to)}function qx(jd,Yd,gf,hf){gd&&WE(jd);var vf=jd.display,$f=jd.doc;t_(Yd);var ph,Ah,Lh=$f.sel,Kh=Lh.ranges;if(hf.addNew&&!hf.extend?(Ah=$f.sel.contains(gf),Ah>-1?ph=Kh[Ah]:ph=new L_(gf,gf)):(ph=$f.sel.primary(),Ah=$f.sel.primIndex),hf.unit=="rectangle")hf.addNew||(ph=new L_(gf,gf)),gf=h0(jd,Yd,!0,!0),Ah=-1;else{var Om=zT(jd,gf,hf.unit);hf.extend?ph=wb(ph,Om.anchor,Om.head,hf.extend):ph=Om}hf.addNew?Ah==-1?(Ah=Kh.length,Mb($f,i0(jd,Kh.concat([ph]),Ah),{scroll:!1,origin:"*mouse"})):Kh.length>1&&Kh[Ah].empty()&&hf.unit=="char"&&!hf.extend?(Mb($f,i0(jd,Kh.slice(0,Ah).concat(Kh.slice(Ah+1)),0),{scroll:!1,origin:"*mouse"}),Lh=$f.sel):Oy($f,Ah,ph,Tm):(Ah=0,Mb($f,new nb([ph],0),Tm),Lh=$f.sel);var Hm=gf;function Jm(Ug){if(Fg(Hm,Ug)!=0)if(Hm=Ug,hf.unit=="rectangle"){for(var Qg=[],i_=jd.options.tabSize,n_=_h(Mg($f,gf.line).text,gf.ch,i_),E_=_h(Mg($f,Ug.line).text,Ug.ch,i_),G_=Math.min(n_,E_),ub=Math.max(n_,E_),J_=Math.min(gf.line,Ug.line),rb=Math.min(jd.lastLine(),Math.max(gf.line,Ug.line));J_<=rb;J_++){var hb=Mg($f,J_).text,mb=Zf(hb,G_,i_);G_==ub?Qg.push(new L_(sg(J_,mb),sg(J_,mb))):hb.length>mb&&Qg.push(new L_(sg(J_,mb),sg(J_,Zf(hb,ub,i_))))}Qg.length||Qg.push(new L_(gf,gf)),Mb($f,i0(jd,Lh.ranges.slice(0,Ah).concat(Qg),Ah),{origin:"*mouse",scroll:!1}),jd.scrollIntoView(Ug)}else{var Gb=ph,Pb=zT(jd,Ug,hf.unit),vb=Gb.anchor,gb;Fg(Pb.anchor,vb)>0?(gb=Pb.head,vb=jb(Gb.from(),Pb.anchor)):(gb=Pb.anchor,vb=sb(Gb.to(),Pb.head));var ib=Lh.ranges.slice(0);ib[Ah]=WS(jd,new L_(l_($f,vb),gb)),Mb($f,i0(jd,ib,Ah),Tm)}}var Qm=vf.wrapper.getBoundingClientRect(),ug=0;function Tg(Ug){var Qg=++ug,i_=h0(jd,Ug,!0,hf.unit=="rectangle");if(i_)if(Fg(i_,Hm)!=0){jd.curOp.focus=xh(fh(jd)),Jm(i_);var n_=yE(vf,$f);(i_.line>=n_.to||i_.lineQm.bottom?20:0;E_&&setTimeout(U_(jd,function(){ug==Qg&&(vf.scroller.scrollTop+=E_,Tg(Ug))}),50)}}function kg(Ug){jd.state.selectingText=!1,ug=1/0,Ug&&(t_(Ug),vf.input.focus()),vg(vf.wrapper.ownerDocument,"mousemove",Gg),vg(vf.wrapper.ownerDocument,"mouseup",Vg),$f.history.lastSelOrigin=null}var Gg=U_(jd,function(Ug){Ug.buttons===0||!I_(Ug)?kg(Ug):Tg(Ug)}),Vg=U_(jd,kg);jd.state.selectingText=Vg,ig(vf.wrapper.ownerDocument,"mousemove",Gg),ig(vf.wrapper.ownerDocument,"mouseup",Vg)}function WS(jd,Yd){var gf=Yd.anchor,hf=Yd.head,vf=Mg(jd.doc,gf.line);if(Fg(gf,hf)==0&&gf.sticky==hf.sticky)return Yd;var $f=Km(vf);if(!$f)return Yd;var ph=Sm($f,gf.ch,gf.sticky),Ah=$f[ph];if(Ah.from!=gf.ch&&Ah.to!=gf.ch)return Yd;var Lh=ph+(Ah.from==gf.ch==(Ah.level!=1)?0:1);if(Lh==0||Lh==$f.length)return Yd;var Kh;if(hf.line!=gf.line)Kh=(hf.line-gf.line)*(jd.doc.direction=="ltr"?1:-1)>0;else{var Om=Sm($f,hf.ch,hf.sticky),Hm=Om-ph||(hf.ch-gf.ch)*(Ah.level==1?-1:1);Om==Lh-1||Om==Lh?Kh=Hm<0:Kh=Hm>0}var Jm=$f[Lh+(Kh?-1:0)],Qm=Kh==(Jm.level==1),ug=Qm?Jm.from:Jm.to,Tg=Qm?"after":"before";return gf.ch==ug&&gf.sticky==Tg?Yd:new L_(new sg(gf.line,ug,Tg),hf)}function WT(jd,Yd,gf,hf){var vf,$f;if(Yd.touches)vf=Yd.touches[0].clientX,$f=Yd.touches[0].clientY;else try{vf=Yd.clientX,$f=Yd.clientY}catch{return!1}if(vf>=Math.floor(jd.display.gutters.getBoundingClientRect().right))return!1;hf&&t_(Yd);var ph=jd.display,Ah=ph.lineDiv.getBoundingClientRect();if($f>Ah.bottom||!o_(jd,gf))return v_(Yd);$f-=Ah.top-ph.viewOffset;for(var Lh=0;Lh=vf){var Om=Pm(jd.doc,$f),Hm=jd.display.gutterSpecs[Lh];return Og(jd,gf,jd,Om,Hm.className,Yd),v_(Yd)}}}function gv(jd,Yd){return WT(jd,Yd,"gutterClick",!0)}function YS(jd,Yd){P_(jd.display,Yd)||KS(jd,Yd)||Wg(jd,Yd,"contextmenu")||mf||jd.display.input.onContextMenu(Yd)}function KS(jd,Yd){return o_(jd,"gutterContextMenu")?WT(jd,Yd,"gutterContextMenu",!1):!1}function Vx(jd){jd.display.wrapper.className=jd.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+jd.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Bv(jd)}var OE={toString:function(){return"CodeMirror.Init"}},sS={},oS={};function YT(jd){var Yd=jd.optionHandlers;function gf(hf,vf,$f,ph){jd.defaults[hf]=vf,$f&&(Yd[hf]=ph?function(Ah,Lh,Kh){Kh!=OE&&$f(Ah,Lh,Kh)}:$f)}jd.defineOption=gf,jd.Init=OE,gf("value","",function(hf,vf){return hf.setValue(vf)},!0),gf("mode",null,function(hf,vf){hf.doc.modeOption=vf,IT(hf)},!0),gf("indentUnit",2,IT,!0),gf("indentWithTabs",!1),gf("smartIndent",!0),gf("tabSize",4,function(hf){CE(hf),Bv(hf),Wb(hf)},!0),gf("lineSeparator",null,function(hf,vf){if(hf.doc.lineSep=vf,!!vf){var $f=[],ph=hf.doc.first;hf.doc.iter(function(Lh){for(var Kh=0;;){var Om=Lh.text.indexOf(vf,Kh);if(Om==-1)break;Kh=Om+vf.length,$f.push(sg(ph,Om))}ph++});for(var Ah=$f.length-1;Ah>=0;Ah--)wE(hf.doc,vf,$f[Ah],sg($f[Ah].line,$f[Ah].ch+vf.length))}}),gf("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]/g,function(hf,vf,$f){hf.state.specialChars=new RegExp(vf.source+(vf.test(" ")?"":"| "),"g"),$f!=OE&&hf.refresh()}),gf("specialCharPlaceholder",p0,function(hf){return hf.refresh()},!0),gf("electricChars",!0),gf("inputStyle",Wd?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),gf("spellcheck",!1,function(hf,vf){return hf.getInputField().spellcheck=vf},!0),gf("autocorrect",!1,function(hf,vf){return hf.getInputField().autocorrect=vf},!0),gf("autocapitalize",!1,function(hf,vf){return hf.getInputField().autocapitalize=vf},!0),gf("rtlMoveVisually",!df),gf("wholeLineUpdateBefore",!0),gf("theme","default",function(hf){Vx(hf),Vv(hf)},!0),gf("keyMap","default",function(hf,vf,$f){var ph=Zv(vf),Ah=$f!=OE&&Zv($f);Ah&&Ah.detach&&Ah.detach(hf,ph),ph.attach&&ph.attach(hf,Ah||null)}),gf("extraKeys",null),gf("configureMouse",null),gf("lineWrapping",!1,zx,!0),gf("gutters",[],function(hf,vf){hf.display.gutterSpecs=r0(vf,hf.options.lineNumbers),Vv(hf)},!0),gf("fixedGutter",!0,function(hf,vf){hf.display.gutters.style.left=vf?F_(hf.display)+"px":"0",hf.refresh()},!0),gf("coverGutterNextToScrollbar",!1,function(hf){return m0(hf)},!0),gf("scrollbarStyle","native",function(hf){dx(hf),m0(hf),hf.display.scrollbars.setScrollTop(hf.doc.scrollTop),hf.display.scrollbars.setScrollLeft(hf.doc.scrollLeft)},!0),gf("lineNumbers",!1,function(hf,vf){hf.display.gutterSpecs=r0(hf.options.gutters,vf),Vv(hf)},!0),gf("firstLineNumber",1,Vv,!0),gf("lineNumberFormatter",function(hf){return hf},Vv,!0),gf("showCursorWhenSelecting",!1,G0,!0),gf("resetSelectionOnContextMenu",!0),gf("lineWiseCopyCut",!0),gf("pasteLinesPerSelection",!0),gf("selectionsMayTouch",!1),gf("readOnly",!1,function(hf,vf){vf=="nocursor"&&(YE(hf),hf.display.input.blur()),hf.display.input.readOnlyChanged(vf)}),gf("screenReaderLabel",null,function(hf,vf){vf=vf===""?null:vf,hf.display.input.screenReaderLabelChanged(vf)}),gf("disableInput",!1,function(hf,vf){vf||hf.display.input.reset()},!0),gf("dragDrop",!0,k1),gf("allowDropFileTypes",null),gf("cursorBlinkRate",530),gf("cursorScrollMargin",0),gf("cursorHeight",1,G0,!0),gf("singleCursorHeightPerLine",!0,G0,!0),gf("workTime",100),gf("workDelay",100),gf("flattenSpans",!0,CE,!0),gf("addModeClass",!1,CE,!0),gf("pollInterval",100),gf("undoDepth",200,function(hf,vf){return hf.doc.history.undoDepth=vf}),gf("historyEventDelay",1250),gf("viewportMargin",10,function(hf){return hf.refresh()},!0),gf("maxHighlightLength",1e4,CE,!0),gf("moveInputWithCursor",!0,function(hf,vf){vf||hf.display.input.resetPosition()}),gf("tabindex",null,function(hf,vf){return hf.display.input.getField().tabIndex=vf||""}),gf("autofocus",null),gf("direction","ltr",function(hf,vf){return hf.doc.setDirection(vf)},!0),gf("phrases",null)}function k1(jd,Yd,gf){var hf=gf&&gf!=OE;if(!Yd!=!hf){var vf=jd.display.dragFunctions,$f=Yd?ig:vg;$f(jd.display.scroller,"dragstart",vf.start),$f(jd.display.scroller,"dragenter",vf.enter),$f(jd.display.scroller,"dragover",vf.over),$f(jd.display.scroller,"dragleave",vf.leave),$f(jd.display.scroller,"drop",vf.drop)}}function zx(jd){jd.options.lineWrapping?(Eh(jd.display.wrapper,"CodeMirror-wrap"),jd.display.sizer.style.minWidth="",jd.display.sizerWidth=null):(xf(jd.display.wrapper,"CodeMirror-wrap"),jE(jd)),IS(jd),Wb(jd),Bv(jd),setTimeout(function(){return m0(jd)},100)}function k_(jd,Yd){var gf=this;if(!(this instanceof k_))return new k_(jd,Yd);this.options=Yd=Yd?Af(Yd):{},Af(sS,Yd,!1);var hf=Yd.value;typeof hf=="string"?hf=new Hb(hf,Yd.mode,null,Yd.lineSeparator,Yd.direction):Yd.mode&&(hf.modeOption=Yd.mode),this.doc=hf;var vf=new k_.inputStyles[Yd.inputStyle](this),$f=this.display=new y1(jd,hf,vf,Yd);$f.wrapper.CodeMirror=this,Vx(this),Yd.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),dx(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 Nh,keySeq:null,specialChars:null},Yd.autofocus&&!Wd&&$f.input.focus(),gd&&yd<11&&setTimeout(function(){return gf.display.input.reset(!0)},20),Wx(this),Lx(),TE(this),this.curOp.forceUpdate=!0,RT(this,hf),Yd.autofocus&&!Wd||this.hasFocus()?setTimeout(function(){gf.hasFocus()&&!gf.state.focused&&vT(gf)},20):YE(this);for(var ph in oS)oS.hasOwnProperty(ph)&&oS[ph](this,Yd[ph],OE);mx(this),Yd.finishInit&&Yd.finishInit(this);for(var Ah=0;Ah20*20}ig(Yd.scroller,"touchstart",function(Lh){if(!Wg(jd,Lh)&&!$f(Lh)&&!gv(jd,Lh)){Yd.input.ensurePolled(),clearTimeout(gf);var Kh=+new Date;Yd.activeTouch={start:Kh,moved:!1,prev:Kh-hf.end<=300?hf:null},Lh.touches.length==1&&(Yd.activeTouch.left=Lh.touches[0].pageX,Yd.activeTouch.top=Lh.touches[0].pageY)}}),ig(Yd.scroller,"touchmove",function(){Yd.activeTouch&&(Yd.activeTouch.moved=!0)}),ig(Yd.scroller,"touchend",function(Lh){var Kh=Yd.activeTouch;if(Kh&&!P_(Yd,Lh)&&Kh.left!=null&&!Kh.moved&&new Date-Kh.start<300){var Om=jd.coordsChar(Yd.activeTouch,"page"),Hm;!Kh.prev||ph(Kh,Kh.prev)?Hm=new L_(Om,Om):!Kh.prev.prev||ph(Kh,Kh.prev.prev)?Hm=jd.findWordAt(Om):Hm=new L_(sg(Om.line,0),l_(jd.doc,sg(Om.line+1,0))),jd.setSelection(Hm.anchor,Hm.head),jd.focus(),t_(Lh)}vf()}),ig(Yd.scroller,"touchcancel",vf),ig(Yd.scroller,"scroll",function(){Yd.scroller.clientHeight&&(Uv(jd,Yd.scroller.scrollTop),t0(jd,Yd.scroller.scrollLeft,!0),Og(jd,"scroll",jd))}),ig(Yd.scroller,"mousewheel",function(Lh){return _x(jd,Lh)}),ig(Yd.scroller,"DOMMouseScroll",function(Lh){return _x(jd,Lh)}),ig(Yd.wrapper,"scroll",function(){return Yd.wrapper.scrollTop=Yd.wrapper.scrollLeft=0}),Yd.dragFunctions={enter:function(Lh){Wg(jd,Lh)||X_(Lh)},over:function(Lh){Wg(jd,Lh)||(T_(jd,Lh),X_(Lh))},start:function(Lh){return jT(jd,Lh)},drop:U_(jd,C1),leave:function(Lh){Wg(jd,Lh)||$x(jd)}};var Ah=Yd.input.getField();ig(Ah,"keyup",function(Lh){return o0.call(jd,Lh)}),ig(Ah,"keydown",U_(jd,VT)),ig(Ah,"keypress",U_(jd,jx)),ig(Ah,"focus",function(Lh){return vT(jd,Lh)}),ig(Ah,"blur",function(Lh){return YE(jd,Lh)})}var XS=[];k_.defineInitHook=function(jd){return XS.push(jd)};function lS(jd,Yd,gf,hf){var vf=jd.doc,$f;gf==null&&(gf="add"),gf=="smart"&&(vf.mode.indent?$f=xb(jd,Yd).state:gf="prev");var ph=jd.options.tabSize,Ah=Mg(vf,Yd),Lh=_h(Ah.text,null,ph);Ah.stateAfter&&(Ah.stateAfter=null);var Kh=Ah.text.match(/^\s*/)[0],Om;if(!hf&&!/\S/.test(Ah.text))Om=0,gf="not";else if(gf=="smart"&&(Om=vf.mode.indent($f,Ah.text.slice(Kh.length),Ah.text),Om==oh||Om>150)){if(!hf)return;gf="prev"}gf=="prev"?Yd>vf.first?Om=_h(Mg(vf,Yd-1).text,null,ph):Om=0:gf=="add"?Om=Lh+jd.options.indentUnit:gf=="subtract"?Om=Lh-jd.options.indentUnit:typeof gf=="number"&&(Om=Lh+gf),Om=Math.max(0,Om);var Hm="",Jm=0;if(jd.options.indentWithTabs)for(var Qm=Math.floor(Om/ph);Qm;--Qm)Jm+=ph,Hm+=" ";if(Jmph,Lh=nh(Yd),Kh=null;if(Ah&&hf.ranges.length>1)if(My&&My.text.join(` `)==Yd){if(hf.ranges.length%My.text.length==0){Kh=[];for(var Om=0;Om=0;Jm--){var Qm=hf.ranges[Jm],ug=Qm.from(),Tg=Qm.to();Qm.empty()&&(gf&&gf>0?ug=sg(ug.line,ug.ch-gf):jd.state.overwrite&&!Ah?Tg=sg(Tg.line,Math.min(Mg($f,Tg.line).text.length,Tg.ch+wh(Lh).length)):Ah&&My&&My.lineWise&&My.text.join(` `)==Lh.join(` -`)&&(ug=Tg=sg(ug.line,0)));var kg={from:ug,to:Tg,text:Kh?Kh[Jm%Kh.length]:Lh,origin:vf||(Ah?"paste":jd.state.cutIncoming>ph?"cut":"+input")};rv(jd.doc,kg),Zd(jd,"inputRead",jd,kg)}Yd&&!Ah&&JS(jd,Yd),Z_(jd),jd.curOp.updateInput<2&&(jd.curOp.updateInput=Hm),jd.curOp.typing=!0,jd.state.pasteIncoming=jd.state.cutIncoming=-1}function y0(jd,Yd){var gf=jd.clipboardData&&jd.clipboardData.getData("Text");if(gf)return jd.preventDefault(),!Yd.isReadOnly()&&!Yd.options.disableInput&&Yd.hasFocus()&&Bb(Yd,function(){return KT(Yd,gf,0,null,"paste")}),!0}function JS(jd,Yd){if(!(!jd.options.electricChars||!jd.options.smartIndent))for(var gf=jd.doc.sel,hf=gf.ranges.length-1;hf>=0;hf--){var vf=gf.ranges[hf];if(!(vf.head.ch>100||hf&&gf.ranges[hf-1].head.line==vf.head.line)){var $f=jd.getModeAt(vf.head),ph=!1;if($f.electricChars){for(var Ah=0;Ah<$f.electricChars.length;Ah++)if(Yd.indexOf($f.electricChars.charAt(Ah))>-1){ph=lS(jd,vf.head.line,"smart");break}}else $f.electricInput&&$f.electricInput.test(Mg(jd.doc,vf.head.line).text.slice(0,vf.head.ch))&&(ph=lS(jd,vf.head.line,"smart"));ph&&Zd(jd,"electricInput",jd,vf.head.line)}}}function ZS(jd){for(var Yd=[],gf=[],hf=0;hf$f&&(lS(this,Ah.head.line,hf,!0),$f=Ah.head.line,ph==this.doc.sel.primIndex&&Z_(this));else{var Lh=Ah.from(),Kh=Ah.to(),Om=Math.max($f,Lh.line);$f=Math.min(this.lastLine(),Kh.line-(Kh.ch?0:1))+1;for(var Hm=Om;Hm<$f;++Hm)lS(this,Hm,hf);var Jm=this.doc.sel.ranges;Lh.ch==0&&vf.length==Jm.length&&Jm[ph].from().ch>0&&Oy(this.doc,ph,new L_(Lh,Jm[ph].to()),Xh)}}}),getTokenAt:function(hf,vf){return B0(this,hf,vf)},getLineTokens:function(hf,vf){return B0(this,sg(hf),vf,!0)},getTokenTypeAt:function(hf){hf=l_(this.doc,hf);var vf=d0(this,Mg(this.doc,hf.line)),$f=0,ph=(vf.length-1)/2,Ah=hf.ch,Lh;if(Ah==0)Lh=vf[2];else for(;;){var Kh=$f+ph>>1;if((Kh?vf[Kh*2-1]:0)>=Ah)ph=Kh;else if(vf[Kh*2+1]Lh&&(hf=Lh,ph=!0),Ah=Mg(this.doc,hf)}else Ah=hf;return D0(this,Ah,{top:0,left:0},vf||"page",$f||ph).top+(ph?this.doc.height-Ay(Ah):0)},defaultTextHeight:function(){return Vy(this.display)},defaultCharWidth:function(){return N0(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(hf,vf,$f,ph,Ah){var Lh=this.display;hf=og(this,l_(this.doc,hf));var Kh=hf.bottom,Om=hf.left;if(vf.style.position="absolute",vf.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(vf),Lh.sizer.appendChild(vf),ph=="over")Kh=hf.top;else if(ph=="above"||ph=="near"){var Hm=Math.max(Lh.wrapper.clientHeight,this.doc.height),Jm=Math.max(Lh.sizer.clientWidth,Lh.lineSpace.clientWidth);(ph=="above"||hf.bottom+vf.offsetHeight>Hm)&&hf.top>vf.offsetHeight?Kh=hf.top-vf.offsetHeight:hf.bottom+vf.offsetHeight<=Hm&&(Kh=hf.bottom),Om+vf.offsetWidth>Jm&&(Om=Jm-vf.offsetWidth)}vf.style.top=Kh+"px",vf.style.left=vf.style.right="",Ah=="right"?(Om=Lh.sizer.clientWidth-vf.offsetWidth,vf.style.right="0px"):(Ah=="left"?Om=0:Ah=="middle"&&(Om=(Lh.sizer.clientWidth-vf.offsetWidth)/2),vf.style.left=Om+"px"),$f&&ux(this,{left:Om,top:Kh,right:Om+vf.offsetWidth,bottom:Kh+vf.offsetHeight})},triggerOnKeyDown:c_(VT),triggerOnKeyPress:c_(jx),triggerOnKeyUp:o0,triggerOnMouseDown:c_(Hx),execCommand:function(hf){if(nS.hasOwnProperty(hf))return nS[hf].call(null,this)},triggerElectric:c_(function(hf){JS(this,hf)}),findPosH:function(hf,vf,$f,ph){var Ah=1;vf<0&&(Ah=-1,vf=-vf);for(var Lh=l_(this.doc,hf),Kh=0;Kh0&&Om($f.charAt(ph-1));)--ph;for(;Ah<$f.length&&Om($f.charAt(Ah));)++Ah}return new L_(sg(hf.line,ph),sg(hf.line,Ah))},toggleOverwrite:function(hf){hf!=null&&hf==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?Eh(this.display.cursorDiv,"CodeMirror-overwrite"):xf(this.display.cursorDiv,"CodeMirror-overwrite"),Og(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==xh(fh(this))},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:c_(function(hf,vf){Eb(this,hf,vf)}),getScrollInfo:function(){var hf=this.display.scroller;return{left:hf.scrollLeft,top:hf.scrollTop,height:hf.scrollHeight-f0(this)-this.display.barHeight,width:hf.scrollWidth-f0(this)-this.display.barWidth,clientHeight:hT(this),clientWidth:pE(this)}},scrollIntoView:c_(function(hf,vf){hf==null?(hf={from:this.doc.sel.primary().head,to:null},vf==null&&(vf=this.options.cursorScrollMargin)):typeof hf=="number"?hf={from:sg(hf,0),to:null}:hf.from==null&&(hf={from:hf,to:null}),hf.to||(hf.to=hf.from),hf.margin=vf||0,hf.from.line!=null?d1(this,hf):CT(this,hf.from,hf.to,hf.margin)}),setSize:c_(function(hf,vf){var $f=this,ph=function(Lh){return typeof Lh=="number"||/^\d+$/.test(String(Lh))?Lh+"px":Lh};hf!=null&&(this.display.wrapper.style.width=ph(hf)),vf!=null&&(this.display.wrapper.style.height=ph(vf)),this.options.lineWrapping&&rx(this);var Ah=this.display.viewFrom;this.doc.iter(Ah,this.display.viewTo,function(Lh){if(Lh.widgets){for(var Kh=0;Kh.5||this.options.lineWrapping)&&IS(this),Og(this,"refresh",this)}),swapDoc:c_(function(hf){var vf=this.doc;return vf.cm=null,this.state.selectingText&&this.state.selectingText(),RT(this,hf),Bv(this),this.display.input.reset(),Eb(this,hf.scrollLeft,hf.scrollTop),this.curOp.forceScroll=!0,Zd(this,"swapDoc",this,vf),vf}),phrase:function(hf){var vf=this.options.phrases;return vf&&Object.prototype.hasOwnProperty.call(vf,hf)?vf[hf]:hf},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}},y_(jd),jd.registerHelper=function(hf,vf,$f){gf.hasOwnProperty(hf)||(gf[hf]=jd[hf]={_global:[]}),gf[hf][vf]=$f},jd.registerGlobalHelper=function(hf,vf,$f,ph){jd.registerHelper(hf,vf,ph),gf[hf]._global.push({pred:$f,val:ph})}}function u_(jd,Yd,gf,hf,vf){var $f=Yd,ph=gf,Ah=Mg(jd,Yd.line),Lh=vf&&jd.direction=="rtl"?-gf:gf;function Kh(){var Vg=Yd.line+Lh;return Vg=jd.first+jd.size?!1:(Yd=new sg(Vg,Yd.ch,Yd.sticky),Ah=Mg(jd,Vg))}function Om(Vg){var Ug;if(hf=="codepoint"){var Qg=Ah.text.charCodeAt(Yd.ch+(gf>0?0:-1));if(isNaN(Qg))Ug=null;else{var i_=gf>0?Qg>=55296&&Qg<56320:Qg>=56320&&Qg<57343;Ug=new sg(Yd.line,Math.max(0,Math.min(Ah.text.length,Yd.ch+gf*(i_?2:1))),-gf)}}else vf?Ug=J0(jd.cm,Ah,Yd,gf):Ug=eS(Ah,Yd,gf);if(Ug==null)if(!Vg&&Kh())Yd=tS(vf,jd.cm,Ah,Yd.line,Lh);else return!1;else Yd=Ug;return!0}if(hf=="char"||hf=="codepoint")Om();else if(hf=="column")Om(!0);else if(hf=="word"||hf=="group")for(var Hm=null,Jm=hf=="group",Qm=jd.cm&&jd.cm.getHelper(Yd,"wordChars"),ug=!0;!(gf<0&&!Om(!ug));ug=!1){var Tg=Ah.text.charAt(Yd.ch)||` +`)&&(ug=Tg=sg(ug.line,0)));var kg={from:ug,to:Tg,text:Kh?Kh[Jm%Kh.length]:Lh,origin:vf||(Ah?"paste":jd.state.cutIncoming>ph?"cut":"+input")};rv(jd.doc,kg),Zd(jd,"inputRead",jd,kg)}Yd&&!Ah&&JS(jd,Yd),Z_(jd),jd.curOp.updateInput<2&&(jd.curOp.updateInput=Hm),jd.curOp.typing=!0,jd.state.pasteIncoming=jd.state.cutIncoming=-1}function y0(jd,Yd){var gf=jd.clipboardData&&jd.clipboardData.getData("Text");if(gf)return jd.preventDefault(),!Yd.isReadOnly()&&!Yd.options.disableInput&&Yd.hasFocus()&&Bb(Yd,function(){return KT(Yd,gf,0,null,"paste")}),!0}function JS(jd,Yd){if(!(!jd.options.electricChars||!jd.options.smartIndent))for(var gf=jd.doc.sel,hf=gf.ranges.length-1;hf>=0;hf--){var vf=gf.ranges[hf];if(!(vf.head.ch>100||hf&&gf.ranges[hf-1].head.line==vf.head.line)){var $f=jd.getModeAt(vf.head),ph=!1;if($f.electricChars){for(var Ah=0;Ah<$f.electricChars.length;Ah++)if(Yd.indexOf($f.electricChars.charAt(Ah))>-1){ph=lS(jd,vf.head.line,"smart");break}}else $f.electricInput&&$f.electricInput.test(Mg(jd.doc,vf.head.line).text.slice(0,vf.head.ch))&&(ph=lS(jd,vf.head.line,"smart"));ph&&Zd(jd,"electricInput",jd,vf.head.line)}}}function ZS(jd){for(var Yd=[],gf=[],hf=0;hf$f&&(lS(this,Ah.head.line,hf,!0),$f=Ah.head.line,ph==this.doc.sel.primIndex&&Z_(this));else{var Lh=Ah.from(),Kh=Ah.to(),Om=Math.max($f,Lh.line);$f=Math.min(this.lastLine(),Kh.line-(Kh.ch?0:1))+1;for(var Hm=Om;Hm<$f;++Hm)lS(this,Hm,hf);var Jm=this.doc.sel.ranges;Lh.ch==0&&vf.length==Jm.length&&Jm[ph].from().ch>0&&Oy(this.doc,ph,new L_(Lh,Jm[ph].to()),Xh)}}}),getTokenAt:function(hf,vf){return B0(this,hf,vf)},getLineTokens:function(hf,vf){return B0(this,sg(hf),vf,!0)},getTokenTypeAt:function(hf){hf=l_(this.doc,hf);var vf=d0(this,Mg(this.doc,hf.line)),$f=0,ph=(vf.length-1)/2,Ah=hf.ch,Lh;if(Ah==0)Lh=vf[2];else for(;;){var Kh=$f+ph>>1;if((Kh?vf[Kh*2-1]:0)>=Ah)ph=Kh;else if(vf[Kh*2+1]Lh&&(hf=Lh,ph=!0),Ah=Mg(this.doc,hf)}else Ah=hf;return D0(this,Ah,{top:0,left:0},vf||"page",$f||ph).top+(ph?this.doc.height-Ay(Ah):0)},defaultTextHeight:function(){return Vy(this.display)},defaultCharWidth:function(){return N0(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(hf,vf,$f,ph,Ah){var Lh=this.display;hf=lg(this,l_(this.doc,hf));var Kh=hf.bottom,Om=hf.left;if(vf.style.position="absolute",vf.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(vf),Lh.sizer.appendChild(vf),ph=="over")Kh=hf.top;else if(ph=="above"||ph=="near"){var Hm=Math.max(Lh.wrapper.clientHeight,this.doc.height),Jm=Math.max(Lh.sizer.clientWidth,Lh.lineSpace.clientWidth);(ph=="above"||hf.bottom+vf.offsetHeight>Hm)&&hf.top>vf.offsetHeight?Kh=hf.top-vf.offsetHeight:hf.bottom+vf.offsetHeight<=Hm&&(Kh=hf.bottom),Om+vf.offsetWidth>Jm&&(Om=Jm-vf.offsetWidth)}vf.style.top=Kh+"px",vf.style.left=vf.style.right="",Ah=="right"?(Om=Lh.sizer.clientWidth-vf.offsetWidth,vf.style.right="0px"):(Ah=="left"?Om=0:Ah=="middle"&&(Om=(Lh.sizer.clientWidth-vf.offsetWidth)/2),vf.style.left=Om+"px"),$f&&ux(this,{left:Om,top:Kh,right:Om+vf.offsetWidth,bottom:Kh+vf.offsetHeight})},triggerOnKeyDown:c_(VT),triggerOnKeyPress:c_(jx),triggerOnKeyUp:o0,triggerOnMouseDown:c_(Hx),execCommand:function(hf){if(nS.hasOwnProperty(hf))return nS[hf].call(null,this)},triggerElectric:c_(function(hf){JS(this,hf)}),findPosH:function(hf,vf,$f,ph){var Ah=1;vf<0&&(Ah=-1,vf=-vf);for(var Lh=l_(this.doc,hf),Kh=0;Kh0&&Om($f.charAt(ph-1));)--ph;for(;Ah<$f.length&&Om($f.charAt(Ah));)++Ah}return new L_(sg(hf.line,ph),sg(hf.line,Ah))},toggleOverwrite:function(hf){hf!=null&&hf==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?Eh(this.display.cursorDiv,"CodeMirror-overwrite"):xf(this.display.cursorDiv,"CodeMirror-overwrite"),Og(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==xh(fh(this))},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:c_(function(hf,vf){Eb(this,hf,vf)}),getScrollInfo:function(){var hf=this.display.scroller;return{left:hf.scrollLeft,top:hf.scrollTop,height:hf.scrollHeight-f0(this)-this.display.barHeight,width:hf.scrollWidth-f0(this)-this.display.barWidth,clientHeight:hT(this),clientWidth:pE(this)}},scrollIntoView:c_(function(hf,vf){hf==null?(hf={from:this.doc.sel.primary().head,to:null},vf==null&&(vf=this.options.cursorScrollMargin)):typeof hf=="number"?hf={from:sg(hf,0),to:null}:hf.from==null&&(hf={from:hf,to:null}),hf.to||(hf.to=hf.from),hf.margin=vf||0,hf.from.line!=null?d1(this,hf):CT(this,hf.from,hf.to,hf.margin)}),setSize:c_(function(hf,vf){var $f=this,ph=function(Lh){return typeof Lh=="number"||/^\d+$/.test(String(Lh))?Lh+"px":Lh};hf!=null&&(this.display.wrapper.style.width=ph(hf)),vf!=null&&(this.display.wrapper.style.height=ph(vf)),this.options.lineWrapping&&rx(this);var Ah=this.display.viewFrom;this.doc.iter(Ah,this.display.viewTo,function(Lh){if(Lh.widgets){for(var Kh=0;Kh.5||this.options.lineWrapping)&&IS(this),Og(this,"refresh",this)}),swapDoc:c_(function(hf){var vf=this.doc;return vf.cm=null,this.state.selectingText&&this.state.selectingText(),RT(this,hf),Bv(this),this.display.input.reset(),Eb(this,hf.scrollLeft,hf.scrollTop),this.curOp.forceScroll=!0,Zd(this,"swapDoc",this,vf),vf}),phrase:function(hf){var vf=this.options.phrases;return vf&&Object.prototype.hasOwnProperty.call(vf,hf)?vf[hf]:hf},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}},y_(jd),jd.registerHelper=function(hf,vf,$f){gf.hasOwnProperty(hf)||(gf[hf]=jd[hf]={_global:[]}),gf[hf][vf]=$f},jd.registerGlobalHelper=function(hf,vf,$f,ph){jd.registerHelper(hf,vf,ph),gf[hf]._global.push({pred:$f,val:ph})}}function u_(jd,Yd,gf,hf,vf){var $f=Yd,ph=gf,Ah=Mg(jd,Yd.line),Lh=vf&&jd.direction=="rtl"?-gf:gf;function Kh(){var Vg=Yd.line+Lh;return Vg=jd.first+jd.size?!1:(Yd=new sg(Vg,Yd.ch,Yd.sticky),Ah=Mg(jd,Vg))}function Om(Vg){var Ug;if(hf=="codepoint"){var Qg=Ah.text.charCodeAt(Yd.ch+(gf>0?0:-1));if(isNaN(Qg))Ug=null;else{var i_=gf>0?Qg>=55296&&Qg<56320:Qg>=56320&&Qg<57343;Ug=new sg(Yd.line,Math.max(0,Math.min(Ah.text.length,Yd.ch+gf*(i_?2:1))),-gf)}}else vf?Ug=J0(jd.cm,Ah,Yd,gf):Ug=eS(Ah,Yd,gf);if(Ug==null)if(!Vg&&Kh())Yd=tS(vf,jd.cm,Ah,Yd.line,Lh);else return!1;else Yd=Ug;return!0}if(hf=="char"||hf=="codepoint")Om();else if(hf=="column")Om(!0);else if(hf=="word"||hf=="group")for(var Hm=null,Jm=hf=="group",Qm=jd.cm&&jd.cm.getHelper(Yd,"wordChars"),ug=!0;!(gf<0&&!Om(!ug));ug=!1){var Tg=Ah.text.charAt(Yd.ch)||` `,kg=Ym(Tg,Qm)?"w":Jm&&Tg==` `?"n":!Jm||/\s/.test(Tg)?null:"p";if(Jm&&!ug&&!kg&&(kg="s"),Hm&&Hm!=kg){gf<0&&(gf=1,Om(),Yd.sticky="after");break}if(kg&&(Hm=kg),gf>0&&!Om(!ug))break}var Gg=tv(jd,Yd,$f,ph,!0);return b_($f,Gg)&&(Gg.hitSide=!0),Gg}function dS(jd,Yd,gf,hf){var vf=jd.doc,$f=Yd.left,ph;if(hf=="page"){var Ah=Math.min(jd.display.wrapper.clientHeight,vh(jd).innerHeight||vf(jd).documentElement.clientHeight),Lh=Math.max(Ah-.5*Vy(jd.display),3);ph=(gf>0?Yd.bottom:Yd.top)+gf*Lh}else hf=="line"&&(ph=gf>0?Yd.bottom+3:Yd.top-3);for(var Kh;Kh=O_(jd,$f,ph),!!Kh.outside;){if(gf<0?ph<=0:ph>=vf.height){Kh.hitSide=!0;break}ph+=gf*5}return Kh}var B_=function(jd){this.cm=jd,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new Nh,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};B_.prototype.init=function(jd){var Yd=this,gf=this,hf=gf.cm,vf=gf.div=jd.lineDiv;vf.contentEditable=!0,uS(vf,hf.options.spellcheck,hf.options.autocorrect,hf.options.autocapitalize);function $f(Ah){for(var Lh=Ah.target;Lh;Lh=Lh.parentNode){if(Lh==vf)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(Lh.className))break}return!1}ig(vf,"paste",function(Ah){!$f(Ah)||Wg(hf,Ah)||y0(Ah,hf)||yd<=11&&setTimeout(U_(hf,function(){return Yd.updateFromDOM()}),20)}),ig(vf,"compositionstart",function(Ah){Yd.composing={data:Ah.data,done:!1}}),ig(vf,"compositionupdate",function(Ah){Yd.composing||(Yd.composing={data:Ah.data,done:!1})}),ig(vf,"compositionend",function(Ah){Yd.composing&&(Ah.data!=Yd.composing.data&&Yd.readFromDOMSoon(),Yd.composing.done=!0)}),ig(vf,"touchstart",function(){return gf.forceCompositionEnd()}),ig(vf,"input",function(){Yd.composing||Yd.readFromDOMSoon()});function ph(Ah){if(!(!$f(Ah)||Wg(hf,Ah))){if(hf.somethingSelected())QS({lineWise:!1,text:hf.getSelections()}),Ah.type=="cut"&&hf.replaceSelection("",null,"cut");else if(hf.options.lineWiseCopyCut){var Lh=ZS(hf);QS({lineWise:!0,text:Lh.text}),Ah.type=="cut"&&hf.operation(function(){hf.setSelections(Lh.ranges,0,Xh),hf.replaceSelection("",null,"cut")})}else return;if(Ah.clipboardData){Ah.clipboardData.clearData();var Kh=My.text.join(` `);if(Ah.clipboardData.setData("Text",Kh),Ah.clipboardData.getData("Text")==Kh){Ah.preventDefault();return}}var Om=cS(),Hm=Om.firstChild;uS(Hm),hf.display.lineSpace.insertBefore(Om,hf.display.lineSpace.firstChild),Hm.value=My.text.join(` `);var Jm=xh(Sh(vf));dh(Hm),setTimeout(function(){hf.display.lineSpace.removeChild(Om),Jm.focus(),Jm==vf&&gf.showPrimarySelection()},50)}}ig(vf,"copy",ph),ig(vf,"cut",ph)},B_.prototype.screenReaderLabelChanged=function(jd){jd?this.div.setAttribute("aria-label",jd):this.div.removeAttribute("aria-label")},B_.prototype.prepareSelection=function(){var jd=ET(this.cm,!1);return jd.focus=xh(Sh(this.div))==this.div,jd},B_.prototype.showSelection=function(jd,Yd){!jd||!this.cm.display.view.length||((jd.focus||Yd)&&this.showPrimarySelection(),this.showMultipleSelections(jd))},B_.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},B_.prototype.showPrimarySelection=function(){var jd=this.getSelection(),Yd=this.cm,gf=Yd.doc.sel.primary(),hf=gf.from(),vf=gf.to();if(Yd.display.viewTo==Yd.display.viewFrom||hf.line>=Yd.display.viewTo||vf.line=Yd.display.viewFrom&&Z0(Yd,hf)||{node:Ah[0].measure.map[2],offset:0},Kh=vf.linejd.firstLine()&&(hf=sg(hf.line-1,Mg(jd.doc,hf.line-1).length)),vf.ch==Mg(jd.doc,vf.line).text.length&&vf.lineYd.viewTo-1)return!1;var $f,ph,Ah;hf.line==Yd.viewFrom||($f=hE(jd,hf.line))==0?(ph=qh(Yd.view[0].line),Ah=Yd.view[0].node):(ph=qh(Yd.view[$f].line),Ah=Yd.view[$f-1].node.nextSibling);var Lh=hE(jd,vf.line),Kh,Om;if(Lh==Yd.view.length-1?(Kh=Yd.viewTo-1,Om=Yd.lineDiv.lastChild):(Kh=qh(Yd.view[Lh+1].line)-1,Om=Yd.view[Lh+1].node.previousSibling),!Ah)return!1;for(var Hm=jd.doc.splitLines(Yx(jd,Ah,Om,ph,Kh)),Jm=q_(jd.doc,sg(ph,0),sg(Kh,Mg(jd.doc,Kh).text.length));Hm.length>1&&Jm.length>1;)if(wh(Hm)==wh(Jm))Hm.pop(),Jm.pop(),Kh--;else if(Hm[0]==Jm[0])Hm.shift(),Jm.shift(),ph++;else break;for(var Qm=0,ug=0,Tg=Hm[0],kg=Jm[0],Gg=Math.min(Tg.length,kg.length);Qmhf.ch&&Vg.charCodeAt(Vg.length-ug-1)==Ug.charCodeAt(Ug.length-ug-1);)Qm--,ug++;Hm[Hm.length-1]=Vg.slice(0,Vg.length-ug).replace(/^\u200b+/,""),Hm[0]=Hm[0].slice(Qm).replace(/\u200b+$/,"");var i_=sg(ph,Qm),n_=sg(Kh,Jm.length?wh(Jm).length-ug:0);if(Hm.length>1||Hm[0]||Fg(i_,n_))return wE(jd.doc,Hm,i_,n_,"+input"),!0},B_.prototype.ensurePolled=function(){this.forceCompositionEnd()},B_.prototype.reset=function(){this.forceCompositionEnd()},B_.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},B_.prototype.readFromDOMSoon=function(){var jd=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(jd.readDOMTimeout=null,jd.composing)if(jd.composing.done)jd.composing=null;else return;jd.updateFromDOM()},80))},B_.prototype.updateFromDOM=function(){var jd=this;(this.cm.isReadOnly()||!this.pollContent())&&Bb(this.cm,function(){return Wb(jd.cm)})},B_.prototype.setUneditable=function(jd){jd.contentEditable="false"},B_.prototype.onKeyPress=function(jd){jd.charCode==0||this.composing||(jd.preventDefault(),this.cm.isReadOnly()||U_(this.cm,KT)(this.cm,String.fromCharCode(jd.charCode==null?jd.keyCode:jd.charCode),0))},B_.prototype.readOnlyChanged=function(jd){this.div.contentEditable=String(jd!="nocursor")},B_.prototype.onContextMenu=function(){},B_.prototype.resetPosition=function(){},B_.prototype.needsContentAttribute=!0;function Z0(jd,Yd){var gf=wS(jd,Yd.line);if(!gf||gf.hidden)return null;var hf=Mg(jd.doc,Yd.line),vf=ex(gf,hf,Yd.line),$f=Km(hf,jd.doc.direction),ph="left";if($f){var Ah=Sm($f,Yd.ch);ph=Ah%2?"right":"left"}var Lh=nx(vf.map,Yd.ch,ph);return Lh.offset=Lh.collapse=="right"?Lh.end:Lh.start,Lh}function M1(jd){for(var Yd=jd;Yd;Yd=Yd.parentNode)if(/CodeMirror-gutter-wrapper/.test(Yd.className))return!0;return!1}function eE(jd,Yd){return Yd&&(jd.bad=!0),jd}function Yx(jd,Yd,gf,hf,vf){var $f="",ph=!1,Ah=jd.doc.lineSeparator(),Lh=!1;function Kh(Qm){return function(ug){return ug.id==Qm}}function Om(){ph&&($f+=Ah,Lh&&($f+=Ah),ph=Lh=!1)}function Hm(Qm){Qm&&(Om(),$f+=Qm)}function Jm(Qm){if(Qm.nodeType==1){var ug=Qm.getAttribute("cm-text");if(ug){Hm(ug);return}var Tg=Qm.getAttribute("cm-marker"),kg;if(Tg){var Gg=jd.findMarks(sg(hf,0),sg(vf+1,0),Kh(+Tg));Gg.length&&(kg=Gg[0].find(0))&&Hm(q_(jd.doc,kg.from,kg.to).join(Ah));return}if(Qm.getAttribute("contenteditable")=="false")return;var Vg=/^(pre|div|p|li|table|br)$/i.test(Qm.nodeName);if(!/^br$/i.test(Qm.nodeName)&&Qm.textContent.length==0)return;Vg&&Om();for(var Ug=0;Ug=9&&Yd.hasSelection&&(Yd.hasSelection=null),gf.poll()}),ig(vf,"paste",function(ph){Wg(hf,ph)||y0(ph,hf)||(hf.state.pasteIncoming=+new Date,gf.fastPoll())});function $f(ph){if(!Wg(hf,ph)){if(hf.somethingSelected())QS({lineWise:!1,text:hf.getSelections()});else if(hf.options.lineWiseCopyCut){var Ah=ZS(hf);QS({lineWise:!0,text:Ah.text}),ph.type=="cut"?hf.setSelections(Ah.ranges,null,Xh):(gf.prevInput="",vf.value=Ah.text.join(` -`),dh(vf))}else return;ph.type=="cut"&&(hf.state.cutIncoming=+new Date)}}ig(vf,"cut",$f),ig(vf,"copy",$f),ig(jd.scroller,"paste",function(ph){if(!(P_(jd,ph)||Wg(hf,ph))){if(!vf.dispatchEvent){hf.state.pasteIncoming=+new Date,gf.focus();return}var Ah=new Event("paste");Ah.clipboardData=ph.clipboardData,vf.dispatchEvent(Ah)}}),ig(jd.lineSpace,"selectstart",function(ph){P_(jd,ph)||t_(ph)}),ig(vf,"compositionstart",function(){var ph=hf.getCursor("from");gf.composing&&gf.composing.range.clear(),gf.composing={start:ph,range:hf.markText(ph,hf.getCursor("to"),{className:"CodeMirror-composing"})}}),ig(vf,"compositionend",function(){gf.composing&&(gf.poll(),gf.composing.range.clear(),gf.composing=null)})},lb.prototype.createField=function(jd){this.wrapper=cS(),this.textarea=this.wrapper.firstChild;var Yd=this.cm.options;uS(this.textarea,Yd.spellcheck,Yd.autocorrect,Yd.autocapitalize)},lb.prototype.screenReaderLabelChanged=function(jd){jd?this.textarea.setAttribute("aria-label",jd):this.textarea.removeAttribute("aria-label")},lb.prototype.prepareSelection=function(){var jd=this.cm,Yd=jd.display,gf=jd.doc,hf=ET(jd);if(jd.options.moveInputWithCursor){var vf=og(jd,gf.sel.primary().head,"div"),$f=Yd.wrapper.getBoundingClientRect(),ph=Yd.lineDiv.getBoundingClientRect();hf.teTop=Math.max(0,Math.min(Yd.wrapper.clientHeight-10,vf.top+ph.top-$f.top)),hf.teLeft=Math.max(0,Math.min(Yd.wrapper.clientWidth-10,vf.left+ph.left-$f.left))}return hf},lb.prototype.showSelection=function(jd){var Yd=this.cm,gf=Yd.display;If(gf.cursorDiv,jd.cursors),If(gf.selectionDiv,jd.selection),jd.teTop!=null&&(this.wrapper.style.top=jd.teTop+"px",this.wrapper.style.left=jd.teLeft+"px")},lb.prototype.reset=function(jd){if(!(this.contextMenuPending||this.composing&&jd)){var Yd=this.cm;if(this.resetting=!0,Yd.somethingSelected()){this.prevInput="";var gf=Yd.getSelection();this.textarea.value=gf,Yd.state.focused&&dh(this.textarea),gd&&yd>=9&&(this.hasSelection=gf)}else jd||(this.prevInput=this.textarea.value="",gd&&yd>=9&&(this.hasSelection=null));this.resetting=!1}},lb.prototype.getField=function(){return this.textarea},lb.prototype.supportsTouch=function(){return!1},lb.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!Wd||xh(Sh(this.textarea))!=this.textarea))try{this.textarea.focus()}catch{}},lb.prototype.blur=function(){this.textarea.blur()},lb.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},lb.prototype.receivedFocus=function(){this.slowPoll()},lb.prototype.slowPoll=function(){var jd=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){jd.poll(),jd.cm.state.focused&&jd.slowPoll()})},lb.prototype.fastPoll=function(){var jd=!1,Yd=this;Yd.pollingFast=!0;function gf(){var hf=Yd.poll();!hf&&!jd?(jd=!0,Yd.polling.set(60,gf)):(Yd.pollingFast=!1,Yd.slowPoll())}Yd.polling.set(20,gf)},lb.prototype.poll=function(){var jd=this,Yd=this.cm,gf=this.textarea,hf=this.prevInput;if(this.contextMenuPending||this.resetting||!Yd.state.focused||gm(gf)&&!hf&&!this.composing||Yd.isReadOnly()||Yd.options.disableInput||Yd.state.keySeq)return!1;var vf=gf.value;if(vf==hf&&!Yd.somethingSelected())return!1;if(gd&&yd>=9&&this.hasSelection===vf||Kd&&/[\uf700-\uf7ff]/.test(vf))return Yd.display.input.reset(),!1;if(Yd.doc.sel==Yd.display.selForContextMenu){var $f=vf.charCodeAt(0);if($f==8203&&!hf&&(hf="​"),$f==8666)return this.reset(),this.cm.execCommand("undo")}for(var ph=0,Ah=Math.min(hf.length,vf.length);ph1e3||vf.indexOf(` +`),dh(vf))}else return;ph.type=="cut"&&(hf.state.cutIncoming=+new Date)}}ig(vf,"cut",$f),ig(vf,"copy",$f),ig(jd.scroller,"paste",function(ph){if(!(P_(jd,ph)||Wg(hf,ph))){if(!vf.dispatchEvent){hf.state.pasteIncoming=+new Date,gf.focus();return}var Ah=new Event("paste");Ah.clipboardData=ph.clipboardData,vf.dispatchEvent(Ah)}}),ig(jd.lineSpace,"selectstart",function(ph){P_(jd,ph)||t_(ph)}),ig(vf,"compositionstart",function(){var ph=hf.getCursor("from");gf.composing&&gf.composing.range.clear(),gf.composing={start:ph,range:hf.markText(ph,hf.getCursor("to"),{className:"CodeMirror-composing"})}}),ig(vf,"compositionend",function(){gf.composing&&(gf.poll(),gf.composing.range.clear(),gf.composing=null)})},lb.prototype.createField=function(jd){this.wrapper=cS(),this.textarea=this.wrapper.firstChild;var Yd=this.cm.options;uS(this.textarea,Yd.spellcheck,Yd.autocorrect,Yd.autocapitalize)},lb.prototype.screenReaderLabelChanged=function(jd){jd?this.textarea.setAttribute("aria-label",jd):this.textarea.removeAttribute("aria-label")},lb.prototype.prepareSelection=function(){var jd=this.cm,Yd=jd.display,gf=jd.doc,hf=ET(jd);if(jd.options.moveInputWithCursor){var vf=lg(jd,gf.sel.primary().head,"div"),$f=Yd.wrapper.getBoundingClientRect(),ph=Yd.lineDiv.getBoundingClientRect();hf.teTop=Math.max(0,Math.min(Yd.wrapper.clientHeight-10,vf.top+ph.top-$f.top)),hf.teLeft=Math.max(0,Math.min(Yd.wrapper.clientWidth-10,vf.left+ph.left-$f.left))}return hf},lb.prototype.showSelection=function(jd){var Yd=this.cm,gf=Yd.display;If(gf.cursorDiv,jd.cursors),If(gf.selectionDiv,jd.selection),jd.teTop!=null&&(this.wrapper.style.top=jd.teTop+"px",this.wrapper.style.left=jd.teLeft+"px")},lb.prototype.reset=function(jd){if(!(this.contextMenuPending||this.composing&&jd)){var Yd=this.cm;if(this.resetting=!0,Yd.somethingSelected()){this.prevInput="";var gf=Yd.getSelection();this.textarea.value=gf,Yd.state.focused&&dh(this.textarea),gd&&yd>=9&&(this.hasSelection=gf)}else jd||(this.prevInput=this.textarea.value="",gd&&yd>=9&&(this.hasSelection=null));this.resetting=!1}},lb.prototype.getField=function(){return this.textarea},lb.prototype.supportsTouch=function(){return!1},lb.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!Wd||xh(Sh(this.textarea))!=this.textarea))try{this.textarea.focus()}catch{}},lb.prototype.blur=function(){this.textarea.blur()},lb.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},lb.prototype.receivedFocus=function(){this.slowPoll()},lb.prototype.slowPoll=function(){var jd=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){jd.poll(),jd.cm.state.focused&&jd.slowPoll()})},lb.prototype.fastPoll=function(){var jd=!1,Yd=this;Yd.pollingFast=!0;function gf(){var hf=Yd.poll();!hf&&!jd?(jd=!0,Yd.polling.set(60,gf)):(Yd.pollingFast=!1,Yd.slowPoll())}Yd.polling.set(20,gf)},lb.prototype.poll=function(){var jd=this,Yd=this.cm,gf=this.textarea,hf=this.prevInput;if(this.contextMenuPending||this.resetting||!Yd.state.focused||gm(gf)&&!hf&&!this.composing||Yd.isReadOnly()||Yd.options.disableInput||Yd.state.keySeq)return!1;var vf=gf.value;if(vf==hf&&!Yd.somethingSelected())return!1;if(gd&&yd>=9&&this.hasSelection===vf||Kd&&/[\uf700-\uf7ff]/.test(vf))return Yd.display.input.reset(),!1;if(Yd.doc.sel==Yd.display.selForContextMenu){var $f=vf.charCodeAt(0);if($f==8203&&!hf&&(hf="​"),$f==8666)return this.reset(),this.cm.execCommand("undo")}for(var ph=0,Ah=Math.min(hf.length,vf.length);ph1e3||vf.indexOf(` `)>-1?gf.value=jd.prevInput="":jd.prevInput=vf,jd.composing&&(jd.composing.range.clear(),jd.composing.range=Yd.markText(jd.composing.start,Yd.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},lb.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},lb.prototype.onKeyPress=function(){gd&&yd>=9&&(this.hasSelection=null),this.fastPoll()},lb.prototype.onContextMenu=function(jd){var Yd=this,gf=Yd.cm,hf=gf.display,vf=Yd.textarea;Yd.contextMenuPending&&Yd.contextMenuPending();var $f=h0(gf,jd),ph=hf.scroller.scrollTop;if(!$f||Fd)return;var Ah=gf.options.resetSelectionOnContextMenu;Ah&&gf.doc.sel.contains($f)==-1&&U_(gf,Mb)(gf.doc,z0($f),Xh);var Lh=vf.style.cssText,Kh=Yd.wrapper.style.cssText,Om=Yd.wrapper.offsetParent.getBoundingClientRect();Yd.wrapper.style.cssText="position: static",vf.style.cssText=`position: absolute; width: 30px; height: 30px; top: `+(jd.clientY-Om.top-5)+"px; left: "+(jd.clientX-Om.left-5)+`px; z-index: 1000; background: `+(gd?"rgba(255, 255, 255, .05)":"transparent")+`; - outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var Hm;vd&&(Hm=vf.ownerDocument.defaultView.scrollY),hf.input.focus(),vd&&vf.ownerDocument.defaultView.scrollTo(null,Hm),hf.input.reset(),gf.somethingSelected()||(vf.value=Yd.prevInput=" "),Yd.contextMenuPending=Qm,hf.selForContextMenu=gf.doc.sel,clearTimeout(hf.detectingSelectAll);function Jm(){if(vf.selectionStart!=null){var Tg=gf.somethingSelected(),kg="​"+(Tg?vf.value:"");vf.value="⇚",vf.value=kg,Yd.prevInput=Tg?"":"​",vf.selectionStart=1,vf.selectionEnd=kg.length,hf.selForContextMenu=gf.doc.sel}}function Qm(){if(Yd.contextMenuPending==Qm&&(Yd.contextMenuPending=!1,Yd.wrapper.style.cssText=Kh,vf.style.cssText=Lh,gd&&yd<9&&hf.scrollbars.setScrollTop(hf.scroller.scrollTop=ph),vf.selectionStart!=null)){(!gd||gd&&yd<9)&&Jm();var Tg=0,kg=function(){hf.selForContextMenu==gf.doc.sel&&vf.selectionStart==0&&vf.selectionEnd>0&&Yd.prevInput=="​"?U_(gf,nv)(gf):Tg++<10?hf.detectingSelectAll=setTimeout(kg,500):(hf.selForContextMenu=null,hf.input.reset())};hf.detectingSelectAll=setTimeout(kg,200)}}if(gd&&yd>=9&&Jm(),mf){X_(jd);var ug=function(){vg(window,"mouseup",ug),setTimeout(Qm,20)};ig(window,"mouseup",ug)}else setTimeout(Qm,50)},lb.prototype.readOnlyChanged=function(jd){jd||this.reset(),this.textarea.disabled=jd=="nocursor",this.textarea.readOnly=!!jd},lb.prototype.setUneditable=function(){},lb.prototype.needsContentAttribute=!1;function Kx(jd,Yd){if(Yd=Yd?Af(Yd):{},Yd.value=jd.value,!Yd.tabindex&&jd.tabIndex&&(Yd.tabindex=jd.tabIndex),!Yd.placeholder&&jd.placeholder&&(Yd.placeholder=jd.placeholder),Yd.autofocus==null){var gf=xh(Sh(jd));Yd.autofocus=gf==jd||jd.getAttribute("autofocus")!=null&&gf==document.body}function hf(){jd.value=Ah.getValue()}var vf;if(jd.form&&(ig(jd.form,"submit",hf),!Yd.leaveSubmitMethodAlone)){var $f=jd.form;vf=$f.submit;try{var ph=$f.submit=function(){hf(),$f.submit=vf,$f.submit(),$f.submit=ph}}catch{}}Yd.finishInit=function(Lh){Lh.save=hf,Lh.getTextArea=function(){return jd},Lh.toTextArea=function(){Lh.toTextArea=isNaN,hf(),jd.parentNode.removeChild(Lh.getWrapperElement()),jd.style.display="",jd.form&&(vg(jd.form,"submit",hf),!Yd.leaveSubmitMethodAlone&&typeof jd.form.submit=="function"&&(jd.form.submit=vf))}},jd.style.display="none";var Ah=k_(function(Lh){return jd.parentNode.insertBefore(Lh,jd.nextSibling)},Yd);return Ah}function P1(jd){jd.off=vg,jd.on=ig,jd.wheelEventPixels=E1,jd.Doc=Hb,jd.splitLines=nh,jd.countColumn=_h,jd.findColumn=Zf,jd.isWordChar=Fm,jd.Pass=oh,jd.signal=Og,jd.Line=Hy,jd.changeEnd=W0,jd.scrollbarModel=SE,jd.Pos=sg,jd.cmpPos=Fg,jd.modes=Lm,jd.mimeModes=zm,jd.resolveMode=lg,jd.getMode=pg,jd.modeExtensions=qg,jd.extendMode=xg,jd.copyState=Yg,jd.startState=C_,jd.innerMode=w_,jd.commands=nS,jd.keyMap=_0,jd.keyName=Jv,jd.isModifierKey=qS,jd.lookupKey=iy,jd.normalizeKeyMap=ry,jd.StringStream=p_,jd.SharedTextMarker=ov,jd.TextMarker=s0,jd.LineWidget=NE,jd.e_preventDefault=t_,jd.e_stopPropagation=R_,jd.e_stop=X_,jd.addClass=Eh,jd.contains=lh,jd.rmClass=xf,jd.keyNames=Db}YT(k_),_v(k_);var Xx="iter insert remove copy getEditor constructor".split(" ");for(var eT in Hb.prototype)Hb.prototype.hasOwnProperty(eT)&&dm(Xx,eT)<0&&(k_.prototype[eT]=function(jd){return function(){return jd.apply(this.doc,arguments)}}(Hb.prototype[eT]));return y_(Hb),k_.inputStyles={textarea:lb,contenteditable:B_},k_.defineMode=function(jd){!k_.defaults.mode&&jd!="null"&&(k_.defaults.mode=jd),Vm.apply(this,arguments)},k_.defineMIME=Nm,k_.defineMode("null",function(){return{token:function(jd){return jd.skipToEnd()}}}),k_.defineMIME("text/plain","null"),k_.defineExtension=function(jd,Yd){k_.prototype[jd]=Yd},k_.defineDocExtension=function(jd,Yd){Hb.prototype[jd]=Yd},k_.fromTextArea=Kx,P1(k_),k_.version="5.65.18",k_})}(codemirror)),codemirror.exports}var codemirrorExports=requireCodemirror();const CodeMirror=getDefaultExportFromCjs(codemirrorExports);var qt=Object.defineProperty,Jt=(Ra,qa,rd)=>qa in Ra?qt(Ra,qa,{enumerable:!0,configurable:!0,writable:!0,value:rd}):Ra[qa]=rd,x$1=(Ra,qa,rd)=>Jt(Ra,typeof qa!="symbol"?qa+"":qa,rd);function Zt(Ra){if(typeof document>"u")return;let qa=document.head||document.getElementsByTagName("head")[0],rd=document.createElement("style");rd.type="text/css",qa.appendChild(rd),rd.styleSheet?rd.styleSheet.cssText=Ra:rd.appendChild(document.createTextNode(Ra))}Zt(":where([data-sonner-toaster][dir=ltr]),:where(html[dir=ltr]){--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}:where([data-sonner-toaster][dir=rtl]),:where(html[dir=rtl]){--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}:where([data-sonner-toaster][data-lifted=true]){transform:translateY(-10px)}@media (hover:none) and (pointer:coarse){:where([data-sonner-toaster][data-lifted=true]){transform:none}}:where([data-sonner-toaster][data-x-position=right]){right:max(var(--offset),env(safe-area-inset-right))}:where([data-sonner-toaster][data-x-position=left]){left:max(var(--offset),env(safe-area-inset-left))}:where([data-sonner-toaster][data-x-position=center]){left:50%;transform:translateX(-50%)}:where([data-sonner-toaster][data-y-position=top]){top:max(var(--offset),env(safe-area-inset-top))}:where([data-sonner-toaster][data-y-position=bottom]){bottom:max(var(--offset),env(safe-area-inset-bottom))}:where([data-sonner-toast]){--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled=true]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}:where([data-sonner-toast][data-y-position=top]){top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position=bottom]){bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise=true]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme=dark]) :where([data-cancel]){background:rgba(255,255,255,.3)}[data-sonner-toast] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast] [data-close-button]{background:var(--gray1)}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}:where([data-sonner-toast]) :where([data-disabled=true]){cursor:not-allowed}[data-sonner-toast]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping=true])::before{content:'';position:absolute;left:0;right:0;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position=top][data-swiping=true])::before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position=bottom][data-swiping=true])::before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping=false][data-removed=true])::before{content:'';position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast])::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted=true]){--y:translateY(0);opacity:1}:where([data-sonner-toast][data-expanded=false][data-front=false]){--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded=false][data-front=false][data-styled=true])>*{opacity:0}:where([data-sonner-toast][data-visible=false]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted=true][data-expanded=true]){--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]){--y:translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]){--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]){--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed=true][data-front=false])::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation:swipe-out .2s ease-out forwards}@keyframes swipe-out{from{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount)));opacity:1}to{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount) + var(--lift) * -100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;--mobile-offset:16px;right:var(--mobile-offset);left:var(--mobile-offset);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset)}[data-sonner-toaster][data-y-position=bottom]{bottom:20px}[data-sonner-toaster][data-y-position=top]{top:20px}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset);right:var(--mobile-offset);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 91%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 91%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 91%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 100%, 12%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 12%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");let vt=0,ae$2=class{constructor(){x$1(this,"subscribers"),x$1(this,"toasts"),x$1(this,"subscribe",qa=>(this.subscribers.push(qa),()=>{const rd=this.subscribers.indexOf(qa);this.subscribers.splice(rd,1)})),x$1(this,"publish",qa=>{this.subscribers.forEach(rd=>rd(qa))}),x$1(this,"addToast",qa=>{this.publish(qa),this.toasts=[...this.toasts,qa]}),x$1(this,"create",qa=>{var rd;const{message:sd,...pd}=qa,fd=typeof qa.id=="number"||qa.id&&((rd=qa.id)==null?void 0:rd.length)>0?qa.id:vt++,hd=this.toasts.find(gd=>gd.id===fd),md=qa.dismissible===void 0?!0:qa.dismissible;return hd?this.toasts=this.toasts.map(gd=>gd.id===fd?(this.publish({...gd,...qa,id:fd,title:sd}),{...gd,...qa,id:fd,dismissible:md,title:sd}):gd):this.addToast({title:sd,...pd,dismissible:md,id:fd}),fd}),x$1(this,"dismiss",qa=>(qa||this.toasts.forEach(rd=>{this.subscribers.forEach(sd=>sd({id:rd.id,dismiss:!0}))}),this.subscribers.forEach(rd=>rd({id:qa,dismiss:!0})),qa)),x$1(this,"message",(qa,rd)=>this.create({...rd,message:qa,type:"default"})),x$1(this,"error",(qa,rd)=>this.create({...rd,type:"error",message:qa})),x$1(this,"success",(qa,rd)=>this.create({...rd,type:"success",message:qa})),x$1(this,"info",(qa,rd)=>this.create({...rd,type:"info",message:qa})),x$1(this,"warning",(qa,rd)=>this.create({...rd,type:"warning",message:qa})),x$1(this,"loading",(qa,rd)=>this.create({...rd,type:"loading",message:qa})),x$1(this,"promise",(qa,rd)=>{if(!rd)return;let sd;rd.loading!==void 0&&(sd=this.create({...rd,promise:qa,type:"loading",message:rd.loading,description:typeof rd.description!="function"?rd.description:void 0}));const pd=qa instanceof Promise?qa:qa();let fd=sd!==void 0,hd;const md=pd.then(async yd=>{if(hd=["resolve",yd],se$1(yd)&&!yd.ok){fd=!1;const vd=typeof rd.error=="function"?await rd.error(`HTTP error! status: ${yd.status}`):rd.error,Nd=typeof rd.description=="function"?await rd.description(`HTTP error! status: ${yd.status}`):rd.description;this.create({id:sd,type:"error",message:vd,description:Nd})}else if(rd.success!==void 0){fd=!1;const vd=typeof rd.success=="function"?await rd.success(yd):rd.success,Nd=typeof rd.description=="function"?await rd.description(yd):rd.description;this.create({id:sd,type:"success",message:vd,description:Nd})}}).catch(async yd=>{if(hd=["reject",yd],rd.error!==void 0){fd=!1;const vd=typeof rd.error=="function"?await rd.error(yd):rd.error,Nd=typeof rd.description=="function"?await rd.description(yd):rd.description;this.create({id:sd,type:"error",message:vd,description:Nd})}}).finally(()=>{var yd;fd&&(this.dismiss(sd),sd=void 0),(yd=rd.finally)==null||yd.call(rd)}),gd=()=>new Promise((yd,vd)=>md.then(()=>hd[0]==="reject"?vd(hd[1]):yd(hd[1])).catch(vd));return typeof sd!="string"&&typeof sd!="number"?{unwrap:gd}:Object.assign(sd,{unwrap:gd})}),x$1(this,"custom",(qa,rd)=>{const sd=(rd==null?void 0:rd.id)||vt++;return this.publish({component:qa,id:sd,...rd}),sd}),this.subscribers=[],this.toasts=[]}};const I$2=new ae$2;function oe$1(Ra,qa){const rd=(qa==null?void 0:qa.id)||vt++;return I$2.create({message:Ra,id:rd,type:"default",...qa}),rd}const se$1=Ra=>Ra&&typeof Ra=="object"&&"ok"in Ra&&typeof Ra.ok=="boolean"&&"status"in Ra&&typeof Ra.status=="number",ne$1=oe$1,re$1=()=>I$2.toasts,Ke=Object.assign(ne$1,{success:I$2.success,info:I$2.info,warning:I$2.warning,error:I$2.error,custom:I$2.custom,message:I$2.message,promise:I$2.promise,dismiss:I$2.dismiss,loading:I$2.loading},{getHistory:re$1});function ut(Ra){return Ra.label!==void 0}function ie$1(){const Ra=ref$1(!1);return watchEffect(()=>{const qa=()=>{Ra.value=document.hidden};return document.addEventListener("visibilitychange",qa),()=>window.removeEventListener("visibilitychange",qa)}),{isDocumentHidden:Ra}}const le$1=["aria-live","data-rich-colors","data-styled","data-mounted","data-promise","data-removed","data-visible","data-y-position","data-x-position","data-index","data-front","data-swiping","data-dismissible","data-type","data-invert","data-swipe-out","data-expanded"],de$1=["aria-label","data-disabled"],Wt=4e3,ue$1=20,ce$2=200,fe$1=defineComponent({__name:"Toast",props:{toast:{},toasts:{},index:{},expanded:{type:Boolean},invert:{type:Boolean},heights:{},gap:{},position:{},visibleToasts:{},expandByDefault:{type:Boolean},closeButton:{type:Boolean},interacting:{type:Boolean},style:{},cancelButtonStyle:{},actionButtonStyle:{},duration:{},class:{},unstyled:{type:Boolean},descriptionClass:{},loadingIcon:{},classes:{},icons:{},closeButtonAriaLabel:{},pauseWhenPageIsHidden:{type:Boolean},cn:{type:Function},defaultRichColors:{type:Boolean}},emits:["update:heights","removeToast"],setup(Ra,{emit:qa}){const rd=Ra,sd=qa,pd=ref$1(!1),fd=ref$1(!1),hd=ref$1(!1),md=ref$1(!1),gd=ref$1(!1),yd=ref$1(0),vd=ref$1(0),Nd=ref$1(rd.toast.duration||rd.duration||Wt),Md=ref$1(null),Ld=ref$1(null),Fd=computed(()=>rd.index===0),Hd=computed(()=>rd.index+1<=rd.visibleToasts),Vd=computed(()=>rd.toast.type),Gd=computed(()=>rd.toast.dismissible!==!1),Ud=computed(()=>rd.toast.class||""),qd=computed(()=>rd.descriptionClass||""),Wd=rd.toast.style||{},Kd=computed(()=>rd.heights.findIndex(Sh=>Sh.toastId===rd.toast.id)||0),Xd=computed(()=>rd.toast.closeButton??rd.closeButton);computed(()=>rd.toast.duration||rd.duration||Wt);const df=ref$1(0),Ef=ref$1(0),pf=ref$1(null),mf=computed(()=>rd.position.split("-")),_f=computed(()=>mf.value[0]),xf=computed(()=>mf.value[1]),Cf=computed(()=>typeof rd.toast.title!="string"),If=computed(()=>typeof rd.toast.description!="string"),Sf=computed(()=>rd.heights.reduce((Sh,vh,Df)=>Df>=Kd.value?Sh:Sh+vh.height,0)),wf=ie$1(),Pf=computed(()=>rd.toast.invert||rd.invert),lh=computed(()=>Vd.value==="loading"),xh=computed(()=>Kd.value*rd.gap+Sf.value||0);onMounted(()=>{if(!pd.value)return;const Sh=Ld.value,vh=Sh==null?void 0:Sh.style.height;Sh.style.height="auto";const Df=Sh.getBoundingClientRect().height;Sh.style.height=vh,vd.value=Df;let Af;rd.heights.find(_h=>_h.toastId===rd.toast.id)?Af=rd.heights.map(_h=>_h.toastId===rd.toast.id?{..._h,height:Df}:_h):Af=[{toastId:rd.toast.id,height:Df,position:rd.toast.position},...rd.heights],sd("update:heights",Af)});function Eh(){fd.value=!0,yd.value=xh.value;const Sh=rd.heights.filter(vh=>vh.toastId!==rd.toast.id);sd("update:heights",Sh),setTimeout(()=>{sd("removeToast",rd.toast)},ce$2)}function Mh(){var Sh,vh;if(lh.value||!Gd.value)return{};Eh(),(vh=(Sh=rd.toast).onDismiss)==null||vh.call(Sh,rd.toast)}function dh(Sh){lh.value||!Gd.value||(Md.value=new Date,yd.value=xh.value,Sh.target.setPointerCapture(Sh.pointerId),Sh.target.tagName!=="BUTTON"&&(hd.value=!0,pf.value={x:Sh.clientX,y:Sh.clientY}))}function eh(){var Sh,vh,Df,Af,_h;if(md.value||!Gd)return;pf.value=null;const Nh=Number(((Sh=Ld.value)==null?void 0:Sh.style.getPropertyValue("--swipe-amount").replace("px",""))||0),dm=new Date().getTime()-((vh=Md.value)==null?void 0:vh.getTime()),Jf=Math.abs(Nh)/dm;if(Math.abs(Nh)>=ue$1||Jf>.11){yd.value=xh.value,(Af=(Df=rd.toast).onDismiss)==null||Af.call(Df,rd.toast),Eh(),md.value=!0,gd.value=!1;return}(_h=Ld.value)==null||_h.style.setProperty("--swipe-amount","0px"),hd.value=!1}function fh(Sh){var vh,Df;if(!pf.value||!Gd.value)return;const Af=Sh.clientY-pf.value.y,_h=((vh=window.getSelection())==null?void 0:vh.toString().length)>0,Nh=_f.value==="top"?Math.min(0,Af):Math.max(0,Af);Math.abs(Nh)>0&&(gd.value=!0),!_h&&((Df=Ld.value)==null||Df.style.setProperty("--swipe-amount",`${Nh}px`))}return watchEffect(Sh=>{if(rd.toast.promise&&Vd.value==="loading"||rd.toast.duration===1/0||rd.toast.type==="loading")return;let vh;const Df=()=>{if(Ef.value{Nd.value!==1/0&&(df.value=new Date().getTime(),vh=setTimeout(()=>{var _h,Nh;(Nh=(_h=rd.toast).onAutoClose)==null||Nh.call(_h,rd.toast),Eh()},Nd.value))};rd.expanded||rd.interacting||rd.pauseWhenPageIsHidden&&wf?Df():Af(),Sh(()=>{clearTimeout(vh)})}),watch(()=>rd.toast.delete,()=>{rd.toast.delete&&Eh()},{deep:!0}),onMounted(()=>{if(pd.value=!0,Ld.value){const Sh=Ld.value.getBoundingClientRect().height;vd.value=Sh;const vh=[{toastId:rd.toast.id,height:Sh,position:rd.toast.position},...rd.heights];sd("update:heights",vh)}}),onBeforeUnmount(()=>{if(Ld.value){const Sh=rd.heights.filter(vh=>vh.toastId!==rd.toast.id);sd("update:heights",Sh)}}),(Sh,vh)=>{var Df,Af,_h,Nh,dm,Jf,oh,Xh,Tm,kh,Zf,th,$h,wh,fm,zh,Mm,Rm,tg,Fm,Ym,rg,Eg,Fh,kf,Rf,Dh;return openBlock(),createElementBlock("li",{ref_key:"toastRef",ref:Ld,"aria-live":Sh.toast.important?"assertive":"polite","aria-atomic":"true",role:"status",tabindex:"0","data-sonner-toast":"true",class:normalizeClass(Sh.cn(rd.class,Ud.value,(Df=Sh.classes)==null?void 0:Df.toast,(Af=Sh.toast.classes)==null?void 0:Af.toast,(_h=Sh.classes)==null?void 0:_h[Vd.value],(dm=(Nh=Sh.toast)==null?void 0:Nh.classes)==null?void 0:dm[Vd.value])),"data-rich-colors":Sh.toast.richColors??Sh.defaultRichColors,"data-styled":!(Sh.toast.component||(Jf=Sh.toast)!=null&&Jf.unstyled||Sh.unstyled),"data-mounted":pd.value,"data-promise":!!Sh.toast.promise,"data-removed":fd.value,"data-visible":Hd.value,"data-y-position":_f.value,"data-x-position":xf.value,"data-index":Sh.index,"data-front":Fd.value,"data-swiping":hd.value,"data-dismissible":Gd.value,"data-type":Vd.value,"data-invert":Pf.value,"data-swipe-out":md.value,"data-expanded":!!(Sh.expanded||Sh.expandByDefault&&pd.value),style:normalizeStyle({"--index":Sh.index,"--toasts-before":Sh.index,"--z-index":Sh.toasts.length-Sh.index,"--offset":`${fd.value?yd.value:xh.value}px`,"--initial-height":Sh.expandByDefault?"auto":`${vd.value}px`,...Sh.style,...unref(Wd)}),onPointerdown:dh,onPointerup:eh,onPointermove:fh},[Xd.value&&!Sh.toast.component?(openBlock(),createElementBlock("button",{key:0,"aria-label":Sh.closeButtonAriaLabel||"Close toast","data-disabled":lh.value,"data-close-button":"true",class:normalizeClass(Sh.cn((oh=Sh.classes)==null?void 0:oh.closeButton,(Tm=(Xh=Sh.toast)==null?void 0:Xh.classes)==null?void 0:Tm.closeButton)),onClick:Mh},[(kh=Sh.icons)!=null&&kh.close?(openBlock(),createBlock(resolveDynamicComponent((Zf=Sh.icons)==null?void 0:Zf.close),{key:0})):renderSlot(Sh.$slots,"close-icon",{key:1})],10,de$1)):createCommentVNode("",!0),Sh.toast.component?(openBlock(),createBlock(resolveDynamicComponent(Sh.toast.component),mergeProps({key:1},Sh.toast.componentProps,{onCloseToast:Mh}),null,16)):(openBlock(),createElementBlock(Fragment,{key:2},[Vd.value!=="default"||Sh.toast.icon||Sh.toast.promise?(openBlock(),createElementBlock("div",{key:0,"data-icon":"",class:normalizeClass(Sh.cn((th=Sh.classes)==null?void 0:th.icon,(wh=($h=Sh.toast)==null?void 0:$h.classes)==null?void 0:wh.icon))},[(Sh.toast.promise||Vd.value==="loading")&&!Sh.toast.icon?renderSlot(Sh.$slots,"loading-icon",{key:0}):createCommentVNode("",!0),Sh.toast.icon?(openBlock(),createBlock(resolveDynamicComponent(Sh.toast.icon),{key:1})):(openBlock(),createElementBlock(Fragment,{key:2},[Vd.value==="success"?renderSlot(Sh.$slots,"success-icon",{key:0}):Vd.value==="error"?renderSlot(Sh.$slots,"error-icon",{key:1}):Vd.value==="warning"?renderSlot(Sh.$slots,"warning-icon",{key:2}):Vd.value==="info"?renderSlot(Sh.$slots,"info-icon",{key:3}):createCommentVNode("",!0)],64))],2)):createCommentVNode("",!0),createBaseVNode("div",{"data-content":"",class:normalizeClass(Sh.cn((fm=Sh.classes)==null?void 0:fm.content,(Mm=(zh=Sh.toast)==null?void 0:zh.classes)==null?void 0:Mm.content))},[createBaseVNode("div",{"data-title":"",class:normalizeClass(Sh.cn((Rm=Sh.classes)==null?void 0:Rm.title,(tg=Sh.toast.classes)==null?void 0:tg.title))},[Cf.value?(openBlock(),createBlock(resolveDynamicComponent(Sh.toast.title),normalizeProps(mergeProps({key:0},Sh.toast.componentProps)),null,16)):(openBlock(),createElementBlock(Fragment,{key:1},[createTextVNode(toDisplayString(Sh.toast.title),1)],64))],2),Sh.toast.description?(openBlock(),createElementBlock("div",{key:0,"data-description":"",class:normalizeClass(Sh.cn(Sh.descriptionClass,qd.value,(Fm=Sh.classes)==null?void 0:Fm.description,(Ym=Sh.toast.classes)==null?void 0:Ym.description))},[If.value?(openBlock(),createBlock(resolveDynamicComponent(Sh.toast.description),normalizeProps(mergeProps({key:0},Sh.toast.componentProps)),null,16)):(openBlock(),createElementBlock(Fragment,{key:1},[createTextVNode(toDisplayString(Sh.toast.description),1)],64))],2)):createCommentVNode("",!0)],2),Sh.toast.cancel?(openBlock(),createElementBlock("button",{key:1,style:normalizeStyle(Sh.toast.cancelButtonStyle||Sh.cancelButtonStyle),class:normalizeClass(Sh.cn((rg=Sh.classes)==null?void 0:rg.cancelButton,(Eg=Sh.toast.classes)==null?void 0:Eg.cancelButton)),"data-button":"","data-cancel":"",onClick:vh[0]||(vh[0]=Vh=>{var Sm,$m;unref(ut)(Sh.toast.cancel)&&Gd.value&&(($m=(Sm=Sh.toast.cancel).onClick)==null||$m.call(Sm,Vh),Eh())})},toDisplayString(unref(ut)(Sh.toast.cancel)?(Fh=Sh.toast.cancel)==null?void 0:Fh.label:Sh.toast.cancel),7)):createCommentVNode("",!0),Sh.toast.action?(openBlock(),createElementBlock("button",{key:2,style:normalizeStyle(Sh.toast.actionButtonStyle||Sh.actionButtonStyle),class:normalizeClass(Sh.cn((kf=Sh.classes)==null?void 0:kf.actionButton,(Rf=Sh.toast.classes)==null?void 0:Rf.actionButton)),"data-button":"","data-action":"",onClick:vh[1]||(vh[1]=Vh=>{var Sm,$m;unref(ut)(Sh.toast.action)&&(Vh.defaultPrevented||(($m=(Sm=Sh.toast.action).onClick)==null||$m.call(Sm,Vh),!Vh.defaultPrevented&&Eh()))})},toDisplayString(unref(ut)(Sh.toast.action)?(Dh=Sh.toast.action)==null?void 0:Dh.label:Sh.toast.action),7)):createCommentVNode("",!0)],64))],46,le$1)}}}),at$1=(Ra,qa)=>{const rd=Ra.__vccOpts||Ra;for(const[sd,pd]of qa)rd[sd]=pd;return rd},pe$1={},he$1={xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stoke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"};function ge$1(Ra,qa){return openBlock(),createElementBlock("svg",he$1,qa[0]||(qa[0]=[createBaseVNode("line",{x1:"18",y1:"6",x2:"6",y2:"18"},null,-1),createBaseVNode("line",{x1:"6",y1:"6",x2:"18",y2:"18"},null,-1)]))}const me$1=at$1(pe$1,[["render",ge$1]]),ve$1=["data-visible"],ye$1={class:"sonner-spinner"},be$2=defineComponent({__name:"Loader",props:{visible:{type:Boolean}},setup(Ra){const qa=Array(12).fill(0);return(rd,sd)=>(openBlock(),createElementBlock("div",{class:"sonner-loading-wrapper","data-visible":rd.visible},[createBaseVNode("div",ye$1,[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(qa),pd=>(openBlock(),createElementBlock("div",{key:`spinner-bar-${pd}`,class:"sonner-loading-bar"}))),128))])],8,ve$1))}}),we$1={},ke$1={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"};function xe$1(Ra,qa){return openBlock(),createElementBlock("svg",ke$1,qa[0]||(qa[0]=[createBaseVNode("path",{"fill-rule":"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z","clip-rule":"evenodd"},null,-1)]))}const Te=at$1(we$1,[["render",xe$1]]),Be$1={},Se$1={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"};function Ce$1(Ra,qa){return openBlock(),createElementBlock("svg",Se$1,qa[0]||(qa[0]=[createBaseVNode("path",{"fill-rule":"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z","clip-rule":"evenodd"},null,-1)]))}const $e=at$1(Be$1,[["render",Ce$1]]),Ie$1={},Ee$1={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"};function Pe$1(Ra,qa){return openBlock(),createElementBlock("svg",Ee$1,qa[0]||(qa[0]=[createBaseVNode("path",{"fill-rule":"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z","clip-rule":"evenodd"},null,-1)]))}const De=at$1(Ie$1,[["render",Pe$1]]),He={},ze={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"};function Me$1(Ra,qa){return openBlock(),createElementBlock("svg",ze,qa[0]||(qa[0]=[createBaseVNode("path",{"fill-rule":"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z","clip-rule":"evenodd"},null,-1)]))}const Oe$1=at$1(He,[["render",Me$1]]),Ae$1=["aria-label"],Le$1=["dir","data-theme","data-rich-colors","data-y-position","data-x-position","data-lifted"],Ye=3,Ut="32px",Ne$1=356,Re$1=14,Fe$1=typeof window<"u"&&typeof document<"u";function je$1(...Ra){return Ra.filter(Boolean).join(" ")}const Ve=defineComponent({name:"Toaster",inheritAttrs:!1,__name:"Toaster",props:{invert:{type:Boolean,default:!1},theme:{default:"light"},position:{default:"bottom-right"},hotkey:{default:()=>["altKey","KeyT"]},richColors:{type:Boolean,default:!1},expand:{type:Boolean,default:!1},duration:{},gap:{default:Re$1},visibleToasts:{default:Ye},closeButton:{type:Boolean,default:!1},toastOptions:{default:()=>({})},class:{default:""},style:{default:()=>({})},offset:{default:Ut},dir:{default:"auto"},icons:{},containerAriaLabel:{default:"Notifications"},pauseWhenPageIsHidden:{type:Boolean,default:!1},cn:{type:Function,default:je$1}},setup(Ra){const qa=Ra;function rd(){if(typeof window>"u"||typeof document>"u")return"ltr";const qd=document.documentElement.getAttribute("dir");return qd==="auto"||!qd?window.getComputedStyle(document.documentElement).direction:qd}const sd=useAttrs(),pd=ref$1([]),fd=computed(()=>(qd,Wd)=>pd.value.filter(Kd=>!Kd.position&&Wd===0||Kd.position===qd)),hd=computed(()=>{const qd=pd.value.filter(Wd=>Wd.position).map(Wd=>Wd.position);return qd.length>0?Array.from(new Set([qa.position].concat(qd))):[qa.position]}),md=ref$1([]),gd=ref$1(!1),yd=ref$1(!1),vd=ref$1(qa.theme!=="system"?qa.theme:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),Nd=ref$1(null),Md=ref$1(null),Ld=ref$1(!1),Fd=qa.hotkey.join("+").replace(/Key/g,"").replace(/Digit/g,"");function Hd(qd){var Wd;(Wd=pd.value.find(Kd=>Kd.id===qd.id))!=null&&Wd.delete||I$2.dismiss(qd.id),pd.value=pd.value.filter(({id:Kd})=>Kd!==qd.id)}function Vd(qd){var Wd,Kd;Ld.value&&!((Kd=(Wd=qd.currentTarget)==null?void 0:Wd.contains)!=null&&Kd.call(Wd,qd.relatedTarget))&&(Ld.value=!1,Md.value&&(Md.value.focus({preventScroll:!0}),Md.value=null))}function Gd(qd){qd.target instanceof HTMLElement&&qd.target.dataset.dismissible==="false"||Ld.value||(Ld.value=!0,Md.value=qd.relatedTarget)}function Ud(qd){qd.target&&qd.target instanceof HTMLElement&&qd.target.dataset.dismissible==="false"||(yd.value=!0)}return watchEffect(qd=>{const Wd=I$2.subscribe(Kd=>{if(Kd.dismiss){pd.value=pd.value.map(Xd=>Xd.id===Kd.id?{...Xd,delete:!0}:Xd);return}nextTick$1(()=>{const Xd=pd.value.findIndex(df=>df.id===Kd.id);Xd!==-1?pd.value=[...pd.value.slice(0,Xd),{...pd.value[Xd],...Kd},...pd.value.slice(Xd+1)]:pd.value=[Kd,...pd.value]})});qd(Wd)}),watch(()=>qa.theme,qd=>{if(qd!=="system"){vd.value=qd;return}if(qd==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?vd.value="dark":vd.value="light"),typeof window>"u")return;const Wd=window.matchMedia("(prefers-color-scheme: dark)");try{Wd.addEventListener("change",({matches:Kd})=>{Kd?vd.value="dark":vd.value="light"})}catch{Wd.addListener(({matches:Kd})=>{try{Kd?vd.value="dark":vd.value="light"}catch(Xd){console.error(Xd)}})}}),watchEffect(()=>{Nd.value&&Md.value&&(Md.value.focus({preventScroll:!0}),Md.value=null,Ld.value=!1)}),watchEffect(()=>{pd.value.length<=1&&(gd.value=!1)}),watchEffect(qd=>{function Wd(Kd){const Xd=qa.hotkey.every(pf=>Kd[pf]||Kd.code===pf),df=Array.isArray(Nd.value)?Nd.value[0]:Nd.value;Xd&&(gd.value=!0,df==null||df.focus());const Ef=document.activeElement===Nd.value||(df==null?void 0:df.contains(document.activeElement));Kd.code==="Escape"&&Ef&&(gd.value=!1)}Fe$1&&(document.addEventListener("keydown",Wd),qd(()=>{document.removeEventListener("keydown",Wd)}))}),(qd,Wd)=>(openBlock(),createElementBlock("section",{"aria-label":`${qd.containerAriaLabel} ${unref(Fd)}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false"},[(openBlock(!0),createElementBlock(Fragment,null,renderList(hd.value,(Kd,Xd)=>{var df;return openBlock(),createElementBlock("ol",mergeProps({key:Kd,ref_for:!0,ref_key:"listRef",ref:Nd,"data-sonner-toaster":"",class:qa.class,dir:qd.dir==="auto"?rd():qd.dir,tabIndex:-1,"data-theme":qd.theme,"data-rich-colors":qd.richColors,"data-y-position":Kd.split("-")[0],"data-x-position":Kd.split("-")[1],"data-lifted":gd.value&&pd.value.length>1&&!qd.expand,style:{"--front-toast-height":`${(df=md.value[0])==null?void 0:df.height}px`,"--offset":typeof qd.offset=="number"?`${qd.offset}px`:qd.offset||Ut,"--width":`${Ne$1}px`,"--gap":`${qd.gap}px`,...qd.style,...unref(sd).style}},qd.$attrs,{onBlur:Vd,onFocus:Gd,onMouseenter:Wd[1]||(Wd[1]=()=>gd.value=!0),onMousemove:Wd[2]||(Wd[2]=()=>gd.value=!0),onMouseleave:Wd[3]||(Wd[3]=()=>{yd.value||(gd.value=!1)}),onPointerdown:Ud,onPointerup:Wd[4]||(Wd[4]=()=>yd.value=!1)}),[(openBlock(!0),createElementBlock(Fragment,null,renderList(fd.value(Kd,Xd),(Ef,pf)=>{var mf,_f,xf,Cf,If,Sf,wf,Pf,lh;return openBlock(),createBlock(fe$1,{key:Ef.id,heights:md.value.filter(xh=>xh.position===Ef.position),icons:qd.icons,index:pf,toast:Ef,defaultRichColors:qd.richColors,duration:((mf=qd.toastOptions)==null?void 0:mf.duration)??qd.duration,class:normalizeClass(((_f=qd.toastOptions)==null?void 0:_f.class)??""),descriptionClass:(xf=qd.toastOptions)==null?void 0:xf.descriptionClass,invert:qd.invert,visibleToasts:qd.visibleToasts,closeButton:((Cf=qd.toastOptions)==null?void 0:Cf.closeButton)??qd.closeButton,interacting:yd.value,position:Kd,style:normalizeStyle((If=qd.toastOptions)==null?void 0:If.style),unstyled:(Sf=qd.toastOptions)==null?void 0:Sf.unstyled,classes:(wf=qd.toastOptions)==null?void 0:wf.classes,cancelButtonStyle:(Pf=qd.toastOptions)==null?void 0:Pf.cancelButtonStyle,actionButtonStyle:(lh=qd.toastOptions)==null?void 0:lh.actionButtonStyle,toasts:pd.value.filter(xh=>xh.position===Ef.position),expandByDefault:qd.expand,gap:qd.gap,expanded:gd.value,pauseWhenPageIsHidden:qd.pauseWhenPageIsHidden,cn:qd.cn,"onUpdate:heights":Wd[0]||(Wd[0]=xh=>{md.value=xh}),onRemoveToast:Hd},{"close-icon":withCtx(()=>[renderSlot(qd.$slots,"close-icon",{},()=>[createVNode(me$1)])]),"loading-icon":withCtx(()=>[renderSlot(qd.$slots,"loading-icon",{},()=>[createVNode(be$2,{visible:Ef.type==="loading"},null,8,["visible"])])]),"success-icon":withCtx(()=>[renderSlot(qd.$slots,"success-icon",{},()=>[createVNode(Te)])]),"error-icon":withCtx(()=>[renderSlot(qd.$slots,"error-icon",{},()=>[createVNode(Oe$1)])]),"warning-icon":withCtx(()=>[renderSlot(qd.$slots,"warning-icon",{},()=>[createVNode(De)])]),"info-icon":withCtx(()=>[renderSlot(qd.$slots,"info-icon",{},()=>[createVNode($e)])]),_:2},1032,["heights","icons","index","toast","defaultRichColors","duration","class","descriptionClass","invert","visibleToasts","closeButton","interacting","position","style","unstyled","classes","cancelButtonStyle","actionButtonStyle","toasts","expandByDefault","gap","expanded","pauseWhenPageIsHidden","cn"])}),128))],16,Le$1)}),128))],8,Ae$1))}}),useStore=defineStore("store",()=>{const Ra=useDark(),qa=useToggle(Ra),rd=useStorage("isMacCodeBlock",!0),sd=useToggle(rd),pd=useStorage("isEditOnLeft",!0),fd=useToggle(pd),hd=useStorage("isCiteStatus",!1),md=useToggle(hd),gd=useStorage("isCountStatus",!1),yd=useToggle(gd),vd=useStorage(addPrefix("use_indent"),!1),Nd=useToggle(vd),Md=ref$1(""),Ld=useStorage(addPrefix("theme"),themeOptions[0].value),Fd=useStorage("fonts",fontFamilyOptions[0].value),Hd=useStorage("size",fontSizeOptions[2].value),Vd=useStorage("color",colorOptions[0].value),Gd=useStorage("codeBlockTheme",codeBlockThemeOptions[23].value),Ud=useStorage("legend",legendOptions[3].value),qd=computed(()=>Number(Hd.value.replace("px",""))),Wd=ref$1(null),Kd=useStorage("__editor_content",DEFAULT_CONTENT),Xd=useStorage(addPrefix("is_open_right_slider"),!1),df=useStorage(addPrefix("is_open_post_slider"),!1),Ef=useStorage(addPrefix("posts"),[{title:"内容1",content:DEFAULT_CONTENT}]),pf=useStorage(addPrefix("current_post_index"),0),mf=Fm=>{pf.value=Ef.value.push({title:Fm,content:`# ${Fm}`})-1},_f=(Fm,Ym)=>{Ef.value[Fm].title=Ym},xf=Fm=>{Ef.value.splice(Fm,1),pf.value=Math.min(Fm,Ef.value.length-1)};watch(pf,()=>{toRaw(Wd.value).setValue(Ef.value[pf.value].content)}),onMounted(()=>{Kd.value!==DEFAULT_CONTENT&&(Ef.value[pf.value].content=Kd.value,Kd.value=DEFAULT_CONTENT)});const Cf=()=>{formatDoc(Wd.value.getValue()).then(Fm=>{Ef.value[pf.value].content=Fm,toRaw(Wd.value).setValue(Fm)})},If=()=>{const Fm=Gd.value,Ym=document.querySelector("#hljs");if(Ym)Ym.setAttribute("href",Fm);else{const rg=document.createElement("link");rg.setAttribute("type","text/css"),rg.setAttribute("rel","stylesheet"),rg.setAttribute("href",Fm),rg.setAttribute("id","hljs"),document.head.appendChild(rg)}},Sf=ref$1(null),wf=Fm=>{Sf.value.setValue(Fm)},Pf=useStorage("__css_content",DEFAULT_CSS_CONTENT),lh=useStorage(addPrefix("css_content_config"),{active:"方案1",tabs:[{title:"方案1",name:"方案1",content:Pf.value||DEFAULT_CSS_CONTENT}]});onMounted(()=>{Pf.value=""});const xh=()=>lh.value.tabs.find(Fm=>Fm.name===lh.value.active),Eh=Fm=>{lh.value.active=Fm;const Ym=lh.value.tabs.find(rg=>rg.name===Fm).content;wf(Ym)},Mh=Fm=>{const Ym=xh();Ym.title=Fm,Ym.name=Fm,lh.value.active=Fm},dh=Fm=>{lh.value.tabs.push({name:Fm,title:Fm,content:DEFAULT_CSS_CONTENT}),lh.value.active=Fm,wf(DEFAULT_CSS_CONTENT)},eh=Fm=>lh.value.tabs.every(({name:Ym})=>Ym!==Fm),fh=initRenderer({theme:customCssWithTemplate(css2json(xh().content),Vd.value,customizeTheme(themeMap[Ld.value],{fontSize:qd.value,color:Vd.value})),fonts:Fd.value,size:Hd.value,isUseIndent:vd.value}),Sh=ref$1(null),vh=()=>{If(),fh.reset({citeStatus:hd.value,legend:Ud.value,isUseIndent:vd.value,countStatus:gd.value});const{markdownContent:Fm,readingTime:Ym}=fh.parseFrontMatterAndContent(Wd.value.getValue());Sh.value=Ym;let rg=marked$1.parse(Fm);rg=fh.buildReadingTime(Ym)+rg,rg=rg.replace(/(style=".*?)"/,'$1;margin-top: 0"'),rg+=fh.buildFootnotes(),rg+=fh.buildAddition(),rd.value&&(rg+=` + outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var Hm;vd&&(Hm=vf.ownerDocument.defaultView.scrollY),hf.input.focus(),vd&&vf.ownerDocument.defaultView.scrollTo(null,Hm),hf.input.reset(),gf.somethingSelected()||(vf.value=Yd.prevInput=" "),Yd.contextMenuPending=Qm,hf.selForContextMenu=gf.doc.sel,clearTimeout(hf.detectingSelectAll);function Jm(){if(vf.selectionStart!=null){var Tg=gf.somethingSelected(),kg="​"+(Tg?vf.value:"");vf.value="⇚",vf.value=kg,Yd.prevInput=Tg?"":"​",vf.selectionStart=1,vf.selectionEnd=kg.length,hf.selForContextMenu=gf.doc.sel}}function Qm(){if(Yd.contextMenuPending==Qm&&(Yd.contextMenuPending=!1,Yd.wrapper.style.cssText=Kh,vf.style.cssText=Lh,gd&&yd<9&&hf.scrollbars.setScrollTop(hf.scroller.scrollTop=ph),vf.selectionStart!=null)){(!gd||gd&&yd<9)&&Jm();var Tg=0,kg=function(){hf.selForContextMenu==gf.doc.sel&&vf.selectionStart==0&&vf.selectionEnd>0&&Yd.prevInput=="​"?U_(gf,nv)(gf):Tg++<10?hf.detectingSelectAll=setTimeout(kg,500):(hf.selForContextMenu=null,hf.input.reset())};hf.detectingSelectAll=setTimeout(kg,200)}}if(gd&&yd>=9&&Jm(),mf){X_(jd);var ug=function(){vg(window,"mouseup",ug),setTimeout(Qm,20)};ig(window,"mouseup",ug)}else setTimeout(Qm,50)},lb.prototype.readOnlyChanged=function(jd){jd||this.reset(),this.textarea.disabled=jd=="nocursor",this.textarea.readOnly=!!jd},lb.prototype.setUneditable=function(){},lb.prototype.needsContentAttribute=!1;function Kx(jd,Yd){if(Yd=Yd?Af(Yd):{},Yd.value=jd.value,!Yd.tabindex&&jd.tabIndex&&(Yd.tabindex=jd.tabIndex),!Yd.placeholder&&jd.placeholder&&(Yd.placeholder=jd.placeholder),Yd.autofocus==null){var gf=xh(Sh(jd));Yd.autofocus=gf==jd||jd.getAttribute("autofocus")!=null&&gf==document.body}function hf(){jd.value=Ah.getValue()}var vf;if(jd.form&&(ig(jd.form,"submit",hf),!Yd.leaveSubmitMethodAlone)){var $f=jd.form;vf=$f.submit;try{var ph=$f.submit=function(){hf(),$f.submit=vf,$f.submit(),$f.submit=ph}}catch{}}Yd.finishInit=function(Lh){Lh.save=hf,Lh.getTextArea=function(){return jd},Lh.toTextArea=function(){Lh.toTextArea=isNaN,hf(),jd.parentNode.removeChild(Lh.getWrapperElement()),jd.style.display="",jd.form&&(vg(jd.form,"submit",hf),!Yd.leaveSubmitMethodAlone&&typeof jd.form.submit=="function"&&(jd.form.submit=vf))}},jd.style.display="none";var Ah=k_(function(Lh){return jd.parentNode.insertBefore(Lh,jd.nextSibling)},Yd);return Ah}function P1(jd){jd.off=vg,jd.on=ig,jd.wheelEventPixels=E1,jd.Doc=Hb,jd.splitLines=nh,jd.countColumn=_h,jd.findColumn=Zf,jd.isWordChar=Fm,jd.Pass=oh,jd.signal=Og,jd.Line=Hy,jd.changeEnd=W0,jd.scrollbarModel=SE,jd.Pos=sg,jd.cmpPos=Fg,jd.modes=Lm,jd.mimeModes=zm,jd.resolveMode=og,jd.getMode=pg,jd.modeExtensions=qg,jd.extendMode=xg,jd.copyState=Yg,jd.startState=C_,jd.innerMode=w_,jd.commands=nS,jd.keyMap=_0,jd.keyName=Jv,jd.isModifierKey=qS,jd.lookupKey=iy,jd.normalizeKeyMap=ry,jd.StringStream=p_,jd.SharedTextMarker=ov,jd.TextMarker=s0,jd.LineWidget=NE,jd.e_preventDefault=t_,jd.e_stopPropagation=R_,jd.e_stop=X_,jd.addClass=Eh,jd.contains=lh,jd.rmClass=xf,jd.keyNames=Db}YT(k_),_v(k_);var Xx="iter insert remove copy getEditor constructor".split(" ");for(var eT in Hb.prototype)Hb.prototype.hasOwnProperty(eT)&&dm(Xx,eT)<0&&(k_.prototype[eT]=function(jd){return function(){return jd.apply(this.doc,arguments)}}(Hb.prototype[eT]));return y_(Hb),k_.inputStyles={textarea:lb,contenteditable:B_},k_.defineMode=function(jd){!k_.defaults.mode&&jd!="null"&&(k_.defaults.mode=jd),Vm.apply(this,arguments)},k_.defineMIME=Dm,k_.defineMode("null",function(){return{token:function(jd){return jd.skipToEnd()}}}),k_.defineMIME("text/plain","null"),k_.defineExtension=function(jd,Yd){k_.prototype[jd]=Yd},k_.defineDocExtension=function(jd,Yd){Hb.prototype[jd]=Yd},k_.fromTextArea=Kx,P1(k_),k_.version="5.65.18",k_})}(codemirror)),codemirror.exports}var codemirrorExports=requireCodemirror();const CodeMirror=getDefaultExportFromCjs(codemirrorExports);var qt=Object.defineProperty,Jt=(Ra,qa,rd)=>qa in Ra?qt(Ra,qa,{enumerable:!0,configurable:!0,writable:!0,value:rd}):Ra[qa]=rd,x$1=(Ra,qa,rd)=>Jt(Ra,typeof qa!="symbol"?qa+"":qa,rd);function Zt(Ra){if(typeof document>"u")return;let qa=document.head||document.getElementsByTagName("head")[0],rd=document.createElement("style");rd.type="text/css",qa.appendChild(rd),rd.styleSheet?rd.styleSheet.cssText=Ra:rd.appendChild(document.createTextNode(Ra))}Zt(":where([data-sonner-toaster][dir=ltr]),:where(html[dir=ltr]){--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}:where([data-sonner-toaster][dir=rtl]),:where(html[dir=rtl]){--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}:where([data-sonner-toaster][data-lifted=true]){transform:translateY(-10px)}@media (hover:none) and (pointer:coarse){:where([data-sonner-toaster][data-lifted=true]){transform:none}}:where([data-sonner-toaster][data-x-position=right]){right:max(var(--offset),env(safe-area-inset-right))}:where([data-sonner-toaster][data-x-position=left]){left:max(var(--offset),env(safe-area-inset-left))}:where([data-sonner-toaster][data-x-position=center]){left:50%;transform:translateX(-50%)}:where([data-sonner-toaster][data-y-position=top]){top:max(var(--offset),env(safe-area-inset-top))}:where([data-sonner-toaster][data-y-position=bottom]){bottom:max(var(--offset),env(safe-area-inset-bottom))}:where([data-sonner-toast]){--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled=true]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}:where([data-sonner-toast][data-y-position=top]){top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position=bottom]){bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise=true]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme=dark]) :where([data-cancel]){background:rgba(255,255,255,.3)}[data-sonner-toast] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast] [data-close-button]{background:var(--gray1)}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}:where([data-sonner-toast]) :where([data-disabled=true]){cursor:not-allowed}[data-sonner-toast]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping=true])::before{content:'';position:absolute;left:0;right:0;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position=top][data-swiping=true])::before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position=bottom][data-swiping=true])::before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping=false][data-removed=true])::before{content:'';position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast])::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted=true]){--y:translateY(0);opacity:1}:where([data-sonner-toast][data-expanded=false][data-front=false]){--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded=false][data-front=false][data-styled=true])>*{opacity:0}:where([data-sonner-toast][data-visible=false]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted=true][data-expanded=true]){--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]){--y:translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]){--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]){--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed=true][data-front=false])::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation:swipe-out .2s ease-out forwards}@keyframes swipe-out{from{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount)));opacity:1}to{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount) + var(--lift) * -100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;--mobile-offset:16px;right:var(--mobile-offset);left:var(--mobile-offset);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset)}[data-sonner-toaster][data-y-position=bottom]{bottom:20px}[data-sonner-toaster][data-y-position=top]{top:20px}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset);right:var(--mobile-offset);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 91%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 91%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 91%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 100%, 12%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 12%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");let vt=0,ae$2=class{constructor(){x$1(this,"subscribers"),x$1(this,"toasts"),x$1(this,"subscribe",qa=>(this.subscribers.push(qa),()=>{const rd=this.subscribers.indexOf(qa);this.subscribers.splice(rd,1)})),x$1(this,"publish",qa=>{this.subscribers.forEach(rd=>rd(qa))}),x$1(this,"addToast",qa=>{this.publish(qa),this.toasts=[...this.toasts,qa]}),x$1(this,"create",qa=>{var rd;const{message:sd,...pd}=qa,fd=typeof qa.id=="number"||qa.id&&((rd=qa.id)==null?void 0:rd.length)>0?qa.id:vt++,hd=this.toasts.find(gd=>gd.id===fd),md=qa.dismissible===void 0?!0:qa.dismissible;return hd?this.toasts=this.toasts.map(gd=>gd.id===fd?(this.publish({...gd,...qa,id:fd,title:sd}),{...gd,...qa,id:fd,dismissible:md,title:sd}):gd):this.addToast({title:sd,...pd,dismissible:md,id:fd}),fd}),x$1(this,"dismiss",qa=>(qa||this.toasts.forEach(rd=>{this.subscribers.forEach(sd=>sd({id:rd.id,dismiss:!0}))}),this.subscribers.forEach(rd=>rd({id:qa,dismiss:!0})),qa)),x$1(this,"message",(qa,rd)=>this.create({...rd,message:qa,type:"default"})),x$1(this,"error",(qa,rd)=>this.create({...rd,type:"error",message:qa})),x$1(this,"success",(qa,rd)=>this.create({...rd,type:"success",message:qa})),x$1(this,"info",(qa,rd)=>this.create({...rd,type:"info",message:qa})),x$1(this,"warning",(qa,rd)=>this.create({...rd,type:"warning",message:qa})),x$1(this,"loading",(qa,rd)=>this.create({...rd,type:"loading",message:qa})),x$1(this,"promise",(qa,rd)=>{if(!rd)return;let sd;rd.loading!==void 0&&(sd=this.create({...rd,promise:qa,type:"loading",message:rd.loading,description:typeof rd.description!="function"?rd.description:void 0}));const pd=qa instanceof Promise?qa:qa();let fd=sd!==void 0,hd;const md=pd.then(async yd=>{if(hd=["resolve",yd],se$1(yd)&&!yd.ok){fd=!1;const vd=typeof rd.error=="function"?await rd.error(`HTTP error! status: ${yd.status}`):rd.error,Nd=typeof rd.description=="function"?await rd.description(`HTTP error! status: ${yd.status}`):rd.description;this.create({id:sd,type:"error",message:vd,description:Nd})}else if(rd.success!==void 0){fd=!1;const vd=typeof rd.success=="function"?await rd.success(yd):rd.success,Nd=typeof rd.description=="function"?await rd.description(yd):rd.description;this.create({id:sd,type:"success",message:vd,description:Nd})}}).catch(async yd=>{if(hd=["reject",yd],rd.error!==void 0){fd=!1;const vd=typeof rd.error=="function"?await rd.error(yd):rd.error,Nd=typeof rd.description=="function"?await rd.description(yd):rd.description;this.create({id:sd,type:"error",message:vd,description:Nd})}}).finally(()=>{var yd;fd&&(this.dismiss(sd),sd=void 0),(yd=rd.finally)==null||yd.call(rd)}),gd=()=>new Promise((yd,vd)=>md.then(()=>hd[0]==="reject"?vd(hd[1]):yd(hd[1])).catch(vd));return typeof sd!="string"&&typeof sd!="number"?{unwrap:gd}:Object.assign(sd,{unwrap:gd})}),x$1(this,"custom",(qa,rd)=>{const sd=(rd==null?void 0:rd.id)||vt++;return this.publish({component:qa,id:sd,...rd}),sd}),this.subscribers=[],this.toasts=[]}};const I$2=new ae$2;function oe$1(Ra,qa){const rd=(qa==null?void 0:qa.id)||vt++;return I$2.create({message:Ra,id:rd,type:"default",...qa}),rd}const se$1=Ra=>Ra&&typeof Ra=="object"&&"ok"in Ra&&typeof Ra.ok=="boolean"&&"status"in Ra&&typeof Ra.status=="number",ne$1=oe$1,re$1=()=>I$2.toasts,Ke=Object.assign(ne$1,{success:I$2.success,info:I$2.info,warning:I$2.warning,error:I$2.error,custom:I$2.custom,message:I$2.message,promise:I$2.promise,dismiss:I$2.dismiss,loading:I$2.loading},{getHistory:re$1});function ut(Ra){return Ra.label!==void 0}function ie$1(){const Ra=ref$1(!1);return watchEffect(()=>{const qa=()=>{Ra.value=document.hidden};return document.addEventListener("visibilitychange",qa),()=>window.removeEventListener("visibilitychange",qa)}),{isDocumentHidden:Ra}}const le$1=["aria-live","data-rich-colors","data-styled","data-mounted","data-promise","data-removed","data-visible","data-y-position","data-x-position","data-index","data-front","data-swiping","data-dismissible","data-type","data-invert","data-swipe-out","data-expanded"],de$1=["aria-label","data-disabled"],Wt=4e3,ue$1=20,ce$2=200,fe$1=defineComponent({__name:"Toast",props:{toast:{},toasts:{},index:{},expanded:{type:Boolean},invert:{type:Boolean},heights:{},gap:{},position:{},visibleToasts:{},expandByDefault:{type:Boolean},closeButton:{type:Boolean},interacting:{type:Boolean},style:{},cancelButtonStyle:{},actionButtonStyle:{},duration:{},class:{},unstyled:{type:Boolean},descriptionClass:{},loadingIcon:{},classes:{},icons:{},closeButtonAriaLabel:{},pauseWhenPageIsHidden:{type:Boolean},cn:{type:Function},defaultRichColors:{type:Boolean}},emits:["update:heights","removeToast"],setup(Ra,{emit:qa}){const rd=Ra,sd=qa,pd=ref$1(!1),fd=ref$1(!1),hd=ref$1(!1),md=ref$1(!1),gd=ref$1(!1),yd=ref$1(0),vd=ref$1(0),Nd=ref$1(rd.toast.duration||rd.duration||Wt),Md=ref$1(null),Ld=ref$1(null),Fd=computed(()=>rd.index===0),Hd=computed(()=>rd.index+1<=rd.visibleToasts),Vd=computed(()=>rd.toast.type),Gd=computed(()=>rd.toast.dismissible!==!1),Ud=computed(()=>rd.toast.class||""),qd=computed(()=>rd.descriptionClass||""),Wd=rd.toast.style||{},Kd=computed(()=>rd.heights.findIndex(Sh=>Sh.toastId===rd.toast.id)||0),Xd=computed(()=>rd.toast.closeButton??rd.closeButton);computed(()=>rd.toast.duration||rd.duration||Wt);const df=ref$1(0),Ef=ref$1(0),pf=ref$1(null),mf=computed(()=>rd.position.split("-")),_f=computed(()=>mf.value[0]),xf=computed(()=>mf.value[1]),Cf=computed(()=>typeof rd.toast.title!="string"),If=computed(()=>typeof rd.toast.description!="string"),Sf=computed(()=>rd.heights.reduce((Sh,vh,Df)=>Df>=Kd.value?Sh:Sh+vh.height,0)),wf=ie$1(),Pf=computed(()=>rd.toast.invert||rd.invert),lh=computed(()=>Vd.value==="loading"),xh=computed(()=>Kd.value*rd.gap+Sf.value||0);onMounted(()=>{if(!pd.value)return;const Sh=Ld.value,vh=Sh==null?void 0:Sh.style.height;Sh.style.height="auto";const Df=Sh.getBoundingClientRect().height;Sh.style.height=vh,vd.value=Df;let Af;rd.heights.find(_h=>_h.toastId===rd.toast.id)?Af=rd.heights.map(_h=>_h.toastId===rd.toast.id?{..._h,height:Df}:_h):Af=[{toastId:rd.toast.id,height:Df,position:rd.toast.position},...rd.heights],sd("update:heights",Af)});function Eh(){fd.value=!0,yd.value=xh.value;const Sh=rd.heights.filter(vh=>vh.toastId!==rd.toast.id);sd("update:heights",Sh),setTimeout(()=>{sd("removeToast",rd.toast)},ce$2)}function Mh(){var Sh,vh;if(lh.value||!Gd.value)return{};Eh(),(vh=(Sh=rd.toast).onDismiss)==null||vh.call(Sh,rd.toast)}function dh(Sh){lh.value||!Gd.value||(Md.value=new Date,yd.value=xh.value,Sh.target.setPointerCapture(Sh.pointerId),Sh.target.tagName!=="BUTTON"&&(hd.value=!0,pf.value={x:Sh.clientX,y:Sh.clientY}))}function eh(){var Sh,vh,Df,Af,_h;if(md.value||!Gd)return;pf.value=null;const Nh=Number(((Sh=Ld.value)==null?void 0:Sh.style.getPropertyValue("--swipe-amount").replace("px",""))||0),dm=new Date().getTime()-((vh=Md.value)==null?void 0:vh.getTime()),Jf=Math.abs(Nh)/dm;if(Math.abs(Nh)>=ue$1||Jf>.11){yd.value=xh.value,(Af=(Df=rd.toast).onDismiss)==null||Af.call(Df,rd.toast),Eh(),md.value=!0,gd.value=!1;return}(_h=Ld.value)==null||_h.style.setProperty("--swipe-amount","0px"),hd.value=!1}function fh(Sh){var vh,Df;if(!pf.value||!Gd.value)return;const Af=Sh.clientY-pf.value.y,_h=((vh=window.getSelection())==null?void 0:vh.toString().length)>0,Nh=_f.value==="top"?Math.min(0,Af):Math.max(0,Af);Math.abs(Nh)>0&&(gd.value=!0),!_h&&((Df=Ld.value)==null||Df.style.setProperty("--swipe-amount",`${Nh}px`))}return watchEffect(Sh=>{if(rd.toast.promise&&Vd.value==="loading"||rd.toast.duration===1/0||rd.toast.type==="loading")return;let vh;const Df=()=>{if(Ef.value{Nd.value!==1/0&&(df.value=new Date().getTime(),vh=setTimeout(()=>{var _h,Nh;(Nh=(_h=rd.toast).onAutoClose)==null||Nh.call(_h,rd.toast),Eh()},Nd.value))};rd.expanded||rd.interacting||rd.pauseWhenPageIsHidden&&wf?Df():Af(),Sh(()=>{clearTimeout(vh)})}),watch(()=>rd.toast.delete,()=>{rd.toast.delete&&Eh()},{deep:!0}),onMounted(()=>{if(pd.value=!0,Ld.value){const Sh=Ld.value.getBoundingClientRect().height;vd.value=Sh;const vh=[{toastId:rd.toast.id,height:Sh,position:rd.toast.position},...rd.heights];sd("update:heights",vh)}}),onBeforeUnmount(()=>{if(Ld.value){const Sh=rd.heights.filter(vh=>vh.toastId!==rd.toast.id);sd("update:heights",Sh)}}),(Sh,vh)=>{var Df,Af,_h,Nh,dm,Jf,oh,Xh,Tm,kh,Zf,th,$h,wh,fm,zh,Mm,Rm,tg,Fm,Ym,rg,Eg,Fh,kf,Rf,Dh;return openBlock(),createElementBlock("li",{ref_key:"toastRef",ref:Ld,"aria-live":Sh.toast.important?"assertive":"polite","aria-atomic":"true",role:"status",tabindex:"0","data-sonner-toast":"true",class:normalizeClass(Sh.cn(rd.class,Ud.value,(Df=Sh.classes)==null?void 0:Df.toast,(Af=Sh.toast.classes)==null?void 0:Af.toast,(_h=Sh.classes)==null?void 0:_h[Vd.value],(dm=(Nh=Sh.toast)==null?void 0:Nh.classes)==null?void 0:dm[Vd.value])),"data-rich-colors":Sh.toast.richColors??Sh.defaultRichColors,"data-styled":!(Sh.toast.component||(Jf=Sh.toast)!=null&&Jf.unstyled||Sh.unstyled),"data-mounted":pd.value,"data-promise":!!Sh.toast.promise,"data-removed":fd.value,"data-visible":Hd.value,"data-y-position":_f.value,"data-x-position":xf.value,"data-index":Sh.index,"data-front":Fd.value,"data-swiping":hd.value,"data-dismissible":Gd.value,"data-type":Vd.value,"data-invert":Pf.value,"data-swipe-out":md.value,"data-expanded":!!(Sh.expanded||Sh.expandByDefault&&pd.value),style:normalizeStyle({"--index":Sh.index,"--toasts-before":Sh.index,"--z-index":Sh.toasts.length-Sh.index,"--offset":`${fd.value?yd.value:xh.value}px`,"--initial-height":Sh.expandByDefault?"auto":`${vd.value}px`,...Sh.style,...unref(Wd)}),onPointerdown:dh,onPointerup:eh,onPointermove:fh},[Xd.value&&!Sh.toast.component?(openBlock(),createElementBlock("button",{key:0,"aria-label":Sh.closeButtonAriaLabel||"Close toast","data-disabled":lh.value,"data-close-button":"true",class:normalizeClass(Sh.cn((oh=Sh.classes)==null?void 0:oh.closeButton,(Tm=(Xh=Sh.toast)==null?void 0:Xh.classes)==null?void 0:Tm.closeButton)),onClick:Mh},[(kh=Sh.icons)!=null&&kh.close?(openBlock(),createBlock(resolveDynamicComponent((Zf=Sh.icons)==null?void 0:Zf.close),{key:0})):renderSlot(Sh.$slots,"close-icon",{key:1})],10,de$1)):createCommentVNode("",!0),Sh.toast.component?(openBlock(),createBlock(resolveDynamicComponent(Sh.toast.component),mergeProps({key:1},Sh.toast.componentProps,{onCloseToast:Mh}),null,16)):(openBlock(),createElementBlock(Fragment,{key:2},[Vd.value!=="default"||Sh.toast.icon||Sh.toast.promise?(openBlock(),createElementBlock("div",{key:0,"data-icon":"",class:normalizeClass(Sh.cn((th=Sh.classes)==null?void 0:th.icon,(wh=($h=Sh.toast)==null?void 0:$h.classes)==null?void 0:wh.icon))},[(Sh.toast.promise||Vd.value==="loading")&&!Sh.toast.icon?renderSlot(Sh.$slots,"loading-icon",{key:0}):createCommentVNode("",!0),Sh.toast.icon?(openBlock(),createBlock(resolveDynamicComponent(Sh.toast.icon),{key:1})):(openBlock(),createElementBlock(Fragment,{key:2},[Vd.value==="success"?renderSlot(Sh.$slots,"success-icon",{key:0}):Vd.value==="error"?renderSlot(Sh.$slots,"error-icon",{key:1}):Vd.value==="warning"?renderSlot(Sh.$slots,"warning-icon",{key:2}):Vd.value==="info"?renderSlot(Sh.$slots,"info-icon",{key:3}):createCommentVNode("",!0)],64))],2)):createCommentVNode("",!0),createBaseVNode("div",{"data-content":"",class:normalizeClass(Sh.cn((fm=Sh.classes)==null?void 0:fm.content,(Mm=(zh=Sh.toast)==null?void 0:zh.classes)==null?void 0:Mm.content))},[createBaseVNode("div",{"data-title":"",class:normalizeClass(Sh.cn((Rm=Sh.classes)==null?void 0:Rm.title,(tg=Sh.toast.classes)==null?void 0:tg.title))},[Cf.value?(openBlock(),createBlock(resolveDynamicComponent(Sh.toast.title),normalizeProps(mergeProps({key:0},Sh.toast.componentProps)),null,16)):(openBlock(),createElementBlock(Fragment,{key:1},[createTextVNode(toDisplayString(Sh.toast.title),1)],64))],2),Sh.toast.description?(openBlock(),createElementBlock("div",{key:0,"data-description":"",class:normalizeClass(Sh.cn(Sh.descriptionClass,qd.value,(Fm=Sh.classes)==null?void 0:Fm.description,(Ym=Sh.toast.classes)==null?void 0:Ym.description))},[If.value?(openBlock(),createBlock(resolveDynamicComponent(Sh.toast.description),normalizeProps(mergeProps({key:0},Sh.toast.componentProps)),null,16)):(openBlock(),createElementBlock(Fragment,{key:1},[createTextVNode(toDisplayString(Sh.toast.description),1)],64))],2)):createCommentVNode("",!0)],2),Sh.toast.cancel?(openBlock(),createElementBlock("button",{key:1,style:normalizeStyle(Sh.toast.cancelButtonStyle||Sh.cancelButtonStyle),class:normalizeClass(Sh.cn((rg=Sh.classes)==null?void 0:rg.cancelButton,(Eg=Sh.toast.classes)==null?void 0:Eg.cancelButton)),"data-button":"","data-cancel":"",onClick:vh[0]||(vh[0]=Vh=>{var Sm,$m;unref(ut)(Sh.toast.cancel)&&Gd.value&&(($m=(Sm=Sh.toast.cancel).onClick)==null||$m.call(Sm,Vh),Eh())})},toDisplayString(unref(ut)(Sh.toast.cancel)?(Fh=Sh.toast.cancel)==null?void 0:Fh.label:Sh.toast.cancel),7)):createCommentVNode("",!0),Sh.toast.action?(openBlock(),createElementBlock("button",{key:2,style:normalizeStyle(Sh.toast.actionButtonStyle||Sh.actionButtonStyle),class:normalizeClass(Sh.cn((kf=Sh.classes)==null?void 0:kf.actionButton,(Rf=Sh.toast.classes)==null?void 0:Rf.actionButton)),"data-button":"","data-action":"",onClick:vh[1]||(vh[1]=Vh=>{var Sm,$m;unref(ut)(Sh.toast.action)&&(Vh.defaultPrevented||(($m=(Sm=Sh.toast.action).onClick)==null||$m.call(Sm,Vh),!Vh.defaultPrevented&&Eh()))})},toDisplayString(unref(ut)(Sh.toast.action)?(Dh=Sh.toast.action)==null?void 0:Dh.label:Sh.toast.action),7)):createCommentVNode("",!0)],64))],46,le$1)}}}),at$1=(Ra,qa)=>{const rd=Ra.__vccOpts||Ra;for(const[sd,pd]of qa)rd[sd]=pd;return rd},pe$1={},he$1={xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stoke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"};function ge$1(Ra,qa){return openBlock(),createElementBlock("svg",he$1,qa[0]||(qa[0]=[createBaseVNode("line",{x1:"18",y1:"6",x2:"6",y2:"18"},null,-1),createBaseVNode("line",{x1:"6",y1:"6",x2:"18",y2:"18"},null,-1)]))}const me$1=at$1(pe$1,[["render",ge$1]]),ve$1=["data-visible"],ye$1={class:"sonner-spinner"},be$2=defineComponent({__name:"Loader",props:{visible:{type:Boolean}},setup(Ra){const qa=Array(12).fill(0);return(rd,sd)=>(openBlock(),createElementBlock("div",{class:"sonner-loading-wrapper","data-visible":rd.visible},[createBaseVNode("div",ye$1,[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(qa),pd=>(openBlock(),createElementBlock("div",{key:`spinner-bar-${pd}`,class:"sonner-loading-bar"}))),128))])],8,ve$1))}}),we$1={},ke$1={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"};function xe$1(Ra,qa){return openBlock(),createElementBlock("svg",ke$1,qa[0]||(qa[0]=[createBaseVNode("path",{"fill-rule":"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z","clip-rule":"evenodd"},null,-1)]))}const Te=at$1(we$1,[["render",xe$1]]),Be$1={},Se$1={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"};function Ce$1(Ra,qa){return openBlock(),createElementBlock("svg",Se$1,qa[0]||(qa[0]=[createBaseVNode("path",{"fill-rule":"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z","clip-rule":"evenodd"},null,-1)]))}const $e=at$1(Be$1,[["render",Ce$1]]),Ie$1={},Ee$1={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"};function Pe$1(Ra,qa){return openBlock(),createElementBlock("svg",Ee$1,qa[0]||(qa[0]=[createBaseVNode("path",{"fill-rule":"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z","clip-rule":"evenodd"},null,-1)]))}const De=at$1(Ie$1,[["render",Pe$1]]),He={},ze={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"};function Me$1(Ra,qa){return openBlock(),createElementBlock("svg",ze,qa[0]||(qa[0]=[createBaseVNode("path",{"fill-rule":"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z","clip-rule":"evenodd"},null,-1)]))}const Oe$1=at$1(He,[["render",Me$1]]),Ae$1=["aria-label"],Le$1=["dir","data-theme","data-rich-colors","data-y-position","data-x-position","data-lifted"],Ye=3,Ut="32px",Ne$1=356,Re$1=14,Fe$1=typeof window<"u"&&typeof document<"u";function je$1(...Ra){return Ra.filter(Boolean).join(" ")}const Ve=defineComponent({name:"Toaster",inheritAttrs:!1,__name:"Toaster",props:{invert:{type:Boolean,default:!1},theme:{default:"light"},position:{default:"bottom-right"},hotkey:{default:()=>["altKey","KeyT"]},richColors:{type:Boolean,default:!1},expand:{type:Boolean,default:!1},duration:{},gap:{default:Re$1},visibleToasts:{default:Ye},closeButton:{type:Boolean,default:!1},toastOptions:{default:()=>({})},class:{default:""},style:{default:()=>({})},offset:{default:Ut},dir:{default:"auto"},icons:{},containerAriaLabel:{default:"Notifications"},pauseWhenPageIsHidden:{type:Boolean,default:!1},cn:{type:Function,default:je$1}},setup(Ra){const qa=Ra;function rd(){if(typeof window>"u"||typeof document>"u")return"ltr";const qd=document.documentElement.getAttribute("dir");return qd==="auto"||!qd?window.getComputedStyle(document.documentElement).direction:qd}const sd=useAttrs(),pd=ref$1([]),fd=computed(()=>(qd,Wd)=>pd.value.filter(Kd=>!Kd.position&&Wd===0||Kd.position===qd)),hd=computed(()=>{const qd=pd.value.filter(Wd=>Wd.position).map(Wd=>Wd.position);return qd.length>0?Array.from(new Set([qa.position].concat(qd))):[qa.position]}),md=ref$1([]),gd=ref$1(!1),yd=ref$1(!1),vd=ref$1(qa.theme!=="system"?qa.theme:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),Nd=ref$1(null),Md=ref$1(null),Ld=ref$1(!1),Fd=qa.hotkey.join("+").replace(/Key/g,"").replace(/Digit/g,"");function Hd(qd){var Wd;(Wd=pd.value.find(Kd=>Kd.id===qd.id))!=null&&Wd.delete||I$2.dismiss(qd.id),pd.value=pd.value.filter(({id:Kd})=>Kd!==qd.id)}function Vd(qd){var Wd,Kd;Ld.value&&!((Kd=(Wd=qd.currentTarget)==null?void 0:Wd.contains)!=null&&Kd.call(Wd,qd.relatedTarget))&&(Ld.value=!1,Md.value&&(Md.value.focus({preventScroll:!0}),Md.value=null))}function Gd(qd){qd.target instanceof HTMLElement&&qd.target.dataset.dismissible==="false"||Ld.value||(Ld.value=!0,Md.value=qd.relatedTarget)}function Ud(qd){qd.target&&qd.target instanceof HTMLElement&&qd.target.dataset.dismissible==="false"||(yd.value=!0)}return watchEffect(qd=>{const Wd=I$2.subscribe(Kd=>{if(Kd.dismiss){pd.value=pd.value.map(Xd=>Xd.id===Kd.id?{...Xd,delete:!0}:Xd);return}nextTick$1(()=>{const Xd=pd.value.findIndex(df=>df.id===Kd.id);Xd!==-1?pd.value=[...pd.value.slice(0,Xd),{...pd.value[Xd],...Kd},...pd.value.slice(Xd+1)]:pd.value=[Kd,...pd.value]})});qd(Wd)}),watch(()=>qa.theme,qd=>{if(qd!=="system"){vd.value=qd;return}if(qd==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?vd.value="dark":vd.value="light"),typeof window>"u")return;const Wd=window.matchMedia("(prefers-color-scheme: dark)");try{Wd.addEventListener("change",({matches:Kd})=>{Kd?vd.value="dark":vd.value="light"})}catch{Wd.addListener(({matches:Kd})=>{try{Kd?vd.value="dark":vd.value="light"}catch(Xd){console.error(Xd)}})}}),watchEffect(()=>{Nd.value&&Md.value&&(Md.value.focus({preventScroll:!0}),Md.value=null,Ld.value=!1)}),watchEffect(()=>{pd.value.length<=1&&(gd.value=!1)}),watchEffect(qd=>{function Wd(Kd){const Xd=qa.hotkey.every(pf=>Kd[pf]||Kd.code===pf),df=Array.isArray(Nd.value)?Nd.value[0]:Nd.value;Xd&&(gd.value=!0,df==null||df.focus());const Ef=document.activeElement===Nd.value||(df==null?void 0:df.contains(document.activeElement));Kd.code==="Escape"&&Ef&&(gd.value=!1)}Fe$1&&(document.addEventListener("keydown",Wd),qd(()=>{document.removeEventListener("keydown",Wd)}))}),(qd,Wd)=>(openBlock(),createElementBlock("section",{"aria-label":`${qd.containerAriaLabel} ${unref(Fd)}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false"},[(openBlock(!0),createElementBlock(Fragment,null,renderList(hd.value,(Kd,Xd)=>{var df;return openBlock(),createElementBlock("ol",mergeProps({key:Kd,ref_for:!0,ref_key:"listRef",ref:Nd,"data-sonner-toaster":"",class:qa.class,dir:qd.dir==="auto"?rd():qd.dir,tabIndex:-1,"data-theme":qd.theme,"data-rich-colors":qd.richColors,"data-y-position":Kd.split("-")[0],"data-x-position":Kd.split("-")[1],"data-lifted":gd.value&&pd.value.length>1&&!qd.expand,style:{"--front-toast-height":`${(df=md.value[0])==null?void 0:df.height}px`,"--offset":typeof qd.offset=="number"?`${qd.offset}px`:qd.offset||Ut,"--width":`${Ne$1}px`,"--gap":`${qd.gap}px`,...qd.style,...unref(sd).style}},qd.$attrs,{onBlur:Vd,onFocus:Gd,onMouseenter:Wd[1]||(Wd[1]=()=>gd.value=!0),onMousemove:Wd[2]||(Wd[2]=()=>gd.value=!0),onMouseleave:Wd[3]||(Wd[3]=()=>{yd.value||(gd.value=!1)}),onPointerdown:Ud,onPointerup:Wd[4]||(Wd[4]=()=>yd.value=!1)}),[(openBlock(!0),createElementBlock(Fragment,null,renderList(fd.value(Kd,Xd),(Ef,pf)=>{var mf,_f,xf,Cf,If,Sf,wf,Pf,lh;return openBlock(),createBlock(fe$1,{key:Ef.id,heights:md.value.filter(xh=>xh.position===Ef.position),icons:qd.icons,index:pf,toast:Ef,defaultRichColors:qd.richColors,duration:((mf=qd.toastOptions)==null?void 0:mf.duration)??qd.duration,class:normalizeClass(((_f=qd.toastOptions)==null?void 0:_f.class)??""),descriptionClass:(xf=qd.toastOptions)==null?void 0:xf.descriptionClass,invert:qd.invert,visibleToasts:qd.visibleToasts,closeButton:((Cf=qd.toastOptions)==null?void 0:Cf.closeButton)??qd.closeButton,interacting:yd.value,position:Kd,style:normalizeStyle((If=qd.toastOptions)==null?void 0:If.style),unstyled:(Sf=qd.toastOptions)==null?void 0:Sf.unstyled,classes:(wf=qd.toastOptions)==null?void 0:wf.classes,cancelButtonStyle:(Pf=qd.toastOptions)==null?void 0:Pf.cancelButtonStyle,actionButtonStyle:(lh=qd.toastOptions)==null?void 0:lh.actionButtonStyle,toasts:pd.value.filter(xh=>xh.position===Ef.position),expandByDefault:qd.expand,gap:qd.gap,expanded:gd.value,pauseWhenPageIsHidden:qd.pauseWhenPageIsHidden,cn:qd.cn,"onUpdate:heights":Wd[0]||(Wd[0]=xh=>{md.value=xh}),onRemoveToast:Hd},{"close-icon":withCtx(()=>[renderSlot(qd.$slots,"close-icon",{},()=>[createVNode(me$1)])]),"loading-icon":withCtx(()=>[renderSlot(qd.$slots,"loading-icon",{},()=>[createVNode(be$2,{visible:Ef.type==="loading"},null,8,["visible"])])]),"success-icon":withCtx(()=>[renderSlot(qd.$slots,"success-icon",{},()=>[createVNode(Te)])]),"error-icon":withCtx(()=>[renderSlot(qd.$slots,"error-icon",{},()=>[createVNode(Oe$1)])]),"warning-icon":withCtx(()=>[renderSlot(qd.$slots,"warning-icon",{},()=>[createVNode(De)])]),"info-icon":withCtx(()=>[renderSlot(qd.$slots,"info-icon",{},()=>[createVNode($e)])]),_:2},1032,["heights","icons","index","toast","defaultRichColors","duration","class","descriptionClass","invert","visibleToasts","closeButton","interacting","position","style","unstyled","classes","cancelButtonStyle","actionButtonStyle","toasts","expandByDefault","gap","expanded","pauseWhenPageIsHidden","cn"])}),128))],16,Le$1)}),128))],8,Ae$1))}}),useStore=defineStore("store",()=>{const Ra=useDark(),qa=useToggle(Ra),rd=useStorage("isMacCodeBlock",!0),sd=useToggle(rd),pd=useStorage("isEditOnLeft",!0),fd=useToggle(pd),hd=useStorage("isCiteStatus",!1),md=useToggle(hd),gd=useStorage("isCountStatus",!1),yd=useToggle(gd),vd=useStorage(addPrefix("use_indent"),!1),Nd=useToggle(vd),Md=ref$1(""),Ld=useStorage(addPrefix("theme"),themeOptions[0].value),Fd=useStorage("fonts",fontFamilyOptions[0].value),Hd=useStorage("size",fontSizeOptions[2].value),Vd=useStorage("color",colorOptions[0].value),Gd=useStorage("codeBlockTheme",codeBlockThemeOptions[23].value),Ud=useStorage("legend",legendOptions[3].value),qd=computed(()=>Number(Hd.value.replace("px",""))),Wd=ref$1(null),Kd=useStorage("__editor_content",DEFAULT_CONTENT),Xd=useStorage(addPrefix("is_open_right_slider"),!1),df=useStorage(addPrefix("is_open_post_slider"),!1),Ef=useStorage(addPrefix("posts"),[{title:"内容1",content:DEFAULT_CONTENT}]),pf=useStorage(addPrefix("current_post_index"),0),mf=Fm=>{pf.value=Ef.value.push({title:Fm,content:`# ${Fm}`})-1},_f=(Fm,Ym)=>{Ef.value[Fm].title=Ym},xf=Fm=>{Ef.value.splice(Fm,1),pf.value=Math.min(Fm,Ef.value.length-1)};watch(pf,()=>{toRaw(Wd.value).setValue(Ef.value[pf.value].content)}),onMounted(()=>{Kd.value!==DEFAULT_CONTENT&&(Ef.value[pf.value].content=Kd.value,Kd.value=DEFAULT_CONTENT)});const Cf=()=>{formatDoc(Wd.value.getValue()).then(Fm=>{Ef.value[pf.value].content=Fm,toRaw(Wd.value).setValue(Fm)})},If=()=>{const Fm=Gd.value,Ym=document.querySelector("#hljs");if(Ym)Ym.setAttribute("href",Fm);else{const rg=document.createElement("link");rg.setAttribute("type","text/css"),rg.setAttribute("rel","stylesheet"),rg.setAttribute("href",Fm),rg.setAttribute("id","hljs"),document.head.appendChild(rg)}},Sf=ref$1(null),wf=Fm=>{Sf.value.setValue(Fm)},Pf=useStorage("__css_content",DEFAULT_CSS_CONTENT),lh=useStorage(addPrefix("css_content_config"),{active:"方案1",tabs:[{title:"方案1",name:"方案1",content:Pf.value||DEFAULT_CSS_CONTENT}]});onMounted(()=>{Pf.value=""});const xh=()=>lh.value.tabs.find(Fm=>Fm.name===lh.value.active),Eh=Fm=>{lh.value.active=Fm;const Ym=lh.value.tabs.find(rg=>rg.name===Fm).content;wf(Ym)},Mh=Fm=>{const Ym=xh();Ym.title=Fm,Ym.name=Fm,lh.value.active=Fm},dh=Fm=>{lh.value.tabs.push({name:Fm,title:Fm,content:DEFAULT_CSS_CONTENT}),lh.value.active=Fm,wf(DEFAULT_CSS_CONTENT)},eh=Fm=>lh.value.tabs.every(({name:Ym})=>Ym!==Fm),fh=initRenderer({theme:customCssWithTemplate(css2json(xh().content),Vd.value,customizeTheme(themeMap[Ld.value],{fontSize:qd.value,color:Vd.value})),fonts:Fd.value,size:Hd.value,isUseIndent:vd.value}),Sh=ref$1(null),vh=()=>{If(),fh.reset({citeStatus:hd.value,legend:Ud.value,isUseIndent:vd.value,countStatus:gd.value});const{markdownContent:Fm,readingTime:Ym}=fh.parseFrontMatterAndContent(Wd.value.getValue());Sh.value=Ym;let rg=marked$1.parse(Fm);rg=purify.sanitize(rg),rg=fh.buildReadingTime(Ym)+rg,rg=rg.replace(/(style=".*?)"/,'$1;margin-top: 0"'),rg+=fh.buildFootnotes(),rg+=fh.buildAddition(),rd.value&&(rg+=`