@stacksjs/build 0.70.22 → 0.70.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +45 -45
- package/dist/src/index.d.ts +18 -0
- package/dist/src/utils.d.ts +12 -0
- package/package.json +20 -15
- package/dist/index.d.ts +0 -1
- package/dist/utils.d.ts +0 -3
package/dist/index.js
CHANGED
|
@@ -1,55 +1,55 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
var W5=Object.create;var{getPrototypeOf:R5,defineProperty:g1,getOwnPropertyNames:iJ,getOwnPropertyDescriptor:J5}=Object,rJ=Object.prototype.hasOwnProperty;var yW=(f,G,X)=>{X=f!=null?W5(R5(f)):{};let W=G||!f||!f.__esModule?g1(X,"default",{value:f,enumerable:!0}):X;for(let R of iJ(f))if(!rJ.call(W,R))g1(W,R,{get:()=>f[R],enumerable:!0});return W},aJ=new WeakMap,U5=(f)=>{var G=aJ.get(f),X;if(G)return G;if(G=g1({},"__esModule",{value:!0}),f&&typeof f==="object"||typeof f==="function")iJ(f).map((W)=>!rJ.call(G,W)&&g1(G,W,{get:()=>f[W],enumerable:!(X=J5(f,W))||X.enumerable}));return aJ.set(f,G),G},P=(f,G)=>()=>(G||f((G={exports:{}}).exports,G),G.exports);var V5=(f,G)=>{for(var X in G)g1(f,X,{get:G[X],enumerable:!0,configurable:!0,set:(W)=>G[X]=()=>W})};var H5=(f,G)=>()=>(f&&(G=f(f=0)),G);var sJ=import.meta.require;var dJ=P((OX,pJ)=>{(function(f,G){typeof OX==="object"&&typeof pJ!=="undefined"?G(OX):typeof define==="function"&&define.amd?define(["exports"],G):(f=typeof globalThis!=="undefined"?globalThis:f||self,G(f.setArray={}))})(OX,function(f){class G{constructor(){this._indexes={__proto__:null},this.array=[]}}function X(V){return V}function W(V,H){return X(V)._indexes[H]}function R(V,H){let Q=W(V,H);if(Q!==void 0)return Q;let{array:Y,_indexes:F}=X(V),q=Y.push(H);return F[H]=q-1}function J(V){let{array:H,_indexes:Q}=X(V);if(H.length===0)return;let Y=H.pop();Q[Y]=void 0}function U(V,H){let Q=W(V,H);if(Q===void 0)return;let{array:Y,_indexes:F}=X(V);for(let q=Q+1;q<Y.length;q++){let A=Y[q];Y[q-1]=A,F[A]--}F[H]=void 0,Y.pop()}f.SetArray=G,f.get=W,f.pop=J,f.put=R,f.remove=U,Object.defineProperty(f,"__esModule",{value:!0})})});var xW=P((jX,tJ)=>{(function(f,G){typeof jX==="object"&&typeof tJ!=="undefined"?G(jX):typeof define==="function"&&define.amd?define(["exports"],G):(f=typeof globalThis!=="undefined"?globalThis:f||self,G(f.sourcemapCodec={}))})(jX,function(f){let R=new Uint8Array(64),J=new Uint8Array(128);for(let y=0;y<64;y++){let x="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charCodeAt(y);R[y]=x,J[x]=y}function U(y,x){let N=0,l=0,Jf=0;do{let u=y.next();Jf=J[u],N|=(Jf&31)<<l,l+=5}while(Jf&32);let zf=N&1;if(N>>>=1,zf)N=-2147483648|-N;return x+N}function V(y,x,N){let l=x-N;l=l<0?-l<<1|1:l<<1;do{let Jf=l&31;if(l>>>=5,l>0)Jf|=32;y.write(R[Jf])}while(l>0);return x}function H(y,x){if(y.pos>=x)return!1;return y.peek()!==44}let Q=16384,Y=typeof TextDecoder!=="undefined"?new TextDecoder:typeof Buffer!=="undefined"?{decode(y){return Buffer.from(y.buffer,y.byteOffset,y.byteLength).toString()}}:{decode(y){let x="";for(let N=0;N<y.length;N++)x+=String.fromCharCode(y[N]);return x}};class F{constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(Q)}write(y){let{buffer:x}=this;if(x[this.pos++]=y,this.pos===Q)this.out+=Y.decode(x),this.pos=0}flush(){let{buffer:y,out:x,pos:N}=this;return N>0?x+Y.decode(y.subarray(0,N)):x}}class q{constructor(y){this.pos=0,this.buffer=y}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(y){let{buffer:x,pos:N}=this,l=x.indexOf(y,N);return l===-1?x.length:l}}let A=[];function j(y){let{length:x}=y,N=new q(y),l=[],Jf=[],zf=0;for(;N.pos<x;N.pos++){zf=U(N,zf);let u=U(N,0);if(!H(N,x)){let o=Jf.pop();o[2]=zf,o[3]=u;continue}let g=U(N,0),e=U(N,0)&1?[zf,u,0,0,g,U(N,0)]:[zf,u,0,0,g],ff=A;if(H(N,x)){ff=[];do{let o=U(N,0);ff.push(o)}while(H(N,x))}e.vars=ff,l.push(e),Jf.push(e)}return l}function b(y){let x=new F;for(let N=0;N<y.length;)N=I(y,N,x,[0]);return x.flush()}function I(y,x,N,l){let Jf=y[x],{0:zf,1:u,2:g,3:c,4:a,vars:e}=Jf;if(x>0)N.write(44);l[0]=V(N,zf,l[0]),V(N,u,0),V(N,a,0);let ff=Jf.length===6?1:0;if(V(N,ff,0),Jf.length===6)V(N,Jf[5],0);for(let o of e)V(N,o,0);for(x++;x<y.length;){let o=y[x],{0:Rf,1:Zf}=o;if(Rf>g||Rf===g&&Zf>=c)break;x=I(y,x,N,l)}return N.write(44),l[0]=V(N,g,l[0]),V(N,c,0),x}function L(y){let{length:x}=y,N=new q(y),l=[],Jf=[],zf=0,u=0,g=0,c=0,a=0,e=0,ff=0,o=0;do{let Rf=N.indexOf(";"),Zf=0;for(;N.pos<Rf;N.pos++){if(Zf=U(N,Zf),!H(N,Rf)){let kf=Jf.pop();kf[2]=zf,kf[3]=Zf;continue}let vf=U(N,0),JG=vf&1,sf=vf&2,tf=vf&4,ZG=null,UG=A,_f;if(JG){let kf=U(N,u);g=U(N,u===kf?g:0),u=kf,_f=[zf,Zf,0,0,kf,g]}else _f=[zf,Zf,0,0];if(_f.isScope=!!tf,sf){let kf=c,qG=a;c=U(N,c);let cG=kf===c;a=U(N,cG?a:0),e=U(N,cG&&qG===a?e:0),ZG=[c,a,e]}if(_f.callsite=ZG,H(N,Rf)){UG=[];do{ff=zf,o=Zf;let kf=U(N,0),qG;if(kf<-1){qG=[[U(N,0)]];for(let cG=-1;cG>kf;cG--){let gW=ff;ff=U(N,ff),o=U(N,ff===gW?o:0);let k1=U(N,0);qG.push([k1,ff,o])}}else qG=[[kf]];UG.push(qG)}while(H(N,Rf))}_f.bindings=UG,l.push(_f),Jf.push(_f)}zf++,N.pos=Rf+1}while(N.pos<x);return l}function E(y){if(y.length===0)return"";let x=new F;for(let N=0;N<y.length;)N=Xf(y,N,x,[0,0,0,0,0,0,0]);return x.flush()}function Xf(y,x,N,l){let Jf=y[x],{0:zf,1:u,2:g,3:c,isScope:a,callsite:e,bindings:ff}=Jf;if(l[0]<zf)s(N,l[0],zf),l[0]=zf,l[1]=0;else if(x>0)N.write(44);l[1]=V(N,Jf[1],l[1]);let o=(Jf.length===6?1:0)|(e?2:0)|(a?4:0);if(V(N,o,0),Jf.length===6){let{4:Rf,5:Zf}=Jf;if(Rf!==l[2])l[3]=0;l[2]=V(N,Rf,l[2]),l[3]=V(N,Zf,l[3])}if(e){let{0:Rf,1:Zf,2:vf}=Jf.callsite;if(Rf!==l[4])l[5]=0,l[6]=0;else if(Zf!==l[5])l[6]=0;l[4]=V(N,Rf,l[4]),l[5]=V(N,Zf,l[5]),l[6]=V(N,vf,l[6])}if(ff)for(let Rf of ff){if(Rf.length>1)V(N,-Rf.length,0);let Zf=Rf[0][0];V(N,Zf,0);let vf=zf,JG=u;for(let sf=1;sf<Rf.length;sf++){let tf=Rf[sf];vf=V(N,tf[1],vf),JG=V(N,tf[2],JG),V(N,tf[0],0)}}for(x++;x<y.length;){let Rf=y[x],{0:Zf,1:vf}=Rf;if(Zf>g||Zf===g&&vf>=c)break;x=Xf(y,x,N,l)}if(l[0]<g)s(N,l[0],g),l[0]=g,l[1]=0;else N.write(44);return l[1]=V(N,c,l[1]),x}function s(y,x,N){do y.write(59);while(++x<N)}function Wf(y){let{length:x}=y,N=new q(y),l=[],Jf=0,zf=0,u=0,g=0,c=0;do{let a=N.indexOf(";"),e=[],ff=!0,o=0;Jf=0;while(N.pos<a){let Rf;if(Jf=U(N,Jf),Jf<o)ff=!1;if(o=Jf,H(N,a))if(zf=U(N,zf),u=U(N,u),g=U(N,g),H(N,a))c=U(N,c),Rf=[Jf,zf,u,g,c];else Rf=[Jf,zf,u,g];else Rf=[Jf];e.push(Rf),N.pos++}if(!ff)Kf(e);l.push(e),N.pos=a+1}while(N.pos<=x);return l}function Kf(y){y.sort(bf)}function bf(y,x){return y[0]-x[0]}function wf(y){let x=new F,N=0,l=0,Jf=0,zf=0;for(let u=0;u<y.length;u++){let g=y[u];if(u>0)x.write(59);if(g.length===0)continue;let c=0;for(let a=0;a<g.length;a++){let e=g[a];if(a>0)x.write(44);if(c=V(x,e[0],c),e.length===1)continue;if(N=V(x,e[1],N),l=V(x,e[2],l),Jf=V(x,e[3],Jf),e.length===4)continue;zf=V(x,e[4],zf)}}return x.flush()}f.decode=Wf,f.decodeGeneratedRanges=L,f.decodeOriginalScopes=j,f.encode=wf,f.encodeGeneratedRanges=E,f.encodeOriginalScopes=b,Object.defineProperty(f,"__esModule",{value:!0})})});var nJ=P((mW,lW)=>{(function(f,G){typeof mW==="object"&&typeof lW!=="undefined"?lW.exports=G():typeof define==="function"&&define.amd?define(G):(f=typeof globalThis!=="undefined"?globalThis:f||self,f.resolveURI=G())})(mW,function(){let f=/^[\w+.-]+:\/\//,G=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,X=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;function W(I){return f.test(I)}function R(I){return I.startsWith("//")}function J(I){return I.startsWith("/")}function U(I){return I.startsWith("file:")}function V(I){return/^[.?#]/.test(I)}function H(I){let L=G.exec(I);return Y(L[1],L[2]||"",L[3],L[4]||"",L[5]||"/",L[6]||"",L[7]||"")}function Q(I){let L=X.exec(I),E=L[2];return Y("file:","",L[1]||"","",J(E)?E:"/"+E,L[3]||"",L[4]||"")}function Y(I,L,E,Xf,s,Wf,Kf){return{scheme:I,user:L,host:E,port:Xf,path:s,query:Wf,hash:Kf,type:7}}function F(I){if(R(I)){let E=H("http:"+I);return E.scheme="",E.type=6,E}if(J(I)){let E=H("http://foo.com"+I);return E.scheme="",E.host="",E.type=5,E}if(U(I))return Q(I);if(W(I))return H(I);let L=H("http://foo.com/"+I);return L.scheme="",L.host="",L.type=I?I.startsWith("?")?3:I.startsWith("#")?2:4:1,L}function q(I){if(I.endsWith("/.."))return I;let L=I.lastIndexOf("/");return I.slice(0,L+1)}function A(I,L){if(j(L,L.type),I.path==="/")I.path=L.path;else I.path=q(L.path)+I.path}function j(I,L){let E=L<=4,Xf=I.path.split("/"),s=1,Wf=0,Kf=!1;for(let wf=1;wf<Xf.length;wf++){let y=Xf[wf];if(!y){Kf=!0;continue}if(Kf=!1,y===".")continue;if(y===".."){if(Wf)Kf=!0,Wf--,s--;else if(E)Xf[s++]=y;continue}Xf[s++]=y,Wf++}let bf="";for(let wf=1;wf<s;wf++)bf+="/"+Xf[wf];if(!bf||Kf&&!bf.endsWith("/.."))bf+="/";I.path=bf}function b(I,L){if(!I&&!L)return"";let E=F(I),Xf=E.type;if(L&&Xf!==7){let Wf=F(L),Kf=Wf.type;switch(Xf){case 1:E.hash=Wf.hash;case 2:E.query=Wf.query;case 3:case 4:A(E,Wf);case 5:E.user=Wf.user,E.host=Wf.host,E.port=Wf.port;case 6:E.scheme=Wf.scheme}if(Kf>Xf)Xf=Kf}j(E,Xf);let s=E.query+E.hash;switch(Xf){case 2:case 3:return s;case 4:{let Wf=E.path.slice(1);if(!Wf)return s||".";if(V(L||I)&&!V(Wf))return"./"+Wf+s;return Wf+s}case 5:return E.path+s;default:return E.scheme+"//"+E.user+E.host+E.port+E.path+s}}return b})});var cW=P((PX,oJ)=>{(function(f,G){typeof PX==="object"&&typeof oJ!=="undefined"?G(PX,xW(),nJ()):typeof define==="function"&&define.amd?define(["exports","@jridgewell/sourcemap-codec","@jridgewell/resolve-uri"],G):(f=typeof globalThis!=="undefined"?globalThis:f||self,G(f.traceMapping={},f.sourcemapCodec,f.resolveURI))})(PX,function(f,G,X){function W(D,w){if(w&&!w.endsWith("/"))w+="/";return X(D,w)}function R(D){if(!D)return"";let w=D.lastIndexOf("/");return D.slice(0,w+1)}let J=0,U=1,V=2,H=3,Q=4,Y=1,F=2;function q(D,w){let k=A(D,0);if(k===D.length)return D;if(!w)D=D.slice();for(let m=k;m<D.length;m=A(D,m+1))D[m]=b(D[m],w);return D}function A(D,w){for(let k=w;k<D.length;k++)if(!j(D[k]))return k;return D.length}function j(D){for(let w=1;w<D.length;w++)if(D[w][J]<D[w-1][J])return!1;return!0}function b(D,w){if(!w)D=D.slice();return D.sort(I)}function I(D,w){return D[J]-w[J]}let L=!1;function E(D,w,k,m){while(k<=m){let Uf=k+(m-k>>1),d=D[Uf][J]-w;if(d===0)return L=!0,Uf;if(d<0)k=Uf+1;else m=Uf-1}return L=!1,k-1}function Xf(D,w,k){for(let m=k+1;m<D.length;k=m++)if(D[m][J]!==w)break;return k}function s(D,w,k){for(let m=k-1;m>=0;k=m--)if(D[m][J]!==w)break;return k}function Wf(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}function Kf(D,w,k,m){let{lastKey:Uf,lastNeedle:d,lastIndex:Sf}=k,qf=0,Yf=D.length-1;if(m===Uf){if(w===d)return L=Sf!==-1&&D[Sf][J]===w,Sf;if(w>=d)qf=Sf===-1?0:Sf;else Yf=Sf}return k.lastKey=m,k.lastNeedle=w,k.lastIndex=E(D,w,qf,Yf)}function bf(D,w){let k=w.map(y);for(let m=0;m<D.length;m++){let Uf=D[m];for(let d=0;d<Uf.length;d++){let Sf=Uf[d];if(Sf.length===1)continue;let qf=Sf[U],Yf=Sf[V],Of=Sf[H],cf=k[qf],Df=cf[Yf]||(cf[Yf]=[]),Ef=w[qf],pf=Xf(Df,Of,Kf(Df,Of,Ef,Yf));Ef.lastIndex=++pf,wf(Df,pf,[Of,m,Sf[J]])}}return k}function wf(D,w,k){for(let m=D.length;m>w;m--)D[m]=D[m-1];D[w]=k}function y(){return{__proto__:null}}let x=function(D,w){let k=N(D);if(!("sections"in k))return new ff(k,w);let m=[],Uf=[],d=[],Sf=[],qf=[];l(k,w,m,Uf,d,Sf,qf,0,0,1/0,1/0);let Yf={version:3,file:k.file,names:Sf,sources:Uf,sourcesContent:d,mappings:m,ignoreList:qf};return qG(Yf)};function N(D){return typeof D==="string"?JSON.parse(D):D}function l(D,w,k,m,Uf,d,Sf,qf,Yf,Of,cf){let{sections:Df}=D;for(let Ef=0;Ef<Df.length;Ef++){let{map:pf,offset:YG}=Df[Ef],aG=Of,Z1=cf;if(Ef+1<Df.length){let Y1=Df[Ef+1].offset;if(aG=Math.min(Of,qf+Y1.line),aG===Of)Z1=Math.min(cf,Yf+Y1.column);else if(aG<Of)Z1=Yf+Y1.column}Jf(pf,w,k,m,Uf,d,Sf,qf+YG.line,Yf+YG.column,aG,Z1)}}function Jf(D,w,k,m,Uf,d,Sf,qf,Yf,Of,cf){let Df=N(D);if("sections"in Df)return l(...arguments);let Ef=new ff(Df,w),pf=m.length,YG=d.length,aG=Zf(Ef),{resolvedSources:Z1,sourcesContent:Y1,ignoreList:_W}=Ef;if(zf(m,Z1),zf(d,Ef.names),Y1)zf(Uf,Y1);else for(let nf=0;nf<Z1.length;nf++)Uf.push(null);if(_W)for(let nf=0;nf<_W.length;nf++)Sf.push(_W[nf]+pf);for(let nf=0;nf<aG.length;nf++){let uW=qf+nf;if(uW>Of)return;let yJ=u(k,uW),X5=nf===0?Yf:0,xJ=aG[nf];for(let hW=0;hW<xJ.length;hW++){let iG=xJ[hW],AX=X5+iG[J];if(uW===Of&&AX>=cf)return;if(iG.length===1){yJ.push([AX]);continue}let mJ=pf+iG[U],lJ=iG[V],cJ=iG[H];yJ.push(iG.length===4?[AX,mJ,lJ,cJ]:[AX,mJ,lJ,cJ,YG+iG[Q]])}}}function zf(D,w){for(let k=0;k<w.length;k++)D.push(w[k])}function u(D,w){for(let k=D.length;k<=w;k++)D[k]=[];return D[w]}let g="`line` must be greater than 0 (lines start at line 1)",c="`column` must be greater than or equal to 0 (columns start at column 0)",a=-1,e=1;class ff{constructor(D,w){let k=typeof D==="string";if(!k&&D._decodedMemo)return D;let m=k?JSON.parse(D):D,{version:Uf,file:d,names:Sf,sourceRoot:qf,sources:Yf,sourcesContent:Of}=m;this.version=Uf,this.file=d,this.names=Sf||[],this.sourceRoot=qf,this.sources=Yf,this.sourcesContent=Of,this.ignoreList=m.ignoreList||m.x_google_ignoreList||void 0;let cf=W(qf||"",R(w));this.resolvedSources=Yf.map((Ef)=>W(Ef||"",cf));let{mappings:Df}=m;if(typeof Df==="string")this._encoded=Df,this._decoded=void 0;else this._encoded=void 0,this._decoded=q(Df,k);this._decodedMemo=Wf(),this._bySources=void 0,this._bySourceMemos=void 0}}function o(D){return D}function Rf(D){var w,k;return(w=(k=o(D))._encoded)!==null&&w!==void 0?w:k._encoded=G.encode(o(D)._decoded)}function Zf(D){var w;return(w=o(D))._decoded||(w._decoded=G.decode(o(D)._encoded))}function vf(D,w,k){let m=Zf(D);if(w>=m.length)return null;let Uf=m[w],d=qX(Uf,o(D)._decodedMemo,w,k,e);return d===-1?null:Uf[d]}function JG(D,w){let{line:k,column:m,bias:Uf}=w;if(k--,k<0)throw new Error(g);if(m<0)throw new Error(c);let d=Zf(D);if(k>=d.length)return CX(null,null,null,null);let Sf=d[k],qf=qX(Sf,o(D)._decodedMemo,k,m,Uf||e);if(qf===-1)return CX(null,null,null,null);let Yf=Sf[qf];if(Yf.length===1)return CX(null,null,null,null);let{names:Of,resolvedSources:cf}=D;return CX(cf[Yf[U]],Yf[V]+1,Yf[H],Yf.length===5?Of[Yf[Q]]:null)}function sf(D,w){let{source:k,line:m,column:Uf,bias:d}=w;return hJ(D,k,m,Uf,d||e,!1)}function tf(D,w){let{source:k,line:m,column:Uf,bias:d}=w;return hJ(D,k,m,Uf,d||a,!0)}function ZG(D,w){let k=Zf(D),{names:m,resolvedSources:Uf}=D;for(let d=0;d<k.length;d++){let Sf=k[d];for(let qf=0;qf<Sf.length;qf++){let Yf=Sf[qf],Of=d+1,cf=Yf[0],Df=null,Ef=null,pf=null,YG=null;if(Yf.length!==1)Df=Uf[Yf[1]],Ef=Yf[2]+1,pf=Yf[3];if(Yf.length===5)YG=m[Yf[4]];w({generatedLine:Of,generatedColumn:cf,source:Df,originalLine:Ef,originalColumn:pf,name:YG})}}}function UG(D,w){let{sources:k,resolvedSources:m}=D,Uf=k.indexOf(w);if(Uf===-1)Uf=m.indexOf(w);return Uf}function _f(D,w){let{sourcesContent:k}=D;if(k==null)return null;let m=UG(D,w);return m===-1?null:k[m]}function kf(D,w){let{ignoreList:k}=D;if(k==null)return!1;let m=UG(D,w);return m===-1?!1:k.includes(m)}function qG(D,w){let k=new ff(k1(D,[]),w);return o(k)._decoded=D.mappings,k}function cG(D){return k1(D,Zf(D))}function gW(D){return k1(D,Rf(D))}function k1(D,w){return{version:D.version,file:D.file,names:D.names,sourceRoot:D.sourceRoot,sources:D.sources,sourcesContent:D.sourcesContent,mappings:w,ignoreList:D.ignoreList||D.x_google_ignoreList}}function CX(D,w,k,m){return{source:D,line:w,column:k,name:m}}function v1(D,w){return{line:D,column:w}}function qX(D,w,k,m,Uf){let d=Kf(D,m,w,k);if(L)d=(Uf===a?Xf:s)(D,m,d);else if(Uf===a)d++;if(d===-1||d===D.length)return-1;return d}function G5(D,w,k,m,Uf){let d=qX(D,w,k,m,e);if(!L&&Uf===a)d++;if(d===-1||d===D.length)return[];let Sf=L?m:D[d][J];if(!L)d=s(D,Sf,d);let qf=Xf(D,Sf,d),Yf=[];for(;d<=qf;d++){let Of=D[d];Yf.push(v1(Of[Y]+1,Of[F]))}return Yf}function hJ(D,w,k,m,Uf,d){var Sf;if(k--,k<0)throw new Error(g);if(m<0)throw new Error(c);let{sources:qf,resolvedSources:Yf}=D,Of=qf.indexOf(w);if(Of===-1)Of=Yf.indexOf(w);if(Of===-1)return d?[]:v1(null,null);let Df=((Sf=o(D))._bySources||(Sf._bySources=bf(Zf(D),o(D)._bySourceMemos=qf.map(Wf))))[Of][k];if(Df==null)return d?[]:v1(null,null);let Ef=o(D)._bySourceMemos[Of];if(d)return G5(Df,Ef,k,m,Uf);let pf=qX(Df,Ef,k,m,Uf);if(pf===-1)return v1(null,null);let YG=Df[pf];return v1(YG[Y]+1,YG[F])}f.AnyMap=x,f.GREATEST_LOWER_BOUND=e,f.LEAST_UPPER_BOUND=a,f.TraceMap=ff,f.allGeneratedPositionsFor=tf,f.decodedMap=cG,f.decodedMappings=Zf,f.eachMapping=ZG,f.encodedMap=gW,f.encodedMappings=Rf,f.generatedPositionFor=sf,f.isIgnored=kf,f.originalPositionFor=JG,f.presortedDecodedMap=qG,f.sourceContentFor=_f,f.traceSegment=vf})});var fU=P((DX,eJ)=>{(function(f,G){typeof DX==="object"&&typeof eJ!=="undefined"?G(DX,dJ(),xW(),cW()):typeof define==="function"&&define.amd?define(["exports","@jridgewell/set-array","@jridgewell/sourcemap-codec","@jridgewell/trace-mapping"],G):(f=typeof globalThis!=="undefined"?globalThis:f||self,G(f.genMapping={},f.setArray,f.sourcemapCodec,f.traceMapping))})(DX,function(f,G,X,W){class Y{constructor({file:u,sourceRoot:g}={}){this._names=new G.SetArray,this._sources=new G.SetArray,this._sourcesContent=[],this._mappings=[],this.file=u,this.sourceRoot=g,this._ignoreList=new G.SetArray}}function F(u){return u}function q(u,g,c,a,e,ff,o,Rf){return Kf(!1,u,g,c,a,e,ff,o,Rf)}function A(u,g){return zf(!1,u,g)}let j=(u,g,c,a,e,ff,o,Rf)=>{return Kf(!0,u,g,c,a,e,ff,o,Rf)},b=(u,g)=>{return zf(!0,u,g)};function I(u,g,c){let{_sources:a,_sourcesContent:e}=F(u),ff=G.put(a,g);e[ff]=c}function L(u,g,c=!0){let{_sources:a,_sourcesContent:e,_ignoreList:ff}=F(u),o=G.put(a,g);if(o===e.length)e[o]=null;if(c)G.put(ff,o);else G.remove(ff,o)}function E(u){let{_mappings:g,_sources:c,_sourcesContent:a,_names:e,_ignoreList:ff}=F(u);return x(g),{version:3,file:u.file||void 0,names:e.array,sourceRoot:u.sourceRoot||void 0,sources:c.array,sourcesContent:a,mappings:g,ignoreList:ff.array}}function Xf(u){let g=E(u);return Object.assign(Object.assign({},g),{mappings:X.encode(g.mappings)})}function s(u){let g=new W.TraceMap(u),c=new Y({file:g.file,sourceRoot:g.sourceRoot});if(N(F(c)._names,g.names),N(F(c)._sources,g.sources),F(c)._sourcesContent=g.sourcesContent||g.sources.map(()=>null),F(c)._mappings=W.decodedMappings(g),g.ignoreList)N(F(c)._ignoreList,g.ignoreList);return c}function Wf(u){let g=[],{_mappings:c,_sources:a,_names:e}=F(u);for(let ff=0;ff<c.length;ff++){let o=c[ff];for(let Rf=0;Rf<o.length;Rf++){let Zf=o[Rf],vf={line:ff+1,column:Zf[0]},JG=void 0,sf=void 0,tf=void 0;if(Zf.length!==1){if(JG=a.array[Zf[1]],sf={line:Zf[2]+1,column:Zf[3]},Zf.length===5)tf=e.array[Zf[4]]}g.push({generated:vf,source:JG,original:sf,name:tf})}}return g}function Kf(u,g,c,a,e,ff,o,Rf,Zf){let{_mappings:vf,_sources:JG,_sourcesContent:sf,_names:tf}=F(g),ZG=bf(vf,c),UG=wf(ZG,a);if(!e){if(u&&l(ZG,UG))return;return y(ZG,UG,[a])}let _f=G.put(JG,e),kf=Rf?G.put(tf,Rf):-1;if(_f===sf.length)sf[_f]=Zf!==null&&Zf!==void 0?Zf:null;if(u&&Jf(ZG,UG,_f,ff,o,kf))return;return y(ZG,UG,Rf?[a,_f,ff,o,kf]:[a,_f,ff,o])}function bf(u,g){for(let c=u.length;c<=g;c++)u[c]=[];return u[g]}function wf(u,g){let c=u.length;for(let a=c-1;a>=0;c=a--){let e=u[a];if(g>=e[0])break}return c}function y(u,g,c){for(let a=u.length;a>g;a--)u[a]=u[a-1];u[g]=c}function x(u){let{length:g}=u,c=g;for(let a=c-1;a>=0;c=a,a--)if(u[a].length>0)break;if(c<g)u.length=c}function N(u,g){for(let c=0;c<g.length;c++)G.put(u,g[c])}function l(u,g){if(g===0)return!0;return u[g-1].length===1}function Jf(u,g,c,a,e,ff){if(g===0)return!1;let o=u[g-1];if(o.length===1)return!1;return c===o[1]&&a===o[2]&&e===o[3]&&ff===(o.length===5?o[4]:-1)}function zf(u,g,c){let{generated:a,source:e,original:ff,name:o,content:Rf}=c;if(!e)return Kf(u,g,a.line-1,a.column,null,null,null,null,null);return Kf(u,g,a.line-1,a.column,e,ff.line-1,ff.column,o,Rf)}f.GenMapping=Y,f.addMapping=A,f.addSegment=q,f.allMappings=Wf,f.fromMap=s,f.maybeAddMapping=b,f.maybeAddSegment=j,f.setIgnore=L,f.setSourceContent=I,f.toDecodedMap=E,f.toEncodedMap=Xf,Object.defineProperty(f,"__esModule",{value:!0})})});var RU=P((XU)=>{Object.defineProperty(XU,"__esModule",{value:!0});XU.default=void 0;var EG=fU(),aW=cW();class GU{constructor(f,G){var X;this._map=void 0,this._rawMappings=void 0,this._sourceFileName=void 0,this._lastGenLine=0,this._lastSourceLine=0,this._lastSourceColumn=0,this._inputMap=void 0;let W=this._map=new EG.GenMapping({sourceRoot:f.sourceRoot});if(this._sourceFileName=(X=f.sourceFileName)==null?void 0:X.replace(/\\/g,"/"),this._rawMappings=void 0,f.inputSourceMap){this._inputMap=new aW.TraceMap(f.inputSourceMap);let J=this._inputMap.resolvedSources;if(J.length)for(let U=0;U<J.length;U++){var R;EG.setSourceContent(W,J[U],(R=this._inputMap.sourcesContent)==null?void 0:R[U])}}if(typeof G==="string"&&!f.inputSourceMap)EG.setSourceContent(W,this._sourceFileName,G);else if(typeof G==="object")for(let J of Object.keys(G))EG.setSourceContent(W,J.replace(/\\/g,"/"),G[J])}get(){return EG.toEncodedMap(this._map)}getDecoded(){return EG.toDecodedMap(this._map)}getRawMappings(){return this._rawMappings||(this._rawMappings=EG.allMappings(this._map))}mark(f,G,X,W,R,J){var U;this._rawMappings=void 0;let V;if(G!=null)if(this._inputMap){if(V=aW.originalPositionFor(this._inputMap,{line:G,column:X}),!V.name&&R){let H=aW.originalPositionFor(this._inputMap,R);if(H.name)W=H.name}}else V={source:(J==null?void 0:J.replace(/\\/g,"/"))||this._sourceFileName,line:G,column:X};EG.maybeAddMapping(this._map,{name:W,generated:f,source:(U=V)==null?void 0:U.source,original:V})}}XU.default=GU});var HU=P((UU)=>{Object.defineProperty(UU,"__esModule",{value:!0});UU.default=void 0;class JU{constructor(f,G){this._map=null,this._buf="",this._str="",this._appendCount=0,this._last=0,this._queue=[],this._queueCursor=0,this._canMarkIdName=!0,this._indentChar="",this._fastIndentations=[],this._position={line:1,column:0},this._sourcePosition={identifierName:void 0,identifierNamePos:void 0,line:void 0,column:void 0,filename:void 0},this._map=f,this._indentChar=G;for(let X=0;X<64;X++)this._fastIndentations.push(G.repeat(X));this._allocQueue()}_allocQueue(){let f=this._queue;for(let G=0;G<16;G++)f.push({char:0,repeat:1,line:void 0,column:void 0,identifierName:void 0,identifierNamePos:void 0,filename:""})}_pushQueue(f,G,X,W,R){let J=this._queueCursor;if(J===this._queue.length)this._allocQueue();let U=this._queue[J];U.char=f,U.repeat=G,U.line=X,U.column=W,U.filename=R,this._queueCursor++}_popQueue(){if(this._queueCursor===0)throw new Error("Cannot pop from empty queue");return this._queue[--this._queueCursor]}get(){this._flush();let f=this._map,G={code:(this._buf+this._str).trimRight(),decodedMap:f==null?void 0:f.getDecoded(),get __mergedMap(){return this.map},get map(){let X=f?f.get():null;return G.map=X,X},set map(X){Object.defineProperty(G,"map",{value:X,writable:!0})},get rawMappings(){let X=f==null?void 0:f.getRawMappings();return G.rawMappings=X,X},set rawMappings(X){Object.defineProperty(G,"rawMappings",{value:X,writable:!0})}};return G}append(f,G){this._flush(),this._append(f,this._sourcePosition,G)}appendChar(f){this._flush(),this._appendChar(f,1,this._sourcePosition)}queue(f){if(f===10)while(this._queueCursor!==0){let X=this._queue[this._queueCursor-1].char;if(X!==32&&X!==9)break;this._queueCursor--}let G=this._sourcePosition;this._pushQueue(f,1,G.line,G.column,G.filename)}queueIndentation(f){if(f===0)return;this._pushQueue(-1,f,void 0,void 0,void 0)}_flush(){let f=this._queueCursor,G=this._queue;for(let X=0;X<f;X++){let W=G[X];this._appendChar(W.char,W.repeat,W)}this._queueCursor=0}_appendChar(f,G,X){if(this._last=f,f===-1){let W=this._fastIndentations[G];if(W!==void 0)this._str+=W;else this._str+=G>1?this._indentChar.repeat(G):this._indentChar}else this._str+=G>1?String.fromCharCode(f).repeat(G):String.fromCharCode(f);if(f!==10)this._mark(X.line,X.column,X.identifierName,X.identifierNamePos,X.filename),this._position.column+=G;else this._position.line++,this._position.column=0;if(this._canMarkIdName)X.identifierName=void 0,X.identifierNamePos=void 0}_append(f,G,X){let W=f.length,R=this._position;if(this._last=f.charCodeAt(W-1),++this._appendCount>4096)+this._str,this._buf+=this._str,this._str=f,this._appendCount=0;else this._str+=f;if(!X&&!this._map){R.column+=W;return}let{column:J,identifierName:U,identifierNamePos:V,filename:H}=G,Q=G.line;if((U!=null||V!=null)&&this._canMarkIdName)G.identifierName=void 0,G.identifierNamePos=void 0;let Y=f.indexOf(`
|
|
3
|
-
`),
|
|
4
|
-
`,
|
|
5
|
-
${
|
|
6
|
-
`)}}});var Tf=P((BU)=>{Object.defineProperty(BU,"__esModule",{value:!0});BU.isAccessor=LB;BU.isAnyTypeAnnotation=pZ;BU.isArgumentPlaceholder=j3;BU.isArrayExpression=M5;BU.isArrayPattern=zZ;BU.isArrayTypeAnnotation=dZ;BU.isArrowFunctionExpression=BZ;BU.isAssignmentExpression=K5;BU.isAssignmentPattern=YZ;BU.isAwaitExpression=_Z;BU.isBigIntLiteral=hZ;BU.isBinary=oz;BU.isBinaryExpression=S5;BU.isBindExpression=P3;BU.isBlock=GB;BU.isBlockParent=fB;BU.isBlockStatement=q5;BU.isBooleanLiteral=m5;BU.isBooleanLiteralTypeAnnotation=nZ;BU.isBooleanTypeAnnotation=tZ;BU.isBreakStatement=A5;BU.isCallExpression=O5;BU.isCatchClause=j5;BU.isClass=IB;BU.isClassAccessorProperty=cZ;BU.isClassBody=MZ;BU.isClassDeclaration=SZ;BU.isClassExpression=KZ;BU.isClassImplements=eZ;BU.isClassMethod=NZ;BU.isClassPrivateMethod=iZ;BU.isClassPrivateProperty=aZ;BU.isClassProperty=lZ;BU.isCompletionStatement=RB;BU.isConditional=JB;BU.isConditionalExpression=P5;BU.isContinueStatement=D5;BU.isDebuggerStatement=I5;BU.isDecimalLiteral=E3;BU.isDeclaration=MB;BU.isDeclareClass=fY;BU.isDeclareExportAllDeclaration=QY;BU.isDeclareExportDeclaration=HY;BU.isDeclareFunction=GY;BU.isDeclareInterface=XY;BU.isDeclareModule=WY;BU.isDeclareModuleExports=RY;BU.isDeclareOpaqueType=UY;BU.isDeclareTypeAlias=JY;BU.isDeclareVariable=VY;BU.isDeclaredPredicate=ZY;BU.isDecorator=I3;BU.isDirective=$5;BU.isDirectiveLiteral=C5;BU.isDoExpression=T3;BU.isDoWhileStatement=T5;BU.isEmptyStatement=N5;BU.isEmptyTypeAnnotation=AY;BU.isEnumBody=_B;BU.isEnumBooleanBody=dY;BU.isEnumBooleanMember=eY;BU.isEnumDeclaration=pY;BU.isEnumDefaultedMember=X3;BU.isEnumMember=uB;BU.isEnumNumberBody=tY;BU.isEnumNumberMember=f3;BU.isEnumStringBody=nY;BU.isEnumStringMember=G3;BU.isEnumSymbolBody=oY;BU.isExistsTypeAnnotation=YY;BU.isExportAllDeclaration=FZ;BU.isExportDeclaration=TB;BU.isExportDefaultDeclaration=$Z;BU.isExportDefaultSpecifier=N3;BU.isExportNamedDeclaration=CZ;BU.isExportNamespaceSpecifier=yZ;BU.isExportSpecifier=qZ;BU.isExpression=nz;BU.isExpressionStatement=L5;BU.isExpressionWrapper=HB;BU.isFile=b5;BU.isFlow=EB;BU.isFlowBaseAnnotation=kB;BU.isFlowDeclaration=vB;BU.isFlowPredicate=gB;BU.isFlowType=wB;BU.isFor=QB;BU.isForInStatement=E5;BU.isForOfStatement=AZ;BU.isForStatement=w5;BU.isForXStatement=ZB;BU.isFunction=YB;BU.isFunctionDeclaration=k5;BU.isFunctionExpression=v5;BU.isFunctionParent=zB;BU.isFunctionTypeAnnotation=zY;BU.isFunctionTypeParam=BY;BU.isGenericTypeAnnotation=MY;BU.isIdentifier=g5;BU.isIfStatement=_5;BU.isImmutable=CB;BU.isImport=uZ;BU.isImportAttribute=D3;BU.isImportDeclaration=OZ;BU.isImportDefaultSpecifier=jZ;BU.isImportExpression=IZ;BU.isImportNamespaceSpecifier=PZ;BU.isImportOrExportDeclaration=zU;BU.isImportSpecifier=DZ;BU.isIndexedAccessType=W3;BU.isInferredPredicate=KY;BU.isInterfaceDeclaration=FY;BU.isInterfaceExtends=SY;BU.isInterfaceTypeAnnotation=$Y;BU.isInterpreterDirective=F5;BU.isIntersectionTypeAnnotation=CY;BU.isJSX=hB;BU.isJSXAttribute=J3;BU.isJSXClosingElement=U3;BU.isJSXClosingFragment=C3;BU.isJSXElement=V3;BU.isJSXEmptyExpression=H3;BU.isJSXExpressionContainer=Q3;BU.isJSXFragment=F3;BU.isJSXIdentifier=Y3;BU.isJSXMemberExpression=z3;BU.isJSXNamespacedName=B3;BU.isJSXOpeningElement=M3;BU.isJSXOpeningFragment=$3;BU.isJSXSpreadAttribute=K3;BU.isJSXSpreadChild=Z3;BU.isJSXText=S3;BU.isLVal=SB;BU.isLabeledStatement=u5;BU.isLiteral=$B;BU.isLogicalExpression=c5;BU.isLoop=UB;BU.isMemberExpression=a5;BU.isMetaProperty=TZ;BU.isMethod=AB;BU.isMiscellaneous=yB;BU.isMixedTypeAnnotation=qY;BU.isModuleDeclaration=pB;BU.isModuleExpression=w3;BU.isModuleSpecifier=NB;BU.isNewExpression=i5;BU.isNoop=q3;BU.isNullLiteral=x5;BU.isNullLiteralTypeAnnotation=oZ;BU.isNullableTypeAnnotation=OY;BU.isNumberLiteral=aB;BU.isNumberLiteralTypeAnnotation=jY;BU.isNumberTypeAnnotation=PY;BU.isNumericLiteral=y5;BU.isObjectExpression=s5;BU.isObjectMember=OB;BU.isObjectMethod=p5;BU.isObjectPattern=LZ;BU.isObjectProperty=d5;BU.isObjectTypeAnnotation=DY;BU.isObjectTypeCallProperty=TY;BU.isObjectTypeIndexer=NY;BU.isObjectTypeInternalSlot=IY;BU.isObjectTypeProperty=LY;BU.isObjectTypeSpreadProperty=bY;BU.isOpaqueType=EY;BU.isOptionalCallExpression=mZ;BU.isOptionalIndexedAccessType=R3;BU.isOptionalMemberExpression=xZ;BU.isParenthesizedExpression=e5;BU.isPattern=DB;BU.isPatternLike=KB;BU.isPipelineBareFunction=g3;BU.isPipelinePrimaryTopicReference=_3;BU.isPipelineTopicExpression=v3;BU.isPlaceholder=A3;BU.isPrivate=bB;BU.isPrivateName=rZ;BU.isProgram=r5;BU.isProperty=jB;BU.isPureish=BB;BU.isQualifiedTypeIdentifier=wY;BU.isRecordExpression=L3;BU.isRegExpLiteral=l5;BU.isRegexLiteral=iB;BU.isRestElement=t5;BU.isRestProperty=rB;BU.isReturnStatement=n5;BU.isScopable=ez;BU.isSequenceExpression=o5;BU.isSpreadElement=bZ;BU.isSpreadProperty=sB;BU.isStandardized=tz;BU.isStatement=XB;BU.isStaticBlock=sZ;BU.isStringLiteral=h5;BU.isStringLiteralTypeAnnotation=kY;BU.isStringTypeAnnotation=vY;BU.isSuper=EZ;BU.isSwitchCase=fZ;BU.isSwitchStatement=GZ;BU.isSymbolTypeAnnotation=gY;BU.isTSAnyKeyword=r3;BU.isTSArrayType=zz;BU.isTSAsExpression=wz;BU.isTSBaseType=cB;BU.isTSBigIntKeyword=p3;BU.isTSBooleanKeyword=s3;BU.isTSCallSignatureDeclaration=m3;BU.isTSConditionalType=Cz;BU.isTSConstructSignatureDeclaration=l3;BU.isTSConstructorType=Vz;BU.isTSDeclareFunction=h3;BU.isTSDeclareMethod=y3;BU.isTSEntityName=FB;BU.isTSEnumBody=gz;BU.isTSEnumDeclaration=_z;BU.isTSEnumMember=uz;BU.isTSExportAssignment=az;BU.isTSExpressionWithTypeArguments=Tz;BU.isTSExternalModuleReference=lz;BU.isTSFunctionType=Uz;BU.isTSImportEqualsDeclaration=mz;BU.isTSImportType=xz;BU.isTSIndexSignature=i3;BU.isTSIndexedAccessType=jz;BU.isTSInferType=qz;BU.isTSInstantiationExpression=Ez;BU.isTSInterfaceBody=Lz;BU.isTSInterfaceDeclaration=Nz;BU.isTSIntersectionType=$z;BU.isTSIntrinsicKeyword=d3;BU.isTSLiteralType=Iz;BU.isTSMappedType=Pz;BU.isTSMethodSignature=a3;BU.isTSModuleBlock=yz;BU.isTSModuleDeclaration=hz;BU.isTSNamedTupleMember=Sz;BU.isTSNamespaceExportDeclaration=iz;BU.isTSNeverKeyword=t3;BU.isTSNonNullExpression=cz;BU.isTSNullKeyword=n3;BU.isTSNumberKeyword=o3;BU.isTSObjectKeyword=e3;BU.isTSOptionalType=Mz;BU.isTSParameterProperty=u3;BU.isTSParenthesizedType=Az;BU.isTSPropertySignature=c3;BU.isTSQualifiedName=x3;BU.isTSRestType=Kz;BU.isTSSatisfiesExpression=kz;BU.isTSStringKeyword=fz;BU.isTSSymbolKeyword=Gz;BU.isTSTemplateLiteralType=Dz;BU.isTSThisType=Jz;BU.isTSTupleType=Bz;BU.isTSType=lB;BU.isTSTypeAliasDeclaration=bz;BU.isTSTypeAnnotation=rz;BU.isTSTypeAssertion=vz;BU.isTSTypeElement=mB;BU.isTSTypeLiteral=Yz;BU.isTSTypeOperator=Oz;BU.isTSTypeParameter=dz;BU.isTSTypeParameterDeclaration=pz;BU.isTSTypeParameterInstantiation=sz;BU.isTSTypePredicate=Qz;BU.isTSTypeQuery=Zz;BU.isTSTypeReference=Hz;BU.isTSUndefinedKeyword=Xz;BU.isTSUnionType=Fz;BU.isTSUnknownKeyword=Wz;BU.isTSVoidKeyword=Rz;BU.isTaggedTemplateExpression=wZ;BU.isTemplateElement=kZ;BU.isTemplateLiteral=vZ;BU.isTerminatorless=WB;BU.isThisExpression=XZ;BU.isThisTypeAnnotation=_Y;BU.isThrowStatement=WZ;BU.isTopicReference=k3;BU.isTryStatement=RZ;BU.isTupleExpression=b3;BU.isTupleTypeAnnotation=uY;BU.isTypeAlias=yY;BU.isTypeAnnotation=xY;BU.isTypeCastExpression=mY;BU.isTypeParameter=lY;BU.isTypeParameterDeclaration=cY;BU.isTypeParameterInstantiation=aY;BU.isTypeScript=xB;BU.isTypeofTypeAnnotation=hY;BU.isUnaryExpression=JZ;BU.isUnaryLike=PB;BU.isUnionTypeAnnotation=iY;BU.isUpdateExpression=UZ;BU.isUserWhitespacable=qB;BU.isV8IntrinsicIdentifier=O3;BU.isVariableDeclaration=VZ;BU.isVariableDeclarator=HZ;BU.isVariance=rY;BU.isVoidTypeAnnotation=sY;BU.isWhile=VB;BU.isWhileStatement=QZ;BU.isWithStatement=ZZ;BU.isYieldExpression=gZ;var B=IX(),u1=_1();function M5(f,G){if(!f)return!1;if(f.type!=="ArrayExpression")return!1;return G==null||B.default(f,G)}function K5(f,G){if(!f)return!1;if(f.type!=="AssignmentExpression")return!1;return G==null||B.default(f,G)}function S5(f,G){if(!f)return!1;if(f.type!=="BinaryExpression")return!1;return G==null||B.default(f,G)}function F5(f,G){if(!f)return!1;if(f.type!=="InterpreterDirective")return!1;return G==null||B.default(f,G)}function $5(f,G){if(!f)return!1;if(f.type!=="Directive")return!1;return G==null||B.default(f,G)}function C5(f,G){if(!f)return!1;if(f.type!=="DirectiveLiteral")return!1;return G==null||B.default(f,G)}function q5(f,G){if(!f)return!1;if(f.type!=="BlockStatement")return!1;return G==null||B.default(f,G)}function A5(f,G){if(!f)return!1;if(f.type!=="BreakStatement")return!1;return G==null||B.default(f,G)}function O5(f,G){if(!f)return!1;if(f.type!=="CallExpression")return!1;return G==null||B.default(f,G)}function j5(f,G){if(!f)return!1;if(f.type!=="CatchClause")return!1;return G==null||B.default(f,G)}function P5(f,G){if(!f)return!1;if(f.type!=="ConditionalExpression")return!1;return G==null||B.default(f,G)}function D5(f,G){if(!f)return!1;if(f.type!=="ContinueStatement")return!1;return G==null||B.default(f,G)}function I5(f,G){if(!f)return!1;if(f.type!=="DebuggerStatement")return!1;return G==null||B.default(f,G)}function T5(f,G){if(!f)return!1;if(f.type!=="DoWhileStatement")return!1;return G==null||B.default(f,G)}function N5(f,G){if(!f)return!1;if(f.type!=="EmptyStatement")return!1;return G==null||B.default(f,G)}function L5(f,G){if(!f)return!1;if(f.type!=="ExpressionStatement")return!1;return G==null||B.default(f,G)}function b5(f,G){if(!f)return!1;if(f.type!=="File")return!1;return G==null||B.default(f,G)}function E5(f,G){if(!f)return!1;if(f.type!=="ForInStatement")return!1;return G==null||B.default(f,G)}function w5(f,G){if(!f)return!1;if(f.type!=="ForStatement")return!1;return G==null||B.default(f,G)}function k5(f,G){if(!f)return!1;if(f.type!=="FunctionDeclaration")return!1;return G==null||B.default(f,G)}function v5(f,G){if(!f)return!1;if(f.type!=="FunctionExpression")return!1;return G==null||B.default(f,G)}function g5(f,G){if(!f)return!1;if(f.type!=="Identifier")return!1;return G==null||B.default(f,G)}function _5(f,G){if(!f)return!1;if(f.type!=="IfStatement")return!1;return G==null||B.default(f,G)}function u5(f,G){if(!f)return!1;if(f.type!=="LabeledStatement")return!1;return G==null||B.default(f,G)}function h5(f,G){if(!f)return!1;if(f.type!=="StringLiteral")return!1;return G==null||B.default(f,G)}function y5(f,G){if(!f)return!1;if(f.type!=="NumericLiteral")return!1;return G==null||B.default(f,G)}function x5(f,G){if(!f)return!1;if(f.type!=="NullLiteral")return!1;return G==null||B.default(f,G)}function m5(f,G){if(!f)return!1;if(f.type!=="BooleanLiteral")return!1;return G==null||B.default(f,G)}function l5(f,G){if(!f)return!1;if(f.type!=="RegExpLiteral")return!1;return G==null||B.default(f,G)}function c5(f,G){if(!f)return!1;if(f.type!=="LogicalExpression")return!1;return G==null||B.default(f,G)}function a5(f,G){if(!f)return!1;if(f.type!=="MemberExpression")return!1;return G==null||B.default(f,G)}function i5(f,G){if(!f)return!1;if(f.type!=="NewExpression")return!1;return G==null||B.default(f,G)}function r5(f,G){if(!f)return!1;if(f.type!=="Program")return!1;return G==null||B.default(f,G)}function s5(f,G){if(!f)return!1;if(f.type!=="ObjectExpression")return!1;return G==null||B.default(f,G)}function p5(f,G){if(!f)return!1;if(f.type!=="ObjectMethod")return!1;return G==null||B.default(f,G)}function d5(f,G){if(!f)return!1;if(f.type!=="ObjectProperty")return!1;return G==null||B.default(f,G)}function t5(f,G){if(!f)return!1;if(f.type!=="RestElement")return!1;return G==null||B.default(f,G)}function n5(f,G){if(!f)return!1;if(f.type!=="ReturnStatement")return!1;return G==null||B.default(f,G)}function o5(f,G){if(!f)return!1;if(f.type!=="SequenceExpression")return!1;return G==null||B.default(f,G)}function e5(f,G){if(!f)return!1;if(f.type!=="ParenthesizedExpression")return!1;return G==null||B.default(f,G)}function fZ(f,G){if(!f)return!1;if(f.type!=="SwitchCase")return!1;return G==null||B.default(f,G)}function GZ(f,G){if(!f)return!1;if(f.type!=="SwitchStatement")return!1;return G==null||B.default(f,G)}function XZ(f,G){if(!f)return!1;if(f.type!=="ThisExpression")return!1;return G==null||B.default(f,G)}function WZ(f,G){if(!f)return!1;if(f.type!=="ThrowStatement")return!1;return G==null||B.default(f,G)}function RZ(f,G){if(!f)return!1;if(f.type!=="TryStatement")return!1;return G==null||B.default(f,G)}function JZ(f,G){if(!f)return!1;if(f.type!=="UnaryExpression")return!1;return G==null||B.default(f,G)}function UZ(f,G){if(!f)return!1;if(f.type!=="UpdateExpression")return!1;return G==null||B.default(f,G)}function VZ(f,G){if(!f)return!1;if(f.type!=="VariableDeclaration")return!1;return G==null||B.default(f,G)}function HZ(f,G){if(!f)return!1;if(f.type!=="VariableDeclarator")return!1;return G==null||B.default(f,G)}function QZ(f,G){if(!f)return!1;if(f.type!=="WhileStatement")return!1;return G==null||B.default(f,G)}function ZZ(f,G){if(!f)return!1;if(f.type!=="WithStatement")return!1;return G==null||B.default(f,G)}function YZ(f,G){if(!f)return!1;if(f.type!=="AssignmentPattern")return!1;return G==null||B.default(f,G)}function zZ(f,G){if(!f)return!1;if(f.type!=="ArrayPattern")return!1;return G==null||B.default(f,G)}function BZ(f,G){if(!f)return!1;if(f.type!=="ArrowFunctionExpression")return!1;return G==null||B.default(f,G)}function MZ(f,G){if(!f)return!1;if(f.type!=="ClassBody")return!1;return G==null||B.default(f,G)}function KZ(f,G){if(!f)return!1;if(f.type!=="ClassExpression")return!1;return G==null||B.default(f,G)}function SZ(f,G){if(!f)return!1;if(f.type!=="ClassDeclaration")return!1;return G==null||B.default(f,G)}function FZ(f,G){if(!f)return!1;if(f.type!=="ExportAllDeclaration")return!1;return G==null||B.default(f,G)}function $Z(f,G){if(!f)return!1;if(f.type!=="ExportDefaultDeclaration")return!1;return G==null||B.default(f,G)}function CZ(f,G){if(!f)return!1;if(f.type!=="ExportNamedDeclaration")return!1;return G==null||B.default(f,G)}function qZ(f,G){if(!f)return!1;if(f.type!=="ExportSpecifier")return!1;return G==null||B.default(f,G)}function AZ(f,G){if(!f)return!1;if(f.type!=="ForOfStatement")return!1;return G==null||B.default(f,G)}function OZ(f,G){if(!f)return!1;if(f.type!=="ImportDeclaration")return!1;return G==null||B.default(f,G)}function jZ(f,G){if(!f)return!1;if(f.type!=="ImportDefaultSpecifier")return!1;return G==null||B.default(f,G)}function PZ(f,G){if(!f)return!1;if(f.type!=="ImportNamespaceSpecifier")return!1;return G==null||B.default(f,G)}function DZ(f,G){if(!f)return!1;if(f.type!=="ImportSpecifier")return!1;return G==null||B.default(f,G)}function IZ(f,G){if(!f)return!1;if(f.type!=="ImportExpression")return!1;return G==null||B.default(f,G)}function TZ(f,G){if(!f)return!1;if(f.type!=="MetaProperty")return!1;return G==null||B.default(f,G)}function NZ(f,G){if(!f)return!1;if(f.type!=="ClassMethod")return!1;return G==null||B.default(f,G)}function LZ(f,G){if(!f)return!1;if(f.type!=="ObjectPattern")return!1;return G==null||B.default(f,G)}function bZ(f,G){if(!f)return!1;if(f.type!=="SpreadElement")return!1;return G==null||B.default(f,G)}function EZ(f,G){if(!f)return!1;if(f.type!=="Super")return!1;return G==null||B.default(f,G)}function wZ(f,G){if(!f)return!1;if(f.type!=="TaggedTemplateExpression")return!1;return G==null||B.default(f,G)}function kZ(f,G){if(!f)return!1;if(f.type!=="TemplateElement")return!1;return G==null||B.default(f,G)}function vZ(f,G){if(!f)return!1;if(f.type!=="TemplateLiteral")return!1;return G==null||B.default(f,G)}function gZ(f,G){if(!f)return!1;if(f.type!=="YieldExpression")return!1;return G==null||B.default(f,G)}function _Z(f,G){if(!f)return!1;if(f.type!=="AwaitExpression")return!1;return G==null||B.default(f,G)}function uZ(f,G){if(!f)return!1;if(f.type!=="Import")return!1;return G==null||B.default(f,G)}function hZ(f,G){if(!f)return!1;if(f.type!=="BigIntLiteral")return!1;return G==null||B.default(f,G)}function yZ(f,G){if(!f)return!1;if(f.type!=="ExportNamespaceSpecifier")return!1;return G==null||B.default(f,G)}function xZ(f,G){if(!f)return!1;if(f.type!=="OptionalMemberExpression")return!1;return G==null||B.default(f,G)}function mZ(f,G){if(!f)return!1;if(f.type!=="OptionalCallExpression")return!1;return G==null||B.default(f,G)}function lZ(f,G){if(!f)return!1;if(f.type!=="ClassProperty")return!1;return G==null||B.default(f,G)}function cZ(f,G){if(!f)return!1;if(f.type!=="ClassAccessorProperty")return!1;return G==null||B.default(f,G)}function aZ(f,G){if(!f)return!1;if(f.type!=="ClassPrivateProperty")return!1;return G==null||B.default(f,G)}function iZ(f,G){if(!f)return!1;if(f.type!=="ClassPrivateMethod")return!1;return G==null||B.default(f,G)}function rZ(f,G){if(!f)return!1;if(f.type!=="PrivateName")return!1;return G==null||B.default(f,G)}function sZ(f,G){if(!f)return!1;if(f.type!=="StaticBlock")return!1;return G==null||B.default(f,G)}function pZ(f,G){if(!f)return!1;if(f.type!=="AnyTypeAnnotation")return!1;return G==null||B.default(f,G)}function dZ(f,G){if(!f)return!1;if(f.type!=="ArrayTypeAnnotation")return!1;return G==null||B.default(f,G)}function tZ(f,G){if(!f)return!1;if(f.type!=="BooleanTypeAnnotation")return!1;return G==null||B.default(f,G)}function nZ(f,G){if(!f)return!1;if(f.type!=="BooleanLiteralTypeAnnotation")return!1;return G==null||B.default(f,G)}function oZ(f,G){if(!f)return!1;if(f.type!=="NullLiteralTypeAnnotation")return!1;return G==null||B.default(f,G)}function eZ(f,G){if(!f)return!1;if(f.type!=="ClassImplements")return!1;return G==null||B.default(f,G)}function fY(f,G){if(!f)return!1;if(f.type!=="DeclareClass")return!1;return G==null||B.default(f,G)}function GY(f,G){if(!f)return!1;if(f.type!=="DeclareFunction")return!1;return G==null||B.default(f,G)}function XY(f,G){if(!f)return!1;if(f.type!=="DeclareInterface")return!1;return G==null||B.default(f,G)}function WY(f,G){if(!f)return!1;if(f.type!=="DeclareModule")return!1;return G==null||B.default(f,G)}function RY(f,G){if(!f)return!1;if(f.type!=="DeclareModuleExports")return!1;return G==null||B.default(f,G)}function JY(f,G){if(!f)return!1;if(f.type!=="DeclareTypeAlias")return!1;return G==null||B.default(f,G)}function UY(f,G){if(!f)return!1;if(f.type!=="DeclareOpaqueType")return!1;return G==null||B.default(f,G)}function VY(f,G){if(!f)return!1;if(f.type!=="DeclareVariable")return!1;return G==null||B.default(f,G)}function HY(f,G){if(!f)return!1;if(f.type!=="DeclareExportDeclaration")return!1;return G==null||B.default(f,G)}function QY(f,G){if(!f)return!1;if(f.type!=="DeclareExportAllDeclaration")return!1;return G==null||B.default(f,G)}function ZY(f,G){if(!f)return!1;if(f.type!=="DeclaredPredicate")return!1;return G==null||B.default(f,G)}function YY(f,G){if(!f)return!1;if(f.type!=="ExistsTypeAnnotation")return!1;return G==null||B.default(f,G)}function zY(f,G){if(!f)return!1;if(f.type!=="FunctionTypeAnnotation")return!1;return G==null||B.default(f,G)}function BY(f,G){if(!f)return!1;if(f.type!=="FunctionTypeParam")return!1;return G==null||B.default(f,G)}function MY(f,G){if(!f)return!1;if(f.type!=="GenericTypeAnnotation")return!1;return G==null||B.default(f,G)}function KY(f,G){if(!f)return!1;if(f.type!=="InferredPredicate")return!1;return G==null||B.default(f,G)}function SY(f,G){if(!f)return!1;if(f.type!=="InterfaceExtends")return!1;return G==null||B.default(f,G)}function FY(f,G){if(!f)return!1;if(f.type!=="InterfaceDeclaration")return!1;return G==null||B.default(f,G)}function $Y(f,G){if(!f)return!1;if(f.type!=="InterfaceTypeAnnotation")return!1;return G==null||B.default(f,G)}function CY(f,G){if(!f)return!1;if(f.type!=="IntersectionTypeAnnotation")return!1;return G==null||B.default(f,G)}function qY(f,G){if(!f)return!1;if(f.type!=="MixedTypeAnnotation")return!1;return G==null||B.default(f,G)}function AY(f,G){if(!f)return!1;if(f.type!=="EmptyTypeAnnotation")return!1;return G==null||B.default(f,G)}function OY(f,G){if(!f)return!1;if(f.type!=="NullableTypeAnnotation")return!1;return G==null||B.default(f,G)}function jY(f,G){if(!f)return!1;if(f.type!=="NumberLiteralTypeAnnotation")return!1;return G==null||B.default(f,G)}function PY(f,G){if(!f)return!1;if(f.type!=="NumberTypeAnnotation")return!1;return G==null||B.default(f,G)}function DY(f,G){if(!f)return!1;if(f.type!=="ObjectTypeAnnotation")return!1;return G==null||B.default(f,G)}function IY(f,G){if(!f)return!1;if(f.type!=="ObjectTypeInternalSlot")return!1;return G==null||B.default(f,G)}function TY(f,G){if(!f)return!1;if(f.type!=="ObjectTypeCallProperty")return!1;return G==null||B.default(f,G)}function NY(f,G){if(!f)return!1;if(f.type!=="ObjectTypeIndexer")return!1;return G==null||B.default(f,G)}function LY(f,G){if(!f)return!1;if(f.type!=="ObjectTypeProperty")return!1;return G==null||B.default(f,G)}function bY(f,G){if(!f)return!1;if(f.type!=="ObjectTypeSpreadProperty")return!1;return G==null||B.default(f,G)}function EY(f,G){if(!f)return!1;if(f.type!=="OpaqueType")return!1;return G==null||B.default(f,G)}function wY(f,G){if(!f)return!1;if(f.type!=="QualifiedTypeIdentifier")return!1;return G==null||B.default(f,G)}function kY(f,G){if(!f)return!1;if(f.type!=="StringLiteralTypeAnnotation")return!1;return G==null||B.default(f,G)}function vY(f,G){if(!f)return!1;if(f.type!=="StringTypeAnnotation")return!1;return G==null||B.default(f,G)}function gY(f,G){if(!f)return!1;if(f.type!=="SymbolTypeAnnotation")return!1;return G==null||B.default(f,G)}function _Y(f,G){if(!f)return!1;if(f.type!=="ThisTypeAnnotation")return!1;return G==null||B.default(f,G)}function uY(f,G){if(!f)return!1;if(f.type!=="TupleTypeAnnotation")return!1;return G==null||B.default(f,G)}function hY(f,G){if(!f)return!1;if(f.type!=="TypeofTypeAnnotation")return!1;return G==null||B.default(f,G)}function yY(f,G){if(!f)return!1;if(f.type!=="TypeAlias")return!1;return G==null||B.default(f,G)}function xY(f,G){if(!f)return!1;if(f.type!=="TypeAnnotation")return!1;return G==null||B.default(f,G)}function mY(f,G){if(!f)return!1;if(f.type!=="TypeCastExpression")return!1;return G==null||B.default(f,G)}function lY(f,G){if(!f)return!1;if(f.type!=="TypeParameter")return!1;return G==null||B.default(f,G)}function cY(f,G){if(!f)return!1;if(f.type!=="TypeParameterDeclaration")return!1;return G==null||B.default(f,G)}function aY(f,G){if(!f)return!1;if(f.type!=="TypeParameterInstantiation")return!1;return G==null||B.default(f,G)}function iY(f,G){if(!f)return!1;if(f.type!=="UnionTypeAnnotation")return!1;return G==null||B.default(f,G)}function rY(f,G){if(!f)return!1;if(f.type!=="Variance")return!1;return G==null||B.default(f,G)}function sY(f,G){if(!f)return!1;if(f.type!=="VoidTypeAnnotation")return!1;return G==null||B.default(f,G)}function pY(f,G){if(!f)return!1;if(f.type!=="EnumDeclaration")return!1;return G==null||B.default(f,G)}function dY(f,G){if(!f)return!1;if(f.type!=="EnumBooleanBody")return!1;return G==null||B.default(f,G)}function tY(f,G){if(!f)return!1;if(f.type!=="EnumNumberBody")return!1;return G==null||B.default(f,G)}function nY(f,G){if(!f)return!1;if(f.type!=="EnumStringBody")return!1;return G==null||B.default(f,G)}function oY(f,G){if(!f)return!1;if(f.type!=="EnumSymbolBody")return!1;return G==null||B.default(f,G)}function eY(f,G){if(!f)return!1;if(f.type!=="EnumBooleanMember")return!1;return G==null||B.default(f,G)}function f3(f,G){if(!f)return!1;if(f.type!=="EnumNumberMember")return!1;return G==null||B.default(f,G)}function G3(f,G){if(!f)return!1;if(f.type!=="EnumStringMember")return!1;return G==null||B.default(f,G)}function X3(f,G){if(!f)return!1;if(f.type!=="EnumDefaultedMember")return!1;return G==null||B.default(f,G)}function W3(f,G){if(!f)return!1;if(f.type!=="IndexedAccessType")return!1;return G==null||B.default(f,G)}function R3(f,G){if(!f)return!1;if(f.type!=="OptionalIndexedAccessType")return!1;return G==null||B.default(f,G)}function J3(f,G){if(!f)return!1;if(f.type!=="JSXAttribute")return!1;return G==null||B.default(f,G)}function U3(f,G){if(!f)return!1;if(f.type!=="JSXClosingElement")return!1;return G==null||B.default(f,G)}function V3(f,G){if(!f)return!1;if(f.type!=="JSXElement")return!1;return G==null||B.default(f,G)}function H3(f,G){if(!f)return!1;if(f.type!=="JSXEmptyExpression")return!1;return G==null||B.default(f,G)}function Q3(f,G){if(!f)return!1;if(f.type!=="JSXExpressionContainer")return!1;return G==null||B.default(f,G)}function Z3(f,G){if(!f)return!1;if(f.type!=="JSXSpreadChild")return!1;return G==null||B.default(f,G)}function Y3(f,G){if(!f)return!1;if(f.type!=="JSXIdentifier")return!1;return G==null||B.default(f,G)}function z3(f,G){if(!f)return!1;if(f.type!=="JSXMemberExpression")return!1;return G==null||B.default(f,G)}function B3(f,G){if(!f)return!1;if(f.type!=="JSXNamespacedName")return!1;return G==null||B.default(f,G)}function M3(f,G){if(!f)return!1;if(f.type!=="JSXOpeningElement")return!1;return G==null||B.default(f,G)}function K3(f,G){if(!f)return!1;if(f.type!=="JSXSpreadAttribute")return!1;return G==null||B.default(f,G)}function S3(f,G){if(!f)return!1;if(f.type!=="JSXText")return!1;return G==null||B.default(f,G)}function F3(f,G){if(!f)return!1;if(f.type!=="JSXFragment")return!1;return G==null||B.default(f,G)}function $3(f,G){if(!f)return!1;if(f.type!=="JSXOpeningFragment")return!1;return G==null||B.default(f,G)}function C3(f,G){if(!f)return!1;if(f.type!=="JSXClosingFragment")return!1;return G==null||B.default(f,G)}function q3(f,G){if(!f)return!1;if(f.type!=="Noop")return!1;return G==null||B.default(f,G)}function A3(f,G){if(!f)return!1;if(f.type!=="Placeholder")return!1;return G==null||B.default(f,G)}function O3(f,G){if(!f)return!1;if(f.type!=="V8IntrinsicIdentifier")return!1;return G==null||B.default(f,G)}function j3(f,G){if(!f)return!1;if(f.type!=="ArgumentPlaceholder")return!1;return G==null||B.default(f,G)}function P3(f,G){if(!f)return!1;if(f.type!=="BindExpression")return!1;return G==null||B.default(f,G)}function D3(f,G){if(!f)return!1;if(f.type!=="ImportAttribute")return!1;return G==null||B.default(f,G)}function I3(f,G){if(!f)return!1;if(f.type!=="Decorator")return!1;return G==null||B.default(f,G)}function T3(f,G){if(!f)return!1;if(f.type!=="DoExpression")return!1;return G==null||B.default(f,G)}function N3(f,G){if(!f)return!1;if(f.type!=="ExportDefaultSpecifier")return!1;return G==null||B.default(f,G)}function L3(f,G){if(!f)return!1;if(f.type!=="RecordExpression")return!1;return G==null||B.default(f,G)}function b3(f,G){if(!f)return!1;if(f.type!=="TupleExpression")return!1;return G==null||B.default(f,G)}function E3(f,G){if(!f)return!1;if(f.type!=="DecimalLiteral")return!1;return G==null||B.default(f,G)}function w3(f,G){if(!f)return!1;if(f.type!=="ModuleExpression")return!1;return G==null||B.default(f,G)}function k3(f,G){if(!f)return!1;if(f.type!=="TopicReference")return!1;return G==null||B.default(f,G)}function v3(f,G){if(!f)return!1;if(f.type!=="PipelineTopicExpression")return!1;return G==null||B.default(f,G)}function g3(f,G){if(!f)return!1;if(f.type!=="PipelineBareFunction")return!1;return G==null||B.default(f,G)}function _3(f,G){if(!f)return!1;if(f.type!=="PipelinePrimaryTopicReference")return!1;return G==null||B.default(f,G)}function u3(f,G){if(!f)return!1;if(f.type!=="TSParameterProperty")return!1;return G==null||B.default(f,G)}function h3(f,G){if(!f)return!1;if(f.type!=="TSDeclareFunction")return!1;return G==null||B.default(f,G)}function y3(f,G){if(!f)return!1;if(f.type!=="TSDeclareMethod")return!1;return G==null||B.default(f,G)}function x3(f,G){if(!f)return!1;if(f.type!=="TSQualifiedName")return!1;return G==null||B.default(f,G)}function m3(f,G){if(!f)return!1;if(f.type!=="TSCallSignatureDeclaration")return!1;return G==null||B.default(f,G)}function l3(f,G){if(!f)return!1;if(f.type!=="TSConstructSignatureDeclaration")return!1;return G==null||B.default(f,G)}function c3(f,G){if(!f)return!1;if(f.type!=="TSPropertySignature")return!1;return G==null||B.default(f,G)}function a3(f,G){if(!f)return!1;if(f.type!=="TSMethodSignature")return!1;return G==null||B.default(f,G)}function i3(f,G){if(!f)return!1;if(f.type!=="TSIndexSignature")return!1;return G==null||B.default(f,G)}function r3(f,G){if(!f)return!1;if(f.type!=="TSAnyKeyword")return!1;return G==null||B.default(f,G)}function s3(f,G){if(!f)return!1;if(f.type!=="TSBooleanKeyword")return!1;return G==null||B.default(f,G)}function p3(f,G){if(!f)return!1;if(f.type!=="TSBigIntKeyword")return!1;return G==null||B.default(f,G)}function d3(f,G){if(!f)return!1;if(f.type!=="TSIntrinsicKeyword")return!1;return G==null||B.default(f,G)}function t3(f,G){if(!f)return!1;if(f.type!=="TSNeverKeyword")return!1;return G==null||B.default(f,G)}function n3(f,G){if(!f)return!1;if(f.type!=="TSNullKeyword")return!1;return G==null||B.default(f,G)}function o3(f,G){if(!f)return!1;if(f.type!=="TSNumberKeyword")return!1;return G==null||B.default(f,G)}function e3(f,G){if(!f)return!1;if(f.type!=="TSObjectKeyword")return!1;return G==null||B.default(f,G)}function fz(f,G){if(!f)return!1;if(f.type!=="TSStringKeyword")return!1;return G==null||B.default(f,G)}function Gz(f,G){if(!f)return!1;if(f.type!=="TSSymbolKeyword")return!1;return G==null||B.default(f,G)}function Xz(f,G){if(!f)return!1;if(f.type!=="TSUndefinedKeyword")return!1;return G==null||B.default(f,G)}function Wz(f,G){if(!f)return!1;if(f.type!=="TSUnknownKeyword")return!1;return G==null||B.default(f,G)}function Rz(f,G){if(!f)return!1;if(f.type!=="TSVoidKeyword")return!1;return G==null||B.default(f,G)}function Jz(f,G){if(!f)return!1;if(f.type!=="TSThisType")return!1;return G==null||B.default(f,G)}function Uz(f,G){if(!f)return!1;if(f.type!=="TSFunctionType")return!1;return G==null||B.default(f,G)}function Vz(f,G){if(!f)return!1;if(f.type!=="TSConstructorType")return!1;return G==null||B.default(f,G)}function Hz(f,G){if(!f)return!1;if(f.type!=="TSTypeReference")return!1;return G==null||B.default(f,G)}function Qz(f,G){if(!f)return!1;if(f.type!=="TSTypePredicate")return!1;return G==null||B.default(f,G)}function Zz(f,G){if(!f)return!1;if(f.type!=="TSTypeQuery")return!1;return G==null||B.default(f,G)}function Yz(f,G){if(!f)return!1;if(f.type!=="TSTypeLiteral")return!1;return G==null||B.default(f,G)}function zz(f,G){if(!f)return!1;if(f.type!=="TSArrayType")return!1;return G==null||B.default(f,G)}function Bz(f,G){if(!f)return!1;if(f.type!=="TSTupleType")return!1;return G==null||B.default(f,G)}function Mz(f,G){if(!f)return!1;if(f.type!=="TSOptionalType")return!1;return G==null||B.default(f,G)}function Kz(f,G){if(!f)return!1;if(f.type!=="TSRestType")return!1;return G==null||B.default(f,G)}function Sz(f,G){if(!f)return!1;if(f.type!=="TSNamedTupleMember")return!1;return G==null||B.default(f,G)}function Fz(f,G){if(!f)return!1;if(f.type!=="TSUnionType")return!1;return G==null||B.default(f,G)}function $z(f,G){if(!f)return!1;if(f.type!=="TSIntersectionType")return!1;return G==null||B.default(f,G)}function Cz(f,G){if(!f)return!1;if(f.type!=="TSConditionalType")return!1;return G==null||B.default(f,G)}function qz(f,G){if(!f)return!1;if(f.type!=="TSInferType")return!1;return G==null||B.default(f,G)}function Az(f,G){if(!f)return!1;if(f.type!=="TSParenthesizedType")return!1;return G==null||B.default(f,G)}function Oz(f,G){if(!f)return!1;if(f.type!=="TSTypeOperator")return!1;return G==null||B.default(f,G)}function jz(f,G){if(!f)return!1;if(f.type!=="TSIndexedAccessType")return!1;return G==null||B.default(f,G)}function Pz(f,G){if(!f)return!1;if(f.type!=="TSMappedType")return!1;return G==null||B.default(f,G)}function Dz(f,G){if(!f)return!1;if(f.type!=="TSTemplateLiteralType")return!1;return G==null||B.default(f,G)}function Iz(f,G){if(!f)return!1;if(f.type!=="TSLiteralType")return!1;return G==null||B.default(f,G)}function Tz(f,G){if(!f)return!1;if(f.type!=="TSExpressionWithTypeArguments")return!1;return G==null||B.default(f,G)}function Nz(f,G){if(!f)return!1;if(f.type!=="TSInterfaceDeclaration")return!1;return G==null||B.default(f,G)}function Lz(f,G){if(!f)return!1;if(f.type!=="TSInterfaceBody")return!1;return G==null||B.default(f,G)}function bz(f,G){if(!f)return!1;if(f.type!=="TSTypeAliasDeclaration")return!1;return G==null||B.default(f,G)}function Ez(f,G){if(!f)return!1;if(f.type!=="TSInstantiationExpression")return!1;return G==null||B.default(f,G)}function wz(f,G){if(!f)return!1;if(f.type!=="TSAsExpression")return!1;return G==null||B.default(f,G)}function kz(f,G){if(!f)return!1;if(f.type!=="TSSatisfiesExpression")return!1;return G==null||B.default(f,G)}function vz(f,G){if(!f)return!1;if(f.type!=="TSTypeAssertion")return!1;return G==null||B.default(f,G)}function gz(f,G){if(!f)return!1;if(f.type!=="TSEnumBody")return!1;return G==null||B.default(f,G)}function _z(f,G){if(!f)return!1;if(f.type!=="TSEnumDeclaration")return!1;return G==null||B.default(f,G)}function uz(f,G){if(!f)return!1;if(f.type!=="TSEnumMember")return!1;return G==null||B.default(f,G)}function hz(f,G){if(!f)return!1;if(f.type!=="TSModuleDeclaration")return!1;return G==null||B.default(f,G)}function yz(f,G){if(!f)return!1;if(f.type!=="TSModuleBlock")return!1;return G==null||B.default(f,G)}function xz(f,G){if(!f)return!1;if(f.type!=="TSImportType")return!1;return G==null||B.default(f,G)}function mz(f,G){if(!f)return!1;if(f.type!=="TSImportEqualsDeclaration")return!1;return G==null||B.default(f,G)}function lz(f,G){if(!f)return!1;if(f.type!=="TSExternalModuleReference")return!1;return G==null||B.default(f,G)}function cz(f,G){if(!f)return!1;if(f.type!=="TSNonNullExpression")return!1;return G==null||B.default(f,G)}function az(f,G){if(!f)return!1;if(f.type!=="TSExportAssignment")return!1;return G==null||B.default(f,G)}function iz(f,G){if(!f)return!1;if(f.type!=="TSNamespaceExportDeclaration")return!1;return G==null||B.default(f,G)}function rz(f,G){if(!f)return!1;if(f.type!=="TSTypeAnnotation")return!1;return G==null||B.default(f,G)}function sz(f,G){if(!f)return!1;if(f.type!=="TSTypeParameterInstantiation")return!1;return G==null||B.default(f,G)}function pz(f,G){if(!f)return!1;if(f.type!=="TSTypeParameterDeclaration")return!1;return G==null||B.default(f,G)}function dz(f,G){if(!f)return!1;if(f.type!=="TSTypeParameter")return!1;return G==null||B.default(f,G)}function tz(f,G){if(!f)return!1;switch(f.type){case"ArrayExpression":case"AssignmentExpression":case"BinaryExpression":case"InterpreterDirective":case"Directive":case"DirectiveLiteral":case"BlockStatement":case"BreakStatement":case"CallExpression":case"CatchClause":case"ConditionalExpression":case"ContinueStatement":case"DebuggerStatement":case"DoWhileStatement":case"EmptyStatement":case"ExpressionStatement":case"File":case"ForInStatement":case"ForStatement":case"FunctionDeclaration":case"FunctionExpression":case"Identifier":case"IfStatement":case"LabeledStatement":case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"LogicalExpression":case"MemberExpression":case"NewExpression":case"Program":case"ObjectExpression":case"ObjectMethod":case"ObjectProperty":case"RestElement":case"ReturnStatement":case"SequenceExpression":case"ParenthesizedExpression":case"SwitchCase":case"SwitchStatement":case"ThisExpression":case"ThrowStatement":case"TryStatement":case"UnaryExpression":case"UpdateExpression":case"VariableDeclaration":case"VariableDeclarator":case"WhileStatement":case"WithStatement":case"AssignmentPattern":case"ArrayPattern":case"ArrowFunctionExpression":case"ClassBody":case"ClassExpression":case"ClassDeclaration":case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ExportSpecifier":case"ForOfStatement":case"ImportDeclaration":case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":case"ImportSpecifier":case"ImportExpression":case"MetaProperty":case"ClassMethod":case"ObjectPattern":case"SpreadElement":case"Super":case"TaggedTemplateExpression":case"TemplateElement":case"TemplateLiteral":case"YieldExpression":case"AwaitExpression":case"Import":case"BigIntLiteral":case"ExportNamespaceSpecifier":case"OptionalMemberExpression":case"OptionalCallExpression":case"ClassProperty":case"ClassAccessorProperty":case"ClassPrivateProperty":case"ClassPrivateMethod":case"PrivateName":case"StaticBlock":break;case"Placeholder":switch(f.expectedNode){case"Identifier":case"StringLiteral":case"BlockStatement":case"ClassBody":break;default:return!1}break;default:return!1}return G==null||B.default(f,G)}function nz(f,G){if(!f)return!1;switch(f.type){case"ArrayExpression":case"AssignmentExpression":case"BinaryExpression":case"CallExpression":case"ConditionalExpression":case"FunctionExpression":case"Identifier":case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"LogicalExpression":case"MemberExpression":case"NewExpression":case"ObjectExpression":case"SequenceExpression":case"ParenthesizedExpression":case"ThisExpression":case"UnaryExpression":case"UpdateExpression":case"ArrowFunctionExpression":case"ClassExpression":case"ImportExpression":case"MetaProperty":case"Super":case"TaggedTemplateExpression":case"TemplateLiteral":case"YieldExpression":case"AwaitExpression":case"Import":case"BigIntLiteral":case"OptionalMemberExpression":case"OptionalCallExpression":case"TypeCastExpression":case"JSXElement":case"JSXFragment":case"BindExpression":case"DoExpression":case"RecordExpression":case"TupleExpression":case"DecimalLiteral":case"ModuleExpression":case"TopicReference":case"PipelineTopicExpression":case"PipelineBareFunction":case"PipelinePrimaryTopicReference":case"TSInstantiationExpression":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":break;case"Placeholder":switch(f.expectedNode){case"Expression":case"Identifier":case"StringLiteral":break;default:return!1}break;default:return!1}return G==null||B.default(f,G)}function oz(f,G){if(!f)return!1;switch(f.type){case"BinaryExpression":case"LogicalExpression":break;default:return!1}return G==null||B.default(f,G)}function ez(f,G){if(!f)return!1;switch(f.type){case"BlockStatement":case"CatchClause":case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"FunctionDeclaration":case"FunctionExpression":case"Program":case"ObjectMethod":case"SwitchStatement":case"WhileStatement":case"ArrowFunctionExpression":case"ClassExpression":case"ClassDeclaration":case"ForOfStatement":case"ClassMethod":case"ClassPrivateMethod":case"StaticBlock":case"TSModuleBlock":break;case"Placeholder":if(f.expectedNode==="BlockStatement")break;default:return!1}return G==null||B.default(f,G)}function fB(f,G){if(!f)return!1;switch(f.type){case"BlockStatement":case"CatchClause":case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"FunctionDeclaration":case"FunctionExpression":case"Program":case"ObjectMethod":case"SwitchStatement":case"WhileStatement":case"ArrowFunctionExpression":case"ForOfStatement":case"ClassMethod":case"ClassPrivateMethod":case"StaticBlock":case"TSModuleBlock":break;case"Placeholder":if(f.expectedNode==="BlockStatement")break;default:return!1}return G==null||B.default(f,G)}function GB(f,G){if(!f)return!1;switch(f.type){case"BlockStatement":case"Program":case"TSModuleBlock":break;case"Placeholder":if(f.expectedNode==="BlockStatement")break;default:return!1}return G==null||B.default(f,G)}function XB(f,G){if(!f)return!1;switch(f.type){case"BlockStatement":case"BreakStatement":case"ContinueStatement":case"DebuggerStatement":case"DoWhileStatement":case"EmptyStatement":case"ExpressionStatement":case"ForInStatement":case"ForStatement":case"FunctionDeclaration":case"IfStatement":case"LabeledStatement":case"ReturnStatement":case"SwitchStatement":case"ThrowStatement":case"TryStatement":case"VariableDeclaration":case"WhileStatement":case"WithStatement":case"ClassDeclaration":case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ForOfStatement":case"ImportDeclaration":case"DeclareClass":case"DeclareFunction":case"DeclareInterface":case"DeclareModule":case"DeclareModuleExports":case"DeclareTypeAlias":case"DeclareOpaqueType":case"DeclareVariable":case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":case"InterfaceDeclaration":case"OpaqueType":case"TypeAlias":case"EnumDeclaration":case"TSDeclareFunction":case"TSInterfaceDeclaration":case"TSTypeAliasDeclaration":case"TSEnumDeclaration":case"TSModuleDeclaration":case"TSImportEqualsDeclaration":case"TSExportAssignment":case"TSNamespaceExportDeclaration":break;case"Placeholder":switch(f.expectedNode){case"Statement":case"Declaration":case"BlockStatement":break;default:return!1}break;default:return!1}return G==null||B.default(f,G)}function WB(f,G){if(!f)return!1;switch(f.type){case"BreakStatement":case"ContinueStatement":case"ReturnStatement":case"ThrowStatement":case"YieldExpression":case"AwaitExpression":break;default:return!1}return G==null||B.default(f,G)}function RB(f,G){if(!f)return!1;switch(f.type){case"BreakStatement":case"ContinueStatement":case"ReturnStatement":case"ThrowStatement":break;default:return!1}return G==null||B.default(f,G)}function JB(f,G){if(!f)return!1;switch(f.type){case"ConditionalExpression":case"IfStatement":break;default:return!1}return G==null||B.default(f,G)}function UB(f,G){if(!f)return!1;switch(f.type){case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"WhileStatement":case"ForOfStatement":break;default:return!1}return G==null||B.default(f,G)}function VB(f,G){if(!f)return!1;switch(f.type){case"DoWhileStatement":case"WhileStatement":break;default:return!1}return G==null||B.default(f,G)}function HB(f,G){if(!f)return!1;switch(f.type){case"ExpressionStatement":case"ParenthesizedExpression":case"TypeCastExpression":break;default:return!1}return G==null||B.default(f,G)}function QB(f,G){if(!f)return!1;switch(f.type){case"ForInStatement":case"ForStatement":case"ForOfStatement":break;default:return!1}return G==null||B.default(f,G)}function ZB(f,G){if(!f)return!1;switch(f.type){case"ForInStatement":case"ForOfStatement":break;default:return!1}return G==null||B.default(f,G)}function YB(f,G){if(!f)return!1;switch(f.type){case"FunctionDeclaration":case"FunctionExpression":case"ObjectMethod":case"ArrowFunctionExpression":case"ClassMethod":case"ClassPrivateMethod":break;default:return!1}return G==null||B.default(f,G)}function zB(f,G){if(!f)return!1;switch(f.type){case"FunctionDeclaration":case"FunctionExpression":case"ObjectMethod":case"ArrowFunctionExpression":case"ClassMethod":case"ClassPrivateMethod":case"StaticBlock":case"TSModuleBlock":break;default:return!1}return G==null||B.default(f,G)}function BB(f,G){if(!f)return!1;switch(f.type){case"FunctionDeclaration":case"FunctionExpression":case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"ArrowFunctionExpression":case"BigIntLiteral":case"DecimalLiteral":break;case"Placeholder":if(f.expectedNode==="StringLiteral")break;default:return!1}return G==null||B.default(f,G)}function MB(f,G){if(!f)return!1;switch(f.type){case"FunctionDeclaration":case"VariableDeclaration":case"ClassDeclaration":case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ImportDeclaration":case"DeclareClass":case"DeclareFunction":case"DeclareInterface":case"DeclareModule":case"DeclareModuleExports":case"DeclareTypeAlias":case"DeclareOpaqueType":case"DeclareVariable":case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":case"InterfaceDeclaration":case"OpaqueType":case"TypeAlias":case"EnumDeclaration":case"TSDeclareFunction":case"TSInterfaceDeclaration":case"TSTypeAliasDeclaration":case"TSEnumDeclaration":case"TSModuleDeclaration":case"TSImportEqualsDeclaration":break;case"Placeholder":if(f.expectedNode==="Declaration")break;default:return!1}return G==null||B.default(f,G)}function KB(f,G){if(!f)return!1;switch(f.type){case"Identifier":case"RestElement":case"AssignmentPattern":case"ArrayPattern":case"ObjectPattern":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":break;case"Placeholder":switch(f.expectedNode){case"Pattern":case"Identifier":break;default:return!1}break;default:return!1}return G==null||B.default(f,G)}function SB(f,G){if(!f)return!1;switch(f.type){case"Identifier":case"MemberExpression":case"RestElement":case"AssignmentPattern":case"ArrayPattern":case"ObjectPattern":case"TSParameterProperty":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":break;case"Placeholder":switch(f.expectedNode){case"Pattern":case"Identifier":break;default:return!1}break;default:return!1}return G==null||B.default(f,G)}function FB(f,G){if(!f)return!1;switch(f.type){case"Identifier":case"TSQualifiedName":break;case"Placeholder":if(f.expectedNode==="Identifier")break;default:return!1}return G==null||B.default(f,G)}function $B(f,G){if(!f)return!1;switch(f.type){case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"TemplateLiteral":case"BigIntLiteral":case"DecimalLiteral":break;case"Placeholder":if(f.expectedNode==="StringLiteral")break;default:return!1}return G==null||B.default(f,G)}function CB(f,G){if(!f)return!1;switch(f.type){case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"BigIntLiteral":case"JSXAttribute":case"JSXClosingElement":case"JSXElement":case"JSXExpressionContainer":case"JSXSpreadChild":case"JSXOpeningElement":case"JSXText":case"JSXFragment":case"JSXOpeningFragment":case"JSXClosingFragment":case"DecimalLiteral":break;case"Placeholder":if(f.expectedNode==="StringLiteral")break;default:return!1}return G==null||B.default(f,G)}function qB(f,G){if(!f)return!1;switch(f.type){case"ObjectMethod":case"ObjectProperty":case"ObjectTypeInternalSlot":case"ObjectTypeCallProperty":case"ObjectTypeIndexer":case"ObjectTypeProperty":case"ObjectTypeSpreadProperty":break;default:return!1}return G==null||B.default(f,G)}function AB(f,G){if(!f)return!1;switch(f.type){case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":break;default:return!1}return G==null||B.default(f,G)}function OB(f,G){if(!f)return!1;switch(f.type){case"ObjectMethod":case"ObjectProperty":break;default:return!1}return G==null||B.default(f,G)}function jB(f,G){if(!f)return!1;switch(f.type){case"ObjectProperty":case"ClassProperty":case"ClassAccessorProperty":case"ClassPrivateProperty":break;default:return!1}return G==null||B.default(f,G)}function PB(f,G){if(!f)return!1;switch(f.type){case"UnaryExpression":case"SpreadElement":break;default:return!1}return G==null||B.default(f,G)}function DB(f,G){if(!f)return!1;switch(f.type){case"AssignmentPattern":case"ArrayPattern":case"ObjectPattern":break;case"Placeholder":if(f.expectedNode==="Pattern")break;default:return!1}return G==null||B.default(f,G)}function IB(f,G){if(!f)return!1;switch(f.type){case"ClassExpression":case"ClassDeclaration":break;default:return!1}return G==null||B.default(f,G)}function zU(f,G){if(!f)return!1;switch(f.type){case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ImportDeclaration":break;default:return!1}return G==null||B.default(f,G)}function TB(f,G){if(!f)return!1;switch(f.type){case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":break;default:return!1}return G==null||B.default(f,G)}function NB(f,G){if(!f)return!1;switch(f.type){case"ExportSpecifier":case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":case"ImportSpecifier":case"ExportNamespaceSpecifier":case"ExportDefaultSpecifier":break;default:return!1}return G==null||B.default(f,G)}function LB(f,G){if(!f)return!1;switch(f.type){case"ClassAccessorProperty":break;default:return!1}return G==null||B.default(f,G)}function bB(f,G){if(!f)return!1;switch(f.type){case"ClassPrivateProperty":case"ClassPrivateMethod":case"PrivateName":break;default:return!1}return G==null||B.default(f,G)}function EB(f,G){if(!f)return!1;switch(f.type){case"AnyTypeAnnotation":case"ArrayTypeAnnotation":case"BooleanTypeAnnotation":case"BooleanLiteralTypeAnnotation":case"NullLiteralTypeAnnotation":case"ClassImplements":case"DeclareClass":case"DeclareFunction":case"DeclareInterface":case"DeclareModule":case"DeclareModuleExports":case"DeclareTypeAlias":case"DeclareOpaqueType":case"DeclareVariable":case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":case"DeclaredPredicate":case"ExistsTypeAnnotation":case"FunctionTypeAnnotation":case"FunctionTypeParam":case"GenericTypeAnnotation":case"InferredPredicate":case"InterfaceExtends":case"InterfaceDeclaration":case"InterfaceTypeAnnotation":case"IntersectionTypeAnnotation":case"MixedTypeAnnotation":case"EmptyTypeAnnotation":case"NullableTypeAnnotation":case"NumberLiteralTypeAnnotation":case"NumberTypeAnnotation":case"ObjectTypeAnnotation":case"ObjectTypeInternalSlot":case"ObjectTypeCallProperty":case"ObjectTypeIndexer":case"ObjectTypeProperty":case"ObjectTypeSpreadProperty":case"OpaqueType":case"QualifiedTypeIdentifier":case"StringLiteralTypeAnnotation":case"StringTypeAnnotation":case"SymbolTypeAnnotation":case"ThisTypeAnnotation":case"TupleTypeAnnotation":case"TypeofTypeAnnotation":case"TypeAlias":case"TypeAnnotation":case"TypeCastExpression":case"TypeParameter":case"TypeParameterDeclaration":case"TypeParameterInstantiation":case"UnionTypeAnnotation":case"Variance":case"VoidTypeAnnotation":case"EnumDeclaration":case"EnumBooleanBody":case"EnumNumberBody":case"EnumStringBody":case"EnumSymbolBody":case"EnumBooleanMember":case"EnumNumberMember":case"EnumStringMember":case"EnumDefaultedMember":case"IndexedAccessType":case"OptionalIndexedAccessType":break;default:return!1}return G==null||B.default(f,G)}function wB(f,G){if(!f)return!1;switch(f.type){case"AnyTypeAnnotation":case"ArrayTypeAnnotation":case"BooleanTypeAnnotation":case"BooleanLiteralTypeAnnotation":case"NullLiteralTypeAnnotation":case"ExistsTypeAnnotation":case"FunctionTypeAnnotation":case"GenericTypeAnnotation":case"InterfaceTypeAnnotation":case"IntersectionTypeAnnotation":case"MixedTypeAnnotation":case"EmptyTypeAnnotation":case"NullableTypeAnnotation":case"NumberLiteralTypeAnnotation":case"NumberTypeAnnotation":case"ObjectTypeAnnotation":case"StringLiteralTypeAnnotation":case"StringTypeAnnotation":case"SymbolTypeAnnotation":case"ThisTypeAnnotation":case"TupleTypeAnnotation":case"TypeofTypeAnnotation":case"UnionTypeAnnotation":case"VoidTypeAnnotation":case"IndexedAccessType":case"OptionalIndexedAccessType":break;default:return!1}return G==null||B.default(f,G)}function kB(f,G){if(!f)return!1;switch(f.type){case"AnyTypeAnnotation":case"BooleanTypeAnnotation":case"NullLiteralTypeAnnotation":case"MixedTypeAnnotation":case"EmptyTypeAnnotation":case"NumberTypeAnnotation":case"StringTypeAnnotation":case"SymbolTypeAnnotation":case"ThisTypeAnnotation":case"VoidTypeAnnotation":break;default:return!1}return G==null||B.default(f,G)}function vB(f,G){if(!f)return!1;switch(f.type){case"DeclareClass":case"DeclareFunction":case"DeclareInterface":case"DeclareModule":case"DeclareModuleExports":case"DeclareTypeAlias":case"DeclareOpaqueType":case"DeclareVariable":case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":case"InterfaceDeclaration":case"OpaqueType":case"TypeAlias":break;default:return!1}return G==null||B.default(f,G)}function gB(f,G){if(!f)return!1;switch(f.type){case"DeclaredPredicate":case"InferredPredicate":break;default:return!1}return G==null||B.default(f,G)}function _B(f,G){if(!f)return!1;switch(f.type){case"EnumBooleanBody":case"EnumNumberBody":case"EnumStringBody":case"EnumSymbolBody":break;default:return!1}return G==null||B.default(f,G)}function uB(f,G){if(!f)return!1;switch(f.type){case"EnumBooleanMember":case"EnumNumberMember":case"EnumStringMember":case"EnumDefaultedMember":break;default:return!1}return G==null||B.default(f,G)}function hB(f,G){if(!f)return!1;switch(f.type){case"JSXAttribute":case"JSXClosingElement":case"JSXElement":case"JSXEmptyExpression":case"JSXExpressionContainer":case"JSXSpreadChild":case"JSXIdentifier":case"JSXMemberExpression":case"JSXNamespacedName":case"JSXOpeningElement":case"JSXSpreadAttribute":case"JSXText":case"JSXFragment":case"JSXOpeningFragment":case"JSXClosingFragment":break;default:return!1}return G==null||B.default(f,G)}function yB(f,G){if(!f)return!1;switch(f.type){case"Noop":case"Placeholder":case"V8IntrinsicIdentifier":break;default:return!1}return G==null||B.default(f,G)}function xB(f,G){if(!f)return!1;switch(f.type){case"TSParameterProperty":case"TSDeclareFunction":case"TSDeclareMethod":case"TSQualifiedName":case"TSCallSignatureDeclaration":case"TSConstructSignatureDeclaration":case"TSPropertySignature":case"TSMethodSignature":case"TSIndexSignature":case"TSAnyKeyword":case"TSBooleanKeyword":case"TSBigIntKeyword":case"TSIntrinsicKeyword":case"TSNeverKeyword":case"TSNullKeyword":case"TSNumberKeyword":case"TSObjectKeyword":case"TSStringKeyword":case"TSSymbolKeyword":case"TSUndefinedKeyword":case"TSUnknownKeyword":case"TSVoidKeyword":case"TSThisType":case"TSFunctionType":case"TSConstructorType":case"TSTypeReference":case"TSTypePredicate":case"TSTypeQuery":case"TSTypeLiteral":case"TSArrayType":case"TSTupleType":case"TSOptionalType":case"TSRestType":case"TSNamedTupleMember":case"TSUnionType":case"TSIntersectionType":case"TSConditionalType":case"TSInferType":case"TSParenthesizedType":case"TSTypeOperator":case"TSIndexedAccessType":case"TSMappedType":case"TSTemplateLiteralType":case"TSLiteralType":case"TSExpressionWithTypeArguments":case"TSInterfaceDeclaration":case"TSInterfaceBody":case"TSTypeAliasDeclaration":case"TSInstantiationExpression":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSEnumBody":case"TSEnumDeclaration":case"TSEnumMember":case"TSModuleDeclaration":case"TSModuleBlock":case"TSImportType":case"TSImportEqualsDeclaration":case"TSExternalModuleReference":case"TSNonNullExpression":case"TSExportAssignment":case"TSNamespaceExportDeclaration":case"TSTypeAnnotation":case"TSTypeParameterInstantiation":case"TSTypeParameterDeclaration":case"TSTypeParameter":break;default:return!1}return G==null||B.default(f,G)}function mB(f,G){if(!f)return!1;switch(f.type){case"TSCallSignatureDeclaration":case"TSConstructSignatureDeclaration":case"TSPropertySignature":case"TSMethodSignature":case"TSIndexSignature":break;default:return!1}return G==null||B.default(f,G)}function lB(f,G){if(!f)return!1;switch(f.type){case"TSAnyKeyword":case"TSBooleanKeyword":case"TSBigIntKeyword":case"TSIntrinsicKeyword":case"TSNeverKeyword":case"TSNullKeyword":case"TSNumberKeyword":case"TSObjectKeyword":case"TSStringKeyword":case"TSSymbolKeyword":case"TSUndefinedKeyword":case"TSUnknownKeyword":case"TSVoidKeyword":case"TSThisType":case"TSFunctionType":case"TSConstructorType":case"TSTypeReference":case"TSTypePredicate":case"TSTypeQuery":case"TSTypeLiteral":case"TSArrayType":case"TSTupleType":case"TSOptionalType":case"TSRestType":case"TSUnionType":case"TSIntersectionType":case"TSConditionalType":case"TSInferType":case"TSParenthesizedType":case"TSTypeOperator":case"TSIndexedAccessType":case"TSMappedType":case"TSTemplateLiteralType":case"TSLiteralType":case"TSExpressionWithTypeArguments":case"TSImportType":break;default:return!1}return G==null||B.default(f,G)}function cB(f,G){if(!f)return!1;switch(f.type){case"TSAnyKeyword":case"TSBooleanKeyword":case"TSBigIntKeyword":case"TSIntrinsicKeyword":case"TSNeverKeyword":case"TSNullKeyword":case"TSNumberKeyword":case"TSObjectKeyword":case"TSStringKeyword":case"TSSymbolKeyword":case"TSUndefinedKeyword":case"TSUnknownKeyword":case"TSVoidKeyword":case"TSThisType":case"TSTemplateLiteralType":case"TSLiteralType":break;default:return!1}return G==null||B.default(f,G)}function aB(f,G){if(u1.default("isNumberLiteral","isNumericLiteral"),!f)return!1;if(f.type!=="NumberLiteral")return!1;return G==null||B.default(f,G)}function iB(f,G){if(u1.default("isRegexLiteral","isRegExpLiteral"),!f)return!1;if(f.type!=="RegexLiteral")return!1;return G==null||B.default(f,G)}function rB(f,G){if(u1.default("isRestProperty","isRestElement"),!f)return!1;if(f.type!=="RestProperty")return!1;return G==null||B.default(f,G)}function sB(f,G){if(u1.default("isSpreadProperty","isSpreadElement"),!f)return!1;if(f.type!=="SpreadProperty")return!1;return G==null||B.default(f,G)}function pB(f,G){return u1.default("isModuleDeclaration","isImportOrExportDeclaration"),zU(f,G)}});var iW=P((MU)=>{Object.defineProperty(MU,"__esModule",{value:!0});MU.default=EC;var h1=Tf();function EC(f,G,X){if(!h1.isMemberExpression(f))return!1;let W=Array.isArray(G)?G:G.split("."),R=[],J;for(J=f;h1.isMemberExpression(J);J=J.object)R.push(J.property);if(R.push(J),R.length<W.length)return!1;if(!X&&R.length>W.length)return!1;for(let U=0,V=R.length-1;U<W.length;U++,V--){let H=R[V],Q;if(h1.isIdentifier(H))Q=H.name;else if(h1.isStringLiteral(H))Q=H.value;else if(h1.isThisExpression(H))Q="this";else return!1;if(W[U]!==Q)return!1}return!0}});var rW=P((KU)=>{Object.defineProperty(KU,"__esModule",{value:!0});KU.default=vC;var kC=iW();function vC(f,G){let X=f.split(".");return(W)=>kC.default(W,X,G)}});var $U=P((SU)=>{Object.defineProperty(SU,"__esModule",{value:!0});SU.default=void 0;var _C=rW(),uC=_C.default("React.Component"),gYf=SU.default=uC});var qU=P((CU)=>{Object.defineProperty(CU,"__esModule",{value:!0});CU.default=hC;function hC(f){return!!f&&/^[a-z]/.test(f)}});var TX=P((OU)=>{Object.defineProperty(OU,"__esModule",{value:!0});OU.default=xC;var AU=of();function xC(f,G){if(f===G)return!0;if(f==null)return!1;if(AU.ALIAS_KEYS[G])return!1;let X=AU.FLIPPED_ALIAS_KEYS[G];if(X){if(X[0]===f)return!0;for(let W of X)if(f===W)return!0}return!1}});var sW=P((jU)=>{Object.defineProperty(jU,"__esModule",{value:!0});jU.default=cC;var lC=of();function cC(f,G){if(f===G)return!0;let X=lC.PLACEHOLDERS_ALIAS[f];if(X){for(let W of X)if(G===W)return!0}return!1}});var z1=P((PU)=>{Object.defineProperty(PU,"__esModule",{value:!0});PU.default=dC;var iC=IX(),rC=TX(),sC=sW(),pC=of();function dC(f,G,X){if(!G)return!1;if(!rC.default(G.type,f)){if(!X&&G.type==="Placeholder"&&f in pC.FLIPPED_ALIAS_KEYS)return sC.default(G.expectedNode,f);return!1}if(X===void 0)return!0;else return iC.default(G,X)}});var bU=P((LU)=>{Object.defineProperty(LU,"__esModule",{value:!0});LU.isIdentifierChar=NU;LU.isIdentifierName=fq;LU.isIdentifierStart=TU;var dW="\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CD\uA7D0\uA7D1\uA7D3\uA7D5-\uA7DC\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC",DU="\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0897-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ACE\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F\uFF65",nC=new RegExp("["+dW+"]"),oC=new RegExp("["+dW+DU+"]");dW=DU=null;var IU=[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,4,51,13,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,39,27,10,22,251,41,7,1,17,2,60,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,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,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,200,32,32,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,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,42,9,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,229,29,3,0,496,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],eC=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,80,3,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,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,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,343,9,54,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,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,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,245,1,2,9,726,6,110,6,6,9,4759,9,787719,239];function pW(f,G){let X=65536;for(let W=0,R=G.length;W<R;W+=2){if(X+=G[W],X>f)return!1;if(X+=G[W+1],X>=f)return!0}return!1}function TU(f){if(f<65)return f===36;if(f<=90)return!0;if(f<97)return f===95;if(f<=122)return!0;if(f<=65535)return f>=170&&nC.test(String.fromCharCode(f));return pW(f,IU)}function NU(f){if(f<48)return f===36;if(f<58)return!0;if(f<65)return!1;if(f<=90)return!0;if(f<97)return f===95;if(f<=122)return!0;if(f<=65535)return f>=170&&oC.test(String.fromCharCode(f));return pW(f,IU)||pW(f,eC)}function fq(f){let G=!0;for(let X=0;X<f.length;X++){let W=f.charCodeAt(X);if((W&64512)===55296&&X+1<f.length){let R=f.charCodeAt(++X);if((R&64512)===56320)W=65536+((W&1023)<<10)+(R&1023)}if(G){if(G=!1,!TU(W))return!1}else if(!NU(W))return!1}return!G}});var gU=P((vU)=>{Object.defineProperty(vU,"__esModule",{value:!0});vU.isKeyword=Hq;vU.isReservedWord=EU;vU.isStrictBindOnlyReservedWord=kU;vU.isStrictBindReservedWord=Vq;vU.isStrictReservedWord=wU;var tW={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"]},Rq=new Set(tW.keyword),Jq=new Set(tW.strict),Uq=new Set(tW.strictBind);function EU(f,G){return G&&f==="await"||f==="enum"}function wU(f,G){return EU(f,G)||Jq.has(f)}function kU(f){return Uq.has(f)}function Vq(f,G){return wU(f,G)||kU(f)}function Hq(f){return Rq.has(f)}});var x1=P((zG)=>{Object.defineProperty(zG,"__esModule",{value:!0});Object.defineProperty(zG,"isIdentifierChar",{enumerable:!0,get:function(){return nW.isIdentifierChar}});Object.defineProperty(zG,"isIdentifierName",{enumerable:!0,get:function(){return nW.isIdentifierName}});Object.defineProperty(zG,"isIdentifierStart",{enumerable:!0,get:function(){return nW.isIdentifierStart}});Object.defineProperty(zG,"isKeyword",{enumerable:!0,get:function(){return y1.isKeyword}});Object.defineProperty(zG,"isReservedWord",{enumerable:!0,get:function(){return y1.isReservedWord}});Object.defineProperty(zG,"isStrictBindOnlyReservedWord",{enumerable:!0,get:function(){return y1.isStrictBindOnlyReservedWord}});Object.defineProperty(zG,"isStrictBindReservedWord",{enumerable:!0,get:function(){return y1.isStrictBindReservedWord}});Object.defineProperty(zG,"isStrictReservedWord",{enumerable:!0,get:function(){return y1.isStrictReservedWord}});var nW=bU(),y1=gU()});var B1=P((_U)=>{Object.defineProperty(_U,"__esModule",{value:!0});_U.default=Mq;var oW=x1();function Mq(f,G=!0){if(typeof f!=="string")return!1;if(G){if(oW.isKeyword(f)||oW.isStrictReservedWord(f,!0))return!1}return oW.isIdentifierName(f)}});var mU=P((xU)=>{Object.defineProperty(xU,"__esModule",{value:!0});xU.readCodePoint=yU;xU.readInt=hU;xU.readStringContents=Fq;var Sq=function f(G){return G>=48&&G<=57},uU={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},NX={bin:(f)=>f===48||f===49,oct:(f)=>f>=48&&f<=55,dec:(f)=>f>=48&&f<=57,hex:(f)=>f>=48&&f<=57||f>=65&&f<=70||f>=97&&f<=102};function Fq(f,G,X,W,R,J){let U=X,V=W,H=R,Q="",Y=null,F=X,{length:q}=G;for(;;){if(X>=q){J.unterminated(U,V,H),Q+=G.slice(F,X);break}let A=G.charCodeAt(X);if($q(f,A,G,X)){Q+=G.slice(F,X);break}if(A===92){Q+=G.slice(F,X);let j=Cq(G,X,W,R,f==="template",J);if(j.ch===null&&!Y)Y={pos:X,lineStart:W,curLine:R};else Q+=j.ch;({pos:X,lineStart:W,curLine:R}=j),F=X}else if(A===8232||A===8233)++X,++R,W=X;else if(A===10||A===13)if(f==="template"){if(Q+=G.slice(F,X)+`
|
|
7
|
-
`,++
|
|
8
|
-
`);case 114:return
|
|
9
|
-
${
|
|
10
|
-
`)}`)}return G.shapeOf=f,G}function QA(){function f(G){var X;let W=G;while(G){let{type:R}=W;if(R==="OptionalCallExpression"){if(W.optional)return;W=W.callee;continue}if(R==="OptionalMemberExpression"){if(W.optional)return;W=W.object;continue}break}throw new TypeError(`Non-optional ${G.type} must chain from an optional OptionalMemberExpression or OptionalCallExpression. Found chain from ${(X=W)==null?void 0:X.type}`)}return f}function dU(...f){function G(...X){for(let W of f)W(...X)}if(G.chainOf=f,f.length>=2&&"type"in f[0]&&f[0].type==="array"&&!("each"in f[1]))throw new Error('An assertValueType("array") validator can only be followed by an assertEach(...) validator.');return G}var ZA=new Set(["aliases","builder","deprecatedAlias","fields","inherits","visitor","validate"]),YA=new Set(["default","optional","deprecated","validate"]),G2={};function zA(...f){return(G,X={})=>{let W=X.aliases;if(!W){var R;if(X.inherits)W=(R=G2[X.inherits].aliases)==null?void 0:R.slice();W!=null||(W=[]),X.aliases=W}let J=f.filter((U)=>!W.includes(U));W.unshift(...J),tU(G,X)}}function tU(f,G={}){let X=G.inherits&&G2[G.inherits]||{},W=G.fields;if(!W){if(W={},X.fields){let V=Object.getOwnPropertyNames(X.fields);for(let H of V){let Q=X.fields[H],Y=Q.default;if(Array.isArray(Y)?Y.length>0:Y&&typeof Y==="object")throw new Error("field defaults can only be primitives or empty arrays currently");W[H]={default:Array.isArray(Y)?[]:Y,optional:Q.optional,deprecated:Q.deprecated,validate:Q.validate}}}}let R=G.visitor||X.visitor||[],J=G.aliases||X.aliases||[],U=G.builder||X.builder||G.visitor||[];for(let V of Object.keys(G))if(!ZA.has(V))throw new Error(`Unknown type option "${V}" on ${f}`);if(G.deprecatedAlias)fA[G.deprecatedAlias]=f;for(let V of R.concat(U))W[V]=W[V]||{};for(let V of Object.keys(W)){let H=W[V];if(H.default!==void 0&&!U.includes(V))H.optional=!0;if(H.default===void 0)H.default=null;else if(!H.validate&&H.default!=null)H.validate=W2(LX(H.default));for(let Q of Object.keys(H))if(!YA.has(Q))throw new Error(`Unknown field key "${Q}" on ${f}.${V}`)}if(tq[f]=G.visitor=R,eq[f]=G.builder=U,oq[f]=G.fields=W,nq[f]=G.aliases=J,J.forEach((V)=>{f2[V]=f2[V]||[],f2[V].push(f)}),G.validate)GA[f]=G.validate;G2[f]=G}});var l1=P((G6)=>{Object.defineProperty(G6,"__esModule",{value:!0});G6.patternLikeCommon=G6.importAttributes=G6.functionTypeAnnotationCommon=G6.functionDeclarationCommon=G6.functionCommon=G6.classMethodOrPropertyCommon=G6.classMethodOrDeclareMethodCommon=void 0;var uf=z1(),_A=B1(),eU=x1(),uA=mU(),m1=wG(),M=BG(),v=M.defineAliasedType("Standardized");v("ArrayExpression",{fields:{elements:{validate:M.arrayOf(M.assertNodeOrValueType("null","Expression","SpreadElement")),default:!process.env.BABEL_TYPES_8_BREAKING?[]:void 0}},visitor:["elements"],aliases:["Expression"]});v("AssignmentExpression",{fields:{operator:{validate:!process.env.BABEL_TYPES_8_BREAKING?M.assertValueType("string"):Object.assign(function(){let f=M.assertOneOf(...m1.ASSIGNMENT_OPERATORS),G=M.assertOneOf("=");return function(X,W,R){(uf.default("Pattern",X.left)?G:f)(X,W,R)}}(),{type:"string"})},left:{validate:!process.env.BABEL_TYPES_8_BREAKING?M.assertNodeType("LVal","OptionalMemberExpression"):M.assertNodeType("Identifier","MemberExpression","OptionalMemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression")},right:{validate:M.assertNodeType("Expression")}},builder:["operator","left","right"],visitor:["left","right"],aliases:["Expression"]});v("BinaryExpression",{builder:["operator","left","right"],fields:{operator:{validate:M.assertOneOf(...m1.BINARY_OPERATORS)},left:{validate:function(){let f=M.assertNodeType("Expression"),G=M.assertNodeType("Expression","PrivateName");return Object.assign(function(W,R,J){(W.operator==="in"?G:f)(W,R,J)},{oneOfNodeTypes:["Expression","PrivateName"]})}()},right:{validate:M.assertNodeType("Expression")}},visitor:["left","right"],aliases:["Binary","Expression"]});v("InterpreterDirective",{builder:["value"],fields:{value:{validate:M.assertValueType("string")}}});v("Directive",{visitor:["value"],fields:{value:{validate:M.assertNodeType("DirectiveLiteral")}}});v("DirectiveLiteral",{builder:["value"],fields:{value:{validate:M.assertValueType("string")}}});v("BlockStatement",{builder:["body","directives"],visitor:["directives","body"],fields:{directives:{validate:M.arrayOfType("Directive"),default:[]},body:M.validateArrayOfType("Statement")},aliases:["Scopable","BlockParent","Block","Statement"]});v("BreakStatement",{visitor:["label"],fields:{label:{validate:M.assertNodeType("Identifier"),optional:!0}},aliases:["Statement","Terminatorless","CompletionStatement"]});v("CallExpression",{visitor:["callee","arguments","typeParameters","typeArguments"],builder:["callee","arguments"],aliases:["Expression"],fields:Object.assign({callee:{validate:M.assertNodeType("Expression","Super","V8IntrinsicIdentifier")},arguments:M.validateArrayOfType("Expression","SpreadElement","ArgumentPlaceholder"),typeArguments:{validate:M.assertNodeType("TypeParameterInstantiation"),optional:!0}},{optional:{validate:M.assertValueType("boolean"),optional:!0},typeParameters:{validate:M.assertNodeType("TSTypeParameterInstantiation"),optional:!0}},process.env.BABEL_TYPES_8_BREAKING?{}:{optional:{validate:M.assertValueType("boolean"),optional:!0}})});v("CatchClause",{visitor:["param","body"],fields:{param:{validate:M.assertNodeType("Identifier","ArrayPattern","ObjectPattern"),optional:!0},body:{validate:M.assertNodeType("BlockStatement")}},aliases:["Scopable","BlockParent"]});v("ConditionalExpression",{visitor:["test","consequent","alternate"],fields:{test:{validate:M.assertNodeType("Expression")},consequent:{validate:M.assertNodeType("Expression")},alternate:{validate:M.assertNodeType("Expression")}},aliases:["Expression","Conditional"]});v("ContinueStatement",{visitor:["label"],fields:{label:{validate:M.assertNodeType("Identifier"),optional:!0}},aliases:["Statement","Terminatorless","CompletionStatement"]});v("DebuggerStatement",{aliases:["Statement"]});v("DoWhileStatement",{builder:["test","body"],visitor:["body","test"],fields:{test:{validate:M.assertNodeType("Expression")},body:{validate:M.assertNodeType("Statement")}},aliases:["Statement","BlockParent","Loop","While","Scopable"]});v("EmptyStatement",{aliases:["Statement"]});v("ExpressionStatement",{visitor:["expression"],fields:{expression:{validate:M.assertNodeType("Expression")}},aliases:["Statement","ExpressionWrapper"]});v("File",{builder:["program","comments","tokens"],visitor:["program"],fields:{program:{validate:M.assertNodeType("Program")},comments:{validate:!process.env.BABEL_TYPES_8_BREAKING?Object.assign(()=>{},{each:{oneOfNodeTypes:["CommentBlock","CommentLine"]}}):M.assertEach(M.assertNodeType("CommentBlock","CommentLine")),optional:!0},tokens:{validate:M.assertEach(Object.assign(()=>{},{type:"any"})),optional:!0}}});v("ForInStatement",{visitor:["left","right","body"],aliases:["Scopable","Statement","For","BlockParent","Loop","ForXStatement"],fields:{left:{validate:!process.env.BABEL_TYPES_8_BREAKING?M.assertNodeType("VariableDeclaration","LVal"):M.assertNodeType("VariableDeclaration","Identifier","MemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression")},right:{validate:M.assertNodeType("Expression")},body:{validate:M.assertNodeType("Statement")}}});v("ForStatement",{visitor:["init","test","update","body"],aliases:["Scopable","Statement","For","BlockParent","Loop"],fields:{init:{validate:M.assertNodeType("VariableDeclaration","Expression"),optional:!0},test:{validate:M.assertNodeType("Expression"),optional:!0},update:{validate:M.assertNodeType("Expression"),optional:!0},body:{validate:M.assertNodeType("Statement")}}});var M1=()=>({params:M.validateArrayOfType("Identifier","Pattern","RestElement"),generator:{default:!1},async:{default:!1}});G6.functionCommon=M1;var rG=()=>({returnType:{validate:M.assertNodeType("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},typeParameters:{validate:M.assertNodeType("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:!0}});G6.functionTypeAnnotationCommon=rG;var f6=()=>Object.assign({},M1(),{declare:{validate:M.assertValueType("boolean"),optional:!0},id:{validate:M.assertNodeType("Identifier"),optional:!0}});G6.functionDeclarationCommon=f6;v("FunctionDeclaration",{builder:["id","params","body","generator","async"],visitor:["id","typeParameters","params","predicate","returnType","body"],fields:Object.assign({},f6(),rG(),{body:{validate:M.assertNodeType("BlockStatement")},predicate:{validate:M.assertNodeType("DeclaredPredicate","InferredPredicate"),optional:!0}}),aliases:["Scopable","Function","BlockParent","FunctionParent","Statement","Pureish","Declaration"],validate:!process.env.BABEL_TYPES_8_BREAKING?void 0:function(){let f=M.assertNodeType("Identifier");return function(G,X,W){if(!uf.default("ExportDefaultDeclaration",G))f(W,"id",W.id)}}()});v("FunctionExpression",{inherits:"FunctionDeclaration",aliases:["Scopable","Function","BlockParent","FunctionParent","Expression","Pureish"],fields:Object.assign({},M1(),rG(),{id:{validate:M.assertNodeType("Identifier"),optional:!0},body:{validate:M.assertNodeType("BlockStatement")},predicate:{validate:M.assertNodeType("DeclaredPredicate","InferredPredicate"),optional:!0}})});var K1=()=>({typeAnnotation:{validate:M.assertNodeType("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},optional:{validate:M.assertValueType("boolean"),optional:!0},decorators:{validate:M.arrayOfType("Decorator"),optional:!0}});G6.patternLikeCommon=K1;v("Identifier",{builder:["name"],visitor:["typeAnnotation","decorators"],aliases:["Expression","PatternLike","LVal","TSEntityName"],fields:Object.assign({},K1(),{name:{validate:process.env.BABEL_TYPES_8_BREAKING?M.chain(M.assertValueType("string"),Object.assign(function(f,G,X){if(!_A.default(X,!1))throw new TypeError(`"${X}" is not a valid identifier name`)},{type:"string"})):M.assertValueType("string")}}),validate:process.env.BABEL_TYPES_8_BREAKING?function(f,G,X){let W=/\.(\w+)$/.exec(G);if(!W)return;let[,R]=W,J={computed:!1};if(R==="property"){if(uf.default("MemberExpression",f,J))return;if(uf.default("OptionalMemberExpression",f,J))return}else if(R==="key"){if(uf.default("Property",f,J))return;if(uf.default("Method",f,J))return}else if(R==="exported"){if(uf.default("ExportSpecifier",f))return}else if(R==="imported"){if(uf.default("ImportSpecifier",f,{imported:X}))return}else if(R==="meta"){if(uf.default("MetaProperty",f,{meta:X}))return}if((eU.isKeyword(X.name)||eU.isReservedWord(X.name,!1))&&X.name!=="this")throw new TypeError(`"${X.name}" is not a valid identifier`)}:void 0});v("IfStatement",{visitor:["test","consequent","alternate"],aliases:["Statement","Conditional"],fields:{test:{validate:M.assertNodeType("Expression")},consequent:{validate:M.assertNodeType("Statement")},alternate:{optional:!0,validate:M.assertNodeType("Statement")}}});v("LabeledStatement",{visitor:["label","body"],aliases:["Statement"],fields:{label:{validate:M.assertNodeType("Identifier")},body:{validate:M.assertNodeType("Statement")}}});v("StringLiteral",{builder:["value"],fields:{value:{validate:M.assertValueType("string")}},aliases:["Expression","Pureish","Literal","Immutable"]});v("NumericLiteral",{builder:["value"],deprecatedAlias:"NumberLiteral",fields:{value:{validate:M.chain(M.assertValueType("number"),Object.assign(function(f,G,X){if(1/X<0||!Number.isFinite(X)){let W=new Error(`NumericLiterals must be non-negative finite numbers. You can use t.valueToNode(${X}) instead.`)}},{type:"number"}))}},aliases:["Expression","Pureish","Literal","Immutable"]});v("NullLiteral",{aliases:["Expression","Pureish","Literal","Immutable"]});v("BooleanLiteral",{builder:["value"],fields:{value:{validate:M.assertValueType("boolean")}},aliases:["Expression","Pureish","Literal","Immutable"]});v("RegExpLiteral",{builder:["pattern","flags"],deprecatedAlias:"RegexLiteral",aliases:["Expression","Pureish","Literal"],fields:{pattern:{validate:M.assertValueType("string")},flags:{validate:process.env.BABEL_TYPES_8_BREAKING?M.chain(M.assertValueType("string"),Object.assign(function(f,G,X){let W=/[^gimsuy]/.exec(X);if(W)throw new TypeError(`"${W[0]}" is not a valid RegExp flag`)},{type:"string"})):M.assertValueType("string"),default:""}}});v("LogicalExpression",{builder:["operator","left","right"],visitor:["left","right"],aliases:["Binary","Expression"],fields:{operator:{validate:M.assertOneOf(...m1.LOGICAL_OPERATORS)},left:{validate:M.assertNodeType("Expression")},right:{validate:M.assertNodeType("Expression")}}});v("MemberExpression",{builder:["object","property","computed",...!process.env.BABEL_TYPES_8_BREAKING?["optional"]:[]],visitor:["object","property"],aliases:["Expression","LVal"],fields:Object.assign({object:{validate:M.assertNodeType("Expression","Super")},property:{validate:function(){let f=M.assertNodeType("Identifier","PrivateName"),G=M.assertNodeType("Expression"),X=function(W,R,J){(W.computed?G:f)(W,R,J)};return X.oneOfNodeTypes=["Expression","Identifier","PrivateName"],X}()},computed:{default:!1}},!process.env.BABEL_TYPES_8_BREAKING?{optional:{validate:M.assertValueType("boolean"),optional:!0}}:{})});v("NewExpression",{inherits:"CallExpression"});v("Program",{visitor:["directives","body"],builder:["body","directives","sourceType","interpreter"],fields:{sourceType:{validate:M.assertOneOf("script","module"),default:"script"},interpreter:{validate:M.assertNodeType("InterpreterDirective"),default:null,optional:!0},directives:{validate:M.arrayOfType("Directive"),default:[]},body:M.validateArrayOfType("Statement")},aliases:["Scopable","BlockParent","Block"]});v("ObjectExpression",{visitor:["properties"],aliases:["Expression"],fields:{properties:M.validateArrayOfType("ObjectMethod","ObjectProperty","SpreadElement")}});v("ObjectMethod",{builder:["kind","key","params","body","computed","generator","async"],visitor:["decorators","key","typeParameters","params","returnType","body"],fields:Object.assign({},M1(),rG(),{kind:Object.assign({validate:M.assertOneOf("method","get","set")},!process.env.BABEL_TYPES_8_BREAKING?{default:"method"}:{}),computed:{default:!1},key:{validate:function(){let f=M.assertNodeType("Identifier","StringLiteral","NumericLiteral","BigIntLiteral"),G=M.assertNodeType("Expression"),X=function(W,R,J){(W.computed?G:f)(W,R,J)};return X.oneOfNodeTypes=["Expression","Identifier","StringLiteral","NumericLiteral","BigIntLiteral"],X}()},decorators:{validate:M.arrayOfType("Decorator"),optional:!0},body:{validate:M.assertNodeType("BlockStatement")}}),aliases:["UserWhitespacable","Function","Scopable","BlockParent","FunctionParent","Method","ObjectMember"]});v("ObjectProperty",{builder:["key","value","computed","shorthand",...!process.env.BABEL_TYPES_8_BREAKING?["decorators"]:[]],fields:{computed:{default:!1},key:{validate:function(){let f=M.assertNodeType("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","DecimalLiteral","PrivateName"),G=M.assertNodeType("Expression");return Object.assign(function(W,R,J){(W.computed?G:f)(W,R,J)},{oneOfNodeTypes:["Expression","Identifier","StringLiteral","NumericLiteral","BigIntLiteral","DecimalLiteral","PrivateName"]})}()},value:{validate:M.assertNodeType("Expression","PatternLike")},shorthand:{validate:process.env.BABEL_TYPES_8_BREAKING?M.chain(M.assertValueType("boolean"),Object.assign(function(f,G,X){if(!X)return;if(f.computed)throw new TypeError("Property shorthand of ObjectProperty cannot be true if computed is true");if(!uf.default("Identifier",f.key))throw new TypeError("Property shorthand of ObjectProperty cannot be true if key is not an Identifier")},{type:"boolean"})):M.assertValueType("boolean"),default:!1},decorators:{validate:M.arrayOfType("Decorator"),optional:!0}},visitor:["key","value","decorators"],aliases:["UserWhitespacable","Property","ObjectMember"],validate:!process.env.BABEL_TYPES_8_BREAKING?void 0:function(){let f=M.assertNodeType("Identifier","Pattern","TSAsExpression","TSSatisfiesExpression","TSNonNullExpression","TSTypeAssertion"),G=M.assertNodeType("Expression");return function(X,W,R){(uf.default("ObjectPattern",X)?f:G)(R,"value",R.value)}}()});v("RestElement",{visitor:["argument","typeAnnotation"],builder:["argument"],aliases:["LVal","PatternLike"],deprecatedAlias:"RestProperty",fields:Object.assign({},K1(),{argument:{validate:!process.env.BABEL_TYPES_8_BREAKING?M.assertNodeType("LVal"):M.assertNodeType("Identifier","ArrayPattern","ObjectPattern","MemberExpression","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression")}}),validate:process.env.BABEL_TYPES_8_BREAKING?function(f,G){let X=/(\w+)\[(\d+)\]/.exec(G);if(!X)throw new Error("Internal Babel error: malformed key.");let[,W,R]=X;if(f[W].length>+R+1)throw new TypeError(`RestElement must be last element of ${W}`)}:void 0});v("ReturnStatement",{visitor:["argument"],aliases:["Statement","Terminatorless","CompletionStatement"],fields:{argument:{validate:M.assertNodeType("Expression"),optional:!0}}});v("SequenceExpression",{visitor:["expressions"],fields:{expressions:M.validateArrayOfType("Expression")},aliases:["Expression"]});v("ParenthesizedExpression",{visitor:["expression"],aliases:["Expression","ExpressionWrapper"],fields:{expression:{validate:M.assertNodeType("Expression")}}});v("SwitchCase",{visitor:["test","consequent"],fields:{test:{validate:M.assertNodeType("Expression"),optional:!0},consequent:M.validateArrayOfType("Statement")}});v("SwitchStatement",{visitor:["discriminant","cases"],aliases:["Statement","BlockParent","Scopable"],fields:{discriminant:{validate:M.assertNodeType("Expression")},cases:M.validateArrayOfType("SwitchCase")}});v("ThisExpression",{aliases:["Expression"]});v("ThrowStatement",{visitor:["argument"],aliases:["Statement","Terminatorless","CompletionStatement"],fields:{argument:{validate:M.assertNodeType("Expression")}}});v("TryStatement",{visitor:["block","handler","finalizer"],aliases:["Statement"],fields:{block:{validate:process.env.BABEL_TYPES_8_BREAKING?M.chain(M.assertNodeType("BlockStatement"),Object.assign(function(f){if(!f.handler&&!f.finalizer)throw new TypeError("TryStatement expects either a handler or finalizer, or both")},{oneOfNodeTypes:["BlockStatement"]})):M.assertNodeType("BlockStatement")},handler:{optional:!0,validate:M.assertNodeType("CatchClause")},finalizer:{optional:!0,validate:M.assertNodeType("BlockStatement")}}});v("UnaryExpression",{builder:["operator","argument","prefix"],fields:{prefix:{default:!0},argument:{validate:M.assertNodeType("Expression")},operator:{validate:M.assertOneOf(...m1.UNARY_OPERATORS)}},visitor:["argument"],aliases:["UnaryLike","Expression"]});v("UpdateExpression",{builder:["operator","argument","prefix"],fields:{prefix:{default:!1},argument:{validate:!process.env.BABEL_TYPES_8_BREAKING?M.assertNodeType("Expression"):M.assertNodeType("Identifier","MemberExpression")},operator:{validate:M.assertOneOf(...m1.UPDATE_OPERATORS)}},visitor:["argument"],aliases:["Expression"]});v("VariableDeclaration",{builder:["kind","declarations"],visitor:["declarations"],aliases:["Statement","Declaration"],fields:{declare:{validate:M.assertValueType("boolean"),optional:!0},kind:{validate:M.assertOneOf("var","let","const","using","await using")},declarations:M.validateArrayOfType("VariableDeclarator")},validate:process.env.BABEL_TYPES_8_BREAKING?(()=>{let f=M.assertNodeType("Identifier");return function(G,X,W){if(uf.default("ForXStatement",G,{left:W})){if(W.declarations.length!==1)throw new TypeError(`Exactly one VariableDeclarator is required in the VariableDeclaration of a ${G.type}`)}else W.declarations.forEach((R)=>{if(!R.init)f(R,"id",R.id)})}})():void 0});v("VariableDeclarator",{visitor:["id","init"],fields:{id:{validate:!process.env.BABEL_TYPES_8_BREAKING?M.assertNodeType("LVal"):M.assertNodeType("Identifier","ArrayPattern","ObjectPattern")},definite:{optional:!0,validate:M.assertValueType("boolean")},init:{optional:!0,validate:M.assertNodeType("Expression")}}});v("WhileStatement",{visitor:["test","body"],aliases:["Statement","BlockParent","Loop","While","Scopable"],fields:{test:{validate:M.assertNodeType("Expression")},body:{validate:M.assertNodeType("Statement")}}});v("WithStatement",{visitor:["object","body"],aliases:["Statement"],fields:{object:{validate:M.assertNodeType("Expression")},body:{validate:M.assertNodeType("Statement")}}});v("AssignmentPattern",{visitor:["left","right","decorators"],builder:["left","right"],aliases:["Pattern","PatternLike","LVal"],fields:Object.assign({},K1(),{left:{validate:M.assertNodeType("Identifier","ObjectPattern","ArrayPattern","MemberExpression","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression")},right:{validate:M.assertNodeType("Expression")},decorators:{validate:M.arrayOfType("Decorator"),optional:!0}})});v("ArrayPattern",{visitor:["elements","typeAnnotation"],builder:["elements"],aliases:["Pattern","PatternLike","LVal"],fields:Object.assign({},K1(),{elements:{validate:M.chain(M.assertValueType("array"),M.assertEach(M.assertNodeOrValueType("null","PatternLike","LVal")))}})});v("ArrowFunctionExpression",{builder:["params","body","async"],visitor:["typeParameters","params","predicate","returnType","body"],aliases:["Scopable","Function","BlockParent","FunctionParent","Expression","Pureish"],fields:Object.assign({},M1(),rG(),{expression:{validate:M.assertValueType("boolean")},body:{validate:M.assertNodeType("BlockStatement","Expression")},predicate:{validate:M.assertNodeType("DeclaredPredicate","InferredPredicate"),optional:!0}})});v("ClassBody",{visitor:["body"],fields:{body:M.validateArrayOfType("ClassMethod","ClassPrivateMethod","ClassProperty","ClassPrivateProperty","ClassAccessorProperty","TSDeclareMethod","TSIndexSignature","StaticBlock")}});v("ClassExpression",{builder:["id","superClass","body","decorators"],visitor:["decorators","id","typeParameters","superClass","superTypeParameters","mixins","implements","body"],aliases:["Scopable","Class","Expression"],fields:{id:{validate:M.assertNodeType("Identifier"),optional:!0},typeParameters:{validate:M.assertNodeType("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:!0},body:{validate:M.assertNodeType("ClassBody")},superClass:{optional:!0,validate:M.assertNodeType("Expression")},["superTypeParameters"]:{validate:M.assertNodeType("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0},implements:{validate:M.arrayOfType("TSExpressionWithTypeArguments","ClassImplements"),optional:!0},decorators:{validate:M.arrayOfType("Decorator"),optional:!0},mixins:{validate:M.assertNodeType("InterfaceExtends"),optional:!0}}});v("ClassDeclaration",{inherits:"ClassExpression",aliases:["Scopable","Class","Statement","Declaration"],fields:{id:{validate:M.assertNodeType("Identifier"),optional:!0},typeParameters:{validate:M.assertNodeType("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:!0},body:{validate:M.assertNodeType("ClassBody")},superClass:{optional:!0,validate:M.assertNodeType("Expression")},["superTypeParameters"]:{validate:M.assertNodeType("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0},implements:{validate:M.arrayOfType("TSExpressionWithTypeArguments","ClassImplements"),optional:!0},decorators:{validate:M.arrayOfType("Decorator"),optional:!0},mixins:{validate:M.assertNodeType("InterfaceExtends"),optional:!0},declare:{validate:M.assertValueType("boolean"),optional:!0},abstract:{validate:M.assertValueType("boolean"),optional:!0}},validate:!process.env.BABEL_TYPES_8_BREAKING?void 0:function(){let f=M.assertNodeType("Identifier");return function(G,X,W){if(!uf.default("ExportDefaultDeclaration",G))f(W,"id",W.id)}}()});var R2=G6.importAttributes={attributes:{optional:!0,validate:M.arrayOfType("ImportAttribute")},assertions:{deprecated:!0,optional:!0,validate:M.arrayOfType("ImportAttribute")}};v("ExportAllDeclaration",{builder:["source"],visitor:["source","attributes","assertions"],aliases:["Statement","Declaration","ImportOrExportDeclaration","ExportDeclaration"],fields:Object.assign({source:{validate:M.assertNodeType("StringLiteral")},exportKind:M.validateOptional(M.assertOneOf("type","value"))},R2)});v("ExportDefaultDeclaration",{visitor:["declaration"],aliases:["Statement","Declaration","ImportOrExportDeclaration","ExportDeclaration"],fields:{declaration:M.validateType("TSDeclareFunction","FunctionDeclaration","ClassDeclaration","Expression"),exportKind:M.validateOptional(M.assertOneOf("value"))}});v("ExportNamedDeclaration",{builder:["declaration","specifiers","source"],visitor:process.env?["declaration","specifiers","source","attributes"]:["declaration","specifiers","source","attributes","assertions"],aliases:["Statement","Declaration","ImportOrExportDeclaration","ExportDeclaration"],fields:Object.assign({declaration:{optional:!0,validate:process.env.BABEL_TYPES_8_BREAKING?M.chain(M.assertNodeType("Declaration"),Object.assign(function(f,G,X){if(X&&f.specifiers.length)throw new TypeError("Only declaration or specifiers is allowed on ExportNamedDeclaration");if(X&&f.source)throw new TypeError("Cannot export a declaration from a source")},{oneOfNodeTypes:["Declaration"]})):M.assertNodeType("Declaration")}},R2,{specifiers:{default:[],validate:M.arrayOf(function(){let f=M.assertNodeType("ExportSpecifier","ExportDefaultSpecifier","ExportNamespaceSpecifier"),G=M.assertNodeType("ExportSpecifier");if(!process.env.BABEL_TYPES_8_BREAKING)return f;return Object.assign(function(X,W,R){(X.source?f:G)(X,W,R)},{oneOfNodeTypes:["ExportSpecifier","ExportDefaultSpecifier","ExportNamespaceSpecifier"]})}())},source:{validate:M.assertNodeType("StringLiteral"),optional:!0},exportKind:M.validateOptional(M.assertOneOf("type","value"))})});v("ExportSpecifier",{visitor:["local","exported"],aliases:["ModuleSpecifier"],fields:{local:{validate:M.assertNodeType("Identifier")},exported:{validate:M.assertNodeType("Identifier","StringLiteral")},exportKind:{validate:M.assertOneOf("type","value"),optional:!0}}});v("ForOfStatement",{visitor:["left","right","body"],builder:["left","right","body","await"],aliases:["Scopable","Statement","For","BlockParent","Loop","ForXStatement"],fields:{left:{validate:function(){if(!process.env.BABEL_TYPES_8_BREAKING)return M.assertNodeType("VariableDeclaration","LVal");let f=M.assertNodeType("VariableDeclaration"),G=M.assertNodeType("Identifier","MemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression");return Object.assign(function(X,W,R){if(uf.default("VariableDeclaration",R))f(X,W,R);else G(X,W,R)},{oneOfNodeTypes:["VariableDeclaration","Identifier","MemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression"]})}()},right:{validate:M.assertNodeType("Expression")},body:{validate:M.assertNodeType("Statement")},await:{default:!1}}});v("ImportDeclaration",{builder:["specifiers","source"],visitor:["specifiers","source","attributes","assertions"],aliases:["Statement","Declaration","ImportOrExportDeclaration"],fields:Object.assign({},R2,{module:{optional:!0,validate:M.assertValueType("boolean")},phase:{default:null,validate:M.assertOneOf("source","defer")},specifiers:M.validateArrayOfType("ImportSpecifier","ImportDefaultSpecifier","ImportNamespaceSpecifier"),source:{validate:M.assertNodeType("StringLiteral")},importKind:{validate:M.assertOneOf("type","typeof","value"),optional:!0}})});v("ImportDefaultSpecifier",{visitor:["local"],aliases:["ModuleSpecifier"],fields:{local:{validate:M.assertNodeType("Identifier")}}});v("ImportNamespaceSpecifier",{visitor:["local"],aliases:["ModuleSpecifier"],fields:{local:{validate:M.assertNodeType("Identifier")}}});v("ImportSpecifier",{visitor:["imported","local"],builder:["local","imported"],aliases:["ModuleSpecifier"],fields:{local:{validate:M.assertNodeType("Identifier")},imported:{validate:M.assertNodeType("Identifier","StringLiteral")},importKind:{validate:M.assertOneOf("type","typeof","value"),optional:!0}}});v("ImportExpression",{visitor:["source","options"],aliases:["Expression"],fields:{phase:{default:null,validate:M.assertOneOf("source","defer")},source:{validate:M.assertNodeType("Expression")},options:{validate:M.assertNodeType("Expression"),optional:!0}}});v("MetaProperty",{visitor:["meta","property"],aliases:["Expression"],fields:{meta:{validate:process.env.BABEL_TYPES_8_BREAKING?M.chain(M.assertNodeType("Identifier"),Object.assign(function(f,G,X){let W;switch(X.name){case"function":W="sent";break;case"new":W="target";break;case"import":W="meta";break}if(!uf.default("Identifier",f.property,{name:W}))throw new TypeError("Unrecognised MetaProperty")},{oneOfNodeTypes:["Identifier"]})):M.assertNodeType("Identifier")},property:{validate:M.assertNodeType("Identifier")}}});var kX=()=>({abstract:{validate:M.assertValueType("boolean"),optional:!0},accessibility:{validate:M.assertOneOf("public","private","protected"),optional:!0},static:{default:!1},override:{default:!1},computed:{default:!1},optional:{validate:M.assertValueType("boolean"),optional:!0},key:{validate:M.chain(function(){let f=M.assertNodeType("Identifier","StringLiteral","NumericLiteral","BigIntLiteral"),G=M.assertNodeType("Expression");return function(X,W,R){(X.computed?G:f)(X,W,R)}}(),M.assertNodeType("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","Expression"))}});G6.classMethodOrPropertyCommon=kX;var J2=()=>Object.assign({},M1(),kX(),{params:M.validateArrayOfType("Identifier","Pattern","RestElement","TSParameterProperty"),kind:{validate:M.assertOneOf("get","set","method","constructor"),default:"method"},access:{validate:M.chain(M.assertValueType("string"),M.assertOneOf("public","private","protected")),optional:!0},decorators:{validate:M.arrayOfType("Decorator"),optional:!0}});G6.classMethodOrDeclareMethodCommon=J2;v("ClassMethod",{aliases:["Function","Scopable","BlockParent","FunctionParent","Method"],builder:["kind","key","params","body","computed","static","generator","async"],visitor:["decorators","key","typeParameters","params","returnType","body"],fields:Object.assign({},J2(),rG(),{body:{validate:M.assertNodeType("BlockStatement")}})});v("ObjectPattern",{visitor:["properties","typeAnnotation","decorators"],builder:["properties"],aliases:["Pattern","PatternLike","LVal"],fields:Object.assign({},K1(),{properties:M.validateArrayOfType("RestElement","ObjectProperty")})});v("SpreadElement",{visitor:["argument"],aliases:["UnaryLike"],deprecatedAlias:"SpreadProperty",fields:{argument:{validate:M.assertNodeType("Expression")}}});v("Super",{aliases:["Expression"]});v("TaggedTemplateExpression",{visitor:["tag","typeParameters","quasi"],builder:["tag","quasi"],aliases:["Expression"],fields:{tag:{validate:M.assertNodeType("Expression")},quasi:{validate:M.assertNodeType("TemplateLiteral")},["typeParameters"]:{validate:M.assertNodeType("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0}}});v("TemplateElement",{builder:["value","tail"],fields:{value:{validate:M.chain(M.assertShape({raw:{validate:M.assertValueType("string")},cooked:{validate:M.assertValueType("string"),optional:!0}}),function f(G){let X=G.value.raw,W=!1,R=()=>{throw new Error("Internal @babel/types error.")},{str:J,firstInvalidLoc:U}=uA.readStringContents("template",X,0,0,0,{unterminated(){W=!0},strictNumericEscape:R,invalidEscapeSequence:R,numericSeparatorInEscapeSequence:R,unexpectedNumericSeparator:R,invalidDigit:R,invalidCodePoint:R});if(!W)throw new Error("Invalid raw");G.value.cooked=U?null:J})},tail:{default:!1}}});v("TemplateLiteral",{visitor:["quasis","expressions"],aliases:["Expression","Literal"],fields:{quasis:M.validateArrayOfType("TemplateElement"),expressions:{validate:M.chain(M.assertValueType("array"),M.assertEach(M.assertNodeType("Expression","TSType")),function(f,G,X){if(f.quasis.length!==X.length+1)throw new TypeError(`Number of ${f.type} quasis should be exactly one more than the number of expressions.
|
|
11
|
-
Expected ${X.length+1} quasis but got ${f.quasis.length}`)})}}});v("YieldExpression",{builder:["argument","delegate"],visitor:["argument"],aliases:["Expression","Terminatorless"],fields:{delegate:{validate:process.env.BABEL_TYPES_8_BREAKING?M.chain(M.assertValueType("boolean"),Object.assign(function(f,G,X){if(X&&!f.argument)throw new TypeError("Property delegate of YieldExpression cannot be true if there is no argument")},{type:"boolean"})):M.assertValueType("boolean"),default:!1},argument:{optional:!0,validate:M.assertNodeType("Expression")}}});v("AwaitExpression",{builder:["argument"],visitor:["argument"],aliases:["Expression","Terminatorless"],fields:{argument:{validate:M.assertNodeType("Expression")}}});v("Import",{aliases:["Expression"]});v("BigIntLiteral",{builder:["value"],fields:{value:{validate:M.assertValueType("string")}},aliases:["Expression","Pureish","Literal","Immutable"]});v("ExportNamespaceSpecifier",{visitor:["exported"],aliases:["ModuleSpecifier"],fields:{exported:{validate:M.assertNodeType("Identifier")}}});v("OptionalMemberExpression",{builder:["object","property","computed","optional"],visitor:["object","property"],aliases:["Expression"],fields:{object:{validate:M.assertNodeType("Expression")},property:{validate:function(){let f=M.assertNodeType("Identifier"),G=M.assertNodeType("Expression");return Object.assign(function(W,R,J){(W.computed?G:f)(W,R,J)},{oneOfNodeTypes:["Expression","Identifier"]})}()},computed:{default:!1},optional:{validate:!process.env.BABEL_TYPES_8_BREAKING?M.assertValueType("boolean"):M.chain(M.assertValueType("boolean"),M.assertOptionalChainStart())}}});v("OptionalCallExpression",{visitor:["callee","arguments","typeParameters","typeArguments"],builder:["callee","arguments","optional"],aliases:["Expression"],fields:Object.assign({callee:{validate:M.assertNodeType("Expression")},arguments:M.validateArrayOfType("Expression","SpreadElement","ArgumentPlaceholder"),optional:{validate:!process.env.BABEL_TYPES_8_BREAKING?M.assertValueType("boolean"):M.chain(M.assertValueType("boolean"),M.assertOptionalChainStart())},typeArguments:{validate:M.assertNodeType("TypeParameterInstantiation"),optional:!0}},{typeParameters:{validate:M.assertNodeType("TSTypeParameterInstantiation"),optional:!0}})});v("ClassProperty",{visitor:["decorators","variance","key","typeAnnotation","value"],builder:["key","value","typeAnnotation","decorators","computed","static"],aliases:["Property"],fields:Object.assign({},kX(),{value:{validate:M.assertNodeType("Expression"),optional:!0},definite:{validate:M.assertValueType("boolean"),optional:!0},typeAnnotation:{validate:M.assertNodeType("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:M.arrayOfType("Decorator"),optional:!0},readonly:{validate:M.assertValueType("boolean"),optional:!0},declare:{validate:M.assertValueType("boolean"),optional:!0},variance:{validate:M.assertNodeType("Variance"),optional:!0}})});v("ClassAccessorProperty",{visitor:["decorators","key","typeAnnotation","value"],builder:["key","value","typeAnnotation","decorators","computed","static"],aliases:["Property","Accessor"],fields:Object.assign({},kX(),{key:{validate:M.chain(function(){let f=M.assertNodeType("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","PrivateName"),G=M.assertNodeType("Expression");return function(X,W,R){(X.computed?G:f)(X,W,R)}}(),M.assertNodeType("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","Expression","PrivateName"))},value:{validate:M.assertNodeType("Expression"),optional:!0},definite:{validate:M.assertValueType("boolean"),optional:!0},typeAnnotation:{validate:M.assertNodeType("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:M.arrayOfType("Decorator"),optional:!0},readonly:{validate:M.assertValueType("boolean"),optional:!0},declare:{validate:M.assertValueType("boolean"),optional:!0},variance:{validate:M.assertNodeType("Variance"),optional:!0}})});v("ClassPrivateProperty",{visitor:["decorators","variance","key","typeAnnotation","value"],builder:["key","value","decorators","static"],aliases:["Property","Private"],fields:{key:{validate:M.assertNodeType("PrivateName")},value:{validate:M.assertNodeType("Expression"),optional:!0},typeAnnotation:{validate:M.assertNodeType("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:M.arrayOfType("Decorator"),optional:!0},static:{validate:M.assertValueType("boolean"),default:!1},readonly:{validate:M.assertValueType("boolean"),optional:!0},optional:{validate:M.assertValueType("boolean"),optional:!0},definite:{validate:M.assertValueType("boolean"),optional:!0},variance:{validate:M.assertNodeType("Variance"),optional:!0}}});v("ClassPrivateMethod",{builder:["kind","key","params","body","static"],visitor:["decorators","key","typeParameters","params","returnType","body"],aliases:["Function","Scopable","BlockParent","FunctionParent","Method","Private"],fields:Object.assign({},J2(),rG(),{kind:{validate:M.assertOneOf("get","set","method"),default:"method"},key:{validate:M.assertNodeType("PrivateName")},body:{validate:M.assertNodeType("BlockStatement")}})});v("PrivateName",{visitor:["id"],aliases:["Private"],fields:{id:{validate:M.assertNodeType("Identifier")}}});v("StaticBlock",{visitor:["body"],fields:{body:M.validateArrayOfType("Statement")},aliases:["Scopable","BlockParent","FunctionParent"]})});var R6=P(()=>{var W6=l1(),O=BG(),r=O.defineAliasedType("Flow"),U2=(f)=>{let G=f==="DeclareClass";r(f,{builder:["id","typeParameters","extends","body"],visitor:["id","typeParameters","extends",...G?["mixins","implements"]:[],"body"],aliases:["FlowDeclaration","Statement","Declaration"],fields:Object.assign({id:O.validateType("Identifier"),typeParameters:O.validateOptionalType("TypeParameterDeclaration"),extends:O.validateOptional(O.arrayOfType("InterfaceExtends"))},G?{mixins:O.validateOptional(O.arrayOfType("InterfaceExtends")),implements:O.validateOptional(O.arrayOfType("ClassImplements"))}:{},{body:O.validateType("ObjectTypeAnnotation")})})};r("AnyTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});r("ArrayTypeAnnotation",{visitor:["elementType"],aliases:["FlowType"],fields:{elementType:O.validateType("FlowType")}});r("BooleanTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});r("BooleanLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:O.validate(O.assertValueType("boolean"))}});r("NullLiteralTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});r("ClassImplements",{visitor:["id","typeParameters"],fields:{id:O.validateType("Identifier"),typeParameters:O.validateOptionalType("TypeParameterInstantiation")}});U2("DeclareClass");r("DeclareFunction",{builder:["id"],visitor:["id","predicate"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:O.validateType("Identifier"),predicate:O.validateOptionalType("DeclaredPredicate")}});U2("DeclareInterface");r("DeclareModule",{builder:["id","body","kind"],visitor:["id","body"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:O.validateType("Identifier","StringLiteral"),body:O.validateType("BlockStatement"),kind:O.validateOptional(O.assertOneOf("CommonJS","ES"))}});r("DeclareModuleExports",{visitor:["typeAnnotation"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{typeAnnotation:O.validateType("TypeAnnotation")}});r("DeclareTypeAlias",{visitor:["id","typeParameters","right"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:O.validateType("Identifier"),typeParameters:O.validateOptionalType("TypeParameterDeclaration"),right:O.validateType("FlowType")}});r("DeclareOpaqueType",{visitor:["id","typeParameters","supertype"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:O.validateType("Identifier"),typeParameters:O.validateOptionalType("TypeParameterDeclaration"),supertype:O.validateOptionalType("FlowType"),impltype:O.validateOptionalType("FlowType")}});r("DeclareVariable",{visitor:["id"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:O.validateType("Identifier")}});r("DeclareExportDeclaration",{visitor:["declaration","specifiers","source","attributes"],aliases:["FlowDeclaration","Statement","Declaration"],fields:Object.assign({declaration:O.validateOptionalType("Flow"),specifiers:O.validateOptional(O.arrayOfType("ExportSpecifier","ExportNamespaceSpecifier")),source:O.validateOptionalType("StringLiteral"),default:O.validateOptional(O.assertValueType("boolean"))},W6.importAttributes)});r("DeclareExportAllDeclaration",{visitor:["source","attributes"],aliases:["FlowDeclaration","Statement","Declaration"],fields:Object.assign({source:O.validateType("StringLiteral"),exportKind:O.validateOptional(O.assertOneOf("type","value"))},W6.importAttributes)});r("DeclaredPredicate",{visitor:["value"],aliases:["FlowPredicate"],fields:{value:O.validateType("Flow")}});r("ExistsTypeAnnotation",{aliases:["FlowType"]});r("FunctionTypeAnnotation",{builder:["typeParameters","params","rest","returnType"],visitor:["typeParameters","this","params","rest","returnType"],aliases:["FlowType"],fields:{typeParameters:O.validateOptionalType("TypeParameterDeclaration"),params:O.validateArrayOfType("FunctionTypeParam"),rest:O.validateOptionalType("FunctionTypeParam"),this:O.validateOptionalType("FunctionTypeParam"),returnType:O.validateType("FlowType")}});r("FunctionTypeParam",{visitor:["name","typeAnnotation"],fields:{name:O.validateOptionalType("Identifier"),typeAnnotation:O.validateType("FlowType"),optional:O.validateOptional(O.assertValueType("boolean"))}});r("GenericTypeAnnotation",{visitor:["id","typeParameters"],aliases:["FlowType"],fields:{id:O.validateType("Identifier","QualifiedTypeIdentifier"),typeParameters:O.validateOptionalType("TypeParameterInstantiation")}});r("InferredPredicate",{aliases:["FlowPredicate"]});r("InterfaceExtends",{visitor:["id","typeParameters"],fields:{id:O.validateType("Identifier","QualifiedTypeIdentifier"),typeParameters:O.validateOptionalType("TypeParameterInstantiation")}});U2("InterfaceDeclaration");r("InterfaceTypeAnnotation",{visitor:["extends","body"],aliases:["FlowType"],fields:{extends:O.validateOptional(O.arrayOfType("InterfaceExtends")),body:O.validateType("ObjectTypeAnnotation")}});r("IntersectionTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:O.validate(O.arrayOfType("FlowType"))}});r("MixedTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});r("EmptyTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});r("NullableTypeAnnotation",{visitor:["typeAnnotation"],aliases:["FlowType"],fields:{typeAnnotation:O.validateType("FlowType")}});r("NumberLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:O.validate(O.assertValueType("number"))}});r("NumberTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});r("ObjectTypeAnnotation",{visitor:["properties","indexers","callProperties","internalSlots"],aliases:["FlowType"],builder:["properties","indexers","callProperties","internalSlots","exact"],fields:{properties:O.validate(O.arrayOfType("ObjectTypeProperty","ObjectTypeSpreadProperty")),indexers:{validate:O.arrayOfType("ObjectTypeIndexer"),optional:!0,default:[]},callProperties:{validate:O.arrayOfType("ObjectTypeCallProperty"),optional:!0,default:[]},internalSlots:{validate:O.arrayOfType("ObjectTypeInternalSlot"),optional:!0,default:[]},exact:{validate:O.assertValueType("boolean"),default:!1},inexact:O.validateOptional(O.assertValueType("boolean"))}});r("ObjectTypeInternalSlot",{visitor:["id","value"],builder:["id","value","optional","static","method"],aliases:["UserWhitespacable"],fields:{id:O.validateType("Identifier"),value:O.validateType("FlowType"),optional:O.validate(O.assertValueType("boolean")),static:O.validate(O.assertValueType("boolean")),method:O.validate(O.assertValueType("boolean"))}});r("ObjectTypeCallProperty",{visitor:["value"],aliases:["UserWhitespacable"],fields:{value:O.validateType("FlowType"),static:O.validate(O.assertValueType("boolean"))}});r("ObjectTypeIndexer",{visitor:["variance","id","key","value"],builder:["id","key","value","variance"],aliases:["UserWhitespacable"],fields:{id:O.validateOptionalType("Identifier"),key:O.validateType("FlowType"),value:O.validateType("FlowType"),static:O.validate(O.assertValueType("boolean")),variance:O.validateOptionalType("Variance")}});r("ObjectTypeProperty",{visitor:["key","value","variance"],aliases:["UserWhitespacable"],fields:{key:O.validateType("Identifier","StringLiteral"),value:O.validateType("FlowType"),kind:O.validate(O.assertOneOf("init","get","set")),static:O.validate(O.assertValueType("boolean")),proto:O.validate(O.assertValueType("boolean")),optional:O.validate(O.assertValueType("boolean")),variance:O.validateOptionalType("Variance"),method:O.validate(O.assertValueType("boolean"))}});r("ObjectTypeSpreadProperty",{visitor:["argument"],aliases:["UserWhitespacable"],fields:{argument:O.validateType("FlowType")}});r("OpaqueType",{visitor:["id","typeParameters","supertype","impltype"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:O.validateType("Identifier"),typeParameters:O.validateOptionalType("TypeParameterDeclaration"),supertype:O.validateOptionalType("FlowType"),impltype:O.validateType("FlowType")}});r("QualifiedTypeIdentifier",{visitor:["qualification","id"],builder:["id","qualification"],fields:{id:O.validateType("Identifier"),qualification:O.validateType("Identifier","QualifiedTypeIdentifier")}});r("StringLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:O.validate(O.assertValueType("string"))}});r("StringTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});r("SymbolTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});r("ThisTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});r("TupleTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:O.validate(O.arrayOfType("FlowType"))}});r("TypeofTypeAnnotation",{visitor:["argument"],aliases:["FlowType"],fields:{argument:O.validateType("FlowType")}});r("TypeAlias",{visitor:["id","typeParameters","right"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:O.validateType("Identifier"),typeParameters:O.validateOptionalType("TypeParameterDeclaration"),right:O.validateType("FlowType")}});r("TypeAnnotation",{visitor:["typeAnnotation"],fields:{typeAnnotation:O.validateType("FlowType")}});r("TypeCastExpression",{visitor:["expression","typeAnnotation"],aliases:["ExpressionWrapper","Expression"],fields:{expression:O.validateType("Expression"),typeAnnotation:O.validateType("TypeAnnotation")}});r("TypeParameter",{visitor:["bound","default","variance"],fields:{name:O.validate(O.assertValueType("string")),bound:O.validateOptionalType("TypeAnnotation"),default:O.validateOptionalType("FlowType"),variance:O.validateOptionalType("Variance")}});r("TypeParameterDeclaration",{visitor:["params"],fields:{params:O.validate(O.arrayOfType("TypeParameter"))}});r("TypeParameterInstantiation",{visitor:["params"],fields:{params:O.validate(O.arrayOfType("FlowType"))}});r("UnionTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:O.validate(O.arrayOfType("FlowType"))}});r("Variance",{builder:["kind"],fields:{kind:O.validate(O.assertOneOf("minus","plus"))}});r("VoidTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});r("EnumDeclaration",{aliases:["Statement","Declaration"],visitor:["id","body"],fields:{id:O.validateType("Identifier"),body:O.validateType("EnumBooleanBody","EnumNumberBody","EnumStringBody","EnumSymbolBody")}});r("EnumBooleanBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:O.validate(O.assertValueType("boolean")),members:O.validateArrayOfType("EnumBooleanMember"),hasUnknownMembers:O.validate(O.assertValueType("boolean"))}});r("EnumNumberBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:O.validate(O.assertValueType("boolean")),members:O.validateArrayOfType("EnumNumberMember"),hasUnknownMembers:O.validate(O.assertValueType("boolean"))}});r("EnumStringBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:O.validate(O.assertValueType("boolean")),members:O.validateArrayOfType("EnumStringMember","EnumDefaultedMember"),hasUnknownMembers:O.validate(O.assertValueType("boolean"))}});r("EnumSymbolBody",{aliases:["EnumBody"],visitor:["members"],fields:{members:O.validateArrayOfType("EnumDefaultedMember"),hasUnknownMembers:O.validate(O.assertValueType("boolean"))}});r("EnumBooleanMember",{aliases:["EnumMember"],builder:["id"],visitor:["id","init"],fields:{id:O.validateType("Identifier"),init:O.validateType("BooleanLiteral")}});r("EnumNumberMember",{aliases:["EnumMember"],visitor:["id","init"],fields:{id:O.validateType("Identifier"),init:O.validateType("NumericLiteral")}});r("EnumStringMember",{aliases:["EnumMember"],visitor:["id","init"],fields:{id:O.validateType("Identifier"),init:O.validateType("StringLiteral")}});r("EnumDefaultedMember",{aliases:["EnumMember"],visitor:["id"],fields:{id:O.validateType("Identifier")}});r("IndexedAccessType",{visitor:["objectType","indexType"],aliases:["FlowType"],fields:{objectType:O.validateType("FlowType"),indexType:O.validateType("FlowType")}});r("OptionalIndexedAccessType",{visitor:["objectType","indexType"],aliases:["FlowType"],fields:{objectType:O.validateType("FlowType"),indexType:O.validateType("FlowType"),optional:O.validate(O.assertValueType("boolean"))}})});var J6=P(()=>{var Pf=BG(),hf=Pf.defineAliasedType("JSX");hf("JSXAttribute",{visitor:["name","value"],aliases:["Immutable"],fields:{name:{validate:Pf.assertNodeType("JSXIdentifier","JSXNamespacedName")},value:{optional:!0,validate:Pf.assertNodeType("JSXElement","JSXFragment","StringLiteral","JSXExpressionContainer")}}});hf("JSXClosingElement",{visitor:["name"],aliases:["Immutable"],fields:{name:{validate:Pf.assertNodeType("JSXIdentifier","JSXMemberExpression","JSXNamespacedName")}}});hf("JSXElement",{builder:["openingElement","closingElement","children","selfClosing"],visitor:["openingElement","children","closingElement"],aliases:["Immutable","Expression"],fields:Object.assign({openingElement:{validate:Pf.assertNodeType("JSXOpeningElement")},closingElement:{optional:!0,validate:Pf.assertNodeType("JSXClosingElement")},children:Pf.validateArrayOfType("JSXText","JSXExpressionContainer","JSXSpreadChild","JSXElement","JSXFragment")},{selfClosing:{validate:Pf.assertValueType("boolean"),optional:!0}})});hf("JSXEmptyExpression",{});hf("JSXExpressionContainer",{visitor:["expression"],aliases:["Immutable"],fields:{expression:{validate:Pf.assertNodeType("Expression","JSXEmptyExpression")}}});hf("JSXSpreadChild",{visitor:["expression"],aliases:["Immutable"],fields:{expression:{validate:Pf.assertNodeType("Expression")}}});hf("JSXIdentifier",{builder:["name"],fields:{name:{validate:Pf.assertValueType("string")}}});hf("JSXMemberExpression",{visitor:["object","property"],fields:{object:{validate:Pf.assertNodeType("JSXMemberExpression","JSXIdentifier")},property:{validate:Pf.assertNodeType("JSXIdentifier")}}});hf("JSXNamespacedName",{visitor:["namespace","name"],fields:{namespace:{validate:Pf.assertNodeType("JSXIdentifier")},name:{validate:Pf.assertNodeType("JSXIdentifier")}}});hf("JSXOpeningElement",{builder:["name","attributes","selfClosing"],visitor:["name","typeParameters","typeArguments","attributes"],aliases:["Immutable"],fields:Object.assign({name:{validate:Pf.assertNodeType("JSXIdentifier","JSXMemberExpression","JSXNamespacedName")},selfClosing:{default:!1},attributes:Pf.validateArrayOfType("JSXAttribute","JSXSpreadAttribute"),typeArguments:{validate:Pf.assertNodeType("TypeParameterInstantiation"),optional:!0}},{typeParameters:{validate:Pf.assertNodeType("TSTypeParameterInstantiation"),optional:!0}})});hf("JSXSpreadAttribute",{visitor:["argument"],fields:{argument:{validate:Pf.assertNodeType("Expression")}}});hf("JSXText",{aliases:["Immutable"],builder:["value"],fields:{value:{validate:Pf.assertValueType("string")}}});hf("JSXFragment",{builder:["openingFragment","closingFragment","children"],visitor:["openingFragment","children","closingFragment"],aliases:["Immutable","Expression"],fields:{openingFragment:{validate:Pf.assertNodeType("JSXOpeningFragment")},closingFragment:{validate:Pf.assertNodeType("JSXClosingFragment")},children:Pf.validateArrayOfType("JSXText","JSXExpressionContainer","JSXSpreadChild","JSXElement","JSXFragment")}});hf("JSXOpeningFragment",{aliases:["Immutable"]});hf("JSXClosingFragment",{aliases:["Immutable"]})});var Q2=P((U6)=>{Object.defineProperty(U6,"__esModule",{value:!0});U6.PLACEHOLDERS_FLIPPED_ALIAS=U6.PLACEHOLDERS_ALIAS=U6.PLACEHOLDERS=void 0;var aA=BG(),iA=U6.PLACEHOLDERS=["Identifier","StringLiteral","Expression","Statement","Declaration","BlockStatement","ClassBody","Pattern"],H2=U6.PLACEHOLDERS_ALIAS={Declaration:["Statement"],Pattern:["PatternLike","LVal"]};for(let f of iA){let G=aA.ALIAS_KEYS[f];if(G!=null&&G.length)H2[f]=G}var V2=U6.PLACEHOLDERS_FLIPPED_ALIAS={};Object.keys(H2).forEach((f)=>{H2[f].forEach((G)=>{if(!hasOwnProperty.call(V2,G))V2[G]=[];V2[G].push(f)})})});var H6=P(()=>{var vX=BG(),pA=Q2(),dA=l1(),Z2=vX.defineAliasedType("Miscellaneous");Z2("Noop",{visitor:[]});Z2("Placeholder",{visitor:[],builder:["expectedNode","name"],fields:Object.assign({name:{validate:vX.assertNodeType("Identifier")},expectedNode:{validate:vX.assertOneOf(...pA.PLACEHOLDERS)}},dA.patternLikeCommon())});Z2("V8IntrinsicIdentifier",{builder:["name"],fields:{name:{validate:vX.assertValueType("string")}}})});var Q6=P(()=>{var Af=BG();Af.default("ArgumentPlaceholder",{});Af.default("BindExpression",{visitor:["object","callee"],aliases:["Expression"],fields:!process.env.BABEL_TYPES_8_BREAKING?{object:{validate:Object.assign(()=>{},{oneOfNodeTypes:["Expression"]})},callee:{validate:Object.assign(()=>{},{oneOfNodeTypes:["Expression"]})}}:{object:{validate:Af.assertNodeType("Expression")},callee:{validate:Af.assertNodeType("Expression")}}});Af.default("ImportAttribute",{visitor:["key","value"],fields:{key:{validate:Af.assertNodeType("Identifier","StringLiteral")},value:{validate:Af.assertNodeType("StringLiteral")}}});Af.default("Decorator",{visitor:["expression"],fields:{expression:{validate:Af.assertNodeType("Expression")}}});Af.default("DoExpression",{visitor:["body"],builder:["body","async"],aliases:["Expression"],fields:{body:{validate:Af.assertNodeType("BlockStatement")},async:{validate:Af.assertValueType("boolean"),default:!1}}});Af.default("ExportDefaultSpecifier",{visitor:["exported"],aliases:["ModuleSpecifier"],fields:{exported:{validate:Af.assertNodeType("Identifier")}}});Af.default("RecordExpression",{visitor:["properties"],aliases:["Expression"],fields:{properties:Af.validateArrayOfType("ObjectProperty","SpreadElement")}});Af.default("TupleExpression",{fields:{elements:{validate:Af.arrayOfType("Expression","SpreadElement"),default:[]}},visitor:["elements"],aliases:["Expression"]});Af.default("DecimalLiteral",{builder:["value"],fields:{value:{validate:Af.assertValueType("string")}},aliases:["Expression","Pureish","Literal","Immutable"]});Af.default("ModuleExpression",{visitor:["body"],fields:{body:{validate:Af.assertNodeType("Program")}},aliases:["Expression"]});Af.default("TopicReference",{aliases:["Expression"]});Af.default("PipelineTopicExpression",{builder:["expression"],visitor:["expression"],fields:{expression:{validate:Af.assertNodeType("Expression")}},aliases:["Expression"]});Af.default("PipelineBareFunction",{builder:["callee"],visitor:["callee"],fields:{callee:{validate:Af.assertNodeType("Expression")}},aliases:["Expression"]});Af.default("PipelinePrimaryTopicReference",{aliases:["Expression"]})});var F6=P(()=>{var T=BG(),Z6=l1(),tA=z1(),t=T.defineAliasedType("TypeScript"),af=T.assertValueType("boolean"),Y6=()=>({returnType:{validate:T.assertNodeType("TSTypeAnnotation","Noop"),optional:!0},typeParameters:{validate:T.assertNodeType("TSTypeParameterDeclaration","Noop"),optional:!0}});t("TSParameterProperty",{aliases:["LVal"],visitor:["parameter"],fields:{accessibility:{validate:T.assertOneOf("public","private","protected"),optional:!0},readonly:{validate:T.assertValueType("boolean"),optional:!0},parameter:{validate:T.assertNodeType("Identifier","AssignmentPattern")},override:{validate:T.assertValueType("boolean"),optional:!0},decorators:{validate:T.arrayOfType("Decorator"),optional:!0}}});t("TSDeclareFunction",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","params","returnType"],fields:Object.assign({},Z6.functionDeclarationCommon(),Y6())});t("TSDeclareMethod",{visitor:["decorators","key","typeParameters","params","returnType"],fields:Object.assign({},Z6.classMethodOrDeclareMethodCommon(),Y6())});t("TSQualifiedName",{aliases:["TSEntityName"],visitor:["left","right"],fields:{left:T.validateType("TSEntityName"),right:T.validateType("Identifier")}});var gX=()=>({typeParameters:T.validateOptionalType("TSTypeParameterDeclaration"),["parameters"]:T.validateArrayOfType("ArrayPattern","Identifier","ObjectPattern","RestElement"),["typeAnnotation"]:T.validateOptionalType("TSTypeAnnotation")}),z6={aliases:["TSTypeElement"],visitor:["typeParameters","parameters","typeAnnotation"],fields:gX()};t("TSCallSignatureDeclaration",z6);t("TSConstructSignatureDeclaration",z6);var B6=()=>({key:T.validateType("Expression"),computed:{default:!1},optional:T.validateOptional(af)});t("TSPropertySignature",{aliases:["TSTypeElement"],visitor:["key","typeAnnotation"],fields:Object.assign({},B6(),{readonly:T.validateOptional(af),typeAnnotation:T.validateOptionalType("TSTypeAnnotation"),kind:{optional:!0,validate:T.assertOneOf("get","set")}})});t("TSMethodSignature",{aliases:["TSTypeElement"],visitor:["key","typeParameters","parameters","typeAnnotation"],fields:Object.assign({},gX(),B6(),{kind:{validate:T.assertOneOf("method","get","set")}})});t("TSIndexSignature",{aliases:["TSTypeElement"],visitor:["parameters","typeAnnotation"],fields:{readonly:T.validateOptional(af),static:T.validateOptional(af),parameters:T.validateArrayOfType("Identifier"),typeAnnotation:T.validateOptionalType("TSTypeAnnotation")}});var nA=["TSAnyKeyword","TSBooleanKeyword","TSBigIntKeyword","TSIntrinsicKeyword","TSNeverKeyword","TSNullKeyword","TSNumberKeyword","TSObjectKeyword","TSStringKeyword","TSSymbolKeyword","TSUndefinedKeyword","TSUnknownKeyword","TSVoidKeyword"];for(let f of nA)t(f,{aliases:["TSType","TSBaseType"],visitor:[],fields:{}});t("TSThisType",{aliases:["TSType","TSBaseType"],visitor:[],fields:{}});var M6={aliases:["TSType"],visitor:["typeParameters","parameters","typeAnnotation"]};t("TSFunctionType",Object.assign({},M6,{fields:gX()}));t("TSConstructorType",Object.assign({},M6,{fields:Object.assign({},gX(),{abstract:T.validateOptional(af)})}));t("TSTypeReference",{aliases:["TSType"],visitor:["typeName","typeParameters"],fields:{typeName:T.validateType("TSEntityName"),["typeParameters"]:T.validateOptionalType("TSTypeParameterInstantiation")}});t("TSTypePredicate",{aliases:["TSType"],visitor:["parameterName","typeAnnotation"],builder:["parameterName","typeAnnotation","asserts"],fields:{parameterName:T.validateType("Identifier","TSThisType"),typeAnnotation:T.validateOptionalType("TSTypeAnnotation"),asserts:T.validateOptional(af)}});t("TSTypeQuery",{aliases:["TSType"],visitor:["exprName","typeParameters"],fields:{exprName:T.validateType("TSEntityName","TSImportType"),["typeParameters"]:T.validateOptionalType("TSTypeParameterInstantiation")}});t("TSTypeLiteral",{aliases:["TSType"],visitor:["members"],fields:{members:T.validateArrayOfType("TSTypeElement")}});t("TSArrayType",{aliases:["TSType"],visitor:["elementType"],fields:{elementType:T.validateType("TSType")}});t("TSTupleType",{aliases:["TSType"],visitor:["elementTypes"],fields:{elementTypes:T.validateArrayOfType("TSType","TSNamedTupleMember")}});t("TSOptionalType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:T.validateType("TSType")}});t("TSRestType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:T.validateType("TSType")}});t("TSNamedTupleMember",{visitor:["label","elementType"],builder:["label","elementType","optional"],fields:{label:T.validateType("Identifier"),optional:{validate:af,default:!1},elementType:T.validateType("TSType")}});var K6={aliases:["TSType"],visitor:["types"],fields:{types:T.validateArrayOfType("TSType")}};t("TSUnionType",K6);t("TSIntersectionType",K6);t("TSConditionalType",{aliases:["TSType"],visitor:["checkType","extendsType","trueType","falseType"],fields:{checkType:T.validateType("TSType"),extendsType:T.validateType("TSType"),trueType:T.validateType("TSType"),falseType:T.validateType("TSType")}});t("TSInferType",{aliases:["TSType"],visitor:["typeParameter"],fields:{typeParameter:T.validateType("TSTypeParameter")}});t("TSParenthesizedType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:T.validateType("TSType")}});t("TSTypeOperator",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{operator:T.validate(T.assertValueType("string")),typeAnnotation:T.validateType("TSType")}});t("TSIndexedAccessType",{aliases:["TSType"],visitor:["objectType","indexType"],fields:{objectType:T.validateType("TSType"),indexType:T.validateType("TSType")}});t("TSMappedType",{aliases:["TSType"],visitor:["typeParameter","nameType","typeAnnotation"],builder:["typeParameter","typeAnnotation","nameType"],fields:Object.assign({},{typeParameter:T.validateType("TSTypeParameter")},{readonly:T.validateOptional(T.assertOneOf(!0,!1,"+","-")),optional:T.validateOptional(T.assertOneOf(!0,!1,"+","-")),typeAnnotation:T.validateOptionalType("TSType"),nameType:T.validateOptionalType("TSType")})});t("TSTemplateLiteralType",{aliases:["TSType","TSBaseType"],visitor:["quasis","types"],fields:{quasis:T.validateArrayOfType("TemplateElement"),types:{validate:T.chain(T.assertValueType("array"),T.assertEach(T.assertNodeType("TSType")),function(f,G,X){if(f.quasis.length!==X.length+1)throw new TypeError(`Number of ${f.type} quasis should be exactly one more than the number of types.
|
|
12
|
-
Expected ${X.length+1} quasis but got ${f.quasis.length}`)})}}});t("TSLiteralType",{aliases:["TSType","TSBaseType"],visitor:["literal"],fields:{literal:{validate:function(){let f=T.assertNodeType("NumericLiteral","BigIntLiteral"),G=T.assertOneOf("-"),X=T.assertNodeType("NumericLiteral","StringLiteral","BooleanLiteral","BigIntLiteral","TemplateLiteral");function W(R,J,U){if(tA.default("UnaryExpression",U))G(U,"operator",U.operator),f(U,"argument",U.argument);else X(R,J,U)}return W.oneOfNodeTypes=["NumericLiteral","StringLiteral","BooleanLiteral","BigIntLiteral","TemplateLiteral","UnaryExpression"],W}()}}});t("TSExpressionWithTypeArguments",{aliases:["TSType"],visitor:["expression","typeParameters"],fields:{expression:T.validateType("TSEntityName"),typeParameters:T.validateOptionalType("TSTypeParameterInstantiation")}});t("TSInterfaceDeclaration",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","extends","body"],fields:{declare:T.validateOptional(af),id:T.validateType("Identifier"),typeParameters:T.validateOptionalType("TSTypeParameterDeclaration"),extends:T.validateOptional(T.arrayOfType("TSExpressionWithTypeArguments")),body:T.validateType("TSInterfaceBody")}});t("TSInterfaceBody",{visitor:["body"],fields:{body:T.validateArrayOfType("TSTypeElement")}});t("TSTypeAliasDeclaration",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","typeAnnotation"],fields:{declare:T.validateOptional(af),id:T.validateType("Identifier"),typeParameters:T.validateOptionalType("TSTypeParameterDeclaration"),typeAnnotation:T.validateType("TSType")}});t("TSInstantiationExpression",{aliases:["Expression"],visitor:["expression","typeParameters"],fields:{expression:T.validateType("Expression"),["typeParameters"]:T.validateOptionalType("TSTypeParameterInstantiation")}});var S6={aliases:["Expression","LVal","PatternLike"],visitor:["expression","typeAnnotation"],fields:{expression:T.validateType("Expression"),typeAnnotation:T.validateType("TSType")}};t("TSAsExpression",S6);t("TSSatisfiesExpression",S6);t("TSTypeAssertion",{aliases:["Expression","LVal","PatternLike"],visitor:["typeAnnotation","expression"],fields:{typeAnnotation:T.validateType("TSType"),expression:T.validateType("Expression")}});t("TSEnumBody",{visitor:["members"],fields:{members:T.validateArrayOfType("TSEnumMember")}});t("TSEnumDeclaration",{aliases:["Statement","Declaration"],visitor:["id","members"],fields:{declare:T.validateOptional(af),const:T.validateOptional(af),id:T.validateType("Identifier"),members:T.validateArrayOfType("TSEnumMember"),initializer:T.validateOptionalType("Expression"),body:T.validateOptionalType("TSEnumBody")}});t("TSEnumMember",{visitor:["id","initializer"],fields:{id:T.validateType("Identifier","StringLiteral"),initializer:T.validateOptionalType("Expression")}});t("TSModuleDeclaration",{aliases:["Statement","Declaration"],visitor:["id","body"],fields:Object.assign({kind:{validate:T.assertOneOf("global","module","namespace")},declare:T.validateOptional(af)},{global:T.validateOptional(af)},{id:T.validateType("Identifier","StringLiteral"),body:T.validateType("TSModuleBlock","TSModuleDeclaration")})});t("TSModuleBlock",{aliases:["Scopable","Block","BlockParent","FunctionParent"],visitor:["body"],fields:{body:T.validateArrayOfType("Statement")}});t("TSImportType",{aliases:["TSType"],builder:["argument","qualifier","typeParameters"],visitor:["argument","options","qualifier","typeParameters"],fields:{argument:T.validateType("StringLiteral"),qualifier:T.validateOptionalType("TSEntityName"),["typeParameters"]:T.validateOptionalType("TSTypeParameterInstantiation"),options:{validate:T.assertNodeType("Expression"),optional:!0}}});t("TSImportEqualsDeclaration",{aliases:["Statement","Declaration"],visitor:["id","moduleReference"],fields:Object.assign({},{isExport:T.validate(af)},{id:T.validateType("Identifier"),moduleReference:T.validateType("TSEntityName","TSExternalModuleReference"),importKind:{validate:T.assertOneOf("type","value"),optional:!0}})});t("TSExternalModuleReference",{visitor:["expression"],fields:{expression:T.validateType("StringLiteral")}});t("TSNonNullExpression",{aliases:["Expression","LVal","PatternLike"],visitor:["expression"],fields:{expression:T.validateType("Expression")}});t("TSExportAssignment",{aliases:["Statement"],visitor:["expression"],fields:{expression:T.validateType("Expression")}});t("TSNamespaceExportDeclaration",{aliases:["Statement"],visitor:["id"],fields:{id:T.validateType("Identifier")}});t("TSTypeAnnotation",{visitor:["typeAnnotation"],fields:{typeAnnotation:{validate:T.assertNodeType("TSType")}}});t("TSTypeParameterInstantiation",{visitor:["params"],fields:{params:T.validateArrayOfType("TSType")}});t("TSTypeParameterDeclaration",{visitor:["params"],fields:{params:T.validateArrayOfType("TSTypeParameter")}});t("TSTypeParameter",{builder:["constraint","default","name"],visitor:["constraint","default"],fields:{name:{validate:T.assertValueType("string")},in:{validate:T.assertValueType("boolean"),optional:!0},out:{validate:T.assertValueType("boolean"),optional:!0},const:{validate:T.assertValueType("boolean"),optional:!0},constraint:{validate:T.assertNodeType("TSType"),optional:!0},default:{validate:T.assertNodeType("TSType"),optional:!0}}})});var q6=P(($6)=>{Object.defineProperty($6,"__esModule",{value:!0});$6.DEPRECATED_ALIASES=void 0;var F3f=$6.DEPRECATED_ALIASES={ModuleDeclaration:"ImportOrExportDeclaration"}});var of=P((df)=>{Object.defineProperty(df,"__esModule",{value:!0});Object.defineProperty(df,"ALIAS_KEYS",{enumerable:!0,get:function(){return ef.ALIAS_KEYS}});Object.defineProperty(df,"BUILDER_KEYS",{enumerable:!0,get:function(){return ef.BUILDER_KEYS}});Object.defineProperty(df,"DEPRECATED_ALIASES",{enumerable:!0,get:function(){return Y2.DEPRECATED_ALIASES}});Object.defineProperty(df,"DEPRECATED_KEYS",{enumerable:!0,get:function(){return ef.DEPRECATED_KEYS}});Object.defineProperty(df,"FLIPPED_ALIAS_KEYS",{enumerable:!0,get:function(){return ef.FLIPPED_ALIAS_KEYS}});Object.defineProperty(df,"NODE_FIELDS",{enumerable:!0,get:function(){return ef.NODE_FIELDS}});Object.defineProperty(df,"NODE_PARENT_VALIDATIONS",{enumerable:!0,get:function(){return ef.NODE_PARENT_VALIDATIONS}});Object.defineProperty(df,"PLACEHOLDERS",{enumerable:!0,get:function(){return z2.PLACEHOLDERS}});Object.defineProperty(df,"PLACEHOLDERS_ALIAS",{enumerable:!0,get:function(){return z2.PLACEHOLDERS_ALIAS}});Object.defineProperty(df,"PLACEHOLDERS_FLIPPED_ALIAS",{enumerable:!0,get:function(){return z2.PLACEHOLDERS_FLIPPED_ALIAS}});df.TYPES=void 0;Object.defineProperty(df,"VISITOR_KEYS",{enumerable:!0,get:function(){return ef.VISITOR_KEYS}});l1();R6();J6();H6();Q6();F6();var ef=BG(),z2=Q2(),Y2=q6();Object.keys(Y2.DEPRECATED_ALIASES).forEach((f)=>{ef.FLIPPED_ALIAS_KEYS[f]=ef.FLIPPED_ALIAS_KEYS[Y2.DEPRECATED_ALIASES[f]]});var C3f=df.TYPES=[].concat(Object.keys(ef.VISITOR_KEYS),Object.keys(ef.FLIPPED_ALIAS_KEYS),Object.keys(ef.DEPRECATED_KEYS))});var wX=P((P6)=>{Object.defineProperty(P6,"__esModule",{value:!0});P6.default=oA;P6.validateChild=j6;P6.validateField=O6;P6.validateInternal=eA;var c1=of();function oA(f,G,X){if(!f)return;let W=c1.NODE_FIELDS[f.type];if(!W)return;let R=W[G];O6(f,G,X,R),j6(f,G,X)}function eA(f,G,X,W,R){if(!(f!=null&&f.validate))return;if(f.optional&&W==null)return;if(f.validate(G,X,W),R){var J;let U=W.type;if(U==null)return;(J=c1.NODE_PARENT_VALIDATIONS[U])==null||J.call(c1.NODE_PARENT_VALIDATIONS,G,X,W)}}function O6(f,G,X,W){if(!(W!=null&&W.validate))return;if(W.optional&&X==null)return;W.validate(f,G,X)}function j6(f,G,X){var W;let R=X==null?void 0:X.type;if(R==null)return;(W=c1.NODE_PARENT_VALIDATIONS[R])==null||W.call(c1.NODE_PARENT_VALIDATIONS,f,G,X)}});var B2=P((L6)=>{Object.defineProperty(L6,"__esModule",{value:!0});L6.anyTypeAnnotation=_j;L6.argumentPlaceholder=YD;L6.arrayExpression=UO;L6.arrayPattern=Gj;L6.arrayTypeAnnotation=uj;L6.arrowFunctionExpression=Xj;L6.assignmentExpression=VO;L6.assignmentPattern=fj;L6.awaitExpression=Pj;L6.bigIntLiteral=Ij;L6.binaryExpression=HO;L6.bindExpression=zD;L6.blockStatement=zO;L6.booleanLiteral=wO;L6.booleanLiteralTypeAnnotation=yj;L6.booleanTypeAnnotation=hj;L6.breakStatement=BO;L6.callExpression=MO;L6.catchClause=KO;L6.classAccessorProperty=Ej;L6.classBody=Wj;L6.classDeclaration=Jj;L6.classExpression=Rj;L6.classImplements=mj;L6.classMethod=Fj;L6.classPrivateMethod=kj;L6.classPrivateProperty=wj;L6.classProperty=bj;L6.conditionalExpression=SO;L6.continueStatement=FO;L6.debuggerStatement=$O;L6.decimalLiteral=CD;L6.declareClass=lj;L6.declareExportAllDeclaration=nj;L6.declareExportDeclaration=tj;L6.declareFunction=cj;L6.declareInterface=aj;L6.declareModule=ij;L6.declareModuleExports=rj;L6.declareOpaqueType=pj;L6.declareTypeAlias=sj;L6.declareVariable=dj;L6.declaredPredicate=oj;L6.decorator=MD;L6.directive=ZO;L6.directiveLiteral=YO;L6.doExpression=KD;L6.doWhileStatement=CO;L6.emptyStatement=qO;L6.emptyTypeAnnotation=QP;L6.enumBooleanBody=uP;L6.enumBooleanMember=mP;L6.enumDeclaration=_P;L6.enumDefaultedMember=aP;L6.enumNumberBody=hP;L6.enumNumberMember=lP;L6.enumStringBody=yP;L6.enumStringMember=cP;L6.enumSymbolBody=xP;L6.existsTypeAnnotation=ej;L6.exportAllDeclaration=Uj;L6.exportDefaultDeclaration=Vj;L6.exportDefaultSpecifier=SD;L6.exportNamedDeclaration=Hj;L6.exportNamespaceSpecifier=Tj;L6.exportSpecifier=Qj;L6.expressionStatement=AO;L6.file=OO;L6.forInStatement=jO;L6.forOfStatement=Zj;L6.forStatement=PO;L6.functionDeclaration=DO;L6.functionExpression=IO;L6.functionTypeAnnotation=fP;L6.functionTypeParam=GP;L6.genericTypeAnnotation=XP;L6.identifier=TO;L6.ifStatement=NO;L6.import=Dj;L6.importAttribute=BD;L6.importDeclaration=Yj;L6.importDefaultSpecifier=zj;L6.importExpression=Kj;L6.importNamespaceSpecifier=Bj;L6.importSpecifier=Mj;L6.indexedAccessType=iP;L6.inferredPredicate=WP;L6.interfaceDeclaration=JP;L6.interfaceExtends=RP;L6.interfaceTypeAnnotation=UP;L6.interpreterDirective=QO;L6.intersectionTypeAnnotation=VP;L6.jSXAttribute=L6.jsxAttribute=sP;L6.jSXClosingElement=L6.jsxClosingElement=pP;L6.jSXClosingFragment=L6.jsxClosingFragment=VD;L6.jSXElement=L6.jsxElement=dP;L6.jSXEmptyExpression=L6.jsxEmptyExpression=tP;L6.jSXExpressionContainer=L6.jsxExpressionContainer=nP;L6.jSXFragment=L6.jsxFragment=JD;L6.jSXIdentifier=L6.jsxIdentifier=eP;L6.jSXMemberExpression=L6.jsxMemberExpression=fD;L6.jSXNamespacedName=L6.jsxNamespacedName=GD;L6.jSXOpeningElement=L6.jsxOpeningElement=XD;L6.jSXOpeningFragment=L6.jsxOpeningFragment=UD;L6.jSXSpreadAttribute=L6.jsxSpreadAttribute=WD;L6.jSXSpreadChild=L6.jsxSpreadChild=oP;L6.jSXText=L6.jsxText=RD;L6.labeledStatement=LO;L6.logicalExpression=kO;L6.memberExpression=vO;L6.metaProperty=Sj;L6.mixedTypeAnnotation=HP;L6.moduleExpression=qD;L6.newExpression=gO;L6.noop=HD;L6.nullLiteral=EO;L6.nullLiteralTypeAnnotation=xj;L6.nullableTypeAnnotation=ZP;L6.numberLiteral=hI;L6.numberLiteralTypeAnnotation=YP;L6.numberTypeAnnotation=zP;L6.numericLiteral=D6;L6.objectExpression=uO;L6.objectMethod=hO;L6.objectPattern=$j;L6.objectProperty=yO;L6.objectTypeAnnotation=BP;L6.objectTypeCallProperty=KP;L6.objectTypeIndexer=SP;L6.objectTypeInternalSlot=MP;L6.objectTypeProperty=FP;L6.objectTypeSpreadProperty=$P;L6.opaqueType=CP;L6.optionalCallExpression=Lj;L6.optionalIndexedAccessType=rP;L6.optionalMemberExpression=Nj;L6.parenthesizedExpression=lO;L6.pipelineBareFunction=jD;L6.pipelinePrimaryTopicReference=PD;L6.pipelineTopicExpression=OD;L6.placeholder=QD;L6.privateName=vj;L6.program=_O;L6.qualifiedTypeIdentifier=qP;L6.recordExpression=FD;L6.regExpLiteral=I6;L6.regexLiteral=yI;L6.restElement=T6;L6.restProperty=xI;L6.returnStatement=xO;L6.sequenceExpression=mO;L6.spreadElement=N6;L6.spreadProperty=mI;L6.staticBlock=gj;L6.stringLiteral=bO;L6.stringLiteralTypeAnnotation=AP;L6.stringTypeAnnotation=OP;L6.super=Cj;L6.switchCase=cO;L6.switchStatement=aO;L6.symbolTypeAnnotation=jP;L6.taggedTemplateExpression=qj;L6.templateElement=Aj;L6.templateLiteral=Oj;L6.thisExpression=iO;L6.thisTypeAnnotation=PP;L6.throwStatement=rO;L6.topicReference=AD;L6.tryStatement=sO;L6.tSAnyKeyword=L6.tsAnyKeyword=vD;L6.tSArrayType=L6.tsArrayType=fI;L6.tSAsExpression=L6.tsAsExpression=qI;L6.tSBigIntKeyword=L6.tsBigIntKeyword=_D;L6.tSBooleanKeyword=L6.tsBooleanKeyword=gD;L6.tSCallSignatureDeclaration=L6.tsCallSignatureDeclaration=LD;L6.tSConditionalType=L6.tsConditionalType=VI;L6.tSConstructSignatureDeclaration=L6.tsConstructSignatureDeclaration=bD;L6.tSConstructorType=L6.tsConstructorType=dD;L6.tSDeclareFunction=L6.tsDeclareFunction=ID;L6.tSDeclareMethod=L6.tsDeclareMethod=TD;L6.tSEnumBody=L6.tsEnumBody=jI;L6.tSEnumDeclaration=L6.tsEnumDeclaration=PI;L6.tSEnumMember=L6.tsEnumMember=DI;L6.tSExportAssignment=L6.tsExportAssignment=wI;L6.tSExpressionWithTypeArguments=L6.tsExpressionWithTypeArguments=KI;L6.tSExternalModuleReference=L6.tsExternalModuleReference=bI;L6.tSFunctionType=L6.tsFunctionType=pD;L6.tSImportEqualsDeclaration=L6.tsImportEqualsDeclaration=LI;L6.tSImportType=L6.tsImportType=NI;L6.tSIndexSignature=L6.tsIndexSignature=kD;L6.tSIndexedAccessType=L6.tsIndexedAccessType=YI;L6.tSInferType=L6.tsInferType=HI;L6.tSInstantiationExpression=L6.tsInstantiationExpression=CI;L6.tSInterfaceBody=L6.tsInterfaceBody=FI;L6.tSInterfaceDeclaration=L6.tsInterfaceDeclaration=SI;L6.tSIntersectionType=L6.tsIntersectionType=UI;L6.tSIntrinsicKeyword=L6.tsIntrinsicKeyword=uD;L6.tSLiteralType=L6.tsLiteralType=MI;L6.tSMappedType=L6.tsMappedType=zI;L6.tSMethodSignature=L6.tsMethodSignature=wD;L6.tSModuleBlock=L6.tsModuleBlock=TI;L6.tSModuleDeclaration=L6.tsModuleDeclaration=II;L6.tSNamedTupleMember=L6.tsNamedTupleMember=RI;L6.tSNamespaceExportDeclaration=L6.tsNamespaceExportDeclaration=kI;L6.tSNeverKeyword=L6.tsNeverKeyword=hD;L6.tSNonNullExpression=L6.tsNonNullExpression=EI;L6.tSNullKeyword=L6.tsNullKeyword=yD;L6.tSNumberKeyword=L6.tsNumberKeyword=xD;L6.tSObjectKeyword=L6.tsObjectKeyword=mD;L6.tSOptionalType=L6.tsOptionalType=XI;L6.tSParameterProperty=L6.tsParameterProperty=DD;L6.tSParenthesizedType=L6.tsParenthesizedType=QI;L6.tSPropertySignature=L6.tsPropertySignature=ED;L6.tSQualifiedName=L6.tsQualifiedName=ND;L6.tSRestType=L6.tsRestType=WI;L6.tSSatisfiesExpression=L6.tsSatisfiesExpression=AI;L6.tSStringKeyword=L6.tsStringKeyword=lD;L6.tSSymbolKeyword=L6.tsSymbolKeyword=cD;L6.tSTemplateLiteralType=L6.tsTemplateLiteralType=BI;L6.tSThisType=L6.tsThisType=sD;L6.tSTupleType=L6.tsTupleType=GI;L6.tSTypeAliasDeclaration=L6.tsTypeAliasDeclaration=$I;L6.tSTypeAnnotation=L6.tsTypeAnnotation=vI;L6.tSTypeAssertion=L6.tsTypeAssertion=OI;L6.tSTypeLiteral=L6.tsTypeLiteral=eD;L6.tSTypeOperator=L6.tsTypeOperator=ZI;L6.tSTypeParameter=L6.tsTypeParameter=uI;L6.tSTypeParameterDeclaration=L6.tsTypeParameterDeclaration=_I;L6.tSTypeParameterInstantiation=L6.tsTypeParameterInstantiation=gI;L6.tSTypePredicate=L6.tsTypePredicate=nD;L6.tSTypeQuery=L6.tsTypeQuery=oD;L6.tSTypeReference=L6.tsTypeReference=tD;L6.tSUndefinedKeyword=L6.tsUndefinedKeyword=aD;L6.tSUnionType=L6.tsUnionType=JI;L6.tSUnknownKeyword=L6.tsUnknownKeyword=iD;L6.tSVoidKeyword=L6.tsVoidKeyword=rD;L6.tupleExpression=$D;L6.tupleTypeAnnotation=DP;L6.typeAlias=TP;L6.typeAnnotation=NP;L6.typeCastExpression=LP;L6.typeParameter=bP;L6.typeParameterDeclaration=EP;L6.typeParameterInstantiation=wP;L6.typeofTypeAnnotation=IP;L6.unaryExpression=pO;L6.unionTypeAnnotation=kP;L6.updateExpression=dO;L6.v8IntrinsicIdentifier=ZD;L6.variableDeclaration=tO;L6.variableDeclarator=nO;L6.variance=vP;L6.voidTypeAnnotation=gP;L6.whileStatement=oO;L6.withStatement=eO;L6.yieldExpression=jj;var RO=wX(),_X=_1(),JO=BG(),{validateInternal:Z}=RO,{NODE_FIELDS:C}=JO;function UO(f=[]){let G={type:"ArrayExpression",elements:f},X=C.ArrayExpression;return Z(X.elements,G,"elements",f,1),G}function VO(f,G,X){let W={type:"AssignmentExpression",operator:f,left:G,right:X},R=C.AssignmentExpression;return Z(R.operator,W,"operator",f),Z(R.left,W,"left",G,1),Z(R.right,W,"right",X,1),W}function HO(f,G,X){let W={type:"BinaryExpression",operator:f,left:G,right:X},R=C.BinaryExpression;return Z(R.operator,W,"operator",f),Z(R.left,W,"left",G,1),Z(R.right,W,"right",X,1),W}function QO(f){let G={type:"InterpreterDirective",value:f},X=C.InterpreterDirective;return Z(X.value,G,"value",f),G}function ZO(f){let G={type:"Directive",value:f},X=C.Directive;return Z(X.value,G,"value",f,1),G}function YO(f){let G={type:"DirectiveLiteral",value:f},X=C.DirectiveLiteral;return Z(X.value,G,"value",f),G}function zO(f,G=[]){let X={type:"BlockStatement",body:f,directives:G},W=C.BlockStatement;return Z(W.body,X,"body",f,1),Z(W.directives,X,"directives",G,1),X}function BO(f=null){let G={type:"BreakStatement",label:f},X=C.BreakStatement;return Z(X.label,G,"label",f,1),G}function MO(f,G){let X={type:"CallExpression",callee:f,arguments:G},W=C.CallExpression;return Z(W.callee,X,"callee",f,1),Z(W.arguments,X,"arguments",G,1),X}function KO(f=null,G){let X={type:"CatchClause",param:f,body:G},W=C.CatchClause;return Z(W.param,X,"param",f,1),Z(W.body,X,"body",G,1),X}function SO(f,G,X){let W={type:"ConditionalExpression",test:f,consequent:G,alternate:X},R=C.ConditionalExpression;return Z(R.test,W,"test",f,1),Z(R.consequent,W,"consequent",G,1),Z(R.alternate,W,"alternate",X,1),W}function FO(f=null){let G={type:"ContinueStatement",label:f},X=C.ContinueStatement;return Z(X.label,G,"label",f,1),G}function $O(){return{type:"DebuggerStatement"}}function CO(f,G){let X={type:"DoWhileStatement",test:f,body:G},W=C.DoWhileStatement;return Z(W.test,X,"test",f,1),Z(W.body,X,"body",G,1),X}function qO(){return{type:"EmptyStatement"}}function AO(f){let G={type:"ExpressionStatement",expression:f},X=C.ExpressionStatement;return Z(X.expression,G,"expression",f,1),G}function OO(f,G=null,X=null){let W={type:"File",program:f,comments:G,tokens:X},R=C.File;return Z(R.program,W,"program",f,1),Z(R.comments,W,"comments",G,1),Z(R.tokens,W,"tokens",X),W}function jO(f,G,X){let W={type:"ForInStatement",left:f,right:G,body:X},R=C.ForInStatement;return Z(R.left,W,"left",f,1),Z(R.right,W,"right",G,1),Z(R.body,W,"body",X,1),W}function PO(f=null,G=null,X=null,W){let R={type:"ForStatement",init:f,test:G,update:X,body:W},J=C.ForStatement;return Z(J.init,R,"init",f,1),Z(J.test,R,"test",G,1),Z(J.update,R,"update",X,1),Z(J.body,R,"body",W,1),R}function DO(f=null,G,X,W=!1,R=!1){let J={type:"FunctionDeclaration",id:f,params:G,body:X,generator:W,async:R},U=C.FunctionDeclaration;return Z(U.id,J,"id",f,1),Z(U.params,J,"params",G,1),Z(U.body,J,"body",X,1),Z(U.generator,J,"generator",W),Z(U.async,J,"async",R),J}function IO(f=null,G,X,W=!1,R=!1){let J={type:"FunctionExpression",id:f,params:G,body:X,generator:W,async:R},U=C.FunctionExpression;return Z(U.id,J,"id",f,1),Z(U.params,J,"params",G,1),Z(U.body,J,"body",X,1),Z(U.generator,J,"generator",W),Z(U.async,J,"async",R),J}function TO(f){let G={type:"Identifier",name:f},X=C.Identifier;return Z(X.name,G,"name",f),G}function NO(f,G,X=null){let W={type:"IfStatement",test:f,consequent:G,alternate:X},R=C.IfStatement;return Z(R.test,W,"test",f,1),Z(R.consequent,W,"consequent",G,1),Z(R.alternate,W,"alternate",X,1),W}function LO(f,G){let X={type:"LabeledStatement",label:f,body:G},W=C.LabeledStatement;return Z(W.label,X,"label",f,1),Z(W.body,X,"body",G,1),X}function bO(f){let G={type:"StringLiteral",value:f},X=C.StringLiteral;return Z(X.value,G,"value",f),G}function D6(f){let G={type:"NumericLiteral",value:f},X=C.NumericLiteral;return Z(X.value,G,"value",f),G}function EO(){return{type:"NullLiteral"}}function wO(f){let G={type:"BooleanLiteral",value:f},X=C.BooleanLiteral;return Z(X.value,G,"value",f),G}function I6(f,G=""){let X={type:"RegExpLiteral",pattern:f,flags:G},W=C.RegExpLiteral;return Z(W.pattern,X,"pattern",f),Z(W.flags,X,"flags",G),X}function kO(f,G,X){let W={type:"LogicalExpression",operator:f,left:G,right:X},R=C.LogicalExpression;return Z(R.operator,W,"operator",f),Z(R.left,W,"left",G,1),Z(R.right,W,"right",X,1),W}function vO(f,G,X=!1,W=null){let R={type:"MemberExpression",object:f,property:G,computed:X,optional:W},J=C.MemberExpression;return Z(J.object,R,"object",f,1),Z(J.property,R,"property",G,1),Z(J.computed,R,"computed",X),Z(J.optional,R,"optional",W),R}function gO(f,G){let X={type:"NewExpression",callee:f,arguments:G},W=C.NewExpression;return Z(W.callee,X,"callee",f,1),Z(W.arguments,X,"arguments",G,1),X}function _O(f,G=[],X="script",W=null){let R={type:"Program",body:f,directives:G,sourceType:X,interpreter:W},J=C.Program;return Z(J.body,R,"body",f,1),Z(J.directives,R,"directives",G,1),Z(J.sourceType,R,"sourceType",X),Z(J.interpreter,R,"interpreter",W,1),R}function uO(f){let G={type:"ObjectExpression",properties:f},X=C.ObjectExpression;return Z(X.properties,G,"properties",f,1),G}function hO(f="method",G,X,W,R=!1,J=!1,U=!1){let V={type:"ObjectMethod",kind:f,key:G,params:X,body:W,computed:R,generator:J,async:U},H=C.ObjectMethod;return Z(H.kind,V,"kind",f),Z(H.key,V,"key",G,1),Z(H.params,V,"params",X,1),Z(H.body,V,"body",W,1),Z(H.computed,V,"computed",R),Z(H.generator,V,"generator",J),Z(H.async,V,"async",U),V}function yO(f,G,X=!1,W=!1,R=null){let J={type:"ObjectProperty",key:f,value:G,computed:X,shorthand:W,decorators:R},U=C.ObjectProperty;return Z(U.key,J,"key",f,1),Z(U.value,J,"value",G,1),Z(U.computed,J,"computed",X),Z(U.shorthand,J,"shorthand",W),Z(U.decorators,J,"decorators",R,1),J}function T6(f){let G={type:"RestElement",argument:f},X=C.RestElement;return Z(X.argument,G,"argument",f,1),G}function xO(f=null){let G={type:"ReturnStatement",argument:f},X=C.ReturnStatement;return Z(X.argument,G,"argument",f,1),G}function mO(f){let G={type:"SequenceExpression",expressions:f},X=C.SequenceExpression;return Z(X.expressions,G,"expressions",f,1),G}function lO(f){let G={type:"ParenthesizedExpression",expression:f},X=C.ParenthesizedExpression;return Z(X.expression,G,"expression",f,1),G}function cO(f=null,G){let X={type:"SwitchCase",test:f,consequent:G},W=C.SwitchCase;return Z(W.test,X,"test",f,1),Z(W.consequent,X,"consequent",G,1),X}function aO(f,G){let X={type:"SwitchStatement",discriminant:f,cases:G},W=C.SwitchStatement;return Z(W.discriminant,X,"discriminant",f,1),Z(W.cases,X,"cases",G,1),X}function iO(){return{type:"ThisExpression"}}function rO(f){let G={type:"ThrowStatement",argument:f},X=C.ThrowStatement;return Z(X.argument,G,"argument",f,1),G}function sO(f,G=null,X=null){let W={type:"TryStatement",block:f,handler:G,finalizer:X},R=C.TryStatement;return Z(R.block,W,"block",f,1),Z(R.handler,W,"handler",G,1),Z(R.finalizer,W,"finalizer",X,1),W}function pO(f,G,X=!0){let W={type:"UnaryExpression",operator:f,argument:G,prefix:X},R=C.UnaryExpression;return Z(R.operator,W,"operator",f),Z(R.argument,W,"argument",G,1),Z(R.prefix,W,"prefix",X),W}function dO(f,G,X=!1){let W={type:"UpdateExpression",operator:f,argument:G,prefix:X},R=C.UpdateExpression;return Z(R.operator,W,"operator",f),Z(R.argument,W,"argument",G,1),Z(R.prefix,W,"prefix",X),W}function tO(f,G){let X={type:"VariableDeclaration",kind:f,declarations:G},W=C.VariableDeclaration;return Z(W.kind,X,"kind",f),Z(W.declarations,X,"declarations",G,1),X}function nO(f,G=null){let X={type:"VariableDeclarator",id:f,init:G},W=C.VariableDeclarator;return Z(W.id,X,"id",f,1),Z(W.init,X,"init",G,1),X}function oO(f,G){let X={type:"WhileStatement",test:f,body:G},W=C.WhileStatement;return Z(W.test,X,"test",f,1),Z(W.body,X,"body",G,1),X}function eO(f,G){let X={type:"WithStatement",object:f,body:G},W=C.WithStatement;return Z(W.object,X,"object",f,1),Z(W.body,X,"body",G,1),X}function fj(f,G){let X={type:"AssignmentPattern",left:f,right:G},W=C.AssignmentPattern;return Z(W.left,X,"left",f,1),Z(W.right,X,"right",G,1),X}function Gj(f){let G={type:"ArrayPattern",elements:f},X=C.ArrayPattern;return Z(X.elements,G,"elements",f,1),G}function Xj(f,G,X=!1){let W={type:"ArrowFunctionExpression",params:f,body:G,async:X,expression:null},R=C.ArrowFunctionExpression;return Z(R.params,W,"params",f,1),Z(R.body,W,"body",G,1),Z(R.async,W,"async",X),W}function Wj(f){let G={type:"ClassBody",body:f},X=C.ClassBody;return Z(X.body,G,"body",f,1),G}function Rj(f=null,G=null,X,W=null){let R={type:"ClassExpression",id:f,superClass:G,body:X,decorators:W},J=C.ClassExpression;return Z(J.id,R,"id",f,1),Z(J.superClass,R,"superClass",G,1),Z(J.body,R,"body",X,1),Z(J.decorators,R,"decorators",W,1),R}function Jj(f=null,G=null,X,W=null){let R={type:"ClassDeclaration",id:f,superClass:G,body:X,decorators:W},J=C.ClassDeclaration;return Z(J.id,R,"id",f,1),Z(J.superClass,R,"superClass",G,1),Z(J.body,R,"body",X,1),Z(J.decorators,R,"decorators",W,1),R}function Uj(f){let G={type:"ExportAllDeclaration",source:f},X=C.ExportAllDeclaration;return Z(X.source,G,"source",f,1),G}function Vj(f){let G={type:"ExportDefaultDeclaration",declaration:f},X=C.ExportDefaultDeclaration;return Z(X.declaration,G,"declaration",f,1),G}function Hj(f=null,G=[],X=null){let W={type:"ExportNamedDeclaration",declaration:f,specifiers:G,source:X},R=C.ExportNamedDeclaration;return Z(R.declaration,W,"declaration",f,1),Z(R.specifiers,W,"specifiers",G,1),Z(R.source,W,"source",X,1),W}function Qj(f,G){let X={type:"ExportSpecifier",local:f,exported:G},W=C.ExportSpecifier;return Z(W.local,X,"local",f,1),Z(W.exported,X,"exported",G,1),X}function Zj(f,G,X,W=!1){let R={type:"ForOfStatement",left:f,right:G,body:X,await:W},J=C.ForOfStatement;return Z(J.left,R,"left",f,1),Z(J.right,R,"right",G,1),Z(J.body,R,"body",X,1),Z(J.await,R,"await",W),R}function Yj(f,G){let X={type:"ImportDeclaration",specifiers:f,source:G},W=C.ImportDeclaration;return Z(W.specifiers,X,"specifiers",f,1),Z(W.source,X,"source",G,1),X}function zj(f){let G={type:"ImportDefaultSpecifier",local:f},X=C.ImportDefaultSpecifier;return Z(X.local,G,"local",f,1),G}function Bj(f){let G={type:"ImportNamespaceSpecifier",local:f},X=C.ImportNamespaceSpecifier;return Z(X.local,G,"local",f,1),G}function Mj(f,G){let X={type:"ImportSpecifier",local:f,imported:G},W=C.ImportSpecifier;return Z(W.local,X,"local",f,1),Z(W.imported,X,"imported",G,1),X}function Kj(f,G=null){let X={type:"ImportExpression",source:f,options:G},W=C.ImportExpression;return Z(W.source,X,"source",f,1),Z(W.options,X,"options",G,1),X}function Sj(f,G){let X={type:"MetaProperty",meta:f,property:G},W=C.MetaProperty;return Z(W.meta,X,"meta",f,1),Z(W.property,X,"property",G,1),X}function Fj(f="method",G,X,W,R=!1,J=!1,U=!1,V=!1){let H={type:"ClassMethod",kind:f,key:G,params:X,body:W,computed:R,static:J,generator:U,async:V},Q=C.ClassMethod;return Z(Q.kind,H,"kind",f),Z(Q.key,H,"key",G,1),Z(Q.params,H,"params",X,1),Z(Q.body,H,"body",W,1),Z(Q.computed,H,"computed",R),Z(Q.static,H,"static",J),Z(Q.generator,H,"generator",U),Z(Q.async,H,"async",V),H}function $j(f){let G={type:"ObjectPattern",properties:f},X=C.ObjectPattern;return Z(X.properties,G,"properties",f,1),G}function N6(f){let G={type:"SpreadElement",argument:f},X=C.SpreadElement;return Z(X.argument,G,"argument",f,1),G}function Cj(){return{type:"Super"}}function qj(f,G){let X={type:"TaggedTemplateExpression",tag:f,quasi:G},W=C.TaggedTemplateExpression;return Z(W.tag,X,"tag",f,1),Z(W.quasi,X,"quasi",G,1),X}function Aj(f,G=!1){let X={type:"TemplateElement",value:f,tail:G},W=C.TemplateElement;return Z(W.value,X,"value",f),Z(W.tail,X,"tail",G),X}function Oj(f,G){let X={type:"TemplateLiteral",quasis:f,expressions:G},W=C.TemplateLiteral;return Z(W.quasis,X,"quasis",f,1),Z(W.expressions,X,"expressions",G,1),X}function jj(f=null,G=!1){let X={type:"YieldExpression",argument:f,delegate:G},W=C.YieldExpression;return Z(W.argument,X,"argument",f,1),Z(W.delegate,X,"delegate",G),X}function Pj(f){let G={type:"AwaitExpression",argument:f},X=C.AwaitExpression;return Z(X.argument,G,"argument",f,1),G}function Dj(){return{type:"Import"}}function Ij(f){let G={type:"BigIntLiteral",value:f},X=C.BigIntLiteral;return Z(X.value,G,"value",f),G}function Tj(f){let G={type:"ExportNamespaceSpecifier",exported:f},X=C.ExportNamespaceSpecifier;return Z(X.exported,G,"exported",f,1),G}function Nj(f,G,X=!1,W){let R={type:"OptionalMemberExpression",object:f,property:G,computed:X,optional:W},J=C.OptionalMemberExpression;return Z(J.object,R,"object",f,1),Z(J.property,R,"property",G,1),Z(J.computed,R,"computed",X),Z(J.optional,R,"optional",W),R}function Lj(f,G,X){let W={type:"OptionalCallExpression",callee:f,arguments:G,optional:X},R=C.OptionalCallExpression;return Z(R.callee,W,"callee",f,1),Z(R.arguments,W,"arguments",G,1),Z(R.optional,W,"optional",X),W}function bj(f,G=null,X=null,W=null,R=!1,J=!1){let U={type:"ClassProperty",key:f,value:G,typeAnnotation:X,decorators:W,computed:R,static:J},V=C.ClassProperty;return Z(V.key,U,"key",f,1),Z(V.value,U,"value",G,1),Z(V.typeAnnotation,U,"typeAnnotation",X,1),Z(V.decorators,U,"decorators",W,1),Z(V.computed,U,"computed",R),Z(V.static,U,"static",J),U}function Ej(f,G=null,X=null,W=null,R=!1,J=!1){let U={type:"ClassAccessorProperty",key:f,value:G,typeAnnotation:X,decorators:W,computed:R,static:J},V=C.ClassAccessorProperty;return Z(V.key,U,"key",f,1),Z(V.value,U,"value",G,1),Z(V.typeAnnotation,U,"typeAnnotation",X,1),Z(V.decorators,U,"decorators",W,1),Z(V.computed,U,"computed",R),Z(V.static,U,"static",J),U}function wj(f,G=null,X=null,W=!1){let R={type:"ClassPrivateProperty",key:f,value:G,decorators:X,static:W},J=C.ClassPrivateProperty;return Z(J.key,R,"key",f,1),Z(J.value,R,"value",G,1),Z(J.decorators,R,"decorators",X,1),Z(J.static,R,"static",W),R}function kj(f="method",G,X,W,R=!1){let J={type:"ClassPrivateMethod",kind:f,key:G,params:X,body:W,static:R},U=C.ClassPrivateMethod;return Z(U.kind,J,"kind",f),Z(U.key,J,"key",G,1),Z(U.params,J,"params",X,1),Z(U.body,J,"body",W,1),Z(U.static,J,"static",R),J}function vj(f){let G={type:"PrivateName",id:f},X=C.PrivateName;return Z(X.id,G,"id",f,1),G}function gj(f){let G={type:"StaticBlock",body:f},X=C.StaticBlock;return Z(X.body,G,"body",f,1),G}function _j(){return{type:"AnyTypeAnnotation"}}function uj(f){let G={type:"ArrayTypeAnnotation",elementType:f},X=C.ArrayTypeAnnotation;return Z(X.elementType,G,"elementType",f,1),G}function hj(){return{type:"BooleanTypeAnnotation"}}function yj(f){let G={type:"BooleanLiteralTypeAnnotation",value:f},X=C.BooleanLiteralTypeAnnotation;return Z(X.value,G,"value",f),G}function xj(){return{type:"NullLiteralTypeAnnotation"}}function mj(f,G=null){let X={type:"ClassImplements",id:f,typeParameters:G},W=C.ClassImplements;return Z(W.id,X,"id",f,1),Z(W.typeParameters,X,"typeParameters",G,1),X}function lj(f,G=null,X=null,W){let R={type:"DeclareClass",id:f,typeParameters:G,extends:X,body:W},J=C.DeclareClass;return Z(J.id,R,"id",f,1),Z(J.typeParameters,R,"typeParameters",G,1),Z(J.extends,R,"extends",X,1),Z(J.body,R,"body",W,1),R}function cj(f){let G={type:"DeclareFunction",id:f},X=C.DeclareFunction;return Z(X.id,G,"id",f,1),G}function aj(f,G=null,X=null,W){let R={type:"DeclareInterface",id:f,typeParameters:G,extends:X,body:W},J=C.DeclareInterface;return Z(J.id,R,"id",f,1),Z(J.typeParameters,R,"typeParameters",G,1),Z(J.extends,R,"extends",X,1),Z(J.body,R,"body",W,1),R}function ij(f,G,X=null){let W={type:"DeclareModule",id:f,body:G,kind:X},R=C.DeclareModule;return Z(R.id,W,"id",f,1),Z(R.body,W,"body",G,1),Z(R.kind,W,"kind",X),W}function rj(f){let G={type:"DeclareModuleExports",typeAnnotation:f},X=C.DeclareModuleExports;return Z(X.typeAnnotation,G,"typeAnnotation",f,1),G}function sj(f,G=null,X){let W={type:"DeclareTypeAlias",id:f,typeParameters:G,right:X},R=C.DeclareTypeAlias;return Z(R.id,W,"id",f,1),Z(R.typeParameters,W,"typeParameters",G,1),Z(R.right,W,"right",X,1),W}function pj(f,G=null,X=null){let W={type:"DeclareOpaqueType",id:f,typeParameters:G,supertype:X},R=C.DeclareOpaqueType;return Z(R.id,W,"id",f,1),Z(R.typeParameters,W,"typeParameters",G,1),Z(R.supertype,W,"supertype",X,1),W}function dj(f){let G={type:"DeclareVariable",id:f},X=C.DeclareVariable;return Z(X.id,G,"id",f,1),G}function tj(f=null,G=null,X=null,W=null){let R={type:"DeclareExportDeclaration",declaration:f,specifiers:G,source:X,attributes:W},J=C.DeclareExportDeclaration;return Z(J.declaration,R,"declaration",f,1),Z(J.specifiers,R,"specifiers",G,1),Z(J.source,R,"source",X,1),Z(J.attributes,R,"attributes",W,1),R}function nj(f,G=null){let X={type:"DeclareExportAllDeclaration",source:f,attributes:G},W=C.DeclareExportAllDeclaration;return Z(W.source,X,"source",f,1),Z(W.attributes,X,"attributes",G,1),X}function oj(f){let G={type:"DeclaredPredicate",value:f},X=C.DeclaredPredicate;return Z(X.value,G,"value",f,1),G}function ej(){return{type:"ExistsTypeAnnotation"}}function fP(f=null,G,X=null,W){let R={type:"FunctionTypeAnnotation",typeParameters:f,params:G,rest:X,returnType:W},J=C.FunctionTypeAnnotation;return Z(J.typeParameters,R,"typeParameters",f,1),Z(J.params,R,"params",G,1),Z(J.rest,R,"rest",X,1),Z(J.returnType,R,"returnType",W,1),R}function GP(f=null,G){let X={type:"FunctionTypeParam",name:f,typeAnnotation:G},W=C.FunctionTypeParam;return Z(W.name,X,"name",f,1),Z(W.typeAnnotation,X,"typeAnnotation",G,1),X}function XP(f,G=null){let X={type:"GenericTypeAnnotation",id:f,typeParameters:G},W=C.GenericTypeAnnotation;return Z(W.id,X,"id",f,1),Z(W.typeParameters,X,"typeParameters",G,1),X}function WP(){return{type:"InferredPredicate"}}function RP(f,G=null){let X={type:"InterfaceExtends",id:f,typeParameters:G},W=C.InterfaceExtends;return Z(W.id,X,"id",f,1),Z(W.typeParameters,X,"typeParameters",G,1),X}function JP(f,G=null,X=null,W){let R={type:"InterfaceDeclaration",id:f,typeParameters:G,extends:X,body:W},J=C.InterfaceDeclaration;return Z(J.id,R,"id",f,1),Z(J.typeParameters,R,"typeParameters",G,1),Z(J.extends,R,"extends",X,1),Z(J.body,R,"body",W,1),R}function UP(f=null,G){let X={type:"InterfaceTypeAnnotation",extends:f,body:G},W=C.InterfaceTypeAnnotation;return Z(W.extends,X,"extends",f,1),Z(W.body,X,"body",G,1),X}function VP(f){let G={type:"IntersectionTypeAnnotation",types:f},X=C.IntersectionTypeAnnotation;return Z(X.types,G,"types",f,1),G}function HP(){return{type:"MixedTypeAnnotation"}}function QP(){return{type:"EmptyTypeAnnotation"}}function ZP(f){let G={type:"NullableTypeAnnotation",typeAnnotation:f},X=C.NullableTypeAnnotation;return Z(X.typeAnnotation,G,"typeAnnotation",f,1),G}function YP(f){let G={type:"NumberLiteralTypeAnnotation",value:f},X=C.NumberLiteralTypeAnnotation;return Z(X.value,G,"value",f),G}function zP(){return{type:"NumberTypeAnnotation"}}function BP(f,G=[],X=[],W=[],R=!1){let J={type:"ObjectTypeAnnotation",properties:f,indexers:G,callProperties:X,internalSlots:W,exact:R},U=C.ObjectTypeAnnotation;return Z(U.properties,J,"properties",f,1),Z(U.indexers,J,"indexers",G,1),Z(U.callProperties,J,"callProperties",X,1),Z(U.internalSlots,J,"internalSlots",W,1),Z(U.exact,J,"exact",R),J}function MP(f,G,X,W,R){let J={type:"ObjectTypeInternalSlot",id:f,value:G,optional:X,static:W,method:R},U=C.ObjectTypeInternalSlot;return Z(U.id,J,"id",f,1),Z(U.value,J,"value",G,1),Z(U.optional,J,"optional",X),Z(U.static,J,"static",W),Z(U.method,J,"method",R),J}function KP(f){let G={type:"ObjectTypeCallProperty",value:f,static:null},X=C.ObjectTypeCallProperty;return Z(X.value,G,"value",f,1),G}function SP(f=null,G,X,W=null){let R={type:"ObjectTypeIndexer",id:f,key:G,value:X,variance:W,static:null},J=C.ObjectTypeIndexer;return Z(J.id,R,"id",f,1),Z(J.key,R,"key",G,1),Z(J.value,R,"value",X,1),Z(J.variance,R,"variance",W,1),R}function FP(f,G,X=null){let W={type:"ObjectTypeProperty",key:f,value:G,variance:X,kind:null,method:null,optional:null,proto:null,static:null},R=C.ObjectTypeProperty;return Z(R.key,W,"key",f,1),Z(R.value,W,"value",G,1),Z(R.variance,W,"variance",X,1),W}function $P(f){let G={type:"ObjectTypeSpreadProperty",argument:f},X=C.ObjectTypeSpreadProperty;return Z(X.argument,G,"argument",f,1),G}function CP(f,G=null,X=null,W){let R={type:"OpaqueType",id:f,typeParameters:G,supertype:X,impltype:W},J=C.OpaqueType;return Z(J.id,R,"id",f,1),Z(J.typeParameters,R,"typeParameters",G,1),Z(J.supertype,R,"supertype",X,1),Z(J.impltype,R,"impltype",W,1),R}function qP(f,G){let X={type:"QualifiedTypeIdentifier",id:f,qualification:G},W=C.QualifiedTypeIdentifier;return Z(W.id,X,"id",f,1),Z(W.qualification,X,"qualification",G,1),X}function AP(f){let G={type:"StringLiteralTypeAnnotation",value:f},X=C.StringLiteralTypeAnnotation;return Z(X.value,G,"value",f),G}function OP(){return{type:"StringTypeAnnotation"}}function jP(){return{type:"SymbolTypeAnnotation"}}function PP(){return{type:"ThisTypeAnnotation"}}function DP(f){let G={type:"TupleTypeAnnotation",types:f},X=C.TupleTypeAnnotation;return Z(X.types,G,"types",f,1),G}function IP(f){let G={type:"TypeofTypeAnnotation",argument:f},X=C.TypeofTypeAnnotation;return Z(X.argument,G,"argument",f,1),G}function TP(f,G=null,X){let W={type:"TypeAlias",id:f,typeParameters:G,right:X},R=C.TypeAlias;return Z(R.id,W,"id",f,1),Z(R.typeParameters,W,"typeParameters",G,1),Z(R.right,W,"right",X,1),W}function NP(f){let G={type:"TypeAnnotation",typeAnnotation:f},X=C.TypeAnnotation;return Z(X.typeAnnotation,G,"typeAnnotation",f,1),G}function LP(f,G){let X={type:"TypeCastExpression",expression:f,typeAnnotation:G},W=C.TypeCastExpression;return Z(W.expression,X,"expression",f,1),Z(W.typeAnnotation,X,"typeAnnotation",G,1),X}function bP(f=null,G=null,X=null){let W={type:"TypeParameter",bound:f,default:G,variance:X,name:null},R=C.TypeParameter;return Z(R.bound,W,"bound",f,1),Z(R.default,W,"default",G,1),Z(R.variance,W,"variance",X,1),W}function EP(f){let G={type:"TypeParameterDeclaration",params:f},X=C.TypeParameterDeclaration;return Z(X.params,G,"params",f,1),G}function wP(f){let G={type:"TypeParameterInstantiation",params:f},X=C.TypeParameterInstantiation;return Z(X.params,G,"params",f,1),G}function kP(f){let G={type:"UnionTypeAnnotation",types:f},X=C.UnionTypeAnnotation;return Z(X.types,G,"types",f,1),G}function vP(f){let G={type:"Variance",kind:f},X=C.Variance;return Z(X.kind,G,"kind",f),G}function gP(){return{type:"VoidTypeAnnotation"}}function _P(f,G){let X={type:"EnumDeclaration",id:f,body:G},W=C.EnumDeclaration;return Z(W.id,X,"id",f,1),Z(W.body,X,"body",G,1),X}function uP(f){let G={type:"EnumBooleanBody",members:f,explicitType:null,hasUnknownMembers:null},X=C.EnumBooleanBody;return Z(X.members,G,"members",f,1),G}function hP(f){let G={type:"EnumNumberBody",members:f,explicitType:null,hasUnknownMembers:null},X=C.EnumNumberBody;return Z(X.members,G,"members",f,1),G}function yP(f){let G={type:"EnumStringBody",members:f,explicitType:null,hasUnknownMembers:null},X=C.EnumStringBody;return Z(X.members,G,"members",f,1),G}function xP(f){let G={type:"EnumSymbolBody",members:f,hasUnknownMembers:null},X=C.EnumSymbolBody;return Z(X.members,G,"members",f,1),G}function mP(f){let G={type:"EnumBooleanMember",id:f,init:null},X=C.EnumBooleanMember;return Z(X.id,G,"id",f,1),G}function lP(f,G){let X={type:"EnumNumberMember",id:f,init:G},W=C.EnumNumberMember;return Z(W.id,X,"id",f,1),Z(W.init,X,"init",G,1),X}function cP(f,G){let X={type:"EnumStringMember",id:f,init:G},W=C.EnumStringMember;return Z(W.id,X,"id",f,1),Z(W.init,X,"init",G,1),X}function aP(f){let G={type:"EnumDefaultedMember",id:f},X=C.EnumDefaultedMember;return Z(X.id,G,"id",f,1),G}function iP(f,G){let X={type:"IndexedAccessType",objectType:f,indexType:G},W=C.IndexedAccessType;return Z(W.objectType,X,"objectType",f,1),Z(W.indexType,X,"indexType",G,1),X}function rP(f,G){let X={type:"OptionalIndexedAccessType",objectType:f,indexType:G,optional:null},W=C.OptionalIndexedAccessType;return Z(W.objectType,X,"objectType",f,1),Z(W.indexType,X,"indexType",G,1),X}function sP(f,G=null){let X={type:"JSXAttribute",name:f,value:G},W=C.JSXAttribute;return Z(W.name,X,"name",f,1),Z(W.value,X,"value",G,1),X}function pP(f){let G={type:"JSXClosingElement",name:f},X=C.JSXClosingElement;return Z(X.name,G,"name",f,1),G}function dP(f,G=null,X,W=null){let R={type:"JSXElement",openingElement:f,closingElement:G,children:X,selfClosing:W},J=C.JSXElement;return Z(J.openingElement,R,"openingElement",f,1),Z(J.closingElement,R,"closingElement",G,1),Z(J.children,R,"children",X,1),Z(J.selfClosing,R,"selfClosing",W),R}function tP(){return{type:"JSXEmptyExpression"}}function nP(f){let G={type:"JSXExpressionContainer",expression:f},X=C.JSXExpressionContainer;return Z(X.expression,G,"expression",f,1),G}function oP(f){let G={type:"JSXSpreadChild",expression:f},X=C.JSXSpreadChild;return Z(X.expression,G,"expression",f,1),G}function eP(f){let G={type:"JSXIdentifier",name:f},X=C.JSXIdentifier;return Z(X.name,G,"name",f),G}function fD(f,G){let X={type:"JSXMemberExpression",object:f,property:G},W=C.JSXMemberExpression;return Z(W.object,X,"object",f,1),Z(W.property,X,"property",G,1),X}function GD(f,G){let X={type:"JSXNamespacedName",namespace:f,name:G},W=C.JSXNamespacedName;return Z(W.namespace,X,"namespace",f,1),Z(W.name,X,"name",G,1),X}function XD(f,G,X=!1){let W={type:"JSXOpeningElement",name:f,attributes:G,selfClosing:X},R=C.JSXOpeningElement;return Z(R.name,W,"name",f,1),Z(R.attributes,W,"attributes",G,1),Z(R.selfClosing,W,"selfClosing",X),W}function WD(f){let G={type:"JSXSpreadAttribute",argument:f},X=C.JSXSpreadAttribute;return Z(X.argument,G,"argument",f,1),G}function RD(f){let G={type:"JSXText",value:f},X=C.JSXText;return Z(X.value,G,"value",f),G}function JD(f,G,X){let W={type:"JSXFragment",openingFragment:f,closingFragment:G,children:X},R=C.JSXFragment;return Z(R.openingFragment,W,"openingFragment",f,1),Z(R.closingFragment,W,"closingFragment",G,1),Z(R.children,W,"children",X,1),W}function UD(){return{type:"JSXOpeningFragment"}}function VD(){return{type:"JSXClosingFragment"}}function HD(){return{type:"Noop"}}function QD(f,G){let X={type:"Placeholder",expectedNode:f,name:G},W=C.Placeholder;return Z(W.expectedNode,X,"expectedNode",f),Z(W.name,X,"name",G,1),X}function ZD(f){let G={type:"V8IntrinsicIdentifier",name:f},X=C.V8IntrinsicIdentifier;return Z(X.name,G,"name",f),G}function YD(){return{type:"ArgumentPlaceholder"}}function zD(f,G){let X={type:"BindExpression",object:f,callee:G},W=C.BindExpression;return Z(W.object,X,"object",f,1),Z(W.callee,X,"callee",G,1),X}function BD(f,G){let X={type:"ImportAttribute",key:f,value:G},W=C.ImportAttribute;return Z(W.key,X,"key",f,1),Z(W.value,X,"value",G,1),X}function MD(f){let G={type:"Decorator",expression:f},X=C.Decorator;return Z(X.expression,G,"expression",f,1),G}function KD(f,G=!1){let X={type:"DoExpression",body:f,async:G},W=C.DoExpression;return Z(W.body,X,"body",f,1),Z(W.async,X,"async",G),X}function SD(f){let G={type:"ExportDefaultSpecifier",exported:f},X=C.ExportDefaultSpecifier;return Z(X.exported,G,"exported",f,1),G}function FD(f){let G={type:"RecordExpression",properties:f},X=C.RecordExpression;return Z(X.properties,G,"properties",f,1),G}function $D(f=[]){let G={type:"TupleExpression",elements:f},X=C.TupleExpression;return Z(X.elements,G,"elements",f,1),G}function CD(f){let G={type:"DecimalLiteral",value:f},X=C.DecimalLiteral;return Z(X.value,G,"value",f),G}function qD(f){let G={type:"ModuleExpression",body:f},X=C.ModuleExpression;return Z(X.body,G,"body",f,1),G}function AD(){return{type:"TopicReference"}}function OD(f){let G={type:"PipelineTopicExpression",expression:f},X=C.PipelineTopicExpression;return Z(X.expression,G,"expression",f,1),G}function jD(f){let G={type:"PipelineBareFunction",callee:f},X=C.PipelineBareFunction;return Z(X.callee,G,"callee",f,1),G}function PD(){return{type:"PipelinePrimaryTopicReference"}}function DD(f){let G={type:"TSParameterProperty",parameter:f},X=C.TSParameterProperty;return Z(X.parameter,G,"parameter",f,1),G}function ID(f=null,G=null,X,W=null){let R={type:"TSDeclareFunction",id:f,typeParameters:G,params:X,returnType:W},J=C.TSDeclareFunction;return Z(J.id,R,"id",f,1),Z(J.typeParameters,R,"typeParameters",G,1),Z(J.params,R,"params",X,1),Z(J.returnType,R,"returnType",W,1),R}function TD(f=null,G,X=null,W,R=null){let J={type:"TSDeclareMethod",decorators:f,key:G,typeParameters:X,params:W,returnType:R},U=C.TSDeclareMethod;return Z(U.decorators,J,"decorators",f,1),Z(U.key,J,"key",G,1),Z(U.typeParameters,J,"typeParameters",X,1),Z(U.params,J,"params",W,1),Z(U.returnType,J,"returnType",R,1),J}function ND(f,G){let X={type:"TSQualifiedName",left:f,right:G},W=C.TSQualifiedName;return Z(W.left,X,"left",f,1),Z(W.right,X,"right",G,1),X}function LD(f=null,G,X=null){let W={type:"TSCallSignatureDeclaration",typeParameters:f,parameters:G,typeAnnotation:X},R=C.TSCallSignatureDeclaration;return Z(R.typeParameters,W,"typeParameters",f,1),Z(R.parameters,W,"parameters",G,1),Z(R.typeAnnotation,W,"typeAnnotation",X,1),W}function bD(f=null,G,X=null){let W={type:"TSConstructSignatureDeclaration",typeParameters:f,parameters:G,typeAnnotation:X},R=C.TSConstructSignatureDeclaration;return Z(R.typeParameters,W,"typeParameters",f,1),Z(R.parameters,W,"parameters",G,1),Z(R.typeAnnotation,W,"typeAnnotation",X,1),W}function ED(f,G=null){let X={type:"TSPropertySignature",key:f,typeAnnotation:G},W=C.TSPropertySignature;return Z(W.key,X,"key",f,1),Z(W.typeAnnotation,X,"typeAnnotation",G,1),X}function wD(f,G=null,X,W=null){let R={type:"TSMethodSignature",key:f,typeParameters:G,parameters:X,typeAnnotation:W,kind:null},J=C.TSMethodSignature;return Z(J.key,R,"key",f,1),Z(J.typeParameters,R,"typeParameters",G,1),Z(J.parameters,R,"parameters",X,1),Z(J.typeAnnotation,R,"typeAnnotation",W,1),R}function kD(f,G=null){let X={type:"TSIndexSignature",parameters:f,typeAnnotation:G},W=C.TSIndexSignature;return Z(W.parameters,X,"parameters",f,1),Z(W.typeAnnotation,X,"typeAnnotation",G,1),X}function vD(){return{type:"TSAnyKeyword"}}function gD(){return{type:"TSBooleanKeyword"}}function _D(){return{type:"TSBigIntKeyword"}}function uD(){return{type:"TSIntrinsicKeyword"}}function hD(){return{type:"TSNeverKeyword"}}function yD(){return{type:"TSNullKeyword"}}function xD(){return{type:"TSNumberKeyword"}}function mD(){return{type:"TSObjectKeyword"}}function lD(){return{type:"TSStringKeyword"}}function cD(){return{type:"TSSymbolKeyword"}}function aD(){return{type:"TSUndefinedKeyword"}}function iD(){return{type:"TSUnknownKeyword"}}function rD(){return{type:"TSVoidKeyword"}}function sD(){return{type:"TSThisType"}}function pD(f=null,G,X=null){let W={type:"TSFunctionType",typeParameters:f,parameters:G,typeAnnotation:X},R=C.TSFunctionType;return Z(R.typeParameters,W,"typeParameters",f,1),Z(R.parameters,W,"parameters",G,1),Z(R.typeAnnotation,W,"typeAnnotation",X,1),W}function dD(f=null,G,X=null){let W={type:"TSConstructorType",typeParameters:f,parameters:G,typeAnnotation:X},R=C.TSConstructorType;return Z(R.typeParameters,W,"typeParameters",f,1),Z(R.parameters,W,"parameters",G,1),Z(R.typeAnnotation,W,"typeAnnotation",X,1),W}function tD(f,G=null){let X={type:"TSTypeReference",typeName:f,typeParameters:G},W=C.TSTypeReference;return Z(W.typeName,X,"typeName",f,1),Z(W.typeParameters,X,"typeParameters",G,1),X}function nD(f,G=null,X=null){let W={type:"TSTypePredicate",parameterName:f,typeAnnotation:G,asserts:X},R=C.TSTypePredicate;return Z(R.parameterName,W,"parameterName",f,1),Z(R.typeAnnotation,W,"typeAnnotation",G,1),Z(R.asserts,W,"asserts",X),W}function oD(f,G=null){let X={type:"TSTypeQuery",exprName:f,typeParameters:G},W=C.TSTypeQuery;return Z(W.exprName,X,"exprName",f,1),Z(W.typeParameters,X,"typeParameters",G,1),X}function eD(f){let G={type:"TSTypeLiteral",members:f},X=C.TSTypeLiteral;return Z(X.members,G,"members",f,1),G}function fI(f){let G={type:"TSArrayType",elementType:f},X=C.TSArrayType;return Z(X.elementType,G,"elementType",f,1),G}function GI(f){let G={type:"TSTupleType",elementTypes:f},X=C.TSTupleType;return Z(X.elementTypes,G,"elementTypes",f,1),G}function XI(f){let G={type:"TSOptionalType",typeAnnotation:f},X=C.TSOptionalType;return Z(X.typeAnnotation,G,"typeAnnotation",f,1),G}function WI(f){let G={type:"TSRestType",typeAnnotation:f},X=C.TSRestType;return Z(X.typeAnnotation,G,"typeAnnotation",f,1),G}function RI(f,G,X=!1){let W={type:"TSNamedTupleMember",label:f,elementType:G,optional:X},R=C.TSNamedTupleMember;return Z(R.label,W,"label",f,1),Z(R.elementType,W,"elementType",G,1),Z(R.optional,W,"optional",X),W}function JI(f){let G={type:"TSUnionType",types:f},X=C.TSUnionType;return Z(X.types,G,"types",f,1),G}function UI(f){let G={type:"TSIntersectionType",types:f},X=C.TSIntersectionType;return Z(X.types,G,"types",f,1),G}function VI(f,G,X,W){let R={type:"TSConditionalType",checkType:f,extendsType:G,trueType:X,falseType:W},J=C.TSConditionalType;return Z(J.checkType,R,"checkType",f,1),Z(J.extendsType,R,"extendsType",G,1),Z(J.trueType,R,"trueType",X,1),Z(J.falseType,R,"falseType",W,1),R}function HI(f){let G={type:"TSInferType",typeParameter:f},X=C.TSInferType;return Z(X.typeParameter,G,"typeParameter",f,1),G}function QI(f){let G={type:"TSParenthesizedType",typeAnnotation:f},X=C.TSParenthesizedType;return Z(X.typeAnnotation,G,"typeAnnotation",f,1),G}function ZI(f){let G={type:"TSTypeOperator",typeAnnotation:f,operator:null},X=C.TSTypeOperator;return Z(X.typeAnnotation,G,"typeAnnotation",f,1),G}function YI(f,G){let X={type:"TSIndexedAccessType",objectType:f,indexType:G},W=C.TSIndexedAccessType;return Z(W.objectType,X,"objectType",f,1),Z(W.indexType,X,"indexType",G,1),X}function zI(f,G=null,X=null){let W={type:"TSMappedType",typeParameter:f,typeAnnotation:G,nameType:X},R=C.TSMappedType;return Z(R.typeParameter,W,"typeParameter",f,1),Z(R.typeAnnotation,W,"typeAnnotation",G,1),Z(R.nameType,W,"nameType",X,1),W}function BI(f,G){let X={type:"TSTemplateLiteralType",quasis:f,types:G},W=C.TSTemplateLiteralType;return Z(W.quasis,X,"quasis",f,1),Z(W.types,X,"types",G,1),X}function MI(f){let G={type:"TSLiteralType",literal:f},X=C.TSLiteralType;return Z(X.literal,G,"literal",f,1),G}function KI(f,G=null){let X={type:"TSExpressionWithTypeArguments",expression:f,typeParameters:G},W=C.TSExpressionWithTypeArguments;return Z(W.expression,X,"expression",f,1),Z(W.typeParameters,X,"typeParameters",G,1),X}function SI(f,G=null,X=null,W){let R={type:"TSInterfaceDeclaration",id:f,typeParameters:G,extends:X,body:W},J=C.TSInterfaceDeclaration;return Z(J.id,R,"id",f,1),Z(J.typeParameters,R,"typeParameters",G,1),Z(J.extends,R,"extends",X,1),Z(J.body,R,"body",W,1),R}function FI(f){let G={type:"TSInterfaceBody",body:f},X=C.TSInterfaceBody;return Z(X.body,G,"body",f,1),G}function $I(f,G=null,X){let W={type:"TSTypeAliasDeclaration",id:f,typeParameters:G,typeAnnotation:X},R=C.TSTypeAliasDeclaration;return Z(R.id,W,"id",f,1),Z(R.typeParameters,W,"typeParameters",G,1),Z(R.typeAnnotation,W,"typeAnnotation",X,1),W}function CI(f,G=null){let X={type:"TSInstantiationExpression",expression:f,typeParameters:G},W=C.TSInstantiationExpression;return Z(W.expression,X,"expression",f,1),Z(W.typeParameters,X,"typeParameters",G,1),X}function qI(f,G){let X={type:"TSAsExpression",expression:f,typeAnnotation:G},W=C.TSAsExpression;return Z(W.expression,X,"expression",f,1),Z(W.typeAnnotation,X,"typeAnnotation",G,1),X}function AI(f,G){let X={type:"TSSatisfiesExpression",expression:f,typeAnnotation:G},W=C.TSSatisfiesExpression;return Z(W.expression,X,"expression",f,1),Z(W.typeAnnotation,X,"typeAnnotation",G,1),X}function OI(f,G){let X={type:"TSTypeAssertion",typeAnnotation:f,expression:G},W=C.TSTypeAssertion;return Z(W.typeAnnotation,X,"typeAnnotation",f,1),Z(W.expression,X,"expression",G,1),X}function jI(f){let G={type:"TSEnumBody",members:f},X=C.TSEnumBody;return Z(X.members,G,"members",f,1),G}function PI(f,G){let X={type:"TSEnumDeclaration",id:f,members:G},W=C.TSEnumDeclaration;return Z(W.id,X,"id",f,1),Z(W.members,X,"members",G,1),X}function DI(f,G=null){let X={type:"TSEnumMember",id:f,initializer:G},W=C.TSEnumMember;return Z(W.id,X,"id",f,1),Z(W.initializer,X,"initializer",G,1),X}function II(f,G){let X={type:"TSModuleDeclaration",id:f,body:G,kind:null},W=C.TSModuleDeclaration;return Z(W.id,X,"id",f,1),Z(W.body,X,"body",G,1),X}function TI(f){let G={type:"TSModuleBlock",body:f},X=C.TSModuleBlock;return Z(X.body,G,"body",f,1),G}function NI(f,G=null,X=null){let W={type:"TSImportType",argument:f,qualifier:G,typeParameters:X},R=C.TSImportType;return Z(R.argument,W,"argument",f,1),Z(R.qualifier,W,"qualifier",G,1),Z(R.typeParameters,W,"typeParameters",X,1),W}function LI(f,G){let X={type:"TSImportEqualsDeclaration",id:f,moduleReference:G,isExport:null},W=C.TSImportEqualsDeclaration;return Z(W.id,X,"id",f,1),Z(W.moduleReference,X,"moduleReference",G,1),X}function bI(f){let G={type:"TSExternalModuleReference",expression:f},X=C.TSExternalModuleReference;return Z(X.expression,G,"expression",f,1),G}function EI(f){let G={type:"TSNonNullExpression",expression:f},X=C.TSNonNullExpression;return Z(X.expression,G,"expression",f,1),G}function wI(f){let G={type:"TSExportAssignment",expression:f},X=C.TSExportAssignment;return Z(X.expression,G,"expression",f,1),G}function kI(f){let G={type:"TSNamespaceExportDeclaration",id:f},X=C.TSNamespaceExportDeclaration;return Z(X.id,G,"id",f,1),G}function vI(f){let G={type:"TSTypeAnnotation",typeAnnotation:f},X=C.TSTypeAnnotation;return Z(X.typeAnnotation,G,"typeAnnotation",f,1),G}function gI(f){let G={type:"TSTypeParameterInstantiation",params:f},X=C.TSTypeParameterInstantiation;return Z(X.params,G,"params",f,1),G}function _I(f){let G={type:"TSTypeParameterDeclaration",params:f},X=C.TSTypeParameterDeclaration;return Z(X.params,G,"params",f,1),G}function uI(f=null,G=null,X){let W={type:"TSTypeParameter",constraint:f,default:G,name:X},R=C.TSTypeParameter;return Z(R.constraint,W,"constraint",f,1),Z(R.default,W,"default",G,1),Z(R.name,W,"name",X),W}function hI(f){return _X.default("NumberLiteral","NumericLiteral","The node type "),D6(f)}function yI(f,G=""){return _X.default("RegexLiteral","RegExpLiteral","The node type "),I6(f,G)}function xI(f){return _X.default("RestProperty","RestElement","The node type "),T6(f)}function mI(f){return _X.default("SpreadProperty","SpreadElement","The node type "),N6(f)}});var b6=P((K)=>{Object.defineProperty(K,"__esModule",{value:!0});Object.defineProperty(K,"AnyTypeAnnotation",{enumerable:!0,get:function(){return S.anyTypeAnnotation}});Object.defineProperty(K,"ArgumentPlaceholder",{enumerable:!0,get:function(){return S.argumentPlaceholder}});Object.defineProperty(K,"ArrayExpression",{enumerable:!0,get:function(){return S.arrayExpression}});Object.defineProperty(K,"ArrayPattern",{enumerable:!0,get:function(){return S.arrayPattern}});Object.defineProperty(K,"ArrayTypeAnnotation",{enumerable:!0,get:function(){return S.arrayTypeAnnotation}});Object.defineProperty(K,"ArrowFunctionExpression",{enumerable:!0,get:function(){return S.arrowFunctionExpression}});Object.defineProperty(K,"AssignmentExpression",{enumerable:!0,get:function(){return S.assignmentExpression}});Object.defineProperty(K,"AssignmentPattern",{enumerable:!0,get:function(){return S.assignmentPattern}});Object.defineProperty(K,"AwaitExpression",{enumerable:!0,get:function(){return S.awaitExpression}});Object.defineProperty(K,"BigIntLiteral",{enumerable:!0,get:function(){return S.bigIntLiteral}});Object.defineProperty(K,"BinaryExpression",{enumerable:!0,get:function(){return S.binaryExpression}});Object.defineProperty(K,"BindExpression",{enumerable:!0,get:function(){return S.bindExpression}});Object.defineProperty(K,"BlockStatement",{enumerable:!0,get:function(){return S.blockStatement}});Object.defineProperty(K,"BooleanLiteral",{enumerable:!0,get:function(){return S.booleanLiteral}});Object.defineProperty(K,"BooleanLiteralTypeAnnotation",{enumerable:!0,get:function(){return S.booleanLiteralTypeAnnotation}});Object.defineProperty(K,"BooleanTypeAnnotation",{enumerable:!0,get:function(){return S.booleanTypeAnnotation}});Object.defineProperty(K,"BreakStatement",{enumerable:!0,get:function(){return S.breakStatement}});Object.defineProperty(K,"CallExpression",{enumerable:!0,get:function(){return S.callExpression}});Object.defineProperty(K,"CatchClause",{enumerable:!0,get:function(){return S.catchClause}});Object.defineProperty(K,"ClassAccessorProperty",{enumerable:!0,get:function(){return S.classAccessorProperty}});Object.defineProperty(K,"ClassBody",{enumerable:!0,get:function(){return S.classBody}});Object.defineProperty(K,"ClassDeclaration",{enumerable:!0,get:function(){return S.classDeclaration}});Object.defineProperty(K,"ClassExpression",{enumerable:!0,get:function(){return S.classExpression}});Object.defineProperty(K,"ClassImplements",{enumerable:!0,get:function(){return S.classImplements}});Object.defineProperty(K,"ClassMethod",{enumerable:!0,get:function(){return S.classMethod}});Object.defineProperty(K,"ClassPrivateMethod",{enumerable:!0,get:function(){return S.classPrivateMethod}});Object.defineProperty(K,"ClassPrivateProperty",{enumerable:!0,get:function(){return S.classPrivateProperty}});Object.defineProperty(K,"ClassProperty",{enumerable:!0,get:function(){return S.classProperty}});Object.defineProperty(K,"ConditionalExpression",{enumerable:!0,get:function(){return S.conditionalExpression}});Object.defineProperty(K,"ContinueStatement",{enumerable:!0,get:function(){return S.continueStatement}});Object.defineProperty(K,"DebuggerStatement",{enumerable:!0,get:function(){return S.debuggerStatement}});Object.defineProperty(K,"DecimalLiteral",{enumerable:!0,get:function(){return S.decimalLiteral}});Object.defineProperty(K,"DeclareClass",{enumerable:!0,get:function(){return S.declareClass}});Object.defineProperty(K,"DeclareExportAllDeclaration",{enumerable:!0,get:function(){return S.declareExportAllDeclaration}});Object.defineProperty(K,"DeclareExportDeclaration",{enumerable:!0,get:function(){return S.declareExportDeclaration}});Object.defineProperty(K,"DeclareFunction",{enumerable:!0,get:function(){return S.declareFunction}});Object.defineProperty(K,"DeclareInterface",{enumerable:!0,get:function(){return S.declareInterface}});Object.defineProperty(K,"DeclareModule",{enumerable:!0,get:function(){return S.declareModule}});Object.defineProperty(K,"DeclareModuleExports",{enumerable:!0,get:function(){return S.declareModuleExports}});Object.defineProperty(K,"DeclareOpaqueType",{enumerable:!0,get:function(){return S.declareOpaqueType}});Object.defineProperty(K,"DeclareTypeAlias",{enumerable:!0,get:function(){return S.declareTypeAlias}});Object.defineProperty(K,"DeclareVariable",{enumerable:!0,get:function(){return S.declareVariable}});Object.defineProperty(K,"DeclaredPredicate",{enumerable:!0,get:function(){return S.declaredPredicate}});Object.defineProperty(K,"Decorator",{enumerable:!0,get:function(){return S.decorator}});Object.defineProperty(K,"Directive",{enumerable:!0,get:function(){return S.directive}});Object.defineProperty(K,"DirectiveLiteral",{enumerable:!0,get:function(){return S.directiveLiteral}});Object.defineProperty(K,"DoExpression",{enumerable:!0,get:function(){return S.doExpression}});Object.defineProperty(K,"DoWhileStatement",{enumerable:!0,get:function(){return S.doWhileStatement}});Object.defineProperty(K,"EmptyStatement",{enumerable:!0,get:function(){return S.emptyStatement}});Object.defineProperty(K,"EmptyTypeAnnotation",{enumerable:!0,get:function(){return S.emptyTypeAnnotation}});Object.defineProperty(K,"EnumBooleanBody",{enumerable:!0,get:function(){return S.enumBooleanBody}});Object.defineProperty(K,"EnumBooleanMember",{enumerable:!0,get:function(){return S.enumBooleanMember}});Object.defineProperty(K,"EnumDeclaration",{enumerable:!0,get:function(){return S.enumDeclaration}});Object.defineProperty(K,"EnumDefaultedMember",{enumerable:!0,get:function(){return S.enumDefaultedMember}});Object.defineProperty(K,"EnumNumberBody",{enumerable:!0,get:function(){return S.enumNumberBody}});Object.defineProperty(K,"EnumNumberMember",{enumerable:!0,get:function(){return S.enumNumberMember}});Object.defineProperty(K,"EnumStringBody",{enumerable:!0,get:function(){return S.enumStringBody}});Object.defineProperty(K,"EnumStringMember",{enumerable:!0,get:function(){return S.enumStringMember}});Object.defineProperty(K,"EnumSymbolBody",{enumerable:!0,get:function(){return S.enumSymbolBody}});Object.defineProperty(K,"ExistsTypeAnnotation",{enumerable:!0,get:function(){return S.existsTypeAnnotation}});Object.defineProperty(K,"ExportAllDeclaration",{enumerable:!0,get:function(){return S.exportAllDeclaration}});Object.defineProperty(K,"ExportDefaultDeclaration",{enumerable:!0,get:function(){return S.exportDefaultDeclaration}});Object.defineProperty(K,"ExportDefaultSpecifier",{enumerable:!0,get:function(){return S.exportDefaultSpecifier}});Object.defineProperty(K,"ExportNamedDeclaration",{enumerable:!0,get:function(){return S.exportNamedDeclaration}});Object.defineProperty(K,"ExportNamespaceSpecifier",{enumerable:!0,get:function(){return S.exportNamespaceSpecifier}});Object.defineProperty(K,"ExportSpecifier",{enumerable:!0,get:function(){return S.exportSpecifier}});Object.defineProperty(K,"ExpressionStatement",{enumerable:!0,get:function(){return S.expressionStatement}});Object.defineProperty(K,"File",{enumerable:!0,get:function(){return S.file}});Object.defineProperty(K,"ForInStatement",{enumerable:!0,get:function(){return S.forInStatement}});Object.defineProperty(K,"ForOfStatement",{enumerable:!0,get:function(){return S.forOfStatement}});Object.defineProperty(K,"ForStatement",{enumerable:!0,get:function(){return S.forStatement}});Object.defineProperty(K,"FunctionDeclaration",{enumerable:!0,get:function(){return S.functionDeclaration}});Object.defineProperty(K,"FunctionExpression",{enumerable:!0,get:function(){return S.functionExpression}});Object.defineProperty(K,"FunctionTypeAnnotation",{enumerable:!0,get:function(){return S.functionTypeAnnotation}});Object.defineProperty(K,"FunctionTypeParam",{enumerable:!0,get:function(){return S.functionTypeParam}});Object.defineProperty(K,"GenericTypeAnnotation",{enumerable:!0,get:function(){return S.genericTypeAnnotation}});Object.defineProperty(K,"Identifier",{enumerable:!0,get:function(){return S.identifier}});Object.defineProperty(K,"IfStatement",{enumerable:!0,get:function(){return S.ifStatement}});Object.defineProperty(K,"Import",{enumerable:!0,get:function(){return S.import}});Object.defineProperty(K,"ImportAttribute",{enumerable:!0,get:function(){return S.importAttribute}});Object.defineProperty(K,"ImportDeclaration",{enumerable:!0,get:function(){return S.importDeclaration}});Object.defineProperty(K,"ImportDefaultSpecifier",{enumerable:!0,get:function(){return S.importDefaultSpecifier}});Object.defineProperty(K,"ImportExpression",{enumerable:!0,get:function(){return S.importExpression}});Object.defineProperty(K,"ImportNamespaceSpecifier",{enumerable:!0,get:function(){return S.importNamespaceSpecifier}});Object.defineProperty(K,"ImportSpecifier",{enumerable:!0,get:function(){return S.importSpecifier}});Object.defineProperty(K,"IndexedAccessType",{enumerable:!0,get:function(){return S.indexedAccessType}});Object.defineProperty(K,"InferredPredicate",{enumerable:!0,get:function(){return S.inferredPredicate}});Object.defineProperty(K,"InterfaceDeclaration",{enumerable:!0,get:function(){return S.interfaceDeclaration}});Object.defineProperty(K,"InterfaceExtends",{enumerable:!0,get:function(){return S.interfaceExtends}});Object.defineProperty(K,"InterfaceTypeAnnotation",{enumerable:!0,get:function(){return S.interfaceTypeAnnotation}});Object.defineProperty(K,"InterpreterDirective",{enumerable:!0,get:function(){return S.interpreterDirective}});Object.defineProperty(K,"IntersectionTypeAnnotation",{enumerable:!0,get:function(){return S.intersectionTypeAnnotation}});Object.defineProperty(K,"JSXAttribute",{enumerable:!0,get:function(){return S.jsxAttribute}});Object.defineProperty(K,"JSXClosingElement",{enumerable:!0,get:function(){return S.jsxClosingElement}});Object.defineProperty(K,"JSXClosingFragment",{enumerable:!0,get:function(){return S.jsxClosingFragment}});Object.defineProperty(K,"JSXElement",{enumerable:!0,get:function(){return S.jsxElement}});Object.defineProperty(K,"JSXEmptyExpression",{enumerable:!0,get:function(){return S.jsxEmptyExpression}});Object.defineProperty(K,"JSXExpressionContainer",{enumerable:!0,get:function(){return S.jsxExpressionContainer}});Object.defineProperty(K,"JSXFragment",{enumerable:!0,get:function(){return S.jsxFragment}});Object.defineProperty(K,"JSXIdentifier",{enumerable:!0,get:function(){return S.jsxIdentifier}});Object.defineProperty(K,"JSXMemberExpression",{enumerable:!0,get:function(){return S.jsxMemberExpression}});Object.defineProperty(K,"JSXNamespacedName",{enumerable:!0,get:function(){return S.jsxNamespacedName}});Object.defineProperty(K,"JSXOpeningElement",{enumerable:!0,get:function(){return S.jsxOpeningElement}});Object.defineProperty(K,"JSXOpeningFragment",{enumerable:!0,get:function(){return S.jsxOpeningFragment}});Object.defineProperty(K,"JSXSpreadAttribute",{enumerable:!0,get:function(){return S.jsxSpreadAttribute}});Object.defineProperty(K,"JSXSpreadChild",{enumerable:!0,get:function(){return S.jsxSpreadChild}});Object.defineProperty(K,"JSXText",{enumerable:!0,get:function(){return S.jsxText}});Object.defineProperty(K,"LabeledStatement",{enumerable:!0,get:function(){return S.labeledStatement}});Object.defineProperty(K,"LogicalExpression",{enumerable:!0,get:function(){return S.logicalExpression}});Object.defineProperty(K,"MemberExpression",{enumerable:!0,get:function(){return S.memberExpression}});Object.defineProperty(K,"MetaProperty",{enumerable:!0,get:function(){return S.metaProperty}});Object.defineProperty(K,"MixedTypeAnnotation",{enumerable:!0,get:function(){return S.mixedTypeAnnotation}});Object.defineProperty(K,"ModuleExpression",{enumerable:!0,get:function(){return S.moduleExpression}});Object.defineProperty(K,"NewExpression",{enumerable:!0,get:function(){return S.newExpression}});Object.defineProperty(K,"Noop",{enumerable:!0,get:function(){return S.noop}});Object.defineProperty(K,"NullLiteral",{enumerable:!0,get:function(){return S.nullLiteral}});Object.defineProperty(K,"NullLiteralTypeAnnotation",{enumerable:!0,get:function(){return S.nullLiteralTypeAnnotation}});Object.defineProperty(K,"NullableTypeAnnotation",{enumerable:!0,get:function(){return S.nullableTypeAnnotation}});Object.defineProperty(K,"NumberLiteral",{enumerable:!0,get:function(){return S.numberLiteral}});Object.defineProperty(K,"NumberLiteralTypeAnnotation",{enumerable:!0,get:function(){return S.numberLiteralTypeAnnotation}});Object.defineProperty(K,"NumberTypeAnnotation",{enumerable:!0,get:function(){return S.numberTypeAnnotation}});Object.defineProperty(K,"NumericLiteral",{enumerable:!0,get:function(){return S.numericLiteral}});Object.defineProperty(K,"ObjectExpression",{enumerable:!0,get:function(){return S.objectExpression}});Object.defineProperty(K,"ObjectMethod",{enumerable:!0,get:function(){return S.objectMethod}});Object.defineProperty(K,"ObjectPattern",{enumerable:!0,get:function(){return S.objectPattern}});Object.defineProperty(K,"ObjectProperty",{enumerable:!0,get:function(){return S.objectProperty}});Object.defineProperty(K,"ObjectTypeAnnotation",{enumerable:!0,get:function(){return S.objectTypeAnnotation}});Object.defineProperty(K,"ObjectTypeCallProperty",{enumerable:!0,get:function(){return S.objectTypeCallProperty}});Object.defineProperty(K,"ObjectTypeIndexer",{enumerable:!0,get:function(){return S.objectTypeIndexer}});Object.defineProperty(K,"ObjectTypeInternalSlot",{enumerable:!0,get:function(){return S.objectTypeInternalSlot}});Object.defineProperty(K,"ObjectTypeProperty",{enumerable:!0,get:function(){return S.objectTypeProperty}});Object.defineProperty(K,"ObjectTypeSpreadProperty",{enumerable:!0,get:function(){return S.objectTypeSpreadProperty}});Object.defineProperty(K,"OpaqueType",{enumerable:!0,get:function(){return S.opaqueType}});Object.defineProperty(K,"OptionalCallExpression",{enumerable:!0,get:function(){return S.optionalCallExpression}});Object.defineProperty(K,"OptionalIndexedAccessType",{enumerable:!0,get:function(){return S.optionalIndexedAccessType}});Object.defineProperty(K,"OptionalMemberExpression",{enumerable:!0,get:function(){return S.optionalMemberExpression}});Object.defineProperty(K,"ParenthesizedExpression",{enumerable:!0,get:function(){return S.parenthesizedExpression}});Object.defineProperty(K,"PipelineBareFunction",{enumerable:!0,get:function(){return S.pipelineBareFunction}});Object.defineProperty(K,"PipelinePrimaryTopicReference",{enumerable:!0,get:function(){return S.pipelinePrimaryTopicReference}});Object.defineProperty(K,"PipelineTopicExpression",{enumerable:!0,get:function(){return S.pipelineTopicExpression}});Object.defineProperty(K,"Placeholder",{enumerable:!0,get:function(){return S.placeholder}});Object.defineProperty(K,"PrivateName",{enumerable:!0,get:function(){return S.privateName}});Object.defineProperty(K,"Program",{enumerable:!0,get:function(){return S.program}});Object.defineProperty(K,"QualifiedTypeIdentifier",{enumerable:!0,get:function(){return S.qualifiedTypeIdentifier}});Object.defineProperty(K,"RecordExpression",{enumerable:!0,get:function(){return S.recordExpression}});Object.defineProperty(K,"RegExpLiteral",{enumerable:!0,get:function(){return S.regExpLiteral}});Object.defineProperty(K,"RegexLiteral",{enumerable:!0,get:function(){return S.regexLiteral}});Object.defineProperty(K,"RestElement",{enumerable:!0,get:function(){return S.restElement}});Object.defineProperty(K,"RestProperty",{enumerable:!0,get:function(){return S.restProperty}});Object.defineProperty(K,"ReturnStatement",{enumerable:!0,get:function(){return S.returnStatement}});Object.defineProperty(K,"SequenceExpression",{enumerable:!0,get:function(){return S.sequenceExpression}});Object.defineProperty(K,"SpreadElement",{enumerable:!0,get:function(){return S.spreadElement}});Object.defineProperty(K,"SpreadProperty",{enumerable:!0,get:function(){return S.spreadProperty}});Object.defineProperty(K,"StaticBlock",{enumerable:!0,get:function(){return S.staticBlock}});Object.defineProperty(K,"StringLiteral",{enumerable:!0,get:function(){return S.stringLiteral}});Object.defineProperty(K,"StringLiteralTypeAnnotation",{enumerable:!0,get:function(){return S.stringLiteralTypeAnnotation}});Object.defineProperty(K,"StringTypeAnnotation",{enumerable:!0,get:function(){return S.stringTypeAnnotation}});Object.defineProperty(K,"Super",{enumerable:!0,get:function(){return S.super}});Object.defineProperty(K,"SwitchCase",{enumerable:!0,get:function(){return S.switchCase}});Object.defineProperty(K,"SwitchStatement",{enumerable:!0,get:function(){return S.switchStatement}});Object.defineProperty(K,"SymbolTypeAnnotation",{enumerable:!0,get:function(){return S.symbolTypeAnnotation}});Object.defineProperty(K,"TSAnyKeyword",{enumerable:!0,get:function(){return S.tsAnyKeyword}});Object.defineProperty(K,"TSArrayType",{enumerable:!0,get:function(){return S.tsArrayType}});Object.defineProperty(K,"TSAsExpression",{enumerable:!0,get:function(){return S.tsAsExpression}});Object.defineProperty(K,"TSBigIntKeyword",{enumerable:!0,get:function(){return S.tsBigIntKeyword}});Object.defineProperty(K,"TSBooleanKeyword",{enumerable:!0,get:function(){return S.tsBooleanKeyword}});Object.defineProperty(K,"TSCallSignatureDeclaration",{enumerable:!0,get:function(){return S.tsCallSignatureDeclaration}});Object.defineProperty(K,"TSConditionalType",{enumerable:!0,get:function(){return S.tsConditionalType}});Object.defineProperty(K,"TSConstructSignatureDeclaration",{enumerable:!0,get:function(){return S.tsConstructSignatureDeclaration}});Object.defineProperty(K,"TSConstructorType",{enumerable:!0,get:function(){return S.tsConstructorType}});Object.defineProperty(K,"TSDeclareFunction",{enumerable:!0,get:function(){return S.tsDeclareFunction}});Object.defineProperty(K,"TSDeclareMethod",{enumerable:!0,get:function(){return S.tsDeclareMethod}});Object.defineProperty(K,"TSEnumBody",{enumerable:!0,get:function(){return S.tsEnumBody}});Object.defineProperty(K,"TSEnumDeclaration",{enumerable:!0,get:function(){return S.tsEnumDeclaration}});Object.defineProperty(K,"TSEnumMember",{enumerable:!0,get:function(){return S.tsEnumMember}});Object.defineProperty(K,"TSExportAssignment",{enumerable:!0,get:function(){return S.tsExportAssignment}});Object.defineProperty(K,"TSExpressionWithTypeArguments",{enumerable:!0,get:function(){return S.tsExpressionWithTypeArguments}});Object.defineProperty(K,"TSExternalModuleReference",{enumerable:!0,get:function(){return S.tsExternalModuleReference}});Object.defineProperty(K,"TSFunctionType",{enumerable:!0,get:function(){return S.tsFunctionType}});Object.defineProperty(K,"TSImportEqualsDeclaration",{enumerable:!0,get:function(){return S.tsImportEqualsDeclaration}});Object.defineProperty(K,"TSImportType",{enumerable:!0,get:function(){return S.tsImportType}});Object.defineProperty(K,"TSIndexSignature",{enumerable:!0,get:function(){return S.tsIndexSignature}});Object.defineProperty(K,"TSIndexedAccessType",{enumerable:!0,get:function(){return S.tsIndexedAccessType}});Object.defineProperty(K,"TSInferType",{enumerable:!0,get:function(){return S.tsInferType}});Object.defineProperty(K,"TSInstantiationExpression",{enumerable:!0,get:function(){return S.tsInstantiationExpression}});Object.defineProperty(K,"TSInterfaceBody",{enumerable:!0,get:function(){return S.tsInterfaceBody}});Object.defineProperty(K,"TSInterfaceDeclaration",{enumerable:!0,get:function(){return S.tsInterfaceDeclaration}});Object.defineProperty(K,"TSIntersectionType",{enumerable:!0,get:function(){return S.tsIntersectionType}});Object.defineProperty(K,"TSIntrinsicKeyword",{enumerable:!0,get:function(){return S.tsIntrinsicKeyword}});Object.defineProperty(K,"TSLiteralType",{enumerable:!0,get:function(){return S.tsLiteralType}});Object.defineProperty(K,"TSMappedType",{enumerable:!0,get:function(){return S.tsMappedType}});Object.defineProperty(K,"TSMethodSignature",{enumerable:!0,get:function(){return S.tsMethodSignature}});Object.defineProperty(K,"TSModuleBlock",{enumerable:!0,get:function(){return S.tsModuleBlock}});Object.defineProperty(K,"TSModuleDeclaration",{enumerable:!0,get:function(){return S.tsModuleDeclaration}});Object.defineProperty(K,"TSNamedTupleMember",{enumerable:!0,get:function(){return S.tsNamedTupleMember}});Object.defineProperty(K,"TSNamespaceExportDeclaration",{enumerable:!0,get:function(){return S.tsNamespaceExportDeclaration}});Object.defineProperty(K,"TSNeverKeyword",{enumerable:!0,get:function(){return S.tsNeverKeyword}});Object.defineProperty(K,"TSNonNullExpression",{enumerable:!0,get:function(){return S.tsNonNullExpression}});Object.defineProperty(K,"TSNullKeyword",{enumerable:!0,get:function(){return S.tsNullKeyword}});Object.defineProperty(K,"TSNumberKeyword",{enumerable:!0,get:function(){return S.tsNumberKeyword}});Object.defineProperty(K,"TSObjectKeyword",{enumerable:!0,get:function(){return S.tsObjectKeyword}});Object.defineProperty(K,"TSOptionalType",{enumerable:!0,get:function(){return S.tsOptionalType}});Object.defineProperty(K,"TSParameterProperty",{enumerable:!0,get:function(){return S.tsParameterProperty}});Object.defineProperty(K,"TSParenthesizedType",{enumerable:!0,get:function(){return S.tsParenthesizedType}});Object.defineProperty(K,"TSPropertySignature",{enumerable:!0,get:function(){return S.tsPropertySignature}});Object.defineProperty(K,"TSQualifiedName",{enumerable:!0,get:function(){return S.tsQualifiedName}});Object.defineProperty(K,"TSRestType",{enumerable:!0,get:function(){return S.tsRestType}});Object.defineProperty(K,"TSSatisfiesExpression",{enumerable:!0,get:function(){return S.tsSatisfiesExpression}});Object.defineProperty(K,"TSStringKeyword",{enumerable:!0,get:function(){return S.tsStringKeyword}});Object.defineProperty(K,"TSSymbolKeyword",{enumerable:!0,get:function(){return S.tsSymbolKeyword}});Object.defineProperty(K,"TSTemplateLiteralType",{enumerable:!0,get:function(){return S.tsTemplateLiteralType}});Object.defineProperty(K,"TSThisType",{enumerable:!0,get:function(){return S.tsThisType}});Object.defineProperty(K,"TSTupleType",{enumerable:!0,get:function(){return S.tsTupleType}});Object.defineProperty(K,"TSTypeAliasDeclaration",{enumerable:!0,get:function(){return S.tsTypeAliasDeclaration}});Object.defineProperty(K,"TSTypeAnnotation",{enumerable:!0,get:function(){return S.tsTypeAnnotation}});Object.defineProperty(K,"TSTypeAssertion",{enumerable:!0,get:function(){return S.tsTypeAssertion}});Object.defineProperty(K,"TSTypeLiteral",{enumerable:!0,get:function(){return S.tsTypeLiteral}});Object.defineProperty(K,"TSTypeOperator",{enumerable:!0,get:function(){return S.tsTypeOperator}});Object.defineProperty(K,"TSTypeParameter",{enumerable:!0,get:function(){return S.tsTypeParameter}});Object.defineProperty(K,"TSTypeParameterDeclaration",{enumerable:!0,get:function(){return S.tsTypeParameterDeclaration}});Object.defineProperty(K,"TSTypeParameterInstantiation",{enumerable:!0,get:function(){return S.tsTypeParameterInstantiation}});Object.defineProperty(K,"TSTypePredicate",{enumerable:!0,get:function(){return S.tsTypePredicate}});Object.defineProperty(K,"TSTypeQuery",{enumerable:!0,get:function(){return S.tsTypeQuery}});Object.defineProperty(K,"TSTypeReference",{enumerable:!0,get:function(){return S.tsTypeReference}});Object.defineProperty(K,"TSUndefinedKeyword",{enumerable:!0,get:function(){return S.tsUndefinedKeyword}});Object.defineProperty(K,"TSUnionType",{enumerable:!0,get:function(){return S.tsUnionType}});Object.defineProperty(K,"TSUnknownKeyword",{enumerable:!0,get:function(){return S.tsUnknownKeyword}});Object.defineProperty(K,"TSVoidKeyword",{enumerable:!0,get:function(){return S.tsVoidKeyword}});Object.defineProperty(K,"TaggedTemplateExpression",{enumerable:!0,get:function(){return S.taggedTemplateExpression}});Object.defineProperty(K,"TemplateElement",{enumerable:!0,get:function(){return S.templateElement}});Object.defineProperty(K,"TemplateLiteral",{enumerable:!0,get:function(){return S.templateLiteral}});Object.defineProperty(K,"ThisExpression",{enumerable:!0,get:function(){return S.thisExpression}});Object.defineProperty(K,"ThisTypeAnnotation",{enumerable:!0,get:function(){return S.thisTypeAnnotation}});Object.defineProperty(K,"ThrowStatement",{enumerable:!0,get:function(){return S.throwStatement}});Object.defineProperty(K,"TopicReference",{enumerable:!0,get:function(){return S.topicReference}});Object.defineProperty(K,"TryStatement",{enumerable:!0,get:function(){return S.tryStatement}});Object.defineProperty(K,"TupleExpression",{enumerable:!0,get:function(){return S.tupleExpression}});Object.defineProperty(K,"TupleTypeAnnotation",{enumerable:!0,get:function(){return S.tupleTypeAnnotation}});Object.defineProperty(K,"TypeAlias",{enumerable:!0,get:function(){return S.typeAlias}});Object.defineProperty(K,"TypeAnnotation",{enumerable:!0,get:function(){return S.typeAnnotation}});Object.defineProperty(K,"TypeCastExpression",{enumerable:!0,get:function(){return S.typeCastExpression}});Object.defineProperty(K,"TypeParameter",{enumerable:!0,get:function(){return S.typeParameter}});Object.defineProperty(K,"TypeParameterDeclaration",{enumerable:!0,get:function(){return S.typeParameterDeclaration}});Object.defineProperty(K,"TypeParameterInstantiation",{enumerable:!0,get:function(){return S.typeParameterInstantiation}});Object.defineProperty(K,"TypeofTypeAnnotation",{enumerable:!0,get:function(){return S.typeofTypeAnnotation}});Object.defineProperty(K,"UnaryExpression",{enumerable:!0,get:function(){return S.unaryExpression}});Object.defineProperty(K,"UnionTypeAnnotation",{enumerable:!0,get:function(){return S.unionTypeAnnotation}});Object.defineProperty(K,"UpdateExpression",{enumerable:!0,get:function(){return S.updateExpression}});Object.defineProperty(K,"V8IntrinsicIdentifier",{enumerable:!0,get:function(){return S.v8IntrinsicIdentifier}});Object.defineProperty(K,"VariableDeclaration",{enumerable:!0,get:function(){return S.variableDeclaration}});Object.defineProperty(K,"VariableDeclarator",{enumerable:!0,get:function(){return S.variableDeclarator}});Object.defineProperty(K,"Variance",{enumerable:!0,get:function(){return S.variance}});Object.defineProperty(K,"VoidTypeAnnotation",{enumerable:!0,get:function(){return S.voidTypeAnnotation}});Object.defineProperty(K,"WhileStatement",{enumerable:!0,get:function(){return S.whileStatement}});Object.defineProperty(K,"WithStatement",{enumerable:!0,get:function(){return S.withStatement}});Object.defineProperty(K,"YieldExpression",{enumerable:!0,get:function(){return S.yieldExpression}});var S=B2()});var rf=P((kG)=>{Object.defineProperty(kG,"__esModule",{value:!0});var M2=B2();Object.keys(M2).forEach(function(f){if(f==="default"||f==="__esModule")return;if(f in kG&&kG[f]===M2[f])return;Object.defineProperty(kG,f,{enumerable:!0,get:function(){return M2[f]}})});var K2=b6();Object.keys(K2).forEach(function(f){if(f==="default"||f==="__esModule")return;if(f in kG&&kG[f]===K2[f])return;Object.defineProperty(kG,f,{enumerable:!0,get:function(){return K2[f]}})})});var w6=P((E6)=>{Object.defineProperty(E6,"__esModule",{value:!0});E6.default=bE;var NE=rf(),LE=Vf();function bE(f,G){let X=f.value.split(/\r\n|\n|\r/),W=0;for(let J=0;J<X.length;J++)if(/[^ \t]/.exec(X[J]))W=J;let R="";for(let J=0;J<X.length;J++){let U=X[J],V=J===0,H=J===X.length-1,Q=J===W,Y=U.replace(/\t/g," ");if(!V)Y=Y.replace(/^ +/,"");if(!H)Y=Y.replace(/ +$/,"");if(Y){if(!Q)Y+=" ";R+=Y}}if(R)G.push(LE.inherits(NE.stringLiteral(R),f))}});var v6=P((k6)=>{Object.defineProperty(k6,"__esModule",{value:!0});k6.default=kE;var S2=Tf(),wE=w6();function kE(f){let G=[];for(let X=0;X<f.children.length;X++){let W=f.children[X];if(S2.isJSXText(W)){wE.default(W,G);continue}if(S2.isJSXExpressionContainer(W))W=W.expression;if(S2.isJSXEmptyExpression(W))continue;G.push(W)}return G}});var F2=P((g6)=>{Object.defineProperty(g6,"__esModule",{value:!0});g6.default=_E;var gE=of();function _E(f){return!!(f&&gE.VISITOR_KEYS[f.type])}});var u6=P((_6)=>{Object.defineProperty(_6,"__esModule",{value:!0});_6.default=yE;var hE=F2();function yE(f){if(!hE.default(f)){var G;let X=(G=f==null?void 0:f.type)!=null?G:JSON.stringify(f);throw new TypeError(`Not a valid node of type "${X}"`)}}});var y6=P((h6)=>{Object.defineProperty(h6,"__esModule",{value:!0});h6.assertAccessor=Ru;h6.assertAnyTypeAnnotation=Ok;h6.assertArgumentPlaceholder=nv;h6.assertArrayExpression=lE;h6.assertArrayPattern=xw;h6.assertArrayTypeAnnotation=jk;h6.assertArrowFunctionExpression=mw;h6.assertAssignmentExpression=cE;h6.assertAssignmentPattern=yw;h6.assertAwaitExpression=Zk;h6.assertBigIntLiteral=zk;h6.assertBinary=I_;h6.assertBinaryExpression=aE;h6.assertBindExpression=ov;h6.assertBlock=L_;h6.assertBlockParent=N_;h6.assertBlockStatement=pE;h6.assertBooleanLiteral=Kw;h6.assertBooleanLiteralTypeAnnotation=Dk;h6.assertBooleanTypeAnnotation=Pk;h6.assertBreakStatement=dE;h6.assertCallExpression=tE;h6.assertCatchClause=nE;h6.assertClass=fu;h6.assertClassAccessorProperty=Fk;h6.assertClassBody=lw;h6.assertClassDeclaration=aw;h6.assertClassExpression=cw;h6.assertClassImplements=Tk;h6.assertClassMethod=Xk;h6.assertClassPrivateMethod=Ck;h6.assertClassPrivateProperty=$k;h6.assertClassProperty=Sk;h6.assertCompletionStatement=w_;h6.assertConditional=k_;h6.assertConditionalExpression=oE;h6.assertContinueStatement=eE;h6.assertDebuggerStatement=fw;h6.assertDecimalLiteral=Jg;h6.assertDeclaration=l_;h6.assertDeclareClass=Nk;h6.assertDeclareExportAllDeclaration=uk;h6.assertDeclareExportDeclaration=_k;h6.assertDeclareFunction=Lk;h6.assertDeclareInterface=bk;h6.assertDeclareModule=Ek;h6.assertDeclareModuleExports=wk;h6.assertDeclareOpaqueType=vk;h6.assertDeclareTypeAlias=kk;h6.assertDeclareVariable=gk;h6.assertDeclaredPredicate=hk;h6.assertDecorator=fg;h6.assertDirective=rE;h6.assertDirectiveLiteral=sE;h6.assertDoExpression=Gg;h6.assertDoWhileStatement=Gw;h6.assertEmptyStatement=Xw;h6.assertEmptyTypeAnnotation=dk;h6.assertEnumBody=Yu;h6.assertEnumBooleanBody=jv;h6.assertEnumBooleanMember=Tv;h6.assertEnumDeclaration=Ov;h6.assertEnumDefaultedMember=bv;h6.assertEnumMember=zu;h6.assertEnumNumberBody=Pv;h6.assertEnumNumberMember=Nv;h6.assertEnumStringBody=Dv;h6.assertEnumStringMember=Lv;h6.assertEnumSymbolBody=Iv;h6.assertExistsTypeAnnotation=yk;h6.assertExportAllDeclaration=iw;h6.assertExportDeclaration=Xu;h6.assertExportDefaultDeclaration=rw;h6.assertExportDefaultSpecifier=Xg;h6.assertExportNamedDeclaration=sw;h6.assertExportNamespaceSpecifier=Bk;h6.assertExportSpecifier=pw;h6.assertExpression=D_;h6.assertExpressionStatement=Ww;h6.assertExpressionWrapper=__;h6.assertFile=Rw;h6.assertFlow=Uu;h6.assertFlowBaseAnnotation=Hu;h6.assertFlowDeclaration=Qu;h6.assertFlowPredicate=Zu;h6.assertFlowType=Vu;h6.assertFor=u_;h6.assertForInStatement=Jw;h6.assertForOfStatement=dw;h6.assertForStatement=Uw;h6.assertForXStatement=h_;h6.assertFunction=y_;h6.assertFunctionDeclaration=Vw;h6.assertFunctionExpression=Hw;h6.assertFunctionParent=x_;h6.assertFunctionTypeAnnotation=xk;h6.assertFunctionTypeParam=mk;h6.assertGenericTypeAnnotation=lk;h6.assertIdentifier=Qw;h6.assertIfStatement=Zw;h6.assertImmutable=s_;h6.assertImport=Yk;h6.assertImportAttribute=ev;h6.assertImportDeclaration=tw;h6.assertImportDefaultSpecifier=nw;h6.assertImportExpression=fk;h6.assertImportNamespaceSpecifier=ow;h6.assertImportOrExportDeclaration=Gu;h6.assertImportSpecifier=ew;h6.assertIndexedAccessType=Ev;h6.assertInferredPredicate=ck;h6.assertInterfaceDeclaration=ik;h6.assertInterfaceExtends=ak;h6.assertInterfaceTypeAnnotation=rk;h6.assertInterpreterDirective=iE;h6.assertIntersectionTypeAnnotation=sk;h6.assertJSX=Bu;h6.assertJSXAttribute=kv;h6.assertJSXClosingElement=vv;h6.assertJSXClosingFragment=sv;h6.assertJSXElement=gv;h6.assertJSXEmptyExpression=_v;h6.assertJSXExpressionContainer=uv;h6.assertJSXFragment=iv;h6.assertJSXIdentifier=yv;h6.assertJSXMemberExpression=xv;h6.assertJSXNamespacedName=mv;h6.assertJSXOpeningElement=lv;h6.assertJSXOpeningFragment=rv;h6.assertJSXSpreadAttribute=cv;h6.assertJSXSpreadChild=hv;h6.assertJSXText=av;h6.assertLVal=a_;h6.assertLabeledStatement=Yw;h6.assertLiteral=r_;h6.assertLogicalExpression=Fw;h6.assertLoop=v_;h6.assertMemberExpression=$w;h6.assertMetaProperty=Gk;h6.assertMethod=d_;h6.assertMiscellaneous=Mu;h6.assertMixedTypeAnnotation=pk;h6.assertModuleDeclaration=ju;h6.assertModuleExpression=Ug;h6.assertModuleSpecifier=Wu;h6.assertNewExpression=Cw;h6.assertNoop=pv;h6.assertNullLiteral=Mw;h6.assertNullLiteralTypeAnnotation=Ik;h6.assertNullableTypeAnnotation=tk;h6.assertNumberLiteral=Cu;h6.assertNumberLiteralTypeAnnotation=nk;h6.assertNumberTypeAnnotation=ok;h6.assertNumericLiteral=Bw;h6.assertObjectExpression=Aw;h6.assertObjectMember=t_;h6.assertObjectMethod=Ow;h6.assertObjectPattern=Wk;h6.assertObjectProperty=jw;h6.assertObjectTypeAnnotation=ek;h6.assertObjectTypeCallProperty=Gv;h6.assertObjectTypeIndexer=Xv;h6.assertObjectTypeInternalSlot=fv;h6.assertObjectTypeProperty=Wv;h6.assertObjectTypeSpreadProperty=Rv;h6.assertOpaqueType=Jv;h6.assertOptionalCallExpression=Kk;h6.assertOptionalIndexedAccessType=wv;h6.assertOptionalMemberExpression=Mk;h6.assertParenthesizedExpression=Tw;h6.assertPattern=e_;h6.assertPatternLike=c_;h6.assertPipelineBareFunction=Qg;h6.assertPipelinePrimaryTopicReference=Zg;h6.assertPipelineTopicExpression=Hg;h6.assertPlaceholder=dv;h6.assertPrivate=Ju;h6.assertPrivateName=qk;h6.assertProgram=qw;h6.assertProperty=n_;h6.assertPureish=m_;h6.assertQualifiedTypeIdentifier=Uv;h6.assertRecordExpression=Wg;h6.assertRegExpLiteral=Sw;h6.assertRegexLiteral=qu;h6.assertRestElement=Pw;h6.assertRestProperty=Au;h6.assertReturnStatement=Dw;h6.assertScopable=T_;h6.assertSequenceExpression=Iw;h6.assertSpreadElement=Rk;h6.assertSpreadProperty=Ou;h6.assertStandardized=P_;h6.assertStatement=b_;h6.assertStaticBlock=Ak;h6.assertStringLiteral=zw;h6.assertStringLiteralTypeAnnotation=Vv;h6.assertStringTypeAnnotation=Hv;h6.assertSuper=Jk;h6.assertSwitchCase=Nw;h6.assertSwitchStatement=Lw;h6.assertSymbolTypeAnnotation=Qv;h6.assertTSAnyKeyword=qg;h6.assertTSArrayType=xg;h6.assertTSAsExpression=U_;h6.assertTSBaseType=$u;h6.assertTSBigIntKeyword=Og;h6.assertTSBooleanKeyword=Ag;h6.assertTSCallSignatureDeclaration=Kg;h6.assertTSConditionalType=sg;h6.assertTSConstructSignatureDeclaration=Sg;h6.assertTSConstructorType=gg;h6.assertTSDeclareFunction=zg;h6.assertTSDeclareMethod=Bg;h6.assertTSEntityName=i_;h6.assertTSEnumBody=Q_;h6.assertTSEnumDeclaration=Z_;h6.assertTSEnumMember=Y_;h6.assertTSExportAssignment=$_;h6.assertTSExpressionWithTypeArguments=G_;h6.assertTSExternalModuleReference=S_;h6.assertTSFunctionType=vg;h6.assertTSImportEqualsDeclaration=K_;h6.assertTSImportType=M_;h6.assertTSIndexSignature=Cg;h6.assertTSIndexedAccessType=ng;h6.assertTSInferType=pg;h6.assertTSInstantiationExpression=J_;h6.assertTSInterfaceBody=W_;h6.assertTSInterfaceDeclaration=X_;h6.assertTSIntersectionType=rg;h6.assertTSIntrinsicKeyword=jg;h6.assertTSLiteralType=f_;h6.assertTSMappedType=og;h6.assertTSMethodSignature=$g;h6.assertTSModuleBlock=B_;h6.assertTSModuleDeclaration=z_;h6.assertTSNamedTupleMember=ag;h6.assertTSNamespaceExportDeclaration=C_;h6.assertTSNeverKeyword=Pg;h6.assertTSNonNullExpression=F_;h6.assertTSNullKeyword=Dg;h6.assertTSNumberKeyword=Ig;h6.assertTSObjectKeyword=Tg;h6.assertTSOptionalType=lg;h6.assertTSParameterProperty=Yg;h6.assertTSParenthesizedType=dg;h6.assertTSPropertySignature=Fg;h6.assertTSQualifiedName=Mg;h6.assertTSRestType=cg;h6.assertTSSatisfiesExpression=V_;h6.assertTSStringKeyword=Ng;h6.assertTSSymbolKeyword=Lg;h6.assertTSTemplateLiteralType=eg;h6.assertTSThisType=kg;h6.assertTSTupleType=mg;h6.assertTSType=Fu;h6.assertTSTypeAliasDeclaration=R_;h6.assertTSTypeAnnotation=q_;h6.assertTSTypeAssertion=H_;h6.assertTSTypeElement=Su;h6.assertTSTypeLiteral=yg;h6.assertTSTypeOperator=tg;h6.assertTSTypeParameter=j_;h6.assertTSTypeParameterDeclaration=O_;h6.assertTSTypeParameterInstantiation=A_;h6.assertTSTypePredicate=ug;h6.assertTSTypeQuery=hg;h6.assertTSTypeReference=_g;h6.assertTSUndefinedKeyword=bg;h6.assertTSUnionType=ig;h6.assertTSUnknownKeyword=Eg;h6.assertTSVoidKeyword=wg;h6.assertTaggedTemplateExpression=Uk;h6.assertTemplateElement=Vk;h6.assertTemplateLiteral=Hk;h6.assertTerminatorless=E_;h6.assertThisExpression=bw;h6.assertThisTypeAnnotation=Zv;h6.assertThrowStatement=Ew;h6.assertTopicReference=Vg;h6.assertTryStatement=ww;h6.assertTupleExpression=Rg;h6.assertTupleTypeAnnotation=Yv;h6.assertTypeAlias=Bv;h6.assertTypeAnnotation=Mv;h6.assertTypeCastExpression=Kv;h6.assertTypeParameter=Sv;h6.assertTypeParameterDeclaration=Fv;h6.assertTypeParameterInstantiation=$v;h6.assertTypeScript=Ku;h6.assertTypeofTypeAnnotation=zv;h6.assertUnaryExpression=kw;h6.assertUnaryLike=o_;h6.assertUnionTypeAnnotation=Cv;h6.assertUpdateExpression=vw;h6.assertUserWhitespacable=p_;h6.assertV8IntrinsicIdentifier=tv;h6.assertVariableDeclaration=gw;h6.assertVariableDeclarator=_w;h6.assertVariance=qv;h6.assertVoidTypeAnnotation=Av;h6.assertWhile=g_;h6.assertWhileStatement=uw;h6.assertWithStatement=hw;h6.assertYieldExpression=Qk;var mE=z1(),a1=_1();function z(f,G,X){if(!mE.default(f,G,X))throw new Error(`Expected type "${f}" with option ${JSON.stringify(X)}, but instead got "${G.type}".`)}function lE(f,G){z("ArrayExpression",f,G)}function cE(f,G){z("AssignmentExpression",f,G)}function aE(f,G){z("BinaryExpression",f,G)}function iE(f,G){z("InterpreterDirective",f,G)}function rE(f,G){z("Directive",f,G)}function sE(f,G){z("DirectiveLiteral",f,G)}function pE(f,G){z("BlockStatement",f,G)}function dE(f,G){z("BreakStatement",f,G)}function tE(f,G){z("CallExpression",f,G)}function nE(f,G){z("CatchClause",f,G)}function oE(f,G){z("ConditionalExpression",f,G)}function eE(f,G){z("ContinueStatement",f,G)}function fw(f,G){z("DebuggerStatement",f,G)}function Gw(f,G){z("DoWhileStatement",f,G)}function Xw(f,G){z("EmptyStatement",f,G)}function Ww(f,G){z("ExpressionStatement",f,G)}function Rw(f,G){z("File",f,G)}function Jw(f,G){z("ForInStatement",f,G)}function Uw(f,G){z("ForStatement",f,G)}function Vw(f,G){z("FunctionDeclaration",f,G)}function Hw(f,G){z("FunctionExpression",f,G)}function Qw(f,G){z("Identifier",f,G)}function Zw(f,G){z("IfStatement",f,G)}function Yw(f,G){z("LabeledStatement",f,G)}function zw(f,G){z("StringLiteral",f,G)}function Bw(f,G){z("NumericLiteral",f,G)}function Mw(f,G){z("NullLiteral",f,G)}function Kw(f,G){z("BooleanLiteral",f,G)}function Sw(f,G){z("RegExpLiteral",f,G)}function Fw(f,G){z("LogicalExpression",f,G)}function $w(f,G){z("MemberExpression",f,G)}function Cw(f,G){z("NewExpression",f,G)}function qw(f,G){z("Program",f,G)}function Aw(f,G){z("ObjectExpression",f,G)}function Ow(f,G){z("ObjectMethod",f,G)}function jw(f,G){z("ObjectProperty",f,G)}function Pw(f,G){z("RestElement",f,G)}function Dw(f,G){z("ReturnStatement",f,G)}function Iw(f,G){z("SequenceExpression",f,G)}function Tw(f,G){z("ParenthesizedExpression",f,G)}function Nw(f,G){z("SwitchCase",f,G)}function Lw(f,G){z("SwitchStatement",f,G)}function bw(f,G){z("ThisExpression",f,G)}function Ew(f,G){z("ThrowStatement",f,G)}function ww(f,G){z("TryStatement",f,G)}function kw(f,G){z("UnaryExpression",f,G)}function vw(f,G){z("UpdateExpression",f,G)}function gw(f,G){z("VariableDeclaration",f,G)}function _w(f,G){z("VariableDeclarator",f,G)}function uw(f,G){z("WhileStatement",f,G)}function hw(f,G){z("WithStatement",f,G)}function yw(f,G){z("AssignmentPattern",f,G)}function xw(f,G){z("ArrayPattern",f,G)}function mw(f,G){z("ArrowFunctionExpression",f,G)}function lw(f,G){z("ClassBody",f,G)}function cw(f,G){z("ClassExpression",f,G)}function aw(f,G){z("ClassDeclaration",f,G)}function iw(f,G){z("ExportAllDeclaration",f,G)}function rw(f,G){z("ExportDefaultDeclaration",f,G)}function sw(f,G){z("ExportNamedDeclaration",f,G)}function pw(f,G){z("ExportSpecifier",f,G)}function dw(f,G){z("ForOfStatement",f,G)}function tw(f,G){z("ImportDeclaration",f,G)}function nw(f,G){z("ImportDefaultSpecifier",f,G)}function ow(f,G){z("ImportNamespaceSpecifier",f,G)}function ew(f,G){z("ImportSpecifier",f,G)}function fk(f,G){z("ImportExpression",f,G)}function Gk(f,G){z("MetaProperty",f,G)}function Xk(f,G){z("ClassMethod",f,G)}function Wk(f,G){z("ObjectPattern",f,G)}function Rk(f,G){z("SpreadElement",f,G)}function Jk(f,G){z("Super",f,G)}function Uk(f,G){z("TaggedTemplateExpression",f,G)}function Vk(f,G){z("TemplateElement",f,G)}function Hk(f,G){z("TemplateLiteral",f,G)}function Qk(f,G){z("YieldExpression",f,G)}function Zk(f,G){z("AwaitExpression",f,G)}function Yk(f,G){z("Import",f,G)}function zk(f,G){z("BigIntLiteral",f,G)}function Bk(f,G){z("ExportNamespaceSpecifier",f,G)}function Mk(f,G){z("OptionalMemberExpression",f,G)}function Kk(f,G){z("OptionalCallExpression",f,G)}function Sk(f,G){z("ClassProperty",f,G)}function Fk(f,G){z("ClassAccessorProperty",f,G)}function $k(f,G){z("ClassPrivateProperty",f,G)}function Ck(f,G){z("ClassPrivateMethod",f,G)}function qk(f,G){z("PrivateName",f,G)}function Ak(f,G){z("StaticBlock",f,G)}function Ok(f,G){z("AnyTypeAnnotation",f,G)}function jk(f,G){z("ArrayTypeAnnotation",f,G)}function Pk(f,G){z("BooleanTypeAnnotation",f,G)}function Dk(f,G){z("BooleanLiteralTypeAnnotation",f,G)}function Ik(f,G){z("NullLiteralTypeAnnotation",f,G)}function Tk(f,G){z("ClassImplements",f,G)}function Nk(f,G){z("DeclareClass",f,G)}function Lk(f,G){z("DeclareFunction",f,G)}function bk(f,G){z("DeclareInterface",f,G)}function Ek(f,G){z("DeclareModule",f,G)}function wk(f,G){z("DeclareModuleExports",f,G)}function kk(f,G){z("DeclareTypeAlias",f,G)}function vk(f,G){z("DeclareOpaqueType",f,G)}function gk(f,G){z("DeclareVariable",f,G)}function _k(f,G){z("DeclareExportDeclaration",f,G)}function uk(f,G){z("DeclareExportAllDeclaration",f,G)}function hk(f,G){z("DeclaredPredicate",f,G)}function yk(f,G){z("ExistsTypeAnnotation",f,G)}function xk(f,G){z("FunctionTypeAnnotation",f,G)}function mk(f,G){z("FunctionTypeParam",f,G)}function lk(f,G){z("GenericTypeAnnotation",f,G)}function ck(f,G){z("InferredPredicate",f,G)}function ak(f,G){z("InterfaceExtends",f,G)}function ik(f,G){z("InterfaceDeclaration",f,G)}function rk(f,G){z("InterfaceTypeAnnotation",f,G)}function sk(f,G){z("IntersectionTypeAnnotation",f,G)}function pk(f,G){z("MixedTypeAnnotation",f,G)}function dk(f,G){z("EmptyTypeAnnotation",f,G)}function tk(f,G){z("NullableTypeAnnotation",f,G)}function nk(f,G){z("NumberLiteralTypeAnnotation",f,G)}function ok(f,G){z("NumberTypeAnnotation",f,G)}function ek(f,G){z("ObjectTypeAnnotation",f,G)}function fv(f,G){z("ObjectTypeInternalSlot",f,G)}function Gv(f,G){z("ObjectTypeCallProperty",f,G)}function Xv(f,G){z("ObjectTypeIndexer",f,G)}function Wv(f,G){z("ObjectTypeProperty",f,G)}function Rv(f,G){z("ObjectTypeSpreadProperty",f,G)}function Jv(f,G){z("OpaqueType",f,G)}function Uv(f,G){z("QualifiedTypeIdentifier",f,G)}function Vv(f,G){z("StringLiteralTypeAnnotation",f,G)}function Hv(f,G){z("StringTypeAnnotation",f,G)}function Qv(f,G){z("SymbolTypeAnnotation",f,G)}function Zv(f,G){z("ThisTypeAnnotation",f,G)}function Yv(f,G){z("TupleTypeAnnotation",f,G)}function zv(f,G){z("TypeofTypeAnnotation",f,G)}function Bv(f,G){z("TypeAlias",f,G)}function Mv(f,G){z("TypeAnnotation",f,G)}function Kv(f,G){z("TypeCastExpression",f,G)}function Sv(f,G){z("TypeParameter",f,G)}function Fv(f,G){z("TypeParameterDeclaration",f,G)}function $v(f,G){z("TypeParameterInstantiation",f,G)}function Cv(f,G){z("UnionTypeAnnotation",f,G)}function qv(f,G){z("Variance",f,G)}function Av(f,G){z("VoidTypeAnnotation",f,G)}function Ov(f,G){z("EnumDeclaration",f,G)}function jv(f,G){z("EnumBooleanBody",f,G)}function Pv(f,G){z("EnumNumberBody",f,G)}function Dv(f,G){z("EnumStringBody",f,G)}function Iv(f,G){z("EnumSymbolBody",f,G)}function Tv(f,G){z("EnumBooleanMember",f,G)}function Nv(f,G){z("EnumNumberMember",f,G)}function Lv(f,G){z("EnumStringMember",f,G)}function bv(f,G){z("EnumDefaultedMember",f,G)}function Ev(f,G){z("IndexedAccessType",f,G)}function wv(f,G){z("OptionalIndexedAccessType",f,G)}function kv(f,G){z("JSXAttribute",f,G)}function vv(f,G){z("JSXClosingElement",f,G)}function gv(f,G){z("JSXElement",f,G)}function _v(f,G){z("JSXEmptyExpression",f,G)}function uv(f,G){z("JSXExpressionContainer",f,G)}function hv(f,G){z("JSXSpreadChild",f,G)}function yv(f,G){z("JSXIdentifier",f,G)}function xv(f,G){z("JSXMemberExpression",f,G)}function mv(f,G){z("JSXNamespacedName",f,G)}function lv(f,G){z("JSXOpeningElement",f,G)}function cv(f,G){z("JSXSpreadAttribute",f,G)}function av(f,G){z("JSXText",f,G)}function iv(f,G){z("JSXFragment",f,G)}function rv(f,G){z("JSXOpeningFragment",f,G)}function sv(f,G){z("JSXClosingFragment",f,G)}function pv(f,G){z("Noop",f,G)}function dv(f,G){z("Placeholder",f,G)}function tv(f,G){z("V8IntrinsicIdentifier",f,G)}function nv(f,G){z("ArgumentPlaceholder",f,G)}function ov(f,G){z("BindExpression",f,G)}function ev(f,G){z("ImportAttribute",f,G)}function fg(f,G){z("Decorator",f,G)}function Gg(f,G){z("DoExpression",f,G)}function Xg(f,G){z("ExportDefaultSpecifier",f,G)}function Wg(f,G){z("RecordExpression",f,G)}function Rg(f,G){z("TupleExpression",f,G)}function Jg(f,G){z("DecimalLiteral",f,G)}function Ug(f,G){z("ModuleExpression",f,G)}function Vg(f,G){z("TopicReference",f,G)}function Hg(f,G){z("PipelineTopicExpression",f,G)}function Qg(f,G){z("PipelineBareFunction",f,G)}function Zg(f,G){z("PipelinePrimaryTopicReference",f,G)}function Yg(f,G){z("TSParameterProperty",f,G)}function zg(f,G){z("TSDeclareFunction",f,G)}function Bg(f,G){z("TSDeclareMethod",f,G)}function Mg(f,G){z("TSQualifiedName",f,G)}function Kg(f,G){z("TSCallSignatureDeclaration",f,G)}function Sg(f,G){z("TSConstructSignatureDeclaration",f,G)}function Fg(f,G){z("TSPropertySignature",f,G)}function $g(f,G){z("TSMethodSignature",f,G)}function Cg(f,G){z("TSIndexSignature",f,G)}function qg(f,G){z("TSAnyKeyword",f,G)}function Ag(f,G){z("TSBooleanKeyword",f,G)}function Og(f,G){z("TSBigIntKeyword",f,G)}function jg(f,G){z("TSIntrinsicKeyword",f,G)}function Pg(f,G){z("TSNeverKeyword",f,G)}function Dg(f,G){z("TSNullKeyword",f,G)}function Ig(f,G){z("TSNumberKeyword",f,G)}function Tg(f,G){z("TSObjectKeyword",f,G)}function Ng(f,G){z("TSStringKeyword",f,G)}function Lg(f,G){z("TSSymbolKeyword",f,G)}function bg(f,G){z("TSUndefinedKeyword",f,G)}function Eg(f,G){z("TSUnknownKeyword",f,G)}function wg(f,G){z("TSVoidKeyword",f,G)}function kg(f,G){z("TSThisType",f,G)}function vg(f,G){z("TSFunctionType",f,G)}function gg(f,G){z("TSConstructorType",f,G)}function _g(f,G){z("TSTypeReference",f,G)}function ug(f,G){z("TSTypePredicate",f,G)}function hg(f,G){z("TSTypeQuery",f,G)}function yg(f,G){z("TSTypeLiteral",f,G)}function xg(f,G){z("TSArrayType",f,G)}function mg(f,G){z("TSTupleType",f,G)}function lg(f,G){z("TSOptionalType",f,G)}function cg(f,G){z("TSRestType",f,G)}function ag(f,G){z("TSNamedTupleMember",f,G)}function ig(f,G){z("TSUnionType",f,G)}function rg(f,G){z("TSIntersectionType",f,G)}function sg(f,G){z("TSConditionalType",f,G)}function pg(f,G){z("TSInferType",f,G)}function dg(f,G){z("TSParenthesizedType",f,G)}function tg(f,G){z("TSTypeOperator",f,G)}function ng(f,G){z("TSIndexedAccessType",f,G)}function og(f,G){z("TSMappedType",f,G)}function eg(f,G){z("TSTemplateLiteralType",f,G)}function f_(f,G){z("TSLiteralType",f,G)}function G_(f,G){z("TSExpressionWithTypeArguments",f,G)}function X_(f,G){z("TSInterfaceDeclaration",f,G)}function W_(f,G){z("TSInterfaceBody",f,G)}function R_(f,G){z("TSTypeAliasDeclaration",f,G)}function J_(f,G){z("TSInstantiationExpression",f,G)}function U_(f,G){z("TSAsExpression",f,G)}function V_(f,G){z("TSSatisfiesExpression",f,G)}function H_(f,G){z("TSTypeAssertion",f,G)}function Q_(f,G){z("TSEnumBody",f,G)}function Z_(f,G){z("TSEnumDeclaration",f,G)}function Y_(f,G){z("TSEnumMember",f,G)}function z_(f,G){z("TSModuleDeclaration",f,G)}function B_(f,G){z("TSModuleBlock",f,G)}function M_(f,G){z("TSImportType",f,G)}function K_(f,G){z("TSImportEqualsDeclaration",f,G)}function S_(f,G){z("TSExternalModuleReference",f,G)}function F_(f,G){z("TSNonNullExpression",f,G)}function $_(f,G){z("TSExportAssignment",f,G)}function C_(f,G){z("TSNamespaceExportDeclaration",f,G)}function q_(f,G){z("TSTypeAnnotation",f,G)}function A_(f,G){z("TSTypeParameterInstantiation",f,G)}function O_(f,G){z("TSTypeParameterDeclaration",f,G)}function j_(f,G){z("TSTypeParameter",f,G)}function P_(f,G){z("Standardized",f,G)}function D_(f,G){z("Expression",f,G)}function I_(f,G){z("Binary",f,G)}function T_(f,G){z("Scopable",f,G)}function N_(f,G){z("BlockParent",f,G)}function L_(f,G){z("Block",f,G)}function b_(f,G){z("Statement",f,G)}function E_(f,G){z("Terminatorless",f,G)}function w_(f,G){z("CompletionStatement",f,G)}function k_(f,G){z("Conditional",f,G)}function v_(f,G){z("Loop",f,G)}function g_(f,G){z("While",f,G)}function __(f,G){z("ExpressionWrapper",f,G)}function u_(f,G){z("For",f,G)}function h_(f,G){z("ForXStatement",f,G)}function y_(f,G){z("Function",f,G)}function x_(f,G){z("FunctionParent",f,G)}function m_(f,G){z("Pureish",f,G)}function l_(f,G){z("Declaration",f,G)}function c_(f,G){z("PatternLike",f,G)}function a_(f,G){z("LVal",f,G)}function i_(f,G){z("TSEntityName",f,G)}function r_(f,G){z("Literal",f,G)}function s_(f,G){z("Immutable",f,G)}function p_(f,G){z("UserWhitespacable",f,G)}function d_(f,G){z("Method",f,G)}function t_(f,G){z("ObjectMember",f,G)}function n_(f,G){z("Property",f,G)}function o_(f,G){z("UnaryLike",f,G)}function e_(f,G){z("Pattern",f,G)}function fu(f,G){z("Class",f,G)}function Gu(f,G){z("ImportOrExportDeclaration",f,G)}function Xu(f,G){z("ExportDeclaration",f,G)}function Wu(f,G){z("ModuleSpecifier",f,G)}function Ru(f,G){z("Accessor",f,G)}function Ju(f,G){z("Private",f,G)}function Uu(f,G){z("Flow",f,G)}function Vu(f,G){z("FlowType",f,G)}function Hu(f,G){z("FlowBaseAnnotation",f,G)}function Qu(f,G){z("FlowDeclaration",f,G)}function Zu(f,G){z("FlowPredicate",f,G)}function Yu(f,G){z("EnumBody",f,G)}function zu(f,G){z("EnumMember",f,G)}function Bu(f,G){z("JSX",f,G)}function Mu(f,G){z("Miscellaneous",f,G)}function Ku(f,G){z("TypeScript",f,G)}function Su(f,G){z("TSTypeElement",f,G)}function Fu(f,G){z("TSType",f,G)}function $u(f,G){z("TSBaseType",f,G)}function Cu(f,G){a1.default("assertNumberLiteral","assertNumericLiteral"),z("NumberLiteral",f,G)}function qu(f,G){a1.default("assertRegexLiteral","assertRegExpLiteral"),z("RegexLiteral",f,G)}function Au(f,G){a1.default("assertRestProperty","assertRestElement"),z("RestProperty",f,G)}function Ou(f,G){a1.default("assertSpreadProperty","assertSpreadElement"),z("SpreadProperty",f,G)}function ju(f,G){a1.default("assertModuleDeclaration","assertImportOrExportDeclaration"),z("ModuleDeclaration",f,G)}});var l6=P((x6)=>{Object.defineProperty(x6,"__esModule",{value:!0});x6.default=void 0;var VG=rf(),RBf=x6.default=Uc;function Uc(f){switch(f){case"string":return VG.stringTypeAnnotation();case"number":return VG.numberTypeAnnotation();case"undefined":return VG.voidTypeAnnotation();case"boolean":return VG.booleanTypeAnnotation();case"function":return VG.genericTypeAnnotation(VG.identifier("Function"));case"object":return VG.genericTypeAnnotation(VG.identifier("Object"));case"symbol":return VG.genericTypeAnnotation(VG.identifier("Symbol"));case"bigint":return VG.anyTypeAnnotation()}throw new Error("Invalid typeof value: "+f)}});var $2=P((i6)=>{Object.defineProperty(i6,"__esModule",{value:!0});i6.default=a6;var i1=Tf();function c6(f){return i1.isIdentifier(f)?f.name:`${f.id.name}.${c6(f.qualification)}`}function a6(f){let G=Array.from(f),X=new Map,W=new Map,R=new Set,J=[];for(let U=0;U<G.length;U++){let V=G[U];if(!V)continue;if(J.includes(V))continue;if(i1.isAnyTypeAnnotation(V))return[V];if(i1.isFlowBaseAnnotation(V)){W.set(V.type,V);continue}if(i1.isUnionTypeAnnotation(V)){if(!R.has(V.types))G.push(...V.types),R.add(V.types);continue}if(i1.isGenericTypeAnnotation(V)){let H=c6(V.id);if(X.has(H)){let Q=X.get(H);if(Q.typeParameters){if(V.typeParameters)Q.typeParameters.params.push(...V.typeParameters.params),Q.typeParameters.params=a6(Q.typeParameters.params)}else Q=V.typeParameters}else X.set(H,V);continue}J.push(V)}for(let[,U]of W)J.push(U);for(let[,U]of X)J.push(U);return J}});var s6=P((r6)=>{Object.defineProperty(r6,"__esModule",{value:!0});r6.default=Zc;var Hc=rf(),Qc=$2();function Zc(f){let G=Qc.default(f);if(G.length===1)return G[0];else return Hc.unionTypeAnnotation(G)}});var n6=P((t6)=>{Object.defineProperty(t6,"__esModule",{value:!0});t6.default=d6;var S1=Tf();function p6(f){return S1.isIdentifier(f)?f.name:S1.isThisExpression(f)?"this":`${f.right.name}.${p6(f.left)}`}function d6(f){let G=Array.from(f),X=new Map,W=new Map,R=new Set,J=[];for(let U=0;U<G.length;U++){let V=G[U];if(!V)continue;if(J.includes(V))continue;if(S1.isTSAnyKeyword(V))return[V];if(S1.isTSBaseType(V)){W.set(V.type,V);continue}if(S1.isTSUnionType(V)){if(!R.has(V.types))G.push(...V.types),R.add(V.types);continue}let H="typeParameters";if(S1.isTSTypeReference(V)&&V[H]){let Q=V[H],Y=p6(V.typeName);if(X.has(Y)){let F=X.get(Y),q=F[H];if(q)q.params.push(...Q.params),q.params=d6(q.params);else F=Q}else X.set(Y,V);continue}J.push(V)}for(let[,U]of W)J.push(U);for(let[,U]of X)J.push(U);return J}});var e6=P((o6)=>{Object.defineProperty(o6,"__esModule",{value:!0});o6.default=Sc;var Bc=rf(),Mc=n6(),Kc=Tf();function Sc(f){let G=f.map((W)=>{return Kc.isTSTypeAnnotation(W)?W.typeAnnotation:W}),X=Mc.default(G);if(X.length===1)return X[0];else return Bc.tsUnionType(X)}});var C2=P((G0)=>{Object.defineProperty(G0,"__esModule",{value:!0});G0.buildUndefinedNode=$c;var f0=rf();function $c(){return f0.unaryExpression("void",f0.numericLiteral(0),!0)}});var vG=P((U0)=>{Object.defineProperty(U0,"__esModule",{value:!0});U0.default=qc;var X0=of(),W0=Tf(),{hasOwn:MG}={hasOwn:Function.call.bind(Object.prototype.hasOwnProperty)};function R0(f,G,X,W){if(f&&typeof f.type==="string")return J0(f,G,X,W);return f}function q2(f,G,X,W){if(Array.isArray(f))return f.map((R)=>R0(R,G,X,W));return R0(f,G,X,W)}function qc(f,G=!0,X=!1){return J0(f,G,X,new Map)}function J0(f,G=!0,X=!1,W){if(!f)return f;let{type:R}=f,J={type:f.type};if(W0.isIdentifier(f)){if(J.name=f.name,MG(f,"optional")&&typeof f.optional==="boolean")J.optional=f.optional;if(MG(f,"typeAnnotation"))J.typeAnnotation=G?q2(f.typeAnnotation,!0,X,W):f.typeAnnotation;if(MG(f,"decorators"))J.decorators=G?q2(f.decorators,!0,X,W):f.decorators}else if(!MG(X0.NODE_FIELDS,R))throw new Error(`Unknown node type: "${R}"`);else for(let U of Object.keys(X0.NODE_FIELDS[R]))if(MG(f,U))if(G)J[U]=W0.isFile(f)&&U==="comments"?uX(f.comments,G,X,W):q2(f[U],!0,X,W);else J[U]=f[U];if(MG(f,"loc"))if(X)J.loc=null;else J.loc=f.loc;if(MG(f,"leadingComments"))J.leadingComments=uX(f.leadingComments,G,X,W);if(MG(f,"innerComments"))J.innerComments=uX(f.innerComments,G,X,W);if(MG(f,"trailingComments"))J.trailingComments=uX(f.trailingComments,G,X,W);if(MG(f,"extra"))J.extra=Object.assign({},f.extra);return J}function uX(f,G,X,W){if(!f||!G)return f;return f.map((R)=>{let J=W.get(R);if(J)return J;let{type:U,value:V,loc:H}=R,Q={type:U,value:V,loc:H};if(X)Q.loc=null;return W.set(R,Q),Q})}});var H0=P((V0)=>{Object.defineProperty(V0,"__esModule",{value:!0});V0.default=jc;var Oc=vG();function jc(f){return Oc.default(f,!1)}});var Z0=P((Q0)=>{Object.defineProperty(Q0,"__esModule",{value:!0});Q0.default=Ic;var Dc=vG();function Ic(f){return Dc.default(f)}});var z0=P((Y0)=>{Object.defineProperty(Y0,"__esModule",{value:!0});Y0.default=Lc;var Nc=vG();function Lc(f){return Nc.default(f,!0,!0)}});var M0=P((B0)=>{Object.defineProperty(B0,"__esModule",{value:!0});B0.default=wc;var Ec=vG();function wc(f){return Ec.default(f,!1,!0)}});var A2=P((K0)=>{Object.defineProperty(K0,"__esModule",{value:!0});K0.default=vc;function vc(f,G,X){if(!X||!f)return f;let W=`${G}Comments`;if(f[W])if(G==="leading")f[W]=X.concat(f[W]);else f[W].push(...X);else f[W]=X;return f}});var F0=P((S0)=>{Object.defineProperty(S0,"__esModule",{value:!0});S0.default=uc;var _c=A2();function uc(f,G,X,W){return _c.default(f,G,[{type:W?"CommentLine":"CommentBlock",value:X}])}});var hX=P(($0)=>{Object.defineProperty($0,"__esModule",{value:!0});$0.default=yc;function yc(f,G,X){if(G&&X)G[f]=Array.from(new Set([].concat(G[f],X[f]).filter(Boolean)))}});var O2=P((C0)=>{Object.defineProperty(C0,"__esModule",{value:!0});C0.default=lc;var mc=hX();function lc(f,G){mc.default("innerComments",f,G)}});var j2=P((q0)=>{Object.defineProperty(q0,"__esModule",{value:!0});q0.default=ic;var ac=hX();function ic(f,G){ac.default("leadingComments",f,G)}});var P2=P((A0)=>{Object.defineProperty(A0,"__esModule",{value:!0});A0.default=pc;var sc=hX();function pc(f,G){sc.default("trailingComments",f,G)}});var D2=P((O0)=>{Object.defineProperty(O0,"__esModule",{value:!0});O0.default=ec;var tc=P2(),nc=j2(),oc=O2();function ec(f,G){return tc.default(f,G),nc.default(f,G),oc.default(f,G),f}});var P0=P((j0)=>{Object.defineProperty(j0,"__esModule",{value:!0});j0.default=Xa;var Ga=wG();function Xa(f){return Ga.COMMENT_KEYS.forEach((G)=>{f[G]=null}),f}});var T0=P((D0)=>{Object.defineProperty(D0,"__esModule",{value:!0});D0.WHILE_TYPES=D0.USERWHITESPACABLE_TYPES=D0.UNARYLIKE_TYPES=D0.TYPESCRIPT_TYPES=D0.TSTYPE_TYPES=D0.TSTYPEELEMENT_TYPES=D0.TSENTITYNAME_TYPES=D0.TSBASETYPE_TYPES=D0.TERMINATORLESS_TYPES=D0.STATEMENT_TYPES=D0.STANDARDIZED_TYPES=D0.SCOPABLE_TYPES=D0.PUREISH_TYPES=D0.PROPERTY_TYPES=D0.PRIVATE_TYPES=D0.PATTERN_TYPES=D0.PATTERNLIKE_TYPES=D0.OBJECTMEMBER_TYPES=D0.MODULESPECIFIER_TYPES=D0.MODULEDECLARATION_TYPES=D0.MISCELLANEOUS_TYPES=D0.METHOD_TYPES=D0.LVAL_TYPES=D0.LOOP_TYPES=D0.LITERAL_TYPES=D0.JSX_TYPES=D0.IMPORTOREXPORTDECLARATION_TYPES=D0.IMMUTABLE_TYPES=D0.FUNCTION_TYPES=D0.FUNCTIONPARENT_TYPES=D0.FOR_TYPES=D0.FORXSTATEMENT_TYPES=D0.FLOW_TYPES=D0.FLOWTYPE_TYPES=D0.FLOWPREDICATE_TYPES=D0.FLOWDECLARATION_TYPES=D0.FLOWBASEANNOTATION_TYPES=D0.EXPRESSION_TYPES=D0.EXPRESSIONWRAPPER_TYPES=D0.EXPORTDECLARATION_TYPES=D0.ENUMMEMBER_TYPES=D0.ENUMBODY_TYPES=D0.DECLARATION_TYPES=D0.CONDITIONAL_TYPES=D0.COMPLETIONSTATEMENT_TYPES=D0.CLASS_TYPES=D0.BLOCK_TYPES=D0.BLOCKPARENT_TYPES=D0.BINARY_TYPES=D0.ACCESSOR_TYPES=void 0;var Gf=of(),PBf=D0.STANDARDIZED_TYPES=Gf.FLIPPED_ALIAS_KEYS.Standardized,DBf=D0.EXPRESSION_TYPES=Gf.FLIPPED_ALIAS_KEYS.Expression,IBf=D0.BINARY_TYPES=Gf.FLIPPED_ALIAS_KEYS.Binary,TBf=D0.SCOPABLE_TYPES=Gf.FLIPPED_ALIAS_KEYS.Scopable,NBf=D0.BLOCKPARENT_TYPES=Gf.FLIPPED_ALIAS_KEYS.BlockParent,LBf=D0.BLOCK_TYPES=Gf.FLIPPED_ALIAS_KEYS.Block,bBf=D0.STATEMENT_TYPES=Gf.FLIPPED_ALIAS_KEYS.Statement,EBf=D0.TERMINATORLESS_TYPES=Gf.FLIPPED_ALIAS_KEYS.Terminatorless,wBf=D0.COMPLETIONSTATEMENT_TYPES=Gf.FLIPPED_ALIAS_KEYS.CompletionStatement,kBf=D0.CONDITIONAL_TYPES=Gf.FLIPPED_ALIAS_KEYS.Conditional,vBf=D0.LOOP_TYPES=Gf.FLIPPED_ALIAS_KEYS.Loop,gBf=D0.WHILE_TYPES=Gf.FLIPPED_ALIAS_KEYS.While,_Bf=D0.EXPRESSIONWRAPPER_TYPES=Gf.FLIPPED_ALIAS_KEYS.ExpressionWrapper,uBf=D0.FOR_TYPES=Gf.FLIPPED_ALIAS_KEYS.For,hBf=D0.FORXSTATEMENT_TYPES=Gf.FLIPPED_ALIAS_KEYS.ForXStatement,yBf=D0.FUNCTION_TYPES=Gf.FLIPPED_ALIAS_KEYS.Function,xBf=D0.FUNCTIONPARENT_TYPES=Gf.FLIPPED_ALIAS_KEYS.FunctionParent,mBf=D0.PUREISH_TYPES=Gf.FLIPPED_ALIAS_KEYS.Pureish,lBf=D0.DECLARATION_TYPES=Gf.FLIPPED_ALIAS_KEYS.Declaration,cBf=D0.PATTERNLIKE_TYPES=Gf.FLIPPED_ALIAS_KEYS.PatternLike,aBf=D0.LVAL_TYPES=Gf.FLIPPED_ALIAS_KEYS.LVal,iBf=D0.TSENTITYNAME_TYPES=Gf.FLIPPED_ALIAS_KEYS.TSEntityName,rBf=D0.LITERAL_TYPES=Gf.FLIPPED_ALIAS_KEYS.Literal,sBf=D0.IMMUTABLE_TYPES=Gf.FLIPPED_ALIAS_KEYS.Immutable,pBf=D0.USERWHITESPACABLE_TYPES=Gf.FLIPPED_ALIAS_KEYS.UserWhitespacable,dBf=D0.METHOD_TYPES=Gf.FLIPPED_ALIAS_KEYS.Method,tBf=D0.OBJECTMEMBER_TYPES=Gf.FLIPPED_ALIAS_KEYS.ObjectMember,nBf=D0.PROPERTY_TYPES=Gf.FLIPPED_ALIAS_KEYS.Property,oBf=D0.UNARYLIKE_TYPES=Gf.FLIPPED_ALIAS_KEYS.UnaryLike,eBf=D0.PATTERN_TYPES=Gf.FLIPPED_ALIAS_KEYS.Pattern,fMf=D0.CLASS_TYPES=Gf.FLIPPED_ALIAS_KEYS.Class,Ra=D0.IMPORTOREXPORTDECLARATION_TYPES=Gf.FLIPPED_ALIAS_KEYS.ImportOrExportDeclaration,GMf=D0.EXPORTDECLARATION_TYPES=Gf.FLIPPED_ALIAS_KEYS.ExportDeclaration,XMf=D0.MODULESPECIFIER_TYPES=Gf.FLIPPED_ALIAS_KEYS.ModuleSpecifier,WMf=D0.ACCESSOR_TYPES=Gf.FLIPPED_ALIAS_KEYS.Accessor,RMf=D0.PRIVATE_TYPES=Gf.FLIPPED_ALIAS_KEYS.Private,JMf=D0.FLOW_TYPES=Gf.FLIPPED_ALIAS_KEYS.Flow,UMf=D0.FLOWTYPE_TYPES=Gf.FLIPPED_ALIAS_KEYS.FlowType,VMf=D0.FLOWBASEANNOTATION_TYPES=Gf.FLIPPED_ALIAS_KEYS.FlowBaseAnnotation,HMf=D0.FLOWDECLARATION_TYPES=Gf.FLIPPED_ALIAS_KEYS.FlowDeclaration,QMf=D0.FLOWPREDICATE_TYPES=Gf.FLIPPED_ALIAS_KEYS.FlowPredicate,ZMf=D0.ENUMBODY_TYPES=Gf.FLIPPED_ALIAS_KEYS.EnumBody,YMf=D0.ENUMMEMBER_TYPES=Gf.FLIPPED_ALIAS_KEYS.EnumMember,zMf=D0.JSX_TYPES=Gf.FLIPPED_ALIAS_KEYS.JSX,BMf=D0.MISCELLANEOUS_TYPES=Gf.FLIPPED_ALIAS_KEYS.Miscellaneous,MMf=D0.TYPESCRIPT_TYPES=Gf.FLIPPED_ALIAS_KEYS.TypeScript,KMf=D0.TSTYPEELEMENT_TYPES=Gf.FLIPPED_ALIAS_KEYS.TSTypeElement,SMf=D0.TSTYPE_TYPES=Gf.FLIPPED_ALIAS_KEYS.TSType,FMf=D0.TSBASETYPE_TYPES=Gf.FLIPPED_ALIAS_KEYS.TSBaseType,$Mf=D0.MODULEDECLARATION_TYPES=Ra});var T2=P((N0)=>{Object.defineProperty(N0,"__esModule",{value:!0});N0.default=fi;var yX=Tf(),I2=rf();function fi(f,G){if(yX.isBlockStatement(f))return f;let X=[];if(yX.isEmptyStatement(f))X=[];else{if(!yX.isStatement(f))if(yX.isFunction(G))f=I2.returnStatement(f);else f=I2.expressionStatement(f);X=[f]}return I2.blockStatement(X)}});var b0=P((L0)=>{Object.defineProperty(L0,"__esModule",{value:!0});L0.default=Wi;var Xi=T2();function Wi(f,G="body"){let X=Xi.default(f[G],f);return f[G]=X,X}});var N2=P((E0)=>{Object.defineProperty(E0,"__esModule",{value:!0});E0.default=Vi;var Ji=B1(),Ui=x1();function Vi(f){f=f+"";let G="";for(let X of f)G+=Ui.isIdentifierChar(X.codePointAt(0))?X:"-";if(G=G.replace(/^[-0-9]+/,""),G=G.replace(/[-\s]+(.)?/g,function(X,W){return W?W.toUpperCase():""}),!Ji.default(G))G=`_${G}`;return G||"_"}});var k0=P((w0)=>{Object.defineProperty(w0,"__esModule",{value:!0});w0.default=Zi;var Qi=N2();function Zi(f){if(f=Qi.default(f),f==="eval"||f==="arguments")f="_"+f;return f}});var g0=P((v0)=>{Object.defineProperty(v0,"__esModule",{value:!0});v0.default=Mi;var zi=Tf(),Bi=rf();function Mi(f,G=f.key||f.property){if(!f.computed&&zi.isIdentifier(G))G=Bi.stringLiteral(G.name);return G}});var h0=P((_0)=>{Object.defineProperty(_0,"__esModule",{value:!0});_0.default=void 0;var r1=Tf(),DMf=_0.default=Si;function Si(f){if(r1.isExpressionStatement(f))f=f.expression;if(r1.isExpression(f))return f;if(r1.isClass(f))f.type="ClassExpression";else if(r1.isFunction(f))f.type="FunctionExpression";if(!r1.isExpression(f))throw new Error(`cannot turn ${f.type} to an expression`);return f}});var b2=P((y0)=>{Object.defineProperty(y0,"__esModule",{value:!0});y0.default=L2;var Fi=of();function L2(f,G,X){if(!f)return;let W=Fi.VISITOR_KEYS[f.type];if(!W)return;X=X||{},G(f,X);for(let R of W){let J=f[R];if(Array.isArray(J))for(let U of J)L2(U,G,X);else L2(J,G,X)}}});var E2=P((m0)=>{Object.defineProperty(m0,"__esModule",{value:!0});m0.default=Ai;var Ci=wG(),x0=["tokens","start","end","loc","raw","rawValue"],qi=[...Ci.COMMENT_KEYS,"comments",...x0];function Ai(f,G={}){let X=G.preserveComments?x0:qi;for(let R of X)if(f[R]!=null)f[R]=void 0;for(let R of Object.keys(f))if(R[0]==="_"&&f[R]!=null)f[R]=void 0;let W=Object.getOwnPropertySymbols(f);for(let R of W)f[R]=null}});var w2=P((l0)=>{Object.defineProperty(l0,"__esModule",{value:!0});l0.default=Di;var ji=b2(),Pi=E2();function Di(f,G){return ji.default(f,Pi.default,G),f}});var i0=P((a0)=>{Object.defineProperty(a0,"__esModule",{value:!0});a0.default=sG;var c0=Tf(),Ti=vG(),Ni=w2();function sG(f,G=f.key){let X;if(f.kind==="method")return sG.increment()+"";else if(c0.isIdentifier(G))X=G.name;else if(c0.isStringLiteral(G))X=JSON.stringify(G.value);else X=JSON.stringify(Ni.default(Ti.default(G)));if(f.computed)X=`[${X}]`;if(f.static)X=`static:${X}`;return X}sG.uid=0;sG.increment=function(){if(sG.uid>=Number.MAX_SAFE_INTEGER)return sG.uid=0;else return sG.uid++}});var p0=P((r0)=>{Object.defineProperty(r0,"__esModule",{value:!0});r0.default=void 0;var xX=Tf(),bi=rf(),EMf=r0.default=Ei;function Ei(f,G){if(xX.isStatement(f))return f;let X=!1,W;if(xX.isClass(f))X=!0,W="ClassDeclaration";else if(xX.isFunction(f))X=!0,W="FunctionDeclaration";else if(xX.isAssignmentExpression(f))return bi.expressionStatement(f);if(X&&!f.id)W=!1;if(!W)if(G)return!1;else throw new Error(`cannot turn ${f.type} to a statement`);return f.type=W,f}});var n0=P((d0)=>{Object.defineProperty(d0,"__esModule",{value:!0});d0.default=void 0;var wi=B1(),gf=rf(),kMf=d0.default=k2,ki=Function.call.bind(Object.prototype.toString);function vi(f){return ki(f)==="[object RegExp]"}function gi(f){if(typeof f!=="object"||f===null||Object.prototype.toString.call(f)!=="[object Object]")return!1;let G=Object.getPrototypeOf(f);return G===null||Object.getPrototypeOf(G)===null}function k2(f){if(f===void 0)return gf.identifier("undefined");if(f===!0||f===!1)return gf.booleanLiteral(f);if(f===null)return gf.nullLiteral();if(typeof f==="string")return gf.stringLiteral(f);if(typeof f==="number"){let G;if(Number.isFinite(f))G=gf.numericLiteral(Math.abs(f));else{let X;if(Number.isNaN(f))X=gf.numericLiteral(0);else X=gf.numericLiteral(1);G=gf.binaryExpression("/",X,gf.numericLiteral(0))}if(f<0||Object.is(f,-0))G=gf.unaryExpression("-",G);return G}if(vi(f)){let G=f.source,X=/\/([a-z]*)$/.exec(f.toString())[1];return gf.regExpLiteral(G,X)}if(Array.isArray(f))return gf.arrayExpression(f.map(k2));if(gi(f)){let G=[];for(let X of Object.keys(f)){let W;if(wi.default(X))W=gf.identifier(X);else W=gf.stringLiteral(X);G.push(gf.objectProperty(W,k2(f[X])))}return gf.objectExpression(G)}throw new Error("don't know how to turn this value into a node")}});var e0=P((o0)=>{Object.defineProperty(o0,"__esModule",{value:!0});o0.default=ui;var _i=rf();function ui(f,G,X=!1){return f.object=_i.memberExpression(f.object,f.property,f.computed),f.property=G,f.computed=!!X,f}});var XV=P((GV)=>{Object.defineProperty(GV,"__esModule",{value:!0});GV.default=xi;var fV=wG(),yi=D2();function xi(f,G){if(!f||!G)return f;for(let X of fV.INHERIT_KEYS.optional)if(f[X]==null)f[X]=G[X];for(let X of Object.keys(G))if(X[0]==="_"&&X!=="__clone")f[X]=G[X];for(let X of fV.INHERIT_KEYS.force)f[X]=G[X];return yi.default(f,G),f}});var RV=P((WV)=>{Object.defineProperty(WV,"__esModule",{value:!0});WV.default=ai;var li=rf(),ci=Vf();function ai(f,G){if(ci.isSuper(f.object))throw new Error("Cannot prepend node to super property access (`super.foo`).");return f.object=li.memberExpression(G,f.object),f}});var UV=P((JV)=>{Object.defineProperty(JV,"__esModule",{value:!0});JV.default=ri;function ri(f){let G=[].concat(f),X=Object.create(null);while(G.length){let W=G.pop();if(!W)continue;switch(W.type){case"ArrayPattern":G.push(...W.elements);break;case"AssignmentExpression":case"AssignmentPattern":case"ForInStatement":case"ForOfStatement":G.push(W.left);break;case"ObjectPattern":G.push(...W.properties);break;case"ObjectProperty":G.push(W.value);break;case"RestElement":case"UpdateExpression":G.push(W.argument);break;case"UnaryExpression":if(W.operator==="delete")G.push(W.argument);break;case"Identifier":X[W.name]=W;break;default:break}}return X}});var s1=P((VV)=>{Object.defineProperty(VV,"__esModule",{value:!0});VV.default=v2;var AG=Tf();function v2(f,G,X,W){let R=[].concat(f),J=Object.create(null);while(R.length){let U=R.shift();if(!U)continue;if(W&&(AG.isAssignmentExpression(U)||AG.isUnaryExpression(U)||AG.isUpdateExpression(U)))continue;if(AG.isIdentifier(U)){if(G)(J[U.name]=J[U.name]||[]).push(U);else J[U.name]=U;continue}if(AG.isExportDeclaration(U)&&!AG.isExportAllDeclaration(U)){if(AG.isDeclaration(U.declaration))R.push(U.declaration);continue}if(X){if(AG.isFunctionDeclaration(U)){R.push(U.id);continue}if(AG.isFunctionExpression(U))continue}let V=v2.keys[U.type];if(V)for(let H=0;H<V.length;H++){let Q=V[H],Y=U[Q];if(Y)if(Array.isArray(Y))R.push(...Y);else R.push(Y)}}return J}var pi={DeclareClass:["id"],DeclareFunction:["id"],DeclareModule:["id"],DeclareVariable:["id"],DeclareInterface:["id"],DeclareTypeAlias:["id"],DeclareOpaqueType:["id"],InterfaceDeclaration:["id"],TypeAlias:["id"],OpaqueType:["id"],CatchClause:["param"],LabeledStatement:["label"],UnaryExpression:["argument"],AssignmentExpression:["left"],ImportSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportDefaultSpecifier:["local"],ImportDeclaration:["specifiers"],TSImportEqualsDeclaration:["id"],ExportSpecifier:["exported"],ExportNamespaceSpecifier:["exported"],ExportDefaultSpecifier:["exported"],FunctionDeclaration:["id","params"],FunctionExpression:["id","params"],ArrowFunctionExpression:["params"],ObjectMethod:["params"],ClassMethod:["params"],ClassPrivateMethod:["params"],ForInStatement:["left"],ForOfStatement:["left"],ClassDeclaration:["id"],ClassExpression:["id"],RestElement:["argument"],UpdateExpression:["argument"],ObjectProperty:["value"],AssignmentPattern:["left"],ArrayPattern:["elements"],ObjectPattern:["properties"],VariableDeclaration:["declarations"],VariableDeclarator:["id"]};v2.keys=pi});var ZV=P((HV)=>{Object.defineProperty(HV,"__esModule",{value:!0});HV.default=void 0;var ti=s1(),xMf=HV.default=ni;function ni(f,G){return ti.default(f,G,!0)}});var BV=P((zV)=>{Object.defineProperty(zV,"__esModule",{value:!0});zV.default=ei;var fG=Tf();function oi(f){if(fG.isNullLiteral(f))return"null";if(fG.isRegExpLiteral(f))return`/${f.pattern}/${f.flags}`;if(fG.isTemplateLiteral(f))return f.quasis.map((G)=>G.value.raw).join("");if(f.value!==void 0)return String(f.value);return null}function YV(f){if(!f.computed||fG.isLiteral(f.key))return f.key}function ei(f,G){if("id"in f&&f.id)return{name:f.id.name,originalNode:f.id};let X="",W;if(fG.isObjectProperty(G,{value:f}))W=YV(G);else if(fG.isObjectMethod(f)||fG.isClassMethod(f)){if(W=YV(f),f.kind==="get")X="get ";else if(f.kind==="set")X="set "}else if(fG.isVariableDeclarator(G,{init:f}))W=G.id;else if(fG.isAssignmentExpression(G,{operator:"=",right:f}))W=G.left;if(!W)return null;let R=fG.isLiteral(W)?oi(W):fG.isIdentifier(W)?W.name:fG.isPrivateName(W)?W.id.name:null;if(R==null)return null;return{name:X+R,originalNode:W}}});var KV=P((MV)=>{Object.defineProperty(MV,"__esModule",{value:!0});MV.default=Xr;var Gr=of();function Xr(f,G,X){if(typeof G==="function")G={enter:G};let{enter:W,exit:R}=G;g2(f,W,R,X,[])}function g2(f,G,X,W,R){let J=Gr.VISITOR_KEYS[f.type];if(!J)return;if(G)G(f,R,W);for(let U of J){let V=f[U];if(Array.isArray(V))for(let H=0;H<V.length;H++){let Q=V[H];if(!Q)continue;R.push({node:f,key:U,index:H}),g2(Q,G,X,W,R),R.pop()}else if(V)R.push({node:f,key:U}),g2(V,G,X,W,R),R.pop()}if(X)X(f,R,W)}});var FV=P((SV)=>{Object.defineProperty(SV,"__esModule",{value:!0});SV.default=Jr;var Rr=s1();function Jr(f,G,X){if(X&&f.type==="Identifier"&&G.type==="ObjectProperty"&&X.type==="ObjectExpression")return!1;let W=Rr.default.keys[G.type];if(W)for(let R=0;R<W.length;R++){let J=W[R],U=G[J];if(Array.isArray(U)){if(U.includes(f))return!0}else if(U===f)return!0}return!1}});var _2=P(($V)=>{Object.defineProperty($V,"__esModule",{value:!0});$V.default=Qr;var Vr=Tf(),Hr=wG();function Qr(f){return Vr.isVariableDeclaration(f)&&(f.kind!=="var"||f[Hr.BLOCK_SCOPED_SYMBOL])}});var AV=P((qV)=>{Object.defineProperty(qV,"__esModule",{value:!0});qV.default=zr;var CV=Tf(),Yr=_2();function zr(f){return CV.isFunctionDeclaration(f)||CV.isClassDeclaration(f)||Yr.default(f)}});var jV=P((OV)=>{Object.defineProperty(OV,"__esModule",{value:!0});OV.default=Sr;var Mr=TX(),Kr=Tf();function Sr(f){if(Mr.default(f.type,"Immutable"))return!0;if(Kr.isIdentifier(f))if(f.name==="undefined")return!0;else return!1;return!1}});var IV=P((DV)=>{Object.defineProperty(DV,"__esModule",{value:!0});DV.default=u2;var PV=of();function u2(f,G){if(typeof f!=="object"||typeof G!=="object"||f==null||G==null)return f===G;if(f.type!==G.type)return!1;let X=Object.keys(PV.NODE_FIELDS[f.type]||f.type),W=PV.VISITOR_KEYS[f.type];for(let R of X){let J=f[R],U=G[R];if(typeof J!==typeof U)return!1;if(J==null&&U==null)continue;else if(J==null||U==null)return!1;if(Array.isArray(J)){if(!Array.isArray(U))return!1;if(J.length!==U.length)return!1;for(let V=0;V<J.length;V++)if(!u2(J[V],U[V]))return!1;continue}if(typeof J==="object"&&!(W!=null&&W.includes(R))){for(let V of Object.keys(J))if(J[V]!==U[V])return!1;continue}if(!u2(J,U))return!1}return!0}});var NV=P((TV)=>{Object.defineProperty(TV,"__esModule",{value:!0});TV.default=Cr;function Cr(f,G,X){switch(G.type){case"MemberExpression":case"OptionalMemberExpression":if(G.property===f)return!!G.computed;return G.object===f;case"JSXMemberExpression":return G.object===f;case"VariableDeclarator":return G.init===f;case"ArrowFunctionExpression":return G.body===f;case"PrivateName":return!1;case"ClassMethod":case"ClassPrivateMethod":case"ObjectMethod":if(G.key===f)return!!G.computed;return!1;case"ObjectProperty":if(G.key===f)return!!G.computed;return!X||X.type!=="ObjectPattern";case"ClassProperty":case"ClassAccessorProperty":if(G.key===f)return!!G.computed;return!0;case"ClassPrivateProperty":return G.key!==f;case"ClassDeclaration":case"ClassExpression":return G.superClass===f;case"AssignmentExpression":return G.right===f;case"AssignmentPattern":return G.right===f;case"LabeledStatement":return!1;case"CatchClause":return!1;case"RestElement":return!1;case"BreakStatement":case"ContinueStatement":return!1;case"FunctionDeclaration":case"FunctionExpression":return!1;case"ExportNamespaceSpecifier":case"ExportDefaultSpecifier":return!1;case"ExportSpecifier":if(X!=null&&X.source)return!1;return G.local===f;case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":case"ImportSpecifier":return!1;case"ImportAttribute":return!1;case"JSXAttribute":return!1;case"ObjectPattern":case"ArrayPattern":return!1;case"MetaProperty":return!1;case"ObjectTypeProperty":return G.key!==f;case"TSEnumMember":return G.id!==f;case"TSPropertySignature":if(G.key===f)return!!G.computed;return!0}return!0}});var bV=P((LV)=>{Object.defineProperty(LV,"__esModule",{value:!0});LV.default=Ar;var pG=Tf();function Ar(f,G){if(pG.isBlockStatement(f)&&(pG.isFunction(G)||pG.isCatchClause(G)))return!1;if(pG.isPattern(f)&&(pG.isFunction(G)||pG.isCatchClause(G)))return!0;return pG.isScopable(f)}});var kV=P((wV)=>{Object.defineProperty(wV,"__esModule",{value:!0});wV.default=jr;var EV=Tf();function jr(f){return EV.isImportDefaultSpecifier(f)||EV.isIdentifier(f.imported||f.exported,{name:"default"})}});var gV=P((vV)=>{Object.defineProperty(vV,"__esModule",{value:!0});vV.default=Tr;var Dr=B1(),Ir=new Set(["abstract","boolean","byte","char","double","enum","final","float","goto","implements","int","interface","long","native","package","private","protected","public","short","static","synchronized","throws","transient","volatile"]);function Tr(f){return Dr.default(f)&&!Ir.has(f)}});var uV=P((_V)=>{Object.defineProperty(_V,"__esModule",{value:!0});_V.default=Er;var Lr=Tf(),br=wG();function Er(f){return Lr.isVariableDeclaration(f,{kind:"var"})&&!f[br.BLOCK_SCOPED_SYMBOL]}});var yV=P((hV)=>{Object.defineProperty(hV,"__esModule",{value:!0});hV.default=mX;var kr=s1(),dG=Tf(),h2=rf(),y2=C2(),vr=vG();function mX(f,G){let X=[],W=!0;for(let R of f){if(!dG.isEmptyStatement(R))W=!1;if(dG.isExpression(R))X.push(R);else if(dG.isExpressionStatement(R))X.push(R.expression);else if(dG.isVariableDeclaration(R)){if(R.kind!=="var")return;for(let J of R.declarations){let U=kr.default(J);for(let V of Object.keys(U))G.push({kind:R.kind,id:vr.default(U[V])});if(J.init)X.push(h2.assignmentExpression("=",J.id,J.init))}W=!0}else if(dG.isIfStatement(R)){let J=R.consequent?mX([R.consequent],G):y2.buildUndefinedNode(),U=R.alternate?mX([R.alternate],G):y2.buildUndefinedNode();if(!J||!U)return;X.push(h2.conditionalExpression(R.test,J,U))}else if(dG.isBlockStatement(R)){let J=mX(R.body,G);if(!J)return;X.push(J)}else if(dG.isEmptyStatement(R)){if(f.indexOf(R)===0)W=!0}else return}if(W)X.push(y2.buildUndefinedNode());if(X.length===1)return X[0];else return h2.sequenceExpression(X)}});var mV=P((xV)=>{Object.defineProperty(xV,"__esModule",{value:!0});xV.default=ur;var _r=yV();function ur(f,G){if(!(f!=null&&f.length))return;let X=[],W=_r.default(f,X);if(!W)return;for(let R of X)G.push(R);return W}});var Vf=P((_)=>{Object.defineProperty(_,"__esModule",{value:!0});var gG={react:!0,assertNode:!0,createTypeAnnotationBasedOnTypeof:!0,createUnionTypeAnnotation:!0,createFlowUnionType:!0,createTSUnionType:!0,cloneNode:!0,clone:!0,cloneDeep:!0,cloneDeepWithoutLoc:!0,cloneWithoutLoc:!0,addComment:!0,addComments:!0,inheritInnerComments:!0,inheritLeadingComments:!0,inheritsComments:!0,inheritTrailingComments:!0,removeComments:!0,ensureBlock:!0,toBindingIdentifierName:!0,toBlock:!0,toComputedKey:!0,toExpression:!0,toIdentifier:!0,toKeyAlias:!0,toStatement:!0,valueToNode:!0,appendToMemberExpression:!0,inherits:!0,prependToMemberExpression:!0,removeProperties:!0,removePropertiesDeep:!0,removeTypeDuplicates:!0,getAssignmentIdentifiers:!0,getBindingIdentifiers:!0,getOuterBindingIdentifiers:!0,getFunctionName:!0,traverse:!0,traverseFast:!0,shallowEqual:!0,is:!0,isBinding:!0,isBlockScoped:!0,isImmutable:!0,isLet:!0,isNode:!0,isNodesEquivalent:!0,isPlaceholderType:!0,isReferenced:!0,isScope:!0,isSpecifierDefault:!0,isType:!0,isValidES3Identifier:!0,isValidIdentifier:!0,isVar:!0,matchesPattern:!0,validate:!0,buildMatchMemberExpression:!0,__internal__deprecationWarning:!0};Object.defineProperty(_,"__internal__deprecationWarning",{enumerable:!0,get:function(){return ls.default}});Object.defineProperty(_,"addComment",{enumerable:!0,get:function(){return tr.default}});Object.defineProperty(_,"addComments",{enumerable:!0,get:function(){return nr.default}});Object.defineProperty(_,"appendToMemberExpression",{enumerable:!0,get:function(){return zs.default}});Object.defineProperty(_,"assertNode",{enumerable:!0,get:function(){return lr.default}});Object.defineProperty(_,"buildMatchMemberExpression",{enumerable:!0,get:function(){return ms.default}});Object.defineProperty(_,"clone",{enumerable:!0,get:function(){return rr.default}});Object.defineProperty(_,"cloneDeep",{enumerable:!0,get:function(){return sr.default}});Object.defineProperty(_,"cloneDeepWithoutLoc",{enumerable:!0,get:function(){return pr.default}});Object.defineProperty(_,"cloneNode",{enumerable:!0,get:function(){return ir.default}});Object.defineProperty(_,"cloneWithoutLoc",{enumerable:!0,get:function(){return dr.default}});Object.defineProperty(_,"createFlowUnionType",{enumerable:!0,get:function(){return lV.default}});Object.defineProperty(_,"createTSUnionType",{enumerable:!0,get:function(){return ar.default}});Object.defineProperty(_,"createTypeAnnotationBasedOnTypeof",{enumerable:!0,get:function(){return cr.default}});Object.defineProperty(_,"createUnionTypeAnnotation",{enumerable:!0,get:function(){return lV.default}});Object.defineProperty(_,"ensureBlock",{enumerable:!0,get:function(){return Ws.default}});Object.defineProperty(_,"getAssignmentIdentifiers",{enumerable:!0,get:function(){return $s.default}});Object.defineProperty(_,"getBindingIdentifiers",{enumerable:!0,get:function(){return Cs.default}});Object.defineProperty(_,"getFunctionName",{enumerable:!0,get:function(){return As.default}});Object.defineProperty(_,"getOuterBindingIdentifiers",{enumerable:!0,get:function(){return qs.default}});Object.defineProperty(_,"inheritInnerComments",{enumerable:!0,get:function(){return or.default}});Object.defineProperty(_,"inheritLeadingComments",{enumerable:!0,get:function(){return er.default}});Object.defineProperty(_,"inheritTrailingComments",{enumerable:!0,get:function(){return Gs.default}});Object.defineProperty(_,"inherits",{enumerable:!0,get:function(){return Bs.default}});Object.defineProperty(_,"inheritsComments",{enumerable:!0,get:function(){return fs.default}});Object.defineProperty(_,"is",{enumerable:!0,get:function(){return Ps.default}});Object.defineProperty(_,"isBinding",{enumerable:!0,get:function(){return Ds.default}});Object.defineProperty(_,"isBlockScoped",{enumerable:!0,get:function(){return Is.default}});Object.defineProperty(_,"isImmutable",{enumerable:!0,get:function(){return Ts.default}});Object.defineProperty(_,"isLet",{enumerable:!0,get:function(){return Ns.default}});Object.defineProperty(_,"isNode",{enumerable:!0,get:function(){return Ls.default}});Object.defineProperty(_,"isNodesEquivalent",{enumerable:!0,get:function(){return bs.default}});Object.defineProperty(_,"isPlaceholderType",{enumerable:!0,get:function(){return Es.default}});Object.defineProperty(_,"isReferenced",{enumerable:!0,get:function(){return ws.default}});Object.defineProperty(_,"isScope",{enumerable:!0,get:function(){return ks.default}});Object.defineProperty(_,"isSpecifierDefault",{enumerable:!0,get:function(){return vs.default}});Object.defineProperty(_,"isType",{enumerable:!0,get:function(){return gs.default}});Object.defineProperty(_,"isValidES3Identifier",{enumerable:!0,get:function(){return _s.default}});Object.defineProperty(_,"isValidIdentifier",{enumerable:!0,get:function(){return us.default}});Object.defineProperty(_,"isVar",{enumerable:!0,get:function(){return hs.default}});Object.defineProperty(_,"matchesPattern",{enumerable:!0,get:function(){return ys.default}});Object.defineProperty(_,"prependToMemberExpression",{enumerable:!0,get:function(){return Ms.default}});_.react=void 0;Object.defineProperty(_,"removeComments",{enumerable:!0,get:function(){return Xs.default}});Object.defineProperty(_,"removeProperties",{enumerable:!0,get:function(){return Ks.default}});Object.defineProperty(_,"removePropertiesDeep",{enumerable:!0,get:function(){return Ss.default}});Object.defineProperty(_,"removeTypeDuplicates",{enumerable:!0,get:function(){return Fs.default}});Object.defineProperty(_,"shallowEqual",{enumerable:!0,get:function(){return js.default}});Object.defineProperty(_,"toBindingIdentifierName",{enumerable:!0,get:function(){return Rs.default}});Object.defineProperty(_,"toBlock",{enumerable:!0,get:function(){return Js.default}});Object.defineProperty(_,"toComputedKey",{enumerable:!0,get:function(){return Us.default}});Object.defineProperty(_,"toExpression",{enumerable:!0,get:function(){return Vs.default}});Object.defineProperty(_,"toIdentifier",{enumerable:!0,get:function(){return Hs.default}});Object.defineProperty(_,"toKeyAlias",{enumerable:!0,get:function(){return Qs.default}});Object.defineProperty(_,"toStatement",{enumerable:!0,get:function(){return Zs.default}});Object.defineProperty(_,"traverse",{enumerable:!0,get:function(){return lX.default}});Object.defineProperty(_,"traverseFast",{enumerable:!0,get:function(){return Os.default}});Object.defineProperty(_,"validate",{enumerable:!0,get:function(){return xs.default}});Object.defineProperty(_,"valueToNode",{enumerable:!0,get:function(){return Ys.default}});var yr=$U(),xr=qU(),mr=v6(),lr=u6(),x2=y6();Object.keys(x2).forEach(function(f){if(f==="default"||f==="__esModule")return;if(Object.prototype.hasOwnProperty.call(gG,f))return;if(f in _&&_[f]===x2[f])return;Object.defineProperty(_,f,{enumerable:!0,get:function(){return x2[f]}})});var cr=l6(),lV=s6(),ar=e6(),m2=C2();Object.keys(m2).forEach(function(f){if(f==="default"||f==="__esModule")return;if(Object.prototype.hasOwnProperty.call(gG,f))return;if(f in _&&_[f]===m2[f])return;Object.defineProperty(_,f,{enumerable:!0,get:function(){return m2[f]}})});var l2=rf();Object.keys(l2).forEach(function(f){if(f==="default"||f==="__esModule")return;if(Object.prototype.hasOwnProperty.call(gG,f))return;if(f in _&&_[f]===l2[f])return;Object.defineProperty(_,f,{enumerable:!0,get:function(){return l2[f]}})});var ir=vG(),rr=H0(),sr=Z0(),pr=z0(),dr=M0(),tr=F0(),nr=A2(),or=O2(),er=j2(),fs=D2(),Gs=P2(),Xs=P0(),c2=T0();Object.keys(c2).forEach(function(f){if(f==="default"||f==="__esModule")return;if(Object.prototype.hasOwnProperty.call(gG,f))return;if(f in _&&_[f]===c2[f])return;Object.defineProperty(_,f,{enumerable:!0,get:function(){return c2[f]}})});var a2=wG();Object.keys(a2).forEach(function(f){if(f==="default"||f==="__esModule")return;if(Object.prototype.hasOwnProperty.call(gG,f))return;if(f in _&&_[f]===a2[f])return;Object.defineProperty(_,f,{enumerable:!0,get:function(){return a2[f]}})});var Ws=b0(),Rs=k0(),Js=T2(),Us=g0(),Vs=h0(),Hs=N2(),Qs=i0(),Zs=p0(),Ys=n0(),i2=of();Object.keys(i2).forEach(function(f){if(f==="default"||f==="__esModule")return;if(Object.prototype.hasOwnProperty.call(gG,f))return;if(f in _&&_[f]===i2[f])return;Object.defineProperty(_,f,{enumerable:!0,get:function(){return i2[f]}})});var zs=e0(),Bs=XV(),Ms=RV(),Ks=E2(),Ss=w2(),Fs=$2(),$s=UV(),Cs=s1(),qs=ZV(),As=BV(),lX=KV();Object.keys(lX).forEach(function(f){if(f==="default"||f==="__esModule")return;if(Object.prototype.hasOwnProperty.call(gG,f))return;if(f in _&&_[f]===lX[f])return;Object.defineProperty(_,f,{enumerable:!0,get:function(){return lX[f]}})});var Os=b2(),js=IX(),Ps=z1(),Ds=FV(),Is=AV(),Ts=jV(),Ns=_2(),Ls=F2(),bs=IV(),Es=sW(),ws=NV(),ks=bV(),vs=kV(),gs=TX(),_s=gV(),us=B1(),hs=uV(),ys=iW(),xs=wX(),ms=rW(),r2=Tf();Object.keys(r2).forEach(function(f){if(f==="default"||f==="__esModule")return;if(Object.prototype.hasOwnProperty.call(gG,f))return;if(f in _&&_[f]===r2[f])return;Object.defineProperty(_,f,{enumerable:!0,get:function(){return r2[f]}})});var ls=_1(),cs=mV(),XKf=_.react={isReactComponent:yr.default,isCompatTag:xr.default,buildChildren:mr.default};_.toSequenceExpression=cs.default;if(process.env.BABEL_TYPES_8_BREAKING)console.warn("BABEL_TYPES_8_BREAKING is not supported anymore. Use the latest Babel 8.0.0 pre-release instead!")});var tV=P((pV)=>{Object.defineProperty(pV,"__esModule",{value:!0});pV.nodes=void 0;var as=Vf(),{FLIPPED_ALIAS_KEYS:is,isArrayExpression:rs,isAssignmentExpression:iV,isBinary:rV,isBlockStatement:ss,isCallExpression:sV,isFunction:p1,isIdentifier:cX,isLiteral:ps,isMemberExpression:s2,isObjectExpression:ds,isOptionalCallExpression:ts,isOptionalMemberExpression:ns,isStringLiteral:os}=as;function F1(f,G){if(!f)return G;if(s2(f)||ns(f)){if(F1(f.object,G),f.computed)F1(f.property,G)}else if(rV(f)||iV(f))F1(f.left,G),F1(f.right,G);else if(sV(f)||ts(f))G.hasCall=!0,F1(f.callee,G);else if(p1(f))G.hasFunction=!0;else if(cX(f))G.hasHelper=G.hasHelper||f.callee&&OG(f.callee);return G}function aV(f){return F1(f,{hasCall:!1,hasFunction:!1,hasHelper:!1})}function OG(f){if(!f)return!1;if(s2(f))return OG(f.object)||OG(f.property);else if(cX(f))return f.name==="require"||f.name.charCodeAt(0)===95;else if(sV(f))return OG(f.callee);else if(rV(f)||iV(f))return cX(f.left)&&OG(f.left)||OG(f.right);else return!1}function es(f){return ps(f)||ds(f)||rs(f)||cX(f)||s2(f)}var tG=pV.nodes={AssignmentExpression(f){let G=aV(f.right);if(G.hasCall&&G.hasHelper||G.hasFunction)return G.hasFunction?3:2},SwitchCase(f,G){return(!!f.consequent.length||G.cases[0]===f?1:0)|(!f.consequent.length&&G.cases[G.cases.length-1]===f?2:0)},LogicalExpression(f){if(p1(f.left)||p1(f.right))return 2},Literal(f){if(os(f)&&f.value==="use strict")return 2},CallExpression(f){if(p1(f.callee)||OG(f))return 3},OptionalCallExpression(f){if(p1(f.callee))return 3},VariableDeclaration(f){for(let G=0;G<f.declarations.length;G++){let X=f.declarations[G],W=OG(X.id)&&!es(X.init);if(!W&&X.init){let R=aV(X.init);W=OG(X.init)&&R.hasCall||R.hasFunction}if(W)return 3}},IfStatement(f){if(ss(f.consequent))return 3}};tG.ObjectProperty=tG.ObjectTypeProperty=tG.ObjectMethod=function(f,G){if(G.properties[0]===f)return 1};tG.ObjectTypeCallProperty=function(f,G){var X;if(G.callProperties[0]===f&&!((X=G.properties)!=null&&X.length))return 1};tG.ObjectTypeIndexer=function(f,G){var X,W;if(G.indexers[0]===f&&!((X=G.properties)!=null&&X.length)&&!((W=G.callProperties)!=null&&W.length))return 1};tG.ObjectTypeInternalSlot=function(f,G){var X,W,R;if(G.internalSlots[0]===f&&!((X=G.properties)!=null&&X.length)&&!((W=G.callProperties)!=null&&W.length)&&!((R=G.indexers)!=null&&R.length))return 1};[["Function",!0],["Class",!0],["Loop",!0],["LabeledStatement",!0],["SwitchStatement",!0],["TryStatement",!0]].forEach(function([f,G]){[f].concat(is[f]||[]).forEach(function(X){let W=G?3:0;tG[X]=()=>W})})});var JH=P((RH)=>{Object.defineProperty(RH,"__esModule",{value:!0});RH.AssignmentExpression=Ep;RH.Binary=GH;RH.BinaryExpression=Dp;RH.ClassExpression=Np;RH.ArrowFunctionExpression=RH.ConditionalExpression=WH;RH.DoExpression=Mp;RH.FunctionExpression=Lp;RH.FunctionTypeAnnotation=Yp;RH.Identifier=kp;RH.LogicalExpression=wp;RH.NullableTypeAnnotation=Zp;RH.ObjectExpression=Bp;RH.OptionalIndexedAccessType=Sp;RH.OptionalCallExpression=RH.OptionalMemberExpression=bp;RH.SequenceExpression=Ip;RH.TSSatisfiesExpression=RH.TSAsExpression=Fp;RH.TSConditionalType=$p;RH.TSConstructorType=RH.TSFunctionType=Pp;RH.TSInferType=Ap;RH.TSInstantiationExpression=jp;RH.TSIntersectionType=qp;RH.UnaryLike=RH.TSTypeAssertion=XH;RH.TSTypeOperator=Op;RH.TSUnionType=Cp;RH.IntersectionTypeAnnotation=RH.UnionTypeAnnotation=Kp;RH.UpdateExpression=zp;RH.AwaitExpression=RH.YieldExpression=Tp;var fp=Vf(),GG=_G(),{isArrayTypeAnnotation:Gp,isBinaryExpression:Xp,isCallExpression:Wp,isForOfStatement:Rp,isIndexedAccessType:Jp,isMemberExpression:eV,isObjectPattern:Up,isOptionalMemberExpression:Vp,isYieldExpression:Hp,isStatement:Qp}=fp,nV=new Map([["||",0],["??",0],["|>",0],["&&",1],["|",2],["^",3],["&",4],["==",5],["===",5],["!=",5],["!==",5],["<",6],[">",6],["<=",6],[">=",6],["in",6],["instanceof",6],[">>",7],["<<",7],[">>>",7],["+",8],["-",8],["*",9],["/",9],["%",9],["**",10]]);function oV(f,G){if(G==="BinaryExpression"||G==="LogicalExpression")return nV.get(f.operator);if(G==="TSAsExpression"||G==="TSSatisfiesExpression")return nV.get("in")}function p2(f){return f==="TSAsExpression"||f==="TSSatisfiesExpression"||f==="TSTypeAssertion"}var aX=(f,G)=>{let X=G.type;return(X==="ClassDeclaration"||X==="ClassExpression")&&G.superClass===f},iX=(f,G)=>{let X=G.type;return(X==="MemberExpression"||X==="OptionalMemberExpression")&&G.object===f||(X==="CallExpression"||X==="OptionalCallExpression"||X==="NewExpression")&&G.callee===f||X==="TaggedTemplateExpression"&&G.tag===f||X==="TSNonNullExpression"};function Zp(f,G){return Gp(G)}function Yp(f,G,X){let W=G.type;return W==="UnionTypeAnnotation"||W==="IntersectionTypeAnnotation"||W==="ArrayTypeAnnotation"||Boolean(X&GG.TokenContext.arrowFlowReturnType)}function zp(f,G){return iX(f,G)||aX(f,G)}function fH(f){return Boolean(f&(GG.TokenContext.expressionStatement|GG.TokenContext.arrowBody))}function Bp(f,G,X){return fH(X)}function Mp(f,G,X){return!f.async&&Boolean(X&GG.TokenContext.expressionStatement)}function GH(f,G){let X=G.type;if(f.type==="BinaryExpression"&&f.operator==="**"&&X==="BinaryExpression"&&G.operator==="**")return G.left===f;if(aX(f,G))return!0;if(iX(f,G)||X==="UnaryExpression"||X==="SpreadElement"||X==="AwaitExpression")return!0;let W=oV(G,X);if(W!=null){let R=oV(f,f.type);if(W===R&&X==="BinaryExpression"&&G.right===f||W>R)return!0}return}function Kp(f,G){let X=G.type;return X==="ArrayTypeAnnotation"||X==="NullableTypeAnnotation"||X==="IntersectionTypeAnnotation"||X==="UnionTypeAnnotation"}function Sp(f,G){return Jp(G)&&G.objectType===f}function Fp(f,G){if((G.type==="AssignmentExpression"||G.type==="AssignmentPattern")&&G.left===f)return!0;if(G.type==="BinaryExpression"&&(G.operator==="|"||G.operator==="&")&&f===G.left)return!0;return GH(f,G)}function $p(f,G){let X=G.type;if(X==="TSArrayType"||X==="TSIndexedAccessType"&&G.objectType===f||X==="TSOptionalType"||X==="TSTypeOperator"||X==="TSTypeParameter")return!0;if((X==="TSIntersectionType"||X==="TSUnionType")&&G.types[0]===f)return!0;if(X==="TSConditionalType"&&(G.checkType===f||G.extendsType===f))return!0;return!1}function Cp(f,G){let X=G.type;return X==="TSIntersectionType"||X==="TSTypeOperator"||X==="TSArrayType"||X==="TSIndexedAccessType"&&G.objectType===f||X==="TSOptionalType"}function qp(f,G){let X=G.type;return X==="TSTypeOperator"||X==="TSArrayType"||X==="TSIndexedAccessType"&&G.objectType===f||X==="TSOptionalType"}function Ap(f,G){let X=G.type;if(X==="TSArrayType"||X==="TSIndexedAccessType"&&G.objectType===f||X==="TSOptionalType")return!0;if(f.typeParameter.constraint){if((X==="TSIntersectionType"||X==="TSUnionType")&&G.types[0]===f)return!0}return!1}function Op(f,G){let X=G.type;return X==="TSArrayType"||X==="TSIndexedAccessType"&&G.objectType===f||X==="TSOptionalType"}function jp(f,G){let X=G.type;return(X==="CallExpression"||X==="OptionalCallExpression"||X==="NewExpression"||X==="TSInstantiationExpression")&&!!G.typeParameters}function Pp(f,G){let X=G.type;return X==="TSIntersectionType"||X==="TSUnionType"||X==="TSTypeOperator"||X==="TSOptionalType"||X==="TSArrayType"||X==="TSIndexedAccessType"&&G.objectType===f||X==="TSConditionalType"&&(G.checkType===f||G.extendsType===f)}function Dp(f,G,X,W){return f.operator==="in"&&W}function Ip(f,G){let X=G.type;if(X==="SequenceExpression"||X==="ParenthesizedExpression"||X==="MemberExpression"&&G.property===f||X==="OptionalMemberExpression"&&G.property===f||X==="TemplateLiteral")return!1;if(X==="ClassDeclaration")return!0;if(X==="ForOfStatement")return G.right===f;if(X==="ExportDefaultDeclaration")return!0;return!Qp(G)}function Tp(f,G){let X=G.type;return X==="BinaryExpression"||X==="LogicalExpression"||X==="UnaryExpression"||X==="SpreadElement"||iX(f,G)||X==="AwaitExpression"&&Hp(f)||X==="ConditionalExpression"&&f===G.test||aX(f,G)||p2(X)}function Np(f,G,X){return Boolean(X&(GG.TokenContext.expressionStatement|GG.TokenContext.exportDefault))}function XH(f,G){return iX(f,G)||Xp(G)&&G.operator==="**"&&G.left===f||aX(f,G)}function Lp(f,G,X){return Boolean(X&(GG.TokenContext.expressionStatement|GG.TokenContext.exportDefault))}function WH(f,G){let X=G.type;if(X==="UnaryExpression"||X==="SpreadElement"||X==="BinaryExpression"||X==="LogicalExpression"||X==="ConditionalExpression"&&G.test===f||X==="AwaitExpression"||p2(X))return!0;return XH(f,G)}function bp(f,G){return Wp(G)&&G.callee===f||eV(G)&&G.object===f}function Ep(f,G,X){if(fH(X)&&Up(f.left))return!0;else return WH(f,G)}function wp(f,G){let X=G.type;if(p2(X))return!0;if(X!=="LogicalExpression")return!1;switch(f.operator){case"||":return G.operator==="??"||G.operator==="&&";case"&&":return G.operator==="??";case"??":return G.operator!=="??"}}function kp(f,G,X,W,R){var J;let U=G.type;if((J=f.extra)!=null&&J.parenthesized&&U==="AssignmentExpression"&&G.left===f){let V=G.right.type;if((V==="FunctionExpression"||V==="ClassExpression")&&G.right.id==null)return!0}if(R&&R(f)!==f.name)return!1;if(f.name==="let"){if((eV(G,{object:f,computed:!0})||Vp(G,{object:f,computed:!0,optional:!1}))&&X&(GG.TokenContext.expressionStatement|GG.TokenContext.forHead|GG.TokenContext.forInHead))return!0;return Boolean(X&GG.TokenContext.forOfHead)}return f.name==="async"&&Rp(G,{left:f,await:!1})}});var _G=P((QH)=>{Object.defineProperty(QH,"__esModule",{value:!0});QH.TokenContext=void 0;QH.isLastChild=Od;QH.needsParens=Ad;QH.needsWhitespace=t2;QH.needsWhitespaceAfter=qd;QH.needsWhitespaceBefore=Cd;var Vd=tV(),Hd=JH(),Qd=Vf(),{FLIPPED_ALIAS_KEYS:Zd,VISITOR_KEYS:Yd,isCallExpression:UH,isDecorator:zd,isExpressionStatement:Bd,isMemberExpression:Md,isNewExpression:Kd,isParenthesizedExpression:Sd}=Qd,MKf=QH.TokenContext={expressionStatement:1,arrowBody:2,exportDefault:4,forHead:8,forInHead:16,forOfHead:32,arrowFlowReturnType:64};function VH(f){let G=new Map;function X(W,R){let J=G.get(W);G.set(W,J?function(U,V,H,Q,Y){var F;return(F=J(U,V,H,Q,Y))!=null?F:R(U,V,H,Q,Y)}:R)}for(let W of Object.keys(f)){let R=Zd[W];if(R)for(let J of R)X(J,f[W]);else X(W,f[W])}return G}var Fd=VH(Hd),$d=VH(Vd.nodes);function HH(f){if(UH(f))return!0;return Md(f)&&HH(f.object)}function t2(f,G,X){var W;if(!f)return!1;if(Bd(f))f=f.expression;let R=(W=$d.get(f.type))==null?void 0:W(f,G);if(typeof R==="number")return(R&X)!==0;return!1}function Cd(f,G){return t2(f,G,1)}function qd(f,G){return t2(f,G,2)}function Ad(f,G,X,W,R){var J;if(!G)return!1;if(Kd(G)&&G.callee===f){if(HH(f))return!0}if(zd(G))return!d2(f)&&!(UH(f)&&d2(f.callee))&&!Sd(f);return(J=Fd.get(f.type))==null?void 0:J(f,G,X,W,R)}function d2(f){switch(f.type){case"Identifier":return!0;case"MemberExpression":return!f.computed&&f.property.type==="Identifier"&&d2(f.object);default:return!1}}function Od(f,G){let X=Yd[f.type];for(let W=X.length-1;W>=0;W--){let R=f[X[W]];if(R===G)return!0;else if(Array.isArray(R)){let J=R.length-1;while(J>=0&&R[J]===null)J--;return J>=0&&R[J]===G}else if(R)return!1}return!1}});var MH=P((zH)=>{Object.defineProperty(zH,"__esModule",{value:!0});zH.TokenMap=void 0;var Nd=Vf(),{traverseFast:Ld,VISITOR_KEYS:bd}=Nd;class YH{constructor(f,G,X){this._tokens=void 0,this._source=void 0,this._nodesToTokenIndexes=new Map,this._nodesOccurrencesCountCache=new Map,this._tokensCache=new Map,this._tokens=G,this._source=X,Ld(f,(W)=>{let R=this._getTokensIndexesOfNode(W);if(R.length>0)this._nodesToTokenIndexes.set(W,R)}),this._tokensCache=null}has(f){return this._nodesToTokenIndexes.has(f)}getIndexes(f){return this._nodesToTokenIndexes.get(f)}find(f,G){let X=this._nodesToTokenIndexes.get(f);if(X)for(let W=0;W<X.length;W++){let R=X[W],J=this._tokens[R];if(G(J,R))return J}return null}findLastIndex(f,G){let X=this._nodesToTokenIndexes.get(f);if(X)for(let W=X.length-1;W>=0;W--){let R=X[W],J=this._tokens[R];if(G(J,R))return R}return-1}findMatching(f,G,X=0){let W=this._nodesToTokenIndexes.get(f);if(W){let R=0,J=X;if(J>1){let U=this._nodesOccurrencesCountCache.get(f);if(U&&U.test===G&&U.count<J)R=U.i+1,X-=U.count+1}for(;R<W.length;R++){let U=this._tokens[W[R]];if(this.matchesOriginal(U,G)){if(X===0){if(J>0)this._nodesOccurrencesCountCache.set(f,{test:G,count:J,i:R});return U}X--}}}return null}matchesOriginal(f,G){if(f.end-f.start!==G.length)return!1;if(f.value!=null)return f.value===G;return this._source.startsWith(G,f.start)}startMatches(f,G){let X=this._nodesToTokenIndexes.get(f);if(!X)return!1;let W=this._tokens[X[0]];if(W.start!==f.start)return!1;return this.matchesOriginal(W,G)}endMatches(f,G){let X=this._nodesToTokenIndexes.get(f);if(!X)return!1;let W=this._tokens[X[X.length-1]];if(W.end!==f.end)return!1;return this.matchesOriginal(W,G)}_getTokensIndexesOfNode(f){if(f.start==null||f.end==null)return[];let{first:G,last:X}=this._findTokensOfNode(f,0,this._tokens.length-1),W=G,R=Ed(f);if((f.type==="ExportNamedDeclaration"||f.type==="ExportDefaultDeclaration")&&f.declaration&&f.declaration.type==="ClassDeclaration")R.next();let J=[];for(let U of R){if(U==null)continue;if(U.start==null||U.end==null)continue;let V=this._findTokensOfNode(U,W,X),H=V.first;for(let Q=W;Q<H;Q++)J.push(Q);W=V.last+1}for(let U=W;U<=X;U++)J.push(U);return J}_findTokensOfNode(f,G,X){let W=this._tokensCache.get(f);if(W)return W;let R=this._findFirstTokenOfNode(f.start,G,X),J=this._findLastTokenOfNode(f.end,R,X);return this._tokensCache.set(f,{first:R,last:J}),{first:R,last:J}}_findFirstTokenOfNode(f,G,X){while(G<=X){let W=X+G>>1;if(f<this._tokens[W].start)X=W-1;else if(f>this._tokens[W].start)G=W+1;else return W}return G}_findLastTokenOfNode(f,G,X){while(G<=X){let W=X+G>>1;if(f<this._tokens[W].end)X=W-1;else if(f>this._tokens[W].end)G=W+1;else return W}return X}}zH.TokenMap=YH;function*Ed(f){if(f.type==="TemplateLiteral"){yield f.quasis[0];for(let X=1;X<f.quasis.length;X++)yield f.expressions[X-1],yield f.quasis[X];return}let G=bd[f.type];for(let X of G){let W=f[X];if(!W)continue;if(Array.isArray(W))yield*W;else yield W}}});var SH=P((KH)=>{Object.defineProperty(KH,"__esModule",{value:!0});KH.TaggedTemplateExpression=wd;KH.TemplateElement=kd;KH.TemplateLiteral=gd;KH._printTemplate=vd;function wd(f){this.print(f.tag),this.print(f.typeParameters),this.print(f.quasi)}function kd(){throw new Error("TemplateElement printing is handled in TemplateLiteral")}function vd(f,G){let X=f.quasis,W="`";for(let R=0;R<X.length-1;R++)if(W+=X[R].value.raw,this.token(W+"${",!0),this.print(G[R]),W="}",this.tokenMap){let J=this.tokenMap.findMatching(f,"}",R);if(J)this._catchUpTo(J.loc.start)}W+=X[X.length-1].value.raw,this.token(W+"`",!0)}function gd(f){this._printTemplate(f,f.expressions)}});var CH=P(($H)=>{Object.defineProperty($H,"__esModule",{value:!0});$H.LogicalExpression=$H.BinaryExpression=$H.AssignmentExpression=Yt;$H.AssignmentPattern=Zt;$H.AwaitExpression=Ut;$H.BindExpression=zt;$H.CallExpression=Rt;$H.ConditionalExpression=dd;$H.Decorator=Gt;$H.DoExpression=rd;$H.EmptyStatement=Ht;$H.ExpressionStatement=Qt;$H.Import=Jt;$H.MemberExpression=Bt;$H.MetaProperty=Mt;$H.ModuleExpression=Ft;$H.NewExpression=td;$H.OptionalCallExpression=Wt;$H.OptionalMemberExpression=Xt;$H.ParenthesizedExpression=sd;$H.PrivateName=Kt;$H.SequenceExpression=nd;$H.Super=ed;$H.ThisExpression=od;$H.UnaryExpression=id;$H.UpdateExpression=pd;$H.V8IntrinsicIdentifier=St;$H.YieldExpression=Vt;$H._shouldPrintDecoratorsBeforeExport=ft;var xd=Vf(),md=_G(),{isCallExpression:ld,isLiteral:FH,isMemberExpression:n2,isNewExpression:cd,isPattern:ad}=xd;function id(f){let{operator:G}=f;if(G==="void"||G==="delete"||G==="typeof"||G==="throw")this.word(G),this.space();else this.token(G);this.print(f.argument)}function rd(f){if(f.async)this.word("async",!0),this.space();this.word("do"),this.space(),this.print(f.body)}function sd(f){this.tokenChar(40);let G=this.enterDelimited();this.print(f.expression),G(),this.rightParens(f)}function pd(f){if(f.prefix)this.token(f.operator),this.print(f.argument);else this.print(f.argument,!0),this.token(f.operator)}function dd(f){this.print(f.test),this.space(),this.tokenChar(63),this.space(),this.print(f.consequent),this.space(),this.tokenChar(58),this.space(),this.print(f.alternate)}function td(f,G){if(this.word("new"),this.space(),this.print(f.callee),this.format.minified&&f.arguments.length===0&&!f.optional&&!ld(G,{callee:f})&&!n2(G)&&!cd(G))return;if(this.print(f.typeArguments),this.print(f.typeParameters),f.optional)this.token("?.");if(f.arguments.length===0&&this.tokenMap&&!this.tokenMap.endMatches(f,")"))return;this.tokenChar(40);let X=this.enterDelimited();this.printList(f.arguments,this.shouldPrintTrailingComma(")")),X(),this.rightParens(f)}function nd(f){this.printList(f.expressions)}function od(){this.word("this")}function ed(){this.word("super")}function ft(f){if(typeof this.format.decoratorsBeforeExport==="boolean")return this.format.decoratorsBeforeExport;return typeof f.start==="number"&&f.start===f.declaration.start}function Gt(f){this.tokenChar(64),this.print(f.expression),this.newline()}function Xt(f){let{computed:G}=f,{optional:X,property:W}=f;if(this.print(f.object),!G&&n2(W))throw new TypeError("Got a MemberExpression for MemberExpression property");if(FH(W)&&typeof W.value==="number")G=!0;if(X)this.token("?.");if(G)this.tokenChar(91),this.print(W),this.tokenChar(93);else{if(!X)this.tokenChar(46);this.print(W)}}function Wt(f){if(this.print(f.callee),this.print(f.typeParameters),f.optional)this.token("?.");this.print(f.typeArguments),this.tokenChar(40);let G=this.enterDelimited();this.printList(f.arguments),G(),this.rightParens(f)}function Rt(f){this.print(f.callee),this.print(f.typeArguments),this.print(f.typeParameters),this.tokenChar(40);let G=this.enterDelimited();this.printList(f.arguments,this.shouldPrintTrailingComma(")")),G(),this.rightParens(f)}function Jt(){this.word("import")}function Ut(f){if(this.word("await"),f.argument)this.space(),this.printTerminatorless(f.argument)}function Vt(f){if(this.word("yield",!0),f.delegate){if(this.tokenChar(42),f.argument)this.space(),this.print(f.argument)}else if(f.argument)this.space(),this.printTerminatorless(f.argument)}function Ht(){this.semicolon(!0)}function Qt(f){this.tokenContext|=md.TokenContext.expressionStatement,this.print(f.expression),this.semicolon()}function Zt(f){if(this.print(f.left),f.left.type==="Identifier"||ad(f.left)){if(f.left.optional)this.tokenChar(63);this.print(f.left.typeAnnotation)}this.space(),this.tokenChar(61),this.space(),this.print(f.right)}function Yt(f){if(this.print(f.left),this.space(),f.operator==="in"||f.operator==="instanceof")this.word(f.operator);else this.token(f.operator),this._endsWithDiv=f.operator==="/";this.space(),this.print(f.right)}function zt(f){this.print(f.object),this.token("::"),this.print(f.callee)}function Bt(f){if(this.print(f.object),!f.computed&&n2(f.property))throw new TypeError("Got a MemberExpression for MemberExpression property");let G=f.computed;if(FH(f.property)&&typeof f.property.value==="number")G=!0;if(G){let X=this.enterDelimited();this.tokenChar(91),this.print(f.property),this.tokenChar(93),X()}else this.tokenChar(46),this.print(f.property)}function Mt(f){this.print(f.meta),this.tokenChar(46),this.print(f.property)}function Kt(f){this.tokenChar(35),this.print(f.id)}function St(f){this.tokenChar(37),this.word(f.name)}function Ft(f){this.word("module",!0),this.space(),this.tokenChar(123),this.indent();let{body:G}=f;if(G.body.length||G.directives.length)this.newline();this.print(G),this.dedent(),this.rightBrace(f)}});var DH=P((jH)=>{Object.defineProperty(jH,"__esModule",{value:!0});jH.BreakStatement=fn;jH.CatchClause=Un;jH.ContinueStatement=Gn;jH.DebuggerStatement=Qn;jH.DoWhileStatement=et;jH.ForOfStatement=jH.ForInStatement=void 0;jH.ForStatement=nt;jH.IfStatement=tt;jH.LabeledStatement=Rn;jH.ReturnStatement=Xn;jH.SwitchCase=Hn;jH.SwitchStatement=Vn;jH.ThrowStatement=Wn;jH.TryStatement=Jn;jH.VariableDeclaration=Zn;jH.VariableDeclarator=Yn;jH.WhileStatement=ot;jH.WithStatement=dt;var it=Vf(),o2=_G(),{isFor:qH,isForStatement:rt,isIfStatement:st,isStatement:pt}=it;function dt(f){this.word("with"),this.space(),this.tokenChar(40),this.print(f.object),this.tokenChar(41),this.printBlock(f)}function tt(f){this.word("if"),this.space(),this.tokenChar(40),this.print(f.test),this.tokenChar(41),this.space();let G=f.alternate&&st(AH(f.consequent));if(G)this.tokenChar(123),this.newline(),this.indent();if(this.printAndIndentOnComments(f.consequent),G)this.dedent(),this.newline(),this.tokenChar(125);if(f.alternate){if(this.endsWith(125))this.space();this.word("else"),this.space(),this.printAndIndentOnComments(f.alternate)}}function AH(f){let{body:G}=f;if(pt(G)===!1)return f;return AH(G)}function nt(f){this.word("for"),this.space(),this.tokenChar(40);{let G=this.enterForStatementInit();this.tokenContext|=o2.TokenContext.forHead,this.print(f.init),G()}if(this.tokenChar(59),f.test)this.space(),this.print(f.test);if(this.token(";",!1,1),f.update)this.space(),this.print(f.update);this.tokenChar(41),this.printBlock(f)}function ot(f){this.word("while"),this.space(),this.tokenChar(40),this.print(f.test),this.tokenChar(41),this.printBlock(f)}function OH(f){this.word("for"),this.space();let G=f.type==="ForOfStatement";if(G&&f.await)this.word("await"),this.space();this.noIndentInnerCommentsHere(),this.tokenChar(40);{let X=G?null:this.enterForStatementInit();this.tokenContext|=G?o2.TokenContext.forOfHead:o2.TokenContext.forInHead,this.print(f.left),X==null||X()}this.space(),this.word(G?"of":"in"),this.space(),this.print(f.right),this.tokenChar(41),this.printBlock(f)}var AKf=jH.ForInStatement=OH,OKf=jH.ForOfStatement=OH;function et(f){this.word("do"),this.space(),this.print(f.body),this.space(),this.word("while"),this.space(),this.tokenChar(40),this.print(f.test),this.tokenChar(41),this.semicolon()}function rX(f,G){if(G)f.space(),f.printTerminatorless(G);f.semicolon()}function fn(f){this.word("break"),rX(this,f.label)}function Gn(f){this.word("continue"),rX(this,f.label)}function Xn(f){this.word("return"),rX(this,f.argument)}function Wn(f){this.word("throw"),rX(this,f.argument)}function Rn(f){this.print(f.label),this.tokenChar(58),this.space(),this.print(f.body)}function Jn(f){if(this.word("try"),this.space(),this.print(f.block),this.space(),f.handlers)this.print(f.handlers[0]);else this.print(f.handler);if(f.finalizer)this.space(),this.word("finally"),this.space(),this.print(f.finalizer)}function Un(f){if(this.word("catch"),this.space(),f.param)this.tokenChar(40),this.print(f.param),this.print(f.param.typeAnnotation),this.tokenChar(41),this.space();this.print(f.body)}function Vn(f){this.word("switch"),this.space(),this.tokenChar(40),this.print(f.discriminant),this.tokenChar(41),this.space(),this.tokenChar(123),this.printSequence(f.cases,!0,void 0,function G(X,W){if(!X&&f.cases[f.cases.length-1]===W)return-1}),this.rightBrace(f)}function Hn(f){if(f.test)this.word("case"),this.space(),this.print(f.test),this.tokenChar(58);else this.word("default"),this.tokenChar(58);if(f.consequent.length)this.newline(),this.printSequence(f.consequent,!0)}function Qn(){this.word("debugger"),this.semicolon()}function Zn(f,G){if(f.declare)this.word("declare"),this.space();let{kind:X}=f;if(X==="await using")this.word("await"),this.space(),this.word("using",!0);else this.word(X,X==="using");this.space();let W=!1;if(!qH(G)){for(let R of f.declarations)if(R.init)W=!0}if(this.printList(f.declarations,void 0,void 0,f.declarations.length>1,W?function(R){this.token(",",!1,R),this.newline()}:void 0),qH(G)){if(rt(G)){if(G.init===f)return}else if(G.left===f)return}this.semicolon()}function Yn(f){if(this.print(f.id),f.definite)this.tokenChar(33);if(this.print(f.id.typeAnnotation),f.init)this.space(),this.tokenChar(61),this.space(),this.print(f.init)}});var TH=P((IH)=>{Object.defineProperty(IH,"__esModule",{value:!0});IH.ClassAccessorProperty=un;IH.ClassBody=vn;IH.ClassExpression=IH.ClassDeclaration=kn;IH.ClassMethod=yn;IH.ClassPrivateMethod=xn;IH.ClassPrivateProperty=hn;IH.ClassProperty=_n;IH.StaticBlock=ln;IH._classMethodHead=mn;var bn=Vf(),{isExportDefaultDeclaration:En,isExportNamedDeclaration:wn}=bn;function kn(f,G){if(!(En(G)||wn(G))||!this._shouldPrintDecoratorsBeforeExport(G))this.printJoin(f.decorators);if(f.declare)this.word("declare"),this.space();if(f.abstract)this.word("abstract"),this.space();if(this.word("class"),f.id)this.space(),this.print(f.id);if(this.print(f.typeParameters),f.superClass)this.space(),this.word("extends"),this.space(),this.print(f.superClass),this.print(f.superTypeParameters);if(f.implements)this.space(),this.word("implements"),this.space(),this.printList(f.implements);this.space(),this.print(f.body)}function vn(f){if(this.tokenChar(123),f.body.length===0)this.tokenChar(125);else{this.newline();let G=gn(this,f);G==null||G(-1);let X=this.enterDelimited();if(this.printJoin(f.body,!0,!0,G,!0),X(),!this.endsWith(10))this.newline();this.rightBrace(f)}}function gn(f,G){if(!f.tokenMap||G.start==null||G.end==null)return null;let X=f.tokenMap.getIndexes(G);if(!X)return null;let W=1,R=0,J=0,U=()=>{while(J<G.body.length&&G.body[J].start==null)J++};return U(),(V)=>{if(J<=V)J=V+1,U();let H=J===G.body.length?G.end:G.body[J].start,Q;while(W<X.length&&f.tokenMap.matchesOriginal(Q=f._tokens[X[W]],";")&&Q.start<H)f.token(";",void 0,R++),W++}}function _n(f){if(this.printJoin(f.decorators),!f.static&&!this.format.preserveFormat){var G;let X=(G=f.key.loc)==null||(G=G.end)==null?void 0:G.line;if(X)this.catchUp(X)}if(this.tsPrintClassMemberModifiers(f),f.computed)this.tokenChar(91),this.print(f.key),this.tokenChar(93);else this._variance(f),this.print(f.key);if(f.optional)this.tokenChar(63);if(f.definite)this.tokenChar(33);if(this.print(f.typeAnnotation),f.value)this.space(),this.tokenChar(61),this.space(),this.print(f.value);this.semicolon()}function un(f){var G;this.printJoin(f.decorators);let X=(G=f.key.loc)==null||(G=G.end)==null?void 0:G.line;if(X)this.catchUp(X);if(this.tsPrintClassMemberModifiers(f),this.word("accessor",!0),this.space(),f.computed)this.tokenChar(91),this.print(f.key),this.tokenChar(93);else this._variance(f),this.print(f.key);if(f.optional)this.tokenChar(63);if(f.definite)this.tokenChar(33);if(this.print(f.typeAnnotation),f.value)this.space(),this.tokenChar(61),this.space(),this.print(f.value);this.semicolon()}function hn(f){if(this.printJoin(f.decorators),this.tsPrintClassMemberModifiers(f),this.print(f.key),f.optional)this.tokenChar(63);if(f.definite)this.tokenChar(33);if(this.print(f.typeAnnotation),f.value)this.space(),this.tokenChar(61),this.space(),this.print(f.value);this.semicolon()}function yn(f){this._classMethodHead(f),this.space(),this.print(f.body)}function xn(f){this._classMethodHead(f),this.space(),this.print(f.body)}function mn(f){if(this.printJoin(f.decorators),!this.format.preserveFormat){var G;let X=(G=f.key.loc)==null||(G=G.end)==null?void 0:G.line;if(X)this.catchUp(X)}this.tsPrintClassMemberModifiers(f),this._methodHead(f)}function ln(f){if(this.word("static"),this.space(),this.tokenChar(123),f.body.length===0)this.tokenChar(125);else this.newline(),this.printSequence(f.body,!0),this.rightBrace(f)}});var LH=P((NH)=>{Object.defineProperty(NH,"__esModule",{value:!0});NH.ArrowFunctionExpression=Qo;NH.FunctionDeclaration=NH.FunctionExpression=Ho;NH._functionHead=Vo;NH._methodHead=Jo;NH._param=Ro;NH._parameters=Wo;NH._params=Xo;NH._predicate=Uo;NH._shouldPrintArrowParamsParens=Zo;var en=Vf(),fo=_G(),{isIdentifier:Go}=en;function Xo(f,G,X){this.print(f.typeParameters);let W=Yo.call(this,G,X);if(W)this.sourceIdentifierName(W.name,W.pos);this.tokenChar(40),this._parameters(f.params,")");let R=f.type==="ArrowFunctionExpression";this.print(f.returnType,R),this._noLineTerminator=R}function Wo(f,G){let X=this.enterDelimited(),W=this.shouldPrintTrailingComma(G),R=f.length;for(let J=0;J<R;J++)if(this._param(f[J]),W||J<R-1)this.token(",",null,J),this.space();this.token(G),X()}function Ro(f){if(this.printJoin(f.decorators),this.print(f),f.optional)this.tokenChar(63);this.print(f.typeAnnotation)}function Jo(f){let{kind:G,key:X}=f;if(G==="get"||G==="set")this.word(G),this.space();if(f.async)this.word("async",!0),this.space();if(G==="method"||G==="init"){if(f.generator)this.tokenChar(42)}if(f.computed)this.tokenChar(91),this.print(X),this.tokenChar(93);else this.print(X);if(f.optional)this.tokenChar(63);this._params(f,f.computed&&f.key.type!=="StringLiteral"?void 0:f.key,void 0)}function Uo(f,G){if(f.predicate){if(!f.returnType)this.tokenChar(58);this.space(),this.print(f.predicate,G)}}function Vo(f,G){if(f.async){if(this.word("async"),!this.format.preserveFormat)this._endsWithInnerRaw=!1;this.space()}if(this.word("function"),f.generator){if(!this.format.preserveFormat)this._endsWithInnerRaw=!1;this.tokenChar(42)}if(this.space(),f.id)this.print(f.id);if(this._params(f,f.id,G),f.type!=="TSDeclareFunction")this._predicate(f)}function Ho(f,G){this._functionHead(f,G),this.space(),this.print(f.body)}function Qo(f,G){if(f.async)this.word("async",!0),this.space();if(this._shouldPrintArrowParamsParens(f))this._params(f,void 0,G);else this.print(f.params[0],!0);this._predicate(f,!0),this.space(),this.printInnerComments(),this.token("=>"),this.space(),this.tokenContext|=fo.TokenContext.arrowBody,this.print(f.body)}function Zo(f){var G,X;if(f.params.length!==1)return!0;if(f.typeParameters||f.returnType||f.predicate)return!0;let W=f.params[0];if(!Go(W)||W.typeAnnotation||W.optional||(G=W.leadingComments)!=null&&G.length||(X=W.trailingComments)!=null&&X.length)return!0;if(this.tokenMap){if(f.loc==null)return!0;if(this.tokenMap.findMatching(f,"(")!==null)return!0;let R=this.tokenMap.findMatching(f,"=>");if((R==null?void 0:R.loc)==null)return!0;return R.loc.start.line!==f.loc.start.line}if(this.format.retainLines)return!0;return!1}function Yo(f,G){let X=f;if(!X&&G){let H=G.type;if(H==="VariableDeclarator")X=G.id;else if(H==="AssignmentExpression"||H==="AssignmentPattern")X=G.left;else if(H==="ObjectProperty"||H==="ClassProperty"){if(!G.computed||G.key.type==="StringLiteral")X=G.key}else if(H==="ClassPrivateProperty"||H==="ClassAccessorProperty")X=G.key}if(!X)return;let W;if(X.type==="Identifier"){var R,J;W={pos:(R=X.loc)==null?void 0:R.start,name:((J=X.loc)==null?void 0:J.identifierName)||X.name}}else if(X.type==="PrivateName"){var U;W={pos:(U=X.loc)==null?void 0:U.start,name:"#"+X.id.name}}else if(X.type==="StringLiteral"){var V;W={pos:(V=X.loc)==null?void 0:V.start,name:X.value}}return W}});var e2=P((kH)=>{Object.defineProperty(kH,"__esModule",{value:!0});kH.ExportAllDeclaration=vo;kH.ExportDefaultDeclaration=_o;kH.ExportDefaultSpecifier=bo;kH.ExportNamedDeclaration=go;kH.ExportNamespaceSpecifier=wo;kH.ExportSpecifier=Eo;kH.ImportAttribute=ho;kH.ImportDeclaration=uo;kH.ImportDefaultSpecifier=Lo;kH.ImportExpression=xo;kH.ImportNamespaceSpecifier=yo;kH.ImportSpecifier=No;kH._printAttributes=ko;var Ao=Vf(),Oo=_G(),{isClassDeclaration:jo,isExportDefaultSpecifier:Po,isExportNamespaceSpecifier:Do,isImportDefaultSpecifier:Io,isImportNamespaceSpecifier:To,isStatement:EH}=Ao;function No(f){if(f.importKind==="type"||f.importKind==="typeof")this.word(f.importKind),this.space();if(this.print(f.imported),f.local&&f.local.name!==f.imported.name)this.space(),this.word("as"),this.space(),this.print(f.local)}function Lo(f){this.print(f.local)}function bo(f){this.print(f.exported)}function Eo(f){if(f.exportKind==="type")this.word("type"),this.space();if(this.print(f.local),f.exported&&f.local.name!==f.exported.name)this.space(),this.word("as"),this.space(),this.print(f.exported)}function wo(f){this.tokenChar(42),this.space(),this.word("as"),this.space(),this.print(f.exported)}var bH=!1;function ko(f,G){let{importAttributesKeyword:X}=this.format,{attributes:W,assertions:R}=f;if(W&&!X&&!bH)bH=!0,console.warn('You are using import attributes, without specifying the desired output syntax.\nPlease specify the "importAttributesKeyword" generator option, whose value can be one of:\n - "with" : `import { a } from "b" with { type: "json" };`\n - "assert" : `import { a } from "b" assert { type: "json" };`\n - "with-legacy" : `import { a } from "b" with type: "json";`\n');let J=X==="assert"||!X&&R;if(this.word(J?"assert":"with"),this.space(),!J&&X!=="with"){this.printList(W||R);return}let U=G?1:0;this.token("{",null,U),this.space(),this.printList(W||R,this.shouldPrintTrailingComma("}")),this.space(),this.token("}",null,U)}function vo(f){var G,X;if(this.word("export"),this.space(),f.exportKind==="type")this.word("type"),this.space();if(this.tokenChar(42),this.space(),this.word("from"),this.space(),(G=f.attributes)!=null&&G.length||(X=f.assertions)!=null&&X.length)this.print(f.source,!0),this.space(),this._printAttributes(f,!1);else this.print(f.source);this.semicolon()}function wH(f,G){if(jo(G.declaration)&&f._shouldPrintDecoratorsBeforeExport(G))f.printJoin(G.declaration.decorators)}function go(f){if(wH(this,f),this.word("export"),this.space(),f.declaration){let W=f.declaration;if(this.print(W),!EH(W))this.semicolon()}else{if(f.exportKind==="type")this.word("type"),this.space();let W=f.specifiers.slice(0),R=!1;for(;;){let U=W[0];if(Po(U)||Do(U)){if(R=!0,this.print(W.shift()),W.length)this.tokenChar(44),this.space()}else break}let J=!1;if(W.length||!W.length&&!R){if(J=!0,this.tokenChar(123),W.length)this.space(),this.printList(W,this.shouldPrintTrailingComma("}")),this.space();this.tokenChar(125)}if(f.source){var G,X;if(this.space(),this.word("from"),this.space(),(G=f.attributes)!=null&&G.length||(X=f.assertions)!=null&&X.length)this.print(f.source,!0),this.space(),this._printAttributes(f,J);else this.print(f.source)}this.semicolon()}}function _o(f){wH(this,f),this.word("export"),this.noIndentInnerCommentsHere(),this.space(),this.word("default"),this.space(),this.tokenContext|=Oo.TokenContext.exportDefault;let G=f.declaration;if(this.print(G),!EH(G))this.semicolon()}function uo(f){var G,X;this.word("import"),this.space();let W=f.importKind==="type"||f.importKind==="typeof";if(W)this.noIndentInnerCommentsHere(),this.word(f.importKind),this.space();else if(f.module)this.noIndentInnerCommentsHere(),this.word("module"),this.space();else if(f.phase)this.noIndentInnerCommentsHere(),this.word(f.phase),this.space();let R=f.specifiers.slice(0),J=!!R.length;while(J){let V=R[0];if(Io(V)||To(V)){if(this.print(R.shift()),R.length)this.tokenChar(44),this.space()}else break}let U=!1;if(R.length)U=!0,this.tokenChar(123),this.space(),this.printList(R,this.shouldPrintTrailingComma("}")),this.space(),this.tokenChar(125);else if(W&&!J)U=!0,this.tokenChar(123),this.tokenChar(125);if(J||W)this.space(),this.word("from"),this.space();if((G=f.attributes)!=null&&G.length||(X=f.assertions)!=null&&X.length)this.print(f.source,!0),this.space(),this._printAttributes(f,U);else this.print(f.source);this.semicolon()}function ho(f){this.print(f.key),this.tokenChar(58),this.space(),this.print(f.value)}function yo(f){this.tokenChar(42),this.space(),this.word("as"),this.space(),this.print(f.local)}function xo(f){if(this.word("import"),f.phase)this.tokenChar(46),this.word(f.phase);if(this.tokenChar(40),this.print(f.source),f.options!=null)this.tokenChar(44),this.space(),this.print(f.options);this.tokenChar(41)}});var uH=P((LKf,_H)=>{var vH={},Ge=vH.hasOwnProperty,gH=(f,G)=>{for(let X in f)if(Ge.call(f,X))G(X,f[X])},Xe=(f,G)=>{if(!G)return f;return gH(G,(X,W)=>{f[X]=W}),f},We=(f,G)=>{let X=f.length,W=-1;while(++W<X)G(f[W])},sX=(f)=>{return"\\u"+("0000"+f).slice(-4)},d1=(f,G)=>{let X=f.toString(16);if(G)return X;return X.toUpperCase()},t1=vH.toString,Re=Array.isArray,Je=(f)=>{return typeof Buffer==="function"&&Buffer.isBuffer(f)},Ue=(f)=>{return t1.call(f)=="[object Object]"},Ve=(f)=>{return typeof f=="string"||t1.call(f)=="[object String]"},He=(f)=>{return typeof f=="number"||t1.call(f)=="[object Number]"},fR=(f)=>{return typeof f=="bigint"},Qe=(f)=>{return typeof f=="function"},Ze=(f)=>{return t1.call(f)=="[object Map]"},Ye=(f)=>{return t1.call(f)=="[object Set]"},ze={"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t"},Be=/[\\\b\f\n\r\t]/,Me=/[0-9]/,Ke=/[\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,Se=/([\uD800-\uDBFF][\uDC00-\uDFFF])|([\uD800-\uDFFF])|(['"`])|[^]/g,Fe=/([\uD800-\uDBFF][\uDC00-\uDFFF])|([\uD800-\uDFFF])|(['"`])|[^ !#-&\(-\[\]-_a-~]/g,uG=(f,G)=>{let X=()=>{Q=H,++G.indentLevel,H=G.indent.repeat(G.indentLevel)},W={escapeEverything:!1,minimal:!1,isScriptContext:!1,quotes:"single",wrap:!1,es6:!1,json:!1,compact:!0,lowercaseHex:!1,numbers:"decimal",indent:"\t",indentLevel:0,__inline1__:!1,__inline2__:!1},R=G&&G.json;if(R)W.quotes="double",W.wrap=!0;if(G=Xe(W,G),G.quotes!="single"&&G.quotes!="double"&&G.quotes!="backtick")G.quotes="single";let J=G.quotes=="double"?'"':G.quotes=="backtick"?"`":"'",U=G.compact,V=G.lowercaseHex,H=G.indent.repeat(G.indentLevel),Q="",Y=G.__inline1__,F=G.__inline2__,q=U?"":`
|
|
13
|
-
`,A,j=!0,b=G.numbers=="binary",I=G.numbers=="octal",L=G.numbers=="decimal",E=G.numbers=="hexadecimal";if(R&&f&&Qe(f.toJSON))f=f.toJSON();if(!Ve(f)){if(Ze(f)){if(f.size==0)return"new Map()";if(!U)G.__inline1__=!0,G.__inline2__=!1;return"new Map("+uG(Array.from(f),G)+")"}if(Ye(f)){if(f.size==0)return"new Set()";return"new Set("+uG(Array.from(f),G)+")"}if(Je(f)){if(f.length==0)return"Buffer.from([])";return"Buffer.from("+uG(Array.from(f),G)+")"}if(Re(f)){if(A=[],G.wrap=!0,Y)G.__inline1__=!1,G.__inline2__=!0;if(!F)X();if(We(f,(s)=>{if(j=!1,F)G.__inline2__=!1;A.push((U||F?"":H)+uG(s,G))}),j)return"[]";if(F)return"["+A.join(", ")+"]";return"["+q+A.join(","+q)+q+(U?"":Q)+"]"}else if(He(f)||fR(f)){if(R)return JSON.stringify(Number(f));let s;if(L)s=String(f);else if(E){let Wf=f.toString(16);if(!V)Wf=Wf.toUpperCase();s="0x"+Wf}else if(b)s="0b"+f.toString(2);else if(I)s="0o"+f.toString(8);if(fR(f))return s+"n";return s}else if(fR(f)){if(R)return JSON.stringify(Number(f));return f+"n"}else if(!Ue(f)){if(R)return JSON.stringify(f)||"null";return String(f)}else{if(A=[],G.wrap=!0,X(),gH(f,(s,Wf)=>{j=!1,A.push((U?"":H)+uG(s,G)+":"+(U?"":" ")+uG(Wf,G))}),j)return"{}";return"{"+q+A.join(","+q)+q+(U?"":Q)+"}"}}let Xf=G.escapeEverything?Se:Fe;if(A=f.replace(Xf,(s,Wf,Kf,bf,wf,y)=>{if(Wf){if(G.minimal)return Wf;let N=Wf.charCodeAt(0),l=Wf.charCodeAt(1);if(G.es6){let Jf=(N-55296)*1024+l-56320+65536;return"\\u{"+d1(Jf,V)+"}"}return sX(d1(N,V))+sX(d1(l,V))}if(Kf)return sX(d1(Kf.charCodeAt(0),V));if(s=="\x00"&&!R&&!Me.test(y.charAt(wf+1)))return"\\0";if(bf){if(bf==J||G.escapeEverything)return"\\"+bf;return bf}if(Be.test(s))return ze[s];if(G.minimal&&!Ke.test(s))return s;let x=d1(s.charCodeAt(0),V);if(R||x.length>2)return sX(x);return"\\x"+("00"+x).slice(-2)}),J=="`")A=A.replace(/\$\{/g,"\\${");if(G.isScriptContext)A=A.replace(/<\/(script|style)/gi,"<\\/$1").replace(/<!--/g,R?"\\u003C!--":"\\x3C!--");if(G.wrap)A=J+A+J;return A};uG.version="3.0.2";_H.exports=uG});var XR=P((mH)=>{Object.defineProperty(mH,"__esModule",{value:!0});mH.ArgumentPlaceholder=Oe;mH.ArrayPattern=mH.ArrayExpression=Te;mH.BigIntLiteral=ge;mH.BooleanLiteral=Ee;mH.Identifier=Ae;mH.NullLiteral=we;mH.NumericLiteral=ke;mH.ObjectPattern=mH.ObjectExpression=Pe;mH.ObjectMethod=De;mH.ObjectProperty=Ie;mH.PipelineBareFunction=he;mH.PipelinePrimaryTopicReference=ye;mH.PipelineTopicExpression=ue;mH.RecordExpression=Ne;mH.RegExpLiteral=be;mH.SpreadElement=mH.RestElement=je;mH.StringLiteral=ve;mH.TopicReference=_e;mH.TupleExpression=Le;mH._getRawIdentifier=qe;var $e=Vf(),xH=uH(),{isAssignmentPattern:Ce,isIdentifier:GR}=$e,hH=null,pX="";function qe(f){if(f===hH)return pX;hH=f;let{name:G}=f,X=this.tokenMap.find(f,(W)=>W.value===G);if(X)return pX=this._originalCode.slice(X.start,X.end),pX;return pX=f.name}function Ae(f){var G;this.sourceIdentifierName(((G=f.loc)==null?void 0:G.identifierName)||f.name),this.word(this.tokenMap?this._getRawIdentifier(f):f.name)}function Oe(){this.tokenChar(63)}function je(f){this.token("..."),this.print(f.argument)}function Pe(f){let G=f.properties;if(this.tokenChar(123),G.length){let X=this.enterDelimited();this.space(),this.printList(G,this.shouldPrintTrailingComma("}"),!0,!0),this.space(),X()}this.sourceWithOffset("end",f.loc,-1),this.tokenChar(125)}function De(f){this.printJoin(f.decorators),this._methodHead(f),this.space(),this.print(f.body)}function Ie(f){if(this.printJoin(f.decorators),f.computed)this.tokenChar(91),this.print(f.key),this.tokenChar(93);else{if(Ce(f.value)&&GR(f.key)&&f.key.name===f.value.left.name){this.print(f.value);return}if(this.print(f.key),f.shorthand&&GR(f.key)&&GR(f.value)&&f.key.name===f.value.name)return}this.tokenChar(58),this.space(),this.print(f.value)}function Te(f){let G=f.elements,X=G.length;this.tokenChar(91);let W=this.enterDelimited();for(let R=0;R<G.length;R++){let J=G[R];if(J){if(R>0)this.space();if(this.print(J),R<X-1||this.shouldPrintTrailingComma("]"))this.token(",",!1,R)}else this.token(",",!1,R)}W(),this.tokenChar(93)}function Ne(f){let G=f.properties,X,W;if(this.format.recordAndTupleSyntaxType==="bar")X="{|",W="|}";else if(this.format.recordAndTupleSyntaxType!=="hash"&&this.format.recordAndTupleSyntaxType!=null)throw new Error(`The "recordAndTupleSyntaxType" generator option must be "bar" or "hash" (${JSON.stringify(this.format.recordAndTupleSyntaxType)} received).`);else X="#{",W="}";if(this.token(X),G.length)this.space(),this.printList(G,this.shouldPrintTrailingComma(W),!0,!0),this.space();this.token(W)}function Le(f){let G=f.elements,X=G.length,W,R;if(this.format.recordAndTupleSyntaxType==="bar")W="[|",R="|]";else if(this.format.recordAndTupleSyntaxType==="hash")W="#[",R="]";else throw new Error(`${this.format.recordAndTupleSyntaxType} is not a valid recordAndTuple syntax type`);this.token(W);for(let J=0;J<G.length;J++){let U=G[J];if(U){if(J>0)this.space();if(this.print(U),J<X-1||this.shouldPrintTrailingComma(R))this.token(",",!1,J)}}this.token(R)}function be(f){this.word(`/${f.pattern}/${f.flags}`)}function Ee(f){this.word(f.value?"true":"false")}function we(){this.word("null")}function ke(f){let G=this.getPossibleRaw(f),X=this.format.jsescOption,W=f.value,R=W+"";if(X.numbers)this.number(xH(W,X),W);else if(G==null)this.number(R,W);else if(this.format.minified)this.number(G.length<R.length?G:R,W);else this.number(G,W)}function ve(f){let G=this.getPossibleRaw(f);if(!this.format.minified&&G!==void 0){this.token(G);return}let X=xH(f.value,this.format.jsescOption);this.token(X)}function ge(f){let G=this.getPossibleRaw(f);if(!this.format.minified&&G!==void 0){this.word(G);return}this.word(f.value+"n")}var yH=new Set(["^^","@@","^","%","#"]);function _e(){let{topicToken:f}=this.format;if(yH.has(f))this.token(f);else{let G=JSON.stringify(f),X=Array.from(yH,(W)=>JSON.stringify(W));throw new Error(`The "topicToken" generator option must be one of ${X.join(", ")} (${G} received instead).`)}}function ue(f){this.print(f.expression)}function he(f){this.print(f.callee)}function ye(){this.tokenChar(35)}});var cH=P((oX)=>{Object.defineProperty(oX,"__esModule",{value:!0});oX.AnyTypeAnnotation=Zff;oX.ArrayTypeAnnotation=Yff;oX.BooleanLiteralTypeAnnotation=Bff;oX.BooleanTypeAnnotation=zff;oX.DeclareClass=Kff;oX.DeclareExportAllDeclaration=Iff;oX.DeclareExportDeclaration=Dff;oX.DeclareFunction=Sff;oX.DeclareInterface=Cff;oX.DeclareModule=qff;oX.DeclareModuleExports=Aff;oX.DeclareOpaqueType=jff;oX.DeclareTypeAlias=Off;oX.DeclareVariable=Pff;oX.DeclaredPredicate=$ff;oX.EmptyTypeAnnotation=pff;oX.EnumBooleanBody=Nff;oX.EnumBooleanMember=kff;oX.EnumDeclaration=Tff;oX.EnumDefaultedMember=wff;oX.EnumNumberBody=Lff;oX.EnumNumberMember=vff;oX.EnumStringBody=bff;oX.EnumStringMember=gff;oX.EnumSymbolBody=Eff;oX.ExistsTypeAnnotation=uff;oX.FunctionTypeAnnotation=hff;oX.FunctionTypeParam=yff;oX.IndexedAccessType=CGf;oX.InferredPredicate=Fff;oX.InterfaceDeclaration=cff;oX.GenericTypeAnnotation=oX.ClassImplements=oX.InterfaceExtends=xff;oX.InterfaceTypeAnnotation=iff;oX.IntersectionTypeAnnotation=rff;oX.MixedTypeAnnotation=sff;oX.NullLiteralTypeAnnotation=Mff;oX.NullableTypeAnnotation=dff;Object.defineProperty(oX,"NumberLiteralTypeAnnotation",{enumerable:!0,get:function(){return lH.NumericLiteral}});oX.NumberTypeAnnotation=tff;oX.ObjectTypeAnnotation=UGf;oX.ObjectTypeCallProperty=HGf;oX.ObjectTypeIndexer=QGf;oX.ObjectTypeInternalSlot=VGf;oX.ObjectTypeProperty=ZGf;oX.ObjectTypeSpreadProperty=YGf;oX.OpaqueType=JGf;oX.OptionalIndexedAccessType=qGf;oX.QualifiedTypeIdentifier=zGf;Object.defineProperty(oX,"StringLiteralTypeAnnotation",{enumerable:!0,get:function(){return lH.StringLiteral}});oX.StringTypeAnnotation=nff;oX.SymbolTypeAnnotation=BGf;oX.ThisTypeAnnotation=off;oX.TupleTypeAnnotation=eff;oX.TypeAlias=GGf;oX.TypeAnnotation=XGf;oX.TypeCastExpression=SGf;oX.TypeParameter=RGf;oX.TypeParameterDeclaration=oX.TypeParameterInstantiation=WGf;oX.TypeofTypeAnnotation=fGf;oX.UnionTypeAnnotation=KGf;oX.Variance=FGf;oX.VoidTypeAnnotation=$Gf;oX._interfaceish=mff;oX._variance=lff;var Uff=Vf(),Vff=e2(),Hff=_G(),lH=XR(),{isDeclareExportDeclaration:dX,isStatement:Qff}=Uff;function Zff(){this.word("any")}function Yff(f){this.print(f.elementType,!0),this.tokenChar(91),this.tokenChar(93)}function zff(){this.word("boolean")}function Bff(f){this.word(f.value?"true":"false")}function Mff(){this.word("null")}function Kff(f,G){if(!dX(G))this.word("declare"),this.space();this.word("class"),this.space(),this._interfaceish(f)}function Sff(f,G){if(!dX(G))this.word("declare"),this.space();if(this.word("function"),this.space(),this.print(f.id),this.print(f.id.typeAnnotation.typeAnnotation),f.predicate)this.space(),this.print(f.predicate);this.semicolon()}function Fff(){this.tokenChar(37),this.word("checks")}function $ff(f){this.tokenChar(37),this.word("checks"),this.tokenChar(40),this.print(f.value),this.tokenChar(41)}function Cff(f){this.word("declare"),this.space(),this.InterfaceDeclaration(f)}function qff(f){this.word("declare"),this.space(),this.word("module"),this.space(),this.print(f.id),this.space(),this.print(f.body)}function Aff(f){this.word("declare"),this.space(),this.word("module"),this.tokenChar(46),this.word("exports"),this.print(f.typeAnnotation)}function Off(f){this.word("declare"),this.space(),this.TypeAlias(f)}function jff(f,G){if(!dX(G))this.word("declare"),this.space();this.OpaqueType(f)}function Pff(f,G){if(!dX(G))this.word("declare"),this.space();this.word("var"),this.space(),this.print(f.id),this.print(f.id.typeAnnotation),this.semicolon()}function Dff(f){if(this.word("declare"),this.space(),this.word("export"),this.space(),f.default)this.word("default"),this.space();_ff.call(this,f)}function Iff(f){this.word("declare"),this.space(),Vff.ExportAllDeclaration.call(this,f)}function Tff(f){let{id:G,body:X}=f;this.word("enum"),this.space(),this.print(G),this.print(X)}function tX(f,G,X){if(X)f.space(),f.word("of"),f.space(),f.word(G);f.space()}function nX(f,G){let{members:X}=G;f.token("{"),f.indent(),f.newline();for(let W of X)f.print(W),f.newline();if(G.hasUnknownMembers)f.token("..."),f.newline();f.dedent(),f.token("}")}function Nff(f){let{explicitType:G}=f;tX(this,"boolean",G),nX(this,f)}function Lff(f){let{explicitType:G}=f;tX(this,"number",G),nX(this,f)}function bff(f){let{explicitType:G}=f;tX(this,"string",G),nX(this,f)}function Eff(f){tX(this,"symbol",!0),nX(this,f)}function wff(f){let{id:G}=f;this.print(G),this.tokenChar(44)}function WR(f,G){f.print(G.id),f.space(),f.token("="),f.space(),f.print(G.init),f.token(",")}function kff(f){WR(this,f)}function vff(f){WR(this,f)}function gff(f){WR(this,f)}function _ff(f){if(f.declaration){let G=f.declaration;if(this.print(G),!Qff(G))this.semicolon()}else{if(this.tokenChar(123),f.specifiers.length)this.space(),this.printList(f.specifiers),this.space();if(this.tokenChar(125),f.source)this.space(),this.word("from"),this.space(),this.print(f.source);this.semicolon()}}function uff(){this.tokenChar(42)}function hff(f,G){if(this.print(f.typeParameters),this.tokenChar(40),f.this){if(this.word("this"),this.tokenChar(58),this.space(),this.print(f.this.typeAnnotation),f.params.length||f.rest)this.tokenChar(44),this.space()}if(this.printList(f.params),f.rest){if(f.params.length)this.tokenChar(44),this.space();this.token("..."),this.print(f.rest)}this.tokenChar(41);let X=G==null?void 0:G.type;if(X!=null&&(X==="ObjectTypeCallProperty"||X==="ObjectTypeInternalSlot"||X==="DeclareFunction"||X==="ObjectTypeProperty"&&G.method))this.tokenChar(58);else this.space(),this.token("=>");this.space(),this.print(f.returnType)}function yff(f){if(this.print(f.name),f.optional)this.tokenChar(63);if(f.name)this.tokenChar(58),this.space();this.print(f.typeAnnotation)}function xff(f){this.print(f.id),this.print(f.typeParameters,!0)}function mff(f){var G;if(this.print(f.id),this.print(f.typeParameters),(G=f.extends)!=null&&G.length)this.space(),this.word("extends"),this.space(),this.printList(f.extends);if(f.type==="DeclareClass"){var X,W;if((X=f.mixins)!=null&&X.length)this.space(),this.word("mixins"),this.space(),this.printList(f.mixins);if((W=f.implements)!=null&&W.length)this.space(),this.word("implements"),this.space(),this.printList(f.implements)}this.space(),this.print(f.body)}function lff(f){var G;let X=(G=f.variance)==null?void 0:G.kind;if(X!=null){if(X==="plus")this.tokenChar(43);else if(X==="minus")this.tokenChar(45)}}function cff(f){this.word("interface"),this.space(),this._interfaceish(f)}function aff(f){this.space(),this.token("&",!1,f),this.space()}function iff(f){var G;if(this.word("interface"),(G=f.extends)!=null&&G.length)this.space(),this.word("extends"),this.space(),this.printList(f.extends);this.space(),this.print(f.body)}function rff(f){this.printJoin(f.types,void 0,void 0,aff)}function sff(){this.word("mixed")}function pff(){this.word("empty")}function dff(f){this.tokenChar(63),this.print(f.typeAnnotation)}function tff(){this.word("number")}function nff(){this.word("string")}function off(){this.word("this")}function eff(f){this.tokenChar(91),this.printList(f.types),this.tokenChar(93)}function fGf(f){this.word("typeof"),this.space(),this.print(f.argument)}function GGf(f){this.word("type"),this.space(),this.print(f.id),this.print(f.typeParameters),this.space(),this.tokenChar(61),this.space(),this.print(f.right),this.semicolon()}function XGf(f,G){if(this.tokenChar(58),this.space(),G.type==="ArrowFunctionExpression")this.tokenContext|=Hff.TokenContext.arrowFlowReturnType;else if(f.optional)this.tokenChar(63);this.print(f.typeAnnotation)}function WGf(f){this.tokenChar(60),this.printList(f.params),this.tokenChar(62)}function RGf(f){if(this._variance(f),this.word(f.name),f.bound)this.print(f.bound);if(f.default)this.space(),this.tokenChar(61),this.space(),this.print(f.default)}function JGf(f){if(this.word("opaque"),this.space(),this.word("type"),this.space(),this.print(f.id),this.print(f.typeParameters),f.supertype)this.tokenChar(58),this.space(),this.print(f.supertype);if(f.impltype)this.space(),this.tokenChar(61),this.space(),this.print(f.impltype);this.semicolon()}function UGf(f){if(f.exact)this.token("{|");else this.tokenChar(123);let G=[...f.properties,...f.callProperties||[],...f.indexers||[],...f.internalSlots||[]];if(G.length)this.newline(),this.space(),this.printJoin(G,!0,!0,void 0,void 0,function X(W){if(W&&!G[0])return 1},()=>{if(G.length!==1||f.inexact)this.tokenChar(44),this.space()}),this.space();if(f.inexact){if(this.indent(),this.token("..."),G.length)this.newline();this.dedent()}if(f.exact)this.token("|}");else this.tokenChar(125)}function VGf(f){if(f.static)this.word("static"),this.space();if(this.tokenChar(91),this.tokenChar(91),this.print(f.id),this.tokenChar(93),this.tokenChar(93),f.optional)this.tokenChar(63);if(!f.method)this.tokenChar(58),this.space();this.print(f.value)}function HGf(f){if(f.static)this.word("static"),this.space();this.print(f.value)}function QGf(f){if(f.static)this.word("static"),this.space();if(this._variance(f),this.tokenChar(91),f.id)this.print(f.id),this.tokenChar(58),this.space();this.print(f.key),this.tokenChar(93),this.tokenChar(58),this.space(),this.print(f.value)}function ZGf(f){if(f.proto)this.word("proto"),this.space();if(f.static)this.word("static"),this.space();if(f.kind==="get"||f.kind==="set")this.word(f.kind),this.space();if(this._variance(f),this.print(f.key),f.optional)this.tokenChar(63);if(!f.method)this.tokenChar(58),this.space();this.print(f.value)}function YGf(f){this.token("..."),this.print(f.argument)}function zGf(f){this.print(f.qualification),this.tokenChar(46),this.print(f.id)}function BGf(){this.word("symbol")}function MGf(f){this.space(),this.token("|",!1,f),this.space()}function KGf(f){this.printJoin(f.types,void 0,void 0,MGf)}function SGf(f){this.tokenChar(40),this.print(f.expression),this.print(f.typeAnnotation),this.tokenChar(41)}function FGf(f){if(f.kind==="plus")this.tokenChar(43);else this.tokenChar(45)}function $Gf(){this.word("void")}function CGf(f){this.print(f.objectType,!0),this.tokenChar(91),this.print(f.indexType),this.tokenChar(93)}function qGf(f){if(this.print(f.objectType),f.optional)this.token("?.");this.tokenChar(91),this.print(f.indexType),this.tokenChar(93)}});var iH=P((aH)=>{Object.defineProperty(aH,"__esModule",{value:!0});aH.BlockStatement=E1f;aH.Directive=w1f;aH.DirectiveLiteral=g1f;aH.File=L1f;aH.InterpreterDirective=_1f;aH.Placeholder=u1f;aH.Program=b1f;function L1f(f){if(f.program)this.print(f.program.interpreter);this.print(f.program)}function b1f(f){var G;this.noIndentInnerCommentsHere(),this.printInnerComments();let X=(G=f.directives)==null?void 0:G.length;if(X){var W;let R=f.body.length?2:1;if(this.printSequence(f.directives,void 0,R),!((W=f.directives[X-1].trailingComments)!=null&&W.length))this.newline(R)}this.printSequence(f.body)}function E1f(f){var G;this.tokenChar(123);let X=this.enterDelimited(),W=(G=f.directives)==null?void 0:G.length;if(W){var R;let J=f.body.length?2:1;if(this.printSequence(f.directives,!0,J),!((R=f.directives[W-1].trailingComments)!=null&&R.length))this.newline(J)}this.printSequence(f.body,!0),X(),this.rightBrace(f)}function w1f(f){this.print(f.value),this.semicolon()}var k1f=/(?:^|[^\\])(?:\\\\)*'/,v1f=/(?:^|[^\\])(?:\\\\)*"/;function g1f(f){let G=this.getPossibleRaw(f);if(!this.format.minified&&G!==void 0){this.token(G);return}let{value:X}=f;if(!v1f.test(X))this.token(`"${X}"`);else if(!k1f.test(X))this.token(`'${X}'`);else throw new Error("Malformed AST: it is not possible to print a directive containing both unescaped single and double quotes.")}function _1f(f){this.token(`#!${f.value}`),this.newline(1,!0)}function u1f(f){if(this.token("%%"),this.print(f.name),this.token("%%"),f.expectedNode==="Statement")this.semicolon()}});var sH=P((rH)=>{Object.defineProperty(rH,"__esModule",{value:!0});rH.JSXAttribute=i1f;rH.JSXClosingElement=XXf;rH.JSXClosingFragment=UXf;rH.JSXElement=e1f;rH.JSXEmptyExpression=WXf;rH.JSXExpressionContainer=t1f;rH.JSXFragment=RXf;rH.JSXIdentifier=r1f;rH.JSXMemberExpression=p1f;rH.JSXNamespacedName=s1f;rH.JSXOpeningElement=GXf;rH.JSXOpeningFragment=JXf;rH.JSXSpreadAttribute=d1f;rH.JSXSpreadChild=n1f;rH.JSXText=o1f;function i1f(f){if(this.print(f.name),f.value)this.tokenChar(61),this.print(f.value)}function r1f(f){this.word(f.name)}function s1f(f){this.print(f.namespace),this.tokenChar(58),this.print(f.name)}function p1f(f){this.print(f.object),this.tokenChar(46),this.print(f.property)}function d1f(f){this.tokenChar(123),this.token("..."),this.print(f.argument),this.rightBrace(f)}function t1f(f){this.tokenChar(123),this.print(f.expression),this.rightBrace(f)}function n1f(f){this.tokenChar(123),this.token("..."),this.print(f.expression),this.rightBrace(f)}function o1f(f){let G=this.getPossibleRaw(f);if(G!==void 0)this.token(G,!0);else this.token(f.value,!0)}function e1f(f){let G=f.openingElement;if(this.print(G),G.selfClosing)return;this.indent();for(let X of f.children)this.print(X);this.dedent(),this.print(f.closingElement)}function fXf(){this.space()}function GXf(f){this.tokenChar(60),this.print(f.name);{if(f.typeArguments)this.print(f.typeArguments);this.print(f.typeParameters)}if(f.attributes.length>0)this.space(),this.printJoin(f.attributes,void 0,void 0,fXf);if(f.selfClosing)this.space(),this.tokenChar(47);this.tokenChar(62)}function XXf(f){this.tokenChar(60),this.tokenChar(47),this.print(f.name),this.tokenChar(62)}function WXf(){this.printInnerComments()}function RXf(f){this.print(f.openingFragment),this.indent();for(let G of f.children)this.print(G);this.dedent(),this.print(f.closingFragment)}function JXf(){this.tokenChar(60),this.tokenChar(62)}function UXf(){this.token("</"),this.tokenChar(62)}});var eH=P((oH)=>{Object.defineProperty(oH,"__esModule",{value:!0});oH.TSAnyKeyword=gXf;oH.TSArrayType=XWf;oH.TSSatisfiesExpression=oH.TSAsExpression=AWf;oH.TSBigIntKeyword=_Xf;oH.TSBooleanKeyword=xXf;oH.TSCallSignatureDeclaration=LXf;oH.TSInterfaceHeritage=oH.TSClassImplements=FWf;oH.TSConditionalType=QWf;oH.TSConstructSignatureDeclaration=bXf;oH.TSConstructorType=tXf;oH.TSDeclareFunction=IXf;oH.TSDeclareMethod=TXf;oH.TSEnumBody=nH;oH.TSEnumDeclaration=PWf;oH.TSEnumMember=DWf;oH.TSExportAssignment=wWf;oH.TSExternalModuleReference=bWf;oH.TSFunctionType=dXf;oH.TSImportEqualsDeclaration=LWf;oH.TSImportType=NWf;oH.TSIndexSignature=vXf;oH.TSIndexedAccessType=BWf;oH.TSInferType=ZWf;oH.TSInstantiationExpression=jWf;oH.TSInterfaceBody=CWf;oH.TSInterfaceDeclaration=$Wf;oH.TSIntersectionType=HWf;oH.TSIntrinsicKeyword=sXf;oH.TSLiteralType=SWf;oH.TSMappedType=MWf;oH.TSMethodSignature=kXf;oH.TSModuleBlock=TWf;oH.TSModuleDeclaration=IWf;oH.TSNamedTupleMember=UWf;oH.TSNamespaceExportDeclaration=kWf;oH.TSNeverKeyword=rXf;oH.TSNonNullExpression=EWf;oH.TSNullKeyword=iXf;oH.TSNumberKeyword=hXf;oH.TSObjectKeyword=yXf;oH.TSOptionalType=RWf;oH.TSParameterProperty=DXf;oH.TSParenthesizedType=YWf;oH.TSPropertySignature=EXf;oH.TSQualifiedName=NXf;oH.TSRestType=JWf;oH.TSStringKeyword=mXf;oH.TSSymbolKeyword=lXf;oH.TSTemplateLiteralType=KWf;oH.TSThisType=pXf;oH.TSTupleType=WWf;oH.TSTypeAliasDeclaration=qWf;oH.TSTypeAnnotation=OXf;oH.TSTypeAssertion=OWf;oH.TSTypeLiteral=GWf;oH.TSTypeOperator=zWf;oH.TSTypeParameter=PXf;oH.TSTypeParameterDeclaration=oH.TSTypeParameterInstantiation=jXf;oH.TSTypePredicate=eXf;oH.TSTypeQuery=fWf;oH.TSTypeReference=oXf;oH.TSUndefinedKeyword=aXf;oH.TSUnionType=VWf;oH.TSUnknownKeyword=uXf;oH.TSVoidKeyword=cXf;oH.tsPrintClassMemberModifiers=gWf;oH.tsPrintFunctionOrConstructorType=nXf;oH.tsPrintPropertyOrMethodName=wXf;oH.tsPrintSignatureDeclarationBase=vWf;function OXf(f,G){if(this.token((G.type==="TSFunctionType"||G.type==="TSConstructorType")&&G.typeAnnotation===f?"=>":":"),this.space(),f.optional)this.tokenChar(63);this.print(f.typeAnnotation)}function jXf(f,G){this.tokenChar(60);let X=G.type==="ArrowFunctionExpression"&&f.params.length===1;if(this.tokenMap&&f.start!=null&&f.end!=null)X&&(X=!!this.tokenMap.find(f,(W)=>this.tokenMap.matchesOriginal(W,","))),X||(X=this.shouldPrintTrailingComma(">"));this.printList(f.params,X),this.tokenChar(62)}function PXf(f){if(f.in)this.word("in"),this.space();if(f.out)this.word("out"),this.space();if(this.word(f.name),f.constraint)this.space(),this.word("extends"),this.space(),this.print(f.constraint);if(f.default)this.space(),this.tokenChar(61),this.space(),this.print(f.default)}function DXf(f){if(f.accessibility)this.word(f.accessibility),this.space();if(f.readonly)this.word("readonly"),this.space();this._param(f.parameter)}function IXf(f,G){if(f.declare)this.word("declare"),this.space();this._functionHead(f,G),this.semicolon()}function TXf(f){this._classMethodHead(f),this.semicolon()}function NXf(f){this.print(f.left),this.tokenChar(46),this.print(f.right)}function LXf(f){this.tsPrintSignatureDeclarationBase(f),n1(this,f)}function n1(f,G){if(!f.tokenMap||!G.start||!G.end){f.semicolon();return}if(f.tokenMap.endMatches(G,","))f.token(",");else if(f.tokenMap.endMatches(G,";"))f.semicolon()}function bXf(f){this.word("new"),this.space(),this.tsPrintSignatureDeclarationBase(f),n1(this,f)}function EXf(f){let{readonly:G}=f;if(G)this.word("readonly"),this.space();this.tsPrintPropertyOrMethodName(f),this.print(f.typeAnnotation),n1(this,f)}function wXf(f){if(f.computed)this.tokenChar(91);if(this.print(f.key),f.computed)this.tokenChar(93);if(f.optional)this.tokenChar(63)}function kXf(f){let{kind:G}=f;if(G==="set"||G==="get")this.word(G),this.space();this.tsPrintPropertyOrMethodName(f),this.tsPrintSignatureDeclarationBase(f),n1(this,f)}function vXf(f){let{readonly:G,static:X}=f;if(X)this.word("static"),this.space();if(G)this.word("readonly"),this.space();this.tokenChar(91),this._parameters(f.parameters,"]"),this.print(f.typeAnnotation),n1(this,f)}function gXf(){this.word("any")}function _Xf(){this.word("bigint")}function uXf(){this.word("unknown")}function hXf(){this.word("number")}function yXf(){this.word("object")}function xXf(){this.word("boolean")}function mXf(){this.word("string")}function lXf(){this.word("symbol")}function cXf(){this.word("void")}function aXf(){this.word("undefined")}function iXf(){this.word("null")}function rXf(){this.word("never")}function sXf(){this.word("intrinsic")}function pXf(){this.word("this")}function dXf(f){this.tsPrintFunctionOrConstructorType(f)}function tXf(f){if(f.abstract)this.word("abstract"),this.space();this.word("new"),this.space(),this.tsPrintFunctionOrConstructorType(f)}function nXf(f){let{typeParameters:G}=f,X=f.parameters;this.print(G),this.tokenChar(40),this._parameters(X,")"),this.space();let W=f.typeAnnotation;this.print(W)}function oXf(f){let G=f.typeParameters;this.print(f.typeName,!!G),this.print(G)}function eXf(f){if(f.asserts)this.word("asserts"),this.space();if(this.print(f.parameterName),f.typeAnnotation)this.space(),this.word("is"),this.space(),this.print(f.typeAnnotation.typeAnnotation)}function fWf(f){this.word("typeof"),this.space(),this.print(f.exprName);let G=f.typeParameters;if(G)this.print(G)}function GWf(f){eX(this,f,()=>this.printJoin(f.members,!0,!0))}function XWf(f){this.print(f.elementType,!0),this.tokenChar(91),this.tokenChar(93)}function WWf(f){this.tokenChar(91),this.printList(f.elementTypes,this.shouldPrintTrailingComma("]")),this.tokenChar(93)}function RWf(f){this.print(f.typeAnnotation),this.tokenChar(63)}function JWf(f){this.token("..."),this.print(f.typeAnnotation)}function UWf(f){if(this.print(f.label),f.optional)this.tokenChar(63);this.tokenChar(58),this.space(),this.print(f.elementType)}function VWf(f){tH(this,f,"|")}function HWf(f){tH(this,f,"&")}function tH(f,G,X){var W;let R=0;if((W=f.tokenMap)!=null&&W.startMatches(G,X))R=1,f.token(X);f.printJoin(G.types,void 0,void 0,function(J){this.space(),this.token(X,null,J+R),this.space()})}function QWf(f){this.print(f.checkType),this.space(),this.word("extends"),this.space(),this.print(f.extendsType),this.space(),this.tokenChar(63),this.space(),this.print(f.trueType),this.space(),this.tokenChar(58),this.space(),this.print(f.falseType)}function ZWf(f){this.word("infer"),this.print(f.typeParameter)}function YWf(f){this.tokenChar(40),this.print(f.typeAnnotation),this.tokenChar(41)}function zWf(f){this.word(f.operator),this.space(),this.print(f.typeAnnotation)}function BWf(f){this.print(f.objectType,!0),this.tokenChar(91),this.print(f.indexType),this.tokenChar(93)}function MWf(f){let{nameType:G,optional:X,readonly:W,typeAnnotation:R}=f;this.tokenChar(123);let J=this.enterDelimited();if(this.space(),W)pH(this,W),this.word("readonly"),this.space();if(this.tokenChar(91),this.word(f.typeParameter.name),this.space(),this.word("in"),this.space(),this.print(f.typeParameter.constraint),G)this.space(),this.word("as"),this.space(),this.print(G);if(this.tokenChar(93),X)pH(this,X),this.tokenChar(63);if(R)this.tokenChar(58),this.space(),this.print(R);this.space(),J(),this.tokenChar(125)}function pH(f,G){if(G!==!0)f.token(G)}function KWf(f){this._printTemplate(f,f.types)}function SWf(f){this.print(f.literal)}function FWf(f){this.print(f.expression),this.print(f.typeArguments)}function $Wf(f){let{declare:G,id:X,typeParameters:W,extends:R,body:J}=f;if(G)this.word("declare"),this.space();if(this.word("interface"),this.space(),this.print(X),this.print(W),R!=null&&R.length)this.space(),this.word("extends"),this.space(),this.printList(R);this.space(),this.print(J)}function CWf(f){eX(this,f,()=>this.printJoin(f.body,!0,!0))}function qWf(f){let{declare:G,id:X,typeParameters:W,typeAnnotation:R}=f;if(G)this.word("declare"),this.space();this.word("type"),this.space(),this.print(X),this.print(W),this.space(),this.tokenChar(61),this.space(),this.print(R),this.semicolon()}function AWf(f){let{type:G,expression:X,typeAnnotation:W}=f;this.print(X,!0),this.space(),this.word(G==="TSAsExpression"?"as":"satisfies"),this.space(),this.print(W)}function OWf(f){let{typeAnnotation:G,expression:X}=f;this.tokenChar(60),this.print(G),this.tokenChar(62),this.space(),this.print(X)}function jWf(f){this.print(f.expression),this.print(f.typeParameters)}function PWf(f){let{declare:G,const:X,id:W}=f;if(G)this.word("declare"),this.space();if(X)this.word("const"),this.space();this.word("enum"),this.space(),this.print(W),this.space(),nH.call(this,f)}function nH(f){eX(this,f,()=>{var G;return this.printList(f.members,(G=this.shouldPrintTrailingComma("}"))!=null?G:!0,!0,!0)})}function DWf(f){let{id:G,initializer:X}=f;if(this.print(G),X)this.space(),this.tokenChar(61),this.space(),this.print(X)}function IWf(f){let{declare:G,id:X,kind:W}=f;if(G)this.word("declare"),this.space();{if(!f.global)this.word(W!=null?W:X.type==="Identifier"?"namespace":"module"),this.space();if(this.print(X),!f.body){this.semicolon();return}let R=f.body;while(R.type==="TSModuleDeclaration")this.tokenChar(46),this.print(R.id),R=R.body;this.space(),this.print(R)}}function TWf(f){eX(this,f,()=>this.printSequence(f.body,!0))}function NWf(f){let{argument:G,qualifier:X,options:W}=f;if(this.word("import"),this.tokenChar(40),this.print(G),W)this.tokenChar(44),this.print(W);if(this.tokenChar(41),X)this.tokenChar(46),this.print(X);let R=f.typeParameters;if(R)this.print(R)}function LWf(f){let{id:G,moduleReference:X}=f;if(f.isExport)this.word("export"),this.space();this.word("import"),this.space(),this.print(G),this.space(),this.tokenChar(61),this.space(),this.print(X),this.semicolon()}function bWf(f){this.token("require("),this.print(f.expression),this.tokenChar(41)}function EWf(f){this.print(f.expression),this.tokenChar(33)}function wWf(f){this.word("export"),this.space(),this.tokenChar(61),this.space(),this.print(f.expression),this.semicolon()}function kWf(f){this.word("export"),this.space(),this.word("as"),this.space(),this.word("namespace"),this.space(),this.print(f.id),this.semicolon()}function vWf(f){let{typeParameters:G}=f,X=f.parameters;this.print(G),this.tokenChar(40),this._parameters(X,")");let W=f.typeAnnotation;this.print(W)}function gWf(f){let G=f.type==="ClassPrivateProperty",X=f.type==="ClassAccessorProperty"||f.type==="ClassProperty";if(dH(this,f,[X&&f.declare&&"declare",!G&&f.accessibility]),f.static)this.word("static"),this.space();dH(this,f,[!G&&f.abstract&&"abstract",!G&&f.override&&"override",(X||G)&&f.readonly&&"readonly"])}function eX(f,G,X){f.token("{");let W=f.enterDelimited();X(),W(),f.rightBrace(G)}function dH(f,G,X){var W;let R=new Set;for(let J of X)if(J)R.add(J);(W=f.tokenMap)==null||W.find(G,(J)=>{if(R.has(J.value))return f.token(J.value),f.space(),R.delete(J.value),R.size===0});for(let J of R)f.word(J),f.space()}});var f9=P((Bf)=>{Object.defineProperty(Bf,"__esModule",{value:!0});var RR=SH();Object.keys(RR).forEach(function(f){if(f==="default"||f==="__esModule")return;if(f in Bf&&Bf[f]===RR[f])return;Object.defineProperty(Bf,f,{enumerable:!0,get:function(){return RR[f]}})});var JR=CH();Object.keys(JR).forEach(function(f){if(f==="default"||f==="__esModule")return;if(f in Bf&&Bf[f]===JR[f])return;Object.defineProperty(Bf,f,{enumerable:!0,get:function(){return JR[f]}})});var UR=DH();Object.keys(UR).forEach(function(f){if(f==="default"||f==="__esModule")return;if(f in Bf&&Bf[f]===UR[f])return;Object.defineProperty(Bf,f,{enumerable:!0,get:function(){return UR[f]}})});var VR=TH();Object.keys(VR).forEach(function(f){if(f==="default"||f==="__esModule")return;if(f in Bf&&Bf[f]===VR[f])return;Object.defineProperty(Bf,f,{enumerable:!0,get:function(){return VR[f]}})});var HR=LH();Object.keys(HR).forEach(function(f){if(f==="default"||f==="__esModule")return;if(f in Bf&&Bf[f]===HR[f])return;Object.defineProperty(Bf,f,{enumerable:!0,get:function(){return HR[f]}})});var QR=e2();Object.keys(QR).forEach(function(f){if(f==="default"||f==="__esModule")return;if(f in Bf&&Bf[f]===QR[f])return;Object.defineProperty(Bf,f,{enumerable:!0,get:function(){return QR[f]}})});var ZR=XR();Object.keys(ZR).forEach(function(f){if(f==="default"||f==="__esModule")return;if(f in Bf&&Bf[f]===ZR[f])return;Object.defineProperty(Bf,f,{enumerable:!0,get:function(){return ZR[f]}})});var YR=cH();Object.keys(YR).forEach(function(f){if(f==="default"||f==="__esModule")return;if(f in Bf&&Bf[f]===YR[f])return;Object.defineProperty(Bf,f,{enumerable:!0,get:function(){return YR[f]}})});var zR=iH();Object.keys(zR).forEach(function(f){if(f==="default"||f==="__esModule")return;if(f in Bf&&Bf[f]===zR[f])return;Object.defineProperty(Bf,f,{enumerable:!0,get:function(){return zR[f]}})});var BR=sH();Object.keys(BR).forEach(function(f){if(f==="default"||f==="__esModule")return;if(f in Bf&&Bf[f]===BR[f])return;Object.defineProperty(Bf,f,{enumerable:!0,get:function(){return BR[f]}})});var MR=eH();Object.keys(MR).forEach(function(f){if(f==="default"||f==="__esModule")return;if(f in Bf&&Bf[f]===MR[f])return;Object.defineProperty(Bf,f,{enumerable:!0,get:function(){return MR[f]}})})});var X9=P((G9)=>{Object.defineProperty(G9,"__esModule",{value:!0});G9.addDeprecatedGenerators=n2f;function n2f(f){{let G={Noop(){},TSExpressionWithTypeArguments(X){this.print(X.expression),this.print(X.typeParameters)},DecimalLiteral(X){let W=this.getPossibleRaw(X);if(!this.format.minified&&W!==void 0){this.word(W);return}this.word(X.value+"m")}};Object.assign(f.prototype,G)}}});var H9=P((U9)=>{Object.defineProperty(U9,"__esModule",{value:!0});U9.default=void 0;var e2f=HU(),R9=_G(),fRf=Vf(),GRf=MH(),XRf=f9(),WRf=X9(),{isExpression:RRf,isFunction:JRf,isStatement:URf,isClassBody:VRf,isTSInterfaceBody:HRf,isTSEnumMember:QRf}=fRf,ZRf=/e/i,YRf=/\.0+$/,J9=/[\n\r\u2028\u2029]/,zRf=/[\n\r\u2028\u2029]|\*\//;function W9(f){return f.type==="CommentLine"||J9.test(f.value)}var{needsParens:BRf}=R9;class fW{constructor(f,G,X,W){this.inForStatementInit=!1,this.tokenContext=0,this._tokens=null,this._originalCode=null,this._currentNode=null,this._indent=0,this._indentRepeat=0,this._insideAux=!1,this._noLineTerminator=!1,this._noLineTerminatorAfterNode=null,this._printAuxAfterOnNextUserNode=!1,this._printedComments=new Set,this._endsWithInteger=!1,this._endsWithWord=!1,this._endsWithDiv=!1,this._lastCommentLine=0,this._endsWithInnerRaw=!1,this._indentInnerComments=!0,this.tokenMap=null,this._boundGetRawIdentifier=this._getRawIdentifier.bind(this),this._printSemicolonBeforeNextNode=-1,this._printSemicolonBeforeNextToken=-1,this.format=f,this._tokens=X,this._originalCode=W,this._indentRepeat=f.indent.style.length,this._inputMap=G==null?void 0:G._inputMap,this._buf=new e2f.default(G,f.indent.style[0])}enterForStatementInit(){if(this.inForStatementInit)return()=>{};return this.inForStatementInit=!0,()=>{this.inForStatementInit=!1}}enterDelimited(){let f=this.inForStatementInit,G=this._noLineTerminatorAfterNode;if(f===!1&&G===null)return()=>{};return this.inForStatementInit=!1,this._noLineTerminatorAfterNode=null,()=>{this.inForStatementInit=f,this._noLineTerminatorAfterNode=G}}generate(f){if(this.format.preserveFormat)this.tokenMap=new GRf.TokenMap(f,this._tokens,this._originalCode);return this.print(f),this._maybeAddAuxComment(),this._buf.get()}indent(){let{format:f}=this;if(f.preserveFormat||f.compact||f.concise)return;this._indent++}dedent(){let{format:f}=this;if(f.preserveFormat||f.compact||f.concise)return;this._indent--}semicolon(f=!1){if(this._maybeAddAuxComment(),f){this._appendChar(59),this._noLineTerminator=!1;return}if(this.tokenMap){let G=this._currentNode;if(G.start!=null&&G.end!=null){if(!this.tokenMap.endMatches(G,";")){this._printSemicolonBeforeNextNode=this._buf.getCurrentLine();return}let X=this.tokenMap.getIndexes(this._currentNode);this._catchUpTo(this._tokens[X[X.length-1]].loc.start)}}this._queue(59),this._noLineTerminator=!1}rightBrace(f){if(this.format.minified)this._buf.removeLastSemicolon();this.sourceWithOffset("end",f.loc,-1),this.tokenChar(125)}rightParens(f){this.sourceWithOffset("end",f.loc,-1),this.tokenChar(41)}space(f=!1){let{format:G}=this;if(G.compact||G.preserveFormat)return;if(f)this._space();else if(this._buf.hasContent()){let X=this.getLastChar();if(X!==32&&X!==10)this._space()}}word(f,G=!1){if(this.tokenContext=0,this._maybePrintInnerComments(f),this._maybeAddAuxComment(),this.tokenMap)this._catchUpToCurrentToken(f);if(this._endsWithWord||this._endsWithDiv&&f.charCodeAt(0)===47)this._space();this._append(f,!1),this._endsWithWord=!0,this._noLineTerminator=G}number(f,G){function X(W){if(W.length>2&&W.charCodeAt(0)===48){let R=W.charCodeAt(1);return R===98||R===111||R===120}return!1}this.word(f),this._endsWithInteger=Number.isInteger(G)&&!X(f)&&!ZRf.test(f)&&!YRf.test(f)&&f.charCodeAt(f.length-1)!==46}token(f,G=!1,X=0){if(this.tokenContext=0,this._maybePrintInnerComments(f,X),this._maybeAddAuxComment(),this.tokenMap)this._catchUpToCurrentToken(f,X);let W=this.getLastChar(),R=f.charCodeAt(0);if(W===33&&(f==="--"||R===61)||R===43&&W===43||R===45&&W===45||R===46&&this._endsWithInteger)this._space();this._append(f,G),this._noLineTerminator=!1}tokenChar(f){this.tokenContext=0;let G=String.fromCharCode(f);if(this._maybePrintInnerComments(G),this._maybeAddAuxComment(),this.tokenMap)this._catchUpToCurrentToken(G);let X=this.getLastChar();if(f===43&&X===43||f===45&&X===45||f===46&&this._endsWithInteger)this._space();this._appendChar(f),this._noLineTerminator=!1}newline(f=1,G){if(f<=0)return;if(!G){if(this.format.retainLines||this.format.compact)return;if(this.format.concise){this.space();return}}if(f>2)f=2;f-=this._buf.getNewlineCount();for(let X=0;X<f;X++)this._newline();return}endsWith(f){return this.getLastChar()===f}getLastChar(){return this._buf.getLastChar()}endsWithCharAndNewline(){return this._buf.endsWithCharAndNewline()}removeTrailingNewline(){this._buf.removeTrailingNewline()}exactSource(f,G){if(!f){G();return}this._catchUp("start",f),this._buf.exactSource(f,G)}source(f,G){if(!G)return;this._catchUp(f,G),this._buf.source(f,G)}sourceWithOffset(f,G,X){if(!G||this.format.preserveFormat)return;this._catchUp(f,G),this._buf.sourceWithOffset(f,G,X)}sourceIdentifierName(f,G){if(!this._buf._canMarkIdName)return;let X=this._buf._sourcePosition;X.identifierNamePos=G,X.identifierName=f}_space(){this._queue(32)}_newline(){this._queue(10)}_catchUpToCurrentToken(f,G=0){let X=this.tokenMap.findMatching(this._currentNode,f,G);if(X)this._catchUpTo(X.loc.start);if(this._printSemicolonBeforeNextToken!==-1&&this._printSemicolonBeforeNextToken===this._buf.getCurrentLine())this._buf.appendChar(59),this._endsWithWord=!1,this._endsWithInteger=!1,this._endsWithDiv=!1;this._printSemicolonBeforeNextToken=-1,this._printSemicolonBeforeNextNode=-1}_append(f,G){this._maybeIndent(f.charCodeAt(0)),this._buf.append(f,G),this._endsWithWord=!1,this._endsWithInteger=!1,this._endsWithDiv=!1}_appendChar(f){this._maybeIndent(f),this._buf.appendChar(f),this._endsWithWord=!1,this._endsWithInteger=!1,this._endsWithDiv=!1}_queue(f){this._maybeIndent(f),this._buf.queue(f),this._endsWithWord=!1,this._endsWithInteger=!1}_maybeIndent(f){if(this._indent&&f!==10&&this.endsWith(10))this._buf.queueIndentation(this._getIndent())}_shouldIndent(f){if(this._indent&&f!==10&&this.endsWith(10))return!0}catchUp(f){if(!this.format.retainLines)return;let G=f-this._buf.getCurrentLine();for(let X=0;X<G;X++)this._newline()}_catchUp(f,G){let{format:X}=this;if(!X.preserveFormat){if(X.retainLines&&G!=null&&G[f])this.catchUp(G[f].line);return}let W=G==null?void 0:G[f];if(W!=null)this._catchUpTo(W)}_catchUpTo({line:f,column:G,index:X}){let W=f-this._buf.getCurrentLine();if(W>0&&this._noLineTerminator)return;for(let J=0;J<W;J++)this._newline();let R=W>0?G:G-this._buf.getCurrentColumn();if(R>0){let J=this._originalCode?this._originalCode.slice(X-R,X).replace(/[^\t\x0B\f \xA0\u1680\u2000-\u200A\u202F\u205F\u3000\uFEFF]/gu," "):" ".repeat(R);this._append(J,!1)}}_getIndent(){return this._indentRepeat*this._indent}printTerminatorless(f){this._noLineTerminator=!0,this.print(f)}print(f,G,X){var W,R,J;if(!f)return;this._endsWithInnerRaw=!1;let U=f.type,V=this.format,H=V.concise;if(f._compact)V.concise=!0;let Q=this[U];if(Q===void 0)throw new ReferenceError(`unknown node of type ${JSON.stringify(U)} with constructor ${JSON.stringify(f.constructor.name)}`);let Y=this._currentNode;if(this._currentNode=f,this.tokenMap)this._printSemicolonBeforeNextToken=this._printSemicolonBeforeNextNode;let F=this._insideAux;this._insideAux=f.loc==null,this._maybeAddAuxComment(this._insideAux&&!F);let q=(W=f.extra)==null?void 0:W.parenthesized,A=q&&V.preserveFormat||q&&V.retainFunctionParens&&U==="FunctionExpression"||BRf(f,Y,this.tokenContext,this.inForStatementInit,V.preserveFormat?this._boundGetRawIdentifier:void 0);if(!A&&q&&(R=f.leadingComments)!=null&&R.length&&f.leadingComments[0].type==="CommentBlock")switch(Y==null?void 0:Y.type){case"ExpressionStatement":case"VariableDeclarator":case"AssignmentExpression":case"ReturnStatement":break;case"CallExpression":case"OptionalCallExpression":case"NewExpression":if(Y.callee!==f)break;default:A=!0}let j=!1;if(!A&&this._noLineTerminator&&((J=f.leadingComments)!=null&&J.some(W9)||this.format.retainLines&&f.loc&&f.loc.start.line>this._buf.getCurrentLine()))A=!0,j=!0;let b,I;if(!A){if(G||(G=Y&&this._noLineTerminatorAfterNode===Y&&R9.isLastChild(Y,f)),G){var L;if((L=f.trailingComments)!=null&&L.some(W9)){if(RRf(f))A=!0}else b=this._noLineTerminatorAfterNode,this._noLineTerminatorAfterNode=f}}if(A){if(this.tokenChar(40),j)this.indent();if(this._endsWithInnerRaw=!1,this.inForStatementInit)I=!0,this.inForStatementInit=!1;b=this._noLineTerminatorAfterNode,this._noLineTerminatorAfterNode=null}this._lastCommentLine=0,this._printLeadingComments(f,Y);let E=U==="Program"||U==="File"?null:f.loc;if(this.exactSource(E,Q.bind(this,f,Y)),A){if(this._printTrailingComments(f,Y),j)this.dedent(),this.newline();if(this.tokenChar(41),this._noLineTerminator=G,I)this.inForStatementInit=!0}else if(G&&!this._noLineTerminator)this._noLineTerminator=!0,this._printTrailingComments(f,Y);else this._printTrailingComments(f,Y,X);if(this._currentNode=Y,V.concise=H,this._insideAux=F,b!==void 0)this._noLineTerminatorAfterNode=b;this._endsWithInnerRaw=!1}_maybeAddAuxComment(f){if(f)this._printAuxBeforeComment();if(!this._insideAux)this._printAuxAfterComment()}_printAuxBeforeComment(){if(this._printAuxAfterOnNextUserNode)return;this._printAuxAfterOnNextUserNode=!0;let f=this.format.auxiliaryCommentBefore;if(f)this._printComment({type:"CommentBlock",value:f},0)}_printAuxAfterComment(){if(!this._printAuxAfterOnNextUserNode)return;this._printAuxAfterOnNextUserNode=!1;let f=this.format.auxiliaryCommentAfter;if(f)this._printComment({type:"CommentBlock",value:f},0)}getPossibleRaw(f){let G=f.extra;if((G==null?void 0:G.raw)!=null&&G.rawValue!=null&&f.value===G.rawValue)return G.raw}printJoin(f,G,X,W,R,J,U,V){if(!(f!=null&&f.length))return;if(X==null&&this.format.retainLines){var H;let j=(H=f[0].loc)==null?void 0:H.start.line;if(j!=null&&j!==this._buf.getCurrentLine())X=!0}if(X)this.indent();let Q={addNewlines:J,nextNodeStartLine:0},Y=W==null?void 0:W.bind(this),F=f.length;for(let j=0;j<F;j++){let b=f[j];if(!b)continue;if(G)this._printNewline(j===0,Q);if(this.print(b,void 0,V||0),U==null||U(b,j),Y!=null){if(j<F-1)Y(j,!1);else if(R)Y(j,!0)}if(G){var q;if(!((q=b.trailingComments)!=null&&q.length))this._lastCommentLine=0;if(j+1===F)this.newline(1);else{var A;let I=f[j+1];Q.nextNodeStartLine=((A=I.loc)==null?void 0:A.start.line)||0,this._printNewline(!0,Q)}}}if(X)this.dedent()}printAndIndentOnComments(f){let G=f.leadingComments&&f.leadingComments.length>0;if(G)this.indent();if(this.print(f),G)this.dedent()}printBlock(f){let G=f.body;if(G.type!=="EmptyStatement")this.space();this.print(G)}_printTrailingComments(f,G,X){let{innerComments:W,trailingComments:R}=f;if(W!=null&&W.length)this._printComments(2,W,f,G,X);if(R!=null&&R.length)this._printComments(2,R,f,G,X)}_printLeadingComments(f,G){let X=f.leadingComments;if(!(X!=null&&X.length))return;this._printComments(0,X,f,G)}_maybePrintInnerComments(f,G){if(this._endsWithInnerRaw){var X;this.printInnerComments((X=this.tokenMap)==null?void 0:X.findMatching(this._currentNode,f,G))}this._endsWithInnerRaw=!0,this._indentInnerComments=!0}printInnerComments(f){let G=this._currentNode,X=G.innerComments;if(!(X!=null&&X.length))return;let W=this.endsWith(32),R=this._indentInnerComments,J=this._printedComments.size;if(R)this.indent();if(this._printComments(1,X,G,void 0,void 0,f),W&&J!==this._printedComments.size)this.space();if(R)this.dedent()}noIndentInnerCommentsHere(){this._indentInnerComments=!1}printSequence(f,G,X,W){this.printJoin(f,!0,G!=null?G:!1,void 0,void 0,W,void 0,X)}printList(f,G,X,W,R,J){this.printJoin(f,X,W,R!=null?R:MRf,G,void 0,J)}shouldPrintTrailingComma(f){if(!this.tokenMap)return null;let G=this.tokenMap.findLastIndex(this._currentNode,(X)=>this.tokenMap.matchesOriginal(X,f));if(G<=0)return null;return this.tokenMap.matchesOriginal(this._tokens[G-1],",")}_printNewline(f,G){let X=this.format;if(X.retainLines||X.compact)return;if(X.concise){this.space();return}if(!f)return;let W=G.nextNodeStartLine,R=this._lastCommentLine;if(W>0&&R>0){let J=W-R;if(J>=0){this.newline(J||1);return}}if(this._buf.hasContent())this.newline(1)}_shouldPrintComment(f,G){if(f.ignore)return 0;if(this._printedComments.has(f))return 0;if(this._noLineTerminator&&zRf.test(f.value))return 2;if(G&&this.tokenMap){let X=this.tokenMap.find(this._currentNode,(W)=>W.value===f.value);if(X&&X.start>G.start)return 2}if(this._printedComments.add(f),!this.format.shouldPrintComment(f.value))return 0;return 1}_printComment(f,G){let X=this._noLineTerminator,W=f.type==="CommentBlock",R=W&&G!==1&&!this._noLineTerminator;if(R&&this._buf.hasContent()&&G!==2)this.newline(1);let J=this.getLastChar();if(J!==91&&J!==123&&J!==40)this.space();let U;if(W){if(U=`/*${f.value}*/`,this.format.indent.adjustMultilineComment){var V;let H=(V=f.loc)==null?void 0:V.start.column;if(H){let Q=new RegExp("\\n\\s{1,"+H+"}","g");U=U.replace(Q,`
|
|
14
|
-
`)}if(this.
|
|
15
|
-
`);else{let
|
|
16
|
-
${" ".repeat(
|
|
17
|
-
- Did you mean \`export { '${
|
|
18
|
-
- Did you mean \`import { "${f}" as foo }\`?`,ImportCallArity:"`import()` requires exactly 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:f})=>`Expected number in radix ${f}.`,InvalidEscapeSequence:"Bad character escape sequence.",InvalidEscapeSequenceTemplate:"Invalid escape sequence in template.",InvalidEscapedReservedWord:({reservedWord:f})=>`Escape sequence in keyword ${f}.`,InvalidIdentifier:({identifierName:f})=>`Invalid identifier ${f}.`,InvalidLhs:({ancestor:f})=>`Invalid left-hand side in ${WW(f)}.`,InvalidLhsBinding:({ancestor:f})=>`Binding invalid left-hand side in ${WW(f)}.`,InvalidLhsOptionalChaining:({ancestor:f})=>`Invalid optional chaining in the left-hand side of ${WW(f)}.`,InvalidNumber:"Invalid number.",InvalidOrMissingExponent:"Floating-point numbers require a valid exponent after the 'e'.",InvalidOrUnexpectedToken:({unexpected:f})=>`Unexpected character '${f}'.`,InvalidParenthesizedAssignment:"Invalid parenthesized assignment pattern.",InvalidPrivateFieldResolution:({identifierName:f})=>`Private name #${f} 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:f})=>`Label '${f}' 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:f})=>`This experimental syntax requires enabling the parser plugin: ${f.map((G)=>JSON.stringify(G)).join(", ")}.`,MissingOneOfPlugins:({missingPlugin:f})=>`This experimental syntax requires enabling one of the following parser plugin(s): ${f.map((G)=>JSON.stringify(G)).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:f})=>`Duplicate key "${f}" is not allowed in module attributes.`,ModuleExportNameHasLoneSurrogate:({surrogateCharCode:f})=>`An export name cannot include a lone surrogate, found '\\u${f.toString(16)}'.`,ModuleExportUndefined:({localName:f})=>`Export '${f}' 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:f})=>`Private names are only allowed in property accesses (\`obj.#${f}\`) or in \`in\` expressions (\`#${f} in obj\`).`,PrivateNameRedeclaration:({identifierName:f})=>`Duplicate private name #${f}.`,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:f})=>`Unexpected keyword '${f}'.`,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:f})=>`Unexpected reserved word '${f}'.`,UnexpectedSuper:"'super' is only allowed in object methods and classes.",UnexpectedToken:({expected:f,unexpected:G})=>`Unexpected token${G?` '${G}'.`:""}${f?`, expected "${f}"`:""}`,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:f,onlyValidPropertyName:G})=>`The only valid meta property for ${f} is ${f}.${G}.`,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:f})=>`Identifier '${f}' 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."},qRf={StrictDelete:"Deleting local variable in strict mode.",StrictEvalArguments:({referenceName:f})=>`Assigning to '${f}' in strict mode.`,StrictEvalArgumentsBinding:({bindingName:f})=>`Binding '${f}' 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."},ARf=new Set(["ArrowFunctionExpression","AssignmentExpression","ConditionalExpression","YieldExpression"]),ORf=Object.assign({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:f})=>`Invalid topic token ${f}. In order to use ${f} as a topic reference, the pipelineOperator plugin must be configured with { "proposal": "hack", "topicToken": "${f}" }.`,PipeTopicUnused:"Hack-style pipe body does not contain a topic reference; Hack-style pipes must use topic at least once.",PipeUnparenthesizedBody:({type:f})=>`Hack-style pipe body cannot be an unparenthesized ${WW({type:f})}; 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.'}),jRf=["message"];function K9(f,G,X){Object.defineProperty(f,G,{enumerable:!1,configurable:!0,value:X})}function PRf({toMessage:f,code:G,reasonCode:X,syntaxPlugin:W}){let R=X==="MissingPlugin"||X==="MissingOneOfPlugins";{let J={AccessorCannotDeclareThisParameter:"AccesorCannotDeclareThisParameter",AccessorCannotHaveTypeParameters:"AccesorCannotHaveTypeParameters",ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference:"ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference",SetAccessorCannotHaveOptionalParameter:"SetAccesorCannotHaveOptionalParameter",SetAccessorCannotHaveRestParameter:"SetAccesorCannotHaveRestParameter",SetAccessorCannotHaveReturnType:"SetAccesorCannotHaveReturnType"};if(J[X])X=J[X]}return function J(U,V){let H=new SyntaxError;if(H.code=G,H.reasonCode=X,H.loc=U,H.pos=U.index,H.syntaxPlugin=W,R)H.missingPlugin=V.missingPlugin;return K9(H,"clone",function Q(Y={}){var F;let{line:q,column:A,index:j}=(F=Y.loc)!=null?F:U;return J(new NG(q,A,j),Object.assign({},V,Y.details))}),K9(H,"details",V),Object.defineProperty(H,"message",{configurable:!0,get(){let Q=`${f(V)} (${U.line}:${U.column})`;return this.message=Q,Q},set(Q){Object.defineProperty(this,"message",{value:Q,writable:!0})}}),H}}function TG(f,G){if(Array.isArray(f))return(W)=>TG(W,f[0]);let X={};for(let W of Object.keys(f)){let R=f[W],J=typeof R==="string"?{message:()=>R}:typeof R==="function"?{message:R}:R,{message:U}=J,V=FRf(J,jRf),H=typeof U==="string"?()=>U:U;X[W]=PRf(Object.assign({code:"BABEL_PARSER_SYNTAX_ERROR",reasonCode:W,toMessage:H},G?{syntaxPlugin:G}:{},V))}return X}var $=Object.assign({},TG($Rf),TG(CRf),TG(qRf),TG`pipelineOperator`(ORf));function DRf(){return{sourceType:"script",sourceFilename:void 0,startIndex: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 IRf(f){let G=DRf();if(f==null)return G;if(f.annexB!=null&&f.annexB!==!1)throw new Error("The `annexB` option can only be set to `false`.");for(let X of Object.keys(G))if(f[X]!=null)G[X]=f[X];if(G.startLine===1){if(f.startIndex==null&&G.startColumn>0)G.startIndex=G.startColumn;else if(f.startColumn==null&&G.startIndex>0)G.startColumn=G.startIndex}else if(f.startColumn==null||f.startIndex==null){if(f.startIndex!=null)throw new Error("With a `startLine > 1` you must also specify `startIndex` and `startColumn`.")}return G}var{defineProperty:TRf}=Object,S9=(f,G)=>{if(f)TRf(f,G,{enumerable:!1,value:f[G]})};function o1(f){return S9(f.loc.start,"index"),S9(f.loc.end,"index"),f}var NRf=(f)=>class G extends f{parse(){let X=o1(super.parse());if(this.optionFlags&128)X.tokens=X.tokens.map(o1);return X}parseRegExpLiteral({pattern:X,flags:W}){let R=null;try{R=new RegExp(X,W)}catch(U){}let J=this.estreeParseLiteral(R);return J.regex={pattern:X,flags:W},J}parseBigIntLiteral(X){let W;try{W=BigInt(X)}catch(J){W=null}let R=this.estreeParseLiteral(W);return R.bigint=String(R.value||X),R}parseDecimalLiteral(X){let R=this.estreeParseLiteral(null);return R.decimal=String(R.value||X),R}estreeParseLiteral(X){return this.parseLiteral(X,"Literal")}parseStringLiteral(X){return this.estreeParseLiteral(X)}parseNumericLiteral(X){return this.estreeParseLiteral(X)}parseNullLiteral(){return this.estreeParseLiteral(null)}parseBooleanLiteral(X){return this.estreeParseLiteral(X)}directiveToStmt(X){let W=X.value;delete X.value,W.type="Literal",W.raw=W.extra.raw,W.value=W.extra.expressionValue;let R=X;return R.type="ExpressionStatement",R.expression=W,R.directive=W.extra.rawValue,delete W.extra,R}initFunction(X,W){super.initFunction(X,W),X.expression=!1}checkDeclaration(X){if(X!=null&&this.isObjectProperty(X))this.checkDeclaration(X.value);else super.checkDeclaration(X)}getObjectOrClassMethodParams(X){return X.value.params}isValidDirective(X){var W;return X.type==="ExpressionStatement"&&X.expression.type==="Literal"&&typeof X.expression.value==="string"&&!((W=X.expression.extra)!=null&&W.parenthesized)}parseBlockBody(X,W,R,J,U){super.parseBlockBody(X,W,R,J,U);let V=X.directives.map((H)=>this.directiveToStmt(H));X.body=V.concat(X.body),delete X.directives}parsePrivateName(){let X=super.parsePrivateName();if(!this.getPluginOption("estree","classFeatures"))return X;return this.convertPrivateNameToPrivateIdentifier(X)}convertPrivateNameToPrivateIdentifier(X){let W=super.getPrivateNameSV(X);return X=X,delete X.id,X.name=W,X.type="PrivateIdentifier",X}isPrivateName(X){if(!this.getPluginOption("estree","classFeatures"))return super.isPrivateName(X);return X.type==="PrivateIdentifier"}getPrivateNameSV(X){if(!this.getPluginOption("estree","classFeatures"))return super.getPrivateNameSV(X);return X.name}parseLiteral(X,W){let R=super.parseLiteral(X,W);return R.raw=R.extra.raw,delete R.extra,R}parseFunctionBody(X,W,R=!1){super.parseFunctionBody(X,W,R),X.expression=X.body.type!=="BlockStatement"}parseMethod(X,W,R,J,U,V,H=!1){let Q=this.startNode();Q.kind=X.kind,Q=super.parseMethod(Q,W,R,J,U,V,H),Q.type="FunctionExpression",delete Q.kind,X.value=Q;let{typeParameters:Y}=X;if(Y)delete X.typeParameters,Q.typeParameters=Y,this.resetStartLocationFromNode(Q,Y);if(V==="ClassPrivateMethod")X.computed=!1;return this.finishNode(X,"MethodDefinition")}nameIsConstructor(X){if(X.type==="Literal")return X.value==="constructor";return super.nameIsConstructor(X)}parseClassProperty(...X){let W=super.parseClassProperty(...X);if(!this.getPluginOption("estree","classFeatures"))return W;return W.type="PropertyDefinition",W}parseClassPrivateProperty(...X){let W=super.parseClassPrivateProperty(...X);if(!this.getPluginOption("estree","classFeatures"))return W;return W.type="PropertyDefinition",W.computed=!1,W}parseObjectMethod(X,W,R,J,U){let V=super.parseObjectMethod(X,W,R,J,U);if(V){if(V.type="Property",V.kind==="method")V.kind="init";V.shorthand=!1}return V}parseObjectProperty(X,W,R,J){let U=super.parseObjectProperty(X,W,R,J);if(U)U.kind="init",U.type="Property";return U}isValidLVal(X,W,R){return X==="Property"?"value":super.isValidLVal(X,W,R)}isAssignable(X,W){if(X!=null&&this.isObjectProperty(X))return this.isAssignable(X.value,W);return super.isAssignable(X,W)}toAssignable(X,W=!1){if(X!=null&&this.isObjectProperty(X)){let{key:R,value:J}=X;if(this.isPrivateName(R))this.classScope.usePrivateName(this.getPrivateNameSV(R),R.loc.start);this.toAssignable(J,W)}else super.toAssignable(X,W)}toAssignableObjectExpressionProp(X,W,R){if(X.type==="Property"&&(X.kind==="get"||X.kind==="set"))this.raise($.PatternHasAccessor,X.key);else if(X.type==="Property"&&X.method)this.raise($.PatternHasMethod,X.key);else super.toAssignableObjectExpressionProp(X,W,R)}finishCallExpression(X,W){let R=super.finishCallExpression(X,W);if(R.callee.type==="Import"){var J,U;R.type="ImportExpression",R.source=R.arguments[0],R.options=(J=R.arguments[1])!=null?J:null,R.attributes=(U=R.arguments[1])!=null?U:null,delete R.arguments,delete R.callee}return R}toReferencedArguments(X){if(X.type==="ImportExpression")return;super.toReferencedArguments(X)}parseExport(X,W){let R=this.state.lastTokStartLoc,J=super.parseExport(X,W);switch(J.type){case"ExportAllDeclaration":J.exported=null;break;case"ExportNamedDeclaration":if(J.specifiers.length===1&&J.specifiers[0].type==="ExportNamespaceSpecifier")J.type="ExportAllDeclaration",J.exported=J.specifiers[0].exported,delete J.specifiers;case"ExportDefaultDeclaration":{var U;let{declaration:V}=J;if((V==null?void 0:V.type)==="ClassDeclaration"&&((U=V.decorators)==null?void 0:U.length)>0&&V.start===J.start)this.resetStartLocation(J,R)}break}return J}parseSubscript(X,W,R,J){let U=super.parseSubscript(X,W,R,J);if(J.optionalChainMember){if(U.type==="OptionalMemberExpression"||U.type==="OptionalCallExpression")U.type=U.type.substring(8);if(J.stop){let V=this.startNodeAtNode(U);return V.expression=U,this.finishNode(V,"ChainExpression")}}else if(U.type==="MemberExpression"||U.type==="CallExpression")U.optional=!1;return U}isOptionalMemberExpression(X){if(X.type==="ChainExpression")return X.expression.type==="MemberExpression";return super.isOptionalMemberExpression(X)}hasPropertyAsPrivateName(X){if(X.type==="ChainExpression")X=X.expression;return super.hasPropertyAsPrivateName(X)}isObjectProperty(X){return X.type==="Property"&&X.kind==="init"&&!X.method}isObjectMethod(X){return X.type==="Property"&&(X.method||X.kind==="get"||X.kind==="set")}finishNodeAt(X,W,R){return o1(super.finishNodeAt(X,W,R))}resetStartLocation(X,W){super.resetStartLocation(X,W),o1(X)}resetEndLocation(X,W=this.state.lastTokEndLoc){super.resetEndLocation(X,W),o1(X)}};class $1{constructor(f,G){this.token=void 0,this.preserveSpace=void 0,this.token=f,this.preserveSpace=!!G}}var Ff={brace:new $1("{"),j_oTag:new $1("<tag"),j_cTag:new $1("</tag"),j_expr:new $1("<tag>...</tag>",!0)};Ff.template=new $1("`",!0);var Qf=!0,h=!0,SR=!0,e1=!0,hG=!0,LRf=!0;class PR{constructor(f,G={}){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=f,this.keyword=G.keyword,this.beforeExpr=!!G.beforeExpr,this.startsExpr=!!G.startsExpr,this.rightAssociative=!!G.rightAssociative,this.isLoop=!!G.isLoop,this.isAssign=!!G.isAssign,this.prefix=!!G.prefix,this.postfix=!!G.postfix,this.binop=G.binop!=null?G.binop:null,this.updateContext=null}}var DR=new Map;function Mf(f,G={}){G.keyword=f;let X=p(f,G);return DR.set(f,X),X}function yf(f,G){return p(f,{beforeExpr:Qf,binop:G})}var XX=-1,DG=[],IR=[],TR=[],NR=[],LR=[],bR=[];function p(f,G={}){var X,W,R,J;return++XX,IR.push(f),TR.push((X=G.binop)!=null?X:-1),NR.push((W=G.beforeExpr)!=null?W:!1),LR.push((R=G.startsExpr)!=null?R:!1),bR.push((J=G.prefix)!=null?J:!1),DG.push(new PR(f,G)),XX}function Hf(f,G={}){var X,W,R,J;return++XX,DR.set(f,XX),IR.push(f),TR.push((X=G.binop)!=null?X:-1),NR.push((W=G.beforeExpr)!=null?W:!1),LR.push((R=G.startsExpr)!=null?R:!1),bR.push((J=G.prefix)!=null?J:!1),DG.push(new PR("name",G)),XX}var bRf={bracketL:p("[",{beforeExpr:Qf,startsExpr:h}),bracketHashL:p("#[",{beforeExpr:Qf,startsExpr:h}),bracketBarL:p("[|",{beforeExpr:Qf,startsExpr:h}),bracketR:p("]"),bracketBarR:p("|]"),braceL:p("{",{beforeExpr:Qf,startsExpr:h}),braceBarL:p("{|",{beforeExpr:Qf,startsExpr:h}),braceHashL:p("#{",{beforeExpr:Qf,startsExpr:h}),braceR:p("}"),braceBarR:p("|}"),parenL:p("(",{beforeExpr:Qf,startsExpr:h}),parenR:p(")"),comma:p(",",{beforeExpr:Qf}),semi:p(";",{beforeExpr:Qf}),colon:p(":",{beforeExpr:Qf}),doubleColon:p("::",{beforeExpr:Qf}),dot:p("."),question:p("?",{beforeExpr:Qf}),questionDot:p("?."),arrow:p("=>",{beforeExpr:Qf}),template:p("template"),ellipsis:p("...",{beforeExpr:Qf}),backQuote:p("`",{startsExpr:h}),dollarBraceL:p("${",{beforeExpr:Qf,startsExpr:h}),templateTail:p("...`",{startsExpr:h}),templateNonTail:p("...${",{beforeExpr:Qf,startsExpr:h}),at:p("@"),hash:p("#",{startsExpr:h}),interpreterDirective:p("#!..."),eq:p("=",{beforeExpr:Qf,isAssign:e1}),assign:p("_=",{beforeExpr:Qf,isAssign:e1}),slashAssign:p("_=",{beforeExpr:Qf,isAssign:e1}),xorAssign:p("_=",{beforeExpr:Qf,isAssign:e1}),moduloAssign:p("_=",{beforeExpr:Qf,isAssign:e1}),incDec:p("++/--",{prefix:hG,postfix:LRf,startsExpr:h}),bang:p("!",{beforeExpr:Qf,prefix:hG,startsExpr:h}),tilde:p("~",{beforeExpr:Qf,prefix:hG,startsExpr:h}),doubleCaret:p("^^",{startsExpr:h}),doubleAt:p("@@",{startsExpr:h}),pipeline:yf("|>",0),nullishCoalescing:yf("??",1),logicalOR:yf("||",1),logicalAND:yf("&&",2),bitwiseOR:yf("|",3),bitwiseXOR:yf("^",4),bitwiseAND:yf("&",5),equality:yf("==/!=/===/!==",6),lt:yf("</>/<=/>=",7),gt:yf("</>/<=/>=",7),relational:yf("</>/<=/>=",7),bitShift:yf("<</>>/>>>",8),bitShiftL:yf("<</>>/>>>",8),bitShiftR:yf("<</>>/>>>",8),plusMin:p("+/-",{beforeExpr:Qf,binop:9,prefix:hG,startsExpr:h}),modulo:p("%",{binop:10,startsExpr:h}),star:p("*",{binop:10}),slash:yf("/",10),exponent:p("**",{beforeExpr:Qf,binop:11,rightAssociative:!0}),_in:Mf("in",{beforeExpr:Qf,binop:7}),_instanceof:Mf("instanceof",{beforeExpr:Qf,binop:7}),_break:Mf("break"),_case:Mf("case",{beforeExpr:Qf}),_catch:Mf("catch"),_continue:Mf("continue"),_debugger:Mf("debugger"),_default:Mf("default",{beforeExpr:Qf}),_else:Mf("else",{beforeExpr:Qf}),_finally:Mf("finally"),_function:Mf("function",{startsExpr:h}),_if:Mf("if"),_return:Mf("return",{beforeExpr:Qf}),_switch:Mf("switch"),_throw:Mf("throw",{beforeExpr:Qf,prefix:hG,startsExpr:h}),_try:Mf("try"),_var:Mf("var"),_const:Mf("const"),_with:Mf("with"),_new:Mf("new",{beforeExpr:Qf,startsExpr:h}),_this:Mf("this",{startsExpr:h}),_super:Mf("super",{startsExpr:h}),_class:Mf("class",{startsExpr:h}),_extends:Mf("extends",{beforeExpr:Qf}),_export:Mf("export"),_import:Mf("import",{startsExpr:h}),_null:Mf("null",{startsExpr:h}),_true:Mf("true",{startsExpr:h}),_false:Mf("false",{startsExpr:h}),_typeof:Mf("typeof",{beforeExpr:Qf,prefix:hG,startsExpr:h}),_void:Mf("void",{beforeExpr:Qf,prefix:hG,startsExpr:h}),_delete:Mf("delete",{beforeExpr:Qf,prefix:hG,startsExpr:h}),_do:Mf("do",{isLoop:SR,beforeExpr:Qf}),_for:Mf("for",{isLoop:SR}),_while:Mf("while",{isLoop:SR}),_as:Hf("as",{startsExpr:h}),_assert:Hf("assert",{startsExpr:h}),_async:Hf("async",{startsExpr:h}),_await:Hf("await",{startsExpr:h}),_defer:Hf("defer",{startsExpr:h}),_from:Hf("from",{startsExpr:h}),_get:Hf("get",{startsExpr:h}),_let:Hf("let",{startsExpr:h}),_meta:Hf("meta",{startsExpr:h}),_of:Hf("of",{startsExpr:h}),_sent:Hf("sent",{startsExpr:h}),_set:Hf("set",{startsExpr:h}),_source:Hf("source",{startsExpr:h}),_static:Hf("static",{startsExpr:h}),_using:Hf("using",{startsExpr:h}),_yield:Hf("yield",{startsExpr:h}),_asserts:Hf("asserts",{startsExpr:h}),_checks:Hf("checks",{startsExpr:h}),_exports:Hf("exports",{startsExpr:h}),_global:Hf("global",{startsExpr:h}),_implements:Hf("implements",{startsExpr:h}),_intrinsic:Hf("intrinsic",{startsExpr:h}),_infer:Hf("infer",{startsExpr:h}),_is:Hf("is",{startsExpr:h}),_mixins:Hf("mixins",{startsExpr:h}),_proto:Hf("proto",{startsExpr:h}),_require:Hf("require",{startsExpr:h}),_satisfies:Hf("satisfies",{startsExpr:h}),_keyof:Hf("keyof",{startsExpr:h}),_readonly:Hf("readonly",{startsExpr:h}),_unique:Hf("unique",{startsExpr:h}),_abstract:Hf("abstract",{startsExpr:h}),_declare:Hf("declare",{startsExpr:h}),_enum:Hf("enum",{startsExpr:h}),_module:Hf("module",{startsExpr:h}),_namespace:Hf("namespace",{startsExpr:h}),_interface:Hf("interface",{startsExpr:h}),_type:Hf("type",{startsExpr:h}),_opaque:Hf("opaque",{startsExpr:h}),name:p("name",{startsExpr:h}),placeholder:p("%%",{startsExpr:!0}),string:p("string",{startsExpr:h}),num:p("num",{startsExpr:h}),bigint:p("bigint",{startsExpr:h}),decimal:p("decimal",{startsExpr:h}),regexp:p("regexp",{startsExpr:h}),privateName:p("#name",{startsExpr:h}),eof:p("eof"),jsxName:p("jsxName"),jsxText:p("jsxText",{beforeExpr:!0}),jsxTagStart:p("jsxTagStart",{startsExpr:!0}),jsxTagEnd:p("jsxTagEnd")};function $f(f){return f>=93&&f<=133}function ERf(f){return f<=92}function HG(f){return f>=58&&f<=133}function N9(f){return f>=58&&f<=137}function wRf(f){return NR[f]}function AR(f){return LR[f]}function kRf(f){return f>=29&&f<=33}function F9(f){return f>=129&&f<=131}function vRf(f){return f>=90&&f<=92}function ER(f){return f>=58&&f<=92}function gRf(f){return f>=39&&f<=59}function _Rf(f){return f===34}function uRf(f){return bR[f]}function hRf(f){return f>=121&&f<=123}function yRf(f){return f>=124&&f<=130}function xG(f){return IR[f]}function RW(f){return TR[f]}function xRf(f){return f===57}function UW(f){return f>=24&&f<=25}function jG(f){return DG[f]}DG[8].updateContext=(f)=>{f.pop()},DG[5].updateContext=DG[7].updateContext=DG[23].updateContext=(f)=>{f.push(Ff.brace)},DG[22].updateContext=(f)=>{if(f[f.length-1]===Ff.template)f.pop();else f.push(Ff.template)},DG[143].updateContext=(f)=>{f.push(Ff.j_expr,Ff.j_oTag)};var wR="\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CD\uA7D0\uA7D1\uA7D3\uA7D5-\uA7DC\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC",L9="\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0897-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ACE\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F\uFF65",mRf=new RegExp("["+wR+"]"),lRf=new RegExp("["+wR+L9+"]");wR=L9=null;var b9=[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,4,51,13,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,39,27,10,22,251,41,7,1,17,2,60,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,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,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,200,32,32,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,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,42,9,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,229,29,3,0,496,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],cRf=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,80,3,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,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,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,343,9,54,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,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,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,245,1,2,9,726,6,110,6,6,9,4759,9,787719,239];function OR(f,G){let X=65536;for(let W=0,R=G.length;W<R;W+=2){if(X+=G[W],X>f)return!1;if(X+=G[W+1],X>=f)return!0}return!1}function IG(f){if(f<65)return f===36;if(f<=90)return!0;if(f<97)return f===95;if(f<=122)return!0;if(f<=65535)return f>=170&&mRf.test(String.fromCharCode(f));return OR(f,b9)}function q1(f){if(f<48)return f===36;if(f<58)return!0;if(f<65)return!1;if(f<=90)return!0;if(f<97)return f===95;if(f<=122)return!0;if(f<=65535)return f>=170&&lRf.test(String.fromCharCode(f));return OR(f,b9)||OR(f,cRf)}var kR={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"]},aRf=new Set(kR.keyword),iRf=new Set(kR.strict),rRf=new Set(kR.strictBind);function E9(f,G){return G&&f==="await"||f==="enum"}function w9(f,G){return E9(f,G)||iRf.has(f)}function k9(f){return rRf.has(f)}function v9(f,G){return w9(f,G)||k9(f)}function sRf(f){return aRf.has(f)}function pRf(f,G,X){return f===64&&G===64&&IG(X)}var dRf=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 tRf(f){return dRf.has(f)}class VW{constructor(f){this.flags=0,this.names=new Map,this.firstLexicalName="",this.flags=f}}class HW{constructor(f,G){this.parser=void 0,this.scopeStack=[],this.inModule=void 0,this.undefinedExports=new Map,this.parser=f,this.inModule=G}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 f=this.currentThisScopeFlags();return(f&64)>0&&(f&2)===0}get inStaticBlock(){for(let f=this.scopeStack.length-1;;f--){let{flags:G}=this.scopeStack[f];if(G&128)return!0;if(G&451)return!1}}get inNonArrowFunction(){return(this.currentThisScopeFlags()&2)>0}get treatFunctionsAsVar(){return this.treatFunctionsAsVarInScope(this.currentScope())}createScope(f){return new VW(f)}enter(f){this.scopeStack.push(this.createScope(f))}exit(){return this.scopeStack.pop().flags}treatFunctionsAsVarInScope(f){return!!(f.flags&130||!this.parser.inModule&&f.flags&1)}declareName(f,G,X){let W=this.currentScope();if(G&8||G&16){this.checkRedeclarationInScope(W,f,G,X);let R=W.names.get(f)||0;if(G&16)R=R|4;else{if(!W.firstLexicalName)W.firstLexicalName=f;R=R|2}if(W.names.set(f,R),G&8)this.maybeExportDefined(W,f)}else if(G&4){for(let R=this.scopeStack.length-1;R>=0;--R)if(W=this.scopeStack[R],this.checkRedeclarationInScope(W,f,G,X),W.names.set(f,(W.names.get(f)||0)|1),this.maybeExportDefined(W,f),W.flags&387)break}if(this.parser.inModule&&W.flags&1)this.undefinedExports.delete(f)}maybeExportDefined(f,G){if(this.parser.inModule&&f.flags&1)this.undefinedExports.delete(G)}checkRedeclarationInScope(f,G,X,W){if(this.isRedeclaredInScope(f,G,X))this.parser.raise($.VarRedeclaration,W,{identifierName:G})}isRedeclaredInScope(f,G,X){if(!(X&1))return!1;if(X&8)return f.names.has(G);let W=f.names.get(G);if(X&16)return(W&2)>0||!this.treatFunctionsAsVarInScope(f)&&(W&1)>0;return(W&2)>0&&!(f.flags&8&&f.firstLexicalName===G)||!this.treatFunctionsAsVarInScope(f)&&(W&4)>0}checkLocalExport(f){let{name:G}=f;if(!this.scopeStack[0].names.has(G))this.undefinedExports.set(G,f.loc.start)}currentScope(){return this.scopeStack[this.scopeStack.length-1]}currentVarScopeFlags(){for(let f=this.scopeStack.length-1;;f--){let{flags:G}=this.scopeStack[f];if(G&387)return G}}currentThisScopeFlags(){for(let f=this.scopeStack.length-1;;f--){let{flags:G}=this.scopeStack[f];if(G&451&&!(G&4))return G}}}class g9 extends VW{constructor(...f){super(...f);this.declareFunctions=new Set}}class _9 extends HW{createScope(f){return new g9(f)}declareName(f,G,X){let W=this.currentScope();if(G&2048){this.checkRedeclarationInScope(W,f,G,X),this.maybeExportDefined(W,f),W.declareFunctions.add(f);return}super.declareName(f,G,X)}isRedeclaredInScope(f,G,X){if(super.isRedeclaredInScope(f,G,X))return!0;if(X&2048&&!f.declareFunctions.has(G)){let W=f.names.get(G);return(W&4)>0||(W&2)>0}return!1}checkLocalExport(f){if(!this.scopeStack[0].declareFunctions.has(f.name))super.checkLocalExport(f)}}class u9{constructor(){this.sawUnambiguousESM=!1,this.ambiguousScriptDifferentAst=!1}sourceToOffsetPos(f){return f+this.startIndex}offsetToSourcePos(f){return f-this.startIndex}hasPlugin(f){if(typeof f==="string")return this.plugins.has(f);else{let[G,X]=f;if(!this.hasPlugin(G))return!1;let W=this.plugins.get(G);for(let R of Object.keys(X))if((W==null?void 0:W[R])!==X[R])return!1;return!0}}getPluginOption(f,G){var X;return(X=this.plugins.get(f))==null?void 0:X[G]}}function h9(f,G){if(f.trailingComments===void 0)f.trailingComments=G;else f.trailingComments.unshift(...G)}function nRf(f,G){if(f.leadingComments===void 0)f.leadingComments=G;else f.leadingComments.unshift(...G)}function JX(f,G){if(f.innerComments===void 0)f.innerComments=G;else f.innerComments.unshift(...G)}function nG(f,G,X){let W=null,R=G.length;while(W===null&&R>0)W=G[--R];if(W===null||W.start>X.start)JX(f,X.comments);else h9(W,X.comments)}class y9 extends u9{addComment(f){if(this.filename)f.loc.filename=this.filename;let{commentsLen:G}=this.state;if(this.comments.length!==G)this.comments.length=G;this.comments.push(f),this.state.commentsLen++}processComment(f){let{commentStack:G}=this.state,X=G.length;if(X===0)return;let W=X-1,R=G[W];if(R.start===f.end)R.leadingNode=f,W--;let{start:J}=f;for(;W>=0;W--){let U=G[W],V=U.end;if(V>J)U.containingNode=f,this.finalizeComment(U),G.splice(W,1);else{if(V===J)U.trailingNode=f;break}}}finalizeComment(f){let{comments:G}=f;if(f.leadingNode!==null||f.trailingNode!==null){if(f.leadingNode!==null)h9(f.leadingNode,G);if(f.trailingNode!==null)nRf(f.trailingNode,G)}else{let{containingNode:X,start:W}=f;if(this.input.charCodeAt(this.offsetToSourcePos(W)-1)===44)switch(X.type){case"ObjectExpression":case"ObjectPattern":case"RecordExpression":nG(X,X.properties,f);break;case"CallExpression":case"OptionalCallExpression":nG(X,X.arguments,f);break;case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":nG(X,X.params,f);break;case"ArrayExpression":case"ArrayPattern":case"TupleExpression":nG(X,X.elements,f);break;case"ExportNamedDeclaration":case"ImportDeclaration":nG(X,X.specifiers,f);break;case"TSEnumDeclaration":nG(X,X.members,f);break;case"TSEnumBody":nG(X,X.members,f);break;default:JX(X,G)}else JX(X,G)}}finalizeRemainingComments(){let{commentStack:f}=this.state;for(let G=f.length-1;G>=0;G--)this.finalizeComment(f[G]);this.state.commentStack=[]}resetPreviousNodeTrailingComments(f){let{commentStack:G}=this.state,{length:X}=G;if(X===0)return;let W=G[X-1];if(W.leadingNode===f)W.leadingNode=null}resetPreviousIdentifierLeadingComments(f){let{commentStack:G}=this.state,{length:X}=G;if(X===0)return;if(G[X-1].trailingNode===f)G[X-1].trailingNode=null;else if(X>=2&&G[X-2].trailingNode===f)G[X-2].trailingNode=null}takeSurroundingComments(f,G,X){let{commentStack:W}=this.state,R=W.length;if(R===0)return;let J=R-1;for(;J>=0;J--){let U=W[J],V=U.end;if(U.start===X)U.leadingNode=f;else if(V===G)U.trailingNode=f;else if(V<G)break}}}var oRf=/\r\n|[\r\n\u2028\u2029]/,GW=new RegExp(oRf.source,"g");function A1(f){switch(f){case 10:case 13:case 8232:case 8233:return!0;default:return!1}}function $9(f,G,X){for(let W=G;W<X;W++)if(A1(f.charCodeAt(W)))return!0;return!1}var FR=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,$R=/(?:[^\S\n\r\u2028\u2029]|\/\/.*|\/\*.*?\*\/)*/g;function eRf(f){switch(f){case 9:case 11:case 12:case 32:case 160:case 5760:case 8192:case 8193:case 8194:case 8195:case 8196:case 8197:case 8198:case 8199:case 8200:case 8201:case 8202:case 8239:case 8287:case 12288:case 65279:return!0;default:return!1}}class vR{constructor(){this.flags=1024,this.startIndex=void 0,this.curLine=void 0,this.lineStart=void 0,this.startLoc=void 0,this.endLoc=void 0,this.errors=[],this.potentialArrowAt=-1,this.noArrowAt=[],this.noArrowParamsConversionAt=[],this.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null},this.labels=[],this.commentsLen=0,this.commentStack=[],this.pos=0,this.type=140,this.value=null,this.start=0,this.end=0,this.lastTokEndLoc=null,this.lastTokStartLoc=null,this.context=[Ff.brace],this.firstInvalidTemplateEscapePos=null,this.strictErrors=new Map,this.tokensLength=0}get strict(){return(this.flags&1)>0}set strict(f){if(f)this.flags|=1;else this.flags&=-2}init({strictMode:f,sourceType:G,startIndex:X,startLine:W,startColumn:R}){this.strict=f===!1?!1:f===!0?!0:G==="module",this.startIndex=X,this.curLine=W,this.lineStart=-R,this.startLoc=this.endLoc=new NG(W,R,X)}get maybeInArrowParameters(){return(this.flags&2)>0}set maybeInArrowParameters(f){if(f)this.flags|=2;else this.flags&=-3}get inType(){return(this.flags&4)>0}set inType(f){if(f)this.flags|=4;else this.flags&=-5}get noAnonFunctionType(){return(this.flags&8)>0}set noAnonFunctionType(f){if(f)this.flags|=8;else this.flags&=-9}get hasFlowComment(){return(this.flags&16)>0}set hasFlowComment(f){if(f)this.flags|=16;else this.flags&=-17}get isAmbientContext(){return(this.flags&32)>0}set isAmbientContext(f){if(f)this.flags|=32;else this.flags&=-33}get inAbstractClass(){return(this.flags&64)>0}set inAbstractClass(f){if(f)this.flags|=64;else this.flags&=-65}get inDisallowConditionalTypesContext(){return(this.flags&128)>0}set inDisallowConditionalTypesContext(f){if(f)this.flags|=128;else this.flags&=-129}get soloAwait(){return(this.flags&256)>0}set soloAwait(f){if(f)this.flags|=256;else this.flags&=-257}get inFSharpPipelineDirectBody(){return(this.flags&512)>0}set inFSharpPipelineDirectBody(f){if(f)this.flags|=512;else this.flags&=-513}get canStartJSXElement(){return(this.flags&1024)>0}set canStartJSXElement(f){if(f)this.flags|=1024;else this.flags&=-1025}get containsEsc(){return(this.flags&2048)>0}set containsEsc(f){if(f)this.flags|=2048;else this.flags&=-2049}get hasTopLevelAwait(){return(this.flags&4096)>0}set hasTopLevelAwait(f){if(f)this.flags|=4096;else this.flags&=-4097}curPosition(){return new NG(this.curLine,this.pos-this.lineStart,this.pos+this.startIndex)}clone(){let f=new vR;return f.flags=this.flags,f.startIndex=this.startIndex,f.curLine=this.curLine,f.lineStart=this.lineStart,f.startLoc=this.startLoc,f.endLoc=this.endLoc,f.errors=this.errors.slice(),f.potentialArrowAt=this.potentialArrowAt,f.noArrowAt=this.noArrowAt.slice(),f.noArrowParamsConversionAt=this.noArrowParamsConversionAt.slice(),f.topicContext=this.topicContext,f.labels=this.labels.slice(),f.commentsLen=this.commentsLen,f.commentStack=this.commentStack.slice(),f.pos=this.pos,f.type=this.type,f.value=this.value,f.start=this.start,f.end=this.end,f.lastTokEndLoc=this.lastTokEndLoc,f.lastTokStartLoc=this.lastTokStartLoc,f.context=this.context.slice(),f.firstInvalidTemplateEscapePos=this.firstInvalidTemplateEscapePos,f.strictErrors=this.strictErrors,f.tokensLength=this.tokensLength,f}}var fJf=function f(G){return G>=48&&G<=57},C9={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},XW={bin:(f)=>f===48||f===49,oct:(f)=>f>=48&&f<=55,dec:(f)=>f>=48&&f<=57,hex:(f)=>f>=48&&f<=57||f>=65&&f<=70||f>=97&&f<=102};function q9(f,G,X,W,R,J){let U=X,V=W,H=R,Q="",Y=null,F=X,{length:q}=G;for(;;){if(X>=q){J.unterminated(U,V,H),Q+=G.slice(F,X);break}let A=G.charCodeAt(X);if(GJf(f,A,G,X)){Q+=G.slice(F,X);break}if(A===92){Q+=G.slice(F,X);let j=XJf(G,X,W,R,f==="template",J);if(j.ch===null&&!Y)Y={pos:X,lineStart:W,curLine:R};else Q+=j.ch;({pos:X,lineStart:W,curLine:R}=j),F=X}else if(A===8232||A===8233)++X,++R,W=X;else if(A===10||A===13)if(f==="template"){if(Q+=G.slice(F,X)+`
|
|
19
|
-
`,++X,A===13&&G.charCodeAt(X)===10)++X;++R,F=W=X}else J.unterminated(U,V,H);else++X}return{pos:X,str:Q,firstInvalidLoc:Y,lineStart:W,curLine:R,containsInvalid:!!Y}}function GJf(f,G,X,W){if(f==="template")return G===96||G===36&&X.charCodeAt(W+1)===123;return G===(f==="double"?34:39)}function XJf(f,G,X,W,R,J){let U=!R;G++;let V=(Q)=>({pos:G,ch:Q,lineStart:X,curLine:W}),H=f.charCodeAt(G++);switch(H){case 110:return V(`
|
|
20
|
-
`);case 114:return V("\r");case 120:{let Q;return{code:Q,pos:G}=jR(f,G,X,W,2,!1,U,J),V(Q===null?null:String.fromCharCode(Q))}case 117:{let Q;return{code:Q,pos:G}=m9(f,G,X,W,U,J),V(Q===null?null:String.fromCodePoint(Q))}case 116:return V("\t");case 98:return V("\b");case 118:return V("\v");case 102:return V("\f");case 13:if(f.charCodeAt(G)===10)++G;case 10:X=G,++W;case 8232:case 8233:return V("");case 56:case 57:if(R)return V(null);else J.strictNumericEscape(G-1,X,W);default:if(H>=48&&H<=55){let Q=G-1,F=/^[0-7]+/.exec(f.slice(Q,G+2))[0],q=parseInt(F,8);if(q>255)F=F.slice(0,-1),q=parseInt(F,8);G+=F.length-1;let A=f.charCodeAt(G);if(F!=="0"||A===56||A===57)if(R)return V(null);else J.strictNumericEscape(Q,X,W);return V(String.fromCharCode(q))}return V(String.fromCharCode(H))}}function jR(f,G,X,W,R,J,U,V){let H=G,Q;if({n:Q,pos:G}=x9(f,G,X,W,16,R,J,!1,V,!U),Q===null)if(U)V.invalidEscapeSequence(H,X,W);else G=H-1;return{code:Q,pos:G}}function x9(f,G,X,W,R,J,U,V,H,Q){let Y=G,F=R===16?C9.hex:C9.decBinOct,q=R===16?XW.hex:R===10?XW.dec:R===8?XW.oct:XW.bin,A=!1,j=0;for(let b=0,I=J==null?1/0:J;b<I;++b){let L=f.charCodeAt(G),E;if(L===95&&V!=="bail"){let Xf=f.charCodeAt(G-1),s=f.charCodeAt(G+1);if(!V){if(Q)return{n:null,pos:G};H.numericSeparatorInEscapeSequence(G,X,W)}else if(Number.isNaN(s)||!q(s)||F.has(Xf)||F.has(s)){if(Q)return{n:null,pos:G};H.unexpectedNumericSeparator(G,X,W)}++G;continue}if(L>=97)E=L-97+10;else if(L>=65)E=L-65+10;else if(fJf(L))E=L-48;else E=1/0;if(E>=R)if(E<=9&&Q)return{n:null,pos:G};else if(E<=9&&H.invalidDigit(G,X,W,R))E=0;else if(U)E=0,A=!0;else break;++G,j=j*R+E}if(G===Y||J!=null&&G-Y!==J||A)return{n:null,pos:G};return{n:j,pos:G}}function m9(f,G,X,W,R,J){let U=f.charCodeAt(G),V;if(U===123){if(++G,{code:V,pos:G}=jR(f,G,X,W,f.indexOf("}",G)-G,!0,R,J),++G,V!==null&&V>1114111)if(R)J.invalidCodePoint(G,X,W);else return{code:null,pos:G}}else({code:V,pos:G}=jR(f,G,X,W,4,!1,R,J));return{code:V,pos:G}}function fX(f,G,X){return new NG(X,f-G,f)}var WJf=new Set([103,109,115,105,121,117,100,118]);class PG{constructor(f){let G=f.startIndex||0;this.type=f.type,this.value=f.value,this.start=G+f.start,this.end=G+f.end,this.loc=new RX(f.startLoc,f.endLoc)}}class l9 extends y9{constructor(f,G){super();this.isLookahead=void 0,this.tokens=[],this.errorHandlers_readInt={invalidDigit:(X,W,R,J)=>{if(!(this.optionFlags&1024))return!1;return this.raise($.InvalidDigit,fX(X,W,R),{radix:J}),!0},numericSeparatorInEscapeSequence:this.errorBuilder($.NumericSeparatorInEscapeSequence),unexpectedNumericSeparator:this.errorBuilder($.UnexpectedNumericSeparator)},this.errorHandlers_readCodePoint=Object.assign({},this.errorHandlers_readInt,{invalidEscapeSequence:this.errorBuilder($.InvalidEscapeSequence),invalidCodePoint:this.errorBuilder($.InvalidCodePoint)}),this.errorHandlers_readStringContents_string=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:(X,W,R)=>{this.recordStrictModeErrors($.StrictNumericEscape,fX(X,W,R))},unterminated:(X,W,R)=>{throw this.raise($.UnterminatedString,fX(X-1,W,R))}}),this.errorHandlers_readStringContents_template=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:this.errorBuilder($.StrictNumericEscape),unterminated:(X,W,R)=>{throw this.raise($.UnterminatedTemplate,fX(X,W,R))}}),this.state=new vR,this.state.init(f),this.input=G,this.length=G.length,this.comments=[],this.isLookahead=!1}pushToken(f){this.tokens.length=this.state.tokensLength,this.tokens.push(f),++this.state.tokensLength}next(){if(this.checkKeywordEscapes(),this.optionFlags&128)this.pushToken(new PG(this.state));this.state.lastTokEndLoc=this.state.endLoc,this.state.lastTokStartLoc=this.state.startLoc,this.nextToken()}eat(f){if(this.match(f))return this.next(),!0;else return!1}match(f){return this.state.type===f}createLookaheadState(f){return{pos:f.pos,value:null,type:f.type,start:f.start,end:f.end,context:[this.curContext()],inType:f.inType,startLoc:f.startLoc,lastTokEndLoc:f.lastTokEndLoc,curLine:f.curLine,lineStart:f.lineStart,curPosition:f.curPosition}}lookahead(){let f=this.state;this.state=this.createLookaheadState(f),this.isLookahead=!0,this.nextToken(),this.isLookahead=!1;let G=this.state;return this.state=f,G}nextTokenStart(){return this.nextTokenStartSince(this.state.pos)}nextTokenStartSince(f){return FR.lastIndex=f,FR.test(this.input)?FR.lastIndex:f}lookaheadCharCode(){return this.input.charCodeAt(this.nextTokenStart())}nextTokenInLineStart(){return this.nextTokenInLineStartSince(this.state.pos)}nextTokenInLineStartSince(f){return $R.lastIndex=f,$R.test(this.input)?$R.lastIndex:f}lookaheadInLineCharCode(){return this.input.charCodeAt(this.nextTokenInLineStart())}codePointAtPos(f){let G=this.input.charCodeAt(f);if((G&64512)===55296&&++f<this.input.length){let X=this.input.charCodeAt(f);if((X&64512)===56320)G=65536+((G&1023)<<10)+(X&1023)}return G}setStrict(f){if(this.state.strict=f,f)this.state.strictErrors.forEach(([G,X])=>this.raise(G,X)),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();if(this.state.pos>=this.length){this.finishToken(140);return}this.getTokenFromCode(this.codePointAtPos(this.state.pos))}skipBlockComment(f){let G;if(!this.isLookahead)G=this.state.curPosition();let X=this.state.pos,W=this.input.indexOf(f,X+2);if(W===-1)throw this.raise($.UnterminatedComment,this.state.curPosition());this.state.pos=W+f.length,GW.lastIndex=X+2;while(GW.test(this.input)&&GW.lastIndex<=W)++this.state.curLine,this.state.lineStart=GW.lastIndex;if(this.isLookahead)return;let R={type:"CommentBlock",value:this.input.slice(X+2,W),start:this.sourceToOffsetPos(X),end:this.sourceToOffsetPos(W+f.length),loc:new RX(G,this.state.curPosition())};if(this.optionFlags&128)this.pushToken(R);return R}skipLineComment(f){let G=this.state.pos,X;if(!this.isLookahead)X=this.state.curPosition();let W=this.input.charCodeAt(this.state.pos+=f);if(this.state.pos<this.length)while(!A1(W)&&++this.state.pos<this.length)W=this.input.charCodeAt(this.state.pos);if(this.isLookahead)return;let R=this.state.pos,U={type:"CommentLine",value:this.input.slice(G+f,R),start:this.sourceToOffsetPos(G),end:this.sourceToOffsetPos(R),loc:new RX(X,this.state.curPosition())};if(this.optionFlags&128)this.pushToken(U);return U}skipSpace(){let f=this.state.pos,G=this.optionFlags&2048?[]:null;f:while(this.state.pos<this.length){let X=this.input.charCodeAt(this.state.pos);switch(X){case 32:case 160:case 9:++this.state.pos;break;case 13:if(this.input.charCodeAt(this.state.pos+1)===10)++this.state.pos;case 10:case 8232:case 8233:++this.state.pos,++this.state.curLine,this.state.lineStart=this.state.pos;break;case 47:switch(this.input.charCodeAt(this.state.pos+1)){case 42:{let W=this.skipBlockComment("*/");if(W!==void 0)this.addComment(W),G==null||G.push(W);break}case 47:{let W=this.skipLineComment(2);if(W!==void 0)this.addComment(W),G==null||G.push(W);break}default:break f}break;default:if(eRf(X))++this.state.pos;else if(X===45&&!this.inModule&&this.optionFlags&4096){let W=this.state.pos;if(this.input.charCodeAt(W+1)===45&&this.input.charCodeAt(W+2)===62&&(f===0||this.state.lineStart>f)){let R=this.skipLineComment(3);if(R!==void 0)this.addComment(R),G==null||G.push(R)}else break f}else if(X===60&&!this.inModule&&this.optionFlags&4096){let W=this.state.pos;if(this.input.charCodeAt(W+1)===33&&this.input.charCodeAt(W+2)===45&&this.input.charCodeAt(W+3)===45){let R=this.skipLineComment(4);if(R!==void 0)this.addComment(R),G==null||G.push(R)}else break f}else break f}}if((G==null?void 0:G.length)>0){let X=this.state.pos,W={start:this.sourceToOffsetPos(f),end:this.sourceToOffsetPos(X),comments:G,leadingNode:null,trailingNode:null,containingNode:null};this.state.commentStack.push(W)}}finishToken(f,G){this.state.end=this.state.pos,this.state.endLoc=this.state.curPosition();let X=this.state.type;if(this.state.type=f,this.state.value=G,!this.isLookahead)this.updateContext(X)}replaceToken(f){this.state.type=f,this.updateContext()}readToken_numberSign(){if(this.state.pos===0&&this.readToken_interpreter())return;let f=this.state.pos+1,G=this.codePointAtPos(f);if(G>=48&&G<=57)throw this.raise($.UnexpectedDigitAfterHash,this.state.curPosition());if(G===123||G===91&&this.hasPlugin("recordAndTuple")){if(this.expectPlugin("recordAndTuple"),this.getPluginOption("recordAndTuple","syntaxType")==="bar")throw this.raise(G===123?$.RecordExpressionHashIncorrectStartSyntaxType:$.TupleExpressionHashIncorrectStartSyntaxType,this.state.curPosition());if(this.state.pos+=2,G===123)this.finishToken(7);else this.finishToken(1)}else if(IG(G))++this.state.pos,this.finishToken(139,this.readWord1(G));else if(G===92)++this.state.pos,this.finishToken(139,this.readWord1());else this.finishOp(27,1)}readToken_dot(){let f=this.input.charCodeAt(this.state.pos+1);if(f>=48&&f<=57){this.readNumber(!0);return}if(f===46&&this.input.charCodeAt(this.state.pos+2)===46)this.state.pos+=3,this.finishToken(21);else++this.state.pos,this.finishToken(16)}readToken_slash(){if(this.input.charCodeAt(this.state.pos+1)===61)this.finishOp(31,2);else this.finishOp(56,1)}readToken_interpreter(){if(this.state.pos!==0||this.length<2)return!1;let f=this.input.charCodeAt(this.state.pos+1);if(f!==33)return!1;let G=this.state.pos;this.state.pos+=1;while(!A1(f)&&++this.state.pos<this.length)f=this.input.charCodeAt(this.state.pos);let X=this.input.slice(G+2,this.state.pos);return this.finishToken(28,X),!0}readToken_mult_modulo(f){let G=f===42?55:54,X=1,W=this.input.charCodeAt(this.state.pos+1);if(f===42&&W===42)X++,W=this.input.charCodeAt(this.state.pos+2),G=57;if(W===61&&!this.state.inType)X++,G=f===37?33:30;this.finishOp(G,X)}readToken_pipe_amp(f){let G=this.input.charCodeAt(this.state.pos+1);if(G===f){if(this.input.charCodeAt(this.state.pos+2)===61)this.finishOp(30,3);else this.finishOp(f===124?41:42,2);return}if(f===124){if(G===62){this.finishOp(39,2);return}if(this.hasPlugin("recordAndTuple")&&G===125){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar")throw this.raise($.RecordExpressionBarIncorrectEndSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(9);return}if(this.hasPlugin("recordAndTuple")&&G===93){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar")throw this.raise($.TupleExpressionBarIncorrectEndSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(4);return}}if(G===61){this.finishOp(30,2);return}this.finishOp(f===124?43:45,1)}readToken_caret(){let f=this.input.charCodeAt(this.state.pos+1);if(f===61&&!this.state.inType)this.finishOp(32,2);else if(f===94&&this.hasPlugin(["pipelineOperator",{proposal:"hack",topicToken:"^^"}])){if(this.finishOp(37,2),this.input.codePointAt(this.state.pos)===94)this.unexpected()}else this.finishOp(44,1)}readToken_atSign(){if(this.input.charCodeAt(this.state.pos+1)===64&&this.hasPlugin(["pipelineOperator",{proposal:"hack",topicToken:"@@"}]))this.finishOp(38,2);else this.finishOp(26,1)}readToken_plus_min(f){let G=this.input.charCodeAt(this.state.pos+1);if(G===f){this.finishOp(34,2);return}if(G===61)this.finishOp(30,2);else this.finishOp(53,1)}readToken_lt(){let{pos:f}=this.state,G=this.input.charCodeAt(f+1);if(G===60){if(this.input.charCodeAt(f+2)===61){this.finishOp(30,3);return}this.finishOp(51,2);return}if(G===61){this.finishOp(49,2);return}this.finishOp(47,1)}readToken_gt(){let{pos:f}=this.state,G=this.input.charCodeAt(f+1);if(G===62){let X=this.input.charCodeAt(f+2)===62?3:2;if(this.input.charCodeAt(f+X)===61){this.finishOp(30,X+1);return}this.finishOp(52,X);return}if(G===61){this.finishOp(49,2);return}this.finishOp(48,1)}readToken_eq_excl(f){let G=this.input.charCodeAt(this.state.pos+1);if(G===61){this.finishOp(46,this.input.charCodeAt(this.state.pos+2)===61?3:2);return}if(f===61&&G===62){this.state.pos+=2,this.finishToken(19);return}this.finishOp(f===61?29:35,1)}readToken_question(){let f=this.input.charCodeAt(this.state.pos+1),G=this.input.charCodeAt(this.state.pos+2);if(f===63)if(G===61)this.finishOp(30,3);else this.finishOp(40,2);else if(f===46&&!(G>=48&&G<=57))this.state.pos+=2,this.finishToken(18);else++this.state.pos,this.finishToken(17)}getTokenFromCode(f){switch(f){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($.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($.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:if(this.hasPlugin("functionBind")&&this.input.charCodeAt(this.state.pos+1)===58)this.finishOp(15,2);else++this.state.pos,this.finishToken(14);return;case 63:this.readToken_question();return;case 96:this.readTemplateToken();return;case 48:{let G=this.input.charCodeAt(this.state.pos+1);if(G===120||G===88){this.readRadixNumber(16);return}if(G===111||G===79){this.readRadixNumber(8);return}if(G===98||G===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(f);return;case 47:this.readToken_slash();return;case 37:case 42:this.readToken_mult_modulo(f);return;case 124:case 38:this.readToken_pipe_amp(f);return;case 94:this.readToken_caret();return;case 43:case 45:this.readToken_plus_min(f);return;case 60:this.readToken_lt();return;case 62:this.readToken_gt();return;case 61:case 33:this.readToken_eq_excl(f);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(IG(f)){this.readWord(f);return}}throw this.raise($.InvalidOrUnexpectedToken,this.state.curPosition(),{unexpected:String.fromCodePoint(f)})}finishOp(f,G){let X=this.input.slice(this.state.pos,this.state.pos+G);this.state.pos+=G,this.finishToken(f,X)}readRegexp(){let f=this.state.startLoc,G=this.state.start+1,X,W,{pos:R}=this.state;for(;;++R){if(R>=this.length)throw this.raise($.UnterminatedRegExp,xf(f,1));let H=this.input.charCodeAt(R);if(A1(H))throw this.raise($.UnterminatedRegExp,xf(f,1));if(X)X=!1;else{if(H===91)W=!0;else if(H===93&&W)W=!1;else if(H===47&&!W)break;X=H===92}}let J=this.input.slice(G,R);++R;let U="",V=()=>xf(f,R+2-G);while(R<this.length){let H=this.codePointAtPos(R),Q=String.fromCharCode(H);if(WJf.has(H)){if(H===118){if(U.includes("u"))this.raise($.IncompatibleRegExpUVFlags,V())}else if(H===117){if(U.includes("v"))this.raise($.IncompatibleRegExpUVFlags,V())}if(U.includes(Q))this.raise($.DuplicateRegExpFlags,V())}else if(q1(H)||H===92)this.raise($.MalformedRegExpFlags,V());else break;++R,U+=Q}this.state.pos=R,this.finishToken(138,{pattern:J,flags:U})}readInt(f,G,X=!1,W=!0){let{n:R,pos:J}=x9(this.input,this.state.pos,this.state.lineStart,this.state.curLine,f,G,X,W,this.errorHandlers_readInt,!1);return this.state.pos=J,R}readRadixNumber(f){let G=this.state.pos,X=this.state.curPosition(),W=!1;this.state.pos+=2;let R=this.readInt(f);if(R==null)this.raise($.InvalidDigit,xf(X,2),{radix:f});let J=this.input.charCodeAt(this.state.pos);if(J===110)++this.state.pos,W=!0;else if(J===109)throw this.raise($.InvalidDecimal,X);if(IG(this.codePointAtPos(this.state.pos)))throw this.raise($.NumberIdentifier,this.state.curPosition());if(W){let U=this.input.slice(G,this.state.pos).replace(/[_n]/g,"");this.finishToken(136,U);return}this.finishToken(135,R)}readNumber(f){let G=this.state.pos,X=this.state.curPosition(),W=!1,R=!1,J=!1,U=!1;if(!f&&this.readInt(10)===null)this.raise($.InvalidNumber,this.state.curPosition());let V=this.state.pos-G>=2&&this.input.charCodeAt(G)===48;if(V){let q=this.input.slice(G,this.state.pos);if(this.recordStrictModeErrors($.StrictOctalLiteral,X),!this.state.strict){let A=q.indexOf("_");if(A>0)this.raise($.ZeroDigitNumericSeparator,xf(X,A))}U=V&&!/[89]/.test(q)}let H=this.input.charCodeAt(this.state.pos);if(H===46&&!U)++this.state.pos,this.readInt(10),W=!0,H=this.input.charCodeAt(this.state.pos);if((H===69||H===101)&&!U){if(H=this.input.charCodeAt(++this.state.pos),H===43||H===45)++this.state.pos;if(this.readInt(10)===null)this.raise($.InvalidOrMissingExponent,X);W=!0,J=!0,H=this.input.charCodeAt(this.state.pos)}if(H===110){if(W||V)this.raise($.InvalidBigIntLiteral,X);++this.state.pos,R=!0}if(H===109){if(this.expectPlugin("decimal",this.state.curPosition()),J||V)this.raise($.InvalidDecimal,X);++this.state.pos;var Q=!0}if(IG(this.codePointAtPos(this.state.pos)))throw this.raise($.NumberIdentifier,this.state.curPosition());let Y=this.input.slice(G,this.state.pos).replace(/[_mn]/g,"");if(R){this.finishToken(136,Y);return}if(Q){this.finishToken(137,Y);return}let F=U?parseInt(Y,8):parseFloat(Y);this.finishToken(135,F)}readCodePoint(f){let{code:G,pos:X}=m9(this.input,this.state.pos,this.state.lineStart,this.state.curLine,f,this.errorHandlers_readCodePoint);return this.state.pos=X,G}readString(f){let{str:G,pos:X,curLine:W,lineStart:R}=q9(f===34?"double":"single",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_string);this.state.pos=X+1,this.state.lineStart=R,this.state.curLine=W,this.finishToken(134,G)}readTemplateContinuation(){if(!this.match(8))this.unexpected(null,8);this.state.pos--,this.readTemplateToken()}readTemplateToken(){let f=this.input[this.state.pos],{str:G,firstInvalidLoc:X,pos:W,curLine:R,lineStart:J}=q9("template",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_template);if(this.state.pos=W+1,this.state.lineStart=J,this.state.curLine=R,X)this.state.firstInvalidTemplateEscapePos=new NG(X.curLine,X.pos-X.lineStart,this.sourceToOffsetPos(X.pos));if(this.input.codePointAt(W)===96)this.finishToken(24,X?null:f+G+"`");else this.state.pos++,this.finishToken(25,X?null:f+G+"${")}recordStrictModeErrors(f,G){let X=G.index;if(this.state.strict&&!this.state.strictErrors.has(X))this.raise(f,G);else this.state.strictErrors.set(X,[f,G])}readWord1(f){this.state.containsEsc=!1;let G="",X=this.state.pos,W=this.state.pos;if(f!==void 0)this.state.pos+=f<=65535?1:2;while(this.state.pos<this.length){let R=this.codePointAtPos(this.state.pos);if(q1(R))this.state.pos+=R<=65535?1:2;else if(R===92){this.state.containsEsc=!0,G+=this.input.slice(W,this.state.pos);let J=this.state.curPosition(),U=this.state.pos===X?IG:q1;if(this.input.charCodeAt(++this.state.pos)!==117){this.raise($.MissingUnicodeEscape,this.state.curPosition()),W=this.state.pos-1;continue}++this.state.pos;let V=this.readCodePoint(!0);if(V!==null){if(!U(V))this.raise($.EscapedCharNotAnIdentifier,J);G+=String.fromCodePoint(V)}W=this.state.pos}else break}return G+this.input.slice(W,this.state.pos)}readWord(f){let G=this.readWord1(f),X=DR.get(G);if(X!==void 0)this.finishToken(X,xG(X));else this.finishToken(132,G)}checkKeywordEscapes(){let{type:f}=this.state;if(ER(f)&&this.state.containsEsc)this.raise($.InvalidEscapedReservedWord,this.state.startLoc,{reservedWord:xG(f)})}raise(f,G,X={}){let W=G instanceof NG?G:G.loc.start,R=f(W,X);if(!(this.optionFlags&1024))throw R;if(!this.isLookahead)this.state.errors.push(R);return R}raiseOverwrite(f,G,X={}){let W=G instanceof NG?G:G.loc.start,R=W.index,J=this.state.errors;for(let U=J.length-1;U>=0;U--){let V=J[U];if(V.loc.index===R)return J[U]=f(W,X);if(V.loc.index<R)break}return this.raise(f,G,X)}updateContext(f){}unexpected(f,G){throw this.raise($.UnexpectedToken,f!=null?f:this.state.startLoc,{expected:G?xG(G):null})}expectPlugin(f,G){if(this.hasPlugin(f))return!0;throw this.raise($.MissingPlugin,G!=null?G:this.state.startLoc,{missingPlugin:[f]})}expectOnePlugin(f){if(!f.some((G)=>this.hasPlugin(G)))throw this.raise($.MissingOneOfPlugins,this.state.startLoc,{missingPlugin:f})}errorBuilder(f){return(G,X,W)=>{this.raise(f,fX(G,X,W))}}}class c9{constructor(){this.privateNames=new Set,this.loneAccessors=new Map,this.undefinedPrivateNames=new Map}}class a9{constructor(f){this.parser=void 0,this.stack=[],this.undefinedPrivateNames=new Map,this.parser=f}current(){return this.stack[this.stack.length-1]}enter(){this.stack.push(new c9)}exit(){let f=this.stack.pop(),G=this.current();for(let[X,W]of Array.from(f.undefinedPrivateNames))if(G){if(!G.undefinedPrivateNames.has(X))G.undefinedPrivateNames.set(X,W)}else this.parser.raise($.InvalidPrivateFieldResolution,W,{identifierName:X})}declarePrivateName(f,G,X){let{privateNames:W,loneAccessors:R,undefinedPrivateNames:J}=this.current(),U=W.has(f);if(G&3){let V=U&&R.get(f);if(V){let H=V&4,Q=G&4,Y=V&3,F=G&3;if(U=Y===F||H!==Q,!U)R.delete(f)}else if(!U)R.set(f,G)}if(U)this.parser.raise($.PrivateNameRedeclaration,X,{identifierName:f});W.add(f),J.delete(f)}usePrivateName(f,G){let X;for(X of this.stack)if(X.privateNames.has(f))return;if(X)X.undefinedPrivateNames.set(f,G);else this.parser.raise($.InvalidPrivateFieldResolution,G,{identifierName:f})}}class VX{constructor(f=0){this.type=f}canBeArrowParameterDeclaration(){return this.type===2||this.type===1}isCertainlyParameterDeclaration(){return this.type===3}}class gR extends VX{constructor(f){super(f);this.declarationErrors=new Map}recordDeclarationError(f,G){let X=G.index;this.declarationErrors.set(X,[f,G])}clearDeclarationError(f){this.declarationErrors.delete(f)}iterateErrors(f){this.declarationErrors.forEach(f)}}class i9{constructor(f){this.parser=void 0,this.stack=[new VX],this.parser=f}enter(f){this.stack.push(f)}exit(){this.stack.pop()}recordParameterInitializerError(f,G){let X=G.loc.start,{stack:W}=this,R=W.length-1,J=W[R];while(!J.isCertainlyParameterDeclaration()){if(J.canBeArrowParameterDeclaration())J.recordDeclarationError(f,X);else return;J=W[--R]}this.parser.raise(f,X)}recordArrowParameterBindingError(f,G){let{stack:X}=this,W=X[X.length-1],R=G.loc.start;if(W.isCertainlyParameterDeclaration())this.parser.raise(f,R);else if(W.canBeArrowParameterDeclaration())W.recordDeclarationError(f,R);else return}recordAsyncArrowParametersError(f){let{stack:G}=this,X=G.length-1,W=G[X];while(W.canBeArrowParameterDeclaration()){if(W.type===2)W.recordDeclarationError($.AwaitBindingIdentifier,f);W=G[--X]}}validateAsPattern(){let{stack:f}=this,G=f[f.length-1];if(!G.canBeArrowParameterDeclaration())return;G.iterateErrors(([X,W])=>{this.parser.raise(X,W);let R=f.length-2,J=f[R];while(J.canBeArrowParameterDeclaration())J.clearDeclarationError(W.index),J=f[--R]})}}function RJf(){return new VX(3)}function JJf(){return new gR(1)}function UJf(){return new gR(2)}function r9(){return new VX}class s9{constructor(){this.stacks=[]}enter(f){this.stacks.push(f)}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 JW(f,G){return(f?2:0)|(G?1:0)}class p9 extends l9{addExtra(f,G,X,W=!0){if(!f)return;let{extra:R}=f;if(R==null)R={},f.extra=R;if(W)R[G]=X;else Object.defineProperty(R,G,{enumerable:W,value:X})}isContextual(f){return this.state.type===f&&!this.state.containsEsc}isUnparsedContextual(f,G){let X=f+G.length;if(this.input.slice(f,X)===G){let W=this.input.charCodeAt(X);return!(q1(W)||(W&64512)===55296)}return!1}isLookaheadContextual(f){let G=this.nextTokenStart();return this.isUnparsedContextual(G,f)}eatContextual(f){if(this.isContextual(f))return this.next(),!0;return!1}expectContextual(f,G){if(!this.eatContextual(f)){if(G!=null)throw this.raise(G,this.state.startLoc);this.unexpected(null,f)}}canInsertSemicolon(){return this.match(140)||this.match(8)||this.hasPrecedingLineBreak()}hasPrecedingLineBreak(){return $9(this.input,this.offsetToSourcePos(this.state.lastTokEndLoc.index),this.state.start)}hasFollowingLineBreak(){return $9(this.input,this.state.end,this.nextTokenStart())}isLineTerminator(){return this.eat(13)||this.canInsertSemicolon()}semicolon(f=!0){if(f?this.isLineTerminator():this.eat(13))return;this.raise($.MissingSemicolon,this.state.lastTokEndLoc)}expect(f,G){if(!this.eat(f))this.unexpected(G,f)}tryParse(f,G=this.state.clone()){let X={node:null};try{let W=f((R=null)=>{throw X.node=R,X});if(this.state.errors.length>G.errors.length){let R=this.state;return this.state=G,this.state.tokensLength=R.tokensLength,{node:W,error:R.errors[G.errors.length],thrown:!1,aborted:!1,failState:R}}return{node:W,error:null,thrown:!1,aborted:!1,failState:null}}catch(W){let R=this.state;if(this.state=G,W instanceof SyntaxError)return{node:null,error:W,thrown:!0,aborted:!1,failState:R};if(W===X)return{node:X.node,error:null,thrown:!1,aborted:!0,failState:R};throw W}}checkExpressionErrors(f,G){if(!f)return!1;let{shorthandAssignLoc:X,doubleProtoLoc:W,privateKeyLoc:R,optionalParametersLoc:J}=f,U=!!X||!!W||!!J||!!R;if(!G)return U;if(X!=null)this.raise($.InvalidCoverInitializedName,X);if(W!=null)this.raise($.DuplicateProto,W);if(R!=null)this.raise($.UnexpectedPrivateField,R);if(J!=null)this.unexpected(J)}isLiteralPropertyName(){return N9(this.state.type)}isPrivateName(f){return f.type==="PrivateName"}getPrivateNameSV(f){return f.id.name}hasPropertyAsPrivateName(f){return(f.type==="MemberExpression"||f.type==="OptionalMemberExpression")&&this.isPrivateName(f.property)}isObjectProperty(f){return f.type==="ObjectProperty"}isObjectMethod(f){return f.type==="ObjectMethod"}initializeScopes(f=this.options.sourceType==="module"){let G=this.state.labels;this.state.labels=[];let X=this.exportedIdentifiers;this.exportedIdentifiers=new Set;let W=this.inModule;this.inModule=f;let R=this.scope,J=this.getScopeHandler();this.scope=new J(this,f);let U=this.prodParam;this.prodParam=new s9;let V=this.classScope;this.classScope=new a9(this);let H=this.expressionScope;return this.expressionScope=new i9(this),()=>{this.state.labels=G,this.exportedIdentifiers=X,this.inModule=W,this.scope=R,this.prodParam=U,this.classScope=V,this.expressionScope=H}}enterInitialScopes(){let f=0;if(this.inModule)f|=2;this.scope.enter(1),this.prodParam.enter(f)}checkDestructuringPrivate(f){let{privateKeyLoc:G}=f;if(G!==null)this.expectPlugin("destructuringPrivate",G)}}class WX{constructor(){this.shorthandAssignLoc=null,this.doubleProtoLoc=null,this.privateKeyLoc=null,this.optionalParametersLoc=null}}class UX{constructor(f,G,X){if(this.type="",this.start=G,this.end=0,this.loc=new RX(X),(f==null?void 0:f.optionFlags)&64)this.range=[G,0];if(f!=null&&f.filename)this.loc.filename=f.filename}}var _R=UX.prototype;_R.__clone=function(){let f=new UX(void 0,this.start,this.loc.start),G=Object.keys(this);for(let X=0,W=G.length;X<W;X++){let R=G[X];if(R!=="leadingComments"&&R!=="trailingComments"&&R!=="innerComments")f[R]=this[R]}return f};function VJf(f){return LG(f)}function LG(f){let{type:G,start:X,end:W,loc:R,range:J,extra:U,name:V}=f,H=Object.create(_R);if(H.type=G,H.start=X,H.end=W,H.loc=R,H.range=J,H.extra=U,H.name=V,G==="Placeholder")H.expectedNode=f.expectedNode;return H}function HJf(f){let{type:G,start:X,end:W,loc:R,range:J,extra:U}=f;if(G==="Placeholder")return VJf(f);let V=Object.create(_R);if(V.type=G,V.start=X,V.end=W,V.loc=R,V.range=J,f.raw!==void 0)V.raw=f.raw;else V.extra=U;return V.value=f.value,V}class d9 extends p9{startNode(){let f=this.state.startLoc;return new UX(this,f.index,f)}startNodeAt(f){return new UX(this,f.index,f)}startNodeAtNode(f){return this.startNodeAt(f.loc.start)}finishNode(f,G){return this.finishNodeAt(f,G,this.state.lastTokEndLoc)}finishNodeAt(f,G,X){if(f.type=G,f.end=X.index,f.loc.end=X,this.optionFlags&64)f.range[1]=X.index;if(this.optionFlags&2048)this.processComment(f);return f}resetStartLocation(f,G){if(f.start=G.index,f.loc.start=G,this.optionFlags&64)f.range[0]=G.index}resetEndLocation(f,G=this.state.lastTokEndLoc){if(f.end=G.index,f.loc.end=G,this.optionFlags&64)f.range[1]=G.index}resetStartLocationFromNode(f,G){this.resetStartLocation(f,G.loc.start)}}var QJf=new Set(["_","any","bool","boolean","empty","extends","false","interface","mixed","null","number","static","string","true","typeof","void"]),n=TG`flow`({AmbiguousConditionalArrow:"Ambiguous expression: wrap the arrow functions in parentheses to disambiguate.",AmbiguousDeclareModuleKind:"Found both `declare module.exports` and `declare export` in the same module. Modules can only have 1 since they are either an ES module or they are a CommonJS module.",AssignReservedType:({reservedType:f})=>`Cannot overwrite reserved type ${f}.`,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:f,enumName:G})=>`Boolean enum members need to be initialized. Use either \`${f} = true,\` or \`${f} = false,\` in enum \`${G}\`.`,EnumDuplicateMemberName:({memberName:f,enumName:G})=>`Enum member names need to be unique, but the name \`${f}\` has already been used before in enum \`${G}\`.`,EnumInconsistentMemberValues:({enumName:f})=>`Enum \`${f}\` has inconsistent member initializers. Either use no initializers, or consistently use literals (either booleans, numbers, or strings) for all member initializers.`,EnumInvalidExplicitType:({invalidEnumType:f,enumName:G})=>`Enum type \`${f}\` is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${G}\`.`,EnumInvalidExplicitTypeUnknownSupplied:({enumName:f})=>`Supplied enum type is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${f}\`.`,EnumInvalidMemberInitializerPrimaryType:({enumName:f,memberName:G,explicitType:X})=>`Enum \`${f}\` has type \`${X}\`, so the initializer of \`${G}\` needs to be a ${X} literal.`,EnumInvalidMemberInitializerSymbolType:({enumName:f,memberName:G})=>`Symbol enum members cannot be initialized. Use \`${G},\` in enum \`${f}\`.`,EnumInvalidMemberInitializerUnknownType:({enumName:f,memberName:G})=>`The enum member initializer for \`${G}\` needs to be a literal (either a boolean, number, or string) in enum \`${f}\`.`,EnumInvalidMemberName:({enumName:f,memberName:G,suggestion:X})=>`Enum member names cannot start with lowercase 'a' through 'z'. Instead of using \`${G}\`, consider using \`${X}\`, in enum \`${f}\`.`,EnumNumberMemberNotInitialized:({enumName:f,memberName:G})=>`Number enum members need to be initialized, e.g. \`${G} = 1\` in enum \`${f}\`.`,EnumStringMemberInconsistentlyInitialized:({enumName:f})=>`String enum members need to consistently either all use initializers, or use no initializers, in enum \`${f}\`.`,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:f})=>`Unexpected reserved type ${f}.`,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 `<T> async () => {}`, use `async <T>() => {}`.",UnsupportedDeclareExportKind:({unsupportedExportKind:f,suggestion:G})=>`\`declare export ${f}\` is not supported. Use \`${G}\` instead.`,UnsupportedStatementInDeclareModule:"Only declares and type imports are allowed inside declare module.",UnterminatedFlowComment:"Unterminated flow-comment."});function ZJf(f){return f.type==="DeclareExportAllDeclaration"||f.type==="DeclareExportDeclaration"&&(!f.declaration||f.declaration.type!=="TypeAlias"&&f.declaration.type!=="InterfaceDeclaration")}function A9(f){return f.importKind==="type"||f.importKind==="typeof"}var YJf={const:"declare export var",let:"declare export var",type:"export type",interface:"export interface"};function zJf(f,G){let X=[],W=[];for(let R=0;R<f.length;R++)(G(f[R],R,f)?X:W).push(f[R]);return[X,W]}var BJf=/\*?\s*@((?:no)?flow)\b/,MJf=(f)=>class G extends f{constructor(...X){super(...X);this.flowPragma=void 0}getScopeHandler(){return _9}shouldParseTypes(){return this.getPluginOption("flow","all")||this.flowPragma==="flow"}finishToken(X,W){if(X!==134&&X!==13&&X!==28){if(this.flowPragma===void 0)this.flowPragma=null}super.finishToken(X,W)}addComment(X){if(this.flowPragma===void 0){let W=BJf.exec(X.value);if(!W);else if(W[1]==="flow")this.flowPragma="flow";else if(W[1]==="noflow")this.flowPragma="noflow";else throw new Error("Unexpected flow pragma")}super.addComment(X)}flowParseTypeInitialiser(X){let W=this.state.inType;this.state.inType=!0,this.expect(X||14);let R=this.flowParseType();return this.state.inType=W,R}flowParsePredicate(){let X=this.startNode(),W=this.state.startLoc;if(this.next(),this.expectContextual(110),this.state.lastTokStartLoc.index>W.index+1)this.raise(n.UnexpectedSpaceBetweenModuloChecks,W);if(this.eat(10))return X.value=super.parseExpression(),this.expect(11),this.finishNode(X,"DeclaredPredicate");else return this.finishNode(X,"InferredPredicate")}flowParseTypeAndPredicateInitialiser(){let X=this.state.inType;this.state.inType=!0,this.expect(14);let W=null,R=null;if(this.match(54))this.state.inType=X,R=this.flowParsePredicate();else if(W=this.flowParseType(),this.state.inType=X,this.match(54))R=this.flowParsePredicate();return[W,R]}flowParseDeclareClass(X){return this.next(),this.flowParseInterfaceish(X,!0),this.finishNode(X,"DeclareClass")}flowParseDeclareFunction(X){this.next();let W=X.id=this.parseIdentifier(),R=this.startNode(),J=this.startNode();if(this.match(47))R.typeParameters=this.flowParseTypeParameterDeclaration();else R.typeParameters=null;this.expect(10);let U=this.flowParseFunctionTypeParams();return R.params=U.params,R.rest=U.rest,R.this=U._this,this.expect(11),[R.returnType,X.predicate]=this.flowParseTypeAndPredicateInitialiser(),J.typeAnnotation=this.finishNode(R,"FunctionTypeAnnotation"),W.typeAnnotation=this.finishNode(J,"TypeAnnotation"),this.resetEndLocation(W),this.semicolon(),this.scope.declareName(X.id.name,2048,X.id.loc.start),this.finishNode(X,"DeclareFunction")}flowParseDeclare(X,W){if(this.match(80))return this.flowParseDeclareClass(X);else if(this.match(68))return this.flowParseDeclareFunction(X);else if(this.match(74))return this.flowParseDeclareVariable(X);else if(this.eatContextual(127))if(this.match(16))return this.flowParseDeclareModuleExports(X);else{if(W)this.raise(n.NestedDeclareModule,this.state.lastTokStartLoc);return this.flowParseDeclareModule(X)}else if(this.isContextual(130))return this.flowParseDeclareTypeAlias(X);else if(this.isContextual(131))return this.flowParseDeclareOpaqueType(X);else if(this.isContextual(129))return this.flowParseDeclareInterface(X);else if(this.match(82))return this.flowParseDeclareExportDeclaration(X,W);else this.unexpected()}flowParseDeclareVariable(X){return this.next(),X.id=this.flowParseTypeAnnotatableIdentifier(!0),this.scope.declareName(X.id.name,5,X.id.loc.start),this.semicolon(),this.finishNode(X,"DeclareVariable")}flowParseDeclareModule(X){if(this.scope.enter(0),this.match(134))X.id=super.parseExprAtom();else X.id=this.parseIdentifier();let W=X.body=this.startNode(),R=W.body=[];this.expect(5);while(!this.match(8)){let V=this.startNode();if(this.match(83)){if(this.next(),!this.isContextual(130)&&!this.match(87))this.raise(n.InvalidNonTypeImportInDeclareModule,this.state.lastTokStartLoc);super.parseImport(V)}else this.expectContextual(125,n.UnsupportedStatementInDeclareModule),V=this.flowParseDeclare(V,!0);R.push(V)}this.scope.exit(),this.expect(8),this.finishNode(W,"BlockStatement");let J=null,U=!1;return R.forEach((V)=>{if(ZJf(V)){if(J==="CommonJS")this.raise(n.AmbiguousDeclareModuleKind,V);J="ES"}else if(V.type==="DeclareModuleExports"){if(U)this.raise(n.DuplicateDeclareModuleExports,V);if(J==="ES")this.raise(n.AmbiguousDeclareModuleKind,V);J="CommonJS",U=!0}}),X.kind=J||"CommonJS",this.finishNode(X,"DeclareModule")}flowParseDeclareExportDeclaration(X,W){if(this.expect(82),this.eat(65)){if(this.match(68)||this.match(80))X.declaration=this.flowParseDeclare(this.startNode());else X.declaration=this.flowParseType(),this.semicolon();return X.default=!0,this.finishNode(X,"DeclareExportDeclaration")}else{if(this.match(75)||this.isLet()||(this.isContextual(130)||this.isContextual(129))&&!W){let R=this.state.value;throw this.raise(n.UnsupportedDeclareExportKind,this.state.startLoc,{unsupportedExportKind:R,suggestion:YJf[R]})}if(this.match(74)||this.match(68)||this.match(80)||this.isContextual(131))return X.declaration=this.flowParseDeclare(this.startNode()),X.default=!1,this.finishNode(X,"DeclareExportDeclaration");else if(this.match(55)||this.match(5)||this.isContextual(129)||this.isContextual(130)||this.isContextual(131)){if(X=this.parseExport(X,null),X.type==="ExportNamedDeclaration")X.type="ExportDeclaration",X.default=!1,delete X.exportKind;return X.type="Declare"+X.type,X}}this.unexpected()}flowParseDeclareModuleExports(X){return this.next(),this.expectContextual(111),X.typeAnnotation=this.flowParseTypeAnnotation(),this.semicolon(),this.finishNode(X,"DeclareModuleExports")}flowParseDeclareTypeAlias(X){this.next();let W=this.flowParseTypeAlias(X);return W.type="DeclareTypeAlias",W}flowParseDeclareOpaqueType(X){this.next();let W=this.flowParseOpaqueType(X,!0);return W.type="DeclareOpaqueType",W}flowParseDeclareInterface(X){return this.next(),this.flowParseInterfaceish(X,!1),this.finishNode(X,"DeclareInterface")}flowParseInterfaceish(X,W){if(X.id=this.flowParseRestrictedIdentifier(!W,!0),this.scope.declareName(X.id.name,W?17:8201,X.id.loc.start),this.match(47))X.typeParameters=this.flowParseTypeParameterDeclaration();else X.typeParameters=null;if(X.extends=[],this.eat(81))do X.extends.push(this.flowParseInterfaceExtends());while(!W&&this.eat(12));if(W){if(X.implements=[],X.mixins=[],this.eatContextual(117))do X.mixins.push(this.flowParseInterfaceExtends());while(this.eat(12));if(this.eatContextual(113))do X.implements.push(this.flowParseInterfaceExtends());while(this.eat(12))}X.body=this.flowParseObjectType({allowStatic:W,allowExact:!1,allowSpread:!1,allowProto:W,allowInexact:!1})}flowParseInterfaceExtends(){let X=this.startNode();if(X.id=this.flowParseQualifiedTypeIdentifier(),this.match(47))X.typeParameters=this.flowParseTypeParameterInstantiation();else X.typeParameters=null;return this.finishNode(X,"InterfaceExtends")}flowParseInterface(X){return this.flowParseInterfaceish(X,!1),this.finishNode(X,"InterfaceDeclaration")}checkNotUnderscore(X){if(X==="_")this.raise(n.UnexpectedReservedUnderscore,this.state.startLoc)}checkReservedType(X,W,R){if(!QJf.has(X))return;this.raise(R?n.AssignReservedType:n.UnexpectedReservedType,W,{reservedType:X})}flowParseRestrictedIdentifier(X,W){return this.checkReservedType(this.state.value,this.state.startLoc,W),this.parseIdentifier(X)}flowParseTypeAlias(X){if(X.id=this.flowParseRestrictedIdentifier(!1,!0),this.scope.declareName(X.id.name,8201,X.id.loc.start),this.match(47))X.typeParameters=this.flowParseTypeParameterDeclaration();else X.typeParameters=null;return X.right=this.flowParseTypeInitialiser(29),this.semicolon(),this.finishNode(X,"TypeAlias")}flowParseOpaqueType(X,W){if(this.expectContextual(130),X.id=this.flowParseRestrictedIdentifier(!0,!0),this.scope.declareName(X.id.name,8201,X.id.loc.start),this.match(47))X.typeParameters=this.flowParseTypeParameterDeclaration();else X.typeParameters=null;if(X.supertype=null,this.match(14))X.supertype=this.flowParseTypeInitialiser(14);if(X.impltype=null,!W)X.impltype=this.flowParseTypeInitialiser(29);return this.semicolon(),this.finishNode(X,"OpaqueType")}flowParseTypeParameter(X=!1){let W=this.state.startLoc,R=this.startNode(),J=this.flowParseVariance(),U=this.flowParseTypeAnnotatableIdentifier();if(R.name=U.name,R.variance=J,R.bound=U.typeAnnotation,this.match(29))this.eat(29),R.default=this.flowParseType();else if(X)this.raise(n.MissingTypeParamDefault,W);return this.finishNode(R,"TypeParameter")}flowParseTypeParameterDeclaration(){let X=this.state.inType,W=this.startNode();if(W.params=[],this.state.inType=!0,this.match(47)||this.match(143))this.next();else this.unexpected();let R=!1;do{let J=this.flowParseTypeParameter(R);if(W.params.push(J),J.default)R=!0;if(!this.match(48))this.expect(12)}while(!this.match(48));return this.expect(48),this.state.inType=X,this.finishNode(W,"TypeParameterDeclaration")}flowInTopLevelContext(X){if(this.curContext()!==Ff.brace){let W=this.state.context;this.state.context=[W[0]];try{return X()}finally{this.state.context=W}}else return X()}flowParseTypeParameterInstantiationInExpression(){if(this.reScan_lt()!==47)return;return this.flowParseTypeParameterInstantiation()}flowParseTypeParameterInstantiation(){let X=this.startNode(),W=this.state.inType;if(this.state.inType=!0,X.params=[],this.flowInTopLevelContext(()=>{this.expect(47);let R=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!1;while(!this.match(48))if(X.params.push(this.flowParseType()),!this.match(48))this.expect(12);this.state.noAnonFunctionType=R}),this.state.inType=W,!this.state.inType&&this.curContext()===Ff.brace)this.reScan_lt_gt();return this.expect(48),this.finishNode(X,"TypeParameterInstantiation")}flowParseTypeParameterInstantiationCallOrNew(){if(this.reScan_lt()!==47)return;let X=this.startNode(),W=this.state.inType;X.params=[],this.state.inType=!0,this.expect(47);while(!this.match(48))if(X.params.push(this.flowParseTypeOrImplicitInstantiation()),!this.match(48))this.expect(12);return this.expect(48),this.state.inType=W,this.finishNode(X,"TypeParameterInstantiation")}flowParseInterfaceType(){let X=this.startNode();if(this.expectContextual(129),X.extends=[],this.eat(81))do X.extends.push(this.flowParseInterfaceExtends());while(this.eat(12));return X.body=this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!1,allowProto:!1,allowInexact:!1}),this.finishNode(X,"InterfaceTypeAnnotation")}flowParseObjectPropertyKey(){return this.match(135)||this.match(134)?super.parseExprAtom():this.parseIdentifier(!0)}flowParseObjectTypeIndexer(X,W,R){if(X.static=W,this.lookahead().type===14)X.id=this.flowParseObjectPropertyKey(),X.key=this.flowParseTypeInitialiser();else X.id=null,X.key=this.flowParseType();return this.expect(3),X.value=this.flowParseTypeInitialiser(),X.variance=R,this.finishNode(X,"ObjectTypeIndexer")}flowParseObjectTypeInternalSlot(X,W){if(X.static=W,X.id=this.flowParseObjectPropertyKey(),this.expect(3),this.expect(3),this.match(47)||this.match(10))X.method=!0,X.optional=!1,X.value=this.flowParseObjectTypeMethodish(this.startNodeAt(X.loc.start));else{if(X.method=!1,this.eat(17))X.optional=!0;X.value=this.flowParseTypeInitialiser()}return this.finishNode(X,"ObjectTypeInternalSlot")}flowParseObjectTypeMethodish(X){if(X.params=[],X.rest=null,X.typeParameters=null,X.this=null,this.match(47))X.typeParameters=this.flowParseTypeParameterDeclaration();if(this.expect(10),this.match(78)){if(X.this=this.flowParseFunctionTypeParam(!0),X.this.name=null,!this.match(11))this.expect(12)}while(!this.match(11)&&!this.match(21))if(X.params.push(this.flowParseFunctionTypeParam(!1)),!this.match(11))this.expect(12);if(this.eat(21))X.rest=this.flowParseFunctionTypeParam(!1);return this.expect(11),X.returnType=this.flowParseTypeInitialiser(),this.finishNode(X,"FunctionTypeAnnotation")}flowParseObjectTypeCallProperty(X,W){let R=this.startNode();return X.static=W,X.value=this.flowParseObjectTypeMethodish(R),this.finishNode(X,"ObjectTypeCallProperty")}flowParseObjectType({allowStatic:X,allowExact:W,allowSpread:R,allowProto:J,allowInexact:U}){let V=this.state.inType;this.state.inType=!0;let H=this.startNode();H.callProperties=[],H.properties=[],H.indexers=[],H.internalSlots=[];let Q,Y,F=!1;if(W&&this.match(6))this.expect(6),Q=9,Y=!0;else this.expect(5),Q=8,Y=!1;H.exact=Y;while(!this.match(Q)){let A=!1,j=null,b=null,I=this.startNode();if(J&&this.isContextual(118)){let E=this.lookahead();if(E.type!==14&&E.type!==17)this.next(),j=this.state.startLoc,X=!1}if(X&&this.isContextual(106)){let E=this.lookahead();if(E.type!==14&&E.type!==17)this.next(),A=!0}let L=this.flowParseVariance();if(this.eat(0)){if(j!=null)this.unexpected(j);if(this.eat(0)){if(L)this.unexpected(L.loc.start);H.internalSlots.push(this.flowParseObjectTypeInternalSlot(I,A))}else H.indexers.push(this.flowParseObjectTypeIndexer(I,A,L))}else if(this.match(10)||this.match(47)){if(j!=null)this.unexpected(j);if(L)this.unexpected(L.loc.start);H.callProperties.push(this.flowParseObjectTypeCallProperty(I,A))}else{let E="init";if(this.isContextual(99)||this.isContextual(104)){let s=this.lookahead();if(N9(s.type))E=this.state.value,this.next()}let Xf=this.flowParseObjectTypeProperty(I,A,j,L,E,R,U!=null?U:!Y);if(Xf===null)F=!0,b=this.state.lastTokStartLoc;else H.properties.push(Xf)}if(this.flowObjectTypeSemicolon(),b&&!this.match(8)&&!this.match(9))this.raise(n.UnexpectedExplicitInexactInObject,b)}if(this.expect(Q),R)H.inexact=F;let q=this.finishNode(H,"ObjectTypeAnnotation");return this.state.inType=V,q}flowParseObjectTypeProperty(X,W,R,J,U,V,H){if(this.eat(21)){if(this.match(12)||this.match(13)||this.match(8)||this.match(9)){if(!V)this.raise(n.InexactInsideNonObject,this.state.lastTokStartLoc);else if(!H)this.raise(n.InexactInsideExact,this.state.lastTokStartLoc);if(J)this.raise(n.InexactVariance,J);return null}if(!V)this.raise(n.UnexpectedSpreadType,this.state.lastTokStartLoc);if(R!=null)this.unexpected(R);if(J)this.raise(n.SpreadVariance,J);return X.argument=this.flowParseType(),this.finishNode(X,"ObjectTypeSpreadProperty")}else{X.key=this.flowParseObjectPropertyKey(),X.static=W,X.proto=R!=null,X.kind=U;let Q=!1;if(this.match(47)||this.match(10)){if(X.method=!0,R!=null)this.unexpected(R);if(J)this.unexpected(J.loc.start);if(X.value=this.flowParseObjectTypeMethodish(this.startNodeAt(X.loc.start)),U==="get"||U==="set")this.flowCheckGetterSetterParams(X);if(!V&&X.key.name==="constructor"&&X.value.this)this.raise(n.ThisParamBannedInConstructor,X.value.this)}else{if(U!=="init")this.unexpected();if(X.method=!1,this.eat(17))Q=!0;X.value=this.flowParseTypeInitialiser(),X.variance=J}return X.optional=Q,this.finishNode(X,"ObjectTypeProperty")}}flowCheckGetterSetterParams(X){let W=X.kind==="get"?0:1,R=X.value.params.length+(X.value.rest?1:0);if(X.value.this)this.raise(X.kind==="get"?n.GetterMayNotHaveThisParam:n.SetterMayNotHaveThisParam,X.value.this);if(R!==W)this.raise(X.kind==="get"?$.BadGetterArity:$.BadSetterArity,X);if(X.kind==="set"&&X.value.rest)this.raise($.BadSetterRestParameter,X)}flowObjectTypeSemicolon(){if(!this.eat(13)&&!this.eat(12)&&!this.match(8)&&!this.match(9))this.unexpected()}flowParseQualifiedTypeIdentifier(X,W){X!=null||(X=this.state.startLoc);let R=W||this.flowParseRestrictedIdentifier(!0);while(this.eat(16)){let J=this.startNodeAt(X);J.qualification=R,J.id=this.flowParseRestrictedIdentifier(!0),R=this.finishNode(J,"QualifiedTypeIdentifier")}return R}flowParseGenericType(X,W){let R=this.startNodeAt(X);if(R.typeParameters=null,R.id=this.flowParseQualifiedTypeIdentifier(X,W),this.match(47))R.typeParameters=this.flowParseTypeParameterInstantiation();return this.finishNode(R,"GenericTypeAnnotation")}flowParseTypeofType(){let X=this.startNode();return this.expect(87),X.argument=this.flowParsePrimaryType(),this.finishNode(X,"TypeofTypeAnnotation")}flowParseTupleType(){let X=this.startNode();X.types=[],this.expect(0);while(this.state.pos<this.length&&!this.match(3)){if(X.types.push(this.flowParseType()),this.match(3))break;this.expect(12)}return this.expect(3),this.finishNode(X,"TupleTypeAnnotation")}flowParseFunctionTypeParam(X){let W=null,R=!1,J=null,U=this.startNode(),V=this.lookahead(),H=this.state.type===78;if(V.type===14||V.type===17){if(H&&!X)this.raise(n.ThisParamMustBeFirst,U);if(W=this.parseIdentifier(H),this.eat(17)){if(R=!0,H)this.raise(n.ThisParamMayNotBeOptional,U)}J=this.flowParseTypeInitialiser()}else J=this.flowParseType();return U.name=W,U.optional=R,U.typeAnnotation=J,this.finishNode(U,"FunctionTypeParam")}reinterpretTypeAsFunctionTypeParam(X){let W=this.startNodeAt(X.loc.start);return W.name=null,W.optional=!1,W.typeAnnotation=X,this.finishNode(W,"FunctionTypeParam")}flowParseFunctionTypeParams(X=[]){let W=null,R=null;if(this.match(78)){if(R=this.flowParseFunctionTypeParam(!0),R.name=null,!this.match(11))this.expect(12)}while(!this.match(11)&&!this.match(21))if(X.push(this.flowParseFunctionTypeParam(!1)),!this.match(11))this.expect(12);if(this.eat(21))W=this.flowParseFunctionTypeParam(!1);return{params:X,rest:W,_this:R}}flowIdentToTypeAnnotation(X,W,R){switch(R.name){case"any":return this.finishNode(W,"AnyTypeAnnotation");case"bool":case"boolean":return this.finishNode(W,"BooleanTypeAnnotation");case"mixed":return this.finishNode(W,"MixedTypeAnnotation");case"empty":return this.finishNode(W,"EmptyTypeAnnotation");case"number":return this.finishNode(W,"NumberTypeAnnotation");case"string":return this.finishNode(W,"StringTypeAnnotation");case"symbol":return this.finishNode(W,"SymbolTypeAnnotation");default:return this.checkNotUnderscore(R.name),this.flowParseGenericType(X,R)}}flowParsePrimaryType(){let X=this.state.startLoc,W=this.startNode(),R,J,U=!1,V=this.state.noAnonFunctionType;switch(this.state.type){case 5:return this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!0,allowProto:!1,allowInexact:!0});case 6:return this.flowParseObjectType({allowStatic:!1,allowExact:!0,allowSpread:!0,allowProto:!1,allowInexact:!1});case 0:return this.state.noAnonFunctionType=!1,J=this.flowParseTupleType(),this.state.noAnonFunctionType=V,J;case 47:{let H=this.startNode();return H.typeParameters=this.flowParseTypeParameterDeclaration(),this.expect(10),R=this.flowParseFunctionTypeParams(),H.params=R.params,H.rest=R.rest,H.this=R._this,this.expect(11),this.expect(19),H.returnType=this.flowParseType(),this.finishNode(H,"FunctionTypeAnnotation")}case 10:{let H=this.startNode();if(this.next(),!this.match(11)&&!this.match(21))if($f(this.state.type)||this.match(78)){let Q=this.lookahead().type;U=Q!==17&&Q!==14}else U=!0;if(U)if(this.state.noAnonFunctionType=!1,J=this.flowParseType(),this.state.noAnonFunctionType=V,this.state.noAnonFunctionType||!(this.match(12)||this.match(11)&&this.lookahead().type===19))return this.expect(11),J;else this.eat(12);if(J)R=this.flowParseFunctionTypeParams([this.reinterpretTypeAsFunctionTypeParam(J)]);else R=this.flowParseFunctionTypeParams();return H.params=R.params,H.rest=R.rest,H.this=R._this,this.expect(11),this.expect(19),H.returnType=this.flowParseType(),H.typeParameters=null,this.finishNode(H,"FunctionTypeAnnotation")}case 134:return this.parseLiteral(this.state.value,"StringLiteralTypeAnnotation");case 85:case 86:return W.value=this.match(85),this.next(),this.finishNode(W,"BooleanLiteralTypeAnnotation");case 53:if(this.state.value==="-"){if(this.next(),this.match(135))return this.parseLiteralAtNode(-this.state.value,"NumberLiteralTypeAnnotation",W);if(this.match(136))return this.parseLiteralAtNode(-this.state.value,"BigIntLiteralTypeAnnotation",W);throw this.raise(n.UnexpectedSubtractionOperand,this.state.startLoc)}this.unexpected();return;case 135:return this.parseLiteral(this.state.value,"NumberLiteralTypeAnnotation");case 136:return this.parseLiteral(this.state.value,"BigIntLiteralTypeAnnotation");case 88:return this.next(),this.finishNode(W,"VoidTypeAnnotation");case 84:return this.next(),this.finishNode(W,"NullLiteralTypeAnnotation");case 78:return this.next(),this.finishNode(W,"ThisTypeAnnotation");case 55:return this.next(),this.finishNode(W,"ExistsTypeAnnotation");case 87:return this.flowParseTypeofType();default:if(ER(this.state.type)){let H=xG(this.state.type);return this.next(),super.createIdentifier(W,H)}else if($f(this.state.type)){if(this.isContextual(129))return this.flowParseInterfaceType();return this.flowIdentToTypeAnnotation(X,W,this.parseIdentifier())}}this.unexpected()}flowParsePostfixType(){let X=this.state.startLoc,W=this.flowParsePrimaryType(),R=!1;while((this.match(0)||this.match(18))&&!this.canInsertSemicolon()){let J=this.startNodeAt(X),U=this.eat(18);if(R=R||U,this.expect(0),!U&&this.match(3))J.elementType=W,this.next(),W=this.finishNode(J,"ArrayTypeAnnotation");else if(J.objectType=W,J.indexType=this.flowParseType(),this.expect(3),R)J.optional=U,W=this.finishNode(J,"OptionalIndexedAccessType");else W=this.finishNode(J,"IndexedAccessType")}return W}flowParsePrefixType(){let X=this.startNode();if(this.eat(17))return X.typeAnnotation=this.flowParsePrefixType(),this.finishNode(X,"NullableTypeAnnotation");else return this.flowParsePostfixType()}flowParseAnonFunctionWithoutParens(){let X=this.flowParsePrefixType();if(!this.state.noAnonFunctionType&&this.eat(19)){let W=this.startNodeAt(X.loc.start);return W.params=[this.reinterpretTypeAsFunctionTypeParam(X)],W.rest=null,W.this=null,W.returnType=this.flowParseType(),W.typeParameters=null,this.finishNode(W,"FunctionTypeAnnotation")}return X}flowParseIntersectionType(){let X=this.startNode();this.eat(45);let W=this.flowParseAnonFunctionWithoutParens();X.types=[W];while(this.eat(45))X.types.push(this.flowParseAnonFunctionWithoutParens());return X.types.length===1?W:this.finishNode(X,"IntersectionTypeAnnotation")}flowParseUnionType(){let X=this.startNode();this.eat(43);let W=this.flowParseIntersectionType();X.types=[W];while(this.eat(43))X.types.push(this.flowParseIntersectionType());return X.types.length===1?W:this.finishNode(X,"UnionTypeAnnotation")}flowParseType(){let X=this.state.inType;this.state.inType=!0;let W=this.flowParseUnionType();return this.state.inType=X,W}flowParseTypeOrImplicitInstantiation(){if(this.state.type===132&&this.state.value==="_"){let X=this.state.startLoc,W=this.parseIdentifier();return this.flowParseGenericType(X,W)}else return this.flowParseType()}flowParseTypeAnnotation(){let X=this.startNode();return X.typeAnnotation=this.flowParseTypeInitialiser(),this.finishNode(X,"TypeAnnotation")}flowParseTypeAnnotatableIdentifier(X){let W=X?this.parseIdentifier():this.flowParseRestrictedIdentifier();if(this.match(14))W.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(W);return W}typeCastToParameter(X){return X.expression.typeAnnotation=X.typeAnnotation,this.resetEndLocation(X.expression,X.typeAnnotation.loc.end),X.expression}flowParseVariance(){let X=null;if(this.match(53)){if(X=this.startNode(),this.state.value==="+")X.kind="plus";else X.kind="minus";return this.next(),this.finishNode(X,"Variance")}return X}parseFunctionBody(X,W,R=!1){if(W){this.forwardNoArrowParamsConversionAt(X,()=>super.parseFunctionBody(X,!0,R));return}super.parseFunctionBody(X,!1,R)}parseFunctionBodyAndFinish(X,W,R=!1){if(this.match(14)){let J=this.startNode();[J.typeAnnotation,X.predicate]=this.flowParseTypeAndPredicateInitialiser(),X.returnType=J.typeAnnotation?this.finishNode(J,"TypeAnnotation"):null}return super.parseFunctionBodyAndFinish(X,W,R)}parseStatementLike(X){if(this.state.strict&&this.isContextual(129)){let R=this.lookahead();if(HG(R.type)){let J=this.startNode();return this.next(),this.flowParseInterface(J)}}else if(this.isContextual(126)){let R=this.startNode();return this.next(),this.flowParseEnumDeclaration(R)}let W=super.parseStatementLike(X);if(this.flowPragma===void 0&&!this.isValidDirective(W))this.flowPragma=null;return W}parseExpressionStatement(X,W,R){if(W.type==="Identifier"){if(W.name==="declare"){if(this.match(80)||$f(this.state.type)||this.match(68)||this.match(74)||this.match(82))return this.flowParseDeclare(X)}else if($f(this.state.type)){if(W.name==="interface")return this.flowParseInterface(X);else if(W.name==="type")return this.flowParseTypeAlias(X);else if(W.name==="opaque")return this.flowParseOpaqueType(X,!1)}}return super.parseExpressionStatement(X,W,R)}shouldParseExportDeclaration(){let{type:X}=this.state;if(X===126||F9(X))return!this.state.containsEsc;return super.shouldParseExportDeclaration()}isExportDefaultSpecifier(){let{type:X}=this.state;if(X===126||F9(X))return this.state.containsEsc;return super.isExportDefaultSpecifier()}parseExportDefaultExpression(){if(this.isContextual(126)){let X=this.startNode();return this.next(),this.flowParseEnumDeclaration(X)}return super.parseExportDefaultExpression()}parseConditional(X,W,R){if(!this.match(17))return X;if(this.state.maybeInArrowParameters){let q=this.lookaheadCharCode();if(q===44||q===61||q===58||q===41)return this.setOptionalParametersError(R),X}this.expect(17);let J=this.state.clone(),U=this.state.noArrowAt,V=this.startNodeAt(W),{consequent:H,failed:Q}=this.tryParseConditionalConsequent(),[Y,F]=this.getArrowLikeExpressions(H);if(Q||F.length>0){let q=[...U];if(F.length>0){this.state=J,this.state.noArrowAt=q;for(let A=0;A<F.length;A++)q.push(F[A].start);({consequent:H,failed:Q}=this.tryParseConditionalConsequent()),[Y,F]=this.getArrowLikeExpressions(H)}if(Q&&Y.length>1)this.raise(n.AmbiguousConditionalArrow,J.startLoc);if(Q&&Y.length===1)this.state=J,q.push(Y[0].start),this.state.noArrowAt=q,{consequent:H,failed:Q}=this.tryParseConditionalConsequent()}return this.getArrowLikeExpressions(H,!0),this.state.noArrowAt=U,this.expect(14),V.test=X,V.consequent=H,V.alternate=this.forwardNoArrowParamsConversionAt(V,()=>this.parseMaybeAssign(void 0,void 0)),this.finishNode(V,"ConditionalExpression")}tryParseConditionalConsequent(){this.state.noArrowParamsConversionAt.push(this.state.start);let X=this.parseMaybeAssignAllowIn(),W=!this.match(14);return this.state.noArrowParamsConversionAt.pop(),{consequent:X,failed:W}}getArrowLikeExpressions(X,W){let R=[X],J=[];while(R.length!==0){let U=R.pop();if(U.type==="ArrowFunctionExpression"&&U.body.type!=="BlockStatement"){if(U.typeParameters||!U.returnType)this.finishArrowValidation(U);else J.push(U);R.push(U.body)}else if(U.type==="ConditionalExpression")R.push(U.consequent),R.push(U.alternate)}if(W)return J.forEach((U)=>this.finishArrowValidation(U)),[J,[]];return zJf(J,(U)=>U.params.every((V)=>this.isAssignable(V,!0)))}finishArrowValidation(X){var W;this.toAssignableList(X.params,(W=X.extra)==null?void 0:W.trailingCommaLoc,!1),this.scope.enter(6),super.checkParams(X,!1,!0),this.scope.exit()}forwardNoArrowParamsConversionAt(X,W){let R;if(this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(X.start)))this.state.noArrowParamsConversionAt.push(this.state.start),R=W(),this.state.noArrowParamsConversionAt.pop();else R=W();return R}parseParenItem(X,W){let R=super.parseParenItem(X,W);if(this.eat(17))R.optional=!0,this.resetEndLocation(X);if(this.match(14)){let J=this.startNodeAt(W);return J.expression=R,J.typeAnnotation=this.flowParseTypeAnnotation(),this.finishNode(J,"TypeCastExpression")}return R}assertModuleNodeAllowed(X){if(X.type==="ImportDeclaration"&&(X.importKind==="type"||X.importKind==="typeof")||X.type==="ExportNamedDeclaration"&&X.exportKind==="type"||X.type==="ExportAllDeclaration"&&X.exportKind==="type")return;super.assertModuleNodeAllowed(X)}parseExportDeclaration(X){if(this.isContextual(130)){X.exportKind="type";let W=this.startNode();if(this.next(),this.match(5))return X.specifiers=this.parseExportSpecifiers(!0),super.parseExportFrom(X),null;else return this.flowParseTypeAlias(W)}else if(this.isContextual(131)){X.exportKind="type";let W=this.startNode();return this.next(),this.flowParseOpaqueType(W,!1)}else if(this.isContextual(129)){X.exportKind="type";let W=this.startNode();return this.next(),this.flowParseInterface(W)}else if(this.isContextual(126)){X.exportKind="value";let W=this.startNode();return this.next(),this.flowParseEnumDeclaration(W)}else return super.parseExportDeclaration(X)}eatExportStar(X){if(super.eatExportStar(X))return!0;if(this.isContextual(130)&&this.lookahead().type===55)return X.exportKind="type",this.next(),this.next(),!0;return!1}maybeParseExportNamespaceSpecifier(X){let{startLoc:W}=this.state,R=super.maybeParseExportNamespaceSpecifier(X);if(R&&X.exportKind==="type")this.unexpected(W);return R}parseClassId(X,W,R){if(super.parseClassId(X,W,R),this.match(47))X.typeParameters=this.flowParseTypeParameterDeclaration()}parseClassMember(X,W,R){let{startLoc:J}=this.state;if(this.isContextual(125)){if(super.parseClassMemberFromModifier(X,W))return;W.declare=!0}if(super.parseClassMember(X,W,R),W.declare){if(W.type!=="ClassProperty"&&W.type!=="ClassPrivateProperty"&&W.type!=="PropertyDefinition")this.raise(n.DeclareClassElement,J);else if(W.value)this.raise(n.DeclareClassFieldInitializer,W.value)}}isIterator(X){return X==="iterator"||X==="asyncIterator"}readIterator(){let X=super.readWord1(),W="@@"+X;if(!this.isIterator(X)||!this.state.inType)this.raise($.InvalidIdentifier,this.state.curPosition(),{identifierName:W});this.finishToken(132,W)}getTokenFromCode(X){let W=this.input.charCodeAt(this.state.pos+1);if(X===123&&W===124)this.finishOp(6,2);else if(this.state.inType&&(X===62||X===60))this.finishOp(X===62?48:47,1);else if(this.state.inType&&X===63)if(W===46)this.finishOp(18,2);else this.finishOp(17,1);else if(pRf(X,W,this.input.charCodeAt(this.state.pos+2)))this.state.pos+=2,this.readIterator();else super.getTokenFromCode(X)}isAssignable(X,W){if(X.type==="TypeCastExpression")return this.isAssignable(X.expression,W);else return super.isAssignable(X,W)}toAssignable(X,W=!1){if(!W&&X.type==="AssignmentExpression"&&X.left.type==="TypeCastExpression")X.left=this.typeCastToParameter(X.left);super.toAssignable(X,W)}toAssignableList(X,W,R){for(let J=0;J<X.length;J++){let U=X[J];if((U==null?void 0:U.type)==="TypeCastExpression")X[J]=this.typeCastToParameter(U)}super.toAssignableList(X,W,R)}toReferencedList(X,W){for(let J=0;J<X.length;J++){var R;let U=X[J];if(U&&U.type==="TypeCastExpression"&&!((R=U.extra)!=null&&R.parenthesized)&&(X.length>1||!W))this.raise(n.TypeCastInPattern,U.typeAnnotation)}return X}parseArrayLike(X,W,R,J){let U=super.parseArrayLike(X,W,R,J);if(W&&!this.state.maybeInArrowParameters)this.toReferencedList(U.elements);return U}isValidLVal(X,W,R){return X==="TypeCastExpression"||super.isValidLVal(X,W,R)}parseClassProperty(X){if(this.match(14))X.typeAnnotation=this.flowParseTypeAnnotation();return super.parseClassProperty(X)}parseClassPrivateProperty(X){if(this.match(14))X.typeAnnotation=this.flowParseTypeAnnotation();return super.parseClassPrivateProperty(X)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(14)||super.isClassProperty()}isNonstaticConstructor(X){return!this.match(14)&&super.isNonstaticConstructor(X)}pushClassMethod(X,W,R,J,U,V){if(W.variance)this.unexpected(W.variance.loc.start);if(delete W.variance,this.match(47))W.typeParameters=this.flowParseTypeParameterDeclaration();if(super.pushClassMethod(X,W,R,J,U,V),W.params&&U){let H=W.params;if(H.length>0&&this.isThisParam(H[0]))this.raise(n.ThisParamBannedInConstructor,W)}else if(W.type==="MethodDefinition"&&U&&W.value.params){let H=W.value.params;if(H.length>0&&this.isThisParam(H[0]))this.raise(n.ThisParamBannedInConstructor,W)}}pushClassPrivateMethod(X,W,R,J){if(W.variance)this.unexpected(W.variance.loc.start);if(delete W.variance,this.match(47))W.typeParameters=this.flowParseTypeParameterDeclaration();super.pushClassPrivateMethod(X,W,R,J)}parseClassSuper(X){if(super.parseClassSuper(X),X.superClass&&(this.match(47)||this.match(51)))X.superTypeParameters=this.flowParseTypeParameterInstantiationInExpression();if(this.isContextual(113)){this.next();let W=X.implements=[];do{let R=this.startNode();if(R.id=this.flowParseRestrictedIdentifier(!0),this.match(47))R.typeParameters=this.flowParseTypeParameterInstantiation();else R.typeParameters=null;W.push(this.finishNode(R,"ClassImplements"))}while(this.eat(12))}}checkGetterSetterParams(X){super.checkGetterSetterParams(X);let W=this.getObjectOrClassMethodParams(X);if(W.length>0){let R=W[0];if(this.isThisParam(R)&&X.kind==="get")this.raise(n.GetterMayNotHaveThisParam,R);else if(this.isThisParam(R))this.raise(n.SetterMayNotHaveThisParam,R)}}parsePropertyNamePrefixOperator(X){X.variance=this.flowParseVariance()}parseObjPropValue(X,W,R,J,U,V,H){if(X.variance)this.unexpected(X.variance.loc.start);delete X.variance;let Q;if(this.match(47)&&!V){if(Q=this.flowParseTypeParameterDeclaration(),!this.match(10))this.unexpected()}let Y=super.parseObjPropValue(X,W,R,J,U,V,H);if(Q)(Y.value||Y).typeParameters=Q;return Y}parseFunctionParamType(X){if(this.eat(17)){if(X.type!=="Identifier")this.raise(n.PatternIsOptional,X);if(this.isThisParam(X))this.raise(n.ThisParamMayNotBeOptional,X);X.optional=!0}if(this.match(14))X.typeAnnotation=this.flowParseTypeAnnotation();else if(this.isThisParam(X))this.raise(n.ThisParamAnnotationRequired,X);if(this.match(29)&&this.isThisParam(X))this.raise(n.ThisParamNoDefault,X);return this.resetEndLocation(X),X}parseMaybeDefault(X,W){let R=super.parseMaybeDefault(X,W);if(R.type==="AssignmentPattern"&&R.typeAnnotation&&R.right.start<R.typeAnnotation.start)this.raise(n.TypeBeforeInitializer,R.typeAnnotation);return R}checkImportReflection(X){if(super.checkImportReflection(X),X.module&&X.importKind!=="value")this.raise(n.ImportReflectionHasImportType,X.specifiers[0].loc.start)}parseImportSpecifierLocal(X,W,R){W.local=A9(X)?this.flowParseRestrictedIdentifier(!0,!0):this.parseIdentifier(),X.specifiers.push(this.finishImportSpecifier(W,R))}isPotentialImportPhase(X){if(super.isPotentialImportPhase(X))return!0;if(this.isContextual(130)){if(!X)return!0;let W=this.lookaheadCharCode();return W===123||W===42}return!X&&this.isContextual(87)}applyImportPhase(X,W,R,J){if(super.applyImportPhase(X,W,R,J),W){if(!R&&this.match(65))return;X.exportKind=R==="type"?R:"value"}else{if(R==="type"&&this.match(55))this.unexpected();X.importKind=R==="type"||R==="typeof"?R:"value"}}parseImportSpecifier(X,W,R,J,U){let V=X.imported,H=null;if(V.type==="Identifier"){if(V.name==="type")H="type";else if(V.name==="typeof")H="typeof"}let Q=!1;if(this.isContextual(93)&&!this.isLookaheadContextual("as")){let F=this.parseIdentifier(!0);if(H!==null&&!HG(this.state.type))X.imported=F,X.importKind=H,X.local=LG(F);else X.imported=V,X.importKind=null,X.local=this.parseIdentifier()}else{if(H!==null&&HG(this.state.type))X.imported=this.parseIdentifier(!0),X.importKind=H;else{if(W)throw this.raise($.ImportBindingIsString,X,{importName:V.value});X.imported=V,X.importKind=null}if(this.eatContextual(93))X.local=this.parseIdentifier();else Q=!0,X.local=LG(X.imported)}let Y=A9(X);if(R&&Y)this.raise(n.ImportTypeShorthandOnlyInPureImport,X);if(R||Y)this.checkReservedType(X.local.name,X.local.loc.start,!0);if(Q&&!R&&!Y)this.checkReservedWord(X.local.name,X.loc.start,!0,!0);return this.finishImportSpecifier(X,"ImportSpecifier")}parseBindingAtom(){switch(this.state.type){case 78:return this.parseIdentifier(!0);default:return super.parseBindingAtom()}}parseFunctionParams(X,W){let R=X.kind;if(R!=="get"&&R!=="set"&&this.match(47))X.typeParameters=this.flowParseTypeParameterDeclaration();super.parseFunctionParams(X,W)}parseVarId(X,W){if(super.parseVarId(X,W),this.match(14))X.id.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(X.id)}parseAsyncArrowFromCallExpression(X,W){if(this.match(14)){let R=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0,X.returnType=this.flowParseTypeAnnotation(),this.state.noAnonFunctionType=R}return super.parseAsyncArrowFromCallExpression(X,W)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}parseMaybeAssign(X,W){var R;let J=null,U;if(this.hasPlugin("jsx")&&(this.match(143)||this.match(47))){if(J=this.state.clone(),U=this.tryParse(()=>super.parseMaybeAssign(X,W),J),!U.error)return U.node;let{context:Q}=this.state,Y=Q[Q.length-1];if(Y===Ff.j_oTag||Y===Ff.j_expr)Q.pop()}if((R=U)!=null&&R.error||this.match(47)){var V,H;J=J||this.state.clone();let Q,Y=this.tryParse((q)=>{var A;Q=this.flowParseTypeParameterDeclaration();let j=this.forwardNoArrowParamsConversionAt(Q,()=>{let I=super.parseMaybeAssign(X,W);return this.resetStartLocationFromNode(I,Q),I});if((A=j.extra)!=null&&A.parenthesized)q();let b=this.maybeUnwrapTypeCastExpression(j);if(b.type!=="ArrowFunctionExpression")q();return b.typeParameters=Q,this.resetStartLocationFromNode(b,Q),j},J),F=null;if(Y.node&&this.maybeUnwrapTypeCastExpression(Y.node).type==="ArrowFunctionExpression"){if(!Y.error&&!Y.aborted){if(Y.node.async)this.raise(n.UnexpectedTypeParameterBeforeAsyncArrowFunction,Q);return Y.node}F=Y.node}if((V=U)!=null&&V.node)return this.state=U.failState,U.node;if(F)return this.state=Y.failState,F;if((H=U)!=null&&H.thrown)throw U.error;if(Y.thrown)throw Y.error;throw this.raise(n.UnexpectedTokenAfterTypeParameter,Q)}return super.parseMaybeAssign(X,W)}parseArrow(X){if(this.match(14)){let W=this.tryParse(()=>{let R=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0;let J=this.startNode();if([J.typeAnnotation,X.predicate]=this.flowParseTypeAndPredicateInitialiser(),this.state.noAnonFunctionType=R,this.canInsertSemicolon())this.unexpected();if(!this.match(19))this.unexpected();return J});if(W.thrown)return null;if(W.error)this.state=W.failState;X.returnType=W.node.typeAnnotation?this.finishNode(W.node,"TypeAnnotation"):null}return super.parseArrow(X)}shouldParseArrow(X){return this.match(14)||super.shouldParseArrow(X)}setArrowFunctionParameters(X,W){if(this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(X.start)))X.params=W;else super.setArrowFunctionParameters(X,W)}checkParams(X,W,R,J=!0){if(R&&this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(X.start)))return;for(let U=0;U<X.params.length;U++)if(this.isThisParam(X.params[U])&&U>0)this.raise(n.ThisParamMustBeFirst,X.params[U]);super.checkParams(X,W,R,J)}parseParenAndDistinguishExpression(X){return super.parseParenAndDistinguishExpression(X&&!this.state.noArrowAt.includes(this.sourceToOffsetPos(this.state.start)))}parseSubscripts(X,W,R){if(X.type==="Identifier"&&X.name==="async"&&this.state.noArrowAt.includes(W.index)){this.next();let J=this.startNodeAt(W);J.callee=X,J.arguments=super.parseCallExpressionArguments(11),X=this.finishNode(J,"CallExpression")}else if(X.type==="Identifier"&&X.name==="async"&&this.match(47)){let J=this.state.clone(),U=this.tryParse((H)=>this.parseAsyncArrowWithTypeParameters(W)||H(),J);if(!U.error&&!U.aborted)return U.node;let V=this.tryParse(()=>super.parseSubscripts(X,W,R),J);if(V.node&&!V.error)return V.node;if(U.node)return this.state=U.failState,U.node;if(V.node)return this.state=V.failState,V.node;throw U.error||V.error}return super.parseSubscripts(X,W,R)}parseSubscript(X,W,R,J){if(this.match(18)&&this.isLookaheadToken_lt()){if(J.optionalChainMember=!0,R)return J.stop=!0,X;this.next();let U=this.startNodeAt(W);return U.callee=X,U.typeArguments=this.flowParseTypeParameterInstantiationInExpression(),this.expect(10),U.arguments=this.parseCallExpressionArguments(11),U.optional=!0,this.finishCallExpression(U,!0)}else if(!R&&this.shouldParseTypes()&&(this.match(47)||this.match(51))){let U=this.startNodeAt(W);U.callee=X;let V=this.tryParse(()=>{if(U.typeArguments=this.flowParseTypeParameterInstantiationCallOrNew(),this.expect(10),U.arguments=super.parseCallExpressionArguments(11),J.optionalChainMember)U.optional=!1;return this.finishCallExpression(U,J.optionalChainMember)});if(V.node){if(V.error)this.state=V.failState;return V.node}}return super.parseSubscript(X,W,R,J)}parseNewCallee(X){super.parseNewCallee(X);let W=null;if(this.shouldParseTypes()&&this.match(47))W=this.tryParse(()=>this.flowParseTypeParameterInstantiationCallOrNew()).node;X.typeArguments=W}parseAsyncArrowWithTypeParameters(X){let W=this.startNodeAt(X);if(this.parseFunctionParams(W,!1),!this.parseArrow(W))return;return super.parseArrowExpression(W,void 0,!0)}readToken_mult_modulo(X){let W=this.input.charCodeAt(this.state.pos+1);if(X===42&&W===47&&this.state.hasFlowComment){this.state.hasFlowComment=!1,this.state.pos+=2,this.nextToken();return}super.readToken_mult_modulo(X)}readToken_pipe_amp(X){let W=this.input.charCodeAt(this.state.pos+1);if(X===124&&W===125){this.finishOp(9,2);return}super.readToken_pipe_amp(X)}parseTopLevel(X,W){let R=super.parseTopLevel(X,W);if(this.state.hasFlowComment)this.raise(n.UnterminatedFlowComment,this.state.curPosition());return R}skipBlockComment(){if(this.hasPlugin("flowComments")&&this.skipFlowComment()){if(this.state.hasFlowComment)throw this.raise(n.NestedFlowComment,this.state.startLoc);this.hasFlowCommentCompletion();let X=this.skipFlowComment();if(X)this.state.pos+=X,this.state.hasFlowComment=!0;return}return super.skipBlockComment(this.state.hasFlowComment?"*-/":"*/")}skipFlowComment(){let{pos:X}=this.state,W=2;while([32,9].includes(this.input.charCodeAt(X+W)))W++;let R=this.input.charCodeAt(W+X),J=this.input.charCodeAt(W+X+1);if(R===58&&J===58)return W+2;if(this.input.slice(W+X,W+X+12)==="flow-include")return W+12;if(R===58&&J!==58)return W;return!1}hasFlowCommentCompletion(){if(this.input.indexOf("*/",this.state.pos)===-1)throw this.raise($.UnterminatedComment,this.state.curPosition())}flowEnumErrorBooleanMemberNotInitialized(X,{enumName:W,memberName:R}){this.raise(n.EnumBooleanMemberNotInitialized,X,{memberName:R,enumName:W})}flowEnumErrorInvalidMemberInitializer(X,W){return this.raise(!W.explicitType?n.EnumInvalidMemberInitializerUnknownType:W.explicitType==="symbol"?n.EnumInvalidMemberInitializerSymbolType:n.EnumInvalidMemberInitializerPrimaryType,X,W)}flowEnumErrorNumberMemberNotInitialized(X,W){this.raise(n.EnumNumberMemberNotInitialized,X,W)}flowEnumErrorStringMemberInconsistentlyInitialized(X,W){this.raise(n.EnumStringMemberInconsistentlyInitialized,X,W)}flowEnumMemberInit(){let X=this.state.startLoc,W=()=>this.match(12)||this.match(8);switch(this.state.type){case 135:{let R=this.parseNumericLiteral(this.state.value);if(W())return{type:"number",loc:R.loc.start,value:R};return{type:"invalid",loc:X}}case 134:{let R=this.parseStringLiteral(this.state.value);if(W())return{type:"string",loc:R.loc.start,value:R};return{type:"invalid",loc:X}}case 85:case 86:{let R=this.parseBooleanLiteral(this.match(85));if(W())return{type:"boolean",loc:R.loc.start,value:R};return{type:"invalid",loc:X}}default:return{type:"invalid",loc:X}}}flowEnumMemberRaw(){let X=this.state.startLoc,W=this.parseIdentifier(!0),R=this.eat(29)?this.flowEnumMemberInit():{type:"none",loc:X};return{id:W,init:R}}flowEnumCheckExplicitTypeMismatch(X,W,R){let{explicitType:J}=W;if(J===null)return;if(J!==R)this.flowEnumErrorInvalidMemberInitializer(X,W)}flowEnumMembers({enumName:X,explicitType:W}){let R=new Set,J={booleanMembers:[],numberMembers:[],stringMembers:[],defaultedMembers:[]},U=!1;while(!this.match(8)){if(this.eat(21)){U=!0;break}let V=this.startNode(),{id:H,init:Q}=this.flowEnumMemberRaw(),Y=H.name;if(Y==="")continue;if(/^[a-z]/.test(Y))this.raise(n.EnumInvalidMemberName,H,{memberName:Y,suggestion:Y[0].toUpperCase()+Y.slice(1),enumName:X});if(R.has(Y))this.raise(n.EnumDuplicateMemberName,H,{memberName:Y,enumName:X});R.add(Y);let F={enumName:X,explicitType:W,memberName:Y};switch(V.id=H,Q.type){case"boolean":{this.flowEnumCheckExplicitTypeMismatch(Q.loc,F,"boolean"),V.init=Q.value,J.booleanMembers.push(this.finishNode(V,"EnumBooleanMember"));break}case"number":{this.flowEnumCheckExplicitTypeMismatch(Q.loc,F,"number"),V.init=Q.value,J.numberMembers.push(this.finishNode(V,"EnumNumberMember"));break}case"string":{this.flowEnumCheckExplicitTypeMismatch(Q.loc,F,"string"),V.init=Q.value,J.stringMembers.push(this.finishNode(V,"EnumStringMember"));break}case"invalid":throw this.flowEnumErrorInvalidMemberInitializer(Q.loc,F);case"none":switch(W){case"boolean":this.flowEnumErrorBooleanMemberNotInitialized(Q.loc,F);break;case"number":this.flowEnumErrorNumberMemberNotInitialized(Q.loc,F);break;default:J.defaultedMembers.push(this.finishNode(V,"EnumDefaultedMember"))}}if(!this.match(8))this.expect(12)}return{members:J,hasUnknownMembers:U}}flowEnumStringMembers(X,W,{enumName:R}){if(X.length===0)return W;else if(W.length===0)return X;else if(W.length>X.length){for(let J of X)this.flowEnumErrorStringMemberInconsistentlyInitialized(J,{enumName:R});return W}else{for(let J of W)this.flowEnumErrorStringMemberInconsistentlyInitialized(J,{enumName:R});return X}}flowEnumParseExplicitType({enumName:X}){if(!this.eatContextual(102))return null;if(!$f(this.state.type))throw this.raise(n.EnumInvalidExplicitTypeUnknownSupplied,this.state.startLoc,{enumName:X});let{value:W}=this.state;if(this.next(),W!=="boolean"&&W!=="number"&&W!=="string"&&W!=="symbol")this.raise(n.EnumInvalidExplicitType,this.state.startLoc,{enumName:X,invalidEnumType:W});return W}flowEnumBody(X,W){let R=W.name,J=W.loc.start,U=this.flowEnumParseExplicitType({enumName:R});this.expect(5);let{members:V,hasUnknownMembers:H}=this.flowEnumMembers({enumName:R,explicitType:U});switch(X.hasUnknownMembers=H,U){case"boolean":return X.explicitType=!0,X.members=V.booleanMembers,this.expect(8),this.finishNode(X,"EnumBooleanBody");case"number":return X.explicitType=!0,X.members=V.numberMembers,this.expect(8),this.finishNode(X,"EnumNumberBody");case"string":return X.explicitType=!0,X.members=this.flowEnumStringMembers(V.stringMembers,V.defaultedMembers,{enumName:R}),this.expect(8),this.finishNode(X,"EnumStringBody");case"symbol":return X.members=V.defaultedMembers,this.expect(8),this.finishNode(X,"EnumSymbolBody");default:{let Q=()=>{return X.members=[],this.expect(8),this.finishNode(X,"EnumStringBody")};X.explicitType=!1;let Y=V.booleanMembers.length,F=V.numberMembers.length,q=V.stringMembers.length,A=V.defaultedMembers.length;if(!Y&&!F&&!q&&!A)return Q();else if(!Y&&!F)return X.members=this.flowEnumStringMembers(V.stringMembers,V.defaultedMembers,{enumName:R}),this.expect(8),this.finishNode(X,"EnumStringBody");else if(!F&&!q&&Y>=A){for(let j of V.defaultedMembers)this.flowEnumErrorBooleanMemberNotInitialized(j.loc.start,{enumName:R,memberName:j.id.name});return X.members=V.booleanMembers,this.expect(8),this.finishNode(X,"EnumBooleanBody")}else if(!Y&&!q&&F>=A){for(let j of V.defaultedMembers)this.flowEnumErrorNumberMemberNotInitialized(j.loc.start,{enumName:R,memberName:j.id.name});return X.members=V.numberMembers,this.expect(8),this.finishNode(X,"EnumNumberBody")}else return this.raise(n.EnumInconsistentMemberValues,J,{enumName:R}),Q()}}}flowParseEnumDeclaration(X){let W=this.parseIdentifier();return X.id=W,X.body=this.flowEnumBody(this.startNode(),W),this.finishNode(X,"EnumDeclaration")}jsxParseOpeningElementAfterName(X){if(this.shouldParseTypes()){if(this.match(47)||this.match(51))X.typeArguments=this.flowParseTypeParameterInstantiationInExpression()}return super.jsxParseOpeningElementAfterName(X)}isLookaheadToken_lt(){let X=this.nextTokenStart();if(this.input.charCodeAt(X)===60){let W=this.input.charCodeAt(X+1);return W!==60&&W!==61}return!1}reScan_lt_gt(){let{type:X}=this.state;if(X===47)this.state.pos-=1,this.readToken_lt();else if(X===48)this.state.pos-=1,this.readToken_gt()}reScan_lt(){let{type:X}=this.state;if(X===51)return this.state.pos-=2,this.finishOp(47,1),47;return X}maybeUnwrapTypeCastExpression(X){return X.type==="TypeCastExpression"?X.expression:X}},KJf={__proto__:null,quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:"\xA0",iexcl:"\xA1",cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",brvbar:"\xA6",sect:"\xA7",uml:"\xA8",copy:"\xA9",ordf:"\xAA",laquo:"\xAB",not:"\xAC",shy:"\xAD",reg:"\xAE",macr:"\xAF",deg:"\xB0",plusmn:"\xB1",sup2:"\xB2",sup3:"\xB3",acute:"\xB4",micro:"\xB5",para:"\xB6",middot:"\xB7",cedil:"\xB8",sup1:"\xB9",ordm:"\xBA",raquo:"\xBB",frac14:"\xBC",frac12:"\xBD",frac34:"\xBE",iquest:"\xBF",Agrave:"\xC0",Aacute:"\xC1",Acirc:"\xC2",Atilde:"\xC3",Auml:"\xC4",Aring:"\xC5",AElig:"\xC6",Ccedil:"\xC7",Egrave:"\xC8",Eacute:"\xC9",Ecirc:"\xCA",Euml:"\xCB",Igrave:"\xCC",Iacute:"\xCD",Icirc:"\xCE",Iuml:"\xCF",ETH:"\xD0",Ntilde:"\xD1",Ograve:"\xD2",Oacute:"\xD3",Ocirc:"\xD4",Otilde:"\xD5",Ouml:"\xD6",times:"\xD7",Oslash:"\xD8",Ugrave:"\xD9",Uacute:"\xDA",Ucirc:"\xDB",Uuml:"\xDC",Yacute:"\xDD",THORN:"\xDE",szlig:"\xDF",agrave:"\xE0",aacute:"\xE1",acirc:"\xE2",atilde:"\xE3",auml:"\xE4",aring:"\xE5",aelig:"\xE6",ccedil:"\xE7",egrave:"\xE8",eacute:"\xE9",ecirc:"\xEA",euml:"\xEB",igrave:"\xEC",iacute:"\xED",icirc:"\xEE",iuml:"\xEF",eth:"\xF0",ntilde:"\xF1",ograve:"\xF2",oacute:"\xF3",ocirc:"\xF4",otilde:"\xF5",ouml:"\xF6",divide:"\xF7",oslash:"\xF8",ugrave:"\xF9",uacute:"\xFA",ucirc:"\xFB",uuml:"\xFC",yacute:"\xFD",thorn:"\xFE",yuml:"\xFF",OElig:"\u0152",oelig:"\u0153",Scaron:"\u0160",scaron:"\u0161",Yuml:"\u0178",fnof:"\u0192",circ:"\u02C6",tilde:"\u02DC",Alpha:"\u0391",Beta:"\u0392",Gamma:"\u0393",Delta:"\u0394",Epsilon:"\u0395",Zeta:"\u0396",Eta:"\u0397",Theta:"\u0398",Iota:"\u0399",Kappa:"\u039A",Lambda:"\u039B",Mu:"\u039C",Nu:"\u039D",Xi:"\u039E",Omicron:"\u039F",Pi:"\u03A0",Rho:"\u03A1",Sigma:"\u03A3",Tau:"\u03A4",Upsilon:"\u03A5",Phi:"\u03A6",Chi:"\u03A7",Psi:"\u03A8",Omega:"\u03A9",alpha:"\u03B1",beta:"\u03B2",gamma:"\u03B3",delta:"\u03B4",epsilon:"\u03B5",zeta:"\u03B6",eta:"\u03B7",theta:"\u03B8",iota:"\u03B9",kappa:"\u03BA",lambda:"\u03BB",mu:"\u03BC",nu:"\u03BD",xi:"\u03BE",omicron:"\u03BF",pi:"\u03C0",rho:"\u03C1",sigmaf:"\u03C2",sigma:"\u03C3",tau:"\u03C4",upsilon:"\u03C5",phi:"\u03C6",chi:"\u03C7",psi:"\u03C8",omega:"\u03C9",thetasym:"\u03D1",upsih:"\u03D2",piv:"\u03D6",ensp:"\u2002",emsp:"\u2003",thinsp:"\u2009",zwnj:"\u200C",zwj:"\u200D",lrm:"\u200E",rlm:"\u200F",ndash:"\u2013",mdash:"\u2014",lsquo:"\u2018",rsquo:"\u2019",sbquo:"\u201A",ldquo:"\u201C",rdquo:"\u201D",bdquo:"\u201E",dagger:"\u2020",Dagger:"\u2021",bull:"\u2022",hellip:"\u2026",permil:"\u2030",prime:"\u2032",Prime:"\u2033",lsaquo:"\u2039",rsaquo:"\u203A",oline:"\u203E",frasl:"\u2044",euro:"\u20AC",image:"\u2111",weierp:"\u2118",real:"\u211C",trade:"\u2122",alefsym:"\u2135",larr:"\u2190",uarr:"\u2191",rarr:"\u2192",darr:"\u2193",harr:"\u2194",crarr:"\u21B5",lArr:"\u21D0",uArr:"\u21D1",rArr:"\u21D2",dArr:"\u21D3",hArr:"\u21D4",forall:"\u2200",part:"\u2202",exist:"\u2203",empty:"\u2205",nabla:"\u2207",isin:"\u2208",notin:"\u2209",ni:"\u220B",prod:"\u220F",sum:"\u2211",minus:"\u2212",lowast:"\u2217",radic:"\u221A",prop:"\u221D",infin:"\u221E",ang:"\u2220",and:"\u2227",or:"\u2228",cap:"\u2229",cup:"\u222A",int:"\u222B",there4:"\u2234",sim:"\u223C",cong:"\u2245",asymp:"\u2248",ne:"\u2260",equiv:"\u2261",le:"\u2264",ge:"\u2265",sub:"\u2282",sup:"\u2283",nsub:"\u2284",sube:"\u2286",supe:"\u2287",oplus:"\u2295",otimes:"\u2297",perp:"\u22A5",sdot:"\u22C5",lceil:"\u2308",rceil:"\u2309",lfloor:"\u230A",rfloor:"\u230B",lang:"\u2329",rang:"\u232A",loz:"\u25CA",spades:"\u2660",clubs:"\u2663",hearts:"\u2665",diams:"\u2666"},oG=TG`jsx`({AttributeIsEmpty:"JSX attributes must only be assigned a non-empty expression.",MissingClosingTagElement:({openingTagName:f})=>`Expected corresponding JSX closing tag for <${f}>.`,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:f,HTMLEntity:G})=>`Unexpected token \`${f}\`. Did you mean \`${G}\` or \`{'${f}'}\`?`,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 yG(f){return f?f.type==="JSXOpeningFragment"||f.type==="JSXClosingFragment":!1}function C1(f){if(f.type==="JSXIdentifier")return f.name;if(f.type==="JSXNamespacedName")return f.namespace.name+":"+f.name.name;if(f.type==="JSXMemberExpression")return C1(f.object)+"."+C1(f.property);throw new Error("Node had unexpected type: "+f.type)}var SJf=(f)=>class G extends f{jsxReadToken(){let X="",W=this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(oG.UnterminatedJsxContent,this.state.startLoc);let R=this.input.charCodeAt(this.state.pos);switch(R){case 60:case 123:if(this.state.pos===this.state.start){if(R===60&&this.state.canStartJSXElement)++this.state.pos,this.finishToken(143);else super.getTokenFromCode(R);return}X+=this.input.slice(W,this.state.pos),this.finishToken(142,X);return;case 38:X+=this.input.slice(W,this.state.pos),X+=this.jsxReadEntity(),W=this.state.pos;break;case 62:case 125:default:if(A1(R))X+=this.input.slice(W,this.state.pos),X+=this.jsxReadNewLine(!0),W=this.state.pos;else++this.state.pos}}}jsxReadNewLine(X){let W=this.input.charCodeAt(this.state.pos),R;if(++this.state.pos,W===13&&this.input.charCodeAt(this.state.pos)===10)++this.state.pos,R=X?`
|
|
2
|
+
var h3=Object.create;var{getPrototypeOf:x3,defineProperty:O7,getOwnPropertyNames:y3}=Object;var u3=Object.prototype.hasOwnProperty;function m3(J){return this[J]}var c3,l3,H2=(J,X,Z)=>{var Q=J!=null&&typeof J==="object";if(Q){var Y=X?c3??=new WeakMap:l3??=new WeakMap,z=Y.get(J);if(z)return z}Z=J!=null?h3(x3(J)):{};let H=X||!J||!J.__esModule?O7(Z,"default",{value:J,enumerable:!0}):Z;for(let G of y3(J))if(!u3.call(H,G))O7(H,G,{get:m3.bind(J,G),enumerable:!0});if(Q)Y.set(J,H);return H};var N=(J,X)=>()=>(X||J((X={exports:{}}).exports,X),X.exports);var pX=import.meta.require;var W2=N((G2,JX)=>{(function(J,X){if(typeof G2==="object"&&typeof JX<"u")X(JX),JX.exports=Z(JX);else if(typeof define==="function"&&define.amd)define(["module"],function(Q){X.apply(this,arguments),Q.exports=Z(Q)});else{let Q={exports:{}};X(Q),J=typeof globalThis<"u"?globalThis:J||self,J.sourcemapCodec=Z(Q)}function Z(Q){return"default"in Q.exports?Q.exports.default:Q.exports}})(G2,function(J){var{defineProperty:X,getOwnPropertyDescriptor:Z,getOwnPropertyNames:Q}=Object,Y=Object.prototype.hasOwnProperty,z=(m,g)=>{for(var T in g)X(m,T,{get:g[T],enumerable:!0})},H=(m,g,T,c)=>{if(g&&typeof g==="object"||typeof g==="function"){for(let J1 of Q(g))if(!Y.call(m,J1)&&J1!==T)X(m,J1,{get:()=>g[J1],enumerable:!(c=Z(g,J1))||c.enumerable})}return m},G=(m)=>H(X({},"__esModule",{value:!0}),m),W={};z(W,{decode:()=>WJ,decodeGeneratedRanges:()=>f1,decodeOriginalScopes:()=>H1,encode:()=>_J,encodeGeneratedRanges:()=>XJ,encodeOriginalScopes:()=>M1}),J.exports=G(W);var V=44,U=59,q="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",O=new Uint8Array(64),A=new Uint8Array(128);for(let m=0;m<q.length;m++){let g=q.charCodeAt(m);O[m]=g,A[g]=m}function D(m,g){let T=0,c=0,J1=0;do{let C1=m.next();J1=A[C1],T|=(J1&31)<<c,c+=5}while(J1&32);let W1=T&1;if(T>>>=1,W1)T=-2147483648|-T;return g+T}function S(m,g,T){let c=g-T;c=c<0?-c<<1|1:c<<1;do{let J1=c&31;if(c>>>=5,c>0)J1|=32;m.write(O[J1])}while(c>0);return g}function C(m,g){if(m.pos>=g)return!1;return m.peek()!==V}var L=16384,b=typeof TextDecoder<"u"?new TextDecoder:typeof Buffer<"u"?{decode(m){return Buffer.from(m.buffer,m.byteOffset,m.byteLength).toString()}}:{decode(m){let g="";for(let T=0;T<m.length;T++)g+=String.fromCharCode(m[T]);return g}},s=class{constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(L)}write(m){let{buffer:g}=this;if(g[this.pos++]=m,this.pos===L)this.out+=b.decode(g),this.pos=0}flush(){let{buffer:m,out:g,pos:T}=this;return T>0?g+b.decode(m.subarray(0,T)):g}},h=class{constructor(m){this.pos=0,this.buffer=m}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(m){let{buffer:g,pos:T}=this,c=g.indexOf(m,T);return c===-1?g.length:c}},i=[];function H1(m){let{length:g}=m,T=new h(m),c=[],J1=[],W1=0;for(;T.pos<g;T.pos++){W1=D(T,W1);let C1=D(T,0);if(!C(T,g)){let b1=J1.pop();b1[2]=W1,b1[3]=C1;continue}let $1=D(T,0),q1=D(T,0)&1?[W1,C1,0,0,$1,D(T,0)]:[W1,C1,0,0,$1],w1=i;if(C(T,g)){w1=[];do{let b1=D(T,0);w1.push(b1)}while(C(T,g))}q1.vars=w1,c.push(q1),J1.push(q1)}return c}function M1(m){let g=new s;for(let T=0;T<m.length;)T=L1(m,T,g,[0]);return g.flush()}function L1(m,g,T,c){let J1=m[g],{0:W1,1:C1,2:$1,3:N1,4:O1,vars:q1}=J1;if(g>0)T.write(V);c[0]=S(T,W1,c[0]),S(T,C1,0),S(T,O1,0);let w1=J1.length===6?1:0;if(S(T,w1,0),J1.length===6)S(T,J1[5],0);for(let b1 of q1)S(T,b1,0);for(g++;g<m.length;){let b1=m[g],{0:K1,1:S1}=b1;if(K1>$1||K1===$1&&S1>=N1)break;g=L1(m,g,T,c)}return T.write(V),c[0]=S(T,$1,c[0]),S(T,N1,0),g}function f1(m){let{length:g}=m,T=new h(m),c=[],J1=[],W1=0,C1=0,$1=0,N1=0,O1=0,q1=0,w1=0,b1=0;do{let K1=T.indexOf(";"),S1=0;for(;T.pos<K1;T.pos++){if(S1=D(T,S1),!C(T,K1)){let d=J1.pop();d[2]=W1,d[3]=S1;continue}let v1=D(T,0),r1=v1&1,d1=v1&2,m1=v1&4,_=null,E=i,l;if(r1){let d=D(T,C1);$1=D(T,C1===d?$1:0),C1=d,l=[W1,S1,0,0,d,$1]}else l=[W1,S1,0,0];if(l.isScope=!!m1,d1){let d=N1,Z1=O1;N1=D(T,N1);let Q1=d===N1;O1=D(T,Q1?O1:0),q1=D(T,Q1&&Z1===O1?q1:0),_=[N1,O1,q1]}if(l.callsite=_,C(T,K1)){E=[];do{w1=W1,b1=S1;let d=D(T,0),Z1;if(d<-1){Z1=[[D(T,0)]];for(let Q1=-1;Q1>d;Q1--){let F1=w1;w1=D(T,w1),b1=D(T,w1===F1?b1:0);let c1=D(T,0);Z1.push([c1,w1,b1])}}else Z1=[[d]];E.push(Z1)}while(C(T,K1))}l.bindings=E,c.push(l),J1.push(l)}W1++,T.pos=K1+1}while(T.pos<g);return c}function XJ(m){if(m.length===0)return"";let g=new s;for(let T=0;T<m.length;)T=ZJ(m,T,g,[0,0,0,0,0,0,0]);return g.flush()}function ZJ(m,g,T,c){let J1=m[g],{0:W1,1:C1,2:$1,3:N1,isScope:O1,callsite:q1,bindings:w1}=J1;if(c[0]<W1)HJ(T,c[0],W1),c[0]=W1,c[1]=0;else if(g>0)T.write(V);c[1]=S(T,J1[1],c[1]);let b1=(J1.length===6?1:0)|(q1?2:0)|(O1?4:0);if(S(T,b1,0),J1.length===6){let{4:K1,5:S1}=J1;if(K1!==c[2])c[3]=0;c[2]=S(T,K1,c[2]),c[3]=S(T,S1,c[3])}if(q1){let{0:K1,1:S1,2:v1}=J1.callsite;if(K1!==c[4])c[5]=0,c[6]=0;else if(S1!==c[5])c[6]=0;c[4]=S(T,K1,c[4]),c[5]=S(T,S1,c[5]),c[6]=S(T,v1,c[6])}if(w1)for(let K1 of w1){if(K1.length>1)S(T,-K1.length,0);let S1=K1[0][0];S(T,S1,0);let v1=W1,r1=C1;for(let d1=1;d1<K1.length;d1++){let m1=K1[d1];v1=S(T,m1[1],v1),r1=S(T,m1[2],r1),S(T,m1[0],0)}}for(g++;g<m.length;){let K1=m[g],{0:S1,1:v1}=K1;if(S1>$1||S1===$1&&v1>=N1)break;g=ZJ(m,g,T,c)}if(c[0]<$1)HJ(T,c[0],$1),c[0]=$1,c[1]=0;else T.write(V);return c[1]=S(T,N1,c[1]),g}function HJ(m,g,T){do m.write(U);while(++g<T)}function WJ(m){let{length:g}=m,T=new h(m),c=[],J1=0,W1=0,C1=0,$1=0,N1=0;do{let O1=T.indexOf(";"),q1=[],w1=!0,b1=0;J1=0;while(T.pos<O1){let K1;if(J1=D(T,J1),J1<b1)w1=!1;if(b1=J1,C(T,O1))if(W1=D(T,W1),C1=D(T,C1),$1=D(T,$1),C(T,O1))N1=D(T,N1),K1=[J1,W1,C1,$1,N1];else K1=[J1,W1,C1,$1];else K1=[J1];q1.push(K1),T.pos++}if(!w1)wJ(q1);c.push(q1),T.pos=O1+1}while(T.pos<=g);return c}function wJ(m){m.sort(i1)}function i1(m,g){return m[0]-g[0]}function _J(m){let g=new s,T=0,c=0,J1=0,W1=0;for(let C1=0;C1<m.length;C1++){let $1=m[C1];if(C1>0)g.write(U);if($1.length===0)continue;let N1=0;for(let O1=0;O1<$1.length;O1++){let q1=$1[O1];if(O1>0)g.write(V);if(N1=S(g,q1[0],N1),q1.length===1)continue;if(T=S(g,q1[1],T),c=S(g,q1[2],c),J1=S(g,q1[3],J1),q1.length===4)continue;W1=S(g,q1[4],W1)}}return g.flush()}})});var A7=N((V2,K2)=>{(function(J,X){typeof V2==="object"&&typeof K2<"u"?K2.exports=X():typeof define==="function"&&define.amd?define(X):(J=typeof globalThis<"u"?globalThis:J||self,J.resolveURI=X())})(V2,function(){let J=/^[\w+.-]+:\/\//,X=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,Z=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;function Q(C){return J.test(C)}function Y(C){return C.startsWith("//")}function z(C){return C.startsWith("/")}function H(C){return C.startsWith("file:")}function G(C){return/^[.?#]/.test(C)}function W(C){let L=X.exec(C);return U(L[1],L[2]||"",L[3],L[4]||"",L[5]||"/",L[6]||"",L[7]||"")}function V(C){let L=Z.exec(C),b=L[2];return U("file:","",L[1]||"","",z(b)?b:"/"+b,L[3]||"",L[4]||"")}function U(C,L,b,s,h,i,H1){return{scheme:C,user:L,host:b,port:s,path:h,query:i,hash:H1,type:7}}function q(C){if(Y(C)){let b=W("http:"+C);return b.scheme="",b.type=6,b}if(z(C)){let b=W("http://foo.com"+C);return b.scheme="",b.host="",b.type=5,b}if(H(C))return V(C);if(Q(C))return W(C);let L=W("http://foo.com/"+C);return L.scheme="",L.host="",L.type=C?C.startsWith("?")?3:C.startsWith("#")?2:4:1,L}function O(C){if(C.endsWith("/.."))return C;let L=C.lastIndexOf("/");return C.slice(0,L+1)}function A(C,L){if(D(L,L.type),C.path==="/")C.path=L.path;else C.path=O(L.path)+C.path}function D(C,L){let b=L<=4,s=C.path.split("/"),h=1,i=0,H1=!1;for(let L1=1;L1<s.length;L1++){let f1=s[L1];if(!f1){H1=!0;continue}if(H1=!1,f1===".")continue;if(f1===".."){if(i)H1=!0,i--,h--;else if(b)s[h++]=f1;continue}s[h++]=f1,i++}let M1="";for(let L1=1;L1<h;L1++)M1+="/"+s[L1];if(!M1||H1&&!M1.endsWith("/.."))M1+="/";C.path=M1}function S(C,L){if(!C&&!L)return"";let b=q(C),s=b.type;if(L&&s!==7){let i=q(L),H1=i.type;switch(s){case 1:b.hash=i.hash;case 2:b.query=i.query;case 3:case 4:A(b,i);case 5:b.user=i.user,b.host=i.host,b.port=i.port;case 6:b.scheme=i.scheme}if(H1>s)s=H1}D(b,s);let h=b.query+b.hash;switch(s){case 2:case 3:return h;case 4:{let i=b.path.slice(1);if(!i)return h||".";if(G(L||C)&&!G(i))return"./"+i+h;return i+h}case 5:return b.path+h;default:return b.scheme+"//"+b.user+b.host+b.port+b.path+h}}return S})});var B2=N((U2,XX)=>{(function(J,X){if(typeof U2==="object"&&typeof XX<"u")X(XX,A7(),W2()),XX.exports=Z(XX);else if(typeof define==="function"&&define.amd)define(["module","@jridgewell/resolve-uri","@jridgewell/sourcemap-codec"],function(Q){X.apply(this,arguments),Q.exports=Z(Q)});else{let Q={exports:{}};X(Q,J.resolveURI,J.sourcemapCodec),J=typeof globalThis<"u"?globalThis:J||self,J.traceMapping=Z(Q)}function Z(Q){return"default"in Q.exports?Q.exports.default:Q.exports}})(U2,function(J,X,Z){var{create:Q,defineProperty:Y,getOwnPropertyDescriptor:z,getOwnPropertyNames:H,getPrototypeOf:G}=Object,W=Object.prototype.hasOwnProperty,V=(P,k)=>function(){return k||(0,P[H(P)[0]])((k={exports:{}}).exports,k),k.exports},U=(P,k)=>{for(var v in k)Y(P,v,{get:k[v],enumerable:!0})},q=(P,k,v,y)=>{if(k&&typeof k==="object"||typeof k==="function"){for(let e of H(k))if(!W.call(P,e)&&e!==v)Y(P,e,{get:()=>k[e],enumerable:!(y=z(k,e))||y.enumerable})}return P},O=(P,k,v)=>(v=P!=null?Q(G(P)):{},q(k||!P||!P.__esModule?Y(v,"default",{value:P,enumerable:!0}):v,P)),A=(P)=>q(Y({},"__esModule",{value:!0}),P),D=V({"umd:@jridgewell/sourcemap-codec"(P,k){k.exports=Z}}),S=V({"umd:@jridgewell/resolve-uri"(P,k){k.exports=X}}),C={};U(C,{AnyMap:()=>N1,FlattenMap:()=>N1,GREATEST_LOWER_BOUND:()=>r1,LEAST_UPPER_BOUND:()=>v1,TraceMap:()=>d1,allGeneratedPositionsFor:()=>Q1,decodedMap:()=>z0,decodedMappings:()=>E,eachMapping:()=>F1,encodedMap:()=>I0,encodedMappings:()=>_,generatedPositionFor:()=>Z1,isIgnored:()=>e0,originalPositionFor:()=>d,presortedDecodedMap:()=>Y0,sourceContentFor:()=>VJ,traceSegment:()=>l}),J.exports=A(C);var L=O(D()),b=O(S());function s(P){if(!P)return"";let k=P.lastIndexOf("/");return P.slice(0,k+1)}function h(P,k){let v=s(P),y=k?k+"/":"";return(e)=>(0,b.default)(y+(e||""),v)}var i=0,H1=1,M1=2,L1=3,f1=4,XJ=1,ZJ=2;function HJ(P,k){let v=WJ(P,0);if(v===P.length)return P;if(!k)P=P.slice();for(let y=v;y<P.length;y=WJ(P,y+1))P[y]=i1(P[y],k);return P}function WJ(P,k){for(let v=k;v<P.length;v++)if(!wJ(P[v]))return v;return P.length}function wJ(P){for(let k=1;k<P.length;k++)if(P[k][i]<P[k-1][i])return!1;return!0}function i1(P,k){if(!k)P=P.slice();return P.sort(_J)}function _J(P,k){return P[i]-k[i]}function m(P,k){let v=k.map(()=>[]);for(let y=0;y<P.length;y++){let e=P[y];for(let a=0;a<e.length;a++){let U1=e[a];if(U1.length===1)continue;let P1=U1[H1],V1=U1[M1],h1=U1[L1],y1=v[P1];(y1[V1]||(y1[V1]=[])).push([h1,y,U1[i]])}}for(let y=0;y<v.length;y++){let e=v[y];for(let a=0;a<e.length;a++){let U1=e[a];if(U1)U1.sort(_J)}}return v}var g=!1;function T(P,k,v,y){while(v<=y){let e=v+(y-v>>1),a=P[e][i]-k;if(a===0)return g=!0,e;if(a<0)v=e+1;else y=e-1}return g=!1,v-1}function c(P,k,v){for(let y=v+1;y<P.length;v=y++)if(P[y][i]!==k)break;return v}function J1(P,k,v){for(let y=v-1;y>=0;v=y--)if(P[y][i]!==k)break;return v}function W1(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}function C1(P,k,v,y){let{lastKey:e,lastNeedle:a,lastIndex:U1}=v,P1=0,V1=P.length-1;if(y===e){if(k===a)return g=U1!==-1&&P[U1][i]===k,U1;if(k>=a)P1=U1===-1?0:U1;else V1=U1}return v.lastKey=y,v.lastNeedle=k,v.lastIndex=T(P,k,P1,V1)}function $1(P){return typeof P==="string"?JSON.parse(P):P}var N1=function(P,k){let v=$1(P);if(!("sections"in v))return new d1(v,k);let y=[],e=[],a=[],U1=[],P1=[];O1(v,k,y,e,a,U1,P1,0,0,1/0,1/0);let V1={version:3,file:v.file,names:U1,sources:e,sourcesContent:a,mappings:y,ignoreList:P1};return Y0(V1)};function O1(P,k,v,y,e,a,U1,P1,V1,h1,y1){let{sections:u1}=P;for(let GJ=0;GJ<u1.length;GJ++){let{map:KJ,offset:PJ}=u1[GJ],SJ=h1,xJ=y1;if(GJ+1<u1.length){let T0=u1[GJ+1].offset;if(SJ=Math.min(h1,P1+T0.line),SJ===h1)xJ=Math.min(y1,V1+T0.column);else if(SJ<h1)xJ=V1+T0.column}q1(KJ,k,v,y,e,a,U1,P1+PJ.line,V1+PJ.column,SJ,xJ)}}function q1(P,k,v,y,e,a,U1,P1,V1,h1,y1){let u1=$1(P);if("sections"in u1)return O1(...arguments);let GJ=new d1(u1,k),KJ=y.length,PJ=a.length,SJ=E(GJ),{resolvedSources:xJ,sourcesContent:T0,ignoreList:Q2}=GJ;if(w1(y,xJ),w1(a,GJ.names),T0)w1(e,T0);else for(let UJ=0;UJ<xJ.length;UJ++)e.push(null);if(Q2)for(let UJ=0;UJ<Q2.length;UJ++)U1.push(Q2[UJ]+KJ);for(let UJ=0;UJ<SJ.length;UJ++){let Y2=P1+UJ;if(Y2>h1)return;let $7=b1(v,Y2),f3=UJ===0?V1:0,q7=SJ[UJ];for(let z2=0;z2<q7.length;z2++){let G0=q7[z2],iX=f3+G0[i];if(Y2===h1&&iX>=y1)return;if(G0.length===1){$7.push([iX]);continue}let F7=KJ+G0[H1],j7=G0[M1],M7=G0[L1];$7.push(G0.length===4?[iX,F7,j7,M7]:[iX,F7,j7,M7,PJ+G0[f1]])}}}function w1(P,k){for(let v=0;v<k.length;v++)P.push(k[v])}function b1(P,k){for(let v=P.length;v<=k;v++)P[v]=[];return P[k]}var K1="`line` must be greater than 0 (lines start at line 1)",S1="`column` must be greater than or equal to 0 (columns start at column 0)",v1=-1,r1=1,d1=class{constructor(P,k){let v=typeof P==="string";if(!v&&P._decodedMemo)return P;let y=$1(P),{version:e,file:a,names:U1,sourceRoot:P1,sources:V1,sourcesContent:h1}=y;this.version=e,this.file=a,this.names=U1||[],this.sourceRoot=P1,this.sources=V1,this.sourcesContent=h1,this.ignoreList=y.ignoreList||y.x_google_ignoreList||void 0;let y1=h(k,P1);this.resolvedSources=V1.map(y1);let{mappings:u1}=y;if(typeof u1==="string")this._encoded=u1,this._decoded=void 0;else if(Array.isArray(u1))this._encoded=void 0,this._decoded=HJ(u1,v);else if(y.sections)throw Error("TraceMap passed sectioned source map, please use FlattenMap export instead");else throw Error(`invalid source map: ${JSON.stringify(y)}`);this._decodedMemo=W1(),this._bySources=void 0,this._bySourceMemos=void 0}};function m1(P){return P}function _(P){var k,v;return(v=(k=m1(P))._encoded)!=null?v:k._encoded=(0,L.encode)(m1(P)._decoded)}function E(P){var k;return(k=m1(P))._decoded||(k._decoded=(0,L.decode)(m1(P)._encoded))}function l(P,k,v){let y=E(P);if(k>=y.length)return null;let e=y[k],a=H0(e,m1(P)._decodedMemo,k,v,r1);return a===-1?null:e[a]}function d(P,k){let{line:v,column:y,bias:e}=k;if(v--,v<0)throw Error(K1);if(y<0)throw Error(S1);let a=E(P);if(v>=a.length)return hJ(null,null,null,null);let U1=a[v],P1=H0(U1,m1(P)._decodedMemo,v,y,e||r1);if(P1===-1)return hJ(null,null,null,null);let V1=U1[P1];if(V1.length===1)return hJ(null,null,null,null);let{names:h1,resolvedSources:y1}=P;return hJ(y1[V1[H1]],V1[M1]+1,V1[L1],V1.length===5?h1[V1[f1]]:null)}function Z1(P,k){let{source:v,line:y,column:e,bias:a}=k;return R7(P,v,y,e,a||r1,!1)}function Q1(P,k){let{source:v,line:y,column:e,bias:a}=k;return R7(P,v,y,e,a||v1,!0)}function F1(P,k){let v=E(P),{names:y,resolvedSources:e}=P;for(let a=0;a<v.length;a++){let U1=v[a];for(let P1=0;P1<U1.length;P1++){let V1=U1[P1],h1=a+1,y1=V1[0],u1=null,GJ=null,KJ=null,PJ=null;if(V1.length!==1)u1=e[V1[1]],GJ=V1[2]+1,KJ=V1[3];if(V1.length===5)PJ=y[V1[4]];k({generatedLine:h1,generatedColumn:y1,source:u1,originalLine:GJ,originalColumn:KJ,name:PJ})}}}function c1(P,k){let{sources:v,resolvedSources:y}=P,e=v.indexOf(k);if(e===-1)e=y.indexOf(k);return e}function VJ(P,k){let{sourcesContent:v}=P;if(v==null)return null;let y=c1(P,k);return y===-1?null:v[y]}function e0(P,k){let{ignoreList:v}=P;if(v==null)return!1;let y=c1(P,k);return y===-1?!1:v.includes(y)}function Y0(P,k){let v=new d1(fJ(P,[]),k);return m1(v)._decoded=P.mappings,v}function z0(P){return fJ(P,E(P))}function I0(P){return fJ(P,_(P))}function fJ(P,k){return{version:P.version,file:P.file,names:P.names,sourceRoot:P.sourceRoot,sources:P.sources,sourcesContent:P.sourcesContent,mappings:k,ignoreList:P.ignoreList||P.x_google_ignoreList}}function hJ(P,k,v,y){return{source:P,line:k,column:v,name:y}}function MJ(P,k){return{line:P,column:k}}function H0(P,k,v,y,e){let a=C1(P,y,k,v);if(g)a=(e===v1?c:J1)(P,y,a);else if(e===v1)a++;if(a===-1||a===P.length)return-1;return a}function _3(P,k,v,y,e){let a=H0(P,k,v,y,r1);if(!g&&e===v1)a++;if(a===-1||a===P.length)return[];let U1=g?y:P[a][i];if(!g)a=J1(P,U1,a);let P1=c(P,U1,a),V1=[];for(;a<=P1;a++){let h1=P[a];V1.push(MJ(h1[XJ]+1,h1[ZJ]))}return V1}function R7(P,k,v,y,e,a){var U1,P1;if(v--,v<0)throw Error(K1);if(y<0)throw Error(S1);let{sources:V1,resolvedSources:h1}=P,y1=V1.indexOf(k);if(y1===-1)y1=h1.indexOf(k);if(y1===-1)return a?[]:MJ(null,null);let u1=(U1=m1(P))._bySourceMemos||(U1._bySourceMemos=V1.map(W1)),KJ=((P1=m1(P))._bySources||(P1._bySources=m(E(P),u1)))[y1][v];if(KJ==null)return a?[]:MJ(null,null);let PJ=u1[y1];if(a)return _3(KJ,PJ,v,y,e);let SJ=H0(KJ,PJ,v,y,e);if(SJ===-1)return MJ(null,null);let xJ=KJ[SJ];return MJ(xJ[XJ]+1,xJ[ZJ])}})});var C7=N((R2,ZX)=>{(function(J,X){if(typeof R2==="object"&&typeof ZX<"u")X(ZX,W2(),B2()),ZX.exports=Z(ZX);else if(typeof define==="function"&&define.amd)define(["module","@jridgewell/sourcemap-codec","@jridgewell/trace-mapping"],function(Q){X.apply(this,arguments),Q.exports=Z(Q)});else{let Q={exports:{}};X(Q,J.sourcemapCodec,J.traceMapping),J=typeof globalThis<"u"?globalThis:J||self,J.genMapping=Z(Q)}function Z(Q){return"default"in Q.exports?Q.exports.default:Q.exports}})(R2,function(J,X,Z){var{create:Q,defineProperty:Y,getOwnPropertyDescriptor:z,getOwnPropertyNames:H,getPrototypeOf:G}=Object,W=Object.prototype.hasOwnProperty,V=(_,E)=>function(){return E||(0,_[H(_)[0]])((E={exports:{}}).exports,E),E.exports},U=(_,E)=>{for(var l in E)Y(_,l,{get:E[l],enumerable:!0})},q=(_,E,l,d)=>{if(E&&typeof E==="object"||typeof E==="function"){for(let Z1 of H(E))if(!W.call(_,Z1)&&Z1!==l)Y(_,Z1,{get:()=>E[Z1],enumerable:!(d=z(E,Z1))||d.enumerable})}return _},O=(_,E,l)=>(l=_!=null?Q(G(_)):{},q(E||!_||!_.__esModule?Y(l,"default",{value:_,enumerable:!0}):l,_)),A=(_)=>q(Y({},"__esModule",{value:!0}),_),D=V({"umd:@jridgewell/sourcemap-codec"(_,E){E.exports=X}}),S=V({"umd:@jridgewell/trace-mapping"(_,E){E.exports=Z}}),C={};U(C,{GenMapping:()=>wJ,addMapping:()=>m,addSegment:()=>_J,allMappings:()=>N1,fromMap:()=>$1,maybeAddMapping:()=>T,maybeAddSegment:()=>g,setIgnore:()=>J1,setSourceContent:()=>c,toDecodedMap:()=>W1,toEncodedMap:()=>C1}),J.exports=A(C);var L=class{constructor(){this._indexes={__proto__:null},this.array=[]}};function b(_){return _}function s(_,E){return b(_)._indexes[E]}function h(_,E){let l=s(_,E);if(l!==void 0)return l;let{array:d,_indexes:Z1}=b(_),Q1=d.push(E);return Z1[E]=Q1-1}function i(_,E){let l=s(_,E);if(l===void 0)return;let{array:d,_indexes:Z1}=b(_);for(let Q1=l+1;Q1<d.length;Q1++){let F1=d[Q1];d[Q1-1]=F1,Z1[F1]--}Z1[E]=void 0,d.pop()}var H1=O(D()),M1=O(S()),L1=0,f1=1,XJ=2,ZJ=3,HJ=4,WJ=-1,wJ=class{constructor({file:_,sourceRoot:E}={}){this._names=new L,this._sources=new L,this._sourcesContent=[],this._mappings=[],this.file=_,this.sourceRoot=E,this._ignoreList=new L}};function i1(_){return _}function _J(_,E,l,d,Z1,Q1,F1,c1){return O1(!1,_,E,l,d,Z1,Q1,F1,c1)}function m(_,E){return m1(!1,_,E)}var g=(_,E,l,d,Z1,Q1,F1,c1)=>{return O1(!0,_,E,l,d,Z1,Q1,F1,c1)},T=(_,E)=>{return m1(!0,_,E)};function c(_,E,l){let{_sources:d,_sourcesContent:Z1}=i1(_),Q1=h(d,E);Z1[Q1]=l}function J1(_,E,l=!0){let{_sources:d,_sourcesContent:Z1,_ignoreList:Q1}=i1(_),F1=h(d,E);if(F1===Z1.length)Z1[F1]=null;if(l)h(Q1,F1);else i(Q1,F1)}function W1(_){let{_mappings:E,_sources:l,_sourcesContent:d,_names:Z1,_ignoreList:Q1}=i1(_);return S1(E),{version:3,file:_.file||void 0,names:Z1.array,sourceRoot:_.sourceRoot||void 0,sources:l.array,sourcesContent:d,mappings:E,ignoreList:Q1.array}}function C1(_){let E=W1(_);return Object.assign({},E,{mappings:(0,H1.encode)(E.mappings)})}function $1(_){let E=new M1.TraceMap(_),l=new wJ({file:E.file,sourceRoot:E.sourceRoot});if(v1(i1(l)._names,E.names),v1(i1(l)._sources,E.sources),i1(l)._sourcesContent=E.sourcesContent||E.sources.map(()=>null),i1(l)._mappings=(0,M1.decodedMappings)(E),E.ignoreList)v1(i1(l)._ignoreList,E.ignoreList);return l}function N1(_){let E=[],{_mappings:l,_sources:d,_names:Z1}=i1(_);for(let Q1=0;Q1<l.length;Q1++){let F1=l[Q1];for(let c1=0;c1<F1.length;c1++){let VJ=F1[c1],e0={line:Q1+1,column:VJ[L1]},Y0=void 0,z0=void 0,I0=void 0;if(VJ.length!==1){if(Y0=d.array[VJ[f1]],z0={line:VJ[XJ]+1,column:VJ[ZJ]},VJ.length===5)I0=Z1.array[VJ[HJ]]}E.push({generated:e0,source:Y0,original:z0,name:I0})}}return E}function O1(_,E,l,d,Z1,Q1,F1,c1,VJ){let{_mappings:e0,_sources:Y0,_sourcesContent:z0,_names:I0}=i1(E),fJ=w1(e0,l),hJ=b1(fJ,d);if(!Z1){if(_&&r1(fJ,hJ))return;return K1(fJ,hJ,[d])}q1(Q1),q1(F1);let MJ=h(Y0,Z1),H0=c1?h(I0,c1):WJ;if(MJ===z0.length)z0[MJ]=VJ!=null?VJ:null;if(_&&d1(fJ,hJ,MJ,Q1,F1,H0))return;return K1(fJ,hJ,c1?[d,MJ,Q1,F1,H0]:[d,MJ,Q1,F1])}function q1(_){}function w1(_,E){for(let l=_.length;l<=E;l++)_[l]=[];return _[E]}function b1(_,E){let l=_.length;for(let d=l-1;d>=0;l=d--){let Z1=_[d];if(E>=Z1[L1])break}return l}function K1(_,E,l){for(let d=_.length;d>E;d--)_[d]=_[d-1];_[E]=l}function S1(_){let{length:E}=_,l=E;for(let d=l-1;d>=0;l=d,d--)if(_[d].length>0)break;if(l<E)_.length=l}function v1(_,E){for(let l=0;l<E.length;l++)h(_,E[l])}function r1(_,E){if(E===0)return!0;return _[E-1].length===1}function d1(_,E,l,d,Z1,Q1){if(E===0)return!1;let F1=_[E-1];if(F1.length===1)return!1;return l===F1[f1]&&d===F1[XJ]&&Z1===F1[ZJ]&&Q1===(F1.length===5?F1[HJ]:WJ)}function m1(_,E,l){let{generated:d,source:Z1,original:Q1,name:F1,content:c1}=l;if(!Z1)return O1(_,E,d.line-1,d.column,null,null,null,null,null);return q1(Q1),O1(_,E,d.line-1,d.column,Z1,Q1.line-1,Q1.column,F1,c1)}})});var P7=N((N7)=>{Object.defineProperty(N7,"__esModule",{value:!0});N7.default=void 0;var rJ=C7(),$2=B2();class D7{constructor(J,X){var Z;this._map=void 0,this._rawMappings=void 0,this._sourceFileName=void 0,this._lastGenLine=0,this._lastSourceLine=0,this._lastSourceColumn=0,this._inputMap=null;let Q=this._map=new rJ.GenMapping({sourceRoot:J.sourceRoot});if(this._sourceFileName=(Z=J.sourceFileName)==null?void 0:Z.replace(/\\/g,"/"),this._rawMappings=void 0,J.inputSourceMap){this._inputMap=new $2.TraceMap(J.inputSourceMap);let z=this._inputMap.resolvedSources;if(z.length)for(let H=0;H<z.length;H++){var Y;(0,rJ.setSourceContent)(Q,z[H],(Y=this._inputMap.sourcesContent)==null?void 0:Y[H])}}if(typeof X==="string"&&!J.inputSourceMap)(0,rJ.setSourceContent)(Q,this._sourceFileName,X);else if(typeof X==="object")for(let z of Object.keys(X))(0,rJ.setSourceContent)(Q,z.replace(/\\/g,"/"),X[z])}get(){return(0,rJ.toEncodedMap)(this._map)}getDecoded(){return(0,rJ.toDecodedMap)(this._map)}getRawMappings(){return this._rawMappings||(this._rawMappings=(0,rJ.allMappings)(this._map))}mark(J,X,Z,Q,Y,z){var H;this._rawMappings=void 0;let G;if(X!=null)if(this._inputMap){if(G=(0,$2.originalPositionFor)(this._inputMap,{line:X,column:Z}),!G.name&&Y){let W=(0,$2.originalPositionFor)(this._inputMap,Y);if(W.name)Q=W.name}}else G={name:null,source:(z==null?void 0:z.replace(/\\/g,"/"))||this._sourceFileName,line:X,column:Z};(0,rJ.maybeAddMapping)(this._map,{name:Q,generated:J,source:(H=G)==null?void 0:H.source,original:G})}}N7.default=D7});var b7=N((T7)=>{Object.defineProperty(T7,"__esModule",{value:!0});T7.default=void 0;var S7=[];for(let J=0;J<32;J++)S7.push(" ".repeat(J*2));class I7{constructor(J,X){this._map=null,this._buf="",this._str="",this._appendCount=0,this._last=0,this._canMarkIdName=!0,this._indentChar="",this._queuedChar=0,this._position={line:1,column:0},this._sourcePosition={identifierName:void 0,identifierNamePos:void 0,line:void 0,column:void 0,filename:void 0},this._map=J,this._indentChar=X}get(){let{_map:J,_last:X}=this;if(this._queuedChar!==32)this._flush();let Z=X===10?(this._buf+this._str).trimRight():this._buf+this._str;if(J===null)return{code:Z,decodedMap:void 0,map:null,rawMappings:void 0};let Q={code:Z,decodedMap:J.getDecoded(),get __mergedMap(){return this.map},get map(){let Y=J.get();return Q.map=Y,Y},set map(Y){Object.defineProperty(Q,"map",{value:Y,writable:!0})},get rawMappings(){let Y=J.getRawMappings();return Q.rawMappings=Y,Y},set rawMappings(Y){Object.defineProperty(Q,"rawMappings",{value:Y,writable:!0})}};return Q}append(J,X){this._flush(),this._append(J,X)}appendChar(J){this._flush(),this._appendChar(J,1,!0)}queue(J){this._flush(),this._queuedChar=J}_flush(){let J=this._queuedChar;if(J!==0)this._appendChar(J,1,!0),this._queuedChar=0}_appendChar(J,X,Z){if(this._last=J,J===-1){let z=X>=64?this._indentChar.repeat(X):S7[X/2];this._str+=z}else this._str+=X>1?String.fromCharCode(J).repeat(X):String.fromCharCode(J);let Q=J===32,Y=this._position;if(J!==10){if(this._map){let z=this._sourcePosition;if(Z&&z){if(this._map.mark(Y,z.line,z.column,Q?void 0:z.identifierName,Q?void 0:z.identifierNamePos,z.filename),!Q&&this._canMarkIdName)z.identifierName=void 0,z.identifierNamePos=void 0}else this._map.mark(Y)}Y.column+=X}else Y.line++,Y.column=0}_append(J,X){let Z=J.length,Q=this._position,Y=this._sourcePosition;if(this._last=-1,++this._appendCount>4096)+this._str,this._buf+=this._str,this._str=J,this._appendCount=0;else this._str+=J;let z=this._map!==null;if(!X&&!z){Q.column+=Z;return}let{column:H,identifierName:G,identifierNamePos:W,filename:V}=Y,U=Y.line;if((G!=null||W!=null)&&this._canMarkIdName)Y.identifierName=void 0,Y.identifierNamePos=void 0;let q=J.indexOf(`
|
|
3
|
+
`),O=0;if(z&&q!==0)this._map.mark(Q,U,H,G,W,V);while(q!==-1){if(Q.line++,Q.column=0,O=q+1,O<Z&&U!==void 0){if(U++,z)this._map.mark(Q,U,0,void 0,void 0,V)}q=J.indexOf(`
|
|
4
|
+
`,O)}Q.column+=Z-O}removeLastSemicolon(){if(this._queuedChar===59)this._queuedChar=0}getLastChar(J){if(!J)return this._last;let X=this._queuedChar;return X!==0?X:this._last}getNewlineCount(){return this._queuedChar===0&&this._last===10?1:0}hasContent(){return this._last!==0}exactSource(J,X){if(!this._map){X();return}this.source("start",J);let Z=J.identifierName,Q=this._sourcePosition;if(Z!=null)this._canMarkIdName=!1,Q.identifierName=Z;if(X(),Z!=null)this._canMarkIdName=!0,Q.identifierName=void 0,Q.identifierNamePos=void 0;this.source("end",J)}source(J,X){if(!this._map)return;this._normalizePosition(J,X,0)}sourceWithOffset(J,X,Z){if(!this._map)return;this._normalizePosition(J,X,Z)}_normalizePosition(J,X,Z){this._flush();let Q=X[J],Y=this._sourcePosition;if(Q)Y.line=Q.line,Y.column=Math.max(Q.column+Z,0),Y.filename=X.filename}getCurrentColumn(){return this._position.column+(this._queuedChar?1:0)}getCurrentLine(){return this._position.line}}T7.default=I7});var rX=N((k7)=>{Object.defineProperty(k7,"__esModule",{value:!0});k7.default=i3;function i3(J,X){let Z=Object.keys(X);for(let Q of Z)if(J[Q]!==X[Q])return!1;return!0}});var L0=N((E7)=>{Object.defineProperty(E7,"__esModule",{value:!0});E7.default=r3;var v7=new Set;function r3(J,X,Z="",Q=J){if(v7.has(Q))return;v7.add(Q);let{internal:Y,trace:z}=d3(1,2);if(Y)return;console.warn(`${Z}\`${J}\` has been deprecated, please migrate to \`${X}\`
|
|
5
|
+
${z}`)}function d3(J,X){let{stackTraceLimit:Z,prepareStackTrace:Q}=Error,Y;if(Error.stackTraceLimit=1+J+X,Error.prepareStackTrace=function(H,G){Y=G},Error().stack,Error.stackTraceLimit=Z,Error.prepareStackTrace=Q,!Y)return{internal:!1,trace:""};let z=Y.slice(1+J,1+J+X);return{internal:/[\\/]@babel[\\/]/.test(z[1].getFileName()),trace:z.map((H)=>` at ${H}`).join(`
|
|
6
|
+
`)}}});var E1=N((_7)=>{Object.defineProperty(_7,"__esModule",{value:!0});_7.isAccessor=B$;_7.isAnyTypeAnnotation=bK;_7.isArgumentPlaceholder=zB;_7.isArrayExpression=s3;_7.isArrayPattern=dV;_7.isArrayTypeAnnotation=kK;_7.isArrowFunctionExpression=aV;_7.isAssignmentExpression=t3;_7.isAssignmentPattern=rV;_7.isAwaitExpression=jK;_7.isBigIntLiteral=OK;_7.isBinary=gR;_7.isBinaryExpression=n3;_7.isBindExpression=HB;_7.isBlock=hR;_7.isBlockParent=fR;_7.isBlockStatement=XV;_7.isBooleanLiteral=DV;_7.isBooleanLiteralTypeAnnotation=EK;_7.isBooleanTypeAnnotation=vK;_7.isBreakStatement=ZV;_7.isCallExpression=QV;_7.isCatchClause=YV;_7.isClass=V$;_7.isClassAccessorProperty=wK;_7.isClassBody=sV;_7.isClassDeclaration=nV;_7.isClassExpression=tV;_7.isClassImplements=_K;_7.isClassMethod=VK;_7.isClassPrivateMethod=SK;_7.isClassPrivateProperty=PK;_7.isClassProperty=NK;_7.isCompletionStatement=uR;_7.isConditional=mR;_7.isConditionalExpression=zV;_7.isContinueStatement=HV;_7.isDebuggerStatement=GV;_7.isDecimalLiteral=BB;_7.isDeclaration=tR;_7.isDeclareClass=fK;_7.isDeclareExportAllDeclaration=pK;_7.isDeclareExportDeclaration=iK;_7.isDeclareFunction=hK;_7.isDeclareInterface=xK;_7.isDeclareModule=yK;_7.isDeclareModuleExports=uK;_7.isDeclareOpaqueType=cK;_7.isDeclareTypeAlias=mK;_7.isDeclareVariable=lK;_7.isDeclaredPredicate=rK;_7.isDecorator=GB;_7.isDirective=e3;_7.isDirectiveLiteral=JV;_7.isDoExpression=WB;_7.isDoWhileStatement=WV;_7.isEmptyStatement=VV;_7.isEmptyTypeAnnotation=QU;_7.isEnumBody=O$;_7.isEnumBooleanBody=kU;_7.isEnumBooleanMember=_U;_7.isEnumDeclaration=bU;_7.isEnumDefaultedMember=xU;_7.isEnumMember=A$;_7.isEnumNumberBody=vU;_7.isEnumNumberMember=fU;_7.isEnumStringBody=EU;_7.isEnumStringMember=hU;_7.isEnumSymbolBody=gU;_7.isExistsTypeAnnotation=dK;_7.isExportAllDeclaration=oV;_7.isExportDeclaration=K$;_7.isExportDefaultDeclaration=eV;_7.isExportDefaultSpecifier=VB;_7.isExportNamedDeclaration=JK;_7.isExportNamespaceSpecifier=AK;_7.isExportSpecifier=XK;_7.isExpression=ER;_7.isExpressionStatement=KV;_7.isExpressionWrapper=iR;_7.isFile=UV;_7.isFlow=$$;_7.isFlowBaseAnnotation=F$;_7.isFlowDeclaration=j$;_7.isFlowPredicate=M$;_7.isFlowType=q$;_7.isFor=pR;_7.isForInStatement=BV;_7.isForOfStatement=ZK;_7.isForStatement=RV;_7.isForXStatement=rR;_7.isFunction=dR;_7.isFunctionDeclaration=$V;_7.isFunctionExpression=qV;_7.isFunctionParameter=nR;_7.isFunctionParent=aR;_7.isFunctionTypeAnnotation=aK;_7.isFunctionTypeParam=sK;_7.isGenericTypeAnnotation=tK;_7.isIdentifier=FV;_7.isIfStatement=jV;_7.isImmutable=Z$;_7.isImport=MK;_7.isImportAttribute=LK;_7.isImportDeclaration=QK;_7.isImportDefaultSpecifier=YK;_7.isImportExpression=GK;_7.isImportNamespaceSpecifier=zK;_7.isImportOrExportDeclaration=g7;_7.isImportSpecifier=HK;_7.isIndexedAccessType=yU;_7.isInferredPredicate=nK;_7.isInterfaceDeclaration=eK;_7.isInterfaceExtends=oK;_7.isInterfaceTypeAnnotation=JU;_7.isInterpreterDirective=o3;_7.isIntersectionTypeAnnotation=XU;_7.isJSX=C$;_7.isJSXAttribute=mU;_7.isJSXClosingElement=cU;_7.isJSXClosingFragment=XB;_7.isJSXElement=lU;_7.isJSXEmptyExpression=iU;_7.isJSXExpressionContainer=pU;_7.isJSXFragment=eU;_7.isJSXIdentifier=dU;_7.isJSXMemberExpression=aU;_7.isJSXNamespacedName=sU;_7.isJSXOpeningElement=tU;_7.isJSXOpeningFragment=JB;_7.isJSXSpreadAttribute=nU;_7.isJSXSpreadChild=rU;_7.isJSXText=oU;_7.isLVal=eR;_7.isLabeledStatement=MV;_7.isLiteral=X$;_7.isLogicalExpression=wV;_7.isLoop=cR;_7.isMemberExpression=PV;_7.isMetaProperty=WK;_7.isMethod=Y$;_7.isMiscellaneous=D$;_7.isMixedTypeAnnotation=ZU;_7.isModuleDeclaration=k$;_7.isModuleExpression=RB;_7.isModuleSpecifier=U$;_7.isNewExpression=SV;_7.isNoop=ZB;_7.isNullLiteral=CV;_7.isNullLiteralTypeAnnotation=gK;_7.isNullableTypeAnnotation=YU;_7.isNumberLiteral=I$;_7.isNumberLiteralTypeAnnotation=zU;_7.isNumberTypeAnnotation=HU;_7.isNumericLiteral=AV;_7.isObjectExpression=TV;_7.isObjectMember=z$;_7.isObjectMethod=LV;_7.isObjectPattern=KK;_7.isObjectProperty=bV;_7.isObjectTypeAnnotation=GU;_7.isObjectTypeCallProperty=VU;_7.isObjectTypeIndexer=KU;_7.isObjectTypeInternalSlot=WU;_7.isObjectTypeProperty=UU;_7.isObjectTypeSpreadProperty=BU;_7.isOpaqueType=RU;_7.isOptionalCallExpression=DK;_7.isOptionalIndexedAccessType=uU;_7.isOptionalMemberExpression=CK;_7.isParenthesizedExpression=gV;_7.isPattern=W$;_7.isPatternLike=oR;_7.isPipelineBareFunction=FB;_7.isPipelinePrimaryTopicReference=jB;_7.isPipelineTopicExpression=qB;_7.isPlaceholder=QB;_7.isPrivate=R$;_7.isPrivateName=IK;_7.isProgram=IV;_7.isProperty=H$;_7.isPureish=sR;_7.isQualifiedTypeIdentifier=$U;_7.isRecordExpression=KB;_7.isRegExpLiteral=NV;_7.isRegexLiteral=T$;_7.isRestElement=kV;_7.isRestProperty=L$;_7.isReturnStatement=vV;_7.isScopable=_R;_7.isSequenceExpression=EV;_7.isSpreadElement=UK;_7.isSpreadProperty=b$;_7.isStandardized=vR;_7.isStatement=xR;_7.isStaticBlock=TK;_7.isStringLiteral=OV;_7.isStringLiteralTypeAnnotation=qU;_7.isStringTypeAnnotation=FU;_7.isSuper=BK;_7.isSwitchCase=_V;_7.isSwitchStatement=fV;_7.isSymbolTypeAnnotation=jU;_7.isTSAnyKeyword=TB;_7.isTSArrayType=aB;_7.isTSAsExpression=$R;_7.isTSBaseType=S$;_7.isTSBigIntKeyword=bB;_7.isTSBooleanKeyword=LB;_7.isTSCallSignatureDeclaration=NB;_7.isTSConditionalType=XR;_7.isTSConstructSignatureDeclaration=wB;_7.isTSConstructorType=lB;_7.isTSDeclareFunction=AB;_7.isTSDeclareMethod=CB;_7.isTSEntityName=J$;_7.isTSEnumBody=jR;_7.isTSEnumDeclaration=MR;_7.isTSEnumMember=OR;_7.isTSExportAssignment=SR;_7.isTSExpressionWithTypeArguments=VR;_7.isTSExternalModuleReference=wR;_7.isTSFunctionType=cB;_7.isTSImportEqualsDeclaration=NR;_7.isTSImportType=DR;_7.isTSIndexSignature=IB;_7.isTSIndexedAccessType=zR;_7.isTSInferType=ZR;_7.isTSInstantiationExpression=RR;_7.isTSInterfaceBody=UR;_7.isTSInterfaceDeclaration=KR;_7.isTSIntersectionType=JR;_7.isTSIntrinsicKeyword=kB;_7.isTSLiteralType=WR;_7.isTSMappedType=HR;_7.isTSMethodSignature=SB;_7.isTSModuleBlock=CR;_7.isTSModuleDeclaration=AR;_7.isTSNamedTupleMember=oB;_7.isTSNamespaceExportDeclaration=IR;_7.isTSNeverKeyword=vB;_7.isTSNonNullExpression=PR;_7.isTSNullKeyword=EB;_7.isTSNumberKeyword=gB;_7.isTSObjectKeyword=_B;_7.isTSOptionalType=tB;_7.isTSParameterProperty=OB;_7.isTSParenthesizedType=QR;_7.isTSPropertySignature=PB;_7.isTSQualifiedName=DB;_7.isTSRestType=nB;_7.isTSSatisfiesExpression=qR;_7.isTSStringKeyword=fB;_7.isTSSymbolKeyword=hB;_7.isTSTemplateLiteralType=GR;_7.isTSThisType=mB;_7.isTSTupleType=sB;_7.isTSType=P$;_7.isTSTypeAliasDeclaration=BR;_7.isTSTypeAnnotation=TR;_7.isTSTypeAssertion=FR;_7.isTSTypeElement=w$;_7.isTSTypeLiteral=dB;_7.isTSTypeOperator=YR;_7.isTSTypeParameter=kR;_7.isTSTypeParameterDeclaration=bR;_7.isTSTypeParameterInstantiation=LR;_7.isTSTypePredicate=pB;_7.isTSTypeQuery=rB;_7.isTSTypeReference=iB;_7.isTSUndefinedKeyword=xB;_7.isTSUnionType=eB;_7.isTSUnknownKeyword=yB;_7.isTSVoidKeyword=uB;_7.isTaggedTemplateExpression=RK;_7.isTemplateElement=$K;_7.isTemplateLiteral=qK;_7.isTerminatorless=yR;_7.isThisExpression=hV;_7.isThisTypeAnnotation=MU;_7.isThrowStatement=xV;_7.isTopicReference=$B;_7.isTryStatement=yV;_7.isTupleExpression=UB;_7.isTupleTypeAnnotation=OU;_7.isTypeAlias=CU;_7.isTypeAnnotation=DU;_7.isTypeCastExpression=NU;_7.isTypeParameter=wU;_7.isTypeParameterDeclaration=PU;_7.isTypeParameterInstantiation=SU;_7.isTypeScript=N$;_7.isTypeofTypeAnnotation=AU;_7.isUnaryExpression=uV;_7.isUnaryLike=G$;_7.isUnionTypeAnnotation=IU;_7.isUpdateExpression=mV;_7.isUserWhitespacable=Q$;_7.isV8IntrinsicIdentifier=YB;_7.isVariableDeclaration=cV;_7.isVariableDeclarator=lV;_7.isVariance=TU;_7.isVoidPattern=MB;_7.isVoidTypeAnnotation=LU;_7.isWhile=lR;_7.isWhileStatement=iV;_7.isWithStatement=pV;_7.isYieldExpression=FK;var R=rX(),QX=L0();function s3(J,X){if(!J)return!1;if(J.type!=="ArrayExpression")return!1;return X==null||(0,R.default)(J,X)}function t3(J,X){if(!J)return!1;if(J.type!=="AssignmentExpression")return!1;return X==null||(0,R.default)(J,X)}function n3(J,X){if(!J)return!1;if(J.type!=="BinaryExpression")return!1;return X==null||(0,R.default)(J,X)}function o3(J,X){if(!J)return!1;if(J.type!=="InterpreterDirective")return!1;return X==null||(0,R.default)(J,X)}function e3(J,X){if(!J)return!1;if(J.type!=="Directive")return!1;return X==null||(0,R.default)(J,X)}function JV(J,X){if(!J)return!1;if(J.type!=="DirectiveLiteral")return!1;return X==null||(0,R.default)(J,X)}function XV(J,X){if(!J)return!1;if(J.type!=="BlockStatement")return!1;return X==null||(0,R.default)(J,X)}function ZV(J,X){if(!J)return!1;if(J.type!=="BreakStatement")return!1;return X==null||(0,R.default)(J,X)}function QV(J,X){if(!J)return!1;if(J.type!=="CallExpression")return!1;return X==null||(0,R.default)(J,X)}function YV(J,X){if(!J)return!1;if(J.type!=="CatchClause")return!1;return X==null||(0,R.default)(J,X)}function zV(J,X){if(!J)return!1;if(J.type!=="ConditionalExpression")return!1;return X==null||(0,R.default)(J,X)}function HV(J,X){if(!J)return!1;if(J.type!=="ContinueStatement")return!1;return X==null||(0,R.default)(J,X)}function GV(J,X){if(!J)return!1;if(J.type!=="DebuggerStatement")return!1;return X==null||(0,R.default)(J,X)}function WV(J,X){if(!J)return!1;if(J.type!=="DoWhileStatement")return!1;return X==null||(0,R.default)(J,X)}function VV(J,X){if(!J)return!1;if(J.type!=="EmptyStatement")return!1;return X==null||(0,R.default)(J,X)}function KV(J,X){if(!J)return!1;if(J.type!=="ExpressionStatement")return!1;return X==null||(0,R.default)(J,X)}function UV(J,X){if(!J)return!1;if(J.type!=="File")return!1;return X==null||(0,R.default)(J,X)}function BV(J,X){if(!J)return!1;if(J.type!=="ForInStatement")return!1;return X==null||(0,R.default)(J,X)}function RV(J,X){if(!J)return!1;if(J.type!=="ForStatement")return!1;return X==null||(0,R.default)(J,X)}function $V(J,X){if(!J)return!1;if(J.type!=="FunctionDeclaration")return!1;return X==null||(0,R.default)(J,X)}function qV(J,X){if(!J)return!1;if(J.type!=="FunctionExpression")return!1;return X==null||(0,R.default)(J,X)}function FV(J,X){if(!J)return!1;if(J.type!=="Identifier")return!1;return X==null||(0,R.default)(J,X)}function jV(J,X){if(!J)return!1;if(J.type!=="IfStatement")return!1;return X==null||(0,R.default)(J,X)}function MV(J,X){if(!J)return!1;if(J.type!=="LabeledStatement")return!1;return X==null||(0,R.default)(J,X)}function OV(J,X){if(!J)return!1;if(J.type!=="StringLiteral")return!1;return X==null||(0,R.default)(J,X)}function AV(J,X){if(!J)return!1;if(J.type!=="NumericLiteral")return!1;return X==null||(0,R.default)(J,X)}function CV(J,X){if(!J)return!1;if(J.type!=="NullLiteral")return!1;return X==null||(0,R.default)(J,X)}function DV(J,X){if(!J)return!1;if(J.type!=="BooleanLiteral")return!1;return X==null||(0,R.default)(J,X)}function NV(J,X){if(!J)return!1;if(J.type!=="RegExpLiteral")return!1;return X==null||(0,R.default)(J,X)}function wV(J,X){if(!J)return!1;if(J.type!=="LogicalExpression")return!1;return X==null||(0,R.default)(J,X)}function PV(J,X){if(!J)return!1;if(J.type!=="MemberExpression")return!1;return X==null||(0,R.default)(J,X)}function SV(J,X){if(!J)return!1;if(J.type!=="NewExpression")return!1;return X==null||(0,R.default)(J,X)}function IV(J,X){if(!J)return!1;if(J.type!=="Program")return!1;return X==null||(0,R.default)(J,X)}function TV(J,X){if(!J)return!1;if(J.type!=="ObjectExpression")return!1;return X==null||(0,R.default)(J,X)}function LV(J,X){if(!J)return!1;if(J.type!=="ObjectMethod")return!1;return X==null||(0,R.default)(J,X)}function bV(J,X){if(!J)return!1;if(J.type!=="ObjectProperty")return!1;return X==null||(0,R.default)(J,X)}function kV(J,X){if(!J)return!1;if(J.type!=="RestElement")return!1;return X==null||(0,R.default)(J,X)}function vV(J,X){if(!J)return!1;if(J.type!=="ReturnStatement")return!1;return X==null||(0,R.default)(J,X)}function EV(J,X){if(!J)return!1;if(J.type!=="SequenceExpression")return!1;return X==null||(0,R.default)(J,X)}function gV(J,X){if(!J)return!1;if(J.type!=="ParenthesizedExpression")return!1;return X==null||(0,R.default)(J,X)}function _V(J,X){if(!J)return!1;if(J.type!=="SwitchCase")return!1;return X==null||(0,R.default)(J,X)}function fV(J,X){if(!J)return!1;if(J.type!=="SwitchStatement")return!1;return X==null||(0,R.default)(J,X)}function hV(J,X){if(!J)return!1;if(J.type!=="ThisExpression")return!1;return X==null||(0,R.default)(J,X)}function xV(J,X){if(!J)return!1;if(J.type!=="ThrowStatement")return!1;return X==null||(0,R.default)(J,X)}function yV(J,X){if(!J)return!1;if(J.type!=="TryStatement")return!1;return X==null||(0,R.default)(J,X)}function uV(J,X){if(!J)return!1;if(J.type!=="UnaryExpression")return!1;return X==null||(0,R.default)(J,X)}function mV(J,X){if(!J)return!1;if(J.type!=="UpdateExpression")return!1;return X==null||(0,R.default)(J,X)}function cV(J,X){if(!J)return!1;if(J.type!=="VariableDeclaration")return!1;return X==null||(0,R.default)(J,X)}function lV(J,X){if(!J)return!1;if(J.type!=="VariableDeclarator")return!1;return X==null||(0,R.default)(J,X)}function iV(J,X){if(!J)return!1;if(J.type!=="WhileStatement")return!1;return X==null||(0,R.default)(J,X)}function pV(J,X){if(!J)return!1;if(J.type!=="WithStatement")return!1;return X==null||(0,R.default)(J,X)}function rV(J,X){if(!J)return!1;if(J.type!=="AssignmentPattern")return!1;return X==null||(0,R.default)(J,X)}function dV(J,X){if(!J)return!1;if(J.type!=="ArrayPattern")return!1;return X==null||(0,R.default)(J,X)}function aV(J,X){if(!J)return!1;if(J.type!=="ArrowFunctionExpression")return!1;return X==null||(0,R.default)(J,X)}function sV(J,X){if(!J)return!1;if(J.type!=="ClassBody")return!1;return X==null||(0,R.default)(J,X)}function tV(J,X){if(!J)return!1;if(J.type!=="ClassExpression")return!1;return X==null||(0,R.default)(J,X)}function nV(J,X){if(!J)return!1;if(J.type!=="ClassDeclaration")return!1;return X==null||(0,R.default)(J,X)}function oV(J,X){if(!J)return!1;if(J.type!=="ExportAllDeclaration")return!1;return X==null||(0,R.default)(J,X)}function eV(J,X){if(!J)return!1;if(J.type!=="ExportDefaultDeclaration")return!1;return X==null||(0,R.default)(J,X)}function JK(J,X){if(!J)return!1;if(J.type!=="ExportNamedDeclaration")return!1;return X==null||(0,R.default)(J,X)}function XK(J,X){if(!J)return!1;if(J.type!=="ExportSpecifier")return!1;return X==null||(0,R.default)(J,X)}function ZK(J,X){if(!J)return!1;if(J.type!=="ForOfStatement")return!1;return X==null||(0,R.default)(J,X)}function QK(J,X){if(!J)return!1;if(J.type!=="ImportDeclaration")return!1;return X==null||(0,R.default)(J,X)}function YK(J,X){if(!J)return!1;if(J.type!=="ImportDefaultSpecifier")return!1;return X==null||(0,R.default)(J,X)}function zK(J,X){if(!J)return!1;if(J.type!=="ImportNamespaceSpecifier")return!1;return X==null||(0,R.default)(J,X)}function HK(J,X){if(!J)return!1;if(J.type!=="ImportSpecifier")return!1;return X==null||(0,R.default)(J,X)}function GK(J,X){if(!J)return!1;if(J.type!=="ImportExpression")return!1;return X==null||(0,R.default)(J,X)}function WK(J,X){if(!J)return!1;if(J.type!=="MetaProperty")return!1;return X==null||(0,R.default)(J,X)}function VK(J,X){if(!J)return!1;if(J.type!=="ClassMethod")return!1;return X==null||(0,R.default)(J,X)}function KK(J,X){if(!J)return!1;if(J.type!=="ObjectPattern")return!1;return X==null||(0,R.default)(J,X)}function UK(J,X){if(!J)return!1;if(J.type!=="SpreadElement")return!1;return X==null||(0,R.default)(J,X)}function BK(J,X){if(!J)return!1;if(J.type!=="Super")return!1;return X==null||(0,R.default)(J,X)}function RK(J,X){if(!J)return!1;if(J.type!=="TaggedTemplateExpression")return!1;return X==null||(0,R.default)(J,X)}function $K(J,X){if(!J)return!1;if(J.type!=="TemplateElement")return!1;return X==null||(0,R.default)(J,X)}function qK(J,X){if(!J)return!1;if(J.type!=="TemplateLiteral")return!1;return X==null||(0,R.default)(J,X)}function FK(J,X){if(!J)return!1;if(J.type!=="YieldExpression")return!1;return X==null||(0,R.default)(J,X)}function jK(J,X){if(!J)return!1;if(J.type!=="AwaitExpression")return!1;return X==null||(0,R.default)(J,X)}function MK(J,X){if(!J)return!1;if(J.type!=="Import")return!1;return X==null||(0,R.default)(J,X)}function OK(J,X){if(!J)return!1;if(J.type!=="BigIntLiteral")return!1;return X==null||(0,R.default)(J,X)}function AK(J,X){if(!J)return!1;if(J.type!=="ExportNamespaceSpecifier")return!1;return X==null||(0,R.default)(J,X)}function CK(J,X){if(!J)return!1;if(J.type!=="OptionalMemberExpression")return!1;return X==null||(0,R.default)(J,X)}function DK(J,X){if(!J)return!1;if(J.type!=="OptionalCallExpression")return!1;return X==null||(0,R.default)(J,X)}function NK(J,X){if(!J)return!1;if(J.type!=="ClassProperty")return!1;return X==null||(0,R.default)(J,X)}function wK(J,X){if(!J)return!1;if(J.type!=="ClassAccessorProperty")return!1;return X==null||(0,R.default)(J,X)}function PK(J,X){if(!J)return!1;if(J.type!=="ClassPrivateProperty")return!1;return X==null||(0,R.default)(J,X)}function SK(J,X){if(!J)return!1;if(J.type!=="ClassPrivateMethod")return!1;return X==null||(0,R.default)(J,X)}function IK(J,X){if(!J)return!1;if(J.type!=="PrivateName")return!1;return X==null||(0,R.default)(J,X)}function TK(J,X){if(!J)return!1;if(J.type!=="StaticBlock")return!1;return X==null||(0,R.default)(J,X)}function LK(J,X){if(!J)return!1;if(J.type!=="ImportAttribute")return!1;return X==null||(0,R.default)(J,X)}function bK(J,X){if(!J)return!1;if(J.type!=="AnyTypeAnnotation")return!1;return X==null||(0,R.default)(J,X)}function kK(J,X){if(!J)return!1;if(J.type!=="ArrayTypeAnnotation")return!1;return X==null||(0,R.default)(J,X)}function vK(J,X){if(!J)return!1;if(J.type!=="BooleanTypeAnnotation")return!1;return X==null||(0,R.default)(J,X)}function EK(J,X){if(!J)return!1;if(J.type!=="BooleanLiteralTypeAnnotation")return!1;return X==null||(0,R.default)(J,X)}function gK(J,X){if(!J)return!1;if(J.type!=="NullLiteralTypeAnnotation")return!1;return X==null||(0,R.default)(J,X)}function _K(J,X){if(!J)return!1;if(J.type!=="ClassImplements")return!1;return X==null||(0,R.default)(J,X)}function fK(J,X){if(!J)return!1;if(J.type!=="DeclareClass")return!1;return X==null||(0,R.default)(J,X)}function hK(J,X){if(!J)return!1;if(J.type!=="DeclareFunction")return!1;return X==null||(0,R.default)(J,X)}function xK(J,X){if(!J)return!1;if(J.type!=="DeclareInterface")return!1;return X==null||(0,R.default)(J,X)}function yK(J,X){if(!J)return!1;if(J.type!=="DeclareModule")return!1;return X==null||(0,R.default)(J,X)}function uK(J,X){if(!J)return!1;if(J.type!=="DeclareModuleExports")return!1;return X==null||(0,R.default)(J,X)}function mK(J,X){if(!J)return!1;if(J.type!=="DeclareTypeAlias")return!1;return X==null||(0,R.default)(J,X)}function cK(J,X){if(!J)return!1;if(J.type!=="DeclareOpaqueType")return!1;return X==null||(0,R.default)(J,X)}function lK(J,X){if(!J)return!1;if(J.type!=="DeclareVariable")return!1;return X==null||(0,R.default)(J,X)}function iK(J,X){if(!J)return!1;if(J.type!=="DeclareExportDeclaration")return!1;return X==null||(0,R.default)(J,X)}function pK(J,X){if(!J)return!1;if(J.type!=="DeclareExportAllDeclaration")return!1;return X==null||(0,R.default)(J,X)}function rK(J,X){if(!J)return!1;if(J.type!=="DeclaredPredicate")return!1;return X==null||(0,R.default)(J,X)}function dK(J,X){if(!J)return!1;if(J.type!=="ExistsTypeAnnotation")return!1;return X==null||(0,R.default)(J,X)}function aK(J,X){if(!J)return!1;if(J.type!=="FunctionTypeAnnotation")return!1;return X==null||(0,R.default)(J,X)}function sK(J,X){if(!J)return!1;if(J.type!=="FunctionTypeParam")return!1;return X==null||(0,R.default)(J,X)}function tK(J,X){if(!J)return!1;if(J.type!=="GenericTypeAnnotation")return!1;return X==null||(0,R.default)(J,X)}function nK(J,X){if(!J)return!1;if(J.type!=="InferredPredicate")return!1;return X==null||(0,R.default)(J,X)}function oK(J,X){if(!J)return!1;if(J.type!=="InterfaceExtends")return!1;return X==null||(0,R.default)(J,X)}function eK(J,X){if(!J)return!1;if(J.type!=="InterfaceDeclaration")return!1;return X==null||(0,R.default)(J,X)}function JU(J,X){if(!J)return!1;if(J.type!=="InterfaceTypeAnnotation")return!1;return X==null||(0,R.default)(J,X)}function XU(J,X){if(!J)return!1;if(J.type!=="IntersectionTypeAnnotation")return!1;return X==null||(0,R.default)(J,X)}function ZU(J,X){if(!J)return!1;if(J.type!=="MixedTypeAnnotation")return!1;return X==null||(0,R.default)(J,X)}function QU(J,X){if(!J)return!1;if(J.type!=="EmptyTypeAnnotation")return!1;return X==null||(0,R.default)(J,X)}function YU(J,X){if(!J)return!1;if(J.type!=="NullableTypeAnnotation")return!1;return X==null||(0,R.default)(J,X)}function zU(J,X){if(!J)return!1;if(J.type!=="NumberLiteralTypeAnnotation")return!1;return X==null||(0,R.default)(J,X)}function HU(J,X){if(!J)return!1;if(J.type!=="NumberTypeAnnotation")return!1;return X==null||(0,R.default)(J,X)}function GU(J,X){if(!J)return!1;if(J.type!=="ObjectTypeAnnotation")return!1;return X==null||(0,R.default)(J,X)}function WU(J,X){if(!J)return!1;if(J.type!=="ObjectTypeInternalSlot")return!1;return X==null||(0,R.default)(J,X)}function VU(J,X){if(!J)return!1;if(J.type!=="ObjectTypeCallProperty")return!1;return X==null||(0,R.default)(J,X)}function KU(J,X){if(!J)return!1;if(J.type!=="ObjectTypeIndexer")return!1;return X==null||(0,R.default)(J,X)}function UU(J,X){if(!J)return!1;if(J.type!=="ObjectTypeProperty")return!1;return X==null||(0,R.default)(J,X)}function BU(J,X){if(!J)return!1;if(J.type!=="ObjectTypeSpreadProperty")return!1;return X==null||(0,R.default)(J,X)}function RU(J,X){if(!J)return!1;if(J.type!=="OpaqueType")return!1;return X==null||(0,R.default)(J,X)}function $U(J,X){if(!J)return!1;if(J.type!=="QualifiedTypeIdentifier")return!1;return X==null||(0,R.default)(J,X)}function qU(J,X){if(!J)return!1;if(J.type!=="StringLiteralTypeAnnotation")return!1;return X==null||(0,R.default)(J,X)}function FU(J,X){if(!J)return!1;if(J.type!=="StringTypeAnnotation")return!1;return X==null||(0,R.default)(J,X)}function jU(J,X){if(!J)return!1;if(J.type!=="SymbolTypeAnnotation")return!1;return X==null||(0,R.default)(J,X)}function MU(J,X){if(!J)return!1;if(J.type!=="ThisTypeAnnotation")return!1;return X==null||(0,R.default)(J,X)}function OU(J,X){if(!J)return!1;if(J.type!=="TupleTypeAnnotation")return!1;return X==null||(0,R.default)(J,X)}function AU(J,X){if(!J)return!1;if(J.type!=="TypeofTypeAnnotation")return!1;return X==null||(0,R.default)(J,X)}function CU(J,X){if(!J)return!1;if(J.type!=="TypeAlias")return!1;return X==null||(0,R.default)(J,X)}function DU(J,X){if(!J)return!1;if(J.type!=="TypeAnnotation")return!1;return X==null||(0,R.default)(J,X)}function NU(J,X){if(!J)return!1;if(J.type!=="TypeCastExpression")return!1;return X==null||(0,R.default)(J,X)}function wU(J,X){if(!J)return!1;if(J.type!=="TypeParameter")return!1;return X==null||(0,R.default)(J,X)}function PU(J,X){if(!J)return!1;if(J.type!=="TypeParameterDeclaration")return!1;return X==null||(0,R.default)(J,X)}function SU(J,X){if(!J)return!1;if(J.type!=="TypeParameterInstantiation")return!1;return X==null||(0,R.default)(J,X)}function IU(J,X){if(!J)return!1;if(J.type!=="UnionTypeAnnotation")return!1;return X==null||(0,R.default)(J,X)}function TU(J,X){if(!J)return!1;if(J.type!=="Variance")return!1;return X==null||(0,R.default)(J,X)}function LU(J,X){if(!J)return!1;if(J.type!=="VoidTypeAnnotation")return!1;return X==null||(0,R.default)(J,X)}function bU(J,X){if(!J)return!1;if(J.type!=="EnumDeclaration")return!1;return X==null||(0,R.default)(J,X)}function kU(J,X){if(!J)return!1;if(J.type!=="EnumBooleanBody")return!1;return X==null||(0,R.default)(J,X)}function vU(J,X){if(!J)return!1;if(J.type!=="EnumNumberBody")return!1;return X==null||(0,R.default)(J,X)}function EU(J,X){if(!J)return!1;if(J.type!=="EnumStringBody")return!1;return X==null||(0,R.default)(J,X)}function gU(J,X){if(!J)return!1;if(J.type!=="EnumSymbolBody")return!1;return X==null||(0,R.default)(J,X)}function _U(J,X){if(!J)return!1;if(J.type!=="EnumBooleanMember")return!1;return X==null||(0,R.default)(J,X)}function fU(J,X){if(!J)return!1;if(J.type!=="EnumNumberMember")return!1;return X==null||(0,R.default)(J,X)}function hU(J,X){if(!J)return!1;if(J.type!=="EnumStringMember")return!1;return X==null||(0,R.default)(J,X)}function xU(J,X){if(!J)return!1;if(J.type!=="EnumDefaultedMember")return!1;return X==null||(0,R.default)(J,X)}function yU(J,X){if(!J)return!1;if(J.type!=="IndexedAccessType")return!1;return X==null||(0,R.default)(J,X)}function uU(J,X){if(!J)return!1;if(J.type!=="OptionalIndexedAccessType")return!1;return X==null||(0,R.default)(J,X)}function mU(J,X){if(!J)return!1;if(J.type!=="JSXAttribute")return!1;return X==null||(0,R.default)(J,X)}function cU(J,X){if(!J)return!1;if(J.type!=="JSXClosingElement")return!1;return X==null||(0,R.default)(J,X)}function lU(J,X){if(!J)return!1;if(J.type!=="JSXElement")return!1;return X==null||(0,R.default)(J,X)}function iU(J,X){if(!J)return!1;if(J.type!=="JSXEmptyExpression")return!1;return X==null||(0,R.default)(J,X)}function pU(J,X){if(!J)return!1;if(J.type!=="JSXExpressionContainer")return!1;return X==null||(0,R.default)(J,X)}function rU(J,X){if(!J)return!1;if(J.type!=="JSXSpreadChild")return!1;return X==null||(0,R.default)(J,X)}function dU(J,X){if(!J)return!1;if(J.type!=="JSXIdentifier")return!1;return X==null||(0,R.default)(J,X)}function aU(J,X){if(!J)return!1;if(J.type!=="JSXMemberExpression")return!1;return X==null||(0,R.default)(J,X)}function sU(J,X){if(!J)return!1;if(J.type!=="JSXNamespacedName")return!1;return X==null||(0,R.default)(J,X)}function tU(J,X){if(!J)return!1;if(J.type!=="JSXOpeningElement")return!1;return X==null||(0,R.default)(J,X)}function nU(J,X){if(!J)return!1;if(J.type!=="JSXSpreadAttribute")return!1;return X==null||(0,R.default)(J,X)}function oU(J,X){if(!J)return!1;if(J.type!=="JSXText")return!1;return X==null||(0,R.default)(J,X)}function eU(J,X){if(!J)return!1;if(J.type!=="JSXFragment")return!1;return X==null||(0,R.default)(J,X)}function JB(J,X){if(!J)return!1;if(J.type!=="JSXOpeningFragment")return!1;return X==null||(0,R.default)(J,X)}function XB(J,X){if(!J)return!1;if(J.type!=="JSXClosingFragment")return!1;return X==null||(0,R.default)(J,X)}function ZB(J,X){if(!J)return!1;if(J.type!=="Noop")return!1;return X==null||(0,R.default)(J,X)}function QB(J,X){if(!J)return!1;if(J.type!=="Placeholder")return!1;return X==null||(0,R.default)(J,X)}function YB(J,X){if(!J)return!1;if(J.type!=="V8IntrinsicIdentifier")return!1;return X==null||(0,R.default)(J,X)}function zB(J,X){if(!J)return!1;if(J.type!=="ArgumentPlaceholder")return!1;return X==null||(0,R.default)(J,X)}function HB(J,X){if(!J)return!1;if(J.type!=="BindExpression")return!1;return X==null||(0,R.default)(J,X)}function GB(J,X){if(!J)return!1;if(J.type!=="Decorator")return!1;return X==null||(0,R.default)(J,X)}function WB(J,X){if(!J)return!1;if(J.type!=="DoExpression")return!1;return X==null||(0,R.default)(J,X)}function VB(J,X){if(!J)return!1;if(J.type!=="ExportDefaultSpecifier")return!1;return X==null||(0,R.default)(J,X)}function KB(J,X){if(!J)return!1;if(J.type!=="RecordExpression")return!1;return X==null||(0,R.default)(J,X)}function UB(J,X){if(!J)return!1;if(J.type!=="TupleExpression")return!1;return X==null||(0,R.default)(J,X)}function BB(J,X){if(!J)return!1;if(J.type!=="DecimalLiteral")return!1;return X==null||(0,R.default)(J,X)}function RB(J,X){if(!J)return!1;if(J.type!=="ModuleExpression")return!1;return X==null||(0,R.default)(J,X)}function $B(J,X){if(!J)return!1;if(J.type!=="TopicReference")return!1;return X==null||(0,R.default)(J,X)}function qB(J,X){if(!J)return!1;if(J.type!=="PipelineTopicExpression")return!1;return X==null||(0,R.default)(J,X)}function FB(J,X){if(!J)return!1;if(J.type!=="PipelineBareFunction")return!1;return X==null||(0,R.default)(J,X)}function jB(J,X){if(!J)return!1;if(J.type!=="PipelinePrimaryTopicReference")return!1;return X==null||(0,R.default)(J,X)}function MB(J,X){if(!J)return!1;if(J.type!=="VoidPattern")return!1;return X==null||(0,R.default)(J,X)}function OB(J,X){if(!J)return!1;if(J.type!=="TSParameterProperty")return!1;return X==null||(0,R.default)(J,X)}function AB(J,X){if(!J)return!1;if(J.type!=="TSDeclareFunction")return!1;return X==null||(0,R.default)(J,X)}function CB(J,X){if(!J)return!1;if(J.type!=="TSDeclareMethod")return!1;return X==null||(0,R.default)(J,X)}function DB(J,X){if(!J)return!1;if(J.type!=="TSQualifiedName")return!1;return X==null||(0,R.default)(J,X)}function NB(J,X){if(!J)return!1;if(J.type!=="TSCallSignatureDeclaration")return!1;return X==null||(0,R.default)(J,X)}function wB(J,X){if(!J)return!1;if(J.type!=="TSConstructSignatureDeclaration")return!1;return X==null||(0,R.default)(J,X)}function PB(J,X){if(!J)return!1;if(J.type!=="TSPropertySignature")return!1;return X==null||(0,R.default)(J,X)}function SB(J,X){if(!J)return!1;if(J.type!=="TSMethodSignature")return!1;return X==null||(0,R.default)(J,X)}function IB(J,X){if(!J)return!1;if(J.type!=="TSIndexSignature")return!1;return X==null||(0,R.default)(J,X)}function TB(J,X){if(!J)return!1;if(J.type!=="TSAnyKeyword")return!1;return X==null||(0,R.default)(J,X)}function LB(J,X){if(!J)return!1;if(J.type!=="TSBooleanKeyword")return!1;return X==null||(0,R.default)(J,X)}function bB(J,X){if(!J)return!1;if(J.type!=="TSBigIntKeyword")return!1;return X==null||(0,R.default)(J,X)}function kB(J,X){if(!J)return!1;if(J.type!=="TSIntrinsicKeyword")return!1;return X==null||(0,R.default)(J,X)}function vB(J,X){if(!J)return!1;if(J.type!=="TSNeverKeyword")return!1;return X==null||(0,R.default)(J,X)}function EB(J,X){if(!J)return!1;if(J.type!=="TSNullKeyword")return!1;return X==null||(0,R.default)(J,X)}function gB(J,X){if(!J)return!1;if(J.type!=="TSNumberKeyword")return!1;return X==null||(0,R.default)(J,X)}function _B(J,X){if(!J)return!1;if(J.type!=="TSObjectKeyword")return!1;return X==null||(0,R.default)(J,X)}function fB(J,X){if(!J)return!1;if(J.type!=="TSStringKeyword")return!1;return X==null||(0,R.default)(J,X)}function hB(J,X){if(!J)return!1;if(J.type!=="TSSymbolKeyword")return!1;return X==null||(0,R.default)(J,X)}function xB(J,X){if(!J)return!1;if(J.type!=="TSUndefinedKeyword")return!1;return X==null||(0,R.default)(J,X)}function yB(J,X){if(!J)return!1;if(J.type!=="TSUnknownKeyword")return!1;return X==null||(0,R.default)(J,X)}function uB(J,X){if(!J)return!1;if(J.type!=="TSVoidKeyword")return!1;return X==null||(0,R.default)(J,X)}function mB(J,X){if(!J)return!1;if(J.type!=="TSThisType")return!1;return X==null||(0,R.default)(J,X)}function cB(J,X){if(!J)return!1;if(J.type!=="TSFunctionType")return!1;return X==null||(0,R.default)(J,X)}function lB(J,X){if(!J)return!1;if(J.type!=="TSConstructorType")return!1;return X==null||(0,R.default)(J,X)}function iB(J,X){if(!J)return!1;if(J.type!=="TSTypeReference")return!1;return X==null||(0,R.default)(J,X)}function pB(J,X){if(!J)return!1;if(J.type!=="TSTypePredicate")return!1;return X==null||(0,R.default)(J,X)}function rB(J,X){if(!J)return!1;if(J.type!=="TSTypeQuery")return!1;return X==null||(0,R.default)(J,X)}function dB(J,X){if(!J)return!1;if(J.type!=="TSTypeLiteral")return!1;return X==null||(0,R.default)(J,X)}function aB(J,X){if(!J)return!1;if(J.type!=="TSArrayType")return!1;return X==null||(0,R.default)(J,X)}function sB(J,X){if(!J)return!1;if(J.type!=="TSTupleType")return!1;return X==null||(0,R.default)(J,X)}function tB(J,X){if(!J)return!1;if(J.type!=="TSOptionalType")return!1;return X==null||(0,R.default)(J,X)}function nB(J,X){if(!J)return!1;if(J.type!=="TSRestType")return!1;return X==null||(0,R.default)(J,X)}function oB(J,X){if(!J)return!1;if(J.type!=="TSNamedTupleMember")return!1;return X==null||(0,R.default)(J,X)}function eB(J,X){if(!J)return!1;if(J.type!=="TSUnionType")return!1;return X==null||(0,R.default)(J,X)}function JR(J,X){if(!J)return!1;if(J.type!=="TSIntersectionType")return!1;return X==null||(0,R.default)(J,X)}function XR(J,X){if(!J)return!1;if(J.type!=="TSConditionalType")return!1;return X==null||(0,R.default)(J,X)}function ZR(J,X){if(!J)return!1;if(J.type!=="TSInferType")return!1;return X==null||(0,R.default)(J,X)}function QR(J,X){if(!J)return!1;if(J.type!=="TSParenthesizedType")return!1;return X==null||(0,R.default)(J,X)}function YR(J,X){if(!J)return!1;if(J.type!=="TSTypeOperator")return!1;return X==null||(0,R.default)(J,X)}function zR(J,X){if(!J)return!1;if(J.type!=="TSIndexedAccessType")return!1;return X==null||(0,R.default)(J,X)}function HR(J,X){if(!J)return!1;if(J.type!=="TSMappedType")return!1;return X==null||(0,R.default)(J,X)}function GR(J,X){if(!J)return!1;if(J.type!=="TSTemplateLiteralType")return!1;return X==null||(0,R.default)(J,X)}function WR(J,X){if(!J)return!1;if(J.type!=="TSLiteralType")return!1;return X==null||(0,R.default)(J,X)}function VR(J,X){if(!J)return!1;if(J.type!=="TSExpressionWithTypeArguments")return!1;return X==null||(0,R.default)(J,X)}function KR(J,X){if(!J)return!1;if(J.type!=="TSInterfaceDeclaration")return!1;return X==null||(0,R.default)(J,X)}function UR(J,X){if(!J)return!1;if(J.type!=="TSInterfaceBody")return!1;return X==null||(0,R.default)(J,X)}function BR(J,X){if(!J)return!1;if(J.type!=="TSTypeAliasDeclaration")return!1;return X==null||(0,R.default)(J,X)}function RR(J,X){if(!J)return!1;if(J.type!=="TSInstantiationExpression")return!1;return X==null||(0,R.default)(J,X)}function $R(J,X){if(!J)return!1;if(J.type!=="TSAsExpression")return!1;return X==null||(0,R.default)(J,X)}function qR(J,X){if(!J)return!1;if(J.type!=="TSSatisfiesExpression")return!1;return X==null||(0,R.default)(J,X)}function FR(J,X){if(!J)return!1;if(J.type!=="TSTypeAssertion")return!1;return X==null||(0,R.default)(J,X)}function jR(J,X){if(!J)return!1;if(J.type!=="TSEnumBody")return!1;return X==null||(0,R.default)(J,X)}function MR(J,X){if(!J)return!1;if(J.type!=="TSEnumDeclaration")return!1;return X==null||(0,R.default)(J,X)}function OR(J,X){if(!J)return!1;if(J.type!=="TSEnumMember")return!1;return X==null||(0,R.default)(J,X)}function AR(J,X){if(!J)return!1;if(J.type!=="TSModuleDeclaration")return!1;return X==null||(0,R.default)(J,X)}function CR(J,X){if(!J)return!1;if(J.type!=="TSModuleBlock")return!1;return X==null||(0,R.default)(J,X)}function DR(J,X){if(!J)return!1;if(J.type!=="TSImportType")return!1;return X==null||(0,R.default)(J,X)}function NR(J,X){if(!J)return!1;if(J.type!=="TSImportEqualsDeclaration")return!1;return X==null||(0,R.default)(J,X)}function wR(J,X){if(!J)return!1;if(J.type!=="TSExternalModuleReference")return!1;return X==null||(0,R.default)(J,X)}function PR(J,X){if(!J)return!1;if(J.type!=="TSNonNullExpression")return!1;return X==null||(0,R.default)(J,X)}function SR(J,X){if(!J)return!1;if(J.type!=="TSExportAssignment")return!1;return X==null||(0,R.default)(J,X)}function IR(J,X){if(!J)return!1;if(J.type!=="TSNamespaceExportDeclaration")return!1;return X==null||(0,R.default)(J,X)}function TR(J,X){if(!J)return!1;if(J.type!=="TSTypeAnnotation")return!1;return X==null||(0,R.default)(J,X)}function LR(J,X){if(!J)return!1;if(J.type!=="TSTypeParameterInstantiation")return!1;return X==null||(0,R.default)(J,X)}function bR(J,X){if(!J)return!1;if(J.type!=="TSTypeParameterDeclaration")return!1;return X==null||(0,R.default)(J,X)}function kR(J,X){if(!J)return!1;if(J.type!=="TSTypeParameter")return!1;return X==null||(0,R.default)(J,X)}function vR(J,X){if(!J)return!1;switch(J.type){case"ArrayExpression":case"AssignmentExpression":case"BinaryExpression":case"InterpreterDirective":case"Directive":case"DirectiveLiteral":case"BlockStatement":case"BreakStatement":case"CallExpression":case"CatchClause":case"ConditionalExpression":case"ContinueStatement":case"DebuggerStatement":case"DoWhileStatement":case"EmptyStatement":case"ExpressionStatement":case"File":case"ForInStatement":case"ForStatement":case"FunctionDeclaration":case"FunctionExpression":case"Identifier":case"IfStatement":case"LabeledStatement":case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"LogicalExpression":case"MemberExpression":case"NewExpression":case"Program":case"ObjectExpression":case"ObjectMethod":case"ObjectProperty":case"RestElement":case"ReturnStatement":case"SequenceExpression":case"ParenthesizedExpression":case"SwitchCase":case"SwitchStatement":case"ThisExpression":case"ThrowStatement":case"TryStatement":case"UnaryExpression":case"UpdateExpression":case"VariableDeclaration":case"VariableDeclarator":case"WhileStatement":case"WithStatement":case"AssignmentPattern":case"ArrayPattern":case"ArrowFunctionExpression":case"ClassBody":case"ClassExpression":case"ClassDeclaration":case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ExportSpecifier":case"ForOfStatement":case"ImportDeclaration":case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":case"ImportSpecifier":case"ImportExpression":case"MetaProperty":case"ClassMethod":case"ObjectPattern":case"SpreadElement":case"Super":case"TaggedTemplateExpression":case"TemplateElement":case"TemplateLiteral":case"YieldExpression":case"AwaitExpression":case"Import":case"BigIntLiteral":case"ExportNamespaceSpecifier":case"OptionalMemberExpression":case"OptionalCallExpression":case"ClassProperty":case"ClassAccessorProperty":case"ClassPrivateProperty":case"ClassPrivateMethod":case"PrivateName":case"StaticBlock":case"ImportAttribute":break;case"Placeholder":switch(J.expectedNode){case"Identifier":case"StringLiteral":case"BlockStatement":case"ClassBody":break;default:return!1}break;default:return!1}return X==null||(0,R.default)(J,X)}function ER(J,X){if(!J)return!1;switch(J.type){case"ArrayExpression":case"AssignmentExpression":case"BinaryExpression":case"CallExpression":case"ConditionalExpression":case"FunctionExpression":case"Identifier":case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"LogicalExpression":case"MemberExpression":case"NewExpression":case"ObjectExpression":case"SequenceExpression":case"ParenthesizedExpression":case"ThisExpression":case"UnaryExpression":case"UpdateExpression":case"ArrowFunctionExpression":case"ClassExpression":case"ImportExpression":case"MetaProperty":case"Super":case"TaggedTemplateExpression":case"TemplateLiteral":case"YieldExpression":case"AwaitExpression":case"Import":case"BigIntLiteral":case"OptionalMemberExpression":case"OptionalCallExpression":case"TypeCastExpression":case"JSXElement":case"JSXFragment":case"BindExpression":case"DoExpression":case"RecordExpression":case"TupleExpression":case"DecimalLiteral":case"ModuleExpression":case"TopicReference":case"PipelineTopicExpression":case"PipelineBareFunction":case"PipelinePrimaryTopicReference":case"TSInstantiationExpression":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":break;case"Placeholder":switch(J.expectedNode){case"Expression":case"Identifier":case"StringLiteral":break;default:return!1}break;default:return!1}return X==null||(0,R.default)(J,X)}function gR(J,X){if(!J)return!1;switch(J.type){case"BinaryExpression":case"LogicalExpression":break;default:return!1}return X==null||(0,R.default)(J,X)}function _R(J,X){if(!J)return!1;switch(J.type){case"BlockStatement":case"CatchClause":case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"FunctionDeclaration":case"FunctionExpression":case"Program":case"ObjectMethod":case"SwitchStatement":case"WhileStatement":case"ArrowFunctionExpression":case"ClassExpression":case"ClassDeclaration":case"ForOfStatement":case"ClassMethod":case"ClassPrivateMethod":case"StaticBlock":case"TSModuleBlock":break;case"Placeholder":if(J.expectedNode==="BlockStatement")break;default:return!1}return X==null||(0,R.default)(J,X)}function fR(J,X){if(!J)return!1;switch(J.type){case"BlockStatement":case"CatchClause":case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"FunctionDeclaration":case"FunctionExpression":case"Program":case"ObjectMethod":case"SwitchStatement":case"WhileStatement":case"ArrowFunctionExpression":case"ForOfStatement":case"ClassMethod":case"ClassPrivateMethod":case"StaticBlock":case"TSModuleBlock":break;case"Placeholder":if(J.expectedNode==="BlockStatement")break;default:return!1}return X==null||(0,R.default)(J,X)}function hR(J,X){if(!J)return!1;switch(J.type){case"BlockStatement":case"Program":case"TSModuleBlock":break;case"Placeholder":if(J.expectedNode==="BlockStatement")break;default:return!1}return X==null||(0,R.default)(J,X)}function xR(J,X){if(!J)return!1;switch(J.type){case"BlockStatement":case"BreakStatement":case"ContinueStatement":case"DebuggerStatement":case"DoWhileStatement":case"EmptyStatement":case"ExpressionStatement":case"ForInStatement":case"ForStatement":case"FunctionDeclaration":case"IfStatement":case"LabeledStatement":case"ReturnStatement":case"SwitchStatement":case"ThrowStatement":case"TryStatement":case"VariableDeclaration":case"WhileStatement":case"WithStatement":case"ClassDeclaration":case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ForOfStatement":case"ImportDeclaration":case"DeclareClass":case"DeclareFunction":case"DeclareInterface":case"DeclareModule":case"DeclareModuleExports":case"DeclareTypeAlias":case"DeclareOpaqueType":case"DeclareVariable":case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":case"InterfaceDeclaration":case"OpaqueType":case"TypeAlias":case"EnumDeclaration":case"TSDeclareFunction":case"TSInterfaceDeclaration":case"TSTypeAliasDeclaration":case"TSEnumDeclaration":case"TSModuleDeclaration":case"TSImportEqualsDeclaration":case"TSExportAssignment":case"TSNamespaceExportDeclaration":break;case"Placeholder":switch(J.expectedNode){case"Statement":case"Declaration":case"BlockStatement":break;default:return!1}break;default:return!1}return X==null||(0,R.default)(J,X)}function yR(J,X){if(!J)return!1;switch(J.type){case"BreakStatement":case"ContinueStatement":case"ReturnStatement":case"ThrowStatement":case"YieldExpression":case"AwaitExpression":break;default:return!1}return X==null||(0,R.default)(J,X)}function uR(J,X){if(!J)return!1;switch(J.type){case"BreakStatement":case"ContinueStatement":case"ReturnStatement":case"ThrowStatement":break;default:return!1}return X==null||(0,R.default)(J,X)}function mR(J,X){if(!J)return!1;switch(J.type){case"ConditionalExpression":case"IfStatement":break;default:return!1}return X==null||(0,R.default)(J,X)}function cR(J,X){if(!J)return!1;switch(J.type){case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"WhileStatement":case"ForOfStatement":break;default:return!1}return X==null||(0,R.default)(J,X)}function lR(J,X){if(!J)return!1;switch(J.type){case"DoWhileStatement":case"WhileStatement":break;default:return!1}return X==null||(0,R.default)(J,X)}function iR(J,X){if(!J)return!1;switch(J.type){case"ExpressionStatement":case"ParenthesizedExpression":case"TypeCastExpression":break;default:return!1}return X==null||(0,R.default)(J,X)}function pR(J,X){if(!J)return!1;switch(J.type){case"ForInStatement":case"ForStatement":case"ForOfStatement":break;default:return!1}return X==null||(0,R.default)(J,X)}function rR(J,X){if(!J)return!1;switch(J.type){case"ForInStatement":case"ForOfStatement":break;default:return!1}return X==null||(0,R.default)(J,X)}function dR(J,X){if(!J)return!1;switch(J.type){case"FunctionDeclaration":case"FunctionExpression":case"ObjectMethod":case"ArrowFunctionExpression":case"ClassMethod":case"ClassPrivateMethod":break;default:return!1}return X==null||(0,R.default)(J,X)}function aR(J,X){if(!J)return!1;switch(J.type){case"FunctionDeclaration":case"FunctionExpression":case"ObjectMethod":case"ArrowFunctionExpression":case"ClassMethod":case"ClassPrivateMethod":case"StaticBlock":case"TSModuleBlock":break;default:return!1}return X==null||(0,R.default)(J,X)}function sR(J,X){if(!J)return!1;switch(J.type){case"FunctionDeclaration":case"FunctionExpression":case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"ArrowFunctionExpression":case"BigIntLiteral":case"DecimalLiteral":break;case"Placeholder":if(J.expectedNode==="StringLiteral")break;default:return!1}return X==null||(0,R.default)(J,X)}function tR(J,X){if(!J)return!1;switch(J.type){case"FunctionDeclaration":case"VariableDeclaration":case"ClassDeclaration":case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ImportDeclaration":case"DeclareClass":case"DeclareFunction":case"DeclareInterface":case"DeclareModule":case"DeclareModuleExports":case"DeclareTypeAlias":case"DeclareOpaqueType":case"DeclareVariable":case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":case"InterfaceDeclaration":case"OpaqueType":case"TypeAlias":case"EnumDeclaration":case"TSDeclareFunction":case"TSInterfaceDeclaration":case"TSTypeAliasDeclaration":case"TSEnumDeclaration":case"TSModuleDeclaration":case"TSImportEqualsDeclaration":break;case"Placeholder":if(J.expectedNode==="Declaration")break;default:return!1}return X==null||(0,R.default)(J,X)}function nR(J,X){if(!J)return!1;switch(J.type){case"Identifier":case"RestElement":case"AssignmentPattern":case"ArrayPattern":case"ObjectPattern":case"VoidPattern":break;case"Placeholder":if(J.expectedNode==="Identifier")break;default:return!1}return X==null||(0,R.default)(J,X)}function oR(J,X){if(!J)return!1;switch(J.type){case"Identifier":case"MemberExpression":case"RestElement":case"AssignmentPattern":case"ArrayPattern":case"ObjectPattern":case"VoidPattern":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":break;case"Placeholder":switch(J.expectedNode){case"Pattern":case"Identifier":break;default:return!1}break;default:return!1}return X==null||(0,R.default)(J,X)}function eR(J,X){if(!J)return!1;switch(J.type){case"Identifier":case"MemberExpression":case"RestElement":case"AssignmentPattern":case"ArrayPattern":case"ObjectPattern":case"TSParameterProperty":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":break;case"Placeholder":switch(J.expectedNode){case"Pattern":case"Identifier":break;default:return!1}break;default:return!1}return X==null||(0,R.default)(J,X)}function J$(J,X){if(!J)return!1;switch(J.type){case"Identifier":case"TSQualifiedName":break;case"Placeholder":if(J.expectedNode==="Identifier")break;default:return!1}return X==null||(0,R.default)(J,X)}function X$(J,X){if(!J)return!1;switch(J.type){case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"TemplateLiteral":case"BigIntLiteral":case"DecimalLiteral":break;case"Placeholder":if(J.expectedNode==="StringLiteral")break;default:return!1}return X==null||(0,R.default)(J,X)}function Z$(J,X){if(!J)return!1;switch(J.type){case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"BigIntLiteral":case"JSXAttribute":case"JSXClosingElement":case"JSXElement":case"JSXExpressionContainer":case"JSXSpreadChild":case"JSXOpeningElement":case"JSXText":case"JSXFragment":case"JSXOpeningFragment":case"JSXClosingFragment":case"DecimalLiteral":break;case"Placeholder":if(J.expectedNode==="StringLiteral")break;default:return!1}return X==null||(0,R.default)(J,X)}function Q$(J,X){if(!J)return!1;switch(J.type){case"ObjectMethod":case"ObjectProperty":case"ObjectTypeInternalSlot":case"ObjectTypeCallProperty":case"ObjectTypeIndexer":case"ObjectTypeProperty":case"ObjectTypeSpreadProperty":break;default:return!1}return X==null||(0,R.default)(J,X)}function Y$(J,X){if(!J)return!1;switch(J.type){case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":break;default:return!1}return X==null||(0,R.default)(J,X)}function z$(J,X){if(!J)return!1;switch(J.type){case"ObjectMethod":case"ObjectProperty":break;default:return!1}return X==null||(0,R.default)(J,X)}function H$(J,X){if(!J)return!1;switch(J.type){case"ObjectProperty":case"ClassProperty":case"ClassAccessorProperty":case"ClassPrivateProperty":break;default:return!1}return X==null||(0,R.default)(J,X)}function G$(J,X){if(!J)return!1;switch(J.type){case"UnaryExpression":case"SpreadElement":break;default:return!1}return X==null||(0,R.default)(J,X)}function W$(J,X){if(!J)return!1;switch(J.type){case"AssignmentPattern":case"ArrayPattern":case"ObjectPattern":case"VoidPattern":break;case"Placeholder":if(J.expectedNode==="Pattern")break;default:return!1}return X==null||(0,R.default)(J,X)}function V$(J,X){if(!J)return!1;switch(J.type){case"ClassExpression":case"ClassDeclaration":break;default:return!1}return X==null||(0,R.default)(J,X)}function g7(J,X){if(!J)return!1;switch(J.type){case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ImportDeclaration":break;default:return!1}return X==null||(0,R.default)(J,X)}function K$(J,X){if(!J)return!1;switch(J.type){case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":break;default:return!1}return X==null||(0,R.default)(J,X)}function U$(J,X){if(!J)return!1;switch(J.type){case"ExportSpecifier":case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":case"ImportSpecifier":case"ExportNamespaceSpecifier":case"ExportDefaultSpecifier":break;default:return!1}return X==null||(0,R.default)(J,X)}function B$(J,X){if(!J)return!1;switch(J.type){case"ClassAccessorProperty":break;default:return!1}return X==null||(0,R.default)(J,X)}function R$(J,X){if(!J)return!1;switch(J.type){case"ClassPrivateProperty":case"ClassPrivateMethod":case"PrivateName":break;default:return!1}return X==null||(0,R.default)(J,X)}function $$(J,X){if(!J)return!1;switch(J.type){case"AnyTypeAnnotation":case"ArrayTypeAnnotation":case"BooleanTypeAnnotation":case"BooleanLiteralTypeAnnotation":case"NullLiteralTypeAnnotation":case"ClassImplements":case"DeclareClass":case"DeclareFunction":case"DeclareInterface":case"DeclareModule":case"DeclareModuleExports":case"DeclareTypeAlias":case"DeclareOpaqueType":case"DeclareVariable":case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":case"DeclaredPredicate":case"ExistsTypeAnnotation":case"FunctionTypeAnnotation":case"FunctionTypeParam":case"GenericTypeAnnotation":case"InferredPredicate":case"InterfaceExtends":case"InterfaceDeclaration":case"InterfaceTypeAnnotation":case"IntersectionTypeAnnotation":case"MixedTypeAnnotation":case"EmptyTypeAnnotation":case"NullableTypeAnnotation":case"NumberLiteralTypeAnnotation":case"NumberTypeAnnotation":case"ObjectTypeAnnotation":case"ObjectTypeInternalSlot":case"ObjectTypeCallProperty":case"ObjectTypeIndexer":case"ObjectTypeProperty":case"ObjectTypeSpreadProperty":case"OpaqueType":case"QualifiedTypeIdentifier":case"StringLiteralTypeAnnotation":case"StringTypeAnnotation":case"SymbolTypeAnnotation":case"ThisTypeAnnotation":case"TupleTypeAnnotation":case"TypeofTypeAnnotation":case"TypeAlias":case"TypeAnnotation":case"TypeCastExpression":case"TypeParameter":case"TypeParameterDeclaration":case"TypeParameterInstantiation":case"UnionTypeAnnotation":case"Variance":case"VoidTypeAnnotation":case"EnumDeclaration":case"EnumBooleanBody":case"EnumNumberBody":case"EnumStringBody":case"EnumSymbolBody":case"EnumBooleanMember":case"EnumNumberMember":case"EnumStringMember":case"EnumDefaultedMember":case"IndexedAccessType":case"OptionalIndexedAccessType":break;default:return!1}return X==null||(0,R.default)(J,X)}function q$(J,X){if(!J)return!1;switch(J.type){case"AnyTypeAnnotation":case"ArrayTypeAnnotation":case"BooleanTypeAnnotation":case"BooleanLiteralTypeAnnotation":case"NullLiteralTypeAnnotation":case"ExistsTypeAnnotation":case"FunctionTypeAnnotation":case"GenericTypeAnnotation":case"InterfaceTypeAnnotation":case"IntersectionTypeAnnotation":case"MixedTypeAnnotation":case"EmptyTypeAnnotation":case"NullableTypeAnnotation":case"NumberLiteralTypeAnnotation":case"NumberTypeAnnotation":case"ObjectTypeAnnotation":case"StringLiteralTypeAnnotation":case"StringTypeAnnotation":case"SymbolTypeAnnotation":case"ThisTypeAnnotation":case"TupleTypeAnnotation":case"TypeofTypeAnnotation":case"UnionTypeAnnotation":case"VoidTypeAnnotation":case"IndexedAccessType":case"OptionalIndexedAccessType":break;default:return!1}return X==null||(0,R.default)(J,X)}function F$(J,X){if(!J)return!1;switch(J.type){case"AnyTypeAnnotation":case"BooleanTypeAnnotation":case"NullLiteralTypeAnnotation":case"MixedTypeAnnotation":case"EmptyTypeAnnotation":case"NumberTypeAnnotation":case"StringTypeAnnotation":case"SymbolTypeAnnotation":case"ThisTypeAnnotation":case"VoidTypeAnnotation":break;default:return!1}return X==null||(0,R.default)(J,X)}function j$(J,X){if(!J)return!1;switch(J.type){case"DeclareClass":case"DeclareFunction":case"DeclareInterface":case"DeclareModule":case"DeclareModuleExports":case"DeclareTypeAlias":case"DeclareOpaqueType":case"DeclareVariable":case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":case"InterfaceDeclaration":case"OpaqueType":case"TypeAlias":break;default:return!1}return X==null||(0,R.default)(J,X)}function M$(J,X){if(!J)return!1;switch(J.type){case"DeclaredPredicate":case"InferredPredicate":break;default:return!1}return X==null||(0,R.default)(J,X)}function O$(J,X){if(!J)return!1;switch(J.type){case"EnumBooleanBody":case"EnumNumberBody":case"EnumStringBody":case"EnumSymbolBody":break;default:return!1}return X==null||(0,R.default)(J,X)}function A$(J,X){if(!J)return!1;switch(J.type){case"EnumBooleanMember":case"EnumNumberMember":case"EnumStringMember":case"EnumDefaultedMember":break;default:return!1}return X==null||(0,R.default)(J,X)}function C$(J,X){if(!J)return!1;switch(J.type){case"JSXAttribute":case"JSXClosingElement":case"JSXElement":case"JSXEmptyExpression":case"JSXExpressionContainer":case"JSXSpreadChild":case"JSXIdentifier":case"JSXMemberExpression":case"JSXNamespacedName":case"JSXOpeningElement":case"JSXSpreadAttribute":case"JSXText":case"JSXFragment":case"JSXOpeningFragment":case"JSXClosingFragment":break;default:return!1}return X==null||(0,R.default)(J,X)}function D$(J,X){if(!J)return!1;switch(J.type){case"Noop":case"Placeholder":case"V8IntrinsicIdentifier":break;default:return!1}return X==null||(0,R.default)(J,X)}function N$(J,X){if(!J)return!1;switch(J.type){case"TSParameterProperty":case"TSDeclareFunction":case"TSDeclareMethod":case"TSQualifiedName":case"TSCallSignatureDeclaration":case"TSConstructSignatureDeclaration":case"TSPropertySignature":case"TSMethodSignature":case"TSIndexSignature":case"TSAnyKeyword":case"TSBooleanKeyword":case"TSBigIntKeyword":case"TSIntrinsicKeyword":case"TSNeverKeyword":case"TSNullKeyword":case"TSNumberKeyword":case"TSObjectKeyword":case"TSStringKeyword":case"TSSymbolKeyword":case"TSUndefinedKeyword":case"TSUnknownKeyword":case"TSVoidKeyword":case"TSThisType":case"TSFunctionType":case"TSConstructorType":case"TSTypeReference":case"TSTypePredicate":case"TSTypeQuery":case"TSTypeLiteral":case"TSArrayType":case"TSTupleType":case"TSOptionalType":case"TSRestType":case"TSNamedTupleMember":case"TSUnionType":case"TSIntersectionType":case"TSConditionalType":case"TSInferType":case"TSParenthesizedType":case"TSTypeOperator":case"TSIndexedAccessType":case"TSMappedType":case"TSTemplateLiteralType":case"TSLiteralType":case"TSExpressionWithTypeArguments":case"TSInterfaceDeclaration":case"TSInterfaceBody":case"TSTypeAliasDeclaration":case"TSInstantiationExpression":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSEnumBody":case"TSEnumDeclaration":case"TSEnumMember":case"TSModuleDeclaration":case"TSModuleBlock":case"TSImportType":case"TSImportEqualsDeclaration":case"TSExternalModuleReference":case"TSNonNullExpression":case"TSExportAssignment":case"TSNamespaceExportDeclaration":case"TSTypeAnnotation":case"TSTypeParameterInstantiation":case"TSTypeParameterDeclaration":case"TSTypeParameter":break;default:return!1}return X==null||(0,R.default)(J,X)}function w$(J,X){if(!J)return!1;switch(J.type){case"TSCallSignatureDeclaration":case"TSConstructSignatureDeclaration":case"TSPropertySignature":case"TSMethodSignature":case"TSIndexSignature":break;default:return!1}return X==null||(0,R.default)(J,X)}function P$(J,X){if(!J)return!1;switch(J.type){case"TSAnyKeyword":case"TSBooleanKeyword":case"TSBigIntKeyword":case"TSIntrinsicKeyword":case"TSNeverKeyword":case"TSNullKeyword":case"TSNumberKeyword":case"TSObjectKeyword":case"TSStringKeyword":case"TSSymbolKeyword":case"TSUndefinedKeyword":case"TSUnknownKeyword":case"TSVoidKeyword":case"TSThisType":case"TSFunctionType":case"TSConstructorType":case"TSTypeReference":case"TSTypePredicate":case"TSTypeQuery":case"TSTypeLiteral":case"TSArrayType":case"TSTupleType":case"TSOptionalType":case"TSRestType":case"TSUnionType":case"TSIntersectionType":case"TSConditionalType":case"TSInferType":case"TSParenthesizedType":case"TSTypeOperator":case"TSIndexedAccessType":case"TSMappedType":case"TSTemplateLiteralType":case"TSLiteralType":case"TSExpressionWithTypeArguments":case"TSImportType":break;default:return!1}return X==null||(0,R.default)(J,X)}function S$(J,X){if(!J)return!1;switch(J.type){case"TSAnyKeyword":case"TSBooleanKeyword":case"TSBigIntKeyword":case"TSIntrinsicKeyword":case"TSNeverKeyword":case"TSNullKeyword":case"TSNumberKeyword":case"TSObjectKeyword":case"TSStringKeyword":case"TSSymbolKeyword":case"TSUndefinedKeyword":case"TSUnknownKeyword":case"TSVoidKeyword":case"TSThisType":case"TSTemplateLiteralType":case"TSLiteralType":break;default:return!1}return X==null||(0,R.default)(J,X)}function I$(J,X){if((0,QX.default)("isNumberLiteral","isNumericLiteral"),!J)return!1;if(J.type!=="NumberLiteral")return!1;return X==null||(0,R.default)(J,X)}function T$(J,X){if((0,QX.default)("isRegexLiteral","isRegExpLiteral"),!J)return!1;if(J.type!=="RegexLiteral")return!1;return X==null||(0,R.default)(J,X)}function L$(J,X){if((0,QX.default)("isRestProperty","isRestElement"),!J)return!1;if(J.type!=="RestProperty")return!1;return X==null||(0,R.default)(J,X)}function b$(J,X){if((0,QX.default)("isSpreadProperty","isSpreadElement"),!J)return!1;if(J.type!=="SpreadProperty")return!1;return X==null||(0,R.default)(J,X)}function k$(J,X){return(0,QX.default)("isModuleDeclaration","isImportOrExportDeclaration"),g7(J,X)}});var q2=N((h7)=>{Object.defineProperty(h7,"__esModule",{value:!0});h7.default=FA;var W0=E1();function f7(J){return(0,W0.isMemberExpression)(J)||(0,W0.isMetaProperty)(J)}function FA(J,X,Z){if(!f7(J))return!1;let Q=Array.isArray(X)?X:X.split("."),Y=[],z;for(z=J;f7(z);z=(H=z.object)!=null?H:z.meta){var H;Y.push(z.property)}if(Y.push(z),Y.length<Q.length)return!1;if(!Z&&Y.length>Q.length)return!1;for(let G=0,W=Y.length-1;G<Q.length;G++,W--){let V=Y[W],U;if((0,W0.isIdentifier)(V))U=V.name;else if((0,W0.isStringLiteral)(V))U=V.value;else if((0,W0.isThisExpression)(V))U="this";else if((0,W0.isSuper)(V))U="super";else if((0,W0.isPrivateName)(V))U="#"+V.id.name;else return!1;if(Q[G]!==U)return!1}return!0}});var F2=N((x7)=>{Object.defineProperty(x7,"__esModule",{value:!0});x7.default=OA;var MA=q2();function OA(J,X){let Z=J.split(".");return(Q)=>(0,MA.default)(Q,Z,X)}});var m7=N((y7)=>{Object.defineProperty(y7,"__esModule",{value:!0});y7.default=void 0;var CA=F2(),DA=(0,CA.default)("React.Component"),JF1=y7.default=DA});var l7=N((c7)=>{Object.defineProperty(c7,"__esModule",{value:!0});c7.default=NA;function NA(J){return!!J&&/^[a-z]/.test(J)}});var dX=N((p7)=>{Object.defineProperty(p7,"__esModule",{value:!0});p7.default=PA;var i7=BJ();function PA(J,X){if(J===X)return!0;if(J==null)return!1;if(i7.ALIAS_KEYS[X])return!1;let Z=i7.FLIPPED_ALIAS_KEYS[X];if(Z!=null&&Z.includes(J))return!0;return!1}});var j2=N((r7)=>{Object.defineProperty(r7,"__esModule",{value:!0});r7.default=TA;var IA=BJ();function TA(J,X){if(J===X)return!0;let Z=IA.PLACEHOLDERS_ALIAS[J];if(Z!=null&&Z.includes(X))return!0;return!1}});var b0=N((d7)=>{Object.defineProperty(d7,"__esModule",{value:!0});d7.default=gA;var bA=rX(),kA=dX(),vA=j2(),EA=BJ();function gA(J,X,Z){if(!X)return!1;if(!(0,kA.default)(X.type,J)){if(!Z&&X.type==="Placeholder"&&J in EA.FLIPPED_ALIAS_KEYS)return(0,vA.default)(X.expectedNode,J);return!1}if(Z===void 0)return!0;else return(0,bA.default)(X,Z)}});var e7=N((o7)=>{Object.defineProperty(o7,"__esModule",{value:!0});o7.isIdentifierChar=n7;o7.isIdentifierName=yA;o7.isIdentifierStart=t7;var O2="\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088F\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5C\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDC-\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7DC\uA7F1-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC",a7="\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0897-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ADD\u1AE0-\u1AEB\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F\uFF65",fA=new RegExp("["+O2+"]"),hA=new RegExp("["+O2+a7+"]");O2=a7=null;var s7=[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,4,51,13,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,7,25,39,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,39,27,10,22,251,41,7,1,17,5,57,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,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,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,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,24,43,261,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,33,24,3,24,45,74,6,0,67,12,65,1,2,0,15,4,10,7381,42,31,98,114,8702,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,229,29,3,0,208,30,2,2,2,1,2,6,3,4,10,1,225,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,4381,3,5773,3,7472,16,621,2467,541,1507,4938,6,8489],xA=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,78,5,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,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,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,199,7,137,9,54,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,55,9,266,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,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,245,1,2,9,233,0,3,0,8,1,6,0,475,6,110,6,6,9,4759,9,787719,239];function M2(J,X){let Z=65536;for(let Q=0,Y=X.length;Q<Y;Q+=2){if(Z+=X[Q],Z>J)return!1;if(Z+=X[Q+1],Z>=J)return!0}return!1}function t7(J){if(J<65)return J===36;if(J<=90)return!0;if(J<97)return J===95;if(J<=122)return!0;if(J<=65535)return J>=170&&fA.test(String.fromCharCode(J));return M2(J,s7)}function n7(J){if(J<48)return J===36;if(J<58)return!0;if(J<65)return!1;if(J<=90)return!0;if(J<97)return J===95;if(J<=122)return!0;if(J<=65535)return J>=170&&hA.test(String.fromCharCode(J));return M2(J,s7)||M2(J,xA)}function yA(J){let X=!0;for(let Z=0;Z<J.length;Z++){let Q=J.charCodeAt(Z);if((Q&64512)===55296&&Z+1<J.length){let Y=J.charCodeAt(++Z);if((Y&64512)===56320)Q=65536+((Q&1023)<<10)+(Y&1023)}if(X){if(X=!1,!t7(Q))return!1}else if(!n7(Q))return!1}return!X}});var Y4=N((Q4)=>{Object.defineProperty(Q4,"__esModule",{value:!0});Q4.isKeyword=dA;Q4.isReservedWord=J4;Q4.isStrictBindOnlyReservedWord=Z4;Q4.isStrictBindReservedWord=rA;Q4.isStrictReservedWord=X4;var A2={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"]},lA=new Set(A2.keyword),iA=new Set(A2.strict),pA=new Set(A2.strictBind);function J4(J,X){return X&&J==="await"||J==="enum"}function X4(J,X){return J4(J,X)||iA.has(J)}function Z4(J){return pA.has(J)}function rA(J,X){return X4(J,X)||Z4(J)}function dA(J){return lA.has(J)}});var zX=N((IJ)=>{Object.defineProperty(IJ,"__esModule",{value:!0});Object.defineProperty(IJ,"isIdentifierChar",{enumerable:!0,get:function(){return C2.isIdentifierChar}});Object.defineProperty(IJ,"isIdentifierName",{enumerable:!0,get:function(){return C2.isIdentifierName}});Object.defineProperty(IJ,"isIdentifierStart",{enumerable:!0,get:function(){return C2.isIdentifierStart}});Object.defineProperty(IJ,"isKeyword",{enumerable:!0,get:function(){return YX.isKeyword}});Object.defineProperty(IJ,"isReservedWord",{enumerable:!0,get:function(){return YX.isReservedWord}});Object.defineProperty(IJ,"isStrictBindOnlyReservedWord",{enumerable:!0,get:function(){return YX.isStrictBindOnlyReservedWord}});Object.defineProperty(IJ,"isStrictBindReservedWord",{enumerable:!0,get:function(){return YX.isStrictBindReservedWord}});Object.defineProperty(IJ,"isStrictReservedWord",{enumerable:!0,get:function(){return YX.isStrictReservedWord}});var C2=e7(),YX=Y4()});var k0=N((z4)=>{Object.defineProperty(z4,"__esModule",{value:!0});z4.default=eA;var D2=zX();function eA(J,X=!0){if(typeof J!=="string")return!1;if(X){if((0,D2.isKeyword)(J)||(0,D2.isStrictReservedWord)(J,!0))return!1}return(0,D2.isIdentifierName)(J)}});var K4=N((V4)=>{Object.defineProperty(V4,"__esModule",{value:!0});V4.readCodePoint=W4;V4.readInt=G4;V4.readStringContents=ZC;var XC=function(X){return X>=48&&X<=57},H4={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},aX={bin:(J)=>J===48||J===49,oct:(J)=>J>=48&&J<=55,dec:(J)=>J>=48&&J<=57,hex:(J)=>J>=48&&J<=57||J>=65&&J<=70||J>=97&&J<=102};function ZC(J,X,Z,Q,Y,z){let H=Z,G=Q,W=Y,V="",U=null,q=Z,{length:O}=X;for(;;){if(Z>=O){z.unterminated(H,G,W),V+=X.slice(q,Z);break}let A=X.charCodeAt(Z);if(QC(J,A,X,Z)){V+=X.slice(q,Z);break}if(A===92){V+=X.slice(q,Z);let D=YC(X,Z,Q,Y,J==="template",z);if(D.ch===null&&!U)U={pos:Z,lineStart:Q,curLine:Y};else V+=D.ch;({pos:Z,lineStart:Q,curLine:Y}=D),q=Z}else if(A===8232||A===8233)++Z,++Y,Q=Z;else if(A===10||A===13)if(J==="template"){if(V+=X.slice(q,Z)+`
|
|
7
|
+
`,++Z,A===13&&X.charCodeAt(Z)===10)++Z;++Y,q=Q=Z}else z.unterminated(H,G,W);else++Z}return{pos:Z,str:V,firstInvalidLoc:U,lineStart:Q,curLine:Y,containsInvalid:!!U}}function QC(J,X,Z,Q){if(J==="template")return X===96||X===36&&Z.charCodeAt(Q+1)===123;return X===(J==="double"?34:39)}function YC(J,X,Z,Q,Y,z){let H=!Y;X++;let G=(V)=>({pos:X,ch:V,lineStart:Z,curLine:Q}),W=J.charCodeAt(X++);switch(W){case 110:return G(`
|
|
8
|
+
`);case 114:return G("\r");case 120:{let V;return{code:V,pos:X}=N2(J,X,Z,Q,2,!1,H,z),G(V===null?null:String.fromCharCode(V))}case 117:{let V;return{code:V,pos:X}=W4(J,X,Z,Q,H,z),G(V===null?null:String.fromCodePoint(V))}case 116:return G("\t");case 98:return G("\b");case 118:return G("\v");case 102:return G("\f");case 13:if(J.charCodeAt(X)===10)++X;case 10:Z=X,++Q;case 8232:case 8233:return G("");case 56:case 57:if(Y)return G(null);else z.strictNumericEscape(X-1,Z,Q);default:if(W>=48&&W<=55){let V=X-1,q=/^[0-7]+/.exec(J.slice(V,X+2))[0],O=parseInt(q,8);if(O>255)q=q.slice(0,-1),O=parseInt(q,8);X+=q.length-1;let A=J.charCodeAt(X);if(q!=="0"||A===56||A===57)if(Y)return G(null);else z.strictNumericEscape(V,Z,Q);return G(String.fromCharCode(O))}return G(String.fromCharCode(W))}}function N2(J,X,Z,Q,Y,z,H,G){let W=X,V;if({n:V,pos:X}=G4(J,X,Z,Q,16,Y,z,!1,G,!H),V===null)if(H)G.invalidEscapeSequence(W,Z,Q);else X=W-1;return{code:V,pos:X}}function G4(J,X,Z,Q,Y,z,H,G,W,V){let U=X,q=Y===16?H4.hex:H4.decBinOct,O=Y===16?aX.hex:Y===10?aX.dec:Y===8?aX.oct:aX.bin,A=!1,D=0;for(let S=0,C=z==null?1/0:z;S<C;++S){let L=J.charCodeAt(X),b;if(L===95&&G!=="bail"){let s=J.charCodeAt(X-1),h=J.charCodeAt(X+1);if(!G){if(V)return{n:null,pos:X};W.numericSeparatorInEscapeSequence(X,Z,Q)}else if(Number.isNaN(h)||!O(h)||q.has(s)||q.has(h)){if(V)return{n:null,pos:X};W.unexpectedNumericSeparator(X,Z,Q)}++X;continue}if(L>=97)b=L-97+10;else if(L>=65)b=L-65+10;else if(XC(L))b=L-48;else b=1/0;if(b>=Y)if(b<=9&&V)return{n:null,pos:X};else if(b<=9&&W.invalidDigit(X,Z,Q,Y))b=0;else if(H)b=0,A=!0;else break;++X,D=D*Y+b}if(X===U||z!=null&&X-U!==z||A)return{n:null,pos:X};return{n:D,pos:X}}function W4(J,X,Z,Q,Y,z){let H=J.charCodeAt(X),G;if(H===123){if(++X,{code:G,pos:X}=N2(J,X,Z,Q,J.indexOf("}",X)-X,!0,Y,z),++X,G!==null&&G>1114111)if(Y)z.invalidCodePoint(X,Z,Q);else return{code:null,pos:X}}else({code:G,pos:X}=N2(J,X,Z,Q,4,!1,Y,z));return{code:G,pos:X}}});var v0=N((B4)=>{Object.defineProperty(B4,"__esModule",{value:!0});B4.UPDATE_OPERATORS=B4.UNARY_OPERATORS=B4.STRING_UNARY_OPERATORS=B4.STATEMENT_OR_BLOCK_KEYS=B4.NUMBER_UNARY_OPERATORS=B4.NUMBER_BINARY_OPERATORS=B4.LOGICAL_OPERATORS=B4.INHERIT_KEYS=B4.FOR_INIT_KEYS=B4.FLATTENABLE_KEYS=B4.EQUALITY_BINARY_OPERATORS=B4.COMPARISON_BINARY_OPERATORS=B4.COMMENT_KEYS=B4.BOOLEAN_UNARY_OPERATORS=B4.BOOLEAN_NUMBER_BINARY_OPERATORS=B4.BOOLEAN_BINARY_OPERATORS=B4.BINARY_OPERATORS=B4.ASSIGNMENT_OPERATORS=void 0;var UF1=B4.STATEMENT_OR_BLOCK_KEYS=["consequent","body","alternate"],BF1=B4.FLATTENABLE_KEYS=["body","expressions"],RF1=B4.FOR_INIT_KEYS=["left","init"],$F1=B4.COMMENT_KEYS=["leadingComments","trailingComments","innerComments"],WC=B4.LOGICAL_OPERATORS=["||","&&","??"],qF1=B4.UPDATE_OPERATORS=["++","--"],VC=B4.BOOLEAN_NUMBER_BINARY_OPERATORS=[">","<",">=","<="],KC=B4.EQUALITY_BINARY_OPERATORS=["==","===","!=","!=="],UC=B4.COMPARISON_BINARY_OPERATORS=[...KC,"in","instanceof"],BC=B4.BOOLEAN_BINARY_OPERATORS=[...UC,...VC],U4=B4.NUMBER_BINARY_OPERATORS=["-","/","%","*","**","&","|",">>",">>>","<<","^"],FF1=B4.BINARY_OPERATORS=["+",...U4,...BC,"|>"],jF1=B4.ASSIGNMENT_OPERATORS=["=","+=",...U4.map((J)=>J+"="),...WC.map((J)=>J+"=")],RC=B4.BOOLEAN_UNARY_OPERATORS=["delete","!"],$C=B4.NUMBER_UNARY_OPERATORS=["+","-","~"],qC=B4.STRING_UNARY_OPERATORS=["typeof"],MF1=B4.UNARY_OPERATORS=["void","throw",...RC,...$C,...qC],OF1=B4.INHERIT_KEYS={optional:["typeAnnotation","typeParameters","returnType"],force:["start","loc","end"]};B4.BLOCK_SCOPED_SYMBOL=Symbol.for("var used to be block scoped");B4.NOT_LOCAL_BINDING=Symbol.for("should not be considered a local binding")});var TJ=N((A4)=>{Object.defineProperty(A4,"__esModule",{value:!0});A4.allExpandedTypes=A4.VISITOR_KEYS=A4.NODE_UNION_SHAPES__PRIVATE=A4.NODE_PARENT_VALIDATIONS=A4.NODE_FIELDS=A4.FLIPPED_ALIAS_KEYS=A4.DEPRECATED_KEYS=A4.BUILDER_KEYS=A4.ALIAS_KEYS=void 0;A4.arrayOf=q4;A4.arrayOfType=F4;A4.assertEach=j4;A4.assertNodeOrValueType=aC;A4.assertNodeType=tX;A4.assertOneOf=rC;A4.assertOptionalChainStart=tC;A4.assertShape=sC;A4.assertValueType=I2;A4.chain=M4;A4.default=O4;A4.defineAliasedType=eC;A4.validate=S2;A4.validateArrayOfType=pC;A4.validateOptional=lC;A4.validateOptionalType=iC;A4.validateType=cC;var $4=b0(),HX=nX(),_C=A4.VISITOR_KEYS={},fC=A4.ALIAS_KEYS={},w2=A4.FLIPPED_ALIAS_KEYS={},hC=A4.NODE_FIELDS={},xC=A4.BUILDER_KEYS={},yC=A4.DEPRECATED_KEYS={},uC=A4.NODE_PARENT_VALIDATIONS={},mC=A4.NODE_UNION_SHAPES__PRIVATE={};function sX(J){if(Array.isArray(J))return"array";else if(J===null)return"null";else return typeof J}function S2(J){return{validate:J}}function cC(...J){return S2(tX(...J))}function lC(J){return{validate:J,optional:!0}}function iC(...J){return{validate:tX(...J),optional:!0}}function q4(J){return M4(I2("array"),j4(J))}function F4(...J){return q4(tX(...J))}function pC(...J){return S2(F4(...J))}function j4(J){let X=process.env.BABEL_TYPES_8_BREAKING?HX.validateChild:()=>{};function Z(Q,Y,z){if(!Array.isArray(z))return;let H=0,G={toString(){return`${Y}[${H}]`}};for(;H<z.length;H++){let W=z[H];J(Q,G,W),X(Q,G,W)}}return Z.each=J,Z}function rC(...J){function X(Z,Q,Y){if(!J.includes(Y))throw TypeError(`Property ${Q} expected value to be one of ${JSON.stringify(J)} but got ${JSON.stringify(Y)}`)}return X.oneOf=J,X}var dC=A4.allExpandedTypes=[];function tX(...J){let X=new Set;dC.push({types:J,set:X});function Z(Q,Y,z){let H=z==null?void 0:z.type;if(H!=null){if(X.has(H)){(0,HX.validateChild)(Q,Y,z);return}if(H==="Placeholder"){for(let G of J)if((0,$4.default)(G,z)){(0,HX.validateChild)(Q,Y,z);return}}}throw TypeError(`Property ${Y} of ${Q.type} expected node to be of a type ${JSON.stringify(J)} but instead got ${JSON.stringify(H)}`)}return Z.oneOfNodeTypes=J,Z}function aC(...J){function X(Z,Q,Y){let z=sX(Y);for(let H of J)if(z===H||(0,$4.default)(H,Y)){(0,HX.validateChild)(Z,Q,Y);return}throw TypeError(`Property ${Q} of ${Z.type} expected node to be of a type ${JSON.stringify(J)} but instead got ${JSON.stringify(Y==null?void 0:Y.type)}`)}return X.oneOfNodeOrValueTypes=J,X}function I2(J){function X(Z,Q,Y){if(sX(Y)===J)return;throw TypeError(`Property ${Q} expected type of ${J} but got ${sX(Y)}`)}return X.type=J,X}function sC(J){let X=Object.keys(J);function Z(Q,Y,z){let H=[];for(let G of X)try{(0,HX.validateField)(Q,G,z[G],J[G])}catch(W){if(W instanceof TypeError){H.push(W.message);continue}throw W}if(H.length)throw TypeError(`Property ${Y} of ${Q.type} expected to have the following:
|
|
9
|
+
${H.join(`
|
|
10
|
+
`)}`)}return Z.shapeOf=J,Z}function tC(){function J(X){var Z;let Q=X;while(X){let{type:Y}=Q;if(Y==="OptionalCallExpression"){if(Q.optional)return;Q=Q.callee;continue}if(Y==="OptionalMemberExpression"){if(Q.optional)return;Q=Q.object;continue}break}throw TypeError(`Non-optional ${X.type} must chain from an optional OptionalMemberExpression or OptionalCallExpression. Found chain from ${(Z=Q)==null?void 0:Z.type}`)}return J}function M4(...J){function X(...Z){for(let Q of J)Q(...Z)}if(X.chainOf=J,J.length>=2&&"type"in J[0]&&J[0].type==="array"&&!("each"in J[1]))throw Error('An assertValueType("array") validator can only be followed by an assertEach(...) validator.');return X}var nC=new Set(["aliases","builder","deprecatedAlias","fields","inherits","visitor","validate","unionShape"]),oC=new Set(["default","optional","deprecated","validate"]),P2={};function eC(...J){return(X,Z={})=>{let Q=Z.aliases;if(!Q){var Y;if(Z.inherits)Q=(Y=P2[Z.inherits].aliases)==null?void 0:Y.slice();Q!=null||(Q=[]),Z.aliases=Q}let z=J.filter((H)=>!Q.includes(H));Q.unshift(...z),O4(X,Z)}}function O4(J,X={}){let Z=X.inherits&&P2[X.inherits]||{},Q=X.fields;if(!Q){if(Q={},Z.fields){let G=Object.getOwnPropertyNames(Z.fields);for(let W of G){let V=Z.fields[W],U=V.default;if(Array.isArray(U)?U.length>0:U&&typeof U==="object")throw Error("field defaults can only be primitives or empty arrays currently");Q[W]={default:Array.isArray(U)?[]:U,optional:V.optional,deprecated:V.deprecated,validate:V.validate}}}}let Y=X.visitor||Z.visitor||[],z=X.aliases||Z.aliases||[],H=X.builder||Z.builder||X.visitor||[];for(let G of Object.keys(X))if(!nC.has(G))throw Error(`Unknown type option "${G}" on ${J}`);if(X.deprecatedAlias)yC[X.deprecatedAlias]=J;for(let G of Y.concat(H))Q[G]=Q[G]||{};for(let G of Object.keys(Q)){let W=Q[G];if(W.default!==void 0&&!H.includes(G))W.optional=!0;if(W.default===void 0)W.default=null;else if(!W.validate&&W.default!=null)W.validate=I2(sX(W.default));for(let V of Object.keys(W))if(!oC.has(V))throw Error(`Unknown field key "${V}" on ${J}.${G}`)}if(_C[J]=X.visitor=Y,xC[J]=X.builder=H,hC[J]=X.fields=Q,fC[J]=X.aliases=z,z.forEach((G)=>{w2[G]=w2[G]||[],w2[G].push(J)}),X.validate)uC[J]=X.validate;if(X.unionShape)mC[J]=X.unionShape;P2[J]=X}});var WX=N((w4)=>{Object.defineProperty(w4,"__esModule",{value:!0});w4.patternLikeCommon=w4.importAttributes=w4.functionTypeAnnotationCommon=w4.functionDeclarationCommon=w4.functionCommon=w4.classMethodOrPropertyUnionShapeCommon=w4.classMethodOrPropertyCommon=w4.classMethodOrDeclareMethodCommon=void 0;var a1=b0(),PD=k0(),D4=zX(),SD=K4(),E0=v0(),$=TJ(),GX=(J=!1)=>({unionShape:{discriminator:"computed",shapes:[{name:"computed",value:[!0],properties:{key:{validate:(0,$.assertNodeType)("Expression")}}},{name:"nonComputed",value:[!1],properties:{key:{validate:J?(0,$.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","PrivateName"):(0,$.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral")}}}]}});w4.classMethodOrPropertyUnionShapeCommon=GX;var f=(0,$.defineAliasedType)("Standardized");f("ArrayExpression",{fields:{elements:{validate:(0,$.arrayOf)((0,$.assertNodeOrValueType)("null","Expression","SpreadElement")),default:!process.env.BABEL_TYPES_8_BREAKING?[]:void 0}},visitor:["elements"],aliases:["Expression"]});f("AssignmentExpression",{fields:{operator:{validate:!process.env.BABEL_TYPES_8_BREAKING?(0,$.assertValueType)("string"):Object.assign(function(){let J=(0,$.assertOneOf)(...E0.ASSIGNMENT_OPERATORS),X=(0,$.assertOneOf)("=");return function(Z,Q,Y){((0,a1.default)("Pattern",Z.left)?X:J)(Z,Q,Y)}}(),{oneOf:E0.ASSIGNMENT_OPERATORS})},left:{validate:!process.env.BABEL_TYPES_8_BREAKING?(0,$.assertNodeType)("LVal","OptionalMemberExpression"):(0,$.assertNodeType)("Identifier","MemberExpression","OptionalMemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression")},right:{validate:(0,$.assertNodeType)("Expression")}},builder:["operator","left","right"],visitor:["left","right"],aliases:["Expression"]});f("BinaryExpression",{builder:["operator","left","right"],fields:{operator:{validate:(0,$.assertOneOf)(...E0.BINARY_OPERATORS)},left:{validate:function(){let J=(0,$.assertNodeType)("Expression"),X=(0,$.assertNodeType)("Expression","PrivateName");return Object.assign(function(Q,Y,z){(Q.operator==="in"?X:J)(Q,Y,z)},{oneOfNodeTypes:["Expression","PrivateName"]})}()},right:{validate:(0,$.assertNodeType)("Expression")}},visitor:["left","right"],aliases:["Binary","Expression"]});f("InterpreterDirective",{builder:["value"],fields:{value:{validate:(0,$.assertValueType)("string")}}});f("Directive",{visitor:["value"],fields:{value:{validate:(0,$.assertNodeType)("DirectiveLiteral")}}});f("DirectiveLiteral",{builder:["value"],fields:{value:{validate:(0,$.assertValueType)("string")}}});f("BlockStatement",{builder:["body","directives"],visitor:["directives","body"],fields:{directives:{validate:(0,$.arrayOfType)("Directive"),default:[]},body:(0,$.validateArrayOfType)("Statement")},aliases:["Scopable","BlockParent","Block","Statement"]});f("BreakStatement",{visitor:["label"],fields:{label:{validate:(0,$.assertNodeType)("Identifier"),optional:!0}},aliases:["Statement","Terminatorless","CompletionStatement"]});f("CallExpression",{visitor:["callee","typeParameters","typeArguments","arguments"],builder:["callee","arguments"],aliases:["Expression"],fields:Object.assign({callee:{validate:(0,$.assertNodeType)("Expression","Super","V8IntrinsicIdentifier")},arguments:(0,$.validateArrayOfType)("Expression","SpreadElement","ArgumentPlaceholder"),typeArguments:{validate:(0,$.assertNodeType)("TypeParameterInstantiation"),optional:!0}},process.env.BABEL_TYPES_8_BREAKING?{}:{optional:{validate:(0,$.assertValueType)("boolean"),optional:!0},typeParameters:{validate:(0,$.assertNodeType)("TSTypeParameterInstantiation"),optional:!0}})});f("CatchClause",{visitor:["param","body"],fields:{param:{validate:(0,$.assertNodeType)("Identifier","ArrayPattern","ObjectPattern"),optional:!0},body:{validate:(0,$.assertNodeType)("BlockStatement")}},aliases:["Scopable","BlockParent"]});f("ConditionalExpression",{visitor:["test","consequent","alternate"],fields:{test:{validate:(0,$.assertNodeType)("Expression")},consequent:{validate:(0,$.assertNodeType)("Expression")},alternate:{validate:(0,$.assertNodeType)("Expression")}},aliases:["Expression","Conditional"]});f("ContinueStatement",{visitor:["label"],fields:{label:{validate:(0,$.assertNodeType)("Identifier"),optional:!0}},aliases:["Statement","Terminatorless","CompletionStatement"]});f("DebuggerStatement",{aliases:["Statement"]});f("DoWhileStatement",{builder:["test","body"],visitor:["body","test"],fields:{test:{validate:(0,$.assertNodeType)("Expression")},body:{validate:(0,$.assertNodeType)("Statement")}},aliases:["Statement","BlockParent","Loop","While","Scopable"]});f("EmptyStatement",{aliases:["Statement"]});f("ExpressionStatement",{visitor:["expression"],fields:{expression:{validate:(0,$.assertNodeType)("Expression")}},aliases:["Statement","ExpressionWrapper"]});f("File",{builder:["program","comments","tokens"],visitor:["program"],fields:{program:{validate:(0,$.assertNodeType)("Program")},comments:{validate:!process.env.BABEL_TYPES_8_BREAKING?Object.assign(()=>{},{each:{oneOfNodeTypes:["CommentBlock","CommentLine"]}}):(0,$.assertEach)((0,$.assertNodeType)("CommentBlock","CommentLine")),optional:!0},tokens:{validate:(0,$.assertEach)(Object.assign(()=>{},{type:"any"})),optional:!0}}});f("ForInStatement",{visitor:["left","right","body"],aliases:["Scopable","Statement","For","BlockParent","Loop","ForXStatement"],fields:{left:{validate:!process.env.BABEL_TYPES_8_BREAKING?(0,$.assertNodeType)("VariableDeclaration","LVal"):(0,$.assertNodeType)("VariableDeclaration","Identifier","MemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression")},right:{validate:(0,$.assertNodeType)("Expression")},body:{validate:(0,$.assertNodeType)("Statement")}}});f("ForStatement",{visitor:["init","test","update","body"],aliases:["Scopable","Statement","For","BlockParent","Loop"],fields:{init:{validate:(0,$.assertNodeType)("VariableDeclaration","Expression"),optional:!0},test:{validate:(0,$.assertNodeType)("Expression"),optional:!0},update:{validate:(0,$.assertNodeType)("Expression"),optional:!0},body:{validate:(0,$.assertNodeType)("Statement")}}});var g0=()=>({params:(0,$.validateArrayOfType)("FunctionParameter"),generator:{default:!1},async:{default:!1}});w4.functionCommon=g0;var V0=()=>({returnType:{validate:(0,$.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},typeParameters:{validate:(0,$.assertNodeType)("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:!0}});w4.functionTypeAnnotationCommon=V0;var N4=()=>Object.assign({},g0(),{declare:{validate:(0,$.assertValueType)("boolean"),optional:!0},id:{validate:(0,$.assertNodeType)("Identifier"),optional:!0}});w4.functionDeclarationCommon=N4;f("FunctionDeclaration",{builder:["id","params","body","generator","async"],visitor:["id","typeParameters","params","predicate","returnType","body"],fields:Object.assign({},N4(),V0(),{body:{validate:(0,$.assertNodeType)("BlockStatement")},predicate:{validate:(0,$.assertNodeType)("DeclaredPredicate","InferredPredicate"),optional:!0}}),aliases:["Scopable","Function","BlockParent","FunctionParent","Statement","Pureish","Declaration"],validate:!process.env.BABEL_TYPES_8_BREAKING?void 0:function(){let J=(0,$.assertNodeType)("Identifier");return function(X,Z,Q){if(!(0,a1.default)("ExportDefaultDeclaration",X))J(Q,"id",Q.id)}}()});f("FunctionExpression",{inherits:"FunctionDeclaration",aliases:["Scopable","Function","BlockParent","FunctionParent","Expression","Pureish"],fields:Object.assign({},g0(),V0(),{id:{validate:(0,$.assertNodeType)("Identifier"),optional:!0},body:{validate:(0,$.assertNodeType)("BlockStatement")},predicate:{validate:(0,$.assertNodeType)("DeclaredPredicate","InferredPredicate"),optional:!0}})});var _0=()=>({typeAnnotation:{validate:(0,$.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},optional:{validate:(0,$.assertValueType)("boolean"),optional:!0},decorators:{validate:(0,$.arrayOfType)("Decorator"),optional:!0}});w4.patternLikeCommon=_0;f("Identifier",{builder:["name"],visitor:["typeAnnotation","decorators"],aliases:["Expression","FunctionParameter","PatternLike","LVal","TSEntityName"],fields:Object.assign({},_0(),{name:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,$.chain)((0,$.assertValueType)("string"),Object.assign(function(J,X,Z){if(!(0,PD.default)(Z,!1))throw TypeError(`"${Z}" is not a valid identifier name`)},{type:"string"})):(0,$.assertValueType)("string")}}),validate:process.env.BABEL_TYPES_8_BREAKING?function(J,X,Z){let Q=/\.(\w+)$/.exec(X.toString());if(!Q)return;let[,Y]=Q,z={computed:!1};if(Y==="property"){if((0,a1.default)("MemberExpression",J,z))return;if((0,a1.default)("OptionalMemberExpression",J,z))return}else if(Y==="key"){if((0,a1.default)("Property",J,z))return;if((0,a1.default)("Method",J,z))return}else if(Y==="exported"){if((0,a1.default)("ExportSpecifier",J))return}else if(Y==="imported"){if((0,a1.default)("ImportSpecifier",J,{imported:Z}))return}else if(Y==="meta"){if((0,a1.default)("MetaProperty",J,{meta:Z}))return}if(((0,D4.isKeyword)(Z.name)||(0,D4.isReservedWord)(Z.name,!1))&&Z.name!=="this")throw TypeError(`"${Z.name}" is not a valid identifier`)}:void 0});f("IfStatement",{visitor:["test","consequent","alternate"],aliases:["Statement","Conditional"],fields:{test:{validate:(0,$.assertNodeType)("Expression")},consequent:{validate:(0,$.assertNodeType)("Statement")},alternate:{optional:!0,validate:(0,$.assertNodeType)("Statement")}}});f("LabeledStatement",{visitor:["label","body"],aliases:["Statement"],fields:{label:{validate:(0,$.assertNodeType)("Identifier")},body:{validate:(0,$.assertNodeType)("Statement")}}});f("StringLiteral",{builder:["value"],fields:{value:{validate:(0,$.assertValueType)("string")}},aliases:["Expression","Pureish","Literal","Immutable"]});f("NumericLiteral",{builder:["value"],deprecatedAlias:"NumberLiteral",fields:{value:{validate:(0,$.chain)((0,$.assertValueType)("number"),Object.assign(function(J,X,Z){if(1/Z<0||!Number.isFinite(Z)){let Q=Error(`NumericLiterals must be non-negative finite numbers. You can use t.valueToNode(${Z}) instead.`)}},{type:"number"}))}},aliases:["Expression","Pureish","Literal","Immutable"]});f("NullLiteral",{aliases:["Expression","Pureish","Literal","Immutable"]});f("BooleanLiteral",{builder:["value"],fields:{value:{validate:(0,$.assertValueType)("boolean")}},aliases:["Expression","Pureish","Literal","Immutable"]});f("RegExpLiteral",{builder:["pattern","flags"],deprecatedAlias:"RegexLiteral",aliases:["Expression","Pureish","Literal"],fields:{pattern:{validate:(0,$.assertValueType)("string")},flags:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,$.chain)((0,$.assertValueType)("string"),Object.assign(function(J,X,Z){let Q=/[^dgimsuvy]/.exec(Z);if(Q)throw TypeError(`"${Q[0]}" is not a valid RegExp flag`)},{type:"string"})):(0,$.assertValueType)("string"),default:""}}});f("LogicalExpression",{builder:["operator","left","right"],visitor:["left","right"],aliases:["Binary","Expression"],fields:{operator:{validate:(0,$.assertOneOf)(...E0.LOGICAL_OPERATORS)},left:{validate:(0,$.assertNodeType)("Expression")},right:{validate:(0,$.assertNodeType)("Expression")}}});f("MemberExpression",{builder:["object","property","computed",...!process.env.BABEL_TYPES_8_BREAKING?["optional"]:[]],visitor:["object","property"],aliases:["Expression","LVal","PatternLike"],unionShape:{discriminator:"computed",shapes:[{name:"computed",value:[!0],properties:{property:{validate:(0,$.assertNodeType)("Expression")}}},{name:"nonComputed",value:[!1],properties:{property:{validate:(0,$.assertNodeType)("Identifier","PrivateName")}}}]},fields:Object.assign({object:{validate:(0,$.assertNodeType)("Expression","Super")},property:{validate:function(){let J=(0,$.assertNodeType)("Identifier","PrivateName"),X=(0,$.assertNodeType)("Expression"),Z=function(Q,Y,z){(Q.computed?X:J)(Q,Y,z)};return Z.oneOfNodeTypes=["Expression","Identifier","PrivateName"],Z}()},computed:{default:!1}},!process.env.BABEL_TYPES_8_BREAKING?{optional:{validate:(0,$.assertValueType)("boolean"),optional:!0}}:{})});f("NewExpression",{inherits:"CallExpression"});f("Program",{visitor:["directives","body"],builder:["body","directives","sourceType","interpreter"],fields:{sourceType:{validate:(0,$.assertOneOf)("script","module"),default:"script"},interpreter:{validate:(0,$.assertNodeType)("InterpreterDirective"),default:null,optional:!0},directives:{validate:(0,$.arrayOfType)("Directive"),default:[]},body:(0,$.validateArrayOfType)("Statement")},aliases:["Scopable","BlockParent","Block"]});f("ObjectExpression",{visitor:["properties"],aliases:["Expression"],fields:{properties:(0,$.validateArrayOfType)("ObjectMethod","ObjectProperty","SpreadElement")}});f("ObjectMethod",Object.assign({builder:["kind","key","params","body","computed","generator","async"],visitor:["decorators","key","typeParameters","params","returnType","body"]},GX(),{fields:Object.assign({},g0(),V0(),{kind:Object.assign({validate:(0,$.assertOneOf)("method","get","set")},!process.env.BABEL_TYPES_8_BREAKING?{default:"method"}:{}),computed:{default:!1},key:{validate:function(){let J=(0,$.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral"),X=(0,$.assertNodeType)("Expression"),Z=function(Q,Y,z){(Q.computed?X:J)(Q,Y,z)};return Z.oneOfNodeTypes=["Expression","Identifier","StringLiteral","NumericLiteral","BigIntLiteral"],Z}()},decorators:{validate:(0,$.arrayOfType)("Decorator"),optional:!0},body:{validate:(0,$.assertNodeType)("BlockStatement")}}),aliases:["UserWhitespacable","Function","Scopable","BlockParent","FunctionParent","Method","ObjectMember"]}));f("ObjectProperty",{builder:["key","value","computed","shorthand",...!process.env.BABEL_TYPES_8_BREAKING?["decorators"]:[]],unionShape:{discriminator:"computed",shapes:[{name:"computed",value:[!0],properties:{key:{validate:(0,$.assertNodeType)("Expression")}}},{name:"nonComputed",value:[!1],properties:{key:{validate:(0,$.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","DecimalLiteral","PrivateName")}}}]},fields:{computed:{default:!1},key:{validate:function(){let J=(0,$.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","DecimalLiteral","PrivateName"),X=(0,$.assertNodeType)("Expression");return Object.assign(function(Q,Y,z){(Q.computed?X:J)(Q,Y,z)},{oneOfNodeTypes:["Expression","Identifier","StringLiteral","NumericLiteral","BigIntLiteral","DecimalLiteral","PrivateName"]})}()},value:{validate:(0,$.assertNodeType)("Expression","PatternLike")},shorthand:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,$.chain)((0,$.assertValueType)("boolean"),Object.assign(function(J,X,Z){if(!Z)return;if(J.computed)throw TypeError("Property shorthand of ObjectProperty cannot be true if computed is true");if(!(0,a1.default)("Identifier",J.key))throw TypeError("Property shorthand of ObjectProperty cannot be true if key is not an Identifier")},{type:"boolean"})):(0,$.assertValueType)("boolean"),default:!1},decorators:{validate:(0,$.arrayOfType)("Decorator"),optional:!0}},visitor:["decorators","key","value"],aliases:["UserWhitespacable","Property","ObjectMember"],validate:!process.env.BABEL_TYPES_8_BREAKING?void 0:function(){let J=(0,$.assertNodeType)("Identifier","Pattern","TSAsExpression","TSSatisfiesExpression","TSNonNullExpression","TSTypeAssertion"),X=(0,$.assertNodeType)("Expression");return function(Z,Q,Y){((0,a1.default)("ObjectPattern",Z)?J:X)(Y,"value",Y.value)}}()});f("RestElement",{visitor:["argument","typeAnnotation"],builder:["argument"],aliases:["FunctionParameter","PatternLike","LVal"],deprecatedAlias:"RestProperty",fields:Object.assign({},_0(),{argument:{validate:!process.env.BABEL_TYPES_8_BREAKING?(0,$.assertNodeType)("Identifier","ArrayPattern","ObjectPattern","MemberExpression","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression","RestElement","AssignmentPattern"):(0,$.assertNodeType)("Identifier","ArrayPattern","ObjectPattern","MemberExpression","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression")}}),validate:process.env.BABEL_TYPES_8_BREAKING?function(J,X){let Z=/(\w+)\[(\d+)\]/.exec(X.toString());if(!Z)throw Error("Internal Babel error: malformed key.");let[,Q,Y]=Z;if(J[Q].length>+Y+1)throw TypeError(`RestElement must be last element of ${Q}`)}:void 0});f("ReturnStatement",{visitor:["argument"],aliases:["Statement","Terminatorless","CompletionStatement"],fields:{argument:{validate:(0,$.assertNodeType)("Expression"),optional:!0}}});f("SequenceExpression",{visitor:["expressions"],fields:{expressions:(0,$.validateArrayOfType)("Expression")},aliases:["Expression"]});f("ParenthesizedExpression",{visitor:["expression"],aliases:["Expression","ExpressionWrapper"],fields:{expression:{validate:(0,$.assertNodeType)("Expression")}}});f("SwitchCase",{visitor:["test","consequent"],fields:{test:{validate:(0,$.assertNodeType)("Expression"),optional:!0},consequent:(0,$.validateArrayOfType)("Statement")}});f("SwitchStatement",{visitor:["discriminant","cases"],aliases:["Statement","BlockParent","Scopable"],fields:{discriminant:{validate:(0,$.assertNodeType)("Expression")},cases:(0,$.validateArrayOfType)("SwitchCase")}});f("ThisExpression",{aliases:["Expression"]});f("ThrowStatement",{visitor:["argument"],aliases:["Statement","Terminatorless","CompletionStatement"],fields:{argument:{validate:(0,$.assertNodeType)("Expression")}}});f("TryStatement",{visitor:["block","handler","finalizer"],aliases:["Statement"],fields:{block:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,$.chain)((0,$.assertNodeType)("BlockStatement"),Object.assign(function(J){if(!J.handler&&!J.finalizer)throw TypeError("TryStatement expects either a handler or finalizer, or both")},{oneOfNodeTypes:["BlockStatement"]})):(0,$.assertNodeType)("BlockStatement")},handler:{optional:!0,validate:(0,$.assertNodeType)("CatchClause")},finalizer:{optional:!0,validate:(0,$.assertNodeType)("BlockStatement")}}});f("UnaryExpression",{builder:["operator","argument","prefix"],fields:{prefix:{default:!0},argument:{validate:(0,$.assertNodeType)("Expression")},operator:{validate:(0,$.assertOneOf)(...E0.UNARY_OPERATORS)}},visitor:["argument"],aliases:["UnaryLike","Expression"]});f("UpdateExpression",{builder:["operator","argument","prefix"],fields:{prefix:{default:!1},argument:{validate:!process.env.BABEL_TYPES_8_BREAKING?(0,$.assertNodeType)("Expression"):(0,$.assertNodeType)("Identifier","MemberExpression")},operator:{validate:(0,$.assertOneOf)(...E0.UPDATE_OPERATORS)}},visitor:["argument"],aliases:["Expression"]});f("VariableDeclaration",{builder:["kind","declarations"],visitor:["declarations"],aliases:["Statement","Declaration"],fields:{declare:{validate:(0,$.assertValueType)("boolean"),optional:!0},kind:{validate:(0,$.assertOneOf)("var","let","const","using","await using")},declarations:(0,$.validateArrayOfType)("VariableDeclarator")},validate:process.env.BABEL_TYPES_8_BREAKING?(()=>{let J=(0,$.assertNodeType)("Identifier","Placeholder"),X=(0,$.assertNodeType)("Identifier","ArrayPattern","ObjectPattern","Placeholder"),Z=(0,$.assertNodeType)("Identifier","VoidPattern","Placeholder");return function(Q,Y,z){let{kind:H,declarations:G}=z,W=(0,a1.default)("ForXStatement",Q,{left:z});if(W){if(G.length!==1)throw TypeError(`Exactly one VariableDeclarator is required in the VariableDeclaration of a ${Q.type}`)}for(let V of G)if(H==="const"||H==="let"||H==="var")if(!W&&!V.init)J(V,"id",V.id);else X(V,"id",V.id);else Z(V,"id",V.id)}})():void 0});f("VariableDeclarator",{visitor:["id","init"],fields:{id:{validate:!process.env.BABEL_TYPES_8_BREAKING?(0,$.assertNodeType)("LVal","VoidPattern"):(0,$.assertNodeType)("Identifier","ArrayPattern","ObjectPattern","VoidPattern")},definite:{optional:!0,validate:(0,$.assertValueType)("boolean")},init:{optional:!0,validate:(0,$.assertNodeType)("Expression")}}});f("WhileStatement",{visitor:["test","body"],aliases:["Statement","BlockParent","Loop","While","Scopable"],fields:{test:{validate:(0,$.assertNodeType)("Expression")},body:{validate:(0,$.assertNodeType)("Statement")}}});f("WithStatement",{visitor:["object","body"],aliases:["Statement"],fields:{object:{validate:(0,$.assertNodeType)("Expression")},body:{validate:(0,$.assertNodeType)("Statement")}}});f("AssignmentPattern",{visitor:["left","right","decorators"],builder:["left","right"],aliases:["FunctionParameter","Pattern","PatternLike","LVal"],fields:Object.assign({},_0(),{left:{validate:(0,$.assertNodeType)("Identifier","ObjectPattern","ArrayPattern","MemberExpression","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression")},right:{validate:(0,$.assertNodeType)("Expression")},decorators:{validate:(0,$.arrayOfType)("Decorator"),optional:!0}})});f("ArrayPattern",{visitor:["elements","typeAnnotation"],builder:["elements"],aliases:["FunctionParameter","Pattern","PatternLike","LVal"],fields:Object.assign({},_0(),{elements:{validate:(0,$.chain)((0,$.assertValueType)("array"),(0,$.assertEach)((0,$.assertNodeOrValueType)("null","PatternLike")))}})});f("ArrowFunctionExpression",{builder:["params","body","async"],visitor:["typeParameters","params","predicate","returnType","body"],aliases:["Scopable","Function","BlockParent","FunctionParent","Expression","Pureish"],fields:Object.assign({},g0(),V0(),{expression:{validate:(0,$.assertValueType)("boolean")},body:{validate:(0,$.assertNodeType)("BlockStatement","Expression")},predicate:{validate:(0,$.assertNodeType)("DeclaredPredicate","InferredPredicate"),optional:!0}})});f("ClassBody",{visitor:["body"],fields:{body:(0,$.validateArrayOfType)("ClassMethod","ClassPrivateMethod","ClassProperty","ClassPrivateProperty","ClassAccessorProperty","TSDeclareMethod","TSIndexSignature","StaticBlock")}});f("ClassExpression",{builder:["id","superClass","body","decorators"],visitor:["decorators","id","typeParameters","superClass","superTypeParameters","mixins","implements","body"],aliases:["Scopable","Class","Expression"],fields:{id:{validate:(0,$.assertNodeType)("Identifier"),optional:!0},typeParameters:{validate:(0,$.assertNodeType)("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:!0},body:{validate:(0,$.assertNodeType)("ClassBody")},superClass:{optional:!0,validate:(0,$.assertNodeType)("Expression")},["superTypeParameters"]:{validate:(0,$.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0},implements:{validate:(0,$.arrayOfType)("TSExpressionWithTypeArguments","ClassImplements"),optional:!0},decorators:{validate:(0,$.arrayOfType)("Decorator"),optional:!0},mixins:{validate:(0,$.assertNodeType)("InterfaceExtends"),optional:!0}}});f("ClassDeclaration",{inherits:"ClassExpression",aliases:["Scopable","Class","Statement","Declaration"],fields:{id:{validate:(0,$.assertNodeType)("Identifier"),optional:!0},typeParameters:{validate:(0,$.assertNodeType)("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:!0},body:{validate:(0,$.assertNodeType)("ClassBody")},superClass:{optional:!0,validate:(0,$.assertNodeType)("Expression")},["superTypeParameters"]:{validate:(0,$.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0},implements:{validate:(0,$.arrayOfType)("TSExpressionWithTypeArguments","ClassImplements"),optional:!0},decorators:{validate:(0,$.arrayOfType)("Decorator"),optional:!0},mixins:{validate:(0,$.assertNodeType)("InterfaceExtends"),optional:!0},declare:{validate:(0,$.assertValueType)("boolean"),optional:!0},abstract:{validate:(0,$.assertValueType)("boolean"),optional:!0}},validate:!process.env.BABEL_TYPES_8_BREAKING?void 0:function(){let J=(0,$.assertNodeType)("Identifier");return function(X,Z,Q){if(!(0,a1.default)("ExportDefaultDeclaration",X))J(Q,"id",Q.id)}}()});var oX=w4.importAttributes={attributes:{optional:!0,validate:(0,$.arrayOfType)("ImportAttribute")}};oX.assertions={deprecated:!0,optional:!0,validate:(0,$.arrayOfType)("ImportAttribute")};f("ExportAllDeclaration",{builder:["source","attributes"],visitor:["source","attributes","assertions"],aliases:["Statement","Declaration","ImportOrExportDeclaration","ExportDeclaration"],fields:Object.assign({source:{validate:(0,$.assertNodeType)("StringLiteral")},exportKind:(0,$.validateOptional)((0,$.assertOneOf)("type","value"))},oX)});f("ExportDefaultDeclaration",{visitor:["declaration"],aliases:["Statement","Declaration","ImportOrExportDeclaration","ExportDeclaration"],fields:{declaration:(0,$.validateType)("TSDeclareFunction","FunctionDeclaration","ClassDeclaration","Expression"),exportKind:(0,$.validateOptional)((0,$.assertOneOf)("value"))}});f("ExportNamedDeclaration",{builder:["declaration","specifiers","source","attributes"],visitor:["declaration","specifiers","source","attributes","assertions"],aliases:["Statement","Declaration","ImportOrExportDeclaration","ExportDeclaration"],fields:Object.assign({declaration:{optional:!0,validate:process.env.BABEL_TYPES_8_BREAKING?(0,$.chain)((0,$.assertNodeType)("Declaration"),Object.assign(function(J,X,Z){if(Z&&J.specifiers.length)throw TypeError("Only declaration or specifiers is allowed on ExportNamedDeclaration");if(Z&&J.source)throw TypeError("Cannot export a declaration from a source")},{oneOfNodeTypes:["Declaration"]})):(0,$.assertNodeType)("Declaration")}},oX,{specifiers:{default:[],validate:(0,$.arrayOf)(function(){let J=(0,$.assertNodeType)("ExportSpecifier","ExportDefaultSpecifier","ExportNamespaceSpecifier"),X=(0,$.assertNodeType)("ExportSpecifier");if(!process.env.BABEL_TYPES_8_BREAKING)return J;return Object.assign(function(Z,Q,Y){(Z.source?J:X)(Z,Q,Y)},{oneOfNodeTypes:["ExportSpecifier","ExportDefaultSpecifier","ExportNamespaceSpecifier"]})}())},source:{validate:(0,$.assertNodeType)("StringLiteral"),optional:!0},exportKind:(0,$.validateOptional)((0,$.assertOneOf)("type","value"))})});f("ExportSpecifier",{visitor:["local","exported"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,$.assertNodeType)("Identifier")},exported:{validate:(0,$.assertNodeType)("Identifier","StringLiteral")},exportKind:{validate:(0,$.assertOneOf)("type","value"),optional:!0}}});f("ForOfStatement",{visitor:["left","right","body"],builder:["left","right","body","await"],aliases:["Scopable","Statement","For","BlockParent","Loop","ForXStatement"],fields:{left:{validate:function(){if(!process.env.BABEL_TYPES_8_BREAKING)return(0,$.assertNodeType)("VariableDeclaration","LVal");let J=(0,$.assertNodeType)("VariableDeclaration"),X=(0,$.assertNodeType)("Identifier","MemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression");return Object.assign(function(Z,Q,Y){if((0,a1.default)("VariableDeclaration",Y))J(Z,Q,Y);else X(Z,Q,Y)},{oneOfNodeTypes:["VariableDeclaration","Identifier","MemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression"]})}()},right:{validate:(0,$.assertNodeType)("Expression")},body:{validate:(0,$.assertNodeType)("Statement")},await:{default:!1}}});f("ImportDeclaration",{builder:["specifiers","source","attributes"],visitor:["specifiers","source","attributes","assertions"],aliases:["Statement","Declaration","ImportOrExportDeclaration"],fields:Object.assign({},oX,{module:{optional:!0,validate:(0,$.assertValueType)("boolean")},phase:{default:null,validate:(0,$.assertOneOf)("source","defer")},specifiers:(0,$.validateArrayOfType)("ImportSpecifier","ImportDefaultSpecifier","ImportNamespaceSpecifier"),source:{validate:(0,$.assertNodeType)("StringLiteral")},importKind:{validate:(0,$.assertOneOf)("type","typeof","value"),optional:!0}})});f("ImportDefaultSpecifier",{visitor:["local"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,$.assertNodeType)("Identifier")}}});f("ImportNamespaceSpecifier",{visitor:["local"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,$.assertNodeType)("Identifier")}}});f("ImportSpecifier",{visitor:["imported","local"],builder:["local","imported"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,$.assertNodeType)("Identifier")},imported:{validate:(0,$.assertNodeType)("Identifier","StringLiteral")},importKind:{validate:(0,$.assertOneOf)("type","typeof","value"),optional:!0}}});f("ImportExpression",{visitor:["source","options"],aliases:["Expression"],fields:{phase:{default:null,validate:(0,$.assertOneOf)("source","defer")},source:{validate:(0,$.assertNodeType)("Expression")},options:{validate:(0,$.assertNodeType)("Expression"),optional:!0}}});f("MetaProperty",{visitor:["meta","property"],aliases:["Expression"],fields:{meta:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,$.chain)((0,$.assertNodeType)("Identifier"),Object.assign(function(J,X,Z){let Q;switch(Z.name){case"function":Q="sent";break;case"new":Q="target";break;case"import":Q="meta";break}if(!(0,a1.default)("Identifier",J.property,{name:Q}))throw TypeError("Unrecognised MetaProperty")},{oneOfNodeTypes:["Identifier"]})):(0,$.assertNodeType)("Identifier")},property:{validate:(0,$.assertNodeType)("Identifier")}}});var eX=()=>({abstract:{validate:(0,$.assertValueType)("boolean"),optional:!0},accessibility:{validate:(0,$.assertOneOf)("public","private","protected"),optional:!0},static:{default:!1},override:{default:!1},computed:{default:!1},optional:{validate:(0,$.assertValueType)("boolean"),optional:!0},key:{validate:(0,$.chain)(function(){let J=(0,$.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral"),X=(0,$.assertNodeType)("Expression");return function(Z,Q,Y){(Z.computed?X:J)(Z,Q,Y)}}(),(0,$.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","Expression"))}});w4.classMethodOrPropertyCommon=eX;var T2=()=>Object.assign({},g0(),eX(),{params:(0,$.validateArrayOfType)("FunctionParameter","TSParameterProperty"),kind:{validate:(0,$.assertOneOf)("get","set","method","constructor"),default:"method"},access:{validate:(0,$.chain)((0,$.assertValueType)("string"),(0,$.assertOneOf)("public","private","protected")),optional:!0},decorators:{validate:(0,$.arrayOfType)("Decorator"),optional:!0}});w4.classMethodOrDeclareMethodCommon=T2;f("ClassMethod",Object.assign({aliases:["Function","Scopable","BlockParent","FunctionParent","Method"],builder:["kind","key","params","body","computed","static","generator","async"],visitor:["decorators","key","typeParameters","params","returnType","body"]},GX(),{fields:Object.assign({},T2(),V0(),{body:{validate:(0,$.assertNodeType)("BlockStatement")}})}));f("ObjectPattern",{visitor:["decorators","properties","typeAnnotation"],builder:["properties"],aliases:["FunctionParameter","Pattern","PatternLike","LVal"],fields:Object.assign({},_0(),{properties:(0,$.validateArrayOfType)("RestElement","ObjectProperty")})});f("SpreadElement",{visitor:["argument"],aliases:["UnaryLike"],deprecatedAlias:"SpreadProperty",fields:{argument:{validate:(0,$.assertNodeType)("Expression")}}});f("Super",{aliases:["Expression"]});f("TaggedTemplateExpression",{visitor:["tag","typeParameters","quasi"],builder:["tag","quasi"],aliases:["Expression"],fields:{tag:{validate:(0,$.assertNodeType)("Expression")},quasi:{validate:(0,$.assertNodeType)("TemplateLiteral")},["typeParameters"]:{validate:(0,$.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0}}});f("TemplateElement",{builder:["value","tail"],fields:{value:{validate:(0,$.chain)((0,$.assertShape)({raw:{validate:(0,$.assertValueType)("string")},cooked:{validate:(0,$.assertValueType)("string"),optional:!0}}),function(X){let Z=X.value.raw,Q=!1,Y=()=>{throw Error("Internal @babel/types error.")},{str:z,firstInvalidLoc:H}=(0,SD.readStringContents)("template",Z,0,0,0,{unterminated(){Q=!0},strictNumericEscape:Y,invalidEscapeSequence:Y,numericSeparatorInEscapeSequence:Y,unexpectedNumericSeparator:Y,invalidDigit:Y,invalidCodePoint:Y});if(!Q)throw Error("Invalid raw");X.value.cooked=H?null:z})},tail:{default:!1}}});f("TemplateLiteral",{visitor:["quasis","expressions"],aliases:["Expression","Literal"],fields:{quasis:(0,$.validateArrayOfType)("TemplateElement"),expressions:{validate:(0,$.chain)((0,$.assertValueType)("array"),(0,$.assertEach)((0,$.assertNodeType)("Expression","TSType")),function(J,X,Z){if(J.quasis.length!==Z.length+1)throw TypeError(`Number of ${J.type} quasis should be exactly one more than the number of expressions.
|
|
11
|
+
Expected ${Z.length+1} quasis but got ${J.quasis.length}`)})}}});f("YieldExpression",{builder:["argument","delegate"],visitor:["argument"],aliases:["Expression","Terminatorless"],fields:{delegate:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,$.chain)((0,$.assertValueType)("boolean"),Object.assign(function(J,X,Z){if(Z&&!J.argument)throw TypeError("Property delegate of YieldExpression cannot be true if there is no argument")},{type:"boolean"})):(0,$.assertValueType)("boolean"),default:!1},argument:{optional:!0,validate:(0,$.assertNodeType)("Expression")}}});f("AwaitExpression",{builder:["argument"],visitor:["argument"],aliases:["Expression","Terminatorless"],fields:{argument:{validate:(0,$.assertNodeType)("Expression")}}});f("Import",{aliases:["Expression"]});f("BigIntLiteral",{builder:["value"],fields:{value:{validate:(0,$.assertValueType)("string")}},aliases:["Expression","Pureish","Literal","Immutable"]});f("ExportNamespaceSpecifier",{visitor:["exported"],aliases:["ModuleSpecifier"],fields:{exported:{validate:(0,$.assertNodeType)("Identifier")}}});f("OptionalMemberExpression",{builder:["object","property","computed","optional"],visitor:["object","property"],aliases:["Expression"],fields:{object:{validate:(0,$.assertNodeType)("Expression")},property:{validate:function(){let J=(0,$.assertNodeType)("Identifier"),X=(0,$.assertNodeType)("Expression");return Object.assign(function(Q,Y,z){(Q.computed?X:J)(Q,Y,z)},{oneOfNodeTypes:["Expression","Identifier"]})}()},computed:{default:!1},optional:{validate:!process.env.BABEL_TYPES_8_BREAKING?(0,$.assertValueType)("boolean"):(0,$.chain)((0,$.assertValueType)("boolean"),(0,$.assertOptionalChainStart)())}}});f("OptionalCallExpression",{visitor:["callee","typeParameters","typeArguments","arguments"],builder:["callee","arguments","optional"],aliases:["Expression"],fields:Object.assign({callee:{validate:(0,$.assertNodeType)("Expression")},arguments:(0,$.validateArrayOfType)("Expression","SpreadElement","ArgumentPlaceholder"),optional:{validate:!process.env.BABEL_TYPES_8_BREAKING?(0,$.assertValueType)("boolean"):(0,$.chain)((0,$.assertValueType)("boolean"),(0,$.assertOptionalChainStart)())},typeArguments:{validate:(0,$.assertNodeType)("TypeParameterInstantiation"),optional:!0}},{typeParameters:{validate:(0,$.assertNodeType)("TSTypeParameterInstantiation"),optional:!0}})});f("ClassProperty",Object.assign({visitor:["decorators","variance","key","typeAnnotation","value"],builder:["key","value","typeAnnotation","decorators","computed","static"],aliases:["Property"]},GX(),{fields:Object.assign({},eX(),{value:{validate:(0,$.assertNodeType)("Expression"),optional:!0},definite:{validate:(0,$.assertValueType)("boolean"),optional:!0},typeAnnotation:{validate:(0,$.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:(0,$.arrayOfType)("Decorator"),optional:!0},readonly:{validate:(0,$.assertValueType)("boolean"),optional:!0},declare:{validate:(0,$.assertValueType)("boolean"),optional:!0},variance:{validate:(0,$.assertNodeType)("Variance"),optional:!0}})}));f("ClassAccessorProperty",Object.assign({visitor:["decorators","key","typeAnnotation","value"],builder:["key","value","typeAnnotation","decorators","computed","static"],aliases:["Property","Accessor"]},GX(!0),{fields:Object.assign({},eX(),{key:{validate:(0,$.chain)(function(){let J=(0,$.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","PrivateName"),X=(0,$.assertNodeType)("Expression");return function(Z,Q,Y){(Z.computed?X:J)(Z,Q,Y)}}(),(0,$.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","Expression","PrivateName"))},value:{validate:(0,$.assertNodeType)("Expression"),optional:!0},definite:{validate:(0,$.assertValueType)("boolean"),optional:!0},typeAnnotation:{validate:(0,$.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:(0,$.arrayOfType)("Decorator"),optional:!0},readonly:{validate:(0,$.assertValueType)("boolean"),optional:!0},declare:{validate:(0,$.assertValueType)("boolean"),optional:!0},variance:{validate:(0,$.assertNodeType)("Variance"),optional:!0}})}));f("ClassPrivateProperty",{visitor:["decorators","variance","key","typeAnnotation","value"],builder:["key","value","decorators","static"],aliases:["Property","Private"],fields:{key:{validate:(0,$.assertNodeType)("PrivateName")},value:{validate:(0,$.assertNodeType)("Expression"),optional:!0},typeAnnotation:{validate:(0,$.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:(0,$.arrayOfType)("Decorator"),optional:!0},static:{validate:(0,$.assertValueType)("boolean"),default:!1},readonly:{validate:(0,$.assertValueType)("boolean"),optional:!0},optional:{validate:(0,$.assertValueType)("boolean"),optional:!0},definite:{validate:(0,$.assertValueType)("boolean"),optional:!0},variance:{validate:(0,$.assertNodeType)("Variance"),optional:!0}}});f("ClassPrivateMethod",{builder:["kind","key","params","body","static"],visitor:["decorators","key","typeParameters","params","returnType","body"],aliases:["Function","Scopable","BlockParent","FunctionParent","Method","Private"],fields:Object.assign({},T2(),V0(),{kind:{validate:(0,$.assertOneOf)("get","set","method"),default:"method"},key:{validate:(0,$.assertNodeType)("PrivateName")},body:{validate:(0,$.assertNodeType)("BlockStatement")}})});f("PrivateName",{visitor:["id"],aliases:["Private"],fields:{id:{validate:(0,$.assertNodeType)("Identifier")}}});f("StaticBlock",{visitor:["body"],fields:{body:(0,$.validateArrayOfType)("Statement")},aliases:["Scopable","BlockParent","FunctionParent"]});f("ImportAttribute",{visitor:["key","value"],fields:{key:{validate:(0,$.assertNodeType)("Identifier","StringLiteral")},value:{validate:(0,$.assertNodeType)("StringLiteral")}}})});var I4=N(()=>{var S4=WX(),w=TJ(),r=(0,w.defineAliasedType)("Flow"),L2=(J)=>{let X=J==="DeclareClass";r(J,{builder:["id","typeParameters","extends","body"],visitor:["id","typeParameters","extends",...X?["mixins","implements"]:[],"body"],aliases:["FlowDeclaration","Statement","Declaration"],fields:Object.assign({id:(0,w.validateType)("Identifier"),typeParameters:(0,w.validateOptionalType)("TypeParameterDeclaration"),extends:(0,w.validateOptional)((0,w.arrayOfType)("InterfaceExtends"))},X?{mixins:(0,w.validateOptional)((0,w.arrayOfType)("InterfaceExtends")),implements:(0,w.validateOptional)((0,w.arrayOfType)("ClassImplements"))}:{},{body:(0,w.validateType)("ObjectTypeAnnotation")})})};r("AnyTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});r("ArrayTypeAnnotation",{visitor:["elementType"],aliases:["FlowType"],fields:{elementType:(0,w.validateType)("FlowType")}});r("BooleanTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});r("BooleanLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:(0,w.validate)((0,w.assertValueType)("boolean"))}});r("NullLiteralTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});r("ClassImplements",{visitor:["id","typeParameters"],fields:{id:(0,w.validateType)("Identifier"),typeParameters:(0,w.validateOptionalType)("TypeParameterInstantiation")}});L2("DeclareClass");r("DeclareFunction",{builder:["id"],visitor:["id","predicate"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,w.validateType)("Identifier"),predicate:(0,w.validateOptionalType)("DeclaredPredicate")}});L2("DeclareInterface");r("DeclareModule",{builder:["id","body","kind"],visitor:["id","body"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,w.validateType)("Identifier","StringLiteral"),body:(0,w.validateType)("BlockStatement"),kind:(0,w.validateOptional)((0,w.assertOneOf)("CommonJS","ES"))}});r("DeclareModuleExports",{visitor:["typeAnnotation"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{typeAnnotation:(0,w.validateType)("TypeAnnotation")}});r("DeclareTypeAlias",{visitor:["id","typeParameters","right"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,w.validateType)("Identifier"),typeParameters:(0,w.validateOptionalType)("TypeParameterDeclaration"),right:(0,w.validateType)("FlowType")}});r("DeclareOpaqueType",{visitor:["id","typeParameters","supertype"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,w.validateType)("Identifier"),typeParameters:(0,w.validateOptionalType)("TypeParameterDeclaration"),supertype:(0,w.validateOptionalType)("FlowType"),impltype:(0,w.validateOptionalType)("FlowType")}});r("DeclareVariable",{visitor:["id"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,w.validateType)("Identifier")}});r("DeclareExportDeclaration",{visitor:["declaration","specifiers","source","attributes"],aliases:["FlowDeclaration","Statement","Declaration"],fields:Object.assign({declaration:(0,w.validateOptionalType)("Flow"),specifiers:(0,w.validateOptional)((0,w.arrayOfType)("ExportSpecifier","ExportNamespaceSpecifier")),source:(0,w.validateOptionalType)("StringLiteral"),default:(0,w.validateOptional)((0,w.assertValueType)("boolean"))},S4.importAttributes)});r("DeclareExportAllDeclaration",{visitor:["source","attributes"],aliases:["FlowDeclaration","Statement","Declaration"],fields:Object.assign({source:(0,w.validateType)("StringLiteral"),exportKind:(0,w.validateOptional)((0,w.assertOneOf)("type","value"))},S4.importAttributes)});r("DeclaredPredicate",{visitor:["value"],aliases:["FlowPredicate"],fields:{value:(0,w.validateType)("Flow")}});r("ExistsTypeAnnotation",{aliases:["FlowType"]});r("FunctionTypeAnnotation",{builder:["typeParameters","params","rest","returnType"],visitor:["typeParameters","this","params","rest","returnType"],aliases:["FlowType"],fields:{typeParameters:(0,w.validateOptionalType)("TypeParameterDeclaration"),params:(0,w.validateArrayOfType)("FunctionTypeParam"),rest:(0,w.validateOptionalType)("FunctionTypeParam"),this:(0,w.validateOptionalType)("FunctionTypeParam"),returnType:(0,w.validateType)("FlowType")}});r("FunctionTypeParam",{visitor:["name","typeAnnotation"],fields:{name:(0,w.validateOptionalType)("Identifier"),typeAnnotation:(0,w.validateType)("FlowType"),optional:(0,w.validateOptional)((0,w.assertValueType)("boolean"))}});r("GenericTypeAnnotation",{visitor:["id","typeParameters"],aliases:["FlowType"],fields:{id:(0,w.validateType)("Identifier","QualifiedTypeIdentifier"),typeParameters:(0,w.validateOptionalType)("TypeParameterInstantiation")}});r("InferredPredicate",{aliases:["FlowPredicate"]});r("InterfaceExtends",{visitor:["id","typeParameters"],fields:{id:(0,w.validateType)("Identifier","QualifiedTypeIdentifier"),typeParameters:(0,w.validateOptionalType)("TypeParameterInstantiation")}});L2("InterfaceDeclaration");r("InterfaceTypeAnnotation",{visitor:["extends","body"],aliases:["FlowType"],fields:{extends:(0,w.validateOptional)((0,w.arrayOfType)("InterfaceExtends")),body:(0,w.validateType)("ObjectTypeAnnotation")}});r("IntersectionTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:(0,w.validate)((0,w.arrayOfType)("FlowType"))}});r("MixedTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});r("EmptyTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});r("NullableTypeAnnotation",{visitor:["typeAnnotation"],aliases:["FlowType"],fields:{typeAnnotation:(0,w.validateType)("FlowType")}});r("NumberLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:(0,w.validate)((0,w.assertValueType)("number"))}});r("NumberTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});r("ObjectTypeAnnotation",{visitor:["properties","indexers","callProperties","internalSlots"],aliases:["FlowType"],builder:["properties","indexers","callProperties","internalSlots","exact"],fields:{properties:(0,w.validate)((0,w.arrayOfType)("ObjectTypeProperty","ObjectTypeSpreadProperty")),indexers:{validate:(0,w.arrayOfType)("ObjectTypeIndexer"),optional:!0,default:[]},callProperties:{validate:(0,w.arrayOfType)("ObjectTypeCallProperty"),optional:!0,default:[]},internalSlots:{validate:(0,w.arrayOfType)("ObjectTypeInternalSlot"),optional:!0,default:[]},exact:{validate:(0,w.assertValueType)("boolean"),default:!1},inexact:(0,w.validateOptional)((0,w.assertValueType)("boolean"))}});r("ObjectTypeInternalSlot",{visitor:["id","value"],builder:["id","value","optional","static","method"],aliases:["UserWhitespacable"],fields:{id:(0,w.validateType)("Identifier"),value:(0,w.validateType)("FlowType"),optional:(0,w.validate)((0,w.assertValueType)("boolean")),static:(0,w.validate)((0,w.assertValueType)("boolean")),method:(0,w.validate)((0,w.assertValueType)("boolean"))}});r("ObjectTypeCallProperty",{visitor:["value"],aliases:["UserWhitespacable"],fields:{value:(0,w.validateType)("FlowType"),static:(0,w.validate)((0,w.assertValueType)("boolean"))}});r("ObjectTypeIndexer",{visitor:["variance","id","key","value"],builder:["id","key","value","variance"],aliases:["UserWhitespacable"],fields:{id:(0,w.validateOptionalType)("Identifier"),key:(0,w.validateType)("FlowType"),value:(0,w.validateType)("FlowType"),static:(0,w.validate)((0,w.assertValueType)("boolean")),variance:(0,w.validateOptionalType)("Variance")}});r("ObjectTypeProperty",{visitor:["key","value","variance"],aliases:["UserWhitespacable"],fields:{key:(0,w.validateType)("Identifier","StringLiteral"),value:(0,w.validateType)("FlowType"),kind:(0,w.validate)((0,w.assertOneOf)("init","get","set")),static:(0,w.validate)((0,w.assertValueType)("boolean")),proto:(0,w.validate)((0,w.assertValueType)("boolean")),optional:(0,w.validate)((0,w.assertValueType)("boolean")),variance:(0,w.validateOptionalType)("Variance"),method:(0,w.validate)((0,w.assertValueType)("boolean"))}});r("ObjectTypeSpreadProperty",{visitor:["argument"],aliases:["UserWhitespacable"],fields:{argument:(0,w.validateType)("FlowType")}});r("OpaqueType",{visitor:["id","typeParameters","supertype","impltype"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,w.validateType)("Identifier"),typeParameters:(0,w.validateOptionalType)("TypeParameterDeclaration"),supertype:(0,w.validateOptionalType)("FlowType"),impltype:(0,w.validateType)("FlowType")}});r("QualifiedTypeIdentifier",{visitor:["qualification","id"],builder:["id","qualification"],fields:{id:(0,w.validateType)("Identifier"),qualification:(0,w.validateType)("Identifier","QualifiedTypeIdentifier")}});r("StringLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:(0,w.validate)((0,w.assertValueType)("string"))}});r("StringTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});r("SymbolTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});r("ThisTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});r("TupleTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:(0,w.validate)((0,w.arrayOfType)("FlowType"))}});r("TypeofTypeAnnotation",{visitor:["argument"],aliases:["FlowType"],fields:{argument:(0,w.validateType)("FlowType")}});r("TypeAlias",{visitor:["id","typeParameters","right"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,w.validateType)("Identifier"),typeParameters:(0,w.validateOptionalType)("TypeParameterDeclaration"),right:(0,w.validateType)("FlowType")}});r("TypeAnnotation",{visitor:["typeAnnotation"],fields:{typeAnnotation:(0,w.validateType)("FlowType")}});r("TypeCastExpression",{visitor:["expression","typeAnnotation"],aliases:["ExpressionWrapper","Expression"],fields:{expression:(0,w.validateType)("Expression"),typeAnnotation:(0,w.validateType)("TypeAnnotation")}});r("TypeParameter",{visitor:["bound","default","variance"],fields:{name:(0,w.validate)((0,w.assertValueType)("string")),bound:(0,w.validateOptionalType)("TypeAnnotation"),default:(0,w.validateOptionalType)("FlowType"),variance:(0,w.validateOptionalType)("Variance")}});r("TypeParameterDeclaration",{visitor:["params"],fields:{params:(0,w.validate)((0,w.arrayOfType)("TypeParameter"))}});r("TypeParameterInstantiation",{visitor:["params"],fields:{params:(0,w.validate)((0,w.arrayOfType)("FlowType"))}});r("UnionTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:(0,w.validate)((0,w.arrayOfType)("FlowType"))}});r("Variance",{builder:["kind"],fields:{kind:(0,w.validate)((0,w.assertOneOf)("minus","plus"))}});r("VoidTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});r("EnumDeclaration",{aliases:["Statement","Declaration"],visitor:["id","body"],fields:{id:(0,w.validateType)("Identifier"),body:(0,w.validateType)("EnumBooleanBody","EnumNumberBody","EnumStringBody","EnumSymbolBody")}});r("EnumBooleanBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:(0,w.validate)((0,w.assertValueType)("boolean")),members:(0,w.validateArrayOfType)("EnumBooleanMember"),hasUnknownMembers:(0,w.validate)((0,w.assertValueType)("boolean"))}});r("EnumNumberBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:(0,w.validate)((0,w.assertValueType)("boolean")),members:(0,w.validateArrayOfType)("EnumNumberMember"),hasUnknownMembers:(0,w.validate)((0,w.assertValueType)("boolean"))}});r("EnumStringBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:(0,w.validate)((0,w.assertValueType)("boolean")),members:(0,w.validateArrayOfType)("EnumStringMember","EnumDefaultedMember"),hasUnknownMembers:(0,w.validate)((0,w.assertValueType)("boolean"))}});r("EnumSymbolBody",{aliases:["EnumBody"],visitor:["members"],fields:{members:(0,w.validateArrayOfType)("EnumDefaultedMember"),hasUnknownMembers:(0,w.validate)((0,w.assertValueType)("boolean"))}});r("EnumBooleanMember",{aliases:["EnumMember"],builder:["id"],visitor:["id","init"],fields:{id:(0,w.validateType)("Identifier"),init:(0,w.validateType)("BooleanLiteral")}});r("EnumNumberMember",{aliases:["EnumMember"],visitor:["id","init"],fields:{id:(0,w.validateType)("Identifier"),init:(0,w.validateType)("NumericLiteral")}});r("EnumStringMember",{aliases:["EnumMember"],visitor:["id","init"],fields:{id:(0,w.validateType)("Identifier"),init:(0,w.validateType)("StringLiteral")}});r("EnumDefaultedMember",{aliases:["EnumMember"],visitor:["id"],fields:{id:(0,w.validateType)("Identifier")}});r("IndexedAccessType",{visitor:["objectType","indexType"],aliases:["FlowType"],fields:{objectType:(0,w.validateType)("FlowType"),indexType:(0,w.validateType)("FlowType")}});r("OptionalIndexedAccessType",{visitor:["objectType","indexType"],aliases:["FlowType"],fields:{objectType:(0,w.validateType)("FlowType"),indexType:(0,w.validateType)("FlowType"),optional:(0,w.validate)((0,w.assertValueType)("boolean"))}})});var T4=N(()=>{var k1=TJ(),s1=(0,k1.defineAliasedType)("JSX");s1("JSXAttribute",{visitor:["name","value"],aliases:["Immutable"],fields:{name:{validate:(0,k1.assertNodeType)("JSXIdentifier","JSXNamespacedName")},value:{optional:!0,validate:(0,k1.assertNodeType)("JSXElement","JSXFragment","StringLiteral","JSXExpressionContainer")}}});s1("JSXClosingElement",{visitor:["name"],aliases:["Immutable"],fields:{name:{validate:(0,k1.assertNodeType)("JSXIdentifier","JSXMemberExpression","JSXNamespacedName")}}});s1("JSXElement",{builder:["openingElement","closingElement","children","selfClosing"],visitor:["openingElement","children","closingElement"],aliases:["Immutable","Expression"],fields:Object.assign({openingElement:{validate:(0,k1.assertNodeType)("JSXOpeningElement")},closingElement:{optional:!0,validate:(0,k1.assertNodeType)("JSXClosingElement")},children:(0,k1.validateArrayOfType)("JSXText","JSXExpressionContainer","JSXSpreadChild","JSXElement","JSXFragment")},{selfClosing:{validate:(0,k1.assertValueType)("boolean"),optional:!0}})});s1("JSXEmptyExpression",{});s1("JSXExpressionContainer",{visitor:["expression"],aliases:["Immutable"],fields:{expression:{validate:(0,k1.assertNodeType)("Expression","JSXEmptyExpression")}}});s1("JSXSpreadChild",{visitor:["expression"],aliases:["Immutable"],fields:{expression:{validate:(0,k1.assertNodeType)("Expression")}}});s1("JSXIdentifier",{builder:["name"],fields:{name:{validate:(0,k1.assertValueType)("string")}}});s1("JSXMemberExpression",{visitor:["object","property"],fields:{object:{validate:(0,k1.assertNodeType)("JSXMemberExpression","JSXIdentifier")},property:{validate:(0,k1.assertNodeType)("JSXIdentifier")}}});s1("JSXNamespacedName",{visitor:["namespace","name"],fields:{namespace:{validate:(0,k1.assertNodeType)("JSXIdentifier")},name:{validate:(0,k1.assertNodeType)("JSXIdentifier")}}});s1("JSXOpeningElement",{builder:["name","attributes","selfClosing"],visitor:["name","typeParameters","typeArguments","attributes"],aliases:["Immutable"],fields:Object.assign({name:{validate:(0,k1.assertNodeType)("JSXIdentifier","JSXMemberExpression","JSXNamespacedName")},selfClosing:{default:!1},attributes:(0,k1.validateArrayOfType)("JSXAttribute","JSXSpreadAttribute"),typeArguments:{validate:(0,k1.assertNodeType)("TypeParameterInstantiation"),optional:!0}},{typeParameters:{validate:(0,k1.assertNodeType)("TSTypeParameterInstantiation"),optional:!0}})});s1("JSXSpreadAttribute",{visitor:["argument"],fields:{argument:{validate:(0,k1.assertNodeType)("Expression")}}});s1("JSXText",{aliases:["Immutable"],builder:["value"],fields:{value:{validate:(0,k1.assertValueType)("string")}}});s1("JSXFragment",{builder:["openingFragment","closingFragment","children"],visitor:["openingFragment","children","closingFragment"],aliases:["Immutable","Expression"],fields:{openingFragment:{validate:(0,k1.assertNodeType)("JSXOpeningFragment")},closingFragment:{validate:(0,k1.assertNodeType)("JSXClosingFragment")},children:(0,k1.validateArrayOfType)("JSXText","JSXExpressionContainer","JSXSpreadChild","JSXElement","JSXFragment")}});s1("JSXOpeningFragment",{aliases:["Immutable"]});s1("JSXClosingFragment",{aliases:["Immutable"]})});var v2=N((L4)=>{Object.defineProperty(L4,"__esModule",{value:!0});L4.PLACEHOLDERS_FLIPPED_ALIAS=L4.PLACEHOLDERS_ALIAS=L4.PLACEHOLDERS=void 0;var gD=TJ(),_D=L4.PLACEHOLDERS=["Identifier","StringLiteral","Expression","Statement","Declaration","BlockStatement","ClassBody","Pattern"],k2=L4.PLACEHOLDERS_ALIAS={Declaration:["Statement"],Pattern:["PatternLike","LVal"]};for(let J of _D){let X=gD.ALIAS_KEYS[J];if(X!=null&&X.length)k2[J]=X}var b2=L4.PLACEHOLDERS_FLIPPED_ALIAS={};Object.keys(k2).forEach((J)=>{k2[J].forEach((X)=>{if(!hasOwnProperty.call(b2,X))b2[X]=[];b2[X].push(J)})})});var k4=N(()=>{var J9=TJ(),xD=v2(),yD=WX(),E2=(0,J9.defineAliasedType)("Miscellaneous");E2("Noop",{visitor:[]});E2("Placeholder",{visitor:[],builder:["expectedNode","name"],fields:Object.assign({name:{validate:(0,J9.assertNodeType)("Identifier")},expectedNode:{validate:(0,J9.assertOneOf)(...xD.PLACEHOLDERS)}},(0,yD.patternLikeCommon)())});E2("V8IntrinsicIdentifier",{builder:["name"],fields:{name:{validate:(0,J9.assertValueType)("string")}}})});var v4=N(()=>{var I1=TJ();(0,I1.default)("ArgumentPlaceholder",{});(0,I1.default)("BindExpression",{visitor:["object","callee"],aliases:["Expression"],fields:!process.env.BABEL_TYPES_8_BREAKING?{object:{validate:Object.assign(()=>{},{oneOfNodeTypes:["Expression"]})},callee:{validate:Object.assign(()=>{},{oneOfNodeTypes:["Expression"]})}}:{object:{validate:(0,I1.assertNodeType)("Expression")},callee:{validate:(0,I1.assertNodeType)("Expression")}}});(0,I1.default)("Decorator",{visitor:["expression"],fields:{expression:{validate:(0,I1.assertNodeType)("Expression")}}});(0,I1.default)("DoExpression",{visitor:["body"],builder:["body","async"],aliases:["Expression"],fields:{body:{validate:(0,I1.assertNodeType)("BlockStatement")},async:{validate:(0,I1.assertValueType)("boolean"),default:!1}}});(0,I1.default)("ExportDefaultSpecifier",{visitor:["exported"],aliases:["ModuleSpecifier"],fields:{exported:{validate:(0,I1.assertNodeType)("Identifier")}}});(0,I1.default)("RecordExpression",{visitor:["properties"],aliases:["Expression"],fields:{properties:(0,I1.validateArrayOfType)("ObjectProperty","SpreadElement")}});(0,I1.default)("TupleExpression",{fields:{elements:{validate:(0,I1.arrayOfType)("Expression","SpreadElement"),default:[]}},visitor:["elements"],aliases:["Expression"]});(0,I1.default)("DecimalLiteral",{builder:["value"],fields:{value:{validate:(0,I1.assertValueType)("string")}},aliases:["Expression","Pureish","Literal","Immutable"]});(0,I1.default)("ModuleExpression",{visitor:["body"],fields:{body:{validate:(0,I1.assertNodeType)("Program")}},aliases:["Expression"]});(0,I1.default)("TopicReference",{aliases:["Expression"]});(0,I1.default)("PipelineTopicExpression",{builder:["expression"],visitor:["expression"],fields:{expression:{validate:(0,I1.assertNodeType)("Expression")}},aliases:["Expression"]});(0,I1.default)("PipelineBareFunction",{builder:["callee"],visitor:["callee"],fields:{callee:{validate:(0,I1.assertNodeType)("Expression")}},aliases:["Expression"]});(0,I1.default)("PipelinePrimaryTopicReference",{aliases:["Expression"]});(0,I1.default)("VoidPattern",{aliases:["Pattern","PatternLike","FunctionParameter"]})});var y4=N(()=>{var I=TJ(),g2=WX(),uD=b0(),n=(0,I.defineAliasedType)("TypeScript"),QJ=(0,I.assertValueType)("boolean"),E4=()=>({returnType:{validate:(0,I.assertNodeType)("TSTypeAnnotation","Noop"),optional:!0},typeParameters:{validate:(0,I.assertNodeType)("TSTypeParameterDeclaration","Noop"),optional:!0}});n("TSParameterProperty",{aliases:["LVal"],visitor:["parameter"],fields:{accessibility:{validate:(0,I.assertOneOf)("public","private","protected"),optional:!0},readonly:{validate:(0,I.assertValueType)("boolean"),optional:!0},parameter:{validate:(0,I.assertNodeType)("Identifier","AssignmentPattern")},override:{validate:(0,I.assertValueType)("boolean"),optional:!0},decorators:{validate:(0,I.arrayOfType)("Decorator"),optional:!0}}});n("TSDeclareFunction",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","params","returnType"],fields:Object.assign({},(0,g2.functionDeclarationCommon)(),E4())});n("TSDeclareMethod",Object.assign({visitor:["decorators","key","typeParameters","params","returnType"]},(0,g2.classMethodOrPropertyUnionShapeCommon)(),{fields:Object.assign({},(0,g2.classMethodOrDeclareMethodCommon)(),E4())}));n("TSQualifiedName",{aliases:["TSEntityName"],visitor:["left","right"],fields:{left:(0,I.validateType)("TSEntityName"),right:(0,I.validateType)("Identifier")}});var X9=()=>({typeParameters:(0,I.validateOptionalType)("TSTypeParameterDeclaration"),["parameters"]:(0,I.validateArrayOfType)("ArrayPattern","Identifier","ObjectPattern","RestElement"),["typeAnnotation"]:(0,I.validateOptionalType)("TSTypeAnnotation")}),g4={aliases:["TSTypeElement"],visitor:["typeParameters","parameters","typeAnnotation"],fields:X9()};n("TSCallSignatureDeclaration",g4);n("TSConstructSignatureDeclaration",g4);var _4=()=>({key:(0,I.validateType)("Expression"),computed:{default:!1},optional:(0,I.validateOptional)(QJ)});n("TSPropertySignature",{aliases:["TSTypeElement"],visitor:["key","typeAnnotation"],fields:Object.assign({},_4(),{readonly:(0,I.validateOptional)(QJ),typeAnnotation:(0,I.validateOptionalType)("TSTypeAnnotation"),kind:{optional:!0,validate:(0,I.assertOneOf)("get","set")}})});n("TSMethodSignature",{aliases:["TSTypeElement"],visitor:["key","typeParameters","parameters","typeAnnotation"],fields:Object.assign({},X9(),_4(),{kind:{validate:(0,I.assertOneOf)("method","get","set")}})});n("TSIndexSignature",{aliases:["TSTypeElement"],visitor:["parameters","typeAnnotation"],fields:{readonly:(0,I.validateOptional)(QJ),static:(0,I.validateOptional)(QJ),parameters:(0,I.validateArrayOfType)("Identifier"),typeAnnotation:(0,I.validateOptionalType)("TSTypeAnnotation")}});var mD=["TSAnyKeyword","TSBooleanKeyword","TSBigIntKeyword","TSIntrinsicKeyword","TSNeverKeyword","TSNullKeyword","TSNumberKeyword","TSObjectKeyword","TSStringKeyword","TSSymbolKeyword","TSUndefinedKeyword","TSUnknownKeyword","TSVoidKeyword"];for(let J of mD)n(J,{aliases:["TSType","TSBaseType"],visitor:[],fields:{}});n("TSThisType",{aliases:["TSType","TSBaseType"],visitor:[],fields:{}});var f4={aliases:["TSType"],visitor:["typeParameters","parameters","typeAnnotation"]};n("TSFunctionType",Object.assign({},f4,{fields:X9()}));n("TSConstructorType",Object.assign({},f4,{fields:Object.assign({},X9(),{abstract:(0,I.validateOptional)(QJ)})}));n("TSTypeReference",{aliases:["TSType"],visitor:["typeName","typeParameters"],fields:{typeName:(0,I.validateType)("TSEntityName"),["typeParameters"]:(0,I.validateOptionalType)("TSTypeParameterInstantiation")}});n("TSTypePredicate",{aliases:["TSType"],visitor:["parameterName","typeAnnotation"],builder:["parameterName","typeAnnotation","asserts"],fields:{parameterName:(0,I.validateType)("Identifier","TSThisType"),typeAnnotation:(0,I.validateOptionalType)("TSTypeAnnotation"),asserts:(0,I.validateOptional)(QJ)}});n("TSTypeQuery",{aliases:["TSType"],visitor:["exprName","typeParameters"],fields:{exprName:(0,I.validateType)("TSEntityName","TSImportType"),["typeParameters"]:(0,I.validateOptionalType)("TSTypeParameterInstantiation")}});n("TSTypeLiteral",{aliases:["TSType"],visitor:["members"],fields:{members:(0,I.validateArrayOfType)("TSTypeElement")}});n("TSArrayType",{aliases:["TSType"],visitor:["elementType"],fields:{elementType:(0,I.validateType)("TSType")}});n("TSTupleType",{aliases:["TSType"],visitor:["elementTypes"],fields:{elementTypes:(0,I.validateArrayOfType)("TSType","TSNamedTupleMember")}});n("TSOptionalType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:(0,I.validateType)("TSType")}});n("TSRestType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:(0,I.validateType)("TSType")}});n("TSNamedTupleMember",{visitor:["label","elementType"],builder:["label","elementType","optional"],fields:{label:(0,I.validateType)("Identifier"),optional:{validate:QJ,default:!1},elementType:(0,I.validateType)("TSType")}});var h4={aliases:["TSType"],visitor:["types"],fields:{types:(0,I.validateArrayOfType)("TSType")}};n("TSUnionType",h4);n("TSIntersectionType",h4);n("TSConditionalType",{aliases:["TSType"],visitor:["checkType","extendsType","trueType","falseType"],fields:{checkType:(0,I.validateType)("TSType"),extendsType:(0,I.validateType)("TSType"),trueType:(0,I.validateType)("TSType"),falseType:(0,I.validateType)("TSType")}});n("TSInferType",{aliases:["TSType"],visitor:["typeParameter"],fields:{typeParameter:(0,I.validateType)("TSTypeParameter")}});n("TSParenthesizedType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:(0,I.validateType)("TSType")}});n("TSTypeOperator",{aliases:["TSType"],visitor:["typeAnnotation"],builder:["typeAnnotation","operator"],fields:{operator:{validate:(0,I.assertValueType)("string"),default:"keyof"},typeAnnotation:(0,I.validateType)("TSType")}});n("TSIndexedAccessType",{aliases:["TSType"],visitor:["objectType","indexType"],fields:{objectType:(0,I.validateType)("TSType"),indexType:(0,I.validateType)("TSType")}});n("TSMappedType",{aliases:["TSType"],visitor:["typeParameter","nameType","typeAnnotation"],builder:["typeParameter","typeAnnotation","nameType"],fields:Object.assign({},{typeParameter:(0,I.validateType)("TSTypeParameter")},{readonly:(0,I.validateOptional)((0,I.assertOneOf)(!0,!1,"+","-")),optional:(0,I.validateOptional)((0,I.assertOneOf)(!0,!1,"+","-")),typeAnnotation:(0,I.validateOptionalType)("TSType"),nameType:(0,I.validateOptionalType)("TSType")})});n("TSTemplateLiteralType",{aliases:["TSType","TSBaseType"],visitor:["quasis","types"],fields:{quasis:(0,I.validateArrayOfType)("TemplateElement"),types:{validate:(0,I.chain)((0,I.assertValueType)("array"),(0,I.assertEach)((0,I.assertNodeType)("TSType")),function(J,X,Z){if(J.quasis.length!==Z.length+1)throw TypeError(`Number of ${J.type} quasis should be exactly one more than the number of types.
|
|
12
|
+
Expected ${Z.length+1} quasis but got ${J.quasis.length}`)})}}});n("TSLiteralType",{aliases:["TSType","TSBaseType"],visitor:["literal"],fields:{literal:{validate:function(){let J=(0,I.assertNodeType)("NumericLiteral","BigIntLiteral"),X=(0,I.assertOneOf)("-"),Z=(0,I.assertNodeType)("NumericLiteral","StringLiteral","BooleanLiteral","BigIntLiteral","TemplateLiteral"),Q=function(z,H,G){if((0,uD.default)("UnaryExpression",G))X(G,"operator",G.operator),J(G,"argument",G.argument);else Z(z,H,G)};return Q.oneOfNodeTypes=["NumericLiteral","StringLiteral","BooleanLiteral","BigIntLiteral","TemplateLiteral","UnaryExpression"],Q}()}}});n("TSExpressionWithTypeArguments",{aliases:["TSType"],visitor:["expression","typeParameters"],fields:{expression:(0,I.validateType)("TSEntityName"),typeParameters:(0,I.validateOptionalType)("TSTypeParameterInstantiation")}});n("TSInterfaceDeclaration",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","extends","body"],fields:{declare:(0,I.validateOptional)(QJ),id:(0,I.validateType)("Identifier"),typeParameters:(0,I.validateOptionalType)("TSTypeParameterDeclaration"),extends:(0,I.validateOptional)((0,I.arrayOfType)("TSExpressionWithTypeArguments")),body:(0,I.validateType)("TSInterfaceBody")}});n("TSInterfaceBody",{visitor:["body"],fields:{body:(0,I.validateArrayOfType)("TSTypeElement")}});n("TSTypeAliasDeclaration",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","typeAnnotation"],fields:{declare:(0,I.validateOptional)(QJ),id:(0,I.validateType)("Identifier"),typeParameters:(0,I.validateOptionalType)("TSTypeParameterDeclaration"),typeAnnotation:(0,I.validateType)("TSType")}});n("TSInstantiationExpression",{aliases:["Expression"],visitor:["expression","typeParameters"],fields:{expression:(0,I.validateType)("Expression"),["typeParameters"]:(0,I.validateOptionalType)("TSTypeParameterInstantiation")}});var x4={aliases:["Expression","LVal","PatternLike"],visitor:["expression","typeAnnotation"],fields:{expression:(0,I.validateType)("Expression"),typeAnnotation:(0,I.validateType)("TSType")}};n("TSAsExpression",x4);n("TSSatisfiesExpression",x4);n("TSTypeAssertion",{aliases:["Expression","LVal","PatternLike"],visitor:["typeAnnotation","expression"],fields:{typeAnnotation:(0,I.validateType)("TSType"),expression:(0,I.validateType)("Expression")}});n("TSEnumBody",{visitor:["members"],fields:{members:(0,I.validateArrayOfType)("TSEnumMember")}});n("TSEnumDeclaration",{aliases:["Statement","Declaration"],visitor:["id","members"],fields:{declare:(0,I.validateOptional)(QJ),const:(0,I.validateOptional)(QJ),id:(0,I.validateType)("Identifier"),members:(0,I.validateArrayOfType)("TSEnumMember"),initializer:(0,I.validateOptionalType)("Expression"),body:(0,I.validateOptionalType)("TSEnumBody")}});n("TSEnumMember",{visitor:["id","initializer"],fields:{id:(0,I.validateType)("Identifier","StringLiteral"),initializer:(0,I.validateOptionalType)("Expression")}});n("TSModuleDeclaration",{aliases:["Statement","Declaration"],visitor:["id","body"],fields:Object.assign({kind:{validate:(0,I.assertOneOf)("global","module","namespace")},declare:(0,I.validateOptional)(QJ)},{global:(0,I.validateOptional)(QJ)},{id:(0,I.validateType)("Identifier","StringLiteral"),body:(0,I.validateType)("TSModuleBlock","TSModuleDeclaration")})});n("TSModuleBlock",{aliases:["Scopable","Block","BlockParent","FunctionParent"],visitor:["body"],fields:{body:(0,I.validateArrayOfType)("Statement")}});n("TSImportType",{aliases:["TSType"],builder:["argument","qualifier","typeParameters"],visitor:["argument","options","qualifier","typeParameters"],fields:Object.assign({},{argument:(0,I.validateType)("StringLiteral")},{qualifier:(0,I.validateOptionalType)("TSEntityName")},{typeParameters:(0,I.validateOptionalType)("TSTypeParameterInstantiation")},{options:{validate:(0,I.assertNodeType)("ObjectExpression"),optional:!0}})});n("TSImportEqualsDeclaration",{aliases:["Statement","Declaration"],visitor:["id","moduleReference"],fields:Object.assign({},{isExport:(0,I.validate)(QJ)},{id:(0,I.validateType)("Identifier"),moduleReference:(0,I.validateType)("TSEntityName","TSExternalModuleReference"),importKind:{validate:(0,I.assertOneOf)("type","value"),optional:!0}})});n("TSExternalModuleReference",{visitor:["expression"],fields:{expression:(0,I.validateType)("StringLiteral")}});n("TSNonNullExpression",{aliases:["Expression","LVal","PatternLike"],visitor:["expression"],fields:{expression:(0,I.validateType)("Expression")}});n("TSExportAssignment",{aliases:["Statement"],visitor:["expression"],fields:{expression:(0,I.validateType)("Expression")}});n("TSNamespaceExportDeclaration",{aliases:["Statement"],visitor:["id"],fields:{id:(0,I.validateType)("Identifier")}});n("TSTypeAnnotation",{visitor:["typeAnnotation"],fields:{typeAnnotation:{validate:(0,I.assertNodeType)("TSType")}}});n("TSTypeParameterInstantiation",{visitor:["params"],fields:{params:(0,I.validateArrayOfType)("TSType")}});n("TSTypeParameterDeclaration",{visitor:["params"],fields:{params:(0,I.validateArrayOfType)("TSTypeParameter")}});n("TSTypeParameter",{builder:["constraint","default","name"],visitor:["constraint","default"],fields:{name:{validate:(0,I.assertValueType)("string")},in:{validate:(0,I.assertValueType)("boolean"),optional:!0},out:{validate:(0,I.assertValueType)("boolean"),optional:!0},const:{validate:(0,I.assertValueType)("boolean"),optional:!0},constraint:{validate:(0,I.assertNodeType)("TSType"),optional:!0},default:{validate:(0,I.assertNodeType)("TSType"),optional:!0}}})});var c4=N((u4)=>{Object.defineProperty(u4,"__esModule",{value:!0});u4.DEPRECATED_ALIASES=void 0;var gF1=u4.DEPRECATED_ALIASES={ModuleDeclaration:"ImportOrExportDeclaration"}});var BJ=N((YJ)=>{Object.defineProperty(YJ,"__esModule",{value:!0});Object.defineProperty(YJ,"ALIAS_KEYS",{enumerable:!0,get:function(){return t1.ALIAS_KEYS}});Object.defineProperty(YJ,"BUILDER_KEYS",{enumerable:!0,get:function(){return t1.BUILDER_KEYS}});Object.defineProperty(YJ,"DEPRECATED_ALIASES",{enumerable:!0,get:function(){return _2.DEPRECATED_ALIASES}});Object.defineProperty(YJ,"DEPRECATED_KEYS",{enumerable:!0,get:function(){return t1.DEPRECATED_KEYS}});Object.defineProperty(YJ,"FLIPPED_ALIAS_KEYS",{enumerable:!0,get:function(){return t1.FLIPPED_ALIAS_KEYS}});Object.defineProperty(YJ,"NODE_FIELDS",{enumerable:!0,get:function(){return t1.NODE_FIELDS}});Object.defineProperty(YJ,"NODE_PARENT_VALIDATIONS",{enumerable:!0,get:function(){return t1.NODE_PARENT_VALIDATIONS}});Object.defineProperty(YJ,"NODE_UNION_SHAPES__PRIVATE",{enumerable:!0,get:function(){return t1.NODE_UNION_SHAPES__PRIVATE}});Object.defineProperty(YJ,"PLACEHOLDERS",{enumerable:!0,get:function(){return f2.PLACEHOLDERS}});Object.defineProperty(YJ,"PLACEHOLDERS_ALIAS",{enumerable:!0,get:function(){return f2.PLACEHOLDERS_ALIAS}});Object.defineProperty(YJ,"PLACEHOLDERS_FLIPPED_ALIAS",{enumerable:!0,get:function(){return f2.PLACEHOLDERS_FLIPPED_ALIAS}});YJ.TYPES=void 0;Object.defineProperty(YJ,"VISITOR_KEYS",{enumerable:!0,get:function(){return t1.VISITOR_KEYS}});WX();I4();T4();k4();v4();y4();var t1=TJ(),f2=v2(),_2=c4();Object.keys(_2.DEPRECATED_ALIASES).forEach((J)=>{t1.FLIPPED_ALIAS_KEYS[J]=t1.FLIPPED_ALIAS_KEYS[_2.DEPRECATED_ALIASES[J]]});for(let{types:J,set:X}of t1.allExpandedTypes)for(let Z of J){let Q=t1.FLIPPED_ALIAS_KEYS[Z];if(Q)Q.forEach(X.add,X);else X.add(Z)}var fF1=YJ.TYPES=[].concat(Object.keys(t1.VISITOR_KEYS),Object.keys(t1.FLIPPED_ALIAS_KEYS),Object.keys(t1.DEPRECATED_KEYS))});var nX=N((r4)=>{Object.defineProperty(r4,"__esModule",{value:!0});r4.default=cD;r4.validateChild=p4;r4.validateField=i4;r4.validateInternal=lD;var VX=BJ();function cD(J,X,Z){if(!J)return;let Q=VX.NODE_FIELDS[J.type];if(!Q)return;let Y=Q[X];i4(J,X,Z,Y),p4(J,X,Z)}function lD(J,X,Z,Q,Y){if(!(J!=null&&J.validate))return;if(J.optional&&Q==null)return;if(J.validate(X,Z,Q),Y){var z;let H=Q.type;if(H==null)return;(z=VX.NODE_PARENT_VALIDATIONS[H])==null||z.call(VX.NODE_PARENT_VALIDATIONS,X,Z,Q)}}function i4(J,X,Z,Q){if(!(Q!=null&&Q.validate))return;if(Q.optional&&Z==null)return;Q.validate(J,X,Z)}function p4(J,X,Z){var Q;let Y=Z==null?void 0:Z.type;if(Y==null)return;(Q=VX.NODE_PARENT_VALIDATIONS[Y])==null||Q.call(VX.NODE_PARENT_VALIDATIONS,J,X,Z)}});var h2=N((n4)=>{Object.defineProperty(n4,"__esModule",{value:!0});n4.anyTypeAnnotation=Iw;n4.argumentPlaceholder=ZS;n4.arrayExpression=nD;n4.arrayPattern=rN;n4.arrayTypeAnnotation=Tw;n4.arrowFunctionExpression=dN;n4.assignmentExpression=oD;n4.assignmentPattern=pN;n4.awaitExpression=qw;n4.bigIntLiteral=tD;n4.binaryExpression=eD;n4.bindExpression=QS;n4.blockStatement=QN;n4.booleanLiteral=NN;n4.booleanLiteralTypeAnnotation=bw;n4.booleanTypeAnnotation=Lw;n4.breakStatement=YN;n4.callExpression=zN;n4.catchClause=HN;n4.classAccessorProperty=Cw;n4.classBody=aN;n4.classDeclaration=tN;n4.classExpression=sN;n4.classImplements=vw;n4.classMethod=Ww;n4.classPrivateMethod=Nw;n4.classPrivateProperty=Dw;n4.classProperty=Aw;n4.conditionalExpression=GN;n4.continueStatement=WN;n4.debuggerStatement=VN;n4.decimalLiteral=VS;n4.declareClass=Ew;n4.declareExportAllDeclaration=cw;n4.declareExportDeclaration=mw;n4.declareFunction=gw;n4.declareInterface=_w;n4.declareModule=fw;n4.declareModuleExports=hw;n4.declareOpaqueType=yw;n4.declareTypeAlias=xw;n4.declareVariable=uw;n4.declaredPredicate=lw;n4.decorator=YS;n4.directive=XN;n4.directiveLiteral=ZN;n4.doExpression=zS;n4.doWhileStatement=KN;n4.emptyStatement=UN;n4.emptyTypeAnnotation=JP;n4.enumBooleanBody=TP;n4.enumBooleanMember=vP;n4.enumDeclaration=IP;n4.enumDefaultedMember=_P;n4.enumNumberBody=LP;n4.enumNumberMember=EP;n4.enumStringBody=bP;n4.enumStringMember=gP;n4.enumSymbolBody=kP;n4.existsTypeAnnotation=iw;n4.exportAllDeclaration=nN;n4.exportDefaultDeclaration=oN;n4.exportDefaultSpecifier=HS;n4.exportNamedDeclaration=eN;n4.exportNamespaceSpecifier=jw;n4.exportSpecifier=Jw;n4.expressionStatement=BN;n4.file=RN;n4.forInStatement=$N;n4.forOfStatement=Xw;n4.forStatement=qN;n4.functionDeclaration=FN;n4.functionExpression=jN;n4.functionTypeAnnotation=pw;n4.functionTypeParam=rw;n4.genericTypeAnnotation=dw;n4.identifier=MN;n4.ifStatement=ON;n4.import=Fw;n4.importAttribute=Sw;n4.importDeclaration=Zw;n4.importDefaultSpecifier=Qw;n4.importExpression=Hw;n4.importNamespaceSpecifier=Yw;n4.importSpecifier=zw;n4.indexedAccessType=fP;n4.inferredPredicate=aw;n4.interfaceDeclaration=tw;n4.interfaceExtends=sw;n4.interfaceTypeAnnotation=nw;n4.interpreterDirective=JN;n4.intersectionTypeAnnotation=ow;n4.jSXAttribute=n4.jsxAttribute=xP;n4.jSXClosingElement=n4.jsxClosingElement=yP;n4.jSXClosingFragment=n4.jsxClosingFragment=oP;n4.jSXElement=n4.jsxElement=uP;n4.jSXEmptyExpression=n4.jsxEmptyExpression=mP;n4.jSXExpressionContainer=n4.jsxExpressionContainer=cP;n4.jSXFragment=n4.jsxFragment=tP;n4.jSXIdentifier=n4.jsxIdentifier=iP;n4.jSXMemberExpression=n4.jsxMemberExpression=pP;n4.jSXNamespacedName=n4.jsxNamespacedName=rP;n4.jSXOpeningElement=n4.jsxOpeningElement=dP;n4.jSXOpeningFragment=n4.jsxOpeningFragment=nP;n4.jSXSpreadAttribute=n4.jsxSpreadAttribute=aP;n4.jSXSpreadChild=n4.jsxSpreadChild=lP;n4.jSXText=n4.jsxText=sP;n4.labeledStatement=AN;n4.logicalExpression=wN;n4.memberExpression=PN;n4.metaProperty=Gw;n4.mixedTypeAnnotation=ew;n4.moduleExpression=KS;n4.newExpression=SN;n4.noop=eP;n4.nullLiteral=DN;n4.nullLiteralTypeAnnotation=kw;n4.nullableTypeAnnotation=XP;n4.numberLiteral=LI;n4.numberLiteralTypeAnnotation=ZP;n4.numberTypeAnnotation=QP;n4.numericLiteral=d4;n4.objectExpression=TN;n4.objectMethod=LN;n4.objectPattern=Vw;n4.objectProperty=bN;n4.objectTypeAnnotation=YP;n4.objectTypeCallProperty=HP;n4.objectTypeIndexer=GP;n4.objectTypeInternalSlot=zP;n4.objectTypeProperty=WP;n4.objectTypeSpreadProperty=VP;n4.opaqueType=KP;n4.optionalCallExpression=Ow;n4.optionalIndexedAccessType=hP;n4.optionalMemberExpression=Mw;n4.parenthesizedExpression=EN;n4.pipelineBareFunction=RS;n4.pipelinePrimaryTopicReference=$S;n4.pipelineTopicExpression=BS;n4.placeholder=JS;n4.privateName=ww;n4.program=IN;n4.qualifiedTypeIdentifier=UP;n4.recordExpression=GS;n4.regExpLiteral=a4;n4.regexLiteral=bI;n4.restElement=s4;n4.restProperty=kI;n4.returnStatement=kN;n4.sequenceExpression=vN;n4.spreadElement=t4;n4.spreadProperty=vI;n4.staticBlock=Pw;n4.stringLiteral=CN;n4.stringLiteralTypeAnnotation=BP;n4.stringTypeAnnotation=RP;n4.super=Kw;n4.switchCase=gN;n4.switchStatement=_N;n4.symbolTypeAnnotation=$P;n4.taggedTemplateExpression=Uw;n4.templateElement=Bw;n4.templateLiteral=Rw;n4.thisExpression=fN;n4.thisTypeAnnotation=qP;n4.throwStatement=hN;n4.topicReference=US;n4.tryStatement=xN;n4.tSAnyKeyword=n4.tsAnyKeyword=PS;n4.tSArrayType=n4.tsArrayType=pS;n4.tSAsExpression=n4.tsAsExpression=UI;n4.tSBigIntKeyword=n4.tsBigIntKeyword=IS;n4.tSBooleanKeyword=n4.tsBooleanKeyword=SS;n4.tSCallSignatureDeclaration=n4.tsCallSignatureDeclaration=AS;n4.tSConditionalType=n4.tsConditionalType=oS;n4.tSConstructSignatureDeclaration=n4.tsConstructSignatureDeclaration=CS;n4.tSConstructorType=n4.tsConstructorType=uS;n4.tSDeclareFunction=n4.tsDeclareFunction=jS;n4.tSDeclareMethod=n4.tsDeclareMethod=MS;n4.tSEnumBody=n4.tsEnumBody=$I;n4.tSEnumDeclaration=n4.tsEnumDeclaration=qI;n4.tSEnumMember=n4.tsEnumMember=FI;n4.tSExportAssignment=n4.tsExportAssignment=NI;n4.tSExpressionWithTypeArguments=n4.tsExpressionWithTypeArguments=HI;n4.tSExternalModuleReference=n4.tsExternalModuleReference=CI;n4.tSFunctionType=n4.tsFunctionType=yS;n4.tSImportEqualsDeclaration=n4.tsImportEqualsDeclaration=AI;n4.tSImportType=n4.tsImportType=OI;n4.tSIndexSignature=n4.tsIndexSignature=wS;n4.tSIndexedAccessType=n4.tsIndexedAccessType=ZI;n4.tSInferType=n4.tsInferType=eS;n4.tSInstantiationExpression=n4.tsInstantiationExpression=KI;n4.tSInterfaceBody=n4.tsInterfaceBody=WI;n4.tSInterfaceDeclaration=n4.tsInterfaceDeclaration=GI;n4.tSIntersectionType=n4.tsIntersectionType=nS;n4.tSIntrinsicKeyword=n4.tsIntrinsicKeyword=TS;n4.tSLiteralType=n4.tsLiteralType=zI;n4.tSMappedType=n4.tsMappedType=QI;n4.tSMethodSignature=n4.tsMethodSignature=NS;n4.tSModuleBlock=n4.tsModuleBlock=MI;n4.tSModuleDeclaration=n4.tsModuleDeclaration=jI;n4.tSNamedTupleMember=n4.tsNamedTupleMember=sS;n4.tSNamespaceExportDeclaration=n4.tsNamespaceExportDeclaration=wI;n4.tSNeverKeyword=n4.tsNeverKeyword=LS;n4.tSNonNullExpression=n4.tsNonNullExpression=DI;n4.tSNullKeyword=n4.tsNullKeyword=bS;n4.tSNumberKeyword=n4.tsNumberKeyword=kS;n4.tSObjectKeyword=n4.tsObjectKeyword=vS;n4.tSOptionalType=n4.tsOptionalType=dS;n4.tSParameterProperty=n4.tsParameterProperty=FS;n4.tSParenthesizedType=n4.tsParenthesizedType=JI;n4.tSPropertySignature=n4.tsPropertySignature=DS;n4.tSQualifiedName=n4.tsQualifiedName=OS;n4.tSRestType=n4.tsRestType=aS;n4.tSSatisfiesExpression=n4.tsSatisfiesExpression=BI;n4.tSStringKeyword=n4.tsStringKeyword=ES;n4.tSSymbolKeyword=n4.tsSymbolKeyword=gS;n4.tSTemplateLiteralType=n4.tsTemplateLiteralType=YI;n4.tSThisType=n4.tsThisType=xS;n4.tSTupleType=n4.tsTupleType=rS;n4.tSTypeAliasDeclaration=n4.tsTypeAliasDeclaration=VI;n4.tSTypeAnnotation=n4.tsTypeAnnotation=PI;n4.tSTypeAssertion=n4.tsTypeAssertion=RI;n4.tSTypeLiteral=n4.tsTypeLiteral=iS;n4.tSTypeOperator=n4.tsTypeOperator=XI;n4.tSTypeParameter=n4.tsTypeParameter=TI;n4.tSTypeParameterDeclaration=n4.tsTypeParameterDeclaration=II;n4.tSTypeParameterInstantiation=n4.tsTypeParameterInstantiation=SI;n4.tSTypePredicate=n4.tsTypePredicate=cS;n4.tSTypeQuery=n4.tsTypeQuery=lS;n4.tSTypeReference=n4.tsTypeReference=mS;n4.tSUndefinedKeyword=n4.tsUndefinedKeyword=_S;n4.tSUnionType=n4.tsUnionType=tS;n4.tSUnknownKeyword=n4.tsUnknownKeyword=fS;n4.tSVoidKeyword=n4.tsVoidKeyword=hS;n4.tupleExpression=WS;n4.tupleTypeAnnotation=FP;n4.typeAlias=MP;n4.typeAnnotation=OP;n4.typeCastExpression=AP;n4.typeParameter=CP;n4.typeParameterDeclaration=DP;n4.typeParameterInstantiation=NP;n4.typeofTypeAnnotation=jP;n4.unaryExpression=yN;n4.unionTypeAnnotation=wP;n4.updateExpression=uN;n4.v8IntrinsicIdentifier=XS;n4.variableDeclaration=mN;n4.variableDeclarator=cN;n4.variance=PP;n4.voidPattern=qS;n4.voidTypeAnnotation=SP;n4.whileStatement=lN;n4.withStatement=iN;n4.yieldExpression=$w;var aD=nX(),Z9=L0(),sD=TJ(),{validateInternal:K}=aD,{NODE_FIELDS:M}=sD;function tD(J){if(typeof J==="bigint")J=J.toString();let X={type:"BigIntLiteral",value:J},Z=M.BigIntLiteral;return K(Z.value,X,"value",J),X}function nD(J=[]){let X={type:"ArrayExpression",elements:J},Z=M.ArrayExpression;return K(Z.elements,X,"elements",J,1),X}function oD(J,X,Z){let Q={type:"AssignmentExpression",operator:J,left:X,right:Z},Y=M.AssignmentExpression;return K(Y.operator,Q,"operator",J),K(Y.left,Q,"left",X,1),K(Y.right,Q,"right",Z,1),Q}function eD(J,X,Z){let Q={type:"BinaryExpression",operator:J,left:X,right:Z},Y=M.BinaryExpression;return K(Y.operator,Q,"operator",J),K(Y.left,Q,"left",X,1),K(Y.right,Q,"right",Z,1),Q}function JN(J){let X={type:"InterpreterDirective",value:J},Z=M.InterpreterDirective;return K(Z.value,X,"value",J),X}function XN(J){let X={type:"Directive",value:J},Z=M.Directive;return K(Z.value,X,"value",J,1),X}function ZN(J){let X={type:"DirectiveLiteral",value:J},Z=M.DirectiveLiteral;return K(Z.value,X,"value",J),X}function QN(J,X=[]){let Z={type:"BlockStatement",body:J,directives:X},Q=M.BlockStatement;return K(Q.body,Z,"body",J,1),K(Q.directives,Z,"directives",X,1),Z}function YN(J=null){let X={type:"BreakStatement",label:J},Z=M.BreakStatement;return K(Z.label,X,"label",J,1),X}function zN(J,X){let Z={type:"CallExpression",callee:J,arguments:X},Q=M.CallExpression;return K(Q.callee,Z,"callee",J,1),K(Q.arguments,Z,"arguments",X,1),Z}function HN(J=null,X){let Z={type:"CatchClause",param:J,body:X},Q=M.CatchClause;return K(Q.param,Z,"param",J,1),K(Q.body,Z,"body",X,1),Z}function GN(J,X,Z){let Q={type:"ConditionalExpression",test:J,consequent:X,alternate:Z},Y=M.ConditionalExpression;return K(Y.test,Q,"test",J,1),K(Y.consequent,Q,"consequent",X,1),K(Y.alternate,Q,"alternate",Z,1),Q}function WN(J=null){let X={type:"ContinueStatement",label:J},Z=M.ContinueStatement;return K(Z.label,X,"label",J,1),X}function VN(){return{type:"DebuggerStatement"}}function KN(J,X){let Z={type:"DoWhileStatement",test:J,body:X},Q=M.DoWhileStatement;return K(Q.test,Z,"test",J,1),K(Q.body,Z,"body",X,1),Z}function UN(){return{type:"EmptyStatement"}}function BN(J){let X={type:"ExpressionStatement",expression:J},Z=M.ExpressionStatement;return K(Z.expression,X,"expression",J,1),X}function RN(J,X=null,Z=null){let Q={type:"File",program:J,comments:X,tokens:Z},Y=M.File;return K(Y.program,Q,"program",J,1),K(Y.comments,Q,"comments",X,1),K(Y.tokens,Q,"tokens",Z),Q}function $N(J,X,Z){let Q={type:"ForInStatement",left:J,right:X,body:Z},Y=M.ForInStatement;return K(Y.left,Q,"left",J,1),K(Y.right,Q,"right",X,1),K(Y.body,Q,"body",Z,1),Q}function qN(J=null,X=null,Z=null,Q){let Y={type:"ForStatement",init:J,test:X,update:Z,body:Q},z=M.ForStatement;return K(z.init,Y,"init",J,1),K(z.test,Y,"test",X,1),K(z.update,Y,"update",Z,1),K(z.body,Y,"body",Q,1),Y}function FN(J=null,X,Z,Q=!1,Y=!1){let z={type:"FunctionDeclaration",id:J,params:X,body:Z,generator:Q,async:Y},H=M.FunctionDeclaration;return K(H.id,z,"id",J,1),K(H.params,z,"params",X,1),K(H.body,z,"body",Z,1),K(H.generator,z,"generator",Q),K(H.async,z,"async",Y),z}function jN(J=null,X,Z,Q=!1,Y=!1){let z={type:"FunctionExpression",id:J,params:X,body:Z,generator:Q,async:Y},H=M.FunctionExpression;return K(H.id,z,"id",J,1),K(H.params,z,"params",X,1),K(H.body,z,"body",Z,1),K(H.generator,z,"generator",Q),K(H.async,z,"async",Y),z}function MN(J){let X={type:"Identifier",name:J},Z=M.Identifier;return K(Z.name,X,"name",J),X}function ON(J,X,Z=null){let Q={type:"IfStatement",test:J,consequent:X,alternate:Z},Y=M.IfStatement;return K(Y.test,Q,"test",J,1),K(Y.consequent,Q,"consequent",X,1),K(Y.alternate,Q,"alternate",Z,1),Q}function AN(J,X){let Z={type:"LabeledStatement",label:J,body:X},Q=M.LabeledStatement;return K(Q.label,Z,"label",J,1),K(Q.body,Z,"body",X,1),Z}function CN(J){let X={type:"StringLiteral",value:J},Z=M.StringLiteral;return K(Z.value,X,"value",J),X}function d4(J){let X={type:"NumericLiteral",value:J},Z=M.NumericLiteral;return K(Z.value,X,"value",J),X}function DN(){return{type:"NullLiteral"}}function NN(J){let X={type:"BooleanLiteral",value:J},Z=M.BooleanLiteral;return K(Z.value,X,"value",J),X}function a4(J,X=""){let Z={type:"RegExpLiteral",pattern:J,flags:X},Q=M.RegExpLiteral;return K(Q.pattern,Z,"pattern",J),K(Q.flags,Z,"flags",X),Z}function wN(J,X,Z){let Q={type:"LogicalExpression",operator:J,left:X,right:Z},Y=M.LogicalExpression;return K(Y.operator,Q,"operator",J),K(Y.left,Q,"left",X,1),K(Y.right,Q,"right",Z,1),Q}function PN(J,X,Z=!1,Q=null){let Y={type:"MemberExpression",object:J,property:X,computed:Z,optional:Q},z=M.MemberExpression;return K(z.object,Y,"object",J,1),K(z.property,Y,"property",X,1),K(z.computed,Y,"computed",Z),K(z.optional,Y,"optional",Q),Y}function SN(J,X){let Z={type:"NewExpression",callee:J,arguments:X},Q=M.NewExpression;return K(Q.callee,Z,"callee",J,1),K(Q.arguments,Z,"arguments",X,1),Z}function IN(J,X=[],Z="script",Q=null){let Y={type:"Program",body:J,directives:X,sourceType:Z,interpreter:Q},z=M.Program;return K(z.body,Y,"body",J,1),K(z.directives,Y,"directives",X,1),K(z.sourceType,Y,"sourceType",Z),K(z.interpreter,Y,"interpreter",Q,1),Y}function TN(J){let X={type:"ObjectExpression",properties:J},Z=M.ObjectExpression;return K(Z.properties,X,"properties",J,1),X}function LN(J="method",X,Z,Q,Y=!1,z=!1,H=!1){let G={type:"ObjectMethod",kind:J,key:X,params:Z,body:Q,computed:Y,generator:z,async:H},W=M.ObjectMethod;return K(W.kind,G,"kind",J),K(W.key,G,"key",X,1),K(W.params,G,"params",Z,1),K(W.body,G,"body",Q,1),K(W.computed,G,"computed",Y),K(W.generator,G,"generator",z),K(W.async,G,"async",H),G}function bN(J,X,Z=!1,Q=!1,Y=null){let z={type:"ObjectProperty",key:J,value:X,computed:Z,shorthand:Q,decorators:Y},H=M.ObjectProperty;return K(H.key,z,"key",J,1),K(H.value,z,"value",X,1),K(H.computed,z,"computed",Z),K(H.shorthand,z,"shorthand",Q),K(H.decorators,z,"decorators",Y,1),z}function s4(J){let X={type:"RestElement",argument:J},Z=M.RestElement;return K(Z.argument,X,"argument",J,1),X}function kN(J=null){let X={type:"ReturnStatement",argument:J},Z=M.ReturnStatement;return K(Z.argument,X,"argument",J,1),X}function vN(J){let X={type:"SequenceExpression",expressions:J},Z=M.SequenceExpression;return K(Z.expressions,X,"expressions",J,1),X}function EN(J){let X={type:"ParenthesizedExpression",expression:J},Z=M.ParenthesizedExpression;return K(Z.expression,X,"expression",J,1),X}function gN(J=null,X){let Z={type:"SwitchCase",test:J,consequent:X},Q=M.SwitchCase;return K(Q.test,Z,"test",J,1),K(Q.consequent,Z,"consequent",X,1),Z}function _N(J,X){let Z={type:"SwitchStatement",discriminant:J,cases:X},Q=M.SwitchStatement;return K(Q.discriminant,Z,"discriminant",J,1),K(Q.cases,Z,"cases",X,1),Z}function fN(){return{type:"ThisExpression"}}function hN(J){let X={type:"ThrowStatement",argument:J},Z=M.ThrowStatement;return K(Z.argument,X,"argument",J,1),X}function xN(J,X=null,Z=null){let Q={type:"TryStatement",block:J,handler:X,finalizer:Z},Y=M.TryStatement;return K(Y.block,Q,"block",J,1),K(Y.handler,Q,"handler",X,1),K(Y.finalizer,Q,"finalizer",Z,1),Q}function yN(J,X,Z=!0){let Q={type:"UnaryExpression",operator:J,argument:X,prefix:Z},Y=M.UnaryExpression;return K(Y.operator,Q,"operator",J),K(Y.argument,Q,"argument",X,1),K(Y.prefix,Q,"prefix",Z),Q}function uN(J,X,Z=!1){let Q={type:"UpdateExpression",operator:J,argument:X,prefix:Z},Y=M.UpdateExpression;return K(Y.operator,Q,"operator",J),K(Y.argument,Q,"argument",X,1),K(Y.prefix,Q,"prefix",Z),Q}function mN(J,X){let Z={type:"VariableDeclaration",kind:J,declarations:X},Q=M.VariableDeclaration;return K(Q.kind,Z,"kind",J),K(Q.declarations,Z,"declarations",X,1),Z}function cN(J,X=null){let Z={type:"VariableDeclarator",id:J,init:X},Q=M.VariableDeclarator;return K(Q.id,Z,"id",J,1),K(Q.init,Z,"init",X,1),Z}function lN(J,X){let Z={type:"WhileStatement",test:J,body:X},Q=M.WhileStatement;return K(Q.test,Z,"test",J,1),K(Q.body,Z,"body",X,1),Z}function iN(J,X){let Z={type:"WithStatement",object:J,body:X},Q=M.WithStatement;return K(Q.object,Z,"object",J,1),K(Q.body,Z,"body",X,1),Z}function pN(J,X){let Z={type:"AssignmentPattern",left:J,right:X},Q=M.AssignmentPattern;return K(Q.left,Z,"left",J,1),K(Q.right,Z,"right",X,1),Z}function rN(J){let X={type:"ArrayPattern",elements:J},Z=M.ArrayPattern;return K(Z.elements,X,"elements",J,1),X}function dN(J,X,Z=!1){let Q={type:"ArrowFunctionExpression",params:J,body:X,async:Z,expression:null},Y=M.ArrowFunctionExpression;return K(Y.params,Q,"params",J,1),K(Y.body,Q,"body",X,1),K(Y.async,Q,"async",Z),Q}function aN(J){let X={type:"ClassBody",body:J},Z=M.ClassBody;return K(Z.body,X,"body",J,1),X}function sN(J=null,X=null,Z,Q=null){let Y={type:"ClassExpression",id:J,superClass:X,body:Z,decorators:Q},z=M.ClassExpression;return K(z.id,Y,"id",J,1),K(z.superClass,Y,"superClass",X,1),K(z.body,Y,"body",Z,1),K(z.decorators,Y,"decorators",Q,1),Y}function tN(J=null,X=null,Z,Q=null){let Y={type:"ClassDeclaration",id:J,superClass:X,body:Z,decorators:Q},z=M.ClassDeclaration;return K(z.id,Y,"id",J,1),K(z.superClass,Y,"superClass",X,1),K(z.body,Y,"body",Z,1),K(z.decorators,Y,"decorators",Q,1),Y}function nN(J,X=null){let Z={type:"ExportAllDeclaration",source:J,attributes:X},Q=M.ExportAllDeclaration;return K(Q.source,Z,"source",J,1),K(Q.attributes,Z,"attributes",X,1),Z}function oN(J){let X={type:"ExportDefaultDeclaration",declaration:J},Z=M.ExportDefaultDeclaration;return K(Z.declaration,X,"declaration",J,1),X}function eN(J=null,X=[],Z=null,Q=null){let Y={type:"ExportNamedDeclaration",declaration:J,specifiers:X,source:Z,attributes:Q},z=M.ExportNamedDeclaration;return K(z.declaration,Y,"declaration",J,1),K(z.specifiers,Y,"specifiers",X,1),K(z.source,Y,"source",Z,1),K(z.attributes,Y,"attributes",Q,1),Y}function Jw(J,X){let Z={type:"ExportSpecifier",local:J,exported:X},Q=M.ExportSpecifier;return K(Q.local,Z,"local",J,1),K(Q.exported,Z,"exported",X,1),Z}function Xw(J,X,Z,Q=!1){let Y={type:"ForOfStatement",left:J,right:X,body:Z,await:Q},z=M.ForOfStatement;return K(z.left,Y,"left",J,1),K(z.right,Y,"right",X,1),K(z.body,Y,"body",Z,1),K(z.await,Y,"await",Q),Y}function Zw(J,X,Z=null){let Q={type:"ImportDeclaration",specifiers:J,source:X,attributes:Z},Y=M.ImportDeclaration;return K(Y.specifiers,Q,"specifiers",J,1),K(Y.source,Q,"source",X,1),K(Y.attributes,Q,"attributes",Z,1),Q}function Qw(J){let X={type:"ImportDefaultSpecifier",local:J},Z=M.ImportDefaultSpecifier;return K(Z.local,X,"local",J,1),X}function Yw(J){let X={type:"ImportNamespaceSpecifier",local:J},Z=M.ImportNamespaceSpecifier;return K(Z.local,X,"local",J,1),X}function zw(J,X){let Z={type:"ImportSpecifier",local:J,imported:X},Q=M.ImportSpecifier;return K(Q.local,Z,"local",J,1),K(Q.imported,Z,"imported",X,1),Z}function Hw(J,X=null){let Z={type:"ImportExpression",source:J,options:X},Q=M.ImportExpression;return K(Q.source,Z,"source",J,1),K(Q.options,Z,"options",X,1),Z}function Gw(J,X){let Z={type:"MetaProperty",meta:J,property:X},Q=M.MetaProperty;return K(Q.meta,Z,"meta",J,1),K(Q.property,Z,"property",X,1),Z}function Ww(J="method",X,Z,Q,Y=!1,z=!1,H=!1,G=!1){let W={type:"ClassMethod",kind:J,key:X,params:Z,body:Q,computed:Y,static:z,generator:H,async:G},V=M.ClassMethod;return K(V.kind,W,"kind",J),K(V.key,W,"key",X,1),K(V.params,W,"params",Z,1),K(V.body,W,"body",Q,1),K(V.computed,W,"computed",Y),K(V.static,W,"static",z),K(V.generator,W,"generator",H),K(V.async,W,"async",G),W}function Vw(J){let X={type:"ObjectPattern",properties:J},Z=M.ObjectPattern;return K(Z.properties,X,"properties",J,1),X}function t4(J){let X={type:"SpreadElement",argument:J},Z=M.SpreadElement;return K(Z.argument,X,"argument",J,1),X}function Kw(){return{type:"Super"}}function Uw(J,X){let Z={type:"TaggedTemplateExpression",tag:J,quasi:X},Q=M.TaggedTemplateExpression;return K(Q.tag,Z,"tag",J,1),K(Q.quasi,Z,"quasi",X,1),Z}function Bw(J,X=!1){let Z={type:"TemplateElement",value:J,tail:X},Q=M.TemplateElement;return K(Q.value,Z,"value",J),K(Q.tail,Z,"tail",X),Z}function Rw(J,X){let Z={type:"TemplateLiteral",quasis:J,expressions:X},Q=M.TemplateLiteral;return K(Q.quasis,Z,"quasis",J,1),K(Q.expressions,Z,"expressions",X,1),Z}function $w(J=null,X=!1){let Z={type:"YieldExpression",argument:J,delegate:X},Q=M.YieldExpression;return K(Q.argument,Z,"argument",J,1),K(Q.delegate,Z,"delegate",X),Z}function qw(J){let X={type:"AwaitExpression",argument:J},Z=M.AwaitExpression;return K(Z.argument,X,"argument",J,1),X}function Fw(){return{type:"Import"}}function jw(J){let X={type:"ExportNamespaceSpecifier",exported:J},Z=M.ExportNamespaceSpecifier;return K(Z.exported,X,"exported",J,1),X}function Mw(J,X,Z=!1,Q){let Y={type:"OptionalMemberExpression",object:J,property:X,computed:Z,optional:Q},z=M.OptionalMemberExpression;return K(z.object,Y,"object",J,1),K(z.property,Y,"property",X,1),K(z.computed,Y,"computed",Z),K(z.optional,Y,"optional",Q),Y}function Ow(J,X,Z){let Q={type:"OptionalCallExpression",callee:J,arguments:X,optional:Z},Y=M.OptionalCallExpression;return K(Y.callee,Q,"callee",J,1),K(Y.arguments,Q,"arguments",X,1),K(Y.optional,Q,"optional",Z),Q}function Aw(J,X=null,Z=null,Q=null,Y=!1,z=!1){let H={type:"ClassProperty",key:J,value:X,typeAnnotation:Z,decorators:Q,computed:Y,static:z},G=M.ClassProperty;return K(G.key,H,"key",J,1),K(G.value,H,"value",X,1),K(G.typeAnnotation,H,"typeAnnotation",Z,1),K(G.decorators,H,"decorators",Q,1),K(G.computed,H,"computed",Y),K(G.static,H,"static",z),H}function Cw(J,X=null,Z=null,Q=null,Y=!1,z=!1){let H={type:"ClassAccessorProperty",key:J,value:X,typeAnnotation:Z,decorators:Q,computed:Y,static:z},G=M.ClassAccessorProperty;return K(G.key,H,"key",J,1),K(G.value,H,"value",X,1),K(G.typeAnnotation,H,"typeAnnotation",Z,1),K(G.decorators,H,"decorators",Q,1),K(G.computed,H,"computed",Y),K(G.static,H,"static",z),H}function Dw(J,X=null,Z=null,Q=!1){let Y={type:"ClassPrivateProperty",key:J,value:X,decorators:Z,static:Q},z=M.ClassPrivateProperty;return K(z.key,Y,"key",J,1),K(z.value,Y,"value",X,1),K(z.decorators,Y,"decorators",Z,1),K(z.static,Y,"static",Q),Y}function Nw(J="method",X,Z,Q,Y=!1){let z={type:"ClassPrivateMethod",kind:J,key:X,params:Z,body:Q,static:Y},H=M.ClassPrivateMethod;return K(H.kind,z,"kind",J),K(H.key,z,"key",X,1),K(H.params,z,"params",Z,1),K(H.body,z,"body",Q,1),K(H.static,z,"static",Y),z}function ww(J){let X={type:"PrivateName",id:J},Z=M.PrivateName;return K(Z.id,X,"id",J,1),X}function Pw(J){let X={type:"StaticBlock",body:J},Z=M.StaticBlock;return K(Z.body,X,"body",J,1),X}function Sw(J,X){let Z={type:"ImportAttribute",key:J,value:X},Q=M.ImportAttribute;return K(Q.key,Z,"key",J,1),K(Q.value,Z,"value",X,1),Z}function Iw(){return{type:"AnyTypeAnnotation"}}function Tw(J){let X={type:"ArrayTypeAnnotation",elementType:J},Z=M.ArrayTypeAnnotation;return K(Z.elementType,X,"elementType",J,1),X}function Lw(){return{type:"BooleanTypeAnnotation"}}function bw(J){let X={type:"BooleanLiteralTypeAnnotation",value:J},Z=M.BooleanLiteralTypeAnnotation;return K(Z.value,X,"value",J),X}function kw(){return{type:"NullLiteralTypeAnnotation"}}function vw(J,X=null){let Z={type:"ClassImplements",id:J,typeParameters:X},Q=M.ClassImplements;return K(Q.id,Z,"id",J,1),K(Q.typeParameters,Z,"typeParameters",X,1),Z}function Ew(J,X=null,Z=null,Q){let Y={type:"DeclareClass",id:J,typeParameters:X,extends:Z,body:Q},z=M.DeclareClass;return K(z.id,Y,"id",J,1),K(z.typeParameters,Y,"typeParameters",X,1),K(z.extends,Y,"extends",Z,1),K(z.body,Y,"body",Q,1),Y}function gw(J){let X={type:"DeclareFunction",id:J},Z=M.DeclareFunction;return K(Z.id,X,"id",J,1),X}function _w(J,X=null,Z=null,Q){let Y={type:"DeclareInterface",id:J,typeParameters:X,extends:Z,body:Q},z=M.DeclareInterface;return K(z.id,Y,"id",J,1),K(z.typeParameters,Y,"typeParameters",X,1),K(z.extends,Y,"extends",Z,1),K(z.body,Y,"body",Q,1),Y}function fw(J,X,Z=null){let Q={type:"DeclareModule",id:J,body:X,kind:Z},Y=M.DeclareModule;return K(Y.id,Q,"id",J,1),K(Y.body,Q,"body",X,1),K(Y.kind,Q,"kind",Z),Q}function hw(J){let X={type:"DeclareModuleExports",typeAnnotation:J},Z=M.DeclareModuleExports;return K(Z.typeAnnotation,X,"typeAnnotation",J,1),X}function xw(J,X=null,Z){let Q={type:"DeclareTypeAlias",id:J,typeParameters:X,right:Z},Y=M.DeclareTypeAlias;return K(Y.id,Q,"id",J,1),K(Y.typeParameters,Q,"typeParameters",X,1),K(Y.right,Q,"right",Z,1),Q}function yw(J,X=null,Z=null){let Q={type:"DeclareOpaqueType",id:J,typeParameters:X,supertype:Z},Y=M.DeclareOpaqueType;return K(Y.id,Q,"id",J,1),K(Y.typeParameters,Q,"typeParameters",X,1),K(Y.supertype,Q,"supertype",Z,1),Q}function uw(J){let X={type:"DeclareVariable",id:J},Z=M.DeclareVariable;return K(Z.id,X,"id",J,1),X}function mw(J=null,X=null,Z=null,Q=null){let Y={type:"DeclareExportDeclaration",declaration:J,specifiers:X,source:Z,attributes:Q},z=M.DeclareExportDeclaration;return K(z.declaration,Y,"declaration",J,1),K(z.specifiers,Y,"specifiers",X,1),K(z.source,Y,"source",Z,1),K(z.attributes,Y,"attributes",Q,1),Y}function cw(J,X=null){let Z={type:"DeclareExportAllDeclaration",source:J,attributes:X},Q=M.DeclareExportAllDeclaration;return K(Q.source,Z,"source",J,1),K(Q.attributes,Z,"attributes",X,1),Z}function lw(J){let X={type:"DeclaredPredicate",value:J},Z=M.DeclaredPredicate;return K(Z.value,X,"value",J,1),X}function iw(){return{type:"ExistsTypeAnnotation"}}function pw(J=null,X,Z=null,Q){let Y={type:"FunctionTypeAnnotation",typeParameters:J,params:X,rest:Z,returnType:Q},z=M.FunctionTypeAnnotation;return K(z.typeParameters,Y,"typeParameters",J,1),K(z.params,Y,"params",X,1),K(z.rest,Y,"rest",Z,1),K(z.returnType,Y,"returnType",Q,1),Y}function rw(J=null,X){let Z={type:"FunctionTypeParam",name:J,typeAnnotation:X},Q=M.FunctionTypeParam;return K(Q.name,Z,"name",J,1),K(Q.typeAnnotation,Z,"typeAnnotation",X,1),Z}function dw(J,X=null){let Z={type:"GenericTypeAnnotation",id:J,typeParameters:X},Q=M.GenericTypeAnnotation;return K(Q.id,Z,"id",J,1),K(Q.typeParameters,Z,"typeParameters",X,1),Z}function aw(){return{type:"InferredPredicate"}}function sw(J,X=null){let Z={type:"InterfaceExtends",id:J,typeParameters:X},Q=M.InterfaceExtends;return K(Q.id,Z,"id",J,1),K(Q.typeParameters,Z,"typeParameters",X,1),Z}function tw(J,X=null,Z=null,Q){let Y={type:"InterfaceDeclaration",id:J,typeParameters:X,extends:Z,body:Q},z=M.InterfaceDeclaration;return K(z.id,Y,"id",J,1),K(z.typeParameters,Y,"typeParameters",X,1),K(z.extends,Y,"extends",Z,1),K(z.body,Y,"body",Q,1),Y}function nw(J=null,X){let Z={type:"InterfaceTypeAnnotation",extends:J,body:X},Q=M.InterfaceTypeAnnotation;return K(Q.extends,Z,"extends",J,1),K(Q.body,Z,"body",X,1),Z}function ow(J){let X={type:"IntersectionTypeAnnotation",types:J},Z=M.IntersectionTypeAnnotation;return K(Z.types,X,"types",J,1),X}function ew(){return{type:"MixedTypeAnnotation"}}function JP(){return{type:"EmptyTypeAnnotation"}}function XP(J){let X={type:"NullableTypeAnnotation",typeAnnotation:J},Z=M.NullableTypeAnnotation;return K(Z.typeAnnotation,X,"typeAnnotation",J,1),X}function ZP(J){let X={type:"NumberLiteralTypeAnnotation",value:J},Z=M.NumberLiteralTypeAnnotation;return K(Z.value,X,"value",J),X}function QP(){return{type:"NumberTypeAnnotation"}}function YP(J,X=[],Z=[],Q=[],Y=!1){let z={type:"ObjectTypeAnnotation",properties:J,indexers:X,callProperties:Z,internalSlots:Q,exact:Y},H=M.ObjectTypeAnnotation;return K(H.properties,z,"properties",J,1),K(H.indexers,z,"indexers",X,1),K(H.callProperties,z,"callProperties",Z,1),K(H.internalSlots,z,"internalSlots",Q,1),K(H.exact,z,"exact",Y),z}function zP(J,X,Z,Q,Y){let z={type:"ObjectTypeInternalSlot",id:J,value:X,optional:Z,static:Q,method:Y},H=M.ObjectTypeInternalSlot;return K(H.id,z,"id",J,1),K(H.value,z,"value",X,1),K(H.optional,z,"optional",Z),K(H.static,z,"static",Q),K(H.method,z,"method",Y),z}function HP(J){let X={type:"ObjectTypeCallProperty",value:J,static:null},Z=M.ObjectTypeCallProperty;return K(Z.value,X,"value",J,1),X}function GP(J=null,X,Z,Q=null){let Y={type:"ObjectTypeIndexer",id:J,key:X,value:Z,variance:Q,static:null},z=M.ObjectTypeIndexer;return K(z.id,Y,"id",J,1),K(z.key,Y,"key",X,1),K(z.value,Y,"value",Z,1),K(z.variance,Y,"variance",Q,1),Y}function WP(J,X,Z=null){let Q={type:"ObjectTypeProperty",key:J,value:X,variance:Z,kind:null,method:null,optional:null,proto:null,static:null},Y=M.ObjectTypeProperty;return K(Y.key,Q,"key",J,1),K(Y.value,Q,"value",X,1),K(Y.variance,Q,"variance",Z,1),Q}function VP(J){let X={type:"ObjectTypeSpreadProperty",argument:J},Z=M.ObjectTypeSpreadProperty;return K(Z.argument,X,"argument",J,1),X}function KP(J,X=null,Z=null,Q){let Y={type:"OpaqueType",id:J,typeParameters:X,supertype:Z,impltype:Q},z=M.OpaqueType;return K(z.id,Y,"id",J,1),K(z.typeParameters,Y,"typeParameters",X,1),K(z.supertype,Y,"supertype",Z,1),K(z.impltype,Y,"impltype",Q,1),Y}function UP(J,X){let Z={type:"QualifiedTypeIdentifier",id:J,qualification:X},Q=M.QualifiedTypeIdentifier;return K(Q.id,Z,"id",J,1),K(Q.qualification,Z,"qualification",X,1),Z}function BP(J){let X={type:"StringLiteralTypeAnnotation",value:J},Z=M.StringLiteralTypeAnnotation;return K(Z.value,X,"value",J),X}function RP(){return{type:"StringTypeAnnotation"}}function $P(){return{type:"SymbolTypeAnnotation"}}function qP(){return{type:"ThisTypeAnnotation"}}function FP(J){let X={type:"TupleTypeAnnotation",types:J},Z=M.TupleTypeAnnotation;return K(Z.types,X,"types",J,1),X}function jP(J){let X={type:"TypeofTypeAnnotation",argument:J},Z=M.TypeofTypeAnnotation;return K(Z.argument,X,"argument",J,1),X}function MP(J,X=null,Z){let Q={type:"TypeAlias",id:J,typeParameters:X,right:Z},Y=M.TypeAlias;return K(Y.id,Q,"id",J,1),K(Y.typeParameters,Q,"typeParameters",X,1),K(Y.right,Q,"right",Z,1),Q}function OP(J){let X={type:"TypeAnnotation",typeAnnotation:J},Z=M.TypeAnnotation;return K(Z.typeAnnotation,X,"typeAnnotation",J,1),X}function AP(J,X){let Z={type:"TypeCastExpression",expression:J,typeAnnotation:X},Q=M.TypeCastExpression;return K(Q.expression,Z,"expression",J,1),K(Q.typeAnnotation,Z,"typeAnnotation",X,1),Z}function CP(J=null,X=null,Z=null){let Q={type:"TypeParameter",bound:J,default:X,variance:Z,name:null},Y=M.TypeParameter;return K(Y.bound,Q,"bound",J,1),K(Y.default,Q,"default",X,1),K(Y.variance,Q,"variance",Z,1),Q}function DP(J){let X={type:"TypeParameterDeclaration",params:J},Z=M.TypeParameterDeclaration;return K(Z.params,X,"params",J,1),X}function NP(J){let X={type:"TypeParameterInstantiation",params:J},Z=M.TypeParameterInstantiation;return K(Z.params,X,"params",J,1),X}function wP(J){let X={type:"UnionTypeAnnotation",types:J},Z=M.UnionTypeAnnotation;return K(Z.types,X,"types",J,1),X}function PP(J){let X={type:"Variance",kind:J},Z=M.Variance;return K(Z.kind,X,"kind",J),X}function SP(){return{type:"VoidTypeAnnotation"}}function IP(J,X){let Z={type:"EnumDeclaration",id:J,body:X},Q=M.EnumDeclaration;return K(Q.id,Z,"id",J,1),K(Q.body,Z,"body",X,1),Z}function TP(J){let X={type:"EnumBooleanBody",members:J,explicitType:null,hasUnknownMembers:null},Z=M.EnumBooleanBody;return K(Z.members,X,"members",J,1),X}function LP(J){let X={type:"EnumNumberBody",members:J,explicitType:null,hasUnknownMembers:null},Z=M.EnumNumberBody;return K(Z.members,X,"members",J,1),X}function bP(J){let X={type:"EnumStringBody",members:J,explicitType:null,hasUnknownMembers:null},Z=M.EnumStringBody;return K(Z.members,X,"members",J,1),X}function kP(J){let X={type:"EnumSymbolBody",members:J,hasUnknownMembers:null},Z=M.EnumSymbolBody;return K(Z.members,X,"members",J,1),X}function vP(J){let X={type:"EnumBooleanMember",id:J,init:null},Z=M.EnumBooleanMember;return K(Z.id,X,"id",J,1),X}function EP(J,X){let Z={type:"EnumNumberMember",id:J,init:X},Q=M.EnumNumberMember;return K(Q.id,Z,"id",J,1),K(Q.init,Z,"init",X,1),Z}function gP(J,X){let Z={type:"EnumStringMember",id:J,init:X},Q=M.EnumStringMember;return K(Q.id,Z,"id",J,1),K(Q.init,Z,"init",X,1),Z}function _P(J){let X={type:"EnumDefaultedMember",id:J},Z=M.EnumDefaultedMember;return K(Z.id,X,"id",J,1),X}function fP(J,X){let Z={type:"IndexedAccessType",objectType:J,indexType:X},Q=M.IndexedAccessType;return K(Q.objectType,Z,"objectType",J,1),K(Q.indexType,Z,"indexType",X,1),Z}function hP(J,X){let Z={type:"OptionalIndexedAccessType",objectType:J,indexType:X,optional:null},Q=M.OptionalIndexedAccessType;return K(Q.objectType,Z,"objectType",J,1),K(Q.indexType,Z,"indexType",X,1),Z}function xP(J,X=null){let Z={type:"JSXAttribute",name:J,value:X},Q=M.JSXAttribute;return K(Q.name,Z,"name",J,1),K(Q.value,Z,"value",X,1),Z}function yP(J){let X={type:"JSXClosingElement",name:J},Z=M.JSXClosingElement;return K(Z.name,X,"name",J,1),X}function uP(J,X=null,Z,Q=null){let Y={type:"JSXElement",openingElement:J,closingElement:X,children:Z,selfClosing:Q},z=M.JSXElement;return K(z.openingElement,Y,"openingElement",J,1),K(z.closingElement,Y,"closingElement",X,1),K(z.children,Y,"children",Z,1),K(z.selfClosing,Y,"selfClosing",Q),Y}function mP(){return{type:"JSXEmptyExpression"}}function cP(J){let X={type:"JSXExpressionContainer",expression:J},Z=M.JSXExpressionContainer;return K(Z.expression,X,"expression",J,1),X}function lP(J){let X={type:"JSXSpreadChild",expression:J},Z=M.JSXSpreadChild;return K(Z.expression,X,"expression",J,1),X}function iP(J){let X={type:"JSXIdentifier",name:J},Z=M.JSXIdentifier;return K(Z.name,X,"name",J),X}function pP(J,X){let Z={type:"JSXMemberExpression",object:J,property:X},Q=M.JSXMemberExpression;return K(Q.object,Z,"object",J,1),K(Q.property,Z,"property",X,1),Z}function rP(J,X){let Z={type:"JSXNamespacedName",namespace:J,name:X},Q=M.JSXNamespacedName;return K(Q.namespace,Z,"namespace",J,1),K(Q.name,Z,"name",X,1),Z}function dP(J,X,Z=!1){let Q={type:"JSXOpeningElement",name:J,attributes:X,selfClosing:Z},Y=M.JSXOpeningElement;return K(Y.name,Q,"name",J,1),K(Y.attributes,Q,"attributes",X,1),K(Y.selfClosing,Q,"selfClosing",Z),Q}function aP(J){let X={type:"JSXSpreadAttribute",argument:J},Z=M.JSXSpreadAttribute;return K(Z.argument,X,"argument",J,1),X}function sP(J){let X={type:"JSXText",value:J},Z=M.JSXText;return K(Z.value,X,"value",J),X}function tP(J,X,Z){let Q={type:"JSXFragment",openingFragment:J,closingFragment:X,children:Z},Y=M.JSXFragment;return K(Y.openingFragment,Q,"openingFragment",J,1),K(Y.closingFragment,Q,"closingFragment",X,1),K(Y.children,Q,"children",Z,1),Q}function nP(){return{type:"JSXOpeningFragment"}}function oP(){return{type:"JSXClosingFragment"}}function eP(){return{type:"Noop"}}function JS(J,X){let Z={type:"Placeholder",expectedNode:J,name:X},Q=M.Placeholder;return K(Q.expectedNode,Z,"expectedNode",J),K(Q.name,Z,"name",X,1),Z}function XS(J){let X={type:"V8IntrinsicIdentifier",name:J},Z=M.V8IntrinsicIdentifier;return K(Z.name,X,"name",J),X}function ZS(){return{type:"ArgumentPlaceholder"}}function QS(J,X){let Z={type:"BindExpression",object:J,callee:X},Q=M.BindExpression;return K(Q.object,Z,"object",J,1),K(Q.callee,Z,"callee",X,1),Z}function YS(J){let X={type:"Decorator",expression:J},Z=M.Decorator;return K(Z.expression,X,"expression",J,1),X}function zS(J,X=!1){let Z={type:"DoExpression",body:J,async:X},Q=M.DoExpression;return K(Q.body,Z,"body",J,1),K(Q.async,Z,"async",X),Z}function HS(J){let X={type:"ExportDefaultSpecifier",exported:J},Z=M.ExportDefaultSpecifier;return K(Z.exported,X,"exported",J,1),X}function GS(J){let X={type:"RecordExpression",properties:J},Z=M.RecordExpression;return K(Z.properties,X,"properties",J,1),X}function WS(J=[]){let X={type:"TupleExpression",elements:J},Z=M.TupleExpression;return K(Z.elements,X,"elements",J,1),X}function VS(J){let X={type:"DecimalLiteral",value:J},Z=M.DecimalLiteral;return K(Z.value,X,"value",J),X}function KS(J){let X={type:"ModuleExpression",body:J},Z=M.ModuleExpression;return K(Z.body,X,"body",J,1),X}function US(){return{type:"TopicReference"}}function BS(J){let X={type:"PipelineTopicExpression",expression:J},Z=M.PipelineTopicExpression;return K(Z.expression,X,"expression",J,1),X}function RS(J){let X={type:"PipelineBareFunction",callee:J},Z=M.PipelineBareFunction;return K(Z.callee,X,"callee",J,1),X}function $S(){return{type:"PipelinePrimaryTopicReference"}}function qS(){return{type:"VoidPattern"}}function FS(J){let X={type:"TSParameterProperty",parameter:J},Z=M.TSParameterProperty;return K(Z.parameter,X,"parameter",J,1),X}function jS(J=null,X=null,Z,Q=null){let Y={type:"TSDeclareFunction",id:J,typeParameters:X,params:Z,returnType:Q},z=M.TSDeclareFunction;return K(z.id,Y,"id",J,1),K(z.typeParameters,Y,"typeParameters",X,1),K(z.params,Y,"params",Z,1),K(z.returnType,Y,"returnType",Q,1),Y}function MS(J=null,X,Z=null,Q,Y=null){let z={type:"TSDeclareMethod",decorators:J,key:X,typeParameters:Z,params:Q,returnType:Y},H=M.TSDeclareMethod;return K(H.decorators,z,"decorators",J,1),K(H.key,z,"key",X,1),K(H.typeParameters,z,"typeParameters",Z,1),K(H.params,z,"params",Q,1),K(H.returnType,z,"returnType",Y,1),z}function OS(J,X){let Z={type:"TSQualifiedName",left:J,right:X},Q=M.TSQualifiedName;return K(Q.left,Z,"left",J,1),K(Q.right,Z,"right",X,1),Z}function AS(J=null,X,Z=null){let Q={type:"TSCallSignatureDeclaration",typeParameters:J,parameters:X,typeAnnotation:Z},Y=M.TSCallSignatureDeclaration;return K(Y.typeParameters,Q,"typeParameters",J,1),K(Y.parameters,Q,"parameters",X,1),K(Y.typeAnnotation,Q,"typeAnnotation",Z,1),Q}function CS(J=null,X,Z=null){let Q={type:"TSConstructSignatureDeclaration",typeParameters:J,parameters:X,typeAnnotation:Z},Y=M.TSConstructSignatureDeclaration;return K(Y.typeParameters,Q,"typeParameters",J,1),K(Y.parameters,Q,"parameters",X,1),K(Y.typeAnnotation,Q,"typeAnnotation",Z,1),Q}function DS(J,X=null){let Z={type:"TSPropertySignature",key:J,typeAnnotation:X},Q=M.TSPropertySignature;return K(Q.key,Z,"key",J,1),K(Q.typeAnnotation,Z,"typeAnnotation",X,1),Z}function NS(J,X=null,Z,Q=null){let Y={type:"TSMethodSignature",key:J,typeParameters:X,parameters:Z,typeAnnotation:Q,kind:null},z=M.TSMethodSignature;return K(z.key,Y,"key",J,1),K(z.typeParameters,Y,"typeParameters",X,1),K(z.parameters,Y,"parameters",Z,1),K(z.typeAnnotation,Y,"typeAnnotation",Q,1),Y}function wS(J,X=null){let Z={type:"TSIndexSignature",parameters:J,typeAnnotation:X},Q=M.TSIndexSignature;return K(Q.parameters,Z,"parameters",J,1),K(Q.typeAnnotation,Z,"typeAnnotation",X,1),Z}function PS(){return{type:"TSAnyKeyword"}}function SS(){return{type:"TSBooleanKeyword"}}function IS(){return{type:"TSBigIntKeyword"}}function TS(){return{type:"TSIntrinsicKeyword"}}function LS(){return{type:"TSNeverKeyword"}}function bS(){return{type:"TSNullKeyword"}}function kS(){return{type:"TSNumberKeyword"}}function vS(){return{type:"TSObjectKeyword"}}function ES(){return{type:"TSStringKeyword"}}function gS(){return{type:"TSSymbolKeyword"}}function _S(){return{type:"TSUndefinedKeyword"}}function fS(){return{type:"TSUnknownKeyword"}}function hS(){return{type:"TSVoidKeyword"}}function xS(){return{type:"TSThisType"}}function yS(J=null,X,Z=null){let Q={type:"TSFunctionType",typeParameters:J,parameters:X,typeAnnotation:Z},Y=M.TSFunctionType;return K(Y.typeParameters,Q,"typeParameters",J,1),K(Y.parameters,Q,"parameters",X,1),K(Y.typeAnnotation,Q,"typeAnnotation",Z,1),Q}function uS(J=null,X,Z=null){let Q={type:"TSConstructorType",typeParameters:J,parameters:X,typeAnnotation:Z},Y=M.TSConstructorType;return K(Y.typeParameters,Q,"typeParameters",J,1),K(Y.parameters,Q,"parameters",X,1),K(Y.typeAnnotation,Q,"typeAnnotation",Z,1),Q}function mS(J,X=null){let Z={type:"TSTypeReference",typeName:J,typeParameters:X},Q=M.TSTypeReference;return K(Q.typeName,Z,"typeName",J,1),K(Q.typeParameters,Z,"typeParameters",X,1),Z}function cS(J,X=null,Z=null){let Q={type:"TSTypePredicate",parameterName:J,typeAnnotation:X,asserts:Z},Y=M.TSTypePredicate;return K(Y.parameterName,Q,"parameterName",J,1),K(Y.typeAnnotation,Q,"typeAnnotation",X,1),K(Y.asserts,Q,"asserts",Z),Q}function lS(J,X=null){let Z={type:"TSTypeQuery",exprName:J,typeParameters:X},Q=M.TSTypeQuery;return K(Q.exprName,Z,"exprName",J,1),K(Q.typeParameters,Z,"typeParameters",X,1),Z}function iS(J){let X={type:"TSTypeLiteral",members:J},Z=M.TSTypeLiteral;return K(Z.members,X,"members",J,1),X}function pS(J){let X={type:"TSArrayType",elementType:J},Z=M.TSArrayType;return K(Z.elementType,X,"elementType",J,1),X}function rS(J){let X={type:"TSTupleType",elementTypes:J},Z=M.TSTupleType;return K(Z.elementTypes,X,"elementTypes",J,1),X}function dS(J){let X={type:"TSOptionalType",typeAnnotation:J},Z=M.TSOptionalType;return K(Z.typeAnnotation,X,"typeAnnotation",J,1),X}function aS(J){let X={type:"TSRestType",typeAnnotation:J},Z=M.TSRestType;return K(Z.typeAnnotation,X,"typeAnnotation",J,1),X}function sS(J,X,Z=!1){let Q={type:"TSNamedTupleMember",label:J,elementType:X,optional:Z},Y=M.TSNamedTupleMember;return K(Y.label,Q,"label",J,1),K(Y.elementType,Q,"elementType",X,1),K(Y.optional,Q,"optional",Z),Q}function tS(J){let X={type:"TSUnionType",types:J},Z=M.TSUnionType;return K(Z.types,X,"types",J,1),X}function nS(J){let X={type:"TSIntersectionType",types:J},Z=M.TSIntersectionType;return K(Z.types,X,"types",J,1),X}function oS(J,X,Z,Q){let Y={type:"TSConditionalType",checkType:J,extendsType:X,trueType:Z,falseType:Q},z=M.TSConditionalType;return K(z.checkType,Y,"checkType",J,1),K(z.extendsType,Y,"extendsType",X,1),K(z.trueType,Y,"trueType",Z,1),K(z.falseType,Y,"falseType",Q,1),Y}function eS(J){let X={type:"TSInferType",typeParameter:J},Z=M.TSInferType;return K(Z.typeParameter,X,"typeParameter",J,1),X}function JI(J){let X={type:"TSParenthesizedType",typeAnnotation:J},Z=M.TSParenthesizedType;return K(Z.typeAnnotation,X,"typeAnnotation",J,1),X}function XI(J,X="keyof"){let Z={type:"TSTypeOperator",typeAnnotation:J,operator:X},Q=M.TSTypeOperator;return K(Q.typeAnnotation,Z,"typeAnnotation",J,1),K(Q.operator,Z,"operator",X),Z}function ZI(J,X){let Z={type:"TSIndexedAccessType",objectType:J,indexType:X},Q=M.TSIndexedAccessType;return K(Q.objectType,Z,"objectType",J,1),K(Q.indexType,Z,"indexType",X,1),Z}function QI(J,X=null,Z=null){let Q={type:"TSMappedType",typeParameter:J,typeAnnotation:X,nameType:Z},Y=M.TSMappedType;return K(Y.typeParameter,Q,"typeParameter",J,1),K(Y.typeAnnotation,Q,"typeAnnotation",X,1),K(Y.nameType,Q,"nameType",Z,1),Q}function YI(J,X){let Z={type:"TSTemplateLiteralType",quasis:J,types:X},Q=M.TSTemplateLiteralType;return K(Q.quasis,Z,"quasis",J,1),K(Q.types,Z,"types",X,1),Z}function zI(J){let X={type:"TSLiteralType",literal:J},Z=M.TSLiteralType;return K(Z.literal,X,"literal",J,1),X}function HI(J,X=null){let Z={type:"TSExpressionWithTypeArguments",expression:J,typeParameters:X},Q=M.TSExpressionWithTypeArguments;return K(Q.expression,Z,"expression",J,1),K(Q.typeParameters,Z,"typeParameters",X,1),Z}function GI(J,X=null,Z=null,Q){let Y={type:"TSInterfaceDeclaration",id:J,typeParameters:X,extends:Z,body:Q},z=M.TSInterfaceDeclaration;return K(z.id,Y,"id",J,1),K(z.typeParameters,Y,"typeParameters",X,1),K(z.extends,Y,"extends",Z,1),K(z.body,Y,"body",Q,1),Y}function WI(J){let X={type:"TSInterfaceBody",body:J},Z=M.TSInterfaceBody;return K(Z.body,X,"body",J,1),X}function VI(J,X=null,Z){let Q={type:"TSTypeAliasDeclaration",id:J,typeParameters:X,typeAnnotation:Z},Y=M.TSTypeAliasDeclaration;return K(Y.id,Q,"id",J,1),K(Y.typeParameters,Q,"typeParameters",X,1),K(Y.typeAnnotation,Q,"typeAnnotation",Z,1),Q}function KI(J,X=null){let Z={type:"TSInstantiationExpression",expression:J,typeParameters:X},Q=M.TSInstantiationExpression;return K(Q.expression,Z,"expression",J,1),K(Q.typeParameters,Z,"typeParameters",X,1),Z}function UI(J,X){let Z={type:"TSAsExpression",expression:J,typeAnnotation:X},Q=M.TSAsExpression;return K(Q.expression,Z,"expression",J,1),K(Q.typeAnnotation,Z,"typeAnnotation",X,1),Z}function BI(J,X){let Z={type:"TSSatisfiesExpression",expression:J,typeAnnotation:X},Q=M.TSSatisfiesExpression;return K(Q.expression,Z,"expression",J,1),K(Q.typeAnnotation,Z,"typeAnnotation",X,1),Z}function RI(J,X){let Z={type:"TSTypeAssertion",typeAnnotation:J,expression:X},Q=M.TSTypeAssertion;return K(Q.typeAnnotation,Z,"typeAnnotation",J,1),K(Q.expression,Z,"expression",X,1),Z}function $I(J){let X={type:"TSEnumBody",members:J},Z=M.TSEnumBody;return K(Z.members,X,"members",J,1),X}function qI(J,X){let Z={type:"TSEnumDeclaration",id:J,members:X},Q=M.TSEnumDeclaration;return K(Q.id,Z,"id",J,1),K(Q.members,Z,"members",X,1),Z}function FI(J,X=null){let Z={type:"TSEnumMember",id:J,initializer:X},Q=M.TSEnumMember;return K(Q.id,Z,"id",J,1),K(Q.initializer,Z,"initializer",X,1),Z}function jI(J,X){let Z={type:"TSModuleDeclaration",id:J,body:X,kind:null},Q=M.TSModuleDeclaration;return K(Q.id,Z,"id",J,1),K(Q.body,Z,"body",X,1),Z}function MI(J){let X={type:"TSModuleBlock",body:J},Z=M.TSModuleBlock;return K(Z.body,X,"body",J,1),X}function OI(J,X=null,Z=null){let Q={type:"TSImportType",argument:J,qualifier:X,typeParameters:Z},Y=M.TSImportType;return K(Y.argument,Q,"argument",J,1),K(Y.qualifier,Q,"qualifier",X,1),K(Y.typeParameters,Q,"typeParameters",Z,1),Q}function AI(J,X){let Z={type:"TSImportEqualsDeclaration",id:J,moduleReference:X,isExport:null},Q=M.TSImportEqualsDeclaration;return K(Q.id,Z,"id",J,1),K(Q.moduleReference,Z,"moduleReference",X,1),Z}function CI(J){let X={type:"TSExternalModuleReference",expression:J},Z=M.TSExternalModuleReference;return K(Z.expression,X,"expression",J,1),X}function DI(J){let X={type:"TSNonNullExpression",expression:J},Z=M.TSNonNullExpression;return K(Z.expression,X,"expression",J,1),X}function NI(J){let X={type:"TSExportAssignment",expression:J},Z=M.TSExportAssignment;return K(Z.expression,X,"expression",J,1),X}function wI(J){let X={type:"TSNamespaceExportDeclaration",id:J},Z=M.TSNamespaceExportDeclaration;return K(Z.id,X,"id",J,1),X}function PI(J){let X={type:"TSTypeAnnotation",typeAnnotation:J},Z=M.TSTypeAnnotation;return K(Z.typeAnnotation,X,"typeAnnotation",J,1),X}function SI(J){let X={type:"TSTypeParameterInstantiation",params:J},Z=M.TSTypeParameterInstantiation;return K(Z.params,X,"params",J,1),X}function II(J){let X={type:"TSTypeParameterDeclaration",params:J},Z=M.TSTypeParameterDeclaration;return K(Z.params,X,"params",J,1),X}function TI(J=null,X=null,Z){let Q={type:"TSTypeParameter",constraint:J,default:X,name:Z},Y=M.TSTypeParameter;return K(Y.constraint,Q,"constraint",J,1),K(Y.default,Q,"default",X,1),K(Y.name,Q,"name",Z),Q}function LI(J){return(0,Z9.default)("NumberLiteral","NumericLiteral","The node type "),d4(J)}function bI(J,X=""){return(0,Z9.default)("RegexLiteral","RegExpLiteral","The node type "),a4(J,X)}function kI(J){return(0,Z9.default)("RestProperty","RestElement","The node type "),s4(J)}function vI(J){return(0,Z9.default)("SpreadProperty","SpreadElement","The node type "),t4(J)}});var Z5=N((o4)=>{Object.defineProperty(o4,"__esModule",{value:!0});o4.JSXIdentifier=o4.JSXFragment=o4.JSXExpressionContainer=o4.JSXEmptyExpression=o4.JSXElement=o4.JSXClosingFragment=o4.JSXClosingElement=o4.JSXAttribute=o4.IntersectionTypeAnnotation=o4.InterpreterDirective=o4.InterfaceTypeAnnotation=o4.InterfaceExtends=o4.InterfaceDeclaration=o4.InferredPredicate=o4.IndexedAccessType=o4.ImportSpecifier=o4.ImportNamespaceSpecifier=o4.ImportExpression=o4.ImportDefaultSpecifier=o4.ImportDeclaration=o4.ImportAttribute=o4.Import=o4.IfStatement=o4.Identifier=o4.GenericTypeAnnotation=o4.FunctionTypeParam=o4.FunctionTypeAnnotation=o4.FunctionExpression=o4.FunctionDeclaration=o4.ForStatement=o4.ForOfStatement=o4.ForInStatement=o4.File=o4.ExpressionStatement=o4.ExportSpecifier=o4.ExportNamespaceSpecifier=o4.ExportNamedDeclaration=o4.ExportDefaultSpecifier=o4.ExportDefaultDeclaration=o4.ExportAllDeclaration=o4.ExistsTypeAnnotation=o4.EnumSymbolBody=o4.EnumStringMember=o4.EnumStringBody=o4.EnumNumberMember=o4.EnumNumberBody=o4.EnumDefaultedMember=o4.EnumDeclaration=o4.EnumBooleanMember=o4.EnumBooleanBody=o4.EmptyTypeAnnotation=o4.EmptyStatement=o4.DoWhileStatement=o4.DoExpression=o4.DirectiveLiteral=o4.Directive=o4.Decorator=o4.DeclaredPredicate=o4.DeclareVariable=o4.DeclareTypeAlias=o4.DeclareOpaqueType=o4.DeclareModuleExports=o4.DeclareModule=o4.DeclareInterface=o4.DeclareFunction=o4.DeclareExportDeclaration=o4.DeclareExportAllDeclaration=o4.DeclareClass=o4.DecimalLiteral=o4.DebuggerStatement=o4.ContinueStatement=o4.ConditionalExpression=o4.ClassProperty=o4.ClassPrivateProperty=o4.ClassPrivateMethod=o4.ClassMethod=o4.ClassImplements=o4.ClassExpression=o4.ClassDeclaration=o4.ClassBody=o4.ClassAccessorProperty=o4.CatchClause=o4.CallExpression=o4.BreakStatement=o4.BooleanTypeAnnotation=o4.BooleanLiteralTypeAnnotation=o4.BooleanLiteral=o4.BlockStatement=o4.BindExpression=o4.BinaryExpression=o4.BigIntLiteral=o4.AwaitExpression=o4.AssignmentPattern=o4.AssignmentExpression=o4.ArrowFunctionExpression=o4.ArrayTypeAnnotation=o4.ArrayPattern=o4.ArrayExpression=o4.ArgumentPlaceholder=o4.AnyTypeAnnotation=void 0;o4.TSNumberKeyword=o4.TSNullKeyword=o4.TSNonNullExpression=o4.TSNeverKeyword=o4.TSNamespaceExportDeclaration=o4.TSNamedTupleMember=o4.TSModuleDeclaration=o4.TSModuleBlock=o4.TSMethodSignature=o4.TSMappedType=o4.TSLiteralType=o4.TSIntrinsicKeyword=o4.TSIntersectionType=o4.TSInterfaceDeclaration=o4.TSInterfaceBody=o4.TSInstantiationExpression=o4.TSInferType=o4.TSIndexedAccessType=o4.TSIndexSignature=o4.TSImportType=o4.TSImportEqualsDeclaration=o4.TSFunctionType=o4.TSExternalModuleReference=o4.TSExpressionWithTypeArguments=o4.TSExportAssignment=o4.TSEnumMember=o4.TSEnumDeclaration=o4.TSEnumBody=o4.TSDeclareMethod=o4.TSDeclareFunction=o4.TSConstructorType=o4.TSConstructSignatureDeclaration=o4.TSConditionalType=o4.TSCallSignatureDeclaration=o4.TSBooleanKeyword=o4.TSBigIntKeyword=o4.TSAsExpression=o4.TSArrayType=o4.TSAnyKeyword=o4.SymbolTypeAnnotation=o4.SwitchStatement=o4.SwitchCase=o4.Super=o4.StringTypeAnnotation=o4.StringLiteralTypeAnnotation=o4.StringLiteral=o4.StaticBlock=o4.SpreadProperty=o4.SpreadElement=o4.SequenceExpression=o4.ReturnStatement=o4.RestProperty=o4.RestElement=o4.RegexLiteral=o4.RegExpLiteral=o4.RecordExpression=o4.QualifiedTypeIdentifier=o4.Program=o4.PrivateName=o4.Placeholder=o4.PipelineTopicExpression=o4.PipelinePrimaryTopicReference=o4.PipelineBareFunction=o4.ParenthesizedExpression=o4.OptionalMemberExpression=o4.OptionalIndexedAccessType=o4.OptionalCallExpression=o4.OpaqueType=o4.ObjectTypeSpreadProperty=o4.ObjectTypeProperty=o4.ObjectTypeInternalSlot=o4.ObjectTypeIndexer=o4.ObjectTypeCallProperty=o4.ObjectTypeAnnotation=o4.ObjectProperty=o4.ObjectPattern=o4.ObjectMethod=o4.ObjectExpression=o4.NumericLiteral=o4.NumberTypeAnnotation=o4.NumberLiteralTypeAnnotation=o4.NumberLiteral=o4.NullableTypeAnnotation=o4.NullLiteralTypeAnnotation=o4.NullLiteral=o4.Noop=o4.NewExpression=o4.ModuleExpression=o4.MixedTypeAnnotation=o4.MetaProperty=o4.MemberExpression=o4.LogicalExpression=o4.LabeledStatement=o4.JSXText=o4.JSXSpreadChild=o4.JSXSpreadAttribute=o4.JSXOpeningFragment=o4.JSXOpeningElement=o4.JSXNamespacedName=o4.JSXMemberExpression=void 0;o4.YieldExpression=o4.WithStatement=o4.WhileStatement=o4.VoidTypeAnnotation=o4.VoidPattern=o4.Variance=o4.VariableDeclarator=o4.VariableDeclaration=o4.V8IntrinsicIdentifier=o4.UpdateExpression=o4.UnionTypeAnnotation=o4.UnaryExpression=o4.TypeofTypeAnnotation=o4.TypeParameterInstantiation=o4.TypeParameterDeclaration=o4.TypeParameter=o4.TypeCastExpression=o4.TypeAnnotation=o4.TypeAlias=o4.TupleTypeAnnotation=o4.TupleExpression=o4.TryStatement=o4.TopicReference=o4.ThrowStatement=o4.ThisTypeAnnotation=o4.ThisExpression=o4.TemplateLiteral=o4.TemplateElement=o4.TaggedTemplateExpression=o4.TSVoidKeyword=o4.TSUnknownKeyword=o4.TSUnionType=o4.TSUndefinedKeyword=o4.TSTypeReference=o4.TSTypeQuery=o4.TSTypePredicate=o4.TSTypeParameterInstantiation=o4.TSTypeParameterDeclaration=o4.TSTypeParameter=o4.TSTypeOperator=o4.TSTypeLiteral=o4.TSTypeAssertion=o4.TSTypeAnnotation=o4.TSTypeAliasDeclaration=o4.TSTupleType=o4.TSThisType=o4.TSTemplateLiteralType=o4.TSSymbolKeyword=o4.TSStringKeyword=o4.TSSatisfiesExpression=o4.TSRestType=o4.TSQualifiedName=o4.TSPropertySignature=o4.TSParenthesizedType=o4.TSParameterProperty=o4.TSOptionalType=o4.TSObjectKeyword=void 0;var KX=h2(),$M1=L0();function F(J){return KX[J]}var qM1=o4.ArrayExpression=F("arrayExpression"),FM1=o4.AssignmentExpression=F("assignmentExpression"),jM1=o4.BinaryExpression=F("binaryExpression"),MM1=o4.InterpreterDirective=F("interpreterDirective"),OM1=o4.Directive=F("directive"),AM1=o4.DirectiveLiteral=F("directiveLiteral"),CM1=o4.BlockStatement=F("blockStatement"),DM1=o4.BreakStatement=F("breakStatement"),NM1=o4.CallExpression=F("callExpression"),wM1=o4.CatchClause=F("catchClause"),PM1=o4.ConditionalExpression=F("conditionalExpression"),SM1=o4.ContinueStatement=F("continueStatement"),IM1=o4.DebuggerStatement=F("debuggerStatement"),TM1=o4.DoWhileStatement=F("doWhileStatement"),LM1=o4.EmptyStatement=F("emptyStatement"),bM1=o4.ExpressionStatement=F("expressionStatement"),kM1=o4.File=F("file"),vM1=o4.ForInStatement=F("forInStatement"),EM1=o4.ForStatement=F("forStatement"),gM1=o4.FunctionDeclaration=F("functionDeclaration"),_M1=o4.FunctionExpression=F("functionExpression"),fM1=o4.Identifier=F("identifier"),hM1=o4.IfStatement=F("ifStatement"),xM1=o4.LabeledStatement=F("labeledStatement"),yM1=o4.StringLiteral=F("stringLiteral"),uM1=o4.NumericLiteral=F("numericLiteral"),mM1=o4.NullLiteral=F("nullLiteral"),cM1=o4.BooleanLiteral=F("booleanLiteral"),lM1=o4.RegExpLiteral=F("regExpLiteral"),iM1=o4.LogicalExpression=F("logicalExpression"),pM1=o4.MemberExpression=F("memberExpression"),rM1=o4.NewExpression=F("newExpression"),dM1=o4.Program=F("program"),aM1=o4.ObjectExpression=F("objectExpression"),sM1=o4.ObjectMethod=F("objectMethod"),tM1=o4.ObjectProperty=F("objectProperty"),nM1=o4.RestElement=F("restElement"),oM1=o4.ReturnStatement=F("returnStatement"),eM1=o4.SequenceExpression=F("sequenceExpression"),JO1=o4.ParenthesizedExpression=F("parenthesizedExpression"),XO1=o4.SwitchCase=F("switchCase"),ZO1=o4.SwitchStatement=F("switchStatement"),QO1=o4.ThisExpression=F("thisExpression"),YO1=o4.ThrowStatement=F("throwStatement"),zO1=o4.TryStatement=F("tryStatement"),HO1=o4.UnaryExpression=F("unaryExpression"),GO1=o4.UpdateExpression=F("updateExpression"),WO1=o4.VariableDeclaration=F("variableDeclaration"),VO1=o4.VariableDeclarator=F("variableDeclarator"),KO1=o4.WhileStatement=F("whileStatement"),UO1=o4.WithStatement=F("withStatement"),BO1=o4.AssignmentPattern=F("assignmentPattern"),RO1=o4.ArrayPattern=F("arrayPattern"),$O1=o4.ArrowFunctionExpression=F("arrowFunctionExpression"),qO1=o4.ClassBody=F("classBody"),FO1=o4.ClassExpression=F("classExpression"),jO1=o4.ClassDeclaration=F("classDeclaration"),MO1=o4.ExportAllDeclaration=F("exportAllDeclaration"),OO1=o4.ExportDefaultDeclaration=F("exportDefaultDeclaration"),AO1=o4.ExportNamedDeclaration=F("exportNamedDeclaration"),CO1=o4.ExportSpecifier=F("exportSpecifier"),DO1=o4.ForOfStatement=F("forOfStatement"),NO1=o4.ImportDeclaration=F("importDeclaration"),wO1=o4.ImportDefaultSpecifier=F("importDefaultSpecifier"),PO1=o4.ImportNamespaceSpecifier=F("importNamespaceSpecifier"),SO1=o4.ImportSpecifier=F("importSpecifier"),IO1=o4.ImportExpression=F("importExpression"),TO1=o4.MetaProperty=F("metaProperty"),LO1=o4.ClassMethod=F("classMethod"),bO1=o4.ObjectPattern=F("objectPattern"),kO1=o4.SpreadElement=F("spreadElement"),vO1=o4.Super=F("super"),EO1=o4.TaggedTemplateExpression=F("taggedTemplateExpression"),gO1=o4.TemplateElement=F("templateElement"),_O1=o4.TemplateLiteral=F("templateLiteral"),fO1=o4.YieldExpression=F("yieldExpression"),hO1=o4.AwaitExpression=F("awaitExpression"),xO1=o4.Import=F("import"),yO1=o4.BigIntLiteral=F("bigIntLiteral"),uO1=o4.ExportNamespaceSpecifier=F("exportNamespaceSpecifier"),mO1=o4.OptionalMemberExpression=F("optionalMemberExpression"),cO1=o4.OptionalCallExpression=F("optionalCallExpression"),lO1=o4.ClassProperty=F("classProperty"),iO1=o4.ClassAccessorProperty=F("classAccessorProperty"),pO1=o4.ClassPrivateProperty=F("classPrivateProperty"),rO1=o4.ClassPrivateMethod=F("classPrivateMethod"),dO1=o4.PrivateName=F("privateName"),aO1=o4.StaticBlock=F("staticBlock"),sO1=o4.ImportAttribute=F("importAttribute"),tO1=o4.AnyTypeAnnotation=F("anyTypeAnnotation"),nO1=o4.ArrayTypeAnnotation=F("arrayTypeAnnotation"),oO1=o4.BooleanTypeAnnotation=F("booleanTypeAnnotation"),eO1=o4.BooleanLiteralTypeAnnotation=F("booleanLiteralTypeAnnotation"),JA1=o4.NullLiteralTypeAnnotation=F("nullLiteralTypeAnnotation"),XA1=o4.ClassImplements=F("classImplements"),ZA1=o4.DeclareClass=F("declareClass"),QA1=o4.DeclareFunction=F("declareFunction"),YA1=o4.DeclareInterface=F("declareInterface"),zA1=o4.DeclareModule=F("declareModule"),HA1=o4.DeclareModuleExports=F("declareModuleExports"),GA1=o4.DeclareTypeAlias=F("declareTypeAlias"),WA1=o4.DeclareOpaqueType=F("declareOpaqueType"),VA1=o4.DeclareVariable=F("declareVariable"),KA1=o4.DeclareExportDeclaration=F("declareExportDeclaration"),UA1=o4.DeclareExportAllDeclaration=F("declareExportAllDeclaration"),BA1=o4.DeclaredPredicate=F("declaredPredicate"),RA1=o4.ExistsTypeAnnotation=F("existsTypeAnnotation"),$A1=o4.FunctionTypeAnnotation=F("functionTypeAnnotation"),qA1=o4.FunctionTypeParam=F("functionTypeParam"),FA1=o4.GenericTypeAnnotation=F("genericTypeAnnotation"),jA1=o4.InferredPredicate=F("inferredPredicate"),MA1=o4.InterfaceExtends=F("interfaceExtends"),OA1=o4.InterfaceDeclaration=F("interfaceDeclaration"),AA1=o4.InterfaceTypeAnnotation=F("interfaceTypeAnnotation"),CA1=o4.IntersectionTypeAnnotation=F("intersectionTypeAnnotation"),DA1=o4.MixedTypeAnnotation=F("mixedTypeAnnotation"),NA1=o4.EmptyTypeAnnotation=F("emptyTypeAnnotation"),wA1=o4.NullableTypeAnnotation=F("nullableTypeAnnotation"),PA1=o4.NumberLiteralTypeAnnotation=F("numberLiteralTypeAnnotation"),SA1=o4.NumberTypeAnnotation=F("numberTypeAnnotation"),IA1=o4.ObjectTypeAnnotation=F("objectTypeAnnotation"),TA1=o4.ObjectTypeInternalSlot=F("objectTypeInternalSlot"),LA1=o4.ObjectTypeCallProperty=F("objectTypeCallProperty"),bA1=o4.ObjectTypeIndexer=F("objectTypeIndexer"),kA1=o4.ObjectTypeProperty=F("objectTypeProperty"),vA1=o4.ObjectTypeSpreadProperty=F("objectTypeSpreadProperty"),EA1=o4.OpaqueType=F("opaqueType"),gA1=o4.QualifiedTypeIdentifier=F("qualifiedTypeIdentifier"),_A1=o4.StringLiteralTypeAnnotation=F("stringLiteralTypeAnnotation"),fA1=o4.StringTypeAnnotation=F("stringTypeAnnotation"),hA1=o4.SymbolTypeAnnotation=F("symbolTypeAnnotation"),xA1=o4.ThisTypeAnnotation=F("thisTypeAnnotation"),yA1=o4.TupleTypeAnnotation=F("tupleTypeAnnotation"),uA1=o4.TypeofTypeAnnotation=F("typeofTypeAnnotation"),mA1=o4.TypeAlias=F("typeAlias"),cA1=o4.TypeAnnotation=F("typeAnnotation"),lA1=o4.TypeCastExpression=F("typeCastExpression"),iA1=o4.TypeParameter=F("typeParameter"),pA1=o4.TypeParameterDeclaration=F("typeParameterDeclaration"),rA1=o4.TypeParameterInstantiation=F("typeParameterInstantiation"),dA1=o4.UnionTypeAnnotation=F("unionTypeAnnotation"),aA1=o4.Variance=F("variance"),sA1=o4.VoidTypeAnnotation=F("voidTypeAnnotation"),tA1=o4.EnumDeclaration=F("enumDeclaration"),nA1=o4.EnumBooleanBody=F("enumBooleanBody"),oA1=o4.EnumNumberBody=F("enumNumberBody"),eA1=o4.EnumStringBody=F("enumStringBody"),JC1=o4.EnumSymbolBody=F("enumSymbolBody"),XC1=o4.EnumBooleanMember=F("enumBooleanMember"),ZC1=o4.EnumNumberMember=F("enumNumberMember"),QC1=o4.EnumStringMember=F("enumStringMember"),YC1=o4.EnumDefaultedMember=F("enumDefaultedMember"),zC1=o4.IndexedAccessType=F("indexedAccessType"),HC1=o4.OptionalIndexedAccessType=F("optionalIndexedAccessType"),GC1=o4.JSXAttribute=F("jsxAttribute"),WC1=o4.JSXClosingElement=F("jsxClosingElement"),VC1=o4.JSXElement=F("jsxElement"),KC1=o4.JSXEmptyExpression=F("jsxEmptyExpression"),UC1=o4.JSXExpressionContainer=F("jsxExpressionContainer"),BC1=o4.JSXSpreadChild=F("jsxSpreadChild"),RC1=o4.JSXIdentifier=F("jsxIdentifier"),$C1=o4.JSXMemberExpression=F("jsxMemberExpression"),qC1=o4.JSXNamespacedName=F("jsxNamespacedName"),FC1=o4.JSXOpeningElement=F("jsxOpeningElement"),jC1=o4.JSXSpreadAttribute=F("jsxSpreadAttribute"),MC1=o4.JSXText=F("jsxText"),OC1=o4.JSXFragment=F("jsxFragment"),AC1=o4.JSXOpeningFragment=F("jsxOpeningFragment"),CC1=o4.JSXClosingFragment=F("jsxClosingFragment"),DC1=o4.Noop=F("noop"),NC1=o4.Placeholder=F("placeholder"),wC1=o4.V8IntrinsicIdentifier=F("v8IntrinsicIdentifier"),PC1=o4.ArgumentPlaceholder=F("argumentPlaceholder"),SC1=o4.BindExpression=F("bindExpression"),IC1=o4.Decorator=F("decorator"),TC1=o4.DoExpression=F("doExpression"),LC1=o4.ExportDefaultSpecifier=F("exportDefaultSpecifier"),bC1=o4.RecordExpression=F("recordExpression"),kC1=o4.TupleExpression=F("tupleExpression"),vC1=o4.DecimalLiteral=F("decimalLiteral"),EC1=o4.ModuleExpression=F("moduleExpression"),gC1=o4.TopicReference=F("topicReference"),_C1=o4.PipelineTopicExpression=F("pipelineTopicExpression"),fC1=o4.PipelineBareFunction=F("pipelineBareFunction"),hC1=o4.PipelinePrimaryTopicReference=F("pipelinePrimaryTopicReference"),xC1=o4.VoidPattern=F("voidPattern"),yC1=o4.TSParameterProperty=F("tsParameterProperty"),uC1=o4.TSDeclareFunction=F("tsDeclareFunction"),mC1=o4.TSDeclareMethod=F("tsDeclareMethod"),cC1=o4.TSQualifiedName=F("tsQualifiedName"),lC1=o4.TSCallSignatureDeclaration=F("tsCallSignatureDeclaration"),iC1=o4.TSConstructSignatureDeclaration=F("tsConstructSignatureDeclaration"),pC1=o4.TSPropertySignature=F("tsPropertySignature"),rC1=o4.TSMethodSignature=F("tsMethodSignature"),dC1=o4.TSIndexSignature=F("tsIndexSignature"),aC1=o4.TSAnyKeyword=F("tsAnyKeyword"),sC1=o4.TSBooleanKeyword=F("tsBooleanKeyword"),tC1=o4.TSBigIntKeyword=F("tsBigIntKeyword"),nC1=o4.TSIntrinsicKeyword=F("tsIntrinsicKeyword"),oC1=o4.TSNeverKeyword=F("tsNeverKeyword"),eC1=o4.TSNullKeyword=F("tsNullKeyword"),JD1=o4.TSNumberKeyword=F("tsNumberKeyword"),XD1=o4.TSObjectKeyword=F("tsObjectKeyword"),ZD1=o4.TSStringKeyword=F("tsStringKeyword"),QD1=o4.TSSymbolKeyword=F("tsSymbolKeyword"),YD1=o4.TSUndefinedKeyword=F("tsUndefinedKeyword"),zD1=o4.TSUnknownKeyword=F("tsUnknownKeyword"),HD1=o4.TSVoidKeyword=F("tsVoidKeyword"),GD1=o4.TSThisType=F("tsThisType"),WD1=o4.TSFunctionType=F("tsFunctionType"),VD1=o4.TSConstructorType=F("tsConstructorType"),KD1=o4.TSTypeReference=F("tsTypeReference"),UD1=o4.TSTypePredicate=F("tsTypePredicate"),BD1=o4.TSTypeQuery=F("tsTypeQuery"),RD1=o4.TSTypeLiteral=F("tsTypeLiteral"),$D1=o4.TSArrayType=F("tsArrayType"),qD1=o4.TSTupleType=F("tsTupleType"),FD1=o4.TSOptionalType=F("tsOptionalType"),jD1=o4.TSRestType=F("tsRestType"),MD1=o4.TSNamedTupleMember=F("tsNamedTupleMember"),OD1=o4.TSUnionType=F("tsUnionType"),AD1=o4.TSIntersectionType=F("tsIntersectionType"),CD1=o4.TSConditionalType=F("tsConditionalType"),DD1=o4.TSInferType=F("tsInferType"),ND1=o4.TSParenthesizedType=F("tsParenthesizedType"),wD1=o4.TSTypeOperator=F("tsTypeOperator"),PD1=o4.TSIndexedAccessType=F("tsIndexedAccessType"),SD1=o4.TSMappedType=F("tsMappedType"),ID1=o4.TSTemplateLiteralType=F("tsTemplateLiteralType"),TD1=o4.TSLiteralType=F("tsLiteralType"),LD1=o4.TSExpressionWithTypeArguments=F("tsExpressionWithTypeArguments"),bD1=o4.TSInterfaceDeclaration=F("tsInterfaceDeclaration"),kD1=o4.TSInterfaceBody=F("tsInterfaceBody"),vD1=o4.TSTypeAliasDeclaration=F("tsTypeAliasDeclaration"),ED1=o4.TSInstantiationExpression=F("tsInstantiationExpression"),gD1=o4.TSAsExpression=F("tsAsExpression"),_D1=o4.TSSatisfiesExpression=F("tsSatisfiesExpression"),fD1=o4.TSTypeAssertion=F("tsTypeAssertion"),hD1=o4.TSEnumBody=F("tsEnumBody"),xD1=o4.TSEnumDeclaration=F("tsEnumDeclaration"),yD1=o4.TSEnumMember=F("tsEnumMember"),uD1=o4.TSModuleDeclaration=F("tsModuleDeclaration"),mD1=o4.TSModuleBlock=F("tsModuleBlock"),cD1=o4.TSImportType=F("tsImportType"),lD1=o4.TSImportEqualsDeclaration=F("tsImportEqualsDeclaration"),iD1=o4.TSExternalModuleReference=F("tsExternalModuleReference"),pD1=o4.TSNonNullExpression=F("tsNonNullExpression"),rD1=o4.TSExportAssignment=F("tsExportAssignment"),dD1=o4.TSNamespaceExportDeclaration=F("tsNamespaceExportDeclaration"),aD1=o4.TSTypeAnnotation=F("tsTypeAnnotation"),sD1=o4.TSTypeParameterInstantiation=F("tsTypeParameterInstantiation"),tD1=o4.TSTypeParameterDeclaration=F("tsTypeParameterDeclaration"),nD1=o4.TSTypeParameter=F("tsTypeParameter"),oD1=o4.NumberLiteral=KX.numberLiteral,eD1=o4.RegexLiteral=KX.regexLiteral,JN1=o4.RestProperty=KX.restProperty,XN1=o4.SpreadProperty=KX.spreadProperty});var zJ=N((dJ)=>{Object.defineProperty(dJ,"__esModule",{value:!0});var x2=h2();Object.keys(x2).forEach(function(J){if(J==="default"||J==="__esModule")return;if(J in dJ&&dJ[J]===x2[J])return;Object.defineProperty(dJ,J,{enumerable:!0,get:function(){return x2[J]}})});var y2=Z5();Object.keys(y2).forEach(function(J){if(J==="default"||J==="__esModule")return;if(J in dJ&&dJ[J]===y2[J])return;Object.defineProperty(dJ,J,{enumerable:!0,get:function(){return y2[J]}})})});var Y5=N((Q5)=>{Object.defineProperty(Q5,"__esModule",{value:!0});Q5.default=Gh;var zh=zJ(),Hh=Y1();function Gh(J,X){let Z=J.value.split(/\r\n|\n|\r/),Q=0;for(let z=0;z<Z.length;z++)if(/[^ \t]/.exec(Z[z]))Q=z;let Y="";for(let z=0;z<Z.length;z++){let H=Z[z],G=z===0,W=z===Z.length-1,V=z===Q,U=H.replace(/\t/g," ");if(!G)U=U.replace(/^ +/,"");if(!W)U=U.replace(/ +$/,"");if(U){if(!V)U+=" ";Y+=U}}if(Y)X.push((0,Hh.inherits)((0,zh.stringLiteral)(Y),J))}});var H5=N((z5)=>{Object.defineProperty(z5,"__esModule",{value:!0});z5.default=Kh;var u2=E1(),Vh=Y5();function Kh(J){let X=[];for(let Z=0;Z<J.children.length;Z++){let Q=J.children[Z];if((0,u2.isJSXText)(Q)){(0,Vh.default)(Q,X);continue}if((0,u2.isJSXExpressionContainer)(Q))Q=Q.expression;if((0,u2.isJSXEmptyExpression)(Q))continue;X.push(Q)}return X}});var m2=N((G5)=>{Object.defineProperty(G5,"__esModule",{value:!0});G5.default=Rh;var Bh=BJ();function Rh(J){return!!(J&&Bh.VISITOR_KEYS[J.type])}});var V5=N((W5)=>{Object.defineProperty(W5,"__esModule",{value:!0});W5.default=Fh;var qh=m2();function Fh(J){if(!(0,qh.default)(J)){var X;let Z=(X=J==null?void 0:J.type)!=null?X:JSON.stringify(J);throw TypeError(`Not a valid node of type "${Z}"`)}}});var U5=N((K5)=>{Object.defineProperty(K5,"__esModule",{value:!0});K5.assertAccessor=hc;K5.assertAnyTypeAnnotation=Jy;K5.assertArgumentPlaceholder=Lu;K5.assertArrayExpression=Oh;K5.assertArrayPattern=jx;K5.assertArrayTypeAnnotation=Xy;K5.assertArrowFunctionExpression=Mx;K5.assertAssignmentExpression=Ah;K5.assertAssignmentPattern=Fx;K5.assertAwaitExpression=mx;K5.assertBigIntLiteral=lx;K5.assertBinary=Yc;K5.assertBinaryExpression=Ch;K5.assertBindExpression=bu;K5.assertBlock=Gc;K5.assertBlockParent=Hc;K5.assertBlockStatement=Ph;K5.assertBooleanLiteral=rh;K5.assertBooleanLiteralTypeAnnotation=Qy;K5.assertBooleanTypeAnnotation=Zy;K5.assertBreakStatement=Sh;K5.assertCallExpression=Ih;K5.assertCatchClause=Th;K5.assertClass=Ec;K5.assertClassAccessorProperty=ax;K5.assertClassBody=Ox;K5.assertClassDeclaration=Cx;K5.assertClassExpression=Ax;K5.assertClassImplements=zy;K5.assertClassMethod=Ex;K5.assertClassPrivateMethod=tx;K5.assertClassPrivateProperty=sx;K5.assertClassProperty=dx;K5.assertCompletionStatement=Kc;K5.assertConditional=Uc;K5.assertConditionalExpression=Lh;K5.assertContinueStatement=bh;K5.assertDebuggerStatement=kh;K5.assertDecimalLiteral=fu;K5.assertDeclaration=Ac;K5.assertDeclareClass=Hy;K5.assertDeclareExportAllDeclaration=qy;K5.assertDeclareExportDeclaration=$y;K5.assertDeclareFunction=Gy;K5.assertDeclareInterface=Wy;K5.assertDeclareModule=Vy;K5.assertDeclareModuleExports=Ky;K5.assertDeclareOpaqueType=By;K5.assertDeclareTypeAlias=Uy;K5.assertDeclareVariable=Ry;K5.assertDeclaredPredicate=Fy;K5.assertDecorator=ku;K5.assertDirective=Nh;K5.assertDirectiveLiteral=wh;K5.assertDoExpression=vu;K5.assertDoWhileStatement=vh;K5.assertEmptyStatement=Eh;K5.assertEmptyTypeAnnotation=Iy;K5.assertEnumBody=ic;K5.assertEnumBooleanBody=Xu;K5.assertEnumBooleanMember=zu;K5.assertEnumDeclaration=Ju;K5.assertEnumDefaultedMember=Wu;K5.assertEnumMember=pc;K5.assertEnumNumberBody=Zu;K5.assertEnumNumberMember=Hu;K5.assertEnumStringBody=Qu;K5.assertEnumStringMember=Gu;K5.assertEnumSymbolBody=Yu;K5.assertExistsTypeAnnotation=jy;K5.assertExportAllDeclaration=Dx;K5.assertExportDeclaration=_c;K5.assertExportDefaultDeclaration=Nx;K5.assertExportDefaultSpecifier=Eu;K5.assertExportNamedDeclaration=wx;K5.assertExportNamespaceSpecifier=ix;K5.assertExportSpecifier=Px;K5.assertExpression=Qc;K5.assertExpressionStatement=gh;K5.assertExpressionWrapper=$c;K5.assertFile=_h;K5.assertFlow=yc;K5.assertFlowBaseAnnotation=mc;K5.assertFlowDeclaration=cc;K5.assertFlowPredicate=lc;K5.assertFlowType=uc;K5.assertFor=qc;K5.assertForInStatement=fh;K5.assertForOfStatement=Sx;K5.assertForStatement=hh;K5.assertForXStatement=Fc;K5.assertFunction=jc;K5.assertFunctionDeclaration=xh;K5.assertFunctionExpression=yh;K5.assertFunctionParameter=Cc;K5.assertFunctionParent=Mc;K5.assertFunctionTypeAnnotation=My;K5.assertFunctionTypeParam=Oy;K5.assertGenericTypeAnnotation=Ay;K5.assertIdentifier=uh;K5.assertIfStatement=mh;K5.assertImmutable=Sc;K5.assertImport=cx;K5.assertImportAttribute=ex;K5.assertImportDeclaration=Ix;K5.assertImportDefaultSpecifier=Tx;K5.assertImportExpression=kx;K5.assertImportNamespaceSpecifier=Lx;K5.assertImportOrExportDeclaration=gc;K5.assertImportSpecifier=bx;K5.assertIndexedAccessType=Vu;K5.assertInferredPredicate=Cy;K5.assertInterfaceDeclaration=Ny;K5.assertInterfaceExtends=Dy;K5.assertInterfaceTypeAnnotation=wy;K5.assertInterpreterDirective=Dh;K5.assertIntersectionTypeAnnotation=Py;K5.assertJSX=rc;K5.assertJSXAttribute=Uu;K5.assertJSXClosingElement=Bu;K5.assertJSXClosingFragment=Pu;K5.assertJSXElement=Ru;K5.assertJSXEmptyExpression=$u;K5.assertJSXExpressionContainer=qu;K5.assertJSXFragment=Nu;K5.assertJSXIdentifier=ju;K5.assertJSXMemberExpression=Mu;K5.assertJSXNamespacedName=Ou;K5.assertJSXOpeningElement=Au;K5.assertJSXOpeningFragment=wu;K5.assertJSXSpreadAttribute=Cu;K5.assertJSXSpreadChild=Fu;K5.assertJSXText=Du;K5.assertLVal=Nc;K5.assertLabeledStatement=ch;K5.assertLiteral=Pc;K5.assertLogicalExpression=ah;K5.assertLoop=Bc;K5.assertMemberExpression=sh;K5.assertMetaProperty=vx;K5.assertMethod=Tc;K5.assertMiscellaneous=dc;K5.assertMixedTypeAnnotation=Sy;K5.assertModuleDeclaration=Zl;K5.assertModuleExpression=hu;K5.assertModuleSpecifier=fc;K5.assertNewExpression=th;K5.assertNoop=Su;K5.assertNullLiteral=ph;K5.assertNullLiteralTypeAnnotation=Yy;K5.assertNullableTypeAnnotation=Ty;K5.assertNumberLiteral=oc;K5.assertNumberLiteralTypeAnnotation=Ly;K5.assertNumberTypeAnnotation=by;K5.assertNumericLiteral=ih;K5.assertObjectExpression=oh;K5.assertObjectMember=Lc;K5.assertObjectMethod=eh;K5.assertObjectPattern=gx;K5.assertObjectProperty=Jx;K5.assertObjectTypeAnnotation=ky;K5.assertObjectTypeCallProperty=Ey;K5.assertObjectTypeIndexer=gy;K5.assertObjectTypeInternalSlot=vy;K5.assertObjectTypeProperty=_y;K5.assertObjectTypeSpreadProperty=fy;K5.assertOpaqueType=hy;K5.assertOptionalCallExpression=rx;K5.assertOptionalIndexedAccessType=Ku;K5.assertOptionalMemberExpression=px;K5.assertParenthesizedExpression=Yx;K5.assertPattern=vc;K5.assertPatternLike=Dc;K5.assertPipelineBareFunction=uu;K5.assertPipelinePrimaryTopicReference=mu;K5.assertPipelineTopicExpression=yu;K5.assertPlaceholder=Iu;K5.assertPrivate=xc;K5.assertPrivateName=nx;K5.assertProgram=nh;K5.assertProperty=bc;K5.assertPureish=Oc;K5.assertQualifiedTypeIdentifier=xy;K5.assertRecordExpression=gu;K5.assertRegExpLiteral=dh;K5.assertRegexLiteral=ec;K5.assertRestElement=Xx;K5.assertRestProperty=Jl;K5.assertReturnStatement=Zx;K5.assertScopable=zc;K5.assertSequenceExpression=Qx;K5.assertSpreadElement=_x;K5.assertSpreadProperty=Xl;K5.assertStandardized=Zc;K5.assertStatement=Wc;K5.assertStaticBlock=ox;K5.assertStringLiteral=lh;K5.assertStringLiteralTypeAnnotation=yy;K5.assertStringTypeAnnotation=uy;K5.assertSuper=fx;K5.assertSwitchCase=zx;K5.assertSwitchStatement=Hx;K5.assertSymbolTypeAnnotation=my;K5.assertTSAnyKeyword=ou;K5.assertTSArrayType=Mm;K5.assertTSAsExpression=xm;K5.assertTSBaseType=nc;K5.assertTSBigIntKeyword=Jm;K5.assertTSBooleanKeyword=eu;K5.assertTSCallSignatureDeclaration=du;K5.assertTSConditionalType=Pm;K5.assertTSConstructSignatureDeclaration=au;K5.assertTSConstructorType=Rm;K5.assertTSDeclareFunction=iu;K5.assertTSDeclareMethod=pu;K5.assertTSEntityName=wc;K5.assertTSEnumBody=mm;K5.assertTSEnumDeclaration=cm;K5.assertTSEnumMember=lm;K5.assertTSExportAssignment=tm;K5.assertTSExpressionWithTypeArguments=Em;K5.assertTSExternalModuleReference=am;K5.assertTSFunctionType=Bm;K5.assertTSImportEqualsDeclaration=dm;K5.assertTSImportType=rm;K5.assertTSIndexSignature=nu;K5.assertTSIndexedAccessType=Lm;K5.assertTSInferType=Sm;K5.assertTSInstantiationExpression=hm;K5.assertTSInterfaceBody=_m;K5.assertTSInterfaceDeclaration=gm;K5.assertTSIntersectionType=wm;K5.assertTSIntrinsicKeyword=Xm;K5.assertTSLiteralType=vm;K5.assertTSMappedType=bm;K5.assertTSMethodSignature=tu;K5.assertTSModuleBlock=pm;K5.assertTSModuleDeclaration=im;K5.assertTSNamedTupleMember=Dm;K5.assertTSNamespaceExportDeclaration=nm;K5.assertTSNeverKeyword=Zm;K5.assertTSNonNullExpression=sm;K5.assertTSNullKeyword=Qm;K5.assertTSNumberKeyword=Ym;K5.assertTSObjectKeyword=zm;K5.assertTSOptionalType=Am;K5.assertTSParameterProperty=lu;K5.assertTSParenthesizedType=Im;K5.assertTSPropertySignature=su;K5.assertTSQualifiedName=ru;K5.assertTSRestType=Cm;K5.assertTSSatisfiesExpression=ym;K5.assertTSStringKeyword=Hm;K5.assertTSSymbolKeyword=Gm;K5.assertTSTemplateLiteralType=km;K5.assertTSThisType=Um;K5.assertTSTupleType=Om;K5.assertTSType=tc;K5.assertTSTypeAliasDeclaration=fm;K5.assertTSTypeAnnotation=om;K5.assertTSTypeAssertion=um;K5.assertTSTypeElement=sc;K5.assertTSTypeLiteral=jm;K5.assertTSTypeOperator=Tm;K5.assertTSTypeParameter=Xc;K5.assertTSTypeParameterDeclaration=Jc;K5.assertTSTypeParameterInstantiation=em;K5.assertTSTypePredicate=qm;K5.assertTSTypeQuery=Fm;K5.assertTSTypeReference=$m;K5.assertTSUndefinedKeyword=Wm;K5.assertTSUnionType=Nm;K5.assertTSUnknownKeyword=Vm;K5.assertTSVoidKeyword=Km;K5.assertTaggedTemplateExpression=hx;K5.assertTemplateElement=xx;K5.assertTemplateLiteral=yx;K5.assertTerminatorless=Vc;K5.assertThisExpression=Gx;K5.assertThisTypeAnnotation=cy;K5.assertThrowStatement=Wx;K5.assertTopicReference=xu;K5.assertTryStatement=Vx;K5.assertTupleExpression=_u;K5.assertTupleTypeAnnotation=ly;K5.assertTypeAlias=py;K5.assertTypeAnnotation=ry;K5.assertTypeCastExpression=dy;K5.assertTypeParameter=ay;K5.assertTypeParameterDeclaration=sy;K5.assertTypeParameterInstantiation=ty;K5.assertTypeScript=ac;K5.assertTypeofTypeAnnotation=iy;K5.assertUnaryExpression=Kx;K5.assertUnaryLike=kc;K5.assertUnionTypeAnnotation=ny;K5.assertUpdateExpression=Ux;K5.assertUserWhitespacable=Ic;K5.assertV8IntrinsicIdentifier=Tu;K5.assertVariableDeclaration=Bx;K5.assertVariableDeclarator=Rx;K5.assertVariance=oy;K5.assertVoidPattern=cu;K5.assertVoidTypeAnnotation=ey;K5.assertWhile=Rc;K5.assertWhileStatement=$x;K5.assertWithStatement=qx;K5.assertYieldExpression=ux;var Mh=b0(),UX=L0();function B(J,X,Z){if(!(0,Mh.default)(J,X,Z))throw Error(`Expected type "${J}" with option ${JSON.stringify(Z)}, but instead got "${X.type}".`)}function Oh(J,X){B("ArrayExpression",J,X)}function Ah(J,X){B("AssignmentExpression",J,X)}function Ch(J,X){B("BinaryExpression",J,X)}function Dh(J,X){B("InterpreterDirective",J,X)}function Nh(J,X){B("Directive",J,X)}function wh(J,X){B("DirectiveLiteral",J,X)}function Ph(J,X){B("BlockStatement",J,X)}function Sh(J,X){B("BreakStatement",J,X)}function Ih(J,X){B("CallExpression",J,X)}function Th(J,X){B("CatchClause",J,X)}function Lh(J,X){B("ConditionalExpression",J,X)}function bh(J,X){B("ContinueStatement",J,X)}function kh(J,X){B("DebuggerStatement",J,X)}function vh(J,X){B("DoWhileStatement",J,X)}function Eh(J,X){B("EmptyStatement",J,X)}function gh(J,X){B("ExpressionStatement",J,X)}function _h(J,X){B("File",J,X)}function fh(J,X){B("ForInStatement",J,X)}function hh(J,X){B("ForStatement",J,X)}function xh(J,X){B("FunctionDeclaration",J,X)}function yh(J,X){B("FunctionExpression",J,X)}function uh(J,X){B("Identifier",J,X)}function mh(J,X){B("IfStatement",J,X)}function ch(J,X){B("LabeledStatement",J,X)}function lh(J,X){B("StringLiteral",J,X)}function ih(J,X){B("NumericLiteral",J,X)}function ph(J,X){B("NullLiteral",J,X)}function rh(J,X){B("BooleanLiteral",J,X)}function dh(J,X){B("RegExpLiteral",J,X)}function ah(J,X){B("LogicalExpression",J,X)}function sh(J,X){B("MemberExpression",J,X)}function th(J,X){B("NewExpression",J,X)}function nh(J,X){B("Program",J,X)}function oh(J,X){B("ObjectExpression",J,X)}function eh(J,X){B("ObjectMethod",J,X)}function Jx(J,X){B("ObjectProperty",J,X)}function Xx(J,X){B("RestElement",J,X)}function Zx(J,X){B("ReturnStatement",J,X)}function Qx(J,X){B("SequenceExpression",J,X)}function Yx(J,X){B("ParenthesizedExpression",J,X)}function zx(J,X){B("SwitchCase",J,X)}function Hx(J,X){B("SwitchStatement",J,X)}function Gx(J,X){B("ThisExpression",J,X)}function Wx(J,X){B("ThrowStatement",J,X)}function Vx(J,X){B("TryStatement",J,X)}function Kx(J,X){B("UnaryExpression",J,X)}function Ux(J,X){B("UpdateExpression",J,X)}function Bx(J,X){B("VariableDeclaration",J,X)}function Rx(J,X){B("VariableDeclarator",J,X)}function $x(J,X){B("WhileStatement",J,X)}function qx(J,X){B("WithStatement",J,X)}function Fx(J,X){B("AssignmentPattern",J,X)}function jx(J,X){B("ArrayPattern",J,X)}function Mx(J,X){B("ArrowFunctionExpression",J,X)}function Ox(J,X){B("ClassBody",J,X)}function Ax(J,X){B("ClassExpression",J,X)}function Cx(J,X){B("ClassDeclaration",J,X)}function Dx(J,X){B("ExportAllDeclaration",J,X)}function Nx(J,X){B("ExportDefaultDeclaration",J,X)}function wx(J,X){B("ExportNamedDeclaration",J,X)}function Px(J,X){B("ExportSpecifier",J,X)}function Sx(J,X){B("ForOfStatement",J,X)}function Ix(J,X){B("ImportDeclaration",J,X)}function Tx(J,X){B("ImportDefaultSpecifier",J,X)}function Lx(J,X){B("ImportNamespaceSpecifier",J,X)}function bx(J,X){B("ImportSpecifier",J,X)}function kx(J,X){B("ImportExpression",J,X)}function vx(J,X){B("MetaProperty",J,X)}function Ex(J,X){B("ClassMethod",J,X)}function gx(J,X){B("ObjectPattern",J,X)}function _x(J,X){B("SpreadElement",J,X)}function fx(J,X){B("Super",J,X)}function hx(J,X){B("TaggedTemplateExpression",J,X)}function xx(J,X){B("TemplateElement",J,X)}function yx(J,X){B("TemplateLiteral",J,X)}function ux(J,X){B("YieldExpression",J,X)}function mx(J,X){B("AwaitExpression",J,X)}function cx(J,X){B("Import",J,X)}function lx(J,X){B("BigIntLiteral",J,X)}function ix(J,X){B("ExportNamespaceSpecifier",J,X)}function px(J,X){B("OptionalMemberExpression",J,X)}function rx(J,X){B("OptionalCallExpression",J,X)}function dx(J,X){B("ClassProperty",J,X)}function ax(J,X){B("ClassAccessorProperty",J,X)}function sx(J,X){B("ClassPrivateProperty",J,X)}function tx(J,X){B("ClassPrivateMethod",J,X)}function nx(J,X){B("PrivateName",J,X)}function ox(J,X){B("StaticBlock",J,X)}function ex(J,X){B("ImportAttribute",J,X)}function Jy(J,X){B("AnyTypeAnnotation",J,X)}function Xy(J,X){B("ArrayTypeAnnotation",J,X)}function Zy(J,X){B("BooleanTypeAnnotation",J,X)}function Qy(J,X){B("BooleanLiteralTypeAnnotation",J,X)}function Yy(J,X){B("NullLiteralTypeAnnotation",J,X)}function zy(J,X){B("ClassImplements",J,X)}function Hy(J,X){B("DeclareClass",J,X)}function Gy(J,X){B("DeclareFunction",J,X)}function Wy(J,X){B("DeclareInterface",J,X)}function Vy(J,X){B("DeclareModule",J,X)}function Ky(J,X){B("DeclareModuleExports",J,X)}function Uy(J,X){B("DeclareTypeAlias",J,X)}function By(J,X){B("DeclareOpaqueType",J,X)}function Ry(J,X){B("DeclareVariable",J,X)}function $y(J,X){B("DeclareExportDeclaration",J,X)}function qy(J,X){B("DeclareExportAllDeclaration",J,X)}function Fy(J,X){B("DeclaredPredicate",J,X)}function jy(J,X){B("ExistsTypeAnnotation",J,X)}function My(J,X){B("FunctionTypeAnnotation",J,X)}function Oy(J,X){B("FunctionTypeParam",J,X)}function Ay(J,X){B("GenericTypeAnnotation",J,X)}function Cy(J,X){B("InferredPredicate",J,X)}function Dy(J,X){B("InterfaceExtends",J,X)}function Ny(J,X){B("InterfaceDeclaration",J,X)}function wy(J,X){B("InterfaceTypeAnnotation",J,X)}function Py(J,X){B("IntersectionTypeAnnotation",J,X)}function Sy(J,X){B("MixedTypeAnnotation",J,X)}function Iy(J,X){B("EmptyTypeAnnotation",J,X)}function Ty(J,X){B("NullableTypeAnnotation",J,X)}function Ly(J,X){B("NumberLiteralTypeAnnotation",J,X)}function by(J,X){B("NumberTypeAnnotation",J,X)}function ky(J,X){B("ObjectTypeAnnotation",J,X)}function vy(J,X){B("ObjectTypeInternalSlot",J,X)}function Ey(J,X){B("ObjectTypeCallProperty",J,X)}function gy(J,X){B("ObjectTypeIndexer",J,X)}function _y(J,X){B("ObjectTypeProperty",J,X)}function fy(J,X){B("ObjectTypeSpreadProperty",J,X)}function hy(J,X){B("OpaqueType",J,X)}function xy(J,X){B("QualifiedTypeIdentifier",J,X)}function yy(J,X){B("StringLiteralTypeAnnotation",J,X)}function uy(J,X){B("StringTypeAnnotation",J,X)}function my(J,X){B("SymbolTypeAnnotation",J,X)}function cy(J,X){B("ThisTypeAnnotation",J,X)}function ly(J,X){B("TupleTypeAnnotation",J,X)}function iy(J,X){B("TypeofTypeAnnotation",J,X)}function py(J,X){B("TypeAlias",J,X)}function ry(J,X){B("TypeAnnotation",J,X)}function dy(J,X){B("TypeCastExpression",J,X)}function ay(J,X){B("TypeParameter",J,X)}function sy(J,X){B("TypeParameterDeclaration",J,X)}function ty(J,X){B("TypeParameterInstantiation",J,X)}function ny(J,X){B("UnionTypeAnnotation",J,X)}function oy(J,X){B("Variance",J,X)}function ey(J,X){B("VoidTypeAnnotation",J,X)}function Ju(J,X){B("EnumDeclaration",J,X)}function Xu(J,X){B("EnumBooleanBody",J,X)}function Zu(J,X){B("EnumNumberBody",J,X)}function Qu(J,X){B("EnumStringBody",J,X)}function Yu(J,X){B("EnumSymbolBody",J,X)}function zu(J,X){B("EnumBooleanMember",J,X)}function Hu(J,X){B("EnumNumberMember",J,X)}function Gu(J,X){B("EnumStringMember",J,X)}function Wu(J,X){B("EnumDefaultedMember",J,X)}function Vu(J,X){B("IndexedAccessType",J,X)}function Ku(J,X){B("OptionalIndexedAccessType",J,X)}function Uu(J,X){B("JSXAttribute",J,X)}function Bu(J,X){B("JSXClosingElement",J,X)}function Ru(J,X){B("JSXElement",J,X)}function $u(J,X){B("JSXEmptyExpression",J,X)}function qu(J,X){B("JSXExpressionContainer",J,X)}function Fu(J,X){B("JSXSpreadChild",J,X)}function ju(J,X){B("JSXIdentifier",J,X)}function Mu(J,X){B("JSXMemberExpression",J,X)}function Ou(J,X){B("JSXNamespacedName",J,X)}function Au(J,X){B("JSXOpeningElement",J,X)}function Cu(J,X){B("JSXSpreadAttribute",J,X)}function Du(J,X){B("JSXText",J,X)}function Nu(J,X){B("JSXFragment",J,X)}function wu(J,X){B("JSXOpeningFragment",J,X)}function Pu(J,X){B("JSXClosingFragment",J,X)}function Su(J,X){B("Noop",J,X)}function Iu(J,X){B("Placeholder",J,X)}function Tu(J,X){B("V8IntrinsicIdentifier",J,X)}function Lu(J,X){B("ArgumentPlaceholder",J,X)}function bu(J,X){B("BindExpression",J,X)}function ku(J,X){B("Decorator",J,X)}function vu(J,X){B("DoExpression",J,X)}function Eu(J,X){B("ExportDefaultSpecifier",J,X)}function gu(J,X){B("RecordExpression",J,X)}function _u(J,X){B("TupleExpression",J,X)}function fu(J,X){B("DecimalLiteral",J,X)}function hu(J,X){B("ModuleExpression",J,X)}function xu(J,X){B("TopicReference",J,X)}function yu(J,X){B("PipelineTopicExpression",J,X)}function uu(J,X){B("PipelineBareFunction",J,X)}function mu(J,X){B("PipelinePrimaryTopicReference",J,X)}function cu(J,X){B("VoidPattern",J,X)}function lu(J,X){B("TSParameterProperty",J,X)}function iu(J,X){B("TSDeclareFunction",J,X)}function pu(J,X){B("TSDeclareMethod",J,X)}function ru(J,X){B("TSQualifiedName",J,X)}function du(J,X){B("TSCallSignatureDeclaration",J,X)}function au(J,X){B("TSConstructSignatureDeclaration",J,X)}function su(J,X){B("TSPropertySignature",J,X)}function tu(J,X){B("TSMethodSignature",J,X)}function nu(J,X){B("TSIndexSignature",J,X)}function ou(J,X){B("TSAnyKeyword",J,X)}function eu(J,X){B("TSBooleanKeyword",J,X)}function Jm(J,X){B("TSBigIntKeyword",J,X)}function Xm(J,X){B("TSIntrinsicKeyword",J,X)}function Zm(J,X){B("TSNeverKeyword",J,X)}function Qm(J,X){B("TSNullKeyword",J,X)}function Ym(J,X){B("TSNumberKeyword",J,X)}function zm(J,X){B("TSObjectKeyword",J,X)}function Hm(J,X){B("TSStringKeyword",J,X)}function Gm(J,X){B("TSSymbolKeyword",J,X)}function Wm(J,X){B("TSUndefinedKeyword",J,X)}function Vm(J,X){B("TSUnknownKeyword",J,X)}function Km(J,X){B("TSVoidKeyword",J,X)}function Um(J,X){B("TSThisType",J,X)}function Bm(J,X){B("TSFunctionType",J,X)}function Rm(J,X){B("TSConstructorType",J,X)}function $m(J,X){B("TSTypeReference",J,X)}function qm(J,X){B("TSTypePredicate",J,X)}function Fm(J,X){B("TSTypeQuery",J,X)}function jm(J,X){B("TSTypeLiteral",J,X)}function Mm(J,X){B("TSArrayType",J,X)}function Om(J,X){B("TSTupleType",J,X)}function Am(J,X){B("TSOptionalType",J,X)}function Cm(J,X){B("TSRestType",J,X)}function Dm(J,X){B("TSNamedTupleMember",J,X)}function Nm(J,X){B("TSUnionType",J,X)}function wm(J,X){B("TSIntersectionType",J,X)}function Pm(J,X){B("TSConditionalType",J,X)}function Sm(J,X){B("TSInferType",J,X)}function Im(J,X){B("TSParenthesizedType",J,X)}function Tm(J,X){B("TSTypeOperator",J,X)}function Lm(J,X){B("TSIndexedAccessType",J,X)}function bm(J,X){B("TSMappedType",J,X)}function km(J,X){B("TSTemplateLiteralType",J,X)}function vm(J,X){B("TSLiteralType",J,X)}function Em(J,X){B("TSExpressionWithTypeArguments",J,X)}function gm(J,X){B("TSInterfaceDeclaration",J,X)}function _m(J,X){B("TSInterfaceBody",J,X)}function fm(J,X){B("TSTypeAliasDeclaration",J,X)}function hm(J,X){B("TSInstantiationExpression",J,X)}function xm(J,X){B("TSAsExpression",J,X)}function ym(J,X){B("TSSatisfiesExpression",J,X)}function um(J,X){B("TSTypeAssertion",J,X)}function mm(J,X){B("TSEnumBody",J,X)}function cm(J,X){B("TSEnumDeclaration",J,X)}function lm(J,X){B("TSEnumMember",J,X)}function im(J,X){B("TSModuleDeclaration",J,X)}function pm(J,X){B("TSModuleBlock",J,X)}function rm(J,X){B("TSImportType",J,X)}function dm(J,X){B("TSImportEqualsDeclaration",J,X)}function am(J,X){B("TSExternalModuleReference",J,X)}function sm(J,X){B("TSNonNullExpression",J,X)}function tm(J,X){B("TSExportAssignment",J,X)}function nm(J,X){B("TSNamespaceExportDeclaration",J,X)}function om(J,X){B("TSTypeAnnotation",J,X)}function em(J,X){B("TSTypeParameterInstantiation",J,X)}function Jc(J,X){B("TSTypeParameterDeclaration",J,X)}function Xc(J,X){B("TSTypeParameter",J,X)}function Zc(J,X){B("Standardized",J,X)}function Qc(J,X){B("Expression",J,X)}function Yc(J,X){B("Binary",J,X)}function zc(J,X){B("Scopable",J,X)}function Hc(J,X){B("BlockParent",J,X)}function Gc(J,X){B("Block",J,X)}function Wc(J,X){B("Statement",J,X)}function Vc(J,X){B("Terminatorless",J,X)}function Kc(J,X){B("CompletionStatement",J,X)}function Uc(J,X){B("Conditional",J,X)}function Bc(J,X){B("Loop",J,X)}function Rc(J,X){B("While",J,X)}function $c(J,X){B("ExpressionWrapper",J,X)}function qc(J,X){B("For",J,X)}function Fc(J,X){B("ForXStatement",J,X)}function jc(J,X){B("Function",J,X)}function Mc(J,X){B("FunctionParent",J,X)}function Oc(J,X){B("Pureish",J,X)}function Ac(J,X){B("Declaration",J,X)}function Cc(J,X){B("FunctionParameter",J,X)}function Dc(J,X){B("PatternLike",J,X)}function Nc(J,X){B("LVal",J,X)}function wc(J,X){B("TSEntityName",J,X)}function Pc(J,X){B("Literal",J,X)}function Sc(J,X){B("Immutable",J,X)}function Ic(J,X){B("UserWhitespacable",J,X)}function Tc(J,X){B("Method",J,X)}function Lc(J,X){B("ObjectMember",J,X)}function bc(J,X){B("Property",J,X)}function kc(J,X){B("UnaryLike",J,X)}function vc(J,X){B("Pattern",J,X)}function Ec(J,X){B("Class",J,X)}function gc(J,X){B("ImportOrExportDeclaration",J,X)}function _c(J,X){B("ExportDeclaration",J,X)}function fc(J,X){B("ModuleSpecifier",J,X)}function hc(J,X){B("Accessor",J,X)}function xc(J,X){B("Private",J,X)}function yc(J,X){B("Flow",J,X)}function uc(J,X){B("FlowType",J,X)}function mc(J,X){B("FlowBaseAnnotation",J,X)}function cc(J,X){B("FlowDeclaration",J,X)}function lc(J,X){B("FlowPredicate",J,X)}function ic(J,X){B("EnumBody",J,X)}function pc(J,X){B("EnumMember",J,X)}function rc(J,X){B("JSX",J,X)}function dc(J,X){B("Miscellaneous",J,X)}function ac(J,X){B("TypeScript",J,X)}function sc(J,X){B("TSTypeElement",J,X)}function tc(J,X){B("TSType",J,X)}function nc(J,X){B("TSBaseType",J,X)}function oc(J,X){(0,UX.default)("assertNumberLiteral","assertNumericLiteral"),B("NumberLiteral",J,X)}function ec(J,X){(0,UX.default)("assertRegexLiteral","assertRegExpLiteral"),B("RegexLiteral",J,X)}function Jl(J,X){(0,UX.default)("assertRestProperty","assertRestElement"),B("RestProperty",J,X)}function Xl(J,X){(0,UX.default)("assertSpreadProperty","assertSpreadElement"),B("SpreadProperty",J,X)}function Zl(J,X){(0,UX.default)("assertModuleDeclaration","assertImportOrExportDeclaration"),B("ModuleDeclaration",J,X)}});var $5=N((B5)=>{Object.defineProperty(B5,"__esModule",{value:!0});B5.default=void 0;var OJ=zJ(),VN1=B5.default=ma;function ma(J){switch(J){case"string":return(0,OJ.stringTypeAnnotation)();case"number":return(0,OJ.numberTypeAnnotation)();case"undefined":return(0,OJ.voidTypeAnnotation)();case"boolean":return(0,OJ.booleanTypeAnnotation)();case"function":return(0,OJ.genericTypeAnnotation)((0,OJ.identifier)("Function"));case"object":return(0,OJ.genericTypeAnnotation)((0,OJ.identifier)("Object"));case"symbol":return(0,OJ.genericTypeAnnotation)((0,OJ.identifier)("Symbol"));case"bigint":return(0,OJ.anyTypeAnnotation)()}throw Error("Invalid typeof value: "+J)}});var c2=N((j5)=>{Object.defineProperty(j5,"__esModule",{value:!0});j5.default=F5;var BX=E1();function q5(J){return(0,BX.isIdentifier)(J)?J.name:`${J.id.name}.${q5(J.qualification)}`}function F5(J){let X=Array.from(J),Z=new Map,Q=new Map,Y=new Set,z=[];for(let H=0;H<X.length;H++){let G=X[H];if(!G)continue;if(z.includes(G))continue;if((0,BX.isAnyTypeAnnotation)(G))return[G];if((0,BX.isFlowBaseAnnotation)(G)){Q.set(G.type,G);continue}if((0,BX.isUnionTypeAnnotation)(G)){if(!Y.has(G.types))X.push(...G.types),Y.add(G.types);continue}if((0,BX.isGenericTypeAnnotation)(G)){let W=q5(G.id);if(Z.has(W)){let V=Z.get(W);if(V.typeParameters){if(G.typeParameters)V.typeParameters.params.push(...G.typeParameters.params),V.typeParameters.params=F5(V.typeParameters.params)}else V=G.typeParameters}else Z.set(W,G);continue}z.push(G)}for(let[,H]of Q)z.push(H);for(let[,H]of Z)z.push(H);return z}});var O5=N((M5)=>{Object.defineProperty(M5,"__esModule",{value:!0});M5.default=pa;var la=zJ(),ia=c2();function pa(J){let X=(0,ia.default)(J);if(X.length===1)return X[0];else return(0,la.unionTypeAnnotation)(X)}});var N5=N((D5)=>{Object.defineProperty(D5,"__esModule",{value:!0});D5.default=C5;var f0=E1();function A5(J){return(0,f0.isIdentifier)(J)?J.name:(0,f0.isThisExpression)(J)?"this":`${J.right.name}.${A5(J.left)}`}function C5(J){let X=Array.from(J),Z=new Map,Q=new Map,Y=new Set,z=[];for(let H=0;H<X.length;H++){let G=X[H];if(!G)continue;if(z.includes(G))continue;if((0,f0.isTSAnyKeyword)(G))return[G];if((0,f0.isTSBaseType)(G)){Q.set(G.type,G);continue}if((0,f0.isTSUnionType)(G)){if(!Y.has(G.types))X.push(...G.types),Y.add(G.types);continue}let W="typeParameters";if((0,f0.isTSTypeReference)(G)&&G[W]){let V=G[W],U=A5(G.typeName);if(Z.has(U)){let q=Z.get(U),O=q[W];if(O)O.params.push(...V.params),O.params=C5(O.params);else q=V}else Z.set(U,G);continue}z.push(G)}for(let[,H]of Q)z.push(H);for(let[,H]of Z)z.push(H);return z}});var P5=N((w5)=>{Object.defineProperty(w5,"__esModule",{value:!0});w5.default=na;var aa=zJ(),sa=N5(),ta=E1();function na(J){let X=J.map((Q)=>{return(0,ta.isTSTypeAnnotation)(Q)?Q.typeAnnotation:Q}),Z=(0,sa.default)(X);if(Z.length===1)return Z[0];else return(0,aa.tsUnionType)(Z)}});var l2=N((I5)=>{Object.defineProperty(I5,"__esModule",{value:!0});I5.buildUndefinedNode=ea;var S5=zJ();function ea(){return(0,S5.unaryExpression)("void",(0,S5.numericLiteral)(0),!0)}});var aJ=N((v5)=>{Object.defineProperty(v5,"__esModule",{value:!0});v5.default=Xs;var T5=BJ(),L5=E1(),{hasOwn:LJ}={hasOwn:Function.call.bind(Object.prototype.hasOwnProperty)};function b5(J,X,Z,Q){if(J&&typeof J.type==="string")return k5(J,X,Z,Q);return J}function i2(J,X,Z,Q){if(Array.isArray(J))return J.map((Y)=>b5(Y,X,Z,Q));return b5(J,X,Z,Q)}function Xs(J,X=!0,Z=!1){return k5(J,X,Z,new Map)}function k5(J,X=!0,Z=!1,Q){if(!J)return J;let{type:Y}=J,z={type:J.type};if((0,L5.isIdentifier)(J)){if(z.name=J.name,LJ(J,"optional")&&typeof J.optional==="boolean")z.optional=J.optional;if(LJ(J,"typeAnnotation"))z.typeAnnotation=X?i2(J.typeAnnotation,!0,Z,Q):J.typeAnnotation;if(LJ(J,"decorators"))z.decorators=X?i2(J.decorators,!0,Z,Q):J.decorators}else if(!LJ(T5.NODE_FIELDS,Y))throw Error(`Unknown node type: "${Y}"`);else for(let H of Object.keys(T5.NODE_FIELDS[Y]))if(LJ(J,H))if(X)z[H]=(0,L5.isFile)(J)&&H==="comments"?Q9(J.comments,X,Z,Q):i2(J[H],!0,Z,Q);else z[H]=J[H];if(LJ(J,"loc"))if(Z)z.loc=null;else z.loc=J.loc;if(LJ(J,"leadingComments"))z.leadingComments=Q9(J.leadingComments,X,Z,Q);if(LJ(J,"innerComments"))z.innerComments=Q9(J.innerComments,X,Z,Q);if(LJ(J,"trailingComments"))z.trailingComments=Q9(J.trailingComments,X,Z,Q);if(LJ(J,"extra"))z.extra=Object.assign({},J.extra);return z}function Q9(J,X,Z,Q){if(!J||!X)return J;return J.map((Y)=>{let z=Q.get(Y);if(z)return z;let{type:H,value:G,loc:W}=Y,V={type:H,value:G,loc:W};if(Z)V.loc=null;return Q.set(Y,V),V})}});var g5=N((E5)=>{Object.defineProperty(E5,"__esModule",{value:!0});E5.default=Ys;var Qs=aJ();function Ys(J){return(0,Qs.default)(J,!1)}});var f5=N((_5)=>{Object.defineProperty(_5,"__esModule",{value:!0});_5.default=Gs;var Hs=aJ();function Gs(J){return(0,Hs.default)(J)}});var x5=N((h5)=>{Object.defineProperty(h5,"__esModule",{value:!0});h5.default=Ks;var Vs=aJ();function Ks(J){return(0,Vs.default)(J,!0,!0)}});var u5=N((y5)=>{Object.defineProperty(y5,"__esModule",{value:!0});y5.default=Rs;var Bs=aJ();function Rs(J){return(0,Bs.default)(J,!1,!0)}});var p2=N((m5)=>{Object.defineProperty(m5,"__esModule",{value:!0});m5.default=qs;function qs(J,X,Z){if(!Z||!J)return J;let Q=`${X}Comments`;if(J[Q])if(X==="leading")J[Q]=Z.concat(J[Q]);else J[Q].push(...Z);else J[Q]=Z;return J}});var l5=N((c5)=>{Object.defineProperty(c5,"__esModule",{value:!0});c5.default=Ms;var js=p2();function Ms(J,X,Z,Q){return(0,js.default)(J,X,[{type:Q?"CommentLine":"CommentBlock",value:Z}])}});var Y9=N((i5)=>{Object.defineProperty(i5,"__esModule",{value:!0});i5.default=As;function As(J,X,Z){if(X&&Z)X[J]=Array.from(new Set([].concat(X[J],Z[J]).filter(Boolean)))}});var r2=N((p5)=>{Object.defineProperty(p5,"__esModule",{value:!0});p5.default=Ns;var Ds=Y9();function Ns(J,X){(0,Ds.default)("innerComments",J,X)}});var d2=N((r5)=>{Object.defineProperty(r5,"__esModule",{value:!0});r5.default=Ss;var Ps=Y9();function Ss(J,X){(0,Ps.default)("leadingComments",J,X)}});var a2=N((d5)=>{Object.defineProperty(d5,"__esModule",{value:!0});d5.default=Ls;var Ts=Y9();function Ls(J,X){(0,Ts.default)("trailingComments",J,X)}});var s2=N((a5)=>{Object.defineProperty(a5,"__esModule",{value:!0});a5.default=gs;var ks=a2(),vs=d2(),Es=r2();function gs(J,X){return(0,ks.default)(J,X),(0,vs.default)(J,X),(0,Es.default)(J,X),J}});var t5=N((s5)=>{Object.defineProperty(s5,"__esModule",{value:!0});s5.default=hs;var fs=v0();function hs(J){return fs.COMMENT_KEYS.forEach((X)=>{J[X]=null}),J}});var e5=N((n5)=>{Object.defineProperty(n5,"__esModule",{value:!0});n5.WHILE_TYPES=n5.USERWHITESPACABLE_TYPES=n5.UNARYLIKE_TYPES=n5.TYPESCRIPT_TYPES=n5.TSTYPE_TYPES=n5.TSTYPEELEMENT_TYPES=n5.TSENTITYNAME_TYPES=n5.TSBASETYPE_TYPES=n5.TERMINATORLESS_TYPES=n5.STATEMENT_TYPES=n5.STANDARDIZED_TYPES=n5.SCOPABLE_TYPES=n5.PUREISH_TYPES=n5.PROPERTY_TYPES=n5.PRIVATE_TYPES=n5.PATTERN_TYPES=n5.PATTERNLIKE_TYPES=n5.OBJECTMEMBER_TYPES=n5.MODULESPECIFIER_TYPES=n5.MODULEDECLARATION_TYPES=n5.MISCELLANEOUS_TYPES=n5.METHOD_TYPES=n5.LVAL_TYPES=n5.LOOP_TYPES=n5.LITERAL_TYPES=n5.JSX_TYPES=n5.IMPORTOREXPORTDECLARATION_TYPES=n5.IMMUTABLE_TYPES=n5.FUNCTION_TYPES=n5.FUNCTIONPARENT_TYPES=n5.FUNCTIONPARAMETER_TYPES=n5.FOR_TYPES=n5.FORXSTATEMENT_TYPES=n5.FLOW_TYPES=n5.FLOWTYPE_TYPES=n5.FLOWPREDICATE_TYPES=n5.FLOWDECLARATION_TYPES=n5.FLOWBASEANNOTATION_TYPES=n5.EXPRESSION_TYPES=n5.EXPRESSIONWRAPPER_TYPES=n5.EXPORTDECLARATION_TYPES=n5.ENUMMEMBER_TYPES=n5.ENUMBODY_TYPES=n5.DECLARATION_TYPES=n5.CONDITIONAL_TYPES=n5.COMPLETIONSTATEMENT_TYPES=n5.CLASS_TYPES=n5.BLOCK_TYPES=n5.BLOCKPARENT_TYPES=n5.BINARY_TYPES=n5.ACCESSOR_TYPES=void 0;var X1=BJ(),LN1=n5.STANDARDIZED_TYPES=X1.FLIPPED_ALIAS_KEYS.Standardized,bN1=n5.EXPRESSION_TYPES=X1.FLIPPED_ALIAS_KEYS.Expression,kN1=n5.BINARY_TYPES=X1.FLIPPED_ALIAS_KEYS.Binary,vN1=n5.SCOPABLE_TYPES=X1.FLIPPED_ALIAS_KEYS.Scopable,EN1=n5.BLOCKPARENT_TYPES=X1.FLIPPED_ALIAS_KEYS.BlockParent,gN1=n5.BLOCK_TYPES=X1.FLIPPED_ALIAS_KEYS.Block,_N1=n5.STATEMENT_TYPES=X1.FLIPPED_ALIAS_KEYS.Statement,fN1=n5.TERMINATORLESS_TYPES=X1.FLIPPED_ALIAS_KEYS.Terminatorless,hN1=n5.COMPLETIONSTATEMENT_TYPES=X1.FLIPPED_ALIAS_KEYS.CompletionStatement,xN1=n5.CONDITIONAL_TYPES=X1.FLIPPED_ALIAS_KEYS.Conditional,yN1=n5.LOOP_TYPES=X1.FLIPPED_ALIAS_KEYS.Loop,uN1=n5.WHILE_TYPES=X1.FLIPPED_ALIAS_KEYS.While,mN1=n5.EXPRESSIONWRAPPER_TYPES=X1.FLIPPED_ALIAS_KEYS.ExpressionWrapper,cN1=n5.FOR_TYPES=X1.FLIPPED_ALIAS_KEYS.For,lN1=n5.FORXSTATEMENT_TYPES=X1.FLIPPED_ALIAS_KEYS.ForXStatement,iN1=n5.FUNCTION_TYPES=X1.FLIPPED_ALIAS_KEYS.Function,pN1=n5.FUNCTIONPARENT_TYPES=X1.FLIPPED_ALIAS_KEYS.FunctionParent,rN1=n5.PUREISH_TYPES=X1.FLIPPED_ALIAS_KEYS.Pureish,dN1=n5.DECLARATION_TYPES=X1.FLIPPED_ALIAS_KEYS.Declaration,aN1=n5.FUNCTIONPARAMETER_TYPES=X1.FLIPPED_ALIAS_KEYS.FunctionParameter,sN1=n5.PATTERNLIKE_TYPES=X1.FLIPPED_ALIAS_KEYS.PatternLike,tN1=n5.LVAL_TYPES=X1.FLIPPED_ALIAS_KEYS.LVal,nN1=n5.TSENTITYNAME_TYPES=X1.FLIPPED_ALIAS_KEYS.TSEntityName,oN1=n5.LITERAL_TYPES=X1.FLIPPED_ALIAS_KEYS.Literal,eN1=n5.IMMUTABLE_TYPES=X1.FLIPPED_ALIAS_KEYS.Immutable,Jw1=n5.USERWHITESPACABLE_TYPES=X1.FLIPPED_ALIAS_KEYS.UserWhitespacable,Xw1=n5.METHOD_TYPES=X1.FLIPPED_ALIAS_KEYS.Method,Zw1=n5.OBJECTMEMBER_TYPES=X1.FLIPPED_ALIAS_KEYS.ObjectMember,Qw1=n5.PROPERTY_TYPES=X1.FLIPPED_ALIAS_KEYS.Property,Yw1=n5.UNARYLIKE_TYPES=X1.FLIPPED_ALIAS_KEYS.UnaryLike,zw1=n5.PATTERN_TYPES=X1.FLIPPED_ALIAS_KEYS.Pattern,Hw1=n5.CLASS_TYPES=X1.FLIPPED_ALIAS_KEYS.Class,ys=n5.IMPORTOREXPORTDECLARATION_TYPES=X1.FLIPPED_ALIAS_KEYS.ImportOrExportDeclaration,Gw1=n5.EXPORTDECLARATION_TYPES=X1.FLIPPED_ALIAS_KEYS.ExportDeclaration,Ww1=n5.MODULESPECIFIER_TYPES=X1.FLIPPED_ALIAS_KEYS.ModuleSpecifier,Vw1=n5.ACCESSOR_TYPES=X1.FLIPPED_ALIAS_KEYS.Accessor,Kw1=n5.PRIVATE_TYPES=X1.FLIPPED_ALIAS_KEYS.Private,Uw1=n5.FLOW_TYPES=X1.FLIPPED_ALIAS_KEYS.Flow,Bw1=n5.FLOWTYPE_TYPES=X1.FLIPPED_ALIAS_KEYS.FlowType,Rw1=n5.FLOWBASEANNOTATION_TYPES=X1.FLIPPED_ALIAS_KEYS.FlowBaseAnnotation,$w1=n5.FLOWDECLARATION_TYPES=X1.FLIPPED_ALIAS_KEYS.FlowDeclaration,qw1=n5.FLOWPREDICATE_TYPES=X1.FLIPPED_ALIAS_KEYS.FlowPredicate,Fw1=n5.ENUMBODY_TYPES=X1.FLIPPED_ALIAS_KEYS.EnumBody,jw1=n5.ENUMMEMBER_TYPES=X1.FLIPPED_ALIAS_KEYS.EnumMember,Mw1=n5.JSX_TYPES=X1.FLIPPED_ALIAS_KEYS.JSX,Ow1=n5.MISCELLANEOUS_TYPES=X1.FLIPPED_ALIAS_KEYS.Miscellaneous,Aw1=n5.TYPESCRIPT_TYPES=X1.FLIPPED_ALIAS_KEYS.TypeScript,Cw1=n5.TSTYPEELEMENT_TYPES=X1.FLIPPED_ALIAS_KEYS.TSTypeElement,Dw1=n5.TSTYPE_TYPES=X1.FLIPPED_ALIAS_KEYS.TSType,Nw1=n5.TSBASETYPE_TYPES=X1.FLIPPED_ALIAS_KEYS.TSBaseType,ww1=n5.MODULEDECLARATION_TYPES=ys});var n2=N((JZ)=>{Object.defineProperty(JZ,"__esModule",{value:!0});JZ.default=ft;var z9=E1(),t2=zJ();function ft(J,X){if((0,z9.isBlockStatement)(J))return J;let Z=[];if((0,z9.isEmptyStatement)(J))Z=[];else{if(!(0,z9.isStatement)(J))if((0,z9.isFunction)(X))J=(0,t2.returnStatement)(J);else J=(0,t2.expressionStatement)(J);Z=[J]}return(0,t2.blockStatement)(Z)}});var ZZ=N((XZ)=>{Object.defineProperty(XZ,"__esModule",{value:!0});XZ.default=yt;var xt=n2();function yt(J,X="body"){let Z=(0,xt.default)(J[X],J);return J[X]=Z,Z}});var o2=N((QZ)=>{Object.defineProperty(QZ,"__esModule",{value:!0});QZ.default=lt;var mt=k0(),ct=zX();function lt(J){J=J+"";let X="";for(let Z of J)X+=(0,ct.isIdentifierChar)(Z.codePointAt(0))?Z:"-";if(X=X.replace(/^[-0-9]+/,""),X=X.replace(/[-\s]+(.)?/g,function(Z,Q){return Q?Q.toUpperCase():""}),!(0,mt.default)(X))X=`_${X}`;return X||"_"}});var zZ=N((YZ)=>{Object.defineProperty(YZ,"__esModule",{value:!0});YZ.default=rt;var pt=o2();function rt(J){if(J=(0,pt.default)(J),J==="eval"||J==="arguments")J="_"+J;return J}});var GZ=N((HZ)=>{Object.defineProperty(HZ,"__esModule",{value:!0});HZ.default=tt;var at=E1(),st=zJ();function tt(J,X=J.key||J.property){if(!J.computed&&(0,at.isIdentifier)(X))X=(0,st.stringLiteral)(X.name);return X}});var KZ=N((WZ)=>{Object.defineProperty(WZ,"__esModule",{value:!0});WZ.default=void 0;var RX=E1(),kw1=WZ.default=ot;function ot(J){if((0,RX.isExpressionStatement)(J))J=J.expression;if((0,RX.isExpression)(J))return J;if((0,RX.isClass)(J))J.type="ClassExpression",J.abstract=!1;else if((0,RX.isFunction)(J))J.type="FunctionExpression";if(!(0,RX.isExpression)(J))throw Error(`cannot turn ${J.type} to an expression`);return J}});var e2=N((RZ)=>{Object.defineProperty(RZ,"__esModule",{value:!0});RZ.default=$X;var et=BJ(),UZ=Symbol(),BZ=Symbol();function $X(J,X,Z){if(!J)return!1;let Q=et.VISITOR_KEYS[J.type];if(!Q)return!1;Z=Z||{};let Y=X(J,Z);if(Y!==void 0)switch(Y){case UZ:return!1;case BZ:return!0}for(let z of Q){let H=J[z];if(!H)continue;if(Array.isArray(H)){for(let G of H)if($X(G,X,Z))return!0}else if($X(H,X,Z))return!0}return!1}$X.skip=UZ;$X.stop=BZ});var J6=N((qZ)=>{Object.defineProperty(qZ,"__esModule",{value:!0});qZ.default=Qn;var Xn=v0(),$Z=["tokens","start","end","loc","raw","rawValue"],Zn=[...Xn.COMMENT_KEYS,"comments",...$Z];function Qn(J,X={}){let Z=X.preserveComments?$Z:Zn;for(let Y of Z)if(J[Y]!=null)J[Y]=void 0;for(let Y of Object.keys(J))if(Y.startsWith("_")&&J[Y]!=null)J[Y]=void 0;let Q=Object.getOwnPropertySymbols(J);for(let Y of Q)J[Y]=null}});var X6=N((FZ)=>{Object.defineProperty(FZ,"__esModule",{value:!0});FZ.default=Gn;var zn=e2(),Hn=J6();function Gn(J,X){return(0,zn.default)(J,Hn.default,X),J}});var OZ=N((MZ)=>{Object.defineProperty(MZ,"__esModule",{value:!0});MZ.default=K0;var jZ=E1(),Vn=aJ(),Kn=X6();function K0(J,X=J.key){let Z;if(J.kind==="method")return K0.increment()+"";else if((0,jZ.isIdentifier)(X))Z=X.name;else if((0,jZ.isStringLiteral)(X))Z=JSON.stringify(X.value);else Z=JSON.stringify((0,Kn.default)((0,Vn.default)(X)));if(J.computed)Z=`[${Z}]`;if(J.static)Z=`static:${Z}`;return Z}K0.uid=0;K0.increment=function(){if(K0.uid>=Number.MAX_SAFE_INTEGER)return K0.uid=0;else return K0.uid++}});var DZ=N((AZ)=>{Object.defineProperty(AZ,"__esModule",{value:!0});AZ.default=void 0;var H9=E1(),Bn=zJ(),hw1=AZ.default=Rn;function Rn(J,X){if((0,H9.isStatement)(J))return J;let Z=!1,Q;if((0,H9.isClass)(J))Z=!0,Q="ClassDeclaration";else if((0,H9.isFunction)(J))Z=!0,Q="FunctionDeclaration";else if((0,H9.isAssignmentExpression)(J))return(0,Bn.expressionStatement)(J);if(Z&&!J.id)Q=!1;if(!Q)if(X)return!1;else throw Error(`cannot turn ${J.type} to a statement`);return J.type=Q,J}});var PZ=N((NZ)=>{Object.defineProperty(NZ,"__esModule",{value:!0});NZ.default=void 0;var $n=k0(),x1=zJ(),yw1=NZ.default=Z6,qn=Function.call.bind(Object.prototype.toString);function Fn(J){return qn(J)==="[object RegExp]"}function jn(J){if(typeof J!=="object"||J===null||Object.prototype.toString.call(J)!=="[object Object]")return!1;let X=Object.getPrototypeOf(J);return X===null||Object.getPrototypeOf(X)===null}function Z6(J){if(J===void 0)return(0,x1.identifier)("undefined");if(J===!0||J===!1)return(0,x1.booleanLiteral)(J);if(J===null)return(0,x1.nullLiteral)();if(typeof J==="string")return(0,x1.stringLiteral)(J);if(typeof J==="number"){let X;if(Number.isFinite(J))X=(0,x1.numericLiteral)(Math.abs(J));else{let Z;if(Number.isNaN(J))Z=(0,x1.numericLiteral)(0);else Z=(0,x1.numericLiteral)(1);X=(0,x1.binaryExpression)("/",Z,(0,x1.numericLiteral)(0))}if(J<0||Object.is(J,-0))X=(0,x1.unaryExpression)("-",X);return X}if(typeof J==="bigint")if(J<0)return(0,x1.unaryExpression)("-",(0,x1.bigIntLiteral)(-J));else return(0,x1.bigIntLiteral)(J);if(Fn(J)){let X=J.source,Z=/\/([a-z]*)$/.exec(J.toString())[1];return(0,x1.regExpLiteral)(X,Z)}if(Array.isArray(J))return(0,x1.arrayExpression)(J.map(Z6));if(jn(J)){let X=[];for(let Z of Object.keys(J)){let Q,Y=!1;if((0,$n.default)(Z))if(Z==="__proto__")Y=!0,Q=(0,x1.stringLiteral)(Z);else Q=(0,x1.identifier)(Z);else Q=(0,x1.stringLiteral)(Z);X.push((0,x1.objectProperty)(Q,Z6(J[Z]),Y))}return(0,x1.objectExpression)(X)}throw Error("don't know how to turn this value into a node")}});var IZ=N((SZ)=>{Object.defineProperty(SZ,"__esModule",{value:!0});SZ.default=On;var Mn=zJ();function On(J,X,Z=!1){return J.object=(0,Mn.memberExpression)(J.object,J.property,J.computed),J.property=X,J.computed=!!Z,J}});var bZ=N((LZ)=>{Object.defineProperty(LZ,"__esModule",{value:!0});LZ.default=Dn;var TZ=v0(),Cn=s2();function Dn(J,X){if(!J||!X)return J;for(let Z of TZ.INHERIT_KEYS.optional)if(J[Z]==null)J[Z]=X[Z];for(let Z of Object.keys(X))if(Z.startsWith("_")&&Z!=="__clone")J[Z]=X[Z];for(let Z of TZ.INHERIT_KEYS.force)J[Z]=X[Z];return(0,Cn.default)(J,X),J}});var vZ=N((kZ)=>{Object.defineProperty(kZ,"__esModule",{value:!0});kZ.default=Sn;var wn=zJ(),Pn=Y1();function Sn(J,X){if((0,Pn.isSuper)(J.object))throw Error("Cannot prepend node to super property access (`super.foo`).");return J.object=(0,wn.memberExpression)(X,J.object),J}});var gZ=N((EZ)=>{Object.defineProperty(EZ,"__esModule",{value:!0});EZ.default=Tn;function Tn(J){let X=[].concat(J),Z=Object.create(null);while(X.length){let Q=X.pop();if(!Q)continue;switch(Q.type){case"ArrayPattern":X.push(...Q.elements);break;case"AssignmentExpression":case"AssignmentPattern":case"ForInStatement":case"ForOfStatement":X.push(Q.left);break;case"ObjectPattern":X.push(...Q.properties);break;case"ObjectProperty":X.push(Q.value);break;case"RestElement":case"UpdateExpression":X.push(Q.argument);break;case"UnaryExpression":if(Q.operator==="delete")X.push(Q.argument);break;case"Identifier":Z[Q.name]=Q;break;default:break}}return Z}});var qX=N((_Z)=>{Object.defineProperty(_Z,"__esModule",{value:!0});_Z.default=Q6;var yJ=E1();function Q6(J,X,Z,Q){let Y=[].concat(J),z=Object.create(null);while(Y.length){let H=Y.shift();if(!H)continue;if(Q&&((0,yJ.isAssignmentExpression)(H)||(0,yJ.isUnaryExpression)(H)||(0,yJ.isUpdateExpression)(H)))continue;if((0,yJ.isIdentifier)(H)){if(X)(z[H.name]=z[H.name]||[]).push(H);else z[H.name]=H;continue}if((0,yJ.isExportDeclaration)(H)&&!(0,yJ.isExportAllDeclaration)(H)){if((0,yJ.isDeclaration)(H.declaration))Y.push(H.declaration);continue}if(Z){if((0,yJ.isFunctionDeclaration)(H)){Y.push(H.id);continue}if((0,yJ.isFunctionExpression)(H))continue}let G=Q6.keys[H.type];if(G)for(let W=0;W<G.length;W++){let V=G[W],U=H[V];if(U)if(Array.isArray(U))Y.push(...U);else Y.push(U)}}return z}var bn={DeclareClass:["id"],DeclareFunction:["id"],DeclareModule:["id"],DeclareVariable:["id"],DeclareInterface:["id"],DeclareTypeAlias:["id"],DeclareOpaqueType:["id"],InterfaceDeclaration:["id"],TypeAlias:["id"],OpaqueType:["id"],CatchClause:["param"],LabeledStatement:["label"],UnaryExpression:["argument"],AssignmentExpression:["left"],ImportSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportDefaultSpecifier:["local"],ImportDeclaration:["specifiers"],TSImportEqualsDeclaration:["id"],ExportSpecifier:["exported"],ExportNamespaceSpecifier:["exported"],ExportDefaultSpecifier:["exported"],FunctionDeclaration:["id","params"],FunctionExpression:["id","params"],ArrowFunctionExpression:["params"],ObjectMethod:["params"],ClassMethod:["params"],ClassPrivateMethod:["params"],ForInStatement:["left"],ForOfStatement:["left"],ClassDeclaration:["id"],ClassExpression:["id"],RestElement:["argument"],UpdateExpression:["argument"],ObjectProperty:["value"],AssignmentPattern:["left"],ArrayPattern:["elements"],ObjectPattern:["properties"],VariableDeclaration:["declarations"],VariableDeclarator:["id"]};Q6.keys=bn});var xZ=N((fZ)=>{Object.defineProperty(fZ,"__esModule",{value:!0});fZ.default=void 0;var vn=qX(),rw1=fZ.default=En;function En(J,X){return(0,vn.default)(J,X,!0)}});var mZ=N((uZ)=>{Object.defineProperty(uZ,"__esModule",{value:!0});uZ.default=_n;var RJ=E1();function gn(J){if((0,RJ.isNullLiteral)(J))return"null";if((0,RJ.isRegExpLiteral)(J))return`/${J.pattern}/${J.flags}`;if((0,RJ.isTemplateLiteral)(J))return J.quasis.map((X)=>X.value.raw).join("");if(J.value!==void 0)return String(J.value);return null}function yZ(J){if(!J.computed||(0,RJ.isLiteral)(J.key))return J.key}function _n(J,X){if("id"in J&&J.id)return{name:J.id.name,originalNode:J.id};let Z="",Q;if((0,RJ.isObjectProperty)(X,{value:J}))Q=yZ(X);else if((0,RJ.isObjectMethod)(J)||(0,RJ.isClassMethod)(J)){if(Q=yZ(J),J.kind==="get")Z="get ";else if(J.kind==="set")Z="set "}else if((0,RJ.isVariableDeclarator)(X,{init:J}))Q=X.id;else if((0,RJ.isAssignmentExpression)(X,{operator:"=",right:J}))Q=X.left;if(!Q)return null;let Y=(0,RJ.isLiteral)(Q)?gn(Q):(0,RJ.isIdentifier)(Q)?Q.name:(0,RJ.isPrivateName)(Q)?Q.id.name:null;if(Y==null)return null;return{name:Z+Y,originalNode:Q}}});var lZ=N((cZ)=>{Object.defineProperty(cZ,"__esModule",{value:!0});cZ.default=xn;var hn=BJ();function xn(J,X,Z){if(typeof X==="function")X={enter:X};let{enter:Q,exit:Y}=X;Y6(J,Q,Y,Z,[])}function Y6(J,X,Z,Q,Y){let z=hn.VISITOR_KEYS[J.type];if(!z)return;if(X)X(J,Y,Q);for(let H of z){let G=J[H];if(Array.isArray(G))for(let W=0;W<G.length;W++){let V=G[W];if(!V)continue;Y.push({node:J,key:H,index:W}),Y6(V,X,Z,Q,Y),Y.pop()}else if(G)Y.push({node:J,key:H}),Y6(G,X,Z,Q,Y),Y.pop()}if(Z)Z(J,Y,Q)}});var pZ=N((iZ)=>{Object.defineProperty(iZ,"__esModule",{value:!0});iZ.default=mn;var un=qX();function mn(J,X,Z){if(Z&&J.type==="Identifier"&&X.type==="ObjectProperty"&&Z.type==="ObjectExpression")return!1;let Q=un.default.keys[X.type];if(Q)for(let Y=0;Y<Q.length;Y++){let z=Q[Y],H=X[z];if(Array.isArray(H)){if(H.includes(J))return!0}else if(H===J)return!0}return!1}});var z6=N((rZ)=>{Object.defineProperty(rZ,"__esModule",{value:!0});rZ.default=rn;var ln=E1(),pn=Symbol.for("var used to be block scoped");function rn(J){return(0,ln.isVariableDeclaration)(J)&&(J.kind!=="var"||J[pn])}});var sZ=N((aZ)=>{Object.defineProperty(aZ,"__esModule",{value:!0});aZ.default=sn;var dZ=E1(),an=z6();function sn(J){return(0,dZ.isFunctionDeclaration)(J)||(0,dZ.isClassDeclaration)(J)||(0,an.default)(J)}});var nZ=N((tZ)=>{Object.defineProperty(tZ,"__esModule",{value:!0});tZ.default=en;var nn=dX(),on=E1();function en(J){if((0,nn.default)(J.type,"Immutable"))return!0;if((0,on.isIdentifier)(J))if(J.name==="undefined")return!0;else return!1;return!1}});var JQ=N((eZ)=>{Object.defineProperty(eZ,"__esModule",{value:!0});eZ.default=H6;var oZ=BJ();function H6(J,X){if(typeof J!=="object"||typeof X!=="object"||J==null||X==null)return J===X;if(J.type!==X.type)return!1;let Z=Object.keys(oZ.NODE_FIELDS[J.type]||J.type),Q=oZ.VISITOR_KEYS[J.type];for(let Y of Z){let z=J[Y],H=X[Y];if(typeof z!==typeof H)return!1;if(z==null&&H==null)continue;else if(z==null||H==null)return!1;if(Array.isArray(z)){if(!Array.isArray(H))return!1;if(z.length!==H.length)return!1;for(let G=0;G<z.length;G++)if(!H6(z[G],H[G]))return!1;continue}if(typeof z==="object"&&!(Q!=null&&Q.includes(Y))){for(let G of Object.keys(z))if(z[G]!==H[G])return!1;continue}if(!H6(z,H))return!1}return!0}});var ZQ=N((XQ)=>{Object.defineProperty(XQ,"__esModule",{value:!0});XQ.default=Zo;function Zo(J,X,Z){switch(X.type){case"MemberExpression":case"OptionalMemberExpression":if(X.property===J)return!!X.computed;return X.object===J;case"JSXMemberExpression":return X.object===J;case"VariableDeclarator":return X.init===J;case"ArrowFunctionExpression":return X.body===J;case"PrivateName":return!1;case"ClassMethod":case"ClassPrivateMethod":case"ObjectMethod":if(X.key===J)return!!X.computed;return!1;case"ObjectProperty":if(X.key===J)return!!X.computed;return(Z==null?void 0:Z.type)!=="ObjectPattern";case"ClassProperty":case"ClassAccessorProperty":if(X.key===J)return!!X.computed;return!0;case"ClassPrivateProperty":return X.key!==J;case"ClassDeclaration":case"ClassExpression":return X.superClass===J;case"AssignmentExpression":return X.right===J;case"AssignmentPattern":return X.right===J;case"LabeledStatement":return!1;case"CatchClause":return!1;case"RestElement":return!1;case"BreakStatement":case"ContinueStatement":return!1;case"FunctionDeclaration":case"FunctionExpression":return!1;case"ExportNamespaceSpecifier":case"ExportDefaultSpecifier":return!1;case"ExportSpecifier":if(Z!=null&&Z.source)return!1;return X.local===J;case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":case"ImportSpecifier":return!1;case"ImportAttribute":return!1;case"JSXAttribute":return!1;case"ObjectPattern":case"ArrayPattern":return!1;case"MetaProperty":return!1;case"ObjectTypeProperty":return X.key!==J;case"TSEnumMember":return X.id!==J;case"TSPropertySignature":if(X.key===J)return!!X.computed;return!0}return!0}});var YQ=N((QQ)=>{Object.defineProperty(QQ,"__esModule",{value:!0});QQ.default=Yo;var U0=E1();function Yo(J,X){if((0,U0.isBlockStatement)(J)&&((0,U0.isFunction)(X)||(0,U0.isCatchClause)(X)))return!1;if((0,U0.isPattern)(J)&&((0,U0.isFunction)(X)||(0,U0.isCatchClause)(X)))return!0;return(0,U0.isScopable)(J)}});var GQ=N((HQ)=>{Object.defineProperty(HQ,"__esModule",{value:!0});HQ.default=Ho;var zQ=E1();function Ho(J){return(0,zQ.isImportDefaultSpecifier)(J)||(0,zQ.isIdentifier)(J.imported||J.exported,{name:"default"})}});var VQ=N((WQ)=>{Object.defineProperty(WQ,"__esModule",{value:!0});WQ.default=Ko;var Wo=k0(),Vo=new Set(["abstract","boolean","byte","char","double","enum","final","float","goto","implements","int","interface","long","native","package","private","protected","public","short","static","synchronized","throws","transient","volatile"]);function Ko(J){return(0,Wo.default)(J)&&!Vo.has(J)}});var UQ=N((KQ)=>{Object.defineProperty(KQ,"__esModule",{value:!0});KQ.default=$o;var Bo=E1(),Ro=Symbol.for("var used to be block scoped");function $o(J){return(0,Bo.isVariableDeclaration)(J,{kind:"var"})&&!J[Ro]}});var RQ=N((BQ)=>{Object.defineProperty(BQ,"__esModule",{value:!0});BQ.default=G9;var Fo=qX(),B0=E1(),G6=zJ(),W6=l2(),jo=aJ();function G9(J,X){let Z=[],Q=!0;for(let Y of J){if(!(0,B0.isEmptyStatement)(Y))Q=!1;if((0,B0.isExpression)(Y))Z.push(Y);else if((0,B0.isExpressionStatement)(Y))Z.push(Y.expression);else if((0,B0.isVariableDeclaration)(Y)){if(Y.kind!=="var")return;for(let z of Y.declarations){let H=(0,Fo.default)(z);for(let G of Object.keys(H))X.push({kind:Y.kind,id:(0,jo.default)(H[G])});if(z.init)Z.push((0,G6.assignmentExpression)("=",z.id,z.init))}Q=!0}else if((0,B0.isIfStatement)(Y)){let z=Y.consequent?G9([Y.consequent],X):(0,W6.buildUndefinedNode)(),H=Y.alternate?G9([Y.alternate],X):(0,W6.buildUndefinedNode)();if(!z||!H)return;Z.push((0,G6.conditionalExpression)(Y.test,z,H))}else if((0,B0.isBlockStatement)(Y)){let z=G9(Y.body,X);if(!z)return;Z.push(z)}else if((0,B0.isEmptyStatement)(Y)){if(J.indexOf(Y)===0)Q=!0}else return}if(Q)Z.push((0,W6.buildUndefinedNode)());if(Z.length===1)return Z[0];else return(0,G6.sequenceExpression)(Z)}});var qQ=N(($Q)=>{Object.defineProperty($Q,"__esModule",{value:!0});$Q.default=Ao;var Oo=RQ();function Ao(J,X){if(!(J!=null&&J.length))return;let Z=[],Q=(0,Oo.default)(J,Z);if(!Q)return;for(let Y of Z)X.push(Y);return Q}});var Y1=N((x)=>{Object.defineProperty(x,"__esModule",{value:!0});var sJ={react:!0,assertNode:!0,createTypeAnnotationBasedOnTypeof:!0,createUnionTypeAnnotation:!0,createFlowUnionType:!0,createTSUnionType:!0,cloneNode:!0,clone:!0,cloneDeep:!0,cloneDeepWithoutLoc:!0,cloneWithoutLoc:!0,addComment:!0,addComments:!0,inheritInnerComments:!0,inheritLeadingComments:!0,inheritsComments:!0,inheritTrailingComments:!0,removeComments:!0,ensureBlock:!0,toBindingIdentifierName:!0,toBlock:!0,toComputedKey:!0,toExpression:!0,toIdentifier:!0,toKeyAlias:!0,toStatement:!0,valueToNode:!0,appendToMemberExpression:!0,inherits:!0,prependToMemberExpression:!0,removeProperties:!0,removePropertiesDeep:!0,removeTypeDuplicates:!0,getAssignmentIdentifiers:!0,getBindingIdentifiers:!0,getOuterBindingIdentifiers:!0,getFunctionName:!0,traverse:!0,traverseFast:!0,shallowEqual:!0,is:!0,isBinding:!0,isBlockScoped:!0,isImmutable:!0,isLet:!0,isNode:!0,isNodesEquivalent:!0,isPlaceholderType:!0,isReferenced:!0,isScope:!0,isSpecifierDefault:!0,isType:!0,isValidES3Identifier:!0,isValidIdentifier:!0,isVar:!0,matchesPattern:!0,validate:!0,buildMatchMemberExpression:!0,__internal__deprecationWarning:!0};Object.defineProperty(x,"__internal__deprecationWarning",{enumerable:!0,get:function(){return Se.default}});Object.defineProperty(x,"addComment",{enumerable:!0,get:function(){return Eo.default}});Object.defineProperty(x,"addComments",{enumerable:!0,get:function(){return go.default}});Object.defineProperty(x,"appendToMemberExpression",{enumerable:!0,get:function(){return to.default}});Object.defineProperty(x,"assertNode",{enumerable:!0,get:function(){return Po.default}});Object.defineProperty(x,"buildMatchMemberExpression",{enumerable:!0,get:function(){return Pe.default}});Object.defineProperty(x,"clone",{enumerable:!0,get:function(){return Lo.default}});Object.defineProperty(x,"cloneDeep",{enumerable:!0,get:function(){return bo.default}});Object.defineProperty(x,"cloneDeepWithoutLoc",{enumerable:!0,get:function(){return ko.default}});Object.defineProperty(x,"cloneNode",{enumerable:!0,get:function(){return To.default}});Object.defineProperty(x,"cloneWithoutLoc",{enumerable:!0,get:function(){return vo.default}});Object.defineProperty(x,"createFlowUnionType",{enumerable:!0,get:function(){return FQ.default}});Object.defineProperty(x,"createTSUnionType",{enumerable:!0,get:function(){return Io.default}});Object.defineProperty(x,"createTypeAnnotationBasedOnTypeof",{enumerable:!0,get:function(){return So.default}});Object.defineProperty(x,"createUnionTypeAnnotation",{enumerable:!0,get:function(){return FQ.default}});Object.defineProperty(x,"ensureBlock",{enumerable:!0,get:function(){return uo.default}});Object.defineProperty(x,"getAssignmentIdentifiers",{enumerable:!0,get:function(){return Ze.default}});Object.defineProperty(x,"getBindingIdentifiers",{enumerable:!0,get:function(){return Qe.default}});Object.defineProperty(x,"getFunctionName",{enumerable:!0,get:function(){return ze.default}});Object.defineProperty(x,"getOuterBindingIdentifiers",{enumerable:!0,get:function(){return Ye.default}});Object.defineProperty(x,"inheritInnerComments",{enumerable:!0,get:function(){return _o.default}});Object.defineProperty(x,"inheritLeadingComments",{enumerable:!0,get:function(){return fo.default}});Object.defineProperty(x,"inheritTrailingComments",{enumerable:!0,get:function(){return xo.default}});Object.defineProperty(x,"inherits",{enumerable:!0,get:function(){return no.default}});Object.defineProperty(x,"inheritsComments",{enumerable:!0,get:function(){return ho.default}});Object.defineProperty(x,"is",{enumerable:!0,get:function(){return We.default}});Object.defineProperty(x,"isBinding",{enumerable:!0,get:function(){return Ve.default}});Object.defineProperty(x,"isBlockScoped",{enumerable:!0,get:function(){return Ke.default}});Object.defineProperty(x,"isImmutable",{enumerable:!0,get:function(){return Ue.default}});Object.defineProperty(x,"isLet",{enumerable:!0,get:function(){return Be.default}});Object.defineProperty(x,"isNode",{enumerable:!0,get:function(){return Re.default}});Object.defineProperty(x,"isNodesEquivalent",{enumerable:!0,get:function(){return $e.default}});Object.defineProperty(x,"isPlaceholderType",{enumerable:!0,get:function(){return qe.default}});Object.defineProperty(x,"isReferenced",{enumerable:!0,get:function(){return Fe.default}});Object.defineProperty(x,"isScope",{enumerable:!0,get:function(){return je.default}});Object.defineProperty(x,"isSpecifierDefault",{enumerable:!0,get:function(){return Me.default}});Object.defineProperty(x,"isType",{enumerable:!0,get:function(){return Oe.default}});Object.defineProperty(x,"isValidES3Identifier",{enumerable:!0,get:function(){return Ae.default}});Object.defineProperty(x,"isValidIdentifier",{enumerable:!0,get:function(){return Ce.default}});Object.defineProperty(x,"isVar",{enumerable:!0,get:function(){return De.default}});Object.defineProperty(x,"matchesPattern",{enumerable:!0,get:function(){return Ne.default}});Object.defineProperty(x,"prependToMemberExpression",{enumerable:!0,get:function(){return oo.default}});x.react=void 0;Object.defineProperty(x,"removeComments",{enumerable:!0,get:function(){return yo.default}});Object.defineProperty(x,"removeProperties",{enumerable:!0,get:function(){return eo.default}});Object.defineProperty(x,"removePropertiesDeep",{enumerable:!0,get:function(){return Je.default}});Object.defineProperty(x,"removeTypeDuplicates",{enumerable:!0,get:function(){return Xe.default}});Object.defineProperty(x,"shallowEqual",{enumerable:!0,get:function(){return Ge.default}});Object.defineProperty(x,"toBindingIdentifierName",{enumerable:!0,get:function(){return mo.default}});Object.defineProperty(x,"toBlock",{enumerable:!0,get:function(){return co.default}});Object.defineProperty(x,"toComputedKey",{enumerable:!0,get:function(){return lo.default}});Object.defineProperty(x,"toExpression",{enumerable:!0,get:function(){return io.default}});Object.defineProperty(x,"toIdentifier",{enumerable:!0,get:function(){return po.default}});Object.defineProperty(x,"toKeyAlias",{enumerable:!0,get:function(){return ro.default}});Object.defineProperty(x,"toStatement",{enumerable:!0,get:function(){return ao.default}});Object.defineProperty(x,"traverse",{enumerable:!0,get:function(){return W9.default}});Object.defineProperty(x,"traverseFast",{enumerable:!0,get:function(){return He.default}});Object.defineProperty(x,"validate",{enumerable:!0,get:function(){return we.default}});Object.defineProperty(x,"valueToNode",{enumerable:!0,get:function(){return so.default}});var Do=m7(),No=l7(),wo=H5(),Po=V5(),V6=U5();Object.keys(V6).forEach(function(J){if(J==="default"||J==="__esModule")return;if(Object.prototype.hasOwnProperty.call(sJ,J))return;if(J in x&&x[J]===V6[J])return;Object.defineProperty(x,J,{enumerable:!0,get:function(){return V6[J]}})});var So=$5(),FQ=O5(),Io=P5(),K6=l2();Object.keys(K6).forEach(function(J){if(J==="default"||J==="__esModule")return;if(Object.prototype.hasOwnProperty.call(sJ,J))return;if(J in x&&x[J]===K6[J])return;Object.defineProperty(x,J,{enumerable:!0,get:function(){return K6[J]}})});var U6=zJ();Object.keys(U6).forEach(function(J){if(J==="default"||J==="__esModule")return;if(Object.prototype.hasOwnProperty.call(sJ,J))return;if(J in x&&x[J]===U6[J])return;Object.defineProperty(x,J,{enumerable:!0,get:function(){return U6[J]}})});var To=aJ(),Lo=g5(),bo=f5(),ko=x5(),vo=u5(),Eo=l5(),go=p2(),_o=r2(),fo=d2(),ho=s2(),xo=a2(),yo=t5(),B6=e5();Object.keys(B6).forEach(function(J){if(J==="default"||J==="__esModule")return;if(Object.prototype.hasOwnProperty.call(sJ,J))return;if(J in x&&x[J]===B6[J])return;Object.defineProperty(x,J,{enumerable:!0,get:function(){return B6[J]}})});var R6=v0();Object.keys(R6).forEach(function(J){if(J==="default"||J==="__esModule")return;if(Object.prototype.hasOwnProperty.call(sJ,J))return;if(J in x&&x[J]===R6[J])return;Object.defineProperty(x,J,{enumerable:!0,get:function(){return R6[J]}})});var uo=ZZ(),mo=zZ(),co=n2(),lo=GZ(),io=KZ(),po=o2(),ro=OZ(),ao=DZ(),so=PZ(),$6=BJ();Object.keys($6).forEach(function(J){if(J==="default"||J==="__esModule")return;if(Object.prototype.hasOwnProperty.call(sJ,J))return;if(J in x&&x[J]===$6[J])return;Object.defineProperty(x,J,{enumerable:!0,get:function(){return $6[J]}})});var to=IZ(),no=bZ(),oo=vZ(),eo=J6(),Je=X6(),Xe=c2(),Ze=gZ(),Qe=qX(),Ye=xZ(),ze=mZ(),W9=lZ();Object.keys(W9).forEach(function(J){if(J==="default"||J==="__esModule")return;if(Object.prototype.hasOwnProperty.call(sJ,J))return;if(J in x&&x[J]===W9[J])return;Object.defineProperty(x,J,{enumerable:!0,get:function(){return W9[J]}})});var He=e2(),Ge=rX(),We=b0(),Ve=pZ(),Ke=sZ(),Ue=nZ(),Be=z6(),Re=m2(),$e=JQ(),qe=j2(),Fe=ZQ(),je=YQ(),Me=GQ(),Oe=dX(),Ae=VQ(),Ce=k0(),De=UQ(),Ne=q2(),we=nX(),Pe=F2(),q6=E1();Object.keys(q6).forEach(function(J){if(J==="default"||J==="__esModule")return;if(Object.prototype.hasOwnProperty.call(sJ,J))return;if(J in x&&x[J]===q6[J])return;Object.defineProperty(x,J,{enumerable:!0,get:function(){return q6[J]}})});var Se=L0(),Ie=qQ(),WP1=x.react={isReactComponent:Do.default,isCompatTag:No.default,buildChildren:wo.default};x.toSequenceExpression=Ie.default;if(process.env.BABEL_TYPES_8_BREAKING)console.warn("BABEL_TYPES_8_BREAKING is not supported anymore. Use the latest Babel 8.0.0 pre-release instead!")});var PQ=N((wQ)=>{Object.defineProperty(wQ,"__esModule",{value:!0});wQ.AssignmentExpression=J11;wQ.BinaryExpression=de;wQ.ClassExpression=ne;wQ.ArrowFunctionExpression=wQ.ConditionalExpression=NQ;wQ.DoExpression=xe;wQ.FunctionExpression=oe;wQ.FunctionTypeAnnotation=_e;wQ.Identifier=X11;wQ.LogicalExpression=ae;wQ.NullableTypeAnnotation=ge;wQ.ObjectExpression=he;wQ.OptionalIndexedAccessType=ue;wQ.OptionalCallExpression=wQ.OptionalMemberExpression=ee;wQ.SequenceExpression=se;wQ.TSSatisfiesExpression=wQ.TSAsExpression=me;wQ.TSConditionalType=ce;wQ.TSConstructorType=wQ.TSFunctionType=re;wQ.TSInferType=ie;wQ.TSInstantiationExpression=pe;wQ.TSIntersectionType=le;wQ.SpreadElement=wQ.UnaryExpression=wQ.TSTypeAssertion=DQ;wQ.TSTypeOperator=j6;wQ.TSUnionType=CQ;wQ.IntersectionTypeAnnotation=wQ.UnionTypeAnnotation=ye;wQ.UpdateExpression=fe;wQ.AwaitExpression=wQ.YieldExpression=te;var Le=Y1(),p1=tJ(),{isMemberExpression:be,isOptionalMemberExpression:ke,isYieldExpression:ve,isStatement:Ee}=Le,MQ=new Map([["||",0],["??",1],["&&",2],["|",3],["^",4],["&",5],["==",6],["===",6],["!=",6],["!==",6],["<",7],[">",7],["<=",7],[">=",7],["in",7],["instanceof",7],[">>",8],["<<",8],[">>>",8],["+",9],["-",9],["*",10],["/",10],["%",10],["**",11]]);function OQ(J){return J===156||J===201||J===209}var V9=(J,X,Z)=>{return(Z===21||Z===22)&&X.superClass===J},K9=(J,X,Z)=>{switch(Z){case 108:case 132:return X.object===J;case 17:case 130:case 112:return X.callee===J;case 222:return X.tag===J;case 191:return!0}return!1};function ge(J,X,Z){return Z===4}function _e(J,X,Z,Q){return Z===239||Z===90||Z===4||(Q&p1.TokenContext.arrowFlowReturnType)>0}function fe(J,X,Z){return K9(J,X,Z)||V9(J,X,Z)}function AQ(J){return(J&(p1.TokenContext.expressionStatement|p1.TokenContext.arrowBody))>0}function he(J,X,Z,Q){return AQ(Q)}function xe(J,X,Z,Q){return(Q&p1.TokenContext.expressionStatement)>0&&!J.async}function F6(J,X,Z,Q){if(V9(J,X,Z))return!0;if(K9(J,X,Z)||Z===238||Z===145||Z===8)return!0;let Y;switch(Z){case 10:case 107:Y=MQ.get(X.operator);break;case 156:case 201:Y=7}if(Y!==void 0){let z=Q===2?7:MQ.get(J.operator);if(Y>z)return!0;if(Y===z&&Z===10&&(z===11?X.left===J:X.right===J))return!0;if(Q===1&&Z===107&&(z===1&&Y!==1||Y===1&&z!==1))return!0}return!1}function ye(J,X,Z){switch(Z){case 4:case 115:case 90:case 239:return!0}return!1}function ue(J,X,Z){return Z===84&&X.objectType===J}function me(J,X,Z){if((Z===6||Z===7)&&X.left===J)return!0;if(Z===10&&(X.operator==="|"||X.operator==="&")&&J===X.left)return!0;return F6(J,X,Z,2)}function ce(J,X,Z){switch(Z){case 155:case 195:case 211:case 212:return!0;case 175:return X.objectType===J;case 181:case 219:return X.types[0]===J;case 161:return X.checkType===J||X.extendsType===J}return!1}function CQ(J,X,Z){switch(Z){case 181:case 211:case 155:case 195:return!0;case 175:return X.objectType===J}return!1}function le(J,X,Z){return Z===211||j6(J,X,Z)}function ie(J,X,Z){if(j6(J,X,Z))return!0;if((Z===181||Z===219)&&J.typeParameter.constraint&&X.types[0]===J)return!0;return!1}function j6(J,X,Z){switch(Z){case 155:case 195:return!0;case 175:if(X.objectType===J)return!0}return!1}function pe(J,X,Z){switch(Z){case 17:case 130:case 112:case 177:return X.typeParameters!=null}return!1}function re(J,X,Z){if(CQ(J,X,Z))return!0;return Z===219||Z===161&&(X.checkType===J||X.extendsType===J)}function de(J,X,Z,Q){if(F6(J,X,Z,0))return!0;return(Q&p1.TokenContext.forInOrInitHeadAccumulate)>0&&J.operator==="in"}function ae(J,X,Z){return F6(J,X,Z,1)}function se(J,X,Z){if(Z===144||Z===133||Z===108&&X.property===J||Z===132&&X.property===J||Z===224)return!1;if(Z===21)return!0;if(Z===68)return X.right===J;if(Z===60)return!0;return!Ee(X)}function te(J,X,Z){return Z===10||Z===107||Z===238||Z===145||K9(J,X,Z)||Z===8&&ve(J)||Z===28&&J===X.test||V9(J,X,Z)||OQ(Z)}function ne(J,X,Z,Q){return(Q&(p1.TokenContext.expressionStatement|p1.TokenContext.exportDefault))>0}function DQ(J,X,Z){return K9(J,X,Z)||Z===10&&X.operator==="**"&&X.left===J||V9(J,X,Z)}function oe(J,X,Z,Q){return(Q&(p1.TokenContext.expressionStatement|p1.TokenContext.exportDefault))>0}function NQ(J,X,Z){switch(Z){case 238:case 145:case 10:case 107:case 8:return!0;case 28:if(X.test===J)return!0}if(OQ(Z))return!0;return DQ(J,X,Z)}function ee(J,X,Z){switch(Z){case 17:return X.callee===J;case 108:return X.object===J}return!1}function J11(J,X,Z,Q){if(AQ(Q)&&J.left.type==="ObjectPattern")return!0;return NQ(J,X,Z)}function X11(J,X,Z,Q,Y){var z;if(Y&&Y(J)!==J.name)return!1;if(Z===6&&(z=J.extra)!=null&&z.parenthesized&&X.left===J){let H=X.right.type;if((H==="FunctionExpression"||H==="ClassExpression")&&X.right.id==null)return!0}if(Q&p1.TokenContext.forOfHead||(Z===108||Z===132)&&Q&(p1.TokenContext.expressionStatement|p1.TokenContext.forInitHead|p1.TokenContext.forInHead)){if(J.name==="let"){if((be(X,{object:J,computed:!0})||ke(X,{object:J,computed:!0,optional:!1}))&&Q&(p1.TokenContext.expressionStatement|p1.TokenContext.forInitHead|p1.TokenContext.forInHead))return!0;return(Q&p1.TokenContext.forOfHead)>0}}return Z===68&&X.left===J&&J.name==="async"&&!X.await}});var M6=N((IQ)=>{Object.defineProperty(IQ,"__esModule",{value:!0});IQ.TaggedTemplateExpression=T11;IQ.TemplateElement=L11;IQ.TemplateLiteral=b11;IQ._printTemplate=SQ;function T11(J){this.print(J.tag),this.print(J.typeParameters),this.print(J.quasi)}function L11(){throw Error("TemplateElement printing is handled in TemplateLiteral")}function SQ(J,X){let Z=J.quasis,Q="`";for(let Y=0;Y<Z.length-1;Y++)if(Q+=Z[Y].value.raw,this.token(Q+"${",!0),this.print(X[Y]),Q="}",this.tokenMap){let z=this.tokenMap.findMatching(J,"}",Y);if(z)this._catchUpTo(z.loc.start)}Q+=Z[Z.length-1].value.raw,this.token(Q+"`",!0)}function b11(J){SQ.call(this,J,J.expressions)}});var U9=N((LQ)=>{Object.defineProperty(LQ,"__esModule",{value:!0});LQ.LogicalExpression=LQ.AssignmentExpression=HJ1;LQ.AssignmentPattern=zJ1;LQ.AwaitExpression=XJ1;LQ.BinaryExpression=GJ1;LQ.BindExpression=WJ1;LQ.CallExpression=e11;LQ.ConditionalExpression=i11;LQ.Decorator=t11;LQ.DoExpression=m11;LQ.EmptyStatement=QJ1;LQ.ExpressionStatement=YJ1;LQ.Import=JJ1;LQ.MemberExpression=VJ1;LQ.MetaProperty=KJ1;LQ.ModuleExpression=RJ1;LQ.NewExpression=p11;LQ.OptionalCallExpression=o11;LQ.OptionalMemberExpression=n11;LQ.ParenthesizedExpression=c11;LQ.PrivateName=UJ1;LQ.SequenceExpression=r11;LQ.Super=a11;LQ.ThisExpression=d11;LQ.UnaryExpression=u11;LQ.UpdateExpression=l11;LQ.V8IntrinsicIdentifier=BJ1;LQ.YieldExpression=ZJ1;LQ._shouldPrintDecoratorsBeforeExport=s11;var _11=Y1(),f11=tJ(),{isCallExpression:h11,isLiteral:TQ,isMemberExpression:O6,isNewExpression:x11,isPattern:y11}=_11;function u11(J){let{operator:X}=J,Z=X.charCodeAt(0);if(Z>=97&&Z<=122)this.word(X),this.space();else this.tokenChar(Z);this.print(J.argument)}function m11(J){if(J.async)this.word("async",!0),this.space();this.word("do"),this.space(),this.print(J.body)}function c11(J){this.tokenChar(40);let X=this.enterDelimited();this.print(J.expression,void 0,!0),this._noLineTerminatorAfterNode=X,this.rightParens(J)}function l11(J){if(J.prefix)this.token(J.operator,!1,0,!0),this.print(J.argument);else this.print(J.argument,!0),this.token(J.operator,!1,0,!0)}function i11(J){this.print(J.test),this.space(),this.tokenChar(63),this.space(),this.print(J.consequent),this.space(),this.tokenChar(58),this.space(),this.print(J.alternate)}function p11(J,X){if(this.word("new"),this.space(),this.print(J.callee),this.format.minified&&J.arguments.length===0&&!J.optional&&!h11(X,{callee:J})&&!O6(X)&&!x11(X))return;if(this.print(J.typeArguments),this.print(J.typeParameters),J.optional)this.token("?.");if(J.arguments.length===0&&this.tokenMap&&!this.tokenMap.endMatches(J,")"))return;this.tokenChar(40);let Z=this.enterDelimited();this.printList(J.arguments,this.shouldPrintTrailingComma(")"),void 0,void 0,void 0,!0),this._noLineTerminatorAfterNode=Z,this.rightParens(J)}function r11(J){this.printList(J.expressions)}function d11(){this.word("this")}function a11(){this.word("super")}function s11(J){if(typeof this.format.decoratorsBeforeExport==="boolean")return this.format.decoratorsBeforeExport;return typeof J.start==="number"&&J.start===J.declaration.start}function t11(J){this.tokenChar(64);let{expression:X}=J;this.print(X),this.newline()}function n11(J){let{computed:X}=J,{optional:Z,property:Q}=J;if(this.print(J.object),!X&&O6(Q))throw TypeError("Got a MemberExpression for MemberExpression property");if(TQ(Q)&&typeof Q.value==="number")X=!0;if(Z)this.token("?.");if(X)this.tokenChar(91),this.print(Q),this.tokenChar(93);else{if(!Z)this.tokenChar(46);this.print(Q)}}function o11(J){if(this.print(J.callee),this.print(J.typeParameters),J.optional)this.token("?.");this.print(J.typeArguments),this.tokenChar(40);let X=this.enterDelimited();this.printList(J.arguments,void 0,void 0,void 0,void 0,!0),this._noLineTerminatorAfterNode=X,this.rightParens(J)}function e11(J){this.print(J.callee),this.print(J.typeArguments),this.print(J.typeParameters),this.tokenChar(40);let X=this.enterDelimited();this.printList(J.arguments,this.shouldPrintTrailingComma(")"),void 0,void 0,void 0,!0),this._noLineTerminatorAfterNode=X,this.rightParens(J)}function JJ1(){this.word("import")}function XJ1(J){this.word("await"),this.space(),this.print(J.argument)}function ZJ1(J){if(J.delegate){if(this.word("yield",!0),this.tokenChar(42),J.argument)this.space(),this.print(J.argument)}else if(J.argument)this.word("yield",!0),this.space(),this.print(J.argument);else this.word("yield")}function QJ1(){this.semicolon(!0)}function YJ1(J){this.tokenContext|=f11.TokenContext.expressionStatement,this.print(J.expression),this.semicolon()}function zJ1(J){if(this.print(J.left),J.left.type==="Identifier"||y11(J.left)){if(J.left.optional)this.tokenChar(63);this.print(J.left.typeAnnotation)}this.space(),this.tokenChar(61),this.space(),this.print(J.right)}function HJ1(J){this.print(J.left),this.space(),this.token(J.operator,!1,0,!0),this.space(),this.print(J.right)}function GJ1(J){this.print(J.left),this.space();let{operator:X}=J;if(X.charCodeAt(0)===105)this.word(X);else this.token(X,!1,0,!0),this.setLastChar(X.charCodeAt(X.length-1));this.space(),this.print(J.right)}function WJ1(J){this.print(J.object),this.token("::"),this.print(J.callee)}function VJ1(J){if(this.print(J.object),!J.computed&&O6(J.property))throw TypeError("Got a MemberExpression for MemberExpression property");let X=J.computed;if(TQ(J.property)&&typeof J.property.value==="number")X=!0;if(X){let Z=this.enterDelimited();this.tokenChar(91),this.print(J.property,void 0,!0),this.tokenChar(93),this._noLineTerminatorAfterNode=Z}else this.tokenChar(46),this.print(J.property)}function KJ1(J){this.print(J.meta),this.tokenChar(46),this.print(J.property)}function UJ1(J){this.tokenChar(35),this.print(J.id)}function BJ1(J){this.tokenChar(37),this.word(J.name)}function RJ1(J){this.word("module",!0),this.space(),this.tokenChar(123),this.indent();let{body:X}=J;if(X.body.length||X.directives.length)this.newline();this.print(X),this.dedent(),this.rightBrace(J)}});var vQ=N((kQ)=>{Object.defineProperty(kQ,"__esModule",{value:!0});kQ.BreakStatement=eJ1;kQ.CatchClause=z01;kQ.ContinueStatement=J01;kQ.DebuggerStatement=W01;kQ.DoWhileStatement=oJ1;kQ.ForInStatement=tJ1;kQ.ForOfStatement=nJ1;kQ.ForStatement=aJ1;kQ.IfStatement=dJ1;kQ.LabeledStatement=Q01;kQ.ReturnStatement=X01;kQ.SwitchCase=G01;kQ.SwitchStatement=H01;kQ.ThrowStatement=Z01;kQ.TryStatement=Y01;kQ.VariableDeclaration=K01;kQ.VariableDeclarator=U01;kQ.WhileStatement=sJ1;kQ.WithStatement=rJ1;var cJ1=Y1(),R0=tJ(),{isFor:lJ1,isIfStatement:iJ1,isStatement:pJ1}=cJ1;function rJ1(J){this.word("with"),this.space(),this.tokenChar(40),this.print(J.object),this.tokenChar(41),this.printBlock(J.body)}function dJ1(J){this.word("if"),this.space(),this.tokenChar(40),this.print(J.test),this.tokenChar(41),this.space();let X=J.alternate&&iJ1(bQ(J.consequent));if(X)this.tokenChar(123),this.newline(),this.indent();if(this.printAndIndentOnComments(J.consequent),X)this.dedent(),this.newline(),this.tokenChar(125);if(J.alternate){if(this.endsWith(125))this.space();this.word("else"),this.space(),this.printAndIndentOnComments(J.alternate)}}function bQ(J){let{body:X}=J;if(pJ1(X)===!1)return J;return bQ(X)}function aJ1(J){if(this.word("for"),this.space(),this.tokenChar(40),this.tokenContext|=R0.TokenContext.forInitHead|R0.TokenContext.forInOrInitHeadAccumulate,this.print(J.init),this.tokenContext=R0.TokenContext.normal,this.tokenChar(59),J.test)this.space(),this.print(J.test);if(this.tokenChar(59,1),J.update)this.space(),this.print(J.update);this.tokenChar(41),this.printBlock(J.body)}function sJ1(J){this.word("while"),this.space(),this.tokenChar(40),this.print(J.test),this.tokenChar(41),this.printBlock(J.body)}function tJ1(J){this.word("for"),this.space(),this.noIndentInnerCommentsHere(),this.tokenChar(40),this.tokenContext|=R0.TokenContext.forInHead|R0.TokenContext.forInOrInitHeadAccumulate,this.print(J.left),this.tokenContext=R0.TokenContext.normal,this.space(),this.word("in"),this.space(),this.print(J.right),this.tokenChar(41),this.printBlock(J.body)}function nJ1(J){if(this.word("for"),this.space(),J.await)this.word("await"),this.space();this.noIndentInnerCommentsHere(),this.tokenChar(40),this.tokenContext|=R0.TokenContext.forOfHead,this.print(J.left),this.space(),this.word("of"),this.space(),this.print(J.right),this.tokenChar(41),this.printBlock(J.body)}function oJ1(J){this.word("do"),this.space(),this.print(J.body),this.space(),this.word("while"),this.space(),this.tokenChar(40),this.print(J.test),this.tokenChar(41),this.semicolon()}function B9(J,X){if(X)J.space(),J.printTerminatorless(X);J.semicolon()}function eJ1(J){this.word("break"),B9(this,J.label)}function J01(J){this.word("continue"),B9(this,J.label)}function X01(J){this.word("return"),B9(this,J.argument)}function Z01(J){this.word("throw"),B9(this,J.argument)}function Q01(J){this.print(J.label),this.tokenChar(58),this.space(),this.print(J.body)}function Y01(J){if(this.word("try"),this.space(),this.print(J.block),this.space(),J.handlers)this.print(J.handlers[0]);else this.print(J.handler);if(J.finalizer)this.space(),this.word("finally"),this.space(),this.print(J.finalizer)}function z01(J){if(this.word("catch"),this.space(),J.param)this.tokenChar(40),this.print(J.param),this.print(J.param.typeAnnotation),this.tokenChar(41),this.space();this.print(J.body)}function H01(J){this.word("switch"),this.space(),this.tokenChar(40),this.print(J.discriminant),this.tokenChar(41),this.space(),this.tokenChar(123),this.printSequence(J.cases,!0),this.rightBrace(J)}function G01(J){if(J.test)this.word("case"),this.space(),this.print(J.test),this.tokenChar(58);else this.word("default"),this.tokenChar(58);if(J.consequent.length)this.newline(),this.printSequence(J.consequent,!0)}function W01(){this.word("debugger"),this.semicolon()}function V01(J){this.tokenChar(44,J),this.newline()}function K01(J,X){if(J.declare)this.word("declare"),this.space();let{kind:Z}=J;switch(Z){case"await using":this.word("await"),this.space();case"using":this.word("using",!0);break;default:this.word(Z)}this.space();let Q=!1;if(!lJ1(X)){for(let Y of J.declarations)if(Y.init){Q=!0;break}}if(this.printList(J.declarations,void 0,void 0,J.declarations.length>1,Q?V01:void 0),X!=null)switch(X.type){case"ForStatement":if(X.init===J)return;break;case"ForInStatement":case"ForOfStatement":if(X.left===J)return}this.semicolon()}function U01(J){if(this.print(J.id),J.definite)this.tokenChar(33);if(this.print(J.id.typeAnnotation),J.init)this.space(),this.tokenChar(61),this.space(),this.print(J.init)}});var FX=N((hQ)=>{Object.defineProperty(hQ,"__esModule",{value:!0});hQ.ArrowFunctionExpression=f01;hQ.FunctionDeclaration=hQ.FunctionExpression=_01;hQ._functionHead=_Q;hQ._methodHead=g01;hQ._param=gQ;hQ._parameters=EQ;hQ._params=h0;hQ._predicate=A6;hQ._shouldPrintArrowParamsParens=fQ;var k01=Y1(),v01=tJ(),{isIdentifier:E01}=k01;function h0(J,X,Z,Q){if(this.print(J.typeParameters),Z!==void 0||Q!==void 0){let Y=h01.call(this,Z,Q);if(Y)this.sourceIdentifierName(Y.name,Y.pos)}this.tokenChar(40),EQ.call(this,J.params,41),this.print(J.returnType,X),this._noLineTerminator=X}function EQ(J,X){let Z=this.enterDelimited(),Q=this.shouldPrintTrailingComma(X),Y=J.length;for(let z=0;z<Y;z++)if(gQ.call(this,J[z]),Q||z<Y-1)this.tokenChar(44,z),this.space();this.tokenChar(X),this._noLineTerminatorAfterNode=Z}function gQ(J){if(this.printJoin(J.decorators,void 0,void 0,void 0,void 0,!0),this.print(J,void 0,!0),J.optional)this.tokenChar(63);this.print(J.typeAnnotation,void 0,!0)}function g01(J){let{kind:X,key:Z}=J;if(X==="get"||X==="set")this.word(X),this.space();if(J.async)this.word("async",!0),this.space();if(X==="method"||X==="init"){if(J.generator)this.tokenChar(42)}if(J.computed)this.tokenChar(91),this.print(Z),this.tokenChar(93);else this.print(Z);if(J.optional)this.tokenChar(63);if(this._buf._map)h0.call(this,J,!1,J.computed&&J.key.type!=="StringLiteral"?void 0:J.key);else h0.call(this,J,!1)}function A6(J,X){if(J.predicate){if(!J.returnType)this.tokenChar(58);this.space(),this.print(J.predicate,X)}}function _Q(J,X,Z){if(J.async){if(this.word("async"),!this.format.preserveFormat)this._innerCommentsState=0;this.space()}if(this.word("function"),J.generator){if(!this.format.preserveFormat)this._innerCommentsState=0;this.tokenChar(42)}if(this.space(),J.id)this.print(J.id);if(this._buf._map)h0.call(this,J,!1,J.id,X);else h0.call(this,J,!1);if(Z)A6.call(this,J)}function _01(J,X){_Q.call(this,J,X,!0),this.space(),this.print(J.body)}function f01(J,X){if(J.async)this.word("async",!0),this.space();if(fQ.call(this,J))h0.call(this,J,!0,void 0,this._buf._map?X:void 0);else this.print(J.params[0],!0);A6.call(this,J,!0),this.space(),this.printInnerComments(),this.token("=>"),this.space(),this.tokenContext|=v01.TokenContext.arrowBody,this.print(J.body)}function fQ(J){var X,Z;if(J.params.length!==1)return!0;if(J.typeParameters||J.returnType||J.predicate)return!0;let Q=J.params[0];if(!E01(Q)||Q.typeAnnotation||Q.optional||(X=Q.leadingComments)!=null&&X.length||(Z=Q.trailingComments)!=null&&Z.length)return!0;if(this.tokenMap){if(J.loc==null)return!0;if(this.tokenMap.findMatching(J,"(")!==null)return!0;let Y=this.tokenMap.findMatching(J,"=>");if((Y==null?void 0:Y.loc)==null)return!0;return Y.loc.start.line!==J.loc.start.line}if(this.format.retainLines)return!0;return!1}function h01(J,X){let Z=J;if(!Z&&X){let W=X.type;if(W==="VariableDeclarator")Z=X.id;else if(W==="AssignmentExpression"||W==="AssignmentPattern")Z=X.left;else if(W==="ObjectProperty"||W==="ClassProperty"){if(!X.computed||X.key.type==="StringLiteral")Z=X.key}else if(W==="ClassPrivateProperty"||W==="ClassAccessorProperty")Z=X.key}if(!Z)return;let Q;if(Z.type==="Identifier"){var Y,z;Q={pos:(Y=Z.loc)==null?void 0:Y.start,name:((z=Z.loc)==null?void 0:z.identifierName)||Z.name}}else if(Z.type==="PrivateName"){var H;Q={pos:(H=Z.loc)==null?void 0:H.start,name:"#"+Z.id.name}}else if(Z.type==="StringLiteral"){var G;Q={pos:(G=Z.loc)==null?void 0:G.start,name:Z.value}}return Q}});var D6=N((iQ)=>{Object.defineProperty(iQ,"__esModule",{value:!0});iQ.TSAnyKeyword=GX1;iQ.TSArrayType=IX1;iQ.TSAsExpression=rX1;iQ.TSBigIntKeyword=WX1;iQ.TSBooleanKeyword=BX1;iQ.TSCallSignatureDeclaration=ZX1;iQ.TSInterfaceHeritage=iQ.TSClassImplements=cX1;iQ.TSConditionalType=gX1;iQ.TSConstructSignatureDeclaration=QX1;iQ.TSConstructorType=DX1;iQ.TSDeclareFunction=e01;iQ.TSDeclareMethod=JX1;iQ.TSEnumBody=lQ;iQ.TSEnumDeclaration=tX1;iQ.TSEnumMember=nX1;iQ.TSExportAssignment=Y91;iQ.TSExternalModuleReference=Z91;iQ.TSFunctionType=CX1;iQ.TSImportEqualsDeclaration=X91;iQ.TSImportType=J91;iQ.TSIndexSignature=HX1;iQ.TSIndexedAccessType=xX1;iQ.TSInferType=_X1;iQ.TSInstantiationExpression=sX1;iQ.TSInterfaceBody=iX1;iQ.TSInterfaceDeclaration=lX1;iQ.TSIntersectionType=EX1;iQ.TSIntrinsicKeyword=OX1;iQ.TSLiteralType=mX1;iQ.TSMappedType=yX1;iQ.TSMethodSignature=zX1;iQ.TSModuleBlock=eX1;iQ.TSModuleDeclaration=oX1;iQ.TSNamedTupleMember=kX1;iQ.TSNamespaceExportDeclaration=z91;iQ.TSNeverKeyword=MX1;iQ.TSNonNullExpression=Q91;iQ.TSNullKeyword=jX1;iQ.TSNumberKeyword=KX1;iQ.TSObjectKeyword=UX1;iQ.TSOptionalType=LX1;iQ.TSParameterProperty=o01;iQ.TSParenthesizedType=fX1;iQ.TSPropertySignature=YX1;iQ.TSQualifiedName=XX1;iQ.TSRestType=bX1;iQ.TSSatisfiesExpression=dX1;iQ.TSStringKeyword=RX1;iQ.TSSymbolKeyword=$X1;iQ.TSTemplateLiteralType=uX1;iQ.TSThisType=AX1;iQ.TSTupleType=TX1;iQ.TSTypeAliasDeclaration=pX1;iQ.TSTypeAnnotation=s01;iQ.TSTypeAssertion=aX1;iQ.TSTypeLiteral=SX1;iQ.TSTypeOperator=hX1;iQ.TSTypeParameter=n01;iQ.TSTypeParameterDeclaration=iQ.TSTypeParameterInstantiation=t01;iQ.TSTypePredicate=wX1;iQ.TSTypeQuery=PX1;iQ.TSTypeReference=NX1;iQ.TSUndefinedKeyword=FX1;iQ.TSUnionType=vX1;iQ.TSUnknownKeyword=VX1;iQ.TSVoidKeyword=qX1;iQ._tsPrintClassMemberModifiers=H91;var jX=FX(),d01=N6(),a01=M6();function s01(J,X){if(this.token((X.type==="TSFunctionType"||X.type==="TSConstructorType")&&X.typeAnnotation===J?"=>":":"),this.space(),J.optional)this.tokenChar(63);this.print(J.typeAnnotation)}function t01(J,X){this.tokenChar(60);let Z=X.type==="ArrowFunctionExpression"&&J.params.length===1;if(this.tokenMap&&J.start!=null&&J.end!=null)Z&&(Z=!!this.tokenMap.find(J,(Q)=>this.tokenMap.matchesOriginal(Q,","))),Z||(Z=this.shouldPrintTrailingComma(">"));this.printList(J.params,Z),this.tokenChar(62)}function n01(J){if(J.const)this.word("const"),this.space();if(J.in)this.word("in"),this.space();if(J.out)this.word("out"),this.space();if(this.word(J.name),J.constraint)this.space(),this.word("extends"),this.space(),this.print(J.constraint);if(J.default)this.space(),this.tokenChar(61),this.space(),this.print(J.default)}function o01(J){if(J.accessibility)this.word(J.accessibility),this.space();if(J.readonly)this.word("readonly"),this.space();jX._param.call(this,J.parameter)}function e01(J,X){if(J.declare)this.word("declare"),this.space();jX._functionHead.call(this,J,X,!1),this.semicolon()}function JX1(J){d01._classMethodHead.call(this,J),this.semicolon()}function XX1(J){this.print(J.left),this.tokenChar(46),this.print(J.right)}function ZX1(J){C6.call(this,J),MX(this,J)}function MX(J,X){if(!J.tokenMap||!X.start||!X.end){J.semicolon();return}if(J.tokenMap.endMatches(X,","))J.token(",");else if(J.tokenMap.endMatches(X,";"))J.semicolon()}function QX1(J){this.word("new"),this.space(),C6.call(this,J),MX(this,J)}function YX1(J){let{readonly:X}=J;if(X)this.word("readonly"),this.space();uQ.call(this,J),this.print(J.typeAnnotation),MX(this,J)}function uQ(J){if(J.computed)this.tokenChar(91);if(this.print(J.key),J.computed)this.tokenChar(93);if(J.optional)this.tokenChar(63)}function zX1(J){let{kind:X}=J;if(X==="set"||X==="get")this.word(X),this.space();uQ.call(this,J),C6.call(this,J),MX(this,J)}function HX1(J){let{readonly:X,static:Z}=J;if(Z)this.word("static"),this.space();if(X)this.word("readonly"),this.space();this.tokenChar(91),jX._parameters.call(this,J.parameters,93),this.print(J.typeAnnotation),MX(this,J)}function GX1(){this.word("any")}function WX1(){this.word("bigint")}function VX1(){this.word("unknown")}function KX1(){this.word("number")}function UX1(){this.word("object")}function BX1(){this.word("boolean")}function RX1(){this.word("string")}function $X1(){this.word("symbol")}function qX1(){this.word("void")}function FX1(){this.word("undefined")}function jX1(){this.word("null")}function MX1(){this.word("never")}function OX1(){this.word("intrinsic")}function AX1(){this.word("this")}function CX1(J){mQ.call(this,J)}function DX1(J){if(J.abstract)this.word("abstract"),this.space();this.word("new"),this.space(),mQ.call(this,J)}function mQ(J){let{typeParameters:X}=J,Z=J.parameters;this.print(X),this.tokenChar(40),jX._parameters.call(this,Z,41),this.space();let Q=J.typeAnnotation;this.print(Q)}function NX1(J){let X=J.typeParameters;this.print(J.typeName,!!X),this.print(X)}function wX1(J){if(J.asserts)this.word("asserts"),this.space();if(this.print(J.parameterName),J.typeAnnotation)this.space(),this.word("is"),this.space(),this.print(J.typeAnnotation.typeAnnotation)}function PX1(J){this.word("typeof"),this.space(),this.print(J.exprName);let X=J.typeParameters;if(X)this.print(X)}function SX1(J){R9(this,J,()=>this.printJoin(J.members,!0,!0,void 0,void 0,!0))}function IX1(J){this.print(J.elementType,!0),this.tokenChar(91),this.tokenChar(93)}function TX1(J){this.tokenChar(91),this.printList(J.elementTypes,this.shouldPrintTrailingComma("]")),this.tokenChar(93)}function LX1(J){this.print(J.typeAnnotation),this.tokenChar(63)}function bX1(J){this.token("..."),this.print(J.typeAnnotation)}function kX1(J){if(this.print(J.label),J.optional)this.tokenChar(63);this.tokenChar(58),this.space(),this.print(J.elementType)}function vX1(J){cQ(this,J,"|")}function EX1(J){cQ(this,J,"&")}function cQ(J,X,Z){var Q;let Y=0;if((Q=J.tokenMap)!=null&&Q.startMatches(X,Z))Y=1,J.token(Z);J.printJoin(X.types,void 0,void 0,function(z){this.space(),this.token(Z,void 0,z+Y),this.space()})}function gX1(J){this.print(J.checkType),this.space(),this.word("extends"),this.space(),this.print(J.extendsType),this.space(),this.tokenChar(63),this.space(),this.print(J.trueType),this.space(),this.tokenChar(58),this.space(),this.print(J.falseType)}function _X1(J){this.word("infer"),this.print(J.typeParameter)}function fX1(J){this.tokenChar(40),this.print(J.typeAnnotation),this.tokenChar(41)}function hX1(J){this.word(J.operator),this.space(),this.print(J.typeAnnotation)}function xX1(J){this.print(J.objectType,!0),this.tokenChar(91),this.print(J.indexType),this.tokenChar(93)}function yX1(J){let{nameType:X,optional:Z,readonly:Q,typeAnnotation:Y}=J;this.tokenChar(123);let z=this.enterDelimited();if(this.space(),Q)xQ(this,Q),this.word("readonly"),this.space();if(this.tokenChar(91),this.word(J.typeParameter.name),this.space(),this.word("in"),this.space(),this.print(J.typeParameter.constraint,void 0,!0),X)this.space(),this.word("as"),this.space(),this.print(X,void 0,!0);if(this.tokenChar(93),Z)xQ(this,Z),this.tokenChar(63);if(Y)this.tokenChar(58),this.space(),this.print(Y,void 0,!0);this.space(),this._noLineTerminatorAfterNode=z,this.tokenChar(125)}function xQ(J,X){if(X!==!0)J.token(X)}function uX1(J){a01._printTemplate.call(this,J,J.types)}function mX1(J){this.print(J.literal)}function cX1(J){this.print(J.expression),this.print(J.typeArguments)}function lX1(J){let{declare:X,id:Z,typeParameters:Q,extends:Y,body:z}=J;if(X)this.word("declare"),this.space();if(this.word("interface"),this.space(),this.print(Z),this.print(Q),Y!=null&&Y.length)this.space(),this.word("extends"),this.space(),this.printList(Y);this.space(),this.print(z)}function iX1(J){R9(this,J,()=>this.printJoin(J.body,!0,!0,void 0,void 0,!0))}function pX1(J){let{declare:X,id:Z,typeParameters:Q,typeAnnotation:Y}=J;if(X)this.word("declare"),this.space();this.word("type"),this.space(),this.print(Z),this.print(Q),this.space(),this.tokenChar(61),this.space(),this.print(Y),this.semicolon()}function rX1(J){let{expression:X,typeAnnotation:Z}=J;this.print(X,!0),this.space(),this.word("as"),this.space(),this.print(Z)}function dX1(J){let{expression:X,typeAnnotation:Z}=J;this.print(X,!0),this.space(),this.word("satisfies"),this.space(),this.print(Z)}function aX1(J){let{typeAnnotation:X,expression:Z}=J;this.tokenChar(60),this.print(X),this.tokenChar(62),this.space(),this.print(Z)}function sX1(J){this.print(J.expression),this.print(J.typeParameters)}function tX1(J){let{declare:X,const:Z,id:Q}=J;if(X)this.word("declare"),this.space();if(Z)this.word("const"),this.space();this.word("enum"),this.space(),this.print(Q),this.space(),lQ.call(this,J)}function lQ(J){R9(this,J,()=>{var X;return this.printList(J.members,(X=this.shouldPrintTrailingComma("}"))!=null?X:!0,!0,!0,void 0,!0)})}function nX1(J){let{id:X,initializer:Z}=J;if(this.print(X),Z)this.space(),this.tokenChar(61),this.space(),this.print(Z)}function oX1(J){let{declare:X,id:Z,kind:Q}=J;if(X)this.word("declare"),this.space();if(!J.global)this.word(Q!=null?Q:Z.type==="Identifier"?"namespace":"module"),this.space();if(this.print(Z),!J.body){this.semicolon();return}let Y=J.body;while(Y.type==="TSModuleDeclaration")this.tokenChar(46),this.print(Y.id),Y=Y.body;this.space(),this.print(Y)}function eX1(J){R9(this,J,()=>this.printSequence(J.body,!0,!0))}function J91(J){let{qualifier:X,options:Z}=J;if(this.word("import"),this.tokenChar(40),this.print(J.argument),Z)this.tokenChar(44),this.print(Z);if(this.tokenChar(41),X)this.tokenChar(46),this.print(X);let Q=J.typeParameters;if(Q)this.print(Q)}function X91(J){let{id:X,moduleReference:Z}=J;if(J.isExport)this.word("export"),this.space();this.word("import"),this.space(),this.print(X),this.space(),this.tokenChar(61),this.space(),this.print(Z),this.semicolon()}function Z91(J){this.token("require("),this.print(J.expression),this.tokenChar(41)}function Q91(J){this.print(J.expression),this.tokenChar(33),this.setLastChar(33)}function Y91(J){this.word("export"),this.space(),this.tokenChar(61),this.space(),this.print(J.expression),this.semicolon()}function z91(J){this.word("export"),this.space(),this.word("as"),this.space(),this.word("namespace"),this.space(),this.print(J.id),this.semicolon()}function C6(J){let{typeParameters:X}=J,Z=J.parameters;this.print(X),this.tokenChar(40),jX._parameters.call(this,Z,41);let Q=J.typeAnnotation;this.print(Q)}function H91(J){let X=J.type==="ClassPrivateProperty",Z=J.type==="ClassAccessorProperty"||J.type==="ClassProperty";if(yQ(this,J,[Z&&J.declare&&"declare",!X&&J.accessibility]),J.static)this.word("static"),this.space();yQ(this,J,[!X&&J.abstract&&"abstract",!X&&J.override&&"override",(Z||X)&&J.readonly&&"readonly"])}function R9(J,X,Z){J.token("{");let Q=J.enterDelimited();Z(),J._noLineTerminatorAfterNode=Q,J.rightBrace(X)}function yQ(J,X,Z){var Q;let Y=new Set;for(let z of Z)if(z)Y.add(z);(Q=J.tokenMap)==null||Q.find(X,(z)=>{if(Y.has(z.value))return J.token(z.value),J.space(),Y.delete(z.value),Y.size===0;return!1});for(let z of Y)J.word(z),J.space()}});var w6=N((aQ)=>{Object.defineProperty(aQ,"__esModule",{value:!0});aQ.ExportAllDeclaration=E21;aQ.ExportDefaultDeclaration=_21;aQ.ExportDefaultSpecifier=b21;aQ.ExportNamedDeclaration=g21;aQ.ExportNamespaceSpecifier=v21;aQ.ExportSpecifier=k21;aQ.ImportAttribute=h21;aQ.ImportDeclaration=f21;aQ.ImportDefaultSpecifier=L21;aQ.ImportExpression=y21;aQ.ImportNamespaceSpecifier=x21;aQ.ImportSpecifier=T21;aQ._printAttributes=$9;var A21=Y1(),C21=tJ(),D21=U9(),{isClassDeclaration:N21,isExportDefaultSpecifier:w21,isExportNamespaceSpecifier:P21,isImportDefaultSpecifier:S21,isImportNamespaceSpecifier:I21,isStatement:rQ}=A21;function T21(J){if(J.importKind==="type"||J.importKind==="typeof")this.word(J.importKind),this.space();if(this.print(J.imported),J.local&&J.local.name!==J.imported.name)this.space(),this.word("as"),this.space(),this.print(J.local)}function L21(J){this.print(J.local)}function b21(J){this.print(J.exported)}function k21(J){if(J.exportKind==="type")this.word("type"),this.space();if(this.print(J.local),J.exported&&J.local.name!==J.exported.name)this.space(),this.word("as"),this.space(),this.print(J.exported)}function v21(J){this.tokenChar(42),this.space(),this.word("as"),this.space(),this.print(J.exported)}var pQ=!1;function $9(J,X){var Z;let{attributes:Q}=J;var{assertions:Y}=J;let{importAttributesKeyword:z}=this.format;if(Q&&!z&&J.extra&&(J.extra.deprecatedAssertSyntax||J.extra.deprecatedWithLegacySyntax)&&!pQ)pQ=!0,console.warn('You are using import attributes, without specifying the desired output syntax.\nPlease specify the "importAttributesKeyword" generator option, whose value can be one of:\n - "with" : `import { a } from "b" with { type: "json" };`\n - "assert" : `import { a } from "b" assert { type: "json" };`\n - "with-legacy" : `import { a } from "b" with type: "json";`\n');let H=z==="assert"||!z&&Y;if(this.word(H?"assert":"with"),this.space(),!H&&(z==="with-legacy"||!z&&(Z=J.extra)!=null&&Z.deprecatedWithLegacySyntax)){this.printList(Q||Y);return}let G=X?1:0;this.token("{",void 0,G),this.space(),this.printList(Q||Y,this.shouldPrintTrailingComma("}")),this.space(),this.token("}",void 0,G)}function E21(J){var X,Z;if(this.word("export"),this.space(),J.exportKind==="type")this.word("type"),this.space();if(this.tokenChar(42),this.space(),this.word("from"),this.space(),(X=J.attributes)!=null&&X.length||(Z=J.assertions)!=null&&Z.length)this.print(J.source,!0),this.space(),$9.call(this,J,!1);else this.print(J.source);this.semicolon()}function dQ(J,X){if(N21(X.declaration)&&D21._shouldPrintDecoratorsBeforeExport.call(J,X))J.printJoin(X.declaration.decorators)}function g21(J){if(dQ(this,J),this.word("export"),this.space(),J.declaration){let Q=J.declaration;if(this.print(Q),!rQ(Q))this.semicolon()}else{if(J.exportKind==="type")this.word("type"),this.space();let Q=J.specifiers.slice(0),Y=!1;for(;;){let H=Q[0];if(w21(H)||P21(H)){if(Y=!0,this.print(Q.shift()),Q.length)this.tokenChar(44),this.space()}else break}let z=!1;if(Q.length||!Q.length&&!Y){if(z=!0,this.tokenChar(123),Q.length)this.space(),this.printList(Q,this.shouldPrintTrailingComma("}")),this.space();this.tokenChar(125)}if(J.source){var X,Z;if(this.space(),this.word("from"),this.space(),(X=J.attributes)!=null&&X.length||(Z=J.assertions)!=null&&Z.length)this.print(J.source,!0),this.space(),$9.call(this,J,z);else this.print(J.source)}this.semicolon()}}function _21(J){dQ(this,J),this.word("export"),this.noIndentInnerCommentsHere(),this.space(),this.word("default"),this.space(),this.tokenContext|=C21.TokenContext.exportDefault;let X=J.declaration;if(this.print(X),!rQ(X))this.semicolon()}function f21(J){var X,Z;this.word("import"),this.space();let Q=J.importKind==="type"||J.importKind==="typeof";if(Q)this.noIndentInnerCommentsHere(),this.word(J.importKind),this.space();else if(J.module)this.noIndentInnerCommentsHere(),this.word("module"),this.space();else if(J.phase)this.noIndentInnerCommentsHere(),this.word(J.phase),this.space();let Y=J.specifiers.slice(0),z=!!Y.length;while(z){let G=Y[0];if(S21(G)||I21(G)){if(this.print(Y.shift()),Y.length)this.tokenChar(44),this.space()}else break}let H=!1;if(Y.length)H=!0,this.tokenChar(123),this.space(),this.printList(Y,this.shouldPrintTrailingComma("}")),this.space(),this.tokenChar(125);else if(Q&&!z)H=!0,this.tokenChar(123),this.tokenChar(125);if(z||Q)this.space(),this.word("from"),this.space();if((X=J.attributes)!=null&&X.length||(Z=J.assertions)!=null&&Z.length)this.print(J.source,!0),this.space(),$9.call(this,J,H);else this.print(J.source);this.semicolon()}function h21(J){this.print(J.key),this.tokenChar(58),this.space(),this.print(J.value)}function x21(J){this.tokenChar(42),this.space(),this.word("as"),this.space(),this.print(J.local)}function y21(J){if(this.word("import"),J.phase)this.tokenChar(46),this.word(J.phase);this.tokenChar(40);let X=this.shouldPrintTrailingComma(")");if(this.print(J.source),J.options!=null)this.tokenChar(44),this.space(),this.print(J.options);if(X)this.tokenChar(44);this.rightParens(J)}});var oQ=N((LP1,nQ)=>{var sQ={},e21=sQ.hasOwnProperty,tQ=(J,X)=>{for(let Z in J)if(e21.call(J,Z))X(Z,J[Z])},J61=(J,X)=>{if(!X)return J;return tQ(X,(Z,Q)=>{J[Z]=Q}),J},X61=(J,X)=>{let Z=J.length,Q=-1;while(++Q<Z)X(J[Q])},q9=(J)=>{return"\\u"+("0000"+J).slice(-4)},OX=(J,X)=>{let Z=J.toString(16);if(X)return Z;return Z.toUpperCase()},AX=sQ.toString,Z61=Array.isArray,Q61=(J)=>{return typeof Buffer==="function"&&Buffer.isBuffer(J)},Y61=(J)=>{return AX.call(J)=="[object Object]"},z61=(J)=>{return typeof J=="string"||AX.call(J)=="[object String]"},H61=(J)=>{return typeof J=="number"||AX.call(J)=="[object Number]"},P6=(J)=>{return typeof J=="bigint"},G61=(J)=>{return typeof J=="function"},W61=(J)=>{return AX.call(J)=="[object Map]"},V61=(J)=>{return AX.call(J)=="[object Set]"},K61={"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t"},U61=/[\\\b\f\n\r\t]/,B61=/[0-9]/,R61=/[\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,$61=/([\uD800-\uDBFF][\uDC00-\uDFFF])|([\uD800-\uDFFF])|(['"`])|[^]/g,q61=/([\uD800-\uDBFF][\uDC00-\uDFFF])|([\uD800-\uDFFF])|(['"`])|[^ !#-&\(-\[\]-_a-~]/g,nJ=(J,X)=>{let Z=()=>{V=W,++X.indentLevel,W=X.indent.repeat(X.indentLevel)},Q={escapeEverything:!1,minimal:!1,isScriptContext:!1,quotes:"single",wrap:!1,es6:!1,json:!1,compact:!0,lowercaseHex:!1,numbers:"decimal",indent:"\t",indentLevel:0,__inline1__:!1,__inline2__:!1},Y=X&&X.json;if(Y)Q.quotes="double",Q.wrap=!0;if(X=J61(Q,X),X.quotes!="single"&&X.quotes!="double"&&X.quotes!="backtick")X.quotes="single";let z=X.quotes=="double"?'"':X.quotes=="backtick"?"`":"'",H=X.compact,G=X.lowercaseHex,W=X.indent.repeat(X.indentLevel),V="",U=X.__inline1__,q=X.__inline2__,O=H?"":`
|
|
13
|
+
`,A,D=!0,S=X.numbers=="binary",C=X.numbers=="octal",L=X.numbers=="decimal",b=X.numbers=="hexadecimal";if(Y&&J&&G61(J.toJSON))J=J.toJSON();if(!z61(J)){if(W61(J)){if(J.size==0)return"new Map()";if(!H)X.__inline1__=!0,X.__inline2__=!1;return"new Map("+nJ(Array.from(J),X)+")"}if(V61(J)){if(J.size==0)return"new Set()";return"new Set("+nJ(Array.from(J),X)+")"}if(Q61(J)){if(J.length==0)return"Buffer.from([])";return"Buffer.from("+nJ(Array.from(J),X)+")"}if(Z61(J)){if(A=[],X.wrap=!0,U)X.__inline1__=!1,X.__inline2__=!0;if(!q)Z();if(X61(J,(h)=>{if(D=!1,q)X.__inline2__=!1;A.push((H||q?"":W)+nJ(h,X))}),D)return"[]";if(q)return"["+A.join(", ")+"]";return"["+O+A.join(","+O)+O+(H?"":V)+"]"}else if(H61(J)||P6(J)){if(Y)return JSON.stringify(Number(J));let h;if(L)h=String(J);else if(b){let i=J.toString(16);if(!G)i=i.toUpperCase();h="0x"+i}else if(S)h="0b"+J.toString(2);else if(C)h="0o"+J.toString(8);if(P6(J))return h+"n";return h}else if(P6(J)){if(Y)return JSON.stringify(Number(J));return J+"n"}else if(!Y61(J)){if(Y)return JSON.stringify(J)||"null";return String(J)}else{if(A=[],X.wrap=!0,Z(),tQ(J,(h,i)=>{D=!1,A.push((H?"":W)+nJ(h,X)+":"+(H?"":" ")+nJ(i,X))}),D)return"{}";return"{"+O+A.join(","+O)+O+(H?"":V)+"}"}}let s=X.escapeEverything?$61:q61;if(A=J.replace(s,(h,i,H1,M1,L1,f1)=>{if(i){if(X.minimal)return i;let ZJ=i.charCodeAt(0),HJ=i.charCodeAt(1);if(X.es6){let WJ=(ZJ-55296)*1024+HJ-56320+65536;return"\\u{"+OX(WJ,G)+"}"}return q9(OX(ZJ,G))+q9(OX(HJ,G))}if(H1)return q9(OX(H1.charCodeAt(0),G));if(h=="\x00"&&!Y&&!B61.test(f1.charAt(L1+1)))return"\\0";if(M1){if(M1==z||X.escapeEverything)return"\\"+M1;return M1}if(U61.test(h))return K61[h];if(X.minimal&&!R61.test(h))return h;let XJ=OX(h.charCodeAt(0),G);if(Y||XJ.length>2)return q9(XJ);return"\\x"+("00"+XJ).slice(-2)}),z=="`")A=A.replace(/\$\{/g,"\\${");if(X.isScriptContext)A=A.replace(/<\/(script|style)/gi,"<\\/$1").replace(/<!--/g,Y?"\\u003C!--":"\\x3C!--");if(X.wrap)A=z+A+z;return A};nJ.version="3.0.2";nQ.exports=nJ});var j9=N((XY)=>{Object.defineProperty(XY,"__esModule",{value:!0});XY.ArgumentPlaceholder=C61;XY.ArrayPattern=XY.ArrayExpression=S61;XY.BigIntLiteral=v61;XY.BooleanLiteral=T61;XY.Identifier=A61;XY.NullLiteral=L61;XY.NumericLiteral=b61;XY.ObjectPattern=XY.ObjectExpression=N61;XY.ObjectMethod=w61;XY.ObjectProperty=P61;XY.PipelineBareFunction=_61;XY.PipelinePrimaryTopicReference=f61;XY.PipelineTopicExpression=g61;XY.RegExpLiteral=I61;XY.SpreadElement=XY.RestElement=D61;XY.StringLiteral=k61;XY.TopicReference=E61;XY.VoidPattern=h61;XY._getRawIdentifier=O61;var F61=Y1(),JY=oQ(),j61=FX(),{isAssignmentPattern:M61,isIdentifier:S6}=F61,F9="";function O61(J){let{name:X}=J,Z=this.tokenMap.find(J,(Q)=>Q.value===X);if(Z)return F9=this._originalCode.slice(Z.start,Z.end),F9;return F9=J.name}function A61(J){if(this._buf._map){var X;this.sourceIdentifierName(((X=J.loc)==null?void 0:X.identifierName)||J.name)}this.word(this.tokenMap?F9:J.name)}function C61(){this.tokenChar(63)}function D61(J){this.token("..."),this.print(J.argument)}function N61(J){let X=J.properties;if(this.tokenChar(123),X.length){let Z=this.enterDelimited();this.space(),this.printList(X,this.shouldPrintTrailingComma("}"),!0,!0,void 0,!0),this.space(),this._noLineTerminatorAfterNode=Z}this.rightBrace(J)}function w61(J){this.printJoin(J.decorators),j61._methodHead.call(this,J),this.space(),this.print(J.body)}function P61(J){if(this.printJoin(J.decorators),J.computed)this.tokenChar(91),this.print(J.key),this.tokenChar(93);else{if(M61(J.value)&&S6(J.key)&&J.key.name===J.value.left.name){this.print(J.value);return}if(this.print(J.key),J.shorthand&&S6(J.key)&&S6(J.value)&&J.key.name===J.value.name)return}this.tokenChar(58),this.space(),this.print(J.value)}function S61(J){let X=J.elements,Z=X.length;this.tokenChar(91);let Q=this.enterDelimited();for(let Y=0;Y<X.length;Y++){let z=X[Y];if(z){if(Y>0)this.space();if(this.print(z,void 0,!0),Y<Z-1||this.shouldPrintTrailingComma("]"))this.tokenChar(44,Y)}else this.tokenChar(44,Y)}this._noLineTerminatorAfterNode=Q,this.tokenChar(93)}function I61(J){this.word(`/${J.pattern}/${J.flags}`,!1)}function T61(J){this.word(J.value?"true":"false")}function L61(){this.word("null")}function b61(J){let X=this.getPossibleRaw(J),Z=this.format.jsescOption,Q=J.value,Y=Q+"";if(Z.numbers)this.number(JY(Q,Z),Q);else if(X==null)this.number(Y,Q);else if(this.format.minified)this.number(X.length<Y.length?X:Y,Q);else this.number(X,Q)}function k61(J){let X=this.getPossibleRaw(J);if(!this.format.minified&&X!==void 0){this.token(X);return}let Z=JY(J.value,this.format.jsescOption);this.token(Z)}function v61(J){let X=this.getPossibleRaw(J);if(!this.format.minified&&X!==void 0){this.word(X);return}this.word(J.value+"n")}var eQ=new Set(["^^","@@","^","%","#"]);function E61(){let{topicToken:J}=this.format;if(eQ.has(J))this.token(J);else{let X=JSON.stringify(J),Z=Array.from(eQ,(Q)=>JSON.stringify(Q));throw Error(`The "topicToken" generator option must be one of ${Z.join(", ")} (${X} received instead).`)}}function g61(J){this.print(J.expression)}function _61(J){this.print(J.callee)}function f61(){this.tokenChar(35)}function h61(){this.word("void")}});var L6=N((D9)=>{Object.defineProperty(D9,"__esModule",{value:!0});D9.AnyTypeAnnotation=G81;D9.ArrayTypeAnnotation=W81;D9.BooleanLiteralTypeAnnotation=K81;D9.BooleanTypeAnnotation=V81;D9.DeclareClass=B81;D9.DeclareExportAllDeclaration=N81;D9.DeclareExportDeclaration=D81;D9.DeclareFunction=R81;D9.DeclareInterface=F81;D9.DeclareModule=j81;D9.DeclareModuleExports=M81;D9.DeclareOpaqueType=A81;D9.DeclareTypeAlias=O81;D9.DeclareVariable=C81;D9.DeclaredPredicate=q81;D9.EmptyTypeAnnotation=c81;D9.EnumBooleanBody=P81;D9.EnumBooleanMember=b81;D9.EnumDeclaration=w81;D9.EnumDefaultedMember=L81;D9.EnumNumberBody=S81;D9.EnumNumberMember=k81;D9.EnumStringBody=I81;D9.EnumStringMember=v81;D9.EnumSymbolBody=T81;D9.ExistsTypeAnnotation=g81;D9.FunctionTypeAnnotation=_81;D9.FunctionTypeParam=f81;D9.IndexedAccessType=U71;D9.InferredPredicate=$81;D9.InterfaceDeclaration=QY;D9.GenericTypeAnnotation=D9.ClassImplements=D9.InterfaceExtends=h81;D9.InterfaceTypeAnnotation=y81;D9.IntersectionTypeAnnotation=u81;D9.MixedTypeAnnotation=m81;D9.NullLiteralTypeAnnotation=U81;D9.NullableTypeAnnotation=l81;Object.defineProperty(D9,"NumberLiteralTypeAnnotation",{enumerable:!0,get:function(){return ZY.NumericLiteral}});D9.NumberTypeAnnotation=i81;D9.ObjectTypeAnnotation=o81;D9.ObjectTypeCallProperty=J71;D9.ObjectTypeIndexer=X71;D9.ObjectTypeInternalSlot=e81;D9.ObjectTypeProperty=Z71;D9.ObjectTypeSpreadProperty=Q71;D9.OpaqueType=zY;D9.OptionalIndexedAccessType=B71;D9.QualifiedTypeIdentifier=Y71;Object.defineProperty(D9,"StringLiteralTypeAnnotation",{enumerable:!0,get:function(){return ZY.StringLiteral}});D9.StringTypeAnnotation=p81;D9.SymbolTypeAnnotation=z71;D9.ThisTypeAnnotation=r81;D9.TupleTypeAnnotation=d81;D9.TypeAlias=YY;D9.TypeAnnotation=s81;D9.TypeCastExpression=W71;D9.TypeParameter=n81;D9.TypeParameterDeclaration=D9.TypeParameterInstantiation=t81;D9.TypeofTypeAnnotation=a81;D9.UnionTypeAnnotation=G71;D9.Variance=V71;D9.VoidTypeAnnotation=K71;D9._interfaceish=T6;D9._variance=C9;var Q81=Y1(),Y81=w6(),z81=tJ(),ZY=j9(),{isDeclareExportDeclaration:M9,isStatement:H81}=Q81;function G81(){this.word("any")}function W81(J){this.print(J.elementType,!0),this.tokenChar(91),this.tokenChar(93)}function V81(){this.word("boolean")}function K81(J){this.word(J.value?"true":"false")}function U81(){this.word("null")}function B81(J,X){if(!M9(X))this.word("declare"),this.space();this.word("class"),this.space(),T6.call(this,J)}function R81(J,X){if(!M9(X))this.word("declare"),this.space();if(this.word("function"),this.space(),this.print(J.id),this.print(J.id.typeAnnotation.typeAnnotation),J.predicate)this.space(),this.print(J.predicate);this.semicolon()}function $81(){this.tokenChar(37),this.word("checks")}function q81(J){this.tokenChar(37),this.word("checks"),this.tokenChar(40),this.print(J.value),this.tokenChar(41)}function F81(J){this.word("declare"),this.space(),QY.call(this,J)}function j81(J){this.word("declare"),this.space(),this.word("module"),this.space(),this.print(J.id),this.space(),this.print(J.body)}function M81(J){this.word("declare"),this.space(),this.word("module"),this.tokenChar(46),this.word("exports"),this.print(J.typeAnnotation)}function O81(J){this.word("declare"),this.space(),YY.call(this,J)}function A81(J,X){if(!M9(X))this.word("declare"),this.space();zY.call(this,J)}function C81(J,X){if(!M9(X))this.word("declare"),this.space();this.word("var"),this.space(),this.print(J.id),this.print(J.id.typeAnnotation),this.semicolon()}function D81(J){if(this.word("declare"),this.space(),this.word("export"),this.space(),J.default)this.word("default"),this.space();E81.call(this,J)}function N81(J){this.word("declare"),this.space(),Y81.ExportAllDeclaration.call(this,J)}function w81(J){let{id:X,body:Z}=J;this.word("enum"),this.space(),this.print(X),this.print(Z)}function O9(J,X,Z){if(Z)J.space(),J.word("of"),J.space(),J.word(X);J.space()}function A9(J,X){let{members:Z}=X;J.token("{"),J.indent(),J.newline();for(let Q of Z)J.print(Q),J.newline();if(X.hasUnknownMembers)J.token("..."),J.newline();J.dedent(),J.token("}")}function P81(J){let{explicitType:X}=J;O9(this,"boolean",X),A9(this,J)}function S81(J){let{explicitType:X}=J;O9(this,"number",X),A9(this,J)}function I81(J){let{explicitType:X}=J;O9(this,"string",X),A9(this,J)}function T81(J){O9(this,"symbol",!0),A9(this,J)}function L81(J){let{id:X}=J;this.print(X),this.tokenChar(44)}function I6(J,X){J.print(X.id),J.space(),J.token("="),J.space(),J.print(X.init),J.token(",")}function b81(J){I6(this,J)}function k81(J){I6(this,J)}function v81(J){I6(this,J)}function E81(J){if(J.declaration){let X=J.declaration;if(this.print(X),!H81(X))this.semicolon()}else{if(this.tokenChar(123),J.specifiers.length)this.space(),this.printList(J.specifiers),this.space();if(this.tokenChar(125),J.source)this.space(),this.word("from"),this.space(),this.print(J.source);this.semicolon()}}function g81(){this.tokenChar(42)}function _81(J,X){if(this.print(J.typeParameters),this.tokenChar(40),J.this){if(this.word("this"),this.tokenChar(58),this.space(),this.print(J.this.typeAnnotation),J.params.length||J.rest)this.tokenChar(44),this.space()}if(this.printList(J.params),J.rest){if(J.params.length)this.tokenChar(44),this.space();this.token("..."),this.print(J.rest)}this.tokenChar(41);let Z=X==null?void 0:X.type;if(Z!=null&&(Z==="ObjectTypeCallProperty"||Z==="ObjectTypeInternalSlot"||Z==="DeclareFunction"||Z==="ObjectTypeProperty"&&X.method))this.tokenChar(58);else this.space(),this.token("=>");this.space(),this.print(J.returnType)}function f81(J){if(this.print(J.name),J.optional)this.tokenChar(63);if(J.name)this.tokenChar(58),this.space();this.print(J.typeAnnotation)}function h81(J){this.print(J.id),this.print(J.typeParameters,!0)}function T6(J){var X;if(this.print(J.id),this.print(J.typeParameters),(X=J.extends)!=null&&X.length)this.space(),this.word("extends"),this.space(),this.printList(J.extends);if(J.type==="DeclareClass"){var Z,Q;if((Z=J.mixins)!=null&&Z.length)this.space(),this.word("mixins"),this.space(),this.printList(J.mixins);if((Q=J.implements)!=null&&Q.length)this.space(),this.word("implements"),this.space(),this.printList(J.implements)}this.space(),this.print(J.body)}function C9(J){var X;let Z=(X=J.variance)==null?void 0:X.kind;if(Z!=null){if(Z==="plus")this.tokenChar(43);else if(Z==="minus")this.tokenChar(45)}}function QY(J){this.word("interface"),this.space(),T6.call(this,J)}function x81(J){this.space(),this.token("&",!1,J),this.space()}function y81(J){var X;if(this.word("interface"),(X=J.extends)!=null&&X.length)this.space(),this.word("extends"),this.space(),this.printList(J.extends);this.space(),this.print(J.body)}function u81(J){this.printJoin(J.types,void 0,void 0,x81)}function m81(){this.word("mixed")}function c81(){this.word("empty")}function l81(J){this.tokenChar(63),this.print(J.typeAnnotation)}function i81(){this.word("number")}function p81(){this.word("string")}function r81(){this.word("this")}function d81(J){this.tokenChar(91),this.printList(J.types),this.tokenChar(93)}function a81(J){this.word("typeof"),this.space(),this.print(J.argument)}function YY(J){this.word("type"),this.space(),this.print(J.id),this.print(J.typeParameters),this.space(),this.tokenChar(61),this.space(),this.print(J.right),this.semicolon()}function s81(J,X){if(this.tokenChar(58),this.space(),X.type==="ArrowFunctionExpression")this.tokenContext|=z81.TokenContext.arrowFlowReturnType;else if(J.optional)this.tokenChar(63);this.print(J.typeAnnotation)}function t81(J){this.tokenChar(60),this.printList(J.params),this.tokenChar(62)}function n81(J){if(C9.call(this,J),this.word(J.name),J.bound)this.print(J.bound);if(J.default)this.space(),this.tokenChar(61),this.space(),this.print(J.default)}function zY(J){if(this.word("opaque"),this.space(),this.word("type"),this.space(),this.print(J.id),this.print(J.typeParameters),J.supertype)this.tokenChar(58),this.space(),this.print(J.supertype);if(J.impltype)this.space(),this.tokenChar(61),this.space(),this.print(J.impltype);this.semicolon()}function o81(J){if(J.exact)this.token("{|");else this.tokenChar(123);let X=[...J.properties,...J.callProperties||[],...J.indexers||[],...J.internalSlots||[]];if(X.length)this.newline(),this.space(),this.printJoin(X,!0,!0,()=>{if(X.length!==1||J.inexact)this.tokenChar(44),this.space()},!0),this.space();if(J.inexact){if(this.indent(),this.token("..."),X.length)this.newline();this.dedent()}if(J.exact)this.token("|}");else this.tokenChar(125)}function e81(J){if(J.static)this.word("static"),this.space();if(this.tokenChar(91),this.tokenChar(91),this.print(J.id),this.tokenChar(93),this.tokenChar(93),J.optional)this.tokenChar(63);if(!J.method)this.tokenChar(58),this.space();this.print(J.value)}function J71(J){if(J.static)this.word("static"),this.space();this.print(J.value)}function X71(J){if(J.static)this.word("static"),this.space();if(C9.call(this,J),this.tokenChar(91),J.id)this.print(J.id),this.tokenChar(58),this.space();this.print(J.key),this.tokenChar(93),this.tokenChar(58),this.space(),this.print(J.value)}function Z71(J){if(J.proto)this.word("proto"),this.space();if(J.static)this.word("static"),this.space();if(J.kind==="get"||J.kind==="set")this.word(J.kind),this.space();if(C9.call(this,J),this.print(J.key),J.optional)this.tokenChar(63);if(!J.method)this.tokenChar(58),this.space();this.print(J.value)}function Q71(J){this.token("..."),this.print(J.argument)}function Y71(J){this.print(J.qualification),this.tokenChar(46),this.print(J.id)}function z71(){this.word("symbol")}function H71(J){this.space(),this.token("|",!1,J),this.space()}function G71(J){this.printJoin(J.types,void 0,void 0,H71)}function W71(J){this.tokenChar(40),this.print(J.expression),this.print(J.typeAnnotation),this.tokenChar(41)}function V71(J){if(J.kind==="plus")this.tokenChar(43);else this.tokenChar(45)}function K71(){this.word("void")}function U71(J){this.print(J.objectType,!0),this.tokenChar(91),this.print(J.indexType),this.tokenChar(93)}function B71(J){if(this.print(J.objectType),J.optional)this.token("?.");this.tokenChar(91),this.print(J.indexType),this.tokenChar(93)}});var N6=N((GY)=>{Object.defineProperty(GY,"__esModule",{value:!0});GY.ClassAccessorProperty=b41;GY.ClassBody=I41;GY.ClassExpression=GY.ClassDeclaration=S41;GY.ClassMethod=v41;GY.ClassPrivateMethod=E41;GY.ClassPrivateProperty=k41;GY.ClassProperty=L41;GY.StaticBlock=g41;GY._classMethodHead=b6;var C41=Y1(),D41=U9(),N9=D6(),HY=L6(),N41=FX(),{isExportDefaultDeclaration:w41,isExportNamedDeclaration:P41}=C41;function S41(J,X){if(!(w41(X)||P41(X))||!D41._shouldPrintDecoratorsBeforeExport.call(this,X))this.printJoin(J.decorators);if(J.declare)this.word("declare"),this.space();if(J.abstract)this.word("abstract"),this.space();if(this.word("class"),J.id)this.space(),this.print(J.id);if(this.print(J.typeParameters),J.superClass)this.space(),this.word("extends"),this.space(),this.print(J.superClass),this.print(J.superTypeParameters);if(J.implements)this.space(),this.word("implements"),this.space(),this.printList(J.implements);this.space(),this.print(J.body)}function I41(J){if(this.tokenChar(123),J.body.length===0)this.tokenChar(125);else{let X=T41(this,J);X==null||X(-1);let Z=this.enterDelimited();if(this.printJoin(J.body,!0,!0,X,!0,!0),this._noLineTerminatorAfterNode=Z,!this.endsWith(10))this.newline();this.rightBrace(J)}}function T41(J,X){if(!J.tokenMap||X.start==null||X.end==null)return null;let Z=J.tokenMap.getIndexes(X);if(!Z)return null;let Q=1,Y=0,z=0,H=()=>{while(z<X.body.length&&X.body[z].start==null)z++};return H(),(G)=>{if(z<=G)z=G+1,H();let W=z===X.body.length?X.end:X.body[z].start,V;while(Q<Z.length&&J.tokenMap.matchesOriginal(V=J._tokens[Z[Q]],";")&&V.start<W)J.tokenChar(59,Y++),Q++}}function L41(J){if(this.printJoin(J.decorators),!J.static&&!this.format.preserveFormat){var X;let Z=(X=J.key.loc)==null||(X=X.end)==null?void 0:X.line;if(Z)this.catchUp(Z)}if(N9._tsPrintClassMemberModifiers.call(this,J),J.computed)this.tokenChar(91),this.print(J.key),this.tokenChar(93);else HY._variance.call(this,J),this.print(J.key);if(J.optional)this.tokenChar(63);if(J.definite)this.tokenChar(33);if(this.print(J.typeAnnotation),J.value)this.space(),this.tokenChar(61),this.space(),this.print(J.value);this.semicolon()}function b41(J){var X;this.printJoin(J.decorators);let Z=(X=J.key.loc)==null||(X=X.end)==null?void 0:X.line;if(Z)this.catchUp(Z);if(N9._tsPrintClassMemberModifiers.call(this,J),this.word("accessor",!0),this.space(),J.computed)this.tokenChar(91),this.print(J.key),this.tokenChar(93);else HY._variance.call(this,J),this.print(J.key);if(J.optional)this.tokenChar(63);if(J.definite)this.tokenChar(33);if(this.print(J.typeAnnotation),J.value)this.space(),this.tokenChar(61),this.space(),this.print(J.value);this.semicolon()}function k41(J){if(this.printJoin(J.decorators),N9._tsPrintClassMemberModifiers.call(this,J),this.print(J.key),J.optional)this.tokenChar(63);if(J.definite)this.tokenChar(33);if(this.print(J.typeAnnotation),J.value)this.space(),this.tokenChar(61),this.space(),this.print(J.value);this.semicolon()}function v41(J){b6.call(this,J),this.space(),this.print(J.body)}function E41(J){b6.call(this,J),this.space(),this.print(J.body)}function b6(J){if(this.printJoin(J.decorators),!this.format.preserveFormat){var X;let Z=(X=J.key.loc)==null||(X=X.end)==null?void 0:X.line;if(Z)this.catchUp(Z)}N9._tsPrintClassMemberModifiers.call(this,J),N41._methodHead.call(this,J)}function g41(J){if(this.word("static"),this.space(),this.tokenChar(123),J.body.length===0)this.tokenChar(125);else this.newline(),this.printSequence(J.body,!0),this.rightBrace(J)}});var VY=N((WY)=>{Object.defineProperty(WY,"__esModule",{value:!0});WY.BlockStatement=r41;WY.Directive=d41;WY.DirectiveLiteral=t41;WY.File=i41;WY.InterpreterDirective=n41;WY.Placeholder=o41;WY.Program=p41;function i41(J){if(J.program)this.print(J.program.interpreter);this.print(J.program)}function p41(J){var X;this.printInnerComments(!1);let Z=(X=J.directives)==null?void 0:X.length;if(Z){var Q;let Y=J.body.length?2:1;if(this.printSequence(J.directives,void 0,void 0,Y),!((Q=J.directives[Z-1].trailingComments)!=null&&Q.length))this.newline(Y)}this.printSequence(J.body)}function r41(J){var X;this.tokenChar(123);let Z=this.enterDelimited(),Q=(X=J.directives)==null?void 0:X.length;if(Q){var Y;let z=J.body.length?2:1;if(this.printSequence(J.directives,!0,!0,z),!((Y=J.directives[Q-1].trailingComments)!=null&&Y.length))this.newline(z)}this.printSequence(J.body,!0,!0),this._noLineTerminatorAfterNode=Z,this.rightBrace(J)}function d41(J){this.print(J.value),this.semicolon()}var a41=/(?:^|[^\\])(?:\\\\)*'/,s41=/(?:^|[^\\])(?:\\\\)*"/;function t41(J){let X=this.getPossibleRaw(J);if(!this.format.minified&&X!==void 0){this.token(X);return}let{value:Z}=J;if(!s41.test(Z))this.token(`"${Z}"`);else if(!a41.test(Z))this.token(`'${Z}'`);else throw Error("Malformed AST: it is not possible to print a directive containing both unescaped single and double quotes.")}function n41(J){this.token(`#!${J.value}`),this._newline()}function o41(J){if(this.token("%%"),this.print(J.name),this.token("%%"),J.expectedNode==="Statement")this.semicolon()}});var UY=N((KY)=>{Object.defineProperty(KY,"__esModule",{value:!0});KY.JSXAttribute=H51;KY.JSXClosingElement=j51;KY.JSXClosingFragment=C51;KY.JSXElement=$51;KY.JSXEmptyExpression=M51;KY.JSXExpressionContainer=U51;KY.JSXFragment=O51;KY.JSXIdentifier=G51;KY.JSXMemberExpression=V51;KY.JSXNamespacedName=W51;KY.JSXOpeningElement=F51;KY.JSXOpeningFragment=A51;KY.JSXSpreadAttribute=K51;KY.JSXSpreadChild=B51;KY.JSXText=R51;function H51(J){if(this.print(J.name),J.value)this.tokenChar(61),this.print(J.value)}function G51(J){this.word(J.name)}function W51(J){this.print(J.namespace),this.tokenChar(58),this.print(J.name)}function V51(J){this.print(J.object),this.tokenChar(46),this.print(J.property)}function K51(J){this.tokenChar(123),this.token("..."),this.print(J.argument),this.rightBrace(J)}function U51(J){this.tokenChar(123),this.print(J.expression),this.rightBrace(J)}function B51(J){this.tokenChar(123),this.token("..."),this.print(J.expression),this.rightBrace(J)}function R51(J){let X=this.getPossibleRaw(J);if(X!==void 0)this.token(X,!0);else this.token(J.value,!0)}function $51(J){let X=J.openingElement;if(this.print(X),X.selfClosing)return;this.indent();for(let Z of J.children)this.print(Z);this.dedent(),this.print(J.closingElement)}function q51(){this.space()}function F51(J){if(this.tokenChar(60),this.print(J.name),J.typeArguments)this.print(J.typeArguments);if(this.print(J.typeParameters),J.attributes.length>0)this.space(),this.printJoin(J.attributes,void 0,void 0,q51);if(J.selfClosing)this.space(),this.tokenChar(47);this.tokenChar(62)}function j51(J){this.tokenChar(60),this.tokenChar(47),this.print(J.name),this.tokenChar(62)}function M51(){this.printInnerComments()}function O51(J){this.print(J.openingFragment),this.indent();for(let X of J.children)this.print(X);this.dedent(),this.print(J.closingFragment)}function A51(){this.tokenChar(60),this.tokenChar(62)}function C51(){this.token("</"),this.tokenChar(62)}});var BY=N((B1)=>{Object.defineProperty(B1,"__esModule",{value:!0});var k6=M6();Object.keys(k6).forEach(function(J){if(J==="default"||J==="__esModule")return;if(J in B1&&B1[J]===k6[J])return;Object.defineProperty(B1,J,{enumerable:!0,get:function(){return k6[J]}})});var v6=U9();Object.keys(v6).forEach(function(J){if(J==="default"||J==="__esModule")return;if(J in B1&&B1[J]===v6[J])return;Object.defineProperty(B1,J,{enumerable:!0,get:function(){return v6[J]}})});var E6=vQ();Object.keys(E6).forEach(function(J){if(J==="default"||J==="__esModule")return;if(J in B1&&B1[J]===E6[J])return;Object.defineProperty(B1,J,{enumerable:!0,get:function(){return E6[J]}})});var g6=N6();Object.keys(g6).forEach(function(J){if(J==="default"||J==="__esModule")return;if(J in B1&&B1[J]===g6[J])return;Object.defineProperty(B1,J,{enumerable:!0,get:function(){return g6[J]}})});var _6=FX();Object.keys(_6).forEach(function(J){if(J==="default"||J==="__esModule")return;if(J in B1&&B1[J]===_6[J])return;Object.defineProperty(B1,J,{enumerable:!0,get:function(){return _6[J]}})});var f6=w6();Object.keys(f6).forEach(function(J){if(J==="default"||J==="__esModule")return;if(J in B1&&B1[J]===f6[J])return;Object.defineProperty(B1,J,{enumerable:!0,get:function(){return f6[J]}})});var h6=j9();Object.keys(h6).forEach(function(J){if(J==="default"||J==="__esModule")return;if(J in B1&&B1[J]===h6[J])return;Object.defineProperty(B1,J,{enumerable:!0,get:function(){return h6[J]}})});var x6=L6();Object.keys(x6).forEach(function(J){if(J==="default"||J==="__esModule")return;if(J in B1&&B1[J]===x6[J])return;Object.defineProperty(B1,J,{enumerable:!0,get:function(){return x6[J]}})});var y6=VY();Object.keys(y6).forEach(function(J){if(J==="default"||J==="__esModule")return;if(J in B1&&B1[J]===y6[J])return;Object.defineProperty(B1,J,{enumerable:!0,get:function(){return y6[J]}})});var u6=UY();Object.keys(u6).forEach(function(J){if(J==="default"||J==="__esModule")return;if(J in B1&&B1[J]===u6[J])return;Object.defineProperty(B1,J,{enumerable:!0,get:function(){return u6[J]}})});var m6=D6();Object.keys(m6).forEach(function(J){if(J==="default"||J==="__esModule")return;if(J in B1&&B1[J]===m6[J])return;Object.defineProperty(B1,J,{enumerable:!0,get:function(){return m6[J]}})})});var $Y=N((RY)=>{Object.defineProperty(RY,"__esModule",{value:!0});RY.DecimalLiteral=y51;RY.Noop=h51;RY.RecordExpression=u51;RY.TSExpressionWithTypeArguments=x51;RY.TupleExpression=m51;function h51(){}function x51(J){this.print(J.expression),this.print(J.typeParameters)}function y51(J){let X=this.getPossibleRaw(J);if(!this.format.minified&&X!==void 0){this.word(X);return}this.word(J.value+"m")}function u51(J){let X=J.properties,Z,Q;if(this.format.recordAndTupleSyntaxType==="bar")Z="{|",Q="|}";else if(this.format.recordAndTupleSyntaxType!=="hash"&&this.format.recordAndTupleSyntaxType!=null)throw Error(`The "recordAndTupleSyntaxType" generator option must be "bar" or "hash" (${JSON.stringify(this.format.recordAndTupleSyntaxType)} received).`);else Z="#{",Q="}";if(this.token(Z),X.length)this.space(),this.printList(X,this.shouldPrintTrailingComma(Q),!0,!0),this.space();this.token(Q)}function m51(J){let X=J.elements,Z=X.length,Q,Y;if(this.format.recordAndTupleSyntaxType==="bar")Q="[|",Y="|]";else if(this.format.recordAndTupleSyntaxType==="hash")Q="#[",Y="]";else throw Error(`${this.format.recordAndTupleSyntaxType} is not a valid recordAndTuple syntax type`);this.token(Q);for(let z=0;z<X.length;z++){let H=X[z];if(H){if(z>0)this.space();if(this.print(H),z<Z-1||this.shouldPrintTrailingComma(Y))this.token(",",!1,z)}}this.token(Y)}});var c6=N((OY)=>{Object.defineProperty(OY,"__esModule",{value:!0});OY.generatorInfosMap=void 0;var qY=BY(),FY=$Y(),jY=OY.generatorInfosMap=new Map,MY=0;for(let J of Object.keys(qY).sort()){if(J.startsWith("_"))continue;jY.set(J,[qY[J],MY++,void 0])}for(let J of Object.keys(FY))jY.set(J,[FY[J],MY++,void 0])});var tJ=N((wY)=>{Object.defineProperty(wY,"__esModule",{value:!0});wY.TokenContext=void 0;wY.isLastChild=t51;wY.parentNeedsParens=s51;var CY=PQ(),d51=Y1(),DY=c6(),{VISITOR_KEYS:a51}=d51,pP1=wY.TokenContext={normal:0,expressionStatement:1,arrowBody:2,exportDefault:4,arrowFlowReturnType:8,forInitHead:16,forInHead:32,forOfHead:64,forInOrInitHeadAccumulate:128,forInOrInitHeadAccumulatePassThroughMask:128};for(let J of Object.keys(CY)){let X=CY[J];if(DY.generatorInfosMap.has(J))DY.generatorInfosMap.get(J)[2]=X}function NY(J){switch(J.type){case"CallExpression":return!0;case"MemberExpression":return NY(J.object)}return!1}function s51(J,X,Z){switch(Z){case 112:if(X.callee===J){if(NY(J))return!0}break;case 42:return!l6(J)&&!(J.type==="CallExpression"&&l6(J.callee))&&J.type!=="ParenthesizedExpression"}return!1}function l6(J){switch(J.type){case"Identifier":return!0;case"MemberExpression":return!J.computed&&J.property.type==="Identifier"&&l6(J.object);default:return!1}}function t51(J,X){let Z=a51[J.type];for(let Q=Z.length-1;Q>=0;Q--){let Y=J[Z[Q]];if(Y===X)return!0;else if(Array.isArray(Y)){let z=Y.length-1;while(z>=0&&Y[z]===null)z--;return z>=0&&Y[z]===X}else if(Y)return!1}return!1}});var LY=N((IY)=>{Object.defineProperty(IY,"__esModule",{value:!0});IY.TokenMap=void 0;var e51=Y1(),{traverseFast:JZ1,VISITOR_KEYS:XZ1}=e51;class SY{constructor(J,X,Z){this._tokens=void 0,this._source=void 0,this._nodesToTokenIndexes=new Map,this._nodesOccurrencesCountCache=new Map,this._tokensCache=new Map,this._tokens=X,this._source=Z,JZ1(J,(Q)=>{let Y=this._getTokensIndexesOfNode(Q);if(Y.length>0)this._nodesToTokenIndexes.set(Q,Y)}),this._tokensCache.clear()}has(J){return this._nodesToTokenIndexes.has(J)}getIndexes(J){return this._nodesToTokenIndexes.get(J)}find(J,X){let Z=this._nodesToTokenIndexes.get(J);if(Z)for(let Q=0;Q<Z.length;Q++){let Y=Z[Q],z=this._tokens[Y];if(X(z,Y))return z}return null}findLastIndex(J,X){let Z=this._nodesToTokenIndexes.get(J);if(Z)for(let Q=Z.length-1;Q>=0;Q--){let Y=Z[Q],z=this._tokens[Y];if(X(z,Y))return Y}return-1}findMatching(J,X,Z=0){let Q=this._nodesToTokenIndexes.get(J);if(Q){if(typeof X==="number")X=String.fromCharCode(X);let Y=0,z=Z;if(z>1){let H=this._nodesOccurrencesCountCache.get(J);if((H==null?void 0:H.test)===X&&H.count<z)Y=H.i+1,Z-=H.count+1}for(;Y<Q.length;Y++){let H=this._tokens[Q[Y]];if(this.matchesOriginal(H,X)){if(Z===0){if(z>0)this._nodesOccurrencesCountCache.set(J,{test:X,count:z,i:Y});return H}Z--}}}return null}matchesOriginal(J,X){if(J.end-J.start!==X.length)return!1;if(J.value!=null)return J.value===X;return this._source.startsWith(X,J.start)}startMatches(J,X){let Z=this._nodesToTokenIndexes.get(J);if(!Z)return!1;let Q=this._tokens[Z[0]];if(Q.start!==J.start)return!1;return this.matchesOriginal(Q,X)}endMatches(J,X){let Z=this._nodesToTokenIndexes.get(J);if(!Z)return!1;let Q=this._tokens[Z[Z.length-1]];if(Q.end!==J.end)return!1;return this.matchesOriginal(Q,X)}_getTokensIndexesOfNode(J){var X;if(J.start==null||J.end==null)return[];let{first:Z,last:Q}=this._findTokensOfNode(J,0,this._tokens.length-1),Y=Z,z=ZZ1(J);if((J.type==="ExportNamedDeclaration"||J.type==="ExportDefaultDeclaration")&&((X=J.declaration)==null?void 0:X.type)==="ClassDeclaration")z.next();let H=[];for(let G of z){if(G==null)continue;if(G.start==null||G.end==null)continue;let W=this._findTokensOfNode(G,Y,Q),V=W.first;for(let U=Y;U<V;U++)H.push(U);Y=W.last+1}for(let G=Y;G<=Q;G++)H.push(G);return H}_findTokensOfNode(J,X,Z){let Q=this._tokensCache.get(J);if(Q)return Q;let Y=this._findFirstTokenOfNode(J.start,X,Z),z=this._findLastTokenOfNode(J.end,Y,Z);return this._tokensCache.set(J,{first:Y,last:z}),{first:Y,last:z}}_findFirstTokenOfNode(J,X,Z){while(X<=Z){let Q=Z+X>>1;if(J<this._tokens[Q].start)Z=Q-1;else if(J>this._tokens[Q].start)X=Q+1;else return Q}return X}_findLastTokenOfNode(J,X,Z){while(X<=Z){let Q=Z+X>>1;if(J<this._tokens[Q].end)Z=Q-1;else if(J>this._tokens[Q].end)X=Q+1;else return Q}return Z}}IY.TokenMap=SY;function*ZZ1(J){if(J.type==="TemplateLiteral"){yield J.quasis[0];for(let Z=1;Z<J.quasis.length;Z++)yield J.expressions[Z-1],yield J.quasis[Z];return}let X=XZ1[J.type];for(let Z of X){let Q=J[Z];if(!Q)continue;if(Array.isArray(Q))yield*Q;else yield Q}}});var _Y=N((EY)=>{Object.defineProperty(EY,"__esModule",{value:!0});EY.default=void 0;var QZ1=b7(),oJ=tJ(),YZ1=c6(),zZ1=Y1(),HZ1=LY(),GZ1=j9(),{isExpression:WZ1,isFunction:VZ1,isStatement:KZ1,isClassBody:UZ1,isTSInterfaceBody:BZ1,isTSEnumMember:RZ1}=zZ1,$Z1=/e/i,qZ1=/\.0+$/,kY=/[\n\r\u2028\u2029]/,FZ1=/[\n\r\u2028\u2029]|\*\//;function bY(J){return J.type==="CommentLine"||kY.test(J.value)}class vY{constructor(J,X,Z=null,Q=null){this.tokenContext=oJ.TokenContext.normal,this._tokens=null,this._originalCode=null,this._currentNode=null,this._currentTypeId=null,this._indent=0,this._indentRepeat=0,this._insideAux=!1,this._noLineTerminator=!1,this._noLineTerminatorAfterNode=null,this._printAuxAfterOnNextUserNode=!1,this._printedComments=new Set,this._lastCommentLine=0,this._innerCommentsState=0,this._flags=0,this.tokenMap=null,this._boundGetRawIdentifier=null,this._printSemicolonBeforeNextNode=-1,this._printSemicolonBeforeNextToken=-1,this.format=J,this._tokens=Z,this._originalCode=Q,this._indentRepeat=J.indent.style.length,this._inputMap=(X==null?void 0:X._inputMap)||null,this._buf=new QZ1.default(X,J.indent.style[0]);let{preserveFormat:Y,compact:z,concise:H,retainLines:G,retainFunctionParens:W}=J;if(Y)this._flags|=1;if(z)this._flags|=2;if(H)this._flags|=4;if(G)this._flags|=8;if(W)this._flags|=16;if(J.auxiliaryCommentBefore||J.auxiliaryCommentAfter)this._flags|=32}enterDelimited(){let J=this._noLineTerminatorAfterNode;if(J!==null)this._noLineTerminatorAfterNode=null;return J}generate(J){if(this.format.preserveFormat)this.tokenMap=new HZ1.TokenMap(J,this._tokens,this._originalCode),this._boundGetRawIdentifier=GZ1._getRawIdentifier.bind(this);return this.print(J),this._maybeAddAuxComment(),this._buf.get()}indent(J=this._flags){if(J&7)return;this._indent+=this._indentRepeat}dedent(J=this._flags){if(J&7)return;this._indent-=this._indentRepeat}semicolon(J=!1){let X=this._flags;if(X&32)this._maybeAddAuxComment();if(X&1){let Z=this._currentNode;if(Z.start!=null&&Z.end!=null){if(!this.tokenMap.endMatches(Z,";")){this._printSemicolonBeforeNextNode=this._buf.getCurrentLine();return}let Q=this.tokenMap.getIndexes(this._currentNode);this._catchUpTo(this._tokens[Q[Q.length-1]].loc.start)}}if(J)this._appendChar(59);else this._queue(59);this._noLineTerminator=!1}rightBrace(J){if(this.format.minified)this._buf.removeLastSemicolon();this.sourceWithOffset("end",J.loc,-1),this.tokenChar(125)}rightParens(J){this.sourceWithOffset("end",J.loc,-1),this.tokenChar(41)}space(J=!1){if(this._flags&3)return;if(J)this._space();else{let X=this.getLastChar(!0);if(X!==0&&X!==32&&X!==10)this._space()}}word(J,X=!1){this.tokenContext&=oJ.TokenContext.forInOrInitHeadAccumulatePassThroughMask,this._maybePrintInnerComments(J);let Z=this._flags;if(Z&32)this._maybeAddAuxComment();if(Z&1)this._catchUpToCurrentToken(J);let Q=this.getLastChar();if(Q===-2||Q===-3||Q===47&&J.charCodeAt(0)===47)this._space();this._append(J,!1),this.setLastChar(-3),this._noLineTerminator=X}number(J,X){function Z(Q){if(Q.length>2&&Q.charCodeAt(0)===48){let Y=Q.charCodeAt(1);return Y===98||Y===111||Y===120}return!1}if(this.word(J),Number.isInteger(X)&&!Z(J)&&!$Z1.test(J)&&!qZ1.test(J)&&J.charCodeAt(J.length-1)!==46)this.setLastChar(-2)}token(J,X=!1,Z=0,Q=!1){this.tokenContext&=oJ.TokenContext.forInOrInitHeadAccumulatePassThroughMask,this._maybePrintInnerComments(J,Z);let Y=this._flags;if(Y&32)this._maybeAddAuxComment();if(Y&1)this._catchUpToCurrentToken(J,Z);if(Q){let z=J.charCodeAt(0);if((z===45&&J==="--"||z===61)&&this.getLastChar()===33||z===43&&this.getLastChar()===43||z===45&&this.getLastChar()===45||z===46&&this.getLastChar()===-2)this._space()}this._append(J,X),this._noLineTerminator=!1}tokenChar(J,X=0){this.tokenContext&=oJ.TokenContext.forInOrInitHeadAccumulatePassThroughMask,this._maybePrintInnerComments(J,X);let Z=this._flags;if(Z&32)this._maybeAddAuxComment();if(Z&1)this._catchUpToCurrentToken(J,X);if(J===43&&this.getLastChar()===43||J===45&&this.getLastChar()===45||J===46&&this.getLastChar()===-2)this._space();this._appendChar(J),this._noLineTerminator=!1}newline(J=1,X=this._flags){if(J<=0)return;if(X&10)return;if(X&4){this.space();return}if(J>2)J=2;J-=this._buf.getNewlineCount();for(let Z=0;Z<J;Z++)this._newline()}endsWith(J){return this.getLastChar(!0)===J}getLastChar(J){return this._buf.getLastChar(J)}setLastChar(J){this._buf._last=J}exactSource(J,X){if(!J){X();return}this._catchUp("start",J),this._buf.exactSource(J,X)}source(J,X){if(!X)return;this._catchUp(J,X),this._buf.source(J,X)}sourceWithOffset(J,X,Z){if(!X||this.format.preserveFormat)return;this._catchUp(J,X),this._buf.sourceWithOffset(J,X,Z)}sourceIdentifierName(J,X){if(!this._buf._canMarkIdName)return;let Z=this._buf._sourcePosition;Z.identifierNamePos=X,Z.identifierName=J}_space(){this._queue(32)}_newline(){if(this._buf._queuedChar===32)this._buf._queuedChar=0;this._appendChar(10,!0)}_catchUpToCurrentToken(J,X=0){let Z=this.tokenMap.findMatching(this._currentNode,J,X);if(Z)this._catchUpTo(Z.loc.start);if(this._printSemicolonBeforeNextToken!==-1&&this._printSemicolonBeforeNextToken===this._buf.getCurrentLine())this._appendChar(59,!0);this._printSemicolonBeforeNextToken=-1,this._printSemicolonBeforeNextNode=-1}_append(J,X){this._maybeIndent(),this._buf.append(J,X)}_appendChar(J,X){if(!X)this._maybeIndent();this._buf.appendChar(J)}_queue(J){this._buf.queue(J),this.setLastChar(-1)}_maybeIndent(){let J=this._shouldIndent();if(J>0)this._buf._appendChar(-1,J,!1)}_shouldIndent(){return this.endsWith(10)?this._indent:0}catchUp(J){if(!this.format.retainLines)return;let X=J-this._buf.getCurrentLine();for(let Z=0;Z<X;Z++)this._newline()}_catchUp(J,X){let Z=this._flags;if((Z&1)===0){if(Z&8&&X!=null&&X[J])this.catchUp(X[J].line);return}let Q=X==null?void 0:X[J];if(Q!=null)this._catchUpTo(Q)}_catchUpTo({line:J,column:X,index:Z}){let Q=J-this._buf.getCurrentLine();if(Q>0&&this._noLineTerminator)return;for(let z=0;z<Q;z++)this._newline();let Y=Q>0?X:X-this._buf.getCurrentColumn();if(Y>0){let z=this._originalCode?this._originalCode.slice(Z-Y,Z).replace(/[^\t\x0B\f \xA0\u1680\u2000-\u200A\u202F\u205F\u3000\uFEFF]/gu," "):" ".repeat(Y);this._append(z,!1),this.setLastChar(32)}}printTerminatorless(J){this._noLineTerminator=!0,this.print(J)}print(J,X=!1,Z=!1,Q){var Y,z;if(!J)return;this._innerCommentsState=0;let{type:H,loc:G,extra:W}=J,V=this._flags,U=!1;if(J._compact)this._flags|=4,U=!0;let q=YZ1.generatorInfosMap.get(H);if(q===void 0)throw ReferenceError(`unknown node of type ${JSON.stringify(H)} with constructor ${JSON.stringify(J.constructor.name)}`);let[O,A,D]=q,S=this._currentNode,C=this._currentTypeId;if(this._currentNode=J,this._currentTypeId=A,V&1)this._printSemicolonBeforeNextToken=this._printSemicolonBeforeNextNode;let L;if(V&32)L=this._insideAux,this._insideAux=G==null,this._maybeAddAuxComment(this._insideAux&&!L);let b=0;if(Z)if(b=this.tokenContext,b&oJ.TokenContext.forInOrInitHeadAccumulate)this.tokenContext=0;else b=0;let s=W!=null&&W.parenthesized,h=s&&V&1||s&&V&16&&A===71||S&&((0,oJ.parentNeedsParens)(J,S,C)||D!=null&&D(J,S,C,this.tokenContext,V&1?this._boundGetRawIdentifier:void 0));if(!h&&s&&(Y=J.leadingComments)!=null&&Y.length&&J.leadingComments[0].type==="CommentBlock")switch(C){case 65:case 243:case 6:case 143:break;case 17:case 130:case 112:if(S.callee!==J)break;default:h=!0}let i=!1;if(!h&&this._noLineTerminator&&((z=J.leadingComments)!=null&&z.some(bY)||V&8&&G&&G.start.line>this._buf.getCurrentLine()))h=!0,i=!0;let H1;if(!h){if(X||(X=!!S&&this._noLineTerminatorAfterNode===S&&(0,oJ.isLastChild)(S,J)),X){var M1;if((M1=J.trailingComments)!=null&&M1.some(bY)){if(WZ1(J))h=!0}else H1=this._noLineTerminatorAfterNode,this._noLineTerminatorAfterNode=J}}if(h){if(this.tokenChar(40),i)this.indent();if(this._innerCommentsState=0,!Z)b=this.tokenContext;if(b&oJ.TokenContext.forInOrInitHeadAccumulate)this.tokenContext=0;H1=this._noLineTerminatorAfterNode,this._noLineTerminatorAfterNode=null}if(this._printLeadingComments(J,S),this.exactSource(A===139||A===66?null:G,O.bind(this,J,S)),h){if(this._printTrailingComments(J,S),i)this.dedent(),this.newline();this.tokenChar(41),this._noLineTerminator=X}else if(X&&!this._noLineTerminator)this._noLineTerminator=!0,this._printTrailingComments(J,S);else this._printTrailingComments(J,S,Q);if(b)this.tokenContext=b;if(this._currentNode=S,this._currentTypeId=C,U)this._flags=V;if(V&32)this._insideAux=L;if(H1!=null)this._noLineTerminatorAfterNode=H1;this._innerCommentsState=0}_maybeAddAuxComment(J){if(J)this._printAuxBeforeComment();if(!this._insideAux)this._printAuxAfterComment()}_printAuxBeforeComment(){if(this._printAuxAfterOnNextUserNode)return;this._printAuxAfterOnNextUserNode=!0;let J=this.format.auxiliaryCommentBefore;if(J)this._printComment({type:"CommentBlock",value:J},0)}_printAuxAfterComment(){if(!this._printAuxAfterOnNextUserNode)return;this._printAuxAfterOnNextUserNode=!1;let J=this.format.auxiliaryCommentAfter;if(J)this._printComment({type:"CommentBlock",value:J},0)}getPossibleRaw(J){let X=J.extra;if((X==null?void 0:X.raw)!=null&&X.rawValue!=null&&J.value===X.rawValue)return X.raw}printJoin(J,X,Z,Q,Y,z,H){if(!(J!=null&&J.length))return;let G=this._flags;if(Z==null&&G&8){var W;let q=(W=J[0].loc)==null?void 0:W.start.line;if(q!=null&&q!==this._buf.getCurrentLine())Z=!0}if(Z)this.indent(G);let V=J.length;for(let q=0;q<V;q++){let O=J[q];if(!O)continue;if(X&&q===0&&this._buf.hasContent())this.newline(1,G);if(this.print(O,!1,z,H||0),Q!=null){if(q<V-1)Q.call(this,q,!1);else if(Y)Q.call(this,q,!0)}if(X)if(q+1===V)this.newline(1,G);else{let A=this._lastCommentLine;if(A>0){var U;let D=(((U=J[q+1].loc)==null?void 0:U.start.line)||0)-A;if(D>=0){this.newline(D||1,G);continue}}this.newline(1,G)}}if(Z)this.dedent(G)}printAndIndentOnComments(J){let X=J.leadingComments&&J.leadingComments.length>0;if(X)this.indent();if(this.print(J),X)this.dedent()}printBlock(J){if(J.type!=="EmptyStatement")this.space();this.print(J)}_printTrailingComments(J,X,Z){let{innerComments:Q,trailingComments:Y}=J;if(Q!=null&&Q.length)this._printComments(2,Q,J,X,Z);if(Y!=null&&Y.length)this._printComments(2,Y,J,X,Z);else this._lastCommentLine=0}_printLeadingComments(J,X){let Z=J.leadingComments;if(!(Z!=null&&Z.length))return;this._printComments(0,Z,J,X)}_maybePrintInnerComments(J,X){var Z;let Q=this._innerCommentsState;switch(Q&3){case 0:this._innerCommentsState=5;return;case 1:this.printInnerComments((Q&4)>0,(Z=this.tokenMap)==null?void 0:Z.findMatching(this._currentNode,J,X))}}printInnerComments(J=!0,X){let Z=this._currentNode,Q=Z.innerComments;if(!(Q!=null&&Q.length)){this._innerCommentsState=2;return}let Y=this.endsWith(32);if(J)this.indent();switch(this._printComments(1,Q,Z,void 0,void 0,X)){case 2:this._innerCommentsState=2;case 1:if(Y)this.space()}if(J)this.dedent()}noIndentInnerCommentsHere(){this._innerCommentsState&=-5}printSequence(J,X,Z,Q){this.printJoin(J,!0,X!=null?X:!1,void 0,void 0,Z,Q)}printList(J,X,Z,Q,Y,z){this.printJoin(J,Z,Q,Y!=null?Y:jZ1,X,z)}shouldPrintTrailingComma(J){if(!this.tokenMap)return null;let X=this.tokenMap.findLastIndex(this._currentNode,(Z)=>this.tokenMap.matchesOriginal(Z,typeof J==="number"?String.fromCharCode(J):J));if(X<=0)return null;return this.tokenMap.matchesOriginal(this._tokens[X-1],",")}_shouldPrintComment(J,X){if(J.ignore)return 0;if(this._printedComments.has(J))return 0;if(this._noLineTerminator&&FZ1.test(J.value))return 2;if(X&&this.tokenMap){let Z=this.tokenMap.find(this._currentNode,(Q)=>Q.value===J.value);if(Z&&Z.start>X.start)return 2}if(this._printedComments.add(J),!this.format.shouldPrintComment(J.value))return 0;return 1}_printComment(J,X){let Z=this._noLineTerminator,Q=J.type==="CommentBlock",Y=Q&&X!==1&&!Z;if(Y&&this._buf.hasContent()&&X!==2)this.newline(1);switch(this.getLastChar(!0)){case 47:this._space();case 91:case 123:case 40:break;default:this.space()}let z;if(Q){if(z=`/*${J.value}*/`,this.format.indent.adjustMultilineComment){var H;let G=(H=J.loc)==null?void 0:H.start.column;if(G){let W=new RegExp("\\n\\s{1,"+G+"}","g");z=z.replace(W,`
|
|
14
|
+
`)}if(this._flags&4)z=z.replace(/\n(?!$)/g,`
|
|
15
|
+
`);else{let W=this.format.retainLines?0:this._buf.getCurrentColumn();if(this._shouldIndent()||this.format.retainLines)W+=this._indent;z=z.replace(/\n(?!$)/g,`
|
|
16
|
+
${" ".repeat(W)}`)}}}else if(!Z)z=`//${J.value}`;else z=`/*${J.value}*/`;if(this.source("start",J.loc),this._append(z,Q),!Q&&!Z)this._newline();if(Y&&X!==3)this.newline(1)}_printComments(J,X,Z,Q,Y=0,z){let H=Z.loc,G=X.length,W=!!H,V=W?H.start.line:0,U=W?H.end.line:0,q=0,O=0,{_noLineTerminator:A,_flags:D}=this;for(let S=0;S<G;S++){let C=X[S],L=this._shouldPrintComment(C,z);if(L===2)return S===0?0:1;if(W&&C.loc&&L===1){let b=C.loc.start.line,s=C.loc.end.line;if(J===0){let h=0;if(S===0){if(this._buf.hasContent()&&(C.type==="CommentLine"||b!==s))h=O=1}else h=b-q;if(q=s,h>0&&!A)this.newline(h,D);if(this._printComment(C,1),S+1===G){let i=Math.max(V-q,O);if(i>0&&!A)this.newline(i,D);q=V}}else if(J===1){let h=b-(S===0?V:q);if(q=s,h>0&&!A)this.newline(h,D);if(this._printComment(C,1),S+1===G){let i=Math.min(1,U-q);if(i>0&&!A)this.newline(i,D);q=U}}else{let h=b-(S===0?U-Y:q);if(q=s,h>0&&!A)this.newline(h,D);this._printComment(C,1)}}else{if(W=!1,L!==1)continue;if(G===1){let b=C.loc?C.loc.start.line===C.loc.end.line:!kY.test(C.value),s=b&&!KZ1(Z)&&!UZ1(Q)&&!BZ1(Q)&&!RZ1(Z);if(J===0)this._printComment(C,s&&Z.type!=="ObjectExpression"||b&&VZ1(Q)&&Q.body===Z?1:0);else if(s&&J===2)this._printComment(C,1);else this._printComment(C,0)}else if(J===1&&!(Z.type==="ObjectExpression"&&Z.properties.length>1)&&Z.type!=="ClassBody"&&Z.type!=="TSInterfaceBody")this._printComment(C,S===0?2:S===G-1?3:0);else this._printComment(C,0)}}if(J===2&&W&&q)this._lastCommentLine=q;return 2}}var aP1=EY.default=vY;function jZ1(J,X){if(this.tokenChar(44,J),!X)this.space()}});var i6=N((uY)=>{Object.defineProperty(uY,"__esModule",{value:!0});uY.default=void 0;uY.generate=yY;var fY=P7(),hY=_Y();function xY(J,X,Z){var Q;if(X.experimental_preserveFormat){if(typeof J!=="string")throw Error("`experimental_preserveFormat` requires the original `code` to be passed to @babel/generator as a string");if(!X.retainLines)throw Error("`experimental_preserveFormat` requires `retainLines` to be set to `true`");if(X.compact&&X.compact!=="auto")throw Error("`experimental_preserveFormat` is not compatible with the `compact` option");if(X.minified)throw Error("`experimental_preserveFormat` is not compatible with the `minified` option");if(X.jsescOption)throw Error("`experimental_preserveFormat` is not compatible with the `jsescOption` option");if(!Array.isArray(Z.tokens))throw Error("`experimental_preserveFormat` requires the AST to have attached the token of the input code. Make sure to enable the `tokens: true` parser option.")}let Y={auxiliaryCommentBefore:X.auxiliaryCommentBefore,auxiliaryCommentAfter:X.auxiliaryCommentAfter,shouldPrintComment:X.shouldPrintComment,preserveFormat:X.experimental_preserveFormat,retainLines:X.retainLines,retainFunctionParens:X.retainFunctionParens,comments:X.comments==null||X.comments,compact:X.compact,minified:X.minified,concise:X.concise,indent:{adjustMultilineComment:!0,style:" "},jsescOption:Object.assign({quotes:"double",wrap:!0,minimal:!1},X.jsescOption),topicToken:X.topicToken};if(Y.decoratorsBeforeExport=X.decoratorsBeforeExport,Y.jsescOption.json=X.jsonCompatibleStrings,Y.recordAndTupleSyntaxType=(Q=X.recordAndTupleSyntaxType)!=null?Q:"hash",Y.importAttributesKeyword=X.importAttributesKeyword,Y.minified)Y.compact=!0,Y.shouldPrintComment=Y.shouldPrintComment||(()=>Y.comments);else Y.shouldPrintComment=Y.shouldPrintComment||((W)=>Y.comments||W.includes("@license")||W.includes("@preserve"));if(Y.compact==="auto"){if(Y.compact=typeof J==="string"&&J.length>500000,Y.compact)console.error(`[BABEL] Note: The code generator has deoptimised the styling of ${X.filename} as it exceeds the max of 500KB.`)}if(Y.compact||Y.preserveFormat)Y.indent.adjustMultilineComment=!1;let{auxiliaryCommentBefore:z,auxiliaryCommentAfter:H,shouldPrintComment:G}=Y;if(z&&!G(z))Y.auxiliaryCommentBefore=void 0;if(H&&!G(H))Y.auxiliaryCommentAfter=void 0;return Y}uY.CodeGenerator=class{constructor(X,Z={},Q){this._ast=void 0,this._format=void 0,this._map=void 0,this._ast=X,this._format=xY(Q,Z,X),this._map=Z.sourceMaps?new fY.default(Z,Q):null}generate(){return new hY.default(this._format,this._map).generate(this._ast)}};function yY(J,X={},Z){let Q=xY(Z,X,J),Y=X.sourceMaps?new fY.default(X,Z):null;return new hY.default(Q,Y,J.tokens,typeof Z==="string"?Z:null).generate(J)}var tP1=uY.default=yY});var v9=N((Ez)=>{Object.defineProperty(Ez,"__esModule",{value:!0});function AZ1(J,X){if(J==null)return{};var Z={};for(var Q in J)if({}.hasOwnProperty.call(J,Q)){if(X.indexOf(Q)!==-1)continue;Z[Q]=J[Q]}return Z}class cJ{constructor(J,X,Z){this.line=void 0,this.column=void 0,this.index=void 0,this.line=J,this.column=X,this.index=Z}}class TX{constructor(J,X){this.start=void 0,this.end=void 0,this.filename=void 0,this.identifierName=void 0,this.start=J,this.end=X}}function o1(J,X){let{line:Z,column:Q,index:Y}=J;return new cJ(Z,Q+X,Y+X)}var cY="BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED",CZ1={ImportMetaOutsideModule:{message:`import.meta may appear only with 'sourceType: "module"'`,code:cY},ImportOutsideModule:{message:`'import' and 'export' may appear only with 'sourceType: "module"'`,code:cY}},lY={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"},S9=(J)=>J.type==="UpdateExpression"?lY.UpdateExpression[`${J.prefix}`]:lY[J.type],DZ1={AccessorIsGenerator:({kind:J})=>`A ${J}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.",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:J})=>`Missing initializer in ${J} 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:J})=>`\`${J}\` has already been exported. Exported identifiers must be unique.`,DuplicateProto:"Redefinition of __proto__ property.",DuplicateRegExpFlags:"Duplicate regular expression flag.",ElementAfterRest:"Rest element must be last element.",EscapedCharNotAnIdentifier:"Invalid Unicode escape.",ExportBindingIsString:({localName:J,exportName:X})=>`A string literal cannot be used as an exported binding without \`from\`.
|
|
17
|
+
- Did you mean \`export { '${J}' as '${X}' } from 'some-module'\`?`,ExportDefaultFromAsIdentifier:"'from' is not allowed as an identifier after 'export default'.",ForInOfLoopInitializer:({type:J})=>`'${J==="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:J})=>`Unsyntactic ${J==="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 `deprecatedImportAssert` parser plugin to suppress this error.",ImportBindingIsString:({importName:J})=>`A string literal cannot be used as an imported binding.
|
|
18
|
+
- Did you mean \`import { "${J}" as foo }\`?`,ImportCallArity:"`import()` requires exactly 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.",InvalidCoverDiscardElement:"'void' must be followed by an expression when not used in a binding position.",InvalidCoverInitializedName:"Invalid shorthand property initializer.",InvalidDecimal:"Invalid decimal.",InvalidDigit:({radix:J})=>`Expected number in radix ${J}.`,InvalidEscapeSequence:"Bad character escape sequence.",InvalidEscapeSequenceTemplate:"Invalid escape sequence in template.",InvalidEscapedReservedWord:({reservedWord:J})=>`Escape sequence in keyword ${J}.`,InvalidIdentifier:({identifierName:J})=>`Invalid identifier ${J}.`,InvalidLhs:({ancestor:J})=>`Invalid left-hand side in ${S9(J)}.`,InvalidLhsBinding:({ancestor:J})=>`Binding invalid left-hand side in ${S9(J)}.`,InvalidLhsOptionalChaining:({ancestor:J})=>`Invalid optional chaining in the left-hand side of ${S9(J)}.`,InvalidNumber:"Invalid number.",InvalidOrMissingExponent:"Floating-point numbers require a valid exponent after the 'e'.",InvalidOrUnexpectedToken:({unexpected:J})=>`Unexpected character '${J}'.`,InvalidParenthesizedAssignment:"Invalid parenthesized assignment pattern.",InvalidPrivateFieldResolution:({identifierName:J})=>`Private name #${J} 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:J})=>`Label '${J}' 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:J})=>`This experimental syntax requires enabling the parser plugin: ${J.map((X)=>JSON.stringify(X)).join(", ")}.`,MissingOneOfPlugins:({missingPlugin:J})=>`This experimental syntax requires enabling one of the following parser plugin(s): ${J.map((X)=>JSON.stringify(X)).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:J})=>`Duplicate key "${J}" is not allowed in module attributes.`,ModuleExportNameHasLoneSurrogate:({surrogateCharCode:J})=>`An export name cannot include a lone surrogate, found '\\u${J.toString(16)}'.`,ModuleExportUndefined:({localName:J})=>`Export '${J}' 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:J})=>`Private names are only allowed in property accesses (\`obj.#${J}\`) or in \`in\` expressions (\`#${J} in obj\`).`,PrivateNameRedeclaration:({identifierName:J})=>`Duplicate private name #${J}.`,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:J})=>`Unexpected keyword '${J}'.`,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:J})=>`Unexpected reserved word '${J}'.`,UnexpectedSuper:"'super' is only allowed in object methods and classes.",UnexpectedToken:({expected:J,unexpected:X})=>`Unexpected token${X?` '${X}'.`:""}${J?`, expected "${J}"`:""}`,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` or in the bare case statement.",UnexpectedVoidPattern:"Unexpected void binding.",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:J,onlyValidPropertyName:X})=>`The only valid meta property for ${J} is ${J}.${X}.`,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:J})=>`Identifier '${J}' has already been declared.`,VoidPatternCatchClauseParam:"A void binding can not be the catch clause parameter. Use `try { ... } catch { ... }` if you want to discard the caught error.",VoidPatternInitializer:"A void binding may not have an initializer.",YieldBindingIdentifier:"Can not use 'yield' as identifier inside a generator.",YieldInParameter:"Yield expression is not allowed in formal parameters.",YieldNotInGeneratorFunction:"'yield' is only allowed within generator functions.",ZeroDigitNumericSeparator:"Numeric separator can not be used after leading 0."},NZ1={StrictDelete:"Deleting local variable in strict mode.",StrictEvalArguments:({referenceName:J})=>`Assigning to '${J}' in strict mode.`,StrictEvalArgumentsBinding:({bindingName:J})=>`Binding '${J}' 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."},wZ1={ParseExpressionEmptyInput:"Unexpected parseExpression() input: The input is empty or contains only comments.",ParseExpressionExpectsEOF:({unexpected:J})=>`Unexpected parseExpression() input: The input should contain exactly one expression, but the first expression is followed by the unexpected character \`${String.fromCodePoint(J)}\`.`},PZ1=new Set(["ArrowFunctionExpression","AssignmentExpression","ConditionalExpression","YieldExpression"]),SZ1=Object.assign({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:J})=>`Invalid topic token ${J}. In order to use ${J} as a topic reference, the pipelineOperator plugin must be configured with { "proposal": "hack", "topicToken": "${J}" }.`,PipeTopicUnused:"Hack-style pipe body does not contain a topic reference; Hack-style pipes must use topic at least once.",PipeUnparenthesizedBody:({type:J})=>`Hack-style pipe body cannot be an unparenthesized ${S9({type:J})}; 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.'}),IZ1=["message"];function iY(J,X,Z){Object.defineProperty(J,X,{enumerable:!1,configurable:!0,value:Z})}function TZ1({toMessage:J,code:X,reasonCode:Z,syntaxPlugin:Q}){let Y=Z==="MissingPlugin"||Z==="MissingOneOfPlugins",z={AccessorCannotDeclareThisParameter:"AccesorCannotDeclareThisParameter",AccessorCannotHaveTypeParameters:"AccesorCannotHaveTypeParameters",ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference:"ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference",SetAccessorCannotHaveOptionalParameter:"SetAccesorCannotHaveOptionalParameter",SetAccessorCannotHaveRestParameter:"SetAccesorCannotHaveRestParameter",SetAccessorCannotHaveReturnType:"SetAccesorCannotHaveReturnType"};if(z[Z])Z=z[Z];return function H(G,W){let V=SyntaxError();if(V.code=X,V.reasonCode=Z,V.loc=G,V.pos=G.index,V.syntaxPlugin=Q,Y)V.missingPlugin=W.missingPlugin;return iY(V,"clone",function(q={}){var O;let{line:A,column:D,index:S}=(O=q.loc)!=null?O:G;return H(new cJ(A,D,S),Object.assign({},W,q.details))}),iY(V,"details",W),Object.defineProperty(V,"message",{configurable:!0,get(){let U=`${J(W)} (${G.line}:${G.column})`;return this.message=U,U},set(U){Object.defineProperty(this,"message",{value:U,writable:!0})}}),V}}function bJ(J,X){if(Array.isArray(J))return(Q)=>bJ(Q,J[0]);let Z={};for(let Q of Object.keys(J)){let Y=J[Q],z=typeof Y==="string"?{message:()=>Y}:typeof Y==="function"?{message:Y}:Y,{message:H}=z,G=AZ1(z,IZ1),W=typeof H==="string"?()=>H:H;Z[Q]=TZ1(Object.assign({code:"BABEL_PARSER_SYNTAX_ERROR",reasonCode:Q,toMessage:W},X?{syntaxPlugin:X}:{},G))}return Z}var j=Object.assign({},bJ(CZ1),bJ(DZ1),bJ(NZ1),bJ(wZ1),bJ`pipelineOperator`(SZ1));function LZ1(){return{sourceType:"script",sourceFilename:void 0,startIndex:0,startColumn:0,startLine:1,allowAwaitOutsideFunction:!1,allowReturnOutsideFunction:!1,allowNewTargetOutsideFunction:!1,allowImportExportEverywhere:!1,allowSuperOutsideMethod:!1,allowUndeclaredExports:!1,allowYieldOutsideFunction:!1,plugins:[],strictMode:void 0,ranges:!1,tokens:!1,createImportExpressions:!1,createParenthesizedExpressions:!1,errorRecovery:!1,attachComment:!0,annexB:!0}}function bZ1(J){let X=LZ1();if(J==null)return X;if(J.annexB!=null&&J.annexB!==!1)throw Error("The `annexB` option can only be set to `false`.");for(let Z of Object.keys(X))if(J[Z]!=null)X[Z]=J[Z];if(X.startLine===1){if(J.startIndex==null&&X.startColumn>0)X.startIndex=X.startColumn;else if(J.startColumn==null&&X.startIndex>0)X.startColumn=X.startIndex}else if(J.startColumn==null||J.startIndex==null){if(J.startIndex!=null)throw Error("With a `startLine > 1` you must also specify `startIndex` and `startColumn`.")}if(X.sourceType==="commonjs"){if(J.allowAwaitOutsideFunction!=null)throw Error("The `allowAwaitOutsideFunction` option cannot be used with `sourceType: 'commonjs'`.");if(J.allowReturnOutsideFunction!=null)throw Error("`sourceType: 'commonjs'` implies `allowReturnOutsideFunction: true`, please remove the `allowReturnOutsideFunction` option or use `sourceType: 'script'`.");if(J.allowNewTargetOutsideFunction!=null)throw Error("`sourceType: 'commonjs'` implies `allowNewTargetOutsideFunction: true`, please remove the `allowNewTargetOutsideFunction` option or use `sourceType: 'script'`.")}return X}var{defineProperty:kZ1}=Object,pY=(J,X)=>{if(J)kZ1(J,X,{enumerable:!1,value:J[X]})};function CX(J){return pY(J.loc.start,"index"),pY(J.loc.end,"index"),J}var vZ1=(J)=>class extends J{parse(){let Z=CX(super.parse());if(this.optionFlags&256)Z.tokens=Z.tokens.map(CX);return Z}parseRegExpLiteral({pattern:Z,flags:Q}){let Y=null;try{Y=new RegExp(Z,Q)}catch(H){}let z=this.estreeParseLiteral(Y);return z.regex={pattern:Z,flags:Q},z}parseBigIntLiteral(Z){let Q;try{Q=BigInt(Z)}catch(z){Q=null}let Y=this.estreeParseLiteral(Q);return Y.bigint=String(Y.value||Z),Y}parseDecimalLiteral(Z){let Y=this.estreeParseLiteral(null);return Y.decimal=String(Y.value||Z),Y}estreeParseLiteral(Z){return this.parseLiteral(Z,"Literal")}parseStringLiteral(Z){return this.estreeParseLiteral(Z)}parseNumericLiteral(Z){return this.estreeParseLiteral(Z)}parseNullLiteral(){return this.estreeParseLiteral(null)}parseBooleanLiteral(Z){return this.estreeParseLiteral(Z)}estreeParseChainExpression(Z,Q){let Y=this.startNodeAtNode(Z);return Y.expression=Z,this.finishNodeAt(Y,"ChainExpression",Q)}directiveToStmt(Z){let Q=Z.value;delete Z.value,this.castNodeTo(Q,"Literal"),Q.raw=Q.extra.raw,Q.value=Q.extra.expressionValue;let Y=this.castNodeTo(Z,"ExpressionStatement");return Y.expression=Q,Y.directive=Q.extra.rawValue,delete Q.extra,Y}fillOptionalPropertiesForTSESLint(Z){}cloneEstreeStringLiteral(Z){let{start:Q,end:Y,loc:z,range:H,raw:G,value:W}=Z,V=Object.create(Z.constructor.prototype);return V.type="Literal",V.start=Q,V.end=Y,V.loc=z,V.range=H,V.raw=G,V.value=W,V}initFunction(Z,Q){super.initFunction(Z,Q),Z.expression=!1}checkDeclaration(Z){if(Z!=null&&this.isObjectProperty(Z))this.checkDeclaration(Z.value);else super.checkDeclaration(Z)}getObjectOrClassMethodParams(Z){return Z.value.params}isValidDirective(Z){var Q;return Z.type==="ExpressionStatement"&&Z.expression.type==="Literal"&&typeof Z.expression.value==="string"&&!((Q=Z.expression.extra)!=null&&Q.parenthesized)}parseBlockBody(Z,Q,Y,z,H){super.parseBlockBody(Z,Q,Y,z,H);let G=Z.directives.map((W)=>this.directiveToStmt(W));Z.body=G.concat(Z.body),delete Z.directives}parsePrivateName(){let Z=super.parsePrivateName();if(!this.getPluginOption("estree","classFeatures"))return Z;return this.convertPrivateNameToPrivateIdentifier(Z)}convertPrivateNameToPrivateIdentifier(Z){let Q=super.getPrivateNameSV(Z);return delete Z.id,Z.name=Q,this.castNodeTo(Z,"PrivateIdentifier")}isPrivateName(Z){if(!this.getPluginOption("estree","classFeatures"))return super.isPrivateName(Z);return Z.type==="PrivateIdentifier"}getPrivateNameSV(Z){if(!this.getPluginOption("estree","classFeatures"))return super.getPrivateNameSV(Z);return Z.name}parseLiteral(Z,Q){let Y=super.parseLiteral(Z,Q);return Y.raw=Y.extra.raw,delete Y.extra,Y}parseFunctionBody(Z,Q,Y=!1){super.parseFunctionBody(Z,Q,Y),Z.expression=Z.body.type!=="BlockStatement"}parseMethod(Z,Q,Y,z,H,G,W=!1){let V=this.startNode();V.kind=Z.kind,V=super.parseMethod(V,Q,Y,z,H,G,W),delete V.kind;let{typeParameters:U}=Z;if(U)delete Z.typeParameters,V.typeParameters=U,this.resetStartLocationFromNode(V,U);let q=this.castNodeTo(V,"FunctionExpression");if(Z.value=q,G==="ClassPrivateMethod")Z.computed=!1;if(G==="ObjectMethod"){if(Z.kind==="method")Z.kind="init";return Z.shorthand=!1,this.finishNode(Z,"Property")}else return this.finishNode(Z,"MethodDefinition")}nameIsConstructor(Z){if(Z.type==="Literal")return Z.value==="constructor";return super.nameIsConstructor(Z)}parseClassProperty(...Z){let Q=super.parseClassProperty(...Z);if(!this.getPluginOption("estree","classFeatures"))return Q;return this.castNodeTo(Q,"PropertyDefinition"),Q}parseClassPrivateProperty(...Z){let Q=super.parseClassPrivateProperty(...Z);if(!this.getPluginOption("estree","classFeatures"))return Q;return this.castNodeTo(Q,"PropertyDefinition"),Q.computed=!1,Q}parseClassAccessorProperty(Z){let Q=super.parseClassAccessorProperty(Z);if(!this.getPluginOption("estree","classFeatures"))return Q;if(Q.abstract&&this.hasPlugin("typescript"))delete Q.abstract,this.castNodeTo(Q,"TSAbstractAccessorProperty");else this.castNodeTo(Q,"AccessorProperty");return Q}parseObjectProperty(Z,Q,Y,z){let H=super.parseObjectProperty(Z,Q,Y,z);if(H)H.kind="init",this.castNodeTo(H,"Property");return H}finishObjectProperty(Z){return Z.kind="init",this.finishNode(Z,"Property")}isValidLVal(Z,Q,Y,z){return Z==="Property"?"value":super.isValidLVal(Z,Q,Y,z)}isAssignable(Z,Q){if(Z!=null&&this.isObjectProperty(Z))return this.isAssignable(Z.value,Q);return super.isAssignable(Z,Q)}toAssignable(Z,Q=!1){if(Z!=null&&this.isObjectProperty(Z)){let{key:Y,value:z}=Z;if(this.isPrivateName(Y))this.classScope.usePrivateName(this.getPrivateNameSV(Y),Y.loc.start);this.toAssignable(z,Q)}else super.toAssignable(Z,Q)}toAssignableObjectExpressionProp(Z,Q,Y){if(Z.type==="Property"&&(Z.kind==="get"||Z.kind==="set"))this.raise(j.PatternHasAccessor,Z.key);else if(Z.type==="Property"&&Z.method)this.raise(j.PatternHasMethod,Z.key);else super.toAssignableObjectExpressionProp(Z,Q,Y)}finishCallExpression(Z,Q){let Y=super.finishCallExpression(Z,Q);if(Y.callee.type==="Import"){var z,H;this.castNodeTo(Y,"ImportExpression"),Y.source=Y.arguments[0],Y.options=(z=Y.arguments[1])!=null?z:null,Y.attributes=(H=Y.arguments[1])!=null?H:null,delete Y.arguments,delete Y.callee}else if(Y.type==="OptionalCallExpression")this.castNodeTo(Y,"CallExpression");else Y.optional=!1;return Y}toReferencedArguments(Z){if(Z.type==="ImportExpression")return;super.toReferencedArguments(Z)}parseExport(Z,Q){let Y=this.state.lastTokStartLoc,z=super.parseExport(Z,Q);switch(z.type){case"ExportAllDeclaration":z.exported=null;break;case"ExportNamedDeclaration":if(z.specifiers.length===1&&z.specifiers[0].type==="ExportNamespaceSpecifier")this.castNodeTo(z,"ExportAllDeclaration"),z.exported=z.specifiers[0].exported,delete z.specifiers;case"ExportDefaultDeclaration":{var H;let{declaration:G}=z;if((G==null?void 0:G.type)==="ClassDeclaration"&&((H=G.decorators)==null?void 0:H.length)>0&&G.start===z.start)this.resetStartLocation(z,Y)}break}return z}stopParseSubscript(Z,Q){let Y=super.stopParseSubscript(Z,Q);if(Q.optionalChainMember)return this.estreeParseChainExpression(Y,Z.loc.end);return Y}parseMember(Z,Q,Y,z,H){let G=super.parseMember(Z,Q,Y,z,H);if(G.type==="OptionalMemberExpression")this.castNodeTo(G,"MemberExpression");else G.optional=!1;return G}isOptionalMemberExpression(Z){if(Z.type==="ChainExpression")return Z.expression.type==="MemberExpression";return super.isOptionalMemberExpression(Z)}hasPropertyAsPrivateName(Z){if(Z.type==="ChainExpression")Z=Z.expression;return super.hasPropertyAsPrivateName(Z)}isObjectProperty(Z){return Z.type==="Property"&&Z.kind==="init"&&!Z.method}isObjectMethod(Z){return Z.type==="Property"&&(Z.method||Z.kind==="get"||Z.kind==="set")}castNodeTo(Z,Q){let Y=super.castNodeTo(Z,Q);return this.fillOptionalPropertiesForTSESLint(Y),Y}cloneIdentifier(Z){let Q=super.cloneIdentifier(Z);return this.fillOptionalPropertiesForTSESLint(Q),Q}cloneStringLiteral(Z){if(Z.type==="Literal")return this.cloneEstreeStringLiteral(Z);return super.cloneStringLiteral(Z)}finishNodeAt(Z,Q,Y){return CX(super.finishNodeAt(Z,Q,Y))}finishNode(Z,Q){let Y=super.finishNode(Z,Q);return this.fillOptionalPropertiesForTSESLint(Y),Y}resetStartLocation(Z,Q){super.resetStartLocation(Z,Q),CX(Z)}resetEndLocation(Z,Q=this.state.lastTokEndLoc){super.resetEndLocation(Z,Q),CX(Z)}};class x0{constructor(J,X){this.token=void 0,this.preserveSpace=void 0,this.token=J,this.preserveSpace=!!X}}var j1={brace:new x0("{"),j_oTag:new x0("<tag"),j_cTag:new x0("</tag"),j_expr:new x0("<tag>...</tag>",!0)};j1.template=new x0("`",!0);var z1=!0,u=!0,p6=!0,DX=!0,eJ=!0,EZ1=!0;class X8{constructor(J,X={}){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=J,this.keyword=X.keyword,this.beforeExpr=!!X.beforeExpr,this.startsExpr=!!X.startsExpr,this.rightAssociative=!!X.rightAssociative,this.isLoop=!!X.isLoop,this.isAssign=!!X.isAssign,this.prefix=!!X.prefix,this.postfix=!!X.postfix,this.binop=X.binop!=null?X.binop:null,this.updateContext=null}}var Z8=new Map;function R1(J,X={}){X.keyword=J;let Z=t(J,X);return Z8.set(J,Z),Z}function n1(J,X){return t(J,{beforeExpr:z1,binop:X})}var SX=-1,lJ=[],Q8=[],Y8=[],z8=[],H8=[],G8=[];function t(J,X={}){var Z,Q,Y,z;return++SX,Q8.push(J),Y8.push((Z=X.binop)!=null?Z:-1),z8.push((Q=X.beforeExpr)!=null?Q:!1),H8.push((Y=X.startsExpr)!=null?Y:!1),G8.push((z=X.prefix)!=null?z:!1),lJ.push(new X8(J,X)),SX}function G1(J,X={}){var Z,Q,Y,z;return++SX,Z8.set(J,SX),Q8.push(J),Y8.push((Z=X.binop)!=null?Z:-1),z8.push((Q=X.beforeExpr)!=null?Q:!1),H8.push((Y=X.startsExpr)!=null?Y:!1),G8.push((z=X.prefix)!=null?z:!1),lJ.push(new X8("name",X)),SX}var gZ1={bracketL:t("[",{beforeExpr:z1,startsExpr:u}),bracketHashL:t("#[",{beforeExpr:z1,startsExpr:u}),bracketBarL:t("[|",{beforeExpr:z1,startsExpr:u}),bracketR:t("]"),bracketBarR:t("|]"),braceL:t("{",{beforeExpr:z1,startsExpr:u}),braceBarL:t("{|",{beforeExpr:z1,startsExpr:u}),braceHashL:t("#{",{beforeExpr:z1,startsExpr:u}),braceR:t("}"),braceBarR:t("|}"),parenL:t("(",{beforeExpr:z1,startsExpr:u}),parenR:t(")"),comma:t(",",{beforeExpr:z1}),semi:t(";",{beforeExpr:z1}),colon:t(":",{beforeExpr:z1}),doubleColon:t("::",{beforeExpr:z1}),dot:t("."),question:t("?",{beforeExpr:z1}),questionDot:t("?."),arrow:t("=>",{beforeExpr:z1}),template:t("template"),ellipsis:t("...",{beforeExpr:z1}),backQuote:t("`",{startsExpr:u}),dollarBraceL:t("${",{beforeExpr:z1,startsExpr:u}),templateTail:t("...`",{startsExpr:u}),templateNonTail:t("...${",{beforeExpr:z1,startsExpr:u}),at:t("@"),hash:t("#",{startsExpr:u}),interpreterDirective:t("#!..."),eq:t("=",{beforeExpr:z1,isAssign:DX}),assign:t("_=",{beforeExpr:z1,isAssign:DX}),slashAssign:t("_=",{beforeExpr:z1,isAssign:DX}),xorAssign:t("_=",{beforeExpr:z1,isAssign:DX}),moduloAssign:t("_=",{beforeExpr:z1,isAssign:DX}),incDec:t("++/--",{prefix:eJ,postfix:EZ1,startsExpr:u}),bang:t("!",{beforeExpr:z1,prefix:eJ,startsExpr:u}),tilde:t("~",{beforeExpr:z1,prefix:eJ,startsExpr:u}),doubleCaret:t("^^",{startsExpr:u}),doubleAt:t("@@",{startsExpr:u}),pipeline:n1("|>",0),nullishCoalescing:n1("??",1),logicalOR:n1("||",1),logicalAND:n1("&&",2),bitwiseOR:n1("|",3),bitwiseXOR:n1("^",4),bitwiseAND:n1("&",5),equality:n1("==/!=/===/!==",6),lt:n1("</>/<=/>=",7),gt:n1("</>/<=/>=",7),relational:n1("</>/<=/>=",7),bitShift:n1("<</>>/>>>",8),bitShiftL:n1("<</>>/>>>",8),bitShiftR:n1("<</>>/>>>",8),plusMin:t("+/-",{beforeExpr:z1,binop:9,prefix:eJ,startsExpr:u}),modulo:t("%",{binop:10,startsExpr:u}),star:t("*",{binop:10}),slash:n1("/",10),exponent:t("**",{beforeExpr:z1,binop:11,rightAssociative:!0}),_in:R1("in",{beforeExpr:z1,binop:7}),_instanceof:R1("instanceof",{beforeExpr:z1,binop:7}),_break:R1("break"),_case:R1("case",{beforeExpr:z1}),_catch:R1("catch"),_continue:R1("continue"),_debugger:R1("debugger"),_default:R1("default",{beforeExpr:z1}),_else:R1("else",{beforeExpr:z1}),_finally:R1("finally"),_function:R1("function",{startsExpr:u}),_if:R1("if"),_return:R1("return",{beforeExpr:z1}),_switch:R1("switch"),_throw:R1("throw",{beforeExpr:z1,prefix:eJ,startsExpr:u}),_try:R1("try"),_var:R1("var"),_const:R1("const"),_with:R1("with"),_new:R1("new",{beforeExpr:z1,startsExpr:u}),_this:R1("this",{startsExpr:u}),_super:R1("super",{startsExpr:u}),_class:R1("class",{startsExpr:u}),_extends:R1("extends",{beforeExpr:z1}),_export:R1("export"),_import:R1("import",{startsExpr:u}),_null:R1("null",{startsExpr:u}),_true:R1("true",{startsExpr:u}),_false:R1("false",{startsExpr:u}),_typeof:R1("typeof",{beforeExpr:z1,prefix:eJ,startsExpr:u}),_void:R1("void",{beforeExpr:z1,prefix:eJ,startsExpr:u}),_delete:R1("delete",{beforeExpr:z1,prefix:eJ,startsExpr:u}),_do:R1("do",{isLoop:p6,beforeExpr:z1}),_for:R1("for",{isLoop:p6}),_while:R1("while",{isLoop:p6}),_as:G1("as",{startsExpr:u}),_assert:G1("assert",{startsExpr:u}),_async:G1("async",{startsExpr:u}),_await:G1("await",{startsExpr:u}),_defer:G1("defer",{startsExpr:u}),_from:G1("from",{startsExpr:u}),_get:G1("get",{startsExpr:u}),_let:G1("let",{startsExpr:u}),_meta:G1("meta",{startsExpr:u}),_of:G1("of",{startsExpr:u}),_sent:G1("sent",{startsExpr:u}),_set:G1("set",{startsExpr:u}),_source:G1("source",{startsExpr:u}),_static:G1("static",{startsExpr:u}),_using:G1("using",{startsExpr:u}),_yield:G1("yield",{startsExpr:u}),_asserts:G1("asserts",{startsExpr:u}),_checks:G1("checks",{startsExpr:u}),_exports:G1("exports",{startsExpr:u}),_global:G1("global",{startsExpr:u}),_implements:G1("implements",{startsExpr:u}),_intrinsic:G1("intrinsic",{startsExpr:u}),_infer:G1("infer",{startsExpr:u}),_is:G1("is",{startsExpr:u}),_mixins:G1("mixins",{startsExpr:u}),_proto:G1("proto",{startsExpr:u}),_require:G1("require",{startsExpr:u}),_satisfies:G1("satisfies",{startsExpr:u}),_keyof:G1("keyof",{startsExpr:u}),_readonly:G1("readonly",{startsExpr:u}),_unique:G1("unique",{startsExpr:u}),_abstract:G1("abstract",{startsExpr:u}),_declare:G1("declare",{startsExpr:u}),_enum:G1("enum",{startsExpr:u}),_module:G1("module",{startsExpr:u}),_namespace:G1("namespace",{startsExpr:u}),_interface:G1("interface",{startsExpr:u}),_type:G1("type",{startsExpr:u}),_opaque:G1("opaque",{startsExpr:u}),name:t("name",{startsExpr:u}),placeholder:t("%%",{startsExpr:u}),string:t("string",{startsExpr:u}),num:t("num",{startsExpr:u}),bigint:t("bigint",{startsExpr:u}),decimal:t("decimal",{startsExpr:u}),regexp:t("regexp",{startsExpr:u}),privateName:t("#name",{startsExpr:u}),eof:t("eof"),jsxName:t("jsxName"),jsxText:t("jsxText",{beforeExpr:z1}),jsxTagStart:t("jsxTagStart",{startsExpr:u}),jsxTagEnd:t("jsxTagEnd")};function A1(J){return J>=93&&J<=133}function _Z1(J){return J<=92}function CJ(J){return J>=58&&J<=133}function Qz(J){return J>=58&&J<=137}function fZ1(J){return z8[J]}function wX(J){return H8[J]}function hZ1(J){return J>=29&&J<=33}function rY(J){return J>=129&&J<=131}function xZ1(J){return J>=90&&J<=92}function W8(J){return J>=58&&J<=92}function yZ1(J){return J>=39&&J<=59}function uZ1(J){return J===34}function mZ1(J){return G8[J]}function cZ1(J){return J>=121&&J<=123}function lZ1(J){return J>=124&&J<=130}function X0(J){return Q8[J]}function I9(J){return Y8[J]}function iZ1(J){return J===57}function L9(J){return J>=24&&J<=25}function uJ(J){return lJ[J]}lJ[8].updateContext=(J)=>{J.pop()};lJ[5].updateContext=lJ[7].updateContext=lJ[23].updateContext=(J)=>{J.push(j1.brace)};lJ[22].updateContext=(J)=>{if(J[J.length-1]===j1.template)J.pop();else J.push(j1.template)};lJ[143].updateContext=(J)=>{J.push(j1.j_expr,j1.j_oTag)};var V8="\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088F\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5C\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDC-\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7DC\uA7F1-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC",Yz="\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0897-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ADD\u1AE0-\u1AEB\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F\uFF65",pZ1=new RegExp("["+V8+"]"),rZ1=new RegExp("["+V8+Yz+"]");V8=Yz=null;var zz=[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,4,51,13,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,7,25,39,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,39,27,10,22,251,41,7,1,17,5,57,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,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,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,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,24,43,261,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,33,24,3,24,45,74,6,0,67,12,65,1,2,0,15,4,10,7381,42,31,98,114,8702,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,229,29,3,0,208,30,2,2,2,1,2,6,3,4,10,1,225,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,4381,3,5773,3,7472,16,621,2467,541,1507,4938,6,8489],dZ1=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,78,5,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,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,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,199,7,137,9,54,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,55,9,266,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,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,245,1,2,9,233,0,3,0,8,1,6,0,475,6,110,6,6,9,4759,9,787719,239];function n6(J,X){let Z=65536;for(let Q=0,Y=X.length;Q<Y;Q+=2){if(Z+=X[Q],Z>J)return!1;if(Z+=X[Q+1],Z>=J)return!0}return!1}function kJ(J){if(J<65)return J===36;if(J<=90)return!0;if(J<97)return J===95;if(J<=122)return!0;if(J<=65535)return J>=170&&pZ1.test(String.fromCharCode(J));return n6(J,zz)}function q0(J){if(J<48)return J===36;if(J<58)return!0;if(J<65)return!1;if(J<=90)return!0;if(J<97)return J===95;if(J<=122)return!0;if(J<=65535)return J>=170&&rZ1.test(String.fromCharCode(J));return n6(J,zz)||n6(J,dZ1)}var K8={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"]},aZ1=new Set(K8.keyword),sZ1=new Set(K8.strict),tZ1=new Set(K8.strictBind);function Hz(J,X){return X&&J==="await"||J==="enum"}function Gz(J,X){return Hz(J,X)||sZ1.has(J)}function Wz(J){return tZ1.has(J)}function Vz(J,X){return Gz(J,X)||Wz(J)}function nZ1(J){return aZ1.has(J)}function oZ1(J,X,Z){return J===64&&X===64&&kJ(Z)}var eZ1=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 JQ1(J){return eZ1.has(J)}class b9{constructor(J){this.flags=0,this.names=new Map,this.firstLexicalName="",this.flags=J}}class k9{constructor(J,X){this.parser=void 0,this.scopeStack=[],this.inModule=void 0,this.undefinedExports=new Map,this.parser=J,this.inModule=X}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 allowNewTarget(){return(this.currentThisScopeFlags()&512)>0}get inClass(){return(this.currentThisScopeFlags()&64)>0}get inClassAndNotInNonArrowFunction(){let J=this.currentThisScopeFlags();return(J&64)>0&&(J&2)===0}get inStaticBlock(){for(let J=this.scopeStack.length-1;;J--){let{flags:X}=this.scopeStack[J];if(X&128)return!0;if(X&1731)return!1}}get inNonArrowFunction(){return(this.currentThisScopeFlags()&2)>0}get inBareCaseStatement(){return(this.currentScope().flags&256)>0}get treatFunctionsAsVar(){return this.treatFunctionsAsVarInScope(this.currentScope())}createScope(J){return new b9(J)}enter(J){this.scopeStack.push(this.createScope(J))}exit(){return this.scopeStack.pop().flags}treatFunctionsAsVarInScope(J){return!!(J.flags&130||!this.parser.inModule&&J.flags&1)}declareName(J,X,Z){let Q=this.currentScope();if(X&8||X&16){this.checkRedeclarationInScope(Q,J,X,Z);let Y=Q.names.get(J)||0;if(X&16)Y=Y|4;else{if(!Q.firstLexicalName)Q.firstLexicalName=J;Y=Y|2}if(Q.names.set(J,Y),X&8)this.maybeExportDefined(Q,J)}else if(X&4){for(let Y=this.scopeStack.length-1;Y>=0;--Y)if(Q=this.scopeStack[Y],this.checkRedeclarationInScope(Q,J,X,Z),Q.names.set(J,(Q.names.get(J)||0)|1),this.maybeExportDefined(Q,J),Q.flags&1667)break}if(this.parser.inModule&&Q.flags&1)this.undefinedExports.delete(J)}maybeExportDefined(J,X){if(this.parser.inModule&&J.flags&1)this.undefinedExports.delete(X)}checkRedeclarationInScope(J,X,Z,Q){if(this.isRedeclaredInScope(J,X,Z))this.parser.raise(j.VarRedeclaration,Q,{identifierName:X})}isRedeclaredInScope(J,X,Z){if(!(Z&1))return!1;if(Z&8)return J.names.has(X);let Q=J.names.get(X)||0;if(Z&16)return(Q&2)>0||!this.treatFunctionsAsVarInScope(J)&&(Q&1)>0;return(Q&2)>0&&!(J.flags&8&&J.firstLexicalName===X)||!this.treatFunctionsAsVarInScope(J)&&(Q&4)>0}checkLocalExport(J){let{name:X}=J;if(!this.scopeStack[0].names.has(X))this.undefinedExports.set(X,J.loc.start)}currentScope(){return this.scopeStack[this.scopeStack.length-1]}currentVarScopeFlags(){for(let J=this.scopeStack.length-1;;J--){let{flags:X}=this.scopeStack[J];if(X&1667)return X}}currentThisScopeFlags(){for(let J=this.scopeStack.length-1;;J--){let{flags:X}=this.scopeStack[J];if(X&1731&&!(X&4))return X}}}class Kz extends b9{constructor(...J){super(...J);this.declareFunctions=new Set}}class Uz extends k9{createScope(J){return new Kz(J)}declareName(J,X,Z){let Q=this.currentScope();if(X&2048){this.checkRedeclarationInScope(Q,J,X,Z),this.maybeExportDefined(Q,J),Q.declareFunctions.add(J);return}super.declareName(J,X,Z)}isRedeclaredInScope(J,X,Z){if(super.isRedeclaredInScope(J,X,Z))return!0;if(Z&2048&&!J.declareFunctions.has(X)){let Q=J.names.get(X);return(Q&4)>0||(Q&2)>0}return!1}checkLocalExport(J){if(!this.scopeStack[0].declareFunctions.has(J.name))super.checkLocalExport(J)}}var XQ1=new Set(["_","any","bool","boolean","empty","extends","false","interface","mixed","null","number","static","string","true","typeof","void"]),o=bJ`flow`({AmbiguousConditionalArrow:"Ambiguous expression: wrap the arrow functions in parentheses to disambiguate.",AmbiguousDeclareModuleKind:"Found both `declare module.exports` and `declare export` in the same module. Modules can only have 1 since they are either an ES module or they are a CommonJS module.",AssignReservedType:({reservedType:J})=>`Cannot overwrite reserved type ${J}.`,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:J,enumName:X})=>`Boolean enum members need to be initialized. Use either \`${J} = true,\` or \`${J} = false,\` in enum \`${X}\`.`,EnumDuplicateMemberName:({memberName:J,enumName:X})=>`Enum member names need to be unique, but the name \`${J}\` has already been used before in enum \`${X}\`.`,EnumInconsistentMemberValues:({enumName:J})=>`Enum \`${J}\` has inconsistent member initializers. Either use no initializers, or consistently use literals (either booleans, numbers, or strings) for all member initializers.`,EnumInvalidExplicitType:({invalidEnumType:J,enumName:X})=>`Enum type \`${J}\` is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${X}\`.`,EnumInvalidExplicitTypeUnknownSupplied:({enumName:J})=>`Supplied enum type is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${J}\`.`,EnumInvalidMemberInitializerPrimaryType:({enumName:J,memberName:X,explicitType:Z})=>`Enum \`${J}\` has type \`${Z}\`, so the initializer of \`${X}\` needs to be a ${Z} literal.`,EnumInvalidMemberInitializerSymbolType:({enumName:J,memberName:X})=>`Symbol enum members cannot be initialized. Use \`${X},\` in enum \`${J}\`.`,EnumInvalidMemberInitializerUnknownType:({enumName:J,memberName:X})=>`The enum member initializer for \`${X}\` needs to be a literal (either a boolean, number, or string) in enum \`${J}\`.`,EnumInvalidMemberName:({enumName:J,memberName:X,suggestion:Z})=>`Enum member names cannot start with lowercase 'a' through 'z'. Instead of using \`${X}\`, consider using \`${Z}\`, in enum \`${J}\`.`,EnumNumberMemberNotInitialized:({enumName:J,memberName:X})=>`Number enum members need to be initialized, e.g. \`${X} = 1\` in enum \`${J}\`.`,EnumStringMemberInconsistentlyInitialized:({enumName:J})=>`String enum members need to consistently either all use initializers, or use no initializers, in enum \`${J}\`.`,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:J})=>`Unexpected reserved type ${J}.`,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 `<T> async () => {}`, use `async <T>() => {}`.",UnsupportedDeclareExportKind:({unsupportedExportKind:J,suggestion:X})=>`\`declare export ${J}\` is not supported. Use \`${X}\` instead.`,UnsupportedStatementInDeclareModule:"Only declares and type imports are allowed inside declare module.",UnterminatedFlowComment:"Unterminated flow-comment."});function ZQ1(J){return J.type==="DeclareExportAllDeclaration"||J.type==="DeclareExportDeclaration"&&(!J.declaration||J.declaration.type!=="TypeAlias"&&J.declaration.type!=="InterfaceDeclaration")}function dY(J){return J.importKind==="type"||J.importKind==="typeof"}var QQ1={const:"declare export var",let:"declare export var",type:"export type",interface:"export interface"};function YQ1(J,X){let Z=[],Q=[];for(let Y=0;Y<J.length;Y++)(X(J[Y],Y,J)?Z:Q).push(J[Y]);return[Z,Q]}var zQ1=/\*?\s*@((?:no)?flow)\b/,HQ1=(J)=>class extends J{constructor(...Z){super(...Z);this.flowPragma=void 0}getScopeHandler(){return Uz}shouldParseTypes(){return this.getPluginOption("flow","all")||this.flowPragma==="flow"}finishToken(Z,Q){if(Z!==134&&Z!==13&&Z!==28){if(this.flowPragma===void 0)this.flowPragma=null}super.finishToken(Z,Q)}addComment(Z){if(this.flowPragma===void 0){let Q=zQ1.exec(Z.value);if(!Q);else if(Q[1]==="flow")this.flowPragma="flow";else if(Q[1]==="noflow")this.flowPragma="noflow";else throw Error("Unexpected flow pragma")}super.addComment(Z)}flowParseTypeInitialiser(Z){let Q=this.state.inType;this.state.inType=!0,this.expect(Z||14);let Y=this.flowParseType();return this.state.inType=Q,Y}flowParsePredicate(){let Z=this.startNode(),Q=this.state.startLoc;if(this.next(),this.expectContextual(110),this.state.lastTokStartLoc.index>Q.index+1)this.raise(o.UnexpectedSpaceBetweenModuloChecks,Q);if(this.eat(10))return Z.value=super.parseExpression(),this.expect(11),this.finishNode(Z,"DeclaredPredicate");else return this.finishNode(Z,"InferredPredicate")}flowParseTypeAndPredicateInitialiser(){let Z=this.state.inType;this.state.inType=!0,this.expect(14);let Q=null,Y=null;if(this.match(54))this.state.inType=Z,Y=this.flowParsePredicate();else if(Q=this.flowParseType(),this.state.inType=Z,this.match(54))Y=this.flowParsePredicate();return[Q,Y]}flowParseDeclareClass(Z){return this.next(),this.flowParseInterfaceish(Z,!0),this.finishNode(Z,"DeclareClass")}flowParseDeclareFunction(Z){this.next();let Q=Z.id=this.parseIdentifier(),Y=this.startNode(),z=this.startNode();if(this.match(47))Y.typeParameters=this.flowParseTypeParameterDeclaration();else Y.typeParameters=null;this.expect(10);let H=this.flowParseFunctionTypeParams();return Y.params=H.params,Y.rest=H.rest,Y.this=H._this,this.expect(11),[Y.returnType,Z.predicate]=this.flowParseTypeAndPredicateInitialiser(),z.typeAnnotation=this.finishNode(Y,"FunctionTypeAnnotation"),Q.typeAnnotation=this.finishNode(z,"TypeAnnotation"),this.resetEndLocation(Q),this.semicolon(),this.scope.declareName(Z.id.name,2048,Z.id.loc.start),this.finishNode(Z,"DeclareFunction")}flowParseDeclare(Z,Q){if(this.match(80))return this.flowParseDeclareClass(Z);else if(this.match(68))return this.flowParseDeclareFunction(Z);else if(this.match(74))return this.flowParseDeclareVariable(Z);else if(this.eatContextual(127))if(this.match(16))return this.flowParseDeclareModuleExports(Z);else{if(Q)this.raise(o.NestedDeclareModule,this.state.lastTokStartLoc);return this.flowParseDeclareModule(Z)}else if(this.isContextual(130))return this.flowParseDeclareTypeAlias(Z);else if(this.isContextual(131))return this.flowParseDeclareOpaqueType(Z);else if(this.isContextual(129))return this.flowParseDeclareInterface(Z);else if(this.match(82))return this.flowParseDeclareExportDeclaration(Z,Q);throw this.unexpected()}flowParseDeclareVariable(Z){return this.next(),Z.id=this.flowParseTypeAnnotatableIdentifier(),this.scope.declareName(Z.id.name,5,Z.id.loc.start),this.semicolon(),this.finishNode(Z,"DeclareVariable")}flowParseDeclareModule(Z){if(this.scope.enter(0),this.match(134))Z.id=super.parseExprAtom();else Z.id=this.parseIdentifier();let Q=Z.body=this.startNode(),Y=Q.body=[];this.expect(5);while(!this.match(8)){let G=this.startNode();if(this.match(83)){if(this.next(),!this.isContextual(130)&&!this.match(87))this.raise(o.InvalidNonTypeImportInDeclareModule,this.state.lastTokStartLoc);Y.push(super.parseImport(G))}else this.expectContextual(125,o.UnsupportedStatementInDeclareModule),Y.push(this.flowParseDeclare(G,!0))}this.scope.exit(),this.expect(8),this.finishNode(Q,"BlockStatement");let z=null,H=!1;return Y.forEach((G)=>{if(ZQ1(G)){if(z==="CommonJS")this.raise(o.AmbiguousDeclareModuleKind,G);z="ES"}else if(G.type==="DeclareModuleExports"){if(H)this.raise(o.DuplicateDeclareModuleExports,G);if(z==="ES")this.raise(o.AmbiguousDeclareModuleKind,G);z="CommonJS",H=!0}}),Z.kind=z||"CommonJS",this.finishNode(Z,"DeclareModule")}flowParseDeclareExportDeclaration(Z,Q){if(this.expect(82),this.eat(65)){if(this.match(68)||this.match(80))Z.declaration=this.flowParseDeclare(this.startNode());else Z.declaration=this.flowParseType(),this.semicolon();return Z.default=!0,this.finishNode(Z,"DeclareExportDeclaration")}else{if(this.match(75)||this.isLet()||(this.isContextual(130)||this.isContextual(129))&&!Q){let Y=this.state.value;throw this.raise(o.UnsupportedDeclareExportKind,this.state.startLoc,{unsupportedExportKind:Y,suggestion:QQ1[Y]})}if(this.match(74)||this.match(68)||this.match(80)||this.isContextual(131))return Z.declaration=this.flowParseDeclare(this.startNode()),Z.default=!1,this.finishNode(Z,"DeclareExportDeclaration");else if(this.match(55)||this.match(5)||this.isContextual(129)||this.isContextual(130)||this.isContextual(131))if(Z=this.parseExport(Z,null),Z.type==="ExportNamedDeclaration")return Z.default=!1,delete Z.exportKind,this.castNodeTo(Z,"DeclareExportDeclaration");else return this.castNodeTo(Z,"DeclareExportAllDeclaration")}throw this.unexpected()}flowParseDeclareModuleExports(Z){return this.next(),this.expectContextual(111),Z.typeAnnotation=this.flowParseTypeAnnotation(),this.semicolon(),this.finishNode(Z,"DeclareModuleExports")}flowParseDeclareTypeAlias(Z){this.next();let Q=this.flowParseTypeAlias(Z);return this.castNodeTo(Q,"DeclareTypeAlias"),Q}flowParseDeclareOpaqueType(Z){this.next();let Q=this.flowParseOpaqueType(Z,!0);return this.castNodeTo(Q,"DeclareOpaqueType"),Q}flowParseDeclareInterface(Z){return this.next(),this.flowParseInterfaceish(Z,!1),this.finishNode(Z,"DeclareInterface")}flowParseInterfaceish(Z,Q){if(Z.id=this.flowParseRestrictedIdentifier(!Q,!0),this.scope.declareName(Z.id.name,Q?17:8201,Z.id.loc.start),this.match(47))Z.typeParameters=this.flowParseTypeParameterDeclaration();else Z.typeParameters=null;if(Z.extends=[],this.eat(81))do Z.extends.push(this.flowParseInterfaceExtends());while(!Q&&this.eat(12));if(Q){if(Z.implements=[],Z.mixins=[],this.eatContextual(117))do Z.mixins.push(this.flowParseInterfaceExtends());while(this.eat(12));if(this.eatContextual(113))do Z.implements.push(this.flowParseInterfaceExtends());while(this.eat(12))}Z.body=this.flowParseObjectType({allowStatic:Q,allowExact:!1,allowSpread:!1,allowProto:Q,allowInexact:!1})}flowParseInterfaceExtends(){let Z=this.startNode();if(Z.id=this.flowParseQualifiedTypeIdentifier(),this.match(47))Z.typeParameters=this.flowParseTypeParameterInstantiation();else Z.typeParameters=null;return this.finishNode(Z,"InterfaceExtends")}flowParseInterface(Z){return this.flowParseInterfaceish(Z,!1),this.finishNode(Z,"InterfaceDeclaration")}checkNotUnderscore(Z){if(Z==="_")this.raise(o.UnexpectedReservedUnderscore,this.state.startLoc)}checkReservedType(Z,Q,Y){if(!XQ1.has(Z))return;this.raise(Y?o.AssignReservedType:o.UnexpectedReservedType,Q,{reservedType:Z})}flowParseRestrictedIdentifierName(Z,Q){return this.checkReservedType(this.state.value,this.state.startLoc,Q),this.parseIdentifierName(Z)}flowParseRestrictedIdentifier(Z,Q){let Y=this.startNode(),z=this.flowParseRestrictedIdentifierName(Z,Q);return this.createIdentifier(Y,z)}flowParseTypeAlias(Z){if(Z.id=this.flowParseRestrictedIdentifier(!1,!0),this.scope.declareName(Z.id.name,8201,Z.id.loc.start),this.match(47))Z.typeParameters=this.flowParseTypeParameterDeclaration();else Z.typeParameters=null;return Z.right=this.flowParseTypeInitialiser(29),this.semicolon(),this.finishNode(Z,"TypeAlias")}flowParseOpaqueType(Z,Q){if(this.expectContextual(130),Z.id=this.flowParseRestrictedIdentifier(!0,!0),this.scope.declareName(Z.id.name,8201,Z.id.loc.start),this.match(47))Z.typeParameters=this.flowParseTypeParameterDeclaration();else Z.typeParameters=null;if(Z.supertype=null,this.match(14))Z.supertype=this.flowParseTypeInitialiser(14);if(Z.impltype=null,!Q)Z.impltype=this.flowParseTypeInitialiser(29);return this.semicolon(),this.finishNode(Z,"OpaqueType")}flowParseTypeParameterBound(){if(this.match(14)||this.isContextual(81)){let Z=this.startNode();return this.next(),Z.typeAnnotation=this.flowParseType(),this.finishNode(Z,"TypeAnnotation")}}flowParseTypeParameter(Z=!1){let Q=this.state.startLoc,Y=this.startNode(),z=this.flowParseVariance();if(Y.name=this.flowParseRestrictedIdentifierName(),Y.variance=z,Y.bound=this.flowParseTypeParameterBound(),this.match(29))this.eat(29),Y.default=this.flowParseType();else if(Z)this.raise(o.MissingTypeParamDefault,Q);return this.finishNode(Y,"TypeParameter")}flowParseTypeParameterDeclaration(){let Z=this.state.inType,Q=this.startNode();if(Q.params=[],this.state.inType=!0,this.match(47)||this.match(143))this.next();else this.unexpected();let Y=!1;do{let z=this.flowParseTypeParameter(Y);if(Q.params.push(z),z.default)Y=!0;if(!this.match(48))this.expect(12)}while(!this.match(48));return this.expect(48),this.state.inType=Z,this.finishNode(Q,"TypeParameterDeclaration")}flowInTopLevelContext(Z){if(this.curContext()!==j1.brace){let Q=this.state.context;this.state.context=[Q[0]];try{return Z()}finally{this.state.context=Q}}else return Z()}flowParseTypeParameterInstantiationInExpression(){if(this.reScan_lt()!==47)return;return this.flowParseTypeParameterInstantiation()}flowParseTypeParameterInstantiation(){let Z=this.startNode(),Q=this.state.inType;if(this.state.inType=!0,Z.params=[],this.flowInTopLevelContext(()=>{this.expect(47);let Y=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!1;while(!this.match(48))if(Z.params.push(this.flowParseType()),!this.match(48))this.expect(12);this.state.noAnonFunctionType=Y}),this.state.inType=Q,!this.state.inType&&this.curContext()===j1.brace)this.reScan_lt_gt();return this.expect(48),this.finishNode(Z,"TypeParameterInstantiation")}flowParseTypeParameterInstantiationCallOrNew(){if(this.reScan_lt()!==47)return null;let Z=this.startNode(),Q=this.state.inType;Z.params=[],this.state.inType=!0,this.expect(47);while(!this.match(48))if(Z.params.push(this.flowParseTypeOrImplicitInstantiation()),!this.match(48))this.expect(12);return this.expect(48),this.state.inType=Q,this.finishNode(Z,"TypeParameterInstantiation")}flowParseInterfaceType(){let Z=this.startNode();if(this.expectContextual(129),Z.extends=[],this.eat(81))do Z.extends.push(this.flowParseInterfaceExtends());while(this.eat(12));return Z.body=this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!1,allowProto:!1,allowInexact:!1}),this.finishNode(Z,"InterfaceTypeAnnotation")}flowParseObjectPropertyKey(){return this.match(135)||this.match(134)?super.parseExprAtom():this.parseIdentifier(!0)}flowParseObjectTypeIndexer(Z,Q,Y){if(Z.static=Q,this.lookahead().type===14)Z.id=this.flowParseObjectPropertyKey(),Z.key=this.flowParseTypeInitialiser();else Z.id=null,Z.key=this.flowParseType();return this.expect(3),Z.value=this.flowParseTypeInitialiser(),Z.variance=Y,this.finishNode(Z,"ObjectTypeIndexer")}flowParseObjectTypeInternalSlot(Z,Q){if(Z.static=Q,Z.id=this.flowParseObjectPropertyKey(),this.expect(3),this.expect(3),this.match(47)||this.match(10))Z.method=!0,Z.optional=!1,Z.value=this.flowParseObjectTypeMethodish(this.startNodeAt(Z.loc.start));else{if(Z.method=!1,this.eat(17))Z.optional=!0;Z.value=this.flowParseTypeInitialiser()}return this.finishNode(Z,"ObjectTypeInternalSlot")}flowParseObjectTypeMethodish(Z){if(Z.params=[],Z.rest=null,Z.typeParameters=null,Z.this=null,this.match(47))Z.typeParameters=this.flowParseTypeParameterDeclaration();if(this.expect(10),this.match(78)){if(Z.this=this.flowParseFunctionTypeParam(!0),Z.this.name=null,!this.match(11))this.expect(12)}while(!this.match(11)&&!this.match(21))if(Z.params.push(this.flowParseFunctionTypeParam(!1)),!this.match(11))this.expect(12);if(this.eat(21))Z.rest=this.flowParseFunctionTypeParam(!1);return this.expect(11),Z.returnType=this.flowParseTypeInitialiser(),this.finishNode(Z,"FunctionTypeAnnotation")}flowParseObjectTypeCallProperty(Z,Q){let Y=this.startNode();return Z.static=Q,Z.value=this.flowParseObjectTypeMethodish(Y),this.finishNode(Z,"ObjectTypeCallProperty")}flowParseObjectType({allowStatic:Z,allowExact:Q,allowSpread:Y,allowProto:z,allowInexact:H}){let G=this.state.inType;this.state.inType=!0;let W=this.startNode();W.callProperties=[],W.properties=[],W.indexers=[],W.internalSlots=[];let V,U,q=!1;if(Q&&this.match(6))this.expect(6),V=9,U=!0;else this.expect(5),V=8,U=!1;W.exact=U;while(!this.match(V)){let A=!1,D=null,S=null,C=this.startNode();if(z&&this.isContextual(118)){let b=this.lookahead();if(b.type!==14&&b.type!==17)this.next(),D=this.state.startLoc,Z=!1}if(Z&&this.isContextual(106)){let b=this.lookahead();if(b.type!==14&&b.type!==17)this.next(),A=!0}let L=this.flowParseVariance();if(this.eat(0)){if(D!=null)this.unexpected(D);if(this.eat(0)){if(L)this.unexpected(L.loc.start);W.internalSlots.push(this.flowParseObjectTypeInternalSlot(C,A))}else W.indexers.push(this.flowParseObjectTypeIndexer(C,A,L))}else if(this.match(10)||this.match(47)){if(D!=null)this.unexpected(D);if(L)this.unexpected(L.loc.start);W.callProperties.push(this.flowParseObjectTypeCallProperty(C,A))}else{let b="init";if(this.isContextual(99)||this.isContextual(104)){let h=this.lookahead();if(Qz(h.type))b=this.state.value,this.next()}let s=this.flowParseObjectTypeProperty(C,A,D,L,b,Y,H!=null?H:!U);if(s===null)q=!0,S=this.state.lastTokStartLoc;else W.properties.push(s)}if(this.flowObjectTypeSemicolon(),S&&!this.match(8)&&!this.match(9))this.raise(o.UnexpectedExplicitInexactInObject,S)}if(this.expect(V),Y)W.inexact=q;let O=this.finishNode(W,"ObjectTypeAnnotation");return this.state.inType=G,O}flowParseObjectTypeProperty(Z,Q,Y,z,H,G,W){if(this.eat(21)){if(this.match(12)||this.match(13)||this.match(8)||this.match(9)){if(!G)this.raise(o.InexactInsideNonObject,this.state.lastTokStartLoc);else if(!W)this.raise(o.InexactInsideExact,this.state.lastTokStartLoc);if(z)this.raise(o.InexactVariance,z);return null}if(!G)this.raise(o.UnexpectedSpreadType,this.state.lastTokStartLoc);if(Y!=null)this.unexpected(Y);if(z)this.raise(o.SpreadVariance,z);return Z.argument=this.flowParseType(),this.finishNode(Z,"ObjectTypeSpreadProperty")}else{Z.key=this.flowParseObjectPropertyKey(),Z.static=Q,Z.proto=Y!=null,Z.kind=H;let V=!1;if(this.match(47)||this.match(10)){if(Z.method=!0,Y!=null)this.unexpected(Y);if(z)this.unexpected(z.loc.start);if(Z.value=this.flowParseObjectTypeMethodish(this.startNodeAt(Z.loc.start)),H==="get"||H==="set")this.flowCheckGetterSetterParams(Z);if(!G&&Z.key.name==="constructor"&&Z.value.this)this.raise(o.ThisParamBannedInConstructor,Z.value.this)}else{if(H!=="init")this.unexpected();if(Z.method=!1,this.eat(17))V=!0;Z.value=this.flowParseTypeInitialiser(),Z.variance=z}return Z.optional=V,this.finishNode(Z,"ObjectTypeProperty")}}flowCheckGetterSetterParams(Z){let Q=Z.kind==="get"?0:1,Y=Z.value.params.length+(Z.value.rest?1:0);if(Z.value.this)this.raise(Z.kind==="get"?o.GetterMayNotHaveThisParam:o.SetterMayNotHaveThisParam,Z.value.this);if(Y!==Q)this.raise(Z.kind==="get"?j.BadGetterArity:j.BadSetterArity,Z);if(Z.kind==="set"&&Z.value.rest)this.raise(j.BadSetterRestParameter,Z)}flowObjectTypeSemicolon(){if(!this.eat(13)&&!this.eat(12)&&!this.match(8)&&!this.match(9))this.unexpected()}flowParseQualifiedTypeIdentifier(Z,Q){Z!=null||(Z=this.state.startLoc);let Y=Q||this.flowParseRestrictedIdentifier(!0);while(this.eat(16)){let z=this.startNodeAt(Z);z.qualification=Y,z.id=this.flowParseRestrictedIdentifier(!0),Y=this.finishNode(z,"QualifiedTypeIdentifier")}return Y}flowParseGenericType(Z,Q){let Y=this.startNodeAt(Z);if(Y.typeParameters=null,Y.id=this.flowParseQualifiedTypeIdentifier(Z,Q),this.match(47))Y.typeParameters=this.flowParseTypeParameterInstantiation();return this.finishNode(Y,"GenericTypeAnnotation")}flowParseTypeofType(){let Z=this.startNode();return this.expect(87),Z.argument=this.flowParsePrimaryType(),this.finishNode(Z,"TypeofTypeAnnotation")}flowParseTupleType(){let Z=this.startNode();Z.types=[],this.expect(0);while(this.state.pos<this.length&&!this.match(3)){if(Z.types.push(this.flowParseType()),this.match(3))break;this.expect(12)}return this.expect(3),this.finishNode(Z,"TupleTypeAnnotation")}flowParseFunctionTypeParam(Z){let Q=null,Y=!1,z=null,H=this.startNode(),G=this.lookahead(),W=this.state.type===78;if(G.type===14||G.type===17){if(W&&!Z)this.raise(o.ThisParamMustBeFirst,H);if(Q=this.parseIdentifier(W),this.eat(17)){if(Y=!0,W)this.raise(o.ThisParamMayNotBeOptional,H)}z=this.flowParseTypeInitialiser()}else z=this.flowParseType();return H.name=Q,H.optional=Y,H.typeAnnotation=z,this.finishNode(H,"FunctionTypeParam")}reinterpretTypeAsFunctionTypeParam(Z){let Q=this.startNodeAt(Z.loc.start);return Q.name=null,Q.optional=!1,Q.typeAnnotation=Z,this.finishNode(Q,"FunctionTypeParam")}flowParseFunctionTypeParams(Z=[]){let Q=null,Y=null;if(this.match(78)){if(Y=this.flowParseFunctionTypeParam(!0),Y.name=null,!this.match(11))this.expect(12)}while(!this.match(11)&&!this.match(21))if(Z.push(this.flowParseFunctionTypeParam(!1)),!this.match(11))this.expect(12);if(this.eat(21))Q=this.flowParseFunctionTypeParam(!1);return{params:Z,rest:Q,_this:Y}}flowIdentToTypeAnnotation(Z,Q,Y){switch(Y.name){case"any":return this.finishNode(Q,"AnyTypeAnnotation");case"bool":case"boolean":return this.finishNode(Q,"BooleanTypeAnnotation");case"mixed":return this.finishNode(Q,"MixedTypeAnnotation");case"empty":return this.finishNode(Q,"EmptyTypeAnnotation");case"number":return this.finishNode(Q,"NumberTypeAnnotation");case"string":return this.finishNode(Q,"StringTypeAnnotation");case"symbol":return this.finishNode(Q,"SymbolTypeAnnotation");default:return this.checkNotUnderscore(Y.name),this.flowParseGenericType(Z,Y)}}flowParsePrimaryType(){let Z=this.state.startLoc,Q=this.startNode(),Y,z,H=!1,G=this.state.noAnonFunctionType;switch(this.state.type){case 5:return this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!0,allowProto:!1,allowInexact:!0});case 6:return this.flowParseObjectType({allowStatic:!1,allowExact:!0,allowSpread:!0,allowProto:!1,allowInexact:!1});case 0:return this.state.noAnonFunctionType=!1,z=this.flowParseTupleType(),this.state.noAnonFunctionType=G,z;case 47:{let W=this.startNode();return W.typeParameters=this.flowParseTypeParameterDeclaration(),this.expect(10),Y=this.flowParseFunctionTypeParams(),W.params=Y.params,W.rest=Y.rest,W.this=Y._this,this.expect(11),this.expect(19),W.returnType=this.flowParseType(),this.finishNode(W,"FunctionTypeAnnotation")}case 10:{let W=this.startNode();if(this.next(),!this.match(11)&&!this.match(21))if(A1(this.state.type)||this.match(78)){let V=this.lookahead().type;H=V!==17&&V!==14}else H=!0;if(H)if(this.state.noAnonFunctionType=!1,z=this.flowParseType(),this.state.noAnonFunctionType=G,this.state.noAnonFunctionType||!(this.match(12)||this.match(11)&&this.lookahead().type===19))return this.expect(11),z;else this.eat(12);if(z)Y=this.flowParseFunctionTypeParams([this.reinterpretTypeAsFunctionTypeParam(z)]);else Y=this.flowParseFunctionTypeParams();return W.params=Y.params,W.rest=Y.rest,W.this=Y._this,this.expect(11),this.expect(19),W.returnType=this.flowParseType(),W.typeParameters=null,this.finishNode(W,"FunctionTypeAnnotation")}case 134:return this.parseLiteral(this.state.value,"StringLiteralTypeAnnotation");case 85:case 86:return Q.value=this.match(85),this.next(),this.finishNode(Q,"BooleanLiteralTypeAnnotation");case 53:if(this.state.value==="-"){if(this.next(),this.match(135))return this.parseLiteralAtNode(-this.state.value,"NumberLiteralTypeAnnotation",Q);if(this.match(136))return this.parseLiteralAtNode(-this.state.value,"BigIntLiteralTypeAnnotation",Q);throw this.raise(o.UnexpectedSubtractionOperand,this.state.startLoc)}throw this.unexpected();case 135:return this.parseLiteral(this.state.value,"NumberLiteralTypeAnnotation");case 136:return this.parseLiteral(this.state.value,"BigIntLiteralTypeAnnotation");case 88:return this.next(),this.finishNode(Q,"VoidTypeAnnotation");case 84:return this.next(),this.finishNode(Q,"NullLiteralTypeAnnotation");case 78:return this.next(),this.finishNode(Q,"ThisTypeAnnotation");case 55:return this.next(),this.finishNode(Q,"ExistsTypeAnnotation");case 87:return this.flowParseTypeofType();default:if(W8(this.state.type)){let W=X0(this.state.type);return this.next(),super.createIdentifier(Q,W)}else if(A1(this.state.type)){if(this.isContextual(129))return this.flowParseInterfaceType();return this.flowIdentToTypeAnnotation(Z,Q,this.parseIdentifier())}}throw this.unexpected()}flowParsePostfixType(){let Z=this.state.startLoc,Q=this.flowParsePrimaryType(),Y=!1;while((this.match(0)||this.match(18))&&!this.canInsertSemicolon()){let z=this.startNodeAt(Z),H=this.eat(18);if(Y=Y||H,this.expect(0),!H&&this.match(3))z.elementType=Q,this.next(),Q=this.finishNode(z,"ArrayTypeAnnotation");else if(z.objectType=Q,z.indexType=this.flowParseType(),this.expect(3),Y)z.optional=H,Q=this.finishNode(z,"OptionalIndexedAccessType");else Q=this.finishNode(z,"IndexedAccessType")}return Q}flowParsePrefixType(){let Z=this.startNode();if(this.eat(17))return Z.typeAnnotation=this.flowParsePrefixType(),this.finishNode(Z,"NullableTypeAnnotation");else return this.flowParsePostfixType()}flowParseAnonFunctionWithoutParens(){let Z=this.flowParsePrefixType();if(!this.state.noAnonFunctionType&&this.eat(19)){let Q=this.startNodeAt(Z.loc.start);return Q.params=[this.reinterpretTypeAsFunctionTypeParam(Z)],Q.rest=null,Q.this=null,Q.returnType=this.flowParseType(),Q.typeParameters=null,this.finishNode(Q,"FunctionTypeAnnotation")}return Z}flowParseIntersectionType(){let Z=this.startNode();this.eat(45);let Q=this.flowParseAnonFunctionWithoutParens();Z.types=[Q];while(this.eat(45))Z.types.push(this.flowParseAnonFunctionWithoutParens());return Z.types.length===1?Q:this.finishNode(Z,"IntersectionTypeAnnotation")}flowParseUnionType(){let Z=this.startNode();this.eat(43);let Q=this.flowParseIntersectionType();Z.types=[Q];while(this.eat(43))Z.types.push(this.flowParseIntersectionType());return Z.types.length===1?Q:this.finishNode(Z,"UnionTypeAnnotation")}flowParseType(){let Z=this.state.inType;this.state.inType=!0;let Q=this.flowParseUnionType();return this.state.inType=Z,Q}flowParseTypeOrImplicitInstantiation(){if(this.state.type===132&&this.state.value==="_"){let Z=this.state.startLoc,Q=this.parseIdentifier();return this.flowParseGenericType(Z,Q)}else return this.flowParseType()}flowParseTypeAnnotation(){let Z=this.startNode();return Z.typeAnnotation=this.flowParseTypeInitialiser(),this.finishNode(Z,"TypeAnnotation")}flowParseTypeAnnotatableIdentifier(){let Z=this.startNode(),Q=this.parseIdentifierName();if(this.match(14))Z.typeAnnotation=this.flowParseTypeAnnotation();return this.createIdentifier(Z,Q)}typeCastToParameter(Z){return Z.expression.typeAnnotation=Z.typeAnnotation,this.resetEndLocation(Z.expression,Z.typeAnnotation.loc.end),Z.expression}flowParseVariance(){let Z=null;if(this.match(53)){if(Z=this.startNode(),this.state.value==="+")Z.kind="plus";else Z.kind="minus";return this.next(),this.finishNode(Z,"Variance")}return Z}parseFunctionBody(Z,Q,Y=!1){if(Q){this.forwardNoArrowParamsConversionAt(Z,()=>super.parseFunctionBody(Z,!0,Y));return}super.parseFunctionBody(Z,!1,Y)}parseFunctionBodyAndFinish(Z,Q,Y=!1){if(this.match(14)){let z=this.startNode();[z.typeAnnotation,Z.predicate]=this.flowParseTypeAndPredicateInitialiser(),Z.returnType=z.typeAnnotation?this.finishNode(z,"TypeAnnotation"):null}return super.parseFunctionBodyAndFinish(Z,Q,Y)}parseStatementLike(Z){if(this.state.strict&&this.isContextual(129)){let Y=this.lookahead();if(CJ(Y.type)){let z=this.startNode();return this.next(),this.flowParseInterface(z)}}else if(this.isContextual(126)){let Y=this.startNode();return this.next(),this.flowParseEnumDeclaration(Y)}let Q=super.parseStatementLike(Z);if(this.flowPragma===void 0&&!this.isValidDirective(Q))this.flowPragma=null;return Q}parseExpressionStatement(Z,Q,Y){if(Q.type==="Identifier"){if(Q.name==="declare"){if(this.match(80)||A1(this.state.type)||this.match(68)||this.match(74)||this.match(82))return this.flowParseDeclare(Z)}else if(A1(this.state.type)){if(Q.name==="interface")return this.flowParseInterface(Z);else if(Q.name==="type")return this.flowParseTypeAlias(Z);else if(Q.name==="opaque")return this.flowParseOpaqueType(Z,!1)}}return super.parseExpressionStatement(Z,Q,Y)}shouldParseExportDeclaration(){let{type:Z}=this.state;if(Z===126||rY(Z))return!this.state.containsEsc;return super.shouldParseExportDeclaration()}isExportDefaultSpecifier(){let{type:Z}=this.state;if(Z===126||rY(Z))return this.state.containsEsc;return super.isExportDefaultSpecifier()}parseExportDefaultExpression(){if(this.isContextual(126)){let Z=this.startNode();return this.next(),this.flowParseEnumDeclaration(Z)}return super.parseExportDefaultExpression()}parseConditional(Z,Q,Y){if(!this.match(17))return Z;if(this.state.maybeInArrowParameters){let O=this.lookaheadCharCode();if(O===44||O===61||O===58||O===41)return this.setOptionalParametersError(Y),Z}this.expect(17);let z=this.state.clone(),H=this.state.noArrowAt,G=this.startNodeAt(Q),{consequent:W,failed:V}=this.tryParseConditionalConsequent(),[U,q]=this.getArrowLikeExpressions(W);if(V||q.length>0){let O=[...H];if(q.length>0){this.state=z,this.state.noArrowAt=O;for(let A=0;A<q.length;A++)O.push(q[A].start);({consequent:W,failed:V}=this.tryParseConditionalConsequent()),[U,q]=this.getArrowLikeExpressions(W)}if(V&&U.length>1)this.raise(o.AmbiguousConditionalArrow,z.startLoc);if(V&&U.length===1)this.state=z,O.push(U[0].start),this.state.noArrowAt=O,{consequent:W,failed:V}=this.tryParseConditionalConsequent()}return this.getArrowLikeExpressions(W,!0),this.state.noArrowAt=H,this.expect(14),G.test=Z,G.consequent=W,G.alternate=this.forwardNoArrowParamsConversionAt(G,()=>this.parseMaybeAssign(void 0,void 0)),this.finishNode(G,"ConditionalExpression")}tryParseConditionalConsequent(){this.state.noArrowParamsConversionAt.push(this.state.start);let Z=this.parseMaybeAssignAllowIn(),Q=!this.match(14);return this.state.noArrowParamsConversionAt.pop(),{consequent:Z,failed:Q}}getArrowLikeExpressions(Z,Q){let Y=[Z],z=[];while(Y.length!==0){let H=Y.pop();if(H.type==="ArrowFunctionExpression"&&H.body.type!=="BlockStatement"){if(H.typeParameters||!H.returnType)this.finishArrowValidation(H);else z.push(H);Y.push(H.body)}else if(H.type==="ConditionalExpression")Y.push(H.consequent),Y.push(H.alternate)}if(Q)return z.forEach((H)=>this.finishArrowValidation(H)),[z,[]];return YQ1(z,(H)=>H.params.every((G)=>this.isAssignable(G,!0)))}finishArrowValidation(Z){var Q;this.toAssignableList(Z.params,(Q=Z.extra)==null?void 0:Q.trailingCommaLoc,!1),this.scope.enter(518),super.checkParams(Z,!1,!0),this.scope.exit()}forwardNoArrowParamsConversionAt(Z,Q){let Y;if(this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(Z.start)))this.state.noArrowParamsConversionAt.push(this.state.start),Y=Q(),this.state.noArrowParamsConversionAt.pop();else Y=Q();return Y}parseParenItem(Z,Q){let Y=super.parseParenItem(Z,Q);if(this.eat(17))Y.optional=!0,this.resetEndLocation(Z);if(this.match(14)){let z=this.startNodeAt(Q);return z.expression=Y,z.typeAnnotation=this.flowParseTypeAnnotation(),this.finishNode(z,"TypeCastExpression")}return Y}assertModuleNodeAllowed(Z){if(Z.type==="ImportDeclaration"&&(Z.importKind==="type"||Z.importKind==="typeof")||Z.type==="ExportNamedDeclaration"&&Z.exportKind==="type"||Z.type==="ExportAllDeclaration"&&Z.exportKind==="type")return;super.assertModuleNodeAllowed(Z)}parseExportDeclaration(Z){if(this.isContextual(130)){Z.exportKind="type";let Q=this.startNode();if(this.next(),this.match(5))return Z.specifiers=this.parseExportSpecifiers(!0),super.parseExportFrom(Z),null;else return this.flowParseTypeAlias(Q)}else if(this.isContextual(131)){Z.exportKind="type";let Q=this.startNode();return this.next(),this.flowParseOpaqueType(Q,!1)}else if(this.isContextual(129)){Z.exportKind="type";let Q=this.startNode();return this.next(),this.flowParseInterface(Q)}else if(this.isContextual(126)){Z.exportKind="value";let Q=this.startNode();return this.next(),this.flowParseEnumDeclaration(Q)}else return super.parseExportDeclaration(Z)}eatExportStar(Z){if(super.eatExportStar(Z))return!0;if(this.isContextual(130)&&this.lookahead().type===55)return Z.exportKind="type",this.next(),this.next(),!0;return!1}maybeParseExportNamespaceSpecifier(Z){let{startLoc:Q}=this.state,Y=super.maybeParseExportNamespaceSpecifier(Z);if(Y&&Z.exportKind==="type")this.unexpected(Q);return Y}parseClassId(Z,Q,Y){if(super.parseClassId(Z,Q,Y),this.match(47))Z.typeParameters=this.flowParseTypeParameterDeclaration()}parseClassMember(Z,Q,Y){let{startLoc:z}=this.state;if(this.isContextual(125)){if(super.parseClassMemberFromModifier(Z,Q))return;Q.declare=!0}if(super.parseClassMember(Z,Q,Y),Q.declare){if(Q.type!=="ClassProperty"&&Q.type!=="ClassPrivateProperty"&&Q.type!=="PropertyDefinition")this.raise(o.DeclareClassElement,z);else if(Q.value)this.raise(o.DeclareClassFieldInitializer,Q.value)}}isIterator(Z){return Z==="iterator"||Z==="asyncIterator"}readIterator(){let Z=super.readWord1(),Q="@@"+Z;if(!this.isIterator(Z)||!this.state.inType)this.raise(j.InvalidIdentifier,this.state.curPosition(),{identifierName:Q});this.finishToken(132,Q)}getTokenFromCode(Z){let Q=this.input.charCodeAt(this.state.pos+1);if(Z===123&&Q===124)this.finishOp(6,2);else if(this.state.inType&&(Z===62||Z===60))this.finishOp(Z===62?48:47,1);else if(this.state.inType&&Z===63)if(Q===46)this.finishOp(18,2);else this.finishOp(17,1);else if(oZ1(Z,Q,this.input.charCodeAt(this.state.pos+2)))this.state.pos+=2,this.readIterator();else super.getTokenFromCode(Z)}isAssignable(Z,Q){if(Z.type==="TypeCastExpression")return this.isAssignable(Z.expression,Q);else return super.isAssignable(Z,Q)}toAssignable(Z,Q=!1){if(!Q&&Z.type==="AssignmentExpression"&&Z.left.type==="TypeCastExpression")Z.left=this.typeCastToParameter(Z.left);super.toAssignable(Z,Q)}toAssignableList(Z,Q,Y){for(let z=0;z<Z.length;z++){let H=Z[z];if((H==null?void 0:H.type)==="TypeCastExpression")Z[z]=this.typeCastToParameter(H)}super.toAssignableList(Z,Q,Y)}toReferencedList(Z,Q){for(let z=0;z<Z.length;z++){var Y;let H=Z[z];if(H&&H.type==="TypeCastExpression"&&!((Y=H.extra)!=null&&Y.parenthesized)&&(Z.length>1||!Q))this.raise(o.TypeCastInPattern,H.typeAnnotation)}return Z}parseArrayLike(Z,Q,Y){let z=super.parseArrayLike(Z,Q,Y);if(Y!=null&&!this.state.maybeInArrowParameters)this.toReferencedList(z.elements);return z}isValidLVal(Z,Q,Y,z){return Z==="TypeCastExpression"||super.isValidLVal(Z,Q,Y,z)}parseClassProperty(Z){if(this.match(14))Z.typeAnnotation=this.flowParseTypeAnnotation();return super.parseClassProperty(Z)}parseClassPrivateProperty(Z){if(this.match(14))Z.typeAnnotation=this.flowParseTypeAnnotation();return super.parseClassPrivateProperty(Z)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(14)||super.isClassProperty()}isNonstaticConstructor(Z){return!this.match(14)&&super.isNonstaticConstructor(Z)}pushClassMethod(Z,Q,Y,z,H,G){if(Q.variance)this.unexpected(Q.variance.loc.start);if(delete Q.variance,this.match(47))Q.typeParameters=this.flowParseTypeParameterDeclaration();if(super.pushClassMethod(Z,Q,Y,z,H,G),Q.params&&H){let W=Q.params;if(W.length>0&&this.isThisParam(W[0]))this.raise(o.ThisParamBannedInConstructor,Q)}else if(Q.type==="MethodDefinition"&&H&&Q.value.params){let W=Q.value.params;if(W.length>0&&this.isThisParam(W[0]))this.raise(o.ThisParamBannedInConstructor,Q)}}pushClassPrivateMethod(Z,Q,Y,z){if(Q.variance)this.unexpected(Q.variance.loc.start);if(delete Q.variance,this.match(47))Q.typeParameters=this.flowParseTypeParameterDeclaration();super.pushClassPrivateMethod(Z,Q,Y,z)}parseClassSuper(Z){if(super.parseClassSuper(Z),Z.superClass&&(this.match(47)||this.match(51)))Z.superTypeParameters=this.flowParseTypeParameterInstantiationInExpression();if(this.isContextual(113)){this.next();let Q=Z.implements=[];do{let Y=this.startNode();if(Y.id=this.flowParseRestrictedIdentifier(!0),this.match(47))Y.typeParameters=this.flowParseTypeParameterInstantiation();else Y.typeParameters=null;Q.push(this.finishNode(Y,"ClassImplements"))}while(this.eat(12))}}checkGetterSetterParams(Z){super.checkGetterSetterParams(Z);let Q=this.getObjectOrClassMethodParams(Z);if(Q.length>0){let Y=Q[0];if(this.isThisParam(Y)&&Z.kind==="get")this.raise(o.GetterMayNotHaveThisParam,Y);else if(this.isThisParam(Y))this.raise(o.SetterMayNotHaveThisParam,Y)}}parsePropertyNamePrefixOperator(Z){Z.variance=this.flowParseVariance()}parseObjPropValue(Z,Q,Y,z,H,G,W){if(Z.variance)this.unexpected(Z.variance.loc.start);delete Z.variance;let V;if(this.match(47)&&!G){if(V=this.flowParseTypeParameterDeclaration(),!this.match(10))this.unexpected()}let U=super.parseObjPropValue(Z,Q,Y,z,H,G,W);if(V)(U.value||U).typeParameters=V;return U}parseFunctionParamType(Z){if(this.eat(17)){if(Z.type!=="Identifier")this.raise(o.PatternIsOptional,Z);if(this.isThisParam(Z))this.raise(o.ThisParamMayNotBeOptional,Z);Z.optional=!0}if(this.match(14))Z.typeAnnotation=this.flowParseTypeAnnotation();else if(this.isThisParam(Z))this.raise(o.ThisParamAnnotationRequired,Z);if(this.match(29)&&this.isThisParam(Z))this.raise(o.ThisParamNoDefault,Z);return this.resetEndLocation(Z),Z}parseMaybeDefault(Z,Q){let Y=super.parseMaybeDefault(Z,Q);if(Y.type==="AssignmentPattern"&&Y.typeAnnotation&&Y.right.start<Y.typeAnnotation.start)this.raise(o.TypeBeforeInitializer,Y.typeAnnotation);return Y}checkImportReflection(Z){if(super.checkImportReflection(Z),Z.module&&Z.importKind!=="value")this.raise(o.ImportReflectionHasImportType,Z.specifiers[0].loc.start)}parseImportSpecifierLocal(Z,Q,Y){Q.local=dY(Z)?this.flowParseRestrictedIdentifier(!0,!0):this.parseIdentifier(),Z.specifiers.push(this.finishImportSpecifier(Q,Y))}isPotentialImportPhase(Z){if(super.isPotentialImportPhase(Z))return!0;if(this.isContextual(130)){if(!Z)return!0;let Q=this.lookaheadCharCode();return Q===123||Q===42}return!Z&&this.isContextual(87)}applyImportPhase(Z,Q,Y,z){if(super.applyImportPhase(Z,Q,Y,z),Q){if(!Y&&this.match(65))return;Z.exportKind=Y==="type"?Y:"value"}else{if(Y==="type"&&this.match(55))this.unexpected();Z.importKind=Y==="type"||Y==="typeof"?Y:"value"}}parseImportSpecifier(Z,Q,Y,z,H){let G=Z.imported,W=null;if(G.type==="Identifier"){if(G.name==="type")W="type";else if(G.name==="typeof")W="typeof"}let V=!1;if(this.isContextual(93)&&!this.isLookaheadContextual("as")){let q=this.parseIdentifier(!0);if(W!==null&&!CJ(this.state.type))Z.imported=q,Z.importKind=W,Z.local=this.cloneIdentifier(q);else Z.imported=G,Z.importKind=null,Z.local=this.parseIdentifier()}else{if(W!==null&&CJ(this.state.type))Z.imported=this.parseIdentifier(!0),Z.importKind=W;else{if(Q)throw this.raise(j.ImportBindingIsString,Z,{importName:G.value});Z.imported=G,Z.importKind=null}if(this.eatContextual(93))Z.local=this.parseIdentifier();else V=!0,Z.local=this.cloneIdentifier(Z.imported)}let U=dY(Z);if(Y&&U)this.raise(o.ImportTypeShorthandOnlyInPureImport,Z);if(Y||U)this.checkReservedType(Z.local.name,Z.local.loc.start,!0);if(V&&!Y&&!U)this.checkReservedWord(Z.local.name,Z.loc.start,!0,!0);return this.finishImportSpecifier(Z,"ImportSpecifier")}parseBindingAtom(){switch(this.state.type){case 78:return this.parseIdentifier(!0);default:return super.parseBindingAtom()}}parseFunctionParams(Z,Q){let Y=Z.kind;if(Y!=="get"&&Y!=="set"&&this.match(47))Z.typeParameters=this.flowParseTypeParameterDeclaration();super.parseFunctionParams(Z,Q)}parseVarId(Z,Q){if(super.parseVarId(Z,Q),this.match(14))Z.id.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(Z.id)}parseAsyncArrowFromCallExpression(Z,Q){if(this.match(14)){let Y=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0,Z.returnType=this.flowParseTypeAnnotation(),this.state.noAnonFunctionType=Y}return super.parseAsyncArrowFromCallExpression(Z,Q)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}parseMaybeAssign(Z,Q){var Y;let z=null,H;if(this.hasPlugin("jsx")&&(this.match(143)||this.match(47))){if(z=this.state.clone(),H=this.tryParse(()=>super.parseMaybeAssign(Z,Q),z),!H.error)return H.node;let{context:V}=this.state,U=V[V.length-1];if(U===j1.j_oTag||U===j1.j_expr)V.pop()}if((Y=H)!=null&&Y.error||this.match(47)){var G,W;z=z||this.state.clone();let V,U=this.tryParse((O)=>{var A;V=this.flowParseTypeParameterDeclaration();let D=this.forwardNoArrowParamsConversionAt(V,()=>{let C=super.parseMaybeAssign(Z,Q);return this.resetStartLocationFromNode(C,V),C});if((A=D.extra)!=null&&A.parenthesized)O();let S=this.maybeUnwrapTypeCastExpression(D);if(S.type!=="ArrowFunctionExpression")O();return S.typeParameters=V,this.resetStartLocationFromNode(S,V),D},z),q=null;if(U.node&&this.maybeUnwrapTypeCastExpression(U.node).type==="ArrowFunctionExpression"){if(!U.error&&!U.aborted){if(U.node.async)this.raise(o.UnexpectedTypeParameterBeforeAsyncArrowFunction,V);return U.node}q=U.node}if((G=H)!=null&&G.node)return this.state=H.failState,H.node;if(q)return this.state=U.failState,q;if((W=H)!=null&&W.thrown)throw H.error;if(U.thrown)throw U.error;throw this.raise(o.UnexpectedTokenAfterTypeParameter,V)}return super.parseMaybeAssign(Z,Q)}parseArrow(Z){if(this.match(14)){let Q=this.tryParse(()=>{let Y=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0;let z=this.startNode();if([z.typeAnnotation,Z.predicate]=this.flowParseTypeAndPredicateInitialiser(),this.state.noAnonFunctionType=Y,this.canInsertSemicolon())this.unexpected();if(!this.match(19))this.unexpected();return z});if(Q.thrown)return null;if(Q.error)this.state=Q.failState;Z.returnType=Q.node.typeAnnotation?this.finishNode(Q.node,"TypeAnnotation"):null}return super.parseArrow(Z)}shouldParseArrow(Z){return this.match(14)||super.shouldParseArrow(Z)}setArrowFunctionParameters(Z,Q){if(this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(Z.start)))Z.params=Q;else super.setArrowFunctionParameters(Z,Q)}checkParams(Z,Q,Y,z=!0){if(Y&&this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(Z.start)))return;for(let H=0;H<Z.params.length;H++)if(this.isThisParam(Z.params[H])&&H>0)this.raise(o.ThisParamMustBeFirst,Z.params[H]);super.checkParams(Z,Q,Y,z)}parseParenAndDistinguishExpression(Z){return super.parseParenAndDistinguishExpression(Z&&!this.state.noArrowAt.includes(this.sourceToOffsetPos(this.state.start)))}parseSubscripts(Z,Q,Y){if(Z.type==="Identifier"&&Z.name==="async"&&this.state.noArrowAt.includes(Q.index)){this.next();let z=this.startNodeAt(Q);z.callee=Z,z.arguments=super.parseCallExpressionArguments(),Z=this.finishNode(z,"CallExpression")}else if(Z.type==="Identifier"&&Z.name==="async"&&this.match(47)){let z=this.state.clone(),H=this.tryParse((W)=>this.parseAsyncArrowWithTypeParameters(Q)||W(),z);if(!H.error&&!H.aborted)return H.node;let G=this.tryParse(()=>super.parseSubscripts(Z,Q,Y),z);if(G.node&&!G.error)return G.node;if(H.node)return this.state=H.failState,H.node;if(G.node)return this.state=G.failState,G.node;throw H.error||G.error}return super.parseSubscripts(Z,Q,Y)}parseSubscript(Z,Q,Y,z){if(this.match(18)&&this.isLookaheadToken_lt()){if(z.optionalChainMember=!0,Y)return z.stop=!0,Z;this.next();let H=this.startNodeAt(Q);return H.callee=Z,H.typeArguments=this.flowParseTypeParameterInstantiationInExpression(),this.expect(10),H.arguments=this.parseCallExpressionArguments(),H.optional=!0,this.finishCallExpression(H,!0)}else if(!Y&&this.shouldParseTypes()&&(this.match(47)||this.match(51))){let H=this.startNodeAt(Q);H.callee=Z;let G=this.tryParse(()=>{if(H.typeArguments=this.flowParseTypeParameterInstantiationCallOrNew(),this.expect(10),H.arguments=super.parseCallExpressionArguments(),z.optionalChainMember)H.optional=!1;return this.finishCallExpression(H,z.optionalChainMember)});if(G.node){if(G.error)this.state=G.failState;return G.node}}return super.parseSubscript(Z,Q,Y,z)}parseNewCallee(Z){super.parseNewCallee(Z);let Q=null;if(this.shouldParseTypes()&&this.match(47))Q=this.tryParse(()=>this.flowParseTypeParameterInstantiationCallOrNew()).node;Z.typeArguments=Q}parseAsyncArrowWithTypeParameters(Z){let Q=this.startNodeAt(Z);if(this.parseFunctionParams(Q,!1),!this.parseArrow(Q))return;return super.parseArrowExpression(Q,void 0,!0)}readToken_mult_modulo(Z){let Q=this.input.charCodeAt(this.state.pos+1);if(Z===42&&Q===47&&this.state.hasFlowComment){this.state.hasFlowComment=!1,this.state.pos+=2,this.nextToken();return}super.readToken_mult_modulo(Z)}readToken_pipe_amp(Z){let Q=this.input.charCodeAt(this.state.pos+1);if(Z===124&&Q===125){this.finishOp(9,2);return}super.readToken_pipe_amp(Z)}parseTopLevel(Z,Q){let Y=super.parseTopLevel(Z,Q);if(this.state.hasFlowComment)this.raise(o.UnterminatedFlowComment,this.state.curPosition());return Y}skipBlockComment(){if(this.hasPlugin("flowComments")&&this.skipFlowComment()){if(this.state.hasFlowComment)throw this.raise(o.NestedFlowComment,this.state.startLoc);this.hasFlowCommentCompletion();let Z=this.skipFlowComment();if(Z)this.state.pos+=Z,this.state.hasFlowComment=!0;return}return super.skipBlockComment(this.state.hasFlowComment?"*-/":"*/")}skipFlowComment(){let{pos:Z}=this.state,Q=2;while([32,9].includes(this.input.charCodeAt(Z+Q)))Q++;let Y=this.input.charCodeAt(Q+Z),z=this.input.charCodeAt(Q+Z+1);if(Y===58&&z===58)return Q+2;if(this.input.slice(Q+Z,Q+Z+12)==="flow-include")return Q+12;if(Y===58&&z!==58)return Q;return!1}hasFlowCommentCompletion(){if(this.input.indexOf("*/",this.state.pos)===-1)throw this.raise(j.UnterminatedComment,this.state.curPosition())}flowEnumErrorBooleanMemberNotInitialized(Z,{enumName:Q,memberName:Y}){this.raise(o.EnumBooleanMemberNotInitialized,Z,{memberName:Y,enumName:Q})}flowEnumErrorInvalidMemberInitializer(Z,Q){return this.raise(!Q.explicitType?o.EnumInvalidMemberInitializerUnknownType:Q.explicitType==="symbol"?o.EnumInvalidMemberInitializerSymbolType:o.EnumInvalidMemberInitializerPrimaryType,Z,Q)}flowEnumErrorNumberMemberNotInitialized(Z,Q){this.raise(o.EnumNumberMemberNotInitialized,Z,Q)}flowEnumErrorStringMemberInconsistentlyInitialized(Z,Q){this.raise(o.EnumStringMemberInconsistentlyInitialized,Z,Q)}flowEnumMemberInit(){let Z=this.state.startLoc,Q=()=>this.match(12)||this.match(8);switch(this.state.type){case 135:{let Y=this.parseNumericLiteral(this.state.value);if(Q())return{type:"number",loc:Y.loc.start,value:Y};return{type:"invalid",loc:Z}}case 134:{let Y=this.parseStringLiteral(this.state.value);if(Q())return{type:"string",loc:Y.loc.start,value:Y};return{type:"invalid",loc:Z}}case 85:case 86:{let Y=this.parseBooleanLiteral(this.match(85));if(Q())return{type:"boolean",loc:Y.loc.start,value:Y};return{type:"invalid",loc:Z}}default:return{type:"invalid",loc:Z}}}flowEnumMemberRaw(){let Z=this.state.startLoc,Q=this.parseIdentifier(!0),Y=this.eat(29)?this.flowEnumMemberInit():{type:"none",loc:Z};return{id:Q,init:Y}}flowEnumCheckExplicitTypeMismatch(Z,Q,Y){let{explicitType:z}=Q;if(z===null)return;if(z!==Y)this.flowEnumErrorInvalidMemberInitializer(Z,Q)}flowEnumMembers({enumName:Z,explicitType:Q}){let Y=new Set,z={booleanMembers:[],numberMembers:[],stringMembers:[],defaultedMembers:[]},H=!1;while(!this.match(8)){if(this.eat(21)){H=!0;break}let G=this.startNode(),{id:W,init:V}=this.flowEnumMemberRaw(),U=W.name;if(U==="")continue;if(/^[a-z]/.test(U))this.raise(o.EnumInvalidMemberName,W,{memberName:U,suggestion:U[0].toUpperCase()+U.slice(1),enumName:Z});if(Y.has(U))this.raise(o.EnumDuplicateMemberName,W,{memberName:U,enumName:Z});Y.add(U);let q={enumName:Z,explicitType:Q,memberName:U};switch(G.id=W,V.type){case"boolean":{this.flowEnumCheckExplicitTypeMismatch(V.loc,q,"boolean"),G.init=V.value,z.booleanMembers.push(this.finishNode(G,"EnumBooleanMember"));break}case"number":{this.flowEnumCheckExplicitTypeMismatch(V.loc,q,"number"),G.init=V.value,z.numberMembers.push(this.finishNode(G,"EnumNumberMember"));break}case"string":{this.flowEnumCheckExplicitTypeMismatch(V.loc,q,"string"),G.init=V.value,z.stringMembers.push(this.finishNode(G,"EnumStringMember"));break}case"invalid":throw this.flowEnumErrorInvalidMemberInitializer(V.loc,q);case"none":switch(Q){case"boolean":this.flowEnumErrorBooleanMemberNotInitialized(V.loc,q);break;case"number":this.flowEnumErrorNumberMemberNotInitialized(V.loc,q);break;default:z.defaultedMembers.push(this.finishNode(G,"EnumDefaultedMember"))}}if(!this.match(8))this.expect(12)}return{members:z,hasUnknownMembers:H}}flowEnumStringMembers(Z,Q,{enumName:Y}){if(Z.length===0)return Q;else if(Q.length===0)return Z;else if(Q.length>Z.length){for(let z of Z)this.flowEnumErrorStringMemberInconsistentlyInitialized(z,{enumName:Y});return Q}else{for(let z of Q)this.flowEnumErrorStringMemberInconsistentlyInitialized(z,{enumName:Y});return Z}}flowEnumParseExplicitType({enumName:Z}){if(!this.eatContextual(102))return null;if(!A1(this.state.type))throw this.raise(o.EnumInvalidExplicitTypeUnknownSupplied,this.state.startLoc,{enumName:Z});let{value:Q}=this.state;if(this.next(),Q!=="boolean"&&Q!=="number"&&Q!=="string"&&Q!=="symbol")this.raise(o.EnumInvalidExplicitType,this.state.startLoc,{enumName:Z,invalidEnumType:Q});return Q}flowEnumBody(Z,Q){let Y=Q.name,z=Q.loc.start,H=this.flowEnumParseExplicitType({enumName:Y});this.expect(5);let{members:G,hasUnknownMembers:W}=this.flowEnumMembers({enumName:Y,explicitType:H});switch(Z.hasUnknownMembers=W,H){case"boolean":return Z.explicitType=!0,Z.members=G.booleanMembers,this.expect(8),this.finishNode(Z,"EnumBooleanBody");case"number":return Z.explicitType=!0,Z.members=G.numberMembers,this.expect(8),this.finishNode(Z,"EnumNumberBody");case"string":return Z.explicitType=!0,Z.members=this.flowEnumStringMembers(G.stringMembers,G.defaultedMembers,{enumName:Y}),this.expect(8),this.finishNode(Z,"EnumStringBody");case"symbol":return Z.members=G.defaultedMembers,this.expect(8),this.finishNode(Z,"EnumSymbolBody");default:{let V=()=>{return Z.members=[],this.expect(8),this.finishNode(Z,"EnumStringBody")};Z.explicitType=!1;let U=G.booleanMembers.length,q=G.numberMembers.length,O=G.stringMembers.length,A=G.defaultedMembers.length;if(!U&&!q&&!O&&!A)return V();else if(!U&&!q)return Z.members=this.flowEnumStringMembers(G.stringMembers,G.defaultedMembers,{enumName:Y}),this.expect(8),this.finishNode(Z,"EnumStringBody");else if(!q&&!O&&U>=A){for(let D of G.defaultedMembers)this.flowEnumErrorBooleanMemberNotInitialized(D.loc.start,{enumName:Y,memberName:D.id.name});return Z.members=G.booleanMembers,this.expect(8),this.finishNode(Z,"EnumBooleanBody")}else if(!U&&!O&&q>=A){for(let D of G.defaultedMembers)this.flowEnumErrorNumberMemberNotInitialized(D.loc.start,{enumName:Y,memberName:D.id.name});return Z.members=G.numberMembers,this.expect(8),this.finishNode(Z,"EnumNumberBody")}else return this.raise(o.EnumInconsistentMemberValues,z,{enumName:Y}),V()}}}flowParseEnumDeclaration(Z){let Q=this.parseIdentifier();return Z.id=Q,Z.body=this.flowEnumBody(this.startNode(),Q),this.finishNode(Z,"EnumDeclaration")}jsxParseOpeningElementAfterName(Z){if(this.shouldParseTypes()){if(this.match(47)||this.match(51))Z.typeArguments=this.flowParseTypeParameterInstantiationInExpression()}return super.jsxParseOpeningElementAfterName(Z)}isLookaheadToken_lt(){let Z=this.nextTokenStart();if(this.input.charCodeAt(Z)===60){let Q=this.input.charCodeAt(Z+1);return Q!==60&&Q!==61}return!1}reScan_lt_gt(){let{type:Z}=this.state;if(Z===47)this.state.pos-=1,this.readToken_lt();else if(Z===48)this.state.pos-=1,this.readToken_gt()}reScan_lt(){let{type:Z}=this.state;if(Z===51)return this.state.pos-=2,this.finishOp(47,1),47;return Z}maybeUnwrapTypeCastExpression(Z){return Z.type==="TypeCastExpression"?Z.expression:Z}},GQ1={__proto__:null,quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:"\xA0",iexcl:"\xA1",cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",brvbar:"\xA6",sect:"\xA7",uml:"\xA8",copy:"\xA9",ordf:"\xAA",laquo:"\xAB",not:"\xAC",shy:"\xAD",reg:"\xAE",macr:"\xAF",deg:"\xB0",plusmn:"\xB1",sup2:"\xB2",sup3:"\xB3",acute:"\xB4",micro:"\xB5",para:"\xB6",middot:"\xB7",cedil:"\xB8",sup1:"\xB9",ordm:"\xBA",raquo:"\xBB",frac14:"\xBC",frac12:"\xBD",frac34:"\xBE",iquest:"\xBF",Agrave:"\xC0",Aacute:"\xC1",Acirc:"\xC2",Atilde:"\xC3",Auml:"\xC4",Aring:"\xC5",AElig:"\xC6",Ccedil:"\xC7",Egrave:"\xC8",Eacute:"\xC9",Ecirc:"\xCA",Euml:"\xCB",Igrave:"\xCC",Iacute:"\xCD",Icirc:"\xCE",Iuml:"\xCF",ETH:"\xD0",Ntilde:"\xD1",Ograve:"\xD2",Oacute:"\xD3",Ocirc:"\xD4",Otilde:"\xD5",Ouml:"\xD6",times:"\xD7",Oslash:"\xD8",Ugrave:"\xD9",Uacute:"\xDA",Ucirc:"\xDB",Uuml:"\xDC",Yacute:"\xDD",THORN:"\xDE",szlig:"\xDF",agrave:"\xE0",aacute:"\xE1",acirc:"\xE2",atilde:"\xE3",auml:"\xE4",aring:"\xE5",aelig:"\xE6",ccedil:"\xE7",egrave:"\xE8",eacute:"\xE9",ecirc:"\xEA",euml:"\xEB",igrave:"\xEC",iacute:"\xED",icirc:"\xEE",iuml:"\xEF",eth:"\xF0",ntilde:"\xF1",ograve:"\xF2",oacute:"\xF3",ocirc:"\xF4",otilde:"\xF5",ouml:"\xF6",divide:"\xF7",oslash:"\xF8",ugrave:"\xF9",uacute:"\xFA",ucirc:"\xFB",uuml:"\xFC",yacute:"\xFD",thorn:"\xFE",yuml:"\xFF",OElig:"\u0152",oelig:"\u0153",Scaron:"\u0160",scaron:"\u0161",Yuml:"\u0178",fnof:"\u0192",circ:"\u02C6",tilde:"\u02DC",Alpha:"\u0391",Beta:"\u0392",Gamma:"\u0393",Delta:"\u0394",Epsilon:"\u0395",Zeta:"\u0396",Eta:"\u0397",Theta:"\u0398",Iota:"\u0399",Kappa:"\u039A",Lambda:"\u039B",Mu:"\u039C",Nu:"\u039D",Xi:"\u039E",Omicron:"\u039F",Pi:"\u03A0",Rho:"\u03A1",Sigma:"\u03A3",Tau:"\u03A4",Upsilon:"\u03A5",Phi:"\u03A6",Chi:"\u03A7",Psi:"\u03A8",Omega:"\u03A9",alpha:"\u03B1",beta:"\u03B2",gamma:"\u03B3",delta:"\u03B4",epsilon:"\u03B5",zeta:"\u03B6",eta:"\u03B7",theta:"\u03B8",iota:"\u03B9",kappa:"\u03BA",lambda:"\u03BB",mu:"\u03BC",nu:"\u03BD",xi:"\u03BE",omicron:"\u03BF",pi:"\u03C0",rho:"\u03C1",sigmaf:"\u03C2",sigma:"\u03C3",tau:"\u03C4",upsilon:"\u03C5",phi:"\u03C6",chi:"\u03C7",psi:"\u03C8",omega:"\u03C9",thetasym:"\u03D1",upsih:"\u03D2",piv:"\u03D6",ensp:"\u2002",emsp:"\u2003",thinsp:"\u2009",zwnj:"\u200C",zwj:"\u200D",lrm:"\u200E",rlm:"\u200F",ndash:"\u2013",mdash:"\u2014",lsquo:"\u2018",rsquo:"\u2019",sbquo:"\u201A",ldquo:"\u201C",rdquo:"\u201D",bdquo:"\u201E",dagger:"\u2020",Dagger:"\u2021",bull:"\u2022",hellip:"\u2026",permil:"\u2030",prime:"\u2032",Prime:"\u2033",lsaquo:"\u2039",rsaquo:"\u203A",oline:"\u203E",frasl:"\u2044",euro:"\u20AC",image:"\u2111",weierp:"\u2118",real:"\u211C",trade:"\u2122",alefsym:"\u2135",larr:"\u2190",uarr:"\u2191",rarr:"\u2192",darr:"\u2193",harr:"\u2194",crarr:"\u21B5",lArr:"\u21D0",uArr:"\u21D1",rArr:"\u21D2",dArr:"\u21D3",hArr:"\u21D4",forall:"\u2200",part:"\u2202",exist:"\u2203",empty:"\u2205",nabla:"\u2207",isin:"\u2208",notin:"\u2209",ni:"\u220B",prod:"\u220F",sum:"\u2211",minus:"\u2212",lowast:"\u2217",radic:"\u221A",prop:"\u221D",infin:"\u221E",ang:"\u2220",and:"\u2227",or:"\u2228",cap:"\u2229",cup:"\u222A",int:"\u222B",there4:"\u2234",sim:"\u223C",cong:"\u2245",asymp:"\u2248",ne:"\u2260",equiv:"\u2261",le:"\u2264",ge:"\u2265",sub:"\u2282",sup:"\u2283",nsub:"\u2284",sube:"\u2286",supe:"\u2287",oplus:"\u2295",otimes:"\u2297",perp:"\u22A5",sdot:"\u22C5",lceil:"\u2308",rceil:"\u2309",lfloor:"\u230A",rfloor:"\u230B",lang:"\u2329",rang:"\u232A",loz:"\u25CA",spades:"\u2660",clubs:"\u2663",hearts:"\u2665",diams:"\u2666"},WQ1=/\r\n|[\r\n\u2028\u2029]/,w9=new RegExp(WQ1.source,"g");function u0(J){switch(J){case 10:case 13:case 8232:case 8233:return!0;default:return!1}}function aY(J,X,Z){for(let Q=X;Q<Z;Q++)if(u0(J.charCodeAt(Q)))return!0;return!1}var r6=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,d6=/(?:[^\S\n\r\u2028\u2029]|\/\/.*|\/\*.*?\*\/)*/g;function VQ1(J){switch(J){case 9:case 11:case 12:case 32:case 160:case 5760:case 8192:case 8193:case 8194:case 8195:case 8196:case 8197:case 8198:case 8199:case 8200:case 8201:case 8202:case 8239:case 8287:case 12288:case 65279:return!0;default:return!1}}var $0=bJ`jsx`({AttributeIsEmpty:"JSX attributes must only be assigned a non-empty expression.",MissingClosingTagElement:({openingTagName:J})=>`Expected corresponding JSX closing tag for <${J}>.`,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:J,HTMLEntity:X})=>`Unexpected token \`${J}\`. Did you mean \`${X}\` or \`{'${J}'}\`?`,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 J0(J){return J?J.type==="JSXOpeningFragment"||J.type==="JSXClosingFragment":!1}function y0(J){if(J.type==="JSXIdentifier")return J.name;if(J.type==="JSXNamespacedName")return J.namespace.name+":"+J.name.name;if(J.type==="JSXMemberExpression")return y0(J.object)+"."+y0(J.property);throw Error("Node had unexpected type: "+J.type)}var KQ1=(J)=>class extends J{jsxReadToken(){let Z="",Q=this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise($0.UnterminatedJsxContent,this.state.startLoc);let Y=this.input.charCodeAt(this.state.pos);switch(Y){case 60:case 123:if(this.state.pos===this.state.start){if(Y===60&&this.state.canStartJSXElement)++this.state.pos,this.finishToken(143);else super.getTokenFromCode(Y);return}Z+=this.input.slice(Q,this.state.pos),this.finishToken(142,Z);return;case 38:Z+=this.input.slice(Q,this.state.pos),Z+=this.jsxReadEntity(),Q=this.state.pos;break;case 62:case 125:default:if(u0(Y))Z+=this.input.slice(Q,this.state.pos),Z+=this.jsxReadNewLine(!0),Q=this.state.pos;else++this.state.pos}}}jsxReadNewLine(Z){let Q=this.input.charCodeAt(this.state.pos),Y;if(++this.state.pos,Q===13&&this.input.charCodeAt(this.state.pos)===10)++this.state.pos,Y=Z?`
|
|
21
19
|
`:`\r
|
|
22
|
-
`;else R=String.fromCharCode(W);return++this.state.curLine,this.state.lineStart=this.state.pos,R}jsxReadString(X){let W="",R=++this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise($.UnterminatedString,this.state.startLoc);let J=this.input.charCodeAt(this.state.pos);if(J===X)break;if(J===38)W+=this.input.slice(R,this.state.pos),W+=this.jsxReadEntity(),R=this.state.pos;else if(A1(J))W+=this.input.slice(R,this.state.pos),W+=this.jsxReadNewLine(!1),R=this.state.pos;else++this.state.pos}W+=this.input.slice(R,this.state.pos++),this.finishToken(134,W)}jsxReadEntity(){let X=++this.state.pos;if(this.codePointAtPos(this.state.pos)===35){++this.state.pos;let W=10;if(this.codePointAtPos(this.state.pos)===120)W=16,++this.state.pos;let R=this.readInt(W,void 0,!1,"bail");if(R!==null&&this.codePointAtPos(this.state.pos)===59)return++this.state.pos,String.fromCodePoint(R)}else{let W=0,R=!1;while(W++<10&&this.state.pos<this.length&&!(R=this.codePointAtPos(this.state.pos)===59))++this.state.pos;if(R){let J=this.input.slice(X,this.state.pos),U=KJf[J];if(++this.state.pos,U)return U}}return this.state.pos=X,"&"}jsxReadWord(){let X,W=this.state.pos;do X=this.input.charCodeAt(++this.state.pos);while(q1(X)||X===45);this.finishToken(141,this.input.slice(W,this.state.pos))}jsxParseIdentifier(){let X=this.startNode();if(this.match(141))X.name=this.state.value;else if(ER(this.state.type))X.name=xG(this.state.type);else this.unexpected();return this.next(),this.finishNode(X,"JSXIdentifier")}jsxParseNamespacedName(){let X=this.state.startLoc,W=this.jsxParseIdentifier();if(!this.eat(14))return W;let R=this.startNodeAt(X);return R.namespace=W,R.name=this.jsxParseIdentifier(),this.finishNode(R,"JSXNamespacedName")}jsxParseElementName(){let X=this.state.startLoc,W=this.jsxParseNamespacedName();if(W.type==="JSXNamespacedName")return W;while(this.eat(16)){let R=this.startNodeAt(X);R.object=W,R.property=this.jsxParseIdentifier(),W=this.finishNode(R,"JSXMemberExpression")}return W}jsxParseAttributeValue(){let X;switch(this.state.type){case 5:if(X=this.startNode(),this.setContext(Ff.brace),this.next(),X=this.jsxParseExpressionContainer(X,Ff.j_oTag),X.expression.type==="JSXEmptyExpression")this.raise(oG.AttributeIsEmpty,X);return X;case 143:case 134:return this.parseExprAtom();default:throw this.raise(oG.UnsupportedJsxValue,this.state.startLoc)}}jsxParseEmptyExpression(){let X=this.startNodeAt(this.state.lastTokEndLoc);return this.finishNodeAt(X,"JSXEmptyExpression",this.state.startLoc)}jsxParseSpreadChild(X){return this.next(),X.expression=this.parseExpression(),this.setContext(Ff.j_expr),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(X,"JSXSpreadChild")}jsxParseExpressionContainer(X,W){if(this.match(8))X.expression=this.jsxParseEmptyExpression();else{let R=this.parseExpression();X.expression=R}return this.setContext(W),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(X,"JSXExpressionContainer")}jsxParseAttribute(){let X=this.startNode();if(this.match(5))return this.setContext(Ff.brace),this.next(),this.expect(21),X.argument=this.parseMaybeAssignAllowIn(),this.setContext(Ff.j_oTag),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(X,"JSXSpreadAttribute");return X.name=this.jsxParseNamespacedName(),X.value=this.eat(29)?this.jsxParseAttributeValue():null,this.finishNode(X,"JSXAttribute")}jsxParseOpeningElementAt(X){let W=this.startNodeAt(X);if(this.eat(144))return this.finishNode(W,"JSXOpeningFragment");return W.name=this.jsxParseElementName(),this.jsxParseOpeningElementAfterName(W)}jsxParseOpeningElementAfterName(X){let W=[];while(!this.match(56)&&!this.match(144))W.push(this.jsxParseAttribute());return X.attributes=W,X.selfClosing=this.eat(56),this.expect(144),this.finishNode(X,"JSXOpeningElement")}jsxParseClosingElementAt(X){let W=this.startNodeAt(X);if(this.eat(144))return this.finishNode(W,"JSXClosingFragment");return W.name=this.jsxParseElementName(),this.expect(144),this.finishNode(W,"JSXClosingElement")}jsxParseElementAt(X){let W=this.startNodeAt(X),R=[],J=this.jsxParseOpeningElementAt(X),U=null;if(!J.selfClosing){f:for(;;)switch(this.state.type){case 143:if(X=this.state.startLoc,this.next(),this.eat(56)){U=this.jsxParseClosingElementAt(X);break f}R.push(this.jsxParseElementAt(X));break;case 142:R.push(this.parseLiteral(this.state.value,"JSXText"));break;case 5:{let V=this.startNode();if(this.setContext(Ff.brace),this.next(),this.match(21))R.push(this.jsxParseSpreadChild(V));else R.push(this.jsxParseExpressionContainer(V,Ff.j_expr));break}default:this.unexpected()}if(yG(J)&&!yG(U)&&U!==null)this.raise(oG.MissingClosingTagFragment,U);else if(!yG(J)&&yG(U))this.raise(oG.MissingClosingTagElement,U,{openingTagName:C1(J.name)});else if(!yG(J)&&!yG(U)){if(C1(U.name)!==C1(J.name))this.raise(oG.MissingClosingTagElement,U,{openingTagName:C1(J.name)})}}if(yG(J))W.openingFragment=J,W.closingFragment=U;else W.openingElement=J,W.closingElement=U;if(W.children=R,this.match(47))throw this.raise(oG.UnwrappedAdjacentJSXElements,this.state.startLoc);return yG(J)?this.finishNode(W,"JSXFragment"):this.finishNode(W,"JSXElement")}jsxParseElement(){let X=this.state.startLoc;return this.next(),this.jsxParseElementAt(X)}setContext(X){let{context:W}=this.state;W[W.length-1]=X}parseExprAtom(X){if(this.match(143))return this.jsxParseElement();else if(this.match(47)&&this.input.charCodeAt(this.state.pos)!==33)return this.replaceToken(143),this.jsxParseElement();else return super.parseExprAtom(X)}skipSpace(){if(!this.curContext().preserveSpace)super.skipSpace()}getTokenFromCode(X){let W=this.curContext();if(W===Ff.j_expr){this.jsxReadToken();return}if(W===Ff.j_oTag||W===Ff.j_cTag){if(IG(X)){this.jsxReadWord();return}if(X===62){++this.state.pos,this.finishToken(144);return}if((X===34||X===39)&&W===Ff.j_oTag){this.jsxReadString(X);return}}if(X===60&&this.state.canStartJSXElement&&this.input.charCodeAt(this.state.pos+1)!==33){++this.state.pos,this.finishToken(143);return}super.getTokenFromCode(X)}updateContext(X){let{context:W,type:R}=this.state;if(R===56&&X===143)W.splice(-2,2,Ff.j_cTag),this.state.canStartJSXElement=!1;else if(R===143)W.push(Ff.j_oTag);else if(R===144){let J=W[W.length-1];if(J===Ff.j_oTag&&X===56||J===Ff.j_cTag)W.pop(),this.state.canStartJSXElement=W[W.length-1]===Ff.j_expr;else this.setContext(Ff.j_expr),this.state.canStartJSXElement=!0}else this.state.canStartJSXElement=wRf(R)}};class t9 extends VW{constructor(...f){super(...f);this.tsNames=new Map}}class n9 extends HW{constructor(...f){super(...f);this.importsStack=[]}createScope(f){return this.importsStack.push(new Set),new t9(f)}enter(f){if(f===256)this.importsStack.push(new Set);super.enter(f)}exit(){let f=super.exit();if(f===256)this.importsStack.pop();return f}hasImport(f,G){let X=this.importsStack.length;if(this.importsStack[X-1].has(f))return!0;if(!G&&X>1){for(let W=0;W<X-1;W++)if(this.importsStack[W].has(f))return!0}return!1}declareName(f,G,X){if(G&4096){if(this.hasImport(f,!0))this.parser.raise($.VarRedeclaration,X,{identifierName:f});this.importsStack[this.importsStack.length-1].add(f);return}let W=this.currentScope(),R=W.tsNames.get(f)||0;if(G&1024){this.maybeExportDefined(W,f),W.tsNames.set(f,R|16);return}if(super.declareName(f,G,X),G&2){if(!(G&1))this.checkRedeclarationInScope(W,f,G,X),this.maybeExportDefined(W,f);R=R|1}if(G&256)R=R|2;if(G&512)R=R|4;if(G&128)R=R|8;if(R)W.tsNames.set(f,R)}isRedeclaredInScope(f,G,X){let W=f.tsNames.get(G);if((W&2)>0){if(X&256){let R=!!(X&512),J=(W&4)>0;return R!==J}return!0}if(X&128&&(W&8)>0)if(f.names.get(G)&2)return!!(X&1);else return!1;if(X&2&&(W&1)>0)return!0;return super.isRedeclaredInScope(f,G,X)}checkLocalExport(f){let{name:G}=f;if(this.hasImport(G))return;let X=this.scopeStack.length;for(let W=X-1;W>=0;W--){let J=this.scopeStack[W].tsNames.get(G);if((J&1)>0||(J&16)>0)return}super.checkLocalExport(f)}}var o9=(f)=>{return f.type==="ParenthesizedExpression"?o9(f.expression):f};class e9 extends d9{toAssignable(f,G=!1){var X,W;let R=void 0;if(f.type==="ParenthesizedExpression"||(X=f.extra)!=null&&X.parenthesized)if(R=o9(f),G){if(R.type==="Identifier")this.expressionScope.recordArrowParameterBindingError($.InvalidParenthesizedAssignment,f);else if(R.type!=="MemberExpression"&&!this.isOptionalMemberExpression(R))this.raise($.InvalidParenthesizedAssignment,f)}else this.raise($.InvalidParenthesizedAssignment,f);switch(f.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":f.type="ObjectPattern";for(let U=0,V=f.properties.length,H=V-1;U<V;U++){var J;let Q=f.properties[U],Y=U===H;if(this.toAssignableObjectExpressionProp(Q,Y,G),Y&&Q.type==="RestElement"&&(J=f.extra)!=null&&J.trailingCommaLoc)this.raise($.RestTrailingComma,f.extra.trailingCommaLoc)}break;case"ObjectProperty":{let{key:U,value:V}=f;if(this.isPrivateName(U))this.classScope.usePrivateName(this.getPrivateNameSV(U),U.loc.start);this.toAssignable(V,G);break}case"SpreadElement":throw new Error("Internal @babel/parser error (this is a bug, please report it). SpreadElement should be converted by .toAssignable's caller.");case"ArrayExpression":f.type="ArrayPattern",this.toAssignableList(f.elements,(W=f.extra)==null?void 0:W.trailingCommaLoc,G);break;case"AssignmentExpression":if(f.operator!=="=")this.raise($.MissingEqInAssignment,f.left.loc.end);f.type="AssignmentPattern",delete f.operator,this.toAssignable(f.left,G);break;case"ParenthesizedExpression":this.toAssignable(R,G);break}}toAssignableObjectExpressionProp(f,G,X){if(f.type==="ObjectMethod")this.raise(f.kind==="get"||f.kind==="set"?$.PatternHasAccessor:$.PatternHasMethod,f.key);else if(f.type==="SpreadElement"){f.type="RestElement";let W=f.argument;if(this.checkToRestConversion(W,!1),this.toAssignable(W,X),!G)this.raise($.RestTrailingComma,f)}else this.toAssignable(f,X)}toAssignableList(f,G,X){let W=f.length-1;for(let R=0;R<=W;R++){let J=f[R];if(!J)continue;if(this.toAssignableListItem(f,R,X),J.type==="RestElement"){if(R<W)this.raise($.RestTrailingComma,J);else if(G)this.raise($.RestTrailingComma,G)}}}toAssignableListItem(f,G,X){let W=f[G];if(W.type==="SpreadElement"){W.type="RestElement";let R=W.argument;this.checkToRestConversion(R,!0),this.toAssignable(R,X)}else this.toAssignable(W,X)}isAssignable(f,G){switch(f.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":return!0;case"ObjectExpression":{let X=f.properties.length-1;return f.properties.every((W,R)=>{return W.type!=="ObjectMethod"&&(R===X||W.type!=="SpreadElement")&&this.isAssignable(W)})}case"ObjectProperty":return this.isAssignable(f.value);case"SpreadElement":return this.isAssignable(f.argument);case"ArrayExpression":return f.elements.every((X)=>X===null||this.isAssignable(X));case"AssignmentExpression":return f.operator==="=";case"ParenthesizedExpression":return this.isAssignable(f.expression);case"MemberExpression":case"OptionalMemberExpression":return!G;default:return!1}}toReferencedList(f,G){return f}toReferencedListDeep(f,G){this.toReferencedList(f,G);for(let X of f)if((X==null?void 0:X.type)==="ArrayExpression")this.toReferencedListDeep(X.elements)}parseSpread(f){let G=this.startNode();return this.next(),G.argument=this.parseMaybeAssignAllowIn(f,void 0),this.finishNode(G,"SpreadElement")}parseRestBinding(){let f=this.startNode();return this.next(),f.argument=this.parseBindingAtom(),this.finishNode(f,"RestElement")}parseBindingAtom(){switch(this.state.type){case 0:{let f=this.startNode();return this.next(),f.elements=this.parseBindingList(3,93,1),this.finishNode(f,"ArrayPattern")}case 5:return this.parseObjectLike(8,!0)}return this.parseIdentifier()}parseBindingList(f,G,X){let W=X&1,R=[],J=!0;while(!this.eat(f)){if(J)J=!1;else this.expect(12);if(W&&this.match(12))R.push(null);else if(this.eat(f))break;else if(this.match(21)){let U=this.parseRestBinding();if(this.hasPlugin("flow")||X&2)U=this.parseFunctionParamType(U);if(R.push(U),!this.checkCommaAfterRest(G)){this.expect(f);break}}else{let U=[];if(X&2){if(this.match(26)&&this.hasPlugin("decorators"))this.raise($.UnsupportedParameterDecorator,this.state.startLoc);while(this.match(26))U.push(this.parseDecorator())}R.push(this.parseBindingElement(X,U))}}return R}parseBindingRestProperty(f){return this.next(),f.argument=this.parseIdentifier(),this.checkCommaAfterRest(125),this.finishNode(f,"RestElement")}parseBindingProperty(){let{type:f,startLoc:G}=this.state;if(f===21)return this.parseBindingRestProperty(this.startNode());let X=this.startNode();if(f===139)this.expectPlugin("destructuringPrivate",G),this.classScope.usePrivateName(this.state.value,G),X.key=this.parsePrivateName();else this.parsePropertyName(X);return X.method=!1,this.parseObjPropValue(X,G,!1,!1,!0,!1)}parseBindingElement(f,G){let X=this.parseMaybeDefault();if(this.hasPlugin("flow")||f&2)this.parseFunctionParamType(X);let W=this.parseMaybeDefault(X.loc.start,X);if(G.length)X.decorators=G;return W}parseFunctionParamType(f){return f}parseMaybeDefault(f,G){if(f!=null||(f=this.state.startLoc),G=G!=null?G:this.parseBindingAtom(),!this.eat(29))return G;let X=this.startNodeAt(f);return X.left=G,X.right=this.parseMaybeAssignAllowIn(),this.finishNode(X,"AssignmentPattern")}isValidLVal(f,G,X){switch(f){case"AssignmentPattern":return"left";case"RestElement":return"argument";case"ObjectProperty":return"value";case"ParenthesizedExpression":return"expression";case"ArrayPattern":return"elements";case"ObjectPattern":return"properties"}return!1}isOptionalMemberExpression(f){return f.type==="OptionalMemberExpression"}checkLVal(f,G,X=64,W=!1,R=!1,J=!1){var U;let V=f.type;if(this.isObjectMethod(f))return;let H=this.isOptionalMemberExpression(f);if(H||V==="MemberExpression"){if(H){if(this.expectPlugin("optionalChainingAssign",f.loc.start),G.type!=="AssignmentExpression")this.raise($.InvalidLhsOptionalChaining,f,{ancestor:G})}if(X!==64)this.raise($.InvalidPropertyBindingPattern,f);return}if(V==="Identifier"){this.checkIdentifier(f,X,R);let{name:j}=f;if(W)if(W.has(j))this.raise($.ParamDupe,f);else W.add(j);return}let Q=this.isValidLVal(V,!(J||(U=f.extra)!=null&&U.parenthesized)&&G.type==="AssignmentExpression",X);if(Q===!0)return;if(Q===!1){let j=X===64?$.InvalidLhs:$.InvalidLhsBinding;this.raise(j,f,{ancestor:G});return}let Y,F;if(typeof Q==="string")Y=Q,F=V==="ParenthesizedExpression";else[Y,F]=Q;let q=V==="ArrayPattern"||V==="ObjectPattern"?{type:V}:G,A=f[Y];if(Array.isArray(A)){for(let j of A)if(j)this.checkLVal(j,q,X,W,R,F)}else if(A)this.checkLVal(A,q,X,W,R,F)}checkIdentifier(f,G,X=!1){if(this.state.strict&&(X?v9(f.name,this.inModule):k9(f.name)))if(G===64)this.raise($.StrictEvalArguments,f,{referenceName:f.name});else this.raise($.StrictEvalArgumentsBinding,f,{bindingName:f.name});if(G&8192&&f.name==="let")this.raise($.LetInLexicalBinding,f);if(!(G&64))this.declareNameFromIdentifier(f,G)}declareNameFromIdentifier(f,G){this.scope.declareName(f.name,G,f.loc.start)}checkToRestConversion(f,G){switch(f.type){case"ParenthesizedExpression":this.checkToRestConversion(f.expression,G);break;case"Identifier":case"MemberExpression":break;case"ArrayExpression":case"ObjectExpression":if(G)break;default:this.raise($.InvalidRestAssignmentPattern,f)}}checkCommaAfterRest(f){if(!this.match(12))return!1;return this.raise(this.lookaheadCharCode()===f?$.RestTrailingComma:$.ElementAfterRest,this.state.startLoc),!0}}function FJf(f){if(f==null)throw new Error(`Unexpected ${f} value.`);return f}function O9(f){if(!f)throw new Error("Assert fail")}var i=TG`typescript`({AbstractMethodHasImplementation:({methodName:f})=>`Method '${f}' cannot have an implementation because it is marked abstract.`,AbstractPropertyHasInitializer:({propertyName:f})=>`Property '${f}' cannot have an initializer because it is marked abstract.`,AccessorCannotBeOptional:"An 'accessor' property cannot be declared optional.",AccessorCannotDeclareThisParameter:"'get' and 'set' accessors cannot declare 'this' parameters.",AccessorCannotHaveTypeParameters:"An accessor cannot have type parameters.",ClassMethodHasDeclare:"Class methods cannot have the 'declare' modifier.",ClassMethodHasReadonly:"Class methods cannot have the 'readonly' modifier.",ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference:"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:f})=>`'declare' is not allowed in ${f}ters.`,DeclareClassFieldHasInitializer:"Initializers are not allowed in ambient contexts.",DeclareFunctionHasImplementation:"An implementation cannot be declared in ambient contexts.",DuplicateAccessibilityModifier:({modifier:f})=>"Accessibility modifier already seen.",DuplicateModifier:({modifier:f})=>`Duplicate modifier: '${f}'.`,EmptyHeritageClauseType:({token:f})=>`'${f}' 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:f})=>`'${f[0]}' modifier cannot be used with '${f[1]}' modifier.`,IndexSignatureHasAbstract:"Index signatures cannot have the 'abstract' modifier.",IndexSignatureHasAccessibility:({modifier:f})=>`Index signatures cannot have an accessibility modifier ('${f}').`,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.",InvalidHeritageClauseType:({token:f})=>`'${f}' list can only include identifiers or qualified-names with optional type arguments.`,InvalidModifierOnTypeMember:({modifier:f})=>`'${f}' modifier cannot appear on a type member.`,InvalidModifierOnTypeParameter:({modifier:f})=>`'${f}' modifier cannot appear on a type parameter.`,InvalidModifierOnTypeParameterPositions:({modifier:f})=>`'${f}' modifier can only appear on a type parameter of a class, interface or type alias.`,InvalidModifiersOrder:({orderedModifiers:f})=>`'${f[0]}' modifier must precede '${f[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:f})=>`Private elements cannot have an accessibility modifier ('${f}').`,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 `<T,>() => ...`.",ReservedTypeAssertion:"This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead.",SetAccessorCannotHaveOptionalParameter:"A 'set' accessor cannot have an optional parameter.",SetAccessorCannotHaveRestParameter:"A 'set' accessor cannot have rest parameter.",SetAccessorCannotHaveReturnType:"A 'set' accessor cannot have a return type annotation.",SingleTypeParameterWithoutTrailingComma:({typeParameterName:f})=>`Single type parameter ${f} should have a trailing comma. Example usage: <${f},>.`,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:f})=>`Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got ${f}.`});function $Jf(f){switch(f){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 j9(f){return f==="private"||f==="public"||f==="protected"}function CJf(f){return f==="in"||f==="out"}var qJf=(f)=>class G extends f{constructor(...X){super(...X);this.tsParseInOutModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out"],disallowedModifiers:["const","public","private","protected","readonly","declare","abstract","override"],errorTemplate:i.InvalidModifierOnTypeParameter}),this.tsParseConstModifier=this.tsParseModifiers.bind(this,{allowedModifiers:["const"],disallowedModifiers:["in","out"],errorTemplate:i.InvalidModifierOnTypeParameterPositions}),this.tsParseInOutConstModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out","const"],disallowedModifiers:["public","private","protected","readonly","declare","abstract","override"],errorTemplate:i.InvalidModifierOnTypeParameter})}getScopeHandler(){return n9}tsIsIdentifier(){return $f(this.state.type)}tsTokenCanFollowModifier(){return this.match(0)||this.match(5)||this.match(55)||this.match(21)||this.match(139)||this.isLiteralPropertyName()}tsNextTokenOnSameLineAndCanFollowModifier(){if(this.next(),this.hasPrecedingLineBreak())return!1;return this.tsTokenCanFollowModifier()}tsNextTokenCanFollowModifier(){if(this.match(106))return this.next(),this.tsTokenCanFollowModifier();return this.tsNextTokenOnSameLineAndCanFollowModifier()}tsParseModifier(X,W){if(!$f(this.state.type)&&this.state.type!==58&&this.state.type!==75)return;let R=this.state.value;if(X.includes(R)){if(W&&this.tsIsStartOfStaticBlocks())return;if(this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this)))return R}return}tsParseModifiers({allowedModifiers:X,disallowedModifiers:W,stopOnStartOfClassStaticBlock:R,errorTemplate:J=i.InvalidModifierOnTypeMember},U){let V=(Q,Y,F,q)=>{if(Y===F&&U[q])this.raise(i.InvalidModifiersOrder,Q,{orderedModifiers:[F,q]})},H=(Q,Y,F,q)=>{if(U[F]&&Y===q||U[q]&&Y===F)this.raise(i.IncompatibleModifiers,Q,{modifiers:[F,q]})};for(;;){let{startLoc:Q}=this.state,Y=this.tsParseModifier(X.concat(W!=null?W:[]),R);if(!Y)break;if(j9(Y))if(U.accessibility)this.raise(i.DuplicateAccessibilityModifier,Q,{modifier:Y});else V(Q,Y,Y,"override"),V(Q,Y,Y,"static"),V(Q,Y,Y,"readonly"),U.accessibility=Y;else if(CJf(Y)){if(U[Y])this.raise(i.DuplicateModifier,Q,{modifier:Y});U[Y]=!0,V(Q,Y,"in","out")}else{if(hasOwnProperty.call(U,Y))this.raise(i.DuplicateModifier,Q,{modifier:Y});else V(Q,Y,"static","readonly"),V(Q,Y,"static","override"),V(Q,Y,"override","readonly"),V(Q,Y,"abstract","override"),H(Q,Y,"declare","override"),H(Q,Y,"static","abstract");U[Y]=!0}if(W!=null&&W.includes(Y))this.raise(J,Q,{modifier:Y})}}tsIsListTerminator(X){switch(X){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(X,W){let R=[];while(!this.tsIsListTerminator(X))R.push(W());return R}tsParseDelimitedList(X,W,R){return FJf(this.tsParseDelimitedListWorker(X,W,!0,R))}tsParseDelimitedListWorker(X,W,R,J){let U=[],V=-1;for(;;){if(this.tsIsListTerminator(X))break;V=-1;let H=W();if(H==null)return;if(U.push(H),this.eat(12)){V=this.state.lastTokStartLoc.index;continue}if(this.tsIsListTerminator(X))break;if(R)this.expect(12);return}if(J)J.value=V;return U}tsParseBracketedList(X,W,R,J,U){if(!J)if(R)this.expect(0);else this.expect(47);let V=this.tsParseDelimitedList(X,W,U);if(R)this.expect(3);else this.expect(48);return V}tsParseImportType(){let X=this.startNode();if(this.expect(83),this.expect(10),!this.match(134))this.raise(i.UnsupportedImportTypeArgument,this.state.startLoc),X.argument=super.parseExprAtom();else X.argument=this.parseStringLiteral(this.state.value);if(this.eat(12)&&!this.match(11))X.options=super.parseMaybeAssignAllowIn(),this.eat(12);else X.options=null;if(this.expect(11),this.eat(16))X.qualifier=this.tsParseEntityName(3);if(this.match(47))X.typeParameters=this.tsParseTypeArguments();return this.finishNode(X,"TSImportType")}tsParseEntityName(X){let W;if(X&1&&this.match(78))if(X&2)W=this.parseIdentifier(!0);else{let R=this.startNode();this.next(),W=this.finishNode(R,"ThisExpression")}else W=this.parseIdentifier(!!(X&1));while(this.eat(16)){let R=this.startNodeAtNode(W);R.left=W,R.right=this.parseIdentifier(!!(X&1)),W=this.finishNode(R,"TSQualifiedName")}return W}tsParseTypeReference(){let X=this.startNode();if(X.typeName=this.tsParseEntityName(1),!this.hasPrecedingLineBreak()&&this.match(47))X.typeParameters=this.tsParseTypeArguments();return this.finishNode(X,"TSTypeReference")}tsParseThisTypePredicate(X){this.next();let W=this.startNodeAtNode(X);return W.parameterName=X,W.typeAnnotation=this.tsParseTypeAnnotation(!1),W.asserts=!1,this.finishNode(W,"TSTypePredicate")}tsParseThisTypeNode(){let X=this.startNode();return this.next(),this.finishNode(X,"TSThisType")}tsParseTypeQuery(){let X=this.startNode();if(this.expect(87),this.match(83))X.exprName=this.tsParseImportType();else X.exprName=this.tsParseEntityName(3);if(!this.hasPrecedingLineBreak()&&this.match(47))X.typeParameters=this.tsParseTypeArguments();return this.finishNode(X,"TSTypeQuery")}tsParseTypeParameter(X){let W=this.startNode();return X(W),W.name=this.tsParseTypeParameterName(),W.constraint=this.tsEatThenParseType(81),W.default=this.tsEatThenParseType(29),this.finishNode(W,"TSTypeParameter")}tsTryParseTypeParameters(X){if(this.match(47))return this.tsParseTypeParameters(X)}tsParseTypeParameters(X){let W=this.startNode();if(this.match(47)||this.match(143))this.next();else this.unexpected();let R={value:-1};if(W.params=this.tsParseBracketedList("TypeParametersOrArguments",this.tsParseTypeParameter.bind(this,X),!1,!0,R),W.params.length===0)this.raise(i.EmptyTypeParameters,W);if(R.value!==-1)this.addExtra(W,"trailingComma",R.value);return this.finishNode(W,"TSTypeParameterDeclaration")}tsFillSignature(X,W){let R=X===19,J="parameters",U="typeAnnotation";if(W.typeParameters=this.tsTryParseTypeParameters(this.tsParseConstModifier),this.expect(10),W.parameters=this.tsParseBindingListForSignature(),R)W.typeAnnotation=this.tsParseTypeOrTypePredicateAnnotation(X);else if(this.match(X))W.typeAnnotation=this.tsParseTypeOrTypePredicateAnnotation(X)}tsParseBindingListForSignature(){let X=super.parseBindingList(11,41,2);for(let W of X){let{type:R}=W;if(R==="AssignmentPattern"||R==="TSParameterProperty")this.raise(i.UnsupportedSignatureParameterKind,W,{type:R})}return X}tsParseTypeMemberSemicolon(){if(!this.eat(12)&&!this.isLineTerminator())this.expect(13)}tsParseSignatureMember(X,W){return this.tsFillSignature(14,W),this.tsParseTypeMemberSemicolon(),this.finishNode(W,X)}tsIsUnambiguouslyIndexSignature(){if(this.next(),$f(this.state.type))return this.next(),this.match(14);return!1}tsTryParseIndexSignature(X){if(!(this.match(0)&&this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this))))return;this.expect(0);let W=this.parseIdentifier();W.typeAnnotation=this.tsParseTypeAnnotation(),this.resetEndLocation(W),this.expect(3),X.parameters=[W];let R=this.tsTryParseTypeAnnotation();if(R)X.typeAnnotation=R;return this.tsParseTypeMemberSemicolon(),this.finishNode(X,"TSIndexSignature")}tsParsePropertyOrMethodSignature(X,W){if(this.eat(17))X.optional=!0;let R=X;if(this.match(10)||this.match(47)){if(W)this.raise(i.ReadonlyForMethodSignature,X);let J=R;if(J.kind&&this.match(47))this.raise(i.AccessorCannotHaveTypeParameters,this.state.curPosition());this.tsFillSignature(14,J),this.tsParseTypeMemberSemicolon();let U="parameters",V="typeAnnotation";if(J.kind==="get"){if(J[U].length>0){if(this.raise($.BadGetterArity,this.state.curPosition()),this.isThisParam(J[U][0]))this.raise(i.AccessorCannotDeclareThisParameter,this.state.curPosition())}}else if(J.kind==="set"){if(J[U].length!==1)this.raise($.BadSetterArity,this.state.curPosition());else{let H=J[U][0];if(this.isThisParam(H))this.raise(i.AccessorCannotDeclareThisParameter,this.state.curPosition());if(H.type==="Identifier"&&H.optional)this.raise(i.SetAccessorCannotHaveOptionalParameter,this.state.curPosition());if(H.type==="RestElement")this.raise(i.SetAccessorCannotHaveRestParameter,this.state.curPosition())}if(J[V])this.raise(i.SetAccessorCannotHaveReturnType,J[V])}else J.kind="method";return this.finishNode(J,"TSMethodSignature")}else{let J=R;if(W)J.readonly=!0;let U=this.tsTryParseTypeAnnotation();if(U)J.typeAnnotation=U;return this.tsParseTypeMemberSemicolon(),this.finishNode(J,"TSPropertySignature")}}tsParseTypeMember(){let X=this.startNode();if(this.match(10)||this.match(47))return this.tsParseSignatureMember("TSCallSignatureDeclaration",X);if(this.match(77)){let R=this.startNode();if(this.next(),this.match(10)||this.match(47))return this.tsParseSignatureMember("TSConstructSignatureDeclaration",X);else return X.key=this.createIdentifier(R,"new"),this.tsParsePropertyOrMethodSignature(X,!1)}this.tsParseModifiers({allowedModifiers:["readonly"],disallowedModifiers:["declare","abstract","private","protected","public","static","override"]},X);let W=this.tsTryParseIndexSignature(X);if(W)return W;if(super.parsePropertyName(X),!X.computed&&X.key.type==="Identifier"&&(X.key.name==="get"||X.key.name==="set")&&this.tsTokenCanFollowModifier())X.kind=X.key.name,super.parsePropertyName(X);return this.tsParsePropertyOrMethodSignature(X,!!X.readonly)}tsParseTypeLiteral(){let X=this.startNode();return X.members=this.tsParseObjectTypeMembers(),this.finishNode(X,"TSTypeLiteral")}tsParseObjectTypeMembers(){this.expect(5);let X=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.expect(8),X}tsIsStartOfMappedType(){if(this.next(),this.eat(53))return this.isContextual(122);if(this.isContextual(122))this.next();if(!this.match(0))return!1;if(this.next(),!this.tsIsIdentifier())return!1;return this.next(),this.match(58)}tsParseMappedType(){let X=this.startNode();if(this.expect(5),this.match(53))X.readonly=this.state.value,this.next(),this.expectContextual(122);else if(this.eatContextual(122))X.readonly=!0;this.expect(0);{let W=this.startNode();W.name=this.tsParseTypeParameterName(),W.constraint=this.tsExpectThenParseType(58),X.typeParameter=this.finishNode(W,"TSTypeParameter")}if(X.nameType=this.eatContextual(93)?this.tsParseType():null,this.expect(3),this.match(53))X.optional=this.state.value,this.next(),this.expect(17);else if(this.eat(17))X.optional=!0;return X.typeAnnotation=this.tsTryParseType(),this.semicolon(),this.expect(8),this.finishNode(X,"TSMappedType")}tsParseTupleType(){let X=this.startNode();X.elementTypes=this.tsParseBracketedList("TupleElementTypes",this.tsParseTupleElementType.bind(this),!0,!1);let W=!1;return X.elementTypes.forEach((R)=>{let{type:J}=R;if(W&&J!=="TSRestType"&&J!=="TSOptionalType"&&!(J==="TSNamedTupleMember"&&R.optional))this.raise(i.OptionalTypeBeforeRequired,R);W||(W=J==="TSNamedTupleMember"&&R.optional||J==="TSOptionalType")}),this.finishNode(X,"TSTupleType")}tsParseTupleElementType(){let X=this.state.startLoc,W=this.eat(21),{startLoc:R}=this.state,J,U,V,H,Y=HG(this.state.type)?this.lookaheadCharCode():null;if(Y===58)J=!0,V=!1,U=this.parseIdentifier(!0),this.expect(14),H=this.tsParseType();else if(Y===63){V=!0;let F=this.state.value,q=this.tsParseNonArrayType();if(this.lookaheadCharCode()===58)J=!0,U=this.createIdentifier(this.startNodeAt(R),F),this.expect(17),this.expect(14),H=this.tsParseType();else J=!1,H=q,this.expect(17)}else H=this.tsParseType(),V=this.eat(17),J=this.eat(14);if(J){let F;if(U){if(F=this.startNodeAt(R),F.optional=V,F.label=U,F.elementType=H,this.eat(17))F.optional=!0,this.raise(i.TupleOptionalAfterType,this.state.lastTokStartLoc)}else F=this.startNodeAt(R),F.optional=V,this.raise(i.InvalidTupleMemberLabel,H),F.label=H,F.elementType=this.tsParseType();H=this.finishNode(F,"TSNamedTupleMember")}else if(V){let F=this.startNodeAt(R);F.typeAnnotation=H,H=this.finishNode(F,"TSOptionalType")}if(W){let F=this.startNodeAt(X);F.typeAnnotation=H,H=this.finishNode(F,"TSRestType")}return H}tsParseParenthesizedType(){let X=this.startNode();return this.expect(10),X.typeAnnotation=this.tsParseType(),this.expect(11),this.finishNode(X,"TSParenthesizedType")}tsParseFunctionOrConstructorType(X,W){let R=this.startNode();if(X==="TSConstructorType"){if(R.abstract=!!W,W)this.next();this.next()}return this.tsInAllowConditionalTypesContext(()=>this.tsFillSignature(19,R)),this.finishNode(R,X)}tsParseLiteralTypeNode(){let X=this.startNode();switch(this.state.type){case 135:case 136:case 134:case 85:case 86:X.literal=super.parseExprAtom();break;default:this.unexpected()}return this.finishNode(X,"TSLiteralType")}tsParseTemplateLiteralType(){{let X=this.startNode();return X.literal=super.parseTemplate(!1),this.finishNode(X,"TSLiteralType")}}parseTemplateSubstitution(){if(this.state.inType)return this.tsParseType();return super.parseTemplateSubstitution()}tsParseThisTypeOrThisTypePredicate(){let X=this.tsParseThisTypeNode();if(this.isContextual(116)&&!this.hasPrecedingLineBreak())return this.tsParseThisTypePredicate(X);else return X}tsParseNonArrayType(){switch(this.state.type){case 134:case 135:case 136:case 85:case 86:return this.tsParseLiteralTypeNode();case 53:if(this.state.value==="-"){let X=this.startNode(),W=this.lookahead();if(W.type!==135&&W.type!==136)this.unexpected();return X.literal=this.parseMaybeUnary(),this.finishNode(X,"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:X}=this.state;if($f(X)||X===88||X===84){let W=X===88?"TSVoidKeyword":X===84?"TSNullKeyword":$Jf(this.state.value);if(W!==void 0&&this.lookaheadCharCode()!==46){let R=this.startNode();return this.next(),this.finishNode(R,W)}return this.tsParseTypeReference()}}}this.unexpected()}tsParseArrayTypeOrHigher(){let{startLoc:X}=this.state,W=this.tsParseNonArrayType();while(!this.hasPrecedingLineBreak()&&this.eat(0))if(this.match(3)){let R=this.startNodeAt(X);R.elementType=W,this.expect(3),W=this.finishNode(R,"TSArrayType")}else{let R=this.startNodeAt(X);R.objectType=W,R.indexType=this.tsParseType(),this.expect(3),W=this.finishNode(R,"TSIndexedAccessType")}return W}tsParseTypeOperator(){let X=this.startNode(),W=this.state.value;if(this.next(),X.operator=W,X.typeAnnotation=this.tsParseTypeOperatorOrHigher(),W==="readonly")this.tsCheckTypeAnnotationForReadOnly(X);return this.finishNode(X,"TSTypeOperator")}tsCheckTypeAnnotationForReadOnly(X){switch(X.typeAnnotation.type){case"TSTupleType":case"TSArrayType":return;default:this.raise(i.UnexpectedReadonly,X)}}tsParseInferType(){let X=this.startNode();this.expectContextual(115);let W=this.startNode();return W.name=this.tsParseTypeParameterName(),W.constraint=this.tsTryParse(()=>this.tsParseConstraintForInferType()),X.typeParameter=this.finishNode(W,"TSTypeParameter"),this.finishNode(X,"TSInferType")}tsParseConstraintForInferType(){if(this.eat(81)){let X=this.tsInDisallowConditionalTypesContext(()=>this.tsParseType());if(this.state.inDisallowConditionalTypesContext||!this.match(17))return X}}tsParseTypeOperatorOrHigher(){return hRf(this.state.type)&&!this.state.containsEsc?this.tsParseTypeOperator():this.isContextual(115)?this.tsParseInferType():this.tsInAllowConditionalTypesContext(()=>this.tsParseArrayTypeOrHigher())}tsParseUnionOrIntersectionType(X,W,R){let J=this.startNode(),U=this.eat(R),V=[];do V.push(W());while(this.eat(R));if(V.length===1&&!U)return V[0];return J.types=V,this.finishNode(J,X)}tsParseIntersectionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSIntersectionType",this.tsParseTypeOperatorOrHigher.bind(this),45)}tsParseUnionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSUnionType",this.tsParseIntersectionTypeOrHigher.bind(this),43)}tsIsStartOfFunctionType(){if(this.match(47))return!0;return this.match(10)&&this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this))}tsSkipParameterStart(){if($f(this.state.type)||this.match(78))return this.next(),!0;if(this.match(5)){let{errors:X}=this.state,W=X.length;try{return this.parseObjectLike(8,!0),X.length===W}catch(R){return!1}}if(this.match(0)){this.next();let{errors:X}=this.state,W=X.length;try{return super.parseBindingList(3,93,1),X.length===W}catch(R){return!1}}return!1}tsIsUnambiguouslyStartOfFunctionType(){if(this.next(),this.match(11)||this.match(21))return!0;if(this.tsSkipParameterStart()){if(this.match(14)||this.match(12)||this.match(17)||this.match(29))return!0;if(this.match(11)){if(this.next(),this.match(19))return!0}}return!1}tsParseTypeOrTypePredicateAnnotation(X){return this.tsInType(()=>{let W=this.startNode();this.expect(X);let R=this.startNode(),J=!!this.tsTryParse(this.tsParseTypePredicateAsserts.bind(this));if(J&&this.match(78)){let H=this.tsParseThisTypeOrThisTypePredicate();if(H.type==="TSThisType")R.parameterName=H,R.asserts=!0,R.typeAnnotation=null,H=this.finishNode(R,"TSTypePredicate");else this.resetStartLocationFromNode(H,R),H.asserts=!0;return W.typeAnnotation=H,this.finishNode(W,"TSTypeAnnotation")}let U=this.tsIsIdentifier()&&this.tsTryParse(this.tsParseTypePredicatePrefix.bind(this));if(!U){if(!J)return this.tsParseTypeAnnotation(!1,W);return R.parameterName=this.parseIdentifier(),R.asserts=J,R.typeAnnotation=null,W.typeAnnotation=this.finishNode(R,"TSTypePredicate"),this.finishNode(W,"TSTypeAnnotation")}let V=this.tsParseTypeAnnotation(!1);return R.parameterName=U,R.typeAnnotation=V,R.asserts=J,W.typeAnnotation=this.finishNode(R,"TSTypePredicate"),this.finishNode(W,"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 X=this.parseIdentifier();if(this.isContextual(116)&&!this.hasPrecedingLineBreak())return this.next(),X}tsParseTypePredicateAsserts(){if(this.state.type!==109)return!1;let X=this.state.containsEsc;if(this.next(),!$f(this.state.type)&&!this.match(78))return!1;if(X)this.raise($.InvalidEscapedReservedWord,this.state.lastTokStartLoc,{reservedWord:"asserts"});return!0}tsParseTypeAnnotation(X=!0,W=this.startNode()){return this.tsInType(()=>{if(X)this.expect(14);W.typeAnnotation=this.tsParseType()}),this.finishNode(W,"TSTypeAnnotation")}tsParseType(){O9(this.state.inType);let X=this.tsParseNonConditionalType();if(this.state.inDisallowConditionalTypesContext||this.hasPrecedingLineBreak()||!this.eat(81))return X;let W=this.startNodeAtNode(X);return W.checkType=X,W.extendsType=this.tsInDisallowConditionalTypesContext(()=>this.tsParseNonConditionalType()),this.expect(17),W.trueType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.expect(14),W.falseType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.finishNode(W,"TSConditionalType")}isAbstractConstructorSignature(){return this.isContextual(124)&&this.lookahead().type===77}tsParseNonConditionalType(){if(this.tsIsStartOfFunctionType())return this.tsParseFunctionOrConstructorType("TSFunctionType");if(this.match(77))return this.tsParseFunctionOrConstructorType("TSConstructorType");else if(this.isAbstractConstructorSignature())return this.tsParseFunctionOrConstructorType("TSConstructorType",!0);return this.tsParseUnionTypeOrHigher()}tsParseTypeAssertion(){if(this.getPluginOption("typescript","disallowAmbiguousJSXLike"))this.raise(i.ReservedTypeAssertion,this.state.startLoc);let X=this.startNode();return X.typeAnnotation=this.tsInType(()=>{return this.next(),this.match(75)?this.tsParseTypeReference():this.tsParseType()}),this.expect(48),X.expression=this.parseMaybeUnary(),this.finishNode(X,"TSTypeAssertion")}tsParseHeritageClause(X){let W=this.state.startLoc,R=this.tsParseDelimitedList("HeritageClauseElement",()=>{{let J=this.startNode();if(J.expression=this.tsParseEntityName(3),this.match(47))J.typeParameters=this.tsParseTypeArguments();return this.finishNode(J,"TSExpressionWithTypeArguments")}});if(!R.length)this.raise(i.EmptyHeritageClauseType,W,{token:X});return R}tsParseInterfaceDeclaration(X,W={}){if(this.hasFollowingLineBreak())return null;if(this.expectContextual(129),W.declare)X.declare=!0;if($f(this.state.type))X.id=this.parseIdentifier(),this.checkIdentifier(X.id,130);else X.id=null,this.raise(i.MissingInterfaceName,this.state.startLoc);if(X.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers),this.eat(81))X.extends=this.tsParseHeritageClause("extends");let R=this.startNode();return R.body=this.tsInType(this.tsParseObjectTypeMembers.bind(this)),X.body=this.finishNode(R,"TSInterfaceBody"),this.finishNode(X,"TSInterfaceDeclaration")}tsParseTypeAliasDeclaration(X){return X.id=this.parseIdentifier(),this.checkIdentifier(X.id,2),X.typeAnnotation=this.tsInType(()=>{if(X.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutModifiers),this.expect(29),this.isContextual(114)&&this.lookahead().type!==16){let W=this.startNode();return this.next(),this.finishNode(W,"TSIntrinsicKeyword")}return this.tsParseType()}),this.semicolon(),this.finishNode(X,"TSTypeAliasDeclaration")}tsInTopLevelContext(X){if(this.curContext()!==Ff.brace){let W=this.state.context;this.state.context=[W[0]];try{return X()}finally{this.state.context=W}}else return X()}tsInType(X){let W=this.state.inType;this.state.inType=!0;try{return X()}finally{this.state.inType=W}}tsInDisallowConditionalTypesContext(X){let W=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!0;try{return X()}finally{this.state.inDisallowConditionalTypesContext=W}}tsInAllowConditionalTypesContext(X){let W=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!1;try{return X()}finally{this.state.inDisallowConditionalTypesContext=W}}tsEatThenParseType(X){if(this.match(X))return this.tsNextThenParseType()}tsExpectThenParseType(X){return this.tsInType(()=>{return this.expect(X),this.tsParseType()})}tsNextThenParseType(){return this.tsInType(()=>{return this.next(),this.tsParseType()})}tsParseEnumMember(){let X=this.startNode();if(X.id=this.match(134)?super.parseStringLiteral(this.state.value):this.parseIdentifier(!0),this.eat(29))X.initializer=super.parseMaybeAssignAllowIn();return this.finishNode(X,"TSEnumMember")}tsParseEnumDeclaration(X,W={}){if(W.const)X.const=!0;if(W.declare)X.declare=!0;return this.expectContextual(126),X.id=this.parseIdentifier(),this.checkIdentifier(X.id,X.const?8971:8459),this.expect(5),X.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(8),this.finishNode(X,"TSEnumDeclaration")}tsParseEnumBody(){let X=this.startNode();return this.expect(5),X.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(8),this.finishNode(X,"TSEnumBody")}tsParseModuleBlock(){let X=this.startNode();return this.scope.enter(0),this.expect(5),super.parseBlockOrModuleBlockBody(X.body=[],void 0,!0,8),this.scope.exit(),this.finishNode(X,"TSModuleBlock")}tsParseModuleOrNamespaceDeclaration(X,W=!1){if(X.id=this.parseIdentifier(),!W)this.checkIdentifier(X.id,1024);if(this.eat(16)){let R=this.startNode();this.tsParseModuleOrNamespaceDeclaration(R,!0),X.body=R}else this.scope.enter(256),this.prodParam.enter(0),X.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit();return this.finishNode(X,"TSModuleDeclaration")}tsParseAmbientExternalModuleDeclaration(X){if(this.isContextual(112))X.kind="global",X.global=!0,X.id=this.parseIdentifier();else if(this.match(134))X.kind="module",X.id=super.parseStringLiteral(this.state.value);else this.unexpected();if(this.match(5))this.scope.enter(256),this.prodParam.enter(0),X.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit();else this.semicolon();return this.finishNode(X,"TSModuleDeclaration")}tsParseImportEqualsDeclaration(X,W,R){X.isExport=R||!1,X.id=W||this.parseIdentifier(),this.checkIdentifier(X.id,4096),this.expect(29);let J=this.tsParseModuleReference();if(X.importKind==="type"&&J.type!=="TSExternalModuleReference")this.raise(i.ImportAliasHasImportType,J);return X.moduleReference=J,this.semicolon(),this.finishNode(X,"TSImportEqualsDeclaration")}tsIsExternalModuleReference(){return this.isContextual(119)&&this.lookaheadCharCode()===40}tsParseModuleReference(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(0)}tsParseExternalModuleReference(){let X=this.startNode();if(this.expectContextual(119),this.expect(10),!this.match(134))this.unexpected();return X.expression=super.parseExprAtom(),this.expect(11),this.sawUnambiguousESM=!0,this.finishNode(X,"TSExternalModuleReference")}tsLookAhead(X){let W=this.state.clone(),R=X();return this.state=W,R}tsTryParseAndCatch(X){let W=this.tryParse((R)=>X()||R());if(W.aborted||!W.node)return;if(W.error)this.state=W.failState;return W.node}tsTryParse(X){let W=this.state.clone(),R=X();if(R!==void 0&&R!==!1)return R;this.state=W}tsTryParseDeclare(X){if(this.isLineTerminator())return;let W=this.state.type,R;if(this.isContextual(100))W=74,R="let";return this.tsInAmbientContext(()=>{switch(W){case 68:return X.declare=!0,super.parseFunctionStatement(X,!1,!1);case 80:return X.declare=!0,this.parseClass(X,!0,!1);case 126:return this.tsParseEnumDeclaration(X,{declare:!0});case 112:return this.tsParseAmbientExternalModuleDeclaration(X);case 75:case 74:if(!this.match(75)||!this.isLookaheadContextual("enum"))return X.declare=!0,this.parseVarStatement(X,R||this.state.value,!0);return this.expect(75),this.tsParseEnumDeclaration(X,{const:!0,declare:!0});case 129:{let J=this.tsParseInterfaceDeclaration(X,{declare:!0});if(J)return J}default:if($f(W))return this.tsParseDeclaration(X,this.state.value,!0,null)}})}tsTryParseExportDeclaration(){return this.tsParseDeclaration(this.startNode(),this.state.value,!0,null)}tsParseExpressionStatement(X,W,R){switch(W.name){case"declare":{let J=this.tsTryParseDeclare(X);if(J)J.declare=!0;return J}case"global":if(this.match(5)){this.scope.enter(256),this.prodParam.enter(0);let J=X;return J.kind="global",X.global=!0,J.id=W,J.body=this.tsParseModuleBlock(),this.scope.exit(),this.prodParam.exit(),this.finishNode(J,"TSModuleDeclaration")}break;default:return this.tsParseDeclaration(X,W.name,!1,R)}}tsParseDeclaration(X,W,R,J){switch(W){case"abstract":if(this.tsCheckLineTerminator(R)&&(this.match(80)||$f(this.state.type)))return this.tsParseAbstractDeclaration(X,J);break;case"module":if(this.tsCheckLineTerminator(R)){if(this.match(134))return this.tsParseAmbientExternalModuleDeclaration(X);else if($f(this.state.type))return X.kind="module",this.tsParseModuleOrNamespaceDeclaration(X)}break;case"namespace":if(this.tsCheckLineTerminator(R)&&$f(this.state.type))return X.kind="namespace",this.tsParseModuleOrNamespaceDeclaration(X);break;case"type":if(this.tsCheckLineTerminator(R)&&$f(this.state.type))return this.tsParseTypeAliasDeclaration(X);break}}tsCheckLineTerminator(X){if(X){if(this.hasFollowingLineBreak())return!1;return this.next(),!0}return!this.isLineTerminator()}tsTryParseGenericAsyncArrowFunction(X){if(!this.match(47))return;let W=this.state.maybeInArrowParameters;this.state.maybeInArrowParameters=!0;let R=this.tsTryParseAndCatch(()=>{let J=this.startNodeAt(X);return J.typeParameters=this.tsParseTypeParameters(this.tsParseConstModifier),super.parseFunctionParams(J),J.returnType=this.tsTryParseTypeOrTypePredicateAnnotation(),this.expect(19),J});if(this.state.maybeInArrowParameters=W,!R)return;return super.parseArrowExpression(R,null,!0)}tsParseTypeArgumentsInExpression(){if(this.reScan_lt()!==47)return;return this.tsParseTypeArguments()}tsParseTypeArguments(){let X=this.startNode();if(X.params=this.tsInType(()=>this.tsInTopLevelContext(()=>{return this.expect(47),this.tsParseDelimitedList("TypeParametersOrArguments",this.tsParseType.bind(this))})),X.params.length===0)this.raise(i.EmptyTypeArguments,X);else if(!this.state.inType&&this.curContext()===Ff.brace)this.reScan_lt_gt();return this.expect(48),this.finishNode(X,"TSTypeParameterInstantiation")}tsIsDeclarationStart(){return yRf(this.state.type)}isExportDefaultSpecifier(){if(this.tsIsDeclarationStart())return!1;return super.isExportDefaultSpecifier()}parseBindingElement(X,W){let R=this.state.startLoc,J={};this.tsParseModifiers({allowedModifiers:["public","private","protected","override","readonly"]},J);let{accessibility:U,override:V,readonly:H}=J;if(!(X&4)&&(U||H||V))this.raise(i.UnexpectedParameterModifier,R);let Q=this.parseMaybeDefault();if(X&2)this.parseFunctionParamType(Q);let Y=this.parseMaybeDefault(Q.loc.start,Q);if(U||H||V){let F=this.startNodeAt(R);if(W.length)F.decorators=W;if(U)F.accessibility=U;if(H)F.readonly=H;if(V)F.override=V;if(Y.type!=="Identifier"&&Y.type!=="AssignmentPattern")this.raise(i.UnsupportedParameterPropertyKind,F);return F.parameter=Y,this.finishNode(F,"TSParameterProperty")}if(W.length)Q.decorators=W;return Y}isSimpleParameter(X){return X.type==="TSParameterProperty"&&super.isSimpleParameter(X.parameter)||super.isSimpleParameter(X)}tsDisallowOptionalPattern(X){for(let W of X.params)if(W.type!=="Identifier"&&W.optional&&!this.state.isAmbientContext)this.raise(i.PatternIsOptional,W)}setArrowFunctionParameters(X,W,R){super.setArrowFunctionParameters(X,W,R),this.tsDisallowOptionalPattern(X)}parseFunctionBodyAndFinish(X,W,R=!1){if(this.match(14))X.returnType=this.tsParseTypeOrTypePredicateAnnotation(14);let J=W==="FunctionDeclaration"?"TSDeclareFunction":W==="ClassMethod"||W==="ClassPrivateMethod"?"TSDeclareMethod":void 0;if(J&&!this.match(5)&&this.isLineTerminator())return this.finishNode(X,J);if(J==="TSDeclareFunction"&&this.state.isAmbientContext){if(this.raise(i.DeclareFunctionHasImplementation,X),X.declare)return super.parseFunctionBodyAndFinish(X,J,R)}return this.tsDisallowOptionalPattern(X),super.parseFunctionBodyAndFinish(X,W,R)}registerFunctionStatementId(X){if(!X.body&&X.id)this.checkIdentifier(X.id,1024);else super.registerFunctionStatementId(X)}tsCheckForInvalidTypeCasts(X){X.forEach((W)=>{if((W==null?void 0:W.type)==="TSTypeCastExpression")this.raise(i.UnexpectedTypeAnnotation,W.typeAnnotation)})}toReferencedList(X,W){return this.tsCheckForInvalidTypeCasts(X),X}parseArrayLike(X,W,R,J){let U=super.parseArrayLike(X,W,R,J);if(U.type==="ArrayExpression")this.tsCheckForInvalidTypeCasts(U.elements);return U}parseSubscript(X,W,R,J){if(!this.hasPrecedingLineBreak()&&this.match(35)){this.state.canStartJSXElement=!1,this.next();let V=this.startNodeAt(W);return V.expression=X,this.finishNode(V,"TSNonNullExpression")}let U=!1;if(this.match(18)&&this.lookaheadCharCode()===60){if(R)return J.stop=!0,X;J.optionalChainMember=U=!0,this.next()}if(this.match(47)||this.match(51)){let V,H=this.tsTryParseAndCatch(()=>{if(!R&&this.atPossibleAsyncArrow(X)){let q=this.tsTryParseGenericAsyncArrowFunction(W);if(q)return q}let Q=this.tsParseTypeArgumentsInExpression();if(!Q)return;if(U&&!this.match(10)){V=this.state.curPosition();return}if(UW(this.state.type)){let q=super.parseTaggedTemplateExpression(X,W,J);return q.typeParameters=Q,q}if(!R&&this.eat(10)){let q=this.startNodeAt(W);if(q.callee=X,q.arguments=this.parseCallExpressionArguments(11),this.tsCheckForInvalidTypeCasts(q.arguments),q.typeParameters=Q,J.optionalChainMember)q.optional=U;return this.finishCallExpression(q,J.optionalChainMember)}let Y=this.state.type;if(Y===48||Y===52||Y!==10&&AR(Y)&&!this.hasPrecedingLineBreak())return;let F=this.startNodeAt(W);return F.expression=X,F.typeParameters=Q,this.finishNode(F,"TSInstantiationExpression")});if(V)this.unexpected(V,10);if(H){if(H.type==="TSInstantiationExpression"&&(this.match(16)||this.match(18)&&this.lookaheadCharCode()!==40))this.raise(i.InvalidPropertyAccessAfterInstantiationExpression,this.state.startLoc);return H}}return super.parseSubscript(X,W,R,J)}parseNewCallee(X){var W;super.parseNewCallee(X);let{callee:R}=X;if(R.type==="TSInstantiationExpression"&&!((W=R.extra)!=null&&W.parenthesized))X.typeParameters=R.typeParameters,X.callee=R.expression}parseExprOp(X,W,R){let J;if(RW(58)>R&&!this.hasPrecedingLineBreak()&&(this.isContextual(93)||(J=this.isContextual(120)))){let U=this.startNodeAt(W);return U.expression=X,U.typeAnnotation=this.tsInType(()=>{if(this.next(),this.match(75)){if(J)this.raise($.UnexpectedKeyword,this.state.startLoc,{keyword:"const"});return this.tsParseTypeReference()}return this.tsParseType()}),this.finishNode(U,J?"TSSatisfiesExpression":"TSAsExpression"),this.reScan_lt_gt(),this.parseExprOp(U,W,R)}return super.parseExprOp(X,W,R)}checkReservedWord(X,W,R,J){if(!this.state.isAmbientContext)super.checkReservedWord(X,W,R,J)}checkImportReflection(X){if(super.checkImportReflection(X),X.module&&X.importKind!=="value")this.raise(i.ImportReflectionHasImportType,X.specifiers[0].loc.start)}checkDuplicateExports(){}isPotentialImportPhase(X){if(super.isPotentialImportPhase(X))return!0;if(this.isContextual(130)){let W=this.lookaheadCharCode();return X?W===123||W===42:W!==61}return!X&&this.isContextual(87)}applyImportPhase(X,W,R,J){if(super.applyImportPhase(X,W,R,J),W)X.exportKind=R==="type"?"type":"value";else X.importKind=R==="type"||R==="typeof"?R:"value"}parseImport(X){if(this.match(134))return X.importKind="value",super.parseImport(X);let W;if($f(this.state.type)&&this.lookaheadCharCode()===61)return X.importKind="value",this.tsParseImportEqualsDeclaration(X);else if(this.isContextual(130)){let R=this.parseMaybeImportPhase(X,!1);if(this.lookaheadCharCode()===61)return this.tsParseImportEqualsDeclaration(X,R);else W=super.parseImportSpecifiersAndAfter(X,R)}else W=super.parseImport(X);if(W.importKind==="type"&&W.specifiers.length>1&&W.specifiers[0].type==="ImportDefaultSpecifier")this.raise(i.TypeImportCannotSpecifyDefaultAndNamed,W);return W}parseExport(X,W){if(this.match(83)){let R=X;this.next();let J=null;if(this.isContextual(130)&&this.isPotentialImportPhase(!1))J=this.parseMaybeImportPhase(R,!1);else R.importKind="value";return this.tsParseImportEqualsDeclaration(R,J,!0)}else if(this.eat(29)){let R=X;return R.expression=super.parseExpression(),this.semicolon(),this.sawUnambiguousESM=!0,this.finishNode(R,"TSExportAssignment")}else if(this.eatContextual(93)){let R=X;return this.expectContextual(128),R.id=this.parseIdentifier(),this.semicolon(),this.finishNode(R,"TSNamespaceExportDeclaration")}else return super.parseExport(X,W)}isAbstractClass(){return this.isContextual(124)&&this.lookahead().type===80}parseExportDefaultExpression(){if(this.isAbstractClass()){let X=this.startNode();return this.next(),X.abstract=!0,this.parseClass(X,!0,!0)}if(this.match(129)){let X=this.tsParseInterfaceDeclaration(this.startNode());if(X)return X}return super.parseExportDefaultExpression()}parseVarStatement(X,W,R=!1){let{isAmbientContext:J}=this.state,U=super.parseVarStatement(X,W,R||J);if(!J)return U;for(let{id:V,init:H}of U.declarations){if(!H)continue;if(W!=="const"||!!V.typeAnnotation)this.raise(i.InitializerNotAllowedInAmbientContext,H);else if(!OJf(H,this.hasPlugin("estree")))this.raise(i.ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference,H)}return U}parseStatementContent(X,W){if(this.match(75)&&this.isLookaheadContextual("enum")){let R=this.startNode();return this.expect(75),this.tsParseEnumDeclaration(R,{const:!0})}if(this.isContextual(126))return this.tsParseEnumDeclaration(this.startNode());if(this.isContextual(129)){let R=this.tsParseInterfaceDeclaration(this.startNode());if(R)return R}return super.parseStatementContent(X,W)}parseAccessModifier(){return this.tsParseModifier(["public","protected","private"])}tsHasSomeModifiers(X,W){return W.some((R)=>{if(j9(R))return X.accessibility===R;return!!X[R]})}tsIsStartOfStaticBlocks(){return this.isContextual(106)&&this.lookaheadCharCode()===123}parseClassMember(X,W,R){let J=["declare","private","public","protected","override","abstract","readonly","static"];this.tsParseModifiers({allowedModifiers:J,disallowedModifiers:["in","out"],stopOnStartOfClassStaticBlock:!0,errorTemplate:i.InvalidModifierOnTypeParameterPositions},W);let U=()=>{if(this.tsIsStartOfStaticBlocks()){if(this.next(),this.next(),this.tsHasSomeModifiers(W,J))this.raise(i.StaticBlockCannotHaveModifier,this.state.curPosition());super.parseClassStaticBlock(X,W)}else this.parseClassMemberWithIsStatic(X,W,R,!!W.static)};if(W.declare)this.tsInAmbientContext(U);else U()}parseClassMemberWithIsStatic(X,W,R,J){let U=this.tsTryParseIndexSignature(W);if(U){if(X.body.push(U),W.abstract)this.raise(i.IndexSignatureHasAbstract,W);if(W.accessibility)this.raise(i.IndexSignatureHasAccessibility,W,{modifier:W.accessibility});if(W.declare)this.raise(i.IndexSignatureHasDeclare,W);if(W.override)this.raise(i.IndexSignatureHasOverride,W);return}if(!this.state.inAbstractClass&&W.abstract)this.raise(i.NonAbstractClassHasAbstractMethod,W);if(W.override){if(!R.hadSuperClass)this.raise(i.OverrideNotInSubClass,W)}super.parseClassMemberWithIsStatic(X,W,R,J)}parsePostMemberNameModifiers(X){if(this.eat(17))X.optional=!0;if(X.readonly&&this.match(10))this.raise(i.ClassMethodHasReadonly,X);if(X.declare&&this.match(10))this.raise(i.ClassMethodHasDeclare,X)}parseExpressionStatement(X,W,R){return(W.type==="Identifier"?this.tsParseExpressionStatement(X,W,R):void 0)||super.parseExpressionStatement(X,W,R)}shouldParseExportDeclaration(){if(this.tsIsDeclarationStart())return!0;return super.shouldParseExportDeclaration()}parseConditional(X,W,R){if(!this.match(17))return X;if(this.state.maybeInArrowParameters){let J=this.lookaheadCharCode();if(J===44||J===61||J===58||J===41)return this.setOptionalParametersError(R),X}return super.parseConditional(X,W,R)}parseParenItem(X,W){let R=super.parseParenItem(X,W);if(this.eat(17))R.optional=!0,this.resetEndLocation(X);if(this.match(14)){let J=this.startNodeAt(W);return J.expression=X,J.typeAnnotation=this.tsParseTypeAnnotation(),this.finishNode(J,"TSTypeCastExpression")}return X}parseExportDeclaration(X){if(!this.state.isAmbientContext&&this.isContextual(125))return this.tsInAmbientContext(()=>this.parseExportDeclaration(X));let W=this.state.startLoc,R=this.eatContextual(125);if(R&&(this.isContextual(125)||!this.shouldParseExportDeclaration()))throw this.raise(i.ExpectedAmbientAfterExportDeclare,this.state.startLoc);let U=$f(this.state.type)&&this.tsTryParseExportDeclaration()||super.parseExportDeclaration(X);if(!U)return null;if(U.type==="TSInterfaceDeclaration"||U.type==="TSTypeAliasDeclaration"||R)X.exportKind="type";if(R&&U.type!=="TSImportEqualsDeclaration")this.resetStartLocation(U,W),U.declare=!0;return U}parseClassId(X,W,R,J){if((!W||R)&&this.isContextual(113))return;super.parseClassId(X,W,R,X.declare?1024:8331);let U=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers);if(U)X.typeParameters=U}parseClassPropertyAnnotation(X){if(!X.optional){if(this.eat(35))X.definite=!0;else if(this.eat(17))X.optional=!0}let W=this.tsTryParseTypeAnnotation();if(W)X.typeAnnotation=W}parseClassProperty(X){if(this.parseClassPropertyAnnotation(X),this.state.isAmbientContext&&!(X.readonly&&!X.typeAnnotation)&&this.match(29))this.raise(i.DeclareClassFieldHasInitializer,this.state.startLoc);if(X.abstract&&this.match(29)){let{key:W}=X;this.raise(i.AbstractPropertyHasInitializer,this.state.startLoc,{propertyName:W.type==="Identifier"&&!X.computed?W.name:`[${this.input.slice(this.offsetToSourcePos(W.start),this.offsetToSourcePos(W.end))}]`})}return super.parseClassProperty(X)}parseClassPrivateProperty(X){if(X.abstract)this.raise(i.PrivateElementHasAbstract,X);if(X.accessibility)this.raise(i.PrivateElementHasAccessibility,X,{modifier:X.accessibility});return this.parseClassPropertyAnnotation(X),super.parseClassPrivateProperty(X)}parseClassAccessorProperty(X){if(this.parseClassPropertyAnnotation(X),X.optional)this.raise(i.AccessorCannotBeOptional,X);return super.parseClassAccessorProperty(X)}pushClassMethod(X,W,R,J,U,V){let H=this.tsTryParseTypeParameters(this.tsParseConstModifier);if(H&&U)this.raise(i.ConstructorHasTypeParameters,H);let{declare:Q=!1,kind:Y}=W;if(Q&&(Y==="get"||Y==="set"))this.raise(i.DeclareAccessor,W,{kind:Y});if(H)W.typeParameters=H;super.pushClassMethod(X,W,R,J,U,V)}pushClassPrivateMethod(X,W,R,J){let U=this.tsTryParseTypeParameters(this.tsParseConstModifier);if(U)W.typeParameters=U;super.pushClassPrivateMethod(X,W,R,J)}declareClassPrivateMethodInScope(X,W){if(X.type==="TSDeclareMethod")return;if(X.type==="MethodDefinition"&&!hasOwnProperty.call(X.value,"body"))return;super.declareClassPrivateMethodInScope(X,W)}parseClassSuper(X){if(super.parseClassSuper(X),X.superClass&&(this.match(47)||this.match(51)))X.superTypeParameters=this.tsParseTypeArgumentsInExpression();if(this.eatContextual(113))X.implements=this.tsParseHeritageClause("implements")}parseObjPropValue(X,W,R,J,U,V,H){let Q=this.tsTryParseTypeParameters(this.tsParseConstModifier);if(Q)X.typeParameters=Q;return super.parseObjPropValue(X,W,R,J,U,V,H)}parseFunctionParams(X,W){let R=this.tsTryParseTypeParameters(this.tsParseConstModifier);if(R)X.typeParameters=R;super.parseFunctionParams(X,W)}parseVarId(X,W){if(super.parseVarId(X,W),X.id.type==="Identifier"&&!this.hasPrecedingLineBreak()&&this.eat(35))X.definite=!0;let R=this.tsTryParseTypeAnnotation();if(R)X.id.typeAnnotation=R,this.resetEndLocation(X.id)}parseAsyncArrowFromCallExpression(X,W){if(this.match(14))X.returnType=this.tsParseTypeAnnotation();return super.parseAsyncArrowFromCallExpression(X,W)}parseMaybeAssign(X,W){var R,J,U,V,H;let Q,Y,F;if(this.hasPlugin("jsx")&&(this.match(143)||this.match(47))){if(Q=this.state.clone(),Y=this.tryParse(()=>super.parseMaybeAssign(X,W),Q),!Y.error)return Y.node;let{context:j}=this.state,b=j[j.length-1];if(b===Ff.j_oTag||b===Ff.j_expr)j.pop()}if(!((R=Y)!=null&&R.error)&&!this.match(47))return super.parseMaybeAssign(X,W);if(!Q||Q===this.state)Q=this.state.clone();let q,A=this.tryParse((j)=>{var b,I;q=this.tsParseTypeParameters(this.tsParseConstModifier);let L=super.parseMaybeAssign(X,W);if(L.type!=="ArrowFunctionExpression"||(b=L.extra)!=null&&b.parenthesized)j();if(((I=q)==null?void 0:I.params.length)!==0)this.resetStartLocationFromNode(L,q);return L.typeParameters=q,L},Q);if(!A.error&&!A.aborted){if(q)this.reportReservedArrowTypeParam(q);return A.node}if(!Y){if(O9(!this.hasPlugin("jsx")),F=this.tryParse(()=>super.parseMaybeAssign(X,W),Q),!F.error)return F.node}if((J=Y)!=null&&J.node)return this.state=Y.failState,Y.node;if(A.node){if(this.state=A.failState,q)this.reportReservedArrowTypeParam(q);return A.node}if((U=F)!=null&&U.node)return this.state=F.failState,F.node;throw((V=Y)==null?void 0:V.error)||A.error||((H=F)==null?void 0:H.error)}reportReservedArrowTypeParam(X){var W;if(X.params.length===1&&!X.params[0].constraint&&!((W=X.extra)!=null&&W.trailingComma)&&this.getPluginOption("typescript","disallowAmbiguousJSXLike"))this.raise(i.ReservedArrowTypeParam,X)}parseMaybeUnary(X,W){if(!this.hasPlugin("jsx")&&this.match(47))return this.tsParseTypeAssertion();return super.parseMaybeUnary(X,W)}parseArrow(X){if(this.match(14)){let W=this.tryParse((R)=>{let J=this.tsParseTypeOrTypePredicateAnnotation(14);if(this.canInsertSemicolon()||!this.match(19))R();return J});if(W.aborted)return;if(!W.thrown){if(W.error)this.state=W.failState;X.returnType=W.node}}return super.parseArrow(X)}parseFunctionParamType(X){if(this.eat(17))X.optional=!0;let W=this.tsTryParseTypeAnnotation();if(W)X.typeAnnotation=W;return this.resetEndLocation(X),X}isAssignable(X,W){switch(X.type){case"TSTypeCastExpression":return this.isAssignable(X.expression,W);case"TSParameterProperty":return!0;default:return super.isAssignable(X,W)}}toAssignable(X,W=!1){switch(X.type){case"ParenthesizedExpression":this.toAssignableParenthesizedExpression(X,W);break;case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":if(W)this.expressionScope.recordArrowParameterBindingError(i.UnexpectedTypeCastInParameter,X);else this.raise(i.UnexpectedTypeCastInParameter,X);this.toAssignable(X.expression,W);break;case"AssignmentExpression":if(!W&&X.left.type==="TSTypeCastExpression")X.left=this.typeCastToParameter(X.left);default:super.toAssignable(X,W)}}toAssignableParenthesizedExpression(X,W){switch(X.expression.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":case"ParenthesizedExpression":this.toAssignable(X.expression,W);break;default:super.toAssignable(X,W)}}checkToRestConversion(X,W){switch(X.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":this.checkToRestConversion(X.expression,!1);break;default:super.checkToRestConversion(X,W)}}isValidLVal(X,W,R){switch(X){case"TSTypeCastExpression":return!0;case"TSParameterProperty":return"parameter";case"TSNonNullExpression":return"expression";case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":return(R!==64||!W)&&["expression",!0];default:return super.isValidLVal(X,W,R)}}parseBindingAtom(){if(this.state.type===78)return this.parseIdentifier(!0);return super.parseBindingAtom()}parseMaybeDecoratorArguments(X,W){if(this.match(47)||this.match(51)){let R=this.tsParseTypeArgumentsInExpression();if(this.match(10)){let J=super.parseMaybeDecoratorArguments(X,W);return J.typeParameters=R,J}this.unexpected(null,10)}return super.parseMaybeDecoratorArguments(X,W)}checkCommaAfterRest(X){if(this.state.isAmbientContext&&this.match(12)&&this.lookaheadCharCode()===X)return this.next(),!1;return super.checkCommaAfterRest(X)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(35)||this.match(14)||super.isClassProperty()}parseMaybeDefault(X,W){let R=super.parseMaybeDefault(X,W);if(R.type==="AssignmentPattern"&&R.typeAnnotation&&R.right.start<R.typeAnnotation.start)this.raise(i.TypeAnnotationAfterAssign,R.typeAnnotation);return R}getTokenFromCode(X){if(this.state.inType){if(X===62){this.finishOp(48,1);return}if(X===60){this.finishOp(47,1);return}}super.getTokenFromCode(X)}reScan_lt_gt(){let{type:X}=this.state;if(X===47)this.state.pos-=1,this.readToken_lt();else if(X===48)this.state.pos-=1,this.readToken_gt()}reScan_lt(){let{type:X}=this.state;if(X===51)return this.state.pos-=2,this.finishOp(47,1),47;return X}toAssignableListItem(X,W,R){let J=X[W];if(J.type==="TSTypeCastExpression")X[W]=this.typeCastToParameter(J);super.toAssignableListItem(X,W,R)}typeCastToParameter(X){return X.expression.typeAnnotation=X.typeAnnotation,this.resetEndLocation(X.expression,X.typeAnnotation.loc.end),X.expression}shouldParseArrow(X){if(this.match(14))return X.every((W)=>this.isAssignable(W,!0));return super.shouldParseArrow(X)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}canHaveLeadingDecorator(){return super.canHaveLeadingDecorator()||this.isAbstractClass()}jsxParseOpeningElementAfterName(X){if(this.match(47)||this.match(51)){let W=this.tsTryParseAndCatch(()=>this.tsParseTypeArgumentsInExpression());if(W)X.typeParameters=W}return super.jsxParseOpeningElementAfterName(X)}getGetterSetterExpectedParamCount(X){let W=super.getGetterSetterExpectedParamCount(X),J=this.getObjectOrClassMethodParams(X)[0];return J&&this.isThisParam(J)?W+1:W}parseCatchClauseParam(){let X=super.parseCatchClauseParam(),W=this.tsTryParseTypeAnnotation();if(W)X.typeAnnotation=W,this.resetEndLocation(X);return X}tsInAmbientContext(X){let{isAmbientContext:W,strict:R}=this.state;this.state.isAmbientContext=!0,this.state.strict=!1;try{return X()}finally{this.state.isAmbientContext=W,this.state.strict=R}}parseClass(X,W,R){let J=this.state.inAbstractClass;this.state.inAbstractClass=!!X.abstract;try{return super.parseClass(X,W,R)}finally{this.state.inAbstractClass=J}}tsParseAbstractDeclaration(X,W){if(this.match(80))return X.abstract=!0,this.maybeTakeDecorators(W,this.parseClass(X,!0,!1));else if(this.isContextual(129)){if(!this.hasFollowingLineBreak())return X.abstract=!0,this.raise(i.NonClassMethodPropertyHasAbstractModifer,X),this.tsParseInterfaceDeclaration(X)}else this.unexpected(null,80)}parseMethod(X,W,R,J,U,V,H){let Q=super.parseMethod(X,W,R,J,U,V,H);if(Q.abstract){if((this.hasPlugin("estree")?Q.value:Q).body){let{key:q}=Q;this.raise(i.AbstractMethodHasImplementation,Q,{methodName:q.type==="Identifier"&&!Q.computed?q.name:`[${this.input.slice(this.offsetToSourcePos(q.start),this.offsetToSourcePos(q.end))}]`})}}return Q}tsParseTypeParameterName(){return this.parseIdentifier().name}shouldParseAsAmbientContext(){return!!this.getPluginOption("typescript","dts")}parse(){if(this.shouldParseAsAmbientContext())this.state.isAmbientContext=!0;return super.parse()}getExpression(){if(this.shouldParseAsAmbientContext())this.state.isAmbientContext=!0;return super.getExpression()}parseExportSpecifier(X,W,R,J){if(!W&&J)return this.parseTypeOnlyImportExportSpecifier(X,!1,R),this.finishNode(X,"ExportSpecifier");return X.exportKind="value",super.parseExportSpecifier(X,W,R,J)}parseImportSpecifier(X,W,R,J,U){if(!W&&J)return this.parseTypeOnlyImportExportSpecifier(X,!0,R),this.finishNode(X,"ImportSpecifier");return X.importKind="value",super.parseImportSpecifier(X,W,R,J,R?4098:4096)}parseTypeOnlyImportExportSpecifier(X,W,R){let J=W?"imported":"local",U=W?"local":"exported",V=X[J],H,Q=!1,Y=!0,F=V.loc.start;if(this.isContextual(93)){let A=this.parseIdentifier();if(this.isContextual(93)){let j=this.parseIdentifier();if(HG(this.state.type))Q=!0,V=A,H=W?this.parseIdentifier():this.parseModuleExportName(),Y=!1;else H=j,Y=!1}else if(HG(this.state.type))Y=!1,H=W?this.parseIdentifier():this.parseModuleExportName();else Q=!0,V=A}else if(HG(this.state.type))if(Q=!0,W){if(V=this.parseIdentifier(!0),!this.isContextual(93))this.checkReservedWord(V.name,V.loc.start,!0,!0)}else V=this.parseModuleExportName();if(Q&&R)this.raise(W?i.TypeModifierIsUsedInTypeImports:i.TypeModifierIsUsedInTypeExports,F);X[J]=V,X[U]=H;let q=W?"importKind":"exportKind";if(X[q]=Q?"type":"value",Y&&this.eatContextual(93))X[U]=W?this.parseIdentifier():this.parseModuleExportName();if(!X[U])X[U]=LG(X[J]);if(W)this.checkIdentifier(X[U],Q?4098:4096)}};function AJf(f){if(f.type!=="MemberExpression")return!1;let{computed:G,property:X}=f;if(G&&X.type!=="StringLiteral"&&(X.type!=="TemplateLiteral"||X.expressions.length>0))return!1;return G8(f.object)}function OJf(f,G){var X;let{type:W}=f;if((X=f.extra)!=null&&X.parenthesized)return!1;if(G){if(W==="Literal"){let{value:R}=f;if(typeof R==="string"||typeof R==="boolean")return!0}}else if(W==="StringLiteral"||W==="BooleanLiteral")return!0;if(f8(f,G)||jJf(f,G))return!0;if(W==="TemplateLiteral"&&f.expressions.length===0)return!0;if(AJf(f))return!0;return!1}function f8(f,G){if(G)return f.type==="Literal"&&(typeof f.value==="number"||("bigint"in f));return f.type==="NumericLiteral"||f.type==="BigIntLiteral"}function jJf(f,G){if(f.type==="UnaryExpression"){let{operator:X,argument:W}=f;if(X==="-"&&f8(W,G))return!0}return!1}function G8(f){if(f.type==="Identifier")return!0;if(f.type!=="MemberExpression"||f.computed)return!1;return G8(f.object)}var P9=TG`placeholders`({ClassNameIsRequired:"A class name is required.",UnexpectedSpace:"Unexpected space in placeholder."}),PJf=(f)=>class G extends f{parsePlaceholder(X){if(this.match(133)){let W=this.startNode();return this.next(),this.assertNoSpace(),W.name=super.parseIdentifier(!0),this.assertNoSpace(),this.expect(133),this.finishPlaceholder(W,X)}}finishPlaceholder(X,W){let R=X;if(!R.expectedNode||!R.type)R=this.finishNode(R,"Placeholder");return R.expectedNode=W,R}getTokenFromCode(X){if(X===37&&this.input.charCodeAt(this.state.pos+1)===37)this.finishOp(133,2);else super.getTokenFromCode(X)}parseExprAtom(X){return this.parsePlaceholder("Expression")||super.parseExprAtom(X)}parseIdentifier(X){return this.parsePlaceholder("Identifier")||super.parseIdentifier(X)}checkReservedWord(X,W,R,J){if(X!==void 0)super.checkReservedWord(X,W,R,J)}parseBindingAtom(){return this.parsePlaceholder("Pattern")||super.parseBindingAtom()}isValidLVal(X,W,R){return X==="Placeholder"||super.isValidLVal(X,W,R)}toAssignable(X,W){if(X&&X.type==="Placeholder"&&X.expectedNode==="Expression")X.expectedNode="Pattern";else super.toAssignable(X,W)}chStartsBindingIdentifier(X,W){if(super.chStartsBindingIdentifier(X,W))return!0;if(this.lookahead().type===133)return!0;return!1}verifyBreakContinue(X,W){if(X.label&&X.label.type==="Placeholder")return;super.verifyBreakContinue(X,W)}parseExpressionStatement(X,W){var R;if(W.type!=="Placeholder"||(R=W.extra)!=null&&R.parenthesized)return super.parseExpressionStatement(X,W);if(this.match(14)){let U=X;return U.label=this.finishPlaceholder(W,"Identifier"),this.next(),U.body=super.parseStatementOrSloppyAnnexBFunctionDeclaration(),this.finishNode(U,"LabeledStatement")}this.semicolon();let J=X;return J.name=W.name,this.finishPlaceholder(J,"Statement")}parseBlock(X,W,R){return this.parsePlaceholder("BlockStatement")||super.parseBlock(X,W,R)}parseFunctionId(X){return this.parsePlaceholder("Identifier")||super.parseFunctionId(X)}parseClass(X,W,R){let J=W?"ClassDeclaration":"ClassExpression";this.next();let U=this.state.strict,V=this.parsePlaceholder("Identifier");if(V)if(this.match(81)||this.match(133)||this.match(5))X.id=V;else if(R||!W)return X.id=null,X.body=this.finishPlaceholder(V,"ClassBody"),this.finishNode(X,J);else throw this.raise(P9.ClassNameIsRequired,this.state.startLoc);else this.parseClassId(X,W,R);return super.parseClassSuper(X),X.body=this.parsePlaceholder("ClassBody")||super.parseClassBody(!!X.superClass,U),this.finishNode(X,J)}parseExport(X,W){let R=this.parsePlaceholder("Identifier");if(!R)return super.parseExport(X,W);let J=X;if(!this.isContextual(98)&&!this.match(12))return J.specifiers=[],J.source=null,J.declaration=this.finishPlaceholder(R,"Declaration"),this.finishNode(J,"ExportNamedDeclaration");this.expectPlugin("exportDefaultFrom");let U=this.startNode();return U.exported=R,J.specifiers=[this.finishNode(U,"ExportDefaultSpecifier")],super.parseExport(J,W)}isExportDefaultSpecifier(){if(this.match(65)){let X=this.nextTokenStart();if(this.isUnparsedContextual(X,"from")){if(this.input.startsWith(xG(133),this.nextTokenStartSince(X+4)))return!0}}return super.isExportDefaultSpecifier()}maybeParseExportDefaultSpecifier(X,W){var R;if((R=X.specifiers)!=null&&R.length)return!0;return super.maybeParseExportDefaultSpecifier(X,W)}checkExport(X){let{specifiers:W}=X;if(W!=null&&W.length)X.specifiers=W.filter((R)=>R.exported.type==="Placeholder");super.checkExport(X),X.specifiers=W}parseImport(X){let W=this.parsePlaceholder("Identifier");if(!W)return super.parseImport(X);if(X.specifiers=[],!this.isContextual(98)&&!this.match(12))return X.source=this.finishPlaceholder(W,"StringLiteral"),this.semicolon(),this.finishNode(X,"ImportDeclaration");let R=this.startNodeAtNode(W);if(R.local=W,X.specifiers.push(this.finishNode(R,"ImportDefaultSpecifier")),this.eat(12)){if(!this.maybeParseStarImportSpecifier(X))this.parseNamedImportSpecifiers(X)}return this.expectContextual(98),X.source=this.parseImportSource(),this.semicolon(),this.finishNode(X,"ImportDeclaration")}parseImportSource(){return this.parsePlaceholder("StringLiteral")||super.parseImportSource()}assertNoSpace(){if(this.state.start>this.offsetToSourcePos(this.state.lastTokEndLoc.index))this.raise(P9.UnexpectedSpace,this.state.lastTokEndLoc)}},DJf=(f)=>class G extends f{parseV8Intrinsic(){if(this.match(54)){let X=this.state.startLoc,W=this.startNode();if(this.next(),$f(this.state.type)){let R=this.parseIdentifierName(),J=this.createIdentifier(W,R);if(J.type="V8IntrinsicIdentifier",this.match(10))return J}this.unexpected(X)}}parseExprAtom(X){return this.parseV8Intrinsic()||super.parseExprAtom(X)}},D9=["minimal","fsharp","hack","smart"],I9=["^^","@@","^","%","#"];function IJf(f){if(f.has("decorators")){if(f.has("decorators-legacy"))throw new Error("Cannot use the decorators and decorators-legacy plugin together");let X=f.get("decorators").decoratorsBeforeExport;if(X!=null&&typeof X!=="boolean")throw new Error("'decoratorsBeforeExport' must be a boolean, if specified.");let W=f.get("decorators").allowCallParenthesized;if(W!=null&&typeof W!=="boolean")throw new Error("'allowCallParenthesized' must be a boolean.")}if(f.has("flow")&&f.has("typescript"))throw new Error("Cannot combine flow and typescript plugins.");if(f.has("placeholders")&&f.has("v8intrinsic"))throw new Error("Cannot combine placeholders and v8intrinsic plugins.");if(f.has("pipelineOperator")){var G;let X=f.get("pipelineOperator").proposal;if(!D9.includes(X)){let R=D9.map((J)=>`"${J}"`).join(", ");throw new Error(`"pipelineOperator" requires "proposal" option whose value must be one of: ${R}.`)}let W=((G=f.get("recordAndTuple"))==null?void 0:G.syntaxType)==="hash";if(X==="hack"){if(f.has("placeholders"))throw new Error("Cannot combine placeholders plugin and Hack-style pipes.");if(f.has("v8intrinsic"))throw new Error("Cannot combine v8intrinsic plugin and Hack-style pipes.");let R=f.get("pipelineOperator").topicToken;if(!I9.includes(R)){let J=I9.map((U)=>`"${U}"`).join(", ");throw new Error(`"pipelineOperator" in "proposal": "hack" mode also requires a "topicToken" option whose value must be one of: ${J}.`)}if(R==="#"&&W)throw new Error(`Plugin conflict between \`["pipelineOperator", { proposal: "hack", topicToken: "#" }]\` and \`${JSON.stringify(["recordAndTuple",f.get("recordAndTuple")])}\`.`)}else if(X==="smart"&&W)throw new Error(`Plugin conflict between \`["pipelineOperator", { proposal: "smart" }]\` and \`${JSON.stringify(["recordAndTuple",f.get("recordAndTuple")])}\`.`)}if(f.has("moduleAttributes")){if(f.has("deprecatedImportAssert")||f.has("importAssertions"))throw new Error("Cannot combine importAssertions, deprecatedImportAssert and moduleAttributes plugins.");if(f.get("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(f.has("importAssertions")){if(f.has("deprecatedImportAssert"))throw new Error("Cannot combine importAssertions and deprecatedImportAssert plugins.")}if(!f.has("deprecatedImportAssert")&&f.has("importAttributes")&&f.get("importAttributes").deprecatedAssertSyntax)f.set("deprecatedImportAssert",{});if(f.has("recordAndTuple")){let X=f.get("recordAndTuple").syntaxType;if(X!=null){let W=["hash","bar"];if(!W.includes(X))throw new Error("The 'syntaxType' option of the 'recordAndTuple' plugin must be one of: "+W.map((R)=>`'${R}'`).join(", "))}}if(f.has("asyncDoExpressions")&&!f.has("doExpressions")){let X=new Error("'asyncDoExpressions' requires 'doExpressions', please add 'doExpressions' to parser plugins.");throw X.missingPlugins="doExpressions",X}if(f.has("optionalChainingAssign")&&f.get("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 X8={estree:NRf,jsx:SJf,flow:MJf,typescript:qJf,v8intrinsic:DJf,placeholders:PJf},TJf=Object.keys(X8);class W8 extends e9{checkProto(f,G,X,W){if(f.type==="SpreadElement"||this.isObjectMethod(f)||f.computed||f.shorthand)return X;let R=f.key;if((R.type==="Identifier"?R.name:R.value)==="__proto__"){if(G)return this.raise($.RecordNoProto,R),!0;if(X)if(W){if(W.doubleProtoLoc===null)W.doubleProtoLoc=R.loc.start}else this.raise($.DuplicateProto,R);return!0}return X}shouldExitDescending(f,G){return f.type==="ArrowFunctionExpression"&&this.offsetToSourcePos(f.start)===G}getExpression(){this.enterInitialScopes(),this.nextToken();let f=this.parseExpression();if(!this.match(140))this.unexpected();if(this.finalizeRemainingComments(),f.comments=this.comments,f.errors=this.state.errors,this.optionFlags&128)f.tokens=this.tokens;return f}parseExpression(f,G){if(f)return this.disallowInAnd(()=>this.parseExpressionBase(G));return this.allowInAnd(()=>this.parseExpressionBase(G))}parseExpressionBase(f){let G=this.state.startLoc,X=this.parseMaybeAssign(f);if(this.match(12)){let W=this.startNodeAt(G);W.expressions=[X];while(this.eat(12))W.expressions.push(this.parseMaybeAssign(f));return this.toReferencedList(W.expressions),this.finishNode(W,"SequenceExpression")}return X}parseMaybeAssignDisallowIn(f,G){return this.disallowInAnd(()=>this.parseMaybeAssign(f,G))}parseMaybeAssignAllowIn(f,G){return this.allowInAnd(()=>this.parseMaybeAssign(f,G))}setOptionalParametersError(f){f.optionalParametersLoc=this.state.startLoc}parseMaybeAssign(f,G){let X=this.state.startLoc;if(this.isContextual(108)){if(this.prodParam.hasYield){let U=this.parseYield();if(G)U=G.call(this,U,X);return U}}let W;if(f)W=!1;else f=new WX,W=!0;let{type:R}=this.state;if(R===10||$f(R))this.state.potentialArrowAt=this.state.start;let J=this.parseMaybeConditional(f);if(G)J=G.call(this,J,X);if(kRf(this.state.type)){let U=this.startNodeAt(X),V=this.state.value;if(U.operator=V,this.match(29)){this.toAssignable(J,!0),U.left=J;let H=X.index;if(f.doubleProtoLoc!=null&&f.doubleProtoLoc.index>=H)f.doubleProtoLoc=null;if(f.shorthandAssignLoc!=null&&f.shorthandAssignLoc.index>=H)f.shorthandAssignLoc=null;if(f.privateKeyLoc!=null&&f.privateKeyLoc.index>=H)this.checkDestructuringPrivate(f),f.privateKeyLoc=null}else U.left=J;return this.next(),U.right=this.parseMaybeAssign(),this.checkLVal(J,this.finishNode(U,"AssignmentExpression")),U}else if(W)this.checkExpressionErrors(f,!0);return J}parseMaybeConditional(f){let G=this.state.startLoc,X=this.state.potentialArrowAt,W=this.parseExprOps(f);if(this.shouldExitDescending(W,X))return W;return this.parseConditional(W,G,f)}parseConditional(f,G,X){if(this.eat(17)){let W=this.startNodeAt(G);return W.test=f,W.consequent=this.parseMaybeAssignAllowIn(),this.expect(14),W.alternate=this.parseMaybeAssign(),this.finishNode(W,"ConditionalExpression")}return f}parseMaybeUnaryOrPrivate(f){return this.match(139)?this.parsePrivateName():this.parseMaybeUnary(f)}parseExprOps(f){let G=this.state.startLoc,X=this.state.potentialArrowAt,W=this.parseMaybeUnaryOrPrivate(f);if(this.shouldExitDescending(W,X))return W;return this.parseExprOp(W,G,-1)}parseExprOp(f,G,X){if(this.isPrivateName(f)){let R=this.getPrivateNameSV(f);if(X>=RW(58)||!this.prodParam.hasIn||!this.match(58))this.raise($.PrivateInExpectedIn,f,{identifierName:R});this.classScope.usePrivateName(R,f.loc.start)}let W=this.state.type;if(gRf(W)&&(this.prodParam.hasIn||!this.match(58))){let R=RW(W);if(R>X){if(W===39){if(this.expectPlugin("pipelineOperator"),this.state.inFSharpPipelineDirectBody)return f;this.checkPipelineAtInfixOperator(f,G)}let J=this.startNodeAt(G);J.left=f,J.operator=this.state.value;let U=W===41||W===42,V=W===40;if(V)R=RW(42);if(this.next(),W===39&&this.hasPlugin(["pipelineOperator",{proposal:"minimal"}])){if(this.state.type===96&&this.prodParam.hasAwait)throw this.raise($.UnexpectedAwaitAfterPipelineBody,this.state.startLoc)}J.right=this.parseExprOpRightExpr(W,R);let H=this.finishNode(J,U||V?"LogicalExpression":"BinaryExpression"),Q=this.state.type;if(V&&(Q===41||Q===42)||U&&Q===40)throw this.raise($.MixingCoalesceWithLogical,this.state.startLoc);return this.parseExprOp(H,G,X)}}return f}parseExprOpRightExpr(f,G){let X=this.state.startLoc;switch(f){case 39:switch(this.getPluginOption("pipelineOperator","proposal")){case"hack":return this.withTopicBindingContext(()=>{return this.parseHackPipeBody()});case"fsharp":return this.withSoloAwaitPermittingContext(()=>{return this.parseFSharpPipelineBody(G)})}if(this.getPluginOption("pipelineOperator","proposal")==="smart")return this.withTopicBindingContext(()=>{if(this.prodParam.hasYield&&this.isContextual(108))throw this.raise($.PipeBodyIsTighter,this.state.startLoc);return this.parseSmartPipelineBodyInStyle(this.parseExprOpBaseRightExpr(f,G),X)});default:return this.parseExprOpBaseRightExpr(f,G)}}parseExprOpBaseRightExpr(f,G){let X=this.state.startLoc;return this.parseExprOp(this.parseMaybeUnaryOrPrivate(),X,xRf(f)?G-1:G)}parseHackPipeBody(){var f;let{startLoc:G}=this.state,X=this.parseMaybeAssign();if(ARf.has(X.type)&&!((f=X.extra)!=null&&f.parenthesized))this.raise($.PipeUnparenthesizedBody,G,{type:X.type});if(!this.topicReferenceWasUsedInCurrentContext())this.raise($.PipeTopicUnused,G);return X}checkExponentialAfterUnary(f){if(this.match(57))this.raise($.UnexpectedTokenUnaryExponentiation,f.argument)}parseMaybeUnary(f,G){let X=this.state.startLoc,W=this.isContextual(96);if(W&&this.recordAwaitIfAllowed()){this.next();let V=this.parseAwait(X);if(!G)this.checkExponentialAfterUnary(V);return V}let R=this.match(34),J=this.startNode();if(uRf(this.state.type)){if(J.operator=this.state.value,J.prefix=!0,this.match(72))this.expectPlugin("throwExpressions");let V=this.match(89);if(this.next(),J.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(f,!0),this.state.strict&&V){let H=J.argument;if(H.type==="Identifier")this.raise($.StrictDelete,J);else if(this.hasPropertyAsPrivateName(H))this.raise($.DeletePrivateField,J)}if(!R){if(!G)this.checkExponentialAfterUnary(J);return this.finishNode(J,"UnaryExpression")}}let U=this.parseUpdate(J,R,f);if(W){let{type:V}=this.state;if((this.hasPlugin("v8intrinsic")?AR(V):AR(V)&&!this.match(54))&&!this.isAmbiguousAwait())return this.raiseOverwrite($.AwaitNotInAsyncContext,X),this.parseAwait(X)}return U}parseUpdate(f,G,X){if(G){let J=f;return this.checkLVal(J.argument,this.finishNode(J,"UpdateExpression")),f}let W=this.state.startLoc,R=this.parseExprSubscripts(X);if(this.checkExpressionErrors(X,!1))return R;while(_Rf(this.state.type)&&!this.canInsertSemicolon()){let J=this.startNodeAt(W);J.operator=this.state.value,J.prefix=!1,J.argument=R,this.next(),this.checkLVal(R,R=this.finishNode(J,"UpdateExpression"))}return R}parseExprSubscripts(f){let G=this.state.startLoc,X=this.state.potentialArrowAt,W=this.parseExprAtom(f);if(this.shouldExitDescending(W,X))return W;return this.parseSubscripts(W,G)}parseSubscripts(f,G,X){let W={optionalChainMember:!1,maybeAsyncArrow:this.atPossibleAsyncArrow(f),stop:!1};do f=this.parseSubscript(f,G,X,W),W.maybeAsyncArrow=!1;while(!W.stop);return f}parseSubscript(f,G,X,W){let{type:R}=this.state;if(!X&&R===15)return this.parseBind(f,G,X,W);else if(UW(R))return this.parseTaggedTemplateExpression(f,G,W);let J=!1;if(R===18){if(X){if(this.raise($.OptionalChainingNoNew,this.state.startLoc),this.lookaheadCharCode()===40)return W.stop=!0,f}W.optionalChainMember=J=!0,this.next()}if(!X&&this.match(10))return this.parseCoverCallAndAsyncArrowHead(f,G,W,J);else{let U=this.eat(0);if(U||J||this.eat(16))return this.parseMember(f,G,W,U,J);else return W.stop=!0,f}}parseMember(f,G,X,W,R){let J=this.startNodeAt(G);if(J.object=f,J.computed=W,W)J.property=this.parseExpression(),this.expect(3);else if(this.match(139)){if(f.type==="Super")this.raise($.SuperPrivateField,G);this.classScope.usePrivateName(this.state.value,this.state.startLoc),J.property=this.parsePrivateName()}else J.property=this.parseIdentifier(!0);if(X.optionalChainMember)return J.optional=R,this.finishNode(J,"OptionalMemberExpression");else return this.finishNode(J,"MemberExpression")}parseBind(f,G,X,W){let R=this.startNodeAt(G);return R.object=f,this.next(),R.callee=this.parseNoCallExpr(),W.stop=!0,this.parseSubscripts(this.finishNode(R,"BindExpression"),G,X)}parseCoverCallAndAsyncArrowHead(f,G,X,W){let R=this.state.maybeInArrowParameters,J=null;this.state.maybeInArrowParameters=!0,this.next();let U=this.startNodeAt(G);U.callee=f;let{maybeAsyncArrow:V,optionalChainMember:H}=X;if(V)this.expressionScope.enter(UJf()),J=new WX;if(H)U.optional=W;if(W)U.arguments=this.parseCallExpressionArguments(11);else U.arguments=this.parseCallExpressionArguments(11,f.type!=="Super",U,J);let Q=this.finishCallExpression(U,H);if(V&&this.shouldParseAsyncArrow()&&!W)X.stop=!0,this.checkDestructuringPrivate(J),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),Q=this.parseAsyncArrowFromCallExpression(this.startNodeAt(G),Q);else{if(V)this.checkExpressionErrors(J,!0),this.expressionScope.exit();this.toReferencedArguments(Q)}return this.state.maybeInArrowParameters=R,Q}toReferencedArguments(f,G){this.toReferencedListDeep(f.arguments,G)}parseTaggedTemplateExpression(f,G,X){let W=this.startNodeAt(G);if(W.tag=f,W.quasi=this.parseTemplate(!0),X.optionalChainMember)this.raise($.OptionalChainingNoTemplate,G);return this.finishNode(W,"TaggedTemplateExpression")}atPossibleAsyncArrow(f){return f.type==="Identifier"&&f.name==="async"&&this.state.lastTokEndLoc.index===f.end&&!this.canInsertSemicolon()&&f.end-f.start===5&&this.offsetToSourcePos(f.start)===this.state.potentialArrowAt}finishCallExpression(f,G){if(f.callee.type==="Import"){if(f.arguments.length===0||f.arguments.length>2)this.raise($.ImportCallArity,f);else for(let X of f.arguments)if(X.type==="SpreadElement")this.raise($.ImportCallSpreadArgument,X)}return this.finishNode(f,G?"OptionalCallExpression":"CallExpression")}parseCallExpressionArguments(f,G,X,W){let R=[],J=!0,U=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;while(!this.eat(f)){if(J)J=!1;else if(this.expect(12),this.match(f)){if(X)this.addTrailingCommaExtraToNode(X);this.next();break}R.push(this.parseExprListItem(!1,W,G))}return this.state.inFSharpPipelineDirectBody=U,R}shouldParseAsyncArrow(){return this.match(19)&&!this.canInsertSemicolon()}parseAsyncArrowFromCallExpression(f,G){var X;if(this.resetPreviousNodeTrailingComments(G),this.expect(19),this.parseArrowExpression(f,G.arguments,!0,(X=G.extra)==null?void 0:X.trailingCommaLoc),G.innerComments)JX(f,G.innerComments);if(G.callee.trailingComments)JX(f,G.callee.trailingComments);return f}parseNoCallExpr(){let f=this.state.startLoc;return this.parseSubscripts(this.parseExprAtom(),f,!0)}parseExprAtom(f){let G,X=null,{type:W}=this.state;switch(W){case 79:return this.parseSuper();case 83:if(G=this.startNode(),this.next(),this.match(16))return this.parseImportMetaProperty(G);if(this.match(10))if(this.optionFlags&256)return this.parseImportCall(G);else return this.finishNode(G,"Import");else return this.raise($.UnsupportedImport,this.state.lastTokStartLoc),this.finishNode(G,"Import");case 78:return G=this.startNode(),this.next(),this.finishNode(G,"ThisExpression");case 90:return this.parseDo(this.startNode(),!1);case 56:case 31:return this.readRegexp(),this.parseRegExpLiteral(this.state.value);case 135:return this.parseNumericLiteral(this.state.value);case 136:return this.parseBigIntLiteral(this.state.value);case 134: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 R=this.state.potentialArrowAt===this.state.start;return this.parseParenAndDistinguishExpression(R)}case 2:case 1:return this.parseArrayLike(this.state.type===2?4:3,!1,!0);case 0:return this.parseArrayLike(3,!0,!1,f);case 6:case 7:return this.parseObjectLike(this.state.type===6?9:8,!1,!0);case 5:return this.parseObjectLike(8,!1,!1,f);case 68:return this.parseFunctionOrFunctionSent();case 26:X=this.parseDecorators();case 80:return this.parseClass(this.maybeTakeDecorators(X,this.startNode()),!1);case 77:return this.parseNewOrNewTarget();case 25:case 24:return this.parseTemplate(!1);case 15:{G=this.startNode(),this.next(),G.object=null;let R=G.callee=this.parseNoCallExpr();if(R.type==="MemberExpression")return this.finishNode(G,"BindExpression");else throw this.raise($.UnsupportedBind,R)}case 139:return this.raise($.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 R=this.getPluginOption("pipelineOperator","proposal");if(R)return this.parseTopicReference(R);this.unexpected();break}case 47:{let R=this.input.codePointAt(this.nextTokenStart());if(IG(R)||R===62)this.expectOnePlugin(["jsx","flow","typescript"]);else this.unexpected();break}default:if(W===137)return this.parseDecimalLiteral(this.state.value);if($f(W)){if(this.isContextual(127)&&this.lookaheadInLineCharCode()===123)return this.parseModuleExpression();let R=this.state.potentialArrowAt===this.state.start,J=this.state.containsEsc,U=this.parseIdentifier();if(!J&&U.name==="async"&&!this.canInsertSemicolon()){let{type:V}=this.state;if(V===68)return this.resetPreviousNodeTrailingComments(U),this.next(),this.parseAsyncFunctionExpression(this.startNodeAtNode(U));else if($f(V))if(this.lookaheadCharCode()===61)return this.parseAsyncArrowUnaryFunction(this.startNodeAtNode(U));else return U;else if(V===90)return this.resetPreviousNodeTrailingComments(U),this.parseDo(this.startNodeAtNode(U),!0)}if(R&&this.match(19)&&!this.canInsertSemicolon())return this.next(),this.parseArrowExpression(this.startNodeAtNode(U),[U],!1);return U}else this.unexpected()}}parseTopicReferenceThenEqualsSign(f,G){let X=this.getPluginOption("pipelineOperator","proposal");if(X)return this.state.type=f,this.state.value=G,this.state.pos--,this.state.end--,this.state.endLoc=xf(this.state.endLoc,-1),this.parseTopicReference(X);else this.unexpected()}parseTopicReference(f){let G=this.startNode(),X=this.state.startLoc,W=this.state.type;return this.next(),this.finishTopicReference(G,X,f,W)}finishTopicReference(f,G,X,W){if(this.testTopicReferenceConfiguration(X,G,W))if(X==="hack"){if(!this.topicReferenceIsAllowedInCurrentContext())this.raise($.PipeTopicUnbound,G);return this.registerTopicReference(),this.finishNode(f,"TopicReference")}else{if(!this.topicReferenceIsAllowedInCurrentContext())this.raise($.PrimaryTopicNotAllowed,G);return this.registerTopicReference(),this.finishNode(f,"PipelinePrimaryTopicReference")}else throw this.raise($.PipeTopicUnconfiguredToken,G,{token:xG(W)})}testTopicReferenceConfiguration(f,G,X){switch(f){case"hack":return this.hasPlugin(["pipelineOperator",{topicToken:xG(X)}]);case"smart":return X===27;default:throw this.raise($.PipeTopicRequiresHackPipes,G)}}parseAsyncArrowUnaryFunction(f){this.prodParam.enter(JW(!0,this.prodParam.hasYield));let G=[this.parseIdentifier()];if(this.prodParam.exit(),this.hasPrecedingLineBreak())this.raise($.LineTerminatorBeforeArrow,this.state.curPosition());return this.expect(19),this.parseArrowExpression(f,G,!0)}parseDo(f,G){if(this.expectPlugin("doExpressions"),G)this.expectPlugin("asyncDoExpressions");f.async=G,this.next();let X=this.state.labels;if(this.state.labels=[],G)this.prodParam.enter(2),f.body=this.parseBlock(),this.prodParam.exit();else f.body=this.parseBlock();return this.state.labels=X,this.finishNode(f,"DoExpression")}parseSuper(){let f=this.startNode();if(this.next(),this.match(10)&&!this.scope.allowDirectSuper&&!(this.optionFlags&16))this.raise($.SuperNotAllowed,f);else if(!this.scope.allowSuper&&!(this.optionFlags&16))this.raise($.UnexpectedSuper,f);if(!this.match(10)&&!this.match(0)&&!this.match(16))this.raise($.UnsupportedSuper,f);return this.finishNode(f,"Super")}parsePrivateName(){let f=this.startNode(),G=this.startNodeAt(xf(this.state.startLoc,1)),X=this.state.value;return this.next(),f.id=this.createIdentifier(G,X),this.finishNode(f,"PrivateName")}parseFunctionOrFunctionSent(){let f=this.startNode();if(this.next(),this.prodParam.hasYield&&this.match(16)){let G=this.createIdentifier(this.startNodeAtNode(f),"function");if(this.next(),this.match(103))this.expectPlugin("functionSent");else if(!this.hasPlugin("functionSent"))this.unexpected();return this.parseMetaProperty(f,G,"sent")}return this.parseFunction(f)}parseMetaProperty(f,G,X){f.meta=G;let W=this.state.containsEsc;if(f.property=this.parseIdentifier(!0),f.property.name!==X||W)this.raise($.UnsupportedMetaProperty,f.property,{target:G.name,onlyValidPropertyName:X});return this.finishNode(f,"MetaProperty")}parseImportMetaProperty(f){let G=this.createIdentifier(this.startNodeAtNode(f),"import");if(this.next(),this.isContextual(101)){if(!this.inModule)this.raise($.ImportMetaOutsideModule,G);this.sawUnambiguousESM=!0}else if(this.isContextual(105)||this.isContextual(97)){let X=this.isContextual(105);if(this.expectPlugin(X?"sourcePhaseImports":"deferredImportEvaluation"),!(this.optionFlags&256))throw this.raise($.DynamicImportPhaseRequiresImportExpressions,this.state.startLoc,{phase:this.state.value});return this.next(),f.phase=X?"source":"defer",this.parseImportCall(f)}return this.parseMetaProperty(f,G,"meta")}parseLiteralAtNode(f,G,X){return this.addExtra(X,"rawValue",f),this.addExtra(X,"raw",this.input.slice(this.offsetToSourcePos(X.start),this.state.end)),X.value=f,this.next(),this.finishNode(X,G)}parseLiteral(f,G){let X=this.startNode();return this.parseLiteralAtNode(f,G,X)}parseStringLiteral(f){return this.parseLiteral(f,"StringLiteral")}parseNumericLiteral(f){return this.parseLiteral(f,"NumericLiteral")}parseBigIntLiteral(f){return this.parseLiteral(f,"BigIntLiteral")}parseDecimalLiteral(f){return this.parseLiteral(f,"DecimalLiteral")}parseRegExpLiteral(f){let G=this.startNode();return this.addExtra(G,"raw",this.input.slice(this.offsetToSourcePos(G.start),this.state.end)),G.pattern=f.pattern,G.flags=f.flags,this.next(),this.finishNode(G,"RegExpLiteral")}parseBooleanLiteral(f){let G=this.startNode();return G.value=f,this.next(),this.finishNode(G,"BooleanLiteral")}parseNullLiteral(){let f=this.startNode();return this.next(),this.finishNode(f,"NullLiteral")}parseParenAndDistinguishExpression(f){let G=this.state.startLoc,X;this.next(),this.expressionScope.enter(JJf());let W=this.state.maybeInArrowParameters,R=this.state.inFSharpPipelineDirectBody;this.state.maybeInArrowParameters=!0,this.state.inFSharpPipelineDirectBody=!1;let J=this.state.startLoc,U=[],V=new WX,H=!0,Q,Y;while(!this.match(11)){if(H)H=!1;else if(this.expect(12,V.optionalParametersLoc===null?null:V.optionalParametersLoc),this.match(11)){Y=this.state.startLoc;break}if(this.match(21)){let A=this.state.startLoc;if(Q=this.state.startLoc,U.push(this.parseParenItem(this.parseRestBinding(),A)),!this.checkCommaAfterRest(41))break}else U.push(this.parseMaybeAssignAllowIn(V,this.parseParenItem))}let F=this.state.lastTokEndLoc;this.expect(11),this.state.maybeInArrowParameters=W,this.state.inFSharpPipelineDirectBody=R;let q=this.startNodeAt(G);if(f&&this.shouldParseArrow(U)&&(q=this.parseArrow(q)))return this.checkDestructuringPrivate(V),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),this.parseArrowExpression(q,U,!1),q;if(this.expressionScope.exit(),!U.length)this.unexpected(this.state.lastTokStartLoc);if(Y)this.unexpected(Y);if(Q)this.unexpected(Q);if(this.checkExpressionErrors(V,!0),this.toReferencedListDeep(U,!0),U.length>1)X=this.startNodeAt(J),X.expressions=U,this.finishNode(X,"SequenceExpression"),this.resetEndLocation(X,F);else X=U[0];return this.wrapParenthesis(G,X)}wrapParenthesis(f,G){if(!(this.optionFlags&512))return this.addExtra(G,"parenthesized",!0),this.addExtra(G,"parenStart",f.index),this.takeSurroundingComments(G,f.index,this.state.lastTokEndLoc.index),G;let X=this.startNodeAt(f);return X.expression=G,this.finishNode(X,"ParenthesizedExpression")}shouldParseArrow(f){return!this.canInsertSemicolon()}parseArrow(f){if(this.eat(19))return f}parseParenItem(f,G){return f}parseNewOrNewTarget(){let f=this.startNode();if(this.next(),this.match(16)){let G=this.createIdentifier(this.startNodeAtNode(f),"new");this.next();let X=this.parseMetaProperty(f,G,"target");if(!this.scope.inNonArrowFunction&&!this.scope.inClass&&!(this.optionFlags&4))this.raise($.UnexpectedNewTarget,X);return X}return this.parseNew(f)}parseNew(f){if(this.parseNewCallee(f),this.eat(10)){let G=this.parseExprList(11);this.toReferencedList(G),f.arguments=G}else f.arguments=[];return this.finishNode(f,"NewExpression")}parseNewCallee(f){let G=this.match(83),X=this.parseNoCallExpr();if(f.callee=X,G&&(X.type==="Import"||X.type==="ImportExpression"))this.raise($.ImportCallNotNewExpression,X)}parseTemplateElement(f){let{start:G,startLoc:X,end:W,value:R}=this.state,J=G+1,U=this.startNodeAt(xf(X,1));if(R===null){if(!f)this.raise($.InvalidEscapeSequenceTemplate,xf(this.state.firstInvalidTemplateEscapePos,1))}let V=this.match(24),H=V?-1:-2,Q=W+H;U.value={raw:this.input.slice(J,Q).replace(/\r\n?/g,`
|
|
23
|
-
`),cooked:R===null?null:R.slice(1,H)},U.tail=V,this.next();let Y=this.finishNode(U,"TemplateElement");return this.resetEndLocation(Y,xf(this.state.lastTokEndLoc,H)),Y}parseTemplate(f){let G=this.startNode(),X=this.parseTemplateElement(f),W=[X],R=[];while(!X.tail)R.push(this.parseTemplateSubstitution()),this.readTemplateContinuation(),W.push(X=this.parseTemplateElement(f));return G.expressions=R,G.quasis=W,this.finishNode(G,"TemplateLiteral")}parseTemplateSubstitution(){return this.parseExpression()}parseObjectLike(f,G,X,W){if(X)this.expectPlugin("recordAndTuple");let R=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let J=!1,U=!0,V=this.startNode();V.properties=[],this.next();while(!this.match(f)){if(U)U=!1;else if(this.expect(12),this.match(f)){this.addTrailingCommaExtraToNode(V);break}let Q;if(G)Q=this.parseBindingProperty();else Q=this.parsePropertyDefinition(W),J=this.checkProto(Q,X,J,W);if(X&&!this.isObjectProperty(Q)&&Q.type!=="SpreadElement")this.raise($.InvalidRecordProperty,Q);if(Q.shorthand)this.addExtra(Q,"shorthand",!0);V.properties.push(Q)}this.next(),this.state.inFSharpPipelineDirectBody=R;let H="ObjectExpression";if(G)H="ObjectPattern";else if(X)H="RecordExpression";return this.finishNode(V,H)}addTrailingCommaExtraToNode(f){this.addExtra(f,"trailingComma",this.state.lastTokStartLoc.index),this.addExtra(f,"trailingCommaLoc",this.state.lastTokStartLoc,!1)}maybeAsyncOrAccessorProp(f){return!f.computed&&f.key.type==="Identifier"&&(this.isLiteralPropertyName()||this.match(0)||this.match(55))}parsePropertyDefinition(f){let G=[];if(this.match(26)){if(this.hasPlugin("decorators"))this.raise($.UnsupportedPropertyDecorator,this.state.startLoc);while(this.match(26))G.push(this.parseDecorator())}let X=this.startNode(),W=!1,R=!1,J;if(this.match(21)){if(G.length)this.unexpected();return this.parseSpread()}if(G.length)X.decorators=G,G=[];if(X.method=!1,f)J=this.state.startLoc;let U=this.eat(55);this.parsePropertyNamePrefixOperator(X);let V=this.state.containsEsc;if(this.parsePropertyName(X,f),!U&&!V&&this.maybeAsyncOrAccessorProp(X)){let{key:H}=X,Q=H.name;if(Q==="async"&&!this.hasPrecedingLineBreak())W=!0,this.resetPreviousNodeTrailingComments(H),U=this.eat(55),this.parsePropertyName(X);if(Q==="get"||Q==="set"){if(R=!0,this.resetPreviousNodeTrailingComments(H),X.kind=Q,this.match(55))U=!0,this.raise($.AccessorIsGenerator,this.state.curPosition(),{kind:Q}),this.next();this.parsePropertyName(X)}}return this.parseObjPropValue(X,J,U,W,!1,R,f)}getGetterSetterExpectedParamCount(f){return f.kind==="get"?0:1}getObjectOrClassMethodParams(f){return f.params}checkGetterSetterParams(f){var G;let X=this.getGetterSetterExpectedParamCount(f),W=this.getObjectOrClassMethodParams(f);if(W.length!==X)this.raise(f.kind==="get"?$.BadGetterArity:$.BadSetterArity,f);if(f.kind==="set"&&((G=W[W.length-1])==null?void 0:G.type)==="RestElement")this.raise($.BadSetterRestParameter,f)}parseObjectMethod(f,G,X,W,R){if(R){let J=this.parseMethod(f,G,!1,!1,!1,"ObjectMethod");return this.checkGetterSetterParams(J),J}if(X||G||this.match(10)){if(W)this.unexpected();return f.kind="method",f.method=!0,this.parseMethod(f,G,X,!1,!1,"ObjectMethod")}}parseObjectProperty(f,G,X,W){if(f.shorthand=!1,this.eat(14))return f.value=X?this.parseMaybeDefault(this.state.startLoc):this.parseMaybeAssignAllowIn(W),this.finishNode(f,"ObjectProperty");if(!f.computed&&f.key.type==="Identifier"){if(this.checkReservedWord(f.key.name,f.key.loc.start,!0,!1),X)f.value=this.parseMaybeDefault(G,LG(f.key));else if(this.match(29)){let R=this.state.startLoc;if(W!=null){if(W.shorthandAssignLoc===null)W.shorthandAssignLoc=R}else this.raise($.InvalidCoverInitializedName,R);f.value=this.parseMaybeDefault(G,LG(f.key))}else f.value=LG(f.key);return f.shorthand=!0,this.finishNode(f,"ObjectProperty")}}parseObjPropValue(f,G,X,W,R,J,U){let V=this.parseObjectMethod(f,X,W,R,J)||this.parseObjectProperty(f,G,R,U);if(!V)this.unexpected();return V}parsePropertyName(f,G){if(this.eat(0))f.computed=!0,f.key=this.parseMaybeAssignAllowIn(),this.expect(3);else{let{type:X,value:W}=this.state,R;if(HG(X))R=this.parseIdentifier(!0);else switch(X){case 135:R=this.parseNumericLiteral(W);break;case 134:R=this.parseStringLiteral(W);break;case 136:R=this.parseBigIntLiteral(W);break;case 139:{let J=this.state.startLoc;if(G!=null){if(G.privateKeyLoc===null)G.privateKeyLoc=J}else this.raise($.UnexpectedPrivateField,J);R=this.parsePrivateName();break}default:if(X===137){R=this.parseDecimalLiteral(W);break}this.unexpected()}if(f.key=R,X!==139)f.computed=!1}}initFunction(f,G){f.id=null,f.generator=!1,f.async=G}parseMethod(f,G,X,W,R,J,U=!1){this.initFunction(f,X),f.generator=G,this.scope.enter(18|(U?64:0)|(R?32:0)),this.prodParam.enter(JW(X,f.generator)),this.parseFunctionParams(f,W);let V=this.parseFunctionBodyAndFinish(f,J,!0);return this.prodParam.exit(),this.scope.exit(),V}parseArrayLike(f,G,X,W){if(X)this.expectPlugin("recordAndTuple");let R=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let J=this.startNode();return this.next(),J.elements=this.parseExprList(f,!X,W,J),this.state.inFSharpPipelineDirectBody=R,this.finishNode(J,X?"TupleExpression":"ArrayExpression")}parseArrowExpression(f,G,X,W){this.scope.enter(6);let R=JW(X,!1);if(!this.match(5)&&this.prodParam.hasIn)R|=8;this.prodParam.enter(R),this.initFunction(f,X);let J=this.state.maybeInArrowParameters;if(G)this.state.maybeInArrowParameters=!0,this.setArrowFunctionParameters(f,G,W);return this.state.maybeInArrowParameters=!1,this.parseFunctionBody(f,!0),this.prodParam.exit(),this.scope.exit(),this.state.maybeInArrowParameters=J,this.finishNode(f,"ArrowFunctionExpression")}setArrowFunctionParameters(f,G,X){this.toAssignableList(G,X,!1),f.params=G}parseFunctionBodyAndFinish(f,G,X=!1){return this.parseFunctionBody(f,!1,X),this.finishNode(f,G)}parseFunctionBody(f,G,X=!1){let W=G&&!this.match(5);if(this.expressionScope.enter(r9()),W)f.body=this.parseMaybeAssign(),this.checkParams(f,!1,G,!1);else{let R=this.state.strict,J=this.state.labels;this.state.labels=[],this.prodParam.enter(this.prodParam.currentFlags()|4),f.body=this.parseBlock(!0,!1,(U)=>{let V=!this.isSimpleParamList(f.params);if(U&&V)this.raise($.IllegalLanguageModeDirective,(f.kind==="method"||f.kind==="constructor")&&!!f.key?f.key.loc.end:f);let H=!R&&this.state.strict;if(this.checkParams(f,!this.state.strict&&!G&&!X&&!V,G,H),this.state.strict&&f.id)this.checkIdentifier(f.id,65,H)}),this.prodParam.exit(),this.state.labels=J}this.expressionScope.exit()}isSimpleParameter(f){return f.type==="Identifier"}isSimpleParamList(f){for(let G=0,X=f.length;G<X;G++)if(!this.isSimpleParameter(f[G]))return!1;return!0}checkParams(f,G,X,W=!0){let R=!G&&new Set,J={type:"FormalParameters"};for(let U of f.params)this.checkLVal(U,J,5,R,W)}parseExprList(f,G,X,W){let R=[],J=!0;while(!this.eat(f)){if(J)J=!1;else if(this.expect(12),this.match(f)){if(W)this.addTrailingCommaExtraToNode(W);this.next();break}R.push(this.parseExprListItem(G,X))}return R}parseExprListItem(f,G,X){let W;if(this.match(12)){if(!f)this.raise($.UnexpectedToken,this.state.curPosition(),{unexpected:","});W=null}else if(this.match(21)){let R=this.state.startLoc;W=this.parseParenItem(this.parseSpread(G),R)}else if(this.match(17)){if(this.expectPlugin("partialApplication"),!X)this.raise($.UnexpectedArgumentPlaceholder,this.state.startLoc);let R=this.startNode();this.next(),W=this.finishNode(R,"ArgumentPlaceholder")}else W=this.parseMaybeAssignAllowIn(G,this.parseParenItem);return W}parseIdentifier(f){let G=this.startNode(),X=this.parseIdentifierName(f);return this.createIdentifier(G,X)}createIdentifier(f,G){return f.name=G,f.loc.identifierName=G,this.finishNode(f,"Identifier")}parseIdentifierName(f){let G,{startLoc:X,type:W}=this.state;if(HG(W))G=this.state.value;else this.unexpected();let R=ERf(W);if(f){if(R)this.replaceToken(132)}else this.checkReservedWord(G,X,R,!1);return this.next(),G}checkReservedWord(f,G,X,W){if(f.length>10)return;if(!tRf(f))return;if(X&&sRf(f)){this.raise($.UnexpectedKeyword,G,{keyword:f});return}if((!this.state.strict?E9:W?v9:w9)(f,this.inModule)){this.raise($.UnexpectedReservedWord,G,{reservedWord:f});return}else if(f==="yield"){if(this.prodParam.hasYield){this.raise($.YieldBindingIdentifier,G);return}}else if(f==="await"){if(this.prodParam.hasAwait){this.raise($.AwaitBindingIdentifier,G);return}if(this.scope.inStaticBlock){this.raise($.AwaitBindingIdentifierInStaticBlock,G);return}this.expressionScope.recordAsyncArrowParametersError(G)}else if(f==="arguments"){if(this.scope.inClassAndNotInNonArrowFunction){this.raise($.ArgumentsInClass,G);return}}}recordAwaitIfAllowed(){let f=this.prodParam.hasAwait||this.optionFlags&1&&!this.scope.inFunction;if(f&&!this.scope.inFunction)this.state.hasTopLevelAwait=!0;return f}parseAwait(f){let G=this.startNodeAt(f);if(this.expressionScope.recordParameterInitializerError($.AwaitExpressionFormalParameter,G),this.eat(55))this.raise($.ObsoleteAwaitStar,G);if(!this.scope.inFunction&&!(this.optionFlags&1))if(this.isAmbiguousAwait())this.ambiguousScriptDifferentAst=!0;else this.sawUnambiguousESM=!0;if(!this.state.soloAwait)G.argument=this.parseMaybeUnary(null,!0);return this.finishNode(G,"AwaitExpression")}isAmbiguousAwait(){if(this.hasPrecedingLineBreak())return!0;let{type:f}=this.state;return f===53||f===10||f===0||UW(f)||f===102&&!this.state.containsEsc||f===138||f===56||this.hasPlugin("v8intrinsic")&&f===54}parseYield(){let f=this.startNode();this.expressionScope.recordParameterInitializerError($.YieldInParameter,f),this.next();let G=!1,X=null;if(!this.hasPrecedingLineBreak())switch(G=this.eat(55),this.state.type){case 13:case 140:case 8:case 11:case 3:case 9:case 14:case 12:if(!G)break;default:X=this.parseMaybeAssign()}return f.delegate=G,f.argument=X,this.finishNode(f,"YieldExpression")}parseImportCall(f){if(this.next(),f.source=this.parseMaybeAssignAllowIn(),f.options=null,this.eat(12)){if(!this.match(11)){if(f.options=this.parseMaybeAssignAllowIn(),this.eat(12)&&!this.match(11)){do this.parseMaybeAssignAllowIn();while(this.eat(12)&&!this.match(11));this.raise($.ImportCallArity,f)}}}return this.expect(11),this.finishNode(f,"ImportExpression")}checkPipelineAtInfixOperator(f,G){if(this.hasPlugin(["pipelineOperator",{proposal:"smart"}])){if(f.type==="SequenceExpression")this.raise($.PipelineHeadSequenceExpression,G)}}parseSmartPipelineBodyInStyle(f,G){if(this.isSimpleReference(f)){let X=this.startNodeAt(G);return X.callee=f,this.finishNode(X,"PipelineBareFunction")}else{let X=this.startNodeAt(G);return this.checkSmartPipeTopicBodyEarlyErrors(G),X.expression=f,this.finishNode(X,"PipelineTopicExpression")}}isSimpleReference(f){switch(f.type){case"MemberExpression":return!f.computed&&this.isSimpleReference(f.object);case"Identifier":return!0;default:return!1}}checkSmartPipeTopicBodyEarlyErrors(f){if(this.match(19))throw this.raise($.PipelineBodyNoArrow,this.state.startLoc);if(!this.topicReferenceWasUsedInCurrentContext())this.raise($.PipelineTopicUnused,f)}withTopicBindingContext(f){let G=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:1,maxTopicIndex:null};try{return f()}finally{this.state.topicContext=G}}withSmartMixTopicForbiddingContext(f){if(this.hasPlugin(["pipelineOperator",{proposal:"smart"}])){let G=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null};try{return f()}finally{this.state.topicContext=G}}else return f()}withSoloAwaitPermittingContext(f){let G=this.state.soloAwait;this.state.soloAwait=!0;try{return f()}finally{this.state.soloAwait=G}}allowInAnd(f){let G=this.prodParam.currentFlags();if(8&~G){this.prodParam.enter(G|8);try{return f()}finally{this.prodParam.exit()}}return f()}disallowInAnd(f){let G=this.prodParam.currentFlags();if(8&G){this.prodParam.enter(G&-9);try{return f()}finally{this.prodParam.exit()}}return f()}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(f){let G=this.state.startLoc;this.state.potentialArrowAt=this.state.start;let X=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!0;let W=this.parseExprOp(this.parseMaybeUnaryOrPrivate(),G,f);return this.state.inFSharpPipelineDirectBody=X,W}parseModuleExpression(){this.expectPlugin("moduleBlocks");let f=this.startNode();if(this.next(),!this.match(5))this.unexpected(null,5);let G=this.startNodeAt(this.state.endLoc);this.next();let X=this.initializeScopes(!0);this.enterInitialScopes();try{f.body=this.parseProgram(G,8,"module")}finally{X()}return this.finishNode(f,"ModuleExpression")}parsePropertyNamePrefixOperator(f){}}var CR={kind:1},NJf={kind:2},LJf=/[\uD800-\uDFFF]/u,qR=/in(?:stanceof)?/y;function bJf(f,G,X){for(let W=0;W<f.length;W++){let R=f[W],{type:J}=R;if(typeof J==="number"){{if(J===139){let{loc:U,start:V,value:H,end:Q}=R,Y=V+1,F=xf(U.start,1);f.splice(W,1,new PG({type:jG(27),value:"#",start:V,end:Y,startLoc:U.start,endLoc:F}),new PG({type:jG(132),value:H,start:Y,end:Q,startLoc:F,endLoc:U.end})),W++;continue}if(UW(J)){let{loc:U,start:V,value:H,end:Q}=R,Y=V+1,F=xf(U.start,1),q;if(G.charCodeAt(V-X)===96)q=new PG({type:jG(22),value:"`",start:V,end:Y,startLoc:U.start,endLoc:F});else q=new PG({type:jG(8),value:"}",start:V,end:Y,startLoc:U.start,endLoc:F});let A,j,b,I;if(J===24)j=Q-1,b=xf(U.end,-1),A=H===null?null:H.slice(1,-1),I=new PG({type:jG(22),value:"`",start:j,end:Q,startLoc:b,endLoc:U.end});else j=Q-2,b=xf(U.end,-2),A=H===null?null:H.slice(1,-2),I=new PG({type:jG(23),value:"${",start:j,end:Q,startLoc:b,endLoc:U.end});f.splice(W,1,q,new PG({type:jG(20),value:A,start:Y,end:j,startLoc:F,endLoc:b}),I),W+=2;continue}}R.type=jG(J)}}return f}class R8 extends W8{parseTopLevel(f,G){if(f.program=this.parseProgram(G),f.comments=this.comments,this.optionFlags&128)f.tokens=bJf(this.tokens,this.input,this.startIndex);return this.finishNode(f,"File")}parseProgram(f,G=140,X=this.options.sourceType){if(f.sourceType=X,f.interpreter=this.parseInterpreterDirective(),this.parseBlockBody(f,!0,!0,G),this.inModule){if(!(this.optionFlags&32)&&this.scope.undefinedExports.size>0)for(let[R,J]of Array.from(this.scope.undefinedExports))this.raise($.ModuleExportUndefined,J,{localName:R});this.addExtra(f,"topLevelAwait",this.state.hasTopLevelAwait)}let W;if(G===140)W=this.finishNode(f,"Program");else W=this.finishNodeAt(f,"Program",xf(this.state.startLoc,-1));return W}stmtToDirective(f){let G=f;G.type="Directive",G.value=G.expression,delete G.expression;let X=G.value,W=X.value,R=this.input.slice(this.offsetToSourcePos(X.start),this.offsetToSourcePos(X.end)),J=X.value=R.slice(1,-1);return this.addExtra(X,"raw",R),this.addExtra(X,"rawValue",J),this.addExtra(X,"expressionValue",W),X.type="DirectiveLiteral",G}parseInterpreterDirective(){if(!this.match(28))return null;let f=this.startNode();return f.value=this.state.value,this.next(),this.finishNode(f,"InterpreterDirective")}isLet(){if(!this.isContextual(100))return!1;return this.hasFollowingBindingAtom()}chStartsBindingIdentifier(f,G){if(IG(f)){if(qR.lastIndex=G,qR.test(this.input)){let X=this.codePointAtPos(qR.lastIndex);if(!q1(X)&&X!==92)return!1}return!0}else if(f===92)return!0;else return!1}chStartsBindingPattern(f){return f===91||f===123}hasFollowingBindingAtom(){let f=this.nextTokenStart(),G=this.codePointAtPos(f);return this.chStartsBindingPattern(G)||this.chStartsBindingIdentifier(G,f)}hasInLineFollowingBindingIdentifierOrBrace(){let f=this.nextTokenInLineStart(),G=this.codePointAtPos(f);return G===123||this.chStartsBindingIdentifier(G,f)}startsUsingForOf(){let{type:f,containsEsc:G}=this.lookahead();if(f===102&&!G)return!1;else if($f(f)&&!this.hasFollowingLineBreak())return this.expectPlugin("explicitResourceManagement"),!0}startsAwaitUsing(){let f=this.nextTokenInLineStart();if(this.isUnparsedContextual(f,"using")){f=this.nextTokenInLineStartSince(f+5);let G=this.codePointAtPos(f);if(this.chStartsBindingIdentifier(G,f))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(f=!1){let G=0;if(this.options.annexB&&!this.state.strict){if(G|=4,f)G|=8}return this.parseStatementLike(G)}parseStatement(){return this.parseStatementLike(0)}parseStatementLike(f){let G=null;if(this.match(26))G=this.parseDecorators(!0);return this.parseStatementContent(f,G)}parseStatementContent(f,G){let X=this.state.type,W=this.startNode(),R=!!(f&2),J=!!(f&4),U=f&1;switch(X){case 60:return this.parseBreakContinueStatement(W,!0);case 63:return this.parseBreakContinueStatement(W,!1);case 64:return this.parseDebuggerStatement(W);case 90:return this.parseDoWhileStatement(W);case 91:return this.parseForStatement(W);case 68:if(this.lookaheadCharCode()===46)break;if(!J)this.raise(this.state.strict?$.StrictFunction:this.options.annexB?$.SloppyFunctionAnnexB:$.SloppyFunction,this.state.startLoc);return this.parseFunctionStatement(W,!1,!R&&J);case 80:if(!R)this.unexpected();return this.parseClass(this.maybeTakeDecorators(G,W),!0);case 69:return this.parseIfStatement(W);case 70:return this.parseReturnStatement(W);case 71:return this.parseSwitchStatement(W);case 72:return this.parseThrowStatement(W);case 73:return this.parseTryStatement(W);case 96:if(!this.state.containsEsc&&this.startsAwaitUsing()){if(!this.recordAwaitIfAllowed())this.raise($.AwaitUsingNotInAsyncContext,W);else if(!R)this.raise($.UnexpectedLexicalDeclaration,W);return this.next(),this.parseVarStatement(W,"await using")}break;case 107:if(this.state.containsEsc||!this.hasInLineFollowingBindingIdentifierOrBrace())break;if(this.expectPlugin("explicitResourceManagement"),!this.scope.inModule&&this.scope.inTopLevel)this.raise($.UnexpectedUsingDeclaration,this.state.startLoc);else if(!R)this.raise($.UnexpectedLexicalDeclaration,this.state.startLoc);return this.parseVarStatement(W,"using");case 100:{if(this.state.containsEsc)break;let Q=this.nextTokenStart(),Y=this.codePointAtPos(Q);if(Y!==91){if(!R&&this.hasFollowingLineBreak())break;if(!this.chStartsBindingIdentifier(Y,Q)&&Y!==123)break}}case 75:if(!R)this.raise($.UnexpectedLexicalDeclaration,this.state.startLoc);case 74:{let Q=this.state.value;return this.parseVarStatement(W,Q)}case 92:return this.parseWhileStatement(W);case 76:return this.parseWithStatement(W);case 5:return this.parseBlock();case 13:return this.parseEmptyStatement(W);case 83:{let Q=this.lookaheadCharCode();if(Q===40||Q===46)break}case 82:{if(!(this.optionFlags&8)&&!U)this.raise($.UnexpectedImportExport,this.state.startLoc);this.next();let Q;if(X===83)Q=this.parseImport(W);else Q=this.parseExport(W,G);return this.assertModuleNodeAllowed(Q),Q}default:if(this.isAsyncFunction()){if(!R)this.raise($.AsyncFunctionInSingleStatementContext,this.state.startLoc);return this.next(),this.parseFunctionStatement(W,!0,!R&&J)}}let V=this.state.value,H=this.parseExpression();if($f(X)&&H.type==="Identifier"&&this.eat(14))return this.parseLabeledStatement(W,V,H,f);else return this.parseExpressionStatement(W,H,G)}assertModuleNodeAllowed(f){if(!(this.optionFlags&8)&&!this.inModule)this.raise($.ImportOutsideModule,f)}decoratorsEnabledBeforeExport(){if(this.hasPlugin("decorators-legacy"))return!0;return this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")!==!1}maybeTakeDecorators(f,G,X){if(f){var W;if((W=G.decorators)!=null&&W.length){if(typeof this.getPluginOption("decorators","decoratorsBeforeExport")!=="boolean")this.raise($.DecoratorsBeforeAfterExport,G.decorators[0]);G.decorators.unshift(...f)}else G.decorators=f;if(this.resetStartLocationFromNode(G,f[0]),X)this.resetStartLocationFromNode(X,G)}return G}canHaveLeadingDecorator(){return this.match(80)}parseDecorators(f){let G=[];do G.push(this.parseDecorator());while(this.match(26));if(this.match(82)){if(!f)this.unexpected();if(!this.decoratorsEnabledBeforeExport())this.raise($.DecoratorExportClass,this.state.startLoc)}else if(!this.canHaveLeadingDecorator())throw this.raise($.UnexpectedLeadingDecorator,this.state.startLoc);return G}parseDecorator(){this.expectOnePlugin(["decorators","decorators-legacy"]);let f=this.startNode();if(this.next(),this.hasPlugin("decorators")){let G=this.state.startLoc,X;if(this.match(10)){let W=this.state.startLoc;this.next(),X=this.parseExpression(),this.expect(11),X=this.wrapParenthesis(W,X);let R=this.state.startLoc;if(f.expression=this.parseMaybeDecoratorArguments(X,W),this.getPluginOption("decorators","allowCallParenthesized")===!1&&f.expression!==X)this.raise($.DecoratorArgumentsOutsideParentheses,R)}else{X=this.parseIdentifier(!1);while(this.eat(16)){let W=this.startNodeAt(G);if(W.object=X,this.match(139))this.classScope.usePrivateName(this.state.value,this.state.startLoc),W.property=this.parsePrivateName();else W.property=this.parseIdentifier(!0);W.computed=!1,X=this.finishNode(W,"MemberExpression")}f.expression=this.parseMaybeDecoratorArguments(X,G)}}else f.expression=this.parseExprSubscripts();return this.finishNode(f,"Decorator")}parseMaybeDecoratorArguments(f,G){if(this.eat(10)){let X=this.startNodeAt(G);return X.callee=f,X.arguments=this.parseCallExpressionArguments(11),this.toReferencedList(X.arguments),this.finishNode(X,"CallExpression")}return f}parseBreakContinueStatement(f,G){if(this.next(),this.isLineTerminator())f.label=null;else f.label=this.parseIdentifier(),this.semicolon();return this.verifyBreakContinue(f,G),this.finishNode(f,G?"BreakStatement":"ContinueStatement")}verifyBreakContinue(f,G){let X;for(X=0;X<this.state.labels.length;++X){let W=this.state.labels[X];if(f.label==null||W.name===f.label.name){if(W.kind!=null&&(G||W.kind===1))break;if(f.label&&G)break}}if(X===this.state.labels.length){let W=G?"BreakStatement":"ContinueStatement";this.raise($.IllegalBreakContinue,f,{type:W})}}parseDebuggerStatement(f){return this.next(),this.semicolon(),this.finishNode(f,"DebuggerStatement")}parseHeaderExpression(){this.expect(10);let f=this.parseExpression();return this.expect(11),f}parseDoWhileStatement(f){return this.next(),this.state.labels.push(CR),f.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.state.labels.pop(),this.expect(92),f.test=this.parseHeaderExpression(),this.eat(13),this.finishNode(f,"DoWhileStatement")}parseForStatement(f){this.next(),this.state.labels.push(CR);let G=null;if(this.isContextual(96)&&this.recordAwaitIfAllowed())G=this.state.startLoc,this.next();if(this.scope.enter(0),this.expect(10),this.match(13)){if(G!==null)this.unexpected(G);return this.parseFor(f,null)}let X=this.isContextual(100);{let V=this.isContextual(96)&&this.startsAwaitUsing(),H=V||this.isContextual(107)&&this.startsUsingForOf(),Q=X&&this.hasFollowingBindingAtom()||H;if(this.match(74)||this.match(75)||Q){let Y=this.startNode(),F;if(V){if(F="await using",!this.recordAwaitIfAllowed())this.raise($.AwaitUsingNotInAsyncContext,this.state.startLoc);this.next()}else F=this.state.value;this.next(),this.parseVar(Y,!0,F);let q=this.finishNode(Y,"VariableDeclaration"),A=this.match(58);if(A&&H)this.raise($.ForInUsing,q);if((A||this.isContextual(102))&&q.declarations.length===1)return this.parseForIn(f,q,G);if(G!==null)this.unexpected(G);return this.parseFor(f,q)}}let W=this.isContextual(95),R=new WX,J=this.parseExpression(!0,R),U=this.isContextual(102);if(U){if(X)this.raise($.ForOfLet,J);if(G===null&&W&&J.type==="Identifier")this.raise($.ForOfAsync,J)}if(U||this.match(58)){this.checkDestructuringPrivate(R),this.toAssignable(J,!0);let V=U?"ForOfStatement":"ForInStatement";return this.checkLVal(J,{type:V}),this.parseForIn(f,J,G)}else this.checkExpressionErrors(R,!0);if(G!==null)this.unexpected(G);return this.parseFor(f,J)}parseFunctionStatement(f,G,X){return this.next(),this.parseFunction(f,1|(X?2:0)|(G?8:0))}parseIfStatement(f){return this.next(),f.test=this.parseHeaderExpression(),f.consequent=this.parseStatementOrSloppyAnnexBFunctionDeclaration(),f.alternate=this.eat(66)?this.parseStatementOrSloppyAnnexBFunctionDeclaration():null,this.finishNode(f,"IfStatement")}parseReturnStatement(f){if(!this.prodParam.hasReturn&&!(this.optionFlags&2))this.raise($.IllegalReturn,this.state.startLoc);if(this.next(),this.isLineTerminator())f.argument=null;else f.argument=this.parseExpression(),this.semicolon();return this.finishNode(f,"ReturnStatement")}parseSwitchStatement(f){this.next(),f.discriminant=this.parseHeaderExpression();let G=f.cases=[];this.expect(5),this.state.labels.push(NJf),this.scope.enter(0);let X;for(let W;!this.match(8);)if(this.match(61)||this.match(65)){let R=this.match(61);if(X)this.finishNode(X,"SwitchCase");if(G.push(X=this.startNode()),X.consequent=[],this.next(),R)X.test=this.parseExpression();else{if(W)this.raise($.MultipleDefaultsInSwitch,this.state.lastTokStartLoc);W=!0,X.test=null}this.expect(14)}else if(X)X.consequent.push(this.parseStatementListItem());else this.unexpected();if(this.scope.exit(),X)this.finishNode(X,"SwitchCase");return this.next(),this.state.labels.pop(),this.finishNode(f,"SwitchStatement")}parseThrowStatement(f){if(this.next(),this.hasPrecedingLineBreak())this.raise($.NewlineAfterThrow,this.state.lastTokEndLoc);return f.argument=this.parseExpression(),this.semicolon(),this.finishNode(f,"ThrowStatement")}parseCatchClauseParam(){let f=this.parseBindingAtom();return this.scope.enter(this.options.annexB&&f.type==="Identifier"?8:0),this.checkLVal(f,{type:"CatchClause"},9),f}parseTryStatement(f){if(this.next(),f.block=this.parseBlock(),f.handler=null,this.match(62)){let G=this.startNode();if(this.next(),this.match(10))this.expect(10),G.param=this.parseCatchClauseParam(),this.expect(11);else G.param=null,this.scope.enter(0);G.body=this.withSmartMixTopicForbiddingContext(()=>this.parseBlock(!1,!1)),this.scope.exit(),f.handler=this.finishNode(G,"CatchClause")}if(f.finalizer=this.eat(67)?this.parseBlock():null,!f.handler&&!f.finalizer)this.raise($.NoCatchOrFinally,f);return this.finishNode(f,"TryStatement")}parseVarStatement(f,G,X=!1){return this.next(),this.parseVar(f,!1,G,X),this.semicolon(),this.finishNode(f,"VariableDeclaration")}parseWhileStatement(f){return this.next(),f.test=this.parseHeaderExpression(),this.state.labels.push(CR),f.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.state.labels.pop(),this.finishNode(f,"WhileStatement")}parseWithStatement(f){if(this.state.strict)this.raise($.StrictWith,this.state.startLoc);return this.next(),f.object=this.parseHeaderExpression(),f.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.finishNode(f,"WithStatement")}parseEmptyStatement(f){return this.next(),this.finishNode(f,"EmptyStatement")}parseLabeledStatement(f,G,X,W){for(let J of this.state.labels)if(J.name===G)this.raise($.LabelRedeclaration,X,{labelName:G});let R=vRf(this.state.type)?1:this.match(71)?2:null;for(let J=this.state.labels.length-1;J>=0;J--){let U=this.state.labels[J];if(U.statementStart===f.start)U.statementStart=this.sourceToOffsetPos(this.state.start),U.kind=R;else break}return this.state.labels.push({name:G,kind:R,statementStart:this.sourceToOffsetPos(this.state.start)}),f.body=W&8?this.parseStatementOrSloppyAnnexBFunctionDeclaration(!0):this.parseStatement(),this.state.labels.pop(),f.label=X,this.finishNode(f,"LabeledStatement")}parseExpressionStatement(f,G,X){return f.expression=G,this.semicolon(),this.finishNode(f,"ExpressionStatement")}parseBlock(f=!1,G=!0,X){let W=this.startNode();if(f)this.state.strictErrors.clear();if(this.expect(5),G)this.scope.enter(0);if(this.parseBlockBody(W,f,!1,8,X),G)this.scope.exit();return this.finishNode(W,"BlockStatement")}isValidDirective(f){return f.type==="ExpressionStatement"&&f.expression.type==="StringLiteral"&&!f.expression.extra.parenthesized}parseBlockBody(f,G,X,W,R){let J=f.body=[],U=f.directives=[];this.parseBlockOrModuleBlockBody(J,G?U:void 0,X,W,R)}parseBlockOrModuleBlockBody(f,G,X,W,R){let J=this.state.strict,U=!1,V=!1;while(!this.match(W)){let H=X?this.parseModuleItem():this.parseStatementListItem();if(G&&!V){if(this.isValidDirective(H)){let Q=this.stmtToDirective(H);if(G.push(Q),!U&&Q.value.value==="use strict")U=!0,this.setStrict(!0);continue}V=!0,this.state.strictErrors.clear()}f.push(H)}if(R==null||R.call(this,U),!J)this.setStrict(!1);this.next()}parseFor(f,G){return f.init=G,this.semicolon(!1),f.test=this.match(13)?null:this.parseExpression(),this.semicolon(!1),f.update=this.match(11)?null:this.parseExpression(),this.expect(11),f.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.scope.exit(),this.state.labels.pop(),this.finishNode(f,"ForStatement")}parseForIn(f,G,X){let W=this.match(58);if(this.next(),W){if(X!==null)this.unexpected(X)}else f.await=X!==null;if(G.type==="VariableDeclaration"&&G.declarations[0].init!=null&&(!W||!this.options.annexB||this.state.strict||G.kind!=="var"||G.declarations[0].id.type!=="Identifier"))this.raise($.ForInOfLoopInitializer,G,{type:W?"ForInStatement":"ForOfStatement"});if(G.type==="AssignmentPattern")this.raise($.InvalidLhs,G,{ancestor:{type:"ForStatement"}});return f.left=G,f.right=W?this.parseExpression():this.parseMaybeAssignAllowIn(),this.expect(11),f.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.scope.exit(),this.state.labels.pop(),this.finishNode(f,W?"ForInStatement":"ForOfStatement")}parseVar(f,G,X,W=!1){let R=f.declarations=[];f.kind=X;for(;;){let J=this.startNode();if(this.parseVarId(J,X),J.init=!this.eat(29)?null:G?this.parseMaybeAssignDisallowIn():this.parseMaybeAssignAllowIn(),J.init===null&&!W){if(J.id.type!=="Identifier"&&!(G&&(this.match(58)||this.isContextual(102))))this.raise($.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:"destructuring"});else if((X==="const"||X==="using"||X==="await using")&&!(this.match(58)||this.isContextual(102)))this.raise($.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:X})}if(R.push(this.finishNode(J,"VariableDeclarator")),!this.eat(12))break}return f}parseVarId(f,G){let X=this.parseBindingAtom();if(G==="using"||G==="await using"){if(X.type==="ArrayPattern"||X.type==="ObjectPattern")this.raise($.UsingDeclarationHasBindingPattern,X.loc.start)}this.checkLVal(X,{type:"VariableDeclarator"},G==="var"?5:8201),f.id=X}parseAsyncFunctionExpression(f){return this.parseFunction(f,8)}parseFunction(f,G=0){let X=G&2,W=!!(G&1),R=W&&!(G&4),J=!!(G&8);if(this.initFunction(f,J),this.match(55)){if(X)this.raise($.GeneratorInSingleStatementContext,this.state.startLoc);this.next(),f.generator=!0}if(W)f.id=this.parseFunctionId(R);let U=this.state.maybeInArrowParameters;if(this.state.maybeInArrowParameters=!1,this.scope.enter(2),this.prodParam.enter(JW(J,f.generator)),!W)f.id=this.parseFunctionId();if(this.parseFunctionParams(f,!1),this.withSmartMixTopicForbiddingContext(()=>{this.parseFunctionBodyAndFinish(f,W?"FunctionDeclaration":"FunctionExpression")}),this.prodParam.exit(),this.scope.exit(),W&&!X)this.registerFunctionStatementId(f);return this.state.maybeInArrowParameters=U,f}parseFunctionId(f){return f||$f(this.state.type)?this.parseIdentifier():null}parseFunctionParams(f,G){this.expect(10),this.expressionScope.enter(RJf()),f.params=this.parseBindingList(11,41,2|(G?4:0)),this.expressionScope.exit()}registerFunctionStatementId(f){if(!f.id)return;this.scope.declareName(f.id.name,!this.options.annexB||this.state.strict||f.generator||f.async?this.scope.treatFunctionsAsVar?5:8201:17,f.id.loc.start)}parseClass(f,G,X){this.next();let W=this.state.strict;return this.state.strict=!0,this.parseClassId(f,G,X),this.parseClassSuper(f),f.body=this.parseClassBody(!!f.superClass,W),this.finishNode(f,G?"ClassDeclaration":"ClassExpression")}isClassProperty(){return this.match(29)||this.match(13)||this.match(8)}isClassMethod(){return this.match(10)}nameIsConstructor(f){return f.type==="Identifier"&&f.name==="constructor"||f.type==="StringLiteral"&&f.value==="constructor"}isNonstaticConstructor(f){return!f.computed&&!f.static&&this.nameIsConstructor(f.key)}parseClassBody(f,G){this.classScope.enter();let X={hadConstructor:!1,hadSuperClass:f},W=[],R=this.startNode();if(R.body=[],this.expect(5),this.withSmartMixTopicForbiddingContext(()=>{while(!this.match(8)){if(this.eat(13)){if(W.length>0)throw this.raise($.DecoratorSemicolon,this.state.lastTokEndLoc);continue}if(this.match(26)){W.push(this.parseDecorator());continue}let J=this.startNode();if(W.length)J.decorators=W,this.resetStartLocationFromNode(J,W[0]),W=[];if(this.parseClassMember(R,J,X),J.kind==="constructor"&&J.decorators&&J.decorators.length>0)this.raise($.DecoratorConstructor,J)}}),this.state.strict=G,this.next(),W.length)throw this.raise($.TrailingDecorator,this.state.startLoc);return this.classScope.exit(),this.finishNode(R,"ClassBody")}parseClassMemberFromModifier(f,G){let X=this.parseIdentifier(!0);if(this.isClassMethod()){let W=G;return W.kind="method",W.computed=!1,W.key=X,W.static=!1,this.pushClassMethod(f,W,!1,!1,!1,!1),!0}else if(this.isClassProperty()){let W=G;return W.computed=!1,W.key=X,W.static=!1,f.body.push(this.parseClassProperty(W)),!0}return this.resetPreviousNodeTrailingComments(X),!1}parseClassMember(f,G,X){let W=this.isContextual(106);if(W){if(this.parseClassMemberFromModifier(f,G))return;if(this.eat(5)){this.parseClassStaticBlock(f,G);return}}this.parseClassMemberWithIsStatic(f,G,X,W)}parseClassMemberWithIsStatic(f,G,X,W){let R=G,J=G,U=G,V=G,H=G,Q=R,Y=R;if(G.static=W,this.parsePropertyNamePrefixOperator(G),this.eat(55)){Q.kind="method";let I=this.match(139);if(this.parseClassElementName(Q),I){this.pushClassPrivateMethod(f,J,!0,!1);return}if(this.isNonstaticConstructor(R))this.raise($.ConstructorIsGenerator,R.key);this.pushClassMethod(f,R,!0,!1,!1,!1);return}let F=!this.state.containsEsc&&$f(this.state.type),q=this.parseClassElementName(G),A=F?q.name:null,j=this.isPrivateName(q),b=this.state.startLoc;if(this.parsePostMemberNameModifiers(Y),this.isClassMethod()){if(Q.kind="method",j){this.pushClassPrivateMethod(f,J,!1,!1);return}let I=this.isNonstaticConstructor(R),L=!1;if(I){if(R.kind="constructor",X.hadConstructor&&!this.hasPlugin("typescript"))this.raise($.DuplicateConstructor,q);if(I&&this.hasPlugin("typescript")&&G.override)this.raise($.OverrideOnConstructor,q);X.hadConstructor=!0,L=X.hadSuperClass}this.pushClassMethod(f,R,!1,!1,I,L)}else if(this.isClassProperty())if(j)this.pushClassPrivateProperty(f,V);else this.pushClassProperty(f,U);else if(A==="async"&&!this.isLineTerminator()){this.resetPreviousNodeTrailingComments(q);let I=this.eat(55);if(Y.optional)this.unexpected(b);Q.kind="method";let L=this.match(139);if(this.parseClassElementName(Q),this.parsePostMemberNameModifiers(Y),L)this.pushClassPrivateMethod(f,J,I,!0);else{if(this.isNonstaticConstructor(R))this.raise($.ConstructorIsAsync,R.key);this.pushClassMethod(f,R,I,!0,!1,!1)}}else if((A==="get"||A==="set")&&!(this.match(55)&&this.isLineTerminator())){this.resetPreviousNodeTrailingComments(q),Q.kind=A;let I=this.match(139);if(this.parseClassElementName(R),I)this.pushClassPrivateMethod(f,J,!1,!1);else{if(this.isNonstaticConstructor(R))this.raise($.ConstructorIsAccessor,R.key);this.pushClassMethod(f,R,!1,!1,!1,!1)}this.checkGetterSetterParams(R)}else if(A==="accessor"&&!this.isLineTerminator()){this.expectPlugin("decoratorAutoAccessors"),this.resetPreviousNodeTrailingComments(q);let I=this.match(139);this.parseClassElementName(U),this.pushClassAccessorProperty(f,H,I)}else if(this.isLineTerminator())if(j)this.pushClassPrivateProperty(f,V);else this.pushClassProperty(f,U);else this.unexpected()}parseClassElementName(f){let{type:G,value:X}=this.state;if((G===132||G===134)&&f.static&&X==="prototype")this.raise($.StaticPrototype,this.state.startLoc);if(G===139){if(X==="constructor")this.raise($.ConstructorClassPrivateField,this.state.startLoc);let W=this.parsePrivateName();return f.key=W,W}return this.parsePropertyName(f),f.key}parseClassStaticBlock(f,G){var X;this.scope.enter(208);let W=this.state.labels;this.state.labels=[],this.prodParam.enter(0);let R=G.body=[];if(this.parseBlockOrModuleBlockBody(R,void 0,!1,8),this.prodParam.exit(),this.scope.exit(),this.state.labels=W,f.body.push(this.finishNode(G,"StaticBlock")),(X=G.decorators)!=null&&X.length)this.raise($.DecoratorStaticBlock,G)}pushClassProperty(f,G){if(!G.computed&&this.nameIsConstructor(G.key))this.raise($.ConstructorClassField,G.key);f.body.push(this.parseClassProperty(G))}pushClassPrivateProperty(f,G){let X=this.parseClassPrivateProperty(G);f.body.push(X),this.classScope.declarePrivateName(this.getPrivateNameSV(X.key),0,X.key.loc.start)}pushClassAccessorProperty(f,G,X){if(!X&&!G.computed&&this.nameIsConstructor(G.key))this.raise($.ConstructorClassField,G.key);let W=this.parseClassAccessorProperty(G);if(f.body.push(W),X)this.classScope.declarePrivateName(this.getPrivateNameSV(W.key),0,W.key.loc.start)}pushClassMethod(f,G,X,W,R,J){f.body.push(this.parseMethod(G,X,W,R,J,"ClassMethod",!0))}pushClassPrivateMethod(f,G,X,W){let R=this.parseMethod(G,X,W,!1,!1,"ClassPrivateMethod",!0);f.body.push(R);let J=R.kind==="get"?R.static?6:2:R.kind==="set"?R.static?5:1:0;this.declareClassPrivateMethodInScope(R,J)}declareClassPrivateMethodInScope(f,G){this.classScope.declarePrivateName(this.getPrivateNameSV(f.key),G,f.key.loc.start)}parsePostMemberNameModifiers(f){}parseClassPrivateProperty(f){return this.parseInitializer(f),this.semicolon(),this.finishNode(f,"ClassPrivateProperty")}parseClassProperty(f){return this.parseInitializer(f),this.semicolon(),this.finishNode(f,"ClassProperty")}parseClassAccessorProperty(f){return this.parseInitializer(f),this.semicolon(),this.finishNode(f,"ClassAccessorProperty")}parseInitializer(f){this.scope.enter(80),this.expressionScope.enter(r9()),this.prodParam.enter(0),f.value=this.eat(29)?this.parseMaybeAssignAllowIn():null,this.expressionScope.exit(),this.prodParam.exit(),this.scope.exit()}parseClassId(f,G,X,W=8331){if($f(this.state.type)){if(f.id=this.parseIdentifier(),G)this.declareNameFromIdentifier(f.id,W)}else if(X||!G)f.id=null;else throw this.raise($.MissingClassName,this.state.startLoc)}parseClassSuper(f){f.superClass=this.eat(81)?this.parseExprSubscripts():null}parseExport(f,G){let X=this.parseMaybeImportPhase(f,!0),W=this.maybeParseExportDefaultSpecifier(f,X),R=!W||this.eat(12),J=R&&this.eatExportStar(f),U=J&&this.maybeParseExportNamespaceSpecifier(f),V=R&&(!U||this.eat(12)),H=W||J;if(J&&!U){if(W)this.unexpected();if(G)throw this.raise($.UnsupportedDecoratorExport,f);return this.parseExportFrom(f,!0),this.sawUnambiguousESM=!0,this.finishNode(f,"ExportAllDeclaration")}let Q=this.maybeParseExportNamedSpecifiers(f);if(W&&R&&!J&&!Q)this.unexpected(null,5);if(U&&V)this.unexpected(null,98);let Y;if(H||Q){if(Y=!1,G)throw this.raise($.UnsupportedDecoratorExport,f);this.parseExportFrom(f,H)}else Y=this.maybeParseExportDeclaration(f);if(H||Q||Y){var F;let q=f;if(this.checkExport(q,!0,!1,!!q.source),((F=q.declaration)==null?void 0:F.type)==="ClassDeclaration")this.maybeTakeDecorators(G,q.declaration,q);else if(G)throw this.raise($.UnsupportedDecoratorExport,f);return this.sawUnambiguousESM=!0,this.finishNode(q,"ExportNamedDeclaration")}if(this.eat(65)){let q=f,A=this.parseExportDefaultExpression();if(q.declaration=A,A.type==="ClassDeclaration")this.maybeTakeDecorators(G,A,q);else if(G)throw this.raise($.UnsupportedDecoratorExport,f);return this.checkExport(q,!0,!0),this.sawUnambiguousESM=!0,this.finishNode(q,"ExportDefaultDeclaration")}this.unexpected(null,5)}eatExportStar(f){return this.eat(55)}maybeParseExportDefaultSpecifier(f,G){if(G||this.isExportDefaultSpecifier()){this.expectPlugin("exportDefaultFrom",G==null?void 0:G.loc.start);let X=G||this.parseIdentifier(!0),W=this.startNodeAtNode(X);return W.exported=X,f.specifiers=[this.finishNode(W,"ExportDefaultSpecifier")],!0}return!1}maybeParseExportNamespaceSpecifier(f){if(this.isContextual(93)){var G,X;(X=(G=f).specifiers)!=null||(G.specifiers=[]);let W=this.startNodeAt(this.state.lastTokStartLoc);return this.next(),W.exported=this.parseModuleExportName(),f.specifiers.push(this.finishNode(W,"ExportNamespaceSpecifier")),!0}return!1}maybeParseExportNamedSpecifiers(f){if(this.match(5)){let G=f;if(!G.specifiers)G.specifiers=[];let X=G.exportKind==="type";if(G.specifiers.push(...this.parseExportSpecifiers(X)),G.source=null,this.hasPlugin("importAssertions"))G.assertions=[];else G.attributes=[];return G.declaration=null,!0}return!1}maybeParseExportDeclaration(f){if(this.shouldParseExportDeclaration()){if(f.specifiers=[],f.source=null,this.hasPlugin("importAssertions"))f.assertions=[];else f.attributes=[];return f.declaration=this.parseExportDeclaration(f),!0}return!1}isAsyncFunction(){if(!this.isContextual(95))return!1;let f=this.nextTokenInLineStart();return this.isUnparsedContextual(f,"function")}parseExportDefaultExpression(){let f=this.startNode();if(this.match(68))return this.next(),this.parseFunction(f,5);else if(this.isAsyncFunction())return this.next(),this.next(),this.parseFunction(f,13);if(this.match(80))return this.parseClass(f,!0,!0);if(this.match(26)){if(this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")===!0)this.raise($.DecoratorBeforeExport,this.state.startLoc);return this.parseClass(this.maybeTakeDecorators(this.parseDecorators(!1),this.startNode()),!0,!0)}if(this.match(75)||this.match(74)||this.isLet())throw this.raise($.UnsupportedDefaultExport,this.state.startLoc);let G=this.parseMaybeAssignAllowIn();return this.semicolon(),G}parseExportDeclaration(f){if(this.match(80))return this.parseClass(this.startNode(),!0,!1);return this.parseStatementListItem()}isExportDefaultSpecifier(){let{type:f}=this.state;if($f(f)){if(f===95&&!this.state.containsEsc||f===100)return!1;if((f===130||f===129)&&!this.state.containsEsc){let{type:W}=this.lookahead();if($f(W)&&W!==98||W===5)return this.expectOnePlugin(["flow","typescript"]),!1}}else if(!this.match(65))return!1;let G=this.nextTokenStart(),X=this.isUnparsedContextual(G,"from");if(this.input.charCodeAt(G)===44||$f(this.state.type)&&X)return!0;if(this.match(65)&&X){let W=this.input.charCodeAt(this.nextTokenStartSince(G+4));return W===34||W===39}return!1}parseExportFrom(f,G){if(this.eatContextual(98))f.source=this.parseImportSource(),this.checkExport(f),this.maybeParseImportAttributes(f),this.checkJSONModuleImport(f);else if(G)this.unexpected();this.semicolon()}shouldParseExportDeclaration(){let{type:f}=this.state;if(f===26){if(this.expectOnePlugin(["decorators","decorators-legacy"]),this.hasPlugin("decorators")){if(this.getPluginOption("decorators","decoratorsBeforeExport")===!0)this.raise($.DecoratorBeforeExport,this.state.startLoc);return!0}}if(this.isContextual(107))return this.raise($.UsingDeclarationExport,this.state.startLoc),!0;if(this.isContextual(96)&&this.startsAwaitUsing())return this.raise($.UsingDeclarationExport,this.state.startLoc),!0;return f===74||f===75||f===68||f===80||this.isLet()||this.isAsyncFunction()}checkExport(f,G,X,W){if(G){var R;if(X){if(this.checkDuplicateExports(f,"default"),this.hasPlugin("exportDefaultFrom")){var J;let U=f.declaration;if(U.type==="Identifier"&&U.name==="from"&&U.end-U.start===4&&!((J=U.extra)!=null&&J.parenthesized))this.raise($.ExportDefaultFromAsIdentifier,U)}}else if((R=f.specifiers)!=null&&R.length)for(let U of f.specifiers){let{exported:V}=U,H=V.type==="Identifier"?V.name:V.value;if(this.checkDuplicateExports(U,H),!W&&U.local){let{local:Q}=U;if(Q.type!=="Identifier")this.raise($.ExportBindingIsString,U,{localName:Q.value,exportName:H});else this.checkReservedWord(Q.name,Q.loc.start,!0,!1),this.scope.checkLocalExport(Q)}}else if(f.declaration){let U=f.declaration;if(U.type==="FunctionDeclaration"||U.type==="ClassDeclaration"){let{id:V}=U;if(!V)throw new Error("Assertion failure");this.checkDuplicateExports(f,V.name)}else if(U.type==="VariableDeclaration")for(let V of U.declarations)this.checkDeclaration(V.id)}}}checkDeclaration(f){if(f.type==="Identifier")this.checkDuplicateExports(f,f.name);else if(f.type==="ObjectPattern")for(let G of f.properties)this.checkDeclaration(G);else if(f.type==="ArrayPattern"){for(let G of f.elements)if(G)this.checkDeclaration(G)}else if(f.type==="ObjectProperty")this.checkDeclaration(f.value);else if(f.type==="RestElement")this.checkDeclaration(f.argument);else if(f.type==="AssignmentPattern")this.checkDeclaration(f.left)}checkDuplicateExports(f,G){if(this.exportedIdentifiers.has(G))if(G==="default")this.raise($.DuplicateDefaultExport,f);else this.raise($.DuplicateExport,f,{exportName:G});this.exportedIdentifiers.add(G)}parseExportSpecifiers(f){let G=[],X=!0;this.expect(5);while(!this.eat(8)){if(X)X=!1;else if(this.expect(12),this.eat(8))break;let W=this.isContextual(130),R=this.match(134),J=this.startNode();J.local=this.parseModuleExportName(),G.push(this.parseExportSpecifier(J,R,f,W))}return G}parseExportSpecifier(f,G,X,W){if(this.eatContextual(93))f.exported=this.parseModuleExportName();else if(G)f.exported=HJf(f.local);else if(!f.exported)f.exported=LG(f.local);return this.finishNode(f,"ExportSpecifier")}parseModuleExportName(){if(this.match(134)){let f=this.parseStringLiteral(this.state.value),G=LJf.exec(f.value);if(G)this.raise($.ModuleExportNameHasLoneSurrogate,f,{surrogateCharCode:G[0].charCodeAt(0)});return f}return this.parseIdentifier(!0)}isJSONModuleImport(f){if(f.assertions!=null)return f.assertions.some(({key:G,value:X})=>{return X.value==="json"&&(G.type==="Identifier"?G.name==="type":G.value==="type")});return!1}checkImportReflection(f){let{specifiers:G}=f,X=G.length===1?G[0].type:null;if(f.phase==="source"){if(X!=="ImportDefaultSpecifier")this.raise($.SourcePhaseImportRequiresDefault,G[0].loc.start)}else if(f.phase==="defer"){if(X!=="ImportNamespaceSpecifier")this.raise($.DeferImportRequiresNamespace,G[0].loc.start)}else if(f.module){var W;if(X!=="ImportDefaultSpecifier")this.raise($.ImportReflectionNotBinding,G[0].loc.start);if(((W=f.assertions)==null?void 0:W.length)>0)this.raise($.ImportReflectionHasAssertion,G[0].loc.start)}}checkJSONModuleImport(f){if(this.isJSONModuleImport(f)&&f.type!=="ExportAllDeclaration"){let{specifiers:G}=f;if(G!=null){let X=G.find((W)=>{let R;if(W.type==="ExportSpecifier")R=W.local;else if(W.type==="ImportSpecifier")R=W.imported;if(R!==void 0)return R.type==="Identifier"?R.name!=="default":R.value!=="default"});if(X!==void 0)this.raise($.ImportJSONBindingNotDefault,X.loc.start)}}}isPotentialImportPhase(f){if(f)return!1;return this.isContextual(105)||this.isContextual(97)||this.isContextual(127)}applyImportPhase(f,G,X,W){if(G)return;if(X==="module")this.expectPlugin("importReflection",W),f.module=!0;else if(this.hasPlugin("importReflection"))f.module=!1;if(X==="source")this.expectPlugin("sourcePhaseImports",W),f.phase="source";else if(X==="defer")this.expectPlugin("deferredImportEvaluation",W),f.phase="defer";else if(this.hasPlugin("sourcePhaseImports"))f.phase=null}parseMaybeImportPhase(f,G){if(!this.isPotentialImportPhase(G))return this.applyImportPhase(f,G,null),null;let X=this.parseIdentifier(!0),{type:W}=this.state;if(HG(W)?W!==98||this.lookaheadCharCode()===102:W!==12)return this.resetPreviousIdentifierLeadingComments(X),this.applyImportPhase(f,G,X.name,X.loc.start),null;else return this.applyImportPhase(f,G,null),X}isPrecedingIdImportPhase(f){let{type:G}=this.state;return $f(G)?G!==98||this.lookaheadCharCode()===102:G!==12}parseImport(f){if(this.match(134))return this.parseImportSourceAndAttributes(f);return this.parseImportSpecifiersAndAfter(f,this.parseMaybeImportPhase(f,!1))}parseImportSpecifiersAndAfter(f,G){f.specifiers=[];let W=!this.maybeParseDefaultImportSpecifier(f,G)||this.eat(12),R=W&&this.maybeParseStarImportSpecifier(f);if(W&&!R)this.parseNamedImportSpecifiers(f);return this.expectContextual(98),this.parseImportSourceAndAttributes(f)}parseImportSourceAndAttributes(f){var G;return(G=f.specifiers)!=null||(f.specifiers=[]),f.source=this.parseImportSource(),this.maybeParseImportAttributes(f),this.checkImportReflection(f),this.checkJSONModuleImport(f),this.semicolon(),this.sawUnambiguousESM=!0,this.finishNode(f,"ImportDeclaration")}parseImportSource(){if(!this.match(134))this.unexpected();return this.parseExprAtom()}parseImportSpecifierLocal(f,G,X){G.local=this.parseIdentifier(),f.specifiers.push(this.finishImportSpecifier(G,X))}finishImportSpecifier(f,G,X=8201){return this.checkLVal(f.local,{type:G},X),this.finishNode(f,G)}parseImportAttributes(){this.expect(5);let f=[],G=new Set;do{if(this.match(8))break;let X=this.startNode(),W=this.state.value;if(G.has(W))this.raise($.ModuleAttributesWithDuplicateKeys,this.state.startLoc,{key:W});if(G.add(W),this.match(134))X.key=this.parseStringLiteral(W);else X.key=this.parseIdentifier(!0);if(this.expect(14),!this.match(134))throw this.raise($.ModuleAttributeInvalidValue,this.state.startLoc);X.value=this.parseStringLiteral(this.state.value),f.push(this.finishNode(X,"ImportAttribute"))}while(this.eat(12));return this.expect(8),f}parseModuleAttributes(){let f=[],G=new Set;do{let X=this.startNode();if(X.key=this.parseIdentifier(!0),X.key.name!=="type")this.raise($.ModuleAttributeDifferentFromType,X.key);if(G.has(X.key.name))this.raise($.ModuleAttributesWithDuplicateKeys,X.key,{key:X.key.name});if(G.add(X.key.name),this.expect(14),!this.match(134))throw this.raise($.ModuleAttributeInvalidValue,this.state.startLoc);X.value=this.parseStringLiteral(this.state.value),f.push(this.finishNode(X,"ImportAttribute"))}while(this.eat(12));return f}maybeParseImportAttributes(f){let G;var X=!1;if(this.match(76)){if(this.hasPrecedingLineBreak()&&this.lookaheadCharCode()===40)return;if(this.next(),this.hasPlugin("moduleAttributes"))G=this.parseModuleAttributes();else G=this.parseImportAttributes();X=!0}else if(this.isContextual(94)&&!this.hasPrecedingLineBreak()){if(!this.hasPlugin("deprecatedImportAssert")&&!this.hasPlugin("importAssertions"))this.raise($.ImportAttributesUseAssert,this.state.startLoc);if(!this.hasPlugin("importAssertions"))this.addExtra(f,"deprecatedAssertSyntax",!0);this.next(),G=this.parseImportAttributes()}else G=[];if(!X&&this.hasPlugin("importAssertions"))f.assertions=G;else f.attributes=G}maybeParseDefaultImportSpecifier(f,G){if(G){let X=this.startNodeAtNode(G);return X.local=G,f.specifiers.push(this.finishImportSpecifier(X,"ImportDefaultSpecifier")),!0}else if(HG(this.state.type))return this.parseImportSpecifierLocal(f,this.startNode(),"ImportDefaultSpecifier"),!0;return!1}maybeParseStarImportSpecifier(f){if(this.match(55)){let G=this.startNode();return this.next(),this.expectContextual(93),this.parseImportSpecifierLocal(f,G,"ImportNamespaceSpecifier"),!0}return!1}parseNamedImportSpecifiers(f){let G=!0;this.expect(5);while(!this.eat(8)){if(G)G=!1;else{if(this.eat(14))throw this.raise($.DestructureNamedImport,this.state.startLoc);if(this.expect(12),this.eat(8))break}let X=this.startNode(),W=this.match(134),R=this.isContextual(130);X.imported=this.parseModuleExportName();let J=this.parseImportSpecifier(X,W,f.importKind==="type"||f.importKind==="typeof",R,void 0);f.specifiers.push(J)}}parseImportSpecifier(f,G,X,W,R){if(this.eatContextual(93))f.local=this.parseIdentifier();else{let{imported:J}=f;if(G)throw this.raise($.ImportBindingIsString,f,{importName:J.value});if(this.checkReservedWord(J.name,f.loc.start,!0,!0),!f.local)f.local=LG(J)}return this.finishImportSpecifier(f,"ImportSpecifier",R)}isThisParam(f){return f.type==="Identifier"&&f.name==="this"}}class uR extends R8{constructor(f,G,X){f=IRf(f);super(f,G);this.options=f,this.initializeScopes(),this.plugins=X,this.filename=f.sourceFilename,this.startIndex=f.startIndex;let W=0;if(f.allowAwaitOutsideFunction)W|=1;if(f.allowReturnOutsideFunction)W|=2;if(f.allowImportExportEverywhere)W|=8;if(f.allowSuperOutsideMethod)W|=16;if(f.allowUndeclaredExports)W|=32;if(f.allowNewTargetOutsideFunction)W|=4;if(f.ranges)W|=64;if(f.tokens)W|=128;if(f.createImportExpressions)W|=256;if(f.createParenthesizedExpressions)W|=512;if(f.errorRecovery)W|=1024;if(f.attachComment)W|=2048;if(f.annexB)W|=4096;this.optionFlags=W}getScopeHandler(){return HW}parse(){this.enterInitialScopes();let f=this.startNode(),G=this.startNode();return this.nextToken(),f.errors=null,this.parseTopLevel(f,G),f.errors=this.state.errors,f.comments.length=this.state.commentsLen,f}}function EJf(f,G){var X;if(((X=G)==null?void 0:X.sourceType)==="unambiguous"){G=Object.assign({},G);try{G.sourceType="module";let W=GX(G,f),R=W.parse();if(W.sawUnambiguousESM)return R;if(W.ambiguousScriptDifferentAst)try{return G.sourceType="script",GX(G,f).parse()}catch(J){}else R.program.sourceType="script";return R}catch(W){try{return G.sourceType="script",GX(G,f).parse()}catch(R){}throw W}}else return GX(G,f).parse()}function wJf(f,G){let X=GX(G,f);if(X.options.strictMode)X.state.strict=!0;return X.getExpression()}function kJf(f){let G={};for(let X of Object.keys(f))G[X]=jG(f[X]);return G}var vJf=kJf(bRf);function GX(f,G){let X=uR,W=new Map;if(f!=null&&f.plugins){for(let R of f.plugins){let J,U;if(typeof R==="string")J=R;else[J,U]=R;if(!W.has(J))W.set(J,U||{})}IJf(W),X=gJf(W)}return new X(f,G,W)}var T9=new Map;function gJf(f){let G=[];for(let R of TJf)if(f.has(R))G.push(R);let X=G.join("|"),W=T9.get(X);if(!W){W=uR;for(let R of G)W=X8[R](W);T9.set(X,W)}return W}J8.parse=EJf;J8.parseExpression=wJf;J8.tokTypes=vJf});var hR=P((U8)=>{Object.defineProperty(U8,"__esModule",{value:!0});U8.Var=U8.User=U8.Statement=U8.SpreadProperty=U8.Scope=U8.RestProperty=U8.ReferencedMemberExpression=U8.ReferencedIdentifier=U8.Referenced=U8.Pure=U8.NumericLiteralTypeAnnotation=U8.Generated=U8.ForAwaitStatement=U8.Flow=U8.Expression=U8.ExistentialTypeParam=U8.BlockScoped=U8.BindingIdentifier=void 0;var nKf=U8.ReferencedIdentifier=["Identifier","JSXIdentifier"],oKf=U8.ReferencedMemberExpression=["MemberExpression"],eKf=U8.BindingIdentifier=["Identifier"],fSf=U8.Statement=["Statement"],GSf=U8.Expression=["Expression"],XSf=U8.Scope=["Scopable","Pattern"],WSf=U8.Referenced=null,RSf=U8.BlockScoped=null,JSf=U8.Var=["VariableDeclaration"],USf=U8.User=null,VSf=U8.Generated=null,HSf=U8.Pure=null,QSf=U8.Flow=["Flow","ImportDeclaration","ExportDeclaration","ImportSpecifier"],ZSf=U8.RestProperty=["RestElement"],YSf=U8.SpreadProperty=["RestElement"],zSf=U8.ExistentialTypeParam=["ExistsTypeAnnotation"],BSf=U8.NumericLiteralTypeAnnotation=["NumberLiteralTypeAnnotation"],MSf=U8.ForAwaitStatement=["ForOfStatement"]});var Q8=P((SSf,H8)=>{var O1=1000,j1=O1*60,P1=j1*60,eG=P1*24,XUf=eG*7,WUf=eG*365.25;H8.exports=function(f,G){G=G||{};var X=typeof f;if(X==="string"&&f.length>0)return RUf(f);else if(X==="number"&&isFinite(f))return G.long?UUf(f):JUf(f);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(f))};function RUf(f){if(f=String(f),f.length>100)return;var G=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(f);if(!G)return;var X=parseFloat(G[1]),W=(G[2]||"ms").toLowerCase();switch(W){case"years":case"year":case"yrs":case"yr":case"y":return X*WUf;case"weeks":case"week":case"w":return X*XUf;case"days":case"day":case"d":return X*eG;case"hours":case"hour":case"hrs":case"hr":case"h":return X*P1;case"minutes":case"minute":case"mins":case"min":case"m":return X*j1;case"seconds":case"second":case"secs":case"sec":case"s":return X*O1;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return X;default:return}}function JUf(f){var G=Math.abs(f);if(G>=eG)return Math.round(f/eG)+"d";if(G>=P1)return Math.round(f/P1)+"h";if(G>=j1)return Math.round(f/j1)+"m";if(G>=O1)return Math.round(f/O1)+"s";return f+"ms"}function UUf(f){var G=Math.abs(f);if(G>=eG)return ZW(f,G,eG,"day");if(G>=P1)return ZW(f,G,P1,"hour");if(G>=j1)return ZW(f,G,j1,"minute");if(G>=O1)return ZW(f,G,O1,"second");return f+" ms"}function ZW(f,G,X,W){var R=G>=X*1.5;return Math.round(f/X)+" "+W+(R?"s":"")}});var yR=P((FSf,Z8)=>{function VUf(f){X.debug=X,X.default=X,X.coerce=H,X.disable=U,X.enable=R,X.enabled=V,X.humanize=Q8(),X.destroy=Q,Object.keys(f).forEach((Y)=>{X[Y]=f[Y]}),X.names=[],X.skips=[],X.formatters={};function G(Y){let F=0;for(let q=0;q<Y.length;q++)F=(F<<5)-F+Y.charCodeAt(q),F|=0;return X.colors[Math.abs(F)%X.colors.length]}X.selectColor=G;function X(Y){let F,q=null,A,j;function b(...I){if(!b.enabled)return;let L=b,E=Number(new Date),Xf=E-(F||E);if(L.diff=Xf,L.prev=F,L.curr=E,F=E,I[0]=X.coerce(I[0]),typeof I[0]!=="string")I.unshift("%O");let s=0;I[0]=I[0].replace(/%([a-zA-Z%])/g,(Kf,bf)=>{if(Kf==="%%")return"%";s++;let wf=X.formatters[bf];if(typeof wf==="function"){let y=I[s];Kf=wf.call(L,y),I.splice(s,1),s--}return Kf}),X.formatArgs.call(L,I),(L.log||X.log).apply(L,I)}if(b.namespace=Y,b.useColors=X.useColors(),b.color=X.selectColor(Y),b.extend=W,b.destroy=X.destroy,Object.defineProperty(b,"enabled",{enumerable:!0,configurable:!1,get:()=>{if(q!==null)return q;if(A!==X.namespaces)A=X.namespaces,j=X.enabled(Y);return j},set:(I)=>{q=I}}),typeof X.init==="function")X.init(b);return b}function W(Y,F){let q=X(this.namespace+(typeof F==="undefined"?":":F)+Y);return q.log=this.log,q}function R(Y){X.save(Y),X.namespaces=Y,X.names=[],X.skips=[];let F=(typeof Y==="string"?Y:"").trim().replace(" ",",").split(",").filter(Boolean);for(let q of F)if(q[0]==="-")X.skips.push(q.slice(1));else X.names.push(q)}function J(Y,F){let q=0,A=0,j=-1,b=0;while(q<Y.length)if(A<F.length&&(F[A]===Y[q]||F[A]==="*"))if(F[A]==="*")j=A,b=q,A++;else q++,A++;else if(j!==-1)A=j+1,b++,q=b;else return!1;while(A<F.length&&F[A]==="*")A++;return A===F.length}function U(){let Y=[...X.names,...X.skips.map((F)=>"-"+F)].join(",");return X.enable(""),Y}function V(Y){for(let F of X.skips)if(J(Y,F))return!1;for(let F of X.names)if(J(Y,F))return!0;return!1}function H(Y){if(Y instanceof Error)return Y.stack||Y.message;return Y}function Q(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return X.enable(X.load()),X}Z8.exports=VUf});var z8=P((Y8,zW)=>{Y8.formatArgs=QUf;Y8.save=ZUf;Y8.load=YUf;Y8.useColors=HUf;Y8.storage=zUf();Y8.destroy=(()=>{let f=!1;return()=>{if(!f)f=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}})();Y8.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function HUf(){if(typeof window!=="undefined"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let f;return typeof document!=="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!=="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!=="undefined"&&navigator.userAgent&&(f=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(f[1],10)>=31||typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function QUf(f){if(f[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+f[0]+(this.useColors?"%c ":" ")+"+"+zW.exports.humanize(this.diff),!this.useColors)return;let G="color: "+this.color;f.splice(1,0,G,"color: inherit");let X=0,W=0;f[0].replace(/%[a-zA-Z%]/g,(R)=>{if(R==="%%")return;if(X++,R==="%c")W=X}),f.splice(W,0,G)}Y8.log=console.debug||console.log||(()=>{});function ZUf(f){try{if(f)Y8.storage.setItem("debug",f);else Y8.storage.removeItem("debug")}catch(G){}}function YUf(){let f;try{f=Y8.storage.getItem("debug")}catch(G){}if(!f&&typeof process!=="undefined"&&"env"in process)f=process.env.DEBUG;return f}function zUf(){try{return localStorage}catch(f){}}zW.exports=yR()(Y8);var{formatters:BUf}=zW.exports;BUf.j=function(f){try{return JSON.stringify(f)}catch(G){return"[UnexpectedJSONParseError]: "+G.message}}});var M8={};V5(M8,{default:()=>IUf,createSupportsColor:()=>xR});import mR from"node:process";import AUf from"node:os";import B8 from"node:tty";function XG(f,G=globalThis.Deno?globalThis.Deno.args:mR.argv){let X=f.startsWith("-")?"":f.length===1?"-":"--",W=G.indexOf(X+f),R=G.indexOf("--");return W!==-1&&(R===-1||W<R)}function OUf(){if("FORCE_COLOR"in If){if(If.FORCE_COLOR==="true")return 1;if(If.FORCE_COLOR==="false")return 0;return If.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(If.FORCE_COLOR,10),3)}}function jUf(f){if(f===0)return!1;return{level:f,hasBasic:!0,has256:f>=2,has16m:f>=3}}function PUf(f,{streamIsTTY:G,sniffFlags:X=!0}={}){let W=OUf();if(W!==void 0)BW=W;let R=X?BW:W;if(R===0)return 0;if(X){if(XG("color=16m")||XG("color=full")||XG("color=truecolor"))return 3;if(XG("color=256"))return 2}if("TF_BUILD"in If&&"AGENT_NAME"in If)return 1;if(f&&!G&&R===void 0)return 0;let J=R||0;if(If.TERM==="dumb")return J;if(mR.platform==="win32"){let U=AUf.release().split(".");if(Number(U[0])>=10&&Number(U[2])>=10586)return Number(U[2])>=14931?3:2;return 1}if("CI"in If){if("GITHUB_ACTIONS"in If||"GITEA_ACTIONS"in If)return 3;if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some((U)=>(U in If))||If.CI_NAME==="codeship")return 1;return J}if("TEAMCITY_VERSION"in If)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(If.TEAMCITY_VERSION)?1:0;if(If.COLORTERM==="truecolor")return 3;if(If.TERM==="xterm-kitty")return 3;if("TERM_PROGRAM"in If){let U=Number.parseInt((If.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(If.TERM_PROGRAM){case"iTerm.app":return U>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(If.TERM))return 2;if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(If.TERM))return 1;if("COLORTERM"in If)return 1;return J}function xR(f,G={}){let X=PUf(f,{streamIsTTY:f&&f.isTTY,...G});return jUf(X)}var If,BW,DUf,IUf;var K8=H5(()=>{({env:If}=mR);if(XG("no-color")||XG("no-colors")||XG("color=false")||XG("color=never"))BW=0;else if(XG("color")||XG("colors")||XG("color=true")||XG("color=always"))BW=1;DUf={stdout:xR({isTTY:B8.isatty(1)}),stderr:xR({isTTY:B8.isatty(2)})},IUf=DUf});var C8=P((F8,KW)=>{var TUf=sJ("node:tty"),MW=sJ("node:util");F8.init=vUf;F8.log=EUf;F8.formatArgs=LUf;F8.save=wUf;F8.load=kUf;F8.useColors=NUf;F8.destroy=MW.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");F8.colors=[6,2,3,4,5,1];try{let f=(K8(),U5(M8));if(f&&(f.stderr||f).level>=2)F8.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221]}catch(f){}F8.inspectOpts=Object.keys(process.env).filter((f)=>{return/^debug_/i.test(f)}).reduce((f,G)=>{let X=G.substring(6).toLowerCase().replace(/_([a-z])/g,(R,J)=>{return J.toUpperCase()}),W=process.env[G];if(/^(yes|on|true|enabled)$/i.test(W))W=!0;else if(/^(no|off|false|disabled)$/i.test(W))W=!1;else if(W==="null")W=null;else W=Number(W);return f[X]=W,f},{});function NUf(){return"colors"in F8.inspectOpts?Boolean(F8.inspectOpts.colors):TUf.isatty(process.stderr.fd)}function LUf(f){let{namespace:G,useColors:X}=this;if(X){let W=this.color,R="\x1B[3"+(W<8?W:"8;5;"+W),J=` ${R};1m${G} \x1B[0m`;f[0]=J+f[0].split(`
|
|
20
|
+
`;else Y=String.fromCharCode(Q);return++this.state.curLine,this.state.lineStart=this.state.pos,Y}jsxReadString(Z){let Q="",Y=++this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(j.UnterminatedString,this.state.startLoc);let z=this.input.charCodeAt(this.state.pos);if(z===Z)break;if(z===38)Q+=this.input.slice(Y,this.state.pos),Q+=this.jsxReadEntity(),Y=this.state.pos;else if(u0(z))Q+=this.input.slice(Y,this.state.pos),Q+=this.jsxReadNewLine(!1),Y=this.state.pos;else++this.state.pos}Q+=this.input.slice(Y,this.state.pos++),this.finishToken(134,Q)}jsxReadEntity(){let Z=++this.state.pos;if(this.codePointAtPos(this.state.pos)===35){++this.state.pos;let Q=10;if(this.codePointAtPos(this.state.pos)===120)Q=16,++this.state.pos;let Y=this.readInt(Q,void 0,!1,"bail");if(Y!==null&&this.codePointAtPos(this.state.pos)===59)return++this.state.pos,String.fromCodePoint(Y)}else{let Q=0,Y=!1;while(Q++<10&&this.state.pos<this.length&&!(Y=this.codePointAtPos(this.state.pos)===59))++this.state.pos;if(Y){let z=this.input.slice(Z,this.state.pos),H=GQ1[z];if(++this.state.pos,H)return H}}return this.state.pos=Z,"&"}jsxReadWord(){let Z,Q=this.state.pos;do Z=this.input.charCodeAt(++this.state.pos);while(q0(Z)||Z===45);this.finishToken(141,this.input.slice(Q,this.state.pos))}jsxParseIdentifier(){let Z=this.startNode();if(this.match(141))Z.name=this.state.value;else if(W8(this.state.type))Z.name=X0(this.state.type);else this.unexpected();return this.next(),this.finishNode(Z,"JSXIdentifier")}jsxParseNamespacedName(){let Z=this.state.startLoc,Q=this.jsxParseIdentifier();if(!this.eat(14))return Q;let Y=this.startNodeAt(Z);return Y.namespace=Q,Y.name=this.jsxParseIdentifier(),this.finishNode(Y,"JSXNamespacedName")}jsxParseElementName(){let Z=this.state.startLoc,Q=this.jsxParseNamespacedName();if(Q.type==="JSXNamespacedName")return Q;while(this.eat(16)){let Y=this.startNodeAt(Z);Y.object=Q,Y.property=this.jsxParseIdentifier(),Q=this.finishNode(Y,"JSXMemberExpression")}return Q}jsxParseAttributeValue(){let Z;switch(this.state.type){case 5:if(Z=this.startNode(),this.setContext(j1.brace),this.next(),Z=this.jsxParseExpressionContainer(Z,j1.j_oTag),Z.expression.type==="JSXEmptyExpression")this.raise($0.AttributeIsEmpty,Z);return Z;case 143:case 134:return this.parseExprAtom();default:throw this.raise($0.UnsupportedJsxValue,this.state.startLoc)}}jsxParseEmptyExpression(){let Z=this.startNodeAt(this.state.lastTokEndLoc);return this.finishNodeAt(Z,"JSXEmptyExpression",this.state.startLoc)}jsxParseSpreadChild(Z){return this.next(),Z.expression=this.parseExpression(),this.setContext(j1.j_expr),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(Z,"JSXSpreadChild")}jsxParseExpressionContainer(Z,Q){if(this.match(8))Z.expression=this.jsxParseEmptyExpression();else{let Y=this.parseExpression();Z.expression=Y}return this.setContext(Q),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(Z,"JSXExpressionContainer")}jsxParseAttribute(){let Z=this.startNode();if(this.match(5))return this.setContext(j1.brace),this.next(),this.expect(21),Z.argument=this.parseMaybeAssignAllowIn(),this.setContext(j1.j_oTag),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(Z,"JSXSpreadAttribute");return Z.name=this.jsxParseNamespacedName(),Z.value=this.eat(29)?this.jsxParseAttributeValue():null,this.finishNode(Z,"JSXAttribute")}jsxParseOpeningElementAt(Z){let Q=this.startNodeAt(Z);if(this.eat(144))return this.finishNode(Q,"JSXOpeningFragment");return Q.name=this.jsxParseElementName(),this.jsxParseOpeningElementAfterName(Q)}jsxParseOpeningElementAfterName(Z){let Q=[];while(!this.match(56)&&!this.match(144))Q.push(this.jsxParseAttribute());return Z.attributes=Q,Z.selfClosing=this.eat(56),this.expect(144),this.finishNode(Z,"JSXOpeningElement")}jsxParseClosingElementAt(Z){let Q=this.startNodeAt(Z);if(this.eat(144))return this.finishNode(Q,"JSXClosingFragment");return Q.name=this.jsxParseElementName(),this.expect(144),this.finishNode(Q,"JSXClosingElement")}jsxParseElementAt(Z){let Q=this.startNodeAt(Z),Y=[],z=this.jsxParseOpeningElementAt(Z),H=null;if(!z.selfClosing){J:for(;;)switch(this.state.type){case 143:if(Z=this.state.startLoc,this.next(),this.eat(56)){H=this.jsxParseClosingElementAt(Z);break J}Y.push(this.jsxParseElementAt(Z));break;case 142:Y.push(this.parseLiteral(this.state.value,"JSXText"));break;case 5:{let G=this.startNode();if(this.setContext(j1.brace),this.next(),this.match(21))Y.push(this.jsxParseSpreadChild(G));else Y.push(this.jsxParseExpressionContainer(G,j1.j_expr));break}default:this.unexpected()}if(J0(z)&&!J0(H)&&H!==null)this.raise($0.MissingClosingTagFragment,H);else if(!J0(z)&&J0(H))this.raise($0.MissingClosingTagElement,H,{openingTagName:y0(z.name)});else if(!J0(z)&&!J0(H)){if(y0(H.name)!==y0(z.name))this.raise($0.MissingClosingTagElement,H,{openingTagName:y0(z.name)})}}if(J0(z))Q.openingFragment=z,Q.closingFragment=H;else Q.openingElement=z,Q.closingElement=H;if(Q.children=Y,this.match(47))throw this.raise($0.UnwrappedAdjacentJSXElements,this.state.startLoc);return J0(z)?this.finishNode(Q,"JSXFragment"):this.finishNode(Q,"JSXElement")}jsxParseElement(){let Z=this.state.startLoc;return this.next(),this.jsxParseElementAt(Z)}setContext(Z){let{context:Q}=this.state;Q[Q.length-1]=Z}parseExprAtom(Z){if(this.match(143))return this.jsxParseElement();else if(this.match(47)&&this.input.charCodeAt(this.state.pos)!==33)return this.replaceToken(143),this.jsxParseElement();else return super.parseExprAtom(Z)}skipSpace(){if(!this.curContext().preserveSpace)super.skipSpace()}getTokenFromCode(Z){let Q=this.curContext();if(Q===j1.j_expr){this.jsxReadToken();return}if(Q===j1.j_oTag||Q===j1.j_cTag){if(kJ(Z)){this.jsxReadWord();return}if(Z===62){++this.state.pos,this.finishToken(144);return}if((Z===34||Z===39)&&Q===j1.j_oTag){this.jsxReadString(Z);return}}if(Z===60&&this.state.canStartJSXElement&&this.input.charCodeAt(this.state.pos+1)!==33){++this.state.pos,this.finishToken(143);return}super.getTokenFromCode(Z)}updateContext(Z){let{context:Q,type:Y}=this.state;if(Y===56&&Z===143)Q.splice(-2,2,j1.j_cTag),this.state.canStartJSXElement=!1;else if(Y===143)Q.push(j1.j_oTag);else if(Y===144){let z=Q[Q.length-1];if(z===j1.j_oTag&&Z===56||z===j1.j_cTag)Q.pop(),this.state.canStartJSXElement=Q[Q.length-1]===j1.j_expr;else this.setContext(j1.j_expr),this.state.canStartJSXElement=!0}else this.state.canStartJSXElement=fZ1(Y)}};class Bz extends b9{constructor(...J){super(...J);this.tsNames=new Map}}class Rz extends k9{constructor(...J){super(...J);this.importsStack=[]}createScope(J){return this.importsStack.push(new Set),new Bz(J)}enter(J){if(J===1024)this.importsStack.push(new Set);super.enter(J)}exit(){let J=super.exit();if(J===1024)this.importsStack.pop();return J}hasImport(J,X){let Z=this.importsStack.length;if(this.importsStack[Z-1].has(J))return!0;if(!X&&Z>1){for(let Q=0;Q<Z-1;Q++)if(this.importsStack[Q].has(J))return!0}return!1}declareName(J,X,Z){if(X&4096){if(this.hasImport(J,!0))this.parser.raise(j.VarRedeclaration,Z,{identifierName:J});this.importsStack[this.importsStack.length-1].add(J);return}let Q=this.currentScope(),Y=Q.tsNames.get(J)||0;if(X&1024){this.maybeExportDefined(Q,J),Q.tsNames.set(J,Y|16);return}if(super.declareName(J,X,Z),X&2){if(!(X&1))this.checkRedeclarationInScope(Q,J,X,Z),this.maybeExportDefined(Q,J);Y=Y|1}if(X&256)Y=Y|2;if(X&512)Y=Y|4;if(X&128)Y=Y|8;if(Y)Q.tsNames.set(J,Y)}isRedeclaredInScope(J,X,Z){let Q=J.tsNames.get(X);if((Q&2)>0){if(Z&256){let Y=!!(Z&512),z=(Q&4)>0;return Y!==z}return!0}if(Z&128&&(Q&8)>0)if(J.names.get(X)&2)return!!(Z&1);else return!1;if(Z&2&&(Q&1)>0)return!0;return super.isRedeclaredInScope(J,X,Z)}checkLocalExport(J){let{name:X}=J;if(this.hasImport(X))return;let Z=this.scopeStack.length;for(let Q=Z-1;Q>=0;Q--){let z=this.scopeStack[Q].tsNames.get(X);if((z&1)>0||(z&16)>0)return}super.checkLocalExport(J)}}class $z{constructor(){this.stacks=[]}enter(J){this.stacks.push(J)}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 T9(J,X){return(J?2:0)|(X?1:0)}class qz{constructor(){this.sawUnambiguousESM=!1,this.ambiguousScriptDifferentAst=!1}sourceToOffsetPos(J){return J+this.startIndex}offsetToSourcePos(J){return J-this.startIndex}hasPlugin(J){if(typeof J==="string")return this.plugins.has(J);else{let[X,Z]=J;if(!this.hasPlugin(X))return!1;let Q=this.plugins.get(X);for(let Y of Object.keys(Z))if((Q==null?void 0:Q[Y])!==Z[Y])return!1;return!0}}getPluginOption(J,X){var Z;return(Z=this.plugins.get(J))==null?void 0:Z[X]}}function Fz(J,X){if(J.trailingComments===void 0)J.trailingComments=X;else J.trailingComments.unshift(...X)}function UQ1(J,X){if(J.leadingComments===void 0)J.leadingComments=X;else J.leadingComments.unshift(...X)}function LX(J,X){if(J.innerComments===void 0)J.innerComments=X;else J.innerComments.unshift(...X)}function AJ(J,X,Z){let Q=null,Y=X.length;while(Q===null&&Y>0)Q=X[--Y];if(Q===null||Q.start>Z.start)LX(J,Z.comments);else Fz(Q,Z.comments)}class jz extends qz{addComment(J){if(this.filename)J.loc.filename=this.filename;let{commentsLen:X}=this.state;if(this.comments.length!==X)this.comments.length=X;this.comments.push(J),this.state.commentsLen++}processComment(J){let{commentStack:X}=this.state,Z=X.length;if(Z===0)return;let Q=Z-1,Y=X[Q];if(Y.start===J.end)Y.leadingNode=J,Q--;let{start:z}=J;for(;Q>=0;Q--){let H=X[Q],G=H.end;if(G>z)H.containingNode=J,this.finalizeComment(H),X.splice(Q,1);else{if(G===z)H.trailingNode=J;break}}}finalizeComment(J){var X;let{comments:Z}=J;if(J.leadingNode!==null||J.trailingNode!==null){if(J.leadingNode!==null)Fz(J.leadingNode,Z);if(J.trailingNode!==null)UQ1(J.trailingNode,Z)}else{let{containingNode:Q,start:Y}=J;if(this.input.charCodeAt(this.offsetToSourcePos(Y)-1)===44)switch(Q.type){case"ObjectExpression":case"ObjectPattern":AJ(Q,Q.properties,J);break;case"CallExpression":case"NewExpression":case"OptionalCallExpression":AJ(Q,Q.arguments,J);break;case"ImportExpression":AJ(Q,[Q.source,(X=Q.options)!=null?X:null],J);break;case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":case"TSTypeParameterDeclaration":AJ(Q,Q.params,J);break;case"ArrayExpression":case"ArrayPattern":AJ(Q,Q.elements,J);break;case"ExportNamedDeclaration":case"ImportDeclaration":AJ(Q,Q.specifiers,J);break;case"TSEnumDeclaration":AJ(Q,Q.members,J);break;case"TSEnumBody":AJ(Q,Q.members,J);break;case"TSInterfaceBody":AJ(Q,Q.body,J);break;default:{if(Q.type==="RecordExpression"){AJ(Q,Q.properties,J);break}if(Q.type==="TupleExpression"){AJ(Q,Q.elements,J);break}LX(Q,Z)}}else LX(Q,Z)}}finalizeRemainingComments(){let{commentStack:J}=this.state;for(let X=J.length-1;X>=0;X--)this.finalizeComment(J[X]);this.state.commentStack=[]}resetPreviousNodeTrailingComments(J){let{commentStack:X}=this.state,{length:Z}=X;if(Z===0)return;let Q=X[Z-1];if(Q.leadingNode===J)Q.leadingNode=null}takeSurroundingComments(J,X,Z){let{commentStack:Q}=this.state,Y=Q.length;if(Y===0)return;let z=Y-1;for(;z>=0;z--){let H=Q[z],G=H.end;if(H.start===Z)H.leadingNode=J;else if(G===X)H.trailingNode=J;else if(G<X)break}}}class U8{constructor(){this.flags=1024,this.startIndex=void 0,this.curLine=void 0,this.lineStart=void 0,this.startLoc=void 0,this.endLoc=void 0,this.errors=[],this.potentialArrowAt=-1,this.noArrowAt=[],this.noArrowParamsConversionAt=[],this.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null},this.labels=[],this.commentsLen=0,this.commentStack=[],this.pos=0,this.type=140,this.value=null,this.start=0,this.end=0,this.lastTokEndLoc=null,this.lastTokStartLoc=null,this.context=[j1.brace],this.firstInvalidTemplateEscapePos=null,this.strictErrors=new Map,this.tokensLength=0}get strict(){return(this.flags&1)>0}set strict(J){if(J)this.flags|=1;else this.flags&=-2}init({strictMode:J,sourceType:X,startIndex:Z,startLine:Q,startColumn:Y}){this.strict=J===!1?!1:J===!0?!0:X==="module",this.startIndex=Z,this.curLine=Q,this.lineStart=-Y,this.startLoc=this.endLoc=new cJ(Q,Y,Z)}get maybeInArrowParameters(){return(this.flags&2)>0}set maybeInArrowParameters(J){if(J)this.flags|=2;else this.flags&=-3}get inType(){return(this.flags&4)>0}set inType(J){if(J)this.flags|=4;else this.flags&=-5}get noAnonFunctionType(){return(this.flags&8)>0}set noAnonFunctionType(J){if(J)this.flags|=8;else this.flags&=-9}get hasFlowComment(){return(this.flags&16)>0}set hasFlowComment(J){if(J)this.flags|=16;else this.flags&=-17}get isAmbientContext(){return(this.flags&32)>0}set isAmbientContext(J){if(J)this.flags|=32;else this.flags&=-33}get inAbstractClass(){return(this.flags&64)>0}set inAbstractClass(J){if(J)this.flags|=64;else this.flags&=-65}get inDisallowConditionalTypesContext(){return(this.flags&128)>0}set inDisallowConditionalTypesContext(J){if(J)this.flags|=128;else this.flags&=-129}get soloAwait(){return(this.flags&256)>0}set soloAwait(J){if(J)this.flags|=256;else this.flags&=-257}get inFSharpPipelineDirectBody(){return(this.flags&512)>0}set inFSharpPipelineDirectBody(J){if(J)this.flags|=512;else this.flags&=-513}get canStartJSXElement(){return(this.flags&1024)>0}set canStartJSXElement(J){if(J)this.flags|=1024;else this.flags&=-1025}get containsEsc(){return(this.flags&2048)>0}set containsEsc(J){if(J)this.flags|=2048;else this.flags&=-2049}get hasTopLevelAwait(){return(this.flags&4096)>0}set hasTopLevelAwait(J){if(J)this.flags|=4096;else this.flags&=-4097}curPosition(){return new cJ(this.curLine,this.pos-this.lineStart,this.pos+this.startIndex)}clone(){let J=new U8;return J.flags=this.flags,J.startIndex=this.startIndex,J.curLine=this.curLine,J.lineStart=this.lineStart,J.startLoc=this.startLoc,J.endLoc=this.endLoc,J.errors=this.errors.slice(),J.potentialArrowAt=this.potentialArrowAt,J.noArrowAt=this.noArrowAt.slice(),J.noArrowParamsConversionAt=this.noArrowParamsConversionAt.slice(),J.topicContext=this.topicContext,J.labels=this.labels.slice(),J.commentsLen=this.commentsLen,J.commentStack=this.commentStack.slice(),J.pos=this.pos,J.type=this.type,J.value=this.value,J.start=this.start,J.end=this.end,J.lastTokEndLoc=this.lastTokEndLoc,J.lastTokStartLoc=this.lastTokStartLoc,J.context=this.context.slice(),J.firstInvalidTemplateEscapePos=this.firstInvalidTemplateEscapePos,J.strictErrors=this.strictErrors,J.tokensLength=this.tokensLength,J}}var BQ1=function(X){return X>=48&&X<=57},sY={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},P9={bin:(J)=>J===48||J===49,oct:(J)=>J>=48&&J<=55,dec:(J)=>J>=48&&J<=57,hex:(J)=>J>=48&&J<=57||J>=65&&J<=70||J>=97&&J<=102};function tY(J,X,Z,Q,Y,z){let H=Z,G=Q,W=Y,V="",U=null,q=Z,{length:O}=X;for(;;){if(Z>=O){z.unterminated(H,G,W),V+=X.slice(q,Z);break}let A=X.charCodeAt(Z);if(RQ1(J,A,X,Z)){V+=X.slice(q,Z);break}if(A===92){V+=X.slice(q,Z);let D=$Q1(X,Z,Q,Y,J==="template",z);if(D.ch===null&&!U)U={pos:Z,lineStart:Q,curLine:Y};else V+=D.ch;({pos:Z,lineStart:Q,curLine:Y}=D),q=Z}else if(A===8232||A===8233)++Z,++Y,Q=Z;else if(A===10||A===13)if(J==="template"){if(V+=X.slice(q,Z)+`
|
|
21
|
+
`,++Z,A===13&&X.charCodeAt(Z)===10)++Z;++Y,q=Q=Z}else z.unterminated(H,G,W);else++Z}return{pos:Z,str:V,firstInvalidLoc:U,lineStart:Q,curLine:Y,containsInvalid:!!U}}function RQ1(J,X,Z,Q){if(J==="template")return X===96||X===36&&Z.charCodeAt(Q+1)===123;return X===(J==="double"?34:39)}function $Q1(J,X,Z,Q,Y,z){let H=!Y;X++;let G=(V)=>({pos:X,ch:V,lineStart:Z,curLine:Q}),W=J.charCodeAt(X++);switch(W){case 110:return G(`
|
|
22
|
+
`);case 114:return G("\r");case 120:{let V;return{code:V,pos:X}=o6(J,X,Z,Q,2,!1,H,z),G(V===null?null:String.fromCharCode(V))}case 117:{let V;return{code:V,pos:X}=Oz(J,X,Z,Q,H,z),G(V===null?null:String.fromCodePoint(V))}case 116:return G("\t");case 98:return G("\b");case 118:return G("\v");case 102:return G("\f");case 13:if(J.charCodeAt(X)===10)++X;case 10:Z=X,++Q;case 8232:case 8233:return G("");case 56:case 57:if(Y)return G(null);else z.strictNumericEscape(X-1,Z,Q);default:if(W>=48&&W<=55){let V=X-1,q=/^[0-7]+/.exec(J.slice(V,X+2))[0],O=parseInt(q,8);if(O>255)q=q.slice(0,-1),O=parseInt(q,8);X+=q.length-1;let A=J.charCodeAt(X);if(q!=="0"||A===56||A===57)if(Y)return G(null);else z.strictNumericEscape(V,Z,Q);return G(String.fromCharCode(O))}return G(String.fromCharCode(W))}}function o6(J,X,Z,Q,Y,z,H,G){let W=X,V;if({n:V,pos:X}=Mz(J,X,Z,Q,16,Y,z,!1,G,!H),V===null)if(H)G.invalidEscapeSequence(W,Z,Q);else X=W-1;return{code:V,pos:X}}function Mz(J,X,Z,Q,Y,z,H,G,W,V){let U=X,q=Y===16?sY.hex:sY.decBinOct,O=Y===16?P9.hex:Y===10?P9.dec:Y===8?P9.oct:P9.bin,A=!1,D=0;for(let S=0,C=z==null?1/0:z;S<C;++S){let L=J.charCodeAt(X),b;if(L===95&&G!=="bail"){let s=J.charCodeAt(X-1),h=J.charCodeAt(X+1);if(!G){if(V)return{n:null,pos:X};W.numericSeparatorInEscapeSequence(X,Z,Q)}else if(Number.isNaN(h)||!O(h)||q.has(s)||q.has(h)){if(V)return{n:null,pos:X};W.unexpectedNumericSeparator(X,Z,Q)}++X;continue}if(L>=97)b=L-97+10;else if(L>=65)b=L-65+10;else if(BQ1(L))b=L-48;else b=1/0;if(b>=Y)if(b<=9&&V)return{n:null,pos:X};else if(b<=9&&W.invalidDigit(X,Z,Q,Y))b=0;else if(H)b=0,A=!0;else break;++X,D=D*Y+b}if(X===U||z!=null&&X-U!==z||A)return{n:null,pos:X};return{n:D,pos:X}}function Oz(J,X,Z,Q,Y,z){let H=J.charCodeAt(X),G;if(H===123){if(++X,{code:G,pos:X}=o6(J,X,Z,Q,J.indexOf("}",X)-X,!0,Y,z),++X,G!==null&&G>1114111)if(Y)z.invalidCodePoint(X,Z,Q);else return{code:null,pos:X}}else({code:G,pos:X}=o6(J,X,Z,Q,4,!1,Y,z));return{code:G,pos:X}}function NX(J,X,Z){return new cJ(Z,J-X,J)}var qQ1=new Set([103,109,115,105,121,117,100,118]);class mJ{constructor(J){let X=J.startIndex||0;this.type=J.type,this.value=J.value,this.start=X+J.start,this.end=X+J.end,this.loc=new TX(J.startLoc,J.endLoc)}}class Az extends jz{constructor(J,X){super();this.isLookahead=void 0,this.tokens=[],this.errorHandlers_readInt={invalidDigit:(Z,Q,Y,z)=>{if(!(this.optionFlags&2048))return!1;return this.raise(j.InvalidDigit,NX(Z,Q,Y),{radix:z}),!0},numericSeparatorInEscapeSequence:this.errorBuilder(j.NumericSeparatorInEscapeSequence),unexpectedNumericSeparator:this.errorBuilder(j.UnexpectedNumericSeparator)},this.errorHandlers_readCodePoint=Object.assign({},this.errorHandlers_readInt,{invalidEscapeSequence:this.errorBuilder(j.InvalidEscapeSequence),invalidCodePoint:this.errorBuilder(j.InvalidCodePoint)}),this.errorHandlers_readStringContents_string=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:(Z,Q,Y)=>{this.recordStrictModeErrors(j.StrictNumericEscape,NX(Z,Q,Y))},unterminated:(Z,Q,Y)=>{throw this.raise(j.UnterminatedString,NX(Z-1,Q,Y))}}),this.errorHandlers_readStringContents_template=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:this.errorBuilder(j.StrictNumericEscape),unterminated:(Z,Q,Y)=>{throw this.raise(j.UnterminatedTemplate,NX(Z,Q,Y))}}),this.state=new U8,this.state.init(J),this.input=X,this.length=X.length,this.comments=[],this.isLookahead=!1}pushToken(J){this.tokens.length=this.state.tokensLength,this.tokens.push(J),++this.state.tokensLength}next(){if(this.checkKeywordEscapes(),this.optionFlags&256)this.pushToken(new mJ(this.state));this.state.lastTokEndLoc=this.state.endLoc,this.state.lastTokStartLoc=this.state.startLoc,this.nextToken()}eat(J){if(this.match(J))return this.next(),!0;else return!1}match(J){return this.state.type===J}createLookaheadState(J){return{pos:J.pos,value:null,type:J.type,start:J.start,end:J.end,context:[this.curContext()],inType:J.inType,startLoc:J.startLoc,lastTokEndLoc:J.lastTokEndLoc,curLine:J.curLine,lineStart:J.lineStart,curPosition:J.curPosition}}lookahead(){let J=this.state;this.state=this.createLookaheadState(J),this.isLookahead=!0,this.nextToken(),this.isLookahead=!1;let X=this.state;return this.state=J,X}nextTokenStart(){return this.nextTokenStartSince(this.state.pos)}nextTokenStartSince(J){return r6.lastIndex=J,r6.test(this.input)?r6.lastIndex:J}lookaheadCharCode(){return this.lookaheadCharCodeSince(this.state.pos)}lookaheadCharCodeSince(J){return this.input.charCodeAt(this.nextTokenStartSince(J))}nextTokenInLineStart(){return this.nextTokenInLineStartSince(this.state.pos)}nextTokenInLineStartSince(J){return d6.lastIndex=J,d6.test(this.input)?d6.lastIndex:J}lookaheadInLineCharCode(){return this.input.charCodeAt(this.nextTokenInLineStart())}codePointAtPos(J){let X=this.input.charCodeAt(J);if((X&64512)===55296&&++J<this.input.length){let Z=this.input.charCodeAt(J);if((Z&64512)===56320)X=65536+((X&1023)<<10)+(Z&1023)}return X}setStrict(J){if(this.state.strict=J,J)this.state.strictErrors.forEach(([X,Z])=>this.raise(X,Z)),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();if(this.state.pos>=this.length){this.finishToken(140);return}this.getTokenFromCode(this.codePointAtPos(this.state.pos))}skipBlockComment(J){let X;if(!this.isLookahead)X=this.state.curPosition();let Z=this.state.pos,Q=this.input.indexOf(J,Z+2);if(Q===-1)throw this.raise(j.UnterminatedComment,this.state.curPosition());this.state.pos=Q+J.length,w9.lastIndex=Z+2;while(w9.test(this.input)&&w9.lastIndex<=Q)++this.state.curLine,this.state.lineStart=w9.lastIndex;if(this.isLookahead)return;let Y={type:"CommentBlock",value:this.input.slice(Z+2,Q),start:this.sourceToOffsetPos(Z),end:this.sourceToOffsetPos(Q+J.length),loc:new TX(X,this.state.curPosition())};if(this.optionFlags&256)this.pushToken(Y);return Y}skipLineComment(J){let X=this.state.pos,Z;if(!this.isLookahead)Z=this.state.curPosition();let Q=this.input.charCodeAt(this.state.pos+=J);if(this.state.pos<this.length)while(!u0(Q)&&++this.state.pos<this.length)Q=this.input.charCodeAt(this.state.pos);if(this.isLookahead)return;let Y=this.state.pos,H={type:"CommentLine",value:this.input.slice(X+J,Y),start:this.sourceToOffsetPos(X),end:this.sourceToOffsetPos(Y),loc:new TX(Z,this.state.curPosition())};if(this.optionFlags&256)this.pushToken(H);return H}skipSpace(){let J=this.state.pos,X=this.optionFlags&4096?[]:null;J:while(this.state.pos<this.length){let Z=this.input.charCodeAt(this.state.pos);switch(Z){case 32:case 160:case 9:++this.state.pos;break;case 13:if(this.input.charCodeAt(this.state.pos+1)===10)++this.state.pos;case 10:case 8232:case 8233:++this.state.pos,++this.state.curLine,this.state.lineStart=this.state.pos;break;case 47:switch(this.input.charCodeAt(this.state.pos+1)){case 42:{let Q=this.skipBlockComment("*/");if(Q!==void 0)this.addComment(Q),X==null||X.push(Q);break}case 47:{let Q=this.skipLineComment(2);if(Q!==void 0)this.addComment(Q),X==null||X.push(Q);break}default:break J}break;default:if(VQ1(Z))++this.state.pos;else if(Z===45&&!this.inModule&&this.optionFlags&8192){let Q=this.state.pos;if(this.input.charCodeAt(Q+1)===45&&this.input.charCodeAt(Q+2)===62&&(J===0||this.state.lineStart>J)){let Y=this.skipLineComment(3);if(Y!==void 0)this.addComment(Y),X==null||X.push(Y)}else break J}else if(Z===60&&!this.inModule&&this.optionFlags&8192){let Q=this.state.pos;if(this.input.charCodeAt(Q+1)===33&&this.input.charCodeAt(Q+2)===45&&this.input.charCodeAt(Q+3)===45){let Y=this.skipLineComment(4);if(Y!==void 0)this.addComment(Y),X==null||X.push(Y)}else break J}else break J}}if((X==null?void 0:X.length)>0){let Z=this.state.pos,Q={start:this.sourceToOffsetPos(J),end:this.sourceToOffsetPos(Z),comments:X,leadingNode:null,trailingNode:null,containingNode:null};this.state.commentStack.push(Q)}}finishToken(J,X){this.state.end=this.state.pos,this.state.endLoc=this.state.curPosition();let Z=this.state.type;if(this.state.type=J,this.state.value=X,!this.isLookahead)this.updateContext(Z)}replaceToken(J){this.state.type=J,this.updateContext()}readToken_numberSign(){if(this.state.pos===0&&this.readToken_interpreter())return;let J=this.state.pos+1,X=this.codePointAtPos(J);if(X>=48&&X<=57)throw this.raise(j.UnexpectedDigitAfterHash,this.state.curPosition());if(X===123||X===91&&this.hasPlugin("recordAndTuple")){if(this.expectPlugin("recordAndTuple"),this.getPluginOption("recordAndTuple","syntaxType")==="bar")throw this.raise(X===123?j.RecordExpressionHashIncorrectStartSyntaxType:j.TupleExpressionHashIncorrectStartSyntaxType,this.state.curPosition());if(this.state.pos+=2,X===123)this.finishToken(7);else this.finishToken(1)}else if(kJ(X))++this.state.pos,this.finishToken(139,this.readWord1(X));else if(X===92)++this.state.pos,this.finishToken(139,this.readWord1());else this.finishOp(27,1)}readToken_dot(){let J=this.input.charCodeAt(this.state.pos+1);if(J>=48&&J<=57){this.readNumber(!0);return}if(J===46&&this.input.charCodeAt(this.state.pos+2)===46)this.state.pos+=3,this.finishToken(21);else++this.state.pos,this.finishToken(16)}readToken_slash(){if(this.input.charCodeAt(this.state.pos+1)===61)this.finishOp(31,2);else this.finishOp(56,1)}readToken_interpreter(){if(this.state.pos!==0||this.length<2)return!1;let J=this.input.charCodeAt(this.state.pos+1);if(J!==33)return!1;let X=this.state.pos;this.state.pos+=1;while(!u0(J)&&++this.state.pos<this.length)J=this.input.charCodeAt(this.state.pos);let Z=this.input.slice(X+2,this.state.pos);return this.finishToken(28,Z),!0}readToken_mult_modulo(J){let X=J===42?55:54,Z=1,Q=this.input.charCodeAt(this.state.pos+1);if(J===42&&Q===42)Z++,Q=this.input.charCodeAt(this.state.pos+2),X=57;if(Q===61&&!this.state.inType)Z++,X=J===37?33:30;this.finishOp(X,Z)}readToken_pipe_amp(J){let X=this.input.charCodeAt(this.state.pos+1);if(X===J){if(this.input.charCodeAt(this.state.pos+2)===61)this.finishOp(30,3);else this.finishOp(J===124?41:42,2);return}if(J===124){if(X===62){this.finishOp(39,2);return}if(this.hasPlugin("recordAndTuple")&&X===125){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar")throw this.raise(j.RecordExpressionBarIncorrectEndSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(9);return}if(this.hasPlugin("recordAndTuple")&&X===93){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar")throw this.raise(j.TupleExpressionBarIncorrectEndSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(4);return}}if(X===61){this.finishOp(30,2);return}this.finishOp(J===124?43:45,1)}readToken_caret(){let J=this.input.charCodeAt(this.state.pos+1);if(J===61&&!this.state.inType)this.finishOp(32,2);else if(J===94&&this.hasPlugin(["pipelineOperator",{proposal:"hack",topicToken:"^^"}])){if(this.finishOp(37,2),this.input.codePointAt(this.state.pos)===94)this.unexpected()}else this.finishOp(44,1)}readToken_atSign(){if(this.input.charCodeAt(this.state.pos+1)===64&&this.hasPlugin(["pipelineOperator",{proposal:"hack",topicToken:"@@"}]))this.finishOp(38,2);else this.finishOp(26,1)}readToken_plus_min(J){let X=this.input.charCodeAt(this.state.pos+1);if(X===J){this.finishOp(34,2);return}if(X===61)this.finishOp(30,2);else this.finishOp(53,1)}readToken_lt(){let{pos:J}=this.state,X=this.input.charCodeAt(J+1);if(X===60){if(this.input.charCodeAt(J+2)===61){this.finishOp(30,3);return}this.finishOp(51,2);return}if(X===61){this.finishOp(49,2);return}this.finishOp(47,1)}readToken_gt(){let{pos:J}=this.state,X=this.input.charCodeAt(J+1);if(X===62){let Z=this.input.charCodeAt(J+2)===62?3:2;if(this.input.charCodeAt(J+Z)===61){this.finishOp(30,Z+1);return}this.finishOp(52,Z);return}if(X===61){this.finishOp(49,2);return}this.finishOp(48,1)}readToken_eq_excl(J){let X=this.input.charCodeAt(this.state.pos+1);if(X===61){this.finishOp(46,this.input.charCodeAt(this.state.pos+2)===61?3:2);return}if(J===61&&X===62){this.state.pos+=2,this.finishToken(19);return}this.finishOp(J===61?29:35,1)}readToken_question(){let J=this.input.charCodeAt(this.state.pos+1),X=this.input.charCodeAt(this.state.pos+2);if(J===63)if(X===61)this.finishOp(30,3);else this.finishOp(40,2);else if(J===46&&!(X>=48&&X<=57))this.state.pos+=2,this.finishToken(18);else++this.state.pos,this.finishToken(17)}getTokenFromCode(J){switch(J){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(j.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(j.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:if(this.hasPlugin("functionBind")&&this.input.charCodeAt(this.state.pos+1)===58)this.finishOp(15,2);else++this.state.pos,this.finishToken(14);return;case 63:this.readToken_question();return;case 96:this.readTemplateToken();return;case 48:{let X=this.input.charCodeAt(this.state.pos+1);if(X===120||X===88){this.readRadixNumber(16);return}if(X===111||X===79){this.readRadixNumber(8);return}if(X===98||X===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(J);return;case 47:this.readToken_slash();return;case 37:case 42:this.readToken_mult_modulo(J);return;case 124:case 38:this.readToken_pipe_amp(J);return;case 94:this.readToken_caret();return;case 43:case 45:this.readToken_plus_min(J);return;case 60:this.readToken_lt();return;case 62:this.readToken_gt();return;case 61:case 33:this.readToken_eq_excl(J);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(kJ(J)){this.readWord(J);return}}throw this.raise(j.InvalidOrUnexpectedToken,this.state.curPosition(),{unexpected:String.fromCodePoint(J)})}finishOp(J,X){let Z=this.input.slice(this.state.pos,this.state.pos+X);this.state.pos+=X,this.finishToken(J,Z)}readRegexp(){let J=this.state.startLoc,X=this.state.start+1,Z,Q,{pos:Y}=this.state;for(;;++Y){if(Y>=this.length)throw this.raise(j.UnterminatedRegExp,o1(J,1));let W=this.input.charCodeAt(Y);if(u0(W))throw this.raise(j.UnterminatedRegExp,o1(J,1));if(Z)Z=!1;else{if(W===91)Q=!0;else if(W===93&&Q)Q=!1;else if(W===47&&!Q)break;Z=W===92}}let z=this.input.slice(X,Y);++Y;let H="",G=()=>o1(J,Y+2-X);while(Y<this.length){let W=this.codePointAtPos(Y),V=String.fromCharCode(W);if(qQ1.has(W)){if(W===118){if(H.includes("u"))this.raise(j.IncompatibleRegExpUVFlags,G())}else if(W===117){if(H.includes("v"))this.raise(j.IncompatibleRegExpUVFlags,G())}if(H.includes(V))this.raise(j.DuplicateRegExpFlags,G())}else if(q0(W)||W===92)this.raise(j.MalformedRegExpFlags,G());else break;++Y,H+=V}this.state.pos=Y,this.finishToken(138,{pattern:z,flags:H})}readInt(J,X,Z=!1,Q=!0){let{n:Y,pos:z}=Mz(this.input,this.state.pos,this.state.lineStart,this.state.curLine,J,X,Z,Q,this.errorHandlers_readInt,!1);return this.state.pos=z,Y}readRadixNumber(J){let X=this.state.pos,Z=this.state.curPosition(),Q=!1;this.state.pos+=2;let Y=this.readInt(J);if(Y==null)this.raise(j.InvalidDigit,o1(Z,2),{radix:J});let z=this.input.charCodeAt(this.state.pos);if(z===110)++this.state.pos,Q=!0;else if(z===109)throw this.raise(j.InvalidDecimal,Z);if(kJ(this.codePointAtPos(this.state.pos)))throw this.raise(j.NumberIdentifier,this.state.curPosition());if(Q){let H=this.input.slice(X,this.state.pos).replace(/[_n]/g,"");this.finishToken(136,H);return}this.finishToken(135,Y)}readNumber(J){let X=this.state.pos,Z=this.state.curPosition(),Q=!1,Y=!1,z=!1,H=!1;if(!J&&this.readInt(10)===null)this.raise(j.InvalidNumber,this.state.curPosition());let G=this.state.pos-X>=2&&this.input.charCodeAt(X)===48;if(G){let O=this.input.slice(X,this.state.pos);if(this.recordStrictModeErrors(j.StrictOctalLiteral,Z),!this.state.strict){let A=O.indexOf("_");if(A>0)this.raise(j.ZeroDigitNumericSeparator,o1(Z,A))}H=G&&!/[89]/.test(O)}let W=this.input.charCodeAt(this.state.pos);if(W===46&&!H)++this.state.pos,this.readInt(10),Q=!0,W=this.input.charCodeAt(this.state.pos);if((W===69||W===101)&&!H){if(W=this.input.charCodeAt(++this.state.pos),W===43||W===45)++this.state.pos;if(this.readInt(10)===null)this.raise(j.InvalidOrMissingExponent,Z);Q=!0,z=!0,W=this.input.charCodeAt(this.state.pos)}if(W===110){if(Q||G)this.raise(j.InvalidBigIntLiteral,Z);++this.state.pos,Y=!0}if(W===109){if(this.expectPlugin("decimal",this.state.curPosition()),z||G)this.raise(j.InvalidDecimal,Z);++this.state.pos;var V=!0}if(kJ(this.codePointAtPos(this.state.pos)))throw this.raise(j.NumberIdentifier,this.state.curPosition());let U=this.input.slice(X,this.state.pos).replace(/[_mn]/g,"");if(Y){this.finishToken(136,U);return}if(V){this.finishToken(137,U);return}let q=H?parseInt(U,8):parseFloat(U);this.finishToken(135,q)}readCodePoint(J){let{code:X,pos:Z}=Oz(this.input,this.state.pos,this.state.lineStart,this.state.curLine,J,this.errorHandlers_readCodePoint);return this.state.pos=Z,X}readString(J){let{str:X,pos:Z,curLine:Q,lineStart:Y}=tY(J===34?"double":"single",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_string);this.state.pos=Z+1,this.state.lineStart=Y,this.state.curLine=Q,this.finishToken(134,X)}readTemplateContinuation(){if(!this.match(8))this.unexpected(null,8);this.state.pos--,this.readTemplateToken()}readTemplateToken(){let J=this.input[this.state.pos],{str:X,firstInvalidLoc:Z,pos:Q,curLine:Y,lineStart:z}=tY("template",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_template);if(this.state.pos=Q+1,this.state.lineStart=z,this.state.curLine=Y,Z)this.state.firstInvalidTemplateEscapePos=new cJ(Z.curLine,Z.pos-Z.lineStart,this.sourceToOffsetPos(Z.pos));if(this.input.codePointAt(Q)===96)this.finishToken(24,Z?null:J+X+"`");else this.state.pos++,this.finishToken(25,Z?null:J+X+"${")}recordStrictModeErrors(J,X){let Z=X.index;if(this.state.strict&&!this.state.strictErrors.has(Z))this.raise(J,X);else this.state.strictErrors.set(Z,[J,X])}readWord1(J){this.state.containsEsc=!1;let X="",Z=this.state.pos,Q=this.state.pos;if(J!==void 0)this.state.pos+=J<=65535?1:2;while(this.state.pos<this.length){let Y=this.codePointAtPos(this.state.pos);if(q0(Y))this.state.pos+=Y<=65535?1:2;else if(Y===92){this.state.containsEsc=!0,X+=this.input.slice(Q,this.state.pos);let z=this.state.curPosition(),H=this.state.pos===Z?kJ:q0;if(this.input.charCodeAt(++this.state.pos)!==117){this.raise(j.MissingUnicodeEscape,this.state.curPosition()),Q=this.state.pos-1;continue}++this.state.pos;let G=this.readCodePoint(!0);if(G!==null){if(!H(G))this.raise(j.EscapedCharNotAnIdentifier,z);X+=String.fromCodePoint(G)}Q=this.state.pos}else break}return X+this.input.slice(Q,this.state.pos)}readWord(J){let X=this.readWord1(J),Z=Z8.get(X);if(Z!==void 0)this.finishToken(Z,X0(Z));else this.finishToken(132,X)}checkKeywordEscapes(){let{type:J}=this.state;if(W8(J)&&this.state.containsEsc)this.raise(j.InvalidEscapedReservedWord,this.state.startLoc,{reservedWord:X0(J)})}raise(J,X,Z={}){let Q=X instanceof cJ?X:X.loc.start,Y=J(Q,Z);if(!(this.optionFlags&2048))throw Y;if(!this.isLookahead)this.state.errors.push(Y);return Y}raiseOverwrite(J,X,Z={}){let Q=X instanceof cJ?X:X.loc.start,Y=Q.index,z=this.state.errors;for(let H=z.length-1;H>=0;H--){let G=z[H];if(G.loc.index===Y)return z[H]=J(Q,Z);if(G.loc.index<Y)break}return this.raise(J,X,Z)}updateContext(J){}unexpected(J,X){throw this.raise(j.UnexpectedToken,J!=null?J:this.state.startLoc,{expected:X?X0(X):null})}expectPlugin(J,X){if(this.hasPlugin(J))return!0;throw this.raise(j.MissingPlugin,X!=null?X:this.state.startLoc,{missingPlugin:[J]})}expectOnePlugin(J){if(!J.some((X)=>this.hasPlugin(X)))throw this.raise(j.MissingOneOfPlugins,this.state.startLoc,{missingPlugin:J})}errorBuilder(J){return(X,Z,Q)=>{this.raise(J,NX(X,Z,Q))}}}class Cz{constructor(){this.privateNames=new Set,this.loneAccessors=new Map,this.undefinedPrivateNames=new Map}}class Dz{constructor(J){this.parser=void 0,this.stack=[],this.undefinedPrivateNames=new Map,this.parser=J}current(){return this.stack[this.stack.length-1]}enter(){this.stack.push(new Cz)}exit(){let J=this.stack.pop(),X=this.current();for(let[Z,Q]of Array.from(J.undefinedPrivateNames))if(X){if(!X.undefinedPrivateNames.has(Z))X.undefinedPrivateNames.set(Z,Q)}else this.parser.raise(j.InvalidPrivateFieldResolution,Q,{identifierName:Z})}declarePrivateName(J,X,Z){let{privateNames:Q,loneAccessors:Y,undefinedPrivateNames:z}=this.current(),H=Q.has(J);if(X&3){let G=H&&Y.get(J);if(G){let W=G&4,V=X&4,U=G&3,q=X&3;if(H=U===q||W!==V,!H)Y.delete(J)}else if(!H)Y.set(J,X)}if(H)this.parser.raise(j.PrivateNameRedeclaration,Z,{identifierName:J});Q.add(J),z.delete(J)}usePrivateName(J,X){let Z;for(Z of this.stack)if(Z.privateNames.has(J))return;if(Z)Z.undefinedPrivateNames.set(J,X);else this.parser.raise(j.InvalidPrivateFieldResolution,X,{identifierName:J})}}class kX{constructor(J=0){this.type=J}canBeArrowParameterDeclaration(){return this.type===2||this.type===1}isCertainlyParameterDeclaration(){return this.type===3}}class B8 extends kX{constructor(J){super(J);this.declarationErrors=new Map}recordDeclarationError(J,X){let Z=X.index;this.declarationErrors.set(Z,[J,X])}clearDeclarationError(J){this.declarationErrors.delete(J)}iterateErrors(J){this.declarationErrors.forEach(J)}}class Nz{constructor(J){this.parser=void 0,this.stack=[new kX],this.parser=J}enter(J){this.stack.push(J)}exit(){this.stack.pop()}recordParameterInitializerError(J,X){let Z=X.loc.start,{stack:Q}=this,Y=Q.length-1,z=Q[Y];while(!z.isCertainlyParameterDeclaration()){if(z.canBeArrowParameterDeclaration())z.recordDeclarationError(J,Z);else return;z=Q[--Y]}this.parser.raise(J,Z)}recordArrowParameterBindingError(J,X){let{stack:Z}=this,Q=Z[Z.length-1],Y=X.loc.start;if(Q.isCertainlyParameterDeclaration())this.parser.raise(J,Y);else if(Q.canBeArrowParameterDeclaration())Q.recordDeclarationError(J,Y);else return}recordAsyncArrowParametersError(J){let{stack:X}=this,Z=X.length-1,Q=X[Z];while(Q.canBeArrowParameterDeclaration()){if(Q.type===2)Q.recordDeclarationError(j.AwaitBindingIdentifier,J);Q=X[--Z]}}validateAsPattern(){let{stack:J}=this,X=J[J.length-1];if(!X.canBeArrowParameterDeclaration())return;X.iterateErrors(([Z,Q])=>{this.parser.raise(Z,Q);let Y=J.length-2,z=J[Y];while(z.canBeArrowParameterDeclaration())z.clearDeclarationError(Q.index),z=J[--Y]})}}function FQ1(){return new kX(3)}function jQ1(){return new B8(1)}function MQ1(){return new B8(2)}function wz(){return new kX}class Pz extends Az{addExtra(J,X,Z,Q=!0){if(!J)return;let{extra:Y}=J;if(Y==null)Y={},J.extra=Y;if(Q)Y[X]=Z;else Object.defineProperty(Y,X,{enumerable:Q,value:Z})}isContextual(J){return this.state.type===J&&!this.state.containsEsc}isUnparsedContextual(J,X){if(this.input.startsWith(X,J)){let Z=this.input.charCodeAt(J+X.length);return!(q0(Z)||(Z&64512)===55296)}return!1}isLookaheadContextual(J){let X=this.nextTokenStart();return this.isUnparsedContextual(X,J)}eatContextual(J){if(this.isContextual(J))return this.next(),!0;return!1}expectContextual(J,X){if(!this.eatContextual(J)){if(X!=null)throw this.raise(X,this.state.startLoc);this.unexpected(null,J)}}canInsertSemicolon(){return this.match(140)||this.match(8)||this.hasPrecedingLineBreak()}hasPrecedingLineBreak(){return aY(this.input,this.offsetToSourcePos(this.state.lastTokEndLoc.index),this.state.start)}hasFollowingLineBreak(){return aY(this.input,this.state.end,this.nextTokenStart())}isLineTerminator(){return this.eat(13)||this.canInsertSemicolon()}semicolon(J=!0){if(J?this.isLineTerminator():this.eat(13))return;this.raise(j.MissingSemicolon,this.state.lastTokEndLoc)}expect(J,X){if(!this.eat(J))this.unexpected(X,J)}tryParse(J,X=this.state.clone()){let Z={node:null};try{let Q=J((Y=null)=>{throw Z.node=Y,Z});if(this.state.errors.length>X.errors.length){let Y=this.state;return this.state=X,this.state.tokensLength=Y.tokensLength,{node:Q,error:Y.errors[X.errors.length],thrown:!1,aborted:!1,failState:Y}}return{node:Q,error:null,thrown:!1,aborted:!1,failState:null}}catch(Q){let Y=this.state;if(this.state=X,Q instanceof SyntaxError)return{node:null,error:Q,thrown:!0,aborted:!1,failState:Y};if(Q===Z)return{node:Z.node,error:null,thrown:!1,aborted:!0,failState:Y};throw Q}}checkExpressionErrors(J,X){if(!J)return!1;let{shorthandAssignLoc:Z,doubleProtoLoc:Q,privateKeyLoc:Y,optionalParametersLoc:z,voidPatternLoc:H}=J,G=!!Z||!!Q||!!z||!!Y||!!H;if(!X)return G;if(Z!=null)this.raise(j.InvalidCoverInitializedName,Z);if(Q!=null)this.raise(j.DuplicateProto,Q);if(Y!=null)this.raise(j.UnexpectedPrivateField,Y);if(z!=null)this.unexpected(z);if(H!=null)this.raise(j.InvalidCoverDiscardElement,H)}isLiteralPropertyName(){return Qz(this.state.type)}isPrivateName(J){return J.type==="PrivateName"}getPrivateNameSV(J){return J.id.name}hasPropertyAsPrivateName(J){return(J.type==="MemberExpression"||J.type==="OptionalMemberExpression")&&this.isPrivateName(J.property)}isObjectProperty(J){return J.type==="ObjectProperty"}isObjectMethod(J){return J.type==="ObjectMethod"}initializeScopes(J=this.options.sourceType==="module"){let X=this.state.labels;this.state.labels=[];let Z=this.exportedIdentifiers;this.exportedIdentifiers=new Set;let Q=this.inModule;this.inModule=J;let Y=this.scope,z=this.getScopeHandler();this.scope=new z(this,J);let H=this.prodParam;this.prodParam=new $z;let G=this.classScope;this.classScope=new Dz(this);let W=this.expressionScope;return this.expressionScope=new Nz(this),()=>{this.state.labels=X,this.exportedIdentifiers=Z,this.inModule=Q,this.scope=Y,this.prodParam=H,this.classScope=G,this.expressionScope=W}}enterInitialScopes(){let J=0;if(this.inModule||this.optionFlags&1)J|=2;if(this.optionFlags&32)J|=1;let X=!this.inModule&&this.options.sourceType==="commonjs";if(X||this.optionFlags&2)J|=4;this.prodParam.enter(J);let Z=X?514:1;if(this.optionFlags&4)Z|=512;this.scope.enter(Z)}checkDestructuringPrivate(J){let{privateKeyLoc:X}=J;if(X!==null)this.expectPlugin("destructuringPrivate",X)}}class IX{constructor(){this.shorthandAssignLoc=null,this.doubleProtoLoc=null,this.privateKeyLoc=null,this.optionalParametersLoc=null,this.voidPatternLoc=null}}class bX{constructor(J,X,Z){if(this.type="",this.start=X,this.end=0,this.loc=new TX(Z),(J==null?void 0:J.optionFlags)&128)this.range=[X,0];if(J!=null&&J.filename)this.loc.filename=J.filename}}var e6=bX.prototype;e6.__clone=function(){let J=new bX(void 0,this.start,this.loc.start),X=Object.keys(this);for(let Z=0,Q=X.length;Z<Q;Z++){let Y=X[Z];if(Y!=="leadingComments"&&Y!=="trailingComments"&&Y!=="innerComments")J[Y]=this[Y]}return J};class Sz extends Pz{startNode(){let J=this.state.startLoc;return new bX(this,J.index,J)}startNodeAt(J){return new bX(this,J.index,J)}startNodeAtNode(J){return this.startNodeAt(J.loc.start)}finishNode(J,X){return this.finishNodeAt(J,X,this.state.lastTokEndLoc)}finishNodeAt(J,X,Z){if(J.type=X,J.end=Z.index,J.loc.end=Z,this.optionFlags&128)J.range[1]=Z.index;if(this.optionFlags&4096)this.processComment(J);return J}resetStartLocation(J,X){if(J.start=X.index,J.loc.start=X,this.optionFlags&128)J.range[0]=X.index}resetEndLocation(J,X=this.state.lastTokEndLoc){if(J.end=X.index,J.loc.end=X,this.optionFlags&128)J.range[1]=X.index}resetStartLocationFromNode(J,X){this.resetStartLocation(J,X.loc.start)}castNodeTo(J,X){return J.type=X,J}cloneIdentifier(J){let{type:X,start:Z,end:Q,loc:Y,range:z,name:H}=J,G=Object.create(e6);if(G.type=X,G.start=Z,G.end=Q,G.loc=Y,G.range=z,G.name=H,J.extra)G.extra=J.extra;return G}cloneStringLiteral(J){let{type:X,start:Z,end:Q,loc:Y,range:z,extra:H}=J,G=Object.create(e6);return G.type=X,G.start=Z,G.end=Q,G.loc=Y,G.range=z,G.extra=H,G.value=J.value,G}}var J8=(J)=>{return J.type==="ParenthesizedExpression"?J8(J.expression):J};class Iz extends Sz{toAssignable(J,X=!1){var Z,Q;let Y=void 0;if(J.type==="ParenthesizedExpression"||(Z=J.extra)!=null&&Z.parenthesized)if(Y=J8(J),X){if(Y.type==="Identifier")this.expressionScope.recordArrowParameterBindingError(j.InvalidParenthesizedAssignment,J);else if(Y.type!=="CallExpression"&&Y.type!=="MemberExpression"&&!this.isOptionalMemberExpression(Y))this.raise(j.InvalidParenthesizedAssignment,J)}else this.raise(j.InvalidParenthesizedAssignment,J);switch(J.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":case"VoidPattern":break;case"ObjectExpression":this.castNodeTo(J,"ObjectPattern");for(let H=0,G=J.properties.length,W=G-1;H<G;H++){var z;let V=J.properties[H],U=H===W;if(this.toAssignableObjectExpressionProp(V,U,X),U&&V.type==="RestElement"&&(z=J.extra)!=null&&z.trailingCommaLoc)this.raise(j.RestTrailingComma,J.extra.trailingCommaLoc)}break;case"ObjectProperty":{let{key:H,value:G}=J;if(this.isPrivateName(H))this.classScope.usePrivateName(this.getPrivateNameSV(H),H.loc.start);this.toAssignable(G,X);break}case"SpreadElement":throw Error("Internal @babel/parser error (this is a bug, please report it). SpreadElement should be converted by .toAssignable's caller.");case"ArrayExpression":this.castNodeTo(J,"ArrayPattern"),this.toAssignableList(J.elements,(Q=J.extra)==null?void 0:Q.trailingCommaLoc,X);break;case"AssignmentExpression":if(J.operator!=="=")this.raise(j.MissingEqInAssignment,J.left.loc.end);if(this.castNodeTo(J,"AssignmentPattern"),delete J.operator,J.left.type==="VoidPattern")this.raise(j.VoidPatternInitializer,J.left);this.toAssignable(J.left,X);break;case"ParenthesizedExpression":this.toAssignable(Y,X);break}}toAssignableObjectExpressionProp(J,X,Z){if(J.type==="ObjectMethod")this.raise(J.kind==="get"||J.kind==="set"?j.PatternHasAccessor:j.PatternHasMethod,J.key);else if(J.type==="SpreadElement"){this.castNodeTo(J,"RestElement");let Q=J.argument;if(this.checkToRestConversion(Q,!1),this.toAssignable(Q,Z),!X)this.raise(j.RestTrailingComma,J)}else this.toAssignable(J,Z)}toAssignableList(J,X,Z){let Q=J.length-1;for(let Y=0;Y<=Q;Y++){let z=J[Y];if(!z)continue;if(this.toAssignableListItem(J,Y,Z),z.type==="RestElement"){if(Y<Q)this.raise(j.RestTrailingComma,z);else if(X)this.raise(j.RestTrailingComma,X)}}}toAssignableListItem(J,X,Z){let Q=J[X];if(Q.type==="SpreadElement"){this.castNodeTo(Q,"RestElement");let Y=Q.argument;this.checkToRestConversion(Y,!0),this.toAssignable(Y,Z)}else this.toAssignable(Q,Z)}isAssignable(J,X){switch(J.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":case"VoidPattern":return!0;case"ObjectExpression":{let Z=J.properties.length-1;return J.properties.every((Q,Y)=>{return Q.type!=="ObjectMethod"&&(Y===Z||Q.type!=="SpreadElement")&&this.isAssignable(Q)})}case"ObjectProperty":return this.isAssignable(J.value);case"SpreadElement":return this.isAssignable(J.argument);case"ArrayExpression":return J.elements.every((Z)=>Z===null||this.isAssignable(Z));case"AssignmentExpression":return J.operator==="=";case"ParenthesizedExpression":return this.isAssignable(J.expression);case"MemberExpression":case"OptionalMemberExpression":return!X;default:return!1}}toReferencedList(J,X){return J}toReferencedListDeep(J,X){this.toReferencedList(J,X);for(let Z of J)if((Z==null?void 0:Z.type)==="ArrayExpression")this.toReferencedListDeep(Z.elements)}parseSpread(J){let X=this.startNode();return this.next(),X.argument=this.parseMaybeAssignAllowIn(J,void 0),this.finishNode(X,"SpreadElement")}parseRestBinding(){let J=this.startNode();this.next();let X=this.parseBindingAtom();if(X.type==="VoidPattern")this.raise(j.UnexpectedVoidPattern,X);return J.argument=X,this.finishNode(J,"RestElement")}parseBindingAtom(){switch(this.state.type){case 0:{let J=this.startNode();return this.next(),J.elements=this.parseBindingList(3,93,1),this.finishNode(J,"ArrayPattern")}case 5:return this.parseObjectLike(8,!0);case 88:return this.parseVoidPattern(null)}return this.parseIdentifier()}parseBindingList(J,X,Z){let Q=Z&1,Y=[],z=!0;while(!this.eat(J)){if(z)z=!1;else this.expect(12);if(Q&&this.match(12))Y.push(null);else if(this.eat(J))break;else if(this.match(21)){let H=this.parseRestBinding();if(this.hasPlugin("flow")||Z&2)H=this.parseFunctionParamType(H);if(Y.push(H),!this.checkCommaAfterRest(X)){this.expect(J);break}}else{let H=[];if(Z&2){if(this.match(26)&&this.hasPlugin("decorators"))this.raise(j.UnsupportedParameterDecorator,this.state.startLoc);while(this.match(26))H.push(this.parseDecorator())}Y.push(this.parseBindingElement(Z,H))}}return Y}parseBindingRestProperty(J){if(this.next(),this.hasPlugin("discardBinding")&&this.match(88))J.argument=this.parseVoidPattern(null),this.raise(j.UnexpectedVoidPattern,J.argument);else J.argument=this.parseIdentifier();return this.checkCommaAfterRest(125),this.finishNode(J,"RestElement")}parseBindingProperty(){let{type:J,startLoc:X}=this.state;if(J===21)return this.parseBindingRestProperty(this.startNode());let Z=this.startNode();if(J===139)this.expectPlugin("destructuringPrivate",X),this.classScope.usePrivateName(this.state.value,X),Z.key=this.parsePrivateName();else this.parsePropertyName(Z);return Z.method=!1,this.parseObjPropValue(Z,X,!1,!1,!0,!1)}parseBindingElement(J,X){let Z=this.parseMaybeDefault();if(this.hasPlugin("flow")||J&2)this.parseFunctionParamType(Z);if(X.length)Z.decorators=X,this.resetStartLocationFromNode(Z,X[0]);return this.parseMaybeDefault(Z.loc.start,Z)}parseFunctionParamType(J){return J}parseMaybeDefault(J,X){if(J!=null||(J=this.state.startLoc),X=X!=null?X:this.parseBindingAtom(),!this.eat(29))return X;let Z=this.startNodeAt(J);if(X.type==="VoidPattern")this.raise(j.VoidPatternInitializer,X);return Z.left=X,Z.right=this.parseMaybeAssignAllowIn(),this.finishNode(Z,"AssignmentPattern")}isValidLVal(J,X,Z,Q){switch(J){case"AssignmentPattern":return"left";case"RestElement":return"argument";case"ObjectProperty":return"value";case"ParenthesizedExpression":return"expression";case"ArrayPattern":return"elements";case"ObjectPattern":return"properties";case"VoidPattern":return!0;case"CallExpression":if(!X&&!this.state.strict&&this.optionFlags&8192)return!0}return!1}isOptionalMemberExpression(J){return J.type==="OptionalMemberExpression"}checkLVal(J,X,Z=64,Q=!1,Y=!1,z=!1,H=!1){var G;let W=J.type;if(this.isObjectMethod(J))return;let V=this.isOptionalMemberExpression(J);if(V||W==="MemberExpression"){if(V){if(this.expectPlugin("optionalChainingAssign",J.loc.start),X.type!=="AssignmentExpression")this.raise(j.InvalidLhsOptionalChaining,J,{ancestor:X})}if(Z!==64)this.raise(j.InvalidPropertyBindingPattern,J);return}if(W==="Identifier"){this.checkIdentifier(J,Z,Y);let{name:C}=J;if(Q)if(Q.has(C))this.raise(j.ParamDupe,J);else Q.add(C);return}else if(W==="VoidPattern"&&X.type==="CatchClause")this.raise(j.VoidPatternCatchClauseParam,J);let U=J8(J);H||(H=U.type==="CallExpression"&&(U.callee.type==="Import"||U.callee.type==="Super"));let q=this.isValidLVal(W,H,!(z||(G=J.extra)!=null&&G.parenthesized)&&X.type==="AssignmentExpression",Z);if(q===!0)return;if(q===!1){let C=Z===64?j.InvalidLhs:j.InvalidLhsBinding;this.raise(C,J,{ancestor:X});return}let O,A;if(typeof q==="string")O=q,A=W==="ParenthesizedExpression";else[O,A]=q;let D=W==="ArrayPattern"||W==="ObjectPattern"?{type:W}:X,S=J[O];if(Array.isArray(S)){for(let C of S)if(C)this.checkLVal(C,D,Z,Q,Y,A,!0)}else if(S)this.checkLVal(S,D,Z,Q,Y,A,H)}checkIdentifier(J,X,Z=!1){if(this.state.strict&&(Z?Vz(J.name,this.inModule):Wz(J.name)))if(X===64)this.raise(j.StrictEvalArguments,J,{referenceName:J.name});else this.raise(j.StrictEvalArgumentsBinding,J,{bindingName:J.name});if(X&8192&&J.name==="let")this.raise(j.LetInLexicalBinding,J);if(!(X&64))this.declareNameFromIdentifier(J,X)}declareNameFromIdentifier(J,X){this.scope.declareName(J.name,X,J.loc.start)}checkToRestConversion(J,X){switch(J.type){case"ParenthesizedExpression":this.checkToRestConversion(J.expression,X);break;case"Identifier":case"MemberExpression":break;case"ArrayExpression":case"ObjectExpression":if(X)break;default:this.raise(j.InvalidRestAssignmentPattern,J)}}checkCommaAfterRest(J){if(!this.match(12))return!1;return this.raise(this.lookaheadCharCode()===J?j.RestTrailingComma:j.ElementAfterRest,this.state.startLoc),!0}}var a6=/in(?:stanceof)?|as|satisfies/y;function OQ1(J){if(J==null)throw Error(`Unexpected ${J} value.`);return J}function nY(J){if(!J)throw Error("Assert fail")}var p=bJ`typescript`({AbstractMethodHasImplementation:({methodName:J})=>`Method '${J}' cannot have an implementation because it is marked abstract.`,AbstractPropertyHasInitializer:({propertyName:J})=>`Property '${J}' cannot have an initializer because it is marked abstract.`,AccessorCannotBeOptional:"An 'accessor' property cannot be declared optional.",AccessorCannotDeclareThisParameter:"'get' and 'set' accessors cannot declare 'this' parameters.",AccessorCannotHaveTypeParameters:"An accessor cannot have type parameters.",ClassMethodHasDeclare:"Class methods cannot have the 'declare' modifier.",ClassMethodHasReadonly:"Class methods cannot have the 'readonly' modifier.",ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference:"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:J})=>`'declare' is not allowed in ${J}ters.`,DeclareClassFieldHasInitializer:"Initializers are not allowed in ambient contexts.",DeclareFunctionHasImplementation:"An implementation cannot be declared in ambient contexts.",DuplicateAccessibilityModifier:({modifier:J})=>`Accessibility modifier already seen: '${J}'.`,DuplicateModifier:({modifier:J})=>`Duplicate modifier: '${J}'.`,EmptyHeritageClauseType:({token:J})=>`'${J}' 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:J})=>`'${J[0]}' modifier cannot be used with '${J[1]}' modifier.`,IndexSignatureHasAbstract:"Index signatures cannot have the 'abstract' modifier.",IndexSignatureHasAccessibility:({modifier:J})=>`Index signatures cannot have an accessibility modifier ('${J}').`,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.",InvalidHeritageClauseType:({token:J})=>`'${J}' list can only include identifiers or qualified-names with optional type arguments.`,InvalidModifierOnAwaitUsingDeclaration:(J)=>`'${J}' modifier cannot appear on an await using declaration.`,InvalidModifierOnTypeMember:({modifier:J})=>`'${J}' modifier cannot appear on a type member.`,InvalidModifierOnTypeParameter:({modifier:J})=>`'${J}' modifier cannot appear on a type parameter.`,InvalidModifierOnTypeParameterPositions:({modifier:J})=>`'${J}' modifier can only appear on a type parameter of a class, interface or type alias.`,InvalidModifierOnUsingDeclaration:(J)=>`'${J}' modifier cannot appear on a using declaration.`,InvalidModifiersOrder:({orderedModifiers:J})=>`'${J[0]}' modifier must precede '${J[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.",NonClassMethodPropertyHasAbstractModifier:"'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:J})=>`Private elements cannot have an accessibility modifier ('${J}').`,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 `<T,>() => ...`.",ReservedTypeAssertion:"This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead.",SetAccessorCannotHaveOptionalParameter:"A 'set' accessor cannot have an optional parameter.",SetAccessorCannotHaveRestParameter:"A 'set' accessor cannot have rest parameter.",SetAccessorCannotHaveReturnType:"A 'set' accessor cannot have a return type annotation.",SingleTypeParameterWithoutTrailingComma:({typeParameterName:J})=>`Single type parameter ${J} should have a trailing comma. Example usage: <${J},>.`,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:J})=>`Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got ${J}.`,UsingDeclarationInAmbientContext:(J)=>`'${J}' declarations are not allowed in ambient contexts.`});function AQ1(J){switch(J){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 oY(J){return J==="private"||J==="public"||J==="protected"}function CQ1(J){return J==="in"||J==="out"}var DQ1=(J)=>class extends J{constructor(...Z){super(...Z);this.tsParseInOutModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out"],disallowedModifiers:["const","public","private","protected","readonly","declare","abstract","override"],errorTemplate:p.InvalidModifierOnTypeParameter}),this.tsParseConstModifier=this.tsParseModifiers.bind(this,{allowedModifiers:["const"],disallowedModifiers:["in","out"],errorTemplate:p.InvalidModifierOnTypeParameterPositions}),this.tsParseInOutConstModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out","const"],disallowedModifiers:["public","private","protected","readonly","declare","abstract","override"],errorTemplate:p.InvalidModifierOnTypeParameter})}getScopeHandler(){return Rz}tsIsIdentifier(){return A1(this.state.type)}tsTokenCanFollowModifier(){return this.match(0)||this.match(5)||this.match(55)||this.match(21)||this.match(139)||this.isLiteralPropertyName()}tsNextTokenOnSameLineAndCanFollowModifier(){if(this.next(),this.hasPrecedingLineBreak())return!1;return this.tsTokenCanFollowModifier()}tsNextTokenCanFollowModifier(){if(this.match(106))return this.next(),this.tsTokenCanFollowModifier();return this.tsNextTokenOnSameLineAndCanFollowModifier()}tsParseModifier(Z,Q,Y){if(!A1(this.state.type)&&this.state.type!==58&&this.state.type!==75)return;let z=this.state.value;if(Z.includes(z)){if(Y&&this.match(106))return;if(Q&&this.tsIsStartOfStaticBlocks())return;if(this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this)))return z}return}tsParseModifiers({allowedModifiers:Z,disallowedModifiers:Q,stopOnStartOfClassStaticBlock:Y,errorTemplate:z=p.InvalidModifierOnTypeMember},H){let G=(V,U,q,O)=>{if(U===q&&H[O])this.raise(p.InvalidModifiersOrder,V,{orderedModifiers:[q,O]})},W=(V,U,q,O)=>{if(H[q]&&U===O||H[O]&&U===q)this.raise(p.IncompatibleModifiers,V,{modifiers:[q,O]})};for(;;){let{startLoc:V}=this.state,U=this.tsParseModifier(Z.concat(Q!=null?Q:[]),Y,H.static);if(!U)break;if(oY(U))if(H.accessibility)this.raise(p.DuplicateAccessibilityModifier,V,{modifier:U});else G(V,U,U,"override"),G(V,U,U,"static"),G(V,U,U,"readonly"),H.accessibility=U;else if(CQ1(U)){if(H[U])this.raise(p.DuplicateModifier,V,{modifier:U});H[U]=!0,G(V,U,"in","out")}else{if(hasOwnProperty.call(H,U))this.raise(p.DuplicateModifier,V,{modifier:U});else G(V,U,"static","readonly"),G(V,U,"static","override"),G(V,U,"override","readonly"),G(V,U,"abstract","override"),W(V,U,"declare","override"),W(V,U,"static","abstract");H[U]=!0}if(Q!=null&&Q.includes(U))this.raise(z,V,{modifier:U})}}tsIsListTerminator(Z){switch(Z){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(Z,Q){let Y=[];while(!this.tsIsListTerminator(Z))Y.push(Q());return Y}tsParseDelimitedList(Z,Q,Y){return OQ1(this.tsParseDelimitedListWorker(Z,Q,!0,Y))}tsParseDelimitedListWorker(Z,Q,Y,z){let H=[],G=-1;for(;;){if(this.tsIsListTerminator(Z))break;G=-1;let W=Q();if(W==null)return;if(H.push(W),this.eat(12)){G=this.state.lastTokStartLoc.index;continue}if(this.tsIsListTerminator(Z))break;if(Y)this.expect(12);return}if(z)z.value=G;return H}tsParseBracketedList(Z,Q,Y,z,H){if(!z)if(Y)this.expect(0);else this.expect(47);let G=this.tsParseDelimitedList(Z,Q,H);if(Y)this.expect(3);else this.expect(48);return G}tsParseImportType(){let Z=this.startNode();if(this.expect(83),this.expect(10),!this.match(134))this.raise(p.UnsupportedImportTypeArgument,this.state.startLoc),Z.argument=super.parseExprAtom();else Z.argument=this.parseStringLiteral(this.state.value);if(this.eat(12))Z.options=this.tsParseImportTypeOptions();else Z.options=null;if(this.expect(11),this.eat(16))Z.qualifier=this.tsParseEntityName(3);if(this.match(47))Z.typeParameters=this.tsParseTypeArguments();return this.finishNode(Z,"TSImportType")}tsParseImportTypeOptions(){let Z=this.startNode();this.expect(5);let Q=this.startNode();if(this.isContextual(76))Q.method=!1,Q.key=this.parseIdentifier(!0),Q.computed=!1,Q.shorthand=!1;else this.unexpected(null,76);return this.expect(14),Q.value=this.tsParseImportTypeWithPropertyValue(),Z.properties=[this.finishObjectProperty(Q)],this.eat(12),this.expect(8),this.finishNode(Z,"ObjectExpression")}tsParseImportTypeWithPropertyValue(){let Z=this.startNode(),Q=[];this.expect(5);while(!this.match(8)){let Y=this.state.type;if(A1(Y)||Y===134)Q.push(super.parsePropertyDefinition(null));else this.unexpected();this.eat(12)}return Z.properties=Q,this.next(),this.finishNode(Z,"ObjectExpression")}tsParseEntityName(Z){let Q;if(Z&1&&this.match(78))if(Z&2)Q=this.parseIdentifier(!0);else{let Y=this.startNode();this.next(),Q=this.finishNode(Y,"ThisExpression")}else Q=this.parseIdentifier(!!(Z&1));while(this.eat(16)){let Y=this.startNodeAtNode(Q);Y.left=Q,Y.right=this.parseIdentifier(!!(Z&1)),Q=this.finishNode(Y,"TSQualifiedName")}return Q}tsParseTypeReference(){let Z=this.startNode();if(Z.typeName=this.tsParseEntityName(1),!this.hasPrecedingLineBreak()&&this.match(47))Z.typeParameters=this.tsParseTypeArguments();return this.finishNode(Z,"TSTypeReference")}tsParseThisTypePredicate(Z){this.next();let Q=this.startNodeAtNode(Z);return Q.parameterName=Z,Q.typeAnnotation=this.tsParseTypeAnnotation(!1),Q.asserts=!1,this.finishNode(Q,"TSTypePredicate")}tsParseThisTypeNode(){let Z=this.startNode();return this.next(),this.finishNode(Z,"TSThisType")}tsParseTypeQuery(){let Z=this.startNode();if(this.expect(87),this.match(83))Z.exprName=this.tsParseImportType();else Z.exprName=this.tsParseEntityName(3);if(!this.hasPrecedingLineBreak()&&this.match(47))Z.typeParameters=this.tsParseTypeArguments();return this.finishNode(Z,"TSTypeQuery")}tsParseTypeParameter(Z){let Q=this.startNode();return Z(Q),Q.name=this.tsParseTypeParameterName(),Q.constraint=this.tsEatThenParseType(81),Q.default=this.tsEatThenParseType(29),this.finishNode(Q,"TSTypeParameter")}tsTryParseTypeParameters(Z){if(this.match(47))return this.tsParseTypeParameters(Z)}tsParseTypeParameters(Z){let Q=this.startNode();if(this.match(47)||this.match(143))this.next();else this.unexpected();let Y={value:-1};if(Q.params=this.tsParseBracketedList("TypeParametersOrArguments",this.tsParseTypeParameter.bind(this,Z),!1,!0,Y),Q.params.length===0)this.raise(p.EmptyTypeParameters,Q);if(Y.value!==-1)this.addExtra(Q,"trailingComma",Y.value);return this.finishNode(Q,"TSTypeParameterDeclaration")}tsFillSignature(Z,Q){let Y=Z===19,z="parameters",H="typeAnnotation";if(Q.typeParameters=this.tsTryParseTypeParameters(this.tsParseConstModifier),this.expect(10),Q.parameters=this.tsParseBindingListForSignature(),Y)Q.typeAnnotation=this.tsParseTypeOrTypePredicateAnnotation(Z);else if(this.match(Z))Q.typeAnnotation=this.tsParseTypeOrTypePredicateAnnotation(Z)}tsParseBindingListForSignature(){let Z=super.parseBindingList(11,41,2);for(let Q of Z){let{type:Y}=Q;if(Y==="AssignmentPattern"||Y==="TSParameterProperty")this.raise(p.UnsupportedSignatureParameterKind,Q,{type:Y})}return Z}tsParseTypeMemberSemicolon(){if(!this.eat(12)&&!this.isLineTerminator())this.expect(13)}tsParseSignatureMember(Z,Q){return this.tsFillSignature(14,Q),this.tsParseTypeMemberSemicolon(),this.finishNode(Q,Z)}tsIsUnambiguouslyIndexSignature(){if(this.next(),A1(this.state.type))return this.next(),this.match(14);return!1}tsTryParseIndexSignature(Z){if(!(this.match(0)&&this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this))))return;this.expect(0);let Q=this.parseIdentifier();Q.typeAnnotation=this.tsParseTypeAnnotation(),this.resetEndLocation(Q),this.expect(3),Z.parameters=[Q];let Y=this.tsTryParseTypeAnnotation();if(Y)Z.typeAnnotation=Y;return this.tsParseTypeMemberSemicolon(),this.finishNode(Z,"TSIndexSignature")}tsParsePropertyOrMethodSignature(Z,Q){if(this.eat(17))Z.optional=!0;if(this.match(10)||this.match(47)){if(Q)this.raise(p.ReadonlyForMethodSignature,Z);let Y=Z;if(Y.kind&&this.match(47))this.raise(p.AccessorCannotHaveTypeParameters,this.state.curPosition());this.tsFillSignature(14,Y),this.tsParseTypeMemberSemicolon();let z="parameters",H="typeAnnotation";if(Y.kind==="get"){if(Y[z].length>0){if(this.raise(j.BadGetterArity,this.state.curPosition()),this.isThisParam(Y[z][0]))this.raise(p.AccessorCannotDeclareThisParameter,this.state.curPosition())}}else if(Y.kind==="set"){if(Y[z].length!==1)this.raise(j.BadSetterArity,this.state.curPosition());else{let G=Y[z][0];if(this.isThisParam(G))this.raise(p.AccessorCannotDeclareThisParameter,this.state.curPosition());if(G.type==="Identifier"&&G.optional)this.raise(p.SetAccessorCannotHaveOptionalParameter,this.state.curPosition());if(G.type==="RestElement")this.raise(p.SetAccessorCannotHaveRestParameter,this.state.curPosition())}if(Y[H])this.raise(p.SetAccessorCannotHaveReturnType,Y[H])}else Y.kind="method";return this.finishNode(Y,"TSMethodSignature")}else{let Y=Z;if(Q)Y.readonly=!0;let z=this.tsTryParseTypeAnnotation();if(z)Y.typeAnnotation=z;return this.tsParseTypeMemberSemicolon(),this.finishNode(Y,"TSPropertySignature")}}tsParseTypeMember(){let Z=this.startNode();if(this.match(10)||this.match(47))return this.tsParseSignatureMember("TSCallSignatureDeclaration",Z);if(this.match(77)){let Y=this.startNode();if(this.next(),this.match(10)||this.match(47))return this.tsParseSignatureMember("TSConstructSignatureDeclaration",Z);else return Z.key=this.createIdentifier(Y,"new"),this.tsParsePropertyOrMethodSignature(Z,!1)}this.tsParseModifiers({allowedModifiers:["readonly"],disallowedModifiers:["declare","abstract","private","protected","public","static","override"]},Z);let Q=this.tsTryParseIndexSignature(Z);if(Q)return Q;if(super.parsePropertyName(Z),!Z.computed&&Z.key.type==="Identifier"&&(Z.key.name==="get"||Z.key.name==="set")&&this.tsTokenCanFollowModifier()){if(Z.kind=Z.key.name,super.parsePropertyName(Z),!this.match(10)&&!this.match(47))this.unexpected(null,10)}return this.tsParsePropertyOrMethodSignature(Z,!!Z.readonly)}tsParseTypeLiteral(){let Z=this.startNode();return Z.members=this.tsParseObjectTypeMembers(),this.finishNode(Z,"TSTypeLiteral")}tsParseObjectTypeMembers(){this.expect(5);let Z=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.expect(8),Z}tsIsStartOfMappedType(){if(this.next(),this.eat(53))return this.isContextual(122);if(this.isContextual(122))this.next();if(!this.match(0))return!1;if(this.next(),!this.tsIsIdentifier())return!1;return this.next(),this.match(58)}tsParseMappedType(){let Z=this.startNode();if(this.expect(5),this.match(53))Z.readonly=this.state.value,this.next(),this.expectContextual(122);else if(this.eatContextual(122))Z.readonly=!0;this.expect(0);let Q=this.startNode();if(Q.name=this.tsParseTypeParameterName(),Q.constraint=this.tsExpectThenParseType(58),Z.typeParameter=this.finishNode(Q,"TSTypeParameter"),Z.nameType=this.eatContextual(93)?this.tsParseType():null,this.expect(3),this.match(53))Z.optional=this.state.value,this.next(),this.expect(17);else if(this.eat(17))Z.optional=!0;return Z.typeAnnotation=this.tsTryParseType(),this.semicolon(),this.expect(8),this.finishNode(Z,"TSMappedType")}tsParseTupleType(){let Z=this.startNode();Z.elementTypes=this.tsParseBracketedList("TupleElementTypes",this.tsParseTupleElementType.bind(this),!0,!1);let Q=!1;return Z.elementTypes.forEach((Y)=>{let{type:z}=Y;if(Q&&z!=="TSRestType"&&z!=="TSOptionalType"&&!(z==="TSNamedTupleMember"&&Y.optional))this.raise(p.OptionalTypeBeforeRequired,Y);Q||(Q=z==="TSNamedTupleMember"&&Y.optional||z==="TSOptionalType")}),this.finishNode(Z,"TSTupleType")}tsParseTupleElementType(){let Z=this.state.startLoc,Q=this.eat(21),{startLoc:Y}=this.state,z,H,G,W,U=CJ(this.state.type)?this.lookaheadCharCode():null;if(U===58)z=!0,G=!1,H=this.parseIdentifier(!0),this.expect(14),W=this.tsParseType();else if(U===63){G=!0;let q=this.state.value,O=this.tsParseNonArrayType();if(this.lookaheadCharCode()===58)z=!0,H=this.createIdentifier(this.startNodeAt(Y),q),this.expect(17),this.expect(14),W=this.tsParseType();else z=!1,W=O,this.expect(17)}else W=this.tsParseType(),G=this.eat(17),z=this.eat(14);if(z){let q;if(H){if(q=this.startNodeAt(Y),q.optional=G,q.label=H,q.elementType=W,this.eat(17))q.optional=!0,this.raise(p.TupleOptionalAfterType,this.state.lastTokStartLoc)}else q=this.startNodeAt(Y),q.optional=G,this.raise(p.InvalidTupleMemberLabel,W),q.label=W,q.elementType=this.tsParseType();W=this.finishNode(q,"TSNamedTupleMember")}else if(G){let q=this.startNodeAt(Y);q.typeAnnotation=W,W=this.finishNode(q,"TSOptionalType")}if(Q){let q=this.startNodeAt(Z);q.typeAnnotation=W,W=this.finishNode(q,"TSRestType")}return W}tsParseParenthesizedType(){let Z=this.startNode();return this.expect(10),Z.typeAnnotation=this.tsParseType(),this.expect(11),this.finishNode(Z,"TSParenthesizedType")}tsParseFunctionOrConstructorType(Z,Q){let Y=this.startNode();if(Z==="TSConstructorType"){if(Y.abstract=!!Q,Q)this.next();this.next()}return this.tsInAllowConditionalTypesContext(()=>this.tsFillSignature(19,Y)),this.finishNode(Y,Z)}tsParseLiteralTypeNode(){let Z=this.startNode();switch(this.state.type){case 135:case 136:case 134:case 85:case 86:Z.literal=super.parseExprAtom();break;default:this.unexpected()}return this.finishNode(Z,"TSLiteralType")}tsParseTemplateLiteralType(){let Z=this.startNode();return Z.literal=super.parseTemplate(!1),this.finishNode(Z,"TSLiteralType")}parseTemplateSubstitution(){if(this.state.inType)return this.tsParseType();return super.parseTemplateSubstitution()}tsParseThisTypeOrThisTypePredicate(){let Z=this.tsParseThisTypeNode();if(this.isContextual(116)&&!this.hasPrecedingLineBreak())return this.tsParseThisTypePredicate(Z);else return Z}tsParseNonArrayType(){switch(this.state.type){case 134:case 135:case 136:case 85:case 86:return this.tsParseLiteralTypeNode();case 53:if(this.state.value==="-"){let Z=this.startNode(),Q=this.lookahead();if(Q.type!==135&&Q.type!==136)this.unexpected();return Z.literal=this.parseMaybeUnary(),this.finishNode(Z,"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:Z}=this.state;if(A1(Z)||Z===88||Z===84){let Q=Z===88?"TSVoidKeyword":Z===84?"TSNullKeyword":AQ1(this.state.value);if(Q!==void 0&&this.lookaheadCharCode()!==46){let Y=this.startNode();return this.next(),this.finishNode(Y,Q)}return this.tsParseTypeReference()}}}throw this.unexpected()}tsParseArrayTypeOrHigher(){let{startLoc:Z}=this.state,Q=this.tsParseNonArrayType();while(!this.hasPrecedingLineBreak()&&this.eat(0))if(this.match(3)){let Y=this.startNodeAt(Z);Y.elementType=Q,this.expect(3),Q=this.finishNode(Y,"TSArrayType")}else{let Y=this.startNodeAt(Z);Y.objectType=Q,Y.indexType=this.tsParseType(),this.expect(3),Q=this.finishNode(Y,"TSIndexedAccessType")}return Q}tsParseTypeOperator(){let Z=this.startNode(),Q=this.state.value;if(this.next(),Z.operator=Q,Z.typeAnnotation=this.tsParseTypeOperatorOrHigher(),Q==="readonly")this.tsCheckTypeAnnotationForReadOnly(Z);return this.finishNode(Z,"TSTypeOperator")}tsCheckTypeAnnotationForReadOnly(Z){switch(Z.typeAnnotation.type){case"TSTupleType":case"TSArrayType":return;default:this.raise(p.UnexpectedReadonly,Z)}}tsParseInferType(){let Z=this.startNode();this.expectContextual(115);let Q=this.startNode();return Q.name=this.tsParseTypeParameterName(),Q.constraint=this.tsTryParse(()=>this.tsParseConstraintForInferType()),Z.typeParameter=this.finishNode(Q,"TSTypeParameter"),this.finishNode(Z,"TSInferType")}tsParseConstraintForInferType(){if(this.eat(81)){let Z=this.tsInDisallowConditionalTypesContext(()=>this.tsParseType());if(this.state.inDisallowConditionalTypesContext||!this.match(17))return Z}}tsParseTypeOperatorOrHigher(){return cZ1(this.state.type)&&!this.state.containsEsc?this.tsParseTypeOperator():this.isContextual(115)?this.tsParseInferType():this.tsInAllowConditionalTypesContext(()=>this.tsParseArrayTypeOrHigher())}tsParseUnionOrIntersectionType(Z,Q,Y){let z=this.startNode(),H=this.eat(Y),G=[];do G.push(Q());while(this.eat(Y));if(G.length===1&&!H)return G[0];return z.types=G,this.finishNode(z,Z)}tsParseIntersectionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSIntersectionType",this.tsParseTypeOperatorOrHigher.bind(this),45)}tsParseUnionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSUnionType",this.tsParseIntersectionTypeOrHigher.bind(this),43)}tsIsStartOfFunctionType(){if(this.match(47))return!0;return this.match(10)&&this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this))}tsSkipParameterStart(){if(A1(this.state.type)||this.match(78))return this.next(),!0;if(this.match(5)){let{errors:Z}=this.state,Q=Z.length;try{return this.parseObjectLike(8,!0),Z.length===Q}catch(Y){return!1}}if(this.match(0)){this.next();let{errors:Z}=this.state,Q=Z.length;try{return super.parseBindingList(3,93,1),Z.length===Q}catch(Y){return!1}}return!1}tsIsUnambiguouslyStartOfFunctionType(){if(this.next(),this.match(11)||this.match(21))return!0;if(this.tsSkipParameterStart()){if(this.match(14)||this.match(12)||this.match(17)||this.match(29))return!0;if(this.match(11)){if(this.next(),this.match(19))return!0}}return!1}tsParseTypeOrTypePredicateAnnotation(Z){return this.tsInType(()=>{let Q=this.startNode();this.expect(Z);let Y=this.startNode(),z=!!this.tsTryParse(this.tsParseTypePredicateAsserts.bind(this));if(z&&this.match(78)){let W=this.tsParseThisTypeOrThisTypePredicate();if(W.type==="TSThisType")Y.parameterName=W,Y.asserts=!0,Y.typeAnnotation=null,W=this.finishNode(Y,"TSTypePredicate");else this.resetStartLocationFromNode(W,Y),W.asserts=!0;return Q.typeAnnotation=W,this.finishNode(Q,"TSTypeAnnotation")}let H=this.tsIsIdentifier()&&this.tsTryParse(this.tsParseTypePredicatePrefix.bind(this));if(!H){if(!z)return this.tsParseTypeAnnotation(!1,Q);return Y.parameterName=this.parseIdentifier(),Y.asserts=z,Y.typeAnnotation=null,Q.typeAnnotation=this.finishNode(Y,"TSTypePredicate"),this.finishNode(Q,"TSTypeAnnotation")}let G=this.tsParseTypeAnnotation(!1);return Y.parameterName=H,Y.typeAnnotation=G,Y.asserts=z,Q.typeAnnotation=this.finishNode(Y,"TSTypePredicate"),this.finishNode(Q,"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 Z=this.parseIdentifier();if(this.isContextual(116)&&!this.hasPrecedingLineBreak())return this.next(),Z}tsParseTypePredicateAsserts(){if(this.state.type!==109)return!1;let Z=this.state.containsEsc;if(this.next(),!A1(this.state.type)&&!this.match(78))return!1;if(Z)this.raise(j.InvalidEscapedReservedWord,this.state.lastTokStartLoc,{reservedWord:"asserts"});return!0}tsParseTypeAnnotation(Z=!0,Q=this.startNode()){return this.tsInType(()=>{if(Z)this.expect(14);Q.typeAnnotation=this.tsParseType()}),this.finishNode(Q,"TSTypeAnnotation")}tsParseType(){nY(this.state.inType);let Z=this.tsParseNonConditionalType();if(this.state.inDisallowConditionalTypesContext||this.hasPrecedingLineBreak()||!this.eat(81))return Z;let Q=this.startNodeAtNode(Z);return Q.checkType=Z,Q.extendsType=this.tsInDisallowConditionalTypesContext(()=>this.tsParseNonConditionalType()),this.expect(17),Q.trueType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.expect(14),Q.falseType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.finishNode(Q,"TSConditionalType")}isAbstractConstructorSignature(){return this.isContextual(124)&&this.isLookaheadContextual("new")}tsParseNonConditionalType(){if(this.tsIsStartOfFunctionType())return this.tsParseFunctionOrConstructorType("TSFunctionType");if(this.match(77))return this.tsParseFunctionOrConstructorType("TSConstructorType");else if(this.isAbstractConstructorSignature())return this.tsParseFunctionOrConstructorType("TSConstructorType",!0);return this.tsParseUnionTypeOrHigher()}tsParseTypeAssertion(){if(this.getPluginOption("typescript","disallowAmbiguousJSXLike"))this.raise(p.ReservedTypeAssertion,this.state.startLoc);let Z=this.startNode();return Z.typeAnnotation=this.tsInType(()=>{return this.next(),this.match(75)?this.tsParseTypeReference():this.tsParseType()}),this.expect(48),Z.expression=this.parseMaybeUnary(),this.finishNode(Z,"TSTypeAssertion")}tsParseHeritageClause(Z){let Q=this.state.startLoc,Y=this.tsParseDelimitedList("HeritageClauseElement",()=>{let z=this.startNode();if(z.expression=this.tsParseEntityName(3),this.match(47))z.typeParameters=this.tsParseTypeArguments();return this.finishNode(z,"TSExpressionWithTypeArguments")});if(!Y.length)this.raise(p.EmptyHeritageClauseType,Q,{token:Z});return Y}tsParseInterfaceDeclaration(Z,Q={}){if(this.hasFollowingLineBreak())return null;if(this.expectContextual(129),Q.declare)Z.declare=!0;if(A1(this.state.type))Z.id=this.parseIdentifier(),this.checkIdentifier(Z.id,130);else Z.id=null,this.raise(p.MissingInterfaceName,this.state.startLoc);if(Z.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers),this.eat(81))Z.extends=this.tsParseHeritageClause("extends");let Y=this.startNode();return Y.body=this.tsInType(this.tsParseObjectTypeMembers.bind(this)),Z.body=this.finishNode(Y,"TSInterfaceBody"),this.finishNode(Z,"TSInterfaceDeclaration")}tsParseTypeAliasDeclaration(Z){return Z.id=this.parseIdentifier(),this.checkIdentifier(Z.id,2),Z.typeAnnotation=this.tsInType(()=>{if(Z.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutModifiers),this.expect(29),this.isContextual(114)&&this.lookaheadCharCode()!==46){let Q=this.startNode();return this.next(),this.finishNode(Q,"TSIntrinsicKeyword")}return this.tsParseType()}),this.semicolon(),this.finishNode(Z,"TSTypeAliasDeclaration")}tsInTopLevelContext(Z){if(this.curContext()!==j1.brace){let Q=this.state.context;this.state.context=[Q[0]];try{return Z()}finally{this.state.context=Q}}else return Z()}tsInType(Z){let Q=this.state.inType;this.state.inType=!0;try{return Z()}finally{this.state.inType=Q}}tsInDisallowConditionalTypesContext(Z){let Q=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!0;try{return Z()}finally{this.state.inDisallowConditionalTypesContext=Q}}tsInAllowConditionalTypesContext(Z){let Q=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!1;try{return Z()}finally{this.state.inDisallowConditionalTypesContext=Q}}tsEatThenParseType(Z){if(this.match(Z))return this.tsNextThenParseType()}tsExpectThenParseType(Z){return this.tsInType(()=>{return this.expect(Z),this.tsParseType()})}tsNextThenParseType(){return this.tsInType(()=>{return this.next(),this.tsParseType()})}tsParseEnumMember(){let Z=this.startNode();if(Z.id=this.match(134)?super.parseStringLiteral(this.state.value):this.parseIdentifier(!0),this.eat(29))Z.initializer=super.parseMaybeAssignAllowIn();return this.finishNode(Z,"TSEnumMember")}tsParseEnumDeclaration(Z,Q={}){if(Q.const)Z.const=!0;if(Q.declare)Z.declare=!0;return this.expectContextual(126),Z.id=this.parseIdentifier(),this.checkIdentifier(Z.id,Z.const?8971:8459),this.expect(5),Z.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(8),this.finishNode(Z,"TSEnumDeclaration")}tsParseEnumBody(){let Z=this.startNode();return this.expect(5),Z.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(8),this.finishNode(Z,"TSEnumBody")}tsParseModuleBlock(){let Z=this.startNode();return this.scope.enter(0),this.expect(5),super.parseBlockOrModuleBlockBody(Z.body=[],void 0,!0,8),this.scope.exit(),this.finishNode(Z,"TSModuleBlock")}tsParseModuleOrNamespaceDeclaration(Z,Q=!1){if(Z.id=this.parseIdentifier(),!Q)this.checkIdentifier(Z.id,1024);if(this.eat(16)){let Y=this.startNode();this.tsParseModuleOrNamespaceDeclaration(Y,!0),Z.body=Y}else this.scope.enter(1024),this.prodParam.enter(0),Z.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit();return this.finishNode(Z,"TSModuleDeclaration")}tsParseAmbientExternalModuleDeclaration(Z){if(this.isContextual(112))Z.kind="global",Z.global=!0,Z.id=this.parseIdentifier();else if(this.match(134))Z.kind="module",Z.id=super.parseStringLiteral(this.state.value);else this.unexpected();if(this.match(5))this.scope.enter(1024),this.prodParam.enter(0),Z.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit();else this.semicolon();return this.finishNode(Z,"TSModuleDeclaration")}tsParseImportEqualsDeclaration(Z,Q,Y){Z.isExport=Y||!1,Z.id=Q||this.parseIdentifier(),this.checkIdentifier(Z.id,4096),this.expect(29);let z=this.tsParseModuleReference();if(Z.importKind==="type"&&z.type!=="TSExternalModuleReference")this.raise(p.ImportAliasHasImportType,z);return Z.moduleReference=z,this.semicolon(),this.finishNode(Z,"TSImportEqualsDeclaration")}tsIsExternalModuleReference(){return this.isContextual(119)&&this.lookaheadCharCode()===40}tsParseModuleReference(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(0)}tsParseExternalModuleReference(){let Z=this.startNode();if(this.expectContextual(119),this.expect(10),!this.match(134))this.unexpected();return Z.expression=super.parseExprAtom(),this.expect(11),this.sawUnambiguousESM=!0,this.finishNode(Z,"TSExternalModuleReference")}tsLookAhead(Z){let Q=this.state.clone(),Y=Z();return this.state=Q,Y}tsTryParseAndCatch(Z){let Q=this.tryParse((Y)=>Z()||Y());if(Q.aborted||!Q.node)return;if(Q.error)this.state=Q.failState;return Q.node}tsTryParse(Z){let Q=this.state.clone(),Y=Z();if(Y!==void 0&&Y!==!1)return Y;this.state=Q}tsTryParseDeclare(Z){if(this.isLineTerminator())return;let Q=this.state.type;return this.tsInAmbientContext(()=>{switch(Q){case 68:return Z.declare=!0,super.parseFunctionStatement(Z,!1,!1);case 80:return Z.declare=!0,this.parseClass(Z,!0,!1);case 126:return this.tsParseEnumDeclaration(Z,{declare:!0});case 112:return this.tsParseAmbientExternalModuleDeclaration(Z);case 100:if(this.state.containsEsc)return;case 75:case 74:if(!this.match(75)||!this.isLookaheadContextual("enum"))return Z.declare=!0,this.parseVarStatement(Z,this.state.value,!0);return this.expect(75),this.tsParseEnumDeclaration(Z,{const:!0,declare:!0});case 107:if(this.isUsing())return this.raise(p.InvalidModifierOnUsingDeclaration,this.state.startLoc,"declare"),Z.declare=!0,this.parseVarStatement(Z,"using",!0);break;case 96:if(this.isAwaitUsing())return this.raise(p.InvalidModifierOnAwaitUsingDeclaration,this.state.startLoc,"declare"),Z.declare=!0,this.next(),this.parseVarStatement(Z,"await using",!0);break;case 129:{let Y=this.tsParseInterfaceDeclaration(Z,{declare:!0});if(Y)return Y}default:if(A1(Q))return this.tsParseDeclaration(Z,this.state.type,!0,null)}})}tsTryParseExportDeclaration(){return this.tsParseDeclaration(this.startNode(),this.state.type,!0,null)}tsParseDeclaration(Z,Q,Y,z){switch(Q){case 124:if(this.tsCheckLineTerminator(Y)&&(this.match(80)||A1(this.state.type)))return this.tsParseAbstractDeclaration(Z,z);break;case 127:if(this.tsCheckLineTerminator(Y)){if(this.match(134))return this.tsParseAmbientExternalModuleDeclaration(Z);else if(A1(this.state.type))return Z.kind="module",this.tsParseModuleOrNamespaceDeclaration(Z)}break;case 128:if(this.tsCheckLineTerminator(Y)&&A1(this.state.type))return Z.kind="namespace",this.tsParseModuleOrNamespaceDeclaration(Z);break;case 130:if(this.tsCheckLineTerminator(Y)&&A1(this.state.type))return this.tsParseTypeAliasDeclaration(Z);break}}tsCheckLineTerminator(Z){if(Z){if(this.hasFollowingLineBreak())return!1;return this.next(),!0}return!this.isLineTerminator()}tsTryParseGenericAsyncArrowFunction(Z){if(!this.match(47))return;let Q=this.state.maybeInArrowParameters;this.state.maybeInArrowParameters=!0;let Y=this.tsTryParseAndCatch(()=>{let z=this.startNodeAt(Z);return z.typeParameters=this.tsParseTypeParameters(this.tsParseConstModifier),super.parseFunctionParams(z),z.returnType=this.tsTryParseTypeOrTypePredicateAnnotation(),this.expect(19),z});if(this.state.maybeInArrowParameters=Q,!Y)return;return super.parseArrowExpression(Y,null,!0)}tsParseTypeArgumentsInExpression(){if(this.reScan_lt()!==47)return;return this.tsParseTypeArguments()}tsParseTypeArguments(){let Z=this.startNode();if(Z.params=this.tsInType(()=>this.tsInTopLevelContext(()=>{return this.expect(47),this.tsParseDelimitedList("TypeParametersOrArguments",this.tsParseType.bind(this))})),Z.params.length===0)this.raise(p.EmptyTypeArguments,Z);else if(!this.state.inType&&this.curContext()===j1.brace)this.reScan_lt_gt();return this.expect(48),this.finishNode(Z,"TSTypeParameterInstantiation")}tsIsDeclarationStart(){return lZ1(this.state.type)}isExportDefaultSpecifier(){if(this.tsIsDeclarationStart())return!1;return super.isExportDefaultSpecifier()}parseBindingElement(Z,Q){let Y=Q.length?Q[0].loc.start:this.state.startLoc,z={};this.tsParseModifiers({allowedModifiers:["public","private","protected","override","readonly"]},z);let{accessibility:H,override:G,readonly:W}=z;if(!(Z&4)&&(H||W||G))this.raise(p.UnexpectedParameterModifier,Y);let V=this.parseMaybeDefault();if(Z&2)this.parseFunctionParamType(V);let U=this.parseMaybeDefault(V.loc.start,V);if(H||W||G){let q=this.startNodeAt(Y);if(Q.length)q.decorators=Q;if(H)q.accessibility=H;if(W)q.readonly=W;if(G)q.override=G;if(U.type!=="Identifier"&&U.type!=="AssignmentPattern")this.raise(p.UnsupportedParameterPropertyKind,q);return q.parameter=U,this.finishNode(q,"TSParameterProperty")}if(Q.length)V.decorators=Q;return U}isSimpleParameter(Z){return Z.type==="TSParameterProperty"&&super.isSimpleParameter(Z.parameter)||super.isSimpleParameter(Z)}tsDisallowOptionalPattern(Z){for(let Q of Z.params)if(Q.type!=="Identifier"&&Q.optional&&!this.state.isAmbientContext)this.raise(p.PatternIsOptional,Q)}setArrowFunctionParameters(Z,Q,Y){super.setArrowFunctionParameters(Z,Q,Y),this.tsDisallowOptionalPattern(Z)}parseFunctionBodyAndFinish(Z,Q,Y=!1){if(this.match(14))Z.returnType=this.tsParseTypeOrTypePredicateAnnotation(14);let z=Q==="FunctionDeclaration"?"TSDeclareFunction":Q==="ClassMethod"||Q==="ClassPrivateMethod"?"TSDeclareMethod":void 0;if(z&&!this.match(5)&&this.isLineTerminator())return this.finishNode(Z,z);if(z==="TSDeclareFunction"&&this.state.isAmbientContext){if(this.raise(p.DeclareFunctionHasImplementation,Z),Z.declare)return super.parseFunctionBodyAndFinish(Z,z,Y)}return this.tsDisallowOptionalPattern(Z),super.parseFunctionBodyAndFinish(Z,Q,Y)}registerFunctionStatementId(Z){if(!Z.body&&Z.id)this.checkIdentifier(Z.id,1024);else super.registerFunctionStatementId(Z)}tsCheckForInvalidTypeCasts(Z){Z.forEach((Q)=>{if((Q==null?void 0:Q.type)==="TSTypeCastExpression")this.raise(p.UnexpectedTypeAnnotation,Q.typeAnnotation)})}toReferencedList(Z,Q){return this.tsCheckForInvalidTypeCasts(Z),Z}parseArrayLike(Z,Q,Y){let z=super.parseArrayLike(Z,Q,Y);if(z.type==="ArrayExpression")this.tsCheckForInvalidTypeCasts(z.elements);return z}parseSubscript(Z,Q,Y,z){if(!this.hasPrecedingLineBreak()&&this.match(35)){this.state.canStartJSXElement=!1,this.next();let G=this.startNodeAt(Q);return G.expression=Z,this.finishNode(G,"TSNonNullExpression")}let H=!1;if(this.match(18)&&this.lookaheadCharCode()===60){if(Y)return z.stop=!0,Z;z.optionalChainMember=H=!0,this.next()}if(this.match(47)||this.match(51)){let G,W=this.tsTryParseAndCatch(()=>{if(!Y&&this.atPossibleAsyncArrow(Z)){let O=this.tsTryParseGenericAsyncArrowFunction(Q);if(O)return z.stop=!0,O}let V=this.tsParseTypeArgumentsInExpression();if(!V)return;if(H&&!this.match(10)){G=this.state.curPosition();return}if(L9(this.state.type)){let O=super.parseTaggedTemplateExpression(Z,Q,z);return O.typeParameters=V,O}if(!Y&&this.eat(10)){let O=this.startNodeAt(Q);if(O.callee=Z,O.arguments=this.parseCallExpressionArguments(),this.tsCheckForInvalidTypeCasts(O.arguments),O.typeParameters=V,z.optionalChainMember)O.optional=H;return this.finishCallExpression(O,z.optionalChainMember)}let U=this.state.type;if(U===48||U===52||U!==10&&U!==93&&U!==120&&wX(U)&&!this.hasPrecedingLineBreak())return;let q=this.startNodeAt(Q);return q.expression=Z,q.typeParameters=V,this.finishNode(q,"TSInstantiationExpression")});if(G)this.unexpected(G,10);if(W){if(W.type==="TSInstantiationExpression"){if(this.match(16)||this.match(18)&&this.lookaheadCharCode()!==40)this.raise(p.InvalidPropertyAccessAfterInstantiationExpression,this.state.startLoc);if(!this.match(16)&&!this.match(18))W.expression=super.stopParseSubscript(Z,z)}return W}}return super.parseSubscript(Z,Q,Y,z)}parseNewCallee(Z){var Q;super.parseNewCallee(Z);let{callee:Y}=Z;if(Y.type==="TSInstantiationExpression"&&!((Q=Y.extra)!=null&&Q.parenthesized))Z.typeParameters=Y.typeParameters,Z.callee=Y.expression}parseExprOp(Z,Q,Y){let z;if(I9(58)>Y&&!this.hasPrecedingLineBreak()&&(this.isContextual(93)||(z=this.isContextual(120)))){let H=this.startNodeAt(Q);return H.expression=Z,H.typeAnnotation=this.tsInType(()=>{if(this.next(),this.match(75)){if(z)this.raise(j.UnexpectedKeyword,this.state.startLoc,{keyword:"const"});return this.tsParseTypeReference()}return this.tsParseType()}),this.finishNode(H,z?"TSSatisfiesExpression":"TSAsExpression"),this.reScan_lt_gt(),this.parseExprOp(H,Q,Y)}return super.parseExprOp(Z,Q,Y)}checkReservedWord(Z,Q,Y,z){if(!this.state.isAmbientContext)super.checkReservedWord(Z,Q,Y,z)}checkImportReflection(Z){if(super.checkImportReflection(Z),Z.module&&Z.importKind!=="value")this.raise(p.ImportReflectionHasImportType,Z.specifiers[0].loc.start)}checkDuplicateExports(){}isPotentialImportPhase(Z){if(super.isPotentialImportPhase(Z))return!0;if(this.isContextual(130)){let Q=this.lookaheadCharCode();return Z?Q===123||Q===42:Q!==61}return!Z&&this.isContextual(87)}applyImportPhase(Z,Q,Y,z){if(super.applyImportPhase(Z,Q,Y,z),Q)Z.exportKind=Y==="type"?"type":"value";else Z.importKind=Y==="type"||Y==="typeof"?Y:"value"}parseImport(Z){if(this.match(134))return Z.importKind="value",super.parseImport(Z);let Q;if(A1(this.state.type)&&this.lookaheadCharCode()===61)return Z.importKind="value",this.tsParseImportEqualsDeclaration(Z);else if(this.isContextual(130)){let Y=this.parseMaybeImportPhase(Z,!1);if(this.lookaheadCharCode()===61)return this.tsParseImportEqualsDeclaration(Z,Y);else Q=super.parseImportSpecifiersAndAfter(Z,Y)}else Q=super.parseImport(Z);if(Q.importKind==="type"&&Q.specifiers.length>1&&Q.specifiers[0].type==="ImportDefaultSpecifier")this.raise(p.TypeImportCannotSpecifyDefaultAndNamed,Q);return Q}parseExport(Z,Q){if(this.match(83)){let Y=Z;this.next();let z=null;if(this.isContextual(130)&&this.isPotentialImportPhase(!1))z=this.parseMaybeImportPhase(Y,!1);else Y.importKind="value";return this.tsParseImportEqualsDeclaration(Y,z,!0)}else if(this.eat(29)){let Y=Z;return Y.expression=super.parseExpression(),this.semicolon(),this.sawUnambiguousESM=!0,this.finishNode(Y,"TSExportAssignment")}else if(this.eatContextual(93)){let Y=Z;return this.expectContextual(128),Y.id=this.parseIdentifier(),this.semicolon(),this.finishNode(Y,"TSNamespaceExportDeclaration")}else return super.parseExport(Z,Q)}isAbstractClass(){return this.isContextual(124)&&this.isLookaheadContextual("class")}parseExportDefaultExpression(){if(this.isAbstractClass()){let Z=this.startNode();return this.next(),Z.abstract=!0,this.parseClass(Z,!0,!0)}if(this.match(129)){let Z=this.tsParseInterfaceDeclaration(this.startNode());if(Z)return Z}return super.parseExportDefaultExpression()}parseVarStatement(Z,Q,Y=!1){let{isAmbientContext:z}=this.state,H=super.parseVarStatement(Z,Q,Y||z);if(!z)return H;if(!Z.declare&&(Q==="using"||Q==="await using"))return this.raiseOverwrite(p.UsingDeclarationInAmbientContext,Z,Q),H;for(let{id:G,init:W}of H.declarations){if(!W)continue;if(Q==="var"||Q==="let"||!!G.typeAnnotation)this.raise(p.InitializerNotAllowedInAmbientContext,W);else if(!wQ1(W,this.hasPlugin("estree")))this.raise(p.ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference,W)}return H}parseStatementContent(Z,Q){if(!this.state.containsEsc)switch(this.state.type){case 75:{if(this.isLookaheadContextual("enum")){let Y=this.startNode();return this.expect(75),this.tsParseEnumDeclaration(Y,{const:!0})}break}case 124:case 125:{if(this.nextTokenIsIdentifierAndNotTSRelationalOperatorOnSameLine()){let Y=this.state.type,z=this.startNode();this.next();let H=Y===125?this.tsTryParseDeclare(z):this.tsParseAbstractDeclaration(z,Q);if(H){if(Y===125)H.declare=!0;return H}else return z.expression=this.createIdentifier(this.startNodeAt(z.loc.start),Y===125?"declare":"abstract"),this.semicolon(!1),this.finishNode(z,"ExpressionStatement")}break}case 126:return this.tsParseEnumDeclaration(this.startNode());case 112:{if(this.lookaheadCharCode()===123){let z=this.startNode();return this.tsParseAmbientExternalModuleDeclaration(z)}break}case 129:{let Y=this.tsParseInterfaceDeclaration(this.startNode());if(Y)return Y;break}case 127:{if(this.nextTokenIsIdentifierOrStringLiteralOnSameLine()){let Y=this.startNode();return this.next(),this.tsParseDeclaration(Y,127,!1,Q)}break}case 128:{if(this.nextTokenIsIdentifierOnSameLine()){let Y=this.startNode();return this.next(),this.tsParseDeclaration(Y,128,!1,Q)}break}case 130:{if(this.nextTokenIsIdentifierOnSameLine()){let Y=this.startNode();return this.next(),this.tsParseTypeAliasDeclaration(Y)}break}}return super.parseStatementContent(Z,Q)}parseAccessModifier(){return this.tsParseModifier(["public","protected","private"])}tsHasSomeModifiers(Z,Q){return Q.some((Y)=>{if(oY(Y))return Z.accessibility===Y;return!!Z[Y]})}tsIsStartOfStaticBlocks(){return this.isContextual(106)&&this.lookaheadCharCode()===123}parseClassMember(Z,Q,Y){let z=["declare","private","public","protected","override","abstract","readonly","static"];this.tsParseModifiers({allowedModifiers:z,disallowedModifiers:["in","out"],stopOnStartOfClassStaticBlock:!0,errorTemplate:p.InvalidModifierOnTypeParameterPositions},Q);let H=()=>{if(this.tsIsStartOfStaticBlocks()){if(this.next(),this.next(),this.tsHasSomeModifiers(Q,z))this.raise(p.StaticBlockCannotHaveModifier,this.state.curPosition());super.parseClassStaticBlock(Z,Q)}else this.parseClassMemberWithIsStatic(Z,Q,Y,!!Q.static)};if(Q.declare)this.tsInAmbientContext(H);else H()}parseClassMemberWithIsStatic(Z,Q,Y,z){let H=this.tsTryParseIndexSignature(Q);if(H){if(Z.body.push(H),Q.abstract)this.raise(p.IndexSignatureHasAbstract,Q);if(Q.accessibility)this.raise(p.IndexSignatureHasAccessibility,Q,{modifier:Q.accessibility});if(Q.declare)this.raise(p.IndexSignatureHasDeclare,Q);if(Q.override)this.raise(p.IndexSignatureHasOverride,Q);return}if(!this.state.inAbstractClass&&Q.abstract)this.raise(p.NonAbstractClassHasAbstractMethod,Q);if(Q.override){if(!Y.hadSuperClass)this.raise(p.OverrideNotInSubClass,Q)}super.parseClassMemberWithIsStatic(Z,Q,Y,z)}parsePostMemberNameModifiers(Z){if(this.eat(17))Z.optional=!0;if(Z.readonly&&this.match(10))this.raise(p.ClassMethodHasReadonly,Z);if(Z.declare&&this.match(10))this.raise(p.ClassMethodHasDeclare,Z)}shouldParseExportDeclaration(){if(this.tsIsDeclarationStart())return!0;return super.shouldParseExportDeclaration()}parseConditional(Z,Q,Y){if(!this.match(17))return Z;if(this.state.maybeInArrowParameters){let z=this.lookaheadCharCode();if(z===44||z===61||z===58||z===41)return this.setOptionalParametersError(Y),Z}return super.parseConditional(Z,Q,Y)}parseParenItem(Z,Q){let Y=super.parseParenItem(Z,Q);if(this.eat(17))Y.optional=!0,this.resetEndLocation(Z);if(this.match(14)){let z=this.startNodeAt(Q);return z.expression=Z,z.typeAnnotation=this.tsParseTypeAnnotation(),this.finishNode(z,"TSTypeCastExpression")}return Z}parseExportDeclaration(Z){if(!this.state.isAmbientContext&&this.isContextual(125))return this.tsInAmbientContext(()=>this.parseExportDeclaration(Z));let Q=this.state.startLoc,Y=this.eatContextual(125);if(Y&&(this.isContextual(125)||!this.shouldParseExportDeclaration()))throw this.raise(p.ExpectedAmbientAfterExportDeclare,this.state.startLoc);let H=A1(this.state.type)&&this.tsTryParseExportDeclaration()||super.parseExportDeclaration(Z);if(!H)return null;if(H.type==="TSInterfaceDeclaration"||H.type==="TSTypeAliasDeclaration"||Y)Z.exportKind="type";if(Y&&H.type!=="TSImportEqualsDeclaration")this.resetStartLocation(H,Q),H.declare=!0;return H}parseClassId(Z,Q,Y,z){if((!Q||Y)&&this.isContextual(113))return;super.parseClassId(Z,Q,Y,Z.declare?1024:8331);let H=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers);if(H)Z.typeParameters=H}parseClassPropertyAnnotation(Z){if(!Z.optional){if(this.eat(35))Z.definite=!0;else if(this.eat(17))Z.optional=!0}let Q=this.tsTryParseTypeAnnotation();if(Q)Z.typeAnnotation=Q}parseClassProperty(Z){if(this.parseClassPropertyAnnotation(Z),this.state.isAmbientContext&&!(Z.readonly&&!Z.typeAnnotation)&&this.match(29))this.raise(p.DeclareClassFieldHasInitializer,this.state.startLoc);if(Z.abstract&&this.match(29)){let{key:Q}=Z;this.raise(p.AbstractPropertyHasInitializer,this.state.startLoc,{propertyName:Q.type==="Identifier"&&!Z.computed?Q.name:`[${this.input.slice(this.offsetToSourcePos(Q.start),this.offsetToSourcePos(Q.end))}]`})}return super.parseClassProperty(Z)}parseClassPrivateProperty(Z){if(Z.abstract)this.raise(p.PrivateElementHasAbstract,Z);if(Z.accessibility)this.raise(p.PrivateElementHasAccessibility,Z,{modifier:Z.accessibility});return this.parseClassPropertyAnnotation(Z),super.parseClassPrivateProperty(Z)}parseClassAccessorProperty(Z){if(this.parseClassPropertyAnnotation(Z),Z.optional)this.raise(p.AccessorCannotBeOptional,Z);return super.parseClassAccessorProperty(Z)}pushClassMethod(Z,Q,Y,z,H,G){let W=this.tsTryParseTypeParameters(this.tsParseConstModifier);if(W&&H)this.raise(p.ConstructorHasTypeParameters,W);let{declare:V=!1,kind:U}=Q;if(V&&(U==="get"||U==="set"))this.raise(p.DeclareAccessor,Q,{kind:U});if(W)Q.typeParameters=W;super.pushClassMethod(Z,Q,Y,z,H,G)}pushClassPrivateMethod(Z,Q,Y,z){let H=this.tsTryParseTypeParameters(this.tsParseConstModifier);if(H)Q.typeParameters=H;super.pushClassPrivateMethod(Z,Q,Y,z)}declareClassPrivateMethodInScope(Z,Q){if(Z.type==="TSDeclareMethod")return;if(Z.type==="MethodDefinition"&&Z.value.body==null)return;super.declareClassPrivateMethodInScope(Z,Q)}parseClassSuper(Z){if(super.parseClassSuper(Z),Z.superClass){if(Z.superClass.type==="TSInstantiationExpression"){let Q=Z.superClass,Y=Q.expression;this.takeSurroundingComments(Y,Y.start,Y.end);let z=Q.typeParameters;this.takeSurroundingComments(z,z.start,z.end),Z.superClass=Y,Z.superTypeParameters=z}else if(this.match(47)||this.match(51))Z.superTypeParameters=this.tsParseTypeArgumentsInExpression()}if(this.eatContextual(113))Z.implements=this.tsParseHeritageClause("implements")}parseObjPropValue(Z,Q,Y,z,H,G,W){let V=this.tsTryParseTypeParameters(this.tsParseConstModifier);if(V)Z.typeParameters=V;return super.parseObjPropValue(Z,Q,Y,z,H,G,W)}parseFunctionParams(Z,Q){let Y=this.tsTryParseTypeParameters(this.tsParseConstModifier);if(Y)Z.typeParameters=Y;super.parseFunctionParams(Z,Q)}parseVarId(Z,Q){if(super.parseVarId(Z,Q),Z.id.type==="Identifier"&&!this.hasPrecedingLineBreak()&&this.eat(35))Z.definite=!0;let Y=this.tsTryParseTypeAnnotation();if(Y)Z.id.typeAnnotation=Y,this.resetEndLocation(Z.id)}parseAsyncArrowFromCallExpression(Z,Q){if(this.match(14))Z.returnType=this.tsParseTypeAnnotation();return super.parseAsyncArrowFromCallExpression(Z,Q)}parseMaybeAssign(Z,Q){var Y,z,H,G,W;let V,U,q;if(this.hasPlugin("jsx")&&(this.match(143)||this.match(47))){if(V=this.state.clone(),U=this.tryParse(()=>super.parseMaybeAssign(Z,Q),V),!U.error)return U.node;let{context:D}=this.state,S=D[D.length-1];if(S===j1.j_oTag||S===j1.j_expr)D.pop()}if(!((Y=U)!=null&&Y.error)&&!this.match(47))return super.parseMaybeAssign(Z,Q);if(!V||V===this.state)V=this.state.clone();let O,A=this.tryParse((D)=>{var S,C;O=this.tsParseTypeParameters(this.tsParseConstModifier);let L=super.parseMaybeAssign(Z,Q);if(L.type!=="ArrowFunctionExpression"||(S=L.extra)!=null&&S.parenthesized)D();if(((C=O)==null?void 0:C.params.length)!==0)this.resetStartLocationFromNode(L,O);return L.typeParameters=O,L},V);if(!A.error&&!A.aborted){if(O)this.reportReservedArrowTypeParam(O);return A.node}if(!U){if(nY(!this.hasPlugin("jsx")),q=this.tryParse(()=>super.parseMaybeAssign(Z,Q),V),!q.error)return q.node}if((z=U)!=null&&z.node)return this.state=U.failState,U.node;if(A.node){if(this.state=A.failState,O)this.reportReservedArrowTypeParam(O);return A.node}if((H=q)!=null&&H.node)return this.state=q.failState,q.node;throw((G=U)==null?void 0:G.error)||A.error||((W=q)==null?void 0:W.error)}reportReservedArrowTypeParam(Z){var Q;if(Z.params.length===1&&!Z.params[0].constraint&&!((Q=Z.extra)!=null&&Q.trailingComma)&&this.getPluginOption("typescript","disallowAmbiguousJSXLike"))this.raise(p.ReservedArrowTypeParam,Z)}parseMaybeUnary(Z,Q){if(!this.hasPlugin("jsx")&&this.match(47))return this.tsParseTypeAssertion();return super.parseMaybeUnary(Z,Q)}parseArrow(Z){if(this.match(14)){let Q=this.tryParse((Y)=>{let z=this.tsParseTypeOrTypePredicateAnnotation(14);if(this.canInsertSemicolon()||!this.match(19))Y();return z});if(Q.aborted)return;if(!Q.thrown){if(Q.error)this.state=Q.failState;Z.returnType=Q.node}}return super.parseArrow(Z)}parseFunctionParamType(Z){if(this.eat(17))Z.optional=!0;let Q=this.tsTryParseTypeAnnotation();if(Q)Z.typeAnnotation=Q;return this.resetEndLocation(Z),Z}isAssignable(Z,Q){switch(Z.type){case"TSTypeCastExpression":return this.isAssignable(Z.expression,Q);case"TSParameterProperty":return!0;default:return super.isAssignable(Z,Q)}}toAssignable(Z,Q=!1){switch(Z.type){case"ParenthesizedExpression":this.toAssignableParenthesizedExpression(Z,Q);break;case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":if(Q)this.expressionScope.recordArrowParameterBindingError(p.UnexpectedTypeCastInParameter,Z);else this.raise(p.UnexpectedTypeCastInParameter,Z);this.toAssignable(Z.expression,Q);break;case"AssignmentExpression":if(!Q&&Z.left.type==="TSTypeCastExpression")Z.left=this.typeCastToParameter(Z.left);default:super.toAssignable(Z,Q)}}toAssignableParenthesizedExpression(Z,Q){switch(Z.expression.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":case"ParenthesizedExpression":this.toAssignable(Z.expression,Q);break;default:super.toAssignable(Z,Q)}}checkToRestConversion(Z,Q){switch(Z.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":this.checkToRestConversion(Z.expression,!1);break;default:super.checkToRestConversion(Z,Q)}}isValidLVal(Z,Q,Y,z){switch(Z){case"TSTypeCastExpression":return!0;case"TSParameterProperty":return"parameter";case"TSNonNullExpression":return"expression";case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":return(z!==64||!Y)&&["expression",!0];default:return super.isValidLVal(Z,Q,Y,z)}}parseBindingAtom(){if(this.state.type===78)return this.parseIdentifier(!0);return super.parseBindingAtom()}parseMaybeDecoratorArguments(Z,Q){if(this.match(47)||this.match(51)){let Y=this.tsParseTypeArgumentsInExpression();if(this.match(10)){let z=super.parseMaybeDecoratorArguments(Z,Q);return z.typeParameters=Y,z}this.unexpected(null,10)}return super.parseMaybeDecoratorArguments(Z,Q)}checkCommaAfterRest(Z){if(this.state.isAmbientContext&&this.match(12)&&this.lookaheadCharCode()===Z)return this.next(),!1;return super.checkCommaAfterRest(Z)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(35)||this.match(14)||super.isClassProperty()}parseMaybeDefault(Z,Q){let Y=super.parseMaybeDefault(Z,Q);if(Y.type==="AssignmentPattern"&&Y.typeAnnotation&&Y.right.start<Y.typeAnnotation.start)this.raise(p.TypeAnnotationAfterAssign,Y.typeAnnotation);return Y}getTokenFromCode(Z){if(this.state.inType){if(Z===62){this.finishOp(48,1);return}if(Z===60){this.finishOp(47,1);return}}super.getTokenFromCode(Z)}reScan_lt_gt(){let{type:Z}=this.state;if(Z===47)this.state.pos-=1,this.readToken_lt();else if(Z===48)this.state.pos-=1,this.readToken_gt()}reScan_lt(){let{type:Z}=this.state;if(Z===51)return this.state.pos-=2,this.finishOp(47,1),47;return Z}toAssignableListItem(Z,Q,Y){let z=Z[Q];if(z.type==="TSTypeCastExpression")Z[Q]=this.typeCastToParameter(z);super.toAssignableListItem(Z,Q,Y)}typeCastToParameter(Z){return Z.expression.typeAnnotation=Z.typeAnnotation,this.resetEndLocation(Z.expression,Z.typeAnnotation.loc.end),Z.expression}shouldParseArrow(Z){if(this.match(14))return Z.every((Q)=>this.isAssignable(Q,!0));return super.shouldParseArrow(Z)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}canHaveLeadingDecorator(){return super.canHaveLeadingDecorator()||this.isAbstractClass()}jsxParseOpeningElementAfterName(Z){if(this.match(47)||this.match(51)){let Q=this.tsTryParseAndCatch(()=>this.tsParseTypeArgumentsInExpression());if(Q)Z.typeParameters=Q}return super.jsxParseOpeningElementAfterName(Z)}getGetterSetterExpectedParamCount(Z){let Q=super.getGetterSetterExpectedParamCount(Z),z=this.getObjectOrClassMethodParams(Z)[0];return z&&this.isThisParam(z)?Q+1:Q}parseCatchClauseParam(){let Z=super.parseCatchClauseParam(),Q=this.tsTryParseTypeAnnotation();if(Q)Z.typeAnnotation=Q,this.resetEndLocation(Z);return Z}tsInAmbientContext(Z){let{isAmbientContext:Q,strict:Y}=this.state;this.state.isAmbientContext=!0,this.state.strict=!1;try{return Z()}finally{this.state.isAmbientContext=Q,this.state.strict=Y}}parseClass(Z,Q,Y){let z=this.state.inAbstractClass;this.state.inAbstractClass=!!Z.abstract;try{return super.parseClass(Z,Q,Y)}finally{this.state.inAbstractClass=z}}tsParseAbstractDeclaration(Z,Q){if(this.match(80))return Z.abstract=!0,this.maybeTakeDecorators(Q,this.parseClass(Z,!0,!1));else if(this.isContextual(129))if(!this.hasFollowingLineBreak())return Z.abstract=!0,this.raise(p.NonClassMethodPropertyHasAbstractModifier,Z),this.tsParseInterfaceDeclaration(Z);else return null;throw this.unexpected(null,80)}parseMethod(Z,Q,Y,z,H,G,W){let V=super.parseMethod(Z,Q,Y,z,H,G,W);if(V.abstract||V.type==="TSAbstractMethodDefinition"){if((this.hasPlugin("estree")?V.value:V).body){let{key:O}=V;this.raise(p.AbstractMethodHasImplementation,V,{methodName:O.type==="Identifier"&&!V.computed?O.name:`[${this.input.slice(this.offsetToSourcePos(O.start),this.offsetToSourcePos(O.end))}]`})}}return V}tsParseTypeParameterName(){return this.parseIdentifier().name}shouldParseAsAmbientContext(){return!!this.getPluginOption("typescript","dts")}parse(){if(this.shouldParseAsAmbientContext())this.state.isAmbientContext=!0;return super.parse()}getExpression(){if(this.shouldParseAsAmbientContext())this.state.isAmbientContext=!0;return super.getExpression()}parseExportSpecifier(Z,Q,Y,z){if(!Q&&z)return this.parseTypeOnlyImportExportSpecifier(Z,!1,Y),this.finishNode(Z,"ExportSpecifier");return Z.exportKind="value",super.parseExportSpecifier(Z,Q,Y,z)}parseImportSpecifier(Z,Q,Y,z,H){if(!Q&&z)return this.parseTypeOnlyImportExportSpecifier(Z,!0,Y),this.finishNode(Z,"ImportSpecifier");return Z.importKind="value",super.parseImportSpecifier(Z,Q,Y,z,Y?4098:4096)}parseTypeOnlyImportExportSpecifier(Z,Q,Y){let z=Q?"imported":"local",H=Q?"local":"exported",G=Z[z],W,V=!1,U=!0,q=G.loc.start;if(this.isContextual(93)){let A=this.parseIdentifier();if(this.isContextual(93)){let D=this.parseIdentifier();if(CJ(this.state.type))V=!0,G=A,W=Q?this.parseIdentifier():this.parseModuleExportName(),U=!1;else W=D,U=!1}else if(CJ(this.state.type))U=!1,W=Q?this.parseIdentifier():this.parseModuleExportName();else V=!0,G=A}else if(CJ(this.state.type))if(V=!0,Q){if(G=this.parseIdentifier(!0),!this.isContextual(93))this.checkReservedWord(G.name,G.loc.start,!0,!0)}else G=this.parseModuleExportName();if(V&&Y)this.raise(Q?p.TypeModifierIsUsedInTypeImports:p.TypeModifierIsUsedInTypeExports,q);Z[z]=G,Z[H]=W;let O=Q?"importKind":"exportKind";if(Z[O]=V?"type":"value",U&&this.eatContextual(93))Z[H]=Q?this.parseIdentifier():this.parseModuleExportName();if(!Z[H])Z[H]=this.cloneIdentifier(Z[z]);if(Q)this.checkIdentifier(Z[H],V?4098:4096)}fillOptionalPropertiesForTSESLint(Z){var Q,Y,z,H,G,W,V,U,q,O,A,D,S,C,L,b,s,h,i,H1,M1,L1,f1,XJ,ZJ,HJ,WJ,wJ,i1,_J,m,g,T,c,J1,W1,C1,$1,N1,O1,q1,w1,b1,K1,S1,v1,r1,d1;switch(Z.type){case"ExpressionStatement":(Q=Z.directive)!=null||(Z.directive=void 0);return;case"RestElement":Z.value=void 0;case"Identifier":case"ArrayPattern":case"AssignmentPattern":case"ObjectPattern":(Y=Z.decorators)!=null||(Z.decorators=[]),(z=Z.optional)!=null||(Z.optional=!1),(H=Z.typeAnnotation)!=null||(Z.typeAnnotation=void 0);return;case"TSParameterProperty":(G=Z.accessibility)!=null||(Z.accessibility=void 0),(W=Z.decorators)!=null||(Z.decorators=[]),(V=Z.override)!=null||(Z.override=!1),(U=Z.readonly)!=null||(Z.readonly=!1),(q=Z.static)!=null||(Z.static=!1);return;case"TSEmptyBodyFunctionExpression":Z.body=null;case"TSDeclareFunction":case"FunctionDeclaration":case"FunctionExpression":case"ClassMethod":case"ClassPrivateMethod":(O=Z.declare)!=null||(Z.declare=!1),(A=Z.returnType)!=null||(Z.returnType=void 0),(D=Z.typeParameters)!=null||(Z.typeParameters=void 0);return;case"Property":(S=Z.optional)!=null||(Z.optional=!1);return;case"TSMethodSignature":case"TSPropertySignature":(C=Z.optional)!=null||(Z.optional=!1);case"TSIndexSignature":(L=Z.accessibility)!=null||(Z.accessibility=void 0),(b=Z.readonly)!=null||(Z.readonly=!1),(s=Z.static)!=null||(Z.static=!1);return;case"TSAbstractPropertyDefinition":case"PropertyDefinition":case"TSAbstractAccessorProperty":case"AccessorProperty":(h=Z.declare)!=null||(Z.declare=!1),(i=Z.definite)!=null||(Z.definite=!1),(H1=Z.readonly)!=null||(Z.readonly=!1),(M1=Z.typeAnnotation)!=null||(Z.typeAnnotation=void 0);case"TSAbstractMethodDefinition":case"MethodDefinition":(L1=Z.accessibility)!=null||(Z.accessibility=void 0),(f1=Z.decorators)!=null||(Z.decorators=[]),(XJ=Z.override)!=null||(Z.override=!1),(ZJ=Z.optional)!=null||(Z.optional=!1);return;case"ClassExpression":(HJ=Z.id)!=null||(Z.id=null);case"ClassDeclaration":(WJ=Z.abstract)!=null||(Z.abstract=!1),(wJ=Z.declare)!=null||(Z.declare=!1),(i1=Z.decorators)!=null||(Z.decorators=[]),(_J=Z.implements)!=null||(Z.implements=[]),(m=Z.superTypeArguments)!=null||(Z.superTypeArguments=void 0),(g=Z.typeParameters)!=null||(Z.typeParameters=void 0);return;case"TSTypeAliasDeclaration":case"VariableDeclaration":(T=Z.declare)!=null||(Z.declare=!1);return;case"VariableDeclarator":(c=Z.definite)!=null||(Z.definite=!1);return;case"TSEnumDeclaration":(J1=Z.const)!=null||(Z.const=!1),(W1=Z.declare)!=null||(Z.declare=!1);return;case"TSEnumMember":(C1=Z.computed)!=null||(Z.computed=!1);return;case"TSImportType":($1=Z.qualifier)!=null||(Z.qualifier=null),(N1=Z.options)!=null||(Z.options=null);return;case"TSInterfaceDeclaration":(O1=Z.declare)!=null||(Z.declare=!1),(q1=Z.extends)!=null||(Z.extends=[]);return;case"TSMappedType":(w1=Z.optional)!=null||(Z.optional=!1),(b1=Z.readonly)!=null||(Z.readonly=void 0);return;case"TSModuleDeclaration":(K1=Z.declare)!=null||(Z.declare=!1),(S1=Z.global)!=null||(Z.global=Z.kind==="global");return;case"TSTypeParameter":(v1=Z.const)!=null||(Z.const=!1),(r1=Z.in)!=null||(Z.in=!1),(d1=Z.out)!=null||(Z.out=!1);return}}chStartsBindingIdentifierAndNotRelationalOperator(Z,Q){if(kJ(Z)){if(a6.lastIndex=Q,a6.test(this.input)){let Y=this.codePointAtPos(a6.lastIndex);if(!q0(Y)&&Y!==92)return!1}return!0}else if(Z===92)return!0;else return!1}nextTokenIsIdentifierAndNotTSRelationalOperatorOnSameLine(){let Z=this.nextTokenInLineStart(),Q=this.codePointAtPos(Z);return this.chStartsBindingIdentifierAndNotRelationalOperator(Q,Z)}nextTokenIsIdentifierOrStringLiteralOnSameLine(){let Z=this.nextTokenInLineStart(),Q=this.codePointAtPos(Z);return this.chStartsBindingIdentifier(Q,Z)||Q===34||Q===39}};function NQ1(J){if(J.type!=="MemberExpression")return!1;let{computed:X,property:Z}=J;if(X&&Z.type!=="StringLiteral"&&(Z.type!=="TemplateLiteral"||Z.expressions.length>0))return!1;return Lz(J.object)}function wQ1(J,X){var Z;let{type:Q}=J;if((Z=J.extra)!=null&&Z.parenthesized)return!1;if(X){if(Q==="Literal"){let{value:Y}=J;if(typeof Y==="string"||typeof Y==="boolean")return!0}}else if(Q==="StringLiteral"||Q==="BooleanLiteral")return!0;if(Tz(J,X)||PQ1(J,X))return!0;if(Q==="TemplateLiteral"&&J.expressions.length===0)return!0;if(NQ1(J))return!0;return!1}function Tz(J,X){if(X)return J.type==="Literal"&&(typeof J.value==="number"||("bigint"in J));return J.type==="NumericLiteral"||J.type==="BigIntLiteral"}function PQ1(J,X){if(J.type==="UnaryExpression"){let{operator:Z,argument:Q}=J;if(Z==="-"&&Tz(Q,X))return!0}return!1}function Lz(J){if(J.type==="Identifier")return!0;if(J.type!=="MemberExpression"||J.computed)return!1;return Lz(J.object)}var eY=bJ`placeholders`({ClassNameIsRequired:"A class name is required.",UnexpectedSpace:"Unexpected space in placeholder."}),SQ1=(J)=>class extends J{parsePlaceholder(Z){if(this.match(133)){let Q=this.startNode();return this.next(),this.assertNoSpace(),Q.name=super.parseIdentifier(!0),this.assertNoSpace(),this.expect(133),this.finishPlaceholder(Q,Z)}}finishPlaceholder(Z,Q){let Y=Z;if(!Y.expectedNode||!Y.type)Y=this.finishNode(Y,"Placeholder");return Y.expectedNode=Q,Y}getTokenFromCode(Z){if(Z===37&&this.input.charCodeAt(this.state.pos+1)===37)this.finishOp(133,2);else super.getTokenFromCode(Z)}parseExprAtom(Z){return this.parsePlaceholder("Expression")||super.parseExprAtom(Z)}parseIdentifier(Z){return this.parsePlaceholder("Identifier")||super.parseIdentifier(Z)}checkReservedWord(Z,Q,Y,z){if(Z!==void 0)super.checkReservedWord(Z,Q,Y,z)}cloneIdentifier(Z){let Q=super.cloneIdentifier(Z);if(Q.type==="Placeholder")Q.expectedNode=Z.expectedNode;return Q}cloneStringLiteral(Z){if(Z.type==="Placeholder")return this.cloneIdentifier(Z);return super.cloneStringLiteral(Z)}parseBindingAtom(){return this.parsePlaceholder("Pattern")||super.parseBindingAtom()}isValidLVal(Z,Q,Y,z){return Z==="Placeholder"||super.isValidLVal(Z,Q,Y,z)}toAssignable(Z,Q){if(Z&&Z.type==="Placeholder"&&Z.expectedNode==="Expression")Z.expectedNode="Pattern";else super.toAssignable(Z,Q)}chStartsBindingIdentifier(Z,Q){if(super.chStartsBindingIdentifier(Z,Q))return!0;let Y=this.nextTokenStart();if(this.input.charCodeAt(Y)===37&&this.input.charCodeAt(Y+1)===37)return!0;return!1}verifyBreakContinue(Z,Q){var Y;if(((Y=Z.label)==null?void 0:Y.type)==="Placeholder")return;super.verifyBreakContinue(Z,Q)}parseExpressionStatement(Z,Q){var Y;if(Q.type!=="Placeholder"||(Y=Q.extra)!=null&&Y.parenthesized)return super.parseExpressionStatement(Z,Q);if(this.match(14)){let H=Z;return H.label=this.finishPlaceholder(Q,"Identifier"),this.next(),H.body=super.parseStatementOrSloppyAnnexBFunctionDeclaration(),this.finishNode(H,"LabeledStatement")}this.semicolon();let z=Z;return z.name=Q.name,this.finishPlaceholder(z,"Statement")}parseBlock(Z,Q,Y){return this.parsePlaceholder("BlockStatement")||super.parseBlock(Z,Q,Y)}parseFunctionId(Z){return this.parsePlaceholder("Identifier")||super.parseFunctionId(Z)}parseClass(Z,Q,Y){let z=Q?"ClassDeclaration":"ClassExpression";this.next();let H=this.state.strict,G=this.parsePlaceholder("Identifier");if(G)if(this.match(81)||this.match(133)||this.match(5))Z.id=G;else if(Y||!Q)return Z.id=null,Z.body=this.finishPlaceholder(G,"ClassBody"),this.finishNode(Z,z);else throw this.raise(eY.ClassNameIsRequired,this.state.startLoc);else this.parseClassId(Z,Q,Y);return super.parseClassSuper(Z),Z.body=this.parsePlaceholder("ClassBody")||super.parseClassBody(!!Z.superClass,H),this.finishNode(Z,z)}parseExport(Z,Q){let Y=this.parsePlaceholder("Identifier");if(!Y)return super.parseExport(Z,Q);let z=Z;if(!this.isContextual(98)&&!this.match(12))return z.specifiers=[],z.source=null,z.declaration=this.finishPlaceholder(Y,"Declaration"),this.finishNode(z,"ExportNamedDeclaration");this.expectPlugin("exportDefaultFrom");let H=this.startNode();return H.exported=Y,z.specifiers=[this.finishNode(H,"ExportDefaultSpecifier")],super.parseExport(z,Q)}isExportDefaultSpecifier(){if(this.match(65)){let Z=this.nextTokenStart();if(this.isUnparsedContextual(Z,"from")){if(this.input.startsWith(X0(133),this.nextTokenStartSince(Z+4)))return!0}}return super.isExportDefaultSpecifier()}maybeParseExportDefaultSpecifier(Z,Q){var Y;if((Y=Z.specifiers)!=null&&Y.length)return!0;return super.maybeParseExportDefaultSpecifier(Z,Q)}checkExport(Z){let{specifiers:Q}=Z;if(Q!=null&&Q.length)Z.specifiers=Q.filter((Y)=>Y.exported.type==="Placeholder");super.checkExport(Z),Z.specifiers=Q}parseImport(Z){let Q=this.parsePlaceholder("Identifier");if(!Q)return super.parseImport(Z);if(Z.specifiers=[],!this.isContextual(98)&&!this.match(12))return Z.source=this.finishPlaceholder(Q,"StringLiteral"),this.semicolon(),this.finishNode(Z,"ImportDeclaration");let Y=this.startNodeAtNode(Q);if(Y.local=Q,Z.specifiers.push(this.finishNode(Y,"ImportDefaultSpecifier")),this.eat(12)){if(!this.maybeParseStarImportSpecifier(Z))this.parseNamedImportSpecifiers(Z)}return this.expectContextual(98),Z.source=this.parseImportSource(),this.semicolon(),this.finishNode(Z,"ImportDeclaration")}parseImportSource(){return this.parsePlaceholder("StringLiteral")||super.parseImportSource()}assertNoSpace(){if(this.state.start>this.offsetToSourcePos(this.state.lastTokEndLoc.index))this.raise(eY.UnexpectedSpace,this.state.lastTokEndLoc)}},IQ1=(J)=>class extends J{parseV8Intrinsic(){if(this.match(54)){let Z=this.state.startLoc,Q=this.startNode();if(this.next(),A1(this.state.type)){let Y=this.parseIdentifierName(),z=this.createIdentifier(Q,Y);if(this.castNodeTo(z,"V8IntrinsicIdentifier"),this.match(10))return z}this.unexpected(Z)}}parseExprAtom(Z){return this.parseV8Intrinsic()||super.parseExprAtom(Z)}},Jz=["minimal","fsharp","hack","smart"],Xz=["^^","@@","^","%","#"];function TQ1(J){if(J.has("decorators")){if(J.has("decorators-legacy"))throw Error("Cannot use the decorators and decorators-legacy plugin together");let Q=J.get("decorators").decoratorsBeforeExport;if(Q!=null&&typeof Q!=="boolean")throw Error("'decoratorsBeforeExport' must be a boolean, if specified.");let Y=J.get("decorators").allowCallParenthesized;if(Y!=null&&typeof Y!=="boolean")throw Error("'allowCallParenthesized' must be a boolean.")}if(J.has("flow")&&J.has("typescript"))throw Error("Cannot combine flow and typescript plugins.");if(J.has("placeholders")&&J.has("v8intrinsic"))throw Error("Cannot combine placeholders and v8intrinsic plugins.");if(J.has("pipelineOperator")){var X;let Q=J.get("pipelineOperator").proposal;if(!Jz.includes(Q)){let Y=Jz.map((z)=>`"${z}"`).join(", ");throw Error(`"pipelineOperator" requires "proposal" option whose value must be one of: ${Y}.`)}if(Q==="hack"){var Z;if(J.has("placeholders"))throw Error("Cannot combine placeholders plugin and Hack-style pipes.");if(J.has("v8intrinsic"))throw Error("Cannot combine v8intrinsic plugin and Hack-style pipes.");let Y=J.get("pipelineOperator").topicToken;if(!Xz.includes(Y)){let z=Xz.map((H)=>`"${H}"`).join(", ");throw Error(`"pipelineOperator" in "proposal": "hack" mode also requires a "topicToken" option whose value must be one of: ${z}.`)}if(Y==="#"&&((Z=J.get("recordAndTuple"))==null?void 0:Z.syntaxType)==="hash")throw Error(`Plugin conflict between \`["pipelineOperator", { proposal: "hack", topicToken: "#" }]\` and \`${JSON.stringify(["recordAndTuple",J.get("recordAndTuple")])}\`.`)}else if(Q==="smart"&&((X=J.get("recordAndTuple"))==null?void 0:X.syntaxType)==="hash")throw Error(`Plugin conflict between \`["pipelineOperator", { proposal: "smart" }]\` and \`${JSON.stringify(["recordAndTuple",J.get("recordAndTuple")])}\`.`)}if(J.has("moduleAttributes")){if(J.has("deprecatedImportAssert")||J.has("importAssertions"))throw Error("Cannot combine importAssertions, deprecatedImportAssert and moduleAttributes plugins.");if(J.get("moduleAttributes").version!=="may-2020")throw Error("The 'moduleAttributes' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is 'may-2020'.")}if(J.has("importAssertions")){if(J.has("deprecatedImportAssert"))throw Error("Cannot combine importAssertions and deprecatedImportAssert plugins.")}if(J.has("deprecatedImportAssert"));else if(J.has("importAttributes")&&J.get("importAttributes").deprecatedAssertSyntax)J.set("deprecatedImportAssert",{});if(J.has("recordAndTuple")){let Q=J.get("recordAndTuple").syntaxType;if(Q!=null){let Y=["hash","bar"];if(!Y.includes(Q))throw Error("The 'syntaxType' option of the 'recordAndTuple' plugin must be one of: "+Y.map((z)=>`'${z}'`).join(", "))}}if(J.has("asyncDoExpressions")&&!J.has("doExpressions")){let Q=Error("'asyncDoExpressions' requires 'doExpressions', please add 'doExpressions' to parser plugins.");throw Q.missingPlugins="doExpressions",Q}if(J.has("optionalChainingAssign")&&J.get("optionalChainingAssign").version!=="2023-07")throw Error("The 'optionalChainingAssign' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is '2023-07'.");if(J.has("discardBinding")&&J.get("discardBinding").syntaxType!=="void")throw Error("The 'discardBinding' plugin requires a 'syntaxType' option. Currently the only supported value is 'void'.")}var bz={estree:vZ1,jsx:KQ1,flow:HQ1,typescript:DQ1,v8intrinsic:IQ1,placeholders:SQ1},LQ1=Object.keys(bz);class kz extends Iz{checkProto(J,X,Z,Q){if(J.type==="SpreadElement"||this.isObjectMethod(J)||J.computed||J.shorthand)return Z;let Y=J.key;if((Y.type==="Identifier"?Y.name:Y.value)==="__proto__"){if(X)return this.raise(j.RecordNoProto,Y),!0;if(Z)if(Q){if(Q.doubleProtoLoc===null)Q.doubleProtoLoc=Y.loc.start}else this.raise(j.DuplicateProto,Y);return!0}return Z}shouldExitDescending(J,X){return J.type==="ArrowFunctionExpression"&&this.offsetToSourcePos(J.start)===X}getExpression(){if(this.enterInitialScopes(),this.nextToken(),this.match(140))throw this.raise(j.ParseExpressionEmptyInput,this.state.startLoc);let J=this.parseExpression();if(!this.match(140))throw this.raise(j.ParseExpressionExpectsEOF,this.state.startLoc,{unexpected:this.input.codePointAt(this.state.start)});if(this.finalizeRemainingComments(),J.comments=this.comments,J.errors=this.state.errors,this.optionFlags&256)J.tokens=this.tokens;return J}parseExpression(J,X){if(J)return this.disallowInAnd(()=>this.parseExpressionBase(X));return this.allowInAnd(()=>this.parseExpressionBase(X))}parseExpressionBase(J){let X=this.state.startLoc,Z=this.parseMaybeAssign(J);if(this.match(12)){let Q=this.startNodeAt(X);Q.expressions=[Z];while(this.eat(12))Q.expressions.push(this.parseMaybeAssign(J));return this.toReferencedList(Q.expressions),this.finishNode(Q,"SequenceExpression")}return Z}parseMaybeAssignDisallowIn(J,X){return this.disallowInAnd(()=>this.parseMaybeAssign(J,X))}parseMaybeAssignAllowIn(J,X){return this.allowInAnd(()=>this.parseMaybeAssign(J,X))}setOptionalParametersError(J){J.optionalParametersLoc=this.state.startLoc}parseMaybeAssign(J,X){let Z=this.state.startLoc,Q=this.isContextual(108);if(Q){if(this.prodParam.hasYield){this.next();let G=this.parseYield(Z);if(X)G=X.call(this,G,Z);return G}}let Y;if(J)Y=!1;else J=new IX,Y=!0;let{type:z}=this.state;if(z===10||A1(z))this.state.potentialArrowAt=this.state.start;let H=this.parseMaybeConditional(J);if(X)H=X.call(this,H,Z);if(hZ1(this.state.type)){let G=this.startNodeAt(Z),W=this.state.value;if(G.operator=W,this.match(29)){this.toAssignable(H,!0),G.left=H;let V=Z.index;if(J.doubleProtoLoc!=null&&J.doubleProtoLoc.index>=V)J.doubleProtoLoc=null;if(J.shorthandAssignLoc!=null&&J.shorthandAssignLoc.index>=V)J.shorthandAssignLoc=null;if(J.privateKeyLoc!=null&&J.privateKeyLoc.index>=V)this.checkDestructuringPrivate(J),J.privateKeyLoc=null;if(J.voidPatternLoc!=null&&J.voidPatternLoc.index>=V)J.voidPatternLoc=null}else G.left=H;return this.next(),G.right=this.parseMaybeAssign(),this.checkLVal(H,this.finishNode(G,"AssignmentExpression"),void 0,void 0,void 0,void 0,W==="||="||W==="&&="||W==="??="),G}else if(Y)this.checkExpressionErrors(J,!0);if(Q){let{type:G}=this.state;if((this.hasPlugin("v8intrinsic")?wX(G):wX(G)&&!this.match(54))&&!this.isAmbiguousPrefixOrIdentifier())return this.raiseOverwrite(j.YieldNotInGeneratorFunction,Z),this.parseYield(Z)}return H}parseMaybeConditional(J){let X=this.state.startLoc,Z=this.state.potentialArrowAt,Q=this.parseExprOps(J);if(this.shouldExitDescending(Q,Z))return Q;return this.parseConditional(Q,X,J)}parseConditional(J,X,Z){if(this.eat(17)){let Q=this.startNodeAt(X);return Q.test=J,Q.consequent=this.parseMaybeAssignAllowIn(),this.expect(14),Q.alternate=this.parseMaybeAssign(),this.finishNode(Q,"ConditionalExpression")}return J}parseMaybeUnaryOrPrivate(J){return this.match(139)?this.parsePrivateName():this.parseMaybeUnary(J)}parseExprOps(J){let X=this.state.startLoc,Z=this.state.potentialArrowAt,Q=this.parseMaybeUnaryOrPrivate(J);if(this.shouldExitDescending(Q,Z))return Q;return this.parseExprOp(Q,X,-1)}parseExprOp(J,X,Z){if(this.isPrivateName(J)){let Y=this.getPrivateNameSV(J);if(Z>=I9(58)||!this.prodParam.hasIn||!this.match(58))this.raise(j.PrivateInExpectedIn,J,{identifierName:Y});this.classScope.usePrivateName(Y,J.loc.start)}let Q=this.state.type;if(yZ1(Q)&&(this.prodParam.hasIn||!this.match(58))){let Y=I9(Q);if(Y>Z){if(Q===39){if(this.expectPlugin("pipelineOperator"),this.state.inFSharpPipelineDirectBody)return J;this.checkPipelineAtInfixOperator(J,X)}let z=this.startNodeAt(X);z.left=J,z.operator=this.state.value;let H=Q===41||Q===42,G=Q===40;if(G)Y=I9(42);if(this.next(),Q===39&&this.hasPlugin(["pipelineOperator",{proposal:"minimal"}])){if(this.state.type===96&&this.prodParam.hasAwait)throw this.raise(j.UnexpectedAwaitAfterPipelineBody,this.state.startLoc)}z.right=this.parseExprOpRightExpr(Q,Y);let W=this.finishNode(z,H||G?"LogicalExpression":"BinaryExpression"),V=this.state.type;if(G&&(V===41||V===42)||H&&V===40)throw this.raise(j.MixingCoalesceWithLogical,this.state.startLoc);return this.parseExprOp(W,X,Z)}}return J}parseExprOpRightExpr(J,X){let Z=this.state.startLoc;switch(J){case 39:switch(this.getPluginOption("pipelineOperator","proposal")){case"hack":return this.withTopicBindingContext(()=>{return this.parseHackPipeBody()});case"fsharp":return this.withSoloAwaitPermittingContext(()=>{return this.parseFSharpPipelineBody(X)})}if(this.getPluginOption("pipelineOperator","proposal")==="smart")return this.withTopicBindingContext(()=>{if(this.prodParam.hasYield&&this.isContextual(108))throw this.raise(j.PipeBodyIsTighter,this.state.startLoc);return this.parseSmartPipelineBodyInStyle(this.parseExprOpBaseRightExpr(J,X),Z)});default:return this.parseExprOpBaseRightExpr(J,X)}}parseExprOpBaseRightExpr(J,X){let Z=this.state.startLoc;return this.parseExprOp(this.parseMaybeUnaryOrPrivate(),Z,iZ1(J)?X-1:X)}parseHackPipeBody(){var J;let{startLoc:X}=this.state,Z=this.parseMaybeAssign();if(PZ1.has(Z.type)&&!((J=Z.extra)!=null&&J.parenthesized))this.raise(j.PipeUnparenthesizedBody,X,{type:Z.type});if(!this.topicReferenceWasUsedInCurrentContext())this.raise(j.PipeTopicUnused,X);return Z}checkExponentialAfterUnary(J){if(this.match(57))this.raise(j.UnexpectedTokenUnaryExponentiation,J.argument)}parseMaybeUnary(J,X){let Z=this.state.startLoc,Q=this.isContextual(96);if(Q&&this.recordAwaitIfAllowed()){this.next();let G=this.parseAwait(Z);if(!X)this.checkExponentialAfterUnary(G);return G}let Y=this.match(34),z=this.startNode();if(mZ1(this.state.type)){if(z.operator=this.state.value,z.prefix=!0,this.match(72))this.expectPlugin("throwExpressions");let G=this.match(89);if(this.next(),z.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(J,!0),this.state.strict&&G){let W=z.argument;if(W.type==="Identifier")this.raise(j.StrictDelete,z);else if(this.hasPropertyAsPrivateName(W))this.raise(j.DeletePrivateField,z)}if(!Y){if(!X)this.checkExponentialAfterUnary(z);return this.finishNode(z,"UnaryExpression")}}let H=this.parseUpdate(z,Y,J);if(Q){let{type:G}=this.state;if((this.hasPlugin("v8intrinsic")?wX(G):wX(G)&&!this.match(54))&&!this.isAmbiguousPrefixOrIdentifier())return this.raiseOverwrite(j.AwaitNotInAsyncContext,Z),this.parseAwait(Z)}return H}parseUpdate(J,X,Z){if(X){let z=J;return this.checkLVal(z.argument,this.finishNode(z,"UpdateExpression")),J}let Q=this.state.startLoc,Y=this.parseExprSubscripts(Z);if(this.checkExpressionErrors(Z,!1))return Y;while(uZ1(this.state.type)&&!this.canInsertSemicolon()){let z=this.startNodeAt(Q);z.operator=this.state.value,z.prefix=!1,z.argument=Y,this.next(),this.checkLVal(Y,Y=this.finishNode(z,"UpdateExpression"))}return Y}parseExprSubscripts(J){let X=this.state.startLoc,Z=this.state.potentialArrowAt,Q=this.parseExprAtom(J);if(this.shouldExitDescending(Q,Z))return Q;return this.parseSubscripts(Q,X)}parseSubscripts(J,X,Z){let Q={optionalChainMember:!1,maybeAsyncArrow:this.atPossibleAsyncArrow(J),stop:!1};do J=this.parseSubscript(J,X,Z,Q),Q.maybeAsyncArrow=!1;while(!Q.stop);return J}parseSubscript(J,X,Z,Q){let{type:Y}=this.state;if(!Z&&Y===15)return this.parseBind(J,X,Z,Q);else if(L9(Y))return this.parseTaggedTemplateExpression(J,X,Q);let z=!1;if(Y===18){if(Z){if(this.raise(j.OptionalChainingNoNew,this.state.startLoc),this.lookaheadCharCode()===40)return this.stopParseSubscript(J,Q)}Q.optionalChainMember=z=!0,this.next()}if(!Z&&this.match(10))return this.parseCoverCallAndAsyncArrowHead(J,X,Q,z);else{let H=this.eat(0);if(H||z||this.eat(16))return this.parseMember(J,X,Q,H,z);else return this.stopParseSubscript(J,Q)}}stopParseSubscript(J,X){return X.stop=!0,J}parseMember(J,X,Z,Q,Y){let z=this.startNodeAt(X);if(z.object=J,z.computed=Q,Q)z.property=this.parseExpression(),this.expect(3);else if(this.match(139)){if(J.type==="Super")this.raise(j.SuperPrivateField,X);this.classScope.usePrivateName(this.state.value,this.state.startLoc),z.property=this.parsePrivateName()}else z.property=this.parseIdentifier(!0);if(Z.optionalChainMember)return z.optional=Y,this.finishNode(z,"OptionalMemberExpression");else return this.finishNode(z,"MemberExpression")}parseBind(J,X,Z,Q){let Y=this.startNodeAt(X);return Y.object=J,this.next(),Y.callee=this.parseNoCallExpr(),Q.stop=!0,this.parseSubscripts(this.finishNode(Y,"BindExpression"),X,Z)}parseCoverCallAndAsyncArrowHead(J,X,Z,Q){let Y=this.state.maybeInArrowParameters,z=null;this.state.maybeInArrowParameters=!0,this.next();let H=this.startNodeAt(X);H.callee=J;let{maybeAsyncArrow:G,optionalChainMember:W}=Z;if(G)this.expressionScope.enter(MQ1()),z=new IX;if(W)H.optional=Q;if(Q)H.arguments=this.parseCallExpressionArguments();else H.arguments=this.parseCallExpressionArguments(J.type!=="Super",H,z);let V=this.finishCallExpression(H,W);if(G&&this.shouldParseAsyncArrow()&&!Q)Z.stop=!0,this.checkDestructuringPrivate(z),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),V=this.parseAsyncArrowFromCallExpression(this.startNodeAt(X),V);else{if(G)this.checkExpressionErrors(z,!0),this.expressionScope.exit();this.toReferencedArguments(V)}return this.state.maybeInArrowParameters=Y,V}toReferencedArguments(J,X){this.toReferencedListDeep(J.arguments,X)}parseTaggedTemplateExpression(J,X,Z){let Q=this.startNodeAt(X);if(Q.tag=J,Q.quasi=this.parseTemplate(!0),Z.optionalChainMember)this.raise(j.OptionalChainingNoTemplate,X);return this.finishNode(Q,"TaggedTemplateExpression")}atPossibleAsyncArrow(J){return J.type==="Identifier"&&J.name==="async"&&this.state.lastTokEndLoc.index===J.end&&!this.canInsertSemicolon()&&J.end-J.start===5&&this.offsetToSourcePos(J.start)===this.state.potentialArrowAt}finishCallExpression(J,X){if(J.callee.type==="Import"){if(J.arguments.length===0||J.arguments.length>2)this.raise(j.ImportCallArity,J);else for(let Z of J.arguments)if(Z.type==="SpreadElement")this.raise(j.ImportCallSpreadArgument,Z)}return this.finishNode(J,X?"OptionalCallExpression":"CallExpression")}parseCallExpressionArguments(J,X,Z){let Q=[],Y=!0,z=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;while(!this.eat(11)){if(Y)Y=!1;else if(this.expect(12),this.match(11)){if(X)this.addTrailingCommaExtraToNode(X);this.next();break}Q.push(this.parseExprListItem(11,!1,Z,J))}return this.state.inFSharpPipelineDirectBody=z,Q}shouldParseAsyncArrow(){return this.match(19)&&!this.canInsertSemicolon()}parseAsyncArrowFromCallExpression(J,X){var Z;if(this.resetPreviousNodeTrailingComments(X),this.expect(19),this.parseArrowExpression(J,X.arguments,!0,(Z=X.extra)==null?void 0:Z.trailingCommaLoc),X.innerComments)LX(J,X.innerComments);if(X.callee.trailingComments)LX(J,X.callee.trailingComments);return J}parseNoCallExpr(){let J=this.state.startLoc;return this.parseSubscripts(this.parseExprAtom(),J,!0)}parseExprAtom(J){let X,Z=null,{type:Q}=this.state;switch(Q){case 79:return this.parseSuper();case 83:if(X=this.startNode(),this.next(),this.match(16))return this.parseImportMetaPropertyOrPhaseCall(X);if(this.match(10))if(this.optionFlags&512)return this.parseImportCall(X);else return this.finishNode(X,"Import");else return this.raise(j.UnsupportedImport,this.state.lastTokStartLoc),this.finishNode(X,"Import");case 78:return X=this.startNode(),this.next(),this.finishNode(X,"ThisExpression");case 90:return this.parseDo(this.startNode(),!1);case 56:case 31:return this.readRegexp(),this.parseRegExpLiteral(this.state.value);case 135:return this.parseNumericLiteral(this.state.value);case 136:return this.parseBigIntLiteral(this.state.value);case 134: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 Y=this.state.potentialArrowAt===this.state.start;return this.parseParenAndDistinguishExpression(Y)}case 0:return this.parseArrayLike(3,!1,J);case 5:return this.parseObjectLike(8,!1,!1,J);case 68:return this.parseFunctionOrFunctionSent();case 26:Z=this.parseDecorators();case 80:return this.parseClass(this.maybeTakeDecorators(Z,this.startNode()),!1);case 77:return this.parseNewOrNewTarget();case 25:case 24:return this.parseTemplate(!1);case 15:{X=this.startNode(),this.next(),X.object=null;let Y=X.callee=this.parseNoCallExpr();if(Y.type==="MemberExpression")return this.finishNode(X,"BindExpression");else throw this.raise(j.UnsupportedBind,Y)}case 139:return this.raise(j.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 Y=this.getPluginOption("pipelineOperator","proposal");if(Y)return this.parseTopicReference(Y);throw this.unexpected()}case 47:{let Y=this.input.codePointAt(this.nextTokenStart());if(kJ(Y)||Y===62)throw this.expectOnePlugin(["jsx","flow","typescript"]);throw this.unexpected()}default:if(Q===137)return this.parseDecimalLiteral(this.state.value);else if(Q===2||Q===1)return this.parseArrayLike(this.state.type===2?4:3,!0);else if(Q===6||Q===7)return this.parseObjectLike(this.state.type===6?9:8,!1,!0);if(A1(Q)){if(this.isContextual(127)&&this.lookaheadInLineCharCode()===123)return this.parseModuleExpression();let Y=this.state.potentialArrowAt===this.state.start,z=this.state.containsEsc,H=this.parseIdentifier();if(!z&&H.name==="async"&&!this.canInsertSemicolon()){let{type:G}=this.state;if(G===68)return this.resetPreviousNodeTrailingComments(H),this.next(),this.parseAsyncFunctionExpression(this.startNodeAtNode(H));else if(A1(G))if(Y&&this.lookaheadCharCode()===61)return this.parseAsyncArrowUnaryFunction(this.startNodeAtNode(H));else return H;else if(G===90)return this.resetPreviousNodeTrailingComments(H),this.parseDo(this.startNodeAtNode(H),!0)}if(Y&&this.match(19)&&!this.canInsertSemicolon())return this.next(),this.parseArrowExpression(this.startNodeAtNode(H),[H],!1);return H}else throw this.unexpected()}}parseTopicReferenceThenEqualsSign(J,X){let Z=this.getPluginOption("pipelineOperator","proposal");if(Z)return this.state.type=J,this.state.value=X,this.state.pos--,this.state.end--,this.state.endLoc=o1(this.state.endLoc,-1),this.parseTopicReference(Z);throw this.unexpected()}parseTopicReference(J){let X=this.startNode(),Z=this.state.startLoc,Q=this.state.type;return this.next(),this.finishTopicReference(X,Z,J,Q)}finishTopicReference(J,X,Z,Q){if(this.testTopicReferenceConfiguration(Z,X,Q))if(Z==="hack"){if(!this.topicReferenceIsAllowedInCurrentContext())this.raise(j.PipeTopicUnbound,X);return this.registerTopicReference(),this.finishNode(J,"TopicReference")}else{if(!this.topicReferenceIsAllowedInCurrentContext())this.raise(j.PrimaryTopicNotAllowed,X);return this.registerTopicReference(),this.finishNode(J,"PipelinePrimaryTopicReference")}else throw this.raise(j.PipeTopicUnconfiguredToken,X,{token:X0(Q)})}testTopicReferenceConfiguration(J,X,Z){switch(J){case"hack":return this.hasPlugin(["pipelineOperator",{topicToken:X0(Z)}]);case"smart":return Z===27;default:throw this.raise(j.PipeTopicRequiresHackPipes,X)}}parseAsyncArrowUnaryFunction(J){this.prodParam.enter(T9(!0,this.prodParam.hasYield));let X=[this.parseIdentifier()];if(this.prodParam.exit(),this.hasPrecedingLineBreak())this.raise(j.LineTerminatorBeforeArrow,this.state.curPosition());return this.expect(19),this.parseArrowExpression(J,X,!0)}parseDo(J,X){if(this.expectPlugin("doExpressions"),X)this.expectPlugin("asyncDoExpressions");J.async=X,this.next();let Z=this.state.labels;if(this.state.labels=[],X)this.prodParam.enter(2),J.body=this.parseBlock(),this.prodParam.exit();else J.body=this.parseBlock();return this.state.labels=Z,this.finishNode(J,"DoExpression")}parseSuper(){let J=this.startNode();if(this.next(),this.match(10)&&!this.scope.allowDirectSuper){if(!(this.optionFlags&16))this.raise(j.SuperNotAllowed,J)}else if(!this.scope.allowSuper){if(!(this.optionFlags&16))this.raise(j.UnexpectedSuper,J)}if(!this.match(10)&&!this.match(0)&&!this.match(16))this.raise(j.UnsupportedSuper,J);return this.finishNode(J,"Super")}parsePrivateName(){let J=this.startNode(),X=this.startNodeAt(o1(this.state.startLoc,1)),Z=this.state.value;return this.next(),J.id=this.createIdentifier(X,Z),this.finishNode(J,"PrivateName")}parseFunctionOrFunctionSent(){let J=this.startNode();if(this.next(),this.prodParam.hasYield&&this.match(16)){let X=this.createIdentifier(this.startNodeAtNode(J),"function");if(this.next(),this.match(103))this.expectPlugin("functionSent");else if(!this.hasPlugin("functionSent"))this.unexpected();return this.parseMetaProperty(J,X,"sent")}return this.parseFunction(J)}parseMetaProperty(J,X,Z){J.meta=X;let Q=this.state.containsEsc;if(J.property=this.parseIdentifier(!0),J.property.name!==Z||Q)this.raise(j.UnsupportedMetaProperty,J.property,{target:X.name,onlyValidPropertyName:Z});return this.finishNode(J,"MetaProperty")}parseImportMetaPropertyOrPhaseCall(J){if(this.next(),this.isContextual(105)||this.isContextual(97)){let X=this.isContextual(105);return this.expectPlugin(X?"sourcePhaseImports":"deferredImportEvaluation"),this.next(),J.phase=X?"source":"defer",this.parseImportCall(J)}else{let X=this.createIdentifierAt(this.startNodeAtNode(J),"import",this.state.lastTokStartLoc);if(this.isContextual(101)){if(!this.inModule)this.raise(j.ImportMetaOutsideModule,X);this.sawUnambiguousESM=!0}return this.parseMetaProperty(J,X,"meta")}}parseLiteralAtNode(J,X,Z){return this.addExtra(Z,"rawValue",J),this.addExtra(Z,"raw",this.input.slice(this.offsetToSourcePos(Z.start),this.state.end)),Z.value=J,this.next(),this.finishNode(Z,X)}parseLiteral(J,X){let Z=this.startNode();return this.parseLiteralAtNode(J,X,Z)}parseStringLiteral(J){return this.parseLiteral(J,"StringLiteral")}parseNumericLiteral(J){return this.parseLiteral(J,"NumericLiteral")}parseBigIntLiteral(J){return this.parseLiteral(J,"BigIntLiteral")}parseDecimalLiteral(J){return this.parseLiteral(J,"DecimalLiteral")}parseRegExpLiteral(J){let X=this.startNode();return this.addExtra(X,"raw",this.input.slice(this.offsetToSourcePos(X.start),this.state.end)),X.pattern=J.pattern,X.flags=J.flags,this.next(),this.finishNode(X,"RegExpLiteral")}parseBooleanLiteral(J){let X=this.startNode();return X.value=J,this.next(),this.finishNode(X,"BooleanLiteral")}parseNullLiteral(){let J=this.startNode();return this.next(),this.finishNode(J,"NullLiteral")}parseParenAndDistinguishExpression(J){let X=this.state.startLoc,Z;this.next(),this.expressionScope.enter(jQ1());let Q=this.state.maybeInArrowParameters,Y=this.state.inFSharpPipelineDirectBody;this.state.maybeInArrowParameters=!0,this.state.inFSharpPipelineDirectBody=!1;let z=this.state.startLoc,H=[],G=new IX,W=!0,V,U;while(!this.match(11)){if(W)W=!1;else if(this.expect(12,G.optionalParametersLoc===null?null:G.optionalParametersLoc),this.match(11)){U=this.state.startLoc;break}if(this.match(21)){let A=this.state.startLoc;if(V=this.state.startLoc,H.push(this.parseParenItem(this.parseRestBinding(),A)),!this.checkCommaAfterRest(41))break}else H.push(this.parseMaybeAssignAllowInOrVoidPattern(11,G,this.parseParenItem))}let q=this.state.lastTokEndLoc;this.expect(11),this.state.maybeInArrowParameters=Q,this.state.inFSharpPipelineDirectBody=Y;let O=this.startNodeAt(X);if(J&&this.shouldParseArrow(H)&&(O=this.parseArrow(O)))return this.checkDestructuringPrivate(G),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),this.parseArrowExpression(O,H,!1),O;if(this.expressionScope.exit(),!H.length)this.unexpected(this.state.lastTokStartLoc);if(U)this.unexpected(U);if(V)this.unexpected(V);if(this.checkExpressionErrors(G,!0),this.toReferencedListDeep(H,!0),H.length>1)Z=this.startNodeAt(z),Z.expressions=H,this.finishNode(Z,"SequenceExpression"),this.resetEndLocation(Z,q);else Z=H[0];return this.wrapParenthesis(X,Z)}wrapParenthesis(J,X){if(!(this.optionFlags&1024))return this.addExtra(X,"parenthesized",!0),this.addExtra(X,"parenStart",J.index),this.takeSurroundingComments(X,J.index,this.state.lastTokEndLoc.index),X;let Z=this.startNodeAt(J);return Z.expression=X,this.finishNode(Z,"ParenthesizedExpression")}shouldParseArrow(J){return!this.canInsertSemicolon()}parseArrow(J){if(this.eat(19))return J}parseParenItem(J,X){return J}parseNewOrNewTarget(){let J=this.startNode();if(this.next(),this.match(16)){let X=this.createIdentifier(this.startNodeAtNode(J),"new");this.next();let Z=this.parseMetaProperty(J,X,"target");if(!this.scope.allowNewTarget)this.raise(j.UnexpectedNewTarget,Z);return Z}return this.parseNew(J)}parseNew(J){if(this.parseNewCallee(J),this.eat(10)){let X=this.parseExprList(11);this.toReferencedList(X),J.arguments=X}else J.arguments=[];return this.finishNode(J,"NewExpression")}parseNewCallee(J){let X=this.match(83),Z=this.parseNoCallExpr();if(J.callee=Z,X&&(Z.type==="Import"||Z.type==="ImportExpression"))this.raise(j.ImportCallNotNewExpression,Z)}parseTemplateElement(J){let{start:X,startLoc:Z,end:Q,value:Y}=this.state,z=X+1,H=this.startNodeAt(o1(Z,1));if(Y===null){if(!J)this.raise(j.InvalidEscapeSequenceTemplate,o1(this.state.firstInvalidTemplateEscapePos,1))}let G=this.match(24),W=G?-1:-2,V=Q+W;H.value={raw:this.input.slice(z,V).replace(/\r\n?/g,`
|
|
23
|
+
`),cooked:Y===null?null:Y.slice(1,W)},H.tail=G,this.next();let U=this.finishNode(H,"TemplateElement");return this.resetEndLocation(U,o1(this.state.lastTokEndLoc,W)),U}parseTemplate(J){let X=this.startNode(),Z=this.parseTemplateElement(J),Q=[Z],Y=[];while(!Z.tail)Y.push(this.parseTemplateSubstitution()),this.readTemplateContinuation(),Q.push(Z=this.parseTemplateElement(J));return X.expressions=Y,X.quasis=Q,this.finishNode(X,"TemplateLiteral")}parseTemplateSubstitution(){return this.parseExpression()}parseObjectLike(J,X,Z,Q){if(Z)this.expectPlugin("recordAndTuple");let Y=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let z=!1,H=!0,G=this.startNode();G.properties=[],this.next();while(!this.match(J)){if(H)H=!1;else if(this.expect(12),this.match(J)){this.addTrailingCommaExtraToNode(G);break}let V;if(X)V=this.parseBindingProperty();else V=this.parsePropertyDefinition(Q),z=this.checkProto(V,Z,z,Q);if(Z&&!this.isObjectProperty(V)&&V.type!=="SpreadElement")this.raise(j.InvalidRecordProperty,V);if(V.shorthand)this.addExtra(V,"shorthand",!0);G.properties.push(V)}this.next(),this.state.inFSharpPipelineDirectBody=Y;let W="ObjectExpression";if(X)W="ObjectPattern";else if(Z)W="RecordExpression";return this.finishNode(G,W)}addTrailingCommaExtraToNode(J){this.addExtra(J,"trailingComma",this.state.lastTokStartLoc.index),this.addExtra(J,"trailingCommaLoc",this.state.lastTokStartLoc,!1)}maybeAsyncOrAccessorProp(J){return!J.computed&&J.key.type==="Identifier"&&(this.isLiteralPropertyName()||this.match(0)||this.match(55))}parsePropertyDefinition(J){let X=[];if(this.match(26)){if(this.hasPlugin("decorators"))this.raise(j.UnsupportedPropertyDecorator,this.state.startLoc);while(this.match(26))X.push(this.parseDecorator())}let Z=this.startNode(),Q=!1,Y=!1,z;if(this.match(21)){if(X.length)this.unexpected();return this.parseSpread()}if(X.length)Z.decorators=X,X=[];if(Z.method=!1,J)z=this.state.startLoc;let H=this.eat(55);this.parsePropertyNamePrefixOperator(Z);let G=this.state.containsEsc;if(this.parsePropertyName(Z,J),!H&&!G&&this.maybeAsyncOrAccessorProp(Z)){let{key:W}=Z,V=W.name;if(V==="async"&&!this.hasPrecedingLineBreak())Q=!0,this.resetPreviousNodeTrailingComments(W),H=this.eat(55),this.parsePropertyName(Z);if(V==="get"||V==="set"){if(Y=!0,this.resetPreviousNodeTrailingComments(W),Z.kind=V,this.match(55))H=!0,this.raise(j.AccessorIsGenerator,this.state.curPosition(),{kind:V}),this.next();this.parsePropertyName(Z)}}return this.parseObjPropValue(Z,z,H,Q,!1,Y,J)}getGetterSetterExpectedParamCount(J){return J.kind==="get"?0:1}getObjectOrClassMethodParams(J){return J.params}checkGetterSetterParams(J){var X;let Z=this.getGetterSetterExpectedParamCount(J),Q=this.getObjectOrClassMethodParams(J);if(Q.length!==Z)this.raise(J.kind==="get"?j.BadGetterArity:j.BadSetterArity,J);if(J.kind==="set"&&((X=Q[Q.length-1])==null?void 0:X.type)==="RestElement")this.raise(j.BadSetterRestParameter,J)}parseObjectMethod(J,X,Z,Q,Y){if(Y){let z=this.parseMethod(J,X,!1,!1,!1,"ObjectMethod");return this.checkGetterSetterParams(z),z}if(Z||X||this.match(10)){if(Q)this.unexpected();return J.kind="method",J.method=!0,this.parseMethod(J,X,Z,!1,!1,"ObjectMethod")}}parseObjectProperty(J,X,Z,Q){if(J.shorthand=!1,this.eat(14))return J.value=Z?this.parseMaybeDefault(this.state.startLoc):this.parseMaybeAssignAllowInOrVoidPattern(8,Q),this.finishObjectProperty(J);if(!J.computed&&J.key.type==="Identifier"){if(this.checkReservedWord(J.key.name,J.key.loc.start,!0,!1),Z)J.value=this.parseMaybeDefault(X,this.cloneIdentifier(J.key));else if(this.match(29)){let Y=this.state.startLoc;if(Q!=null){if(Q.shorthandAssignLoc===null)Q.shorthandAssignLoc=Y}else this.raise(j.InvalidCoverInitializedName,Y);J.value=this.parseMaybeDefault(X,this.cloneIdentifier(J.key))}else J.value=this.cloneIdentifier(J.key);return J.shorthand=!0,this.finishObjectProperty(J)}}finishObjectProperty(J){return this.finishNode(J,"ObjectProperty")}parseObjPropValue(J,X,Z,Q,Y,z,H){let G=this.parseObjectMethod(J,Z,Q,Y,z)||this.parseObjectProperty(J,X,Y,H);if(!G)this.unexpected();return G}parsePropertyName(J,X){if(this.eat(0))J.computed=!0,J.key=this.parseMaybeAssignAllowIn(),this.expect(3);else{let{type:Z,value:Q}=this.state,Y;if(CJ(Z))Y=this.parseIdentifier(!0);else switch(Z){case 135:Y=this.parseNumericLiteral(Q);break;case 134:Y=this.parseStringLiteral(Q);break;case 136:Y=this.parseBigIntLiteral(Q);break;case 139:{let z=this.state.startLoc;if(X!=null){if(X.privateKeyLoc===null)X.privateKeyLoc=z}else this.raise(j.UnexpectedPrivateField,z);Y=this.parsePrivateName();break}default:if(Z===137){Y=this.parseDecimalLiteral(Q);break}this.unexpected()}if(J.key=Y,Z!==139)J.computed=!1}}initFunction(J,X){J.id=null,J.generator=!1,J.async=X}parseMethod(J,X,Z,Q,Y,z,H=!1){this.initFunction(J,Z),J.generator=X,this.scope.enter(530|(H?576:0)|(Y?32:0)),this.prodParam.enter(T9(Z,J.generator)),this.parseFunctionParams(J,Q);let G=this.parseFunctionBodyAndFinish(J,z,!0);return this.prodParam.exit(),this.scope.exit(),G}parseArrayLike(J,X,Z){if(X)this.expectPlugin("recordAndTuple");let Q=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let Y=this.startNode();return this.next(),Y.elements=this.parseExprList(J,!X,Z,Y),this.state.inFSharpPipelineDirectBody=Q,this.finishNode(Y,X?"TupleExpression":"ArrayExpression")}parseArrowExpression(J,X,Z,Q){this.scope.enter(518);let Y=T9(Z,!1);if(!this.match(5)&&this.prodParam.hasIn)Y|=8;this.prodParam.enter(Y),this.initFunction(J,Z);let z=this.state.maybeInArrowParameters;if(X)this.state.maybeInArrowParameters=!0,this.setArrowFunctionParameters(J,X,Q);return this.state.maybeInArrowParameters=!1,this.parseFunctionBody(J,!0),this.prodParam.exit(),this.scope.exit(),this.state.maybeInArrowParameters=z,this.finishNode(J,"ArrowFunctionExpression")}setArrowFunctionParameters(J,X,Z){this.toAssignableList(X,Z,!1),J.params=X}parseFunctionBodyAndFinish(J,X,Z=!1){return this.parseFunctionBody(J,!1,Z),this.finishNode(J,X)}parseFunctionBody(J,X,Z=!1){let Q=X&&!this.match(5);if(this.expressionScope.enter(wz()),Q)J.body=this.parseMaybeAssign(),this.checkParams(J,!1,X,!1);else{let Y=this.state.strict,z=this.state.labels;this.state.labels=[],this.prodParam.enter(this.prodParam.currentFlags()|4),J.body=this.parseBlock(!0,!1,(H)=>{let G=!this.isSimpleParamList(J.params);if(H&&G)this.raise(j.IllegalLanguageModeDirective,(J.kind==="method"||J.kind==="constructor")&&!!J.key?J.key.loc.end:J);let W=!Y&&this.state.strict;if(this.checkParams(J,!this.state.strict&&!X&&!Z&&!G,X,W),this.state.strict&&J.id)this.checkIdentifier(J.id,65,W)}),this.prodParam.exit(),this.state.labels=z}this.expressionScope.exit()}isSimpleParameter(J){return J.type==="Identifier"}isSimpleParamList(J){for(let X=0,Z=J.length;X<Z;X++)if(!this.isSimpleParameter(J[X]))return!1;return!0}checkParams(J,X,Z,Q=!0){let Y=!X&&new Set,z={type:"FormalParameters"};for(let H of J.params)this.checkLVal(H,z,5,Y,Q)}parseExprList(J,X,Z,Q){let Y=[],z=!0;while(!this.eat(J)){if(z)z=!1;else if(this.expect(12),this.match(J)){if(Q)this.addTrailingCommaExtraToNode(Q);this.next();break}Y.push(this.parseExprListItem(J,X,Z))}return Y}parseExprListItem(J,X,Z,Q){let Y;if(this.match(12)){if(!X)this.raise(j.UnexpectedToken,this.state.curPosition(),{unexpected:","});Y=null}else if(this.match(21)){let z=this.state.startLoc;Y=this.parseParenItem(this.parseSpread(Z),z)}else if(this.match(17)){if(this.expectPlugin("partialApplication"),!Q)this.raise(j.UnexpectedArgumentPlaceholder,this.state.startLoc);let z=this.startNode();this.next(),Y=this.finishNode(z,"ArgumentPlaceholder")}else Y=this.parseMaybeAssignAllowInOrVoidPattern(J,Z,this.parseParenItem);return Y}parseIdentifier(J){let X=this.startNode(),Z=this.parseIdentifierName(J);return this.createIdentifier(X,Z)}createIdentifier(J,X){return J.name=X,J.loc.identifierName=X,this.finishNode(J,"Identifier")}createIdentifierAt(J,X,Z){return J.name=X,J.loc.identifierName=X,this.finishNodeAt(J,"Identifier",Z)}parseIdentifierName(J){let X,{startLoc:Z,type:Q}=this.state;if(CJ(Q))X=this.state.value;else this.unexpected();let Y=_Z1(Q);if(J){if(Y)this.replaceToken(132)}else this.checkReservedWord(X,Z,Y,!1);return this.next(),X}checkReservedWord(J,X,Z,Q){if(J.length>10)return;if(!JQ1(J))return;if(Z&&nZ1(J)){this.raise(j.UnexpectedKeyword,X,{keyword:J});return}if((!this.state.strict?Hz:Q?Vz:Gz)(J,this.inModule)){this.raise(j.UnexpectedReservedWord,X,{reservedWord:J});return}else if(J==="yield"){if(this.prodParam.hasYield){this.raise(j.YieldBindingIdentifier,X);return}}else if(J==="await"){if(this.prodParam.hasAwait){this.raise(j.AwaitBindingIdentifier,X);return}if(this.scope.inStaticBlock){this.raise(j.AwaitBindingIdentifierInStaticBlock,X);return}this.expressionScope.recordAsyncArrowParametersError(X)}else if(J==="arguments"){if(this.scope.inClassAndNotInNonArrowFunction){this.raise(j.ArgumentsInClass,X);return}}}recordAwaitIfAllowed(){let J=this.prodParam.hasAwait;if(J&&!this.scope.inFunction)this.state.hasTopLevelAwait=!0;return J}parseAwait(J){let X=this.startNodeAt(J);if(this.expressionScope.recordParameterInitializerError(j.AwaitExpressionFormalParameter,X),this.eat(55))this.raise(j.ObsoleteAwaitStar,X);if(!this.scope.inFunction&&!(this.optionFlags&1))if(this.isAmbiguousPrefixOrIdentifier())this.ambiguousScriptDifferentAst=!0;else this.sawUnambiguousESM=!0;if(!this.state.soloAwait)X.argument=this.parseMaybeUnary(null,!0);return this.finishNode(X,"AwaitExpression")}isAmbiguousPrefixOrIdentifier(){if(this.hasPrecedingLineBreak())return!0;let{type:J}=this.state;return J===53||J===10||J===0||L9(J)||J===102&&!this.state.containsEsc||J===138||J===56||this.hasPlugin("v8intrinsic")&&J===54}parseYield(J){let X=this.startNodeAt(J);this.expressionScope.recordParameterInitializerError(j.YieldInParameter,X);let Z=!1,Q=null;if(!this.hasPrecedingLineBreak())switch(Z=this.eat(55),this.state.type){case 13:case 140:case 8:case 11:case 3:case 9:case 14:case 12:if(!Z)break;default:Q=this.parseMaybeAssign()}return X.delegate=Z,X.argument=Q,this.finishNode(X,"YieldExpression")}parseImportCall(J){if(this.next(),J.source=this.parseMaybeAssignAllowIn(),J.options=null,this.eat(12))if(!this.match(11)){if(J.options=this.parseMaybeAssignAllowIn(),this.eat(12)){if(this.addTrailingCommaExtraToNode(J.options),!this.match(11)){do this.parseMaybeAssignAllowIn();while(this.eat(12)&&!this.match(11));this.raise(j.ImportCallArity,J)}}}else this.addTrailingCommaExtraToNode(J.source);return this.expect(11),this.finishNode(J,"ImportExpression")}checkPipelineAtInfixOperator(J,X){if(this.hasPlugin(["pipelineOperator",{proposal:"smart"}])){if(J.type==="SequenceExpression")this.raise(j.PipelineHeadSequenceExpression,X)}}parseSmartPipelineBodyInStyle(J,X){if(this.isSimpleReference(J)){let Z=this.startNodeAt(X);return Z.callee=J,this.finishNode(Z,"PipelineBareFunction")}else{let Z=this.startNodeAt(X);return this.checkSmartPipeTopicBodyEarlyErrors(X),Z.expression=J,this.finishNode(Z,"PipelineTopicExpression")}}isSimpleReference(J){switch(J.type){case"MemberExpression":return!J.computed&&this.isSimpleReference(J.object);case"Identifier":return!0;default:return!1}}checkSmartPipeTopicBodyEarlyErrors(J){if(this.match(19))throw this.raise(j.PipelineBodyNoArrow,this.state.startLoc);if(!this.topicReferenceWasUsedInCurrentContext())this.raise(j.PipelineTopicUnused,J)}withTopicBindingContext(J){let X=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:1,maxTopicIndex:null};try{return J()}finally{this.state.topicContext=X}}withSmartMixTopicForbiddingContext(J){if(this.hasPlugin(["pipelineOperator",{proposal:"smart"}])){let X=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null};try{return J()}finally{this.state.topicContext=X}}else return J()}withSoloAwaitPermittingContext(J){let X=this.state.soloAwait;this.state.soloAwait=!0;try{return J()}finally{this.state.soloAwait=X}}allowInAnd(J){let X=this.prodParam.currentFlags();if(8&~X){this.prodParam.enter(X|8);try{return J()}finally{this.prodParam.exit()}}return J()}disallowInAnd(J){let X=this.prodParam.currentFlags();if(8&X){this.prodParam.enter(X&-9);try{return J()}finally{this.prodParam.exit()}}return J()}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(J){let X=this.state.startLoc;this.state.potentialArrowAt=this.state.start;let Z=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!0;let Q=this.parseExprOp(this.parseMaybeUnaryOrPrivate(),X,J);return this.state.inFSharpPipelineDirectBody=Z,Q}parseModuleExpression(){this.expectPlugin("moduleBlocks");let J=this.startNode();if(this.next(),!this.match(5))this.unexpected(null,5);let X=this.startNodeAt(this.state.endLoc);this.next();let Z=this.initializeScopes(!0);this.enterInitialScopes();try{J.body=this.parseProgram(X,8,"module")}finally{Z()}return this.finishNode(J,"ModuleExpression")}parseVoidPattern(J){this.expectPlugin("discardBinding");let X=this.startNode();if(J!=null)J.voidPatternLoc=this.state.startLoc;return this.next(),this.finishNode(X,"VoidPattern")}parseMaybeAssignAllowInOrVoidPattern(J,X,Z){if(X!=null&&this.match(88)){let Q=this.lookaheadCharCode();if(Q===44||Q===(J===3?93:J===8?125:41)||Q===61)return this.parseMaybeDefault(this.state.startLoc,this.parseVoidPattern(X))}return this.parseMaybeAssignAllowIn(X,Z)}parsePropertyNamePrefixOperator(J){}}var s6={kind:1},bQ1={kind:2},kQ1=/[\uD800-\uDFFF]/u,t6=/in(?:stanceof)?/y;function vQ1(J,X,Z){for(let Q=0;Q<J.length;Q++){let Y=J[Q],{type:z}=Y;if(typeof z==="number"){if(z===139){let{loc:H,start:G,value:W,end:V}=Y,U=G+1,q=o1(H.start,1);J.splice(Q,1,new mJ({type:uJ(27),value:"#",start:G,end:U,startLoc:H.start,endLoc:q}),new mJ({type:uJ(132),value:W,start:U,end:V,startLoc:q,endLoc:H.end})),Q++;continue}if(L9(z)){let{loc:H,start:G,value:W,end:V}=Y,U=G+1,q=o1(H.start,1),O;if(X.charCodeAt(G-Z)===96)O=new mJ({type:uJ(22),value:"`",start:G,end:U,startLoc:H.start,endLoc:q});else O=new mJ({type:uJ(8),value:"}",start:G,end:U,startLoc:H.start,endLoc:q});let A,D,S,C;if(z===24)D=V-1,S=o1(H.end,-1),A=W===null?null:W.slice(1,-1),C=new mJ({type:uJ(22),value:"`",start:D,end:V,startLoc:S,endLoc:H.end});else D=V-2,S=o1(H.end,-2),A=W===null?null:W.slice(1,-2),C=new mJ({type:uJ(23),value:"${",start:D,end:V,startLoc:S,endLoc:H.end});J.splice(Q,1,O,new mJ({type:uJ(20),value:A,start:U,end:D,startLoc:q,endLoc:S}),C),Q+=2;continue}Y.type=uJ(z)}}return J}class vz extends kz{parseTopLevel(J,X){if(J.program=this.parseProgram(X,140,this.options.sourceType==="module"?"module":"script"),J.comments=this.comments,this.optionFlags&256)J.tokens=vQ1(this.tokens,this.input,this.startIndex);return this.finishNode(J,"File")}parseProgram(J,X,Z){if(J.sourceType=Z,J.interpreter=this.parseInterpreterDirective(),this.parseBlockBody(J,!0,!0,X),this.inModule){if(!(this.optionFlags&64)&&this.scope.undefinedExports.size>0)for(let[Y,z]of Array.from(this.scope.undefinedExports))this.raise(j.ModuleExportUndefined,z,{localName:Y});this.addExtra(J,"topLevelAwait",this.state.hasTopLevelAwait)}let Q;if(X===140)Q=this.finishNode(J,"Program");else Q=this.finishNodeAt(J,"Program",o1(this.state.startLoc,-1));return Q}stmtToDirective(J){let X=this.castNodeTo(J,"Directive"),Z=this.castNodeTo(J.expression,"DirectiveLiteral"),Q=Z.value,Y=this.input.slice(this.offsetToSourcePos(Z.start),this.offsetToSourcePos(Z.end)),z=Z.value=Y.slice(1,-1);return this.addExtra(Z,"raw",Y),this.addExtra(Z,"rawValue",z),this.addExtra(Z,"expressionValue",Q),X.value=Z,delete J.expression,X}parseInterpreterDirective(){if(!this.match(28))return null;let J=this.startNode();return J.value=this.state.value,this.next(),this.finishNode(J,"InterpreterDirective")}isLet(){if(!this.isContextual(100))return!1;return this.hasFollowingBindingAtom()}isUsing(){if(!this.isContextual(107))return!1;return this.nextTokenIsIdentifierOnSameLine()}isForUsing(){if(!this.isContextual(107))return!1;let J=this.nextTokenInLineStart(),X=this.codePointAtPos(J);if(this.isUnparsedContextual(J,"of")){let Z=this.lookaheadCharCodeSince(J+2);if(Z!==61&&Z!==58&&Z!==59)return!1}if(this.chStartsBindingIdentifier(X,J)||this.isUnparsedContextual(J,"void"))return!0;return!1}nextTokenIsIdentifierOnSameLine(){let J=this.nextTokenInLineStart(),X=this.codePointAtPos(J);return this.chStartsBindingIdentifier(X,J)}isAwaitUsing(){if(!this.isContextual(96))return!1;let J=this.nextTokenInLineStart();if(this.isUnparsedContextual(J,"using")){J=this.nextTokenInLineStartSince(J+5);let X=this.codePointAtPos(J);if(this.chStartsBindingIdentifier(X,J))return!0}return!1}chStartsBindingIdentifier(J,X){if(kJ(J)){if(t6.lastIndex=X,t6.test(this.input)){let Z=this.codePointAtPos(t6.lastIndex);if(!q0(Z)&&Z!==92)return!1}return!0}else if(J===92)return!0;else return!1}chStartsBindingPattern(J){return J===91||J===123}hasFollowingBindingAtom(){let J=this.nextTokenStart(),X=this.codePointAtPos(J);return this.chStartsBindingPattern(X)||this.chStartsBindingIdentifier(X,J)}hasInLineFollowingBindingIdentifierOrBrace(){let J=this.nextTokenInLineStart(),X=this.codePointAtPos(J);return X===123||this.chStartsBindingIdentifier(X,J)}allowsUsing(){return(this.scope.inModule||!this.scope.inTopLevel)&&!this.scope.inBareCaseStatement}parseModuleItem(){return this.parseStatementLike(15)}parseStatementListItem(){return this.parseStatementLike(6|(!this.options.annexB||this.state.strict?0:8))}parseStatementOrSloppyAnnexBFunctionDeclaration(J=!1){let X=0;if(this.options.annexB&&!this.state.strict){if(X|=4,J)X|=8}return this.parseStatementLike(X)}parseStatement(){return this.parseStatementLike(0)}parseStatementLike(J){let X=null;if(this.match(26))X=this.parseDecorators(!0);return this.parseStatementContent(J,X)}parseStatementContent(J,X){let Z=this.state.type,Q=this.startNode(),Y=!!(J&2),z=!!(J&4),H=J&1;switch(Z){case 60:return this.parseBreakContinueStatement(Q,!0);case 63:return this.parseBreakContinueStatement(Q,!1);case 64:return this.parseDebuggerStatement(Q);case 90:return this.parseDoWhileStatement(Q);case 91:return this.parseForStatement(Q);case 68:if(this.lookaheadCharCode()===46)break;if(!z)this.raise(this.state.strict?j.StrictFunction:this.options.annexB?j.SloppyFunctionAnnexB:j.SloppyFunction,this.state.startLoc);return this.parseFunctionStatement(Q,!1,!Y&&z);case 80:if(!Y)this.unexpected();return this.parseClass(this.maybeTakeDecorators(X,Q),!0);case 69:return this.parseIfStatement(Q);case 70:return this.parseReturnStatement(Q);case 71:return this.parseSwitchStatement(Q);case 72:return this.parseThrowStatement(Q);case 73:return this.parseTryStatement(Q);case 96:if(this.isAwaitUsing()){if(!this.allowsUsing())this.raise(j.UnexpectedUsingDeclaration,Q);else if(!Y)this.raise(j.UnexpectedLexicalDeclaration,Q);else if(!this.recordAwaitIfAllowed())this.raise(j.AwaitUsingNotInAsyncContext,Q);return this.next(),this.parseVarStatement(Q,"await using")}break;case 107:if(this.state.containsEsc||!this.hasInLineFollowingBindingIdentifierOrBrace())break;if(!this.allowsUsing())this.raise(j.UnexpectedUsingDeclaration,this.state.startLoc);else if(!Y)this.raise(j.UnexpectedLexicalDeclaration,this.state.startLoc);return this.parseVarStatement(Q,"using");case 100:{if(this.state.containsEsc)break;let V=this.nextTokenStart(),U=this.codePointAtPos(V);if(U!==91){if(!Y&&this.hasFollowingLineBreak())break;if(!this.chStartsBindingIdentifier(U,V)&&U!==123)break}}case 75:if(!Y)this.raise(j.UnexpectedLexicalDeclaration,this.state.startLoc);case 74:{let V=this.state.value;return this.parseVarStatement(Q,V)}case 92:return this.parseWhileStatement(Q);case 76:return this.parseWithStatement(Q);case 5:return this.parseBlock();case 13:return this.parseEmptyStatement(Q);case 83:{let V=this.lookaheadCharCode();if(V===40||V===46)break}case 82:{if(!(this.optionFlags&8)&&!H)this.raise(j.UnexpectedImportExport,this.state.startLoc);this.next();let V;if(Z===83)V=this.parseImport(Q);else V=this.parseExport(Q,X);return this.assertModuleNodeAllowed(V),V}default:if(this.isAsyncFunction()){if(!Y)this.raise(j.AsyncFunctionInSingleStatementContext,this.state.startLoc);return this.next(),this.parseFunctionStatement(Q,!0,!Y&&z)}}let G=this.state.value,W=this.parseExpression();if(A1(Z)&&W.type==="Identifier"&&this.eat(14))return this.parseLabeledStatement(Q,G,W,J);else return this.parseExpressionStatement(Q,W,X)}assertModuleNodeAllowed(J){if(!(this.optionFlags&8)&&!this.inModule)this.raise(j.ImportOutsideModule,J)}decoratorsEnabledBeforeExport(){if(this.hasPlugin("decorators-legacy"))return!0;return this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")!==!1}maybeTakeDecorators(J,X,Z){if(J){var Q;if((Q=X.decorators)!=null&&Q.length){if(typeof this.getPluginOption("decorators","decoratorsBeforeExport")!=="boolean")this.raise(j.DecoratorsBeforeAfterExport,X.decorators[0]);X.decorators.unshift(...J)}else X.decorators=J;if(this.resetStartLocationFromNode(X,J[0]),Z)this.resetStartLocationFromNode(Z,X)}return X}canHaveLeadingDecorator(){return this.match(80)}parseDecorators(J){let X=[];do X.push(this.parseDecorator());while(this.match(26));if(this.match(82)){if(!J)this.unexpected();if(!this.decoratorsEnabledBeforeExport())this.raise(j.DecoratorExportClass,this.state.startLoc)}else if(!this.canHaveLeadingDecorator())throw this.raise(j.UnexpectedLeadingDecorator,this.state.startLoc);return X}parseDecorator(){this.expectOnePlugin(["decorators","decorators-legacy"]);let J=this.startNode();if(this.next(),this.hasPlugin("decorators")){let X=this.state.startLoc,Z;if(this.match(10)){let Q=this.state.startLoc;this.next(),Z=this.parseExpression(),this.expect(11),Z=this.wrapParenthesis(Q,Z);let Y=this.state.startLoc;if(J.expression=this.parseMaybeDecoratorArguments(Z,Q),this.getPluginOption("decorators","allowCallParenthesized")===!1&&J.expression!==Z)this.raise(j.DecoratorArgumentsOutsideParentheses,Y)}else{Z=this.parseIdentifier(!1);while(this.eat(16)){let Q=this.startNodeAt(X);if(Q.object=Z,this.match(139))this.classScope.usePrivateName(this.state.value,this.state.startLoc),Q.property=this.parsePrivateName();else Q.property=this.parseIdentifier(!0);Q.computed=!1,Z=this.finishNode(Q,"MemberExpression")}J.expression=this.parseMaybeDecoratorArguments(Z,X)}}else J.expression=this.parseExprSubscripts();return this.finishNode(J,"Decorator")}parseMaybeDecoratorArguments(J,X){if(this.eat(10)){let Z=this.startNodeAt(X);return Z.callee=J,Z.arguments=this.parseCallExpressionArguments(),this.toReferencedList(Z.arguments),this.finishNode(Z,"CallExpression")}return J}parseBreakContinueStatement(J,X){if(this.next(),this.isLineTerminator())J.label=null;else J.label=this.parseIdentifier(),this.semicolon();return this.verifyBreakContinue(J,X),this.finishNode(J,X?"BreakStatement":"ContinueStatement")}verifyBreakContinue(J,X){let Z;for(Z=0;Z<this.state.labels.length;++Z){let Q=this.state.labels[Z];if(J.label==null||Q.name===J.label.name){if(Q.kind!=null&&(X||Q.kind===1))break;if(J.label&&X)break}}if(Z===this.state.labels.length){let Q=X?"BreakStatement":"ContinueStatement";this.raise(j.IllegalBreakContinue,J,{type:Q})}}parseDebuggerStatement(J){return this.next(),this.semicolon(),this.finishNode(J,"DebuggerStatement")}parseHeaderExpression(){this.expect(10);let J=this.parseExpression();return this.expect(11),J}parseDoWhileStatement(J){return this.next(),this.state.labels.push(s6),J.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.state.labels.pop(),this.expect(92),J.test=this.parseHeaderExpression(),this.eat(13),this.finishNode(J,"DoWhileStatement")}parseForStatement(J){this.next(),this.state.labels.push(s6);let X=null;if(this.isContextual(96)&&this.recordAwaitIfAllowed())X=this.state.startLoc,this.next();if(this.scope.enter(0),this.expect(10),this.match(13)){if(X!==null)this.unexpected(X);return this.parseFor(J,null)}let Z=this.isContextual(100);{let G=this.isAwaitUsing(),W=G||this.isForUsing(),V=Z&&this.hasFollowingBindingAtom()||W;if(this.match(74)||this.match(75)||V){let U=this.startNode(),q;if(G){if(q="await using",!this.recordAwaitIfAllowed())this.raise(j.AwaitUsingNotInAsyncContext,this.state.startLoc);this.next()}else q=this.state.value;this.next(),this.parseVar(U,!0,q);let O=this.finishNode(U,"VariableDeclaration"),A=this.match(58);if(A&&W)this.raise(j.ForInUsing,O);if((A||this.isContextual(102))&&O.declarations.length===1)return this.parseForIn(J,O,X);if(X!==null)this.unexpected(X);return this.parseFor(J,O)}}let Q=this.isContextual(95),Y=new IX,z=this.parseExpression(!0,Y),H=this.isContextual(102);if(H){if(Z)this.raise(j.ForOfLet,z);if(X===null&&Q&&z.type==="Identifier")this.raise(j.ForOfAsync,z)}if(H||this.match(58)){this.checkDestructuringPrivate(Y),this.toAssignable(z,!0);let G=H?"ForOfStatement":"ForInStatement";return this.checkLVal(z,{type:G}),this.parseForIn(J,z,X)}else this.checkExpressionErrors(Y,!0);if(X!==null)this.unexpected(X);return this.parseFor(J,z)}parseFunctionStatement(J,X,Z){return this.next(),this.parseFunction(J,1|(Z?2:0)|(X?8:0))}parseIfStatement(J){return this.next(),J.test=this.parseHeaderExpression(),J.consequent=this.parseStatementOrSloppyAnnexBFunctionDeclaration(),J.alternate=this.eat(66)?this.parseStatementOrSloppyAnnexBFunctionDeclaration():null,this.finishNode(J,"IfStatement")}parseReturnStatement(J){if(!this.prodParam.hasReturn)this.raise(j.IllegalReturn,this.state.startLoc);if(this.next(),this.isLineTerminator())J.argument=null;else J.argument=this.parseExpression(),this.semicolon();return this.finishNode(J,"ReturnStatement")}parseSwitchStatement(J){this.next(),J.discriminant=this.parseHeaderExpression();let X=J.cases=[];this.expect(5),this.state.labels.push(bQ1),this.scope.enter(256);let Z;for(let Q;!this.match(8);)if(this.match(61)||this.match(65)){let Y=this.match(61);if(Z)this.finishNode(Z,"SwitchCase");if(X.push(Z=this.startNode()),Z.consequent=[],this.next(),Y)Z.test=this.parseExpression();else{if(Q)this.raise(j.MultipleDefaultsInSwitch,this.state.lastTokStartLoc);Q=!0,Z.test=null}this.expect(14)}else if(Z)Z.consequent.push(this.parseStatementListItem());else this.unexpected();if(this.scope.exit(),Z)this.finishNode(Z,"SwitchCase");return this.next(),this.state.labels.pop(),this.finishNode(J,"SwitchStatement")}parseThrowStatement(J){if(this.next(),this.hasPrecedingLineBreak())this.raise(j.NewlineAfterThrow,this.state.lastTokEndLoc);return J.argument=this.parseExpression(),this.semicolon(),this.finishNode(J,"ThrowStatement")}parseCatchClauseParam(){let J=this.parseBindingAtom();return this.scope.enter(this.options.annexB&&J.type==="Identifier"?8:0),this.checkLVal(J,{type:"CatchClause"},9),J}parseTryStatement(J){if(this.next(),J.block=this.parseBlock(),J.handler=null,this.match(62)){let X=this.startNode();if(this.next(),this.match(10))this.expect(10),X.param=this.parseCatchClauseParam(),this.expect(11);else X.param=null,this.scope.enter(0);X.body=this.withSmartMixTopicForbiddingContext(()=>this.parseBlock(!1,!1)),this.scope.exit(),J.handler=this.finishNode(X,"CatchClause")}if(J.finalizer=this.eat(67)?this.parseBlock():null,!J.handler&&!J.finalizer)this.raise(j.NoCatchOrFinally,J);return this.finishNode(J,"TryStatement")}parseVarStatement(J,X,Z=!1){return this.next(),this.parseVar(J,!1,X,Z),this.semicolon(),this.finishNode(J,"VariableDeclaration")}parseWhileStatement(J){return this.next(),J.test=this.parseHeaderExpression(),this.state.labels.push(s6),J.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.state.labels.pop(),this.finishNode(J,"WhileStatement")}parseWithStatement(J){if(this.state.strict)this.raise(j.StrictWith,this.state.startLoc);return this.next(),J.object=this.parseHeaderExpression(),J.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.finishNode(J,"WithStatement")}parseEmptyStatement(J){return this.next(),this.finishNode(J,"EmptyStatement")}parseLabeledStatement(J,X,Z,Q){for(let z of this.state.labels)if(z.name===X)this.raise(j.LabelRedeclaration,Z,{labelName:X});let Y=xZ1(this.state.type)?1:this.match(71)?2:null;for(let z=this.state.labels.length-1;z>=0;z--){let H=this.state.labels[z];if(H.statementStart===J.start)H.statementStart=this.sourceToOffsetPos(this.state.start),H.kind=Y;else break}return this.state.labels.push({name:X,kind:Y,statementStart:this.sourceToOffsetPos(this.state.start)}),J.body=Q&8?this.parseStatementOrSloppyAnnexBFunctionDeclaration(!0):this.parseStatement(),this.state.labels.pop(),J.label=Z,this.finishNode(J,"LabeledStatement")}parseExpressionStatement(J,X,Z){return J.expression=X,this.semicolon(),this.finishNode(J,"ExpressionStatement")}parseBlock(J=!1,X=!0,Z){let Q=this.startNode();if(J)this.state.strictErrors.clear();if(this.expect(5),X)this.scope.enter(0);if(this.parseBlockBody(Q,J,!1,8,Z),X)this.scope.exit();return this.finishNode(Q,"BlockStatement")}isValidDirective(J){return J.type==="ExpressionStatement"&&J.expression.type==="StringLiteral"&&!J.expression.extra.parenthesized}parseBlockBody(J,X,Z,Q,Y){let z=J.body=[],H=J.directives=[];this.parseBlockOrModuleBlockBody(z,X?H:void 0,Z,Q,Y)}parseBlockOrModuleBlockBody(J,X,Z,Q,Y){let z=this.state.strict,H=!1,G=!1;while(!this.match(Q)){let W=Z?this.parseModuleItem():this.parseStatementListItem();if(X&&!G){if(this.isValidDirective(W)){let V=this.stmtToDirective(W);if(X.push(V),!H&&V.value.value==="use strict")H=!0,this.setStrict(!0);continue}G=!0,this.state.strictErrors.clear()}J.push(W)}if(Y==null||Y.call(this,H),!z)this.setStrict(!1);this.next()}parseFor(J,X){return J.init=X,this.semicolon(!1),J.test=this.match(13)?null:this.parseExpression(),this.semicolon(!1),J.update=this.match(11)?null:this.parseExpression(),this.expect(11),J.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.scope.exit(),this.state.labels.pop(),this.finishNode(J,"ForStatement")}parseForIn(J,X,Z){let Q=this.match(58);if(this.next(),Q){if(Z!==null)this.unexpected(Z)}else J.await=Z!==null;if(X.type==="VariableDeclaration"&&X.declarations[0].init!=null&&(!Q||!this.options.annexB||this.state.strict||X.kind!=="var"||X.declarations[0].id.type!=="Identifier"))this.raise(j.ForInOfLoopInitializer,X,{type:Q?"ForInStatement":"ForOfStatement"});if(X.type==="AssignmentPattern")this.raise(j.InvalidLhs,X,{ancestor:{type:"ForStatement"}});return J.left=X,J.right=Q?this.parseExpression():this.parseMaybeAssignAllowIn(),this.expect(11),J.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.scope.exit(),this.state.labels.pop(),this.finishNode(J,Q?"ForInStatement":"ForOfStatement")}parseVar(J,X,Z,Q=!1){let Y=J.declarations=[];J.kind=Z;for(;;){let z=this.startNode();if(this.parseVarId(z,Z),z.init=!this.eat(29)?null:X?this.parseMaybeAssignDisallowIn():this.parseMaybeAssignAllowIn(),z.init===null&&!Q){if(z.id.type!=="Identifier"&&!(X&&(this.match(58)||this.isContextual(102))))this.raise(j.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:"destructuring"});else if((Z==="const"||Z==="using"||Z==="await using")&&!(this.match(58)||this.isContextual(102)))this.raise(j.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:Z})}if(Y.push(this.finishNode(z,"VariableDeclarator")),!this.eat(12))break}return J}parseVarId(J,X){let Z=this.parseBindingAtom();if(X==="using"||X==="await using"){if(Z.type==="ArrayPattern"||Z.type==="ObjectPattern")this.raise(j.UsingDeclarationHasBindingPattern,Z.loc.start)}else if(Z.type==="VoidPattern")this.raise(j.UnexpectedVoidPattern,Z.loc.start);this.checkLVal(Z,{type:"VariableDeclarator"},X==="var"?5:8201),J.id=Z}parseAsyncFunctionExpression(J){return this.parseFunction(J,8)}parseFunction(J,X=0){let Z=X&2,Q=!!(X&1),Y=Q&&!(X&4),z=!!(X&8);if(this.initFunction(J,z),this.match(55)){if(Z)this.raise(j.GeneratorInSingleStatementContext,this.state.startLoc);this.next(),J.generator=!0}if(Q)J.id=this.parseFunctionId(Y);let H=this.state.maybeInArrowParameters;if(this.state.maybeInArrowParameters=!1,this.scope.enter(514),this.prodParam.enter(T9(z,J.generator)),!Q)J.id=this.parseFunctionId();if(this.parseFunctionParams(J,!1),this.withSmartMixTopicForbiddingContext(()=>{this.parseFunctionBodyAndFinish(J,Q?"FunctionDeclaration":"FunctionExpression")}),this.prodParam.exit(),this.scope.exit(),Q&&!Z)this.registerFunctionStatementId(J);return this.state.maybeInArrowParameters=H,J}parseFunctionId(J){return J||A1(this.state.type)?this.parseIdentifier():null}parseFunctionParams(J,X){this.expect(10),this.expressionScope.enter(FQ1()),J.params=this.parseBindingList(11,41,2|(X?4:0)),this.expressionScope.exit()}registerFunctionStatementId(J){if(!J.id)return;this.scope.declareName(J.id.name,!this.options.annexB||this.state.strict||J.generator||J.async?this.scope.treatFunctionsAsVar?5:8201:17,J.id.loc.start)}parseClass(J,X,Z){this.next();let Q=this.state.strict;return this.state.strict=!0,this.parseClassId(J,X,Z),this.parseClassSuper(J),J.body=this.parseClassBody(!!J.superClass,Q),this.finishNode(J,X?"ClassDeclaration":"ClassExpression")}isClassProperty(){return this.match(29)||this.match(13)||this.match(8)}isClassMethod(){return this.match(10)}nameIsConstructor(J){return J.type==="Identifier"&&J.name==="constructor"||J.type==="StringLiteral"&&J.value==="constructor"}isNonstaticConstructor(J){return!J.computed&&!J.static&&this.nameIsConstructor(J.key)}parseClassBody(J,X){this.classScope.enter();let Z={hadConstructor:!1,hadSuperClass:J},Q=[],Y=this.startNode();if(Y.body=[],this.expect(5),this.withSmartMixTopicForbiddingContext(()=>{while(!this.match(8)){if(this.eat(13)){if(Q.length>0)throw this.raise(j.DecoratorSemicolon,this.state.lastTokEndLoc);continue}if(this.match(26)){Q.push(this.parseDecorator());continue}let z=this.startNode();if(Q.length)z.decorators=Q,this.resetStartLocationFromNode(z,Q[0]),Q=[];if(this.parseClassMember(Y,z,Z),z.kind==="constructor"&&z.decorators&&z.decorators.length>0)this.raise(j.DecoratorConstructor,z)}}),this.state.strict=X,this.next(),Q.length)throw this.raise(j.TrailingDecorator,this.state.startLoc);return this.classScope.exit(),this.finishNode(Y,"ClassBody")}parseClassMemberFromModifier(J,X){let Z=this.parseIdentifier(!0);if(this.isClassMethod()){let Q=X;return Q.kind="method",Q.computed=!1,Q.key=Z,Q.static=!1,this.pushClassMethod(J,Q,!1,!1,!1,!1),!0}else if(this.isClassProperty()){let Q=X;return Q.computed=!1,Q.key=Z,Q.static=!1,J.body.push(this.parseClassProperty(Q)),!0}return this.resetPreviousNodeTrailingComments(Z),!1}parseClassMember(J,X,Z){let Q=this.isContextual(106);if(Q){if(this.parseClassMemberFromModifier(J,X))return;if(this.eat(5)){this.parseClassStaticBlock(J,X);return}}this.parseClassMemberWithIsStatic(J,X,Z,Q)}parseClassMemberWithIsStatic(J,X,Z,Q){let Y=X,z=X,H=X,G=X,W=X,V=Y,U=Y;if(X.static=Q,this.parsePropertyNamePrefixOperator(X),this.eat(55)){V.kind="method";let C=this.match(139);if(this.parseClassElementName(V),this.parsePostMemberNameModifiers(V),C){this.pushClassPrivateMethod(J,z,!0,!1);return}if(this.isNonstaticConstructor(Y))this.raise(j.ConstructorIsGenerator,Y.key);this.pushClassMethod(J,Y,!0,!1,!1,!1);return}let q=!this.state.containsEsc&&A1(this.state.type),O=this.parseClassElementName(X),A=q?O.name:null,D=this.isPrivateName(O),S=this.state.startLoc;if(this.parsePostMemberNameModifiers(U),this.isClassMethod()){if(V.kind="method",D){this.pushClassPrivateMethod(J,z,!1,!1);return}let C=this.isNonstaticConstructor(Y),L=!1;if(C){if(Y.kind="constructor",Z.hadConstructor&&!this.hasPlugin("typescript"))this.raise(j.DuplicateConstructor,O);if(C&&this.hasPlugin("typescript")&&X.override)this.raise(j.OverrideOnConstructor,O);Z.hadConstructor=!0,L=Z.hadSuperClass}this.pushClassMethod(J,Y,!1,!1,C,L)}else if(this.isClassProperty())if(D)this.pushClassPrivateProperty(J,G);else this.pushClassProperty(J,H);else if(A==="async"&&!this.isLineTerminator()){this.resetPreviousNodeTrailingComments(O);let C=this.eat(55);if(U.optional)this.unexpected(S);V.kind="method";let L=this.match(139);if(this.parseClassElementName(V),this.parsePostMemberNameModifiers(U),L)this.pushClassPrivateMethod(J,z,C,!0);else{if(this.isNonstaticConstructor(Y))this.raise(j.ConstructorIsAsync,Y.key);this.pushClassMethod(J,Y,C,!0,!1,!1)}}else if((A==="get"||A==="set")&&!(this.match(55)&&this.isLineTerminator())){this.resetPreviousNodeTrailingComments(O),V.kind=A;let C=this.match(139);if(this.parseClassElementName(Y),C)this.pushClassPrivateMethod(J,z,!1,!1);else{if(this.isNonstaticConstructor(Y))this.raise(j.ConstructorIsAccessor,Y.key);this.pushClassMethod(J,Y,!1,!1,!1,!1)}this.checkGetterSetterParams(Y)}else if(A==="accessor"&&!this.isLineTerminator()){this.expectPlugin("decoratorAutoAccessors"),this.resetPreviousNodeTrailingComments(O);let C=this.match(139);this.parseClassElementName(H),this.pushClassAccessorProperty(J,W,C)}else if(this.isLineTerminator())if(D)this.pushClassPrivateProperty(J,G);else this.pushClassProperty(J,H);else this.unexpected()}parseClassElementName(J){let{type:X,value:Z}=this.state;if((X===132||X===134)&&J.static&&Z==="prototype")this.raise(j.StaticPrototype,this.state.startLoc);if(X===139){if(Z==="constructor")this.raise(j.ConstructorClassPrivateField,this.state.startLoc);let Q=this.parsePrivateName();return J.key=Q,Q}return this.parsePropertyName(J),J.key}parseClassStaticBlock(J,X){var Z;this.scope.enter(720);let Q=this.state.labels;this.state.labels=[],this.prodParam.enter(0);let Y=X.body=[];if(this.parseBlockOrModuleBlockBody(Y,void 0,!1,8),this.prodParam.exit(),this.scope.exit(),this.state.labels=Q,J.body.push(this.finishNode(X,"StaticBlock")),(Z=X.decorators)!=null&&Z.length)this.raise(j.DecoratorStaticBlock,X)}pushClassProperty(J,X){if(!X.computed&&this.nameIsConstructor(X.key))this.raise(j.ConstructorClassField,X.key);J.body.push(this.parseClassProperty(X))}pushClassPrivateProperty(J,X){let Z=this.parseClassPrivateProperty(X);J.body.push(Z),this.classScope.declarePrivateName(this.getPrivateNameSV(Z.key),0,Z.key.loc.start)}pushClassAccessorProperty(J,X,Z){if(!Z&&!X.computed&&this.nameIsConstructor(X.key))this.raise(j.ConstructorClassField,X.key);let Q=this.parseClassAccessorProperty(X);if(J.body.push(Q),Z)this.classScope.declarePrivateName(this.getPrivateNameSV(Q.key),0,Q.key.loc.start)}pushClassMethod(J,X,Z,Q,Y,z){J.body.push(this.parseMethod(X,Z,Q,Y,z,"ClassMethod",!0))}pushClassPrivateMethod(J,X,Z,Q){let Y=this.parseMethod(X,Z,Q,!1,!1,"ClassPrivateMethod",!0);J.body.push(Y);let z=Y.kind==="get"?Y.static?6:2:Y.kind==="set"?Y.static?5:1:0;this.declareClassPrivateMethodInScope(Y,z)}declareClassPrivateMethodInScope(J,X){this.classScope.declarePrivateName(this.getPrivateNameSV(J.key),X,J.key.loc.start)}parsePostMemberNameModifiers(J){}parseClassPrivateProperty(J){return this.parseInitializer(J),this.semicolon(),this.finishNode(J,"ClassPrivateProperty")}parseClassProperty(J){return this.parseInitializer(J),this.semicolon(),this.finishNode(J,"ClassProperty")}parseClassAccessorProperty(J){return this.parseInitializer(J),this.semicolon(),this.finishNode(J,"ClassAccessorProperty")}parseInitializer(J){this.scope.enter(592),this.expressionScope.enter(wz()),this.prodParam.enter(0),J.value=this.eat(29)?this.parseMaybeAssignAllowIn():null,this.expressionScope.exit(),this.prodParam.exit(),this.scope.exit()}parseClassId(J,X,Z,Q=8331){if(A1(this.state.type)){if(J.id=this.parseIdentifier(),X)this.declareNameFromIdentifier(J.id,Q)}else if(Z||!X)J.id=null;else throw this.raise(j.MissingClassName,this.state.startLoc)}parseClassSuper(J){J.superClass=this.eat(81)?this.parseExprSubscripts():null}parseExport(J,X){let Z=this.parseMaybeImportPhase(J,!0),Q=this.maybeParseExportDefaultSpecifier(J,Z),Y=!Q||this.eat(12),z=Y&&this.eatExportStar(J),H=z&&this.maybeParseExportNamespaceSpecifier(J),G=Y&&(!H||this.eat(12)),W=Q||z;if(z&&!H){if(Q)this.unexpected();if(X)throw this.raise(j.UnsupportedDecoratorExport,J);return this.parseExportFrom(J,!0),this.sawUnambiguousESM=!0,this.finishNode(J,"ExportAllDeclaration")}let V=this.maybeParseExportNamedSpecifiers(J);if(Q&&Y&&!z&&!V)this.unexpected(null,5);if(H&&G)this.unexpected(null,98);let U;if(W||V){if(U=!1,X)throw this.raise(j.UnsupportedDecoratorExport,J);this.parseExportFrom(J,W)}else U=this.maybeParseExportDeclaration(J);if(W||V||U){var q;let O=J;if(this.checkExport(O,!0,!1,!!O.source),((q=O.declaration)==null?void 0:q.type)==="ClassDeclaration")this.maybeTakeDecorators(X,O.declaration,O);else if(X)throw this.raise(j.UnsupportedDecoratorExport,J);return this.sawUnambiguousESM=!0,this.finishNode(O,"ExportNamedDeclaration")}if(this.eat(65)){let O=J,A=this.parseExportDefaultExpression();if(O.declaration=A,A.type==="ClassDeclaration")this.maybeTakeDecorators(X,A,O);else if(X)throw this.raise(j.UnsupportedDecoratorExport,J);return this.checkExport(O,!0,!0),this.sawUnambiguousESM=!0,this.finishNode(O,"ExportDefaultDeclaration")}throw this.unexpected(null,5)}eatExportStar(J){return this.eat(55)}maybeParseExportDefaultSpecifier(J,X){if(X||this.isExportDefaultSpecifier()){this.expectPlugin("exportDefaultFrom",X==null?void 0:X.loc.start);let Z=X||this.parseIdentifier(!0),Q=this.startNodeAtNode(Z);return Q.exported=Z,J.specifiers=[this.finishNode(Q,"ExportDefaultSpecifier")],!0}return!1}maybeParseExportNamespaceSpecifier(J){if(this.isContextual(93)){var X,Z;(Z=(X=J).specifiers)!=null||(X.specifiers=[]);let Q=this.startNodeAt(this.state.lastTokStartLoc);return this.next(),Q.exported=this.parseModuleExportName(),J.specifiers.push(this.finishNode(Q,"ExportNamespaceSpecifier")),!0}return!1}maybeParseExportNamedSpecifiers(J){if(this.match(5)){let X=J;if(!X.specifiers)X.specifiers=[];let Z=X.exportKind==="type";if(X.specifiers.push(...this.parseExportSpecifiers(Z)),X.source=null,this.hasPlugin("importAssertions"))X.assertions=[];else X.attributes=[];return X.declaration=null,!0}return!1}maybeParseExportDeclaration(J){if(this.shouldParseExportDeclaration()){if(J.specifiers=[],J.source=null,this.hasPlugin("importAssertions"))J.assertions=[];else J.attributes=[];return J.declaration=this.parseExportDeclaration(J),!0}return!1}isAsyncFunction(){if(!this.isContextual(95))return!1;let J=this.nextTokenInLineStart();return this.isUnparsedContextual(J,"function")}parseExportDefaultExpression(){let J=this.startNode();if(this.match(68))return this.next(),this.parseFunction(J,5);else if(this.isAsyncFunction())return this.next(),this.next(),this.parseFunction(J,13);if(this.match(80))return this.parseClass(J,!0,!0);if(this.match(26)){if(this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")===!0)this.raise(j.DecoratorBeforeExport,this.state.startLoc);return this.parseClass(this.maybeTakeDecorators(this.parseDecorators(!1),this.startNode()),!0,!0)}if(this.match(75)||this.match(74)||this.isLet()||this.isUsing()||this.isAwaitUsing())throw this.raise(j.UnsupportedDefaultExport,this.state.startLoc);let X=this.parseMaybeAssignAllowIn();return this.semicolon(),X}parseExportDeclaration(J){if(this.match(80))return this.parseClass(this.startNode(),!0,!1);return this.parseStatementListItem()}isExportDefaultSpecifier(){let{type:J}=this.state;if(A1(J)){if(J===95&&!this.state.containsEsc||J===100)return!1;if((J===130||J===129)&&!this.state.containsEsc){let Q=this.nextTokenStart(),Y=this.input.charCodeAt(Q);if(Y===123||this.chStartsBindingIdentifier(Y,Q)&&!this.input.startsWith("from",Q))return this.expectOnePlugin(["flow","typescript"]),!1}}else if(!this.match(65))return!1;let X=this.nextTokenStart(),Z=this.isUnparsedContextual(X,"from");if(this.input.charCodeAt(X)===44||A1(this.state.type)&&Z)return!0;if(this.match(65)&&Z){let Q=this.input.charCodeAt(this.nextTokenStartSince(X+4));return Q===34||Q===39}return!1}parseExportFrom(J,X){if(this.eatContextual(98))J.source=this.parseImportSource(),this.checkExport(J),this.maybeParseImportAttributes(J),this.checkJSONModuleImport(J);else if(X)this.unexpected();this.semicolon()}shouldParseExportDeclaration(){let{type:J}=this.state;if(J===26){if(this.expectOnePlugin(["decorators","decorators-legacy"]),this.hasPlugin("decorators")){if(this.getPluginOption("decorators","decoratorsBeforeExport")===!0)this.raise(j.DecoratorBeforeExport,this.state.startLoc);return!0}}if(this.isUsing())return this.raise(j.UsingDeclarationExport,this.state.startLoc),!0;if(this.isAwaitUsing())return this.raise(j.UsingDeclarationExport,this.state.startLoc),!0;return J===74||J===75||J===68||J===80||this.isLet()||this.isAsyncFunction()}checkExport(J,X,Z,Q){if(X){var Y;if(Z){if(this.checkDuplicateExports(J,"default"),this.hasPlugin("exportDefaultFrom")){var z;let H=J.declaration;if(H.type==="Identifier"&&H.name==="from"&&H.end-H.start===4&&!((z=H.extra)!=null&&z.parenthesized))this.raise(j.ExportDefaultFromAsIdentifier,H)}}else if((Y=J.specifiers)!=null&&Y.length)for(let H of J.specifiers){let{exported:G}=H,W=G.type==="Identifier"?G.name:G.value;if(this.checkDuplicateExports(H,W),!Q&&H.local){let{local:V}=H;if(V.type!=="Identifier")this.raise(j.ExportBindingIsString,H,{localName:V.value,exportName:W});else this.checkReservedWord(V.name,V.loc.start,!0,!1),this.scope.checkLocalExport(V)}}else if(J.declaration){let H=J.declaration;if(H.type==="FunctionDeclaration"||H.type==="ClassDeclaration"){let{id:G}=H;if(!G)throw Error("Assertion failure");this.checkDuplicateExports(J,G.name)}else if(H.type==="VariableDeclaration")for(let G of H.declarations)this.checkDeclaration(G.id)}}}checkDeclaration(J){if(J.type==="Identifier")this.checkDuplicateExports(J,J.name);else if(J.type==="ObjectPattern")for(let X of J.properties)this.checkDeclaration(X);else if(J.type==="ArrayPattern"){for(let X of J.elements)if(X)this.checkDeclaration(X)}else if(J.type==="ObjectProperty")this.checkDeclaration(J.value);else if(J.type==="RestElement")this.checkDeclaration(J.argument);else if(J.type==="AssignmentPattern")this.checkDeclaration(J.left)}checkDuplicateExports(J,X){if(this.exportedIdentifiers.has(X))if(X==="default")this.raise(j.DuplicateDefaultExport,J);else this.raise(j.DuplicateExport,J,{exportName:X});this.exportedIdentifiers.add(X)}parseExportSpecifiers(J){let X=[],Z=!0;this.expect(5);while(!this.eat(8)){if(Z)Z=!1;else if(this.expect(12),this.eat(8))break;let Q=this.isContextual(130),Y=this.match(134),z=this.startNode();z.local=this.parseModuleExportName(),X.push(this.parseExportSpecifier(z,Y,J,Q))}return X}parseExportSpecifier(J,X,Z,Q){if(this.eatContextual(93))J.exported=this.parseModuleExportName();else if(X)J.exported=this.cloneStringLiteral(J.local);else if(!J.exported)J.exported=this.cloneIdentifier(J.local);return this.finishNode(J,"ExportSpecifier")}parseModuleExportName(){if(this.match(134)){let J=this.parseStringLiteral(this.state.value),X=kQ1.exec(J.value);if(X)this.raise(j.ModuleExportNameHasLoneSurrogate,J,{surrogateCharCode:X[0].charCodeAt(0)});return J}return this.parseIdentifier(!0)}isJSONModuleImport(J){if(J.assertions!=null)return J.assertions.some(({key:X,value:Z})=>{return Z.value==="json"&&(X.type==="Identifier"?X.name==="type":X.value==="type")});return!1}checkImportReflection(J){let{specifiers:X}=J,Z=X.length===1?X[0].type:null;if(J.phase==="source"){if(Z!=="ImportDefaultSpecifier")this.raise(j.SourcePhaseImportRequiresDefault,X[0].loc.start)}else if(J.phase==="defer"){if(Z!=="ImportNamespaceSpecifier")this.raise(j.DeferImportRequiresNamespace,X[0].loc.start)}else if(J.module){var Q;if(Z!=="ImportDefaultSpecifier")this.raise(j.ImportReflectionNotBinding,X[0].loc.start);if(((Q=J.assertions)==null?void 0:Q.length)>0)this.raise(j.ImportReflectionHasAssertion,X[0].loc.start)}}checkJSONModuleImport(J){if(this.isJSONModuleImport(J)&&J.type!=="ExportAllDeclaration"){let{specifiers:X}=J;if(X!=null){let Z=X.find((Q)=>{let Y;if(Q.type==="ExportSpecifier")Y=Q.local;else if(Q.type==="ImportSpecifier")Y=Q.imported;if(Y!==void 0)return Y.type==="Identifier"?Y.name!=="default":Y.value!=="default"});if(Z!==void 0)this.raise(j.ImportJSONBindingNotDefault,Z.loc.start)}}}isPotentialImportPhase(J){if(J)return!1;return this.isContextual(105)||this.isContextual(97)||this.isContextual(127)}applyImportPhase(J,X,Z,Q){if(X)return;if(Z==="module")this.expectPlugin("importReflection",Q),J.module=!0;else if(this.hasPlugin("importReflection"))J.module=!1;if(Z==="source")this.expectPlugin("sourcePhaseImports",Q),J.phase="source";else if(Z==="defer")this.expectPlugin("deferredImportEvaluation",Q),J.phase="defer";else if(this.hasPlugin("sourcePhaseImports"))J.phase=null}parseMaybeImportPhase(J,X){if(!this.isPotentialImportPhase(X))return this.applyImportPhase(J,X,null),null;let Z=this.startNode(),Q=this.parseIdentifierName(!0),{type:Y}=this.state;if(CJ(Y)?Y!==98||this.lookaheadCharCode()===102:Y!==12)return this.applyImportPhase(J,X,Q,Z.loc.start),null;else return this.applyImportPhase(J,X,null),this.createIdentifier(Z,Q)}isPrecedingIdImportPhase(J){let{type:X}=this.state;return A1(X)?X!==98||this.lookaheadCharCode()===102:X!==12}parseImport(J){if(this.match(134))return this.parseImportSourceAndAttributes(J);return this.parseImportSpecifiersAndAfter(J,this.parseMaybeImportPhase(J,!1))}parseImportSpecifiersAndAfter(J,X){J.specifiers=[];let Q=!this.maybeParseDefaultImportSpecifier(J,X)||this.eat(12),Y=Q&&this.maybeParseStarImportSpecifier(J);if(Q&&!Y)this.parseNamedImportSpecifiers(J);return this.expectContextual(98),this.parseImportSourceAndAttributes(J)}parseImportSourceAndAttributes(J){var X;return(X=J.specifiers)!=null||(J.specifiers=[]),J.source=this.parseImportSource(),this.maybeParseImportAttributes(J),this.checkImportReflection(J),this.checkJSONModuleImport(J),this.semicolon(),this.sawUnambiguousESM=!0,this.finishNode(J,"ImportDeclaration")}parseImportSource(){if(!this.match(134))this.unexpected();return this.parseExprAtom()}parseImportSpecifierLocal(J,X,Z){X.local=this.parseIdentifier(),J.specifiers.push(this.finishImportSpecifier(X,Z))}finishImportSpecifier(J,X,Z=8201){return this.checkLVal(J.local,{type:X},Z),this.finishNode(J,X)}parseImportAttributes(){this.expect(5);let J=[],X=new Set;do{if(this.match(8))break;let Z=this.startNode(),Q=this.state.value;if(X.has(Q))this.raise(j.ModuleAttributesWithDuplicateKeys,this.state.startLoc,{key:Q});if(X.add(Q),this.match(134))Z.key=this.parseStringLiteral(Q);else Z.key=this.parseIdentifier(!0);if(this.expect(14),!this.match(134))throw this.raise(j.ModuleAttributeInvalidValue,this.state.startLoc);Z.value=this.parseStringLiteral(this.state.value),J.push(this.finishNode(Z,"ImportAttribute"))}while(this.eat(12));return this.expect(8),J}parseModuleAttributes(){let J=[],X=new Set;do{let Z=this.startNode();if(Z.key=this.parseIdentifier(!0),Z.key.name!=="type")this.raise(j.ModuleAttributeDifferentFromType,Z.key);if(X.has(Z.key.name))this.raise(j.ModuleAttributesWithDuplicateKeys,Z.key,{key:Z.key.name});if(X.add(Z.key.name),this.expect(14),!this.match(134))throw this.raise(j.ModuleAttributeInvalidValue,this.state.startLoc);Z.value=this.parseStringLiteral(this.state.value),J.push(this.finishNode(Z,"ImportAttribute"))}while(this.eat(12));return J}maybeParseImportAttributes(J){let X;var Z=!1;if(this.match(76)){if(this.hasPrecedingLineBreak()&&this.lookaheadCharCode()===40)return;if(this.next(),this.hasPlugin("moduleAttributes"))X=this.parseModuleAttributes(),this.addExtra(J,"deprecatedWithLegacySyntax",!0);else X=this.parseImportAttributes();Z=!0}else if(this.isContextual(94)&&!this.hasPrecedingLineBreak()){if(!this.hasPlugin("deprecatedImportAssert")&&!this.hasPlugin("importAssertions"))this.raise(j.ImportAttributesUseAssert,this.state.startLoc);if(!this.hasPlugin("importAssertions"))this.addExtra(J,"deprecatedAssertSyntax",!0);this.next(),X=this.parseImportAttributes()}else X=[];if(!Z&&this.hasPlugin("importAssertions"))J.assertions=X;else J.attributes=X}maybeParseDefaultImportSpecifier(J,X){if(X){let Z=this.startNodeAtNode(X);return Z.local=X,J.specifiers.push(this.finishImportSpecifier(Z,"ImportDefaultSpecifier")),!0}else if(CJ(this.state.type))return this.parseImportSpecifierLocal(J,this.startNode(),"ImportDefaultSpecifier"),!0;return!1}maybeParseStarImportSpecifier(J){if(this.match(55)){let X=this.startNode();return this.next(),this.expectContextual(93),this.parseImportSpecifierLocal(J,X,"ImportNamespaceSpecifier"),!0}return!1}parseNamedImportSpecifiers(J){let X=!0;this.expect(5);while(!this.eat(8)){if(X)X=!1;else{if(this.eat(14))throw this.raise(j.DestructureNamedImport,this.state.startLoc);if(this.expect(12),this.eat(8))break}let Z=this.startNode(),Q=this.match(134),Y=this.isContextual(130);Z.imported=this.parseModuleExportName();let z=this.parseImportSpecifier(Z,Q,J.importKind==="type"||J.importKind==="typeof",Y,void 0);J.specifiers.push(z)}}parseImportSpecifier(J,X,Z,Q,Y){if(this.eatContextual(93))J.local=this.parseIdentifier();else{let{imported:z}=J;if(X)throw this.raise(j.ImportBindingIsString,J,{importName:z.value});if(this.checkReservedWord(z.name,J.loc.start,!0,!0),!J.local)J.local=this.cloneIdentifier(z)}return this.finishImportSpecifier(J,"ImportSpecifier",Y)}isThisParam(J){return J.type==="Identifier"&&J.name==="this"}}class R8 extends vz{constructor(J,X,Z){let Q=bZ1(J);super(Q,X);this.options=Q,this.initializeScopes(),this.plugins=Z,this.filename=Q.sourceFilename,this.startIndex=Q.startIndex;let Y=0;if(Q.allowAwaitOutsideFunction)Y|=1;if(Q.allowReturnOutsideFunction)Y|=2;if(Q.allowImportExportEverywhere)Y|=8;if(Q.allowSuperOutsideMethod)Y|=16;if(Q.allowUndeclaredExports)Y|=64;if(Q.allowNewTargetOutsideFunction)Y|=4;if(Q.allowYieldOutsideFunction)Y|=32;if(Q.ranges)Y|=128;if(Q.tokens)Y|=256;if(Q.createImportExpressions)Y|=512;if(Q.createParenthesizedExpressions)Y|=1024;if(Q.errorRecovery)Y|=2048;if(Q.attachComment)Y|=4096;if(Q.annexB)Y|=8192;this.optionFlags=Y}getScopeHandler(){return k9}parse(){this.enterInitialScopes();let J=this.startNode(),X=this.startNode();this.nextToken(),J.errors=null;let Z=this.parseTopLevel(J,X);return Z.errors=this.state.errors,Z.comments.length=this.state.commentsLen,Z}}function EQ1(J,X){var Z;if(((Z=X)==null?void 0:Z.sourceType)==="unambiguous"){X=Object.assign({},X);try{X.sourceType="module";let Q=PX(X,J),Y=Q.parse();if(Q.sawUnambiguousESM)return Y;if(Q.ambiguousScriptDifferentAst)try{return X.sourceType="script",PX(X,J).parse()}catch(z){}else Y.program.sourceType="script";return Y}catch(Q){try{return X.sourceType="script",PX(X,J).parse()}catch(Y){}throw Q}}else return PX(X,J).parse()}function gQ1(J,X){let Z=PX(X,J);if(Z.options.strictMode)Z.state.strict=!0;return Z.getExpression()}function _Q1(J){let X={};for(let Z of Object.keys(J))X[Z]=uJ(J[Z]);return X}var fQ1=_Q1(gZ1);function PX(J,X){let Z=R8,Q=new Map;if(J!=null&&J.plugins){for(let Y of J.plugins){let z,H;if(typeof Y==="string")z=Y;else[z,H]=Y;if(!Q.has(z))Q.set(z,H||{})}TQ1(Q),Z=hQ1(Q)}return new Z(J,X,Q)}var Zz=new Map;function hQ1(J){let X=[];for(let Y of LQ1)if(J.has(Y))X.push(Y);let Z=X.join("|"),Q=Zz.get(Z);if(!Q){Q=R8;for(let Y of X)Q=bz[Y](Q);Zz.set(Z,Q)}return Q}Ez.parse=EQ1;Ez.parseExpression=gQ1;Ez.tokTypes=fQ1});var $8=N((gz)=>{Object.defineProperty(gz,"__esModule",{value:!0});gz.Var=gz.User=gz.Statement=gz.SpreadProperty=gz.Scope=gz.RestProperty=gz.ReferencedMemberExpression=gz.ReferencedIdentifier=gz.Referenced=gz.Pure=gz.NumericLiteralTypeAnnotation=gz.Generated=gz.ForAwaitStatement=gz.Flow=gz.Expression=gz.ExistentialTypeParam=gz.BlockScoped=gz.BindingIdentifier=void 0;var eP1=gz.ReferencedIdentifier=["Identifier","JSXIdentifier"],JS1=gz.ReferencedMemberExpression=["MemberExpression"],XS1=gz.BindingIdentifier=["Identifier"],ZS1=gz.Statement=["Statement"],QS1=gz.Expression=["Expression"],YS1=gz.Scope=["Scopable","Pattern"],zS1=gz.Referenced=null,HS1=gz.BlockScoped=["FunctionDeclaration","ClassDeclaration","VariableDeclaration"],GS1=gz.Var=["VariableDeclaration"],WS1=gz.User=null,VS1=gz.Generated=null,KS1=gz.Pure=null,US1=gz.Flow=["Flow","ImportDeclaration","ExportDeclaration","ImportSpecifier"],BS1=gz.RestProperty=["RestElement"],RS1=gz.SpreadProperty=["RestElement"],$S1=gz.ExistentialTypeParam=["ExistsTypeAnnotation"],qS1=gz.NumericLiteralTypeAnnotation=["NumberLiteralTypeAnnotation"],FS1=gz.ForAwaitStatement=["ForOfStatement"]});var hz=N((MS1,fz)=>{var m0=1000,c0=m0*60,l0=c0*60,F0=l0*24,YY1=F0*7,zY1=F0*365.25;fz.exports=function(J,X){X=X||{};var Z=typeof J;if(Z==="string"&&J.length>0)return HY1(J);else if(Z==="number"&&isFinite(J))return X.long?WY1(J):GY1(J);throw Error("val is not a non-empty string or a valid number. val="+JSON.stringify(J))};function HY1(J){if(J=String(J),J.length>100)return;var X=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(J);if(!X)return;var Z=parseFloat(X[1]),Q=(X[2]||"ms").toLowerCase();switch(Q){case"years":case"year":case"yrs":case"yr":case"y":return Z*zY1;case"weeks":case"week":case"w":return Z*YY1;case"days":case"day":case"d":return Z*F0;case"hours":case"hour":case"hrs":case"hr":case"h":return Z*l0;case"minutes":case"minute":case"mins":case"min":case"m":return Z*c0;case"seconds":case"second":case"secs":case"sec":case"s":return Z*m0;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return Z;default:return}}function GY1(J){var X=Math.abs(J);if(X>=F0)return Math.round(J/F0)+"d";if(X>=l0)return Math.round(J/l0)+"h";if(X>=c0)return Math.round(J/c0)+"m";if(X>=m0)return Math.round(J/m0)+"s";return J+"ms"}function WY1(J){var X=Math.abs(J);if(X>=F0)return E9(J,X,F0,"day");if(X>=l0)return E9(J,X,l0,"hour");if(X>=c0)return E9(J,X,c0,"minute");if(X>=m0)return E9(J,X,m0,"second");return J+" ms"}function E9(J,X,Z,Q){var Y=X>=Z*1.5;return Math.round(J/Z)+" "+Q+(Y?"s":"")}});var q8=N((OS1,xz)=>{function VY1(J){Z.debug=Z,Z.default=Z,Z.coerce=W,Z.disable=H,Z.enable=Y,Z.enabled=G,Z.humanize=hz(),Z.destroy=V,Object.keys(J).forEach((U)=>{Z[U]=J[U]}),Z.names=[],Z.skips=[],Z.formatters={};function X(U){let q=0;for(let O=0;O<U.length;O++)q=(q<<5)-q+U.charCodeAt(O),q|=0;return Z.colors[Math.abs(q)%Z.colors.length]}Z.selectColor=X;function Z(U){let q,O=null,A,D;function S(...C){if(!S.enabled)return;let L=S,b=Number(new Date),s=b-(q||b);if(L.diff=s,L.prev=q,L.curr=b,q=b,C[0]=Z.coerce(C[0]),typeof C[0]!=="string")C.unshift("%O");let h=0;C[0]=C[0].replace(/%([a-zA-Z%])/g,(H1,M1)=>{if(H1==="%%")return"%";h++;let L1=Z.formatters[M1];if(typeof L1==="function"){let f1=C[h];H1=L1.call(L,f1),C.splice(h,1),h--}return H1}),Z.formatArgs.call(L,C),(L.log||Z.log).apply(L,C)}if(S.namespace=U,S.useColors=Z.useColors(),S.color=Z.selectColor(U),S.extend=Q,S.destroy=Z.destroy,Object.defineProperty(S,"enabled",{enumerable:!0,configurable:!1,get:()=>{if(O!==null)return O;if(A!==Z.namespaces)A=Z.namespaces,D=Z.enabled(U);return D},set:(C)=>{O=C}}),typeof Z.init==="function")Z.init(S);return S}function Q(U,q){let O=Z(this.namespace+(typeof q>"u"?":":q)+U);return O.log=this.log,O}function Y(U){Z.save(U),Z.namespaces=U,Z.names=[],Z.skips=[];let q=(typeof U==="string"?U:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let O of q)if(O[0]==="-")Z.skips.push(O.slice(1));else Z.names.push(O)}function z(U,q){let O=0,A=0,D=-1,S=0;while(O<U.length)if(A<q.length&&(q[A]===U[O]||q[A]==="*"))if(q[A]==="*")D=A,S=O,A++;else O++,A++;else if(D!==-1)A=D+1,S++,O=S;else return!1;while(A<q.length&&q[A]==="*")A++;return A===q.length}function H(){let U=[...Z.names,...Z.skips.map((q)=>"-"+q)].join(",");return Z.enable(""),U}function G(U){for(let q of Z.skips)if(z(U,q))return!1;for(let q of Z.names)if(z(U,q))return!0;return!1}function W(U){if(U instanceof Error)return U.stack||U.message;return U}function V(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return Z.enable(Z.load()),Z}xz.exports=VY1});var uz=N((yz,g9)=>{yz.formatArgs=UY1;yz.save=BY1;yz.load=RY1;yz.useColors=KY1;yz.storage=$Y1();yz.destroy=(()=>{let J=!1;return()=>{if(!J)J=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}})();yz.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function KY1(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let J;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(J=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(J[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function UY1(J){if(J[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+J[0]+(this.useColors?"%c ":" ")+"+"+g9.exports.humanize(this.diff),!this.useColors)return;let X="color: "+this.color;J.splice(1,0,X,"color: inherit");let Z=0,Q=0;J[0].replace(/%[a-zA-Z%]/g,(Y)=>{if(Y==="%%")return;if(Z++,Y==="%c")Q=Z}),J.splice(Q,0,X)}yz.log=console.debug||console.log||(()=>{});function BY1(J){try{if(J)yz.storage.setItem("debug",J);else yz.storage.removeItem("debug")}catch(X){}}function RY1(){let J;try{J=yz.storage.getItem("debug")||yz.storage.getItem("DEBUG")}catch(X){}if(!J&&typeof process<"u"&&"env"in process)J=process.env.DEBUG;return J}function $Y1(){try{return localStorage}catch(J){}}g9.exports=q8()(yz);var{formatters:qY1}=g9.exports;qY1.j=function(J){try{return JSON.stringify(J)}catch(X){return"[UnexpectedJSONParseError]: "+X.message}}});var cz=N((CS1,mz)=>{mz.exports=(J,X=process.argv)=>{let Z=J.startsWith("-")?"":J.length===1?"-":"--",Q=X.indexOf(Z+J),Y=X.indexOf("--");return Q!==-1&&(Y===-1||Q<Y)}});var pz=N((DS1,iz)=>{var NY1=pX("os"),lz=pX("tty"),$J=cz(),{env:l1}=process,Z0;if($J("no-color")||$J("no-colors")||$J("color=false")||$J("color=never"))Z0=0;else if($J("color")||$J("colors")||$J("color=true")||$J("color=always"))Z0=1;if("FORCE_COLOR"in l1)if(l1.FORCE_COLOR==="true")Z0=1;else if(l1.FORCE_COLOR==="false")Z0=0;else Z0=l1.FORCE_COLOR.length===0?1:Math.min(parseInt(l1.FORCE_COLOR,10),3);function F8(J){if(J===0)return!1;return{level:J,hasBasic:!0,has256:J>=2,has16m:J>=3}}function j8(J,X){if(Z0===0)return 0;if($J("color=16m")||$J("color=full")||$J("color=truecolor"))return 3;if($J("color=256"))return 2;if(J&&!X&&Z0===void 0)return 0;let Z=Z0||0;if(l1.TERM==="dumb")return Z;if(process.platform==="win32"){let Q=NY1.release().split(".");if(Number(Q[0])>=10&&Number(Q[2])>=10586)return Number(Q[2])>=14931?3:2;return 1}if("CI"in l1){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some((Q)=>(Q in l1))||l1.CI_NAME==="codeship")return 1;return Z}if("TEAMCITY_VERSION"in l1)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(l1.TEAMCITY_VERSION)?1:0;if(l1.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in l1){let Q=parseInt((l1.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(l1.TERM_PROGRAM){case"iTerm.app":return Q>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(l1.TERM))return 2;if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(l1.TERM))return 1;if("COLORTERM"in l1)return 1;return Z}function wY1(J){let X=j8(J,J&&J.isTTY);return F8(X)}iz.exports={supportsColor:wY1,stdout:F8(j8(!0,lz.isatty(1))),stderr:F8(j8(!0,lz.isatty(2)))}});var sz=N((dz,f9)=>{var PY1=pX("tty"),_9=pX("util");dz.init=vY1;dz.log=LY1;dz.formatArgs=IY1;dz.save=bY1;dz.load=kY1;dz.useColors=SY1;dz.destroy=_9.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");dz.colors=[6,2,3,4,5,1];try{let J=pz();if(J&&(J.stderr||J).level>=2)dz.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221]}catch(J){}dz.inspectOpts=Object.keys(process.env).filter((J)=>{return/^debug_/i.test(J)}).reduce((J,X)=>{let Z=X.substring(6).toLowerCase().replace(/_([a-z])/g,(Y,z)=>{return z.toUpperCase()}),Q=process.env[X];if(/^(yes|on|true|enabled)$/i.test(Q))Q=!0;else if(/^(no|off|false|disabled)$/i.test(Q))Q=!1;else if(Q==="null")Q=null;else Q=Number(Q);return J[Z]=Q,J},{});function SY1(){return"colors"in dz.inspectOpts?Boolean(dz.inspectOpts.colors):PY1.isatty(process.stderr.fd)}function IY1(J){let{namespace:X,useColors:Z}=this;if(Z){let Q=this.color,Y="\x1B[3"+(Q<8?Q:"8;5;"+Q),z=` ${Y};1m${X} \x1B[0m`;J[0]=z+J[0].split(`
|
|
24
24
|
`).join(`
|
|
25
|
-
`+
|
|
26
|
-
`)}function
|
|
27
|
-
`).map((G)=>G.trim()).join(" ")};S8.O=function(f){return this.inspectOpts.colors=this.useColors,MW.inspect(f,this.inspectOpts)}});var q8=P((jSf,lR)=>{if(typeof process==="undefined"||process.type==="renderer"||!1||process.__nwjs)lR.exports=z8();else lR.exports=C8()});var aR=P((j8)=>{Object.defineProperty(j8,"__esModule",{value:!0});j8.isBindingIdentifier=Z6f;j8.isBlockScoped=K6f;j8.isExpression=z6f;j8.isFlow=q6f;j8.isForAwaitStatement=j6f;j8.isGenerated=$6f;j8.isPure=C6f;j8.isReferenced=M6f;j8.isReferencedIdentifier=H6f;j8.isReferencedMemberExpression=Q6f;j8.isRestProperty=A6f;j8.isScope=B6f;j8.isSpreadProperty=O6f;j8.isStatement=Y6f;j8.isUser=F6f;j8.isVar=S6f;var lUf=Vf(),{isBinding:cUf,isBlockScoped:aUf,isExportDeclaration:iUf,isExpression:rUf,isFlow:sUf,isForStatement:pUf,isForXStatement:dUf,isIdentifier:A8,isImportDeclaration:tUf,isImportSpecifier:nUf,isJSXIdentifier:oUf,isJSXMemberExpression:eUf,isMemberExpression:f6f,isRestElement:O8,isReferenced:cR,isScope:G6f,isStatement:X6f,isVar:W6f,isVariableDeclaration:R6f,react:J6f,isForOfStatement:U6f}=lUf,{isCompatTag:V6f}=J6f;function H6f(f){let{node:G,parent:X}=this;if(!A8(G,f)&&!eUf(X,f))if(oUf(G,f)){if(V6f(G.name))return!1}else return!1;return cR(G,X,this.parentPath.parent)}function Q6f(){let{node:f,parent:G}=this;return f6f(f)&&cR(f,G)}function Z6f(){let{node:f,parent:G}=this,X=this.parentPath.parent;return A8(f)&&cUf(f,G,X)}function Y6f(){let{node:f,parent:G}=this;if(X6f(f)){if(R6f(f)){if(dUf(G,{left:f}))return!1;if(pUf(G,{init:f}))return!1}return!0}else return!1}function z6f(){if(this.isIdentifier())return this.isReferencedIdentifier();else return rUf(this.node)}function B6f(){return G6f(this.node,this.parent)}function M6f(){return cR(this.node,this.parent)}function K6f(){return aUf(this.node)}function S6f(){return W6f(this.node)}function F6f(){return this.node&&!!this.node.loc}function $6f(){return!this.isUser()}function C6f(f){return this.scope.isPure(this.node,f)}function q6f(){let{node:f}=this;if(sUf(f))return!0;else if(tUf(f))return f.importKind==="type"||f.importKind==="typeof";else if(iUf(f))return f.exportKind==="type";else if(nUf(f))return f.importKind==="type"||f.importKind==="typeof";else return!1}function A6f(){var f;return O8(this.node)&&((f=this.parentPath)==null?void 0:f.isObjectPattern())}function O6f(){var f;return O8(this.node)&&((f=this.parentPath)==null?void 0:f.isObjectExpression())}function j6f(){return U6f(this.node,{await:!0})}j8.isExistentialTypeParam=function f(){throw new Error("`path.isExistentialTypeParam` has been renamed to `path.isExistsTypeAnnotation()` in Babel 7.")},j8.isNumericLiteralTypeAnnotation=function f(){throw new Error("`path.isNumericLiteralTypeAnnotation()` has been renamed to `path.isNumberLiteralTypeAnnotation()` in Babel 7.")}});var QX=P((u8)=>{Object.defineProperty(u8,"__esModule",{value:!0});u8.environmentVisitor=s6f;u8.explode=v8;u8.isExplodedVisitor=k8;u8.merge=_8;u8.verify=g8;var w8=hR(),x6f=aR(),m6f=Vf(),P8=KG(),{DEPRECATED_KEYS:D8,DEPRECATED_ALIASES:I8,FLIPPED_ALIAS_KEYS:T8,TYPES:l6f,__internal__deprecationWarning:N8}=m6f;function c6f(f){return f in w8}function k8(f){return f==null?void 0:f._exploded}function v8(f){if(k8(f))return f;f._exploded=!0;for(let G of Object.keys(f)){if(G1(G))continue;let X=G.split("|");if(X.length===1)continue;let W=f[G];delete f[G];for(let R of X)f[R]=W}g8(f),delete f.__esModule,a6f(f),E8(f);for(let G of Object.keys(f)){if(G1(G))continue;if(!c6f(G))continue;let X=f[G];for(let R of Object.keys(X))X[R]=i6f(G,X[R]);delete f[G];let W=w8[G];if(W!==null)for(let R of W)if(f[R])HX(f[R],X);else f[R]=X;else HX(f,X)}for(let G of Object.keys(f)){if(G1(G))continue;let X=T8[G];if(G in D8){let R=D8[G];N8(G,R,"Visitor "),X=[R]}else if(G in I8){let R=I8[G];N8(G,R,"Visitor "),X=T8[R]}if(!X)continue;let W=f[G];delete f[G];for(let R of X){let J=f[R];if(J)HX(J,W);else f[R]=Object.assign({},W)}}for(let G of Object.keys(f)){if(G1(G))continue;E8(f[G])}return f}function g8(f){if(f._verified)return;if(typeof f==="function")throw new Error("You passed `traverse()` a function when it expected a visitor object, are you sure you didn't mean `{ enter: Function }`?");for(let G of Object.keys(f)){if(G==="enter"||G==="exit")L8(G,f[G]);if(G1(G))continue;if(!l6f.includes(G))throw new Error(`You gave us a visitor for the node type ${G} but it's not a valid type in @babel/traverse 7.26.10`);let X=f[G];if(typeof X==="object")for(let W of Object.keys(X))if(W==="enter"||W==="exit")L8(`${G}.${W}`,X[W]);else throw new Error(`You passed \`traverse()\` a visitor object with the property ${G} that has the invalid property ${W}`)}f._verified=!0}function L8(f,G){let X=[].concat(G);for(let W of X)if(typeof W!=="function")throw new TypeError(`Non-function found defined in ${f} with type ${typeof W}`)}function _8(f,G=[],X){let W={_verified:!0,_exploded:!0};Object.defineProperty(W,"_exploded",{enumerable:!1}),Object.defineProperty(W,"_verified",{enumerable:!1});for(let R=0;R<f.length;R++){let J=v8(f[R]),U=G[R],V=J;if(U||X)V=b8(V,U,X);HX(W,V);for(let H of Object.keys(J)){if(G1(H))continue;let Q=J[H];if(U||X)Q=b8(Q,U,X);let Y=W[H]||(W[H]={});HX(Y,Q)}}return W}function b8(f,G,X){let W={};for(let R of["enter","exit"]){let J=f[R];if(!Array.isArray(J))continue;J=J.map(function(U){let V=U;if(G)V=function(H){U.call(G,H,G)};if(X)V=X(G==null?void 0:G.key,R,V);if(V!==U)V.toString=()=>U.toString();return V}),W[R]=J}return W}function a6f(f){for(let G of Object.keys(f)){if(G1(G))continue;let X=f[G];if(typeof X==="function")f[G]={enter:X}}}function E8(f){if(f.enter&&!Array.isArray(f.enter))f.enter=[f.enter];if(f.exit&&!Array.isArray(f.exit))f.exit=[f.exit]}function i6f(f,G){let X=`is${f}`,W=x6f[X],R=function(J){if(W.call(J))return G.apply(this,arguments)};return R.toString=()=>G.toString(),R}function G1(f){if(f[0]==="_")return!0;if(f==="enter"||f==="exit"||f==="shouldSkip")return!0;if(f==="denylist"||f==="noScope"||f==="skipKeys")return!0;if(f==="blacklist")return!0;return!1}function HX(f,G){for(let X of["enter","exit"]){if(!G[X])continue;f[X]=[].concat(f[X]||[],G[X])}}var r6f={FunctionParent(f){if(f.isArrowFunctionExpression())return;if(f.skip(),f.isMethod())if(!f.requeueComputedKeyAndDecorators)P8.requeueComputedKeyAndDecorators.call(f);else f.requeueComputedKeyAndDecorators()},Property(f){if(f.isObjectProperty())return;if(f.skip(),!f.requeueComputedKeyAndDecorators)P8.requeueComputedKeyAndDecorators.call(f);else f.requeueComputedKeyAndDecorators()}};function s6f(f){return _8([r6f,f])}});var m8=P((y8)=>{Object.defineProperty(y8,"__esModule",{value:!0});y8.default=void 0;var SW=Vf(),e6f=SW,f0f=FW(),G0f=QX(),X0f=KG(),{getAssignmentIdentifiers:W0f}=e6f,R0f={ReferencedIdentifier({node:f},G){if(f.name===G.oldName)f.name=G.newName},Scope(f,G){if(!f.scope.bindingIdentifierEquals(G.oldName,G.binding.identifier)){if(f.skip(),f.isMethod())if(!f.requeueComputedKeyAndDecorators)X0f.requeueComputedKeyAndDecorators.call(f);else f.requeueComputedKeyAndDecorators()}},ObjectProperty({node:f,scope:G},X){let{name:W}=f.key;if(f.shorthand&&(W===X.oldName||W===X.newName)&&G.getBindingIdentifier(W)===X.binding.identifier){f.shorthand=!1;{var R;if((R=f.extra)!=null&&R.shorthand)f.extra.shorthand=!1}}},"AssignmentExpression|Declaration|VariableDeclarator"(f,G){if(f.isVariableDeclaration())return;let X=f.isAssignmentExpression()?W0f(f.node):f.getOuterBindingIdentifiers();for(let W in X)if(W===G.oldName)X[W].name=G.newName}};class h8{constructor(f,G,X){this.newName=X,this.oldName=G,this.binding=f}maybeConvertFromExportDeclaration(f){let G=f.parentPath;if(!G.isExportDeclaration())return;if(G.isExportDefaultDeclaration()){let{declaration:X}=G.node;if(SW.isDeclaration(X)&&!X.id)return}if(G.isExportAllDeclaration())return;G.splitExportDeclaration()}maybeConvertFromClassFunctionDeclaration(f){return f}maybeConvertFromClassFunctionExpression(f){return f}rename(){let{binding:f,oldName:G,newName:X}=this,{scope:W,path:R}=f,J=R.find((H)=>H.isDeclaration()||H.isFunctionExpression()||H.isClassExpression());if(J){if(J.getOuterBindingIdentifiers()[G]===f.identifier)this.maybeConvertFromExportDeclaration(J)}let U=arguments[0]||W.block,V={discriminant:!0};if(SW.isMethod(U)){if(U.computed)V.key=!0;if(!SW.isObjectMethod(U))V.decorators=!0}if(f0f.traverseNode(U,G0f.explode(R0f),W,this,W.path,V),!arguments[0])W.removeOwnBinding(G),W.bindings[X]=f,this.binding.identifier.name=X;if(J)this.maybeConvertFromClassFunctionDeclaration(R),this.maybeConvertFromClassFunctionExpression(R)}}y8.default=h8});var i8=P((c8)=>{Object.defineProperty(c8,"__esModule",{value:!0});c8.default=void 0;class l8{constructor({identifier:f,scope:G,path:X,kind:W}){if(this.identifier=void 0,this.scope=void 0,this.path=void 0,this.kind=void 0,this.constantViolations=[],this.constant=!0,this.referencePaths=[],this.referenced=!1,this.references=0,this.identifier=f,this.scope=G,this.path=X,this.kind=W,(W==="var"||W==="hoisted")&&J0f(X))this.reassign(X);this.clearValue()}deoptValue(){this.clearValue(),this.hasDeoptedValue=!0}setValue(f){if(this.hasDeoptedValue)return;this.hasValue=!0,this.value=f}clearValue(){this.hasDeoptedValue=!1,this.hasValue=!1,this.value=null}reassign(f){if(this.constant=!1,this.constantViolations.includes(f))return;this.constantViolations.push(f)}reference(f){if(this.referencePaths.includes(f))return;this.referenced=!0,this.references++,this.referencePaths.push(f)}dereference(){this.references--,this.referenced=!!this.references}}c8.default=l8;function J0f(f){for(let{parentPath:G,key:X}=f;G;{parentPath:G,key:X}=G){if(G.isFunctionParent())return!1;if(G.isWhile()||G.isForXStatement()||G.isForStatement()&&X==="body")return!0}return!1}});var r8=P((bSf,U0f)=>{U0f.exports={amd:{define:!1,require:!1},applescript:{$:!1,Application:!1,Automation:!1,console:!1,delay:!1,Library:!1,ObjC:!1,ObjectSpecifier:!1,Path:!1,Progress:!1,Ref:!1},atomtest:{advanceClock:!1,atom:!1,fakeClearInterval:!1,fakeClearTimeout:!1,fakeSetInterval:!1,fakeSetTimeout:!1,resetTimeouts:!1,waitsForPromise:!1},browser:{AbortController:!1,AbortSignal:!1,AbsoluteOrientationSensor:!1,AbstractRange:!1,Accelerometer:!1,addEventListener:!1,ai:!1,AI:!1,AITextSession:!1,alert:!1,AnalyserNode:!1,Animation:!1,AnimationEffect:!1,AnimationEvent:!1,AnimationPlaybackEvent:!1,AnimationTimeline:!1,atob:!1,Attr:!1,Audio:!1,AudioBuffer:!1,AudioBufferSourceNode:!1,AudioContext:!1,AudioData:!1,AudioDecoder:!1,AudioDestinationNode:!1,AudioEncoder:!1,AudioListener:!1,AudioNode:!1,AudioParam:!1,AudioParamMap:!1,AudioProcessingEvent:!1,AudioScheduledSourceNode:!1,AudioSinkInfo:!1,AudioWorklet:!1,AudioWorkletGlobalScope:!1,AudioWorkletNode:!1,AudioWorkletProcessor:!1,AuthenticatorAssertionResponse:!1,AuthenticatorAttestationResponse:!1,AuthenticatorResponse:!1,BackgroundFetchManager:!1,BackgroundFetchRecord:!1,BackgroundFetchRegistration:!1,BarcodeDetector:!1,BarProp:!1,BaseAudioContext:!1,BatteryManager:!1,BeforeUnloadEvent:!1,BiquadFilterNode:!1,Blob:!1,BlobEvent:!1,Bluetooth:!1,BluetoothCharacteristicProperties:!1,BluetoothDevice:!1,BluetoothRemoteGATTCharacteristic:!1,BluetoothRemoteGATTDescriptor:!1,BluetoothRemoteGATTServer:!1,BluetoothRemoteGATTService:!1,BluetoothUUID:!1,blur:!1,BroadcastChannel:!1,BrowserCaptureMediaStreamTrack:!1,btoa:!1,ByteLengthQueuingStrategy:!1,Cache:!1,caches:!1,CacheStorage:!1,cancelAnimationFrame:!1,cancelIdleCallback:!1,CanvasCaptureMediaStream:!1,CanvasCaptureMediaStreamTrack:!1,CanvasGradient:!1,CanvasPattern:!1,CanvasRenderingContext2D:!1,CaptureController:!1,CaretPosition:!1,CDATASection:!1,ChannelMergerNode:!1,ChannelSplitterNode:!1,ChapterInformation:!1,CharacterBoundsUpdateEvent:!1,CharacterData:!1,clearInterval:!1,clearTimeout:!1,clientInformation:!1,Clipboard:!1,ClipboardEvent:!1,ClipboardItem:!1,close:!1,closed:!1,CloseEvent:!1,CloseWatcher:!1,Comment:!1,CompositionEvent:!1,CompressionStream:!1,confirm:!1,console:!1,ConstantSourceNode:!1,ContentVisibilityAutoStateChangeEvent:!1,ConvolverNode:!1,CookieChangeEvent:!1,CookieDeprecationLabel:!1,cookieStore:!1,CookieStore:!1,CookieStoreManager:!1,CountQueuingStrategy:!1,createImageBitmap:!1,Credential:!1,credentialless:!1,CredentialsContainer:!1,CropTarget:!1,crossOriginIsolated:!1,crypto:!1,Crypto:!1,CryptoKey:!1,CSS:!1,CSSAnimation:!1,CSSConditionRule:!1,CSSContainerRule:!1,CSSCounterStyleRule:!1,CSSFontFaceRule:!1,CSSFontFeatureValuesRule:!1,CSSFontPaletteValuesRule:!1,CSSGroupingRule:!1,CSSImageValue:!1,CSSImportRule:!1,CSSKeyframeRule:!1,CSSKeyframesRule:!1,CSSKeywordValue:!1,CSSLayerBlockRule:!1,CSSLayerStatementRule:!1,CSSMarginRule:!1,CSSMathClamp:!1,CSSMathInvert:!1,CSSMathMax:!1,CSSMathMin:!1,CSSMathNegate:!1,CSSMathProduct:!1,CSSMathSum:!1,CSSMathValue:!1,CSSMatrixComponent:!1,CSSMediaRule:!1,CSSNamespaceRule:!1,CSSNestedDeclarations:!1,CSSNumericArray:!1,CSSNumericValue:!1,CSSPageDescriptors:!1,CSSPageRule:!1,CSSPerspective:!1,CSSPositionTryDescriptors:!1,CSSPositionTryRule:!1,CSSPositionValue:!1,CSSPropertyRule:!1,CSSRotate:!1,CSSRule:!1,CSSRuleList:!1,CSSScale:!1,CSSScopeRule:!1,CSSSkew:!1,CSSSkewX:!1,CSSSkewY:!1,CSSStartingStyleRule:!1,CSSStyleDeclaration:!1,CSSStyleRule:!1,CSSStyleSheet:!1,CSSStyleValue:!1,CSSSupportsRule:!1,CSSTransformComponent:!1,CSSTransformValue:!1,CSSTransition:!1,CSSTranslate:!1,CSSUnitValue:!1,CSSUnparsedValue:!1,CSSVariableReferenceValue:!1,CSSViewTransitionRule:!1,currentFrame:!1,currentTime:!1,CustomElementRegistry:!1,customElements:!1,CustomEvent:!1,CustomStateSet:!1,DataTransfer:!1,DataTransferItem:!1,DataTransferItemList:!1,DecompressionStream:!1,DelayNode:!1,DelegatedInkTrailPresenter:!1,DeviceMotionEvent:!1,DeviceMotionEventAcceleration:!1,DeviceMotionEventRotationRate:!1,DeviceOrientationEvent:!1,devicePixelRatio:!1,dispatchEvent:!1,document:!1,Document:!1,DocumentFragment:!1,documentPictureInPicture:!1,DocumentPictureInPicture:!1,DocumentPictureInPictureEvent:!1,DocumentTimeline:!1,DocumentType:!1,DOMError:!1,DOMException:!1,DOMImplementation:!1,DOMMatrix:!1,DOMMatrixReadOnly:!1,DOMParser:!1,DOMPoint:!1,DOMPointReadOnly:!1,DOMQuad:!1,DOMRect:!1,DOMRectList:!1,DOMRectReadOnly:!1,DOMStringList:!1,DOMStringMap:!1,DOMTokenList:!1,DragEvent:!1,DynamicsCompressorNode:!1,EditContext:!1,Element:!1,ElementInternals:!1,EncodedAudioChunk:!1,EncodedVideoChunk:!1,ErrorEvent:!1,event:!1,Event:!1,EventCounts:!1,EventSource:!1,EventTarget:!1,external:!1,External:!1,EyeDropper:!1,FeaturePolicy:!1,FederatedCredential:!1,fence:!1,Fence:!1,FencedFrameConfig:!1,fetch:!1,fetchLater:!1,FetchLaterResult:!1,File:!1,FileList:!1,FileReader:!1,FileSystem:!1,FileSystemDirectoryEntry:!1,FileSystemDirectoryHandle:!1,FileSystemDirectoryReader:!1,FileSystemEntry:!1,FileSystemFileEntry:!1,FileSystemFileHandle:!1,FileSystemHandle:!1,FileSystemWritableFileStream:!1,find:!1,Float16Array:!1,focus:!1,FocusEvent:!1,FontData:!1,FontFace:!1,FontFaceSet:!1,FontFaceSetLoadEvent:!1,FormData:!1,FormDataEvent:!1,FragmentDirective:!1,frameElement:!1,frames:!1,GainNode:!1,Gamepad:!1,GamepadAxisMoveEvent:!1,GamepadButton:!1,GamepadButtonEvent:!1,GamepadEvent:!1,GamepadHapticActuator:!1,GamepadPose:!1,Geolocation:!1,GeolocationCoordinates:!1,GeolocationPosition:!1,GeolocationPositionError:!1,getComputedStyle:!1,getScreenDetails:!1,getSelection:!1,GPU:!1,GPUAdapter:!1,GPUAdapterInfo:!1,GPUBindGroup:!1,GPUBindGroupLayout:!1,GPUBuffer:!1,GPUBufferUsage:!1,GPUCanvasContext:!1,GPUColorWrite:!1,GPUCommandBuffer:!1,GPUCommandEncoder:!1,GPUCompilationInfo:!1,GPUCompilationMessage:!1,GPUComputePassEncoder:!1,GPUComputePipeline:!1,GPUDevice:!1,GPUDeviceLostInfo:!1,GPUError:!1,GPUExternalTexture:!1,GPUInternalError:!1,GPUMapMode:!1,GPUOutOfMemoryError:!1,GPUPipelineError:!1,GPUPipelineLayout:!1,GPUQuerySet:!1,GPUQueue:!1,GPURenderBundle:!1,GPURenderBundleEncoder:!1,GPURenderPassEncoder:!1,GPURenderPipeline:!1,GPUSampler:!1,GPUShaderModule:!1,GPUShaderStage:!1,GPUSupportedFeatures:!1,GPUSupportedLimits:!1,GPUTexture:!1,GPUTextureUsage:!1,GPUTextureView:!1,GPUUncapturedErrorEvent:!1,GPUValidationError:!1,GravitySensor:!1,Gyroscope:!1,HashChangeEvent:!1,Headers:!1,HID:!1,HIDConnectionEvent:!1,HIDDevice:!1,HIDInputReportEvent:!1,Highlight:!1,HighlightRegistry:!1,history:!1,History:!1,HTMLAllCollection:!1,HTMLAnchorElement:!1,HTMLAreaElement:!1,HTMLAudioElement:!1,HTMLBaseElement:!1,HTMLBodyElement:!1,HTMLBRElement:!1,HTMLButtonElement:!1,HTMLCanvasElement:!1,HTMLCollection:!1,HTMLDataElement:!1,HTMLDataListElement:!1,HTMLDetailsElement:!1,HTMLDialogElement:!1,HTMLDirectoryElement:!1,HTMLDivElement:!1,HTMLDListElement:!1,HTMLDocument:!1,HTMLElement:!1,HTMLEmbedElement:!1,HTMLFencedFrameElement:!1,HTMLFieldSetElement:!1,HTMLFontElement:!1,HTMLFormControlsCollection:!1,HTMLFormElement:!1,HTMLFrameElement:!1,HTMLFrameSetElement:!1,HTMLHeadElement:!1,HTMLHeadingElement:!1,HTMLHRElement:!1,HTMLHtmlElement:!1,HTMLIFrameElement:!1,HTMLImageElement:!1,HTMLInputElement:!1,HTMLLabelElement:!1,HTMLLegendElement:!1,HTMLLIElement:!1,HTMLLinkElement:!1,HTMLMapElement:!1,HTMLMarqueeElement:!1,HTMLMediaElement:!1,HTMLMenuElement:!1,HTMLMetaElement:!1,HTMLMeterElement:!1,HTMLModElement:!1,HTMLObjectElement:!1,HTMLOListElement:!1,HTMLOptGroupElement:!1,HTMLOptionElement:!1,HTMLOptionsCollection:!1,HTMLOutputElement:!1,HTMLParagraphElement:!1,HTMLParamElement:!1,HTMLPictureElement:!1,HTMLPreElement:!1,HTMLProgressElement:!1,HTMLQuoteElement:!1,HTMLScriptElement:!1,HTMLSelectElement:!1,HTMLSlotElement:!1,HTMLSourceElement:!1,HTMLSpanElement:!1,HTMLStyleElement:!1,HTMLTableCaptionElement:!1,HTMLTableCellElement:!1,HTMLTableColElement:!1,HTMLTableElement:!1,HTMLTableRowElement:!1,HTMLTableSectionElement:!1,HTMLTemplateElement:!1,HTMLTextAreaElement:!1,HTMLTimeElement:!1,HTMLTitleElement:!1,HTMLTrackElement:!1,HTMLUListElement:!1,HTMLUnknownElement:!1,HTMLVideoElement:!1,IDBCursor:!1,IDBCursorWithValue:!1,IDBDatabase:!1,IDBFactory:!1,IDBIndex:!1,IDBKeyRange:!1,IDBObjectStore:!1,IDBOpenDBRequest:!1,IDBRequest:!1,IDBTransaction:!1,IDBVersionChangeEvent:!1,IdentityCredential:!1,IdentityCredentialError:!1,IdentityProvider:!1,IdleDeadline:!1,IdleDetector:!1,IIRFilterNode:!1,Image:!1,ImageBitmap:!1,ImageBitmapRenderingContext:!1,ImageCapture:!1,ImageData:!1,ImageDecoder:!1,ImageTrack:!1,ImageTrackList:!1,indexedDB:!1,Ink:!1,innerHeight:!1,innerWidth:!1,InputDeviceCapabilities:!1,InputDeviceInfo:!1,InputEvent:!1,IntersectionObserver:!1,IntersectionObserverEntry:!1,isSecureContext:!1,Keyboard:!1,KeyboardEvent:!1,KeyboardLayoutMap:!1,KeyframeEffect:!1,LargestContentfulPaint:!1,LaunchParams:!1,launchQueue:!1,LaunchQueue:!1,LayoutShift:!1,LayoutShiftAttribution:!1,length:!1,LinearAccelerationSensor:!1,localStorage:!1,location:!0,Location:!1,locationbar:!1,Lock:!1,LockManager:!1,matchMedia:!1,MathMLElement:!1,MediaCapabilities:!1,MediaCapabilitiesInfo:!1,MediaDeviceInfo:!1,MediaDevices:!1,MediaElementAudioSourceNode:!1,MediaEncryptedEvent:!1,MediaError:!1,MediaKeyError:!1,MediaKeyMessageEvent:!1,MediaKeys:!1,MediaKeySession:!1,MediaKeyStatusMap:!1,MediaKeySystemAccess:!1,MediaList:!1,MediaMetadata:!1,MediaQueryList:!1,MediaQueryListEvent:!1,MediaRecorder:!1,MediaRecorderErrorEvent:!1,MediaSession:!1,MediaSource:!1,MediaSourceHandle:!1,MediaStream:!1,MediaStreamAudioDestinationNode:!1,MediaStreamAudioSourceNode:!1,MediaStreamEvent:!1,MediaStreamTrack:!1,MediaStreamTrackAudioSourceNode:!1,MediaStreamTrackAudioStats:!1,MediaStreamTrackEvent:!1,MediaStreamTrackGenerator:!1,MediaStreamTrackProcessor:!1,MediaStreamTrackVideoStats:!1,menubar:!1,MessageChannel:!1,MessageEvent:!1,MessagePort:!1,MIDIAccess:!1,MIDIConnectionEvent:!1,MIDIInput:!1,MIDIInputMap:!1,MIDIMessageEvent:!1,MIDIOutput:!1,MIDIOutputMap:!1,MIDIPort:!1,MimeType:!1,MimeTypeArray:!1,model:!1,ModelGenericSession:!1,ModelManager:!1,MouseEvent:!1,moveBy:!1,moveTo:!1,MutationEvent:!1,MutationObserver:!1,MutationRecord:!1,name:!1,NamedNodeMap:!1,NavigateEvent:!1,navigation:!1,Navigation:!1,NavigationActivation:!1,NavigationCurrentEntryChangeEvent:!1,NavigationDestination:!1,NavigationHistoryEntry:!1,NavigationPreloadManager:!1,NavigationTransition:!1,navigator:!1,Navigator:!1,NavigatorLogin:!1,NavigatorManagedData:!1,NavigatorUAData:!1,NetworkInformation:!1,Node:!1,NodeFilter:!1,NodeIterator:!1,NodeList:!1,Notification:!1,NotifyPaintEvent:!1,NotRestoredReasonDetails:!1,NotRestoredReasons:!1,OfflineAudioCompletionEvent:!1,OfflineAudioContext:!1,offscreenBuffering:!1,OffscreenCanvas:!1,OffscreenCanvasRenderingContext2D:!1,onabort:!0,onafterprint:!0,onanimationcancel:!0,onanimationend:!0,onanimationiteration:!0,onanimationstart:!0,onappinstalled:!0,onauxclick:!0,onbeforeinput:!0,onbeforeinstallprompt:!0,onbeforematch:!0,onbeforeprint:!0,onbeforetoggle:!0,onbeforeunload:!0,onbeforexrselect:!0,onblur:!0,oncancel:!0,oncanplay:!0,oncanplaythrough:!0,onchange:!0,onclick:!0,onclose:!0,oncontentvisibilityautostatechange:!0,oncontextlost:!0,oncontextmenu:!0,oncontextrestored:!0,oncopy:!0,oncuechange:!0,oncut:!0,ondblclick:!0,ondevicemotion:!0,ondeviceorientation:!0,ondeviceorientationabsolute:!0,ondrag:!0,ondragend:!0,ondragenter:!0,ondragleave:!0,ondragover:!0,ondragstart:!0,ondrop:!0,ondurationchange:!0,onemptied:!0,onended:!0,onerror:!0,onfocus:!0,onformdata:!0,ongamepadconnected:!0,ongamepaddisconnected:!0,ongotpointercapture:!0,onhashchange:!0,oninput:!0,oninvalid:!0,onkeydown:!0,onkeypress:!0,onkeyup:!0,onlanguagechange:!0,onload:!0,onloadeddata:!0,onloadedmetadata:!0,onloadstart:!0,onlostpointercapture:!0,onmessage:!0,onmessageerror:!0,onmousedown:!0,onmouseenter:!0,onmouseleave:!0,onmousemove:!0,onmouseout:!0,onmouseover:!0,onmouseup:!0,onmousewheel:!0,onoffline:!0,ononline:!0,onpagehide:!0,onpagereveal:!0,onpageshow:!0,onpageswap:!0,onpaste:!0,onpause:!0,onplay:!0,onplaying:!0,onpointercancel:!0,onpointerdown:!0,onpointerenter:!0,onpointerleave:!0,onpointermove:!0,onpointerout:!0,onpointerover:!0,onpointerrawupdate:!0,onpointerup:!0,onpopstate:!0,onprogress:!0,onratechange:!0,onrejectionhandled:!0,onreset:!0,onresize:!0,onscroll:!0,onscrollend:!0,onscrollsnapchange:!0,onscrollsnapchanging:!0,onsearch:!0,onsecuritypolicyviolation:!0,onseeked:!0,onseeking:!0,onselect:!0,onselectionchange:!0,onselectstart:!0,onslotchange:!0,onstalled:!0,onstorage:!0,onsubmit:!0,onsuspend:!0,ontimeupdate:!0,ontoggle:!0,ontransitioncancel:!0,ontransitionend:!0,ontransitionrun:!0,ontransitionstart:!0,onunhandledrejection:!0,onunload:!0,onvolumechange:!0,onwaiting:!0,onwheel:!0,open:!1,opener:!1,Option:!1,OrientationSensor:!1,origin:!1,originAgentCluster:!1,OscillatorNode:!1,OTPCredential:!1,outerHeight:!1,outerWidth:!1,OverconstrainedError:!1,PageRevealEvent:!1,PageSwapEvent:!1,PageTransitionEvent:!1,pageXOffset:!1,pageYOffset:!1,PannerNode:!1,parent:!1,PasswordCredential:!1,Path2D:!1,PaymentAddress:!1,PaymentManager:!1,PaymentMethodChangeEvent:!1,PaymentRequest:!1,PaymentRequestUpdateEvent:!1,PaymentResponse:!1,performance:!1,Performance:!1,PerformanceElementTiming:!1,PerformanceEntry:!1,PerformanceEventTiming:!1,PerformanceLongAnimationFrameTiming:!1,PerformanceLongTaskTiming:!1,PerformanceMark:!1,PerformanceMeasure:!1,PerformanceNavigation:!1,PerformanceNavigationTiming:!1,PerformanceObserver:!1,PerformanceObserverEntryList:!1,PerformancePaintTiming:!1,PerformanceResourceTiming:!1,PerformanceScriptTiming:!1,PerformanceServerTiming:!1,PerformanceTiming:!1,PeriodicSyncManager:!1,PeriodicWave:!1,Permissions:!1,PermissionStatus:!1,PERSISTENT:!1,personalbar:!1,PictureInPictureEvent:!1,PictureInPictureWindow:!1,Plugin:!1,PluginArray:!1,PointerEvent:!1,PopStateEvent:!1,postMessage:!1,Presentation:!1,PresentationAvailability:!1,PresentationConnection:!1,PresentationConnectionAvailableEvent:!1,PresentationConnectionCloseEvent:!1,PresentationConnectionList:!1,PresentationReceiver:!1,PresentationRequest:!1,PressureObserver:!1,PressureRecord:!1,print:!1,ProcessingInstruction:!1,Profiler:!1,ProgressEvent:!1,PromiseRejectionEvent:!1,prompt:!1,ProtectedAudience:!1,PublicKeyCredential:!1,PushManager:!1,PushSubscription:!1,PushSubscriptionOptions:!1,queryLocalFonts:!1,queueMicrotask:!1,RadioNodeList:!1,Range:!1,ReadableByteStreamController:!1,ReadableStream:!1,ReadableStreamBYOBReader:!1,ReadableStreamBYOBRequest:!1,ReadableStreamDefaultController:!1,ReadableStreamDefaultReader:!1,registerProcessor:!1,RelativeOrientationSensor:!1,RemotePlayback:!1,removeEventListener:!1,reportError:!1,ReportingObserver:!1,Request:!1,requestAnimationFrame:!1,requestIdleCallback:!1,resizeBy:!1,ResizeObserver:!1,ResizeObserverEntry:!1,ResizeObserverSize:!1,resizeTo:!1,Response:!1,RTCCertificate:!1,RTCDataChannel:!1,RTCDataChannelEvent:!1,RTCDtlsTransport:!1,RTCDTMFSender:!1,RTCDTMFToneChangeEvent:!1,RTCEncodedAudioFrame:!1,RTCEncodedVideoFrame:!1,RTCError:!1,RTCErrorEvent:!1,RTCIceCandidate:!1,RTCIceTransport:!1,RTCPeerConnection:!1,RTCPeerConnectionIceErrorEvent:!1,RTCPeerConnectionIceEvent:!1,RTCRtpReceiver:!1,RTCRtpScriptTransform:!1,RTCRtpSender:!1,RTCRtpTransceiver:!1,RTCSctpTransport:!1,RTCSessionDescription:!1,RTCStatsReport:!1,RTCTrackEvent:!1,sampleRate:!1,scheduler:!1,Scheduler:!1,Scheduling:!1,screen:!1,Screen:!1,ScreenDetailed:!1,ScreenDetails:!1,screenLeft:!1,ScreenOrientation:!1,screenTop:!1,screenX:!1,screenY:!1,ScriptProcessorNode:!1,scroll:!1,scrollbars:!1,scrollBy:!1,ScrollTimeline:!1,scrollTo:!1,scrollX:!1,scrollY:!1,SecurityPolicyViolationEvent:!1,Selection:!1,self:!1,Sensor:!1,SensorErrorEvent:!1,Serial:!1,SerialPort:!1,ServiceWorker:!1,ServiceWorkerContainer:!1,ServiceWorkerRegistration:!1,sessionStorage:!1,setInterval:!1,setTimeout:!1,ShadowRoot:!1,sharedStorage:!1,SharedStorage:!1,SharedStorageWorklet:!1,SharedWorker:!1,showDirectoryPicker:!1,showOpenFilePicker:!1,showSaveFilePicker:!1,SnapEvent:!1,SourceBuffer:!1,SourceBufferList:!1,speechSynthesis:!1,SpeechSynthesis:!1,SpeechSynthesisErrorEvent:!1,SpeechSynthesisEvent:!1,SpeechSynthesisUtterance:!1,SpeechSynthesisVoice:!1,StaticRange:!1,status:!1,statusbar:!1,StereoPannerNode:!1,stop:!1,Storage:!1,StorageBucket:!1,StorageBucketManager:!1,StorageEvent:!1,StorageManager:!1,structuredClone:!1,styleMedia:!1,StylePropertyMap:!1,StylePropertyMapReadOnly:!1,StyleSheet:!1,StyleSheetList:!1,SubmitEvent:!1,SubtleCrypto:!1,SVGAElement:!1,SVGAngle:!1,SVGAnimatedAngle:!1,SVGAnimatedBoolean:!1,SVGAnimatedEnumeration:!1,SVGAnimatedInteger:!1,SVGAnimatedLength:!1,SVGAnimatedLengthList:!1,SVGAnimatedNumber:!1,SVGAnimatedNumberList:!1,SVGAnimatedPreserveAspectRatio:!1,SVGAnimatedRect:!1,SVGAnimatedString:!1,SVGAnimatedTransformList:!1,SVGAnimateElement:!1,SVGAnimateMotionElement:!1,SVGAnimateTransformElement:!1,SVGAnimationElement:!1,SVGCircleElement:!1,SVGClipPathElement:!1,SVGComponentTransferFunctionElement:!1,SVGDefsElement:!1,SVGDescElement:!1,SVGElement:!1,SVGEllipseElement:!1,SVGFEBlendElement:!1,SVGFEColorMatrixElement:!1,SVGFEComponentTransferElement:!1,SVGFECompositeElement:!1,SVGFEConvolveMatrixElement:!1,SVGFEDiffuseLightingElement:!1,SVGFEDisplacementMapElement:!1,SVGFEDistantLightElement:!1,SVGFEDropShadowElement:!1,SVGFEFloodElement:!1,SVGFEFuncAElement:!1,SVGFEFuncBElement:!1,SVGFEFuncGElement:!1,SVGFEFuncRElement:!1,SVGFEGaussianBlurElement:!1,SVGFEImageElement:!1,SVGFEMergeElement:!1,SVGFEMergeNodeElement:!1,SVGFEMorphologyElement:!1,SVGFEOffsetElement:!1,SVGFEPointLightElement:!1,SVGFESpecularLightingElement:!1,SVGFESpotLightElement:!1,SVGFETileElement:!1,SVGFETurbulenceElement:!1,SVGFilterElement:!1,SVGForeignObjectElement:!1,SVGGElement:!1,SVGGeometryElement:!1,SVGGradientElement:!1,SVGGraphicsElement:!1,SVGImageElement:!1,SVGLength:!1,SVGLengthList:!1,SVGLinearGradientElement:!1,SVGLineElement:!1,SVGMarkerElement:!1,SVGMaskElement:!1,SVGMatrix:!1,SVGMetadataElement:!1,SVGMPathElement:!1,SVGNumber:!1,SVGNumberList:!1,SVGPathElement:!1,SVGPatternElement:!1,SVGPoint:!1,SVGPointList:!1,SVGPolygonElement:!1,SVGPolylineElement:!1,SVGPreserveAspectRatio:!1,SVGRadialGradientElement:!1,SVGRect:!1,SVGRectElement:!1,SVGScriptElement:!1,SVGSetElement:!1,SVGStopElement:!1,SVGStringList:!1,SVGStyleElement:!1,SVGSVGElement:!1,SVGSwitchElement:!1,SVGSymbolElement:!1,SVGTextContentElement:!1,SVGTextElement:!1,SVGTextPathElement:!1,SVGTextPositioningElement:!1,SVGTitleElement:!1,SVGTransform:!1,SVGTransformList:!1,SVGTSpanElement:!1,SVGUnitTypes:!1,SVGUseElement:!1,SVGViewElement:!1,SyncManager:!1,TaskAttributionTiming:!1,TaskController:!1,TaskPriorityChangeEvent:!1,TaskSignal:!1,TEMPORARY:!1,Text:!1,TextDecoder:!1,TextDecoderStream:!1,TextEncoder:!1,TextEncoderStream:!1,TextEvent:!1,TextFormat:!1,TextFormatUpdateEvent:!1,TextMetrics:!1,TextTrack:!1,TextTrackCue:!1,TextTrackCueList:!1,TextTrackList:!1,TextUpdateEvent:!1,TimeEvent:!1,TimeRanges:!1,ToggleEvent:!1,toolbar:!1,top:!1,Touch:!1,TouchEvent:!1,TouchList:!1,TrackEvent:!1,TransformStream:!1,TransformStreamDefaultController:!1,TransitionEvent:!1,TreeWalker:!1,TrustedHTML:!1,TrustedScript:!1,TrustedScriptURL:!1,TrustedTypePolicy:!1,TrustedTypePolicyFactory:!1,trustedTypes:!1,UIEvent:!1,URL:!1,URLPattern:!1,URLSearchParams:!1,USB:!1,USBAlternateInterface:!1,USBConfiguration:!1,USBConnectionEvent:!1,USBDevice:!1,USBEndpoint:!1,USBInterface:!1,USBInTransferResult:!1,USBIsochronousInTransferPacket:!1,USBIsochronousInTransferResult:!1,USBIsochronousOutTransferPacket:!1,USBIsochronousOutTransferResult:!1,USBOutTransferResult:!1,UserActivation:!1,ValidityState:!1,VideoColorSpace:!1,VideoDecoder:!1,VideoEncoder:!1,VideoFrame:!1,VideoPlaybackQuality:!1,ViewTimeline:!1,ViewTransition:!1,ViewTransitionTypeSet:!1,VirtualKeyboard:!1,VirtualKeyboardGeometryChangeEvent:!1,VisibilityStateEntry:!1,visualViewport:!1,VisualViewport:!1,VTTCue:!1,VTTRegion:!1,WakeLock:!1,WakeLockSentinel:!1,WaveShaperNode:!1,WebAssembly:!1,WebGL2RenderingContext:!1,WebGLActiveInfo:!1,WebGLBuffer:!1,WebGLContextEvent:!1,WebGLFramebuffer:!1,WebGLObject:!1,WebGLProgram:!1,WebGLQuery:!1,WebGLRenderbuffer:!1,WebGLRenderingContext:!1,WebGLSampler:!1,WebGLShader:!1,WebGLShaderPrecisionFormat:!1,WebGLSync:!1,WebGLTexture:!1,WebGLTransformFeedback:!1,WebGLUniformLocation:!1,WebGLVertexArrayObject:!1,WebSocket:!1,WebSocketError:!1,WebSocketStream:!1,WebTransport:!1,WebTransportBidirectionalStream:!1,WebTransportDatagramDuplexStream:!1,WebTransportError:!1,WebTransportReceiveStream:!1,WebTransportSendStream:!1,WGSLLanguageFeatures:!1,WheelEvent:!1,window:!1,Window:!1,WindowControlsOverlay:!1,WindowControlsOverlayGeometryChangeEvent:!1,Worker:!1,Worklet:!1,WorkletGlobalScope:!1,WritableStream:!1,WritableStreamDefaultController:!1,WritableStreamDefaultWriter:!1,XMLDocument:!1,XMLHttpRequest:!1,XMLHttpRequestEventTarget:!1,XMLHttpRequestUpload:!1,XMLSerializer:!1,XPathEvaluator:!1,XPathExpression:!1,XPathResult:!1,XRAnchor:!1,XRAnchorSet:!1,XRBoundedReferenceSpace:!1,XRCamera:!1,XRCPUDepthInformation:!1,XRDepthInformation:!1,XRDOMOverlayState:!1,XRFrame:!1,XRHand:!1,XRHitTestResult:!1,XRHitTestSource:!1,XRInputSource:!1,XRInputSourceArray:!1,XRInputSourceEvent:!1,XRInputSourcesChangeEvent:!1,XRJointPose:!1,XRJointSpace:!1,XRLayer:!1,XRLightEstimate:!1,XRLightProbe:!1,XRPose:!1,XRRay:!1,XRReferenceSpace:!1,XRReferenceSpaceEvent:!1,XRRenderState:!1,XRRigidTransform:!1,XRSession:!1,XRSessionEvent:!1,XRSpace:!1,XRSystem:!1,XRTransientInputHitTestResult:!1,XRTransientInputHitTestSource:!1,XRView:!1,XRViewerPose:!1,XRViewport:!1,XRWebGLBinding:!1,XRWebGLDepthInformation:!1,XRWebGLLayer:!1,XSLTProcessor:!1},builtin:{AggregateError:!1,Array:!1,ArrayBuffer:!1,Atomics:!1,BigInt:!1,BigInt64Array:!1,BigUint64Array:!1,Boolean:!1,DataView:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,FinalizationRegistry:!1,Float32Array:!1,Float64Array:!1,Function:!1,globalThis:!1,Infinity:!1,Int16Array:!1,Int32Array:!1,Int8Array:!1,Intl:!1,isFinite:!1,isNaN:!1,Iterator:!1,JSON:!1,Map:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,Promise:!1,Proxy:!1,RangeError:!1,ReferenceError:!1,Reflect:!1,RegExp:!1,Set:!1,SharedArrayBuffer:!1,String:!1,Symbol:!1,SyntaxError:!1,TypeError:!1,Uint16Array:!1,Uint32Array:!1,Uint8Array:!1,Uint8ClampedArray:!1,undefined:!1,unescape:!1,URIError:!1,WeakMap:!1,WeakRef:!1,WeakSet:!1},chai:{assert:!0,expect:!0,should:!0},commonjs:{exports:!0,global:!1,module:!1,require:!1},couch:{emit:!1,exports:!1,getRow:!1,log:!1,module:!1,provides:!1,require:!1,respond:!1,send:!1,start:!1,sum:!1},devtools:{$:!1,$_:!1,$$:!1,$0:!1,$1:!1,$2:!1,$3:!1,$4:!1,$x:!1,chrome:!1,clear:!1,copy:!1,debug:!1,dir:!1,dirxml:!1,getEventListeners:!1,inspect:!1,keys:!1,monitor:!1,monitorEvents:!1,profile:!1,profileEnd:!1,queryObjects:!1,table:!1,undebug:!1,unmonitor:!1,unmonitorEvents:!1,values:!1},embertest:{andThen:!1,click:!1,currentPath:!1,currentRouteName:!1,currentURL:!1,fillIn:!1,find:!1,findAll:!1,findWithAssert:!1,keyEvent:!1,pauseTest:!1,resumeTest:!1,triggerEvent:!1,visit:!1,wait:!1},es2015:{Array:!1,ArrayBuffer:!1,Boolean:!1,DataView:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,Float32Array:!1,Float64Array:!1,Function:!1,Infinity:!1,Int16Array:!1,Int32Array:!1,Int8Array:!1,Intl:!1,isFinite:!1,isNaN:!1,JSON:!1,Map:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,Promise:!1,Proxy:!1,RangeError:!1,ReferenceError:!1,Reflect:!1,RegExp:!1,Set:!1,String:!1,Symbol:!1,SyntaxError:!1,TypeError:!1,Uint16Array:!1,Uint32Array:!1,Uint8Array:!1,Uint8ClampedArray:!1,undefined:!1,unescape:!1,URIError:!1,WeakMap:!1,WeakSet:!1},es2016:{Array:!1,ArrayBuffer:!1,Boolean:!1,DataView:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,Float32Array:!1,Float64Array:!1,Function:!1,Infinity:!1,Int16Array:!1,Int32Array:!1,Int8Array:!1,Intl:!1,isFinite:!1,isNaN:!1,JSON:!1,Map:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,Promise:!1,Proxy:!1,RangeError:!1,ReferenceError:!1,Reflect:!1,RegExp:!1,Set:!1,String:!1,Symbol:!1,SyntaxError:!1,TypeError:!1,Uint16Array:!1,Uint32Array:!1,Uint8Array:!1,Uint8ClampedArray:!1,undefined:!1,unescape:!1,URIError:!1,WeakMap:!1,WeakSet:!1},es2017:{Array:!1,ArrayBuffer:!1,Atomics:!1,Boolean:!1,DataView:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,Float32Array:!1,Float64Array:!1,Function:!1,Infinity:!1,Int16Array:!1,Int32Array:!1,Int8Array:!1,Intl:!1,isFinite:!1,isNaN:!1,JSON:!1,Map:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,Promise:!1,Proxy:!1,RangeError:!1,ReferenceError:!1,Reflect:!1,RegExp:!1,Set:!1,SharedArrayBuffer:!1,String:!1,Symbol:!1,SyntaxError:!1,TypeError:!1,Uint16Array:!1,Uint32Array:!1,Uint8Array:!1,Uint8ClampedArray:!1,undefined:!1,unescape:!1,URIError:!1,WeakMap:!1,WeakSet:!1},es2018:{Array:!1,ArrayBuffer:!1,Atomics:!1,Boolean:!1,DataView:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,Float32Array:!1,Float64Array:!1,Function:!1,Infinity:!1,Int16Array:!1,Int32Array:!1,Int8Array:!1,Intl:!1,isFinite:!1,isNaN:!1,JSON:!1,Map:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,Promise:!1,Proxy:!1,RangeError:!1,ReferenceError:!1,Reflect:!1,RegExp:!1,Set:!1,SharedArrayBuffer:!1,String:!1,Symbol:!1,SyntaxError:!1,TypeError:!1,Uint16Array:!1,Uint32Array:!1,Uint8Array:!1,Uint8ClampedArray:!1,undefined:!1,unescape:!1,URIError:!1,WeakMap:!1,WeakSet:!1},es2019:{Array:!1,ArrayBuffer:!1,Atomics:!1,Boolean:!1,DataView:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,Float32Array:!1,Float64Array:!1,Function:!1,Infinity:!1,Int16Array:!1,Int32Array:!1,Int8Array:!1,Intl:!1,isFinite:!1,isNaN:!1,JSON:!1,Map:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,Promise:!1,Proxy:!1,RangeError:!1,ReferenceError:!1,Reflect:!1,RegExp:!1,Set:!1,SharedArrayBuffer:!1,String:!1,Symbol:!1,SyntaxError:!1,TypeError:!1,Uint16Array:!1,Uint32Array:!1,Uint8Array:!1,Uint8ClampedArray:!1,undefined:!1,unescape:!1,URIError:!1,WeakMap:!1,WeakSet:!1},es2020:{Array:!1,ArrayBuffer:!1,Atomics:!1,BigInt:!1,BigInt64Array:!1,BigUint64Array:!1,Boolean:!1,DataView:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,Float32Array:!1,Float64Array:!1,Function:!1,globalThis:!1,Infinity:!1,Int16Array:!1,Int32Array:!1,Int8Array:!1,Intl:!1,isFinite:!1,isNaN:!1,JSON:!1,Map:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,Promise:!1,Proxy:!1,RangeError:!1,ReferenceError:!1,Reflect:!1,RegExp:!1,Set:!1,SharedArrayBuffer:!1,String:!1,Symbol:!1,SyntaxError:!1,TypeError:!1,Uint16Array:!1,Uint32Array:!1,Uint8Array:!1,Uint8ClampedArray:!1,undefined:!1,unescape:!1,URIError:!1,WeakMap:!1,WeakSet:!1},es2021:{AggregateError:!1,Array:!1,ArrayBuffer:!1,Atomics:!1,BigInt:!1,BigInt64Array:!1,BigUint64Array:!1,Boolean:!1,DataView:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,FinalizationRegistry:!1,Float32Array:!1,Float64Array:!1,Function:!1,globalThis:!1,Infinity:!1,Int16Array:!1,Int32Array:!1,Int8Array:!1,Intl:!1,isFinite:!1,isNaN:!1,JSON:!1,Map:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,Promise:!1,Proxy:!1,RangeError:!1,ReferenceError:!1,Reflect:!1,RegExp:!1,Set:!1,SharedArrayBuffer:!1,String:!1,Symbol:!1,SyntaxError:!1,TypeError:!1,Uint16Array:!1,Uint32Array:!1,Uint8Array:!1,Uint8ClampedArray:!1,undefined:!1,unescape:!1,URIError:!1,WeakMap:!1,WeakRef:!1,WeakSet:!1},es2022:{AggregateError:!1,Array:!1,ArrayBuffer:!1,Atomics:!1,BigInt:!1,BigInt64Array:!1,BigUint64Array:!1,Boolean:!1,DataView:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,FinalizationRegistry:!1,Float32Array:!1,Float64Array:!1,Function:!1,globalThis:!1,Infinity:!1,Int16Array:!1,Int32Array:!1,Int8Array:!1,Intl:!1,isFinite:!1,isNaN:!1,JSON:!1,Map:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,Promise:!1,Proxy:!1,RangeError:!1,ReferenceError:!1,Reflect:!1,RegExp:!1,Set:!1,SharedArrayBuffer:!1,String:!1,Symbol:!1,SyntaxError:!1,TypeError:!1,Uint16Array:!1,Uint32Array:!1,Uint8Array:!1,Uint8ClampedArray:!1,undefined:!1,unescape:!1,URIError:!1,WeakMap:!1,WeakRef:!1,WeakSet:!1},es2023:{AggregateError:!1,Array:!1,ArrayBuffer:!1,Atomics:!1,BigInt:!1,BigInt64Array:!1,BigUint64Array:!1,Boolean:!1,DataView:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,FinalizationRegistry:!1,Float32Array:!1,Float64Array:!1,Function:!1,globalThis:!1,Infinity:!1,Int16Array:!1,Int32Array:!1,Int8Array:!1,Intl:!1,isFinite:!1,isNaN:!1,JSON:!1,Map:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,Promise:!1,Proxy:!1,RangeError:!1,ReferenceError:!1,Reflect:!1,RegExp:!1,Set:!1,SharedArrayBuffer:!1,String:!1,Symbol:!1,SyntaxError:!1,TypeError:!1,Uint16Array:!1,Uint32Array:!1,Uint8Array:!1,Uint8ClampedArray:!1,undefined:!1,unescape:!1,URIError:!1,WeakMap:!1,WeakRef:!1,WeakSet:!1},es2024:{AggregateError:!1,Array:!1,ArrayBuffer:!1,Atomics:!1,BigInt:!1,BigInt64Array:!1,BigUint64Array:!1,Boolean:!1,DataView:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,FinalizationRegistry:!1,Float32Array:!1,Float64Array:!1,Function:!1,globalThis:!1,Infinity:!1,Int16Array:!1,Int32Array:!1,Int8Array:!1,Intl:!1,isFinite:!1,isNaN:!1,JSON:!1,Map:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,Promise:!1,Proxy:!1,RangeError:!1,ReferenceError:!1,Reflect:!1,RegExp:!1,Set:!1,SharedArrayBuffer:!1,String:!1,Symbol:!1,SyntaxError:!1,TypeError:!1,Uint16Array:!1,Uint32Array:!1,Uint8Array:!1,Uint8ClampedArray:!1,undefined:!1,unescape:!1,URIError:!1,WeakMap:!1,WeakRef:!1,WeakSet:!1},es2025:{AggregateError:!1,Array:!1,ArrayBuffer:!1,Atomics:!1,BigInt:!1,BigInt64Array:!1,BigUint64Array:!1,Boolean:!1,DataView:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,FinalizationRegistry:!1,Float32Array:!1,Float64Array:!1,Function:!1,globalThis:!1,Infinity:!1,Int16Array:!1,Int32Array:!1,Int8Array:!1,Intl:!1,isFinite:!1,isNaN:!1,Iterator:!1,JSON:!1,Map:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,Promise:!1,Proxy:!1,RangeError:!1,ReferenceError:!1,Reflect:!1,RegExp:!1,Set:!1,SharedArrayBuffer:!1,String:!1,Symbol:!1,SyntaxError:!1,TypeError:!1,Uint16Array:!1,Uint32Array:!1,Uint8Array:!1,Uint8ClampedArray:!1,undefined:!1,unescape:!1,URIError:!1,WeakMap:!1,WeakRef:!1,WeakSet:!1},es3:{Array:!1,Boolean:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,Function:!1,Infinity:!1,isFinite:!1,isNaN:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,RangeError:!1,ReferenceError:!1,RegExp:!1,String:!1,SyntaxError:!1,TypeError:!1,undefined:!1,unescape:!1,URIError:!1},es5:{Array:!1,Boolean:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,Function:!1,Infinity:!1,isFinite:!1,isNaN:!1,JSON:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,RangeError:!1,ReferenceError:!1,RegExp:!1,String:!1,SyntaxError:!1,TypeError:!1,undefined:!1,unescape:!1,URIError:!1},greasemonkey:{cloneInto:!1,createObjectIn:!1,exportFunction:!1,GM:!1,GM_addElement:!1,GM_addStyle:!1,GM_addValueChangeListener:!1,GM_deleteValue:!1,GM_download:!1,GM_getResourceText:!1,GM_getResourceURL:!1,GM_getTab:!1,GM_getTabs:!1,GM_getValue:!1,GM_info:!1,GM_listValues:!1,GM_log:!1,GM_notification:!1,GM_openInTab:!1,GM_registerMenuCommand:!1,GM_removeValueChangeListener:!1,GM_saveTab:!1,GM_setClipboard:!1,GM_setValue:!1,GM_unregisterMenuCommand:!1,GM_xmlhttpRequest:!1,unsafeWindow:!1},jasmine:{afterAll:!1,afterEach:!1,beforeAll:!1,beforeEach:!1,describe:!1,expect:!1,expectAsync:!1,fail:!1,fdescribe:!1,fit:!1,it:!1,jasmine:!1,pending:!1,runs:!1,spyOn:!1,spyOnAllFunctions:!1,spyOnProperty:!1,waits:!1,waitsFor:!1,xdescribe:!1,xit:!1},jest:{afterAll:!1,afterEach:!1,beforeAll:!1,beforeEach:!1,describe:!1,expect:!1,fit:!1,it:!1,jest:!1,test:!1,xdescribe:!1,xit:!1,xtest:!1},jquery:{$:!1,jQuery:!1},meteor:{$:!1,Accounts:!1,AccountsClient:!1,AccountsCommon:!1,AccountsServer:!1,App:!1,Assets:!1,Blaze:!1,check:!1,Cordova:!1,DDP:!1,DDPRateLimiter:!1,DDPServer:!1,Deps:!1,EJSON:!1,Email:!1,HTTP:!1,Log:!1,Match:!1,Meteor:!1,Mongo:!1,MongoInternals:!1,Npm:!1,Package:!1,Plugin:!1,process:!1,Random:!1,ReactiveDict:!1,ReactiveVar:!1,Router:!1,ServiceConfiguration:!1,Session:!1,share:!1,Spacebars:!1,Template:!1,Tinytest:!1,Tracker:!1,UI:!1,Utils:!1,WebApp:!1,WebAppInternals:!1},mocha:{after:!1,afterEach:!1,before:!1,beforeEach:!1,context:!1,describe:!1,it:!1,mocha:!1,run:!1,setup:!1,specify:!1,suite:!1,suiteSetup:!1,suiteTeardown:!1,teardown:!1,test:!1,xcontext:!1,xdescribe:!1,xit:!1,xspecify:!1},mongo:{_isWindows:!1,_rand:!1,BulkWriteResult:!1,cat:!1,cd:!1,connect:!1,db:!1,getHostName:!1,getMemInfo:!1,hostname:!1,ISODate:!1,listFiles:!1,load:!1,ls:!1,md5sumFile:!1,mkdir:!1,Mongo:!1,NumberInt:!1,NumberLong:!1,ObjectId:!1,PlanCache:!1,print:!1,printjson:!1,pwd:!1,quit:!1,removeFile:!1,rs:!1,sh:!1,UUID:!1,version:!1,WriteResult:!1},nashorn:{__DIR__:!1,__FILE__:!1,__LINE__:!1,com:!1,edu:!1,exit:!1,java:!1,Java:!1,javafx:!1,JavaImporter:!1,javax:!1,JSAdapter:!1,load:!1,loadWithNewGlobal:!1,org:!1,Packages:!1,print:!1,quit:!1},node:{__dirname:!1,__filename:!1,AbortController:!1,AbortSignal:!1,atob:!1,Blob:!1,BroadcastChannel:!1,btoa:!1,Buffer:!1,ByteLengthQueuingStrategy:!1,clearImmediate:!1,clearInterval:!1,clearTimeout:!1,CloseEvent:!1,CompressionStream:!1,console:!1,CountQueuingStrategy:!1,crypto:!1,Crypto:!1,CryptoKey:!1,CustomEvent:!1,DecompressionStream:!1,DOMException:!1,Event:!1,EventTarget:!1,exports:!0,fetch:!1,File:!1,FormData:!1,global:!1,Headers:!1,MessageChannel:!1,MessageEvent:!1,MessagePort:!1,module:!1,navigator:!1,Navigator:!1,performance:!1,Performance:!1,PerformanceEntry:!1,PerformanceMark:!1,PerformanceMeasure:!1,PerformanceObserver:!1,PerformanceObserverEntryList:!1,PerformanceResourceTiming:!1,process:!1,queueMicrotask:!1,ReadableByteStreamController:!1,ReadableStream:!1,ReadableStreamBYOBReader:!1,ReadableStreamBYOBRequest:!1,ReadableStreamDefaultController:!1,ReadableStreamDefaultReader:!1,Request:!1,require:!1,Response:!1,setImmediate:!1,setInterval:!1,setTimeout:!1,structuredClone:!1,SubtleCrypto:!1,TextDecoder:!1,TextDecoderStream:!1,TextEncoder:!1,TextEncoderStream:!1,TransformStream:!1,TransformStreamDefaultController:!1,URL:!1,URLSearchParams:!1,WebAssembly:!1,WebSocket:!1,WritableStream:!1,WritableStreamDefaultController:!1,WritableStreamDefaultWriter:!1},nodeBuiltin:{AbortController:!1,AbortSignal:!1,atob:!1,Blob:!1,BroadcastChannel:!1,btoa:!1,Buffer:!1,ByteLengthQueuingStrategy:!1,clearImmediate:!1,clearInterval:!1,clearTimeout:!1,CloseEvent:!1,CompressionStream:!1,console:!1,CountQueuingStrategy:!1,crypto:!1,Crypto:!1,CryptoKey:!1,CustomEvent:!1,DecompressionStream:!1,DOMException:!1,Event:!1,EventTarget:!1,fetch:!1,File:!1,FormData:!1,global:!1,Headers:!1,MessageChannel:!1,MessageEvent:!1,MessagePort:!1,navigator:!1,Navigator:!1,performance:!1,Performance:!1,PerformanceEntry:!1,PerformanceMark:!1,PerformanceMeasure:!1,PerformanceObserver:!1,PerformanceObserverEntryList:!1,PerformanceResourceTiming:!1,process:!1,queueMicrotask:!1,ReadableByteStreamController:!1,ReadableStream:!1,ReadableStreamBYOBReader:!1,ReadableStreamBYOBRequest:!1,ReadableStreamDefaultController:!1,ReadableStreamDefaultReader:!1,Request:!1,Response:!1,setImmediate:!1,setInterval:!1,setTimeout:!1,structuredClone:!1,SubtleCrypto:!1,TextDecoder:!1,TextDecoderStream:!1,TextEncoder:!1,TextEncoderStream:!1,TransformStream:!1,TransformStreamDefaultController:!1,URL:!1,URLSearchParams:!1,WebAssembly:!1,WebSocket:!1,WritableStream:!1,WritableStreamDefaultController:!1,WritableStreamDefaultWriter:!1},phantomjs:{console:!0,exports:!0,phantom:!0,require:!0,WebPage:!0},prototypejs:{$:!1,$$:!1,$A:!1,$break:!1,$continue:!1,$F:!1,$H:!1,$R:!1,$w:!1,Abstract:!1,Ajax:!1,Autocompleter:!1,Builder:!1,Class:!1,Control:!1,Draggable:!1,Draggables:!1,Droppables:!1,Effect:!1,Element:!1,Enumerable:!1,Event:!1,Field:!1,Form:!1,Hash:!1,Insertion:!1,ObjectRange:!1,PeriodicalExecuter:!1,Position:!1,Prototype:!1,Scriptaculous:!1,Selector:!1,Sortable:!1,SortableObserver:!1,Sound:!1,Template:!1,Toggle:!1,Try:!1},protractor:{$:!1,$$:!1,browser:!1,by:!1,By:!1,DartObject:!1,element:!1,protractor:!1},qunit:{asyncTest:!1,deepEqual:!1,equal:!1,expect:!1,module:!1,notDeepEqual:!1,notEqual:!1,notOk:!1,notPropEqual:!1,notStrictEqual:!1,ok:!1,propEqual:!1,QUnit:!1,raises:!1,start:!1,stop:!1,strictEqual:!1,test:!1,throws:!1},rhino:{defineClass:!1,deserialize:!1,gc:!1,help:!1,importClass:!1,importPackage:!1,java:!1,load:!1,loadClass:!1,Packages:!1,print:!1,quit:!1,readFile:!1,readUrl:!1,runCommand:!1,seal:!1,serialize:!1,spawn:!1,sync:!1,toint32:!1,version:!1},serviceworker:{AbortController:!1,AbortPaymentEvent:!1,AbortSignal:!1,addEventListener:!1,atob:!1,BackgroundFetchEvent:!1,BackgroundFetchManager:!1,BackgroundFetchRecord:!1,BackgroundFetchRegistration:!1,BackgroundFetchUpdateUIEvent:!1,BarcodeDetector:!1,Blob:!1,BroadcastChannel:!1,btoa:!1,ByteLengthQueuingStrategy:!1,Cache:!1,caches:!1,CacheStorage:!1,CanMakePaymentEvent:!1,CanvasGradient:!1,CanvasPattern:!1,clearInterval:!1,clearTimeout:!1,Client:!1,clients:!1,Clients:!1,CloseEvent:!1,CompressionStream:!1,console:!1,cookieStore:!1,CookieStore:!1,CookieStoreManager:!1,CountQueuingStrategy:!1,createImageBitmap:!1,CropTarget:!1,crossOriginIsolated:!1,crypto:!1,Crypto:!1,CryptoKey:!1,CSSSkewX:!1,CSSSkewY:!1,CustomEvent:!1,DecompressionStream:!1,dispatchEvent:!1,DOMException:!1,DOMMatrix:!1,DOMMatrixReadOnly:!1,DOMPoint:!1,DOMPointReadOnly:!1,DOMQuad:!1,DOMRect:!1,DOMRectReadOnly:!1,DOMStringList:!1,ErrorEvent:!1,Event:!1,EventSource:!1,EventTarget:!1,ExtendableCookieChangeEvent:!1,ExtendableEvent:!1,ExtendableMessageEvent:!1,fetch:!1,FetchEvent:!1,File:!1,FileList:!1,FileReader:!1,FileSystemDirectoryHandle:!1,FileSystemFileHandle:!1,FileSystemHandle:!1,FileSystemWritableFileStream:!1,FontFace:!1,fonts:!1,FormData:!1,GPU:!1,GPUAdapter:!1,GPUAdapterInfo:!1,GPUBindGroup:!1,GPUBindGroupLayout:!1,GPUBuffer:!1,GPUBufferUsage:!1,GPUCanvasContext:!1,GPUColorWrite:!1,GPUCommandBuffer:!1,GPUCommandEncoder:!1,GPUCompilationInfo:!1,GPUCompilationMessage:!1,GPUComputePassEncoder:!1,GPUComputePipeline:!1,GPUDevice:!1,GPUDeviceLostInfo:!1,GPUError:!1,GPUExternalTexture:!1,GPUInternalError:!1,GPUMapMode:!1,GPUOutOfMemoryError:!1,GPUPipelineError:!1,GPUPipelineLayout:!1,GPUQuerySet:!1,GPUQueue:!1,GPURenderBundle:!1,GPURenderBundleEncoder:!1,GPURenderPassEncoder:!1,GPURenderPipeline:!1,GPUSampler:!1,GPUShaderModule:!1,GPUShaderStage:!1,GPUSupportedFeatures:!1,GPUSupportedLimits:!1,GPUTexture:!1,GPUTextureUsage:!1,GPUTextureView:!1,GPUUncapturedErrorEvent:!1,GPUValidationError:!1,Headers:!1,IDBCursor:!1,IDBCursorWithValue:!1,IDBDatabase:!1,IDBFactory:!1,IDBIndex:!1,IDBKeyRange:!1,IDBObjectStore:!1,IDBOpenDBRequest:!1,IDBRequest:!1,IDBTransaction:!1,IDBVersionChangeEvent:!1,ImageBitmap:!1,ImageBitmapRenderingContext:!1,ImageData:!1,importScripts:!1,indexedDB:!1,InstallEvent:!1,isSecureContext:!1,location:!1,Lock:!1,LockManager:!1,MediaCapabilities:!1,MessageChannel:!1,MessageEvent:!1,MessagePort:!1,NavigationPreloadManager:!1,navigator:!1,NavigatorUAData:!1,NetworkInformation:!1,Notification:!1,NotificationEvent:!1,OffscreenCanvas:!1,OffscreenCanvasRenderingContext2D:!1,onabortpayment:!0,onactivate:!0,onbackgroundfetchabort:!0,onbackgroundfetchclick:!0,onbackgroundfetchfail:!0,onbackgroundfetchsuccess:!0,oncanmakepayment:!0,oncookiechange:!0,onerror:!0,onfetch:!0,oninstall:!0,onlanguagechange:!0,onmessage:!0,onmessageerror:!0,onnotificationclick:!0,onnotificationclose:!0,onpaymentrequest:!0,onperiodicsync:!0,onpush:!0,onpushsubscriptionchange:!0,onrejectionhandled:!0,onsync:!0,onunhandledrejection:!0,origin:!1,Path2D:!1,PaymentRequestEvent:!1,performance:!1,Performance:!1,PerformanceEntry:!1,PerformanceMark:!1,PerformanceMeasure:!1,PerformanceObserver:!1,PerformanceObserverEntryList:!1,PerformanceResourceTiming:!1,PerformanceServerTiming:!1,PeriodicSyncEvent:!1,PeriodicSyncManager:!1,Permissions:!1,PermissionStatus:!1,PromiseRejectionEvent:!1,PushEvent:!1,PushManager:!1,PushMessageData:!1,PushSubscription:!1,PushSubscriptionOptions:!1,queueMicrotask:!1,ReadableByteStreamController:!1,ReadableStream:!1,ReadableStreamBYOBReader:!1,ReadableStreamBYOBRequest:!1,ReadableStreamDefaultController:!1,ReadableStreamDefaultReader:!1,registration:!1,removeEventListener:!1,reportError:!1,ReportingObserver:!1,Request:!1,Response:!1,scheduler:!1,Scheduler:!1,SecurityPolicyViolationEvent:!1,self:!1,serviceWorker:!1,ServiceWorker:!1,ServiceWorkerGlobalScope:!1,ServiceWorkerRegistration:!1,setInterval:!1,setTimeout:!1,skipWaiting:!1,StorageBucket:!1,StorageBucketManager:!1,StorageManager:!1,structuredClone:!1,SubtleCrypto:!1,SyncEvent:!1,SyncManager:!1,TaskController:!1,TaskPriorityChangeEvent:!1,TaskSignal:!1,TextDecoder:!1,TextDecoderStream:!1,TextEncoder:!1,TextEncoderStream:!1,TextMetrics:!1,TransformStream:!1,TransformStreamDefaultController:!1,TrustedHTML:!1,TrustedScript:!1,TrustedScriptURL:!1,TrustedTypePolicy:!1,TrustedTypePolicyFactory:!1,trustedTypes:!1,URL:!1,URLPattern:!1,URLSearchParams:!1,UserActivation:!1,WebAssembly:!1,WebGL2RenderingContext:!1,WebGLActiveInfo:!1,WebGLBuffer:!1,WebGLContextEvent:!1,WebGLFramebuffer:!1,WebGLObject:!1,WebGLProgram:!1,WebGLQuery:!1,WebGLRenderbuffer:!1,WebGLRenderingContext:!1,WebGLSampler:!1,WebGLShader:!1,WebGLShaderPrecisionFormat:!1,WebGLSync:!1,WebGLTexture:!1,WebGLTransformFeedback:!1,WebGLUniformLocation:!1,WebGLVertexArrayObject:!1,WebSocket:!1,WebSocketError:!1,WebSocketStream:!1,WebTransport:!1,WebTransportBidirectionalStream:!1,WebTransportDatagramDuplexStream:!1,WebTransportError:!1,WGSLLanguageFeatures:!1,WindowClient:!1,WorkerGlobalScope:!1,WorkerLocation:!1,WorkerNavigator:!1,WritableStream:!1,WritableStreamDefaultController:!1,WritableStreamDefaultWriter:!1},"shared-node-browser":{AbortController:!1,AbortSignal:!1,atob:!1,Blob:!1,BroadcastChannel:!1,btoa:!1,ByteLengthQueuingStrategy:!1,clearInterval:!1,clearTimeout:!1,CloseEvent:!1,CompressionStream:!1,console:!1,CountQueuingStrategy:!1,crypto:!1,Crypto:!1,CryptoKey:!1,CustomEvent:!1,DecompressionStream:!1,DOMException:!1,Event:!1,EventTarget:!1,fetch:!1,File:!1,FormData:!1,Headers:!1,MessageChannel:!1,MessageEvent:!1,MessagePort:!1,navigator:!1,Navigator:!1,performance:!1,Performance:!1,PerformanceEntry:!1,PerformanceMark:!1,PerformanceMeasure:!1,PerformanceObserver:!1,PerformanceObserverEntryList:!1,PerformanceResourceTiming:!1,queueMicrotask:!1,ReadableByteStreamController:!1,ReadableStream:!1,ReadableStreamBYOBReader:!1,ReadableStreamBYOBRequest:!1,ReadableStreamDefaultController:!1,ReadableStreamDefaultReader:!1,Request:!1,Response:!1,setInterval:!1,setTimeout:!1,structuredClone:!1,SubtleCrypto:!1,TextDecoder:!1,TextDecoderStream:!1,TextEncoder:!1,TextEncoderStream:!1,TransformStream:!1,TransformStreamDefaultController:!1,URL:!1,URLSearchParams:!1,WebAssembly:!1,WebSocket:!1,WritableStream:!1,WritableStreamDefaultController:!1,WritableStreamDefaultWriter:!1},shelljs:{cat:!1,cd:!1,chmod:!1,config:!1,cp:!1,dirs:!1,echo:!1,env:!1,error:!1,exec:!1,exit:!1,find:!1,grep:!1,head:!1,ln:!1,ls:!1,mkdir:!1,mv:!1,popd:!1,pushd:!1,pwd:!1,rm:!1,sed:!1,set:!1,ShellString:!1,sort:!1,tail:!1,tempdir:!1,test:!1,touch:!1,uniq:!1,which:!1},vitest:{afterAll:!1,afterEach:!1,assert:!1,assertType:!1,beforeAll:!1,beforeEach:!1,chai:!1,describe:!1,expect:!1,expectTypeOf:!1,it:!1,onTestFailed:!1,onTestFinished:!1,suite:!1,test:!1,vi:!1,vitest:!1},webextensions:{browser:!1,chrome:!1,opr:!1},worker:{AbortController:!1,AbortSignal:!1,addEventListener:!1,ai:!1,atob:!1,AudioData:!1,AudioDecoder:!1,AudioEncoder:!1,BackgroundFetchManager:!1,BackgroundFetchRecord:!1,BackgroundFetchRegistration:!1,BarcodeDetector:!1,Blob:!1,BroadcastChannel:!1,btoa:!1,ByteLengthQueuingStrategy:!1,Cache:!1,caches:!1,CacheStorage:!1,cancelAnimationFrame:!1,CanvasGradient:!1,CanvasPattern:!1,clearInterval:!1,clearTimeout:!1,close:!1,CloseEvent:!1,CompressionStream:!1,console:!1,CountQueuingStrategy:!1,createImageBitmap:!1,CropTarget:!1,crossOriginIsolated:!1,crypto:!1,Crypto:!1,CryptoKey:!1,CSSSkewX:!1,CSSSkewY:!1,CustomEvent:!1,DecompressionStream:!1,DedicatedWorkerGlobalScope:!1,dispatchEvent:!1,DOMException:!1,DOMMatrix:!1,DOMMatrixReadOnly:!1,DOMPoint:!1,DOMPointReadOnly:!1,DOMQuad:!1,DOMRect:!1,DOMRectReadOnly:!1,DOMStringList:!1,EncodedAudioChunk:!1,EncodedVideoChunk:!1,ErrorEvent:!1,Event:!1,EventSource:!1,EventTarget:!1,fetch:!1,File:!1,FileList:!1,FileReader:!1,FileReaderSync:!1,FileSystemDirectoryHandle:!1,FileSystemFileHandle:!1,FileSystemHandle:!1,FileSystemSyncAccessHandle:!1,FileSystemWritableFileStream:!1,FontFace:!1,fonts:!1,FormData:!1,GPU:!1,GPUAdapter:!1,GPUAdapterInfo:!1,GPUBindGroup:!1,GPUBindGroupLayout:!1,GPUBuffer:!1,GPUBufferUsage:!1,GPUCanvasContext:!1,GPUColorWrite:!1,GPUCommandBuffer:!1,GPUCommandEncoder:!1,GPUCompilationInfo:!1,GPUCompilationMessage:!1,GPUComputePassEncoder:!1,GPUComputePipeline:!1,GPUDevice:!1,GPUDeviceLostInfo:!1,GPUError:!1,GPUExternalTexture:!1,GPUInternalError:!1,GPUMapMode:!1,GPUOutOfMemoryError:!1,GPUPipelineError:!1,GPUPipelineLayout:!1,GPUQuerySet:!1,GPUQueue:!1,GPURenderBundle:!1,GPURenderBundleEncoder:!1,GPURenderPassEncoder:!1,GPURenderPipeline:!1,GPUSampler:!1,GPUShaderModule:!1,GPUShaderStage:!1,GPUSupportedFeatures:!1,GPUSupportedLimits:!1,GPUTexture:!1,GPUTextureUsage:!1,GPUTextureView:!1,GPUUncapturedErrorEvent:!1,GPUValidationError:!1,Headers:!1,HID:!1,HIDConnectionEvent:!1,HIDDevice:!1,HIDInputReportEvent:!1,IDBCursor:!1,IDBCursorWithValue:!1,IDBDatabase:!1,IDBFactory:!1,IDBIndex:!1,IDBKeyRange:!1,IDBObjectStore:!1,IDBOpenDBRequest:!1,IDBRequest:!1,IDBTransaction:!1,IDBVersionChangeEvent:!1,IdleDetector:!1,ImageBitmap:!1,ImageBitmapRenderingContext:!1,ImageData:!1,ImageDecoder:!1,ImageTrack:!1,ImageTrackList:!1,importScripts:!1,indexedDB:!1,isSecureContext:!1,location:!1,Lock:!1,LockManager:!1,MediaCapabilities:!1,MediaSource:!1,MediaSourceHandle:!1,MessageChannel:!1,MessageEvent:!1,MessagePort:!1,name:!1,NavigationPreloadManager:!1,navigator:!1,NavigatorUAData:!1,NetworkInformation:!1,Notification:!1,OffscreenCanvas:!1,OffscreenCanvasRenderingContext2D:!1,onerror:!0,onlanguagechange:!0,onmessage:!0,onmessageerror:!0,onrejectionhandled:!0,onunhandledrejection:!0,origin:!1,Path2D:!1,performance:!1,Performance:!1,PerformanceEntry:!1,PerformanceMark:!1,PerformanceMeasure:!1,PerformanceObserver:!1,PerformanceObserverEntryList:!1,PerformanceResourceTiming:!1,PerformanceServerTiming:!1,PeriodicSyncManager:!1,Permissions:!1,PermissionStatus:!1,PERSISTENT:!1,postMessage:!1,PressureObserver:!1,PressureRecord:!1,ProgressEvent:!1,PromiseRejectionEvent:!1,PushManager:!1,PushSubscription:!1,PushSubscriptionOptions:!1,queueMicrotask:!1,ReadableByteStreamController:!1,ReadableStream:!1,ReadableStreamBYOBReader:!1,ReadableStreamBYOBRequest:!1,ReadableStreamDefaultController:!1,ReadableStreamDefaultReader:!1,removeEventListener:!1,reportError:!1,ReportingObserver:!1,Request:!1,requestAnimationFrame:!1,Response:!1,RTCDataChannel:!1,RTCEncodedAudioFrame:!1,RTCEncodedVideoFrame:!1,scheduler:!1,Scheduler:!1,SecurityPolicyViolationEvent:!1,self:!1,Serial:!1,SerialPort:!1,ServiceWorkerRegistration:!1,setInterval:!1,setTimeout:!1,SourceBuffer:!1,SourceBufferList:!1,StorageBucket:!1,StorageBucketManager:!1,StorageManager:!1,structuredClone:!1,SubtleCrypto:!1,SyncManager:!1,TaskController:!1,TaskPriorityChangeEvent:!1,TaskSignal:!1,TEMPORARY:!1,TextDecoder:!1,TextDecoderStream:!1,TextEncoder:!1,TextEncoderStream:!1,TextMetrics:!1,TransformStream:!1,TransformStreamDefaultController:!1,TrustedHTML:!1,TrustedScript:!1,TrustedScriptURL:!1,TrustedTypePolicy:!1,TrustedTypePolicyFactory:!1,trustedTypes:!1,URL:!1,URLPattern:!1,URLSearchParams:!1,USB:!1,USBAlternateInterface:!1,USBConfiguration:!1,USBConnectionEvent:!1,USBDevice:!1,USBEndpoint:!1,USBInterface:!1,USBInTransferResult:!1,USBIsochronousInTransferPacket:!1,USBIsochronousInTransferResult:!1,USBIsochronousOutTransferPacket:!1,USBIsochronousOutTransferResult:!1,USBOutTransferResult:!1,UserActivation:!1,VideoColorSpace:!1,VideoDecoder:!1,VideoEncoder:!1,VideoFrame:!1,WebAssembly:!1,WebGL2RenderingContext:!1,WebGLActiveInfo:!1,WebGLBuffer:!1,WebGLContextEvent:!1,WebGLFramebuffer:!1,WebGLObject:!1,WebGLProgram:!1,WebGLQuery:!1,WebGLRenderbuffer:!1,WebGLRenderingContext:!1,WebGLSampler:!1,WebGLShader:!1,WebGLShaderPrecisionFormat:!1,WebGLSync:!1,WebGLTexture:!1,WebGLTransformFeedback:!1,WebGLUniformLocation:!1,WebGLVertexArrayObject:!1,webkitRequestFileSystem:!1,webkitRequestFileSystemSync:!1,webkitResolveLocalFileSystemSyncURL:!1,webkitResolveLocalFileSystemURL:!1,WebSocket:!1,WebSocketError:!1,WebSocketStream:!1,WebTransport:!1,WebTransportBidirectionalStream:!1,WebTransportDatagramDuplexStream:!1,WebTransportError:!1,WGSLLanguageFeatures:!1,Worker:!1,WorkerGlobalScope:!1,WorkerLocation:!1,WorkerNavigator:!1,WritableStream:!1,WritableStreamDefaultController:!1,WritableStreamDefaultWriter:!1,XMLHttpRequest:!1,XMLHttpRequestEventTarget:!1,XMLHttpRequestUpload:!1},wsh:{ActiveXObject:!1,CollectGarbage:!1,Debug:!1,Enumerator:!1,GetObject:!1,RuntimeObject:!1,ScriptEngine:!1,ScriptEngineBuildVersion:!1,ScriptEngineMajorVersion:!1,ScriptEngineMinorVersion:!1,VBArray:!1,WScript:!1,WSH:!1},yui:{YAHOO:!1,YAHOO_config:!1,YUI:!1,YUI_config:!1}}});var X1=P((d8)=>{Object.defineProperty(d8,"__esModule",{value:!0});d8.clear=H0f;d8.clearPath=s8;d8.clearScope=p8;d8.getCachedPaths=Q0f;d8.getOrCreateCachedPaths=Z0f;d8.scope=d8.path=void 0;var $W=d8.path=new WeakMap,V0f=d8.scope=new WeakMap;function H0f(){s8(),p8()}function s8(){d8.path=$W=new WeakMap}function p8(){d8.scope=V0f=new WeakMap}var iR=Object.freeze({});function Q0f(f,G){var X;return f=null,(X=$W.get(f!=null?f:iR))==null?void 0:X.get(G)}function Z0f(f,G){f=null;let X=$W.get(f!=null?f:iR);if(!X)$W.set(f!=null?f:iR,X=new WeakMap);let W=X.get(G);if(!W)X.set(G,W=new Map);return W}});var tR=P((Y4)=>{Object.defineProperty(Y4,"__esModule",{value:!0});Y4.default=void 0;var S0f=m8(),F0f=ZX(),$0f=i8(),C0f=r8(),J4=Vf(),U4=J4,n8=X1(),q0f=QX(),{NOT_LOCAL_BINDING:o8,assignmentExpression:A0f,callExpression:e8,cloneNode:f4,getBindingIdentifiers:V4,identifier:R1,isArrayExpression:H4,isBinary:O0f,isCallExpression:G4,isClass:j0f,isClassBody:P0f,isClassDeclaration:D0f,isExportAllDeclaration:Q4,isExportDefaultDeclaration:I0f,isExportNamedDeclaration:sR,isFunctionDeclaration:T0f,isIdentifier:W1,isImportDeclaration:pR,isLiteral:N0f,isMemberExpression:L0f,isMethod:b0f,isModuleSpecifier:E0f,isNullLiteral:w0f,isObjectExpression:k0f,isProperty:v0f,isPureish:g0f,isRegExpLiteral:_0f,isSuper:u0f,isTaggedTemplateExpression:h0f,isTemplateLiteral:Z4,isThisExpression:X4,isUnaryExpression:y0f,isVariableDeclaration:x0f,expressionStatement:m0f,matchesPattern:W4,memberExpression:dR,numericLiteral:l0f,toIdentifier:c0f,variableDeclaration:a0f,variableDeclarator:i0f,isRecordExpression:r0f,isTupleExpression:s0f,isObjectProperty:p0f,isTopicReference:R4,isMetaProperty:d0f,isPrivateName:t0f,isExportDeclaration:n0f,buildUndefinedNode:o0f,sequenceExpression:e0f}=J4;function jf(f,G){switch(f==null?void 0:f.type){default:if(pR(f)||n0f(f)){var X;if((Q4(f)||sR(f)||pR(f))&&f.source)jf(f.source,G);else if((sR(f)||pR(f))&&(X=f.specifiers)!=null&&X.length)for(let W of f.specifiers)jf(W,G);else if((I0f(f)||sR(f))&&f.declaration)jf(f.declaration,G)}else if(E0f(f))jf(f.local,G);else if(N0f(f)&&!w0f(f)&&!_0f(f)&&!Z4(f))G.push(f.value);break;case"MemberExpression":case"OptionalMemberExpression":case"JSXMemberExpression":jf(f.object,G),jf(f.property,G);break;case"Identifier":case"JSXIdentifier":G.push(f.name);break;case"CallExpression":case"OptionalCallExpression":case"NewExpression":jf(f.callee,G);break;case"ObjectExpression":case"ObjectPattern":for(let W of f.properties)jf(W,G);break;case"SpreadElement":case"RestElement":jf(f.argument,G);break;case"ObjectProperty":case"ObjectMethod":case"ClassProperty":case"ClassMethod":case"ClassPrivateProperty":case"ClassPrivateMethod":jf(f.key,G);break;case"ThisExpression":G.push("this");break;case"Super":G.push("super");break;case"Import":G.push("import");break;case"DoExpression":G.push("do");break;case"YieldExpression":G.push("yield"),jf(f.argument,G);break;case"AwaitExpression":G.push("await"),jf(f.argument,G);break;case"AssignmentExpression":jf(f.left,G);break;case"VariableDeclarator":jf(f.id,G);break;case"FunctionExpression":case"FunctionDeclaration":case"ClassExpression":case"ClassDeclaration":jf(f.id,G);break;case"PrivateName":jf(f.id,G);break;case"ParenthesizedExpression":jf(f.expression,G);break;case"UnaryExpression":case"UpdateExpression":jf(f.argument,G);break;case"MetaProperty":jf(f.meta,G),jf(f.property,G);break;case"JSXElement":jf(f.openingElement,G);break;case"JSXOpeningElement":jf(f.name,G);break;case"JSXFragment":jf(f.openingFragment,G);break;case"JSXOpeningFragment":G.push("Fragment");break;case"JSXNamespacedName":jf(f.namespace,G),jf(f.name,G);break}}var CW={ForStatement(f){let G=f.get("init");if(G.isVar()){let{scope:X}=f;(X.getFunctionParent()||X.getProgramParent()).registerBinding("var",G)}},Declaration(f){if(f.isBlockScoped())return;if(f.isImportDeclaration())return;if(f.isExportDeclaration())return;(f.scope.getFunctionParent()||f.scope.getProgramParent()).registerDeclaration(f)},ImportDeclaration(f){f.scope.getBlockParent().registerDeclaration(f)},TSImportEqualsDeclaration(f){f.scope.getBlockParent().registerDeclaration(f)},ReferencedIdentifier(f,G){if(U4.isTSQualifiedName(f.parent)&&f.parent.right===f.node)return;if(f.parentPath.isTSImportEqualsDeclaration())return;G.references.push(f)},ForXStatement(f,G){let X=f.get("left");if(X.isPattern()||X.isIdentifier())G.constantViolations.push(f);else if(X.isVar()){let{scope:W}=f;(W.getFunctionParent()||W.getProgramParent()).registerBinding("var",X)}},ExportDeclaration:{exit(f){let{node:G,scope:X}=f;if(Q4(G))return;let W=G.declaration;if(D0f(W)||T0f(W)){let R=W.id;if(!R)return;let J=X.getBinding(R.name);J==null||J.reference(f)}else if(x0f(W))for(let R of W.declarations)for(let J of Object.keys(V4(R))){let U=X.getBinding(J);U==null||U.reference(f)}}},LabeledStatement(f){f.scope.getBlockParent().registerDeclaration(f)},AssignmentExpression(f,G){G.assignments.push(f)},UpdateExpression(f,G){G.constantViolations.push(f)},UnaryExpression(f,G){if(f.node.operator==="delete")G.constantViolations.push(f)},BlockScoped(f){let G=f.scope;if(G.path===f)G=G.parent;if(G.getBlockParent().registerDeclaration(f),f.isClassDeclaration()&&f.node.id){let R=f.node.id.name;f.scope.bindings[R]=f.scope.parent.getBinding(R)}},CatchClause(f){f.scope.registerBinding("let",f)},Function(f){let G=f.get("params");for(let X of G)f.scope.registerBinding("param",X);if(f.isFunctionExpression()&&f.node.id&&!f.node.id[o8])f.scope.registerBinding("local",f.get("id"),f)},ClassExpression(f){if(f.node.id&&!f.node.id[o8])f.scope.registerBinding("local",f.get("id"),f)},TSTypeAnnotation(f){f.skip()}},fVf=0;class WG{constructor(f){this.uid=void 0,this.path=void 0,this.block=void 0,this.inited=void 0,this.labels=void 0,this.bindings=void 0,this.references=void 0,this.globals=void 0,this.uids=void 0,this.data=void 0,this.crawling=void 0;let{node:G}=f,X=n8.scope.get(G);if((X==null?void 0:X.path)===f)return X;n8.scope.set(G,this),this.uid=fVf++,this.block=G,this.path=f,this.labels=new Map,this.inited=!1}get parent(){var f;let G,X=this.path;do{var W;let R=X.key==="key"||X.listKey==="decorators";if(X=X.parentPath,R&&X.isMethod())X=X.parentPath;if((W=X)!=null&&W.isScope())G=X}while(X&&!G);return(f=G)==null?void 0:f.scope}generateDeclaredUidIdentifier(f){let G=this.generateUidIdentifier(f);return this.push({id:G}),f4(G)}generateUidIdentifier(f){return R1(this.generateUid(f))}generateUid(f="temp"){f=c0f(f).replace(/^_+/,"").replace(/\d+$/g,"");let G,X=1;do{if(G=`_${f}`,X>1)G+=X;X++}while(this.hasLabel(G)||this.hasBinding(G)||this.hasGlobal(G)||this.hasReference(G));let W=this.getProgramParent();return W.references[G]=!0,W.uids[G]=!0,G}generateUidBasedOnNode(f,G){let X=[];jf(f,X);let W=X.join("$");return W=W.replace(/^_/,"")||G||"ref",this.generateUid(W.slice(0,20))}generateUidIdentifierBasedOnNode(f,G){return R1(this.generateUidBasedOnNode(f,G))}isStatic(f){if(X4(f)||u0f(f)||R4(f))return!0;if(W1(f)){let G=this.getBinding(f.name);if(G)return G.constant;else return this.hasBinding(f.name)}return!1}maybeGenerateMemoised(f,G){if(this.isStatic(f))return null;else{let X=this.generateUidIdentifierBasedOnNode(f);if(!G)return this.push({id:X}),f4(X);return X}}checkBlockScopedCollisions(f,G,X,W){if(G==="param")return;if(f.kind==="local")return;if(G==="let"||f.kind==="let"||f.kind==="const"||f.kind==="module"||f.kind==="param"&&G==="const")throw this.path.hub.buildError(W,`Duplicate declaration "${X}"`,TypeError)}rename(f,G){let X=this.getBinding(f);if(X)G||(G=this.generateUidIdentifier(f).name),new S0f.default(X,f,G).rename(arguments[2])}dump(){let f="-".repeat(60);console.log(f);let G=this;do{console.log("#",G.block.type);for(let X of Object.keys(G.bindings)){let W=G.bindings[X];console.log(" -",X,{constant:W.constant,references:W.references,violations:W.constantViolations.length,kind:W.kind})}}while(G=G.parent);console.log(f)}hasLabel(f){return!!this.getLabel(f)}getLabel(f){return this.labels.get(f)}registerLabel(f){this.labels.set(f.node.label.name,f)}registerDeclaration(f){if(f.isLabeledStatement())this.registerLabel(f);else if(f.isFunctionDeclaration())this.registerBinding("hoisted",f.get("id"),f);else if(f.isVariableDeclaration()){let G=f.get("declarations"),{kind:X}=f.node;for(let W of G)this.registerBinding(X==="using"||X==="await using"?"const":X,W)}else if(f.isClassDeclaration()){if(f.node.declare)return;this.registerBinding("let",f)}else if(f.isImportDeclaration()){let G=f.node.importKind==="type"||f.node.importKind==="typeof",X=f.get("specifiers");for(let W of X){let R=G||W.isImportSpecifier()&&(W.node.importKind==="type"||W.node.importKind==="typeof");this.registerBinding(R?"unknown":"module",W)}}else if(f.isExportDeclaration()){let G=f.get("declaration");if(G.isClassDeclaration()||G.isFunctionDeclaration()||G.isVariableDeclaration())this.registerDeclaration(G)}else this.registerBinding("unknown",f)}buildUndefinedNode(){return o0f()}registerConstantViolation(f){let G=f.getAssignmentIdentifiers();for(let W of Object.keys(G)){var X;(X=this.getBinding(W))==null||X.reassign(f)}}registerBinding(f,G,X=G){if(!f)throw new ReferenceError("no `kind`");if(G.isVariableDeclaration()){let J=G.get("declarations");for(let U of J)this.registerBinding(f,U);return}let W=this.getProgramParent(),R=G.getOuterBindingIdentifiers(!0);for(let J of Object.keys(R)){W.references[J]=!0;for(let U of R[J]){let V=this.getOwnBinding(J);if(V){if(V.identifier===U)continue;this.checkBlockScopedCollisions(V,f,J,U)}if(V)V.reassign(X);else this.bindings[J]=new $0f.default({identifier:U,scope:this,path:X,kind:f})}}}addGlobal(f){this.globals[f.name]=f}hasUid(f){let G=this;do if(G.uids[f])return!0;while(G=G.parent);return!1}hasGlobal(f){let G=this;do if(G.globals[f])return!0;while(G=G.parent);return!1}hasReference(f){return!!this.getProgramParent().references[f]}isPure(f,G){if(W1(f)){let J=this.getBinding(f.name);if(!J)return!1;if(G)return J.constant;return!0}else if(X4(f)||d0f(f)||R4(f)||t0f(f))return!0;else if(j0f(f)){var X;if(f.superClass&&!this.isPure(f.superClass,G))return!1;if(((X=f.decorators)==null?void 0:X.length)>0)return!1;return this.isPure(f.body,G)}else if(P0f(f)){for(let J of f.body)if(!this.isPure(J,G))return!1;return!0}else if(O0f(f))return this.isPure(f.left,G)&&this.isPure(f.right,G);else if(H4(f)||s0f(f)){for(let J of f.elements)if(J!==null&&!this.isPure(J,G))return!1;return!0}else if(k0f(f)||r0f(f)){for(let J of f.properties)if(!this.isPure(J,G))return!1;return!0}else if(b0f(f)){var W;if(f.computed&&!this.isPure(f.key,G))return!1;if(((W=f.decorators)==null?void 0:W.length)>0)return!1;return!0}else if(v0f(f)){var R;if(f.computed&&!this.isPure(f.key,G))return!1;if(((R=f.decorators)==null?void 0:R.length)>0)return!1;if(p0f(f)||f.static){if(f.value!==null&&!this.isPure(f.value,G))return!1}return!0}else if(y0f(f))return this.isPure(f.argument,G);else if(Z4(f)){for(let J of f.expressions)if(!this.isPure(J,G))return!1;return!0}else if(h0f(f))return W4(f.tag,"String.raw")&&!this.hasBinding("String",{noGlobals:!0})&&this.isPure(f.quasi,G);else if(L0f(f))return!f.computed&&W1(f.object)&&f.object.name==="Symbol"&&W1(f.property)&&f.property.name!=="for"&&!this.hasBinding("Symbol",{noGlobals:!0});else if(G4(f))return W4(f.callee,"Symbol.for")&&!this.hasBinding("Symbol",{noGlobals:!0})&&f.arguments.length===1&&U4.isStringLiteral(f.arguments[0]);else return g0f(f)}setData(f,G){return this.data[f]=G}getData(f){let G=this;do{let X=G.data[f];if(X!=null)return X}while(G=G.parent)}removeData(f){let G=this;do if(G.data[f]!=null)G.data[f]=null;while(G=G.parent)}init(){if(!this.inited)this.inited=!0,this.crawl()}crawl(){let f=this.path;this.references=Object.create(null),this.bindings=Object.create(null),this.globals=Object.create(null),this.uids=Object.create(null),this.data=Object.create(null);let G=this;do{if(G.crawling)return;if(G.path.isProgram())break}while(G=G.parent);let X=G,W={references:[],constantViolations:[],assignments:[]};if(this.crawling=!0,f.type!=="Program"&&q0f.isExplodedVisitor(CW)){for(let J of CW.enter)J.call(W,f,W);let R=CW[f.type];if(R)for(let J of R.enter)J.call(W,f,W)}f.traverse(CW,W),this.crawling=!1;for(let R of W.assignments){let J=R.getAssignmentIdentifiers();for(let U of Object.keys(J)){if(R.scope.getBinding(U))continue;X.addGlobal(J[U])}R.scope.registerConstantViolation(R)}for(let R of W.references){let J=R.scope.getBinding(R.node.name);if(J)J.reference(R);else X.addGlobal(R.node)}for(let R of W.constantViolations)R.scope.registerConstantViolation(R)}push(f){let G=this.path;if(G.isPattern())G=this.getPatternParent().path;else if(!G.isBlockStatement()&&!G.isProgram())G=this.getBlockParent().path;if(G.isSwitchStatement())G=(this.getFunctionParent()||this.getProgramParent()).path;let{init:X,unique:W,kind:R="var",id:J}=f;if(!X&&!W&&(R==="var"||R==="let")&&G.isFunction()&&!G.node.name&&G4(G.parent,{callee:G.node})&&G.parent.arguments.length<=G.node.params.length&&W1(J)){G.pushContainer("params",J),G.scope.registerBinding("param",G.get("params")[G.node.params.length-1]);return}if(G.isLoop()||G.isCatchClause()||G.isFunction())G.ensureBlock(),G=G.get("body");let U=f._blockHoist==null?2:f._blockHoist,V=`declaration:${R}:${U}`,H=!W&&G.getData(V);if(!H){let F=a0f(R,[]);if(F._blockHoist=U,[H]=G.unshiftContainer("body",[F]),!W)G.setData(V,H)}let Q=i0f(J,X),Y=H.node.declarations.push(Q);G.scope.registerBinding(R,H.get("declarations")[Y-1])}getProgramParent(){let f=this;do if(f.path.isProgram())return f;while(f=f.parent);throw new Error("Couldn't find a Program")}getFunctionParent(){let f=this;do if(f.path.isFunctionParent())return f;while(f=f.parent);return null}getBlockParent(){let f=this;do if(f.path.isBlockParent())return f;while(f=f.parent);throw new Error("We couldn't find a BlockStatement, For, Switch, Function, Loop or Program...")}getPatternParent(){let f=this;do if(!f.path.isPattern())return f.getBlockParent();while(f=f.parent.parent);throw new Error("We couldn't find a BlockStatement, For, Switch, Function, Loop or Program...")}getAllBindings(){let f=Object.create(null),G=this;do{for(let X of Object.keys(G.bindings))if(X in f===!1)f[X]=G.bindings[X];G=G.parent}while(G);return f}bindingIdentifierEquals(f,G){return this.getBindingIdentifier(f)===G}getBinding(f){let G=this,X;do{let R=G.getOwnBinding(f);if(R){var W;if((W=X)!=null&&W.isPattern()&&R.kind!=="param"&&R.kind!=="local");else return R}else if(!R&&f==="arguments"&&G.path.isFunction()&&!G.path.isArrowFunctionExpression())break;X=G.path}while(G=G.parent)}getOwnBinding(f){return this.bindings[f]}getBindingIdentifier(f){var G;return(G=this.getBinding(f))==null?void 0:G.identifier}getOwnBindingIdentifier(f){let G=this.bindings[f];return G==null?void 0:G.identifier}hasOwnBinding(f){return!!this.getOwnBinding(f)}hasBinding(f,G){if(!f)return!1;let X=this;do if(X.hasOwnBinding(f))return!0;while(X=X.parent);let W,R;if(typeof G==="object")W=G.noGlobals,R=G.noUids;else if(typeof G==="boolean")W=G;if(!R&&this.hasUid(f))return!0;if(!W&&WG.globals.includes(f))return!0;if(!W&&WG.contextVariables.includes(f))return!0;return!1}parentHasBinding(f,G){var X;return(X=this.parent)==null?void 0:X.hasBinding(f,G)}moveBindingTo(f,G){let X=this.getBinding(f);if(X)X.scope.removeOwnBinding(f),X.scope=G,G.bindings[f]=X}removeOwnBinding(f){delete this.bindings[f]}removeBinding(f){var G;(G=this.getBinding(f))==null||G.scope.removeOwnBinding(f);let X=this;do if(X.uids[f])X.uids[f]=!1;while(X=X.parent)}hoistVariables(f=(G)=>this.push({id:G})){this.crawl();let G=new Set;for(let X of Object.keys(this.bindings)){let W=this.bindings[X];if(!W)continue;let{path:R}=W;if(!R.isVariableDeclarator())continue;let{parent:J,parentPath:U}=R;if(J.kind!=="var"||G.has(J))continue;G.add(R.parent);let V,H=[];for(let Q of J.declarations){if(V!=null||(V=Q.id),Q.init)H.push(A0f("=",Q.id,Q.init));let Y=Object.keys(V4(Q,!1,!0,!0));for(let F of Y)f(R1(F),Q.init!=null)}if(U.parentPath.isFor({left:J}))U.replaceWith(V);else if(H.length===0)U.remove();else{let Q=H.length===1?H[0]:e0f(H);if(U.parentPath.isForStatement({init:J}))U.replaceWith(Q);else U.replaceWith(m0f(Q))}}}}Y4.default=WG;WG.globals=Object.keys(C0f.builtin);WG.contextVariables=["arguments","undefined","Infinity","NaN"];WG.prototype._renameFromMap=function f(G,X,W,R){if(G[X])G[W]=R,G[X]=null},WG.prototype.traverse=function(f,G,X){F0f.default(f,G,this,X,this.path)},WG.prototype._generateUid=function f(G,X){let W=G;if(X>1)W+=X;return`_${W}`},WG.prototype.toArray=function f(G,X,W){if(W1(G)){let U=this.getBinding(G.name);if(U!=null&&U.constant&&U.path.isGenericType("Array"))return G}if(H4(G))return G;if(W1(G,{name:"arguments"}))return e8(dR(dR(dR(R1("Array"),R1("prototype")),R1("slice")),R1("call")),[G]);let R,J=[G];if(X===!0)R="toConsumableArray";else if(typeof X==="number")J.push(l0f(X)),R="slicedToArray";else R="toArray";if(W)J.unshift(this.path.hub.addHelper(R)),R="maybeArrayLike";return e8(this.path.hub.addHelper(R),J)},WG.prototype.getAllBindingsOfKind=function f(...G){let X=Object.create(null);for(let W of G){let R=this;do{for(let J of Object.keys(R.bindings)){let U=R.bindings[J];if(U.kind===W)X[J]=U}R=R.parent}while(R)}return X},Object.defineProperties(WG.prototype,{parentBlock:{configurable:!0,enumerable:!0,get(){return this.path.parent}},hub:{configurable:!0,enumerable:!0,get(){return this.path.hub}}})});var M4=P((B4)=>{Object.defineProperty(B4,"__esModule",{value:!0});B4.find=RVf;B4.findParent=WVf;B4.getAncestry=QVf;B4.getDeepestCommonAncestorFrom=HVf;B4.getEarliestCommonAncestorFrom=VVf;B4.getFunctionParent=JVf;B4.getStatementParent=UVf;B4.inType=zVf;B4.isAncestor=ZVf;B4.isDescendant=YVf;var GVf=Vf(),{VISITOR_KEYS:XVf}=GVf;function WVf(f){let G=this;while(G=G.parentPath)if(f(G))return G;return null}function RVf(f){let G=this;do if(f(G))return G;while(G=G.parentPath);return null}function JVf(){return this.findParent((f)=>f.isFunction())}function UVf(){let f=this;do if(!f.parentPath||Array.isArray(f.container)&&f.isStatement())break;else f=f.parentPath;while(f);if(f&&(f.isProgram()||f.isFile()))throw new Error("File/Program node, we can't possibly find a statement parent to this");return f}function VVf(f){return this.getDeepestCommonAncestorFrom(f,function(G,X,W){let R,J=XVf[G.type];for(let U of W){let V=U[X+1];if(!R){R=V;continue}if(V.listKey&&R.listKey===V.listKey){if(V.key<R.key){R=V;continue}}let H=J.indexOf(R.parentKey),Q=J.indexOf(V.parentKey);if(H>Q)R=V}return R})}function HVf(f,G){if(!f.length)return this;if(f.length===1)return f[0];let X=1/0,W,R,J=f.map((V)=>{let H=[];do H.unshift(V);while((V=V.parentPath)&&V!==this);if(H.length<X)X=H.length;return H}),U=J[0];f:for(let V=0;V<X;V++){let H=U[V];for(let Q of J)if(Q[V]!==H)break f;W=V,R=H}if(R)if(G)return G(R,W,J);else return R;else throw new Error("Couldn't find intersection")}function QVf(){let f=this,G=[];do G.push(f);while(f=f.parentPath);return G}function ZVf(f){return f.isDescendant(this)}function YVf(f){return!!this.findParent((G)=>G===f)}function zVf(...f){let G=this;while(G){for(let X of f)if(G.node.type===X)return!0;G=G.parentPath}return!1}});var nR=P((F4)=>{Object.defineProperty(F4,"__esModule",{value:!0});F4.createUnionType=TVf;var jVf=Vf(),{createFlowUnionType:K4,createTSUnionType:S4,createUnionTypeAnnotation:PVf,isFlowType:DVf,isTSType:IVf}=jVf;function TVf(f){if(f.every((G)=>DVf(G))){if(K4)return K4(f);return PVf(f)}else if(f.every((G)=>IVf(G))){if(S4)return S4(f)}}});var j4=P((O4)=>{Object.defineProperty(O4,"__esModule",{value:!0});O4.default=kVf;var LVf=Vf(),C4=nR(),{BOOLEAN_NUMBER_BINARY_OPERATORS:bVf,createTypeAnnotationBasedOnTypeof:EVf,numberTypeAnnotation:q4,voidTypeAnnotation:wVf}=LVf;function kVf(f){if(!this.isReferenced())return;let G=this.scope.getBinding(f.name);if(G)if(G.identifier.typeAnnotation)return G.identifier.typeAnnotation;else return vVf(G,this,f.name);if(f.name==="undefined")return wVf();else if(f.name==="NaN"||f.name==="Infinity")return q4();else if(f.name==="arguments");}function vVf(f,G,X){let W=[],R=[],J=$4(f,G,R),U=A4(f,G,X);if(U){let V=$4(f,U.ifStatement);J=J.filter((H)=>!V.includes(H)),W.push(U.typeAnnotation)}if(J.length){J.push(...R);for(let V of J)W.push(V.getTypeAnnotation())}if(!W.length)return;return C4.createUnionType(W)}function $4(f,G,X){let W=f.constantViolations.slice();return W.unshift(f.path),W.filter((R)=>{R=R.resolve();let J=R._guessExecutionStatusRelativeTo(G);if(X&&J==="unknown")X.push(R);return J==="before"})}function gVf(f,G){let X=G.node.operator,W=G.get("right").resolve(),R=G.get("left").resolve(),J;if(R.isIdentifier({name:f}))J=W;else if(W.isIdentifier({name:f}))J=R;if(J){if(X==="===")return J.getTypeAnnotation();if(bVf.includes(X))return q4();return}if(X!=="==="&&X!=="==")return;let U,V;if(R.isUnaryExpression({operator:"typeof"}))U=R,V=W;else if(W.isUnaryExpression({operator:"typeof"}))U=W,V=R;if(!U)return;if(!U.get("argument").isIdentifier({name:f}))return;if(V=V.resolve(),!V.isLiteral())return;let H=V.node.value;if(typeof H!=="string")return;return EVf(H)}function _Vf(f,G,X){let W;while(W=G.parentPath){if(W.isIfStatement()||W.isConditionalExpression()){if(G.key==="test")return;return W}if(W.isFunction()){if(W.parentPath.scope.getBinding(X)!==f)return}G=W}}function A4(f,G,X){let W=_Vf(f,G,X);if(!W)return;let J=[W.get("test")],U=[];for(let V=0;V<J.length;V++){let H=J[V];if(H.isLogicalExpression()){if(H.node.operator==="&&")J.push(H.get("left")),J.push(H.get("right"))}else if(H.isBinaryExpression()){let Q=gVf(X,H);if(Q)U.push(Q)}}if(U.length)return{typeAnnotation:C4.createUnionType(U),ifStatement:W};return A4(f,W,X)}});var E4=P((fJ)=>{Object.defineProperty(fJ,"__esModule",{value:!0});fJ.ArrayExpression=N4;fJ.AssignmentExpression=UHf;fJ.BinaryExpression=GHf;fJ.BooleanLiteral=ZHf;fJ.CallExpression=CHf;fJ.ConditionalExpression=WHf;fJ.ClassDeclaration=fJ.ClassExpression=fJ.FunctionDeclaration=fJ.ArrowFunctionExpression=fJ.FunctionExpression=MHf;Object.defineProperty(fJ,"Identifier",{enumerable:!0,get:function(){return yVf.default}});fJ.LogicalExpression=XHf;fJ.NewExpression=oVf;fJ.NullLiteral=YHf;fJ.NumericLiteral=QHf;fJ.ObjectExpression=BHf;fJ.ParenthesizedExpression=JHf;fJ.RegExpLiteral=zHf;fJ.RestElement=L4;fJ.SequenceExpression=RHf;fJ.StringLiteral=HHf;fJ.TSAsExpression=T4;fJ.TSNonNullExpression=nVf;fJ.TaggedTemplateExpression=qHf;fJ.TemplateLiteral=eVf;fJ.TypeCastExpression=I4;fJ.UnaryExpression=fHf;fJ.UpdateExpression=VHf;fJ.VariableDeclarator=tVf;var hVf=Vf(),yVf=j4(),D4=nR(),{BOOLEAN_BINARY_OPERATORS:xVf,BOOLEAN_UNARY_OPERATORS:mVf,NUMBER_BINARY_OPERATORS:lVf,NUMBER_UNARY_OPERATORS:cVf,STRING_UNARY_OPERATORS:aVf,anyTypeAnnotation:P4,arrayTypeAnnotation:oR,booleanTypeAnnotation:eR,buildMatchMemberExpression:qW,genericTypeAnnotation:mG,identifier:J1,nullLiteralTypeAnnotation:iVf,numberTypeAnnotation:D1,stringTypeAnnotation:U1,tupleTypeAnnotation:rVf,unionTypeAnnotation:sVf,voidTypeAnnotation:pVf,isIdentifier:dVf}=hVf;function tVf(){if(!this.get("id").isIdentifier())return;return this.get("init").getTypeAnnotation()}function I4(f){return f.typeAnnotation}I4.validParent=!0;function T4(f){return f.typeAnnotation}T4.validParent=!0;function nVf(){return this.get("expression").getTypeAnnotation()}function oVf(f){if(f.callee.type==="Identifier")return mG(f.callee)}function eVf(){return U1()}function fHf(f){let G=f.operator;if(G==="void")return pVf();else if(cVf.includes(G))return D1();else if(aVf.includes(G))return U1();else if(mVf.includes(G))return eR()}function GHf(f){let G=f.operator;if(lVf.includes(G))return D1();else if(xVf.includes(G))return eR();else if(G==="+"){let X=this.get("right"),W=this.get("left");if(W.isBaseType("number")&&X.isBaseType("number"))return D1();else if(W.isBaseType("string")||X.isBaseType("string"))return U1();return sVf([U1(),D1()])}}function XHf(){let f=[this.get("left").getTypeAnnotation(),this.get("right").getTypeAnnotation()];return D4.createUnionType(f)}function WHf(){let f=[this.get("consequent").getTypeAnnotation(),this.get("alternate").getTypeAnnotation()];return D4.createUnionType(f)}function RHf(){return this.get("expressions").pop().getTypeAnnotation()}function JHf(){return this.get("expression").getTypeAnnotation()}function UHf(){return this.get("right").getTypeAnnotation()}function VHf(f){let G=f.operator;if(G==="++"||G==="--")return D1()}function HHf(){return U1()}function QHf(){return D1()}function ZHf(){return eR()}function YHf(){return iVf()}function zHf(){return mG(J1("RegExp"))}function BHf(){return mG(J1("Object"))}function N4(){return mG(J1("Array"))}function L4(){return N4()}L4.validParent=!0;function MHf(){return mG(J1("Function"))}var KHf=qW("Array.from"),SHf=qW("Object.keys"),FHf=qW("Object.values"),$Hf=qW("Object.entries");function CHf(){let{callee:f}=this.node;if(SHf(f))return oR(U1());else if(KHf(f)||FHf(f)||dVf(f,{name:"Array"}))return oR(P4());else if($Hf(f))return oR(rVf([U1(),P4()]));return b4(this.get("callee"))}function qHf(){return b4(this.get("tag"))}function b4(f){if(f=f.resolve(),f.isFunction()){let{node:G}=f;if(G.async)if(G.generator)return mG(J1("AsyncIterator"));else return mG(J1("Promise"));else if(G.generator)return mG(J1("Iterator"));else if(f.node.returnType)return f.node.returnType}}});var u4=P((_4)=>{Object.defineProperty(_4,"__esModule",{value:!0});_4._getTypeAnnotation=g4;_4.baseTypeStrictlyMatches=B9f;_4.couldBeBaseType=z9f;_4.getTypeAnnotation=Z9f;_4.isBaseType=Y9f;_4.isGenericType=M9f;var w4=E4(),rHf=Vf(),{anyTypeAnnotation:v4,isAnyTypeAnnotation:AW,isArrayTypeAnnotation:sHf,isBooleanTypeAnnotation:pHf,isEmptyTypeAnnotation:dHf,isFlowBaseAnnotation:tHf,isGenericTypeAnnotation:nHf,isIdentifier:k4,isMixedTypeAnnotation:oHf,isNumberTypeAnnotation:eHf,isStringTypeAnnotation:f9f,isTSArrayType:G9f,isTSTypeAnnotation:X9f,isTSTypeReference:W9f,isTupleTypeAnnotation:R9f,isTypeAnnotation:J9f,isUnionTypeAnnotation:U9f,isVoidTypeAnnotation:V9f,stringTypeAnnotation:H9f,voidTypeAnnotation:Q9f}=rHf;function Z9f(){let f=this.getData("typeAnnotation");if(f!=null)return f;if(f=g4.call(this)||v4(),J9f(f)||X9f(f))f=f.typeAnnotation;return this.setData("typeAnnotation",f),f}var GJ=new WeakSet;function g4(){let f=this.node;if(!f)if(this.key==="init"&&this.parentPath.isVariableDeclarator()){let X=this.parentPath.parentPath,W=X.parentPath;if(X.key==="left"&&W.isForInStatement())return H9f();if(X.key==="left"&&W.isForOfStatement())return v4();return Q9f()}else return;if(f.typeAnnotation)return f.typeAnnotation;if(GJ.has(f))return;GJ.add(f);try{var G;let X=w4[f.type];if(X)return X.call(this,f);if(X=w4[this.parentPath.type],(G=X)!=null&&G.validParent)return this.parentPath.getTypeAnnotation()}finally{GJ.delete(f)}}function Y9f(f,G){return XJ(f,this.getTypeAnnotation(),G)}function XJ(f,G,X){if(f==="string")return f9f(G);else if(f==="number")return eHf(G);else if(f==="boolean")return pHf(G);else if(f==="any")return AW(G);else if(f==="mixed")return oHf(G);else if(f==="empty")return dHf(G);else if(f==="void")return V9f(G);else if(X)return!1;else throw new Error(`Unknown base type ${f}`)}function z9f(f){let G=this.getTypeAnnotation();if(AW(G))return!0;if(U9f(G)){for(let X of G.types)if(AW(X)||XJ(f,X,!0))return!0;return!1}else return XJ(f,G,!0)}function B9f(f){let G=this.getTypeAnnotation(),X=f.getTypeAnnotation();if(!AW(G)&&tHf(G))return X.type===G.type;return!1}function M9f(f){let G=this.getTypeAnnotation();if(f==="Array"){if(G9f(G)||sHf(G)||R9f(G))return!0}return nHf(G)&&k4(G.id,{name:f})||W9f(G)&&k4(G.typeName,{name:f})}});var x4=P((lSf,WJ)=>{var jW=process||{},h4=jW.argv||[],OW=jW.env||{},A9f=!(!!OW.NO_COLOR||h4.includes("--no-color"))&&(!!OW.FORCE_COLOR||h4.includes("--color")||jW.platform==="win32"||(jW.stdout||{}).isTTY&&OW.TERM!=="dumb"||!!OW.CI),O9f=(f,G,X=f)=>(W)=>{let R=""+W,J=R.indexOf(G,f.length);return~J?f+j9f(R,G,X,J)+G:f+R+G},j9f=(f,G,X,W)=>{let R="",J=0;do R+=f.substring(J,W)+X,J=W+G.length,W=f.indexOf(G,J);while(~W);return R+f.substring(J)},y4=(f=A9f)=>{let G=f?O9f:()=>String;return{isColorSupported:f,reset:G("\x1B[0m","\x1B[0m"),bold:G("\x1B[1m","\x1B[22m","\x1B[22m\x1B[1m"),dim:G("\x1B[2m","\x1B[22m","\x1B[22m\x1B[2m"),italic:G("\x1B[3m","\x1B[23m"),underline:G("\x1B[4m","\x1B[24m"),inverse:G("\x1B[7m","\x1B[27m"),hidden:G("\x1B[8m","\x1B[28m"),strikethrough:G("\x1B[9m","\x1B[29m"),black:G("\x1B[30m","\x1B[39m"),red:G("\x1B[31m","\x1B[39m"),green:G("\x1B[32m","\x1B[39m"),yellow:G("\x1B[33m","\x1B[39m"),blue:G("\x1B[34m","\x1B[39m"),magenta:G("\x1B[35m","\x1B[39m"),cyan:G("\x1B[36m","\x1B[39m"),white:G("\x1B[37m","\x1B[39m"),gray:G("\x1B[90m","\x1B[39m"),bgBlack:G("\x1B[40m","\x1B[49m"),bgRed:G("\x1B[41m","\x1B[49m"),bgGreen:G("\x1B[42m","\x1B[49m"),bgYellow:G("\x1B[43m","\x1B[49m"),bgBlue:G("\x1B[44m","\x1B[49m"),bgMagenta:G("\x1B[45m","\x1B[49m"),bgCyan:G("\x1B[46m","\x1B[49m"),bgWhite:G("\x1B[47m","\x1B[49m"),blackBright:G("\x1B[90m","\x1B[39m"),redBright:G("\x1B[91m","\x1B[39m"),greenBright:G("\x1B[92m","\x1B[39m"),yellowBright:G("\x1B[93m","\x1B[39m"),blueBright:G("\x1B[94m","\x1B[39m"),magentaBright:G("\x1B[95m","\x1B[39m"),cyanBright:G("\x1B[96m","\x1B[39m"),whiteBright:G("\x1B[97m","\x1B[39m"),bgBlackBright:G("\x1B[100m","\x1B[49m"),bgRedBright:G("\x1B[101m","\x1B[49m"),bgGreenBright:G("\x1B[102m","\x1B[49m"),bgYellowBright:G("\x1B[103m","\x1B[49m"),bgBlueBright:G("\x1B[104m","\x1B[49m"),bgMagentaBright:G("\x1B[105m","\x1B[49m"),bgCyanBright:G("\x1B[106m","\x1B[49m"),bgWhiteBright:G("\x1B[107m","\x1B[49m")}};WJ.exports=y4();WJ.exports.createColors=y4});var l4=P((m4)=>{Object.defineProperty(m4,"__esModule",{value:!0});m4.default=/((['"])(?:(?!\2|\\).|\\(?:\r\n|[\s\S]))*(\2)?|`(?:[^`\\$]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{[^}]*\}?)*\}?)*(`)?)|(\/\/.*)|(\/\*(?:[^*]|\*(?!\/))*(\*\/)?)|(\/(?!\*)(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\]\\]).|\\.)+\/(?:(?!\s*(?:\b|[\u0080-\uFFFF$\\'"~({]|[+\-!](?!=)|\.?\d))|[gmiyus]{1,6}\b(?![\u0080-\uFFFF$\\]|\s*(?:[+\-*%&|^<>!=?({]|\/(?![\/*])))))|(0[xX][\da-fA-F]+|0[oO][0-7]+|0[bB][01]+|(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?)|((?!\d)(?:(?!\s)[$\w\u0080-\uFFFF]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+)|(--|\+\+|&&|\|\||=>|\.{3}|(?:[+\-\/%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2})=?|[?~.,:;[\](){}])|(\s+)|(^$|[\s\S])/g;m4.matchToToken=function(f){var G={type:"invalid",value:f[0],closed:void 0};if(f[1])G.type="string",G.closed=!!(f[3]||f[4]);else if(f[5])G.type="comment";else if(f[6])G.type="comment",G.closed=!!f[7];else if(f[8])G.type="regex";else if(f[9])G.type="number";else if(f[10])G.type="name";else if(f[11])G.type="punctuator";else if(f[12])G.type="whitespace";return G}});var JJ=P((o4)=>{Object.defineProperty(o4,"__esModule",{value:!0});var RJ=x4(),c4=l4(),a4=x1();function I9f(){return typeof process==="object"&&(process.env.FORCE_COLOR==="0"||process.env.FORCE_COLOR==="false")?!1:RJ.isColorSupported}var PW=(f,G)=>(X)=>f(G(X));function s4(f){return{keyword:f.cyan,capitalized:f.yellow,jsxIdentifier:f.yellow,punctuator:f.yellow,number:f.magenta,string:f.green,regex:f.magenta,comment:f.gray,invalid:PW(PW(f.white,f.bgRed),f.bold),gutter:f.gray,marker:PW(f.red,f.bold),message:PW(f.red,f.bold),reset:f.reset}}var T9f=s4(RJ.createColors(!0)),N9f=s4(RJ.createColors(!1));function p4(f){return f?T9f:N9f}var L9f=new Set(["as","async","from","get","of","set"]),b9f=/\r\n|[\n\r\u2028\u2029]/,E9f=/^[()[\]{}]$/,d4;{let f=/^[a-z][\w-]*$/i,G=function(X,W,R){if(X.type==="name"){if(a4.isKeyword(X.value)||a4.isStrictReservedWord(X.value,!0)||L9f.has(X.value))return"keyword";if(f.test(X.value)&&(R[W-1]==="<"||R.slice(W-2,W)==="</"))return"jsxIdentifier";if(X.value[0]!==X.value[0].toLowerCase())return"capitalized"}if(X.type==="punctuator"&&E9f.test(X.value))return"bracket";if(X.type==="invalid"&&(X.value==="@"||X.value==="#"))return"punctuator";return X.type};d4=function*(X){let W;while(W=c4.default.exec(X)){let R=c4.matchToToken(W);yield{type:G(R,W.index,X),value:R.value}}}}function t4(f){if(f==="")return"";let G=p4(!0),X="";for(let{type:W,value:R}of d4(f))if(W in G)X+=R.split(b9f).map((J)=>G[W](J)).join(`
|
|
28
|
-
`);else
|
|
29
|
-
`,
|
|
30
|
-
`);if(
|
|
31
|
-
${q}`;if(W)return R.reset(q);else return q}function k9f(f,G,X,W={}){if(!i4){i4=!0;let J="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";if(process.emitWarning)process.emitWarning(J,"DeprecationWarning");else{let U=new Error(J);U.name="DeprecationWarning",console.warn(new Error(J))}}return X=Math.max(X,0),n4(f,{start:{column:X,line:G}},W)}o4.codeFrameColumns=n4;o4.default=k9f;o4.highlight=t4});var GQ=P((e4)=>{Object.defineProperty(e4,"__esModule",{value:!0});e4.hooks=void 0;var iSf=e4.hooks=[function(f,G){if(f.key==="test"&&(G.isWhile()||G.isSwitchCase())||f.key==="declaration"&&G.isExportDeclaration()||f.key==="body"&&G.isLabeledStatement()||f.listKey==="declarations"&&G.isVariableDeclaration()&&G.node.declarations.length===1||f.key==="expression"&&G.isExpressionStatement())return G.remove(),!0},function(f,G){if(G.isSequenceExpression()&&G.node.expressions.length===1)return G.replaceWith(G.node.expressions[0]),!0},function(f,G){if(G.isBinary()){if(f.key==="left")G.replaceWith(G.node.right);else G.replaceWith(G.node.left);return!0}},function(f,G){if(G.isIfStatement()&&f.key==="consequent"||f.key==="body"&&(G.isLoop()||G.isArrowFunctionExpression()))return f.replaceWith({type:"BlockStatement",body:[]}),!0}]});var DW=P((VQ)=>{Object.defineProperty(VQ,"__esModule",{value:!0});VQ._assertUnremoved=UQ;VQ._callRemovalHooks=RQ;VQ._markRemoved=UJ;VQ._remove=JQ;VQ._removeFromScope=WQ;VQ.remove=a9f;var u9f=GQ(),h9f=X1(),y9f=VJ(),XQ=lG(),x9f=Vf(),m9f=IW(),l9f=KG(),{getBindingIdentifiers:c9f}=x9f;function a9f(){var f;if(UQ.call(this),l9f.resync.call(this),RQ.call(this)){UJ.call(this);return}if(!((f=this.opts)!=null&&f.noScope))WQ.call(this);this.shareCommentsWithSiblings(),JQ.call(this),UJ.call(this)}function WQ(){let f=c9f(this.node,!1,!1,!0);Object.keys(f).forEach((G)=>this.scope.removeBinding(G))}function RQ(){if(this.parentPath){for(let f of u9f.hooks)if(f(this,this.parentPath))return!0}}function JQ(){if(Array.isArray(this.container))this.container.splice(this.key,1),m9f.updateSiblingKeys.call(this,this.key,-1);else y9f._replaceWith.call(this,null)}function UJ(){if(this._traverseFlags|=XQ.SHOULD_SKIP|XQ.REMOVED,this.parent)h9f.getCachedPaths(this.hub,this.parent).delete(this.node);this.node=null}function UQ(){if(this.removed)throw this.buildCodeFrameError("NodePath has been removed so is read-only.")}});var zQ=P((ZQ)=>{Object.defineProperty(ZQ,"__esModule",{value:!0});ZQ.default=void 0;var HQ=Vf(),n9f=HQ,{react:o9f}=HQ,{cloneNode:e9f,jsxExpressionContainer:f8f,variableDeclaration:G8f,variableDeclarator:X8f}=n9f,W8f={ReferencedIdentifier(f,G){if(f.isJSXIdentifier()&&o9f.isCompatTag(f.node.name)&&!f.parentPath.isJSXMemberExpression())return;if(f.node.name==="this"){let W=f.scope;do if(W.path.isFunction()&&!W.path.isArrowFunctionExpression())break;while(W=W.parent);if(W)G.breakOnScopePaths.push(W.path)}let X=f.scope.getBinding(f.node.name);if(!X)return;for(let W of X.constantViolations)if(W.scope!==X.path.scope){G.mutableBinding=!0,f.stop();return}if(X!==G.scope.getBinding(f.node.name))return;G.bindings[f.node.name]=X}};class QQ{constructor(f,G){this.breakOnScopePaths=void 0,this.bindings=void 0,this.mutableBinding=void 0,this.scopes=void 0,this.scope=void 0,this.path=void 0,this.attachAfter=void 0,this.breakOnScopePaths=[],this.bindings={},this.mutableBinding=!1,this.scopes=[],this.scope=G,this.path=f,this.attachAfter=!1}isCompatibleScope(f){for(let G of Object.keys(this.bindings)){let X=this.bindings[G];if(!f.bindingIdentifierEquals(G,X.identifier))return!1}return!0}getCompatibleScopes(){let f=this.path.scope;do{if(this.isCompatibleScope(f))this.scopes.push(f);else break;if(this.breakOnScopePaths.includes(f.path))break}while(f=f.parent)}getAttachmentPath(){let f=this._getAttachmentPath();if(!f)return;let G=f.scope;if(G.path===f)G=f.scope.parent;if(G.path.isProgram()||G.path.isFunction())for(let X of Object.keys(this.bindings)){if(!G.hasOwnBinding(X))continue;let W=this.bindings[X];if(W.kind==="param"||W.path.parentKey==="params")continue;if(this.getAttachmentParentForPath(W.path).key>=f.key){this.attachAfter=!0,f=W.path;for(let J of W.constantViolations)if(this.getAttachmentParentForPath(J).key>f.key)f=J}}return f}_getAttachmentPath(){let G=this.scopes.pop();if(!G)return;if(G.path.isFunction())if(this.hasOwnParamBindings(G)){if(this.scope===G)return;let X=G.path.get("body").get("body");for(let W=0;W<X.length;W++){if(X[W].node._blockHoist)continue;return X[W]}}else return this.getNextScopeAttachmentParent();else if(G.path.isProgram())return this.getNextScopeAttachmentParent()}getNextScopeAttachmentParent(){let f=this.scopes.pop();if(f)return this.getAttachmentParentForPath(f.path)}getAttachmentParentForPath(f){do if(!f.parentPath||Array.isArray(f.container)&&f.isStatement())return f;while(f=f.parentPath)}hasOwnParamBindings(f){for(let G of Object.keys(this.bindings)){if(!f.hasOwnBinding(G))continue;let X=this.bindings[G];if(X.kind==="param"&&X.constant)return!0}return!1}run(){if(this.path.traverse(W8f,this),this.mutableBinding)return;this.getCompatibleScopes();let f=this.getAttachmentPath();if(!f)return;if(f.getFunctionParent()===this.path.getFunctionParent())return;let G=f.scope.generateUidIdentifier("ref"),X=X8f(G,this.path.node),W=this.attachAfter?"insertAfter":"insertBefore",[R]=f[W]([f.isVariableDeclarator()?X:G8f("var",[X])]),J=this.path.parentPath;if(J.isJSXElement()&&this.path.container===J.node.children)G=f8f(G);return this.path.replaceWith(e9f(G)),f.isVariableDeclarator()?R.get("init"):R.get("declarations.0.init")}}ZQ.default=QQ});var IW=P((CQ)=>{Object.defineProperty(CQ,"__esModule",{value:!0});CQ._containerInsert=zJ;CQ._containerInsertAfter=KQ;CQ._containerInsertBefore=BJ;CQ._verifyNodeList=YX;CQ.insertAfter=q8f;CQ.insertBefore=$8f;CQ.pushContainer=O8f;CQ.unshiftContainer=A8f;CQ.updateSiblingKeys=$Q;var R8f=X1(),YJ=lG(),HJ=KG(),TW=DW(),J8f=Vf(),U8f=zQ(),{arrowFunctionExpression:V8f,assertExpression:H8f,assignmentExpression:Q8f,blockStatement:BQ,callExpression:Z8f,cloneNode:QJ,expressionStatement:ZJ,isAssignmentExpression:Y8f,isCallExpression:z8f,isExportNamedDeclaration:MQ,isExpression:B8f,isIdentifier:M8f,isSequenceExpression:K8f,isSuper:S8f,thisExpression:F8f}=J8f;function $8f(f){TW._assertUnremoved.call(this);let G=YX.call(this,f),{parentPath:X,parent:W}=this;if(X.isExpressionStatement()||X.isLabeledStatement()||MQ(W)||X.isExportDefaultDeclaration()&&this.isDeclaration())return X.insertBefore(G);else if(this.isNodeType("Expression")&&!this.isJSXElement()||X.isForStatement()&&this.key==="init"){if(this.node)G.push(this.node);return this.replaceExpressionWithStatements(G)}else if(Array.isArray(this.container))return BJ.call(this,G);else if(this.isStatementOrBlock()){let R=this.node,J=R&&(!this.isExpressionStatement()||R.expression!=null);return this.replaceWith(BQ(J?[R]:[])),this.unshiftContainer("body",G)}else throw new Error("We don't know what to do with this node type. We were previously a Statement but we can't fit in here?")}function zJ(f,G){$Q.call(this,f,G.length);let X=[];this.container.splice(f,0,...G);for(let J=0;J<G.length;J++){var W;let U=f+J,V=this.getSibling(U);if(X.push(V),(W=this.context)!=null&&W.queue)HJ.pushContext.call(V,this.context)}let R=HJ._getQueueContexts.call(this);for(let J of X){HJ.setScope.call(J),J.debug("Inserted.");for(let U of R)U.maybeQueue(J,!0)}return X}function BJ(f){return zJ.call(this,this.key,f)}function KQ(f){return zJ.call(this,this.key+1,f)}var SQ=(f)=>f[f.length-1];function FQ(f){return K8f(f.parent)&&(SQ(f.parent.expressions)!==f.node||FQ(f.parentPath))}function C8f(f,G){if(!Y8f(f)||!M8f(f.left))return!1;let X=G.getBlockParent();return X.hasOwnBinding(f.left.name)&&X.getOwnBinding(f.left.name).constantViolations.length<=1}function q8f(f){if(TW._assertUnremoved.call(this),this.isSequenceExpression())return SQ(this.get("expressions")).insertAfter(f);let G=YX.call(this,f),{parentPath:X,parent:W}=this;if(X.isExpressionStatement()||X.isLabeledStatement()||MQ(W)||X.isExportDefaultDeclaration()&&this.isDeclaration())return X.insertAfter(G.map((R)=>{return B8f(R)?ZJ(R):R}));else if(this.isNodeType("Expression")&&!this.isJSXElement()&&!X.isJSXElement()||X.isForStatement()&&this.key==="init"){let R=this;if(R.node){let J=R.node,{scope:U}=this;if(U.path.isPattern())return H8f(J),R.replaceWith(Z8f(V8f([],J),[])),R.get("callee.body").insertAfter(G),[R];if(FQ(R))G.unshift(J);else if(z8f(J)&&S8f(J.callee))G.unshift(J),G.push(F8f());else if(C8f(J,U))G.unshift(J),G.push(QJ(J.left));else if(U.isPure(J,!0))G.push(J);else{if(X.isMethod({computed:!0,key:J}))U=U.parent;let V=U.generateDeclaredUidIdentifier();G.unshift(ZJ(Q8f("=",QJ(V),J))),G.push(ZJ(QJ(V)))}}return this.replaceExpressionWithStatements(G)}else if(Array.isArray(this.container))return KQ.call(this,G);else if(this.isStatementOrBlock()){let R=this.node,J=R&&(!this.isExpressionStatement()||R.expression!=null);return this.replaceWith(BQ(J?[R]:[])),this.pushContainer("body",G)}else throw new Error("We don't know what to do with this node type. We were previously a Statement but we can't fit in here?")}function $Q(f,G){if(!this.parent)return;let X=R8f.getCachedPaths(this.hub,this.parent)||[];for(let[,W]of X)if(typeof W.key==="number"&&W.container===this.container&&W.key>=f)W.key+=G}function YX(f){if(!f)return[];if(!Array.isArray(f))f=[f];for(let G=0;G<f.length;G++){let X=f[G],W;if(!X)W="has falsy node";else if(typeof X!=="object")W="contains a non-object node";else if(!X.type)W="without a type";else if(X instanceof YJ.default)W="has a NodePath when it expected a raw object";if(W){let R=Array.isArray(X)?"array":typeof X;throw new Error(`Node list ${W} with the index of ${G} and type of ${R}`)}}return f}function A8f(f,G){TW._assertUnremoved.call(this),G=YX.call(this,G);let X=YJ.default.get({parentPath:this,parent:this.node,container:this.node[f],listKey:f,key:0}).setContext(this.context);return BJ.call(X,G)}function O8f(f,G){TW._assertUnremoved.call(this);let X=YX.call(this,G),W=this.node[f];return YJ.default.get({parentPath:this,parent:this.node,container:W,listKey:f,key:W.length}).setContext(this.context).replaceWithMultiple(X)}CQ.hoist=function f(G=this.scope){return new U8f.default(this,G).run()}});var VJ=P((NQ)=>{Object.defineProperty(NQ,"__esModule",{value:!0});NQ._replaceWith=TQ;NQ.replaceExpressionWithStatements=J4f;NQ.replaceInline=U4f;NQ.replaceWith=R4f;NQ.replaceWithMultiple=X4f;NQ.replaceWithSourceString=W4f;var w8f=JJ(),KJ=ZX(),k8f=lG(),PQ=X1(),SJ=IW(),v8f=QW(),g8f=Vf(),I1=KG(),{FUNCTION_TYPES:qQ,arrowFunctionExpression:_8f,assignmentExpression:DQ,awaitExpression:u8f,blockStatement:h8f,buildUndefinedNode:MJ,callExpression:y8f,cloneNode:FJ,conditionalExpression:x8f,expressionStatement:m8f,getBindingIdentifiers:l8f,identifier:c8f,inheritLeadingComments:a8f,inheritTrailingComments:i8f,inheritsComments:r8f,isBlockStatement:s8f,isEmptyStatement:AQ,isExpression:IQ,isExpressionStatement:p8f,isIfStatement:d8f,isProgram:t8f,isStatement:n8f,isVariableDeclaration:o8f,removeComments:e8f,returnStatement:OQ,sequenceExpression:f4f,validate:jQ,yieldExpression:G4f}=g8f;function X4f(f){var G;I1.resync.call(this),f=SJ._verifyNodeList.call(this,f),a8f(f[0],this.node),i8f(f[f.length-1],this.node),(G=PQ.getCachedPaths(this.hub,this.parent))==null||G.delete(this.node),this.node=this.container[this.key]=null;let X=this.insertAfter(f);if(this.node)this.requeue();else this.remove();return X}function W4f(f){I1.resync.call(this);let G;try{f=`(${f})`,G=v8f.parse(f)}catch(W){let R=W.loc;if(R)W.message+=` - make sure this is an expression.
|
|
32
|
-
`+
|
|
33
|
-
${
|
|
34
|
-
${
|
|
35
|
-
)`,validate:(
|
|
36
|
-
`+
|
|
25
|
+
`+z),J.push(Y+"m+"+f9.exports.humanize(this.diff)+"\x1B[0m")}else J[0]=TY1()+X+" "+J[0]}function TY1(){if(dz.inspectOpts.hideDate)return"";return new Date().toISOString()+" "}function LY1(...J){return process.stderr.write(_9.formatWithOptions(dz.inspectOpts,...J)+`
|
|
26
|
+
`)}function bY1(J){if(J)process.env.DEBUG=J;else delete process.env.DEBUG}function kY1(){return process.env.DEBUG}function vY1(J){J.inspectOpts={};let X=Object.keys(dz.inspectOpts);for(let Z=0;Z<X.length;Z++)J.inspectOpts[X[Z]]=dz.inspectOpts[X[Z]]}f9.exports=q8()(dz);var{formatters:rz}=f9.exports;rz.o=function(J){return this.inspectOpts.colors=this.useColors,_9.inspect(J,this.inspectOpts).split(`
|
|
27
|
+
`).map((X)=>X.trim()).join(" ")};rz.O=function(J){return this.inspectOpts.colors=this.useColors,_9.inspect(J,this.inspectOpts)}});var tz=N((wS1,M8)=>{if(typeof process>"u"||process.type==="renderer"||!1||process.__nwjs)M8.exports=uz();else M8.exports=sz()});var O8=N((ez)=>{Object.defineProperty(ez,"__esModule",{value:!0});ez.isBindingIdentifier=Wz1;ez.isBlockScoped=Rz1;ez.isExpression=Kz1;ez.isFlow=Mz1;ez.isForAwaitStatement=Cz1;ez.isGenerated=Fz1;ez.isPure=jz1;ez.isReferenced=Bz1;ez.isReferencedIdentifier=Hz1;ez.isReferencedMemberExpression=Gz1;ez.isRestProperty=Oz1;ez.isScope=Uz1;ez.isSpreadProperty=Az1;ez.isStatement=Vz1;ez.isUser=qz1;ez.isVar=$z1;var uY1=Y1(),{isBinding:mY1,isBlockScoped:cY1,isExportDeclaration:lY1,isExpression:iY1,isFlow:pY1,isForStatement:rY1,isForXStatement:dY1,isIdentifier:nz,isImportDeclaration:aY1,isImportSpecifier:sY1,isJSXIdentifier:tY1,isJSXMemberExpression:nY1,isMemberExpression:oY1,isRestElement:oz,isReferenced:h9,isScope:eY1,isStatement:Jz1,isVar:Xz1,isVariableDeclaration:Zz1,react:Qz1,isForOfStatement:Yz1}=uY1,{isCompatTag:zz1}=Qz1;function Hz1(J){let{node:X,parent:Z}=this;if(nz(X,J))return h9(X,Z,this.parentPath.parent);else if(tY1(X,J)){if(!nY1(Z)&&zz1(X.name))return!1;return h9(X,Z,this.parentPath.parent)}else return!1}function Gz1(){let{node:J,parent:X}=this;return oY1(J)&&h9(J,X)}function Wz1(){let{node:J,parent:X}=this,Z=this.parentPath.parent;return nz(J)&&mY1(J,X,Z)}function Vz1(){let{node:J,parent:X}=this;if(Jz1(J)){if(Zz1(J)){if(dY1(X,{left:J}))return!1;if(rY1(X,{init:J}))return!1}return!0}else return!1}function Kz1(){if(this.isIdentifier())return this.isReferencedIdentifier();else return iY1(this.node)}function Uz1(){return eY1(this.node,this.parent)}function Bz1(){return h9(this.node,this.parent)}function Rz1(){return cY1(this.node)}function $z1(){return Xz1(this.node)}function qz1(){var J;return!!((J=this.node)!=null&&J.loc)}function Fz1(){return!this.isUser()}function jz1(J){return this.scope.isPure(this.node,J)}function Mz1(){let{node:J}=this;if(pY1(J))return!0;else if(aY1(J))return J.importKind==="type"||J.importKind==="typeof";else if(lY1(J))return J.exportKind==="type";else if(sY1(J))return J.importKind==="type"||J.importKind==="typeof";else return!1}function Oz1(){var J;return oz(this.node)&&((J=this.parentPath)==null?void 0:J.isObjectPattern())}function Az1(){var J;return oz(this.node)&&((J=this.parentPath)==null?void 0:J.isObjectExpression())}function Cz1(){return Yz1(this.node,{await:!0})}ez.isExistentialTypeParam=function(){throw Error("`path.isExistentialTypeParam` has been renamed to `path.isExistsTypeAnnotation()` in Babel 7.")};ez.isNumericLiteralTypeAnnotation=function(){throw Error("`path.isNumericLiteralTypeAnnotation()` has been renamed to `path.isNumberLiteralTypeAnnotation()` in Babel 7.")}});var gX=N((RH)=>{Object.defineProperty(RH,"__esModule",{value:!0});RH.environmentVisitor=dz1;RH.explode=KH;RH.isExplodedVisitor=VH;RH.merge=BH;RH.verify=UH;var WH=$8(),uz1=O8(),mz1=Y1(),JH=qJ(),{DEPRECATED_KEYS:XH,DEPRECATED_ALIASES:ZH,FLIPPED_ALIAS_KEYS:QH,TYPES:cz1,__internal__deprecationWarning:YH}=mz1;function lz1(J){return J in WH}function VH(J){return J==null?void 0:J._exploded}function KH(J){if(VH(J))return J;J._exploded=!0;for(let Z of Object.keys(J)){if(M0(Z))continue;let Q=Z.split("|");if(Q.length===1)continue;let Y=J[Z];delete J[Z];for(let z of Q)J[z]=Y}UH(J),delete J.__esModule,iz1(J),GH(J);for(let Z of Object.keys(J)){if(M0(Z))continue;if(!lz1(Z))continue;let Q=J[Z];for(let z of Object.keys(Q))Q[z]=pz1(Z,Q[z]);delete J[Z];let Y=WH[Z];if(Y!==null)for(let z of Y){var X;(X=J[z])!=null||(J[z]={}),EX(J[z],Q)}else EX(J,Q)}for(let Z of Object.keys(J)){if(M0(Z))continue;let Q=QH[Z];if(Z in XH){let z=XH[Z];YH(Z,z,"Visitor "),Q=[z]}else if(Z in ZH){let z=ZH[Z];YH(Z,z,"Visitor "),Q=QH[z]}if(!Q)continue;let Y=J[Z];delete J[Z];for(let z of Q){let H=J[z];if(H)EX(H,Y);else J[z]=Object.assign({},Y)}}for(let Z of Object.keys(J)){if(M0(Z))continue;GH(J[Z])}return J}function UH(J){if(J._verified)return;if(typeof J==="function")throw Error("You passed `traverse()` a function when it expected a visitor object, are you sure you didn't mean `{ enter: Function }`?");for(let X of Object.keys(J)){if(X==="enter"||X==="exit")zH(X,J[X]);if(M0(X))continue;if(!cz1.includes(X))throw Error(`You gave us a visitor for the node type ${X} but it's not a valid type in @babel/traverse 7.29.0`);let Z=J[X];if(typeof Z==="object")for(let Q of Object.keys(Z))if(Q==="enter"||Q==="exit")zH(`${X}.${Q}`,Z[Q]);else throw Error(`You passed \`traverse()\` a visitor object with the property ${X} that has the invalid property ${Q}`)}J._verified=!0}function zH(J,X){let Z=[].concat(X);for(let Q of Z)if(typeof Q!=="function")throw TypeError(`Non-function found defined in ${J} with type ${typeof Q}`)}function BH(J,X=[],Z){let Q={_verified:!0,_exploded:!0};Object.defineProperty(Q,"_exploded",{enumerable:!1}),Object.defineProperty(Q,"_verified",{enumerable:!1});for(let Y=0;Y<J.length;Y++){let z=KH(J[Y]),H=X[Y],G=z;if(H||Z)G=HH(G,H,Z);EX(Q,G);for(let W of Object.keys(z)){if(M0(W))continue;let V=z[W];if(H||Z)V=HH(V,H,Z);let U=Q[W]||(Q[W]={});EX(U,V)}}return Q}function HH(J,X,Z){let Q={};for(let Y of["enter","exit"]){let z=J[Y];if(!Array.isArray(z))continue;z=z.map(function(H){let G=H;if(X)G=function(W){H.call(X,W,X)};if(Z)G=Z(X==null?void 0:X.key,Y,G);if(G!==H)G.toString=()=>H.toString();return G}),Q[Y]=z}return Q}function iz1(J){for(let X of Object.keys(J)){if(M0(X))continue;let Z=J[X];if(typeof Z==="function")J[X]={enter:Z}}}function GH(J){if(J.enter&&!Array.isArray(J.enter))J.enter=[J.enter];if(J.exit&&!Array.isArray(J.exit))J.exit=[J.exit]}function pz1(J,X){let Z=`is${J}`,Q=uz1[Z],Y=function(z){if(Q.call(z))return X.apply(this,arguments)};return Y.toString=()=>X.toString(),Y}function M0(J){if(J.startsWith("_"))return!0;if(J==="enter"||J==="exit"||J==="shouldSkip")return!0;if(J==="denylist"||J==="noScope"||J==="skipKeys")return!0;if(J==="blacklist")return!0;return!1}function EX(J,X){for(let Z of["enter","exit"]){if(!X[Z])continue;J[Z]=[].concat(J[Z]||[],X[Z])}}var rz1={FunctionParent(J){if(J.isArrowFunctionExpression())return;if(J.skip(),J.isMethod())if(!J.requeueComputedKeyAndDecorators)JH.requeueComputedKeyAndDecorators.call(J);else J.requeueComputedKeyAndDecorators()},Property(J){if(J.isObjectProperty())return;if(J.skip(),!J.requeueComputedKeyAndDecorators)JH.requeueComputedKeyAndDecorators.call(J);else J.requeueComputedKeyAndDecorators()}};function dz1(J){return BH([rz1,J])}});var jH=N((qH)=>{Object.defineProperty(qH,"__esModule",{value:!0});qH.default=void 0;var x9=Y1(),ez1=x9,JH1=y9(),XH1=gX(),ZH1=qJ(),{getAssignmentIdentifiers:QH1}=ez1,YH1={ReferencedIdentifier({node:J},X){if(J.name===X.oldName)J.name=X.newName},Scope(J,X){if(!J.scope.bindingIdentifierEquals(X.oldName,X.binding.identifier)){if(J.skip(),J.isMethod())if(!J.requeueComputedKeyAndDecorators)ZH1.requeueComputedKeyAndDecorators.call(J);else J.requeueComputedKeyAndDecorators();if(J.isSwitchStatement())J.context.maybeQueue(J.get("discriminant"))}},ObjectProperty({node:J,scope:X},Z){let{name:Q}=J.key;if(J.shorthand&&(Q===Z.oldName||Q===Z.newName)&&X.getBindingIdentifier(Q)===Z.binding.identifier){var Y;if(J.shorthand=!1,(Y=J.extra)!=null&&Y.shorthand)J.extra.shorthand=!1}},"AssignmentExpression|Declaration|VariableDeclarator"(J,X){if(J.isVariableDeclaration())return;let Z=J.isAssignmentExpression()?QH1(J.node):J.getOuterBindingIdentifiers();for(let Q in Z)if(Q===X.oldName)Z[Q].name=X.newName}};class $H{constructor(J,X,Z){this.newName=Z,this.oldName=X,this.binding=J}maybeConvertFromExportDeclaration(J){let X=J.parentPath;if(!X.isExportDeclaration())return;if(X.isExportDefaultDeclaration()){let{declaration:Z}=X.node;if(x9.isDeclaration(Z)&&!Z.id)return}if(X.isExportAllDeclaration())return;X.splitExportDeclaration()}maybeConvertFromClassFunctionDeclaration(J){return J}maybeConvertFromClassFunctionExpression(J){return J}rename(){let{binding:J,oldName:X,newName:Z}=this,{scope:Q,path:Y}=J,z=Y.find((W)=>W.isDeclaration()||W.isFunctionExpression()||W.isClassExpression());if(z){if(z.getOuterBindingIdentifiers()[X]===J.identifier)this.maybeConvertFromExportDeclaration(z)}let H=arguments[0]||Q.block,G={discriminant:!0};if(x9.isMethod(H)){if(H.computed)G.key=!0;if(!x9.isObjectMethod(H))G.decorators=!0}if((0,JH1.traverseNode)(H,(0,XH1.explode)(YH1),Q,this,Q.path,G),!arguments[0])Q.removeOwnBinding(X),Q.bindings[Z]=J,this.binding.identifier.name=Z;if(z)this.maybeConvertFromClassFunctionDeclaration(Y),this.maybeConvertFromClassFunctionExpression(Y)}}qH.default=$H});var OH=N((MH)=>{Object.defineProperty(MH,"__esModule",{value:!0});MH.default=KH1;var zH1=Y1(),HH1=i0(),GH1=gX(),WH1=qJ(),{VISITOR_KEYS:VH1}=zH1;function KH1(J,X,Z){let Q=(0,GH1.explode)(X);if(Q.enter||Q.exit)throw Error("Should not be used with enter/exit visitors.");Y(J.parentPath,J.parent,J.node,J.container,J.key,J.listKey,J.hub,J);function Y(z,H,G,W,V,U,q,O){if(!G)return;let A=O||HH1.NodePath.get({hub:q,parentPath:z,parent:H,container:W,listKey:U,key:V});WH1._forceSetScope.call(A);let D=Q[G.type];if(D!=null&&D.enter)for(let C of D.enter)C.call(Z,A,Z);if(A.shouldSkip)return;let S=VH1[G.type];if(!(S!=null&&S.length))return;for(let C of S){let L=G[C];if(!L)continue;if(Array.isArray(L))for(let b=0;b<L.length;b++){let s=L[b];Y(A,G,s,L,b,C)}else Y(A,G,L,G,C,null)}if(D!=null&&D.exit)for(let C of D.exit)C.call(Z,A,Z)}}});var NH=N((CH)=>{Object.defineProperty(CH,"__esModule",{value:!0});CH.default=void 0;class AH{constructor({identifier:J,scope:X,path:Z,kind:Q}){if(this.identifier=void 0,this.scope=void 0,this.path=void 0,this.kind=void 0,this.constantViolations=[],this.constant=!0,this.referencePaths=[],this.referenced=!1,this.references=0,this.identifier=J,this.scope=X,this.path=Z,this.kind=Q,(Q==="var"||Q==="hoisted")&&BH1(Z))this.reassign(Z);this.clearValue()}deoptValue(){this.clearValue(),this.hasDeoptedValue=!0}setValue(J){if(this.hasDeoptedValue)return;this.hasValue=!0,this.value=J}clearValue(){this.hasDeoptedValue=!1,this.hasValue=!1,this.value=null}reassign(J){if(this.constant=!1,this.constantViolations.includes(J))return;this.constantViolations.push(J)}reference(J){if(this.referencePaths.includes(J))return;this.referenced=!0,this.references++,this.referencePaths.push(J)}dereference(){this.references--,this.referenced=!!this.references}}CH.default=AH;function BH1(J){let X=!J.isVariableDeclarator()||J.node.init;for(let{parentPath:Z,key:Q}=J;Z;{parentPath:Z,key:Q}=Z){if(Z.isFunctionParent())return!1;if(Q==="left"&&Z.isForXStatement()||X&&Q==="body"&&Z.isLoop())return!0}return!1}});var O0=N((SH)=>{Object.defineProperty(SH,"__esModule",{value:!0});SH.clear=$H1;SH.clearPath=wH;SH.clearScope=PH;SH.getCachedPaths=qH1;SH.getOrCreateCachedPaths=FH1;SH.scope=SH.path=void 0;var u9=SH.path=new WeakMap,RH1=SH.scope=new WeakMap;function $H1(){wH(),PH()}function wH(){SH.path=u9=new WeakMap}function PH(){SH.scope=RH1=new WeakMap}function qH1(J){let{parent:X,parentPath:Z}=J;return u9.get(X)}function FH1(J,X){let Z=u9.get(J);if(!Z)u9.set(J,Z=new Map);return Z}});var TH=N((kS1,DH1)=>{DH1.exports=["decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","eval","globalThis","isFinite","isNaN","parseFloat","parseInt","undefined","unescape"]});var LH=N((vS1,NH1)=>{NH1.exports=["AggregateError","Array","ArrayBuffer","Atomics","BigInt","BigInt64Array","BigUint64Array","Boolean","DataView","Date","Error","EvalError","FinalizationRegistry","Float16Array","Float32Array","Float64Array","Function","Infinity","Int16Array","Int32Array","Int8Array","Intl","Iterator","JSON","Map","Math","NaN","Number","Object","Promise","Proxy","RangeError","ReferenceError","Reflect","RegExp","Set","SharedArrayBuffer","String","Symbol","SyntaxError","TypeError","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray","URIError","WeakMap","WeakRef","WeakSet"]});var w8=N((rH)=>{Object.defineProperty(rH,"__esModule",{value:!0});rH.default=void 0;var wH1=jH(),yH=i0(),ES1=OH(),PH1=NH(),uH=Y1(),mH=uH,bH=O0(),SH1=TH(),IH1=LH(),{assignmentExpression:TH1,callExpression:kH,cloneNode:vH,getBindingIdentifiers:cH,identifier:C0,isArrayExpression:lH,isBinary:LH1,isCallExpression:EH,isClass:bH1,isClassBody:kH1,isClassDeclaration:vH1,isExportAllDeclaration:iH,isExportDefaultDeclaration:EH1,isExportNamedDeclaration:C8,isFunctionDeclaration:gH1,isIdentifier:A0,isImportDeclaration:D8,isLiteral:_H1,isMemberExpression:fH1,isMethod:hH1,isModuleSpecifier:xH1,isNullLiteral:yH1,isObjectExpression:uH1,isProperty:mH1,isPureish:cH1,isRegExpLiteral:lH1,isSuper:iH1,isTaggedTemplateExpression:pH1,isTemplateLiteral:pH,isThisExpression:gH,isUnaryExpression:rH1,isVariableDeclaration:dH1,expressionStatement:aH1,matchesPattern:_H,memberExpression:N8,numericLiteral:sH1,toIdentifier:tH1,variableDeclaration:nH1,variableDeclarator:oH1,isObjectProperty:eH1,isTopicReference:fH,isMetaProperty:JG1,isPrivateName:XG1,isExportDeclaration:ZG1,buildUndefinedNode:QG1,sequenceExpression:YG1}=uH;function T1(J,X){switch(J==null?void 0:J.type){default:if(D8(J)||ZG1(J)){var Z;if((iH(J)||C8(J)||D8(J))&&J.source)T1(J.source,X);else if((C8(J)||D8(J))&&(Z=J.specifiers)!=null&&Z.length)for(let Q of J.specifiers)T1(Q,X);else if((EH1(J)||C8(J))&&J.declaration)T1(J.declaration,X)}else if(xH1(J))T1(J.local,X);else if(_H1(J)&&!yH1(J)&&!lH1(J)&&!pH(J))X.push(J.value);break;case"MemberExpression":case"OptionalMemberExpression":case"JSXMemberExpression":T1(J.object,X),T1(J.property,X);break;case"Identifier":case"JSXIdentifier":X.push(J.name);break;case"CallExpression":case"OptionalCallExpression":case"NewExpression":T1(J.callee,X);break;case"ObjectExpression":case"ObjectPattern":for(let Q of J.properties)T1(Q,X);break;case"SpreadElement":case"RestElement":T1(J.argument,X);break;case"ObjectProperty":case"ObjectMethod":case"ClassProperty":case"ClassMethod":case"ClassPrivateProperty":case"ClassPrivateMethod":T1(J.key,X);break;case"ThisExpression":X.push("this");break;case"Super":X.push("super");break;case"Import":case"ImportExpression":X.push("import");break;case"DoExpression":X.push("do");break;case"YieldExpression":X.push("yield"),T1(J.argument,X);break;case"AwaitExpression":X.push("await"),T1(J.argument,X);break;case"AssignmentExpression":T1(J.left,X);break;case"VariableDeclarator":T1(J.id,X);break;case"FunctionExpression":case"FunctionDeclaration":case"ClassExpression":case"ClassDeclaration":T1(J.id,X);break;case"PrivateName":T1(J.id,X);break;case"ParenthesizedExpression":T1(J.expression,X);break;case"UnaryExpression":case"UpdateExpression":T1(J.argument,X);break;case"MetaProperty":T1(J.meta,X),T1(J.property,X);break;case"JSXElement":T1(J.openingElement,X);break;case"JSXOpeningElement":T1(J.name,X);break;case"JSXFragment":T1(J.openingFragment,X);break;case"JSXOpeningFragment":X.push("Fragment");break;case"JSXNamespacedName":T1(J.namespace,X),T1(J.name,X);break}}function hH(J){J.references=Object.create(null),J.uids=Object.create(null),J.bindings=Object.create(null),J.globals=Object.create(null)}function zG1(J){return J.isFunctionExpression()&&!J.node.id||J.isArrowFunctionExpression()}var xH=Symbol.for("should not be considered a local binding"),HG1={ForStatement(J){let X=J.get("init");if(X.isVar()){let{scope:Z}=J;(Z.getFunctionParent()||Z.getProgramParent()).registerBinding("var",X)}},Declaration(J){if(J.isBlockScoped())return;if(J.isImportDeclaration())return;if(J.isExportDeclaration())return;(J.scope.getFunctionParent()||J.scope.getProgramParent()).registerDeclaration(J)},ImportDeclaration(J){J.scope.getBlockParent().registerDeclaration(J)},TSImportEqualsDeclaration(J){J.scope.getBlockParent().registerDeclaration(J)},ReferencedIdentifier(J,X){if(mH.isTSQualifiedName(J.parent)&&J.parent.right===J.node)return;if(J.parentPath.isTSImportEqualsDeclaration())return;X.references.push(J)},ForXStatement(J,X){let Z=J.get("left");if(Z.isPattern()||Z.isIdentifier())X.constantViolations.push(J);else if(Z.isVar()){let{scope:Q}=J;(Q.getFunctionParent()||Q.getProgramParent()).registerBinding("var",Z)}},ExportDeclaration:{exit(J){let{node:X,scope:Z}=J;if(iH(X))return;let Q=X.declaration;if(vH1(Q)||gH1(Q)){let Y=Q.id;if(!Y)return;let z=Z.getBinding(Y.name);z==null||z.reference(J)}else if(dH1(Q))for(let Y of Q.declarations)for(let z of Object.keys(cH(Y))){let H=Z.getBinding(z);H==null||H.reference(J)}}},LabeledStatement(J){J.scope.getBlockParent().registerDeclaration(J)},AssignmentExpression(J,X){X.assignments.push(J)},UpdateExpression(J,X){X.constantViolations.push(J)},UnaryExpression(J,X){if(J.node.operator==="delete")X.constantViolations.push(J)},BlockScoped(J){let X=J.scope;if(X.path===J)X=X.parent;if(X.getBlockParent().registerDeclaration(J),J.isClassDeclaration()&&J.node.id){let Y=J.node.id.name;J.scope.bindings[Y]=J.scope.parent.getBinding(Y)}},CatchClause(J){J.scope.registerBinding("let",J)},Function(J){let X=J.get("params");for(let Z of X)J.scope.registerBinding("param",Z);if(J.isFunctionExpression()&&J.node.id&&!J.node.id[xH])J.scope.registerBinding("local",J.get("id"),J)},ClassExpression(J){if(J.node.id&&!J.node.id[xH])J.scope.registerBinding("local",J.get("id"),J)},TSTypeAnnotation(J){J.skip()}},m9,GG1=0;class FJ{constructor(J){this.uid=void 0,this.path=void 0,this.block=void 0,this.inited=void 0,this.labels=void 0,this.bindings=void 0,this.referencesSet=void 0,this.globals=void 0,this.uidsSet=void 0,this.data=void 0,this.crawling=void 0;let{node:X}=J,Z=bH.scope.get(X);if((Z==null?void 0:Z.path)===J)return Z;bH.scope.set(X,this),this.uid=GG1++,this.block=X,this.path=J,this.labels=new Map,this.inited=!1,Object.defineProperties(this,{references:{enumerable:!0,configurable:!0,writable:!0,value:Object.create(null)},uids:{enumerable:!0,configurable:!0,writable:!0,value:Object.create(null)}})}get parent(){var J;let X,Z=this.path;do{var Q;let Y=Z.key==="key"||Z.listKey==="decorators";if(Z=Z.parentPath,Y&&Z.isMethod())Z=Z.parentPath;if((Q=Z)!=null&&Q.isScope())X=Z}while(Z&&!X);return(J=X)==null?void 0:J.scope}get references(){throw Error("Scope#references is not available in Babel 8. Use Scope#referencesSet instead.")}get uids(){throw Error("Scope#uids is not available in Babel 8. Use Scope#uidsSet instead.")}generateDeclaredUidIdentifier(J){let X=this.generateUidIdentifier(J);return this.push({id:X}),vH(X)}generateUidIdentifier(J){return C0(this.generateUid(J))}generateUid(J="temp"){J=tH1(J).replace(/^_+/,"").replace(/\d+$/g,"");let X,Z=0;do{if(X=`_${J}`,Z>=11)X+=Z-1;else if(Z>=9)X+=Z-9;else if(Z>=1)X+=Z+1;Z++}while(this.hasLabel(X)||this.hasBinding(X)||this.hasGlobal(X)||this.hasReference(X));let Q=this.getProgramParent();return Q.references[X]=!0,Q.uids[X]=!0,X}generateUidBasedOnNode(J,X){let Z=[];T1(J,Z);let Q=Z.join("$");return Q=Q.replace(/^_/,"")||X||"ref",this.generateUid(Q.slice(0,20))}generateUidIdentifierBasedOnNode(J,X){return C0(this.generateUidBasedOnNode(J,X))}isStatic(J){if(gH(J)||iH1(J)||fH(J))return!0;if(A0(J)){let X=this.getBinding(J.name);if(X)return X.constant;else return this.hasBinding(J.name)}return!1}maybeGenerateMemoised(J,X){if(this.isStatic(J))return null;else{let Z=this.generateUidIdentifierBasedOnNode(J);if(!X)return this.push({id:Z}),vH(Z);return Z}}checkBlockScopedCollisions(J,X,Z,Q){if(X==="param")return;if(J.kind==="local")return;if(X==="let"||J.kind==="let"||J.kind==="const"||J.kind==="module"||J.kind==="param"&&X==="const")throw this.path.hub.buildError(Q,`Duplicate declaration "${Z}"`,TypeError)}rename(J,X){let Z=this.getBinding(J);if(Z)X||(X=this.generateUidIdentifier(J).name),new wH1.default(Z,J,X).rename(arguments[2])}dump(){let J="-".repeat(60);console.log(J);let X=this;do{console.log("#",X.block.type);for(let Z of Object.keys(X.bindings)){let Q=X.bindings[Z];console.log(" -",Z,{constant:Q.constant,references:Q.references,violations:Q.constantViolations.length,kind:Q.kind})}}while(X=X.parent);console.log(J)}hasLabel(J){return!!this.getLabel(J)}getLabel(J){return this.labels.get(J)}registerLabel(J){this.labels.set(J.node.label.name,J)}registerDeclaration(J){if(J.isLabeledStatement())this.registerLabel(J);else if(J.isFunctionDeclaration())this.registerBinding("hoisted",J.get("id"),J);else if(J.isVariableDeclaration()){let X=J.get("declarations"),{kind:Z}=J.node;for(let Q of X)this.registerBinding(Z==="using"||Z==="await using"?"const":Z,Q)}else if(J.isClassDeclaration()){if(J.node.declare)return;this.registerBinding("let",J)}else if(J.isImportDeclaration()){let X=J.node.importKind==="type"||J.node.importKind==="typeof",Z=J.get("specifiers");for(let Q of Z){let Y=X||Q.isImportSpecifier()&&(Q.node.importKind==="type"||Q.node.importKind==="typeof");this.registerBinding(Y?"unknown":"module",Q)}}else if(J.isExportDeclaration()){let X=J.get("declaration");if(X.isClassDeclaration()||X.isFunctionDeclaration()||X.isVariableDeclaration())this.registerDeclaration(X)}else this.registerBinding("unknown",J)}buildUndefinedNode(){return QG1()}registerConstantViolation(J){let X=J.getAssignmentIdentifiers();for(let Q of Object.keys(X)){var Z;(Z=this.getBinding(Q))==null||Z.reassign(J)}}registerBinding(J,X,Z=X){if(!J)throw ReferenceError("no `kind`");if(X.isVariableDeclaration()){let z=X.get("declarations");for(let H of z)this.registerBinding(J,H);return}let Q=this.getProgramParent(),Y=X.getOuterBindingIdentifiers(!0);for(let z of Object.keys(Y)){Q.references[z]=!0;for(let H of Y[z]){let G=this.getOwnBinding(z);if(G){if(G.identifier===H)continue;this.checkBlockScopedCollisions(G,J,z,H)}if(G)G.reassign(Z);else this.bindings[z]=new PH1.default({identifier:H,scope:this,path:Z,kind:J})}}}addGlobal(J){this.globals[J.name]=J}hasUid(J){let X=this;do if(X.uids[J])return!0;while(X=X.parent);return!1}hasGlobal(J){let X=this;do if(X.globals[J])return!0;while(X=X.parent);return!1}hasReference(J){return!!this.getProgramParent().references[J]}isPure(J,X){if(A0(J)){let z=this.getBinding(J.name);if(!z)return!1;if(X)return z.constant;return!0}else if(gH(J)||JG1(J)||fH(J)||XG1(J))return!0;else if(bH1(J)){var Z;if(J.superClass&&!this.isPure(J.superClass,X))return!1;if(((Z=J.decorators)==null?void 0:Z.length)>0)return!1;return this.isPure(J.body,X)}else if(kH1(J)){for(let z of J.body)if(!this.isPure(z,X))return!1;return!0}else if(LH1(J))return this.isPure(J.left,X)&&this.isPure(J.right,X);else if(lH(J)||(J==null?void 0:J.type)==="TupleExpression"){for(let z of J.elements)if(z!==null&&!this.isPure(z,X))return!1;return!0}else if(uH1(J)||(J==null?void 0:J.type)==="RecordExpression"){for(let z of J.properties)if(!this.isPure(z,X))return!1;return!0}else if(hH1(J)){var Q;if(J.computed&&!this.isPure(J.key,X))return!1;if(((Q=J.decorators)==null?void 0:Q.length)>0)return!1;return!0}else if(mH1(J)){var Y;if(J.computed&&!this.isPure(J.key,X))return!1;if(((Y=J.decorators)==null?void 0:Y.length)>0)return!1;if(eH1(J)||J.static){if(J.value!==null&&!this.isPure(J.value,X))return!1}return!0}else if(rH1(J))return this.isPure(J.argument,X);else if(pH(J)){for(let z of J.expressions)if(!this.isPure(z,X))return!1;return!0}else if(pH1(J))return _H(J.tag,"String.raw")&&!this.hasBinding("String",{noGlobals:!0})&&this.isPure(J.quasi,X);else if(fH1(J))return!J.computed&&A0(J.object)&&J.object.name==="Symbol"&&A0(J.property)&&J.property.name!=="for"&&!this.hasBinding("Symbol",{noGlobals:!0});else if(EH(J))return _H(J.callee,"Symbol.for")&&!this.hasBinding("Symbol",{noGlobals:!0})&&J.arguments.length===1&&mH.isStringLiteral(J.arguments[0]);else return cH1(J)}setData(J,X){return this.data[J]=X}getData(J){let X=this;do{let Z=X.data[J];if(Z!=null)return Z}while(X=X.parent)}removeData(J){let X=this;do if(X.data[J]!=null)X.data[J]=null;while(X=X.parent)}init(){if(!this.inited)this.inited=!0,this.crawl()}crawl(){let J=this.path;hH(this),this.data=Object.create(null);let X=this;do{if(X.crawling)return;if(X.path.isProgram())break}while(X=X.parent);let Z=X,Q={references:[],constantViolations:[],assignments:[]};if(this.crawling=!0,m9||(m9=yH.default.visitors.merge([{Scope(Y){hH(Y.scope)}},HG1])),J.type!=="Program"){let Y=m9[J.type];if(Y)for(let z of Y.enter)z.call(Q,J,Q)}J.traverse(m9,Q),this.crawling=!1;for(let Y of Q.assignments){let z=Y.getAssignmentIdentifiers();for(let H of Object.keys(z)){if(Y.scope.getBinding(H))continue;Z.addGlobal(z[H])}Y.scope.registerConstantViolation(Y)}for(let Y of Q.references){let z=Y.scope.getBinding(Y.node.name);if(z)z.reference(Y);else Z.addGlobal(Y.node)}for(let Y of Q.constantViolations)Y.scope.registerConstantViolation(Y)}push(J){let X=this.path;if(X.isPattern())X=this.getPatternParent().path;else if(!X.isBlockStatement()&&!X.isProgram())X=this.getBlockParent().path;if(X.isSwitchStatement())X=(this.getFunctionParent()||this.getProgramParent()).path;let{init:Z,unique:Q,kind:Y="var",id:z}=J;if(!Z&&!Q&&(Y==="var"||Y==="let")&&zG1(X)&&EH(X.parent,{callee:X.node})&&X.parent.arguments.length<=X.node.params.length&&A0(z)){X.pushContainer("params",z),X.scope.registerBinding("param",X.get("params")[X.node.params.length-1]);return}if(X.isLoop()||X.isCatchClause()||X.isFunction())X.ensureBlock(),X=X.get("body");let H=J._blockHoist==null?2:J._blockHoist,G=`declaration:${Y}:${H}`,W=!Q&&X.getData(G);if(!W){let q=nH1(Y,[]);if(q._blockHoist=H,[W]=X.unshiftContainer("body",[q]),!Q)X.setData(G,W)}let V=oH1(z,Z),U=W.node.declarations.push(V);X.scope.registerBinding(Y,W.get("declarations")[U-1])}getProgramParent(){let J=this;do if(J.path.isProgram())return J;while(J=J.parent);throw Error("Couldn't find a Program")}getFunctionParent(){let J=this;do if(J.path.isFunctionParent())return J;while(J=J.parent);return null}getBlockParent(){let J=this;do if(J.path.isBlockParent())return J;while(J=J.parent);throw Error("We couldn't find a BlockStatement, For, Switch, Function, Loop or Program...")}getPatternParent(){let J=this;do if(!J.path.isPattern())return J.getBlockParent();while(J=J.parent.parent);throw Error("We couldn't find a BlockStatement, For, Switch, Function, Loop or Program...")}getAllBindings(){let J=Object.create(null),X=this;do{for(let Z of Object.keys(X.bindings))if(Z in J===!1)J[Z]=X.bindings[Z];X=X.parent}while(X);return J}bindingIdentifierEquals(J,X){return this.getBindingIdentifier(J)===X}getBinding(J){let X=this,Z;do{let Y=X.getOwnBinding(J);if(Y){var Q;if((Q=Z)!=null&&Q.isPattern()&&Y.kind!=="param"&&Y.kind!=="local");else return Y}else if(!Y&&J==="arguments"&&X.path.isFunction()&&!X.path.isArrowFunctionExpression())break;Z=X.path}while(X=X.parent)}getOwnBinding(J){return this.bindings[J]}getBindingIdentifier(J){var X;return(X=this.getBinding(J))==null?void 0:X.identifier}getOwnBindingIdentifier(J){let X=this.bindings[J];return X==null?void 0:X.identifier}hasOwnBinding(J){return!!this.getOwnBinding(J)}hasBinding(J,X){if(!J)return!1;let Z,Q,Y;if(typeof X==="object")Z=X.noGlobals,Q=X.noUids,Y=X.upToScope;else if(typeof X==="boolean")Z=X;let z=this;do{if(Y===z)break;if(z.hasOwnBinding(J))return!0}while(z=z.parent);if(!Q&&this.hasUid(J))return!0;if(!Z&&FJ.globals.includes(J))return!0;if(!Z&&FJ.contextVariables.includes(J))return!0;return!1}parentHasBinding(J,X){var Z;return(Z=this.parent)==null?void 0:Z.hasBinding(J,X)}moveBindingTo(J,X){let Z=this.getBinding(J);if(Z)Z.scope.removeOwnBinding(J),Z.scope=X,X.bindings[J]=Z}removeOwnBinding(J){delete this.bindings[J]}removeBinding(J){var X;(X=this.getBinding(J))==null||X.scope.removeOwnBinding(J);let Z=this;do if(Z.uids[J])Z.uids[J]=!1;while(Z=Z.parent)}hoistVariables(J=(X)=>this.push({id:X})){this.crawl();let X=new Set;for(let Z of Object.keys(this.bindings)){let Q=this.bindings[Z];if(!Q)continue;let{path:Y}=Q;if(!Y.isVariableDeclarator())continue;let{parent:z,parentPath:H}=Y;if(z.kind!=="var"||X.has(z))continue;X.add(Y.parent);let G,W=[];for(let V of z.declarations){if(G!=null||(G=V.id),V.init)W.push(TH1("=",V.id,V.init));let U=Object.keys(cH(V,!1,!0,!0));for(let q of U)J(C0(q),V.init!=null)}if(H.parentPath.isForXStatement({left:z}))H.replaceWith(G);else if(W.length===0)H.remove();else{let V=W.length===1?W[0]:YG1(W);if(H.parentPath.isForStatement({init:z}))H.replaceWith(V);else H.replaceWith(aH1(V))}}}}rH.default=FJ;FJ.globals=[...SH1,...IH1];FJ.contextVariables=["arguments","undefined","Infinity","NaN"];FJ.prototype._renameFromMap=function(X,Z,Q,Y){if(X[Z])X[Q]=Y,X[Z]=null};FJ.prototype.traverse=function(J,X,Z){(0,yH.default)(J,X,this,Z,this.path)};FJ.prototype._generateUid=function(X,Z){let Q=X;if(Z>1)Q+=Z;return`_${Q}`};FJ.prototype.toArray=function(X,Z,Q){if(A0(X)){let H=this.getBinding(X.name);if(H!=null&&H.constant&&H.path.isGenericType("Array"))return X}if(lH(X))return X;if(A0(X,{name:"arguments"}))return kH(N8(N8(N8(C0("Array"),C0("prototype")),C0("slice")),C0("call")),[X]);let Y,z=[X];if(Z===!0)Y="toConsumableArray";else if(typeof Z==="number")z.push(sH1(Z)),Y="slicedToArray";else Y="toArray";if(Q)z.unshift(this.path.hub.addHelper(Y)),Y="maybeArrayLike";return kH(this.path.hub.addHelper(Y),z)};FJ.prototype.getAllBindingsOfKind=function(...X){let Z=Object.create(null);for(let Q of X){let Y=this;do{for(let z of Object.keys(Y.bindings)){let H=Y.bindings[z];if(H.kind===Q)Z[z]=H}Y=Y.parent}while(Y)}return Z};Object.defineProperties(FJ.prototype,{parentBlock:{configurable:!0,enumerable:!0,get(){return this.path.parent}},hub:{configurable:!0,enumerable:!0,get(){return this.path.hub}}})});var sH=N((aH)=>{Object.defineProperty(aH,"__esModule",{value:!0});aH.find=UG1;aH.findParent=KG1;aH.getAncestry=FG1;aH.getDeepestCommonAncestorFrom=qG1;aH.getEarliestCommonAncestorFrom=$G1;aH.getFunctionParent=BG1;aH.getStatementParent=RG1;aH.inType=OG1;aH.isAncestor=jG1;aH.isDescendant=MG1;var WG1=Y1(),{VISITOR_KEYS:VG1}=WG1;function KG1(J){let X=this;while(X=X.parentPath)if(J(X))return X;return null}function UG1(J){let X=this;do if(J(X))return X;while(X=X.parentPath);return null}function BG1(){return this.findParent((J)=>J.isFunction())}function RG1(){let J=this;do if(!J.parentPath||Array.isArray(J.container)&&J.isStatement())break;else J=J.parentPath;while(J);if(J&&(J.isProgram()||J.isFile()))throw Error("File/Program node, we can't possibly find a statement parent to this");return J}function $G1(J){return this.getDeepestCommonAncestorFrom(J,function(X,Z,Q){let Y,z=VG1[X.type];for(let H of Q){let G=H[Z+1];if(!Y){Y=G;continue}if(G.listKey&&Y.listKey===G.listKey){if(G.key<Y.key){Y=G;continue}}let W=z.indexOf(Y.parentKey),V=z.indexOf(G.parentKey);if(W>V)Y=G}return Y})}function qG1(J,X){if(!J.length)return this;if(J.length===1)return J[0];let Z=1/0,Q,Y,z=J.map((G)=>{let W=[];do W.unshift(G);while((G=G.parentPath)&&G!==this);if(W.length<Z)Z=W.length;return W}),H=z[0];J:for(let G=0;G<Z;G++){let W=H[G];for(let V of z)if(V[G]!==W)break J;Q=G,Y=W}if(Y)if(X)return X(Y,Q,z);else return Y;else throw Error("Couldn't find intersection")}function FG1(){let J=this,X=[];do X.push(J);while(J=J.parentPath);return X}function jG1(J){return J.isDescendant(this)}function MG1(J){return!!this.findParent((X)=>X===J)}function OG1(...J){let X=this;while(X){if(J.includes(X.node.type))return!0;X=X.parentPath}return!1}});var P8=N((oH)=>{Object.defineProperty(oH,"__esModule",{value:!0});oH.createUnionType=gG1;var bG1=Y1(),{createFlowUnionType:tH,createTSUnionType:nH,createUnionTypeAnnotation:kG1,isFlowType:vG1,isTSType:EG1}=bG1;function gG1(J){if(J.every((X)=>vG1(X))){if(tH)return tH(J);return kG1(J)}else if(J.every((X)=>EG1(X))){if(nH)return nH(J)}}});var YG=N((QG)=>{Object.defineProperty(QG,"__esModule",{value:!0});QG.default=uG1;var fG1=Y1(),JG=P8(),{BOOLEAN_NUMBER_BINARY_OPERATORS:hG1,createTypeAnnotationBasedOnTypeof:xG1,numberTypeAnnotation:XG,voidTypeAnnotation:yG1}=fG1;function uG1(J){if(!this.isReferenced())return;let X=this.scope.getBinding(J.name);if(X)if(X.identifier.typeAnnotation)return X.identifier.typeAnnotation;else return mG1(X,this,J.name);if(J.name==="undefined")return yG1();else if(J.name==="NaN"||J.name==="Infinity")return XG();else if(J.name==="arguments");}function mG1(J,X,Z){let Q=[],Y=[],z=eH(J,X,Y),H=ZG(J,X,Z);if(H){let G=eH(J,H.ifStatement);z=z.filter((W)=>!G.includes(W)),Q.push(H.typeAnnotation)}if(z.length){z.push(...Y);for(let G of z)Q.push(G.getTypeAnnotation())}if(!Q.length)return;return(0,JG.createUnionType)(Q)}function eH(J,X,Z){let Q=J.constantViolations.slice();return Q.unshift(J.path),Q.filter((Y)=>{Y=Y.resolve();let z=Y._guessExecutionStatusRelativeTo(X);if(Z&&z==="unknown")Z.push(Y);return z==="before"})}function cG1(J,X){let Z=X.node.operator,Q=X.get("right").resolve(),Y=X.get("left").resolve(),z;if(Y.isIdentifier({name:J}))z=Q;else if(Q.isIdentifier({name:J}))z=Y;if(z){if(Z==="===")return z.getTypeAnnotation();if(hG1.includes(Z))return XG();return}if(Z!=="==="&&Z!=="==")return;let H,G;if(Y.isUnaryExpression({operator:"typeof"}))H=Y,G=Q;else if(Q.isUnaryExpression({operator:"typeof"}))H=Q,G=Y;if(!H)return;if(!H.get("argument").isIdentifier({name:J}))return;if(G=G.resolve(),!G.isLiteral())return;let W=G.node.value;if(typeof W!=="string")return;return xG1(W)}function lG1(J,X,Z){let Q;while(Q=X.parentPath){if(Q.isIfStatement()||Q.isConditionalExpression()){if(X.key==="test")return;return Q}if(Q.isFunction()){if(Z==null||Q.parentPath.scope.getBinding(Z)!==J)return}X=Q}}function ZG(J,X,Z){let Q=lG1(J,X,Z);if(!Q)return;let z=[Q.get("test")],H=[];for(let G=0;G<z.length;G++){let W=z[G];if(W.isLogicalExpression()){if(W.node.operator==="&&")z.push(W.get("left")),z.push(W.get("right"))}else if(W.isBinaryExpression()){let V=cG1(Z,W);if(V)H.push(V)}}if(H.length)return{typeAnnotation:(0,JG.createUnionType)(H),ifStatement:Q};return ZG(J,Q,Z)}});var BG=N((T8)=>{Object.defineProperty(T8,"__esModule",{value:!0});T8.ArrayExpression=VG;T8.AssignmentExpression=RW1;T8.BinaryExpression=WW1;T8.BooleanLiteral=jW1;T8.CallExpression=SW1;T8.ConditionalExpression=KW1;T8.ClassDeclaration=T8.ClassExpression=T8.FunctionDeclaration=T8.ArrowFunctionExpression=T8.FunctionExpression=CW1;Object.defineProperty(T8,"Identifier",{enumerable:!0,get:function(){return rG1.default}});T8.LogicalExpression=VW1;T8.NewExpression=zW1;T8.NullLiteral=MW1;T8.NumericLiteral=FW1;T8.ObjectExpression=AW1;T8.ParenthesizedExpression=BW1;T8.RegExpLiteral=OW1;T8.RestElement=KG;T8.SequenceExpression=UW1;T8.StringLiteral=qW1;T8.TSAsExpression=WG;T8.TSNonNullExpression=YW1;T8.TaggedTemplateExpression=IW1;T8.TemplateLiteral=HW1;T8.TypeCastExpression=GG;T8.UnaryExpression=GW1;T8.UpdateExpression=$W1;T8.VariableDeclarator=QW1;var pG1=Y1(),rG1=YG(),HG=P8(),{BOOLEAN_BINARY_OPERATORS:dG1,BOOLEAN_UNARY_OPERATORS:aG1,NUMBER_BINARY_OPERATORS:sG1,NUMBER_UNARY_OPERATORS:tG1,STRING_UNARY_OPERATORS:nG1,anyTypeAnnotation:zG,arrayTypeAnnotation:S8,booleanTypeAnnotation:I8,buildMatchMemberExpression:c9,genericTypeAnnotation:Q0,identifier:D0,nullLiteralTypeAnnotation:oG1,numberTypeAnnotation:p0,stringTypeAnnotation:N0,tupleTypeAnnotation:eG1,unionTypeAnnotation:JW1,voidTypeAnnotation:XW1,isIdentifier:ZW1}=pG1;function QW1(){if(!this.get("id").isIdentifier())return;return this.get("init").getTypeAnnotation()}function GG(J){return J.typeAnnotation}GG.validParent=!0;function WG(J){return J.typeAnnotation}WG.validParent=!0;function YW1(){return this.get("expression").getTypeAnnotation()}function zW1(J){if(J.callee.type==="Identifier")return Q0(J.callee)}function HW1(){return N0()}function GW1(J){let X=J.operator;if(X==="void")return XW1();else if(tG1.includes(X))return p0();else if(nG1.includes(X))return N0();else if(aG1.includes(X))return I8()}function WW1(J){let X=J.operator;if(sG1.includes(X))return p0();else if(dG1.includes(X))return I8();else if(X==="+"){let Z=this.get("right"),Q=this.get("left");if(Q.isBaseType("number")&&Z.isBaseType("number"))return p0();else if(Q.isBaseType("string")||Z.isBaseType("string"))return N0();return JW1([N0(),p0()])}}function VW1(){let J=[this.get("left").getTypeAnnotation(),this.get("right").getTypeAnnotation()];return(0,HG.createUnionType)(J)}function KW1(){let J=[this.get("consequent").getTypeAnnotation(),this.get("alternate").getTypeAnnotation()];return(0,HG.createUnionType)(J)}function UW1(){return this.get("expressions").pop().getTypeAnnotation()}function BW1(){return this.get("expression").getTypeAnnotation()}function RW1(){return this.get("right").getTypeAnnotation()}function $W1(J){let X=J.operator;if(X==="++"||X==="--")return p0()}function qW1(){return N0()}function FW1(){return p0()}function jW1(){return I8()}function MW1(){return oG1()}function OW1(){return Q0(D0("RegExp"))}function AW1(){return Q0(D0("Object"))}function VG(){return Q0(D0("Array"))}function KG(){return VG()}KG.validParent=!0;function CW1(){return Q0(D0("Function"))}var DW1=c9("Array.from"),NW1=c9("Object.keys"),wW1=c9("Object.values"),PW1=c9("Object.entries");function SW1(){let{callee:J}=this.node;if(NW1(J))return S8(N0());else if(DW1(J)||wW1(J)||ZW1(J,{name:"Array"}))return S8(zG());else if(PW1(J))return S8(eG1([N0(),zG()]));return UG(this.get("callee"))}function IW1(){return UG(this.get("tag"))}function UG(J){if(J=J.resolve(),J.isFunction()){let{node:X}=J;if(X.async)if(X.generator)return Q0(D0("AsyncIterator"));else return Q0(D0("Promise"));else if(X.generator)return Q0(D0("Iterator"));else if(J.node.returnType)return J.node.returnType}}});var MG=N((jG)=>{Object.defineProperty(jG,"__esModule",{value:!0});jG._getTypeAnnotation=FG;jG.baseTypeStrictlyMatches=A31;jG.couldBeBaseType=O31;jG.getTypeAnnotation=j31;jG.isBaseType=M31;jG.isGenericType=C31;var RG=BG(),eW1=Y1(),{anyTypeAnnotation:qG,isAnyTypeAnnotation:l9,isArrayTypeAnnotation:J31,isBooleanTypeAnnotation:X31,isEmptyTypeAnnotation:Z31,isFlowBaseAnnotation:Q31,isGenericTypeAnnotation:Y31,isIdentifier:$G,isMixedTypeAnnotation:z31,isNumberTypeAnnotation:H31,isStringTypeAnnotation:G31,isTSArrayType:W31,isTSTypeAnnotation:V31,isTSTypeReference:K31,isTupleTypeAnnotation:U31,isTypeAnnotation:B31,isUnionTypeAnnotation:R31,isVoidTypeAnnotation:$31,stringTypeAnnotation:q31,voidTypeAnnotation:F31}=eW1;function j31(){let J=this.getData("typeAnnotation");if(J!=null)return J;if(J=FG.call(this)||qG(),B31(J)||V31(J))J=J.typeAnnotation;return this.setData("typeAnnotation",J),J}var L8=new WeakSet;function FG(){let J=this.node;if(!J)if(this.key==="init"&&this.parentPath.isVariableDeclarator()){let Z=this.parentPath.parentPath,Q=Z.parentPath;if(Z.key==="left"&&Q.isForInStatement())return q31();if(Z.key==="left"&&Q.isForOfStatement())return qG();return F31()}else return;if(J.typeAnnotation)return J.typeAnnotation;if(L8.has(J))return;L8.add(J);try{var X;let Z=RG[J.type];if(Z)return Z.call(this,J);if(Z=RG[this.parentPath.type],(X=Z)!=null&&X.validParent)return this.parentPath.getTypeAnnotation()}finally{L8.delete(J)}}function M31(J,X){return b8(J,this.getTypeAnnotation(),X)}function b8(J,X,Z){if(J==="string")return G31(X);else if(J==="number")return H31(X);else if(J==="boolean")return X31(X);else if(J==="any")return l9(X);else if(J==="mixed")return z31(X);else if(J==="empty")return Z31(X);else if(J==="void")return $31(X);else if(Z)return!1;else throw Error(`Unknown base type ${J}`)}function O31(J){let X=this.getTypeAnnotation();if(l9(X))return!0;if(R31(X)){for(let Z of X.types)if(l9(Z)||b8(J,Z,!0))return!0;return!1}else return b8(J,X,!0)}function A31(J){let X=this.getTypeAnnotation(),Z=J.getTypeAnnotation();if(!l9(X)&&Q31(X))return Z.type===X.type;return!1}function C31(J){let X=this.getTypeAnnotation();if(J==="Array"){if(W31(X)||J31(X)||U31(X))return!0}return Y31(X)&&$G(X.id,{name:J})||K31(X)&&$G(X.typeName,{name:J})}});var CG=N((iS1,k8)=>{var p9=process||{},OG=p9.argv||[],i9=p9.env||{},T31=!(!!i9.NO_COLOR||OG.includes("--no-color"))&&(!!i9.FORCE_COLOR||OG.includes("--color")||p9.platform==="win32"||(p9.stdout||{}).isTTY&&i9.TERM!=="dumb"||!!i9.CI),L31=(J,X,Z=J)=>(Q)=>{let Y=""+Q,z=Y.indexOf(X,J.length);return~z?J+b31(Y,X,Z,z)+X:J+Y+X},b31=(J,X,Z,Q)=>{let Y="",z=0;do Y+=J.substring(z,Q)+Z,z=Q+X.length,Q=J.indexOf(X,z);while(~Q);return Y+J.substring(z)},AG=(J=T31)=>{let X=J?L31:()=>String;return{isColorSupported:J,reset:X("\x1B[0m","\x1B[0m"),bold:X("\x1B[1m","\x1B[22m","\x1B[22m\x1B[1m"),dim:X("\x1B[2m","\x1B[22m","\x1B[22m\x1B[2m"),italic:X("\x1B[3m","\x1B[23m"),underline:X("\x1B[4m","\x1B[24m"),inverse:X("\x1B[7m","\x1B[27m"),hidden:X("\x1B[8m","\x1B[28m"),strikethrough:X("\x1B[9m","\x1B[29m"),black:X("\x1B[30m","\x1B[39m"),red:X("\x1B[31m","\x1B[39m"),green:X("\x1B[32m","\x1B[39m"),yellow:X("\x1B[33m","\x1B[39m"),blue:X("\x1B[34m","\x1B[39m"),magenta:X("\x1B[35m","\x1B[39m"),cyan:X("\x1B[36m","\x1B[39m"),white:X("\x1B[37m","\x1B[39m"),gray:X("\x1B[90m","\x1B[39m"),bgBlack:X("\x1B[40m","\x1B[49m"),bgRed:X("\x1B[41m","\x1B[49m"),bgGreen:X("\x1B[42m","\x1B[49m"),bgYellow:X("\x1B[43m","\x1B[49m"),bgBlue:X("\x1B[44m","\x1B[49m"),bgMagenta:X("\x1B[45m","\x1B[49m"),bgCyan:X("\x1B[46m","\x1B[49m"),bgWhite:X("\x1B[47m","\x1B[49m"),blackBright:X("\x1B[90m","\x1B[39m"),redBright:X("\x1B[91m","\x1B[39m"),greenBright:X("\x1B[92m","\x1B[39m"),yellowBright:X("\x1B[93m","\x1B[39m"),blueBright:X("\x1B[94m","\x1B[39m"),magentaBright:X("\x1B[95m","\x1B[39m"),cyanBright:X("\x1B[96m","\x1B[39m"),whiteBright:X("\x1B[97m","\x1B[39m"),bgBlackBright:X("\x1B[100m","\x1B[49m"),bgRedBright:X("\x1B[101m","\x1B[49m"),bgGreenBright:X("\x1B[102m","\x1B[49m"),bgYellowBright:X("\x1B[103m","\x1B[49m"),bgBlueBright:X("\x1B[104m","\x1B[49m"),bgMagentaBright:X("\x1B[105m","\x1B[49m"),bgCyanBright:X("\x1B[106m","\x1B[49m"),bgWhiteBright:X("\x1B[107m","\x1B[49m")}};k8.exports=AG();k8.exports.createColors=AG});var NG=N((DG)=>{Object.defineProperty(DG,"__esModule",{value:!0});DG.default=/((['"])(?:(?!\2|\\).|\\(?:\r\n|[\s\S]))*(\2)?|`(?:[^`\\$]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{[^}]*\}?)*\}?)*(`)?)|(\/\/.*)|(\/\*(?:[^*]|\*(?!\/))*(\*\/)?)|(\/(?!\*)(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\]\\]).|\\.)+\/(?:(?!\s*(?:\b|[\u0080-\uFFFF$\\'"~({]|[+\-!](?!=)|\.?\d))|[gmiyus]{1,6}\b(?![\u0080-\uFFFF$\\]|\s*(?:[+\-*%&|^<>!=?({]|\/(?![\/*])))))|(0[xX][\da-fA-F]+|0[oO][0-7]+|0[bB][01]+|(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?)|((?!\d)(?:(?!\s)[$\w\u0080-\uFFFF]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+)|(--|\+\+|&&|\|\||=>|\.{3}|(?:[+\-\/%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2})=?|[?~.,:;[\](){}])|(\s+)|(^$|[\s\S])/g;DG.matchToToken=function(J){var X={type:"invalid",value:J[0],closed:void 0};if(J[1])X.type="string",X.closed=!!(J[3]||J[4]);else if(J[5])X.type="comment";else if(J[6])X.type="comment",X.closed=!!J[7];else if(J[8])X.type="regex";else if(J[9])X.type="number";else if(J[10])X.type="name";else if(J[11])X.type="punctuator";else if(J[12])X.type="whitespace";return X}});var E8=N((EG)=>{Object.defineProperty(EG,"__esModule",{value:!0});var v8=CG(),wG=NG(),PG=zX();function E31(){return typeof process==="object"&&(process.env.FORCE_COLOR==="0"||process.env.FORCE_COLOR==="false")?!1:v8.isColorSupported}var r9=(J,X)=>(Z)=>J(X(Z));function TG(J){return{keyword:J.cyan,capitalized:J.yellow,jsxIdentifier:J.yellow,punctuator:J.yellow,number:J.magenta,string:J.green,regex:J.magenta,comment:J.gray,invalid:r9(r9(J.white,J.bgRed),J.bold),gutter:J.gray,marker:r9(J.red,J.bold),message:r9(J.red,J.bold),reset:J.reset}}var g31=TG(v8.createColors(!0)),_31=TG(v8.createColors(!1));function LG(J){return J?g31:_31}var f31=new Set(["as","async","from","get","of","set"]),h31=/\r\n|[\n\r\u2028\u2029]/,x31=/^[()[\]{}]$/,bG,y31=/^[a-z][\w-]*$/i,u31=function(J,X,Z){if(J.type==="name"){let Q=J.value;if(PG.isKeyword(Q)||PG.isStrictReservedWord(Q,!0)||f31.has(Q))return"keyword";if(y31.test(Q)&&(Z[X-1]==="<"||Z.slice(X-2,X)==="</"))return"jsxIdentifier";let Y=String.fromCodePoint(Q.codePointAt(0));if(Y!==Y.toLowerCase())return"capitalized"}if(J.type==="punctuator"&&x31.test(J.value))return"bracket";if(J.type==="invalid"&&(J.value==="@"||J.value==="#"))return"punctuator";return J.type};bG=function*(J){let X;while(X=wG.default.exec(J)){let Z=wG.matchToToken(X);yield{type:u31(Z,X.index,J),value:Z.value}}};function kG(J){if(J==="")return"";let X=LG(!0),Z="";for(let{type:Q,value:Y}of bG(J))if(Q in X)Z+=Y.split(h31).map((z)=>X[Q](z)).join(`
|
|
28
|
+
`);else Z+=Y;return Z}var SG=!1,IG=/\r\n|[\n\r\u2028\u2029]/;function m31(J,X,Z,Q){let Y=Object.assign({column:0,line:-1},J.start),z=Object.assign({},Y,J.end),{linesAbove:H=2,linesBelow:G=3}=Z||{},W=Y.line-Q,V=Y.column,U=z.line-Q,q=z.column,O=Math.max(W-(H+1),0),A=Math.min(X.length,U+G);if(W===-1)O=0;if(U===-1)A=X.length;let D=U-W,S={};if(D)for(let C=0;C<=D;C++){let L=C+W;if(!V)S[L]=!0;else if(C===0){let b=X[L-1].length;S[L]=[V,b-V+1]}else if(C===D)S[L]=[0,q];else{let b=X[L-C].length;S[L]=[0,b]}}else if(V===q)if(V)S[W]=[V,0];else S[W]=!0;else S[W]=[V,q-V];return{start:O,end:A,markerLines:S}}function vG(J,X,Z={}){let Q=Z.forceColor||E31()&&Z.highlightCode,Y=(Z.startLine||1)-1,z=LG(Q),H=J.split(IG),{start:G,end:W,markerLines:V}=m31(X,H,Z,Y),U=X.start&&typeof X.start.column==="number",q=String(W+Y).length,A=(Q?kG(J):J).split(IG,W).slice(G,W).map((D,S)=>{let C=G+1+S,b=` ${` ${C+Y}`.slice(-q)} |`,s=V[C],h=!V[C+1];if(s){let i="";if(Array.isArray(s)){let H1=D.slice(0,Math.max(s[0]-1,0)).replace(/[^\t]/g," "),M1=s[1]||1;if(i=[`
|
|
29
|
+
`,z.gutter(b.replace(/\d/g," "))," ",H1,z.marker("^").repeat(M1)].join(""),h&&Z.message)i+=" "+z.message(Z.message)}return[z.marker(">"),z.gutter(b),D.length>0?` ${D}`:"",i].join("")}else return` ${z.gutter(b)}${D.length>0?` ${D}`:""}`}).join(`
|
|
30
|
+
`);if(Z.message&&!U)A=`${" ".repeat(q+1)}${Z.message}
|
|
31
|
+
${A}`;if(Q)return z.reset(A);else return A}function c31(J,X,Z,Q={}){if(!SG){SG=!0;let z="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";if(process.emitWarning)process.emitWarning(z,"DeprecationWarning");else{let H=Error(z);H.name="DeprecationWarning",console.warn(Error(z))}}return Z=Math.max(Z,0),vG(J,{start:{column:Z,line:X}},Q)}EG.codeFrameColumns=vG;EG.default=c31;EG.highlight=kG});var fG=N((gG)=>{Object.defineProperty(gG,"__esModule",{value:!0});gG.hooks=void 0;var dS1=gG.hooks=[function(J,X){if(J.key==="test"&&(X.isWhile()||X.isSwitchCase())||J.key==="declaration"&&X.isExportDeclaration()||J.key==="body"&&X.isLabeledStatement()||J.listKey==="declarations"&&X.isVariableDeclaration()&&X.node.declarations.length===1||J.key==="expression"&&X.isExpressionStatement())return X.remove(),!0},function(J,X){if(X.isSequenceExpression()&&X.node.expressions.length===1)return X.replaceWith(X.node.expressions[0]),!0},function(J,X){if(X.isBinary()){if(J.key==="left")X.replaceWith(X.node.right);else X.replaceWith(X.node.left);return!0}},function(J,X){if(X.isIfStatement()&&J.key==="consequent"||J.key==="body"&&(X.isLoop()||X.isArrowFunctionExpression()))return J.replaceWith({type:"BlockStatement",directives:[],body:[]}),!0}]});var d9=N((cG)=>{Object.defineProperty(cG,"__esModule",{value:!0});cG._assertUnremoved=mG;cG._callRemovalHooks=yG;cG._markRemoved=g8;cG._remove=uG;cG._removeFromScope=xG;cG.remove=o31;var r31=fG(),d31=O0(),a31=_8(),hG=iJ(),s31=Y1(),t31=a9(),n31=qJ();function o31(){var J;if(mG.call(this),n31.resync.call(this),yG.call(this)){g8.call(this);return}if(!((J=this.opts)!=null&&J.noScope))xG.call(this);this.shareCommentsWithSiblings(),uG.call(this),g8.call(this)}function xG(){let J=s31.getBindingIdentifiers(this.node,!1,!1,!0);Object.keys(J).forEach((X)=>this.scope.removeBinding(X))}function yG(){if(this.parentPath){for(let J of r31.hooks)if(J(this,this.parentPath))return!0}}function uG(){if(Array.isArray(this.container))this.container.splice(this.key,1),t31.updateSiblingKeys.call(this,this.key,-1);else a31._replaceWith.call(this,null)}function g8(){if(this._traverseFlags|=hG.SHOULD_SKIP|hG.REMOVED,this.parent){var J;(J=(0,d31.getCachedPaths)(this))==null||J.delete(this.node)}this.node=null}function mG(){if(this.removed)throw this.buildCodeFrameError("NodePath has been removed so is read-only.")}});var dG=N((pG)=>{Object.defineProperty(pG,"__esModule",{value:!0});pG.default=void 0;var lG=Y1(),zV1=lG,{react:HV1}=lG,{cloneNode:GV1,jsxExpressionContainer:WV1,variableDeclaration:VV1,variableDeclarator:KV1}=zV1,UV1={ReferencedIdentifier(J,X){if(J.isJSXIdentifier()&&HV1.isCompatTag(J.node.name)&&!J.parentPath.isJSXMemberExpression())return;if(J.node.name==="this"){let Q=J.scope;do if(Q.path.isFunction()&&!Q.path.isArrowFunctionExpression())break;while(Q=Q.parent);if(Q)X.breakOnScopePaths.push(Q.path)}let Z=J.scope.getBinding(J.node.name);if(!Z)return;for(let Q of Z.constantViolations)if(Q.scope!==Z.path.scope){X.mutableBinding=!0,J.stop();return}if(Z!==X.scope.getBinding(J.node.name))return;X.bindings[J.node.name]=Z}};class iG{constructor(J,X){this.breakOnScopePaths=void 0,this.bindings=void 0,this.mutableBinding=void 0,this.scopes=void 0,this.scope=void 0,this.path=void 0,this.attachAfter=void 0,this.breakOnScopePaths=[],this.bindings={},this.mutableBinding=!1,this.scopes=[],this.scope=X,this.path=J,this.attachAfter=!1}isCompatibleScope(J){for(let X of Object.keys(this.bindings)){let Z=this.bindings[X];if(!J.bindingIdentifierEquals(X,Z.identifier))return!1}return!0}getCompatibleScopes(){let J=this.path.scope;do{if(this.isCompatibleScope(J))this.scopes.push(J);else break;if(this.breakOnScopePaths.includes(J.path))break}while(J=J.parent)}getAttachmentPath(){let J=this._getAttachmentPath();if(!J)return;let X=J.scope;if(X.path===J)X=J.scope.parent;if(X.path.isProgram()||X.path.isFunction())for(let Z of Object.keys(this.bindings)){if(!X.hasOwnBinding(Z))continue;let Q=this.bindings[Z];if(Q.kind==="param"||Q.path.parentKey==="params")continue;if(this.getAttachmentParentForPath(Q.path).key>=J.key){this.attachAfter=!0,J=Q.path;for(let z of Q.constantViolations)if(this.getAttachmentParentForPath(z).key>J.key)J=z}}return J}_getAttachmentPath(){let X=this.scopes.pop();if(!X)return;if(X.path.isFunction())if(this.hasOwnParamBindings(X)){if(this.scope===X)return;let Z=X.path.get("body").get("body");for(let Q=0;Q<Z.length;Q++){if(Z[Q].node._blockHoist)continue;return Z[Q]}}else return this.getNextScopeAttachmentParent();else if(X.path.isProgram())return this.getNextScopeAttachmentParent()}getNextScopeAttachmentParent(){let J=this.scopes.pop();if(J)return this.getAttachmentParentForPath(J.path)}getAttachmentParentForPath(J){do if(!J.parentPath||Array.isArray(J.container)&&J.isStatement())return J;while(J=J.parentPath);return J}hasOwnParamBindings(J){for(let X of Object.keys(this.bindings)){if(!J.hasOwnBinding(X))continue;let Z=this.bindings[X];if(Z.kind==="param"&&Z.constant)return!0}return!1}run(){if(this.path.traverse(UV1,this),this.mutableBinding)return;this.getCompatibleScopes();let J=this.getAttachmentPath();if(!J)return;if(J.getFunctionParent()===this.path.getFunctionParent())return;let X=J.scope.generateUidIdentifier("ref"),Z=KV1(X,this.path.node),Q=this.attachAfter?"insertAfter":"insertBefore",[Y]=J[Q]([J.isVariableDeclarator()?Z:VV1("var",[Z])]),z=this.path.parentPath;if(z.isJSXElement()&&this.path.container===z.node.children)X=WV1(X);return this.path.replaceWith(GV1(X)),Y.isVariableDeclarator()?Y.get("init"):Y.get("declarations.0.init")}}pG.default=iG});var a9=N((JW)=>{Object.defineProperty(JW,"__esModule",{value:!0});JW._containerInsert=u8;JW._containerInsertAfter=tG;JW._containerInsertBefore=m8;JW._verifyNodeList=_X;JW.insertAfter=TV1;JW.insertBefore=SV1;JW.pushContainer=bV1;JW.unshiftContainer=LV1;JW.updateSiblingKeys=eG;var BV1=O0(),y8=iJ(),f8=qJ(),s9=d9(),RV1=Y1(),$V1=dG(),{arrowFunctionExpression:qV1,assertExpression:FV1,assignmentExpression:jV1,blockStatement:aG,callExpression:MV1,cloneNode:h8,expressionStatement:x8,isAssignmentExpression:OV1,isCallExpression:AV1,isExportNamedDeclaration:sG,isExpression:CV1,isIdentifier:DV1,isSequenceExpression:NV1,isSuper:wV1,thisExpression:PV1}=RV1;function SV1(J){s9._assertUnremoved.call(this);let X=_X.call(this,J),{parentPath:Z,parent:Q}=this;if(Z.isExpressionStatement()||Z.isLabeledStatement()||sG(Q)||Z.isExportDefaultDeclaration()&&this.isDeclaration())return Z.insertBefore(X);else if(this.isNodeType("Expression")&&!this.isJSXElement()||Z.isForStatement()&&this.key==="init"){if(this.node)X.push(this.node);return this.replaceExpressionWithStatements(X)}else if(Array.isArray(this.container))return m8.call(this,X);else if(this.isStatementOrBlock()){let Y=this.node,z=Y&&(!this.isExpressionStatement()||Y.expression!=null),[H]=this.replaceWith(aG(z?[Y]:[]));return H.unshiftContainer("body",X)}else throw Error("We don't know what to do with this node type. We were previously a Statement but we can't fit in here?")}function u8(J,X){eG.call(this,J,X.length);let Z=[];this.container.splice(J,0,...X);for(let z=0;z<X.length;z++){var Q;let H=J+z,G=this.getSibling(H);if(Z.push(G),(Q=this.context)!=null&&Q.queue)f8.pushContext.call(G,this.context)}let Y=f8._getQueueContexts.call(this);for(let z of Z){f8.setScope.call(z),z.debug("Inserted.");for(let H of Y)H.maybeQueue(z,!0)}return Z}function m8(J){return u8.call(this,this.key,J)}function tG(J){return u8.call(this,this.key+1,J)}var nG=(J)=>J[J.length-1];function oG(J){return NV1(J.parent)&&(nG(J.parent.expressions)!==J.node||oG(J.parentPath))}function IV1(J,X){if(!OV1(J)||!DV1(J.left))return!1;let Z=X.getBlockParent();return Z.hasOwnBinding(J.left.name)&&Z.getOwnBinding(J.left.name).constantViolations.length<=1}function TV1(J){if(s9._assertUnremoved.call(this),this.isSequenceExpression())return nG(this.get("expressions")).insertAfter(J);let X=_X.call(this,J),{parentPath:Z,parent:Q}=this;if(Z.isExpressionStatement()||Z.isLabeledStatement()||sG(Q)||Z.isExportDefaultDeclaration()&&this.isDeclaration())return Z.insertAfter(X.map((Y)=>{return CV1(Y)?x8(Y):Y}));else if(this.isNodeType("Expression")&&!this.isJSXElement()&&!Z.isJSXElement()||Z.isForStatement()&&this.key==="init"){let Y=this;if(Y.node){let z=Y.node,{scope:H}=this;if(H.path.isPattern())return FV1(z),Y.replaceWith(MV1(qV1([],z),[])),Y.get("callee.body").insertAfter(X),[Y];if(oG(Y))X.unshift(z);else if(AV1(z)&&wV1(z.callee))X.unshift(z),X.push(PV1());else if(IV1(z,H))X.unshift(z),X.push(h8(z.left));else if(H.isPure(z,!0))X.push(z);else{if(Z.isMethod({computed:!0,key:z}))H=H.parent;let G=H.generateDeclaredUidIdentifier();X.unshift(x8(jV1("=",h8(G),z))),X.push(x8(h8(G)))}}return this.replaceExpressionWithStatements(X)}else if(Array.isArray(this.container))return tG.call(this,X);else if(this.isStatementOrBlock()){let Y=this.node,z=Y&&(!this.isExpressionStatement()||Y.expression!=null),[H]=this.replaceWith(aG(z?[Y]:[]));return H.pushContainer("body",X)}else throw Error("We don't know what to do with this node type. We were previously a Statement but we can't fit in here?")}function eG(J,X){if(!this.parent)return;let Z=(0,BV1.getCachedPaths)(this);if(!Z)return;for(let[,Q]of Z)if(typeof Q.key==="number"&&Q.container===this.container&&Q.key>=J)Q.key+=X}function _X(J){if(!J)return[];if(!Array.isArray(J))J=[J];for(let X=0;X<J.length;X++){let Z=J[X],Q;if(!Z)Q="has falsy node";else if(typeof Z!=="object")Q="contains a non-object node";else if(!Z.type)Q="without a type";else if(Z instanceof y8.default)Q="has a NodePath when it expected a raw object";if(Q){let Y=Array.isArray(Z)?"array":typeof Z;throw Error(`Node list ${Q} with the index of ${X} and type of ${Y}`)}}return J}function LV1(J,X){s9._assertUnremoved.call(this);let Z=_X.call(this,X),Q=this.node[J],Y=y8.default.get({parentPath:this,parent:this.node,container:Q,listKey:J,key:0}).setContext(this.context);return m8.call(Y,Z)}function bV1(J,X){s9._assertUnremoved.call(this);let Z=_X.call(this,X),Q=this.node[J];return y8.default.get({parentPath:this,parent:this.node,container:Q,listKey:J,key:Q.length}).setContext(this.context).replaceWithMultiple(Z)}JW.hoist=function(X=this.scope){return new $V1.default(this,X).run()}});var _8=N((VW)=>{Object.defineProperty(VW,"__esModule",{value:!0});VW._replaceWith=WW;VW.replaceExpressionWithStatements=$K1;VW.replaceInline=qK1;VW.replaceWith=RK1;VW.replaceWithMultiple=UK1;VW.replaceWithSourceString=BK1;var mV1=E8(),l8=i0(),cV1=iJ(),zW=O0(),i8=a9(),lV1=v9(),iV1=Y1(),r0=qJ(),{FUNCTION_TYPES:XW,arrowFunctionExpression:pV1,assignmentExpression:HW,awaitExpression:rV1,blockStatement:dV1,buildUndefinedNode:c8,callExpression:aV1,cloneNode:p8,conditionalExpression:sV1,expressionStatement:tV1,getBindingIdentifiers:nV1,identifier:oV1,inheritLeadingComments:eV1,inheritTrailingComments:JK1,inheritsComments:XK1,isBlockStatement:ZK1,isEmptyStatement:ZW,isExpression:GW,isExpressionStatement:QK1,isIfStatement:YK1,isProgram:zK1,isStatement:HK1,isVariableDeclaration:GK1,removeComments:WK1,returnStatement:QW,sequenceExpression:VK1,validate:YW,yieldExpression:KK1}=iV1;function UK1(J){var X;r0.resync.call(this);let Z=i8._verifyNodeList.call(this,J);eV1(Z[0],this.node),JK1(Z[Z.length-1],this.node),(X=(0,zW.getCachedPaths)(this))==null||X.delete(this.node),this.node=this.container[this.key]=null;let Q=this.insertAfter(J);if(this.node)this.requeue();else this.remove();return Q}function BK1(J){r0.resync.call(this);let X;try{J=`(${J})`,X=(0,lV1.parse)(J)}catch(Q){let Y=Q.loc;if(Y)Q.message+=` - make sure this is an expression.
|
|
32
|
+
`+(0,mV1.codeFrameColumns)(J,{start:{line:Y.line,column:Y.column+1}}),Q.code="BABEL_REPLACE_SOURCE_ERROR";throw Q}let Z=X.program.body[0].expression;return l8.default.removeProperties(Z),this.replaceWith(Z)}function RK1(J){if(r0.resync.call(this),this.removed)throw Error("You can't replace this node, we've already removed it");let X=J instanceof cV1.default?J.node:J;if(!X)throw Error("You passed `path.replaceWith()` a falsy node, use `path.remove()` instead");if(this.node===X)return[this];if(this.isProgram()&&!zK1(X))throw Error("You can only replace a Program root node with another Program node");if(Array.isArray(X))throw Error("Don't use `path.replaceWith()` with an array of nodes, use `path.replaceWithMultiple()`");if(typeof X==="string")throw Error("Don't use `path.replaceWith()` with a source string, use `path.replaceWithSourceString()`");let Z="";if(this.isNodeType("Statement")&&GW(X)){if(!this.canHaveVariableDeclarationOrExpression()&&!this.canSwapBetweenExpressionAndStatement(X)&&!this.parentPath.isExportDefaultDeclaration())X=tV1(X),Z="expression"}if(this.isNodeType("Expression")&&HK1(X)){if(!this.canHaveVariableDeclarationOrExpression()&&!this.canSwapBetweenExpressionAndStatement(X))return this.replaceExpressionWithStatements([X])}let Q=this.node;if(Q)XK1(X,Q),WK1(Q);return WW.call(this,X),this.type=X.type,r0.setScope.call(this),this.requeue(),[Z?this.get(Z):this]}function WW(J){var X;if(!this.container)throw ReferenceError("Container is falsy");if(this.inList)YW(this.parent,this.key,[J]);else YW(this.parent,this.key,J);this.debug(`Replace with ${J==null?void 0:J.type}`),(X=(0,zW.getCachedPaths)(this))==null||X.set(J,this).delete(this.node),this.node=J,this.container[this.key]=J}function $K1(J){r0.resync.call(this);let X=[],Z=t9(J,X);if(Z){for(let O of X)this.scope.push({id:O});return this.replaceWith(Z)[0].get("expressions")}let Q=this.getFunctionParent(),Y=Q==null?void 0:Q.node.async,z=Q==null?void 0:Q.node.generator,H=pV1([],dV1(J));this.replaceWith(aV1(H,[]));let G=this.get("callee");G.get("body").scope.hoistVariables((O)=>this.scope.push({id:O}));let W=G.getCompletionRecords();for(let O of W){if(!O.isExpressionStatement())continue;let A=O.findParent((D)=>D.isLoop());if(A){let D=A.getData("expressionReplacementReturnUid");if(!D)D=G.scope.generateDeclaredUidIdentifier("ret"),G.get("body").pushContainer("body",QW(p8(D))),A.setData("expressionReplacementReturnUid",D);else D=oV1(D.name);O.get("expression").replaceWith(HW("=",p8(D),O.node.expression))}else O.replaceWith(QW(O.node.expression))}G.arrowFunctionToExpression();let V=G,U=Y&&l8.default.hasType(V.node.body,"AwaitExpression",XW),q=z&&l8.default.hasType(V.node.body,"YieldExpression",XW);if(U){if(V.set("async",!0),!q)this.replaceWith(rV1(this.node))}if(q)V.set("generator",!0),this.replaceWith(KK1(this.node,!0));return V.get("body.body")}function t9(J,X){let Z=[],Q=!0;for(let Y of J){if(!ZW(Y))Q=!1;if(GW(Y))Z.push(Y);else if(QK1(Y))Z.push(Y.expression);else if(GK1(Y)){if(Y.kind!=="var")return;for(let z of Y.declarations){let H=nV1(z);for(let G of Object.keys(H))X.push(p8(H[G]));if(z.init)Z.push(HW("=",z.id,z.init))}Q=!0}else if(YK1(Y)){let z=Y.consequent?t9([Y.consequent],X):c8(),H=Y.alternate?t9([Y.alternate],X):c8();if(!z||!H)return;Z.push(sV1(Y.test,z,H))}else if(ZK1(Y)){let z=t9(Y.body,X);if(!z)return;Z.push(z)}else if(ZW(Y)){if(J.indexOf(Y)===0)Q=!0}else return}if(Q)Z.push(c8());if(Z.length===1)return Z[0];else return VK1(Z)}function qK1(J){if(r0.resync.call(this),Array.isArray(J))if(Array.isArray(this.container)){J=i8._verifyNodeList.call(this,J);let X=i8._containerInsertAfter.call(this,J);return this.remove(),X}else return this.replaceWithMultiple(J);else return this.replaceWith(J)}});var $W=N((RW)=>{Object.defineProperty(RW,"__esModule",{value:!0});RW.evaluate=LK1;RW.evaluateTruthy=IK1;var DK1=["Number","String","Math"],NK1=["isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent",null,null],wK1=["random"];function KW(J){return DK1.includes(J)}function PK1(J){return NK1.includes(J)}function SK1(J){return wK1.includes(J)}function IK1(){let J=this.evaluate();if(J.confident)return!!J.value}function jJ(J,X){if(!X.confident)return;X.deoptPath=J,X.confident=!1}var UW=new Map([["undefined",void 0],["Infinity",1/0],["NaN",NaN]]);function e1(J,X){let{node:Z}=J,{seen:Q}=X;if(Q.has(Z)){let Y=Q.get(Z);if(Y.resolved)return Y.value;else{jJ(J,X);return}}else{let Y={resolved:!1};Q.set(Z,Y);let z=TK1(J,X);if(X.confident)Y.resolved=!0,Y.value=z;return z}}function TK1(J,X){if(!X.confident)return;if(J.isSequenceExpression()){let Q=J.get("expressions");return e1(Q[Q.length-1],X)}if(J.isStringLiteral()||J.isNumericLiteral()||J.isBooleanLiteral())return J.node.value;if(J.isNullLiteral())return null;if(J.isTemplateLiteral())return BW(J,J.node.quasis,X);if(J.isTaggedTemplateExpression()&&J.get("tag").isMemberExpression()){let Q=J.get("tag.object"),{node:{name:Y}}=Q,z=J.get("tag.property");if(Q.isIdentifier()&&Y==="String"&&!J.scope.getBinding(Y)&&z.isIdentifier()&&z.node.name==="raw")return BW(J,J.node.quasi.quasis,X,!0)}if(J.isConditionalExpression()){let Q=e1(J.get("test"),X);if(!X.confident)return;if(Q)return e1(J.get("consequent"),X);else return e1(J.get("alternate"),X)}if(J.isExpressionWrapper())return e1(J.get("expression"),X);if(J.isMemberExpression()&&!J.parentPath.isCallExpression({callee:J.node})){let Q=J.get("property"),Y=J.get("object");if(Y.isLiteral()){let z=Y.node.value,H=typeof z,G=null;if(J.node.computed){if(G=e1(Q,X),!X.confident)return}else if(Q.isIdentifier())G=Q.node.name;if((H==="number"||H==="string")&&G!=null&&(typeof G==="number"||typeof G==="string"))return z[G]}}if(J.isReferencedIdentifier()){let Q=J.scope.getBinding(J.node.name);if(Q){if(Q.constantViolations.length>0||J.node.start<Q.path.node.end){jJ(Q.path,X);return}let W=Q.path.scope;if(Q.kind==="var"&&W!==Q.scope){let V=!W.path.parentPath.isBlockStatement();for(let U=W.parent;U;U=U.parent){var Z;if(U===J.scope){if(V){jJ(Q.path,X);return}break}if((Z=U.path.parentPath)!=null&&Z.isBlockStatement())V=!0}}if(Q.hasValue)return Q.value}let Y=J.node.name;if(UW.has(Y)){if(!Q)return UW.get(Y);jJ(Q.path,X);return}if(!Q){jJ(J,X);return}let z=Q.path;if(!z.isVariableDeclarator()){jJ(z,X);return}let H=z.get("init"),G=e1(H,X);if(typeof G==="object"&&G!==null&&Q.references>1){jJ(H,X);return}return G}if(J.isUnaryExpression({prefix:!0})){if(J.node.operator==="void")return;let Q=J.get("argument");if(J.node.operator==="typeof"&&(Q.isFunction()||Q.isClass()))return"function";let Y=e1(Q,X);if(!X.confident)return;switch(J.node.operator){case"!":return!Y;case"+":return+Y;case"-":return-Y;case"~":return~Y;case"typeof":return typeof Y}}if(J.isArrayExpression()){let Q=[],Y=J.get("elements");for(let z of Y){let H=z.evaluate();if(H.confident)Q.push(H.value);else{jJ(H.deopt,X);return}}return Q}if(J.isObjectExpression()){let Q={},Y=J.get("properties");for(let z of Y){if(z.isObjectMethod()||z.isSpreadElement()){jJ(z,X);return}let H=z.get("key"),G;if(z.node.computed){if(G=H.evaluate(),!G.confident){jJ(G.deopt,X);return}G=G.value}else if(H.isIdentifier())G=H.node.name;else G=H.node.value;let V=z.get("value").evaluate();if(!V.confident){jJ(V.deopt,X);return}V=V.value,Q[G]=V}return Q}if(J.isLogicalExpression()){let Q=X.confident,Y=e1(J.get("left"),X),z=X.confident;X.confident=Q;let H=e1(J.get("right"),X),G=X.confident;switch(J.node.operator){case"||":if(X.confident=z&&(!!Y||G),!X.confident)return;return Y||H;case"&&":if(X.confident=z&&(!Y||G),!X.confident)return;return Y&&H;case"??":if(X.confident=z&&(Y!=null||G),!X.confident)return;return Y!=null?Y:H}}if(J.isBinaryExpression()){let Q=e1(J.get("left"),X);if(!X.confident)return;let Y=e1(J.get("right"),X);if(!X.confident)return;switch(J.node.operator){case"-":return Q-Y;case"+":return Q+Y;case"/":return Q/Y;case"*":return Q*Y;case"%":return Q%Y;case"**":return Math.pow(Q,Y);case"<":return Q<Y;case">":return Q>Y;case"<=":return Q<=Y;case">=":return Q>=Y;case"==":return Q==Y;case"!=":return Q!=Y;case"===":return Q===Y;case"!==":return Q!==Y;case"|":return Q|Y;case"&":return Q&Y;case"^":return Q^Y;case"<<":return Q<<Y;case">>":return Q>>Y;case">>>":return Q>>>Y}}if(J.isCallExpression()){let Q=J.get("callee"),Y,z;if(Q.isIdentifier()&&!J.scope.getBinding(Q.node.name)&&(KW(Q.node.name)||PK1(Q.node.name)))z=global[Q.node.name];if(Q.isMemberExpression()){let H=Q.get("object"),G=Q.get("property");if(H.isIdentifier()&&G.isIdentifier()&&KW(H.node.name)&&!SK1(G.node.name)){Y=global[H.node.name];let W=G.node.name;if(hasOwnProperty.call(Y,W))z=Y[W]}if(H.isLiteral()&&G.isIdentifier()){let W=typeof H.node.value;if(W==="string"||W==="number")Y=H.node.value,z=Y[G.node.name]}}if(z){let H=J.get("arguments").map((G)=>e1(G,X));if(!X.confident)return;return z.apply(Y,H)}}jJ(J,X)}function BW(J,X,Z,Q=!1){let Y="",z=0,H=J.isTemplateLiteral()?J.get("expressions"):J.get("quasi.expressions");for(let G of X){if(!Z.confident)break;Y+=Q?G.value.raw:G.value.cooked;let W=H[z++];if(W)Y+=String(e1(W,Z))}if(!Z.confident)return;return Y}function LK1(){let J={confident:!0,deoptPath:null,seen:new Map},X=e1(this,J);if(!J.confident)X=void 0;return{confident:J.confident,deopt:J.deoptPath,value:X}}});var jW=N((qW)=>{Object.defineProperty(qW,"__esModule",{value:!0});qW.statements=qW.statement=qW.smart=qW.program=qW.expression=void 0;var vK1=Y1(),{assertExpressionStatement:EK1}=vK1;function r8(J){return{code:(X)=>`/* @babel/template */;
|
|
33
|
+
${X}`,validate:()=>{},unwrap:(X)=>{return J(X.program.body.slice(1))}}}var JI1=qW.smart=r8((J)=>{if(J.length>1)return J;else return J[0]}),XI1=qW.statements=r8((J)=>J),ZI1=qW.statement=r8((J)=>{if(J.length===0)throw Error("Found nothing to return.");if(J.length>1)throw Error("Found multiple statements but wanted one");return J[0]}),gK1=qW.expression={code:(J)=>`(
|
|
34
|
+
${J}
|
|
35
|
+
)`,validate:(J)=>{if(J.program.body.length>1)throw Error("Found multiple statements but wanted one");if(gK1.unwrap(J).start===0)throw Error("Parse result included parens.")},unwrap:({program:J})=>{let[X]=J.body;return EK1(X),X.expression}},QI1=qW.program={code:(J)=>J,validate:()=>{},unwrap:(J)=>J.program}});var n9=N((MW)=>{Object.defineProperty(MW,"__esModule",{value:!0});MW.merge=mK1;MW.normalizeReplacements=lK1;MW.validate=cK1;var yK1=["placeholderWhitelist","placeholderPattern","preserveComments","syntacticPlaceholders"];function uK1(J,X){if(J==null)return{};var Z={};for(var Q in J)if({}.hasOwnProperty.call(J,Q)){if(X.indexOf(Q)!==-1)continue;Z[Q]=J[Q]}return Z}function mK1(J,X){let{placeholderWhitelist:Z=J.placeholderWhitelist,placeholderPattern:Q=J.placeholderPattern,preserveComments:Y=J.preserveComments,syntacticPlaceholders:z=J.syntacticPlaceholders}=X;return{parser:Object.assign({},J.parser,X.parser),placeholderWhitelist:Z,placeholderPattern:Q,preserveComments:Y,syntacticPlaceholders:z}}function cK1(J){if(J!=null&&typeof J!=="object")throw Error("Unknown template options.");let X=J||{},{placeholderWhitelist:Z,placeholderPattern:Q,preserveComments:Y,syntacticPlaceholders:z}=X,H=uK1(X,yK1);if(Z!=null&&!(Z instanceof Set))throw Error("'.placeholderWhitelist' must be a Set, null, or undefined");if(Q!=null&&!(Q instanceof RegExp)&&Q!==!1)throw Error("'.placeholderPattern' must be a RegExp, false, null, or undefined");if(Y!=null&&typeof Y!=="boolean")throw Error("'.preserveComments' must be a boolean, null, or undefined");if(z!=null&&typeof z!=="boolean")throw Error("'.syntacticPlaceholders' must be a boolean, null, or undefined");if(z===!0&&(Z!=null||Q!=null))throw Error("'.placeholderWhitelist' and '.placeholderPattern' aren't compatible with '.syntacticPlaceholders: true'");return{parser:H,placeholderWhitelist:Z||void 0,placeholderPattern:Q==null?void 0:Q,preserveComments:Y==null?void 0:Y,syntacticPlaceholders:z==null?void 0:z}}function lK1(J){if(Array.isArray(J))return J.reduce((X,Z,Q)=>{return X["$"+Q]=Z,X},{});else if(typeof J==="object"||J==null)return J||void 0;throw Error("Template replacements must be an array, object, null, or undefined")}});var d8=N((AW)=>{Object.defineProperty(AW,"__esModule",{value:!0});AW.default=HU1;var dK1=Y1(),aK1=v9(),sK1=E8(),{isCallExpression:tK1,isExpressionStatement:nK1,isFunction:oK1,isIdentifier:eK1,isJSXIdentifier:JU1,isNewExpression:XU1,isPlaceholder:o9,isStatement:ZU1,isStringLiteral:OW,removePropertiesDeep:QU1,traverse:YU1}=dK1,zU1=/^[_$A-Z0-9]+$/;function HU1(J,X,Z){let{placeholderWhitelist:Q,placeholderPattern:Y,preserveComments:z,syntacticPlaceholders:H}=Z,G=VU1(X,Z.parser,H);QU1(G,{preserveComments:z}),J.validate(G);let W={syntactic:{placeholders:[],placeholderNames:new Set},legacy:{placeholders:[],placeholderNames:new Set},placeholderWhitelist:Q,placeholderPattern:Y,syntacticPlaceholders:H};return YU1(G,GU1,W),Object.assign({ast:G},W.syntactic.placeholders.length?W.syntactic:W.legacy)}function GU1(J,X,Z){var Q;let Y,z=Z.syntactic.placeholders.length>0;if(o9(J)){if(Z.syntacticPlaceholders===!1)throw Error("%%foo%%-style placeholders can't be used when '.syntacticPlaceholders' is false.");Y=J.name.name,z=!0}else if(z||Z.syntacticPlaceholders)return;else if(eK1(J)||JU1(J))Y=J.name;else if(OW(J))Y=J.value;else return;if(z&&(Z.placeholderPattern!=null||Z.placeholderWhitelist!=null))throw Error("'.placeholderWhitelist' and '.placeholderPattern' aren't compatible with '.syntacticPlaceholders: true'");if(!z&&(Z.placeholderPattern===!1||!(Z.placeholderPattern||zU1).test(Y))&&!((Q=Z.placeholderWhitelist)!=null&&Q.has(Y)))return;X=X.slice();let{node:H,key:G}=X[X.length-1],W;if(OW(J)||o9(J,{expectedNode:"StringLiteral"}))W="string";else if(XU1(H)&&G==="arguments"||tK1(H)&&G==="arguments"||oK1(H)&&G==="params")W="param";else if(nK1(H)&&!o9(J))W="statement",X=X.slice(0,-1);else if(ZU1(J)&&o9(J))W="statement";else W="other";let{placeholders:V,placeholderNames:U}=!z?Z.legacy:Z.syntactic;V.push({name:Y,type:W,resolve:(q)=>WU1(q,X),isDuplicate:U.has(Y)}),U.add(Y)}function WU1(J,X){let Z=J;for(let z=0;z<X.length-1;z++){let{key:H,index:G}=X[z];if(G===void 0)Z=Z[H];else Z=Z[H][G]}let{key:Q,index:Y}=X[X.length-1];return{parent:Z,key:Q,index:Y}}function VU1(J,X,Z){let Q=(X.plugins||[]).slice();if(Z!==!1)Q.push("placeholders");X=Object.assign({allowAwaitOutsideFunction:!0,allowReturnOutsideFunction:!0,allowNewTargetOutsideFunction:!0,allowSuperOutsideMethod:!0,allowYieldOutsideFunction:!0,sourceType:"module"},X,{plugins:Q});try{return(0,aK1.parse)(J,X)}catch(Y){let z=Y.loc;if(z)Y.message+=`
|
|
36
|
+
`+(0,sK1.codeFrameColumns)(J,{start:z}),Y.code="BABEL_TEMPLATE_PARSE_ERROR";throw Y}}});var t8=N((NW)=>{Object.defineProperty(NW,"__esModule",{value:!0});NW.default=FU1;var UU1=Y1(),{blockStatement:BU1,cloneNode:s8,emptyStatement:RU1,expressionStatement:a8,identifier:e9,isStatement:CW,isStringLiteral:$U1,stringLiteral:qU1,validate:DW}=UU1;function FU1(J,X){let Z=s8(J.ast);if(X)J.placeholders.forEach((Q)=>{if(!hasOwnProperty.call(X,Q.name)){let Y=Q.name;throw Error(`Error: No substitution given for "${Y}". If this is not meant to be a
|
|
37
37
|
placeholder you may want to consider passing one of the following options to @babel/template:
|
|
38
|
-
- { placeholderPattern: false, placeholderWhitelist: new Set(['${
|
|
39
|
-
- { placeholderPattern: /^${
|
|
38
|
+
- { placeholderPattern: false, placeholderWhitelist: new Set(['${Y}'])}
|
|
39
|
+
- { placeholderPattern: /^${Y}$/ }`)}}),Object.keys(X).forEach((Q)=>{if(!J.placeholderNames.has(Q))throw Error(`Unknown substitution "${Q}" given`)});return J.placeholders.slice().reverse().forEach((Q)=>{try{var Y;jU1(Q,Z,(Y=X&&X[Q.name])!=null?Y:null)}catch(z){throw z.message=`@babel/template placeholder "${Q.name}": ${z.message}`,z}}),Z}function jU1(J,X,Z){if(J.isDuplicate){if(Array.isArray(Z))Z=Z.map((G)=>s8(G));else if(typeof Z==="object")Z=s8(Z)}let{parent:Q,key:Y,index:z}=J.resolve(X);if(J.type==="string"){if(typeof Z==="string")Z=qU1(Z);if(!Z||!$U1(Z))throw Error("Expected string substitution")}else if(J.type==="statement"){if(z===void 0){if(!Z)Z=RU1();else if(Array.isArray(Z))Z=BU1(Z);else if(typeof Z==="string")Z=a8(e9(Z));else if(!CW(Z))Z=a8(Z)}else if(Z&&!Array.isArray(Z)){if(typeof Z==="string")Z=e9(Z);if(!CW(Z))Z=a8(Z)}}else if(J.type==="param"){if(typeof Z==="string")Z=e9(Z);if(z===void 0)throw Error("Assertion failure.")}else{if(typeof Z==="string")Z=e9(Z);if(Array.isArray(Z))throw Error("Cannot replace single expression with an array.")}function H(G,W,V){let U=G[W];if(G[W]=V,U.type==="Identifier"||U.type==="Placeholder"){if(U.typeAnnotation)V.typeAnnotation=U.typeAnnotation;if(U.optional)V.optional=U.optional;if(U.decorators)V.decorators=U.decorators}}if(z===void 0)DW(Q,Y,Z),H(Q,Y,Z);else{let G=Q[Y].slice();if(J.type==="statement"||J.type==="param")if(Z==null)G.splice(z,1);else if(Array.isArray(Z))G.splice(z,1,...Z);else H(G,z,Z);else H(G,z,Z);DW(Q,Y,G),Q[Y]=G}}});var PW=N((wW)=>{Object.defineProperty(wW,"__esModule",{value:!0});wW.default=DU1;var OU1=n9(),AU1=d8(),CU1=t8();function DU1(J,X,Z){X=J.code(X);let Q;return(Y)=>{let z=(0,OU1.normalizeReplacements)(Y);if(!Q)Q=(0,AU1.default)(J,X,Z);return J.unwrap((0,CU1.default)(Q,z))}}});var IW=N((SW)=>{Object.defineProperty(SW,"__esModule",{value:!0});SW.default=IU1;var wU1=n9(),PU1=d8(),SU1=t8();function IU1(J,X,Z){let{metadata:Q,names:Y}=TU1(J,X,Z);return(z)=>{let H={};return z.forEach((G,W)=>{H[Y[W]]=G}),(G)=>{let W=(0,wU1.normalizeReplacements)(G);if(W)Object.keys(W).forEach((V)=>{if(hasOwnProperty.call(H,V))throw Error("Unexpected replacement overlap.")});return J.unwrap((0,SU1.default)(Q,W?Object.assign(W,H):H))}}}function TU1(J,X,Z){let Q="BABEL_TPL$",Y=X.join("");do Q="$$"+Q;while(Y.includes(Q));let{names:z,code:H}=LU1(X,Q);return{metadata:(0,PU1.default)(J,J.code(H),{parser:Z.parser,placeholderWhitelist:new Set(z.concat(Z.placeholderWhitelist?Array.from(Z.placeholderWhitelist):[])),placeholderPattern:Z.placeholderPattern,preserveComments:Z.preserveComments,syntacticPlaceholders:Z.syntacticPlaceholders}),names:z}}function LU1(J,X){let Z=[],Q=J[0];for(let Y=1;Y<J.length;Y++){let z=`${X}${Y-1}`;Z.push(z),Q+=z+J[Y]}return{names:Z,code:Q}}});var gW=N((EW)=>{Object.defineProperty(EW,"__esModule",{value:!0});EW.default=vW;var vJ=n9(),TW=PW(),LW=IW(),bW=(0,vJ.validate)({placeholderPattern:!1});function vW(J,X){let Z=new WeakMap,Q=new WeakMap,Y=X||(0,vJ.validate)(null);return Object.assign((z,...H)=>{if(typeof z==="string"){if(H.length>1)throw Error("Unexpected extra params.");return kW((0,TW.default)(J,z,(0,vJ.merge)(Y,(0,vJ.validate)(H[0]))))}else if(Array.isArray(z)){let G=Z.get(z);if(!G)G=(0,LW.default)(J,z,Y),Z.set(z,G);return kW(G(H))}else if(typeof z==="object"&&z){if(H.length>0)throw Error("Unexpected extra params.");return vW(J,(0,vJ.merge)(Y,(0,vJ.validate)(z)))}throw Error(`Unexpected template param ${typeof z}`)},{ast:(z,...H)=>{if(typeof z==="string"){if(H.length>1)throw Error("Unexpected extra params.");return(0,TW.default)(J,z,(0,vJ.merge)((0,vJ.merge)(Y,(0,vJ.validate)(H[0])),bW))()}else if(Array.isArray(z)){let G=Q.get(z);if(!G)G=(0,LW.default)(J,z,(0,vJ.merge)(Y,bW)),Q.set(z,G);return G(H)()}throw Error(`Unexpected template param ${typeof z}`)}})}function kW(J){let X="";try{throw Error()}catch(Z){if(Z.stack)X=Z.stack.split(`
|
|
40
40
|
`).slice(3).join(`
|
|
41
|
-
`)}return(
|
|
41
|
+
`)}return(Z)=>{try{return J(Z)}catch(Q){throw Q.stack+=`
|
|
42
42
|
=============
|
|
43
|
-
${G}`,W}}}});var X7=P((f7)=>{Object.defineProperty(f7,"__esModule",{value:!0});f7.statements=f7.statement=f7.smart=f7.program=f7.expression=f7.default=void 0;var zX=_Q(),BX=eQ(),jJ=f7.smart=BX.default(zX.smart),jQf=f7.statement=BX.default(zX.statement),PQf=f7.statements=BX.default(zX.statements),DQf=f7.expression=BX.default(zX.expression),IQf=f7.program=BX.default(zX.program),ZFf=f7.default=Object.assign(jJ.bind(void 0),{smart:jJ,statement:jQf,statements:PQf,expression:DQf,program:IQf,ast:jJ.ast})});var Y7=P((Z7)=>{Object.defineProperty(Z7,"__esModule",{value:!0});Z7.arrowFunctionToExpression=V7f;Z7.ensureBlock=R7f;Z7.ensureFunctionName=C7f;Z7.splitExportDeclaration=F7f;Z7.toComputedKey=W7f;Z7.unwrapFunctionEnvironment=J7f;var wQf=Vf(),kQf=X7(),IJ=QX(),vQf=KG(),{arrowFunctionExpression:TJ,assignmentExpression:V1,binaryExpression:PJ,blockStatement:gQf,callExpression:T1,conditionalExpression:_Qf,expressionStatement:J7,identifier:Cf,isIdentifier:uQf,jsxIdentifier:hQf,logicalExpression:yQf,LOGICAL_OPERATORS:xQf,memberExpression:QG,metaProperty:mQf,numericLiteral:lQf,objectExpression:cQf,restElement:aQf,returnStatement:iQf,sequenceExpression:rQf,spreadElement:sQf,stringLiteral:U7,super:DJ,thisExpression:MX,toExpression:V7,unaryExpression:pQf,toBindingIdentifierName:dQf,isFunction:tQf,isAssignmentPattern:nQf,isRestElement:oQf,getFunctionName:eQf,cloneNode:H1,variableDeclaration:f7f,variableDeclarator:G7f,exportNamedDeclaration:W7,exportSpecifier:R7,inherits:X7f}=wQf;function W7f(){let f;if(this.isMemberExpression())f=this.node.property;else if(this.isProperty()||this.isMethod())f=this.node.key;else throw new ReferenceError("todo");if(!this.node.computed){if(uQf(f))f=U7(f.name)}return f}function R7f(){let f=this.get("body"),G=f.node;if(Array.isArray(f))throw new Error("Can't convert array path to a block statement");if(!G)throw new Error("Can't convert node without a body");if(f.isBlockStatement())return G;let X=[],W="body",R,J;if(f.isStatement())J="body",R=0,X.push(f.node);else if(W+=".body.0",this.isFunction())R="argument",X.push(iQf(f.node));else R="expression",X.push(J7(f.node));this.node.body=gQf(X);let U=this.get(W);return vQf.setup.call(f,U,J?U.node[J]:U.node,J,R),this.node}Z7.arrowFunctionToShadowed=function(){if(!this.isArrowFunctionExpression())return;this.arrowFunctionToExpression()};function J7f(){if(!this.isArrowFunctionExpression()&&!this.isFunctionExpression()&&!this.isFunctionDeclaration())throw this.buildCodeFrameError("Can only unwrap the environment of a function.");H7(this)}function U7f(f,G){f.node.type=G}function V7f({allowInsertArrow:f=!0,allowInsertArrowWithRest:G=f,noNewArrows:X=!((W)=>(W=arguments[0])==null?void 0:W.specCompliant)()}={}){if(!this.isArrowFunctionExpression())throw this.buildCodeFrameError("Cannot convert non-arrow function to a function expression.");let W=this;if(!X){var R;W=(R=W.ensureFunctionName(!1))!=null?R:W}let{thisBinding:J,fnPath:U}=H7(W,X,f,G);if(U.ensureBlock(),U7f(U,"FunctionExpression"),!X){let V=J?null:U.scope.generateUidIdentifier("arrowCheckId");if(V)U.parentPath.scope.push({id:V,init:cQf([])});return U.get("body").unshiftContainer("body",J7(T1(this.hub.addHelper("newArrowCheck"),[MX(),V?Cf(V.name):Cf(J)]))),U.replaceWith(T1(QG(U.node,Cf("bind")),[V?Cf(V.name):MX()])),U.get("callee.object")}return U}var H7f=IJ.environmentVisitor({CallExpression(f,{allSuperCalls:G}){if(!f.get("callee").isSuper())return;G.push(f)}});function H7(f,G=!0,X=!0,W=!0){let R,J=f.findParent((A)=>{if(A.isArrowFunctionExpression())return R!=null||(R=A),!1;return A.isFunction()||A.isProgram()||A.isClassProperty({static:!1})||A.isClassPrivateProperty({static:!1})}),U=J.isClassMethod({kind:"constructor"});if(J.isClassProperty()||J.isClassPrivateProperty())if(R)J=R;else if(X)f.replaceWith(T1(TJ([],V7(f.node)),[])),J=f.get("callee"),f=J.get("body");else throw f.buildCodeFrameError("Unable to transform arrow inside class property");let{thisPaths:V,argumentsPaths:H,newTargetPaths:Q,superProps:Y,superCalls:F}=S7f(f);if(U&&F.length>0){if(!X)throw F[0].buildCodeFrameError("When using '@babel/plugin-transform-arrow-functions', it's not possible to compile `super()` in an arrow function without compiling classes.\nPlease add '@babel/plugin-transform-classes' to your Babel configuration.");if(!W)throw F[0].buildCodeFrameError("When using '@babel/plugin-transform-parameters', it's not possible to compile `super()` in an arrow function with default or rest parameters without compiling classes.\nPlease add '@babel/plugin-transform-classes' to your Babel configuration.");let A=[];J.traverse(H7f,{allSuperCalls:A});let j=B7f(J);A.forEach((b)=>{let I=Cf(j);I.loc=b.node.callee.loc,b.get("callee").replaceWith(I)})}if(H.length>0){let A=KX(J,"arguments",()=>{let j=()=>Cf("arguments");if(J.scope.path.isProgram())return _Qf(PJ("===",pQf("typeof",j()),U7("undefined")),J.scope.buildUndefinedNode(),j());else return j()});H.forEach((j)=>{let b=Cf(A);b.loc=j.node.loc,j.replaceWith(b)})}if(Q.length>0){let A=KX(J,"newtarget",()=>mQf(Cf("new"),Cf("target")));Q.forEach((j)=>{let b=Cf(A);b.loc=j.node.loc,j.replaceWith(b)})}if(Y.length>0){if(!X)throw Y[0].buildCodeFrameError("When using '@babel/plugin-transform-arrow-functions', it's not possible to compile `super.prop` in an arrow function without compiling classes.\nPlease add '@babel/plugin-transform-classes' to your Babel configuration.");Y.reduce((j,b)=>j.concat(Z7f(b)),[]).forEach((j)=>{let b=j.node.computed?"":j.get("property").node.name,I=j.parentPath,L=I.isAssignmentExpression({left:j.node}),E=I.isCallExpression({callee:j.node}),Xf=I.isTaggedTemplateExpression({tag:j.node}),s=M7f(J,L,b),Wf=[];if(j.node.computed)Wf.push(j.get("property").node);if(L){let bf=I.node.right;Wf.push(bf)}let Kf=T1(Cf(s),Wf);if(E)I.unshiftContainer("arguments",MX()),j.replaceWith(QG(Kf,Cf("call"))),V.push(I.get("arguments.0"));else if(L)I.replaceWith(Kf);else if(Xf)j.replaceWith(T1(QG(Kf,Cf("bind"),!1),[MX()])),V.push(j.get("arguments.0"));else j.replaceWith(Kf)})}let q;if(V.length>0||!G){if(q=z7f(J,U),G||U&&Q7(J)){if(V.forEach((A)=>{let j=A.isJSX()?hQf(q):Cf(q);j.loc=A.node.loc,A.replaceWith(j)}),!G)q=null}}return{thisBinding:q,fnPath:f}}function Q7f(f){return xQf.includes(f)}function Z7f(f){if(f.parentPath.isAssignmentExpression()&&f.parentPath.node.operator!=="="){let X=f.parentPath,W=X.node.operator.slice(0,-1),R=X.node.right,J=Q7f(W);if(f.node.computed){let U=f.scope.generateDeclaredUidIdentifier("tmp"),V=f.node.object,H=f.node.property;X.get("left").replaceWith(QG(V,V1("=",U,H),!0)),X.get("right").replaceWith(G(J?"=":W,QG(V,Cf(U.name),!0),R))}else{let U=f.node.object,V=f.node.property;X.get("left").replaceWith(QG(U,V)),X.get("right").replaceWith(G(J?"=":W,QG(U,Cf(V.name)),R))}if(J)X.replaceWith(yQf(W,X.node.left,X.node.right));else X.node.operator="=";return[X.get("left"),X.get("right").get("left")]}else if(f.parentPath.isUpdateExpression()){let X=f.parentPath,W=f.scope.generateDeclaredUidIdentifier("tmp"),R=f.node.computed?f.scope.generateDeclaredUidIdentifier("prop"):null,J=[V1("=",W,QG(f.node.object,R?V1("=",R,f.node.property):f.node.property,f.node.computed)),V1("=",QG(f.node.object,R?Cf(R.name):f.node.property,f.node.computed),PJ(f.parentPath.node.operator[0],Cf(W.name),lQf(1)))];if(!f.parentPath.node.prefix)J.push(Cf(W.name));X.replaceWith(rQf(J));let U=X.get("expressions.0.right"),V=X.get("expressions.1.left");return[U,V]}return[f];function G(X,W,R){if(X==="=")return V1("=",W,R);else return PJ(X,W,R)}}function Q7(f){return f.isClassMethod()&&!!f.parentPath.parentPath.node.superClass}var Y7f=IJ.environmentVisitor({CallExpression(f,{supers:G,thisBinding:X}){if(!f.get("callee").isSuper())return;if(G.has(f.node))return;G.add(f.node),f.replaceWithMultiple([f.node,V1("=",Cf(X),Cf("this"))])}});function z7f(f,G){return KX(f,"this",(X)=>{if(!G||!Q7(f))return MX();f.traverse(Y7f,{supers:new WeakSet,thisBinding:X})})}function B7f(f){return KX(f,"supercall",()=>{let G=f.scope.generateUidIdentifier("args");return TJ([aQf(G)],T1(DJ(),[sQf(Cf(G.name))]))})}function M7f(f,G,X){return KX(f,`superprop_${G?"set":"get"}:${X||""}`,()=>{let R=[],J;if(X)J=QG(DJ(),Cf(X));else{let U=f.scope.generateUidIdentifier("prop");R.unshift(U),J=QG(DJ(),Cf(U.name),!0)}if(G){let U=f.scope.generateUidIdentifier("value");R.push(U),J=V1("=",J,Cf(U.name))}return TJ(R,J)})}function KX(f,G,X){let W="binding:"+G,R=f.getData(W);if(!R){let J=f.scope.generateUidIdentifier(G);R=J.name,f.setData(W,R),f.scope.push({id:J,init:X(R)})}return R}var K7f=IJ.environmentVisitor({ThisExpression(f,{thisPaths:G}){G.push(f)},JSXIdentifier(f,{thisPaths:G}){if(f.node.name!=="this")return;if(!f.parentPath.isJSXMemberExpression({object:f.node})&&!f.parentPath.isJSXOpeningElement({name:f.node}))return;G.push(f)},CallExpression(f,{superCalls:G}){if(f.get("callee").isSuper())G.push(f)},MemberExpression(f,{superProps:G}){if(f.get("object").isSuper())G.push(f)},Identifier(f,{argumentsPaths:G}){if(!f.isReferencedIdentifier({name:"arguments"}))return;let X=f.scope;do{if(X.hasOwnBinding("arguments")){X.rename("arguments");return}if(X.path.isFunction()&&!X.path.isArrowFunctionExpression())break}while(X=X.parent);G.push(f)},MetaProperty(f,{newTargetPaths:G}){if(!f.get("meta").isIdentifier({name:"new"}))return;if(!f.get("property").isIdentifier({name:"target"}))return;G.push(f)}});function S7f(f){let G=[],X=[],W=[],R=[],J=[];return f.traverse(K7f,{thisPaths:G,argumentsPaths:X,newTargetPaths:W,superProps:R,superCalls:J}),{thisPaths:G,argumentsPaths:X,newTargetPaths:W,superProps:R,superCalls:J}}function F7f(){if(!this.isExportDeclaration()||this.isExportAllDeclaration())throw new Error("Only default and named export declarations can be split.");if(this.isExportNamedDeclaration()&&this.get("specifiers").length>0)throw new Error("It doesn't make sense to split exported specifiers.");let f=this.get("declaration");if(this.isExportDefaultDeclaration()){let R=f.isFunctionDeclaration()||f.isClassDeclaration(),J=f.isFunctionExpression()||f.isClassExpression(),U=f.isScope()?f.scope.parent:f.scope,V=f.node.id,H=!1;if(!V){if(H=!0,V=U.generateUidIdentifier("default"),R||J)f.node.id=H1(V)}else if(J&&U.hasBinding(V.name))H=!0,V=U.generateUidIdentifier(V.name);let Q=R?f.node:f7f("var",[G7f(H1(V),f.node)]),Y=W7(null,[R7(H1(V),Cf("default"))]);if(this.insertAfter(Y),this.replaceWith(Q),H)U.registerDeclaration(this);return this}else if(this.get("specifiers").length>0)throw new Error("It doesn't make sense to split exported specifiers.");let G=f.getOuterBindingIdentifiers(),X=Object.keys(G).map((R)=>{return R7(Cf(R),Cf(R))}),W=W7(null,X);return this.insertAfter(W),this.replaceWith(f.node),this}var $7f={"ReferencedIdentifier|BindingIdentifier"(f,G){if(f.node.name!==G.name)return;G.needsRename=!0,f.stop()},Scope(f,G){if(f.scope.hasOwnBinding(G.name))f.skip()}};function C7f(f){if(this.node.id)return this;let G=eQf(this.node,this.parent);if(G==null)return this;let{name:X}=G;if(!f&&/[\uD800-\uDFFF]/.test(X))return null;if(X.startsWith("get ")||X.startsWith("set "))return null;X=dQf(X.replace(/[/ ]/g,"_"));let W=Cf(X);X7f(W,G.originalNode);let R={needsRename:!1,name:X},{scope:J}=this,U=J.getOwnBinding(X);if(U){if(U.kind==="param")R.needsRename=!0}else if(J.parent.hasBinding(X)||J.hasGlobal(X))this.traverse($7f,R);if(!R.needsRename)return this.node.id=W,J.getProgramParent().references[W.name]=!0,this;if(J.hasBinding(W.name)&&!J.hasGlobal(W.name))return J.rename(W.name),this.node.id=W,J.getProgramParent().references[W.name]=!0,this;if(!tQf(this.node))return null;let V=J.generateUidIdentifier(W.name),H=[];for(let Y=0,F=q7f(this.node);Y<F;Y++)H.push(J.generateUidIdentifier("x"));let Q=kQf.default.expression.ast`
|
|
44
|
-
(function (${
|
|
45
|
-
function ${
|
|
46
|
-
return ${
|
|
43
|
+
${X}`,Q}}}});var hW=N((_W)=>{Object.defineProperty(_W,"__esModule",{value:!0});_W.statements=_W.statement=_W.smart=_W.program=_W.expression=_W.default=void 0;var fX=jW(),hX=gW(),n8=_W.smart=(0,hX.default)(fX.smart),vU1=_W.statement=(0,hX.default)(fX.statement),EU1=_W.statements=(0,hX.default)(fX.statements),gU1=_W.expression=(0,hX.default)(fX.expression),_U1=_W.program=(0,hX.default)(fX.program),UI1=_W.default=Object.assign(n8.bind(void 0),{smart:n8,statement:vU1,statements:EU1,expression:gU1,program:_U1,ast:n8.ast})});var rW=N((pW)=>{Object.defineProperty(pW,"__esModule",{value:!0});pW.arrowFunctionToExpression=FB1;pW.ensureBlock=RB1;pW.ensureFunctionName=TB1;pW.splitExportDeclaration=SB1;pW.toComputedKey=BB1;pW.unwrapFunctionEnvironment=$B1;var mU1=Y1(),cU1=hW(),J7=gX(),lU1=qJ(),{arrowFunctionExpression:X7,assignmentExpression:w0,binaryExpression:o8,blockStatement:iU1,callExpression:d0,conditionalExpression:pU1,expressionStatement:uW,identifier:D1,isIdentifier:rU1,jsxIdentifier:dU1,logicalExpression:aU1,LOGICAL_OPERATORS:sU1,memberExpression:DJ,metaProperty:tU1,numericLiteral:nU1,objectExpression:oU1,restElement:eU1,returnStatement:JB1,sequenceExpression:XB1,spreadElement:ZB1,stringLiteral:mW,super:e8,thisExpression:xX,toExpression:cW,unaryExpression:QB1,toBindingIdentifierName:YB1,isFunction:zB1,isAssignmentPattern:HB1,isRestElement:GB1,getFunctionName:WB1,cloneNode:P0,variableDeclaration:VB1,variableDeclarator:KB1,exportNamedDeclaration:xW,exportSpecifier:yW,inherits:UB1}=mU1;function BB1(){let J;if(this.isMemberExpression())J=this.node.property;else if(this.isProperty()||this.isMethod())J=this.node.key;else throw ReferenceError("todo");if(!this.node.computed){if(rU1(J))J=mW(J.name)}return J}function RB1(){let J=this.get("body"),X=J.node;if(Array.isArray(J))throw Error("Can't convert array path to a block statement");if(!X)throw Error("Can't convert node without a body");if(J.isBlockStatement())return X;let Z=[],Q="body",Y,z;if(J.isStatement())z="body",Y=0,Z.push(J.node);else if(Q+=".body.0",this.isFunction())Y="argument",Z.push(JB1(J.node));else Y="expression",Z.push(uW(J.node));this.node.body=iU1(Z);let H=this.get(Q);return lU1.setup.call(J,H,z?H.node[z]:H.node,z,Y),this.node}pW.arrowFunctionToShadowed=function(){if(!this.isArrowFunctionExpression())return;this.arrowFunctionToExpression()};function $B1(){if(!this.isArrowFunctionExpression()&&!this.isFunctionExpression()&&!this.isFunctionDeclaration())throw this.buildCodeFrameError("Can only unwrap the environment of a function.");lW(this)}function qB1(J,X){J.node.type=X}function FB1({allowInsertArrow:J=!0,allowInsertArrowWithRest:X=J,noNewArrows:Z=!((Q)=>(Q=arguments[0])==null?void 0:Q.specCompliant)()}={}){if(!this.isArrowFunctionExpression())throw this.buildCodeFrameError("Cannot convert non-arrow function to a function expression.");let Q=this;if(!Z){var Y;Q=(Y=Q.ensureFunctionName(!1))!=null?Y:Q}let{thisBinding:z,fnPath:H}=lW(Q,Z,J,X);if(H.ensureBlock(),qB1(H,"FunctionExpression"),!Z){let G=z?null:H.scope.generateUidIdentifier("arrowCheckId");if(G)H.parentPath.scope.push({id:G,init:oU1([])});return H.get("body").unshiftContainer("body",uW(d0(this.hub.addHelper("newArrowCheck"),[xX(),G?D1(G.name):D1(z)]))),H.replaceWith(d0(DJ(H.node,D1("bind")),[G?D1(G.name):xX()])),H.get("callee.object")}return H}var jB1=(0,J7.environmentVisitor)({CallExpression(J,{allSuperCalls:X}){if(!J.get("callee").isSuper())return;X.push(J)}});function lW(J,X=!0,Z=!0,Q=!0){let Y,z=J.findParent((A)=>{if(A.isArrowFunctionExpression())return Y!=null||(Y=A),!1;return A.isFunction()||A.isProgram()||A.isClassProperty({static:!1})||A.isClassPrivateProperty({static:!1})}),H=z.isClassMethod({kind:"constructor"});if(z.isClassProperty()||z.isClassPrivateProperty())if(Y)z=Y;else if(Z)J.replaceWith(d0(X7([],cW(J.node)),[])),z=J.get("callee"),J=z.get("body");else throw J.buildCodeFrameError("Unable to transform arrow inside class property");let{thisPaths:G,argumentsPaths:W,newTargetPaths:V,superProps:U,superCalls:q}=PB1(J);if(H&&q.length>0){if(!Z)throw q[0].buildCodeFrameError("When using '@babel/plugin-transform-arrow-functions', it's not possible to compile `super()` in an arrow function without compiling classes.\nPlease add '@babel/plugin-transform-classes' to your Babel configuration.");if(!Q)throw q[0].buildCodeFrameError("When using '@babel/plugin-transform-parameters', it's not possible to compile `super()` in an arrow function with default or rest parameters without compiling classes.\nPlease add '@babel/plugin-transform-classes' to your Babel configuration.");let A=[];z.traverse(jB1,{allSuperCalls:A});let D=DB1(z);A.forEach((S)=>{let C=D1(D);C.loc=S.node.callee.loc,S.get("callee").replaceWith(C)})}if(W.length>0){let A=yX(z,"arguments",()=>{let D=()=>D1("arguments");if(z.scope.path.isProgram())return pU1(o8("===",QB1("typeof",D()),mW("undefined")),z.scope.buildUndefinedNode(),D());else return D()});W.forEach((D)=>{let S=D1(A);S.loc=D.node.loc,D.replaceWith(S)})}if(V.length>0){let A=yX(z,"newtarget",()=>tU1(D1("new"),D1("target")));V.forEach((D)=>{let S=D1(A);S.loc=D.node.loc,D.replaceWith(S)})}if(U.length>0){if(!Z)throw U[0].buildCodeFrameError("When using '@babel/plugin-transform-arrow-functions', it's not possible to compile `super.prop` in an arrow function without compiling classes.\nPlease add '@babel/plugin-transform-classes' to your Babel configuration.");U.reduce((D,S)=>D.concat(OB1(S)),[]).forEach((D)=>{let S=D.node.computed?"":D.get("property").node.name,C=D.parentPath,L=C.isAssignmentExpression({left:D.node}),b=C.isCallExpression({callee:D.node}),s=C.isTaggedTemplateExpression({tag:D.node}),h=NB1(z,L,S),i=[];if(D.node.computed)i.push(D.get("property").node);if(L){let M1=C.node.right;i.push(M1)}let H1=d0(D1(h),i);if(b)C.unshiftContainer("arguments",xX()),D.replaceWith(DJ(H1,D1("call"))),G.push(C.get("arguments.0"));else if(L)C.replaceWith(H1);else if(s)D.replaceWith(d0(DJ(H1,D1("bind"),!1),[xX()])),G.push(D.get("arguments.0"));else D.replaceWith(H1)})}let O;if(G.length>0||!X){if(O=CB1(z,H),X||H&&iW(z)){if(G.forEach((A)=>{let D=A.isJSX()?dU1(O):D1(O);D.loc=A.node.loc,A.replaceWith(D)}),!X)O=null}}return{thisBinding:O,fnPath:J}}function MB1(J){return sU1.includes(J)}function OB1(J){if(J.parentPath.isAssignmentExpression()&&J.parentPath.node.operator!=="="){let Z=J.parentPath,Q=Z.node.operator.slice(0,-1),Y=Z.node.right,z=MB1(Q);if(J.node.computed){let H=J.scope.generateDeclaredUidIdentifier("tmp"),{object:G,property:W}=J.node;Z.get("left").replaceWith(DJ(G,w0("=",H,W),!0)),Z.get("right").replaceWith(X(z?"=":Q,DJ(G,D1(H.name),!0),Y))}else{let H=J.node.object,G=J.node.property;Z.get("left").replaceWith(DJ(H,G)),Z.get("right").replaceWith(X(z?"=":Q,DJ(H,D1(G.name)),Y))}if(z)Z.replaceWith(aU1(Q,Z.node.left,Z.node.right));else Z.node.operator="=";return[Z.get("left"),Z.get("right").get("left")]}else if(J.parentPath.isUpdateExpression()){let Z=J.parentPath,Q=J.scope.generateDeclaredUidIdentifier("tmp"),Y=J.node.computed?J.scope.generateDeclaredUidIdentifier("prop"):null,z=[w0("=",Q,DJ(J.node.object,Y?w0("=",Y,J.node.property):J.node.property,J.node.computed)),w0("=",DJ(J.node.object,Y?D1(Y.name):J.node.property,J.node.computed),o8(J.parentPath.node.operator[0],D1(Q.name),nU1(1)))];if(!J.parentPath.node.prefix)z.push(D1(Q.name));Z.replaceWith(XB1(z));let H=Z.get("expressions.0.right"),G=Z.get("expressions.1.left");return[H,G]}return[J];function X(Z,Q,Y){if(Z==="=")return w0("=",Q,Y);else return o8(Z,Q,Y)}}function iW(J){return J.isClassMethod()&&!!J.parentPath.parentPath.node.superClass}var AB1=(0,J7.environmentVisitor)({CallExpression(J,{supers:X,thisBinding:Z}){if(!J.get("callee").isSuper())return;if(X.has(J.node))return;X.add(J.node),J.replaceWithMultiple([J.node,w0("=",D1(Z),D1("this"))])}});function CB1(J,X){return yX(J,"this",(Z)=>{if(!X||!iW(J))return xX();J.traverse(AB1,{supers:new WeakSet,thisBinding:Z})})}function DB1(J){return yX(J,"supercall",()=>{let X=J.scope.generateUidIdentifier("args");return X7([eU1(X)],d0(e8(),[ZB1(D1(X.name))]))})}function NB1(J,X,Z){return yX(J,`superprop_${X?"set":"get"}:${Z||""}`,()=>{let Y=[],z;if(Z)z=DJ(e8(),D1(Z));else{let H=J.scope.generateUidIdentifier("prop");Y.unshift(H),z=DJ(e8(),D1(H.name),!0)}if(X){let H=J.scope.generateUidIdentifier("value");Y.push(H),z=w0("=",z,D1(H.name))}return X7(Y,z)})}function yX(J,X,Z){let Q="binding:"+X,Y=J.getData(Q);if(!Y){let z=J.scope.generateUidIdentifier(X);Y=z.name,J.setData(Q,Y),J.scope.push({id:z,init:Z(Y)})}return Y}var wB1=(0,J7.environmentVisitor)({ThisExpression(J,{thisPaths:X}){X.push(J)},JSXIdentifier(J,{thisPaths:X}){if(J.node.name!=="this")return;if(!J.parentPath.isJSXMemberExpression({object:J.node})&&!J.parentPath.isJSXOpeningElement({name:J.node}))return;X.push(J)},CallExpression(J,{superCalls:X}){if(J.get("callee").isSuper())X.push(J)},MemberExpression(J,{superProps:X}){if(J.get("object").isSuper())X.push(J)},Identifier(J,{argumentsPaths:X}){if(!J.isReferencedIdentifier({name:"arguments"}))return;let Z=J.scope;do{if(Z.hasOwnBinding("arguments")){Z.rename("arguments");return}if(Z.path.isFunction()&&!Z.path.isArrowFunctionExpression())break}while(Z=Z.parent);X.push(J)},MetaProperty(J,{newTargetPaths:X}){if(!J.get("meta").isIdentifier({name:"new"}))return;if(!J.get("property").isIdentifier({name:"target"}))return;X.push(J)}});function PB1(J){let X=[],Z=[],Q=[],Y=[],z=[];return J.traverse(wB1,{thisPaths:X,argumentsPaths:Z,newTargetPaths:Q,superProps:Y,superCalls:z}),{thisPaths:X,argumentsPaths:Z,newTargetPaths:Q,superProps:Y,superCalls:z}}function SB1(){if(!this.isExportDeclaration()||this.isExportAllDeclaration())throw Error("Only default and named export declarations can be split.");if(this.isExportNamedDeclaration()&&this.get("specifiers").length>0)throw Error("It doesn't make sense to split exported specifiers.");let J=this.get("declaration");if(this.isExportDefaultDeclaration()){let Y=J.isFunctionDeclaration()||J.isClassDeclaration(),z=J.isFunctionExpression()||J.isClassExpression(),H=J.isScope()?J.scope.parent:J.scope,G=J.node.id,W=!1;if(!G){if(W=!0,G=H.generateUidIdentifier("default"),Y||z)J.node.id=P0(G)}else if(z&&H.hasBinding(G.name))W=!0,G=H.generateUidIdentifier(G.name);let V=Y?J.node:VB1("var",[KB1(P0(G),J.node)]),U=xW(null,[yW(P0(G),D1("default"))]);if(this.insertAfter(U),this.replaceWith(V),W)H.registerDeclaration(this);return this}else if(this.get("specifiers").length>0)throw Error("It doesn't make sense to split exported specifiers.");let X=J.getOuterBindingIdentifiers(),Z=Object.keys(X).map((Y)=>{return yW(D1(Y),D1(Y))}),Q=xW(null,Z);return this.insertAfter(Q),this.replaceWith(J.node),this}var IB1={"ReferencedIdentifier|BindingIdentifier"(J,X){if(J.node.name!==X.name)return;X.needsRename=!0,J.stop()},Scope(J,X){if(J.scope.hasOwnBinding(X.name))J.skip()}};function TB1(J){if(this.node.id)return this;let X=WB1(this.node,this.parent);if(X==null)return this;let{name:Z}=X;if(!J&&/[\uD800-\uDFFF]/.test(Z))return null;if(Z.startsWith("get ")||Z.startsWith("set "))return null;Z=YB1(Z.replace(/[/ ]/g,"_"));let Q=D1(Z);UB1(Q,X.originalNode);let Y={needsRename:!1,name:Z},{scope:z}=this,H=z.getOwnBinding(Z);if(H){if(H.kind==="param")Y.needsRename=!0}else if(z.parent.hasBinding(Z)||z.hasGlobal(Z))this.traverse(IB1,Y);if(!Y.needsRename)return this.node.id=Q,z.getProgramParent().references[Q.name]=!0,this;if(z.hasBinding(Q.name)&&!z.hasGlobal(Q.name))return z.rename(Q.name),this.node.id=Q,z.getProgramParent().references[Q.name]=!0,this;if(!zB1(this.node))return null;let G=z.generateUidIdentifier(Q.name),W=[];for(let U=0,q=LB1(this.node);U<q;U++)W.push(z.generateUidIdentifier("x"));let V=cU1.default.expression.ast`
|
|
44
|
+
(function (${G}) {
|
|
45
|
+
function ${Q}(${W}) {
|
|
46
|
+
return ${P0(G)}.apply(this, arguments);
|
|
47
47
|
}
|
|
48
48
|
|
|
49
|
-
${
|
|
50
|
-
return ${
|
|
49
|
+
${P0(Q)}.toString = function () {
|
|
50
|
+
return ${P0(G)}.toString();
|
|
51
51
|
}
|
|
52
52
|
|
|
53
|
-
return ${
|
|
54
|
-
})(${
|
|
55
|
-
`;return this.replaceWith(Q)[0].get("arguments.0")}function q7f(f){let G=f.params.findIndex((X)=>nQf(X)||oQf(X));return G===-1?f.params.length:G}});var $7=P((F7)=>{Object.defineProperty(F7,"__esModule",{value:!0});F7._guessExecutionStatusRelativeTo=s7f;F7._resolve=S7;F7.canHaveVariableDeclarationOrExpression=y7f;F7.canSwapBetweenExpressionAndStatement=x7f;F7.getSource=a7f;F7.isCompletionRecord=m7f;F7.isConstantExpression=n7f;F7.isInStrictMode=o7f;F7.isNodeType=h7f;F7.isStatementOrBlock=l7f;F7.isStatic=u7f;F7.matchesPattern=_7f;F7.referencesImport=c7f;F7.resolve=t7f;F7.willIMaybeExecuteBefore=i7f;var T7f=Vf(),{STATEMENT_OR_BLOCK_KEYS:N7f,VISITOR_KEYS:L7f,isBlockStatement:K7,isExpression:b7f,isIdentifier:E7f,isLiteral:w7f,isStringLiteral:k7f,isType:v7f,matchesPattern:g7f}=T7f;function _7f(f,G){return g7f(this.node,f,G)}F7.has=function f(G){var X;let W=(X=this.node)==null?void 0:X[G];if(W&&Array.isArray(W))return!!W.length;else return!!W};function u7f(){return this.scope.isStatic(this.node)}F7.is=F7.has,F7.isnt=function f(G){return!this.has(G)},F7.equals=function f(G,X){return this.node[G]===X};function h7f(f){return v7f(this.type,f)}function y7f(){return(this.key==="init"||this.key==="left")&&this.parentPath.isFor()}function x7f(f){if(this.key!=="body"||!this.parentPath.isArrowFunctionExpression())return!1;if(this.isExpression())return K7(f);else if(this.isBlockStatement())return b7f(f);return!1}function m7f(f){let G=this,X=!0;do{let{type:W,container:R}=G;if(!X&&(G.isFunction()||W==="StaticBlock"))return!!f;if(X=!1,Array.isArray(R)&&G.key!==R.length-1)return!1}while((G=G.parentPath)&&!G.isProgram()&&!G.isDoExpression());return!0}function l7f(){if(this.parentPath.isLabeledStatement()||K7(this.container))return!1;else return N7f.includes(this.key)}function c7f(f,G){if(!this.isReferencedIdentifier()){if(this.isJSXMemberExpression()&&this.node.property.name===G||(this.isMemberExpression()||this.isOptionalMemberExpression())&&(this.node.computed?k7f(this.node.property,{value:G}):this.node.property.name===G)){let J=this.get("object");return J.isReferencedIdentifier()&&J.referencesImport(f,"*")}return!1}let X=this.scope.getBinding(this.node.name);if(!X||X.kind!=="module")return!1;let W=X.path,R=W.parentPath;if(!R.isImportDeclaration())return!1;if(R.node.source.value===f){if(!G)return!0}else return!1;if(W.isImportDefaultSpecifier()&&G==="default")return!0;if(W.isImportNamespaceSpecifier()&&G==="*")return!0;if(W.isImportSpecifier()&&E7f(W.node.imported,{name:G}))return!0;return!1}function a7f(){let f=this.node;if(f.end){let G=this.hub.getCode();if(G)return G.slice(f.start,f.end)}return""}function i7f(f){return this._guessExecutionStatusRelativeTo(f)!=="after"}function z7(f){return f.isProgram()?f:(f.parentPath.scope.getFunctionParent()||f.parentPath.scope.getProgramParent()).path}function r7f(f,G){switch(f){case"LogicalExpression":return G==="right";case"ConditionalExpression":case"IfStatement":return G==="consequent"||G==="alternate";case"WhileStatement":case"DoWhileStatement":case"ForInStatement":case"ForOfStatement":return G==="body";case"ForStatement":return G==="body"||G==="update";case"SwitchStatement":return G==="cases";case"TryStatement":return G==="handler";case"AssignmentPattern":return G==="right";case"OptionalMemberExpression":return G==="property";case"OptionalCallExpression":return G==="arguments";default:return!1}}function B7(f,G){for(let X=0;X<G;X++){let W=f[X];if(r7f(W.parent.type,W.parentKey))return!0}return!1}var M7=Symbol();function s7f(f){return NJ(this,f,new Map)}function NJ(f,G,X){let W={this:z7(f),target:z7(G)};if(W.target.node!==W.this.node)return d7f(f,W.target,X);let R={target:G.getAncestry(),this:f.getAncestry()};if(R.target.includes(f))return"after";if(R.this.includes(G))return"before";let J,U={target:0,this:0};while(!J&&U.this<R.this.length){let Y=R.this[U.this];if(U.target=R.target.indexOf(Y),U.target>=0)J=Y;else U.this++}if(!J)throw new Error("Internal Babel error - The two compared nodes don't appear to belong to the same program.");if(B7(R.this,U.this-1)||B7(R.target,U.target-1))return"unknown";let V={this:R.this[U.this-1],target:R.target[U.target-1]};if(V.target.listKey&&V.this.listKey&&V.target.container===V.this.container)return V.target.key>V.this.key?"before":"after";let H=L7f[J.type],Q={this:H.indexOf(V.this.parentKey),target:H.indexOf(V.target.parentKey)};return Q.target>Q.this?"before":"after"}function p7f(f,G,X){if(!G.isFunctionDeclaration()){if(NJ(f,G,X)==="before")return"before";return"unknown"}else if(G.parentPath.isExportDeclaration())return"unknown";let W=G.scope.getBinding(G.node.id.name);if(!W.references)return"before";let R=W.referencePaths,J;for(let U of R){if(!!U.find((Q)=>Q.node===G.node))continue;if(U.key!=="callee"||!U.parentPath.isCallExpression())return"unknown";let H=NJ(f,U,X);if(J&&J!==H)return"unknown";else J=H}return J}function d7f(f,G,X){let W=X.get(f.node),R;if(!W)X.set(f.node,W=new Map);else if(R=W.get(G.node)){if(R===M7)return"unknown";return R}W.set(G.node,M7);let J=p7f(f,G,X);return W.set(G.node,J),J}function t7f(f,G){return S7.call(this,f,G)||this}function S7(f,G){var X;if((X=G)!=null&&X.includes(this))return;if(G=G||[],G.push(this),this.isVariableDeclarator()){if(this.get("id").isIdentifier())return this.get("init").resolve(f,G)}else if(this.isReferencedIdentifier()){let W=this.scope.getBinding(this.node.name);if(!W)return;if(!W.constant)return;if(W.kind==="module")return;if(W.path!==this){let R=W.path.resolve(f,G);if(this.find((J)=>J.node===R.node))return;return R}}else if(this.isTypeCastExpression())return this.get("expression").resolve(f,G);else if(f&&this.isMemberExpression()){let W=this.toComputedKey();if(!w7f(W))return;let R=W.value,J=this.get("object").resolve(f,G);if(J.isObjectExpression()){let U=J.get("properties");for(let V of U){if(!V.isProperty())continue;let H=V.get("key"),Q=V.isnt("computed")&&H.isIdentifier({name:R});if(Q=Q||H.isLiteral({value:R}),Q)return V.get("value").resolve(f,G)}}else if(J.isArrayExpression()&&!isNaN(+R)){let V=J.get("elements")[R];if(V)return V.resolve(f,G)}}}function n7f(){if(this.isIdentifier()){let f=this.scope.getBinding(this.node.name);if(!f)return!1;return f.constant}if(this.isLiteral()){if(this.isRegExpLiteral())return!1;if(this.isTemplateLiteral())return this.get("expressions").every((f)=>f.isConstantExpression());return!0}if(this.isUnaryExpression()){if(this.node.operator!=="void")return!1;return this.get("argument").isConstantExpression()}if(this.isBinaryExpression()){let{operator:f}=this.node;return f!=="in"&&f!=="instanceof"&&this.get("left").isConstantExpression()&&this.get("right").isConstantExpression()}if(this.isMemberExpression())return!this.node.computed&&this.get("object").isIdentifier({name:"Symbol"})&&!this.scope.hasBinding("Symbol",{noGlobals:!0});if(this.isCallExpression())return this.node.arguments.length===1&&this.get("callee").matchesPattern("Symbol.for")&&!this.scope.hasBinding("Symbol",{noGlobals:!0})&&this.get("arguments")[0].isStringLiteral();return!1}function o7f(){return!!(this.isProgram()?this:this.parentPath).find((X)=>{if(X.isProgram({sourceType:"module"}))return!0;if(X.isClass())return!0;if(X.isArrowFunctionExpression()&&!X.get("body").isBlockStatement())return!1;let W;if(X.isFunction())W=X.node.body;else if(X.isProgram())W=X.node;else return!1;for(let R of W.directives)if(R.value.value==="use strict")return!0})}});var P7=P((j7)=>{Object.defineProperty(j7,"__esModule",{value:!0});j7._getKey=A7;j7._getPattern=O7;j7.get=E5f;j7.getAllNextSiblings=L5f;j7.getAllPrevSiblings=b5f;j7.getAssignmentIdentifiers=w5f;j7.getBindingIdentifierPaths=g5f;j7.getBindingIdentifiers=k5f;j7.getCompletionRecords=D5f;j7.getNextSibling=N5f;j7.getOpposite=O5f;j7.getOuterBindingIdentifierPaths=_5f;j7.getOuterBindingIdentifiers=v5f;j7.getPrevSibling=T5f;j7.getSibling=I5f;var bJ=lG(),K5f=Vf(),{getAssignmentIdentifiers:S5f,getBindingIdentifiers:q7,getOuterBindingIdentifiers:F5f,numericLiteral:$5f,unaryExpression:C5f}=K5f,EJ=0,SX=1;function q5f(f){return{type:EJ,path:f}}function A5f(f){return{type:SX,path:f}}function O5f(){if(this.key==="left")return this.getSibling("right");else if(this.key==="right")return this.getSibling("left");return null}function N1(f,G,X){if(f)G.push(...L1(f,X));return G}function j5f(f,G,X){let W=[];for(let R=0;R<f.length;R++){let J=f[R],U=L1(J,X),V=[],H=[];for(let Q of U){if(Q.type===EJ)V.push(Q);if(Q.type===SX)H.push(Q)}if(V.length)W=V;G.push(...H)}return G.push(...W),G}function P5f(f){f.forEach((G)=>{G.type=SX})}function LJ(f,G){f.forEach((X)=>{if(X.path.isBreakStatement({label:null}))if(G)X.path.replaceWith(C5f("void",$5f(0)));else X.path.remove()})}function C7(f,G){let X=[];if(G.canHaveBreak){let W=[];for(let R=0;R<f.length;R++){let J=f[R],U=Object.assign({},G,{inCaseClause:!1});if(J.isBlockStatement()&&(G.inCaseClause||G.shouldPopulateBreak))U.shouldPopulateBreak=!0;else U.shouldPopulateBreak=!1;let V=L1(J,U);if(V.length>0&&V.every((H)=>H.type===SX)){if(W.length>0&&V.every((H)=>H.path.isBreakStatement({label:null}))){if(P5f(W),X.push(...W),W.some((H)=>H.path.isDeclaration()))X.push(...V),LJ(V,!0);LJ(V,!1)}else if(X.push(...V),!G.shouldPopulateBreak)LJ(V,!0);break}if(R===f.length-1)X.push(...V);else{W=[];for(let H=0;H<V.length;H++){let Q=V[H];if(Q.type===SX)X.push(Q);if(Q.type===EJ)W.push(Q)}}}}else if(f.length)for(let W=f.length-1;W>=0;W--){let R=L1(f[W],G);if(R.length>1||R.length===1&&!R[0].path.isVariableDeclaration()){X.push(...R);break}}return X}function L1(f,G){let X=[];if(f.isIfStatement())X=N1(f.get("consequent"),X,G),X=N1(f.get("alternate"),X,G);else if(f.isDoExpression()||f.isFor()||f.isWhile()||f.isLabeledStatement())return N1(f.get("body"),X,G);else if(f.isProgram()||f.isBlockStatement())return C7(f.get("body"),G);else if(f.isFunction())return L1(f.get("body"),G);else if(f.isTryStatement())X=N1(f.get("block"),X,G),X=N1(f.get("handler"),X,G);else if(f.isCatchClause())return N1(f.get("body"),X,G);else if(f.isSwitchStatement())return j5f(f.get("cases"),X,G);else if(f.isSwitchCase())return C7(f.get("consequent"),{canHaveBreak:!0,shouldPopulateBreak:!1,inCaseClause:!0});else if(f.isBreakStatement())X.push(A5f(f));else X.push(q5f(f));return X}function D5f(){return L1(this,{canHaveBreak:!1,shouldPopulateBreak:!1,inCaseClause:!1}).map((G)=>G.path)}function I5f(f){return bJ.default.get({parentPath:this.parentPath,parent:this.parent,container:this.container,listKey:this.listKey,key:f}).setContext(this.context)}function T5f(){return this.getSibling(this.key-1)}function N5f(){return this.getSibling(this.key+1)}function L5f(){let f=this.key,G=this.getSibling(++f),X=[];while(G.node)X.push(G),G=this.getSibling(++f);return X}function b5f(){let f=this.key,G=this.getSibling(--f),X=[];while(G.node)X.push(G),G=this.getSibling(--f);return X}function E5f(f,G=!0){if(G===!0)G=this.context;let X=f.split(".");if(X.length===1)return A7.call(this,f,G);else return O7.call(this,X,G)}function A7(f,G){let X=this.node,W=X[f];if(Array.isArray(W))return W.map((R,J)=>{return bJ.default.get({listKey:f,parentPath:this,parent:X,container:W,key:J}).setContext(G)});else return bJ.default.get({parentPath:this,parent:X,container:X,key:f}).setContext(G)}function O7(f,G){let X=this;for(let W of f)if(W===".")X=X.parentPath;else if(Array.isArray(X))X=X[W];else X=X.get(W,G);return X}function w5f(){return S5f(this.node)}function k5f(f){return q7(this.node,f)}function v5f(f){return F5f(this.node,f)}function g5f(f=!1,G=!1){let W=[this],R=Object.create(null);while(W.length){let J=W.shift();if(!J)continue;if(!J.node)continue;let U=q7.keys[J.node.type];if(J.isIdentifier()){if(f)(R[J.node.name]=R[J.node.name]||[]).push(J);else R[J.node.name]=J;continue}if(J.isExportDeclaration()){let V=J.get("declaration");if(V.isDeclaration())W.push(V);continue}if(G){if(J.isFunctionDeclaration()){W.push(J.get("id"));continue}if(J.isFunctionExpression())continue}if(U)for(let V=0;V<U.length;V++){let H=U[V],Q=J.get(H);if(Array.isArray(Q))W.push(...Q);else if(Q.node)W.push(Q)}}return R}function _5f(f=!1){return this.getBindingIdentifierPaths(f,!0)}});var T7=P((I7)=>{Object.defineProperty(I7,"__esModule",{value:!0});I7.addComment=XZf;I7.addComments=WZf;I7.shareCommentsWithSiblings=GZf;var o5f=Vf(),{addComment:e5f,addComments:fZf}=o5f;function GZf(){if(typeof this.key==="string")return;let f=this.node;if(!f)return;let{trailingComments:G,leadingComments:X}=f;if(!G&&!X)return;let W=this.getSibling(this.key-1),R=this.getSibling(this.key+1),J=Boolean(W.node),U=Boolean(R.node);if(J){if(X)W.addComments("trailing",D7(X,W.node.trailingComments));if(G&&!U)W.addComments("trailing",G)}if(U){if(G)R.addComments("leading",D7(G,R.node.leadingComments));if(X&&!J)R.addComments("leading",X)}}function D7(f,G){if(!(G!=null&&G.length))return f;let X=new Set(G);return f.filter((W)=>{return!X.has(W)})}function XZf(f,G,X){e5f(this.node,f,G,X)}function WZf(f,G){fZf(this.node,f,G)}});var lG=P((w7)=>{Object.defineProperty(w7,"__esModule",{value:!0});w7.default=w7.SHOULD_STOP=w7.SHOULD_SKIP=w7.REMOVED=void 0;var VZf=hR(),HZf=q8(),QZf=ZX(),ZZf=tR(),b7=Vf(),wW=b7,YZf=X1(),zZf=KR(),$G=M4(),b1=u4(),E1=VJ(),N7=kQ(),Q1=Y7(),Lf=$7(),E7=KG(),Nf=E7,w1=DW(),CG=IW(),lf=P7(),wJ=T7(),BZf=aR(),{validate:MZf}=b7,L7=HZf("babel"),qFf=w7.REMOVED=1,AFf=w7.SHOULD_STOP=2,OFf=w7.SHOULD_SKIP=4,bG=w7.default=class f{constructor(G,X){this.contexts=[],this.state=null,this.opts=null,this._traverseFlags=0,this.skipKeys=null,this.parentPath=null,this.container=null,this.listKey=null,this.key=null,this.node=null,this.type=null,this.parent=X,this.hub=G,this.data=null,this.context=null,this.scope=null}get removed(){return(this._traverseFlags&1)>0}set removed(G){if(G)this._traverseFlags|=1;else this._traverseFlags&=-2}get shouldStop(){return(this._traverseFlags&2)>0}set shouldStop(G){if(G)this._traverseFlags|=2;else this._traverseFlags&=-3}get shouldSkip(){return(this._traverseFlags&4)>0}set shouldSkip(G){if(G)this._traverseFlags|=4;else this._traverseFlags&=-5}static get({hub:G,parentPath:X,parent:W,container:R,listKey:J,key:U}){if(!G&&X)G=X.hub;if(!W)throw new Error("To get a node path the parent needs to exist");let V=R[U],H=YZf.getOrCreateCachedPaths(G,W),Q=H.get(V);if(!Q){if(Q=new f(G,W),V)H.set(V,Q)}return E7.setup.call(Q,X,R,J,U),Q}getScope(G){return this.isScope()?new ZZf.default(this):G}setData(G,X){if(this.data==null)this.data=Object.create(null);return this.data[G]=X}getData(G,X){if(this.data==null)this.data=Object.create(null);let W=this.data[G];if(W===void 0&&X!==void 0)W=this.data[G]=X;return W}hasNode(){return this.node!=null}buildCodeFrameError(G,X=SyntaxError){return this.hub.buildError(this.node,G,X)}traverse(G,X){QZf.default(this.node,G,this.scope,X,this)}set(G,X){MZf(this.node,G,X),this.node[G]=X}getPathLocation(){let G=[],X=this;do{let W=X.key;if(X.inList)W=`${X.listKey}[${W}]`;G.unshift(W)}while(X=X.parentPath);return G.join(".")}debug(G){if(!L7.enabled)return;L7(`${this.getPathLocation()} ${this.type}: ${G}`)}toString(){return zZf.default(this.node).code}get inList(){return!!this.listKey}set inList(G){if(!G)this.listKey=null}get parentKey(){return this.listKey||this.key}},KZf={findParent:$G.findParent,find:$G.find,getFunctionParent:$G.getFunctionParent,getStatementParent:$G.getStatementParent,getEarliestCommonAncestorFrom:$G.getEarliestCommonAncestorFrom,getDeepestCommonAncestorFrom:$G.getDeepestCommonAncestorFrom,getAncestry:$G.getAncestry,isAncestor:$G.isAncestor,isDescendant:$G.isDescendant,inType:$G.inType,getTypeAnnotation:b1.getTypeAnnotation,isBaseType:b1.isBaseType,couldBeBaseType:b1.couldBeBaseType,baseTypeStrictlyMatches:b1.baseTypeStrictlyMatches,isGenericType:b1.isGenericType,replaceWithMultiple:E1.replaceWithMultiple,replaceWithSourceString:E1.replaceWithSourceString,replaceWith:E1.replaceWith,replaceExpressionWithStatements:E1.replaceExpressionWithStatements,replaceInline:E1.replaceInline,evaluateTruthy:N7.evaluateTruthy,evaluate:N7.evaluate,toComputedKey:Q1.toComputedKey,ensureBlock:Q1.ensureBlock,unwrapFunctionEnvironment:Q1.unwrapFunctionEnvironment,arrowFunctionToExpression:Q1.arrowFunctionToExpression,splitExportDeclaration:Q1.splitExportDeclaration,ensureFunctionName:Q1.ensureFunctionName,matchesPattern:Lf.matchesPattern,isStatic:Lf.isStatic,isNodeType:Lf.isNodeType,canHaveVariableDeclarationOrExpression:Lf.canHaveVariableDeclarationOrExpression,canSwapBetweenExpressionAndStatement:Lf.canSwapBetweenExpressionAndStatement,isCompletionRecord:Lf.isCompletionRecord,isStatementOrBlock:Lf.isStatementOrBlock,referencesImport:Lf.referencesImport,getSource:Lf.getSource,willIMaybeExecuteBefore:Lf.willIMaybeExecuteBefore,_guessExecutionStatusRelativeTo:Lf._guessExecutionStatusRelativeTo,resolve:Lf.resolve,isConstantExpression:Lf.isConstantExpression,isInStrictMode:Lf.isInStrictMode,isDenylisted:Nf.isDenylisted,visit:Nf.visit,skip:Nf.skip,skipKey:Nf.skipKey,stop:Nf.stop,setContext:Nf.setContext,requeue:Nf.requeue,requeueComputedKeyAndDecorators:Nf.requeueComputedKeyAndDecorators,remove:w1.remove,insertBefore:CG.insertBefore,insertAfter:CG.insertAfter,unshiftContainer:CG.unshiftContainer,pushContainer:CG.pushContainer,getOpposite:lf.getOpposite,getCompletionRecords:lf.getCompletionRecords,getSibling:lf.getSibling,getPrevSibling:lf.getPrevSibling,getNextSibling:lf.getNextSibling,getAllNextSiblings:lf.getAllNextSiblings,getAllPrevSiblings:lf.getAllPrevSiblings,get:lf.get,getAssignmentIdentifiers:lf.getAssignmentIdentifiers,getBindingIdentifiers:lf.getBindingIdentifiers,getOuterBindingIdentifiers:lf.getOuterBindingIdentifiers,getBindingIdentifierPaths:lf.getBindingIdentifierPaths,getOuterBindingIdentifierPaths:lf.getOuterBindingIdentifierPaths,shareCommentsWithSiblings:wJ.shareCommentsWithSiblings,addComment:wJ.addComment,addComments:wJ.addComments};Object.assign(bG.prototype,KZf);bG.prototype.arrowFunctionToShadowed=Q1[String("arrowFunctionToShadowed")],Object.assign(bG.prototype,{has:Lf[String("has")],is:Lf[String("is")],isnt:Lf[String("isnt")],equals:Lf[String("equals")],hoist:CG[String("hoist")],updateSiblingKeys:CG.updateSiblingKeys,call:Nf.call,isBlacklisted:Nf[String("isBlacklisted")],setScope:Nf.setScope,resync:Nf.resync,popContext:Nf.popContext,pushContext:Nf.pushContext,setup:Nf.setup,setKey:Nf.setKey});bG.prototype._guessExecutionStatusRelativeToDifferentFunctions=Lf._guessExecutionStatusRelativeTo,bG.prototype._guessExecutionStatusRelativeToDifferentFunctions=Lf._guessExecutionStatusRelativeTo,Object.assign(bG.prototype,{_getTypeAnnotation:b1._getTypeAnnotation,_replaceWith:E1._replaceWith,_resolve:Lf._resolve,_call:Nf._call,_resyncParent:Nf._resyncParent,_resyncKey:Nf._resyncKey,_resyncList:Nf._resyncList,_resyncRemoved:Nf._resyncRemoved,_getQueueContexts:Nf._getQueueContexts,_removeFromScope:w1._removeFromScope,_callRemovalHooks:w1._callRemovalHooks,_remove:w1._remove,_markRemoved:w1._markRemoved,_assertUnremoved:w1._assertUnremoved,_containerInsert:CG._containerInsert,_containerInsertBefore:CG._containerInsertBefore,_containerInsertAfter:CG._containerInsertAfter,_verifyNodeList:CG._verifyNodeList,_getKey:lf._getKey,_getPattern:lf._getPattern});for(let f of wW.TYPES){let G=`is${f}`,X=wW[G];bG.prototype[G]=function(W){return X(this.node,W)},bG.prototype[`assert${f}`]=function(W){if(!X(this.node,W))throw new TypeError(`Expected node path of type ${f}`)}}Object.assign(bG.prototype,BZf);for(let f of Object.keys(VZf)){if(f[0]==="_")continue;if(!wW.TYPES.includes(f))wW.TYPES.push(f)}});var u7=P((g7)=>{Object.defineProperty(g7,"__esModule",{value:!0});g7.default=void 0;var CZf=lG(),qZf=Vf(),kJ=KG(),{VISITOR_KEYS:AZf}=qZf;class v7{constructor(f,G,X,W){this.queue=null,this.priorityQueue=null,this.parentPath=W,this.scope=f,this.state=X,this.opts=G}shouldVisit(f){let G=this.opts;if(G.enter||G.exit)return!0;if(G[f.type])return!0;let X=AZf[f.type];if(!(X!=null&&X.length))return!1;for(let W of X)if(f[W])return!0;return!1}create(f,G,X,W){return CZf.default.get({parentPath:this.parentPath,parent:f,container:G,key:X,listKey:W})}maybeQueue(f,G){if(this.queue)if(G)this.queue.push(f);else this.priorityQueue.push(f)}visitMultiple(f,G,X){if(f.length===0)return!1;let W=[];for(let R=0;R<f.length;R++){let J=f[R];if(J&&this.shouldVisit(J))W.push(this.create(G,f,R,X))}return this.visitQueue(W)}visitSingle(f,G){if(this.shouldVisit(f[G]))return this.visitQueue([this.create(f,f,G)]);else return!1}visitQueue(f){this.queue=f,this.priorityQueue=[];let G=new WeakSet,X=!1,W=0;for(;W<f.length;){let R=f[W];if(W++,kJ.resync.call(R),R.contexts.length===0||R.contexts[R.contexts.length-1]!==this)kJ.pushContext.call(R,this);if(R.key===null)continue;let{node:J}=R;if(G.has(J))continue;if(J)G.add(J);if(R.visit()){X=!0;break}if(this.priorityQueue.length){if(X=this.visitQueue(this.priorityQueue),this.priorityQueue=[],this.queue=f,X)break}}for(let R=0;R<W;R++)kJ.popContext.call(f[R]);return this.queue=null,X}visit(f,G){let X=f[G];if(!X)return!1;if(Array.isArray(X))return this.visitMultiple(X,f,G);else return this.visitSingle(f,G)}}g7.default=v7});var FW=P((h7)=>{Object.defineProperty(h7,"__esModule",{value:!0});h7.traverseNode=DZf;var OZf=u7(),jZf=Vf(),{VISITOR_KEYS:PZf}=jZf;function DZf(f,G,X,W,R,J,U){let V=PZf[f.type];if(!V)return!1;let H=new OZf.default(X,G,W,R);if(U){if(J!=null&&J[R.parentKey])return!1;return H.visitQueue([R])}for(let Q of V){if(J!=null&&J[Q])continue;if(H.visit(f,Q))return!0}return!1}});var KG=P((r7)=>{Object.defineProperty(r7,"__esModule",{value:!0});r7._call=gJ;r7._getQueueContexts=lZf;r7._resyncKey=a7;r7._resyncList=i7;r7._resyncParent=c7;r7._resyncRemoved=_Zf;r7.call=vJ;r7.isDenylisted=m7;r7.popContext=uZf;r7.pushContext=hZf;r7.requeue=xZf;r7.requeueComputedKeyAndDecorators=mZf;r7.resync=gZf;r7.setContext=vZf;r7.setKey=kW;r7.setScope=l7;r7.setup=yZf;r7.skip=EZf;r7.skipKey=wZf;r7.stop=kZf;r7.visit=bZf;var TZf=FW(),y7=lG(),NZf=DW(),LZf=Vf();function vJ(f){let G=this.opts;if(this.debug(f),this.node){if(gJ.call(this,G[f]))return!0}if(this.node){var X;return gJ.call(this,(X=G[this.node.type])==null?void 0:X[f])}return!1}function gJ(f){if(!f)return!1;for(let G of f){if(!G)continue;let X=this.node;if(!X)return!0;let W=G.call(this.state,this,this.state);if(W&&typeof W==="object"&&typeof W.then==="function")throw new Error("You appear to be using a plugin with an async traversal visitor, which your current version of Babel does not support. If you're using a published plugin, you may need to upgrade your @babel/core version.");if(W)throw new Error(`Unexpected return value from visitor method ${G}`);if(this.node!==X)return!0;if(this._traverseFlags>0)return!0}return!1}function m7(){var f;let G=(f=this.opts.denylist)!=null?f:this.opts.blacklist;return G==null?void 0:G.includes(this.node.type)}r7.isBlacklisted=m7;function x7(f,G){if(f.context!==G)f.context=G,f.state=G.state,f.opts=G.opts}function bZf(){var f,G;if(!this.node)return!1;if(this.isDenylisted())return!1;if((f=(G=this.opts).shouldSkip)!=null&&f.call(G,this))return!1;let X=this.context;if(this.shouldSkip||vJ.call(this,"enter"))return this.debug("Skip..."),this.shouldStop;return x7(this,X),this.debug("Recursing into..."),this.shouldStop=TZf.traverseNode(this.node,this.opts,this.scope,this.state,this,this.skipKeys),x7(this,X),vJ.call(this,"exit"),this.shouldStop}function EZf(){this.shouldSkip=!0}function wZf(f){if(this.skipKeys==null)this.skipKeys={};this.skipKeys[f]=!0}function kZf(){this._traverseFlags|=y7.SHOULD_SKIP|y7.SHOULD_STOP}function l7(){var f,G;if((f=this.opts)!=null&&f.noScope)return;let X=this.parentPath;if((this.key==="key"||this.listKey==="decorators")&&X.isMethod()||this.key==="discriminant"&&X.isSwitchStatement())X=X.parentPath;let W;while(X&&!W){var R;if((R=X.opts)!=null&&R.noScope)return;W=X.scope,X=X.parentPath}this.scope=this.getScope(W),(G=this.scope)==null||G.init()}function vZf(f){if(this.skipKeys!=null)this.skipKeys={};if(this._traverseFlags=0,f)this.context=f,this.state=f.state,this.opts=f.opts;return l7.call(this),this}function gZf(){if(this.removed)return;c7.call(this),i7.call(this),a7.call(this)}function c7(){if(this.parentPath)this.parent=this.parentPath.node}function a7(){if(!this.container)return;if(this.node===this.container[this.key])return;if(Array.isArray(this.container)){for(let f=0;f<this.container.length;f++)if(this.container[f]===this.node){kW.call(this,f);return}}else for(let f of Object.keys(this.container))if(this.container[f]===this.node){kW.call(this,f);return}this.key=null}function i7(){if(!this.parent||!this.inList)return;let f=this.parent[this.listKey];if(this.container===f)return;this.container=f||null}function _Zf(){if(this.key==null||!this.container||this.container[this.key]!==this.node)NZf._markRemoved.call(this)}function uZf(){if(this.contexts.pop(),this.contexts.length>0)this.setContext(this.contexts[this.contexts.length-1]);else this.setContext(void 0)}function hZf(f){this.contexts.push(f),this.setContext(f)}function yZf(f,G,X,W){this.listKey=X,this.container=G,this.parentPath=f||this.parentPath,kW.call(this,W)}function kW(f){var G;this.key=f,this.node=this.container[this.key],this.type=(G=this.node)==null?void 0:G.type}function xZf(f=this){if(f.removed)return;let G=this.contexts;for(let X of G)X.maybeQueue(f)}function mZf(){let{context:f,node:G}=this;if(!LZf.isPrivate(G)&&G.computed)f.maybeQueue(this.get("key"));if(G.decorators)for(let X of this.get("decorators"))f.maybeQueue(X)}function lZf(){let f=this,G=this.contexts;while(!G.length){if(f=f.parentPath,!f)break;G=f.contexts}return G}});var t7=P((p7)=>{Object.defineProperty(p7,"__esModule",{value:!0});p7.default=void 0;class s7{getCode(){}getScope(){}addHelper(){throw new Error("Helpers are not supported by the default hub.")}buildError(f,G,X=TypeError){return new X(G)}}p7.default=s7});var ZX=P(($X)=>{Object.defineProperty($X,"__esModule",{value:!0});Object.defineProperty($X,"Hub",{enumerable:!0,get:function(){return MYf.default}});Object.defineProperty($X,"NodePath",{enumerable:!0,get:function(){return zYf.default}});Object.defineProperty($X,"Scope",{enumerable:!0,get:function(){return BYf.default}});$X.visitors=$X.default=void 0;KG();var FX=QX();$X.visitors=FX;var ZYf=Vf(),YYf=X1(),n7=FW(),zYf=lG(),BYf=tR(),MYf=t7(),{VISITOR_KEYS:KYf,removeProperties:SYf,traverseFast:o7}=ZYf;function RG(f,G={},X,W,R,J){if(!f)return;if(!G.noScope&&!X){if(f.type!=="Program"&&f.type!=="File")throw new Error(`You must pass a scope and parentPath unless traversing a Program/File. Instead of that you tried to traverse a ${f.type} node without passing scope and parentPath.`)}if(!R&&J)throw new Error("visitSelf can only be used when providing a NodePath.");if(!KYf[f.type])return;FX.explode(G),n7.traverseNode(f,G,X,W,R,null,J)}var LFf=$X.default=RG;RG.visitors=FX;RG.verify=FX.verify;RG.explode=FX.explode;RG.cheap=function(f,G){o7(f,G);return};RG.node=function(f,G,X,W,R,J){n7.traverseNode(f,G,X,W,R,J)};RG.clearNode=function(f,G){SYf(f,G)};RG.removeProperties=function(f,G){return o7(f,RG.clearNode,G),f};function FYf(f,G){if(f.node.type===G.type)G.has=!0,f.stop()}RG.hasType=function(f,G,X){if(X!=null&&X.includes(f.type))return!1;if(f.type===G)return!0;let W={has:!1,type:G};return RG(f,{noScope:!0,denylist:X,enter:FYf},null,W),W.has};RG.cache=YYf});import OYf from"node:process";import{bold as _J,dim as uJ,green as jYf,italic as f5,log as PYf}from"@stacksjs/cli";import{path as vW}from"@stacksjs/path";import{fs as DYf,glob as IYf}from"@stacksjs/storage";var CYf=yW(KR(),1),qYf=yW(QW(),1),AYf=yW(ZX(),1);async function _Ff(f){let X=Date.now()-f.startTime,W=f.pkgName??`@stacksjs/${vW.basename(f.dir)}`;if(!f.result.success)console.log(f.result.logs[0]),OYf.exit(1);let R=await IYf([vW.resolve(f.dir,"dist","**/*")],{absolute:!0});for(let J of R){let U=await DYf.stat(J),V;if(U.size<1048576)V=`${(U.size/1024).toFixed(2)}kb`;else V=`${(U.size/1024/1024).toFixed(2)}mb`;let H=vW.relative(f.dir,J).replace("dist/","");console.log(`${_J(uJ(`[${V}]`))} ${uJ("dist/")}${H}`)}console.log(`${_J(uJ(`[${X}ms]`))} Built ${f5(_J(jYf(W)))}`)}async function uFf(f){let G=f.pkgName??`@stacksjs/${vW.basename(f.dir)}`;if(f.styled===!1)console.log(`Building ${G}...`);else PYf.info(`Building ${f5(G)}...`);return{startTime:Date.now()}}var export_traverse=AYf.default;var export_parser=qYf.default;var export_generator=CYf.default;export{export_traverse as traverse,export_parser as parser,_Ff as outro,uFf as intro,export_generator as generator};
|
|
53
|
+
return ${P0(Q)};
|
|
54
|
+
})(${cW(this.node)})
|
|
55
|
+
`;return this.replaceWith(V)[0].get("arguments.0")}function LB1(J){let X=J.params.findIndex((Z)=>HB1(Z)||GB1(Z));return X===-1?J.params.length:X}});var J3=N((oW)=>{Object.defineProperty(oW,"__esModule",{value:!0});oW._guessExecutionStatusRelativeTo=QR1;oW._resolve=nW;oW.canHaveVariableDeclarationOrExpression=sB1;oW.canSwapBetweenExpressionAndStatement=tB1;oW.getSource=JR1;oW.isCompletionRecord=nB1;oW.isConstantExpression=GR1;oW.isInStrictMode=WR1;oW.isNodeType=aB1;oW.isStatementOrBlock=oB1;oW.isStatic=dB1;oW.matchesPattern=rB1;oW.referencesImport=eB1;oW.resolve=HR1;oW.willIMaybeExecuteBefore=XR1;var hB1=Y1(),{STATEMENT_OR_BLOCK_KEYS:xB1,VISITOR_KEYS:yB1,isBlockStatement:tW,isExpression:uB1,isIdentifier:mB1,isLiteral:cB1,isStringLiteral:lB1,isType:iB1,matchesPattern:pB1}=hB1;function rB1(J,X){return pB1(this.node,J,X)}oW.has=function(X){var Z;let Q=(Z=this.node)==null?void 0:Z[X];if(Q&&Array.isArray(Q))return!!Q.length;else return!!Q};function dB1(){return this.scope.isStatic(this.node)}oW.is=oW.has;oW.isnt=function(X){return!this.has(X)};oW.equals=function(X,Z){return this.node[X]===Z};function aB1(J){return iB1(this.type,J)}function sB1(){return(this.key==="init"||this.key==="left")&&this.parentPath.isFor()}function tB1(J){if(this.key!=="body"||!this.parentPath.isArrowFunctionExpression())return!1;if(this.isExpression())return tW(J);else if(this.isBlockStatement())return uB1(J);return!1}function nB1(J){let X=this,Z=!0;do{let{type:Q,container:Y}=X;if(!Z&&(X.isFunction()||Q==="StaticBlock"))return!!J;if(Z=!1,Array.isArray(Y)&&X.key!==Y.length-1)return!1}while((X=X.parentPath)&&!X.isProgram()&&!X.isDoExpression());return!0}function oB1(){if(this.parentPath.isLabeledStatement()||tW(this.container))return!1;else return xB1.includes(this.key)}function eB1(J,X){if(!this.isReferencedIdentifier()){if(this.isJSXMemberExpression()&&this.node.property.name===X||(this.isMemberExpression()||this.isOptionalMemberExpression())&&(this.node.computed?lB1(this.node.property,{value:X}):this.node.property.name===X)){let z=this.get("object");return z.isReferencedIdentifier()&&z.referencesImport(J,"*")}return!1}let Z=this.scope.getBinding(this.node.name);if((Z==null?void 0:Z.kind)!=="module")return!1;let Q=Z.path,Y=Q.parentPath;if(!Y.isImportDeclaration())return!1;if(Y.node.source.value===J){if(!X)return!0}else return!1;if(Q.isImportDefaultSpecifier()&&X==="default")return!0;if(Q.isImportNamespaceSpecifier()&&X==="*")return!0;if(Q.isImportSpecifier()&&mB1(Q.node.imported,{name:X}))return!0;return!1}function JR1(){let J=this.node;if(J.end){let X=this.hub.getCode();if(X)return X.slice(J.start,J.end)}return""}function XR1(J){return this._guessExecutionStatusRelativeTo(J)!=="after"}function dW(J){return J.isProgram()?J:(J.parentPath.scope.getFunctionParent()||J.parentPath.scope.getProgramParent()).path}function ZR1(J,X){switch(J){case"LogicalExpression":return X==="right";case"ConditionalExpression":case"IfStatement":return X==="consequent"||X==="alternate";case"WhileStatement":case"DoWhileStatement":case"ForInStatement":case"ForOfStatement":return X==="body";case"ForStatement":return X==="body"||X==="update";case"SwitchStatement":return X==="cases";case"TryStatement":return X==="handler";case"AssignmentPattern":return X==="right";case"OptionalMemberExpression":return X==="property";case"OptionalCallExpression":return X==="arguments";default:return!1}}function aW(J,X){for(let Z=0;Z<X;Z++){let Q=J[Z];if(ZR1(Q.parent.type,Q.parentKey))return!0}return!1}var sW=Symbol();function QR1(J){return Z7(this,J,new Map)}function Z7(J,X,Z){let Q={this:dW(J),target:dW(X)};if(Q.target.node!==Q.this.node)return zR1(J,Q.target,Z);let Y={target:X.getAncestry(),this:J.getAncestry()};if(Y.target.includes(J))return"after";if(Y.this.includes(X))return"before";let z,H={target:0,this:0};while(!z&&H.this<Y.this.length){let U=Y.this[H.this];if(H.target=Y.target.indexOf(U),H.target>=0)z=U;else H.this++}if(!z)throw Error("Internal Babel error - The two compared nodes don't appear to belong to the same program.");if(aW(Y.this,H.this-1)||aW(Y.target,H.target-1))return"unknown";let G={this:Y.this[H.this-1],target:Y.target[H.target-1]};if(G.target.listKey&&G.this.listKey&&G.target.container===G.this.container)return G.target.key>G.this.key?"before":"after";let W=yB1[z.type],V={this:W.indexOf(G.this.parentKey),target:W.indexOf(G.target.parentKey)};return V.target>V.this?"before":"after"}function YR1(J,X,Z){if(!X.isFunctionDeclaration()){if(Z7(J,X,Z)==="before")return"before";return"unknown"}else if(X.parentPath.isExportDeclaration())return"unknown";let Q=X.scope.getBinding(X.node.id.name);if(!Q.references)return"before";let Y=Q.referencePaths,z;for(let H of Y){if(!!H.find((V)=>V.node===X.node))continue;if(H.key!=="callee"||!H.parentPath.isCallExpression())return"unknown";let W=Z7(J,H,Z);if(z&&z!==W)return"unknown";else z=W}return z}function zR1(J,X,Z){let Q=Z.get(J.node),Y;if(!Q)Z.set(J.node,Q=new Map);else if(Y=Q.get(X.node)){if(Y===sW)return"unknown";return Y}Q.set(X.node,sW);let z=YR1(J,X,Z);return Q.set(X.node,z),z}function HR1(J,X){return nW.call(this,J,X)||this}function nW(J,X){var Z;if((Z=X)!=null&&Z.includes(this))return;if(X=X||[],X.push(this),this.isVariableDeclarator()){if(this.get("id").isIdentifier())return this.get("init").resolve(J,X)}else if(this.isReferencedIdentifier()){let Q=this.scope.getBinding(this.node.name);if(!Q)return;if(!Q.constant)return;if(Q.kind==="module")return;if(Q.path!==this){let Y=Q.path.resolve(J,X);if(this.find((z)=>z.node===Y.node))return;return Y}}else if(this.isTypeCastExpression())return this.get("expression").resolve(J,X);else if(J&&this.isMemberExpression()){let Q=this.toComputedKey();if(!cB1(Q))return;let Y=Q.value,z=this.get("object").resolve(J,X);if(z.isObjectExpression()){let H=z.get("properties");for(let G of H){if(!G.isProperty())continue;let W=G.get("key"),V=G.isnt("computed")&&W.isIdentifier({name:Y});if(V=V||W.isLiteral({value:Y}),V)return G.get("value").resolve(J,X)}}else if(z.isArrayExpression()&&!isNaN(+Y)){let G=z.get("elements")[Y];if(G)return G.resolve(J,X)}}}function GR1(){if(this.isIdentifier()){let J=this.scope.getBinding(this.node.name);if(!J)return!1;return J.constant}if(this.isLiteral()){if(this.isRegExpLiteral())return!1;if(this.isTemplateLiteral())return this.get("expressions").every((J)=>J.isConstantExpression());return!0}if(this.isUnaryExpression()){if(this.node.operator!=="void")return!1;return this.get("argument").isConstantExpression()}if(this.isBinaryExpression()){let{operator:J}=this.node;return J!=="in"&&J!=="instanceof"&&this.get("left").isConstantExpression()&&this.get("right").isConstantExpression()}if(this.isMemberExpression())return!this.node.computed&&this.get("object").isIdentifier({name:"Symbol"})&&!this.scope.hasBinding("Symbol",{noGlobals:!0});if(this.isCallExpression())return this.node.arguments.length===1&&this.get("callee").matchesPattern("Symbol.for")&&!this.scope.hasBinding("Symbol",{noGlobals:!0})&&this.get("arguments")[0].isStringLiteral();return!1}function WR1(){return!!(this.isProgram()?this:this.parentPath).find((Z)=>{if(Z.isProgram({sourceType:"module"}))return!0;if(Z.isClass())return!0;if(Z.isArrowFunctionExpression()&&!Z.get("body").isBlockStatement())return!1;let Q;if(Z.isFunction())Q=Z.node.body;else if(Z.isProgram())Q=Z.node;else return!1;for(let Y of Q.directives)if(Y.value.value==="use strict")return!0;return!1})}});var H3=N((z3)=>{Object.defineProperty(z3,"__esModule",{value:!0});z3._getKey=Q3;z3._getPattern=Y3;z3.get=lR1;z3.getAllNextSiblings=mR1;z3.getAllPrevSiblings=cR1;z3.getAssignmentIdentifiers=iR1;z3.getBindingIdentifierPaths=dR1;z3.getBindingIdentifiers=pR1;z3.getCompletionRecords=hR1;z3.getNextSibling=uR1;z3.getOpposite=gR1;z3.getOuterBindingIdentifierPaths=aR1;z3.getOuterBindingIdentifiers=rR1;z3.getPrevSibling=yR1;z3.getSibling=xR1;var Y7=iJ(),IR1=Y1(),{getAssignmentIdentifiers:TR1,getBindingIdentifiers:Z3,getOuterBindingIdentifiers:LR1,numericLiteral:bR1,unaryExpression:kR1}=IR1,z7=0,uX=1;function vR1(J){return{type:z7,path:J}}function ER1(J){return{type:uX,path:J}}function gR1(){if(this.key==="left")return this.getSibling("right");else if(this.key==="right")return this.getSibling("left");return null}function a0(J,X,Z){if(J)X.push(...s0(J,Z));return X}function _R1(J,X,Z){let Q=[];for(let Y=0;Y<J.length;Y++){let z=J[Y],H=s0(z,Z),G=[],W=[];for(let V of H){if(V.type===z7)G.push(V);if(V.type===uX)W.push(V)}if(G.length)Q=G;X.push(...W)}return X.push(...Q),X}function fR1(J){J.forEach((X)=>{X.type=uX})}function Q7(J,X){J.forEach((Z)=>{if(Z.path.isBreakStatement({label:null}))if(X)Z.path.replaceWith(kR1("void",bR1(0)));else Z.path.remove()})}function X3(J,X){let Z=[];if(X.canHaveBreak){let Q=[];for(let Y=0;Y<J.length;Y++){let z=J[Y],H=Object.assign({},X,{inCaseClause:!1});if(z.isBlockStatement()&&(X.inCaseClause||X.shouldPopulateBreak))H.shouldPopulateBreak=!0;else H.shouldPopulateBreak=!1;let G=s0(z,H);if(G.length>0&&G.every((W)=>W.type===uX)){if(Q.length>0&&G.every((W)=>W.path.isBreakStatement({label:null}))){if(fR1(Q),Z.push(...Q),Q.some((W)=>W.path.isDeclaration())){if(Z.push(...G),!X.shouldPreserveBreak)Q7(G,!0)}if(!X.shouldPreserveBreak)Q7(G,!1)}else if(Z.push(...G),!X.shouldPopulateBreak&&!X.shouldPreserveBreak)Q7(G,!0);break}if(Y===J.length-1)Z.push(...G);else{Q=[];for(let W=0;W<G.length;W++){let V=G[W];if(V.type===uX)Z.push(V);if(V.type===z7)Q.push(V)}}}}else if(J.length)for(let Q=J.length-1;Q>=0;Q--){let Y=s0(J[Q],X);if(Y.length>1||Y.length===1&&!Y[0].path.isVariableDeclaration()&&!Y[0].path.isEmptyStatement()){Z.push(...Y);break}}return Z}function s0(J,X){let Z=[];if(J.isIfStatement())Z=a0(J.get("consequent"),Z,X),Z=a0(J.get("alternate"),Z,X);else if(J.isDoExpression()||J.isFor()||J.isWhile()||J.isLabeledStatement())return a0(J.get("body"),Z,X);else if(J.isProgram()||J.isBlockStatement())return X3(J.get("body"),X);else if(J.isFunction())return s0(J.get("body"),X);else if(J.isTryStatement())Z=a0(J.get("block"),Z,X),Z=a0(J.get("handler"),Z,X);else if(J.isCatchClause())return a0(J.get("body"),Z,X);else if(J.isSwitchStatement())return _R1(J.get("cases"),Z,X);else if(J.isSwitchCase())return X3(J.get("consequent"),{canHaveBreak:!0,shouldPopulateBreak:!1,inCaseClause:!0,shouldPreserveBreak:X.shouldPreserveBreak});else if(J.isBreakStatement())Z.push(ER1(J));else Z.push(vR1(J));return Z}function hR1(J=!1){return s0(this,{canHaveBreak:!1,shouldPopulateBreak:!1,inCaseClause:!1,shouldPreserveBreak:J}).map((Z)=>Z.path)}function xR1(J){return Y7.default.get({parentPath:this.parentPath,parent:this.parent,container:this.container,listKey:this.listKey,key:J}).setContext(this.context)}function yR1(){return this.getSibling(this.key-1)}function uR1(){return this.getSibling(this.key+1)}function mR1(){let J=this.key,X=this.getSibling(++J),Z=[];while(X.node)Z.push(X),X=this.getSibling(++J);return Z}function cR1(){let J=this.key,X=this.getSibling(--J),Z=[];while(X.node)Z.push(X),X=this.getSibling(--J);return Z}function lR1(J,X=!0){if(X===!0)X=this.context;let Z=J.split(".");if(Z.length===1)return Q3.call(this,J,X);else return Y3.call(this,Z,X)}function Q3(J,X){let Z=this.node,Q=Z[J];if(Array.isArray(Q))return Q.map((Y,z)=>{return Y7.default.get({listKey:J,parentPath:this,parent:Z,container:Q,key:z}).setContext(X)});else return Y7.default.get({parentPath:this,parent:Z,container:Z,key:J}).setContext(X)}function Y3(J,X){let Z=this;for(let Q of J)if(Q===".")Z=Z.parentPath;else if(Array.isArray(Z))Z=Z[Q];else Z=Z.get(Q,X);return Z}function iR1(){return TR1(this.node)}function pR1(J){return Z3(this.node,J)}function rR1(J){return LR1(this.node,J)}function dR1(J=!1,X=!1){let Q=[this],Y=Object.create(null);while(Q.length){let z=Q.shift();if(!z)continue;if(!z.node)continue;let H=Z3.keys[z.node.type];if(z.isIdentifier()){if(J)(Y[z.node.name]=Y[z.node.name]||[]).push(z);else Y[z.node.name]=z;continue}if(z.isExportDeclaration()){let G=z.get("declaration");if(G.isDeclaration())Q.push(G);continue}if(X){if(z.isFunctionDeclaration()){Q.push(z.get("id"));continue}if(z.isFunctionExpression())continue}if(H)for(let G=0;G<H.length;G++){let W=H[G],V=z.get(W);if(Array.isArray(V))Q.push(...V);else if(V.node)Q.push(V)}}return Y}function aR1(J=!1){return this.getBindingIdentifierPaths(J,!0)}});var V3=N((W3)=>{Object.defineProperty(W3,"__esModule",{value:!0});W3.addComment=$$1;W3.addComments=q$1;W3.shareCommentsWithSiblings=R$1;var K$1=Y1(),{addComment:U$1,addComments:B$1}=K$1;function R$1(){if(typeof this.key==="string")return;let J=this.node;if(!J)return;let{trailingComments:X,leadingComments:Z}=J;if(!X&&!Z)return;let Q=this.getSibling(this.key-1),Y=this.getSibling(this.key+1),z=Boolean(Q.node),H=Boolean(Y.node);if(z){if(Z)Q.addComments("trailing",G3(Z,Q.node.trailingComments));if(X&&!H)Q.addComments("trailing",X)}if(H){if(X)Y.addComments("leading",G3(X,Y.node.leadingComments));if(Z&&!z)Y.addComments("leading",Z)}}function G3(J,X){if(!(X!=null&&X.length))return J;let Z=new Set(X);return J.filter((Q)=>{return!Z.has(Q)})}function $$1(J,X,Z){U$1(this.node,J,X,Z)}function q$1(J,X){B$1(this.node,J,X)}});var iJ=N(($3)=>{Object.defineProperty($3,"__esModule",{value:!0});$3.default=$3.SHOULD_STOP=$3.SHOULD_SKIP=$3.REMOVED=void 0;var O$1=$8(),A$1=tz(),C$1=i0(),D$1=w8(),B3=Y1(),J2=B3,N$1=O0(),w$1=i6(),EJ=sH(),t0=MG(),n0=_8(),K3=$W(),S0=rW(),_1=J3(),R3=qJ(),g1=R3,o0=d9(),gJ=a9(),JJ=H3(),H7=V3(),P$1=O8(),{validate:S$1}=B3,U3=A$1("babel"),jI1=$3.REMOVED=1,MI1=$3.SHOULD_STOP=2,OI1=$3.SHOULD_SKIP=4,pJ=$3.default=class J{constructor(X,Z){this.contexts=[],this.state=null,this._traverseFlags=0,this.skipKeys=null,this.parentPath=null,this.container=null,this.listKey=null,this.key=null,this.node=null,this.type=null,this._store=null,this.parent=Z,this.hub=X,this.data=null,this.context=null,this.scope=null}get removed(){return(this._traverseFlags&1)>0}set removed(X){if(X)this._traverseFlags|=1;else this._traverseFlags&=-2}get shouldStop(){return(this._traverseFlags&2)>0}set shouldStop(X){if(X)this._traverseFlags|=2;else this._traverseFlags&=-3}get shouldSkip(){return(this._traverseFlags&4)>0}set shouldSkip(X){if(X)this._traverseFlags|=4;else this._traverseFlags&=-5}static get({hub:X,parentPath:Z,parent:Q,container:Y,listKey:z,key:H}){if(!X&&Z)X=Z.hub;if(!Q)throw Error("To get a node path the parent needs to exist");let G=Y[H],W=N$1.getOrCreateCachedPaths(Q,Z),V=W.get(G);if(!V){if(V=new J(X,Q),G)W.set(G,V)}return R3.setup.call(V,Z,Y,z,H),V}getScope(X){return this.isScope()?new D$1.default(this):X}setData(X,Z){if(this.data==null)this.data=Object.create(null);return this.data[X]=Z}getData(X,Z){if(this.data==null)this.data=Object.create(null);let Q=this.data[X];if(Q===void 0&&Z!==void 0)Q=this.data[X]=Z;return Q}hasNode(){return this.node!=null}buildCodeFrameError(X,Z=SyntaxError){return this.hub.buildError(this.node,X,Z)}traverse(X,Z){(0,C$1.default)(this.node,X,this.scope,Z,this)}set(X,Z){S$1(this.node,X,Z),this.node[X]=Z}getPathLocation(){let X=[],Z=this;do{let Q=Z.key;if(Z.inList)Q=`${Z.listKey}[${Q}]`;X.unshift(Q)}while(Z=Z.parentPath);return X.join(".")}debug(X){if(!U3.enabled)return;U3(`${this.getPathLocation()} ${this.type}: ${X}`)}toString(){return(0,w$1.default)(this.node).code}get inList(){return!!this.listKey}set inList(X){if(!X)this.listKey=null}get parentKey(){return this.listKey||this.key}},I$1={findParent:EJ.findParent,find:EJ.find,getFunctionParent:EJ.getFunctionParent,getStatementParent:EJ.getStatementParent,getEarliestCommonAncestorFrom:EJ.getEarliestCommonAncestorFrom,getDeepestCommonAncestorFrom:EJ.getDeepestCommonAncestorFrom,getAncestry:EJ.getAncestry,isAncestor:EJ.isAncestor,isDescendant:EJ.isDescendant,inType:EJ.inType,getTypeAnnotation:t0.getTypeAnnotation,isBaseType:t0.isBaseType,couldBeBaseType:t0.couldBeBaseType,baseTypeStrictlyMatches:t0.baseTypeStrictlyMatches,isGenericType:t0.isGenericType,replaceWithMultiple:n0.replaceWithMultiple,replaceWithSourceString:n0.replaceWithSourceString,replaceWith:n0.replaceWith,replaceExpressionWithStatements:n0.replaceExpressionWithStatements,replaceInline:n0.replaceInline,evaluateTruthy:K3.evaluateTruthy,evaluate:K3.evaluate,toComputedKey:S0.toComputedKey,ensureBlock:S0.ensureBlock,unwrapFunctionEnvironment:S0.unwrapFunctionEnvironment,arrowFunctionToExpression:S0.arrowFunctionToExpression,splitExportDeclaration:S0.splitExportDeclaration,ensureFunctionName:S0.ensureFunctionName,matchesPattern:_1.matchesPattern,isStatic:_1.isStatic,isNodeType:_1.isNodeType,canHaveVariableDeclarationOrExpression:_1.canHaveVariableDeclarationOrExpression,canSwapBetweenExpressionAndStatement:_1.canSwapBetweenExpressionAndStatement,isCompletionRecord:_1.isCompletionRecord,isStatementOrBlock:_1.isStatementOrBlock,referencesImport:_1.referencesImport,getSource:_1.getSource,willIMaybeExecuteBefore:_1.willIMaybeExecuteBefore,_guessExecutionStatusRelativeTo:_1._guessExecutionStatusRelativeTo,resolve:_1.resolve,isConstantExpression:_1.isConstantExpression,isInStrictMode:_1.isInStrictMode,isDenylisted:g1.isDenylisted,visit:g1.visit,skip:g1.skip,skipKey:g1.skipKey,stop:g1.stop,setContext:g1.setContext,requeue:g1.requeue,requeueComputedKeyAndDecorators:g1.requeueComputedKeyAndDecorators,remove:o0.remove,insertBefore:gJ.insertBefore,insertAfter:gJ.insertAfter,unshiftContainer:gJ.unshiftContainer,pushContainer:gJ.pushContainer,getOpposite:JJ.getOpposite,getCompletionRecords:JJ.getCompletionRecords,getSibling:JJ.getSibling,getPrevSibling:JJ.getPrevSibling,getNextSibling:JJ.getNextSibling,getAllNextSiblings:JJ.getAllNextSiblings,getAllPrevSiblings:JJ.getAllPrevSiblings,get:JJ.get,getAssignmentIdentifiers:JJ.getAssignmentIdentifiers,getBindingIdentifiers:JJ.getBindingIdentifiers,getOuterBindingIdentifiers:JJ.getOuterBindingIdentifiers,getBindingIdentifierPaths:JJ.getBindingIdentifierPaths,getOuterBindingIdentifierPaths:JJ.getOuterBindingIdentifierPaths,shareCommentsWithSiblings:H7.shareCommentsWithSiblings,addComment:H7.addComment,addComments:H7.addComments};Object.assign(pJ.prototype,I$1);pJ.prototype.arrowFunctionToShadowed=S0[String("arrowFunctionToShadowed")];Object.assign(pJ.prototype,{has:_1[String("has")],is:_1[String("is")],isnt:_1[String("isnt")],equals:_1[String("equals")],hoist:gJ[String("hoist")],updateSiblingKeys:gJ.updateSiblingKeys,call:g1.call,isBlacklisted:g1[String("isBlacklisted")],setScope:g1.setScope,resync:g1.resync,popContext:g1.popContext,pushContext:g1.pushContext,setup:g1.setup,setKey:g1.setKey});pJ.prototype._guessExecutionStatusRelativeToDifferentFunctions=_1._guessExecutionStatusRelativeTo;pJ.prototype._guessExecutionStatusRelativeToDifferentFunctions=_1._guessExecutionStatusRelativeTo;Object.assign(pJ.prototype,{_getTypeAnnotation:t0._getTypeAnnotation,_replaceWith:n0._replaceWith,_resolve:_1._resolve,_call:g1._call,_resyncParent:g1._resyncParent,_resyncKey:g1._resyncKey,_resyncList:g1._resyncList,_resyncRemoved:g1._resyncRemoved,_getQueueContexts:g1._getQueueContexts,_removeFromScope:o0._removeFromScope,_callRemovalHooks:o0._callRemovalHooks,_remove:o0._remove,_markRemoved:o0._markRemoved,_assertUnremoved:o0._assertUnremoved,_containerInsert:gJ._containerInsert,_containerInsertBefore:gJ._containerInsertBefore,_containerInsertAfter:gJ._containerInsertAfter,_verifyNodeList:gJ._verifyNodeList,_getKey:JJ._getKey,_getPattern:JJ._getPattern});for(let J of J2.TYPES){let X=`is${J}`,Z=J2[X];pJ.prototype[X]=function(Q){return Z(this.node,Q)},pJ.prototype[`assert${J}`]=function(Q){if(!Z(this.node,Q))throw TypeError(`Expected node path of type ${J}`)}}Object.assign(pJ.prototype,P$1);for(let J of Object.keys(O$1)){if(J.startsWith("_"))continue;if(!J2.TYPES.includes(J))J2.TYPES.push(J)}});var G7=N((j3)=>{Object.defineProperty(j3,"__esModule",{value:!0});j3.default=void 0;class F3{getCode(){}getScope(){}addHelper(){throw Error("Helpers are not supported by the default hub.")}buildError(J,X,Z=TypeError){return new Z(X)}}j3.default=F3});var D3=N((A3)=>{Object.defineProperty(A3,"__esModule",{value:!0});A3.default=void 0;var k$1=iJ(),v$1=Y1(),W7=qJ(),E$1=G7(),{VISITOR_KEYS:g$1}=v$1;class O3{constructor(J,X,Z,Q){this.queue=null,this.priorityQueue=null,this.parentPath=Q,this.scope=J,this.state=Z,this.opts=X}shouldVisit(J){let X=this.opts;if(X.enter||X.exit)return!0;if(X[J.type])return!0;let Z=g$1[J.type];if(!(Z!=null&&Z.length))return!1;for(let Q of Z)if(J[Q])return!0;return!1}create(J,X,Z,Q){let{parentPath:Y}=this,z=Y==null?J.type==="Program"||J.type==="File"?new E$1.default:void 0:Y.hub;return k$1.default.get({parentPath:Y,parent:J,container:X,key:Z,listKey:Q,hub:z})}maybeQueue(J,X){if(this.queue)if(X)this.queue.push(J);else this.priorityQueue.push(J)}visitMultiple(J,X,Z){if(J.length===0)return!1;let Q=[];for(let Y=0;Y<J.length;Y++){let z=J[Y];if(z&&this.shouldVisit(z))Q.push(this.create(X,J,Y,Z))}return this.visitQueue(Q)}visitSingle(J,X){if(this.shouldVisit(J[X]))return this.visitQueue([this.create(J,J,X)]);else return!1}visitQueue(J){this.queue=J,this.priorityQueue=[];let X=new WeakSet,Z=!1,Q=0;for(;Q<J.length;){let Y=J[Q];if(Q++,W7.resync.call(Y),Y.contexts.length===0||Y.contexts[Y.contexts.length-1]!==this)W7.pushContext.call(Y,this);if(Y.key===null)continue;let{node:z}=Y;if(X.has(z))continue;if(z)X.add(z);if(Y.visit()){Z=!0;break}if(this.priorityQueue.length){if(Z=this.visitQueue(this.priorityQueue),this.priorityQueue=[],this.queue=J,Z)break}}for(let Y=0;Y<Q;Y++)W7.popContext.call(J[Y]);return this.queue=null,Z}visit(J,X){let Z=J[X];if(!Z)return!1;if(Array.isArray(Z))return this.visitMultiple(Z,J,X);else return this.visitSingle(J,X)}}A3.default=O3});var y9=N((N3)=>{Object.defineProperty(N3,"__esModule",{value:!0});N3.traverseNode=x$1;var _$1=D3(),NI1=iJ(),f$1=Y1(),wI1=qJ(),{VISITOR_KEYS:h$1}=f$1;function x$1(J,X,Z,Q,Y,z,H){let G=h$1[J.type];if(!G)return!1;let W=new _$1.default(Z,X,Q,Y);if(H){if(z!=null&&z[Y.parentKey])return!1;return W.visitQueue([Y])}for(let V of G){if(z!=null&&z[V])continue;if(W.visit(J,V))return!0}return!1}});var qJ=N((k3)=>{Object.defineProperty(k3,"__esModule",{value:!0});k3._call=K7;k3._forceSetScope=d$1;k3._getQueueContexts=Zq1;k3._resyncKey=L3;k3._resyncList=b3;k3._resyncParent=T3;k3._resyncRemoved=t$1;k3.call=V7;k3.isDenylisted=S3;k3.popContext=n$1;k3.pushContext=o$1;k3.requeue=Jq1;k3.requeueComputedKeyAndDecorators=Xq1;k3.resync=s$1;k3.setContext=a$1;k3.setKey=X2;k3.setScope=I3;k3.setup=e$1;k3.skip=i$1;k3.skipKey=p$1;k3.stop=r$1;k3.visit=l$1;var u$1=y9(),w3=iJ(),m$1=d9(),c$1=Y1();function V7(J){let X=this.opts;if(this.debug(J),this.node){if(K7.call(this,X[J]))return!0}if(this.node){var Z;return K7.call(this,(Z=X[this.node.type])==null?void 0:Z[J])}return!1}function K7(J){if(!J)return!1;for(let X of J){if(!X)continue;let Z=this.node;if(!Z)return!0;let Q=X.call(this.state,this,this.state);if(Q&&typeof Q==="object"&&typeof Q.then==="function")throw Error("You appear to be using a plugin with an async traversal visitor, which your current version of Babel does not support. If you're using a published plugin, you may need to upgrade your @babel/core version.");if(Q)throw Error(`Unexpected return value from visitor method ${X}`);if(this.node!==Z)return!0;if(this._traverseFlags>0)return!0}return!1}function S3(){var J;let X=(J=this.opts.denylist)!=null?J:this.opts.blacklist;return X==null?void 0:X.includes(this.node.type)}k3.isBlacklisted=S3;function P3(J,X){if(J.context!==X)J.context=X,J.state=X.state,J.opts=X.opts}function l$1(){var J,X;if(!this.node)return!1;if(this.isDenylisted())return!1;if((J=(X=this.opts).shouldSkip)!=null&&J.call(X,this))return!1;let Z=this.context;if(this.shouldSkip||V7.call(this,"enter"))return this.debug("Skip..."),this.shouldStop;return P3(this,Z),this.debug("Recursing into..."),this.shouldStop=(0,u$1.traverseNode)(this.node,this.opts,this.scope,this.state,this,this.skipKeys),P3(this,Z),V7.call(this,"exit"),this.shouldStop}function i$1(){this.shouldSkip=!0}function p$1(J){if(this.skipKeys==null)this.skipKeys={};this.skipKeys[J]=!0}function r$1(){this._traverseFlags|=w3.SHOULD_SKIP|w3.SHOULD_STOP}function d$1(){var J;let X=this.parentPath;if((this.key==="key"||this.listKey==="decorators")&&X.isMethod()||this.key==="discriminant"&&X.isSwitchStatement())X=X.parentPath;let Z;while(X&&!Z)Z=X.scope,X=X.parentPath;this.scope=this.getScope(Z),(J=this.scope)==null||J.init()}function I3(){var J,X;if((J=this.opts)!=null&&J.noScope)return;let Z=this.parentPath;if((this.key==="key"||this.listKey==="decorators")&&Z.isMethod()||this.key==="discriminant"&&Z.isSwitchStatement())Z=Z.parentPath;let Q;while(Z&&!Q){var Y;if((Y=Z.opts)!=null&&Y.noScope)return;Q=Z.scope,Z=Z.parentPath}this.scope=this.getScope(Q),(X=this.scope)==null||X.init()}function a$1(J){if(this.skipKeys!=null)this.skipKeys={};if(this._traverseFlags=0,J)this.context=J,this.state=J.state,this.opts=J.opts;return I3.call(this),this}function s$1(){if(this.removed)return;T3.call(this),b3.call(this),L3.call(this)}function T3(){if(this.parentPath)this.parent=this.parentPath.node}function L3(){if(!this.container)return;if(this.node===this.container[this.key])return;if(Array.isArray(this.container)){for(let J=0;J<this.container.length;J++)if(this.container[J]===this.node){X2.call(this,J);return}}else for(let J of Object.keys(this.container))if(this.container[J]===this.node){X2.call(this,J);return}this.key=null}function b3(){if(!this.parent||!this.inList)return;let J=this.parent[this.listKey];if(this.container===J)return;this.container=J||null}function t$1(){if(this.key==null||!this.container||this.container[this.key]!==this.node)m$1._markRemoved.call(this)}function n$1(){if(this.contexts.pop(),this.contexts.length>0)this.setContext(this.contexts[this.contexts.length-1]);else this.setContext(void 0)}function o$1(J){this.contexts.push(J),this.setContext(J)}function e$1(J,X,Z,Q){this.listKey=Z,this.container=X,this.parentPath=J||this.parentPath,X2.call(this,Q)}function X2(J){var X;this.key=J,this.node=this.container[this.key],this.type=(X=this.node)==null?void 0:X.type}function Jq1(J=this){if(J.removed)return;let X=this.contexts;for(let Z of X)Z.maybeQueue(J)}function Xq1(){let{context:J,node:X}=this;if(!c$1.isPrivate(X)&&X.computed)J.maybeQueue(this.get("key"));if(X.decorators)for(let Z of this.get("decorators"))J.maybeQueue(Z)}function Zq1(){let J=this,X=this.contexts;while(!X.length){if(J=J.parentPath,!J)break;X=J.contexts}return X}});var i0=N((lX)=>{Object.defineProperty(lX,"__esModule",{value:!0});Object.defineProperty(lX,"Hub",{enumerable:!0,get:function(){return bq1.default}});Object.defineProperty(lX,"NodePath",{enumerable:!0,get:function(){return Tq1.default}});Object.defineProperty(lX,"Scope",{enumerable:!0,get:function(){return Lq1.default}});lX.visitors=lX.default=void 0;qJ();var cX=gX();lX.visitors=cX;var Sq1=Y1(),Iq1=O0(),v3=y9(),Tq1=iJ(),Lq1=w8(),bq1=G7(),{VISITOR_KEYS:kq1,removeProperties:vq1,traverseFast:mX}=Sq1;function NJ(J,X={},Z,Q,Y,z){if(!J)return;if(!X.noScope&&!Z){if(J.type!=="Program"&&J.type!=="File")throw Error(`You must pass a scope and parentPath unless traversing a Program/File. Instead of that you tried to traverse a ${J.type} node without passing scope and parentPath.`)}if(!Y&&z)throw Error("visitSelf can only be used when providing a NodePath.");if(!kq1[J.type])return;cX.explode(X),(0,v3.traverseNode)(J,X,Z,Q,Y,void 0,z)}var II1=lX.default=NJ;NJ.visitors=cX;NJ.verify=cX.verify;NJ.explode=cX.explode;NJ.cheap=function(J,X){mX(J,X);return};NJ.node=function(J,X,Z,Q,Y,z){(0,v3.traverseNode)(J,X,Z,Q,Y,z)};NJ.clearNode=function(J,X){vq1(J,X)};NJ.removeProperties=function(J,X){return mX(J,NJ.clearNode,X),J};NJ.hasType=function(J,X,Z){if(Z!=null&&Z.includes(J.type))return!1;if(J.type===X)return!0;return mX(J,function(Q){if(Z!=null&&Z.includes(Q.type))return mX.skip;if(Q.type===X)return mX.stop})};NJ.cache=Iq1});import{stat as hq1}from"fs/promises";import{bold as U7,dim as B7,green as xq1,italic as g3,log as yq1}from"@stacksjs/cli";import{path as Z2}from"@stacksjs/path";import{glob as uq1}from"@stacksjs/storage";var gq1=H2(i6(),1),_q1=H2(v9(),1),fq1=H2(i0(),1);async function gI1(J){let Z=Date.now()-J.startTime,Q=J.pkgName??`@stacksjs/${Z2.basename(J.dir)}`;if(J.result.errors&&J.result.errors.length>0)throw console.error("Build errors:",J.result.errors),Error(`Build failed with errors: ${JSON.stringify(J.result.errors)}`);else if(J.result.success!==void 0&&!J.result.success){let z=J.result.logs?.[0]||"Unknown build error";throw console.log(z),Error(`Build failed: ${z}`)}let Y=await uq1([Z2.resolve(J.dir,"dist","**/*")],{absolute:!0});for(let z of Y){let H=await hq1(z),G;if(H.size<1048576)G=`${(H.size/1024).toFixed(2)}kb`;else G=`${(H.size/1024/1024).toFixed(2)}mb`;let W=Z2.relative(J.dir,z).replace("dist/","");console.log(`${U7(B7(`[${G}]`))} ${B7("dist/")}${W}`)}console.log(`${U7(B7(`[${Z}ms]`))} Built ${g3(U7(xq1(Q)))}`)}async function _I1(J){let X=J.pkgName??`@stacksjs/${Z2.basename(J.dir)}`;if(J.styled===!1)console.log(`Building ${X}...`);else yq1.info(`Building ${g3(X)}...`);return{startTime:Date.now()}}function fI1(J=[]){return["@stacksjs/*","bun-queue","ioredis","localtunnels","localtunnels/*","@craft-native/ts","ts-md","meilisearch","algoliasearch","@opensearch-project/opensearch","*.yaml","*.yml",...J]}var export_traverse=fq1.default;var export_parser=_q1.default;var export_generator=gq1.default;export{export_traverse as traverse,export_parser as parser,gI1 as outro,_I1 as intro,export_generator as generator,fI1 as frameworkExternal};
|