@stacksjs/buddy 0.65.0 → 0.66.0

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.
Files changed (60) hide show
  1. package/dist/chunk-3cfvbq6w.js +5 -0
  2. package/dist/{chunk-5mkzknp4.js.map → chunk-3cfvbq6w.js.map} +2 -2
  3. package/dist/{chunk-pbpgcz3v.js → chunk-3v3h2zkp.js} +3 -3
  4. package/dist/{chunk-pbpgcz3v.js.map → chunk-3v3h2zkp.js.map} +1 -1
  5. package/dist/{chunk-agapayce.js → chunk-3zx3yk1m.js} +3 -3
  6. package/dist/{chunk-agapayce.js.map → chunk-3zx3yk1m.js.map} +1 -1
  7. package/dist/{chunk-3gvx3tap.js → chunk-8a487snn.js} +3 -3
  8. package/dist/{chunk-3gvx3tap.js.map → chunk-8a487snn.js.map} +1 -1
  9. package/dist/chunk-9kkf5maz.js +5 -0
  10. package/dist/{chunk-w4zypt02.js.map → chunk-9kkf5maz.js.map} +4 -4
  11. package/dist/{chunk-z7609s4h.js → chunk-9qba8jdt.js} +4 -4
  12. package/dist/{chunk-z7609s4h.js.map → chunk-9qba8jdt.js.map} +1 -1
  13. package/dist/{chunk-fqrjh7j8.js → chunk-cvpb67bs.js} +3 -3
  14. package/dist/{chunk-fqrjh7j8.js.map → chunk-cvpb67bs.js.map} +1 -1
  15. package/dist/{chunk-1bcxd9nx.js → chunk-eqwfdbyk.js} +3 -3
  16. package/dist/{chunk-1bcxd9nx.js.map → chunk-eqwfdbyk.js.map} +1 -1
  17. package/dist/{chunk-a6ba4vgs.js → chunk-f41k7dpa.js} +3 -3
  18. package/dist/{chunk-a6ba4vgs.js.map → chunk-f41k7dpa.js.map} +1 -1
  19. package/dist/{chunk-jkt9jxar.js → chunk-fx1zxxxa.js} +3 -3
  20. package/dist/{chunk-jkt9jxar.js.map → chunk-fx1zxxxa.js.map} +1 -1
  21. package/dist/{chunk-smzpmhmp.js → chunk-get5gzkc.js} +4 -4
  22. package/dist/{chunk-smzpmhmp.js.map → chunk-get5gzkc.js.map} +1 -1
  23. package/dist/{chunk-n55kahn5.js → chunk-m43npkjw.js} +3 -3
  24. package/dist/{chunk-n55kahn5.js.map → chunk-m43npkjw.js.map} +1 -1
  25. package/dist/chunk-mrrgcavv.js +831 -0
  26. package/dist/{chunk-mmjggjd5.js.map → chunk-mrrgcavv.js.map} +9 -9
  27. package/dist/chunk-n5y0mrsg.js +15 -0
  28. package/dist/{chunk-a3d48jzd.js.map → chunk-n5y0mrsg.js.map} +24 -15
  29. package/dist/chunk-qebxvzqz.js +5 -0
  30. package/dist/{chunk-b9d377d9.js.map → chunk-qebxvzqz.js.map} +2 -2
  31. package/dist/{chunk-sadghty0.js → chunk-qj2v5psd.js} +3 -3
  32. package/dist/{chunk-sadghty0.js.map → chunk-qj2v5psd.js.map} +1 -1
  33. package/dist/chunk-rh4brnzh.js +5 -0
  34. package/dist/chunk-rh4brnzh.js.map +16 -0
  35. package/dist/chunk-w2vwjv6k.js +6 -0
  36. package/dist/{chunk-mxwvrbdh.js.map → chunk-w2vwjv6k.js.map} +10 -12
  37. package/dist/{chunk-yxs8vtg9.js → chunk-w81rbh65.js} +4 -4
  38. package/dist/{chunk-yxs8vtg9.js.map → chunk-w81rbh65.js.map} +1 -1
  39. package/dist/chunk-wayp5kn2.js +5 -0
  40. package/dist/{chunk-ywfsnx7v.js.map → chunk-wayp5kn2.js.map} +2 -2
  41. package/dist/{chunk-bh61bx6h.js → chunk-x5c5ngpb.js} +3 -3
  42. package/dist/{chunk-bh61bx6h.js.map → chunk-x5c5ngpb.js.map} +1 -1
  43. package/dist/cli.js +1 -1
  44. package/dist/index.js +1 -1
  45. package/dist/stacks +0 -0
  46. package/package.json +45 -45
  47. package/src/commands/deploy.ts +1 -1
  48. package/src/commands/list.ts +1 -1
  49. package/src/commands/outdated.ts +1 -1
  50. package/src/commands/ports.ts +1 -1
  51. package/src/commands/release.ts +1 -4
  52. package/dist/chunk-5mkzknp4.js +0 -5
  53. package/dist/chunk-a3d48jzd.js +0 -15
  54. package/dist/chunk-b9d377d9.js +0 -5
  55. package/dist/chunk-k1q2z202.js +0 -4
  56. package/dist/chunk-k1q2z202.js.map +0 -16
  57. package/dist/chunk-mmjggjd5.js +0 -849
  58. package/dist/chunk-mxwvrbdh.js +0 -6
  59. package/dist/chunk-w4zypt02.js +0 -5
  60. package/dist/chunk-ywfsnx7v.js +0 -5
@@ -0,0 +1,831 @@
1
+ import{K as NZ}from"./chunk-9qba8jdt.js";import{$ as MZ,L as lZ,M as cZ,N as aZ,O as rZ,P as iZ,Q as uZ,R as GZ,S as JZ,T as XZ,U as HZ,V as W6,W as dZ,X as $Z,Y as RZ,Z as OH,_ as vH,aa as qZ,ba as sZ,ca as pZ,da as $V,ea as RV,fa as nZ,ga as FZ,ha as jZ,ia as oZ,ja as DZ,ka as tZ,la as SZ,ma as PZ,na as LZ,oa as TZ,pa as wZ,qa as yZ,ra as mZ}from"./chunk-n5y0mrsg.js";import{sa as a0,ta as VZ}from"./chunk-rh4brnzh.js";import{Aa as eZ,Da as QZ,Ea as YZ,Ga as WZ,Ha as zZ,Ia as IZ,Ja as AZ,La as MV,Qa as HV,Ra as ZV,Sa as T,Ta as VV,Va as QV,Wa as XV,Xa as k,Ya as YV,Za as CZ,_a as fZ,ab as bZ,bb as hZ,cb as WV,eb as UZ,fb as N,ua as _Z,va as gZ}from"./chunk-w2vwjv6k.js";import{Bb as w2,Cb as QK1,Db as S,Eb as eU1,Fb as tU1}from"./chunk-8a487snn.js";var EV=S((XG,kV)=>{(function(G,J){typeof XG==="object"&&typeof kV!=="undefined"?J(XG):typeof define==="function"&&define.amd?define(["exports"],J):(G=typeof globalThis!=="undefined"?globalThis:G||self,J(G.setArray={}))})(XG,function(G){class J{constructor(){this._indexes={__proto__:null},this.array=[]}}function X(Y){return Y}function H(Y,W){return X(Y)._indexes[W]}function Z(Y,W){const z=H(Y,W);if(z!==void 0)return z;const{array:B,_indexes:q}=X(Y),F=B.push(W);return q[W]=F-1}function V(Y){const{array:W,_indexes:z}=X(Y);if(W.length===0)return;const B=W.pop();z[B]=void 0}function Q(Y,W){const z=H(Y,W);if(z===void 0)return;const{array:B,_indexes:q}=X(Y);for(let F=z+1;F<B.length;F++){const j=B[F];B[F-1]=j,q[j]--}q[W]=void 0,B.pop()}G.SetArray=J,G.get=H,G.pop=V,G.put=Z,G.remove=Q,Object.defineProperty(G,"__esModule",{value:!0})})});var nJ=S((HG,OV)=>{(function(G,J){typeof HG==="object"&&typeof OV!=="undefined"?J(HG):typeof define==="function"&&define.amd?define(["exports"],J):(G=typeof globalThis!=="undefined"?globalThis:G||self,J(G.sourcemapCodec={}))})(HG,function(G){const J=",".charCodeAt(0),X=";".charCodeAt(0),Z=new Uint8Array(64),V=new Uint8Array(128);for(let r=0;r<"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".length;r++){const u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charCodeAt(r);Z[r]=u,V[u]=r}function Q(r,u){let _=0,p=0,i=0;do{const a=r.next();i=V[a],_|=(i&31)<<p,p+=5}while(i&32);const U1=_&1;if(_>>>=1,U1)_=-2147483648|-_;return u+_}function Y(r,u,_){let p=u-_;p=p<0?-p<<1|1:p<<1;do{let i=p&31;if(p>>>=5,p>0)i|=32;r.write(Z[i])}while(p>0);return u}function W(r,u){if(r.pos>=u)return!1;return r.peek()!==J}const z=16384,B=typeof TextDecoder!=="undefined"?new TextDecoder:typeof Buffer!=="undefined"?{decode(r){return Buffer.from(r.buffer,r.byteOffset,r.byteLength).toString()}}:{decode(r){let u="";for(let _=0;_<r.length;_++)u+=String.fromCharCode(r[_]);return u}};class q{constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(z)}write(r){const{buffer:u}=this;if(u[this.pos++]=r,this.pos===z)this.out+=B.decode(u),this.pos=0}flush(){const{buffer:r,out:u,pos:_}=this;return _>0?u+B.decode(r.subarray(0,_)):u}}class F{constructor(r){this.pos=0,this.buffer=r}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(r){const{buffer:u,pos:_}=this,p=u.indexOf(r,_);return p===-1?u.length:p}}const j=[];function f(r){const{length:u}=r,_=new F(r),p=[],i=[];let U1=0;for(;_.pos<u;_.pos++){U1=Q(_,U1);const a=Q(_,0);if(!W(_,u)){const e=i.pop();e[2]=U1,e[3]=a;continue}const x=Q(_,0),H1=Q(_,0)&1?[U1,a,0,0,x,Q(_,0)]:[U1,a,0,0,x];let Y1=j;if(W(_,u)){Y1=[];do{const e=Q(_,0);Y1.push(e)}while(W(_,u))}H1.vars=Y1,p.push(H1),i.push(H1)}return p}function h(r){const u=new q;for(let _=0;_<r.length;)_=w(r,_,u,[0]);return u.flush()}function w(r,u,_,p){const i=r[u],{0:U1,1:a,2:x,3:n,4:o,vars:H1}=i;if(u>0)_.write(J);p[0]=Y(_,U1,p[0]),Y(_,a,0),Y(_,o,0);const Y1=i.length===6?1:0;if(Y(_,Y1,0),i.length===6)Y(_,i[5],0);for(let e of H1)Y(_,e,0);for(u++;u<r.length;){const e=r[u],{0:B1,1:q1}=e;if(B1>x||B1===x&&q1>=n)break;u=w(r,u,_,p)}return _.write(J),p[0]=Y(_,x,p[0]),Y(_,n,0),u}function v(r){const{length:u}=r,_=new F(r),p=[],i=[];let U1=0,a=0,x=0,n=0,o=0,H1=0,Y1=0,e=0;do{const B1=_.indexOf(";");let q1=0;for(;_.pos<B1;_.pos++){if(q1=Q(_,q1),!W(_,B1)){const X2=i.pop();X2[2]=U1,X2[3]=q1;continue}const e1=Q(_,0),j2=e1&1,D2=e1&2,L2=e1&4;let r2=null,h2=j,V2;if(j2){const X2=Q(_,a);x=Q(_,a===X2?x:0),a=X2,V2=[U1,q1,0,0,X2,x]}else V2=[U1,q1,0,0];if(V2.isScope=!!L2,D2){const X2=n,X0=o;n=Q(_,n);const m0=X2===n;o=Q(_,m0?o:0),H1=Q(_,m0&&X0===o?H1:0),r2=[n,o,H1]}if(V2.callsite=r2,W(_,B1)){h2=[];do{Y1=U1,e=q1;const X2=Q(_,0);let X0;if(X2<-1){X0=[[Q(_,0)]];for(let m0=-1;m0>X2;m0--){const PJ=Y1;Y1=Q(_,Y1),e=Q(_,Y1===PJ?e:0);const Z9=Q(_,0);X0.push([Z9,Y1,e])}}else X0=[[X2]];h2.push(X0)}while(W(_,B1))}V2.bindings=h2,p.push(V2),i.push(V2)}U1++,_.pos=B1+1}while(_.pos<u);return p}function b(r){if(r.length===0)return"";const u=new q;for(let _=0;_<r.length;)_=$1(r,_,u,[0,0,0,0,0,0,0]);return u.flush()}function $1(r,u,_,p){const i=r[u],{0:U1,1:a,2:x,3:n,isScope:o,callsite:H1,bindings:Y1}=i;if(p[0]<U1)G1(_,p[0],U1),p[0]=U1,p[1]=0;else if(u>0)_.write(J);p[1]=Y(_,i[1],p[1]);const e=(i.length===6?1:0)|(H1?2:0)|(o?4:0);if(Y(_,e,0),i.length===6){const{4:B1,5:q1}=i;if(B1!==p[2])p[3]=0;p[2]=Y(_,B1,p[2]),p[3]=Y(_,q1,p[3])}if(H1){const{0:B1,1:q1,2:e1}=i.callsite;if(B1!==p[4])p[5]=0,p[6]=0;else if(q1!==p[5])p[6]=0;p[4]=Y(_,B1,p[4]),p[5]=Y(_,q1,p[5]),p[6]=Y(_,e1,p[6])}if(Y1)for(let B1 of Y1){if(B1.length>1)Y(_,-B1.length,0);const q1=B1[0][0];Y(_,q1,0);let e1=U1,j2=a;for(let D2=1;D2<B1.length;D2++){const L2=B1[D2];e1=Y(_,L2[1],e1),j2=Y(_,L2[2],j2),Y(_,L2[0],0)}}for(u++;u<r.length;){const B1=r[u],{0:q1,1:e1}=B1;if(q1>x||q1===x&&e1>=n)break;u=$1(r,u,_,p)}if(p[0]<x)G1(_,p[0],x),p[0]=x,p[1]=0;else _.write(J);return p[1]=Y(_,n,p[1]),u}function G1(r,u,_){do r.write(X);while(++u<_)}function R1(r){const{length:u}=r,_=new F(r),p=[];let i=0,U1=0,a=0,x=0,n=0;do{const o=_.indexOf(";"),H1=[];let Y1=!0,e=0;i=0;while(_.pos<o){let B1;if(i=Q(_,i),i<e)Y1=!1;if(e=i,W(_,o))if(U1=Q(_,U1),a=Q(_,a),x=Q(_,x),W(_,o))n=Q(_,n),B1=[i,U1,a,x,n];else B1=[i,U1,a,x];else B1=[i];H1.push(B1),_.pos++}if(!Y1)z1(H1);p.push(H1),_.pos=o+1}while(_.pos<=u);return p}function z1(r){r.sort(I1)}function I1(r,u){return r[0]-u[0]}function E1(r){const u=new q;let _=0,p=0,i=0,U1=0;for(let a=0;a<r.length;a++){const x=r[a];if(a>0)u.write(X);if(x.length===0)continue;let n=0;for(let o=0;o<x.length;o++){const H1=x[o];if(o>0)u.write(J);if(n=Y(u,H1[0],n),H1.length===1)continue;if(_=Y(u,H1[1],_),p=Y(u,H1[2],p),i=Y(u,H1[3],i),H1.length===4)continue;U1=Y(u,H1[4],U1)}}return u.flush()}G.decode=R1,G.decodeGeneratedRanges=v,G.decodeOriginalScopes=f,G.encode=E1,G.encodeGeneratedRanges=b,G.encodeOriginalScopes=h,Object.defineProperty(G,"__esModule",{value:!0})})});var vV=S((oJ,eJ)=>{(function(G,J){typeof oJ==="object"&&typeof eJ!=="undefined"?eJ.exports=J():typeof define==="function"&&define.amd?define(J):(G=typeof globalThis!=="undefined"?globalThis:G||self,G.resolveURI=J())})(oJ,function(){const G=/^[\w+.-]+:\/\//,J=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,X=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;function H(w){return G.test(w)}function Z(w){return w.startsWith("//")}function V(w){return w.startsWith("/")}function Q(w){return w.startsWith("file:")}function Y(w){return/^[.?#]/.test(w)}function W(w){const v=J.exec(w);return B(v[1],v[2]||"",v[3],v[4]||"",v[5]||"/",v[6]||"",v[7]||"")}function z(w){const v=X.exec(w),b=v[2];return B("file:","",v[1]||"","",V(b)?b:"/"+b,v[3]||"",v[4]||"")}function B(w,v,b,$1,G1,R1,z1){return{scheme:w,user:v,host:b,port:$1,path:G1,query:R1,hash:z1,type:7}}function q(w){if(Z(w)){const b=W("http:"+w);return b.scheme="",b.type=6,b}if(V(w)){const b=W("http://foo.com"+w);return b.scheme="",b.host="",b.type=5,b}if(Q(w))return z(w);if(H(w))return W(w);const v=W("http://foo.com/"+w);return v.scheme="",v.host="",v.type=w?w.startsWith("?")?3:w.startsWith("#")?2:4:1,v}function F(w){if(w.endsWith("/.."))return w;const v=w.lastIndexOf("/");return w.slice(0,v+1)}function j(w,v){if(f(v,v.type),w.path==="/")w.path=v.path;else w.path=F(v.path)+w.path}function f(w,v){const b=v<=4,$1=w.path.split("/");let G1=1,R1=0,z1=!1;for(let E1=1;E1<$1.length;E1++){const r=$1[E1];if(!r){z1=!0;continue}if(z1=!1,r===".")continue;if(r===".."){if(R1)z1=!0,R1--,G1--;else if(b)$1[G1++]=r;continue}$1[G1++]=r,R1++}let I1="";for(let E1=1;E1<G1;E1++)I1+="/"+$1[E1];if(!I1||z1&&!I1.endsWith("/.."))I1+="/";w.path=I1}function h(w,v){if(!w&&!v)return"";const b=q(w);let $1=b.type;if(v&&$1!==7){const R1=q(v),z1=R1.type;switch($1){case 1:b.hash=R1.hash;case 2:b.query=R1.query;case 3:case 4:j(b,R1);case 5:b.user=R1.user,b.host=R1.host,b.port=R1.port;case 6:b.scheme=R1.scheme}if(z1>$1)$1=z1}f(b,$1);const G1=b.query+b.hash;switch($1){case 2:case 3:return G1;case 4:{const R1=b.path.slice(1);if(!R1)return G1||".";if(Y(v||w)&&!Y(R1))return"./"+R1+G1;return R1+G1}case 5:return b.path+G1;default:return b.scheme+"//"+b.user+b.host+b.port+b.path+G1}}return h})});var tJ=S((ZG,_V)=>{(function(G,J){typeof ZG==="object"&&typeof _V!=="undefined"?J(ZG,nJ(),vV()):typeof define==="function"&&define.amd?define(["exports","@jridgewell/sourcemap-codec","@jridgewell/resolve-uri"],J):(G=typeof globalThis!=="undefined"?globalThis:G||self,J(G.traceMapping={},G.sourcemapCodec,G.resolveURI))})(ZG,function(G,J,X){function H(O,y){if(y&&!y.endsWith("/"))y+="/";return X(O,y)}function Z(O){if(!O)return"";const y=O.lastIndexOf("/");return O.slice(0,y+1)}const V=0,Q=1,Y=2,W=3,z=4,B=1,q=2;function F(O,y){const m=j(O,0);if(m===O.length)return O;if(!y)O=O.slice();for(let s=m;s<O.length;s=j(O,s+1))O[s]=h(O[s],y);return O}function j(O,y){for(let m=y;m<O.length;m++)if(!f(O[m]))return m;return O.length}function f(O){for(let y=1;y<O.length;y++)if(O[y][V]<O[y-1][V])return!1;return!0}function h(O,y){if(!y)O=O.slice();return O.sort(w)}function w(O,y){return O[V]-y[V]}let v=!1;function b(O,y,m,s){while(m<=s){const M1=m+(s-m>>1),V1=O[M1][V]-y;if(V1===0)return v=!0,M1;if(V1<0)m=M1+1;else s=M1-1}return v=!1,m-1}function $1(O,y,m){for(let s=m+1;s<O.length;m=s++)if(O[s][V]!==y)break;return m}function G1(O,y,m){for(let s=m-1;s>=0;m=s--)if(O[s][V]!==y)break;return m}function R1(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}function z1(O,y,m,s){const{lastKey:M1,lastNeedle:V1,lastIndex:T1}=m;let g1=0,A1=O.length-1;if(s===M1){if(y===V1)return v=T1!==-1&&O[T1][V]===y,T1;if(y>=V1)g1=T1===-1?0:T1;else A1=T1}return m.lastKey=s,m.lastNeedle=y,m.lastIndex=b(O,y,g1,A1)}function I1(O,y){const m=y.map(r);for(let s=0;s<O.length;s++){const M1=O[s];for(let V1=0;V1<M1.length;V1++){const T1=M1[V1];if(T1.length===1)continue;const g1=T1[Q],A1=T1[Y],y1=T1[W],M2=m[g1],l1=M2[A1]||(M2[A1]=[]),d1=y[g1];let I2=$1(l1,y1,z1(l1,y1,d1,A1));d1.lastIndex=++I2,E1(l1,I2,[y1,s,T1[V]])}}return m}function E1(O,y,m){for(let s=O.length;s>y;s--)O[s]=O[s-1];O[y]=m}function r(){return{__proto__:null}}const u=function(O,y){const m=_(O);if(!("sections"in m))return new Y1(m,y);const s=[],M1=[],V1=[],T1=[],g1=[];p(m,y,s,M1,V1,T1,g1,0,0,1/0,1/0);const A1={version:3,file:m.file,names:T1,sources:M1,sourcesContent:V1,mappings:s,ignoreList:g1};return X0(A1)};function _(O){return typeof O==="string"?JSON.parse(O):O}function p(O,y,m,s,M1,V1,T1,g1,A1,y1,M2){const{sections:l1}=O;for(let d1=0;d1<l1.length;d1++){const{map:I2,offset:i2}=l1[d1];let x0=y1,D5=M2;if(d1+1<l1.length){const I5=l1[d1+1].offset;if(x0=Math.min(y1,g1+I5.line),x0===y1)D5=Math.min(M2,A1+I5.column);else if(x0<y1)D5=A1+I5.column}i(I2,y,m,s,M1,V1,T1,g1+i2.line,A1+i2.column,x0,D5)}}function i(O,y,m,s,M1,V1,T1,g1,A1,y1,M2){const l1=_(O);if("sections"in l1)return p(...arguments);const d1=new Y1(l1,y),I2=s.length,i2=V1.length,x0=q1(d1),{resolvedSources:D5,sourcesContent:I5,ignoreList:LJ}=d1;if(U1(s,D5),U1(V1,d1.names),I5)U1(M1,I5);else for(let T2=0;T2<D5.length;T2++)M1.push(null);if(LJ)for(let T2=0;T2<LJ.length;T2++)T1.push(LJ[T2]+I2);for(let T2=0;T2<x0.length;T2++){const TJ=g1+T2;if(TJ>y1)return;const fH=a(m,TJ),eq=T2===0?A1:0,SH=x0[T2];for(let wJ=0;wJ<SH.length;wJ++){const l0=SH[wJ],Q6=eq+l0[V];if(TJ===y1&&Q6>=M2)return;if(l0.length===1){fH.push([Q6]);continue}const PH=I2+l0[Q],LH=l0[Y],TH=l0[W];fH.push(l0.length===4?[Q6,PH,LH,TH]:[Q6,PH,LH,TH,i2+l0[z]])}}}function U1(O,y){for(let m=0;m<y.length;m++)O.push(y[m])}function a(O,y){for(let m=O.length;m<=y;m++)O[m]=[];return O[y]}const x="`line` must be greater than 0 (lines start at line 1)",n="`column` must be greater than or equal to 0 (columns start at column 0)",o=-1,H1=1;class Y1{constructor(O,y){const m=typeof O==="string";if(!m&&O._decodedMemo)return O;const s=m?JSON.parse(O):O,{version:M1,file:V1,names:T1,sourceRoot:g1,sources:A1,sourcesContent:y1}=s;this.version=M1,this.file=V1,this.names=T1||[],this.sourceRoot=g1,this.sources=A1,this.sourcesContent=y1,this.ignoreList=s.ignoreList||s.x_google_ignoreList||void 0;const M2=H(g1||"",Z(y));this.resolvedSources=A1.map((d1)=>H(d1||"",M2));const{mappings:l1}=s;if(typeof l1==="string")this._encoded=l1,this._decoded=void 0;else this._encoded=void 0,this._decoded=F(l1,m);this._decodedMemo=R1(),this._bySources=void 0,this._bySourceMemos=void 0}}function e(O){return O}function B1(O){var y,m;return(y=(m=e(O))._encoded)!==null&&y!==void 0?y:m._encoded=J.encode(e(O)._decoded)}function q1(O){var y;return(y=e(O))._decoded||(y._decoded=J.decode(e(O)._encoded))}function e1(O,y,m){const s=q1(O);if(y>=s.length)return null;const M1=s[y],V1=V6(M1,e(O)._decodedMemo,y,m,H1);return V1===-1?null:M1[V1]}function j2(O,y){let{line:m,column:s,bias:M1}=y;if(m--,m<0)throw new Error(x);if(s<0)throw new Error(n);const V1=q1(O);if(m>=V1.length)return Z6(null,null,null,null);const T1=V1[m],g1=V6(T1,e(O)._decodedMemo,m,s,M1||H1);if(g1===-1)return Z6(null,null,null,null);const A1=T1[g1];if(A1.length===1)return Z6(null,null,null,null);const{names:y1,resolvedSources:M2}=O;return Z6(M2[A1[Q]],A1[Y]+1,A1[W],A1.length===5?y1[A1[z]]:null)}function D2(O,y){const{source:m,line:s,column:M1,bias:V1}=y;return CH(O,m,s,M1,V1||H1,!1)}function L2(O,y){const{source:m,line:s,column:M1,bias:V1}=y;return CH(O,m,s,M1,V1||o,!0)}function r2(O,y){const m=q1(O),{names:s,resolvedSources:M1}=O;for(let V1=0;V1<m.length;V1++){const T1=m[V1];for(let g1=0;g1<T1.length;g1++){const A1=T1[g1],y1=V1+1,M2=A1[0];let l1=null,d1=null,I2=null,i2=null;if(A1.length!==1)l1=M1[A1[1]],d1=A1[2]+1,I2=A1[3];if(A1.length===5)i2=s[A1[4]];y({generatedLine:y1,generatedColumn:M2,source:l1,originalLine:d1,originalColumn:I2,name:i2})}}}function h2(O,y){const{sources:m,resolvedSources:s}=O;let M1=m.indexOf(y);if(M1===-1)M1=s.indexOf(y);return M1}function V2(O,y){const{sourcesContent:m}=O;if(m==null)return null;const s=h2(O,y);return s===-1?null:m[s]}function X2(O,y){const{ignoreList:m}=O;if(m==null)return!1;const s=h2(O,y);return s===-1?!1:m.includes(s)}function X0(O,y){const m=new Y1(Z9(O,[]),y);return e(m)._decoded=O.mappings,m}function m0(O){return Z9(O,q1(O))}function PJ(O){return Z9(O,B1(O))}function Z9(O,y){return{version:O.version,file:O.file,names:O.names,sourceRoot:O.sourceRoot,sources:O.sources,sourcesContent:O.sourcesContent,mappings:y,ignoreList:O.ignoreList||O.x_google_ignoreList}}function Z6(O,y,m,s){return{source:O,line:y,column:m,name:s}}function V9(O,y){return{line:O,column:y}}function V6(O,y,m,s,M1){let V1=z1(O,s,y,m);if(v)V1=(M1===o?$1:G1)(O,s,V1);else if(M1===o)V1++;if(V1===-1||V1===O.length)return-1;return V1}function oq(O,y,m,s,M1){let V1=V6(O,y,m,s,H1);if(!v&&M1===o)V1++;if(V1===-1||V1===O.length)return[];const T1=v?s:O[V1][V];if(!v)V1=G1(O,T1,V1);const g1=$1(O,T1,V1),A1=[];for(;V1<=g1;V1++){const y1=O[V1];A1.push(V9(y1[B]+1,y1[q]))}return A1}function CH(O,y,m,s,M1,V1){var T1;if(m--,m<0)throw new Error(x);if(s<0)throw new Error(n);const{sources:g1,resolvedSources:A1}=O;let y1=g1.indexOf(y);if(y1===-1)y1=A1.indexOf(y);if(y1===-1)return V1?[]:V9(null,null);const l1=((T1=e(O))._bySources||(T1._bySources=I1(q1(O),e(O)._bySourceMemos=g1.map(R1))))[y1][m];if(l1==null)return V1?[]:V9(null,null);const d1=e(O)._bySourceMemos[y1];if(V1)return oq(l1,d1,m,s,M1);const I2=V6(l1,d1,m,s,M1);if(I2===-1)return V9(null,null);const i2=l1[I2];return V9(i2[B]+1,i2[q])}G.AnyMap=u,G.GREATEST_LOWER_BOUND=H1,G.LEAST_UPPER_BOUND=o,G.TraceMap=Y1,G.allGeneratedPositionsFor=L2,G.decodedMap=m0,G.decodedMappings=q1,G.eachMapping=r2,G.encodedMap=PJ,G.encodedMappings=B1,G.generatedPositionFor=D2,G.isIgnored=X2,G.originalPositionFor=j2,G.presortedDecodedMap=X0,G.sourceContentFor=V2,G.traceSegment=e1})});var bV=S((VG,gV)=>{(function(G,J){typeof VG==="object"&&typeof gV!=="undefined"?J(VG,EV(),nJ(),tJ()):typeof define==="function"&&define.amd?define(["exports","@jridgewell/set-array","@jridgewell/sourcemap-codec","@jridgewell/trace-mapping"],J):(G=typeof globalThis!=="undefined"?globalThis:G||self,J(G.genMapping={},G.setArray,G.sourcemapCodec,G.traceMapping))})(VG,function(G,J,X,H){class B{constructor({file:a,sourceRoot:x}={}){this._names=new J.SetArray,this._sources=new J.SetArray,this._sourcesContent=[],this._mappings=[],this.file=a,this.sourceRoot=x,this._ignoreList=new J.SetArray}}function q(a){return a}function F(a,x,n,o,H1,Y1,e,B1){return z1(!1,a,x,n,o,H1,Y1,e,B1)}function j(a,x){return U1(!1,a,x)}const f=(a,x,n,o,H1,Y1,e,B1)=>{return z1(!0,a,x,n,o,H1,Y1,e,B1)},h=(a,x)=>{return U1(!0,a,x)};function w(a,x,n){const{_sources:o,_sourcesContent:H1}=q(a),Y1=J.put(o,x);H1[Y1]=n}function v(a,x,n=!0){const{_sources:o,_sourcesContent:H1,_ignoreList:Y1}=q(a),e=J.put(o,x);if(e===H1.length)H1[e]=null;if(n)J.put(Y1,e);else J.remove(Y1,e)}function b(a){const{_mappings:x,_sources:n,_sourcesContent:o,_names:H1,_ignoreList:Y1}=q(a);return u(x),{version:3,file:a.file||void 0,names:H1.array,sourceRoot:a.sourceRoot||void 0,sources:n.array,sourcesContent:o,mappings:x,ignoreList:Y1.array}}function $1(a){const x=b(a);return Object.assign(Object.assign({},x),{mappings:X.encode(x.mappings)})}function G1(a){const x=new H.TraceMap(a),n=new B({file:x.file,sourceRoot:x.sourceRoot});if(_(q(n)._names,x.names),_(q(n)._sources,x.sources),q(n)._sourcesContent=x.sourcesContent||x.sources.map(()=>null),q(n)._mappings=H.decodedMappings(x),x.ignoreList)_(q(n)._ignoreList,x.ignoreList);return n}function R1(a){const x=[],{_mappings:n,_sources:o,_names:H1}=q(a);for(let Y1=0;Y1<n.length;Y1++){const e=n[Y1];for(let B1=0;B1<e.length;B1++){const q1=e[B1],e1={line:Y1+1,column:q1[0]};let j2=void 0,D2=void 0,L2=void 0;if(q1.length!==1){if(j2=o.array[q1[1]],D2={line:q1[2]+1,column:q1[3]},q1.length===5)L2=H1.array[q1[4]]}x.push({generated:e1,source:j2,original:D2,name:L2})}}return x}function z1(a,x,n,o,H1,Y1,e,B1,q1){const{_mappings:e1,_sources:j2,_sourcesContent:D2,_names:L2}=q(x),r2=I1(e1,n),h2=E1(r2,o);if(!H1){if(a&&p(r2,h2))return;return r(r2,h2,[o])}const V2=J.put(j2,H1),X2=B1?J.put(L2,B1):-1;if(V2===D2.length)D2[V2]=q1!==null&&q1!==void 0?q1:null;if(a&&i(r2,h2,V2,Y1,e,X2))return;return r(r2,h2,B1?[o,V2,Y1,e,X2]:[o,V2,Y1,e])}function I1(a,x){for(let n=a.length;n<=x;n++)a[n]=[];return a[x]}function E1(a,x){let n=a.length;for(let o=n-1;o>=0;n=o--){const H1=a[o];if(x>=H1[0])break}return n}function r(a,x,n){for(let o=a.length;o>x;o--)a[o]=a[o-1];a[x]=n}function u(a){const{length:x}=a;let n=x;for(let o=n-1;o>=0;n=o,o--)if(a[o].length>0)break;if(n<x)a.length=n}function _(a,x){for(let n=0;n<x.length;n++)J.put(a,x[n])}function p(a,x){if(x===0)return!0;return a[x-1].length===1}function i(a,x,n,o,H1,Y1){if(x===0)return!1;const e=a[x-1];if(e.length===1)return!1;return n===e[1]&&o===e[2]&&H1===e[3]&&Y1===(e.length===5?e[4]:-1)}function U1(a,x,n){const{generated:o,source:H1,original:Y1,name:e,content:B1}=n;if(!H1)return z1(a,x,o.line-1,o.column,null,null,null,null,null);return z1(a,x,o.line-1,o.column,H1,Y1.line-1,Y1.column,e,B1)}G.GenMapping=B,G.addMapping=j,G.addSegment=F,G.allMappings=R1,G.fromMap=G1,G.maybeAddMapping=h,G.maybeAddSegment=f,G.setIgnore=v,G.setSourceContent=w,G.toDecodedMap=b,G.toEncodedMap=$1,Object.defineProperty(G,"__esModule",{value:!0})})});var xV=S((yV)=>{Object.defineProperty(yV,"__esModule",{value:!0});yV.default=void 0;var S0=bV(),GX=tJ();class hV{constructor(G,J){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;const H=this._map=new S0.GenMapping({sourceRoot:G.sourceRoot});if(this._sourceFileName=(X=G.sourceFileName)==null?void 0:X.replace(/\\/g,"/"),this._rawMappings=void 0,G.inputSourceMap){this._inputMap=new GX.TraceMap(G.inputSourceMap);const V=this._inputMap.resolvedSources;if(V.length)for(let Q=0;Q<V.length;Q++){var Z;S0.setSourceContent(H,V[Q],(Z=this._inputMap.sourcesContent)==null?void 0:Z[Q])}}if(typeof J==="string"&&!G.inputSourceMap)S0.setSourceContent(H,this._sourceFileName,J);else if(typeof J==="object")for(let V of Object.keys(J))S0.setSourceContent(H,V.replace(/\\/g,"/"),J[V])}get(){return S0.toEncodedMap(this._map)}getDecoded(){return S0.toDecodedMap(this._map)}getRawMappings(){return this._rawMappings||(this._rawMappings=S0.allMappings(this._map))}mark(G,J,X,H,Z,V){var Q;this._rawMappings=void 0;let Y;if(J!=null)if(this._inputMap){if(Y=GX.originalPositionFor(this._inputMap,{line:J,column:X}),!Y.name&&Z){const W=GX.originalPositionFor(this._inputMap,Z);if(W.name)H=W.name}}else Y={source:(V==null?void 0:V.replace(/\\/g,"/"))||this._sourceFileName,line:J,column:X};S0.maybeAddMapping(this._map,{name:H,generated:G,source:(Q=Y)==null?void 0:Q.source,original:Y})}}yV.default=hV});var rV=S((cV)=>{Object.defineProperty(cV,"__esModule",{value:!0});cV.default=void 0;class lV{constructor(G,J){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=G,this._indentChar=J;for(let X=0;X<64;X++)this._fastIndentations.push(J.repeat(X));this._allocQueue()}_allocQueue(){const G=this._queue;for(let J=0;J<16;J++)G.push({char:0,repeat:1,line:void 0,column:void 0,identifierName:void 0,identifierNamePos:void 0,filename:""})}_pushQueue(G,J,X,H,Z){const V=this._queueCursor;if(V===this._queue.length)this._allocQueue();const Q=this._queue[V];Q.char=G,Q.repeat=J,Q.line=X,Q.column=H,Q.filename=Z,this._queueCursor++}_popQueue(){if(this._queueCursor===0)throw new Error("Cannot pop from empty queue");return this._queue[--this._queueCursor]}get(){this._flush();const G=this._map,J={code:(this._buf+this._str).trimRight(),decodedMap:G==null?void 0:G.getDecoded(),get __mergedMap(){return this.map},get map(){const X=G?G.get():null;return J.map=X,X},set map(X){Object.defineProperty(J,"map",{value:X,writable:!0})},get rawMappings(){const X=G==null?void 0:G.getRawMappings();return J.rawMappings=X,X},set rawMappings(X){Object.defineProperty(J,"rawMappings",{value:X,writable:!0})}};return J}append(G,J){this._flush(),this._append(G,this._sourcePosition,J)}appendChar(G){this._flush(),this._appendChar(G,1,this._sourcePosition)}queue(G){if(G===10)while(this._queueCursor!==0){const X=this._queue[this._queueCursor-1].char;if(X!==32&&X!==9)break;this._queueCursor--}const J=this._sourcePosition;this._pushQueue(G,1,J.line,J.column,J.filename)}queueIndentation(G){if(G===0)return;this._pushQueue(-1,G,void 0,void 0,void 0)}_flush(){const G=this._queueCursor,J=this._queue;for(let X=0;X<G;X++){const H=J[X];this._appendChar(H.char,H.repeat,H)}this._queueCursor=0}_appendChar(G,J,X){if(this._last=G,G===-1){const H=this._fastIndentations[J];if(H!==void 0)this._str+=H;else this._str+=J>1?this._indentChar.repeat(J):this._indentChar}else this._str+=J>1?String.fromCharCode(G).repeat(J):String.fromCharCode(G);if(G!==10)this._mark(X.line,X.column,X.identifierName,X.identifierNamePos,X.filename),this._position.column+=J;else this._position.line++,this._position.column=0;if(this._canMarkIdName)X.identifierName=void 0,X.identifierNamePos=void 0}_append(G,J,X){const H=G.length,Z=this._position;if(this._last=G.charCodeAt(H-1),++this._appendCount>4096)+this._str,this._buf+=this._str,this._str=G,this._appendCount=0;else this._str+=G;if(!X&&!this._map){Z.column+=H;return}const{column:V,identifierName:Q,identifierNamePos:Y,filename:W}=J;let z=J.line;if((Q!=null||Y!=null)&&this._canMarkIdName)J.identifierName=void 0,J.identifierNamePos=void 0;let B=G.indexOf("\n"),q=0;if(B!==0)this._mark(z,V,Q,Y,W);while(B!==-1){if(Z.line++,Z.column=0,q=B+1,q<H&&z!==void 0)this._mark(++z,0,null,null,W);B=G.indexOf("\n",q)}Z.column+=H-q}_mark(G,J,X,H,Z){var V;(V=this._map)==null||V.mark(this._position,G,J,X,H,Z)}removeTrailingNewline(){const G=this._queueCursor;if(G!==0&&this._queue[G-1].char===10)this._queueCursor--}removeLastSemicolon(){const G=this._queueCursor;if(G!==0&&this._queue[G-1].char===59)this._queueCursor--}getLastChar(){const G=this._queueCursor;return G!==0?this._queue[G-1].char:this._last}getNewlineCount(){const G=this._queueCursor;let J=0;if(G===0)return this._last===10?1:0;for(let X=G-1;X>=0;X--){if(this._queue[X].char!==10)break;J++}return J===G&&this._last===10?J+1:J}endsWithCharAndNewline(){const G=this._queue,J=this._queueCursor;if(J!==0){if(G[J-1].char!==10)return;if(J>1)return G[J-2].char;else return this._last}}hasContent(){return this._queueCursor!==0||!!this._last}exactSource(G,J){if(!this._map){J();return}this.source("start",G);const X=G.identifierName,H=this._sourcePosition;if(X)this._canMarkIdName=!1,H.identifierName=X;if(J(),X)this._canMarkIdName=!0,H.identifierName=void 0,H.identifierNamePos=void 0;this.source("end",G)}source(G,J){if(!this._map)return;this._normalizePosition(G,J,0)}sourceWithOffset(G,J,X){if(!this._map)return;this._normalizePosition(G,J,X)}_normalizePosition(G,J,X){const H=J[G],Z=this._sourcePosition;if(H)Z.line=H.line,Z.column=Math.max(H.column+X,0),Z.filename=J.filename}getCurrentColumn(){const G=this._queue,J=this._queueCursor;let X=-1,H=0;for(let Z=0;Z<J;Z++){const V=G[Z];if(V.char===10)X=H;H+=V.repeat}return X===-1?this._position.column+H:H-1-X}getCurrentLine(){let G=0;const J=this._queue;for(let X=0;X<this._queueCursor;X++)if(J[X].char===10)G++;return this._position.line+G}}cV.default=lV});var QG=S((iV)=>{function AA(G,J){const X=Object.keys(J);for(let H of X)if(G[H]!==J[H])return!1;return!0}Object.defineProperty(iV,"__esModule",{value:!0});iV.default=AA});var K9=S((dV)=>{function fA(G,J,X=""){if(uV.has(G))return;uV.add(G);const{internal:H,trace:Z}=SA(1,2);if(H)return;console.warn(`${X}\`${G}\` has been deprecated, please migrate to \`${J}\`\n${Z}`)}function SA(G,J){const{stackTraceLimit:X,prepareStackTrace:H}=Error;let Z;if(Error.stackTraceLimit=1+G+J,Error.prepareStackTrace=function(Q,Y){Z=Y},new Error().stack,Error.stackTraceLimit=X,Error.prepareStackTrace=H,!Z)return{internal:!1,trace:""};const V=Z.slice(1+G,1+G+J);return{internal:/[\\/]@babel[\\/]/.test(V[1].getFileName()),trace:V.map((Q)=>` at ${Q}`).join("\n")}}Object.defineProperty(dV,"__esModule",{value:!0});dV.default=fA;var uV=new Set});var r1=S((pV)=>{function LA(G,J){if(!G)return!1;if(G.type!=="ArrayExpression")return!1;return J==null||R.default(G,J)}function TA(G,J){if(!G)return!1;if(G.type!=="AssignmentExpression")return!1;return J==null||R.default(G,J)}function wA(G,J){if(!G)return!1;if(G.type!=="BinaryExpression")return!1;return J==null||R.default(G,J)}function NA(G,J){if(!G)return!1;if(G.type!=="InterpreterDirective")return!1;return J==null||R.default(G,J)}function kA(G,J){if(!G)return!1;if(G.type!=="Directive")return!1;return J==null||R.default(G,J)}function EA(G,J){if(!G)return!1;if(G.type!=="DirectiveLiteral")return!1;return J==null||R.default(G,J)}function OA(G,J){if(!G)return!1;if(G.type!=="BlockStatement")return!1;return J==null||R.default(G,J)}function vA(G,J){if(!G)return!1;if(G.type!=="BreakStatement")return!1;return J==null||R.default(G,J)}function _A(G,J){if(!G)return!1;if(G.type!=="CallExpression")return!1;return J==null||R.default(G,J)}function gA(G,J){if(!G)return!1;if(G.type!=="CatchClause")return!1;return J==null||R.default(G,J)}function bA(G,J){if(!G)return!1;if(G.type!=="ConditionalExpression")return!1;return J==null||R.default(G,J)}function hA(G,J){if(!G)return!1;if(G.type!=="ContinueStatement")return!1;return J==null||R.default(G,J)}function yA(G,J){if(!G)return!1;if(G.type!=="DebuggerStatement")return!1;return J==null||R.default(G,J)}function mA(G,J){if(!G)return!1;if(G.type!=="DoWhileStatement")return!1;return J==null||R.default(G,J)}function xA(G,J){if(!G)return!1;if(G.type!=="EmptyStatement")return!1;return J==null||R.default(G,J)}function lA(G,J){if(!G)return!1;if(G.type!=="ExpressionStatement")return!1;return J==null||R.default(G,J)}function cA(G,J){if(!G)return!1;if(G.type!=="File")return!1;return J==null||R.default(G,J)}function aA(G,J){if(!G)return!1;if(G.type!=="ForInStatement")return!1;return J==null||R.default(G,J)}function rA(G,J){if(!G)return!1;if(G.type!=="ForStatement")return!1;return J==null||R.default(G,J)}function iA(G,J){if(!G)return!1;if(G.type!=="FunctionDeclaration")return!1;return J==null||R.default(G,J)}function uA(G,J){if(!G)return!1;if(G.type!=="FunctionExpression")return!1;return J==null||R.default(G,J)}function dA(G,J){if(!G)return!1;if(G.type!=="Identifier")return!1;return J==null||R.default(G,J)}function sA(G,J){if(!G)return!1;if(G.type!=="IfStatement")return!1;return J==null||R.default(G,J)}function pA(G,J){if(!G)return!1;if(G.type!=="LabeledStatement")return!1;return J==null||R.default(G,J)}function nA(G,J){if(!G)return!1;if(G.type!=="StringLiteral")return!1;return J==null||R.default(G,J)}function oA(G,J){if(!G)return!1;if(G.type!=="NumericLiteral")return!1;return J==null||R.default(G,J)}function eA(G,J){if(!G)return!1;if(G.type!=="NullLiteral")return!1;return J==null||R.default(G,J)}function tA(G,J){if(!G)return!1;if(G.type!=="BooleanLiteral")return!1;return J==null||R.default(G,J)}function GC(G,J){if(!G)return!1;if(G.type!=="RegExpLiteral")return!1;return J==null||R.default(G,J)}function JC(G,J){if(!G)return!1;if(G.type!=="LogicalExpression")return!1;return J==null||R.default(G,J)}function XC(G,J){if(!G)return!1;if(G.type!=="MemberExpression")return!1;return J==null||R.default(G,J)}function HC(G,J){if(!G)return!1;if(G.type!=="NewExpression")return!1;return J==null||R.default(G,J)}function ZC(G,J){if(!G)return!1;if(G.type!=="Program")return!1;return J==null||R.default(G,J)}function VC(G,J){if(!G)return!1;if(G.type!=="ObjectExpression")return!1;return J==null||R.default(G,J)}function QC(G,J){if(!G)return!1;if(G.type!=="ObjectMethod")return!1;return J==null||R.default(G,J)}function YC(G,J){if(!G)return!1;if(G.type!=="ObjectProperty")return!1;return J==null||R.default(G,J)}function WC(G,J){if(!G)return!1;if(G.type!=="RestElement")return!1;return J==null||R.default(G,J)}function zC(G,J){if(!G)return!1;if(G.type!=="ReturnStatement")return!1;return J==null||R.default(G,J)}function UC(G,J){if(!G)return!1;if(G.type!=="SequenceExpression")return!1;return J==null||R.default(G,J)}function KC(G,J){if(!G)return!1;if(G.type!=="ParenthesizedExpression")return!1;return J==null||R.default(G,J)}function BC(G,J){if(!G)return!1;if(G.type!=="SwitchCase")return!1;return J==null||R.default(G,J)}function $C(G,J){if(!G)return!1;if(G.type!=="SwitchStatement")return!1;return J==null||R.default(G,J)}function RC(G,J){if(!G)return!1;if(G.type!=="ThisExpression")return!1;return J==null||R.default(G,J)}function MC(G,J){if(!G)return!1;if(G.type!=="ThrowStatement")return!1;return J==null||R.default(G,J)}function qC(G,J){if(!G)return!1;if(G.type!=="TryStatement")return!1;return J==null||R.default(G,J)}function FC(G,J){if(!G)return!1;if(G.type!=="UnaryExpression")return!1;return J==null||R.default(G,J)}function jC(G,J){if(!G)return!1;if(G.type!=="UpdateExpression")return!1;return J==null||R.default(G,J)}function DC(G,J){if(!G)return!1;if(G.type!=="VariableDeclaration")return!1;return J==null||R.default(G,J)}function IC(G,J){if(!G)return!1;if(G.type!=="VariableDeclarator")return!1;return J==null||R.default(G,J)}function AC(G,J){if(!G)return!1;if(G.type!=="WhileStatement")return!1;return J==null||R.default(G,J)}function CC(G,J){if(!G)return!1;if(G.type!=="WithStatement")return!1;return J==null||R.default(G,J)}function fC(G,J){if(!G)return!1;if(G.type!=="AssignmentPattern")return!1;return J==null||R.default(G,J)}function SC(G,J){if(!G)return!1;if(G.type!=="ArrayPattern")return!1;return J==null||R.default(G,J)}function PC(G,J){if(!G)return!1;if(G.type!=="ArrowFunctionExpression")return!1;return J==null||R.default(G,J)}function LC(G,J){if(!G)return!1;if(G.type!=="ClassBody")return!1;return J==null||R.default(G,J)}function TC(G,J){if(!G)return!1;if(G.type!=="ClassExpression")return!1;return J==null||R.default(G,J)}function wC(G,J){if(!G)return!1;if(G.type!=="ClassDeclaration")return!1;return J==null||R.default(G,J)}function NC(G,J){if(!G)return!1;if(G.type!=="ExportAllDeclaration")return!1;return J==null||R.default(G,J)}function kC(G,J){if(!G)return!1;if(G.type!=="ExportDefaultDeclaration")return!1;return J==null||R.default(G,J)}function EC(G,J){if(!G)return!1;if(G.type!=="ExportNamedDeclaration")return!1;return J==null||R.default(G,J)}function OC(G,J){if(!G)return!1;if(G.type!=="ExportSpecifier")return!1;return J==null||R.default(G,J)}function vC(G,J){if(!G)return!1;if(G.type!=="ForOfStatement")return!1;return J==null||R.default(G,J)}function _C(G,J){if(!G)return!1;if(G.type!=="ImportDeclaration")return!1;return J==null||R.default(G,J)}function gC(G,J){if(!G)return!1;if(G.type!=="ImportDefaultSpecifier")return!1;return J==null||R.default(G,J)}function bC(G,J){if(!G)return!1;if(G.type!=="ImportNamespaceSpecifier")return!1;return J==null||R.default(G,J)}function hC(G,J){if(!G)return!1;if(G.type!=="ImportSpecifier")return!1;return J==null||R.default(G,J)}function yC(G,J){if(!G)return!1;if(G.type!=="ImportExpression")return!1;return J==null||R.default(G,J)}function mC(G,J){if(!G)return!1;if(G.type!=="MetaProperty")return!1;return J==null||R.default(G,J)}function xC(G,J){if(!G)return!1;if(G.type!=="ClassMethod")return!1;return J==null||R.default(G,J)}function lC(G,J){if(!G)return!1;if(G.type!=="ObjectPattern")return!1;return J==null||R.default(G,J)}function cC(G,J){if(!G)return!1;if(G.type!=="SpreadElement")return!1;return J==null||R.default(G,J)}function aC(G,J){if(!G)return!1;if(G.type!=="Super")return!1;return J==null||R.default(G,J)}function rC(G,J){if(!G)return!1;if(G.type!=="TaggedTemplateExpression")return!1;return J==null||R.default(G,J)}function iC(G,J){if(!G)return!1;if(G.type!=="TemplateElement")return!1;return J==null||R.default(G,J)}function uC(G,J){if(!G)return!1;if(G.type!=="TemplateLiteral")return!1;return J==null||R.default(G,J)}function dC(G,J){if(!G)return!1;if(G.type!=="YieldExpression")return!1;return J==null||R.default(G,J)}function sC(G,J){if(!G)return!1;if(G.type!=="AwaitExpression")return!1;return J==null||R.default(G,J)}function pC(G,J){if(!G)return!1;if(G.type!=="Import")return!1;return J==null||R.default(G,J)}function nC(G,J){if(!G)return!1;if(G.type!=="BigIntLiteral")return!1;return J==null||R.default(G,J)}function oC(G,J){if(!G)return!1;if(G.type!=="ExportNamespaceSpecifier")return!1;return J==null||R.default(G,J)}function eC(G,J){if(!G)return!1;if(G.type!=="OptionalMemberExpression")return!1;return J==null||R.default(G,J)}function tC(G,J){if(!G)return!1;if(G.type!=="OptionalCallExpression")return!1;return J==null||R.default(G,J)}function Gf(G,J){if(!G)return!1;if(G.type!=="ClassProperty")return!1;return J==null||R.default(G,J)}function Jf(G,J){if(!G)return!1;if(G.type!=="ClassAccessorProperty")return!1;return J==null||R.default(G,J)}function Xf(G,J){if(!G)return!1;if(G.type!=="ClassPrivateProperty")return!1;return J==null||R.default(G,J)}function Hf(G,J){if(!G)return!1;if(G.type!=="ClassPrivateMethod")return!1;return J==null||R.default(G,J)}function Zf(G,J){if(!G)return!1;if(G.type!=="PrivateName")return!1;return J==null||R.default(G,J)}function Vf(G,J){if(!G)return!1;if(G.type!=="StaticBlock")return!1;return J==null||R.default(G,J)}function Qf(G,J){if(!G)return!1;if(G.type!=="AnyTypeAnnotation")return!1;return J==null||R.default(G,J)}function Yf(G,J){if(!G)return!1;if(G.type!=="ArrayTypeAnnotation")return!1;return J==null||R.default(G,J)}function Wf(G,J){if(!G)return!1;if(G.type!=="BooleanTypeAnnotation")return!1;return J==null||R.default(G,J)}function zf(G,J){if(!G)return!1;if(G.type!=="BooleanLiteralTypeAnnotation")return!1;return J==null||R.default(G,J)}function Uf(G,J){if(!G)return!1;if(G.type!=="NullLiteralTypeAnnotation")return!1;return J==null||R.default(G,J)}function Kf(G,J){if(!G)return!1;if(G.type!=="ClassImplements")return!1;return J==null||R.default(G,J)}function Bf(G,J){if(!G)return!1;if(G.type!=="DeclareClass")return!1;return J==null||R.default(G,J)}function $f(G,J){if(!G)return!1;if(G.type!=="DeclareFunction")return!1;return J==null||R.default(G,J)}function Rf(G,J){if(!G)return!1;if(G.type!=="DeclareInterface")return!1;return J==null||R.default(G,J)}function Mf(G,J){if(!G)return!1;if(G.type!=="DeclareModule")return!1;return J==null||R.default(G,J)}function qf(G,J){if(!G)return!1;if(G.type!=="DeclareModuleExports")return!1;return J==null||R.default(G,J)}function Ff(G,J){if(!G)return!1;if(G.type!=="DeclareTypeAlias")return!1;return J==null||R.default(G,J)}function jf(G,J){if(!G)return!1;if(G.type!=="DeclareOpaqueType")return!1;return J==null||R.default(G,J)}function Df(G,J){if(!G)return!1;if(G.type!=="DeclareVariable")return!1;return J==null||R.default(G,J)}function If(G,J){if(!G)return!1;if(G.type!=="DeclareExportDeclaration")return!1;return J==null||R.default(G,J)}function Af(G,J){if(!G)return!1;if(G.type!=="DeclareExportAllDeclaration")return!1;return J==null||R.default(G,J)}function Cf(G,J){if(!G)return!1;if(G.type!=="DeclaredPredicate")return!1;return J==null||R.default(G,J)}function ff(G,J){if(!G)return!1;if(G.type!=="ExistsTypeAnnotation")return!1;return J==null||R.default(G,J)}function Sf(G,J){if(!G)return!1;if(G.type!=="FunctionTypeAnnotation")return!1;return J==null||R.default(G,J)}function Pf(G,J){if(!G)return!1;if(G.type!=="FunctionTypeParam")return!1;return J==null||R.default(G,J)}function Lf(G,J){if(!G)return!1;if(G.type!=="GenericTypeAnnotation")return!1;return J==null||R.default(G,J)}function Tf(G,J){if(!G)return!1;if(G.type!=="InferredPredicate")return!1;return J==null||R.default(G,J)}function wf(G,J){if(!G)return!1;if(G.type!=="InterfaceExtends")return!1;return J==null||R.default(G,J)}function Nf(G,J){if(!G)return!1;if(G.type!=="InterfaceDeclaration")return!1;return J==null||R.default(G,J)}function kf(G,J){if(!G)return!1;if(G.type!=="InterfaceTypeAnnotation")return!1;return J==null||R.default(G,J)}function Ef(G,J){if(!G)return!1;if(G.type!=="IntersectionTypeAnnotation")return!1;return J==null||R.default(G,J)}function Of(G,J){if(!G)return!1;if(G.type!=="MixedTypeAnnotation")return!1;return J==null||R.default(G,J)}function vf(G,J){if(!G)return!1;if(G.type!=="EmptyTypeAnnotation")return!1;return J==null||R.default(G,J)}function _f(G,J){if(!G)return!1;if(G.type!=="NullableTypeAnnotation")return!1;return J==null||R.default(G,J)}function gf(G,J){if(!G)return!1;if(G.type!=="NumberLiteralTypeAnnotation")return!1;return J==null||R.default(G,J)}function bf(G,J){if(!G)return!1;if(G.type!=="NumberTypeAnnotation")return!1;return J==null||R.default(G,J)}function hf(G,J){if(!G)return!1;if(G.type!=="ObjectTypeAnnotation")return!1;return J==null||R.default(G,J)}function yf(G,J){if(!G)return!1;if(G.type!=="ObjectTypeInternalSlot")return!1;return J==null||R.default(G,J)}function mf(G,J){if(!G)return!1;if(G.type!=="ObjectTypeCallProperty")return!1;return J==null||R.default(G,J)}function xf(G,J){if(!G)return!1;if(G.type!=="ObjectTypeIndexer")return!1;return J==null||R.default(G,J)}function lf(G,J){if(!G)return!1;if(G.type!=="ObjectTypeProperty")return!1;return J==null||R.default(G,J)}function cf(G,J){if(!G)return!1;if(G.type!=="ObjectTypeSpreadProperty")return!1;return J==null||R.default(G,J)}function af(G,J){if(!G)return!1;if(G.type!=="OpaqueType")return!1;return J==null||R.default(G,J)}function rf(G,J){if(!G)return!1;if(G.type!=="QualifiedTypeIdentifier")return!1;return J==null||R.default(G,J)}function uf(G,J){if(!G)return!1;if(G.type!=="StringLiteralTypeAnnotation")return!1;return J==null||R.default(G,J)}function df(G,J){if(!G)return!1;if(G.type!=="StringTypeAnnotation")return!1;return J==null||R.default(G,J)}function sf(G,J){if(!G)return!1;if(G.type!=="SymbolTypeAnnotation")return!1;return J==null||R.default(G,J)}function pf(G,J){if(!G)return!1;if(G.type!=="ThisTypeAnnotation")return!1;return J==null||R.default(G,J)}function nf(G,J){if(!G)return!1;if(G.type!=="TupleTypeAnnotation")return!1;return J==null||R.default(G,J)}function of(G,J){if(!G)return!1;if(G.type!=="TypeofTypeAnnotation")return!1;return J==null||R.default(G,J)}function ef(G,J){if(!G)return!1;if(G.type!=="TypeAlias")return!1;return J==null||R.default(G,J)}function tf(G,J){if(!G)return!1;if(G.type!=="TypeAnnotation")return!1;return J==null||R.default(G,J)}function GS(G,J){if(!G)return!1;if(G.type!=="TypeCastExpression")return!1;return J==null||R.default(G,J)}function JS(G,J){if(!G)return!1;if(G.type!=="TypeParameter")return!1;return J==null||R.default(G,J)}function XS(G,J){if(!G)return!1;if(G.type!=="TypeParameterDeclaration")return!1;return J==null||R.default(G,J)}function HS(G,J){if(!G)return!1;if(G.type!=="TypeParameterInstantiation")return!1;return J==null||R.default(G,J)}function ZS(G,J){if(!G)return!1;if(G.type!=="UnionTypeAnnotation")return!1;return J==null||R.default(G,J)}function VS(G,J){if(!G)return!1;if(G.type!=="Variance")return!1;return J==null||R.default(G,J)}function QS(G,J){if(!G)return!1;if(G.type!=="VoidTypeAnnotation")return!1;return J==null||R.default(G,J)}function YS(G,J){if(!G)return!1;if(G.type!=="EnumDeclaration")return!1;return J==null||R.default(G,J)}function WS(G,J){if(!G)return!1;if(G.type!=="EnumBooleanBody")return!1;return J==null||R.default(G,J)}function zS(G,J){if(!G)return!1;if(G.type!=="EnumNumberBody")return!1;return J==null||R.default(G,J)}function US(G,J){if(!G)return!1;if(G.type!=="EnumStringBody")return!1;return J==null||R.default(G,J)}function KS(G,J){if(!G)return!1;if(G.type!=="EnumSymbolBody")return!1;return J==null||R.default(G,J)}function BS(G,J){if(!G)return!1;if(G.type!=="EnumBooleanMember")return!1;return J==null||R.default(G,J)}function $S(G,J){if(!G)return!1;if(G.type!=="EnumNumberMember")return!1;return J==null||R.default(G,J)}function RS(G,J){if(!G)return!1;if(G.type!=="EnumStringMember")return!1;return J==null||R.default(G,J)}function MS(G,J){if(!G)return!1;if(G.type!=="EnumDefaultedMember")return!1;return J==null||R.default(G,J)}function qS(G,J){if(!G)return!1;if(G.type!=="IndexedAccessType")return!1;return J==null||R.default(G,J)}function FS(G,J){if(!G)return!1;if(G.type!=="OptionalIndexedAccessType")return!1;return J==null||R.default(G,J)}function jS(G,J){if(!G)return!1;if(G.type!=="JSXAttribute")return!1;return J==null||R.default(G,J)}function DS(G,J){if(!G)return!1;if(G.type!=="JSXClosingElement")return!1;return J==null||R.default(G,J)}function IS(G,J){if(!G)return!1;if(G.type!=="JSXElement")return!1;return J==null||R.default(G,J)}function AS(G,J){if(!G)return!1;if(G.type!=="JSXEmptyExpression")return!1;return J==null||R.default(G,J)}function CS(G,J){if(!G)return!1;if(G.type!=="JSXExpressionContainer")return!1;return J==null||R.default(G,J)}function fS(G,J){if(!G)return!1;if(G.type!=="JSXSpreadChild")return!1;return J==null||R.default(G,J)}function SS(G,J){if(!G)return!1;if(G.type!=="JSXIdentifier")return!1;return J==null||R.default(G,J)}function PS(G,J){if(!G)return!1;if(G.type!=="JSXMemberExpression")return!1;return J==null||R.default(G,J)}function LS(G,J){if(!G)return!1;if(G.type!=="JSXNamespacedName")return!1;return J==null||R.default(G,J)}function TS(G,J){if(!G)return!1;if(G.type!=="JSXOpeningElement")return!1;return J==null||R.default(G,J)}function wS(G,J){if(!G)return!1;if(G.type!=="JSXSpreadAttribute")return!1;return J==null||R.default(G,J)}function NS(G,J){if(!G)return!1;if(G.type!=="JSXText")return!1;return J==null||R.default(G,J)}function kS(G,J){if(!G)return!1;if(G.type!=="JSXFragment")return!1;return J==null||R.default(G,J)}function ES(G,J){if(!G)return!1;if(G.type!=="JSXOpeningFragment")return!1;return J==null||R.default(G,J)}function OS(G,J){if(!G)return!1;if(G.type!=="JSXClosingFragment")return!1;return J==null||R.default(G,J)}function vS(G,J){if(!G)return!1;if(G.type!=="Noop")return!1;return J==null||R.default(G,J)}function _S(G,J){if(!G)return!1;if(G.type!=="Placeholder")return!1;return J==null||R.default(G,J)}function gS(G,J){if(!G)return!1;if(G.type!=="V8IntrinsicIdentifier")return!1;return J==null||R.default(G,J)}function bS(G,J){if(!G)return!1;if(G.type!=="ArgumentPlaceholder")return!1;return J==null||R.default(G,J)}function hS(G,J){if(!G)return!1;if(G.type!=="BindExpression")return!1;return J==null||R.default(G,J)}function yS(G,J){if(!G)return!1;if(G.type!=="ImportAttribute")return!1;return J==null||R.default(G,J)}function mS(G,J){if(!G)return!1;if(G.type!=="Decorator")return!1;return J==null||R.default(G,J)}function xS(G,J){if(!G)return!1;if(G.type!=="DoExpression")return!1;return J==null||R.default(G,J)}function lS(G,J){if(!G)return!1;if(G.type!=="ExportDefaultSpecifier")return!1;return J==null||R.default(G,J)}function cS(G,J){if(!G)return!1;if(G.type!=="RecordExpression")return!1;return J==null||R.default(G,J)}function aS(G,J){if(!G)return!1;if(G.type!=="TupleExpression")return!1;return J==null||R.default(G,J)}function rS(G,J){if(!G)return!1;if(G.type!=="DecimalLiteral")return!1;return J==null||R.default(G,J)}function iS(G,J){if(!G)return!1;if(G.type!=="ModuleExpression")return!1;return J==null||R.default(G,J)}function uS(G,J){if(!G)return!1;if(G.type!=="TopicReference")return!1;return J==null||R.default(G,J)}function dS(G,J){if(!G)return!1;if(G.type!=="PipelineTopicExpression")return!1;return J==null||R.default(G,J)}function sS(G,J){if(!G)return!1;if(G.type!=="PipelineBareFunction")return!1;return J==null||R.default(G,J)}function pS(G,J){if(!G)return!1;if(G.type!=="PipelinePrimaryTopicReference")return!1;return J==null||R.default(G,J)}function nS(G,J){if(!G)return!1;if(G.type!=="TSParameterProperty")return!1;return J==null||R.default(G,J)}function oS(G,J){if(!G)return!1;if(G.type!=="TSDeclareFunction")return!1;return J==null||R.default(G,J)}function eS(G,J){if(!G)return!1;if(G.type!=="TSDeclareMethod")return!1;return J==null||R.default(G,J)}function tS(G,J){if(!G)return!1;if(G.type!=="TSQualifiedName")return!1;return J==null||R.default(G,J)}function GP(G,J){if(!G)return!1;if(G.type!=="TSCallSignatureDeclaration")return!1;return J==null||R.default(G,J)}function JP(G,J){if(!G)return!1;if(G.type!=="TSConstructSignatureDeclaration")return!1;return J==null||R.default(G,J)}function XP(G,J){if(!G)return!1;if(G.type!=="TSPropertySignature")return!1;return J==null||R.default(G,J)}function HP(G,J){if(!G)return!1;if(G.type!=="TSMethodSignature")return!1;return J==null||R.default(G,J)}function ZP(G,J){if(!G)return!1;if(G.type!=="TSIndexSignature")return!1;return J==null||R.default(G,J)}function VP(G,J){if(!G)return!1;if(G.type!=="TSAnyKeyword")return!1;return J==null||R.default(G,J)}function QP(G,J){if(!G)return!1;if(G.type!=="TSBooleanKeyword")return!1;return J==null||R.default(G,J)}function YP(G,J){if(!G)return!1;if(G.type!=="TSBigIntKeyword")return!1;return J==null||R.default(G,J)}function WP(G,J){if(!G)return!1;if(G.type!=="TSIntrinsicKeyword")return!1;return J==null||R.default(G,J)}function zP(G,J){if(!G)return!1;if(G.type!=="TSNeverKeyword")return!1;return J==null||R.default(G,J)}function UP(G,J){if(!G)return!1;if(G.type!=="TSNullKeyword")return!1;return J==null||R.default(G,J)}function KP(G,J){if(!G)return!1;if(G.type!=="TSNumberKeyword")return!1;return J==null||R.default(G,J)}function BP(G,J){if(!G)return!1;if(G.type!=="TSObjectKeyword")return!1;return J==null||R.default(G,J)}function $P(G,J){if(!G)return!1;if(G.type!=="TSStringKeyword")return!1;return J==null||R.default(G,J)}function RP(G,J){if(!G)return!1;if(G.type!=="TSSymbolKeyword")return!1;return J==null||R.default(G,J)}function MP(G,J){if(!G)return!1;if(G.type!=="TSUndefinedKeyword")return!1;return J==null||R.default(G,J)}function qP(G,J){if(!G)return!1;if(G.type!=="TSUnknownKeyword")return!1;return J==null||R.default(G,J)}function FP(G,J){if(!G)return!1;if(G.type!=="TSVoidKeyword")return!1;return J==null||R.default(G,J)}function jP(G,J){if(!G)return!1;if(G.type!=="TSThisType")return!1;return J==null||R.default(G,J)}function DP(G,J){if(!G)return!1;if(G.type!=="TSFunctionType")return!1;return J==null||R.default(G,J)}function IP(G,J){if(!G)return!1;if(G.type!=="TSConstructorType")return!1;return J==null||R.default(G,J)}function AP(G,J){if(!G)return!1;if(G.type!=="TSTypeReference")return!1;return J==null||R.default(G,J)}function CP(G,J){if(!G)return!1;if(G.type!=="TSTypePredicate")return!1;return J==null||R.default(G,J)}function fP(G,J){if(!G)return!1;if(G.type!=="TSTypeQuery")return!1;return J==null||R.default(G,J)}function SP(G,J){if(!G)return!1;if(G.type!=="TSTypeLiteral")return!1;return J==null||R.default(G,J)}function PP(G,J){if(!G)return!1;if(G.type!=="TSArrayType")return!1;return J==null||R.default(G,J)}function LP(G,J){if(!G)return!1;if(G.type!=="TSTupleType")return!1;return J==null||R.default(G,J)}function TP(G,J){if(!G)return!1;if(G.type!=="TSOptionalType")return!1;return J==null||R.default(G,J)}function wP(G,J){if(!G)return!1;if(G.type!=="TSRestType")return!1;return J==null||R.default(G,J)}function NP(G,J){if(!G)return!1;if(G.type!=="TSNamedTupleMember")return!1;return J==null||R.default(G,J)}function kP(G,J){if(!G)return!1;if(G.type!=="TSUnionType")return!1;return J==null||R.default(G,J)}function EP(G,J){if(!G)return!1;if(G.type!=="TSIntersectionType")return!1;return J==null||R.default(G,J)}function OP(G,J){if(!G)return!1;if(G.type!=="TSConditionalType")return!1;return J==null||R.default(G,J)}function vP(G,J){if(!G)return!1;if(G.type!=="TSInferType")return!1;return J==null||R.default(G,J)}function _P(G,J){if(!G)return!1;if(G.type!=="TSParenthesizedType")return!1;return J==null||R.default(G,J)}function gP(G,J){if(!G)return!1;if(G.type!=="TSTypeOperator")return!1;return J==null||R.default(G,J)}function bP(G,J){if(!G)return!1;if(G.type!=="TSIndexedAccessType")return!1;return J==null||R.default(G,J)}function hP(G,J){if(!G)return!1;if(G.type!=="TSMappedType")return!1;return J==null||R.default(G,J)}function yP(G,J){if(!G)return!1;if(G.type!=="TSLiteralType")return!1;return J==null||R.default(G,J)}function mP(G,J){if(!G)return!1;if(G.type!=="TSExpressionWithTypeArguments")return!1;return J==null||R.default(G,J)}function xP(G,J){if(!G)return!1;if(G.type!=="TSInterfaceDeclaration")return!1;return J==null||R.default(G,J)}function lP(G,J){if(!G)return!1;if(G.type!=="TSInterfaceBody")return!1;return J==null||R.default(G,J)}function cP(G,J){if(!G)return!1;if(G.type!=="TSTypeAliasDeclaration")return!1;return J==null||R.default(G,J)}function aP(G,J){if(!G)return!1;if(G.type!=="TSInstantiationExpression")return!1;return J==null||R.default(G,J)}function rP(G,J){if(!G)return!1;if(G.type!=="TSAsExpression")return!1;return J==null||R.default(G,J)}function iP(G,J){if(!G)return!1;if(G.type!=="TSSatisfiesExpression")return!1;return J==null||R.default(G,J)}function uP(G,J){if(!G)return!1;if(G.type!=="TSTypeAssertion")return!1;return J==null||R.default(G,J)}function dP(G,J){if(!G)return!1;if(G.type!=="TSEnumDeclaration")return!1;return J==null||R.default(G,J)}function sP(G,J){if(!G)return!1;if(G.type!=="TSEnumMember")return!1;return J==null||R.default(G,J)}function pP(G,J){if(!G)return!1;if(G.type!=="TSModuleDeclaration")return!1;return J==null||R.default(G,J)}function nP(G,J){if(!G)return!1;if(G.type!=="TSModuleBlock")return!1;return J==null||R.default(G,J)}function oP(G,J){if(!G)return!1;if(G.type!=="TSImportType")return!1;return J==null||R.default(G,J)}function eP(G,J){if(!G)return!1;if(G.type!=="TSImportEqualsDeclaration")return!1;return J==null||R.default(G,J)}function tP(G,J){if(!G)return!1;if(G.type!=="TSExternalModuleReference")return!1;return J==null||R.default(G,J)}function GL(G,J){if(!G)return!1;if(G.type!=="TSNonNullExpression")return!1;return J==null||R.default(G,J)}function JL(G,J){if(!G)return!1;if(G.type!=="TSExportAssignment")return!1;return J==null||R.default(G,J)}function XL(G,J){if(!G)return!1;if(G.type!=="TSNamespaceExportDeclaration")return!1;return J==null||R.default(G,J)}function HL(G,J){if(!G)return!1;if(G.type!=="TSTypeAnnotation")return!1;return J==null||R.default(G,J)}function ZL(G,J){if(!G)return!1;if(G.type!=="TSTypeParameterInstantiation")return!1;return J==null||R.default(G,J)}function VL(G,J){if(!G)return!1;if(G.type!=="TSTypeParameterDeclaration")return!1;return J==null||R.default(G,J)}function QL(G,J){if(!G)return!1;if(G.type!=="TSTypeParameter")return!1;return J==null||R.default(G,J)}function YL(G,J){if(!G)return!1;switch(G.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(G.expectedNode){case"Identifier":case"StringLiteral":case"BlockStatement":case"ClassBody":break;default:return!1}break;default:return!1}return J==null||R.default(G,J)}function WL(G,J){if(!G)return!1;switch(G.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(G.expectedNode){case"Expression":case"Identifier":case"StringLiteral":break;default:return!1}break;default:return!1}return J==null||R.default(G,J)}function zL(G,J){if(!G)return!1;switch(G.type){case"BinaryExpression":case"LogicalExpression":break;default:return!1}return J==null||R.default(G,J)}function UL(G,J){if(!G)return!1;switch(G.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(G.expectedNode==="BlockStatement")break;default:return!1}return J==null||R.default(G,J)}function KL(G,J){if(!G)return!1;switch(G.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(G.expectedNode==="BlockStatement")break;default:return!1}return J==null||R.default(G,J)}function BL(G,J){if(!G)return!1;switch(G.type){case"BlockStatement":case"Program":case"TSModuleBlock":break;case"Placeholder":if(G.expectedNode==="BlockStatement")break;default:return!1}return J==null||R.default(G,J)}function $L(G,J){if(!G)return!1;switch(G.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(G.expectedNode){case"Statement":case"Declaration":case"BlockStatement":break;default:return!1}break;default:return!1}return J==null||R.default(G,J)}function RL(G,J){if(!G)return!1;switch(G.type){case"BreakStatement":case"ContinueStatement":case"ReturnStatement":case"ThrowStatement":case"YieldExpression":case"AwaitExpression":break;default:return!1}return J==null||R.default(G,J)}function ML(G,J){if(!G)return!1;switch(G.type){case"BreakStatement":case"ContinueStatement":case"ReturnStatement":case"ThrowStatement":break;default:return!1}return J==null||R.default(G,J)}function qL(G,J){if(!G)return!1;switch(G.type){case"ConditionalExpression":case"IfStatement":break;default:return!1}return J==null||R.default(G,J)}function FL(G,J){if(!G)return!1;switch(G.type){case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"WhileStatement":case"ForOfStatement":break;default:return!1}return J==null||R.default(G,J)}function jL(G,J){if(!G)return!1;switch(G.type){case"DoWhileStatement":case"WhileStatement":break;default:return!1}return J==null||R.default(G,J)}function DL(G,J){if(!G)return!1;switch(G.type){case"ExpressionStatement":case"ParenthesizedExpression":case"TypeCastExpression":break;default:return!1}return J==null||R.default(G,J)}function IL(G,J){if(!G)return!1;switch(G.type){case"ForInStatement":case"ForStatement":case"ForOfStatement":break;default:return!1}return J==null||R.default(G,J)}function AL(G,J){if(!G)return!1;switch(G.type){case"ForInStatement":case"ForOfStatement":break;default:return!1}return J==null||R.default(G,J)}function CL(G,J){if(!G)return!1;switch(G.type){case"FunctionDeclaration":case"FunctionExpression":case"ObjectMethod":case"ArrowFunctionExpression":case"ClassMethod":case"ClassPrivateMethod":break;default:return!1}return J==null||R.default(G,J)}function fL(G,J){if(!G)return!1;switch(G.type){case"FunctionDeclaration":case"FunctionExpression":case"ObjectMethod":case"ArrowFunctionExpression":case"ClassMethod":case"ClassPrivateMethod":case"StaticBlock":case"TSModuleBlock":break;default:return!1}return J==null||R.default(G,J)}function SL(G,J){if(!G)return!1;switch(G.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(G.expectedNode==="StringLiteral")break;default:return!1}return J==null||R.default(G,J)}function PL(G,J){if(!G)return!1;switch(G.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":break;case"Placeholder":if(G.expectedNode==="Declaration")break;default:return!1}return J==null||R.default(G,J)}function LL(G,J){if(!G)return!1;switch(G.type){case"Identifier":case"RestElement":case"AssignmentPattern":case"ArrayPattern":case"ObjectPattern":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":break;case"Placeholder":switch(G.expectedNode){case"Pattern":case"Identifier":break;default:return!1}break;default:return!1}return J==null||R.default(G,J)}function TL(G,J){if(!G)return!1;switch(G.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(G.expectedNode){case"Pattern":case"Identifier":break;default:return!1}break;default:return!1}return J==null||R.default(G,J)}function wL(G,J){if(!G)return!1;switch(G.type){case"Identifier":case"TSQualifiedName":break;case"Placeholder":if(G.expectedNode==="Identifier")break;default:return!1}return J==null||R.default(G,J)}function NL(G,J){if(!G)return!1;switch(G.type){case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"TemplateLiteral":case"BigIntLiteral":case"DecimalLiteral":break;case"Placeholder":if(G.expectedNode==="StringLiteral")break;default:return!1}return J==null||R.default(G,J)}function kL(G,J){if(!G)return!1;switch(G.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(G.expectedNode==="StringLiteral")break;default:return!1}return J==null||R.default(G,J)}function EL(G,J){if(!G)return!1;switch(G.type){case"ObjectMethod":case"ObjectProperty":case"ObjectTypeInternalSlot":case"ObjectTypeCallProperty":case"ObjectTypeIndexer":case"ObjectTypeProperty":case"ObjectTypeSpreadProperty":break;default:return!1}return J==null||R.default(G,J)}function OL(G,J){if(!G)return!1;switch(G.type){case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":break;default:return!1}return J==null||R.default(G,J)}function vL(G,J){if(!G)return!1;switch(G.type){case"ObjectMethod":case"ObjectProperty":break;default:return!1}return J==null||R.default(G,J)}function _L(G,J){if(!G)return!1;switch(G.type){case"ObjectProperty":case"ClassProperty":case"ClassAccessorProperty":case"ClassPrivateProperty":break;default:return!1}return J==null||R.default(G,J)}function gL(G,J){if(!G)return!1;switch(G.type){case"UnaryExpression":case"SpreadElement":break;default:return!1}return J==null||R.default(G,J)}function bL(G,J){if(!G)return!1;switch(G.type){case"AssignmentPattern":case"ArrayPattern":case"ObjectPattern":break;case"Placeholder":if(G.expectedNode==="Pattern")break;default:return!1}return J==null||R.default(G,J)}function hL(G,J){if(!G)return!1;switch(G.type){case"ClassExpression":case"ClassDeclaration":break;default:return!1}return J==null||R.default(G,J)}function sV(G,J){if(!G)return!1;switch(G.type){case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ImportDeclaration":break;default:return!1}return J==null||R.default(G,J)}function yL(G,J){if(!G)return!1;switch(G.type){case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":break;default:return!1}return J==null||R.default(G,J)}function mL(G,J){if(!G)return!1;switch(G.type){case"ExportSpecifier":case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":case"ImportSpecifier":case"ExportNamespaceSpecifier":case"ExportDefaultSpecifier":break;default:return!1}return J==null||R.default(G,J)}function xL(G,J){if(!G)return!1;switch(G.type){case"ClassAccessorProperty":break;default:return!1}return J==null||R.default(G,J)}function lL(G,J){if(!G)return!1;switch(G.type){case"ClassPrivateProperty":case"ClassPrivateMethod":case"PrivateName":break;default:return!1}return J==null||R.default(G,J)}function cL(G,J){if(!G)return!1;switch(G.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 J==null||R.default(G,J)}function aL(G,J){if(!G)return!1;switch(G.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 J==null||R.default(G,J)}function rL(G,J){if(!G)return!1;switch(G.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 J==null||R.default(G,J)}function iL(G,J){if(!G)return!1;switch(G.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 J==null||R.default(G,J)}function uL(G,J){if(!G)return!1;switch(G.type){case"DeclaredPredicate":case"InferredPredicate":break;default:return!1}return J==null||R.default(G,J)}function dL(G,J){if(!G)return!1;switch(G.type){case"EnumBooleanBody":case"EnumNumberBody":case"EnumStringBody":case"EnumSymbolBody":break;default:return!1}return J==null||R.default(G,J)}function sL(G,J){if(!G)return!1;switch(G.type){case"EnumBooleanMember":case"EnumNumberMember":case"EnumStringMember":case"EnumDefaultedMember":break;default:return!1}return J==null||R.default(G,J)}function pL(G,J){if(!G)return!1;switch(G.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 J==null||R.default(G,J)}function nL(G,J){if(!G)return!1;switch(G.type){case"Noop":case"Placeholder":case"V8IntrinsicIdentifier":break;default:return!1}return J==null||R.default(G,J)}function oL(G,J){if(!G)return!1;switch(G.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"TSLiteralType":case"TSExpressionWithTypeArguments":case"TSInterfaceDeclaration":case"TSInterfaceBody":case"TSTypeAliasDeclaration":case"TSInstantiationExpression":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":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 J==null||R.default(G,J)}function eL(G,J){if(!G)return!1;switch(G.type){case"TSCallSignatureDeclaration":case"TSConstructSignatureDeclaration":case"TSPropertySignature":case"TSMethodSignature":case"TSIndexSignature":break;default:return!1}return J==null||R.default(G,J)}function tL(G,J){if(!G)return!1;switch(G.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"TSLiteralType":case"TSExpressionWithTypeArguments":case"TSImportType":break;default:return!1}return J==null||R.default(G,J)}function GT(G,J){if(!G)return!1;switch(G.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"TSLiteralType":break;default:return!1}return J==null||R.default(G,J)}function JT(G,J){if(B9.default("isNumberLiteral","isNumericLiteral"),!G)return!1;if(G.type!=="NumberLiteral")return!1;return J==null||R.default(G,J)}function XT(G,J){if(B9.default("isRegexLiteral","isRegExpLiteral"),!G)return!1;if(G.type!=="RegexLiteral")return!1;return J==null||R.default(G,J)}function HT(G,J){if(B9.default("isRestProperty","isRestElement"),!G)return!1;if(G.type!=="RestProperty")return!1;return J==null||R.default(G,J)}function ZT(G,J){if(B9.default("isSpreadProperty","isSpreadElement"),!G)return!1;if(G.type!=="SpreadProperty")return!1;return J==null||R.default(G,J)}function VT(G,J){return B9.default("isModuleDeclaration","isImportOrExportDeclaration"),sV(G,J)}Object.defineProperty(pV,"__esModule",{value:!0});pV.isAccessor=xL;pV.isAnyTypeAnnotation=Qf;pV.isArgumentPlaceholder=bS;pV.isArrayExpression=LA;pV.isArrayPattern=SC;pV.isArrayTypeAnnotation=Yf;pV.isArrowFunctionExpression=PC;pV.isAssignmentExpression=TA;pV.isAssignmentPattern=fC;pV.isAwaitExpression=sC;pV.isBigIntLiteral=nC;pV.isBinary=zL;pV.isBinaryExpression=wA;pV.isBindExpression=hS;pV.isBlock=BL;pV.isBlockParent=KL;pV.isBlockStatement=OA;pV.isBooleanLiteral=tA;pV.isBooleanLiteralTypeAnnotation=zf;pV.isBooleanTypeAnnotation=Wf;pV.isBreakStatement=vA;pV.isCallExpression=_A;pV.isCatchClause=gA;pV.isClass=hL;pV.isClassAccessorProperty=Jf;pV.isClassBody=LC;pV.isClassDeclaration=wC;pV.isClassExpression=TC;pV.isClassImplements=Kf;pV.isClassMethod=xC;pV.isClassPrivateMethod=Hf;pV.isClassPrivateProperty=Xf;pV.isClassProperty=Gf;pV.isCompletionStatement=ML;pV.isConditional=qL;pV.isConditionalExpression=bA;pV.isContinueStatement=hA;pV.isDebuggerStatement=yA;pV.isDecimalLiteral=rS;pV.isDeclaration=PL;pV.isDeclareClass=Bf;pV.isDeclareExportAllDeclaration=Af;pV.isDeclareExportDeclaration=If;pV.isDeclareFunction=$f;pV.isDeclareInterface=Rf;pV.isDeclareModule=Mf;pV.isDeclareModuleExports=qf;pV.isDeclareOpaqueType=jf;pV.isDeclareTypeAlias=Ff;pV.isDeclareVariable=Df;pV.isDeclaredPredicate=Cf;pV.isDecorator=mS;pV.isDirective=kA;pV.isDirectiveLiteral=EA;pV.isDoExpression=xS;pV.isDoWhileStatement=mA;pV.isEmptyStatement=xA;pV.isEmptyTypeAnnotation=vf;pV.isEnumBody=dL;pV.isEnumBooleanBody=WS;pV.isEnumBooleanMember=BS;pV.isEnumDeclaration=YS;pV.isEnumDefaultedMember=MS;pV.isEnumMember=sL;pV.isEnumNumberBody=zS;pV.isEnumNumberMember=$S;pV.isEnumStringBody=US;pV.isEnumStringMember=RS;pV.isEnumSymbolBody=KS;pV.isExistsTypeAnnotation=ff;pV.isExportAllDeclaration=NC;pV.isExportDeclaration=yL;pV.isExportDefaultDeclaration=kC;pV.isExportDefaultSpecifier=lS;pV.isExportNamedDeclaration=EC;pV.isExportNamespaceSpecifier=oC;pV.isExportSpecifier=OC;pV.isExpression=WL;pV.isExpressionStatement=lA;pV.isExpressionWrapper=DL;pV.isFile=cA;pV.isFlow=cL;pV.isFlowBaseAnnotation=rL;pV.isFlowDeclaration=iL;pV.isFlowPredicate=uL;pV.isFlowType=aL;pV.isFor=IL;pV.isForInStatement=aA;pV.isForOfStatement=vC;pV.isForStatement=rA;pV.isForXStatement=AL;pV.isFunction=CL;pV.isFunctionDeclaration=iA;pV.isFunctionExpression=uA;pV.isFunctionParent=fL;pV.isFunctionTypeAnnotation=Sf;pV.isFunctionTypeParam=Pf;pV.isGenericTypeAnnotation=Lf;pV.isIdentifier=dA;pV.isIfStatement=sA;pV.isImmutable=kL;pV.isImport=pC;pV.isImportAttribute=yS;pV.isImportDeclaration=_C;pV.isImportDefaultSpecifier=gC;pV.isImportExpression=yC;pV.isImportNamespaceSpecifier=bC;pV.isImportOrExportDeclaration=sV;pV.isImportSpecifier=hC;pV.isIndexedAccessType=qS;pV.isInferredPredicate=Tf;pV.isInterfaceDeclaration=Nf;pV.isInterfaceExtends=wf;pV.isInterfaceTypeAnnotation=kf;pV.isInterpreterDirective=NA;pV.isIntersectionTypeAnnotation=Ef;pV.isJSX=pL;pV.isJSXAttribute=jS;pV.isJSXClosingElement=DS;pV.isJSXClosingFragment=OS;pV.isJSXElement=IS;pV.isJSXEmptyExpression=AS;pV.isJSXExpressionContainer=CS;pV.isJSXFragment=kS;pV.isJSXIdentifier=SS;pV.isJSXMemberExpression=PS;pV.isJSXNamespacedName=LS;pV.isJSXOpeningElement=TS;pV.isJSXOpeningFragment=ES;pV.isJSXSpreadAttribute=wS;pV.isJSXSpreadChild=fS;pV.isJSXText=NS;pV.isLVal=TL;pV.isLabeledStatement=pA;pV.isLiteral=NL;pV.isLogicalExpression=JC;pV.isLoop=FL;pV.isMemberExpression=XC;pV.isMetaProperty=mC;pV.isMethod=OL;pV.isMiscellaneous=nL;pV.isMixedTypeAnnotation=Of;pV.isModuleDeclaration=VT;pV.isModuleExpression=iS;pV.isModuleSpecifier=mL;pV.isNewExpression=HC;pV.isNoop=vS;pV.isNullLiteral=eA;pV.isNullLiteralTypeAnnotation=Uf;pV.isNullableTypeAnnotation=_f;pV.isNumberLiteral=JT;pV.isNumberLiteralTypeAnnotation=gf;pV.isNumberTypeAnnotation=bf;pV.isNumericLiteral=oA;pV.isObjectExpression=VC;pV.isObjectMember=vL;pV.isObjectMethod=QC;pV.isObjectPattern=lC;pV.isObjectProperty=YC;pV.isObjectTypeAnnotation=hf;pV.isObjectTypeCallProperty=mf;pV.isObjectTypeIndexer=xf;pV.isObjectTypeInternalSlot=yf;pV.isObjectTypeProperty=lf;pV.isObjectTypeSpreadProperty=cf;pV.isOpaqueType=af;pV.isOptionalCallExpression=tC;pV.isOptionalIndexedAccessType=FS;pV.isOptionalMemberExpression=eC;pV.isParenthesizedExpression=KC;pV.isPattern=bL;pV.isPatternLike=LL;pV.isPipelineBareFunction=sS;pV.isPipelinePrimaryTopicReference=pS;pV.isPipelineTopicExpression=dS;pV.isPlaceholder=_S;pV.isPrivate=lL;pV.isPrivateName=Zf;pV.isProgram=ZC;pV.isProperty=_L;pV.isPureish=SL;pV.isQualifiedTypeIdentifier=rf;pV.isRecordExpression=cS;pV.isRegExpLiteral=GC;pV.isRegexLiteral=XT;pV.isRestElement=WC;pV.isRestProperty=HT;pV.isReturnStatement=zC;pV.isScopable=UL;pV.isSequenceExpression=UC;pV.isSpreadElement=cC;pV.isSpreadProperty=ZT;pV.isStandardized=YL;pV.isStatement=$L;pV.isStaticBlock=Vf;pV.isStringLiteral=nA;pV.isStringLiteralTypeAnnotation=uf;pV.isStringTypeAnnotation=df;pV.isSuper=aC;pV.isSwitchCase=BC;pV.isSwitchStatement=$C;pV.isSymbolTypeAnnotation=sf;pV.isTSAnyKeyword=VP;pV.isTSArrayType=PP;pV.isTSAsExpression=rP;pV.isTSBaseType=GT;pV.isTSBigIntKeyword=YP;pV.isTSBooleanKeyword=QP;pV.isTSCallSignatureDeclaration=GP;pV.isTSConditionalType=OP;pV.isTSConstructSignatureDeclaration=JP;pV.isTSConstructorType=IP;pV.isTSDeclareFunction=oS;pV.isTSDeclareMethod=eS;pV.isTSEntityName=wL;pV.isTSEnumDeclaration=dP;pV.isTSEnumMember=sP;pV.isTSExportAssignment=JL;pV.isTSExpressionWithTypeArguments=mP;pV.isTSExternalModuleReference=tP;pV.isTSFunctionType=DP;pV.isTSImportEqualsDeclaration=eP;pV.isTSImportType=oP;pV.isTSIndexSignature=ZP;pV.isTSIndexedAccessType=bP;pV.isTSInferType=vP;pV.isTSInstantiationExpression=aP;pV.isTSInterfaceBody=lP;pV.isTSInterfaceDeclaration=xP;pV.isTSIntersectionType=EP;pV.isTSIntrinsicKeyword=WP;pV.isTSLiteralType=yP;pV.isTSMappedType=hP;pV.isTSMethodSignature=HP;pV.isTSModuleBlock=nP;pV.isTSModuleDeclaration=pP;pV.isTSNamedTupleMember=NP;pV.isTSNamespaceExportDeclaration=XL;pV.isTSNeverKeyword=zP;pV.isTSNonNullExpression=GL;pV.isTSNullKeyword=UP;pV.isTSNumberKeyword=KP;pV.isTSObjectKeyword=BP;pV.isTSOptionalType=TP;pV.isTSParameterProperty=nS;pV.isTSParenthesizedType=_P;pV.isTSPropertySignature=XP;pV.isTSQualifiedName=tS;pV.isTSRestType=wP;pV.isTSSatisfiesExpression=iP;pV.isTSStringKeyword=$P;pV.isTSSymbolKeyword=RP;pV.isTSThisType=jP;pV.isTSTupleType=LP;pV.isTSType=tL;pV.isTSTypeAliasDeclaration=cP;pV.isTSTypeAnnotation=HL;pV.isTSTypeAssertion=uP;pV.isTSTypeElement=eL;pV.isTSTypeLiteral=SP;pV.isTSTypeOperator=gP;pV.isTSTypeParameter=QL;pV.isTSTypeParameterDeclaration=VL;pV.isTSTypeParameterInstantiation=ZL;pV.isTSTypePredicate=CP;pV.isTSTypeQuery=fP;pV.isTSTypeReference=AP;pV.isTSUndefinedKeyword=MP;pV.isTSUnionType=kP;pV.isTSUnknownKeyword=qP;pV.isTSVoidKeyword=FP;pV.isTaggedTemplateExpression=rC;pV.isTemplateElement=iC;pV.isTemplateLiteral=uC;pV.isTerminatorless=RL;pV.isThisExpression=RC;pV.isThisTypeAnnotation=pf;pV.isThrowStatement=MC;pV.isTopicReference=uS;pV.isTryStatement=qC;pV.isTupleExpression=aS;pV.isTupleTypeAnnotation=nf;pV.isTypeAlias=ef;pV.isTypeAnnotation=tf;pV.isTypeCastExpression=GS;pV.isTypeParameter=JS;pV.isTypeParameterDeclaration=XS;pV.isTypeParameterInstantiation=HS;pV.isTypeScript=oL;pV.isTypeofTypeAnnotation=of;pV.isUnaryExpression=FC;pV.isUnaryLike=gL;pV.isUnionTypeAnnotation=ZS;pV.isUpdateExpression=jC;pV.isUserWhitespacable=EL;pV.isV8IntrinsicIdentifier=gS;pV.isVariableDeclaration=DC;pV.isVariableDeclarator=IC;pV.isVariance=VS;pV.isVoidTypeAnnotation=QS;pV.isWhile=jL;pV.isWhileStatement=AC;pV.isWithStatement=CC;pV.isYieldExpression=dC;var R=QG(),B9=K9()});var JX=S((nV)=>{function xO(G,J,X){if(!$9.isMemberExpression(G))return!1;const H=Array.isArray(J)?J:J.split("."),Z=[];let V;for(V=G;$9.isMemberExpression(V);V=V.object)Z.push(V.property);if(Z.push(V),Z.length<H.length)return!1;if(!X&&Z.length>H.length)return!1;for(let Q=0,Y=Z.length-1;Q<H.length;Q++,Y--){const W=Z[Y];let z;if($9.isIdentifier(W))z=W.name;else if($9.isStringLiteral(W))z=W.value;else if($9.isThisExpression(W))z="this";else return!1;if(H[Q]!==z)return!1}return!0}Object.defineProperty(nV,"__esModule",{value:!0});nV.default=xO;var $9=r1()});var XX=S((oV)=>{function aO(G,J){const X=G.split(".");return(H)=>cO.default(H,X,J)}Object.defineProperty(oV,"__esModule",{value:!0});oV.default=aO;var cO=JX()});var GQ=S((eV)=>{Object.defineProperty(eV,"__esModule",{value:!0});eV.default=void 0;var iO=XX(),uO=iO.default("React.Component"),qN1=eV.default=uO});var XQ=S((JQ)=>{function dO(G){return!!G&&/^[a-z]/.test(G)}Object.defineProperty(JQ,"__esModule",{value:!0});JQ.default=dO});var ZQ=S((DN1,HQ)=>{function M9(G){if(R9!==null&&typeof R9.property){const J=R9;return R9=M9.prototype=null,J}return R9=M9.prototype=G==null?Object.create(null):G,new M9}var R9=null;M9();HQ.exports=function G(J){return M9(J)}});var YG=S((QQ)=>{function pO(G,J){if(G===J)return!0;if(G==null)return!1;if(VQ.ALIAS_KEYS[J])return!1;const X=VQ.FLIPPED_ALIAS_KEYS[J];if(X){if(X[0]===G)return!0;for(let H of X)if(G===H)return!0}return!1}Object.defineProperty(QQ,"__esModule",{value:!0});QQ.default=pO;var VQ=N2()});var HX=S((YQ)=>{function eO(G,J){if(G===J)return!0;const X=oO.PLACEHOLDERS_ALIAS[G];if(X){for(let H of X)if(J===H)return!0}return!1}Object.defineProperty(YQ,"__esModule",{value:!0});YQ.default=eO;var oO=N2()});var N5=S((WQ)=>{function Zv(G,J,X){if(!J)return!1;if(!Jv.default(J.type,G)){if(!X&&J.type==="Placeholder"&&G in Hv.FLIPPED_ALIAS_KEYS)return Xv.default(J.expectedNode,G);return!1}if(X===void 0)return!0;else return Gv.default(J,X)}Object.defineProperty(WQ,"__esModule",{value:!0});WQ.default=Zv;var Gv=QG(),Jv=YG(),Xv=HX(),Hv=N2()});var RQ=S(($Q)=>{function ZX(G,J){let X=65536;for(let H=0,Z=J.length;H<Z;H+=2){if(X+=J[H],X>G)return!1;if(X+=J[H+1],X>=G)return!0}return!1}function KQ(G){if(G<65)return G===36;if(G<=90)return!0;if(G<97)return G===95;if(G<=122)return!0;if(G<=65535)return G>=170&&Qv.test(String.fromCharCode(G));return ZX(G,UQ)}function BQ(G){if(G<48)return G===36;if(G<58)return!0;if(G<65)return!1;if(G<=90)return!0;if(G<97)return G===95;if(G<=122)return!0;if(G<=65535)return G>=170&&Yv.test(String.fromCharCode(G));return ZX(G,UQ)||ZX(G,Wv)}function zv(G){let J=!0;for(let X=0;X<G.length;X++){let H=G.charCodeAt(X);if((H&64512)===55296&&X+1<G.length){const Z=G.charCodeAt(++X);if((Z&64512)===56320)H=65536+((H&1023)<<10)+(Z&1023)}if(J){if(J=!1,!KQ(H))return!1}else if(!BQ(H))return!1}return!J}Object.defineProperty($Q,"__esModule",{value:!0});$Q.isIdentifierChar=BQ;$Q.isIdentifierName=zv;$Q.isIdentifierStart=KQ;var VX="\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",zQ="\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",Qv=new RegExp("["+VX+"]"),Yv=new RegExp("["+VX+zQ+"]");VX=zQ=null;var UQ=[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],Wv=[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]});var DQ=S((jQ)=>{function MQ(G,J){return J&&G==="await"||G==="enum"}function qQ(G,J){return MQ(G,J)||Rv.has(G)}function FQ(G){return Mv.has(G)}function qv(G,J){return qQ(G,J)||FQ(G)}function Fv(G){return $v.has(G)}Object.defineProperty(jQ,"__esModule",{value:!0});jQ.isKeyword=Fv;jQ.isReservedWord=MQ;jQ.isStrictBindOnlyReservedWord=FQ;jQ.isStrictBindReservedWord=qv;jQ.isStrictReservedWord=qQ;var QX={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"]},$v=new Set(QX.keyword),Rv=new Set(QX.strict),Mv=new Set(QX.strictBind)});var F9=S((s2)=>{Object.defineProperty(s2,"__esModule",{value:!0});Object.defineProperty(s2,"isIdentifierChar",{enumerable:!0,get:function(){return YX.isIdentifierChar}});Object.defineProperty(s2,"isIdentifierName",{enumerable:!0,get:function(){return YX.isIdentifierName}});Object.defineProperty(s2,"isIdentifierStart",{enumerable:!0,get:function(){return YX.isIdentifierStart}});Object.defineProperty(s2,"isKeyword",{enumerable:!0,get:function(){return q9.isKeyword}});Object.defineProperty(s2,"isReservedWord",{enumerable:!0,get:function(){return q9.isReservedWord}});Object.defineProperty(s2,"isStrictBindOnlyReservedWord",{enumerable:!0,get:function(){return q9.isStrictBindOnlyReservedWord}});Object.defineProperty(s2,"isStrictBindReservedWord",{enumerable:!0,get:function(){return q9.isStrictBindReservedWord}});Object.defineProperty(s2,"isStrictReservedWord",{enumerable:!0,get:function(){return q9.isStrictReservedWord}});var YX=RQ(),q9=DQ()});var k5=S((IQ)=>{function fv(G,J=!0){if(typeof G!=="string")return!1;if(J){if(WX.isKeyword(G)||WX.isStrictReservedWord(G,!0))return!1}return WX.isIdentifierName(G)}Object.defineProperty(IQ,"__esModule",{value:!0});IQ.default=fv;var WX=F9()});var PQ=S((SQ)=>{function Lv(G,J,X,H,Z,V){const Q=X,Y=H,W=Z;let z="",B=null,q=X;const{length:F}=J;for(;;){if(X>=F){V.unterminated(Q,Y,W),z+=J.slice(q,X);break}const j=J.charCodeAt(X);if(Tv(G,j,J,X)){z+=J.slice(q,X);break}if(j===92){z+=J.slice(q,X);const f=wv(J,X,H,Z,G==="template",V);if(f.ch===null&&!B)B={pos:X,lineStart:H,curLine:Z};else z+=f.ch;({pos:X,lineStart:H,curLine:Z}=f),q=X}else if(j===8232||j===8233)++X,++Z,H=X;else if(j===10||j===13)if(G==="template"){if(z+=J.slice(q,X)+"\n",++X,j===13&&J.charCodeAt(X)===10)++X;++Z,q=H=X}else V.unterminated(Q,Y,W);else++X}return{pos:X,str:z,firstInvalidLoc:B,lineStart:H,curLine:Z,containsInvalid:!!B}}function Tv(G,J,X,H){if(G==="template")return J===96||J===36&&X.charCodeAt(H+1)===123;return J===(G==="double"?34:39)}function wv(G,J,X,H,Z,V){const Q=!Z;J++;const Y=(z)=>({pos:J,ch:z,lineStart:X,curLine:H}),W=G.charCodeAt(J++);switch(W){case 110:return Y("\n");case 114:return Y("\r");case 120:{let z;return{code:z,pos:J}=zX(G,J,X,H,2,!1,Q,V),Y(z===null?null:String.fromCharCode(z))}case 117:{let z;return{code:z,pos:J}=fQ(G,J,X,H,Q,V),Y(z===null?null:String.fromCodePoint(z))}case 116:return Y("\t");case 98:return Y("\b");case 118:return Y("\v");case 102:return Y("\f");case 13:if(G.charCodeAt(J)===10)++J;case 10:X=J,++H;case 8232:case 8233:return Y("");case 56:case 57:if(Z)return Y(null);else V.strictNumericEscape(J-1,X,H);default:if(W>=48&&W<=55){const z=J-1;let q=/^[0-7]+/.exec(G.slice(z,J+2))[0],F=parseInt(q,8);if(F>255)q=q.slice(0,-1),F=parseInt(q,8);J+=q.length-1;const j=G.charCodeAt(J);if(q!=="0"||j===56||j===57)if(Z)return Y(null);else V.strictNumericEscape(z,X,H);return Y(String.fromCharCode(F))}return Y(String.fromCharCode(W))}}function zX(G,J,X,H,Z,V,Q,Y){const W=J;let z;if({n:z,pos:J}=CQ(G,J,X,H,16,Z,V,!1,Y,!Q),z===null)if(Q)Y.invalidEscapeSequence(W,X,H);else J=W-1;return{code:z,pos:J}}function CQ(G,J,X,H,Z,V,Q,Y,W,z){const B=J,q=Z===16?AQ.hex:AQ.decBinOct,F=Z===16?WG.hex:Z===10?WG.dec:Z===8?WG.oct:WG.bin;let j=!1,f=0;for(let h=0,w=V==null?1/0:V;h<w;++h){const v=G.charCodeAt(J);let b;if(v===95&&Y!=="bail"){const $1=G.charCodeAt(J-1),G1=G.charCodeAt(J+1);if(!Y){if(z)return{n:null,pos:J};W.numericSeparatorInEscapeSequence(J,X,H)}else if(Number.isNaN(G1)||!F(G1)||q.has($1)||q.has(G1)){if(z)return{n:null,pos:J};W.unexpectedNumericSeparator(J,X,H)}++J;continue}if(v>=97)b=v-97+10;else if(v>=65)b=v-65+10;else if(Pv(v))b=v-48;else b=1/0;if(b>=Z)if(b<=9&&z)return{n:null,pos:J};else if(b<=9&&W.invalidDigit(J,X,H,Z))b=0;else if(Q)b=0,j=!0;else break;++J,f=f*Z+b}if(J===B||V!=null&&J-B!==V||j)return{n:null,pos:J};return{n:f,pos:J}}function fQ(G,J,X,H,Z,V){const Q=G.charCodeAt(J);let Y;if(Q===123){if(++J,{code:Y,pos:J}=zX(G,J,X,H,G.indexOf("}",J)-J,!0,Z,V),++J,Y!==null&&Y>1114111)if(Z)V.invalidCodePoint(J,X,H);else return{code:null,pos:J}}else({code:Y,pos:J}=zX(G,J,X,H,4,!1,Z,V));return{code:Y,pos:J}}Object.defineProperty(SQ,"__esModule",{value:!0});SQ.readCodePoint=fQ;SQ.readInt=CQ;SQ.readStringContents=Lv;var Pv=function G(J){return J>=48&&J<=57},AQ={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},WG={bin:(G)=>G===48||G===49,oct:(G)=>G>=48&&G<=55,dec:(G)=>G>=48&&G<=57,hex:(G)=>G>=48&&G<=57||G>=65&&G<=70||G>=97&&G<=102}});var P0=S((TQ)=>{Object.defineProperty(TQ,"__esModule",{value:!0});TQ.UPDATE_OPERATORS=TQ.UNARY_OPERATORS=TQ.STRING_UNARY_OPERATORS=TQ.STATEMENT_OR_BLOCK_KEYS=TQ.NUMBER_UNARY_OPERATORS=TQ.NUMBER_BINARY_OPERATORS=TQ.NOT_LOCAL_BINDING=TQ.LOGICAL_OPERATORS=TQ.INHERIT_KEYS=TQ.FOR_INIT_KEYS=TQ.FLATTENABLE_KEYS=TQ.EQUALITY_BINARY_OPERATORS=TQ.COMPARISON_BINARY_OPERATORS=TQ.COMMENT_KEYS=TQ.BOOLEAN_UNARY_OPERATORS=TQ.BOOLEAN_NUMBER_BINARY_OPERATORS=TQ.BOOLEAN_BINARY_OPERATORS=TQ.BLOCK_SCOPED_SYMBOL=TQ.BINARY_OPERATORS=TQ.ASSIGNMENT_OPERATORS=void 0;var wN1=TQ.STATEMENT_OR_BLOCK_KEYS=["consequent","body","alternate"],NN1=TQ.FLATTENABLE_KEYS=["body","expressions"],kN1=TQ.FOR_INIT_KEYS=["left","init"],EN1=TQ.COMMENT_KEYS=["leadingComments","trailingComments","innerComments"],Ov=TQ.LOGICAL_OPERATORS=["||","&&","??"],ON1=TQ.UPDATE_OPERATORS=["++","--"],vv=TQ.BOOLEAN_NUMBER_BINARY_OPERATORS=[">","<",">=","<="],_v=TQ.EQUALITY_BINARY_OPERATORS=["==","===","!=","!=="],gv=TQ.COMPARISON_BINARY_OPERATORS=[..._v,"in","instanceof"],bv=TQ.BOOLEAN_BINARY_OPERATORS=[...gv,...vv],LQ=TQ.NUMBER_BINARY_OPERATORS=["-","/","%","*","**","&","|",">>",">>>","<<","^"],vN1=TQ.BINARY_OPERATORS=["+",...LQ,...bv,"|>"],_N1=TQ.ASSIGNMENT_OPERATORS=["=","+=",...LQ.map((G)=>G+"="),...Ov.map((G)=>G+"=")],hv=TQ.BOOLEAN_UNARY_OPERATORS=["delete","!"],yv=TQ.NUMBER_UNARY_OPERATORS=["+","-","~"],mv=TQ.STRING_UNARY_OPERATORS=["typeof"],gN1=TQ.UNARY_OPERATORS=["void","throw",...hv,...yv,...mv],bN1=TQ.INHERIT_KEYS={optional:["typeAnnotation","typeParameters","returnType"],force:["start","loc","end"]},hN1=TQ.BLOCK_SCOPED_SYMBOL=Symbol.for("var used to be block scoped"),yN1=TQ.NOT_LOCAL_BINDING=Symbol.for("should not be considered a local binding")});var p2=S((gQ)=>{function zG(G){if(Array.isArray(G))return"array";else if(G===null)return"null";else return typeof G}function BX(G){return{validate:G}}function K_(...G){return BX(KG(...G))}function B_(G){return{validate:G,optional:!0}}function $_(...G){return{validate:KG(...G),optional:!0}}function kQ(G){return vQ($X("array"),OQ(G))}function EQ(...G){return kQ(KG(...G))}function R_(...G){return BX(EQ(...G))}function OQ(G){const J=process.env.BABEL_TYPES_8_BREAKING?UG.validateChild:()=>{};function X(H,Z,V){if(!Array.isArray(V))return;for(let Q=0;Q<V.length;Q++){const Y=`${Z}[${Q}]`,W=V[Q];G(H,Y,W),J(H,Y,W)}}return X.each=G,X}function M_(...G){function J(X,H,Z){if(!G.includes(Z))throw new TypeError(`Property ${H} expected value to be one of ${JSON.stringify(G)} but got ${JSON.stringify(Z)}`)}return J.oneOf=G,J}function KG(...G){function J(X,H,Z){for(let V of G)if(NQ.default(V,Z)){UG.validateChild(X,H,Z);return}throw new TypeError(`Property ${H} of ${X.type} expected node to be of a type ${JSON.stringify(G)} but instead got ${JSON.stringify(Z==null?void 0:Z.type)}`)}return J.oneOfNodeTypes=G,J}function q_(...G){function J(X,H,Z){for(let V of G)if(zG(Z)===V||NQ.default(V,Z)){UG.validateChild(X,H,Z);return}throw new TypeError(`Property ${H} of ${X.type} expected node to be of a type ${JSON.stringify(G)} but instead got ${JSON.stringify(Z==null?void 0:Z.type)}`)}return J.oneOfNodeOrValueTypes=G,J}function $X(G){function J(X,H,Z){if(zG(Z)!==G)throw new TypeError(`Property ${H} expected type of ${G} but got ${zG(Z)}`)}return J.type=G,J}function F_(G){function J(X,H,Z){const V=[];for(let Q of Object.keys(G))try{UG.validateField(X,Q,Z[Q],G[Q])}catch(Y){if(Y instanceof TypeError){V.push(Y.message);continue}throw Y}if(V.length)throw new TypeError(`Property ${H} of ${X.type} expected to have the following:\n${V.join("\n")}`)}return J.shapeOf=G,J}function j_(){function G(J){var X;let H=J;while(J){const{type:Z}=H;if(Z==="OptionalCallExpression"){if(H.optional)return;H=H.callee;continue}if(Z==="OptionalMemberExpression"){if(H.optional)return;H=H.object;continue}break}throw new TypeError(`Non-optional ${J.type} must chain from an optional OptionalMemberExpression or OptionalCallExpression. Found chain from ${(X=H)==null?void 0:X.type}`)}return G}function vQ(...G){function J(...X){for(let H of G)H(...X)}if(J.chainOf=G,G.length>=2&&"type"in G[0]&&G[0].type==="array"&&!("each"in G[1]))throw new Error('An assertValueType("array") validator can only be followed by an assertEach(...) validator.');return J}function A_(...G){return(J,X={})=>{let H=X.aliases;if(!H){var Z,V;if(X.inherits)H=(Z=KX[X.inherits].aliases)==null?void 0:Z.slice();(V=H)!=null||(H=[]),X.aliases=H}const Q=G.filter((Y)=>!H.includes(Y));H.unshift(...Q),_Q(J,X)}}function _Q(G,J={}){const X=J.inherits&&KX[J.inherits]||{};let H=J.fields;if(!H){if(H={},X.fields){const Y=Object.getOwnPropertyNames(X.fields);for(let W of Y){const z=X.fields[W],B=z.default;if(Array.isArray(B)?B.length>0:B&&typeof B==="object")throw new Error("field defaults can only be primitives or empty arrays currently");H[W]={default:Array.isArray(B)?[]:B,optional:z.optional,deprecated:z.deprecated,validate:z.validate}}}}const Z=J.visitor||X.visitor||[],V=J.aliases||X.aliases||[],Q=J.builder||X.builder||J.visitor||[];for(let Y of Object.keys(J))if(!D_.has(Y))throw new Error(`Unknown type option "${Y}" on ${G}`);if(J.deprecatedAlias)z_[J.deprecatedAlias]=G;for(let Y of Z.concat(Q))H[Y]=H[Y]||{};for(let Y of Object.keys(H)){const W=H[Y];if(W.default!==void 0&&!Q.includes(Y))W.optional=!0;if(W.default===void 0)W.default=null;else if(!W.validate&&W.default!=null)W.validate=$X(zG(W.default));for(let z of Object.keys(W))if(!I_.has(z))throw new Error(`Unknown field key "${z}" on ${G}.${Y}`)}if(V_[G]=J.visitor=Z,W_[G]=J.builder=Q,Y_[G]=J.fields=H,Q_[G]=J.aliases=V,V.forEach((Y)=>{UX[Y]=UX[Y]||[],UX[Y].push(G)}),J.validate)U_[G]=J.validate;KX[G]=J}Object.defineProperty(gQ,"__esModule",{value:!0});gQ.VISITOR_KEYS=gQ.NODE_PARENT_VALIDATIONS=gQ.NODE_FIELDS=gQ.FLIPPED_ALIAS_KEYS=gQ.DEPRECATED_KEYS=gQ.BUILDER_KEYS=gQ.ALIAS_KEYS=void 0;gQ.arrayOf=kQ;gQ.arrayOfType=EQ;gQ.assertEach=OQ;gQ.assertNodeOrValueType=q_;gQ.assertNodeType=KG;gQ.assertOneOf=M_;gQ.assertOptionalChainStart=j_;gQ.assertShape=F_;gQ.assertValueType=$X;gQ.chain=vQ;gQ.default=_Q;gQ.defineAliasedType=A_;gQ.validate=BX;gQ.validateArrayOfType=R_;gQ.validateOptional=B_;gQ.validateOptionalType=$_;gQ.validateType=K_;var NQ=N5(),UG=BG(),V_=gQ.VISITOR_KEYS={},Q_=gQ.ALIAS_KEYS={},UX=gQ.FLIPPED_ALIAS_KEYS={},Y_=gQ.NODE_FIELDS={},W_=gQ.BUILDER_KEYS={},z_=gQ.DEPRECATED_KEYS={},U_=gQ.NODE_PARENT_VALIDATIONS={},D_=new Set(["aliases","builder","deprecatedAlias","fields","inherits","visitor","validate"]),I_=new Set(["default","optional","deprecated","validate"]),KX={}});var MX=S((mQ)=>{Object.defineProperty(mQ,"__esModule",{value:!0});mQ.patternLikeCommon=mQ.functionTypeAnnotationCommon=mQ.functionDeclarationCommon=mQ.functionCommon=mQ.classMethodOrPropertyCommon=mQ.classMethodOrDeclareMethodCommon=void 0;var Q2=N5(),i_=k5(),hQ=F9(),u_=PQ(),j9=P0(),M=p2(),l=M.defineAliasedType("Standardized");l("ArrayExpression",{fields:{elements:{validate:M.arrayOf(M.assertNodeOrValueType("null","Expression","SpreadElement")),default:!process.env.BABEL_TYPES_8_BREAKING?[]:void 0}},visitor:["elements"],aliases:["Expression"]});l("AssignmentExpression",{fields:{operator:{validate:!process.env.BABEL_TYPES_8_BREAKING?M.assertValueType("string"):Object.assign(function(){const G=M.assertOneOf(...j9.ASSIGNMENT_OPERATORS),J=M.assertOneOf("=");return function(X,H,Z){(Q2.default("Pattern",X.left)?J:G)(X,H,Z)}}(),{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"]});l("BinaryExpression",{builder:["operator","left","right"],fields:{operator:{validate:M.assertOneOf(...j9.BINARY_OPERATORS)},left:{validate:function(){const G=M.assertNodeType("Expression"),J=M.assertNodeType("Expression","PrivateName");return Object.assign(function(H,Z,V){(H.operator==="in"?J:G)(H,Z,V)},{oneOfNodeTypes:["Expression","PrivateName"]})}()},right:{validate:M.assertNodeType("Expression")}},visitor:["left","right"],aliases:["Binary","Expression"]});l("InterpreterDirective",{builder:["value"],fields:{value:{validate:M.assertValueType("string")}}});l("Directive",{visitor:["value"],fields:{value:{validate:M.assertNodeType("DirectiveLiteral")}}});l("DirectiveLiteral",{builder:["value"],fields:{value:{validate:M.assertValueType("string")}}});l("BlockStatement",{builder:["body","directives"],visitor:["directives","body"],fields:{directives:{validate:M.arrayOfType("Directive"),default:[]},body:M.validateArrayOfType("Statement")},aliases:["Scopable","BlockParent","Block","Statement"]});l("BreakStatement",{visitor:["label"],fields:{label:{validate:M.assertNodeType("Identifier"),optional:!0}},aliases:["Statement","Terminatorless","CompletionStatement"]});l("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")},!process.env.BABEL_TYPES_8_BREAKING?{optional:{validate:M.assertValueType("boolean"),optional:!0}}:{},{typeArguments:{validate:M.assertNodeType("TypeParameterInstantiation"),optional:!0},typeParameters:{validate:M.assertNodeType("TSTypeParameterInstantiation"),optional:!0}})});l("CatchClause",{visitor:["param","body"],fields:{param:{validate:M.assertNodeType("Identifier","ArrayPattern","ObjectPattern"),optional:!0},body:{validate:M.assertNodeType("BlockStatement")}},aliases:["Scopable","BlockParent"]});l("ConditionalExpression",{visitor:["test","consequent","alternate"],fields:{test:{validate:M.assertNodeType("Expression")},consequent:{validate:M.assertNodeType("Expression")},alternate:{validate:M.assertNodeType("Expression")}},aliases:["Expression","Conditional"]});l("ContinueStatement",{visitor:["label"],fields:{label:{validate:M.assertNodeType("Identifier"),optional:!0}},aliases:["Statement","Terminatorless","CompletionStatement"]});l("DebuggerStatement",{aliases:["Statement"]});l("DoWhileStatement",{builder:["test","body"],visitor:["body","test"],fields:{test:{validate:M.assertNodeType("Expression")},body:{validate:M.assertNodeType("Statement")}},aliases:["Statement","BlockParent","Loop","While","Scopable"]});l("EmptyStatement",{aliases:["Statement"]});l("ExpressionStatement",{visitor:["expression"],fields:{expression:{validate:M.assertNodeType("Expression")}},aliases:["Statement","ExpressionWrapper"]});l("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}}});l("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")}}});l("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 E5=()=>({params:M.validateArrayOfType("Identifier","Pattern","RestElement"),generator:{default:!1},async:{default:!1}});mQ.functionCommon=E5;var p0=()=>({returnType:{validate:M.assertNodeType("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},typeParameters:{validate:M.assertNodeType("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:!0}});mQ.functionTypeAnnotationCommon=p0;var yQ=()=>Object.assign({},E5(),{declare:{validate:M.assertValueType("boolean"),optional:!0},id:{validate:M.assertNodeType("Identifier"),optional:!0}});mQ.functionDeclarationCommon=yQ;l("FunctionDeclaration",{builder:["id","params","body","generator","async"],visitor:["id","typeParameters","params","returnType","body"],fields:Object.assign({},yQ(),p0(),{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(){const G=M.assertNodeType("Identifier");return function(J,X,H){if(!Q2.default("ExportDefaultDeclaration",J))G(H,"id",H.id)}}()});l("FunctionExpression",{inherits:"FunctionDeclaration",aliases:["Scopable","Function","BlockParent","FunctionParent","Expression","Pureish"],fields:Object.assign({},E5(),p0(),{id:{validate:M.assertNodeType("Identifier"),optional:!0},body:{validate:M.assertNodeType("BlockStatement")},predicate:{validate:M.assertNodeType("DeclaredPredicate","InferredPredicate"),optional:!0}})});var O5=()=>({typeAnnotation:{validate:M.assertNodeType("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},optional:{validate:M.assertValueType("boolean"),optional:!0},decorators:{validate:M.arrayOfType("Decorator"),optional:!0}});mQ.patternLikeCommon=O5;l("Identifier",{builder:["name"],visitor:["typeAnnotation","decorators"],aliases:["Expression","PatternLike","LVal","TSEntityName"],fields:Object.assign({},O5(),{name:{validate:process.env.BABEL_TYPES_8_BREAKING?M.chain(M.assertValueType("string"),Object.assign(function(G,J,X){if(!i_.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(G,J,X){const H=/\.(\w+)$/.exec(J);if(!H)return;const[,Z]=H,V={computed:!1};if(Z==="property"){if(Q2.default("MemberExpression",G,V))return;if(Q2.default("OptionalMemberExpression",G,V))return}else if(Z==="key"){if(Q2.default("Property",G,V))return;if(Q2.default("Method",G,V))return}else if(Z==="exported"){if(Q2.default("ExportSpecifier",G))return}else if(Z==="imported"){if(Q2.default("ImportSpecifier",G,{imported:X}))return}else if(Z==="meta"){if(Q2.default("MetaProperty",G,{meta:X}))return}if((hQ.isKeyword(X.name)||hQ.isReservedWord(X.name,!1))&&X.name!=="this")throw new TypeError(`"${X.name}" is not a valid identifier`)}:void 0});l("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")}}});l("LabeledStatement",{visitor:["label","body"],aliases:["Statement"],fields:{label:{validate:M.assertNodeType("Identifier")},body:{validate:M.assertNodeType("Statement")}}});l("StringLiteral",{builder:["value"],fields:{value:{validate:M.assertValueType("string")}},aliases:["Expression","Pureish","Literal","Immutable"]});l("NumericLiteral",{builder:["value"],deprecatedAlias:"NumberLiteral",fields:{value:{validate:M.chain(M.assertValueType("number"),Object.assign(function(G,J,X){if(1/X<0||!Number.isFinite(X)){const H=new Error(`NumericLiterals must be non-negative finite numbers. You can use t.valueToNode(${X}) instead.`)}},{type:"number"}))}},aliases:["Expression","Pureish","Literal","Immutable"]});l("NullLiteral",{aliases:["Expression","Pureish","Literal","Immutable"]});l("BooleanLiteral",{builder:["value"],fields:{value:{validate:M.assertValueType("boolean")}},aliases:["Expression","Pureish","Literal","Immutable"]});l("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(G,J,X){const H=/[^gimsuy]/.exec(X);if(H)throw new TypeError(`"${H[0]}" is not a valid RegExp flag`)},{type:"string"})):M.assertValueType("string"),default:""}}});l("LogicalExpression",{builder:["operator","left","right"],visitor:["left","right"],aliases:["Binary","Expression"],fields:{operator:{validate:M.assertOneOf(...j9.LOGICAL_OPERATORS)},left:{validate:M.assertNodeType("Expression")},right:{validate:M.assertNodeType("Expression")}}});l("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(){const G=M.assertNodeType("Identifier","PrivateName"),J=M.assertNodeType("Expression"),X=function(H,Z,V){(H.computed?J:G)(H,Z,V)};return X.oneOfNodeTypes=["Expression","Identifier","PrivateName"],X}()},computed:{default:!1}},!process.env.BABEL_TYPES_8_BREAKING?{optional:{validate:M.assertValueType("boolean"),optional:!0}}:{})});l("NewExpression",{inherits:"CallExpression"});l("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"]});l("ObjectExpression",{visitor:["properties"],aliases:["Expression"],fields:{properties:M.validateArrayOfType("ObjectMethod","ObjectProperty","SpreadElement")}});l("ObjectMethod",{builder:["kind","key","params","body","computed","generator","async"],visitor:["decorators","key","typeParameters","params","returnType","body"],fields:Object.assign({},E5(),p0(),{kind:Object.assign({validate:M.assertOneOf("method","get","set")},!process.env.BABEL_TYPES_8_BREAKING?{default:"method"}:{}),computed:{default:!1},key:{validate:function(){const G=M.assertNodeType("Identifier","StringLiteral","NumericLiteral","BigIntLiteral"),J=M.assertNodeType("Expression"),X=function(H,Z,V){(H.computed?J:G)(H,Z,V)};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"]});l("ObjectProperty",{builder:["key","value","computed","shorthand",...!process.env.BABEL_TYPES_8_BREAKING?["decorators"]:[]],fields:{computed:{default:!1},key:{validate:function(){const G=M.assertNodeType("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","DecimalLiteral","PrivateName"),J=M.assertNodeType("Expression");return Object.assign(function(H,Z,V){(H.computed?J:G)(H,Z,V)},{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(G,J,X){if(!X)return;if(G.computed)throw new TypeError("Property shorthand of ObjectProperty cannot be true if computed is true");if(!Q2.default("Identifier",G.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(){const G=M.assertNodeType("Identifier","Pattern","TSAsExpression","TSSatisfiesExpression","TSNonNullExpression","TSTypeAssertion"),J=M.assertNodeType("Expression");return function(X,H,Z){(Q2.default("ObjectPattern",X)?G:J)(Z,"value",Z.value)}}()});l("RestElement",{visitor:["argument","typeAnnotation"],builder:["argument"],aliases:["LVal","PatternLike"],deprecatedAlias:"RestProperty",fields:Object.assign({},O5(),{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(G,J){const X=/(\w+)\[(\d+)\]/.exec(J);if(!X)throw new Error("Internal Babel error: malformed key.");const[,H,Z]=X;if(G[H].length>+Z+1)throw new TypeError(`RestElement must be last element of ${H}`)}:void 0});l("ReturnStatement",{visitor:["argument"],aliases:["Statement","Terminatorless","CompletionStatement"],fields:{argument:{validate:M.assertNodeType("Expression"),optional:!0}}});l("SequenceExpression",{visitor:["expressions"],fields:{expressions:M.validateArrayOfType("Expression")},aliases:["Expression"]});l("ParenthesizedExpression",{visitor:["expression"],aliases:["Expression","ExpressionWrapper"],fields:{expression:{validate:M.assertNodeType("Expression")}}});l("SwitchCase",{visitor:["test","consequent"],fields:{test:{validate:M.assertNodeType("Expression"),optional:!0},consequent:M.validateArrayOfType("Statement")}});l("SwitchStatement",{visitor:["discriminant","cases"],aliases:["Statement","BlockParent","Scopable"],fields:{discriminant:{validate:M.assertNodeType("Expression")},cases:M.validateArrayOfType("SwitchCase")}});l("ThisExpression",{aliases:["Expression"]});l("ThrowStatement",{visitor:["argument"],aliases:["Statement","Terminatorless","CompletionStatement"],fields:{argument:{validate:M.assertNodeType("Expression")}}});l("TryStatement",{visitor:["block","handler","finalizer"],aliases:["Statement"],fields:{block:{validate:process.env.BABEL_TYPES_8_BREAKING?M.chain(M.assertNodeType("BlockStatement"),Object.assign(function(G){if(!G.handler&&!G.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")}}});l("UnaryExpression",{builder:["operator","argument","prefix"],fields:{prefix:{default:!0},argument:{validate:M.assertNodeType("Expression")},operator:{validate:M.assertOneOf(...j9.UNARY_OPERATORS)}},visitor:["argument"],aliases:["UnaryLike","Expression"]});l("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(...j9.UPDATE_OPERATORS)}},visitor:["argument"],aliases:["Expression"]});l("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?(()=>{const G=M.assertNodeType("Identifier");return function(J,X,H){if(Q2.default("ForXStatement",J,{left:H})){if(H.declarations.length!==1)throw new TypeError(`Exactly one VariableDeclarator is required in the VariableDeclaration of a ${J.type}`)}else H.declarations.forEach((Z)=>{if(!Z.init)G(Z,"id",Z.id)})}})():void 0});l("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")}}});l("WhileStatement",{visitor:["test","body"],aliases:["Statement","BlockParent","Loop","While","Scopable"],fields:{test:{validate:M.assertNodeType("Expression")},body:{validate:M.assertNodeType("Statement")}}});l("WithStatement",{visitor:["object","body"],aliases:["Statement"],fields:{object:{validate:M.assertNodeType("Expression")},body:{validate:M.assertNodeType("Statement")}}});l("AssignmentPattern",{visitor:["left","right","decorators"],builder:["left","right"],aliases:["Pattern","PatternLike","LVal"],fields:Object.assign({},O5(),{left:{validate:M.assertNodeType("Identifier","ObjectPattern","ArrayPattern","MemberExpression","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression")},right:{validate:M.assertNodeType("Expression")},decorators:{validate:M.arrayOfType("Decorator"),optional:!0}})});l("ArrayPattern",{visitor:["elements","typeAnnotation"],builder:["elements"],aliases:["Pattern","PatternLike","LVal"],fields:Object.assign({},O5(),{elements:{validate:M.chain(M.assertValueType("array"),M.assertEach(M.assertNodeOrValueType("null","PatternLike","LVal")))}})});l("ArrowFunctionExpression",{builder:["params","body","async"],visitor:["typeParameters","params","returnType","body"],aliases:["Scopable","Function","BlockParent","FunctionParent","Expression","Pureish"],fields:Object.assign({},E5(),p0(),{expression:{validate:M.assertValueType("boolean")},body:{validate:M.assertNodeType("BlockStatement","Expression")},predicate:{validate:M.assertNodeType("DeclaredPredicate","InferredPredicate"),optional:!0}})});l("ClassBody",{visitor:["body"],fields:{body:M.validateArrayOfType("ClassMethod","ClassPrivateMethod","ClassProperty","ClassPrivateProperty","ClassAccessorProperty","TSDeclareMethod","TSIndexSignature","StaticBlock")}});l("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}}});l("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(){const G=M.assertNodeType("Identifier");return function(J,X,H){if(!Q2.default("ExportDefaultDeclaration",J))G(H,"id",H.id)}}()});l("ExportAllDeclaration",{builder:["source"],visitor:["source","attributes","assertions"],aliases:["Statement","Declaration","ImportOrExportDeclaration","ExportDeclaration"],fields:{source:{validate:M.assertNodeType("StringLiteral")},exportKind:M.validateOptional(M.assertOneOf("type","value")),attributes:{optional:!0,validate:M.arrayOfType("ImportAttribute")},assertions:{deprecated:!0,optional:!0,validate:M.arrayOfType("ImportAttribute")}}});l("ExportDefaultDeclaration",{visitor:["declaration"],aliases:["Statement","Declaration","ImportOrExportDeclaration","ExportDeclaration"],fields:{declaration:M.validateType("TSDeclareFunction","FunctionDeclaration","ClassDeclaration","Expression"),exportKind:M.validateOptional(M.assertOneOf("value"))}});l("ExportNamedDeclaration",{builder:["declaration","specifiers","source"],visitor:process.env?["declaration","specifiers","source","attributes"]:["declaration","specifiers","source","attributes","assertions"],aliases:["Statement","Declaration","ImportOrExportDeclaration","ExportDeclaration"],fields:{declaration:{optional:!0,validate:process.env.BABEL_TYPES_8_BREAKING?M.chain(M.assertNodeType("Declaration"),Object.assign(function(G,J,X){if(X&&G.specifiers.length)throw new TypeError("Only declaration or specifiers is allowed on ExportNamedDeclaration");if(X&&G.source)throw new TypeError("Cannot export a declaration from a source")},{oneOfNodeTypes:["Declaration"]})):M.assertNodeType("Declaration")},attributes:{optional:!0,validate:M.arrayOfType("ImportAttribute")},assertions:{deprecated:!0,optional:!0,validate:M.arrayOfType("ImportAttribute")},specifiers:{default:[],validate:M.arrayOf(function(){const G=M.assertNodeType("ExportSpecifier","ExportDefaultSpecifier","ExportNamespaceSpecifier"),J=M.assertNodeType("ExportSpecifier");if(!process.env.BABEL_TYPES_8_BREAKING)return G;return Object.assign(function(X,H,Z){(X.source?G:J)(X,H,Z)},{oneOfNodeTypes:["ExportSpecifier","ExportDefaultSpecifier","ExportNamespaceSpecifier"]})}())},source:{validate:M.assertNodeType("StringLiteral"),optional:!0},exportKind:M.validateOptional(M.assertOneOf("type","value"))}});l("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}}});l("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");const G=M.assertNodeType("VariableDeclaration"),J=M.assertNodeType("Identifier","MemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression");return Object.assign(function(X,H,Z){if(Q2.default("VariableDeclaration",Z))G(X,H,Z);else J(X,H,Z)},{oneOfNodeTypes:["VariableDeclaration","Identifier","MemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression"]})}()},right:{validate:M.assertNodeType("Expression")},body:{validate:M.assertNodeType("Statement")},await:{default:!1}}});l("ImportDeclaration",{builder:["specifiers","source"],visitor:["specifiers","source","attributes","assertions"],aliases:["Statement","Declaration","ImportOrExportDeclaration"],fields:{attributes:{optional:!0,validate:M.arrayOfType("ImportAttribute")},assertions:{deprecated:!0,optional:!0,validate:M.arrayOfType("ImportAttribute")},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}}});l("ImportDefaultSpecifier",{visitor:["local"],aliases:["ModuleSpecifier"],fields:{local:{validate:M.assertNodeType("Identifier")}}});l("ImportNamespaceSpecifier",{visitor:["local"],aliases:["ModuleSpecifier"],fields:{local:{validate:M.assertNodeType("Identifier")}}});l("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}}});l("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}}});l("MetaProperty",{visitor:["meta","property"],aliases:["Expression"],fields:{meta:{validate:process.env.BABEL_TYPES_8_BREAKING?M.chain(M.assertNodeType("Identifier"),Object.assign(function(G,J,X){let H;switch(X.name){case"function":H="sent";break;case"new":H="target";break;case"import":H="meta";break}if(!Q2.default("Identifier",G.property,{name:H}))throw new TypeError("Unrecognised MetaProperty")},{oneOfNodeTypes:["Identifier"]})):M.assertNodeType("Identifier")},property:{validate:M.assertNodeType("Identifier")}}});var $G=()=>({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(){const G=M.assertNodeType("Identifier","StringLiteral","NumericLiteral","BigIntLiteral"),J=M.assertNodeType("Expression");return function(X,H,Z){(X.computed?J:G)(X,H,Z)}}(),M.assertNodeType("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","Expression"))}});mQ.classMethodOrPropertyCommon=$G;var RX=()=>Object.assign({},E5(),$G(),{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}});mQ.classMethodOrDeclareMethodCommon=RX;l("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({},RX(),p0(),{body:{validate:M.assertNodeType("BlockStatement")}})});l("ObjectPattern",{visitor:["properties","typeAnnotation","decorators"],builder:["properties"],aliases:["Pattern","PatternLike","LVal"],fields:Object.assign({},O5(),{properties:M.validateArrayOfType("RestElement","ObjectProperty")})});l("SpreadElement",{visitor:["argument"],aliases:["UnaryLike"],deprecatedAlias:"SpreadProperty",fields:{argument:{validate:M.assertNodeType("Expression")}}});l("Super",{aliases:["Expression"]});l("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}}});l("TemplateElement",{builder:["value","tail"],fields:{value:{validate:M.chain(M.assertShape({raw:{validate:M.assertValueType("string")},cooked:{validate:M.assertValueType("string"),optional:!0}}),function G(J){const X=J.value.raw;let H=!1;const Z=()=>{throw new Error("Internal @babel/types error.")},{str:V,firstInvalidLoc:Q}=u_.readStringContents("template",X,0,0,0,{unterminated(){H=!0},strictNumericEscape:Z,invalidEscapeSequence:Z,numericSeparatorInEscapeSequence:Z,unexpectedNumericSeparator:Z,invalidDigit:Z,invalidCodePoint:Z});if(!H)throw new Error("Invalid raw");J.value.cooked=Q?null:V})},tail:{default:!1}}});l("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(G,J,X){if(G.quasis.length!==X.length+1)throw new TypeError(`Number of ${G.type} quasis should be exactly one more than the number of expressions.\nExpected ${X.length+1} quasis but got ${G.quasis.length}`)})}}});l("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(G,J,X){if(X&&!G.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")}}});l("AwaitExpression",{builder:["argument"],visitor:["argument"],aliases:["Expression","Terminatorless"],fields:{argument:{validate:M.assertNodeType("Expression")}}});l("Import",{aliases:["Expression"]});l("BigIntLiteral",{builder:["value"],fields:{value:{validate:M.assertValueType("string")}},aliases:["Expression","Pureish","Literal","Immutable"]});l("ExportNamespaceSpecifier",{visitor:["exported"],aliases:["ModuleSpecifier"],fields:{exported:{validate:M.assertNodeType("Identifier")}}});l("OptionalMemberExpression",{builder:["object","property","computed","optional"],visitor:["object","property"],aliases:["Expression"],fields:{object:{validate:M.assertNodeType("Expression")},property:{validate:function(){const G=M.assertNodeType("Identifier"),J=M.assertNodeType("Expression");return Object.assign(function(H,Z,V){(H.computed?J:G)(H,Z,V)},{oneOfNodeTypes:["Expression","Identifier"]})}()},computed:{default:!1},optional:{validate:!process.env.BABEL_TYPES_8_BREAKING?M.assertValueType("boolean"):M.chain(M.assertValueType("boolean"),M.assertOptionalChainStart())}}});l("OptionalCallExpression",{visitor:["callee","arguments","typeParameters","typeArguments"],builder:["callee","arguments","optional"],aliases:["Expression"],fields:{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}}});l("ClassProperty",{visitor:["decorators","key","typeAnnotation","value"],builder:["key","value","typeAnnotation","decorators","computed","static"],aliases:["Property"],fields:Object.assign({},$G(),{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}})});l("ClassAccessorProperty",{visitor:["decorators","key","typeAnnotation","value"],builder:["key","value","typeAnnotation","decorators","computed","static"],aliases:["Property","Accessor"],fields:Object.assign({},$G(),{key:{validate:M.chain(function(){const G=M.assertNodeType("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","PrivateName"),J=M.assertNodeType("Expression");return function(X,H,Z){(X.computed?J:G)(X,H,Z)}}(),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}})});l("ClassPrivateProperty",{visitor:["decorators","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},definite:{validate:M.assertValueType("boolean"),optional:!0},variance:{validate:M.assertNodeType("Variance"),optional:!0}}});l("ClassPrivateMethod",{builder:["kind","key","params","body","static"],visitor:["decorators","key","typeParameters","params","returnType","body"],aliases:["Function","Scopable","BlockParent","FunctionParent","Method","Private"],fields:Object.assign({},RX(),p0(),{kind:{validate:M.assertOneOf("get","set","method"),default:"method"},key:{validate:M.assertNodeType("PrivateName")},body:{validate:M.assertNodeType("BlockStatement")}})});l("PrivateName",{visitor:["id"],aliases:["Private"],fields:{id:{validate:M.assertNodeType("Identifier")}}});l("StaticBlock",{visitor:["body"],fields:{body:M.validateArrayOfType("Statement")},aliases:["Scopable","BlockParent","FunctionParent"]})});var lQ=S(()=>{var P=p2(),J1=P.defineAliasedType("Flow"),qX=(G)=>{const J=G==="DeclareClass";J1(G,{builder:["id","typeParameters","extends","body"],visitor:["id","typeParameters","extends",...J?["mixins","implements"]:[],"body"],aliases:["FlowDeclaration","Statement","Declaration"],fields:Object.assign({id:P.validateType("Identifier"),typeParameters:P.validateOptionalType("TypeParameterDeclaration"),extends:P.validateOptional(P.arrayOfType("InterfaceExtends"))},J?{mixins:P.validateOptional(P.arrayOfType("InterfaceExtends")),implements:P.validateOptional(P.arrayOfType("ClassImplements"))}:{},{body:P.validateType("ObjectTypeAnnotation")})})};J1("AnyTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});J1("ArrayTypeAnnotation",{visitor:["elementType"],aliases:["FlowType"],fields:{elementType:P.validateType("FlowType")}});J1("BooleanTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});J1("BooleanLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:P.validate(P.assertValueType("boolean"))}});J1("NullLiteralTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});J1("ClassImplements",{visitor:["id","typeParameters"],fields:{id:P.validateType("Identifier"),typeParameters:P.validateOptionalType("TypeParameterInstantiation")}});qX("DeclareClass");J1("DeclareFunction",{visitor:["id"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:P.validateType("Identifier"),predicate:P.validateOptionalType("DeclaredPredicate")}});qX("DeclareInterface");J1("DeclareModule",{builder:["id","body","kind"],visitor:["id","body"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:P.validateType("Identifier","StringLiteral"),body:P.validateType("BlockStatement"),kind:P.validateOptional(P.assertOneOf("CommonJS","ES"))}});J1("DeclareModuleExports",{visitor:["typeAnnotation"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{typeAnnotation:P.validateType("TypeAnnotation")}});J1("DeclareTypeAlias",{visitor:["id","typeParameters","right"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:P.validateType("Identifier"),typeParameters:P.validateOptionalType("TypeParameterDeclaration"),right:P.validateType("FlowType")}});J1("DeclareOpaqueType",{visitor:["id","typeParameters","supertype"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:P.validateType("Identifier"),typeParameters:P.validateOptionalType("TypeParameterDeclaration"),supertype:P.validateOptionalType("FlowType"),impltype:P.validateOptionalType("FlowType")}});J1("DeclareVariable",{visitor:["id"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:P.validateType("Identifier")}});J1("DeclareExportDeclaration",{visitor:["declaration","specifiers","source"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{declaration:P.validateOptionalType("Flow"),specifiers:P.validateOptional(P.arrayOfType("ExportSpecifier","ExportNamespaceSpecifier")),source:P.validateOptionalType("StringLiteral"),default:P.validateOptional(P.assertValueType("boolean"))}});J1("DeclareExportAllDeclaration",{visitor:["source"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{source:P.validateType("StringLiteral"),exportKind:P.validateOptional(P.assertOneOf("type","value"))}});J1("DeclaredPredicate",{visitor:["value"],aliases:["FlowPredicate"],fields:{value:P.validateType("Flow")}});J1("ExistsTypeAnnotation",{aliases:["FlowType"]});J1("FunctionTypeAnnotation",{visitor:["typeParameters","params","rest","returnType"],aliases:["FlowType"],fields:{typeParameters:P.validateOptionalType("TypeParameterDeclaration"),params:P.validateArrayOfType("FunctionTypeParam"),rest:P.validateOptionalType("FunctionTypeParam"),this:P.validateOptionalType("FunctionTypeParam"),returnType:P.validateType("FlowType")}});J1("FunctionTypeParam",{visitor:["name","typeAnnotation"],fields:{name:P.validateOptionalType("Identifier"),typeAnnotation:P.validateType("FlowType"),optional:P.validateOptional(P.assertValueType("boolean"))}});J1("GenericTypeAnnotation",{visitor:["id","typeParameters"],aliases:["FlowType"],fields:{id:P.validateType("Identifier","QualifiedTypeIdentifier"),typeParameters:P.validateOptionalType("TypeParameterInstantiation")}});J1("InferredPredicate",{aliases:["FlowPredicate"]});J1("InterfaceExtends",{visitor:["id","typeParameters"],fields:{id:P.validateType("Identifier","QualifiedTypeIdentifier"),typeParameters:P.validateOptionalType("TypeParameterInstantiation")}});qX("InterfaceDeclaration");J1("InterfaceTypeAnnotation",{visitor:["extends","body"],aliases:["FlowType"],fields:{extends:P.validateOptional(P.arrayOfType("InterfaceExtends")),body:P.validateType("ObjectTypeAnnotation")}});J1("IntersectionTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:P.validate(P.arrayOfType("FlowType"))}});J1("MixedTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});J1("EmptyTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});J1("NullableTypeAnnotation",{visitor:["typeAnnotation"],aliases:["FlowType"],fields:{typeAnnotation:P.validateType("FlowType")}});J1("NumberLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:P.validate(P.assertValueType("number"))}});J1("NumberTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});J1("ObjectTypeAnnotation",{visitor:["properties","indexers","callProperties","internalSlots"],aliases:["FlowType"],builder:["properties","indexers","callProperties","internalSlots","exact"],fields:{properties:P.validate(P.arrayOfType("ObjectTypeProperty","ObjectTypeSpreadProperty")),indexers:{validate:P.arrayOfType("ObjectTypeIndexer"),optional:!0,default:[]},callProperties:{validate:P.arrayOfType("ObjectTypeCallProperty"),optional:!0,default:[]},internalSlots:{validate:P.arrayOfType("ObjectTypeInternalSlot"),optional:!0,default:[]},exact:{validate:P.assertValueType("boolean"),default:!1},inexact:P.validateOptional(P.assertValueType("boolean"))}});J1("ObjectTypeInternalSlot",{visitor:["id","value"],builder:["id","value","optional","static","method"],aliases:["UserWhitespacable"],fields:{id:P.validateType("Identifier"),value:P.validateType("FlowType"),optional:P.validate(P.assertValueType("boolean")),static:P.validate(P.assertValueType("boolean")),method:P.validate(P.assertValueType("boolean"))}});J1("ObjectTypeCallProperty",{visitor:["value"],aliases:["UserWhitespacable"],fields:{value:P.validateType("FlowType"),static:P.validate(P.assertValueType("boolean"))}});J1("ObjectTypeIndexer",{visitor:["variance","id","key","value"],builder:["id","key","value","variance"],aliases:["UserWhitespacable"],fields:{id:P.validateOptionalType("Identifier"),key:P.validateType("FlowType"),value:P.validateType("FlowType"),static:P.validate(P.assertValueType("boolean")),variance:P.validateOptionalType("Variance")}});J1("ObjectTypeProperty",{visitor:["key","value","variance"],aliases:["UserWhitespacable"],fields:{key:P.validateType("Identifier","StringLiteral"),value:P.validateType("FlowType"),kind:P.validate(P.assertOneOf("init","get","set")),static:P.validate(P.assertValueType("boolean")),proto:P.validate(P.assertValueType("boolean")),optional:P.validate(P.assertValueType("boolean")),variance:P.validateOptionalType("Variance"),method:P.validate(P.assertValueType("boolean"))}});J1("ObjectTypeSpreadProperty",{visitor:["argument"],aliases:["UserWhitespacable"],fields:{argument:P.validateType("FlowType")}});J1("OpaqueType",{visitor:["id","typeParameters","supertype","impltype"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:P.validateType("Identifier"),typeParameters:P.validateOptionalType("TypeParameterDeclaration"),supertype:P.validateOptionalType("FlowType"),impltype:P.validateType("FlowType")}});J1("QualifiedTypeIdentifier",{visitor:["qualification","id"],builder:["id","qualification"],fields:{id:P.validateType("Identifier"),qualification:P.validateType("Identifier","QualifiedTypeIdentifier")}});J1("StringLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:P.validate(P.assertValueType("string"))}});J1("StringTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});J1("SymbolTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});J1("ThisTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});J1("TupleTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:P.validate(P.arrayOfType("FlowType"))}});J1("TypeofTypeAnnotation",{visitor:["argument"],aliases:["FlowType"],fields:{argument:P.validateType("FlowType")}});J1("TypeAlias",{visitor:["id","typeParameters","right"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:P.validateType("Identifier"),typeParameters:P.validateOptionalType("TypeParameterDeclaration"),right:P.validateType("FlowType")}});J1("TypeAnnotation",{visitor:["typeAnnotation"],fields:{typeAnnotation:P.validateType("FlowType")}});J1("TypeCastExpression",{visitor:["expression","typeAnnotation"],aliases:["ExpressionWrapper","Expression"],fields:{expression:P.validateType("Expression"),typeAnnotation:P.validateType("TypeAnnotation")}});J1("TypeParameter",{visitor:["bound","default","variance"],fields:{name:P.validate(P.assertValueType("string")),bound:P.validateOptionalType("TypeAnnotation"),default:P.validateOptionalType("FlowType"),variance:P.validateOptionalType("Variance")}});J1("TypeParameterDeclaration",{visitor:["params"],fields:{params:P.validate(P.arrayOfType("TypeParameter"))}});J1("TypeParameterInstantiation",{visitor:["params"],fields:{params:P.validate(P.arrayOfType("FlowType"))}});J1("UnionTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:P.validate(P.arrayOfType("FlowType"))}});J1("Variance",{builder:["kind"],fields:{kind:P.validate(P.assertOneOf("minus","plus"))}});J1("VoidTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});J1("EnumDeclaration",{aliases:["Statement","Declaration"],visitor:["id","body"],fields:{id:P.validateType("Identifier"),body:P.validateType("EnumBooleanBody","EnumNumberBody","EnumStringBody","EnumSymbolBody")}});J1("EnumBooleanBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:P.validate(P.assertValueType("boolean")),members:P.validateArrayOfType("EnumBooleanMember"),hasUnknownMembers:P.validate(P.assertValueType("boolean"))}});J1("EnumNumberBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:P.validate(P.assertValueType("boolean")),members:P.validateArrayOfType("EnumNumberMember"),hasUnknownMembers:P.validate(P.assertValueType("boolean"))}});J1("EnumStringBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:P.validate(P.assertValueType("boolean")),members:P.validateArrayOfType("EnumStringMember","EnumDefaultedMember"),hasUnknownMembers:P.validate(P.assertValueType("boolean"))}});J1("EnumSymbolBody",{aliases:["EnumBody"],visitor:["members"],fields:{members:P.validateArrayOfType("EnumDefaultedMember"),hasUnknownMembers:P.validate(P.assertValueType("boolean"))}});J1("EnumBooleanMember",{aliases:["EnumMember"],visitor:["id"],fields:{id:P.validateType("Identifier"),init:P.validateType("BooleanLiteral")}});J1("EnumNumberMember",{aliases:["EnumMember"],visitor:["id","init"],fields:{id:P.validateType("Identifier"),init:P.validateType("NumericLiteral")}});J1("EnumStringMember",{aliases:["EnumMember"],visitor:["id","init"],fields:{id:P.validateType("Identifier"),init:P.validateType("StringLiteral")}});J1("EnumDefaultedMember",{aliases:["EnumMember"],visitor:["id"],fields:{id:P.validateType("Identifier")}});J1("IndexedAccessType",{visitor:["objectType","indexType"],aliases:["FlowType"],fields:{objectType:P.validateType("FlowType"),indexType:P.validateType("FlowType")}});J1("OptionalIndexedAccessType",{visitor:["objectType","indexType"],aliases:["FlowType"],fields:{objectType:P.validateType("FlowType"),indexType:P.validateType("FlowType"),optional:P.validate(P.assertValueType("boolean"))}})});var cQ=S(()=>{var c1=p2(),Y2=c1.defineAliasedType("JSX");Y2("JSXAttribute",{visitor:["name","value"],aliases:["Immutable"],fields:{name:{validate:c1.assertNodeType("JSXIdentifier","JSXNamespacedName")},value:{optional:!0,validate:c1.assertNodeType("JSXElement","JSXFragment","StringLiteral","JSXExpressionContainer")}}});Y2("JSXClosingElement",{visitor:["name"],aliases:["Immutable"],fields:{name:{validate:c1.assertNodeType("JSXIdentifier","JSXMemberExpression","JSXNamespacedName")}}});Y2("JSXElement",{builder:["openingElement","closingElement","children","selfClosing"],visitor:["openingElement","children","closingElement"],aliases:["Immutable","Expression"],fields:Object.assign({openingElement:{validate:c1.assertNodeType("JSXOpeningElement")},closingElement:{optional:!0,validate:c1.assertNodeType("JSXClosingElement")},children:c1.validateArrayOfType("JSXText","JSXExpressionContainer","JSXSpreadChild","JSXElement","JSXFragment")},{selfClosing:{validate:c1.assertValueType("boolean"),optional:!0}})});Y2("JSXEmptyExpression",{});Y2("JSXExpressionContainer",{visitor:["expression"],aliases:["Immutable"],fields:{expression:{validate:c1.assertNodeType("Expression","JSXEmptyExpression")}}});Y2("JSXSpreadChild",{visitor:["expression"],aliases:["Immutable"],fields:{expression:{validate:c1.assertNodeType("Expression")}}});Y2("JSXIdentifier",{builder:["name"],fields:{name:{validate:c1.assertValueType("string")}}});Y2("JSXMemberExpression",{visitor:["object","property"],fields:{object:{validate:c1.assertNodeType("JSXMemberExpression","JSXIdentifier")},property:{validate:c1.assertNodeType("JSXIdentifier")}}});Y2("JSXNamespacedName",{visitor:["namespace","name"],fields:{namespace:{validate:c1.assertNodeType("JSXIdentifier")},name:{validate:c1.assertNodeType("JSXIdentifier")}}});Y2("JSXOpeningElement",{builder:["name","attributes","selfClosing"],visitor:["name","attributes"],aliases:["Immutable"],fields:{name:{validate:c1.assertNodeType("JSXIdentifier","JSXMemberExpression","JSXNamespacedName")},selfClosing:{default:!1},attributes:c1.validateArrayOfType("JSXAttribute","JSXSpreadAttribute"),typeParameters:{validate:c1.assertNodeType("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0}}});Y2("JSXSpreadAttribute",{visitor:["argument"],fields:{argument:{validate:c1.assertNodeType("Expression")}}});Y2("JSXText",{aliases:["Immutable"],builder:["value"],fields:{value:{validate:c1.assertValueType("string")}}});Y2("JSXFragment",{builder:["openingFragment","closingFragment","children"],visitor:["openingFragment","children","closingFragment"],aliases:["Immutable","Expression"],fields:{openingFragment:{validate:c1.assertNodeType("JSXOpeningFragment")},closingFragment:{validate:c1.assertNodeType("JSXClosingFragment")},children:c1.validateArrayOfType("JSXText","JSXExpressionContainer","JSXSpreadChild","JSXElement","JSXFragment")}});Y2("JSXOpeningFragment",{aliases:["Immutable"]});Y2("JSXClosingFragment",{aliases:["Immutable"]})});var DX=S((aQ)=>{Object.defineProperty(aQ,"__esModule",{value:!0});aQ.PLACEHOLDERS_FLIPPED_ALIAS=aQ.PLACEHOLDERS_ALIAS=aQ.PLACEHOLDERS=void 0;var e_=p2(),t_=aQ.PLACEHOLDERS=["Identifier","StringLiteral","Expression","Statement","Declaration","BlockStatement","ClassBody","Pattern"],jX=aQ.PLACEHOLDERS_ALIAS={Declaration:["Statement"],Pattern:["PatternLike","LVal"]};for(let G of t_){const J=e_.ALIAS_KEYS[G];if(J!=null&&J.length)jX[G]=J}var FX=aQ.PLACEHOLDERS_FLIPPED_ALIAS={};Object.keys(jX).forEach((G)=>{jX[G].forEach((J)=>{if(!hasOwnProperty.call(FX,J))FX[J]=[];FX[J].push(G)})})});var iQ=S(()=>{var RG=p2(),Xg=DX(),IX=RG.defineAliasedType("Miscellaneous");IX("Noop",{visitor:[]});IX("Placeholder",{visitor:[],builder:["expectedNode","name"],fields:{name:{validate:RG.assertNodeType("Identifier")},expectedNode:{validate:RG.assertOneOf(...Xg.PLACEHOLDERS)}}});IX("V8IntrinsicIdentifier",{builder:["name"],fields:{name:{validate:RG.assertValueType("string")}}})});var uQ=S(()=>{var b1=p2();b1.default("ArgumentPlaceholder",{});b1.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:b1.assertNodeType("Expression")},callee:{validate:b1.assertNodeType("Expression")}}});b1.default("ImportAttribute",{visitor:["key","value"],fields:{key:{validate:b1.assertNodeType("Identifier","StringLiteral")},value:{validate:b1.assertNodeType("StringLiteral")}}});b1.default("Decorator",{visitor:["expression"],fields:{expression:{validate:b1.assertNodeType("Expression")}}});b1.default("DoExpression",{visitor:["body"],builder:["body","async"],aliases:["Expression"],fields:{body:{validate:b1.assertNodeType("BlockStatement")},async:{validate:b1.assertValueType("boolean"),default:!1}}});b1.default("ExportDefaultSpecifier",{visitor:["exported"],aliases:["ModuleSpecifier"],fields:{exported:{validate:b1.assertNodeType("Identifier")}}});b1.default("RecordExpression",{visitor:["properties"],aliases:["Expression"],fields:{properties:b1.validateArrayOfType("ObjectProperty","SpreadElement")}});b1.default("TupleExpression",{fields:{elements:{validate:b1.arrayOfType("Expression","SpreadElement"),default:[]}},visitor:["elements"],aliases:["Expression"]});b1.default("DecimalLiteral",{builder:["value"],fields:{value:{validate:b1.assertValueType("string")}},aliases:["Expression","Pureish","Literal","Immutable"]});b1.default("ModuleExpression",{visitor:["body"],fields:{body:{validate:b1.assertNodeType("Program")}},aliases:["Expression"]});b1.default("TopicReference",{aliases:["Expression"]});b1.default("PipelineTopicExpression",{builder:["expression"],visitor:["expression"],fields:{expression:{validate:b1.assertNodeType("Expression")}},aliases:["Expression"]});b1.default("PipelineBareFunction",{builder:["callee"],visitor:["callee"],fields:{callee:{validate:b1.assertNodeType("Expression")}},aliases:["Expression"]});b1.default("PipelinePrimaryTopicReference",{aliases:["Expression"]})});var GY=S(()=>{var g=p2(),dQ=MX(),Hg=N5(),W1=g.defineAliasedType("TypeScript"),q2=g.assertValueType("boolean"),sQ=()=>({returnType:{validate:g.assertNodeType("TSTypeAnnotation","Noop"),optional:!0},typeParameters:{validate:g.assertNodeType("TSTypeParameterDeclaration","Noop"),optional:!0}});W1("TSParameterProperty",{aliases:["LVal"],visitor:["parameter"],fields:{accessibility:{validate:g.assertOneOf("public","private","protected"),optional:!0},readonly:{validate:g.assertValueType("boolean"),optional:!0},parameter:{validate:g.assertNodeType("Identifier","AssignmentPattern")},override:{validate:g.assertValueType("boolean"),optional:!0},decorators:{validate:g.arrayOfType("Decorator"),optional:!0}}});W1("TSDeclareFunction",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","params","returnType"],fields:Object.assign({},dQ.functionDeclarationCommon(),sQ())});W1("TSDeclareMethod",{visitor:["decorators","key","typeParameters","params","returnType"],fields:Object.assign({},dQ.classMethodOrDeclareMethodCommon(),sQ())});W1("TSQualifiedName",{aliases:["TSEntityName"],visitor:["left","right"],fields:{left:g.validateType("TSEntityName"),right:g.validateType("Identifier")}});var MG=()=>({typeParameters:g.validateOptionalType("TSTypeParameterDeclaration"),["parameters"]:g.validateArrayOfType("ArrayPattern","Identifier","ObjectPattern","RestElement"),["typeAnnotation"]:g.validateOptionalType("TSTypeAnnotation")}),pQ={aliases:["TSTypeElement"],visitor:["typeParameters","parameters","typeAnnotation"],fields:MG()};W1("TSCallSignatureDeclaration",pQ);W1("TSConstructSignatureDeclaration",pQ);var nQ=()=>({key:g.validateType("Expression"),computed:{default:!1},optional:g.validateOptional(q2)});W1("TSPropertySignature",{aliases:["TSTypeElement"],visitor:["key","typeAnnotation"],fields:Object.assign({},nQ(),{readonly:g.validateOptional(q2),typeAnnotation:g.validateOptionalType("TSTypeAnnotation"),kind:{validate:g.assertOneOf("get","set")}})});W1("TSMethodSignature",{aliases:["TSTypeElement"],visitor:["key","typeParameters","parameters","typeAnnotation"],fields:Object.assign({},MG(),nQ(),{kind:{validate:g.assertOneOf("method","get","set")}})});W1("TSIndexSignature",{aliases:["TSTypeElement"],visitor:["parameters","typeAnnotation"],fields:{readonly:g.validateOptional(q2),static:g.validateOptional(q2),parameters:g.validateArrayOfType("Identifier"),typeAnnotation:g.validateOptionalType("TSTypeAnnotation")}});var Zg=["TSAnyKeyword","TSBooleanKeyword","TSBigIntKeyword","TSIntrinsicKeyword","TSNeverKeyword","TSNullKeyword","TSNumberKeyword","TSObjectKeyword","TSStringKeyword","TSSymbolKeyword","TSUndefinedKeyword","TSUnknownKeyword","TSVoidKeyword"];for(let G of Zg)W1(G,{aliases:["TSType","TSBaseType"],visitor:[],fields:{}});W1("TSThisType",{aliases:["TSType","TSBaseType"],visitor:[],fields:{}});var oQ={aliases:["TSType"],visitor:["typeParameters","parameters","typeAnnotation"]};W1("TSFunctionType",Object.assign({},oQ,{fields:MG()}));W1("TSConstructorType",Object.assign({},oQ,{fields:Object.assign({},MG(),{abstract:g.validateOptional(q2)})}));W1("TSTypeReference",{aliases:["TSType"],visitor:["typeName","typeParameters"],fields:{typeName:g.validateType("TSEntityName"),typeParameters:g.validateOptionalType("TSTypeParameterInstantiation")}});W1("TSTypePredicate",{aliases:["TSType"],visitor:["parameterName","typeAnnotation"],builder:["parameterName","typeAnnotation","asserts"],fields:{parameterName:g.validateType("Identifier","TSThisType"),typeAnnotation:g.validateOptionalType("TSTypeAnnotation"),asserts:g.validateOptional(q2)}});W1("TSTypeQuery",{aliases:["TSType"],visitor:["exprName","typeParameters"],fields:{exprName:g.validateType("TSEntityName","TSImportType"),typeParameters:g.validateOptionalType("TSTypeParameterInstantiation")}});W1("TSTypeLiteral",{aliases:["TSType"],visitor:["members"],fields:{members:g.validateArrayOfType("TSTypeElement")}});W1("TSArrayType",{aliases:["TSType"],visitor:["elementType"],fields:{elementType:g.validateType("TSType")}});W1("TSTupleType",{aliases:["TSType"],visitor:["elementTypes"],fields:{elementTypes:g.validateArrayOfType("TSType","TSNamedTupleMember")}});W1("TSOptionalType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:g.validateType("TSType")}});W1("TSRestType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:g.validateType("TSType")}});W1("TSNamedTupleMember",{visitor:["label","elementType"],builder:["label","elementType","optional"],fields:{label:g.validateType("Identifier"),optional:{validate:q2,default:!1},elementType:g.validateType("TSType")}});var eQ={aliases:["TSType"],visitor:["types"],fields:{types:g.validateArrayOfType("TSType")}};W1("TSUnionType",eQ);W1("TSIntersectionType",eQ);W1("TSConditionalType",{aliases:["TSType"],visitor:["checkType","extendsType","trueType","falseType"],fields:{checkType:g.validateType("TSType"),extendsType:g.validateType("TSType"),trueType:g.validateType("TSType"),falseType:g.validateType("TSType")}});W1("TSInferType",{aliases:["TSType"],visitor:["typeParameter"],fields:{typeParameter:g.validateType("TSTypeParameter")}});W1("TSParenthesizedType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:g.validateType("TSType")}});W1("TSTypeOperator",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{operator:g.validate(g.assertValueType("string")),typeAnnotation:g.validateType("TSType")}});W1("TSIndexedAccessType",{aliases:["TSType"],visitor:["objectType","indexType"],fields:{objectType:g.validateType("TSType"),indexType:g.validateType("TSType")}});W1("TSMappedType",{aliases:["TSType"],visitor:["typeParameter","nameType","typeAnnotation"],builder:["typeParameter","typeAnnotation","nameType"],fields:Object.assign({},{typeParameter:g.validateType("TSTypeParameter")},{readonly:g.validateOptional(g.assertOneOf(!0,!1,"+","-")),optional:g.validateOptional(g.assertOneOf(!0,!1,"+","-")),typeAnnotation:g.validateOptionalType("TSType"),nameType:g.validateOptionalType("TSType")})});W1("TSLiteralType",{aliases:["TSType","TSBaseType"],visitor:["literal"],fields:{literal:{validate:function(){const G=g.assertNodeType("NumericLiteral","BigIntLiteral"),J=g.assertOneOf("-"),X=g.assertNodeType("NumericLiteral","StringLiteral","BooleanLiteral","BigIntLiteral","TemplateLiteral");function H(Z,V,Q){if(Hg.default("UnaryExpression",Q))J(Q,"operator",Q.operator),G(Q,"argument",Q.argument);else X(Z,V,Q)}return H.oneOfNodeTypes=["NumericLiteral","StringLiteral","BooleanLiteral","BigIntLiteral","TemplateLiteral","UnaryExpression"],H}()}}});var Vg={aliases:["TSType"],visitor:["expression","typeParameters"],fields:{expression:g.validateType("TSEntityName"),typeParameters:g.validateOptionalType("TSTypeParameterInstantiation")}};W1("TSExpressionWithTypeArguments",Vg);W1("TSInterfaceDeclaration",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","extends","body"],fields:{declare:g.validateOptional(q2),id:g.validateType("Identifier"),typeParameters:g.validateOptionalType("TSTypeParameterDeclaration"),extends:g.validateOptional(g.arrayOfType("TSExpressionWithTypeArguments")),body:g.validateType("TSInterfaceBody")}});W1("TSInterfaceBody",{visitor:["body"],fields:{body:g.validateArrayOfType("TSTypeElement")}});W1("TSTypeAliasDeclaration",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","typeAnnotation"],fields:{declare:g.validateOptional(q2),id:g.validateType("Identifier"),typeParameters:g.validateOptionalType("TSTypeParameterDeclaration"),typeAnnotation:g.validateType("TSType")}});W1("TSInstantiationExpression",{aliases:["Expression"],visitor:["expression","typeParameters"],fields:{expression:g.validateType("Expression"),typeParameters:g.validateOptionalType("TSTypeParameterInstantiation")}});var tQ={aliases:["Expression","LVal","PatternLike"],visitor:["expression","typeAnnotation"],fields:{expression:g.validateType("Expression"),typeAnnotation:g.validateType("TSType")}};W1("TSAsExpression",tQ);W1("TSSatisfiesExpression",tQ);W1("TSTypeAssertion",{aliases:["Expression","LVal","PatternLike"],visitor:["typeAnnotation","expression"],fields:{typeAnnotation:g.validateType("TSType"),expression:g.validateType("Expression")}});W1("TSEnumDeclaration",{aliases:["Statement","Declaration"],visitor:["id","members"],fields:{declare:g.validateOptional(q2),const:g.validateOptional(q2),id:g.validateType("Identifier"),members:g.validateArrayOfType("TSEnumMember"),initializer:g.validateOptionalType("Expression")}});W1("TSEnumMember",{visitor:["id","initializer"],fields:{id:g.validateType("Identifier","StringLiteral"),initializer:g.validateOptionalType("Expression")}});W1("TSModuleDeclaration",{aliases:["Statement","Declaration"],visitor:["id","body"],fields:{declare:g.validateOptional(q2),global:g.validateOptional(q2),id:g.validateType("Identifier","StringLiteral"),body:g.validateType("TSModuleBlock","TSModuleDeclaration")}});W1("TSModuleBlock",{aliases:["Scopable","Block","BlockParent","FunctionParent"],visitor:["body"],fields:{body:g.validateArrayOfType("Statement")}});W1("TSImportType",{aliases:["TSType"],visitor:["argument","qualifier","typeParameters"],fields:{argument:g.validateType("StringLiteral"),qualifier:g.validateOptionalType("TSEntityName"),typeParameters:g.validateOptionalType("TSTypeParameterInstantiation"),options:{validate:g.assertNodeType("Expression"),optional:!0}}});W1("TSImportEqualsDeclaration",{aliases:["Statement"],visitor:["id","moduleReference"],fields:{isExport:g.validate(q2),id:g.validateType("Identifier"),moduleReference:g.validateType("TSEntityName","TSExternalModuleReference"),importKind:{validate:g.assertOneOf("type","value"),optional:!0}}});W1("TSExternalModuleReference",{visitor:["expression"],fields:{expression:g.validateType("StringLiteral")}});W1("TSNonNullExpression",{aliases:["Expression","LVal","PatternLike"],visitor:["expression"],fields:{expression:g.validateType("Expression")}});W1("TSExportAssignment",{aliases:["Statement"],visitor:["expression"],fields:{expression:g.validateType("Expression")}});W1("TSNamespaceExportDeclaration",{aliases:["Statement"],visitor:["id"],fields:{id:g.validateType("Identifier")}});W1("TSTypeAnnotation",{visitor:["typeAnnotation"],fields:{typeAnnotation:{validate:g.assertNodeType("TSType")}}});W1("TSTypeParameterInstantiation",{visitor:["params"],fields:{params:g.validateArrayOfType("TSType")}});W1("TSTypeParameterDeclaration",{visitor:["params"],fields:{params:g.validateArrayOfType("TSTypeParameter")}});W1("TSTypeParameter",{builder:["constraint","default","name"],visitor:["constraint","default"],fields:{name:{validate:g.assertValueType("string")},in:{validate:g.assertValueType("boolean"),optional:!0},out:{validate:g.assertValueType("boolean"),optional:!0},const:{validate:g.assertValueType("boolean"),optional:!0},constraint:{validate:g.assertNodeType("TSType"),optional:!0},default:{validate:g.assertNodeType("TSType"),optional:!0}}})});var HY=S((JY)=>{Object.defineProperty(JY,"__esModule",{value:!0});JY.DEPRECATED_ALIASES=void 0;var tN1=JY.DEPRECATED_ALIASES={ModuleDeclaration:"ImportOrExportDeclaration"}});var N2=S((f2)=>{Object.defineProperty(f2,"__esModule",{value:!0});Object.defineProperty(f2,"ALIAS_KEYS",{enumerable:!0,get:function(){return G2.ALIAS_KEYS}});Object.defineProperty(f2,"BUILDER_KEYS",{enumerable:!0,get:function(){return G2.BUILDER_KEYS}});Object.defineProperty(f2,"DEPRECATED_ALIASES",{enumerable:!0,get:function(){return AX.DEPRECATED_ALIASES}});Object.defineProperty(f2,"DEPRECATED_KEYS",{enumerable:!0,get:function(){return G2.DEPRECATED_KEYS}});Object.defineProperty(f2,"FLIPPED_ALIAS_KEYS",{enumerable:!0,get:function(){return G2.FLIPPED_ALIAS_KEYS}});Object.defineProperty(f2,"NODE_FIELDS",{enumerable:!0,get:function(){return G2.NODE_FIELDS}});Object.defineProperty(f2,"NODE_PARENT_VALIDATIONS",{enumerable:!0,get:function(){return G2.NODE_PARENT_VALIDATIONS}});Object.defineProperty(f2,"PLACEHOLDERS",{enumerable:!0,get:function(){return D9.PLACEHOLDERS}});Object.defineProperty(f2,"PLACEHOLDERS_ALIAS",{enumerable:!0,get:function(){return D9.PLACEHOLDERS_ALIAS}});Object.defineProperty(f2,"PLACEHOLDERS_FLIPPED_ALIAS",{enumerable:!0,get:function(){return D9.PLACEHOLDERS_FLIPPED_ALIAS}});f2.TYPES=void 0;Object.defineProperty(f2,"VISITOR_KEYS",{enumerable:!0,get:function(){return G2.VISITOR_KEYS}});var L0=ZQ();MX();lQ();cQ();iQ();uQ();GY();var G2=p2(),D9=DX(),AX=HY();Object.keys(AX.DEPRECATED_ALIASES).forEach((G)=>{G2.FLIPPED_ALIAS_KEYS[G]=G2.FLIPPED_ALIAS_KEYS[AX.DEPRECATED_ALIASES[G]]});L0(G2.VISITOR_KEYS);L0(G2.ALIAS_KEYS);L0(G2.FLIPPED_ALIAS_KEYS);L0(G2.NODE_FIELDS);L0(G2.BUILDER_KEYS);L0(G2.DEPRECATED_KEYS);L0(D9.PLACEHOLDERS_ALIAS);L0(D9.PLACEHOLDERS_FLIPPED_ALIAS);var Jk1=f2.TYPES=[].concat(Object.keys(G2.VISITOR_KEYS),Object.keys(G2.FLIPPED_ALIAS_KEYS),Object.keys(G2.DEPRECATED_KEYS))});var BG=S((YY)=>{function Qg(G,J,X){if(!G)return;const H=I9.NODE_FIELDS[G.type];if(!H)return;const Z=H[J];VY(G,J,X,Z),QY(G,J,X)}function Yg(G,J,X,H,Z){if(!(G!=null&&G.validate))return;if(G.optional&&H==null)return;if(G.validate(J,X,H),Z){var V;const Q=H.type;if(Q==null)return;(V=I9.NODE_PARENT_VALIDATIONS[Q])==null||V.call(I9.NODE_PARENT_VALIDATIONS,J,X,H)}}function VY(G,J,X,H){if(!(H!=null&&H.validate))return;if(H.optional&&X==null)return;H.validate(G,J,X)}function QY(G,J,X){var H;const Z=X==null?void 0:X.type;if(Z==null)return;(H=I9.NODE_PARENT_VALIDATIONS[Z])==null||H.call(I9.NODE_PARENT_VALIDATIONS,G,J,X)}Object.defineProperty(YY,"__esModule",{value:!0});YY.default=Qg;YY.validateChild=QY;YY.validateField=VY;YY.validateInternal=Yg;var I9=N2()});var W2=S((BY)=>{function Rg(G=[]){const J={type:"ArrayExpression",elements:G},X=C.ArrayExpression;return K(X.elements,J,"elements",G,1),J}function Mg(G,J,X){const H={type:"AssignmentExpression",operator:G,left:J,right:X},Z=C.AssignmentExpression;return K(Z.operator,H,"operator",G),K(Z.left,H,"left",J,1),K(Z.right,H,"right",X,1),H}function qg(G,J,X){const H={type:"BinaryExpression",operator:G,left:J,right:X},Z=C.BinaryExpression;return K(Z.operator,H,"operator",G),K(Z.left,H,"left",J,1),K(Z.right,H,"right",X,1),H}function Fg(G){const J={type:"InterpreterDirective",value:G},X=C.InterpreterDirective;return K(X.value,J,"value",G),J}function jg(G){const J={type:"Directive",value:G},X=C.Directive;return K(X.value,J,"value",G,1),J}function Dg(G){const J={type:"DirectiveLiteral",value:G},X=C.DirectiveLiteral;return K(X.value,J,"value",G),J}function Ig(G,J=[]){const X={type:"BlockStatement",body:G,directives:J},H=C.BlockStatement;return K(H.body,X,"body",G,1),K(H.directives,X,"directives",J,1),X}function Ag(G=null){const J={type:"BreakStatement",label:G},X=C.BreakStatement;return K(X.label,J,"label",G,1),J}function Cg(G,J){const X={type:"CallExpression",callee:G,arguments:J},H=C.CallExpression;return K(H.callee,X,"callee",G,1),K(H.arguments,X,"arguments",J,1),X}function fg(G=null,J){const X={type:"CatchClause",param:G,body:J},H=C.CatchClause;return K(H.param,X,"param",G,1),K(H.body,X,"body",J,1),X}function Sg(G,J,X){const H={type:"ConditionalExpression",test:G,consequent:J,alternate:X},Z=C.ConditionalExpression;return K(Z.test,H,"test",G,1),K(Z.consequent,H,"consequent",J,1),K(Z.alternate,H,"alternate",X,1),H}function Pg(G=null){const J={type:"ContinueStatement",label:G},X=C.ContinueStatement;return K(X.label,J,"label",G,1),J}function Lg(){return{type:"DebuggerStatement"}}function Tg(G,J){const X={type:"DoWhileStatement",test:G,body:J},H=C.DoWhileStatement;return K(H.test,X,"test",G,1),K(H.body,X,"body",J,1),X}function wg(){return{type:"EmptyStatement"}}function Ng(G){const J={type:"ExpressionStatement",expression:G},X=C.ExpressionStatement;return K(X.expression,J,"expression",G,1),J}function kg(G,J=null,X=null){const H={type:"File",program:G,comments:J,tokens:X},Z=C.File;return K(Z.program,H,"program",G,1),K(Z.comments,H,"comments",J,1),K(Z.tokens,H,"tokens",X),H}function Eg(G,J,X){const H={type:"ForInStatement",left:G,right:J,body:X},Z=C.ForInStatement;return K(Z.left,H,"left",G,1),K(Z.right,H,"right",J,1),K(Z.body,H,"body",X,1),H}function Og(G=null,J=null,X=null,H){const Z={type:"ForStatement",init:G,test:J,update:X,body:H},V=C.ForStatement;return K(V.init,Z,"init",G,1),K(V.test,Z,"test",J,1),K(V.update,Z,"update",X,1),K(V.body,Z,"body",H,1),Z}function vg(G=null,J,X,H=!1,Z=!1){const V={type:"FunctionDeclaration",id:G,params:J,body:X,generator:H,async:Z},Q=C.FunctionDeclaration;return K(Q.id,V,"id",G,1),K(Q.params,V,"params",J,1),K(Q.body,V,"body",X,1),K(Q.generator,V,"generator",H),K(Q.async,V,"async",Z),V}function _g(G=null,J,X,H=!1,Z=!1){const V={type:"FunctionExpression",id:G,params:J,body:X,generator:H,async:Z},Q=C.FunctionExpression;return K(Q.id,V,"id",G,1),K(Q.params,V,"params",J,1),K(Q.body,V,"body",X,1),K(Q.generator,V,"generator",H),K(Q.async,V,"async",Z),V}function gg(G){const J={type:"Identifier",name:G},X=C.Identifier;return K(X.name,J,"name",G),J}function bg(G,J,X=null){const H={type:"IfStatement",test:G,consequent:J,alternate:X},Z=C.IfStatement;return K(Z.test,H,"test",G,1),K(Z.consequent,H,"consequent",J,1),K(Z.alternate,H,"alternate",X,1),H}function hg(G,J){const X={type:"LabeledStatement",label:G,body:J},H=C.LabeledStatement;return K(H.label,X,"label",G,1),K(H.body,X,"body",J,1),X}function yg(G){const J={type:"StringLiteral",value:G},X=C.StringLiteral;return K(X.value,J,"value",G),J}function WY(G){const J={type:"NumericLiteral",value:G},X=C.NumericLiteral;return K(X.value,J,"value",G),J}function mg(){return{type:"NullLiteral"}}function xg(G){const J={type:"BooleanLiteral",value:G},X=C.BooleanLiteral;return K(X.value,J,"value",G),J}function zY(G,J=""){const X={type:"RegExpLiteral",pattern:G,flags:J},H=C.RegExpLiteral;return K(H.pattern,X,"pattern",G),K(H.flags,X,"flags",J),X}function lg(G,J,X){const H={type:"LogicalExpression",operator:G,left:J,right:X},Z=C.LogicalExpression;return K(Z.operator,H,"operator",G),K(Z.left,H,"left",J,1),K(Z.right,H,"right",X,1),H}function cg(G,J,X=!1,H=null){const Z={type:"MemberExpression",object:G,property:J,computed:X,optional:H},V=C.MemberExpression;return K(V.object,Z,"object",G,1),K(V.property,Z,"property",J,1),K(V.computed,Z,"computed",X),K(V.optional,Z,"optional",H),Z}function ag(G,J){const X={type:"NewExpression",callee:G,arguments:J},H=C.NewExpression;return K(H.callee,X,"callee",G,1),K(H.arguments,X,"arguments",J,1),X}function rg(G,J=[],X="script",H=null){const Z={type:"Program",body:G,directives:J,sourceType:X,interpreter:H},V=C.Program;return K(V.body,Z,"body",G,1),K(V.directives,Z,"directives",J,1),K(V.sourceType,Z,"sourceType",X),K(V.interpreter,Z,"interpreter",H,1),Z}function ig(G){const J={type:"ObjectExpression",properties:G},X=C.ObjectExpression;return K(X.properties,J,"properties",G,1),J}function ug(G="method",J,X,H,Z=!1,V=!1,Q=!1){const Y={type:"ObjectMethod",kind:G,key:J,params:X,body:H,computed:Z,generator:V,async:Q},W=C.ObjectMethod;return K(W.kind,Y,"kind",G),K(W.key,Y,"key",J,1),K(W.params,Y,"params",X,1),K(W.body,Y,"body",H,1),K(W.computed,Y,"computed",Z),K(W.generator,Y,"generator",V),K(W.async,Y,"async",Q),Y}function dg(G,J,X=!1,H=!1,Z=null){const V={type:"ObjectProperty",key:G,value:J,computed:X,shorthand:H,decorators:Z},Q=C.ObjectProperty;return K(Q.key,V,"key",G,1),K(Q.value,V,"value",J,1),K(Q.computed,V,"computed",X),K(Q.shorthand,V,"shorthand",H),K(Q.decorators,V,"decorators",Z,1),V}function UY(G){const J={type:"RestElement",argument:G},X=C.RestElement;return K(X.argument,J,"argument",G,1),J}function sg(G=null){const J={type:"ReturnStatement",argument:G},X=C.ReturnStatement;return K(X.argument,J,"argument",G,1),J}function pg(G){const J={type:"SequenceExpression",expressions:G},X=C.SequenceExpression;return K(X.expressions,J,"expressions",G,1),J}function ng(G){const J={type:"ParenthesizedExpression",expression:G},X=C.ParenthesizedExpression;return K(X.expression,J,"expression",G,1),J}function og(G=null,J){const X={type:"SwitchCase",test:G,consequent:J},H=C.SwitchCase;return K(H.test,X,"test",G,1),K(H.consequent,X,"consequent",J,1),X}function eg(G,J){const X={type:"SwitchStatement",discriminant:G,cases:J},H=C.SwitchStatement;return K(H.discriminant,X,"discriminant",G,1),K(H.cases,X,"cases",J,1),X}function tg(){return{type:"ThisExpression"}}function Gb(G){const J={type:"ThrowStatement",argument:G},X=C.ThrowStatement;return K(X.argument,J,"argument",G,1),J}function Jb(G,J=null,X=null){const H={type:"TryStatement",block:G,handler:J,finalizer:X},Z=C.TryStatement;return K(Z.block,H,"block",G,1),K(Z.handler,H,"handler",J,1),K(Z.finalizer,H,"finalizer",X,1),H}function Xb(G,J,X=!0){const H={type:"UnaryExpression",operator:G,argument:J,prefix:X},Z=C.UnaryExpression;return K(Z.operator,H,"operator",G),K(Z.argument,H,"argument",J,1),K(Z.prefix,H,"prefix",X),H}function Hb(G,J,X=!1){const H={type:"UpdateExpression",operator:G,argument:J,prefix:X},Z=C.UpdateExpression;return K(Z.operator,H,"operator",G),K(Z.argument,H,"argument",J,1),K(Z.prefix,H,"prefix",X),H}function Zb(G,J){const X={type:"VariableDeclaration",kind:G,declarations:J},H=C.VariableDeclaration;return K(H.kind,X,"kind",G),K(H.declarations,X,"declarations",J,1),X}function Vb(G,J=null){const X={type:"VariableDeclarator",id:G,init:J},H=C.VariableDeclarator;return K(H.id,X,"id",G,1),K(H.init,X,"init",J,1),X}function Qb(G,J){const X={type:"WhileStatement",test:G,body:J},H=C.WhileStatement;return K(H.test,X,"test",G,1),K(H.body,X,"body",J,1),X}function Yb(G,J){const X={type:"WithStatement",object:G,body:J},H=C.WithStatement;return K(H.object,X,"object",G,1),K(H.body,X,"body",J,1),X}function Wb(G,J){const X={type:"AssignmentPattern",left:G,right:J},H=C.AssignmentPattern;return K(H.left,X,"left",G,1),K(H.right,X,"right",J,1),X}function zb(G){const J={type:"ArrayPattern",elements:G},X=C.ArrayPattern;return K(X.elements,J,"elements",G,1),J}function Ub(G,J,X=!1){const H={type:"ArrowFunctionExpression",params:G,body:J,async:X,expression:null},Z=C.ArrowFunctionExpression;return K(Z.params,H,"params",G,1),K(Z.body,H,"body",J,1),K(Z.async,H,"async",X),H}function Kb(G){const J={type:"ClassBody",body:G},X=C.ClassBody;return K(X.body,J,"body",G,1),J}function Bb(G=null,J=null,X,H=null){const Z={type:"ClassExpression",id:G,superClass:J,body:X,decorators:H},V=C.ClassExpression;return K(V.id,Z,"id",G,1),K(V.superClass,Z,"superClass",J,1),K(V.body,Z,"body",X,1),K(V.decorators,Z,"decorators",H,1),Z}function $b(G=null,J=null,X,H=null){const Z={type:"ClassDeclaration",id:G,superClass:J,body:X,decorators:H},V=C.ClassDeclaration;return K(V.id,Z,"id",G,1),K(V.superClass,Z,"superClass",J,1),K(V.body,Z,"body",X,1),K(V.decorators,Z,"decorators",H,1),Z}function Rb(G){const J={type:"ExportAllDeclaration",source:G},X=C.ExportAllDeclaration;return K(X.source,J,"source",G,1),J}function Mb(G){const J={type:"ExportDefaultDeclaration",declaration:G},X=C.ExportDefaultDeclaration;return K(X.declaration,J,"declaration",G,1),J}function qb(G=null,J=[],X=null){const H={type:"ExportNamedDeclaration",declaration:G,specifiers:J,source:X},Z=C.ExportNamedDeclaration;return K(Z.declaration,H,"declaration",G,1),K(Z.specifiers,H,"specifiers",J,1),K(Z.source,H,"source",X,1),H}function Fb(G,J){const X={type:"ExportSpecifier",local:G,exported:J},H=C.ExportSpecifier;return K(H.local,X,"local",G,1),K(H.exported,X,"exported",J,1),X}function jb(G,J,X,H=!1){const Z={type:"ForOfStatement",left:G,right:J,body:X,await:H},V=C.ForOfStatement;return K(V.left,Z,"left",G,1),K(V.right,Z,"right",J,1),K(V.body,Z,"body",X,1),K(V.await,Z,"await",H),Z}function Db(G,J){const X={type:"ImportDeclaration",specifiers:G,source:J},H=C.ImportDeclaration;return K(H.specifiers,X,"specifiers",G,1),K(H.source,X,"source",J,1),X}function Ib(G){const J={type:"ImportDefaultSpecifier",local:G},X=C.ImportDefaultSpecifier;return K(X.local,J,"local",G,1),J}function Ab(G){const J={type:"ImportNamespaceSpecifier",local:G},X=C.ImportNamespaceSpecifier;return K(X.local,J,"local",G,1),J}function Cb(G,J){const X={type:"ImportSpecifier",local:G,imported:J},H=C.ImportSpecifier;return K(H.local,X,"local",G,1),K(H.imported,X,"imported",J,1),X}function fb(G,J=null){const X={type:"ImportExpression",source:G,options:J},H=C.ImportExpression;return K(H.source,X,"source",G,1),K(H.options,X,"options",J,1),X}function Sb(G,J){const X={type:"MetaProperty",meta:G,property:J},H=C.MetaProperty;return K(H.meta,X,"meta",G,1),K(H.property,X,"property",J,1),X}function Pb(G="method",J,X,H,Z=!1,V=!1,Q=!1,Y=!1){const W={type:"ClassMethod",kind:G,key:J,params:X,body:H,computed:Z,static:V,generator:Q,async:Y},z=C.ClassMethod;return K(z.kind,W,"kind",G),K(z.key,W,"key",J,1),K(z.params,W,"params",X,1),K(z.body,W,"body",H,1),K(z.computed,W,"computed",Z),K(z.static,W,"static",V),K(z.generator,W,"generator",Q),K(z.async,W,"async",Y),W}function Lb(G){const J={type:"ObjectPattern",properties:G},X=C.ObjectPattern;return K(X.properties,J,"properties",G,1),J}function KY(G){const J={type:"SpreadElement",argument:G},X=C.SpreadElement;return K(X.argument,J,"argument",G,1),J}function Tb(){return{type:"Super"}}function wb(G,J){const X={type:"TaggedTemplateExpression",tag:G,quasi:J},H=C.TaggedTemplateExpression;return K(H.tag,X,"tag",G,1),K(H.quasi,X,"quasi",J,1),X}function Nb(G,J=!1){const X={type:"TemplateElement",value:G,tail:J},H=C.TemplateElement;return K(H.value,X,"value",G),K(H.tail,X,"tail",J),X}function kb(G,J){const X={type:"TemplateLiteral",quasis:G,expressions:J},H=C.TemplateLiteral;return K(H.quasis,X,"quasis",G,1),K(H.expressions,X,"expressions",J,1),X}function Eb(G=null,J=!1){const X={type:"YieldExpression",argument:G,delegate:J},H=C.YieldExpression;return K(H.argument,X,"argument",G,1),K(H.delegate,X,"delegate",J),X}function Ob(G){const J={type:"AwaitExpression",argument:G},X=C.AwaitExpression;return K(X.argument,J,"argument",G,1),J}function vb(){return{type:"Import"}}function _b(G){const J={type:"BigIntLiteral",value:G},X=C.BigIntLiteral;return K(X.value,J,"value",G),J}function gb(G){const J={type:"ExportNamespaceSpecifier",exported:G},X=C.ExportNamespaceSpecifier;return K(X.exported,J,"exported",G,1),J}function bb(G,J,X=!1,H){const Z={type:"OptionalMemberExpression",object:G,property:J,computed:X,optional:H},V=C.OptionalMemberExpression;return K(V.object,Z,"object",G,1),K(V.property,Z,"property",J,1),K(V.computed,Z,"computed",X),K(V.optional,Z,"optional",H),Z}function hb(G,J,X){const H={type:"OptionalCallExpression",callee:G,arguments:J,optional:X},Z=C.OptionalCallExpression;return K(Z.callee,H,"callee",G,1),K(Z.arguments,H,"arguments",J,1),K(Z.optional,H,"optional",X),H}function yb(G,J=null,X=null,H=null,Z=!1,V=!1){const Q={type:"ClassProperty",key:G,value:J,typeAnnotation:X,decorators:H,computed:Z,static:V},Y=C.ClassProperty;return K(Y.key,Q,"key",G,1),K(Y.value,Q,"value",J,1),K(Y.typeAnnotation,Q,"typeAnnotation",X,1),K(Y.decorators,Q,"decorators",H,1),K(Y.computed,Q,"computed",Z),K(Y.static,Q,"static",V),Q}function mb(G,J=null,X=null,H=null,Z=!1,V=!1){const Q={type:"ClassAccessorProperty",key:G,value:J,typeAnnotation:X,decorators:H,computed:Z,static:V},Y=C.ClassAccessorProperty;return K(Y.key,Q,"key",G,1),K(Y.value,Q,"value",J,1),K(Y.typeAnnotation,Q,"typeAnnotation",X,1),K(Y.decorators,Q,"decorators",H,1),K(Y.computed,Q,"computed",Z),K(Y.static,Q,"static",V),Q}function xb(G,J=null,X=null,H=!1){const Z={type:"ClassPrivateProperty",key:G,value:J,decorators:X,static:H},V=C.ClassPrivateProperty;return K(V.key,Z,"key",G,1),K(V.value,Z,"value",J,1),K(V.decorators,Z,"decorators",X,1),K(V.static,Z,"static",H),Z}function lb(G="method",J,X,H,Z=!1){const V={type:"ClassPrivateMethod",kind:G,key:J,params:X,body:H,static:Z},Q=C.ClassPrivateMethod;return K(Q.kind,V,"kind",G),K(Q.key,V,"key",J,1),K(Q.params,V,"params",X,1),K(Q.body,V,"body",H,1),K(Q.static,V,"static",Z),V}function cb(G){const J={type:"PrivateName",id:G},X=C.PrivateName;return K(X.id,J,"id",G,1),J}function ab(G){const J={type:"StaticBlock",body:G},X=C.StaticBlock;return K(X.body,J,"body",G,1),J}function rb(){return{type:"AnyTypeAnnotation"}}function ib(G){const J={type:"ArrayTypeAnnotation",elementType:G},X=C.ArrayTypeAnnotation;return K(X.elementType,J,"elementType",G,1),J}function ub(){return{type:"BooleanTypeAnnotation"}}function db(G){const J={type:"BooleanLiteralTypeAnnotation",value:G},X=C.BooleanLiteralTypeAnnotation;return K(X.value,J,"value",G),J}function sb(){return{type:"NullLiteralTypeAnnotation"}}function pb(G,J=null){const X={type:"ClassImplements",id:G,typeParameters:J},H=C.ClassImplements;return K(H.id,X,"id",G,1),K(H.typeParameters,X,"typeParameters",J,1),X}function nb(G,J=null,X=null,H){const Z={type:"DeclareClass",id:G,typeParameters:J,extends:X,body:H},V=C.DeclareClass;return K(V.id,Z,"id",G,1),K(V.typeParameters,Z,"typeParameters",J,1),K(V.extends,Z,"extends",X,1),K(V.body,Z,"body",H,1),Z}function ob(G){const J={type:"DeclareFunction",id:G},X=C.DeclareFunction;return K(X.id,J,"id",G,1),J}function eb(G,J=null,X=null,H){const Z={type:"DeclareInterface",id:G,typeParameters:J,extends:X,body:H},V=C.DeclareInterface;return K(V.id,Z,"id",G,1),K(V.typeParameters,Z,"typeParameters",J,1),K(V.extends,Z,"extends",X,1),K(V.body,Z,"body",H,1),Z}function tb(G,J,X=null){const H={type:"DeclareModule",id:G,body:J,kind:X},Z=C.DeclareModule;return K(Z.id,H,"id",G,1),K(Z.body,H,"body",J,1),K(Z.kind,H,"kind",X),H}function Gh(G){const J={type:"DeclareModuleExports",typeAnnotation:G},X=C.DeclareModuleExports;return K(X.typeAnnotation,J,"typeAnnotation",G,1),J}function Jh(G,J=null,X){const H={type:"DeclareTypeAlias",id:G,typeParameters:J,right:X},Z=C.DeclareTypeAlias;return K(Z.id,H,"id",G,1),K(Z.typeParameters,H,"typeParameters",J,1),K(Z.right,H,"right",X,1),H}function Xh(G,J=null,X=null){const H={type:"DeclareOpaqueType",id:G,typeParameters:J,supertype:X},Z=C.DeclareOpaqueType;return K(Z.id,H,"id",G,1),K(Z.typeParameters,H,"typeParameters",J,1),K(Z.supertype,H,"supertype",X,1),H}function Hh(G){const J={type:"DeclareVariable",id:G},X=C.DeclareVariable;return K(X.id,J,"id",G,1),J}function Zh(G=null,J=null,X=null){const H={type:"DeclareExportDeclaration",declaration:G,specifiers:J,source:X},Z=C.DeclareExportDeclaration;return K(Z.declaration,H,"declaration",G,1),K(Z.specifiers,H,"specifiers",J,1),K(Z.source,H,"source",X,1),H}function Vh(G){const J={type:"DeclareExportAllDeclaration",source:G},X=C.DeclareExportAllDeclaration;return K(X.source,J,"source",G,1),J}function Qh(G){const J={type:"DeclaredPredicate",value:G},X=C.DeclaredPredicate;return K(X.value,J,"value",G,1),J}function Yh(){return{type:"ExistsTypeAnnotation"}}function Wh(G=null,J,X=null,H){const Z={type:"FunctionTypeAnnotation",typeParameters:G,params:J,rest:X,returnType:H},V=C.FunctionTypeAnnotation;return K(V.typeParameters,Z,"typeParameters",G,1),K(V.params,Z,"params",J,1),K(V.rest,Z,"rest",X,1),K(V.returnType,Z,"returnType",H,1),Z}function zh(G=null,J){const X={type:"FunctionTypeParam",name:G,typeAnnotation:J},H=C.FunctionTypeParam;return K(H.name,X,"name",G,1),K(H.typeAnnotation,X,"typeAnnotation",J,1),X}function Uh(G,J=null){const X={type:"GenericTypeAnnotation",id:G,typeParameters:J},H=C.GenericTypeAnnotation;return K(H.id,X,"id",G,1),K(H.typeParameters,X,"typeParameters",J,1),X}function Kh(){return{type:"InferredPredicate"}}function Bh(G,J=null){const X={type:"InterfaceExtends",id:G,typeParameters:J},H=C.InterfaceExtends;return K(H.id,X,"id",G,1),K(H.typeParameters,X,"typeParameters",J,1),X}function $h(G,J=null,X=null,H){const Z={type:"InterfaceDeclaration",id:G,typeParameters:J,extends:X,body:H},V=C.InterfaceDeclaration;return K(V.id,Z,"id",G,1),K(V.typeParameters,Z,"typeParameters",J,1),K(V.extends,Z,"extends",X,1),K(V.body,Z,"body",H,1),Z}function Rh(G=null,J){const X={type:"InterfaceTypeAnnotation",extends:G,body:J},H=C.InterfaceTypeAnnotation;return K(H.extends,X,"extends",G,1),K(H.body,X,"body",J,1),X}function Mh(G){const J={type:"IntersectionTypeAnnotation",types:G},X=C.IntersectionTypeAnnotation;return K(X.types,J,"types",G,1),J}function qh(){return{type:"MixedTypeAnnotation"}}function Fh(){return{type:"EmptyTypeAnnotation"}}function jh(G){const J={type:"NullableTypeAnnotation",typeAnnotation:G},X=C.NullableTypeAnnotation;return K(X.typeAnnotation,J,"typeAnnotation",G,1),J}function Dh(G){const J={type:"NumberLiteralTypeAnnotation",value:G},X=C.NumberLiteralTypeAnnotation;return K(X.value,J,"value",G),J}function Ih(){return{type:"NumberTypeAnnotation"}}function Ah(G,J=[],X=[],H=[],Z=!1){const V={type:"ObjectTypeAnnotation",properties:G,indexers:J,callProperties:X,internalSlots:H,exact:Z},Q=C.ObjectTypeAnnotation;return K(Q.properties,V,"properties",G,1),K(Q.indexers,V,"indexers",J,1),K(Q.callProperties,V,"callProperties",X,1),K(Q.internalSlots,V,"internalSlots",H,1),K(Q.exact,V,"exact",Z),V}function Ch(G,J,X,H,Z){const V={type:"ObjectTypeInternalSlot",id:G,value:J,optional:X,static:H,method:Z},Q=C.ObjectTypeInternalSlot;return K(Q.id,V,"id",G,1),K(Q.value,V,"value",J,1),K(Q.optional,V,"optional",X),K(Q.static,V,"static",H),K(Q.method,V,"method",Z),V}function fh(G){const J={type:"ObjectTypeCallProperty",value:G,static:null},X=C.ObjectTypeCallProperty;return K(X.value,J,"value",G,1),J}function Sh(G=null,J,X,H=null){const Z={type:"ObjectTypeIndexer",id:G,key:J,value:X,variance:H,static:null},V=C.ObjectTypeIndexer;return K(V.id,Z,"id",G,1),K(V.key,Z,"key",J,1),K(V.value,Z,"value",X,1),K(V.variance,Z,"variance",H,1),Z}function Ph(G,J,X=null){const H={type:"ObjectTypeProperty",key:G,value:J,variance:X,kind:null,method:null,optional:null,proto:null,static:null},Z=C.ObjectTypeProperty;return K(Z.key,H,"key",G,1),K(Z.value,H,"value",J,1),K(Z.variance,H,"variance",X,1),H}function Lh(G){const J={type:"ObjectTypeSpreadProperty",argument:G},X=C.ObjectTypeSpreadProperty;return K(X.argument,J,"argument",G,1),J}function Th(G,J=null,X=null,H){const Z={type:"OpaqueType",id:G,typeParameters:J,supertype:X,impltype:H},V=C.OpaqueType;return K(V.id,Z,"id",G,1),K(V.typeParameters,Z,"typeParameters",J,1),K(V.supertype,Z,"supertype",X,1),K(V.impltype,Z,"impltype",H,1),Z}function wh(G,J){const X={type:"QualifiedTypeIdentifier",id:G,qualification:J},H=C.QualifiedTypeIdentifier;return K(H.id,X,"id",G,1),K(H.qualification,X,"qualification",J,1),X}function Nh(G){const J={type:"StringLiteralTypeAnnotation",value:G},X=C.StringLiteralTypeAnnotation;return K(X.value,J,"value",G),J}function kh(){return{type:"StringTypeAnnotation"}}function Eh(){return{type:"SymbolTypeAnnotation"}}function Oh(){return{type:"ThisTypeAnnotation"}}function vh(G){const J={type:"TupleTypeAnnotation",types:G},X=C.TupleTypeAnnotation;return K(X.types,J,"types",G,1),J}function _h(G){const J={type:"TypeofTypeAnnotation",argument:G},X=C.TypeofTypeAnnotation;return K(X.argument,J,"argument",G,1),J}function gh(G,J=null,X){const H={type:"TypeAlias",id:G,typeParameters:J,right:X},Z=C.TypeAlias;return K(Z.id,H,"id",G,1),K(Z.typeParameters,H,"typeParameters",J,1),K(Z.right,H,"right",X,1),H}function bh(G){const J={type:"TypeAnnotation",typeAnnotation:G},X=C.TypeAnnotation;return K(X.typeAnnotation,J,"typeAnnotation",G,1),J}function hh(G,J){const X={type:"TypeCastExpression",expression:G,typeAnnotation:J},H=C.TypeCastExpression;return K(H.expression,X,"expression",G,1),K(H.typeAnnotation,X,"typeAnnotation",J,1),X}function yh(G=null,J=null,X=null){const H={type:"TypeParameter",bound:G,default:J,variance:X,name:null},Z=C.TypeParameter;return K(Z.bound,H,"bound",G,1),K(Z.default,H,"default",J,1),K(Z.variance,H,"variance",X,1),H}function mh(G){const J={type:"TypeParameterDeclaration",params:G},X=C.TypeParameterDeclaration;return K(X.params,J,"params",G,1),J}function xh(G){const J={type:"TypeParameterInstantiation",params:G},X=C.TypeParameterInstantiation;return K(X.params,J,"params",G,1),J}function lh(G){const J={type:"UnionTypeAnnotation",types:G},X=C.UnionTypeAnnotation;return K(X.types,J,"types",G,1),J}function ch(G){const J={type:"Variance",kind:G},X=C.Variance;return K(X.kind,J,"kind",G),J}function ah(){return{type:"VoidTypeAnnotation"}}function rh(G,J){const X={type:"EnumDeclaration",id:G,body:J},H=C.EnumDeclaration;return K(H.id,X,"id",G,1),K(H.body,X,"body",J,1),X}function ih(G){const J={type:"EnumBooleanBody",members:G,explicitType:null,hasUnknownMembers:null},X=C.EnumBooleanBody;return K(X.members,J,"members",G,1),J}function uh(G){const J={type:"EnumNumberBody",members:G,explicitType:null,hasUnknownMembers:null},X=C.EnumNumberBody;return K(X.members,J,"members",G,1),J}function dh(G){const J={type:"EnumStringBody",members:G,explicitType:null,hasUnknownMembers:null},X=C.EnumStringBody;return K(X.members,J,"members",G,1),J}function sh(G){const J={type:"EnumSymbolBody",members:G,hasUnknownMembers:null},X=C.EnumSymbolBody;return K(X.members,J,"members",G,1),J}function ph(G){const J={type:"EnumBooleanMember",id:G,init:null},X=C.EnumBooleanMember;return K(X.id,J,"id",G,1),J}function nh(G,J){const X={type:"EnumNumberMember",id:G,init:J},H=C.EnumNumberMember;return K(H.id,X,"id",G,1),K(H.init,X,"init",J,1),X}function oh(G,J){const X={type:"EnumStringMember",id:G,init:J},H=C.EnumStringMember;return K(H.id,X,"id",G,1),K(H.init,X,"init",J,1),X}function eh(G){const J={type:"EnumDefaultedMember",id:G},X=C.EnumDefaultedMember;return K(X.id,J,"id",G,1),J}function th(G,J){const X={type:"IndexedAccessType",objectType:G,indexType:J},H=C.IndexedAccessType;return K(H.objectType,X,"objectType",G,1),K(H.indexType,X,"indexType",J,1),X}function Gy(G,J){const X={type:"OptionalIndexedAccessType",objectType:G,indexType:J,optional:null},H=C.OptionalIndexedAccessType;return K(H.objectType,X,"objectType",G,1),K(H.indexType,X,"indexType",J,1),X}function Jy(G,J=null){const X={type:"JSXAttribute",name:G,value:J},H=C.JSXAttribute;return K(H.name,X,"name",G,1),K(H.value,X,"value",J,1),X}function Xy(G){const J={type:"JSXClosingElement",name:G},X=C.JSXClosingElement;return K(X.name,J,"name",G,1),J}function Hy(G,J=null,X,H=null){const Z={type:"JSXElement",openingElement:G,closingElement:J,children:X,selfClosing:H},V=C.JSXElement;return K(V.openingElement,Z,"openingElement",G,1),K(V.closingElement,Z,"closingElement",J,1),K(V.children,Z,"children",X,1),K(V.selfClosing,Z,"selfClosing",H),Z}function Zy(){return{type:"JSXEmptyExpression"}}function Vy(G){const J={type:"JSXExpressionContainer",expression:G},X=C.JSXExpressionContainer;return K(X.expression,J,"expression",G,1),J}function Qy(G){const J={type:"JSXSpreadChild",expression:G},X=C.JSXSpreadChild;return K(X.expression,J,"expression",G,1),J}function Yy(G){const J={type:"JSXIdentifier",name:G},X=C.JSXIdentifier;return K(X.name,J,"name",G),J}function Wy(G,J){const X={type:"JSXMemberExpression",object:G,property:J},H=C.JSXMemberExpression;return K(H.object,X,"object",G,1),K(H.property,X,"property",J,1),X}function zy(G,J){const X={type:"JSXNamespacedName",namespace:G,name:J},H=C.JSXNamespacedName;return K(H.namespace,X,"namespace",G,1),K(H.name,X,"name",J,1),X}function Uy(G,J,X=!1){const H={type:"JSXOpeningElement",name:G,attributes:J,selfClosing:X},Z=C.JSXOpeningElement;return K(Z.name,H,"name",G,1),K(Z.attributes,H,"attributes",J,1),K(Z.selfClosing,H,"selfClosing",X),H}function Ky(G){const J={type:"JSXSpreadAttribute",argument:G},X=C.JSXSpreadAttribute;return K(X.argument,J,"argument",G,1),J}function By(G){const J={type:"JSXText",value:G},X=C.JSXText;return K(X.value,J,"value",G),J}function $y(G,J,X){const H={type:"JSXFragment",openingFragment:G,closingFragment:J,children:X},Z=C.JSXFragment;return K(Z.openingFragment,H,"openingFragment",G,1),K(Z.closingFragment,H,"closingFragment",J,1),K(Z.children,H,"children",X,1),H}function Ry(){return{type:"JSXOpeningFragment"}}function My(){return{type:"JSXClosingFragment"}}function qy(){return{type:"Noop"}}function Fy(G,J){const X={type:"Placeholder",expectedNode:G,name:J},H=C.Placeholder;return K(H.expectedNode,X,"expectedNode",G),K(H.name,X,"name",J,1),X}function jy(G){const J={type:"V8IntrinsicIdentifier",name:G},X=C.V8IntrinsicIdentifier;return K(X.name,J,"name",G),J}function Dy(){return{type:"ArgumentPlaceholder"}}function Iy(G,J){const X={type:"BindExpression",object:G,callee:J},H=C.BindExpression;return K(H.object,X,"object",G,1),K(H.callee,X,"callee",J,1),X}function Ay(G,J){const X={type:"ImportAttribute",key:G,value:J},H=C.ImportAttribute;return K(H.key,X,"key",G,1),K(H.value,X,"value",J,1),X}function Cy(G){const J={type:"Decorator",expression:G},X=C.Decorator;return K(X.expression,J,"expression",G,1),J}function fy(G,J=!1){const X={type:"DoExpression",body:G,async:J},H=C.DoExpression;return K(H.body,X,"body",G,1),K(H.async,X,"async",J),X}function Sy(G){const J={type:"ExportDefaultSpecifier",exported:G},X=C.ExportDefaultSpecifier;return K(X.exported,J,"exported",G,1),J}function Py(G){const J={type:"RecordExpression",properties:G},X=C.RecordExpression;return K(X.properties,J,"properties",G,1),J}function Ly(G=[]){const J={type:"TupleExpression",elements:G},X=C.TupleExpression;return K(X.elements,J,"elements",G,1),J}function Ty(G){const J={type:"DecimalLiteral",value:G},X=C.DecimalLiteral;return K(X.value,J,"value",G),J}function wy(G){const J={type:"ModuleExpression",body:G},X=C.ModuleExpression;return K(X.body,J,"body",G,1),J}function Ny(){return{type:"TopicReference"}}function ky(G){const J={type:"PipelineTopicExpression",expression:G},X=C.PipelineTopicExpression;return K(X.expression,J,"expression",G,1),J}function Ey(G){const J={type:"PipelineBareFunction",callee:G},X=C.PipelineBareFunction;return K(X.callee,J,"callee",G,1),J}function Oy(){return{type:"PipelinePrimaryTopicReference"}}function vy(G){const J={type:"TSParameterProperty",parameter:G},X=C.TSParameterProperty;return K(X.parameter,J,"parameter",G,1),J}function _y(G=null,J=null,X,H=null){const Z={type:"TSDeclareFunction",id:G,typeParameters:J,params:X,returnType:H},V=C.TSDeclareFunction;return K(V.id,Z,"id",G,1),K(V.typeParameters,Z,"typeParameters",J,1),K(V.params,Z,"params",X,1),K(V.returnType,Z,"returnType",H,1),Z}function gy(G=null,J,X=null,H,Z=null){const V={type:"TSDeclareMethod",decorators:G,key:J,typeParameters:X,params:H,returnType:Z},Q=C.TSDeclareMethod;return K(Q.decorators,V,"decorators",G,1),K(Q.key,V,"key",J,1),K(Q.typeParameters,V,"typeParameters",X,1),K(Q.params,V,"params",H,1),K(Q.returnType,V,"returnType",Z,1),V}function by(G,J){const X={type:"TSQualifiedName",left:G,right:J},H=C.TSQualifiedName;return K(H.left,X,"left",G,1),K(H.right,X,"right",J,1),X}function hy(G=null,J,X=null){const H={type:"TSCallSignatureDeclaration",typeParameters:G,parameters:J,typeAnnotation:X},Z=C.TSCallSignatureDeclaration;return K(Z.typeParameters,H,"typeParameters",G,1),K(Z.parameters,H,"parameters",J,1),K(Z.typeAnnotation,H,"typeAnnotation",X,1),H}function yy(G=null,J,X=null){const H={type:"TSConstructSignatureDeclaration",typeParameters:G,parameters:J,typeAnnotation:X},Z=C.TSConstructSignatureDeclaration;return K(Z.typeParameters,H,"typeParameters",G,1),K(Z.parameters,H,"parameters",J,1),K(Z.typeAnnotation,H,"typeAnnotation",X,1),H}function my(G,J=null){const X={type:"TSPropertySignature",key:G,typeAnnotation:J,kind:null},H=C.TSPropertySignature;return K(H.key,X,"key",G,1),K(H.typeAnnotation,X,"typeAnnotation",J,1),X}function xy(G,J=null,X,H=null){const Z={type:"TSMethodSignature",key:G,typeParameters:J,parameters:X,typeAnnotation:H,kind:null},V=C.TSMethodSignature;return K(V.key,Z,"key",G,1),K(V.typeParameters,Z,"typeParameters",J,1),K(V.parameters,Z,"parameters",X,1),K(V.typeAnnotation,Z,"typeAnnotation",H,1),Z}function ly(G,J=null){const X={type:"TSIndexSignature",parameters:G,typeAnnotation:J},H=C.TSIndexSignature;return K(H.parameters,X,"parameters",G,1),K(H.typeAnnotation,X,"typeAnnotation",J,1),X}function cy(){return{type:"TSAnyKeyword"}}function ay(){return{type:"TSBooleanKeyword"}}function ry(){return{type:"TSBigIntKeyword"}}function iy(){return{type:"TSIntrinsicKeyword"}}function uy(){return{type:"TSNeverKeyword"}}function dy(){return{type:"TSNullKeyword"}}function sy(){return{type:"TSNumberKeyword"}}function py(){return{type:"TSObjectKeyword"}}function ny(){return{type:"TSStringKeyword"}}function oy(){return{type:"TSSymbolKeyword"}}function ey(){return{type:"TSUndefinedKeyword"}}function ty(){return{type:"TSUnknownKeyword"}}function Gm(){return{type:"TSVoidKeyword"}}function Jm(){return{type:"TSThisType"}}function Xm(G=null,J,X=null){const H={type:"TSFunctionType",typeParameters:G,parameters:J,typeAnnotation:X},Z=C.TSFunctionType;return K(Z.typeParameters,H,"typeParameters",G,1),K(Z.parameters,H,"parameters",J,1),K(Z.typeAnnotation,H,"typeAnnotation",X,1),H}function Hm(G=null,J,X=null){const H={type:"TSConstructorType",typeParameters:G,parameters:J,typeAnnotation:X},Z=C.TSConstructorType;return K(Z.typeParameters,H,"typeParameters",G,1),K(Z.parameters,H,"parameters",J,1),K(Z.typeAnnotation,H,"typeAnnotation",X,1),H}function Zm(G,J=null){const X={type:"TSTypeReference",typeName:G,typeParameters:J},H=C.TSTypeReference;return K(H.typeName,X,"typeName",G,1),K(H.typeParameters,X,"typeParameters",J,1),X}function Vm(G,J=null,X=null){const H={type:"TSTypePredicate",parameterName:G,typeAnnotation:J,asserts:X},Z=C.TSTypePredicate;return K(Z.parameterName,H,"parameterName",G,1),K(Z.typeAnnotation,H,"typeAnnotation",J,1),K(Z.asserts,H,"asserts",X),H}function Qm(G,J=null){const X={type:"TSTypeQuery",exprName:G,typeParameters:J},H=C.TSTypeQuery;return K(H.exprName,X,"exprName",G,1),K(H.typeParameters,X,"typeParameters",J,1),X}function Ym(G){const J={type:"TSTypeLiteral",members:G},X=C.TSTypeLiteral;return K(X.members,J,"members",G,1),J}function Wm(G){const J={type:"TSArrayType",elementType:G},X=C.TSArrayType;return K(X.elementType,J,"elementType",G,1),J}function zm(G){const J={type:"TSTupleType",elementTypes:G},X=C.TSTupleType;return K(X.elementTypes,J,"elementTypes",G,1),J}function Um(G){const J={type:"TSOptionalType",typeAnnotation:G},X=C.TSOptionalType;return K(X.typeAnnotation,J,"typeAnnotation",G,1),J}function Km(G){const J={type:"TSRestType",typeAnnotation:G},X=C.TSRestType;return K(X.typeAnnotation,J,"typeAnnotation",G,1),J}function Bm(G,J,X=!1){const H={type:"TSNamedTupleMember",label:G,elementType:J,optional:X},Z=C.TSNamedTupleMember;return K(Z.label,H,"label",G,1),K(Z.elementType,H,"elementType",J,1),K(Z.optional,H,"optional",X),H}function $m(G){const J={type:"TSUnionType",types:G},X=C.TSUnionType;return K(X.types,J,"types",G,1),J}function Rm(G){const J={type:"TSIntersectionType",types:G},X=C.TSIntersectionType;return K(X.types,J,"types",G,1),J}function Mm(G,J,X,H){const Z={type:"TSConditionalType",checkType:G,extendsType:J,trueType:X,falseType:H},V=C.TSConditionalType;return K(V.checkType,Z,"checkType",G,1),K(V.extendsType,Z,"extendsType",J,1),K(V.trueType,Z,"trueType",X,1),K(V.falseType,Z,"falseType",H,1),Z}function qm(G){const J={type:"TSInferType",typeParameter:G},X=C.TSInferType;return K(X.typeParameter,J,"typeParameter",G,1),J}function Fm(G){const J={type:"TSParenthesizedType",typeAnnotation:G},X=C.TSParenthesizedType;return K(X.typeAnnotation,J,"typeAnnotation",G,1),J}function jm(G){const J={type:"TSTypeOperator",typeAnnotation:G,operator:null},X=C.TSTypeOperator;return K(X.typeAnnotation,J,"typeAnnotation",G,1),J}function Dm(G,J){const X={type:"TSIndexedAccessType",objectType:G,indexType:J},H=C.TSIndexedAccessType;return K(H.objectType,X,"objectType",G,1),K(H.indexType,X,"indexType",J,1),X}function Im(G,J=null,X=null){const H={type:"TSMappedType",typeParameter:G,typeAnnotation:J,nameType:X},Z=C.TSMappedType;return K(Z.typeParameter,H,"typeParameter",G,1),K(Z.typeAnnotation,H,"typeAnnotation",J,1),K(Z.nameType,H,"nameType",X,1),H}function Am(G){const J={type:"TSLiteralType",literal:G},X=C.TSLiteralType;return K(X.literal,J,"literal",G,1),J}function Cm(G,J=null){const X={type:"TSExpressionWithTypeArguments",expression:G,typeParameters:J},H=C.TSExpressionWithTypeArguments;return K(H.expression,X,"expression",G,1),K(H.typeParameters,X,"typeParameters",J,1),X}function fm(G,J=null,X=null,H){const Z={type:"TSInterfaceDeclaration",id:G,typeParameters:J,extends:X,body:H},V=C.TSInterfaceDeclaration;return K(V.id,Z,"id",G,1),K(V.typeParameters,Z,"typeParameters",J,1),K(V.extends,Z,"extends",X,1),K(V.body,Z,"body",H,1),Z}function Sm(G){const J={type:"TSInterfaceBody",body:G},X=C.TSInterfaceBody;return K(X.body,J,"body",G,1),J}function Pm(G,J=null,X){const H={type:"TSTypeAliasDeclaration",id:G,typeParameters:J,typeAnnotation:X},Z=C.TSTypeAliasDeclaration;return K(Z.id,H,"id",G,1),K(Z.typeParameters,H,"typeParameters",J,1),K(Z.typeAnnotation,H,"typeAnnotation",X,1),H}function Lm(G,J=null){const X={type:"TSInstantiationExpression",expression:G,typeParameters:J},H=C.TSInstantiationExpression;return K(H.expression,X,"expression",G,1),K(H.typeParameters,X,"typeParameters",J,1),X}function Tm(G,J){const X={type:"TSAsExpression",expression:G,typeAnnotation:J},H=C.TSAsExpression;return K(H.expression,X,"expression",G,1),K(H.typeAnnotation,X,"typeAnnotation",J,1),X}function wm(G,J){const X={type:"TSSatisfiesExpression",expression:G,typeAnnotation:J},H=C.TSSatisfiesExpression;return K(H.expression,X,"expression",G,1),K(H.typeAnnotation,X,"typeAnnotation",J,1),X}function Nm(G,J){const X={type:"TSTypeAssertion",typeAnnotation:G,expression:J},H=C.TSTypeAssertion;return K(H.typeAnnotation,X,"typeAnnotation",G,1),K(H.expression,X,"expression",J,1),X}function km(G,J){const X={type:"TSEnumDeclaration",id:G,members:J},H=C.TSEnumDeclaration;return K(H.id,X,"id",G,1),K(H.members,X,"members",J,1),X}function Em(G,J=null){const X={type:"TSEnumMember",id:G,initializer:J},H=C.TSEnumMember;return K(H.id,X,"id",G,1),K(H.initializer,X,"initializer",J,1),X}function Om(G,J){const X={type:"TSModuleDeclaration",id:G,body:J},H=C.TSModuleDeclaration;return K(H.id,X,"id",G,1),K(H.body,X,"body",J,1),X}function vm(G){const J={type:"TSModuleBlock",body:G},X=C.TSModuleBlock;return K(X.body,J,"body",G,1),J}function _m(G,J=null,X=null){const H={type:"TSImportType",argument:G,qualifier:J,typeParameters:X},Z=C.TSImportType;return K(Z.argument,H,"argument",G,1),K(Z.qualifier,H,"qualifier",J,1),K(Z.typeParameters,H,"typeParameters",X,1),H}function gm(G,J){const X={type:"TSImportEqualsDeclaration",id:G,moduleReference:J,isExport:null},H=C.TSImportEqualsDeclaration;return K(H.id,X,"id",G,1),K(H.moduleReference,X,"moduleReference",J,1),X}function bm(G){const J={type:"TSExternalModuleReference",expression:G},X=C.TSExternalModuleReference;return K(X.expression,J,"expression",G,1),J}function hm(G){const J={type:"TSNonNullExpression",expression:G},X=C.TSNonNullExpression;return K(X.expression,J,"expression",G,1),J}function ym(G){const J={type:"TSExportAssignment",expression:G},X=C.TSExportAssignment;return K(X.expression,J,"expression",G,1),J}function mm(G){const J={type:"TSNamespaceExportDeclaration",id:G},X=C.TSNamespaceExportDeclaration;return K(X.id,J,"id",G,1),J}function xm(G){const J={type:"TSTypeAnnotation",typeAnnotation:G},X=C.TSTypeAnnotation;return K(X.typeAnnotation,J,"typeAnnotation",G,1),J}function lm(G){const J={type:"TSTypeParameterInstantiation",params:G},X=C.TSTypeParameterInstantiation;return K(X.params,J,"params",G,1),J}function cm(G){const J={type:"TSTypeParameterDeclaration",params:G},X=C.TSTypeParameterDeclaration;return K(X.params,J,"params",G,1),J}function am(G=null,J=null,X){const H={type:"TSTypeParameter",constraint:G,default:J,name:X},Z=C.TSTypeParameter;return K(Z.constraint,H,"constraint",G,1),K(Z.default,H,"default",J,1),K(Z.name,H,"name",X),H}function rm(G){return qG.default("NumberLiteral","NumericLiteral","The node type "),WY(G)}function im(G,J=""){return qG.default("RegexLiteral","RegExpLiteral","The node type "),zY(G,J)}function um(G){return qG.default("RestProperty","RestElement","The node type "),UY(G)}function dm(G){return qG.default("SpreadProperty","SpreadElement","The node type "),KY(G)}Object.defineProperty(BY,"__esModule",{value:!0});BY.anyTypeAnnotation=rb;BY.argumentPlaceholder=Dy;BY.arrayExpression=Rg;BY.arrayPattern=zb;BY.arrayTypeAnnotation=ib;BY.arrowFunctionExpression=Ub;BY.assignmentExpression=Mg;BY.assignmentPattern=Wb;BY.awaitExpression=Ob;BY.bigIntLiteral=_b;BY.binaryExpression=qg;BY.bindExpression=Iy;BY.blockStatement=Ig;BY.booleanLiteral=xg;BY.booleanLiteralTypeAnnotation=db;BY.booleanTypeAnnotation=ub;BY.breakStatement=Ag;BY.callExpression=Cg;BY.catchClause=fg;BY.classAccessorProperty=mb;BY.classBody=Kb;BY.classDeclaration=$b;BY.classExpression=Bb;BY.classImplements=pb;BY.classMethod=Pb;BY.classPrivateMethod=lb;BY.classPrivateProperty=xb;BY.classProperty=yb;BY.conditionalExpression=Sg;BY.continueStatement=Pg;BY.debuggerStatement=Lg;BY.decimalLiteral=Ty;BY.declareClass=nb;BY.declareExportAllDeclaration=Vh;BY.declareExportDeclaration=Zh;BY.declareFunction=ob;BY.declareInterface=eb;BY.declareModule=tb;BY.declareModuleExports=Gh;BY.declareOpaqueType=Xh;BY.declareTypeAlias=Jh;BY.declareVariable=Hh;BY.declaredPredicate=Qh;BY.decorator=Cy;BY.directive=jg;BY.directiveLiteral=Dg;BY.doExpression=fy;BY.doWhileStatement=Tg;BY.emptyStatement=wg;BY.emptyTypeAnnotation=Fh;BY.enumBooleanBody=ih;BY.enumBooleanMember=ph;BY.enumDeclaration=rh;BY.enumDefaultedMember=eh;BY.enumNumberBody=uh;BY.enumNumberMember=nh;BY.enumStringBody=dh;BY.enumStringMember=oh;BY.enumSymbolBody=sh;BY.existsTypeAnnotation=Yh;BY.exportAllDeclaration=Rb;BY.exportDefaultDeclaration=Mb;BY.exportDefaultSpecifier=Sy;BY.exportNamedDeclaration=qb;BY.exportNamespaceSpecifier=gb;BY.exportSpecifier=Fb;BY.expressionStatement=Ng;BY.file=kg;BY.forInStatement=Eg;BY.forOfStatement=jb;BY.forStatement=Og;BY.functionDeclaration=vg;BY.functionExpression=_g;BY.functionTypeAnnotation=Wh;BY.functionTypeParam=zh;BY.genericTypeAnnotation=Uh;BY.identifier=gg;BY.ifStatement=bg;BY.import=vb;BY.importAttribute=Ay;BY.importDeclaration=Db;BY.importDefaultSpecifier=Ib;BY.importExpression=fb;BY.importNamespaceSpecifier=Ab;BY.importSpecifier=Cb;BY.indexedAccessType=th;BY.inferredPredicate=Kh;BY.interfaceDeclaration=$h;BY.interfaceExtends=Bh;BY.interfaceTypeAnnotation=Rh;BY.interpreterDirective=Fg;BY.intersectionTypeAnnotation=Mh;BY.jSXAttribute=BY.jsxAttribute=Jy;BY.jSXClosingElement=BY.jsxClosingElement=Xy;BY.jSXClosingFragment=BY.jsxClosingFragment=My;BY.jSXElement=BY.jsxElement=Hy;BY.jSXEmptyExpression=BY.jsxEmptyExpression=Zy;BY.jSXExpressionContainer=BY.jsxExpressionContainer=Vy;BY.jSXFragment=BY.jsxFragment=$y;BY.jSXIdentifier=BY.jsxIdentifier=Yy;BY.jSXMemberExpression=BY.jsxMemberExpression=Wy;BY.jSXNamespacedName=BY.jsxNamespacedName=zy;BY.jSXOpeningElement=BY.jsxOpeningElement=Uy;BY.jSXOpeningFragment=BY.jsxOpeningFragment=Ry;BY.jSXSpreadAttribute=BY.jsxSpreadAttribute=Ky;BY.jSXSpreadChild=BY.jsxSpreadChild=Qy;BY.jSXText=BY.jsxText=By;BY.labeledStatement=hg;BY.logicalExpression=lg;BY.memberExpression=cg;BY.metaProperty=Sb;BY.mixedTypeAnnotation=qh;BY.moduleExpression=wy;BY.newExpression=ag;BY.noop=qy;BY.nullLiteral=mg;BY.nullLiteralTypeAnnotation=sb;BY.nullableTypeAnnotation=jh;BY.numberLiteral=rm;BY.numberLiteralTypeAnnotation=Dh;BY.numberTypeAnnotation=Ih;BY.numericLiteral=WY;BY.objectExpression=ig;BY.objectMethod=ug;BY.objectPattern=Lb;BY.objectProperty=dg;BY.objectTypeAnnotation=Ah;BY.objectTypeCallProperty=fh;BY.objectTypeIndexer=Sh;BY.objectTypeInternalSlot=Ch;BY.objectTypeProperty=Ph;BY.objectTypeSpreadProperty=Lh;BY.opaqueType=Th;BY.optionalCallExpression=hb;BY.optionalIndexedAccessType=Gy;BY.optionalMemberExpression=bb;BY.parenthesizedExpression=ng;BY.pipelineBareFunction=Ey;BY.pipelinePrimaryTopicReference=Oy;BY.pipelineTopicExpression=ky;BY.placeholder=Fy;BY.privateName=cb;BY.program=rg;BY.qualifiedTypeIdentifier=wh;BY.recordExpression=Py;BY.regExpLiteral=zY;BY.regexLiteral=im;BY.restElement=UY;BY.restProperty=um;BY.returnStatement=sg;BY.sequenceExpression=pg;BY.spreadElement=KY;BY.spreadProperty=dm;BY.staticBlock=ab;BY.stringLiteral=yg;BY.stringLiteralTypeAnnotation=Nh;BY.stringTypeAnnotation=kh;BY.super=Tb;BY.switchCase=og;BY.switchStatement=eg;BY.symbolTypeAnnotation=Eh;BY.taggedTemplateExpression=wb;BY.templateElement=Nb;BY.templateLiteral=kb;BY.thisExpression=tg;BY.thisTypeAnnotation=Oh;BY.throwStatement=Gb;BY.topicReference=Ny;BY.tryStatement=Jb;BY.tSAnyKeyword=BY.tsAnyKeyword=cy;BY.tSArrayType=BY.tsArrayType=Wm;BY.tSAsExpression=BY.tsAsExpression=Tm;BY.tSBigIntKeyword=BY.tsBigIntKeyword=ry;BY.tSBooleanKeyword=BY.tsBooleanKeyword=ay;BY.tSCallSignatureDeclaration=BY.tsCallSignatureDeclaration=hy;BY.tSConditionalType=BY.tsConditionalType=Mm;BY.tSConstructSignatureDeclaration=BY.tsConstructSignatureDeclaration=yy;BY.tSConstructorType=BY.tsConstructorType=Hm;BY.tSDeclareFunction=BY.tsDeclareFunction=_y;BY.tSDeclareMethod=BY.tsDeclareMethod=gy;BY.tSEnumDeclaration=BY.tsEnumDeclaration=km;BY.tSEnumMember=BY.tsEnumMember=Em;BY.tSExportAssignment=BY.tsExportAssignment=ym;BY.tSExpressionWithTypeArguments=BY.tsExpressionWithTypeArguments=Cm;BY.tSExternalModuleReference=BY.tsExternalModuleReference=bm;BY.tSFunctionType=BY.tsFunctionType=Xm;BY.tSImportEqualsDeclaration=BY.tsImportEqualsDeclaration=gm;BY.tSImportType=BY.tsImportType=_m;BY.tSIndexSignature=BY.tsIndexSignature=ly;BY.tSIndexedAccessType=BY.tsIndexedAccessType=Dm;BY.tSInferType=BY.tsInferType=qm;BY.tSInstantiationExpression=BY.tsInstantiationExpression=Lm;BY.tSInterfaceBody=BY.tsInterfaceBody=Sm;BY.tSInterfaceDeclaration=BY.tsInterfaceDeclaration=fm;BY.tSIntersectionType=BY.tsIntersectionType=Rm;BY.tSIntrinsicKeyword=BY.tsIntrinsicKeyword=iy;BY.tSLiteralType=BY.tsLiteralType=Am;BY.tSMappedType=BY.tsMappedType=Im;BY.tSMethodSignature=BY.tsMethodSignature=xy;BY.tSModuleBlock=BY.tsModuleBlock=vm;BY.tSModuleDeclaration=BY.tsModuleDeclaration=Om;BY.tSNamedTupleMember=BY.tsNamedTupleMember=Bm;BY.tSNamespaceExportDeclaration=BY.tsNamespaceExportDeclaration=mm;BY.tSNeverKeyword=BY.tsNeverKeyword=uy;BY.tSNonNullExpression=BY.tsNonNullExpression=hm;BY.tSNullKeyword=BY.tsNullKeyword=dy;BY.tSNumberKeyword=BY.tsNumberKeyword=sy;BY.tSObjectKeyword=BY.tsObjectKeyword=py;BY.tSOptionalType=BY.tsOptionalType=Um;BY.tSParameterProperty=BY.tsParameterProperty=vy;BY.tSParenthesizedType=BY.tsParenthesizedType=Fm;BY.tSPropertySignature=BY.tsPropertySignature=my;BY.tSQualifiedName=BY.tsQualifiedName=by;BY.tSRestType=BY.tsRestType=Km;BY.tSSatisfiesExpression=BY.tsSatisfiesExpression=wm;BY.tSStringKeyword=BY.tsStringKeyword=ny;BY.tSSymbolKeyword=BY.tsSymbolKeyword=oy;BY.tSThisType=BY.tsThisType=Jm;BY.tSTupleType=BY.tsTupleType=zm;BY.tSTypeAliasDeclaration=BY.tsTypeAliasDeclaration=Pm;BY.tSTypeAnnotation=BY.tsTypeAnnotation=xm;BY.tSTypeAssertion=BY.tsTypeAssertion=Nm;BY.tSTypeLiteral=BY.tsTypeLiteral=Ym;BY.tSTypeOperator=BY.tsTypeOperator=jm;BY.tSTypeParameter=BY.tsTypeParameter=am;BY.tSTypeParameterDeclaration=BY.tsTypeParameterDeclaration=cm;BY.tSTypeParameterInstantiation=BY.tsTypeParameterInstantiation=lm;BY.tSTypePredicate=BY.tsTypePredicate=Vm;BY.tSTypeQuery=BY.tsTypeQuery=Qm;BY.tSTypeReference=BY.tsTypeReference=Zm;BY.tSUndefinedKeyword=BY.tsUndefinedKeyword=ey;BY.tSUnionType=BY.tsUnionType=$m;BY.tSUnknownKeyword=BY.tsUnknownKeyword=ty;BY.tSVoidKeyword=BY.tsVoidKeyword=Gm;BY.tupleExpression=Ly;BY.tupleTypeAnnotation=vh;BY.typeAlias=gh;BY.typeAnnotation=bh;BY.typeCastExpression=hh;BY.typeParameter=yh;BY.typeParameterDeclaration=mh;BY.typeParameterInstantiation=xh;BY.typeofTypeAnnotation=_h;BY.unaryExpression=Xb;BY.unionTypeAnnotation=lh;BY.updateExpression=Hb;BY.v8IntrinsicIdentifier=jy;BY.variableDeclaration=Zb;BY.variableDeclarator=Vb;BY.variance=ch;BY.voidTypeAnnotation=ah;BY.whileStatement=Qb;BY.withStatement=Yb;BY.yieldExpression=Eb;var Bg=BG(),qG=K9(),$g=p2(),{validateInternal:K}=Bg,{NODE_FIELDS:C}=$g});var RY=S(($Y)=>{function _r(G,J){const X=G.value.split(/\r\n|\n|\r/);let H=0;for(let V=0;V<X.length;V++)if(/[^ \t]/.exec(X[V]))H=V;let Z="";for(let V=0;V<X.length;V++){const Q=X[V],Y=V===0,W=V===X.length-1,z=V===H;let B=Q.replace(/\t/g," ");if(!Y)B=B.replace(/^ +/,"");if(!W)B=B.replace(/ +$/,"");if(B){if(!z)B+=" ";Z+=B}}if(Z)J.push(vr.inherits(Or.stringLiteral(Z),G))}Object.defineProperty($Y,"__esModule",{value:!0});$Y.default=_r;var Or=W2(),vr=F1()});var qY=S((MY)=>{function hr(G){const J=[];for(let X=0;X<G.children.length;X++){let H=G.children[X];if(CX.isJSXText(H)){br.default(H,J);continue}if(CX.isJSXExpressionContainer(H))H=H.expression;if(CX.isJSXEmptyExpression(H))continue;J.push(H)}return J}Object.defineProperty(MY,"__esModule",{value:!0});MY.default=hr;var CX=r1(),br=RY()});var fX=S((FY)=>{function xr(G){return!!(G&&mr.VISITOR_KEYS[G.type])}Object.defineProperty(FY,"__esModule",{value:!0});FY.default=xr;var mr=N2()});var DY=S((jY)=>{function ar(G){if(!cr.default(G)){var J;const X=(J=G==null?void 0:G.type)!=null?J:JSON.stringify(G);throw new TypeError(`Not a valid node of type "${X}"`)}}Object.defineProperty(jY,"__esModule",{value:!0});jY.default=ar;var cr=fX()});var AY=S((IY)=>{function $(G,J,X){if(!ir.default(G,J,X))throw new Error(`Expected type "${G}" with option ${JSON.stringify(X)}, but instead got "${J.type}".`)}function ur(G,J){$("ArrayExpression",G,J)}function dr(G,J){$("AssignmentExpression",G,J)}function sr(G,J){$("BinaryExpression",G,J)}function pr(G,J){$("InterpreterDirective",G,J)}function nr(G,J){$("Directive",G,J)}function or(G,J){$("DirectiveLiteral",G,J)}function er(G,J){$("BlockStatement",G,J)}function tr(G,J){$("BreakStatement",G,J)}function Gi(G,J){$("CallExpression",G,J)}function Ji(G,J){$("CatchClause",G,J)}function Xi(G,J){$("ConditionalExpression",G,J)}function Hi(G,J){$("ContinueStatement",G,J)}function Zi(G,J){$("DebuggerStatement",G,J)}function Vi(G,J){$("DoWhileStatement",G,J)}function Qi(G,J){$("EmptyStatement",G,J)}function Yi(G,J){$("ExpressionStatement",G,J)}function Wi(G,J){$("File",G,J)}function zi(G,J){$("ForInStatement",G,J)}function Ui(G,J){$("ForStatement",G,J)}function Ki(G,J){$("FunctionDeclaration",G,J)}function Bi(G,J){$("FunctionExpression",G,J)}function $i(G,J){$("Identifier",G,J)}function Ri(G,J){$("IfStatement",G,J)}function Mi(G,J){$("LabeledStatement",G,J)}function qi(G,J){$("StringLiteral",G,J)}function Fi(G,J){$("NumericLiteral",G,J)}function ji(G,J){$("NullLiteral",G,J)}function Di(G,J){$("BooleanLiteral",G,J)}function Ii(G,J){$("RegExpLiteral",G,J)}function Ai(G,J){$("LogicalExpression",G,J)}function Ci(G,J){$("MemberExpression",G,J)}function fi(G,J){$("NewExpression",G,J)}function Si(G,J){$("Program",G,J)}function Pi(G,J){$("ObjectExpression",G,J)}function Li(G,J){$("ObjectMethod",G,J)}function Ti(G,J){$("ObjectProperty",G,J)}function wi(G,J){$("RestElement",G,J)}function Ni(G,J){$("ReturnStatement",G,J)}function ki(G,J){$("SequenceExpression",G,J)}function Ei(G,J){$("ParenthesizedExpression",G,J)}function Oi(G,J){$("SwitchCase",G,J)}function vi(G,J){$("SwitchStatement",G,J)}function _i(G,J){$("ThisExpression",G,J)}function gi(G,J){$("ThrowStatement",G,J)}function bi(G,J){$("TryStatement",G,J)}function hi(G,J){$("UnaryExpression",G,J)}function yi(G,J){$("UpdateExpression",G,J)}function mi(G,J){$("VariableDeclaration",G,J)}function xi(G,J){$("VariableDeclarator",G,J)}function li(G,J){$("WhileStatement",G,J)}function ci(G,J){$("WithStatement",G,J)}function ai(G,J){$("AssignmentPattern",G,J)}function ri(G,J){$("ArrayPattern",G,J)}function ii(G,J){$("ArrowFunctionExpression",G,J)}function ui(G,J){$("ClassBody",G,J)}function di(G,J){$("ClassExpression",G,J)}function si(G,J){$("ClassDeclaration",G,J)}function pi(G,J){$("ExportAllDeclaration",G,J)}function ni(G,J){$("ExportDefaultDeclaration",G,J)}function oi(G,J){$("ExportNamedDeclaration",G,J)}function ei(G,J){$("ExportSpecifier",G,J)}function ti(G,J){$("ForOfStatement",G,J)}function Gu(G,J){$("ImportDeclaration",G,J)}function Ju(G,J){$("ImportDefaultSpecifier",G,J)}function Xu(G,J){$("ImportNamespaceSpecifier",G,J)}function Hu(G,J){$("ImportSpecifier",G,J)}function Zu(G,J){$("ImportExpression",G,J)}function Vu(G,J){$("MetaProperty",G,J)}function Qu(G,J){$("ClassMethod",G,J)}function Yu(G,J){$("ObjectPattern",G,J)}function Wu(G,J){$("SpreadElement",G,J)}function zu(G,J){$("Super",G,J)}function Uu(G,J){$("TaggedTemplateExpression",G,J)}function Ku(G,J){$("TemplateElement",G,J)}function Bu(G,J){$("TemplateLiteral",G,J)}function $u(G,J){$("YieldExpression",G,J)}function Ru(G,J){$("AwaitExpression",G,J)}function Mu(G,J){$("Import",G,J)}function qu(G,J){$("BigIntLiteral",G,J)}function Fu(G,J){$("ExportNamespaceSpecifier",G,J)}function ju(G,J){$("OptionalMemberExpression",G,J)}function Du(G,J){$("OptionalCallExpression",G,J)}function Iu(G,J){$("ClassProperty",G,J)}function Au(G,J){$("ClassAccessorProperty",G,J)}function Cu(G,J){$("ClassPrivateProperty",G,J)}function fu(G,J){$("ClassPrivateMethod",G,J)}function Su(G,J){$("PrivateName",G,J)}function Pu(G,J){$("StaticBlock",G,J)}function Lu(G,J){$("AnyTypeAnnotation",G,J)}function Tu(G,J){$("ArrayTypeAnnotation",G,J)}function wu(G,J){$("BooleanTypeAnnotation",G,J)}function Nu(G,J){$("BooleanLiteralTypeAnnotation",G,J)}function ku(G,J){$("NullLiteralTypeAnnotation",G,J)}function Eu(G,J){$("ClassImplements",G,J)}function Ou(G,J){$("DeclareClass",G,J)}function vu(G,J){$("DeclareFunction",G,J)}function _u(G,J){$("DeclareInterface",G,J)}function gu(G,J){$("DeclareModule",G,J)}function bu(G,J){$("DeclareModuleExports",G,J)}function hu(G,J){$("DeclareTypeAlias",G,J)}function yu(G,J){$("DeclareOpaqueType",G,J)}function mu(G,J){$("DeclareVariable",G,J)}function xu(G,J){$("DeclareExportDeclaration",G,J)}function lu(G,J){$("DeclareExportAllDeclaration",G,J)}function cu(G,J){$("DeclaredPredicate",G,J)}function au(G,J){$("ExistsTypeAnnotation",G,J)}function ru(G,J){$("FunctionTypeAnnotation",G,J)}function iu(G,J){$("FunctionTypeParam",G,J)}function uu(G,J){$("GenericTypeAnnotation",G,J)}function du(G,J){$("InferredPredicate",G,J)}function su(G,J){$("InterfaceExtends",G,J)}function pu(G,J){$("InterfaceDeclaration",G,J)}function nu(G,J){$("InterfaceTypeAnnotation",G,J)}function ou(G,J){$("IntersectionTypeAnnotation",G,J)}function eu(G,J){$("MixedTypeAnnotation",G,J)}function tu(G,J){$("EmptyTypeAnnotation",G,J)}function Gd(G,J){$("NullableTypeAnnotation",G,J)}function Jd(G,J){$("NumberLiteralTypeAnnotation",G,J)}function Xd(G,J){$("NumberTypeAnnotation",G,J)}function Hd(G,J){$("ObjectTypeAnnotation",G,J)}function Zd(G,J){$("ObjectTypeInternalSlot",G,J)}function Vd(G,J){$("ObjectTypeCallProperty",G,J)}function Qd(G,J){$("ObjectTypeIndexer",G,J)}function Yd(G,J){$("ObjectTypeProperty",G,J)}function Wd(G,J){$("ObjectTypeSpreadProperty",G,J)}function zd(G,J){$("OpaqueType",G,J)}function Ud(G,J){$("QualifiedTypeIdentifier",G,J)}function Kd(G,J){$("StringLiteralTypeAnnotation",G,J)}function Bd(G,J){$("StringTypeAnnotation",G,J)}function $d(G,J){$("SymbolTypeAnnotation",G,J)}function Rd(G,J){$("ThisTypeAnnotation",G,J)}function Md(G,J){$("TupleTypeAnnotation",G,J)}function qd(G,J){$("TypeofTypeAnnotation",G,J)}function Fd(G,J){$("TypeAlias",G,J)}function jd(G,J){$("TypeAnnotation",G,J)}function Dd(G,J){$("TypeCastExpression",G,J)}function Id(G,J){$("TypeParameter",G,J)}function Ad(G,J){$("TypeParameterDeclaration",G,J)}function Cd(G,J){$("TypeParameterInstantiation",G,J)}function fd(G,J){$("UnionTypeAnnotation",G,J)}function Sd(G,J){$("Variance",G,J)}function Pd(G,J){$("VoidTypeAnnotation",G,J)}function Ld(G,J){$("EnumDeclaration",G,J)}function Td(G,J){$("EnumBooleanBody",G,J)}function wd(G,J){$("EnumNumberBody",G,J)}function Nd(G,J){$("EnumStringBody",G,J)}function kd(G,J){$("EnumSymbolBody",G,J)}function Ed(G,J){$("EnumBooleanMember",G,J)}function Od(G,J){$("EnumNumberMember",G,J)}function vd(G,J){$("EnumStringMember",G,J)}function _d(G,J){$("EnumDefaultedMember",G,J)}function gd(G,J){$("IndexedAccessType",G,J)}function bd(G,J){$("OptionalIndexedAccessType",G,J)}function hd(G,J){$("JSXAttribute",G,J)}function yd(G,J){$("JSXClosingElement",G,J)}function md(G,J){$("JSXElement",G,J)}function xd(G,J){$("JSXEmptyExpression",G,J)}function ld(G,J){$("JSXExpressionContainer",G,J)}function cd(G,J){$("JSXSpreadChild",G,J)}function ad(G,J){$("JSXIdentifier",G,J)}function rd(G,J){$("JSXMemberExpression",G,J)}function id(G,J){$("JSXNamespacedName",G,J)}function ud(G,J){$("JSXOpeningElement",G,J)}function dd(G,J){$("JSXSpreadAttribute",G,J)}function sd(G,J){$("JSXText",G,J)}function pd(G,J){$("JSXFragment",G,J)}function nd(G,J){$("JSXOpeningFragment",G,J)}function od(G,J){$("JSXClosingFragment",G,J)}function ed(G,J){$("Noop",G,J)}function td(G,J){$("Placeholder",G,J)}function Gs(G,J){$("V8IntrinsicIdentifier",G,J)}function Js(G,J){$("ArgumentPlaceholder",G,J)}function Xs(G,J){$("BindExpression",G,J)}function Hs(G,J){$("ImportAttribute",G,J)}function Zs(G,J){$("Decorator",G,J)}function Vs(G,J){$("DoExpression",G,J)}function Qs(G,J){$("ExportDefaultSpecifier",G,J)}function Ys(G,J){$("RecordExpression",G,J)}function Ws(G,J){$("TupleExpression",G,J)}function zs(G,J){$("DecimalLiteral",G,J)}function Us(G,J){$("ModuleExpression",G,J)}function Ks(G,J){$("TopicReference",G,J)}function Bs(G,J){$("PipelineTopicExpression",G,J)}function $s(G,J){$("PipelineBareFunction",G,J)}function Rs(G,J){$("PipelinePrimaryTopicReference",G,J)}function Ms(G,J){$("TSParameterProperty",G,J)}function qs(G,J){$("TSDeclareFunction",G,J)}function Fs(G,J){$("TSDeclareMethod",G,J)}function js(G,J){$("TSQualifiedName",G,J)}function Ds(G,J){$("TSCallSignatureDeclaration",G,J)}function Is(G,J){$("TSConstructSignatureDeclaration",G,J)}function As(G,J){$("TSPropertySignature",G,J)}function Cs(G,J){$("TSMethodSignature",G,J)}function fs(G,J){$("TSIndexSignature",G,J)}function Ss(G,J){$("TSAnyKeyword",G,J)}function Ps(G,J){$("TSBooleanKeyword",G,J)}function Ls(G,J){$("TSBigIntKeyword",G,J)}function Ts(G,J){$("TSIntrinsicKeyword",G,J)}function ws(G,J){$("TSNeverKeyword",G,J)}function Ns(G,J){$("TSNullKeyword",G,J)}function ks(G,J){$("TSNumberKeyword",G,J)}function Es(G,J){$("TSObjectKeyword",G,J)}function Os(G,J){$("TSStringKeyword",G,J)}function vs(G,J){$("TSSymbolKeyword",G,J)}function _s(G,J){$("TSUndefinedKeyword",G,J)}function gs(G,J){$("TSUnknownKeyword",G,J)}function bs(G,J){$("TSVoidKeyword",G,J)}function hs(G,J){$("TSThisType",G,J)}function ys(G,J){$("TSFunctionType",G,J)}function ms(G,J){$("TSConstructorType",G,J)}function xs(G,J){$("TSTypeReference",G,J)}function ls(G,J){$("TSTypePredicate",G,J)}function cs(G,J){$("TSTypeQuery",G,J)}function as(G,J){$("TSTypeLiteral",G,J)}function rs(G,J){$("TSArrayType",G,J)}function is(G,J){$("TSTupleType",G,J)}function us(G,J){$("TSOptionalType",G,J)}function ds(G,J){$("TSRestType",G,J)}function ss(G,J){$("TSNamedTupleMember",G,J)}function ps(G,J){$("TSUnionType",G,J)}function ns(G,J){$("TSIntersectionType",G,J)}function os(G,J){$("TSConditionalType",G,J)}function es(G,J){$("TSInferType",G,J)}function ts(G,J){$("TSParenthesizedType",G,J)}function Gp(G,J){$("TSTypeOperator",G,J)}function Jp(G,J){$("TSIndexedAccessType",G,J)}function Xp(G,J){$("TSMappedType",G,J)}function Hp(G,J){$("TSLiteralType",G,J)}function Zp(G,J){$("TSExpressionWithTypeArguments",G,J)}function Vp(G,J){$("TSInterfaceDeclaration",G,J)}function Qp(G,J){$("TSInterfaceBody",G,J)}function Yp(G,J){$("TSTypeAliasDeclaration",G,J)}function Wp(G,J){$("TSInstantiationExpression",G,J)}function zp(G,J){$("TSAsExpression",G,J)}function Up(G,J){$("TSSatisfiesExpression",G,J)}function Kp(G,J){$("TSTypeAssertion",G,J)}function Bp(G,J){$("TSEnumDeclaration",G,J)}function $p(G,J){$("TSEnumMember",G,J)}function Rp(G,J){$("TSModuleDeclaration",G,J)}function Mp(G,J){$("TSModuleBlock",G,J)}function qp(G,J){$("TSImportType",G,J)}function Fp(G,J){$("TSImportEqualsDeclaration",G,J)}function jp(G,J){$("TSExternalModuleReference",G,J)}function Dp(G,J){$("TSNonNullExpression",G,J)}function Ip(G,J){$("TSExportAssignment",G,J)}function Ap(G,J){$("TSNamespaceExportDeclaration",G,J)}function Cp(G,J){$("TSTypeAnnotation",G,J)}function fp(G,J){$("TSTypeParameterInstantiation",G,J)}function Sp(G,J){$("TSTypeParameterDeclaration",G,J)}function Pp(G,J){$("TSTypeParameter",G,J)}function Lp(G,J){$("Standardized",G,J)}function Tp(G,J){$("Expression",G,J)}function wp(G,J){$("Binary",G,J)}function Np(G,J){$("Scopable",G,J)}function kp(G,J){$("BlockParent",G,J)}function Ep(G,J){$("Block",G,J)}function Op(G,J){$("Statement",G,J)}function vp(G,J){$("Terminatorless",G,J)}function _p(G,J){$("CompletionStatement",G,J)}function gp(G,J){$("Conditional",G,J)}function bp(G,J){$("Loop",G,J)}function hp(G,J){$("While",G,J)}function yp(G,J){$("ExpressionWrapper",G,J)}function mp(G,J){$("For",G,J)}function xp(G,J){$("ForXStatement",G,J)}function lp(G,J){$("Function",G,J)}function cp(G,J){$("FunctionParent",G,J)}function ap(G,J){$("Pureish",G,J)}function rp(G,J){$("Declaration",G,J)}function ip(G,J){$("PatternLike",G,J)}function up(G,J){$("LVal",G,J)}function dp(G,J){$("TSEntityName",G,J)}function sp(G,J){$("Literal",G,J)}function pp(G,J){$("Immutable",G,J)}function np(G,J){$("UserWhitespacable",G,J)}function op(G,J){$("Method",G,J)}function ep(G,J){$("ObjectMember",G,J)}function tp(G,J){$("Property",G,J)}function Gn(G,J){$("UnaryLike",G,J)}function Jn(G,J){$("Pattern",G,J)}function Xn(G,J){$("Class",G,J)}function Hn(G,J){$("ImportOrExportDeclaration",G,J)}function Zn(G,J){$("ExportDeclaration",G,J)}function Vn(G,J){$("ModuleSpecifier",G,J)}function Qn(G,J){$("Accessor",G,J)}function Yn(G,J){$("Private",G,J)}function Wn(G,J){$("Flow",G,J)}function zn(G,J){$("FlowType",G,J)}function Un(G,J){$("FlowBaseAnnotation",G,J)}function Kn(G,J){$("FlowDeclaration",G,J)}function Bn(G,J){$("FlowPredicate",G,J)}function $n(G,J){$("EnumBody",G,J)}function Rn(G,J){$("EnumMember",G,J)}function Mn(G,J){$("JSX",G,J)}function qn(G,J){$("Miscellaneous",G,J)}function Fn(G,J){$("TypeScript",G,J)}function jn(G,J){$("TSTypeElement",G,J)}function Dn(G,J){$("TSType",G,J)}function In(G,J){$("TSBaseType",G,J)}function An(G,J){A9.default("assertNumberLiteral","assertNumericLiteral"),$("NumberLiteral",G,J)}function Cn(G,J){A9.default("assertRegexLiteral","assertRegExpLiteral"),$("RegexLiteral",G,J)}function fn(G,J){A9.default("assertRestProperty","assertRestElement"),$("RestProperty",G,J)}function Sn(G,J){A9.default("assertSpreadProperty","assertSpreadElement"),$("SpreadProperty",G,J)}function Pn(G,J){A9.default("assertModuleDeclaration","assertImportOrExportDeclaration"),$("ModuleDeclaration",G,J)}Object.defineProperty(IY,"__esModule",{value:!0});IY.assertAccessor=Qn;IY.assertAnyTypeAnnotation=Lu;IY.assertArgumentPlaceholder=Js;IY.assertArrayExpression=ur;IY.assertArrayPattern=ri;IY.assertArrayTypeAnnotation=Tu;IY.assertArrowFunctionExpression=ii;IY.assertAssignmentExpression=dr;IY.assertAssignmentPattern=ai;IY.assertAwaitExpression=Ru;IY.assertBigIntLiteral=qu;IY.assertBinary=wp;IY.assertBinaryExpression=sr;IY.assertBindExpression=Xs;IY.assertBlock=Ep;IY.assertBlockParent=kp;IY.assertBlockStatement=er;IY.assertBooleanLiteral=Di;IY.assertBooleanLiteralTypeAnnotation=Nu;IY.assertBooleanTypeAnnotation=wu;IY.assertBreakStatement=tr;IY.assertCallExpression=Gi;IY.assertCatchClause=Ji;IY.assertClass=Xn;IY.assertClassAccessorProperty=Au;IY.assertClassBody=ui;IY.assertClassDeclaration=si;IY.assertClassExpression=di;IY.assertClassImplements=Eu;IY.assertClassMethod=Qu;IY.assertClassPrivateMethod=fu;IY.assertClassPrivateProperty=Cu;IY.assertClassProperty=Iu;IY.assertCompletionStatement=_p;IY.assertConditional=gp;IY.assertConditionalExpression=Xi;IY.assertContinueStatement=Hi;IY.assertDebuggerStatement=Zi;IY.assertDecimalLiteral=zs;IY.assertDeclaration=rp;IY.assertDeclareClass=Ou;IY.assertDeclareExportAllDeclaration=lu;IY.assertDeclareExportDeclaration=xu;IY.assertDeclareFunction=vu;IY.assertDeclareInterface=_u;IY.assertDeclareModule=gu;IY.assertDeclareModuleExports=bu;IY.assertDeclareOpaqueType=yu;IY.assertDeclareTypeAlias=hu;IY.assertDeclareVariable=mu;IY.assertDeclaredPredicate=cu;IY.assertDecorator=Zs;IY.assertDirective=nr;IY.assertDirectiveLiteral=or;IY.assertDoExpression=Vs;IY.assertDoWhileStatement=Vi;IY.assertEmptyStatement=Qi;IY.assertEmptyTypeAnnotation=tu;IY.assertEnumBody=$n;IY.assertEnumBooleanBody=Td;IY.assertEnumBooleanMember=Ed;IY.assertEnumDeclaration=Ld;IY.assertEnumDefaultedMember=_d;IY.assertEnumMember=Rn;IY.assertEnumNumberBody=wd;IY.assertEnumNumberMember=Od;IY.assertEnumStringBody=Nd;IY.assertEnumStringMember=vd;IY.assertEnumSymbolBody=kd;IY.assertExistsTypeAnnotation=au;IY.assertExportAllDeclaration=pi;IY.assertExportDeclaration=Zn;IY.assertExportDefaultDeclaration=ni;IY.assertExportDefaultSpecifier=Qs;IY.assertExportNamedDeclaration=oi;IY.assertExportNamespaceSpecifier=Fu;IY.assertExportSpecifier=ei;IY.assertExpression=Tp;IY.assertExpressionStatement=Yi;IY.assertExpressionWrapper=yp;IY.assertFile=Wi;IY.assertFlow=Wn;IY.assertFlowBaseAnnotation=Un;IY.assertFlowDeclaration=Kn;IY.assertFlowPredicate=Bn;IY.assertFlowType=zn;IY.assertFor=mp;IY.assertForInStatement=zi;IY.assertForOfStatement=ti;IY.assertForStatement=Ui;IY.assertForXStatement=xp;IY.assertFunction=lp;IY.assertFunctionDeclaration=Ki;IY.assertFunctionExpression=Bi;IY.assertFunctionParent=cp;IY.assertFunctionTypeAnnotation=ru;IY.assertFunctionTypeParam=iu;IY.assertGenericTypeAnnotation=uu;IY.assertIdentifier=$i;IY.assertIfStatement=Ri;IY.assertImmutable=pp;IY.assertImport=Mu;IY.assertImportAttribute=Hs;IY.assertImportDeclaration=Gu;IY.assertImportDefaultSpecifier=Ju;IY.assertImportExpression=Zu;IY.assertImportNamespaceSpecifier=Xu;IY.assertImportOrExportDeclaration=Hn;IY.assertImportSpecifier=Hu;IY.assertIndexedAccessType=gd;IY.assertInferredPredicate=du;IY.assertInterfaceDeclaration=pu;IY.assertInterfaceExtends=su;IY.assertInterfaceTypeAnnotation=nu;IY.assertInterpreterDirective=pr;IY.assertIntersectionTypeAnnotation=ou;IY.assertJSX=Mn;IY.assertJSXAttribute=hd;IY.assertJSXClosingElement=yd;IY.assertJSXClosingFragment=od;IY.assertJSXElement=md;IY.assertJSXEmptyExpression=xd;IY.assertJSXExpressionContainer=ld;IY.assertJSXFragment=pd;IY.assertJSXIdentifier=ad;IY.assertJSXMemberExpression=rd;IY.assertJSXNamespacedName=id;IY.assertJSXOpeningElement=ud;IY.assertJSXOpeningFragment=nd;IY.assertJSXSpreadAttribute=dd;IY.assertJSXSpreadChild=cd;IY.assertJSXText=sd;IY.assertLVal=up;IY.assertLabeledStatement=Mi;IY.assertLiteral=sp;IY.assertLogicalExpression=Ai;IY.assertLoop=bp;IY.assertMemberExpression=Ci;IY.assertMetaProperty=Vu;IY.assertMethod=op;IY.assertMiscellaneous=qn;IY.assertMixedTypeAnnotation=eu;IY.assertModuleDeclaration=Pn;IY.assertModuleExpression=Us;IY.assertModuleSpecifier=Vn;IY.assertNewExpression=fi;IY.assertNoop=ed;IY.assertNullLiteral=ji;IY.assertNullLiteralTypeAnnotation=ku;IY.assertNullableTypeAnnotation=Gd;IY.assertNumberLiteral=An;IY.assertNumberLiteralTypeAnnotation=Jd;IY.assertNumberTypeAnnotation=Xd;IY.assertNumericLiteral=Fi;IY.assertObjectExpression=Pi;IY.assertObjectMember=ep;IY.assertObjectMethod=Li;IY.assertObjectPattern=Yu;IY.assertObjectProperty=Ti;IY.assertObjectTypeAnnotation=Hd;IY.assertObjectTypeCallProperty=Vd;IY.assertObjectTypeIndexer=Qd;IY.assertObjectTypeInternalSlot=Zd;IY.assertObjectTypeProperty=Yd;IY.assertObjectTypeSpreadProperty=Wd;IY.assertOpaqueType=zd;IY.assertOptionalCallExpression=Du;IY.assertOptionalIndexedAccessType=bd;IY.assertOptionalMemberExpression=ju;IY.assertParenthesizedExpression=Ei;IY.assertPattern=Jn;IY.assertPatternLike=ip;IY.assertPipelineBareFunction=$s;IY.assertPipelinePrimaryTopicReference=Rs;IY.assertPipelineTopicExpression=Bs;IY.assertPlaceholder=td;IY.assertPrivate=Yn;IY.assertPrivateName=Su;IY.assertProgram=Si;IY.assertProperty=tp;IY.assertPureish=ap;IY.assertQualifiedTypeIdentifier=Ud;IY.assertRecordExpression=Ys;IY.assertRegExpLiteral=Ii;IY.assertRegexLiteral=Cn;IY.assertRestElement=wi;IY.assertRestProperty=fn;IY.assertReturnStatement=Ni;IY.assertScopable=Np;IY.assertSequenceExpression=ki;IY.assertSpreadElement=Wu;IY.assertSpreadProperty=Sn;IY.assertStandardized=Lp;IY.assertStatement=Op;IY.assertStaticBlock=Pu;IY.assertStringLiteral=qi;IY.assertStringLiteralTypeAnnotation=Kd;IY.assertStringTypeAnnotation=Bd;IY.assertSuper=zu;IY.assertSwitchCase=Oi;IY.assertSwitchStatement=vi;IY.assertSymbolTypeAnnotation=$d;IY.assertTSAnyKeyword=Ss;IY.assertTSArrayType=rs;IY.assertTSAsExpression=zp;IY.assertTSBaseType=In;IY.assertTSBigIntKeyword=Ls;IY.assertTSBooleanKeyword=Ps;IY.assertTSCallSignatureDeclaration=Ds;IY.assertTSConditionalType=os;IY.assertTSConstructSignatureDeclaration=Is;IY.assertTSConstructorType=ms;IY.assertTSDeclareFunction=qs;IY.assertTSDeclareMethod=Fs;IY.assertTSEntityName=dp;IY.assertTSEnumDeclaration=Bp;IY.assertTSEnumMember=$p;IY.assertTSExportAssignment=Ip;IY.assertTSExpressionWithTypeArguments=Zp;IY.assertTSExternalModuleReference=jp;IY.assertTSFunctionType=ys;IY.assertTSImportEqualsDeclaration=Fp;IY.assertTSImportType=qp;IY.assertTSIndexSignature=fs;IY.assertTSIndexedAccessType=Jp;IY.assertTSInferType=es;IY.assertTSInstantiationExpression=Wp;IY.assertTSInterfaceBody=Qp;IY.assertTSInterfaceDeclaration=Vp;IY.assertTSIntersectionType=ns;IY.assertTSIntrinsicKeyword=Ts;IY.assertTSLiteralType=Hp;IY.assertTSMappedType=Xp;IY.assertTSMethodSignature=Cs;IY.assertTSModuleBlock=Mp;IY.assertTSModuleDeclaration=Rp;IY.assertTSNamedTupleMember=ss;IY.assertTSNamespaceExportDeclaration=Ap;IY.assertTSNeverKeyword=ws;IY.assertTSNonNullExpression=Dp;IY.assertTSNullKeyword=Ns;IY.assertTSNumberKeyword=ks;IY.assertTSObjectKeyword=Es;IY.assertTSOptionalType=us;IY.assertTSParameterProperty=Ms;IY.assertTSParenthesizedType=ts;IY.assertTSPropertySignature=As;IY.assertTSQualifiedName=js;IY.assertTSRestType=ds;IY.assertTSSatisfiesExpression=Up;IY.assertTSStringKeyword=Os;IY.assertTSSymbolKeyword=vs;IY.assertTSThisType=hs;IY.assertTSTupleType=is;IY.assertTSType=Dn;IY.assertTSTypeAliasDeclaration=Yp;IY.assertTSTypeAnnotation=Cp;IY.assertTSTypeAssertion=Kp;IY.assertTSTypeElement=jn;IY.assertTSTypeLiteral=as;IY.assertTSTypeOperator=Gp;IY.assertTSTypeParameter=Pp;IY.assertTSTypeParameterDeclaration=Sp;IY.assertTSTypeParameterInstantiation=fp;IY.assertTSTypePredicate=ls;IY.assertTSTypeQuery=cs;IY.assertTSTypeReference=xs;IY.assertTSUndefinedKeyword=_s;IY.assertTSUnionType=ps;IY.assertTSUnknownKeyword=gs;IY.assertTSVoidKeyword=bs;IY.assertTaggedTemplateExpression=Uu;IY.assertTemplateElement=Ku;IY.assertTemplateLiteral=Bu;IY.assertTerminatorless=vp;IY.assertThisExpression=_i;IY.assertThisTypeAnnotation=Rd;IY.assertThrowStatement=gi;IY.assertTopicReference=Ks;IY.assertTryStatement=bi;IY.assertTupleExpression=Ws;IY.assertTupleTypeAnnotation=Md;IY.assertTypeAlias=Fd;IY.assertTypeAnnotation=jd;IY.assertTypeCastExpression=Dd;IY.assertTypeParameter=Id;IY.assertTypeParameterDeclaration=Ad;IY.assertTypeParameterInstantiation=Cd;IY.assertTypeScript=Fn;IY.assertTypeofTypeAnnotation=qd;IY.assertUnaryExpression=hi;IY.assertUnaryLike=Gn;IY.assertUnionTypeAnnotation=fd;IY.assertUpdateExpression=yi;IY.assertUserWhitespacable=np;IY.assertV8IntrinsicIdentifier=Gs;IY.assertVariableDeclaration=mi;IY.assertVariableDeclarator=xi;IY.assertVariance=Sd;IY.assertVoidTypeAnnotation=Pd;IY.assertWhile=hp;IY.assertWhileStatement=li;IY.assertWithStatement=ci;IY.assertYieldExpression=$u;var ir=N5(),A9=K9()});var SY=S((CY)=>{function W01(G){switch(G){case"string":return m2.stringTypeAnnotation();case"number":return m2.numberTypeAnnotation();case"undefined":return m2.voidTypeAnnotation();case"boolean":return m2.booleanTypeAnnotation();case"function":return m2.genericTypeAnnotation(m2.identifier("Function"));case"object":return m2.genericTypeAnnotation(m2.identifier("Object"));case"symbol":return m2.genericTypeAnnotation(m2.identifier("Symbol"));case"bigint":return m2.anyTypeAnnotation()}throw new Error("Invalid typeof value: "+G)}Object.defineProperty(CY,"__esModule",{value:!0});CY.default=void 0;var m2=W2(),bE1=CY.default=W01});var SX=S((TY)=>{function PY(G){return C9.isIdentifier(G)?G.name:`${G.id.name}.${PY(G.qualification)}`}function LY(G){const J=Array.from(G),X=new Map,H=new Map,Z=new Set,V=[];for(let Q=0;Q<J.length;Q++){const Y=J[Q];if(!Y)continue;if(V.includes(Y))continue;if(C9.isAnyTypeAnnotation(Y))return[Y];if(C9.isFlowBaseAnnotation(Y)){H.set(Y.type,Y);continue}if(C9.isUnionTypeAnnotation(Y)){if(!Z.has(Y.types))J.push(...Y.types),Z.add(Y.types);continue}if(C9.isGenericTypeAnnotation(Y)){const W=PY(Y.id);if(X.has(W)){let z=X.get(W);if(z.typeParameters){if(Y.typeParameters)z.typeParameters.params.push(...Y.typeParameters.params),z.typeParameters.params=LY(z.typeParameters.params)}else z=Y.typeParameters}else X.set(W,Y);continue}V.push(Y)}for(let[,Q]of H)V.push(Q);for(let[,Q]of X)V.push(Q);return V}Object.defineProperty(TY,"__esModule",{value:!0});TY.default=LY;var C9=r1()});var NY=S((wY)=>{function B01(G){const J=K01.default(G);if(J.length===1)return J[0];else return U01.unionTypeAnnotation(J)}Object.defineProperty(wY,"__esModule",{value:!0});wY.default=B01;var U01=W2(),K01=SX()});var vY=S((OY)=>{function kY(G){return f9.isIdentifier(G)?G.name:`${G.right.name}.${kY(G.left)}`}function EY(G){const J=Array.from(G),X=new Map,H=new Map,Z=new Set,V=[];for(let Q=0;Q<J.length;Q++){const Y=J[Q];if(!Y)continue;if(V.includes(Y))continue;if(f9.isTSAnyKeyword(Y))return[Y];if(f9.isTSBaseType(Y)){H.set(Y.type,Y);continue}if(f9.isTSUnionType(Y)){if(!Z.has(Y.types))J.push(...Y.types),Z.add(Y.types);continue}if(f9.isTSTypeReference(Y)&&Y.typeParameters){const W=kY(Y.typeName);if(X.has(W)){let z=X.get(W);if(z.typeParameters){if(Y.typeParameters)z.typeParameters.params.push(...Y.typeParameters.params),z.typeParameters.params=EY(z.typeParameters.params)}else z=Y.typeParameters}else X.set(W,Y);continue}V.push(Y)}for(let[,Q]of H)V.push(Q);for(let[,Q]of X)V.push(Q);return V}Object.defineProperty(OY,"__esModule",{value:!0});OY.default=EY;var f9=r1()});var gY=S((_Y)=>{function j01(G){const J=G.map((H)=>{return F01.isTSTypeAnnotation(H)?H.typeAnnotation:H}),X=q01.default(J);if(X.length===1)return X[0];else return M01.tsUnionType(X)}Object.defineProperty(_Y,"__esModule",{value:!0});_Y.default=j01;var M01=W2(),q01=vY(),F01=r1()});var bY=S((D)=>{Object.defineProperty(D,"__esModule",{value:!0});Object.defineProperty(D,"AnyTypeAnnotation",{enumerable:!0,get:function(){return I.anyTypeAnnotation}});Object.defineProperty(D,"ArgumentPlaceholder",{enumerable:!0,get:function(){return I.argumentPlaceholder}});Object.defineProperty(D,"ArrayExpression",{enumerable:!0,get:function(){return I.arrayExpression}});Object.defineProperty(D,"ArrayPattern",{enumerable:!0,get:function(){return I.arrayPattern}});Object.defineProperty(D,"ArrayTypeAnnotation",{enumerable:!0,get:function(){return I.arrayTypeAnnotation}});Object.defineProperty(D,"ArrowFunctionExpression",{enumerable:!0,get:function(){return I.arrowFunctionExpression}});Object.defineProperty(D,"AssignmentExpression",{enumerable:!0,get:function(){return I.assignmentExpression}});Object.defineProperty(D,"AssignmentPattern",{enumerable:!0,get:function(){return I.assignmentPattern}});Object.defineProperty(D,"AwaitExpression",{enumerable:!0,get:function(){return I.awaitExpression}});Object.defineProperty(D,"BigIntLiteral",{enumerable:!0,get:function(){return I.bigIntLiteral}});Object.defineProperty(D,"BinaryExpression",{enumerable:!0,get:function(){return I.binaryExpression}});Object.defineProperty(D,"BindExpression",{enumerable:!0,get:function(){return I.bindExpression}});Object.defineProperty(D,"BlockStatement",{enumerable:!0,get:function(){return I.blockStatement}});Object.defineProperty(D,"BooleanLiteral",{enumerable:!0,get:function(){return I.booleanLiteral}});Object.defineProperty(D,"BooleanLiteralTypeAnnotation",{enumerable:!0,get:function(){return I.booleanLiteralTypeAnnotation}});Object.defineProperty(D,"BooleanTypeAnnotation",{enumerable:!0,get:function(){return I.booleanTypeAnnotation}});Object.defineProperty(D,"BreakStatement",{enumerable:!0,get:function(){return I.breakStatement}});Object.defineProperty(D,"CallExpression",{enumerable:!0,get:function(){return I.callExpression}});Object.defineProperty(D,"CatchClause",{enumerable:!0,get:function(){return I.catchClause}});Object.defineProperty(D,"ClassAccessorProperty",{enumerable:!0,get:function(){return I.classAccessorProperty}});Object.defineProperty(D,"ClassBody",{enumerable:!0,get:function(){return I.classBody}});Object.defineProperty(D,"ClassDeclaration",{enumerable:!0,get:function(){return I.classDeclaration}});Object.defineProperty(D,"ClassExpression",{enumerable:!0,get:function(){return I.classExpression}});Object.defineProperty(D,"ClassImplements",{enumerable:!0,get:function(){return I.classImplements}});Object.defineProperty(D,"ClassMethod",{enumerable:!0,get:function(){return I.classMethod}});Object.defineProperty(D,"ClassPrivateMethod",{enumerable:!0,get:function(){return I.classPrivateMethod}});Object.defineProperty(D,"ClassPrivateProperty",{enumerable:!0,get:function(){return I.classPrivateProperty}});Object.defineProperty(D,"ClassProperty",{enumerable:!0,get:function(){return I.classProperty}});Object.defineProperty(D,"ConditionalExpression",{enumerable:!0,get:function(){return I.conditionalExpression}});Object.defineProperty(D,"ContinueStatement",{enumerable:!0,get:function(){return I.continueStatement}});Object.defineProperty(D,"DebuggerStatement",{enumerable:!0,get:function(){return I.debuggerStatement}});Object.defineProperty(D,"DecimalLiteral",{enumerable:!0,get:function(){return I.decimalLiteral}});Object.defineProperty(D,"DeclareClass",{enumerable:!0,get:function(){return I.declareClass}});Object.defineProperty(D,"DeclareExportAllDeclaration",{enumerable:!0,get:function(){return I.declareExportAllDeclaration}});Object.defineProperty(D,"DeclareExportDeclaration",{enumerable:!0,get:function(){return I.declareExportDeclaration}});Object.defineProperty(D,"DeclareFunction",{enumerable:!0,get:function(){return I.declareFunction}});Object.defineProperty(D,"DeclareInterface",{enumerable:!0,get:function(){return I.declareInterface}});Object.defineProperty(D,"DeclareModule",{enumerable:!0,get:function(){return I.declareModule}});Object.defineProperty(D,"DeclareModuleExports",{enumerable:!0,get:function(){return I.declareModuleExports}});Object.defineProperty(D,"DeclareOpaqueType",{enumerable:!0,get:function(){return I.declareOpaqueType}});Object.defineProperty(D,"DeclareTypeAlias",{enumerable:!0,get:function(){return I.declareTypeAlias}});Object.defineProperty(D,"DeclareVariable",{enumerable:!0,get:function(){return I.declareVariable}});Object.defineProperty(D,"DeclaredPredicate",{enumerable:!0,get:function(){return I.declaredPredicate}});Object.defineProperty(D,"Decorator",{enumerable:!0,get:function(){return I.decorator}});Object.defineProperty(D,"Directive",{enumerable:!0,get:function(){return I.directive}});Object.defineProperty(D,"DirectiveLiteral",{enumerable:!0,get:function(){return I.directiveLiteral}});Object.defineProperty(D,"DoExpression",{enumerable:!0,get:function(){return I.doExpression}});Object.defineProperty(D,"DoWhileStatement",{enumerable:!0,get:function(){return I.doWhileStatement}});Object.defineProperty(D,"EmptyStatement",{enumerable:!0,get:function(){return I.emptyStatement}});Object.defineProperty(D,"EmptyTypeAnnotation",{enumerable:!0,get:function(){return I.emptyTypeAnnotation}});Object.defineProperty(D,"EnumBooleanBody",{enumerable:!0,get:function(){return I.enumBooleanBody}});Object.defineProperty(D,"EnumBooleanMember",{enumerable:!0,get:function(){return I.enumBooleanMember}});Object.defineProperty(D,"EnumDeclaration",{enumerable:!0,get:function(){return I.enumDeclaration}});Object.defineProperty(D,"EnumDefaultedMember",{enumerable:!0,get:function(){return I.enumDefaultedMember}});Object.defineProperty(D,"EnumNumberBody",{enumerable:!0,get:function(){return I.enumNumberBody}});Object.defineProperty(D,"EnumNumberMember",{enumerable:!0,get:function(){return I.enumNumberMember}});Object.defineProperty(D,"EnumStringBody",{enumerable:!0,get:function(){return I.enumStringBody}});Object.defineProperty(D,"EnumStringMember",{enumerable:!0,get:function(){return I.enumStringMember}});Object.defineProperty(D,"EnumSymbolBody",{enumerable:!0,get:function(){return I.enumSymbolBody}});Object.defineProperty(D,"ExistsTypeAnnotation",{enumerable:!0,get:function(){return I.existsTypeAnnotation}});Object.defineProperty(D,"ExportAllDeclaration",{enumerable:!0,get:function(){return I.exportAllDeclaration}});Object.defineProperty(D,"ExportDefaultDeclaration",{enumerable:!0,get:function(){return I.exportDefaultDeclaration}});Object.defineProperty(D,"ExportDefaultSpecifier",{enumerable:!0,get:function(){return I.exportDefaultSpecifier}});Object.defineProperty(D,"ExportNamedDeclaration",{enumerable:!0,get:function(){return I.exportNamedDeclaration}});Object.defineProperty(D,"ExportNamespaceSpecifier",{enumerable:!0,get:function(){return I.exportNamespaceSpecifier}});Object.defineProperty(D,"ExportSpecifier",{enumerable:!0,get:function(){return I.exportSpecifier}});Object.defineProperty(D,"ExpressionStatement",{enumerable:!0,get:function(){return I.expressionStatement}});Object.defineProperty(D,"File",{enumerable:!0,get:function(){return I.file}});Object.defineProperty(D,"ForInStatement",{enumerable:!0,get:function(){return I.forInStatement}});Object.defineProperty(D,"ForOfStatement",{enumerable:!0,get:function(){return I.forOfStatement}});Object.defineProperty(D,"ForStatement",{enumerable:!0,get:function(){return I.forStatement}});Object.defineProperty(D,"FunctionDeclaration",{enumerable:!0,get:function(){return I.functionDeclaration}});Object.defineProperty(D,"FunctionExpression",{enumerable:!0,get:function(){return I.functionExpression}});Object.defineProperty(D,"FunctionTypeAnnotation",{enumerable:!0,get:function(){return I.functionTypeAnnotation}});Object.defineProperty(D,"FunctionTypeParam",{enumerable:!0,get:function(){return I.functionTypeParam}});Object.defineProperty(D,"GenericTypeAnnotation",{enumerable:!0,get:function(){return I.genericTypeAnnotation}});Object.defineProperty(D,"Identifier",{enumerable:!0,get:function(){return I.identifier}});Object.defineProperty(D,"IfStatement",{enumerable:!0,get:function(){return I.ifStatement}});Object.defineProperty(D,"Import",{enumerable:!0,get:function(){return I.import}});Object.defineProperty(D,"ImportAttribute",{enumerable:!0,get:function(){return I.importAttribute}});Object.defineProperty(D,"ImportDeclaration",{enumerable:!0,get:function(){return I.importDeclaration}});Object.defineProperty(D,"ImportDefaultSpecifier",{enumerable:!0,get:function(){return I.importDefaultSpecifier}});Object.defineProperty(D,"ImportExpression",{enumerable:!0,get:function(){return I.importExpression}});Object.defineProperty(D,"ImportNamespaceSpecifier",{enumerable:!0,get:function(){return I.importNamespaceSpecifier}});Object.defineProperty(D,"ImportSpecifier",{enumerable:!0,get:function(){return I.importSpecifier}});Object.defineProperty(D,"IndexedAccessType",{enumerable:!0,get:function(){return I.indexedAccessType}});Object.defineProperty(D,"InferredPredicate",{enumerable:!0,get:function(){return I.inferredPredicate}});Object.defineProperty(D,"InterfaceDeclaration",{enumerable:!0,get:function(){return I.interfaceDeclaration}});Object.defineProperty(D,"InterfaceExtends",{enumerable:!0,get:function(){return I.interfaceExtends}});Object.defineProperty(D,"InterfaceTypeAnnotation",{enumerable:!0,get:function(){return I.interfaceTypeAnnotation}});Object.defineProperty(D,"InterpreterDirective",{enumerable:!0,get:function(){return I.interpreterDirective}});Object.defineProperty(D,"IntersectionTypeAnnotation",{enumerable:!0,get:function(){return I.intersectionTypeAnnotation}});Object.defineProperty(D,"JSXAttribute",{enumerable:!0,get:function(){return I.jsxAttribute}});Object.defineProperty(D,"JSXClosingElement",{enumerable:!0,get:function(){return I.jsxClosingElement}});Object.defineProperty(D,"JSXClosingFragment",{enumerable:!0,get:function(){return I.jsxClosingFragment}});Object.defineProperty(D,"JSXElement",{enumerable:!0,get:function(){return I.jsxElement}});Object.defineProperty(D,"JSXEmptyExpression",{enumerable:!0,get:function(){return I.jsxEmptyExpression}});Object.defineProperty(D,"JSXExpressionContainer",{enumerable:!0,get:function(){return I.jsxExpressionContainer}});Object.defineProperty(D,"JSXFragment",{enumerable:!0,get:function(){return I.jsxFragment}});Object.defineProperty(D,"JSXIdentifier",{enumerable:!0,get:function(){return I.jsxIdentifier}});Object.defineProperty(D,"JSXMemberExpression",{enumerable:!0,get:function(){return I.jsxMemberExpression}});Object.defineProperty(D,"JSXNamespacedName",{enumerable:!0,get:function(){return I.jsxNamespacedName}});Object.defineProperty(D,"JSXOpeningElement",{enumerable:!0,get:function(){return I.jsxOpeningElement}});Object.defineProperty(D,"JSXOpeningFragment",{enumerable:!0,get:function(){return I.jsxOpeningFragment}});Object.defineProperty(D,"JSXSpreadAttribute",{enumerable:!0,get:function(){return I.jsxSpreadAttribute}});Object.defineProperty(D,"JSXSpreadChild",{enumerable:!0,get:function(){return I.jsxSpreadChild}});Object.defineProperty(D,"JSXText",{enumerable:!0,get:function(){return I.jsxText}});Object.defineProperty(D,"LabeledStatement",{enumerable:!0,get:function(){return I.labeledStatement}});Object.defineProperty(D,"LogicalExpression",{enumerable:!0,get:function(){return I.logicalExpression}});Object.defineProperty(D,"MemberExpression",{enumerable:!0,get:function(){return I.memberExpression}});Object.defineProperty(D,"MetaProperty",{enumerable:!0,get:function(){return I.metaProperty}});Object.defineProperty(D,"MixedTypeAnnotation",{enumerable:!0,get:function(){return I.mixedTypeAnnotation}});Object.defineProperty(D,"ModuleExpression",{enumerable:!0,get:function(){return I.moduleExpression}});Object.defineProperty(D,"NewExpression",{enumerable:!0,get:function(){return I.newExpression}});Object.defineProperty(D,"Noop",{enumerable:!0,get:function(){return I.noop}});Object.defineProperty(D,"NullLiteral",{enumerable:!0,get:function(){return I.nullLiteral}});Object.defineProperty(D,"NullLiteralTypeAnnotation",{enumerable:!0,get:function(){return I.nullLiteralTypeAnnotation}});Object.defineProperty(D,"NullableTypeAnnotation",{enumerable:!0,get:function(){return I.nullableTypeAnnotation}});Object.defineProperty(D,"NumberLiteral",{enumerable:!0,get:function(){return I.numberLiteral}});Object.defineProperty(D,"NumberLiteralTypeAnnotation",{enumerable:!0,get:function(){return I.numberLiteralTypeAnnotation}});Object.defineProperty(D,"NumberTypeAnnotation",{enumerable:!0,get:function(){return I.numberTypeAnnotation}});Object.defineProperty(D,"NumericLiteral",{enumerable:!0,get:function(){return I.numericLiteral}});Object.defineProperty(D,"ObjectExpression",{enumerable:!0,get:function(){return I.objectExpression}});Object.defineProperty(D,"ObjectMethod",{enumerable:!0,get:function(){return I.objectMethod}});Object.defineProperty(D,"ObjectPattern",{enumerable:!0,get:function(){return I.objectPattern}});Object.defineProperty(D,"ObjectProperty",{enumerable:!0,get:function(){return I.objectProperty}});Object.defineProperty(D,"ObjectTypeAnnotation",{enumerable:!0,get:function(){return I.objectTypeAnnotation}});Object.defineProperty(D,"ObjectTypeCallProperty",{enumerable:!0,get:function(){return I.objectTypeCallProperty}});Object.defineProperty(D,"ObjectTypeIndexer",{enumerable:!0,get:function(){return I.objectTypeIndexer}});Object.defineProperty(D,"ObjectTypeInternalSlot",{enumerable:!0,get:function(){return I.objectTypeInternalSlot}});Object.defineProperty(D,"ObjectTypeProperty",{enumerable:!0,get:function(){return I.objectTypeProperty}});Object.defineProperty(D,"ObjectTypeSpreadProperty",{enumerable:!0,get:function(){return I.objectTypeSpreadProperty}});Object.defineProperty(D,"OpaqueType",{enumerable:!0,get:function(){return I.opaqueType}});Object.defineProperty(D,"OptionalCallExpression",{enumerable:!0,get:function(){return I.optionalCallExpression}});Object.defineProperty(D,"OptionalIndexedAccessType",{enumerable:!0,get:function(){return I.optionalIndexedAccessType}});Object.defineProperty(D,"OptionalMemberExpression",{enumerable:!0,get:function(){return I.optionalMemberExpression}});Object.defineProperty(D,"ParenthesizedExpression",{enumerable:!0,get:function(){return I.parenthesizedExpression}});Object.defineProperty(D,"PipelineBareFunction",{enumerable:!0,get:function(){return I.pipelineBareFunction}});Object.defineProperty(D,"PipelinePrimaryTopicReference",{enumerable:!0,get:function(){return I.pipelinePrimaryTopicReference}});Object.defineProperty(D,"PipelineTopicExpression",{enumerable:!0,get:function(){return I.pipelineTopicExpression}});Object.defineProperty(D,"Placeholder",{enumerable:!0,get:function(){return I.placeholder}});Object.defineProperty(D,"PrivateName",{enumerable:!0,get:function(){return I.privateName}});Object.defineProperty(D,"Program",{enumerable:!0,get:function(){return I.program}});Object.defineProperty(D,"QualifiedTypeIdentifier",{enumerable:!0,get:function(){return I.qualifiedTypeIdentifier}});Object.defineProperty(D,"RecordExpression",{enumerable:!0,get:function(){return I.recordExpression}});Object.defineProperty(D,"RegExpLiteral",{enumerable:!0,get:function(){return I.regExpLiteral}});Object.defineProperty(D,"RegexLiteral",{enumerable:!0,get:function(){return I.regexLiteral}});Object.defineProperty(D,"RestElement",{enumerable:!0,get:function(){return I.restElement}});Object.defineProperty(D,"RestProperty",{enumerable:!0,get:function(){return I.restProperty}});Object.defineProperty(D,"ReturnStatement",{enumerable:!0,get:function(){return I.returnStatement}});Object.defineProperty(D,"SequenceExpression",{enumerable:!0,get:function(){return I.sequenceExpression}});Object.defineProperty(D,"SpreadElement",{enumerable:!0,get:function(){return I.spreadElement}});Object.defineProperty(D,"SpreadProperty",{enumerable:!0,get:function(){return I.spreadProperty}});Object.defineProperty(D,"StaticBlock",{enumerable:!0,get:function(){return I.staticBlock}});Object.defineProperty(D,"StringLiteral",{enumerable:!0,get:function(){return I.stringLiteral}});Object.defineProperty(D,"StringLiteralTypeAnnotation",{enumerable:!0,get:function(){return I.stringLiteralTypeAnnotation}});Object.defineProperty(D,"StringTypeAnnotation",{enumerable:!0,get:function(){return I.stringTypeAnnotation}});Object.defineProperty(D,"Super",{enumerable:!0,get:function(){return I.super}});Object.defineProperty(D,"SwitchCase",{enumerable:!0,get:function(){return I.switchCase}});Object.defineProperty(D,"SwitchStatement",{enumerable:!0,get:function(){return I.switchStatement}});Object.defineProperty(D,"SymbolTypeAnnotation",{enumerable:!0,get:function(){return I.symbolTypeAnnotation}});Object.defineProperty(D,"TSAnyKeyword",{enumerable:!0,get:function(){return I.tsAnyKeyword}});Object.defineProperty(D,"TSArrayType",{enumerable:!0,get:function(){return I.tsArrayType}});Object.defineProperty(D,"TSAsExpression",{enumerable:!0,get:function(){return I.tsAsExpression}});Object.defineProperty(D,"TSBigIntKeyword",{enumerable:!0,get:function(){return I.tsBigIntKeyword}});Object.defineProperty(D,"TSBooleanKeyword",{enumerable:!0,get:function(){return I.tsBooleanKeyword}});Object.defineProperty(D,"TSCallSignatureDeclaration",{enumerable:!0,get:function(){return I.tsCallSignatureDeclaration}});Object.defineProperty(D,"TSConditionalType",{enumerable:!0,get:function(){return I.tsConditionalType}});Object.defineProperty(D,"TSConstructSignatureDeclaration",{enumerable:!0,get:function(){return I.tsConstructSignatureDeclaration}});Object.defineProperty(D,"TSConstructorType",{enumerable:!0,get:function(){return I.tsConstructorType}});Object.defineProperty(D,"TSDeclareFunction",{enumerable:!0,get:function(){return I.tsDeclareFunction}});Object.defineProperty(D,"TSDeclareMethod",{enumerable:!0,get:function(){return I.tsDeclareMethod}});Object.defineProperty(D,"TSEnumDeclaration",{enumerable:!0,get:function(){return I.tsEnumDeclaration}});Object.defineProperty(D,"TSEnumMember",{enumerable:!0,get:function(){return I.tsEnumMember}});Object.defineProperty(D,"TSExportAssignment",{enumerable:!0,get:function(){return I.tsExportAssignment}});Object.defineProperty(D,"TSExpressionWithTypeArguments",{enumerable:!0,get:function(){return I.tsExpressionWithTypeArguments}});Object.defineProperty(D,"TSExternalModuleReference",{enumerable:!0,get:function(){return I.tsExternalModuleReference}});Object.defineProperty(D,"TSFunctionType",{enumerable:!0,get:function(){return I.tsFunctionType}});Object.defineProperty(D,"TSImportEqualsDeclaration",{enumerable:!0,get:function(){return I.tsImportEqualsDeclaration}});Object.defineProperty(D,"TSImportType",{enumerable:!0,get:function(){return I.tsImportType}});Object.defineProperty(D,"TSIndexSignature",{enumerable:!0,get:function(){return I.tsIndexSignature}});Object.defineProperty(D,"TSIndexedAccessType",{enumerable:!0,get:function(){return I.tsIndexedAccessType}});Object.defineProperty(D,"TSInferType",{enumerable:!0,get:function(){return I.tsInferType}});Object.defineProperty(D,"TSInstantiationExpression",{enumerable:!0,get:function(){return I.tsInstantiationExpression}});Object.defineProperty(D,"TSInterfaceBody",{enumerable:!0,get:function(){return I.tsInterfaceBody}});Object.defineProperty(D,"TSInterfaceDeclaration",{enumerable:!0,get:function(){return I.tsInterfaceDeclaration}});Object.defineProperty(D,"TSIntersectionType",{enumerable:!0,get:function(){return I.tsIntersectionType}});Object.defineProperty(D,"TSIntrinsicKeyword",{enumerable:!0,get:function(){return I.tsIntrinsicKeyword}});Object.defineProperty(D,"TSLiteralType",{enumerable:!0,get:function(){return I.tsLiteralType}});Object.defineProperty(D,"TSMappedType",{enumerable:!0,get:function(){return I.tsMappedType}});Object.defineProperty(D,"TSMethodSignature",{enumerable:!0,get:function(){return I.tsMethodSignature}});Object.defineProperty(D,"TSModuleBlock",{enumerable:!0,get:function(){return I.tsModuleBlock}});Object.defineProperty(D,"TSModuleDeclaration",{enumerable:!0,get:function(){return I.tsModuleDeclaration}});Object.defineProperty(D,"TSNamedTupleMember",{enumerable:!0,get:function(){return I.tsNamedTupleMember}});Object.defineProperty(D,"TSNamespaceExportDeclaration",{enumerable:!0,get:function(){return I.tsNamespaceExportDeclaration}});Object.defineProperty(D,"TSNeverKeyword",{enumerable:!0,get:function(){return I.tsNeverKeyword}});Object.defineProperty(D,"TSNonNullExpression",{enumerable:!0,get:function(){return I.tsNonNullExpression}});Object.defineProperty(D,"TSNullKeyword",{enumerable:!0,get:function(){return I.tsNullKeyword}});Object.defineProperty(D,"TSNumberKeyword",{enumerable:!0,get:function(){return I.tsNumberKeyword}});Object.defineProperty(D,"TSObjectKeyword",{enumerable:!0,get:function(){return I.tsObjectKeyword}});Object.defineProperty(D,"TSOptionalType",{enumerable:!0,get:function(){return I.tsOptionalType}});Object.defineProperty(D,"TSParameterProperty",{enumerable:!0,get:function(){return I.tsParameterProperty}});Object.defineProperty(D,"TSParenthesizedType",{enumerable:!0,get:function(){return I.tsParenthesizedType}});Object.defineProperty(D,"TSPropertySignature",{enumerable:!0,get:function(){return I.tsPropertySignature}});Object.defineProperty(D,"TSQualifiedName",{enumerable:!0,get:function(){return I.tsQualifiedName}});Object.defineProperty(D,"TSRestType",{enumerable:!0,get:function(){return I.tsRestType}});Object.defineProperty(D,"TSSatisfiesExpression",{enumerable:!0,get:function(){return I.tsSatisfiesExpression}});Object.defineProperty(D,"TSStringKeyword",{enumerable:!0,get:function(){return I.tsStringKeyword}});Object.defineProperty(D,"TSSymbolKeyword",{enumerable:!0,get:function(){return I.tsSymbolKeyword}});Object.defineProperty(D,"TSThisType",{enumerable:!0,get:function(){return I.tsThisType}});Object.defineProperty(D,"TSTupleType",{enumerable:!0,get:function(){return I.tsTupleType}});Object.defineProperty(D,"TSTypeAliasDeclaration",{enumerable:!0,get:function(){return I.tsTypeAliasDeclaration}});Object.defineProperty(D,"TSTypeAnnotation",{enumerable:!0,get:function(){return I.tsTypeAnnotation}});Object.defineProperty(D,"TSTypeAssertion",{enumerable:!0,get:function(){return I.tsTypeAssertion}});Object.defineProperty(D,"TSTypeLiteral",{enumerable:!0,get:function(){return I.tsTypeLiteral}});Object.defineProperty(D,"TSTypeOperator",{enumerable:!0,get:function(){return I.tsTypeOperator}});Object.defineProperty(D,"TSTypeParameter",{enumerable:!0,get:function(){return I.tsTypeParameter}});Object.defineProperty(D,"TSTypeParameterDeclaration",{enumerable:!0,get:function(){return I.tsTypeParameterDeclaration}});Object.defineProperty(D,"TSTypeParameterInstantiation",{enumerable:!0,get:function(){return I.tsTypeParameterInstantiation}});Object.defineProperty(D,"TSTypePredicate",{enumerable:!0,get:function(){return I.tsTypePredicate}});Object.defineProperty(D,"TSTypeQuery",{enumerable:!0,get:function(){return I.tsTypeQuery}});Object.defineProperty(D,"TSTypeReference",{enumerable:!0,get:function(){return I.tsTypeReference}});Object.defineProperty(D,"TSUndefinedKeyword",{enumerable:!0,get:function(){return I.tsUndefinedKeyword}});Object.defineProperty(D,"TSUnionType",{enumerable:!0,get:function(){return I.tsUnionType}});Object.defineProperty(D,"TSUnknownKeyword",{enumerable:!0,get:function(){return I.tsUnknownKeyword}});Object.defineProperty(D,"TSVoidKeyword",{enumerable:!0,get:function(){return I.tsVoidKeyword}});Object.defineProperty(D,"TaggedTemplateExpression",{enumerable:!0,get:function(){return I.taggedTemplateExpression}});Object.defineProperty(D,"TemplateElement",{enumerable:!0,get:function(){return I.templateElement}});Object.defineProperty(D,"TemplateLiteral",{enumerable:!0,get:function(){return I.templateLiteral}});Object.defineProperty(D,"ThisExpression",{enumerable:!0,get:function(){return I.thisExpression}});Object.defineProperty(D,"ThisTypeAnnotation",{enumerable:!0,get:function(){return I.thisTypeAnnotation}});Object.defineProperty(D,"ThrowStatement",{enumerable:!0,get:function(){return I.throwStatement}});Object.defineProperty(D,"TopicReference",{enumerable:!0,get:function(){return I.topicReference}});Object.defineProperty(D,"TryStatement",{enumerable:!0,get:function(){return I.tryStatement}});Object.defineProperty(D,"TupleExpression",{enumerable:!0,get:function(){return I.tupleExpression}});Object.defineProperty(D,"TupleTypeAnnotation",{enumerable:!0,get:function(){return I.tupleTypeAnnotation}});Object.defineProperty(D,"TypeAlias",{enumerable:!0,get:function(){return I.typeAlias}});Object.defineProperty(D,"TypeAnnotation",{enumerable:!0,get:function(){return I.typeAnnotation}});Object.defineProperty(D,"TypeCastExpression",{enumerable:!0,get:function(){return I.typeCastExpression}});Object.defineProperty(D,"TypeParameter",{enumerable:!0,get:function(){return I.typeParameter}});Object.defineProperty(D,"TypeParameterDeclaration",{enumerable:!0,get:function(){return I.typeParameterDeclaration}});Object.defineProperty(D,"TypeParameterInstantiation",{enumerable:!0,get:function(){return I.typeParameterInstantiation}});Object.defineProperty(D,"TypeofTypeAnnotation",{enumerable:!0,get:function(){return I.typeofTypeAnnotation}});Object.defineProperty(D,"UnaryExpression",{enumerable:!0,get:function(){return I.unaryExpression}});Object.defineProperty(D,"UnionTypeAnnotation",{enumerable:!0,get:function(){return I.unionTypeAnnotation}});Object.defineProperty(D,"UpdateExpression",{enumerable:!0,get:function(){return I.updateExpression}});Object.defineProperty(D,"V8IntrinsicIdentifier",{enumerable:!0,get:function(){return I.v8IntrinsicIdentifier}});Object.defineProperty(D,"VariableDeclaration",{enumerable:!0,get:function(){return I.variableDeclaration}});Object.defineProperty(D,"VariableDeclarator",{enumerable:!0,get:function(){return I.variableDeclarator}});Object.defineProperty(D,"Variance",{enumerable:!0,get:function(){return I.variance}});Object.defineProperty(D,"VoidTypeAnnotation",{enumerable:!0,get:function(){return I.voidTypeAnnotation}});Object.defineProperty(D,"WhileStatement",{enumerable:!0,get:function(){return I.whileStatement}});Object.defineProperty(D,"WithStatement",{enumerable:!0,get:function(){return I.withStatement}});Object.defineProperty(D,"YieldExpression",{enumerable:!0,get:function(){return I.yieldExpression}});var I=W2()});var PX=S((yY)=>{function I01(){return hY.unaryExpression("void",hY.numericLiteral(0),!0)}Object.defineProperty(yY,"__esModule",{value:!0});yY.buildUndefinedNode=I01;var hY=W2()});var T0=S((aY)=>{function lY(G,J,X,H){if(G&&typeof G.type==="string")return cY(G,J,X,H);return G}function LX(G,J,X,H){if(Array.isArray(G))return G.map((Z)=>lY(Z,J,X,H));return lY(G,J,X,H)}function C01(G,J=!0,X=!1){return cY(G,J,X,new Map)}function cY(G,J=!0,X=!1,H){if(!G)return G;const{type:Z}=G,V={type:G.type};if(xY.isIdentifier(G)){if(V.name=G.name,n2(G,"optional")&&typeof G.optional==="boolean")V.optional=G.optional;if(n2(G,"typeAnnotation"))V.typeAnnotation=J?LX(G.typeAnnotation,!0,X,H):G.typeAnnotation;if(n2(G,"decorators"))V.decorators=J?LX(G.decorators,!0,X,H):G.decorators}else if(!n2(mY.NODE_FIELDS,Z))throw new Error(`Unknown node type: "${Z}"`);else for(let Q of Object.keys(mY.NODE_FIELDS[Z]))if(n2(G,Q))if(J)V[Q]=xY.isFile(G)&&Q==="comments"?FG(G.comments,J,X,H):LX(G[Q],!0,X,H);else V[Q]=G[Q];if(n2(G,"loc"))if(X)V.loc=null;else V.loc=G.loc;if(n2(G,"leadingComments"))V.leadingComments=FG(G.leadingComments,J,X,H);if(n2(G,"innerComments"))V.innerComments=FG(G.innerComments,J,X,H);if(n2(G,"trailingComments"))V.trailingComments=FG(G.trailingComments,J,X,H);if(n2(G,"extra"))V.extra=Object.assign({},G.extra);return V}function FG(G,J,X,H){if(!G||!J)return G;return G.map((Z)=>{const V=H.get(Z);if(V)return V;const{type:Q,value:Y,loc:W}=Z,z={type:Q,value:Y,loc:W};if(X)z.loc=null;return H.set(Z,z),z})}Object.defineProperty(aY,"__esModule",{value:!0});aY.default=C01;var mY=N2(),xY=r1(),{hasOwn:n2}={hasOwn:Function.call.bind(Object.prototype.hasOwnProperty)}});var iY=S((rY)=>{function P01(G){return S01.default(G,!1)}Object.defineProperty(rY,"__esModule",{value:!0});rY.default=P01;var S01=T0()});var dY=S((uY)=>{function w01(G){return T01.default(G)}Object.defineProperty(uY,"__esModule",{value:!0});uY.default=w01;var T01=T0()});var pY=S((sY)=>{function E01(G){return k01.default(G,!0,!0)}Object.defineProperty(sY,"__esModule",{value:!0});sY.default=E01;var k01=T0()});var oY=S((nY)=>{function _01(G){return v01.default(G,!1,!0)}Object.defineProperty(nY,"__esModule",{value:!0});nY.default=_01;var v01=T0()});var TX=S((eY)=>{function b01(G,J,X){if(!X||!G)return G;const H=`${J}Comments`;if(G[H])if(J==="leading")G[H]=X.concat(G[H]);else G[H].push(...X);else G[H]=X;return G}Object.defineProperty(eY,"__esModule",{value:!0});eY.default=b01});var GW=S((tY)=>{function m01(G,J,X,H){return y01.default(G,J,[{type:H?"CommentLine":"CommentBlock",value:X}])}Object.defineProperty(tY,"__esModule",{value:!0});tY.default=m01;var y01=TX()});var jG=S((JW)=>{function l01(G,J,X){if(J&&X)J[G]=Array.from(new Set([].concat(J[G],X[G]).filter(Boolean)))}Object.defineProperty(JW,"__esModule",{value:!0});JW.default=l01});var wX=S((XW)=>{function r01(G,J){a01.default("innerComments",G,J)}Object.defineProperty(XW,"__esModule",{value:!0});XW.default=r01;var a01=jG()});var NX=S((HW)=>{function d01(G,J){u01.default("leadingComments",G,J)}Object.defineProperty(HW,"__esModule",{value:!0});HW.default=d01;var u01=jG()});var kX=S((ZW)=>{function n01(G,J){p01.default("trailingComments",G,J)}Object.defineProperty(ZW,"__esModule",{value:!0});ZW.default=n01;var p01=jG()});var EX=S((VW)=>{function J51(G,J){return e01.default(G,J),t01.default(G,J),G51.default(G,J),G}Object.defineProperty(VW,"__esModule",{value:!0});VW.default=J51;var e01=kX(),t01=NX(),G51=wX()});var YW=S((QW)=>{function Z51(G){return H51.COMMENT_KEYS.forEach((J)=>{G[J]=null}),G}Object.defineProperty(QW,"__esModule",{value:!0});QW.default=Z51;var H51=P0()});var UW=S((WW)=>{Object.defineProperty(WW,"__esModule",{value:!0});WW.WHILE_TYPES=WW.USERWHITESPACABLE_TYPES=WW.UNARYLIKE_TYPES=WW.TYPESCRIPT_TYPES=WW.TSTYPE_TYPES=WW.TSTYPEELEMENT_TYPES=WW.TSENTITYNAME_TYPES=WW.TSBASETYPE_TYPES=WW.TERMINATORLESS_TYPES=WW.STATEMENT_TYPES=WW.STANDARDIZED_TYPES=WW.SCOPABLE_TYPES=WW.PUREISH_TYPES=WW.PROPERTY_TYPES=WW.PRIVATE_TYPES=WW.PATTERN_TYPES=WW.PATTERNLIKE_TYPES=WW.OBJECTMEMBER_TYPES=WW.MODULESPECIFIER_TYPES=WW.MODULEDECLARATION_TYPES=WW.MISCELLANEOUS_TYPES=WW.METHOD_TYPES=WW.LVAL_TYPES=WW.LOOP_TYPES=WW.LITERAL_TYPES=WW.JSX_TYPES=WW.IMPORTOREXPORTDECLARATION_TYPES=WW.IMMUTABLE_TYPES=WW.FUNCTION_TYPES=WW.FUNCTIONPARENT_TYPES=WW.FOR_TYPES=WW.FORXSTATEMENT_TYPES=WW.FLOW_TYPES=WW.FLOWTYPE_TYPES=WW.FLOWPREDICATE_TYPES=WW.FLOWDECLARATION_TYPES=WW.FLOWBASEANNOTATION_TYPES=WW.EXPRESSION_TYPES=WW.EXPRESSIONWRAPPER_TYPES=WW.EXPORTDECLARATION_TYPES=WW.ENUMMEMBER_TYPES=WW.ENUMBODY_TYPES=WW.DECLARATION_TYPES=WW.CONDITIONAL_TYPES=WW.COMPLETIONSTATEMENT_TYPES=WW.CLASS_TYPES=WW.BLOCK_TYPES=WW.BLOCKPARENT_TYPES=WW.BINARY_TYPES=WW.ACCESSOR_TYPES=void 0;var K1=N2(),HO1=WW.STANDARDIZED_TYPES=K1.FLIPPED_ALIAS_KEYS.Standardized,ZO1=WW.EXPRESSION_TYPES=K1.FLIPPED_ALIAS_KEYS.Expression,VO1=WW.BINARY_TYPES=K1.FLIPPED_ALIAS_KEYS.Binary,QO1=WW.SCOPABLE_TYPES=K1.FLIPPED_ALIAS_KEYS.Scopable,YO1=WW.BLOCKPARENT_TYPES=K1.FLIPPED_ALIAS_KEYS.BlockParent,WO1=WW.BLOCK_TYPES=K1.FLIPPED_ALIAS_KEYS.Block,zO1=WW.STATEMENT_TYPES=K1.FLIPPED_ALIAS_KEYS.Statement,UO1=WW.TERMINATORLESS_TYPES=K1.FLIPPED_ALIAS_KEYS.Terminatorless,KO1=WW.COMPLETIONSTATEMENT_TYPES=K1.FLIPPED_ALIAS_KEYS.CompletionStatement,BO1=WW.CONDITIONAL_TYPES=K1.FLIPPED_ALIAS_KEYS.Conditional,$O1=WW.LOOP_TYPES=K1.FLIPPED_ALIAS_KEYS.Loop,RO1=WW.WHILE_TYPES=K1.FLIPPED_ALIAS_KEYS.While,MO1=WW.EXPRESSIONWRAPPER_TYPES=K1.FLIPPED_ALIAS_KEYS.ExpressionWrapper,qO1=WW.FOR_TYPES=K1.FLIPPED_ALIAS_KEYS.For,FO1=WW.FORXSTATEMENT_TYPES=K1.FLIPPED_ALIAS_KEYS.ForXStatement,jO1=WW.FUNCTION_TYPES=K1.FLIPPED_ALIAS_KEYS.Function,DO1=WW.FUNCTIONPARENT_TYPES=K1.FLIPPED_ALIAS_KEYS.FunctionParent,IO1=WW.PUREISH_TYPES=K1.FLIPPED_ALIAS_KEYS.Pureish,AO1=WW.DECLARATION_TYPES=K1.FLIPPED_ALIAS_KEYS.Declaration,CO1=WW.PATTERNLIKE_TYPES=K1.FLIPPED_ALIAS_KEYS.PatternLike,fO1=WW.LVAL_TYPES=K1.FLIPPED_ALIAS_KEYS.LVal,SO1=WW.TSENTITYNAME_TYPES=K1.FLIPPED_ALIAS_KEYS.TSEntityName,PO1=WW.LITERAL_TYPES=K1.FLIPPED_ALIAS_KEYS.Literal,LO1=WW.IMMUTABLE_TYPES=K1.FLIPPED_ALIAS_KEYS.Immutable,TO1=WW.USERWHITESPACABLE_TYPES=K1.FLIPPED_ALIAS_KEYS.UserWhitespacable,wO1=WW.METHOD_TYPES=K1.FLIPPED_ALIAS_KEYS.Method,NO1=WW.OBJECTMEMBER_TYPES=K1.FLIPPED_ALIAS_KEYS.ObjectMember,kO1=WW.PROPERTY_TYPES=K1.FLIPPED_ALIAS_KEYS.Property,EO1=WW.UNARYLIKE_TYPES=K1.FLIPPED_ALIAS_KEYS.UnaryLike,OO1=WW.PATTERN_TYPES=K1.FLIPPED_ALIAS_KEYS.Pattern,vO1=WW.CLASS_TYPES=K1.FLIPPED_ALIAS_KEYS.Class,Q51=WW.IMPORTOREXPORTDECLARATION_TYPES=K1.FLIPPED_ALIAS_KEYS.ImportOrExportDeclaration,_O1=WW.EXPORTDECLARATION_TYPES=K1.FLIPPED_ALIAS_KEYS.ExportDeclaration,gO1=WW.MODULESPECIFIER_TYPES=K1.FLIPPED_ALIAS_KEYS.ModuleSpecifier,bO1=WW.ACCESSOR_TYPES=K1.FLIPPED_ALIAS_KEYS.Accessor,hO1=WW.PRIVATE_TYPES=K1.FLIPPED_ALIAS_KEYS.Private,yO1=WW.FLOW_TYPES=K1.FLIPPED_ALIAS_KEYS.Flow,mO1=WW.FLOWTYPE_TYPES=K1.FLIPPED_ALIAS_KEYS.FlowType,xO1=WW.FLOWBASEANNOTATION_TYPES=K1.FLIPPED_ALIAS_KEYS.FlowBaseAnnotation,lO1=WW.FLOWDECLARATION_TYPES=K1.FLIPPED_ALIAS_KEYS.FlowDeclaration,cO1=WW.FLOWPREDICATE_TYPES=K1.FLIPPED_ALIAS_KEYS.FlowPredicate,aO1=WW.ENUMBODY_TYPES=K1.FLIPPED_ALIAS_KEYS.EnumBody,rO1=WW.ENUMMEMBER_TYPES=K1.FLIPPED_ALIAS_KEYS.EnumMember,iO1=WW.JSX_TYPES=K1.FLIPPED_ALIAS_KEYS.JSX,uO1=WW.MISCELLANEOUS_TYPES=K1.FLIPPED_ALIAS_KEYS.Miscellaneous,dO1=WW.TYPESCRIPT_TYPES=K1.FLIPPED_ALIAS_KEYS.TypeScript,sO1=WW.TSTYPEELEMENT_TYPES=K1.FLIPPED_ALIAS_KEYS.TSTypeElement,pO1=WW.TSTYPE_TYPES=K1.FLIPPED_ALIAS_KEYS.TSType,nO1=WW.TSBASETYPE_TYPES=K1.FLIPPED_ALIAS_KEYS.TSBaseType,oO1=WW.MODULEDECLARATION_TYPES=Q51});var vX=S((KW)=>{function X91(G,J){if(DG.isBlockStatement(G))return G;let X=[];if(DG.isEmptyStatement(G))X=[];else{if(!DG.isStatement(G))if(DG.isFunction(J))G=OX.returnStatement(G);else G=OX.expressionStatement(G);X=[G]}return OX.blockStatement(X)}Object.defineProperty(KW,"__esModule",{value:!0});KW.default=X91;var DG=r1(),OX=W2()});var $W=S((BW)=>{function V91(G,J="body"){const X=Z91.default(G[J],G);return G[J]=X,X}Object.defineProperty(BW,"__esModule",{value:!0});BW.default=V91;var Z91=vX()});var _X=S((RW)=>{function z91(G){G=G+"";let J="";for(let X of G)J+=W91.isIdentifierChar(X.codePointAt(0))?X:"-";if(J=J.replace(/^[-0-9]+/,""),J=J.replace(/[-\s]+(.)?/g,function(X,H){return H?H.toUpperCase():""}),!Y91.default(J))J=`_${J}`;return J||"_"}Object.defineProperty(RW,"__esModule",{value:!0});RW.default=z91;var Y91=k5(),W91=F9()});var qW=S((MW)=>{function B91(G){if(G=K91.default(G),G==="eval"||G==="arguments")G="_"+G;return G}Object.defineProperty(MW,"__esModule",{value:!0});MW.default=B91;var K91=_X()});var jW=S((FW)=>{function q91(G,J=G.key||G.property){if(!G.computed&&R91.isIdentifier(J))J=M91.stringLiteral(J.name);return J}Object.defineProperty(FW,"__esModule",{value:!0});FW.default=q91;var R91=r1(),M91=W2()});var AW=S((DW)=>{function j91(G){if(S9.isExpressionStatement(G))G=G.expression;if(S9.isExpression(G))return G;if(S9.isClass(G))G.type="ClassExpression";else if(S9.isFunction(G))G.type="FunctionExpression";if(!S9.isExpression(G))throw new Error(`cannot turn ${G.type} to an expression`);return G}Object.defineProperty(DW,"__esModule",{value:!0});DW.default=void 0;var S9=r1(),Zv1=DW.default=j91});var bX=S((CW)=>{function gX(G,J,X){if(!G)return;const H=D91.VISITOR_KEYS[G.type];if(!H)return;X=X||{},J(G,X);for(let Z of H){const V=G[Z];if(Array.isArray(V))for(let Q of V)gX(Q,J,X);else gX(V,J,X)}}Object.defineProperty(CW,"__esModule",{value:!0});CW.default=gX;var D91=N2()});var hX=S((SW)=>{function f91(G,J={}){const X=J.preserveComments?fW:C91;for(let Z of X)if(G[Z]!=null)G[Z]=void 0;for(let Z of Object.keys(G))if(Z[0]==="_"&&G[Z]!=null)G[Z]=void 0;const H=Object.getOwnPropertySymbols(G);for(let Z of H)G[Z]=null}Object.defineProperty(SW,"__esModule",{value:!0});SW.default=f91;var A91=P0(),fW=["tokens","start","end","loc","raw","rawValue"],C91=[...A91.COMMENT_KEYS,"comments",...fW]});var yX=S((PW)=>{function T91(G,J){return P91.default(G,L91.default,J),G}Object.defineProperty(PW,"__esModule",{value:!0});PW.default=T91;var P91=bX(),L91=hX()});var wW=S((TW)=>{function n0(G,J=G.key){let X;if(G.kind==="method")return n0.increment()+"";else if(LW.isIdentifier(J))X=J.name;else if(LW.isStringLiteral(J))X=JSON.stringify(J.value);else X=JSON.stringify(k91.default(N91.default(J)));if(G.computed)X=`[${X}]`;if(G.static)X=`static:${X}`;return X}Object.defineProperty(TW,"__esModule",{value:!0});TW.default=n0;var LW=r1(),N91=T0(),k91=yX();n0.uid=0;n0.increment=function(){if(n0.uid>=Number.MAX_SAFE_INTEGER)return n0.uid=0;else return n0.uid++}});var EW=S((NW)=>{function v91(G,J){if(IG.isStatement(G))return G;let X=!1,H;if(IG.isClass(G))X=!0,H="ClassDeclaration";else if(IG.isFunction(G))X=!0,H="FunctionDeclaration";else if(IG.isAssignmentExpression(G))return O91.expressionStatement(G);if(X&&!G.id)H=!1;if(!H)if(J)return!1;else throw new Error(`cannot turn ${G.type} to a statement`);return G.type=H,G}Object.defineProperty(NW,"__esModule",{value:!0});NW.default=void 0;var IG=r1(),O91=W2(),Uv1=NW.default=v91});var _W=S((OW)=>{function b91(G){return g91(G)==="[object RegExp]"}function h91(G){if(typeof G!=="object"||G===null||Object.prototype.toString.call(G)!=="[object Object]")return!1;const J=Object.getPrototypeOf(G);return J===null||Object.getPrototypeOf(J)===null}function mX(G){if(G===void 0)return H2.identifier("undefined");if(G===!0||G===!1)return H2.booleanLiteral(G);if(G===null)return H2.nullLiteral();if(typeof G==="string")return H2.stringLiteral(G);if(typeof G==="number"){let J;if(Number.isFinite(G))J=H2.numericLiteral(Math.abs(G));else{let X;if(Number.isNaN(G))X=H2.numericLiteral(0);else X=H2.numericLiteral(1);J=H2.binaryExpression("/",X,H2.numericLiteral(0))}if(G<0||Object.is(G,-0))J=H2.unaryExpression("-",J);return J}if(b91(G)){const J=G.source,X=/\/([a-z]*)$/.exec(G.toString())[1];return H2.regExpLiteral(J,X)}if(Array.isArray(G))return H2.arrayExpression(G.map(mX));if(h91(G)){const J=[];for(let X of Object.keys(G)){let H;if(_91.default(X))H=H2.identifier(X);else H=H2.stringLiteral(X);J.push(H2.objectProperty(H,mX(G[X])))}return H2.objectExpression(J)}throw new Error("don't know how to turn this value into a node")}Object.defineProperty(OW,"__esModule",{value:!0});OW.default=void 0;var _91=k5(),H2=W2(),Bv1=OW.default=mX,g91=Function.call.bind(Object.prototype.toString)});var bW=S((gW)=>{function m91(G,J,X=!1){return G.object=y91.memberExpression(G.object,G.property,G.computed),G.property=J,G.computed=!!X,G}Object.defineProperty(gW,"__esModule",{value:!0});gW.default=m91;var y91=W2()});var mW=S((yW)=>{function c91(G,J){if(!G||!J)return G;for(let X of hW.INHERIT_KEYS.optional)if(G[X]==null)G[X]=J[X];for(let X of Object.keys(J))if(X[0]==="_"&&X!=="__clone")G[X]=J[X];for(let X of hW.INHERIT_KEYS.force)G[X]=J[X];return l91.default(G,J),G}Object.defineProperty(yW,"__esModule",{value:!0});yW.default=c91;var hW=P0(),l91=EX()});var lW=S((xW)=>{function u91(G,J){if(i91.isSuper(G.object))throw new Error("Cannot prepend node to super property access (`super.foo`).");return G.object=r91.memberExpression(J,G.object),G}Object.defineProperty(xW,"__esModule",{value:!0});xW.default=u91;var r91=W2(),i91=F1()});var aW=S((cW)=>{function s91(G){const J=[].concat(G),X=Object.create(null);while(J.length){const H=J.pop();if(!H)continue;switch(H.type){case"ArrayPattern":J.push(...H.elements);break;case"AssignmentExpression":case"AssignmentPattern":case"ForInStatement":case"ForOfStatement":J.push(H.left);break;case"ObjectPattern":J.push(...H.properties);break;case"ObjectProperty":J.push(H.value);break;case"RestElement":case"UpdateExpression":J.push(H.argument);break;case"UnaryExpression":if(H.operator==="delete")J.push(H.argument);break;case"Identifier":X[H.name]=H;break;default:break}}return X}Object.defineProperty(cW,"__esModule",{value:!0});cW.default=s91});var P9=S((rW)=>{function xX(G,J,X,H){const Z=[].concat(G),V=Object.create(null);while(Z.length){const Q=Z.shift();if(!Q)continue;if(H&&(Y0.isAssignmentExpression(Q)||Y0.isUnaryExpression(Q)||Y0.isUpdateExpression(Q)))continue;if(Y0.isIdentifier(Q)){if(J)(V[Q.name]=V[Q.name]||[]).push(Q);else V[Q.name]=Q;continue}if(Y0.isExportDeclaration(Q)&&!Y0.isExportAllDeclaration(Q)){if(Y0.isDeclaration(Q.declaration))Z.push(Q.declaration);continue}if(X){if(Y0.isFunctionDeclaration(Q)){Z.push(Q.id);continue}if(Y0.isFunctionExpression(Q))continue}const Y=xX.keys[Q.type];if(Y)for(let W=0;W<Y.length;W++){const z=Y[W],B=Q[z];if(B)if(Array.isArray(B))Z.push(...B);else Z.push(B)}}return V}Object.defineProperty(rW,"__esModule",{value:!0});rW.default=xX;var Y0=r1(),n91={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"],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"]};xX.keys=n91});var dW=S((iW)=>{function t91(G,J){return e91.default(G,J,!0)}Object.defineProperty(iW,"__esModule",{value:!0});iW.default=void 0;var e91=P9(),Dv1=iW.default=t91});var nW=S((pW)=>{function G61(G){if(k2.isNullLiteral(G))return"null";if(k2.isRegExpLiteral(G))return`/${G.pattern}/${G.flags}`;if(k2.isTemplateLiteral(G))return G.quasis.map((J)=>J.value.raw).join("");if(G.value!==void 0)return String(G.value);return null}function sW(G){if(!G.computed||k2.isLiteral(G.key))return G.key}function J61(G,J){if("id"in G&&G.id)return{name:G.id.name,originalNode:G.id};let X="",H;if(k2.isObjectProperty(J,{value:G}))H=sW(J);else if(k2.isObjectMethod(G)||k2.isClassMethod(G)){if(H=sW(G),G.kind==="get")X="get ";else if(G.kind==="set")X="set "}else if(k2.isVariableDeclarator(J,{init:G}))H=J.id;else if(k2.isAssignmentExpression(J,{operator:"=",right:G}))H=J.left;if(!H)return null;const Z=k2.isLiteral(H)?G61(H):k2.isIdentifier(H)?H.name:k2.isPrivateName(H)?H.id.name:null;if(Z==null)return null;return{name:X+Z,originalNode:H}}Object.defineProperty(pW,"__esModule",{value:!0});pW.default=J61;var k2=r1()});var eW=S((oW)=>{function Z61(G,J,X){if(typeof J==="function")J={enter:J};const{enter:H,exit:Z}=J;lX(G,H,Z,X,[])}function lX(G,J,X,H,Z){const V=H61.VISITOR_KEYS[G.type];if(!V)return;if(J)J(G,Z,H);for(let Q of V){const Y=G[Q];if(Array.isArray(Y))for(let W=0;W<Y.length;W++){const z=Y[W];if(!z)continue;Z.push({node:G,key:Q,index:W}),lX(z,J,X,H,Z),Z.pop()}else if(Y)Z.push({node:G,key:Q}),lX(Y,J,X,H,Z),Z.pop()}if(X)X(G,Z,H)}Object.defineProperty(oW,"__esModule",{value:!0});oW.default=Z61;var H61=N2()});var Gz=S((tW)=>{function Y61(G,J,X){if(X&&G.type==="Identifier"&&J.type==="ObjectProperty"&&X.type==="ObjectExpression")return!1;const H=Q61.default.keys[J.type];if(H)for(let Z=0;Z<H.length;Z++){const V=H[Z],Q=J[V];if(Array.isArray(Q)){if(Q.includes(G))return!0}else if(Q===G)return!0}return!1}Object.defineProperty(tW,"__esModule",{value:!0});tW.default=Y61;var Q61=P9()});var cX=S((Jz)=>{function K61(G){return z61.isVariableDeclaration(G)&&(G.kind!=="var"||G[U61.BLOCK_SCOPED_SYMBOL])}Object.defineProperty(Jz,"__esModule",{value:!0});Jz.default=K61;var z61=r1(),U61=P0()});var Zz=S((Hz)=>{function R61(G){return Xz.isFunctionDeclaration(G)||Xz.isClassDeclaration(G)||$61.default(G)}Object.defineProperty(Hz,"__esModule",{value:!0});Hz.default=R61;var Xz=r1(),$61=cX()});var Qz=S((Vz)=>{function j61(G){if(q61.default(G.type,"Immutable"))return!0;if(F61.isIdentifier(G))if(G.name==="undefined")return!0;else return!1;return!1}Object.defineProperty(Vz,"__esModule",{value:!0});Vz.default=j61;var q61=YG(),F61=r1()});var zz=S((Wz)=>{function aX(G,J){if(typeof G!=="object"||typeof J!=="object"||G==null||J==null)return G===J;if(G.type!==J.type)return!1;const X=Object.keys(Yz.NODE_FIELDS[G.type]||G.type),H=Yz.VISITOR_KEYS[G.type];for(let Z of X){const V=G[Z],Q=J[Z];if(typeof V!==typeof Q)return!1;if(V==null&&Q==null)continue;else if(V==null||Q==null)return!1;if(Array.isArray(V)){if(!Array.isArray(Q))return!1;if(V.length!==Q.length)return!1;for(let Y=0;Y<V.length;Y++)if(!aX(V[Y],Q[Y]))return!1;continue}if(typeof V==="object"&&!(H!=null&&H.includes(Z))){for(let Y of Object.keys(V))if(V[Y]!==Q[Y])return!1;continue}if(!aX(V,Q))return!1}return!0}Object.defineProperty(Wz,"__esModule",{value:!0});Wz.default=aX;var Yz=N2()});var Kz=S((Uz)=>{function A61(G,J,X){switch(J.type){case"MemberExpression":case"OptionalMemberExpression":if(J.property===G)return!!J.computed;return J.object===G;case"JSXMemberExpression":return J.object===G;case"VariableDeclarator":return J.init===G;case"ArrowFunctionExpression":return J.body===G;case"PrivateName":return!1;case"ClassMethod":case"ClassPrivateMethod":case"ObjectMethod":if(J.key===G)return!!J.computed;return!1;case"ObjectProperty":if(J.key===G)return!!J.computed;return!X||X.type!=="ObjectPattern";case"ClassProperty":case"ClassAccessorProperty":if(J.key===G)return!!J.computed;return!0;case"ClassPrivateProperty":return J.key!==G;case"ClassDeclaration":case"ClassExpression":return J.superClass===G;case"AssignmentExpression":return J.right===G;case"AssignmentPattern":return J.right===G;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 J.local===G;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 J.key!==G;case"TSEnumMember":return J.id!==G;case"TSPropertySignature":if(J.key===G)return!!J.computed;return!0}return!0}Object.defineProperty(Uz,"__esModule",{value:!0});Uz.default=A61});var $z=S((Bz)=>{function f61(G,J){if(o0.isBlockStatement(G)&&(o0.isFunction(J)||o0.isCatchClause(J)))return!1;if(o0.isPattern(G)&&(o0.isFunction(J)||o0.isCatchClause(J)))return!0;return o0.isScopable(G)}Object.defineProperty(Bz,"__esModule",{value:!0});Bz.default=f61;var o0=r1()});var qz=S((Mz)=>{function P61(G){return Rz.isImportDefaultSpecifier(G)||Rz.isIdentifier(G.imported||G.exported,{name:"default"})}Object.defineProperty(Mz,"__esModule",{value:!0});Mz.default=P61;var Rz=r1()});var jz=S((Fz)=>{function N61(G){return T61.default(G)&&!w61.has(G)}Object.defineProperty(Fz,"__esModule",{value:!0});Fz.default=N61;var T61=k5(),w61=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"])});var Iz=S((Dz)=>{function v61(G){return E61.isVariableDeclaration(G,{kind:"var"})&&!G[O61.BLOCK_SCOPED_SYMBOL]}Object.defineProperty(Dz,"__esModule",{value:!0});Dz.default=v61;var E61=r1(),O61=P0()});var Cz=S((Az)=>{function AG(G,J){const X=[];let H=!0;for(let Z of G){if(!e0.isEmptyStatement(Z))H=!1;if(e0.isExpression(Z))X.push(Z);else if(e0.isExpressionStatement(Z))X.push(Z.expression);else if(e0.isVariableDeclaration(Z)){if(Z.kind!=="var")return;for(let V of Z.declarations){const Q=g61.default(V);for(let Y of Object.keys(Q))J.push({kind:Z.kind,id:b61.default(Q[Y])});if(V.init)X.push(rX.assignmentExpression("=",V.id,V.init))}H=!0}else if(e0.isIfStatement(Z)){const V=Z.consequent?AG([Z.consequent],J):iX.buildUndefinedNode(),Q=Z.alternate?AG([Z.alternate],J):iX.buildUndefinedNode();if(!V||!Q)return;X.push(rX.conditionalExpression(Z.test,V,Q))}else if(e0.isBlockStatement(Z)){const V=AG(Z.body,J);if(!V)return;X.push(V)}else if(e0.isEmptyStatement(Z)){if(G.indexOf(Z)===0)H=!0}else return}if(H)X.push(iX.buildUndefinedNode());if(X.length===1)return X[0];else return rX.sequenceExpression(X)}Object.defineProperty(Az,"__esModule",{value:!0});Az.default=AG;var g61=P9(),e0=r1(),rX=W2(),iX=PX(),b61=T0()});var Sz=S((fz)=>{function m61(G,J){if(!(G!=null&&G.length))return;const X=[],H=y61.default(G,X);if(!H)return;for(let Z of X)J.push(Z);return H}Object.defineProperty(fz,"__esModule",{value:!0});fz.default=m61;var y61=Cz()});var F1=S((c)=>{Object.defineProperty(c,"__esModule",{value:!0});var W0={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(c,"__internal__deprecationWarning",{enumerable:!0,get:function(){return r81.default}});Object.defineProperty(c,"addComment",{enumerable:!0,get:function(){return e61.default}});Object.defineProperty(c,"addComments",{enumerable:!0,get:function(){return t61.default}});Object.defineProperty(c,"appendToMemberExpression",{enumerable:!0,get:function(){return R81.default}});Object.defineProperty(c,"assertNode",{enumerable:!0,get:function(){return r61.default}});Object.defineProperty(c,"buildMatchMemberExpression",{enumerable:!0,get:function(){return a81.default}});Object.defineProperty(c,"clone",{enumerable:!0,get:function(){return s61.default}});Object.defineProperty(c,"cloneDeep",{enumerable:!0,get:function(){return p61.default}});Object.defineProperty(c,"cloneDeepWithoutLoc",{enumerable:!0,get:function(){return n61.default}});Object.defineProperty(c,"cloneNode",{enumerable:!0,get:function(){return d61.default}});Object.defineProperty(c,"cloneWithoutLoc",{enumerable:!0,get:function(){return o61.default}});Object.defineProperty(c,"createFlowUnionType",{enumerable:!0,get:function(){return Pz.default}});Object.defineProperty(c,"createTSUnionType",{enumerable:!0,get:function(){return u61.default}});Object.defineProperty(c,"createTypeAnnotationBasedOnTypeof",{enumerable:!0,get:function(){return i61.default}});Object.defineProperty(c,"createUnionTypeAnnotation",{enumerable:!0,get:function(){return Pz.default}});Object.defineProperty(c,"ensureBlock",{enumerable:!0,get:function(){return V81.default}});Object.defineProperty(c,"getAssignmentIdentifiers",{enumerable:!0,get:function(){return I81.default}});Object.defineProperty(c,"getBindingIdentifiers",{enumerable:!0,get:function(){return A81.default}});Object.defineProperty(c,"getFunctionName",{enumerable:!0,get:function(){return f81.default}});Object.defineProperty(c,"getOuterBindingIdentifiers",{enumerable:!0,get:function(){return C81.default}});Object.defineProperty(c,"inheritInnerComments",{enumerable:!0,get:function(){return G81.default}});Object.defineProperty(c,"inheritLeadingComments",{enumerable:!0,get:function(){return J81.default}});Object.defineProperty(c,"inheritTrailingComments",{enumerable:!0,get:function(){return H81.default}});Object.defineProperty(c,"inherits",{enumerable:!0,get:function(){return M81.default}});Object.defineProperty(c,"inheritsComments",{enumerable:!0,get:function(){return X81.default}});Object.defineProperty(c,"is",{enumerable:!0,get:function(){return L81.default}});Object.defineProperty(c,"isBinding",{enumerable:!0,get:function(){return T81.default}});Object.defineProperty(c,"isBlockScoped",{enumerable:!0,get:function(){return w81.default}});Object.defineProperty(c,"isImmutable",{enumerable:!0,get:function(){return N81.default}});Object.defineProperty(c,"isLet",{enumerable:!0,get:function(){return k81.default}});Object.defineProperty(c,"isNode",{enumerable:!0,get:function(){return E81.default}});Object.defineProperty(c,"isNodesEquivalent",{enumerable:!0,get:function(){return O81.default}});Object.defineProperty(c,"isPlaceholderType",{enumerable:!0,get:function(){return v81.default}});Object.defineProperty(c,"isReferenced",{enumerable:!0,get:function(){return _81.default}});Object.defineProperty(c,"isScope",{enumerable:!0,get:function(){return g81.default}});Object.defineProperty(c,"isSpecifierDefault",{enumerable:!0,get:function(){return b81.default}});Object.defineProperty(c,"isType",{enumerable:!0,get:function(){return h81.default}});Object.defineProperty(c,"isValidES3Identifier",{enumerable:!0,get:function(){return y81.default}});Object.defineProperty(c,"isValidIdentifier",{enumerable:!0,get:function(){return m81.default}});Object.defineProperty(c,"isVar",{enumerable:!0,get:function(){return x81.default}});Object.defineProperty(c,"matchesPattern",{enumerable:!0,get:function(){return l81.default}});Object.defineProperty(c,"prependToMemberExpression",{enumerable:!0,get:function(){return q81.default}});c.react=void 0;Object.defineProperty(c,"removeComments",{enumerable:!0,get:function(){return Z81.default}});Object.defineProperty(c,"removeProperties",{enumerable:!0,get:function(){return F81.default}});Object.defineProperty(c,"removePropertiesDeep",{enumerable:!0,get:function(){return j81.default}});Object.defineProperty(c,"removeTypeDuplicates",{enumerable:!0,get:function(){return D81.default}});Object.defineProperty(c,"shallowEqual",{enumerable:!0,get:function(){return P81.default}});Object.defineProperty(c,"toBindingIdentifierName",{enumerable:!0,get:function(){return Q81.default}});Object.defineProperty(c,"toBlock",{enumerable:!0,get:function(){return Y81.default}});Object.defineProperty(c,"toComputedKey",{enumerable:!0,get:function(){return W81.default}});Object.defineProperty(c,"toExpression",{enumerable:!0,get:function(){return z81.default}});Object.defineProperty(c,"toIdentifier",{enumerable:!0,get:function(){return U81.default}});Object.defineProperty(c,"toKeyAlias",{enumerable:!0,get:function(){return K81.default}});Object.defineProperty(c,"toStatement",{enumerable:!0,get:function(){return B81.default}});Object.defineProperty(c,"traverse",{enumerable:!0,get:function(){return CG.default}});Object.defineProperty(c,"traverseFast",{enumerable:!0,get:function(){return S81.default}});Object.defineProperty(c,"validate",{enumerable:!0,get:function(){return c81.default}});Object.defineProperty(c,"valueToNode",{enumerable:!0,get:function(){return $81.default}});var l61=GQ(),c61=XQ(),a61=qY(),r61=DY(),uX=AY();Object.keys(uX).forEach(function(G){if(G==="default"||G==="__esModule")return;if(Object.prototype.hasOwnProperty.call(W0,G))return;if(G in c&&c[G]===uX[G])return;Object.defineProperty(c,G,{enumerable:!0,get:function(){return uX[G]}})});var i61=SY(),Pz=NY(),u61=gY(),dX=W2();Object.keys(dX).forEach(function(G){if(G==="default"||G==="__esModule")return;if(Object.prototype.hasOwnProperty.call(W0,G))return;if(G in c&&c[G]===dX[G])return;Object.defineProperty(c,G,{enumerable:!0,get:function(){return dX[G]}})});var sX=bY();Object.keys(sX).forEach(function(G){if(G==="default"||G==="__esModule")return;if(Object.prototype.hasOwnProperty.call(W0,G))return;if(G in c&&c[G]===sX[G])return;Object.defineProperty(c,G,{enumerable:!0,get:function(){return sX[G]}})});var pX=PX();Object.keys(pX).forEach(function(G){if(G==="default"||G==="__esModule")return;if(Object.prototype.hasOwnProperty.call(W0,G))return;if(G in c&&c[G]===pX[G])return;Object.defineProperty(c,G,{enumerable:!0,get:function(){return pX[G]}})});var d61=T0(),s61=iY(),p61=dY(),n61=pY(),o61=oY(),e61=GW(),t61=TX(),G81=wX(),J81=NX(),X81=EX(),H81=kX(),Z81=YW(),nX=UW();Object.keys(nX).forEach(function(G){if(G==="default"||G==="__esModule")return;if(Object.prototype.hasOwnProperty.call(W0,G))return;if(G in c&&c[G]===nX[G])return;Object.defineProperty(c,G,{enumerable:!0,get:function(){return nX[G]}})});var oX=P0();Object.keys(oX).forEach(function(G){if(G==="default"||G==="__esModule")return;if(Object.prototype.hasOwnProperty.call(W0,G))return;if(G in c&&c[G]===oX[G])return;Object.defineProperty(c,G,{enumerable:!0,get:function(){return oX[G]}})});var V81=$W(),Q81=qW(),Y81=vX(),W81=jW(),z81=AW(),U81=_X(),K81=wW(),B81=EW(),$81=_W(),eX=N2();Object.keys(eX).forEach(function(G){if(G==="default"||G==="__esModule")return;if(Object.prototype.hasOwnProperty.call(W0,G))return;if(G in c&&c[G]===eX[G])return;Object.defineProperty(c,G,{enumerable:!0,get:function(){return eX[G]}})});var R81=bW(),M81=mW(),q81=lW(),F81=hX(),j81=yX(),D81=SX(),I81=aW(),A81=P9(),C81=dW(),f81=nW(),CG=eW();Object.keys(CG).forEach(function(G){if(G==="default"||G==="__esModule")return;if(Object.prototype.hasOwnProperty.call(W0,G))return;if(G in c&&c[G]===CG[G])return;Object.defineProperty(c,G,{enumerable:!0,get:function(){return CG[G]}})});var S81=bX(),P81=QG(),L81=N5(),T81=Gz(),w81=Zz(),N81=Qz(),k81=cX(),E81=fX(),O81=zz(),v81=HX(),_81=Kz(),g81=$z(),b81=qz(),h81=YG(),y81=jz(),m81=k5(),x81=Iz(),l81=JX(),c81=BG(),a81=XX(),tX=r1();Object.keys(tX).forEach(function(G){if(G==="default"||G==="__esModule")return;if(Object.prototype.hasOwnProperty.call(W0,G))return;if(G in c&&c[G]===tX[G])return;Object.defineProperty(c,G,{enumerable:!0,get:function(){return tX[G]}})});var r81=K9(),gv1=c.react={isReactComponent:l61.default,isCompatTag:c61.default,buildChildren:a61.default};c.toSequenceExpression=Sz().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 vz=S((Ez)=>{function v5(G,J){if(!G)return J;if(G7(G)||e81(G)){if(v5(G.object,J),G.computed)v5(G.property,J)}else if(Nz(G)||wz(G))v5(G.left,J),v5(G.right,J);else if(kz(G)||o81(G))J.hasCall=!0,v5(G.callee,J);else if(L9(G))J.hasFunction=!0;else if(fG(G))J.hasHelper=J.hasHelper||G.callee&&z0(G.callee);return J}function Tz(G){return v5(G,{hasCall:!1,hasFunction:!1,hasHelper:!1})}function z0(G){if(!G)return!1;if(G7(G))return z0(G.object)||z0(G.property);else if(fG(G))return G.name==="require"||G.name.charCodeAt(0)===95;else if(kz(G))return z0(G.callee);else if(Nz(G)||wz(G))return fG(G.left)&&z0(G.left)||z0(G.right);else return!1}function G41(G){return p81(G)||n81(G)||d81(G)||fG(G)||G7(G)}Object.defineProperty(Ez,"__esModule",{value:!0});Ez.nodes=void 0;var i81=F1(),{FLIPPED_ALIAS_KEYS:u81,isArrayExpression:d81,isAssignmentExpression:wz,isBinary:Nz,isBlockStatement:s81,isCallExpression:kz,isFunction:L9,isIdentifier:fG,isLiteral:p81,isMemberExpression:G7,isObjectExpression:n81,isOptionalCallExpression:o81,isOptionalMemberExpression:e81,isStringLiteral:t81}=i81,t0=Ez.nodes={AssignmentExpression(G){const J=Tz(G.right);if(J.hasCall&&J.hasHelper||J.hasFunction)return J.hasFunction?3:2},SwitchCase(G,J){return(!!G.consequent.length||J.cases[0]===G?1:0)|(!G.consequent.length&&J.cases[J.cases.length-1]===G?2:0)},LogicalExpression(G){if(L9(G.left)||L9(G.right))return 2},Literal(G){if(t81(G)&&G.value==="use strict")return 2},CallExpression(G){if(L9(G.callee)||z0(G))return 3},OptionalCallExpression(G){if(L9(G.callee))return 3},VariableDeclaration(G){for(let J=0;J<G.declarations.length;J++){const X=G.declarations[J];let H=z0(X.id)&&!G41(X.init);if(!H&&X.init){const Z=Tz(X.init);H=z0(X.init)&&Z.hasCall||Z.hasFunction}if(H)return 3}},IfStatement(G){if(s81(G.consequent))return 3}};t0.ObjectProperty=t0.ObjectTypeProperty=t0.ObjectMethod=function(G,J){if(J.properties[0]===G)return 1};t0.ObjectTypeCallProperty=function(G,J){var X;if(J.callProperties[0]===G&&!((X=J.properties)!=null&&X.length))return 1};t0.ObjectTypeIndexer=function(G,J){var X,H;if(J.indexers[0]===G&&!((X=J.properties)!=null&&X.length)&&!((H=J.callProperties)!=null&&H.length))return 1};t0.ObjectTypeInternalSlot=function(G,J){var X,H,Z;if(J.internalSlots[0]===G&&!((X=J.properties)!=null&&X.length)&&!((H=J.callProperties)!=null&&H.length)&&!((Z=J.indexers)!=null&&Z.length))return 1};[["Function",!0],["Class",!0],["Loop",!0],["LabeledStatement",!0],["SwitchStatement",!0],["TryStatement",!0]].forEach(function([G,J]){[G].concat(u81[G]||[]).forEach(function(X){const H=J?3:0;t0[X]=()=>H})})});var cz=S((lz)=>{function gz(G,J){if(J==="BinaryExpression"||J==="LogicalExpression")return _z.get(G.operator);if(J==="TSAsExpression"||J==="TSSatisfiesExpression")return _z.get("in")}function J7(G){return G==="TSAsExpression"||G==="TSSatisfiesExpression"||G==="TSTypeAssertion"}function K41(G,J){return X41(J)}function B41(G,J,X){const H=J.type;return H==="UnionTypeAnnotation"||H==="IntersectionTypeAnnotation"||H==="ArrayTypeAnnotation"||Boolean(X&E2.TokenContext.arrowFlowReturnType)}function $41(G,J){return PG(G,J)||SG(G,J)}function hz(G){return Boolean(G&(E2.TokenContext.expressionStatement|E2.TokenContext.arrowBody))}function R41(G,J,X){return hz(X)}function M41(G,J,X){return!G.async&&Boolean(X&E2.TokenContext.expressionStatement)}function yz(G,J){const X=J.type;if(G.type==="BinaryExpression"&&G.operator==="**"&&X==="BinaryExpression"&&J.operator==="**")return J.left===G;if(SG(G,J))return!0;if(PG(G,J)||X==="UnaryExpression"||X==="SpreadElement"||X==="AwaitExpression")return!0;const H=gz(J,X);if(H!=null){const Z=gz(G,G.type);if(H===Z&&X==="BinaryExpression"&&J.right===G||H>Z)return!0}return}function q41(G,J){const X=J.type;return X==="ArrayTypeAnnotation"||X==="NullableTypeAnnotation"||X==="IntersectionTypeAnnotation"||X==="UnionTypeAnnotation"}function F41(G,J){return Q41(J)&&J.objectType===G}function j41(G,J){if((J.type==="AssignmentExpression"||J.type==="AssignmentPattern")&&J.left===G)return!0;if(J.type==="BinaryExpression"&&(J.operator==="|"||J.operator==="&")&&G===J.left)return!0;return yz(G,J)}function D41(G,J){const X=J.type;return X==="TSArrayType"||X==="TSOptionalType"||X==="TSIntersectionType"||X==="TSRestType"}function I41(G,J){const X=J.type;return X==="TSArrayType"||X==="TSOptionalType"}function A41(G,J){const X=J.type;return(X==="CallExpression"||X==="OptionalCallExpression"||X==="NewExpression"||X==="TSInstantiationExpression")&&!!J.typeParameters}function C41(G,J,X,H){return G.operator==="in"&&H}function f41(G,J){const X=J.type;if(X==="SequenceExpression"||X==="ParenthesizedExpression"||X==="MemberExpression"&&J.property===G||X==="OptionalMemberExpression"&&J.property===G||X==="TemplateLiteral")return!1;if(X==="ClassDeclaration")return!0;if(X==="ForOfStatement")return J.right===G;if(X==="ExportDefaultDeclaration")return!0;return!U41(J)}function S41(G,J){const X=J.type;return X==="BinaryExpression"||X==="LogicalExpression"||X==="UnaryExpression"||X==="SpreadElement"||PG(G,J)||X==="AwaitExpression"&&z41(G)||X==="ConditionalExpression"&&G===J.test||SG(G,J)||J7(X)}function P41(G,J,X){return Boolean(X&(E2.TokenContext.expressionStatement|E2.TokenContext.exportDefault))}function mz(G,J){return PG(G,J)||H41(J)&&J.operator==="**"&&J.left===G||SG(G,J)}function L41(G,J,X){return Boolean(X&(E2.TokenContext.expressionStatement|E2.TokenContext.exportDefault))}function xz(G,J){const X=J.type;if(X==="UnaryExpression"||X==="SpreadElement"||X==="BinaryExpression"||X==="LogicalExpression"||X==="ConditionalExpression"&&J.test===G||X==="AwaitExpression"||J7(X))return!0;return mz(G,J)}function T41(G,J){return Z41(J)&&J.callee===G||bz(J)&&J.object===G}function w41(G,J,X){if(hz(X)&&Y41(G.left))return!0;else return xz(G,J)}function N41(G,J){const X=J.type;if(J7(X))return!0;if(X!=="LogicalExpression")return!1;switch(G.operator){case"||":return J.operator==="??"||J.operator==="&&";case"&&":return J.operator==="??";case"??":return J.operator!=="??"}}function k41(G,J,X){var H;const Z=J.type;if((H=G.extra)!=null&&H.parenthesized&&Z==="AssignmentExpression"&&J.left===G){const V=J.right.type;if((V==="FunctionExpression"||V==="ClassExpression")&&J.right.id==null)return!0}if(G.name==="let"){if((bz(J,{object:G,computed:!0})||W41(J,{object:G,computed:!0,optional:!1}))&&X&(E2.TokenContext.expressionStatement|E2.TokenContext.forHead|E2.TokenContext.forInHead))return!0;return Boolean(X&E2.TokenContext.forOfHead)}return G.name==="async"&&V41(J,{left:G,await:!1})}Object.defineProperty(lz,"__esModule",{value:!0});lz.AssignmentExpression=w41;lz.Binary=yz;lz.BinaryExpression=C41;lz.ClassExpression=P41;lz.ArrowFunctionExpression=lz.ConditionalExpression=xz;lz.DoExpression=M41;lz.FunctionExpression=L41;lz.FunctionTypeAnnotation=B41;lz.Identifier=k41;lz.LogicalExpression=N41;lz.NullableTypeAnnotation=K41;lz.ObjectExpression=R41;lz.OptionalIndexedAccessType=F41;lz.OptionalCallExpression=lz.OptionalMemberExpression=T41;lz.SequenceExpression=f41;lz.TSSatisfiesExpression=lz.TSAsExpression=j41;lz.TSInferType=I41;lz.TSInstantiationExpression=A41;lz.UnaryLike=lz.TSTypeAssertion=mz;lz.TSIntersectionType=lz.TSUnionType=D41;lz.IntersectionTypeAnnotation=lz.UnionTypeAnnotation=q41;lz.UpdateExpression=$41;lz.AwaitExpression=lz.YieldExpression=S41;var J41=F1(),E2=w0(),{isArrayTypeAnnotation:X41,isBinaryExpression:H41,isCallExpression:Z41,isForOfStatement:V41,isIndexedAccessType:Q41,isMemberExpression:bz,isObjectPattern:Y41,isOptionalMemberExpression:W41,isYieldExpression:z41,isStatement:U41}=J41,_z=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]]),SG=(G,J)=>{const X=J.type;return(X==="ClassDeclaration"||X==="ClassExpression")&&J.superClass===G},PG=(G,J)=>{const X=J.type;return(X==="MemberExpression"||X==="OptionalMemberExpression")&&J.object===G||(X==="CallExpression"||X==="OptionalCallExpression"||X==="NewExpression")&&J.callee===G||X==="TaggedTemplateExpression"&&J.tag===G||X==="TSNonNullExpression"}});var w0=S((uz)=>{function rz(G){const J=new Map;function X(H,Z){const V=J.get(H);J.set(H,V?function(Q,Y,W,z){var B;return(B=V(Q,Y,W,z))!=null?B:Z(Q,Y,W,z)}:Z)}for(let H of Object.keys(G)){const Z=HG1[H];if(Z)for(let V of Z)X(V,G[H]);else X(H,G[H])}return J}function iz(G){if(az(G))return!0;return YG1(G)&&iz(G.object)}function H7(G,J,X){var H;if(!G)return!1;if(QG1(G))G=G.expression;const Z=(H=KG1.get(G.type))==null?void 0:H(G,J);if(typeof Z==="number")return(Z&X)!==0;return!1}function BG1(G,J){return H7(G,J,1)}function $G1(G,J){return H7(G,J,2)}function RG1(G,J,X,H){var Z;if(!J)return!1;if(WG1(J)&&J.callee===G){if(iz(G))return!0}if(VG1(J))return!X7(G)&&!(az(G)&&X7(G.callee))&&!zG1(G);return(Z=UG1.get(G.type))==null?void 0:Z(G,J,X,H)}function X7(G){switch(G.type){case"Identifier":return!0;case"MemberExpression":return!G.computed&&G.property.type==="Identifier"&&X7(G.object);default:return!1}}function MG1(G,J){const X=ZG1[G.type];for(let H=X.length-1;H>=0;H--){const Z=G[X[H]];if(Z===J)return!0;else if(Array.isArray(Z)){let V=Z.length-1;while(V>=0&&Z[V]===null)V--;return V>=0&&Z[V]===J}else if(Z)return!1}return!1}Object.defineProperty(uz,"__esModule",{value:!0});uz.TokenContext=void 0;uz.isLastChild=MG1;uz.needsParens=RG1;uz.needsWhitespace=H7;uz.needsWhitespaceAfter=$G1;uz.needsWhitespaceBefore=BG1;var GG1=vz(),JG1=cz(),XG1=F1(),{FLIPPED_ALIAS_KEYS:HG1,VISITOR_KEYS:ZG1,isCallExpression:az,isDecorator:VG1,isExpressionStatement:QG1,isMemberExpression:YG1,isNewExpression:WG1,isParenthesizedExpression:zG1}=XG1,dv1=uz.TokenContext={expressionStatement:1,arrowBody:2,exportDefault:4,forHead:8,forInHead:16,forOfHead:32,arrowFlowReturnType:64},UG1=rz(JG1),KG1=rz(GG1.nodes)});var pz=S((sz)=>{function AG1(G){this.print(G.tag),this.print(G.typeParameters),this.print(G.quasi)}function CG1(){throw new Error("TemplateElement printing is handled in TemplateLiteral")}function fG1(G){const J=G.quasis;let X="`";for(let H=0;H<J.length;H++)if(X+=J[H].value.raw,H+1<J.length)this.token(X+"${",!0),this.print(G.expressions[H]),X="}";this.token(X+"`",!0)}Object.defineProperty(sz,"__esModule",{value:!0});sz.TaggedTemplateExpression=AG1;sz.TemplateElement=CG1;sz.TemplateLiteral=fG1});var ez=S((oz)=>{function OG1(G){const{operator:J}=G;if(J==="void"||J==="delete"||J==="typeof"||J==="throw")this.word(J),this.space();else this.token(J);this.print(G.argument)}function vG1(G){if(G.async)this.word("async",!0),this.space();this.word("do"),this.space(),this.print(G.body)}function _G1(G){this.tokenChar(40);const J=this.enterDelimited();this.print(G.expression),J(),this.rightParens(G)}function gG1(G){if(G.prefix)this.token(G.operator),this.print(G.argument);else this.print(G.argument,!0),this.token(G.operator)}function bG1(G){this.print(G.test),this.space(),this.tokenChar(63),this.space(),this.print(G.consequent),this.space(),this.tokenChar(58),this.space(),this.print(G.alternate)}function hG1(G,J){if(this.word("new"),this.space(),this.print(G.callee),this.format.minified&&G.arguments.length===0&&!G.optional&&!NG1(J,{callee:G})&&!Z7(J)&&!kG1(J))return;if(this.print(G.typeArguments),this.print(G.typeParameters),G.optional)this.token("?.");this.tokenChar(40);const X=this.enterDelimited();this.printList(G.arguments),X(),this.rightParens(G)}function yG1(G){this.printList(G.expressions)}function mG1(){this.word("this")}function xG1(){this.word("super")}function lG1(G){if(typeof this.format.decoratorsBeforeExport==="boolean")return this.format.decoratorsBeforeExport;return typeof G.start==="number"&&G.start===G.declaration.start}function cG1(G){this.tokenChar(64),this.print(G.expression),this.newline()}function aG1(G){let{computed:J}=G;const{optional:X,property:H}=G;if(this.print(G.object),!J&&Z7(H))throw new TypeError("Got a MemberExpression for MemberExpression property");if(nz(H)&&typeof H.value==="number")J=!0;if(X)this.token("?.");if(J)this.tokenChar(91),this.print(H),this.tokenChar(93);else{if(!X)this.tokenChar(46);this.print(H)}}function rG1(G){if(this.print(G.callee),this.print(G.typeParameters),G.optional)this.token("?.");this.print(G.typeArguments),this.tokenChar(40);const J=this.enterDelimited();this.printList(G.arguments),J(),this.rightParens(G)}function iG1(G){this.print(G.callee),this.print(G.typeArguments),this.print(G.typeParameters),this.tokenChar(40);const J=this.enterDelimited();this.printList(G.arguments),J(),this.rightParens(G)}function uG1(){this.word("import")}function dG1(G){if(this.word("await"),G.argument)this.space(),this.printTerminatorless(G.argument)}function sG1(G){if(this.word("yield",!0),G.delegate){if(this.tokenChar(42),G.argument)this.space(),this.print(G.argument)}else if(G.argument)this.space(),this.printTerminatorless(G.argument)}function pG1(){this.semicolon(!0)}function nG1(G){this.tokenContext|=wG1.TokenContext.expressionStatement,this.print(G.expression),this.semicolon()}function oG1(G){if(this.print(G.left),G.left.type==="Identifier"||EG1(G.left)){if(G.left.optional)this.tokenChar(63);this.print(G.left.typeAnnotation)}this.space(),this.tokenChar(61),this.space(),this.print(G.right)}function eG1(G){if(this.print(G.left),this.space(),G.operator==="in"||G.operator==="instanceof")this.word(G.operator);else this.token(G.operator),this._endsWithDiv=G.operator==="/";this.space(),this.print(G.right)}function tG1(G){this.print(G.object),this.token("::"),this.print(G.callee)}function GJ1(G){if(this.print(G.object),!G.computed&&Z7(G.property))throw new TypeError("Got a MemberExpression for MemberExpression property");let J=G.computed;if(nz(G.property)&&typeof G.property.value==="number")J=!0;if(J){const X=this.enterDelimited();this.tokenChar(91),this.print(G.property),this.tokenChar(93),X()}else this.tokenChar(46),this.print(G.property)}function JJ1(G){this.print(G.meta),this.tokenChar(46),this.print(G.property)}function XJ1(G){this.tokenChar(35),this.print(G.id)}function HJ1(G){this.tokenChar(37),this.word(G.name)}function ZJ1(G){this.word("module",!0),this.space(),this.tokenChar(123),this.indent();const{body:J}=G;if(J.body.length||J.directives.length)this.newline();this.print(J),this.dedent(),this.rightBrace(G)}Object.defineProperty(oz,"__esModule",{value:!0});oz.LogicalExpression=oz.BinaryExpression=oz.AssignmentExpression=eG1;oz.AssignmentPattern=oG1;oz.AwaitExpression=dG1;oz.BindExpression=tG1;oz.CallExpression=iG1;oz.ConditionalExpression=bG1;oz.Decorator=cG1;oz.DoExpression=vG1;oz.EmptyStatement=pG1;oz.ExpressionStatement=nG1;oz.Import=uG1;oz.MemberExpression=GJ1;oz.MetaProperty=JJ1;oz.ModuleExpression=ZJ1;oz.NewExpression=hG1;oz.OptionalCallExpression=rG1;oz.OptionalMemberExpression=aG1;oz.ParenthesizedExpression=_G1;oz.PrivateName=XJ1;oz.SequenceExpression=yG1;oz.Super=xG1;oz.ThisExpression=mG1;oz.UnaryExpression=OG1;oz.UpdateExpression=gG1;oz.V8IntrinsicIdentifier=HJ1;oz.YieldExpression=sG1;oz._shouldPrintDecoratorsBeforeExport=lG1;var TG1=F1(),wG1=w0(),{isCallExpression:NG1,isLiteral:nz,isMemberExpression:Z7,isNewExpression:kG1,isPattern:EG1}=TG1});var ZU=S((XU)=>{function bJ1(G){this.word("with"),this.space(),this.tokenChar(40),this.print(G.object),this.tokenChar(41),this.printBlock(G)}function hJ1(G){this.word("if"),this.space(),this.tokenChar(40),this.print(G.test),this.tokenChar(41),this.space();const J=G.alternate&&_J1(GU(G.consequent));if(J)this.tokenChar(123),this.newline(),this.indent();if(this.printAndIndentOnComments(G.consequent),J)this.dedent(),this.newline(),this.tokenChar(125);if(G.alternate){if(this.endsWith(125))this.space();this.word("else"),this.space(),this.printAndIndentOnComments(G.alternate)}}function GU(G){const{body:J}=G;if(gJ1(J)===!1)return G;return GU(J)}function yJ1(G){this.word("for"),this.space(),this.tokenChar(40);{const J=this.enterForStatementInit();this.tokenContext|=V7.TokenContext.forHead,this.print(G.init),J()}if(this.tokenChar(59),G.test)this.space(),this.print(G.test);if(this.tokenChar(59),G.update)this.space(),this.print(G.update);this.tokenChar(41),this.printBlock(G)}function mJ1(G){this.word("while"),this.space(),this.tokenChar(40),this.print(G.test),this.tokenChar(41),this.printBlock(G)}function JU(G){this.word("for"),this.space();const J=G.type==="ForOfStatement";if(J&&G.await)this.word("await"),this.space();this.noIndentInnerCommentsHere(),this.tokenChar(40);{const X=J?null:this.enterForStatementInit();this.tokenContext|=J?V7.TokenContext.forOfHead:V7.TokenContext.forInHead,this.print(G.left),X==null||X()}this.space(),this.word(J?"of":"in"),this.space(),this.print(G.right),this.tokenChar(41),this.printBlock(G)}function xJ1(G){this.word("do"),this.space(),this.print(G.body),this.space(),this.word("while"),this.space(),this.tokenChar(40),this.print(G.test),this.tokenChar(41),this.semicolon()}function LG(G,J){if(J)G.space(),G.printTerminatorless(J);G.semicolon()}function lJ1(G){this.word("break"),LG(this,G.label)}function cJ1(G){this.word("continue"),LG(this,G.label)}function aJ1(G){this.word("return"),LG(this,G.argument)}function rJ1(G){this.word("throw"),LG(this,G.argument)}function iJ1(G){this.print(G.label),this.tokenChar(58),this.space(),this.print(G.body)}function uJ1(G){if(this.word("try"),this.space(),this.print(G.block),this.space(),G.handlers)this.print(G.handlers[0]);else this.print(G.handler);if(G.finalizer)this.space(),this.word("finally"),this.space(),this.print(G.finalizer)}function dJ1(G){if(this.word("catch"),this.space(),G.param)this.tokenChar(40),this.print(G.param),this.print(G.param.typeAnnotation),this.tokenChar(41),this.space();this.print(G.body)}function sJ1(G){this.word("switch"),this.space(),this.tokenChar(40),this.print(G.discriminant),this.tokenChar(41),this.space(),this.tokenChar(123),this.printSequence(G.cases,{indent:!0,addNewlines(J,X){if(!J&&G.cases[G.cases.length-1]===X)return-1}}),this.rightBrace(G)}function pJ1(G){if(G.test)this.word("case"),this.space(),this.print(G.test),this.tokenChar(58);else this.word("default"),this.tokenChar(58);if(G.consequent.length)this.newline(),this.printSequence(G.consequent,{indent:!0})}function nJ1(){this.word("debugger"),this.semicolon()}function oJ1(G,J){if(G.declare)this.word("declare"),this.space();const{kind:X}=G;if(X==="await using")this.word("await"),this.space(),this.word("using",!0);else this.word(X,X==="using");this.space();let H=!1;if(!tz(J)){for(let Z of G.declarations)if(Z.init)H=!0}if(this.printList(G.declarations,{separator:H?function(){this.tokenChar(44),this.newline()}:void 0,indent:G.declarations.length>1?!0:!1}),tz(J)){if(vJ1(J)){if(J.init===G)return}else if(J.left===G)return}this.semicolon()}function eJ1(G){if(this.print(G.id),G.definite)this.tokenChar(33);if(this.print(G.id.typeAnnotation),G.init)this.space(),this.tokenChar(61),this.space(),this.print(G.init)}Object.defineProperty(XU,"__esModule",{value:!0});XU.BreakStatement=lJ1;XU.CatchClause=dJ1;XU.ContinueStatement=cJ1;XU.DebuggerStatement=nJ1;XU.DoWhileStatement=xJ1;XU.ForOfStatement=XU.ForInStatement=void 0;XU.ForStatement=yJ1;XU.IfStatement=hJ1;XU.LabeledStatement=iJ1;XU.ReturnStatement=aJ1;XU.SwitchCase=pJ1;XU.SwitchStatement=sJ1;XU.ThrowStatement=rJ1;XU.TryStatement=uJ1;XU.VariableDeclaration=oJ1;XU.VariableDeclarator=eJ1;XU.WhileStatement=mJ1;XU.WithStatement=bJ1;var OJ1=F1(),V7=w0(),{isFor:tz,isForStatement:vJ1,isIfStatement:_J1,isStatement:gJ1}=OJ1,tv1=XU.ForInStatement=JU,G_1=XU.ForOfStatement=JU});var QU=S((VU)=>{function IX1(G,J){if(!(jX1(J)||DX1(J))||!this._shouldPrintDecoratorsBeforeExport(J))this.printJoin(G.decorators);if(G.declare)this.word("declare"),this.space();if(G.abstract)this.word("abstract"),this.space();if(this.word("class"),G.id)this.space(),this.print(G.id);if(this.print(G.typeParameters),G.superClass)this.space(),this.word("extends"),this.space(),this.print(G.superClass),this.print(G.superTypeParameters);if(G.implements)this.space(),this.word("implements"),this.space(),this.printList(G.implements);this.space(),this.print(G.body)}function AX1(G){if(this.tokenChar(123),G.body.length===0)this.tokenChar(125);else{this.newline();const J=this.enterDelimited();if(this.printSequence(G.body,{indent:!0}),J(),!this.endsWith(10))this.newline();this.rightBrace(G)}}function CX1(G){var J;this.printJoin(G.decorators);const X=(J=G.key.loc)==null||(J=J.end)==null?void 0:J.line;if(X)this.catchUp(X);if(this.tsPrintClassMemberModifiers(G),G.computed)this.tokenChar(91),this.print(G.key),this.tokenChar(93);else this._variance(G),this.print(G.key);if(G.optional)this.tokenChar(63);if(G.definite)this.tokenChar(33);if(this.print(G.typeAnnotation),G.value)this.space(),this.tokenChar(61),this.space(),this.print(G.value);this.semicolon()}function fX1(G){var J;this.printJoin(G.decorators);const X=(J=G.key.loc)==null||(J=J.end)==null?void 0:J.line;if(X)this.catchUp(X);if(this.tsPrintClassMemberModifiers(G),this.word("accessor",!0),this.space(),G.computed)this.tokenChar(91),this.print(G.key),this.tokenChar(93);else this._variance(G),this.print(G.key);if(G.optional)this.tokenChar(63);if(G.definite)this.tokenChar(33);if(this.print(G.typeAnnotation),G.value)this.space(),this.tokenChar(61),this.space(),this.print(G.value);this.semicolon()}function SX1(G){if(this.printJoin(G.decorators),G.static)this.word("static"),this.space();if(this.print(G.key),this.print(G.typeAnnotation),G.value)this.space(),this.tokenChar(61),this.space(),this.print(G.value);this.semicolon()}function PX1(G){this._classMethodHead(G),this.space(),this.print(G.body)}function LX1(G){this._classMethodHead(G),this.space(),this.print(G.body)}function TX1(G){var J;this.printJoin(G.decorators);const X=(J=G.key.loc)==null||(J=J.end)==null?void 0:J.line;if(X)this.catchUp(X);this.tsPrintClassMemberModifiers(G),this._methodHead(G)}function wX1(G){if(this.word("static"),this.space(),this.tokenChar(123),G.body.length===0)this.tokenChar(125);else this.newline(),this.printSequence(G.body,{indent:!0}),this.rightBrace(G)}Object.defineProperty(VU,"__esModule",{value:!0});VU.ClassAccessorProperty=fX1;VU.ClassBody=AX1;VU.ClassExpression=VU.ClassDeclaration=IX1;VU.ClassMethod=PX1;VU.ClassPrivateMethod=LX1;VU.ClassPrivateProperty=SX1;VU.ClassProperty=CX1;VU.StaticBlock=wX1;VU._classMethodHead=TX1;var FX1=F1(),{isExportDefaultDeclaration:jX1,isExportNamedDeclaration:DX1}=FX1});var WU=S((YU)=>{function lX1(G,J,X){this.print(G.typeParameters);const H=nX1.call(this,J,X);if(H)this.sourceIdentifierName(H.name,H.pos);this.tokenChar(40),this._parameters(G.params),this.tokenChar(41);const Z=G.type==="ArrowFunctionExpression";this.print(G.returnType,Z),this._noLineTerminator=Z}function cX1(G){const J=this.enterDelimited(),X=G.length;for(let H=0;H<X;H++)if(this._param(G[H]),H<G.length-1)this.tokenChar(44),this.space();J()}function aX1(G){if(this.printJoin(G.decorators),this.print(G),G.optional)this.tokenChar(63);this.print(G.typeAnnotation)}function rX1(G){const{kind:J,key:X}=G;if(J==="get"||J==="set")this.word(J),this.space();if(G.async)this.word("async",!0),this.space();if(J==="method"||J==="init"){if(G.generator)this.tokenChar(42)}if(G.computed)this.tokenChar(91),this.print(X),this.tokenChar(93);else this.print(X);if(G.optional)this.tokenChar(63);this._params(G,G.computed&&G.key.type!=="StringLiteral"?void 0:G.key,void 0)}function iX1(G,J){if(G.predicate){if(!G.returnType)this.tokenChar(58);this.space(),this.print(G.predicate,J)}}function uX1(G,J){if(G.async)this.word("async"),this._endsWithInnerRaw=!1,this.space();if(this.word("function"),G.generator)this._endsWithInnerRaw=!1,this.tokenChar(42);if(this.space(),G.id)this.print(G.id);if(this._params(G,G.id,J),G.type!=="TSDeclareFunction")this._predicate(G)}function dX1(G,J){this._functionHead(G,J),this.space(),this.print(G.body)}function sX1(G,J){if(G.async)this.word("async",!0),this.space();let X;if(!this.format.retainLines&&G.params.length===1&&xX1(X=G.params[0])&&!pX1(G,X))this.print(X,!0);else this._params(G,void 0,J);this._predicate(G,!0),this.space(),this.printInnerComments(),this.token("=>"),this.space(),this.tokenContext|=mX1.TokenContext.arrowBody,this.print(G.body)}function pX1(G,J){var X,H;return!!(G.typeParameters||G.returnType||G.predicate||J.typeAnnotation||J.optional||(X=J.leadingComments)!=null&&X.length||(H=J.trailingComments)!=null&&H.length)}function nX1(G,J){let X=G;if(!X&&J){const W=J.type;if(W==="VariableDeclarator")X=J.id;else if(W==="AssignmentExpression"||W==="AssignmentPattern")X=J.left;else if(W==="ObjectProperty"||W==="ClassProperty"){if(!J.computed||J.key.type==="StringLiteral")X=J.key}else if(W==="ClassPrivateProperty"||W==="ClassAccessorProperty")X=J.key}if(!X)return;let H;if(X.type==="Identifier"){var Z,V;H={pos:(Z=X.loc)==null?void 0:Z.start,name:((V=X.loc)==null?void 0:V.identifierName)||X.name}}else if(X.type==="PrivateName"){var Q;H={pos:(Q=X.loc)==null?void 0:Q.start,name:"#"+X.id.name}}else if(X.type==="StringLiteral"){var Y;H={pos:(Y=X.loc)==null?void 0:Y.start,name:X.value}}return H}Object.defineProperty(YU,"__esModule",{value:!0});YU.ArrowFunctionExpression=sX1;YU.FunctionDeclaration=YU.FunctionExpression=dX1;YU._functionHead=uX1;YU._methodHead=rX1;YU._param=aX1;YU._parameters=cX1;YU._params=lX1;YU._predicate=iX1;var yX1=F1(),mX1=w0(),{isIdentifier:xX1}=yX1});var Q7=S((BU)=>{function B71(G){if(G.importKind==="type"||G.importKind==="typeof")this.word(G.importKind),this.space();if(this.print(G.imported),G.local&&G.local.name!==G.imported.name)this.space(),this.word("as"),this.space(),this.print(G.local)}function $71(G){this.print(G.local)}function R71(G){this.print(G.exported)}function M71(G){if(G.exportKind==="type")this.word("type"),this.space();if(this.print(G.local),G.exported&&G.local.name!==G.exported.name)this.space(),this.word("as"),this.space(),this.print(G.exported)}function q71(G){this.tokenChar(42),this.space(),this.word("as"),this.space(),this.print(G.exported)}function F71(G){const{importAttributesKeyword:J}=this.format,{attributes:X,assertions:H}=G;if(X&&!J&&!zU)zU=!0,console.warn(`You are using import attributes, without specifying the desired output syntax.
2
+ Please specify the "importAttributesKeyword" generator option, whose value can be one of:
3
+ - "with" : \`import { a } from "b" with { type: "json" };\`
4
+ - "assert" : \`import { a } from "b" assert { type: "json" };\`
5
+ - "with-legacy" : \`import { a } from "b" with type: "json";\`
6
+ `);const Z=J==="assert"||!J&&H;if(this.word(Z?"assert":"with"),this.space(),!Z&&J!=="with"){this.printList(X||H);return}this.tokenChar(123),this.space(),this.printList(X||H),this.space(),this.tokenChar(125)}function j71(G){var J,X;if(this.word("export"),this.space(),G.exportKind==="type")this.word("type"),this.space();if(this.tokenChar(42),this.space(),this.word("from"),this.space(),(J=G.attributes)!=null&&J.length||(X=G.assertions)!=null&&X.length)this.print(G.source,!0),this.space(),this._printAttributes(G);else this.print(G.source);this.semicolon()}function KU(G,J){if(Y71(J.declaration)&&G._shouldPrintDecoratorsBeforeExport(J))G.printJoin(J.declaration.decorators)}function D71(G){if(KU(this,G),this.word("export"),this.space(),G.declaration){const H=G.declaration;if(this.print(H),!UU(H))this.semicolon()}else{if(G.exportKind==="type")this.word("type"),this.space();const H=G.specifiers.slice(0);let Z=!1;for(;;){const V=H[0];if(W71(V)||z71(V)){if(Z=!0,this.print(H.shift()),H.length)this.tokenChar(44),this.space()}else break}if(H.length||!H.length&&!Z){if(this.tokenChar(123),H.length)this.space(),this.printList(H),this.space();this.tokenChar(125)}if(G.source){var J,X;if(this.space(),this.word("from"),this.space(),(J=G.attributes)!=null&&J.length||(X=G.assertions)!=null&&X.length)this.print(G.source,!0),this.space(),this._printAttributes(G);else this.print(G.source)}this.semicolon()}}function I71(G){KU(this,G),this.word("export"),this.noIndentInnerCommentsHere(),this.space(),this.word("default"),this.space(),this.tokenContext|=Q71.TokenContext.exportDefault;const J=G.declaration;if(this.print(J),!UU(J))this.semicolon()}function A71(G){var J,X;this.word("import"),this.space();const H=G.importKind==="type"||G.importKind==="typeof";if(H)this.noIndentInnerCommentsHere(),this.word(G.importKind),this.space();else if(G.module)this.noIndentInnerCommentsHere(),this.word("module"),this.space();else if(G.phase)this.noIndentInnerCommentsHere(),this.word(G.phase),this.space();const Z=G.specifiers.slice(0),V=!!Z.length;while(V){const Q=Z[0];if(U71(Q)||K71(Q)){if(this.print(Z.shift()),Z.length)this.tokenChar(44),this.space()}else break}if(Z.length)this.tokenChar(123),this.space(),this.printList(Z),this.space(),this.tokenChar(125);else if(H&&!V)this.tokenChar(123),this.tokenChar(125);if(V||H)this.space(),this.word("from"),this.space();if((J=G.attributes)!=null&&J.length||(X=G.assertions)!=null&&X.length)this.print(G.source,!0),this.space(),this._printAttributes(G);else this.print(G.source);this.semicolon()}function C71(G){this.print(G.key),this.tokenChar(58),this.space(),this.print(G.value)}function f71(G){this.tokenChar(42),this.space(),this.word("as"),this.space(),this.print(G.local)}function S71(G){if(this.word("import"),G.phase)this.tokenChar(46),this.word(G.phase);if(this.tokenChar(40),this.print(G.source),G.options!=null)this.tokenChar(44),this.space(),this.print(G.options);this.tokenChar(41)}Object.defineProperty(BU,"__esModule",{value:!0});BU.ExportAllDeclaration=j71;BU.ExportDefaultDeclaration=I71;BU.ExportDefaultSpecifier=R71;BU.ExportNamedDeclaration=D71;BU.ExportNamespaceSpecifier=q71;BU.ExportSpecifier=M71;BU.ImportAttribute=C71;BU.ImportDeclaration=A71;BU.ImportDefaultSpecifier=$71;BU.ImportExpression=S71;BU.ImportNamespaceSpecifier=f71;BU.ImportSpecifier=B71;BU._printAttributes=F71;var V71=F1(),Q71=w0(),{isClassDeclaration:Y71,isExportDefaultSpecifier:W71,isExportNamespaceSpecifier:z71,isImportDefaultSpecifier:U71,isImportNamespaceSpecifier:K71,isStatement:UU}=V71,zU=!1});var qU=S((Y_1,MU)=>{var $U={},y71=$U.hasOwnProperty,RU=(G,J)=>{for(let X in G)if(y71.call(G,X))J(X,G[X])},m71=(G,J)=>{if(!J)return G;return RU(J,(X,H)=>{G[X]=H}),G},x71=(G,J)=>{const X=G.length;let H=-1;while(++H<X)J(G[H])},TG=(G)=>{return"\\u"+("0000"+G).slice(-4)},T9=(G,J)=>{let X=G.toString(16);if(J)return X;return X.toUpperCase()},w9=$U.toString,l71=Array.isArray,c71=(G)=>{return typeof Buffer==="function"&&Buffer.isBuffer(G)},a71=(G)=>{return w9.call(G)=="[object Object]"},r71=(G)=>{return typeof G=="string"||w9.call(G)=="[object String]"},i71=(G)=>{return typeof G=="number"||w9.call(G)=="[object Number]"},u71=(G)=>{return typeof G=="function"},d71=(G)=>{return w9.call(G)=="[object Map]"},s71=(G)=>{return w9.call(G)=="[object Set]"},p71={"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t"},n71=/[\\\b\f\n\r\t]/,o71=/[0-9]/,e71=/[\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,t71=/([\uD800-\uDBFF][\uDC00-\uDFFF])|([\uD800-\uDFFF])|(['"`])|[^]/g,G31=/([\uD800-\uDBFF][\uDC00-\uDFFF])|([\uD800-\uDFFF])|(['"`])|[^ !#-&\(-\[\]-_a-~]/g,N0=(G,J)=>{const X=()=>{z=W,++J.indentLevel,W=J.indent.repeat(J.indentLevel)},H={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},Z=J&&J.json;if(Z)H.quotes="double",H.wrap=!0;if(J=m71(H,J),J.quotes!="single"&&J.quotes!="double"&&J.quotes!="backtick")J.quotes="single";const V=J.quotes=="double"?'"':J.quotes=="backtick"?"`":"\'",Q=J.compact,Y=J.lowercaseHex;let W=J.indent.repeat(J.indentLevel),z="";const{__inline1__:B,__inline2__:q}=J,F=Q?"":"\n";let j,f=!0;const h=J.numbers=="binary",w=J.numbers=="octal",v=J.numbers=="decimal",b=J.numbers=="hexadecimal";if(Z&&G&&u71(G.toJSON))G=G.toJSON();if(!r71(G)){if(d71(G)){if(G.size==0)return"new Map()";if(!Q)J.__inline1__=!0,J.__inline2__=!1;return"new Map("+N0(Array.from(G),J)+")"}if(s71(G)){if(G.size==0)return"new Set()";return"new Set("+N0(Array.from(G),J)+")"}if(c71(G)){if(G.length==0)return"Buffer.from([])";return"Buffer.from("+N0(Array.from(G),J)+")"}if(l71(G)){if(j=[],J.wrap=!0,B)J.__inline1__=!1,J.__inline2__=!0;if(!q)X();if(x71(G,(G1)=>{if(f=!1,q)J.__inline2__=!1;j.push((Q||q?"":W)+N0(G1,J))}),f)return"[]";if(q)return"["+j.join(", ")+"]";return"["+F+j.join(","+F)+F+(Q?"":z)+"]"}else if(i71(G)){if(Z)return JSON.stringify(G);if(v)return String(G);if(b){let G1=G.toString(16);if(!Y)G1=G1.toUpperCase();return"0x"+G1}if(h)return"0b"+G.toString(2);if(w)return"0o"+G.toString(8)}else if(!a71(G)){if(Z)return JSON.stringify(G)||"null";return String(G)}else{if(j=[],J.wrap=!0,X(),RU(G,(G1,R1)=>{f=!1,j.push((Q?"":W)+N0(G1,J)+":"+(Q?"":" ")+N0(R1,J))}),f)return"{}";return"{"+F+j.join(","+F)+F+(Q?"":z)+"}"}}const $1=J.escapeEverything?t71:G31;if(j=G.replace($1,(G1,R1,z1,I1,E1,r)=>{if(R1){if(J.minimal)return R1;const _=R1.charCodeAt(0),p=R1.charCodeAt(1);if(J.es6){const i=(_-55296)*1024+p-56320+65536;return"\\u{"+T9(i,Y)+"}"}return TG(T9(_,Y))+TG(T9(p,Y))}if(z1)return TG(T9(z1.charCodeAt(0),Y));if(G1=="\0"&&!Z&&!o71.test(r.charAt(E1+1)))return"\\0";if(I1){if(I1==V||J.escapeEverything)return"\\"+I1;return I1}if(n71.test(G1))return p71[G1];if(J.minimal&&!e71.test(G1))return G1;const u=T9(G1.charCodeAt(0),Y);if(Z||u.length>2)return TG(u);return"\\x"+("00"+u).slice(-2)}),V=="`")j=j.replace(/\$\{/g,"\\${");if(J.isScriptContext)j=j.replace(/<\/(script|style)/gi,"<\\/$1").replace(/<!--/g,Z?"\\u003C!--":"\\x3C!--");if(J.wrap)j=V+j+V;return j};N0.version="3.0.2";MU.exports=N0});var W7=S((DU)=>{function H31(G){var J;this.sourceIdentifierName(((J=G.loc)==null?void 0:J.identifierName)||G.name),this.word(G.name)}function Z31(){this.tokenChar(63)}function V31(G){this.token("..."),this.print(G.argument)}function Q31(G){const J=G.properties;if(this.tokenChar(123),J.length){const X=this.enterDelimited();this.space(),this.printList(J,{indent:!0,statement:!0}),this.space(),X()}this.sourceWithOffset("end",G.loc,-1),this.tokenChar(125)}function Y31(G){this.printJoin(G.decorators),this._methodHead(G),this.space(),this.print(G.body)}function W31(G){if(this.printJoin(G.decorators),G.computed)this.tokenChar(91),this.print(G.key),this.tokenChar(93);else{if(X31(G.value)&&Y7(G.key)&&G.key.name===G.value.left.name){this.print(G.value);return}if(this.print(G.key),G.shorthand&&Y7(G.key)&&Y7(G.value)&&G.key.name===G.value.name)return}this.tokenChar(58),this.space(),this.print(G.value)}function z31(G){const J=G.elements,X=J.length;this.tokenChar(91);const H=this.enterDelimited();for(let Z=0;Z<J.length;Z++){const V=J[Z];if(V){if(Z>0)this.space();if(this.print(V),Z<X-1)this.tokenChar(44)}else this.tokenChar(44)}H(),this.tokenChar(93)}function U31(G){const J=G.properties;let X,H;if(this.format.recordAndTupleSyntaxType==="bar")X="{|",H="|}";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="#{",H="}";if(this.token(X),J.length)this.space(),this.printList(J,{indent:!0,statement:!0}),this.space();this.token(H)}function K31(G){const J=G.elements,X=J.length;let H,Z;if(this.format.recordAndTupleSyntaxType==="bar")H="[|",Z="|]";else if(this.format.recordAndTupleSyntaxType==="hash")H="#[",Z="]";else throw new Error(`${this.format.recordAndTupleSyntaxType} is not a valid recordAndTuple syntax type`);this.token(H);for(let V=0;V<J.length;V++){const Q=J[V];if(Q){if(V>0)this.space();if(this.print(Q),V<X-1)this.tokenChar(44)}}this.token(Z)}function B31(G){this.word(`/${G.pattern}/${G.flags}`)}function $31(G){this.word(G.value?"true":"false")}function R31(){this.word("null")}function M31(G){const J=this.getPossibleRaw(G),X=this.format.jsescOption,H=G.value,Z=H+"";if(X.numbers)this.number(jU(H,X),H);else if(J==null)this.number(Z,H);else if(this.format.minified)this.number(J.length<Z.length?J:Z,H);else this.number(J,H)}function q31(G){const J=this.getPossibleRaw(G);if(!this.format.minified&&J!==void 0){this.token(J);return}const X=jU(G.value,this.format.jsescOption);this.token(X)}function F31(G){const J=this.getPossibleRaw(G);if(!this.format.minified&&J!==void 0){this.word(J);return}this.word(G.value+"n")}function j31(G){const J=this.getPossibleRaw(G);if(!this.format.minified&&J!==void 0){this.word(J);return}this.word(G.value+"m")}function D31(){const{topicToken:G}=this.format;if(FU.has(G))this.token(G);else{const J=JSON.stringify(G),X=Array.from(FU,(H)=>JSON.stringify(H));throw new Error(`The "topicToken" generator option must be one of ${X.join(", ")} (${J} received instead).`)}}function I31(G){this.print(G.expression)}function A31(G){this.print(G.callee)}function C31(){this.tokenChar(35)}Object.defineProperty(DU,"__esModule",{value:!0});DU.ArgumentPlaceholder=Z31;DU.ArrayPattern=DU.ArrayExpression=z31;DU.BigIntLiteral=F31;DU.BooleanLiteral=$31;DU.DecimalLiteral=j31;DU.Identifier=H31;DU.NullLiteral=R31;DU.NumericLiteral=M31;DU.ObjectPattern=DU.ObjectExpression=Q31;DU.ObjectMethod=Y31;DU.ObjectProperty=W31;DU.PipelineBareFunction=A31;DU.PipelinePrimaryTopicReference=C31;DU.PipelineTopicExpression=I31;DU.RecordExpression=U31;DU.RegExpLiteral=B31;DU.SpreadElement=DU.RestElement=V31;DU.StringLiteral=q31;DU.TopicReference=D31;DU.TupleExpression=K31;var J31=F1(),jU=qU(),{isAssignmentPattern:X31,isIdentifier:Y7}=J31,FU=new Set(["^^","@@","^","%","#"])});var AU=S((EG)=>{function d31(){this.word("any")}function s31(G){this.print(G.elementType,!0),this.tokenChar(91),this.tokenChar(93)}function p31(){this.word("boolean")}function n31(G){this.word(G.value?"true":"false")}function o31(){this.word("null")}function e31(G,J){if(!wG(J))this.word("declare"),this.space();this.word("class"),this.space(),this._interfaceish(G)}function t31(G,J){if(!wG(J))this.word("declare"),this.space();if(this.word("function"),this.space(),this.print(G.id),this.print(G.id.typeAnnotation.typeAnnotation),G.predicate)this.space(),this.print(G.predicate);this.semicolon()}function GH1(){this.tokenChar(37),this.word("checks")}function JH1(G){this.tokenChar(37),this.word("checks"),this.tokenChar(40),this.print(G.value),this.tokenChar(41)}function XH1(G){this.word("declare"),this.space(),this.InterfaceDeclaration(G)}function HH1(G){this.word("declare"),this.space(),this.word("module"),this.space(),this.print(G.id),this.space(),this.print(G.body)}function ZH1(G){this.word("declare"),this.space(),this.word("module"),this.tokenChar(46),this.word("exports"),this.print(G.typeAnnotation)}function VH1(G){this.word("declare"),this.space(),this.TypeAlias(G)}function QH1(G,J){if(!wG(J))this.word("declare"),this.space();this.OpaqueType(G)}function YH1(G,J){if(!wG(J))this.word("declare"),this.space();this.word("var"),this.space(),this.print(G.id),this.print(G.id.typeAnnotation),this.semicolon()}function WH1(G){if(this.word("declare"),this.space(),this.word("export"),this.space(),G.default)this.word("default"),this.space();DH1.call(this,G)}function zH1(G){this.word("declare"),this.space(),r31.ExportAllDeclaration.call(this,G)}function UH1(G){const{id:J,body:X}=G;this.word("enum"),this.space(),this.print(J),this.print(X)}function NG(G,J,X){if(X)G.space(),G.word("of"),G.space(),G.word(J);G.space()}function kG(G,J){const{members:X}=J;G.token("{"),G.indent(),G.newline();for(let H of X)G.print(H),G.newline();if(J.hasUnknownMembers)G.token("..."),G.newline();G.dedent(),G.token("}")}function KH1(G){const{explicitType:J}=G;NG(this,"boolean",J),kG(this,G)}function BH1(G){const{explicitType:J}=G;NG(this,"number",J),kG(this,G)}function $H1(G){const{explicitType:J}=G;NG(this,"string",J),kG(this,G)}function RH1(G){NG(this,"symbol",!0),kG(this,G)}function MH1(G){const{id:J}=G;this.print(J),this.tokenChar(44)}function z7(G,J){G.print(J.id),G.space(),G.token("="),G.space(),G.print(J.init),G.token(",")}function qH1(G){z7(this,G)}function FH1(G){z7(this,G)}function jH1(G){z7(this,G)}function DH1(G){if(G.declaration){const J=G.declaration;if(this.print(J),!u31(J))this.semicolon()}else{if(this.tokenChar(123),G.specifiers.length)this.space(),this.printList(G.specifiers),this.space();if(this.tokenChar(125),G.source)this.space(),this.word("from"),this.space(),this.print(G.source);this.semicolon()}}function IH1(){this.tokenChar(42)}function AH1(G,J){if(this.print(G.typeParameters),this.tokenChar(40),G.this){if(this.word("this"),this.tokenChar(58),this.space(),this.print(G.this.typeAnnotation),G.params.length||G.rest)this.tokenChar(44),this.space()}if(this.printList(G.params),G.rest){if(G.params.length)this.tokenChar(44),this.space();this.token("..."),this.print(G.rest)}this.tokenChar(41);const X=J==null?void 0:J.type;if(X!=null&&(X==="ObjectTypeCallProperty"||X==="ObjectTypeInternalSlot"||X==="DeclareFunction"||X==="ObjectTypeProperty"&&J.method))this.tokenChar(58);else this.space(),this.token("=>");this.space(),this.print(G.returnType)}function CH1(G){if(this.print(G.name),G.optional)this.tokenChar(63);if(G.name)this.tokenChar(58),this.space();this.print(G.typeAnnotation)}function fH1(G){this.print(G.id),this.print(G.typeParameters,!0)}function SH1(G){var J;if(this.print(G.id),this.print(G.typeParameters),(J=G.extends)!=null&&J.length)this.space(),this.word("extends"),this.space(),this.printList(G.extends);if(G.type==="DeclareClass"){var X,H;if((X=G.mixins)!=null&&X.length)this.space(),this.word("mixins"),this.space(),this.printList(G.mixins);if((H=G.implements)!=null&&H.length)this.space(),this.word("implements"),this.space(),this.printList(G.implements)}this.space(),this.print(G.body)}function PH1(G){var J;const X=(J=G.variance)==null?void 0:J.kind;if(X!=null){if(X==="plus")this.tokenChar(43);else if(X==="minus")this.tokenChar(45)}}function LH1(G){this.word("interface"),this.space(),this._interfaceish(G)}function TH1(){this.space(),this.tokenChar(38),this.space()}function wH1(G){var J;if(this.word("interface"),(J=G.extends)!=null&&J.length)this.space(),this.word("extends"),this.space(),this.printList(G.extends);this.space(),this.print(G.body)}function NH1(G){this.printJoin(G.types,{separator:TH1})}function kH1(){this.word("mixed")}function EH1(){this.word("empty")}function OH1(G){this.tokenChar(63),this.print(G.typeAnnotation)}function vH1(){this.word("number")}function _H1(){this.word("string")}function gH1(){this.word("this")}function bH1(G){this.tokenChar(91),this.printList(G.types),this.tokenChar(93)}function hH1(G){this.word("typeof"),this.space(),this.print(G.argument)}function yH1(G){this.word("type"),this.space(),this.print(G.id),this.print(G.typeParameters),this.space(),this.tokenChar(61),this.space(),this.print(G.right),this.semicolon()}function mH1(G,J){if(this.tokenChar(58),this.space(),J.type==="ArrowFunctionExpression")this.tokenContext|=i31.TokenContext.arrowFlowReturnType;else if(G.optional)this.tokenChar(63);this.print(G.typeAnnotation)}function xH1(G){this.tokenChar(60),this.printList(G.params,{}),this.tokenChar(62)}function lH1(G){if(this._variance(G),this.word(G.name),G.bound)this.print(G.bound);if(G.default)this.space(),this.tokenChar(61),this.space(),this.print(G.default)}function cH1(G){if(this.word("opaque"),this.space(),this.word("type"),this.space(),this.print(G.id),this.print(G.typeParameters),G.supertype)this.tokenChar(58),this.space(),this.print(G.supertype);if(G.impltype)this.space(),this.tokenChar(61),this.space(),this.print(G.impltype);this.semicolon()}function aH1(G){if(G.exact)this.token("{|");else this.tokenChar(123);const J=[...G.properties,...G.callProperties||[],...G.indexers||[],...G.internalSlots||[]];if(J.length)this.newline(),this.space(),this.printJoin(J,{addNewlines(X){if(X&&!J[0])return 1},indent:!0,statement:!0,iterator:()=>{if(J.length!==1||G.inexact)this.tokenChar(44),this.space()}}),this.space();if(G.inexact){if(this.indent(),this.token("..."),J.length)this.newline();this.dedent()}if(G.exact)this.token("|}");else this.tokenChar(125)}function rH1(G){if(G.static)this.word("static"),this.space();if(this.tokenChar(91),this.tokenChar(91),this.print(G.id),this.tokenChar(93),this.tokenChar(93),G.optional)this.tokenChar(63);if(!G.method)this.tokenChar(58),this.space();this.print(G.value)}function iH1(G){if(G.static)this.word("static"),this.space();this.print(G.value)}function uH1(G){if(G.static)this.word("static"),this.space();if(this._variance(G),this.tokenChar(91),G.id)this.print(G.id),this.tokenChar(58),this.space();this.print(G.key),this.tokenChar(93),this.tokenChar(58),this.space(),this.print(G.value)}function dH1(G){if(G.proto)this.word("proto"),this.space();if(G.static)this.word("static"),this.space();if(G.kind==="get"||G.kind==="set")this.word(G.kind),this.space();if(this._variance(G),this.print(G.key),G.optional)this.tokenChar(63);if(!G.method)this.tokenChar(58),this.space();this.print(G.value)}function sH1(G){this.token("..."),this.print(G.argument)}function pH1(G){this.print(G.qualification),this.tokenChar(46),this.print(G.id)}function nH1(){this.word("symbol")}function oH1(){this.space(),this.tokenChar(124),this.space()}function eH1(G){this.printJoin(G.types,{separator:oH1})}function tH1(G){this.tokenChar(40),this.print(G.expression),this.print(G.typeAnnotation),this.tokenChar(41)}function GZ1(G){if(G.kind==="plus")this.tokenChar(43);else this.tokenChar(45)}function JZ1(){this.word("void")}function XZ1(G){this.print(G.objectType,!0),this.tokenChar(91),this.print(G.indexType),this.tokenChar(93)}function HZ1(G){if(this.print(G.objectType),G.optional)this.token("?.");this.tokenChar(91),this.print(G.indexType),this.tokenChar(93)}Object.defineProperty(EG,"__esModule",{value:!0});EG.AnyTypeAnnotation=d31;EG.ArrayTypeAnnotation=s31;EG.BooleanLiteralTypeAnnotation=n31;EG.BooleanTypeAnnotation=p31;EG.DeclareClass=e31;EG.DeclareExportAllDeclaration=zH1;EG.DeclareExportDeclaration=WH1;EG.DeclareFunction=t31;EG.DeclareInterface=XH1;EG.DeclareModule=HH1;EG.DeclareModuleExports=ZH1;EG.DeclareOpaqueType=QH1;EG.DeclareTypeAlias=VH1;EG.DeclareVariable=YH1;EG.DeclaredPredicate=JH1;EG.EmptyTypeAnnotation=EH1;EG.EnumBooleanBody=KH1;EG.EnumBooleanMember=qH1;EG.EnumDeclaration=UH1;EG.EnumDefaultedMember=MH1;EG.EnumNumberBody=BH1;EG.EnumNumberMember=FH1;EG.EnumStringBody=$H1;EG.EnumStringMember=jH1;EG.EnumSymbolBody=RH1;EG.ExistsTypeAnnotation=IH1;EG.FunctionTypeAnnotation=AH1;EG.FunctionTypeParam=CH1;EG.IndexedAccessType=XZ1;EG.InferredPredicate=GH1;EG.InterfaceDeclaration=LH1;EG.GenericTypeAnnotation=EG.ClassImplements=EG.InterfaceExtends=fH1;EG.InterfaceTypeAnnotation=wH1;EG.IntersectionTypeAnnotation=NH1;EG.MixedTypeAnnotation=kH1;EG.NullLiteralTypeAnnotation=o31;EG.NullableTypeAnnotation=OH1;Object.defineProperty(EG,"NumberLiteralTypeAnnotation",{enumerable:!0,get:function(){return IU.NumericLiteral}});EG.NumberTypeAnnotation=vH1;EG.ObjectTypeAnnotation=aH1;EG.ObjectTypeCallProperty=iH1;EG.ObjectTypeIndexer=uH1;EG.ObjectTypeInternalSlot=rH1;EG.ObjectTypeProperty=dH1;EG.ObjectTypeSpreadProperty=sH1;EG.OpaqueType=cH1;EG.OptionalIndexedAccessType=HZ1;EG.QualifiedTypeIdentifier=pH1;Object.defineProperty(EG,"StringLiteralTypeAnnotation",{enumerable:!0,get:function(){return IU.StringLiteral}});EG.StringTypeAnnotation=_H1;EG.SymbolTypeAnnotation=nH1;EG.ThisTypeAnnotation=gH1;EG.TupleTypeAnnotation=bH1;EG.TypeAlias=yH1;EG.TypeAnnotation=mH1;EG.TypeCastExpression=tH1;EG.TypeParameter=lH1;EG.TypeParameterDeclaration=EG.TypeParameterInstantiation=xH1;EG.TypeofTypeAnnotation=hH1;EG.UnionTypeAnnotation=eH1;EG.Variance=GZ1;EG.VoidTypeAnnotation=JZ1;EG._interfaceish=SH1;EG._variance=PH1;var a31=F1(),r31=Q7(),i31=w0(),IU=W7(),{isDeclareExportDeclaration:wG,isStatement:u31}=a31});var fU=S((CU)=>{function BV1(G){if(G.program)this.print(G.program.interpreter);this.print(G.program)}function $V1(G){var J;this.noIndentInnerCommentsHere(),this.printInnerComments();const X=(J=G.directives)==null?void 0:J.length;if(X){var H;const Z=G.body.length?2:1;if(this.printSequence(G.directives,{trailingCommentsLineOffset:Z}),!((H=G.directives[X-1].trailingComments)!=null&&H.length))this.newline(Z)}this.printSequence(G.body)}function RV1(G){var J;this.tokenChar(123);const X=this.enterDelimited(),H=(J=G.directives)==null?void 0:J.length;if(H){var Z;const V=G.body.length?2:1;if(this.printSequence(G.directives,{indent:!0,trailingCommentsLineOffset:V}),!((Z=G.directives[H-1].trailingComments)!=null&&Z.length))this.newline(V)}this.printSequence(G.body,{indent:!0}),X(),this.rightBrace(G)}function MV1(G){this.print(G.value),this.semicolon()}function jV1(G){const J=this.getPossibleRaw(G);if(!this.format.minified&&J!==void 0){this.token(J);return}const{value:X}=G;if(!FV1.test(X))this.token(`"${X}"`);else if(!qV1.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 DV1(G){this.token(`#!${G.value}`),this.newline(1,!0)}function IV1(G){if(this.token("%%"),this.print(G.name),this.token("%%"),G.expectedNode==="Statement")this.semicolon()}Object.defineProperty(CU,"__esModule",{value:!0});CU.BlockStatement=RV1;CU.Directive=MV1;CU.DirectiveLiteral=jV1;CU.File=BV1;CU.InterpreterDirective=DV1;CU.Placeholder=IV1;CU.Program=$V1;var qV1=/(?:^|[^\\])(?:\\\\)*'/,FV1=/(?:^|[^\\])(?:\\\\)*"/});var PU=S((SU)=>{function wV1(G){if(this.print(G.name),G.value)this.tokenChar(61),this.print(G.value)}function NV1(G){this.word(G.name)}function kV1(G){this.print(G.namespace),this.tokenChar(58),this.print(G.name)}function EV1(G){this.print(G.object),this.tokenChar(46),this.print(G.property)}function OV1(G){this.tokenChar(123),this.token("..."),this.print(G.argument),this.rightBrace(G)}function vV1(G){this.tokenChar(123),this.print(G.expression),this.rightBrace(G)}function _V1(G){this.tokenChar(123),this.token("..."),this.print(G.expression),this.rightBrace(G)}function gV1(G){const J=this.getPossibleRaw(G);if(J!==void 0)this.token(J,!0);else this.token(G.value,!0)}function bV1(G){const J=G.openingElement;if(this.print(J),J.selfClosing)return;this.indent();for(let X of G.children)this.print(X);this.dedent(),this.print(G.closingElement)}function hV1(){this.space()}function yV1(G){if(this.tokenChar(60),this.print(G.name),this.print(G.typeParameters),G.attributes.length>0)this.space(),this.printJoin(G.attributes,{separator:hV1});if(G.selfClosing)this.space(),this.token("/>");else this.tokenChar(62)}function mV1(G){this.token("</"),this.print(G.name),this.tokenChar(62)}function xV1(){this.printInnerComments()}function lV1(G){this.print(G.openingFragment),this.indent();for(let J of G.children)this.print(J);this.dedent(),this.print(G.closingFragment)}function cV1(){this.tokenChar(60),this.tokenChar(62)}function aV1(){this.token("</"),this.tokenChar(62)}Object.defineProperty(SU,"__esModule",{value:!0});SU.JSXAttribute=wV1;SU.JSXClosingElement=mV1;SU.JSXClosingFragment=aV1;SU.JSXElement=bV1;SU.JSXEmptyExpression=xV1;SU.JSXExpressionContainer=vV1;SU.JSXFragment=lV1;SU.JSXIdentifier=NV1;SU.JSXMemberExpression=EV1;SU.JSXNamespacedName=kV1;SU.JSXOpeningElement=yV1;SU.JSXOpeningFragment=cV1;SU.JSXSpreadAttribute=OV1;SU.JSXSpreadChild=_V1;SU.JSXText=gV1});var NU=S((wU)=>{function VQ1(G){if(this.tokenChar(58),this.space(),G.optional)this.tokenChar(63);this.print(G.typeAnnotation)}function QQ1(G,J){if(this.tokenChar(60),this.printList(G.params,{}),J.type==="ArrowFunctionExpression"&&G.params.length===1)this.tokenChar(44);this.tokenChar(62)}function YQ1(G){if(G.in)this.word("in"),this.space();if(G.out)this.word("out"),this.space();if(this.word(G.name),G.constraint)this.space(),this.word("extends"),this.space(),this.print(G.constraint);if(G.default)this.space(),this.tokenChar(61),this.space(),this.print(G.default)}function WQ1(G){if(G.accessibility)this.word(G.accessibility),this.space();if(G.readonly)this.word("readonly"),this.space();this._param(G.parameter)}function zQ1(G,J){if(G.declare)this.word("declare"),this.space();this._functionHead(G,J),this.semicolon()}function UQ1(G){this._classMethodHead(G),this.semicolon()}function KQ1(G){this.print(G.left),this.tokenChar(46),this.print(G.right)}function BQ1(G){this.tsPrintSignatureDeclarationBase(G),this.semicolon()}function $Q1(G){this.word("new"),this.space(),this.tsPrintSignatureDeclarationBase(G),this.semicolon()}function RQ1(G){const{readonly:J}=G;if(J)this.word("readonly"),this.space();this.tsPrintPropertyOrMethodName(G),this.print(G.typeAnnotation),this.semicolon()}function MQ1(G){if(G.computed)this.tokenChar(91);if(this.print(G.key),G.computed)this.tokenChar(93);if(G.optional)this.tokenChar(63)}function qQ1(G){const{kind:J}=G;if(J==="set"||J==="get")this.word(J),this.space();this.tsPrintPropertyOrMethodName(G),this.tsPrintSignatureDeclarationBase(G),this.semicolon()}function FQ1(G){const{readonly:J,static:X}=G;if(X)this.word("static"),this.space();if(J)this.word("readonly"),this.space();this.tokenChar(91),this._parameters(G.parameters),this.tokenChar(93),this.print(G.typeAnnotation),this.semicolon()}function jQ1(){this.word("any")}function DQ1(){this.word("bigint")}function IQ1(){this.word("unknown")}function AQ1(){this.word("number")}function CQ1(){this.word("object")}function fQ1(){this.word("boolean")}function SQ1(){this.word("string")}function PQ1(){this.word("symbol")}function LQ1(){this.word("void")}function TQ1(){this.word("undefined")}function wQ1(){this.word("null")}function NQ1(){this.word("never")}function kQ1(){this.word("intrinsic")}function EQ1(){this.word("this")}function OQ1(G){this.tsPrintFunctionOrConstructorType(G)}function vQ1(G){if(G.abstract)this.word("abstract"),this.space();this.word("new"),this.space(),this.tsPrintFunctionOrConstructorType(G)}function _Q1(G){const{typeParameters:J}=G,X=G.parameters;this.print(J),this.tokenChar(40),this._parameters(X),this.tokenChar(41),this.space(),this.token("=>"),this.space();const H=G.typeAnnotation;this.print(H.typeAnnotation)}function gQ1(G){this.print(G.typeName,!0),this.print(G.typeParameters,!0)}function bQ1(G){if(G.asserts)this.word("asserts"),this.space();if(this.print(G.parameterName),G.typeAnnotation)this.space(),this.word("is"),this.space(),this.print(G.typeAnnotation.typeAnnotation)}function hQ1(G){if(this.word("typeof"),this.space(),this.print(G.exprName),G.typeParameters)this.print(G.typeParameters)}function yQ1(G){this.tsPrintTypeLiteralOrInterfaceBody(G.members,G)}function mQ1(G,J){U7(this,G,J)}function U7(G,J,X){if(G.token("{"),J.length){G.indent(),G.newline();for(let H of J)G.print(H),G.newline();G.dedent()}G.rightBrace(X)}function xQ1(G){this.print(G.elementType,!0),this.tokenChar(91),this.tokenChar(93)}function lQ1(G){this.tokenChar(91),this.printList(G.elementTypes),this.tokenChar(93)}function cQ1(G){this.print(G.typeAnnotation),this.tokenChar(63)}function aQ1(G){this.token("..."),this.print(G.typeAnnotation)}function rQ1(G){if(this.print(G.label),G.optional)this.tokenChar(63);this.tokenChar(58),this.space(),this.print(G.elementType)}function iQ1(G){TU(this,G,"|")}function uQ1(G){TU(this,G,"&")}function TU(G,J,X){G.printJoin(J.types,{separator(){this.space(),this.token(X),this.space()}})}function dQ1(G){this.print(G.checkType),this.space(),this.word("extends"),this.space(),this.print(G.extendsType),this.space(),this.tokenChar(63),this.space(),this.print(G.trueType),this.space(),this.tokenChar(58),this.space(),this.print(G.falseType)}function sQ1(G){this.word("infer"),this.print(G.typeParameter)}function pQ1(G){this.tokenChar(40),this.print(G.typeAnnotation),this.tokenChar(41)}function nQ1(G){this.word(G.operator),this.space(),this.print(G.typeAnnotation)}function oQ1(G){this.print(G.objectType,!0),this.tokenChar(91),this.print(G.indexType),this.tokenChar(93)}function eQ1(G){const{nameType:J,optional:X,readonly:H,typeAnnotation:Z}=G;if(this.tokenChar(123),this.space(),H)LU(this,H),this.word("readonly"),this.space();if(this.tokenChar(91),this.word(G.typeParameter.name),this.space(),this.word("in"),this.space(),this.print(G.typeParameter.constraint),J)this.space(),this.word("as"),this.space(),this.print(J);if(this.tokenChar(93),X)LU(this,X),this.tokenChar(63);if(Z)this.tokenChar(58),this.space(),this.print(Z);this.space(),this.tokenChar(125)}function LU(G,J){if(J!==!0)G.token(J)}function tQ1(G){this.print(G.literal)}function GY1(G){this.print(G.expression),this.print(G.typeParameters)}function JY1(G){const{declare:J,id:X,typeParameters:H,extends:Z,body:V}=G;if(J)this.word("declare"),this.space();if(this.word("interface"),this.space(),this.print(X),this.print(H),Z!=null&&Z.length)this.space(),this.word("extends"),this.space(),this.printList(Z);this.space(),this.print(V)}function XY1(G){this.tsPrintTypeLiteralOrInterfaceBody(G.body,G)}function HY1(G){const{declare:J,id:X,typeParameters:H,typeAnnotation:Z}=G;if(J)this.word("declare"),this.space();this.word("type"),this.space(),this.print(X),this.print(H),this.space(),this.tokenChar(61),this.space(),this.print(Z),this.semicolon()}function ZY1(G){const{type:J,expression:X,typeAnnotation:H}=G;this.print(X,!0),this.space(),this.word(J==="TSAsExpression"?"as":"satisfies"),this.space(),this.print(H)}function VY1(G){const{typeAnnotation:J,expression:X}=G;this.tokenChar(60),this.print(J),this.tokenChar(62),this.space(),this.print(X)}function QY1(G){this.print(G.expression),this.print(G.typeParameters)}function YY1(G){const{declare:J,const:X,id:H,members:Z}=G;if(J)this.word("declare"),this.space();if(X)this.word("const"),this.space();this.word("enum"),this.space(),this.print(H),this.space(),U7(this,Z,G)}function WY1(G){const{id:J,initializer:X}=G;if(this.print(J),X)this.space(),this.tokenChar(61),this.space(),this.print(X);this.tokenChar(44)}function zY1(G){const{declare:J,id:X}=G;if(J)this.word("declare"),this.space();if(!G.global)this.word(X.type==="Identifier"?"namespace":"module"),this.space();if(this.print(X),!G.body){this.semicolon();return}let H=G.body;while(H.type==="TSModuleDeclaration")this.tokenChar(46),this.print(H.id),H=H.body;this.space(),this.print(H)}function UY1(G){U7(this,G.body,G)}function KY1(G){const{argument:J,qualifier:X,typeParameters:H}=G;if(this.word("import"),this.tokenChar(40),this.print(J),this.tokenChar(41),X)this.tokenChar(46),this.print(X);if(H)this.print(H)}function BY1(G){const{isExport:J,id:X,moduleReference:H}=G;if(J)this.word("export"),this.space();this.word("import"),this.space(),this.print(X),this.space(),this.tokenChar(61),this.space(),this.print(H),this.semicolon()}function $Y1(G){this.token("require("),this.print(G.expression),this.tokenChar(41)}function RY1(G){this.print(G.expression),this.tokenChar(33)}function MY1(G){this.word("export"),this.space(),this.tokenChar(61),this.space(),this.print(G.expression),this.semicolon()}function qY1(G){this.word("export"),this.space(),this.word("as"),this.space(),this.word("namespace"),this.space(),this.print(G.id),this.semicolon()}function FY1(G){const{typeParameters:J}=G,X=G.parameters;this.print(J),this.tokenChar(40),this._parameters(X),this.tokenChar(41);const H=G.typeAnnotation;this.print(H)}function jY1(G){const J=G.type==="ClassAccessorProperty"||G.type==="ClassProperty";if(J&&G.declare)this.word("declare"),this.space();if(G.accessibility)this.word(G.accessibility),this.space();if(G.static)this.word("static"),this.space();if(G.override)this.word("override"),this.space();if(G.abstract)this.word("abstract"),this.space();if(J&&G.readonly)this.word("readonly"),this.space()}Object.defineProperty(wU,"__esModule",{value:!0});wU.TSAnyKeyword=jQ1;wU.TSArrayType=xQ1;wU.TSSatisfiesExpression=wU.TSAsExpression=ZY1;wU.TSBigIntKeyword=DQ1;wU.TSBooleanKeyword=fQ1;wU.TSCallSignatureDeclaration=BQ1;wU.TSInterfaceHeritage=wU.TSExpressionWithTypeArguments=wU.TSClassImplements=GY1;wU.TSConditionalType=dQ1;wU.TSConstructSignatureDeclaration=$Q1;wU.TSConstructorType=vQ1;wU.TSDeclareFunction=zQ1;wU.TSDeclareMethod=UQ1;wU.TSEnumDeclaration=YY1;wU.TSEnumMember=WY1;wU.TSExportAssignment=MY1;wU.TSExternalModuleReference=$Y1;wU.TSFunctionType=OQ1;wU.TSImportEqualsDeclaration=BY1;wU.TSImportType=KY1;wU.TSIndexSignature=FQ1;wU.TSIndexedAccessType=oQ1;wU.TSInferType=sQ1;wU.TSInstantiationExpression=QY1;wU.TSInterfaceBody=XY1;wU.TSInterfaceDeclaration=JY1;wU.TSIntersectionType=uQ1;wU.TSIntrinsicKeyword=kQ1;wU.TSLiteralType=tQ1;wU.TSMappedType=eQ1;wU.TSMethodSignature=qQ1;wU.TSModuleBlock=UY1;wU.TSModuleDeclaration=zY1;wU.TSNamedTupleMember=rQ1;wU.TSNamespaceExportDeclaration=qY1;wU.TSNeverKeyword=NQ1;wU.TSNonNullExpression=RY1;wU.TSNullKeyword=wQ1;wU.TSNumberKeyword=AQ1;wU.TSObjectKeyword=CQ1;wU.TSOptionalType=cQ1;wU.TSParameterProperty=WQ1;wU.TSParenthesizedType=pQ1;wU.TSPropertySignature=RQ1;wU.TSQualifiedName=KQ1;wU.TSRestType=aQ1;wU.TSStringKeyword=SQ1;wU.TSSymbolKeyword=PQ1;wU.TSThisType=EQ1;wU.TSTupleType=lQ1;wU.TSTypeAliasDeclaration=HY1;wU.TSTypeAnnotation=VQ1;wU.TSTypeAssertion=VY1;wU.TSTypeLiteral=yQ1;wU.TSTypeOperator=nQ1;wU.TSTypeParameter=YQ1;wU.TSTypeParameterDeclaration=wU.TSTypeParameterInstantiation=QQ1;wU.TSTypePredicate=bQ1;wU.TSTypeQuery=hQ1;wU.TSTypeReference=gQ1;wU.TSUndefinedKeyword=TQ1;wU.TSUnionType=iQ1;wU.TSUnknownKeyword=IQ1;wU.TSVoidKeyword=LQ1;wU.tsPrintClassMemberModifiers=jY1;wU.tsPrintFunctionOrConstructorType=_Q1;wU.tsPrintPropertyOrMethodName=MQ1;wU.tsPrintSignatureDeclarationBase=FY1;wU.tsPrintTypeLiteralOrInterfaceBody=mQ1});var kU=S((S1)=>{Object.defineProperty(S1,"__esModule",{value:!0});var K7=pz();Object.keys(K7).forEach(function(G){if(G==="default"||G==="__esModule")return;if(G in S1&&S1[G]===K7[G])return;Object.defineProperty(S1,G,{enumerable:!0,get:function(){return K7[G]}})});var B7=ez();Object.keys(B7).forEach(function(G){if(G==="default"||G==="__esModule")return;if(G in S1&&S1[G]===B7[G])return;Object.defineProperty(S1,G,{enumerable:!0,get:function(){return B7[G]}})});var $7=ZU();Object.keys($7).forEach(function(G){if(G==="default"||G==="__esModule")return;if(G in S1&&S1[G]===$7[G])return;Object.defineProperty(S1,G,{enumerable:!0,get:function(){return $7[G]}})});var R7=QU();Object.keys(R7).forEach(function(G){if(G==="default"||G==="__esModule")return;if(G in S1&&S1[G]===R7[G])return;Object.defineProperty(S1,G,{enumerable:!0,get:function(){return R7[G]}})});var M7=WU();Object.keys(M7).forEach(function(G){if(G==="default"||G==="__esModule")return;if(G in S1&&S1[G]===M7[G])return;Object.defineProperty(S1,G,{enumerable:!0,get:function(){return M7[G]}})});var q7=Q7();Object.keys(q7).forEach(function(G){if(G==="default"||G==="__esModule")return;if(G in S1&&S1[G]===q7[G])return;Object.defineProperty(S1,G,{enumerable:!0,get:function(){return q7[G]}})});var F7=W7();Object.keys(F7).forEach(function(G){if(G==="default"||G==="__esModule")return;if(G in S1&&S1[G]===F7[G])return;Object.defineProperty(S1,G,{enumerable:!0,get:function(){return F7[G]}})});var j7=AU();Object.keys(j7).forEach(function(G){if(G==="default"||G==="__esModule")return;if(G in S1&&S1[G]===j7[G])return;Object.defineProperty(S1,G,{enumerable:!0,get:function(){return j7[G]}})});var D7=fU();Object.keys(D7).forEach(function(G){if(G==="default"||G==="__esModule")return;if(G in S1&&S1[G]===D7[G])return;Object.defineProperty(S1,G,{enumerable:!0,get:function(){return D7[G]}})});var I7=PU();Object.keys(I7).forEach(function(G){if(G==="default"||G==="__esModule")return;if(G in S1&&S1[G]===I7[G])return;Object.defineProperty(S1,G,{enumerable:!0,get:function(){return I7[G]}})});var A7=NU();Object.keys(A7).forEach(function(G){if(G==="default"||G==="__esModule")return;if(G in S1&&S1[G]===A7[G])return;Object.defineProperty(S1,G,{enumerable:!0,get:function(){return A7[G]}})})});var bU=S((_U)=>{function EU(G){return G.type==="CommentLine"||vU.test(G.value)}function uW1(){this.tokenChar(44),this.space()}Object.defineProperty(_U,"__esModule",{value:!0});_U.default=void 0;var vW1=rV(),OU=w0(),_W1=F1(),gW1=kU(),{isExpression:bW1,isFunction:hW1,isStatement:yW1,isClassBody:mW1,isTSInterfaceBody:xW1,isTSEnumDeclaration:lW1}=_W1,cW1=/e/i,aW1=/\.0+$/,vU=/[\n\r\u2028\u2029]/,rW1=/[\n\r\u2028\u2029]|\*\//,{needsParens:iW1}=OU;class OG{constructor(G,J){this.inForStatementInit=!1,this.tokenContext=0,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.format=G,this._indentRepeat=G.indent.style.length,this._inputMap=J==null?void 0:J._inputMap,this._buf=new vW1.default(J,G.indent.style[0])}enterForStatementInit(){if(this.inForStatementInit)return()=>{};return this.inForStatementInit=!0,()=>{this.inForStatementInit=!1}}enterDelimited(){const G=this.inForStatementInit,J=this._noLineTerminatorAfterNode;if(G===!1&&J===null)return()=>{};return this.inForStatementInit=!1,this._noLineTerminatorAfterNode=null,()=>{this.inForStatementInit=G,this._noLineTerminatorAfterNode=J}}generate(G){return this.print(G),this._maybeAddAuxComment(),this._buf.get()}indent(){if(this.format.compact||this.format.concise)return;this._indent++}dedent(){if(this.format.compact||this.format.concise)return;this._indent--}semicolon(G=!1){if(this._maybeAddAuxComment(),G)this._appendChar(59);else this._queue(59);this._noLineTerminator=!1}rightBrace(G){if(this.format.minified)this._buf.removeLastSemicolon();this.sourceWithOffset("end",G.loc,-1),this.tokenChar(125)}rightParens(G){this.sourceWithOffset("end",G.loc,-1),this.tokenChar(41)}space(G=!1){if(this.format.compact)return;if(G)this._space();else if(this._buf.hasContent()){const J=this.getLastChar();if(J!==32&&J!==10)this._space()}}word(G,J=!1){if(this.tokenContext=0,this._maybePrintInnerComments(),this._endsWithWord||this._endsWithDiv&&G.charCodeAt(0)===47)this._space();this._maybeAddAuxComment(),this._append(G,!1),this._endsWithWord=!0,this._noLineTerminator=J}number(G,J){function X(H){if(H.length>2&&H.charCodeAt(0)===48){const Z=H.charCodeAt(1);return Z===98||Z===111||Z===120}return!1}this.word(G),this._endsWithInteger=Number.isInteger(J)&&!X(G)&&!cW1.test(G)&&!aW1.test(G)&&G.charCodeAt(G.length-1)!==46}token(G,J=!1){this.tokenContext=0,this._maybePrintInnerComments();const X=this.getLastChar(),H=G.charCodeAt(0);if(X===33&&(G==="--"||H===61)||H===43&&X===43||H===45&&X===45||H===46&&this._endsWithInteger)this._space();this._maybeAddAuxComment(),this._append(G,J),this._noLineTerminator=!1}tokenChar(G){this.tokenContext=0,this._maybePrintInnerComments();const J=this.getLastChar();if(G===43&&J===43||G===45&&J===45||G===46&&this._endsWithInteger)this._space();this._maybeAddAuxComment(),this._appendChar(G),this._noLineTerminator=!1}newline(G=1,J){if(G<=0)return;if(!J){if(this.format.retainLines||this.format.compact)return;if(this.format.concise){this.space();return}}if(G>2)G=2;G-=this._buf.getNewlineCount();for(let X=0;X<G;X++)this._newline();return}endsWith(G){return this.getLastChar()===G}getLastChar(){return this._buf.getLastChar()}endsWithCharAndNewline(){return this._buf.endsWithCharAndNewline()}removeTrailingNewline(){this._buf.removeTrailingNewline()}exactSource(G,J){if(!G){J();return}this._catchUp("start",G),this._buf.exactSource(G,J)}source(G,J){if(!J)return;this._catchUp(G,J),this._buf.source(G,J)}sourceWithOffset(G,J,X){if(!J)return;this._catchUp(G,J),this._buf.sourceWithOffset(G,J,X)}sourceIdentifierName(G,J){if(!this._buf._canMarkIdName)return;const X=this._buf._sourcePosition;X.identifierNamePos=J,X.identifierName=G}_space(){this._queue(32)}_newline(){this._queue(10)}_append(G,J){this._maybeIndent(G.charCodeAt(0)),this._buf.append(G,J),this._endsWithWord=!1,this._endsWithInteger=!1,this._endsWithDiv=!1}_appendChar(G){this._maybeIndent(G),this._buf.appendChar(G),this._endsWithWord=!1,this._endsWithInteger=!1,this._endsWithDiv=!1}_queue(G){this._maybeIndent(G),this._buf.queue(G),this._endsWithWord=!1,this._endsWithInteger=!1}_maybeIndent(G){if(this._indent&&G!==10&&this.endsWith(10))this._buf.queueIndentation(this._getIndent())}_shouldIndent(G){if(this._indent&&G!==10&&this.endsWith(10))return!0}catchUp(G){if(!this.format.retainLines)return;const J=G-this._buf.getCurrentLine();for(let X=0;X<J;X++)this._newline()}_catchUp(G,J){var X;if(!this.format.retainLines)return;const H=J==null||(X=J[G])==null?void 0:X.line;if(H!=null){const Z=H-this._buf.getCurrentLine();for(let V=0;V<Z;V++)this._newline()}}_getIndent(){return this._indentRepeat*this._indent}printTerminatorless(G){this._noLineTerminator=!0,this.print(G)}print(G,J,X){var H,Z,V;if(!G)return;this._endsWithInnerRaw=!1;const Q=G.type,Y=this.format,W=Y.concise;if(G._compact)Y.concise=!0;const z=this[Q];if(z===void 0)throw new ReferenceError(`unknown node of type ${JSON.stringify(Q)} with constructor ${JSON.stringify(G.constructor.name)}`);const B=this._currentNode;this._currentNode=G;const q=this._insideAux;this._insideAux=G.loc==null,this._maybeAddAuxComment(this._insideAux&&!q);const F=(H=G.extra)==null?void 0:H.parenthesized;let j=F&&Y.retainFunctionParens&&Q==="FunctionExpression"||iW1(G,B,this.tokenContext,this.inForStatementInit);if(!j&&F&&(Z=G.leadingComments)!=null&&Z.length&&G.leadingComments[0].type==="CommentBlock")switch(B==null?void 0:B.type){case"ExpressionStatement":case"VariableDeclarator":case"AssignmentExpression":case"ReturnStatement":break;case"CallExpression":case"OptionalCallExpression":case"NewExpression":if(B.callee!==G)break;default:j=!0}let f=!1;if(!j&&this._noLineTerminator&&((V=G.leadingComments)!=null&&V.some(EU)||this.format.retainLines&&G.loc&&G.loc.start.line>this._buf.getCurrentLine()))j=!0,f=!0;let h,w;if(!j){if(J||(J=B&&this._noLineTerminatorAfterNode===B&&OU.isLastChild(B,G)),J){var v;if((v=G.trailingComments)!=null&&v.some(EU)){if(bW1(G))j=!0}else h=this._noLineTerminatorAfterNode,this._noLineTerminatorAfterNode=G}}if(j){if(this.tokenChar(40),f)this.indent();if(this._endsWithInnerRaw=!1,this.inForStatementInit)w=!0,this.inForStatementInit=!1;h=this._noLineTerminatorAfterNode,this._noLineTerminatorAfterNode=null}this._lastCommentLine=0,this._printLeadingComments(G,B);const b=Q==="Program"||Q==="File"?null:G.loc;if(this.exactSource(b,z.bind(this,G,B)),j){if(this._printTrailingComments(G,B),f)this.dedent(),this.newline();if(this.tokenChar(41),this._noLineTerminator=J,w)this.inForStatementInit=!0}else if(J&&!this._noLineTerminator)this._noLineTerminator=!0,this._printTrailingComments(G,B);else this._printTrailingComments(G,B,X);if(this._currentNode=B,Y.concise=W,this._insideAux=q,h!==void 0)this._noLineTerminatorAfterNode=h;this._endsWithInnerRaw=!1}_maybeAddAuxComment(G){if(G)this._printAuxBeforeComment();if(!this._insideAux)this._printAuxAfterComment()}_printAuxBeforeComment(){if(this._printAuxAfterOnNextUserNode)return;this._printAuxAfterOnNextUserNode=!0;const G=this.format.auxiliaryCommentBefore;if(G)this._printComment({type:"CommentBlock",value:G},0)}_printAuxAfterComment(){if(!this._printAuxAfterOnNextUserNode)return;this._printAuxAfterOnNextUserNode=!1;const G=this.format.auxiliaryCommentAfter;if(G)this._printComment({type:"CommentBlock",value:G},0)}getPossibleRaw(G){const J=G.extra;if((J==null?void 0:J.raw)!=null&&J.rawValue!=null&&G.value===J.rawValue)return J.raw}printJoin(G,J={}){if(!(G!=null&&G.length))return;let{indent:X}=J;if(X==null&&this.format.retainLines){var H;const z=(H=G[0].loc)==null?void 0:H.start.line;if(z!=null&&z!==this._buf.getCurrentLine())X=!0}if(X)this.indent();const Z={addNewlines:J.addNewlines,nextNodeStartLine:0},V=J.separator?J.separator.bind(this):null,Q=G.length;for(let z=0;z<Q;z++){const B=G[z];if(!B)continue;if(J.statement)this._printNewline(z===0,Z);if(this.print(B,void 0,J.trailingCommentsLineOffset||0),J.iterator==null||J.iterator(B,z),z<Q-1)V==null||V();if(J.statement){var Y;if(!((Y=B.trailingComments)!=null&&Y.length))this._lastCommentLine=0;if(z+1===Q)this.newline(1);else{var W;const q=G[z+1];Z.nextNodeStartLine=((W=q.loc)==null?void 0:W.start.line)||0,this._printNewline(!0,Z)}}}if(X)this.dedent()}printAndIndentOnComments(G){const J=G.leadingComments&&G.leadingComments.length>0;if(J)this.indent();if(this.print(G),J)this.dedent()}printBlock(G){const J=G.body;if(J.type!=="EmptyStatement")this.space();this.print(J)}_printTrailingComments(G,J,X){const{innerComments:H,trailingComments:Z}=G;if(H!=null&&H.length)this._printComments(2,H,G,J,X);if(Z!=null&&Z.length)this._printComments(2,Z,G,J,X)}_printLeadingComments(G,J){const X=G.leadingComments;if(!(X!=null&&X.length))return;this._printComments(0,X,G,J)}_maybePrintInnerComments(){if(this._endsWithInnerRaw)this.printInnerComments();this._endsWithInnerRaw=!0,this._indentInnerComments=!0}printInnerComments(){const G=this._currentNode,J=G.innerComments;if(!(J!=null&&J.length))return;const X=this.endsWith(32),H=this._indentInnerComments,Z=this._printedComments.size;if(H)this.indent();if(this._printComments(1,J,G),X&&Z!==this._printedComments.size)this.space();if(H)this.dedent()}noIndentInnerCommentsHere(){this._indentInnerComments=!1}printSequence(G,J={}){var X;J.statement=!0,(X=J.indent)!=null||(J.indent=!1),this.printJoin(G,J)}printList(G,J={}){if(J.separator==null)J.separator=uW1;this.printJoin(G,J)}_printNewline(G,J){const X=this.format;if(X.retainLines||X.compact)return;if(X.concise){this.space();return}if(!G)return;const H=J.nextNodeStartLine,Z=this._lastCommentLine;if(H>0&&Z>0){const V=H-Z;if(V>=0){this.newline(V||1);return}}if(this._buf.hasContent())this.newline(1)}_shouldPrintComment(G){if(G.ignore)return 0;if(this._printedComments.has(G))return 0;if(this._noLineTerminator&&rW1.test(G.value))return 2;if(this._printedComments.add(G),!this.format.shouldPrintComment(G.value))return 0;return 1}_printComment(G,J){const X=this._noLineTerminator,H=G.type==="CommentBlock",Z=H&&J!==1&&!this._noLineTerminator;if(Z&&this._buf.hasContent()&&J!==2)this.newline(1);const V=this.getLastChar();if(V!==91&&V!==123&&V!==40)this.space();let Q;if(H){if(Q=`/*${G.value}*/`,this.format.indent.adjustMultilineComment){var Y;const W=(Y=G.loc)==null?void 0:Y.start.column;if(W){const z=new RegExp("\\n\\s{1,"+W+"}","g");Q=Q.replace(z,"\n")}if(this.format.concise)Q=Q.replace(/\n(?!$)/g,"\n");else{let z=this.format.retainLines?0:this._buf.getCurrentColumn();if(this._shouldIndent(47)||this.format.retainLines)z+=this._getIndent();Q=Q.replace(/\n(?!$)/g,`\n${" ".repeat(z)}`)}}}else if(!X)Q=`//${G.value}`;else Q=`/*${G.value}*/`;if(this._endsWithDiv)this._space();if(this.source("start",G.loc),this._append(Q,H),!H&&!X)this.newline(1,!0);if(Z&&J!==3)this.newline(1)}_printComments(G,J,X,H,Z=0){const V=X.loc,Q=J.length;let Y=!!V;const W=Y?V.start.line:0,z=Y?V.end.line:0;let B=0,q=0;const F=this._noLineTerminator?function(){}:this.newline.bind(this);for(let j=0;j<Q;j++){const f=J[j],h=this._shouldPrintComment(f);if(h===2){Y=!1;break}if(Y&&f.loc&&h===1){const w=f.loc.start.line,v=f.loc.end.line;if(G===0){let b=0;if(j===0){if(this._buf.hasContent()&&(f.type==="CommentLine"||w!==v))b=q=1}else b=w-B;if(B=v,F(b),this._printComment(f,1),j+1===Q)F(Math.max(W-B,q)),B=W}else if(G===1){const b=w-(j===0?W:B);if(B=v,F(b),this._printComment(f,1),j+1===Q)F(Math.min(1,z-B)),B=z}else{const b=w-(j===0?z-Z:B);B=v,F(b),this._printComment(f,1)}}else{if(Y=!1,h!==1)continue;if(Q===1){const w=f.loc?f.loc.start.line===f.loc.end.line:!vU.test(f.value),v=w&&!yW1(X)&&!mW1(H)&&!xW1(H)&&!lW1(H);if(G===0)this._printComment(f,v&&X.type!=="ObjectExpression"||w&&hW1(H,{body:X})?1:0);else if(v&&G===2)this._printComment(f,1);else this._printComment(f,0)}else if(G===1&&!(X.type==="ObjectExpression"&&X.properties.length>1)&&X.type!=="ClassBody"&&X.type!=="TSInterfaceBody")this._printComment(f,j===0?2:j===Q-1?3:0);else this._printComment(f,0)}}if(G===2&&Y&&B)this._lastCommentLine=B}}Object.assign(OG.prototype,gW1);OG.prototype.Noop=function G(){};var S_1=_U.default=OG});var C7=S((xU)=>{function mU(G,J){const X={auxiliaryCommentBefore:J.auxiliaryCommentBefore,auxiliaryCommentAfter:J.auxiliaryCommentAfter,shouldPrintComment:J.shouldPrintComment,retainLines:J.retainLines,retainFunctionParens:J.retainFunctionParens,comments:J.comments==null||J.comments,compact:J.compact,minified:J.minified,concise:J.concise,indent:{adjustMultilineComment:!0,style:" "},jsescOption:Object.assign({quotes:"double",wrap:!0,minimal:!1},J.jsescOption),topicToken:J.topicToken,importAttributesKeyword:J.importAttributesKeyword};{var H;X.decoratorsBeforeExport=J.decoratorsBeforeExport,X.jsescOption.json=J.jsonCompatibleStrings,X.recordAndTupleSyntaxType=(H=J.recordAndTupleSyntaxType)!=null?H:"hash"}if(X.minified)X.compact=!0,X.shouldPrintComment=X.shouldPrintComment||(()=>X.comments);else X.shouldPrintComment=X.shouldPrintComment||((Y)=>X.comments||Y.includes("@license")||Y.includes("@preserve"));if(X.compact==="auto"){if(X.compact=typeof G==="string"&&G.length>500000,X.compact)console.error(`[BABEL] Note: The code generator has deoptimised the styling of ${J.filename} as it exceeds the max of 500KB.`)}if(X.compact)X.indent.adjustMultilineComment=!1;const{auxiliaryCommentBefore:Z,auxiliaryCommentAfter:V,shouldPrintComment:Q}=X;if(Z&&!Q(Z))X.auxiliaryCommentBefore=void 0;if(V&&!Q(V))X.auxiliaryCommentAfter=void 0;return X}function dW1(G,J={},X){const H=mU(X,J),Z=J.sourceMaps?new hU.default(J,X):null;return new yU.default(H,Z).generate(G)}Object.defineProperty(xU,"__esModule",{value:!0});xU.default=dW1;var hU=xV(),yU=bU();xU.CodeGenerator=class G{constructor(J,X={},H){this._ast=void 0,this._format=void 0,this._map=void 0,this._ast=J,this._format=mU(H,X),this._map=X.sourceMaps?new hU.default(X,H):null}generate(){return new yU.default(this._format,this._map).generate(this._ast)}}});var lG=S((vK)=>{function pW1(G,J){if(G==null)return{};var X={};for(var H in G)if({}.hasOwnProperty.call(G,H)){if(J.includes(H))continue;X[H]=G[H]}return X}function U2(G,J){const{line:X,column:H,index:Z}=G;return new M0(X,H+J,Z+J)}function aU(G,J,X){Object.defineProperty(G,J,{enumerable:!1,configurable:!0,value:X})}function Xz1({toMessage:G,code:J,reasonCode:X,syntaxPlugin:H}){const Z=X==="MissingPlugin"||X==="MissingOneOfPlugins";{const V={AccessorCannotDeclareThisParameter:"AccesorCannotDeclareThisParameter",AccessorCannotHaveTypeParameters:"AccesorCannotHaveTypeParameters",ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference:"ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference",SetAccessorCannotHaveOptionalParameter:"SetAccesorCannotHaveOptionalParameter",SetAccessorCannotHaveRestParameter:"SetAccesorCannotHaveRestParameter",SetAccessorCannotHaveReturnType:"SetAccesorCannotHaveReturnType"};if(V[X])X=V[X]}return function V(Q,Y){const W=new SyntaxError;if(W.code=J,W.reasonCode=X,W.loc=Q,W.pos=Q.index,W.syntaxPlugin=H,Z)W.missingPlugin=Y.missingPlugin;return aU(W,"clone",function z(B={}){var q;const{line:F,column:j,index:f}=(q=B.loc)!=null?q:Q;return V(new M0(F,j,f),Object.assign({},Y,B.details))}),aU(W,"details",Y),Object.defineProperty(W,"message",{configurable:!0,get(){const z=`${G(Y)} (${Q.line}:${Q.column})`;return this.message=z,z},set(z){Object.defineProperty(this,"message",{value:z,writable:!0})}}),W}}function R0(G,J){if(Array.isArray(G))return(H)=>R0(H,G[0]);const X={};for(let H of Object.keys(G)){const Z=G[H],V=typeof Z==="string"?{message:()=>Z}:typeof Z==="function"?{message:Z}:Z,{message:Q}=V,Y=pW1(V,Jz1),W=typeof Q==="string"?()=>Q:Q;X[H]=Xz1(Object.assign({code:"BABEL_PARSER_SYNTAX_ERROR",reasonCode:H,toMessage:W},J?{syntaxPlugin:J}:{},Y))}return X}function N9(G){return rU(G.loc.start,"index"),rU(G.loc.end,"index"),G}function P1(G,J={}){J.keyword=G;const X=Z1(G,J);return v7.set(G,X),X}function z2(G,J){return Z1(G,{beforeExpr:D1,binop:J})}function Z1(G,J={}){var X,H,Z,V;return++_9,_7.push(G),g7.push((X=J.binop)!=null?X:-1),b7.push((H=J.beforeExpr)!=null?H:!1),h7.push((Z=J.startsExpr)!=null?Z:!1),y7.push((V=J.prefix)!=null?V:!1),B0.push(new O7(G,J)),_9}function j1(G,J={}){var X,H,Z,V;return++_9,v7.set(G,_9),_7.push(G),g7.push((X=J.binop)!=null?X:-1),b7.push((H=J.beforeExpr)!=null?H:!1),h7.push((Z=J.startsExpr)!=null?Z:!1),y7.push((V=J.prefix)!=null?V:!1),B0.push(new O7("name",J)),_9}function N1(G){return G>=93&&G<=132}function Yz1(G){return G<=92}function x2(G){return G>=58&&G<=132}function XK(G){return G>=58&&G<=136}function Wz1(G){return b7[G]}function N7(G){return h7[G]}function zz1(G){return G>=29&&G<=33}function iU(G){return G>=129&&G<=131}function Uz1(G){return G>=90&&G<=92}function m7(G){return G>=58&&G<=92}function Kz1(G){return G>=39&&G<=59}function Bz1(G){return G===34}function $z1(G){return y7[G]}function Rz1(G){return G>=121&&G<=123}function Mz1(G){return G>=124&&G<=130}function O0(G){return _7[G]}function bG(G){return g7[G]}function qz1(G){return G===57}function yG(G){return G>=24&&G<=25}function U0(G){return B0[G]}function k7(G,J){let X=65536;for(let H=0,Z=J.length;H<Z;H+=2){if(X+=J[H],X>G)return!1;if(X+=J[H+1],X>=G)return!0}return!1}function $0(G){if(G<65)return G===36;if(G<=90)return!0;if(G<97)return G===95;if(G<=122)return!0;if(G<=65535)return G>=170&&Fz1.test(String.fromCharCode(G));return k7(G,ZK)}function b5(G){if(G<48)return G===36;if(G<58)return!0;if(G<65)return!1;if(G<=90)return!0;if(G<97)return G===95;if(G<=122)return!0;if(G<=65535)return G>=170&&jz1.test(String.fromCharCode(G));return k7(G,ZK)||k7(G,Dz1)}function VK(G,J){return J&&G==="await"||G==="enum"}function QK(G,J){return VK(G,J)||Az1.has(G)}function YK(G){return Cz1.has(G)}function WK(G,J){return QK(G,J)||YK(G)}function fz1(G){return Iz1.has(G)}function Sz1(G,J,X){return G===64&&J===64&&$0(X)}function Lz1(G){return Pz1.has(G)}function BK(G,J){if(G.trailingComments===void 0)G.trailingComments=J;else G.trailingComments.unshift(...J)}function Tz1(G,J){if(G.leadingComments===void 0)G.leadingComments=J;else G.leadingComments.unshift(...J)}function h9(G,J){if(G.innerComments===void 0)G.innerComments=J;else G.innerComments.unshift(...J)}function E9(G,J,X){let H=null,Z=J.length;while(H===null&&Z>0)H=J[--Z];if(H===null||H.start>X.start)h9(G,X.comments);else BK(H,X.comments)}function h5(G){switch(G){case 10:case 13:case 8232:case 8233:return!0;default:return!1}}function uU(G,J,X){for(let H=J;H<X;H++)if(h5(G.charCodeAt(H)))return!0;return!1}function Nz1(G){switch(G){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}}function sU(G,J,X,H,Z,V){const Q=X,Y=H,W=Z;let z="",B=null,q=X;const{length:F}=J;for(;;){if(X>=F){V.unterminated(Q,Y,W),z+=J.slice(q,X);break}const j=J.charCodeAt(X);if(Ez1(G,j,J,X)){z+=J.slice(q,X);break}if(j===92){z+=J.slice(q,X);const f=Oz1(J,X,H,Z,G==="template",V);if(f.ch===null&&!B)B={pos:X,lineStart:H,curLine:Z};else z+=f.ch;({pos:X,lineStart:H,curLine:Z}=f),q=X}else if(j===8232||j===8233)++X,++Z,H=X;else if(j===10||j===13)if(G==="template"){if(z+=J.slice(q,X)+"\n",++X,j===13&&J.charCodeAt(X)===10)++X;++Z,q=H=X}else V.unterminated(Q,Y,W);else++X}return{pos:X,str:z,firstInvalidLoc:B,lineStart:H,curLine:Z,containsInvalid:!!B}}function Ez1(G,J,X,H){if(G==="template")return J===96||J===36&&X.charCodeAt(H+1)===123;return J===(G==="double"?34:39)}function Oz1(G,J,X,H,Z,V){const Q=!Z;J++;const Y=(z)=>({pos:J,ch:z,lineStart:X,curLine:H}),W=G.charCodeAt(J++);switch(W){case 110:return Y("\n");case 114:return Y("\r");case 120:{let z;return{code:z,pos:J}=E7(G,J,X,H,2,!1,Q,V),Y(z===null?null:String.fromCharCode(z))}case 117:{let z;return{code:z,pos:J}=MK(G,J,X,H,Q,V),Y(z===null?null:String.fromCodePoint(z))}case 116:return Y("\t");case 98:return Y("\b");case 118:return Y("\v");case 102:return Y("\f");case 13:if(G.charCodeAt(J)===10)++J;case 10:X=J,++H;case 8232:case 8233:return Y("");case 56:case 57:if(Z)return Y(null);else V.strictNumericEscape(J-1,X,H);default:if(W>=48&&W<=55){const z=J-1;let q=/^[0-7]+/.exec(G.slice(z,J+2))[0],F=parseInt(q,8);if(F>255)q=q.slice(0,-1),F=parseInt(q,8);J+=q.length-1;const j=G.charCodeAt(J);if(q!=="0"||j===56||j===57)if(Z)return Y(null);else V.strictNumericEscape(z,X,H);return Y(String.fromCharCode(F))}return Y(String.fromCharCode(W))}}function E7(G,J,X,H,Z,V,Q,Y){const W=J;let z;if({n:z,pos:J}=RK(G,J,X,H,16,Z,V,!1,Y,!Q),z===null)if(Q)Y.invalidEscapeSequence(W,X,H);else J=W-1;return{code:z,pos:J}}function RK(G,J,X,H,Z,V,Q,Y,W,z){const B=J,q=Z===16?dU.hex:dU.decBinOct,F=Z===16?_G.hex:Z===10?_G.dec:Z===8?_G.oct:_G.bin;let j=!1,f=0;for(let h=0,w=V==null?1/0:V;h<w;++h){const v=G.charCodeAt(J);let b;if(v===95&&Y!=="bail"){const $1=G.charCodeAt(J-1),G1=G.charCodeAt(J+1);if(!Y){if(z)return{n:null,pos:J};W.numericSeparatorInEscapeSequence(J,X,H)}else if(Number.isNaN(G1)||!F(G1)||q.has($1)||q.has(G1)){if(z)return{n:null,pos:J};W.unexpectedNumericSeparator(J,X,H)}++J;continue}if(v>=97)b=v-97+10;else if(v>=65)b=v-65+10;else if(kz1(v))b=v-48;else b=1/0;if(b>=Z)if(b<=9&&z)return{n:null,pos:J};else if(b<=9&&W.invalidDigit(J,X,H,Z))b=0;else if(Q)b=0,j=!0;else break;++J,f=f*Z+b}if(J===B||V!=null&&J-B!==V||j)return{n:null,pos:J};return{n:f,pos:J}}function MK(G,J,X,H,Z,V){const Q=G.charCodeAt(J);let Y;if(Q===123){if(++J,{code:Y,pos:J}=E7(G,J,X,H,G.indexOf("}",J)-J,!0,Z,V),++J,Y!==null&&Y>1114111)if(Z)V.invalidCodePoint(J,X,H);else return{code:null,pos:J}}else({code:Y,pos:J}=E7(G,J,X,H,4,!1,Z,V));return{code:Y,pos:J}}function O9(G,J,X){return new M0(X,G-J,G)}function _z1(){return new m9(3)}function gz1(){return new a7(1)}function bz1(){return new a7(2)}function IK(){return new m9}function hG(G,J){return(G?2:0)|(J?1:0)}function hz1(G){return q0(G)}function q0(G){const{type:J,start:X,end:H,loc:Z,range:V,extra:Q,name:Y}=G,W=Object.create(r7);if(W.type=J,W.start=X,W.end=H,W.loc=Z,W.range=V,W.extra=Q,W.name=Y,J==="Placeholder")W.expectedNode=G.expectedNode;return W}function yz1(G){const{type:J,start:X,end:H,loc:Z,range:V,extra:Q}=G;if(J==="Placeholder")return hz1(G);const Y=Object.create(r7);if(Y.type=J,Y.start=X,Y.end=H,Y.loc=Z,Y.range=V,G.raw!==void 0)Y.raw=G.raw;else Y.extra=Q;return Y.value=G.value,Y}function xz1(G){return G.type==="DeclareExportAllDeclaration"||G.type==="DeclareExportDeclaration"&&(!G.declaration||G.declaration.type!=="TypeAlias"&&G.declaration.type!=="InterfaceDeclaration")}function pU(G){return G.importKind==="type"||G.importKind==="typeof"}function cz1(G,J){const X=[],H=[];for(let Z=0;Z<G.length;Z++)(J(G[Z],Z,G)?X:H).push(G[Z]);return[X,H]}function E0(G){return G?G.type==="JSXOpeningFragment"||G.type==="JSXClosingFragment":!1}function g5(G){if(G.type==="JSXIdentifier")return G.name;if(G.type==="JSXNamespacedName")return G.namespace.name+":"+G.name.name;if(G.type==="JSXMemberExpression")return g5(G.object)+"."+g5(G.property);throw new Error("Node had unexpected type: "+G.type)}function dz1(G){if(G==null)throw new Error(`Unexpected ${G} value.`);return G}function nU(G){if(!G)throw new Error("Assert fail")}function sz1(G){switch(G){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 oU(G){return G==="private"||G==="public"||G==="protected"}function pz1(G){return G==="in"||G==="out"}function oz1(G){if(G.type!=="MemberExpression")return!1;const{computed:J,property:X}=G;if(J&&X.type!=="StringLiteral"&&(X.type!=="TemplateLiteral"||X.expressions.length>0))return!1;return NK(G.object)}function ez1(G,J){var X;const{type:H}=G;if((X=G.extra)!=null&&X.parenthesized)return!1;if(J){if(H==="Literal"){const{value:Z}=G;if(typeof Z==="string"||typeof Z==="boolean")return!0}}else if(H==="StringLiteral"||H==="BooleanLiteral")return!0;if(wK(G,J)||tz1(G,J))return!0;if(H==="TemplateLiteral"&&G.expressions.length===0)return!0;if(oz1(G))return!0;return!1}function wK(G,J){if(J)return G.type==="Literal"&&(typeof G.value==="number"||("bigint"in G));return G.type==="NumericLiteral"||G.type==="BigIntLiteral"}function tz1(G,J){if(G.type==="UnaryExpression"){const{operator:X,argument:H}=G;if(X==="-"&&wK(H,J))return!0}return!1}function NK(G){if(G.type==="Identifier")return!0;if(G.type!=="MemberExpression"||G.computed)return!1;return NK(G.object)}function XU1(G){if(G.has("decorators")){if(G.has("decorators-legacy"))throw new Error("Cannot use the decorators and decorators-legacy plugin together");const X=G.get("decorators").decoratorsBeforeExport;if(X!=null&&typeof X!=="boolean")throw new Error("'decoratorsBeforeExport' must be a boolean, if specified.");const H=G.get("decorators").allowCallParenthesized;if(H!=null&&typeof H!=="boolean")throw new Error("'allowCallParenthesized' must be a boolean.")}if(G.has("flow")&&G.has("typescript"))throw new Error("Cannot combine flow and typescript plugins.");if(G.has("placeholders")&&G.has("v8intrinsic"))throw new Error("Cannot combine placeholders and v8intrinsic plugins.");if(G.has("pipelineOperator")){var J;const X=G.get("pipelineOperator").proposal;if(!tU.includes(X)){const Z=tU.map((V)=>`"${V}"`).join(", ");throw new Error(`"pipelineOperator" requires "proposal" option whose value must be one of: ${Z}.`)}const H=((J=G.get("recordAndTuple"))==null?void 0:J.syntaxType)==="hash";if(X==="hack"){if(G.has("placeholders"))throw new Error("Cannot combine placeholders plugin and Hack-style pipes.");if(G.has("v8intrinsic"))throw new Error("Cannot combine v8intrinsic plugin and Hack-style pipes.");const Z=G.get("pipelineOperator").topicToken;if(!GK.includes(Z)){const V=GK.map((Q)=>`"${Q}"`).join(", ");throw new Error(`"pipelineOperator" in "proposal": "hack" mode also requires a "topicToken" option whose value must be one of: ${V}.`)}if(Z==="#"&&H)throw new Error(`Plugin conflict between \`["pipelineOperator", { proposal: "hack", topicToken: "#" }]\` and \`${JSON.stringify(["recordAndTuple",G.get("recordAndTuple")])}\`.`)}else if(X==="smart"&&H)throw new Error(`Plugin conflict between \`["pipelineOperator", { proposal: "smart" }]\` and \`${JSON.stringify(["recordAndTuple",G.get("recordAndTuple")])}\`.`)}if(G.has("moduleAttributes")){if(G.has("importAttributes")||G.has("importAssertions"))throw new Error("Cannot combine importAssertions, importAttributes and moduleAttributes plugins.");if(G.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(G.has("importAssertions")){if(G.has("importAttributes"))throw new Error("Cannot combine importAssertions and importAttributes plugins.")}if(G.has("recordAndTuple")){const X=G.get("recordAndTuple").syntaxType;if(X!=null){const H=["hash","bar"];if(!H.includes(X))throw new Error("The 'syntaxType' option of the 'recordAndTuple' plugin must be one of: "+H.map((Z)=>`'${Z}'`).join(", "))}}if(G.has("asyncDoExpressions")&&!G.has("doExpressions")){const X=new Error("'asyncDoExpressions' requires 'doExpressions', please add 'doExpressions' to parser plugins.");throw X.missingPlugins="doExpressions",X}if(G.has("optionalChainingAssign")&&G.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'.")}function ZU1(G){if(G==null)return Object.assign({},L7);if(G.annexB!=null&&G.annexB!==!1)throw new Error("The `annexB` option can only be set to `false`.");const J={};for(let H of Object.keys(L7)){var X;J[H]=(X=G[H])!=null?X:L7[H]}return J}function YU1(G,J){for(let X=0;X<G.length;X++){const H=G[X],{type:Z}=H;if(typeof Z==="number"){{if(Z===138){const{loc:V,start:Q,value:Y,end:W}=H,z=Q+1,B=U2(V.start,1);G.splice(X,1,new K0({type:U0(27),value:"#",start:Q,end:z,startLoc:V.start,endLoc:B}),new K0({type:U0(132),value:Y,start:z,end:W,startLoc:B,endLoc:V.end})),X++;continue}if(yG(Z)){const{loc:V,start:Q,value:Y,end:W}=H,z=Q+1,B=U2(V.start,1);let q;if(J.charCodeAt(Q)===96)q=new K0({type:U0(22),value:"`",start:Q,end:z,startLoc:V.start,endLoc:B});else q=new K0({type:U0(8),value:"}",start:Q,end:z,startLoc:V.start,endLoc:B});let F,j,f,h;if(Z===24)j=W-1,f=U2(V.end,-1),F=Y===null?null:Y.slice(1,-1),h=new K0({type:U0(22),value:"`",start:j,end:W,startLoc:f,endLoc:V.end});else j=W-2,f=U2(V.end,-2),F=Y===null?null:Y.slice(1,-2),h=new K0({type:U0(23),value:"${",start:j,end:W,startLoc:f,endLoc:V.end});G.splice(X,1,q,new K0({type:U0(20),value:F,start:z,end:j,startLoc:B,endLoc:f}),h),X+=2;continue}}H.type=U0(Z)}}return G}function WU1(G,J){var X;if(((X=J)==null?void 0:X.sourceType)==="unambiguous"){J=Object.assign({},J);try{J.sourceType="module";const H=v9(J,G),Z=H.parse();if(H.sawUnambiguousESM)return Z;if(H.ambiguousScriptDifferentAst)try{return J.sourceType="script",v9(J,G).parse()}catch(V){}else Z.program.sourceType="script";return Z}catch(H){try{return J.sourceType="script",v9(J,G).parse()}catch(Z){}throw H}}else return v9(J,G).parse()}function zU1(G,J){const X=v9(J,G);if(X.options.strictMode)X.state.strict=!0;return X.getExpression()}function UU1(G){const J={};for(let X of Object.keys(G))J[X]=U0(G[X]);return J}function v9(G,J){let X=i7;const H=new Map;if(G!=null&&G.plugins){for(let Z of G.plugins){let V,Q;if(typeof Z==="string")V=Z;else[V,Q]=Z;if(!H.has(V))H.set(V,Q||{})}XU1(H),X=BU1(H)}return new X(G,J,H)}function BU1(G){const J=[];for(let Z of HU1)if(G.has(Z))J.push(Z);const X=J.join("|");let H=JK.get(X);if(!H){H=i7;for(let Z of J)H=kK[Z](H);JK.set(X,H)}return H}Object.defineProperty(vK,"__esModule",{value:!0});class M0{constructor(G,J,X){this.line=void 0,this.column=void 0,this.index=void 0,this.line=G,this.column=J,this.index=X}}class b9{constructor(G,J){this.start=void 0,this.end=void 0,this.filename=void 0,this.identifierName=void 0,this.start=G,this.end=J}}var lU="BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED",nW1={ImportMetaOutsideModule:{message:`import.meta may appear only with 'sourceType: "module"'`,code:lU},ImportOutsideModule:{message:`'import' and 'export' may appear only with 'sourceType: "module"'`,code:lU}},cU={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"},gG=(G)=>G.type==="UpdateExpression"?cU.UpdateExpression[`${G.prefix}`]:cU[G.type],oW1={AccessorIsGenerator:({kind:G})=>`A ${G}ter cannot be a generator.`,ArgumentsInClass:"'arguments' is only allowed in functions and class methods.",AsyncFunctionInSingleStatementContext:"Async functions can only be declared at the top level or inside a block.",AwaitBindingIdentifier:"Can not use 'await' as identifier inside an async function.",AwaitBindingIdentifierInStaticBlock:"Can not use 'await' as identifier inside a static block.",AwaitExpressionFormalParameter:"'await' is not allowed in async function parameters.",AwaitUsingNotInAsyncContext:"'await using' is only allowed within async functions and at the top levels of modules.",AwaitNotInAsyncContext:"'await' is only allowed within async functions and at the top levels of modules.",AwaitNotInAsyncFunction:"'await' is only allowed within async functions.",BadGetterArity:"A 'get' accessor must not have any formal parameters.",BadSetterArity:"A 'set' accessor must have exactly one formal parameter.",BadSetterRestParameter:"A 'set' accessor function argument must not be a rest parameter.",ConstructorClassField:"Classes may not have a field named 'constructor'.",ConstructorClassPrivateField:"Classes may not have a private field named '#constructor'.",ConstructorIsAccessor:"Class constructor may not be an accessor.",ConstructorIsAsync:"Constructor can't be an async function.",ConstructorIsGenerator:"Constructor can't be a generator.",DeclarationMissingInitializer:({kind:G})=>`Missing initializer in ${G} 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:G})=>`\`${G}\` has already been exported. Exported identifiers must be unique.`,DuplicateProto:"Redefinition of __proto__ property.",DuplicateRegExpFlags:"Duplicate regular expression flag.",DynamicImportPhaseRequiresImportExpressions:({phase:G})=>`'import.${G}(...)' can only be parsed when using the 'createImportExpressions' option.`,ElementAfterRest:"Rest element must be last element.",EscapedCharNotAnIdentifier:"Invalid Unicode escape.",ExportBindingIsString:({localName:G,exportName:J})=>`A string literal cannot be used as an exported binding without \`from\`.\n- Did you mean \`export { '${G}' as '${J}' } from 'some-module'\`?`,ExportDefaultFromAsIdentifier:"'from' is not allowed as an identifier after 'export default'.",ForInOfLoopInitializer:({type:G})=>`'${G==="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:G})=>`Unsyntactic ${G==="BreakStatement"?"break":"continue"}.`,IllegalLanguageModeDirective:"Illegal 'use strict' directive in function with non-simple parameter list.",IllegalReturn:"'return' outside of function.",ImportAttributesUseAssert:"The `assert` keyword in import attributes is deprecated and it has been replaced by the `with` keyword. You can enable the `deprecatedAssertSyntax: true` option in the import attributes plugin to suppress this error.",ImportBindingIsString:({importName:G})=>`A string literal cannot be used as an imported binding.\n- Did you mean \`import { "${G}" as foo }\`?`,ImportCallArgumentTrailingComma:"Trailing comma is disallowed inside import(...) arguments.",ImportCallArity:({maxArgumentCount:G})=>`\`import()\` requires exactly ${G===1?"one argument":"one or two arguments"}.`,ImportCallNotNewExpression:"Cannot use new with import(...).",ImportCallSpreadArgument:"`...` is not allowed in `import()`.",ImportJSONBindingNotDefault:"A JSON module can only be imported with `default`.",ImportReflectionHasAssertion:"`import module x` cannot have assertions.",ImportReflectionNotBinding:'Only `import module x from "./module"` is valid.',IncompatibleRegExpUVFlags:"The 'u' and 'v' regular expression flags cannot be enabled at the same time.",InvalidBigIntLiteral:"Invalid BigIntLiteral.",InvalidCodePoint:"Code point out of bounds.",InvalidCoverInitializedName:"Invalid shorthand property initializer.",InvalidDecimal:"Invalid decimal.",InvalidDigit:({radix:G})=>`Expected number in radix ${G}.`,InvalidEscapeSequence:"Bad character escape sequence.",InvalidEscapeSequenceTemplate:"Invalid escape sequence in template.",InvalidEscapedReservedWord:({reservedWord:G})=>`Escape sequence in keyword ${G}.`,InvalidIdentifier:({identifierName:G})=>`Invalid identifier ${G}.`,InvalidLhs:({ancestor:G})=>`Invalid left-hand side in ${gG(G)}.`,InvalidLhsBinding:({ancestor:G})=>`Binding invalid left-hand side in ${gG(G)}.`,InvalidLhsOptionalChaining:({ancestor:G})=>`Invalid optional chaining in the left-hand side of ${gG(G)}.`,InvalidNumber:"Invalid number.",InvalidOrMissingExponent:"Floating-point numbers require a valid exponent after the 'e'.",InvalidOrUnexpectedToken:({unexpected:G})=>`Unexpected character '${G}'.`,InvalidParenthesizedAssignment:"Invalid parenthesized assignment pattern.",InvalidPrivateFieldResolution:({identifierName:G})=>`Private name #${G} 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:G})=>`Label '${G}' 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:G})=>`This experimental syntax requires enabling the parser plugin: ${G.map((J)=>JSON.stringify(J)).join(", ")}.`,MissingOneOfPlugins:({missingPlugin:G})=>`This experimental syntax requires enabling one of the following parser plugin(s): ${G.map((J)=>JSON.stringify(J)).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:G})=>`Duplicate key "${G}" is not allowed in module attributes.`,ModuleExportNameHasLoneSurrogate:({surrogateCharCode:G})=>`An export name cannot include a lone surrogate, found '\\u${G.toString(16)}'.`,ModuleExportUndefined:({localName:G})=>`Export '${G}' 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:G})=>`Private names are only allowed in property accesses (\`obj.#${G}\`) or in \`in\` expressions (\`#${G} in obj\`).`,PrivateNameRedeclaration:({identifierName:G})=>`Duplicate private name #${G}.`,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:G})=>`Unexpected keyword '${G}'.`,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:G})=>`Unexpected reserved word '${G}'.`,UnexpectedSuper:"'super' is only allowed in object methods and classes.",UnexpectedToken:({expected:G,unexpected:J})=>`Unexpected token${J?` '${J}'.`:""}${G?`, expected "${G}"`:""}`,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:G,onlyValidPropertyName:J})=>`The only valid meta property for ${G} is ${G}.${J}.`,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:G})=>`Identifier '${G}' 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."},eW1={StrictDelete:"Deleting local variable in strict mode.",StrictEvalArguments:({referenceName:G})=>`Assigning to '${G}' in strict mode.`,StrictEvalArgumentsBinding:({bindingName:G})=>`Binding '${G}' 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."},tW1=new Set(["ArrowFunctionExpression","AssignmentExpression","ConditionalExpression","YieldExpression"]),Gz1={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:G})=>`Invalid topic token ${G}. In order to use ${G} as a topic reference, the pipelineOperator plugin must be configured with { "proposal": "hack", "topicToken": "${G}" }.`,PipeTopicUnused:"Hack-style pipe body does not contain a topic reference; Hack-style pipes must use topic at least once.",PipeUnparenthesizedBody:({type:G})=>`Hack-style pipe body cannot be an unparenthesized ${gG({type:G})}; 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.'},Jz1=["message"],A=Object.assign({},R0(nW1),R0(oW1),R0(eW1),R0`pipelineOperator`(Gz1)),{defineProperty:Hz1}=Object,rU=(G,J)=>{if(G)Hz1(G,J,{enumerable:!1,value:G[J]})},Zz1=(G)=>class J extends G{parse(){const X=N9(super.parse());if(this.options.tokens)X.tokens=X.tokens.map(N9);return X}parseRegExpLiteral({pattern:X,flags:H}){let Z=null;try{Z=new RegExp(X,H)}catch(Q){}const V=this.estreeParseLiteral(Z);return V.regex={pattern:X,flags:H},V}parseBigIntLiteral(X){let H;try{H=BigInt(X)}catch(V){H=null}const Z=this.estreeParseLiteral(H);return Z.bigint=String(Z.value||X),Z}parseDecimalLiteral(X){const Z=this.estreeParseLiteral(null);return Z.decimal=String(Z.value||X),Z}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){const H=X.value;delete X.value,H.type="Literal",H.raw=H.extra.raw,H.value=H.extra.expressionValue;const Z=X;return Z.type="ExpressionStatement",Z.expression=H,Z.directive=H.extra.rawValue,delete H.extra,Z}initFunction(X,H){super.initFunction(X,H),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 H;return X.type==="ExpressionStatement"&&X.expression.type==="Literal"&&typeof X.expression.value==="string"&&!((H=X.expression.extra)!=null&&H.parenthesized)}parseBlockBody(X,H,Z,V,Q){super.parseBlockBody(X,H,Z,V,Q);const Y=X.directives.map((W)=>this.directiveToStmt(W));X.body=Y.concat(X.body),delete X.directives}pushClassMethod(X,H,Z,V,Q,Y){if(this.parseMethod(H,Z,V,Q,Y,"ClassMethod",!0),H.typeParameters)H.value.typeParameters=H.typeParameters,delete H.typeParameters;X.body.push(H)}parsePrivateName(){const X=super.parsePrivateName();if(!this.getPluginOption("estree","classFeatures"))return X;return this.convertPrivateNameToPrivateIdentifier(X)}convertPrivateNameToPrivateIdentifier(X){const H=super.getPrivateNameSV(X);return X=X,delete X.id,X.name=H,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,H){const Z=super.parseLiteral(X,H);return Z.raw=Z.extra.raw,delete Z.extra,Z}parseFunctionBody(X,H,Z=!1){super.parseFunctionBody(X,H,Z),X.expression=X.body.type!=="BlockStatement"}parseMethod(X,H,Z,V,Q,Y,W=!1){let z=this.startNode();if(z.kind=X.kind,z=super.parseMethod(z,H,Z,V,Q,Y,W),z.type="FunctionExpression",delete z.kind,X.value=z,Y==="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){const H=super.parseClassProperty(...X);if(!this.getPluginOption("estree","classFeatures"))return H;return H.type="PropertyDefinition",H}parseClassPrivateProperty(...X){const H=super.parseClassPrivateProperty(...X);if(!this.getPluginOption("estree","classFeatures"))return H;return H.type="PropertyDefinition",H.computed=!1,H}parseObjectMethod(X,H,Z,V,Q){const Y=super.parseObjectMethod(X,H,Z,V,Q);if(Y){if(Y.type="Property",Y.kind==="method")Y.kind="init";Y.shorthand=!1}return Y}parseObjectProperty(X,H,Z,V){const Q=super.parseObjectProperty(X,H,Z,V);if(Q)Q.kind="init",Q.type="Property";return Q}isValidLVal(X,H,Z){return X==="Property"?"value":super.isValidLVal(X,H,Z)}isAssignable(X,H){if(X!=null&&this.isObjectProperty(X))return this.isAssignable(X.value,H);return super.isAssignable(X,H)}toAssignable(X,H=!1){if(X!=null&&this.isObjectProperty(X)){const{key:Z,value:V}=X;if(this.isPrivateName(Z))this.classScope.usePrivateName(this.getPrivateNameSV(Z),Z.loc.start);this.toAssignable(V,H)}else super.toAssignable(X,H)}toAssignableObjectExpressionProp(X,H,Z){if(X.type==="Property"&&(X.kind==="get"||X.kind==="set"))this.raise(A.PatternHasAccessor,X.key);else if(X.type==="Property"&&X.method)this.raise(A.PatternHasMethod,X.key);else super.toAssignableObjectExpressionProp(X,H,Z)}finishCallExpression(X,H){const Z=super.finishCallExpression(X,H);if(Z.callee.type==="Import"){if(Z.type="ImportExpression",Z.source=Z.arguments[0],this.hasPlugin("importAttributes")||this.hasPlugin("importAssertions")){var V,Q;Z.options=(V=Z.arguments[1])!=null?V:null,Z.attributes=(Q=Z.arguments[1])!=null?Q:null}delete Z.arguments,delete Z.callee}return Z}toReferencedArguments(X){if(X.type==="ImportExpression")return;super.toReferencedArguments(X)}parseExport(X,H){const Z=this.state.lastTokStartLoc,V=super.parseExport(X,H);switch(V.type){case"ExportAllDeclaration":V.exported=null;break;case"ExportNamedDeclaration":if(V.specifiers.length===1&&V.specifiers[0].type==="ExportNamespaceSpecifier")V.type="ExportAllDeclaration",V.exported=V.specifiers[0].exported,delete V.specifiers;case"ExportDefaultDeclaration":{var Q;const{declaration:Y}=V;if((Y==null?void 0:Y.type)==="ClassDeclaration"&&((Q=Y.decorators)==null?void 0:Q.length)>0&&Y.start===V.start)this.resetStartLocation(V,Z)}break}return V}parseSubscript(X,H,Z,V){const Q=super.parseSubscript(X,H,Z,V);if(V.optionalChainMember){if(Q.type==="OptionalMemberExpression"||Q.type==="OptionalCallExpression")Q.type=Q.type.substring(8);if(V.stop){const Y=this.startNodeAtNode(Q);return Y.expression=Q,this.finishNode(Y,"ChainExpression")}}else if(Q.type==="MemberExpression"||Q.type==="CallExpression")Q.optional=!1;return Q}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,H,Z){return N9(super.finishNodeAt(X,H,Z))}resetStartLocation(X,H){super.resetStartLocation(X,H),N9(X)}resetEndLocation(X,H=this.state.lastTokEndLoc){super.resetEndLocation(X,H),N9(X)}};class _5{constructor(G,J){this.token=void 0,this.preserveSpace=void 0,this.token=G,this.preserveSpace=!!J}}var v1={brace:new _5("{"),j_oTag:new _5("<tag"),j_cTag:new _5("</tag"),j_expr:new _5("<tag>...</tag>",!0)};v1.template=new _5("`",!0);var D1=!0,d=!0,f7=!0,k9=!0,k0=!0,Vz1=!0;class O7{constructor(G,J={}){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=G,this.keyword=J.keyword,this.beforeExpr=!!J.beforeExpr,this.startsExpr=!!J.startsExpr,this.rightAssociative=!!J.rightAssociative,this.isLoop=!!J.isLoop,this.isAssign=!!J.isAssign,this.prefix=!!J.prefix,this.postfix=!!J.postfix,this.binop=J.binop!=null?J.binop:null,this.updateContext=null}}var v7=new Map,_9=-1,B0=[],_7=[],g7=[],b7=[],h7=[],y7=[],Qz1={bracketL:Z1("[",{beforeExpr:D1,startsExpr:d}),bracketHashL:Z1("#[",{beforeExpr:D1,startsExpr:d}),bracketBarL:Z1("[|",{beforeExpr:D1,startsExpr:d}),bracketR:Z1("]"),bracketBarR:Z1("|]"),braceL:Z1("{",{beforeExpr:D1,startsExpr:d}),braceBarL:Z1("{|",{beforeExpr:D1,startsExpr:d}),braceHashL:Z1("#{",{beforeExpr:D1,startsExpr:d}),braceR:Z1("}"),braceBarR:Z1("|}"),parenL:Z1("(",{beforeExpr:D1,startsExpr:d}),parenR:Z1(")"),comma:Z1(",",{beforeExpr:D1}),semi:Z1(";",{beforeExpr:D1}),colon:Z1(":",{beforeExpr:D1}),doubleColon:Z1("::",{beforeExpr:D1}),dot:Z1("."),question:Z1("?",{beforeExpr:D1}),questionDot:Z1("?."),arrow:Z1("=>",{beforeExpr:D1}),template:Z1("template"),ellipsis:Z1("...",{beforeExpr:D1}),backQuote:Z1("`",{startsExpr:d}),dollarBraceL:Z1("${",{beforeExpr:D1,startsExpr:d}),templateTail:Z1("...`",{startsExpr:d}),templateNonTail:Z1("...${",{beforeExpr:D1,startsExpr:d}),at:Z1("@"),hash:Z1("#",{startsExpr:d}),interpreterDirective:Z1("#!..."),eq:Z1("=",{beforeExpr:D1,isAssign:k9}),assign:Z1("_=",{beforeExpr:D1,isAssign:k9}),slashAssign:Z1("_=",{beforeExpr:D1,isAssign:k9}),xorAssign:Z1("_=",{beforeExpr:D1,isAssign:k9}),moduloAssign:Z1("_=",{beforeExpr:D1,isAssign:k9}),incDec:Z1("++/--",{prefix:k0,postfix:Vz1,startsExpr:d}),bang:Z1("!",{beforeExpr:D1,prefix:k0,startsExpr:d}),tilde:Z1("~",{beforeExpr:D1,prefix:k0,startsExpr:d}),doubleCaret:Z1("^^",{startsExpr:d}),doubleAt:Z1("@@",{startsExpr:d}),pipeline:z2("|>",0),nullishCoalescing:z2("??",1),logicalOR:z2("||",1),logicalAND:z2("&&",2),bitwiseOR:z2("|",3),bitwiseXOR:z2("^",4),bitwiseAND:z2("&",5),equality:z2("==/!=/===/!==",6),lt:z2("</>/<=/>=",7),gt:z2("</>/<=/>=",7),relational:z2("</>/<=/>=",7),bitShift:z2("<</>>/>>>",8),bitShiftL:z2("<</>>/>>>",8),bitShiftR:z2("<</>>/>>>",8),plusMin:Z1("+/-",{beforeExpr:D1,binop:9,prefix:k0,startsExpr:d}),modulo:Z1("%",{binop:10,startsExpr:d}),star:Z1("*",{binop:10}),slash:z2("/",10),exponent:Z1("**",{beforeExpr:D1,binop:11,rightAssociative:!0}),_in:P1("in",{beforeExpr:D1,binop:7}),_instanceof:P1("instanceof",{beforeExpr:D1,binop:7}),_break:P1("break"),_case:P1("case",{beforeExpr:D1}),_catch:P1("catch"),_continue:P1("continue"),_debugger:P1("debugger"),_default:P1("default",{beforeExpr:D1}),_else:P1("else",{beforeExpr:D1}),_finally:P1("finally"),_function:P1("function",{startsExpr:d}),_if:P1("if"),_return:P1("return",{beforeExpr:D1}),_switch:P1("switch"),_throw:P1("throw",{beforeExpr:D1,prefix:k0,startsExpr:d}),_try:P1("try"),_var:P1("var"),_const:P1("const"),_with:P1("with"),_new:P1("new",{beforeExpr:D1,startsExpr:d}),_this:P1("this",{startsExpr:d}),_super:P1("super",{startsExpr:d}),_class:P1("class",{startsExpr:d}),_extends:P1("extends",{beforeExpr:D1}),_export:P1("export"),_import:P1("import",{startsExpr:d}),_null:P1("null",{startsExpr:d}),_true:P1("true",{startsExpr:d}),_false:P1("false",{startsExpr:d}),_typeof:P1("typeof",{beforeExpr:D1,prefix:k0,startsExpr:d}),_void:P1("void",{beforeExpr:D1,prefix:k0,startsExpr:d}),_delete:P1("delete",{beforeExpr:D1,prefix:k0,startsExpr:d}),_do:P1("do",{isLoop:f7,beforeExpr:D1}),_for:P1("for",{isLoop:f7}),_while:P1("while",{isLoop:f7}),_as:j1("as",{startsExpr:d}),_assert:j1("assert",{startsExpr:d}),_async:j1("async",{startsExpr:d}),_await:j1("await",{startsExpr:d}),_defer:j1("defer",{startsExpr:d}),_from:j1("from",{startsExpr:d}),_get:j1("get",{startsExpr:d}),_let:j1("let",{startsExpr:d}),_meta:j1("meta",{startsExpr:d}),_of:j1("of",{startsExpr:d}),_sent:j1("sent",{startsExpr:d}),_set:j1("set",{startsExpr:d}),_source:j1("source",{startsExpr:d}),_static:j1("static",{startsExpr:d}),_using:j1("using",{startsExpr:d}),_yield:j1("yield",{startsExpr:d}),_asserts:j1("asserts",{startsExpr:d}),_checks:j1("checks",{startsExpr:d}),_exports:j1("exports",{startsExpr:d}),_global:j1("global",{startsExpr:d}),_implements:j1("implements",{startsExpr:d}),_intrinsic:j1("intrinsic",{startsExpr:d}),_infer:j1("infer",{startsExpr:d}),_is:j1("is",{startsExpr:d}),_mixins:j1("mixins",{startsExpr:d}),_proto:j1("proto",{startsExpr:d}),_require:j1("require",{startsExpr:d}),_satisfies:j1("satisfies",{startsExpr:d}),_keyof:j1("keyof",{startsExpr:d}),_readonly:j1("readonly",{startsExpr:d}),_unique:j1("unique",{startsExpr:d}),_abstract:j1("abstract",{startsExpr:d}),_declare:j1("declare",{startsExpr:d}),_enum:j1("enum",{startsExpr:d}),_module:j1("module",{startsExpr:d}),_namespace:j1("namespace",{startsExpr:d}),_interface:j1("interface",{startsExpr:d}),_type:j1("type",{startsExpr:d}),_opaque:j1("opaque",{startsExpr:d}),name:Z1("name",{startsExpr:d}),string:Z1("string",{startsExpr:d}),num:Z1("num",{startsExpr:d}),bigint:Z1("bigint",{startsExpr:d}),decimal:Z1("decimal",{startsExpr:d}),regexp:Z1("regexp",{startsExpr:d}),privateName:Z1("#name",{startsExpr:d}),eof:Z1("eof"),jsxName:Z1("jsxName"),jsxText:Z1("jsxText",{beforeExpr:!0}),jsxTagStart:Z1("jsxTagStart",{startsExpr:!0}),jsxTagEnd:Z1("jsxTagEnd"),placeholder:Z1("%%",{startsExpr:!0})};B0[8].updateContext=(G)=>{G.pop()},B0[5].updateContext=B0[7].updateContext=B0[23].updateContext=(G)=>{G.push(v1.brace)},B0[22].updateContext=(G)=>{if(G[G.length-1]===v1.template)G.pop();else G.push(v1.template)},B0[142].updateContext=(G)=>{G.push(v1.j_expr,v1.j_oTag)};var x7="\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",HK="\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",Fz1=new RegExp("["+x7+"]"),jz1=new RegExp("["+x7+HK+"]");x7=HK=null;var ZK=[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],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,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],l7={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"]},Iz1=new Set(l7.keyword),Az1=new Set(l7.strict),Cz1=new Set(l7.strictBind),Pz1=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"]);class mG{constructor(G){this.flags=0,this.names=new Map,this.firstLexicalName="",this.flags=G}}class xG{constructor(G,J){this.parser=void 0,this.scopeStack=[],this.inModule=void 0,this.undefinedExports=new Map,this.parser=G,this.inModule=J}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(){const G=this.currentThisScopeFlags();return(G&64)>0&&(G&2)===0}get inStaticBlock(){for(let G=this.scopeStack.length-1;;G--){const{flags:J}=this.scopeStack[G];if(J&128)return!0;if(J&451)return!1}}get inNonArrowFunction(){return(this.currentThisScopeFlags()&2)>0}get treatFunctionsAsVar(){return this.treatFunctionsAsVarInScope(this.currentScope())}createScope(G){return new mG(G)}enter(G){this.scopeStack.push(this.createScope(G))}exit(){return this.scopeStack.pop().flags}treatFunctionsAsVarInScope(G){return!!(G.flags&130||!this.parser.inModule&&G.flags&1)}declareName(G,J,X){let H=this.currentScope();if(J&8||J&16){this.checkRedeclarationInScope(H,G,J,X);let Z=H.names.get(G)||0;if(J&16)Z=Z|4;else{if(!H.firstLexicalName)H.firstLexicalName=G;Z=Z|2}if(H.names.set(G,Z),J&8)this.maybeExportDefined(H,G)}else if(J&4){for(let Z=this.scopeStack.length-1;Z>=0;--Z)if(H=this.scopeStack[Z],this.checkRedeclarationInScope(H,G,J,X),H.names.set(G,(H.names.get(G)||0)|1),this.maybeExportDefined(H,G),H.flags&387)break}if(this.parser.inModule&&H.flags&1)this.undefinedExports.delete(G)}maybeExportDefined(G,J){if(this.parser.inModule&&G.flags&1)this.undefinedExports.delete(J)}checkRedeclarationInScope(G,J,X,H){if(this.isRedeclaredInScope(G,J,X))this.parser.raise(A.VarRedeclaration,H,{identifierName:J})}isRedeclaredInScope(G,J,X){if(!(X&1))return!1;if(X&8)return G.names.has(J);const H=G.names.get(J);if(X&16)return(H&2)>0||!this.treatFunctionsAsVarInScope(G)&&(H&1)>0;return(H&2)>0&&!(G.flags&8&&G.firstLexicalName===J)||!this.treatFunctionsAsVarInScope(G)&&(H&4)>0}checkLocalExport(G){const{name:J}=G;if(!this.scopeStack[0].names.has(J))this.undefinedExports.set(J,G.loc.start)}currentScope(){return this.scopeStack[this.scopeStack.length-1]}currentVarScopeFlags(){for(let G=this.scopeStack.length-1;;G--){const{flags:J}=this.scopeStack[G];if(J&387)return J}}currentThisScopeFlags(){for(let G=this.scopeStack.length-1;;G--){const{flags:J}=this.scopeStack[G];if(J&451&&!(J&4))return J}}}class zK extends mG{constructor(...G){super(...G);this.declareFunctions=new Set}}class UK extends xG{createScope(G){return new zK(G)}declareName(G,J,X){const H=this.currentScope();if(J&2048){this.checkRedeclarationInScope(H,G,J,X),this.maybeExportDefined(H,G),H.declareFunctions.add(G);return}super.declareName(G,J,X)}isRedeclaredInScope(G,J,X){if(super.isRedeclaredInScope(G,J,X))return!0;if(X&2048&&!G.declareFunctions.has(J)){const H=G.names.get(J);return(H&4)>0||(H&2)>0}return!1}checkLocalExport(G){if(!this.scopeStack[0].declareFunctions.has(G.name))super.checkLocalExport(G)}}class KK{constructor(){this.sawUnambiguousESM=!1,this.ambiguousScriptDifferentAst=!1}hasPlugin(G){if(typeof G==="string")return this.plugins.has(G);else{const[J,X]=G;if(!this.hasPlugin(J))return!1;const H=this.plugins.get(J);for(let Z of Object.keys(X))if((H==null?void 0:H[Z])!==X[Z])return!1;return!0}}getPluginOption(G,J){var X;return(X=this.plugins.get(G))==null?void 0:X[J]}}class $K extends KK{addComment(G){if(this.filename)G.loc.filename=this.filename;const{commentsLen:J}=this.state;if(this.comments.length!==J)this.comments.length=J;this.comments.push(G),this.state.commentsLen++}processComment(G){const{commentStack:J}=this.state,X=J.length;if(X===0)return;let H=X-1;const Z=J[H];if(Z.start===G.end)Z.leadingNode=G,H--;const{start:V}=G;for(;H>=0;H--){const Q=J[H],Y=Q.end;if(Y>V)Q.containingNode=G,this.finalizeComment(Q),J.splice(H,1);else{if(Y===V)Q.trailingNode=G;break}}}finalizeComment(G){const{comments:J}=G;if(G.leadingNode!==null||G.trailingNode!==null){if(G.leadingNode!==null)BK(G.leadingNode,J);if(G.trailingNode!==null)Tz1(G.trailingNode,J)}else{const{containingNode:X,start:H}=G;if(this.input.charCodeAt(H-1)===44)switch(X.type){case"ObjectExpression":case"ObjectPattern":case"RecordExpression":E9(X,X.properties,G);break;case"CallExpression":case"OptionalCallExpression":E9(X,X.arguments,G);break;case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":E9(X,X.params,G);break;case"ArrayExpression":case"ArrayPattern":case"TupleExpression":E9(X,X.elements,G);break;case"ExportNamedDeclaration":case"ImportDeclaration":E9(X,X.specifiers,G);break;default:h9(X,J)}else h9(X,J)}}finalizeRemainingComments(){const{commentStack:G}=this.state;for(let J=G.length-1;J>=0;J--)this.finalizeComment(G[J]);this.state.commentStack=[]}resetPreviousNodeTrailingComments(G){const{commentStack:J}=this.state,{length:X}=J;if(X===0)return;const H=J[X-1];if(H.leadingNode===G)H.leadingNode=null}resetPreviousIdentifierLeadingComments(G){const{commentStack:J}=this.state,{length:X}=J;if(X===0)return;if(J[X-1].trailingNode===G)J[X-1].trailingNode=null;else if(X>=2&&J[X-2].trailingNode===G)J[X-2].trailingNode=null}takeSurroundingComments(G,J,X){const{commentStack:H}=this.state,Z=H.length;if(Z===0)return;let V=Z-1;for(;V>=0;V--){const Q=H[V],Y=Q.end;if(Q.start===X)Q.leadingNode=G;else if(Y===J)Q.trailingNode=G;else if(Y<J)break}}}var wz1=/\r\n|[\r\n\u2028\u2029]/,vG=new RegExp(wz1.source,"g"),S7=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,P7=/(?:[^\S\n\r\u2028\u2029]|\/\/.*|\/\*.*?\*\/)*/g;class c7{constructor(){this.flags=1024,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=139,this.value=null,this.start=0,this.end=0,this.lastTokEndLoc=null,this.lastTokStartLoc=null,this.context=[v1.brace],this.firstInvalidTemplateEscapePos=null,this.strictErrors=new Map,this.tokensLength=0}get strict(){return(this.flags&1)>0}set strict(G){if(G)this.flags|=1;else this.flags&=-2}init({strictMode:G,sourceType:J,startLine:X,startColumn:H}){this.strict=G===!1?!1:G===!0?!0:J==="module",this.curLine=X,this.lineStart=-H,this.startLoc=this.endLoc=new M0(X,H,0)}get maybeInArrowParameters(){return(this.flags&2)>0}set maybeInArrowParameters(G){if(G)this.flags|=2;else this.flags&=-3}get inType(){return(this.flags&4)>0}set inType(G){if(G)this.flags|=4;else this.flags&=-5}get noAnonFunctionType(){return(this.flags&8)>0}set noAnonFunctionType(G){if(G)this.flags|=8;else this.flags&=-9}get hasFlowComment(){return(this.flags&16)>0}set hasFlowComment(G){if(G)this.flags|=16;else this.flags&=-17}get isAmbientContext(){return(this.flags&32)>0}set isAmbientContext(G){if(G)this.flags|=32;else this.flags&=-33}get inAbstractClass(){return(this.flags&64)>0}set inAbstractClass(G){if(G)this.flags|=64;else this.flags&=-65}get inDisallowConditionalTypesContext(){return(this.flags&128)>0}set inDisallowConditionalTypesContext(G){if(G)this.flags|=128;else this.flags&=-129}get soloAwait(){return(this.flags&256)>0}set soloAwait(G){if(G)this.flags|=256;else this.flags&=-257}get inFSharpPipelineDirectBody(){return(this.flags&512)>0}set inFSharpPipelineDirectBody(G){if(G)this.flags|=512;else this.flags&=-513}get canStartJSXElement(){return(this.flags&1024)>0}set canStartJSXElement(G){if(G)this.flags|=1024;else this.flags&=-1025}get containsEsc(){return(this.flags&2048)>0}set containsEsc(G){if(G)this.flags|=2048;else this.flags&=-2049}get hasTopLevelAwait(){return(this.flags&4096)>0}set hasTopLevelAwait(G){if(G)this.flags|=4096;else this.flags&=-4097}curPosition(){return new M0(this.curLine,this.pos-this.lineStart,this.pos)}clone(){const G=new c7;return G.flags=this.flags,G.curLine=this.curLine,G.lineStart=this.lineStart,G.startLoc=this.startLoc,G.endLoc=this.endLoc,G.errors=this.errors.slice(),G.potentialArrowAt=this.potentialArrowAt,G.noArrowAt=this.noArrowAt.slice(),G.noArrowParamsConversionAt=this.noArrowParamsConversionAt.slice(),G.topicContext=this.topicContext,G.labels=this.labels.slice(),G.commentsLen=this.commentsLen,G.commentStack=this.commentStack.slice(),G.pos=this.pos,G.type=this.type,G.value=this.value,G.start=this.start,G.end=this.end,G.lastTokEndLoc=this.lastTokEndLoc,G.lastTokStartLoc=this.lastTokStartLoc,G.context=this.context.slice(),G.firstInvalidTemplateEscapePos=this.firstInvalidTemplateEscapePos,G.strictErrors=this.strictErrors,G.tokensLength=this.tokensLength,G}}var kz1=function G(J){return J>=48&&J<=57},dU={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},_G={bin:(G)=>G===48||G===49,oct:(G)=>G>=48&&G<=55,dec:(G)=>G>=48&&G<=57,hex:(G)=>G>=48&&G<=57||G>=65&&G<=70||G>=97&&G<=102},vz1=new Set([103,109,115,105,121,117,100,118]);class K0{constructor(G){this.type=G.type,this.value=G.value,this.start=G.start,this.end=G.end,this.loc=new b9(G.startLoc,G.endLoc)}}class qK extends $K{constructor(G,J){super();this.isLookahead=void 0,this.tokens=[],this.errorHandlers_readInt={invalidDigit:(X,H,Z,V)=>{if(!this.options.errorRecovery)return!1;return this.raise(A.InvalidDigit,O9(X,H,Z),{radix:V}),!0},numericSeparatorInEscapeSequence:this.errorBuilder(A.NumericSeparatorInEscapeSequence),unexpectedNumericSeparator:this.errorBuilder(A.UnexpectedNumericSeparator)},this.errorHandlers_readCodePoint=Object.assign({},this.errorHandlers_readInt,{invalidEscapeSequence:this.errorBuilder(A.InvalidEscapeSequence),invalidCodePoint:this.errorBuilder(A.InvalidCodePoint)}),this.errorHandlers_readStringContents_string=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:(X,H,Z)=>{this.recordStrictModeErrors(A.StrictNumericEscape,O9(X,H,Z))},unterminated:(X,H,Z)=>{throw this.raise(A.UnterminatedString,O9(X-1,H,Z))}}),this.errorHandlers_readStringContents_template=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:this.errorBuilder(A.StrictNumericEscape),unterminated:(X,H,Z)=>{throw this.raise(A.UnterminatedTemplate,O9(X,H,Z))}}),this.state=new c7,this.state.init(G),this.input=J,this.length=J.length,this.comments=[],this.isLookahead=!1}pushToken(G){this.tokens.length=this.state.tokensLength,this.tokens.push(G),++this.state.tokensLength}next(){if(this.checkKeywordEscapes(),this.options.tokens)this.pushToken(new K0(this.state));this.state.lastTokEndLoc=this.state.endLoc,this.state.lastTokStartLoc=this.state.startLoc,this.nextToken()}eat(G){if(this.match(G))return this.next(),!0;else return!1}match(G){return this.state.type===G}createLookaheadState(G){return{pos:G.pos,value:null,type:G.type,start:G.start,end:G.end,context:[this.curContext()],inType:G.inType,startLoc:G.startLoc,lastTokEndLoc:G.lastTokEndLoc,curLine:G.curLine,lineStart:G.lineStart,curPosition:G.curPosition}}lookahead(){const G=this.state;this.state=this.createLookaheadState(G),this.isLookahead=!0,this.nextToken(),this.isLookahead=!1;const J=this.state;return this.state=G,J}nextTokenStart(){return this.nextTokenStartSince(this.state.pos)}nextTokenStartSince(G){return S7.lastIndex=G,S7.test(this.input)?S7.lastIndex:G}lookaheadCharCode(){return this.input.charCodeAt(this.nextTokenStart())}nextTokenInLineStart(){return this.nextTokenInLineStartSince(this.state.pos)}nextTokenInLineStartSince(G){return P7.lastIndex=G,P7.test(this.input)?P7.lastIndex:G}lookaheadInLineCharCode(){return this.input.charCodeAt(this.nextTokenInLineStart())}codePointAtPos(G){let J=this.input.charCodeAt(G);if((J&64512)===55296&&++G<this.input.length){const X=this.input.charCodeAt(G);if((X&64512)===56320)J=65536+((J&1023)<<10)+(X&1023)}return J}setStrict(G){if(this.state.strict=G,G)this.state.strictErrors.forEach(([J,X])=>this.raise(J,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(139);return}this.getTokenFromCode(this.codePointAtPos(this.state.pos))}skipBlockComment(G){let J;if(!this.isLookahead)J=this.state.curPosition();const X=this.state.pos,H=this.input.indexOf(G,X+2);if(H===-1)throw this.raise(A.UnterminatedComment,this.state.curPosition());this.state.pos=H+G.length,vG.lastIndex=X+2;while(vG.test(this.input)&&vG.lastIndex<=H)++this.state.curLine,this.state.lineStart=vG.lastIndex;if(this.isLookahead)return;const Z={type:"CommentBlock",value:this.input.slice(X+2,H),start:X,end:H+G.length,loc:new b9(J,this.state.curPosition())};if(this.options.tokens)this.pushToken(Z);return Z}skipLineComment(G){const J=this.state.pos;let X;if(!this.isLookahead)X=this.state.curPosition();let H=this.input.charCodeAt(this.state.pos+=G);if(this.state.pos<this.length)while(!h5(H)&&++this.state.pos<this.length)H=this.input.charCodeAt(this.state.pos);if(this.isLookahead)return;const Z=this.state.pos,Q={type:"CommentLine",value:this.input.slice(J+G,Z),start:J,end:Z,loc:new b9(X,this.state.curPosition())};if(this.options.tokens)this.pushToken(Q);return Q}skipSpace(){const G=this.state.pos,J=[];G:while(this.state.pos<this.length){const 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:{const H=this.skipBlockComment("*/");if(H!==void 0){if(this.addComment(H),this.options.attachComment)J.push(H)}break}case 47:{const H=this.skipLineComment(2);if(H!==void 0){if(this.addComment(H),this.options.attachComment)J.push(H)}break}default:break G}break;default:if(Nz1(X))++this.state.pos;else if(X===45&&!this.inModule&&this.options.annexB){const H=this.state.pos;if(this.input.charCodeAt(H+1)===45&&this.input.charCodeAt(H+2)===62&&(G===0||this.state.lineStart>G)){const Z=this.skipLineComment(3);if(Z!==void 0){if(this.addComment(Z),this.options.attachComment)J.push(Z)}}else break G}else if(X===60&&!this.inModule&&this.options.annexB){const H=this.state.pos;if(this.input.charCodeAt(H+1)===33&&this.input.charCodeAt(H+2)===45&&this.input.charCodeAt(H+3)===45){const Z=this.skipLineComment(4);if(Z!==void 0){if(this.addComment(Z),this.options.attachComment)J.push(Z)}}else break G}else break G}}if(J.length>0){const X=this.state.pos,H={start:G,end:X,comments:J,leadingNode:null,trailingNode:null,containingNode:null};this.state.commentStack.push(H)}}finishToken(G,J){this.state.end=this.state.pos,this.state.endLoc=this.state.curPosition();const X=this.state.type;if(this.state.type=G,this.state.value=J,!this.isLookahead)this.updateContext(X)}replaceToken(G){this.state.type=G,this.updateContext()}readToken_numberSign(){if(this.state.pos===0&&this.readToken_interpreter())return;const G=this.state.pos+1,J=this.codePointAtPos(G);if(J>=48&&J<=57)throw this.raise(A.UnexpectedDigitAfterHash,this.state.curPosition());if(J===123||J===91&&this.hasPlugin("recordAndTuple")){if(this.expectPlugin("recordAndTuple"),this.getPluginOption("recordAndTuple","syntaxType")==="bar")throw this.raise(J===123?A.RecordExpressionHashIncorrectStartSyntaxType:A.TupleExpressionHashIncorrectStartSyntaxType,this.state.curPosition());if(this.state.pos+=2,J===123)this.finishToken(7);else this.finishToken(1)}else if($0(J))++this.state.pos,this.finishToken(138,this.readWord1(J));else if(J===92)++this.state.pos,this.finishToken(138,this.readWord1());else this.finishOp(27,1)}readToken_dot(){const G=this.input.charCodeAt(this.state.pos+1);if(G>=48&&G<=57){this.readNumber(!0);return}if(G===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 G=this.input.charCodeAt(this.state.pos+1);if(G!==33)return!1;const J=this.state.pos;this.state.pos+=1;while(!h5(G)&&++this.state.pos<this.length)G=this.input.charCodeAt(this.state.pos);const X=this.input.slice(J+2,this.state.pos);return this.finishToken(28,X),!0}readToken_mult_modulo(G){let J=G===42?55:54,X=1,H=this.input.charCodeAt(this.state.pos+1);if(G===42&&H===42)X++,H=this.input.charCodeAt(this.state.pos+2),J=57;if(H===61&&!this.state.inType)X++,J=G===37?33:30;this.finishOp(J,X)}readToken_pipe_amp(G){const J=this.input.charCodeAt(this.state.pos+1);if(J===G){if(this.input.charCodeAt(this.state.pos+2)===61)this.finishOp(30,3);else this.finishOp(G===124?41:42,2);return}if(G===124){if(J===62){this.finishOp(39,2);return}if(this.hasPlugin("recordAndTuple")&&J===125){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar")throw this.raise(A.RecordExpressionBarIncorrectEndSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(9);return}if(this.hasPlugin("recordAndTuple")&&J===93){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar")throw this.raise(A.TupleExpressionBarIncorrectEndSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(4);return}}if(J===61){this.finishOp(30,2);return}this.finishOp(G===124?43:45,1)}readToken_caret(){const G=this.input.charCodeAt(this.state.pos+1);if(G===61&&!this.state.inType)this.finishOp(32,2);else if(G===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(G){const J=this.input.charCodeAt(this.state.pos+1);if(J===G){this.finishOp(34,2);return}if(J===61)this.finishOp(30,2);else this.finishOp(53,1)}readToken_lt(){const{pos:G}=this.state,J=this.input.charCodeAt(G+1);if(J===60){if(this.input.charCodeAt(G+2)===61){this.finishOp(30,3);return}this.finishOp(51,2);return}if(J===61){this.finishOp(49,2);return}this.finishOp(47,1)}readToken_gt(){const{pos:G}=this.state,J=this.input.charCodeAt(G+1);if(J===62){const X=this.input.charCodeAt(G+2)===62?3:2;if(this.input.charCodeAt(G+X)===61){this.finishOp(30,X+1);return}this.finishOp(52,X);return}if(J===61){this.finishOp(49,2);return}this.finishOp(48,1)}readToken_eq_excl(G){const J=this.input.charCodeAt(this.state.pos+1);if(J===61){this.finishOp(46,this.input.charCodeAt(this.state.pos+2)===61?3:2);return}if(G===61&&J===62){this.state.pos+=2,this.finishToken(19);return}this.finishOp(G===61?29:35,1)}readToken_question(){const G=this.input.charCodeAt(this.state.pos+1),J=this.input.charCodeAt(this.state.pos+2);if(G===63)if(J===61)this.finishOp(30,3);else this.finishOp(40,2);else if(G===46&&!(J>=48&&J<=57))this.state.pos+=2,this.finishToken(18);else++this.state.pos,this.finishToken(17)}getTokenFromCode(G){switch(G){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(A.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(A.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:{const J=this.input.charCodeAt(this.state.pos+1);if(J===120||J===88){this.readRadixNumber(16);return}if(J===111||J===79){this.readRadixNumber(8);return}if(J===98||J===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(G);return;case 47:this.readToken_slash();return;case 37:case 42:this.readToken_mult_modulo(G);return;case 124:case 38:this.readToken_pipe_amp(G);return;case 94:this.readToken_caret();return;case 43:case 45:this.readToken_plus_min(G);return;case 60:this.readToken_lt();return;case 62:this.readToken_gt();return;case 61:case 33:this.readToken_eq_excl(G);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($0(G)){this.readWord(G);return}}throw this.raise(A.InvalidOrUnexpectedToken,this.state.curPosition(),{unexpected:String.fromCodePoint(G)})}finishOp(G,J){const X=this.input.slice(this.state.pos,this.state.pos+J);this.state.pos+=J,this.finishToken(G,X)}readRegexp(){const G=this.state.startLoc,J=this.state.start+1;let X,H,{pos:Z}=this.state;for(;;++Z){if(Z>=this.length)throw this.raise(A.UnterminatedRegExp,U2(G,1));const W=this.input.charCodeAt(Z);if(h5(W))throw this.raise(A.UnterminatedRegExp,U2(G,1));if(X)X=!1;else{if(W===91)H=!0;else if(W===93&&H)H=!1;else if(W===47&&!H)break;X=W===92}}const V=this.input.slice(J,Z);++Z;let Q="";const Y=()=>U2(G,Z+2-J);while(Z<this.length){const W=this.codePointAtPos(Z),z=String.fromCharCode(W);if(vz1.has(W)){if(W===118){if(Q.includes("u"))this.raise(A.IncompatibleRegExpUVFlags,Y())}else if(W===117){if(Q.includes("v"))this.raise(A.IncompatibleRegExpUVFlags,Y())}if(Q.includes(z))this.raise(A.DuplicateRegExpFlags,Y())}else if(b5(W)||W===92)this.raise(A.MalformedRegExpFlags,Y());else break;++Z,Q+=z}this.state.pos=Z,this.finishToken(137,{pattern:V,flags:Q})}readInt(G,J,X=!1,H=!0){const{n:Z,pos:V}=RK(this.input,this.state.pos,this.state.lineStart,this.state.curLine,G,J,X,H,this.errorHandlers_readInt,!1);return this.state.pos=V,Z}readRadixNumber(G){const J=this.state.curPosition();let X=!1;this.state.pos+=2;const H=this.readInt(G);if(H==null)this.raise(A.InvalidDigit,U2(J,2),{radix:G});const Z=this.input.charCodeAt(this.state.pos);if(Z===110)++this.state.pos,X=!0;else if(Z===109)throw this.raise(A.InvalidDecimal,J);if($0(this.codePointAtPos(this.state.pos)))throw this.raise(A.NumberIdentifier,this.state.curPosition());if(X){const V=this.input.slice(J.index,this.state.pos).replace(/[_n]/g,"");this.finishToken(135,V);return}this.finishToken(134,H)}readNumber(G){const J=this.state.pos,X=this.state.curPosition();let H=!1,Z=!1,V=!1,Q=!1;if(!G&&this.readInt(10)===null)this.raise(A.InvalidNumber,this.state.curPosition());const Y=this.state.pos-J>=2&&this.input.charCodeAt(J)===48;if(Y){const F=this.input.slice(J,this.state.pos);if(this.recordStrictModeErrors(A.StrictOctalLiteral,X),!this.state.strict){const j=F.indexOf("_");if(j>0)this.raise(A.ZeroDigitNumericSeparator,U2(X,j))}Q=Y&&!/[89]/.test(F)}let W=this.input.charCodeAt(this.state.pos);if(W===46&&!Q)++this.state.pos,this.readInt(10),H=!0,W=this.input.charCodeAt(this.state.pos);if((W===69||W===101)&&!Q){if(W=this.input.charCodeAt(++this.state.pos),W===43||W===45)++this.state.pos;if(this.readInt(10)===null)this.raise(A.InvalidOrMissingExponent,X);H=!0,V=!0,W=this.input.charCodeAt(this.state.pos)}if(W===110){if(H||Y)this.raise(A.InvalidBigIntLiteral,X);++this.state.pos,Z=!0}if(W===109){if(this.expectPlugin("decimal",this.state.curPosition()),V||Y)this.raise(A.InvalidDecimal,X);++this.state.pos;var z=!0}if($0(this.codePointAtPos(this.state.pos)))throw this.raise(A.NumberIdentifier,this.state.curPosition());const B=this.input.slice(J,this.state.pos).replace(/[_mn]/g,"");if(Z){this.finishToken(135,B);return}if(z){this.finishToken(136,B);return}const q=Q?parseInt(B,8):parseFloat(B);this.finishToken(134,q)}readCodePoint(G){const{code:J,pos:X}=MK(this.input,this.state.pos,this.state.lineStart,this.state.curLine,G,this.errorHandlers_readCodePoint);return this.state.pos=X,J}readString(G){const{str:J,pos:X,curLine:H,lineStart:Z}=sU(G===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=Z,this.state.curLine=H,this.finishToken(133,J)}readTemplateContinuation(){if(!this.match(8))this.unexpected(null,8);this.state.pos--,this.readTemplateToken()}readTemplateToken(){const G=this.input[this.state.pos],{str:J,firstInvalidLoc:X,pos:H,curLine:Z,lineStart:V}=sU("template",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_template);if(this.state.pos=H+1,this.state.lineStart=V,this.state.curLine=Z,X)this.state.firstInvalidTemplateEscapePos=new M0(X.curLine,X.pos-X.lineStart,X.pos);if(this.input.codePointAt(H)===96)this.finishToken(24,X?null:G+J+"`");else this.state.pos++,this.finishToken(25,X?null:G+J+"${")}recordStrictModeErrors(G,J){const X=J.index;if(this.state.strict&&!this.state.strictErrors.has(X))this.raise(G,J);else this.state.strictErrors.set(X,[G,J])}readWord1(G){this.state.containsEsc=!1;let J="";const X=this.state.pos;let H=this.state.pos;if(G!==void 0)this.state.pos+=G<=65535?1:2;while(this.state.pos<this.length){const Z=this.codePointAtPos(this.state.pos);if(b5(Z))this.state.pos+=Z<=65535?1:2;else if(Z===92){this.state.containsEsc=!0,J+=this.input.slice(H,this.state.pos);const V=this.state.curPosition(),Q=this.state.pos===X?$0:b5;if(this.input.charCodeAt(++this.state.pos)!==117){this.raise(A.MissingUnicodeEscape,this.state.curPosition()),H=this.state.pos-1;continue}++this.state.pos;const Y=this.readCodePoint(!0);if(Y!==null){if(!Q(Y))this.raise(A.EscapedCharNotAnIdentifier,V);J+=String.fromCodePoint(Y)}H=this.state.pos}else break}return J+this.input.slice(H,this.state.pos)}readWord(G){const J=this.readWord1(G),X=v7.get(J);if(X!==void 0)this.finishToken(X,O0(X));else this.finishToken(132,J)}checkKeywordEscapes(){const{type:G}=this.state;if(m7(G)&&this.state.containsEsc)this.raise(A.InvalidEscapedReservedWord,this.state.startLoc,{reservedWord:O0(G)})}raise(G,J,X={}){const H=J instanceof M0?J:J.loc.start,Z=G(H,X);if(!this.options.errorRecovery)throw Z;if(!this.isLookahead)this.state.errors.push(Z);return Z}raiseOverwrite(G,J,X={}){const H=J instanceof M0?J:J.loc.start,Z=H.index,V=this.state.errors;for(let Q=V.length-1;Q>=0;Q--){const Y=V[Q];if(Y.loc.index===Z)return V[Q]=G(H,X);if(Y.loc.index<Z)break}return this.raise(G,J,X)}updateContext(G){}unexpected(G,J){throw this.raise(A.UnexpectedToken,G!=null?G:this.state.startLoc,{expected:J?O0(J):null})}expectPlugin(G,J){if(this.hasPlugin(G))return!0;throw this.raise(A.MissingPlugin,J!=null?J:this.state.startLoc,{missingPlugin:[G]})}expectOnePlugin(G){if(!G.some((J)=>this.hasPlugin(J)))throw this.raise(A.MissingOneOfPlugins,this.state.startLoc,{missingPlugin:G})}errorBuilder(G){return(J,X,H)=>{this.raise(G,O9(J,X,H))}}}class FK{constructor(){this.privateNames=new Set,this.loneAccessors=new Map,this.undefinedPrivateNames=new Map}}class jK{constructor(G){this.parser=void 0,this.stack=[],this.undefinedPrivateNames=new Map,this.parser=G}current(){return this.stack[this.stack.length-1]}enter(){this.stack.push(new FK)}exit(){const G=this.stack.pop(),J=this.current();for(let[X,H]of Array.from(G.undefinedPrivateNames))if(J){if(!J.undefinedPrivateNames.has(X))J.undefinedPrivateNames.set(X,H)}else this.parser.raise(A.InvalidPrivateFieldResolution,H,{identifierName:X})}declarePrivateName(G,J,X){const{privateNames:H,loneAccessors:Z,undefinedPrivateNames:V}=this.current();let Q=H.has(G);if(J&3){const Y=Q&&Z.get(G);if(Y){const W=Y&4,z=J&4,B=Y&3,q=J&3;if(Q=B===q||W!==z,!Q)Z.delete(G)}else if(!Q)Z.set(G,J)}if(Q)this.parser.raise(A.PrivateNameRedeclaration,X,{identifierName:G});H.add(G),V.delete(G)}usePrivateName(G,J){let X;for(X of this.stack)if(X.privateNames.has(G))return;if(X)X.undefinedPrivateNames.set(G,J);else this.parser.raise(A.InvalidPrivateFieldResolution,J,{identifierName:G})}}class m9{constructor(G=0){this.type=G}canBeArrowParameterDeclaration(){return this.type===2||this.type===1}isCertainlyParameterDeclaration(){return this.type===3}}class a7 extends m9{constructor(G){super(G);this.declarationErrors=new Map}recordDeclarationError(G,J){const X=J.index;this.declarationErrors.set(X,[G,J])}clearDeclarationError(G){this.declarationErrors.delete(G)}iterateErrors(G){this.declarationErrors.forEach(G)}}class DK{constructor(G){this.parser=void 0,this.stack=[new m9],this.parser=G}enter(G){this.stack.push(G)}exit(){this.stack.pop()}recordParameterInitializerError(G,J){const X=J.loc.start,{stack:H}=this;let Z=H.length-1,V=H[Z];while(!V.isCertainlyParameterDeclaration()){if(V.canBeArrowParameterDeclaration())V.recordDeclarationError(G,X);else return;V=H[--Z]}this.parser.raise(G,X)}recordArrowParameterBindingError(G,J){const{stack:X}=this,H=X[X.length-1],Z=J.loc.start;if(H.isCertainlyParameterDeclaration())this.parser.raise(G,Z);else if(H.canBeArrowParameterDeclaration())H.recordDeclarationError(G,Z);else return}recordAsyncArrowParametersError(G){const{stack:J}=this;let X=J.length-1,H=J[X];while(H.canBeArrowParameterDeclaration()){if(H.type===2)H.recordDeclarationError(A.AwaitBindingIdentifier,G);H=J[--X]}}validateAsPattern(){const{stack:G}=this,J=G[G.length-1];if(!J.canBeArrowParameterDeclaration())return;J.iterateErrors(([X,H])=>{this.parser.raise(X,H);let Z=G.length-2,V=G[Z];while(V.canBeArrowParameterDeclaration())V.clearDeclarationError(H.index),V=G[--Z]})}}class AK{constructor(){this.stacks=[]}enter(G){this.stacks.push(G)}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}}class CK extends qK{addExtra(G,J,X,H=!0){if(!G)return;let{extra:Z}=G;if(Z==null)Z={},G.extra=Z;if(H)Z[J]=X;else Object.defineProperty(Z,J,{enumerable:H,value:X})}isContextual(G){return this.state.type===G&&!this.state.containsEsc}isUnparsedContextual(G,J){const X=G+J.length;if(this.input.slice(G,X)===J){const H=this.input.charCodeAt(X);return!(b5(H)||(H&64512)===55296)}return!1}isLookaheadContextual(G){const J=this.nextTokenStart();return this.isUnparsedContextual(J,G)}eatContextual(G){if(this.isContextual(G))return this.next(),!0;return!1}expectContextual(G,J){if(!this.eatContextual(G)){if(J!=null)throw this.raise(J,this.state.startLoc);this.unexpected(null,G)}}canInsertSemicolon(){return this.match(139)||this.match(8)||this.hasPrecedingLineBreak()}hasPrecedingLineBreak(){return uU(this.input,this.state.lastTokEndLoc.index,this.state.start)}hasFollowingLineBreak(){return uU(this.input,this.state.end,this.nextTokenStart())}isLineTerminator(){return this.eat(13)||this.canInsertSemicolon()}semicolon(G=!0){if(G?this.isLineTerminator():this.eat(13))return;this.raise(A.MissingSemicolon,this.state.lastTokEndLoc)}expect(G,J){if(!this.eat(G))this.unexpected(J,G)}tryParse(G,J=this.state.clone()){const X={node:null};try{const H=G((Z=null)=>{throw X.node=Z,X});if(this.state.errors.length>J.errors.length){const Z=this.state;return this.state=J,this.state.tokensLength=Z.tokensLength,{node:H,error:Z.errors[J.errors.length],thrown:!1,aborted:!1,failState:Z}}return{node:H,error:null,thrown:!1,aborted:!1,failState:null}}catch(H){const Z=this.state;if(this.state=J,H instanceof SyntaxError)return{node:null,error:H,thrown:!0,aborted:!1,failState:Z};if(H===X)return{node:X.node,error:null,thrown:!1,aborted:!0,failState:Z};throw H}}checkExpressionErrors(G,J){if(!G)return!1;const{shorthandAssignLoc:X,doubleProtoLoc:H,privateKeyLoc:Z,optionalParametersLoc:V}=G,Q=!!X||!!H||!!V||!!Z;if(!J)return Q;if(X!=null)this.raise(A.InvalidCoverInitializedName,X);if(H!=null)this.raise(A.DuplicateProto,H);if(Z!=null)this.raise(A.UnexpectedPrivateField,Z);if(V!=null)this.unexpected(V)}isLiteralPropertyName(){return XK(this.state.type)}isPrivateName(G){return G.type==="PrivateName"}getPrivateNameSV(G){return G.id.name}hasPropertyAsPrivateName(G){return(G.type==="MemberExpression"||G.type==="OptionalMemberExpression")&&this.isPrivateName(G.property)}isObjectProperty(G){return G.type==="ObjectProperty"}isObjectMethod(G){return G.type==="ObjectMethod"}initializeScopes(G=this.options.sourceType==="module"){const J=this.state.labels;this.state.labels=[];const X=this.exportedIdentifiers;this.exportedIdentifiers=new Set;const H=this.inModule;this.inModule=G;const Z=this.scope,V=this.getScopeHandler();this.scope=new V(this,G);const Q=this.prodParam;this.prodParam=new AK;const Y=this.classScope;this.classScope=new jK(this);const W=this.expressionScope;return this.expressionScope=new DK(this),()=>{this.state.labels=J,this.exportedIdentifiers=X,this.inModule=H,this.scope=Z,this.prodParam=Q,this.classScope=Y,this.expressionScope=W}}enterInitialScopes(){let G=0;if(this.inModule)G|=2;this.scope.enter(1),this.prodParam.enter(G)}checkDestructuringPrivate(G){const{privateKeyLoc:J}=G;if(J!==null)this.expectPlugin("destructuringPrivate",J)}}class g9{constructor(){this.shorthandAssignLoc=null,this.doubleProtoLoc=null,this.privateKeyLoc=null,this.optionalParametersLoc=null}}class y9{constructor(G,J,X){if(this.type="",this.start=J,this.end=0,this.loc=new b9(X),G!=null&&G.options.ranges)this.range=[J,0];if(G!=null&&G.filename)this.loc.filename=G.filename}}var r7=y9.prototype;r7.__clone=function(){const G=new y9(void 0,this.start,this.loc.start),J=Object.keys(this);for(let X=0,H=J.length;X<H;X++){const Z=J[X];if(Z!=="leadingComments"&&Z!=="trailingComments"&&Z!=="innerComments")G[Z]=this[Z]}return G};class fK extends CK{startNode(){const G=this.state.startLoc;return new y9(this,G.index,G)}startNodeAt(G){return new y9(this,G.index,G)}startNodeAtNode(G){return this.startNodeAt(G.loc.start)}finishNode(G,J){return this.finishNodeAt(G,J,this.state.lastTokEndLoc)}finishNodeAt(G,J,X){if(G.type=J,G.end=X.index,G.loc.end=X,this.options.ranges)G.range[1]=X.index;if(this.options.attachComment)this.processComment(G);return G}resetStartLocation(G,J){if(G.start=J.index,G.loc.start=J,this.options.ranges)G.range[0]=J.index}resetEndLocation(G,J=this.state.lastTokEndLoc){if(G.end=J.index,G.loc.end=J,this.options.ranges)G.range[1]=J.index}resetStartLocationFromNode(G,J){this.resetStartLocation(G,J.loc.start)}}var mz1=new Set(["_","any","bool","boolean","empty","extends","false","interface","mixed","null","number","static","string","true","typeof","void"]),Q1=R0`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:G})=>`Cannot overwrite reserved type ${G}.`,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:G,enumName:J})=>`Boolean enum members need to be initialized. Use either \`${G} = true,\` or \`${G} = false,\` in enum \`${J}\`.`,EnumDuplicateMemberName:({memberName:G,enumName:J})=>`Enum member names need to be unique, but the name \`${G}\` has already been used before in enum \`${J}\`.`,EnumInconsistentMemberValues:({enumName:G})=>`Enum \`${G}\` has inconsistent member initializers. Either use no initializers, or consistently use literals (either booleans, numbers, or strings) for all member initializers.`,EnumInvalidExplicitType:({invalidEnumType:G,enumName:J})=>`Enum type \`${G}\` is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${J}\`.`,EnumInvalidExplicitTypeUnknownSupplied:({enumName:G})=>`Supplied enum type is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${G}\`.`,EnumInvalidMemberInitializerPrimaryType:({enumName:G,memberName:J,explicitType:X})=>`Enum \`${G}\` has type \`${X}\`, so the initializer of \`${J}\` needs to be a ${X} literal.`,EnumInvalidMemberInitializerSymbolType:({enumName:G,memberName:J})=>`Symbol enum members cannot be initialized. Use \`${J},\` in enum \`${G}\`.`,EnumInvalidMemberInitializerUnknownType:({enumName:G,memberName:J})=>`The enum member initializer for \`${J}\` needs to be a literal (either a boolean, number, or string) in enum \`${G}\`.`,EnumInvalidMemberName:({enumName:G,memberName:J,suggestion:X})=>`Enum member names cannot start with lowercase 'a' through 'z'. Instead of using \`${J}\`, consider using \`${X}\`, in enum \`${G}\`.`,EnumNumberMemberNotInitialized:({enumName:G,memberName:J})=>`Number enum members need to be initialized, e.g. \`${J} = 1\` in enum \`${G}\`.`,EnumStringMemberInconsistentlyInitialized:({enumName:G})=>`String enum members need to consistently either all use initializers, or use no initializers, in enum \`${G}\`.`,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:G})=>`Unexpected reserved type ${G}.`,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:G,suggestion:J})=>`\`declare export ${G}\` is not supported. Use \`${J}\` instead.`,UnsupportedStatementInDeclareModule:"Only declares and type imports are allowed inside declare module.",UnterminatedFlowComment:"Unterminated flow-comment."}),lz1={const:"declare export var",let:"declare export var",type:"export type",interface:"export interface"},az1=/\*?\s*@((?:no)?flow)\b/,rz1=(G)=>class J extends G{constructor(...X){super(...X);this.flowPragma=void 0}getScopeHandler(){return UK}shouldParseTypes(){return this.getPluginOption("flow","all")||this.flowPragma==="flow"}finishToken(X,H){if(X!==133&&X!==13&&X!==28){if(this.flowPragma===void 0)this.flowPragma=null}super.finishToken(X,H)}addComment(X){if(this.flowPragma===void 0){const H=az1.exec(X.value);if(!H);else if(H[1]==="flow")this.flowPragma="flow";else if(H[1]==="noflow")this.flowPragma="noflow";else throw new Error("Unexpected flow pragma")}super.addComment(X)}flowParseTypeInitialiser(X){const H=this.state.inType;this.state.inType=!0,this.expect(X||14);const Z=this.flowParseType();return this.state.inType=H,Z}flowParsePredicate(){const X=this.startNode(),H=this.state.startLoc;if(this.next(),this.expectContextual(110),this.state.lastTokStartLoc.index>H.index+1)this.raise(Q1.UnexpectedSpaceBetweenModuloChecks,H);if(this.eat(10))return X.value=super.parseExpression(),this.expect(11),this.finishNode(X,"DeclaredPredicate");else return this.finishNode(X,"InferredPredicate")}flowParseTypeAndPredicateInitialiser(){const X=this.state.inType;this.state.inType=!0,this.expect(14);let H=null,Z=null;if(this.match(54))this.state.inType=X,Z=this.flowParsePredicate();else if(H=this.flowParseType(),this.state.inType=X,this.match(54))Z=this.flowParsePredicate();return[H,Z]}flowParseDeclareClass(X){return this.next(),this.flowParseInterfaceish(X,!0),this.finishNode(X,"DeclareClass")}flowParseDeclareFunction(X){this.next();const H=X.id=this.parseIdentifier(),Z=this.startNode(),V=this.startNode();if(this.match(47))Z.typeParameters=this.flowParseTypeParameterDeclaration();else Z.typeParameters=null;this.expect(10);const Q=this.flowParseFunctionTypeParams();return Z.params=Q.params,Z.rest=Q.rest,Z.this=Q._this,this.expect(11),[Z.returnType,X.predicate]=this.flowParseTypeAndPredicateInitialiser(),V.typeAnnotation=this.finishNode(Z,"FunctionTypeAnnotation"),H.typeAnnotation=this.finishNode(V,"TypeAnnotation"),this.resetEndLocation(H),this.semicolon(),this.scope.declareName(X.id.name,2048,X.id.loc.start),this.finishNode(X,"DeclareFunction")}flowParseDeclare(X,H){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(H)this.raise(Q1.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,H);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(133))X.id=super.parseExprAtom();else X.id=this.parseIdentifier();const H=X.body=this.startNode(),Z=H.body=[];this.expect(5);while(!this.match(8)){let Y=this.startNode();if(this.match(83)){if(this.next(),!this.isContextual(130)&&!this.match(87))this.raise(Q1.InvalidNonTypeImportInDeclareModule,this.state.lastTokStartLoc);super.parseImport(Y)}else this.expectContextual(125,Q1.UnsupportedStatementInDeclareModule),Y=this.flowParseDeclare(Y,!0);Z.push(Y)}this.scope.exit(),this.expect(8),this.finishNode(H,"BlockStatement");let V=null,Q=!1;return Z.forEach((Y)=>{if(xz1(Y)){if(V==="CommonJS")this.raise(Q1.AmbiguousDeclareModuleKind,Y);V="ES"}else if(Y.type==="DeclareModuleExports"){if(Q)this.raise(Q1.DuplicateDeclareModuleExports,Y);if(V==="ES")this.raise(Q1.AmbiguousDeclareModuleKind,Y);V="CommonJS",Q=!0}}),X.kind=V||"CommonJS",this.finishNode(X,"DeclareModule")}flowParseDeclareExportDeclaration(X,H){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))&&!H){const Z=this.state.value;throw this.raise(Q1.UnsupportedDeclareExportKind,this.state.startLoc,{unsupportedExportKind:Z,suggestion:lz1[Z]})}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();const H=this.flowParseTypeAlias(X);return H.type="DeclareTypeAlias",H}flowParseDeclareOpaqueType(X){this.next();const H=this.flowParseOpaqueType(X,!0);return H.type="DeclareOpaqueType",H}flowParseDeclareInterface(X){return this.next(),this.flowParseInterfaceish(X,!1),this.finishNode(X,"DeclareInterface")}flowParseInterfaceish(X,H){if(X.id=this.flowParseRestrictedIdentifier(!H,!0),this.scope.declareName(X.id.name,H?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(!H&&this.eat(12));if(H){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:H,allowExact:!1,allowSpread:!1,allowProto:H,allowInexact:!1})}flowParseInterfaceExtends(){const 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(Q1.UnexpectedReservedUnderscore,this.state.startLoc)}checkReservedType(X,H,Z){if(!mz1.has(X))return;this.raise(Z?Q1.AssignReservedType:Q1.UnexpectedReservedType,H,{reservedType:X})}flowParseRestrictedIdentifier(X,H){return this.checkReservedType(this.state.value,this.state.startLoc,H),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,H){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,!H)X.impltype=this.flowParseTypeInitialiser(29);return this.semicolon(),this.finishNode(X,"OpaqueType")}flowParseTypeParameter(X=!1){const H=this.state.startLoc,Z=this.startNode(),V=this.flowParseVariance(),Q=this.flowParseTypeAnnotatableIdentifier();if(Z.name=Q.name,Z.variance=V,Z.bound=Q.typeAnnotation,this.match(29))this.eat(29),Z.default=this.flowParseType();else if(X)this.raise(Q1.MissingTypeParamDefault,H);return this.finishNode(Z,"TypeParameter")}flowParseTypeParameterDeclaration(){const X=this.state.inType,H=this.startNode();if(H.params=[],this.state.inType=!0,this.match(47)||this.match(142))this.next();else this.unexpected();let Z=!1;do{const V=this.flowParseTypeParameter(Z);if(H.params.push(V),V.default)Z=!0;if(!this.match(48))this.expect(12)}while(!this.match(48));return this.expect(48),this.state.inType=X,this.finishNode(H,"TypeParameterDeclaration")}flowParseTypeParameterInstantiation(){const X=this.startNode(),H=this.state.inType;X.params=[],this.state.inType=!0,this.expect(47);const Z=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!1;while(!this.match(48))if(X.params.push(this.flowParseType()),!this.match(48))this.expect(12);return this.state.noAnonFunctionType=Z,this.expect(48),this.state.inType=H,this.finishNode(X,"TypeParameterInstantiation")}flowParseTypeParameterInstantiationCallOrNew(){const X=this.startNode(),H=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=H,this.finishNode(X,"TypeParameterInstantiation")}flowParseInterfaceType(){const 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(134)||this.match(133)?super.parseExprAtom():this.parseIdentifier(!0)}flowParseObjectTypeIndexer(X,H,Z){if(X.static=H,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=Z,this.finishNode(X,"ObjectTypeIndexer")}flowParseObjectTypeInternalSlot(X,H){if(X.static=H,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,H){const Z=this.startNode();return X.static=H,X.value=this.flowParseObjectTypeMethodish(Z),this.finishNode(X,"ObjectTypeCallProperty")}flowParseObjectType({allowStatic:X,allowExact:H,allowSpread:Z,allowProto:V,allowInexact:Q}){const Y=this.state.inType;this.state.inType=!0;const W=this.startNode();W.callProperties=[],W.properties=[],W.indexers=[],W.internalSlots=[];let z,B,q=!1;if(H&&this.match(6))this.expect(6),z=9,B=!0;else this.expect(5),z=8,B=!1;W.exact=B;while(!this.match(z)){let j=!1,f=null,h=null;const w=this.startNode();if(V&&this.isContextual(118)){const b=this.lookahead();if(b.type!==14&&b.type!==17)this.next(),f=this.state.startLoc,X=!1}if(X&&this.isContextual(106)){const b=this.lookahead();if(b.type!==14&&b.type!==17)this.next(),j=!0}const v=this.flowParseVariance();if(this.eat(0)){if(f!=null)this.unexpected(f);if(this.eat(0)){if(v)this.unexpected(v.loc.start);W.internalSlots.push(this.flowParseObjectTypeInternalSlot(w,j))}else W.indexers.push(this.flowParseObjectTypeIndexer(w,j,v))}else if(this.match(10)||this.match(47)){if(f!=null)this.unexpected(f);if(v)this.unexpected(v.loc.start);W.callProperties.push(this.flowParseObjectTypeCallProperty(w,j))}else{let b="init";if(this.isContextual(99)||this.isContextual(104)){const G1=this.lookahead();if(XK(G1.type))b=this.state.value,this.next()}const $1=this.flowParseObjectTypeProperty(w,j,f,v,b,Z,Q!=null?Q:!B);if($1===null)q=!0,h=this.state.lastTokStartLoc;else W.properties.push($1)}if(this.flowObjectTypeSemicolon(),h&&!this.match(8)&&!this.match(9))this.raise(Q1.UnexpectedExplicitInexactInObject,h)}if(this.expect(z),Z)W.inexact=q;const F=this.finishNode(W,"ObjectTypeAnnotation");return this.state.inType=Y,F}flowParseObjectTypeProperty(X,H,Z,V,Q,Y,W){if(this.eat(21)){if(this.match(12)||this.match(13)||this.match(8)||this.match(9)){if(!Y)this.raise(Q1.InexactInsideNonObject,this.state.lastTokStartLoc);else if(!W)this.raise(Q1.InexactInsideExact,this.state.lastTokStartLoc);if(V)this.raise(Q1.InexactVariance,V);return null}if(!Y)this.raise(Q1.UnexpectedSpreadType,this.state.lastTokStartLoc);if(Z!=null)this.unexpected(Z);if(V)this.raise(Q1.SpreadVariance,V);return X.argument=this.flowParseType(),this.finishNode(X,"ObjectTypeSpreadProperty")}else{X.key=this.flowParseObjectPropertyKey(),X.static=H,X.proto=Z!=null,X.kind=Q;let z=!1;if(this.match(47)||this.match(10)){if(X.method=!0,Z!=null)this.unexpected(Z);if(V)this.unexpected(V.loc.start);if(X.value=this.flowParseObjectTypeMethodish(this.startNodeAt(X.loc.start)),Q==="get"||Q==="set")this.flowCheckGetterSetterParams(X);if(!Y&&X.key.name==="constructor"&&X.value.this)this.raise(Q1.ThisParamBannedInConstructor,X.value.this)}else{if(Q!=="init")this.unexpected();if(X.method=!1,this.eat(17))z=!0;X.value=this.flowParseTypeInitialiser(),X.variance=V}return X.optional=z,this.finishNode(X,"ObjectTypeProperty")}}flowCheckGetterSetterParams(X){const H=X.kind==="get"?0:1,Z=X.value.params.length+(X.value.rest?1:0);if(X.value.this)this.raise(X.kind==="get"?Q1.GetterMayNotHaveThisParam:Q1.SetterMayNotHaveThisParam,X.value.this);if(Z!==H)this.raise(X.kind==="get"?A.BadGetterArity:A.BadSetterArity,X);if(X.kind==="set"&&X.value.rest)this.raise(A.BadSetterRestParameter,X)}flowObjectTypeSemicolon(){if(!this.eat(13)&&!this.eat(12)&&!this.match(8)&&!this.match(9))this.unexpected()}flowParseQualifiedTypeIdentifier(X,H){var Z;(Z=X)!=null||(X=this.state.startLoc);let V=H||this.flowParseRestrictedIdentifier(!0);while(this.eat(16)){const Q=this.startNodeAt(X);Q.qualification=V,Q.id=this.flowParseRestrictedIdentifier(!0),V=this.finishNode(Q,"QualifiedTypeIdentifier")}return V}flowParseGenericType(X,H){const Z=this.startNodeAt(X);if(Z.typeParameters=null,Z.id=this.flowParseQualifiedTypeIdentifier(X,H),this.match(47))Z.typeParameters=this.flowParseTypeParameterInstantiation();return this.finishNode(Z,"GenericTypeAnnotation")}flowParseTypeofType(){const X=this.startNode();return this.expect(87),X.argument=this.flowParsePrimaryType(),this.finishNode(X,"TypeofTypeAnnotation")}flowParseTupleType(){const 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 H=null,Z=!1,V=null;const Q=this.startNode(),Y=this.lookahead(),W=this.state.type===78;if(Y.type===14||Y.type===17){if(W&&!X)this.raise(Q1.ThisParamMustBeFirst,Q);if(H=this.parseIdentifier(W),this.eat(17)){if(Z=!0,W)this.raise(Q1.ThisParamMayNotBeOptional,Q)}V=this.flowParseTypeInitialiser()}else V=this.flowParseType();return Q.name=H,Q.optional=Z,Q.typeAnnotation=V,this.finishNode(Q,"FunctionTypeParam")}reinterpretTypeAsFunctionTypeParam(X){const H=this.startNodeAt(X.loc.start);return H.name=null,H.optional=!1,H.typeAnnotation=X,this.finishNode(H,"FunctionTypeParam")}flowParseFunctionTypeParams(X=[]){let H=null,Z=null;if(this.match(78)){if(Z=this.flowParseFunctionTypeParam(!0),Z.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))H=this.flowParseFunctionTypeParam(!1);return{params:X,rest:H,_this:Z}}flowIdentToTypeAnnotation(X,H,Z){switch(Z.name){case"any":return this.finishNode(H,"AnyTypeAnnotation");case"bool":case"boolean":return this.finishNode(H,"BooleanTypeAnnotation");case"mixed":return this.finishNode(H,"MixedTypeAnnotation");case"empty":return this.finishNode(H,"EmptyTypeAnnotation");case"number":return this.finishNode(H,"NumberTypeAnnotation");case"string":return this.finishNode(H,"StringTypeAnnotation");case"symbol":return this.finishNode(H,"SymbolTypeAnnotation");default:return this.checkNotUnderscore(Z.name),this.flowParseGenericType(X,Z)}}flowParsePrimaryType(){const X=this.state.startLoc,H=this.startNode();let Z,V,Q=!1;const Y=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,V=this.flowParseTupleType(),this.state.noAnonFunctionType=Y,V;case 47:{const W=this.startNode();return W.typeParameters=this.flowParseTypeParameterDeclaration(),this.expect(10),Z=this.flowParseFunctionTypeParams(),W.params=Z.params,W.rest=Z.rest,W.this=Z._this,this.expect(11),this.expect(19),W.returnType=this.flowParseType(),this.finishNode(W,"FunctionTypeAnnotation")}case 10:{const W=this.startNode();if(this.next(),!this.match(11)&&!this.match(21))if(N1(this.state.type)||this.match(78)){const z=this.lookahead().type;Q=z!==17&&z!==14}else Q=!0;if(Q)if(this.state.noAnonFunctionType=!1,V=this.flowParseType(),this.state.noAnonFunctionType=Y,this.state.noAnonFunctionType||!(this.match(12)||this.match(11)&&this.lookahead().type===19))return this.expect(11),V;else this.eat(12);if(V)Z=this.flowParseFunctionTypeParams([this.reinterpretTypeAsFunctionTypeParam(V)]);else Z=this.flowParseFunctionTypeParams();return W.params=Z.params,W.rest=Z.rest,W.this=Z._this,this.expect(11),this.expect(19),W.returnType=this.flowParseType(),W.typeParameters=null,this.finishNode(W,"FunctionTypeAnnotation")}case 133:return this.parseLiteral(this.state.value,"StringLiteralTypeAnnotation");case 85:case 86:return H.value=this.match(85),this.next(),this.finishNode(H,"BooleanLiteralTypeAnnotation");case 53:if(this.state.value==="-"){if(this.next(),this.match(134))return this.parseLiteralAtNode(-this.state.value,"NumberLiteralTypeAnnotation",H);if(this.match(135))return this.parseLiteralAtNode(-this.state.value,"BigIntLiteralTypeAnnotation",H);throw this.raise(Q1.UnexpectedSubtractionOperand,this.state.startLoc)}this.unexpected();return;case 134:return this.parseLiteral(this.state.value,"NumberLiteralTypeAnnotation");case 135:return this.parseLiteral(this.state.value,"BigIntLiteralTypeAnnotation");case 88:return this.next(),this.finishNode(H,"VoidTypeAnnotation");case 84:return this.next(),this.finishNode(H,"NullLiteralTypeAnnotation");case 78:return this.next(),this.finishNode(H,"ThisTypeAnnotation");case 55:return this.next(),this.finishNode(H,"ExistsTypeAnnotation");case 87:return this.flowParseTypeofType();default:if(m7(this.state.type)){const W=O0(this.state.type);return this.next(),super.createIdentifier(H,W)}else if(N1(this.state.type)){if(this.isContextual(129))return this.flowParseInterfaceType();return this.flowIdentToTypeAnnotation(X,H,this.parseIdentifier())}}this.unexpected()}flowParsePostfixType(){const X=this.state.startLoc;let H=this.flowParsePrimaryType(),Z=!1;while((this.match(0)||this.match(18))&&!this.canInsertSemicolon()){const V=this.startNodeAt(X),Q=this.eat(18);if(Z=Z||Q,this.expect(0),!Q&&this.match(3))V.elementType=H,this.next(),H=this.finishNode(V,"ArrayTypeAnnotation");else if(V.objectType=H,V.indexType=this.flowParseType(),this.expect(3),Z)V.optional=Q,H=this.finishNode(V,"OptionalIndexedAccessType");else H=this.finishNode(V,"IndexedAccessType")}return H}flowParsePrefixType(){const X=this.startNode();if(this.eat(17))return X.typeAnnotation=this.flowParsePrefixType(),this.finishNode(X,"NullableTypeAnnotation");else return this.flowParsePostfixType()}flowParseAnonFunctionWithoutParens(){const X=this.flowParsePrefixType();if(!this.state.noAnonFunctionType&&this.eat(19)){const H=this.startNodeAt(X.loc.start);return H.params=[this.reinterpretTypeAsFunctionTypeParam(X)],H.rest=null,H.this=null,H.returnType=this.flowParseType(),H.typeParameters=null,this.finishNode(H,"FunctionTypeAnnotation")}return X}flowParseIntersectionType(){const X=this.startNode();this.eat(45);const H=this.flowParseAnonFunctionWithoutParens();X.types=[H];while(this.eat(45))X.types.push(this.flowParseAnonFunctionWithoutParens());return X.types.length===1?H:this.finishNode(X,"IntersectionTypeAnnotation")}flowParseUnionType(){const X=this.startNode();this.eat(43);const H=this.flowParseIntersectionType();X.types=[H];while(this.eat(43))X.types.push(this.flowParseIntersectionType());return X.types.length===1?H:this.finishNode(X,"UnionTypeAnnotation")}flowParseType(){const X=this.state.inType;this.state.inType=!0;const H=this.flowParseUnionType();return this.state.inType=X,H}flowParseTypeOrImplicitInstantiation(){if(this.state.type===132&&this.state.value==="_"){const X=this.state.startLoc,H=this.parseIdentifier();return this.flowParseGenericType(X,H)}else return this.flowParseType()}flowParseTypeAnnotation(){const X=this.startNode();return X.typeAnnotation=this.flowParseTypeInitialiser(),this.finishNode(X,"TypeAnnotation")}flowParseTypeAnnotatableIdentifier(X){const H=X?this.parseIdentifier():this.flowParseRestrictedIdentifier();if(this.match(14))H.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(H);return H}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,H,Z=!1){if(H){this.forwardNoArrowParamsConversionAt(X,()=>super.parseFunctionBody(X,!0,Z));return}super.parseFunctionBody(X,!1,Z)}parseFunctionBodyAndFinish(X,H,Z=!1){if(this.match(14)){const V=this.startNode();[V.typeAnnotation,X.predicate]=this.flowParseTypeAndPredicateInitialiser(),X.returnType=V.typeAnnotation?this.finishNode(V,"TypeAnnotation"):null}return super.parseFunctionBodyAndFinish(X,H,Z)}parseStatementLike(X){if(this.state.strict&&this.isContextual(129)){const Z=this.lookahead();if(x2(Z.type)){const V=this.startNode();return this.next(),this.flowParseInterface(V)}}else if(this.plugins.get("flow").enums&&this.isContextual(126)){const Z=this.startNode();return this.next(),this.flowParseEnumDeclaration(Z)}const H=super.parseStatementLike(X);if(this.flowPragma===void 0&&!this.isValidDirective(H))this.flowPragma=null;return H}parseExpressionStatement(X,H,Z){if(H.type==="Identifier"){if(H.name==="declare"){if(this.match(80)||N1(this.state.type)||this.match(68)||this.match(74)||this.match(82))return this.flowParseDeclare(X)}else if(N1(this.state.type)){if(H.name==="interface")return this.flowParseInterface(X);else if(H.name==="type")return this.flowParseTypeAlias(X);else if(H.name==="opaque")return this.flowParseOpaqueType(X,!1)}}return super.parseExpressionStatement(X,H,Z)}shouldParseExportDeclaration(){const{type:X}=this.state;if(iU(X)||this.plugins.get("flow").enums&&X===126)return!this.state.containsEsc;return super.shouldParseExportDeclaration()}isExportDefaultSpecifier(){const{type:X}=this.state;if(iU(X)||this.plugins.get("flow").enums&&X===126)return this.state.containsEsc;return super.isExportDefaultSpecifier()}parseExportDefaultExpression(){if(this.plugins.get("flow").enums&&this.isContextual(126)){const X=this.startNode();return this.next(),this.flowParseEnumDeclaration(X)}return super.parseExportDefaultExpression()}parseConditional(X,H,Z){if(!this.match(17))return X;if(this.state.maybeInArrowParameters){const F=this.lookaheadCharCode();if(F===44||F===61||F===58||F===41)return this.setOptionalParametersError(Z),X}this.expect(17);const V=this.state.clone(),Q=this.state.noArrowAt,Y=this.startNodeAt(H);let{consequent:W,failed:z}=this.tryParseConditionalConsequent(),[B,q]=this.getArrowLikeExpressions(W);if(z||q.length>0){const F=[...Q];if(q.length>0){this.state=V,this.state.noArrowAt=F;for(let j=0;j<q.length;j++)F.push(q[j].start);({consequent:W,failed:z}=this.tryParseConditionalConsequent()),[B,q]=this.getArrowLikeExpressions(W)}if(z&&B.length>1)this.raise(Q1.AmbiguousConditionalArrow,V.startLoc);if(z&&B.length===1)this.state=V,F.push(B[0].start),this.state.noArrowAt=F,{consequent:W,failed:z}=this.tryParseConditionalConsequent()}return this.getArrowLikeExpressions(W,!0),this.state.noArrowAt=Q,this.expect(14),Y.test=X,Y.consequent=W,Y.alternate=this.forwardNoArrowParamsConversionAt(Y,()=>this.parseMaybeAssign(void 0,void 0)),this.finishNode(Y,"ConditionalExpression")}tryParseConditionalConsequent(){this.state.noArrowParamsConversionAt.push(this.state.start);const X=this.parseMaybeAssignAllowIn(),H=!this.match(14);return this.state.noArrowParamsConversionAt.pop(),{consequent:X,failed:H}}getArrowLikeExpressions(X,H){const Z=[X],V=[];while(Z.length!==0){const Q=Z.pop();if(Q.type==="ArrowFunctionExpression"&&Q.body.type!=="BlockStatement"){if(Q.typeParameters||!Q.returnType)this.finishArrowValidation(Q);else V.push(Q);Z.push(Q.body)}else if(Q.type==="ConditionalExpression")Z.push(Q.consequent),Z.push(Q.alternate)}if(H)return V.forEach((Q)=>this.finishArrowValidation(Q)),[V,[]];return cz1(V,(Q)=>Q.params.every((Y)=>this.isAssignable(Y,!0)))}finishArrowValidation(X){var H;this.toAssignableList(X.params,(H=X.extra)==null?void 0:H.trailingCommaLoc,!1),this.scope.enter(6),super.checkParams(X,!1,!0),this.scope.exit()}forwardNoArrowParamsConversionAt(X,H){let Z;if(this.state.noArrowParamsConversionAt.includes(X.start))this.state.noArrowParamsConversionAt.push(this.state.start),Z=H(),this.state.noArrowParamsConversionAt.pop();else Z=H();return Z}parseParenItem(X,H){const Z=super.parseParenItem(X,H);if(this.eat(17))Z.optional=!0,this.resetEndLocation(X);if(this.match(14)){const V=this.startNodeAt(H);return V.expression=Z,V.typeAnnotation=this.flowParseTypeAnnotation(),this.finishNode(V,"TypeCastExpression")}return Z}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";const H=this.startNode();if(this.next(),this.match(5))return X.specifiers=this.parseExportSpecifiers(!0),super.parseExportFrom(X),null;else return this.flowParseTypeAlias(H)}else if(this.isContextual(131)){X.exportKind="type";const H=this.startNode();return this.next(),this.flowParseOpaqueType(H,!1)}else if(this.isContextual(129)){X.exportKind="type";const H=this.startNode();return this.next(),this.flowParseInterface(H)}else if(this.plugins.get("flow").enums&&this.isContextual(126)){X.exportKind="value";const H=this.startNode();return this.next(),this.flowParseEnumDeclaration(H)}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){const{startLoc:H}=this.state,Z=super.maybeParseExportNamespaceSpecifier(X);if(Z&&X.exportKind==="type")this.unexpected(H);return Z}parseClassId(X,H,Z){if(super.parseClassId(X,H,Z),this.match(47))X.typeParameters=this.flowParseTypeParameterDeclaration()}parseClassMember(X,H,Z){const{startLoc:V}=this.state;if(this.isContextual(125)){if(super.parseClassMemberFromModifier(X,H))return;H.declare=!0}if(super.parseClassMember(X,H,Z),H.declare){if(H.type!=="ClassProperty"&&H.type!=="ClassPrivateProperty"&&H.type!=="PropertyDefinition")this.raise(Q1.DeclareClassElement,V);else if(H.value)this.raise(Q1.DeclareClassFieldInitializer,H.value)}}isIterator(X){return X==="iterator"||X==="asyncIterator"}readIterator(){const X=super.readWord1(),H="@@"+X;if(!this.isIterator(X)||!this.state.inType)this.raise(A.InvalidIdentifier,this.state.curPosition(),{identifierName:H});this.finishToken(132,H)}getTokenFromCode(X){const H=this.input.charCodeAt(this.state.pos+1);if(X===123&&H===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(H===46)this.finishOp(18,2);else this.finishOp(17,1);else if(Sz1(X,H,this.input.charCodeAt(this.state.pos+2)))this.state.pos+=2,this.readIterator();else super.getTokenFromCode(X)}isAssignable(X,H){if(X.type==="TypeCastExpression")return this.isAssignable(X.expression,H);else return super.isAssignable(X,H)}toAssignable(X,H=!1){if(!H&&X.type==="AssignmentExpression"&&X.left.type==="TypeCastExpression")X.left=this.typeCastToParameter(X.left);super.toAssignable(X,H)}toAssignableList(X,H,Z){for(let V=0;V<X.length;V++){const Q=X[V];if((Q==null?void 0:Q.type)==="TypeCastExpression")X[V]=this.typeCastToParameter(Q)}super.toAssignableList(X,H,Z)}toReferencedList(X,H){for(let V=0;V<X.length;V++){var Z;const Q=X[V];if(Q&&Q.type==="TypeCastExpression"&&!((Z=Q.extra)!=null&&Z.parenthesized)&&(X.length>1||!H))this.raise(Q1.TypeCastInPattern,Q.typeAnnotation)}return X}parseArrayLike(X,H,Z,V){const Q=super.parseArrayLike(X,H,Z,V);if(H&&!this.state.maybeInArrowParameters)this.toReferencedList(Q.elements);return Q}isValidLVal(X,H,Z){return X==="TypeCastExpression"||super.isValidLVal(X,H,Z)}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,H,Z,V,Q,Y){if(H.variance)this.unexpected(H.variance.loc.start);if(delete H.variance,this.match(47))H.typeParameters=this.flowParseTypeParameterDeclaration();if(super.pushClassMethod(X,H,Z,V,Q,Y),H.params&&Q){const W=H.params;if(W.length>0&&this.isThisParam(W[0]))this.raise(Q1.ThisParamBannedInConstructor,H)}else if(H.type==="MethodDefinition"&&Q&&H.value.params){const W=H.value.params;if(W.length>0&&this.isThisParam(W[0]))this.raise(Q1.ThisParamBannedInConstructor,H)}}pushClassPrivateMethod(X,H,Z,V){if(H.variance)this.unexpected(H.variance.loc.start);if(delete H.variance,this.match(47))H.typeParameters=this.flowParseTypeParameterDeclaration();super.pushClassPrivateMethod(X,H,Z,V)}parseClassSuper(X){if(super.parseClassSuper(X),X.superClass&&this.match(47))X.superTypeParameters=this.flowParseTypeParameterInstantiation();if(this.isContextual(113)){this.next();const H=X.implements=[];do{const Z=this.startNode();if(Z.id=this.flowParseRestrictedIdentifier(!0),this.match(47))Z.typeParameters=this.flowParseTypeParameterInstantiation();else Z.typeParameters=null;H.push(this.finishNode(Z,"ClassImplements"))}while(this.eat(12))}}checkGetterSetterParams(X){super.checkGetterSetterParams(X);const H=this.getObjectOrClassMethodParams(X);if(H.length>0){const Z=H[0];if(this.isThisParam(Z)&&X.kind==="get")this.raise(Q1.GetterMayNotHaveThisParam,Z);else if(this.isThisParam(Z))this.raise(Q1.SetterMayNotHaveThisParam,Z)}}parsePropertyNamePrefixOperator(X){X.variance=this.flowParseVariance()}parseObjPropValue(X,H,Z,V,Q,Y,W){if(X.variance)this.unexpected(X.variance.loc.start);delete X.variance;let z;if(this.match(47)&&!Y){if(z=this.flowParseTypeParameterDeclaration(),!this.match(10))this.unexpected()}const B=super.parseObjPropValue(X,H,Z,V,Q,Y,W);if(z)(B.value||B).typeParameters=z;return B}parseFunctionParamType(X){if(this.eat(17)){if(X.type!=="Identifier")this.raise(Q1.PatternIsOptional,X);if(this.isThisParam(X))this.raise(Q1.ThisParamMayNotBeOptional,X);X.optional=!0}if(this.match(14))X.typeAnnotation=this.flowParseTypeAnnotation();else if(this.isThisParam(X))this.raise(Q1.ThisParamAnnotationRequired,X);if(this.match(29)&&this.isThisParam(X))this.raise(Q1.ThisParamNoDefault,X);return this.resetEndLocation(X),X}parseMaybeDefault(X,H){const Z=super.parseMaybeDefault(X,H);if(Z.type==="AssignmentPattern"&&Z.typeAnnotation&&Z.right.start<Z.typeAnnotation.start)this.raise(Q1.TypeBeforeInitializer,Z.typeAnnotation);return Z}checkImportReflection(X){if(super.checkImportReflection(X),X.module&&X.importKind!=="value")this.raise(Q1.ImportReflectionHasImportType,X.specifiers[0].loc.start)}parseImportSpecifierLocal(X,H,Z){H.local=pU(X)?this.flowParseRestrictedIdentifier(!0,!0):this.parseIdentifier(),X.specifiers.push(this.finishImportSpecifier(H,Z))}isPotentialImportPhase(X){if(super.isPotentialImportPhase(X))return!0;if(this.isContextual(130)){if(!X)return!0;const H=this.lookaheadCharCode();return H===123||H===42}return!X&&this.isContextual(87)}applyImportPhase(X,H,Z,V){if(super.applyImportPhase(X,H,Z,V),H){if(!Z&&this.match(65))return;X.exportKind=Z==="type"?Z:"value"}else{if(Z==="type"&&this.match(55))this.unexpected();X.importKind=Z==="type"||Z==="typeof"?Z:"value"}}parseImportSpecifier(X,H,Z,V,Q){const Y=X.imported;let W=null;if(Y.type==="Identifier"){if(Y.name==="type")W="type";else if(Y.name==="typeof")W="typeof"}let z=!1;if(this.isContextual(93)&&!this.isLookaheadContextual("as")){const q=this.parseIdentifier(!0);if(W!==null&&!x2(this.state.type))X.imported=q,X.importKind=W,X.local=q0(q);else X.imported=Y,X.importKind=null,X.local=this.parseIdentifier()}else{if(W!==null&&x2(this.state.type))X.imported=this.parseIdentifier(!0),X.importKind=W;else{if(H)throw this.raise(A.ImportBindingIsString,X,{importName:Y.value});X.imported=Y,X.importKind=null}if(this.eatContextual(93))X.local=this.parseIdentifier();else z=!0,X.local=q0(X.imported)}const B=pU(X);if(Z&&B)this.raise(Q1.ImportTypeShorthandOnlyInPureImport,X);if(Z||B)this.checkReservedType(X.local.name,X.local.loc.start,!0);if(z&&!Z&&!B)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,H){const Z=X.kind;if(Z!=="get"&&Z!=="set"&&this.match(47))X.typeParameters=this.flowParseTypeParameterDeclaration();super.parseFunctionParams(X,H)}parseVarId(X,H){if(super.parseVarId(X,H),this.match(14))X.id.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(X.id)}parseAsyncArrowFromCallExpression(X,H){if(this.match(14)){const Z=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0,X.returnType=this.flowParseTypeAnnotation(),this.state.noAnonFunctionType=Z}return super.parseAsyncArrowFromCallExpression(X,H)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}parseMaybeAssign(X,H){var Z;let V=null,Q;if(this.hasPlugin("jsx")&&(this.match(142)||this.match(47))){if(V=this.state.clone(),Q=this.tryParse(()=>super.parseMaybeAssign(X,H),V),!Q.error)return Q.node;const{context:z}=this.state,B=z[z.length-1];if(B===v1.j_oTag||B===v1.j_expr)z.pop()}if((Z=Q)!=null&&Z.error||this.match(47)){var Y,W;V=V||this.state.clone();let z;const B=this.tryParse((F)=>{var j;z=this.flowParseTypeParameterDeclaration();const f=this.forwardNoArrowParamsConversionAt(z,()=>{const w=super.parseMaybeAssign(X,H);return this.resetStartLocationFromNode(w,z),w});if((j=f.extra)!=null&&j.parenthesized)F();const h=this.maybeUnwrapTypeCastExpression(f);if(h.type!=="ArrowFunctionExpression")F();return h.typeParameters=z,this.resetStartLocationFromNode(h,z),f},V);let q=null;if(B.node&&this.maybeUnwrapTypeCastExpression(B.node).type==="ArrowFunctionExpression"){if(!B.error&&!B.aborted){if(B.node.async)this.raise(Q1.UnexpectedTypeParameterBeforeAsyncArrowFunction,z);return B.node}q=B.node}if((Y=Q)!=null&&Y.node)return this.state=Q.failState,Q.node;if(q)return this.state=B.failState,q;if((W=Q)!=null&&W.thrown)throw Q.error;if(B.thrown)throw B.error;throw this.raise(Q1.UnexpectedTokenAfterTypeParameter,z)}return super.parseMaybeAssign(X,H)}parseArrow(X){if(this.match(14)){const H=this.tryParse(()=>{const Z=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0;const V=this.startNode();if([V.typeAnnotation,X.predicate]=this.flowParseTypeAndPredicateInitialiser(),this.state.noAnonFunctionType=Z,this.canInsertSemicolon())this.unexpected();if(!this.match(19))this.unexpected();return V});if(H.thrown)return null;if(H.error)this.state=H.failState;X.returnType=H.node.typeAnnotation?this.finishNode(H.node,"TypeAnnotation"):null}return super.parseArrow(X)}shouldParseArrow(X){return this.match(14)||super.shouldParseArrow(X)}setArrowFunctionParameters(X,H){if(this.state.noArrowParamsConversionAt.includes(X.start))X.params=H;else super.setArrowFunctionParameters(X,H)}checkParams(X,H,Z,V=!0){if(Z&&this.state.noArrowParamsConversionAt.includes(X.start))return;for(let Q=0;Q<X.params.length;Q++)if(this.isThisParam(X.params[Q])&&Q>0)this.raise(Q1.ThisParamMustBeFirst,X.params[Q]);super.checkParams(X,H,Z,V)}parseParenAndDistinguishExpression(X){return super.parseParenAndDistinguishExpression(X&&!this.state.noArrowAt.includes(this.state.start))}parseSubscripts(X,H,Z){if(X.type==="Identifier"&&X.name==="async"&&this.state.noArrowAt.includes(H.index)){this.next();const V=this.startNodeAt(H);V.callee=X,V.arguments=super.parseCallExpressionArguments(11,!1),X=this.finishNode(V,"CallExpression")}else if(X.type==="Identifier"&&X.name==="async"&&this.match(47)){const V=this.state.clone(),Q=this.tryParse((W)=>this.parseAsyncArrowWithTypeParameters(H)||W(),V);if(!Q.error&&!Q.aborted)return Q.node;const Y=this.tryParse(()=>super.parseSubscripts(X,H,Z),V);if(Y.node&&!Y.error)return Y.node;if(Q.node)return this.state=Q.failState,Q.node;if(Y.node)return this.state=Y.failState,Y.node;throw Q.error||Y.error}return super.parseSubscripts(X,H,Z)}parseSubscript(X,H,Z,V){if(this.match(18)&&this.isLookaheadToken_lt()){if(V.optionalChainMember=!0,Z)return V.stop=!0,X;this.next();const Q=this.startNodeAt(H);return Q.callee=X,Q.typeArguments=this.flowParseTypeParameterInstantiation(),this.expect(10),Q.arguments=this.parseCallExpressionArguments(11,!1),Q.optional=!0,this.finishCallExpression(Q,!0)}else if(!Z&&this.shouldParseTypes()&&this.match(47)){const Q=this.startNodeAt(H);Q.callee=X;const Y=this.tryParse(()=>{if(Q.typeArguments=this.flowParseTypeParameterInstantiationCallOrNew(),this.expect(10),Q.arguments=super.parseCallExpressionArguments(11,!1),V.optionalChainMember)Q.optional=!1;return this.finishCallExpression(Q,V.optionalChainMember)});if(Y.node){if(Y.error)this.state=Y.failState;return Y.node}}return super.parseSubscript(X,H,Z,V)}parseNewCallee(X){super.parseNewCallee(X);let H=null;if(this.shouldParseTypes()&&this.match(47))H=this.tryParse(()=>this.flowParseTypeParameterInstantiationCallOrNew()).node;X.typeArguments=H}parseAsyncArrowWithTypeParameters(X){const H=this.startNodeAt(X);if(this.parseFunctionParams(H,!1),!this.parseArrow(H))return;return super.parseArrowExpression(H,void 0,!0)}readToken_mult_modulo(X){const H=this.input.charCodeAt(this.state.pos+1);if(X===42&&H===47&&this.state.hasFlowComment){this.state.hasFlowComment=!1,this.state.pos+=2,this.nextToken();return}super.readToken_mult_modulo(X)}readToken_pipe_amp(X){const H=this.input.charCodeAt(this.state.pos+1);if(X===124&&H===125){this.finishOp(9,2);return}super.readToken_pipe_amp(X)}parseTopLevel(X,H){const Z=super.parseTopLevel(X,H);if(this.state.hasFlowComment)this.raise(Q1.UnterminatedFlowComment,this.state.curPosition());return Z}skipBlockComment(){if(this.hasPlugin("flowComments")&&this.skipFlowComment()){if(this.state.hasFlowComment)throw this.raise(Q1.NestedFlowComment,this.state.startLoc);this.hasFlowCommentCompletion();const X=this.skipFlowComment();if(X)this.state.pos+=X,this.state.hasFlowComment=!0;return}return super.skipBlockComment(this.state.hasFlowComment?"*-/":"*/")}skipFlowComment(){const{pos:X}=this.state;let H=2;while([32,9].includes(this.input.charCodeAt(X+H)))H++;const Z=this.input.charCodeAt(H+X),V=this.input.charCodeAt(H+X+1);if(Z===58&&V===58)return H+2;if(this.input.slice(H+X,H+X+12)==="flow-include")return H+12;if(Z===58&&V!==58)return H;return!1}hasFlowCommentCompletion(){if(this.input.indexOf("*/",this.state.pos)===-1)throw this.raise(A.UnterminatedComment,this.state.curPosition())}flowEnumErrorBooleanMemberNotInitialized(X,{enumName:H,memberName:Z}){this.raise(Q1.EnumBooleanMemberNotInitialized,X,{memberName:Z,enumName:H})}flowEnumErrorInvalidMemberInitializer(X,H){return this.raise(!H.explicitType?Q1.EnumInvalidMemberInitializerUnknownType:H.explicitType==="symbol"?Q1.EnumInvalidMemberInitializerSymbolType:Q1.EnumInvalidMemberInitializerPrimaryType,X,H)}flowEnumErrorNumberMemberNotInitialized(X,H){this.raise(Q1.EnumNumberMemberNotInitialized,X,H)}flowEnumErrorStringMemberInconsistentlyInitialized(X,H){this.raise(Q1.EnumStringMemberInconsistentlyInitialized,X,H)}flowEnumMemberInit(){const X=this.state.startLoc,H=()=>this.match(12)||this.match(8);switch(this.state.type){case 134:{const Z=this.parseNumericLiteral(this.state.value);if(H())return{type:"number",loc:Z.loc.start,value:Z};return{type:"invalid",loc:X}}case 133:{const Z=this.parseStringLiteral(this.state.value);if(H())return{type:"string",loc:Z.loc.start,value:Z};return{type:"invalid",loc:X}}case 85:case 86:{const Z=this.parseBooleanLiteral(this.match(85));if(H())return{type:"boolean",loc:Z.loc.start,value:Z};return{type:"invalid",loc:X}}default:return{type:"invalid",loc:X}}}flowEnumMemberRaw(){const X=this.state.startLoc,H=this.parseIdentifier(!0),Z=this.eat(29)?this.flowEnumMemberInit():{type:"none",loc:X};return{id:H,init:Z}}flowEnumCheckExplicitTypeMismatch(X,H,Z){const{explicitType:V}=H;if(V===null)return;if(V!==Z)this.flowEnumErrorInvalidMemberInitializer(X,H)}flowEnumMembers({enumName:X,explicitType:H}){const Z=new Set,V={booleanMembers:[],numberMembers:[],stringMembers:[],defaultedMembers:[]};let Q=!1;while(!this.match(8)){if(this.eat(21)){Q=!0;break}const Y=this.startNode(),{id:W,init:z}=this.flowEnumMemberRaw(),B=W.name;if(B==="")continue;if(/^[a-z]/.test(B))this.raise(Q1.EnumInvalidMemberName,W,{memberName:B,suggestion:B[0].toUpperCase()+B.slice(1),enumName:X});if(Z.has(B))this.raise(Q1.EnumDuplicateMemberName,W,{memberName:B,enumName:X});Z.add(B);const q={enumName:X,explicitType:H,memberName:B};switch(Y.id=W,z.type){case"boolean":{this.flowEnumCheckExplicitTypeMismatch(z.loc,q,"boolean"),Y.init=z.value,V.booleanMembers.push(this.finishNode(Y,"EnumBooleanMember"));break}case"number":{this.flowEnumCheckExplicitTypeMismatch(z.loc,q,"number"),Y.init=z.value,V.numberMembers.push(this.finishNode(Y,"EnumNumberMember"));break}case"string":{this.flowEnumCheckExplicitTypeMismatch(z.loc,q,"string"),Y.init=z.value,V.stringMembers.push(this.finishNode(Y,"EnumStringMember"));break}case"invalid":throw this.flowEnumErrorInvalidMemberInitializer(z.loc,q);case"none":switch(H){case"boolean":this.flowEnumErrorBooleanMemberNotInitialized(z.loc,q);break;case"number":this.flowEnumErrorNumberMemberNotInitialized(z.loc,q);break;default:V.defaultedMembers.push(this.finishNode(Y,"EnumDefaultedMember"))}}if(!this.match(8))this.expect(12)}return{members:V,hasUnknownMembers:Q}}flowEnumStringMembers(X,H,{enumName:Z}){if(X.length===0)return H;else if(H.length===0)return X;else if(H.length>X.length){for(let V of X)this.flowEnumErrorStringMemberInconsistentlyInitialized(V,{enumName:Z});return H}else{for(let V of H)this.flowEnumErrorStringMemberInconsistentlyInitialized(V,{enumName:Z});return X}}flowEnumParseExplicitType({enumName:X}){if(!this.eatContextual(102))return null;if(!N1(this.state.type))throw this.raise(Q1.EnumInvalidExplicitTypeUnknownSupplied,this.state.startLoc,{enumName:X});const{value:H}=this.state;if(this.next(),H!=="boolean"&&H!=="number"&&H!=="string"&&H!=="symbol")this.raise(Q1.EnumInvalidExplicitType,this.state.startLoc,{enumName:X,invalidEnumType:H});return H}flowEnumBody(X,H){const Z=H.name,V=H.loc.start,Q=this.flowEnumParseExplicitType({enumName:Z});this.expect(5);const{members:Y,hasUnknownMembers:W}=this.flowEnumMembers({enumName:Z,explicitType:Q});switch(X.hasUnknownMembers=W,Q){case"boolean":return X.explicitType=!0,X.members=Y.booleanMembers,this.expect(8),this.finishNode(X,"EnumBooleanBody");case"number":return X.explicitType=!0,X.members=Y.numberMembers,this.expect(8),this.finishNode(X,"EnumNumberBody");case"string":return X.explicitType=!0,X.members=this.flowEnumStringMembers(Y.stringMembers,Y.defaultedMembers,{enumName:Z}),this.expect(8),this.finishNode(X,"EnumStringBody");case"symbol":return X.members=Y.defaultedMembers,this.expect(8),this.finishNode(X,"EnumSymbolBody");default:{const z=()=>{return X.members=[],this.expect(8),this.finishNode(X,"EnumStringBody")};X.explicitType=!1;const B=Y.booleanMembers.length,q=Y.numberMembers.length,F=Y.stringMembers.length,j=Y.defaultedMembers.length;if(!B&&!q&&!F&&!j)return z();else if(!B&&!q)return X.members=this.flowEnumStringMembers(Y.stringMembers,Y.defaultedMembers,{enumName:Z}),this.expect(8),this.finishNode(X,"EnumStringBody");else if(!q&&!F&&B>=j){for(let f of Y.defaultedMembers)this.flowEnumErrorBooleanMemberNotInitialized(f.loc.start,{enumName:Z,memberName:f.id.name});return X.members=Y.booleanMembers,this.expect(8),this.finishNode(X,"EnumBooleanBody")}else if(!B&&!F&&q>=j){for(let f of Y.defaultedMembers)this.flowEnumErrorNumberMemberNotInitialized(f.loc.start,{enumName:Z,memberName:f.id.name});return X.members=Y.numberMembers,this.expect(8),this.finishNode(X,"EnumNumberBody")}else return this.raise(Q1.EnumInconsistentMemberValues,V,{enumName:Z}),z()}}}flowParseEnumDeclaration(X){const H=this.parseIdentifier();return X.id=H,X.body=this.flowEnumBody(this.startNode(),H),this.finishNode(X,"EnumDeclaration")}isLookaheadToken_lt(){const X=this.nextTokenStart();if(this.input.charCodeAt(X)===60){const H=this.input.charCodeAt(X+1);return H!==60&&H!==61}return!1}maybeUnwrapTypeCastExpression(X){return X.type==="TypeCastExpression"?X.expression:X}},iz1={__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"},G5=R0`jsx`({AttributeIsEmpty:"JSX attributes must only be assigned a non-empty expression.",MissingClosingTagElement:({openingTagName:G})=>`Expected corresponding JSX closing tag for <${G}>.`,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:G,HTMLEntity:J})=>`Unexpected token \`${G}\`. Did you mean \`${J}\` or \`{'${G}'}\`?`,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 <>...</>?"}),uz1=(G)=>class J extends G{jsxReadToken(){let X="",H=this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(G5.UnterminatedJsxContent,this.state.startLoc);const Z=this.input.charCodeAt(this.state.pos);switch(Z){case 60:case 123:if(this.state.pos===this.state.start){if(Z===60&&this.state.canStartJSXElement)++this.state.pos,this.finishToken(142);else super.getTokenFromCode(Z);return}X+=this.input.slice(H,this.state.pos),this.finishToken(141,X);return;case 38:X+=this.input.slice(H,this.state.pos),X+=this.jsxReadEntity(),H=this.state.pos;break;case 62:case 125:default:if(h5(Z))X+=this.input.slice(H,this.state.pos),X+=this.jsxReadNewLine(!0),H=this.state.pos;else++this.state.pos}}}jsxReadNewLine(X){const H=this.input.charCodeAt(this.state.pos);let Z;if(++this.state.pos,H===13&&this.input.charCodeAt(this.state.pos)===10)++this.state.pos,Z=X?"\n":"\r\n";else Z=String.fromCharCode(H);return++this.state.curLine,this.state.lineStart=this.state.pos,Z}jsxReadString(X){let H="",Z=++this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(A.UnterminatedString,this.state.startLoc);const V=this.input.charCodeAt(this.state.pos);if(V===X)break;if(V===38)H+=this.input.slice(Z,this.state.pos),H+=this.jsxReadEntity(),Z=this.state.pos;else if(h5(V))H+=this.input.slice(Z,this.state.pos),H+=this.jsxReadNewLine(!1),Z=this.state.pos;else++this.state.pos}H+=this.input.slice(Z,this.state.pos++),this.finishToken(133,H)}jsxReadEntity(){const X=++this.state.pos;if(this.codePointAtPos(this.state.pos)===35){++this.state.pos;let H=10;if(this.codePointAtPos(this.state.pos)===120)H=16,++this.state.pos;const Z=this.readInt(H,void 0,!1,"bail");if(Z!==null&&this.codePointAtPos(this.state.pos)===59)return++this.state.pos,String.fromCodePoint(Z)}else{let H=0,Z=!1;while(H++<10&&this.state.pos<this.length&&!(Z=this.codePointAtPos(this.state.pos)===59))++this.state.pos;if(Z){const V=this.input.slice(X,this.state.pos),Q=iz1[V];if(++this.state.pos,Q)return Q}}return this.state.pos=X,"&"}jsxReadWord(){let X;const H=this.state.pos;do X=this.input.charCodeAt(++this.state.pos);while(b5(X)||X===45);this.finishToken(140,this.input.slice(H,this.state.pos))}jsxParseIdentifier(){const X=this.startNode();if(this.match(140))X.name=this.state.value;else if(m7(this.state.type))X.name=O0(this.state.type);else this.unexpected();return this.next(),this.finishNode(X,"JSXIdentifier")}jsxParseNamespacedName(){const X=this.state.startLoc,H=this.jsxParseIdentifier();if(!this.eat(14))return H;const Z=this.startNodeAt(X);return Z.namespace=H,Z.name=this.jsxParseIdentifier(),this.finishNode(Z,"JSXNamespacedName")}jsxParseElementName(){const X=this.state.startLoc;let H=this.jsxParseNamespacedName();if(H.type==="JSXNamespacedName")return H;while(this.eat(16)){const Z=this.startNodeAt(X);Z.object=H,Z.property=this.jsxParseIdentifier(),H=this.finishNode(Z,"JSXMemberExpression")}return H}jsxParseAttributeValue(){let X;switch(this.state.type){case 5:if(X=this.startNode(),this.setContext(v1.brace),this.next(),X=this.jsxParseExpressionContainer(X,v1.j_oTag),X.expression.type==="JSXEmptyExpression")this.raise(G5.AttributeIsEmpty,X);return X;case 142:case 133:return this.parseExprAtom();default:throw this.raise(G5.UnsupportedJsxValue,this.state.startLoc)}}jsxParseEmptyExpression(){const 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(v1.j_expr),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(X,"JSXSpreadChild")}jsxParseExpressionContainer(X,H){if(this.match(8))X.expression=this.jsxParseEmptyExpression();else{const Z=this.parseExpression();X.expression=Z}return this.setContext(H),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(X,"JSXExpressionContainer")}jsxParseAttribute(){const X=this.startNode();if(this.match(5))return this.setContext(v1.brace),this.next(),this.expect(21),X.argument=this.parseMaybeAssignAllowIn(),this.setContext(v1.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){const H=this.startNodeAt(X);if(this.eat(143))return this.finishNode(H,"JSXOpeningFragment");return H.name=this.jsxParseElementName(),this.jsxParseOpeningElementAfterName(H)}jsxParseOpeningElementAfterName(X){const H=[];while(!this.match(56)&&!this.match(143))H.push(this.jsxParseAttribute());return X.attributes=H,X.selfClosing=this.eat(56),this.expect(143),this.finishNode(X,"JSXOpeningElement")}jsxParseClosingElementAt(X){const H=this.startNodeAt(X);if(this.eat(143))return this.finishNode(H,"JSXClosingFragment");return H.name=this.jsxParseElementName(),this.expect(143),this.finishNode(H,"JSXClosingElement")}jsxParseElementAt(X){const H=this.startNodeAt(X),Z=[],V=this.jsxParseOpeningElementAt(X);let Q=null;if(!V.selfClosing){G:for(;;)switch(this.state.type){case 142:if(X=this.state.startLoc,this.next(),this.eat(56)){Q=this.jsxParseClosingElementAt(X);break G}Z.push(this.jsxParseElementAt(X));break;case 141:Z.push(this.parseLiteral(this.state.value,"JSXText"));break;case 5:{const Y=this.startNode();if(this.setContext(v1.brace),this.next(),this.match(21))Z.push(this.jsxParseSpreadChild(Y));else Z.push(this.jsxParseExpressionContainer(Y,v1.j_expr));break}default:this.unexpected()}if(E0(V)&&!E0(Q)&&Q!==null)this.raise(G5.MissingClosingTagFragment,Q);else if(!E0(V)&&E0(Q))this.raise(G5.MissingClosingTagElement,Q,{openingTagName:g5(V.name)});else if(!E0(V)&&!E0(Q)){if(g5(Q.name)!==g5(V.name))this.raise(G5.MissingClosingTagElement,Q,{openingTagName:g5(V.name)})}}if(E0(V))H.openingFragment=V,H.closingFragment=Q;else H.openingElement=V,H.closingElement=Q;if(H.children=Z,this.match(47))throw this.raise(G5.UnwrappedAdjacentJSXElements,this.state.startLoc);return E0(V)?this.finishNode(H,"JSXFragment"):this.finishNode(H,"JSXElement")}jsxParseElement(){const X=this.state.startLoc;return this.next(),this.jsxParseElementAt(X)}setContext(X){const{context:H}=this.state;H[H.length-1]=X}parseExprAtom(X){if(this.match(142))return this.jsxParseElement();else if(this.match(47)&&this.input.charCodeAt(this.state.pos)!==33)return this.replaceToken(142),this.jsxParseElement();else return super.parseExprAtom(X)}skipSpace(){if(!this.curContext().preserveSpace)super.skipSpace()}getTokenFromCode(X){const H=this.curContext();if(H===v1.j_expr){this.jsxReadToken();return}if(H===v1.j_oTag||H===v1.j_cTag){if($0(X)){this.jsxReadWord();return}if(X===62){++this.state.pos,this.finishToken(143);return}if((X===34||X===39)&&H===v1.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(142);return}super.getTokenFromCode(X)}updateContext(X){const{context:H,type:Z}=this.state;if(Z===56&&X===142)H.splice(-2,2,v1.j_cTag),this.state.canStartJSXElement=!1;else if(Z===142)H.push(v1.j_oTag);else if(Z===143){const V=H[H.length-1];if(V===v1.j_oTag&&X===56||V===v1.j_cTag)H.pop(),this.state.canStartJSXElement=H[H.length-1]===v1.j_expr;else this.setContext(v1.j_expr),this.state.canStartJSXElement=!0}else this.state.canStartJSXElement=Wz1(Z)}};class SK extends mG{constructor(...G){super(...G);this.tsNames=new Map}}class PK extends xG{constructor(...G){super(...G);this.importsStack=[]}createScope(G){return this.importsStack.push(new Set),new SK(G)}enter(G){if(G===256)this.importsStack.push(new Set);super.enter(G)}exit(){const G=super.exit();if(G===256)this.importsStack.pop();return G}hasImport(G,J){const X=this.importsStack.length;if(this.importsStack[X-1].has(G))return!0;if(!J&&X>1){for(let H=0;H<X-1;H++)if(this.importsStack[H].has(G))return!0}return!1}declareName(G,J,X){if(J&4096){if(this.hasImport(G,!0))this.parser.raise(A.VarRedeclaration,X,{identifierName:G});this.importsStack[this.importsStack.length-1].add(G);return}const H=this.currentScope();let Z=H.tsNames.get(G)||0;if(J&1024){this.maybeExportDefined(H,G),H.tsNames.set(G,Z|16);return}if(super.declareName(G,J,X),J&2){if(!(J&1))this.checkRedeclarationInScope(H,G,J,X),this.maybeExportDefined(H,G);Z=Z|1}if(J&256)Z=Z|2;if(J&512)Z=Z|4;if(J&128)Z=Z|8;if(Z)H.tsNames.set(G,Z)}isRedeclaredInScope(G,J,X){const H=G.tsNames.get(J);if((H&2)>0){if(X&256){const Z=!!(X&512),V=(H&4)>0;return Z!==V}return!0}if(X&128&&(H&8)>0)if(G.names.get(J)&2)return!!(X&1);else return!1;if(X&2&&(H&1)>0)return!0;return super.isRedeclaredInScope(G,J,X)}checkLocalExport(G){const{name:J}=G;if(this.hasImport(J))return;const X=this.scopeStack.length;for(let H=X-1;H>=0;H--){const V=this.scopeStack[H].tsNames.get(J);if((V&1)>0||(V&16)>0)return}super.checkLocalExport(G)}}var LK=(G)=>{return G.type==="ParenthesizedExpression"?LK(G.expression):G};class TK extends fK{toAssignable(G,J=!1){var X,H;let Z=void 0;if(G.type==="ParenthesizedExpression"||(X=G.extra)!=null&&X.parenthesized)if(Z=LK(G),J){if(Z.type==="Identifier")this.expressionScope.recordArrowParameterBindingError(A.InvalidParenthesizedAssignment,G);else if(Z.type!=="MemberExpression"&&!this.isOptionalMemberExpression(Z))this.raise(A.InvalidParenthesizedAssignment,G)}else this.raise(A.InvalidParenthesizedAssignment,G);switch(G.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":G.type="ObjectPattern";for(let Q=0,Y=G.properties.length,W=Y-1;Q<Y;Q++){var V;const z=G.properties[Q],B=Q===W;if(this.toAssignableObjectExpressionProp(z,B,J),B&&z.type==="RestElement"&&(V=G.extra)!=null&&V.trailingCommaLoc)this.raise(A.RestTrailingComma,G.extra.trailingCommaLoc)}break;case"ObjectProperty":{const{key:Q,value:Y}=G;if(this.isPrivateName(Q))this.classScope.usePrivateName(this.getPrivateNameSV(Q),Q.loc.start);this.toAssignable(Y,J);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":G.type="ArrayPattern",this.toAssignableList(G.elements,(H=G.extra)==null?void 0:H.trailingCommaLoc,J);break;case"AssignmentExpression":if(G.operator!=="=")this.raise(A.MissingEqInAssignment,G.left.loc.end);G.type="AssignmentPattern",delete G.operator,this.toAssignable(G.left,J);break;case"ParenthesizedExpression":this.toAssignable(Z,J);break}}toAssignableObjectExpressionProp(G,J,X){if(G.type==="ObjectMethod")this.raise(G.kind==="get"||G.kind==="set"?A.PatternHasAccessor:A.PatternHasMethod,G.key);else if(G.type==="SpreadElement"){G.type="RestElement";const H=G.argument;if(this.checkToRestConversion(H,!1),this.toAssignable(H,X),!J)this.raise(A.RestTrailingComma,G)}else this.toAssignable(G,X)}toAssignableList(G,J,X){const H=G.length-1;for(let Z=0;Z<=H;Z++){const V=G[Z];if(!V)continue;if(V.type==="SpreadElement"){V.type="RestElement";const Q=V.argument;this.checkToRestConversion(Q,!0),this.toAssignable(Q,X)}else this.toAssignable(V,X);if(V.type==="RestElement"){if(Z<H)this.raise(A.RestTrailingComma,V);else if(J)this.raise(A.RestTrailingComma,J)}}}isAssignable(G,J){switch(G.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":return!0;case"ObjectExpression":{const X=G.properties.length-1;return G.properties.every((H,Z)=>{return H.type!=="ObjectMethod"&&(Z===X||H.type!=="SpreadElement")&&this.isAssignable(H)})}case"ObjectProperty":return this.isAssignable(G.value);case"SpreadElement":return this.isAssignable(G.argument);case"ArrayExpression":return G.elements.every((X)=>X===null||this.isAssignable(X));case"AssignmentExpression":return G.operator==="=";case"ParenthesizedExpression":return this.isAssignable(G.expression);case"MemberExpression":case"OptionalMemberExpression":return!J;default:return!1}}toReferencedList(G,J){return G}toReferencedListDeep(G,J){this.toReferencedList(G,J);for(let X of G)if((X==null?void 0:X.type)==="ArrayExpression")this.toReferencedListDeep(X.elements)}parseSpread(G){const J=this.startNode();return this.next(),J.argument=this.parseMaybeAssignAllowIn(G,void 0),this.finishNode(J,"SpreadElement")}parseRestBinding(){const G=this.startNode();return this.next(),G.argument=this.parseBindingAtom(),this.finishNode(G,"RestElement")}parseBindingAtom(){switch(this.state.type){case 0:{const G=this.startNode();return this.next(),G.elements=this.parseBindingList(3,93,1),this.finishNode(G,"ArrayPattern")}case 5:return this.parseObjectLike(8,!0)}return this.parseIdentifier()}parseBindingList(G,J,X){const H=X&1,Z=[];let V=!0;while(!this.eat(G)){if(V)V=!1;else this.expect(12);if(H&&this.match(12))Z.push(null);else if(this.eat(G))break;else if(this.match(21)){let Q=this.parseRestBinding();if(this.hasPlugin("flow")||X&2)Q=this.parseFunctionParamType(Q);if(Z.push(Q),!this.checkCommaAfterRest(J)){this.expect(G);break}}else{const Q=[];if(this.match(26)&&this.hasPlugin("decorators"))this.raise(A.UnsupportedParameterDecorator,this.state.startLoc);while(this.match(26))Q.push(this.parseDecorator());Z.push(this.parseAssignableListItem(X,Q))}}return Z}parseBindingRestProperty(G){return this.next(),G.argument=this.parseIdentifier(),this.checkCommaAfterRest(125),this.finishNode(G,"RestElement")}parseBindingProperty(){const{type:G,startLoc:J}=this.state;if(G===21)return this.parseBindingRestProperty(this.startNode());const X=this.startNode();if(G===138)this.expectPlugin("destructuringPrivate",J),this.classScope.usePrivateName(this.state.value,J),X.key=this.parsePrivateName();else this.parsePropertyName(X);return X.method=!1,this.parseObjPropValue(X,J,!1,!1,!0,!1)}parseAssignableListItem(G,J){const X=this.parseMaybeDefault();if(this.hasPlugin("flow")||G&2)this.parseFunctionParamType(X);const H=this.parseMaybeDefault(X.loc.start,X);if(J.length)X.decorators=J;return H}parseFunctionParamType(G){return G}parseMaybeDefault(G,J){var X,H;if((X=G)!=null||(G=this.state.startLoc),J=(H=J)!=null?H:this.parseBindingAtom(),!this.eat(29))return J;const Z=this.startNodeAt(G);return Z.left=J,Z.right=this.parseMaybeAssignAllowIn(),this.finishNode(Z,"AssignmentPattern")}isValidLVal(G,J,X){switch(G){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(G){return G.type==="OptionalMemberExpression"}checkLVal(G,J,X=64,H=!1,Z=!1,V=!1){var Q;const Y=G.type;if(this.isObjectMethod(G))return;const W=this.isOptionalMemberExpression(G);if(W||Y==="MemberExpression"){if(W){if(this.expectPlugin("optionalChainingAssign",G.loc.start),J.type!=="AssignmentExpression")this.raise(A.InvalidLhsOptionalChaining,G,{ancestor:J})}if(X!==64)this.raise(A.InvalidPropertyBindingPattern,G);return}if(Y==="Identifier"){this.checkIdentifier(G,X,Z);const{name:f}=G;if(H)if(H.has(f))this.raise(A.ParamDupe,G);else H.add(f);return}const z=this.isValidLVal(Y,!(V||(Q=G.extra)!=null&&Q.parenthesized)&&J.type==="AssignmentExpression",X);if(z===!0)return;if(z===!1){const f=X===64?A.InvalidLhs:A.InvalidLhsBinding;this.raise(f,G,{ancestor:J});return}let B,q;if(typeof z==="string")B=z,q=Y==="ParenthesizedExpression";else[B,q]=z;const F=Y==="ArrayPattern"||Y==="ObjectPattern"?{type:Y}:J,j=G[B];if(Array.isArray(j)){for(let f of j)if(f)this.checkLVal(f,F,X,H,Z,q)}else if(j)this.checkLVal(j,F,X,H,Z,q)}checkIdentifier(G,J,X=!1){if(this.state.strict&&(X?WK(G.name,this.inModule):YK(G.name)))if(J===64)this.raise(A.StrictEvalArguments,G,{referenceName:G.name});else this.raise(A.StrictEvalArgumentsBinding,G,{bindingName:G.name});if(J&8192&&G.name==="let")this.raise(A.LetInLexicalBinding,G);if(!(J&64))this.declareNameFromIdentifier(G,J)}declareNameFromIdentifier(G,J){this.scope.declareName(G.name,J,G.loc.start)}checkToRestConversion(G,J){switch(G.type){case"ParenthesizedExpression":this.checkToRestConversion(G.expression,J);break;case"Identifier":case"MemberExpression":break;case"ArrayExpression":case"ObjectExpression":if(J)break;default:this.raise(A.InvalidRestAssignmentPattern,G)}}checkCommaAfterRest(G){if(!this.match(12))return!1;return this.raise(this.lookaheadCharCode()===G?A.RestTrailingComma:A.ElementAfterRest,this.state.startLoc),!0}}var t=R0`typescript`({AbstractMethodHasImplementation:({methodName:G})=>`Method '${G}' cannot have an implementation because it is marked abstract.`,AbstractPropertyHasInitializer:({propertyName:G})=>`Property '${G}' 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:G})=>`'declare' is not allowed in ${G}ters.`,DeclareClassFieldHasInitializer:"Initializers are not allowed in ambient contexts.",DeclareFunctionHasImplementation:"An implementation cannot be declared in ambient contexts.",DuplicateAccessibilityModifier:({modifier:G})=>"Accessibility modifier already seen.",DuplicateModifier:({modifier:G})=>`Duplicate modifier: '${G}'.`,EmptyHeritageClauseType:({token:G})=>`'${G}' 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:G})=>`'${G[0]}' modifier cannot be used with '${G[1]}' modifier.`,IndexSignatureHasAbstract:"Index signatures cannot have the 'abstract' modifier.",IndexSignatureHasAccessibility:({modifier:G})=>`Index signatures cannot have an accessibility modifier ('${G}').`,IndexSignatureHasDeclare:"Index signatures cannot have the 'declare' modifier.",IndexSignatureHasOverride:"'override' modifier cannot appear on an index signature.",IndexSignatureHasStatic:"Index signatures cannot have the 'static' modifier.",InitializerNotAllowedInAmbientContext:"Initializers are not allowed in ambient contexts.",InvalidModifierOnTypeMember:({modifier:G})=>`'${G}' modifier cannot appear on a type member.`,InvalidModifierOnTypeParameter:({modifier:G})=>`'${G}' modifier cannot appear on a type parameter.`,InvalidModifierOnTypeParameterPositions:({modifier:G})=>`'${G}' modifier can only appear on a type parameter of a class, interface or type alias.`,InvalidModifiersOrder:({orderedModifiers:G})=>`'${G[0]}' modifier must precede '${G[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:G})=>`Private elements cannot have an accessibility modifier ('${G}').`,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:G})=>`Single type parameter ${G} should have a trailing comma. Example usage: <${G},>.`,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:G})=>`Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got ${G}.`}),nz1=(G)=>class J extends G{constructor(...X){super(...X);this.tsParseInOutModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out"],disallowedModifiers:["const","public","private","protected","readonly","declare","abstract","override"],errorTemplate:t.InvalidModifierOnTypeParameter}),this.tsParseConstModifier=this.tsParseModifiers.bind(this,{allowedModifiers:["const"],disallowedModifiers:["in","out"],errorTemplate:t.InvalidModifierOnTypeParameterPositions}),this.tsParseInOutConstModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out","const"],disallowedModifiers:["public","private","protected","readonly","declare","abstract","override"],errorTemplate:t.InvalidModifierOnTypeParameter})}getScopeHandler(){return PK}tsIsIdentifier(){return N1(this.state.type)}tsTokenCanFollowModifier(){return this.match(0)||this.match(5)||this.match(55)||this.match(21)||this.match(138)||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,H){if(!N1(this.state.type)&&this.state.type!==58&&this.state.type!==75)return;const Z=this.state.value;if(X.includes(Z)){if(H&&this.tsIsStartOfStaticBlocks())return;if(this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this)))return Z}return}tsParseModifiers({allowedModifiers:X,disallowedModifiers:H,stopOnStartOfClassStaticBlock:Z,errorTemplate:V=t.InvalidModifierOnTypeMember},Q){const Y=(z,B,q,F)=>{if(B===q&&Q[F])this.raise(t.InvalidModifiersOrder,z,{orderedModifiers:[q,F]})},W=(z,B,q,F)=>{if(Q[q]&&B===F||Q[F]&&B===q)this.raise(t.IncompatibleModifiers,z,{modifiers:[q,F]})};for(;;){const{startLoc:z}=this.state,B=this.tsParseModifier(X.concat(H!=null?H:[]),Z);if(!B)break;if(oU(B))if(Q.accessibility)this.raise(t.DuplicateAccessibilityModifier,z,{modifier:B});else Y(z,B,B,"override"),Y(z,B,B,"static"),Y(z,B,B,"readonly"),Q.accessibility=B;else if(pz1(B)){if(Q[B])this.raise(t.DuplicateModifier,z,{modifier:B});Q[B]=!0,Y(z,B,"in","out")}else{if(hasOwnProperty.call(Q,B))this.raise(t.DuplicateModifier,z,{modifier:B});else Y(z,B,"static","readonly"),Y(z,B,"static","override"),Y(z,B,"override","readonly"),Y(z,B,"abstract","override"),W(z,B,"declare","override"),W(z,B,"static","abstract");Q[B]=!0}if(H!=null&&H.includes(B))this.raise(V,z,{modifier:B})}}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,H){const Z=[];while(!this.tsIsListTerminator(X))Z.push(H());return Z}tsParseDelimitedList(X,H,Z){return dz1(this.tsParseDelimitedListWorker(X,H,!0,Z))}tsParseDelimitedListWorker(X,H,Z,V){const Q=[];let Y=-1;for(;;){if(this.tsIsListTerminator(X))break;Y=-1;const W=H();if(W==null)return;if(Q.push(W),this.eat(12)){Y=this.state.lastTokStartLoc.index;continue}if(this.tsIsListTerminator(X))break;if(Z)this.expect(12);return}if(V)V.value=Y;return Q}tsParseBracketedList(X,H,Z,V,Q){if(!V)if(Z)this.expect(0);else this.expect(47);const Y=this.tsParseDelimitedList(X,H,Q);if(Z)this.expect(3);else this.expect(48);return Y}tsParseImportType(){const X=this.startNode();if(this.expect(83),this.expect(10),!this.match(133))this.raise(t.UnsupportedImportTypeArgument,this.state.startLoc);if(X.argument=super.parseExprAtom(),this.hasPlugin("importAttributes")||this.hasPlugin("importAssertions"))X.options=null;if(this.eat(12)){if(!this.hasPlugin("importAssertions"))this.expectPlugin("importAttributes");if(!this.match(11))X.options=super.parseMaybeAssignAllowIn(),this.eat(12)}if(this.expect(11),this.eat(16))X.qualifier=this.tsParseEntityName();if(this.match(47))X.typeParameters=this.tsParseTypeArguments();return this.finishNode(X,"TSImportType")}tsParseEntityName(X=!0){let H=this.parseIdentifier(X);while(this.eat(16)){const Z=this.startNodeAtNode(H);Z.left=H,Z.right=this.parseIdentifier(X),H=this.finishNode(Z,"TSQualifiedName")}return H}tsParseTypeReference(){const X=this.startNode();if(X.typeName=this.tsParseEntityName(),!this.hasPrecedingLineBreak()&&this.match(47))X.typeParameters=this.tsParseTypeArguments();return this.finishNode(X,"TSTypeReference")}tsParseThisTypePredicate(X){this.next();const H=this.startNodeAtNode(X);return H.parameterName=X,H.typeAnnotation=this.tsParseTypeAnnotation(!1),H.asserts=!1,this.finishNode(H,"TSTypePredicate")}tsParseThisTypeNode(){const X=this.startNode();return this.next(),this.finishNode(X,"TSThisType")}tsParseTypeQuery(){const X=this.startNode();if(this.expect(87),this.match(83))X.exprName=this.tsParseImportType();else X.exprName=this.tsParseEntityName();if(!this.hasPrecedingLineBreak()&&this.match(47))X.typeParameters=this.tsParseTypeArguments();return this.finishNode(X,"TSTypeQuery")}tsParseTypeParameter(X){const H=this.startNode();return X(H),H.name=this.tsParseTypeParameterName(),H.constraint=this.tsEatThenParseType(81),H.default=this.tsEatThenParseType(29),this.finishNode(H,"TSTypeParameter")}tsTryParseTypeParameters(X){if(this.match(47))return this.tsParseTypeParameters(X)}tsParseTypeParameters(X){const H=this.startNode();if(this.match(47)||this.match(142))this.next();else this.unexpected();const Z={value:-1};if(H.params=this.tsParseBracketedList("TypeParametersOrArguments",this.tsParseTypeParameter.bind(this,X),!1,!0,Z),H.params.length===0)this.raise(t.EmptyTypeParameters,H);if(Z.value!==-1)this.addExtra(H,"trailingComma",Z.value);return this.finishNode(H,"TSTypeParameterDeclaration")}tsFillSignature(X,H){const Z=X===19;if(H.typeParameters=this.tsTryParseTypeParameters(this.tsParseConstModifier),this.expect(10),H.parameters=this.tsParseBindingListForSignature(),Z)H.typeAnnotation=this.tsParseTypeOrTypePredicateAnnotation(X);else if(this.match(X))H.typeAnnotation=this.tsParseTypeOrTypePredicateAnnotation(X)}tsParseBindingListForSignature(){const X=super.parseBindingList(11,41,2);for(let H of X){const{type:Z}=H;if(Z==="AssignmentPattern"||Z==="TSParameterProperty")this.raise(t.UnsupportedSignatureParameterKind,H,{type:Z})}return X}tsParseTypeMemberSemicolon(){if(!this.eat(12)&&!this.isLineTerminator())this.expect(13)}tsParseSignatureMember(X,H){return this.tsFillSignature(14,H),this.tsParseTypeMemberSemicolon(),this.finishNode(H,X)}tsIsUnambiguouslyIndexSignature(){if(this.next(),N1(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);const H=this.parseIdentifier();H.typeAnnotation=this.tsParseTypeAnnotation(),this.resetEndLocation(H),this.expect(3),X.parameters=[H];const Z=this.tsTryParseTypeAnnotation();if(Z)X.typeAnnotation=Z;return this.tsParseTypeMemberSemicolon(),this.finishNode(X,"TSIndexSignature")}tsParsePropertyOrMethodSignature(X,H){if(this.eat(17))X.optional=!0;const Z=X;if(this.match(10)||this.match(47)){if(H)this.raise(t.ReadonlyForMethodSignature,X);const V=Z;if(V.kind&&this.match(47))this.raise(t.AccessorCannotHaveTypeParameters,this.state.curPosition());this.tsFillSignature(14,V),this.tsParseTypeMemberSemicolon();const Q="parameters",Y="typeAnnotation";if(V.kind==="get"){if(V[Q].length>0){if(this.raise(A.BadGetterArity,this.state.curPosition()),this.isThisParam(V[Q][0]))this.raise(t.AccessorCannotDeclareThisParameter,this.state.curPosition())}}else if(V.kind==="set"){if(V[Q].length!==1)this.raise(A.BadSetterArity,this.state.curPosition());else{const W=V[Q][0];if(this.isThisParam(W))this.raise(t.AccessorCannotDeclareThisParameter,this.state.curPosition());if(W.type==="Identifier"&&W.optional)this.raise(t.SetAccessorCannotHaveOptionalParameter,this.state.curPosition());if(W.type==="RestElement")this.raise(t.SetAccessorCannotHaveRestParameter,this.state.curPosition())}if(V[Y])this.raise(t.SetAccessorCannotHaveReturnType,V[Y])}else V.kind="method";return this.finishNode(V,"TSMethodSignature")}else{const V=Z;if(H)V.readonly=!0;const Q=this.tsTryParseTypeAnnotation();if(Q)V.typeAnnotation=Q;return this.tsParseTypeMemberSemicolon(),this.finishNode(V,"TSPropertySignature")}}tsParseTypeMember(){const X=this.startNode();if(this.match(10)||this.match(47))return this.tsParseSignatureMember("TSCallSignatureDeclaration",X);if(this.match(77)){const Z=this.startNode();if(this.next(),this.match(10)||this.match(47))return this.tsParseSignatureMember("TSConstructSignatureDeclaration",X);else return X.key=this.createIdentifier(Z,"new"),this.tsParsePropertyOrMethodSignature(X,!1)}this.tsParseModifiers({allowedModifiers:["readonly"],disallowedModifiers:["declare","abstract","private","protected","public","static","override"]},X);const H=this.tsTryParseIndexSignature(X);if(H)return H;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(){const X=this.startNode();return X.members=this.tsParseObjectTypeMembers(),this.finishNode(X,"TSTypeLiteral")}tsParseObjectTypeMembers(){this.expect(5);const 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(){const 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);{const H=this.startNode();H.name=this.tsParseTypeParameterName(),H.constraint=this.tsExpectThenParseType(58),X.typeParameter=this.finishNode(H,"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(){const X=this.startNode();X.elementTypes=this.tsParseBracketedList("TupleElementTypes",this.tsParseTupleElementType.bind(this),!0,!1);let H=!1;return X.elementTypes.forEach((Z)=>{const{type:V}=Z;if(H&&V!=="TSRestType"&&V!=="TSOptionalType"&&!(V==="TSNamedTupleMember"&&Z.optional))this.raise(t.OptionalTypeBeforeRequired,Z);H||(H=V==="TSNamedTupleMember"&&Z.optional||V==="TSOptionalType")}),this.finishNode(X,"TSTupleType")}tsParseTupleElementType(){const{startLoc:X}=this.state,H=this.eat(21);let Z,V,Q,Y;const z=x2(this.state.type)?this.lookaheadCharCode():null;if(z===58)Z=!0,Q=!1,V=this.parseIdentifier(!0),this.expect(14),Y=this.tsParseType();else if(z===63){Q=!0;const B=this.state.startLoc,q=this.state.value,F=this.tsParseNonArrayType();if(this.lookaheadCharCode()===58)Z=!0,V=this.createIdentifier(this.startNodeAt(B),q),this.expect(17),this.expect(14),Y=this.tsParseType();else Z=!1,Y=F,this.expect(17)}else Y=this.tsParseType(),Q=this.eat(17),Z=this.eat(14);if(Z){let B;if(V){if(B=this.startNodeAtNode(V),B.optional=Q,B.label=V,B.elementType=Y,this.eat(17))B.optional=!0,this.raise(t.TupleOptionalAfterType,this.state.lastTokStartLoc)}else B=this.startNodeAtNode(Y),B.optional=Q,this.raise(t.InvalidTupleMemberLabel,Y),B.label=Y,B.elementType=this.tsParseType();Y=this.finishNode(B,"TSNamedTupleMember")}else if(Q){const B=this.startNodeAtNode(Y);B.typeAnnotation=Y,Y=this.finishNode(B,"TSOptionalType")}if(H){const B=this.startNodeAt(X);B.typeAnnotation=Y,Y=this.finishNode(B,"TSRestType")}return Y}tsParseParenthesizedType(){const X=this.startNode();return this.expect(10),X.typeAnnotation=this.tsParseType(),this.expect(11),this.finishNode(X,"TSParenthesizedType")}tsParseFunctionOrConstructorType(X,H){const Z=this.startNode();if(X==="TSConstructorType"){if(Z.abstract=!!H,H)this.next();this.next()}return this.tsInAllowConditionalTypesContext(()=>this.tsFillSignature(19,Z)),this.finishNode(Z,X)}tsParseLiteralTypeNode(){const X=this.startNode();switch(this.state.type){case 134:case 135:case 133:case 85:case 86:X.literal=super.parseExprAtom();break;default:this.unexpected()}return this.finishNode(X,"TSLiteralType")}tsParseTemplateLiteralType(){const 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(){const X=this.tsParseThisTypeNode();if(this.isContextual(116)&&!this.hasPrecedingLineBreak())return this.tsParseThisTypePredicate(X);else return X}tsParseNonArrayType(){switch(this.state.type){case 133:case 134:case 135:case 85:case 86:return this.tsParseLiteralTypeNode();case 53:if(this.state.value==="-"){const X=this.startNode(),H=this.lookahead();if(H.type!==134&&H.type!==135)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:{const{type:X}=this.state;if(N1(X)||X===88||X===84){const H=X===88?"TSVoidKeyword":X===84?"TSNullKeyword":sz1(this.state.value);if(H!==void 0&&this.lookaheadCharCode()!==46){const Z=this.startNode();return this.next(),this.finishNode(Z,H)}return this.tsParseTypeReference()}}}this.unexpected()}tsParseArrayTypeOrHigher(){let X=this.tsParseNonArrayType();while(!this.hasPrecedingLineBreak()&&this.eat(0))if(this.match(3)){const H=this.startNodeAtNode(X);H.elementType=X,this.expect(3),X=this.finishNode(H,"TSArrayType")}else{const H=this.startNodeAtNode(X);H.objectType=X,H.indexType=this.tsParseType(),this.expect(3),X=this.finishNode(H,"TSIndexedAccessType")}return X}tsParseTypeOperator(){const X=this.startNode(),H=this.state.value;if(this.next(),X.operator=H,X.typeAnnotation=this.tsParseTypeOperatorOrHigher(),H==="readonly")this.tsCheckTypeAnnotationForReadOnly(X);return this.finishNode(X,"TSTypeOperator")}tsCheckTypeAnnotationForReadOnly(X){switch(X.typeAnnotation.type){case"TSTupleType":case"TSArrayType":return;default:this.raise(t.UnexpectedReadonly,X)}}tsParseInferType(){const X=this.startNode();this.expectContextual(115);const H=this.startNode();return H.name=this.tsParseTypeParameterName(),H.constraint=this.tsTryParse(()=>this.tsParseConstraintForInferType()),X.typeParameter=this.finishNode(H,"TSTypeParameter"),this.finishNode(X,"TSInferType")}tsParseConstraintForInferType(){if(this.eat(81)){const X=this.tsInDisallowConditionalTypesContext(()=>this.tsParseType());if(this.state.inDisallowConditionalTypesContext||!this.match(17))return X}}tsParseTypeOperatorOrHigher(){return Rz1(this.state.type)&&!this.state.containsEsc?this.tsParseTypeOperator():this.isContextual(115)?this.tsParseInferType():this.tsInAllowConditionalTypesContext(()=>this.tsParseArrayTypeOrHigher())}tsParseUnionOrIntersectionType(X,H,Z){const V=this.startNode(),Q=this.eat(Z),Y=[];do Y.push(H());while(this.eat(Z));if(Y.length===1&&!Q)return Y[0];return V.types=Y,this.finishNode(V,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(N1(this.state.type)||this.match(78))return this.next(),!0;if(this.match(5)){const{errors:X}=this.state,H=X.length;try{return this.parseObjectLike(8,!0),X.length===H}catch(Z){return!1}}if(this.match(0)){this.next();const{errors:X}=this.state,H=X.length;try{return super.parseBindingList(3,93,1),X.length===H}catch(Z){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(()=>{const H=this.startNode();this.expect(X);const Z=this.startNode(),V=!!this.tsTryParse(this.tsParseTypePredicateAsserts.bind(this));if(V&&this.match(78)){let W=this.tsParseThisTypeOrThisTypePredicate();if(W.type==="TSThisType")Z.parameterName=W,Z.asserts=!0,Z.typeAnnotation=null,W=this.finishNode(Z,"TSTypePredicate");else this.resetStartLocationFromNode(W,Z),W.asserts=!0;return H.typeAnnotation=W,this.finishNode(H,"TSTypeAnnotation")}const Q=this.tsIsIdentifier()&&this.tsTryParse(this.tsParseTypePredicatePrefix.bind(this));if(!Q){if(!V)return this.tsParseTypeAnnotation(!1,H);return Z.parameterName=this.parseIdentifier(),Z.asserts=V,Z.typeAnnotation=null,H.typeAnnotation=this.finishNode(Z,"TSTypePredicate"),this.finishNode(H,"TSTypeAnnotation")}const Y=this.tsParseTypeAnnotation(!1);return Z.parameterName=Q,Z.typeAnnotation=Y,Z.asserts=V,H.typeAnnotation=this.finishNode(Z,"TSTypePredicate"),this.finishNode(H,"TSTypeAnnotation")})}tsTryParseTypeOrTypePredicateAnnotation(){if(this.match(14))return this.tsParseTypeOrTypePredicateAnnotation(14)}tsTryParseTypeAnnotation(){if(this.match(14))return this.tsParseTypeAnnotation()}tsTryParseType(){return this.tsEatThenParseType(14)}tsParseTypePredicatePrefix(){const X=this.parseIdentifier();if(this.isContextual(116)&&!this.hasPrecedingLineBreak())return this.next(),X}tsParseTypePredicateAsserts(){if(this.state.type!==109)return!1;const X=this.state.containsEsc;if(this.next(),!N1(this.state.type)&&!this.match(78))return!1;if(X)this.raise(A.InvalidEscapedReservedWord,this.state.lastTokStartLoc,{reservedWord:"asserts"});return!0}tsParseTypeAnnotation(X=!0,H=this.startNode()){return this.tsInType(()=>{if(X)this.expect(14);H.typeAnnotation=this.tsParseType()}),this.finishNode(H,"TSTypeAnnotation")}tsParseType(){nU(this.state.inType);const X=this.tsParseNonConditionalType();if(this.state.inDisallowConditionalTypesContext||this.hasPrecedingLineBreak()||!this.eat(81))return X;const H=this.startNodeAtNode(X);return H.checkType=X,H.extendsType=this.tsInDisallowConditionalTypesContext(()=>this.tsParseNonConditionalType()),this.expect(17),H.trueType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.expect(14),H.falseType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.finishNode(H,"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(t.ReservedTypeAssertion,this.state.startLoc);const 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){const H=this.state.startLoc,Z=this.tsParseDelimitedList("HeritageClauseElement",()=>{const V=this.startNode();if(V.expression=this.tsParseEntityName(),this.match(47))V.typeParameters=this.tsParseTypeArguments();return this.finishNode(V,"TSExpressionWithTypeArguments")});if(!Z.length)this.raise(t.EmptyHeritageClauseType,H,{token:X});return Z}tsParseInterfaceDeclaration(X,H={}){if(this.hasFollowingLineBreak())return null;if(this.expectContextual(129),H.declare)X.declare=!0;if(N1(this.state.type))X.id=this.parseIdentifier(),this.checkIdentifier(X.id,130);else X.id=null,this.raise(t.MissingInterfaceName,this.state.startLoc);if(X.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers),this.eat(81))X.extends=this.tsParseHeritageClause("extends");const Z=this.startNode();return Z.body=this.tsInType(this.tsParseObjectTypeMembers.bind(this)),X.body=this.finishNode(Z,"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){const H=this.startNode();return this.next(),this.finishNode(H,"TSIntrinsicKeyword")}return this.tsParseType()}),this.semicolon(),this.finishNode(X,"TSTypeAliasDeclaration")}tsInNoContext(X){const H=this.state.context;this.state.context=[H[0]];try{return X()}finally{this.state.context=H}}tsInType(X){const H=this.state.inType;this.state.inType=!0;try{return X()}finally{this.state.inType=H}}tsInDisallowConditionalTypesContext(X){const H=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!0;try{return X()}finally{this.state.inDisallowConditionalTypesContext=H}}tsInAllowConditionalTypesContext(X){const H=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!1;try{return X()}finally{this.state.inDisallowConditionalTypesContext=H}}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(){const X=this.startNode();if(X.id=this.match(133)?super.parseStringLiteral(this.state.value):this.parseIdentifier(!0),this.eat(29))X.initializer=super.parseMaybeAssignAllowIn();return this.finishNode(X,"TSEnumMember")}tsParseEnumDeclaration(X,H={}){if(H.const)X.const=!0;if(H.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")}tsParseModuleBlock(){const 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,H=!1){if(X.id=this.parseIdentifier(),!H)this.checkIdentifier(X.id,1024);if(this.eat(16)){const Z=this.startNode();this.tsParseModuleOrNamespaceDeclaration(Z,!0),X.body=Z}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.global=!0,X.id=this.parseIdentifier();else if(this.match(133))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,H,Z){X.isExport=Z||!1,X.id=H||this.parseIdentifier(),this.checkIdentifier(X.id,4096),this.expect(29);const V=this.tsParseModuleReference();if(X.importKind==="type"&&V.type!=="TSExternalModuleReference")this.raise(t.ImportAliasHasImportType,V);return X.moduleReference=V,this.semicolon(),this.finishNode(X,"TSImportEqualsDeclaration")}tsIsExternalModuleReference(){return this.isContextual(119)&&this.lookaheadCharCode()===40}tsParseModuleReference(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(!1)}tsParseExternalModuleReference(){const X=this.startNode();if(this.expectContextual(119),this.expect(10),!this.match(133))this.unexpected();return X.expression=super.parseExprAtom(),this.expect(11),this.sawUnambiguousESM=!0,this.finishNode(X,"TSExternalModuleReference")}tsLookAhead(X){const H=this.state.clone(),Z=X();return this.state=H,Z}tsTryParseAndCatch(X){const H=this.tryParse((Z)=>X()||Z());if(H.aborted||!H.node)return;if(H.error)this.state=H.failState;return H.node}tsTryParse(X){const H=this.state.clone(),Z=X();if(Z!==void 0&&Z!==!1)return Z;this.state=H}tsTryParseDeclare(X){if(this.isLineTerminator())return;let H=this.state.type,Z;if(this.isContextual(100))H=74,Z="let";return this.tsInAmbientContext(()=>{switch(H){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,Z||this.state.value,!0);return this.expect(75),this.tsParseEnumDeclaration(X,{const:!0,declare:!0});case 129:{const V=this.tsParseInterfaceDeclaration(X,{declare:!0});if(V)return V}default:if(N1(H))return this.tsParseDeclaration(X,this.state.value,!0,null)}})}tsTryParseExportDeclaration(){return this.tsParseDeclaration(this.startNode(),this.state.value,!0,null)}tsParseExpressionStatement(X,H,Z){switch(H.name){case"declare":{const V=this.tsTryParseDeclare(X);if(V)V.declare=!0;return V}case"global":if(this.match(5)){this.scope.enter(256),this.prodParam.enter(0);const V=X;return V.global=!0,V.id=H,V.body=this.tsParseModuleBlock(),this.scope.exit(),this.prodParam.exit(),this.finishNode(V,"TSModuleDeclaration")}break;default:return this.tsParseDeclaration(X,H.name,!1,Z)}}tsParseDeclaration(X,H,Z,V){switch(H){case"abstract":if(this.tsCheckLineTerminator(Z)&&(this.match(80)||N1(this.state.type)))return this.tsParseAbstractDeclaration(X,V);break;case"module":if(this.tsCheckLineTerminator(Z)){if(this.match(133))return this.tsParseAmbientExternalModuleDeclaration(X);else if(N1(this.state.type))return this.tsParseModuleOrNamespaceDeclaration(X)}break;case"namespace":if(this.tsCheckLineTerminator(Z)&&N1(this.state.type))return this.tsParseModuleOrNamespaceDeclaration(X);break;case"type":if(this.tsCheckLineTerminator(Z)&&N1(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;const H=this.state.maybeInArrowParameters;this.state.maybeInArrowParameters=!0;const Z=this.tsTryParseAndCatch(()=>{const V=this.startNodeAt(X);return V.typeParameters=this.tsParseTypeParameters(this.tsParseConstModifier),super.parseFunctionParams(V),V.returnType=this.tsTryParseTypeOrTypePredicateAnnotation(),this.expect(19),V});if(this.state.maybeInArrowParameters=H,!Z)return;return super.parseArrowExpression(Z,null,!0)}tsParseTypeArgumentsInExpression(){if(this.reScan_lt()!==47)return;return this.tsParseTypeArguments()}tsParseTypeArguments(){const X=this.startNode();if(X.params=this.tsInType(()=>this.tsInNoContext(()=>{return this.expect(47),this.tsParseDelimitedList("TypeParametersOrArguments",this.tsParseType.bind(this))})),X.params.length===0)this.raise(t.EmptyTypeArguments,X);else if(!this.state.inType&&this.curContext()===v1.brace)this.reScan_lt_gt();return this.expect(48),this.finishNode(X,"TSTypeParameterInstantiation")}tsIsDeclarationStart(){return Mz1(this.state.type)}isExportDefaultSpecifier(){if(this.tsIsDeclarationStart())return!1;return super.isExportDefaultSpecifier()}parseAssignableListItem(X,H){const Z=this.state.startLoc,V={};this.tsParseModifiers({allowedModifiers:["public","private","protected","override","readonly"]},V);const{accessibility:Q,override:Y,readonly:W}=V;if(!(X&4)&&(Q||W||Y))this.raise(t.UnexpectedParameterModifier,Z);const z=this.parseMaybeDefault();if(X&2)this.parseFunctionParamType(z);const B=this.parseMaybeDefault(z.loc.start,z);if(Q||W||Y){const q=this.startNodeAt(Z);if(H.length)q.decorators=H;if(Q)q.accessibility=Q;if(W)q.readonly=W;if(Y)q.override=Y;if(B.type!=="Identifier"&&B.type!=="AssignmentPattern")this.raise(t.UnsupportedParameterPropertyKind,q);return q.parameter=B,this.finishNode(q,"TSParameterProperty")}if(H.length)z.decorators=H;return B}isSimpleParameter(X){return X.type==="TSParameterProperty"&&super.isSimpleParameter(X.parameter)||super.isSimpleParameter(X)}tsDisallowOptionalPattern(X){for(let H of X.params)if(H.type!=="Identifier"&&H.optional&&!this.state.isAmbientContext)this.raise(t.PatternIsOptional,H)}setArrowFunctionParameters(X,H,Z){super.setArrowFunctionParameters(X,H,Z),this.tsDisallowOptionalPattern(X)}parseFunctionBodyAndFinish(X,H,Z=!1){if(this.match(14))X.returnType=this.tsParseTypeOrTypePredicateAnnotation(14);const V=H==="FunctionDeclaration"?"TSDeclareFunction":H==="ClassMethod"||H==="ClassPrivateMethod"?"TSDeclareMethod":void 0;if(V&&!this.match(5)&&this.isLineTerminator())return this.finishNode(X,V);if(V==="TSDeclareFunction"&&this.state.isAmbientContext){if(this.raise(t.DeclareFunctionHasImplementation,X),X.declare)return super.parseFunctionBodyAndFinish(X,V,Z)}return this.tsDisallowOptionalPattern(X),super.parseFunctionBodyAndFinish(X,H,Z)}registerFunctionStatementId(X){if(!X.body&&X.id)this.checkIdentifier(X.id,1024);else super.registerFunctionStatementId(X)}tsCheckForInvalidTypeCasts(X){X.forEach((H)=>{if((H==null?void 0:H.type)==="TSTypeCastExpression")this.raise(t.UnexpectedTypeAnnotation,H.typeAnnotation)})}toReferencedList(X,H){return this.tsCheckForInvalidTypeCasts(X),X}parseArrayLike(X,H,Z,V){const Q=super.parseArrayLike(X,H,Z,V);if(Q.type==="ArrayExpression")this.tsCheckForInvalidTypeCasts(Q.elements);return Q}parseSubscript(X,H,Z,V){if(!this.hasPrecedingLineBreak()&&this.match(35)){this.state.canStartJSXElement=!1,this.next();const Y=this.startNodeAt(H);return Y.expression=X,this.finishNode(Y,"TSNonNullExpression")}let Q=!1;if(this.match(18)&&this.lookaheadCharCode()===60){if(Z)return V.stop=!0,X;V.optionalChainMember=Q=!0,this.next()}if(this.match(47)||this.match(51)){let Y;const W=this.tsTryParseAndCatch(()=>{if(!Z&&this.atPossibleAsyncArrow(X)){const F=this.tsTryParseGenericAsyncArrowFunction(H);if(F)return F}const z=this.tsParseTypeArgumentsInExpression();if(!z)return;if(Q&&!this.match(10)){Y=this.state.curPosition();return}if(yG(this.state.type)){const F=super.parseTaggedTemplateExpression(X,H,V);return F.typeParameters=z,F}if(!Z&&this.eat(10)){const F=this.startNodeAt(H);if(F.callee=X,F.arguments=this.parseCallExpressionArguments(11,!1),this.tsCheckForInvalidTypeCasts(F.arguments),F.typeParameters=z,V.optionalChainMember)F.optional=Q;return this.finishCallExpression(F,V.optionalChainMember)}const B=this.state.type;if(B===48||B===52||B!==10&&N7(B)&&!this.hasPrecedingLineBreak())return;const q=this.startNodeAt(H);return q.expression=X,q.typeParameters=z,this.finishNode(q,"TSInstantiationExpression")});if(Y)this.unexpected(Y,10);if(W){if(W.type==="TSInstantiationExpression"&&(this.match(16)||this.match(18)&&this.lookaheadCharCode()!==40))this.raise(t.InvalidPropertyAccessAfterInstantiationExpression,this.state.startLoc);return W}}return super.parseSubscript(X,H,Z,V)}parseNewCallee(X){var H;super.parseNewCallee(X);const{callee:Z}=X;if(Z.type==="TSInstantiationExpression"&&!((H=Z.extra)!=null&&H.parenthesized))X.typeParameters=Z.typeParameters,X.callee=Z.expression}parseExprOp(X,H,Z){let V;if(bG(58)>Z&&!this.hasPrecedingLineBreak()&&(this.isContextual(93)||(V=this.isContextual(120)))){const Q=this.startNodeAt(H);return Q.expression=X,Q.typeAnnotation=this.tsInType(()=>{if(this.next(),this.match(75)){if(V)this.raise(A.UnexpectedKeyword,this.state.startLoc,{keyword:"const"});return this.tsParseTypeReference()}return this.tsParseType()}),this.finishNode(Q,V?"TSSatisfiesExpression":"TSAsExpression"),this.reScan_lt_gt(),this.parseExprOp(Q,H,Z)}return super.parseExprOp(X,H,Z)}checkReservedWord(X,H,Z,V){if(!this.state.isAmbientContext)super.checkReservedWord(X,H,Z,V)}checkImportReflection(X){if(super.checkImportReflection(X),X.module&&X.importKind!=="value")this.raise(t.ImportReflectionHasImportType,X.specifiers[0].loc.start)}checkDuplicateExports(){}isPotentialImportPhase(X){if(super.isPotentialImportPhase(X))return!0;if(this.isContextual(130)){const H=this.lookaheadCharCode();return X?H===123||H===42:H!==61}return!X&&this.isContextual(87)}applyImportPhase(X,H,Z,V){if(super.applyImportPhase(X,H,Z,V),H)X.exportKind=Z==="type"?"type":"value";else X.importKind=Z==="type"||Z==="typeof"?Z:"value"}parseImport(X){if(this.match(133))return X.importKind="value",super.parseImport(X);let H;if(N1(this.state.type)&&this.lookaheadCharCode()===61)return X.importKind="value",this.tsParseImportEqualsDeclaration(X);else if(this.isContextual(130)){const Z=this.parseMaybeImportPhase(X,!1);if(this.lookaheadCharCode()===61)return this.tsParseImportEqualsDeclaration(X,Z);else H=super.parseImportSpecifiersAndAfter(X,Z)}else H=super.parseImport(X);if(H.importKind==="type"&&H.specifiers.length>1&&H.specifiers[0].type==="ImportDefaultSpecifier")this.raise(t.TypeImportCannotSpecifyDefaultAndNamed,H);return H}parseExport(X,H){if(this.match(83)){this.next();const Z=X;let V=null;if(this.isContextual(130)&&this.isPotentialImportPhase(!1))V=this.parseMaybeImportPhase(Z,!1);else Z.importKind="value";return this.tsParseImportEqualsDeclaration(Z,V,!0)}else if(this.eat(29)){const Z=X;return Z.expression=super.parseExpression(),this.semicolon(),this.sawUnambiguousESM=!0,this.finishNode(Z,"TSExportAssignment")}else if(this.eatContextual(93)){const Z=X;return this.expectContextual(128),Z.id=this.parseIdentifier(),this.semicolon(),this.finishNode(Z,"TSNamespaceExportDeclaration")}else return super.parseExport(X,H)}isAbstractClass(){return this.isContextual(124)&&this.lookahead().type===80}parseExportDefaultExpression(){if(this.isAbstractClass()){const X=this.startNode();return this.next(),X.abstract=!0,this.parseClass(X,!0,!0)}if(this.match(129)){const X=this.tsParseInterfaceDeclaration(this.startNode());if(X)return X}return super.parseExportDefaultExpression()}parseVarStatement(X,H,Z=!1){const{isAmbientContext:V}=this.state,Q=super.parseVarStatement(X,H,Z||V);if(!V)return Q;for(let{id:Y,init:W}of Q.declarations){if(!W)continue;if(H!=="const"||!!Y.typeAnnotation)this.raise(t.InitializerNotAllowedInAmbientContext,W);else if(!ez1(W,this.hasPlugin("estree")))this.raise(t.ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference,W)}return Q}parseStatementContent(X,H){if(this.match(75)&&this.isLookaheadContextual("enum")){const Z=this.startNode();return this.expect(75),this.tsParseEnumDeclaration(Z,{const:!0})}if(this.isContextual(126))return this.tsParseEnumDeclaration(this.startNode());if(this.isContextual(129)){const Z=this.tsParseInterfaceDeclaration(this.startNode());if(Z)return Z}return super.parseStatementContent(X,H)}parseAccessModifier(){return this.tsParseModifier(["public","protected","private"])}tsHasSomeModifiers(X,H){return H.some((Z)=>{if(oU(Z))return X.accessibility===Z;return!!X[Z]})}tsIsStartOfStaticBlocks(){return this.isContextual(106)&&this.lookaheadCharCode()===123}parseClassMember(X,H,Z){const V=["declare","private","public","protected","override","abstract","readonly","static"];this.tsParseModifiers({allowedModifiers:V,disallowedModifiers:["in","out"],stopOnStartOfClassStaticBlock:!0,errorTemplate:t.InvalidModifierOnTypeParameterPositions},H);const Q=()=>{if(this.tsIsStartOfStaticBlocks()){if(this.next(),this.next(),this.tsHasSomeModifiers(H,V))this.raise(t.StaticBlockCannotHaveModifier,this.state.curPosition());super.parseClassStaticBlock(X,H)}else this.parseClassMemberWithIsStatic(X,H,Z,!!H.static)};if(H.declare)this.tsInAmbientContext(Q);else Q()}parseClassMemberWithIsStatic(X,H,Z,V){const Q=this.tsTryParseIndexSignature(H);if(Q){if(X.body.push(Q),H.abstract)this.raise(t.IndexSignatureHasAbstract,H);if(H.accessibility)this.raise(t.IndexSignatureHasAccessibility,H,{modifier:H.accessibility});if(H.declare)this.raise(t.IndexSignatureHasDeclare,H);if(H.override)this.raise(t.IndexSignatureHasOverride,H);return}if(!this.state.inAbstractClass&&H.abstract)this.raise(t.NonAbstractClassHasAbstractMethod,H);if(H.override){if(!Z.hadSuperClass)this.raise(t.OverrideNotInSubClass,H)}super.parseClassMemberWithIsStatic(X,H,Z,V)}parsePostMemberNameModifiers(X){if(this.eat(17))X.optional=!0;if(X.readonly&&this.match(10))this.raise(t.ClassMethodHasReadonly,X);if(X.declare&&this.match(10))this.raise(t.ClassMethodHasDeclare,X)}parseExpressionStatement(X,H,Z){return(H.type==="Identifier"?this.tsParseExpressionStatement(X,H,Z):void 0)||super.parseExpressionStatement(X,H,Z)}shouldParseExportDeclaration(){if(this.tsIsDeclarationStart())return!0;return super.shouldParseExportDeclaration()}parseConditional(X,H,Z){if(!this.state.maybeInArrowParameters||!this.match(17))return super.parseConditional(X,H,Z);const V=this.tryParse(()=>super.parseConditional(X,H));if(!V.node){if(V.error)super.setOptionalParametersError(Z,V.error);return X}if(V.error)this.state=V.failState;return V.node}parseParenItem(X,H){const Z=super.parseParenItem(X,H);if(this.eat(17))Z.optional=!0,this.resetEndLocation(X);if(this.match(14)){const V=this.startNodeAt(H);return V.expression=X,V.typeAnnotation=this.tsParseTypeAnnotation(),this.finishNode(V,"TSTypeCastExpression")}return X}parseExportDeclaration(X){if(!this.state.isAmbientContext&&this.isContextual(125))return this.tsInAmbientContext(()=>this.parseExportDeclaration(X));const H=this.state.startLoc,Z=this.eatContextual(125);if(Z&&(this.isContextual(125)||!this.shouldParseExportDeclaration()))throw this.raise(t.ExpectedAmbientAfterExportDeclare,this.state.startLoc);const Q=N1(this.state.type)&&this.tsTryParseExportDeclaration()||super.parseExportDeclaration(X);if(!Q)return null;if(Q.type==="TSInterfaceDeclaration"||Q.type==="TSTypeAliasDeclaration"||Z)X.exportKind="type";if(Z)this.resetStartLocation(Q,H),Q.declare=!0;return Q}parseClassId(X,H,Z,V){if((!H||Z)&&this.isContextual(113))return;super.parseClassId(X,H,Z,X.declare?1024:8331);const Q=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers);if(Q)X.typeParameters=Q}parseClassPropertyAnnotation(X){if(!X.optional){if(this.eat(35))X.definite=!0;else if(this.eat(17))X.optional=!0}const H=this.tsTryParseTypeAnnotation();if(H)X.typeAnnotation=H}parseClassProperty(X){if(this.parseClassPropertyAnnotation(X),this.state.isAmbientContext&&!(X.readonly&&!X.typeAnnotation)&&this.match(29))this.raise(t.DeclareClassFieldHasInitializer,this.state.startLoc);if(X.abstract&&this.match(29)){const{key:H}=X;this.raise(t.AbstractPropertyHasInitializer,this.state.startLoc,{propertyName:H.type==="Identifier"&&!X.computed?H.name:`[${this.input.slice(H.start,H.end)}]`})}return super.parseClassProperty(X)}parseClassPrivateProperty(X){if(X.abstract)this.raise(t.PrivateElementHasAbstract,X);if(X.accessibility)this.raise(t.PrivateElementHasAccessibility,X,{modifier:X.accessibility});return this.parseClassPropertyAnnotation(X),super.parseClassPrivateProperty(X)}parseClassAccessorProperty(X){if(this.parseClassPropertyAnnotation(X),X.optional)this.raise(t.AccessorCannotBeOptional,X);return super.parseClassAccessorProperty(X)}pushClassMethod(X,H,Z,V,Q,Y){const W=this.tsTryParseTypeParameters(this.tsParseConstModifier);if(W&&Q)this.raise(t.ConstructorHasTypeParameters,W);const{declare:z=!1,kind:B}=H;if(z&&(B==="get"||B==="set"))this.raise(t.DeclareAccessor,H,{kind:B});if(W)H.typeParameters=W;super.pushClassMethod(X,H,Z,V,Q,Y)}pushClassPrivateMethod(X,H,Z,V){const Q=this.tsTryParseTypeParameters(this.tsParseConstModifier);if(Q)H.typeParameters=Q;super.pushClassPrivateMethod(X,H,Z,V)}declareClassPrivateMethodInScope(X,H){if(X.type==="TSDeclareMethod")return;if(X.type==="MethodDefinition"&&!hasOwnProperty.call(X.value,"body"))return;super.declareClassPrivateMethodInScope(X,H)}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,H,Z,V,Q,Y,W){const z=this.tsTryParseTypeParameters(this.tsParseConstModifier);if(z)X.typeParameters=z;return super.parseObjPropValue(X,H,Z,V,Q,Y,W)}parseFunctionParams(X,H){const Z=this.tsTryParseTypeParameters(this.tsParseConstModifier);if(Z)X.typeParameters=Z;super.parseFunctionParams(X,H)}parseVarId(X,H){if(super.parseVarId(X,H),X.id.type==="Identifier"&&!this.hasPrecedingLineBreak()&&this.eat(35))X.definite=!0;const Z=this.tsTryParseTypeAnnotation();if(Z)X.id.typeAnnotation=Z,this.resetEndLocation(X.id)}parseAsyncArrowFromCallExpression(X,H){if(this.match(14))X.returnType=this.tsParseTypeAnnotation();return super.parseAsyncArrowFromCallExpression(X,H)}parseMaybeAssign(X,H){var Z,V,Q,Y,W;let z,B,q;if(this.hasPlugin("jsx")&&(this.match(142)||this.match(47))){if(z=this.state.clone(),B=this.tryParse(()=>super.parseMaybeAssign(X,H),z),!B.error)return B.node;const{context:f}=this.state,h=f[f.length-1];if(h===v1.j_oTag||h===v1.j_expr)f.pop()}if(!((Z=B)!=null&&Z.error)&&!this.match(47))return super.parseMaybeAssign(X,H);if(!z||z===this.state)z=this.state.clone();let F;const j=this.tryParse((f)=>{var h,w;F=this.tsParseTypeParameters(this.tsParseConstModifier);const v=super.parseMaybeAssign(X,H);if(v.type!=="ArrowFunctionExpression"||(h=v.extra)!=null&&h.parenthesized)f();if(((w=F)==null?void 0:w.params.length)!==0)this.resetStartLocationFromNode(v,F);return v.typeParameters=F,v},z);if(!j.error&&!j.aborted){if(F)this.reportReservedArrowTypeParam(F);return j.node}if(!B){if(nU(!this.hasPlugin("jsx")),q=this.tryParse(()=>super.parseMaybeAssign(X,H),z),!q.error)return q.node}if((V=B)!=null&&V.node)return this.state=B.failState,B.node;if(j.node){if(this.state=j.failState,F)this.reportReservedArrowTypeParam(F);return j.node}if((Q=q)!=null&&Q.node)return this.state=q.failState,q.node;throw((Y=B)==null?void 0:Y.error)||j.error||((W=q)==null?void 0:W.error)}reportReservedArrowTypeParam(X){var H;if(X.params.length===1&&!X.params[0].constraint&&!((H=X.extra)!=null&&H.trailingComma)&&this.getPluginOption("typescript","disallowAmbiguousJSXLike"))this.raise(t.ReservedArrowTypeParam,X)}parseMaybeUnary(X,H){if(!this.hasPlugin("jsx")&&this.match(47))return this.tsParseTypeAssertion();return super.parseMaybeUnary(X,H)}parseArrow(X){if(this.match(14)){const H=this.tryParse((Z)=>{const V=this.tsParseTypeOrTypePredicateAnnotation(14);if(this.canInsertSemicolon()||!this.match(19))Z();return V});if(H.aborted)return;if(!H.thrown){if(H.error)this.state=H.failState;X.returnType=H.node}}return super.parseArrow(X)}parseFunctionParamType(X){if(this.eat(17))X.optional=!0;const H=this.tsTryParseTypeAnnotation();if(H)X.typeAnnotation=H;return this.resetEndLocation(X),X}isAssignable(X,H){switch(X.type){case"TSTypeCastExpression":return this.isAssignable(X.expression,H);case"TSParameterProperty":return!0;default:return super.isAssignable(X,H)}}toAssignable(X,H=!1){switch(X.type){case"ParenthesizedExpression":this.toAssignableParenthesizedExpression(X,H);break;case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":if(H)this.expressionScope.recordArrowParameterBindingError(t.UnexpectedTypeCastInParameter,X);else this.raise(t.UnexpectedTypeCastInParameter,X);this.toAssignable(X.expression,H);break;case"AssignmentExpression":if(!H&&X.left.type==="TSTypeCastExpression")X.left=this.typeCastToParameter(X.left);default:super.toAssignable(X,H)}}toAssignableParenthesizedExpression(X,H){switch(X.expression.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":case"ParenthesizedExpression":this.toAssignable(X.expression,H);break;default:super.toAssignable(X,H)}}checkToRestConversion(X,H){switch(X.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":this.checkToRestConversion(X.expression,!1);break;default:super.checkToRestConversion(X,H)}}isValidLVal(X,H,Z){switch(X){case"TSTypeCastExpression":return!0;case"TSParameterProperty":return"parameter";case"TSNonNullExpression":case"TSInstantiationExpression":return"expression";case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":return(Z!==64||!H)&&["expression",!0];default:return super.isValidLVal(X,H,Z)}}parseBindingAtom(){if(this.state.type===78)return this.parseIdentifier(!0);return super.parseBindingAtom()}parseMaybeDecoratorArguments(X){if(this.match(47)||this.match(51)){const H=this.tsParseTypeArgumentsInExpression();if(this.match(10)){const Z=super.parseMaybeDecoratorArguments(X);return Z.typeParameters=H,Z}this.unexpected(null,10)}return super.parseMaybeDecoratorArguments(X)}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,H){const Z=super.parseMaybeDefault(X,H);if(Z.type==="AssignmentPattern"&&Z.typeAnnotation&&Z.right.start<Z.typeAnnotation.start)this.raise(t.TypeAnnotationAfterAssign,Z.typeAnnotation);return Z}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(){const{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(){const{type:X}=this.state;if(X===51)return this.state.pos-=2,this.finishOp(47,1),47;return X}toAssignableList(X,H,Z){for(let V=0;V<X.length;V++){const Q=X[V];if((Q==null?void 0:Q.type)==="TSTypeCastExpression")X[V]=this.typeCastToParameter(Q)}super.toAssignableList(X,H,Z)}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((H)=>this.isAssignable(H,!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)){const H=this.tsTryParseAndCatch(()=>this.tsParseTypeArgumentsInExpression());if(H)X.typeParameters=H}return super.jsxParseOpeningElementAfterName(X)}getGetterSetterExpectedParamCount(X){const H=super.getGetterSetterExpectedParamCount(X),V=this.getObjectOrClassMethodParams(X)[0];return V&&this.isThisParam(V)?H+1:H}parseCatchClauseParam(){const X=super.parseCatchClauseParam(),H=this.tsTryParseTypeAnnotation();if(H)X.typeAnnotation=H,this.resetEndLocation(X);return X}tsInAmbientContext(X){const{isAmbientContext:H,strict:Z}=this.state;this.state.isAmbientContext=!0,this.state.strict=!1;try{return X()}finally{this.state.isAmbientContext=H,this.state.strict=Z}}parseClass(X,H,Z){const V=this.state.inAbstractClass;this.state.inAbstractClass=!!X.abstract;try{return super.parseClass(X,H,Z)}finally{this.state.inAbstractClass=V}}tsParseAbstractDeclaration(X,H){if(this.match(80))return X.abstract=!0,this.maybeTakeDecorators(H,this.parseClass(X,!0,!1));else if(this.isContextual(129)){if(!this.hasFollowingLineBreak())return X.abstract=!0,this.raise(t.NonClassMethodPropertyHasAbstractModifer,X),this.tsParseInterfaceDeclaration(X)}else this.unexpected(null,80)}parseMethod(X,H,Z,V,Q,Y,W){const z=super.parseMethod(X,H,Z,V,Q,Y,W);if(z.abstract){if(this.hasPlugin("estree")?!!z.value.body:!!z.body){const{key:q}=z;this.raise(t.AbstractMethodHasImplementation,z,{methodName:q.type==="Identifier"&&!z.computed?q.name:`[${this.input.slice(q.start,q.end)}]`})}}return z}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,H,Z,V){if(!H&&V)return this.parseTypeOnlyImportExportSpecifier(X,!1,Z),this.finishNode(X,"ExportSpecifier");return X.exportKind="value",super.parseExportSpecifier(X,H,Z,V)}parseImportSpecifier(X,H,Z,V,Q){if(!H&&V)return this.parseTypeOnlyImportExportSpecifier(X,!0,Z),this.finishNode(X,"ImportSpecifier");return X.importKind="value",super.parseImportSpecifier(X,H,Z,V,Z?4098:4096)}parseTypeOnlyImportExportSpecifier(X,H,Z){const V=H?"imported":"local",Q=H?"local":"exported";let Y=X[V],W,z=!1,B=!0;const q=Y.loc.start;if(this.isContextual(93)){const j=this.parseIdentifier();if(this.isContextual(93)){const f=this.parseIdentifier();if(x2(this.state.type))z=!0,Y=j,W=H?this.parseIdentifier():this.parseModuleExportName(),B=!1;else W=f,B=!1}else if(x2(this.state.type))B=!1,W=H?this.parseIdentifier():this.parseModuleExportName();else z=!0,Y=j}else if(x2(this.state.type))if(z=!0,H){if(Y=this.parseIdentifier(!0),!this.isContextual(93))this.checkReservedWord(Y.name,Y.loc.start,!0,!0)}else Y=this.parseModuleExportName();if(z&&Z)this.raise(H?t.TypeModifierIsUsedInTypeImports:t.TypeModifierIsUsedInTypeExports,q);X[V]=Y,X[Q]=W;const F=H?"importKind":"exportKind";if(X[F]=z?"type":"value",B&&this.eatContextual(93))X[Q]=H?this.parseIdentifier():this.parseModuleExportName();if(!X[Q])X[Q]=q0(X[V]);if(H)this.checkIdentifier(X[Q],z?4098:4096)}},eU=R0`placeholders`({ClassNameIsRequired:"A class name is required.",UnexpectedSpace:"Unexpected space in placeholder."}),GU1=(G)=>class J extends G{parsePlaceholder(X){if(this.match(144)){const H=this.startNode();return this.next(),this.assertNoSpace(),H.name=super.parseIdentifier(!0),this.assertNoSpace(),this.expect(144),this.finishPlaceholder(H,X)}}finishPlaceholder(X,H){let Z=X;if(!Z.expectedNode||!Z.type)Z=this.finishNode(Z,"Placeholder");return Z.expectedNode=H,Z}getTokenFromCode(X){if(X===37&&this.input.charCodeAt(this.state.pos+1)===37)this.finishOp(144,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,H,Z,V){if(X!==void 0)super.checkReservedWord(X,H,Z,V)}parseBindingAtom(){return this.parsePlaceholder("Pattern")||super.parseBindingAtom()}isValidLVal(X,H,Z){return X==="Placeholder"||super.isValidLVal(X,H,Z)}toAssignable(X,H){if(X&&X.type==="Placeholder"&&X.expectedNode==="Expression")X.expectedNode="Pattern";else super.toAssignable(X,H)}chStartsBindingIdentifier(X,H){if(super.chStartsBindingIdentifier(X,H))return!0;if(this.lookahead().type===144)return!0;return!1}verifyBreakContinue(X,H){if(X.label&&X.label.type==="Placeholder")return;super.verifyBreakContinue(X,H)}parseExpressionStatement(X,H){var Z;if(H.type!=="Placeholder"||(Z=H.extra)!=null&&Z.parenthesized)return super.parseExpressionStatement(X,H);if(this.match(14)){const Q=X;return Q.label=this.finishPlaceholder(H,"Identifier"),this.next(),Q.body=super.parseStatementOrSloppyAnnexBFunctionDeclaration(),this.finishNode(Q,"LabeledStatement")}this.semicolon();const V=X;return V.name=H.name,this.finishPlaceholder(V,"Statement")}parseBlock(X,H,Z){return this.parsePlaceholder("BlockStatement")||super.parseBlock(X,H,Z)}parseFunctionId(X){return this.parsePlaceholder("Identifier")||super.parseFunctionId(X)}parseClass(X,H,Z){const V=H?"ClassDeclaration":"ClassExpression";this.next();const Q=this.state.strict,Y=this.parsePlaceholder("Identifier");if(Y)if(this.match(81)||this.match(144)||this.match(5))X.id=Y;else if(Z||!H)return X.id=null,X.body=this.finishPlaceholder(Y,"ClassBody"),this.finishNode(X,V);else throw this.raise(eU.ClassNameIsRequired,this.state.startLoc);else this.parseClassId(X,H,Z);return super.parseClassSuper(X),X.body=this.parsePlaceholder("ClassBody")||super.parseClassBody(!!X.superClass,Q),this.finishNode(X,V)}parseExport(X,H){const Z=this.parsePlaceholder("Identifier");if(!Z)return super.parseExport(X,H);const V=X;if(!this.isContextual(98)&&!this.match(12))return V.specifiers=[],V.source=null,V.declaration=this.finishPlaceholder(Z,"Declaration"),this.finishNode(V,"ExportNamedDeclaration");this.expectPlugin("exportDefaultFrom");const Q=this.startNode();return Q.exported=Z,V.specifiers=[this.finishNode(Q,"ExportDefaultSpecifier")],super.parseExport(V,H)}isExportDefaultSpecifier(){if(this.match(65)){const X=this.nextTokenStart();if(this.isUnparsedContextual(X,"from")){if(this.input.startsWith(O0(144),this.nextTokenStartSince(X+4)))return!0}}return super.isExportDefaultSpecifier()}maybeParseExportDefaultSpecifier(X,H){var Z;if((Z=X.specifiers)!=null&&Z.length)return!0;return super.maybeParseExportDefaultSpecifier(X,H)}checkExport(X){const{specifiers:H}=X;if(H!=null&&H.length)X.specifiers=H.filter((Z)=>Z.exported.type==="Placeholder");super.checkExport(X),X.specifiers=H}parseImport(X){const H=this.parsePlaceholder("Identifier");if(!H)return super.parseImport(X);if(X.specifiers=[],!this.isContextual(98)&&!this.match(12))return X.source=this.finishPlaceholder(H,"StringLiteral"),this.semicolon(),this.finishNode(X,"ImportDeclaration");const Z=this.startNodeAtNode(H);if(Z.local=H,X.specifiers.push(this.finishNode(Z,"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.state.lastTokEndLoc.index)this.raise(eU.UnexpectedSpace,this.state.lastTokEndLoc)}},JU1=(G)=>class J extends G{parseV8Intrinsic(){if(this.match(54)){const X=this.state.startLoc,H=this.startNode();if(this.next(),N1(this.state.type)){const Z=this.parseIdentifierName(),V=this.createIdentifier(H,Z);if(V.type="V8IntrinsicIdentifier",this.match(10))return V}this.unexpected(X)}}parseExprAtom(X){return this.parseV8Intrinsic()||super.parseExprAtom(X)}},tU=["minimal","fsharp","hack","smart"],GK=["^^","@@","^","%","#"],kK={estree:Zz1,jsx:uz1,flow:rz1,typescript:nz1,v8intrinsic:JU1,placeholders:GU1},HU1=Object.keys(kK),L7={sourceType:"script",sourceFilename:void 0,startColumn:0,startLine:1,allowAwaitOutsideFunction:!1,allowReturnOutsideFunction:!1,allowNewTargetOutsideFunction:!1,allowImportExportEverywhere:!1,allowSuperOutsideMethod:!1,allowUndeclaredExports:!1,plugins:[],strictMode:null,ranges:!1,tokens:!1,createImportExpressions:!1,createParenthesizedExpressions:!1,errorRecovery:!1,attachComment:!0,annexB:!0};class EK extends TK{checkProto(G,J,X,H){if(G.type==="SpreadElement"||this.isObjectMethod(G)||G.computed||G.shorthand)return;const Z=G.key;if((Z.type==="Identifier"?Z.name:Z.value)==="__proto__"){if(J){this.raise(A.RecordNoProto,Z);return}if(X.used)if(H){if(H.doubleProtoLoc===null)H.doubleProtoLoc=Z.loc.start}else this.raise(A.DuplicateProto,Z);X.used=!0}}shouldExitDescending(G,J){return G.type==="ArrowFunctionExpression"&&G.start===J}getExpression(){this.enterInitialScopes(),this.nextToken();const G=this.parseExpression();if(!this.match(139))this.unexpected();if(this.finalizeRemainingComments(),G.comments=this.comments,G.errors=this.state.errors,this.options.tokens)G.tokens=this.tokens;return G}parseExpression(G,J){if(G)return this.disallowInAnd(()=>this.parseExpressionBase(J));return this.allowInAnd(()=>this.parseExpressionBase(J))}parseExpressionBase(G){const J=this.state.startLoc,X=this.parseMaybeAssign(G);if(this.match(12)){const H=this.startNodeAt(J);H.expressions=[X];while(this.eat(12))H.expressions.push(this.parseMaybeAssign(G));return this.toReferencedList(H.expressions),this.finishNode(H,"SequenceExpression")}return X}parseMaybeAssignDisallowIn(G,J){return this.disallowInAnd(()=>this.parseMaybeAssign(G,J))}parseMaybeAssignAllowIn(G,J){return this.allowInAnd(()=>this.parseMaybeAssign(G,J))}setOptionalParametersError(G,J){var X;G.optionalParametersLoc=(X=J==null?void 0:J.loc)!=null?X:this.state.startLoc}parseMaybeAssign(G,J){const X=this.state.startLoc;if(this.isContextual(108)){if(this.prodParam.hasYield){let Q=this.parseYield();if(J)Q=J.call(this,Q,X);return Q}}let H;if(G)H=!1;else G=new g9,H=!0;const{type:Z}=this.state;if(Z===10||N1(Z))this.state.potentialArrowAt=this.state.start;let V=this.parseMaybeConditional(G);if(J)V=J.call(this,V,X);if(zz1(this.state.type)){const Q=this.startNodeAt(X),Y=this.state.value;if(Q.operator=Y,this.match(29)){this.toAssignable(V,!0),Q.left=V;const W=X.index;if(G.doubleProtoLoc!=null&&G.doubleProtoLoc.index>=W)G.doubleProtoLoc=null;if(G.shorthandAssignLoc!=null&&G.shorthandAssignLoc.index>=W)G.shorthandAssignLoc=null;if(G.privateKeyLoc!=null&&G.privateKeyLoc.index>=W)this.checkDestructuringPrivate(G),G.privateKeyLoc=null}else Q.left=V;return this.next(),Q.right=this.parseMaybeAssign(),this.checkLVal(V,this.finishNode(Q,"AssignmentExpression")),Q}else if(H)this.checkExpressionErrors(G,!0);return V}parseMaybeConditional(G){const J=this.state.startLoc,X=this.state.potentialArrowAt,H=this.parseExprOps(G);if(this.shouldExitDescending(H,X))return H;return this.parseConditional(H,J,G)}parseConditional(G,J,X){if(this.eat(17)){const H=this.startNodeAt(J);return H.test=G,H.consequent=this.parseMaybeAssignAllowIn(),this.expect(14),H.alternate=this.parseMaybeAssign(),this.finishNode(H,"ConditionalExpression")}return G}parseMaybeUnaryOrPrivate(G){return this.match(138)?this.parsePrivateName():this.parseMaybeUnary(G)}parseExprOps(G){const J=this.state.startLoc,X=this.state.potentialArrowAt,H=this.parseMaybeUnaryOrPrivate(G);if(this.shouldExitDescending(H,X))return H;return this.parseExprOp(H,J,-1)}parseExprOp(G,J,X){if(this.isPrivateName(G)){const Z=this.getPrivateNameSV(G);if(X>=bG(58)||!this.prodParam.hasIn||!this.match(58))this.raise(A.PrivateInExpectedIn,G,{identifierName:Z});this.classScope.usePrivateName(Z,G.loc.start)}const H=this.state.type;if(Kz1(H)&&(this.prodParam.hasIn||!this.match(58))){let Z=bG(H);if(Z>X){if(H===39){if(this.expectPlugin("pipelineOperator"),this.state.inFSharpPipelineDirectBody)return G;this.checkPipelineAtInfixOperator(G,J)}const V=this.startNodeAt(J);V.left=G,V.operator=this.state.value;const Q=H===41||H===42,Y=H===40;if(Y)Z=bG(42);if(this.next(),H===39&&this.hasPlugin(["pipelineOperator",{proposal:"minimal"}])){if(this.state.type===96&&this.prodParam.hasAwait)throw this.raise(A.UnexpectedAwaitAfterPipelineBody,this.state.startLoc)}V.right=this.parseExprOpRightExpr(H,Z);const W=this.finishNode(V,Q||Y?"LogicalExpression":"BinaryExpression"),z=this.state.type;if(Y&&(z===41||z===42)||Q&&z===40)throw this.raise(A.MixingCoalesceWithLogical,this.state.startLoc);return this.parseExprOp(W,J,X)}}return G}parseExprOpRightExpr(G,J){const X=this.state.startLoc;switch(G){case 39:switch(this.getPluginOption("pipelineOperator","proposal")){case"hack":return this.withTopicBindingContext(()=>{return this.parseHackPipeBody()});case"smart":return this.withTopicBindingContext(()=>{if(this.prodParam.hasYield&&this.isContextual(108))throw this.raise(A.PipeBodyIsTighter,this.state.startLoc);return this.parseSmartPipelineBodyInStyle(this.parseExprOpBaseRightExpr(G,J),X)});case"fsharp":return this.withSoloAwaitPermittingContext(()=>{return this.parseFSharpPipelineBody(J)})}default:return this.parseExprOpBaseRightExpr(G,J)}}parseExprOpBaseRightExpr(G,J){const X=this.state.startLoc;return this.parseExprOp(this.parseMaybeUnaryOrPrivate(),X,qz1(G)?J-1:J)}parseHackPipeBody(){var G;const{startLoc:J}=this.state,X=this.parseMaybeAssign();if(tW1.has(X.type)&&!((G=X.extra)!=null&&G.parenthesized))this.raise(A.PipeUnparenthesizedBody,J,{type:X.type});if(!this.topicReferenceWasUsedInCurrentContext())this.raise(A.PipeTopicUnused,J);return X}checkExponentialAfterUnary(G){if(this.match(57))this.raise(A.UnexpectedTokenUnaryExponentiation,G.argument)}parseMaybeUnary(G,J){const X=this.state.startLoc,H=this.isContextual(96);if(H&&this.recordAwaitIfAllowed()){this.next();const Y=this.parseAwait(X);if(!J)this.checkExponentialAfterUnary(Y);return Y}const Z=this.match(34),V=this.startNode();if($z1(this.state.type)){if(V.operator=this.state.value,V.prefix=!0,this.match(72))this.expectPlugin("throwExpressions");const Y=this.match(89);if(this.next(),V.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(G,!0),this.state.strict&&Y){const W=V.argument;if(W.type==="Identifier")this.raise(A.StrictDelete,V);else if(this.hasPropertyAsPrivateName(W))this.raise(A.DeletePrivateField,V)}if(!Z){if(!J)this.checkExponentialAfterUnary(V);return this.finishNode(V,"UnaryExpression")}}const Q=this.parseUpdate(V,Z,G);if(H){const{type:Y}=this.state;if((this.hasPlugin("v8intrinsic")?N7(Y):N7(Y)&&!this.match(54))&&!this.isAmbiguousAwait())return this.raiseOverwrite(A.AwaitNotInAsyncContext,X),this.parseAwait(X)}return Q}parseUpdate(G,J,X){if(J){const V=G;return this.checkLVal(V.argument,this.finishNode(V,"UpdateExpression")),G}const H=this.state.startLoc;let Z=this.parseExprSubscripts(X);if(this.checkExpressionErrors(X,!1))return Z;while(Bz1(this.state.type)&&!this.canInsertSemicolon()){const V=this.startNodeAt(H);V.operator=this.state.value,V.prefix=!1,V.argument=Z,this.next(),this.checkLVal(Z,Z=this.finishNode(V,"UpdateExpression"))}return Z}parseExprSubscripts(G){const J=this.state.startLoc,X=this.state.potentialArrowAt,H=this.parseExprAtom(G);if(this.shouldExitDescending(H,X))return H;return this.parseSubscripts(H,J)}parseSubscripts(G,J,X){const H={optionalChainMember:!1,maybeAsyncArrow:this.atPossibleAsyncArrow(G),stop:!1};do G=this.parseSubscript(G,J,X,H),H.maybeAsyncArrow=!1;while(!H.stop);return G}parseSubscript(G,J,X,H){const{type:Z}=this.state;if(!X&&Z===15)return this.parseBind(G,J,X,H);else if(yG(Z))return this.parseTaggedTemplateExpression(G,J,H);let V=!1;if(Z===18){if(X){if(this.raise(A.OptionalChainingNoNew,this.state.startLoc),this.lookaheadCharCode()===40)return H.stop=!0,G}H.optionalChainMember=V=!0,this.next()}if(!X&&this.match(10))return this.parseCoverCallAndAsyncArrowHead(G,J,H,V);else{const Q=this.eat(0);if(Q||V||this.eat(16))return this.parseMember(G,J,H,Q,V);else return H.stop=!0,G}}parseMember(G,J,X,H,Z){const V=this.startNodeAt(J);if(V.object=G,V.computed=H,H)V.property=this.parseExpression(),this.expect(3);else if(this.match(138)){if(G.type==="Super")this.raise(A.SuperPrivateField,J);this.classScope.usePrivateName(this.state.value,this.state.startLoc),V.property=this.parsePrivateName()}else V.property=this.parseIdentifier(!0);if(X.optionalChainMember)return V.optional=Z,this.finishNode(V,"OptionalMemberExpression");else return this.finishNode(V,"MemberExpression")}parseBind(G,J,X,H){const Z=this.startNodeAt(J);return Z.object=G,this.next(),Z.callee=this.parseNoCallExpr(),H.stop=!0,this.parseSubscripts(this.finishNode(Z,"BindExpression"),J,X)}parseCoverCallAndAsyncArrowHead(G,J,X,H){const Z=this.state.maybeInArrowParameters;let V=null;this.state.maybeInArrowParameters=!0,this.next();const Q=this.startNodeAt(J);Q.callee=G;const{maybeAsyncArrow:Y,optionalChainMember:W}=X;if(Y)this.expressionScope.enter(bz1()),V=new g9;if(W)Q.optional=H;if(H)Q.arguments=this.parseCallExpressionArguments(11);else Q.arguments=this.parseCallExpressionArguments(11,G.type==="Import",G.type!=="Super",Q,V);let z=this.finishCallExpression(Q,W);if(Y&&this.shouldParseAsyncArrow()&&!H)X.stop=!0,this.checkDestructuringPrivate(V),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),z=this.parseAsyncArrowFromCallExpression(this.startNodeAt(J),z);else{if(Y)this.checkExpressionErrors(V,!0),this.expressionScope.exit();this.toReferencedArguments(z)}return this.state.maybeInArrowParameters=Z,z}toReferencedArguments(G,J){this.toReferencedListDeep(G.arguments,J)}parseTaggedTemplateExpression(G,J,X){const H=this.startNodeAt(J);if(H.tag=G,H.quasi=this.parseTemplate(!0),X.optionalChainMember)this.raise(A.OptionalChainingNoTemplate,J);return this.finishNode(H,"TaggedTemplateExpression")}atPossibleAsyncArrow(G){return G.type==="Identifier"&&G.name==="async"&&this.state.lastTokEndLoc.index===G.end&&!this.canInsertSemicolon()&&G.end-G.start===5&&G.start===this.state.potentialArrowAt}finishCallExpression(G,J){if(G.callee.type==="Import"){if(G.arguments.length===2){if(!(this.hasPlugin("moduleAttributes")||this.hasPlugin("importAssertions")))this.expectPlugin("importAttributes")}if(G.arguments.length===0||G.arguments.length>2)this.raise(A.ImportCallArity,G,{maxArgumentCount:this.hasPlugin("importAttributes")||this.hasPlugin("importAssertions")||this.hasPlugin("moduleAttributes")?2:1});else for(let X of G.arguments)if(X.type==="SpreadElement")this.raise(A.ImportCallSpreadArgument,X)}return this.finishNode(G,J?"OptionalCallExpression":"CallExpression")}parseCallExpressionArguments(G,J,X,H,Z){const V=[];let Q=!0;const Y=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;while(!this.eat(G)){if(Q)Q=!1;else if(this.expect(12),this.match(G)){if(J&&!this.hasPlugin("importAttributes")&&!this.hasPlugin("importAssertions")&&!this.hasPlugin("moduleAttributes"))this.raise(A.ImportCallArgumentTrailingComma,this.state.lastTokStartLoc);if(H)this.addTrailingCommaExtraToNode(H);this.next();break}V.push(this.parseExprListItem(!1,Z,X))}return this.state.inFSharpPipelineDirectBody=Y,V}shouldParseAsyncArrow(){return this.match(19)&&!this.canInsertSemicolon()}parseAsyncArrowFromCallExpression(G,J){var X;if(this.resetPreviousNodeTrailingComments(J),this.expect(19),this.parseArrowExpression(G,J.arguments,!0,(X=J.extra)==null?void 0:X.trailingCommaLoc),J.innerComments)h9(G,J.innerComments);if(J.callee.trailingComments)h9(G,J.callee.trailingComments);return G}parseNoCallExpr(){const G=this.state.startLoc;return this.parseSubscripts(this.parseExprAtom(),G,!0)}parseExprAtom(G){let J,X=null;const{type:H}=this.state;switch(H){case 79:return this.parseSuper();case 83:if(J=this.startNode(),this.next(),this.match(16))return this.parseImportMetaProperty(J);if(this.match(10))if(this.options.createImportExpressions)return this.parseImportCall(J);else return this.finishNode(J,"Import");else return this.raise(A.UnsupportedImport,this.state.lastTokStartLoc),this.finishNode(J,"Import");case 78:return J=this.startNode(),this.next(),this.finishNode(J,"ThisExpression");case 90:return this.parseDo(this.startNode(),!1);case 56:case 31:return this.readRegexp(),this.parseRegExpLiteral(this.state.value);case 134:return this.parseNumericLiteral(this.state.value);case 135:return this.parseBigIntLiteral(this.state.value);case 133:return this.parseStringLiteral(this.state.value);case 84:return this.parseNullLiteral();case 85:return this.parseBooleanLiteral(!0);case 86:return this.parseBooleanLiteral(!1);case 10:{const Z=this.state.potentialArrowAt===this.state.start;return this.parseParenAndDistinguishExpression(Z)}case 2:case 1:return this.parseArrayLike(this.state.type===2?4:3,!1,!0);case 0:return this.parseArrayLike(3,!0,!1,G);case 6:case 7:return this.parseObjectLike(this.state.type===6?9:8,!1,!0);case 5:return this.parseObjectLike(8,!1,!1,G);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:{J=this.startNode(),this.next(),J.object=null;const Z=J.callee=this.parseNoCallExpr();if(Z.type==="MemberExpression")return this.finishNode(J,"BindExpression");else throw this.raise(A.UnsupportedBind,Z)}case 138:return this.raise(A.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:{const Z=this.getPluginOption("pipelineOperator","proposal");if(Z)return this.parseTopicReference(Z);this.unexpected();break}case 47:{const Z=this.input.codePointAt(this.nextTokenStart());if($0(Z)||Z===62)this.expectOnePlugin(["jsx","flow","typescript"]);else this.unexpected();break}default:if(H===136)return this.parseDecimalLiteral(this.state.value);if(N1(H)){if(this.isContextual(127)&&this.lookaheadInLineCharCode()===123)return this.parseModuleExpression();const Z=this.state.potentialArrowAt===this.state.start,V=this.state.containsEsc,Q=this.parseIdentifier();if(!V&&Q.name==="async"&&!this.canInsertSemicolon()){const{type:Y}=this.state;if(Y===68)return this.resetPreviousNodeTrailingComments(Q),this.next(),this.parseAsyncFunctionExpression(this.startNodeAtNode(Q));else if(N1(Y))if(this.lookaheadCharCode()===61)return this.parseAsyncArrowUnaryFunction(this.startNodeAtNode(Q));else return Q;else if(Y===90)return this.resetPreviousNodeTrailingComments(Q),this.parseDo(this.startNodeAtNode(Q),!0)}if(Z&&this.match(19)&&!this.canInsertSemicolon())return this.next(),this.parseArrowExpression(this.startNodeAtNode(Q),[Q],!1);return Q}else this.unexpected()}}parseTopicReferenceThenEqualsSign(G,J){const X=this.getPluginOption("pipelineOperator","proposal");if(X)return this.state.type=G,this.state.value=J,this.state.pos--,this.state.end--,this.state.endLoc=U2(this.state.endLoc,-1),this.parseTopicReference(X);else this.unexpected()}parseTopicReference(G){const J=this.startNode(),X=this.state.startLoc,H=this.state.type;return this.next(),this.finishTopicReference(J,X,G,H)}finishTopicReference(G,J,X,H){if(this.testTopicReferenceConfiguration(X,J,H)){const Z=X==="smart"?"PipelinePrimaryTopicReference":"TopicReference";if(!this.topicReferenceIsAllowedInCurrentContext())this.raise(X==="smart"?A.PrimaryTopicNotAllowed:A.PipeTopicUnbound,J);return this.registerTopicReference(),this.finishNode(G,Z)}else throw this.raise(A.PipeTopicUnconfiguredToken,J,{token:O0(H)})}testTopicReferenceConfiguration(G,J,X){switch(G){case"hack":return this.hasPlugin(["pipelineOperator",{topicToken:O0(X)}]);case"smart":return X===27;default:throw this.raise(A.PipeTopicRequiresHackPipes,J)}}parseAsyncArrowUnaryFunction(G){this.prodParam.enter(hG(!0,this.prodParam.hasYield));const J=[this.parseIdentifier()];if(this.prodParam.exit(),this.hasPrecedingLineBreak())this.raise(A.LineTerminatorBeforeArrow,this.state.curPosition());return this.expect(19),this.parseArrowExpression(G,J,!0)}parseDo(G,J){if(this.expectPlugin("doExpressions"),J)this.expectPlugin("asyncDoExpressions");G.async=J,this.next();const X=this.state.labels;if(this.state.labels=[],J)this.prodParam.enter(2),G.body=this.parseBlock(),this.prodParam.exit();else G.body=this.parseBlock();return this.state.labels=X,this.finishNode(G,"DoExpression")}parseSuper(){const G=this.startNode();if(this.next(),this.match(10)&&!this.scope.allowDirectSuper&&!this.options.allowSuperOutsideMethod)this.raise(A.SuperNotAllowed,G);else if(!this.scope.allowSuper&&!this.options.allowSuperOutsideMethod)this.raise(A.UnexpectedSuper,G);if(!this.match(10)&&!this.match(0)&&!this.match(16))this.raise(A.UnsupportedSuper,G);return this.finishNode(G,"Super")}parsePrivateName(){const G=this.startNode(),J=this.startNodeAt(U2(this.state.startLoc,1)),X=this.state.value;return this.next(),G.id=this.createIdentifier(J,X),this.finishNode(G,"PrivateName")}parseFunctionOrFunctionSent(){const G=this.startNode();if(this.next(),this.prodParam.hasYield&&this.match(16)){const J=this.createIdentifier(this.startNodeAtNode(G),"function");if(this.next(),this.match(103))this.expectPlugin("functionSent");else if(!this.hasPlugin("functionSent"))this.unexpected();return this.parseMetaProperty(G,J,"sent")}return this.parseFunction(G)}parseMetaProperty(G,J,X){G.meta=J;const H=this.state.containsEsc;if(G.property=this.parseIdentifier(!0),G.property.name!==X||H)this.raise(A.UnsupportedMetaProperty,G.property,{target:J.name,onlyValidPropertyName:X});return this.finishNode(G,"MetaProperty")}parseImportMetaProperty(G){const J=this.createIdentifier(this.startNodeAtNode(G),"import");if(this.next(),this.isContextual(101)){if(!this.inModule)this.raise(A.ImportMetaOutsideModule,J);this.sawUnambiguousESM=!0}else if(this.isContextual(105)||this.isContextual(97)){const X=this.isContextual(105);if(!X)this.unexpected();if(this.expectPlugin(X?"sourcePhaseImports":"deferredImportEvaluation"),!this.options.createImportExpressions)throw this.raise(A.DynamicImportPhaseRequiresImportExpressions,this.state.startLoc,{phase:this.state.value});return this.next(),G.phase=X?"source":"defer",this.parseImportCall(G)}return this.parseMetaProperty(G,J,"meta")}parseLiteralAtNode(G,J,X){return this.addExtra(X,"rawValue",G),this.addExtra(X,"raw",this.input.slice(X.start,this.state.end)),X.value=G,this.next(),this.finishNode(X,J)}parseLiteral(G,J){const X=this.startNode();return this.parseLiteralAtNode(G,J,X)}parseStringLiteral(G){return this.parseLiteral(G,"StringLiteral")}parseNumericLiteral(G){return this.parseLiteral(G,"NumericLiteral")}parseBigIntLiteral(G){return this.parseLiteral(G,"BigIntLiteral")}parseDecimalLiteral(G){return this.parseLiteral(G,"DecimalLiteral")}parseRegExpLiteral(G){const J=this.startNode();return this.addExtra(J,"raw",this.input.slice(J.start,this.state.end)),J.pattern=G.pattern,J.flags=G.flags,this.next(),this.finishNode(J,"RegExpLiteral")}parseBooleanLiteral(G){const J=this.startNode();return J.value=G,this.next(),this.finishNode(J,"BooleanLiteral")}parseNullLiteral(){const G=this.startNode();return this.next(),this.finishNode(G,"NullLiteral")}parseParenAndDistinguishExpression(G){const J=this.state.startLoc;let X;this.next(),this.expressionScope.enter(gz1());const H=this.state.maybeInArrowParameters,Z=this.state.inFSharpPipelineDirectBody;this.state.maybeInArrowParameters=!0,this.state.inFSharpPipelineDirectBody=!1;const V=this.state.startLoc,Q=[],Y=new g9;let W=!0,z,B;while(!this.match(11)){if(W)W=!1;else if(this.expect(12,Y.optionalParametersLoc===null?null:Y.optionalParametersLoc),this.match(11)){B=this.state.startLoc;break}if(this.match(21)){const j=this.state.startLoc;if(z=this.state.startLoc,Q.push(this.parseParenItem(this.parseRestBinding(),j)),!this.checkCommaAfterRest(41))break}else Q.push(this.parseMaybeAssignAllowIn(Y,this.parseParenItem))}const q=this.state.lastTokEndLoc;this.expect(11),this.state.maybeInArrowParameters=H,this.state.inFSharpPipelineDirectBody=Z;let F=this.startNodeAt(J);if(G&&this.shouldParseArrow(Q)&&(F=this.parseArrow(F)))return this.checkDestructuringPrivate(Y),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),this.parseArrowExpression(F,Q,!1),F;if(this.expressionScope.exit(),!Q.length)this.unexpected(this.state.lastTokStartLoc);if(B)this.unexpected(B);if(z)this.unexpected(z);if(this.checkExpressionErrors(Y,!0),this.toReferencedListDeep(Q,!0),Q.length>1)X=this.startNodeAt(V),X.expressions=Q,this.finishNode(X,"SequenceExpression"),this.resetEndLocation(X,q);else X=Q[0];return this.wrapParenthesis(J,X)}wrapParenthesis(G,J){if(!this.options.createParenthesizedExpressions)return this.addExtra(J,"parenthesized",!0),this.addExtra(J,"parenStart",G.index),this.takeSurroundingComments(J,G.index,this.state.lastTokEndLoc.index),J;const X=this.startNodeAt(G);return X.expression=J,this.finishNode(X,"ParenthesizedExpression")}shouldParseArrow(G){return!this.canInsertSemicolon()}parseArrow(G){if(this.eat(19))return G}parseParenItem(G,J){return G}parseNewOrNewTarget(){const G=this.startNode();if(this.next(),this.match(16)){const J=this.createIdentifier(this.startNodeAtNode(G),"new");this.next();const X=this.parseMetaProperty(G,J,"target");if(!this.scope.inNonArrowFunction&&!this.scope.inClass&&!this.options.allowNewTargetOutsideFunction)this.raise(A.UnexpectedNewTarget,X);return X}return this.parseNew(G)}parseNew(G){if(this.parseNewCallee(G),this.eat(10)){const J=this.parseExprList(11);this.toReferencedList(J),G.arguments=J}else G.arguments=[];return this.finishNode(G,"NewExpression")}parseNewCallee(G){const J=this.match(83),X=this.parseNoCallExpr();if(G.callee=X,J&&(X.type==="Import"||X.type==="ImportExpression"))this.raise(A.ImportCallNotNewExpression,X)}parseTemplateElement(G){const{start:J,startLoc:X,end:H,value:Z}=this.state,V=J+1,Q=this.startNodeAt(U2(X,1));if(Z===null){if(!G)this.raise(A.InvalidEscapeSequenceTemplate,U2(this.state.firstInvalidTemplateEscapePos,1))}const Y=this.match(24),W=Y?-1:-2,z=H+W;Q.value={raw:this.input.slice(V,z).replace(/\r\n?/g,"\n"),cooked:Z===null?null:Z.slice(1,W)},Q.tail=Y,this.next();const B=this.finishNode(Q,"TemplateElement");return this.resetEndLocation(B,U2(this.state.lastTokEndLoc,W)),B}parseTemplate(G){const J=this.startNode();let X=this.parseTemplateElement(G);const H=[X],Z=[];while(!X.tail)Z.push(this.parseTemplateSubstitution()),this.readTemplateContinuation(),H.push(X=this.parseTemplateElement(G));return J.expressions=Z,J.quasis=H,this.finishNode(J,"TemplateLiteral")}parseTemplateSubstitution(){return this.parseExpression()}parseObjectLike(G,J,X,H){if(X)this.expectPlugin("recordAndTuple");const Z=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;const V=Object.create(null);let Q=!0;const Y=this.startNode();Y.properties=[],this.next();while(!this.match(G)){if(Q)Q=!1;else if(this.expect(12),this.match(G)){this.addTrailingCommaExtraToNode(Y);break}let z;if(J)z=this.parseBindingProperty();else z=this.parsePropertyDefinition(H),this.checkProto(z,X,V,H);if(X&&!this.isObjectProperty(z)&&z.type!=="SpreadElement")this.raise(A.InvalidRecordProperty,z);if(z.shorthand)this.addExtra(z,"shorthand",!0);Y.properties.push(z)}this.next(),this.state.inFSharpPipelineDirectBody=Z;let W="ObjectExpression";if(J)W="ObjectPattern";else if(X)W="RecordExpression";return this.finishNode(Y,W)}addTrailingCommaExtraToNode(G){this.addExtra(G,"trailingComma",this.state.lastTokStartLoc.index),this.addExtra(G,"trailingCommaLoc",this.state.lastTokStartLoc,!1)}maybeAsyncOrAccessorProp(G){return!G.computed&&G.key.type==="Identifier"&&(this.isLiteralPropertyName()||this.match(0)||this.match(55))}parsePropertyDefinition(G){let J=[];if(this.match(26)){if(this.hasPlugin("decorators"))this.raise(A.UnsupportedPropertyDecorator,this.state.startLoc);while(this.match(26))J.push(this.parseDecorator())}const X=this.startNode();let H=!1,Z=!1,V;if(this.match(21)){if(J.length)this.unexpected();return this.parseSpread()}if(J.length)X.decorators=J,J=[];if(X.method=!1,G)V=this.state.startLoc;let Q=this.eat(55);this.parsePropertyNamePrefixOperator(X);const Y=this.state.containsEsc;if(this.parsePropertyName(X,G),!Q&&!Y&&this.maybeAsyncOrAccessorProp(X)){const{key:W}=X,z=W.name;if(z==="async"&&!this.hasPrecedingLineBreak())H=!0,this.resetPreviousNodeTrailingComments(W),Q=this.eat(55),this.parsePropertyName(X);if(z==="get"||z==="set"){if(Z=!0,this.resetPreviousNodeTrailingComments(W),X.kind=z,this.match(55))Q=!0,this.raise(A.AccessorIsGenerator,this.state.curPosition(),{kind:z}),this.next();this.parsePropertyName(X)}}return this.parseObjPropValue(X,V,Q,H,!1,Z,G)}getGetterSetterExpectedParamCount(G){return G.kind==="get"?0:1}getObjectOrClassMethodParams(G){return G.params}checkGetterSetterParams(G){var J;const X=this.getGetterSetterExpectedParamCount(G),H=this.getObjectOrClassMethodParams(G);if(H.length!==X)this.raise(G.kind==="get"?A.BadGetterArity:A.BadSetterArity,G);if(G.kind==="set"&&((J=H[H.length-1])==null?void 0:J.type)==="RestElement")this.raise(A.BadSetterRestParameter,G)}parseObjectMethod(G,J,X,H,Z){if(Z){const V=this.parseMethod(G,J,!1,!1,!1,"ObjectMethod");return this.checkGetterSetterParams(V),V}if(X||J||this.match(10)){if(H)this.unexpected();return G.kind="method",G.method=!0,this.parseMethod(G,J,X,!1,!1,"ObjectMethod")}}parseObjectProperty(G,J,X,H){if(G.shorthand=!1,this.eat(14))return G.value=X?this.parseMaybeDefault(this.state.startLoc):this.parseMaybeAssignAllowIn(H),this.finishNode(G,"ObjectProperty");if(!G.computed&&G.key.type==="Identifier"){if(this.checkReservedWord(G.key.name,G.key.loc.start,!0,!1),X)G.value=this.parseMaybeDefault(J,q0(G.key));else if(this.match(29)){const Z=this.state.startLoc;if(H!=null){if(H.shorthandAssignLoc===null)H.shorthandAssignLoc=Z}else this.raise(A.InvalidCoverInitializedName,Z);G.value=this.parseMaybeDefault(J,q0(G.key))}else G.value=q0(G.key);return G.shorthand=!0,this.finishNode(G,"ObjectProperty")}}parseObjPropValue(G,J,X,H,Z,V,Q){const Y=this.parseObjectMethod(G,X,H,Z,V)||this.parseObjectProperty(G,J,Z,Q);if(!Y)this.unexpected();return Y}parsePropertyName(G,J){if(this.eat(0))G.computed=!0,G.key=this.parseMaybeAssignAllowIn(),this.expect(3);else{const{type:X,value:H}=this.state;let Z;if(x2(X))Z=this.parseIdentifier(!0);else switch(X){case 134:Z=this.parseNumericLiteral(H);break;case 133:Z=this.parseStringLiteral(H);break;case 135:Z=this.parseBigIntLiteral(H);break;case 138:{const V=this.state.startLoc;if(J!=null){if(J.privateKeyLoc===null)J.privateKeyLoc=V}else this.raise(A.UnexpectedPrivateField,V);Z=this.parsePrivateName();break}default:if(X===136){Z=this.parseDecimalLiteral(H);break}this.unexpected()}if(G.key=Z,X!==138)G.computed=!1}}initFunction(G,J){G.id=null,G.generator=!1,G.async=J}parseMethod(G,J,X,H,Z,V,Q=!1){this.initFunction(G,X),G.generator=J,this.scope.enter(18|(Q?64:0)|(Z?32:0)),this.prodParam.enter(hG(X,G.generator)),this.parseFunctionParams(G,H);const Y=this.parseFunctionBodyAndFinish(G,V,!0);return this.prodParam.exit(),this.scope.exit(),Y}parseArrayLike(G,J,X,H){if(X)this.expectPlugin("recordAndTuple");const Z=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;const V=this.startNode();return this.next(),V.elements=this.parseExprList(G,!X,H,V),this.state.inFSharpPipelineDirectBody=Z,this.finishNode(V,X?"TupleExpression":"ArrayExpression")}parseArrowExpression(G,J,X,H){this.scope.enter(6);let Z=hG(X,!1);if(!this.match(5)&&this.prodParam.hasIn)Z|=8;this.prodParam.enter(Z),this.initFunction(G,X);const V=this.state.maybeInArrowParameters;if(J)this.state.maybeInArrowParameters=!0,this.setArrowFunctionParameters(G,J,H);return this.state.maybeInArrowParameters=!1,this.parseFunctionBody(G,!0),this.prodParam.exit(),this.scope.exit(),this.state.maybeInArrowParameters=V,this.finishNode(G,"ArrowFunctionExpression")}setArrowFunctionParameters(G,J,X){this.toAssignableList(J,X,!1),G.params=J}parseFunctionBodyAndFinish(G,J,X=!1){return this.parseFunctionBody(G,!1,X),this.finishNode(G,J)}parseFunctionBody(G,J,X=!1){const H=J&&!this.match(5);if(this.expressionScope.enter(IK()),H)G.body=this.parseMaybeAssign(),this.checkParams(G,!1,J,!1);else{const Z=this.state.strict,V=this.state.labels;this.state.labels=[],this.prodParam.enter(this.prodParam.currentFlags()|4),G.body=this.parseBlock(!0,!1,(Q)=>{const Y=!this.isSimpleParamList(G.params);if(Q&&Y)this.raise(A.IllegalLanguageModeDirective,(G.kind==="method"||G.kind==="constructor")&&!!G.key?G.key.loc.end:G);const W=!Z&&this.state.strict;if(this.checkParams(G,!this.state.strict&&!J&&!X&&!Y,J,W),this.state.strict&&G.id)this.checkIdentifier(G.id,65,W)}),this.prodParam.exit(),this.state.labels=V}this.expressionScope.exit()}isSimpleParameter(G){return G.type==="Identifier"}isSimpleParamList(G){for(let J=0,X=G.length;J<X;J++)if(!this.isSimpleParameter(G[J]))return!1;return!0}checkParams(G,J,X,H=!0){const Z=!J&&new Set,V={type:"FormalParameters"};for(let Q of G.params)this.checkLVal(Q,V,5,Z,H)}parseExprList(G,J,X,H){const Z=[];let V=!0;while(!this.eat(G)){if(V)V=!1;else if(this.expect(12),this.match(G)){if(H)this.addTrailingCommaExtraToNode(H);this.next();break}Z.push(this.parseExprListItem(J,X))}return Z}parseExprListItem(G,J,X){let H;if(this.match(12)){if(!G)this.raise(A.UnexpectedToken,this.state.curPosition(),{unexpected:","});H=null}else if(this.match(21)){const Z=this.state.startLoc;H=this.parseParenItem(this.parseSpread(J),Z)}else if(this.match(17)){if(this.expectPlugin("partialApplication"),!X)this.raise(A.UnexpectedArgumentPlaceholder,this.state.startLoc);const Z=this.startNode();this.next(),H=this.finishNode(Z,"ArgumentPlaceholder")}else H=this.parseMaybeAssignAllowIn(J,this.parseParenItem);return H}parseIdentifier(G){const J=this.startNode(),X=this.parseIdentifierName(G);return this.createIdentifier(J,X)}createIdentifier(G,J){return G.name=J,G.loc.identifierName=J,this.finishNode(G,"Identifier")}parseIdentifierName(G){let J;const{startLoc:X,type:H}=this.state;if(x2(H))J=this.state.value;else this.unexpected();const Z=Yz1(H);if(G){if(Z)this.replaceToken(132)}else this.checkReservedWord(J,X,Z,!1);return this.next(),J}checkReservedWord(G,J,X,H){if(G.length>10)return;if(!Lz1(G))return;if(X&&fz1(G)){this.raise(A.UnexpectedKeyword,J,{keyword:G});return}if((!this.state.strict?VK:H?WK:QK)(G,this.inModule)){this.raise(A.UnexpectedReservedWord,J,{reservedWord:G});return}else if(G==="yield"){if(this.prodParam.hasYield){this.raise(A.YieldBindingIdentifier,J);return}}else if(G==="await"){if(this.prodParam.hasAwait){this.raise(A.AwaitBindingIdentifier,J);return}if(this.scope.inStaticBlock){this.raise(A.AwaitBindingIdentifierInStaticBlock,J);return}this.expressionScope.recordAsyncArrowParametersError(J)}else if(G==="arguments"){if(this.scope.inClassAndNotInNonArrowFunction){this.raise(A.ArgumentsInClass,J);return}}}recordAwaitIfAllowed(){const G=this.prodParam.hasAwait||this.options.allowAwaitOutsideFunction&&!this.scope.inFunction;if(G&&!this.scope.inFunction)this.state.hasTopLevelAwait=!0;return G}parseAwait(G){const J=this.startNodeAt(G);if(this.expressionScope.recordParameterInitializerError(A.AwaitExpressionFormalParameter,J),this.eat(55))this.raise(A.ObsoleteAwaitStar,J);if(!this.scope.inFunction&&!this.options.allowAwaitOutsideFunction)if(this.isAmbiguousAwait())this.ambiguousScriptDifferentAst=!0;else this.sawUnambiguousESM=!0;if(!this.state.soloAwait)J.argument=this.parseMaybeUnary(null,!0);return this.finishNode(J,"AwaitExpression")}isAmbiguousAwait(){if(this.hasPrecedingLineBreak())return!0;const{type:G}=this.state;return G===53||G===10||G===0||yG(G)||G===102&&!this.state.containsEsc||G===137||G===56||this.hasPlugin("v8intrinsic")&&G===54}parseYield(){const G=this.startNode();this.expressionScope.recordParameterInitializerError(A.YieldInParameter,G),this.next();let J=!1,X=null;if(!this.hasPrecedingLineBreak())switch(J=this.eat(55),this.state.type){case 13:case 139:case 8:case 11:case 3:case 9:case 14:case 12:if(!J)break;default:X=this.parseMaybeAssign()}return G.delegate=J,G.argument=X,this.finishNode(G,"YieldExpression")}parseImportCall(G){if(this.next(),G.source=this.parseMaybeAssignAllowIn(),this.hasPlugin("importAttributes")||this.hasPlugin("importAssertions"))G.options=null;if(this.eat(12)){if(!(this.hasPlugin("moduleAttributes")||this.hasPlugin("importAssertions")))this.expectPlugin("importAttributes");if(!this.match(11))G.options=this.parseMaybeAssignAllowIn(),this.eat(12)}return this.expect(11),this.finishNode(G,"ImportExpression")}checkPipelineAtInfixOperator(G,J){if(this.hasPlugin(["pipelineOperator",{proposal:"smart"}])){if(G.type==="SequenceExpression")this.raise(A.PipelineHeadSequenceExpression,J)}}parseSmartPipelineBodyInStyle(G,J){if(this.isSimpleReference(G)){const X=this.startNodeAt(J);return X.callee=G,this.finishNode(X,"PipelineBareFunction")}else{const X=this.startNodeAt(J);return this.checkSmartPipeTopicBodyEarlyErrors(J),X.expression=G,this.finishNode(X,"PipelineTopicExpression")}}isSimpleReference(G){switch(G.type){case"MemberExpression":return!G.computed&&this.isSimpleReference(G.object);case"Identifier":return!0;default:return!1}}checkSmartPipeTopicBodyEarlyErrors(G){if(this.match(19))throw this.raise(A.PipelineBodyNoArrow,this.state.startLoc);if(!this.topicReferenceWasUsedInCurrentContext())this.raise(A.PipelineTopicUnused,G)}withTopicBindingContext(G){const J=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:1,maxTopicIndex:null};try{return G()}finally{this.state.topicContext=J}}withSmartMixTopicForbiddingContext(G){if(this.hasPlugin(["pipelineOperator",{proposal:"smart"}])){const J=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null};try{return G()}finally{this.state.topicContext=J}}else return G()}withSoloAwaitPermittingContext(G){const J=this.state.soloAwait;this.state.soloAwait=!0;try{return G()}finally{this.state.soloAwait=J}}allowInAnd(G){const J=this.prodParam.currentFlags();if(8&~J){this.prodParam.enter(J|8);try{return G()}finally{this.prodParam.exit()}}return G()}disallowInAnd(G){const J=this.prodParam.currentFlags();if(8&J){this.prodParam.enter(J&-9);try{return G()}finally{this.prodParam.exit()}}return G()}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(G){const J=this.state.startLoc;this.state.potentialArrowAt=this.state.start;const X=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!0;const H=this.parseExprOp(this.parseMaybeUnaryOrPrivate(),J,G);return this.state.inFSharpPipelineDirectBody=X,H}parseModuleExpression(){this.expectPlugin("moduleBlocks");const G=this.startNode();if(this.next(),!this.match(5))this.unexpected(null,5);const J=this.startNodeAt(this.state.endLoc);this.next();const X=this.initializeScopes(!0);this.enterInitialScopes();try{G.body=this.parseProgram(J,8,"module")}finally{X()}return this.finishNode(G,"ModuleExpression")}parsePropertyNamePrefixOperator(G){}}var T7={kind:1},VU1={kind:2},QU1=/[\uD800-\uDFFF]/u,w7=/in(?:stanceof)?/y;class OK extends EK{parseTopLevel(G,J){if(G.program=this.parseProgram(J),G.comments=this.comments,this.options.tokens)G.tokens=YU1(this.tokens,this.input);return this.finishNode(G,"File")}parseProgram(G,J=139,X=this.options.sourceType){if(G.sourceType=X,G.interpreter=this.parseInterpreterDirective(),this.parseBlockBody(G,!0,!0,J),this.inModule){if(!this.options.allowUndeclaredExports&&this.scope.undefinedExports.size>0)for(let[Z,V]of Array.from(this.scope.undefinedExports))this.raise(A.ModuleExportUndefined,V,{localName:Z});this.addExtra(G,"topLevelAwait",this.state.hasTopLevelAwait)}let H;if(J===139)H=this.finishNode(G,"Program");else H=this.finishNodeAt(G,"Program",U2(this.state.startLoc,-1));return H}stmtToDirective(G){const J=G;J.type="Directive",J.value=J.expression,delete J.expression;const X=J.value,H=X.value,Z=this.input.slice(X.start,X.end),V=X.value=Z.slice(1,-1);return this.addExtra(X,"raw",Z),this.addExtra(X,"rawValue",V),this.addExtra(X,"expressionValue",H),X.type="DirectiveLiteral",J}parseInterpreterDirective(){if(!this.match(28))return null;const G=this.startNode();return G.value=this.state.value,this.next(),this.finishNode(G,"InterpreterDirective")}isLet(){if(!this.isContextual(100))return!1;return this.hasFollowingBindingAtom()}chStartsBindingIdentifier(G,J){if($0(G)){if(w7.lastIndex=J,w7.test(this.input)){const X=this.codePointAtPos(w7.lastIndex);if(!b5(X)&&X!==92)return!1}return!0}else if(G===92)return!0;else return!1}chStartsBindingPattern(G){return G===91||G===123}hasFollowingBindingAtom(){const G=this.nextTokenStart(),J=this.codePointAtPos(G);return this.chStartsBindingPattern(J)||this.chStartsBindingIdentifier(J,G)}hasInLineFollowingBindingIdentifierOrBrace(){const G=this.nextTokenInLineStart(),J=this.codePointAtPos(G);return J===123||this.chStartsBindingIdentifier(J,G)}startsUsingForOf(){const{type:G,containsEsc:J}=this.lookahead();if(G===102&&!J)return!1;else if(N1(G)&&!this.hasFollowingLineBreak())return this.expectPlugin("explicitResourceManagement"),!0}startsAwaitUsing(){let G=this.nextTokenInLineStart();if(this.isUnparsedContextual(G,"using")){G=this.nextTokenInLineStartSince(G+5);const J=this.codePointAtPos(G);if(this.chStartsBindingIdentifier(J,G))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(G=!1){let J=0;if(this.options.annexB&&!this.state.strict){if(J|=4,G)J|=8}return this.parseStatementLike(J)}parseStatement(){return this.parseStatementLike(0)}parseStatementLike(G){let J=null;if(this.match(26))J=this.parseDecorators(!0);return this.parseStatementContent(G,J)}parseStatementContent(G,J){const X=this.state.type,H=this.startNode(),Z=!!(G&2),V=!!(G&4),Q=G&1;switch(X){case 60:return this.parseBreakContinueStatement(H,!0);case 63:return this.parseBreakContinueStatement(H,!1);case 64:return this.parseDebuggerStatement(H);case 90:return this.parseDoWhileStatement(H);case 91:return this.parseForStatement(H);case 68:if(this.lookaheadCharCode()===46)break;if(!V)this.raise(this.state.strict?A.StrictFunction:this.options.annexB?A.SloppyFunctionAnnexB:A.SloppyFunction,this.state.startLoc);return this.parseFunctionStatement(H,!1,!Z&&V);case 80:if(!Z)this.unexpected();return this.parseClass(this.maybeTakeDecorators(J,H),!0);case 69:return this.parseIfStatement(H);case 70:return this.parseReturnStatement(H);case 71:return this.parseSwitchStatement(H);case 72:return this.parseThrowStatement(H);case 73:return this.parseTryStatement(H);case 96:if(!this.state.containsEsc&&this.startsAwaitUsing()){if(!this.recordAwaitIfAllowed())this.raise(A.AwaitUsingNotInAsyncContext,H);else if(!Z)this.raise(A.UnexpectedLexicalDeclaration,H);return this.next(),this.parseVarStatement(H,"await using")}break;case 107:if(this.state.containsEsc||!this.hasInLineFollowingBindingIdentifierOrBrace())break;if(this.expectPlugin("explicitResourceManagement"),!this.scope.inModule&&this.scope.inTopLevel)this.raise(A.UnexpectedUsingDeclaration,this.state.startLoc);else if(!Z)this.raise(A.UnexpectedLexicalDeclaration,this.state.startLoc);return this.parseVarStatement(H,"using");case 100:{if(this.state.containsEsc)break;const z=this.nextTokenStart(),B=this.codePointAtPos(z);if(B!==91){if(!Z&&this.hasFollowingLineBreak())break;if(!this.chStartsBindingIdentifier(B,z)&&B!==123)break}}case 75:if(!Z)this.raise(A.UnexpectedLexicalDeclaration,this.state.startLoc);case 74:{const z=this.state.value;return this.parseVarStatement(H,z)}case 92:return this.parseWhileStatement(H);case 76:return this.parseWithStatement(H);case 5:return this.parseBlock();case 13:return this.parseEmptyStatement(H);case 83:{const z=this.lookaheadCharCode();if(z===40||z===46)break}case 82:{if(!this.options.allowImportExportEverywhere&&!Q)this.raise(A.UnexpectedImportExport,this.state.startLoc);this.next();let z;if(X===83){if(z=this.parseImport(H),z.type==="ImportDeclaration"&&(!z.importKind||z.importKind==="value"))this.sawUnambiguousESM=!0}else if(z=this.parseExport(H,J),z.type==="ExportNamedDeclaration"&&(!z.exportKind||z.exportKind==="value")||z.type==="ExportAllDeclaration"&&(!z.exportKind||z.exportKind==="value")||z.type==="ExportDefaultDeclaration")this.sawUnambiguousESM=!0;return this.assertModuleNodeAllowed(z),z}default:if(this.isAsyncFunction()){if(!Z)this.raise(A.AsyncFunctionInSingleStatementContext,this.state.startLoc);return this.next(),this.parseFunctionStatement(H,!0,!Z&&V)}}const Y=this.state.value,W=this.parseExpression();if(N1(X)&&W.type==="Identifier"&&this.eat(14))return this.parseLabeledStatement(H,Y,W,G);else return this.parseExpressionStatement(H,W,J)}assertModuleNodeAllowed(G){if(!this.options.allowImportExportEverywhere&&!this.inModule)this.raise(A.ImportOutsideModule,G)}decoratorsEnabledBeforeExport(){if(this.hasPlugin("decorators-legacy"))return!0;return this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")!==!1}maybeTakeDecorators(G,J,X){if(G){if(J.decorators&&J.decorators.length>0){if(typeof this.getPluginOption("decorators","decoratorsBeforeExport")!=="boolean")this.raise(A.DecoratorsBeforeAfterExport,J.decorators[0]);J.decorators.unshift(...G)}else J.decorators=G;if(this.resetStartLocationFromNode(J,G[0]),X)this.resetStartLocationFromNode(X,J)}return J}canHaveLeadingDecorator(){return this.match(80)}parseDecorators(G){const J=[];do J.push(this.parseDecorator());while(this.match(26));if(this.match(82)){if(!G)this.unexpected();if(!this.decoratorsEnabledBeforeExport())this.raise(A.DecoratorExportClass,this.state.startLoc)}else if(!this.canHaveLeadingDecorator())throw this.raise(A.UnexpectedLeadingDecorator,this.state.startLoc);return J}parseDecorator(){this.expectOnePlugin(["decorators","decorators-legacy"]);const G=this.startNode();if(this.next(),this.hasPlugin("decorators")){const J=this.state.startLoc;let X;if(this.match(10)){const H=this.state.startLoc;this.next(),X=this.parseExpression(),this.expect(11),X=this.wrapParenthesis(H,X);const Z=this.state.startLoc;if(G.expression=this.parseMaybeDecoratorArguments(X),this.getPluginOption("decorators","allowCallParenthesized")===!1&&G.expression!==X)this.raise(A.DecoratorArgumentsOutsideParentheses,Z)}else{X=this.parseIdentifier(!1);while(this.eat(16)){const H=this.startNodeAt(J);if(H.object=X,this.match(138))this.classScope.usePrivateName(this.state.value,this.state.startLoc),H.property=this.parsePrivateName();else H.property=this.parseIdentifier(!0);H.computed=!1,X=this.finishNode(H,"MemberExpression")}G.expression=this.parseMaybeDecoratorArguments(X)}}else G.expression=this.parseExprSubscripts();return this.finishNode(G,"Decorator")}parseMaybeDecoratorArguments(G){if(this.eat(10)){const J=this.startNodeAtNode(G);return J.callee=G,J.arguments=this.parseCallExpressionArguments(11,!1),this.toReferencedList(J.arguments),this.finishNode(J,"CallExpression")}return G}parseBreakContinueStatement(G,J){if(this.next(),this.isLineTerminator())G.label=null;else G.label=this.parseIdentifier(),this.semicolon();return this.verifyBreakContinue(G,J),this.finishNode(G,J?"BreakStatement":"ContinueStatement")}verifyBreakContinue(G,J){let X;for(X=0;X<this.state.labels.length;++X){const H=this.state.labels[X];if(G.label==null||H.name===G.label.name){if(H.kind!=null&&(J||H.kind===1))break;if(G.label&&J)break}}if(X===this.state.labels.length){const H=J?"BreakStatement":"ContinueStatement";this.raise(A.IllegalBreakContinue,G,{type:H})}}parseDebuggerStatement(G){return this.next(),this.semicolon(),this.finishNode(G,"DebuggerStatement")}parseHeaderExpression(){this.expect(10);const G=this.parseExpression();return this.expect(11),G}parseDoWhileStatement(G){return this.next(),this.state.labels.push(T7),G.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.state.labels.pop(),this.expect(92),G.test=this.parseHeaderExpression(),this.eat(13),this.finishNode(G,"DoWhileStatement")}parseForStatement(G){this.next(),this.state.labels.push(T7);let J=null;if(this.isContextual(96)&&this.recordAwaitIfAllowed())J=this.state.startLoc,this.next();if(this.scope.enter(0),this.expect(10),this.match(13)){if(J!==null)this.unexpected(J);return this.parseFor(G,null)}const X=this.isContextual(100);{const Y=this.isContextual(96)&&this.startsAwaitUsing(),W=Y||this.isContextual(107)&&this.startsUsingForOf(),z=X&&this.hasFollowingBindingAtom()||W;if(this.match(74)||this.match(75)||z){const B=this.startNode();let q;if(Y){if(q="await using",!this.recordAwaitIfAllowed())this.raise(A.AwaitUsingNotInAsyncContext,this.state.startLoc);this.next()}else q=this.state.value;this.next(),this.parseVar(B,!0,q);const F=this.finishNode(B,"VariableDeclaration"),j=this.match(58);if(j&&W)this.raise(A.ForInUsing,F);if((j||this.isContextual(102))&&F.declarations.length===1)return this.parseForIn(G,F,J);if(J!==null)this.unexpected(J);return this.parseFor(G,F)}}const H=this.isContextual(95),Z=new g9,V=this.parseExpression(!0,Z),Q=this.isContextual(102);if(Q){if(X)this.raise(A.ForOfLet,V);if(J===null&&H&&V.type==="Identifier")this.raise(A.ForOfAsync,V)}if(Q||this.match(58)){this.checkDestructuringPrivate(Z),this.toAssignable(V,!0);const Y=Q?"ForOfStatement":"ForInStatement";return this.checkLVal(V,{type:Y}),this.parseForIn(G,V,J)}else this.checkExpressionErrors(Z,!0);if(J!==null)this.unexpected(J);return this.parseFor(G,V)}parseFunctionStatement(G,J,X){return this.next(),this.parseFunction(G,1|(X?2:0)|(J?8:0))}parseIfStatement(G){return this.next(),G.test=this.parseHeaderExpression(),G.consequent=this.parseStatementOrSloppyAnnexBFunctionDeclaration(),G.alternate=this.eat(66)?this.parseStatementOrSloppyAnnexBFunctionDeclaration():null,this.finishNode(G,"IfStatement")}parseReturnStatement(G){if(!this.prodParam.hasReturn&&!this.options.allowReturnOutsideFunction)this.raise(A.IllegalReturn,this.state.startLoc);if(this.next(),this.isLineTerminator())G.argument=null;else G.argument=this.parseExpression(),this.semicolon();return this.finishNode(G,"ReturnStatement")}parseSwitchStatement(G){this.next(),G.discriminant=this.parseHeaderExpression();const J=G.cases=[];this.expect(5),this.state.labels.push(VU1),this.scope.enter(0);let X;for(let H;!this.match(8);)if(this.match(61)||this.match(65)){const Z=this.match(61);if(X)this.finishNode(X,"SwitchCase");if(J.push(X=this.startNode()),X.consequent=[],this.next(),Z)X.test=this.parseExpression();else{if(H)this.raise(A.MultipleDefaultsInSwitch,this.state.lastTokStartLoc);H=!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(G,"SwitchStatement")}parseThrowStatement(G){if(this.next(),this.hasPrecedingLineBreak())this.raise(A.NewlineAfterThrow,this.state.lastTokEndLoc);return G.argument=this.parseExpression(),this.semicolon(),this.finishNode(G,"ThrowStatement")}parseCatchClauseParam(){const G=this.parseBindingAtom();return this.scope.enter(this.options.annexB&&G.type==="Identifier"?8:0),this.checkLVal(G,{type:"CatchClause"},9),G}parseTryStatement(G){if(this.next(),G.block=this.parseBlock(),G.handler=null,this.match(62)){const J=this.startNode();if(this.next(),this.match(10))this.expect(10),J.param=this.parseCatchClauseParam(),this.expect(11);else J.param=null,this.scope.enter(0);J.body=this.withSmartMixTopicForbiddingContext(()=>this.parseBlock(!1,!1)),this.scope.exit(),G.handler=this.finishNode(J,"CatchClause")}if(G.finalizer=this.eat(67)?this.parseBlock():null,!G.handler&&!G.finalizer)this.raise(A.NoCatchOrFinally,G);return this.finishNode(G,"TryStatement")}parseVarStatement(G,J,X=!1){return this.next(),this.parseVar(G,!1,J,X),this.semicolon(),this.finishNode(G,"VariableDeclaration")}parseWhileStatement(G){return this.next(),G.test=this.parseHeaderExpression(),this.state.labels.push(T7),G.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.state.labels.pop(),this.finishNode(G,"WhileStatement")}parseWithStatement(G){if(this.state.strict)this.raise(A.StrictWith,this.state.startLoc);return this.next(),G.object=this.parseHeaderExpression(),G.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.finishNode(G,"WithStatement")}parseEmptyStatement(G){return this.next(),this.finishNode(G,"EmptyStatement")}parseLabeledStatement(G,J,X,H){for(let V of this.state.labels)if(V.name===J)this.raise(A.LabelRedeclaration,X,{labelName:J});const Z=Uz1(this.state.type)?1:this.match(71)?2:null;for(let V=this.state.labels.length-1;V>=0;V--){const Q=this.state.labels[V];if(Q.statementStart===G.start)Q.statementStart=this.state.start,Q.kind=Z;else break}return this.state.labels.push({name:J,kind:Z,statementStart:this.state.start}),G.body=H&8?this.parseStatementOrSloppyAnnexBFunctionDeclaration(!0):this.parseStatement(),this.state.labels.pop(),G.label=X,this.finishNode(G,"LabeledStatement")}parseExpressionStatement(G,J,X){return G.expression=J,this.semicolon(),this.finishNode(G,"ExpressionStatement")}parseBlock(G=!1,J=!0,X){const H=this.startNode();if(G)this.state.strictErrors.clear();if(this.expect(5),J)this.scope.enter(0);if(this.parseBlockBody(H,G,!1,8,X),J)this.scope.exit();return this.finishNode(H,"BlockStatement")}isValidDirective(G){return G.type==="ExpressionStatement"&&G.expression.type==="StringLiteral"&&!G.expression.extra.parenthesized}parseBlockBody(G,J,X,H,Z){const V=G.body=[],Q=G.directives=[];this.parseBlockOrModuleBlockBody(V,J?Q:void 0,X,H,Z)}parseBlockOrModuleBlockBody(G,J,X,H,Z){const V=this.state.strict;let Q=!1,Y=!1;while(!this.match(H)){const W=X?this.parseModuleItem():this.parseStatementListItem();if(J&&!Y){if(this.isValidDirective(W)){const z=this.stmtToDirective(W);if(J.push(z),!Q&&z.value.value==="use strict")Q=!0,this.setStrict(!0);continue}Y=!0,this.state.strictErrors.clear()}G.push(W)}if(Z==null||Z.call(this,Q),!V)this.setStrict(!1);this.next()}parseFor(G,J){return G.init=J,this.semicolon(!1),G.test=this.match(13)?null:this.parseExpression(),this.semicolon(!1),G.update=this.match(11)?null:this.parseExpression(),this.expect(11),G.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.scope.exit(),this.state.labels.pop(),this.finishNode(G,"ForStatement")}parseForIn(G,J,X){const H=this.match(58);if(this.next(),H){if(X!==null)this.unexpected(X)}else G.await=X!==null;if(J.type==="VariableDeclaration"&&J.declarations[0].init!=null&&(!H||!this.options.annexB||this.state.strict||J.kind!=="var"||J.declarations[0].id.type!=="Identifier"))this.raise(A.ForInOfLoopInitializer,J,{type:H?"ForInStatement":"ForOfStatement"});if(J.type==="AssignmentPattern")this.raise(A.InvalidLhs,J,{ancestor:{type:"ForStatement"}});return G.left=J,G.right=H?this.parseExpression():this.parseMaybeAssignAllowIn(),this.expect(11),G.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.scope.exit(),this.state.labels.pop(),this.finishNode(G,H?"ForInStatement":"ForOfStatement")}parseVar(G,J,X,H=!1){const Z=G.declarations=[];G.kind=X;for(;;){const V=this.startNode();if(this.parseVarId(V,X),V.init=!this.eat(29)?null:J?this.parseMaybeAssignDisallowIn():this.parseMaybeAssignAllowIn(),V.init===null&&!H){if(V.id.type!=="Identifier"&&!(J&&(this.match(58)||this.isContextual(102))))this.raise(A.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:"destructuring"});else if((X==="const"||X==="using"||X==="await using")&&!(this.match(58)||this.isContextual(102)))this.raise(A.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:X})}if(Z.push(this.finishNode(V,"VariableDeclarator")),!this.eat(12))break}return G}parseVarId(G,J){const X=this.parseBindingAtom();if(J==="using"||J==="await using"){if(X.type==="ArrayPattern"||X.type==="ObjectPattern")this.raise(A.UsingDeclarationHasBindingPattern,X.loc.start)}this.checkLVal(X,{type:"VariableDeclarator"},J==="var"?5:8201),G.id=X}parseAsyncFunctionExpression(G){return this.parseFunction(G,8)}parseFunction(G,J=0){const X=J&2,H=!!(J&1),Z=H&&!(J&4),V=!!(J&8);if(this.initFunction(G,V),this.match(55)){if(X)this.raise(A.GeneratorInSingleStatementContext,this.state.startLoc);this.next(),G.generator=!0}if(H)G.id=this.parseFunctionId(Z);const Q=this.state.maybeInArrowParameters;if(this.state.maybeInArrowParameters=!1,this.scope.enter(2),this.prodParam.enter(hG(V,G.generator)),!H)G.id=this.parseFunctionId();if(this.parseFunctionParams(G,!1),this.withSmartMixTopicForbiddingContext(()=>{this.parseFunctionBodyAndFinish(G,H?"FunctionDeclaration":"FunctionExpression")}),this.prodParam.exit(),this.scope.exit(),H&&!X)this.registerFunctionStatementId(G);return this.state.maybeInArrowParameters=Q,G}parseFunctionId(G){return G||N1(this.state.type)?this.parseIdentifier():null}parseFunctionParams(G,J){this.expect(10),this.expressionScope.enter(_z1()),G.params=this.parseBindingList(11,41,2|(J?4:0)),this.expressionScope.exit()}registerFunctionStatementId(G){if(!G.id)return;this.scope.declareName(G.id.name,!this.options.annexB||this.state.strict||G.generator||G.async?this.scope.treatFunctionsAsVar?5:8201:17,G.id.loc.start)}parseClass(G,J,X){this.next();const H=this.state.strict;return this.state.strict=!0,this.parseClassId(G,J,X),this.parseClassSuper(G),G.body=this.parseClassBody(!!G.superClass,H),this.finishNode(G,J?"ClassDeclaration":"ClassExpression")}isClassProperty(){return this.match(29)||this.match(13)||this.match(8)}isClassMethod(){return this.match(10)}nameIsConstructor(G){return G.type==="Identifier"&&G.name==="constructor"||G.type==="StringLiteral"&&G.value==="constructor"}isNonstaticConstructor(G){return!G.computed&&!G.static&&this.nameIsConstructor(G.key)}parseClassBody(G,J){this.classScope.enter();const X={hadConstructor:!1,hadSuperClass:G};let H=[];const Z=this.startNode();if(Z.body=[],this.expect(5),this.withSmartMixTopicForbiddingContext(()=>{while(!this.match(8)){if(this.eat(13)){if(H.length>0)throw this.raise(A.DecoratorSemicolon,this.state.lastTokEndLoc);continue}if(this.match(26)){H.push(this.parseDecorator());continue}const V=this.startNode();if(H.length)V.decorators=H,this.resetStartLocationFromNode(V,H[0]),H=[];if(this.parseClassMember(Z,V,X),V.kind==="constructor"&&V.decorators&&V.decorators.length>0)this.raise(A.DecoratorConstructor,V)}}),this.state.strict=J,this.next(),H.length)throw this.raise(A.TrailingDecorator,this.state.startLoc);return this.classScope.exit(),this.finishNode(Z,"ClassBody")}parseClassMemberFromModifier(G,J){const X=this.parseIdentifier(!0);if(this.isClassMethod()){const H=J;return H.kind="method",H.computed=!1,H.key=X,H.static=!1,this.pushClassMethod(G,H,!1,!1,!1,!1),!0}else if(this.isClassProperty()){const H=J;return H.computed=!1,H.key=X,H.static=!1,G.body.push(this.parseClassProperty(H)),!0}return this.resetPreviousNodeTrailingComments(X),!1}parseClassMember(G,J,X){const H=this.isContextual(106);if(H){if(this.parseClassMemberFromModifier(G,J))return;if(this.eat(5)){this.parseClassStaticBlock(G,J);return}}this.parseClassMemberWithIsStatic(G,J,X,H)}parseClassMemberWithIsStatic(G,J,X,H){const Z=J,V=J,Q=J,Y=J,W=J,z=Z,B=Z;if(J.static=H,this.parsePropertyNamePrefixOperator(J),this.eat(55)){z.kind="method";const w=this.match(138);if(this.parseClassElementName(z),w){this.pushClassPrivateMethod(G,V,!0,!1);return}if(this.isNonstaticConstructor(Z))this.raise(A.ConstructorIsGenerator,Z.key);this.pushClassMethod(G,Z,!0,!1,!1,!1);return}const q=!this.state.containsEsc&&N1(this.state.type),F=this.parseClassElementName(J),j=q?F.name:null,f=this.isPrivateName(F),h=this.state.startLoc;if(this.parsePostMemberNameModifiers(B),this.isClassMethod()){if(z.kind="method",f){this.pushClassPrivateMethod(G,V,!1,!1);return}const w=this.isNonstaticConstructor(Z);let v=!1;if(w){if(Z.kind="constructor",X.hadConstructor&&!this.hasPlugin("typescript"))this.raise(A.DuplicateConstructor,F);if(w&&this.hasPlugin("typescript")&&J.override)this.raise(A.OverrideOnConstructor,F);X.hadConstructor=!0,v=X.hadSuperClass}this.pushClassMethod(G,Z,!1,!1,w,v)}else if(this.isClassProperty())if(f)this.pushClassPrivateProperty(G,Y);else this.pushClassProperty(G,Q);else if(j==="async"&&!this.isLineTerminator()){this.resetPreviousNodeTrailingComments(F);const w=this.eat(55);if(B.optional)this.unexpected(h);z.kind="method";const v=this.match(138);if(this.parseClassElementName(z),this.parsePostMemberNameModifiers(B),v)this.pushClassPrivateMethod(G,V,w,!0);else{if(this.isNonstaticConstructor(Z))this.raise(A.ConstructorIsAsync,Z.key);this.pushClassMethod(G,Z,w,!0,!1,!1)}}else if((j==="get"||j==="set")&&!(this.match(55)&&this.isLineTerminator())){this.resetPreviousNodeTrailingComments(F),z.kind=j;const w=this.match(138);if(this.parseClassElementName(Z),w)this.pushClassPrivateMethod(G,V,!1,!1);else{if(this.isNonstaticConstructor(Z))this.raise(A.ConstructorIsAccessor,Z.key);this.pushClassMethod(G,Z,!1,!1,!1,!1)}this.checkGetterSetterParams(Z)}else if(j==="accessor"&&!this.isLineTerminator()){this.expectPlugin("decoratorAutoAccessors"),this.resetPreviousNodeTrailingComments(F);const w=this.match(138);this.parseClassElementName(Q),this.pushClassAccessorProperty(G,W,w)}else if(this.isLineTerminator())if(f)this.pushClassPrivateProperty(G,Y);else this.pushClassProperty(G,Q);else this.unexpected()}parseClassElementName(G){const{type:J,value:X}=this.state;if((J===132||J===133)&&G.static&&X==="prototype")this.raise(A.StaticPrototype,this.state.startLoc);if(J===138){if(X==="constructor")this.raise(A.ConstructorClassPrivateField,this.state.startLoc);const H=this.parsePrivateName();return G.key=H,H}return this.parsePropertyName(G),G.key}parseClassStaticBlock(G,J){var X;this.scope.enter(208);const H=this.state.labels;this.state.labels=[],this.prodParam.enter(0);const Z=J.body=[];if(this.parseBlockOrModuleBlockBody(Z,void 0,!1,8),this.prodParam.exit(),this.scope.exit(),this.state.labels=H,G.body.push(this.finishNode(J,"StaticBlock")),(X=J.decorators)!=null&&X.length)this.raise(A.DecoratorStaticBlock,J)}pushClassProperty(G,J){if(!J.computed&&this.nameIsConstructor(J.key))this.raise(A.ConstructorClassField,J.key);G.body.push(this.parseClassProperty(J))}pushClassPrivateProperty(G,J){const X=this.parseClassPrivateProperty(J);G.body.push(X),this.classScope.declarePrivateName(this.getPrivateNameSV(X.key),0,X.key.loc.start)}pushClassAccessorProperty(G,J,X){if(!X&&!J.computed&&this.nameIsConstructor(J.key))this.raise(A.ConstructorClassField,J.key);const H=this.parseClassAccessorProperty(J);if(G.body.push(H),X)this.classScope.declarePrivateName(this.getPrivateNameSV(H.key),0,H.key.loc.start)}pushClassMethod(G,J,X,H,Z,V){G.body.push(this.parseMethod(J,X,H,Z,V,"ClassMethod",!0))}pushClassPrivateMethod(G,J,X,H){const Z=this.parseMethod(J,X,H,!1,!1,"ClassPrivateMethod",!0);G.body.push(Z);const V=Z.kind==="get"?Z.static?6:2:Z.kind==="set"?Z.static?5:1:0;this.declareClassPrivateMethodInScope(Z,V)}declareClassPrivateMethodInScope(G,J){this.classScope.declarePrivateName(this.getPrivateNameSV(G.key),J,G.key.loc.start)}parsePostMemberNameModifiers(G){}parseClassPrivateProperty(G){return this.parseInitializer(G),this.semicolon(),this.finishNode(G,"ClassPrivateProperty")}parseClassProperty(G){return this.parseInitializer(G),this.semicolon(),this.finishNode(G,"ClassProperty")}parseClassAccessorProperty(G){return this.parseInitializer(G),this.semicolon(),this.finishNode(G,"ClassAccessorProperty")}parseInitializer(G){this.scope.enter(80),this.expressionScope.enter(IK()),this.prodParam.enter(0),G.value=this.eat(29)?this.parseMaybeAssignAllowIn():null,this.expressionScope.exit(),this.prodParam.exit(),this.scope.exit()}parseClassId(G,J,X,H=8331){if(N1(this.state.type)){if(G.id=this.parseIdentifier(),J)this.declareNameFromIdentifier(G.id,H)}else if(X||!J)G.id=null;else throw this.raise(A.MissingClassName,this.state.startLoc)}parseClassSuper(G){G.superClass=this.eat(81)?this.parseExprSubscripts():null}parseExport(G,J){const X=this.parseMaybeImportPhase(G,!0),H=this.maybeParseExportDefaultSpecifier(G,X),Z=!H||this.eat(12),V=Z&&this.eatExportStar(G),Q=V&&this.maybeParseExportNamespaceSpecifier(G),Y=Z&&(!Q||this.eat(12)),W=H||V;if(V&&!Q){if(H)this.unexpected();if(J)throw this.raise(A.UnsupportedDecoratorExport,G);return this.parseExportFrom(G,!0),this.finishNode(G,"ExportAllDeclaration")}const z=this.maybeParseExportNamedSpecifiers(G);if(H&&Z&&!V&&!z)this.unexpected(null,5);if(Q&&Y)this.unexpected(null,98);let B;if(W||z){if(B=!1,J)throw this.raise(A.UnsupportedDecoratorExport,G);this.parseExportFrom(G,W)}else B=this.maybeParseExportDeclaration(G);if(W||z||B){var q;const F=G;if(this.checkExport(F,!0,!1,!!F.source),((q=F.declaration)==null?void 0:q.type)==="ClassDeclaration")this.maybeTakeDecorators(J,F.declaration,F);else if(J)throw this.raise(A.UnsupportedDecoratorExport,G);return this.finishNode(F,"ExportNamedDeclaration")}if(this.eat(65)){const F=G,j=this.parseExportDefaultExpression();if(F.declaration=j,j.type==="ClassDeclaration")this.maybeTakeDecorators(J,j,F);else if(J)throw this.raise(A.UnsupportedDecoratorExport,G);return this.checkExport(F,!0,!0),this.finishNode(F,"ExportDefaultDeclaration")}this.unexpected(null,5)}eatExportStar(G){return this.eat(55)}maybeParseExportDefaultSpecifier(G,J){if(J||this.isExportDefaultSpecifier()){this.expectPlugin("exportDefaultFrom",J==null?void 0:J.loc.start);const X=J||this.parseIdentifier(!0),H=this.startNodeAtNode(X);return H.exported=X,G.specifiers=[this.finishNode(H,"ExportDefaultSpecifier")],!0}return!1}maybeParseExportNamespaceSpecifier(G){if(this.isContextual(93)){var J,X;(X=(J=G).specifiers)!=null||(J.specifiers=[]);const H=this.startNodeAt(this.state.lastTokStartLoc);return this.next(),H.exported=this.parseModuleExportName(),G.specifiers.push(this.finishNode(H,"ExportNamespaceSpecifier")),!0}return!1}maybeParseExportNamedSpecifiers(G){if(this.match(5)){const J=G;if(!J.specifiers)J.specifiers=[];const X=J.exportKind==="type";if(J.specifiers.push(...this.parseExportSpecifiers(X)),J.source=null,J.declaration=null,this.hasPlugin("importAssertions"))J.assertions=[];return!0}return!1}maybeParseExportDeclaration(G){if(this.shouldParseExportDeclaration()){if(G.specifiers=[],G.source=null,this.hasPlugin("importAssertions"))G.assertions=[];return G.declaration=this.parseExportDeclaration(G),!0}return!1}isAsyncFunction(){if(!this.isContextual(95))return!1;const G=this.nextTokenInLineStart();return this.isUnparsedContextual(G,"function")}parseExportDefaultExpression(){const G=this.startNode();if(this.match(68))return this.next(),this.parseFunction(G,5);else if(this.isAsyncFunction())return this.next(),this.next(),this.parseFunction(G,13);if(this.match(80))return this.parseClass(G,!0,!0);if(this.match(26)){if(this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")===!0)this.raise(A.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(A.UnsupportedDefaultExport,this.state.startLoc);const J=this.parseMaybeAssignAllowIn();return this.semicolon(),J}parseExportDeclaration(G){if(this.match(80))return this.parseClass(this.startNode(),!0,!1);return this.parseStatementListItem()}isExportDefaultSpecifier(){const{type:G}=this.state;if(N1(G)){if(G===95&&!this.state.containsEsc||G===100)return!1;if((G===130||G===129)&&!this.state.containsEsc){const{type:H}=this.lookahead();if(N1(H)&&H!==98||H===5)return this.expectOnePlugin(["flow","typescript"]),!1}}else if(!this.match(65))return!1;const J=this.nextTokenStart(),X=this.isUnparsedContextual(J,"from");if(this.input.charCodeAt(J)===44||N1(this.state.type)&&X)return!0;if(this.match(65)&&X){const H=this.input.charCodeAt(this.nextTokenStartSince(J+4));return H===34||H===39}return!1}parseExportFrom(G,J){if(this.eatContextual(98))G.source=this.parseImportSource(),this.checkExport(G),this.maybeParseImportAttributes(G),this.checkJSONModuleImport(G);else if(J)this.unexpected();this.semicolon()}shouldParseExportDeclaration(){const{type:G}=this.state;if(G===26){if(this.expectOnePlugin(["decorators","decorators-legacy"]),this.hasPlugin("decorators")){if(this.getPluginOption("decorators","decoratorsBeforeExport")===!0)this.raise(A.DecoratorBeforeExport,this.state.startLoc);return!0}}if(this.isContextual(107))return this.raise(A.UsingDeclarationExport,this.state.startLoc),!0;if(this.isContextual(96)&&this.startsAwaitUsing())return this.raise(A.UsingDeclarationExport,this.state.startLoc),!0;return G===74||G===75||G===68||G===80||this.isLet()||this.isAsyncFunction()}checkExport(G,J,X,H){if(J){var Z;if(X){if(this.checkDuplicateExports(G,"default"),this.hasPlugin("exportDefaultFrom")){var V;const Q=G.declaration;if(Q.type==="Identifier"&&Q.name==="from"&&Q.end-Q.start===4&&!((V=Q.extra)!=null&&V.parenthesized))this.raise(A.ExportDefaultFromAsIdentifier,Q)}}else if((Z=G.specifiers)!=null&&Z.length)for(let Q of G.specifiers){const{exported:Y}=Q,W=Y.type==="Identifier"?Y.name:Y.value;if(this.checkDuplicateExports(Q,W),!H&&Q.local){const{local:z}=Q;if(z.type!=="Identifier")this.raise(A.ExportBindingIsString,Q,{localName:z.value,exportName:W});else this.checkReservedWord(z.name,z.loc.start,!0,!1),this.scope.checkLocalExport(z)}}else if(G.declaration){const Q=G.declaration;if(Q.type==="FunctionDeclaration"||Q.type==="ClassDeclaration"){const{id:Y}=Q;if(!Y)throw new Error("Assertion failure");this.checkDuplicateExports(G,Y.name)}else if(Q.type==="VariableDeclaration")for(let Y of Q.declarations)this.checkDeclaration(Y.id)}}}checkDeclaration(G){if(G.type==="Identifier")this.checkDuplicateExports(G,G.name);else if(G.type==="ObjectPattern")for(let J of G.properties)this.checkDeclaration(J);else if(G.type==="ArrayPattern"){for(let J of G.elements)if(J)this.checkDeclaration(J)}else if(G.type==="ObjectProperty")this.checkDeclaration(G.value);else if(G.type==="RestElement")this.checkDeclaration(G.argument);else if(G.type==="AssignmentPattern")this.checkDeclaration(G.left)}checkDuplicateExports(G,J){if(this.exportedIdentifiers.has(J))if(J==="default")this.raise(A.DuplicateDefaultExport,G);else this.raise(A.DuplicateExport,G,{exportName:J});this.exportedIdentifiers.add(J)}parseExportSpecifiers(G){const J=[];let X=!0;this.expect(5);while(!this.eat(8)){if(X)X=!1;else if(this.expect(12),this.eat(8))break;const H=this.isContextual(130),Z=this.match(133),V=this.startNode();V.local=this.parseModuleExportName(),J.push(this.parseExportSpecifier(V,Z,G,H))}return J}parseExportSpecifier(G,J,X,H){if(this.eatContextual(93))G.exported=this.parseModuleExportName();else if(J)G.exported=yz1(G.local);else if(!G.exported)G.exported=q0(G.local);return this.finishNode(G,"ExportSpecifier")}parseModuleExportName(){if(this.match(133)){const G=this.parseStringLiteral(this.state.value),J=QU1.exec(G.value);if(J)this.raise(A.ModuleExportNameHasLoneSurrogate,G,{surrogateCharCode:J[0].charCodeAt(0)});return G}return this.parseIdentifier(!0)}isJSONModuleImport(G){if(G.assertions!=null)return G.assertions.some(({key:J,value:X})=>{return X.value==="json"&&(J.type==="Identifier"?J.name==="type":J.value==="type")});return!1}checkImportReflection(G){const{specifiers:J}=G,X=J.length===1?J[0].type:null;if(G.phase==="source"){if(X!=="ImportDefaultSpecifier")this.raise(A.SourcePhaseImportRequiresDefault,J[0].loc.start)}else if(G.phase==="defer"){if(X!=="ImportNamespaceSpecifier")this.raise(A.DeferImportRequiresNamespace,J[0].loc.start)}else if(G.module){var H;if(X!=="ImportDefaultSpecifier")this.raise(A.ImportReflectionNotBinding,J[0].loc.start);if(((H=G.assertions)==null?void 0:H.length)>0)this.raise(A.ImportReflectionHasAssertion,J[0].loc.start)}}checkJSONModuleImport(G){if(this.isJSONModuleImport(G)&&G.type!=="ExportAllDeclaration"){const{specifiers:J}=G;if(J!=null){const X=J.find((H)=>{let Z;if(H.type==="ExportSpecifier")Z=H.local;else if(H.type==="ImportSpecifier")Z=H.imported;if(Z!==void 0)return Z.type==="Identifier"?Z.name!=="default":Z.value!=="default"});if(X!==void 0)this.raise(A.ImportJSONBindingNotDefault,X.loc.start)}}}isPotentialImportPhase(G){if(G)return!1;return this.isContextual(105)||this.isContextual(97)||this.isContextual(127)}applyImportPhase(G,J,X,H){if(J)return;if(X==="module")this.expectPlugin("importReflection",H),G.module=!0;else if(this.hasPlugin("importReflection"))G.module=!1;if(X==="source")this.expectPlugin("sourcePhaseImports",H),G.phase="source";else if(X==="defer")this.expectPlugin("deferredImportEvaluation",H),G.phase="defer";else if(this.hasPlugin("sourcePhaseImports"))G.phase=null}parseMaybeImportPhase(G,J){if(!this.isPotentialImportPhase(J))return this.applyImportPhase(G,J,null),null;const X=this.parseIdentifier(!0),{type:H}=this.state;if(x2(H)?H!==98||this.lookaheadCharCode()===102:H!==12)return this.resetPreviousIdentifierLeadingComments(X),this.applyImportPhase(G,J,X.name,X.loc.start),null;else return this.applyImportPhase(G,J,null),X}isPrecedingIdImportPhase(G){const{type:J}=this.state;return N1(J)?J!==98||this.lookaheadCharCode()===102:J!==12}parseImport(G){if(this.match(133))return this.parseImportSourceAndAttributes(G);return this.parseImportSpecifiersAndAfter(G,this.parseMaybeImportPhase(G,!1))}parseImportSpecifiersAndAfter(G,J){G.specifiers=[];const H=!this.maybeParseDefaultImportSpecifier(G,J)||this.eat(12),Z=H&&this.maybeParseStarImportSpecifier(G);if(H&&!Z)this.parseNamedImportSpecifiers(G);return this.expectContextual(98),this.parseImportSourceAndAttributes(G)}parseImportSourceAndAttributes(G){var J;return(J=G.specifiers)!=null||(G.specifiers=[]),G.source=this.parseImportSource(),this.maybeParseImportAttributes(G),this.checkImportReflection(G),this.checkJSONModuleImport(G),this.semicolon(),this.finishNode(G,"ImportDeclaration")}parseImportSource(){if(!this.match(133))this.unexpected();return this.parseExprAtom()}parseImportSpecifierLocal(G,J,X){J.local=this.parseIdentifier(),G.specifiers.push(this.finishImportSpecifier(J,X))}finishImportSpecifier(G,J,X=8201){return this.checkLVal(G.local,{type:J},X),this.finishNode(G,J)}parseImportAttributes(){this.expect(5);const G=[],J=new Set;do{if(this.match(8))break;const X=this.startNode(),H=this.state.value;if(J.has(H))this.raise(A.ModuleAttributesWithDuplicateKeys,this.state.startLoc,{key:H});if(J.add(H),this.match(133))X.key=this.parseStringLiteral(H);else X.key=this.parseIdentifier(!0);if(this.expect(14),!this.match(133))throw this.raise(A.ModuleAttributeInvalidValue,this.state.startLoc);X.value=this.parseStringLiteral(this.state.value),G.push(this.finishNode(X,"ImportAttribute"))}while(this.eat(12));return this.expect(8),G}parseModuleAttributes(){const G=[],J=new Set;do{const X=this.startNode();if(X.key=this.parseIdentifier(!0),X.key.name!=="type")this.raise(A.ModuleAttributeDifferentFromType,X.key);if(J.has(X.key.name))this.raise(A.ModuleAttributesWithDuplicateKeys,X.key,{key:X.key.name});if(J.add(X.key.name),this.expect(14),!this.match(133))throw this.raise(A.ModuleAttributeInvalidValue,this.state.startLoc);X.value=this.parseStringLiteral(this.state.value),G.push(this.finishNode(X,"ImportAttribute"))}while(this.eat(12));return G}maybeParseImportAttributes(G){let J;var X=!1;if(this.match(76)){if(this.hasPrecedingLineBreak()&&this.lookaheadCharCode()===40)return;if(this.next(),this.hasPlugin("moduleAttributes"))J=this.parseModuleAttributes();else{if(!this.hasPlugin("importAssertions"))this.expectPlugin("importAttributes");J=this.parseImportAttributes()}X=!0}else if(this.isContextual(94)&&!this.hasPrecedingLineBreak()){if(this.hasPlugin("importAttributes")){if(this.getPluginOption("importAttributes","deprecatedAssertSyntax")!==!0)this.raise(A.ImportAttributesUseAssert,this.state.startLoc);this.addExtra(G,"deprecatedAssertSyntax",!0)}else this.expectOnePlugin(["importAttributes","importAssertions"]);this.next(),J=this.parseImportAttributes()}else if(this.hasPlugin("importAttributes")||this.hasPlugin("importAssertions"))J=[];else if(this.hasPlugin("moduleAttributes"))J=[];else return;if(!X&&this.hasPlugin("importAssertions"))G.assertions=J;else G.attributes=J}maybeParseDefaultImportSpecifier(G,J){if(J){const X=this.startNodeAtNode(J);return X.local=J,G.specifiers.push(this.finishImportSpecifier(X,"ImportDefaultSpecifier")),!0}else if(x2(this.state.type))return this.parseImportSpecifierLocal(G,this.startNode(),"ImportDefaultSpecifier"),!0;return!1}maybeParseStarImportSpecifier(G){if(this.match(55)){const J=this.startNode();return this.next(),this.expectContextual(93),this.parseImportSpecifierLocal(G,J,"ImportNamespaceSpecifier"),!0}return!1}parseNamedImportSpecifiers(G){let J=!0;this.expect(5);while(!this.eat(8)){if(J)J=!1;else{if(this.eat(14))throw this.raise(A.DestructureNamedImport,this.state.startLoc);if(this.expect(12),this.eat(8))break}const X=this.startNode(),H=this.match(133),Z=this.isContextual(130);X.imported=this.parseModuleExportName();const V=this.parseImportSpecifier(X,H,G.importKind==="type"||G.importKind==="typeof",Z,void 0);G.specifiers.push(V)}}parseImportSpecifier(G,J,X,H,Z){if(this.eatContextual(93))G.local=this.parseIdentifier();else{const{imported:V}=G;if(J)throw this.raise(A.ImportBindingIsString,G,{importName:V.value});if(this.checkReservedWord(V.name,G.loc.start,!0,!0),!G.local)G.local=q0(V)}return this.finishImportSpecifier(G,"ImportSpecifier",Z)}isThisParam(G){return G.type==="Identifier"&&G.name==="this"}}class i7 extends OK{constructor(G,J,X){G=ZU1(G);super(G,J);this.options=G,this.initializeScopes(),this.plugins=X,this.filename=G.sourceFilename}getScopeHandler(){return xG}parse(){this.enterInitialScopes();const G=this.startNode(),J=this.startNode();return this.nextToken(),G.errors=null,this.parseTopLevel(G,J),G.errors=this.state.errors,G.comments.length=this.state.commentsLen,G}}var KU1=UU1(Qz1),JK=new Map;vK.parse=WU1;vK.parseExpression=zU1;vK.tokTypes=KU1});var u7=S((_K)=>{Object.defineProperty(_K,"__esModule",{value:!0});_K.Var=_K.User=_K.Statement=_K.SpreadProperty=_K.Scope=_K.RestProperty=_K.ReferencedMemberExpression=_K.ReferencedIdentifier=_K.Referenced=_K.Pure=_K.NumericLiteralTypeAnnotation=_K.Generated=_K.ForAwaitStatement=_K.Flow=_K.Expression=_K.ExistentialTypeParam=_K.BlockScoped=_K.BindingIdentifier=void 0;var N_1=_K.ReferencedIdentifier=["Identifier","JSXIdentifier"],k_1=_K.ReferencedMemberExpression=["MemberExpression"],E_1=_K.BindingIdentifier=["Identifier"],O_1=_K.Statement=["Statement"],v_1=_K.Expression=["Expression"],__1=_K.Scope=["Scopable","Pattern"],g_1=_K.Referenced=null,b_1=_K.BlockScoped=null,h_1=_K.Var=["VariableDeclaration"],y_1=_K.User=null,m_1=_K.Generated=null,x_1=_K.Pure=null,l_1=_K.Flow=["Flow","ImportDeclaration","ExportDeclaration","ImportSpecifier"],c_1=_K.RestProperty=["RestElement"],a_1=_K.SpreadProperty=["RestElement"],r_1=_K.ExistentialTypeParam=["ExistsTypeAnnotation"],i_1=_K.NumericLiteralTypeAnnotation=["NumberLiteralTypeAnnotation"],u_1=_K.ForAwaitStatement=["ForOfStatement"]});var hK=S((s_1,bK)=>{function gU1(G){if(G=String(G),G.length>100)return;var J=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(G);if(!J)return;var X=parseFloat(J[1]),H=(J[2]||"ms").toLowerCase();switch(H){case"years":case"year":case"yrs":case"yr":case"y":return X*_U1;case"weeks":case"week":case"w":return X*vU1;case"days":case"day":case"d":return X*J5;case"hours":case"hour":case"hrs":case"hr":case"h":return X*x5;case"minutes":case"minute":case"mins":case"min":case"m":return X*m5;case"seconds":case"second":case"secs":case"sec":case"s":return X*y5;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return X;default:return}}function bU1(G){var J=Math.abs(G);if(J>=J5)return Math.round(G/J5)+"d";if(J>=x5)return Math.round(G/x5)+"h";if(J>=m5)return Math.round(G/m5)+"m";if(J>=y5)return Math.round(G/y5)+"s";return G+"ms"}function hU1(G){var J=Math.abs(G);if(J>=J5)return cG(G,J,J5,"day");if(J>=x5)return cG(G,J,x5,"hour");if(J>=m5)return cG(G,J,m5,"minute");if(J>=y5)return cG(G,J,y5,"second");return G+" ms"}function cG(G,J,X,H){var Z=J>=X*1.5;return Math.round(G/X)+" "+H+(Z?"s":"")}var y5=1000,m5=y5*60,x5=m5*60,J5=x5*24,vU1=J5*7,_U1=J5*365.25;bK.exports=function(G,J){J=J||{};var X=typeof G;if(X==="string"&&G.length>0)return gU1(G);else if(X==="number"&&isFinite(G))return J.long?hU1(G):bU1(G);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(G))}});var d7=S((p_1,yK)=>{function yU1(G){X.debug=X,X.default=X,X.coerce=W,X.disable=V,X.enable=Z,X.enabled=Q,X.humanize=hK(),X.destroy=z,Object.keys(G).forEach((B)=>{X[B]=G[B]}),X.names=[],X.skips=[],X.formatters={};function J(B){let q=0;for(let F=0;F<B.length;F++)q=(q<<5)-q+B.charCodeAt(F),q|=0;return X.colors[Math.abs(q)%X.colors.length]}X.selectColor=J;function X(B){let q,F=null,j,f;function h(...w){if(!h.enabled)return;const v=h,b=Number(new Date),$1=b-(q||b);if(v.diff=$1,v.prev=q,v.curr=b,q=b,w[0]=X.coerce(w[0]),typeof w[0]!=="string")w.unshift("%O");let G1=0;w[0]=w[0].replace(/%([a-zA-Z%])/g,(z1,I1)=>{if(z1==="%%")return"%";G1++;const E1=X.formatters[I1];if(typeof E1==="function"){const r=w[G1];z1=E1.call(v,r),w.splice(G1,1),G1--}return z1}),X.formatArgs.call(v,w),(v.log||X.log).apply(v,w)}if(h.namespace=B,h.useColors=X.useColors(),h.color=X.selectColor(B),h.extend=H,h.destroy=X.destroy,Object.defineProperty(h,"enabled",{enumerable:!0,configurable:!1,get:()=>{if(F!==null)return F;if(j!==X.namespaces)j=X.namespaces,f=X.enabled(B);return f},set:(w)=>{F=w}}),typeof X.init==="function")X.init(h);return h}function H(B,q){const F=X(this.namespace+(typeof q==="undefined"?":":q)+B);return F.log=this.log,F}function Z(B){X.save(B),X.namespaces=B,X.names=[],X.skips=[];let q;const F=(typeof B==="string"?B:"").split(/[\s,]+/),j=F.length;for(q=0;q<j;q++){if(!F[q])continue;if(B=F[q].replace(/\*/g,".*?"),B[0]==="-")X.skips.push(new RegExp("^"+B.slice(1)+"$"));else X.names.push(new RegExp("^"+B+"$"))}}function V(){const B=[...X.names.map(Y),...X.skips.map(Y).map((q)=>"-"+q)].join(",");return X.enable(""),B}function Q(B){if(B[B.length-1]==="*")return!0;let q,F;for(q=0,F=X.skips.length;q<F;q++)if(X.skips[q].test(B))return!1;for(q=0,F=X.names.length;q<F;q++)if(X.names[q].test(B))return!0;return!1}function Y(B){return B.toString().substring(2,B.toString().length-2).replace(/\.\*\?$/,"*")}function W(B){if(B instanceof Error)return B.stack||B.message;return B}function z(){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}yK.exports=yU1});var xK=S((mK,rG)=>{function mU1(){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 G;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&&(G=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(G[1],10)>=31||typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function xU1(G){if(G[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+G[0]+(this.useColors?"%c ":" ")+"+"+rG.exports.humanize(this.diff),!this.useColors)return;const J="color: "+this.color;G.splice(1,0,J,"color: inherit");let X=0,H=0;G[0].replace(/%[a-zA-Z%]/g,(Z)=>{if(Z==="%%")return;if(X++,Z==="%c")H=X}),G.splice(H,0,J)}function lU1(G){try{if(G)mK.storage.setItem("debug",G);else mK.storage.removeItem("debug")}catch(J){}}function cU1(){let G;try{G=mK.storage.getItem("debug")}catch(J){}if(!G&&typeof process!=="undefined"&&"env"in process)G=process.env.DEBUG;return G}function aU1(){try{return localStorage}catch(G){}}mK.formatArgs=xU1;mK.save=lU1;mK.load=cU1;mK.useColors=mU1;mK.storage=aU1();mK.destroy=(()=>{let G=!1;return()=>{if(!G)G=!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`.")}})();mK.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"];mK.log=console.debug||console.log||(()=>{});rG.exports=d7()(mK);var{formatters:rU1}=rG.exports;rU1.j=function(G){try{return JSON.stringify(G)}catch(J){return"[UnexpectedJSONParseError]: "+J.message}}});var cK={};eU1(cK,{default:()=>VK1,createSupportsColor:()=>s7});import p7 from"process";import GK1 from"os";import lK from"tty";function O2(G,J=globalThis.Deno?globalThis.Deno.args:p7.argv){const X=G.startsWith("-")?"":G.length===1?"-":"--",H=J.indexOf(X+G),Z=J.indexOf("--");return H!==-1&&(Z===-1||H<Z)}function JK1(){if("FORCE_COLOR"in a1){if(a1.FORCE_COLOR==="true")return 1;if(a1.FORCE_COLOR==="false")return 0;return a1.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(a1.FORCE_COLOR,10),3)}}function XK1(G){if(G===0)return!1;return{level:G,hasBasic:!0,has256:G>=2,has16m:G>=3}}function HK1(G,{streamIsTTY:J,sniffFlags:X=!0}={}){const H=JK1();if(H!==void 0)iG=H;const Z=X?iG:H;if(Z===0)return 0;if(X){if(O2("color=16m")||O2("color=full")||O2("color=truecolor"))return 3;if(O2("color=256"))return 2}if("TF_BUILD"in a1&&"AGENT_NAME"in a1)return 1;if(G&&!J&&Z===void 0)return 0;const V=Z||0;if(a1.TERM==="dumb")return V;if(p7.platform==="win32"){const Q=GK1.release().split(".");if(Number(Q[0])>=10&&Number(Q[2])>=10586)return Number(Q[2])>=14931?3:2;return 1}if("CI"in a1){if("GITHUB_ACTIONS"in a1||"GITEA_ACTIONS"in a1)return 3;if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some((Q)=>(Q in a1))||a1.CI_NAME==="codeship")return 1;return V}if("TEAMCITY_VERSION"in a1)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(a1.TEAMCITY_VERSION)?1:0;if(a1.COLORTERM==="truecolor")return 3;if(a1.TERM==="xterm-kitty")return 3;if("TERM_PROGRAM"in a1){const Q=Number.parseInt((a1.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(a1.TERM_PROGRAM){case"iTerm.app":return Q>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(a1.TERM))return 2;if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(a1.TERM))return 1;if("COLORTERM"in a1)return 1;return V}function s7(G,J={}){const X=HK1(G,{streamIsTTY:G&&G.isTTY,...J});return XK1(X)}var a1,iG,ZK1,VK1;var aK=tU1(()=>{({env:a1}=p7);if(O2("no-color")||O2("no-colors")||O2("color=false")||O2("color=never"))iG=0;else if(O2("color")||O2("colors")||O2("color=true")||O2("color=always"))iG=1;ZK1={stdout:s7({isTTY:lK.isatty(1)}),stderr:s7({isTTY:lK.isatty(2)})},VK1=ZK1});var dK=S((iK,dG)=>{function WK1(){return"colors"in iK.inspectOpts?Boolean(iK.inspectOpts.colors):YK1.isatty(process.stderr.fd)}function zK1(G){const{namespace:J,useColors:X}=this;if(X){const H=this.color,Z="\x1B[3"+(H<8?H:"8;5;"+H),V=` ${Z};1m${J} \x1B[0m`;G[0]=V+G[0].split("\n").join("\n"+V),G.push(Z+"m+"+dG.exports.humanize(this.diff)+"\x1B[0m")}else G[0]=UK1()+J+" "+G[0]}function UK1(){if(iK.inspectOpts.hideDate)return"";return new Date().toISOString()+" "}function KK1(...G){return process.stderr.write(uG.formatWithOptions(iK.inspectOpts,...G)+"\n")}function BK1(G){if(G)process.env.DEBUG=G;else delete process.env.DEBUG}function $K1(){return process.env.DEBUG}function RK1(G){G.inspectOpts={};const J=Object.keys(iK.inspectOpts);for(let X=0;X<J.length;X++)G.inspectOpts[J[X]]=iK.inspectOpts[J[X]]}var YK1=import.meta.require("tty"),uG=import.meta.require("util");iK.init=RK1;iK.log=KK1;iK.formatArgs=zK1;iK.save=BK1;iK.load=$K1;iK.useColors=WK1;iK.destroy=uG.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");iK.colors=[6,2,3,4,5,1];try{const G=(aK(),QK1(cK));if(G&&(G.stderr||G).level>=2)iK.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(G){}iK.inspectOpts=Object.keys(process.env).filter((G)=>{return/^debug_/i.test(G)}).reduce((G,J)=>{const X=J.substring(6).toLowerCase().replace(/_([a-z])/g,(Z,V)=>{return V.toUpperCase()});let H=process.env[J];if(/^(yes|on|true|enabled)$/i.test(H))H=!0;else if(/^(no|off|false|disabled)$/i.test(H))H=!1;else if(H==="null")H=null;else H=Number(H);return G[X]=H,G},{});dG.exports=d7()(iK);var{formatters:rK}=dG.exports;rK.o=function(G){return this.inspectOpts.colors=this.useColors,uG.inspect(G,this.inspectOpts).split("\n").map((J)=>J.trim()).join(" ")};rK.O=function(G){return this.inspectOpts.colors=this.useColors,uG.inspect(G,this.inspectOpts)}});var sK=S((Jg1,n7)=>{if(typeof process==="undefined"||process.type==="renderer"||!1||process.__nwjs)n7.exports=xK();else n7.exports=dK()});var e7=S((oK)=>{function cK1(G){const{node:J,parent:X}=this;if(!pK(J,G)&&!vK1(X,G))if(OK1(J,G)){if(lK1(J.name))return!1}else return!1;return o7(J,X,this.parentPath.parent)}function aK1(){const{node:G,parent:J}=this;return _K1(G)&&o7(G,J)}function rK1(){const{node:G,parent:J}=this,X=this.parentPath.parent;return pK(G)&&fK1(G,J,X)}function iK1(){const{node:G,parent:J}=this;if(bK1(G)){if(yK1(G)){if(NK1(J,{left:G}))return!1;if(wK1(J,{init:G}))return!1}return!0}else return!1}function uK1(){if(this.isIdentifier())return this.isReferencedIdentifier();else return LK1(this.node)}function dK1(){return gK1(this.node,this.parent)}function sK1(){return o7(this.node,this.parent)}function pK1(){return SK1(this.node)}function nK1(){return hK1(this.node)}function oK1(){return this.node&&!!this.node.loc}function eK1(){return!this.isUser()}function tK1(G){return this.scope.isPure(this.node,G)}function GB1(){const{node:G}=this;if(TK1(G))return!0;else if(kK1(G))return G.importKind==="type"||G.importKind==="typeof";else if(PK1(G))return G.exportKind==="type";else if(EK1(G))return G.importKind==="type"||G.importKind==="typeof";else return!1}function JB1(){var G;return nK(this.node)&&((G=this.parentPath)==null?void 0:G.isObjectPattern())}function XB1(){var G;return nK(this.node)&&((G=this.parentPath)==null?void 0:G.isObjectExpression())}function HB1(){return xK1(this.node,{await:!0})}Object.defineProperty(oK,"__esModule",{value:!0});oK.isBindingIdentifier=rK1;oK.isBlockScoped=pK1;oK.isExpression=uK1;oK.isFlow=GB1;oK.isForAwaitStatement=HB1;oK.isGenerated=eK1;oK.isPure=tK1;oK.isReferenced=sK1;oK.isReferencedIdentifier=cK1;oK.isReferencedMemberExpression=aK1;oK.isRestProperty=JB1;oK.isScope=dK1;oK.isSpreadProperty=XB1;oK.isStatement=iK1;oK.isUser=oK1;oK.isVar=nK1;var CK1=F1(),{isBinding:fK1,isBlockScoped:SK1,isExportDeclaration:PK1,isExpression:LK1,isFlow:TK1,isForStatement:wK1,isForXStatement:NK1,isIdentifier:pK,isImportDeclaration:kK1,isImportSpecifier:EK1,isJSXIdentifier:OK1,isJSXMemberExpression:vK1,isMemberExpression:_K1,isRestElement:nK,isReferenced:o7,isScope:gK1,isStatement:bK1,isVar:hK1,isVariableDeclaration:yK1,react:mK1,isForOfStatement:xK1}=CK1,{isCompatTag:lK1}=mK1;oK.isExistentialTypeParam=function G(){throw new Error("`path.isExistentialTypeParam` has been renamed to `path.isExistsTypeAnnotation()` in Babel 7.")},oK.isNumericLiteralTypeAnnotation=function G(){throw new Error("`path.isNumericLiteralTypeAnnotation()` has been renamed to `path.isNumberLiteralTypeAnnotation()` in Babel 7.")}});var l9=S((KB)=>{function fB1(G){return G in QB}function YB(G){return G==null?void 0:G._exploded}function WB(G){if(YB(G))return G;G._exploded=!0;for(let J of Object.keys(G)){if(H5(J))continue;const X=J.split("|");if(X.length===1)continue;const H=G[J];delete G[J];for(let Z of X)G[Z]=H}zB(G),delete G.__esModule,SB1(G),VB(G);for(let J of Object.keys(G)){if(H5(J))continue;if(!fB1(J))continue;const X=G[J];for(let Z of Object.keys(X))X[Z]=PB1(J,X[Z]);delete G[J];const H=QB[J];if(H!==null)for(let Z of H)if(G[Z])x9(G[Z],X);else G[Z]=X;else x9(G,X)}for(let J of Object.keys(G)){if(H5(J))continue;let X=JB[J];if(J in tK){const Z=tK[J];XB(J,Z,"Visitor "),X=[Z]}else if(J in GB){const Z=GB[J];XB(J,Z,"Visitor "),X=JB[Z]}if(!X)continue;const H=G[J];delete G[J];for(let Z of X){const V=G[Z];if(V)x9(V,H);else G[Z]=Object.assign({},H)}}for(let J of Object.keys(G)){if(H5(J))continue;VB(G[J])}return G}function zB(G){if(G._verified)return;if(typeof G==="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 J of Object.keys(G)){if(J==="enter"||J==="exit")HB(J,G[J]);if(H5(J))continue;if(!CB1.includes(J))throw new Error(`You gave us a visitor for the node type ${J} but it's not a valid type in @babel/traverse 7.25.7`);const X=G[J];if(typeof X==="object")for(let H of Object.keys(X))if(H==="enter"||H==="exit")HB(`${J}.${H}`,X[H]);else throw new Error(`You passed \`traverse()\` a visitor object with the property ${J} that has the invalid property ${H}`)}G._verified=!0}function HB(G,J){const X=[].concat(J);for(let H of X)if(typeof H!=="function")throw new TypeError(`Non-function found defined in ${G} with type ${typeof H}`)}function UB(G,J=[],X){const H={_verified:!0,_exploded:!0};Object.defineProperty(H,"_exploded",{enumerable:!1}),Object.defineProperty(H,"_verified",{enumerable:!1});for(let Z=0;Z<G.length;Z++){const V=WB(G[Z]),Q=J[Z];let Y=V;if(Q||X)Y=ZB(Y,Q,X);x9(H,Y);for(let W of Object.keys(V)){if(H5(W))continue;let z=V[W];if(Q||X)z=ZB(z,Q,X);const B=H[W]||(H[W]={});x9(B,z)}}return H}function ZB(G,J,X){const H={};for(let Z of["enter","exit"]){let V=G[Z];if(!Array.isArray(V))continue;V=V.map(function(Q){let Y=Q;if(J)Y=function(W){Q.call(J,W,J)};if(X)Y=X(J==null?void 0:J.key,Z,Y);if(Y!==Q)Y.toString=()=>Q.toString();return Y}),H[Z]=V}return H}function SB1(G){for(let J of Object.keys(G)){if(H5(J))continue;const X=G[J];if(typeof X==="function")G[J]={enter:X}}}function VB(G){if(G.enter&&!Array.isArray(G.enter))G.enter=[G.enter];if(G.exit&&!Array.isArray(G.exit))G.exit=[G.exit]}function PB1(G,J){const X=`is${G}`,H=IB1[X],Z=function(V){if(H.call(V))return J.apply(this,arguments)};return Z.toString=()=>J.toString(),Z}function H5(G){if(G[0]==="_")return!0;if(G==="enter"||G==="exit"||G==="shouldSkip")return!0;if(G==="denylist"||G==="noScope"||G==="skipKeys")return!0;if(G==="blacklist")return!0;return!1}function x9(G,J){for(let X of["enter","exit"]){if(!J[X])continue;G[X]=[].concat(G[X]||[],J[X])}}function TB1(G){return UB([LB1,G])}Object.defineProperty(KB,"__esModule",{value:!0});KB.environmentVisitor=TB1;KB.explode=WB;KB.isExplodedVisitor=YB;KB.merge=UB;KB.verify=zB;var QB=u7(),IB1=e7(),AB1=F1(),eK=o2(),{DEPRECATED_KEYS:tK,DEPRECATED_ALIASES:GB,FLIPPED_ALIAS_KEYS:JB,TYPES:CB1,__internal__deprecationWarning:XB}=AB1,LB1={FunctionParent(G){if(G.isArrowFunctionExpression())return;if(G.skip(),G.isMethod())if(!G.requeueComputedKeyAndDecorators)eK.requeueComputedKeyAndDecorators.call(G);else G.requeueComputedKeyAndDecorators()},Property(G){if(G.isObjectProperty())return;if(G.skip(),!G.requeueComputedKeyAndDecorators)eK.requeueComputedKeyAndDecorators.call(G);else G.requeueComputedKeyAndDecorators()}}});var MB=S(($B)=>{Object.defineProperty($B,"__esModule",{value:!0});$B.default=void 0;var sG=F1(),vB1=sG,_B1=pG(),gB1=l9(),bB1=o2(),{getAssignmentIdentifiers:hB1}=vB1,yB1={ReferencedIdentifier({node:G},J){if(G.name===J.oldName)G.name=J.newName},Scope(G,J){if(!G.scope.bindingIdentifierEquals(J.oldName,J.binding.identifier)){if(G.skip(),G.isMethod())if(!G.requeueComputedKeyAndDecorators)bB1.requeueComputedKeyAndDecorators.call(G);else G.requeueComputedKeyAndDecorators()}},ObjectProperty({node:G,scope:J},X){const{name:H}=G.key;if(G.shorthand&&(H===X.oldName||H===X.newName)&&J.getBindingIdentifier(H)===X.binding.identifier){G.shorthand=!1;{var Z;if((Z=G.extra)!=null&&Z.shorthand)G.extra.shorthand=!1}}},"AssignmentExpression|Declaration|VariableDeclarator"(G,J){if(G.isVariableDeclaration())return;const X=G.isAssignmentExpression()?hB1(G.node):G.getOuterBindingIdentifiers();for(let H in X)if(H===J.oldName)X[H].name=J.newName}};class BB{constructor(G,J,X){this.newName=X,this.oldName=J,this.binding=G}maybeConvertFromExportDeclaration(G){const J=G.parentPath;if(!J.isExportDeclaration())return;if(J.isExportDefaultDeclaration()){const{declaration:X}=J.node;if(sG.isDeclaration(X)&&!X.id)return}if(J.isExportAllDeclaration())return;J.splitExportDeclaration()}maybeConvertFromClassFunctionDeclaration(G){return G}maybeConvertFromClassFunctionExpression(G){return G}rename(){const{binding:G,oldName:J,newName:X}=this,{scope:H,path:Z}=G,V=Z.find((W)=>W.isDeclaration()||W.isFunctionExpression()||W.isClassExpression());if(V){if(V.getOuterBindingIdentifiers()[J]===G.identifier)this.maybeConvertFromExportDeclaration(V)}const Q=arguments[0]||H.block,Y={discriminant:!0};if(sG.isMethod(Q)){if(Q.computed)Y.key=!0;if(!sG.isObjectMethod(Q))Y.decorators=!0}if(_B1.traverseNode(Q,gB1.explode(yB1),H,this,H.path,Y),!arguments[0])H.removeOwnBinding(J),H.bindings[X]=G,this.binding.identifier.name=X;if(V)this.maybeConvertFromClassFunctionDeclaration(Z),this.maybeConvertFromClassFunctionExpression(Z)}}$B.default=BB});var DB=S((FB)=>{function mB1(G){for(let{parentPath:J,key:X}=G;J;{parentPath:J,key:X}=J){if(J.isFunctionParent())return!1;if(J.isWhile()||J.isForXStatement()||J.isForStatement()&&X==="body")return!0}return!1}Object.defineProperty(FB,"__esModule",{value:!0});FB.default=void 0;class qB{constructor({identifier:G,scope:J,path:X,kind:H}){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=G,this.scope=J,this.path=X,this.kind=H,(H==="var"||H==="hoisted")&&mB1(X))this.reassign(X);this.clearValue()}deoptValue(){this.clearValue(),this.hasDeoptedValue=!0}setValue(G){if(this.hasDeoptedValue)return;this.hasValue=!0,this.value=G}clearValue(){this.hasDeoptedValue=!1,this.hasValue=!1,this.value=null}reassign(G){if(this.constant=!1,this.constantViolations.includes(G))return;this.constantViolations.push(G)}reference(G){if(this.referencePaths.includes(G))return;this.referenced=!0,this.references++,this.referencePaths.push(G)}dereference(){this.references--,this.referenced=!!this.references}}FB.default=qB});var IB=S((Wg1,xB1)=>{xB1.exports={builtin:{Array:!1,ArrayBuffer:!1,Atomics:!1,BigInt:!1,BigInt64Array:!1,BigUint64Array:!1,Boolean:!1,constructor:!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,hasOwnProperty:!1,Infinity:!1,Int16Array:!1,Int32Array:!1,Int8Array:!1,isFinite:!1,isNaN:!1,isPrototypeOf:!1,JSON:!1,Map:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,Promise:!1,propertyIsEnumerable:!1,Proxy:!1,RangeError:!1,ReferenceError:!1,Reflect:!1,RegExp:!1,Set:!1,SharedArrayBuffer:!1,String:!1,Symbol:!1,SyntaxError:!1,toLocaleString:!1,toString:!1,TypeError:!1,Uint16Array:!1,Uint32Array:!1,Uint8Array:!1,Uint8ClampedArray:!1,undefined:!1,unescape:!1,URIError:!1,valueOf:!1,WeakMap:!1,WeakSet:!1},es5:{Array:!1,Boolean:!1,constructor:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,Function:!1,hasOwnProperty:!1,Infinity:!1,isFinite:!1,isNaN:!1,isPrototypeOf:!1,JSON:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,propertyIsEnumerable:!1,RangeError:!1,ReferenceError:!1,RegExp:!1,String:!1,SyntaxError:!1,toLocaleString:!1,toString:!1,TypeError:!1,undefined:!1,unescape:!1,URIError:!1,valueOf:!1},es2015:{Array:!1,ArrayBuffer:!1,Boolean:!1,constructor:!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,hasOwnProperty:!1,Infinity:!1,Int16Array:!1,Int32Array:!1,Int8Array:!1,isFinite:!1,isNaN:!1,isPrototypeOf:!1,JSON:!1,Map:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,Promise:!1,propertyIsEnumerable:!1,Proxy:!1,RangeError:!1,ReferenceError:!1,Reflect:!1,RegExp:!1,Set:!1,String:!1,Symbol:!1,SyntaxError:!1,toLocaleString:!1,toString:!1,TypeError:!1,Uint16Array:!1,Uint32Array:!1,Uint8Array:!1,Uint8ClampedArray:!1,undefined:!1,unescape:!1,URIError:!1,valueOf:!1,WeakMap:!1,WeakSet:!1},es2017:{Array:!1,ArrayBuffer:!1,Atomics:!1,Boolean:!1,constructor:!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,hasOwnProperty:!1,Infinity:!1,Int16Array:!1,Int32Array:!1,Int8Array:!1,isFinite:!1,isNaN:!1,isPrototypeOf:!1,JSON:!1,Map:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,Promise:!1,propertyIsEnumerable:!1,Proxy:!1,RangeError:!1,ReferenceError:!1,Reflect:!1,RegExp:!1,Set:!1,SharedArrayBuffer:!1,String:!1,Symbol:!1,SyntaxError:!1,toLocaleString:!1,toString:!1,TypeError:!1,Uint16Array:!1,Uint32Array:!1,Uint8Array:!1,Uint8ClampedArray:!1,undefined:!1,unescape:!1,URIError:!1,valueOf:!1,WeakMap:!1,WeakSet:!1},browser:{AbortController:!1,AbortSignal:!1,addEventListener:!1,alert:!1,AnalyserNode:!1,Animation:!1,AnimationEffectReadOnly:!1,AnimationEffectTiming:!1,AnimationEffectTimingReadOnly:!1,AnimationEvent:!1,AnimationPlaybackEvent:!1,AnimationTimeline:!1,applicationCache:!1,ApplicationCache:!1,ApplicationCacheErrorEvent:!1,atob:!1,Attr:!1,Audio:!1,AudioBuffer:!1,AudioBufferSourceNode:!1,AudioContext:!1,AudioDestinationNode:!1,AudioListener:!1,AudioNode:!1,AudioParam:!1,AudioProcessingEvent:!1,AudioScheduledSourceNode:!1,"AudioWorkletGlobalScope ":!1,AudioWorkletNode:!1,AudioWorkletProcessor:!1,BarProp:!1,BaseAudioContext:!1,BatteryManager:!1,BeforeUnloadEvent:!1,BiquadFilterNode:!1,Blob:!1,BlobEvent:!1,blur:!1,BroadcastChannel:!1,btoa:!1,BudgetService:!1,ByteLengthQueuingStrategy:!1,Cache:!1,caches:!1,CacheStorage:!1,cancelAnimationFrame:!1,cancelIdleCallback:!1,CanvasCaptureMediaStreamTrack:!1,CanvasGradient:!1,CanvasPattern:!1,CanvasRenderingContext2D:!1,ChannelMergerNode:!1,ChannelSplitterNode:!1,CharacterData:!1,clearInterval:!1,clearTimeout:!1,clientInformation:!1,ClipboardEvent:!1,close:!1,closed:!1,CloseEvent:!1,Comment:!1,CompositionEvent:!1,confirm:!1,console:!1,ConstantSourceNode:!1,ConvolverNode:!1,CountQueuingStrategy:!1,createImageBitmap:!1,Credential:!1,CredentialsContainer:!1,crypto:!1,Crypto:!1,CryptoKey:!1,CSS:!1,CSSConditionRule:!1,CSSFontFaceRule:!1,CSSGroupingRule:!1,CSSImportRule:!1,CSSKeyframeRule:!1,CSSKeyframesRule:!1,CSSMediaRule:!1,CSSNamespaceRule:!1,CSSPageRule:!1,CSSRule:!1,CSSRuleList:!1,CSSStyleDeclaration:!1,CSSStyleRule:!1,CSSStyleSheet:!1,CSSSupportsRule:!1,CustomElementRegistry:!1,customElements:!1,CustomEvent:!1,DataTransfer:!1,DataTransferItem:!1,DataTransferItemList:!1,defaultstatus:!1,defaultStatus:!1,DelayNode:!1,DeviceMotionEvent:!1,DeviceOrientationEvent:!1,devicePixelRatio:!1,dispatchEvent:!1,document:!1,Document:!1,DocumentFragment:!1,DocumentType:!1,DOMError:!1,DOMException:!1,DOMImplementation:!1,DOMMatrix:!1,DOMMatrixReadOnly:!1,DOMParser:!1,DOMPoint:!1,DOMPointReadOnly:!1,DOMQuad:!1,DOMRect:!1,DOMRectReadOnly:!1,DOMStringList:!1,DOMStringMap:!1,DOMTokenList:!1,DragEvent:!1,DynamicsCompressorNode:!1,Element:!1,ErrorEvent:!1,event:!1,Event:!1,EventSource:!1,EventTarget:!1,external:!1,fetch:!1,File:!1,FileList:!1,FileReader:!1,find:!1,focus:!1,FocusEvent:!1,FontFace:!1,FontFaceSetLoadEvent:!1,FormData:!1,frameElement:!1,frames:!1,GainNode:!1,Gamepad:!1,GamepadButton:!1,GamepadEvent:!1,getComputedStyle:!1,getSelection:!1,HashChangeEvent:!1,Headers:!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,HTMLContentElement:!1,HTMLDataElement:!1,HTMLDataListElement:!1,HTMLDetailsElement:!1,HTMLDialogElement:!1,HTMLDirectoryElement:!1,HTMLDivElement:!1,HTMLDListElement:!1,HTMLDocument:!1,HTMLElement:!1,HTMLEmbedElement:!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,HTMLShadowElement:!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,IdleDeadline:!1,IIRFilterNode:!1,Image:!1,ImageBitmap:!1,ImageBitmapRenderingContext:!1,ImageCapture:!1,ImageData:!1,indexedDB:!1,innerHeight:!1,innerWidth:!1,InputEvent:!1,IntersectionObserver:!1,IntersectionObserverEntry:!1,Intl:!1,isSecureContext:!1,KeyboardEvent:!1,KeyframeEffect:!1,KeyframeEffectReadOnly:!1,length:!1,localStorage:!1,location:!0,Location:!1,locationbar:!1,matchMedia:!1,MediaDeviceInfo:!1,MediaDevices:!1,MediaElementAudioSourceNode:!1,MediaEncryptedEvent:!1,MediaError:!1,MediaKeyMessageEvent:!1,MediaKeySession:!1,MediaKeyStatusMap:!1,MediaKeySystemAccess:!1,MediaList:!1,MediaQueryList:!1,MediaQueryListEvent:!1,MediaRecorder:!1,MediaSettingsRange:!1,MediaSource:!1,MediaStream:!1,MediaStreamAudioDestinationNode:!1,MediaStreamAudioSourceNode:!1,MediaStreamEvent:!1,MediaStreamTrack:!1,MediaStreamTrackEvent:!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,MouseEvent:!1,moveBy:!1,moveTo:!1,MutationEvent:!1,MutationObserver:!1,MutationRecord:!1,name:!1,NamedNodeMap:!1,NavigationPreloadManager:!1,navigator:!1,Navigator:!1,NetworkInformation:!1,Node:!1,NodeFilter:!1,NodeIterator:!1,NodeList:!1,Notification:!1,OfflineAudioCompletionEvent:!1,OfflineAudioContext:!1,offscreenBuffering:!1,OffscreenCanvas:!0,onabort:!0,onafterprint:!0,onanimationend:!0,onanimationiteration:!0,onanimationstart:!0,onappinstalled:!0,onauxclick:!0,onbeforeinstallprompt:!0,onbeforeprint:!0,onbeforeunload:!0,onblur:!0,oncancel:!0,oncanplay:!0,oncanplaythrough:!0,onchange:!0,onclick:!0,onclose:!0,oncontextmenu:!0,oncuechange:!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,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,onpageshow:!0,onpause:!0,onplay:!0,onplaying:!0,onpointercancel:!0,onpointerdown:!0,onpointerenter:!0,onpointerleave:!0,onpointermove:!0,onpointerout:!0,onpointerover:!0,onpointerup:!0,onpopstate:!0,onprogress:!0,onratechange:!0,onrejectionhandled:!0,onreset:!0,onresize:!0,onscroll:!0,onsearch:!0,onseeked:!0,onseeking:!0,onselect:!0,onstalled:!0,onstorage:!0,onsubmit:!0,onsuspend:!0,ontimeupdate:!0,ontoggle:!0,ontransitionend:!0,onunhandledrejection:!0,onunload:!0,onvolumechange:!0,onwaiting:!0,onwheel:!0,open:!1,openDatabase:!1,opener:!1,Option:!1,origin:!1,OscillatorNode:!1,outerHeight:!1,outerWidth:!1,PageTransitionEvent:!1,pageXOffset:!1,pageYOffset:!1,PannerNode:!1,parent:!1,Path2D:!1,PaymentAddress:!1,PaymentRequest:!1,PaymentRequestUpdateEvent:!1,PaymentResponse:!1,performance:!1,Performance:!1,PerformanceEntry:!1,PerformanceLongTaskTiming:!1,PerformanceMark:!1,PerformanceMeasure:!1,PerformanceNavigation:!1,PerformanceNavigationTiming:!1,PerformanceObserver:!1,PerformanceObserverEntryList:!1,PerformancePaintTiming:!1,PerformanceResourceTiming:!1,PerformanceTiming:!1,PeriodicWave:!1,Permissions:!1,PermissionStatus:!1,personalbar:!1,PhotoCapabilities:!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,print:!1,ProcessingInstruction:!1,ProgressEvent:!1,PromiseRejectionEvent:!1,prompt:!1,PushManager:!1,PushSubscription:!1,PushSubscriptionOptions:!1,queueMicrotask:!1,RadioNodeList:!1,Range:!1,ReadableStream:!1,registerProcessor:!1,RemotePlayback:!1,removeEventListener:!1,Request:!1,requestAnimationFrame:!1,requestIdleCallback:!1,resizeBy:!1,ResizeObserver:!1,ResizeObserverEntry:!1,resizeTo:!1,Response:!1,RTCCertificate:!1,RTCDataChannel:!1,RTCDataChannelEvent:!1,RTCDtlsTransport:!1,RTCIceCandidate:!1,RTCIceGatherer:!1,RTCIceTransport:!1,RTCPeerConnection:!1,RTCPeerConnectionIceEvent:!1,RTCRtpContributingSource:!1,RTCRtpReceiver:!1,RTCRtpSender:!1,RTCSctpTransport:!1,RTCSessionDescription:!1,RTCStatsReport:!1,RTCTrackEvent:!1,screen:!1,Screen:!1,screenLeft:!1,ScreenOrientation:!1,screenTop:!1,screenX:!1,screenY:!1,ScriptProcessorNode:!1,scroll:!1,scrollbars:!1,scrollBy:!1,scrollTo:!1,scrollX:!1,scrollY:!1,SecurityPolicyViolationEvent:!1,Selection:!1,self:!1,ServiceWorker:!1,ServiceWorkerContainer:!1,ServiceWorkerRegistration:!1,sessionStorage:!1,setInterval:!1,setTimeout:!1,ShadowRoot:!1,SharedWorker:!1,SourceBuffer:!1,SourceBufferList:!1,speechSynthesis:!1,SpeechSynthesisEvent:!1,SpeechSynthesisUtterance:!1,StaticRange:!1,status:!1,statusbar:!1,StereoPannerNode:!1,stop:!1,Storage:!1,StorageEvent:!1,StorageManager:!1,styleMedia:!1,StyleSheet:!1,StyleSheetList:!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,SVGDiscardElement:!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,TaskAttributionTiming:!1,Text:!1,TextDecoder:!1,TextEncoder:!1,TextEvent:!1,TextMetrics:!1,TextTrack:!1,TextTrackCue:!1,TextTrackCueList:!1,TextTrackList:!1,TimeRanges:!1,toolbar:!1,top:!1,Touch:!1,TouchEvent:!1,TouchList:!1,TrackEvent:!1,TransitionEvent:!1,TreeWalker:!1,UIEvent:!1,URL:!1,URLSearchParams:!1,ValidityState:!1,visualViewport:!1,VisualViewport:!1,VTTCue:!1,WaveShaperNode:!1,WebAssembly:!1,WebGL2RenderingContext:!1,WebGLActiveInfo:!1,WebGLBuffer:!1,WebGLContextEvent:!1,WebGLFramebuffer:!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,WheelEvent:!1,window:!1,Window:!1,Worker:!1,WritableStream:!1,XMLDocument:!1,XMLHttpRequest:!1,XMLHttpRequestEventTarget:!1,XMLHttpRequestUpload:!1,XMLSerializer:!1,XPathEvaluator:!1,XPathExpression:!1,XPathResult:!1,XSLTProcessor:!1},worker:{addEventListener:!1,applicationCache:!1,atob:!1,Blob:!1,BroadcastChannel:!1,btoa:!1,Cache:!1,caches:!1,clearInterval:!1,clearTimeout:!1,close:!0,console:!1,fetch:!1,FileReaderSync:!1,FormData:!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,ImageData:!1,importScripts:!0,indexedDB:!1,location:!1,MessageChannel:!1,MessagePort:!1,name:!1,navigator:!1,Notification:!1,onclose:!0,onconnect:!0,onerror:!0,onlanguagechange:!0,onmessage:!0,onoffline:!0,ononline:!0,onrejectionhandled:!0,onunhandledrejection:!0,performance:!1,Performance:!1,PerformanceEntry:!1,PerformanceMark:!1,PerformanceMeasure:!1,PerformanceNavigation:!1,PerformanceResourceTiming:!1,PerformanceTiming:!1,postMessage:!0,Promise:!1,queueMicrotask:!1,removeEventListener:!1,Request:!1,Response:!1,self:!0,ServiceWorkerRegistration:!1,setInterval:!1,setTimeout:!1,TextDecoder:!1,TextEncoder:!1,URL:!1,URLSearchParams:!1,WebSocket:!1,Worker:!1,WorkerGlobalScope:!1,XMLHttpRequest:!1},node:{__dirname:!1,__filename:!1,Buffer:!1,clearImmediate:!1,clearInterval:!1,clearTimeout:!1,console:!1,exports:!0,global:!1,Intl:!1,module:!1,process:!1,queueMicrotask:!1,require:!1,setImmediate:!1,setInterval:!1,setTimeout:!1,TextDecoder:!1,TextEncoder:!1,URL:!1,URLSearchParams:!1},commonjs:{exports:!0,global:!1,module:!1,require:!1},amd:{define:!1,require:!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},jasmine:{afterAll:!1,afterEach:!1,beforeAll:!1,beforeEach:!1,describe:!1,expect:!1,fail:!1,fdescribe:!1,fit:!1,it:!1,jasmine:!1,pending:!1,runs:!1,spyOn:!1,spyOnProperty:!1,waits:!1,waitsFor:!1,xdescribe:!1,xit:!1},jest:{afterAll:!1,afterEach:!1,beforeAll:!1,beforeEach:!1,describe:!1,expect:!1,fdescribe:!1,fit:!1,it:!1,jest:!1,pit:!1,require:!1,test:!1,xdescribe:!1,xit:!1,xtest:!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},phantomjs:{console:!0,exports:!0,phantom:!0,require:!0,WebPage:!0},couch:{emit:!1,exports:!1,getRow:!1,log:!1,module:!1,provides:!1,require:!1,respond:!1,send:!1,start:!1,sum:!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},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},wsh:{ActiveXObject:!0,Enumerator:!0,GetObject:!0,ScriptEngine:!0,ScriptEngineBuildVersion:!0,ScriptEngineMajorVersion:!0,ScriptEngineMinorVersion:!0,VBArray:!0,WScript:!0,WSH:!0,XDomainRequest:!0},jquery:{$:!1,jQuery:!1},yui:{YAHOO:!1,YAHOO_config:!1,YUI:!1,YUI_config:!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,ln:!1,ls:!1,mkdir:!1,mv:!1,popd:!1,pushd:!1,pwd:!1,rm:!1,sed:!1,set:!1,target:!1,tempdir:!1,test:!1,touch:!1,which:!1},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},meteor:{_:!1,$:!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},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},applescript:{$:!1,Application:!1,Automation:!1,console:!1,delay:!1,Library:!1,ObjC:!1,ObjectSpecifier:!1,Path:!1,Progress:!1,Ref:!1},serviceworker:{addEventListener:!1,applicationCache:!1,atob:!1,Blob:!1,BroadcastChannel:!1,btoa:!1,Cache:!1,caches:!1,CacheStorage:!1,clearInterval:!1,clearTimeout:!1,Client:!1,clients:!1,Clients:!1,close:!0,console:!1,ExtendableEvent:!1,ExtendableMessageEvent:!1,fetch:!1,FetchEvent:!1,FileReaderSync:!1,FormData:!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,ImageData:!1,importScripts:!1,indexedDB:!1,location:!1,MessageChannel:!1,MessagePort:!1,name:!1,navigator:!1,Notification:!1,onclose:!0,onconnect:!0,onerror:!0,onfetch:!0,oninstall:!0,onlanguagechange:!0,onmessage:!0,onmessageerror:!0,onnotificationclick:!0,onnotificationclose:!0,onoffline:!0,ononline:!0,onpush:!0,onpushsubscriptionchange:!0,onrejectionhandled:!0,onsync:!0,onunhandledrejection:!0,performance:!1,Performance:!1,PerformanceEntry:!1,PerformanceMark:!1,PerformanceMeasure:!1,PerformanceNavigation:!1,PerformanceResourceTiming:!1,PerformanceTiming:!1,postMessage:!0,Promise:!1,queueMicrotask:!1,registration:!1,removeEventListener:!1,Request:!1,Response:!1,self:!1,ServiceWorker:!1,ServiceWorkerContainer:!1,ServiceWorkerGlobalScope:!1,ServiceWorkerMessageEvent:!1,ServiceWorkerRegistration:!1,setInterval:!1,setTimeout:!1,skipWaiting:!1,TextDecoder:!1,TextEncoder:!1,URL:!1,URLSearchParams:!1,WebSocket:!1,WindowClient:!1,Worker:!1,WorkerGlobalScope:!1,XMLHttpRequest:!1},atomtest:{advanceClock:!1,fakeClearInterval:!1,fakeClearTimeout:!1,fakeSetInterval:!1,fakeSetTimeout:!1,resetTimeouts:!1,waitsForPromise:!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},protractor:{$:!1,$$:!1,browser:!1,by:!1,By:!1,DartObject:!1,element:!1,protractor:!1},"shared-node-browser":{clearInterval:!1,clearTimeout:!1,console:!1,setInterval:!1,setTimeout:!1,URL:!1,URLSearchParams:!1},webextensions:{browser:!1,chrome:!1,opr:!1},greasemonkey:{cloneInto:!1,createObjectIn:!1,exportFunction:!1,GM:!1,GM_addStyle:!1,GM_deleteValue:!1,GM_getResourceText:!1,GM_getResourceURL:!1,GM_getValue:!1,GM_info:!1,GM_listValues:!1,GM_log:!1,GM_openInTab:!1,GM_registerMenuCommand:!1,GM_setClipboard:!1,GM_setValue:!1,GM_xmlhttpRequest:!1,unsafeWindow:!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}}});var Z5=S((fB)=>{function cB1(){AB(),CB()}function AB(){fB.path=nG=new WeakMap}function CB(){fB.scope=lB1=new WeakMap}function aB1(G,J){var X,H;return G=null,(X=nG.get((H=G)!=null?H:t7))==null?void 0:X.get(J)}function rB1(G,J){var X,H;G=null;let Z=nG.get((X=G)!=null?X:t7);if(!Z)nG.set((H=G)!=null?H:t7,Z=new WeakMap);let V=Z.get(J);if(!V)Z.set(J,V=new Map);return V}Object.defineProperty(fB,"__esModule",{value:!0});fB.clear=cB1;fB.clearPath=AB;fB.clearScope=CB;fB.getCachedPaths=aB1;fB.getOrCreateCachedPaths=rB1;fB.scope=fB.path=void 0;var nG=fB.path=new WeakMap,lB1=fB.scope=new WeakMap,t7=Object.freeze({})});var Z3=S((yB)=>{function m1(G,J){switch(G==null?void 0:G.type){default:if(X3(G)||O$1(G)){var X;if((bB(G)||J3(G)||X3(G))&&G.source)m1(G.source,J);else if((J3(G)||X3(G))&&(X=G.specifiers)!=null&&X.length)for(let H of G.specifiers)m1(H,J);else if((Y$1(G)||J3(G))&&G.declaration)m1(G.declaration,J)}else if(B$1(G))m1(G.local,J);else if(z$1(G)&&!$$1(G)&&!F$1(G)&&!hB(G))J.push(G.value);break;case"MemberExpression":case"OptionalMemberExpression":case"JSXMemberExpression":m1(G.object,J),m1(G.property,J);break;case"Identifier":case"JSXIdentifier":J.push(G.name);break;case"CallExpression":case"OptionalCallExpression":case"NewExpression":m1(G.callee,J);break;case"ObjectExpression":case"ObjectPattern":for(let H of G.properties)m1(H,J);break;case"SpreadElement":case"RestElement":m1(G.argument,J);break;case"ObjectProperty":case"ObjectMethod":case"ClassProperty":case"ClassMethod":case"ClassPrivateProperty":case"ClassPrivateMethod":m1(G.key,J);break;case"ThisExpression":J.push("this");break;case"Super":J.push("super");break;case"Import":J.push("import");break;case"DoExpression":J.push("do");break;case"YieldExpression":J.push("yield"),m1(G.argument,J);break;case"AwaitExpression":J.push("await"),m1(G.argument,J);break;case"AssignmentExpression":m1(G.left,J);break;case"VariableDeclarator":m1(G.id,J);break;case"FunctionExpression":case"FunctionDeclaration":case"ClassExpression":case"ClassDeclaration":m1(G.id,J);break;case"PrivateName":m1(G.id,J);break;case"ParenthesizedExpression":m1(G.expression,J);break;case"UnaryExpression":case"UpdateExpression":m1(G.argument,J);break;case"MetaProperty":m1(G.meta,J),m1(G.property,J);break;case"JSXElement":m1(G.openingElement,J);break;case"JSXOpeningElement":m1(G.name,J);break;case"JSXFragment":m1(G.openingFragment,J);break;case"JSXOpeningFragment":J.push("Fragment");break;case"JSXNamespacedName":m1(G.namespace,J),m1(G.name,J);break}}Object.defineProperty(yB,"__esModule",{value:!0});yB.default=void 0;var nB1=MB(),oB1=c9(),eB1=DB(),tB1=IB(),vB=F1(),G$1=vB,PB=Z5(),J$1=l9(),{NOT_LOCAL_BINDING:LB,assignmentExpression:X$1,callExpression:TB,cloneNode:wB,getBindingIdentifiers:_B,identifier:Q5,isArrayExpression:gB,isBinary:H$1,isCallExpression:NB,isClass:Z$1,isClassBody:V$1,isClassDeclaration:Q$1,isExportAllDeclaration:bB,isExportDefaultDeclaration:Y$1,isExportNamedDeclaration:J3,isFunctionDeclaration:W$1,isIdentifier:V5,isImportDeclaration:X3,isLiteral:z$1,isMemberExpression:U$1,isMethod:K$1,isModuleSpecifier:B$1,isNullLiteral:$$1,isObjectExpression:R$1,isProperty:M$1,isPureish:q$1,isRegExpLiteral:F$1,isSuper:j$1,isTaggedTemplateExpression:D$1,isTemplateLiteral:hB,isThisExpression:kB,isUnaryExpression:I$1,isVariableDeclaration:A$1,expressionStatement:C$1,matchesPattern:EB,memberExpression:H3,numericLiteral:f$1,toIdentifier:S$1,variableDeclaration:P$1,variableDeclarator:L$1,isRecordExpression:T$1,isTupleExpression:w$1,isObjectProperty:N$1,isTopicReference:OB,isMetaProperty:k$1,isPrivateName:E$1,isExportDeclaration:O$1,buildUndefinedNode:v$1,sequenceExpression:_$1}=vB,oG={ForStatement(G){const J=G.get("init");if(J.isVar()){const{scope:X}=G;(X.getFunctionParent()||X.getProgramParent()).registerBinding("var",J)}},Declaration(G){if(G.isBlockScoped())return;if(G.isImportDeclaration())return;if(G.isExportDeclaration())return;(G.scope.getFunctionParent()||G.scope.getProgramParent()).registerDeclaration(G)},ImportDeclaration(G){G.scope.getBlockParent().registerDeclaration(G)},ReferencedIdentifier(G,J){J.references.push(G)},ForXStatement(G,J){const X=G.get("left");if(X.isPattern()||X.isIdentifier())J.constantViolations.push(G);else if(X.isVar()){const{scope:H}=G;(H.getFunctionParent()||H.getProgramParent()).registerBinding("var",X)}},ExportDeclaration:{exit(G){const{node:J,scope:X}=G;if(bB(J))return;const H=J.declaration;if(Q$1(H)||W$1(H)){const Z=H.id;if(!Z)return;const V=X.getBinding(Z.name);V==null||V.reference(G)}else if(A$1(H))for(let Z of H.declarations)for(let V of Object.keys(_B(Z))){const Q=X.getBinding(V);Q==null||Q.reference(G)}}},LabeledStatement(G){G.scope.getBlockParent().registerDeclaration(G)},AssignmentExpression(G,J){J.assignments.push(G)},UpdateExpression(G,J){J.constantViolations.push(G)},UnaryExpression(G,J){if(G.node.operator==="delete")J.constantViolations.push(G)},BlockScoped(G){let J=G.scope;if(J.path===G)J=J.parent;if(J.getBlockParent().registerDeclaration(G),G.isClassDeclaration()&&G.node.id){const Z=G.node.id.name;G.scope.bindings[Z]=G.scope.parent.getBinding(Z)}},CatchClause(G){G.scope.registerBinding("let",G)},Function(G){const J=G.get("params");for(let X of J)G.scope.registerBinding("param",X);if(G.isFunctionExpression()&&G.node.id&&!G.node.id[LB])G.scope.registerBinding("local",G.get("id"),G)},ClassExpression(G){if(G.node.id&&!G.node.id[LB])G.scope.registerBinding("local",G.get("id"),G)},TSTypeAnnotation(G){G.skip()}},g$1=0;class v2{constructor(G){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;const{node:J}=G,X=PB.scope.get(J);if((X==null?void 0:X.path)===G)return X;PB.scope.set(J,this),this.uid=g$1++,this.block=J,this.path=G,this.labels=new Map,this.inited=!1}get parent(){var G;let J,X=this.path;do{var H;const Z=X.key==="key"||X.listKey==="decorators";if(X=X.parentPath,Z&&X.isMethod())X=X.parentPath;if((H=X)!=null&&H.isScope())J=X}while(X&&!J);return(G=J)==null?void 0:G.scope}generateDeclaredUidIdentifier(G){const J=this.generateUidIdentifier(G);return this.push({id:J}),wB(J)}generateUidIdentifier(G){return Q5(this.generateUid(G))}generateUid(G="temp"){G=S$1(G).replace(/^_+/,"").replace(/\d+$/g,"");let J,X=1;do{if(J=`_${G}`,X>1)J+=X;X++}while(this.hasLabel(J)||this.hasBinding(J)||this.hasGlobal(J)||this.hasReference(J));const H=this.getProgramParent();return H.references[J]=!0,H.uids[J]=!0,J}generateUidBasedOnNode(G,J){const X=[];m1(G,X);let H=X.join("$");return H=H.replace(/^_/,"")||J||"ref",this.generateUid(H.slice(0,20))}generateUidIdentifierBasedOnNode(G,J){return Q5(this.generateUidBasedOnNode(G,J))}isStatic(G){if(kB(G)||j$1(G)||OB(G))return!0;if(V5(G)){const J=this.getBinding(G.name);if(J)return J.constant;else return this.hasBinding(G.name)}return!1}maybeGenerateMemoised(G,J){if(this.isStatic(G))return null;else{const X=this.generateUidIdentifierBasedOnNode(G);if(!J)return this.push({id:X}),wB(X);return X}}checkBlockScopedCollisions(G,J,X,H){if(J==="param")return;if(G.kind==="local")return;if(J==="let"||G.kind==="let"||G.kind==="const"||G.kind==="module"||G.kind==="param"&&J==="const")throw this.path.hub.buildError(H,`Duplicate declaration "${X}"`,TypeError)}rename(G,J){const X=this.getBinding(G);if(X)J||(J=this.generateUidIdentifier(G).name),new nB1.default(X,G,J).rename(arguments[2])}dump(){const G="-".repeat(60);console.log(G);let J=this;do{console.log("#",J.block.type);for(let X of Object.keys(J.bindings)){const H=J.bindings[X];console.log(" -",X,{constant:H.constant,references:H.references,violations:H.constantViolations.length,kind:H.kind})}}while(J=J.parent);console.log(G)}hasLabel(G){return!!this.getLabel(G)}getLabel(G){return this.labels.get(G)}registerLabel(G){this.labels.set(G.node.label.name,G)}registerDeclaration(G){if(G.isLabeledStatement())this.registerLabel(G);else if(G.isFunctionDeclaration())this.registerBinding("hoisted",G.get("id"),G);else if(G.isVariableDeclaration()){const J=G.get("declarations"),{kind:X}=G.node;for(let H of J)this.registerBinding(X==="using"||X==="await using"?"const":X,H)}else if(G.isClassDeclaration()){if(G.node.declare)return;this.registerBinding("let",G)}else if(G.isImportDeclaration()){const J=G.node.importKind==="type"||G.node.importKind==="typeof",X=G.get("specifiers");for(let H of X){const Z=J||H.isImportSpecifier()&&(H.node.importKind==="type"||H.node.importKind==="typeof");this.registerBinding(Z?"unknown":"module",H)}}else if(G.isExportDeclaration()){const J=G.get("declaration");if(J.isClassDeclaration()||J.isFunctionDeclaration()||J.isVariableDeclaration())this.registerDeclaration(J)}else this.registerBinding("unknown",G)}buildUndefinedNode(){return v$1()}registerConstantViolation(G){const J=G.getAssignmentIdentifiers();for(let H of Object.keys(J)){var X;(X=this.getBinding(H))==null||X.reassign(G)}}registerBinding(G,J,X=J){if(!G)throw new ReferenceError("no `kind`");if(J.isVariableDeclaration()){const V=J.get("declarations");for(let Q of V)this.registerBinding(G,Q);return}const H=this.getProgramParent(),Z=J.getOuterBindingIdentifiers(!0);for(let V of Object.keys(Z)){H.references[V]=!0;for(let Q of Z[V]){const Y=this.getOwnBinding(V);if(Y){if(Y.identifier===Q)continue;this.checkBlockScopedCollisions(Y,G,V,Q)}if(Y)Y.reassign(X);else this.bindings[V]=new eB1.default({identifier:Q,scope:this,path:X,kind:G})}}}addGlobal(G){this.globals[G.name]=G}hasUid(G){let J=this;do if(J.uids[G])return!0;while(J=J.parent);return!1}hasGlobal(G){let J=this;do if(J.globals[G])return!0;while(J=J.parent);return!1}hasReference(G){return!!this.getProgramParent().references[G]}isPure(G,J){if(V5(G)){const V=this.getBinding(G.name);if(!V)return!1;if(J)return V.constant;return!0}else if(kB(G)||k$1(G)||OB(G)||E$1(G))return!0;else if(Z$1(G)){var X;if(G.superClass&&!this.isPure(G.superClass,J))return!1;if(((X=G.decorators)==null?void 0:X.length)>0)return!1;return this.isPure(G.body,J)}else if(V$1(G)){for(let V of G.body)if(!this.isPure(V,J))return!1;return!0}else if(H$1(G))return this.isPure(G.left,J)&&this.isPure(G.right,J);else if(gB(G)||w$1(G)){for(let V of G.elements)if(V!==null&&!this.isPure(V,J))return!1;return!0}else if(R$1(G)||T$1(G)){for(let V of G.properties)if(!this.isPure(V,J))return!1;return!0}else if(K$1(G)){var H;if(G.computed&&!this.isPure(G.key,J))return!1;if(((H=G.decorators)==null?void 0:H.length)>0)return!1;return!0}else if(M$1(G)){var Z;if(G.computed&&!this.isPure(G.key,J))return!1;if(((Z=G.decorators)==null?void 0:Z.length)>0)return!1;if(N$1(G)||G.static){if(G.value!==null&&!this.isPure(G.value,J))return!1}return!0}else if(I$1(G))return this.isPure(G.argument,J);else if(hB(G)){for(let V of G.expressions)if(!this.isPure(V,J))return!1;return!0}else if(D$1(G))return EB(G.tag,"String.raw")&&!this.hasBinding("String",{noGlobals:!0})&&this.isPure(G.quasi,J);else if(U$1(G))return!G.computed&&V5(G.object)&&G.object.name==="Symbol"&&V5(G.property)&&G.property.name!=="for"&&!this.hasBinding("Symbol",{noGlobals:!0});else if(NB(G))return EB(G.callee,"Symbol.for")&&!this.hasBinding("Symbol",{noGlobals:!0})&&G.arguments.length===1&&G$1.isStringLiteral(G.arguments[0]);else return q$1(G)}setData(G,J){return this.data[G]=J}getData(G){let J=this;do{const X=J.data[G];if(X!=null)return X}while(J=J.parent)}removeData(G){let J=this;do if(J.data[G]!=null)J.data[G]=null;while(J=J.parent)}init(){if(!this.inited)this.inited=!0,this.crawl()}crawl(){const G=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);const J=this.getProgramParent();if(J.crawling)return;const X={references:[],constantViolations:[],assignments:[]};if(this.crawling=!0,G.type!=="Program"&&J$1.isExplodedVisitor(oG)){for(let Z of oG.enter)Z.call(X,G,X);const H=oG[G.type];if(H)for(let Z of H.enter)Z.call(X,G,X)}G.traverse(oG,X),this.crawling=!1;for(let H of X.assignments){const Z=H.getAssignmentIdentifiers();for(let V of Object.keys(Z)){if(H.scope.getBinding(V))continue;J.addGlobal(Z[V])}H.scope.registerConstantViolation(H)}for(let H of X.references){const Z=H.scope.getBinding(H.node.name);if(Z)Z.reference(H);else J.addGlobal(H.node)}for(let H of X.constantViolations)H.scope.registerConstantViolation(H)}push(G){let J=this.path;if(J.isPattern())J=this.getPatternParent().path;else if(!J.isBlockStatement()&&!J.isProgram())J=this.getBlockParent().path;if(J.isSwitchStatement())J=(this.getFunctionParent()||this.getProgramParent()).path;const{init:X,unique:H,kind:Z="var",id:V}=G;if(!X&&!H&&(Z==="var"||Z==="let")&&J.isFunction()&&!J.node.name&&NB(J.parent,{callee:J.node})&&J.parent.arguments.length<=J.node.params.length&&V5(V)){J.pushContainer("params",V),J.scope.registerBinding("param",J.get("params")[J.node.params.length-1]);return}if(J.isLoop()||J.isCatchClause()||J.isFunction())J.ensureBlock(),J=J.get("body");const Q=G._blockHoist==null?2:G._blockHoist,Y=`declaration:${Z}:${Q}`;let W=!H&&J.getData(Y);if(!W){const q=P$1(Z,[]);if(q._blockHoist=Q,[W]=J.unshiftContainer("body",[q]),!H)J.setData(Y,W)}const z=L$1(V,X),B=W.node.declarations.push(z);J.scope.registerBinding(Z,W.get("declarations")[B-1])}getProgramParent(){let G=this;do if(G.path.isProgram())return G;while(G=G.parent);throw new Error("Couldn't find a Program")}getFunctionParent(){let G=this;do if(G.path.isFunctionParent())return G;while(G=G.parent);return null}getBlockParent(){let G=this;do if(G.path.isBlockParent())return G;while(G=G.parent);throw new Error("We couldn't find a BlockStatement, For, Switch, Function, Loop or Program...")}getPatternParent(){let G=this;do if(!G.path.isPattern())return G.getBlockParent();while(G=G.parent.parent);throw new Error("We couldn't find a BlockStatement, For, Switch, Function, Loop or Program...")}getAllBindings(){const G=Object.create(null);let J=this;do{for(let X of Object.keys(J.bindings))if(X in G===!1)G[X]=J.bindings[X];J=J.parent}while(J);return G}bindingIdentifierEquals(G,J){return this.getBindingIdentifier(G)===J}getBinding(G){let J=this,X;do{const Z=J.getOwnBinding(G);if(Z){var H;if((H=X)!=null&&H.isPattern()&&Z.kind!=="param"&&Z.kind!=="local");else return Z}else if(!Z&&G==="arguments"&&J.path.isFunction()&&!J.path.isArrowFunctionExpression())break;X=J.path}while(J=J.parent)}getOwnBinding(G){return this.bindings[G]}getBindingIdentifier(G){var J;return(J=this.getBinding(G))==null?void 0:J.identifier}getOwnBindingIdentifier(G){const J=this.bindings[G];return J==null?void 0:J.identifier}hasOwnBinding(G){return!!this.getOwnBinding(G)}hasBinding(G,J){if(!G)return!1;let X=this;do if(X.hasOwnBinding(G))return!0;while(X=X.parent);let H,Z;if(typeof J==="object")H=J.noGlobals,Z=J.noUids;else if(typeof J==="boolean")H=J;if(!Z&&this.hasUid(G))return!0;if(!H&&v2.globals.includes(G))return!0;if(!H&&v2.contextVariables.includes(G))return!0;return!1}parentHasBinding(G,J){var X;return(X=this.parent)==null?void 0:X.hasBinding(G,J)}moveBindingTo(G,J){const X=this.getBinding(G);if(X)X.scope.removeOwnBinding(G),X.scope=J,J.bindings[G]=X}removeOwnBinding(G){delete this.bindings[G]}removeBinding(G){var J;(J=this.getBinding(G))==null||J.scope.removeOwnBinding(G);let X=this;do if(X.uids[G])X.uids[G]=!1;while(X=X.parent)}hoistVariables(G=(J)=>this.push({id:J})){this.crawl();const J=new Set;for(let H of Object.keys(this.bindings)){const Z=this.bindings[H];if(!Z)continue;const{path:V}=Z;if(!V.isVariableDeclarator())continue;const{parent:Q,parentPath:Y}=V;if(Q.kind!=="var"||J.has(Q))continue;J.add(V.parent);let W;const z=[];for(let B of Q.declarations){var X;if((X=W)!=null||(W=B.id),B.init)z.push(X$1("=",B.id,B.init));const q=Object.keys(_B(B,!1,!0,!0));for(let F of q)G(Q5(F),B.init!=null)}if(Y.parentPath.isFor({left:Q}))Y.replaceWith(W);else if(z.length===0)Y.remove();else{const B=z.length===1?z[0]:_$1(z);if(Y.parentPath.isForStatement({init:Q}))Y.replaceWith(B);else Y.replaceWith(C$1(B))}}}}yB.default=v2;v2.globals=Object.keys(tB1.builtin);v2.contextVariables=["arguments","undefined","Infinity","NaN"];v2.prototype._renameFromMap=function G(J,X,H,Z){if(J[X])J[H]=Z,J[X]=null},v2.prototype.traverse=function(G,J,X){oB1.default(G,J,this,X,this.path)},v2.prototype._generateUid=function G(J,X){let H=J;if(X>1)H+=X;return`_${H}`},v2.prototype.toArray=function G(J,X,H){if(V5(J)){const Q=this.getBinding(J.name);if(Q!=null&&Q.constant&&Q.path.isGenericType("Array"))return J}if(gB(J))return J;if(V5(J,{name:"arguments"}))return TB(H3(H3(H3(Q5("Array"),Q5("prototype")),Q5("slice")),Q5("call")),[J]);let Z;const V=[J];if(X===!0)Z="toConsumableArray";else if(typeof X==="number")V.push(f$1(X)),Z="slicedToArray";else Z="toArray";if(H)V.unshift(this.path.hub.addHelper(Z)),Z="maybeArrayLike";return TB(this.path.hub.addHelper(Z),V)},v2.prototype.getAllBindingsOfKind=function G(...J){const X=Object.create(null);for(let H of J){let Z=this;do{for(let V of Object.keys(Z.bindings)){const Q=Z.bindings[V];if(Q.kind===H)X[V]=Q}Z=Z.parent}while(Z)}return X},Object.defineProperties(v2.prototype,{parentBlock:{configurable:!0,enumerable:!0,get(){return this.path.parent}},hub:{configurable:!0,enumerable:!0,get(){return this.path.hub}}})});var lB=S((xB)=>{function y$1(G){let J=this;while(J=J.parentPath)if(G(J))return J;return null}function m$1(G){let J=this;do if(G(J))return J;while(J=J.parentPath);return null}function x$1(){return this.findParent((G)=>G.isFunction())}function l$1(){let G=this;do if(!G.parentPath||Array.isArray(G.container)&&G.isStatement())break;else G=G.parentPath;while(G);if(G&&(G.isProgram()||G.isFile()))throw new Error("File/Program node, we can't possibly find a statement parent to this");return G}function c$1(G){return this.getDeepestCommonAncestorFrom(G,function(J,X,H){let Z;const V=h$1[J.type];for(let Q of H){const Y=Q[X+1];if(!Z){Z=Y;continue}if(Y.listKey&&Z.listKey===Y.listKey){if(Y.key<Z.key){Z=Y;continue}}const W=V.indexOf(Z.parentKey),z=V.indexOf(Y.parentKey);if(W>z)Z=Y}return Z})}function a$1(G,J){if(!G.length)return this;if(G.length===1)return G[0];let X=1/0,H,Z;const V=G.map((Y)=>{const W=[];do W.unshift(Y);while((Y=Y.parentPath)&&Y!==this);if(W.length<X)X=W.length;return W}),Q=V[0];G:for(let Y=0;Y<X;Y++){const W=Q[Y];for(let z of V)if(z[Y]!==W)break G;H=Y,Z=W}if(Z)if(J)return J(Z,H,V);else return Z;else throw new Error("Couldn't find intersection")}function r$1(){let G=this;const J=[];do J.push(G);while(G=G.parentPath);return J}function i$1(G){return G.isDescendant(this)}function u$1(G){return!!this.findParent((J)=>J===G)}function d$1(...G){let J=this;while(J){for(let X of G)if(J.node.type===X)return!0;J=J.parentPath}return!1}Object.defineProperty(xB,"__esModule",{value:!0});xB.find=m$1;xB.findParent=y$1;xB.getAncestry=r$1;xB.getDeepestCommonAncestorFrom=a$1;xB.getEarliestCommonAncestorFrom=c$1;xB.getFunctionParent=x$1;xB.getStatementParent=l$1;xB.inType=d$1;xB.isAncestor=i$1;xB.isDescendant=u$1;var b$1=F1(),{VISITOR_KEYS:h$1}=b$1});var V3=S((rB)=>{function WR1(G){if(G.every((J)=>QR1(J))){if(cB)return cB(G);return VR1(G)}else if(G.every((J)=>YR1(J))){if(aB)return aB(G)}}Object.defineProperty(rB,"__esModule",{value:!0});rB.createUnionType=WR1;var ZR1=F1(),{createFlowUnionType:cB,createTSUnionType:aB,createUnionTypeAnnotation:VR1,isFlowType:QR1,isTSType:YR1}=ZR1});var nB=S((pB)=>{function RR1(G){if(!this.isReferenced())return;const J=this.scope.getBinding(G.name);if(J)if(J.identifier.typeAnnotation)return J.identifier.typeAnnotation;else return MR1(J,this,G.name);if(G.name==="undefined")return $R1();else if(G.name==="NaN"||G.name==="Infinity")return dB();else if(G.name==="arguments");}function MR1(G,J,X){const H=[],Z=[];let V=iB(G,J,Z);const Q=sB(G,J,X);if(Q){const Y=iB(G,Q.ifStatement);V=V.filter((W)=>!Y.includes(W)),H.push(Q.typeAnnotation)}if(V.length){V.push(...Z);for(let Y of V)H.push(Y.getTypeAnnotation())}if(!H.length)return;return uB.createUnionType(H)}function iB(G,J,X){const H=G.constantViolations.slice();return H.unshift(G.path),H.filter((Z)=>{Z=Z.resolve();const V=Z._guessExecutionStatusRelativeTo(J);if(X&&V==="unknown")X.push(Z);return V==="before"})}function qR1(G,J){const X=J.node.operator,H=J.get("right").resolve(),Z=J.get("left").resolve();let V;if(Z.isIdentifier({name:G}))V=H;else if(H.isIdentifier({name:G}))V=Z;if(V){if(X==="===")return V.getTypeAnnotation();if(KR1.includes(X))return dB();return}if(X!=="==="&&X!=="==")return;let Q,Y;if(Z.isUnaryExpression({operator:"typeof"}))Q=Z,Y=H;else if(H.isUnaryExpression({operator:"typeof"}))Q=H,Y=Z;if(!Q)return;if(!Q.get("argument").isIdentifier({name:G}))return;if(Y=Y.resolve(),!Y.isLiteral())return;const W=Y.node.value;if(typeof W!=="string")return;return BR1(W)}function FR1(G,J,X){let H;while(H=J.parentPath){if(H.isIfStatement()||H.isConditionalExpression()){if(J.key==="test")return;return H}if(H.isFunction()){if(H.parentPath.scope.getBinding(X)!==G)return}J=H}}function sB(G,J,X){const H=FR1(G,J,X);if(!H)return;const V=[H.get("test")],Q=[];for(let Y=0;Y<V.length;Y++){const W=V[Y];if(W.isLogicalExpression()){if(W.node.operator==="&&")V.push(W.get("left")),V.push(W.get("right"))}else if(W.isBinaryExpression()){const z=qR1(X,W);if(z)Q.push(z)}}if(Q.length)return{typeAnnotation:uB.createUnionType(Q),ifStatement:H};return sB(G,H,X)}Object.defineProperty(pB,"__esModule",{value:!0});pB.default=RR1;var UR1=F1(),uB=V3(),{BOOLEAN_NUMBER_BINARY_OPERATORS:KR1,createTypeAnnotationBasedOnTypeof:BR1,numberTypeAnnotation:dB,voidTypeAnnotation:$R1}=UR1});var Z$=S((W3)=>{function ER1(){if(!this.get("id").isIdentifier())return;return this.get("init").getTypeAnnotation()}function tB(G){return G.typeAnnotation}function G$(G){return G.typeAnnotation}function OR1(){return this.get("expression").getTypeAnnotation()}function vR1(G){if(G.callee.type==="Identifier")return v0(G.callee)}function _R1(){return W5()}function gR1(G){const J=G.operator;if(J==="void")return NR1();else if(SR1.includes(J))return l5();else if(PR1.includes(J))return W5();else if(CR1.includes(J))return Y3()}function bR1(G){const J=G.operator;if(fR1.includes(J))return l5();else if(AR1.includes(J))return Y3();else if(J==="+"){const X=this.get("right"),H=this.get("left");if(H.isBaseType("number")&&X.isBaseType("number"))return l5();else if(H.isBaseType("string")||X.isBaseType("string"))return W5();return wR1([W5(),l5()])}}function hR1(){const G=[this.get("left").getTypeAnnotation(),this.get("right").getTypeAnnotation()];return eB.createUnionType(G)}function yR1(){const G=[this.get("consequent").getTypeAnnotation(),this.get("alternate").getTypeAnnotation()];return eB.createUnionType(G)}function mR1(){return this.get("expressions").pop().getTypeAnnotation()}function xR1(){return this.get("expression").getTypeAnnotation()}function lR1(){return this.get("right").getTypeAnnotation()}function cR1(G){const J=G.operator;if(J==="++"||J==="--")return l5()}function aR1(){return W5()}function rR1(){return l5()}function iR1(){return Y3()}function uR1(){return LR1()}function dR1(){return v0(Y5("RegExp"))}function sR1(){return v0(Y5("Object"))}function J$(){return v0(Y5("Array"))}function X$(){return J$()}function pR1(){return v0(Y5("Function"))}function GM1(){const{callee:G}=this.node;if(oR1(G))return Q3(W5());else if(nR1(G)||eR1(G)||kR1(G,{name:"Array"}))return Q3(oB());else if(tR1(G))return Q3(TR1([W5(),oB()]));return H$(this.get("callee"))}function JM1(){return H$(this.get("tag"))}function H$(G){if(G=G.resolve(),G.isFunction()){const{node:J}=G;if(J.async)if(J.generator)return v0(Y5("AsyncIterator"));else return v0(Y5("Promise"));else if(J.generator)return v0(Y5("Iterator"));else if(G.node.returnType)return G.node.returnType}}Object.defineProperty(W3,"__esModule",{value:!0});W3.ArrayExpression=J$;W3.AssignmentExpression=lR1;W3.BinaryExpression=bR1;W3.BooleanLiteral=iR1;W3.CallExpression=GM1;W3.ConditionalExpression=yR1;W3.ClassDeclaration=W3.ClassExpression=W3.FunctionDeclaration=W3.ArrowFunctionExpression=W3.FunctionExpression=pR1;Object.defineProperty(W3,"Identifier",{enumerable:!0,get:function(){return IR1.default}});W3.LogicalExpression=hR1;W3.NewExpression=vR1;W3.NullLiteral=uR1;W3.NumericLiteral=rR1;W3.ObjectExpression=sR1;W3.ParenthesizedExpression=xR1;W3.RegExpLiteral=dR1;W3.RestElement=X$;W3.SequenceExpression=mR1;W3.StringLiteral=aR1;W3.TSAsExpression=G$;W3.TSNonNullExpression=OR1;W3.TaggedTemplateExpression=JM1;W3.TemplateLiteral=_R1;W3.TypeCastExpression=tB;W3.UnaryExpression=gR1;W3.UpdateExpression=cR1;W3.VariableDeclarator=ER1;var DR1=F1(),IR1=nB(),eB=V3(),{BOOLEAN_BINARY_OPERATORS:AR1,BOOLEAN_UNARY_OPERATORS:CR1,NUMBER_BINARY_OPERATORS:fR1,NUMBER_UNARY_OPERATORS:SR1,STRING_UNARY_OPERATORS:PR1,anyTypeAnnotation:oB,arrayTypeAnnotation:Q3,booleanTypeAnnotation:Y3,buildMatchMemberExpression:eG,genericTypeAnnotation:v0,identifier:Y5,nullLiteralTypeAnnotation:LR1,numberTypeAnnotation:l5,stringTypeAnnotation:W5,tupleTypeAnnotation:TR1,unionTypeAnnotation:wR1,voidTypeAnnotation:NR1,isIdentifier:kR1}=DR1;tB.validParent=!0;G$.validParent=!0;X$.validParent=!0;var nR1=eG("Array.from"),oR1=eG("Object.keys"),eR1=eG("Object.values"),tR1=eG("Object.entries")});var U$=S((z$)=>{function iM1(){let G=this.getData("typeAnnotation");if(G!=null)return G;if(G=W$.call(this)||Y$(),xM1(G)||hM1(G))G=G.typeAnnotation;return this.setData("typeAnnotation",G),G}function W$(){const G=this.node;if(!G)if(this.key==="init"&&this.parentPath.isVariableDeclarator()){const X=this.parentPath.parentPath,H=X.parentPath;if(X.key==="left"&&H.isForInStatement())return aM1();if(X.key==="left"&&H.isForOfStatement())return Y$();return rM1()}else return;if(G.typeAnnotation)return G.typeAnnotation;if(z3.has(G))return;z3.add(G);try{var J;let X=V$[G.type];if(X)return X.call(this,G);if(X=V$[this.parentPath.type],(J=X)!=null&&J.validParent)return this.parentPath.getTypeAnnotation()}finally{z3.delete(G)}}function uM1(G,J){return U3(G,this.getTypeAnnotation(),J)}function U3(G,J,X){if(G==="string")return gM1(J);else if(G==="number")return _M1(J);else if(G==="boolean")return NM1(J);else if(G==="any")return tG(J);else if(G==="mixed")return vM1(J);else if(G==="empty")return kM1(J);else if(G==="void")return cM1(J);else if(X)return!1;else throw new Error(`Unknown base type ${G}`)}function dM1(G){const J=this.getTypeAnnotation();if(tG(J))return!0;if(lM1(J)){for(let X of J.types)if(tG(X)||U3(G,X,!0))return!0;return!1}else return U3(G,J,!0)}function sM1(G){const J=this.getTypeAnnotation(),X=G.getTypeAnnotation();if(!tG(J)&&EM1(J))return X.type===J.type;return!1}function pM1(G){const J=this.getTypeAnnotation();if(G==="Array"){if(bM1(J)||wM1(J)||mM1(J))return!0}return OM1(J)&&Q$(J.id,{name:G})||yM1(J)&&Q$(J.typeName,{name:G})}Object.defineProperty(z$,"__esModule",{value:!0});z$._getTypeAnnotation=W$;z$.baseTypeStrictlyMatches=sM1;z$.couldBeBaseType=dM1;z$.getTypeAnnotation=iM1;z$.isBaseType=uM1;z$.isGenericType=pM1;var V$=Z$(),TM1=F1(),{anyTypeAnnotation:Y$,isAnyTypeAnnotation:tG,isArrayTypeAnnotation:wM1,isBooleanTypeAnnotation:NM1,isEmptyTypeAnnotation:kM1,isFlowBaseAnnotation:EM1,isGenericTypeAnnotation:OM1,isIdentifier:Q$,isMixedTypeAnnotation:vM1,isNumberTypeAnnotation:_M1,isStringTypeAnnotation:gM1,isTSArrayType:bM1,isTSTypeAnnotation:hM1,isTSTypeReference:yM1,isTupleTypeAnnotation:mM1,isTypeAnnotation:xM1,isUnionTypeAnnotation:lM1,isVoidTypeAnnotation:cM1,stringTypeAnnotation:aM1,voidTypeAnnotation:rM1}=TM1,z3=new WeakSet});var B$=S((K$)=>{Object.defineProperty(K$,"__esModule",{value:!0});K$.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;K$.matchToToken=function(G){var J={type:"invalid",value:G[0],closed:void 0};if(G[1])J.type="string",J.closed=!!(G[3]||G[4]);else if(G[5])J.type="comment";else if(G[6])J.type="comment",J.closed=!!G[7];else if(G[8])J.type="regex";else if(G[9])J.type="number";else if(G[10])J.type="name";else if(G[11])J.type="punctuator";else if(G[12])J.type="whitespace";return J}});var B3=S((Ag1,K3)=>{var $$=process.argv||[],GJ=process.env,Zq1=!(("NO_COLOR"in GJ)||$$.includes("--no-color"))&&(("FORCE_COLOR"in GJ)||$$.includes("--color")||process.platform==="win32"||import.meta.require!=null&&import.meta.require("tty").isatty(1)&&GJ.TERM!=="dumb"||("CI"in GJ)),Vq1=(G,J,X=G)=>(H)=>{let Z=""+H,V=Z.indexOf(J,G.length);return~V?G+Qq1(Z,J,X,V)+J:G+Z+J},Qq1=(G,J,X,H)=>{let Z="",V=0;do Z+=G.substring(V,H)+X,V=H+J.length,H=G.indexOf(J,V);while(~H);return Z+G.substring(V)},R$=(G=Zq1)=>{let J=G?Vq1:()=>String;return{isColorSupported:G,reset:J("\x1B[0m","\x1B[0m"),bold:J("\x1B[1m","\x1B[22m","\x1B[22m\x1B[1m"),dim:J("\x1B[2m","\x1B[22m","\x1B[22m\x1B[2m"),italic:J("\x1B[3m","\x1B[23m"),underline:J("\x1B[4m","\x1B[24m"),inverse:J("\x1B[7m","\x1B[27m"),hidden:J("\x1B[8m","\x1B[28m"),strikethrough:J("\x1B[9m","\x1B[29m"),black:J("\x1B[30m","\x1B[39m"),red:J("\x1B[31m","\x1B[39m"),green:J("\x1B[32m","\x1B[39m"),yellow:J("\x1B[33m","\x1B[39m"),blue:J("\x1B[34m","\x1B[39m"),magenta:J("\x1B[35m","\x1B[39m"),cyan:J("\x1B[36m","\x1B[39m"),white:J("\x1B[37m","\x1B[39m"),gray:J("\x1B[90m","\x1B[39m"),bgBlack:J("\x1B[40m","\x1B[49m"),bgRed:J("\x1B[41m","\x1B[49m"),bgGreen:J("\x1B[42m","\x1B[49m"),bgYellow:J("\x1B[43m","\x1B[49m"),bgBlue:J("\x1B[44m","\x1B[49m"),bgMagenta:J("\x1B[45m","\x1B[49m"),bgCyan:J("\x1B[46m","\x1B[49m"),bgWhite:J("\x1B[47m","\x1B[49m"),blackBright:J("\x1B[90m","\x1B[39m"),redBright:J("\x1B[91m","\x1B[39m"),greenBright:J("\x1B[92m","\x1B[39m"),yellowBright:J("\x1B[93m","\x1B[39m"),blueBright:J("\x1B[94m","\x1B[39m"),magentaBright:J("\x1B[95m","\x1B[39m"),cyanBright:J("\x1B[96m","\x1B[39m"),whiteBright:J("\x1B[97m","\x1B[39m"),bgBlackBright:J("\x1B[100m","\x1B[49m"),bgRedBright:J("\x1B[101m","\x1B[49m"),bgGreenBright:J("\x1B[102m","\x1B[49m"),bgYellowBright:J("\x1B[103m","\x1B[49m"),bgBlueBright:J("\x1B[104m","\x1B[49m"),bgMagentaBright:J("\x1B[105m","\x1B[49m"),bgCyanBright:J("\x1B[106m","\x1B[49m"),bgWhiteBright:J("\x1B[107m","\x1B[49m")}};K3.exports=R$();K3.exports.createColors=R$});var q$=S((Cg1,M$)=>{var Yq1=/[|\\{}()[\]^$+*?.]/g;M$.exports=function(G){if(typeof G!=="string")throw new TypeError("Expected a string");return G.replace(Yq1,"\\$&")}});var j$=S((fg1,F$)=>{F$.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}});var $3=S((Sg1,C$)=>{function Wq1(G,J){return Math.pow(G[0]-J[0],2)+Math.pow(G[1]-J[1],2)+Math.pow(G[2]-J[2],2)}var z5=j$(),A$={};for(JJ in z5)if(z5.hasOwnProperty(JJ))A$[z5[JJ]]=JJ;var JJ,X1=C$.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(K2 in X1)if(X1.hasOwnProperty(K2)){if(!("channels"in X1[K2]))throw new Error("missing channels property: "+K2);if(!("labels"in X1[K2]))throw new Error("missing channel labels property: "+K2);if(X1[K2].labels.length!==X1[K2].channels)throw new Error("channel and label counts mismatch: "+K2);D$=X1[K2].channels,I$=X1[K2].labels,delete X1[K2].channels,delete X1[K2].labels,Object.defineProperty(X1[K2],"channels",{value:D$}),Object.defineProperty(X1[K2],"labels",{value:I$})}var D$,I$,K2;X1.rgb.hsl=function(G){var J=G[0]/255,X=G[1]/255,H=G[2]/255,Z=Math.min(J,X,H),V=Math.max(J,X,H),Q=V-Z,Y,W,z;if(V===Z)Y=0;else if(J===V)Y=(X-H)/Q;else if(X===V)Y=2+(H-J)/Q;else if(H===V)Y=4+(J-X)/Q;if(Y=Math.min(Y*60,360),Y<0)Y+=360;if(z=(Z+V)/2,V===Z)W=0;else if(z<=0.5)W=Q/(V+Z);else W=Q/(2-V-Z);return[Y,W*100,z*100]};X1.rgb.hsv=function(G){var J,X,H,Z,V,Q=G[0]/255,Y=G[1]/255,W=G[2]/255,z=Math.max(Q,Y,W),B=z-Math.min(Q,Y,W),q=function(F){return(z-F)/6/B+0.5};if(B===0)Z=V=0;else{if(V=B/z,J=q(Q),X=q(Y),H=q(W),Q===z)Z=H-X;else if(Y===z)Z=0.3333333333333333+J-H;else if(W===z)Z=0.6666666666666666+X-J;if(Z<0)Z+=1;else if(Z>1)Z-=1}return[Z*360,V*100,z*100]};X1.rgb.hwb=function(G){var J=G[0],X=G[1],H=G[2],Z=X1.rgb.hsl(G)[0],V=0.00392156862745098*Math.min(J,Math.min(X,H));return H=1-0.00392156862745098*Math.max(J,Math.max(X,H)),[Z,V*100,H*100]};X1.rgb.cmyk=function(G){var J=G[0]/255,X=G[1]/255,H=G[2]/255,Z,V,Q,Y;return Y=Math.min(1-J,1-X,1-H),Z=(1-J-Y)/(1-Y)||0,V=(1-X-Y)/(1-Y)||0,Q=(1-H-Y)/(1-Y)||0,[Z*100,V*100,Q*100,Y*100]};X1.rgb.keyword=function(G){var J=A$[G];if(J)return J;var X=1/0,H;for(var Z in z5)if(z5.hasOwnProperty(Z)){var V=z5[Z],Q=Wq1(G,V);if(Q<X)X=Q,H=Z}return H};X1.keyword.rgb=function(G){return z5[G]};X1.rgb.xyz=function(G){var J=G[0]/255,X=G[1]/255,H=G[2]/255;J=J>0.04045?Math.pow((J+0.055)/1.055,2.4):J/12.92,X=X>0.04045?Math.pow((X+0.055)/1.055,2.4):X/12.92,H=H>0.04045?Math.pow((H+0.055)/1.055,2.4):H/12.92;var Z=J*0.4124+X*0.3576+H*0.1805,V=J*0.2126+X*0.7152+H*0.0722,Q=J*0.0193+X*0.1192+H*0.9505;return[Z*100,V*100,Q*100]};X1.rgb.lab=function(G){var J=X1.rgb.xyz(G),X=J[0],H=J[1],Z=J[2],V,Q,Y;return X/=95.047,H/=100,Z/=108.883,X=X>0.008856?Math.pow(X,0.3333333333333333):7.787*X+0.13793103448275862,H=H>0.008856?Math.pow(H,0.3333333333333333):7.787*H+0.13793103448275862,Z=Z>0.008856?Math.pow(Z,0.3333333333333333):7.787*Z+0.13793103448275862,V=116*H-16,Q=500*(X-H),Y=200*(H-Z),[V,Q,Y]};X1.hsl.rgb=function(G){var J=G[0]/360,X=G[1]/100,H=G[2]/100,Z,V,Q,Y,W;if(X===0)return W=H*255,[W,W,W];if(H<0.5)V=H*(1+X);else V=H+X-H*X;Z=2*H-V,Y=[0,0,0];for(var z=0;z<3;z++){if(Q=J+0.3333333333333333*-(z-1),Q<0)Q++;if(Q>1)Q--;if(6*Q<1)W=Z+(V-Z)*6*Q;else if(2*Q<1)W=V;else if(3*Q<2)W=Z+(V-Z)*(0.6666666666666666-Q)*6;else W=Z;Y[z]=W*255}return Y};X1.hsl.hsv=function(G){var J=G[0],X=G[1]/100,H=G[2]/100,Z=X,V=Math.max(H,0.01),Q,Y;return H*=2,X*=H<=1?H:2-H,Z*=V<=1?V:2-V,Y=(H+X)/2,Q=H===0?2*Z/(V+Z):2*X/(H+X),[J,Q*100,Y*100]};X1.hsv.rgb=function(G){var J=G[0]/60,X=G[1]/100,H=G[2]/100,Z=Math.floor(J)%6,V=J-Math.floor(J),Q=255*H*(1-X),Y=255*H*(1-X*V),W=255*H*(1-X*(1-V));switch(H*=255,Z){case 0:return[H,W,Q];case 1:return[Y,H,Q];case 2:return[Q,H,W];case 3:return[Q,Y,H];case 4:return[W,Q,H];case 5:return[H,Q,Y]}};X1.hsv.hsl=function(G){var J=G[0],X=G[1]/100,H=G[2]/100,Z=Math.max(H,0.01),V,Q,Y;return Y=(2-X)*H,V=(2-X)*Z,Q=X*Z,Q/=V<=1?V:2-V,Q=Q||0,Y/=2,[J,Q*100,Y*100]};X1.hwb.rgb=function(G){var J=G[0]/360,X=G[1]/100,H=G[2]/100,Z=X+H,V,Q,Y,W;if(Z>1)X/=Z,H/=Z;if(V=Math.floor(6*J),Q=1-H,Y=6*J-V,(V&1)!==0)Y=1-Y;W=X+Y*(Q-X);var z,B,q;switch(V){default:case 6:case 0:z=Q,B=W,q=X;break;case 1:z=W,B=Q,q=X;break;case 2:z=X,B=Q,q=W;break;case 3:z=X,B=W,q=Q;break;case 4:z=W,B=X,q=Q;break;case 5:z=Q,B=X,q=W;break}return[z*255,B*255,q*255]};X1.cmyk.rgb=function(G){var J=G[0]/100,X=G[1]/100,H=G[2]/100,Z=G[3]/100,V,Q,Y;return V=1-Math.min(1,J*(1-Z)+Z),Q=1-Math.min(1,X*(1-Z)+Z),Y=1-Math.min(1,H*(1-Z)+Z),[V*255,Q*255,Y*255]};X1.xyz.rgb=function(G){var J=G[0]/100,X=G[1]/100,H=G[2]/100,Z,V,Q;return Z=J*3.2406+X*-1.5372+H*-0.4986,V=J*-0.9689+X*1.8758+H*0.0415,Q=J*0.0557+X*-0.204+H*1.057,Z=Z>0.0031308?1.055*Math.pow(Z,0.4166666666666667)-0.055:Z*12.92,V=V>0.0031308?1.055*Math.pow(V,0.4166666666666667)-0.055:V*12.92,Q=Q>0.0031308?1.055*Math.pow(Q,0.4166666666666667)-0.055:Q*12.92,Z=Math.min(Math.max(0,Z),1),V=Math.min(Math.max(0,V),1),Q=Math.min(Math.max(0,Q),1),[Z*255,V*255,Q*255]};X1.xyz.lab=function(G){var J=G[0],X=G[1],H=G[2],Z,V,Q;return J/=95.047,X/=100,H/=108.883,J=J>0.008856?Math.pow(J,0.3333333333333333):7.787*J+0.13793103448275862,X=X>0.008856?Math.pow(X,0.3333333333333333):7.787*X+0.13793103448275862,H=H>0.008856?Math.pow(H,0.3333333333333333):7.787*H+0.13793103448275862,Z=116*X-16,V=500*(J-X),Q=200*(X-H),[Z,V,Q]};X1.lab.xyz=function(G){var J=G[0],X=G[1],H=G[2],Z,V,Q;V=(J+16)/116,Z=X/500+V,Q=V-H/200;var Y=Math.pow(V,3),W=Math.pow(Z,3),z=Math.pow(Q,3);return V=Y>0.008856?Y:(V-0.13793103448275862)/7.787,Z=W>0.008856?W:(Z-0.13793103448275862)/7.787,Q=z>0.008856?z:(Q-0.13793103448275862)/7.787,Z*=95.047,V*=100,Q*=108.883,[Z,V,Q]};X1.lab.lch=function(G){var J=G[0],X=G[1],H=G[2],Z,V,Q;if(Z=Math.atan2(H,X),V=Z*360/2/Math.PI,V<0)V+=360;return Q=Math.sqrt(X*X+H*H),[J,Q,V]};X1.lch.lab=function(G){var J=G[0],X=G[1],H=G[2],Z,V,Q;return Q=H/360*2*Math.PI,Z=X*Math.cos(Q),V=X*Math.sin(Q),[J,Z,V]};X1.rgb.ansi16=function(G){var J=G[0],X=G[1],H=G[2],Z=1 in arguments?arguments[1]:X1.rgb.hsv(G)[2];if(Z=Math.round(Z/50),Z===0)return 30;var V=30+(Math.round(H/255)<<2|Math.round(X/255)<<1|Math.round(J/255));if(Z===2)V+=60;return V};X1.hsv.ansi16=function(G){return X1.rgb.ansi16(X1.hsv.rgb(G),G[2])};X1.rgb.ansi256=function(G){var J=G[0],X=G[1],H=G[2];if(J===X&&X===H){if(J<8)return 16;if(J>248)return 231;return Math.round((J-8)/247*24)+232}var Z=16+36*Math.round(J/255*5)+6*Math.round(X/255*5)+Math.round(H/255*5);return Z};X1.ansi16.rgb=function(G){var J=G%10;if(J===0||J===7){if(G>50)J+=3.5;return J=J/10.5*255,[J,J,J]}var X=(~~(G>50)+1)*0.5,H=(J&1)*X*255,Z=(J>>1&1)*X*255,V=(J>>2&1)*X*255;return[H,Z,V]};X1.ansi256.rgb=function(G){if(G>=232){var J=(G-232)*10+8;return[J,J,J]}G-=16;var X,H=Math.floor(G/36)/5*255,Z=Math.floor((X=G%36)/6)/5*255,V=X%6/5*255;return[H,Z,V]};X1.rgb.hex=function(G){var J=((Math.round(G[0])&255)<<16)+((Math.round(G[1])&255)<<8)+(Math.round(G[2])&255),X=J.toString(16).toUpperCase();return"000000".substring(X.length)+X};X1.hex.rgb=function(G){var J=G.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!J)return[0,0,0];var X=J[0];if(J[0].length===3)X=X.split("").map(function(Y){return Y+Y}).join("");var H=parseInt(X,16),Z=H>>16&255,V=H>>8&255,Q=H&255;return[Z,V,Q]};X1.rgb.hcg=function(G){var J=G[0]/255,X=G[1]/255,H=G[2]/255,Z=Math.max(Math.max(J,X),H),V=Math.min(Math.min(J,X),H),Q=Z-V,Y,W;if(Q<1)Y=V/(1-Q);else Y=0;if(Q<=0)W=0;else if(Z===J)W=(X-H)/Q%6;else if(Z===X)W=2+(H-J)/Q;else W=4+(J-X)/Q+4;return W/=6,W%=1,[W*360,Q*100,Y*100]};X1.hsl.hcg=function(G){var J=G[1]/100,X=G[2]/100,H=1,Z=0;if(X<0.5)H=2*J*X;else H=2*J*(1-X);if(H<1)Z=(X-0.5*H)/(1-H);return[G[0],H*100,Z*100]};X1.hsv.hcg=function(G){var J=G[1]/100,X=G[2]/100,H=J*X,Z=0;if(H<1)Z=(X-H)/(1-H);return[G[0],H*100,Z*100]};X1.hcg.rgb=function(G){var J=G[0]/360,X=G[1]/100,H=G[2]/100;if(X===0)return[H*255,H*255,H*255];var Z=[0,0,0],V=J%1*6,Q=V%1,Y=1-Q,W=0;switch(Math.floor(V)){case 0:Z[0]=1,Z[1]=Q,Z[2]=0;break;case 1:Z[0]=Y,Z[1]=1,Z[2]=0;break;case 2:Z[0]=0,Z[1]=1,Z[2]=Q;break;case 3:Z[0]=0,Z[1]=Y,Z[2]=1;break;case 4:Z[0]=Q,Z[1]=0,Z[2]=1;break;default:Z[0]=1,Z[1]=0,Z[2]=Y}return W=(1-X)*H,[(X*Z[0]+W)*255,(X*Z[1]+W)*255,(X*Z[2]+W)*255]};X1.hcg.hsv=function(G){var J=G[1]/100,X=G[2]/100,H=J+X*(1-J),Z=0;if(H>0)Z=J/H;return[G[0],Z*100,H*100]};X1.hcg.hsl=function(G){var J=G[1]/100,X=G[2]/100,H=X*(1-J)+0.5*J,Z=0;if(H>0&&H<0.5)Z=J/(2*H);else if(H>=0.5&&H<1)Z=J/(2*(1-H));return[G[0],Z*100,H*100]};X1.hcg.hwb=function(G){var J=G[1]/100,X=G[2]/100,H=J+X*(1-J);return[G[0],(H-J)*100,(1-H)*100]};X1.hwb.hcg=function(G){var J=G[1]/100,X=G[2]/100,H=1-X,Z=H-J,V=0;if(Z<1)V=(H-Z)/(1-Z);return[G[0],Z*100,V*100]};X1.apple.rgb=function(G){return[G[0]/65535*255,G[1]/65535*255,G[2]/65535*255]};X1.rgb.apple=function(G){return[G[0]/255*65535,G[1]/255*65535,G[2]/255*65535]};X1.gray.rgb=function(G){return[G[0]/100*255,G[0]/100*255,G[0]/100*255]};X1.gray.hsl=X1.gray.hsv=function(G){return[0,0,G[0]]};X1.gray.hwb=function(G){return[0,100,G[0]]};X1.gray.cmyk=function(G){return[0,0,0,G[0]]};X1.gray.lab=function(G){return[G[0],0,0]};X1.gray.hex=function(G){var J=Math.round(G[0]/100*255)&255,X=(J<<16)+(J<<8)+J,H=X.toString(16).toUpperCase();return"000000".substring(H.length)+H};X1.rgb.gray=function(G){var J=(G[0]+G[1]+G[2])/3;return[J/255*100]}});var S$=S((Pg1,f$)=>{function zq1(){var G={},J=Object.keys(XJ);for(var X=J.length,H=0;H<X;H++)G[J[H]]={distance:-1,parent:null};return G}function Uq1(G){var J=zq1(),X=[G];J[G].distance=0;while(X.length){var H=X.pop(),Z=Object.keys(XJ[H]);for(var V=Z.length,Q=0;Q<V;Q++){var Y=Z[Q],W=J[Y];if(W.distance===-1)W.distance=J[H].distance+1,W.parent=H,X.unshift(Y)}}return J}function Kq1(G,J){return function(X){return J(G(X))}}function Bq1(G,J){var X=[J[G].parent,G],H=XJ[J[G].parent][G],Z=J[G].parent;while(J[Z].parent)X.unshift(J[Z].parent),H=Kq1(XJ[J[Z].parent][Z],H),Z=J[Z].parent;return H.conversion=X,H}var XJ=$3();f$.exports=function(G){var J=Uq1(G),X={},H=Object.keys(J);for(var Z=H.length,V=0;V<Z;V++){var Q=H[V],Y=J[Q];if(Y.parent===null)continue;X[Q]=Bq1(Q,J)}return X}});var L$=S((Lg1,P$)=>{function Mq1(G){var J=function(X){if(X===void 0||X===null)return X;if(arguments.length>1)X=Array.prototype.slice.call(arguments);return G(X)};if("conversion"in G)J.conversion=G.conversion;return J}function qq1(G){var J=function(X){if(X===void 0||X===null)return X;if(arguments.length>1)X=Array.prototype.slice.call(arguments);var H=G(X);if(typeof H==="object")for(var Z=H.length,V=0;V<Z;V++)H[V]=Math.round(H[V]);return H};if("conversion"in G)J.conversion=G.conversion;return J}var R3=$3(),$q1=S$(),c5={},Rq1=Object.keys(R3);Rq1.forEach(function(G){c5[G]={},Object.defineProperty(c5[G],"channels",{value:R3[G].channels}),Object.defineProperty(c5[G],"labels",{value:R3[G].labels});var J=$q1(G),X=Object.keys(J);X.forEach(function(H){var Z=J[H];c5[G][H]=qq1(Z),c5[G][H].raw=Mq1(Z)})});P$.exports=c5});var w$=S((Tg1,T$)=>{function Fq1(){const G=new Map,J={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};J.color.grey=J.color.gray;for(let Z of Object.keys(J)){const V=J[Z];for(let Q of Object.keys(V)){const Y=V[Q];J[Q]={open:`\x1B[${Y[0]}m`,close:`\x1B[${Y[1]}m`},V[Q]=J[Q],G.set(Y[0],Y[1])}Object.defineProperty(J,Z,{value:V,enumerable:!1}),Object.defineProperty(J,"codes",{value:G,enumerable:!1})}const X=(Z)=>Z,H=(Z,V,Q)=>[Z,V,Q];J.color.close="\x1B[39m",J.bgColor.close="\x1B[49m",J.color.ansi={ansi:HJ(X,0)},J.color.ansi256={ansi256:ZJ(X,0)},J.color.ansi16m={rgb:VJ(H,0)},J.bgColor.ansi={ansi:HJ(X,10)},J.bgColor.ansi256={ansi256:ZJ(X,10)},J.bgColor.ansi16m={rgb:VJ(H,10)};for(let Z of Object.keys(a5)){if(typeof a5[Z]!=="object")continue;const V=a5[Z];if(Z==="ansi16")Z="ansi";if("ansi16"in V)J.color.ansi[Z]=HJ(V.ansi16,0),J.bgColor.ansi[Z]=HJ(V.ansi16,10);if("ansi256"in V)J.color.ansi256[Z]=ZJ(V.ansi256,0),J.bgColor.ansi256[Z]=ZJ(V.ansi256,10);if("rgb"in V)J.color.ansi16m[Z]=VJ(V.rgb,0),J.bgColor.ansi16m[Z]=VJ(V.rgb,10)}return J}var a5=L$(),HJ=(G,J)=>function(){return`\x1B[${G.apply(a5,arguments)+J}m`},ZJ=(G,J)=>function(){const X=G.apply(a5,arguments);return`\x1B[${38+J};5;${X}m`},VJ=(G,J)=>function(){const X=G.apply(a5,arguments);return`\x1B[${38+J};2;${X[0]};${X[1]};${X[2]}m`};Object.defineProperty(T$,"exports",{enumerable:!0,get:Fq1})});var k$=S((wg1,N$)=>{N$.exports=(G,J)=>{J=J||process.argv;const X=G.startsWith("-")?"":G.length===1?"-":"--",H=J.indexOf(X+G),Z=J.indexOf("--");return H!==-1&&(Z===-1?!0:H<Z)}});var O$=S((Ng1,E$)=>{function Dq1(G){if(G===0)return!1;return{level:G,hasBasic:!0,has256:G>=2,has16m:G>=3}}function Iq1(G){if(r5===!1)return 0;if(l2("color=16m")||l2("color=full")||l2("color=truecolor"))return 3;if(l2("color=256"))return 2;if(G&&!G.isTTY&&r5!==!0)return 0;const J=r5?1:0;if(process.platform==="win32"){const X=jq1.release().split(".");if(Number(process.versions.node.split(".")[0])>=8&&Number(X[0])>=10&&Number(X[2])>=10586)return Number(X[2])>=14931?3:2;return 1}if("CI"in Z2){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some((X)=>(X in Z2))||Z2.CI_NAME==="codeship")return 1;return J}if("TEAMCITY_VERSION"in Z2)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Z2.TEAMCITY_VERSION)?1:0;if(Z2.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in Z2){const X=parseInt((Z2.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Z2.TERM_PROGRAM){case"iTerm.app":return X>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(Z2.TERM))return 2;if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Z2.TERM))return 1;if("COLORTERM"in Z2)return 1;if(Z2.TERM==="dumb")return J;return J}function M3(G){const J=Iq1(G);return Dq1(J)}var jq1=import.meta.require("os"),l2=k$(),Z2=process.env,r5;if(l2("no-color")||l2("no-colors")||l2("color=false"))r5=!1;else if(l2("color")||l2("colors")||l2("color=true")||l2("color=always"))r5=!0;if("FORCE_COLOR"in Z2)r5=Z2.FORCE_COLOR.length===0||parseInt(Z2.FORCE_COLOR,10)!==0;E$.exports={supportsColor:M3,stdout:M3(process.stdout),stderr:M3(process.stderr)}});var h$=S((kg1,b$)=>{function g$(G){if(G[0]==="u"&&G.length===5||G[0]==="x"&&G.length===3)return String.fromCharCode(parseInt(G.slice(1),16));return Sq1.get(G)||G}function Pq1(G,J){const X=[],H=J.trim().split(/\s*,\s*/g);let Z;for(let V of H)if(!isNaN(V))X.push(Number(V));else if(Z=V.match(Cq1))X.push(Z[2].replace(fq1,(Q,Y,W)=>Y?g$(Y):W));else throw new Error(`Invalid Chalk template style argument: ${V} (in style '${G}')`);return X}function Lq1(G){v$.lastIndex=0;const J=[];let X;while((X=v$.exec(G))!==null){const H=X[1];if(X[2]){const Z=Pq1(H,X[2]);J.push([H].concat(Z))}else J.push([H])}return J}function _$(G,J){const X={};for(let Z of J)for(let V of Z.styles)X[V[0]]=Z.inverse?null:V.slice(1);let H=G;for(let Z of Object.keys(X))if(Array.isArray(X[Z])){if(!(Z in H))throw new Error(`Unknown Chalk style: ${Z}`);if(X[Z].length>0)H=H[Z].apply(H,X[Z]);else H=H[Z]}return H}var Aq1=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,v$=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,Cq1=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,fq1=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,Sq1=new Map([["n","\n"],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);b$.exports=(G,J)=>{const X=[],H=[];let Z=[];if(J.replace(Aq1,(V,Q,Y,W,z,B)=>{if(Q)Z.push(g$(Q));else if(W){const q=Z.join("");Z=[],H.push(X.length===0?q:_$(G,X)(q)),X.push({inverse:Y,styles:Lq1(W)})}else if(z){if(X.length===0)throw new Error("Found extraneous } in Chalk template literal");H.push(_$(G,X)(Z.join(""))),Z=[],X.pop()}else Z.push(B)}),H.push(Z.join("")),X.length>0){const V=`Chalk template literal is missing ${X.length} closing bracket${X.length===1?"":"s"} (\`}\`)`;throw new Error(V)}return H.join("")}});var c$=S((Eg1,r9)=>{function y$(G,J){J=J||{};const X=q3?q3.level:0;G.level=J.level===void 0?X:J.level,G.enabled="enabled"in J?J.enabled:G.level>0}function a9(G){if(!this||!(this instanceof a9)||this.template){const J={};return y$(J,G),J.template=function(){const X=[].slice.call(arguments);return kq1.apply(null,[J.template].concat(X))},Object.setPrototypeOf(J,a9.prototype),Object.setPrototypeOf(J.template,J),J.template.constructor=a9,J.template}y$(this,G)}function QJ(G,J,X){const H=function(){return Nq1.apply(H,arguments)};H._styles=G,H._empty=J;const Z=this;return Object.defineProperty(H,"level",{enumerable:!0,get(){return Z.level},set(V){Z.level=V}}),Object.defineProperty(H,"enabled",{enumerable:!0,get(){return Z.enabled},set(V){Z.enabled=V}}),H.hasGrey=this.hasGrey||X==="gray"||X==="grey",H.__proto__=wq1,H}function Nq1(){const G=arguments,J=G.length;let X=String(arguments[0]);if(J===0)return"";if(J>1)for(let Z=1;Z<J;Z++)X+=" "+G[Z];if(!this.enabled||this.level<=0||!X)return this._empty?"":X;const H=s1.dim.open;if(m$&&this.hasGrey)s1.dim.open="";for(let Z of this._styles.slice().reverse())X=Z.open+X.replace(Z.closeRe,Z.open)+Z.close,X=X.replace(/\r?\n/g,`${Z.close}\$&${Z.open}`);return s1.dim.open=H,X}function kq1(G,J){if(!Array.isArray(J))return[].slice.call(arguments,1).join(" ");const X=[].slice.call(arguments,2),H=[J.raw[0]];for(let Z=1;Z<J.length;Z++)H.push(String(X[Z-1]).replace(/[{}\\]/g,"\\$&")),H.push(String(J.raw[Z]));return Tq1(G,H.join(""))}var F3=q$(),s1=w$(),q3=O$().stdout,Tq1=h$(),m$=process.platform==="win32"&&!(process.env.TERM||"").toLowerCase().startsWith("xterm"),x$=["ansi","ansi","ansi256","ansi16m"],l$=new Set(["gray"]),i5=Object.create(null);if(m$)s1.blue.open="\x1B[94m";for(let G of Object.keys(s1))s1[G].closeRe=new RegExp(F3(s1[G].close),"g"),i5[G]={get(){const J=s1[G];return QJ.call(this,this._styles?this._styles.concat(J):[J],this._empty,G)}};i5.visible={get(){return QJ.call(this,this._styles||[],!0,"visible")}};s1.color.closeRe=new RegExp(F3(s1.color.close),"g");for(let G of Object.keys(s1.color.ansi)){if(l$.has(G))continue;i5[G]={get(){const J=this.level;return function(){const H={open:s1.color[x$[J]][G].apply(null,arguments),close:s1.color.close,closeRe:s1.color.closeRe};return QJ.call(this,this._styles?this._styles.concat(H):[H],this._empty,G)}}}}s1.bgColor.closeRe=new RegExp(F3(s1.bgColor.close),"g");for(let G of Object.keys(s1.bgColor.ansi)){if(l$.has(G))continue;const J="bg"+G[0].toUpperCase()+G.slice(1);i5[J]={get(){const X=this.level;return function(){const Z={open:s1.bgColor[x$[X]][G].apply(null,arguments),close:s1.bgColor.close,closeRe:s1.bgColor.closeRe};return QJ.call(this,this._styles?this._styles.concat(Z):[Z],this._empty,G)}}}}var wq1=Object.defineProperties(()=>{},i5);Object.defineProperties(a9.prototype,i5);r9.exports=a9();r9.exports.supportsColor=q3;r9.exports.default=r9.exports});var o$=S((n$)=>{function u$(G){if(typeof WeakMap!="function")return null;var J=new WeakMap,X=new WeakMap;return(u$=function(H){return H?X:J})(G)}function Eq1(G,J){if(!J&&G&&G.__esModule)return G;if(G===null||typeof G!="object"&&typeof G!="function")return{default:G};var X=u$(J);if(X&&X.has(G))return X.get(G);var H={__proto__:null},Z=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var V in G)if(V!=="default"&&{}.hasOwnProperty.call(G,V)){var Q=Z?Object.getOwnPropertyDescriptor(G,V):null;Q&&(Q.get||Q.set)?Object.defineProperty(H,V,Q):H[V]=G[V]}return H.default=G,X&&X.set(G,H),H}function vq1(G){return{keyword:G.cyan,capitalized:G.yellow,jsxIdentifier:G.yellow,punctuator:G.yellow,number:G.magenta,string:G.green,regex:G.magenta,comment:G.gray,invalid:i$(i$(G.white,G.bgRed),G.bold)}}function bq1(G,J){let X="";for(let{type:H,value:Z}of s$(J)){const V=G[H];if(V)X+=Z.split(_q1).map((Q)=>V(Q)).join("\n");else X+=Z}return X}function p$(G){return d$.isColorSupported||G.forceColor}function hq1(G){if(G){var J;return(J=j3)!=null||(j3=D3.createColors(!0)),j3}return d$}function yq1(G,J={}){if(G!==""&&p$(J)){const X=vq1(hq1(J.forceColor));return bq1(X,G)}else return G}Object.defineProperty(n$,"__esModule",{value:!0});n$.default=yq1;n$.shouldHighlight=p$;var a$=B$(),r$=F9(),D3=Eq1(B3(),!0),d$=typeof process==="object"&&(process.env.FORCE_COLOR==="0"||process.env.FORCE_COLOR==="false")?D3.createColors(!1):D3.default,i$=(G,J)=>(X)=>G(J(X)),Oq1=new Set(["as","async","from","get","of","set"]),_q1=/\r\n|[\n\r\u2028\u2029]/,gq1=/^[()[\]{}]$/,s$;{const G=/^[a-z][\w-]*$/i,J=function(X,H,Z){if(X.type==="name"){if(r$.isKeyword(X.value)||r$.isStrictReservedWord(X.value,!0)||Oq1.has(X.value))return"keyword";if(G.test(X.value)&&(Z[H-1]==="<"||Z.slice(H-2,H)==="</"))return"jsxIdentifier";if(X.value[0]!==X.value[0].toLowerCase())return"capitalized"}if(X.type==="punctuator"&&gq1.test(X.value))return"bracket";if(X.type==="invalid"&&(X.value==="@"||X.value==="#"))return"punctuator";return X.type};s$=function*(X){let H;while(H=a$.default.exec(X)){const Z=a$.matchToToken(H);yield{type:J(Z,H.index,X),value:Z.value}}}}var j3=void 0;{let G,J;n$.getChalk=({forceColor:X})=>{var H;if((H=G)!=null||(G=c$()),X){var Z;return(Z=J)!=null||(J=new G.constructor({enabled:!0,level:1})),J}return G}}});var C3=S((ZR)=>{function XR(G){if(typeof WeakMap!="function")return null;var J=new WeakMap,X=new WeakMap;return(XR=function(H){return H?X:J})(G)}function lq1(G,J){if(!J&&G&&G.__esModule)return G;if(G===null||typeof G!="object"&&typeof G!="function")return{default:G};var X=XR(J);if(X&&X.has(G))return X.get(G);var H={__proto__:null},Z=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var V in G)if(V!=="default"&&{}.hasOwnProperty.call(G,V)){var Q=Z?Object.getOwnPropertyDescriptor(G,V):null;Q&&(Q.get||Q.set)?Object.defineProperty(H,V,Q):H[V]=G[V]}return H.default=G,X&&X.set(G,H),H}function aq1(G){if(G){var J;return(J=I3)!=null||(I3=A3.createColors(!0)),I3}return cq1}function rq1(G){return{gutter:G.gray,marker:t$(G.red,G.bold),message:t$(G.red,G.bold)}}function iq1(G,J,X){const H=Object.assign({column:0,line:-1},G.start),Z=Object.assign({},H,G.end),{linesAbove:V=2,linesBelow:Q=3}=X||{},Y=H.line,W=H.column,z=Z.line,B=Z.column;let q=Math.max(Y-(V+1),0),F=Math.min(J.length,z+Q);if(Y===-1)q=0;if(z===-1)F=J.length;const j=z-Y,f={};if(j)for(let h=0;h<=j;h++){const w=h+Y;if(!W)f[w]=!0;else if(h===0){const v=J[w-1].length;f[w]=[W,v-W+1]}else if(h===j)f[w]=[0,B];else{const v=J[w-h].length;f[w]=[0,v]}}else if(W===B)if(W)f[Y]=[W,0];else f[Y]=!0;else f[Y]=[W,B-W];return{start:q,end:F,markerLines:f}}function HR(G,J,X={}){const H=(X.highlightCode||X.forceColor)&&e$.shouldHighlight(X),Z=aq1(X.forceColor),V=rq1(Z),Q=(h,w)=>{return H?h(w):w},Y=G.split(JR),{start:W,end:z,markerLines:B}=iq1(J,Y,X),q=J.start&&typeof J.start.column==="number",F=String(z).length;let f=(H?e$.default(G,X):G).split(JR,z).slice(W,z).map((h,w)=>{const v=W+1+w,$1=` ${` ${v}`.slice(-F)} |`,G1=B[v],R1=!B[v+1];if(G1){let z1="";if(Array.isArray(G1)){const I1=h.slice(0,Math.max(G1[0]-1,0)).replace(/[^\t]/g," "),E1=G1[1]||1;if(z1=["\n ",Q(V.gutter,$1.replace(/\d/g," "))," ",I1,Q(V.marker,"^").repeat(E1)].join(""),R1&&X.message)z1+=" "+Q(V.message,X.message)}return[Q(V.marker,">"),Q(V.gutter,$1),h.length>0?` ${h}`:"",z1].join("")}else return` ${Q(V.gutter,$1)}${h.length>0?` ${h}`:""}`}).join("\n");if(X.message&&!q)f=`${" ".repeat(F+1)}${X.message}\n${f}`;if(H)return Z.reset(f);else return f}function uq1(G,J,X,H={}){if(!GR){GR=!0;const V="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";if(process.emitWarning)process.emitWarning(V,"DeprecationWarning");else{const Q=new Error(V);Q.name="DeprecationWarning",console.warn(new Error(V))}}return X=Math.max(X,0),HR(G,{start:{column:X,line:J}},H)}Object.defineProperty(ZR,"__esModule",{value:!0});ZR.codeFrameColumns=HR;ZR.default=uq1;var e$=o$(),A3=lq1(B3(),!0),cq1=typeof process==="object"&&(process.env.FORCE_COLOR==="0"||process.env.FORCE_COLOR==="false")?A3.createColors(!1):A3.default,t$=(G,J)=>(X)=>G(J(X)),I3=void 0,GR=!1,JR=/\r\n|[\n\r\u2028\u2029]/});var zR=S((YR)=>{Object.defineProperty(YR,"__esModule",{value:!0});YR.default=void 0;var VR=F1(),pq1=VR,{react:nq1}=VR,{cloneNode:oq1,jsxExpressionContainer:eq1,variableDeclaration:tq1,variableDeclarator:GF1}=pq1,JF1={ReferencedIdentifier(G,J){if(G.isJSXIdentifier()&&nq1.isCompatTag(G.node.name)&&!G.parentPath.isJSXMemberExpression())return;if(G.node.name==="this"){let H=G.scope;do if(H.path.isFunction()&&!H.path.isArrowFunctionExpression())break;while(H=H.parent);if(H)J.breakOnScopePaths.push(H.path)}const X=G.scope.getBinding(G.node.name);if(!X)return;for(let H of X.constantViolations)if(H.scope!==X.path.scope){J.mutableBinding=!0,G.stop();return}if(X!==J.scope.getBinding(G.node.name))return;J.bindings[G.node.name]=X}};class QR{constructor(G,J){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=J,this.path=G,this.attachAfter=!1}isCompatibleScope(G){for(let J of Object.keys(this.bindings)){const X=this.bindings[J];if(!G.bindingIdentifierEquals(J,X.identifier))return!1}return!0}getCompatibleScopes(){let G=this.path.scope;do{if(this.isCompatibleScope(G))this.scopes.push(G);else break;if(this.breakOnScopePaths.includes(G.path))break}while(G=G.parent)}getAttachmentPath(){let G=this._getAttachmentPath();if(!G)return;let J=G.scope;if(J.path===G)J=G.scope.parent;if(J.path.isProgram()||J.path.isFunction())for(let X of Object.keys(this.bindings)){if(!J.hasOwnBinding(X))continue;const H=this.bindings[X];if(H.kind==="param"||H.path.parentKey==="params")continue;if(this.getAttachmentParentForPath(H.path).key>=G.key){this.attachAfter=!0,G=H.path;for(let V of H.constantViolations)if(this.getAttachmentParentForPath(V).key>G.key)G=V}}return G}_getAttachmentPath(){const J=this.scopes.pop();if(!J)return;if(J.path.isFunction())if(this.hasOwnParamBindings(J)){if(this.scope===J)return;const X=J.path.get("body").get("body");for(let H=0;H<X.length;H++){if(X[H].node._blockHoist)continue;return X[H]}}else return this.getNextScopeAttachmentParent();else if(J.path.isProgram())return this.getNextScopeAttachmentParent()}getNextScopeAttachmentParent(){const G=this.scopes.pop();if(G)return this.getAttachmentParentForPath(G.path)}getAttachmentParentForPath(G){do if(!G.parentPath||Array.isArray(G.container)&&G.isStatement())return G;while(G=G.parentPath)}hasOwnParamBindings(G){for(let J of Object.keys(this.bindings)){if(!G.hasOwnBinding(J))continue;const X=this.bindings[J];if(X.kind==="param"&&X.constant)return!0}return!1}run(){if(this.path.traverse(JF1,this),this.mutableBinding)return;this.getCompatibleScopes();const G=this.getAttachmentPath();if(!G)return;if(G.getFunctionParent()===this.path.getFunctionParent())return;let J=G.scope.generateUidIdentifier("ref");const X=GF1(J,this.path.node),H=this.attachAfter?"insertAfter":"insertBefore",[Z]=G[H]([G.isVariableDeclarator()?X:tq1("var",[X])]),V=this.path.parentPath;if(V.isJSXElement()&&this.path.container===V.node.children)J=eq1(J);return this.path.replaceWith(oq1(J)),G.isVariableDeclarator()?Z.get("init"):Z.get("declarations.0.init")}}YR.default=QR});var BR=S((UR)=>{Object.defineProperty(UR,"__esModule",{value:!0});UR.hooks=void 0;var bg1=UR.hooks=[function(G,J){if(G.key==="test"&&(J.isWhile()||J.isSwitchCase())||G.key==="declaration"&&J.isExportDeclaration()||G.key==="body"&&J.isLabeledStatement()||G.listKey==="declarations"&&J.isVariableDeclaration()&&J.node.declarations.length===1||G.key==="expression"&&J.isExpressionStatement())return J.remove(),!0},function(G,J){if(J.isSequenceExpression()&&J.node.expressions.length===1)return J.replaceWith(J.node.expressions[0]),!0},function(G,J){if(J.isBinary()){if(G.key==="left")J.replaceWith(J.node.right);else J.replaceWith(J.node.left);return!0}},function(G,J){if(J.isIfStatement()&&G.key==="consequent"||G.key==="body"&&(J.isLoop()||J.isArrowFunctionExpression()))return G.replaceWith({type:"BlockStatement",body:[]}),!0}]});var YJ=S((jR)=>{function zF1(){var G;if(FR.call(this),YF1.resync.call(this),MR.call(this)){f3.call(this);return}if(!((G=this.opts)!=null&&G.noScope))RR.call(this);this.shareCommentsWithSiblings(),qR.call(this),f3.call(this)}function RR(){const G=WF1(this.node,!1,!1,!0);Object.keys(G).forEach((J)=>this.scope.removeBinding(J))}function MR(){if(this.parentPath){for(let G of XF1.hooks)if(G(this,this.parentPath))return!0}}function qR(){if(Array.isArray(this.container))this.container.splice(this.key,1),QF1.updateSiblingKeys.call(this,this.key,-1);else ZF1._replaceWith.call(this,null)}function f3(){if(this._traverseFlags|=$R.SHOULD_SKIP|$R.REMOVED,this.parent)HF1.getCachedPaths(this.hub,this.parent).delete(this.node);this.node=null}function FR(){if(this.removed)throw this.buildCodeFrameError("NodePath has been removed so is read-only.")}Object.defineProperty(jR,"__esModule",{value:!0});jR._assertUnremoved=FR;jR._callRemovalHooks=MR;jR._markRemoved=f3;jR._remove=qR;jR._removeFromScope=RR;jR.remove=zF1;var XF1=BR(),HF1=Z5(),ZF1=S3(),$R=_0(),VF1=F1(),QF1=WJ(),YF1=o2(),{getBindingIdentifiers:WF1}=VF1});var WJ=S((PR)=>{function kF1(G){zJ._assertUnremoved.call(this);const J=i9.call(this,G),{parentPath:X,parent:H}=this;if(X.isExpressionStatement()||X.isLabeledStatement()||IR(H)||X.isExportDefaultDeclaration()&&this.isDeclaration())return X.insertBefore(J);else if(this.isNodeType("Expression")&&!this.isJSXElement()||X.isForStatement()&&this.key==="init"){if(this.node)J.push(this.node);return this.replaceExpressionWithStatements(J)}else if(Array.isArray(this.container))return k3.call(this,J);else if(this.isStatementOrBlock()){const Z=this.node,V=Z&&(!this.isExpressionStatement()||Z.expression!=null);return this.replaceWith(DR(V?[Z]:[])),this.unshiftContainer("body",J)}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 N3(G,J){SR.call(this,G,J.length);const X=[];this.container.splice(G,0,...J);for(let V=0;V<J.length;V++){var H;const Q=G+V,Y=this.getSibling(Q);if(X.push(Y),(H=this.context)!=null&&H.queue)P3.pushContext.call(Y,this.context)}const Z=P3._getQueueContexts.call(this);for(let V of X){P3.setScope.call(V),V.debug("Inserted.");for(let Q of Z)Q.maybeQueue(V,!0)}return X}function k3(G){return N3.call(this,this.key,G)}function AR(G){return N3.call(this,this.key+1,G)}function fR(G){return TF1(G.parent)&&(CR(G.parent.expressions)!==G.node||fR(G.parentPath))}function EF1(G,J){if(!fF1(G)||!LF1(G.left))return!1;const X=J.getBlockParent();return X.hasOwnBinding(G.left.name)&&X.getOwnBinding(G.left.name).constantViolations.length<=1}function OF1(G){if(zJ._assertUnremoved.call(this),this.isSequenceExpression())return CR(this.get("expressions")).insertAfter(G);const J=i9.call(this,G),{parentPath:X,parent:H}=this;if(X.isExpressionStatement()||X.isLabeledStatement()||IR(H)||X.isExportDefaultDeclaration()&&this.isDeclaration())return X.insertAfter(J.map((Z)=>{return PF1(Z)?T3(Z):Z}));else if(this.isNodeType("Expression")&&!this.isJSXElement()&&!X.isJSXElement()||X.isForStatement()&&this.key==="init"){const Z=this;if(Z.node){const V=Z.node;let{scope:Q}=this;if(Q.path.isPattern())return IF1(V),Z.replaceWith(CF1(DF1([],V),[])),Z.get("callee.body").insertAfter(J),[Z];if(fR(Z))J.unshift(V);else if(SF1(V)&&wF1(V.callee))J.unshift(V),J.push(NF1());else if(EF1(V,Q))J.unshift(V),J.push(L3(V.left));else if(Q.isPure(V,!0))J.push(V);else{if(X.isMethod({computed:!0,key:V}))Q=Q.parent;const Y=Q.generateDeclaredUidIdentifier();J.unshift(T3(AF1("=",L3(Y),V))),J.push(T3(L3(Y)))}}return this.replaceExpressionWithStatements(J)}else if(Array.isArray(this.container))return AR.call(this,J);else if(this.isStatementOrBlock()){const Z=this.node,V=Z&&(!this.isExpressionStatement()||Z.expression!=null);return this.replaceWith(DR(V?[Z]:[])),this.pushContainer("body",J)}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 SR(G,J){if(!this.parent)return;const X=qF1.getCachedPaths(this.hub,this.parent)||[];for(let[,H]of X)if(typeof H.key==="number"&&H.container===this.container&&H.key>=G)H.key+=J}function i9(G){if(!G)return[];if(!Array.isArray(G))G=[G];for(let J=0;J<G.length;J++){const X=G[J];let H;if(!X)H="has falsy node";else if(typeof X!=="object")H="contains a non-object node";else if(!X.type)H="without a type";else if(X instanceof w3.default)H="has a NodePath when it expected a raw object";if(H){const Z=Array.isArray(X)?"array":typeof X;throw new Error(`Node list ${H} with the index of ${J} and type of ${Z}`)}}return G}function vF1(G,J){zJ._assertUnremoved.call(this),J=i9.call(this,J);const X=w3.default.get({parentPath:this,parent:this.node,container:this.node[G],listKey:G,key:0}).setContext(this.context);return k3.call(X,J)}function _F1(G,J){zJ._assertUnremoved.call(this);const X=i9.call(this,J),H=this.node[G];return w3.default.get({parentPath:this,parent:this.node,container:H,listKey:G,key:H.length}).setContext(this.context).replaceWithMultiple(X)}Object.defineProperty(PR,"__esModule",{value:!0});PR._containerInsert=N3;PR._containerInsertAfter=AR;PR._containerInsertBefore=k3;PR._verifyNodeList=i9;PR.insertAfter=OF1;PR.insertBefore=kF1;PR.pushContainer=_F1;PR.unshiftContainer=vF1;PR.updateSiblingKeys=SR;var qF1=Z5(),FF1=zR(),w3=_0(),P3=o2(),zJ=YJ(),jF1=F1(),{arrowFunctionExpression:DF1,assertExpression:IF1,assignmentExpression:AF1,blockStatement:DR,callExpression:CF1,cloneNode:L3,expressionStatement:T3,isAssignmentExpression:fF1,isCallExpression:SF1,isExportNamedDeclaration:IR,isExpression:PF1,isIdentifier:LF1,isSequenceExpression:TF1,isSuper:wF1,thisExpression:NF1}=jF1,CR=(G)=>G[G.length-1];PR.hoist=function G(J=this.scope){return new FF1.default(this,J).run()}});var S3=S((_R)=>{function Rj1(G){var J;u5.resync.call(this),G=v3._verifyNodeList.call(this,G),Xj1(G[0],this.node),Hj1(G[G.length-1],this.node),(J=kR.getCachedPaths(this.hub,this.parent))==null||J.delete(this.node),this.node=this.container[this.key]=null;const X=this.insertAfter(G);if(this.node)this.requeue();else this.remove();return X}function Mj1(G){u5.resync.call(this);let J;try{G=`(${G})`,J=uF1.parse(G)}catch(H){const Z=H.loc;if(Z)H.message+=" - make sure this is an expression.\n"+rF1.codeFrameColumns(G,{start:{line:Z.line,column:Z.column+1}}),H.code="BABEL_REPLACE_SOURCE_ERROR";throw H}const X=J.program.body[0].expression;return O3.default.removeProperties(X),this.replaceWith(X)}function qj1(G){if(u5.resync.call(this),this.removed)throw new Error("You can't replace this node, we've already removed it");let J=G instanceof iF1.default?G.node:G;if(!J)throw new Error("You passed `path.replaceWith()` a falsy node, use `path.remove()` instead");if(this.node===J)return[this];if(this.isProgram()&&!Wj1(J))throw new Error("You can only replace a Program root node with another Program node");if(Array.isArray(J))throw new Error("Don't use `path.replaceWith()` with an array of nodes, use `path.replaceWithMultiple()`");if(typeof J==="string")throw new Error("Don't use `path.replaceWith()` with a source string, use `path.replaceWithSourceString()`");let X="";if(this.isNodeType("Statement")&&OR(J)){if(!this.canHaveVariableDeclarationOrExpression()&&!this.canSwapBetweenExpressionAndStatement(J)&&!this.parentPath.isExportDefaultDeclaration())J=tF1(J),X="expression"}if(this.isNodeType("Expression")&&zj1(J)){if(!this.canHaveVariableDeclarationOrExpression()&&!this.canSwapBetweenExpressionAndStatement(J))return this.replaceExpressionWithStatements([J])}const H=this.node;if(H)Zj1(J,H),Kj1(H);return vR.call(this,J),this.type=J.type,u5.setScope.call(this),this.requeue(),[X?this.get(X):this]}function vR(G){var J;if(!this.container)throw new ReferenceError("Container is falsy");if(this.inList)NR(this.parent,this.key,[G]);else NR(this.parent,this.key,G);this.debug(`Replace with ${G==null?void 0:G.type}`),(J=kR.getCachedPaths(this.hub,this.parent))==null||J.set(G,this).delete(this.node),this.node=this.container[this.key]=G}function Fj1(G){u5.resync.call(this);const J=[],X=UJ(G,J);if(X){for(let F of J)this.scope.push({id:F});return this.replaceWith(X)[0].get("expressions")}const H=this.getFunctionParent(),Z=H==null?void 0:H.node.async,V=H==null?void 0:H.node.generator,Q=sF1([],nF1(G));this.replaceWith(oF1(Q,[]));const Y=this.get("callee");Y.get("body").scope.hoistVariables((F)=>this.scope.push({id:F}));const W=Y.getCompletionRecords();for(let F of W){if(!F.isExpressionStatement())continue;const j=F.findParent((f)=>f.isLoop());if(j){let f=j.getData("expressionReplacementReturnUid");if(!f)f=Y.scope.generateDeclaredUidIdentifier("ret"),Y.get("body").pushContainer("body",wR(_3(f))),j.setData("expressionReplacementReturnUid",f);else f=Jj1(f.name);F.get("expression").replaceWith(ER("=",_3(f),F.node.expression))}else F.replaceWith(wR(F.node.expression))}Y.arrowFunctionToExpression();const z=Y,B=Z&&O3.default.hasType(this.get("callee.body").node,"AwaitExpression",LR),q=V&&O3.default.hasType(this.get("callee.body").node,"YieldExpression",LR);if(B){if(z.set("async",!0),!q)this.replaceWith(pF1(this.node))}if(q)z.set("generator",!0),this.replaceWith($j1(this.node,!0));return z.get("body.body")}function UJ(G,J){const X=[];let H=!0;for(let Z of G){if(!TR(Z))H=!1;if(OR(Z))X.push(Z);else if(Qj1(Z))X.push(Z.expression);else if(Uj1(Z)){if(Z.kind!=="var")return;for(let V of Z.declarations){const Q=Gj1(V);for(let Y of Object.keys(Q))J.push(_3(Q[Y]));if(V.init)X.push(ER("=",V.id,V.init))}H=!0}else if(Yj1(Z)){const V=Z.consequent?UJ([Z.consequent],J):E3(),Q=Z.alternate?UJ([Z.alternate],J):E3();if(!V||!Q)return;X.push(eF1(Z.test,V,Q))}else if(Vj1(Z)){const V=UJ(Z.body,J);if(!V)return;X.push(V)}else if(TR(Z)){if(G.indexOf(Z)===0)H=!0}else return}if(H)X.push(E3());if(X.length===1)return X[0];else return Bj1(X)}function jj1(G){if(u5.resync.call(this),Array.isArray(G))if(Array.isArray(this.container)){G=v3._verifyNodeList.call(this,G);const J=v3._containerInsertAfter.call(this,G);return this.remove(),J}else return this.replaceWithMultiple(G);else return this.replaceWith(G)}Object.defineProperty(_R,"__esModule",{value:!0});_R._replaceWith=vR;_R.replaceExpressionWithStatements=Fj1;_R.replaceInline=jj1;_R.replaceWith=qj1;_R.replaceWithMultiple=Rj1;_R.replaceWithSourceString=Mj1;var rF1=C3(),O3=c9(),iF1=_0(),kR=Z5(),v3=WJ(),uF1=lG(),dF1=F1(),u5=o2(),{FUNCTION_TYPES:LR,arrowFunctionExpression:sF1,assignmentExpression:ER,awaitExpression:pF1,blockStatement:nF1,buildUndefinedNode:E3,callExpression:oF1,cloneNode:_3,conditionalExpression:eF1,expressionStatement:tF1,getBindingIdentifiers:Gj1,identifier:Jj1,inheritLeadingComments:Xj1,inheritTrailingComments:Hj1,inheritsComments:Zj1,isBlockStatement:Vj1,isEmptyStatement:TR,isExpression:OR,isExpressionStatement:Qj1,isIfStatement:Yj1,isProgram:Wj1,isStatement:zj1,isVariableDeclaration:Uj1,removeComments:Kj1,returnStatement:wR,sequenceExpression:Bj1,validate:NR,yieldExpression:$j1}=dF1});var mR=S((yR)=>{function gR(G){return Pj1.includes(G)}function wj1(G){return Lj1.includes(G)}function Nj1(G){return Tj1.includes(G)}function kj1(){const G=this.evaluate();if(G.confident)return!!G.value}function F0(G,J){if(!J.confident)return;J.deoptPath=G,J.confident=!1}function B2(G,J){const{node:X}=G,{seen:H}=J;if(H.has(X)){const Z=H.get(X);if(Z.resolved)return Z.value;else{F0(G,J);return}}else{const Z={resolved:!1};H.set(X,Z);const V=Ej1(G,J);if(J.confident)Z.resolved=!0,Z.value=V;return V}}function Ej1(G,J){if(!J.confident)return;if(G.isSequenceExpression()){const X=G.get("expressions");return B2(X[X.length-1],J)}if(G.isStringLiteral()||G.isNumericLiteral()||G.isBooleanLiteral())return G.node.value;if(G.isNullLiteral())return null;if(G.isTemplateLiteral())return hR(G,G.node.quasis,J);if(G.isTaggedTemplateExpression()&&G.get("tag").isMemberExpression()){const X=G.get("tag.object"),{node:{name:H}}=X,Z=G.get("tag.property");if(X.isIdentifier()&&H==="String"&&!G.scope.getBinding(H)&&Z.isIdentifier()&&Z.node.name==="raw")return hR(G,G.node.quasi.quasis,J,!0)}if(G.isConditionalExpression()){const X=B2(G.get("test"),J);if(!J.confident)return;if(X)return B2(G.get("consequent"),J);else return B2(G.get("alternate"),J)}if(G.isExpressionWrapper())return B2(G.get("expression"),J);if(G.isMemberExpression()&&!G.parentPath.isCallExpression({callee:G.node})){const X=G.get("property"),H=G.get("object");if(H.isLiteral()){const Z=H.node.value,V=typeof Z;let Q=null;if(G.node.computed){if(Q=B2(X,J),!J.confident)return}else if(X.isIdentifier())Q=X.node.name;if((V==="number"||V==="string")&&Q!=null&&(typeof Q==="number"||typeof Q==="string"))return Z[Q]}}if(G.isReferencedIdentifier()){const X=G.scope.getBinding(G.node.name);if(X){if(X.constantViolations.length>0||G.node.start<X.path.node.end){F0(X.path,J);return}if(X.hasValue)return X.value}const H=G.node.name;if(bR.has(H)){if(!X)return bR.get(H);F0(X.path,J);return}const Z=G.resolve();if(Z===G){F0(G,J);return}else return B2(Z,J)}if(G.isUnaryExpression({prefix:!0})){if(G.node.operator==="void")return;const X=G.get("argument");if(G.node.operator==="typeof"&&(X.isFunction()||X.isClass()))return"function";const H=B2(X,J);if(!J.confident)return;switch(G.node.operator){case"!":return!H;case"+":return+H;case"-":return-H;case"~":return~H;case"typeof":return typeof H}}if(G.isArrayExpression()){const X=[],H=G.get("elements");for(let Z of H){const V=Z.evaluate();if(V.confident)X.push(V.value);else{F0(V.deopt,J);return}}return X}if(G.isObjectExpression()){const X={},H=G.get("properties");for(let Z of H){if(Z.isObjectMethod()||Z.isSpreadElement()){F0(Z,J);return}const V=Z.get("key");let Q;if(Z.node.computed){if(Q=V.evaluate(),!Q.confident){F0(Q.deopt,J);return}Q=Q.value}else if(V.isIdentifier())Q=V.node.name;else Q=V.node.value;let W=Z.get("value").evaluate();if(!W.confident){F0(W.deopt,J);return}W=W.value,X[Q]=W}return X}if(G.isLogicalExpression()){const X=J.confident,H=B2(G.get("left"),J),Z=J.confident;J.confident=X;const V=B2(G.get("right"),J),Q=J.confident;switch(G.node.operator){case"||":if(J.confident=Z&&(!!H||Q),!J.confident)return;return H||V;case"&&":if(J.confident=Z&&(!H||Q),!J.confident)return;return H&&V;case"??":if(J.confident=Z&&(H!=null||Q),!J.confident)return;return H!=null?H:V}}if(G.isBinaryExpression()){const X=B2(G.get("left"),J);if(!J.confident)return;const H=B2(G.get("right"),J);if(!J.confident)return;switch(G.node.operator){case"-":return X-H;case"+":return X+H;case"/":return X/H;case"*":return X*H;case"%":return X%H;case"**":return Math.pow(X,H);case"<":return X<H;case">":return X>H;case"<=":return X<=H;case">=":return X>=H;case"==":return X==H;case"!=":return X!=H;case"===":return X===H;case"!==":return X!==H;case"|":return X|H;case"&":return X&H;case"^":return X^H;case"<<":return X<<H;case">>":return X>>H;case">>>":return X>>>H}}if(G.isCallExpression()){const X=G.get("callee");let H,Z;if(X.isIdentifier()&&!G.scope.getBinding(X.node.name)&&(gR(X.node.name)||wj1(X.node.name)))Z=global[X.node.name];if(X.isMemberExpression()){const V=X.get("object"),Q=X.get("property");if(V.isIdentifier()&&Q.isIdentifier()&&gR(V.node.name)&&!Nj1(Q.node.name)){H=global[V.node.name];const Y=Q.node.name;if(hasOwnProperty.call(H,Y))Z=H[Y]}if(V.isLiteral()&&Q.isIdentifier()){const Y=typeof V.node.value;if(Y==="string"||Y==="number")H=V.node.value,Z=H[Q.node.name]}}if(Z){const V=G.get("arguments").map((Q)=>B2(Q,J));if(!J.confident)return;return Z.apply(H,V)}}F0(G,J)}function hR(G,J,X,H=!1){let Z="",V=0;const Q=G.isTemplateLiteral()?G.get("expressions"):G.get("quasi.expressions");for(let Y of J){if(!X.confident)break;Z+=H?Y.value.raw:Y.value.cooked;const W=Q[V++];if(W)Z+=String(B2(W,X))}if(!X.confident)return;return Z}function Oj1(){const G={confident:!0,deoptPath:null,seen:new Map};let J=B2(this,G);if(!G.confident)J=void 0;return{confident:G.confident,deopt:G.deoptPath,value:J}}Object.defineProperty(yR,"__esModule",{value:!0});yR.evaluate=Oj1;yR.evaluateTruthy=kj1;var Pj1=["Number","String","Math"],Lj1=["isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent",null,null],Tj1=["random"],bR=new Map([["undefined",void 0],["Infinity",1/0],["NaN",NaN]])});var cR=S((xR)=>{function g3(G){return{code:(J)=>`/* @babel/template */;\n${J}`,validate:()=>{},unwrap:(J)=>{return G(J.program.body.slice(1))}}}Object.defineProperty(xR,"__esModule",{value:!0});xR.statements=xR.statement=xR.smart=xR.program=xR.expression=void 0;var gj1=F1(),{assertExpressionStatement:bj1}=gj1,ag1=xR.smart=g3((G)=>{if(G.length>1)return G;else return G[0]}),rg1=xR.statements=g3((G)=>G),ig1=xR.statement=g3((G)=>{if(G.length===0)throw new Error("Found nothing to return.");if(G.length>1)throw new Error("Found multiple statements but wanted one");return G[0]}),hj1=xR.expression={code:(G)=>`(\n${G}\n)`,validate:(G)=>{if(G.program.body.length>1)throw new Error("Found multiple statements but wanted one");if(hj1.unwrap(G).start===0)throw new Error("Parse result included parens.")},unwrap:({program:G})=>{const[J]=G.body;return bj1(J),J.expression}},ug1=xR.program={code:(G)=>G,validate:()=>{},unwrap:(G)=>G.program}});var KJ=S((aR)=>{function aj1(G,J){if(G==null)return{};var X={};for(var H in G)if({}.hasOwnProperty.call(G,H)){if(J.includes(H))continue;X[H]=G[H]}return X}function rj1(G,J){const{placeholderWhitelist:X=G.placeholderWhitelist,placeholderPattern:H=G.placeholderPattern,preserveComments:Z=G.preserveComments,syntacticPlaceholders:V=G.syntacticPlaceholders}=J;return{parser:Object.assign({},G.parser,J.parser),placeholderWhitelist:X,placeholderPattern:H,preserveComments:Z,syntacticPlaceholders:V}}function ij1(G){if(G!=null&&typeof G!=="object")throw new Error("Unknown template options.");const J=G||{},{placeholderWhitelist:X,placeholderPattern:H,preserveComments:Z,syntacticPlaceholders:V}=J,Q=aj1(J,cj1);if(X!=null&&!(X instanceof Set))throw new Error("'.placeholderWhitelist' must be a Set, null, or undefined");if(H!=null&&!(H instanceof RegExp)&&H!==!1)throw new Error("'.placeholderPattern' must be a RegExp, false, null, or undefined");if(Z!=null&&typeof Z!=="boolean")throw new Error("'.preserveComments' must be a boolean, null, or undefined");if(V!=null&&typeof V!=="boolean")throw new Error("'.syntacticPlaceholders' must be a boolean, null, or undefined");if(V===!0&&(X!=null||H!=null))throw new Error("'.placeholderWhitelist' and '.placeholderPattern' aren't compatible with '.syntacticPlaceholders: true'");return{parser:Q,placeholderWhitelist:X||void 0,placeholderPattern:H==null?void 0:H,preserveComments:Z==null?void 0:Z,syntacticPlaceholders:V==null?void 0:V}}function uj1(G){if(Array.isArray(G))return G.reduce((J,X,H)=>{return J["$"+H]=X,J},{});else if(typeof G==="object"||G==null)return G||void 0;throw new Error("Template replacements must be an array, object, null, or undefined")}Object.defineProperty(aR,"__esModule",{value:!0});aR.merge=rj1;aR.normalizeReplacements=uj1;aR.validate=ij1;var cj1=["placeholderWhitelist","placeholderPattern","preserveComments","syntacticPlaceholders"]});var b3=S((iR)=>{function zD1(G,J,X){const{placeholderWhitelist:H,placeholderPattern:Z,preserveComments:V,syntacticPlaceholders:Q}=X,Y=BD1(J,X.parser,Q);QD1(Y,{preserveComments:V}),G.validate(Y);const W={syntactic:{placeholders:[],placeholderNames:new Set},legacy:{placeholders:[],placeholderNames:new Set},placeholderWhitelist:H,placeholderPattern:Z,syntacticPlaceholders:Q};return YD1(Y,UD1,W),Object.assign({ast:Y},W.syntactic.placeholders.length?W.syntactic:W.legacy)}function UD1(G,J,X){var H;let Z,V=X.syntactic.placeholders.length>0;if(BJ(G)){if(X.syntacticPlaceholders===!1)throw new Error("%%foo%%-style placeholders can't be used when '.syntacticPlaceholders' is false.");Z=G.name.name,V=!0}else if(V||X.syntacticPlaceholders)return;else if(XD1(G)||HD1(G))Z=G.name;else if(rR(G))Z=G.value;else return;if(V&&(X.placeholderPattern!=null||X.placeholderWhitelist!=null))throw new Error("'.placeholderWhitelist' and '.placeholderPattern' aren't compatible with '.syntacticPlaceholders: true'");if(!V&&(X.placeholderPattern===!1||!(X.placeholderPattern||WD1).test(Z))&&!((H=X.placeholderWhitelist)!=null&&H.has(Z)))return;J=J.slice();const{node:Q,key:Y}=J[J.length-1];let W;if(rR(G)||BJ(G,{expectedNode:"StringLiteral"}))W="string";else if(ZD1(Q)&&Y==="arguments"||tj1(Q)&&Y==="arguments"||JD1(Q)&&Y==="params")W="param";else if(GD1(Q)&&!BJ(G))W="statement",J=J.slice(0,-1);else if(VD1(G)&&BJ(G))W="statement";else W="other";const{placeholders:z,placeholderNames:B}=!V?X.legacy:X.syntactic;z.push({name:Z,type:W,resolve:(q)=>KD1(q,J),isDuplicate:B.has(Z)}),B.add(Z)}function KD1(G,J){let X=G;for(let V=0;V<J.length-1;V++){const{key:Q,index:Y}=J[V];if(Y===void 0)X=X[Q];else X=X[Q][Y]}const{key:H,index:Z}=J[J.length-1];return{parent:X,key:H,index:Z}}function BD1(G,J,X){const H=(J.plugins||[]).slice();if(X!==!1)H.push("placeholders");J=Object.assign({allowReturnOutsideFunction:!0,allowSuperOutsideMethod:!0,sourceType:"module"},J,{plugins:H});try{return oj1.parse(G,J)}catch(Z){const V=Z.loc;if(V)Z.message+="\n"+ej1.codeFrameColumns(G,{start:V}),Z.code="BABEL_TEMPLATE_PARSE_ERROR";throw Z}}Object.defineProperty(iR,"__esModule",{value:!0});iR.default=zD1;var nj1=F1(),oj1=lG(),ej1=C3(),{isCallExpression:tj1,isExpressionStatement:GD1,isFunction:JD1,isIdentifier:XD1,isJSXIdentifier:HD1,isNewExpression:ZD1,isPlaceholder:BJ,isStatement:VD1,isStringLiteral:rR,removePropertiesDeep:QD1,traverse:YD1}=nj1,WD1=/^[_$A-Z0-9]+$/});var m3=S((sR)=>{function DD1(G,J){const X=y3(G.ast);if(J)G.placeholders.forEach((H)=>{if(!hasOwnProperty.call(J,H.name)){const Z=H.name;throw new Error(`Error: No substitution given for "${Z}". If this is not meant to be a
7
+ placeholder you may want to consider passing one of the following options to @babel/template:
8
+ - { placeholderPattern: false, placeholderWhitelist: new Set(['${Z}'])}
9
+ - { placeholderPattern: /^${Z}\$/ }`)}}),Object.keys(J).forEach((H)=>{if(!G.placeholderNames.has(H))throw new Error(`Unknown substitution "${H}" given`)});return G.placeholders.slice().reverse().forEach((H)=>{try{ID1(H,X,J&&J[H.name]||null)}catch(Z){throw Z.message=`@babel/template placeholder "${H.name}": ${Z.message}`,Z}}),X}function ID1(G,J,X){if(G.isDuplicate){if(Array.isArray(X))X=X.map((Y)=>y3(Y));else if(typeof X==="object")X=y3(X)}const{parent:H,key:Z,index:V}=G.resolve(J);if(G.type==="string"){if(typeof X==="string")X=jD1(X);if(!X||!FD1(X))throw new Error("Expected string substitution")}else if(G.type==="statement"){if(V===void 0){if(!X)X=qD1();else if(Array.isArray(X))X=MD1(X);else if(typeof X==="string")X=h3($J(X));else if(!uR(X))X=h3(X)}else if(X&&!Array.isArray(X)){if(typeof X==="string")X=$J(X);if(!uR(X))X=h3(X)}}else if(G.type==="param"){if(typeof X==="string")X=$J(X);if(V===void 0)throw new Error("Assertion failure.")}else{if(typeof X==="string")X=$J(X);if(Array.isArray(X))throw new Error("Cannot replace single expression with an array.")}function Q(Y,W,z){const B=Y[W];if(Y[W]=z,B.type==="Identifier"){if(B.typeAnnotation)z.typeAnnotation=B.typeAnnotation;if(B.optional)z.optional=B.optional;if(B.decorators)z.decorators=B.decorators}}if(V===void 0)dR(H,Z,X),Q(H,Z,X);else{const Y=H[Z].slice();if(G.type==="statement"||G.type==="param")if(X==null)Y.splice(V,1);else if(Array.isArray(X))Y.splice(V,1,...X);else Q(Y,V,X);else Q(Y,V,X);dR(H,Z,Y),H[Z]=Y}}Object.defineProperty(sR,"__esModule",{value:!0});sR.default=DD1;var RD1=F1(),{blockStatement:MD1,cloneNode:y3,emptyStatement:qD1,expressionStatement:h3,identifier:$J,isStatement:uR,isStringLiteral:FD1,stringLiteral:jD1,validate:dR}=RD1});var nR=S((pR)=>{function PD1(G,J,X){J=G.code(J);let H;return(Z)=>{const V=CD1.normalizeReplacements(Z);if(!H)H=fD1.default(G,J,X);return G.unwrap(SD1.default(H,V))}}Object.defineProperty(pR,"__esModule",{value:!0});pR.default=PD1;var CD1=KJ(),fD1=b3(),SD1=m3()});var eR=S((oR)=>{function kD1(G,J,X){const{metadata:H,names:Z}=ED1(G,J,X);return(V)=>{const Q={};return V.forEach((Y,W)=>{Q[Z[W]]=Y}),(Y)=>{const W=TD1.normalizeReplacements(Y);if(W)Object.keys(W).forEach((z)=>{if(hasOwnProperty.call(Q,z))throw new Error("Unexpected replacement overlap.")});return G.unwrap(ND1.default(H,W?Object.assign(W,Q):Q))}}}function ED1(G,J,X){let H="BABEL_TPL$";const Z=J.join("");do H="$$"+H;while(Z.includes(H));const{names:V,code:Q}=OD1(J,H);return{metadata:wD1.default(G,G.code(Q),{parser:X.parser,placeholderWhitelist:new Set(V.concat(X.placeholderWhitelist?Array.from(X.placeholderWhitelist):[])),placeholderPattern:X.placeholderPattern,preserveComments:X.preserveComments,syntacticPlaceholders:X.syntacticPlaceholders}),names:V}}function OD1(G,J){const X=[];let H=G[0];for(let Z=1;Z<G.length;Z++){const V=`${J}${Z-1}`;X.push(V),H+=V+G[Z]}return{names:X,code:H}}Object.defineProperty(oR,"__esModule",{value:!0});oR.default=kD1;var TD1=KJ(),wD1=b3(),ND1=m3()});var VM=S((ZM)=>{function HM(G,J){const X=new WeakMap,H=new WeakMap,Z=J||e2.validate(null);return Object.assign((V,...Q)=>{if(typeof V==="string"){if(Q.length>1)throw new Error("Unexpected extra params.");return XM(tR.default(G,V,e2.merge(Z,e2.validate(Q[0]))))}else if(Array.isArray(V)){let Y=X.get(V);if(!Y)Y=GM.default(G,V,Z),X.set(V,Y);return XM(Y(Q))}else if(typeof V==="object"&&V){if(Q.length>0)throw new Error("Unexpected extra params.");return HM(G,e2.merge(Z,e2.validate(V)))}throw new Error(`Unexpected template param ${typeof V}`)},{ast:(V,...Q)=>{if(typeof V==="string"){if(Q.length>1)throw new Error("Unexpected extra params.");return tR.default(G,V,e2.merge(e2.merge(Z,e2.validate(Q[0])),JM))()}else if(Array.isArray(V)){let Y=H.get(V);if(!Y)Y=GM.default(G,V,e2.merge(Z,JM)),H.set(V,Y);return Y(Q)()}throw new Error(`Unexpected template param ${typeof V}`)}})}function XM(G){let J="";try{throw new Error}catch(X){if(X.stack)J=X.stack.split("\n").slice(3).join("\n")}return(X)=>{try{return G(X)}catch(H){throw H.stack+=`\n =============\n${J}`,H}}}Object.defineProperty(ZM,"__esModule",{value:!0});ZM.default=HM;var e2=KJ(),tR=nR(),GM=eR(),JM=e2.validate({placeholderPattern:!1})});var WM=S((QM)=>{Object.defineProperty(QM,"__esModule",{value:!0});QM.statements=QM.statement=QM.smart=QM.program=QM.expression=QM.default=void 0;var u9=cR(),d9=VM(),x3=QM.smart=d9.default(u9.smart),gD1=QM.statement=d9.default(u9.statement),bD1=QM.statements=d9.default(u9.statements),hD1=QM.expression=d9.default(u9.expression),yD1=QM.program=d9.default(u9.program),Gb1=QM.default=Object.assign(x3.bind(void 0),{smart:x3,statement:gD1,statements:bD1,expression:hD1,program:yD1,ast:x3.ast})});var FM=S((qM)=>{function MI1(){let G;if(this.isMemberExpression())G=this.node.property;else if(this.isProperty()||this.isMethod())G=this.node.key;else throw new ReferenceError("todo");if(!this.node.computed){if(pD1(G))G=BM(G.name)}return G}function qI1(){const G=this.get("body"),J=G.node;if(Array.isArray(G))throw new Error("Can't convert array path to a block statement");if(!J)throw new Error("Can't convert node without a body");if(G.isBlockStatement())return J;const X=[];let H="body",Z,V;if(G.isStatement())V="body",Z=0,X.push(G.node);else if(H+=".body.0",this.isFunction())Z="argument",X.push(HI1(G.node));else Z="expression",X.push(KM(G.node));this.node.body=dD1(X);const Q=this.get(H);return uD1.setup.call(G,Q,V?Q.node[V]:Q.node,V,Z),this.node}function FI1(){if(!this.isArrowFunctionExpression()&&!this.isFunctionExpression()&&!this.isFunctionDeclaration())throw this.buildCodeFrameError("Can only unwrap the environment of a function.");RM(this)}function jI1(G,J){G.node.type=J}function DI1({allowInsertArrow:G=!0,allowInsertArrowWithRest:J=G,noNewArrows:X=!((H)=>(H=arguments[0])==null?void 0:H.specCompliant)()}={}){if(!this.isArrowFunctionExpression())throw this.buildCodeFrameError("Cannot convert non-arrow function to a function expression.");let H=this;if(!X){var Z;H=(Z=H.ensureFunctionName(!1))!=null?Z:H}const{thisBinding:V,fnPath:Q}=RM(H,X,G,J);if(Q.ensureBlock(),jI1(Q,"FunctionExpression"),!X){const Y=V?null:Q.scope.generateUidIdentifier("arrowCheckId");if(Y)Q.parentPath.scope.push({id:Y,init:JI1([])});return Q.get("body").unshiftContainer("body",KM(d5(this.hub.addHelper("newArrowCheck"),[s9(),Y?_1(Y.name):_1(V)]))),Q.replaceWith(d5(c2(Q.node,_1("bind")),[Y?_1(Y.name):s9()])),Q.get("callee.object")}return Q}function RM(G,J=!0,X=!0,H=!0){let Z,V=G.findParent((j)=>{if(j.isArrowFunctionExpression()){var f;return(f=Z)!=null||(Z=j),!1}return j.isFunction()||j.isProgram()||j.isClassProperty({static:!1})||j.isClassPrivateProperty({static:!1})});const Q=V.isClassMethod({kind:"constructor"});if(V.isClassProperty()||V.isClassPrivateProperty())if(Z)V=Z;else if(X)G.replaceWith(d5(r3([],$M(G.node)),[])),V=G.get("callee"),G=V.get("body");else throw G.buildCodeFrameError("Unable to transform arrow inside class property");const{thisPaths:Y,argumentsPaths:W,newTargetPaths:z,superProps:B,superCalls:q}=wI1(G);if(Q&&q.length>0){if(!X)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(!H)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.");const j=[];V.traverse(II1,{allSuperCalls:j});const f=PI1(V);j.forEach((h)=>{const w=_1(f);w.loc=h.node.callee.loc,h.get("callee").replaceWith(w)})}if(W.length>0){const j=p9(V,"arguments",()=>{const f=()=>_1("arguments");if(V.scope.path.isProgram())return sD1(l3("===",QI1("typeof",f()),BM("undefined")),V.scope.buildUndefinedNode(),f());else return f()});W.forEach((f)=>{const h=_1(j);h.loc=f.node.loc,f.replaceWith(h)})}if(z.length>0){const j=p9(V,"newtarget",()=>tD1(_1("new"),_1("target")));z.forEach((f)=>{const h=_1(j);h.loc=f.node.loc,f.replaceWith(h)})}if(B.length>0){if(!X)throw B[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.");B.reduce((f,h)=>f.concat(CI1(h)),[]).forEach((f)=>{const h=f.node.computed?"":f.get("property").node.name,w=f.parentPath,v=w.isAssignmentExpression({left:f.node}),b=w.isCallExpression({callee:f.node}),$1=w.isTaggedTemplateExpression({tag:f.node}),G1=LI1(V,v,h),R1=[];if(f.node.computed)R1.push(f.get("property").node);if(v){const I1=w.node.right;R1.push(I1)}const z1=d5(_1(G1),R1);if(b)w.unshiftContainer("arguments",s9()),f.replaceWith(c2(z1,_1("call"))),Y.push(w.get("arguments.0"));else if(v)w.replaceWith(z1);else if($1)f.replaceWith(d5(c2(z1,_1("bind"),!1),[s9()])),Y.push(f.get("arguments.0"));else f.replaceWith(z1)})}let F;if(Y.length>0||!J){if(F=SI1(V,Q),J||Q&&MM(V)){if(Y.forEach((j)=>{const f=j.isJSX()?nD1(F):_1(F);f.loc=j.node.loc,j.replaceWith(f)}),!J)F=null}}return{thisBinding:F,fnPath:G}}function AI1(G){return eD1.includes(G)}function CI1(G){if(G.parentPath.isAssignmentExpression()&&G.parentPath.node.operator!=="="){const X=G.parentPath,H=X.node.operator.slice(0,-1),Z=X.node.right,V=AI1(H);if(G.node.computed){const Q=G.scope.generateDeclaredUidIdentifier("tmp"),Y=G.node.object,W=G.node.property;X.get("left").replaceWith(c2(Y,U5("=",Q,W),!0)),X.get("right").replaceWith(J(V?"=":H,c2(Y,_1(Q.name),!0),Z))}else{const Q=G.node.object,Y=G.node.property;X.get("left").replaceWith(c2(Q,Y)),X.get("right").replaceWith(J(V?"=":H,c2(Q,_1(Y.name)),Z))}if(V)X.replaceWith(oD1(H,X.node.left,X.node.right));else X.node.operator="=";return[X.get("left"),X.get("right").get("left")]}else if(G.parentPath.isUpdateExpression()){const X=G.parentPath,H=G.scope.generateDeclaredUidIdentifier("tmp"),Z=G.node.computed?G.scope.generateDeclaredUidIdentifier("prop"):null,V=[U5("=",H,c2(G.node.object,Z?U5("=",Z,G.node.property):G.node.property,G.node.computed)),U5("=",c2(G.node.object,Z?_1(Z.name):G.node.property,G.node.computed),l3(G.parentPath.node.operator[0],_1(H.name),GI1(1)))];if(!G.parentPath.node.prefix)V.push(_1(H.name));X.replaceWith(ZI1(V));const Q=X.get("expressions.0.right"),Y=X.get("expressions.1.left");return[Q,Y]}return[G];function J(X,H,Z){if(X==="=")return U5("=",H,Z);else return l3(X,H,Z)}}function MM(G){return G.isClassMethod()&&!!G.parentPath.parentPath.node.superClass}function SI1(G,J){return p9(G,"this",(X)=>{if(!J||!MM(G))return s9();G.traverse(fI1,{supers:new WeakSet,thisBinding:X})})}function PI1(G){return p9(G,"supercall",()=>{const J=G.scope.generateUidIdentifier("args");return r3([XI1(J)],d5(c3(),[VI1(_1(J.name))]))})}function LI1(G,J,X){return p9(G,`superprop_${J?"set":"get"}:${X||""}`,()=>{const Z=[];let V;if(X)V=c2(c3(),_1(X));else{const Q=G.scope.generateUidIdentifier("prop");Z.unshift(Q),V=c2(c3(),_1(Q.name),!0)}if(J){const Q=G.scope.generateUidIdentifier("value");Z.push(Q),V=U5("=",V,_1(Q.name))}return r3(Z,V)})}function p9(G,J,X){const H="binding:"+J;let Z=G.getData(H);if(!Z){const V=G.scope.generateUidIdentifier(J);Z=V.name,G.setData(H,Z),G.scope.push({id:V,init:X(Z)})}return Z}function wI1(G){const J=[],X=[],H=[],Z=[],V=[];return G.traverse(TI1,{thisPaths:J,argumentsPaths:X,newTargetPaths:H,superProps:Z,superCalls:V}),{thisPaths:J,argumentsPaths:X,newTargetPaths:H,superProps:Z,superCalls:V}}function NI1(){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.");const G=this.get("declaration");if(this.isExportDefaultDeclaration()){const Z=G.isFunctionDeclaration()||G.isClassDeclaration(),V=G.isFunctionExpression()||G.isClassExpression(),Q=G.isScope()?G.scope.parent:G.scope;let Y=G.node.id,W=!1;if(!Y){if(W=!0,Y=Q.generateUidIdentifier("default"),Z||V)G.node.id=K5(Y)}else if(V&&Q.hasBinding(Y.name))W=!0,Y=Q.generateUidIdentifier(Y.name);const z=Z?G.node:BI1("var",[$I1(K5(Y),G.node)]),B=zM(null,[UM(K5(Y),_1("default"))]);if(this.insertAfter(B),this.replaceWith(z),W)Q.registerDeclaration(this);return this}else if(this.get("specifiers").length>0)throw new Error("It doesn't make sense to split exported specifiers.");const J=G.getOuterBindingIdentifiers(),X=Object.keys(J).map((Z)=>{return UM(_1(Z),_1(Z))}),H=zM(null,X);return this.insertAfter(H),this.replaceWith(G.node),this}function EI1(G){if(this.node.id)return this;const J=KI1(this.node,this.parent);if(J==null)return this;let{name:X}=J;if(!G&&/[\uD800-\uDFFF]/.test(X))return null;if(X.startsWith("get ")||X.startsWith("set "))return null;X=YI1(X.replace(/[/ ]/g,"_"));const H=_1(X);RI1(H,J.originalNode);const Z={needsRename:!1,name:X},{scope:V}=this,Q=V.getOwnBinding(X);if(Q){if(Q.kind==="param")Z.needsRename=!0}else if(V.parent.hasBinding(X)||V.hasGlobal(X))this.traverse(kI1,Z);if(!Z.needsRename)return this.node.id=H,V.getProgramParent().references[H.name]=!0,this;if(V.hasBinding(H.name)&&!V.hasGlobal(H.name))return V.rename(H.name),this.node.id=H,V.getProgramParent().references[H.name]=!0,this;if(!WI1(this.node))return null;const Y=V.generateUidIdentifier(H.name),W=[];for(let B=0,q=OI1(this.node);B<q;B++)W.push(V.generateUidIdentifier("x"));const z=iD1.default.expression.ast`
10
+ (function (${Y}) {
11
+ function ${H}(${W}) {
12
+ return ${K5(Y)}.apply(this, arguments);
13
+ }
14
+
15
+ ${K5(H)}.toString = function () {
16
+ return ${K5(Y)}.toString();
17
+ }
18
+
19
+ return ${K5(H)};
20
+ })(${$M(this.node)})
21
+ `;return this.replaceWith(z)[0].get("arguments.0")}function OI1(G){const J=G.params.findIndex((X)=>zI1(X)||UI1(X));return J===-1?G.params.length:J}Object.defineProperty(qM,"__esModule",{value:!0});qM.arrowFunctionToExpression=DI1;qM.ensureBlock=qI1;qM.ensureFunctionName=EI1;qM.splitExportDeclaration=NI1;qM.toComputedKey=MI1;qM.unwrapFunctionEnvironment=FI1;var rD1=F1(),iD1=WM(),a3=l9(),uD1=o2(),{arrowFunctionExpression:r3,assignmentExpression:U5,binaryExpression:l3,blockStatement:dD1,callExpression:d5,conditionalExpression:sD1,expressionStatement:KM,identifier:_1,isIdentifier:pD1,jsxIdentifier:nD1,logicalExpression:oD1,LOGICAL_OPERATORS:eD1,memberExpression:c2,metaProperty:tD1,numericLiteral:GI1,objectExpression:JI1,restElement:XI1,returnStatement:HI1,sequenceExpression:ZI1,spreadElement:VI1,stringLiteral:BM,super:c3,thisExpression:s9,toExpression:$M,unaryExpression:QI1,toBindingIdentifierName:YI1,isFunction:WI1,isAssignmentPattern:zI1,isRestElement:UI1,getFunctionName:KI1,cloneNode:K5,variableDeclaration:BI1,variableDeclarator:$I1,exportNamedDeclaration:zM,exportSpecifier:UM,inherits:RI1}=rD1;qM.arrowFunctionToShadowed=function(){if(!this.isArrowFunctionExpression())return;this.arrowFunctionToExpression()};var II1=a3.environmentVisitor({CallExpression(G,{allSuperCalls:J}){if(!G.get("callee").isSuper())return;J.push(G)}}),fI1=a3.environmentVisitor({CallExpression(G,{supers:J,thisBinding:X}){if(!G.get("callee").isSuper())return;if(J.has(G.node))return;J.add(G.node),G.replaceWithMultiple([G.node,U5("=",_1(X),_1("this"))])}}),TI1=a3.environmentVisitor({ThisExpression(G,{thisPaths:J}){J.push(G)},JSXIdentifier(G,{thisPaths:J}){if(G.node.name!=="this")return;if(!G.parentPath.isJSXMemberExpression({object:G.node})&&!G.parentPath.isJSXOpeningElement({name:G.node}))return;J.push(G)},CallExpression(G,{superCalls:J}){if(G.get("callee").isSuper())J.push(G)},MemberExpression(G,{superProps:J}){if(G.get("object").isSuper())J.push(G)},Identifier(G,{argumentsPaths:J}){if(!G.isReferencedIdentifier({name:"arguments"}))return;let X=G.scope;do{if(X.hasOwnBinding("arguments")){X.rename("arguments");return}if(X.path.isFunction()&&!X.path.isArrowFunctionExpression())break}while(X=X.parent);J.push(G)},MetaProperty(G,{newTargetPaths:J}){if(!G.get("meta").isIdentifier({name:"new"}))return;if(!G.get("property").isIdentifier({name:"target"}))return;J.push(G)}}),kI1={"ReferencedIdentifier|BindingIdentifier"(G,J){if(G.node.name!==J.name)return;J.needsRename=!0,G.stop()},Scope(G,J){if(G.scope.hasOwnBinding(J.name))G.skip()}}});var SM=S((fM)=>{function sI1(G,J){return dI1(this.node,G,J)}function pI1(){return this.scope.isStatic(this.node)}function nI1(G){return uI1(this.type,G)}function oI1(){return(this.key==="init"||this.key==="left")&&this.parentPath.isFor()}function eI1(G){if(this.key!=="body"||!this.parentPath.isArrowFunctionExpression())return!1;if(this.isExpression())return AM(G);else if(this.isBlockStatement())return cI1(G);return!1}function tI1(G){let J=this,X=!0;do{const{type:H,container:Z}=J;if(!X&&(J.isFunction()||H==="StaticBlock"))return!!G;if(X=!1,Array.isArray(Z)&&J.key!==Z.length-1)return!1}while((J=J.parentPath)&&!J.isProgram()&&!J.isDoExpression());return!0}function GA1(){if(this.parentPath.isLabeledStatement()||AM(this.container))return!1;else return xI1.includes(this.key)}function JA1(G,J){if(!this.isReferencedIdentifier()){if(this.isJSXMemberExpression()&&this.node.property.name===J||(this.isMemberExpression()||this.isOptionalMemberExpression())&&(this.node.computed?iI1(this.node.property,{value:J}):this.node.property.name===J)){const V=this.get("object");return V.isReferencedIdentifier()&&V.referencesImport(G,"*")}return!1}const X=this.scope.getBinding(this.node.name);if(!X||X.kind!=="module")return!1;const H=X.path,Z=H.parentPath;if(!Z.isImportDeclaration())return!1;if(Z.node.source.value===G){if(!J)return!0}else return!1;if(H.isImportDefaultSpecifier()&&J==="default")return!0;if(H.isImportNamespaceSpecifier()&&J==="*")return!0;if(H.isImportSpecifier()&&aI1(H.node.imported,{name:J}))return!0;return!1}function XA1(){const G=this.node;if(G.end){const J=this.hub.getCode();if(J)return J.slice(G.start,G.end)}return""}function HA1(G){return this._guessExecutionStatusRelativeTo(G)!=="after"}function jM(G){return G.isProgram()?G:(G.parentPath.scope.getFunctionParent()||G.parentPath.scope.getProgramParent()).path}function ZA1(G,J){switch(G){case"LogicalExpression":return J==="right";case"ConditionalExpression":case"IfStatement":return J==="consequent"||J==="alternate";case"WhileStatement":case"DoWhileStatement":case"ForInStatement":case"ForOfStatement":return J==="body";case"ForStatement":return J==="body"||J==="update";case"SwitchStatement":return J==="cases";case"TryStatement":return J==="handler";case"AssignmentPattern":return J==="right";case"OptionalMemberExpression":return J==="property";case"OptionalCallExpression":return J==="arguments";default:return!1}}function DM(G,J){for(let X=0;X<J;X++){const H=G[X];if(ZA1(H.parent.type,H.parentKey))return!0}return!1}function VA1(G){return i3(this,G,new Map)}function i3(G,J,X){const H={this:jM(G),target:jM(J)};if(H.target.node!==H.this.node)return YA1(G,H.target,X);const Z={target:J.getAncestry(),this:G.getAncestry()};if(Z.target.includes(G))return"after";if(Z.this.includes(J))return"before";let V;const Q={target:0,this:0};while(!V&&Q.this<Z.this.length){const B=Z.this[Q.this];if(Q.target=Z.target.indexOf(B),Q.target>=0)V=B;else Q.this++}if(!V)throw new Error("Internal Babel error - The two compared nodes don't appear to belong to the same program.");if(DM(Z.this,Q.this-1)||DM(Z.target,Q.target-1))return"unknown";const Y={this:Z.this[Q.this-1],target:Z.target[Q.target-1]};if(Y.target.listKey&&Y.this.listKey&&Y.target.container===Y.this.container)return Y.target.key>Y.this.key?"before":"after";const W=lI1[V.type],z={this:W.indexOf(Y.this.parentKey),target:W.indexOf(Y.target.parentKey)};return z.target>z.this?"before":"after"}function QA1(G,J,X){if(!J.isFunctionDeclaration()){if(i3(G,J,X)==="before")return"before";return"unknown"}else if(J.parentPath.isExportDeclaration())return"unknown";const H=J.scope.getBinding(J.node.id.name);if(!H.references)return"before";const Z=H.referencePaths;let V;for(let Q of Z){if(!!Q.find((z)=>z.node===J.node))continue;if(Q.key!=="callee"||!Q.parentPath.isCallExpression())return"unknown";const W=i3(G,Q,X);if(V&&V!==W)return"unknown";else V=W}return V}function YA1(G,J,X){let H=X.get(G.node),Z;if(!H)X.set(G.node,H=new Map);else if(Z=H.get(J.node)){if(Z===IM)return"unknown";return Z}H.set(J.node,IM);const V=QA1(G,J,X);return H.set(J.node,V),V}function WA1(G,J){return CM.call(this,G,J)||this}function CM(G,J){var X;if((X=J)!=null&&X.includes(this))return;if(J=J||[],J.push(this),this.isVariableDeclarator()){if(this.get("id").isIdentifier())return this.get("init").resolve(G,J)}else if(this.isReferencedIdentifier()){const H=this.scope.getBinding(this.node.name);if(!H)return;if(!H.constant)return;if(H.kind==="module")return;if(H.path!==this){const Z=H.path.resolve(G,J);if(this.find((V)=>V.node===Z.node))return;return Z}}else if(this.isTypeCastExpression())return this.get("expression").resolve(G,J);else if(G&&this.isMemberExpression()){const H=this.toComputedKey();if(!rI1(H))return;const Z=H.value,V=this.get("object").resolve(G,J);if(V.isObjectExpression()){const Q=V.get("properties");for(let Y of Q){if(!Y.isProperty())continue;const W=Y.get("key");let z=Y.isnt("computed")&&W.isIdentifier({name:Z});if(z=z||W.isLiteral({value:Z}),z)return Y.get("value").resolve(G,J)}}else if(V.isArrayExpression()&&!isNaN(+Z)){const Y=V.get("elements")[Z];if(Y)return Y.resolve(G,J)}}}function zA1(){if(this.isIdentifier()){const G=this.scope.getBinding(this.node.name);if(!G)return!1;return G.constant}if(this.isLiteral()){if(this.isRegExpLiteral())return!1;if(this.isTemplateLiteral())return this.get("expressions").every((G)=>G.isConstantExpression());return!0}if(this.isUnaryExpression()){if(this.node.operator!=="void")return!1;return this.get("argument").isConstantExpression()}if(this.isBinaryExpression()){const{operator:G}=this.node;return G!=="in"&&G!=="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 UA1(){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 H;if(X.isFunction())H=X.node.body;else if(X.isProgram())H=X.node;else return!1;for(let Z of H.directives)if(Z.value.value==="use strict")return!0})}Object.defineProperty(fM,"__esModule",{value:!0});fM._guessExecutionStatusRelativeTo=VA1;fM._resolve=CM;fM.canHaveVariableDeclarationOrExpression=oI1;fM.canSwapBetweenExpressionAndStatement=eI1;fM.getSource=XA1;fM.isCompletionRecord=tI1;fM.isConstantExpression=zA1;fM.isInStrictMode=UA1;fM.isNodeType=nI1;fM.isStatementOrBlock=GA1;fM.isStatic=pI1;fM.matchesPattern=sI1;fM.referencesImport=JA1;fM.resolve=WA1;fM.willIMaybeExecuteBefore=HA1;var mI1=F1(),{STATEMENT_OR_BLOCK_KEYS:xI1,VISITOR_KEYS:lI1,isBlockStatement:AM,isExpression:cI1,isIdentifier:aI1,isLiteral:rI1,isStringLiteral:iI1,isType:uI1,matchesPattern:dI1}=mI1;fM.has=function G(J){var X;const H=(X=this.node)==null?void 0:X[J];if(H&&Array.isArray(H))return!!H.length;else return!!H};fM.is=fM.has,fM.isnt=function G(J){return!this.has(J)},fM.equals=function G(J,X){return this.node[J]===X};var IM=Symbol()});var kM=S((NM)=>{function OA1(G){return{type:s3,path:G}}function vA1(G){return{type:n9,path:G}}function _A1(){if(this.key==="left")return this.getSibling("right");else if(this.key==="right")return this.getSibling("left");return null}function s5(G,J,X){if(G)J.push(...p5(G,X));return J}function gA1(G,J,X){let H=[];for(let Z=0;Z<G.length;Z++){const V=G[Z],Q=p5(V,X),Y=[],W=[];for(let z of Q){if(z.type===s3)Y.push(z);if(z.type===n9)W.push(z)}if(Y.length)H=Y;J.push(...W)}return J.push(...H),J}function bA1(G){G.forEach((J)=>{J.type=n9})}function u3(G,J){G.forEach((X)=>{if(X.path.isBreakStatement({label:null}))if(J)X.path.replaceWith(EA1("void",kA1(0)));else X.path.remove()})}function PM(G,J){const X=[];if(J.canHaveBreak){let H=[];for(let Z=0;Z<G.length;Z++){const V=G[Z],Q=Object.assign({},J,{inCaseClause:!1});if(V.isBlockStatement()&&(J.inCaseClause||J.shouldPopulateBreak))Q.shouldPopulateBreak=!0;else Q.shouldPopulateBreak=!1;const Y=p5(V,Q);if(Y.length>0&&Y.every((W)=>W.type===n9)){if(H.length>0&&Y.every((W)=>W.path.isBreakStatement({label:null}))){if(bA1(H),X.push(...H),H.some((W)=>W.path.isDeclaration()))X.push(...Y),u3(Y,!0);u3(Y,!1)}else if(X.push(...Y),!J.shouldPopulateBreak)u3(Y,!0);break}if(Z===G.length-1)X.push(...Y);else{H=[];for(let W=0;W<Y.length;W++){const z=Y[W];if(z.type===n9)X.push(z);if(z.type===s3)H.push(z)}}}}else if(G.length)for(let H=G.length-1;H>=0;H--){const Z=p5(G[H],J);if(Z.length>1||Z.length===1&&!Z[0].path.isVariableDeclaration()){X.push(...Z);break}}return X}function p5(G,J){let X=[];if(G.isIfStatement())X=s5(G.get("consequent"),X,J),X=s5(G.get("alternate"),X,J);else if(G.isDoExpression()||G.isFor()||G.isWhile()||G.isLabeledStatement())return s5(G.get("body"),X,J);else if(G.isProgram()||G.isBlockStatement())return PM(G.get("body"),J);else if(G.isFunction())return p5(G.get("body"),J);else if(G.isTryStatement())X=s5(G.get("block"),X,J),X=s5(G.get("handler"),X,J);else if(G.isCatchClause())return s5(G.get("body"),X,J);else if(G.isSwitchStatement())return gA1(G.get("cases"),X,J);else if(G.isSwitchCase())return PM(G.get("consequent"),{canHaveBreak:!0,shouldPopulateBreak:!1,inCaseClause:!0});else if(G.isBreakStatement())X.push(vA1(G));else X.push(OA1(G));return X}function hA1(){return p5(this,{canHaveBreak:!1,shouldPopulateBreak:!1,inCaseClause:!1}).map((J)=>J.path)}function yA1(G){return d3.default.get({parentPath:this.parentPath,parent:this.parent,container:this.container,listKey:this.listKey,key:G}).setContext(this.context)}function mA1(){return this.getSibling(this.key-1)}function xA1(){return this.getSibling(this.key+1)}function lA1(){let G=this.key,J=this.getSibling(++G);const X=[];while(J.node)X.push(J),J=this.getSibling(++G);return X}function cA1(){let G=this.key,J=this.getSibling(--G);const X=[];while(J.node)X.push(J),J=this.getSibling(--G);return X}function aA1(G,J=!0){if(J===!0)J=this.context;const X=G.split(".");if(X.length===1)return TM.call(this,G,J);else return wM.call(this,X,J)}function TM(G,J){const X=this.node,H=X[G];if(Array.isArray(H))return H.map((Z,V)=>{return d3.default.get({listKey:G,parentPath:this,parent:X,container:H,key:V}).setContext(J)});else return d3.default.get({parentPath:this,parent:X,container:X,key:G}).setContext(J)}function wM(G,J){let X=this;for(let H of G)if(H===".")X=X.parentPath;else if(Array.isArray(X))X=X[H];else X=X.get(H,J);return X}function rA1(){return wA1(this.node)}function iA1(G){return LM(this.node,G)}function uA1(G){return NA1(this.node,G)}function dA1(G=!1,J=!1){const H=[this],Z=Object.create(null);while(H.length){const V=H.shift();if(!V)continue;if(!V.node)continue;const Q=LM.keys[V.node.type];if(V.isIdentifier()){if(G)(Z[V.node.name]=Z[V.node.name]||[]).push(V);else Z[V.node.name]=V;continue}if(V.isExportDeclaration()){const Y=V.get("declaration");if(Y.isDeclaration())H.push(Y);continue}if(J){if(V.isFunctionDeclaration()){H.push(V.get("id"));continue}if(V.isFunctionExpression())continue}if(Q)for(let Y=0;Y<Q.length;Y++){const W=Q[Y],z=V.get(W);if(Array.isArray(z))H.push(...z);else if(z.node)H.push(z)}}return Z}function sA1(G=!1){return this.getBindingIdentifierPaths(G,!0)}Object.defineProperty(NM,"__esModule",{value:!0});NM._getKey=TM;NM._getPattern=wM;NM.get=aA1;NM.getAllNextSiblings=lA1;NM.getAllPrevSiblings=cA1;NM.getAssignmentIdentifiers=rA1;NM.getBindingIdentifierPaths=dA1;NM.getBindingIdentifiers=iA1;NM.getCompletionRecords=hA1;NM.getNextSibling=xA1;NM.getOpposite=_A1;NM.getOuterBindingIdentifierPaths=sA1;NM.getOuterBindingIdentifiers=uA1;NM.getPrevSibling=mA1;NM.getSibling=yA1;var d3=_0(),TA1=F1(),{getAssignmentIdentifiers:wA1,getBindingIdentifiers:LM,getOuterBindingIdentifiers:NA1,numericLiteral:kA1,unaryExpression:EA1}=TA1,s3=0,n9=1});var vM=S((OM)=>{function $C1(){if(typeof this.key==="string")return;const G=this.node;if(!G)return;const{trailingComments:J,leadingComments:X}=G;if(!J&&!X)return;const H=this.getSibling(this.key-1),Z=this.getSibling(this.key+1),V=Boolean(H.node),Q=Boolean(Z.node);if(V){if(X)H.addComments("trailing",EM(X,H.node.trailingComments));if(J&&!Q)H.addComments("trailing",J)}if(Q){if(J)Z.addComments("leading",EM(J,Z.node.leadingComments));if(X&&!V)Z.addComments("leading",X)}}function EM(G,J){if(!(J!=null&&J.length))return G;const X=new Set(J);return G.filter((H)=>{return!X.has(H)})}function RC1(G,J,X){KC1(this.node,G,J,X)}function MC1(G,J){BC1(this.node,G,J)}Object.defineProperty(OM,"__esModule",{value:!0});OM.addComment=RC1;OM.addComments=MC1;OM.shareCommentsWithSiblings=$C1;var UC1=F1(),{addComment:KC1,addComments:BC1}=UC1});var _0=S((yM)=>{Object.defineProperty(yM,"__esModule",{value:!0});yM.default=yM.SHOULD_STOP=yM.SHOULD_SKIP=yM.REMOVED=void 0;var DC1=u7(),IC1=sK(),AC1=c9(),CC1=Z3(),bM=F1(),RJ=bM,fC1=Z5(),SC1=C7(),t2=lB(),n5=U$(),o5=S3(),_M=mR(),B5=FM(),u1=SM(),hM=o2(),i1=hM,e5=YJ(),G0=WJ(),$2=kM(),p3=vM(),PC1=e7(),{validate:LC1}=bM,gM=IC1("babel"),Ub1=yM.REMOVED=1,Kb1=yM.SHOULD_STOP=2,Bb1=yM.SHOULD_SKIP=4,j0=yM.default=class G{constructor(J,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=J,this.data=null,this.context=null,this.scope=null}get removed(){return(this._traverseFlags&1)>0}set removed(J){if(J)this._traverseFlags|=1;else this._traverseFlags&=-2}get shouldStop(){return(this._traverseFlags&2)>0}set shouldStop(J){if(J)this._traverseFlags|=2;else this._traverseFlags&=-3}get shouldSkip(){return(this._traverseFlags&4)>0}set shouldSkip(J){if(J)this._traverseFlags|=4;else this._traverseFlags&=-5}static get({hub:J,parentPath:X,parent:H,container:Z,listKey:V,key:Q}){if(!J&&X)J=X.hub;if(!H)throw new Error("To get a node path the parent needs to exist");const Y=Z[Q],W=fC1.getOrCreateCachedPaths(J,H);let z=W.get(Y);if(!z){if(z=new G(J,H),Y)W.set(Y,z)}return hM.setup.call(z,X,Z,V,Q),z}getScope(J){return this.isScope()?new CC1.default(this):J}setData(J,X){if(this.data==null)this.data=Object.create(null);return this.data[J]=X}getData(J,X){if(this.data==null)this.data=Object.create(null);let H=this.data[J];if(H===void 0&&X!==void 0)H=this.data[J]=X;return H}hasNode(){return this.node!=null}buildCodeFrameError(J,X=SyntaxError){return this.hub.buildError(this.node,J,X)}traverse(J,X){AC1.default(this.node,J,this.scope,X,this)}set(J,X){LC1(this.node,J,X),this.node[J]=X}getPathLocation(){const J=[];let X=this;do{let H=X.key;if(X.inList)H=`${X.listKey}[${H}]`;J.unshift(H)}while(X=X.parentPath);return J.join(".")}debug(J){if(!gM.enabled)return;gM(`${this.getPathLocation()} ${this.type}: ${J}`)}toString(){return SC1.default(this.node).code}get inList(){return!!this.listKey}set inList(J){if(!J)this.listKey=null}get parentKey(){return this.listKey||this.key}},TC1={findParent:t2.findParent,find:t2.find,getFunctionParent:t2.getFunctionParent,getStatementParent:t2.getStatementParent,getEarliestCommonAncestorFrom:t2.getEarliestCommonAncestorFrom,getDeepestCommonAncestorFrom:t2.getDeepestCommonAncestorFrom,getAncestry:t2.getAncestry,isAncestor:t2.isAncestor,isDescendant:t2.isDescendant,inType:t2.inType,getTypeAnnotation:n5.getTypeAnnotation,isBaseType:n5.isBaseType,couldBeBaseType:n5.couldBeBaseType,baseTypeStrictlyMatches:n5.baseTypeStrictlyMatches,isGenericType:n5.isGenericType,replaceWithMultiple:o5.replaceWithMultiple,replaceWithSourceString:o5.replaceWithSourceString,replaceWith:o5.replaceWith,replaceExpressionWithStatements:o5.replaceExpressionWithStatements,replaceInline:o5.replaceInline,evaluateTruthy:_M.evaluateTruthy,evaluate:_M.evaluate,toComputedKey:B5.toComputedKey,ensureBlock:B5.ensureBlock,unwrapFunctionEnvironment:B5.unwrapFunctionEnvironment,arrowFunctionToExpression:B5.arrowFunctionToExpression,splitExportDeclaration:B5.splitExportDeclaration,ensureFunctionName:B5.ensureFunctionName,matchesPattern:u1.matchesPattern,isStatic:u1.isStatic,isNodeType:u1.isNodeType,canHaveVariableDeclarationOrExpression:u1.canHaveVariableDeclarationOrExpression,canSwapBetweenExpressionAndStatement:u1.canSwapBetweenExpressionAndStatement,isCompletionRecord:u1.isCompletionRecord,isStatementOrBlock:u1.isStatementOrBlock,referencesImport:u1.referencesImport,getSource:u1.getSource,willIMaybeExecuteBefore:u1.willIMaybeExecuteBefore,_guessExecutionStatusRelativeTo:u1._guessExecutionStatusRelativeTo,resolve:u1.resolve,isConstantExpression:u1.isConstantExpression,isInStrictMode:u1.isInStrictMode,isDenylisted:i1.isDenylisted,visit:i1.visit,skip:i1.skip,skipKey:i1.skipKey,stop:i1.stop,setContext:i1.setContext,requeue:i1.requeue,requeueComputedKeyAndDecorators:i1.requeueComputedKeyAndDecorators,remove:e5.remove,insertBefore:G0.insertBefore,insertAfter:G0.insertAfter,unshiftContainer:G0.unshiftContainer,pushContainer:G0.pushContainer,getOpposite:$2.getOpposite,getCompletionRecords:$2.getCompletionRecords,getSibling:$2.getSibling,getPrevSibling:$2.getPrevSibling,getNextSibling:$2.getNextSibling,getAllNextSiblings:$2.getAllNextSiblings,getAllPrevSiblings:$2.getAllPrevSiblings,get:$2.get,getAssignmentIdentifiers:$2.getAssignmentIdentifiers,getBindingIdentifiers:$2.getBindingIdentifiers,getOuterBindingIdentifiers:$2.getOuterBindingIdentifiers,getBindingIdentifierPaths:$2.getBindingIdentifierPaths,getOuterBindingIdentifierPaths:$2.getOuterBindingIdentifierPaths,shareCommentsWithSiblings:p3.shareCommentsWithSiblings,addComment:p3.addComment,addComments:p3.addComments};Object.assign(j0.prototype,TC1);j0.prototype.arrowFunctionToShadowed=B5[String("arrowFunctionToShadowed")],Object.assign(j0.prototype,{has:u1[String("has")],is:u1[String("is")],isnt:u1[String("isnt")],equals:u1[String("equals")],hoist:G0[String("hoist")],updateSiblingKeys:G0.updateSiblingKeys,call:i1.call,isBlacklisted:i1[String("isBlacklisted")],setScope:i1.setScope,resync:i1.resync,popContext:i1.popContext,pushContext:i1.pushContext,setup:i1.setup,setKey:i1.setKey});j0.prototype._guessExecutionStatusRelativeToDifferentFunctions=u1._guessExecutionStatusRelativeTo,j0.prototype._guessExecutionStatusRelativeToDifferentFunctions=u1._guessExecutionStatusRelativeTo,Object.assign(j0.prototype,{_getTypeAnnotation:n5._getTypeAnnotation,_replaceWith:o5._replaceWith,_resolve:u1._resolve,_call:i1._call,_resyncParent:i1._resyncParent,_resyncKey:i1._resyncKey,_resyncList:i1._resyncList,_resyncRemoved:i1._resyncRemoved,_getQueueContexts:i1._getQueueContexts,_removeFromScope:e5._removeFromScope,_callRemovalHooks:e5._callRemovalHooks,_remove:e5._remove,_markRemoved:e5._markRemoved,_assertUnremoved:e5._assertUnremoved,_containerInsert:G0._containerInsert,_containerInsertBefore:G0._containerInsertBefore,_containerInsertAfter:G0._containerInsertAfter,_verifyNodeList:G0._verifyNodeList,_getKey:$2._getKey,_getPattern:$2._getPattern});for(let G of RJ.TYPES){const J=`is${G}`,X=RJ[J];j0.prototype[J]=function(H){return X(this.node,H)},j0.prototype[`assert${G}`]=function(H){if(!X(this.node,H))throw new TypeError(`Expected node path of type ${G}`)}}Object.assign(j0.prototype,PC1);for(let G of Object.keys(DC1)){if(G[0]==="_")continue;if(!RJ.TYPES.includes(G))RJ.TYPES.push(G)}});var aM=S((lM)=>{Object.defineProperty(lM,"__esModule",{value:!0});lM.default=void 0;var EC1=_0(),OC1=F1(),n3=o2(),{VISITOR_KEYS:vC1}=OC1;class xM{constructor(G,J,X,H){this.queue=null,this.priorityQueue=null,this.parentPath=H,this.scope=G,this.state=X,this.opts=J}shouldVisit(G){const J=this.opts;if(J.enter||J.exit)return!0;if(J[G.type])return!0;const X=vC1[G.type];if(!(X!=null&&X.length))return!1;for(let H of X)if(G[H])return!0;return!1}create(G,J,X,H){return EC1.default.get({parentPath:this.parentPath,parent:G,container:J,key:X,listKey:H})}maybeQueue(G,J){if(this.queue)if(J)this.queue.push(G);else this.priorityQueue.push(G)}visitMultiple(G,J,X){if(G.length===0)return!1;const H=[];for(let Z=0;Z<G.length;Z++){const V=G[Z];if(V&&this.shouldVisit(V))H.push(this.create(J,G,Z,X))}return this.visitQueue(H)}visitSingle(G,J){if(this.shouldVisit(G[J]))return this.visitQueue([this.create(G,G,J)]);else return!1}visitQueue(G){this.queue=G,this.priorityQueue=[];const J=new WeakSet;let X=!1,H=0;for(;H<G.length;){const Z=G[H];if(H++,n3.resync.call(Z),Z.contexts.length===0||Z.contexts[Z.contexts.length-1]!==this)n3.pushContext.call(Z,this);if(Z.key===null)continue;const{node:V}=Z;if(J.has(V))continue;if(V)J.add(V);if(Z.visit()){X=!0;break}if(this.priorityQueue.length){if(X=this.visitQueue(this.priorityQueue),this.priorityQueue=[],this.queue=G,X)break}}for(let Z=0;Z<H;Z++)n3.popContext.call(G[Z]);return this.queue=null,X}visit(G,J){const X=G[J];if(!X)return!1;if(Array.isArray(X))return this.visitMultiple(X,G,J);else return this.visitSingle(G,J)}}lM.default=xM});var pG=S((rM)=>{function hC1(G,J,X,H,Z,V,Q){const Y=bC1[G.type];if(!Y)return!1;const W=new _C1.default(X,J,H,Z);if(Q){if(V!=null&&V[Z.parentKey])return!1;return W.visitQueue([Z])}for(let z of Y){if(V!=null&&V[z])continue;if(W.visit(G,z))return!0}return!1}Object.defineProperty(rM,"__esModule",{value:!0});rM.traverseNode=hC1;var _C1=aM(),gC1=F1(),{VISITOR_KEYS:bC1}=gC1});var o2=S((eM)=>{function o3(G){const J=this.opts;if(this.debug(G),this.node){if(e3.call(this,J[G]))return!0}if(this.node){var X;return e3.call(this,(X=J[this.node.type])==null?void 0:X[G])}return!1}function e3(G){if(!G)return!1;for(let J of G){if(!J)continue;const X=this.node;if(!X)return!0;const H=J.call(this.state,this,this.state);if(H&&typeof H==="object"&&typeof H.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(H)throw new Error(`Unexpected return value from visitor method ${J}`);if(this.node!==X)return!0;if(this._traverseFlags>0)return!0}return!1}function dM(){var G;const J=(G=this.opts.denylist)!=null?G:this.opts.blacklist;return J==null?void 0:J.includes(this.node.type)}function uM(G,J){if(G.context!==J)G.context=J,G.state=J.state,G.opts=J.opts}function cC1(){var G,J;if(!this.node)return!1;if(this.isDenylisted())return!1;if((G=(J=this.opts).shouldSkip)!=null&&G.call(J,this))return!1;const X=this.context;if(this.shouldSkip||o3.call(this,"enter"))return this.debug("Skip..."),this.shouldStop;return uM(this,X),this.debug("Recursing into..."),this.shouldStop=mC1.traverseNode(this.node,this.opts,this.scope,this.state,this,this.skipKeys),uM(this,X),o3.call(this,"exit"),this.shouldStop}function aC1(){this.shouldSkip=!0}function rC1(G){if(this.skipKeys==null)this.skipKeys={};this.skipKeys[G]=!0}function iC1(){this._traverseFlags|=iM.SHOULD_SKIP|iM.SHOULD_STOP}function sM(){var G,J;if((G=this.opts)!=null&&G.noScope)return;let X=this.parentPath;if((this.key==="key"||this.listKey==="decorators")&&X.isMethod()||this.key==="discriminant"&&X.isSwitchStatement())X=X.parentPath;let H;while(X&&!H){var Z;if((Z=X.opts)!=null&&Z.noScope)return;H=X.scope,X=X.parentPath}this.scope=this.getScope(H),(J=this.scope)==null||J.init()}function uC1(G){if(this.skipKeys!=null)this.skipKeys={};if(this._traverseFlags=0,G)this.context=G,this.state=G.state,this.opts=G.opts;return sM.call(this),this}function dC1(){if(this.removed)return;pM.call(this),oM.call(this),nM.call(this)}function pM(){if(this.parentPath)this.parent=this.parentPath.node}function nM(){if(!this.container)return;if(this.node===this.container[this.key])return;if(Array.isArray(this.container)){for(let G=0;G<this.container.length;G++)if(this.container[G]===this.node){MJ.call(this,G);return}}else for(let G of Object.keys(this.container))if(this.container[G]===this.node){MJ.call(this,G);return}this.key=null}function oM(){if(!this.parent||!this.inList)return;const G=this.parent[this.listKey];if(this.container===G)return;this.container=G||null}function sC1(){if(this.key==null||!this.container||this.container[this.key]!==this.node)xC1._markRemoved.call(this)}function pC1(){if(this.contexts.pop(),this.contexts.length>0)this.setContext(this.contexts[this.contexts.length-1]);else this.setContext(void 0)}function nC1(G){this.contexts.push(G),this.setContext(G)}function oC1(G,J,X,H){this.listKey=X,this.container=J,this.parentPath=G||this.parentPath,MJ.call(this,H)}function MJ(G){var J;this.key=G,this.node=this.container[this.key],this.type=(J=this.node)==null?void 0:J.type}function eC1(G=this){if(G.removed)return;const J=this.contexts;for(let X of J)X.maybeQueue(G)}function tC1(){const{context:G,node:J}=this;if(!lC1.isPrivate(J)&&J.computed)G.maybeQueue(this.get("key"));if(J.decorators)for(let X of this.get("decorators"))G.maybeQueue(X)}function Gf1(){let G=this,J=this.contexts;while(!J.length){if(G=G.parentPath,!G)break;J=G.contexts}return J}Object.defineProperty(eM,"__esModule",{value:!0});eM._call=e3;eM._getQueueContexts=Gf1;eM._resyncKey=nM;eM._resyncList=oM;eM._resyncParent=pM;eM._resyncRemoved=sC1;eM.call=o3;eM.isDenylisted=dM;eM.popContext=pC1;eM.pushContext=nC1;eM.requeue=eC1;eM.requeueComputedKeyAndDecorators=tC1;eM.resync=dC1;eM.setContext=uC1;eM.setKey=MJ;eM.setScope=sM;eM.setup=oC1;eM.skip=aC1;eM.skipKey=rC1;eM.stop=iC1;eM.visit=cC1;var mC1=pG(),iM=_0(),xC1=YJ(),lC1=F1();eM.isBlacklisted=dM});var Xq=S((Gq)=>{Object.defineProperty(Gq,"__esModule",{value:!0});Gq.default=void 0;class tM{getCode(){}getScope(){}addHelper(){throw new Error("Helpers are not supported by the default hub.")}buildError(G,J,X=TypeError){return new X(J)}}Gq.default=tM});var c9=S((e9)=>{function _2(G,J={},X,H,Z,V){if(!G)return;if(!J.noScope&&!X){if(G.type!=="Program"&&G.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 ${G.type} node without passing scope and parentPath.`)}if(!Z&&V)throw new Error("visitSelf can only be used when providing a NodePath.");if(!Tf1[G.type])return;o9.explode(J),Hq.traverseNode(G,J,X,H,Z,null,V)}function Nf1(G,J){if(G.node.type===J.type)J.has=!0,G.stop()}Object.defineProperty(e9,"__esModule",{value:!0});Object.defineProperty(e9,"Hub",{enumerable:!0,get:function(){return Lf1.default}});Object.defineProperty(e9,"NodePath",{enumerable:!0,get:function(){return Sf1.default}});Object.defineProperty(e9,"Scope",{enumerable:!0,get:function(){return Pf1.default}});e9.visitors=e9.default=void 0;o2();var o9=l9();e9.visitors=o9;var Cf1=F1(),ff1=Z5(),Hq=pG(),Sf1=_0(),Pf1=Z3(),Lf1=Xq(),{VISITOR_KEYS:Tf1,removeProperties:wf1,traverseFast:Zq}=Cf1,Db1=e9.default=_2;_2.visitors=o9;_2.verify=o9.verify;_2.explode=o9.explode;_2.cheap=function(G,J){Zq(G,J);return};_2.node=function(G,J,X,H,Z,V){Hq.traverseNode(G,J,X,H,Z,V)};_2.clearNode=function(G,J){wf1(G,J)};_2.removeProperties=function(G,J){return Zq(G,_2.clearNode,J),G};_2.hasType=function(G,J,X){if(X!=null&&X.includes(G.type))return!1;if(G.type===J)return!0;const H={has:!1,type:J};return _2(G,{noScope:!0,denylist:X,enter:Nf1},null,H),H.has};_2.cache=ff1});var Kq=S((XH,HH)=>{(function(G,J){if(typeof XH==="object"&&typeof HH==="object")HH.exports=J();else if(typeof define==="function"&&define.amd)define(function(){return J()});else G.pluralize=J()})(XH,function(){var G=[],J=[],X={},H={},Z={};function V(j){if(typeof j==="string")return new RegExp("^"+j+"$","i");return j}function Q(j,f){if(j===f)return f;if(j===j.toLowerCase())return f.toLowerCase();if(j===j.toUpperCase())return f.toUpperCase();if(j[0]===j[0].toUpperCase())return f.charAt(0).toUpperCase()+f.substr(1).toLowerCase();return f.toLowerCase()}function Y(j,f){return j.replace(/\$(\d{1,2})/g,function(h,w){return f[w]||""})}function W(j,f){return j.replace(f[0],function(h,w){var v=Y(f[1],arguments);if(h==="")return Q(j[w-1],v);return Q(h,v)})}function z(j,f,h){if(!j.length||X.hasOwnProperty(j))return f;var w=h.length;while(w--){var v=h[w];if(v[0].test(f))return W(f,v)}return f}function B(j,f,h){return function(w){var v=w.toLowerCase();if(f.hasOwnProperty(v))return Q(w,v);if(j.hasOwnProperty(v))return Q(w,j[v]);return z(v,w,h)}}function q(j,f,h,w){return function(v){var b=v.toLowerCase();if(f.hasOwnProperty(b))return!0;if(j.hasOwnProperty(b))return!1;return z(b,b,h)===b}}function F(j,f,h){var w=f===1?F.singular(j):F.plural(j);return(h?f+" ":"")+w}return F.plural=B(Z,H,G),F.isPlural=q(Z,H,G),F.singular=B(H,Z,J),F.isSingular=q(H,Z,J),F.addPluralRule=function(j,f){G.push([V(j),f])},F.addSingularRule=function(j,f){J.push([V(j),f])},F.addUncountableRule=function(j){if(typeof j==="string"){X[j.toLowerCase()]=!0;return}F.addPluralRule(j,"$0"),F.addSingularRule(j,"$0")},F.addIrregularRule=function(j,f){f=f.toLowerCase(),j=j.toLowerCase(),Z[j]=f,H[f]=j},[["I","we"],["me","us"],["he","they"],["she","they"],["them","them"],["myself","ourselves"],["yourself","yourselves"],["itself","themselves"],["herself","themselves"],["himself","themselves"],["themself","themselves"],["is","are"],["was","were"],["has","have"],["this","these"],["that","those"],["echo","echoes"],["dingo","dingoes"],["volcano","volcanoes"],["tornado","tornadoes"],["torpedo","torpedoes"],["genus","genera"],["viscus","viscera"],["stigma","stigmata"],["stoma","stomata"],["dogma","dogmata"],["lemma","lemmata"],["schema","schemata"],["anathema","anathemata"],["ox","oxen"],["axe","axes"],["die","dice"],["yes","yeses"],["foot","feet"],["eave","eaves"],["goose","geese"],["tooth","teeth"],["quiz","quizzes"],["human","humans"],["proof","proofs"],["carve","carves"],["valve","valves"],["looey","looies"],["thief","thieves"],["groove","grooves"],["pickaxe","pickaxes"],["passerby","passersby"]].forEach(function(j){return F.addIrregularRule(j[0],j[1])}),[[/s?$/i,"s"],[/[^\u0000-\u007F]$/i,"$0"],[/([^aeiou]ese)$/i,"$1"],[/(ax|test)is$/i,"$1es"],[/(alias|[^aou]us|t[lm]as|gas|ris)$/i,"$1es"],[/(e[mn]u)s?$/i,"$1s"],[/([^l]ias|[aeiou]las|[ejzr]as|[iu]am)$/i,"$1"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1i"],[/(alumn|alg|vertebr)(?:a|ae)$/i,"$1ae"],[/(seraph|cherub)(?:im)?$/i,"$1im"],[/(her|at|gr)o$/i,"$1oes"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|automat|quor)(?:a|um)$/i,"$1a"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)(?:a|on)$/i,"$1a"],[/sis$/i,"ses"],[/(?:(kni|wi|li)fe|(ar|l|ea|eo|oa|hoo)f)$/i,"$1$2ves"],[/([^aeiouy]|qu)y$/i,"$1ies"],[/([^ch][ieo][ln])ey$/i,"$1ies"],[/(x|ch|ss|sh|zz)$/i,"$1es"],[/(matr|cod|mur|sil|vert|ind|append)(?:ix|ex)$/i,"$1ices"],[/\b((?:tit)?m|l)(?:ice|ouse)$/i,"$1ice"],[/(pe)(?:rson|ople)$/i,"$1ople"],[/(child)(?:ren)?$/i,"$1ren"],[/eaux$/i,"$0"],[/m[ae]n$/i,"men"],["thou","you"]].forEach(function(j){return F.addPluralRule(j[0],j[1])}),[[/s$/i,""],[/(ss)$/i,"$1"],[/(wi|kni|(?:after|half|high|low|mid|non|night|[^\w]|^)li)ves$/i,"$1fe"],[/(ar|(?:wo|[ae])l|[eo][ao])ves$/i,"$1f"],[/ies$/i,"y"],[/\b([pl]|zomb|(?:neck|cross)?t|coll|faer|food|gen|goon|group|lass|talk|goal|cut)ies$/i,"$1ie"],[/\b(mon|smil)ies$/i,"$1ey"],[/\b((?:tit)?m|l)ice$/i,"$1ouse"],[/(seraph|cherub)im$/i,"$1"],[/(x|ch|ss|sh|zz|tto|go|cho|alias|[^aou]us|t[lm]as|gas|(?:her|at|gr)o|[aeiou]ris)(?:es)?$/i,"$1"],[/(analy|diagno|parenthe|progno|synop|the|empha|cri|ne)(?:sis|ses)$/i,"$1sis"],[/(movie|twelve|abuse|e[mn]u)s$/i,"$1"],[/(test)(?:is|es)$/i,"$1is"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1us"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|quor)a$/i,"$1um"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)a$/i,"$1on"],[/(alumn|alg|vertebr)ae$/i,"$1a"],[/(cod|mur|sil|vert|ind)ices$/i,"$1ex"],[/(matr|append)ices$/i,"$1ix"],[/(pe)(rson|ople)$/i,"$1rson"],[/(child)ren$/i,"$1"],[/(eau)x?$/i,"$1"],[/men$/i,"man"]].forEach(function(j){return F.addSingularRule(j[0],j[1])}),["adulthood","advice","agenda","aid","aircraft","alcohol","ammo","analytics","anime","athletics","audio","bison","blood","bream","buffalo","butter","carp","cash","chassis","chess","clothing","cod","commerce","cooperation","corps","debris","diabetes","digestion","elk","energy","equipment","excretion","expertise","firmware","flounder","fun","gallows","garbage","graffiti","hardware","headquarters","health","herpes","highjinks","homework","housework","information","jeans","justice","kudos","labour","literature","machinery","mackerel","mail","media","mews","moose","music","mud","manga","news","only","personnel","pike","plankton","pliers","police","pollution","premises","rain","research","rice","salmon","scissors","series","sewage","shambles","shrimp","software","species","staff","swine","tennis","traffic","transportation","trout","tuna","wealth","welfare","whiting","wildebeest","wildlife","you",/pok[e\u00E9]mon$/i,/[^aeiou]ese$/i,/deer$/i,/fish$/i,/measles$/i,/o[iu]s$/i,/pox$/i,/sheep$/i].forEach(F.addUncountableRule),F})});var Bq=S((ZH,VH)=>{(function(G,J,X){if(typeof ZH==="object")VH.exports=X(),VH.exports.default=X();else if(typeof define==="function"&&define.amd)define(X);else J[G]=X()})("slugify",ZH,function(){var G=JSON.parse(`{"$":"dollar","%":"percent","&":"and","<":"less",">":"greater","|":"or","\xA2":"cent","\xA3":"pound","\xA4":"currency","\xA5":"yen","\xA9":"(c)","\xAA":"a","\xAE":"(r)","\xBA":"o","\xC0":"A","\xC1":"A","\xC2":"A","\xC3":"A","\xC4":"A","\xC5":"A","\xC6":"AE","\xC7":"C","\xC8":"E","\xC9":"E","\xCA":"E","\xCB":"E","\xCC":"I","\xCD":"I","\xCE":"I","\xCF":"I","\xD0":"D","\xD1":"N","\xD2":"O","\xD3":"O","\xD4":"O","\xD5":"O","\xD6":"O","\xD8":"O","\xD9":"U","\xDA":"U","\xDB":"U","\xDC":"U","\xDD":"Y","\xDE":"TH","\xDF":"ss","\xE0":"a","\xE1":"a","\xE2":"a","\xE3":"a","\xE4":"a","\xE5":"a","\xE6":"ae","\xE7":"c","\xE8":"e","\xE9":"e","\xEA":"e","\xEB":"e","\xEC":"i","\xED":"i","\xEE":"i","\xEF":"i","\xF0":"d","\xF1":"n","\xF2":"o","\xF3":"o","\xF4":"o","\xF5":"o","\xF6":"o","\xF8":"o","\xF9":"u","\xFA":"u","\xFB":"u","\xFC":"u","\xFD":"y","\xFE":"th","\xFF":"y","\u0100":"A","\u0101":"a","\u0102":"A","\u0103":"a","\u0104":"A","\u0105":"a","\u0106":"C","\u0107":"c","\u010C":"C","\u010D":"c","\u010E":"D","\u010F":"d","\u0110":"DJ","\u0111":"dj","\u0112":"E","\u0113":"e","\u0116":"E","\u0117":"e","\u0118":"e","\u0119":"e","\u011A":"E","\u011B":"e","\u011E":"G","\u011F":"g","\u0122":"G","\u0123":"g","\u0128":"I","\u0129":"i","\u012A":"i","\u012B":"i","\u012E":"I","\u012F":"i","\u0130":"I","\u0131":"i","\u0136":"k","\u0137":"k","\u013B":"L","\u013C":"l","\u013D":"L","\u013E":"l","\u0141":"L","\u0142":"l","\u0143":"N","\u0144":"n","\u0145":"N","\u0146":"n","\u0147":"N","\u0148":"n","\u014C":"O","\u014D":"o","\u0150":"O","\u0151":"o","\u0152":"OE","\u0153":"oe","\u0154":"R","\u0155":"r","\u0158":"R","\u0159":"r","\u015A":"S","\u015B":"s","\u015E":"S","\u015F":"s","\u0160":"S","\u0161":"s","\u0162":"T","\u0163":"t","\u0164":"T","\u0165":"t","\u0168":"U","\u0169":"u","\u016A":"u","\u016B":"u","\u016E":"U","\u016F":"u","\u0170":"U","\u0171":"u","\u0172":"U","\u0173":"u","\u0174":"W","\u0175":"w","\u0176":"Y","\u0177":"y","\u0178":"Y","\u0179":"Z","\u017A":"z","\u017B":"Z","\u017C":"z","\u017D":"Z","\u017E":"z","\u018F":"E","\u0192":"f","\u01A0":"O","\u01A1":"o","\u01AF":"U","\u01B0":"u","\u01C8":"LJ","\u01C9":"lj","\u01CB":"NJ","\u01CC":"nj","\u0218":"S","\u0219":"s","\u021A":"T","\u021B":"t","\u0259":"e","\u02DA":"o","\u0386":"A","\u0388":"E","\u0389":"H","\u038A":"I","\u038C":"O","\u038E":"Y","\u038F":"W","\u0390":"i","\u0391":"A","\u0392":"B","\u0393":"G","\u0394":"D","\u0395":"E","\u0396":"Z","\u0397":"H","\u0398":"8","\u0399":"I","\u039A":"K","\u039B":"L","\u039C":"M","\u039D":"N","\u039E":"3","\u039F":"O","\u03A0":"P","\u03A1":"R","\u03A3":"S","\u03A4":"T","\u03A5":"Y","\u03A6":"F","\u03A7":"X","\u03A8":"PS","\u03A9":"W","\u03AA":"I","\u03AB":"Y","\u03AC":"a","\u03AD":"e","\u03AE":"h","\u03AF":"i","\u03B0":"y","\u03B1":"a","\u03B2":"b","\u03B3":"g","\u03B4":"d","\u03B5":"e","\u03B6":"z","\u03B7":"h","\u03B8":"8","\u03B9":"i","\u03BA":"k","\u03BB":"l","\u03BC":"m","\u03BD":"n","\u03BE":"3","\u03BF":"o","\u03C0":"p","\u03C1":"r","\u03C2":"s","\u03C3":"s","\u03C4":"t","\u03C5":"y","\u03C6":"f","\u03C7":"x","\u03C8":"ps","\u03C9":"w","\u03CA":"i","\u03CB":"y","\u03CC":"o","\u03CD":"y","\u03CE":"w","\u0401":"Yo","\u0402":"DJ","\u0404":"Ye","\u0406":"I","\u0407":"Yi","\u0408":"J","\u0409":"LJ","\u040A":"NJ","\u040B":"C","\u040F":"DZ","\u0410":"A","\u0411":"B","\u0412":"V","\u0413":"G","\u0414":"D","\u0415":"E","\u0416":"Zh","\u0417":"Z","\u0418":"I","\u0419":"J","\u041A":"K","\u041B":"L","\u041C":"M","\u041D":"N","\u041E":"O","\u041F":"P","\u0420":"R","\u0421":"S","\u0422":"T","\u0423":"U","\u0424":"F","\u0425":"H","\u0426":"C","\u0427":"Ch","\u0428":"Sh","\u0429":"Sh","\u042A":"U","\u042B":"Y","\u042C":"","\u042D":"E","\u042E":"Yu","\u042F":"Ya","\u0430":"a","\u0431":"b","\u0432":"v","\u0433":"g","\u0434":"d","\u0435":"e","\u0436":"zh","\u0437":"z","\u0438":"i","\u0439":"j","\u043A":"k","\u043B":"l","\u043C":"m","\u043D":"n","\u043E":"o","\u043F":"p","\u0440":"r","\u0441":"s","\u0442":"t","\u0443":"u","\u0444":"f","\u0445":"h","\u0446":"c","\u0447":"ch","\u0448":"sh","\u0449":"sh","\u044A":"u","\u044B":"y","\u044C":"","\u044D":"e","\u044E":"yu","\u044F":"ya","\u0451":"yo","\u0452":"dj","\u0454":"ye","\u0456":"i","\u0457":"yi","\u0458":"j","\u0459":"lj","\u045A":"nj","\u045B":"c","\u045D":"u","\u045F":"dz","\u0490":"G","\u0491":"g","\u0492":"GH","\u0493":"gh","\u049A":"KH","\u049B":"kh","\u04A2":"NG","\u04A3":"ng","\u04AE":"UE","\u04AF":"ue","\u04B0":"U","\u04B1":"u","\u04BA":"H","\u04BB":"h","\u04D8":"AE","\u04D9":"ae","\u04E8":"OE","\u04E9":"oe","\u0531":"A","\u0532":"B","\u0533":"G","\u0534":"D","\u0535":"E","\u0536":"Z","\u0537":"E'","\u0538":"Y'","\u0539":"T'","\u053A":"JH","\u053B":"I","\u053C":"L","\u053D":"X","\u053E":"C'","\u053F":"K","\u0540":"H","\u0541":"D'","\u0542":"GH","\u0543":"TW","\u0544":"M","\u0545":"Y","\u0546":"N","\u0547":"SH","\u0549":"CH","\u054A":"P","\u054B":"J","\u054C":"R'","\u054D":"S","\u054E":"V","\u054F":"T","\u0550":"R","\u0551":"C","\u0553":"P'","\u0554":"Q'","\u0555":"O''","\u0556":"F","\u0587":"EV","\u0621":"a","\u0622":"aa","\u0623":"a","\u0624":"u","\u0625":"i","\u0626":"e","\u0627":"a","\u0628":"b","\u0629":"h","\u062A":"t","\u062B":"th","\u062C":"j","\u062D":"h","\u062E":"kh","\u062F":"d","\u0630":"th","\u0631":"r","\u0632":"z","\u0633":"s","\u0634":"sh","\u0635":"s","\u0636":"dh","\u0637":"t","\u0638":"z","\u0639":"a","\u063A":"gh","\u0641":"f","\u0642":"q","\u0643":"k","\u0644":"l","\u0645":"m","\u0646":"n","\u0647":"h","\u0648":"w","\u0649":"a","\u064A":"y","\u064B":"an","\u064C":"on","\u064D":"en","\u064E":"a","\u064F":"u","\u0650":"e","\u0652":"","\u0660":"0","\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u067E":"p","\u0686":"ch","\u0698":"zh","\u06A9":"k","\u06AF":"g","\u06CC":"y","\u06F0":"0","\u06F1":"1","\u06F2":"2","\u06F3":"3","\u06F4":"4","\u06F5":"5","\u06F6":"6","\u06F7":"7","\u06F8":"8","\u06F9":"9","\u0E3F":"baht","\u10D0":"a","\u10D1":"b","\u10D2":"g","\u10D3":"d","\u10D4":"e","\u10D5":"v","\u10D6":"z","\u10D7":"t","\u10D8":"i","\u10D9":"k","\u10DA":"l","\u10DB":"m","\u10DC":"n","\u10DD":"o","\u10DE":"p","\u10DF":"zh","\u10E0":"r","\u10E1":"s","\u10E2":"t","\u10E3":"u","\u10E4":"f","\u10E5":"k","\u10E6":"gh","\u10E7":"q","\u10E8":"sh","\u10E9":"ch","\u10EA":"ts","\u10EB":"dz","\u10EC":"ts","\u10ED":"ch","\u10EE":"kh","\u10EF":"j","\u10F0":"h","\u1E62":"S","\u1E63":"s","\u1E80":"W","\u1E81":"w","\u1E82":"W","\u1E83":"w","\u1E84":"W","\u1E85":"w","\u1E9E":"SS","\u1EA0":"A","\u1EA1":"a","\u1EA2":"A","\u1EA3":"a","\u1EA4":"A","\u1EA5":"a","\u1EA6":"A","\u1EA7":"a","\u1EA8":"A","\u1EA9":"a","\u1EAA":"A","\u1EAB":"a","\u1EAC":"A","\u1EAD":"a","\u1EAE":"A","\u1EAF":"a","\u1EB0":"A","\u1EB1":"a","\u1EB2":"A","\u1EB3":"a","\u1EB4":"A","\u1EB5":"a","\u1EB6":"A","\u1EB7":"a","\u1EB8":"E","\u1EB9":"e","\u1EBA":"E","\u1EBB":"e","\u1EBC":"E","\u1EBD":"e","\u1EBE":"E","\u1EBF":"e","\u1EC0":"E","\u1EC1":"e","\u1EC2":"E","\u1EC3":"e","\u1EC4":"E","\u1EC5":"e","\u1EC6":"E","\u1EC7":"e","\u1EC8":"I","\u1EC9":"i","\u1ECA":"I","\u1ECB":"i","\u1ECC":"O","\u1ECD":"o","\u1ECE":"O","\u1ECF":"o","\u1ED0":"O","\u1ED1":"o","\u1ED2":"O","\u1ED3":"o","\u1ED4":"O","\u1ED5":"o","\u1ED6":"O","\u1ED7":"o","\u1ED8":"O","\u1ED9":"o","\u1EDA":"O","\u1EDB":"o","\u1EDC":"O","\u1EDD":"o","\u1EDE":"O","\u1EDF":"o","\u1EE0":"O","\u1EE1":"o","\u1EE2":"O","\u1EE3":"o","\u1EE4":"U","\u1EE5":"u","\u1EE6":"U","\u1EE7":"u","\u1EE8":"U","\u1EE9":"u","\u1EEA":"U","\u1EEB":"u","\u1EEC":"U","\u1EED":"u","\u1EEE":"U","\u1EEF":"u","\u1EF0":"U","\u1EF1":"u","\u1EF2":"Y","\u1EF3":"y","\u1EF4":"Y","\u1EF5":"y","\u1EF6":"Y","\u1EF7":"y","\u1EF8":"Y","\u1EF9":"y","\u2013":"-","\u2018":"'","\u2019":"'","\u201C":"\\"","\u201D":"\\"","\u201E":"\\"","\u2020":"+","\u2022":"*","\u2026":"...","\u20A0":"ecu","\u20A2":"cruzeiro","\u20A3":"french franc","\u20A4":"lira","\u20A5":"mill","\u20A6":"naira","\u20A7":"peseta","\u20A8":"rupee","\u20A9":"won","\u20AA":"new shequel","\u20AB":"dong","\u20AC":"euro","\u20AD":"kip","\u20AE":"tugrik","\u20AF":"drachma","\u20B0":"penny","\u20B1":"peso","\u20B2":"guarani","\u20B3":"austral","\u20B4":"hryvnia","\u20B5":"cedi","\u20B8":"kazakhstani tenge","\u20B9":"indian rupee","\u20BA":"turkish lira","\u20BD":"russian ruble","\u20BF":"bitcoin","\u2120":"sm","\u2122":"tm","\u2202":"d","\u2206":"delta","\u2211":"sum","\u221E":"infinity","\u2665":"love","\u5143":"yuan","\u5186":"yen","\uFDFC":"rial","\uFEF5":"laa","\uFEF7":"laa","\uFEF9":"lai","\uFEFB":"la"}`),J=JSON.parse('{"bg":{"\u0419":"Y","\u0426":"Ts","\u0429":"Sht","\u042A":"A","\u042C":"Y","\u0439":"y","\u0446":"ts","\u0449":"sht","\u044A":"a","\u044C":"y"},"de":{"\xC4":"AE","\xE4":"ae","\xD6":"OE","\xF6":"oe","\xDC":"UE","\xFC":"ue","\xDF":"ss","%":"prozent","&":"und","|":"oder","\u2211":"summe","\u221E":"unendlich","\u2665":"liebe"},"es":{"%":"por ciento","&":"y","<":"menor que",">":"mayor que","|":"o","\xA2":"centavos","\xA3":"libras","\xA4":"moneda","\u20A3":"francos","\u2211":"suma","\u221E":"infinito","\u2665":"amor"},"fr":{"%":"pourcent","&":"et","<":"plus petit",">":"plus grand","|":"ou","\xA2":"centime","\xA3":"livre","\xA4":"devise","\u20A3":"franc","\u2211":"somme","\u221E":"infini","\u2665":"amour"},"pt":{"%":"porcento","&":"e","<":"menor",">":"maior","|":"ou","\xA2":"centavo","\u2211":"soma","\xA3":"libra","\u221E":"infinito","\u2665":"amor"},"uk":{"\u0418":"Y","\u0438":"y","\u0419":"Y","\u0439":"y","\u0426":"Ts","\u0446":"ts","\u0425":"Kh","\u0445":"kh","\u0429":"Shch","\u0449":"shch","\u0413":"H","\u0433":"h"},"vi":{"\u0110":"D","\u0111":"d"},"da":{"\xD8":"OE","\xF8":"oe","\xC5":"AA","\xE5":"aa","%":"procent","&":"og","|":"eller","$":"dollar","<":"mindre end",">":"st\xF8rre end"},"nb":{"&":"og","\xC5":"AA","\xC6":"AE","\xD8":"OE","\xE5":"aa","\xE6":"ae","\xF8":"oe"},"it":{"&":"e"},"nl":{"&":"en"},"sv":{"&":"och","\xC5":"AA","\xC4":"AE","\xD6":"OE","\xE5":"aa","\xE4":"ae","\xF6":"oe"}}');function X(H,Z){if(typeof H!=="string")throw new Error("slugify: string argument expected");Z=typeof Z==="string"?{replacement:Z}:Z||{};var V=J[Z.locale]||{},Q=Z.replacement===void 0?"-":Z.replacement,Y=Z.trim===void 0?!0:Z.trim,W=H.normalize().split("").reduce(function(z,B){var q=V[B];if(q===void 0)q=G[B];if(q===void 0)q=B;if(q===Q)q=" ";return z+q.replace(Z.remove||/[^\w\s$*_+~.()'"!\-:@]+/g,"")},"");if(Z.strict)W=W.replace(/[^A-Za-z0-9\s]/g,"");if(Y)W=W.trim();if(W=W.replace(/\s+/g,Q),Z.lower)W=W.toLowerCase();return W}return X.extend=function(H){Object.assign(G,H)},X})});import c0 from"process";import{runAction as p1}from"@stacksjs/actions";import{intro as NJ,log as A2,outro as Y6,prompts as tq}from"@stacksjs/cli";import{Action as n1}from"@stacksjs/enums";import{ExitCode as kJ}from"@stacksjs/types";function tP1(G){const J={build:"Build any of your libraries (packages) for production use",components:"Build your component library",vueComponents:"Build your Vue component library",webComponents:"Build your framework agnostic web component library",elements:"An alias to the -w flag",buddy:"Build the Buddy binary",functions:"Build your function library",desktop:"Build the Desktop Application",pages:"Build your frontend",docs:"Build your documentation",framework:"Build Stacks framework",cli:"Automagically build the CLI",server:"Build the Stacks cloud server (Docker image)",select:"What are you trying to build?",project:"Target a specific project",verbose:"Enable verbose output"};G.command("build [type]",J.build).option("-c, --components",J.components).option("-v, --vue-components",J.vueComponents).option("-w, --web-components",J.webComponents).option("-e, --elements",J.elements).option("-f, --functions",J.functions).option("-p, --views",J.pages).option("--pages",J.pages).option("-d, --docs",J.docs).option("-b, --buddy",J.buddy,{default:!1}).option("-s, --stacks",J.framework,{default:!1}).option("--project [project]",J.project,{default:!1}).option("--server",J.server,{default:!1}).option("--verbose",J.verbose,{default:!1}).action(async(X,H)=>{switch(A2.debug("Running `buddy build` ...",H),X){case"components":H.components=!0;break;case"vue":H.vueComponents=!0;break;case"web-components":H.webComponents=!0;break;case"functions":H.functions=!0;break;case"views":H.views=!0;break;case"docs":H.docs=!0;break;case"buddy":H.buddy=!0;break;case"cli":H.buddy=!0;break;case"stacks":H.stacks=!0;break;case"server":H.server=!0;break;default:break}if(console.log("server",X,H),GF(H)){console.log("has no");const Z=await tq({type:"multiselect",name:"build",message:J.select,choices:[{title:"Components",value:"components"},{title:"Web Components",value:"web-components"},{title:"Functions",value:"functions"},{title:"Views",value:"views"},{title:"Documentation",value:"docs"}]});if(console.log("answers",Z),Z!==null)c0.exit(kJ.InvalidArgument)}else console.log("has op");if(H.docs)await p1(n1.BuildDocs);if(H.components)await p1(n1.BuildComponentLibs);if(H.vueComponents)await p1(n1.BuildVueComponentLib);if(H.webComponents)await p1(n1.BuildWebComponentLib);if(H.functions)await p1(n1.BuildFunctionLib);if(H.views)await p1(n1.BuildViews);if(H.stacks)await p1(n1.BuildStacks);if(H.buddy)await p1(n1.BuildCli);if(H.server)await p1(n1.BuildServer);c0.exit(kJ.Success)}),G.command("build:components","Automagically build component libraries for production use & npm/CDN distribution").alias("prod:components").option("-c, --components",J.components,{default:!0}).option("-p, --project [project]",J.project,{default:!1}).option("--verbose",J.verbose,{default:!1}).action(async(X)=>{A2.debug("Running `buddy build:components` ...",X),await p1(n1.BuildComponentLibs,X)}),G.command("build:cli",J.cli).alias("prod:cli").option("-b, --buddy",J.buddy,{default:!0}).option("-p, --project [project]",J.project,{default:!1}).option("--verbose",J.verbose,{default:!1}).action(async(X)=>{A2.debug("Running `buddy build:cli` ...",X),await p1(n1.BuildCli,X)}),G.command("build:server",J.server).alias("prod:server").alias("build:docker").option("-p, --project [project]",J.project,{default:!1}).option("--verbose",J.verbose,{default:!1}).action(async(X)=>{A2.debug("Running `buddy build:server` ...",X),await p1(n1.BuildServer,X)}),G.command("build:functions","Automagically build function library for npm/CDN distribution").option("-f, --functions",J.functions,{default:!0}).option("-p, --project [project]",J.project,{default:!1}).option("--verbose",J.verbose,{default:!1}).action(async(X)=>{A2.debug("Running `buddy `build:functions` ...",X),await p1(n1.BuildFunctionLib,X)}),G.command("build:vue-components","Automagically build Vue component library for npm/CDN distribution").alias("build:vue").alias("prod:vue-components").alias("prod:vue").option("-v, --vue-components",J.vueComponents,{default:!0}).option("-p, --project [project]",J.project,{default:!1}).option("--verbose",J.verbose,{default:!1}).alias("build:vue").action(async(X)=>{A2.debug("Running `buddy build:vue-components` ...",X),await p1(n1.BuildVueComponentLib,X)}),G.command("build:web-components","Automagically build Web Component library for npm/CDN distribution").alias("build:wc").alias("prod:web-components").alias("prod:wc").option("-w, --web-components",J.webComponents,{default:!0}).option("-p, --project [project]",J.project,{default:!1}).option("--verbose",J.verbose,{default:!1}).action(async(X)=>{A2.debug("Running `buddy build:web-components` ...",X),await p1(n1.BuildWebComponentLib,X)}),G.command("build:docs","Automagically build your documentation site.").alias("prod:docs").alias("build:documentation").alias("prod:documentation").option("-d, --docs",J.docs,{default:!0}).option("-p, --project [project]",J.project,{default:!1}).option("--verbose",J.verbose,{default:!1}).action(async(X)=>{A2.debug("Running `buddy build:docs` ...",X),await p1(n1.BuildDocs,X)}),G.command("build:core","Automagically build the Stacks core.").option("-p, --project [project]",J.project,{default:!1}).option("--verbose",J.verbose,{default:!1}).action(async(X)=>{A2.debug("Running `buddy build:core` ...",X);const H=await NJ("buddy build:core"),Z=await p1(n1.BuildCore,X);if(Z.isErr())A2.error("Failed to build the Stacks core.",Z.error),c0.exit();await Y6("Core packages built successfully",{startTime:H,useSeconds:!0})}),G.command("build:desktop",J.desktop).alias("prod:desktop").option("-p, --project [project]",J.project,{default:!1}).option("--verbose",J.verbose,{default:!1}).action(async(X)=>{A2.debug("Running `buddy build:desktop` ...",X);const H=await NJ("buddy build:desktop"),Z=await p1(n1.BuildDesktop,X);if(Z.isErr())await Y6("While running the build:desktop command, there was an issue",{startTime:H,useSeconds:!0},Z.error),c0.exit();console.log(""),await Y6("Exited",{startTime:H,useSeconds:!0}),c0.exit(kJ.Success)}),G.command("build:stacks","Build the Stacks framework.").option("-s, --stacks",J.framework,{default:!0}).option("-p, --project [project]",J.project,{default:!1}).option("--verbose",J.verbose,{default:!1}).action(async(X)=>{A2.debug("Running `buddy build:stacks` ...",X);const H=await NJ("buddy build:stacks"),Z=await p1(n1.BuildStacks,X);if(Z.isErr())A2.error("Failed to build Stacks.",Z.error),c0.exit();await Y6("Stacks built successfully",{startTime:H,useSeconds:!0})}),G.on("build:*",()=>{console.error("Invalid command: %s\nSee --help for a list of available commands.",G.args.join(" ")),c0.exit(1)})}function GF(G){return!G.components&&!G.vueComponents&&!G.webComponents&&!G.elements&&!G.functions&&!G.views&&!G.docs&&!G.stacks&&!G.buddy}import wH from"process";import{runAction as JF}from"@stacksjs/actions";import{intro as XF,log as HF,outro as NH}from"@stacksjs/cli";import{Action as ZF}from"@stacksjs/enums";function VL1(G){const J={changelog:"Create a CHANGELOG.md file",quiet:"Minimal output",dryRun:"Do not write the file, just output the changes",project:"Target a specific project",verbose:"Enable verbose output"};G.command("changelog",J.changelog).option("-q, --quiet",J.quiet,{default:!1}).option("-d, --dry-run",J.dryRun,{default:!1}).option("-p, --project [project]",J.project,{default:!1}).option("--verbose",J.verbose,{default:!1}).action(async(X)=>{HF.debug("Running `buddy changelog` ...",X);const H=await XF("buddy changelog"),Z=await JF(ZF.Changelog,X);if(Z.isErr())await NH("While running the changelog command, there was an issue",{...X,startTime:H,useSeconds:!0},Z.error),wH.exit();await NH("Generated CHANGELOG.md",{...X,startTime:H,useSeconds:!0,type:"success"})}),G.on("changelog:*",()=>{console.log("Invalid command: %s",G.args.join(" ")),console.log("See --help for a list of available commands."),wH.exit(1)})}import EJ from"process";import{runAction as VF}from"@stacksjs/actions";import{intro as QF,log as YF,outro as kH}from"@stacksjs/cli";import{Action as WF}from"@stacksjs/enums";import{ExitCode as EH}from"@stacksjs/types";function BL1(G){const J={clean:"Removes all node_modules & lock files",project:"Target a specific project",verbose:"Enable verbose output"};G.command("clean",J.clean).option("-p, --project [project]",J.project,{default:!1}).option("--verbose",J.verbose,{default:!1}).action(async(X)=>{YF.debug("Running `buddy clean` ...",X);const H=await QF("buddy clean"),Z=await VF(WF.Clean,X);if(Z.isErr())await kH("While running the clean command, there was an issue",{startTime:H,useSeconds:!0},Z.error),EJ.exit(EH.FatalError);await kH("Cleaned up",{startTime:H,useSeconds:!0,message:"Cleaned up"}),EJ.exit(EH.Success)}),G.on("clean:*",()=>{console.error("Invalid command: %s\nSee --help for a list of available commands.",G.args.join(" ")),EJ.exit(1)})}import C1 from"process";var A5=w2(iZ(),1);var _H=w2(W6(),1);function zF(G){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"cloudfront",region:G.region},propertiesExtractor:(J,X)=>({signingProperties:{config:J,context:X}})}}var gH=async(G,J,X)=>{return{operation:OH(J).operation,region:await vH(G.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}},bH=(G)=>{const J=[];switch(G.operation){default:J.push(zF(G))}return J},hH=(G)=>{return{..._H.resolveAwsSdkSigV4Config(G)}};var yH=(G)=>{return{...G,useDualstackEndpoint:G.useDualstackEndpoint??!1,useFipsEndpoint:G.useFipsEndpoint??!1,defaultSigningName:"cloudfront"}},mH={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}};var xH={name:"@aws-sdk/client-cloudfront",description:"AWS SDK for JavaScript Cloudfront Client for Node.js, Browser and React Native",version:"3.668.0",scripts:{build:"concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'","build:cjs":"node ../../scripts/compilation/inline client-cloudfront","build:es":"tsc -p tsconfig.es.json","build:include:deps":"lerna run --scope $npm_package_name --include-dependencies build","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4",clean:"rimraf ./dist-* && rimraf *.tsbuildinfo","extract:docs":"api-extractor run --local","generate:client":"node ../../scripts/generate-clients/single-service --solo cloudfront"},main:"./dist-cjs/index.js",types:"./dist-types/index.d.ts",module:"./dist-es/index.js",sideEffects:!1,dependencies:{"@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/client-sso-oidc":"3.668.0","@aws-sdk/client-sts":"3.668.0","@aws-sdk/core":"3.667.0","@aws-sdk/credential-provider-node":"3.668.0","@aws-sdk/middleware-host-header":"3.667.0","@aws-sdk/middleware-logger":"3.667.0","@aws-sdk/middleware-recursion-detection":"3.667.0","@aws-sdk/middleware-user-agent":"3.668.0","@aws-sdk/region-config-resolver":"3.667.0","@aws-sdk/types":"3.667.0","@aws-sdk/util-endpoints":"3.667.0","@aws-sdk/util-user-agent-browser":"3.667.0","@aws-sdk/util-user-agent-node":"3.668.0","@aws-sdk/xml-builder":"3.662.0","@smithy/config-resolver":"^3.0.9","@smithy/core":"^2.4.8","@smithy/fetch-http-handler":"^3.2.9","@smithy/hash-node":"^3.0.7","@smithy/invalid-dependency":"^3.0.7","@smithy/middleware-content-length":"^3.0.9","@smithy/middleware-endpoint":"^3.1.4","@smithy/middleware-retry":"^3.0.23","@smithy/middleware-serde":"^3.0.7","@smithy/middleware-stack":"^3.0.7","@smithy/node-config-provider":"^3.1.8","@smithy/node-http-handler":"^3.2.4","@smithy/protocol-http":"^4.1.4","@smithy/smithy-client":"^3.4.0","@smithy/types":"^3.5.0","@smithy/url-parser":"^3.0.7","@smithy/util-base64":"^3.0.0","@smithy/util-body-length-browser":"^3.0.0","@smithy/util-body-length-node":"^3.0.0","@smithy/util-defaults-mode-browser":"^3.0.23","@smithy/util-defaults-mode-node":"^3.0.23","@smithy/util-endpoints":"^2.1.3","@smithy/util-middleware":"^3.0.7","@smithy/util-retry":"^3.0.7","@smithy/util-stream":"^3.1.9","@smithy/util-utf8":"^3.0.0","@smithy/util-waiter":"^3.1.6",tslib:"^2.6.2"},devDependencies:{"@tsconfig/node16":"16.1.3","@types/node":"^16.18.96",concurrently:"7.0.0","downlevel-dts":"0.10.1",rimraf:"3.0.2",typescript:"~4.9.5"},engines:{node:">=16.0.0"},typesVersions:{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},files:["dist-*/**"],author:{name:"AWS SDK for JavaScript Team",url:"https://aws.amazon.com/javascript/"},license:"Apache-2.0",browser:{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},homepage:"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-cloudfront",repository:{type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",directory:"clients/client-cloudfront"}};var kZ=w2(W6(),1);var KZ=w2(W6(),1);var lH={["required"]:!1,type:"String"},cH={["required"]:!0,default:!1,type:"Boolean"},aH={["ref"]:"Endpoint"},vJ={["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseFIPS"},!0]},eH={["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseDualStack"},!0]},C2={},rH={["fn"]:"stringEquals",["argv"]:[{["fn"]:"getAttr",["argv"]:[{["ref"]:"PartitionResult"},"name"]},"aws"]},KF={["fn"]:"getAttr",["argv"]:[{["ref"]:"PartitionResult"},"name"]},iH={["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseFIPS"},!1]},OJ={["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseDualStack"},!1]},uH={authSchemes:[{name:"sigv4",signingName:"cloudfront",signingRegion:"us-east-1"}]},dH={["fn"]:"getAttr",["argv"]:[{["ref"]:"PartitionResult"},"supportsFIPS"]},sH={["fn"]:"booleanEquals",["argv"]:[!0,{["fn"]:"getAttr",["argv"]:[{["ref"]:"PartitionResult"},"supportsDualStack"]}]},pH=[vJ],nH=[eH],oH=[{["ref"]:"Region"}],BF={version:"1.0",parameters:{Region:lH,UseDualStack:cH,UseFIPS:cH,Endpoint:lH},rules:[{conditions:[{["fn"]:"isSet",["argv"]:[aH]}],rules:[{conditions:pH,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:"error"},{conditions:nH,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:"error"},{endpoint:{url:aH,properties:C2,headers:C2},type:"endpoint"}],type:"tree"},{conditions:[{["fn"]:"isSet",["argv"]:oH}],rules:[{conditions:[{["fn"]:"aws.partition",["argv"]:oH,assign:"PartitionResult"}],rules:[{conditions:[rH,iH,OJ],endpoint:{url:"https://cloudfront.amazonaws.com",properties:uH,headers:C2},type:"endpoint"},{conditions:[rH,vJ,OJ],endpoint:{url:"https://cloudfront-fips.amazonaws.com",properties:uH,headers:C2},type:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[KF,"aws-cn"]},iH,OJ],endpoint:{url:"https://cloudfront.cn-northwest-1.amazonaws.com.cn",properties:{authSchemes:[{name:"sigv4",signingName:"cloudfront",signingRegion:"cn-northwest-1"}]},headers:C2},type:"endpoint"},{conditions:[vJ,eH],rules:[{conditions:[{["fn"]:"booleanEquals",["argv"]:[!0,dH]},sH],rules:[{endpoint:{url:"https://cloudfront-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:C2,headers:C2},type:"endpoint"}],type:"tree"},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:"error"}],type:"tree"},{conditions:pH,rules:[{conditions:[{["fn"]:"booleanEquals",["argv"]:[dH,!0]}],rules:[{endpoint:{url:"https://cloudfront-fips.{Region}.{PartitionResult#dnsSuffix}",properties:C2,headers:C2},type:"endpoint"}],type:"tree"},{error:"FIPS is enabled but this partition does not support FIPS",type:"error"}],type:"tree"},{conditions:nH,rules:[{conditions:[sH],rules:[{endpoint:{url:"https://cloudfront.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:C2,headers:C2},type:"endpoint"}],type:"tree"},{error:"DualStack is enabled but this partition does not support DualStack",type:"error"}],type:"tree"},{endpoint:{url:"https://cloudfront.{Region}.{PartitionResult#dnsSuffix}",properties:C2,headers:C2},type:"endpoint"}],type:"tree"}],type:"tree"},{error:"Invalid Configuration: Missing Region",type:"error"}]},tH=BF;var $F=new GZ({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),ZZ=(G,J={})=>{return $F.get(G,()=>XZ(tH,{endpointParams:G,logger:J.logger}))};JZ.aws=HZ;var BZ=(G)=>{return{apiVersion:"2020-05-31",base64Decoder:G?.base64Decoder??QZ,base64Encoder:G?.base64Encoder??zZ,disableHostPrefix:G?.disableHostPrefix??!1,endpointProvider:G?.endpointProvider??ZZ,extensions:G?.extensions??[],httpAuthSchemeProvider:G?.httpAuthSchemeProvider??bH,httpAuthSchemes:G?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(J)=>J.getIdentityProvider("aws.auth#sigv4"),signer:new KZ.AwsSdkSigV4Signer}],logger:G?.logger??new UZ,serviceId:G?.serviceId??"CloudFront",urlParser:G?.urlParser??VZ,utf8Decoder:G?.utf8Decoder??YZ,utf8Encoder:G?.utf8Encoder??WZ}};var EZ=(G)=>{fZ(process.version);const J=wZ(G),X=()=>J().then(CZ),H=BZ(G);return kZ.emitWarningIfUnsupportedVersion(process.version),{...H,...G,runtime:"node",defaultsMode:J,bodyLengthChecker:G?.bodyLengthChecker??TZ,credentialDefaultProvider:G?.credentialDefaultProvider??NZ,defaultUserAgentProvider:G?.defaultUserAgentProvider??SZ({serviceId:H.serviceId,clientVersion:xH.version}),maxAttempts:G?.maxAttempts??a0(jZ),region:G?.region??a0(MZ,qZ),requestHandler:IZ.create(G?.requestHandler??X),retryMode:G?.retryMode??a0({...DZ,default:async()=>(await X()).retryMode||FZ}),sha256:G?.sha256??LZ.bind(null,"sha256"),streamCollector:G?.streamCollector??AZ,useDualstackEndpoint:G?.useDualstackEndpoint??a0($Z),useFipsEndpoint:G?.useFipsEndpoint??a0(RZ),userAgentAppId:G?.userAgentAppId??a0(PZ)}};var OZ=(G)=>{const J=G.httpAuthSchemes;let{httpAuthSchemeProvider:X,credentials:H}=G;return{setHttpAuthScheme(Z){const V=J.findIndex((Q)=>Q.schemeId===Z.schemeId);if(V===-1)J.push(Z);else J.splice(V,1,Z)},httpAuthSchemes(){return J},setHttpAuthSchemeProvider(Z){X=Z},httpAuthSchemeProvider(){return X},setCredentials(Z){H=Z},credentials(){return H}}},vZ=(G)=>{return{httpAuthSchemes:G.httpAuthSchemes(),httpAuthSchemeProvider:G.httpAuthSchemeProvider(),credentials:G.credentials()}};var z6=(G)=>G,xZ=(G,J)=>{const X={...z6(yZ(G)),...z6(bZ(G)),...z6(_Z(G)),...z6(OZ(G))};return J.forEach((H)=>H.configure(X)),{...G,...mZ(X),...hZ(X),...gZ(X),...vZ(X)}};class _J extends eZ{constructor(...[G]){const J=EZ(G||{}),X=yH(J),H=uZ(X),Z=oZ(H),V=sZ(Z),Q=lZ(V),Y=nZ(Q),W=hH(Y),z=xZ(W,G?.extensions||[]);super(z);this.config=z,this.middlewareStack.use(dZ(this.config)),this.middlewareStack.use(tZ(this.config)),this.middlewareStack.use(pZ(this.config)),this.middlewareStack.use(cZ(this.config)),this.middlewareStack.use(aZ(this.config)),this.middlewareStack.use(rZ(this.config)),this.middlewareStack.use(A5.getHttpAuthSchemeEndpointRuleSetPlugin(this.config,{httpAuthSchemeParametersProvider:gH,identityProviderConfigProvider:async(B)=>new A5.DefaultIdentityProviderConfig({"aws.auth#sigv4":B.credentials})})),this.middlewareStack.use(A5.getHttpSigningPlugin(this.config))}destroy(){super.destroy()}}var P5=w2(W6(),1);function GV(G){return G.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}function JV(G){return G.replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&apos;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\r/g,"&#x0D;").replace(/\n/g,"&#x0A;").replace(/\u0085/g,"&#x85;").replace(/\u2028/,"&#x2028;")}class gJ{constructor(G){this.value=G}toString(){return JV(""+this.value)}}class u2{static of(G,J,X){const H=new u2(G);if(J!==void 0)H.addChildNode(new gJ(J));if(X!==void 0)H.withName(X);return H}constructor(G,J=[]){this.name=G,this.children=J,this.attributes={}}withName(G){return this.name=G,this}addAttribute(G,J){return this.attributes[G]=J,this}addChildNode(G){return this.children.push(G),this}removeAttribute(G){return delete this.attributes[G],this}n(G){return this.name=G,this}c(G){return this.children.push(G),this}a(G,J){if(J!=null)this.attributes[G]=J;return this}cc(G,J,X=J){if(G[J]!=null){const H=u2.of(J,G[J]).withName(X);this.c(H)}}l(G,J,X,H){if(G[J]!=null)H().map((V)=>{V.withName(X),this.c(V)})}lc(G,J,X,H){if(G[J]!=null){const Z=H(),V=new u2(X);Z.map((Q)=>{V.c(Q)}),this.c(V)}}toString(){const G=Boolean(this.children.length);let J=`<${this.name}`;const X=this.attributes;for(let H of Object.keys(X)){const Z=X[H];if(Z!=null)J+=` ${H}="${GV(""+Z)}"`}return J+=!G?"/>":`>${this.children.map((H)=>H.toString()).join("")}</${this.name}>`}}var zV=w2(iZ(),1);class L extends XV{constructor(G){super(G);Object.setPrototypeOf(this,L.prototype)}}class U6 extends L{constructor(G){super({name:"AccessDenied",$fault:"client",...G});this.name="AccessDenied",this.$fault="client",Object.setPrototypeOf(this,U6.prototype),this.Message=G.Message}}class K6 extends L{constructor(G){super({name:"IllegalUpdate",$fault:"client",...G});this.name="IllegalUpdate",this.$fault="client",Object.setPrototypeOf(this,K6.prototype),this.Message=G.Message}}class B6 extends L{constructor(G){super({name:"InvalidArgument",$fault:"client",...G});this.name="InvalidArgument",this.$fault="client",Object.setPrototypeOf(this,B6.prototype),this.Message=G.Message}}class $6 extends L{constructor(G){super({name:"NoSuchDistribution",$fault:"client",...G});this.name="NoSuchDistribution",this.$fault="client",Object.setPrototypeOf(this,$6.prototype),this.Message=G.Message}}class R6 extends L{constructor(G){super({name:"TooManyDistributionCNAMEs",$fault:"client",...G});this.name="TooManyDistributionCNAMEs",this.$fault="client",Object.setPrototypeOf(this,R6.prototype),this.Message=G.Message}}class M6 extends L{constructor(G){super({name:"BatchTooLarge",$fault:"client",...G});this.name="BatchTooLarge",this.$fault="client",Object.setPrototypeOf(this,M6.prototype),this.Message=G.Message}}class q6 extends L{constructor(G){super({name:"CachePolicyAlreadyExists",$fault:"client",...G});this.name="CachePolicyAlreadyExists",this.$fault="client",Object.setPrototypeOf(this,q6.prototype),this.Message=G.Message}}class F6 extends L{constructor(G){super({name:"CachePolicyInUse",$fault:"client",...G});this.name="CachePolicyInUse",this.$fault="client",Object.setPrototypeOf(this,F6.prototype),this.Message=G.Message}}class j6 extends L{constructor(G){super({name:"CannotChangeImmutablePublicKeyFields",$fault:"client",...G});this.name="CannotChangeImmutablePublicKeyFields",this.$fault="client",Object.setPrototypeOf(this,j6.prototype),this.Message=G.Message}}class D6 extends L{constructor(G){super({name:"CannotDeleteEntityWhileInUse",$fault:"client",...G});this.name="CannotDeleteEntityWhileInUse",this.$fault="client",Object.setPrototypeOf(this,D6.prototype),this.Message=G.Message}}class I6 extends L{constructor(G){super({name:"CNAMEAlreadyExists",$fault:"client",...G});this.name="CNAMEAlreadyExists",this.$fault="client",Object.setPrototypeOf(this,I6.prototype),this.Message=G.Message}}class A6 extends L{constructor(G){super({name:"DistributionAlreadyExists",$fault:"client",...G});this.name="DistributionAlreadyExists",this.$fault="client",Object.setPrototypeOf(this,A6.prototype),this.Message=G.Message}}class C6 extends L{constructor(G){super({name:"IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior",$fault:"client",...G});this.name="IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior",this.$fault="client",Object.setPrototypeOf(this,C6.prototype),this.Message=G.Message}}class f6 extends L{constructor(G){super({name:"InconsistentQuantities",$fault:"client",...G});this.name="InconsistentQuantities",this.$fault="client",Object.setPrototypeOf(this,f6.prototype),this.Message=G.Message}}class S6 extends L{constructor(G){super({name:"InvalidDefaultRootObject",$fault:"client",...G});this.name="InvalidDefaultRootObject",this.$fault="client",Object.setPrototypeOf(this,S6.prototype),this.Message=G.Message}}class P6 extends L{constructor(G){super({name:"InvalidErrorCode",$fault:"client",...G});this.name="InvalidErrorCode",this.$fault="client",Object.setPrototypeOf(this,P6.prototype),this.Message=G.Message}}class L6 extends L{constructor(G){super({name:"InvalidForwardCookies",$fault:"client",...G});this.name="InvalidForwardCookies",this.$fault="client",Object.setPrototypeOf(this,L6.prototype),this.Message=G.Message}}class T6 extends L{constructor(G){super({name:"InvalidFunctionAssociation",$fault:"client",...G});this.name="InvalidFunctionAssociation",this.$fault="client",Object.setPrototypeOf(this,T6.prototype),this.Message=G.Message}}class w6 extends L{constructor(G){super({name:"InvalidGeoRestrictionParameter",$fault:"client",...G});this.name="InvalidGeoRestrictionParameter",this.$fault="client",Object.setPrototypeOf(this,w6.prototype),this.Message=G.Message}}class N6 extends L{constructor(G){super({name:"InvalidHeadersForS3Origin",$fault:"client",...G});this.name="InvalidHeadersForS3Origin",this.$fault="client",Object.setPrototypeOf(this,N6.prototype),this.Message=G.Message}}class k6 extends L{constructor(G){super({name:"InvalidIfMatchVersion",$fault:"client",...G});this.name="InvalidIfMatchVersion",this.$fault="client",Object.setPrototypeOf(this,k6.prototype),this.Message=G.Message}}class E6 extends L{constructor(G){super({name:"InvalidLambdaFunctionAssociation",$fault:"client",...G});this.name="InvalidLambdaFunctionAssociation",this.$fault="client",Object.setPrototypeOf(this,E6.prototype),this.Message=G.Message}}class O6 extends L{constructor(G){super({name:"InvalidLocationCode",$fault:"client",...G});this.name="InvalidLocationCode",this.$fault="client",Object.setPrototypeOf(this,O6.prototype),this.Message=G.Message}}class v6 extends L{constructor(G){super({name:"InvalidMinimumProtocolVersion",$fault:"client",...G});this.name="InvalidMinimumProtocolVersion",this.$fault="client",Object.setPrototypeOf(this,v6.prototype),this.Message=G.Message}}class _6 extends L{constructor(G){super({name:"InvalidOrigin",$fault:"client",...G});this.name="InvalidOrigin",this.$fault="client",Object.setPrototypeOf(this,_6.prototype),this.Message=G.Message}}class g6 extends L{constructor(G){super({name:"InvalidOriginAccessControl",$fault:"client",...G});this.name="InvalidOriginAccessControl",this.$fault="client",Object.setPrototypeOf(this,g6.prototype),this.Message=G.Message}}class b6 extends L{constructor(G){super({name:"InvalidOriginAccessIdentity",$fault:"client",...G});this.name="InvalidOriginAccessIdentity",this.$fault="client",Object.setPrototypeOf(this,b6.prototype),this.Message=G.Message}}class h6 extends L{constructor(G){super({name:"InvalidOriginKeepaliveTimeout",$fault:"client",...G});this.name="InvalidOriginKeepaliveTimeout",this.$fault="client",Object.setPrototypeOf(this,h6.prototype),this.Message=G.Message}}class y6 extends L{constructor(G){super({name:"InvalidOriginReadTimeout",$fault:"client",...G});this.name="InvalidOriginReadTimeout",this.$fault="client",Object.setPrototypeOf(this,y6.prototype),this.Message=G.Message}}class m6 extends L{constructor(G){super({name:"InvalidProtocolSettings",$fault:"client",...G});this.name="InvalidProtocolSettings",this.$fault="client",Object.setPrototypeOf(this,m6.prototype),this.Message=G.Message}}class x6 extends L{constructor(G){super({name:"InvalidQueryStringParameters",$fault:"client",...G});this.name="InvalidQueryStringParameters",this.$fault="client",Object.setPrototypeOf(this,x6.prototype),this.Message=G.Message}}class l6 extends L{constructor(G){super({name:"InvalidRelativePath",$fault:"client",...G});this.name="InvalidRelativePath",this.$fault="client",Object.setPrototypeOf(this,l6.prototype),this.Message=G.Message}}class c6 extends L{constructor(G){super({name:"InvalidRequiredProtocol",$fault:"client",...G});this.name="InvalidRequiredProtocol",this.$fault="client",Object.setPrototypeOf(this,c6.prototype),this.Message=G.Message}}class a6 extends L{constructor(G){super({name:"InvalidResponseCode",$fault:"client",...G});this.name="InvalidResponseCode",this.$fault="client",Object.setPrototypeOf(this,a6.prototype),this.Message=G.Message}}class r6 extends L{constructor(G){super({name:"InvalidTTLOrder",$fault:"client",...G});this.name="InvalidTTLOrder",this.$fault="client",Object.setPrototypeOf(this,r6.prototype),this.Message=G.Message}}class i6 extends L{constructor(G){super({name:"InvalidViewerCertificate",$fault:"client",...G});this.name="InvalidViewerCertificate",this.$fault="client",Object.setPrototypeOf(this,i6.prototype),this.Message=G.Message}}class u6 extends L{constructor(G){super({name:"InvalidWebACLId",$fault:"client",...G});this.name="InvalidWebACLId",this.$fault="client",Object.setPrototypeOf(this,u6.prototype),this.Message=G.Message}}class d6 extends L{constructor(G){super({name:"MissingBody",$fault:"client",...G});this.name="MissingBody",this.$fault="client",Object.setPrototypeOf(this,d6.prototype),this.Message=G.Message}}class s6 extends L{constructor(G){super({name:"NoSuchCachePolicy",$fault:"client",...G});this.name="NoSuchCachePolicy",this.$fault="client",Object.setPrototypeOf(this,s6.prototype),this.Message=G.Message}}class p6 extends L{constructor(G){super({name:"NoSuchFieldLevelEncryptionConfig",$fault:"client",...G});this.name="NoSuchFieldLevelEncryptionConfig",this.$fault="client",Object.setPrototypeOf(this,p6.prototype),this.Message=G.Message}}class n6 extends L{constructor(G){super({name:"NoSuchOrigin",$fault:"client",...G});this.name="NoSuchOrigin",this.$fault="client",Object.setPrototypeOf(this,n6.prototype),this.Message=G.Message}}class o6 extends L{constructor(G){super({name:"NoSuchOriginRequestPolicy",$fault:"client",...G});this.name="NoSuchOriginRequestPolicy",this.$fault="client",Object.setPrototypeOf(this,o6.prototype),this.Message=G.Message}}class e6 extends L{constructor(G){super({name:"NoSuchRealtimeLogConfig",$fault:"client",...G});this.name="NoSuchRealtimeLogConfig",this.$fault="client",Object.setPrototypeOf(this,e6.prototype),this.Message=G.Message}}class t6 extends L{constructor(G){super({name:"NoSuchResponseHeadersPolicy",$fault:"client",...G});this.name="NoSuchResponseHeadersPolicy",this.$fault="client",Object.setPrototypeOf(this,t6.prototype),this.Message=G.Message}}class G8 extends L{constructor(G){super({name:"PreconditionFailed",$fault:"client",...G});this.name="PreconditionFailed",this.$fault="client",Object.setPrototypeOf(this,G8.prototype),this.Message=G.Message}}class J8 extends L{constructor(G){super({name:"RealtimeLogConfigOwnerMismatch",$fault:"client",...G});this.name="RealtimeLogConfigOwnerMismatch",this.$fault="client",Object.setPrototypeOf(this,J8.prototype),this.Message=G.Message}}class X8 extends L{constructor(G){super({name:"TooManyCacheBehaviors",$fault:"client",...G});this.name="TooManyCacheBehaviors",this.$fault="client",Object.setPrototypeOf(this,X8.prototype),this.Message=G.Message}}class H8 extends L{constructor(G){super({name:"TooManyCertificates",$fault:"client",...G});this.name="TooManyCertificates",this.$fault="client",Object.setPrototypeOf(this,H8.prototype),this.Message=G.Message}}class Z8 extends L{constructor(G){super({name:"TooManyCookieNamesInWhiteList",$fault:"client",...G});this.name="TooManyCookieNamesInWhiteList",this.$fault="client",Object.setPrototypeOf(this,Z8.prototype),this.Message=G.Message}}class V8 extends L{constructor(G){super({name:"TooManyDistributions",$fault:"client",...G});this.name="TooManyDistributions",this.$fault="client",Object.setPrototypeOf(this,V8.prototype),this.Message=G.Message}}class Q8 extends L{constructor(G){super({name:"TooManyDistributionsAssociatedToCachePolicy",$fault:"client",...G});this.name="TooManyDistributionsAssociatedToCachePolicy",this.$fault="client",Object.setPrototypeOf(this,Q8.prototype),this.Message=G.Message}}class Y8 extends L{constructor(G){super({name:"TooManyDistributionsAssociatedToFieldLevelEncryptionConfig",$fault:"client",...G});this.name="TooManyDistributionsAssociatedToFieldLevelEncryptionConfig",this.$fault="client",Object.setPrototypeOf(this,Y8.prototype),this.Message=G.Message}}class W8 extends L{constructor(G){super({name:"TooManyDistributionsAssociatedToKeyGroup",$fault:"client",...G});this.name="TooManyDistributionsAssociatedToKeyGroup",this.$fault="client",Object.setPrototypeOf(this,W8.prototype),this.Message=G.Message}}class z8 extends L{constructor(G){super({name:"TooManyDistributionsAssociatedToOriginAccessControl",$fault:"client",...G});this.name="TooManyDistributionsAssociatedToOriginAccessControl",this.$fault="client",Object.setPrototypeOf(this,z8.prototype),this.Message=G.Message}}class U8 extends L{constructor(G){super({name:"TooManyDistributionsAssociatedToOriginRequestPolicy",$fault:"client",...G});this.name="TooManyDistributionsAssociatedToOriginRequestPolicy",this.$fault="client",Object.setPrototypeOf(this,U8.prototype),this.Message=G.Message}}class K8 extends L{constructor(G){super({name:"TooManyDistributionsAssociatedToResponseHeadersPolicy",$fault:"client",...G});this.name="TooManyDistributionsAssociatedToResponseHeadersPolicy",this.$fault="client",Object.setPrototypeOf(this,K8.prototype),this.Message=G.Message}}class B8 extends L{constructor(G){super({name:"TooManyDistributionsWithFunctionAssociations",$fault:"client",...G});this.name="TooManyDistributionsWithFunctionAssociations",this.$fault="client",Object.setPrototypeOf(this,B8.prototype),this.Message=G.Message}}class $8 extends L{constructor(G){super({name:"TooManyDistributionsWithLambdaAssociations",$fault:"client",...G});this.name="TooManyDistributionsWithLambdaAssociations",this.$fault="client",Object.setPrototypeOf(this,$8.prototype),this.Message=G.Message}}class R8 extends L{constructor(G){super({name:"TooManyDistributionsWithSingleFunctionARN",$fault:"client",...G});this.name="TooManyDistributionsWithSingleFunctionARN",this.$fault="client",Object.setPrototypeOf(this,R8.prototype),this.Message=G.Message}}class M8 extends L{constructor(G){super({name:"TooManyFunctionAssociations",$fault:"client",...G});this.name="TooManyFunctionAssociations",this.$fault="client",Object.setPrototypeOf(this,M8.prototype),this.Message=G.Message}}class q8 extends L{constructor(G){super({name:"TooManyHeadersInForwardedValues",$fault:"client",...G});this.name="TooManyHeadersInForwardedValues",this.$fault="client",Object.setPrototypeOf(this,q8.prototype),this.Message=G.Message}}class F8 extends L{constructor(G){super({name:"TooManyKeyGroupsAssociatedToDistribution",$fault:"client",...G});this.name="TooManyKeyGroupsAssociatedToDistribution",this.$fault="client",Object.setPrototypeOf(this,F8.prototype),this.Message=G.Message}}class j8 extends L{constructor(G){super({name:"TooManyLambdaFunctionAssociations",$fault:"client",...G});this.name="TooManyLambdaFunctionAssociations",this.$fault="client",Object.setPrototypeOf(this,j8.prototype),this.Message=G.Message}}class D8 extends L{constructor(G){super({name:"TooManyOriginCustomHeaders",$fault:"client",...G});this.name="TooManyOriginCustomHeaders",this.$fault="client",Object.setPrototypeOf(this,D8.prototype),this.Message=G.Message}}class I8 extends L{constructor(G){super({name:"TooManyOriginGroupsPerDistribution",$fault:"client",...G});this.name="TooManyOriginGroupsPerDistribution",this.$fault="client",Object.setPrototypeOf(this,I8.prototype),this.Message=G.Message}}class A8 extends L{constructor(G){super({name:"TooManyOrigins",$fault:"client",...G});this.name="TooManyOrigins",this.$fault="client",Object.setPrototypeOf(this,A8.prototype),this.Message=G.Message}}class C8 extends L{constructor(G){super({name:"TooManyQueryStringParameters",$fault:"client",...G});this.name="TooManyQueryStringParameters",this.$fault="client",Object.setPrototypeOf(this,C8.prototype),this.Message=G.Message}}class f8 extends L{constructor(G){super({name:"TooManyTrustedSigners",$fault:"client",...G});this.name="TooManyTrustedSigners",this.$fault="client",Object.setPrototypeOf(this,f8.prototype),this.Message=G.Message}}class S8 extends L{constructor(G){super({name:"TrustedKeyGroupDoesNotExist",$fault:"client",...G});this.name="TrustedKeyGroupDoesNotExist",this.$fault="client",Object.setPrototypeOf(this,S8.prototype),this.Message=G.Message}}class P8 extends L{constructor(G){super({name:"TrustedSignerDoesNotExist",$fault:"client",...G});this.name="TrustedSignerDoesNotExist",this.$fault="client",Object.setPrototypeOf(this,P8.prototype),this.Message=G.Message}}class L8 extends L{constructor(G){super({name:"TooManyCachePolicies",$fault:"client",...G});this.name="TooManyCachePolicies",this.$fault="client",Object.setPrototypeOf(this,L8.prototype),this.Message=G.Message}}class T8 extends L{constructor(G){super({name:"TooManyCookiesInCachePolicy",$fault:"client",...G});this.name="TooManyCookiesInCachePolicy",this.$fault="client",Object.setPrototypeOf(this,T8.prototype),this.Message=G.Message}}class w8 extends L{constructor(G){super({name:"TooManyHeadersInCachePolicy",$fault:"client",...G});this.name="TooManyHeadersInCachePolicy",this.$fault="client",Object.setPrototypeOf(this,w8.prototype),this.Message=G.Message}}class N8 extends L{constructor(G){super({name:"TooManyQueryStringsInCachePolicy",$fault:"client",...G});this.name="TooManyQueryStringsInCachePolicy",this.$fault="client",Object.setPrototypeOf(this,N8.prototype),this.Message=G.Message}}class k8 extends L{constructor(G){super({name:"CloudFrontOriginAccessIdentityAlreadyExists",$fault:"client",...G});this.name="CloudFrontOriginAccessIdentityAlreadyExists",this.$fault="client",Object.setPrototypeOf(this,k8.prototype),this.Message=G.Message}}class E8 extends L{constructor(G){super({name:"TooManyCloudFrontOriginAccessIdentities",$fault:"client",...G});this.name="TooManyCloudFrontOriginAccessIdentities",this.$fault="client",Object.setPrototypeOf(this,E8.prototype),this.Message=G.Message}}class O8 extends L{constructor(G){super({name:"ContinuousDeploymentPolicyAlreadyExists",$fault:"client",...G});this.name="ContinuousDeploymentPolicyAlreadyExists",this.$fault="client",Object.setPrototypeOf(this,O8.prototype),this.Message=G.Message}}class v8 extends L{constructor(G){super({name:"StagingDistributionInUse",$fault:"client",...G});this.name="StagingDistributionInUse",this.$fault="client",Object.setPrototypeOf(this,v8.prototype),this.Message=G.Message}}class _8 extends L{constructor(G){super({name:"TooManyContinuousDeploymentPolicies",$fault:"client",...G});this.name="TooManyContinuousDeploymentPolicies",this.$fault="client",Object.setPrototypeOf(this,_8.prototype),this.Message=G.Message}}class g8 extends L{constructor(G){super({name:"ContinuousDeploymentPolicyInUse",$fault:"client",...G});this.name="ContinuousDeploymentPolicyInUse",this.$fault="client",Object.setPrototypeOf(this,g8.prototype),this.Message=G.Message}}class b8 extends L{constructor(G){super({name:"IllegalOriginAccessConfiguration",$fault:"client",...G});this.name="IllegalOriginAccessConfiguration",this.$fault="client",Object.setPrototypeOf(this,b8.prototype),this.Message=G.Message}}class h8 extends L{constructor(G){super({name:"InvalidDomainNameForOriginAccessControl",$fault:"client",...G});this.name="InvalidDomainNameForOriginAccessControl",this.$fault="client",Object.setPrototypeOf(this,h8.prototype),this.Message=G.Message}}class y8 extends L{constructor(G){super({name:"NoSuchContinuousDeploymentPolicy",$fault:"client",...G});this.name="NoSuchContinuousDeploymentPolicy",this.$fault="client",Object.setPrototypeOf(this,y8.prototype),this.Message=G.Message}}class m8 extends L{constructor(G){super({name:"InvalidTagging",$fault:"client",...G});this.name="InvalidTagging",this.$fault="client",Object.setPrototypeOf(this,m8.prototype),this.Message=G.Message}}class x8 extends L{constructor(G){super({name:"FieldLevelEncryptionConfigAlreadyExists",$fault:"client",...G});this.name="FieldLevelEncryptionConfigAlreadyExists",this.$fault="client",Object.setPrototypeOf(this,x8.prototype),this.Message=G.Message}}class l8 extends L{constructor(G){super({name:"NoSuchFieldLevelEncryptionProfile",$fault:"client",...G});this.name="NoSuchFieldLevelEncryptionProfile",this.$fault="client",Object.setPrototypeOf(this,l8.prototype),this.Message=G.Message}}class c8 extends L{constructor(G){super({name:"QueryArgProfileEmpty",$fault:"client",...G});this.name="QueryArgProfileEmpty",this.$fault="client",Object.setPrototypeOf(this,c8.prototype),this.Message=G.Message}}class a8 extends L{constructor(G){super({name:"TooManyFieldLevelEncryptionConfigs",$fault:"client",...G});this.name="TooManyFieldLevelEncryptionConfigs",this.$fault="client",Object.setPrototypeOf(this,a8.prototype),this.Message=G.Message}}class r8 extends L{constructor(G){super({name:"TooManyFieldLevelEncryptionContentTypeProfiles",$fault:"client",...G});this.name="TooManyFieldLevelEncryptionContentTypeProfiles",this.$fault="client",Object.setPrototypeOf(this,r8.prototype),this.Message=G.Message}}class i8 extends L{constructor(G){super({name:"TooManyFieldLevelEncryptionQueryArgProfiles",$fault:"client",...G});this.name="TooManyFieldLevelEncryptionQueryArgProfiles",this.$fault="client",Object.setPrototypeOf(this,i8.prototype),this.Message=G.Message}}class u8 extends L{constructor(G){super({name:"FieldLevelEncryptionProfileAlreadyExists",$fault:"client",...G});this.name="FieldLevelEncryptionProfileAlreadyExists",this.$fault="client",Object.setPrototypeOf(this,u8.prototype),this.Message=G.Message}}class d8 extends L{constructor(G){super({name:"FieldLevelEncryptionProfileSizeExceeded",$fault:"client",...G});this.name="FieldLevelEncryptionProfileSizeExceeded",this.$fault="client",Object.setPrototypeOf(this,d8.prototype),this.Message=G.Message}}class s8 extends L{constructor(G){super({name:"NoSuchPublicKey",$fault:"client",...G});this.name="NoSuchPublicKey",this.$fault="client",Object.setPrototypeOf(this,s8.prototype),this.Message=G.Message}}class p8 extends L{constructor(G){super({name:"TooManyFieldLevelEncryptionEncryptionEntities",$fault:"client",...G});this.name="TooManyFieldLevelEncryptionEncryptionEntities",this.$fault="client",Object.setPrototypeOf(this,p8.prototype),this.Message=G.Message}}class n8 extends L{constructor(G){super({name:"TooManyFieldLevelEncryptionFieldPatterns",$fault:"client",...G});this.name="TooManyFieldLevelEncryptionFieldPatterns",this.$fault="client",Object.setPrototypeOf(this,n8.prototype),this.Message=G.Message}}class o8 extends L{constructor(G){super({name:"TooManyFieldLevelEncryptionProfiles",$fault:"client",...G});this.name="TooManyFieldLevelEncryptionProfiles",this.$fault="client",Object.setPrototypeOf(this,o8.prototype),this.Message=G.Message}}class e8 extends L{constructor(G){super({name:"FunctionAlreadyExists",$fault:"client",...G});this.name="FunctionAlreadyExists",this.$fault="client",Object.setPrototypeOf(this,e8.prototype),this.Message=G.Message}}class t8 extends L{constructor(G){super({name:"FunctionSizeLimitExceeded",$fault:"client",...G});this.name="FunctionSizeLimitExceeded",this.$fault="client",Object.setPrototypeOf(this,t8.prototype),this.Message=G.Message}}class G4 extends L{constructor(G){super({name:"TooManyFunctions",$fault:"client",...G});this.name="TooManyFunctions",this.$fault="client",Object.setPrototypeOf(this,G4.prototype),this.Message=G.Message}}class J4 extends L{constructor(G){super({name:"UnsupportedOperation",$fault:"client",...G});this.name="UnsupportedOperation",this.$fault="client",Object.setPrototypeOf(this,J4.prototype),this.Message=G.Message}}class X4 extends L{constructor(G){super({name:"TooManyInvalidationsInProgress",$fault:"client",...G});this.name="TooManyInvalidationsInProgress",this.$fault="client",Object.setPrototypeOf(this,X4.prototype),this.Message=G.Message}}class H4 extends L{constructor(G){super({name:"KeyGroupAlreadyExists",$fault:"client",...G});this.name="KeyGroupAlreadyExists",this.$fault="client",Object.setPrototypeOf(this,H4.prototype),this.Message=G.Message}}class Z4 extends L{constructor(G){super({name:"TooManyKeyGroups",$fault:"client",...G});this.name="TooManyKeyGroups",this.$fault="client",Object.setPrototypeOf(this,Z4.prototype),this.Message=G.Message}}class V4 extends L{constructor(G){super({name:"TooManyPublicKeysInKeyGroup",$fault:"client",...G});this.name="TooManyPublicKeysInKeyGroup",this.$fault="client",Object.setPrototypeOf(this,V4.prototype),this.Message=G.Message}}class Q4 extends L{constructor(G){super({name:"EntityAlreadyExists",$fault:"client",...G});this.name="EntityAlreadyExists",this.$fault="client",Object.setPrototypeOf(this,Q4.prototype),this.Message=G.Message}}class Y4 extends L{constructor(G){super({name:"EntityLimitExceeded",$fault:"client",...G});this.name="EntityLimitExceeded",this.$fault="client",Object.setPrototypeOf(this,Y4.prototype),this.Message=G.Message}}class W4 extends L{constructor(G){super({name:"EntitySizeLimitExceeded",$fault:"client",...G});this.name="EntitySizeLimitExceeded",this.$fault="client",Object.setPrototypeOf(this,W4.prototype),this.Message=G.Message}}class z4 extends L{constructor(G){super({name:"MonitoringSubscriptionAlreadyExists",$fault:"client",...G});this.name="MonitoringSubscriptionAlreadyExists",this.$fault="client",Object.setPrototypeOf(this,z4.prototype),this.Message=G.Message}}class U4 extends L{constructor(G){super({name:"OriginAccessControlAlreadyExists",$fault:"client",...G});this.name="OriginAccessControlAlreadyExists",this.$fault="client",Object.setPrototypeOf(this,U4.prototype),this.Message=G.Message}}class K4 extends L{constructor(G){super({name:"TooManyOriginAccessControls",$fault:"client",...G});this.name="TooManyOriginAccessControls",this.$fault="client",Object.setPrototypeOf(this,K4.prototype),this.Message=G.Message}}class B4 extends L{constructor(G){super({name:"OriginRequestPolicyAlreadyExists",$fault:"client",...G});this.name="OriginRequestPolicyAlreadyExists",this.$fault="client",Object.setPrototypeOf(this,B4.prototype),this.Message=G.Message}}class $4 extends L{constructor(G){super({name:"TooManyCookiesInOriginRequestPolicy",$fault:"client",...G});this.name="TooManyCookiesInOriginRequestPolicy",this.$fault="client",Object.setPrototypeOf(this,$4.prototype),this.Message=G.Message}}class R4 extends L{constructor(G){super({name:"TooManyHeadersInOriginRequestPolicy",$fault:"client",...G});this.name="TooManyHeadersInOriginRequestPolicy",this.$fault="client",Object.setPrototypeOf(this,R4.prototype),this.Message=G.Message}}class M4 extends L{constructor(G){super({name:"TooManyOriginRequestPolicies",$fault:"client",...G});this.name="TooManyOriginRequestPolicies",this.$fault="client",Object.setPrototypeOf(this,M4.prototype),this.Message=G.Message}}class q4 extends L{constructor(G){super({name:"TooManyQueryStringsInOriginRequestPolicy",$fault:"client",...G});this.name="TooManyQueryStringsInOriginRequestPolicy",this.$fault="client",Object.setPrototypeOf(this,q4.prototype),this.Message=G.Message}}class F4 extends L{constructor(G){super({name:"PublicKeyAlreadyExists",$fault:"client",...G});this.name="PublicKeyAlreadyExists",this.$fault="client",Object.setPrototypeOf(this,F4.prototype),this.Message=G.Message}}class j4 extends L{constructor(G){super({name:"TooManyPublicKeys",$fault:"client",...G});this.name="TooManyPublicKeys",this.$fault="client",Object.setPrototypeOf(this,j4.prototype),this.Message=G.Message}}class D4 extends L{constructor(G){super({name:"RealtimeLogConfigAlreadyExists",$fault:"client",...G});this.name="RealtimeLogConfigAlreadyExists",this.$fault="client",Object.setPrototypeOf(this,D4.prototype),this.Message=G.Message}}class I4 extends L{constructor(G){super({name:"TooManyRealtimeLogConfigs",$fault:"client",...G});this.name="TooManyRealtimeLogConfigs",this.$fault="client",Object.setPrototypeOf(this,I4.prototype),this.Message=G.Message}}class A4 extends L{constructor(G){super({name:"ResponseHeadersPolicyAlreadyExists",$fault:"client",...G});this.name="ResponseHeadersPolicyAlreadyExists",this.$fault="client",Object.setPrototypeOf(this,A4.prototype),this.Message=G.Message}}class C4 extends L{constructor(G){super({name:"TooLongCSPInResponseHeadersPolicy",$fault:"client",...G});this.name="TooLongCSPInResponseHeadersPolicy",this.$fault="client",Object.setPrototypeOf(this,C4.prototype),this.Message=G.Message}}class f4 extends L{constructor(G){super({name:"TooManyCustomHeadersInResponseHeadersPolicy",$fault:"client",...G});this.name="TooManyCustomHeadersInResponseHeadersPolicy",this.$fault="client",Object.setPrototypeOf(this,f4.prototype),this.Message=G.Message}}class S4 extends L{constructor(G){super({name:"TooManyRemoveHeadersInResponseHeadersPolicy",$fault:"client",...G});this.name="TooManyRemoveHeadersInResponseHeadersPolicy",this.$fault="client",Object.setPrototypeOf(this,S4.prototype),this.Message=G.Message}}class P4 extends L{constructor(G){super({name:"TooManyResponseHeadersPolicies",$fault:"client",...G});this.name="TooManyResponseHeadersPolicies",this.$fault="client",Object.setPrototypeOf(this,P4.prototype),this.Message=G.Message}}class L4 extends L{constructor(G){super({name:"StreamingDistributionAlreadyExists",$fault:"client",...G});this.name="StreamingDistributionAlreadyExists",this.$fault="client",Object.setPrototypeOf(this,L4.prototype),this.Message=G.Message}}class T4 extends L{constructor(G){super({name:"TooManyStreamingDistributionCNAMEs",$fault:"client",...G});this.name="TooManyStreamingDistributionCNAMEs",this.$fault="client",Object.setPrototypeOf(this,T4.prototype),this.Message=G.Message}}class w4 extends L{constructor(G){super({name:"TooManyStreamingDistributions",$fault:"client",...G});this.name="TooManyStreamingDistributions",this.$fault="client",Object.setPrototypeOf(this,w4.prototype),this.Message=G.Message}}class N4 extends L{constructor(G){super({name:"IllegalDelete",$fault:"client",...G});this.name="IllegalDelete",this.$fault="client",Object.setPrototypeOf(this,N4.prototype),this.Message=G.Message}}class k4 extends L{constructor(G){super({name:"CloudFrontOriginAccessIdentityInUse",$fault:"client",...G});this.name="CloudFrontOriginAccessIdentityInUse",this.$fault="client",Object.setPrototypeOf(this,k4.prototype),this.Message=G.Message}}class E4 extends L{constructor(G){super({name:"NoSuchCloudFrontOriginAccessIdentity",$fault:"client",...G});this.name="NoSuchCloudFrontOriginAccessIdentity",this.$fault="client",Object.setPrototypeOf(this,E4.prototype),this.Message=G.Message}}class O4 extends L{constructor(G){super({name:"DistributionNotDisabled",$fault:"client",...G});this.name="DistributionNotDisabled",this.$fault="client",Object.setPrototypeOf(this,O4.prototype),this.Message=G.Message}}class v4 extends L{constructor(G){super({name:"FieldLevelEncryptionConfigInUse",$fault:"client",...G});this.name="FieldLevelEncryptionConfigInUse",this.$fault="client",Object.setPrototypeOf(this,v4.prototype),this.Message=G.Message}}class _4 extends L{constructor(G){super({name:"FieldLevelEncryptionProfileInUse",$fault:"client",...G});this.name="FieldLevelEncryptionProfileInUse",this.$fault="client",Object.setPrototypeOf(this,_4.prototype),this.Message=G.Message}}class g4 extends L{constructor(G){super({name:"FunctionInUse",$fault:"client",...G});this.name="FunctionInUse",this.$fault="client",Object.setPrototypeOf(this,g4.prototype),this.Message=G.Message}}class b4 extends L{constructor(G){super({name:"NoSuchFunctionExists",$fault:"client",...G});this.name="NoSuchFunctionExists",this.$fault="client",Object.setPrototypeOf(this,b4.prototype),this.Message=G.Message}}class h4 extends L{constructor(G){super({name:"NoSuchResource",$fault:"client",...G});this.name="NoSuchResource",this.$fault="client",Object.setPrototypeOf(this,h4.prototype),this.Message=G.Message}}class y4 extends L{constructor(G){super({name:"ResourceInUse",$fault:"client",...G});this.name="ResourceInUse",this.$fault="client",Object.setPrototypeOf(this,y4.prototype),this.Message=G.Message}}class m4 extends L{constructor(G){super({name:"EntityNotFound",$fault:"client",...G});this.name="EntityNotFound",this.$fault="client",Object.setPrototypeOf(this,m4.prototype),this.Message=G.Message}}class x4 extends L{constructor(G){super({name:"NoSuchMonitoringSubscription",$fault:"client",...G});this.name="NoSuchMonitoringSubscription",this.$fault="client",Object.setPrototypeOf(this,x4.prototype),this.Message=G.Message}}class l4 extends L{constructor(G){super({name:"NoSuchOriginAccessControl",$fault:"client",...G});this.name="NoSuchOriginAccessControl",this.$fault="client",Object.setPrototypeOf(this,l4.prototype),this.Message=G.Message}}class c4 extends L{constructor(G){super({name:"OriginAccessControlInUse",$fault:"client",...G});this.name="OriginAccessControlInUse",this.$fault="client",Object.setPrototypeOf(this,c4.prototype),this.Message=G.Message}}class a4 extends L{constructor(G){super({name:"OriginRequestPolicyInUse",$fault:"client",...G});this.name="OriginRequestPolicyInUse",this.$fault="client",Object.setPrototypeOf(this,a4.prototype),this.Message=G.Message}}class r4 extends L{constructor(G){super({name:"PublicKeyInUse",$fault:"client",...G});this.name="PublicKeyInUse",this.$fault="client",Object.setPrototypeOf(this,r4.prototype),this.Message=G.Message}}class i4 extends L{constructor(G){super({name:"RealtimeLogConfigInUse",$fault:"client",...G});this.name="RealtimeLogConfigInUse",this.$fault="client",Object.setPrototypeOf(this,i4.prototype),this.Message=G.Message}}class u4 extends L{constructor(G){super({name:"ResponseHeadersPolicyInUse",$fault:"client",...G});this.name="ResponseHeadersPolicyInUse",this.$fault="client",Object.setPrototypeOf(this,u4.prototype),this.Message=G.Message}}class d4 extends L{constructor(G){super({name:"NoSuchStreamingDistribution",$fault:"client",...G});this.name="NoSuchStreamingDistribution",this.$fault="client",Object.setPrototypeOf(this,d4.prototype),this.Message=G.Message}}class s4 extends L{constructor(G){super({name:"StreamingDistributionNotDisabled",$fault:"client",...G});this.name="StreamingDistributionNotDisabled",this.$fault="client",Object.setPrototypeOf(this,s4.prototype),this.Message=G.Message}}class p4 extends L{constructor(G){super({name:"NoSuchInvalidation",$fault:"client",...G});this.name="NoSuchInvalidation",this.$fault="client",Object.setPrototypeOf(this,p4.prototype),this.Message=G.Message}}class n4 extends L{constructor(G){super({name:"TestFunctionFailed",$fault:"server",...G});this.name="TestFunctionFailed",this.$fault="server",Object.setPrototypeOf(this,n4.prototype),this.Message=G.Message}}var UV=async(G,J)=>{const X=zV.requestBuilder(G,J),H={"content-type":"application/xml"};X.bp("/2020-05-31/distribution/{DistributionId}/invalidation"),X.p("DistributionId",()=>G.DistributionId,"{DistributionId}",!1);let Z,V;if(G.InvalidationBatch!==void 0)V=ZI(G.InvalidationBatch,J),Z=RI,V.a("xmlns","http://cloudfront.amazonaws.com/doc/2020-05-31/"),Z+=V.toString();return X.m("POST").h(H).b(Z),X.build()};var KV=async(G,J)=>{if(G.statusCode!==201&&G.statusCode>=300)return MF(G,J);const X=N({$metadata:E(G),[KI]:[,G.headers[$I]]}),H=ZV(await P5.parseXmlBody(G.body,J));return X.Invalidation=YI(H,J),X};var MF=async(G,J)=>{const X={...G,body:await P5.parseXmlErrorBody(G.body,J)},H=P5.loadRestXmlErrorCode(G,X.body);switch(H){case"AccessDenied":case"com.amazonaws.cloudfront#AccessDenied":throw await FF(X,J);case"IllegalUpdate":case"com.amazonaws.cloudfront#IllegalUpdate":throw await iF(X,J);case"InvalidArgument":case"com.amazonaws.cloudfront#InvalidArgument":throw await dF(X,J);case"NoSuchDistribution":case"com.amazonaws.cloudfront#NoSuchDistribution":throw await Pj(X,J);case"TooManyDistributionCNAMEs":case"com.amazonaws.cloudfront#TooManyDistributionCNAMEs":throw await $D(X,J);case"CNAMEAlreadyExists":case"com.amazonaws.cloudfront#CNAMEAlreadyExists":throw await PF(X,J);case"DistributionAlreadyExists":case"com.amazonaws.cloudfront#DistributionAlreadyExists":throw await wF(X,J);case"IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior":case"com.amazonaws.cloudfront#IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior":throw await aF(X,J);case"InconsistentQuantities":case"com.amazonaws.cloudfront#InconsistentQuantities":throw await uF(X,J);case"InvalidDefaultRootObject":case"com.amazonaws.cloudfront#InvalidDefaultRootObject":throw await sF(X,J);case"InvalidErrorCode":case"com.amazonaws.cloudfront#InvalidErrorCode":throw await nF(X,J);case"InvalidForwardCookies":case"com.amazonaws.cloudfront#InvalidForwardCookies":throw await oF(X,J);case"InvalidFunctionAssociation":case"com.amazonaws.cloudfront#InvalidFunctionAssociation":throw await eF(X,J);case"InvalidGeoRestrictionParameter":case"com.amazonaws.cloudfront#InvalidGeoRestrictionParameter":throw await tF(X,J);case"InvalidHeadersForS3Origin":case"com.amazonaws.cloudfront#InvalidHeadersForS3Origin":throw await Gj(X,J);case"InvalidIfMatchVersion":case"com.amazonaws.cloudfront#InvalidIfMatchVersion":throw await Jj(X,J);case"InvalidLambdaFunctionAssociation":case"com.amazonaws.cloudfront#InvalidLambdaFunctionAssociation":throw await Xj(X,J);case"InvalidLocationCode":case"com.amazonaws.cloudfront#InvalidLocationCode":throw await Hj(X,J);case"InvalidMinimumProtocolVersion":case"com.amazonaws.cloudfront#InvalidMinimumProtocolVersion":throw await Zj(X,J);case"InvalidOrigin":case"com.amazonaws.cloudfront#InvalidOrigin":throw await Vj(X,J);case"InvalidOriginAccessControl":case"com.amazonaws.cloudfront#InvalidOriginAccessControl":throw await Qj(X,J);case"InvalidOriginAccessIdentity":case"com.amazonaws.cloudfront#InvalidOriginAccessIdentity":throw await Yj(X,J);case"InvalidOriginKeepaliveTimeout":case"com.amazonaws.cloudfront#InvalidOriginKeepaliveTimeout":throw await Wj(X,J);case"InvalidOriginReadTimeout":case"com.amazonaws.cloudfront#InvalidOriginReadTimeout":throw await zj(X,J);case"InvalidProtocolSettings":case"com.amazonaws.cloudfront#InvalidProtocolSettings":throw await Uj(X,J);case"InvalidQueryStringParameters":case"com.amazonaws.cloudfront#InvalidQueryStringParameters":throw await Kj(X,J);case"InvalidRelativePath":case"com.amazonaws.cloudfront#InvalidRelativePath":throw await Bj(X,J);case"InvalidRequiredProtocol":case"com.amazonaws.cloudfront#InvalidRequiredProtocol":throw await $j(X,J);case"InvalidResponseCode":case"com.amazonaws.cloudfront#InvalidResponseCode":throw await Rj(X,J);case"InvalidTTLOrder":case"com.amazonaws.cloudfront#InvalidTTLOrder":throw await qj(X,J);case"InvalidViewerCertificate":case"com.amazonaws.cloudfront#InvalidViewerCertificate":throw await Fj(X,J);case"InvalidWebACLId":case"com.amazonaws.cloudfront#InvalidWebACLId":throw await jj(X,J);case"MissingBody":case"com.amazonaws.cloudfront#MissingBody":throw await Ij(X,J);case"NoSuchCachePolicy":case"com.amazonaws.cloudfront#NoSuchCachePolicy":throw await Cj(X,J);case"NoSuchFieldLevelEncryptionConfig":case"com.amazonaws.cloudfront#NoSuchFieldLevelEncryptionConfig":throw await Lj(X,J);case"NoSuchOrigin":case"com.amazonaws.cloudfront#NoSuchOrigin":throw await Ej(X,J);case"NoSuchOriginRequestPolicy":case"com.amazonaws.cloudfront#NoSuchOriginRequestPolicy":throw await vj(X,J);case"NoSuchRealtimeLogConfig":case"com.amazonaws.cloudfront#NoSuchRealtimeLogConfig":throw await gj(X,J);case"NoSuchResponseHeadersPolicy":case"com.amazonaws.cloudfront#NoSuchResponseHeadersPolicy":throw await hj(X,J);case"PreconditionFailed":case"com.amazonaws.cloudfront#PreconditionFailed":throw await aj(X,J);case"RealtimeLogConfigOwnerMismatch":case"com.amazonaws.cloudfront#RealtimeLogConfigOwnerMismatch":throw await pj(X,J);case"TooManyCacheBehaviors":case"com.amazonaws.cloudfront#TooManyCacheBehaviors":throw await ZD(X,J);case"TooManyCertificates":case"com.amazonaws.cloudfront#TooManyCertificates":throw await QD(X,J);case"TooManyCookieNamesInWhiteList":case"com.amazonaws.cloudfront#TooManyCookieNamesInWhiteList":throw await zD(X,J);case"TooManyDistributions":case"com.amazonaws.cloudfront#TooManyDistributions":throw await RD(X,J);case"TooManyDistributionsAssociatedToCachePolicy":case"com.amazonaws.cloudfront#TooManyDistributionsAssociatedToCachePolicy":throw await MD(X,J);case"TooManyDistributionsAssociatedToFieldLevelEncryptionConfig":case"com.amazonaws.cloudfront#TooManyDistributionsAssociatedToFieldLevelEncryptionConfig":throw await qD(X,J);case"TooManyDistributionsAssociatedToKeyGroup":case"com.amazonaws.cloudfront#TooManyDistributionsAssociatedToKeyGroup":throw await FD(X,J);case"TooManyDistributionsAssociatedToOriginAccessControl":case"com.amazonaws.cloudfront#TooManyDistributionsAssociatedToOriginAccessControl":throw await jD(X,J);case"TooManyDistributionsAssociatedToOriginRequestPolicy":case"com.amazonaws.cloudfront#TooManyDistributionsAssociatedToOriginRequestPolicy":throw await DD(X,J);case"TooManyDistributionsAssociatedToResponseHeadersPolicy":case"com.amazonaws.cloudfront#TooManyDistributionsAssociatedToResponseHeadersPolicy":throw await ID(X,J);case"TooManyDistributionsWithFunctionAssociations":case"com.amazonaws.cloudfront#TooManyDistributionsWithFunctionAssociations":throw await AD(X,J);case"TooManyDistributionsWithLambdaAssociations":case"com.amazonaws.cloudfront#TooManyDistributionsWithLambdaAssociations":throw await CD(X,J);case"TooManyDistributionsWithSingleFunctionARN":case"com.amazonaws.cloudfront#TooManyDistributionsWithSingleFunctionARN":throw await fD(X,J);case"TooManyFunctionAssociations":case"com.amazonaws.cloudfront#TooManyFunctionAssociations":throw await kD(X,J);case"TooManyHeadersInForwardedValues":case"com.amazonaws.cloudfront#TooManyHeadersInForwardedValues":throw await vD(X,J);case"TooManyKeyGroupsAssociatedToDistribution":case"com.amazonaws.cloudfront#TooManyKeyGroupsAssociatedToDistribution":throw await hD(X,J);case"TooManyLambdaFunctionAssociations":case"com.amazonaws.cloudfront#TooManyLambdaFunctionAssociations":throw await yD(X,J);case"TooManyOriginCustomHeaders":case"com.amazonaws.cloudfront#TooManyOriginCustomHeaders":throw await xD(X,J);case"TooManyOriginGroupsPerDistribution":case"com.amazonaws.cloudfront#TooManyOriginGroupsPerDistribution":throw await lD(X,J);case"TooManyOrigins":case"com.amazonaws.cloudfront#TooManyOrigins":throw await aD(X,J);case"TooManyQueryStringParameters":case"com.amazonaws.cloudfront#TooManyQueryStringParameters":throw await uD(X,J);case"TooManyTrustedSigners":case"com.amazonaws.cloudfront#TooManyTrustedSigners":throw await GI(X,J);case"TrustedKeyGroupDoesNotExist":case"com.amazonaws.cloudfront#TrustedKeyGroupDoesNotExist":throw await JI(X,J);case"TrustedSignerDoesNotExist":case"com.amazonaws.cloudfront#TrustedSignerDoesNotExist":throw await XI(X,J);case"CachePolicyAlreadyExists":case"com.amazonaws.cloudfront#CachePolicyAlreadyExists":throw await DF(X,J);case"TooManyCachePolicies":case"com.amazonaws.cloudfront#TooManyCachePolicies":throw await VD(X,J);case"TooManyCookiesInCachePolicy":case"com.amazonaws.cloudfront#TooManyCookiesInCachePolicy":throw await UD(X,J);case"TooManyHeadersInCachePolicy":case"com.amazonaws.cloudfront#TooManyHeadersInCachePolicy":throw await OD(X,J);case"TooManyQueryStringsInCachePolicy":case"com.amazonaws.cloudfront#TooManyQueryStringsInCachePolicy":throw await dD(X,J);case"CloudFrontOriginAccessIdentityAlreadyExists":case"com.amazonaws.cloudfront#CloudFrontOriginAccessIdentityAlreadyExists":throw await fF(X,J);case"TooManyCloudFrontOriginAccessIdentities":case"com.amazonaws.cloudfront#TooManyCloudFrontOriginAccessIdentities":throw await YD(X,J);case"ContinuousDeploymentPolicyAlreadyExists":case"com.amazonaws.cloudfront#ContinuousDeploymentPolicyAlreadyExists":throw await LF(X,J);case"StagingDistributionInUse":case"com.amazonaws.cloudfront#StagingDistributionInUse":throw await tj(X,J);case"TooManyContinuousDeploymentPolicies":case"com.amazonaws.cloudfront#TooManyContinuousDeploymentPolicies":throw await WD(X,J);case"ContinuousDeploymentPolicyInUse":case"com.amazonaws.cloudfront#ContinuousDeploymentPolicyInUse":throw await TF(X,J);case"IllegalOriginAccessConfiguration":case"com.amazonaws.cloudfront#IllegalOriginAccessConfiguration":throw await rF(X,J);case"InvalidDomainNameForOriginAccessControl":case"com.amazonaws.cloudfront#InvalidDomainNameForOriginAccessControl":throw await pF(X,J);case"NoSuchContinuousDeploymentPolicy":case"com.amazonaws.cloudfront#NoSuchContinuousDeploymentPolicy":throw await Sj(X,J);case"InvalidTagging":case"com.amazonaws.cloudfront#InvalidTagging":throw await Mj(X,J);case"FieldLevelEncryptionConfigAlreadyExists":case"com.amazonaws.cloudfront#FieldLevelEncryptionConfigAlreadyExists":throw await _F(X,J);case"NoSuchFieldLevelEncryptionProfile":case"com.amazonaws.cloudfront#NoSuchFieldLevelEncryptionProfile":throw await Tj(X,J);case"QueryArgProfileEmpty":case"com.amazonaws.cloudfront#QueryArgProfileEmpty":throw await uj(X,J);case"TooManyFieldLevelEncryptionConfigs":case"com.amazonaws.cloudfront#TooManyFieldLevelEncryptionConfigs":throw await SD(X,J);case"TooManyFieldLevelEncryptionContentTypeProfiles":case"com.amazonaws.cloudfront#TooManyFieldLevelEncryptionContentTypeProfiles":throw await PD(X,J);case"TooManyFieldLevelEncryptionQueryArgProfiles":case"com.amazonaws.cloudfront#TooManyFieldLevelEncryptionQueryArgProfiles":throw await ND(X,J);case"FieldLevelEncryptionProfileAlreadyExists":case"com.amazonaws.cloudfront#FieldLevelEncryptionProfileAlreadyExists":throw await bF(X,J);case"FieldLevelEncryptionProfileSizeExceeded":case"com.amazonaws.cloudfront#FieldLevelEncryptionProfileSizeExceeded":throw await yF(X,J);case"NoSuchPublicKey":case"com.amazonaws.cloudfront#NoSuchPublicKey":throw await _j(X,J);case"TooManyFieldLevelEncryptionEncryptionEntities":case"com.amazonaws.cloudfront#TooManyFieldLevelEncryptionEncryptionEntities":throw await LD(X,J);case"TooManyFieldLevelEncryptionFieldPatterns":case"com.amazonaws.cloudfront#TooManyFieldLevelEncryptionFieldPatterns":throw await TD(X,J);case"TooManyFieldLevelEncryptionProfiles":case"com.amazonaws.cloudfront#TooManyFieldLevelEncryptionProfiles":throw await wD(X,J);case"FunctionAlreadyExists":case"com.amazonaws.cloudfront#FunctionAlreadyExists":throw await mF(X,J);case"FunctionSizeLimitExceeded":case"com.amazonaws.cloudfront#FunctionSizeLimitExceeded":throw await lF(X,J);case"TooManyFunctions":case"com.amazonaws.cloudfront#TooManyFunctions":throw await ED(X,J);case"UnsupportedOperation":case"com.amazonaws.cloudfront#UnsupportedOperation":throw await HI(X,J);case"BatchTooLarge":case"com.amazonaws.cloudfront#BatchTooLarge":throw await jF(X,J);case"TooManyInvalidationsInProgress":case"com.amazonaws.cloudfront#TooManyInvalidationsInProgress":throw await gD(X,J);case"KeyGroupAlreadyExists":case"com.amazonaws.cloudfront#KeyGroupAlreadyExists":throw await Dj(X,J);case"TooManyKeyGroups":case"com.amazonaws.cloudfront#TooManyKeyGroups":throw await bD(X,J);case"TooManyPublicKeysInKeyGroup":case"com.amazonaws.cloudfront#TooManyPublicKeysInKeyGroup":throw await iD(X,J);case"EntityAlreadyExists":case"com.amazonaws.cloudfront#EntityAlreadyExists":throw await kF(X,J);case"EntityLimitExceeded":case"com.amazonaws.cloudfront#EntityLimitExceeded":throw await EF(X,J);case"EntitySizeLimitExceeded":case"com.amazonaws.cloudfront#EntitySizeLimitExceeded":throw await vF(X,J);case"MonitoringSubscriptionAlreadyExists":case"com.amazonaws.cloudfront#MonitoringSubscriptionAlreadyExists":throw await Aj(X,J);case"OriginAccessControlAlreadyExists":case"com.amazonaws.cloudfront#OriginAccessControlAlreadyExists":throw await mj(X,J);case"TooManyOriginAccessControls":case"com.amazonaws.cloudfront#TooManyOriginAccessControls":throw await mD(X,J);case"OriginRequestPolicyAlreadyExists":case"com.amazonaws.cloudfront#OriginRequestPolicyAlreadyExists":throw await lj(X,J);case"TooManyCookiesInOriginRequestPolicy":case"com.amazonaws.cloudfront#TooManyCookiesInOriginRequestPolicy":throw await KD(X,J);case"TooManyHeadersInOriginRequestPolicy":case"com.amazonaws.cloudfront#TooManyHeadersInOriginRequestPolicy":throw await _D(X,J);case"TooManyOriginRequestPolicies":case"com.amazonaws.cloudfront#TooManyOriginRequestPolicies":throw await cD(X,J);case"TooManyQueryStringsInOriginRequestPolicy":case"com.amazonaws.cloudfront#TooManyQueryStringsInOriginRequestPolicy":throw await sD(X,J);case"PublicKeyAlreadyExists":case"com.amazonaws.cloudfront#PublicKeyAlreadyExists":throw await rj(X,J);case"TooManyPublicKeys":case"com.amazonaws.cloudfront#TooManyPublicKeys":throw await rD(X,J);case"RealtimeLogConfigAlreadyExists":case"com.amazonaws.cloudfront#RealtimeLogConfigAlreadyExists":throw await dj(X,J);case"TooManyRealtimeLogConfigs":case"com.amazonaws.cloudfront#TooManyRealtimeLogConfigs":throw await pD(X,J);case"ResponseHeadersPolicyAlreadyExists":case"com.amazonaws.cloudfront#ResponseHeadersPolicyAlreadyExists":throw await oj(X,J);case"TooLongCSPInResponseHeadersPolicy":case"com.amazonaws.cloudfront#TooLongCSPInResponseHeadersPolicy":throw await HD(X,J);case"TooManyCustomHeadersInResponseHeadersPolicy":case"com.amazonaws.cloudfront#TooManyCustomHeadersInResponseHeadersPolicy":throw await BD(X,J);case"TooManyRemoveHeadersInResponseHeadersPolicy":case"com.amazonaws.cloudfront#TooManyRemoveHeadersInResponseHeadersPolicy":throw await nD(X,J);case"TooManyResponseHeadersPolicies":case"com.amazonaws.cloudfront#TooManyResponseHeadersPolicies":throw await oD(X,J);case"StreamingDistributionAlreadyExists":case"com.amazonaws.cloudfront#StreamingDistributionAlreadyExists":throw await GD(X,J);case"TooManyStreamingDistributionCNAMEs":case"com.amazonaws.cloudfront#TooManyStreamingDistributionCNAMEs":throw await eD(X,J);case"TooManyStreamingDistributions":case"com.amazonaws.cloudfront#TooManyStreamingDistributions":throw await tD(X,J);case"CachePolicyInUse":case"com.amazonaws.cloudfront#CachePolicyInUse":throw await IF(X,J);case"IllegalDelete":case"com.amazonaws.cloudfront#IllegalDelete":throw await cF(X,J);case"CloudFrontOriginAccessIdentityInUse":case"com.amazonaws.cloudfront#CloudFrontOriginAccessIdentityInUse":throw await SF(X,J);case"NoSuchCloudFrontOriginAccessIdentity":case"com.amazonaws.cloudfront#NoSuchCloudFrontOriginAccessIdentity":throw await fj(X,J);case"DistributionNotDisabled":case"com.amazonaws.cloudfront#DistributionNotDisabled":throw await NF(X,J);case"FieldLevelEncryptionConfigInUse":case"com.amazonaws.cloudfront#FieldLevelEncryptionConfigInUse":throw await gF(X,J);case"FieldLevelEncryptionProfileInUse":case"com.amazonaws.cloudfront#FieldLevelEncryptionProfileInUse":throw await hF(X,J);case"FunctionInUse":case"com.amazonaws.cloudfront#FunctionInUse":throw await xF(X,J);case"NoSuchFunctionExists":case"com.amazonaws.cloudfront#NoSuchFunctionExists":throw await wj(X,J);case"NoSuchResource":case"com.amazonaws.cloudfront#NoSuchResource":throw await bj(X,J);case"ResourceInUse":case"com.amazonaws.cloudfront#ResourceInUse":throw await nj(X,J);case"CannotDeleteEntityWhileInUse":case"com.amazonaws.cloudfront#CannotDeleteEntityWhileInUse":throw await CF(X,J);case"EntityNotFound":case"com.amazonaws.cloudfront#EntityNotFound":throw await OF(X,J);case"NoSuchMonitoringSubscription":case"com.amazonaws.cloudfront#NoSuchMonitoringSubscription":throw await kj(X,J);case"NoSuchOriginAccessControl":case"com.amazonaws.cloudfront#NoSuchOriginAccessControl":throw await Oj(X,J);case"OriginAccessControlInUse":case"com.amazonaws.cloudfront#OriginAccessControlInUse":throw await xj(X,J);case"OriginRequestPolicyInUse":case"com.amazonaws.cloudfront#OriginRequestPolicyInUse":throw await cj(X,J);case"PublicKeyInUse":case"com.amazonaws.cloudfront#PublicKeyInUse":throw await ij(X,J);case"RealtimeLogConfigInUse":case"com.amazonaws.cloudfront#RealtimeLogConfigInUse":throw await sj(X,J);case"ResponseHeadersPolicyInUse":case"com.amazonaws.cloudfront#ResponseHeadersPolicyInUse":throw await ej(X,J);case"NoSuchStreamingDistribution":case"com.amazonaws.cloudfront#NoSuchStreamingDistribution":throw await yj(X,J);case"StreamingDistributionNotDisabled":case"com.amazonaws.cloudfront#StreamingDistributionNotDisabled":throw await JD(X,J);case"NoSuchInvalidation":case"com.amazonaws.cloudfront#NoSuchInvalidation":throw await Nj(X,J);case"TestFunctionFailed":case"com.amazonaws.cloudfront#TestFunctionFailed":throw await XD(X,J);case"CannotChangeImmutablePublicKeyFields":case"com.amazonaws.cloudfront#CannotChangeImmutablePublicKeyFields":throw await AF(X,J);default:const Z=X.body;return qF({output:G,parsedBody:Z.Error,errorCode:H})}},qF=YV(L),FF=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new U6({$metadata:E(G),...X});return k(Z,G.body.Error)},jF=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new M6({$metadata:E(G),...X});return k(Z,G.body.Error)},DF=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new q6({$metadata:E(G),...X});return k(Z,G.body.Error)},IF=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new F6({$metadata:E(G),...X});return k(Z,G.body.Error)},AF=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new j6({$metadata:E(G),...X});return k(Z,G.body.Error)},CF=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new D6({$metadata:E(G),...X});return k(Z,G.body.Error)},fF=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new k8({$metadata:E(G),...X});return k(Z,G.body.Error)},SF=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new k4({$metadata:E(G),...X});return k(Z,G.body.Error)},PF=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new I6({$metadata:E(G),...X});return k(Z,G.body.Error)},LF=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new O8({$metadata:E(G),...X});return k(Z,G.body.Error)},TF=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new g8({$metadata:E(G),...X});return k(Z,G.body.Error)},wF=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new A6({$metadata:E(G),...X});return k(Z,G.body.Error)},NF=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new O4({$metadata:E(G),...X});return k(Z,G.body.Error)},kF=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new Q4({$metadata:E(G),...X});return k(Z,G.body.Error)},EF=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new Y4({$metadata:E(G),...X});return k(Z,G.body.Error)},OF=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new m4({$metadata:E(G),...X});return k(Z,G.body.Error)},vF=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new W4({$metadata:E(G),...X});return k(Z,G.body.Error)},_F=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new x8({$metadata:E(G),...X});return k(Z,G.body.Error)},gF=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new v4({$metadata:E(G),...X});return k(Z,G.body.Error)},bF=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new u8({$metadata:E(G),...X});return k(Z,G.body.Error)},hF=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new _4({$metadata:E(G),...X});return k(Z,G.body.Error)},yF=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new d8({$metadata:E(G),...X});return k(Z,G.body.Error)},mF=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new e8({$metadata:E(G),...X});return k(Z,G.body.Error)},xF=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new g4({$metadata:E(G),...X});return k(Z,G.body.Error)},lF=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new t8({$metadata:E(G),...X});return k(Z,G.body.Error)},cF=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new N4({$metadata:E(G),...X});return k(Z,G.body.Error)},aF=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new C6({$metadata:E(G),...X});return k(Z,G.body.Error)},rF=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new b8({$metadata:E(G),...X});return k(Z,G.body.Error)},iF=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new K6({$metadata:E(G),...X});return k(Z,G.body.Error)},uF=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new f6({$metadata:E(G),...X});return k(Z,G.body.Error)},dF=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new B6({$metadata:E(G),...X});return k(Z,G.body.Error)},sF=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new S6({$metadata:E(G),...X});return k(Z,G.body.Error)},pF=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new h8({$metadata:E(G),...X});return k(Z,G.body.Error)},nF=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new P6({$metadata:E(G),...X});return k(Z,G.body.Error)},oF=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new L6({$metadata:E(G),...X});return k(Z,G.body.Error)},eF=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new T6({$metadata:E(G),...X});return k(Z,G.body.Error)},tF=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new w6({$metadata:E(G),...X});return k(Z,G.body.Error)},Gj=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new N6({$metadata:E(G),...X});return k(Z,G.body.Error)},Jj=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new k6({$metadata:E(G),...X});return k(Z,G.body.Error)},Xj=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new E6({$metadata:E(G),...X});return k(Z,G.body.Error)},Hj=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new O6({$metadata:E(G),...X});return k(Z,G.body.Error)},Zj=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new v6({$metadata:E(G),...X});return k(Z,G.body.Error)},Vj=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new _6({$metadata:E(G),...X});return k(Z,G.body.Error)},Qj=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new g6({$metadata:E(G),...X});return k(Z,G.body.Error)},Yj=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new b6({$metadata:E(G),...X});return k(Z,G.body.Error)},Wj=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new h6({$metadata:E(G),...X});return k(Z,G.body.Error)},zj=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new y6({$metadata:E(G),...X});return k(Z,G.body.Error)},Uj=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new m6({$metadata:E(G),...X});return k(Z,G.body.Error)},Kj=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new x6({$metadata:E(G),...X});return k(Z,G.body.Error)},Bj=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new l6({$metadata:E(G),...X});return k(Z,G.body.Error)},$j=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new c6({$metadata:E(G),...X});return k(Z,G.body.Error)},Rj=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new a6({$metadata:E(G),...X});return k(Z,G.body.Error)},Mj=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new m8({$metadata:E(G),...X});return k(Z,G.body.Error)},qj=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new r6({$metadata:E(G),...X});return k(Z,G.body.Error)},Fj=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new i6({$metadata:E(G),...X});return k(Z,G.body.Error)},jj=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new u6({$metadata:E(G),...X});return k(Z,G.body.Error)},Dj=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new H4({$metadata:E(G),...X});return k(Z,G.body.Error)},Ij=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new d6({$metadata:E(G),...X});return k(Z,G.body.Error)},Aj=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new z4({$metadata:E(G),...X});return k(Z,G.body.Error)},Cj=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new s6({$metadata:E(G),...X});return k(Z,G.body.Error)},fj=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new E4({$metadata:E(G),...X});return k(Z,G.body.Error)},Sj=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new y8({$metadata:E(G),...X});return k(Z,G.body.Error)},Pj=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new $6({$metadata:E(G),...X});return k(Z,G.body.Error)},Lj=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new p6({$metadata:E(G),...X});return k(Z,G.body.Error)},Tj=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new l8({$metadata:E(G),...X});return k(Z,G.body.Error)},wj=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new b4({$metadata:E(G),...X});return k(Z,G.body.Error)},Nj=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new p4({$metadata:E(G),...X});return k(Z,G.body.Error)},kj=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new x4({$metadata:E(G),...X});return k(Z,G.body.Error)},Ej=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new n6({$metadata:E(G),...X});return k(Z,G.body.Error)},Oj=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new l4({$metadata:E(G),...X});return k(Z,G.body.Error)},vj=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new o6({$metadata:E(G),...X});return k(Z,G.body.Error)},_j=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new s8({$metadata:E(G),...X});return k(Z,G.body.Error)},gj=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new e6({$metadata:E(G),...X});return k(Z,G.body.Error)},bj=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new h4({$metadata:E(G),...X});return k(Z,G.body.Error)},hj=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new t6({$metadata:E(G),...X});return k(Z,G.body.Error)},yj=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new d4({$metadata:E(G),...X});return k(Z,G.body.Error)},mj=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new U4({$metadata:E(G),...X});return k(Z,G.body.Error)},xj=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new c4({$metadata:E(G),...X});return k(Z,G.body.Error)},lj=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new B4({$metadata:E(G),...X});return k(Z,G.body.Error)},cj=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new a4({$metadata:E(G),...X});return k(Z,G.body.Error)},aj=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new G8({$metadata:E(G),...X});return k(Z,G.body.Error)},rj=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new F4({$metadata:E(G),...X});return k(Z,G.body.Error)},ij=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new r4({$metadata:E(G),...X});return k(Z,G.body.Error)},uj=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new c8({$metadata:E(G),...X});return k(Z,G.body.Error)},dj=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new D4({$metadata:E(G),...X});return k(Z,G.body.Error)},sj=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new i4({$metadata:E(G),...X});return k(Z,G.body.Error)},pj=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new J8({$metadata:E(G),...X});return k(Z,G.body.Error)},nj=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new y4({$metadata:E(G),...X});return k(Z,G.body.Error)},oj=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new A4({$metadata:E(G),...X});return k(Z,G.body.Error)},ej=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new u4({$metadata:E(G),...X});return k(Z,G.body.Error)},tj=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new v8({$metadata:E(G),...X});return k(Z,G.body.Error)},GD=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new L4({$metadata:E(G),...X});return k(Z,G.body.Error)},JD=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new s4({$metadata:E(G),...X});return k(Z,G.body.Error)},XD=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new n4({$metadata:E(G),...X});return k(Z,G.body.Error)},HD=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new C4({$metadata:E(G),...X});return k(Z,G.body.Error)},ZD=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new X8({$metadata:E(G),...X});return k(Z,G.body.Error)},VD=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new L8({$metadata:E(G),...X});return k(Z,G.body.Error)},QD=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new H8({$metadata:E(G),...X});return k(Z,G.body.Error)},YD=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new E8({$metadata:E(G),...X});return k(Z,G.body.Error)},WD=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new _8({$metadata:E(G),...X});return k(Z,G.body.Error)},zD=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new Z8({$metadata:E(G),...X});return k(Z,G.body.Error)},UD=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new T8({$metadata:E(G),...X});return k(Z,G.body.Error)},KD=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new $4({$metadata:E(G),...X});return k(Z,G.body.Error)},BD=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new f4({$metadata:E(G),...X});return k(Z,G.body.Error)},$D=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new R6({$metadata:E(G),...X});return k(Z,G.body.Error)},RD=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new V8({$metadata:E(G),...X});return k(Z,G.body.Error)},MD=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new Q8({$metadata:E(G),...X});return k(Z,G.body.Error)},qD=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new Y8({$metadata:E(G),...X});return k(Z,G.body.Error)},FD=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new W8({$metadata:E(G),...X});return k(Z,G.body.Error)},jD=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new z8({$metadata:E(G),...X});return k(Z,G.body.Error)},DD=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new U8({$metadata:E(G),...X});return k(Z,G.body.Error)},ID=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new K8({$metadata:E(G),...X});return k(Z,G.body.Error)},AD=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new B8({$metadata:E(G),...X});return k(Z,G.body.Error)},CD=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new $8({$metadata:E(G),...X});return k(Z,G.body.Error)},fD=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new R8({$metadata:E(G),...X});return k(Z,G.body.Error)},SD=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new a8({$metadata:E(G),...X});return k(Z,G.body.Error)},PD=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new r8({$metadata:E(G),...X});return k(Z,G.body.Error)},LD=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new p8({$metadata:E(G),...X});return k(Z,G.body.Error)},TD=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new n8({$metadata:E(G),...X});return k(Z,G.body.Error)},wD=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new o8({$metadata:E(G),...X});return k(Z,G.body.Error)},ND=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new i8({$metadata:E(G),...X});return k(Z,G.body.Error)},kD=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new M8({$metadata:E(G),...X});return k(Z,G.body.Error)},ED=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new G4({$metadata:E(G),...X});return k(Z,G.body.Error)},OD=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new w8({$metadata:E(G),...X});return k(Z,G.body.Error)},vD=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new q8({$metadata:E(G),...X});return k(Z,G.body.Error)},_D=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new R4({$metadata:E(G),...X});return k(Z,G.body.Error)},gD=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new X4({$metadata:E(G),...X});return k(Z,G.body.Error)},bD=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new Z4({$metadata:E(G),...X});return k(Z,G.body.Error)},hD=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new F8({$metadata:E(G),...X});return k(Z,G.body.Error)},yD=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new j8({$metadata:E(G),...X});return k(Z,G.body.Error)},mD=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new K4({$metadata:E(G),...X});return k(Z,G.body.Error)},xD=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new D8({$metadata:E(G),...X});return k(Z,G.body.Error)},lD=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new I8({$metadata:E(G),...X});return k(Z,G.body.Error)},cD=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new M4({$metadata:E(G),...X});return k(Z,G.body.Error)},aD=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new A8({$metadata:E(G),...X});return k(Z,G.body.Error)},rD=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new j4({$metadata:E(G),...X});return k(Z,G.body.Error)},iD=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new V4({$metadata:E(G),...X});return k(Z,G.body.Error)},uD=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new C8({$metadata:E(G),...X});return k(Z,G.body.Error)},dD=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new N8({$metadata:E(G),...X});return k(Z,G.body.Error)},sD=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new q4({$metadata:E(G),...X});return k(Z,G.body.Error)},pD=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new I4({$metadata:E(G),...X});return k(Z,G.body.Error)},nD=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new S4({$metadata:E(G),...X});return k(Z,G.body.Error)},oD=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new P4({$metadata:E(G),...X});return k(Z,G.body.Error)},eD=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new T4({$metadata:E(G),...X});return k(Z,G.body.Error)},tD=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new w4({$metadata:E(G),...X});return k(Z,G.body.Error)},GI=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new f8({$metadata:E(G),...X});return k(Z,G.body.Error)},JI=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new S8({$metadata:E(G),...X});return k(Z,G.body.Error)},XI=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new P8({$metadata:E(G),...X});return k(Z,G.body.Error)},HI=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new J4({$metadata:E(G),...X});return k(Z,G.body.Error)};var ZI=(G,J)=>{const X=new u2(o4);if(G[r0]!=null)X.c(QI(G[r0],J).n(r0));if(G[f5]!=null)X.c(u2.of(BV,G[f5]).n(f5));return X};var VI=(G,J)=>{return G.filter((X)=>X!=null).map((X)=>{return u2.of(BV,X).n(mJ)})},QI=(G,J)=>{const X=new u2(r0);if(G[S5]!=null)X.c(u2.of(BI,String(G[S5])).n(S5));return X.lc(G,"Items","Items",()=>VI(G[C5],J)),X};var YI=(G,J)=>{const X={};if(G[hJ]!=null)X[hJ]=T(G[hJ]);if(G[yJ]!=null)X[yJ]=T(G[yJ]);if(G[bJ]!=null)X[bJ]=HV(QV(G[bJ]));if(G[o4]!=null)X[o4]=WI(G[o4],J);return X},WI=(G,J)=>{const X={};if(G[r0]!=null)X[r0]=UI(G[r0],J);if(G[f5]!=null)X[f5]=T(G[f5]);return X};var zI=(G,J)=>{return(G||[]).filter((X)=>X!=null).map((X)=>{return T(X)})},UI=(G,J)=>{const X={};if(G[S5]!=null)X[S5]=VV(G[S5]);if(G.Items==="")X[C5]=[];else if(G[C5]!=null&&G[C5][mJ]!=null)X[C5]=zI(WV(G[C5][mJ]),J);return X};var E=(G)=>({httpStatusCode:G.statusCode,requestId:G.headers["x-amzn-requestid"]??G.headers["x-amzn-request-id"]??G.headers["x-amz-request-id"],extendedRequestId:G.headers["x-amz-id-2"],cfId:G.headers["x-amz-cf-id"]});var f5="CallerReference";var bJ="CreateTime";var C5="Items";var o4="InvalidationBatch";var hJ="Id";var KI="Location";var U="Message";var r0="Paths";var mJ="Path";var S5="Quantity";var yJ="Status";var BI="integer";var $I="location";var BV="string",RI='<?xml version="1.0" encoding="UTF-8"?>';class xJ extends MV.classBuilder().ep(mH).m(function(G,J,X,H){return[$V(X,this.serialize,this.deserialize),RV(X,G.getEndpointParameterInstructions())]}).s("Cloudfront2020_05_31","CreateInvalidation",{}).n("CloudFrontClient","CreateInvalidationCommand").f(void 0,void 0).ser(UV).de(KV).build(){}import{intro as L5,italic as Q9,log as O1,outro as w1,prompts as Y9,runCommand as i0,underline as qV}from"@stacksjs/cli";import{addJumpBox as MI,deleteCdkRemnants as qI,deleteIamUsers as FI,deleteJumpBox as lJ,deleteLogGroups as jI,deleteParameterStore as DI,deleteStacksBuckets as II,deleteStacksFunctions as AI,deleteSubnets as CI,deleteVpcs as fI,getCloudFrontDistributionId as SI,getJumpBoxInstanceId as PI}from"@stacksjs/cloud";import{path as u0}from"@stacksjs/path";import{ExitCode as f1}from"@stacksjs/types";import{loop as LI}from"@stacksjs/utils";function tT1(G){const J={cloud:"Interact with the Stacks Cloud",ssh:"SSH into the Stacks Cloud",add:"Add a resource to the Stacks Cloud",remove:"Remove the Stacks Cloud. In case it fails, try again",optimizeCost:"Remove certain resources that may be re-applied at a later time",cleanUp:"Remove all resources that were retained during the cloud deletion",invalidateCache:"Invalidate the CloudFront cache",diff:"Show the diff of the current, undeployed cloud changes ",paths:"The paths to invalidate",project:"Target a specific project",verbose:"Enable verbose output"};G.command("cloud",J.cloud).option("--ssh",J.ssh,{default:!1}).option("--connect",J.ssh,{default:!1}).option("--invalidate-cache",J.invalidateCache,{default:!1}).option("--paths [paths]",J.paths).option("--diff",J.diff,{default:!1}).option("-p, --project [project]",J.project,{default:!1}).option("--verbose",J.verbose,{default:!1}).action(async(X)=>{O1.debug("Running `buddy cloud` ...",X);const H=performance.now();if(X.ssh||X.connect){const Z=await PI(),V=await i0(`aws ssm start-session --target ${Z}`,{...X,cwd:u0.projectPath(),stdin:"pipe"});if(V.isErr())await w1("While running the cloud command, there was an issue",{startTime:H,useSeconds:!0},V.error),C1.exit(f1.FatalError);await w1("Exited",{startTime:H,useSeconds:!0}),C1.exit(f1.Success)}if(X.invalidateCache){const{confirm:Z}=await Y9({name:"confirm",type:"confirm",message:"Would you like to invalidate the CDN (CloudFront) cache?"});if(!Z)await w1("Exited",{startTime:H,useSeconds:!0}),C1.exit(f1.Success);O1.info("Invalidating the CloudFront cache...");const V=new _J,Y={DistributionId:await SI(),InvalidationBatch:{CallerReference:`${Date.now()}`,Paths:{Quantity:1,Items:["/*"]}}},W=new xJ(Y);V.send(W).then((z)=>console.log(z),(z)=>console.log(z,z.stack)),await w1("Exited",{startTime:H,useSeconds:!0}),C1.exit(f1.Success)}if(X.diff){const Z=await i0("bunx --bun cdk diff",{cwd:u0.frameworkCloudPath(),stdin:"pipe"});if(Z.isErr())await w1("While running the cloud diff command, there was an issue",{startTime:H,useSeconds:!0},Z.error),C1.exit(f1.FatalError);await w1("Showing diff of the current, undeployed cloud changes",{startTime:H,useSeconds:!0}),console.log(Z.value),C1.exit(f1.Success)}O1.info("Not implemented yet. Read more about `buddy cloud` here: https://stacksjs.org/docs/cloud"),C1.exit(f1.Success)}),G.command("cloud:add",J.add).option("--jump-box","Remove the jump-box",{default:!1}).option("-p, --project [project]",J.project,{default:!1}).option("--verbose",J.verbose,{default:!1}).action(async(X)=>{O1.debug("Running `buddy cloud:add` ...",X);const H=await L5("buddy cloud:add");if(X.jumpBox){const{confirm:Z}=await Y9({name:"confirm",type:"confirm",message:"Would you like to add a jump-box to your cloud?"});if(!Z)await w1("Exited",{startTime:H,useSeconds:!0}),C1.exit(f1.Success);O1.info("The jump-box is getting added to your cloud resources..."),O1.info("This takes a few moments, please be patient."),await new Promise((Q)=>setTimeout(Q,2000));const V=await MI();if(V.isErr())await w1("While running the cloud:add command, there was an issue",{startTime:H,useSeconds:!0},V.error),C1.exit(f1.FatalError);O1.info(Q9("View the jump-box in the AWS console:")),O1.info(qV("https://us-east-1.console.aws.amazon.com/ec2/home?region=us-east-1#Instances:instanceState=running")),O1.info(Q9("Once it finished initializing, you may SSH into it:")),O1.info(qV("buddy cloud --ssh")),await w1("Your jump-box was added.",{startTime:H,useSeconds:!0}),C1.exit(f1.Success)}O1.info("This functionality is not yet implemented."),C1.exit(f1.Success)}),G.command("cloud:remove",J.remove).alias("cloud:destroy").alias("cloud:rm").alias("undeploy").option("--jump-box","Remove the jump-box",{default:!1}).option("-p, --project [project]",J.project,{default:!1}).option("--verbose",J.verbose,{default:!1}).action(async(X)=>{O1.debug("Running `buddy cloud:remove` ...",X);const H=await L5("buddy cloud:remove");if(X.jumpBox){const{confirm:V}=await Y9({name:"confirm",type:"confirm",message:"Would you like to remove your jump-box for now?"});if(!V)await w1("Exited",{startTime:H,useSeconds:!0}),C1.exit(f1.Success);const Q=await lJ();if(Q.isErr())await w1("While removing your jump-box, there was an issue",{startTime:H,useSeconds:!0},Q.error),C1.exit(f1.FatalError);await w1("Your jump-box was removed.",{startTime:H,useSeconds:!0}),C1.exit(f1.Success)}console.log(` ${Q9("\u2139\uFE0F Removing your cloud resources takes a while to complete.")}`),console.log(` ${Q9("Please note, your backups will not yet be deleted. Though,")}`),console.log(` ${Q9("Backups are scheduled to delete themselves in 30 days.")}`),await new Promise((V)=>setTimeout(V,2000));const Z=await i0("bunx --bun cdk destroy",{...X,cwd:u0.frameworkCloudPath(),stdin:"inherit"});if(Z.isErr())await w1('While running the cloud:remove ("undeploy") command, there was an issue',{startTime:H,useSeconds:!0},Z.error),C1.exit(f1.FatalError);await i0("buddy cloud:cleanup",{...X,cwd:u0.projectPath(),stdin:"inherit"});try{O1.info("Finalizing the removal of your cloud resources."),O1.info("This will take a few moments..."),await LI(7,async()=>{await i0("buddy cloud:cleanup",{...X,cwd:u0.projectPath(),stdout:"ignore"})}),await w1("Your cloud has been removed",{startTime:H,useSeconds:!0}),C1.exit(f1.Success)}catch(V){await w1("While cleaning up the cloud, there was an issue",{startTime:H,useSeconds:!0},V),C1.exit(f1.FatalError)}}),G.command("cloud:optimize-cost",J.optimizeCost).option("--jump-box","Remove the jump-box",{default:!0}).option("-p, --project [project]",J.project,{default:!1}).option("--verbose",J.verbose,{default:!1}).action(async(X)=>{O1.debug("Running `buddy cloud:optimize-cost` ...",X);const H=await L5("buddy cloud:optimize-cost");if(X.jumpBox){const{confirm:Z}=await Y9({name:"confirm",type:"confirm",message:"Would you like to remove your jump-box to optimize your costs?"});if(!Z)await w1("Exited",{startTime:H,useSeconds:!0}),C1.exit(f1.Success);await lJ(),await w1("Your jump-box was removed & cost optimizations are applied.",{startTime:H,useSeconds:!0}),C1.exit(f1.Success)}await w1("No cost optimization was applied",{startTime:H,useSeconds:!0}),C1.exit(f1.Success)}),G.command("cloud:cleanup",J.cleanUp).alias("cloud:clean-up").option("-p, --project [project]",J.project,{default:!1}).option("--verbose",J.verbose,{default:!1}).action(async(X)=>{O1.debug("Running `buddy cloud:cleanup` ...",X);const H=await L5("buddy cloud:cleanup");O1.info("Cleaning up your cloud resources will take a while to complete. Please be patient."),await new Promise((j)=>setTimeout(j,2000)),O1.info("Removing any jump-boxes...");const Z=await lJ();if(Z.isErr()){if(Z.error!=="Jump-box not found")await w1("While removing your jump-box, there was an issue",{startTime:H,useSeconds:!0},Z.error),C1.exit(f1.FatalError)}O1.info("Removing any retained S3 buckets...");const V=await II();if(V.isErr())await w1("While deleting the retained S3 buckets, there was an issue",{startTime:H,useSeconds:!0},V.error),C1.exit(f1.FatalError);O1.info("Removing any retained Lambda functions...");const Q=await AI();if(Q.isErr()){if(Q.error!=="No stacks functions found")await w1("While deleting the Origin Request Lambda function, there was an issue",{startTime:H,useSeconds:!0},Q.error);C1.exit(f1.FatalError)}O1.info(Q.value),O1.info("Removing any remaining Stacks logs...");const Y=await jI();if(Y.isErr())await w1("While deleting the Stacks log groups, there was an issue",{startTime:H,useSeconds:!0},Y.error),C1.exit(f1.FatalError);O1.info("Removing any stored parameters...");const W=await DI();if(W.isErr())await w1("While deleting the Stacks log groups, there was an issue",{startTime:H,useSeconds:!0},W.error),C1.exit(f1.FatalError);const z=await fI();if(z.isErr())await w1("While deleting the VPCs, there was an issue",{startTime:H,useSeconds:!0},z.error),C1.exit(f1.FatalError);const B=await CI();if(B.isErr())await w1("While deleting the Subnets, there was an issue",{startTime:H,useSeconds:!0},B.error),C1.exit(f1.FatalError);O1.info("Removing any CDK remnants...");const q=await qI();if(q.isErr())await w1("While deleting the Stacks log groups, there was an issue",{startTime:H,useSeconds:!0},q.error),C1.exit(f1.FatalError);O1.info("Removing any IAM users...");const F=await FI();if(F.isErr())await w1("While deleting the Stacks log groups, there was an issue",{startTime:H,useSeconds:!0},F.error),C1.exit(f1.FatalError);await w1("AWS resources have been removed",{startTime:H,useSeconds:!0}),C1.exit(f1.Success)}),G.command("cloud:invalidate-cache",J.invalidateCache).option("--paths [paths]",J.paths,{default:!1}).option("-p, --project [project]",J.project,{default:!1}).option("--verbose",J.verbose,{default:!1}).action(async(X)=>{O1.debug("Running `buddy cloud:invalidate-cache` ...",X);const H=await L5("buddy cloud:invalidate-cache"),{confirm:Z}=await Y9({name:"confirm",type:"confirm",message:"Would you like to invalidate the CloudFront cache?"});if(!Z)await w1("Exited",{startTime:H,useSeconds:!0}),C1.exit(f1.Success);if(O1.info("Invalidating the CloudFront cache..."),X.paths){const V=await i0(`aws cloudfront create-invalidation --distribution-id E1U4Z2E9NJW9J --paths ${X.paths}`,{...X,cwd:u0.projectPath(),stdin:"pipe"});if(V.isErr())await w1("While running the cloud command, there was an issue",{startTime:H,useSeconds:!0},V.error),C1.exit(f1.FatalError);await w1("Exited",{startTime:H,useSeconds:!0}),C1.exit(f1.Success)}O1.info("Not implemented yet. Read more about `buddy cloud` here: https://stacksjs.org/docs/cloud"),C1.exit(f1.Success)}),G.command("cloud:diff",J.diff).option("-p, --project [project]",J.project,{default:!1}).option("--verbose",J.verbose,{default:!1}).action(async(X)=>{O1.debug("Running `buddy cloud:diff` ...",X);const H=await L5("buddy cloud:diff"),Z=await i0("bunx --bun cdk diff",{cwd:u0.frameworkCloudPath(),stdin:"pipe"});if(Z.isErr())await w1("While running the cloud diff command, there was an issue",{startTime:H,useSeconds:!0},Z.error),C1.exit(f1.FatalError);await w1("Showing diff of the current, undeployed cloud changes",{startTime:H,useSeconds:!0}),console.log(Z.value),C1.exit(f1.Success)}),G.on("cloud:*",()=>{console.error("Invalid command: %s\nSee --help for a list of available commands.",G.args.join(" ")),C1.exit(1)})}import TI from"process";import{runCommit as wI}from"@stacksjs/actions";import{log as NI}from"@stacksjs/logging";function Zw1(G){const J={commit:"Commit your stashed changes",project:"Target a specific project",verbose:"Enable verbose output"};G.command("commit",J.commit).option("-p, --project [project]",J.project,{default:!1}).option("--verbose",J.verbose,{default:!1}).action(async(X)=>{NI.debug("Running `buddy commit` ...",X),await wI(X)}),G.on("commit:*",()=>{console.error("Invalid command: %s\nSee --help for a list of available commands.",G.args.join(" ")),TI.exit(1)})}import H0 from"process";import{log as cJ,outro as FV,runCommand as kI}from"@stacksjs/cli";import{path as EI}from"@stacksjs/path";import{ExitCode as W9}from"@stacksjs/types";function Uw1(G){const J={configure:"Configure options",aws:"Configure the AWS connection",project:"Target a specific project",profile:"The AWS profile to use",verbose:"Enable verbose output"};G.command("configure",J.configure).option("--aws",J.aws,{default:!1}).option("-p, --project [project]",J.project,{default:!1}).option("--verbose",J.verbose,{default:!1}).action(async(X)=>{if(cJ.debug("Running `buddy configure` ...",X),X?.aws)await jV(X),H0.exit(W9.Success);cJ.info("Not implemented yet. Please use the --aws flag to configure AWS."),H0.exit(W9.Success)}),G.command("configure:aws",J.aws).option("-p, --project [project]",J.project,{default:!1}).option("--profile",J.profile,{default:H0.env.AWS_PROFILE}).option("--verbose",J.verbose,{default:!1}).option("--access-key-id","The AWS access key").option("--secret-access-key","The AWS secret access key").option("--region","The AWS region").option("--output","The AWS output format").option("--quiet","Suppress output").action(async(X)=>{cJ.debug("Running `buddy configure:aws` ...",X),await jV(X),H0.exit(W9.Success)}),G.on("configure:*",()=>{console.error("Invalid command: %s\nSee --help for a list of available commands.",G.args.join(" ")),H0.exit(W9.FatalError)})}async function jV(G){const J=performance.now(),X=G?.accessKeyId??H0.env.AWS_ACCESS_KEY_ID,H=G?.secretAccessKey??H0.env.AWS_SECRET_ACCESS_KEY,V=G?.output??"json",Q=H0.env.AWS_PROFILE??G?.profile,Y=Q?`aws configure --profile ${Q}`:"aws configure",W=`${X}\n${H}\nus-east-1\n${V}\n`,z=await kI(Y,{cwd:EI.projectPath(),stdin:"pipe",input:W});if(z.isErr())await FV("While running the cloud command, there was an issue",{startTime:J,useSeconds:!0},z.error),H0.exit(W9.FatalError);if(G?.quiet)return;await FV("Exited",{startTime:J,useSeconds:!0})}import Z0 from"process";import{runAction as OI}from"@stacksjs/actions";import{bold as vI,cyan as _I,dim as gI,intro as bI,log as t1,runCommand as z9}from"@stacksjs/cli";import{Action as hI}from"@stacksjs/enums";import{resolve as yI}from"@stacksjs/path";import{isFolder as mI}from"@stacksjs/storage";import{ExitCode as T5}from"@stacksjs/types";import{useOnline as xI}from"@stacksjs/utils";function Iw1(G){const J={name:"The name of the project",command:"Create a new Stacks project",ui:"Are you building a UI?",components:"Are you building UI components?",webComponents:"Automagically built optimized custom elements/web components?",vue:"Automagically built a Vue component library?",views:"How about views?",functions:"Are you developing functions/composables?",api:"Are you building an API?",database:"Do you need a database?",notifications:"Do you need notifications? e.g. email, SMS, push or chat notifications",cache:"Do you need caching?",email:"Do you need email?",project:"Target a specific project",verbose:"Enable verbose output"};G.command("new [name]",J.command).alias("create [name]").option("-n, --name [name]",J.name,{default:!1}).option("-u, --ui",J.ui,{default:!0}).option("-c, --components",J.components,{default:!0}).option("-w, --web-components",J.webComponents,{default:!0}).option("-v, --vue",J.vue,{default:!0}).option("-p, --views",J.views,{default:!0}).option("-f, --functions",J.functions,{default:!0}).option("-a, --api",J.api,{default:!0}).option("-d, --database",J.database,{default:!0}).option("-ca, --cache",J.cache,{default:!1}).option("-e, --email",J.email,{default:!1}).option("-p, --project [project]",J.project,{default:!1}).option("--verbose",J.verbose,{default:!1}).action(async(X,H)=>{t1.debug("Running `buddy new <name>` ...",H);const Z=await bI("stacks new");X=X??H.name;const V=yI(Z0.cwd(),X);lI(V),cI();const Q=await aI(X,V,H);if(Q.isErr())t1.error(Q.error),Z0.exit(T5.FatalError);if(await rI(V,H),await iI(V,H),Z){const Y=performance.now()-Z;t1.success(gI(`[${Y.toFixed(2)}ms] Completed`))}t1.info(vI("Welcome to the Stacks Framework! \u269B\uFE0F")),t1.info("To learn more, visit https://stacksjs.org"),Z0.exit(T5.Success)}),G.on("new:*",()=>{console.error("Invalid command: %s\nSee --help for a list of available commands.",G.args.join(" ")),Z0.exit(1)})}function lI(G){if(mI(G))t1.error(`Path ${G} already exists`),Z0.exit(T5.FatalError)}function cI(){if(!xI())t1.info("It appears you are disconnected from the internet."),t1.info("The Stacks setup requires a brief internet connection for setup."),t1.info("For instance, it installs your dependencies from."),Z0.exit(T5.FatalError)}async function aI(G,J,X){t1.info("Setting up your stack.");const H=await z9(`bunx --bun giget stacks ${G}`,X);return t1.success(`Successfully scaffolded your project at ${_I(J)}`),H}async function rI(G,J){t1.info("Ensuring your environment is ready..."),await z9("pkgx --update ",{...J,cwd:G}),t1.success("Environment is ready")}async function iI(G,J){t1.info("Installing & setting up Stacks");let X=await z9("bun install",{...J,cwd:G});if(X?.isErr())t1.error(X.error),Z0.exit();if(X=await z9("cp .env.example .env",{...J,cwd:G}),X?.isErr())t1.error(X.error),Z0.exit(T5.FatalError);if(await OI(hI.KeyGenerate,{...J,cwd:G}),X=await z9("git init",{...J,cwd:G}),X.isErr())t1.error(X.error),Z0.exit(T5.FatalError);t1.success("Installed & set-up \uD83D\uDE80")}var{$:DV}=globalThis.Bun;import V0 from"process";import{runAction as uI}from"@stacksjs/actions";import{intro as dI,italic as U9,log as L1,outro as e4,prompts as sI,runCommand as IV}from"@stacksjs/cli";import{app as pI}from"@stacksjs/config";import{addDomain as nI,hasUserDomainBeenAddedToCloud as oI}from"@stacksjs/dns";import{Action as eI}from"@stacksjs/enums";import{path as tI}from"@stacksjs/path";import{ExitCode as A0}from"@stacksjs/types";function Ew1(G){const J={deploy:"Deploy your project",project:"Target a specific project",production:"Deploy to production",development:"Deploy to development",staging:"Deploy to staging",yes:"Confirm all prompts by default",domain:"Specify a domain to deploy to",verbose:"Enable verbose output"};G.command("deploy [env]",J.deploy).option("--domain",J.domain,{default:void 0}).option("-p, --project [project]",J.project,{default:!1}).option("--prod",J.production,{default:!0}).option("--dev",J.development,{default:!1}).option("--yes",J.yes,{default:!1}).option("--staging",J.staging,{default:!1}).option("--verbose",J.verbose,{default:!1}).action(async(X,H)=>{L1.debug("Running `buddy deploy` ...",H);const Z=await dI("buddy deploy"),V=H.domain||pI.url;if((H.prod||X==="production"||X==="prod")&&!H.yes)await GA();if(!V)L1.info("No domain found in your .env or ./config/app.ts"),L1.info("Please ensure your domain is properly configured."),L1.info("For more info, check out the docs or join our Discord."),V0.exit(A0.FatalError);L1.info(`Deploying to ${U9(V)}`),await XA(),await HA(),H.domain=await JA(V,H,Z);const Q=await uI(eI.Deploy,H);if(Q.isErr())await e4("While running the `buddy deploy`, there was an issue",{startTime:Z,useSeconds:!0},Q.error),V0.exit(A0.FatalError);await e4("Project deployed.",{startTime:Z,useSeconds:!0})}),G.on("deploy:*",()=>{L1.error("Invalid command: %s\nSee --help for a list of available commands.",G.args.join(" ")),V0.exit(1)})}async function GA(){const{confirmed:G}=await sI({type:"confirm",name:"confirmed",message:"Are you sure you want to deploy to production?"});if(!G)L1.info("Aborting deployment..."),V0.exit(A0.InvalidArgument)}async function JA(G,J,X){if(L1.debug("Configuring domain...",G),!G)L1.info("We could not identify a domain to deploy to."),L1.warn("Please set your .env or ./config/app.ts properly."),L1.info("Alternatively, specify a domain to deploy via the `--domain` flag."),console.log(""),L1.info(" \u27A1\uFE0F Example: `buddy deploy --domain example.com`"),console.log(""),V0.exit(A0.FatalError);if(G.includes("localhost"))L1.info("You are deploying to a local environment."),L1.warn("Please set your .env or ./config/app.ts properly. The domain we are deploying cannot be a `localhost` domain."),L1.info("Alternatively, specify a domain to deploy via the `--domain` flag."),console.log(""),L1.info(" \u27A1\uFE0F Example: `buddy deploy --domain example.com`"),console.log(""),V0.exit(A0.FatalError);if(await oI(G))return L1.info("Domain is properly configured"),L1.info("Your cloud is deploying..."),L1.info(`${U9("This may take a while...")}`),G;console.log(""),L1.info(` \uD83D\uDC4B It appears to be your first ${U9(G)} deployment.`),console.log(""),L1.info(U9("Let\u2019s ensure it is all connected properly.")),L1.info(U9("One moment...")),console.log("");const H=await nI({...J,deploy:!0,startTime:X});if(H.isErr())await e4("While running the `buddy deploy`, there was an issue",{startTime:X,useSeconds:!0},H.error),V0.exit(A0.FatalError);await e4("Added your domain.",{startTime:X,useSeconds:!0}),V0.exit(A0.Success)}async function XA(){if(L1.info("Ensuring AWS is configured..."),(await IV("buddy configure:aws",{silent:!0})).isErr())L1.error("AWS is not configured properly.",{shouldExit:!1}),L1.error("Please run `buddy configure:aws` to set up your AWS credentials.");L1.success("AWS is configured")}async function HA(){try{return L1.info("Ensuring AWS is bootstrapped..."),await IV("aws cloudformation describe-stacks --stack-name stacks-toolkit",{silent:!0}),L1.success("AWS is bootstrapped"),!0}catch(G){L1.debug(`Not yet bootstrapped. Failed with code ${G.exitCode}`),L1.debug(G.stdout.toString()),L1.debug(G.stderr.toString()),L1.info("AWS is not bootstrapped yet"),L1.info("Bootstrapping. This may take a few moments...");try{DV.cwd(tI.frameworkCloudPath());const J=await DV`bun run bootstrap`;return console.log(J),!0}catch(J){L1.error("Failed to bootstrap AWS"),console.error(J),V0.exit(A0.FatalError)}}}import d2 from"process";import{runAction as uJ,runApiDevServer as t4,runComponentsDevServer as aJ,runDashboardDevServer as rJ,runDesktopDevServer as ZA,runDocsDevServer as iJ,runFrontendDevServer as AV,runSystemTrayDevServer as CV}from"@stacksjs/actions";import{intro as GG,log as y2,outro as d0,prompts as VA,runCommand as QA}from"@stacksjs/cli";import{Action as dJ}from"@stacksjs/enums";import{libsPath as YA}from"@stacksjs/path";import{ExitCode as w5}from"@stacksjs/types";function mw1(G){const J={dev:"Start development server",frontend:"Start the frontend development server",components:"Start the Components development server",desktop:"Start the Desktop App development server",dashboard:"Start the Dashboard development server",api:"Start the local API development server",email:"Start the Email development server",docs:"Start the Documentation development server",systemTray:"Start the System Tray development server",interactive:"Get asked which development server to start",select:"Which development server are you trying to start?",withLocalhost:"Include the localhost URL in the output",project:"Target a specific project",verbose:"Enable verbose output"};G.command("dev [server]",J.dev).option("-f, --frontend",J.frontend).option("-a, --api",J.api).option("-e, --email",J.email).option("-c, --components",J.components).option("-d, --dashboard",J.dashboard).option("-t, --desktop",J.desktop).option("-d, --docs",J.docs).option("-t, --system-tray",J.systemTray).option("-i, --interactive",J.interactive,{default:!1}).option("-l, --with-localhost",J.withLocalhost,{default:!1}).option("-p, --project [project]",J.project,{default:!1}).option("--verbose",J.verbose,{default:!1}).action(async(X,H)=>{y2.debug("Running `buddy dev [server]` ...",H);const Z=await GG("buddy dev");switch(X){case"frontend":await AV(H);break;case"api":await t4(H);break;case"components":await aJ(H);break;case"dashboard":await rJ(H);break;case"desktop":await ZA(H);break;case"system-tray":await CV(H);break;case"docs":await iJ(H);break;default:}if(zA(H)){const Q=(await VA({type:"select",name:"value",message:J.select,choices:[{value:"all",title:"All"},{value:"frontend",title:"Frontend"},{value:"api",title:"Backend"},{value:"dashboard",title:"Dashboard"},{value:"desktop",title:"Desktop"},{value:"email",title:"Email"},{value:"components",title:"Components"},{value:"docs",title:"Documentation"}]})).value;if(Q==="components")await aJ(H);else if(Q==="api")await t4(H);else if(Q==="dashboard")await rJ(H);else if(Q==="docs")await iJ(H);else y2.error("Invalid option during interactive mode"),d2.exit(w5.InvalidArgument)}else{if(H.components)await aJ(H);if(H.docs)await iJ(H);else if(H.api)await t4(H)}await WA(H),d0("Exited",{startTime:Z,useSeconds:!0}),d2.exit(w5.Success)}),G.command("dev:components",J.components).option("-p, --project [project]",J.project,{default:!1}).option("--verbose",J.verbose,{default:!1}).action(async(X)=>{y2.debug("Running `buddy dev:components` ...",X);const H=await GG("buddy dev:components"),Z=await QA("bun run dev",{cwd:YA("components/vue")});if(X.verbose)y2.info("buddy dev:components result",Z);if(Z.isErr())await d0("While running the dev:components command, there was an issue",{startTime:H,useSeconds:!0},Z.error),d2.exit();console.log(""),await d0("Exited",{startTime:H,useSeconds:!0}),d2.exit(w5.Success)}),G.command("dev:docs",J.docs).option("-p, --project [project]",J.project,{default:!1}).option("--verbose",J.verbose,{default:!1}).action(async(X)=>{y2.debug("Running `buddy dev:docs` ...",X);const H=await GG("buddy dev:docs"),Z=await uJ(dJ.DevDocs,X);if(Z.isErr())await d0("While running the dev:docs command, there was an issue",{startTime:H,useSeconds:!0},Z.error),d2.exit();console.log(""),await d0("Exited",{startTime:H,useSeconds:!0}),d2.exit(w5.Success)}),G.command("dev:desktop",J.desktop).option("-p, --project [project]",J.project,{default:!1}).option("--verbose",J.verbose,{default:!1}).action(async(X)=>{y2.debug("Running `buddy dev:desktop` ...",X);const H=await GG("buddy dev:desktop"),Z=await uJ(dJ.DevDesktop,X);if(Z.isErr())await d0("While running the dev:desktop command, there was an issue",{startTime:H,useSeconds:!0},Z.error),d2.exit();console.log(""),await d0("Exited",{startTime:H,useSeconds:!0}),d2.exit(w5.Success)}),G.command("dev:api",J.api).option("-p, --project [project]",J.project,{default:!1}).option("--verbose",J.verbose,{default:!1}).action(async(X)=>{y2.debug("Running `buddy dev:api` ...",X),await t4(X)}),G.command("dev:frontend",J.frontend).alias("dev:pages").alias("dev:views").option("-p, --project [project]",J.project,{default:!1}).option("--verbose",J.verbose,{default:!1}).action(async(X)=>{y2.debug("Running `buddy dev:frontend` ...",X),await AV(X)}),G.command("dev:dashboard",J.dashboard).alias("dev:admin").option("-p, --project [project]",J.project,{default:!1}).option("--verbose",J.verbose,{default:!1}).action(async(X)=>{y2.debug("Running `buddy dev:dashboard` ...",X),await rJ(X)}),G.command("dev:system-tray",J.systemTray).alias("dev:tray").option("-p, --project [project]",J.project,{default:!1}).option("--verbose",J.verbose,{default:!1}).action(async(X)=>{y2.debug("Running `buddy dev:system-tray` ...",X),await CV(X)}),G.on("dev:*",()=>{console.error("Invalid command: %s\nSee --help for a list of available commands.",G.args.join(" ")),d2.exit(1)})}async function WA(G){const J=await uJ(dJ.Dev,G);if(J.isErr())y2.error("While running the dev command, there was an issue",J.error),d2.exit(w5.InvalidArgument)}function zA(G){return G.interactive}import fV from"process";import{log as UA,runCommand as KA}from"@stacksjs/cli";import{config as BA}from"@stacksjs/config";import{ExitCode as $A}from"@stacksjs/types";function iw1(G){const J={dns:"Lists the DNS records for a domain",query:"Host name or IP address to query",type:"Type of the DNS record being queried (A, MX, NS\u2026)",nameserver:"Address of the nameserver to send packets to",class:"Network class of the DNS record being queried (IN, CH, HS)",udp:"Use the DNS protocol over UDP",tcp:"Use the DNS protocol over TCP",tls:"Use the DNS-over-TLS protocol",https:"Use the DNS-over-HTTPS protocol",short:"Short mode: display nothing but the first result",json:"Display the output as JSON",pretty:"Display the output as JSON in a pretty format",project:"Target a specific project",verbose:"Enable verbose output"};G.command("dns [domain]",J.dns).option("-q, --query <query>",J.query).option("-t, --type <type>",J.type,{default:"ANY"}).option("-n, --nameserver <nameserver>",J.nameserver).option("--class <class>",J.nameserver).option("-U, --udp",J.udp).option("-T, --tcp",J.tcp).option("-S, --tls",J.tls).option("-H, --https",J.https).option("-1, --short",J.short,{default:!1}).option("-J, --json",J.json,{default:!1}).option("-p, --pretty",J.pretty,{default:!0}).option("-p, --project [project]",J.project,{default:!1}).option("--verbose",J.verbose,{default:!1}).action(async(X,H)=>{UA.debug("Running `buddy dns [domain]` ...",H),H.pretty=void 0,H.p=void 0;const Z=Object.entries(H).filter(([V,Q])=>V!=="--"&&V.length>1&&Q!==!1).map(([V,Q])=>`--${V} ${Q}`).join(" ");await KA(`dog ${X||BA.app.url} ${Z}`),fV.exit($A.Success)}),G.on("dns:*",()=>{console.error("Invalid command: %s\nSee --help for a list of available commands.",G.args.join(" ")),fV.exit(1)})}import Q0 from"process";import{runAction as SV}from"@stacksjs/actions";import{bgCyan as RA,bold as MA,intro as sJ,italic as s0,log as JG,outro as C0,prompts as PV}from"@stacksjs/cli";import{config as LV}from"@stacksjs/config";import{addDomain as qA}from"@stacksjs/dns";import{Action as TV}from"@stacksjs/enums";import{ExitCode as f0}from"@stacksjs/types";function GN1(G){const J={purchase:"Purchase a domain",add:"Add a domain to your cloud",remove:"Remove a domain from your cloud",skip:"Skip the confirmation prompt",project:"Target a specific project",verbose:"Enable verbose output"},X=LV.dns.contactInfo;G.command("domains:purchase <domain>",J.purchase).option("--years <years>","Number of years to purchase the domain for",{default:1}).option("--privacy","Enable privacy protection",{default:!0}).option("--auto-renew","Enable auto-renew",{default:!0}).option("--first-name <firstName>","Registrant first name",{default:X?.firstName}).option("--last-name <lastName>","Registrant last name",{default:X?.lastName}).option("--organization <organization>","Registrant organization name",{default:X?.organizationName}).option("--address-line1 <address>","Registrant address line 1",{default:X?.addressLine1}).option("--address-line2 <address>","Registrant address line 2",{default:X?.addressLine2}).option("--city <city>","Registrant city",{default:X?.city}).option("--state <state>","Registrant state",{default:X?.state}).option("--country <country>","Registrant country code",{default:X?.countryCode}).option("--zip <zip>","Registrant zip",{default:X?.zip}).option("--phone <phone>","Registrant phone",{default:X?.phoneNumber}).option("--email <email>","Registrant email",{default:X?.email}).option("--admin-first-name <firstName>","Admin first name",{default:X?.admin?.firstName||X?.firstName}).option("--admin-last-name <lastName>","Admin last name",{default:X?.admin?.lastName||X?.lastName}).option("--admin-organization <organization>","Admin organization",{default:X?.admin?.organizationName||X?.organizationName}).option("--admin-address-line1 <address>","Admin address line 1",{default:X?.admin?.addressLine1||X?.addressLine1}).option("--admin-address-line2 <address>","Admin address line 2",{default:X?.admin?.addressLine2||X?.addressLine2}).option("--admin-city <city>","Admin city",{default:X?.admin?.city||X?.city}).option("--admin-state <state>","Admin state",{default:X?.admin?.state||X?.state}).option("--admin-country <country>","Admin country code",{default:X?.admin?.countryCode||X?.countryCode}).option("--admin-zip <zip>","Admin zip",{default:X?.admin?.zip||X?.zip}).option("--admin-phone <phone>","Admin phone number",{default:X?.admin?.phoneNumber||X?.phoneNumber}).option("--admin-email <email>","Admin email",{default:X?.admin?.email||X?.email}).option("--tech-first-name <firstName>","Tech first name",{default:X?.tech?.firstName||X?.firstName}).option("--tech-last-name <lastName>","Tech last name",{default:X?.tech?.lastName||X?.lastName}).option("--tech-organization <organization>","Tech organization name",{default:X?.tech?.organizationName||X?.organizationName}).option("--tech-address-line1 <address>","Tech address line 1",{default:X?.tech?.addressLine1||X?.addressLine1}).option("--tech-address-line2 <address>","Tech address line 2",{default:X?.tech?.addressLine2||X?.addressLine2}).option("--tech-city <city>","Tech city",{default:X?.tech?.city||X?.city}).option("--tech-state <state>","Tech state",{default:X?.tech?.state||X?.state}).option("--tech-country <country>","Tech country",{default:X?.tech?.countryCode||X?.countryCode}).option("--tech-zip <zip>","Tech zip",{default:X?.tech?.zip||X?.zip}).option("--tech-phone <phone>","Tech phone",{default:X?.tech?.phoneNumber||X?.phoneNumber}).option("--tech-email <email>","Tech email",{default:X?.tech?.email||X?.email}).option("--privacy-admin","Enable privacy protection for admin",{default:X?.privacyAdmin||X?.privacy||!0}).option("--privacy-tech","Enable privacy protection for tech",{default:X?.privacyTech||X?.privacy||!0}).option("--privacy-registrant","Enable privacy protection for registrant",{default:X?.privacyRegistrant||X?.privacy||!0}).option("--contact-type <type>","Contact type",{default:"person"}).option("-p, --project [project]",J.project,{default:!1}).option("--verbose",J.verbose,{default:!1}).action(async(H,Z)=>{JG.debug("Running `buddy domains:purchase <domain>` ...",Z),Z.domain=H;const V=await sJ("buddy domains:purchase"),Q=await SV(TV.DomainsPurchase,Z);if(Q.isErr())await C0("While running the domains:purchase command, there was an issue",{startTime:V,useSeconds:!0},Q.error),Q0.exit(f0.FatalError);const{confirm:Y}=await PV({name:"confirm",type:"confirm",message:`Would you like to set ${H} as your APP_URL?`});if(!Y)await C0(`Alrighty! ${s0(H)} was added to your account.`,{startTime:V,useSeconds:!0,type:"success"}),JG.info(`Please note, you may need to validate your email address. Check your ${s0(Z.registrantEmail)} inbox.`),Q0.exit(f0.Success);const{writeEnv:W}=await import("./chunk-3v3h2zkp.js");W("APP_URL",H);let z=`Great! ${s0(H)} was added to your account.`;z+=`\n\nAnd your APP_URL has been set to ${s0(H)}.
22
+ \nPlease note, this change has not been deployed yet.
23
+ \nThe next time you run ${RA(s0(MA(" buddy deploy ")))}, your app will deploy to ${s0(H)}.
24
+ \n${s0("You may need to deploy 2-3 times for the changes to take effect. Issue tracked here: https://github.com/stacksjs/stacks/issues/685")}`,await C0(z,{startTime:V,useSeconds:!0,type:"info"}),Q0.exit(f0.Success)}),G.command("domains:add <domain>",J.add).option("--verbose",J.verbose,{default:!1}).action(async(H)=>{JG.debug("Running `buddy domains:add <domain>` ...",H);const Z=await sJ("buddy domains:add"),V=await qA({...H,startTime:Z});if(V.isErr())await C0("While running the `buddy deploy`, there was an issue",{startTime:Z,useSeconds:!0},V.error),Q0.exit(f0.FatalError);await C0("Added your domain.",{startTime:Z,useSeconds:!0}),Q0.exit(f0.Success)}),G.command("domains:remove <domain>",J.remove).option("--yes",J.skip,{default:!1}).option("--verbose",J.verbose,{default:!1}).action(async(H)=>{JG.debug("Running `buddy domains:remove <domain>` ...",H);const Z=H.domain||LV.app.url,V={...H,domain:Z},Q=await sJ("buddy domains:remove");if(!V.yes){const{confirm:W}=await PV({name:"confirm",type:"confirm",message:`Are you sure you want to remove ${Z}?`});if(!W)await C0("Cancelled the domains:remove command",{startTime:Q,useSeconds:!0,type:"info"}),Q0.exit(f0.Success)}const Y=await SV(TV.DomainsRemove,V);if(Y.isErr())await C0("While running the domains:remove command, there was an issue",{startTime:Q,useSeconds:!0},Y.error),Q0.exit(f0.FatalError);await C0("Removed your domain DNS records.",{startTime:Q,useSeconds:!0}),Q0.exit(f0.Success)}),G.on("domains:*",()=>{console.error("Invalid command: %s\nSee --help for a list of available commands.",G.args.join(" ")),Q0.exit(1)})}import pJ from"process";import{runAction as FA}from"@stacksjs/actions";import{intro as jA,log as DA,outro as wV}from"@stacksjs/cli";import{Action as IA}from"@stacksjs/enums";import{ExitCode as NV}from"@stacksjs/types";function YN1(G){const J={fresh:"Re-installs your npm dependencies",project:"Target a specific project",verbose:"Enable verbose output"};G.command("fresh",J.fresh).option("-p, --project [project]",J.project,{default:!1}).option("--verbose",J.verbose,{default:!1}).action(async(X)=>{DA.debug("Running `buddy fresh` ...",X);const H=await jA("buddy fresh"),Z=await FA(IA.Fresh,{...X,stdout:"inherit"});if(Z.isErr())await wV("While running `buddy fresh`, there was an issue",{startTime:H,useSeconds:!0},Z.error),pJ.exit(NV.FatalError);await wV("Freshly reinstalled your dependencies",{startTime:H,useSeconds:!0}),pJ.exit(NV.Success)}),G.on("fresh:*",()=>{console.error("Invalid command: %s\nSee --help for a list of available commands.",G.args.join(" ")),pJ.exit(1)})}import WH from"process";import{generateComponentMeta as jS1,generateCoreSymlink as DS1,generateIdeHelpers as IS1,generateLibEntries as AS1,generateOpenApiSpec as CS1,generatePkgxConfig as fS1,generateTypes as SS1,generateVsCodeCustomData as PS1,generateWebTypes as LS1,invoke as TS1}from"@stacksjs/actions";import{intro as jq,log as g2,outro as Dq}from"@stacksjs/cli";import{bold as fb1,dim as Sb1,green as Pb1,italic as Lb1,log as Tb1}from"@stacksjs/cli";import{path as Nb1}from"@stacksjs/path";import{fs as Eb1,glob as Ob1}from"@stacksjs/storage";var Qq=w2(C7(),1),Yq=w2(lG(),1),Wq=w2(c9(),1);import{italic as G9,log as x1}from"@stacksjs/cli";import{handleError as QH}from"@stacksjs/error-handling";import{path as h1}from"@stacksjs/path";import{fs as o1,globSync as R5}from"@stacksjs/storage";function t3(G){let J=G.trim();J=J.replace(Ef1,"$1\0$2").replace(Of1,"$1\0$2"),J=J.replace(_f1,"\0");let X=0,H=J.length;while(J.charAt(X)==="\0")X++;if(X===H)return[];while(J.charAt(H-1)==="\0")H--;return J.slice(X,H).split(/\0/g)}function gf1(G){const J=t3(G);for(let X=0;X<J.length;X++){const H=J[X],Z=vf1.exec(H);if(Z){const V=Z.index+(Z[1]??Z[2]).length;J.splice(X,1,H.slice(0,V),H.slice(V))}}return J}function GH(G,J){const[X,H,Z]=Uq(G,J);return X+H.map(zq(J?.locale)).join(J?.delimiter??" ")+Z}function $5(G,J){const[X,H,Z]=Uq(G,J),V=zq(J?.locale),Q=bf1(J?.locale),Y=J?.mergeAmbiguousCharacters?hf1(V,Q):yf1(V,Q);return X+H.map(Y).join(J?.delimiter??"")+Z}function F2(G,J){return GH(G,{delimiter:"_",...J})}function zq(G){return G===!1?(J)=>J.toLowerCase():(J)=>J.toLocaleLowerCase(G)}function bf1(G){return G===!1?(J)=>J.toUpperCase():(J)=>J.toLocaleUpperCase(G)}function hf1(G,J){return(X)=>`${J(X[0])}${G(X.slice(1))}`}function yf1(G,J){return(X,H)=>{const Z=X[0];return(H>0&&Z>="0"&&Z<="9"?"_"+Z:J(Z))+G(X.slice(1))}}function Uq(G,J={}){const X=J.split??(J.separateNumbers?gf1:t3),H=J.prefixCharacters??"",Z=J.suffixCharacters??"";let V=0,Q=G.length;while(V<G.length){const Y=G.charAt(V);if(!H.includes(Y))break;V++}while(Q>V){const Y=Q-1,W=G.charAt(Y);if(!Z.includes(W))break;Q=Y}return[G.slice(0,V),X(G.slice(V,Q)),G.slice(Q)]}var Ef1=/([\p{Ll}\d])(\p{Lu})/gu,Of1=/(\p{Lu})([\p{Lu}][\p{Ll}])/gu,vf1=/(\d)\p{Ll}|(\p{L})\d/u,_f1=/[^\p{L}\d]+/giu;var mf1=new Set([".","!","?"]),bb1=new Set([...mf1,":",'"',"'","\u201D"]);var a2=w2(Kq(),1),t5=(G,J,X)=>{if(J!==void 0&&X)return`${J} ${a2.plural(G)}`;return a2.plural(G)},qJ=(G)=>a2.singular(G);var of1=w2(Bq(),1);import{isString as Bh1}from"@stacksjs/validation";import{isString as GS1}from"@stacksjs/validation";function J0(G,J){if(G.name)return G.name;return h1.basename(J).replace(/\.ts$/,"")}function t9(G,J){if(G.table)return G.table;return F2(t5(J0(G,J)))}function JS1(G,J){const X=[G,J];return X.sort(),X[0]=qJ(X[0]||""),X.join("_")}function XS1(G,J){return J in G}async function Rq(G,J){const X=["hasOne","belongsTo","hasMany","belongsToMany","hasOneThrough"],H=[];for(let Z of X)if(XS1(G,Z))for(let V of G[Z]||[]){let Q=V.model;if(GS1(V))Q=V;const Y=h1.userModelsPath(`${Q}.ts`),W=(await import(Y)).default,z=t9(W,Y),B=J.toLowerCase();H.push({relationship:Z,model:Q,table:z,foreignKey:V.foreignKey||`${B}_id`,relationName:V.relationName||"",throughModel:V.through||"",throughForeignKey:V.throughForeignKey||"",pivotTable:V?.pivotTable||JS1(t5(B),t5(W.table||""))})}return H}function HS1(G){const J=/belongs/,X=/has/;if(/Through/.test(G))return"throughType";if(J.test(G))return"belongsType";if(X.test(G))return"hasType";return""}function ZS1(G){const J=/One/;if(/Many/.test(G))return"many";if(J.test(G))return"one";return""}async function $q(G,J){const X=[];if("belongsToMany"in G){const H=G.belongsToMany||[];for(let Z of H){const Q=(await import(h1.userModelsPath(`${Z}.ts`))).default,Y=J0(G,J),W=Y.toLowerCase(),z=typeof Z==="object"&&"firstForeignKey"in Z?Z.firstForeignKey:`${Y.toLowerCase()}_${G.primaryKey}`,B=typeof Z==="object"&&"secondForeignKey"in Z?Z.secondForeignKey:`${Q.name?.toLowerCase()}_${G.primaryKey}`;X.push({table:(typeof Z==="object"&&"pivotTable"in Z?Z.pivotTable:void 0)??`${W}_${Q.table}`,firstForeignKey:z,secondForeignKey:B})}return X}return[]}async function Mq(G,J){const X=R5([h1.userModelsPath("*.ts")],{absolute:!0}),H=[];for(let Z=0;Z<X.length;Z++){const V=X[Z],Q=await import(V);if(J===Q.default.name)continue;const Y=J0(Q,V),W=await Rq(Q.default,Y);if(!W.length)continue;const z=W.find((B)=>B.model===J);if(z)H.push(z)}return H}function VS1(G){if(G===void 0)return[];return Object.keys(G).filter((J)=>{if(G===void 0)return!1;return G[J]?.hidden===!0})}function QS1(G){if(G===void 0)return[];return Object.keys(G).filter((J)=>{if(G===void 0)return!1;return G[J]?.fillable===!0}).map((J)=>F2(J))}async function YS1(){const G=R5([h1.userModelsPath("*.ts")],{absolute:!0});let J="export type ModelNames = ";for(let X=0;X<G.length;X++){const H=G[X],Z=(await import(H)).default,V=J0(Z,H);if(J+=`'${V}'`,X<G.length-1)J+=" | ";const Q=h1.dirname(h1.typesPath("src/model-names.ts"));await o1.promises.mkdir(Q,{recursive:!0});const Y=h1.typesPath("src/model-names.ts");await o1.promises.writeFile(Y,J,"utf8")}}async function WS1(){const G=R5([h1.userModelsPath("*.ts")],{absolute:!0}),J=Bun.file(h1.frameworkPath("types/requests.d.ts"));let X="",H="",Z="import { Request } from '../core/router/src/request'\nimport type { VineType } from '@stacksjs/types'\n\n";Z+=`interface ValidationField {
25
+ rule: VineType
26
+ message: Record<string, string>
27
+ }\n\n`,Z+=`interface CustomAttributes {
28
+ [key: string]: ValidationField
29
+ }\n\n`;for(let Q=0;Q<G.length;Q++){let Y="",W="",z="",B="import { Request } from '@stacksjs/router'\nimport { validateField } from '@stacksjs/validation'\nimport { customValidate } from '@stacksjs/validation'\n\n";const q=G[Q],F=(await import(q)).default,j=J0(F,q),f=F?.traits?.useTimestamps??F?.traits?.timestampable??!0,h=F?.traits?.useSoftDeletes??F?.traits?.softDeletable??!1,w=await qq(F,q);W+=" id: number\n",z+="public id = 1\n",Y+=" get(key: 'id'): number\n";const v={};for(let z1 of w){const I1=z1.fieldArray?.entity==="enum"?"string[]":z1.fieldArray?.entity;let E1="''";if(z1.fieldArray?.entity==="boolean")E1=!1;if(z1.fieldArray?.entity==="number")E1=0;const r=F2(z1.field);if(typeof I1==="string"){if(v[I1])v[I1].push(`'${r}'`);else v[I1]=[`'${r}'`];W+=` ${F2(z1.field)}: ${I1}\n `,z+=`public ${r} = ${E1}\n`}}for(let[z1,I1]of Object.entries(v)){const E1=I1.join(" | ");Y+=` get(key: ${E1}): ${z1}\n`}const b=await Mq(F,j);for(let z1 of b)W+=` ${z1.foreignKey}: number\n `,Y+=` get(key: '${z1.foreignKey}'): string \n`,z+=`public ${z1.foreignKey} = 0\n`;if(f)z+=`public created_at = new Date
30
+ public updated_at = new Date
31
+ `;if(h)z+=`
32
+ public deleted_at = ''
33
+ `;W+=`created_at?: Date
34
+ updated_at?: Date
35
+ deleted_at?: Date`;const $1=Bun.file(h1.frameworkPath(`requests/${j}Request.ts`));if(X=`${j}RequestType`,H+=`${X}`,Q<G.length-1)H+=" | ";B+=`import type { ${X} } from '../types/requests'\n\n`,B+=`interface ValidationField {
36
+ rule: ReturnType<typeof schema.string>
37
+ message: Record<string, string>
38
+ }\n\n`,B+=`interface CustomAttributes {
39
+ [key: string]: ValidationField
40
+ }\n`;const G1=`export interface ${j}RequestType extends Request {
41
+ validate(attributes?: CustomAttributes): void
42
+ ${Y}
43
+ all(): RequestData${j}
44
+ ${W}
45
+ }\n\n`;Z+=`interface RequestData${j} {
46
+ ${W}
47
+ }\n`,B+=`interface RequestData${j} {
48
+ ${W}
49
+ }\n`,Z+=G1,B+=`export class ${j}Request extends Request<RequestData${j}> implements ${j}RequestType {
50
+ ${z}
51
+ public async validate(attributes?: CustomAttributes): Promise<void> {
52
+ if (attributes === undefined || attributes === null) {
53
+ await validateField('${j}', this.all())
54
+ } else {
55
+ await customValidate(attributes, this.all())
56
+ }
57
+
58
+ }
59
+ }
60
+
61
+ export const request = new ${j}Request()
62
+ `,$1.writer().write(B)}Z+=`export type ModelRequest = ${H}`,J.writer().write(Z)}async function YH(G,J,X){const H=G.charAt(0).toUpperCase()+G.slice(1);let Z="GET",V="import { Action } from '@stacksjs/actions'\n";V+=`import ${J} from '../../orm/src/models/${J}'\n`;let Q="";if(G==="index")Q+=`async handle() {
63
+ return await ${J}.all()
64
+ },`,Z="GET";if(G==="show")V+=` import type { ${J}RequestType } from '../../types/requests'\n\n`,Q+=`async handle(request: ${J}RequestType) {
65
+ const id = await request.getParam('id')
66
+
67
+ return await ${J}.findOrFail(Number(id))
68
+ },`,Z="GET";if(G==="destroy")V+=` import type { ${J}RequestType } from '../../types/requests'\n\n`,Q+=`async handle(request: ${J}RequestType) {
69
+ const id = request.getParam('id')
70
+
71
+ const model = await ${J}.findOrFail(Number(id))
72
+
73
+ model.delete()
74
+
75
+ return 'Model deleted!'
76
+ },`,Z="DELETE";if(G==="store")V+=` import type { ${J}RequestType } from '../../types/requests'\n\n`,Q+=`async handle(request: ${J}RequestType) {
77
+ await request.validate()
78
+ const model = await ${J}.create(request.all())
79
+
80
+ return model
81
+ },`,Z="POST";if(G==="update")V+=` import type { ${J}RequestType } from '../../types/requests'\n\n`,Q+=`async handle(request: ${J}RequestType) {
82
+ await request.validate()
83
+
84
+ const id = request.getParam('id')
85
+ const model = await ${J}.findOrFail(Number(id))
86
+
87
+ return model.update(request.all())
88
+ },`,Z="PATCH";V+=`export default new Action({
89
+ name: '${J} ${H}',
90
+ description: '${J} ${H} ORM Action',
91
+ method: '${Z}',
92
+ ${Q}
93
+ })
94
+ `;const Y=X||`${J}${H}OrmAction.ts`,W=h1.builtUserActionsPath(`src/${Y}`);if(o1.existsSync(W))return;Bun.file(W).writer().write(V)}async function qq(G,J){let X=G.attributes;if(!X)X={};const H=Object.keys(X),Z=[],Q=await Bun.file(J).text(),Y=/rule:.*$/gm;let W;W=Y.exec(Q);while(W!==null)Z.push(W[0]),W=Y.exec(Q);return H.map((B,q)=>{const F=X[B];let j=null,f=!1;if(F)j=F||null,f=F.unique||!1;return{field:B,default:j,unique:f,fieldArray:zS1(Z[q]??"")}})}function zS1(G){const J=G.split("rule: schema.");if(J.length!==2)return null;if(!J[1])J[1]="";const X=J[1].replace(/,/g,"");if(!X)return null;const H=X.split("."),Z=/\(([^)]+)\)/;return H.map((V)=>{const Q=Z.exec(V),Y=Q?Q[1]:null;return{entity:V.replace(Z,"").replace(/\(|\)/g,""),charValue:Y}})[0]||null}async function US1(G){const X=Bun.file(h1.frameworkPath("orm/routes.ts")).writer();let H="import { route } from '@stacksjs/router'\n\n\n";for(let Z of G){x1.info(`Generating API Routes for: ${G9(Z)}`);let V="";const Q=(await import(Z)).default,Y=J0(Q,Z),W=t9(Q,Z);if(Q.traits?.useApi){if(Q.traits?.useApi&&typeof Q.traits.useApi==="object"){const z=Q.traits.useApi?.middleware,B=Q.traits.useApi?.uri||W;if(z){if(V=".middleware([",z.length){for(let q=0;q<z.length;q++)if(V+=`'${z[q]}'`,q<z.length-1)V+=","}V+="])"}if(Q.traits.useApi.routes&&Object.keys(Q.traits.useApi.routes).length>0){const q=Q.traits.useApi.routes;if(Array.isArray(q)){if(q.length){for(let F of q)if(typeof F==="string"){await YH(F,Y);const j=F.charAt(0).toUpperCase()+F.slice(1);if(F==="index")H+=`route.get('${B}', '${Y}${j}OrmAction').middleware(['Api'])\n\n`;if(F==="show")H+=`route.get('${B}/{id}', '${Y}${j}OrmAction').middleware(['Api'])\n\n`;if(F==="store")H+=`route.post('${B}', '${Y}${j}OrmAction').middleware(['Api'])\n\n`;if(F==="update")H+=`route.patch('${B}/{id}', '${Y}${j}OrmAction').middleware(['Api'])\n\n`;if(F==="destroy")H+=`route.delete('${B}/{id}', '${Y}${j}OrmAction').middleware(['Api'])\n\n`}}}else if(typeof q==="object"){for(let F in q)if(Object.prototype.hasOwnProperty.call(q,F)){const j=q[F];if(await YH(F,Y,j),typeof j!=="string")throw new TypeError(`Invalid route path for ${F}`);const f=`${j}.ts`;if(F==="index")H+=`route.get('${B}', '${f}').${V}\n\n`;if(F==="show")H+=`route.get('${B}/{id}', '${f}').${V}\n\n`;if(F==="store")H+=`route.post('${B}', '${f}').${V}\n\n`;if(F==="update")H+=`route.patch('${B}/{id}', '${f}').${V}\n\n`;if(F==="destroy")H+=`route.delete('${B}/{id}', '${f}').${V}\n\n`}}}}if(typeof Q.traits.useApi==="boolean"&&Q.traits?.useApi){const z=W,B=["index","show","store","update","destroy"];for(let q of B){await YH(q,Y);const F=q.charAt(0).toUpperCase()+q.slice(1),j=h1.builtUserActionsPath(`src/${Y}${F}OrmAction.ts`,{relative:!0});if(q==="index")H+=`route.get('${z}', '${j}').middleware(['Api'])\n\n`;if(q==="show")H+=`route.get('${z}/{id}', '${j}').middleware(['Api'])\n\n`;if(q==="store")H+=`route.post('${z}', '${j}').middleware(['Api'])\n\n`;if(q==="update")H+=`route.patch('${z}/{id}', '${j}').middleware(['Api'])\n\n`;if(q==="destroy")H+=`route.delete('${z}/{id}', '${j}').middleware(['Api'])\n\n`}}}}X.write(H),await X.end()}async function KS1(G){const J=h1.frameworkPath("orm/src/types.ts");if(o1.existsSync(J))await o1.promises.unlink(J);if(G){const H=h1.frameworkPath(`orm/src/models/${G}.ts`);if(o1.existsSync(H))await o1.promises.unlink(H);return}const X=R5([h1.frameworkPath("orm/src/models/*.ts")],{absolute:!0});await Promise.all(X.map(async(H)=>{if(o1.existsSync(H))x1.info(`Deleting Model: ${G9(H)}`),await o1.promises.unlink(H),x1.success(`Deleted Model: ${G9(H)}`)}))}async function BS1(){const G=h1.corePath("types/src/model-names.ts");if(o1.existsSync(G))await o1.promises.unlink(G)}async function $S1(G){const J=h1.frameworkPath("types/requests.d.ts");if(o1.existsSync(J))await o1.promises.unlink(J);if(G){const H=h1.frameworkPath(`requests/${G}.ts`);if(o1.existsSync(H))await o1.promises.unlink(H);return}const X=R5([h1.frameworkPath("requests/*.ts")],{absolute:!0});for(let H of X)if(o1.existsSync(H))await o1.promises.unlink(H)}async function RS1(){const G=h1.frameworkPath("orm/routes.ts");if(o1.existsSync(G))await o1.promises.unlink(G)}async function MS1(){const G=R5([h1.userModelsPath("*.ts")],{absolute:!0});let J="";for(let V of G){const Q=(await import(V)).default,Y=t9(Q,V),W=J0(Q,V),B=`${Y.split("_").map((q)=>q.charAt(0).toUpperCase()+q.slice(1)).join("")}`;J+=`import type { ${B}Table } from '../src/models/${W}'\n`}J+="import type { Generated } from 'kysely'\n\n";let X="";for(let V of G){const Q=(await import(V)).default,Y=J0(Q,V),W=await $q(Q,Y);for(let z of W)X=`${z.table.split("_").map((q)=>q.charAt(0).toUpperCase()+q.slice(1)).join("")}Table`,J+=`export interface ${X} {
95
+ id?: Generated<number>
96
+ ${z.firstForeignKey}: number
97
+ ${z.secondForeignKey}: number
98
+ }\n\n`}J+="\nexport interface MigrationsTable {\n",J+="name: string\n timestamp: string \n }",J+="\nexport interface PasskeysTable {\n",J+=" id: string\n",J+=" cred_public_key: string\n",J+=" user_id: number;\n",J+=" webauthn_user_id: string\n",J+=" counter: number\n",J+=" credential_type: string\n",J+=" device_type: string\n",J+=" backup_eligible: boolean\n",J+=" backup_status: boolean\n",J+=" transports?: string\n",J+=" created_at?: Date\n",J+=" last_used_at: string \n",J+="}\n\n",J+="\nexport interface Database {\n";for(let V of G){const Q=(await import(V)).default,Y=J0(Q,V),W=t9(Q,V),z=await $q(Q,Y);for(let F of z)J+=` ${F.table}: ${X}\n`;const q=`${W.split("_").map((F)=>F.charAt(0).toUpperCase()+F.slice(1)).join("")}Table`;J+=` ${W}: ${q}\n`}J+="passkeys: PasskeysTable\n",J+="migrations: MigrationsTable",J+="}";const Z=Bun.file(h1.frameworkPath("orm/src/types.ts")).writer();Z.write(J),await Z.end()}async function qS1(G,J,X,H){const Z=$5(G),V=J.toLowerCase();let Q="",Y="",W="{\n",z="",B="",q="",F="",j="",f="",h="",w="",v="",b="",$1="";const G1=await Rq(X,J);for(let i of G1)j+=`import ${i.model} from './${i.model}'\n\n`;const R1=X?.traits?.useTimestamps??X?.traits?.timestampable??!0,z1=X?.traits?.useSoftDeletes??X?.traits?.softDeletable??!1,I1=X?.traits?.observe;if(typeof I1==="boolean"){if(I1)h+=`if (model)\n dispatch('${V}:created', model)`,w+=`if (model)\n dispatch('${V}:updated', model)`,v+=`if (model)\n dispatch('${V}:deleted', model)`,b+="const model = await instance.find(id)",$1+="const model = await this.find(this.id)"}if(Array.isArray(I1)){if(I1.includes("create"))h+=`if (model)\n dispatch('${V}:created', model);`;if(I1.includes("update"))w+=`if (model)\n dispatch('${V}:updated', model);`;if(I1.includes("delete"))b+="const model = await instance.find(id)",v+=`if (model)\n dispatch('${V}:deleted', model);`}for(let i of G1){const{model:U1,foreignKey:a}=i,x=i.table||"",n=i.pivotTable,o=U1.toLowerCase(),H1=HS1(i.relationship),Y1=ZS1(i.relationship);if(H1==="throughType"){const e=i.relationName||V+U1,B1=i.throughModel;if(i.throughModel===void 0)continue;const q1=i?.throughModel?.toLowerCase(),e1=B1,j2=i.throughForeignKey||`${q1}_id`;F+=`
99
+ async ${e}() {
100
+ if (this.id === undefined)
101
+ throw new HttpError(500, 'Relation Error!')
102
+
103
+ const firstModel = await db.selectFrom('${e1}')
104
+ .where('${a}', '=', this.id)
105
+ .selectAll()
106
+ .executeTakeFirst()
107
+
108
+ if (! firstModel)
109
+ throw new HttpError(500, 'Model Relation Not Found!')
110
+
111
+ const finalModel = ${U1}
112
+ .where('${j2}', '=', firstModel.id)
113
+ .first()
114
+
115
+ return new ${U1}.modelInstance(finalModel)
116
+ }\n\n`}if(H1==="hasType"&&Y1==="many"){const e=i.relationName||x;F+=`
117
+ async ${e}() {
118
+ if (this.id === undefined)
119
+ throw new HttpError(500, 'Relation Error!')
120
+
121
+ const results = await db.selectFrom('${x}')
122
+ .where('${a}', '=', this.id)
123
+ .selectAll()
124
+ .execute()
125
+
126
+ return results
127
+ }\n\n`}if(H1==="hasType"&&Y1==="one"){const e=i.relationName||o;F+=`
128
+ async ${e}() {
129
+ if (this.id === undefined)
130
+ throw new HttpError(500, 'Relation Error!')
131
+
132
+ const model = ${U1}
133
+ .where('${a}', '=', this.id).first()
134
+
135
+ if (! model)
136
+ throw new HttpError(500, 'Model Relation Not Found!')
137
+
138
+ return model
139
+ }\n\n`}if(H1==="belongsType"&&!Y1){const e=i.relationName||o;F+=`
140
+ async ${e}() {
141
+ if (this.${a} === undefined)
142
+ throw new HttpError(500, 'Relation Error!')
143
+
144
+ const model = await ${U1}
145
+ .where('id', '=', ${a})
146
+ .first()
147
+
148
+ if (! model)
149
+ throw new HttpError(500, 'Model Relation Not Found!')
150
+
151
+ return model
152
+ }\n\n`}if(H1==="belongsType"&&Y1==="many"){const e=n||x,B1=i.relationName||V+t5($5(U1));F+=`
153
+ async ${B1}() {
154
+ if (this.id === undefined)
155
+ throw new HttpError(500, 'Relation Error!')
156
+
157
+ const results = await db.selectFrom('${e}')
158
+ .where('${a}', '=', this.id)
159
+ .selectAll()
160
+ .execute()
161
+
162
+ const tableRelationIds = results.map(result => result.${qJ(x)}_id)
163
+
164
+ if (! tableRelationIds.length)
165
+ throw new HttpError(500, 'Relation Error!')
166
+
167
+ const relationResults = await ${U1}.whereIn('id', tableRelationIds).get()
168
+
169
+ return relationResults
170
+ }\n\n`}}z+="public id: number | undefined \n ",Y+=`this.id = ${V}?.id\n `;const E1=typeof X.traits?.useAuth==="object"&&X.traits.useAuth.useTwoFactor,r=typeof X.traits?.useAuth==="object"&&X.traits.useAuth.usePasskey;if(E1)z+="public two_factor_secret: string | undefined \n",Y+=`this.two_factor_secret = ${V}?.two_factor_secret\n `,f+=`
171
+ async generateTwoFactorForModel() {
172
+ const secret = generateTwoFactorSecret()
173
+
174
+ await this.update({ 'two_factor_secret': secret })
175
+ }
176
+
177
+ verifyTwoFactorCode(code: string): boolean {
178
+ const modelTwoFactorSecret = this.two_factor_secret
179
+ let isValid = false
180
+
181
+ if (typeof modelTwoFactorSecret === 'string') {
182
+ isValid = verifyTwoFactorCode(code, modelTwoFactorSecret)
183
+ }
184
+
185
+ return isValid
186
+ }
187
+ `;if(r)z+="public public_passkey: string | undefined \n",Y+=`this.public_passkey = ${V}?.public_passkey\n `;W+="\nid: this.id,\n";for(let i of H){const U1=i.fieldArray?.entity==="enum"?"string[]":i.fieldArray?.entity;Q+=` ${F2(i.field)}?: ${U1}\n `,z+=`public ${F2(i.field)}: ${U1} | undefined \n `,Y+=`this.${F2(i.field)} = ${V}?.${F2(i.field)}\n `,W+=`${F2(i.field)}: this.${F2(i.field)},\n `,B+=`static where${$5(i.field)}(value: string): ${J}Model {
188
+ const instance = new ${J}Model(null)
189
+
190
+ instance.query = instance.query.where('${i.field}', '=', value)
191
+
192
+ return instance
193
+ } \n\n`,q+=`export async function where${$5(i.field)}(value: ${U1}): Promise<${J}Model[]> {
194
+ const query = db.selectFrom('${G}').where('${F2(i.field)}', '=', value)
195
+ const results = await query.execute()
196
+
197
+ return results.map(modelItem => new ${J}Model(modelItem))
198
+ } \n\n`}if(R1)z+=`
199
+ public created_at: Date | undefined
200
+ public updated_at: Date | undefined
201
+ `,Y+=`
202
+ this.created_at = ${V}?.created_at\n
203
+ this.updated_at = ${V}?.updated_at\n
204
+ `,W+=`
205
+ created_at: this.created_at,\n
206
+ updated_at: this.updated_at,\n
207
+ `;if(z1)z+=`
208
+ public deleted_at: string | undefined
209
+ `,Y+=`
210
+ this.deleted_at = ${V}?.deleted_at\n
211
+ `,W+=`
212
+ deleted_at: this.deleted_at,\n
213
+ `;W+="}";const u=await Mq(X,J);for(let i of u)Q+=` ${i.foreignKey}?: number \n`,z+=`public ${i.foreignKey}: number | undefined \n `,Y+=`this.${i.foreignKey} = ${V}?.${i.foreignKey}\n `;if(E1)Q+="two_factor_secret?: string \n";if(r)Q+="public_passkey?: string \n";if(R1)Q+=`
214
+ created_at?: Date\n
215
+ updated_at?: Date
216
+ `;Q+=`
217
+ deleted_at?: Date
218
+ `;const _=JSON.stringify(VS1(X.attributes)),p=JSON.stringify(QS1(X.attributes));return`import type { Generated, Insertable, Selectable, Updateable } from 'kysely'
219
+ import { db, sql } from '@stacksjs/database'
220
+ import { HttpError } from '@stacksjs/error-handling'
221
+ import { dispatch } from '@stacksjs/events'
222
+ import { generateTwoFactorSecret } from '@stacksjs/auth'
223
+ import { verifyTwoFactorCode } from '@stacksjs/auth'
224
+ import { cache } from '@stacksjs/cache'
225
+ ${j}
226
+ // import { Kysely, MysqlDialect, PostgresDialect } from 'kysely'
227
+ // import { Pool } from 'pg'
228
+
229
+ // TODO: we need an action that auto-generates these table interfaces
230
+ export interface ${Z}Table {
231
+ id: Generated<number>
232
+ ${Q}
233
+ }
234
+
235
+ interface ${J}Response {
236
+ data: ${Z}
237
+ paging: {
238
+ total_records: number
239
+ page: number
240
+ total_pages: number
241
+ }
242
+ next_cursor: number | null
243
+ }
244
+
245
+ export type ${J}Type = Selectable<${Z}Table>
246
+ export type New${J} = Insertable<${Z}Table>
247
+ export type ${J}Update = Updateable<${Z}Table>
248
+ export type ${Z} = ${J}Type[]
249
+
250
+ export type ${J}Column = ${Z}
251
+ export type ${J}Columns = Array<keyof ${Z}>
252
+
253
+ type SortDirection = 'asc' | 'desc'
254
+ interface SortOptions { column: ${J}Type, order: SortDirection }
255
+ // Define a type for the options parameter
256
+ interface QueryOptions {
257
+ sort?: SortOptions
258
+ limit?: number
259
+ offset?: number
260
+ page?: number
261
+ }
262
+
263
+ export class ${J}Model {
264
+ private hidden = ${_}
265
+ private fillable = ${p}
266
+ private softDeletes = ${z1}
267
+ protected query: any
268
+ protected hasSelect: boolean
269
+ ${z}
270
+ constructor(${V}: Partial<${J}Type> | null) {
271
+ ${Y}
272
+
273
+ this.query = db.selectFrom('${G}')
274
+ this.hasSelect = false
275
+ }
276
+
277
+ // Method to find a ${J} by ID
278
+ async find(id: number): Promise<${J}Model | undefined> {
279
+ let query = db.selectFrom('${G}').where('id', '=', id).selectAll()
280
+
281
+ const model = await query.executeTakeFirst()
282
+
283
+ if (!model)
284
+ return undefined
285
+
286
+ cache.getOrSet(\`${V}:\${id}\`, JSON.stringify(model))
287
+
288
+ return this.parseResult(new ${J}Model(model))
289
+ }
290
+
291
+ // Method to find a ${J} by ID
292
+ static async find(id: number): Promise<${J}Model | undefined> {
293
+ let query = db.selectFrom('${G}').where('id', '=', id).selectAll()
294
+
295
+ const instance = new ${J}Model(null)
296
+
297
+ const model = await query.executeTakeFirst()
298
+
299
+ if (!model)
300
+ return undefined
301
+
302
+ cache.getOrSet(\`${V}:\${id}\`, JSON.stringify(model))
303
+
304
+ return instance.parseResult(new ${J}Model(model))
305
+ }
306
+
307
+ static async all(): Promise<${J}Model[]> {
308
+ let query = db.selectFrom('${G}').selectAll()
309
+
310
+ const instance = new ${J}Model(null)
311
+
312
+ if (instance.softDeletes) {
313
+ query = query.where('deleted_at', 'is', null)
314
+ }
315
+
316
+ const results = await query.execute();
317
+
318
+ return results.map(modelItem => instance.parseResult(new ${J}Model(modelItem)));
319
+ }
320
+
321
+
322
+ static async findOrFail(id: number): Promise<${J}Model> {
323
+ let query = db.selectFrom('${G}').where('id', '=', id)
324
+
325
+ const instance = new ${J}Model(null)
326
+
327
+ if (instance.softDeletes) {
328
+ query = query.where('deleted_at', 'is', null);
329
+ }
330
+
331
+ query = query.selectAll()
332
+
333
+ const model = await query.executeTakeFirst()
334
+
335
+ if (model === undefined)
336
+ throw new HttpError(404, \`No ${J}Model results for \${id}\`)
337
+
338
+ cache.getOrSet(\`${V}:\${id}\`, JSON.stringify(model))
339
+
340
+ return instance.parseResult(new ${J}Model(model))
341
+ }
342
+
343
+ static async findMany(ids: number[]): Promise<${J}Model[]> {
344
+ let query = db.selectFrom('${G}').where('id', 'in', ids)
345
+
346
+ const instance = new ${J}Model(null)
347
+
348
+ if (instance.softDeletes) {
349
+ query = query.where('deleted_at', 'is', null);
350
+ }
351
+
352
+ query = query.selectAll()
353
+
354
+ const model = await query.execute()
355
+
356
+ return model.map(modelItem => instance.parseResult(new ${J}Model(modelItem)))
357
+ }
358
+
359
+ // Method to get a User by criteria
360
+ static async get(): Promise<UserModel[]> {
361
+ const instance = new ${J}Model(null)
362
+
363
+ if (instance.hasSelect) {
364
+ if (instance.softDeletes) {
365
+ instance.query = instance.query.where('deleted_at', 'is', null)
366
+ }
367
+
368
+ const model = await instance.query.execute()
369
+
370
+ return model.map((modelItem: ${J}Model) => new ${J}Model(modelItem))
371
+ }
372
+
373
+ if (instance.softDeletes) {
374
+ instance.query = instance.query.where('deleted_at', 'is', null)
375
+ }
376
+
377
+ const model = await instance.query.selectAll().execute()
378
+
379
+ return model.map((modelItem: ${J}Model) => new ${J}Model(modelItem))
380
+ }
381
+
382
+
383
+ // Method to get a ${J} by criteria
384
+ async get(): Promise<${J}Model[]> {
385
+ if (this.hasSelect) {
386
+
387
+ if (this.softDeletes) {
388
+ this.query = this.query.where('deleted_at', 'is', null);
389
+ }
390
+
391
+ const model = await this.query.execute()
392
+
393
+ return model.map((modelItem: ${J}Model) => new ${J}Model(modelItem))
394
+ }
395
+
396
+ if (this.softDeletes) {
397
+ this.query = this.query.where('deleted_at', 'is', null);
398
+ }
399
+
400
+ const model = await this.query.selectAll().execute()
401
+
402
+ return model.map((modelItem: ${J}Model) => new ${J}Model(modelItem))
403
+ }
404
+
405
+ static async count(): Promise<number> {
406
+ const instance = new ${J}Model(null)
407
+
408
+ if (instance.softDeletes) {
409
+ instance.query = instance.query.where('deleted_at', 'is', null);
410
+ }
411
+
412
+ const results = await instance.query.selectAll().execute()
413
+
414
+ return results.length
415
+ }
416
+
417
+ async count(): Promise<number> {
418
+ if (this.hasSelect) {
419
+
420
+ if (this.softDeletes) {
421
+ this.query = this.query.where('deleted_at', 'is', null);
422
+ }
423
+
424
+ const results = await this.query.execute()
425
+
426
+ return results.length
427
+ }
428
+
429
+ const results = await this.query.selectAll().execute()
430
+
431
+ return results.length
432
+ }
433
+
434
+ // Method to get all ${G}
435
+ static async paginate(options: QueryOptions = { limit: 10, offset: 0, page: 1 }): Promise<${J}Response> {
436
+ const totalRecordsResult = await db.selectFrom('${G}')
437
+ .select(db.fn.count('id').as('total')) // Use 'id' or another actual column name
438
+ .executeTakeFirst()
439
+
440
+ const totalRecords = Number(totalRecordsResult?.total) || 0
441
+ const totalPages = Math.ceil(totalRecords / (options.limit ?? 10))
442
+
443
+ const ${G}WithExtra = await db.selectFrom('${G}')
444
+ .selectAll()
445
+ .orderBy('id', 'asc') // Assuming 'id' is used for cursor-based pagination
446
+ .limit((options.limit ?? 10) + 1) // Fetch one extra record
447
+ .offset(((options.page ?? 1) - 1) * (options.limit ?? 10)) // Ensure options.page is not undefined
448
+ .execute()
449
+
450
+
451
+ let nextCursor = null
452
+ if (${G}WithExtra.length > (options.limit ?? 10)) nextCursor = ${G}WithExtra.pop()?.id ?? null
453
+
454
+ return {
455
+ data: ${G}WithExtra,
456
+ paging: {
457
+ total_records: totalRecords,
458
+ page: options.page || 1,
459
+ total_pages: totalPages,
460
+ },
461
+ next_cursor: nextCursor,
462
+ }
463
+ }
464
+
465
+ // Method to create a new ${V}
466
+ static async create(new${J}: New${J}): Promise<${J}Model> {
467
+ const instance = new ${J}Model(null)
468
+
469
+ const filteredValues = Object.fromEntries(
470
+ Object.entries(new${J}).filter(([key]) => instance.fillable.includes(key)),
471
+ ) as New${J}
472
+
473
+ const result = await db.insertInto('${G}')
474
+ .values(filteredValues)
475
+ .executeTakeFirst()
476
+
477
+ const model = await find(Number(result.insertId)) as ${J}Model
478
+
479
+ ${h}
480
+
481
+ return model
482
+ }
483
+
484
+ static async forceCreate(new${J}: New${J}): Promise<${J}Model> {
485
+ const result = await db.insertInto('${G}')
486
+ .values(new${J})
487
+ .executeTakeFirst()
488
+
489
+ const model = await find(Number(result.insertId)) as ${J}Model
490
+
491
+ ${h}
492
+
493
+ return model
494
+ }
495
+
496
+ // Method to remove a ${J}
497
+ static async remove(id: number): Promise<void> {
498
+ const instance = new ${J}Model(null)
499
+ ${b}
500
+
501
+ if (instance.softDeletes) {
502
+ await db.updateTable('${G}')
503
+ .set({
504
+ deleted_at: sql.raw('CURRENT_TIMESTAMP')
505
+ })
506
+ .where('id', '=', id)
507
+ .execute();
508
+ } else {
509
+ await db.deleteFrom('${G}')
510
+ .where('id', '=', id)
511
+ .execute();
512
+ }
513
+
514
+
515
+ ${v}
516
+ }
517
+
518
+ where(...args: (string | number | boolean | undefined | null)[]): ${J}Model {
519
+ let column: any
520
+ let operator: any
521
+ let value: any
522
+
523
+ if (args.length === 2) {
524
+ [column, value] = args
525
+ operator = '='
526
+ } else if (args.length === 3) {
527
+ [column, operator, value] = args
528
+ } else {
529
+ throw new HttpError(500, "Invalid number of arguments")
530
+ }
531
+
532
+ this.query = this.query.where(column, operator, value)
533
+
534
+ return this
535
+ }
536
+
537
+ static where(...args: (string | number | boolean | undefined | null)[]): ${J}Model {
538
+ let column: any
539
+ let operator: any
540
+ let value: any
541
+
542
+ const instance = new ${J}Model(null)
543
+
544
+ if (args.length === 2) {
545
+ [column, value] = args
546
+ operator = '='
547
+ } else if (args.length === 3) {
548
+ [column, operator, value] = args
549
+ } else {
550
+ throw new HttpError(500, "Invalid number of arguments")
551
+ }
552
+
553
+ instance.query = instance.query.where(column, operator, value)
554
+
555
+ return instance
556
+ }
557
+
558
+ ${B}
559
+
560
+ static whereIn(column: keyof ${J}Type, values: any[]): ${J}Model {
561
+ const instance = new ${J}Model(null)
562
+
563
+ instance.query = instance.query.where(column, 'in', values)
564
+
565
+ return instance
566
+ }
567
+
568
+ async first(): Promise<${J}Model | undefined> {
569
+ const model = await this.query.selectAll().executeTakeFirst()
570
+
571
+ if (! model) {
572
+ return undefined
573
+ }
574
+
575
+ return this.parseResult(new ${J}Model(model))
576
+ }
577
+
578
+ async firstOrFail(): Promise<${J}Model | undefined> {
579
+ const model = await this.query.selectAll().executeTakeFirst()
580
+
581
+ if (model === undefined)
582
+ throw new HttpError(404, 'No ${J}Model results found for query')
583
+
584
+ return this.parseResult(new ${J}Model(model))
585
+ }
586
+
587
+ async exists(): Promise<boolean> {
588
+ const model = await this.query.selectAll().executeTakeFirst()
589
+
590
+ return model !== null || model !== undefined
591
+ }
592
+
593
+ static async first(): Promise<${J}Type | undefined> {
594
+ return await db.selectFrom('${G}')
595
+ .selectAll()
596
+ .executeTakeFirst()
597
+ }
598
+
599
+ async last(): Promise<${J}Type | undefined> {
600
+ return await db.selectFrom('${G}')
601
+ .selectAll()
602
+ .orderBy('id', 'desc')
603
+ .executeTakeFirst()
604
+ }
605
+
606
+ static async last(): Promise<${J}Type | undefined> {
607
+ return await db.selectFrom('${G}').selectAll().orderBy('id', 'desc').executeTakeFirst()
608
+ }
609
+
610
+ static orderBy(column: keyof ${J}Type, order: 'asc' | 'desc'): ${J}Model {
611
+ const instance = new ${J}Model(null)
612
+
613
+ instance.query = instance.query.orderBy(column, order)
614
+
615
+ return instance
616
+ }
617
+
618
+ orderBy(column: keyof ${J}Type, order: 'asc' | 'desc'): ${J}Model {
619
+ this.query = this.query.orderBy(column, order)
620
+
621
+ return this
622
+ }
623
+
624
+ static orderByDesc(column: keyof ${J}Type): ${J}Model {
625
+ const instance = new ${J}Model(null)
626
+
627
+ instance.query = instance.query.orderBy(column, 'desc')
628
+
629
+ return instance
630
+ }
631
+
632
+ orderByDesc(column: keyof ${J}Type): ${J}Model {
633
+ this.query = this.orderBy(column, 'desc')
634
+
635
+ return this
636
+ }
637
+
638
+ static orderByAsc(column: keyof ${J}Type): ${J}Model {
639
+ const instance = new ${J}Model(null)
640
+
641
+ instance.query = instance.query.orderBy(column, 'asc')
642
+
643
+ return instance
644
+ }
645
+
646
+ orderByAsc(column: keyof ${J}Type): ${J}Model {
647
+ this.query = this.query.orderBy(column, 'desc')
648
+
649
+ return this
650
+ }
651
+
652
+ async update(${V}: ${J}Update): Promise<${J}Model | undefined> {
653
+ if (this.id === undefined)
654
+ throw new HttpError(500, '${J} ID is undefined')
655
+
656
+ const filteredValues = Object.fromEntries(
657
+ Object.entries(${V}).filter(([key]) => this.fillable.includes(key)),
658
+ ) as New${J}
659
+
660
+ await db.updateTable('${G}')
661
+ .set(filteredValues)
662
+ .where('id', '=', this.id)
663
+ .executeTakeFirst()
664
+
665
+ const model = await this.find(Number(this.id))
666
+
667
+ ${w}
668
+
669
+ return model
670
+ }
671
+
672
+ async forceUpdate(${V}: ${J}Update): Promise<${J}Model | undefined> {
673
+ if (this.id === undefined)
674
+ throw new HttpError(500, '${J} ID is undefined')
675
+
676
+ await db.updateTable('${G}')
677
+ .set(${V})
678
+ .where('id', '=', this.id)
679
+ .executeTakeFirst()
680
+
681
+ const model = await this.find(Number(this.id))
682
+
683
+
684
+ ${w}
685
+
686
+ return model
687
+ }
688
+
689
+ async save(): Promise<void> {
690
+ if (!this)
691
+ throw new HttpError(500, '${J} data is undefined')
692
+
693
+ if (this.id === undefined) {
694
+ await db.insertInto('${G}')
695
+ .values(this as New${J})
696
+ .executeTakeFirstOrThrow()
697
+ }
698
+ else {
699
+ await this.update(this)
700
+ }
701
+ }
702
+
703
+ // Method to delete (soft delete) the ${V} instance
704
+ async delete(): Promise<void> {
705
+ if (this.id === undefined)
706
+ throw new HttpError(500, '${J} ID is undefined')
707
+
708
+ ${$1}
709
+
710
+ // Check if soft deletes are enabled
711
+ if (this.softDeletes) {
712
+ // Update the deleted_at column with the current timestamp
713
+ await db.updateTable('${G}')
714
+ .set({
715
+ deleted_at: sql.raw('CURRENT_TIMESTAMP')
716
+ })
717
+ .where('id', '=', this.id)
718
+ .execute();
719
+ } else {
720
+ // Perform a hard delete
721
+ await db.deleteFrom('${G}')
722
+ .where('id', '=', this.id)
723
+ .execute();
724
+ }
725
+
726
+
727
+ ${v}
728
+ }
729
+
730
+ ${F}
731
+
732
+ distinct(column: keyof ${J}Type): ${J}Model {
733
+ this.query = this.query.select(column).distinct()
734
+
735
+ this.hasSelect = true
736
+
737
+ return this
738
+ }
739
+
740
+ static distinct(column: keyof ${J}Type): ${J}Model {
741
+ const instance = new ${J}Model(null)
742
+
743
+ instance.query = instance.query.select(column).distinct()
744
+
745
+ instance.hasSelect = true
746
+
747
+ return instance
748
+ }
749
+
750
+ join(table: string, firstCol: string, secondCol: string): ${J}Model {
751
+ this.query = this.query.innerJoin(table, firstCol, secondCol)
752
+
753
+ return this
754
+ }
755
+
756
+ static join(table: string, firstCol: string, secondCol: string): ${J}Model {
757
+ const instance = new ${J}Model(null)
758
+
759
+ instance.query = instance.query.innerJoin(table, firstCol, secondCol)
760
+
761
+ return instance
762
+ }
763
+
764
+ static async rawQuery(rawQuery: string): Promise<any> {
765
+ return await sql\`\${rawQuery}\`.execute(db)
766
+ }
767
+
768
+ toJSON() {
769
+ const output: Partial<${J}Type> = ${W}
770
+
771
+
772
+ type ${J} = Omit<${J}Type, 'password'>
773
+
774
+ return output as ${J}
775
+ }
776
+
777
+ parseResult(model: ${J}Model): ${J}Model {
778
+ for (const hiddenAttribute of this.hidden) {
779
+ delete model[hiddenAttribute as keyof ${J}Model]
780
+ }
781
+
782
+ return model
783
+ }
784
+
785
+ ${f}
786
+ }
787
+
788
+ async function find(id: number): Promise<${J}Model | undefined> {
789
+ let query = db.selectFrom('${G}').where('id', '=', id).selectAll()
790
+
791
+ const model = await query.executeTakeFirst()
792
+
793
+ if (!model) return undefined
794
+
795
+ return new ${J}Model(model)
796
+ }
797
+
798
+ export async function count(): Promise<number> {
799
+ const results = await ${J}Model.count()
800
+
801
+ return results
802
+ }
803
+
804
+ export async function create(new${J}: New${J}): Promise<${J}Model> {
805
+
806
+ const result = await db.insertInto('${G}')
807
+ .values(new${J})
808
+ .executeTakeFirstOrThrow()
809
+
810
+ return await find(Number(result.insertId)) as ${J}Model
811
+ }
812
+
813
+ export async function rawQuery(rawQuery: string): Promise<any> {
814
+ return await sql\`\${rawQuery}\`.execute(db)
815
+ }
816
+
817
+ export async function remove(id: number): Promise<void> {
818
+ await db.deleteFrom('${G}')
819
+ .where('id', '=', id)
820
+ .execute()
821
+ }
822
+
823
+ ${q}
824
+
825
+ export const ${J} = ${J}Model
826
+
827
+ export default ${J}
828
+ `}async function Fq(G){try{x1.info("Cleanup of older Models..."),await KS1(G),x1.success("Deleted Models"),x1.info("Deleting old Model Name types..."),await BS1(),x1.success("Deleted Model Name types"),x1.info("Deleting old Model Requests..."),await $S1(G),x1.success("Deleted Model Requests"),x1.info("Deleting old Model Routes..."),await RS1(),x1.success("Deleted Model Routes");try{x1.info("Writing Model Names..."),await YS1(),x1.success("Wrote Model Names")}catch(X){QH("Error while writing Model Names",X)}try{x1.info("Writing Model Requests..."),await WS1(),x1.success("Wrote Model Requests")}catch(X){QH("Error while writing Model Requests",X)}x1.info("Generating API Routes...");const J=R5([h1.userModelsPath("**/*.ts")],{absolute:!0});await US1(J),x1.success("Generated API Routes");for(let X of J){if(G&&G!==X)continue;x1.info(`Processing Model: ${G9(X)}`);const H=(await import(X)).default,Z=t9(H,X),V=J0(H,X),Q=Bun.file(h1.frameworkPath(`orm/src/models/${V}.ts`)),Y=await qq(H,X),W=await qS1(Z,V,H,Y),z=Q.writer();x1.info(`Writing API Endpoints for: ${G9(V)}`),z.write(W),x1.success(`Wrote API endpoints for: ${G9(V)}`),await z.end()}x1.info("Generating Query Builder types..."),await MS1(),x1.success("Generated Query Builder types"),await FS1()}catch(J){QH("Error while generating model files",J)}}async function FS1(){x1.info("Linting code style...");const G=Bun.spawn(["bunx","--bun","eslint",".","--fix"],{stdio:["ignore","pipe","pipe"],cwd:h1.projectPath()}),J=G.stdout.getReader();while(!0){const{done:Z}=await J.read();if(Z)break}const X=G.stderr.getReader();while(!0){const{done:Z}=await X.read();if(Z)break}if(await G.exited!==0)x1.debug("There was an error fixing your code style but we are ignoring it because we fixed the auto-generated code already. Run bunx eslint . --fix to fix the rest of the code.");else x1.debug("Code style fixed successfully.")}import{ExitCode as Iq}from"@stacksjs/types";function Eh1(G){const J={command:"Automagically build any of your libraries/packages for production use. Select any of the following packages",types:"Generate your TypeScript types",entries:"Generate your function & Component Library Entry Points",webTypes:"Generate web-types.json for IDEs",customData:"Generate VS Code custom data (custom-elements.json) for IDEs",ideHelpers:"Generate IDE helpers",componentMeta:"Generate component meta information",coreSymlink:"Generate symlink of the core framework to the project root",pkgx:"Generate the pkgx configuration file",modelFiles:"Generate the model files",openApi:"Generate the OpenAPI specification",select:"What are you trying to generate?",project:"Target a specific project",verbose:"Enable verbose output"};G.command("generate",J.command).option("-t, --types",J.types).option("-e, --entries",J.entries).option("-w, --web-types",J.webTypes).option("-c, --custom-data",J.customData).option("-i, --ide-helpers",J.ideHelpers).option("-c, --component-meta",J.componentMeta).option("-p, --pkgx",J.pkgx).option("-m, --model-files",J.modelFiles).option("-o, --openapi",J.openApi).option("-p, --project [project]",J.project,{default:!1}).option("--core-symlink",J.coreSymlink).option("--verbose",J.verbose,{default:!1}).action(async(X)=>{g2.debug("Running `buddy generate` ...",X),await TS1(X),WH.exit(Iq.Success)}),G.command("generate:types",J.types).option("-p, --project [project]",J.project,{default:!1}).option("--verbose",J.verbose,{default:!1}).alias("types:generate").action(async(X)=>{g2.debug("Running `buddy generate:types` ...",X),await SS1(X)}),G.command("generate:entries",J.entries).option("-p, --project [project]",J.project,{default:!1}).option("--verbose",J.verbose,{default:!1}).action(async(X)=>{g2.debug("Running `buddy generate:entries` ...",X),await AS1(X)}),G.command("generate:web-types",J.webTypes).option("-p, --project [project]",J.project,{default:!1}).option("--verbose",J.verbose,{default:!1}).action(async(X)=>{g2.debug("Running `buddy generate:web-types` ...",X),await LS1(X)}),G.command("generate:vscode-custom-data",J.customData).option("-p, --project [project]",J.project,{default:!1}).option("--verbose",J.verbose,{default:!1}).action(async(X)=>{g2.debug("Running `buddy generate:vscode-custom-data` ...",X),await PS1(X)}),G.command("generate:ide-helpers",J.ideHelpers).option("-p, --project [project]",J.project,{default:!1}).option("--verbose",J.verbose,{default:!1}).action(async(X)=>{g2.debug("Running `buddy generate:ide-helpers` ...",X),await IS1(X)}),G.command("generate:component-meta",J.componentMeta).option("-p, --project [project]",J.project,{default:!1}).option("--verbose",J.verbose,{default:!1}).action(async(X)=>{g2.debug("Running `buddy generate:component-meta` ...",X),await jS1(X)}),G.command("generate:pkgx-config",J.pkgx).option("-p, --project [project]",J.project,{default:!1}).option("--verbose",J.verbose,{default:!1}).action((X)=>{g2.debug("Running `buddy generate:pkgx-config` ...",X),fS1()}),G.command("generate:model-files",J.modelFiles).option("-p, --project [project]",J.project,{default:!1}).option("--verbose",J.verbose,{default:!1}).action(async()=>{const X=await jq("buddy generate:model-files");try{await Fq(),Dq("Generated Model files",{startTime:X,useSeconds:!0})}catch(H){g2.error("There was an error generating your model files",H),WH.exit(Iq.FatalError)}}),G.command("generate:openapi-spec",J.openApi).alias("generate:openapi").option("-p, --project [project]",J.project,{default:!1}).option("--verbose",J.verbose,{default:!1}).action(async(X)=>{g2.debug("Running `buddy generate:openapi-spec` ...",X);const H=await jq("buddy generate:openapi-spec");await CS1(),Dq("Generated OpenAPI specification",{startTime:H,useSeconds:!0})}),G.command("generate:migrations","Generate Migrations").action((X)=>{g2.debug("Running `buddy generate:migrations` ...",X)}),G.command("generate:core-symlink","Generate core symlink. A shortcut for core developers.").action(async(X)=>{g2.debug("Running `buddy core-symlink` ...",X),await DS1()}),G.on("generate:*",()=>{console.error("Invalid command: %s\nSee --help for a list of available commands.",G.args.join(" ")),WH.exit(1)})}import wS1 from"process";import{config as NS1}from"@stacksjs/config";import{ExitCode as kS1}from"@stacksjs/types";import{log as Aq,runCommandSync as ES1}from"@stacksjs/cli";function hh1(G){const J={http:"Send an HTTP request to a domain",project:"Target a specific project",verbose:"Enable verbose output"};G.command("http [domain]",J.http).option("-p, --project [project]",J.project,{default:!1}).action(async(X,H)=>{Aq.debug("Running `buddy http [domain]` ...",H);const Z=Object.entries(H).filter(([Q,Y])=>Q!=="--"&&Q.length>1&&Y!==!1).map(([Q,Y])=>`--${Q} ${Y}`).join(" "),V=`http GET ${X||NS1.app.url} ${Z}`;Aq.info(`Running command: ${V}`),await ES1(V),wS1.exit(kS1.Success)})}import OS1 from"process";import{log as vS1,runCommand as _S1}from"@stacksjs/cli";import{path as gS1}from"@stacksjs/path";function ch1(G){const J={install:"Install your dependencies",project:"Target a specific project",verbose:"Enable verbose output"};G.command("install",J.install).option("-p, --project [project]",J.project,{default:!1}).option("-v, --verbose",J.verbose,{default:!1}).action(async(X)=>{vS1.debug("Running `buddy install` ...",X),await _S1("bun install",{...X,cwd:gS1.projectPath()})}),G.on("install:*",()=>{console.error("Invalid command: %s\nSee --help for a list of available commands.",G.args.join(" ")),OS1.exit(1)})}import Cq from"process";import{runAction as bS1}from"@stacksjs/actions";import{intro as hS1,log as fq,outro as yS1}from"@stacksjs/cli";import{Action as mS1}from"@stacksjs/enums";function sh1(G){const J={command:"Generate & set the application key.",project:"Target a specific project",verbose:"Enable verbose output"};G.command("key:generate",J.command).option("-p, --project [project]",J.project,{default:!1}).option("--verbose",J.verbose,{default:!1}).action(async(X)=>{fq.debug("Running `buddy key:generate` ...",X),await hS1("buddy key:generate");const H=await bS1(mS1.KeyGenerate,X);if(H.isErr())fq.error("Failed to set random application key.",H.error),Cq.exit();await yS1("Random application key set.")}),G.on("key:*",()=>{console.error("Invalid command: %s\nSee --help for a list of available commands.",G.args.join(" ")),Cq.exit(1)})}import Sq from"process";import{runAction as Pq}from"@stacksjs/actions";import{intro as xS1,log as G6,outro as lS1,runCommand as cS1}from"@stacksjs/cli";import{Action as Lq}from"@stacksjs/enums";function Gy1(G){const J={lint:"Automagically lints your project codebase",lintFix:"Automagically fixes all lint errors",project:"Target a specific project",verbose:"Enable verbose output"};G.command("lint",J.lint).option("-f, --fix",J.lintFix,{default:!1}).option("-p, --project [project]",J.project,{default:!1}).option("--verbose",J.verbose,{default:!1}).action(async(X)=>{G6.debug("Running `buddy lint` ...",X);const H=await xS1("buddy lint");if(X.fix)await Pq(Lq.LintFix,{...X});else await cS1("bunx --bun eslint .");await lS1("Linted your project",{startTime:H,useSeconds:!0})}),G.command("lint:fix",J.lintFix).option("-p, --project [project]",J.project,{default:!1}).option("--verbose",J.verbose,{default:!1}).action(async(X)=>{G6.debug("Running `buddy lint:fix` ...",X),G6.info("Fixing lint errors...");const H=await Pq(Lq.LintFix,{...X});if(H.isErr())G6.error("There was an error lint fixing your code.",H.error),Sq.exit();G6.success("Fixed lint errors")}),G.on("lint:*",()=>{console.error("Invalid command: %s\nSee --help for a list of available commands.",G.args.join(" ")),Sq.exit(1)})}var{$:Tq}=globalThis.Bun;import aS1 from"process";import{log as rS1}from"@stacksjs/logging";import{projectPath as iS1}from"@stacksjs/path";function Qy1(G){const J={list:"List all of the project-specific Buddy commands",project:"Target a specific project",verbose:"Enable verbose output"};G.command("list",J.list).option("-p, --project [project]",J.project,{default:!1}).option("--verbose",J.verbose,{default:!1}).action(async(X)=>{rS1.debug("Running `buddy list` ...",X),Tq.cwd(iS1());const Z=(await Tq`buddy --help`.text()).match(/Commands:.*?(?=For more info, run any command with the)/s)?.[0];if(Z){const V=Z.replace("Commands:","").replace(/^\s+/gm,"");console.log(V);return}console.error("#1 - Please reach out to our Discord for helper: https://discord.gg/stacksjs")}),G.on("list:*",()=>{console.error("Invalid command: %s\nSee --help for a list of available commands.",G.args.join(" ")),aS1.exit(1)})}import R2 from"process";import{createModel as uS1,createNotification as dS1,invoke as sS1,makeAction as pS1,makeComponent as nS1,makeDatabase as oS1,makeFunction as eS1,makeLanguage as tS1,makePage as GP1,makeStack as JP1}from"@stacksjs/actions";import{intro as XP1,italic as HP1,outro as wq,runCommand as Nq}from"@stacksjs/cli";import{localUrl as ZP1}from"@stacksjs/config";import{log as k1}from"@stacksjs/logging";import{path as kq}from"@stacksjs/path";import{ExitCode as Eq}from"@stacksjs/types";function My1(G){const J={action:"Create a new action",model:"Create a new model",component:"Create a new component",page:"Create a new page",function:"Create a new function",language:"Create a new language",database:"Create a new database",migration:"Create a new migration",factory:"Create a new factory",notification:"Create a new notification",name:"The name of the action",stack:"Create a new stack",certificate:"Create a new SSL Certificate",select:"What are you trying to make?",project:"Target a specific project",verbose:"Enable verbose output"};G.command("make","The make command").option("-a, --action [action]",J.action,{default:!1}).option("-m, --model [model]",J.model,{default:!1}).option("-c, --component [component]",J.component,{default:!1}).option("-p, --page [page]",J.page,{default:!1}).option("-f, --function [function]",J.function,{default:!1}).option("-l, --language [language]",J.language,{default:!1}).option("-d, --database [database]",J.database,{default:!1}).option("-m, --migration [migration]",J.migration,{default:!1}).option("-f, --factory [factory]",J.factory,{default:!1}).option("-n, --notification [notification]",J.notification,{default:!1}).option("-s, --stack [stack]",J.stack,{default:!1}).option("--verbose",J.verbose,{default:!1}).action(async(X)=>{if(k1.debug("Running `buddy make` ...",X),!G.args[0])k1.error("You need to specify a name. Read more about the documentation here."),R2.exit();await sS1(X),R2.exit(Eq.Success)}),G.command("make:component [name]",J.component).option("-n, --name [name]",J.name,{default:!1}).option("-p, --project [project]",J.project,{default:!1}).option("--verbose",J.verbose,{default:!1}).action(async(X,H)=>{if(k1.debug("Running `buddy make:component` ...",H),X=X??H.name,H.name=X,!X)k1.error("You need to specify a name. Read more about the documentation here."),R2.exit();await nS1(H)}),G.command("make:database [name]",J.database).option("-n, --name [name]",J.name,{default:!1}).option("-p, --project [project]",J.project,{default:!1}).option("--verbose",J.verbose,{default:!1}).action((X,H)=>{if(k1.debug("Running `buddy make:database` ...",H),X=X??H.name,H.name=X,!X)k1.error("You need to specify a database name via the `--name` option, or as the command\u2019s argument."),k1.info("Example: `buddy make:database my-cool-database`"),k1.info("Or: `buddy make:database --name=my-cool-database`"),k1.info("Read more about the documentation here: https://stacksjs.org/docs/make/database"),R2.exit();oS1(H)}),G.command("make:factory [name]",J.factory).option("-n, --name [name]",J.name,{default:!1}).option("-p, --project [project]",J.project,{default:!1}).option("--verbose",J.verbose,{default:!1}).action((X,H)=>{if(k1.debug("Running `buddy make:factory` ...",H),X=X??H.name,H.name=X,!X)k1.error("You need to specify a name. Read more about the documentation here."),R2.exit()}),G.command("make:view [name]",J.page).alias("make:page [name]").option("-n, --name [name]",J.name,{default:!1}).option("-p, --project [project]",J.project,{default:!1}).option("--verbose",J.verbose,{default:!1}).action(async(X,H)=>{if(k1.debug("Running `buddy make:view` ...",H),X=X??H.name,H.name=X,!X)k1.error("You need to specify a name. Read more about the documentation here."),R2.exit();await GP1(H)}),G.command("make:function [name]",J.function).option("-n, --name [name]",J.name,{default:!1}).option("-p, --project [project]",J.project,{default:!1}).option("--verbose",J.verbose,{default:!1}).action(async(X)=>{k1.debug("Running `buddy make:function` ...",X),await eS1(X)}),G.command("make:lang [name]",J.language).option("-n, --name [name]",J.name,{default:!1}).option("-p, --project [project]",J.project,{default:!1}).option("--verbose",J.verbose,{default:!1}).action(async(X,H)=>{if(k1.debug("Running `buddy make:lang` ...",H),X=X??H.name,H.name=X,!X)k1.error("You need to specify a name. Read more about the documentation here."),R2.exit();await tS1(H)}),G.command("make:notification [name]",J.notification).option("-n, --name [name]",J.name,{default:!1}).option("-e, --email","Is it an email notification?",{default:!0}).option("-c, --chat","Is it a chat notification?",{default:!1}).option("-s, --sms","Is it a SMS notification?",{default:!1}).option("-p, --project [project]",J.project,{default:!1}).option("--verbose",J.verbose,{default:!1}).action(async(X,H)=>{k1.debug("Running `buddy make:notification` ...",H);const Z=await XP1("buddy make:notification");if(X=X??H.name,H.name=X,!X)k1.error("You need to specify a name. Read more about the documentation here."),R2.exit();if(!await dS1(H))await wq("While running the make:notification command, there was an issue",{startTime:Z,useSeconds:!0}),R2.exit();await wq(`Created your ${HP1(X)} notification.`,{startTime:Z,useSeconds:!0}),R2.exit(Eq.Success)}),G.command("make:stack [name]",J.stack).option("-n, --name [name]",J.name,{default:!1}).option("-p, --project [project]",J.project,{default:!1}).option("--verbose",J.verbose,{default:!1}).action((X,H)=>{if(k1.debug("Running `buddy make:stack` ...",H),X=X??H.name,H.name=X,!X)k1.error("You need to specify a name. Read more about the documentation here."),R2.exit();JP1(H)}),G.command("make:action [name]",J.action).option("-n, --name [name]",J.name,{default:!1}).option("-p, --project [project]",J.project,{default:!1}).option("--verbose",J.verbose,{default:!1}).action(async(X,H)=>{if(k1.info("Running `buddy make:action` ..."),k1.debug("Running `buddy make:action` ...",X,H),X=X??H.name,H.name=X,!X)k1.error("You need to specify a name. Read more about the documentation here."),R2.exit();await pS1(H)}),G.command("make:model [name]",J.model).option("-n, --name [name]",J.name,{default:!1}).option("-p, --project [project]",J.project,{default:!1}).option("--verbose",J.verbose,{default:!1}).action(async(X,H)=>{if(k1.debug("Running `buddy make:model` ...",H),X=X??H.name,H.name=X,!X)k1.error("You need to specify a model name"),R2.exit();await uS1(H)}),G.command("make:migration [name]",J.migration).option("-n, --name [name]",J.name,{default:!1}).option("-p, --project [project]",J.project,{default:!1}).option("--verbose",J.verbose,{default:!1}).action((X,H)=>{if(k1.debug("Running `buddy make:migration` ...",H),X=X??H.name,H.name=X,!X)k1.error("You need to specify a migration name"),R2.exit()}),G.command("make:certificate",J.certificate).alias("make:cert").example("buddy make:certificate").action(async(X)=>{k1.debug("Running `buddy make:certificate` ...",X);const H=await ZP1();k1.info("Creating SSL certificate..."),await Nq(`tlsx ${H}`,{cwd:kq.storagePath("keys")}),k1.success("Certificate created"),k1.info("Installing SSL certificate..."),await Nq("tlsx -install",{cwd:kq.storagePath("keys")}),k1.success("Certificate installed")}),G.on("make:*",()=>{console.error("Invalid command: %s\nSee --help for a list of available commands.",G.args.join(" ")),R2.exit(1)})}import D0 from"process";import{runAction as zH}from"@stacksjs/actions";import{intro as UH,log as KH,outro as J9}from"@stacksjs/cli";import{Action as BH}from"@stacksjs/enums";import{ExitCode as $H}from"@stacksjs/types";function Cy1(G){const J={migrate:"Migrates your database",dns:"Writes the DNS records for a domain to ./config/dns.ts",project:"Target a specific project",verbose:"Enable verbose output"};G.command("migrate",J.migrate).option("-d, --diff","Show the SQL that would be run",{default:!1}).option("-p, --project [project]",J.project,{default:!1}).option("--verbose",J.verbose,{default:!1}).action(async(X)=>{KH.debug("Running `buddy migrate` ...",X);const H=await UH("buddy migrate"),Z=await zH(BH.Migrate,X);if(Z.isErr())await J9("While running the migrate command, there was an issue",{startTime:H,useSeconds:!0},Z.error),D0.exit();const V=D0.env.APP_ENV||"local";await J9(`Migrated your ${V} database.`,{startTime:H,useSeconds:!0}),D0.exit($H.Success)}),G.command("migrate:fresh",J.migrate).option("-d, --diff","Show the SQL that would be run",{default:!1}).option("-p, --project [project]",J.project,{default:!1}).option("--verbose",J.verbose,{default:!1}).action(async(X)=>{KH.debug("Running `buddy migrate:fresh` ...",X);const H=await UH("buddy migrate:fresh"),Z=await zH(BH.MigrateFresh,X);if(Z.isErr())await J9("While running the migrate:fresh command, there was an issue",{startTime:H,useSeconds:!0},Z.error),D0.exit();await J9("All tables dropped successfully & migrated successfully",{startTime:H,useSeconds:!0}),D0.exit($H.Success)}),G.command("migrate:dns",J.migrate).option("-p, --project [project]",J.project,{default:!1}).option("--verbose",J.verbose,{default:!1}).action(async(X)=>{KH.debug("Running `buddy migrate:dns` ...",X);const H=await UH("buddy migrate:dns"),Z=await zH(BH.MigrateDns,{...X});if(Z.isErr())await J9("While running the migrate:dns command, there was an issue",{startTime:H,useSeconds:!0},Z.error),D0.exit();const V=D0.env.APP_URL||"undefined";await J9(`Migrated your ${V} DNS.`,{startTime:H,useSeconds:!0}),D0.exit($H.Success)}),G.on("migrate:*",()=>{console.error("Invalid command: %s\nSee --help for a list of available commands.",G.args.join(" ")),D0.exit(1)})}var{$:Oq}=globalThis.Bun;import VP1 from"process";import{log as QP1}from"@stacksjs/logging";import{projectPath as YP1}from"@stacksjs/path";function wy1(G){const J={outdated:"List all the outdated project dependencies",project:"Target a specific project",verbose:"Enable verbose output"};G.command("outdated",J.outdated).option("-p, --project [project]",J.project,{default:!1}).option("--verbose",J.verbose,{default:!1}).action(async()=>{QP1.debug("Running `buddy outdated` ..."),Oq.cwd(YP1());const X=await Oq`bun outdated`.text();console.log(X)}),G.on("outdated:*",()=>{console.error("Invalid command: %s\nSee --help for a list of available commands.",G.args.join(" ")),VP1.exit(1)})}var{$:FJ}=globalThis.Bun;import jJ from"process";import{intro as RH,italic as hq,outro as MH}from"@stacksjs/cli";import{ports as vq}from"@stacksjs/config";import{log as J2}from"@stacksjs/logging";import{findProjectPath as _q,path as gq,projectPath as bq}from"@stacksjs/path";import{ExitCode as qH}from"@stacksjs/types";import{findStacksProjects as WP1}from"@stacksjs/utils";function yy1(G){const J={command:"Let buddy check your project for potential issues and misconfigurations",ports:"Check if the ports are available",project:"Target a specific project",verbose:"Enable verbose output"};G.command("ports",J.command).option("-l, --list","List the used ports",{default:!0}).option("-c, --check","Check if the ports are available",{default:!1}).option("-p, --project [name]",J.project,{default:void 0}).option("-q, --quiet","Use minimal output",{default:!1}).option("--verbose",J.verbose,{default:!1}).action(async(X)=>{J2.debug("Running `buddy ports` ...",X);let H;if(!X.quiet)H=await RH("buddy ports");if(X.project){const Z=await _q(X.project);J2.debug(`Path: ${Z}`);const V=await FH(Z,X);J2.debug(`./buddy ports --quiet response for ${bq}`,V),DJ(V,X)}else DJ(vq,X);if(!X.quiet)await MH("Exited",{startTime:H,useSeconds:!1});jJ.exit(qH.Success)}),G.command("ports:list",J.ports).option("-p, --project [name]",J.project,{default:void 0}).option("-q, --quiet","Use minimal output",{default:!1}).option("--verbose",J.verbose,{default:!1}).action(async(X)=>{J2.debug("Running `buddy ports:list` ...",X);let H;if(!X.quiet)H=await RH("buddy ports:list");if(X.project){if(!X.quiet)J2.info(`Listing ports for project: ${hq(X.project)}`);const Z=await _q(X.project);J2.debug(`Path: ${Z}`);const V=await FH(Z,X);DJ(V,X)}else DJ(vq,X);if(!X.quiet)await MH("Exited",{startTime:H,useSeconds:!1});jJ.exit(qH.Success)}),G.command("ports:check",J.ports).option("-p, --project [name]",J.project,{default:bq()}).option("-q, --quiet","Use minimal output",{default:!1}).option("--verbose",J.verbose,{default:!1}).action(async(X)=>{J2.debug("Running `buddy ports:check` ...",X);let H;if(!X.quiet)H=await RH("buddy ports:check");const Z=await WP1(void 0,{quiet:!0});J2.debug("Running `buddy ports`"),J2.debug(`Found ${Z.length} projects`),J2.debug("Projects:",Z);const V={};for(let Q of Z)V[Q]=await FH(Q,X);if(J2.info("ProjectsPorts:",V),!X.quiet)await MH("Exited",{startTime:H,useSeconds:!1});jJ.exit(qH.Success)}),G.on("ports:*",()=>{console.error("Invalid command: %s\nSee --help for a list of available commands.",G.args.join(" ")),jJ.exit(1)})}async function FH(G,J){if(!J.quiet)J2.info(`Checking ports for project: ${hq(G)}`);FJ.cwd(G),FJ.env(await import(`${G}/.env`));const X=await FJ`./buddy projects:list --quiet`.text();J2.debug("ProjectListResponse",X);const H=X.split("\n").filter((z)=>z.startsWith(" - ")).map((z)=>z.trim().substring(4));J2.debug("Projects:",H);const Z=J.project??gq.projectPath();let V=H.find((z)=>z.includes(Z));if(J2.debug(`Checking ports for project: ${V}`),V===""||!V)V=gq.projectPath();J2.debug(`\$ Running: ./buddy ports:list --quiet via ${V}`);const Q=await FJ`./buddy ports:list --quiet`.json();J2.debug(`Response for ./buddy ports:list --quiet via ${V}`,Q);let Y=Q.replace(/(\w+)(?=\s*:)/g,'"$1"');Y=Y.replace(/,(\s*\})/g,"$1");const W=JSON.parse(Y);return J2.debug(`Ports for ${V}`,W),W}function DJ(G,J){if(!J.quiet)console.log("");if(console.log(G),!J.quiet)console.log("")}import zP1 from"process";import{runAction as UP1}from"@stacksjs/actions";import{Action as KP1}from"@stacksjs/enums";import{log as BP1}from"@stacksjs/logging";function ry1(G){const J={command:"Run your prepublish script",project:"Target a specific project",verbose:"Enable verbose output"};G.command("prepublish",J.command).option("-p, --project [project]",J.project,{default:!1}).option("--verbose",J.verbose,{default:!1}).action(async(X)=>{BP1.debug("Running `buddy prepublish` ...",X),await UP1(KP1.Prepublish,X)}),G.on("prepublish:*",()=>{console.error("Invalid command: %s\nSee --help for a list of available commands.",G.args.join(" ")),zP1.exit(1)})}import jH from"process";import{intro as yq,log as mq}from"@stacksjs/cli";import{ExitCode as xq}from"@stacksjs/types";import{findStacksProjects as lq}from"@stacksjs/utils";function ny1(G){const J={projects:"Find all Stacks projects on your system",verbose:"Enable verbose output"};G.command("projects",J.projects).option("-q, --quiet","Use minimal output",{default:!1}).option("-l, --list","List all local Stacks projects",{default:!1}).option("--verbose",J.verbose,{default:!1}).action(async(X)=>{if(mq.debug("Running `buddy projects` ...",X),!X.quiet)await yq("buddy projects");const H=await lq(void 0,X);for(let Z of H)console.log(" - ",Z);jH.exit(xq.Success)}),G.command("projects:list",J.projects).option("-q, --quiet","Use minimal output",{default:!1}).option("-l, --list","List all local Stacks projects",{default:!0}).option("--verbose",J.verbose,{default:!1}).action(async(X)=>{if(mq.debug("Running `buddy projects` ...",X),!X.quiet)await yq("buddy projects:list");const H=await lq(void 0,X);for(let Z of H)console.log(" - ",Z);jH.exit(xq.Success)}),G.on("projects:*",()=>{console.error("Invalid command: %s\nSee --help for a list of available commands.",G.args.join(" ")),jH.exit(1)})}import cq from"process";import{runAction as $P1}from"@stacksjs/actions";import{intro as RP1,italic as MP1,log as IJ,outro as qP1}from"@stacksjs/cli";import{Action as FP1}from"@stacksjs/enums";import{ExitCode as jP1}from"@stacksjs/types";function Hm1(G){G.command("release",AJ.release).option("--dry-run",AJ.dryRun,{default:!1}).option("-p, --project [project]",AJ.project,{default:!1}).option("--verbose",AJ.verbose,{default:!1}).action(async(J)=>{if(IJ.debug("Running `buddy release` ...",J),J.dryRun)IJ.warn("Dry run enabled. No changes will be made or committed.");const X=await RP1("buddy release"),H=await $P1(FP1.Release,J);if(H.isErr())IJ.error("Failed to release",H.error),cq.exit(jP1.FatalError);await qP1("Triggered CI/CD Release via GitHub Actions",{startTime:X,useSeconds:!0}),IJ.info(`Follow along: ${MP1("https://github.com/stacksjs/stacks/actions")}`)}),G.on("release:*",()=>{console.error("Invalid command: %s\nSee --help for a list of available commands.",G.args.join(" ")),cq.exit(1)})}var AJ={release:"Release a new version of your libraries/packages",project:"Target a specific project",dryRun:"Run the release without actually releasing",verbose:"Enable verbose output"};import DH from"process";import{runAction as DP1}from"@stacksjs/actions";import{intro as IP1,outro as aq}from"@stacksjs/cli";import{Action as AP1}from"@stacksjs/enums";import{ExitCode as CP1}from"@stacksjs/types";function Um1(G){const J={route:"Lists your routes",verbose:"Enable verbose output"};G.command("route:list",J.route).option("--verbose",J.verbose,{default:!1}).action(async(X)=>{const H=await IP1("buddy route:list"),Z=await DP1(AP1.RouteList,X);if(Z.isErr())await aq("While running the migrate command, there was an issue",{startTime:H,useSeconds:!0},Z.error),DH.exit();await aq("Successfully listed routes"),DH.exit(CP1.Success)}),G.on("route:*",()=>{console.error("Invalid command: %s\nSee --help for a list of available commands.",G.args.join(" ")),DH.exit(1)})}import CJ from"process";import{runAction as fP1}from"@stacksjs/actions";import{intro as SP1,log as PP1,outro as rq}from"@stacksjs/cli";import{Action as LP1}from"@stacksjs/enums";import{ExitCode as iq}from"@stacksjs/types";function Fm1(G){const J={seed:"Seed your database",project:"Target a specific project",verbose:"Enable verbose output"};G.command("seed",J.seed).option("-p, --project [project]",J.project,{default:!1}).option("--verbose",J.verbose,{default:!1}).action(async(X)=>{PP1.debug("Running `buddy seed` ...",X);const H=await SP1("buddy seed"),Z=await fP1(LP1.Seed,X);if(Z.isErr())await rq("While running the seed command, there was an issue",{startTime:H,useSeconds:!0},Z.error),CJ.exit(iq.FatalError);const V=CJ.env.APP_ENV||"local";await rq(`Seeded your ${V} database.`,{startTime:H,useSeconds:!0}),CJ.exit(iq.Success)}),G.on("seed:*",()=>{console.error("Invalid command: %s\nSee --help for a list of available commands.",G.args.join(" ")),CJ.exit(1)})}import M5 from"process";import{runAction as TP1}from"@stacksjs/actions";import{log as b2,runCommand as X9}from"@stacksjs/cli";import{Action as wP1}from"@stacksjs/enums";import{handleError as J6}from"@stacksjs/error-handling";import{path as H9}from"@stacksjs/path";import{storage as NP1}from"@stacksjs/storage";import{ExitCode as q5}from"@stacksjs/types";function Tm1(G){const J={setup:"This command ensures your project is setup correctly",ohMyZsh:"Enable Oh My Zsh",aws:"Ensures AWS is connected to the project",project:"Target a specific project",verbose:"Enable verbose output"};G.command("setup",J.setup).alias("ensure").option("-p, --project [project]",J.project,{default:!1}).option("--verbose",J.verbose,{default:!1}).action(async(X)=>{if(b2.debug("Running `buddy setup` ...",X),!await kP1())await EP1();await vP1(),await OP1(X)}),G.command("setup:oh-my-zsh",J.ohMyZsh).alias("upgrade:oh-my-zsh").option("--verbose",J.verbose,{default:!1}).action(async(X)=>{b2.debug("Running `buddy setup:oh-my-zsh` ...",X);const H=await TP1(wP1.UpgradeShell);if(H.isErr())b2.error(H.error),M5.exit(q5.FatalError)}),G.on("setup:*",()=>{console.error("Invalid command: %s\nSee --help for a list of available commands.",G.args.join(" ")),M5.exit(q5.FatalError)})}async function kP1(){if((await X9("pkgx --version",{silent:!0})).isOk())return!0;return!1}async function EP1(){const G=await X9(H9.frameworkPath("scripts/pkgx-install"));if(G.isOk())return;J6(G.error),M5.exit(q5.FatalError)}async function OP1(G){b2.info("Installing dependencies...");const J=await X9("bun install",{cwd:G.cwd||H9.projectPath()});if(J.isErr())J6(J.error),M5.exit(q5.FatalError);b2.success("Installed node_modules"),_P1(G);const X=await X9("buddy key:generate",{cwd:G.cwd||H9.projectPath()});if(X.isErr())J6(X.error),M5.exit(q5.FatalError);b2.info("Ensuring AWS is connected...");const H=await X9("buddy configure:aws",{cwd:G.cwd||H9.projectPath()});if(H.isErr())J6(H.error),M5.exit(q5.FatalError);b2.success("Configured AWS"),b2.success("Project is setup"),b2.info("Happy coding! \uD83D\uDC99")}async function vP1(){return new Promise((G)=>setTimeout(G,300))}async function _P1(G){if(b2.info("Ensuring .env exists..."),NP1.doesNotExist(H9.projectPath(".env"))){const J=await X9("cp .env.example .env",{cwd:G.cwd||H9.projectPath()});if(J.isErr())J6(J.error),M5.exit(q5.FatalError);b2.success(".env created")}else b2.success(".env existed")}import I0 from"process";import{runAction as g0}from"@stacksjs/actions";import{intro as X6,log as uq,outro as S2}from"@stacksjs/cli";import{Action as b0}from"@stacksjs/enums";import{projectPath as h0}from"@stacksjs/path";function _m1(G){const J={command:"Runs your test suite",types:"Typechecks your codebase",coverage:"Generates a test coverage report",ui:"Runs your test suite in the browser",unit:"Runs your unit tests",feature:"Runs your feature tests",showReport:"Show the test report",project:"Target a specific project",verbose:"Enable verbose output"};G.command("test",J.command).option("-f, --feature",J.feature,{default:!1}).option("-u, --unit",J.unit,{default:!1}).option("-p, --project [project]",J.project,{default:!1}).option("--verbose",J.verbose,{default:!0}).action(async(X)=>{const H=await X6("buddy test");if(X.feature&&X.unit){const Z=await g0(b0.Test,{...X,cwd:h0()});if(Z.isErr())await S2("While running `buddy test`, there was an issue",{startTime:H,useSeconds:!0},Z.error),I0.exit()}if(X.feature&&!X.unit){uq.info("Running Feature tests...");const Z=await g0(b0.TestFeature,{...X,cwd:h0()});if(Z.isErr())await S2("While running `buddy test`, there was an issue",{startTime:H,useSeconds:!0},Z.error),I0.exit()}if(!X.feature&&X.unit){uq.info("Running Unit tests...");const Z=await g0(b0.TestUnit,{...X,cwd:h0()});if(Z.isErr())await S2("While running `buddy test`, there was an issue",{startTime:H,useSeconds:!0},Z.error),I0.exit()}if(!X.feature&&!X.unit){const Z=await g0(b0.Test,{...X,cwd:h0()});if(Z.isErr())await S2("While running `buddy test`, there was an issue",{startTime:H,useSeconds:!0},Z.error),I0.exit()}await S2("Finished running tests",{startTime:H,useSeconds:!0})}),G.command("test:unit",J.unit).option("--verbose",J.verbose,{default:!1}).action(async(X)=>{const H=await X6("buddy test:unit"),Z=await g0(b0.TestUnit,{...X,verbose:!0,cwd:h0()});if(Z.isErr())await S2("While running `buddy test:unit`, there was an issue",{startTime:H,useSeconds:!0},Z.error),I0.exit();await S2("Finished running unit tests",{startTime:H,useSeconds:!0})}),G.command("test:feature",J.feature).option("--verbose",J.verbose,{default:!1}).action(async(X)=>{const H=await X6("buddy test:feature"),Z=await g0(b0.TestFeature,{...X,verbose:!0,cwd:h0()});if(Z.isErr())await S2("While running `buddy test:feature`, there was an issue",{startTime:H,useSeconds:!0},Z.error),I0.exit();await S2("Finished running feature tests",{startTime:H,useSeconds:!0})}),G.command("test:ui",J.command).option("--verbose",J.verbose,{default:!1}).action(async(X)=>{const H=await X6("buddy test:ui"),Z=await g0(b0.TestUi,{...X,verbose:!0,cwd:h0()});if(Z.isErr())await S2("While running `buddy test:ui`, there was an issue",{startTime:H,useSeconds:!0},Z.error),I0.exit();await S2("Finished running tests in the browser",{startTime:H,useSeconds:!0})}),G.command("test:types",J.types).alias("typecheck").option("--verbose",J.verbose,{default:!1}).action(async(X)=>{const H=await X6("buddy test:types"),Z=await g0(b0.Typecheck,{...X,verbose:!0,cwd:h0()});if(Z.isErr())await S2("While running `buddy test:types`, there was an issue",{startTime:H,useSeconds:!0},Z.error),I0.exit();await S2("Finished running typecheck",{startTime:H,useSeconds:!0})}),G.on("test:*",()=>{console.error("Invalid command: %s\nSee --help for a list of available commands.",G.args.join(" ")),I0.exit(1)})}import IH from"process";import{intro as gP1,log as bP1,outro as dq,runCommand as hP1}from"@stacksjs/cli";import{ExitCode as yP1}from"@stacksjs/types";function mm1(G){const J={tinker:"Tinker with your code",project:"Target a specific project",verbose:"Enable verbose output"};G.command("tinker",J.tinker).option("-p, --project [project]",J.project,{default:!1}).option("--verbose",J.verbose,{default:!1}).action(async(X)=>{bP1.debug("Running `buddy tinker` ...",X);const H=await gP1("buddy tinker"),Z=await hP1("bun repl",{stdin:"inherit"});if(Z.isErr())await dq("While running the tinker command, there was an issue",{startTime:H,useSeconds:!0},Z.error||void 0),IH.exit();await dq("Tinker mode exited.",{startTime:H,useSeconds:!0}),IH.exit(yP1.Success)}),G.on("tinker:*",()=>{console.error("Invalid command: %s\nSee --help for a list of available commands.",G.args.join(" ")),IH.exit(1)})}import mP1 from"process";import{generateTypes as xP1}from"@stacksjs/actions";import{log as lP1}from"@stacksjs/logging";function rm1(G){const J={generate:"Generate the types of & for your library/libraries",fix:"wip",project:"Target a specific project",verbose:"Enable verbose output"};G.command("types:generate",J.generate).option("-p, --project [project]",J.project,{default:!1}).option("--verbose",J.verbose,{default:!1}).action(async(X)=>{lP1.debug("Running `buddy types:generate` ...",X),await xP1()}),G.command("types:fix",J.fix).option("-p, --project [project]",J.project,{default:!1}).option("--verbose",J.verbose,{default:!1}).action(async()=>{}),G.on("types:*",()=>{console.error("Invalid command: %s\nSee --help for a list of available commands.",G.args.join(" ")),mP1.exit(1)})}import P2 from"process";import{runAction as F5}from"@stacksjs/actions";import{intro as fJ,log as y0,outro as H6,prompts as cP1}from"@stacksjs/cli";import{Action as j5}from"@stacksjs/enums";import{ExitCode as SJ}from"@stacksjs/types";import{isString as aP1}from"@stacksjs/validation";function em1(G){const J={command:"Upgrade dependencies, framework, package manager, JS/TS runtime",framework:"Upgrade the Stacks framework",dependencies:"Upgrade your dependencies (pkgx.yaml & package.json)",bun:"Upgrade Bun to the latest version",shell:"Upgrade the to the latest shell integration (currently only supports Oh My Zsh)",binary:"Upgrade the `stacks` binary to the latest version. Please note, the binary is moved to the `~/.stacks/bin` directory",all:"Upgrade Node, package manager, project dependencies, and framework",force:"Overwrite possible local updates with remote framework updates",select:"What are you trying to upgrade?",project:"Target a specific project",verbose:"Enable verbose output"};G.command("upgrade",J.command).option("-d, --dependencies",J.dependencies,{default:!1}).option("-b, --bun",J.bun,{default:!1}).option("-a, --all",J.all,{default:!1}).option("-f, --force",J.force,{default:!1}).option("--framework",J.framework,{default:!1}).option("-p, --project [project]",J.project,{default:!1}).option("-s, --shell",J.shell,{default:!1}).option("-b, --binary",J.binary,{default:!1}).option("--verbose",J.verbose,{default:!1}).alias("update").example("buddy upgrade -a --verbose").action(async(X)=>{y0.debug("Running `buddy upgrade` ...",X);const H=await fJ("buddy upgrade");if(rP1(X)){let Q=(await cP1({type:"multiselect",name:"value",message:J.select,choices:[{value:"dependencies",title:"Dependencies"},{value:"framework",title:"Framework"},{value:"bun",title:"Bun"},{value:"shell",title:"Shell"},{value:"binary",title:"Binary"}]})).value;if(Q!==null)P2.exit(SJ.InvalidArgument);if(aP1(Q))Q=[Q];X=Q.reduce((Y,W)=>{return Y[W]=!0,Y},{})}const Z=await F5(j5.Upgrade,X);if(Z.isErr())await H6("While running the buddy:upgrade command, there was an issue",{startTime:H,useSeconds:!0},Z.error),P2.exit();await H6("Upgrade complete.",{startTime:H,useSeconds:!0}),P2.exit()}),G.command("upgrade:framework",J.framework).option("-p, --project [project]",J.project,{default:!1}).option("--verbose",J.verbose,{default:!1}).example("buddy upgrade:framework --verbose").action(async(X)=>{y0.debug("Running `buddy upgrade:framework` ...",X),await F5(j5.Upgrade,X)}),G.command("upgrade:dependencies",J.dependencies).option("-p, --project [project]",J.project,{default:!1}).option("--verbose",J.verbose,{default:!1}).alias("upgrade:deps").example("buddy upgrade:dependencies --verbose").action(async(X)=>{y0.debug("Running `buddy upgrade:dependencies` ...",X),await F5(j5.Upgrade,X)}),G.command("upgrade:bun",J.bun).option("-p, --project [project]",J.project,{default:!1}).option("--verbose",J.verbose,{default:!1}).action(async(X)=>{y0.debug("Running `buddy upgrade:bun` ...",X);const H=await fJ("buddy upgrade:bun"),Z=await F5(j5.UpgradeBun,X);if(Z.isErr())await H6("While running the buddy upgrade:bun command, there was an issue",{startTime:H,useSeconds:!0},Z.error),P2.exit();P2.exit(SJ.Success)}),G.command("upgrade:all",J.all).option("-p, --project [project]",J.project,{default:!1}).option("--verbose",J.verbose,{default:!1}).action(async(X)=>{y0.debug("Running `buddy upgrade:all` ...",X),await F5(j5.Upgrade,X)}),G.command("upgrade:shell",J.shell).option("--verbose",J.verbose,{default:!1}).example("buddy upgrade:shell").action(async(X)=>{y0.debug("Running `buddy upgrade:shell` ...",X);const H=await fJ("buddy upgrade:shell"),Z=await F5(j5.UpgradeShell,X);if(Z.isErr())await H6("While running the buddy upgrade:shell command, there was an issue",{startTime:H,useSeconds:!0},Z.error),P2.exit();P2.exit(SJ.Success)}),G.command("upgrade:binary",J.binary).option("--verbose",J.verbose,{default:!1}).example("buddy upgrade:binary").action(async(X)=>{if(P2.getuid&&P2.getuid()!==0)y0.warn("To upgrade the binary, you need to run this command with sudo, or as root."),P2.exit(0);y0.debug("Running `buddy upgrade:binary` ...",X);const H=await fJ("buddy upgrade:binary"),Z=await F5(j5.UpgradeBinary,X);if(Z.isErr())await H6("While running the buddy upgrade:binary command, there was an issue",{startTime:H,useSeconds:!0},Z.error),P2.exit();P2.exit(SJ.Success)}),G.on("upgrade:*",()=>{console.error("Invalid command: %s\nSee --help for a list of available commands.",G.args.join(" ")),P2.exit(1)})}function rP1(G){return!G.framework&&!G.dependencies&&!G.bun&&!G.shell&&!G.binary&&!G.all}import iP1 from"process";import{bold as sq,dim as pq,green as nq,intro as uP1,log as AH}from"@stacksjs/cli";import{storage as dP1}from"@stacksjs/storage";function Hx1(G){const J={version:"Retrieving Stacks build version"};G.command("version",J.version).action(async()=>{AH.debug("Running `buddy version` ..."),await uP1("buddy version");const X=await dP1.readPackageJson("./package.json"),H="wip",Z=X.version;AH.info(nq(sq("@stacksjs/ "))+pq(` ${Z}`)),AH.info(nq(sq("Bun: "))+pq(` ${H}`))}),G.on("version:*",()=>{console.error("Invalid command: %s\nSee --help for a list of available commands.",G.args.join(" ")),iP1.exit(1)})}export{tP1 as a,VL1 as b,BL1 as c,tT1 as d,Zw1 as e,Uw1 as f,Iw1 as g,Ew1 as h,mw1 as i,WA as j,iw1 as k,GN1 as l,YN1 as m,Eh1 as n,hh1 as o,ch1 as p,sh1 as q,Gy1 as r,Qy1 as s,My1 as t,Cy1 as u,wy1 as v,yy1 as w,ry1 as x,ny1 as y,Hm1 as z,Um1 as A,Fm1 as B,Tm1 as C,vP1 as D,_P1 as E,_m1 as F,mm1 as G,rm1 as H,em1 as I,Hx1 as J};
829
+
830
+ //# debugId=E4E8BFF40C717D9764756E2164756E21
831
+ //# sourceMappingURL=chunk-mrrgcavv.js.map