graz 0.0.41 → 0.0.42-alpha.2

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.
@@ -0,0 +1,141 @@
1
+ import{createRequire as $tsup_createRequire}from"module";const require=$tsup_createRequire(import.meta.url);
2
+ var x3=Object.create;var zx=Object.defineProperty;var P3=Object.getOwnPropertyDescriptor;var v3=Object.getOwnPropertyNames;var A3=Object.getPrototypeOf,w3=Object.prototype.hasOwnProperty;var K=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(e,r)=>(typeof require<"u"?require:e)[r]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw new Error('Dynamic require of "'+t+'" is not supported')});var _3=(t,e)=>()=>(t&&(e=t(t=0)),e);var g=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var C3=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of v3(e))!w3.call(t,s)&&s!==r&&zx(t,s,{get:()=>e[s],enumerable:!(i=P3(e,s))||i.enumerable});return t};var ir=(t,e,r)=>(r=t!=null?x3(A3(t)):{},C3(e||!t||!t.__esModule?zx(r,"default",{value:t,enumerable:!0}):r,t));import{fileURLToPath as I3}from"url";import O3 from"path";var N3,D3,m,c=_3(()=>{N3=()=>I3(import.meta.url),D3=()=>O3.dirname(N3()),m=D3()});var sr=g(ld=>{"use strict";c();ld.fromCallback=function(t){return Object.defineProperty(function(...e){if(typeof e[e.length-1]=="function")t.apply(this,e);else return new Promise((r,i)=>{t.call(this,...e,(s,n)=>s!=null?i(s):r(n))})},"name",{value:t.name})};ld.fromPromise=function(t){return Object.defineProperty(function(...e){let r=e[e.length-1];if(typeof r!="function")return t.apply(this,e);t.apply(this,e.slice(0,-1)).then(i=>r(null,i),r)},"name",{value:t.name})}});var tP=g((aDe,eP)=>{c();var os=K("constants"),L3=process.cwd,Bu=null,k3=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return Bu||(Bu=L3.call(process)),Bu};try{process.cwd()}catch{}typeof process.chdir=="function"&&(ud=process.chdir,process.chdir=function(t){Bu=null,ud.call(process,t)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,ud));var ud;eP.exports=R3;function R3(t){os.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&e(t),t.lutimes||r(t),t.chown=n(t.chown),t.fchown=n(t.fchown),t.lchown=n(t.lchown),t.chmod=i(t.chmod),t.fchmod=i(t.fchmod),t.lchmod=i(t.lchmod),t.chownSync=a(t.chownSync),t.fchownSync=a(t.fchownSync),t.lchownSync=a(t.lchownSync),t.chmodSync=s(t.chmodSync),t.fchmodSync=s(t.fchmodSync),t.lchmodSync=s(t.lchmodSync),t.stat=o(t.stat),t.fstat=o(t.fstat),t.lstat=o(t.lstat),t.statSync=l(t.statSync),t.fstatSync=l(t.fstatSync),t.lstatSync=l(t.lstatSync),t.chmod&&!t.lchmod&&(t.lchmod=function(f,p,h){h&&process.nextTick(h)},t.lchmodSync=function(){}),t.chown&&!t.lchown&&(t.lchown=function(f,p,h,d){d&&process.nextTick(d)},t.lchownSync=function(){}),k3==="win32"&&(t.rename=typeof t.rename!="function"?t.rename:function(f){function p(h,d,T){var b=Date.now(),x=0;f(h,d,function _(R){if(R&&(R.code==="EACCES"||R.code==="EPERM"||R.code==="EBUSY")&&Date.now()-b<6e4){setTimeout(function(){t.stat(d,function(k,M){k&&k.code==="ENOENT"?f(h,d,_):T(R)})},x),x<100&&(x+=10);return}T&&T(R)})}return Object.setPrototypeOf&&Object.setPrototypeOf(p,f),p}(t.rename)),t.read=typeof t.read!="function"?t.read:function(f){function p(h,d,T,b,x,_){var R;if(_&&typeof _=="function"){var k=0;R=function(M,O,L){if(M&&M.code==="EAGAIN"&&k<10)return k++,f.call(t,h,d,T,b,x,R);_.apply(this,arguments)}}return f.call(t,h,d,T,b,x,R)}return Object.setPrototypeOf&&Object.setPrototypeOf(p,f),p}(t.read),t.readSync=typeof t.readSync!="function"?t.readSync:function(f){return function(p,h,d,T,b){for(var x=0;;)try{return f.call(t,p,h,d,T,b)}catch(_){if(_.code==="EAGAIN"&&x<10){x++;continue}throw _}}}(t.readSync);function e(f){f.lchmod=function(p,h,d){f.open(p,os.O_WRONLY|os.O_SYMLINK,h,function(T,b){if(T){d&&d(T);return}f.fchmod(b,h,function(x){f.close(b,function(_){d&&d(x||_)})})})},f.lchmodSync=function(p,h){var d=f.openSync(p,os.O_WRONLY|os.O_SYMLINK,h),T=!0,b;try{b=f.fchmodSync(d,h),T=!1}finally{if(T)try{f.closeSync(d)}catch{}else f.closeSync(d)}return b}}function r(f){os.hasOwnProperty("O_SYMLINK")&&f.futimes?(f.lutimes=function(p,h,d,T){f.open(p,os.O_SYMLINK,function(b,x){if(b){T&&T(b);return}f.futimes(x,h,d,function(_){f.close(x,function(R){T&&T(_||R)})})})},f.lutimesSync=function(p,h,d){var T=f.openSync(p,os.O_SYMLINK),b,x=!0;try{b=f.futimesSync(T,h,d),x=!1}finally{if(x)try{f.closeSync(T)}catch{}else f.closeSync(T)}return b}):f.futimes&&(f.lutimes=function(p,h,d,T){T&&process.nextTick(T)},f.lutimesSync=function(){})}function i(f){return f&&function(p,h,d){return f.call(t,p,h,function(T){u(T)&&(T=null),d&&d.apply(this,arguments)})}}function s(f){return f&&function(p,h){try{return f.call(t,p,h)}catch(d){if(!u(d))throw d}}}function n(f){return f&&function(p,h,d,T){return f.call(t,p,h,d,function(b){u(b)&&(b=null),T&&T.apply(this,arguments)})}}function a(f){return f&&function(p,h,d){try{return f.call(t,p,h,d)}catch(T){if(!u(T))throw T}}}function o(f){return f&&function(p,h,d){typeof h=="function"&&(d=h,h=null);function T(b,x){x&&(x.uid<0&&(x.uid+=4294967296),x.gid<0&&(x.gid+=4294967296)),d&&d.apply(this,arguments)}return h?f.call(t,p,h,T):f.call(t,p,T)}}function l(f){return f&&function(p,h){var d=h?f.call(t,p,h):f.call(t,p);return d&&(d.uid<0&&(d.uid+=4294967296),d.gid<0&&(d.gid+=4294967296)),d}}function u(f){if(!f||f.code==="ENOSYS")return!0;var p=!process.getuid||process.getuid()!==0;return!!(p&&(f.code==="EINVAL"||f.code==="EPERM"))}}});var sP=g((lDe,iP)=>{c();var rP=K("stream").Stream;iP.exports=M3;function M3(t){return{ReadStream:e,WriteStream:r};function e(i,s){if(!(this instanceof e))return new e(i,s);rP.call(this);var n=this;this.path=i,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=64*1024,s=s||{};for(var a=Object.keys(s),o=0,l=a.length;o<l;o++){var u=a[o];this[u]=s[u]}if(this.encoding&&this.setEncoding(this.encoding),this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.end===void 0)this.end=1/0;else if(typeof this.end!="number")throw TypeError("end must be a Number");if(this.start>this.end)throw new Error("start must be <= end");this.pos=this.start}if(this.fd!==null){process.nextTick(function(){n._read()});return}t.open(this.path,this.flags,this.mode,function(f,p){if(f){n.emit("error",f),n.readable=!1;return}n.fd=p,n.emit("open",p),n._read()})}function r(i,s){if(!(this instanceof r))return new r(i,s);rP.call(this),this.path=i,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,s=s||{};for(var n=Object.keys(s),a=0,o=n.length;a<o;a++){var l=n[a];this[l]=s[l]}if(this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.start<0)throw new Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],this.fd===null&&(this._open=t.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}});var aP=g((cDe,nP)=>{"use strict";c();nP.exports=B3;var F3=Object.getPrototypeOf||function(t){return t.__proto__};function B3(t){if(t===null||typeof t!="object")return t;if(t instanceof Object)var e={__proto__:F3(t)};else var e=Object.create(null);return Object.getOwnPropertyNames(t).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}});var Ht=g((pDe,pd)=>{c();var at=K("fs"),j3=tP(),q3=sP(),U3=aP(),ju=K("util"),Ct,Uu;typeof Symbol=="function"&&typeof Symbol.for=="function"?(Ct=Symbol.for("graceful-fs.queue"),Uu=Symbol.for("graceful-fs.previous")):(Ct="___graceful-fs.queue",Uu="___graceful-fs.previous");function $3(){}function uP(t,e){Object.defineProperty(t,Ct,{get:function(){return e}})}var nn=$3;ju.debuglog?nn=ju.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(nn=function(){var t=ju.format.apply(ju,arguments);t="GFS4: "+t.split(/\n/).join(`
3
+ GFS4: `),console.error(t)});at[Ct]||(oP=global[Ct]||[],uP(at,oP),at.close=function(t){function e(r,i){return t.call(at,r,function(s){s||lP(),typeof i=="function"&&i.apply(this,arguments)})}return Object.defineProperty(e,Uu,{value:t}),e}(at.close),at.closeSync=function(t){function e(r){t.apply(at,arguments),lP()}return Object.defineProperty(e,Uu,{value:t}),e}(at.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){nn(at[Ct]),K("assert").equal(at[Ct].length,0)}));var oP;global[Ct]||uP(global,at[Ct]);pd.exports=cd(U3(at));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!at.__patched&&(pd.exports=cd(at),at.__patched=!0);function cd(t){j3(t),t.gracefulify=cd,t.createReadStream=O,t.createWriteStream=L;var e=t.readFile;t.readFile=r;function r(V,X,B){return typeof X=="function"&&(B=X,X=null),oe(V,X,B);function oe(me,_e,q,$){return e(me,_e,function(ge){ge&&(ge.code==="EMFILE"||ge.code==="ENFILE")?ia([oe,[me,_e,q],ge,$||Date.now(),Date.now()]):typeof q=="function"&&q.apply(this,arguments)})}}var i=t.writeFile;t.writeFile=s;function s(V,X,B,oe){return typeof B=="function"&&(oe=B,B=null),me(V,X,B,oe);function me(_e,q,$,ge,he){return i(_e,q,$,function(Ee){Ee&&(Ee.code==="EMFILE"||Ee.code==="ENFILE")?ia([me,[_e,q,$,ge],Ee,he||Date.now(),Date.now()]):typeof ge=="function"&&ge.apply(this,arguments)})}}var n=t.appendFile;n&&(t.appendFile=a);function a(V,X,B,oe){return typeof B=="function"&&(oe=B,B=null),me(V,X,B,oe);function me(_e,q,$,ge,he){return n(_e,q,$,function(Ee){Ee&&(Ee.code==="EMFILE"||Ee.code==="ENFILE")?ia([me,[_e,q,$,ge],Ee,he||Date.now(),Date.now()]):typeof ge=="function"&&ge.apply(this,arguments)})}}var o=t.copyFile;o&&(t.copyFile=l);function l(V,X,B,oe){return typeof B=="function"&&(oe=B,B=0),me(V,X,B,oe);function me(_e,q,$,ge,he){return o(_e,q,$,function(Ee){Ee&&(Ee.code==="EMFILE"||Ee.code==="ENFILE")?ia([me,[_e,q,$,ge],Ee,he||Date.now(),Date.now()]):typeof ge=="function"&&ge.apply(this,arguments)})}}var u=t.readdir;t.readdir=p;var f=/^v[0-5]\./;function p(V,X,B){typeof X=="function"&&(B=X,X=null);var oe=f.test(process.version)?function(q,$,ge,he){return u(q,me(q,$,ge,he))}:function(q,$,ge,he){return u(q,$,me(q,$,ge,he))};return oe(V,X,B);function me(_e,q,$,ge){return function(he,Ee){he&&(he.code==="EMFILE"||he.code==="ENFILE")?ia([oe,[_e,q,$],he,ge||Date.now(),Date.now()]):(Ee&&Ee.sort&&Ee.sort(),typeof $=="function"&&$.call(this,he,Ee))}}}if(process.version.substr(0,4)==="v0.8"){var h=q3(t);_=h.ReadStream,k=h.WriteStream}var d=t.ReadStream;d&&(_.prototype=Object.create(d.prototype),_.prototype.open=R);var T=t.WriteStream;T&&(k.prototype=Object.create(T.prototype),k.prototype.open=M),Object.defineProperty(t,"ReadStream",{get:function(){return _},set:function(V){_=V},enumerable:!0,configurable:!0}),Object.defineProperty(t,"WriteStream",{get:function(){return k},set:function(V){k=V},enumerable:!0,configurable:!0});var b=_;Object.defineProperty(t,"FileReadStream",{get:function(){return b},set:function(V){b=V},enumerable:!0,configurable:!0});var x=k;Object.defineProperty(t,"FileWriteStream",{get:function(){return x},set:function(V){x=V},enumerable:!0,configurable:!0});function _(V,X){return this instanceof _?(d.apply(this,arguments),this):_.apply(Object.create(_.prototype),arguments)}function R(){var V=this;H(V.path,V.flags,V.mode,function(X,B){X?(V.autoClose&&V.destroy(),V.emit("error",X)):(V.fd=B,V.emit("open",B),V.read())})}function k(V,X){return this instanceof k?(T.apply(this,arguments),this):k.apply(Object.create(k.prototype),arguments)}function M(){var V=this;H(V.path,V.flags,V.mode,function(X,B){X?(V.destroy(),V.emit("error",X)):(V.fd=B,V.emit("open",B))})}function O(V,X){return new t.ReadStream(V,X)}function L(V,X){return new t.WriteStream(V,X)}var F=t.open;t.open=H;function H(V,X,B,oe){return typeof B=="function"&&(oe=B,B=null),me(V,X,B,oe);function me(_e,q,$,ge,he){return F(_e,q,$,function(Ee,st){Ee&&(Ee.code==="EMFILE"||Ee.code==="ENFILE")?ia([me,[_e,q,$,ge],Ee,he||Date.now(),Date.now()]):typeof ge=="function"&&ge.apply(this,arguments)})}}return t}function ia(t){nn("ENQUEUE",t[0].name,t[1]),at[Ct].push(t),fd()}var qu;function lP(){for(var t=Date.now(),e=0;e<at[Ct].length;++e)at[Ct][e].length>2&&(at[Ct][e][3]=t,at[Ct][e][4]=t);fd()}function fd(){if(clearTimeout(qu),qu=void 0,at[Ct].length!==0){var t=at[Ct].shift(),e=t[0],r=t[1],i=t[2],s=t[3],n=t[4];if(s===void 0)nn("RETRY",e.name,r),e.apply(null,r);else if(Date.now()-s>=6e4){nn("TIMEOUT",e.name,r);var a=r.pop();typeof a=="function"&&a.call(null,i)}else{var o=Date.now()-n,l=Math.max(n-s,1),u=Math.min(l*1.2,100);o>=u?(nn("RETRY",e.name,r),e.apply(null,r.concat([s]))):at[Ct].push(t)}qu===void 0&&(qu=setTimeout(fd,0))}}});var an=g(ls=>{"use strict";c();var cP=sr().fromCallback,nr=Ht(),V3=["access","appendFile","chmod","chown","close","copyFile","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","lchmod","lchown","link","lstat","mkdir","mkdtemp","open","opendir","readdir","readFile","readlink","realpath","rename","rm","rmdir","stat","symlink","truncate","unlink","utimes","writeFile"].filter(t=>typeof nr[t]=="function");Object.assign(ls,nr);V3.forEach(t=>{ls[t]=cP(nr[t])});ls.exists=function(t,e){return typeof e=="function"?nr.exists(t,e):new Promise(r=>nr.exists(t,r))};ls.read=function(t,e,r,i,s,n){return typeof n=="function"?nr.read(t,e,r,i,s,n):new Promise((a,o)=>{nr.read(t,e,r,i,s,(l,u,f)=>{if(l)return o(l);a({bytesRead:u,buffer:f})})})};ls.write=function(t,e,...r){return typeof r[r.length-1]=="function"?nr.write(t,e,...r):new Promise((i,s)=>{nr.write(t,e,...r,(n,a,o)=>{if(n)return s(n);i({bytesWritten:a,buffer:o})})})};typeof nr.writev=="function"&&(ls.writev=function(t,e,...r){return typeof r[r.length-1]=="function"?nr.writev(t,e,...r):new Promise((i,s)=>{nr.writev(t,e,...r,(n,a,o)=>{if(n)return s(n);i({bytesWritten:a,buffers:o})})})});typeof nr.realpath.native=="function"?ls.realpath.native=cP(nr.realpath.native):process.emitWarning("fs.realpath.native is not a function. Is fs being monkey-patched?","Warning","fs-extra-WARN0003")});var pP=g((yDe,fP)=>{"use strict";c();var K3=K("path");fP.exports.checkPath=function(e){if(process.platform==="win32"&&/[<>:"|?*]/.test(e.replace(K3.parse(e).root,""))){let i=new Error(`Path contains invalid characters: ${e}`);throw i.code="EINVAL",i}}});var yP=g((SDe,hd)=>{"use strict";c();var hP=an(),{checkPath:dP}=pP(),mP=t=>{let e={mode:511};return typeof t=="number"?t:{...e,...t}.mode};hd.exports.makeDir=async(t,e)=>(dP(t),hP.mkdir(t,{mode:mP(e),recursive:!0}));hd.exports.makeDirSync=(t,e)=>(dP(t),hP.mkdirSync(t,{mode:mP(e),recursive:!0}))});var zr=g((EDe,gP)=>{"use strict";c();var H3=sr().fromPromise,{makeDir:W3,makeDirSync:dd}=yP(),md=H3(W3);gP.exports={mkdirs:md,mkdirsSync:dd,mkdirp:md,mkdirpSync:dd,ensureDir:md,ensureDirSync:dd}});var us=g((xDe,TP)=>{"use strict";c();var G3=sr().fromPromise,SP=an();function Y3(t){return SP.access(t).then(()=>!0).catch(()=>!1)}TP.exports={pathExists:G3(Y3),pathExistsSync:SP.existsSync}});var yd=g((vDe,EP)=>{"use strict";c();var sa=Ht();function X3(t,e,r,i){sa.open(t,"r+",(s,n)=>{if(s)return i(s);sa.futimes(n,e,r,a=>{sa.close(n,o=>{i&&i(a||o)})})})}function z3(t,e,r){let i=sa.openSync(t,"r+");return sa.futimesSync(i,e,r),sa.closeSync(i)}EP.exports={utimesMillis:X3,utimesMillisSync:z3}});var on=g((wDe,PP)=>{"use strict";c();var na=an(),xt=K("path"),J3=K("util");function Q3(t,e,r){let i=r.dereference?s=>na.stat(s,{bigint:!0}):s=>na.lstat(s,{bigint:!0});return Promise.all([i(t),i(e).catch(s=>{if(s.code==="ENOENT")return null;throw s})]).then(([s,n])=>({srcStat:s,destStat:n}))}function Z3(t,e,r){let i,s=r.dereference?a=>na.statSync(a,{bigint:!0}):a=>na.lstatSync(a,{bigint:!0}),n=s(t);try{i=s(e)}catch(a){if(a.code==="ENOENT")return{srcStat:n,destStat:null};throw a}return{srcStat:n,destStat:i}}function eq(t,e,r,i,s){J3.callbackify(Q3)(t,e,i,(n,a)=>{if(n)return s(n);let{srcStat:o,destStat:l}=a;if(l){if(ko(o,l)){let u=xt.basename(t),f=xt.basename(e);return r==="move"&&u!==f&&u.toLowerCase()===f.toLowerCase()?s(null,{srcStat:o,destStat:l,isChangingCase:!0}):s(new Error("Source and destination must not be the same."))}if(o.isDirectory()&&!l.isDirectory())return s(new Error(`Cannot overwrite non-directory '${e}' with directory '${t}'.`));if(!o.isDirectory()&&l.isDirectory())return s(new Error(`Cannot overwrite directory '${e}' with non-directory '${t}'.`))}return o.isDirectory()&&gd(t,e)?s(new Error($u(t,e,r))):s(null,{srcStat:o,destStat:l})})}function tq(t,e,r,i){let{srcStat:s,destStat:n}=Z3(t,e,i);if(n){if(ko(s,n)){let a=xt.basename(t),o=xt.basename(e);if(r==="move"&&a!==o&&a.toLowerCase()===o.toLowerCase())return{srcStat:s,destStat:n,isChangingCase:!0};throw new Error("Source and destination must not be the same.")}if(s.isDirectory()&&!n.isDirectory())throw new Error(`Cannot overwrite non-directory '${e}' with directory '${t}'.`);if(!s.isDirectory()&&n.isDirectory())throw new Error(`Cannot overwrite directory '${e}' with non-directory '${t}'.`)}if(s.isDirectory()&&gd(t,e))throw new Error($u(t,e,r));return{srcStat:s,destStat:n}}function bP(t,e,r,i,s){let n=xt.resolve(xt.dirname(t)),a=xt.resolve(xt.dirname(r));if(a===n||a===xt.parse(a).root)return s();na.stat(a,{bigint:!0},(o,l)=>o?o.code==="ENOENT"?s():s(o):ko(e,l)?s(new Error($u(t,r,i))):bP(t,e,a,i,s))}function xP(t,e,r,i){let s=xt.resolve(xt.dirname(t)),n=xt.resolve(xt.dirname(r));if(n===s||n===xt.parse(n).root)return;let a;try{a=na.statSync(n,{bigint:!0})}catch(o){if(o.code==="ENOENT")return;throw o}if(ko(e,a))throw new Error($u(t,r,i));return xP(t,e,n,i)}function ko(t,e){return e.ino&&e.dev&&e.ino===t.ino&&e.dev===t.dev}function gd(t,e){let r=xt.resolve(t).split(xt.sep).filter(s=>s),i=xt.resolve(e).split(xt.sep).filter(s=>s);return r.reduce((s,n,a)=>s&&i[a]===n,!0)}function $u(t,e,r){return`Cannot ${r} '${t}' to a subdirectory of itself, '${e}'.`}PP.exports={checkPaths:eq,checkPathsSync:tq,checkParentPaths:bP,checkParentPathsSync:xP,isSrcSubdir:gd,areIdentical:ko}});var NP=g((CDe,OP)=>{"use strict";c();var ar=Ht(),Ro=K("path"),rq=zr().mkdirs,iq=us().pathExists,sq=yd().utimesMillis,Mo=on();function nq(t,e,r,i){typeof r=="function"&&!i?(i=r,r={}):typeof r=="function"&&(r={filter:r}),i=i||function(){},r=r||{},r.clobber="clobber"in r?!!r.clobber:!0,r.overwrite="overwrite"in r?!!r.overwrite:r.clobber,r.preserveTimestamps&&process.arch==="ia32"&&process.emitWarning(`Using the preserveTimestamps option in 32-bit node is not recommended;
4
+
5
+ see https://github.com/jprichardson/node-fs-extra/issues/269`,"Warning","fs-extra-WARN0001"),Mo.checkPaths(t,e,"copy",r,(s,n)=>{if(s)return i(s);let{srcStat:a,destStat:o}=n;Mo.checkParentPaths(t,a,e,"copy",l=>l?i(l):r.filter?wP(vP,o,t,e,r,i):vP(o,t,e,r,i))})}function vP(t,e,r,i,s){let n=Ro.dirname(r);iq(n,(a,o)=>{if(a)return s(a);if(o)return Vu(t,e,r,i,s);rq(n,l=>l?s(l):Vu(t,e,r,i,s))})}function wP(t,e,r,i,s,n){Promise.resolve(s.filter(r,i)).then(a=>a?t(e,r,i,s,n):n(),a=>n(a))}function aq(t,e,r,i,s){return i.filter?wP(Vu,t,e,r,i,s):Vu(t,e,r,i,s)}function Vu(t,e,r,i,s){(i.dereference?ar.stat:ar.lstat)(e,(a,o)=>a?s(a):o.isDirectory()?hq(o,t,e,r,i,s):o.isFile()||o.isCharacterDevice()||o.isBlockDevice()?oq(o,t,e,r,i,s):o.isSymbolicLink()?yq(t,e,r,i,s):o.isSocket()?s(new Error(`Cannot copy a socket file: ${e}`)):o.isFIFO()?s(new Error(`Cannot copy a FIFO pipe: ${e}`)):s(new Error(`Unknown file: ${e}`)))}function oq(t,e,r,i,s,n){return e?lq(t,r,i,s,n):_P(t,r,i,s,n)}function lq(t,e,r,i,s){if(i.overwrite)ar.unlink(r,n=>n?s(n):_P(t,e,r,i,s));else return i.errorOnExist?s(new Error(`'${r}' already exists`)):s()}function _P(t,e,r,i,s){ar.copyFile(e,r,n=>n?s(n):i.preserveTimestamps?uq(t.mode,e,r,s):Ku(r,t.mode,s))}function uq(t,e,r,i){return cq(t)?fq(r,t,s=>s?i(s):AP(t,e,r,i)):AP(t,e,r,i)}function cq(t){return(t&128)===0}function fq(t,e,r){return Ku(t,e|128,r)}function AP(t,e,r,i){pq(e,r,s=>s?i(s):Ku(r,t,i))}function Ku(t,e,r){return ar.chmod(t,e,r)}function pq(t,e,r){ar.stat(t,(i,s)=>i?r(i):sq(e,s.atime,s.mtime,r))}function hq(t,e,r,i,s,n){return e?CP(r,i,s,n):dq(t.mode,r,i,s,n)}function dq(t,e,r,i,s){ar.mkdir(r,n=>{if(n)return s(n);CP(e,r,i,a=>a?s(a):Ku(r,t,s))})}function CP(t,e,r,i){ar.readdir(t,(s,n)=>s?i(s):IP(n,t,e,r,i))}function IP(t,e,r,i,s){let n=t.pop();return n?mq(t,n,e,r,i,s):s()}function mq(t,e,r,i,s,n){let a=Ro.join(r,e),o=Ro.join(i,e);Mo.checkPaths(a,o,"copy",s,(l,u)=>{if(l)return n(l);let{destStat:f}=u;aq(f,a,o,s,p=>p?n(p):IP(t,r,i,s,n))})}function yq(t,e,r,i,s){ar.readlink(e,(n,a)=>{if(n)return s(n);if(i.dereference&&(a=Ro.resolve(process.cwd(),a)),t)ar.readlink(r,(o,l)=>o?o.code==="EINVAL"||o.code==="UNKNOWN"?ar.symlink(a,r,s):s(o):(i.dereference&&(l=Ro.resolve(process.cwd(),l)),Mo.isSrcSubdir(a,l)?s(new Error(`Cannot copy '${a}' to a subdirectory of itself, '${l}'.`)):t.isDirectory()&&Mo.isSrcSubdir(l,a)?s(new Error(`Cannot overwrite '${l}' with '${a}'.`)):gq(a,r,s)));else return ar.symlink(a,r,s)})}function gq(t,e,r){ar.unlink(e,i=>i?r(i):ar.symlink(t,e,r))}OP.exports=nq});var MP=g((ODe,RP)=>{"use strict";c();var kt=Ht(),Fo=K("path"),Sq=zr().mkdirsSync,Tq=yd().utimesMillisSync,Bo=on();function Eq(t,e,r){typeof r=="function"&&(r={filter:r}),r=r||{},r.clobber="clobber"in r?!!r.clobber:!0,r.overwrite="overwrite"in r?!!r.overwrite:r.clobber,r.preserveTimestamps&&process.arch==="ia32"&&process.emitWarning(`Using the preserveTimestamps option in 32-bit node is not recommended;
6
+
7
+ see https://github.com/jprichardson/node-fs-extra/issues/269`,"Warning","fs-extra-WARN0002");let{srcStat:i,destStat:s}=Bo.checkPathsSync(t,e,"copy",r);return Bo.checkParentPathsSync(t,i,e,"copy"),bq(s,t,e,r)}function bq(t,e,r,i){if(i.filter&&!i.filter(e,r))return;let s=Fo.dirname(r);return kt.existsSync(s)||Sq(s),DP(t,e,r,i)}function xq(t,e,r,i){if(!(i.filter&&!i.filter(e,r)))return DP(t,e,r,i)}function DP(t,e,r,i){let n=(i.dereference?kt.statSync:kt.lstatSync)(e);if(n.isDirectory())return Iq(n,t,e,r,i);if(n.isFile()||n.isCharacterDevice()||n.isBlockDevice())return Pq(n,t,e,r,i);if(n.isSymbolicLink())return Dq(t,e,r,i);throw n.isSocket()?new Error(`Cannot copy a socket file: ${e}`):n.isFIFO()?new Error(`Cannot copy a FIFO pipe: ${e}`):new Error(`Unknown file: ${e}`)}function Pq(t,e,r,i,s){return e?vq(t,r,i,s):LP(t,r,i,s)}function vq(t,e,r,i){if(i.overwrite)return kt.unlinkSync(r),LP(t,e,r,i);if(i.errorOnExist)throw new Error(`'${r}' already exists`)}function LP(t,e,r,i){return kt.copyFileSync(e,r),i.preserveTimestamps&&Aq(t.mode,e,r),Sd(r,t.mode)}function Aq(t,e,r){return wq(t)&&_q(r,t),Cq(e,r)}function wq(t){return(t&128)===0}function _q(t,e){return Sd(t,e|128)}function Sd(t,e){return kt.chmodSync(t,e)}function Cq(t,e){let r=kt.statSync(t);return Tq(e,r.atime,r.mtime)}function Iq(t,e,r,i,s){return e?kP(r,i,s):Oq(t.mode,r,i,s)}function Oq(t,e,r,i){return kt.mkdirSync(r),kP(e,r,i),Sd(r,t)}function kP(t,e,r){kt.readdirSync(t).forEach(i=>Nq(i,t,e,r))}function Nq(t,e,r,i){let s=Fo.join(e,t),n=Fo.join(r,t),{destStat:a}=Bo.checkPathsSync(s,n,"copy",i);return xq(a,s,n,i)}function Dq(t,e,r,i){let s=kt.readlinkSync(e);if(i.dereference&&(s=Fo.resolve(process.cwd(),s)),t){let n;try{n=kt.readlinkSync(r)}catch(a){if(a.code==="EINVAL"||a.code==="UNKNOWN")return kt.symlinkSync(s,r);throw a}if(i.dereference&&(n=Fo.resolve(process.cwd(),n)),Bo.isSrcSubdir(s,n))throw new Error(`Cannot copy '${s}' to a subdirectory of itself, '${n}'.`);if(kt.statSync(r).isDirectory()&&Bo.isSrcSubdir(n,s))throw new Error(`Cannot overwrite '${n}' with '${s}'.`);return Lq(s,r)}else return kt.symlinkSync(s,r)}function Lq(t,e){return kt.unlinkSync(e),kt.symlinkSync(t,e)}RP.exports=Eq});var Hu=g((DDe,FP)=>{"use strict";c();var kq=sr().fromCallback;FP.exports={copy:kq(NP()),copySync:MP()}});var WP=g((kDe,HP)=>{"use strict";c();var BP=Ht(),$P=K("path"),ze=K("assert"),jo=process.platform==="win32";function VP(t){["unlink","chmod","stat","lstat","rmdir","readdir"].forEach(r=>{t[r]=t[r]||BP[r],r=r+"Sync",t[r]=t[r]||BP[r]}),t.maxBusyTries=t.maxBusyTries||3}function Td(t,e,r){let i=0;typeof e=="function"&&(r=e,e={}),ze(t,"rimraf: missing path"),ze.strictEqual(typeof t,"string","rimraf: path should be a string"),ze.strictEqual(typeof r,"function","rimraf: callback function required"),ze(e,"rimraf: invalid options argument provided"),ze.strictEqual(typeof e,"object","rimraf: options should be object"),VP(e),jP(t,e,function s(n){if(n){if((n.code==="EBUSY"||n.code==="ENOTEMPTY"||n.code==="EPERM")&&i<e.maxBusyTries){i++;let a=i*100;return setTimeout(()=>jP(t,e,s),a)}n.code==="ENOENT"&&(n=null)}r(n)})}function jP(t,e,r){ze(t),ze(e),ze(typeof r=="function"),e.lstat(t,(i,s)=>{if(i&&i.code==="ENOENT")return r(null);if(i&&i.code==="EPERM"&&jo)return qP(t,e,i,r);if(s&&s.isDirectory())return Wu(t,e,i,r);e.unlink(t,n=>{if(n){if(n.code==="ENOENT")return r(null);if(n.code==="EPERM")return jo?qP(t,e,n,r):Wu(t,e,n,r);if(n.code==="EISDIR")return Wu(t,e,n,r)}return r(n)})})}function qP(t,e,r,i){ze(t),ze(e),ze(typeof i=="function"),e.chmod(t,438,s=>{s?i(s.code==="ENOENT"?null:r):e.stat(t,(n,a)=>{n?i(n.code==="ENOENT"?null:r):a.isDirectory()?Wu(t,e,r,i):e.unlink(t,i)})})}function UP(t,e,r){let i;ze(t),ze(e);try{e.chmodSync(t,438)}catch(s){if(s.code==="ENOENT")return;throw r}try{i=e.statSync(t)}catch(s){if(s.code==="ENOENT")return;throw r}i.isDirectory()?Gu(t,e,r):e.unlinkSync(t)}function Wu(t,e,r,i){ze(t),ze(e),ze(typeof i=="function"),e.rmdir(t,s=>{s&&(s.code==="ENOTEMPTY"||s.code==="EEXIST"||s.code==="EPERM")?Rq(t,e,i):s&&s.code==="ENOTDIR"?i(r):i(s)})}function Rq(t,e,r){ze(t),ze(e),ze(typeof r=="function"),e.readdir(t,(i,s)=>{if(i)return r(i);let n=s.length,a;if(n===0)return e.rmdir(t,r);s.forEach(o=>{Td($P.join(t,o),e,l=>{if(!a){if(l)return r(a=l);--n===0&&e.rmdir(t,r)}})})})}function KP(t,e){let r;e=e||{},VP(e),ze(t,"rimraf: missing path"),ze.strictEqual(typeof t,"string","rimraf: path should be a string"),ze(e,"rimraf: missing options"),ze.strictEqual(typeof e,"object","rimraf: options should be object");try{r=e.lstatSync(t)}catch(i){if(i.code==="ENOENT")return;i.code==="EPERM"&&jo&&UP(t,e,i)}try{r&&r.isDirectory()?Gu(t,e,null):e.unlinkSync(t)}catch(i){if(i.code==="ENOENT")return;if(i.code==="EPERM")return jo?UP(t,e,i):Gu(t,e,i);if(i.code!=="EISDIR")throw i;Gu(t,e,i)}}function Gu(t,e,r){ze(t),ze(e);try{e.rmdirSync(t)}catch(i){if(i.code==="ENOTDIR")throw r;if(i.code==="ENOTEMPTY"||i.code==="EEXIST"||i.code==="EPERM")Mq(t,e);else if(i.code!=="ENOENT")throw i}}function Mq(t,e){if(ze(t),ze(e),e.readdirSync(t).forEach(r=>KP($P.join(t,r),e)),jo){let r=Date.now();do try{return e.rmdirSync(t,e)}catch{}while(Date.now()-r<500)}else return e.rmdirSync(t,e)}HP.exports=Td;Td.sync=KP});var qo=g((MDe,YP)=>{"use strict";c();var Yu=Ht(),Fq=sr().fromCallback,GP=WP();function Bq(t,e){if(Yu.rm)return Yu.rm(t,{recursive:!0,force:!0},e);GP(t,e)}function jq(t){if(Yu.rmSync)return Yu.rmSync(t,{recursive:!0,force:!0});GP.sync(t)}YP.exports={remove:Fq(Bq),removeSync:jq}});var rv=g((BDe,tv)=>{"use strict";c();var qq=sr().fromPromise,JP=an(),QP=K("path"),ZP=zr(),ev=qo(),XP=qq(async function(e){let r;try{r=await JP.readdir(e)}catch{return ZP.mkdirs(e)}return Promise.all(r.map(i=>ev.remove(QP.join(e,i))))});function zP(t){let e;try{e=JP.readdirSync(t)}catch{return ZP.mkdirsSync(t)}e.forEach(r=>{r=QP.join(t,r),ev.removeSync(r)})}tv.exports={emptyDirSync:zP,emptydirSync:zP,emptyDir:XP,emptydir:XP}});var av=g((qDe,nv)=>{"use strict";c();var Uq=sr().fromCallback,iv=K("path"),cs=Ht(),sv=zr();function $q(t,e){function r(){cs.writeFile(t,"",i=>{if(i)return e(i);e()})}cs.stat(t,(i,s)=>{if(!i&&s.isFile())return e();let n=iv.dirname(t);cs.stat(n,(a,o)=>{if(a)return a.code==="ENOENT"?sv.mkdirs(n,l=>{if(l)return e(l);r()}):e(a);o.isDirectory()?r():cs.readdir(n,l=>{if(l)return e(l)})})})}function Vq(t){let e;try{e=cs.statSync(t)}catch{}if(e&&e.isFile())return;let r=iv.dirname(t);try{cs.statSync(r).isDirectory()||cs.readdirSync(r)}catch(i){if(i&&i.code==="ENOENT")sv.mkdirsSync(r);else throw i}cs.writeFileSync(t,"")}nv.exports={createFile:Uq($q),createFileSync:Vq}});var fv=g(($De,cv)=>{"use strict";c();var Kq=sr().fromCallback,ov=K("path"),fs=Ht(),lv=zr(),Hq=us().pathExists,{areIdentical:uv}=on();function Wq(t,e,r){function i(s,n){fs.link(s,n,a=>{if(a)return r(a);r(null)})}fs.lstat(e,(s,n)=>{fs.lstat(t,(a,o)=>{if(a)return a.message=a.message.replace("lstat","ensureLink"),r(a);if(n&&uv(o,n))return r(null);let l=ov.dirname(e);Hq(l,(u,f)=>{if(u)return r(u);if(f)return i(t,e);lv.mkdirs(l,p=>{if(p)return r(p);i(t,e)})})})})}function Gq(t,e){let r;try{r=fs.lstatSync(e)}catch{}try{let n=fs.lstatSync(t);if(r&&uv(n,r))return}catch(n){throw n.message=n.message.replace("lstat","ensureLink"),n}let i=ov.dirname(e);return fs.existsSync(i)||lv.mkdirsSync(i),fs.linkSync(t,e)}cv.exports={createLink:Kq(Wq),createLinkSync:Gq}});var hv=g((KDe,pv)=>{"use strict";c();var ps=K("path"),Uo=Ht(),Yq=us().pathExists;function Xq(t,e,r){if(ps.isAbsolute(t))return Uo.lstat(t,i=>i?(i.message=i.message.replace("lstat","ensureSymlink"),r(i)):r(null,{toCwd:t,toDst:t}));{let i=ps.dirname(e),s=ps.join(i,t);return Yq(s,(n,a)=>n?r(n):a?r(null,{toCwd:s,toDst:t}):Uo.lstat(t,o=>o?(o.message=o.message.replace("lstat","ensureSymlink"),r(o)):r(null,{toCwd:t,toDst:ps.relative(i,t)})))}}function zq(t,e){let r;if(ps.isAbsolute(t)){if(r=Uo.existsSync(t),!r)throw new Error("absolute srcpath does not exist");return{toCwd:t,toDst:t}}else{let i=ps.dirname(e),s=ps.join(i,t);if(r=Uo.existsSync(s),r)return{toCwd:s,toDst:t};if(r=Uo.existsSync(t),!r)throw new Error("relative srcpath does not exist");return{toCwd:t,toDst:ps.relative(i,t)}}}pv.exports={symlinkPaths:Xq,symlinkPathsSync:zq}});var yv=g((WDe,mv)=>{"use strict";c();var dv=Ht();function Jq(t,e,r){if(r=typeof e=="function"?e:r,e=typeof e=="function"?!1:e,e)return r(null,e);dv.lstat(t,(i,s)=>{if(i)return r(null,"file");e=s&&s.isDirectory()?"dir":"file",r(null,e)})}function Qq(t,e){let r;if(e)return e;try{r=dv.lstatSync(t)}catch{return"file"}return r&&r.isDirectory()?"dir":"file"}mv.exports={symlinkType:Jq,symlinkTypeSync:Qq}});var vv=g((YDe,Pv)=>{"use strict";c();var Zq=sr().fromCallback,Sv=K("path"),Jr=an(),Tv=zr(),e5=Tv.mkdirs,t5=Tv.mkdirsSync,Ev=hv(),r5=Ev.symlinkPaths,i5=Ev.symlinkPathsSync,bv=yv(),s5=bv.symlinkType,n5=bv.symlinkTypeSync,a5=us().pathExists,{areIdentical:xv}=on();function o5(t,e,r,i){i=typeof r=="function"?r:i,r=typeof r=="function"?!1:r,Jr.lstat(e,(s,n)=>{!s&&n.isSymbolicLink()?Promise.all([Jr.stat(t),Jr.stat(e)]).then(([a,o])=>{if(xv(a,o))return i(null);gv(t,e,r,i)}):gv(t,e,r,i)})}function gv(t,e,r,i){r5(t,e,(s,n)=>{if(s)return i(s);t=n.toDst,s5(n.toCwd,r,(a,o)=>{if(a)return i(a);let l=Sv.dirname(e);a5(l,(u,f)=>{if(u)return i(u);if(f)return Jr.symlink(t,e,o,i);e5(l,p=>{if(p)return i(p);Jr.symlink(t,e,o,i)})})})})}function l5(t,e,r){let i;try{i=Jr.lstatSync(e)}catch{}if(i&&i.isSymbolicLink()){let o=Jr.statSync(t),l=Jr.statSync(e);if(xv(o,l))return}let s=i5(t,e);t=s.toDst,r=n5(s.toCwd,r);let n=Sv.dirname(e);return Jr.existsSync(n)||t5(n),Jr.symlinkSync(t,e,r)}Pv.exports={createSymlink:Zq(o5),createSymlinkSync:l5}});var Dv=g((zDe,Nv)=>{"use strict";c();var{createFile:Av,createFileSync:wv}=av(),{createLink:_v,createLinkSync:Cv}=fv(),{createSymlink:Iv,createSymlinkSync:Ov}=vv();Nv.exports={createFile:Av,createFileSync:wv,ensureFile:Av,ensureFileSync:wv,createLink:_v,createLinkSync:Cv,ensureLink:_v,ensureLinkSync:Cv,createSymlink:Iv,createSymlinkSync:Ov,ensureSymlink:Iv,ensureSymlinkSync:Ov}});var Xu=g((QDe,Lv)=>{c();function u5(t,{EOL:e=`
8
+ `,finalEOL:r=!0,replacer:i=null,spaces:s}={}){let n=r?e:"";return JSON.stringify(t,i,s).replace(/\n/g,e)+n}function c5(t){return Buffer.isBuffer(t)&&(t=t.toString("utf8")),t.replace(/^\uFEFF/,"")}Lv.exports={stringify:u5,stripBom:c5}});var Fv=g((eLe,Mv)=>{c();var aa;try{aa=Ht()}catch{aa=K("fs")}var zu=sr(),{stringify:kv,stripBom:Rv}=Xu();async function f5(t,e={}){typeof e=="string"&&(e={encoding:e});let r=e.fs||aa,i="throws"in e?e.throws:!0,s=await zu.fromCallback(r.readFile)(t,e);s=Rv(s);let n;try{n=JSON.parse(s,e?e.reviver:null)}catch(a){if(i)throw a.message=`${t}: ${a.message}`,a;return null}return n}var p5=zu.fromPromise(f5);function h5(t,e={}){typeof e=="string"&&(e={encoding:e});let r=e.fs||aa,i="throws"in e?e.throws:!0;try{let s=r.readFileSync(t,e);return s=Rv(s),JSON.parse(s,e.reviver)}catch(s){if(i)throw s.message=`${t}: ${s.message}`,s;return null}}async function d5(t,e,r={}){let i=r.fs||aa,s=kv(e,r);await zu.fromCallback(i.writeFile)(t,s,r)}var m5=zu.fromPromise(d5);function y5(t,e,r={}){let i=r.fs||aa,s=kv(e,r);return i.writeFileSync(t,s,r)}var g5={readFile:p5,readFileSync:h5,writeFile:m5,writeFileSync:y5};Mv.exports=g5});var jv=g((rLe,Bv)=>{"use strict";c();var Ju=Fv();Bv.exports={readJson:Ju.readFile,readJsonSync:Ju.readFileSync,writeJson:Ju.writeFile,writeJsonSync:Ju.writeFileSync}});var Qu=g((sLe,$v)=>{"use strict";c();var S5=sr().fromCallback,$o=Ht(),qv=K("path"),Uv=zr(),T5=us().pathExists;function E5(t,e,r,i){typeof r=="function"&&(i=r,r="utf8");let s=qv.dirname(t);T5(s,(n,a)=>{if(n)return i(n);if(a)return $o.writeFile(t,e,r,i);Uv.mkdirs(s,o=>{if(o)return i(o);$o.writeFile(t,e,r,i)})})}function b5(t,...e){let r=qv.dirname(t);if($o.existsSync(r))return $o.writeFileSync(t,...e);Uv.mkdirsSync(r),$o.writeFileSync(t,...e)}$v.exports={outputFile:S5(E5),outputFileSync:b5}});var Kv=g((aLe,Vv)=>{"use strict";c();var{stringify:x5}=Xu(),{outputFile:P5}=Qu();async function v5(t,e,r={}){let i=x5(e,r);await P5(t,i,r)}Vv.exports=v5});var Wv=g((lLe,Hv)=>{"use strict";c();var{stringify:A5}=Xu(),{outputFileSync:w5}=Qu();function _5(t,e,r){let i=A5(e,r);w5(t,i,r)}Hv.exports=_5});var Yv=g((cLe,Gv)=>{"use strict";c();var C5=sr().fromPromise,Wt=jv();Wt.outputJson=C5(Kv());Wt.outputJsonSync=Wv();Wt.outputJSON=Wt.outputJson;Wt.outputJSONSync=Wt.outputJsonSync;Wt.writeJSON=Wt.writeJson;Wt.writeJSONSync=Wt.writeJsonSync;Wt.readJSON=Wt.readJson;Wt.readJSONSync=Wt.readJsonSync;Gv.exports=Wt});var Zv=g((pLe,Qv)=>{"use strict";c();var I5=Ht(),bd=K("path"),O5=Hu().copy,Jv=qo().remove,N5=zr().mkdirp,D5=us().pathExists,Xv=on();function L5(t,e,r,i){typeof r=="function"&&(i=r,r={}),r=r||{};let s=r.overwrite||r.clobber||!1;Xv.checkPaths(t,e,"move",r,(n,a)=>{if(n)return i(n);let{srcStat:o,isChangingCase:l=!1}=a;Xv.checkParentPaths(t,o,e,"move",u=>{if(u)return i(u);if(k5(e))return zv(t,e,s,l,i);N5(bd.dirname(e),f=>f?i(f):zv(t,e,s,l,i))})})}function k5(t){let e=bd.dirname(t);return bd.parse(e).root===e}function zv(t,e,r,i,s){if(i)return Ed(t,e,r,s);if(r)return Jv(e,n=>n?s(n):Ed(t,e,r,s));D5(e,(n,a)=>n?s(n):a?s(new Error("dest already exists.")):Ed(t,e,r,s))}function Ed(t,e,r,i){I5.rename(t,e,s=>s?s.code!=="EXDEV"?i(s):R5(t,e,r,i):i())}function R5(t,e,r,i){O5(t,e,{overwrite:r,errorOnExist:!0},n=>n?i(n):Jv(t,i))}Qv.exports=L5});var sA=g((dLe,iA)=>{"use strict";c();var tA=Ht(),Pd=K("path"),M5=Hu().copySync,rA=qo().removeSync,F5=zr().mkdirpSync,eA=on();function B5(t,e,r){r=r||{};let i=r.overwrite||r.clobber||!1,{srcStat:s,isChangingCase:n=!1}=eA.checkPathsSync(t,e,"move",r);return eA.checkParentPathsSync(t,s,e,"move"),j5(e)||F5(Pd.dirname(e)),q5(t,e,i,n)}function j5(t){let e=Pd.dirname(t);return Pd.parse(e).root===e}function q5(t,e,r,i){if(i)return xd(t,e,r);if(r)return rA(e),xd(t,e,r);if(tA.existsSync(e))throw new Error("dest already exists.");return xd(t,e,r)}function xd(t,e,r){try{tA.renameSync(t,e)}catch(i){if(i.code!=="EXDEV")throw i;return U5(t,e,r)}}function U5(t,e,r){return M5(t,e,{overwrite:r,errorOnExist:!0}),rA(t)}iA.exports=B5});var aA=g((yLe,nA)=>{"use strict";c();var $5=sr().fromCallback;nA.exports={move:$5(Zv()),moveSync:sA()}});var vd=g((SLe,oA)=>{"use strict";c();oA.exports={...an(),...Hu(),...rv(),...Dv(),...Yv(),...zr(),...aA(),...Qu(),...us(),...qo()}});var oa=g((ELe,uA)=>{"use strict";c();var lA=new Map([["C","cwd"],["f","file"],["z","gzip"],["P","preservePaths"],["U","unlink"],["strip-components","strip"],["stripComponents","strip"],["keep-newer","newer"],["keepNewer","newer"],["keep-newer-files","newer"],["keepNewerFiles","newer"],["k","keep"],["keep-existing","keep"],["keepExisting","keep"],["m","noMtime"],["no-mtime","noMtime"],["p","preserveOwner"],["L","follow"],["h","follow"]]);uA.exports=t=>t?Object.keys(t).map(e=>[lA.has(e)?lA.get(e):e,t[e]]).reduce((e,r)=>(e[r[0]]=r[1],e),Object.create(null)):{}});var nc=g(TA=>{"use strict";c();var cA=typeof process=="object"&&process?process:{stdout:null,stderr:null},V5=K("events"),fA=K("stream"),K5=K("string_decoder"),pA=K5.StringDecoder,Ci=Symbol("EOF"),Ii=Symbol("maybeEmitEnd"),hs=Symbol("emittedEnd"),Zu=Symbol("emittingEnd"),Vo=Symbol("emittedError"),ec=Symbol("closed"),hA=Symbol("read"),tc=Symbol("flush"),dA=Symbol("flushChunk"),or=Symbol("encoding"),Oi=Symbol("decoder"),rc=Symbol("flowing"),Ko=Symbol("paused"),la=Symbol("resume"),pt=Symbol("buffer"),li=Symbol("pipes"),Pt=Symbol("bufferLength"),Ad=Symbol("bufferPush"),wd=Symbol("bufferShift"),It=Symbol("objectMode"),ht=Symbol("destroyed"),_d=Symbol("error"),Cd=Symbol("emitData"),mA=Symbol("emitEnd"),Id=Symbol("emitEnd2"),Ni=Symbol("async"),Od=Symbol("abort"),ic=Symbol("aborted"),ln=Symbol("signal"),Ho=t=>Promise.resolve().then(t),SA=global._MP_NO_ITERATOR_SYMBOLS_!=="1",yA=SA&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),gA=SA&&Symbol.iterator||Symbol("iterator not implemented"),H5=t=>t==="end"||t==="finish"||t==="prefinish",W5=t=>t instanceof ArrayBuffer||typeof t=="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0,G5=t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t),sc=class{constructor(e,r,i){this.src=e,this.dest=r,this.opts=i,this.ondrain=()=>e[la](),r.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},Nd=class extends sc{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(e,r,i){super(e,r,i),this.proxyErrors=s=>r.emit("error",s),e.on("error",this.proxyErrors)}},Wo=class extends fA{constructor(e){super(),this[rc]=!1,this[Ko]=!1,this[li]=[],this[pt]=[],this[It]=e&&e.objectMode||!1,this[It]?this[or]=null:this[or]=e&&e.encoding||null,this[or]==="buffer"&&(this[or]=null),this[Ni]=e&&!!e.async||!1,this[Oi]=this[or]?new pA(this[or]):null,this[Ci]=!1,this[hs]=!1,this[Zu]=!1,this[ec]=!1,this[Vo]=null,this.writable=!0,this.readable=!0,this[Pt]=0,this[ht]=!1,e&&e.debugExposeBuffer===!0&&Object.defineProperty(this,"buffer",{get:()=>this[pt]}),e&&e.debugExposePipes===!0&&Object.defineProperty(this,"pipes",{get:()=>this[li]}),this[ln]=e&&e.signal,this[ic]=!1,this[ln]&&(this[ln].addEventListener("abort",()=>this[Od]()),this[ln].aborted&&this[Od]())}get bufferLength(){return this[Pt]}get encoding(){return this[or]}set encoding(e){if(this[It])throw new Error("cannot set encoding in objectMode");if(this[or]&&e!==this[or]&&(this[Oi]&&this[Oi].lastNeed||this[Pt]))throw new Error("cannot change encoding");this[or]!==e&&(this[Oi]=e?new pA(e):null,this[pt].length&&(this[pt]=this[pt].map(r=>this[Oi].write(r)))),this[or]=e}setEncoding(e){this.encoding=e}get objectMode(){return this[It]}set objectMode(e){this[It]=this[It]||!!e}get async(){return this[Ni]}set async(e){this[Ni]=this[Ni]||!!e}[Od](){this[ic]=!0,this.emit("abort",this[ln].reason),this.destroy(this[ln].reason)}get aborted(){return this[ic]}set aborted(e){}write(e,r,i){if(this[ic])return!1;if(this[Ci])throw new Error("write after end");if(this[ht])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof r=="function"&&(i=r,r="utf8"),r||(r="utf8");let s=this[Ni]?Ho:n=>n();return!this[It]&&!Buffer.isBuffer(e)&&(G5(e)?e=Buffer.from(e.buffer,e.byteOffset,e.byteLength):W5(e)?e=Buffer.from(e):typeof e!="string"&&(this.objectMode=!0)),this[It]?(this.flowing&&this[Pt]!==0&&this[tc](!0),this.flowing?this.emit("data",e):this[Ad](e),this[Pt]!==0&&this.emit("readable"),i&&s(i),this.flowing):e.length?(typeof e=="string"&&!(r===this[or]&&!this[Oi].lastNeed)&&(e=Buffer.from(e,r)),Buffer.isBuffer(e)&&this[or]&&(e=this[Oi].write(e)),this.flowing&&this[Pt]!==0&&this[tc](!0),this.flowing?this.emit("data",e):this[Ad](e),this[Pt]!==0&&this.emit("readable"),i&&s(i),this.flowing):(this[Pt]!==0&&this.emit("readable"),i&&s(i),this.flowing)}read(e){if(this[ht])return null;if(this[Pt]===0||e===0||e>this[Pt])return this[Ii](),null;this[It]&&(e=null),this[pt].length>1&&!this[It]&&(this.encoding?this[pt]=[this[pt].join("")]:this[pt]=[Buffer.concat(this[pt],this[Pt])]);let r=this[hA](e||null,this[pt][0]);return this[Ii](),r}[hA](e,r){return e===r.length||e===null?this[wd]():(this[pt][0]=r.slice(e),r=r.slice(0,e),this[Pt]-=e),this.emit("data",r),!this[pt].length&&!this[Ci]&&this.emit("drain"),r}end(e,r,i){return typeof e=="function"&&(i=e,e=null),typeof r=="function"&&(i=r,r="utf8"),e&&this.write(e,r),i&&this.once("end",i),this[Ci]=!0,this.writable=!1,(this.flowing||!this[Ko])&&this[Ii](),this}[la](){this[ht]||(this[Ko]=!1,this[rc]=!0,this.emit("resume"),this[pt].length?this[tc]():this[Ci]?this[Ii]():this.emit("drain"))}resume(){return this[la]()}pause(){this[rc]=!1,this[Ko]=!0}get destroyed(){return this[ht]}get flowing(){return this[rc]}get paused(){return this[Ko]}[Ad](e){this[It]?this[Pt]+=1:this[Pt]+=e.length,this[pt].push(e)}[wd](){return this[It]?this[Pt]-=1:this[Pt]-=this[pt][0].length,this[pt].shift()}[tc](e){do;while(this[dA](this[wd]())&&this[pt].length);!e&&!this[pt].length&&!this[Ci]&&this.emit("drain")}[dA](e){return this.emit("data",e),this.flowing}pipe(e,r){if(this[ht])return;let i=this[hs];return r=r||{},e===cA.stdout||e===cA.stderr?r.end=!1:r.end=r.end!==!1,r.proxyErrors=!!r.proxyErrors,i?r.end&&e.end():(this[li].push(r.proxyErrors?new Nd(this,e,r):new sc(this,e,r)),this[Ni]?Ho(()=>this[la]()):this[la]()),e}unpipe(e){let r=this[li].find(i=>i.dest===e);r&&(this[li].splice(this[li].indexOf(r),1),r.unpipe())}addListener(e,r){return this.on(e,r)}on(e,r){let i=super.on(e,r);return e==="data"&&!this[li].length&&!this.flowing?this[la]():e==="readable"&&this[Pt]!==0?super.emit("readable"):H5(e)&&this[hs]?(super.emit(e),this.removeAllListeners(e)):e==="error"&&this[Vo]&&(this[Ni]?Ho(()=>r.call(this,this[Vo])):r.call(this,this[Vo])),i}get emittedEnd(){return this[hs]}[Ii](){!this[Zu]&&!this[hs]&&!this[ht]&&this[pt].length===0&&this[Ci]&&(this[Zu]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[ec]&&this.emit("close"),this[Zu]=!1)}emit(e,r,...i){if(e!=="error"&&e!=="close"&&e!==ht&&this[ht])return;if(e==="data")return!this[It]&&!r?!1:this[Ni]?Ho(()=>this[Cd](r)):this[Cd](r);if(e==="end")return this[mA]();if(e==="close"){if(this[ec]=!0,!this[hs]&&!this[ht])return;let n=super.emit("close");return this.removeAllListeners("close"),n}else if(e==="error"){this[Vo]=r,super.emit(_d,r);let n=!this[ln]||this.listeners("error").length?super.emit("error",r):!1;return this[Ii](),n}else if(e==="resume"){let n=super.emit("resume");return this[Ii](),n}else if(e==="finish"||e==="prefinish"){let n=super.emit(e);return this.removeAllListeners(e),n}let s=super.emit(e,r,...i);return this[Ii](),s}[Cd](e){for(let i of this[li])i.dest.write(e)===!1&&this.pause();let r=super.emit("data",e);return this[Ii](),r}[mA](){this[hs]||(this[hs]=!0,this.readable=!1,this[Ni]?Ho(()=>this[Id]()):this[Id]())}[Id](){if(this[Oi]){let r=this[Oi].end();if(r){for(let i of this[li])i.dest.write(r);super.emit("data",r)}}for(let r of this[li])r.end();let e=super.emit("end");return this.removeAllListeners("end"),e}collect(){let e=[];this[It]||(e.dataLength=0);let r=this.promise();return this.on("data",i=>{e.push(i),this[It]||(e.dataLength+=i.length)}),r.then(()=>e)}concat(){return this[It]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(e=>this[It]?Promise.reject(new Error("cannot concat in objectMode")):this[or]?e.join(""):Buffer.concat(e,e.dataLength))}promise(){return new Promise((e,r)=>{this.on(ht,()=>r(new Error("stream destroyed"))),this.on("error",i=>r(i)),this.on("end",()=>e())})}[yA](){let e=!1,r=()=>(this.pause(),e=!0,Promise.resolve({done:!0}));return{next:()=>{if(e)return r();let s=this.read();if(s!==null)return Promise.resolve({done:!1,value:s});if(this[Ci])return r();let n=null,a=null,o=p=>{this.removeListener("data",l),this.removeListener("end",u),this.removeListener(ht,f),r(),a(p)},l=p=>{this.removeListener("error",o),this.removeListener("end",u),this.removeListener(ht,f),this.pause(),n({value:p,done:!!this[Ci]})},u=()=>{this.removeListener("error",o),this.removeListener("data",l),this.removeListener(ht,f),r(),n({done:!0})},f=()=>o(new Error("stream destroyed"));return new Promise((p,h)=>{a=h,n=p,this.once(ht,f),this.once("error",o),this.once("end",u),this.once("data",l)})},throw:r,return:r,[yA](){return this}}}[gA](){let e=!1,r=()=>(this.pause(),this.removeListener(_d,r),this.removeListener(ht,r),this.removeListener("end",r),e=!0,{done:!0}),i=()=>{if(e)return r();let s=this.read();return s===null?r():{value:s}};return this.once("end",r),this.once(_d,r),this.once(ht,r),{next:i,throw:r,return:r,[gA](){return this}}}destroy(e){return this[ht]?(e?this.emit("error",e):this.emit(ht),this):(this[ht]=!0,this[pt].length=0,this[Pt]=0,typeof this.close=="function"&&!this[ec]&&this.close(),e?this.emit("error",e):this.emit(ht),this)}static isStream(e){return!!e&&(e instanceof Wo||e instanceof fA||e instanceof V5&&(typeof e.pipe=="function"||typeof e.write=="function"&&typeof e.end=="function"))}};TA.Minipass=Wo});var bA=g((vLe,EA)=>{c();var Y5=K("zlib").constants||{ZLIB_VERNUM:4736};EA.exports=Object.freeze(Object.assign(Object.create(null),{Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_VERSION_ERROR:-6,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,DEFLATE:1,INFLATE:2,GZIP:3,GUNZIP:4,DEFLATERAW:5,INFLATERAW:6,UNZIP:7,BROTLI_DECODE:8,BROTLI_ENCODE:9,Z_MIN_WINDOWBITS:8,Z_MAX_WINDOWBITS:15,Z_DEFAULT_WINDOWBITS:15,Z_MIN_CHUNK:64,Z_MAX_CHUNK:1/0,Z_DEFAULT_CHUNK:16384,Z_MIN_MEMLEVEL:1,Z_MAX_MEMLEVEL:9,Z_DEFAULT_MEMLEVEL:8,Z_MIN_LEVEL:-1,Z_MAX_LEVEL:9,Z_DEFAULT_LEVEL:-1,BROTLI_OPERATION_PROCESS:0,BROTLI_OPERATION_FLUSH:1,BROTLI_OPERATION_FINISH:2,BROTLI_OPERATION_EMIT_METADATA:3,BROTLI_MODE_GENERIC:0,BROTLI_MODE_TEXT:1,BROTLI_MODE_FONT:2,BROTLI_DEFAULT_MODE:0,BROTLI_MIN_QUALITY:0,BROTLI_MAX_QUALITY:11,BROTLI_DEFAULT_QUALITY:11,BROTLI_MIN_WINDOW_BITS:10,BROTLI_MAX_WINDOW_BITS:24,BROTLI_LARGE_MAX_WINDOW_BITS:30,BROTLI_DEFAULT_WINDOW:22,BROTLI_MIN_INPUT_BLOCK_BITS:16,BROTLI_MAX_INPUT_BLOCK_BITS:24,BROTLI_PARAM_MODE:0,BROTLI_PARAM_QUALITY:1,BROTLI_PARAM_LGWIN:2,BROTLI_PARAM_LGBLOCK:3,BROTLI_PARAM_DISABLE_LITERAL_CONTEXT_MODELING:4,BROTLI_PARAM_SIZE_HINT:5,BROTLI_PARAM_LARGE_WINDOW:6,BROTLI_PARAM_NPOSTFIX:7,BROTLI_PARAM_NDIRECT:8,BROTLI_DECODER_RESULT_ERROR:0,BROTLI_DECODER_RESULT_SUCCESS:1,BROTLI_DECODER_RESULT_NEEDS_MORE_INPUT:2,BROTLI_DECODER_RESULT_NEEDS_MORE_OUTPUT:3,BROTLI_DECODER_PARAM_DISABLE_RING_BUFFER_REALLOCATION:0,BROTLI_DECODER_PARAM_LARGE_WINDOW:1,BROTLI_DECODER_NO_ERROR:0,BROTLI_DECODER_SUCCESS:1,BROTLI_DECODER_NEEDS_MORE_INPUT:2,BROTLI_DECODER_NEEDS_MORE_OUTPUT:3,BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_NIBBLE:-1,BROTLI_DECODER_ERROR_FORMAT_RESERVED:-2,BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_META_NIBBLE:-3,BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_ALPHABET:-4,BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_SAME:-5,BROTLI_DECODER_ERROR_FORMAT_CL_SPACE:-6,BROTLI_DECODER_ERROR_FORMAT_HUFFMAN_SPACE:-7,BROTLI_DECODER_ERROR_FORMAT_CONTEXT_MAP_REPEAT:-8,BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_1:-9,BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_2:-10,BROTLI_DECODER_ERROR_FORMAT_TRANSFORM:-11,BROTLI_DECODER_ERROR_FORMAT_DICTIONARY:-12,BROTLI_DECODER_ERROR_FORMAT_WINDOW_BITS:-13,BROTLI_DECODER_ERROR_FORMAT_PADDING_1:-14,BROTLI_DECODER_ERROR_FORMAT_PADDING_2:-15,BROTLI_DECODER_ERROR_FORMAT_DISTANCE:-16,BROTLI_DECODER_ERROR_DICTIONARY_NOT_SET:-19,BROTLI_DECODER_ERROR_INVALID_ARGUMENTS:-20,BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MODES:-21,BROTLI_DECODER_ERROR_ALLOC_TREE_GROUPS:-22,BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MAP:-25,BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_1:-26,BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_2:-27,BROTLI_DECODER_ERROR_ALLOC_BLOCK_TYPE_TREES:-30,BROTLI_DECODER_ERROR_UNREACHABLE:-31},Y5))});var Fd=g((wLe,OA)=>{"use strict";c();var xA=typeof process=="object"&&process?process:{stdout:null,stderr:null},X5=K("events"),PA=K("stream"),vA=K("string_decoder").StringDecoder,Di=Symbol("EOF"),Li=Symbol("maybeEmitEnd"),ds=Symbol("emittedEnd"),ac=Symbol("emittingEnd"),Go=Symbol("emittedError"),oc=Symbol("closed"),AA=Symbol("read"),lc=Symbol("flush"),wA=Symbol("flushChunk"),lr=Symbol("encoding"),ki=Symbol("decoder"),uc=Symbol("flowing"),Yo=Symbol("paused"),ua=Symbol("resume"),vt=Symbol("bufferLength"),Dd=Symbol("bufferPush"),Ld=Symbol("bufferShift"),Rt=Symbol("objectMode"),Mt=Symbol("destroyed"),kd=Symbol("emitData"),_A=Symbol("emitEnd"),Rd=Symbol("emitEnd2"),Ri=Symbol("async"),Xo=t=>Promise.resolve().then(t),CA=global._MP_NO_ITERATOR_SYMBOLS_!=="1",z5=CA&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),J5=CA&&Symbol.iterator||Symbol("iterator not implemented"),Q5=t=>t==="end"||t==="finish"||t==="prefinish",Z5=t=>t instanceof ArrayBuffer||typeof t=="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0,e4=t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t),cc=class{constructor(e,r,i){this.src=e,this.dest=r,this.opts=i,this.ondrain=()=>e[ua](),r.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},Md=class extends cc{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(e,r,i){super(e,r,i),this.proxyErrors=s=>r.emit("error",s),e.on("error",this.proxyErrors)}};OA.exports=class IA extends PA{constructor(e){super(),this[uc]=!1,this[Yo]=!1,this.pipes=[],this.buffer=[],this[Rt]=e&&e.objectMode||!1,this[Rt]?this[lr]=null:this[lr]=e&&e.encoding||null,this[lr]==="buffer"&&(this[lr]=null),this[Ri]=e&&!!e.async||!1,this[ki]=this[lr]?new vA(this[lr]):null,this[Di]=!1,this[ds]=!1,this[ac]=!1,this[oc]=!1,this[Go]=null,this.writable=!0,this.readable=!0,this[vt]=0,this[Mt]=!1}get bufferLength(){return this[vt]}get encoding(){return this[lr]}set encoding(e){if(this[Rt])throw new Error("cannot set encoding in objectMode");if(this[lr]&&e!==this[lr]&&(this[ki]&&this[ki].lastNeed||this[vt]))throw new Error("cannot change encoding");this[lr]!==e&&(this[ki]=e?new vA(e):null,this.buffer.length&&(this.buffer=this.buffer.map(r=>this[ki].write(r)))),this[lr]=e}setEncoding(e){this.encoding=e}get objectMode(){return this[Rt]}set objectMode(e){this[Rt]=this[Rt]||!!e}get async(){return this[Ri]}set async(e){this[Ri]=this[Ri]||!!e}write(e,r,i){if(this[Di])throw new Error("write after end");if(this[Mt])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof r=="function"&&(i=r,r="utf8"),r||(r="utf8");let s=this[Ri]?Xo:n=>n();return!this[Rt]&&!Buffer.isBuffer(e)&&(e4(e)?e=Buffer.from(e.buffer,e.byteOffset,e.byteLength):Z5(e)?e=Buffer.from(e):typeof e!="string"&&(this.objectMode=!0)),this[Rt]?(this.flowing&&this[vt]!==0&&this[lc](!0),this.flowing?this.emit("data",e):this[Dd](e),this[vt]!==0&&this.emit("readable"),i&&s(i),this.flowing):e.length?(typeof e=="string"&&!(r===this[lr]&&!this[ki].lastNeed)&&(e=Buffer.from(e,r)),Buffer.isBuffer(e)&&this[lr]&&(e=this[ki].write(e)),this.flowing&&this[vt]!==0&&this[lc](!0),this.flowing?this.emit("data",e):this[Dd](e),this[vt]!==0&&this.emit("readable"),i&&s(i),this.flowing):(this[vt]!==0&&this.emit("readable"),i&&s(i),this.flowing)}read(e){if(this[Mt])return null;if(this[vt]===0||e===0||e>this[vt])return this[Li](),null;this[Rt]&&(e=null),this.buffer.length>1&&!this[Rt]&&(this.encoding?this.buffer=[this.buffer.join("")]:this.buffer=[Buffer.concat(this.buffer,this[vt])]);let r=this[AA](e||null,this.buffer[0]);return this[Li](),r}[AA](e,r){return e===r.length||e===null?this[Ld]():(this.buffer[0]=r.slice(e),r=r.slice(0,e),this[vt]-=e),this.emit("data",r),!this.buffer.length&&!this[Di]&&this.emit("drain"),r}end(e,r,i){return typeof e=="function"&&(i=e,e=null),typeof r=="function"&&(i=r,r="utf8"),e&&this.write(e,r),i&&this.once("end",i),this[Di]=!0,this.writable=!1,(this.flowing||!this[Yo])&&this[Li](),this}[ua](){this[Mt]||(this[Yo]=!1,this[uc]=!0,this.emit("resume"),this.buffer.length?this[lc]():this[Di]?this[Li]():this.emit("drain"))}resume(){return this[ua]()}pause(){this[uc]=!1,this[Yo]=!0}get destroyed(){return this[Mt]}get flowing(){return this[uc]}get paused(){return this[Yo]}[Dd](e){this[Rt]?this[vt]+=1:this[vt]+=e.length,this.buffer.push(e)}[Ld](){return this.buffer.length&&(this[Rt]?this[vt]-=1:this[vt]-=this.buffer[0].length),this.buffer.shift()}[lc](e){do;while(this[wA](this[Ld]()));!e&&!this.buffer.length&&!this[Di]&&this.emit("drain")}[wA](e){return e?(this.emit("data",e),this.flowing):!1}pipe(e,r){if(this[Mt])return;let i=this[ds];return r=r||{},e===xA.stdout||e===xA.stderr?r.end=!1:r.end=r.end!==!1,r.proxyErrors=!!r.proxyErrors,i?r.end&&e.end():(this.pipes.push(r.proxyErrors?new Md(this,e,r):new cc(this,e,r)),this[Ri]?Xo(()=>this[ua]()):this[ua]()),e}unpipe(e){let r=this.pipes.find(i=>i.dest===e);r&&(this.pipes.splice(this.pipes.indexOf(r),1),r.unpipe())}addListener(e,r){return this.on(e,r)}on(e,r){let i=super.on(e,r);return e==="data"&&!this.pipes.length&&!this.flowing?this[ua]():e==="readable"&&this[vt]!==0?super.emit("readable"):Q5(e)&&this[ds]?(super.emit(e),this.removeAllListeners(e)):e==="error"&&this[Go]&&(this[Ri]?Xo(()=>r.call(this,this[Go])):r.call(this,this[Go])),i}get emittedEnd(){return this[ds]}[Li](){!this[ac]&&!this[ds]&&!this[Mt]&&this.buffer.length===0&&this[Di]&&(this[ac]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[oc]&&this.emit("close"),this[ac]=!1)}emit(e,r,...i){if(e!=="error"&&e!=="close"&&e!==Mt&&this[Mt])return;if(e==="data")return r?this[Ri]?Xo(()=>this[kd](r)):this[kd](r):!1;if(e==="end")return this[_A]();if(e==="close"){if(this[oc]=!0,!this[ds]&&!this[Mt])return;let n=super.emit("close");return this.removeAllListeners("close"),n}else if(e==="error"){this[Go]=r;let n=super.emit("error",r);return this[Li](),n}else if(e==="resume"){let n=super.emit("resume");return this[Li](),n}else if(e==="finish"||e==="prefinish"){let n=super.emit(e);return this.removeAllListeners(e),n}let s=super.emit(e,r,...i);return this[Li](),s}[kd](e){for(let i of this.pipes)i.dest.write(e)===!1&&this.pause();let r=super.emit("data",e);return this[Li](),r}[_A](){this[ds]||(this[ds]=!0,this.readable=!1,this[Ri]?Xo(()=>this[Rd]()):this[Rd]())}[Rd](){if(this[ki]){let r=this[ki].end();if(r){for(let i of this.pipes)i.dest.write(r);super.emit("data",r)}}for(let r of this.pipes)r.end();let e=super.emit("end");return this.removeAllListeners("end"),e}collect(){let e=[];this[Rt]||(e.dataLength=0);let r=this.promise();return this.on("data",i=>{e.push(i),this[Rt]||(e.dataLength+=i.length)}),r.then(()=>e)}concat(){return this[Rt]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(e=>this[Rt]?Promise.reject(new Error("cannot concat in objectMode")):this[lr]?e.join(""):Buffer.concat(e,e.dataLength))}promise(){return new Promise((e,r)=>{this.on(Mt,()=>r(new Error("stream destroyed"))),this.on("error",i=>r(i)),this.on("end",()=>e())})}[z5](){return{next:()=>{let r=this.read();if(r!==null)return Promise.resolve({done:!1,value:r});if(this[Di])return Promise.resolve({done:!0});let i=null,s=null,n=u=>{this.removeListener("data",a),this.removeListener("end",o),s(u)},a=u=>{this.removeListener("error",n),this.removeListener("end",o),this.pause(),i({value:u,done:!!this[Di]})},o=()=>{this.removeListener("error",n),this.removeListener("data",a),i({done:!0})},l=()=>n(new Error("stream destroyed"));return new Promise((u,f)=>{s=f,i=u,this.once(Mt,l),this.once("error",n),this.once("end",o),this.once("data",a)})}}}[J5](){return{next:()=>{let r=this.read();return{value:r,done:r===null}}}}destroy(e){return this[Mt]?(e?this.emit("error",e):this.emit(Mt),this):(this[Mt]=!0,this.buffer.length=0,this[vt]=0,typeof this.close=="function"&&!this[oc]&&this.close(),e?this.emit("error",e):this.emit(Mt),this)}static isStream(e){return!!e&&(e instanceof IA||e instanceof PA||e instanceof X5&&(typeof e.pipe=="function"||typeof e.write=="function"&&typeof e.end=="function"))}}});var Zd=g(Tr=>{"use strict";c();var $d=K("assert"),ms=K("buffer").Buffer,LA=K("zlib"),un=Tr.constants=bA(),t4=Fd(),NA=ms.concat,cn=Symbol("_superWrite"),fa=class extends Error{constructor(e){super("zlib: "+e.message),this.code=e.code,this.errno=e.errno,this.code||(this.code="ZLIB_ERROR"),this.message="zlib: "+e.message,Error.captureStackTrace(this,this.constructor)}get name(){return"ZlibError"}},r4=Symbol("opts"),zo=Symbol("flushFlag"),DA=Symbol("finishFlushFlag"),Qd=Symbol("fullFlushFlag"),Qe=Symbol("handle"),fc=Symbol("onError"),ca=Symbol("sawError"),Bd=Symbol("level"),jd=Symbol("strategy"),qd=Symbol("ended"),CLe=Symbol("_defaultFullFlush"),pc=class extends t4{constructor(e,r){if(!e||typeof e!="object")throw new TypeError("invalid options for ZlibBase constructor");super(e),this[ca]=!1,this[qd]=!1,this[r4]=e,this[zo]=e.flush,this[DA]=e.finishFlush;try{this[Qe]=new LA[r](e)}catch(i){throw new fa(i)}this[fc]=i=>{this[ca]||(this[ca]=!0,this.close(),this.emit("error",i))},this[Qe].on("error",i=>this[fc](new fa(i))),this.once("end",()=>this.close)}close(){this[Qe]&&(this[Qe].close(),this[Qe]=null,this.emit("close"))}reset(){if(!this[ca])return $d(this[Qe],"zlib binding closed"),this[Qe].reset()}flush(e){this.ended||(typeof e!="number"&&(e=this[Qd]),this.write(Object.assign(ms.alloc(0),{[zo]:e})))}end(e,r,i){return e&&this.write(e,r),this.flush(this[DA]),this[qd]=!0,super.end(null,null,i)}get ended(){return this[qd]}write(e,r,i){if(typeof r=="function"&&(i=r,r="utf8"),typeof e=="string"&&(e=ms.from(e,r)),this[ca])return;$d(this[Qe],"zlib binding closed");let s=this[Qe]._handle,n=s.close;s.close=()=>{};let a=this[Qe].close;this[Qe].close=()=>{},ms.concat=u=>u;let o;try{let u=typeof e[zo]=="number"?e[zo]:this[zo];o=this[Qe]._processChunk(e,u),ms.concat=NA}catch(u){ms.concat=NA,this[fc](new fa(u))}finally{this[Qe]&&(this[Qe]._handle=s,s.close=n,this[Qe].close=a,this[Qe].removeAllListeners("error"))}this[Qe]&&this[Qe].on("error",u=>this[fc](new fa(u)));let l;if(o)if(Array.isArray(o)&&o.length>0){l=this[cn](ms.from(o[0]));for(let u=1;u<o.length;u++)l=this[cn](o[u])}else l=this[cn](ms.from(o));return i&&i(),l}[cn](e){return super.write(e)}},Mi=class extends pc{constructor(e,r){e=e||{},e.flush=e.flush||un.Z_NO_FLUSH,e.finishFlush=e.finishFlush||un.Z_FINISH,super(e,r),this[Qd]=un.Z_FULL_FLUSH,this[Bd]=e.level,this[jd]=e.strategy}params(e,r){if(!this[ca]){if(!this[Qe])throw new Error("cannot switch params when binding is closed");if(!this[Qe].params)throw new Error("not supported in this implementation");if(this[Bd]!==e||this[jd]!==r){this.flush(un.Z_SYNC_FLUSH),$d(this[Qe],"zlib binding closed");let i=this[Qe].flush;this[Qe].flush=(s,n)=>{this.flush(s),n()};try{this[Qe].params(e,r)}finally{this[Qe].flush=i}this[Qe]&&(this[Bd]=e,this[jd]=r)}}}},Vd=class extends Mi{constructor(e){super(e,"Deflate")}},Kd=class extends Mi{constructor(e){super(e,"Inflate")}},Ud=Symbol("_portable"),Hd=class extends Mi{constructor(e){super(e,"Gzip"),this[Ud]=e&&!!e.portable}[cn](e){return this[Ud]?(this[Ud]=!1,e[9]=255,super[cn](e)):super[cn](e)}},Wd=class extends Mi{constructor(e){super(e,"Gunzip")}},Gd=class extends Mi{constructor(e){super(e,"DeflateRaw")}},Yd=class extends Mi{constructor(e){super(e,"InflateRaw")}},Xd=class extends Mi{constructor(e){super(e,"Unzip")}},hc=class extends pc{constructor(e,r){e=e||{},e.flush=e.flush||un.BROTLI_OPERATION_PROCESS,e.finishFlush=e.finishFlush||un.BROTLI_OPERATION_FINISH,super(e,r),this[Qd]=un.BROTLI_OPERATION_FLUSH}},zd=class extends hc{constructor(e){super(e,"BrotliCompress")}},Jd=class extends hc{constructor(e){super(e,"BrotliDecompress")}};Tr.Deflate=Vd;Tr.Inflate=Kd;Tr.Gzip=Hd;Tr.Gunzip=Wd;Tr.DeflateRaw=Gd;Tr.InflateRaw=Yd;Tr.Unzip=Xd;typeof LA.BrotliCompress=="function"?(Tr.BrotliCompress=zd,Tr.BrotliDecompress=Jd):Tr.BrotliCompress=Tr.BrotliDecompress=class{constructor(){throw new Error("Brotli is not supported in this version of Node.js")}}});var pa=g((DLe,kA)=>{c();var i4=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform;kA.exports=i4!=="win32"?t=>t:t=>t&&t.replace(/\\/g,"/")});var dc=g((RLe,RA)=>{"use strict";c();var{Minipass:s4}=nc(),em=pa(),tm=Symbol("slurp");RA.exports=class extends s4{constructor(e,r,i){switch(super(),this.pause(),this.extended=r,this.globalExtended=i,this.header=e,this.startBlockSize=512*Math.ceil(e.size/512),this.blockRemain=this.startBlockSize,this.remain=e.size,this.type=e.type,this.meta=!1,this.ignore=!1,this.type){case"File":case"OldFile":case"Link":case"SymbolicLink":case"CharacterDevice":case"BlockDevice":case"Directory":case"FIFO":case"ContiguousFile":case"GNUDumpDir":break;case"NextFileHasLongLinkpath":case"NextFileHasLongPath":case"OldGnuLongPath":case"GlobalExtendedHeader":case"ExtendedHeader":case"OldExtendedHeader":this.meta=!0;break;default:this.ignore=!0}this.path=em(e.path),this.mode=e.mode,this.mode&&(this.mode=this.mode&4095),this.uid=e.uid,this.gid=e.gid,this.uname=e.uname,this.gname=e.gname,this.size=e.size,this.mtime=e.mtime,this.atime=e.atime,this.ctime=e.ctime,this.linkpath=em(e.linkpath),this.uname=e.uname,this.gname=e.gname,r&&this[tm](r),i&&this[tm](i,!0)}write(e){let r=e.length;if(r>this.blockRemain)throw new Error("writing more to entry than is appropriate");let i=this.remain,s=this.blockRemain;return this.remain=Math.max(0,i-r),this.blockRemain=Math.max(0,s-r),this.ignore?!0:i>=r?super.write(e):super.write(e.slice(0,i))}[tm](e,r){for(let i in e)e[i]!==null&&e[i]!==void 0&&!(r&&i==="path")&&(this[i]=i==="path"||i==="linkpath"?em(e[i]):e[i])}}});var rm=g(mc=>{"use strict";c();mc.name=new Map([["0","File"],["","OldFile"],["1","Link"],["2","SymbolicLink"],["3","CharacterDevice"],["4","BlockDevice"],["5","Directory"],["6","FIFO"],["7","ContiguousFile"],["g","GlobalExtendedHeader"],["x","ExtendedHeader"],["A","SolarisACL"],["D","GNUDumpDir"],["I","Inode"],["K","NextFileHasLongLinkpath"],["L","NextFileHasLongPath"],["M","ContinuationFile"],["N","OldGnuLongPath"],["S","SparseFile"],["V","TapeVolumeHeader"],["X","OldExtendedHeader"]]);mc.code=new Map(Array.from(mc.name).map(t=>[t[1],t[0]]))});var jA=g((jLe,BA)=>{"use strict";c();var n4=(t,e)=>{if(Number.isSafeInteger(t))t<0?o4(t,e):a4(t,e);else throw Error("cannot encode number outside of javascript safe integer range");return e},a4=(t,e)=>{e[0]=128;for(var r=e.length;r>1;r--)e[r-1]=t&255,t=Math.floor(t/256)},o4=(t,e)=>{e[0]=255;var r=!1;t=t*-1;for(var i=e.length;i>1;i--){var s=t&255;t=Math.floor(t/256),r?e[i-1]=MA(s):s===0?e[i-1]=0:(r=!0,e[i-1]=FA(s))}},l4=t=>{let e=t[0],r=e===128?c4(t.slice(1,t.length)):e===255?u4(t):null;if(r===null)throw Error("invalid base256 encoding");if(!Number.isSafeInteger(r))throw Error("parsed number outside of javascript safe integer range");return r},u4=t=>{for(var e=t.length,r=0,i=!1,s=e-1;s>-1;s--){var n=t[s],a;i?a=MA(n):n===0?a=n:(i=!0,a=FA(n)),a!==0&&(r-=a*Math.pow(256,e-s-1))}return r},c4=t=>{for(var e=t.length,r=0,i=e-1;i>-1;i--){var s=t[i];s!==0&&(r+=s*Math.pow(256,e-i-1))}return r},MA=t=>(255^t)&255,FA=t=>(255^t)+1&255;BA.exports={encode:n4,parse:l4}});var da=g((ULe,UA)=>{"use strict";c();var im=rm(),ha=K("path").posix,qA=jA(),sm=Symbol("slurp"),Er=Symbol("type"),om=class{constructor(e,r,i,s){this.cksumValid=!1,this.needPax=!1,this.nullBlock=!1,this.block=null,this.path=null,this.mode=null,this.uid=null,this.gid=null,this.size=null,this.mtime=null,this.cksum=null,this[Er]="0",this.linkpath=null,this.uname=null,this.gname=null,this.devmaj=0,this.devmin=0,this.atime=null,this.ctime=null,Buffer.isBuffer(e)?this.decode(e,r||0,i,s):e&&this.set(e)}decode(e,r,i,s){if(r||(r=0),!e||!(e.length>=r+512))throw new Error("need 512 bytes for header");if(this.path=fn(e,r,100),this.mode=ys(e,r+100,8),this.uid=ys(e,r+108,8),this.gid=ys(e,r+116,8),this.size=ys(e,r+124,12),this.mtime=nm(e,r+136,12),this.cksum=ys(e,r+148,12),this[sm](i),this[sm](s,!0),this[Er]=fn(e,r+156,1),this[Er]===""&&(this[Er]="0"),this[Er]==="0"&&this.path.slice(-1)==="/"&&(this[Er]="5"),this[Er]==="5"&&(this.size=0),this.linkpath=fn(e,r+157,100),e.slice(r+257,r+265).toString()==="ustar\x0000")if(this.uname=fn(e,r+265,32),this.gname=fn(e,r+297,32),this.devmaj=ys(e,r+329,8),this.devmin=ys(e,r+337,8),e[r+475]!==0){let a=fn(e,r+345,155);this.path=a+"/"+this.path}else{let a=fn(e,r+345,130);a&&(this.path=a+"/"+this.path),this.atime=nm(e,r+476,12),this.ctime=nm(e,r+488,12)}let n=8*32;for(let a=r;a<r+148;a++)n+=e[a];for(let a=r+156;a<r+512;a++)n+=e[a];this.cksumValid=n===this.cksum,this.cksum===null&&n===8*32&&(this.nullBlock=!0)}[sm](e,r){for(let i in e)e[i]!==null&&e[i]!==void 0&&!(r&&i==="path")&&(this[i]=e[i])}encode(e,r){if(e||(e=this.block=Buffer.alloc(512),r=0),r||(r=0),!(e.length>=r+512))throw new Error("need 512 bytes for header");let i=this.ctime||this.atime?130:155,s=f4(this.path||"",i),n=s[0],a=s[1];this.needPax=s[2],this.needPax=pn(e,r,100,n)||this.needPax,this.needPax=gs(e,r+100,8,this.mode)||this.needPax,this.needPax=gs(e,r+108,8,this.uid)||this.needPax,this.needPax=gs(e,r+116,8,this.gid)||this.needPax,this.needPax=gs(e,r+124,12,this.size)||this.needPax,this.needPax=am(e,r+136,12,this.mtime)||this.needPax,e[r+156]=this[Er].charCodeAt(0),this.needPax=pn(e,r+157,100,this.linkpath)||this.needPax,e.write("ustar\x0000",r+257,8),this.needPax=pn(e,r+265,32,this.uname)||this.needPax,this.needPax=pn(e,r+297,32,this.gname)||this.needPax,this.needPax=gs(e,r+329,8,this.devmaj)||this.needPax,this.needPax=gs(e,r+337,8,this.devmin)||this.needPax,this.needPax=pn(e,r+345,i,a)||this.needPax,e[r+475]!==0?this.needPax=pn(e,r+345,155,a)||this.needPax:(this.needPax=pn(e,r+345,130,a)||this.needPax,this.needPax=am(e,r+476,12,this.atime)||this.needPax,this.needPax=am(e,r+488,12,this.ctime)||this.needPax);let o=8*32;for(let l=r;l<r+148;l++)o+=e[l];for(let l=r+156;l<r+512;l++)o+=e[l];return this.cksum=o,gs(e,r+148,8,this.cksum),this.cksumValid=!0,this.needPax}set(e){for(let r in e)e[r]!==null&&e[r]!==void 0&&(this[r]=e[r])}get type(){return im.name.get(this[Er])||this[Er]}get typeKey(){return this[Er]}set type(e){im.code.has(e)?this[Er]=im.code.get(e):this[Er]=e}},f4=(t,e)=>{let i=t,s="",n,a=ha.parse(t).root||".";if(Buffer.byteLength(i)<100)n=[i,s,!1];else{s=ha.dirname(i),i=ha.basename(i);do Buffer.byteLength(i)<=100&&Buffer.byteLength(s)<=e?n=[i,s,!1]:Buffer.byteLength(i)>100&&Buffer.byteLength(s)<=e?n=[i.slice(0,100-1),s,!0]:(i=ha.join(ha.basename(s),i),s=ha.dirname(s));while(s!==a&&!n);n||(n=[t.slice(0,100-1),"",!0])}return n},fn=(t,e,r)=>t.slice(e,e+r).toString("utf8").replace(/\0.*/,""),nm=(t,e,r)=>p4(ys(t,e,r)),p4=t=>t===null?null:new Date(t*1e3),ys=(t,e,r)=>t[e]&128?qA.parse(t.slice(e,e+r)):d4(t,e,r),h4=t=>isNaN(t)?null:t,d4=(t,e,r)=>h4(parseInt(t.slice(e,e+r).toString("utf8").replace(/\0.*$/,"").trim(),8)),m4={12:8589934591,8:2097151},gs=(t,e,r,i)=>i===null?!1:i>m4[r]||i<0?(qA.encode(i,t.slice(e,e+r)),!0):(y4(t,e,r,i),!1),y4=(t,e,r,i)=>t.write(g4(i,r),e,r,"ascii"),g4=(t,e)=>S4(Math.floor(t).toString(8),e),S4=(t,e)=>(t.length===e-1?t:new Array(e-t.length-1).join("0")+t+" ")+"\0",am=(t,e,r,i)=>i===null?!1:gs(t,e,r,i.getTime()/1e3),T4=new Array(156).join("\0"),pn=(t,e,r,i)=>i===null?!1:(t.write(i+T4,e,r,"utf8"),i.length!==Buffer.byteLength(i)||i.length>r);UA.exports=om});var yc=g((VLe,$A)=>{"use strict";c();var E4=da(),b4=K("path"),Jo=class{constructor(e,r){this.atime=e.atime||null,this.charset=e.charset||null,this.comment=e.comment||null,this.ctime=e.ctime||null,this.gid=e.gid||null,this.gname=e.gname||null,this.linkpath=e.linkpath||null,this.mtime=e.mtime||null,this.path=e.path||null,this.size=e.size||null,this.uid=e.uid||null,this.uname=e.uname||null,this.dev=e.dev||null,this.ino=e.ino||null,this.nlink=e.nlink||null,this.global=r||!1}encode(){let e=this.encodeBody();if(e==="")return null;let r=Buffer.byteLength(e),i=512*Math.ceil(1+r/512),s=Buffer.allocUnsafe(i);for(let n=0;n<512;n++)s[n]=0;new E4({path:("PaxHeader/"+b4.basename(this.path)).slice(0,99),mode:this.mode||420,uid:this.uid||null,gid:this.gid||null,size:r,mtime:this.mtime||null,type:this.global?"GlobalExtendedHeader":"ExtendedHeader",linkpath:"",uname:this.uname||"",gname:this.gname||"",devmaj:0,devmin:0,atime:this.atime||null,ctime:this.ctime||null}).encode(s),s.write(e,512,r,"utf8");for(let n=r+512;n<s.length;n++)s[n]=0;return s}encodeBody(){return this.encodeField("path")+this.encodeField("ctime")+this.encodeField("atime")+this.encodeField("dev")+this.encodeField("ino")+this.encodeField("nlink")+this.encodeField("charset")+this.encodeField("comment")+this.encodeField("gid")+this.encodeField("gname")+this.encodeField("linkpath")+this.encodeField("mtime")+this.encodeField("size")+this.encodeField("uid")+this.encodeField("uname")}encodeField(e){if(this[e]===null||this[e]===void 0)return"";let r=this[e]instanceof Date?this[e].getTime()/1e3:this[e],i=" "+(e==="dev"||e==="ino"||e==="nlink"?"SCHILY.":"")+e+"="+r+`
9
+ `,s=Buffer.byteLength(i),n=Math.floor(Math.log(s)/Math.log(10))+1;return s+n>=Math.pow(10,n)&&(n+=1),n+s+i}};Jo.parse=(t,e,r)=>new Jo(x4(P4(t),e),r);var x4=(t,e)=>e?Object.keys(t).reduce((r,i)=>(r[i]=t[i],r),e):t,P4=t=>t.replace(/\n$/,"").split(`
10
+ `).reduce(v4,Object.create(null)),v4=(t,e)=>{let r=parseInt(e,10);if(r!==Buffer.byteLength(e)+1)return t;e=e.slice((r+" ").length);let i=e.split("="),s=i.shift().replace(/^SCHILY\.(dev|ino|nlink)/,"$1");if(!s)return t;let n=i.join("=");return t[s]=/^([A-Z]+\.)?([mac]|birth|creation)time$/.test(s)?new Date(n*1e3):/^[0-9]+$/.test(n)?+n:n,t};$A.exports=Jo});var ma=g((HLe,VA)=>{c();VA.exports=t=>{let e=t.length-1,r=-1;for(;e>-1&&t.charAt(e)==="/";)r=e,e--;return r===-1?t:t.slice(0,r)}});var gc=g((GLe,KA)=>{"use strict";c();KA.exports=t=>class extends t{warn(e,r,i={}){this.file&&(i.file=this.file),this.cwd&&(i.cwd=this.cwd),i.code=r instanceof Error&&r.code||e,i.tarCode=e,!this.strict&&i.recoverable!==!1?(r instanceof Error&&(i=Object.assign(r,i),r=r.message),this.emit("warn",i.tarCode,r,i)):r instanceof Error?this.emit("error",Object.assign(r,i)):this.emit("error",Object.assign(new Error(`${e}: ${r}`),i))}}});var um=g((zLe,HA)=>{"use strict";c();var Sc=["|","<",">","?",":"],lm=Sc.map(t=>String.fromCharCode(61440+t.charCodeAt(0))),A4=new Map(Sc.map((t,e)=>[t,lm[e]])),w4=new Map(lm.map((t,e)=>[t,Sc[e]]));HA.exports={encode:t=>Sc.reduce((e,r)=>e.split(r).join(A4.get(r)),t),decode:t=>lm.reduce((e,r)=>e.split(r).join(w4.get(r)),t)}});var cm=g((QLe,GA)=>{c();var{isAbsolute:_4,parse:WA}=K("path").win32;GA.exports=t=>{let e="",r=WA(t);for(;_4(t)||r.root;){let i=t.charAt(0)==="/"&&t.slice(0,4)!=="//?/"?"/":r.root;t=t.slice(i.length),e+=i,r=WA(t)}return[e,t]}});var XA=g((eke,YA)=>{"use strict";c();YA.exports=(t,e,r)=>(t&=4095,r&&(t=(t|384)&-19),e&&(t&256&&(t|=64),t&32&&(t|=8),t&4&&(t|=1)),t)});var Em=g((ske,uw)=>{"use strict";c();var{Minipass:rw}=nc(),iw=yc(),sw=da(),ci=K("fs"),zA=K("path"),ui=pa(),C4=ma(),nw=(t,e)=>e?(t=ui(t).replace(/^\.(\/|$)/,""),C4(e)+"/"+t):ui(t),I4=16*1024*1024,JA=Symbol("process"),QA=Symbol("file"),ZA=Symbol("directory"),pm=Symbol("symlink"),ew=Symbol("hardlink"),Qo=Symbol("header"),Tc=Symbol("read"),hm=Symbol("lstat"),Ec=Symbol("onlstat"),dm=Symbol("onread"),mm=Symbol("onreadlink"),ym=Symbol("openfile"),gm=Symbol("onopenfile"),Ss=Symbol("close"),bc=Symbol("mode"),Sm=Symbol("awaitDrain"),fm=Symbol("ondrain"),fi=Symbol("prefix"),tw=Symbol("hadError"),aw=gc(),O4=um(),ow=cm(),lw=XA(),xc=aw(class extends rw{constructor(e,r){if(r=r||{},super(r),typeof e!="string")throw new TypeError("path is required");this.path=ui(e),this.portable=!!r.portable,this.myuid=process.getuid&&process.getuid()||0,this.myuser=process.env.USER||"",this.maxReadSize=r.maxReadSize||I4,this.linkCache=r.linkCache||new Map,this.statCache=r.statCache||new Map,this.preservePaths=!!r.preservePaths,this.cwd=ui(r.cwd||process.cwd()),this.strict=!!r.strict,this.noPax=!!r.noPax,this.noMtime=!!r.noMtime,this.mtime=r.mtime||null,this.prefix=r.prefix?ui(r.prefix):null,this.fd=null,this.blockLen=null,this.blockRemain=null,this.buf=null,this.offset=null,this.length=null,this.pos=null,this.remain=null,typeof r.onwarn=="function"&&this.on("warn",r.onwarn);let i=!1;if(!this.preservePaths){let[s,n]=ow(this.path);s&&(this.path=n,i=s)}this.win32=!!r.win32||process.platform==="win32",this.win32&&(this.path=O4.decode(this.path.replace(/\\/g,"/")),e=e.replace(/\\/g,"/")),this.absolute=ui(r.absolute||zA.resolve(this.cwd,e)),this.path===""&&(this.path="./"),i&&this.warn("TAR_ENTRY_INFO",`stripping ${i} from absolute path`,{entry:this,path:i+this.path}),this.statCache.has(this.absolute)?this[Ec](this.statCache.get(this.absolute)):this[hm]()}emit(e,...r){return e==="error"&&(this[tw]=!0),super.emit(e,...r)}[hm](){ci.lstat(this.absolute,(e,r)=>{if(e)return this.emit("error",e);this[Ec](r)})}[Ec](e){this.statCache.set(this.absolute,e),this.stat=e,e.isFile()||(e.size=0),this.type=D4(e),this.emit("stat",e),this[JA]()}[JA](){switch(this.type){case"File":return this[QA]();case"Directory":return this[ZA]();case"SymbolicLink":return this[pm]();default:return this.end()}}[bc](e){return lw(e,this.type==="Directory",this.portable)}[fi](e){return nw(e,this.prefix)}[Qo](){this.type==="Directory"&&this.portable&&(this.noMtime=!0),this.header=new sw({path:this[fi](this.path),linkpath:this.type==="Link"?this[fi](this.linkpath):this.linkpath,mode:this[bc](this.stat.mode),uid:this.portable?null:this.stat.uid,gid:this.portable?null:this.stat.gid,size:this.stat.size,mtime:this.noMtime?null:this.mtime||this.stat.mtime,type:this.type,uname:this.portable?null:this.stat.uid===this.myuid?this.myuser:"",atime:this.portable?null:this.stat.atime,ctime:this.portable?null:this.stat.ctime}),this.header.encode()&&!this.noPax&&super.write(new iw({atime:this.portable?null:this.header.atime,ctime:this.portable?null:this.header.ctime,gid:this.portable?null:this.header.gid,mtime:this.noMtime?null:this.mtime||this.header.mtime,path:this[fi](this.path),linkpath:this.type==="Link"?this[fi](this.linkpath):this.linkpath,size:this.header.size,uid:this.portable?null:this.header.uid,uname:this.portable?null:this.header.uname,dev:this.portable?null:this.stat.dev,ino:this.portable?null:this.stat.ino,nlink:this.portable?null:this.stat.nlink}).encode()),super.write(this.header.block)}[ZA](){this.path.slice(-1)!=="/"&&(this.path+="/"),this.stat.size=0,this[Qo](),this.end()}[pm](){ci.readlink(this.absolute,(e,r)=>{if(e)return this.emit("error",e);this[mm](r)})}[mm](e){this.linkpath=ui(e),this[Qo](),this.end()}[ew](e){this.type="Link",this.linkpath=ui(zA.relative(this.cwd,e)),this.stat.size=0,this[Qo](),this.end()}[QA](){if(this.stat.nlink>1){let e=this.stat.dev+":"+this.stat.ino;if(this.linkCache.has(e)){let r=this.linkCache.get(e);if(r.indexOf(this.cwd)===0)return this[ew](r)}this.linkCache.set(e,this.absolute)}if(this[Qo](),this.stat.size===0)return this.end();this[ym]()}[ym](){ci.open(this.absolute,"r",(e,r)=>{if(e)return this.emit("error",e);this[gm](r)})}[gm](e){if(this.fd=e,this[tw])return this[Ss]();this.blockLen=512*Math.ceil(this.stat.size/512),this.blockRemain=this.blockLen;let r=Math.min(this.blockLen,this.maxReadSize);this.buf=Buffer.allocUnsafe(r),this.offset=0,this.pos=0,this.remain=this.stat.size,this.length=this.buf.length,this[Tc]()}[Tc](){let{fd:e,buf:r,offset:i,length:s,pos:n}=this;ci.read(e,r,i,s,n,(a,o)=>{if(a)return this[Ss](()=>this.emit("error",a));this[dm](o)})}[Ss](e){ci.close(this.fd,e)}[dm](e){if(e<=0&&this.remain>0){let s=new Error("encountered unexpected EOF");return s.path=this.absolute,s.syscall="read",s.code="EOF",this[Ss](()=>this.emit("error",s))}if(e>this.remain){let s=new Error("did not encounter expected EOF");return s.path=this.absolute,s.syscall="read",s.code="EOF",this[Ss](()=>this.emit("error",s))}if(e===this.remain)for(let s=e;s<this.length&&e<this.blockRemain;s++)this.buf[s+this.offset]=0,e++,this.remain++;let r=this.offset===0&&e===this.buf.length?this.buf:this.buf.slice(this.offset,this.offset+e);this.write(r)?this[fm]():this[Sm](()=>this[fm]())}[Sm](e){this.once("drain",e)}write(e){if(this.blockRemain<e.length){let r=new Error("writing more data than expected");return r.path=this.absolute,this.emit("error",r)}return this.remain-=e.length,this.blockRemain-=e.length,this.pos+=e.length,this.offset+=e.length,super.write(e)}[fm](){if(!this.remain)return this.blockRemain&&super.write(Buffer.alloc(this.blockRemain)),this[Ss](e=>e?this.emit("error",e):this.end());this.offset>=this.length&&(this.buf=Buffer.allocUnsafe(Math.min(this.blockRemain,this.buf.length)),this.offset=0),this.length=this.buf.length-this.offset,this[Tc]()}}),Tm=class extends xc{[hm](){this[Ec](ci.lstatSync(this.absolute))}[pm](){this[mm](ci.readlinkSync(this.absolute))}[ym](){this[gm](ci.openSync(this.absolute,"r"))}[Tc](){let e=!0;try{let{fd:r,buf:i,offset:s,length:n,pos:a}=this,o=ci.readSync(r,i,s,n,a);this[dm](o),e=!1}finally{if(e)try{this[Ss](()=>{})}catch{}}}[Sm](e){e()}[Ss](e){ci.closeSync(this.fd),e()}},N4=aw(class extends rw{constructor(e,r){r=r||{},super(r),this.preservePaths=!!r.preservePaths,this.portable=!!r.portable,this.strict=!!r.strict,this.noPax=!!r.noPax,this.noMtime=!!r.noMtime,this.readEntry=e,this.type=e.type,this.type==="Directory"&&this.portable&&(this.noMtime=!0),this.prefix=r.prefix||null,this.path=ui(e.path),this.mode=this[bc](e.mode),this.uid=this.portable?null:e.uid,this.gid=this.portable?null:e.gid,this.uname=this.portable?null:e.uname,this.gname=this.portable?null:e.gname,this.size=e.size,this.mtime=this.noMtime?null:r.mtime||e.mtime,this.atime=this.portable?null:e.atime,this.ctime=this.portable?null:e.ctime,this.linkpath=ui(e.linkpath),typeof r.onwarn=="function"&&this.on("warn",r.onwarn);let i=!1;if(!this.preservePaths){let[s,n]=ow(this.path);s&&(this.path=n,i=s)}this.remain=e.size,this.blockRemain=e.startBlockSize,this.header=new sw({path:this[fi](this.path),linkpath:this.type==="Link"?this[fi](this.linkpath):this.linkpath,mode:this.mode,uid:this.portable?null:this.uid,gid:this.portable?null:this.gid,size:this.size,mtime:this.noMtime?null:this.mtime,type:this.type,uname:this.portable?null:this.uname,atime:this.portable?null:this.atime,ctime:this.portable?null:this.ctime}),i&&this.warn("TAR_ENTRY_INFO",`stripping ${i} from absolute path`,{entry:this,path:i+this.path}),this.header.encode()&&!this.noPax&&super.write(new iw({atime:this.portable?null:this.atime,ctime:this.portable?null:this.ctime,gid:this.portable?null:this.gid,mtime:this.noMtime?null:this.mtime,path:this[fi](this.path),linkpath:this.type==="Link"?this[fi](this.linkpath):this.linkpath,size:this.size,uid:this.portable?null:this.uid,uname:this.portable?null:this.uname,dev:this.portable?null:this.readEntry.dev,ino:this.portable?null:this.readEntry.ino,nlink:this.portable?null:this.readEntry.nlink}).encode()),super.write(this.header.block),e.pipe(this)}[fi](e){return nw(e,this.prefix)}[bc](e){return lw(e,this.type==="Directory",this.portable)}write(e){let r=e.length;if(r>this.blockRemain)throw new Error("writing more to entry than is appropriate");return this.blockRemain-=r,super.write(e)}end(){return this.blockRemain&&super.write(Buffer.alloc(this.blockRemain)),super.end()}});xc.Sync=Tm;xc.Tar=N4;var D4=t=>t.isFile()?"File":t.isDirectory()?"Directory":t.isSymbolicLink()?"SymbolicLink":"Unsupported";uw.exports=xc});var fw=g((ake,cw)=>{"use strict";c();cw.exports=function(t){t.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}});var Pc=g((lke,pw)=>{"use strict";c();pw.exports=je;je.Node=hn;je.create=je;function je(t){var e=this;if(e instanceof je||(e=new je),e.tail=null,e.head=null,e.length=0,t&&typeof t.forEach=="function")t.forEach(function(s){e.push(s)});else if(arguments.length>0)for(var r=0,i=arguments.length;r<i;r++)e.push(arguments[r]);return e}je.prototype.removeNode=function(t){if(t.list!==this)throw new Error("removing node which does not belong to this list");var e=t.next,r=t.prev;return e&&(e.prev=r),r&&(r.next=e),t===this.head&&(this.head=e),t===this.tail&&(this.tail=r),t.list.length--,t.next=null,t.prev=null,t.list=null,e};je.prototype.unshiftNode=function(t){if(t!==this.head){t.list&&t.list.removeNode(t);var e=this.head;t.list=this,t.next=e,e&&(e.prev=t),this.head=t,this.tail||(this.tail=t),this.length++}};je.prototype.pushNode=function(t){if(t!==this.tail){t.list&&t.list.removeNode(t);var e=this.tail;t.list=this,t.prev=e,e&&(e.next=t),this.tail=t,this.head||(this.head=t),this.length++}};je.prototype.push=function(){for(var t=0,e=arguments.length;t<e;t++)k4(this,arguments[t]);return this.length};je.prototype.unshift=function(){for(var t=0,e=arguments.length;t<e;t++)R4(this,arguments[t]);return this.length};je.prototype.pop=function(){if(this.tail){var t=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,t}};je.prototype.shift=function(){if(this.head){var t=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,t}};je.prototype.forEach=function(t,e){e=e||this;for(var r=this.head,i=0;r!==null;i++)t.call(e,r.value,i,this),r=r.next};je.prototype.forEachReverse=function(t,e){e=e||this;for(var r=this.tail,i=this.length-1;r!==null;i--)t.call(e,r.value,i,this),r=r.prev};je.prototype.get=function(t){for(var e=0,r=this.head;r!==null&&e<t;e++)r=r.next;if(e===t&&r!==null)return r.value};je.prototype.getReverse=function(t){for(var e=0,r=this.tail;r!==null&&e<t;e++)r=r.prev;if(e===t&&r!==null)return r.value};je.prototype.map=function(t,e){e=e||this;for(var r=new je,i=this.head;i!==null;)r.push(t.call(e,i.value,this)),i=i.next;return r};je.prototype.mapReverse=function(t,e){e=e||this;for(var r=new je,i=this.tail;i!==null;)r.push(t.call(e,i.value,this)),i=i.prev;return r};je.prototype.reduce=function(t,e){var r,i=this.head;if(arguments.length>1)r=e;else if(this.head)i=this.head.next,r=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var s=0;i!==null;s++)r=t(r,i.value,s),i=i.next;return r};je.prototype.reduceReverse=function(t,e){var r,i=this.tail;if(arguments.length>1)r=e;else if(this.tail)i=this.tail.prev,r=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var s=this.length-1;i!==null;s--)r=t(r,i.value,s),i=i.prev;return r};je.prototype.toArray=function(){for(var t=new Array(this.length),e=0,r=this.head;r!==null;e++)t[e]=r.value,r=r.next;return t};je.prototype.toArrayReverse=function(){for(var t=new Array(this.length),e=0,r=this.tail;r!==null;e++)t[e]=r.value,r=r.prev;return t};je.prototype.slice=function(t,e){e=e||this.length,e<0&&(e+=this.length),t=t||0,t<0&&(t+=this.length);var r=new je;if(e<t||e<0)return r;t<0&&(t=0),e>this.length&&(e=this.length);for(var i=0,s=this.head;s!==null&&i<t;i++)s=s.next;for(;s!==null&&i<e;i++,s=s.next)r.push(s.value);return r};je.prototype.sliceReverse=function(t,e){e=e||this.length,e<0&&(e+=this.length),t=t||0,t<0&&(t+=this.length);var r=new je;if(e<t||e<0)return r;t<0&&(t=0),e>this.length&&(e=this.length);for(var i=this.length,s=this.tail;s!==null&&i>e;i--)s=s.prev;for(;s!==null&&i>t;i--,s=s.prev)r.push(s.value);return r};je.prototype.splice=function(t,e,...r){t>this.length&&(t=this.length-1),t<0&&(t=this.length+t);for(var i=0,s=this.head;s!==null&&i<t;i++)s=s.next;for(var n=[],i=0;s&&i<e;i++)n.push(s.value),s=this.removeNode(s);s===null&&(s=this.tail),s!==this.head&&s!==this.tail&&(s=s.prev);for(var i=0;i<r.length;i++)s=L4(this,s,r[i]);return n};je.prototype.reverse=function(){for(var t=this.head,e=this.tail,r=t;r!==null;r=r.prev){var i=r.prev;r.prev=r.next,r.next=i}return this.head=e,this.tail=t,this};function L4(t,e,r){var i=e===t.head?new hn(r,null,e,t):new hn(r,e,e.next,t);return i.next===null&&(t.tail=i),i.prev===null&&(t.head=i),t.length++,i}function k4(t,e){t.tail=new hn(e,t.tail,null,t),t.head||(t.head=t.tail),t.length++}function R4(t,e){t.head=new hn(e,null,t.head,t),t.tail||(t.tail=t.head),t.length++}function hn(t,e,r,i){if(!(this instanceof hn))return new hn(t,e,r,i);this.list=i,this.value=t,e?(e.next=this,this.prev=e):this.prev=null,r?(r.prev=this,this.next=r):this.next=null}try{fw()(je)}catch{}});var Dc=g((fke,Tw)=>{"use strict";c();var Oc=class{constructor(e,r){this.path=e||"./",this.absolute=r,this.entry=null,this.stat=null,this.readdir=null,this.pending=!1,this.ignore=!1,this.piped=!1}},{Minipass:M4}=nc(),F4=Zd(),B4=dc(),Im=Em(),j4=Im.Sync,q4=Im.Tar,U4=Pc(),hw=Buffer.alloc(1024),wc=Symbol("onStat"),vc=Symbol("ended"),pi=Symbol("queue"),ya=Symbol("current"),dn=Symbol("process"),Ac=Symbol("processing"),dw=Symbol("processJob"),hi=Symbol("jobs"),bm=Symbol("jobDone"),_c=Symbol("addFSEntry"),mw=Symbol("addTarEntry"),Am=Symbol("stat"),wm=Symbol("readdir"),Cc=Symbol("onreaddir"),Ic=Symbol("pipe"),yw=Symbol("entry"),xm=Symbol("entryOpt"),_m=Symbol("writeEntryClass"),Sw=Symbol("write"),Pm=Symbol("ondrain"),Nc=K("fs"),gw=K("path"),$4=gc(),vm=pa(),Om=$4(class extends M4{constructor(e){super(e),e=e||Object.create(null),this.opt=e,this.file=e.file||"",this.cwd=e.cwd||process.cwd(),this.maxReadSize=e.maxReadSize,this.preservePaths=!!e.preservePaths,this.strict=!!e.strict,this.noPax=!!e.noPax,this.prefix=vm(e.prefix||""),this.linkCache=e.linkCache||new Map,this.statCache=e.statCache||new Map,this.readdirCache=e.readdirCache||new Map,this[_m]=Im,typeof e.onwarn=="function"&&this.on("warn",e.onwarn),this.portable=!!e.portable,this.zip=null,e.gzip?(typeof e.gzip!="object"&&(e.gzip={}),this.portable&&(e.gzip.portable=!0),this.zip=new F4.Gzip(e.gzip),this.zip.on("data",r=>super.write(r)),this.zip.on("end",r=>super.end()),this.zip.on("drain",r=>this[Pm]()),this.on("resume",r=>this.zip.resume())):this.on("drain",this[Pm]),this.noDirRecurse=!!e.noDirRecurse,this.follow=!!e.follow,this.noMtime=!!e.noMtime,this.mtime=e.mtime||null,this.filter=typeof e.filter=="function"?e.filter:r=>!0,this[pi]=new U4,this[hi]=0,this.jobs=+e.jobs||4,this[Ac]=!1,this[vc]=!1}[Sw](e){return super.write(e)}add(e){return this.write(e),this}end(e){return e&&this.write(e),this[vc]=!0,this[dn](),this}write(e){if(this[vc])throw new Error("write after end");return e instanceof B4?this[mw](e):this[_c](e),this.flowing}[mw](e){let r=vm(gw.resolve(this.cwd,e.path));if(!this.filter(e.path,e))e.resume();else{let i=new Oc(e.path,r,!1);i.entry=new q4(e,this[xm](i)),i.entry.on("end",s=>this[bm](i)),this[hi]+=1,this[pi].push(i)}this[dn]()}[_c](e){let r=vm(gw.resolve(this.cwd,e));this[pi].push(new Oc(e,r)),this[dn]()}[Am](e){e.pending=!0,this[hi]+=1;let r=this.follow?"stat":"lstat";Nc[r](e.absolute,(i,s)=>{e.pending=!1,this[hi]-=1,i?this.emit("error",i):this[wc](e,s)})}[wc](e,r){this.statCache.set(e.absolute,r),e.stat=r,this.filter(e.path,r)||(e.ignore=!0),this[dn]()}[wm](e){e.pending=!0,this[hi]+=1,Nc.readdir(e.absolute,(r,i)=>{if(e.pending=!1,this[hi]-=1,r)return this.emit("error",r);this[Cc](e,i)})}[Cc](e,r){this.readdirCache.set(e.absolute,r),e.readdir=r,this[dn]()}[dn](){if(!this[Ac]){this[Ac]=!0;for(let e=this[pi].head;e!==null&&this[hi]<this.jobs;e=e.next)if(this[dw](e.value),e.value.ignore){let r=e.next;this[pi].removeNode(e),e.next=r}this[Ac]=!1,this[vc]&&!this[pi].length&&this[hi]===0&&(this.zip?this.zip.end(hw):(super.write(hw),super.end()))}}get[ya](){return this[pi]&&this[pi].head&&this[pi].head.value}[bm](e){this[pi].shift(),this[hi]-=1,this[dn]()}[dw](e){if(!e.pending){if(e.entry){e===this[ya]&&!e.piped&&this[Ic](e);return}if(e.stat||(this.statCache.has(e.absolute)?this[wc](e,this.statCache.get(e.absolute)):this[Am](e)),!!e.stat&&!e.ignore&&!(!this.noDirRecurse&&e.stat.isDirectory()&&!e.readdir&&(this.readdirCache.has(e.absolute)?this[Cc](e,this.readdirCache.get(e.absolute)):this[wm](e),!e.readdir))){if(e.entry=this[yw](e),!e.entry){e.ignore=!0;return}e===this[ya]&&!e.piped&&this[Ic](e)}}}[xm](e){return{onwarn:(r,i,s)=>this.warn(r,i,s),noPax:this.noPax,cwd:this.cwd,absolute:e.absolute,preservePaths:this.preservePaths,maxReadSize:this.maxReadSize,strict:this.strict,portable:this.portable,linkCache:this.linkCache,statCache:this.statCache,noMtime:this.noMtime,mtime:this.mtime,prefix:this.prefix}}[yw](e){this[hi]+=1;try{return new this[_m](e.path,this[xm](e)).on("end",()=>this[bm](e)).on("error",r=>this.emit("error",r))}catch(r){this.emit("error",r)}}[Pm](){this[ya]&&this[ya].entry&&this[ya].entry.resume()}[Ic](e){e.piped=!0,e.readdir&&e.readdir.forEach(s=>{let n=e.path,a=n==="./"?"":n.replace(/\/*$/,"/");this[_c](a+s)});let r=e.entry,i=this.zip;i?r.on("data",s=>{i.write(s)||r.pause()}):r.on("data",s=>{super.write(s)||r.pause()})}pause(){return this.zip&&this.zip.pause(),super.pause()}}),Cm=class extends Om{constructor(e){super(e),this[_m]=j4}pause(){}resume(){}[Am](e){let r=this.follow?"statSync":"lstatSync";this[wc](e,Nc[r](e.absolute))}[wm](e,r){this[Cc](e,Nc.readdirSync(e.absolute))}[Ic](e){let r=e.entry,i=this.zip;e.readdir&&e.readdir.forEach(s=>{let n=e.path,a=n==="./"?"":n.replace(/\/*$/,"/");this[_c](a+s)}),i?r.on("data",s=>{i.write(s)}):r.on("data",s=>{super[Sw](s)})}};Om.Sync=Cm;Tw.exports=Om});var va=g(el=>{"use strict";c();var V4=Fd(),K4=K("events").EventEmitter,ur=K("fs"),Lm=ur.writev;if(!Lm){let t=process.binding("fs"),e=t.FSReqWrap||t.FSReqCallback;Lm=(r,i,s,n)=>{let a=(l,u)=>n(l,u,i),o=new e;o.oncomplete=a,t.writeBuffers(r,i,s,o)}}var xa=Symbol("_autoClose"),Qr=Symbol("_close"),Zo=Symbol("_ended"),Xe=Symbol("_fd"),Ew=Symbol("_finished"),Es=Symbol("_flags"),Nm=Symbol("_flush"),km=Symbol("_handleChunk"),Rm=Symbol("_makeBuf"),Fc=Symbol("_mode"),Lc=Symbol("_needDrain"),Ea=Symbol("_onerror"),Pa=Symbol("_onopen"),Dm=Symbol("_onread"),Sa=Symbol("_onwrite"),bs=Symbol("_open"),Fi=Symbol("_path"),mn=Symbol("_pos"),di=Symbol("_queue"),Ta=Symbol("_read"),bw=Symbol("_readSize"),Ts=Symbol("_reading"),kc=Symbol("_remain"),xw=Symbol("_size"),Rc=Symbol("_write"),ga=Symbol("_writing"),Mc=Symbol("_defaultFlag"),ba=Symbol("_errored"),Bc=class extends V4{constructor(e,r){if(r=r||{},super(r),this.readable=!0,this.writable=!1,typeof e!="string")throw new TypeError("path must be a string");this[ba]=!1,this[Xe]=typeof r.fd=="number"?r.fd:null,this[Fi]=e,this[bw]=r.readSize||16*1024*1024,this[Ts]=!1,this[xw]=typeof r.size=="number"?r.size:1/0,this[kc]=this[xw],this[xa]=typeof r.autoClose=="boolean"?r.autoClose:!0,typeof this[Xe]=="number"?this[Ta]():this[bs]()}get fd(){return this[Xe]}get path(){return this[Fi]}write(){throw new TypeError("this is a readable stream")}end(){throw new TypeError("this is a readable stream")}[bs](){ur.open(this[Fi],"r",(e,r)=>this[Pa](e,r))}[Pa](e,r){e?this[Ea](e):(this[Xe]=r,this.emit("open",r),this[Ta]())}[Rm](){return Buffer.allocUnsafe(Math.min(this[bw],this[kc]))}[Ta](){if(!this[Ts]){this[Ts]=!0;let e=this[Rm]();if(e.length===0)return process.nextTick(()=>this[Dm](null,0,e));ur.read(this[Xe],e,0,e.length,null,(r,i,s)=>this[Dm](r,i,s))}}[Dm](e,r,i){this[Ts]=!1,e?this[Ea](e):this[km](r,i)&&this[Ta]()}[Qr](){if(this[xa]&&typeof this[Xe]=="number"){let e=this[Xe];this[Xe]=null,ur.close(e,r=>r?this.emit("error",r):this.emit("close"))}}[Ea](e){this[Ts]=!0,this[Qr](),this.emit("error",e)}[km](e,r){let i=!1;return this[kc]-=e,e>0&&(i=super.write(e<r.length?r.slice(0,e):r)),(e===0||this[kc]<=0)&&(i=!1,this[Qr](),super.end()),i}emit(e,r){switch(e){case"prefinish":case"finish":break;case"drain":typeof this[Xe]=="number"&&this[Ta]();break;case"error":return this[ba]?void 0:(this[ba]=!0,super.emit(e,r));default:return super.emit(e,r)}}},Mm=class extends Bc{[bs](){let e=!0;try{this[Pa](null,ur.openSync(this[Fi],"r")),e=!1}finally{e&&this[Qr]()}}[Ta](){let e=!0;try{if(!this[Ts]){this[Ts]=!0;do{let r=this[Rm](),i=r.length===0?0:ur.readSync(this[Xe],r,0,r.length,null);if(!this[km](i,r))break}while(!0);this[Ts]=!1}e=!1}finally{e&&this[Qr]()}}[Qr](){if(this[xa]&&typeof this[Xe]=="number"){let e=this[Xe];this[Xe]=null,ur.closeSync(e),this.emit("close")}}},jc=class extends K4{constructor(e,r){r=r||{},super(r),this.readable=!1,this.writable=!0,this[ba]=!1,this[ga]=!1,this[Zo]=!1,this[Lc]=!1,this[di]=[],this[Fi]=e,this[Xe]=typeof r.fd=="number"?r.fd:null,this[Fc]=r.mode===void 0?438:r.mode,this[mn]=typeof r.start=="number"?r.start:null,this[xa]=typeof r.autoClose=="boolean"?r.autoClose:!0;let i=this[mn]!==null?"r+":"w";this[Mc]=r.flags===void 0,this[Es]=this[Mc]?i:r.flags,this[Xe]===null&&this[bs]()}emit(e,r){if(e==="error"){if(this[ba])return;this[ba]=!0}return super.emit(e,r)}get fd(){return this[Xe]}get path(){return this[Fi]}[Ea](e){this[Qr](),this[ga]=!0,this.emit("error",e)}[bs](){ur.open(this[Fi],this[Es],this[Fc],(e,r)=>this[Pa](e,r))}[Pa](e,r){this[Mc]&&this[Es]==="r+"&&e&&e.code==="ENOENT"?(this[Es]="w",this[bs]()):e?this[Ea](e):(this[Xe]=r,this.emit("open",r),this[Nm]())}end(e,r){return e&&this.write(e,r),this[Zo]=!0,!this[ga]&&!this[di].length&&typeof this[Xe]=="number"&&this[Sa](null,0),this}write(e,r){return typeof e=="string"&&(e=Buffer.from(e,r)),this[Zo]?(this.emit("error",new Error("write() after end()")),!1):this[Xe]===null||this[ga]||this[di].length?(this[di].push(e),this[Lc]=!0,!1):(this[ga]=!0,this[Rc](e),!0)}[Rc](e){ur.write(this[Xe],e,0,e.length,this[mn],(r,i)=>this[Sa](r,i))}[Sa](e,r){e?this[Ea](e):(this[mn]!==null&&(this[mn]+=r),this[di].length?this[Nm]():(this[ga]=!1,this[Zo]&&!this[Ew]?(this[Ew]=!0,this[Qr](),this.emit("finish")):this[Lc]&&(this[Lc]=!1,this.emit("drain"))))}[Nm](){if(this[di].length===0)this[Zo]&&this[Sa](null,0);else if(this[di].length===1)this[Rc](this[di].pop());else{let e=this[di];this[di]=[],Lm(this[Xe],e,this[mn],(r,i)=>this[Sa](r,i))}}[Qr](){if(this[xa]&&typeof this[Xe]=="number"){let e=this[Xe];this[Xe]=null,ur.close(e,r=>r?this.emit("error",r):this.emit("close"))}}},Fm=class extends jc{[bs](){let e;if(this[Mc]&&this[Es]==="r+")try{e=ur.openSync(this[Fi],this[Es],this[Fc])}catch(r){if(r.code==="ENOENT")return this[Es]="w",this[bs]();throw r}else e=ur.openSync(this[Fi],this[Es],this[Fc]);this[Pa](null,e)}[Qr](){if(this[xa]&&typeof this[Xe]=="number"){let e=this[Xe];this[Xe]=null,ur.closeSync(e),this.emit("close")}}[Rc](e){let r=!0;try{this[Sa](null,ur.writeSync(this[Xe],e,0,e.length,this[mn])),r=!1}finally{if(r)try{this[Qr]()}catch{}}}};el.ReadStream=Bc;el.ReadStreamSync=Mm;el.WriteStream=jc;el.WriteStreamSync=Fm});var Wc=g((yke,Ow)=>{"use strict";c();var H4=gc(),W4=da(),G4=K("events"),Y4=Pc(),X4=1024*1024,z4=dc(),Pw=yc(),J4=Zd(),{nextTick:Q4}=K("process"),Bm=Buffer.from([31,139]),Nr=Symbol("state"),yn=Symbol("writeEntry"),Bi=Symbol("readEntry"),jm=Symbol("nextEntry"),vw=Symbol("processEntry"),Dr=Symbol("extendedHeader"),tl=Symbol("globalExtendedHeader"),xs=Symbol("meta"),Aw=Symbol("emitMeta"),et=Symbol("buffer"),ji=Symbol("queue"),gn=Symbol("ended"),ww=Symbol("emittedEnd"),Sn=Symbol("emit"),cr=Symbol("unzip"),qc=Symbol("consumeChunk"),Uc=Symbol("consumeChunkSub"),qm=Symbol("consumeBody"),_w=Symbol("consumeMeta"),Cw=Symbol("consumeHeader"),$c=Symbol("consuming"),Um=Symbol("bufferConcat"),$m=Symbol("maybeEnd"),rl=Symbol("writing"),Ps=Symbol("aborted"),Vc=Symbol("onDone"),Tn=Symbol("sawValidEntry"),Kc=Symbol("sawNullBlock"),Hc=Symbol("sawEOF"),Iw=Symbol("closeStream"),Z4=t=>!0;Ow.exports=H4(class extends G4{constructor(e){e=e||{},super(e),this.file=e.file||"",this[Tn]=null,this.on(Vc,r=>{(this[Nr]==="begin"||this[Tn]===!1)&&this.warn("TAR_BAD_ARCHIVE","Unrecognized archive format")}),e.ondone?this.on(Vc,e.ondone):this.on(Vc,r=>{this.emit("prefinish"),this.emit("finish"),this.emit("end")}),this.strict=!!e.strict,this.maxMetaEntrySize=e.maxMetaEntrySize||X4,this.filter=typeof e.filter=="function"?e.filter:Z4,this.writable=!0,this.readable=!1,this[ji]=new Y4,this[et]=null,this[Bi]=null,this[yn]=null,this[Nr]="begin",this[xs]="",this[Dr]=null,this[tl]=null,this[gn]=!1,this[cr]=null,this[Ps]=!1,this[Kc]=!1,this[Hc]=!1,this.on("end",()=>this[Iw]()),typeof e.onwarn=="function"&&this.on("warn",e.onwarn),typeof e.onentry=="function"&&this.on("entry",e.onentry)}[Cw](e,r){this[Tn]===null&&(this[Tn]=!1);let i;try{i=new W4(e,r,this[Dr],this[tl])}catch(s){return this.warn("TAR_ENTRY_INVALID",s)}if(i.nullBlock)this[Kc]?(this[Hc]=!0,this[Nr]==="begin"&&(this[Nr]="header"),this[Sn]("eof")):(this[Kc]=!0,this[Sn]("nullBlock"));else if(this[Kc]=!1,!i.cksumValid)this.warn("TAR_ENTRY_INVALID","checksum failure",{header:i});else if(!i.path)this.warn("TAR_ENTRY_INVALID","path is required",{header:i});else{let s=i.type;if(/^(Symbolic)?Link$/.test(s)&&!i.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath required",{header:i});else if(!/^(Symbolic)?Link$/.test(s)&&i.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath forbidden",{header:i});else{let n=this[yn]=new z4(i,this[Dr],this[tl]);if(!this[Tn])if(n.remain){let a=()=>{n.invalid||(this[Tn]=!0)};n.on("end",a)}else this[Tn]=!0;n.meta?n.size>this.maxMetaEntrySize?(n.ignore=!0,this[Sn]("ignoredEntry",n),this[Nr]="ignore",n.resume()):n.size>0&&(this[xs]="",n.on("data",a=>this[xs]+=a),this[Nr]="meta"):(this[Dr]=null,n.ignore=n.ignore||!this.filter(n.path,n),n.ignore?(this[Sn]("ignoredEntry",n),this[Nr]=n.remain?"ignore":"header",n.resume()):(n.remain?this[Nr]="body":(this[Nr]="header",n.end()),this[Bi]?this[ji].push(n):(this[ji].push(n),this[jm]())))}}}[Iw](){Q4(()=>this.emit("close"))}[vw](e){let r=!0;return e?Array.isArray(e)?this.emit.apply(this,e):(this[Bi]=e,this.emit("entry",e),e.emittedEnd||(e.on("end",i=>this[jm]()),r=!1)):(this[Bi]=null,r=!1),r}[jm](){do;while(this[vw](this[ji].shift()));if(!this[ji].length){let e=this[Bi];!e||e.flowing||e.size===e.remain?this[rl]||this.emit("drain"):e.once("drain",i=>this.emit("drain"))}}[qm](e,r){let i=this[yn],s=i.blockRemain,n=s>=e.length&&r===0?e:e.slice(r,r+s);return i.write(n),i.blockRemain||(this[Nr]="header",this[yn]=null,i.end()),n.length}[_w](e,r){let i=this[yn],s=this[qm](e,r);return this[yn]||this[Aw](i),s}[Sn](e,r,i){!this[ji].length&&!this[Bi]?this.emit(e,r,i):this[ji].push([e,r,i])}[Aw](e){switch(this[Sn]("meta",this[xs]),e.type){case"ExtendedHeader":case"OldExtendedHeader":this[Dr]=Pw.parse(this[xs],this[Dr],!1);break;case"GlobalExtendedHeader":this[tl]=Pw.parse(this[xs],this[tl],!0);break;case"NextFileHasLongPath":case"OldGnuLongPath":this[Dr]=this[Dr]||Object.create(null),this[Dr].path=this[xs].replace(/\0.*/,"");break;case"NextFileHasLongLinkpath":this[Dr]=this[Dr]||Object.create(null),this[Dr].linkpath=this[xs].replace(/\0.*/,"");break;default:throw new Error("unknown meta: "+e.type)}}abort(e){this[Ps]=!0,this.emit("abort",e),this.warn("TAR_ABORT",e,{recoverable:!1})}write(e){if(this[Ps])return;if(this[cr]===null&&e){if(this[et]&&(e=Buffer.concat([this[et],e]),this[et]=null),e.length<Bm.length)return this[et]=e,!0;for(let i=0;this[cr]===null&&i<Bm.length;i++)e[i]!==Bm[i]&&(this[cr]=!1);if(this[cr]===null){let i=this[gn];this[gn]=!1,this[cr]=new J4.Unzip,this[cr].on("data",n=>this[qc](n)),this[cr].on("error",n=>this.abort(n)),this[cr].on("end",n=>{this[gn]=!0,this[qc]()}),this[rl]=!0;let s=this[cr][i?"end":"write"](e);return this[rl]=!1,s}}this[rl]=!0,this[cr]?this[cr].write(e):this[qc](e),this[rl]=!1;let r=this[ji].length?!1:this[Bi]?this[Bi].flowing:!0;return!r&&!this[ji].length&&this[Bi].once("drain",i=>this.emit("drain")),r}[Um](e){e&&!this[Ps]&&(this[et]=this[et]?Buffer.concat([this[et],e]):e)}[$m](){if(this[gn]&&!this[ww]&&!this[Ps]&&!this[$c]){this[ww]=!0;let e=this[yn];if(e&&e.blockRemain){let r=this[et]?this[et].length:0;this.warn("TAR_BAD_ARCHIVE",`Truncated input (needed ${e.blockRemain} more bytes, only ${r} available)`,{entry:e}),this[et]&&e.write(this[et]),e.end()}this[Sn](Vc)}}[qc](e){if(this[$c])this[Um](e);else if(!e&&!this[et])this[$m]();else{if(this[$c]=!0,this[et]){this[Um](e);let r=this[et];this[et]=null,this[Uc](r)}else this[Uc](e);for(;this[et]&&this[et].length>=512&&!this[Ps]&&!this[Hc];){let r=this[et];this[et]=null,this[Uc](r)}this[$c]=!1}(!this[et]||this[gn])&&this[$m]()}[Uc](e){let r=0,i=e.length;for(;r+512<=i&&!this[Ps]&&!this[Hc];)switch(this[Nr]){case"begin":case"header":this[Cw](e,r),r+=512;break;case"ignore":case"body":r+=this[qm](e,r);break;case"meta":r+=this[_w](e,r);break;default:throw new Error("invalid state: "+this[Nr])}r<i&&(this[et]?this[et]=Buffer.concat([e.slice(r),this[et]]):this[et]=e.slice(r))}end(e){this[Ps]||(this[cr]?this[cr].end(e):(this[gn]=!0,this.write(e)))}})});var Gc=g((Ske,kw)=>{"use strict";c();var e6=oa(),Dw=Wc(),Aa=K("fs"),t6=va(),Nw=K("path"),Vm=ma();kw.exports=(t,e,r)=>{typeof t=="function"?(r=t,e=null,t={}):Array.isArray(t)&&(e=t,t={}),typeof e=="function"&&(r=e,e=null),e?e=Array.from(e):e=[];let i=e6(t);if(i.sync&&typeof r=="function")throw new TypeError("callback not supported for sync tar functions");if(!i.file&&typeof r=="function")throw new TypeError("callback only supported with file option");return e.length&&i6(i,e),i.noResume||r6(i),i.file&&i.sync?s6(i):i.file?n6(i,r):Lw(i)};var r6=t=>{let e=t.onentry;t.onentry=e?r=>{e(r),r.resume()}:r=>r.resume()},i6=(t,e)=>{let r=new Map(e.map(n=>[Vm(n),!0])),i=t.filter,s=(n,a)=>{let o=a||Nw.parse(n).root||".",l=n===o?!1:r.has(n)?r.get(n):s(Nw.dirname(n),o);return r.set(n,l),l};t.filter=i?(n,a)=>i(n,a)&&s(Vm(n)):n=>s(Vm(n))},s6=t=>{let e=Lw(t),r=t.file,i=!0,s;try{let n=Aa.statSync(r),a=t.maxReadSize||16*1024*1024;if(n.size<a)e.end(Aa.readFileSync(r));else{let o=0,l=Buffer.allocUnsafe(a);for(s=Aa.openSync(r,"r");o<n.size;){let u=Aa.readSync(s,l,0,a,o);o+=u,e.write(l.slice(0,u))}e.end()}i=!1}finally{if(i&&s)try{Aa.closeSync(s)}catch{}}},n6=(t,e)=>{let r=new Dw(t),i=t.maxReadSize||16*1024*1024,s=t.file,n=new Promise((a,o)=>{r.on("error",o),r.on("end",a),Aa.stat(s,(l,u)=>{if(l)o(l);else{let f=new t6.ReadStream(s,{readSize:i,size:u.size});f.on("error",o),f.pipe(r)}})});return e?n.then(e,e):n},Lw=t=>new Dw(t)});var qw=g((Eke,jw)=>{"use strict";c();var a6=oa(),Yc=Dc(),Rw=va(),Mw=Gc(),Fw=K("path");jw.exports=(t,e,r)=>{if(typeof e=="function"&&(r=e),Array.isArray(t)&&(e=t,t={}),!e||!Array.isArray(e)||!e.length)throw new TypeError("no files or directories specified");e=Array.from(e);let i=a6(t);if(i.sync&&typeof r=="function")throw new TypeError("callback not supported for sync tar functions");if(!i.file&&typeof r=="function")throw new TypeError("callback only supported with file option");return i.file&&i.sync?o6(i,e):i.file?l6(i,e,r):i.sync?u6(i,e):c6(i,e)};var o6=(t,e)=>{let r=new Yc.Sync(t),i=new Rw.WriteStreamSync(t.file,{mode:t.mode||438});r.pipe(i),Bw(r,e)},l6=(t,e,r)=>{let i=new Yc(t),s=new Rw.WriteStream(t.file,{mode:t.mode||438});i.pipe(s);let n=new Promise((a,o)=>{s.on("error",o),s.on("close",a),i.on("error",o)});return Km(i,e),r?n.then(r,r):n},Bw=(t,e)=>{e.forEach(r=>{r.charAt(0)==="@"?Mw({file:Fw.resolve(t.cwd,r.slice(1)),sync:!0,noResume:!0,onentry:i=>t.add(i)}):t.add(r)}),t.end()},Km=(t,e)=>{for(;e.length;){let r=e.shift();if(r.charAt(0)==="@")return Mw({file:Fw.resolve(t.cwd,r.slice(1)),noResume:!0,onentry:i=>t.add(i)}).then(i=>Km(t,e));t.add(r)}t.end()},u6=(t,e)=>{let r=new Yc.Sync(t);return Bw(r,e),r},c6=(t,e)=>{let r=new Yc(t);return Km(r,e),r}});var Hm=g((xke,Gw)=>{"use strict";c();var f6=oa(),Uw=Dc(),br=K("fs"),$w=va(),Vw=Gc(),Kw=K("path"),Hw=da();Gw.exports=(t,e,r)=>{let i=f6(t);if(!i.file)throw new TypeError("file is required");if(i.gzip)throw new TypeError("cannot append to compressed archives");if(!e||!Array.isArray(e)||!e.length)throw new TypeError("no files or directories specified");return e=Array.from(e),i.sync?p6(i,e):d6(i,e,r)};var p6=(t,e)=>{let r=new Uw.Sync(t),i=!0,s,n;try{try{s=br.openSync(t.file,"r+")}catch(l){if(l.code==="ENOENT")s=br.openSync(t.file,"w+");else throw l}let a=br.fstatSync(s),o=Buffer.alloc(512);e:for(n=0;n<a.size;n+=512){for(let f=0,p=0;f<512;f+=p){if(p=br.readSync(s,o,f,o.length-f,n+f),n===0&&o[0]===31&&o[1]===139)throw new Error("cannot append to compressed archives");if(!p)break e}let l=new Hw(o);if(!l.cksumValid)break;let u=512*Math.ceil(l.size/512);if(n+u+512>a.size)break;n+=u,t.mtimeCache&&t.mtimeCache.set(l.path,l.mtime)}i=!1,h6(t,r,n,s,e)}finally{if(i)try{br.closeSync(s)}catch{}}},h6=(t,e,r,i,s)=>{let n=new $w.WriteStreamSync(t.file,{fd:i,start:r});e.pipe(n),m6(e,s)},d6=(t,e,r)=>{e=Array.from(e);let i=new Uw(t),s=(a,o,l)=>{let u=(T,b)=>{T?br.close(a,x=>l(T)):l(null,b)},f=0;if(o===0)return u(null,0);let p=0,h=Buffer.alloc(512),d=(T,b)=>{if(T)return u(T);if(p+=b,p<512&&b)return br.read(a,h,p,h.length-p,f+p,d);if(f===0&&h[0]===31&&h[1]===139)return u(new Error("cannot append to compressed archives"));if(p<512)return u(null,f);let x=new Hw(h);if(!x.cksumValid)return u(null,f);let _=512*Math.ceil(x.size/512);if(f+_+512>o||(f+=_+512,f>=o))return u(null,f);t.mtimeCache&&t.mtimeCache.set(x.path,x.mtime),p=0,br.read(a,h,0,512,f,d)};br.read(a,h,0,512,f,d)},n=new Promise((a,o)=>{i.on("error",o);let l="r+",u=(f,p)=>{if(f&&f.code==="ENOENT"&&l==="r+")return l="w+",br.open(t.file,l,u);if(f)return o(f);br.fstat(p,(h,d)=>{if(h)return br.close(p,()=>o(h));s(p,d.size,(T,b)=>{if(T)return o(T);let x=new $w.WriteStream(t.file,{fd:p,start:b});i.pipe(x),x.on("error",o),x.on("close",a),Ww(i,e)})})};br.open(t.file,l,u)});return r?n.then(r,r):n},m6=(t,e)=>{e.forEach(r=>{r.charAt(0)==="@"?Vw({file:Kw.resolve(t.cwd,r.slice(1)),sync:!0,noResume:!0,onentry:i=>t.add(i)}):t.add(r)}),t.end()},Ww=(t,e)=>{for(;e.length;){let r=e.shift();if(r.charAt(0)==="@")return Vw({file:Kw.resolve(t.cwd,r.slice(1)),noResume:!0,onentry:i=>t.add(i)}).then(i=>Ww(t,e));t.add(r)}t.end()}});var Xw=g((vke,Yw)=>{"use strict";c();var y6=oa(),g6=Hm();Yw.exports=(t,e,r)=>{let i=y6(t);if(!i.file)throw new TypeError("file is required");if(i.gzip)throw new TypeError("cannot append to compressed archives");if(!e||!Array.isArray(e)||!e.length)throw new TypeError("no files or directories specified");return e=Array.from(e),S6(i),g6(i,e,r)};var S6=t=>{let e=t.filter;t.mtimeCache||(t.mtimeCache=new Map),t.filter=e?(r,i)=>e(r,i)&&!(t.mtimeCache.get(r)>i.mtime):(r,i)=>!(t.mtimeCache.get(r)>i.mtime)}});var Qw=g((wke,Jw)=>{c();var{promisify:zw}=K("util"),vs=K("fs"),T6=t=>{if(!t)t={mode:511,fs:vs};else if(typeof t=="object")t={mode:511,fs:vs,...t};else if(typeof t=="number")t={mode:t,fs:vs};else if(typeof t=="string")t={mode:parseInt(t,8),fs:vs};else throw new TypeError("invalid options argument");return t.mkdir=t.mkdir||t.fs.mkdir||vs.mkdir,t.mkdirAsync=zw(t.mkdir),t.stat=t.stat||t.fs.stat||vs.stat,t.statAsync=zw(t.stat),t.statSync=t.statSync||t.fs.statSync||vs.statSync,t.mkdirSync=t.mkdirSync||t.fs.mkdirSync||vs.mkdirSync,t};Jw.exports=T6});var e_=g((Cke,Zw)=>{c();var E6=process.env.__TESTING_MKDIRP_PLATFORM__||process.platform,{resolve:b6,parse:x6}=K("path"),P6=t=>{if(/\0/.test(t))throw Object.assign(new TypeError("path must be a string without null bytes"),{path:t,code:"ERR_INVALID_ARG_VALUE"});if(t=b6(t),E6==="win32"){let e=/[*|"<>?:]/,{root:r}=x6(t);if(e.test(t.substr(r.length)))throw Object.assign(new Error("Illegal characters in path."),{path:t,code:"EINVAL"})}return t};Zw.exports=P6});var n_=g((Oke,s_)=>{c();var{dirname:t_}=K("path"),r_=(t,e,r=void 0)=>r===e?Promise.resolve():t.statAsync(e).then(i=>i.isDirectory()?r:void 0,i=>i.code==="ENOENT"?r_(t,t_(e),e):void 0),i_=(t,e,r=void 0)=>{if(r!==e)try{return t.statSync(e).isDirectory()?r:void 0}catch(i){return i.code==="ENOENT"?i_(t,t_(e),e):void 0}};s_.exports={findMade:r_,findMadeSync:i_}});var Ym=g((Dke,o_)=>{c();var{dirname:a_}=K("path"),Wm=(t,e,r)=>{e.recursive=!1;let i=a_(t);return i===t?e.mkdirAsync(t,e).catch(s=>{if(s.code!=="EISDIR")throw s}):e.mkdirAsync(t,e).then(()=>r||t,s=>{if(s.code==="ENOENT")return Wm(i,e).then(n=>Wm(t,e,n));if(s.code!=="EEXIST"&&s.code!=="EROFS")throw s;return e.statAsync(t).then(n=>{if(n.isDirectory())return r;throw s},()=>{throw s})})},Gm=(t,e,r)=>{let i=a_(t);if(e.recursive=!1,i===t)try{return e.mkdirSync(t,e)}catch(s){if(s.code!=="EISDIR")throw s;return}try{return e.mkdirSync(t,e),r||t}catch(s){if(s.code==="ENOENT")return Gm(t,e,Gm(i,e,r));if(s.code!=="EEXIST"&&s.code!=="EROFS")throw s;try{if(!e.statSync(t).isDirectory())throw s}catch{throw s}}};o_.exports={mkdirpManual:Wm,mkdirpManualSync:Gm}});var c_=g((kke,u_)=>{c();var{dirname:l_}=K("path"),{findMade:v6,findMadeSync:A6}=n_(),{mkdirpManual:w6,mkdirpManualSync:_6}=Ym(),C6=(t,e)=>(e.recursive=!0,l_(t)===t?e.mkdirAsync(t,e):v6(e,t).then(i=>e.mkdirAsync(t,e).then(()=>i).catch(s=>{if(s.code==="ENOENT")return w6(t,e);throw s}))),I6=(t,e)=>{if(e.recursive=!0,l_(t)===t)return e.mkdirSync(t,e);let i=A6(e,t);try{return e.mkdirSync(t,e),i}catch(s){if(s.code==="ENOENT")return _6(t,e);throw s}};u_.exports={mkdirpNative:C6,mkdirpNativeSync:I6}});var d_=g((Mke,h_)=>{c();var f_=K("fs"),O6=process.env.__TESTING_MKDIRP_NODE_VERSION__||process.version,Xm=O6.replace(/^v/,"").split("."),p_=+Xm[0]>10||+Xm[0]==10&&+Xm[1]>=12,N6=p_?t=>t.mkdir===f_.mkdir:()=>!1,D6=p_?t=>t.mkdirSync===f_.mkdirSync:()=>!1;h_.exports={useNative:N6,useNativeSync:D6}});var E_=g((Bke,T_)=>{c();var wa=Qw(),_a=e_(),{mkdirpNative:m_,mkdirpNativeSync:y_}=c_(),{mkdirpManual:g_,mkdirpManualSync:S_}=Ym(),{useNative:L6,useNativeSync:k6}=d_(),Ca=(t,e)=>(t=_a(t),e=wa(e),L6(e)?m_(t,e):g_(t,e)),R6=(t,e)=>(t=_a(t),e=wa(e),k6(e)?y_(t,e):S_(t,e));Ca.sync=R6;Ca.native=(t,e)=>m_(_a(t),wa(e));Ca.manual=(t,e)=>g_(_a(t),wa(e));Ca.nativeSync=(t,e)=>y_(_a(t),wa(e));Ca.manualSync=(t,e)=>S_(_a(t),wa(e));T_.exports=Ca});var __=g((qke,w_)=>{"use strict";c();var Lr=K("fs"),En=K("path"),M6=Lr.lchown?"lchown":"chown",F6=Lr.lchownSync?"lchownSync":"chownSync",x_=Lr.lchown&&!process.version.match(/v1[1-9]+\./)&&!process.version.match(/v10\.[6-9]/),b_=(t,e,r)=>{try{return Lr[F6](t,e,r)}catch(i){if(i.code!=="ENOENT")throw i}},B6=(t,e,r)=>{try{return Lr.chownSync(t,e,r)}catch(i){if(i.code!=="ENOENT")throw i}},j6=x_?(t,e,r,i)=>s=>{!s||s.code!=="EISDIR"?i(s):Lr.chown(t,e,r,i)}:(t,e,r,i)=>i,zm=x_?(t,e,r)=>{try{return b_(t,e,r)}catch(i){if(i.code!=="EISDIR")throw i;B6(t,e,r)}}:(t,e,r)=>b_(t,e,r),q6=process.version,P_=(t,e,r)=>Lr.readdir(t,e,r),U6=(t,e)=>Lr.readdirSync(t,e);/^v4\./.test(q6)&&(P_=(t,e,r)=>Lr.readdir(t,r));var Xc=(t,e,r,i)=>{Lr[M6](t,e,r,j6(t,e,r,s=>{i(s&&s.code!=="ENOENT"?s:null)}))},v_=(t,e,r,i,s)=>{if(typeof e=="string")return Lr.lstat(En.resolve(t,e),(n,a)=>{if(n)return s(n.code!=="ENOENT"?n:null);a.name=e,v_(t,a,r,i,s)});if(e.isDirectory())Jm(En.resolve(t,e.name),r,i,n=>{if(n)return s(n);let a=En.resolve(t,e.name);Xc(a,r,i,s)});else{let n=En.resolve(t,e.name);Xc(n,r,i,s)}},Jm=(t,e,r,i)=>{P_(t,{withFileTypes:!0},(s,n)=>{if(s){if(s.code==="ENOENT")return i();if(s.code!=="ENOTDIR"&&s.code!=="ENOTSUP")return i(s)}if(s||!n.length)return Xc(t,e,r,i);let a=n.length,o=null,l=u=>{if(!o){if(u)return i(o=u);if(--a===0)return Xc(t,e,r,i)}};n.forEach(u=>v_(t,u,e,r,l))})},$6=(t,e,r,i)=>{if(typeof e=="string")try{let s=Lr.lstatSync(En.resolve(t,e));s.name=e,e=s}catch(s){if(s.code==="ENOENT")return;throw s}e.isDirectory()&&A_(En.resolve(t,e.name),r,i),zm(En.resolve(t,e.name),r,i)},A_=(t,e,r)=>{let i;try{i=U6(t,{withFileTypes:!0})}catch(s){if(s.code==="ENOENT")return;if(s.code==="ENOTDIR"||s.code==="ENOTSUP")return zm(t,e,r);throw s}return i&&i.length&&i.forEach(s=>$6(t,s,e,r)),zm(t,e,r)};w_.exports=Jm;Jm.sync=A_});var N_=g(($ke,Qm)=>{"use strict";c();var C_=E_(),kr=K("fs"),zc=K("path"),I_=__(),Zr=pa(),Jc=class extends Error{constructor(e,r){super("Cannot extract through symbolic link"),this.path=r,this.symlink=e}get name(){return"SylinkError"}},Qc=class extends Error{constructor(e,r){super(r+": Cannot cd into '"+e+"'"),this.path=e,this.code=r}get name(){return"CwdError"}},Zc=(t,e)=>t.get(Zr(e)),il=(t,e,r)=>t.set(Zr(e),r),V6=(t,e)=>{kr.stat(t,(r,i)=>{(r||!i.isDirectory())&&(r=new Qc(t,r&&r.code||"ENOTDIR")),e(r)})};Qm.exports=(t,e,r)=>{t=Zr(t);let i=e.umask,s=e.mode|448,n=(s&i)!==0,a=e.uid,o=e.gid,l=typeof a=="number"&&typeof o=="number"&&(a!==e.processUid||o!==e.processGid),u=e.preserve,f=e.unlink,p=e.cache,h=Zr(e.cwd),d=(x,_)=>{x?r(x):(il(p,t,!0),_&&l?I_(_,a,o,R=>d(R)):n?kr.chmod(t,s,r):r())};if(p&&Zc(p,t)===!0)return d();if(t===h)return V6(t,d);if(u)return C_(t,{mode:s}).then(x=>d(null,x),d);let b=Zr(zc.relative(h,t)).split("/");ef(h,b,s,p,f,h,null,d)};var ef=(t,e,r,i,s,n,a,o)=>{if(!e.length)return o(null,a);let l=e.shift(),u=Zr(zc.resolve(t+"/"+l));if(Zc(i,u))return ef(u,e,r,i,s,n,a,o);kr.mkdir(u,r,O_(u,e,r,i,s,n,a,o))},O_=(t,e,r,i,s,n,a,o)=>l=>{l?kr.lstat(t,(u,f)=>{if(u)u.path=u.path&&Zr(u.path),o(u);else if(f.isDirectory())ef(t,e,r,i,s,n,a,o);else if(s)kr.unlink(t,p=>{if(p)return o(p);kr.mkdir(t,r,O_(t,e,r,i,s,n,a,o))});else{if(f.isSymbolicLink())return o(new Jc(t,t+"/"+e.join("/")));o(l)}}):(a=a||t,ef(t,e,r,i,s,n,a,o))},K6=t=>{let e=!1,r="ENOTDIR";try{e=kr.statSync(t).isDirectory()}catch(i){r=i.code}finally{if(!e)throw new Qc(t,r)}};Qm.exports.sync=(t,e)=>{t=Zr(t);let r=e.umask,i=e.mode|448,s=(i&r)!==0,n=e.uid,a=e.gid,o=typeof n=="number"&&typeof a=="number"&&(n!==e.processUid||a!==e.processGid),l=e.preserve,u=e.unlink,f=e.cache,p=Zr(e.cwd),h=x=>{il(f,t,!0),x&&o&&I_.sync(x,n,a),s&&kr.chmodSync(t,i)};if(f&&Zc(f,t)===!0)return h();if(t===p)return K6(p),h();if(l)return h(C_.sync(t,i));let T=Zr(zc.relative(p,t)).split("/"),b=null;for(let x=T.shift(),_=p;x&&(_+="/"+x);x=T.shift())if(_=Zr(zc.resolve(_)),!Zc(f,_))try{kr.mkdirSync(_,i),b=b||_,il(f,_,!0)}catch{let k=kr.lstatSync(_);if(k.isDirectory()){il(f,_,!0);continue}else if(u){kr.unlinkSync(_),kr.mkdirSync(_,i),b=b||_,il(f,_,!0);continue}else if(k.isSymbolicLink())return new Jc(_,_+"/"+T.join("/"))}return h(b)}});var ey=g((Kke,D_)=>{c();var Zm=Object.create(null),{hasOwnProperty:H6}=Object.prototype;D_.exports=t=>(H6.call(Zm,t)||(Zm[t]=t.normalize("NFD")),Zm[t])});var M_=g((Wke,R_)=>{c();var L_=K("assert"),W6=ey(),G6=ma(),{join:k_}=K("path"),Y6=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,X6=Y6==="win32";R_.exports=()=>{let t=new Map,e=new Map,r=u=>u.split("/").slice(0,-1).reduce((p,h)=>(p.length&&(h=k_(p[p.length-1],h)),p.push(h||"/"),p),[]),i=new Set,s=u=>{let f=e.get(u);if(!f)throw new Error("function does not have any path reservations");return{paths:f.paths.map(p=>t.get(p)),dirs:[...f.dirs].map(p=>t.get(p))}},n=u=>{let{paths:f,dirs:p}=s(u);return f.every(h=>h[0]===u)&&p.every(h=>h[0]instanceof Set&&h[0].has(u))},a=u=>i.has(u)||!n(u)?!1:(i.add(u),u(()=>o(u)),!0),o=u=>{if(!i.has(u))return!1;let{paths:f,dirs:p}=e.get(u),h=new Set;return f.forEach(d=>{let T=t.get(d);L_.equal(T[0],u),T.length===1?t.delete(d):(T.shift(),typeof T[0]=="function"?h.add(T[0]):T[0].forEach(b=>h.add(b)))}),p.forEach(d=>{let T=t.get(d);L_(T[0]instanceof Set),T[0].size===1&&T.length===1?t.delete(d):T[0].size===1?(T.shift(),h.add(T[0])):T[0].delete(u)}),i.delete(u),h.forEach(d=>a(d)),!0};return{check:n,reserve:(u,f)=>{u=X6?["win32 parallelization disabled"]:u.map(h=>G6(k_(W6(h))).toLowerCase());let p=new Set(u.map(h=>r(h)).reduce((h,d)=>h.concat(d)));return e.set(f,{dirs:p,paths:u}),u.forEach(h=>{let d=t.get(h);d?d.push(f):t.set(h,[f])}),p.forEach(h=>{let d=t.get(h);d?d[d.length-1]instanceof Set?d[d.length-1].add(f):d.push(new Set([f])):t.set(h,[new Set([f])])}),a(f)}}}});var j_=g((Yke,B_)=>{c();var z6=process.env.__FAKE_PLATFORM__||process.platform,J6=z6==="win32",Q6=global.__FAKE_TESTING_FS__||K("fs"),{O_CREAT:Z6,O_TRUNC:e8,O_WRONLY:t8,UV_FS_O_FILEMAP:F_=0}=Q6.constants,r8=J6&&!!F_,i8=512*1024,s8=F_|e8|Z6|t8;B_.exports=r8?t=>t<i8?s8:"w":()=>"w"});var uy=g((zke,Z_)=>{"use strict";c();var n8=K("assert"),a8=Wc(),qe=K("fs"),o8=va(),qi=K("path"),z_=N_(),q_=um(),l8=M_(),u8=cm(),xr=pa(),c8=ma(),f8=ey(),U_=Symbol("onEntry"),iy=Symbol("checkFs"),$_=Symbol("checkFs2"),sf=Symbol("pruneCache"),sy=Symbol("isReusable"),Rr=Symbol("makeFs"),ny=Symbol("file"),ay=Symbol("directory"),nf=Symbol("link"),V_=Symbol("symlink"),K_=Symbol("hardlink"),H_=Symbol("unsupported"),W_=Symbol("checkPath"),As=Symbol("mkdir"),Ft=Symbol("onError"),tf=Symbol("pending"),G_=Symbol("pend"),Ia=Symbol("unpend"),ty=Symbol("ended"),ry=Symbol("maybeClose"),oy=Symbol("skip"),sl=Symbol("doChown"),nl=Symbol("uid"),al=Symbol("gid"),ol=Symbol("checkedCwd"),J_=K("crypto"),Q_=j_(),p8=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,ll=p8==="win32",h8=(t,e)=>{if(!ll)return qe.unlink(t,e);let r=t+".DELETE."+J_.randomBytes(16).toString("hex");qe.rename(t,r,i=>{if(i)return e(i);qe.unlink(r,e)})},d8=t=>{if(!ll)return qe.unlinkSync(t);let e=t+".DELETE."+J_.randomBytes(16).toString("hex");qe.renameSync(t,e),qe.unlinkSync(e)},Y_=(t,e,r)=>t===t>>>0?t:e===e>>>0?e:r,X_=t=>c8(xr(f8(t))).toLowerCase(),m8=(t,e)=>{e=X_(e);for(let r of t.keys()){let i=X_(r);(i===e||i.indexOf(e+"/")===0)&&t.delete(r)}},y8=t=>{for(let e of t.keys())t.delete(e)},ul=class extends a8{constructor(e){if(e||(e={}),e.ondone=r=>{this[ty]=!0,this[ry]()},super(e),this[ol]=!1,this.reservations=l8(),this.transform=typeof e.transform=="function"?e.transform:null,this.writable=!0,this.readable=!1,this[tf]=0,this[ty]=!1,this.dirCache=e.dirCache||new Map,typeof e.uid=="number"||typeof e.gid=="number"){if(typeof e.uid!="number"||typeof e.gid!="number")throw new TypeError("cannot set owner without number uid and gid");if(e.preserveOwner)throw new TypeError("cannot preserve owner in archive and also set owner explicitly");this.uid=e.uid,this.gid=e.gid,this.setOwner=!0}else this.uid=null,this.gid=null,this.setOwner=!1;e.preserveOwner===void 0&&typeof e.uid!="number"?this.preserveOwner=process.getuid&&process.getuid()===0:this.preserveOwner=!!e.preserveOwner,this.processUid=(this.preserveOwner||this.setOwner)&&process.getuid?process.getuid():null,this.processGid=(this.preserveOwner||this.setOwner)&&process.getgid?process.getgid():null,this.forceChown=e.forceChown===!0,this.win32=!!e.win32||ll,this.newer=!!e.newer,this.keep=!!e.keep,this.noMtime=!!e.noMtime,this.preservePaths=!!e.preservePaths,this.unlink=!!e.unlink,this.cwd=xr(qi.resolve(e.cwd||process.cwd())),this.strip=+e.strip||0,this.processUmask=e.noChmod?0:process.umask(),this.umask=typeof e.umask=="number"?e.umask:this.processUmask,this.dmode=e.dmode||511&~this.umask,this.fmode=e.fmode||438&~this.umask,this.on("entry",r=>this[U_](r))}warn(e,r,i={}){return(e==="TAR_BAD_ARCHIVE"||e==="TAR_ABORT")&&(i.recoverable=!1),super.warn(e,r,i)}[ry](){this[ty]&&this[tf]===0&&(this.emit("prefinish"),this.emit("finish"),this.emit("end"))}[W_](e){if(this.strip){let r=xr(e.path).split("/");if(r.length<this.strip)return!1;if(e.path=r.slice(this.strip).join("/"),e.type==="Link"){let i=xr(e.linkpath).split("/");if(i.length>=this.strip)e.linkpath=i.slice(this.strip).join("/");else return!1}}if(!this.preservePaths){let r=xr(e.path),i=r.split("/");if(i.includes("..")||ll&&/^[a-z]:\.\.$/i.test(i[0]))return this.warn("TAR_ENTRY_ERROR","path contains '..'",{entry:e,path:r}),!1;let[s,n]=u8(r);s&&(e.path=n,this.warn("TAR_ENTRY_INFO",`stripping ${s} from absolute path`,{entry:e,path:r}))}if(qi.isAbsolute(e.path)?e.absolute=xr(qi.resolve(e.path)):e.absolute=xr(qi.resolve(this.cwd,e.path)),!this.preservePaths&&e.absolute.indexOf(this.cwd+"/")!==0&&e.absolute!==this.cwd)return this.warn("TAR_ENTRY_ERROR","path escaped extraction target",{entry:e,path:xr(e.path),resolvedPath:e.absolute,cwd:this.cwd}),!1;if(e.absolute===this.cwd&&e.type!=="Directory"&&e.type!=="GNUDumpDir")return!1;if(this.win32){let{root:r}=qi.win32.parse(e.absolute);e.absolute=r+q_.encode(e.absolute.slice(r.length));let{root:i}=qi.win32.parse(e.path);e.path=i+q_.encode(e.path.slice(i.length))}return!0}[U_](e){if(!this[W_](e))return e.resume();switch(n8.equal(typeof e.absolute,"string"),e.type){case"Directory":case"GNUDumpDir":e.mode&&(e.mode=e.mode|448);case"File":case"OldFile":case"ContiguousFile":case"Link":case"SymbolicLink":return this[iy](e);case"CharacterDevice":case"BlockDevice":case"FIFO":default:return this[H_](e)}}[Ft](e,r){e.name==="CwdError"?this.emit("error",e):(this.warn("TAR_ENTRY_ERROR",e,{entry:r}),this[Ia](),r.resume())}[As](e,r,i){z_(xr(e),{uid:this.uid,gid:this.gid,processUid:this.processUid,processGid:this.processGid,umask:this.processUmask,preserve:this.preservePaths,unlink:this.unlink,cache:this.dirCache,cwd:this.cwd,mode:r,noChmod:this.noChmod},i)}[sl](e){return this.forceChown||this.preserveOwner&&(typeof e.uid=="number"&&e.uid!==this.processUid||typeof e.gid=="number"&&e.gid!==this.processGid)||typeof this.uid=="number"&&this.uid!==this.processUid||typeof this.gid=="number"&&this.gid!==this.processGid}[nl](e){return Y_(this.uid,e.uid,this.processUid)}[al](e){return Y_(this.gid,e.gid,this.processGid)}[ny](e,r){let i=e.mode&4095||this.fmode,s=new o8.WriteStream(e.absolute,{flags:Q_(e.size),mode:i,autoClose:!1});s.on("error",l=>{s.fd&&qe.close(s.fd,()=>{}),s.write=()=>!0,this[Ft](l,e),r()});let n=1,a=l=>{if(l){s.fd&&qe.close(s.fd,()=>{}),this[Ft](l,e),r();return}--n===0&&qe.close(s.fd,u=>{u?this[Ft](u,e):this[Ia](),r()})};s.on("finish",l=>{let u=e.absolute,f=s.fd;if(e.mtime&&!this.noMtime){n++;let p=e.atime||new Date,h=e.mtime;qe.futimes(f,p,h,d=>d?qe.utimes(u,p,h,T=>a(T&&d)):a())}if(this[sl](e)){n++;let p=this[nl](e),h=this[al](e);qe.fchown(f,p,h,d=>d?qe.chown(u,p,h,T=>a(T&&d)):a())}a()});let o=this.transform&&this.transform(e)||e;o!==e&&(o.on("error",l=>{this[Ft](l,e),r()}),e.pipe(o)),o.pipe(s)}[ay](e,r){let i=e.mode&4095||this.dmode;this[As](e.absolute,i,s=>{if(s){this[Ft](s,e),r();return}let n=1,a=o=>{--n===0&&(r(),this[Ia](),e.resume())};e.mtime&&!this.noMtime&&(n++,qe.utimes(e.absolute,e.atime||new Date,e.mtime,a)),this[sl](e)&&(n++,qe.chown(e.absolute,this[nl](e),this[al](e),a)),a()})}[H_](e){e.unsupported=!0,this.warn("TAR_ENTRY_UNSUPPORTED",`unsupported entry type: ${e.type}`,{entry:e}),e.resume()}[V_](e,r){this[nf](e,e.linkpath,"symlink",r)}[K_](e,r){let i=xr(qi.resolve(this.cwd,e.linkpath));this[nf](e,i,"link",r)}[G_](){this[tf]++}[Ia](){this[tf]--,this[ry]()}[oy](e){this[Ia](),e.resume()}[sy](e,r){return e.type==="File"&&!this.unlink&&r.isFile()&&r.nlink<=1&&!ll}[iy](e){this[G_]();let r=[e.path];e.linkpath&&r.push(e.linkpath),this.reservations.reserve(r,i=>this[$_](e,i))}[sf](e){e.type==="SymbolicLink"?y8(this.dirCache):e.type!=="Directory"&&m8(this.dirCache,e.absolute)}[$_](e,r){this[sf](e);let i=o=>{this[sf](e),r(o)},s=()=>{this[As](this.cwd,this.dmode,o=>{if(o){this[Ft](o,e),i();return}this[ol]=!0,n()})},n=()=>{if(e.absolute!==this.cwd){let o=xr(qi.dirname(e.absolute));if(o!==this.cwd)return this[As](o,this.dmode,l=>{if(l){this[Ft](l,e),i();return}a()})}a()},a=()=>{qe.lstat(e.absolute,(o,l)=>{if(l&&(this.keep||this.newer&&l.mtime>e.mtime)){this[oy](e),i();return}if(o||this[sy](e,l))return this[Rr](null,e,i);if(l.isDirectory()){if(e.type==="Directory"){let u=!this.noChmod&&e.mode&&(l.mode&4095)!==e.mode,f=p=>this[Rr](p,e,i);return u?qe.chmod(e.absolute,e.mode,f):f()}if(e.absolute!==this.cwd)return qe.rmdir(e.absolute,u=>this[Rr](u,e,i))}if(e.absolute===this.cwd)return this[Rr](null,e,i);h8(e.absolute,u=>this[Rr](u,e,i))})};this[ol]?n():s()}[Rr](e,r,i){if(e){this[Ft](e,r),i();return}switch(r.type){case"File":case"OldFile":case"ContiguousFile":return this[ny](r,i);case"Link":return this[K_](r,i);case"SymbolicLink":return this[V_](r,i);case"Directory":case"GNUDumpDir":return this[ay](r,i)}}[nf](e,r,i,s){qe[i](r,e.absolute,n=>{n?this[Ft](n,e):(this[Ia](),e.resume()),s()})}},rf=t=>{try{return[null,t()]}catch(e){return[e,null]}},ly=class extends ul{[Rr](e,r){return super[Rr](e,r,()=>{})}[iy](e){if(this[sf](e),!this[ol]){let n=this[As](this.cwd,this.dmode);if(n)return this[Ft](n,e);this[ol]=!0}if(e.absolute!==this.cwd){let n=xr(qi.dirname(e.absolute));if(n!==this.cwd){let a=this[As](n,this.dmode);if(a)return this[Ft](a,e)}}let[r,i]=rf(()=>qe.lstatSync(e.absolute));if(i&&(this.keep||this.newer&&i.mtime>e.mtime))return this[oy](e);if(r||this[sy](e,i))return this[Rr](null,e);if(i.isDirectory()){if(e.type==="Directory"){let a=!this.noChmod&&e.mode&&(i.mode&4095)!==e.mode,[o]=a?rf(()=>{qe.chmodSync(e.absolute,e.mode)}):[];return this[Rr](o,e)}let[n]=rf(()=>qe.rmdirSync(e.absolute));this[Rr](n,e)}let[s]=e.absolute===this.cwd?[]:rf(()=>d8(e.absolute));this[Rr](s,e)}[ny](e,r){let i=e.mode&4095||this.fmode,s=o=>{let l;try{qe.closeSync(n)}catch(u){l=u}(o||l)&&this[Ft](o||l,e),r()},n;try{n=qe.openSync(e.absolute,Q_(e.size),i)}catch(o){return s(o)}let a=this.transform&&this.transform(e)||e;a!==e&&(a.on("error",o=>this[Ft](o,e)),e.pipe(a)),a.on("data",o=>{try{qe.writeSync(n,o,0,o.length)}catch(l){s(l)}}),a.on("end",o=>{let l=null;if(e.mtime&&!this.noMtime){let u=e.atime||new Date,f=e.mtime;try{qe.futimesSync(n,u,f)}catch(p){try{qe.utimesSync(e.absolute,u,f)}catch{l=p}}}if(this[sl](e)){let u=this[nl](e),f=this[al](e);try{qe.fchownSync(n,u,f)}catch(p){try{qe.chownSync(e.absolute,u,f)}catch{l=l||p}}}s(l)})}[ay](e,r){let i=e.mode&4095||this.dmode,s=this[As](e.absolute,i);if(s){this[Ft](s,e),r();return}if(e.mtime&&!this.noMtime)try{qe.utimesSync(e.absolute,e.atime||new Date,e.mtime)}catch{}if(this[sl](e))try{qe.chownSync(e.absolute,this[nl](e),this[al](e))}catch{}r(),e.resume()}[As](e,r){try{return z_.sync(xr(e),{uid:this.uid,gid:this.gid,processUid:this.processUid,processGid:this.processGid,umask:this.processUmask,preserve:this.preservePaths,unlink:this.unlink,cache:this.dirCache,cwd:this.cwd,mode:r})}catch(i){return i}}[nf](e,r,i,s){try{qe[i+"Sync"](r,e.absolute),s(),e.resume()}catch(n){return this[Ft](n,e)}}};ul.Sync=ly;Z_.exports=ul});var s1=g((Qke,i1)=>{"use strict";c();var g8=oa(),af=uy(),t1=K("fs"),r1=va(),e1=K("path"),cy=ma();i1.exports=(t,e,r)=>{typeof t=="function"?(r=t,e=null,t={}):Array.isArray(t)&&(e=t,t={}),typeof e=="function"&&(r=e,e=null),e?e=Array.from(e):e=[];let i=g8(t);if(i.sync&&typeof r=="function")throw new TypeError("callback not supported for sync tar functions");if(!i.file&&typeof r=="function")throw new TypeError("callback only supported with file option");return e.length&&S8(i,e),i.file&&i.sync?T8(i):i.file?E8(i,r):i.sync?b8(i):x8(i)};var S8=(t,e)=>{let r=new Map(e.map(n=>[cy(n),!0])),i=t.filter,s=(n,a)=>{let o=a||e1.parse(n).root||".",l=n===o?!1:r.has(n)?r.get(n):s(e1.dirname(n),o);return r.set(n,l),l};t.filter=i?(n,a)=>i(n,a)&&s(cy(n)):n=>s(cy(n))},T8=t=>{let e=new af.Sync(t),r=t.file,i=t1.statSync(r),s=t.maxReadSize||16*1024*1024;new r1.ReadStreamSync(r,{readSize:s,size:i.size}).pipe(e)},E8=(t,e)=>{let r=new af(t),i=t.maxReadSize||16*1024*1024,s=t.file,n=new Promise((a,o)=>{r.on("error",o),r.on("close",a),t1.stat(s,(l,u)=>{if(l)o(l);else{let f=new r1.ReadStream(s,{readSize:i,size:u.size});f.on("error",o),f.pipe(r)}})});return e?n.then(e,e):n},b8=t=>new af.Sync(t),x8=t=>new af(t)});var n1=g(Tt=>{"use strict";c();Tt.c=Tt.create=qw();Tt.r=Tt.replace=Hm();Tt.t=Tt.list=Gc();Tt.u=Tt.update=Xw();Tt.x=Tt.extract=s1();Tt.Pack=Dc();Tt.Unpack=uy();Tt.Parse=Wc();Tt.ReadEntry=dc();Tt.WriteEntry=Em();Tt.Header=da();Tt.Pax=yc();Tt.types=rm()});var a1=g(Pe=>{c();var fy=!("NO_COLOR"in process.env)&&("FORCE_COLOR"in process.env||process.platform==="win32"||process.stdout!=null&&process.stdout.isTTY&&process.env.TERM&&process.env.TERM!=="dumb"),py=(t,e,r,i)=>s=>fy?t+(~(s+="").indexOf(e,4)?s.replace(r,i):s)+e:s,Ie=(t,e)=>py(`\x1B[${t}m`,`\x1B[${e}m`,new RegExp(`\\x1b\\[${e}m`,"g"),`\x1B[${t}m`);Pe.options=Object.defineProperty({},"enabled",{get:()=>fy,set:t=>fy=t});Pe.reset=Ie(0,0);Pe.bold=py("\x1B[1m","\x1B[22m",/\x1b\[22m/g,"\x1B[22m\x1B[1m");Pe.dim=py("\x1B[2m","\x1B[22m",/\x1b\[22m/g,"\x1B[22m\x1B[2m");Pe.italic=Ie(3,23);Pe.underline=Ie(4,24);Pe.inverse=Ie(7,27);Pe.hidden=Ie(8,28);Pe.strikethrough=Ie(9,29);Pe.black=Ie(30,39);Pe.red=Ie(31,39);Pe.green=Ie(32,39);Pe.yellow=Ie(33,39);Pe.blue=Ie(34,39);Pe.magenta=Ie(35,39);Pe.cyan=Ie(36,39);Pe.white=Ie(37,39);Pe.gray=Ie(90,39);Pe.bgBlack=Ie(40,49);Pe.bgRed=Ie(41,49);Pe.bgGreen=Ie(42,49);Pe.bgYellow=Ie(43,49);Pe.bgBlue=Ie(44,49);Pe.bgMagenta=Ie(45,49);Pe.bgCyan=Ie(46,49);Pe.bgWhite=Ie(47,49);Pe.blackBright=Ie(90,39);Pe.redBright=Ie(91,39);Pe.greenBright=Ie(92,39);Pe.yellowBright=Ie(93,39);Pe.blueBright=Ie(94,39);Pe.magentaBright=Ie(95,39);Pe.cyanBright=Ie(96,39);Pe.whiteBright=Ie(97,39);Pe.bgBlackBright=Ie(100,49);Pe.bgRedBright=Ie(101,49);Pe.bgGreenBright=Ie(102,49);Pe.bgYellowBright=Ie(103,49);Pe.bgBlueBright=Ie(104,49);Pe.bgMagentaBright=Ie(105,49);Pe.bgCyanBright=Ie(106,49);Pe.bgWhiteBright=Ie(107,49)});var l1=g((sRe,o1)=>{c();var Oa=1e3,Na=Oa*60,Da=Na*60,bn=Da*24,P8=bn*7,v8=bn*365.25;o1.exports=function(t,e){e=e||{};var r=typeof t;if(r==="string"&&t.length>0)return A8(t);if(r==="number"&&isFinite(t))return e.long?_8(t):w8(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function A8(t){if(t=String(t),!(t.length>100)){var e=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(e){var r=parseFloat(e[1]),i=(e[2]||"ms").toLowerCase();switch(i){case"years":case"year":case"yrs":case"yr":case"y":return r*v8;case"weeks":case"week":case"w":return r*P8;case"days":case"day":case"d":return r*bn;case"hours":case"hour":case"hrs":case"hr":case"h":return r*Da;case"minutes":case"minute":case"mins":case"min":case"m":return r*Na;case"seconds":case"second":case"secs":case"sec":case"s":return r*Oa;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function w8(t){var e=Math.abs(t);return e>=bn?Math.round(t/bn)+"d":e>=Da?Math.round(t/Da)+"h":e>=Na?Math.round(t/Na)+"m":e>=Oa?Math.round(t/Oa)+"s":t+"ms"}function _8(t){var e=Math.abs(t);return e>=bn?of(t,e,bn,"day"):e>=Da?of(t,e,Da,"hour"):e>=Na?of(t,e,Na,"minute"):e>=Oa?of(t,e,Oa,"second"):t+" ms"}function of(t,e,r,i){var s=e>=r*1.5;return Math.round(t/r)+" "+i+(s?"s":"")}});var hy=g((aRe,u1)=>{c();function C8(t){r.debug=r,r.default=r,r.coerce=l,r.disable=n,r.enable=s,r.enabled=a,r.humanize=l1(),r.destroy=u,Object.keys(t).forEach(f=>{r[f]=t[f]}),r.names=[],r.skips=[],r.formatters={};function e(f){let p=0;for(let h=0;h<f.length;h++)p=(p<<5)-p+f.charCodeAt(h),p|=0;return r.colors[Math.abs(p)%r.colors.length]}r.selectColor=e;function r(f){let p,h=null,d,T;function b(...x){if(!b.enabled)return;let _=b,R=Number(new Date),k=R-(p||R);_.diff=k,_.prev=p,_.curr=R,p=R,x[0]=r.coerce(x[0]),typeof x[0]!="string"&&x.unshift("%O");let M=0;x[0]=x[0].replace(/%([a-zA-Z%])/g,(L,F)=>{if(L==="%%")return"%";M++;let H=r.formatters[F];if(typeof H=="function"){let V=x[M];L=H.call(_,V),x.splice(M,1),M--}return L}),r.formatArgs.call(_,x),(_.log||r.log).apply(_,x)}return b.namespace=f,b.useColors=r.useColors(),b.color=r.selectColor(f),b.extend=i,b.destroy=r.destroy,Object.defineProperty(b,"enabled",{enumerable:!0,configurable:!1,get:()=>h!==null?h:(d!==r.namespaces&&(d=r.namespaces,T=r.enabled(f)),T),set:x=>{h=x}}),typeof r.init=="function"&&r.init(b),b}function i(f,p){let h=r(this.namespace+(typeof p>"u"?":":p)+f);return h.log=this.log,h}function s(f){r.save(f),r.namespaces=f,r.names=[],r.skips=[];let p,h=(typeof f=="string"?f:"").split(/[\s,]+/),d=h.length;for(p=0;p<d;p++)h[p]&&(f=h[p].replace(/\*/g,".*?"),f[0]==="-"?r.skips.push(new RegExp("^"+f.slice(1)+"$")):r.names.push(new RegExp("^"+f+"$")))}function n(){let f=[...r.names.map(o),...r.skips.map(o).map(p=>"-"+p)].join(",");return r.enable(""),f}function a(f){if(f[f.length-1]==="*")return!0;let p,h;for(p=0,h=r.skips.length;p<h;p++)if(r.skips[p].test(f))return!1;for(p=0,h=r.names.length;p<h;p++)if(r.names[p].test(f))return!0;return!1}function o(f){return f.toString().substring(2,f.toString().length-2).replace(/\.\*\?$/,"*")}function l(f){return f instanceof Error?f.stack||f.message:f}function u(){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 r.enable(r.load()),r}u1.exports=C8});var c1=g((Pr,lf)=>{c();Pr.formatArgs=O8;Pr.save=N8;Pr.load=D8;Pr.useColors=I8;Pr.storage=L8();Pr.destroy=(()=>{let t=!1;return()=>{t||(t=!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`."))}})();Pr.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function I8(){return typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function O8(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+lf.exports.humanize(this.diff),!this.useColors)return;let e="color: "+this.color;t.splice(1,0,e,"color: inherit");let r=0,i=0;t[0].replace(/%[a-zA-Z%]/g,s=>{s!=="%%"&&(r++,s==="%c"&&(i=r))}),t.splice(i,0,e)}Pr.log=console.debug||console.log||(()=>{});function N8(t){try{t?Pr.storage.setItem("debug",t):Pr.storage.removeItem("debug")}catch{}}function D8(){let t;try{t=Pr.storage.getItem("debug")}catch{}return!t&&typeof process<"u"&&"env"in process&&(t=process.env.DEBUG),t}function L8(){try{return localStorage}catch{}}lf.exports=hy()(Pr);var{formatters:k8}=lf.exports;k8.j=function(t){try{return JSON.stringify(t)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}});var p1=g((uRe,f1)=>{"use strict";c();f1.exports=(t,e=process.argv)=>{let r=t.startsWith("-")?"":t.length===1?"-":"--",i=e.indexOf(r+t),s=e.indexOf("--");return i!==-1&&(s===-1||i<s)}});var m1=g((fRe,d1)=>{"use strict";c();var R8=K("os"),h1=K("tty"),Mr=p1(),{env:At}=process,ws;Mr("no-color")||Mr("no-colors")||Mr("color=false")||Mr("color=never")?ws=0:(Mr("color")||Mr("colors")||Mr("color=true")||Mr("color=always"))&&(ws=1);"FORCE_COLOR"in At&&(At.FORCE_COLOR==="true"?ws=1:At.FORCE_COLOR==="false"?ws=0:ws=At.FORCE_COLOR.length===0?1:Math.min(parseInt(At.FORCE_COLOR,10),3));function dy(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function my(t,e){if(ws===0)return 0;if(Mr("color=16m")||Mr("color=full")||Mr("color=truecolor"))return 3;if(Mr("color=256"))return 2;if(t&&!e&&ws===void 0)return 0;let r=ws||0;if(At.TERM==="dumb")return r;if(process.platform==="win32"){let i=R8.release().split(".");return Number(i[0])>=10&&Number(i[2])>=10586?Number(i[2])>=14931?3:2:1}if("CI"in At)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(i=>i in At)||At.CI_NAME==="codeship"?1:r;if("TEAMCITY_VERSION"in At)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(At.TEAMCITY_VERSION)?1:0;if(At.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in At){let i=parseInt((At.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(At.TERM_PROGRAM){case"iTerm.app":return i>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(At.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(At.TERM)||"COLORTERM"in At?1:r}function M8(t){let e=my(t,t&&t.isTTY);return dy(e)}d1.exports={supportsColor:M8,stdout:dy(my(!0,h1.isatty(1))),stderr:dy(my(!0,h1.isatty(2)))}});var g1=g((Ot,cf)=>{c();var F8=K("tty"),uf=K("util");Ot.init=K8;Ot.log=U8;Ot.formatArgs=j8;Ot.save=$8;Ot.load=V8;Ot.useColors=B8;Ot.destroy=uf.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");Ot.colors=[6,2,3,4,5,1];try{let t=m1();t&&(t.stderr||t).level>=2&&(Ot.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{}Ot.inspectOpts=Object.keys(process.env).filter(t=>/^debug_/i.test(t)).reduce((t,e)=>{let r=e.substring(6).toLowerCase().replace(/_([a-z])/g,(s,n)=>n.toUpperCase()),i=process.env[e];return/^(yes|on|true|enabled)$/i.test(i)?i=!0:/^(no|off|false|disabled)$/i.test(i)?i=!1:i==="null"?i=null:i=Number(i),t[r]=i,t},{});function B8(){return"colors"in Ot.inspectOpts?!!Ot.inspectOpts.colors:F8.isatty(process.stderr.fd)}function j8(t){let{namespace:e,useColors:r}=this;if(r){let i=this.color,s="\x1B[3"+(i<8?i:"8;5;"+i),n=` ${s};1m${e} \x1B[0m`;t[0]=n+t[0].split(`
11
+ `).join(`
12
+ `+n),t.push(s+"m+"+cf.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=q8()+e+" "+t[0]}function q8(){return Ot.inspectOpts.hideDate?"":new Date().toISOString()+" "}function U8(...t){return process.stderr.write(uf.format(...t)+`
13
+ `)}function $8(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function V8(){return process.env.DEBUG}function K8(t){t.inspectOpts={};let e=Object.keys(Ot.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=Ot.inspectOpts[e[r]]}cf.exports=hy()(Ot);var{formatters:y1}=cf.exports;y1.o=function(t){return this.inspectOpts.colors=this.useColors,uf.inspect(t,this.inspectOpts).split(`
14
+ `).map(e=>e.trim()).join(" ")};y1.O=function(t){return this.inspectOpts.colors=this.useColors,uf.inspect(t,this.inspectOpts)}});var cl=g((dRe,yy)=>{c();typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?yy.exports=c1():yy.exports=g1()});var S1=g(gy=>{"use strict";c();Object.defineProperty(gy,"__esModule",{value:!0});function H8(t){return function(e,r){return new Promise((i,s)=>{t.call(this,e,r,(n,a)=>{n?s(n):i(a)})})}}gy.default=H8});var b1=g((Ty,E1)=>{"use strict";c();var T1=Ty&&Ty.__importDefault||function(t){return t&&t.__esModule?t:{default:t}},W8=K("events"),G8=T1(cl()),Y8=T1(S1()),fl=G8.default("agent-base");function X8(t){return!!t&&typeof t.addRequest=="function"}function Sy(){let{stack:t}=new Error;return typeof t!="string"?!1:t.split(`
15
+ `).some(e=>e.indexOf("(https.js:")!==-1||e.indexOf("node:https:")!==-1)}function ff(t,e){return new ff.Agent(t,e)}(function(t){class e extends W8.EventEmitter{constructor(i,s){super();let n=s;typeof i=="function"?this.callback=i:i&&(n=i),this.timeout=null,n&&typeof n.timeout=="number"&&(this.timeout=n.timeout),this.maxFreeSockets=1,this.maxSockets=1,this.maxTotalSockets=1/0,this.sockets={},this.freeSockets={},this.requests={},this.options={}}get defaultPort(){return typeof this.explicitDefaultPort=="number"?this.explicitDefaultPort:Sy()?443:80}set defaultPort(i){this.explicitDefaultPort=i}get protocol(){return typeof this.explicitProtocol=="string"?this.explicitProtocol:Sy()?"https:":"http:"}set protocol(i){this.explicitProtocol=i}callback(i,s,n){throw new Error('"agent-base" has no default implementation, you must subclass and override `callback()`')}addRequest(i,s){let n=Object.assign({},s);typeof n.secureEndpoint!="boolean"&&(n.secureEndpoint=Sy()),n.host==null&&(n.host="localhost"),n.port==null&&(n.port=n.secureEndpoint?443:80),n.protocol==null&&(n.protocol=n.secureEndpoint?"https:":"http:"),n.host&&n.path&&delete n.path,delete n.agent,delete n.hostname,delete n._defaultAgent,delete n.defaultPort,delete n.createConnection,i._last=!0,i.shouldKeepAlive=!1;let a=!1,o=null,l=n.timeout||this.timeout,u=d=>{i._hadError||(i.emit("error",d),i._hadError=!0)},f=()=>{o=null,a=!0;let d=new Error(`A "socket" was not created for HTTP request before ${l}ms`);d.code="ETIMEOUT",u(d)},p=d=>{a||(o!==null&&(clearTimeout(o),o=null),u(d))},h=d=>{if(a)return;if(o!=null&&(clearTimeout(o),o=null),X8(d)){fl("Callback returned another Agent instance %o",d.constructor.name),d.addRequest(i,n);return}if(d){d.once("free",()=>{this.freeSocket(d,n)}),i.onSocket(d);return}let T=new Error(`no Duplex stream was returned to agent-base for \`${i.method} ${i.path}\``);u(T)};if(typeof this.callback!="function"){u(new Error("`callback` is not defined"));return}this.promisifiedCallback||(this.callback.length>=3?(fl("Converting legacy callback function to promise"),this.promisifiedCallback=Y8.default(this.callback)):this.promisifiedCallback=this.callback),typeof l=="number"&&l>0&&(o=setTimeout(f,l)),"port"in n&&typeof n.port!="number"&&(n.port=Number(n.port));try{fl("Resolving socket for %o request: %o",n.protocol,`${i.method} ${i.path}`),Promise.resolve(this.promisifiedCallback(i,n)).then(h,p)}catch(d){Promise.reject(d).catch(p)}}freeSocket(i,s){fl("Freeing socket %o %o",i.constructor.name,s),i.destroy()}destroy(){fl("Destroying agent %o",this.constructor.name)}}t.Agent=e,t.prototype=t.Agent.prototype})(ff||(ff={}));E1.exports=ff});var x1=g(hl=>{"use strict";c();var z8=hl&&hl.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(hl,"__esModule",{value:!0});var J8=z8(cl()),pl=J8.default("https-proxy-agent:parse-proxy-response");function Q8(t){return new Promise((e,r)=>{let i=0,s=[];function n(){let p=t.read();p?f(p):t.once("readable",n)}function a(){t.removeListener("end",l),t.removeListener("error",u),t.removeListener("close",o),t.removeListener("readable",n)}function o(p){pl("onclose had error %o",p)}function l(){pl("onend")}function u(p){a(),pl("onerror %o",p),r(p)}function f(p){s.push(p),i+=p.length;let h=Buffer.concat(s,i);if(h.indexOf(`\r
16
+ \r
17
+ `)===-1){pl("have not received end of HTTP headers yet..."),n();return}let T=h.toString("ascii",0,h.indexOf(`\r
18
+ `)),b=+T.split(" ")[1];pl("got proxy server response: %o",T),e({statusCode:b,buffered:h})}t.on("error",u),t.on("close",o),t.on("end",l),n()})}hl.default=Q8});var A1=g(xn=>{"use strict";c();var Z8=xn&&xn.__awaiter||function(t,e,r,i){function s(n){return n instanceof r?n:new r(function(a){a(n)})}return new(r||(r=Promise))(function(n,a){function o(f){try{u(i.next(f))}catch(p){a(p)}}function l(f){try{u(i.throw(f))}catch(p){a(p)}}function u(f){f.done?n(f.value):s(f.value).then(o,l)}u((i=i.apply(t,e||[])).next())})},La=xn&&xn.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(xn,"__esModule",{value:!0});var P1=La(K("net")),v1=La(K("tls")),e9=La(K("url")),t9=La(K("assert")),r9=La(cl()),i9=b1(),s9=La(x1()),dl=r9.default("https-proxy-agent:agent"),Ey=class extends i9.Agent{constructor(e){let r;if(typeof e=="string"?r=e9.default.parse(e):r=e,!r)throw new Error("an HTTP(S) proxy server `host` and `port` must be specified!");dl("creating new HttpsProxyAgent instance: %o",r),super(r);let i=Object.assign({},r);this.secureProxy=r.secureProxy||o9(i.protocol),i.host=i.hostname||i.host,typeof i.port=="string"&&(i.port=parseInt(i.port,10)),!i.port&&i.host&&(i.port=this.secureProxy?443:80),this.secureProxy&&!("ALPNProtocols"in i)&&(i.ALPNProtocols=["http 1.1"]),i.host&&i.path&&(delete i.path,delete i.pathname),this.proxy=i}callback(e,r){return Z8(this,void 0,void 0,function*(){let{proxy:i,secureProxy:s}=this,n;s?(dl("Creating `tls.Socket`: %o",i),n=v1.default.connect(i)):(dl("Creating `net.Socket`: %o",i),n=P1.default.connect(i));let a=Object.assign({},i.headers),l=`CONNECT ${`${r.host}:${r.port}`} HTTP/1.1\r
19
+ `;i.auth&&(a["Proxy-Authorization"]=`Basic ${Buffer.from(i.auth).toString("base64")}`);let{host:u,port:f,secureEndpoint:p}=r;a9(f,p)||(u+=`:${f}`),a.Host=u,a.Connection="close";for(let x of Object.keys(a))l+=`${x}: ${a[x]}\r
20
+ `;let h=s9.default(n);n.write(`${l}\r
21
+ `);let{statusCode:d,buffered:T}=yield h;if(d===200){if(e.once("socket",n9),r.secureEndpoint){let x=r.servername||r.host;if(!x)throw new Error('Could not determine "servername"');return dl("Upgrading socket connection to TLS"),v1.default.connect(Object.assign(Object.assign({},l9(r,"host","hostname","path","port")),{socket:n,servername:x}))}return n}n.destroy();let b=new P1.default.Socket;return b.readable=!0,e.once("socket",x=>{dl("replaying proxy buffer for failed request"),t9.default(x.listenerCount("data")>0),x.push(T),x.push(null)}),b})}};xn.default=Ey;function n9(t){t.resume()}function a9(t,e){return!!(!e&&t===80||e&&t===443)}function o9(t){return typeof t=="string"?/^https:?$/i.test(t):!1}function l9(t,...e){let r={},i;for(i in t)e.includes(i)||(r[i]=t[i]);return r}});var _1=g((Py,w1)=>{"use strict";c();var u9=Py&&Py.__importDefault||function(t){return t&&t.__esModule?t:{default:t}},by=u9(A1());function xy(t){return new by.default(t)}(function(t){t.HttpsProxyAgent=by.default,t.prototype=by.default.prototype})(xy||(xy={}));w1.exports=xy});var C1=g(vy=>{c();var Pn=K("path"),Cs=process.platform==="win32",_s=K("fs"),c9=process.env.NODE_DEBUG&&/fs/.test(process.env.NODE_DEBUG);function f9(){var t;if(c9){var e=new Error;t=r}else t=i;return t;function r(s){s&&(e.message=s.message,s=e,i(s))}function i(s){if(s){if(process.throwDeprecation)throw s;if(!process.noDeprecation){var n="fs: missing callback "+(s.stack||s.message);process.traceDeprecation?console.trace(n):console.error(n)}}}}function p9(t){return typeof t=="function"?t:f9()}var vRe=Pn.normalize;Cs?Ui=/(.*?)(?:[\/\\]+|$)/g:Ui=/(.*?)(?:[\/]+|$)/g;var Ui;Cs?ml=/^(?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/][^\\\/]+)?[\\\/]*/:ml=/^[\/]*/;var ml;vy.realpathSync=function(e,r){if(e=Pn.resolve(e),r&&Object.prototype.hasOwnProperty.call(r,e))return r[e];var i=e,s={},n={},a,o,l,u;f();function f(){var x=ml.exec(e);a=x[0].length,o=x[0],l=x[0],u="",Cs&&!n[l]&&(_s.lstatSync(l),n[l]=!0)}for(;a<e.length;){Ui.lastIndex=a;var p=Ui.exec(e);if(u=o,o+=p[0],l=u+p[1],a=Ui.lastIndex,!(n[l]||r&&r[l]===l)){var h;if(r&&Object.prototype.hasOwnProperty.call(r,l))h=r[l];else{var d=_s.lstatSync(l);if(!d.isSymbolicLink()){n[l]=!0,r&&(r[l]=l);continue}var T=null;if(!Cs){var b=d.dev.toString(32)+":"+d.ino.toString(32);s.hasOwnProperty(b)&&(T=s[b])}T===null&&(_s.statSync(l),T=_s.readlinkSync(l)),h=Pn.resolve(u,T),r&&(r[l]=h),Cs||(s[b]=T)}e=Pn.resolve(h,e.slice(a)),f()}}return r&&(r[i]=e),e};vy.realpath=function(e,r,i){if(typeof i!="function"&&(i=p9(r),r=null),e=Pn.resolve(e),r&&Object.prototype.hasOwnProperty.call(r,e))return process.nextTick(i.bind(null,null,r[e]));var s=e,n={},a={},o,l,u,f;p();function p(){var x=ml.exec(e);o=x[0].length,l=x[0],u=x[0],f="",Cs&&!a[u]?_s.lstat(u,function(_){if(_)return i(_);a[u]=!0,h()}):process.nextTick(h)}function h(){if(o>=e.length)return r&&(r[s]=e),i(null,e);Ui.lastIndex=o;var x=Ui.exec(e);return f=l,l+=x[0],u=f+x[1],o=Ui.lastIndex,a[u]||r&&r[u]===u?process.nextTick(h):r&&Object.prototype.hasOwnProperty.call(r,u)?b(r[u]):_s.lstat(u,d)}function d(x,_){if(x)return i(x);if(!_.isSymbolicLink())return a[u]=!0,r&&(r[u]=u),process.nextTick(h);if(!Cs){var R=_.dev.toString(32)+":"+_.ino.toString(32);if(n.hasOwnProperty(R))return T(null,n[R],u)}_s.stat(u,function(k){if(k)return i(k);_s.readlink(u,function(M,O){Cs||(n[R]=O),T(M,O)})})}function T(x,_,R){if(x)return i(x);var k=Pn.resolve(f,_);r&&(r[R]=k),b(k)}function b(x){e=Pn.resolve(x,e.slice(o)),p()}}});var Cy=g((_Re,D1)=>{c();D1.exports=Is;Is.realpath=Is;Is.sync=_y;Is.realpathSync=_y;Is.monkeypatch=d9;Is.unmonkeypatch=m9;var ka=K("fs"),Ay=ka.realpath,wy=ka.realpathSync,h9=process.version,I1=/^v[0-5]\./.test(h9),O1=C1();function N1(t){return t&&t.syscall==="realpath"&&(t.code==="ELOOP"||t.code==="ENOMEM"||t.code==="ENAMETOOLONG")}function Is(t,e,r){if(I1)return Ay(t,e,r);typeof e=="function"&&(r=e,e=null),Ay(t,e,function(i,s){N1(i)?O1.realpath(t,e,r):r(i,s)})}function _y(t,e){if(I1)return wy(t,e);try{return wy(t,e)}catch(r){if(N1(r))return O1.realpathSync(t,e);throw r}}function d9(){ka.realpath=Is,ka.realpathSync=_y}function m9(){ka.realpath=Ay,ka.realpathSync=wy}});var k1=g((IRe,L1)=>{c();L1.exports=function(t,e){for(var r=[],i=0;i<t.length;i++){var s=e(t[i],i);y9(s)?r.push.apply(r,s):r.push(s)}return r};var y9=Array.isArray||function(t){return Object.prototype.toString.call(t)==="[object Array]"}});var j1=g((NRe,B1)=>{"use strict";c();B1.exports=M1;function M1(t,e,r){t instanceof RegExp&&(t=R1(t,r)),e instanceof RegExp&&(e=R1(e,r));var i=F1(t,e,r);return i&&{start:i[0],end:i[1],pre:r.slice(0,i[0]),body:r.slice(i[0]+t.length,i[1]),post:r.slice(i[1]+e.length)}}function R1(t,e){var r=e.match(t);return r?r[0]:null}M1.range=F1;function F1(t,e,r){var i,s,n,a,o,l=r.indexOf(t),u=r.indexOf(e,l+1),f=l;if(l>=0&&u>0){if(t===e)return[l,u];for(i=[],n=r.length;f>=0&&!o;)f==l?(i.push(f),l=r.indexOf(t,f+1)):i.length==1?o=[i.pop(),u]:(s=i.pop(),s<n&&(n=s,a=u),u=r.indexOf(e,f+1)),f=l<u&&l>=0?l:u;i.length&&(o=[n,a])}return o}});var G1=g((LRe,W1)=>{c();var g9=k1(),q1=j1();W1.exports=E9;var U1="\0SLASH"+Math.random()+"\0",$1="\0OPEN"+Math.random()+"\0",Oy="\0CLOSE"+Math.random()+"\0",V1="\0COMMA"+Math.random()+"\0",K1="\0PERIOD"+Math.random()+"\0";function Iy(t){return parseInt(t,10)==t?parseInt(t,10):t.charCodeAt(0)}function S9(t){return t.split("\\\\").join(U1).split("\\{").join($1).split("\\}").join(Oy).split("\\,").join(V1).split("\\.").join(K1)}function T9(t){return t.split(U1).join("\\").split($1).join("{").split(Oy).join("}").split(V1).join(",").split(K1).join(".")}function H1(t){if(!t)return[""];var e=[],r=q1("{","}",t);if(!r)return t.split(",");var i=r.pre,s=r.body,n=r.post,a=i.split(",");a[a.length-1]+="{"+s+"}";var o=H1(n);return n.length&&(a[a.length-1]+=o.shift(),a.push.apply(a,o)),e.push.apply(e,a),e}function E9(t){return t?(t.substr(0,2)==="{}"&&(t="\\{\\}"+t.substr(2)),Ra(S9(t),!0).map(T9)):[]}function b9(t){return"{"+t+"}"}function x9(t){return/^-?0\d/.test(t)}function P9(t,e){return t<=e}function v9(t,e){return t>=e}function Ra(t,e){var r=[],i=q1("{","}",t);if(!i||/\$$/.test(i.pre))return[t];var s=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(i.body),n=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(i.body),a=s||n,o=i.body.indexOf(",")>=0;if(!a&&!o)return i.post.match(/,.*\}/)?(t=i.pre+"{"+i.body+Oy+i.post,Ra(t)):[t];var l;if(a)l=i.body.split(/\.\./);else if(l=H1(i.body),l.length===1&&(l=Ra(l[0],!1).map(b9),l.length===1)){var f=i.post.length?Ra(i.post,!1):[""];return f.map(function(B){return i.pre+l[0]+B})}var u=i.pre,f=i.post.length?Ra(i.post,!1):[""],p;if(a){var h=Iy(l[0]),d=Iy(l[1]),T=Math.max(l[0].length,l[1].length),b=l.length==3?Math.abs(Iy(l[2])):1,x=P9,_=d<h;_&&(b*=-1,x=v9);var R=l.some(x9);p=[];for(var k=h;x(k,d);k+=b){var M;if(n)M=String.fromCharCode(k),M==="\\"&&(M="");else if(M=String(k),R){var O=T-M.length;if(O>0){var L=new Array(O+1).join("0");k<0?M="-"+L+M.slice(1):M=L+M}}p.push(M)}}else p=g9(l,function(X){return Ra(X,!1)});for(var F=0;F<p.length;F++)for(var H=0;H<f.length;H++){var V=u+p[F]+f[H];(!e||a||V)&&r.push(V)}return r}});var df=g((RRe,Q1)=>{c();Q1.exports=vr;vr.Minimatch=Nt;var yl=function(){try{return K("path")}catch{}}()||{sep:"/"};vr.sep=yl.sep;var Ly=vr.GLOBSTAR=Nt.GLOBSTAR={},A9=G1(),Y1={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},Ny="[^/]",Dy=Ny+"*?",w9="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",_9="(?:(?!(?:\\/|^)\\.).)*?",X1=C9("().*{}+?[]^$\\!");function C9(t){return t.split("").reduce(function(e,r){return e[r]=!0,e},{})}var z1=/\/+/;vr.filter=I9;function I9(t,e){return e=e||{},function(r,i,s){return vr(r,t,e)}}function Os(t,e){e=e||{};var r={};return Object.keys(t).forEach(function(i){r[i]=t[i]}),Object.keys(e).forEach(function(i){r[i]=e[i]}),r}vr.defaults=function(t){if(!t||typeof t!="object"||!Object.keys(t).length)return vr;var e=vr,r=function(s,n,a){return e(s,n,Os(t,a))};return r.Minimatch=function(s,n){return new e.Minimatch(s,Os(t,n))},r.Minimatch.defaults=function(s){return e.defaults(Os(t,s)).Minimatch},r.filter=function(s,n){return e.filter(s,Os(t,n))},r.defaults=function(s){return e.defaults(Os(t,s))},r.makeRe=function(s,n){return e.makeRe(s,Os(t,n))},r.braceExpand=function(s,n){return e.braceExpand(s,Os(t,n))},r.match=function(i,s,n){return e.match(i,s,Os(t,n))},r};Nt.defaults=function(t){return vr.defaults(t).Minimatch};function vr(t,e,r){return hf(e),r||(r={}),!r.nocomment&&e.charAt(0)==="#"?!1:new Nt(e,r).match(t)}function Nt(t,e){if(!(this instanceof Nt))return new Nt(t,e);hf(t),e||(e={}),t=t.trim(),!e.allowWindowsEscape&&yl.sep!=="/"&&(t=t.split(yl.sep).join("/")),this.options=e,this.set=[],this.pattern=t,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.partial=!!e.partial,this.make()}Nt.prototype.debug=function(){};Nt.prototype.make=O9;function O9(){var t=this.pattern,e=this.options;if(!e.nocomment&&t.charAt(0)==="#"){this.comment=!0;return}if(!t){this.empty=!0;return}this.parseNegate();var r=this.globSet=this.braceExpand();e.debug&&(this.debug=function(){console.error.apply(console,arguments)}),this.debug(this.pattern,r),r=this.globParts=r.map(function(i){return i.split(z1)}),this.debug(this.pattern,r),r=r.map(function(i,s,n){return i.map(this.parse,this)},this),this.debug(this.pattern,r),r=r.filter(function(i){return i.indexOf(!1)===-1}),this.debug(this.pattern,r),this.set=r}Nt.prototype.parseNegate=N9;function N9(){var t=this.pattern,e=!1,r=this.options,i=0;if(!r.nonegate){for(var s=0,n=t.length;s<n&&t.charAt(s)==="!";s++)e=!e,i++;i&&(this.pattern=t.substr(i)),this.negate=e}}vr.braceExpand=function(t,e){return J1(t,e)};Nt.prototype.braceExpand=J1;function J1(t,e){return e||(this instanceof Nt?e=this.options:e={}),t=typeof t>"u"?this.pattern:t,hf(t),e.nobrace||!/\{(?:(?!\{).)*\}/.test(t)?[t]:A9(t)}var D9=1024*64,hf=function(t){if(typeof t!="string")throw new TypeError("invalid pattern");if(t.length>D9)throw new TypeError("pattern is too long")};Nt.prototype.parse=L9;var pf={};function L9(t,e){hf(t);var r=this.options;if(t==="**")if(r.noglobstar)t="*";else return Ly;if(t==="")return"";var i="",s=!!r.nocase,n=!1,a=[],o=[],l,u=!1,f=-1,p=-1,h=t.charAt(0)==="."?"":r.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",d=this;function T(){if(l){switch(l){case"*":i+=Dy,s=!0;break;case"?":i+=Ny,s=!0;break;default:i+="\\"+l;break}d.debug("clearStateChar %j %j",l,i),l=!1}}for(var b=0,x=t.length,_;b<x&&(_=t.charAt(b));b++){if(this.debug("%s %s %s %j",t,b,i,_),n&&X1[_]){i+="\\"+_,n=!1;continue}switch(_){case"/":return!1;case"\\":T(),n=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s %s %s %j <-- stateChar",t,b,i,_),u){this.debug(" in class"),_==="!"&&b===p+1&&(_="^"),i+=_;continue}d.debug("call clearStateChar %j",l),T(),l=_,r.noext&&T();continue;case"(":if(u){i+="(";continue}if(!l){i+="\\(";continue}a.push({type:l,start:b-1,reStart:i.length,open:Y1[l].open,close:Y1[l].close}),i+=l==="!"?"(?:(?!(?:":"(?:",this.debug("plType %j %j",l,i),l=!1;continue;case")":if(u||!a.length){i+="\\)";continue}T(),s=!0;var R=a.pop();i+=R.close,R.type==="!"&&o.push(R),R.reEnd=i.length;continue;case"|":if(u||!a.length||n){i+="\\|",n=!1;continue}T(),i+="|";continue;case"[":if(T(),u){i+="\\"+_;continue}u=!0,p=b,f=i.length,i+=_;continue;case"]":if(b===p+1||!u){i+="\\"+_,n=!1;continue}var k=t.substring(p+1,b);try{RegExp("["+k+"]")}catch{var M=this.parse(k,pf);i=i.substr(0,f)+"\\["+M[0]+"\\]",s=s||M[1],u=!1;continue}s=!0,u=!1,i+=_;continue;default:T(),n?n=!1:X1[_]&&!(_==="^"&&u)&&(i+="\\"),i+=_}}for(u&&(k=t.substr(p+1),M=this.parse(k,pf),i=i.substr(0,f)+"\\["+M[0],s=s||M[1]),R=a.pop();R;R=a.pop()){var O=i.slice(R.reStart+R.open.length);this.debug("setting tail",i,R),O=O.replace(/((?:\\{2}){0,64})(\\?)\|/g,function(st,ft,Cr){return Cr||(Cr="\\"),ft+ft+Cr+"|"}),this.debug(`tail=%j
22
+ %s`,O,O,R,i);var L=R.type==="*"?Dy:R.type==="?"?Ny:"\\"+R.type;s=!0,i=i.slice(0,R.reStart)+L+"\\("+O}T(),n&&(i+="\\\\");var F=!1;switch(i.charAt(0)){case"[":case".":case"(":F=!0}for(var H=o.length-1;H>-1;H--){var V=o[H],X=i.slice(0,V.reStart),B=i.slice(V.reStart,V.reEnd-8),oe=i.slice(V.reEnd-8,V.reEnd),me=i.slice(V.reEnd);oe+=me;var _e=X.split("(").length-1,q=me;for(b=0;b<_e;b++)q=q.replace(/\)[+*?]?/,"");me=q;var $="";me===""&&e!==pf&&($="$");var ge=X+B+me+$+oe;i=ge}if(i!==""&&s&&(i="(?=.)"+i),F&&(i=h+i),e===pf)return[i,s];if(!s)return R9(t);var he=r.nocase?"i":"";try{var Ee=new RegExp("^"+i+"$",he)}catch{return new RegExp("$.")}return Ee._glob=t,Ee._src=i,Ee}vr.makeRe=function(t,e){return new Nt(t,e||{}).makeRe()};Nt.prototype.makeRe=k9;function k9(){if(this.regexp||this.regexp===!1)return this.regexp;var t=this.set;if(!t.length)return this.regexp=!1,this.regexp;var e=this.options,r=e.noglobstar?Dy:e.dot?w9:_9,i=e.nocase?"i":"",s=t.map(function(n){return n.map(function(a){return a===Ly?r:typeof a=="string"?M9(a):a._src}).join("\\/")}).join("|");s="^(?:"+s+")$",this.negate&&(s="^(?!"+s+").*$");try{this.regexp=new RegExp(s,i)}catch{this.regexp=!1}return this.regexp}vr.match=function(t,e,r){r=r||{};var i=new Nt(e,r);return t=t.filter(function(s){return i.match(s)}),i.options.nonull&&!t.length&&t.push(e),t};Nt.prototype.match=function(e,r){if(typeof r>"u"&&(r=this.partial),this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;var i=this.options;yl.sep!=="/"&&(e=e.split(yl.sep).join("/")),e=e.split(z1),this.debug(this.pattern,"split",e);var s=this.set;this.debug(this.pattern,"set",s);var n,a;for(a=e.length-1;a>=0&&(n=e[a],!n);a--);for(a=0;a<s.length;a++){var o=s[a],l=e;i.matchBase&&o.length===1&&(l=[n]);var u=this.matchOne(l,o,r);if(u)return i.flipNegate?!0:!this.negate}return i.flipNegate?!1:this.negate};Nt.prototype.matchOne=function(t,e,r){var i=this.options;this.debug("matchOne",{this:this,file:t,pattern:e}),this.debug("matchOne",t.length,e.length);for(var s=0,n=0,a=t.length,o=e.length;s<a&&n<o;s++,n++){this.debug("matchOne loop");var l=e[n],u=t[s];if(this.debug(e,l,u),l===!1)return!1;if(l===Ly){this.debug("GLOBSTAR",[e,l,u]);var f=s,p=n+1;if(p===o){for(this.debug("** at the end");s<a;s++)if(t[s]==="."||t[s]===".."||!i.dot&&t[s].charAt(0)===".")return!1;return!0}for(;f<a;){var h=t[f];if(this.debug(`
23
+ globstar while`,t,f,e,p,h),this.matchOne(t.slice(f),e.slice(p),r))return this.debug("globstar found match!",f,a,h),!0;if(h==="."||h===".."||!i.dot&&h.charAt(0)==="."){this.debug("dot detected!",t,f,e,p);break}this.debug("globstar swallow a segment, and continue"),f++}return!!(r&&(this.debug(`
24
+ >>> no match, partial?`,t,f,e,p),f===a))}var d;if(typeof l=="string"?(d=u===l,this.debug("string match",l,u,d)):(d=u.match(l),this.debug("pattern match",l,u,d)),!d)return!1}if(s===a&&n===o)return!0;if(s===a)return r;if(n===o)return s===a-1&&t[s]==="";throw new Error("wtf?")};function R9(t){return t.replace(/\\(.)/g,"$1")}function M9(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}});var Z1=g((FRe,ky)=>{c();typeof Object.create=="function"?ky.exports=function(e,r){r&&(e.super_=r,e.prototype=Object.create(r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:ky.exports=function(e,r){if(r){e.super_=r;var i=function(){};i.prototype=r.prototype,e.prototype=new i,e.prototype.constructor=e}}});var eC=g((jRe,My)=>{c();try{if(Ry=K("util"),typeof Ry.inherits!="function")throw"";My.exports=Ry.inherits}catch{My.exports=Z1()}var Ry});var yf=g((URe,mf)=>{"use strict";c();function tC(t){return t.charAt(0)==="/"}function rC(t){var e=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/,r=e.exec(t),i=r[1]||"",s=!!(i&&i.charAt(1)!==":");return!!(r[2]||s)}mf.exports=process.platform==="win32"?rC:tC;mf.exports.posix=tC;mf.exports.win32=rC});var By=g(Ns=>{c();Ns.setopts=$9;Ns.ownProp=iC;Ns.makeAbs=gl;Ns.finish=V9;Ns.mark=K9;Ns.isIgnored=nC;Ns.childrenIgnored=H9;function iC(t,e){return Object.prototype.hasOwnProperty.call(t,e)}var F9=K("fs"),Ma=K("path"),B9=df(),sC=yf(),Fy=B9.Minimatch;function j9(t,e){return t.localeCompare(e,"en")}function q9(t,e){t.ignore=e.ignore||[],Array.isArray(t.ignore)||(t.ignore=[t.ignore]),t.ignore.length&&(t.ignore=t.ignore.map(U9))}function U9(t){var e=null;if(t.slice(-3)==="/**"){var r=t.replace(/(\/\*\*)+$/,"");e=new Fy(r,{dot:!0})}return{matcher:new Fy(t,{dot:!0}),gmatcher:e}}function $9(t,e,r){if(r||(r={}),r.matchBase&&e.indexOf("/")===-1){if(r.noglobstar)throw new Error("base matching requires globstar");e="**/"+e}t.silent=!!r.silent,t.pattern=e,t.strict=r.strict!==!1,t.realpath=!!r.realpath,t.realpathCache=r.realpathCache||Object.create(null),t.follow=!!r.follow,t.dot=!!r.dot,t.mark=!!r.mark,t.nodir=!!r.nodir,t.nodir&&(t.mark=!0),t.sync=!!r.sync,t.nounique=!!r.nounique,t.nonull=!!r.nonull,t.nosort=!!r.nosort,t.nocase=!!r.nocase,t.stat=!!r.stat,t.noprocess=!!r.noprocess,t.absolute=!!r.absolute,t.fs=r.fs||F9,t.maxLength=r.maxLength||1/0,t.cache=r.cache||Object.create(null),t.statCache=r.statCache||Object.create(null),t.symlinks=r.symlinks||Object.create(null),q9(t,r),t.changedCwd=!1;var i=process.cwd();iC(r,"cwd")?(t.cwd=Ma.resolve(r.cwd),t.changedCwd=t.cwd!==i):t.cwd=i,t.root=r.root||Ma.resolve(t.cwd,"/"),t.root=Ma.resolve(t.root),process.platform==="win32"&&(t.root=t.root.replace(/\\/g,"/")),t.cwdAbs=sC(t.cwd)?t.cwd:gl(t,t.cwd),process.platform==="win32"&&(t.cwdAbs=t.cwdAbs.replace(/\\/g,"/")),t.nomount=!!r.nomount,r.nonegate=!0,r.nocomment=!0,r.allowWindowsEscape=!1,t.minimatch=new Fy(e,r),t.options=t.minimatch.options}function V9(t){for(var e=t.nounique,r=e?[]:Object.create(null),i=0,s=t.matches.length;i<s;i++){var n=t.matches[i];if(!n||Object.keys(n).length===0){if(t.nonull){var a=t.minimatch.globSet[i];e?r.push(a):r[a]=!0}}else{var o=Object.keys(n);e?r.push.apply(r,o):o.forEach(function(l){r[l]=!0})}}if(e||(r=Object.keys(r)),t.nosort||(r=r.sort(j9)),t.mark){for(var i=0;i<r.length;i++)r[i]=t._mark(r[i]);t.nodir&&(r=r.filter(function(l){var u=!/\/$/.test(l),f=t.cache[l]||t.cache[gl(t,l)];return u&&f&&(u=f!=="DIR"&&!Array.isArray(f)),u}))}t.ignore.length&&(r=r.filter(function(l){return!nC(t,l)})),t.found=r}function K9(t,e){var r=gl(t,e),i=t.cache[r],s=e;if(i){var n=i==="DIR"||Array.isArray(i),a=e.slice(-1)==="/";if(n&&!a?s+="/":!n&&a&&(s=s.slice(0,-1)),s!==e){var o=gl(t,s);t.statCache[o]=t.statCache[r],t.cache[o]=t.cache[r]}}return s}function gl(t,e){var r=e;return e.charAt(0)==="/"?r=Ma.join(t.root,e):sC(e)||e===""?r=e:t.changedCwd?r=Ma.resolve(t.cwd,e):r=Ma.resolve(e),process.platform==="win32"&&(r=r.replace(/\\/g,"/")),r}function nC(t,e){return t.ignore.length?t.ignore.some(function(r){return r.matcher.match(e)||!!(r.gmatcher&&r.gmatcher.match(e))}):!1}function H9(t,e){return t.ignore.length?t.ignore.some(function(r){return!!(r.gmatcher&&r.gmatcher.match(e))}):!1}});var cC=g((YRe,uC)=>{c();uC.exports=lC;lC.GlobSync=Et;var W9=Cy(),aC=df(),HRe=aC.Minimatch,WRe=Uy().Glob,GRe=K("util"),jy=K("path"),oC=K("assert"),gf=yf(),vn=By(),G9=vn.setopts,qy=vn.ownProp,Y9=vn.childrenIgnored,X9=vn.isIgnored;function lC(t,e){if(typeof e=="function"||arguments.length===3)throw new TypeError(`callback provided to sync glob
25
+ See: https://github.com/isaacs/node-glob/issues/167`);return new Et(t,e).found}function Et(t,e){if(!t)throw new Error("must provide pattern");if(typeof e=="function"||arguments.length===3)throw new TypeError(`callback provided to sync glob
26
+ See: https://github.com/isaacs/node-glob/issues/167`);if(!(this instanceof Et))return new Et(t,e);if(G9(this,t,e),this.noprocess)return this;var r=this.minimatch.set.length;this.matches=new Array(r);for(var i=0;i<r;i++)this._process(this.minimatch.set[i],i,!1);this._finish()}Et.prototype._finish=function(){if(oC.ok(this instanceof Et),this.realpath){var t=this;this.matches.forEach(function(e,r){var i=t.matches[r]=Object.create(null);for(var s in e)try{s=t._makeAbs(s);var n=W9.realpathSync(s,t.realpathCache);i[n]=!0}catch(a){if(a.syscall==="stat")i[t._makeAbs(s)]=!0;else throw a}})}vn.finish(this)};Et.prototype._process=function(t,e,r){oC.ok(this instanceof Et);for(var i=0;typeof t[i]=="string";)i++;var s;switch(i){case t.length:this._processSimple(t.join("/"),e);return;case 0:s=null;break;default:s=t.slice(0,i).join("/");break}var n=t.slice(i),a;s===null?a=".":((gf(s)||gf(t.map(function(u){return typeof u=="string"?u:"[*]"}).join("/")))&&(!s||!gf(s))&&(s="/"+s),a=s);var o=this._makeAbs(a);if(!Y9(this,a)){var l=n[0]===aC.GLOBSTAR;l?this._processGlobStar(s,a,o,n,e,r):this._processReaddir(s,a,o,n,e,r)}};Et.prototype._processReaddir=function(t,e,r,i,s,n){var a=this._readdir(r,n);if(a){for(var o=i[0],l=!!this.minimatch.negate,u=o._glob,f=this.dot||u.charAt(0)===".",p=[],h=0;h<a.length;h++){var d=a[h];if(d.charAt(0)!=="."||f){var T;l&&!t?T=!d.match(o):T=d.match(o),T&&p.push(d)}}var b=p.length;if(b!==0){if(i.length===1&&!this.mark&&!this.stat){this.matches[s]||(this.matches[s]=Object.create(null));for(var h=0;h<b;h++){var d=p[h];t&&(t.slice(-1)!=="/"?d=t+"/"+d:d=t+d),d.charAt(0)==="/"&&!this.nomount&&(d=jy.join(this.root,d)),this._emitMatch(s,d)}return}i.shift();for(var h=0;h<b;h++){var d=p[h],x;t?x=[t,d]:x=[d],this._process(x.concat(i),s,n)}}}};Et.prototype._emitMatch=function(t,e){if(!X9(this,e)){var r=this._makeAbs(e);if(this.mark&&(e=this._mark(e)),this.absolute&&(e=r),!this.matches[t][e]){if(this.nodir){var i=this.cache[r];if(i==="DIR"||Array.isArray(i))return}this.matches[t][e]=!0,this.stat&&this._stat(e)}}};Et.prototype._readdirInGlobStar=function(t){if(this.follow)return this._readdir(t,!1);var e,r,i;try{r=this.fs.lstatSync(t)}catch(n){if(n.code==="ENOENT")return null}var s=r&&r.isSymbolicLink();return this.symlinks[t]=s,!s&&r&&!r.isDirectory()?this.cache[t]="FILE":e=this._readdir(t,!1),e};Et.prototype._readdir=function(t,e){var r;if(e&&!qy(this.symlinks,t))return this._readdirInGlobStar(t);if(qy(this.cache,t)){var i=this.cache[t];if(!i||i==="FILE")return null;if(Array.isArray(i))return i}try{return this._readdirEntries(t,this.fs.readdirSync(t))}catch(s){return this._readdirError(t,s),null}};Et.prototype._readdirEntries=function(t,e){if(!this.mark&&!this.stat)for(var r=0;r<e.length;r++){var i=e[r];t==="/"?i=t+i:i=t+"/"+i,this.cache[i]=!0}return this.cache[t]=e,e};Et.prototype._readdirError=function(t,e){switch(e.code){case"ENOTSUP":case"ENOTDIR":var r=this._makeAbs(t);if(this.cache[r]="FILE",r===this.cwdAbs){var i=new Error(e.code+" invalid cwd "+this.cwd);throw i.path=this.cwd,i.code=e.code,i}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(t)]=!1;break;default:if(this.cache[this._makeAbs(t)]=!1,this.strict)throw e;this.silent||console.error("glob error",e);break}};Et.prototype._processGlobStar=function(t,e,r,i,s,n){var a=this._readdir(r,n);if(a){var o=i.slice(1),l=t?[t]:[],u=l.concat(o);this._process(u,s,!1);var f=a.length,p=this.symlinks[r];if(!(p&&n))for(var h=0;h<f;h++){var d=a[h];if(!(d.charAt(0)==="."&&!this.dot)){var T=l.concat(a[h],o);this._process(T,s,!0);var b=l.concat(a[h],i);this._process(b,s,!0)}}}};Et.prototype._processSimple=function(t,e){var r=this._stat(t);if(this.matches[e]||(this.matches[e]=Object.create(null)),!!r){if(t&&gf(t)&&!this.nomount){var i=/[\/\\]$/.test(t);t.charAt(0)==="/"?t=jy.join(this.root,t):(t=jy.resolve(this.root,t),i&&(t+="/"))}process.platform==="win32"&&(t=t.replace(/\\/g,"/")),this._emitMatch(e,t)}};Et.prototype._stat=function(t){var e=this._makeAbs(t),r=t.slice(-1)==="/";if(t.length>this.maxLength)return!1;if(!this.stat&&qy(this.cache,e)){var a=this.cache[e];if(Array.isArray(a)&&(a="DIR"),!r||a==="DIR")return a;if(r&&a==="FILE")return!1}var i,s=this.statCache[e];if(!s){var n;try{n=this.fs.lstatSync(e)}catch(o){if(o&&(o.code==="ENOENT"||o.code==="ENOTDIR"))return this.statCache[e]=!1,!1}if(n&&n.isSymbolicLink())try{s=this.fs.statSync(e)}catch{s=n}else s=n}this.statCache[e]=s;var a=!0;return s&&(a=s.isDirectory()?"DIR":"FILE"),this.cache[e]=this.cache[e]||a,r&&a==="FILE"?!1:a};Et.prototype._mark=function(t){return vn.mark(this,t)};Et.prototype._makeAbs=function(t){return vn.makeAbs(this,t)}});var $y=g((zRe,pC)=>{c();pC.exports=fC;function fC(t,e){if(t&&e)return fC(t)(e);if(typeof t!="function")throw new TypeError("need wrapper function");return Object.keys(t).forEach(function(i){r[i]=t[i]}),r;function r(){for(var i=new Array(arguments.length),s=0;s<i.length;s++)i[s]=arguments[s];var n=t.apply(this,i),a=i[i.length-1];return typeof n=="function"&&n!==a&&Object.keys(a).forEach(function(o){n[o]=a[o]}),n}}});var Ky=g((QRe,Vy)=>{c();var hC=$y();Vy.exports=hC(Sf);Vy.exports.strict=hC(dC);Sf.proto=Sf(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return Sf(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return dC(this)},configurable:!0})});function Sf(t){var e=function(){return e.called?e.value:(e.called=!0,e.value=t.apply(this,arguments))};return e.called=!1,e}function dC(t){var e=function(){if(e.called)throw new Error(e.onceError);return e.called=!0,e.value=t.apply(this,arguments)},r=t.name||"Function wrapped with `once`";return e.onceError=r+" shouldn't be called more than once",e.called=!1,e}});var yC=g((eMe,mC)=>{c();var z9=$y(),Sl=Object.create(null),J9=Ky();mC.exports=z9(Q9);function Q9(t,e){return Sl[t]?(Sl[t].push(e),null):(Sl[t]=[e],Z9(t))}function Z9(t){return J9(function e(){var r=Sl[t],i=r.length,s=eU(arguments);try{for(var n=0;n<i;n++)r[n].apply(null,s)}finally{r.length>i?(r.splice(0,i),process.nextTick(function(){e.apply(null,s)})):delete Sl[t]}})}function eU(t){for(var e=t.length,r=[],i=0;i<e;i++)r[i]=t[i];return r}});var Uy=g((sMe,SC)=>{c();SC.exports=An;var tU=Cy(),gC=df(),rMe=gC.Minimatch,rU=eC(),iU=K("events").EventEmitter,Hy=K("path"),Wy=K("assert"),Tl=yf(),Yy=cC(),wn=By(),sU=wn.setopts,Gy=wn.ownProp,Xy=yC(),iMe=K("util"),nU=wn.childrenIgnored,aU=wn.isIgnored,oU=Ky();function An(t,e,r){if(typeof e=="function"&&(r=e,e={}),e||(e={}),e.sync){if(r)throw new TypeError("callback provided to sync glob");return Yy(t,e)}return new Ge(t,e,r)}An.sync=Yy;var lU=An.GlobSync=Yy.GlobSync;An.glob=An;function uU(t,e){if(e===null||typeof e!="object")return t;for(var r=Object.keys(e),i=r.length;i--;)t[r[i]]=e[r[i]];return t}An.hasMagic=function(t,e){var r=uU({},e);r.noprocess=!0;var i=new Ge(t,r),s=i.minimatch.set;if(!t)return!1;if(s.length>1)return!0;for(var n=0;n<s[0].length;n++)if(typeof s[0][n]!="string")return!0;return!1};An.Glob=Ge;rU(Ge,iU);function Ge(t,e,r){if(typeof e=="function"&&(r=e,e=null),e&&e.sync){if(r)throw new TypeError("callback provided to sync glob");return new lU(t,e)}if(!(this instanceof Ge))return new Ge(t,e,r);sU(this,t,e),this._didRealPath=!1;var i=this.minimatch.set.length;this.matches=new Array(i),typeof r=="function"&&(r=oU(r),this.on("error",r),this.on("end",function(l){r(null,l)}));var s=this;if(this._processing=0,this._emitQueue=[],this._processQueue=[],this.paused=!1,this.noprocess)return this;if(i===0)return o();for(var n=!0,a=0;a<i;a++)this._process(this.minimatch.set[a],a,!1,o);n=!1;function o(){--s._processing,s._processing<=0&&(n?process.nextTick(function(){s._finish()}):s._finish())}}Ge.prototype._finish=function(){if(Wy(this instanceof Ge),!this.aborted){if(this.realpath&&!this._didRealpath)return this._realpath();wn.finish(this),this.emit("end",this.found)}};Ge.prototype._realpath=function(){if(this._didRealpath)return;this._didRealpath=!0;var t=this.matches.length;if(t===0)return this._finish();for(var e=this,r=0;r<this.matches.length;r++)this._realpathSet(r,i);function i(){--t===0&&e._finish()}};Ge.prototype._realpathSet=function(t,e){var r=this.matches[t];if(!r)return e();var i=Object.keys(r),s=this,n=i.length;if(n===0)return e();var a=this.matches[t]=Object.create(null);i.forEach(function(o,l){o=s._makeAbs(o),tU.realpath(o,s.realpathCache,function(u,f){u?u.syscall==="stat"?a[o]=!0:s.emit("error",u):a[f]=!0,--n===0&&(s.matches[t]=a,e())})})};Ge.prototype._mark=function(t){return wn.mark(this,t)};Ge.prototype._makeAbs=function(t){return wn.makeAbs(this,t)};Ge.prototype.abort=function(){this.aborted=!0,this.emit("abort")};Ge.prototype.pause=function(){this.paused||(this.paused=!0,this.emit("pause"))};Ge.prototype.resume=function(){if(this.paused){if(this.emit("resume"),this.paused=!1,this._emitQueue.length){var t=this._emitQueue.slice(0);this._emitQueue.length=0;for(var e=0;e<t.length;e++){var r=t[e];this._emitMatch(r[0],r[1])}}if(this._processQueue.length){var i=this._processQueue.slice(0);this._processQueue.length=0;for(var e=0;e<i.length;e++){var s=i[e];this._processing--,this._process(s[0],s[1],s[2],s[3])}}}};Ge.prototype._process=function(t,e,r,i){if(Wy(this instanceof Ge),Wy(typeof i=="function"),!this.aborted){if(this._processing++,this.paused){this._processQueue.push([t,e,r,i]);return}for(var s=0;typeof t[s]=="string";)s++;var n;switch(s){case t.length:this._processSimple(t.join("/"),e,i);return;case 0:n=null;break;default:n=t.slice(0,s).join("/");break}var a=t.slice(s),o;n===null?o=".":((Tl(n)||Tl(t.map(function(f){return typeof f=="string"?f:"[*]"}).join("/")))&&(!n||!Tl(n))&&(n="/"+n),o=n);var l=this._makeAbs(o);if(nU(this,o))return i();var u=a[0]===gC.GLOBSTAR;u?this._processGlobStar(n,o,l,a,e,r,i):this._processReaddir(n,o,l,a,e,r,i)}};Ge.prototype._processReaddir=function(t,e,r,i,s,n,a){var o=this;this._readdir(r,n,function(l,u){return o._processReaddir2(t,e,r,i,s,n,u,a)})};Ge.prototype._processReaddir2=function(t,e,r,i,s,n,a,o){if(!a)return o();for(var l=i[0],u=!!this.minimatch.negate,f=l._glob,p=this.dot||f.charAt(0)===".",h=[],d=0;d<a.length;d++){var T=a[d];if(T.charAt(0)!=="."||p){var b;u&&!t?b=!T.match(l):b=T.match(l),b&&h.push(T)}}var x=h.length;if(x===0)return o();if(i.length===1&&!this.mark&&!this.stat){this.matches[s]||(this.matches[s]=Object.create(null));for(var d=0;d<x;d++){var T=h[d];t&&(t!=="/"?T=t+"/"+T:T=t+T),T.charAt(0)==="/"&&!this.nomount&&(T=Hy.join(this.root,T)),this._emitMatch(s,T)}return o()}i.shift();for(var d=0;d<x;d++){var T=h[d],_;t&&(t!=="/"?T=t+"/"+T:T=t+T),this._process([T].concat(i),s,n,o)}o()};Ge.prototype._emitMatch=function(t,e){if(!this.aborted&&!aU(this,e)){if(this.paused){this._emitQueue.push([t,e]);return}var r=Tl(e)?e:this._makeAbs(e);if(this.mark&&(e=this._mark(e)),this.absolute&&(e=r),!this.matches[t][e]){if(this.nodir){var i=this.cache[r];if(i==="DIR"||Array.isArray(i))return}this.matches[t][e]=!0;var s=this.statCache[r];s&&this.emit("stat",e,s),this.emit("match",e)}}};Ge.prototype._readdirInGlobStar=function(t,e){if(this.aborted)return;if(this.follow)return this._readdir(t,!1,e);var r="lstat\0"+t,i=this,s=Xy(r,n);s&&i.fs.lstat(t,s);function n(a,o){if(a&&a.code==="ENOENT")return e();var l=o&&o.isSymbolicLink();i.symlinks[t]=l,!l&&o&&!o.isDirectory()?(i.cache[t]="FILE",e()):i._readdir(t,!1,e)}};Ge.prototype._readdir=function(t,e,r){if(!this.aborted&&(r=Xy("readdir\0"+t+"\0"+e,r),!!r)){if(e&&!Gy(this.symlinks,t))return this._readdirInGlobStar(t,r);if(Gy(this.cache,t)){var i=this.cache[t];if(!i||i==="FILE")return r();if(Array.isArray(i))return r(null,i)}var s=this;s.fs.readdir(t,cU(this,t,r))}};function cU(t,e,r){return function(i,s){i?t._readdirError(e,i,r):t._readdirEntries(e,s,r)}}Ge.prototype._readdirEntries=function(t,e,r){if(!this.aborted){if(!this.mark&&!this.stat)for(var i=0;i<e.length;i++){var s=e[i];t==="/"?s=t+s:s=t+"/"+s,this.cache[s]=!0}return this.cache[t]=e,r(null,e)}};Ge.prototype._readdirError=function(t,e,r){if(!this.aborted){switch(e.code){case"ENOTSUP":case"ENOTDIR":var i=this._makeAbs(t);if(this.cache[i]="FILE",i===this.cwdAbs){var s=new Error(e.code+" invalid cwd "+this.cwd);s.path=this.cwd,s.code=e.code,this.emit("error",s),this.abort()}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(t)]=!1;break;default:this.cache[this._makeAbs(t)]=!1,this.strict&&(this.emit("error",e),this.abort()),this.silent||console.error("glob error",e);break}return r()}};Ge.prototype._processGlobStar=function(t,e,r,i,s,n,a){var o=this;this._readdir(r,n,function(l,u){o._processGlobStar2(t,e,r,i,s,n,u,a)})};Ge.prototype._processGlobStar2=function(t,e,r,i,s,n,a,o){if(!a)return o();var l=i.slice(1),u=t?[t]:[],f=u.concat(l);this._process(f,s,!1,o);var p=this.symlinks[r],h=a.length;if(p&&n)return o();for(var d=0;d<h;d++){var T=a[d];if(!(T.charAt(0)==="."&&!this.dot)){var b=u.concat(a[d],l);this._process(b,s,!0,o);var x=u.concat(a[d],i);this._process(x,s,!0,o)}}o()};Ge.prototype._processSimple=function(t,e,r){var i=this;this._stat(t,function(s,n){i._processSimple2(t,e,s,n,r)})};Ge.prototype._processSimple2=function(t,e,r,i,s){if(this.matches[e]||(this.matches[e]=Object.create(null)),!i)return s();if(t&&Tl(t)&&!this.nomount){var n=/[\/\\]$/.test(t);t.charAt(0)==="/"?t=Hy.join(this.root,t):(t=Hy.resolve(this.root,t),n&&(t+="/"))}process.platform==="win32"&&(t=t.replace(/\\/g,"/")),this._emitMatch(e,t),s()};Ge.prototype._stat=function(t,e){var r=this._makeAbs(t),i=t.slice(-1)==="/";if(t.length>this.maxLength)return e();if(!this.stat&&Gy(this.cache,r)){var s=this.cache[r];if(Array.isArray(s)&&(s="DIR"),!i||s==="DIR")return e(null,s);if(i&&s==="FILE")return e()}var n,a=this.statCache[r];if(a!==void 0){if(a===!1)return e(null,a);var o=a.isDirectory()?"DIR":"FILE";return i&&o==="FILE"?e():e(null,o,a)}var l=this,u=Xy("stat\0"+r,f);u&&l.fs.lstat(r,u);function f(p,h){if(h&&h.isSymbolicLink())return l.fs.stat(r,function(d,T){d?l._stat2(t,r,null,h,e):l._stat2(t,r,d,T,e)});l._stat2(t,r,p,h,e)}};Ge.prototype._stat2=function(t,e,r,i,s){if(r&&(r.code==="ENOENT"||r.code==="ENOTDIR"))return this.statCache[e]=!1,s();var n=t.slice(-1)==="/";if(this.statCache[e]=i,e.slice(-1)==="/"&&i&&!i.isDirectory())return s(null,!1,i);var a=!0;return i&&(a=i.isDirectory()?"DIR":"FILE"),this.cache[e]=this.cache[e]||a,n&&a==="FILE"?s():s(null,a,i)}});var wC=g((aMe,AC)=>{c();var Je=K("assert"),xC=K("path"),TC=K("fs"),Fa;try{Fa=Uy()}catch{}var fU={nosort:!0,silent:!0},zy=0,El=process.platform==="win32",PC=t=>{if(["unlink","chmod","stat","lstat","rmdir","readdir"].forEach(r=>{t[r]=t[r]||TC[r],r=r+"Sync",t[r]=t[r]||TC[r]}),t.maxBusyTries=t.maxBusyTries||3,t.emfileWait=t.emfileWait||1e3,t.glob===!1&&(t.disableGlob=!0),t.disableGlob!==!0&&Fa===void 0)throw Error("glob dependency not found, set `options.disableGlob = true` if intentional");t.disableGlob=t.disableGlob||!1,t.glob=t.glob||fU},Qy=(t,e,r)=>{typeof e=="function"&&(r=e,e={}),Je(t,"rimraf: missing path"),Je.equal(typeof t,"string","rimraf: path should be a string"),Je.equal(typeof r,"function","rimraf: callback function required"),Je(e,"rimraf: invalid options argument provided"),Je.equal(typeof e,"object","rimraf: options should be object"),PC(e);let i=0,s=null,n=0,a=l=>{s=s||l,--n===0&&r(s)},o=(l,u)=>{if(l)return r(l);if(n=u.length,n===0)return r();u.forEach(f=>{let p=h=>{if(h){if((h.code==="EBUSY"||h.code==="ENOTEMPTY"||h.code==="EPERM")&&i<e.maxBusyTries)return i++,setTimeout(()=>Jy(f,e,p),i*100);if(h.code==="EMFILE"&&zy<e.emfileWait)return setTimeout(()=>Jy(f,e,p),zy++);h.code==="ENOENT"&&(h=null)}zy=0,a(h)};Jy(f,e,p)})};if(e.disableGlob||!Fa.hasMagic(t))return o(null,[t]);e.lstat(t,(l,u)=>{if(!l)return o(null,[t]);Fa(t,e.glob,o)})},Jy=(t,e,r)=>{Je(t),Je(e),Je(typeof r=="function"),e.lstat(t,(i,s)=>{if(i&&i.code==="ENOENT")return r(null);if(i&&i.code==="EPERM"&&El&&EC(t,e,i,r),s&&s.isDirectory())return Tf(t,e,i,r);e.unlink(t,n=>{if(n){if(n.code==="ENOENT")return r(null);if(n.code==="EPERM")return El?EC(t,e,n,r):Tf(t,e,n,r);if(n.code==="EISDIR")return Tf(t,e,n,r)}return r(n)})})},EC=(t,e,r,i)=>{Je(t),Je(e),Je(typeof i=="function"),e.chmod(t,438,s=>{s?i(s.code==="ENOENT"?null:r):e.stat(t,(n,a)=>{n?i(n.code==="ENOENT"?null:r):a.isDirectory()?Tf(t,e,r,i):e.unlink(t,i)})})},bC=(t,e,r)=>{Je(t),Je(e);try{e.chmodSync(t,438)}catch(s){if(s.code==="ENOENT")return;throw r}let i;try{i=e.statSync(t)}catch(s){if(s.code==="ENOENT")return;throw r}i.isDirectory()?Ef(t,e,r):e.unlinkSync(t)},Tf=(t,e,r,i)=>{Je(t),Je(e),Je(typeof i=="function"),e.rmdir(t,s=>{s&&(s.code==="ENOTEMPTY"||s.code==="EEXIST"||s.code==="EPERM")?pU(t,e,i):s&&s.code==="ENOTDIR"?i(r):i(s)})},pU=(t,e,r)=>{Je(t),Je(e),Je(typeof r=="function"),e.readdir(t,(i,s)=>{if(i)return r(i);let n=s.length;if(n===0)return e.rmdir(t,r);let a;s.forEach(o=>{Qy(xC.join(t,o),e,l=>{if(!a){if(l)return r(a=l);--n===0&&e.rmdir(t,r)}})})})},vC=(t,e)=>{e=e||{},PC(e),Je(t,"rimraf: missing path"),Je.equal(typeof t,"string","rimraf: path should be a string"),Je(e,"rimraf: missing options"),Je.equal(typeof e,"object","rimraf: options should be object");let r;if(e.disableGlob||!Fa.hasMagic(t))r=[t];else try{e.lstatSync(t),r=[t]}catch{r=Fa.sync(t,e.glob)}if(r.length)for(let i=0;i<r.length;i++){let s=r[i],n;try{n=e.lstatSync(s)}catch(a){if(a.code==="ENOENT")return;a.code==="EPERM"&&El&&bC(s,e,a)}try{n&&n.isDirectory()?Ef(s,e,null):e.unlinkSync(s)}catch(a){if(a.code==="ENOENT")return;if(a.code==="EPERM")return El?bC(s,e,a):Ef(s,e,a);if(a.code!=="EISDIR")throw a;Ef(s,e,a)}}},Ef=(t,e,r)=>{Je(t),Je(e);try{e.rmdirSync(t)}catch(i){if(i.code==="ENOENT")return;if(i.code==="ENOTDIR")throw r;(i.code==="ENOTEMPTY"||i.code==="EEXIST"||i.code==="EPERM")&&hU(t,e)}},hU=(t,e)=>{Je(t),Je(e),e.readdirSync(t).forEach(s=>vC(xC.join(t,s),e));let r=El?100:1,i=0;do{let s=!0;try{let n=e.rmdirSync(t,e);return s=!1,n}finally{if(++i<r&&s)continue}}while(!0)};AC.exports=Qy;Qy.sync=vC});var NC=g((lMe,OC)=>{c();var Fr=vd(),_n=K("path"),{homedir:dU,tmpdir:mU}=K("os"),yU=K("https"),gU=K("child_process"),SU=K("url"),TU=_1(),EU=wC(),_C="tmp",bl=t=>new Promise(e=>EU(t,e)),bU="degit.json",xU=dU()||mU(),Zy=class extends Error{constructor(e,r){super(e),Object.assign(this,r)}};function PU(t,e){try{return e&&e.clearCache===!0&&delete K.cache[K.resolve(t)],K(t)}catch{return null}}function CC(t,e=500){return new Promise((r,i)=>{gU.exec(t,{maxBuffer:1024*e},(s,n,a)=>{if(s){i(s);return}r({stdout:n,stderr:a})})}).catch(r=>r.code==="ERR_CHILD_PROCESS_STDIO_MAXBUFFER"?CC(t,e*2):Promise.reject(r))}function IC(t,e,r){return new Promise((i,s)=>{let n=t;if(r){let a=SU.parse(t);n={hostname:a.host,path:a.path,agent:new TU(r)}}yU.get(n,a=>{let o=a.statusCode;o>=400?s({code:o,message:a.statusMessage}):o>=300?IC(a.headers.location,e,r).then(i,s):a.pipe(Fr.createWriteStream(e)).on("finish",()=>i()).on("error",s)}).on("error",s)})}async function vU(t,e){let r=_n.join(t,_C);try{await bl(r)}catch(s){if(s.errno!==-2&&s.syscall!=="rmdir"&&s.code!=="ENOENT")throw s}await Fr.mkdir(r);let i=await Fr.readdir(e);for(let s of i){let n=_n.join(e,s),a=_n.join(r,s);(await Fr.lstat(n)).isDirectory()?(await Fr.copy(n,a),await bl(n)):(await Fr.copy(n,a),await Fr.unlink(n))}}async function AU(t,e){let r=_n.join(t,_C),i=await Fr.readdir(r);for(let s of i){let n=_n.join(r,s),a=_n.join(e,s);(await Fr.lstat(n)).isDirectory()?(await Fr.copy(n,a),await bl(n)):(s!=="degit.json"&&await Fr.copy(n,a),await Fr.unlink(n))}await bl(r)}var wU=_n.join(xU,".degit");OC.exports={rimraf:bl,degitConfigName:bU,DegitError:Zy,tryRequire:PU,fetch:IC,exec:CC,stashFiles:vU,unstashFiles:AU,base:wU}});var RC=g((fMe,kC)=>{c();var Gt=vd(),Br=K("path"),_U=n1(),{cyan:CU,magenta:IU,red:OU,bold:xl}=a1(),NU=K("events"),{DegitError:Ba,exec:Pl,fetch:DU,rimraf:bf,tryRequire:eg,stashFiles:LU,unstashFiles:kU,degitConfigName:RU,base:MU}=NC(),DC=new Set(["tar","git"]);function LC(t,e){return new tg(t,e)}kC.exports=LC;var tg=class extends NU{constructor(e,r={}){if(super(),this.src=e,r["offline-mode"]&&(this.offlineMode=r["offline-mode"]),r.offlineMode&&(this.offlineMode=r.offlineMode),r["disable-cache"]&&(this.noCache=r["disable-cache"]),r.disableCache&&(this.noCache=r.disableCache),this.cache=r.cache,this.force=r.force,this.verbose=r.verbose,this.proxy=process.env.https_proxy,this.subgroup=r.subgroup,this.subdir=r["sub-directory"],this.repo=FU(e),this.subgroup&&(this.repo.subgroup=!0,this.repo.name=this.repo.subdir.slice(1),this.repo.url=this.repo.url+this.repo.subdir,this.repo.ssh=this.repo.ssh+this.repo.subdir+".git",this.repo.subdir=null,this.subdir&&(this.repo.subdir=this.subdir.startsWith("/")?this.subdir:`/${this.subdir}`)),this.mode=r.mode||this.repo.mode,!DC.has(this.mode))throw new Error(`Valid modes are ${Array.from(DC).join(", ")}`);this._hasStashed=!1,this.directiveActions={clone:async(i,s,n)=>{this._hasStashed===!1&&(await LU(i,s),this._hasStashed=!0);let a=Object.assign({force:!0},{cache:n.cache,verbose:n.verbose}),o=LC(n.src,a);o.on("info",l=>{console.error(CU(`> ${l.message.replace("options.","--")}`))}),o.on("warn",l=>{console.error(IU(`! ${l.message.replace("options.","--")}`))});try{await o.clone(s)}catch(l){console.error(OU(`! ${l.message}`)),process.exit(1)}},remove:this.remove.bind(this)}}async _getDirectives(e){let r=Br.resolve(e,RU),i=eg(r,{clearCache:!0})||!1;return i&&await Gt.unlink(r),i}async clone(e){await this._checkDirIsEmpty(e);let{repo:r}=this,i=Br.join(MU,r.site,r.user,r.name);this.mode==="tar"?await this._cloneWithTar(i,e):await this._cloneWithGit(i,e),this._info({code:"SUCCESS",message:`cloned ${xl(r.user+"/"+r.name)}#${xl(r.ref)}${e!=="."?` to ${e}`:""}`,repo:r,dest:e});let s=await this._getDirectives(e);if(s){for(let n of s)await this.directiveActions[n.action](i,e,n);this._hasStashed===!0&&await kU(i,e)}}async remove(e,r,i){let s=i.files;Array.isArray(s)||(s=[s]);let n=[];for(let a of s){let o=Br.resolve(r,a);await Gt.pathExists(o)?(await Gt.lstat(o)).isDirectory()?(await bf(o),n.push(a+"/")):(await Gt.unlink(o),n.push(a)):this._warn({code:"FILE_DOES_NOT_EXIST",message:`action wants to remove ${xl(a)} but it does not exist`})}n.length>0&&this._info({code:"REMOVED",message:`removed: ${xl(n.map(a=>xl(a)).join(", "))}`})}async _checkDirIsEmpty(e){try{if((await Gt.readdir(e)).length>0)if(this.force)this._info({code:"DEST_NOT_EMPTY",message:"destination directory is not empty. Using options.force, continuing"}),await bf(e);else throw new Ba("destination directory is not empty, aborting. Use options.force to override",{code:"DEST_NOT_EMPTY"});else this._verbose({code:"DEST_IS_EMPTY",message:"destination directory is empty"})}catch(r){if(r.code!=="ENOENT")throw r}}_info(e){this.emit("info",e)}_warn(e){this.emit("warn",e)}_verbose(e){this.verbose&&this._info(e)}async _getHash(e,r){try{let i=await jU(e);return e.ref==="HEAD"?i.find(s=>s.type==="HEAD").hash:this._selectRef(i,e.ref)}catch(i){return this._warn(i),this._verbose(i.original),this._getHashFromCache(e,r)}}_getHashFromCache(e,r){if(e.ref in r){let i=r[e.ref];return this._info({code:"USING_CACHE",message:`using cached commit hash ${i}`}),i}}_selectRef(e,r){for(let i of e)if(i.name===r)return this._verbose({code:"FOUND_MATCH",message:`found matching commit hash: ${i.hash}`}),i.hash;if(r.length<8)return null;for(let i of e)if(i.hash.startsWith(r))return i.hash}async _cloneWithTar(e,r){let{repo:i}=this,s=eg(Br.join(e,"map.json"))||{},n=this.offlineMode||this.cache?this._getHashFromCache(i,s):await this._getHash(i,s),a=i.subdir?`${i.name}-${n}${i.subdir}`:null;if(!n)throw new Ba(`could not find commit hash for ${i.ref}`,{code:"MISSING_REF",ref:i.ref});let o=`${e}/${n}.tar.gz`,l=i.site==="gitlab"?`${i.url}/-/archive/${n}/${i.name}-${n}.tar.gz`:i.site==="bitbucket"?`${i.url}/get/${n}.tar.gz`:`${i.url}/archive/${n}.tar.gz`;try{if(!this.offlineMode||!this.cache)try{if(this.noCache)throw this._verbose({code:"NO_CACHE",message:"Not using cache. noCache set to true."}),"don't use cache";await Gt.stat(o),this._verbose({code:"FILE_EXISTS",message:`${o} already exists locally`})}catch{await Gt.mkdir(Br.dirname(o),{recursive:!0}),this.proxy&&this._verbose({code:"PROXY",message:`using proxy ${this.proxy}`}),this._verbose({code:"DOWNLOADING",message:`downloading ${l} to ${o}`}),await DU(l,o,this.proxy)}}catch(u){throw new Ba(`could not download ${l}`,{code:"COULD_NOT_DOWNLOAD",url:l,original:u})}this.noCache||await qU(e,i,n,s),this._verbose({code:"EXTRACTING",message:`extracting ${a?i.subdir+" from ":""}${o} to ${r}`}),await Gt.mkdir(r,{recursive:!0}),await BU(o,r,a)}async _cloneWithGit(e,r){let i=/https:\/\//.test(this.repo.src)?this.repo.url:this.repo.ssh;i=this.repo.site==="huggingface"?this.repo.url:i;let s=process.platform==="win32";if(this.repo.subdir){await Gt.mkdir(Br.join(r,".tiged"),{recursive:!0});let n=Br.join(r,".tiged");this.repo.ref&&this.repo.ref!=="HEAD"&&!s?await Pl(`cd ${n}; git init; git remote add origin ${i}; git fetch --depth 1 origin ${this.repo.ref}; git checkout FETCH_HEAD`):await Pl(`git clone --depth 1 ${i} ${n}`);let a=await Gt.readdir(`${n}${this.repo.subdir}`);await Promise.all(a.map(async o=>Gt.rename(`${n}${this.repo.subdir}/${o}`,`${r}/${o}`))),await bf(n)}else this.repo.ref&&this.repo.ref!=="HEAD"&&!s?(await Gt.mkdir(r,{recursive:!0}),await Pl(`cd ${r}; git init; git remote add origin ${i}; git fetch --depth 1 origin ${this.repo.ref}; git checkout FETCH_HEAD`)):await Pl(`git clone --depth 1 ${i} ${r}`),await bf(Br.resolve(r,".git"))}},xf={github:".com",gitlab:".com",bitbucket:".com","git.sr.ht":".ht",huggingface:".co"};function FU(t){let e=/^(?:(?:https:\/\/)?([^:/]+\.[^:/]+)\/|git@([^:/]+)[:/]|([^/]+):)?([^/\s]+)\/([^/\s#]+)(?:((?:\/[^/\s#]+)+))?(?:\/)?(?:#(.+))?/.exec(t);if(!e)throw new Ba(`could not parse ${t}`,{code:"BAD_SRC"});let r=e[1]||e[2]||e[3]||"github.com",i=/\.([a-z]{2,})$/.exec(r),s=i?i[0]:null,n=s?r.replace(new RegExp(s+"$"),""):r,a=e[4],o=e[5].replace(/\.git$/,""),l=e[6],u=e[7]||"HEAD",f=`${n}${s||xf[n]||xf[r]||""}`,p=`https://${f}/${a}/${o}`,h=`git@${f}:${a}/${o}`,d=n==="huggingface"?"git":xf[n]||xf[r]?"tar":"git";return{site:n,user:a,name:o,ref:u,url:p,ssh:h,subdir:l,mode:d,src:t}}async function BU(t,e,r=null){return _U.extract({file:t,strip:r?r.split("/").length:1,C:e},r?[r]:[])}async function jU(t){try{let{stdout:e}=await Pl(`git ls-remote ${t.url}`);return e.split(`
27
+ `).filter(Boolean).map(r=>{let[i,s]=r.split(" ");if(s==="HEAD")return{type:"HEAD",hash:i};let n=/refs\/(\w+)\/(.+)/.exec(s);if(!n)throw new Ba(`could not parse ${s}`,{code:"BAD_REF"});return{type:n[1]==="heads"?"branch":n[1]==="refs"?"ref":n[1],name:n[2],hash:i}})}catch(e){throw new Ba(`could not fetch remote ${t.url}`,{code:"COULD_NOT_FETCH",url:t.url,original:e})}}async function qU(t,e,r,i){let s=eg(Br.join(t,"access.json"))||{};if(s[e.ref]=new Date().toISOString(),await Gt.writeFile(Br.join(t,"access.json"),JSON.stringify(s,null," ")),i[e.ref]===r)return;let n=i[e.ref];if(n){let a=!1;for(let o in i)if(i[o]===r){a=!0;break}if(!a)try{await Gt.unlink(Br.join(t,`${n}.tar.gz`))}catch{}}i[e.ref]=r,await Gt.writeFile(Br.join(t,"map.json"),JSON.stringify(i,null," "))}});var rg=g((yMe,qC)=>{"use strict";c();var $U=K("stream"),BC=$U.PassThrough,VU=Array.prototype.slice;qC.exports=KU;function KU(){let t=[],e=VU.call(arguments),r=!1,i=e[e.length-1];i&&!Array.isArray(i)&&i.pipe==null?e.pop():i={};let s=i.end!==!1,n=i.pipeError===!0;i.objectMode==null&&(i.objectMode=!0),i.highWaterMark==null&&(i.highWaterMark=64*1024);let a=BC(i);function o(){for(let f=0,p=arguments.length;f<p;f++)t.push(jC(arguments[f],i));return l(),this}function l(){if(r)return;r=!0;let f=t.shift();if(!f){process.nextTick(u);return}Array.isArray(f)||(f=[f]);let p=f.length+1;function h(){--p>0||(r=!1,l())}function d(T){function b(){T.removeListener("merge2UnpipeEnd",b),T.removeListener("end",b),n&&T.removeListener("error",x),h()}function x(_){a.emit("error",_)}if(T._readableState.endEmitted)return h();T.on("merge2UnpipeEnd",b),T.on("end",b),n&&T.on("error",x),T.pipe(a,{end:!1}),T.resume()}for(let T=0;T<f.length;T++)d(f[T]);h()}function u(){r=!1,a.emit("queueDrain"),s&&a.end()}return a.setMaxListeners(0),a.add=o,a.on("unpipe",function(f){f.emit("merge2UnpipeEnd")}),e.length&&o.apply(null,e),a}function jC(t,e){if(Array.isArray(t))for(let r=0,i=t.length;r<i;r++)t[r]=jC(t[r],e);else{if(!t._readableState&&t.pipe&&(t=t.pipe(BC(e))),!t._readableState||!t.pause||!t.pipe)throw new Error("Only readable stream can be merged.");t.pause()}return t}});var UC=g(ja=>{"use strict";c();Object.defineProperty(ja,"__esModule",{value:!0});ja.splitWhen=ja.flatten=void 0;function HU(t){return t.reduce((e,r)=>[].concat(e,r),[])}ja.flatten=HU;function WU(t,e){let r=[[]],i=0;for(let s of t)e(s)?(i++,r[i]=[]):r[i].push(s);return r}ja.splitWhen=WU});var $C=g(Pf=>{"use strict";c();Object.defineProperty(Pf,"__esModule",{value:!0});Pf.isEnoentCodeError=void 0;function GU(t){return t.code==="ENOENT"}Pf.isEnoentCodeError=GU});var VC=g(vf=>{"use strict";c();Object.defineProperty(vf,"__esModule",{value:!0});vf.createDirentFromStats=void 0;var ig=class{constructor(e,r){this.name=e,this.isBlockDevice=r.isBlockDevice.bind(r),this.isCharacterDevice=r.isCharacterDevice.bind(r),this.isDirectory=r.isDirectory.bind(r),this.isFIFO=r.isFIFO.bind(r),this.isFile=r.isFile.bind(r),this.isSocket=r.isSocket.bind(r),this.isSymbolicLink=r.isSymbolicLink.bind(r)}};function YU(t,e){return new ig(t,e)}vf.createDirentFromStats=YU});var KC=g(mi=>{"use strict";c();Object.defineProperty(mi,"__esModule",{value:!0});mi.removeLeadingDotSegment=mi.escape=mi.makeAbsolute=mi.unixify=void 0;var XU=K("path"),zU=2,JU=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\())/g;function QU(t){return t.replace(/\\/g,"/")}mi.unixify=QU;function ZU(t,e){return XU.resolve(t,e)}mi.makeAbsolute=ZU;function e$(t){return t.replace(JU,"\\$2")}mi.escape=e$;function t$(t){if(t.charAt(0)==="."){let e=t.charAt(1);if(e==="/"||e==="\\")return t.slice(zU)}return t}mi.removeLeadingDotSegment=t$});var WC=g((wMe,HC)=>{c();HC.exports=function(e){if(typeof e!="string"||e==="")return!1;for(var r;r=/(\\).|([@?!+*]\(.*\))/g.exec(e);){if(r[2])return!0;e=e.slice(r.index+r[0].length)}return!1}});var XC=g((CMe,YC)=>{c();var r$=WC(),GC={"{":"}","(":")","[":"]"},i$=function(t){if(t[0]==="!")return!0;for(var e=0,r=-2,i=-2,s=-2,n=-2,a=-2;e<t.length;){if(t[e]==="*"||t[e+1]==="?"&&/[\].+)]/.test(t[e])||i!==-1&&t[e]==="["&&t[e+1]!=="]"&&(i<e&&(i=t.indexOf("]",e)),i>e&&(a===-1||a>i||(a=t.indexOf("\\",e),a===-1||a>i)))||s!==-1&&t[e]==="{"&&t[e+1]!=="}"&&(s=t.indexOf("}",e),s>e&&(a=t.indexOf("\\",e),a===-1||a>s))||n!==-1&&t[e]==="("&&t[e+1]==="?"&&/[:!=]/.test(t[e+2])&&t[e+3]!==")"&&(n=t.indexOf(")",e),n>e&&(a=t.indexOf("\\",e),a===-1||a>n))||r!==-1&&t[e]==="("&&t[e+1]!=="|"&&(r<e&&(r=t.indexOf("|",e)),r!==-1&&t[r+1]!==")"&&(n=t.indexOf(")",r),n>r&&(a=t.indexOf("\\",r),a===-1||a>n))))return!0;if(t[e]==="\\"){var o=t[e+1];e+=2;var l=GC[o];if(l){var u=t.indexOf(l,e);u!==-1&&(e=u+1)}if(t[e]==="!")return!0}else e++}return!1},s$=function(t){if(t[0]==="!")return!0;for(var e=0;e<t.length;){if(/[*?{}()[\]]/.test(t[e]))return!0;if(t[e]==="\\"){var r=t[e+1];e+=2;var i=GC[r];if(i){var s=t.indexOf(i,e);s!==-1&&(e=s+1)}if(t[e]==="!")return!0}else e++}return!1};YC.exports=function(e,r){if(typeof e!="string"||e==="")return!1;if(r$(e))return!0;var i=i$;return r&&r.strict===!1&&(i=s$),i(e)}});var JC=g((OMe,zC)=>{"use strict";c();var n$=XC(),a$=K("path").posix.dirname,o$=K("os").platform()==="win32",sg="/",l$=/\\/g,u$=/[\{\[].*[\}\]]$/,c$=/(^|[^\\])([\{\[]|\([^\)]+$)/,f$=/\\([\!\*\?\|\[\]\(\)\{\}])/g;zC.exports=function(e,r){var i=Object.assign({flipBackslashes:!0},r);i.flipBackslashes&&o$&&e.indexOf(sg)<0&&(e=e.replace(l$,sg)),u$.test(e)&&(e+=sg),e+="a";do e=a$(e);while(n$(e)||c$.test(e));return e.replace(f$,"$1")}});var Af=g(jr=>{"use strict";c();jr.isInteger=t=>typeof t=="number"?Number.isInteger(t):typeof t=="string"&&t.trim()!==""?Number.isInteger(Number(t)):!1;jr.find=(t,e)=>t.nodes.find(r=>r.type===e);jr.exceedsLimit=(t,e,r=1,i)=>i===!1||!jr.isInteger(t)||!jr.isInteger(e)?!1:(Number(e)-Number(t))/Number(r)>=i;jr.escapeNode=(t,e=0,r)=>{let i=t.nodes[e];i&&(r&&i.type===r||i.type==="open"||i.type==="close")&&i.escaped!==!0&&(i.value="\\"+i.value,i.escaped=!0)};jr.encloseBrace=t=>t.type!=="brace"||t.commas>>0+t.ranges>>0?!1:(t.invalid=!0,!0);jr.isInvalidBrace=t=>t.type!=="brace"?!1:t.invalid===!0||t.dollar?!0:!(t.commas>>0+t.ranges>>0)||t.open!==!0||t.close!==!0?(t.invalid=!0,!0):!1;jr.isOpenOrClose=t=>t.type==="open"||t.type==="close"?!0:t.open===!0||t.close===!0;jr.reduce=t=>t.reduce((e,r)=>(r.type==="text"&&e.push(r.value),r.type==="range"&&(r.type="text"),e),[]);jr.flatten=(...t)=>{let e=[],r=i=>{for(let s=0;s<i.length;s++){let n=i[s];Array.isArray(n)?r(n,e):n!==void 0&&e.push(n)}return e};return r(t),e}});var wf=g((kMe,ZC)=>{"use strict";c();var QC=Af();ZC.exports=(t,e={})=>{let r=(i,s={})=>{let n=e.escapeInvalid&&QC.isInvalidBrace(s),a=i.invalid===!0&&e.escapeInvalid===!0,o="";if(i.value)return(n||a)&&QC.isOpenOrClose(i)?"\\"+i.value:i.value;if(i.value)return i.value;if(i.nodes)for(let l of i.nodes)o+=r(l);return o};return r(t)}});var tI=g((MMe,eI)=>{"use strict";c();eI.exports=function(t){return typeof t=="number"?t-t===0:typeof t=="string"&&t.trim()!==""?Number.isFinite?Number.isFinite(+t):isFinite(+t):!1}});var cI=g((BMe,uI)=>{"use strict";c();var rI=tI(),Cn=(t,e,r)=>{if(rI(t)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(e===void 0||t===e)return String(t);if(rI(e)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let i={relaxZeros:!0,...r};typeof i.strictZeros=="boolean"&&(i.relaxZeros=i.strictZeros===!1);let s=String(i.relaxZeros),n=String(i.shorthand),a=String(i.capture),o=String(i.wrap),l=t+":"+e+"="+s+n+a+o;if(Cn.cache.hasOwnProperty(l))return Cn.cache[l].result;let u=Math.min(t,e),f=Math.max(t,e);if(Math.abs(u-f)===1){let b=t+"|"+e;return i.capture?`(${b})`:i.wrap===!1?b:`(?:${b})`}let p=lI(t)||lI(e),h={min:t,max:e,a:u,b:f},d=[],T=[];if(p&&(h.isPadded=p,h.maxLen=String(h.max).length),u<0){let b=f<0?Math.abs(f):1;T=iI(b,Math.abs(u),h,i),u=h.a=0}return f>=0&&(d=iI(u,f,h,i)),h.negatives=T,h.positives=d,h.result=p$(T,d,i),i.capture===!0?h.result=`(${h.result})`:i.wrap!==!1&&d.length+T.length>1&&(h.result=`(?:${h.result})`),Cn.cache[l]=h,h.result};function p$(t,e,r){let i=ng(t,e,"-",!1,r)||[],s=ng(e,t,"",!1,r)||[],n=ng(t,e,"-?",!0,r)||[];return i.concat(n).concat(s).join("|")}function h$(t,e){let r=1,i=1,s=nI(t,r),n=new Set([e]);for(;t<=s&&s<=e;)n.add(s),r+=1,s=nI(t,r);for(s=aI(e+1,i)-1;t<s&&s<=e;)n.add(s),i+=1,s=aI(e+1,i)-1;return n=[...n],n.sort(y$),n}function d$(t,e,r){if(t===e)return{pattern:t,count:[],digits:0};let i=m$(t,e),s=i.length,n="",a=0;for(let o=0;o<s;o++){let[l,u]=i[o];l===u?n+=l:l!=="0"||u!=="9"?n+=g$(l,u,r):a++}return a&&(n+=r.shorthand===!0?"\\d":"[0-9]"),{pattern:n,count:[a],digits:s}}function iI(t,e,r,i){let s=h$(t,e),n=[],a=t,o;for(let l=0;l<s.length;l++){let u=s[l],f=d$(String(a),String(u),i),p="";if(!r.isPadded&&o&&o.pattern===f.pattern){o.count.length>1&&o.count.pop(),o.count.push(f.count[0]),o.string=o.pattern+oI(o.count),a=u+1;continue}r.isPadded&&(p=S$(u,r,i)),f.string=p+f.pattern+oI(f.count),n.push(f),a=u+1,o=f}return n}function ng(t,e,r,i,s){let n=[];for(let a of t){let{string:o}=a;!i&&!sI(e,"string",o)&&n.push(r+o),i&&sI(e,"string",o)&&n.push(r+o)}return n}function m$(t,e){let r=[];for(let i=0;i<t.length;i++)r.push([t[i],e[i]]);return r}function y$(t,e){return t>e?1:e>t?-1:0}function sI(t,e,r){return t.some(i=>i[e]===r)}function nI(t,e){return Number(String(t).slice(0,-e)+"9".repeat(e))}function aI(t,e){return t-t%Math.pow(10,e)}function oI(t){let[e=0,r=""]=t;return r||e>1?`{${e+(r?","+r:"")}}`:""}function g$(t,e,r){return`[${t}${e-t===1?"":"-"}${e}]`}function lI(t){return/^-?(0+)\d/.test(t)}function S$(t,e,r){if(!e.isPadded)return t;let i=Math.abs(e.maxLen-String(t).length),s=r.relaxZeros!==!1;switch(i){case 0:return"";case 1:return s?"0?":"0";case 2:return s?"0{0,2}":"00";default:return s?`0{0,${i}}`:`0{${i}}`}}Cn.cache={};Cn.clearCache=()=>Cn.cache={};uI.exports=Cn});var lg=g((qMe,SI)=>{"use strict";c();var T$=K("util"),hI=cI(),fI=t=>t!==null&&typeof t=="object"&&!Array.isArray(t),E$=t=>e=>t===!0?Number(e):String(e),ag=t=>typeof t=="number"||typeof t=="string"&&t!=="",vl=t=>Number.isInteger(+t),og=t=>{let e=`${t}`,r=-1;if(e[0]==="-"&&(e=e.slice(1)),e==="0")return!1;for(;e[++r]==="0";);return r>0},b$=(t,e,r)=>typeof t=="string"||typeof e=="string"?!0:r.stringify===!0,x$=(t,e,r)=>{if(e>0){let i=t[0]==="-"?"-":"";i&&(t=t.slice(1)),t=i+t.padStart(i?e-1:e,"0")}return r===!1?String(t):t},pI=(t,e)=>{let r=t[0]==="-"?"-":"";for(r&&(t=t.slice(1),e--);t.length<e;)t="0"+t;return r?"-"+t:t},P$=(t,e)=>{t.negatives.sort((a,o)=>a<o?-1:a>o?1:0),t.positives.sort((a,o)=>a<o?-1:a>o?1:0);let r=e.capture?"":"?:",i="",s="",n;return t.positives.length&&(i=t.positives.join("|")),t.negatives.length&&(s=`-(${r}${t.negatives.join("|")})`),i&&s?n=`${i}|${s}`:n=i||s,e.wrap?`(${r}${n})`:n},dI=(t,e,r,i)=>{if(r)return hI(t,e,{wrap:!1,...i});let s=String.fromCharCode(t);if(t===e)return s;let n=String.fromCharCode(e);return`[${s}-${n}]`},mI=(t,e,r)=>{if(Array.isArray(t)){let i=r.wrap===!0,s=r.capture?"":"?:";return i?`(${s}${t.join("|")})`:t.join("|")}return hI(t,e,r)},yI=(...t)=>new RangeError("Invalid range arguments: "+T$.inspect(...t)),gI=(t,e,r)=>{if(r.strictRanges===!0)throw yI([t,e]);return[]},v$=(t,e)=>{if(e.strictRanges===!0)throw new TypeError(`Expected step "${t}" to be a number`);return[]},A$=(t,e,r=1,i={})=>{let s=Number(t),n=Number(e);if(!Number.isInteger(s)||!Number.isInteger(n)){if(i.strictRanges===!0)throw yI([t,e]);return[]}s===0&&(s=0),n===0&&(n=0);let a=s>n,o=String(t),l=String(e),u=String(r);r=Math.max(Math.abs(r),1);let f=og(o)||og(l)||og(u),p=f?Math.max(o.length,l.length,u.length):0,h=f===!1&&b$(t,e,i)===!1,d=i.transform||E$(h);if(i.toRegex&&r===1)return dI(pI(t,p),pI(e,p),!0,i);let T={negatives:[],positives:[]},b=R=>T[R<0?"negatives":"positives"].push(Math.abs(R)),x=[],_=0;for(;a?s>=n:s<=n;)i.toRegex===!0&&r>1?b(s):x.push(x$(d(s,_),p,h)),s=a?s-r:s+r,_++;return i.toRegex===!0?r>1?P$(T,i):mI(x,null,{wrap:!1,...i}):x},w$=(t,e,r=1,i={})=>{if(!vl(t)&&t.length>1||!vl(e)&&e.length>1)return gI(t,e,i);let s=i.transform||(h=>String.fromCharCode(h)),n=`${t}`.charCodeAt(0),a=`${e}`.charCodeAt(0),o=n>a,l=Math.min(n,a),u=Math.max(n,a);if(i.toRegex&&r===1)return dI(l,u,!1,i);let f=[],p=0;for(;o?n>=a:n<=a;)f.push(s(n,p)),n=o?n-r:n+r,p++;return i.toRegex===!0?mI(f,null,{wrap:!1,options:i}):f},_f=(t,e,r,i={})=>{if(e==null&&ag(t))return[t];if(!ag(t)||!ag(e))return gI(t,e,i);if(typeof r=="function")return _f(t,e,1,{transform:r});if(fI(r))return _f(t,e,0,r);let s={...i};return s.capture===!0&&(s.wrap=!0),r=r||s.step||1,vl(r)?vl(t)&&vl(e)?A$(t,e,r,s):w$(t,e,Math.max(Math.abs(r),1),s):r!=null&&!fI(r)?v$(r,s):_f(t,e,1,r)};SI.exports=_f});var bI=g(($Me,EI)=>{"use strict";c();var _$=lg(),TI=Af(),C$=(t,e={})=>{let r=(i,s={})=>{let n=TI.isInvalidBrace(s),a=i.invalid===!0&&e.escapeInvalid===!0,o=n===!0||a===!0,l=e.escapeInvalid===!0?"\\":"",u="";if(i.isOpen===!0||i.isClose===!0)return l+i.value;if(i.type==="open")return o?l+i.value:"(";if(i.type==="close")return o?l+i.value:")";if(i.type==="comma")return i.prev.type==="comma"?"":o?i.value:"|";if(i.value)return i.value;if(i.nodes&&i.ranges>0){let f=TI.reduce(i.nodes),p=_$(...f,{...e,wrap:!1,toRegex:!0});if(p.length!==0)return f.length>1&&p.length>1?`(${p})`:p}if(i.nodes)for(let f of i.nodes)u+=r(f,i);return u};return r(t)};EI.exports=C$});var vI=g((KMe,PI)=>{"use strict";c();var I$=lg(),xI=wf(),qa=Af(),In=(t="",e="",r=!1)=>{let i=[];if(t=[].concat(t),e=[].concat(e),!e.length)return t;if(!t.length)return r?qa.flatten(e).map(s=>`{${s}}`):e;for(let s of t)if(Array.isArray(s))for(let n of s)i.push(In(n,e,r));else for(let n of e)r===!0&&typeof n=="string"&&(n=`{${n}}`),i.push(Array.isArray(n)?In(s,n,r):s+n);return qa.flatten(i)},O$=(t,e={})=>{let r=e.rangeLimit===void 0?1e3:e.rangeLimit,i=(s,n={})=>{s.queue=[];let a=n,o=n.queue;for(;a.type!=="brace"&&a.type!=="root"&&a.parent;)a=a.parent,o=a.queue;if(s.invalid||s.dollar){o.push(In(o.pop(),xI(s,e)));return}if(s.type==="brace"&&s.invalid!==!0&&s.nodes.length===2){o.push(In(o.pop(),["{}"]));return}if(s.nodes&&s.ranges>0){let p=qa.reduce(s.nodes);if(qa.exceedsLimit(...p,e.step,r))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let h=I$(...p,e);h.length===0&&(h=xI(s,e)),o.push(In(o.pop(),h)),s.nodes=[];return}let l=qa.encloseBrace(s),u=s.queue,f=s;for(;f.type!=="brace"&&f.type!=="root"&&f.parent;)f=f.parent,u=f.queue;for(let p=0;p<s.nodes.length;p++){let h=s.nodes[p];if(h.type==="comma"&&s.type==="brace"){p===1&&u.push(""),u.push("");continue}if(h.type==="close"){o.push(In(o.pop(),u,l));continue}if(h.value&&h.type!=="open"){u.push(In(u.pop(),h.value));continue}h.nodes&&i(h,s)}return u};return qa.flatten(i(t))};PI.exports=O$});var wI=g((WMe,AI)=>{"use strict";c();AI.exports={MAX_LENGTH:1024*64,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:`
28
+ `,CHAR_NO_BREAK_SPACE:"\xA0",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:" ",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"}});var NI=g((YMe,OI)=>{"use strict";c();var N$=wf(),{MAX_LENGTH:_I,CHAR_BACKSLASH:ug,CHAR_BACKTICK:D$,CHAR_COMMA:L$,CHAR_DOT:k$,CHAR_LEFT_PARENTHESES:R$,CHAR_RIGHT_PARENTHESES:M$,CHAR_LEFT_CURLY_BRACE:F$,CHAR_RIGHT_CURLY_BRACE:B$,CHAR_LEFT_SQUARE_BRACKET:CI,CHAR_RIGHT_SQUARE_BRACKET:II,CHAR_DOUBLE_QUOTE:j$,CHAR_SINGLE_QUOTE:q$,CHAR_NO_BREAK_SPACE:U$,CHAR_ZERO_WIDTH_NOBREAK_SPACE:$$}=wI(),V$=(t,e={})=>{if(typeof t!="string")throw new TypeError("Expected a string");let r=e||{},i=typeof r.maxLength=="number"?Math.min(_I,r.maxLength):_I;if(t.length>i)throw new SyntaxError(`Input length (${t.length}), exceeds max characters (${i})`);let s={type:"root",input:t,nodes:[]},n=[s],a=s,o=s,l=0,u=t.length,f=0,p=0,h,d={},T=()=>t[f++],b=x=>{if(x.type==="text"&&o.type==="dot"&&(o.type="text"),o&&o.type==="text"&&x.type==="text"){o.value+=x.value;return}return a.nodes.push(x),x.parent=a,x.prev=o,o=x,x};for(b({type:"bos"});f<u;)if(a=n[n.length-1],h=T(),!(h===$$||h===U$)){if(h===ug){b({type:"text",value:(e.keepEscaping?h:"")+T()});continue}if(h===II){b({type:"text",value:"\\"+h});continue}if(h===CI){l++;let x=!0,_;for(;f<u&&(_=T());){if(h+=_,_===CI){l++;continue}if(_===ug){h+=T();continue}if(_===II&&(l--,l===0))break}b({type:"text",value:h});continue}if(h===R$){a=b({type:"paren",nodes:[]}),n.push(a),b({type:"text",value:h});continue}if(h===M$){if(a.type!=="paren"){b({type:"text",value:h});continue}a=n.pop(),b({type:"text",value:h}),a=n[n.length-1];continue}if(h===j$||h===q$||h===D$){let x=h,_;for(e.keepQuotes!==!0&&(h="");f<u&&(_=T());){if(_===ug){h+=_+T();continue}if(_===x){e.keepQuotes===!0&&(h+=_);break}h+=_}b({type:"text",value:h});continue}if(h===F$){p++;let _={type:"brace",open:!0,close:!1,dollar:o.value&&o.value.slice(-1)==="$"||a.dollar===!0,depth:p,commas:0,ranges:0,nodes:[]};a=b(_),n.push(a),b({type:"open",value:h});continue}if(h===B$){if(a.type!=="brace"){b({type:"text",value:h});continue}let x="close";a=n.pop(),a.close=!0,b({type:x,value:h}),p--,a=n[n.length-1];continue}if(h===L$&&p>0){if(a.ranges>0){a.ranges=0;let x=a.nodes.shift();a.nodes=[x,{type:"text",value:N$(a)}]}b({type:"comma",value:h}),a.commas++;continue}if(h===k$&&p>0&&a.commas===0){let x=a.nodes;if(p===0||x.length===0){b({type:"text",value:h});continue}if(o.type==="dot"){if(a.range=[],o.value+=h,o.type="range",a.nodes.length!==3&&a.nodes.length!==5){a.invalid=!0,a.ranges=0,o.type="text";continue}a.ranges++,a.args=[];continue}if(o.type==="range"){x.pop();let _=x[x.length-1];_.value+=o.value+h,o=_,a.ranges--;continue}b({type:"dot",value:h});continue}b({type:"text",value:h})}do if(a=n.pop(),a.type!=="root"){a.nodes.forEach(R=>{R.nodes||(R.type==="open"&&(R.isOpen=!0),R.type==="close"&&(R.isClose=!0),R.nodes||(R.type="text"),R.invalid=!0)});let x=n[n.length-1],_=x.nodes.indexOf(a);x.nodes.splice(_,1,...a.nodes)}while(n.length>0);return b({type:"eos"}),s};OI.exports=V$});var kI=g((zMe,LI)=>{"use strict";c();var DI=wf(),K$=bI(),H$=vI(),W$=NI(),Ar=(t,e={})=>{let r=[];if(Array.isArray(t))for(let i of t){let s=Ar.create(i,e);Array.isArray(s)?r.push(...s):r.push(s)}else r=[].concat(Ar.create(t,e));return e&&e.expand===!0&&e.nodupes===!0&&(r=[...new Set(r)]),r};Ar.parse=(t,e={})=>W$(t,e);Ar.stringify=(t,e={})=>DI(typeof t=="string"?Ar.parse(t,e):t,e);Ar.compile=(t,e={})=>(typeof t=="string"&&(t=Ar.parse(t,e)),K$(t,e));Ar.expand=(t,e={})=>{typeof t=="string"&&(t=Ar.parse(t,e));let r=H$(t,e);return e.noempty===!0&&(r=r.filter(Boolean)),e.nodupes===!0&&(r=[...new Set(r)]),r};Ar.create=(t,e={})=>t===""||t.length<3?[t]:e.expand!==!0?Ar.compile(t,e):Ar.expand(t,e);LI.exports=Ar});var Al=g((QMe,jI)=>{"use strict";c();var G$=K("path"),yi="\\\\/",RI=`[^${yi}]`,$i="\\.",Y$="\\+",X$="\\?",Cf="\\/",z$="(?=.)",MI="[^/]",cg=`(?:${Cf}|$)`,FI=`(?:^|${Cf})`,fg=`${$i}{1,2}${cg}`,J$=`(?!${$i})`,Q$=`(?!${FI}${fg})`,Z$=`(?!${$i}{0,1}${cg})`,e7=`(?!${fg})`,t7=`[^.${Cf}]`,r7=`${MI}*?`,BI={DOT_LITERAL:$i,PLUS_LITERAL:Y$,QMARK_LITERAL:X$,SLASH_LITERAL:Cf,ONE_CHAR:z$,QMARK:MI,END_ANCHOR:cg,DOTS_SLASH:fg,NO_DOT:J$,NO_DOTS:Q$,NO_DOT_SLASH:Z$,NO_DOTS_SLASH:e7,QMARK_NO_DOT:t7,STAR:r7,START_ANCHOR:FI},i7={...BI,SLASH_LITERAL:`[${yi}]`,QMARK:RI,STAR:`${RI}*?`,DOTS_SLASH:`${$i}{1,2}(?:[${yi}]|$)`,NO_DOT:`(?!${$i})`,NO_DOTS:`(?!(?:^|[${yi}])${$i}{1,2}(?:[${yi}]|$))`,NO_DOT_SLASH:`(?!${$i}{0,1}(?:[${yi}]|$))`,NO_DOTS_SLASH:`(?!${$i}{1,2}(?:[${yi}]|$))`,QMARK_NO_DOT:`[^.${yi}]`,START_ANCHOR:`(?:^|[${yi}])`,END_ANCHOR:`(?:[${yi}]|$)`},s7={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};jI.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:s7,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:G$.sep,extglobChars(t){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${t.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(t){return t===!0?i7:BI}}});var wl=g(fr=>{"use strict";c();var n7=K("path"),a7=process.platform==="win32",{REGEX_BACKSLASH:o7,REGEX_REMOVE_BACKSLASH:l7,REGEX_SPECIAL_CHARS:u7,REGEX_SPECIAL_CHARS_GLOBAL:c7}=Al();fr.isObject=t=>t!==null&&typeof t=="object"&&!Array.isArray(t);fr.hasRegexChars=t=>u7.test(t);fr.isRegexChar=t=>t.length===1&&fr.hasRegexChars(t);fr.escapeRegex=t=>t.replace(c7,"\\$1");fr.toPosixSlashes=t=>t.replace(o7,"/");fr.removeBackslashes=t=>t.replace(l7,e=>e==="\\"?"":e);fr.supportsLookbehinds=()=>{let t=process.version.slice(1).split(".").map(Number);return t.length===3&&t[0]>=9||t[0]===8&&t[1]>=10};fr.isWindows=t=>t&&typeof t.windows=="boolean"?t.windows:a7===!0||n7.sep==="\\";fr.escapeLast=(t,e,r)=>{let i=t.lastIndexOf(e,r);return i===-1?t:t[i-1]==="\\"?fr.escapeLast(t,e,i-1):`${t.slice(0,i)}\\${t.slice(i)}`};fr.removePrefix=(t,e={})=>{let r=t;return r.startsWith("./")&&(r=r.slice(2),e.prefix="./"),r};fr.wrapOutput=(t,e={},r={})=>{let i=r.contains?"":"^",s=r.contains?"":"$",n=`${i}(?:${t})${s}`;return e.negated===!0&&(n=`(?:^(?!${n}).*$)`),n}});var GI=g((r2e,WI)=>{"use strict";c();var qI=wl(),{CHAR_ASTERISK:pg,CHAR_AT:f7,CHAR_BACKWARD_SLASH:_l,CHAR_COMMA:p7,CHAR_DOT:hg,CHAR_EXCLAMATION_MARK:dg,CHAR_FORWARD_SLASH:HI,CHAR_LEFT_CURLY_BRACE:mg,CHAR_LEFT_PARENTHESES:yg,CHAR_LEFT_SQUARE_BRACKET:h7,CHAR_PLUS:d7,CHAR_QUESTION_MARK:UI,CHAR_RIGHT_CURLY_BRACE:m7,CHAR_RIGHT_PARENTHESES:$I,CHAR_RIGHT_SQUARE_BRACKET:y7}=Al(),VI=t=>t===HI||t===_l,KI=t=>{t.isPrefix!==!0&&(t.depth=t.isGlobstar?1/0:1)},g7=(t,e)=>{let r=e||{},i=t.length-1,s=r.parts===!0||r.scanToEnd===!0,n=[],a=[],o=[],l=t,u=-1,f=0,p=0,h=!1,d=!1,T=!1,b=!1,x=!1,_=!1,R=!1,k=!1,M=!1,O=!1,L=0,F,H,V={value:"",depth:0,isGlob:!1},X=()=>u>=i,B=()=>l.charCodeAt(u+1),oe=()=>(F=H,l.charCodeAt(++u));for(;u<i;){H=oe();let ge;if(H===_l){R=V.backslashes=!0,H=oe(),H===mg&&(_=!0);continue}if(_===!0||H===mg){for(L++;X()!==!0&&(H=oe());){if(H===_l){R=V.backslashes=!0,oe();continue}if(H===mg){L++;continue}if(_!==!0&&H===hg&&(H=oe())===hg){if(h=V.isBrace=!0,T=V.isGlob=!0,O=!0,s===!0)continue;break}if(_!==!0&&H===p7){if(h=V.isBrace=!0,T=V.isGlob=!0,O=!0,s===!0)continue;break}if(H===m7&&(L--,L===0)){_=!1,h=V.isBrace=!0,O=!0;break}}if(s===!0)continue;break}if(H===HI){if(n.push(u),a.push(V),V={value:"",depth:0,isGlob:!1},O===!0)continue;if(F===hg&&u===f+1){f+=2;continue}p=u+1;continue}if(r.noext!==!0&&(H===d7||H===f7||H===pg||H===UI||H===dg)===!0&&B()===yg){if(T=V.isGlob=!0,b=V.isExtglob=!0,O=!0,H===dg&&u===f&&(M=!0),s===!0){for(;X()!==!0&&(H=oe());){if(H===_l){R=V.backslashes=!0,H=oe();continue}if(H===$I){T=V.isGlob=!0,O=!0;break}}continue}break}if(H===pg){if(F===pg&&(x=V.isGlobstar=!0),T=V.isGlob=!0,O=!0,s===!0)continue;break}if(H===UI){if(T=V.isGlob=!0,O=!0,s===!0)continue;break}if(H===h7){for(;X()!==!0&&(ge=oe());){if(ge===_l){R=V.backslashes=!0,oe();continue}if(ge===y7){d=V.isBracket=!0,T=V.isGlob=!0,O=!0;break}}if(s===!0)continue;break}if(r.nonegate!==!0&&H===dg&&u===f){k=V.negated=!0,f++;continue}if(r.noparen!==!0&&H===yg){if(T=V.isGlob=!0,s===!0){for(;X()!==!0&&(H=oe());){if(H===yg){R=V.backslashes=!0,H=oe();continue}if(H===$I){O=!0;break}}continue}break}if(T===!0){if(O=!0,s===!0)continue;break}}r.noext===!0&&(b=!1,T=!1);let me=l,_e="",q="";f>0&&(_e=l.slice(0,f),l=l.slice(f),p-=f),me&&T===!0&&p>0?(me=l.slice(0,p),q=l.slice(p)):T===!0?(me="",q=l):me=l,me&&me!==""&&me!=="/"&&me!==l&&VI(me.charCodeAt(me.length-1))&&(me=me.slice(0,-1)),r.unescape===!0&&(q&&(q=qI.removeBackslashes(q)),me&&R===!0&&(me=qI.removeBackslashes(me)));let $={prefix:_e,input:t,start:f,base:me,glob:q,isBrace:h,isBracket:d,isGlob:T,isExtglob:b,isGlobstar:x,negated:k,negatedExtglob:M};if(r.tokens===!0&&($.maxDepth=0,VI(H)||a.push(V),$.tokens=a),r.parts===!0||r.tokens===!0){let ge;for(let he=0;he<n.length;he++){let Ee=ge?ge+1:f,st=n[he],ft=t.slice(Ee,st);r.tokens&&(he===0&&f!==0?(a[he].isPrefix=!0,a[he].value=_e):a[he].value=ft,KI(a[he]),$.maxDepth+=a[he].depth),(he!==0||ft!=="")&&o.push(ft),ge=st}if(ge&&ge+1<t.length){let he=t.slice(ge+1);o.push(he),r.tokens&&(a[a.length-1].value=he,KI(a[a.length-1]),$.maxDepth+=a[a.length-1].depth)}$.slashes=n,$.parts=o}return $};WI.exports=g7});var zI=g((s2e,XI)=>{"use strict";c();var If=Al(),wr=wl(),{MAX_LENGTH:Of,POSIX_REGEX_SOURCE:S7,REGEX_NON_SPECIAL_CHARS:T7,REGEX_SPECIAL_CHARS_BACKREF:E7,REPLACEMENTS:YI}=If,b7=(t,e)=>{if(typeof e.expandRange=="function")return e.expandRange(...t,e);t.sort();let r=`[${t.join("-")}]`;try{new RegExp(r)}catch{return t.map(s=>wr.escapeRegex(s)).join("..")}return r},Ua=(t,e)=>`Missing ${t}: "${e}" - use "\\\\${e}" to match literal characters`,gg=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");t=YI[t]||t;let r={...e},i=typeof r.maxLength=="number"?Math.min(Of,r.maxLength):Of,s=t.length;if(s>i)throw new SyntaxError(`Input length: ${s}, exceeds maximum allowed length: ${i}`);let n={type:"bos",value:"",output:r.prepend||""},a=[n],o=r.capture?"":"?:",l=wr.isWindows(e),u=If.globChars(l),f=If.extglobChars(u),{DOT_LITERAL:p,PLUS_LITERAL:h,SLASH_LITERAL:d,ONE_CHAR:T,DOTS_SLASH:b,NO_DOT:x,NO_DOT_SLASH:_,NO_DOTS_SLASH:R,QMARK:k,QMARK_NO_DOT:M,STAR:O,START_ANCHOR:L}=u,F=U=>`(${o}(?:(?!${L}${U.dot?b:p}).)*?)`,H=r.dot?"":x,V=r.dot?k:M,X=r.bash===!0?F(r):O;r.capture&&(X=`(${X})`),typeof r.noext=="boolean"&&(r.noextglob=r.noext);let B={input:t,index:-1,start:0,dot:r.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:a};t=wr.removePrefix(t,B),s=t.length;let oe=[],me=[],_e=[],q=n,$,ge=()=>B.index===s-1,he=B.peek=(U=1)=>t[B.index+U],Ee=B.advance=()=>t[++B.index]||"",st=()=>t.slice(B.index+1),ft=(U="",Q=0)=>{B.consumed+=U,B.index+=Q},Cr=U=>{B.output+=U.output!=null?U.output:U.value,ft(U.value)},ra=()=>{let U=1;for(;he()==="!"&&(he(2)!=="("||he(3)==="?");)Ee(),B.start++,U++;return U%2===0?!1:(B.negated=!0,B.start++,!0)},oi=U=>{B[U]++,_e.push(U)},Ir=U=>{B[U]--,_e.pop()},Ne=U=>{if(q.type==="globstar"){let Q=B.braces>0&&(U.type==="comma"||U.type==="brace"),G=U.extglob===!0||oe.length&&(U.type==="pipe"||U.type==="paren");U.type!=="slash"&&U.type!=="paren"&&!Q&&!G&&(B.output=B.output.slice(0,-q.output.length),q.type="star",q.value="*",q.output=X,B.output+=q.output)}if(oe.length&&U.type!=="paren"&&(oe[oe.length-1].inner+=U.value),(U.value||U.output)&&Cr(U),q&&q.type==="text"&&U.type==="text"){q.value+=U.value,q.output=(q.output||"")+U.value;return}U.prev=q,a.push(U),q=U},J=(U,Q)=>{let G={...f[Q],conditions:1,inner:""};G.prev=q,G.parens=B.parens,G.output=B.output;let Z=(r.capture?"(":"")+G.open;oi("parens"),Ne({type:U,value:Q,output:B.output?"":T}),Ne({type:"paren",extglob:!0,value:Ee(),output:Z}),oe.push(G)},Y=U=>{let Q=U.close+(r.capture?")":""),G;if(U.type==="negate"){let Z=X;if(U.inner&&U.inner.length>1&&U.inner.includes("/")&&(Z=F(r)),(Z!==X||ge()||/^\)+$/.test(st()))&&(Q=U.close=`)$))${Z}`),U.inner.includes("*")&&(G=st())&&/^\.[^\\/.]+$/.test(G)){let ne=gg(G,{...e,fastpaths:!1}).output;Q=U.close=`)${ne})${Z})`}U.prev.type==="bos"&&(B.negatedExtglob=!0)}Ne({type:"paren",extglob:!0,value:$,output:Q}),Ir("parens")};if(r.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(t)){let U=!1,Q=t.replace(E7,(G,Z,ne,Ae,Se,Me)=>Ae==="\\"?(U=!0,G):Ae==="?"?Z?Z+Ae+(Se?k.repeat(Se.length):""):Me===0?V+(Se?k.repeat(Se.length):""):k.repeat(ne.length):Ae==="."?p.repeat(ne.length):Ae==="*"?Z?Z+Ae+(Se?X:""):X:Z?G:`\\${G}`);return U===!0&&(r.unescape===!0?Q=Q.replace(/\\/g,""):Q=Q.replace(/\\+/g,G=>G.length%2===0?"\\\\":G?"\\":"")),Q===t&&r.contains===!0?(B.output=t,B):(B.output=wr.wrapOutput(Q,B,e),B)}for(;!ge();){if($=Ee(),$==="\0")continue;if($==="\\"){let G=he();if(G==="/"&&r.bash!==!0||G==="."||G===";")continue;if(!G){$+="\\",Ne({type:"text",value:$});continue}let Z=/^\\+/.exec(st()),ne=0;if(Z&&Z[0].length>2&&(ne=Z[0].length,B.index+=ne,ne%2!==0&&($+="\\")),r.unescape===!0?$=Ee():$+=Ee(),B.brackets===0){Ne({type:"text",value:$});continue}}if(B.brackets>0&&($!=="]"||q.value==="["||q.value==="[^")){if(r.posix!==!1&&$===":"){let G=q.value.slice(1);if(G.includes("[")&&(q.posix=!0,G.includes(":"))){let Z=q.value.lastIndexOf("["),ne=q.value.slice(0,Z),Ae=q.value.slice(Z+2),Se=S7[Ae];if(Se){q.value=ne+Se,B.backtrack=!0,Ee(),!n.output&&a.indexOf(q)===1&&(n.output=T);continue}}}($==="["&&he()!==":"||$==="-"&&he()==="]")&&($=`\\${$}`),$==="]"&&(q.value==="["||q.value==="[^")&&($=`\\${$}`),r.posix===!0&&$==="!"&&q.value==="["&&($="^"),q.value+=$,Cr({value:$});continue}if(B.quotes===1&&$!=='"'){$=wr.escapeRegex($),q.value+=$,Cr({value:$});continue}if($==='"'){B.quotes=B.quotes===1?0:1,r.keepQuotes===!0&&Ne({type:"text",value:$});continue}if($==="("){oi("parens"),Ne({type:"paren",value:$});continue}if($===")"){if(B.parens===0&&r.strictBrackets===!0)throw new SyntaxError(Ua("opening","("));let G=oe[oe.length-1];if(G&&B.parens===G.parens+1){Y(oe.pop());continue}Ne({type:"paren",value:$,output:B.parens?")":"\\)"}),Ir("parens");continue}if($==="["){if(r.nobracket===!0||!st().includes("]")){if(r.nobracket!==!0&&r.strictBrackets===!0)throw new SyntaxError(Ua("closing","]"));$=`\\${$}`}else oi("brackets");Ne({type:"bracket",value:$});continue}if($==="]"){if(r.nobracket===!0||q&&q.type==="bracket"&&q.value.length===1){Ne({type:"text",value:$,output:`\\${$}`});continue}if(B.brackets===0){if(r.strictBrackets===!0)throw new SyntaxError(Ua("opening","["));Ne({type:"text",value:$,output:`\\${$}`});continue}Ir("brackets");let G=q.value.slice(1);if(q.posix!==!0&&G[0]==="^"&&!G.includes("/")&&($=`/${$}`),q.value+=$,Cr({value:$}),r.literalBrackets===!1||wr.hasRegexChars(G))continue;let Z=wr.escapeRegex(q.value);if(B.output=B.output.slice(0,-q.value.length),r.literalBrackets===!0){B.output+=Z,q.value=Z;continue}q.value=`(${o}${Z}|${q.value})`,B.output+=q.value;continue}if($==="{"&&r.nobrace!==!0){oi("braces");let G={type:"brace",value:$,output:"(",outputIndex:B.output.length,tokensIndex:B.tokens.length};me.push(G),Ne(G);continue}if($==="}"){let G=me[me.length-1];if(r.nobrace===!0||!G){Ne({type:"text",value:$,output:$});continue}let Z=")";if(G.dots===!0){let ne=a.slice(),Ae=[];for(let Se=ne.length-1;Se>=0&&(a.pop(),ne[Se].type!=="brace");Se--)ne[Se].type!=="dots"&&Ae.unshift(ne[Se].value);Z=b7(Ae,r),B.backtrack=!0}if(G.comma!==!0&&G.dots!==!0){let ne=B.output.slice(0,G.outputIndex),Ae=B.tokens.slice(G.tokensIndex);G.value=G.output="\\{",$=Z="\\}",B.output=ne;for(let Se of Ae)B.output+=Se.output||Se.value}Ne({type:"brace",value:$,output:Z}),Ir("braces"),me.pop();continue}if($==="|"){oe.length>0&&oe[oe.length-1].conditions++,Ne({type:"text",value:$});continue}if($===","){let G=$,Z=me[me.length-1];Z&&_e[_e.length-1]==="braces"&&(Z.comma=!0,G="|"),Ne({type:"comma",value:$,output:G});continue}if($==="/"){if(q.type==="dot"&&B.index===B.start+1){B.start=B.index+1,B.consumed="",B.output="",a.pop(),q=n;continue}Ne({type:"slash",value:$,output:d});continue}if($==="."){if(B.braces>0&&q.type==="dot"){q.value==="."&&(q.output=p);let G=me[me.length-1];q.type="dots",q.output+=$,q.value+=$,G.dots=!0;continue}if(B.braces+B.parens===0&&q.type!=="bos"&&q.type!=="slash"){Ne({type:"text",value:$,output:p});continue}Ne({type:"dot",value:$,output:p});continue}if($==="?"){if(!(q&&q.value==="(")&&r.noextglob!==!0&&he()==="("&&he(2)!=="?"){J("qmark",$);continue}if(q&&q.type==="paren"){let Z=he(),ne=$;if(Z==="<"&&!wr.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(q.value==="("&&!/[!=<:]/.test(Z)||Z==="<"&&!/<([!=]|\w+>)/.test(st()))&&(ne=`\\${$}`),Ne({type:"text",value:$,output:ne});continue}if(r.dot!==!0&&(q.type==="slash"||q.type==="bos")){Ne({type:"qmark",value:$,output:M});continue}Ne({type:"qmark",value:$,output:k});continue}if($==="!"){if(r.noextglob!==!0&&he()==="("&&(he(2)!=="?"||!/[!=<:]/.test(he(3)))){J("negate",$);continue}if(r.nonegate!==!0&&B.index===0){ra();continue}}if($==="+"){if(r.noextglob!==!0&&he()==="("&&he(2)!=="?"){J("plus",$);continue}if(q&&q.value==="("||r.regex===!1){Ne({type:"plus",value:$,output:h});continue}if(q&&(q.type==="bracket"||q.type==="paren"||q.type==="brace")||B.parens>0){Ne({type:"plus",value:$});continue}Ne({type:"plus",value:h});continue}if($==="@"){if(r.noextglob!==!0&&he()==="("&&he(2)!=="?"){Ne({type:"at",extglob:!0,value:$,output:""});continue}Ne({type:"text",value:$});continue}if($!=="*"){($==="$"||$==="^")&&($=`\\${$}`);let G=T7.exec(st());G&&($+=G[0],B.index+=G[0].length),Ne({type:"text",value:$});continue}if(q&&(q.type==="globstar"||q.star===!0)){q.type="star",q.star=!0,q.value+=$,q.output=X,B.backtrack=!0,B.globstar=!0,ft($);continue}let U=st();if(r.noextglob!==!0&&/^\([^?]/.test(U)){J("star",$);continue}if(q.type==="star"){if(r.noglobstar===!0){ft($);continue}let G=q.prev,Z=G.prev,ne=G.type==="slash"||G.type==="bos",Ae=Z&&(Z.type==="star"||Z.type==="globstar");if(r.bash===!0&&(!ne||U[0]&&U[0]!=="/")){Ne({type:"star",value:$,output:""});continue}let Se=B.braces>0&&(G.type==="comma"||G.type==="brace"),Me=oe.length&&(G.type==="pipe"||G.type==="paren");if(!ne&&G.type!=="paren"&&!Se&&!Me){Ne({type:"star",value:$,output:""});continue}for(;U.slice(0,3)==="/**";){let nt=t[B.index+4];if(nt&&nt!=="/")break;U=U.slice(3),ft("/**",3)}if(G.type==="bos"&&ge()){q.type="globstar",q.value+=$,q.output=F(r),B.output=q.output,B.globstar=!0,ft($);continue}if(G.type==="slash"&&G.prev.type!=="bos"&&!Ae&&ge()){B.output=B.output.slice(0,-(G.output+q.output).length),G.output=`(?:${G.output}`,q.type="globstar",q.output=F(r)+(r.strictSlashes?")":"|$)"),q.value+=$,B.globstar=!0,B.output+=G.output+q.output,ft($);continue}if(G.type==="slash"&&G.prev.type!=="bos"&&U[0]==="/"){let nt=U[1]!==void 0?"|$":"";B.output=B.output.slice(0,-(G.output+q.output).length),G.output=`(?:${G.output}`,q.type="globstar",q.output=`${F(r)}${d}|${d}${nt})`,q.value+=$,B.output+=G.output+q.output,B.globstar=!0,ft($+Ee()),Ne({type:"slash",value:"/",output:""});continue}if(G.type==="bos"&&U[0]==="/"){q.type="globstar",q.value+=$,q.output=`(?:^|${d}|${F(r)}${d})`,B.output=q.output,B.globstar=!0,ft($+Ee()),Ne({type:"slash",value:"/",output:""});continue}B.output=B.output.slice(0,-q.output.length),q.type="globstar",q.output=F(r),q.value+=$,B.output+=q.output,B.globstar=!0,ft($);continue}let Q={type:"star",value:$,output:X};if(r.bash===!0){Q.output=".*?",(q.type==="bos"||q.type==="slash")&&(Q.output=H+Q.output),Ne(Q);continue}if(q&&(q.type==="bracket"||q.type==="paren")&&r.regex===!0){Q.output=$,Ne(Q);continue}(B.index===B.start||q.type==="slash"||q.type==="dot")&&(q.type==="dot"?(B.output+=_,q.output+=_):r.dot===!0?(B.output+=R,q.output+=R):(B.output+=H,q.output+=H),he()!=="*"&&(B.output+=T,q.output+=T)),Ne(Q)}for(;B.brackets>0;){if(r.strictBrackets===!0)throw new SyntaxError(Ua("closing","]"));B.output=wr.escapeLast(B.output,"["),Ir("brackets")}for(;B.parens>0;){if(r.strictBrackets===!0)throw new SyntaxError(Ua("closing",")"));B.output=wr.escapeLast(B.output,"("),Ir("parens")}for(;B.braces>0;){if(r.strictBrackets===!0)throw new SyntaxError(Ua("closing","}"));B.output=wr.escapeLast(B.output,"{"),Ir("braces")}if(r.strictSlashes!==!0&&(q.type==="star"||q.type==="bracket")&&Ne({type:"maybe_slash",value:"",output:`${d}?`}),B.backtrack===!0){B.output="";for(let U of B.tokens)B.output+=U.output!=null?U.output:U.value,U.suffix&&(B.output+=U.suffix)}return B};gg.fastpaths=(t,e)=>{let r={...e},i=typeof r.maxLength=="number"?Math.min(Of,r.maxLength):Of,s=t.length;if(s>i)throw new SyntaxError(`Input length: ${s}, exceeds maximum allowed length: ${i}`);t=YI[t]||t;let n=wr.isWindows(e),{DOT_LITERAL:a,SLASH_LITERAL:o,ONE_CHAR:l,DOTS_SLASH:u,NO_DOT:f,NO_DOTS:p,NO_DOTS_SLASH:h,STAR:d,START_ANCHOR:T}=If.globChars(n),b=r.dot?p:f,x=r.dot?h:f,_=r.capture?"":"?:",R={negated:!1,prefix:""},k=r.bash===!0?".*?":d;r.capture&&(k=`(${k})`);let M=H=>H.noglobstar===!0?k:`(${_}(?:(?!${T}${H.dot?u:a}).)*?)`,O=H=>{switch(H){case"*":return`${b}${l}${k}`;case".*":return`${a}${l}${k}`;case"*.*":return`${b}${k}${a}${l}${k}`;case"*/*":return`${b}${k}${o}${l}${x}${k}`;case"**":return b+M(r);case"**/*":return`(?:${b}${M(r)}${o})?${x}${l}${k}`;case"**/*.*":return`(?:${b}${M(r)}${o})?${x}${k}${a}${l}${k}`;case"**/.*":return`(?:${b}${M(r)}${o})?${a}${l}${k}`;default:{let V=/^(.*?)\.(\w+)$/.exec(H);if(!V)return;let X=O(V[1]);return X?X+a+V[2]:void 0}}},L=wr.removePrefix(t,R),F=O(L);return F&&r.strictSlashes!==!0&&(F+=`${o}?`),F};XI.exports=gg});var QI=g((a2e,JI)=>{"use strict";c();var x7=K("path"),P7=GI(),Sg=zI(),Tg=wl(),v7=Al(),A7=t=>t&&typeof t=="object"&&!Array.isArray(t),dt=(t,e,r=!1)=>{if(Array.isArray(t)){let f=t.map(h=>dt(h,e,r));return h=>{for(let d of f){let T=d(h);if(T)return T}return!1}}let i=A7(t)&&t.tokens&&t.input;if(t===""||typeof t!="string"&&!i)throw new TypeError("Expected pattern to be a non-empty string");let s=e||{},n=Tg.isWindows(e),a=i?dt.compileRe(t,e):dt.makeRe(t,e,!1,!0),o=a.state;delete a.state;let l=()=>!1;if(s.ignore){let f={...e,ignore:null,onMatch:null,onResult:null};l=dt(s.ignore,f,r)}let u=(f,p=!1)=>{let{isMatch:h,match:d,output:T}=dt.test(f,a,e,{glob:t,posix:n}),b={glob:t,state:o,regex:a,posix:n,input:f,output:T,match:d,isMatch:h};return typeof s.onResult=="function"&&s.onResult(b),h===!1?(b.isMatch=!1,p?b:!1):l(f)?(typeof s.onIgnore=="function"&&s.onIgnore(b),b.isMatch=!1,p?b:!1):(typeof s.onMatch=="function"&&s.onMatch(b),p?b:!0)};return r&&(u.state=o),u};dt.test=(t,e,r,{glob:i,posix:s}={})=>{if(typeof t!="string")throw new TypeError("Expected input to be a string");if(t==="")return{isMatch:!1,output:""};let n=r||{},a=n.format||(s?Tg.toPosixSlashes:null),o=t===i,l=o&&a?a(t):t;return o===!1&&(l=a?a(t):t,o=l===i),(o===!1||n.capture===!0)&&(n.matchBase===!0||n.basename===!0?o=dt.matchBase(t,e,r,s):o=e.exec(l)),{isMatch:!!o,match:o,output:l}};dt.matchBase=(t,e,r,i=Tg.isWindows(r))=>(e instanceof RegExp?e:dt.makeRe(e,r)).test(x7.basename(t));dt.isMatch=(t,e,r)=>dt(e,r)(t);dt.parse=(t,e)=>Array.isArray(t)?t.map(r=>dt.parse(r,e)):Sg(t,{...e,fastpaths:!1});dt.scan=(t,e)=>P7(t,e);dt.compileRe=(t,e,r=!1,i=!1)=>{if(r===!0)return t.output;let s=e||{},n=s.contains?"":"^",a=s.contains?"":"$",o=`${n}(?:${t.output})${a}`;t&&t.negated===!0&&(o=`^(?!${o}).*$`);let l=dt.toRegex(o,e);return i===!0&&(l.state=t),l};dt.makeRe=(t,e={},r=!1,i=!1)=>{if(!t||typeof t!="string")throw new TypeError("Expected a non-empty string");let s={negated:!1,fastpaths:!0};return e.fastpaths!==!1&&(t[0]==="."||t[0]==="*")&&(s.output=Sg.fastpaths(t,e)),s.output||(s=Sg(t,e)),dt.compileRe(s,e,r,i)};dt.toRegex=(t,e)=>{try{let r=e||{};return new RegExp(t,r.flags||(r.nocase?"i":""))}catch(r){if(e&&e.debug===!0)throw r;return/$^/}};dt.constants=v7;JI.exports=dt});var eO=g((l2e,ZI)=>{"use strict";c();ZI.exports=QI()});var nO=g((c2e,sO)=>{"use strict";c();var rO=K("util"),iO=kI(),gi=eO(),Eg=wl(),tO=t=>t===""||t==="./",it=(t,e,r)=>{e=[].concat(e),t=[].concat(t);let i=new Set,s=new Set,n=new Set,a=0,o=f=>{n.add(f.output),r&&r.onResult&&r.onResult(f)};for(let f=0;f<e.length;f++){let p=gi(String(e[f]),{...r,onResult:o},!0),h=p.state.negated||p.state.negatedExtglob;h&&a++;for(let d of t){let T=p(d,!0);(h?!T.isMatch:T.isMatch)&&(h?i.add(T.output):(i.delete(T.output),s.add(T.output)))}}let u=(a===e.length?[...n]:[...s]).filter(f=>!i.has(f));if(r&&u.length===0){if(r.failglob===!0)throw new Error(`No matches found for "${e.join(", ")}"`);if(r.nonull===!0||r.nullglob===!0)return r.unescape?e.map(f=>f.replace(/\\/g,"")):e}return u};it.match=it;it.matcher=(t,e)=>gi(t,e);it.isMatch=(t,e,r)=>gi(e,r)(t);it.any=it.isMatch;it.not=(t,e,r={})=>{e=[].concat(e).map(String);let i=new Set,s=[],n=o=>{r.onResult&&r.onResult(o),s.push(o.output)},a=new Set(it(t,e,{...r,onResult:n}));for(let o of s)a.has(o)||i.add(o);return[...i]};it.contains=(t,e,r)=>{if(typeof t!="string")throw new TypeError(`Expected a string: "${rO.inspect(t)}"`);if(Array.isArray(e))return e.some(i=>it.contains(t,i,r));if(typeof e=="string"){if(tO(t)||tO(e))return!1;if(t.includes(e)||t.startsWith("./")&&t.slice(2).includes(e))return!0}return it.isMatch(t,e,{...r,contains:!0})};it.matchKeys=(t,e,r)=>{if(!Eg.isObject(t))throw new TypeError("Expected the first argument to be an object");let i=it(Object.keys(t),e,r),s={};for(let n of i)s[n]=t[n];return s};it.some=(t,e,r)=>{let i=[].concat(t);for(let s of[].concat(e)){let n=gi(String(s),r);if(i.some(a=>n(a)))return!0}return!1};it.every=(t,e,r)=>{let i=[].concat(t);for(let s of[].concat(e)){let n=gi(String(s),r);if(!i.every(a=>n(a)))return!1}return!0};it.all=(t,e,r)=>{if(typeof t!="string")throw new TypeError(`Expected a string: "${rO.inspect(t)}"`);return[].concat(e).every(i=>gi(i,r)(t))};it.capture=(t,e,r)=>{let i=Eg.isWindows(r),n=gi.makeRe(String(t),{...r,capture:!0}).exec(i?Eg.toPosixSlashes(e):e);if(n)return n.slice(1).map(a=>a===void 0?"":a)};it.makeRe=(...t)=>gi.makeRe(...t);it.scan=(...t)=>gi.scan(...t);it.parse=(t,e)=>{let r=[];for(let i of[].concat(t||[]))for(let s of iO(String(i),e))r.push(gi.parse(s,e));return r};it.braces=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");return e&&e.nobrace===!0||!/\{.*\}/.test(t)?[t]:iO(t,e)};it.braceExpand=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");return it.braces(t,{...e,expand:!0})};sO.exports=it});var hO=g(xe=>{"use strict";c();Object.defineProperty(xe,"__esModule",{value:!0});xe.matchAny=xe.convertPatternsToRe=xe.makeRe=xe.getPatternParts=xe.expandBraceExpansion=xe.expandPatternsWithBraceExpansion=xe.isAffectDepthOfReadingPattern=xe.endsWithSlashGlobStar=xe.hasGlobStar=xe.getBaseDirectory=xe.isPatternRelatedToParentDirectory=xe.getPatternsOutsideCurrentDirectory=xe.getPatternsInsideCurrentDirectory=xe.getPositivePatterns=xe.getNegativePatterns=xe.isPositivePattern=xe.isNegativePattern=xe.convertToNegativePattern=xe.convertToPositivePattern=xe.isDynamicPattern=xe.isStaticPattern=void 0;var w7=K("path"),_7=JC(),bg=nO(),aO="**",C7="\\",I7=/[*?]|^!/,O7=/\[[^[]*]/,N7=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,D7=/[!*+?@]\([^(]*\)/,L7=/,|\.\./;function oO(t,e={}){return!lO(t,e)}xe.isStaticPattern=oO;function lO(t,e={}){return t===""?!1:!!(e.caseSensitiveMatch===!1||t.includes(C7)||I7.test(t)||O7.test(t)||N7.test(t)||e.extglob!==!1&&D7.test(t)||e.braceExpansion!==!1&&k7(t))}xe.isDynamicPattern=lO;function k7(t){let e=t.indexOf("{");if(e===-1)return!1;let r=t.indexOf("}",e+1);if(r===-1)return!1;let i=t.slice(e,r);return L7.test(i)}function R7(t){return Nf(t)?t.slice(1):t}xe.convertToPositivePattern=R7;function M7(t){return"!"+t}xe.convertToNegativePattern=M7;function Nf(t){return t.startsWith("!")&&t[1]!=="("}xe.isNegativePattern=Nf;function uO(t){return!Nf(t)}xe.isPositivePattern=uO;function F7(t){return t.filter(Nf)}xe.getNegativePatterns=F7;function B7(t){return t.filter(uO)}xe.getPositivePatterns=B7;function j7(t){return t.filter(e=>!xg(e))}xe.getPatternsInsideCurrentDirectory=j7;function q7(t){return t.filter(xg)}xe.getPatternsOutsideCurrentDirectory=q7;function xg(t){return t.startsWith("..")||t.startsWith("./..")}xe.isPatternRelatedToParentDirectory=xg;function U7(t){return _7(t,{flipBackslashes:!1})}xe.getBaseDirectory=U7;function $7(t){return t.includes(aO)}xe.hasGlobStar=$7;function cO(t){return t.endsWith("/"+aO)}xe.endsWithSlashGlobStar=cO;function V7(t){let e=w7.basename(t);return cO(t)||oO(e)}xe.isAffectDepthOfReadingPattern=V7;function K7(t){return t.reduce((e,r)=>e.concat(fO(r)),[])}xe.expandPatternsWithBraceExpansion=K7;function fO(t){return bg.braces(t,{expand:!0,nodupes:!0})}xe.expandBraceExpansion=fO;function H7(t,e){let{parts:r}=bg.scan(t,Object.assign(Object.assign({},e),{parts:!0}));return r.length===0&&(r=[t]),r[0].startsWith("/")&&(r[0]=r[0].slice(1),r.unshift("")),r}xe.getPatternParts=H7;function pO(t,e){return bg.makeRe(t,e)}xe.makeRe=pO;function W7(t,e){return t.map(r=>pO(r,e))}xe.convertPatternsToRe=W7;function G7(t,e){return e.some(r=>r.test(t))}xe.matchAny=G7});var mO=g(Df=>{"use strict";c();Object.defineProperty(Df,"__esModule",{value:!0});Df.merge=void 0;var Y7=rg();function X7(t){let e=Y7(t);return t.forEach(r=>{r.once("error",i=>e.emit("error",i))}),e.once("close",()=>dO(t)),e.once("end",()=>dO(t)),e}Df.merge=X7;function dO(t){t.forEach(e=>e.emit("close"))}});var yO=g($a=>{"use strict";c();Object.defineProperty($a,"__esModule",{value:!0});$a.isEmpty=$a.isString=void 0;function z7(t){return typeof t=="string"}$a.isString=z7;function J7(t){return t===""}$a.isEmpty=J7});var Vi=g(Bt=>{"use strict";c();Object.defineProperty(Bt,"__esModule",{value:!0});Bt.string=Bt.stream=Bt.pattern=Bt.path=Bt.fs=Bt.errno=Bt.array=void 0;var Q7=UC();Bt.array=Q7;var Z7=$C();Bt.errno=Z7;var eV=VC();Bt.fs=eV;var tV=KC();Bt.path=tV;var rV=hO();Bt.pattern=rV;var iV=mO();Bt.stream=iV;var sV=yO();Bt.string=sV});var TO=g(jt=>{"use strict";c();Object.defineProperty(jt,"__esModule",{value:!0});jt.convertPatternGroupToTask=jt.convertPatternGroupsToTasks=jt.groupPatternsByBaseDirectory=jt.getNegativePatternsAsPositive=jt.getPositivePatterns=jt.convertPatternsToTasks=jt.generate=void 0;var Ki=Vi();function nV(t,e){let r=gO(t),i=SO(t,e.ignore),s=r.filter(l=>Ki.pattern.isStaticPattern(l,e)),n=r.filter(l=>Ki.pattern.isDynamicPattern(l,e)),a=Pg(s,i,!1),o=Pg(n,i,!0);return a.concat(o)}jt.generate=nV;function Pg(t,e,r){let i=[],s=Ki.pattern.getPatternsOutsideCurrentDirectory(t),n=Ki.pattern.getPatternsInsideCurrentDirectory(t),a=vg(s),o=vg(n);return i.push(...Ag(a,e,r)),"."in o?i.push(wg(".",n,e,r)):i.push(...Ag(o,e,r)),i}jt.convertPatternsToTasks=Pg;function gO(t){return Ki.pattern.getPositivePatterns(t)}jt.getPositivePatterns=gO;function SO(t,e){return Ki.pattern.getNegativePatterns(t).concat(e).map(Ki.pattern.convertToPositivePattern)}jt.getNegativePatternsAsPositive=SO;function vg(t){let e={};return t.reduce((r,i)=>{let s=Ki.pattern.getBaseDirectory(i);return s in r?r[s].push(i):r[s]=[i],r},e)}jt.groupPatternsByBaseDirectory=vg;function Ag(t,e,r){return Object.keys(t).map(i=>wg(i,t[i],e,r))}jt.convertPatternGroupsToTasks=Ag;function wg(t,e,r,i){return{dynamic:i,positive:e,negative:r,base:t,patterns:[].concat(e,r.map(Ki.pattern.convertToNegativePattern))}}jt.convertPatternGroupToTask=wg});var bO=g(Va=>{"use strict";c();Object.defineProperty(Va,"__esModule",{value:!0});Va.removeDuplicateSlashes=Va.transform=void 0;var aV=/(?!^)\/{2,}/g;function oV(t){return t.map(e=>EO(e))}Va.transform=oV;function EO(t){return t.replace(aV,"/")}Va.removeDuplicateSlashes=EO});var PO=g(Lf=>{"use strict";c();Object.defineProperty(Lf,"__esModule",{value:!0});Lf.read=void 0;function lV(t,e,r){e.fs.lstat(t,(i,s)=>{if(i!==null){xO(r,i);return}if(!s.isSymbolicLink()||!e.followSymbolicLink){_g(r,s);return}e.fs.stat(t,(n,a)=>{if(n!==null){if(e.throwErrorOnBrokenSymbolicLink){xO(r,n);return}_g(r,s);return}e.markSymbolicLink&&(a.isSymbolicLink=()=>!0),_g(r,a)})})}Lf.read=lV;function xO(t,e){t(e)}function _g(t,e){t(null,e)}});var vO=g(kf=>{"use strict";c();Object.defineProperty(kf,"__esModule",{value:!0});kf.read=void 0;function uV(t,e){let r=e.fs.lstatSync(t);if(!r.isSymbolicLink()||!e.followSymbolicLink)return r;try{let i=e.fs.statSync(t);return e.markSymbolicLink&&(i.isSymbolicLink=()=>!0),i}catch(i){if(!e.throwErrorOnBrokenSymbolicLink)return r;throw i}}kf.read=uV});var AO=g(Ds=>{"use strict";c();Object.defineProperty(Ds,"__esModule",{value:!0});Ds.createFileSystemAdapter=Ds.FILE_SYSTEM_ADAPTER=void 0;var Rf=K("fs");Ds.FILE_SYSTEM_ADAPTER={lstat:Rf.lstat,stat:Rf.stat,lstatSync:Rf.lstatSync,statSync:Rf.statSync};function cV(t){return t===void 0?Ds.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},Ds.FILE_SYSTEM_ADAPTER),t)}Ds.createFileSystemAdapter=cV});var wO=g(Ig=>{"use strict";c();Object.defineProperty(Ig,"__esModule",{value:!0});var fV=AO(),Cg=class{constructor(e={}){this._options=e,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=fV.createFileSystemAdapter(this._options.fs),this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0)}_getValue(e,r){return e??r}};Ig.default=Cg});var On=g(Ls=>{"use strict";c();Object.defineProperty(Ls,"__esModule",{value:!0});Ls.statSync=Ls.stat=Ls.Settings=void 0;var _O=PO(),pV=vO(),Og=wO();Ls.Settings=Og.default;function hV(t,e,r){if(typeof e=="function"){_O.read(t,Ng(),e);return}_O.read(t,Ng(e),r)}Ls.stat=hV;function dV(t,e){let r=Ng(e);return pV.read(t,r)}Ls.statSync=dV;function Ng(t={}){return t instanceof Og.default?t:new Og.default(t)}});var OO=g((k2e,IO)=>{c();var CO;IO.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:global):t=>(CO||(CO=Promise.resolve())).then(t).catch(e=>setTimeout(()=>{throw e},0))});var DO=g((M2e,NO)=>{c();NO.exports=yV;var mV=OO();function yV(t,e){let r,i,s,n=!0;Array.isArray(t)?(r=[],i=t.length):(s=Object.keys(t),r={},i=s.length);function a(l){function u(){e&&e(l,r),e=null}n?mV(u):u()}function o(l,u,f){r[l]=f,(--i===0||u)&&a(u)}i?s?s.forEach(function(l){t[l](function(u,f){o(l,u,f)})}):t.forEach(function(l,u){l(function(f,p){o(u,f,p)})}):a(null),n=!1}});var Dg=g(Ff=>{"use strict";c();Object.defineProperty(Ff,"__esModule",{value:!0});Ff.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var Mf=process.versions.node.split(".");if(Mf[0]===void 0||Mf[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var LO=Number.parseInt(Mf[0],10),gV=Number.parseInt(Mf[1],10),kO=10,SV=10,TV=LO>kO,EV=LO===kO&&gV>=SV;Ff.IS_SUPPORT_READDIR_WITH_FILE_TYPES=TV||EV});var RO=g(Bf=>{"use strict";c();Object.defineProperty(Bf,"__esModule",{value:!0});Bf.createDirentFromStats=void 0;var Lg=class{constructor(e,r){this.name=e,this.isBlockDevice=r.isBlockDevice.bind(r),this.isCharacterDevice=r.isCharacterDevice.bind(r),this.isDirectory=r.isDirectory.bind(r),this.isFIFO=r.isFIFO.bind(r),this.isFile=r.isFile.bind(r),this.isSocket=r.isSocket.bind(r),this.isSymbolicLink=r.isSymbolicLink.bind(r)}};function bV(t,e){return new Lg(t,e)}Bf.createDirentFromStats=bV});var kg=g(jf=>{"use strict";c();Object.defineProperty(jf,"__esModule",{value:!0});jf.fs=void 0;var xV=RO();jf.fs=xV});var Rg=g(qf=>{"use strict";c();Object.defineProperty(qf,"__esModule",{value:!0});qf.joinPathSegments=void 0;function PV(t,e,r){return t.endsWith(r)?t+e:t+r+e}qf.joinPathSegments=PV});var UO=g(ks=>{"use strict";c();Object.defineProperty(ks,"__esModule",{value:!0});ks.readdir=ks.readdirWithFileTypes=ks.read=void 0;var vV=On(),MO=DO(),AV=Dg(),FO=kg(),BO=Rg();function wV(t,e,r){if(!e.stats&&AV.IS_SUPPORT_READDIR_WITH_FILE_TYPES){jO(t,e,r);return}qO(t,e,r)}ks.read=wV;function jO(t,e,r){e.fs.readdir(t,{withFileTypes:!0},(i,s)=>{if(i!==null){Uf(r,i);return}let n=s.map(o=>({dirent:o,name:o.name,path:BO.joinPathSegments(t,o.name,e.pathSegmentSeparator)}));if(!e.followSymbolicLinks){Mg(r,n);return}let a=n.map(o=>_V(o,e));MO(a,(o,l)=>{if(o!==null){Uf(r,o);return}Mg(r,l)})})}ks.readdirWithFileTypes=jO;function _V(t,e){return r=>{if(!t.dirent.isSymbolicLink()){r(null,t);return}e.fs.stat(t.path,(i,s)=>{if(i!==null){if(e.throwErrorOnBrokenSymbolicLink){r(i);return}r(null,t);return}t.dirent=FO.fs.createDirentFromStats(t.name,s),r(null,t)})}}function qO(t,e,r){e.fs.readdir(t,(i,s)=>{if(i!==null){Uf(r,i);return}let n=s.map(a=>{let o=BO.joinPathSegments(t,a,e.pathSegmentSeparator);return l=>{vV.stat(o,e.fsStatSettings,(u,f)=>{if(u!==null){l(u);return}let p={name:a,path:o,dirent:FO.fs.createDirentFromStats(a,f)};e.stats&&(p.stats=f),l(null,p)})}});MO(n,(a,o)=>{if(a!==null){Uf(r,a);return}Mg(r,o)})})}ks.readdir=qO;function Uf(t,e){t(e)}function Mg(t,e){t(null,e)}});var WO=g(Rs=>{"use strict";c();Object.defineProperty(Rs,"__esModule",{value:!0});Rs.readdir=Rs.readdirWithFileTypes=Rs.read=void 0;var CV=On(),IV=Dg(),$O=kg(),VO=Rg();function OV(t,e){return!e.stats&&IV.IS_SUPPORT_READDIR_WITH_FILE_TYPES?KO(t,e):HO(t,e)}Rs.read=OV;function KO(t,e){return e.fs.readdirSync(t,{withFileTypes:!0}).map(i=>{let s={dirent:i,name:i.name,path:VO.joinPathSegments(t,i.name,e.pathSegmentSeparator)};if(s.dirent.isSymbolicLink()&&e.followSymbolicLinks)try{let n=e.fs.statSync(s.path);s.dirent=$O.fs.createDirentFromStats(s.name,n)}catch(n){if(e.throwErrorOnBrokenSymbolicLink)throw n}return s})}Rs.readdirWithFileTypes=KO;function HO(t,e){return e.fs.readdirSync(t).map(i=>{let s=VO.joinPathSegments(t,i,e.pathSegmentSeparator),n=CV.statSync(s,e.fsStatSettings),a={name:i,path:s,dirent:$O.fs.createDirentFromStats(i,n)};return e.stats&&(a.stats=n),a})}Rs.readdir=HO});var GO=g(Ms=>{"use strict";c();Object.defineProperty(Ms,"__esModule",{value:!0});Ms.createFileSystemAdapter=Ms.FILE_SYSTEM_ADAPTER=void 0;var Ka=K("fs");Ms.FILE_SYSTEM_ADAPTER={lstat:Ka.lstat,stat:Ka.stat,lstatSync:Ka.lstatSync,statSync:Ka.statSync,readdir:Ka.readdir,readdirSync:Ka.readdirSync};function NV(t){return t===void 0?Ms.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},Ms.FILE_SYSTEM_ADAPTER),t)}Ms.createFileSystemAdapter=NV});var YO=g(Bg=>{"use strict";c();Object.defineProperty(Bg,"__esModule",{value:!0});var DV=K("path"),LV=On(),kV=GO(),Fg=class{constructor(e={}){this._options=e,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=kV.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,DV.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new LV.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(e,r){return e??r}};Bg.default=Fg});var $f=g(Fs=>{"use strict";c();Object.defineProperty(Fs,"__esModule",{value:!0});Fs.Settings=Fs.scandirSync=Fs.scandir=void 0;var XO=UO(),RV=WO(),jg=YO();Fs.Settings=jg.default;function MV(t,e,r){if(typeof e=="function"){XO.read(t,qg(),e);return}XO.read(t,qg(e),r)}Fs.scandir=MV;function FV(t,e){let r=qg(e);return RV.read(t,r)}Fs.scandirSync=FV;function qg(t={}){return t instanceof jg.default?t:new jg.default(t)}});var JO=g((rFe,zO)=>{"use strict";c();function BV(t){var e=new t,r=e;function i(){var n=e;return n.next?e=n.next:(e=new t,r=e),n.next=null,n}function s(n){r.next=n,r=n}return{get:i,release:s}}zO.exports=BV});var ZO=g((sFe,Ug)=>{"use strict";c();var jV=JO();function QO(t,e,r){if(typeof t=="function"&&(r=e,e=t,t=null),r<1)throw new Error("fastqueue concurrency must be greater than 1");var i=jV(qV),s=null,n=null,a=0,o=null,l={push:b,drain:qr,saturated:qr,pause:f,paused:!1,concurrency:r,running:u,resume:d,idle:T,length:p,getQueue:h,unshift:x,empty:qr,kill:R,killAndDrain:k,error:M};return l;function u(){return a}function f(){l.paused=!0}function p(){for(var O=s,L=0;O;)O=O.next,L++;return L}function h(){for(var O=s,L=[];O;)L.push(O.value),O=O.next;return L}function d(){if(l.paused){l.paused=!1;for(var O=0;O<l.concurrency;O++)a++,_()}}function T(){return a===0&&l.length()===0}function b(O,L){var F=i.get();F.context=t,F.release=_,F.value=O,F.callback=L||qr,F.errorHandler=o,a===l.concurrency||l.paused?n?(n.next=F,n=F):(s=F,n=F,l.saturated()):(a++,e.call(t,F.value,F.worked))}function x(O,L){var F=i.get();F.context=t,F.release=_,F.value=O,F.callback=L||qr,a===l.concurrency||l.paused?s?(F.next=s,s=F):(s=F,n=F,l.saturated()):(a++,e.call(t,F.value,F.worked))}function _(O){O&&i.release(O);var L=s;L?l.paused?a--:(n===s&&(n=null),s=L.next,L.next=null,e.call(t,L.value,L.worked),n===null&&l.empty()):--a===0&&l.drain()}function R(){s=null,n=null,l.drain=qr}function k(){s=null,n=null,l.drain(),l.drain=qr}function M(O){o=O}}function qr(){}function qV(){this.value=null,this.callback=qr,this.next=null,this.release=qr,this.context=null,this.errorHandler=null;var t=this;this.worked=function(r,i){var s=t.callback,n=t.errorHandler,a=t.value;t.value=null,t.callback=qr,t.errorHandler&&n(r,a),s.call(t.context,r,i),t.release(t)}}function UV(t,e,r){typeof t=="function"&&(r=e,e=t,t=null);function i(f,p){e.call(this,f).then(function(h){p(null,h)},p)}var s=QO(t,i,r),n=s.push,a=s.unshift;return s.push=o,s.unshift=l,s.drained=u,s;function o(f){var p=new Promise(function(h,d){n(f,function(T,b){if(T){d(T);return}h(b)})});return p.catch(qr),p}function l(f){var p=new Promise(function(h,d){a(f,function(T,b){if(T){d(T);return}h(b)})});return p.catch(qr),p}function u(){if(s.idle())return new Promise(function(h){h()});var f=s.drain,p=new Promise(function(h){s.drain=function(){f(),h()}});return p}}Ug.exports=QO;Ug.exports.promise=UV});var Vf=g(Si=>{"use strict";c();Object.defineProperty(Si,"__esModule",{value:!0});Si.joinPathSegments=Si.replacePathSegmentSeparator=Si.isAppliedFilter=Si.isFatalError=void 0;function $V(t,e){return t.errorFilter===null?!0:!t.errorFilter(e)}Si.isFatalError=$V;function VV(t,e){return t===null||t(e)}Si.isAppliedFilter=VV;function KV(t,e){return t.split(/[/\\]/).join(e)}Si.replacePathSegmentSeparator=KV;function HV(t,e,r){return t===""?e:t.endsWith(r)?t+e:t+r+e}Si.joinPathSegments=HV});var Kg=g(Vg=>{"use strict";c();Object.defineProperty(Vg,"__esModule",{value:!0});var WV=Vf(),$g=class{constructor(e,r){this._root=e,this._settings=r,this._root=WV.replacePathSegmentSeparator(e,r.pathSegmentSeparator)}};Vg.default=$g});var Gg=g(Wg=>{"use strict";c();Object.defineProperty(Wg,"__esModule",{value:!0});var GV=K("events"),YV=$f(),XV=ZO(),Kf=Vf(),zV=Kg(),Hg=class extends zV.default{constructor(e,r){super(e,r),this._settings=r,this._scandir=YV.scandir,this._emitter=new GV.EventEmitter,this._queue=XV(this._worker.bind(this),this._settings.concurrency),this._isFatalError=!1,this._isDestroyed=!1,this._queue.drain=()=>{this._isFatalError||this._emitter.emit("end")}}read(){return this._isFatalError=!1,this._isDestroyed=!1,setImmediate(()=>{this._pushToQueue(this._root,this._settings.basePath)}),this._emitter}get isDestroyed(){return this._isDestroyed}destroy(){if(this._isDestroyed)throw new Error("The reader is already destroyed");this._isDestroyed=!0,this._queue.killAndDrain()}onEntry(e){this._emitter.on("entry",e)}onError(e){this._emitter.once("error",e)}onEnd(e){this._emitter.once("end",e)}_pushToQueue(e,r){let i={directory:e,base:r};this._queue.push(i,s=>{s!==null&&this._handleError(s)})}_worker(e,r){this._scandir(e.directory,this._settings.fsScandirSettings,(i,s)=>{if(i!==null){r(i,void 0);return}for(let n of s)this._handleEntry(n,e.base);r(null,void 0)})}_handleError(e){this._isDestroyed||!Kf.isFatalError(this._settings,e)||(this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",e))}_handleEntry(e,r){if(this._isDestroyed||this._isFatalError)return;let i=e.path;r!==void 0&&(e.path=Kf.joinPathSegments(r,e.name,this._settings.pathSegmentSeparator)),Kf.isAppliedFilter(this._settings.entryFilter,e)&&this._emitEntry(e),e.dirent.isDirectory()&&Kf.isAppliedFilter(this._settings.deepFilter,e)&&this._pushToQueue(i,r===void 0?void 0:e.path)}_emitEntry(e){this._emitter.emit("entry",e)}};Wg.default=Hg});var eN=g(Xg=>{"use strict";c();Object.defineProperty(Xg,"__esModule",{value:!0});var JV=Gg(),Yg=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new JV.default(this._root,this._settings),this._storage=[]}read(e){this._reader.onError(r=>{QV(e,r)}),this._reader.onEntry(r=>{this._storage.push(r)}),this._reader.onEnd(()=>{ZV(e,this._storage)}),this._reader.read()}};Xg.default=Yg;function QV(t,e){t(e)}function ZV(t,e){t(null,e)}});var tN=g(Jg=>{"use strict";c();Object.defineProperty(Jg,"__esModule",{value:!0});var eK=K("stream"),tK=Gg(),zg=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new tK.default(this._root,this._settings),this._stream=new eK.Readable({objectMode:!0,read:()=>{},destroy:()=>{this._reader.isDestroyed||this._reader.destroy()}})}read(){return this._reader.onError(e=>{this._stream.emit("error",e)}),this._reader.onEntry(e=>{this._stream.push(e)}),this._reader.onEnd(()=>{this._stream.push(null)}),this._reader.read(),this._stream}};Jg.default=zg});var rN=g(Zg=>{"use strict";c();Object.defineProperty(Zg,"__esModule",{value:!0});var rK=$f(),Hf=Vf(),iK=Kg(),Qg=class extends iK.default{constructor(){super(...arguments),this._scandir=rK.scandirSync,this._storage=[],this._queue=new Set}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),this._storage}_pushToQueue(e,r){this._queue.add({directory:e,base:r})}_handleQueue(){for(let e of this._queue.values())this._handleDirectory(e.directory,e.base)}_handleDirectory(e,r){try{let i=this._scandir(e,this._settings.fsScandirSettings);for(let s of i)this._handleEntry(s,r)}catch(i){this._handleError(i)}}_handleError(e){if(Hf.isFatalError(this._settings,e))throw e}_handleEntry(e,r){let i=e.path;r!==void 0&&(e.path=Hf.joinPathSegments(r,e.name,this._settings.pathSegmentSeparator)),Hf.isAppliedFilter(this._settings.entryFilter,e)&&this._pushToStorage(e),e.dirent.isDirectory()&&Hf.isAppliedFilter(this._settings.deepFilter,e)&&this._pushToQueue(i,r===void 0?void 0:e.path)}_pushToStorage(e){this._storage.push(e)}};Zg.default=Qg});var iN=g(tS=>{"use strict";c();Object.defineProperty(tS,"__esModule",{value:!0});var sK=rN(),eS=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new sK.default(this._root,this._settings)}read(){return this._reader.read()}};tS.default=eS});var sN=g(iS=>{"use strict";c();Object.defineProperty(iS,"__esModule",{value:!0});var nK=K("path"),aK=$f(),rS=class{constructor(e={}){this._options=e,this.basePath=this._getValue(this._options.basePath,void 0),this.concurrency=this._getValue(this._options.concurrency,Number.POSITIVE_INFINITY),this.deepFilter=this._getValue(this._options.deepFilter,null),this.entryFilter=this._getValue(this._options.entryFilter,null),this.errorFilter=this._getValue(this._options.errorFilter,null),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,nK.sep),this.fsScandirSettings=new aK.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(e,r){return e??r}};iS.default=rS});var Gf=g(Ti=>{"use strict";c();Object.defineProperty(Ti,"__esModule",{value:!0});Ti.Settings=Ti.walkStream=Ti.walkSync=Ti.walk=void 0;var nN=eN(),oK=tN(),lK=iN(),sS=sN();Ti.Settings=sS.default;function uK(t,e,r){if(typeof e=="function"){new nN.default(t,Wf()).read(e);return}new nN.default(t,Wf(e)).read(r)}Ti.walk=uK;function cK(t,e){let r=Wf(e);return new lK.default(t,r).read()}Ti.walkSync=cK;function fK(t,e){let r=Wf(e);return new oK.default(t,r).read()}Ti.walkStream=fK;function Wf(t={}){return t instanceof sS.default?t:new sS.default(t)}});var Yf=g(aS=>{"use strict";c();Object.defineProperty(aS,"__esModule",{value:!0});var pK=K("path"),hK=On(),aN=Vi(),nS=class{constructor(e){this._settings=e,this._fsStatSettings=new hK.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(e){return pK.resolve(this._settings.cwd,e)}_makeEntry(e,r){let i={name:r,path:r,dirent:aN.fs.createDirentFromStats(r,e)};return this._settings.stats&&(i.stats=e),i}_isFatalError(e){return!aN.errno.isEnoentCodeError(e)&&!this._settings.suppressErrors}};aS.default=nS});var uS=g(lS=>{"use strict";c();Object.defineProperty(lS,"__esModule",{value:!0});var dK=K("stream"),mK=On(),yK=Gf(),gK=Yf(),oS=class extends gK.default{constructor(){super(...arguments),this._walkStream=yK.walkStream,this._stat=mK.stat}dynamic(e,r){return this._walkStream(e,r)}static(e,r){let i=e.map(this._getFullEntryPath,this),s=new dK.PassThrough({objectMode:!0});s._write=(n,a,o)=>this._getEntry(i[n],e[n],r).then(l=>{l!==null&&r.entryFilter(l)&&s.push(l),n===i.length-1&&s.end(),o()}).catch(o);for(let n=0;n<i.length;n++)s.write(n);return s}_getEntry(e,r,i){return this._getStat(e).then(s=>this._makeEntry(s,r)).catch(s=>{if(i.errorFilter(s))return null;throw s})}_getStat(e){return new Promise((r,i)=>{this._stat(e,this._fsStatSettings,(s,n)=>s===null?r(n):i(s))})}};lS.default=oS});var oN=g(fS=>{"use strict";c();Object.defineProperty(fS,"__esModule",{value:!0});var SK=Gf(),TK=Yf(),EK=uS(),cS=class extends TK.default{constructor(){super(...arguments),this._walkAsync=SK.walk,this._readerStream=new EK.default(this._settings)}dynamic(e,r){return new Promise((i,s)=>{this._walkAsync(e,r,(n,a)=>{n===null?i(a):s(n)})})}async static(e,r){let i=[],s=this._readerStream.static(e,r);return new Promise((n,a)=>{s.once("error",a),s.on("data",o=>i.push(o)),s.once("end",()=>n(i))})}};fS.default=cS});var lN=g(hS=>{"use strict";c();Object.defineProperty(hS,"__esModule",{value:!0});var Ha=Vi(),pS=class{constructor(e,r,i){this._patterns=e,this._settings=r,this._micromatchOptions=i,this._storage=[],this._fillStorage()}_fillStorage(){let e=Ha.pattern.expandPatternsWithBraceExpansion(this._patterns);for(let r of e){let i=this._getPatternSegments(r),s=this._splitSegmentsIntoSections(i);this._storage.push({complete:s.length<=1,pattern:r,segments:i,sections:s})}}_getPatternSegments(e){return Ha.pattern.getPatternParts(e,this._micromatchOptions).map(i=>Ha.pattern.isDynamicPattern(i,this._settings)?{dynamic:!0,pattern:i,patternRe:Ha.pattern.makeRe(i,this._micromatchOptions)}:{dynamic:!1,pattern:i})}_splitSegmentsIntoSections(e){return Ha.array.splitWhen(e,r=>r.dynamic&&Ha.pattern.hasGlobStar(r.pattern))}};hS.default=pS});var uN=g(mS=>{"use strict";c();Object.defineProperty(mS,"__esModule",{value:!0});var bK=lN(),dS=class extends bK.default{match(e){let r=e.split("/"),i=r.length,s=this._storage.filter(n=>!n.complete||n.segments.length>i);for(let n of s){let a=n.sections[0];if(!n.complete&&i>a.length||r.every((l,u)=>{let f=n.segments[u];return!!(f.dynamic&&f.patternRe.test(l)||!f.dynamic&&f.pattern===l)}))return!0}return!1}};mS.default=dS});var cN=g(gS=>{"use strict";c();Object.defineProperty(gS,"__esModule",{value:!0});var Xf=Vi(),xK=uN(),yS=class{constructor(e,r){this._settings=e,this._micromatchOptions=r}getFilter(e,r,i){let s=this._getMatcher(r),n=this._getNegativePatternsRe(i);return a=>this._filter(e,a,s,n)}_getMatcher(e){return new xK.default(e,this._settings,this._micromatchOptions)}_getNegativePatternsRe(e){let r=e.filter(Xf.pattern.isAffectDepthOfReadingPattern);return Xf.pattern.convertPatternsToRe(r,this._micromatchOptions)}_filter(e,r,i,s){if(this._isSkippedByDeep(e,r.path)||this._isSkippedSymbolicLink(r))return!1;let n=Xf.path.removeLeadingDotSegment(r.path);return this._isSkippedByPositivePatterns(n,i)?!1:this._isSkippedByNegativePatterns(n,s)}_isSkippedByDeep(e,r){return this._settings.deep===1/0?!1:this._getEntryLevel(e,r)>=this._settings.deep}_getEntryLevel(e,r){let i=r.split("/").length;if(e==="")return i;let s=e.split("/").length;return i-s}_isSkippedSymbolicLink(e){return!this._settings.followSymbolicLinks&&e.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(e,r){return!this._settings.baseNameMatch&&!r.match(e)}_isSkippedByNegativePatterns(e,r){return!Xf.pattern.matchAny(e,r)}};gS.default=yS});var fN=g(TS=>{"use strict";c();Object.defineProperty(TS,"__esModule",{value:!0});var Nn=Vi(),SS=class{constructor(e,r){this._settings=e,this._micromatchOptions=r,this.index=new Map}getFilter(e,r){let i=Nn.pattern.convertPatternsToRe(e,this._micromatchOptions),s=Nn.pattern.convertPatternsToRe(r,this._micromatchOptions);return n=>this._filter(n,i,s)}_filter(e,r,i){if(this._settings.unique&&this._isDuplicateEntry(e)||this._onlyFileFilter(e)||this._onlyDirectoryFilter(e)||this._isSkippedByAbsoluteNegativePatterns(e.path,i))return!1;let s=this._settings.baseNameMatch?e.name:e.path,n=e.dirent.isDirectory(),a=this._isMatchToPatterns(s,r,n)&&!this._isMatchToPatterns(e.path,i,n);return this._settings.unique&&a&&this._createIndexRecord(e),a}_isDuplicateEntry(e){return this.index.has(e.path)}_createIndexRecord(e){this.index.set(e.path,void 0)}_onlyFileFilter(e){return this._settings.onlyFiles&&!e.dirent.isFile()}_onlyDirectoryFilter(e){return this._settings.onlyDirectories&&!e.dirent.isDirectory()}_isSkippedByAbsoluteNegativePatterns(e,r){if(!this._settings.absolute)return!1;let i=Nn.path.makeAbsolute(this._settings.cwd,e);return Nn.pattern.matchAny(i,r)}_isMatchToPatterns(e,r,i){let s=Nn.path.removeLeadingDotSegment(e),n=Nn.pattern.matchAny(s,r);return!n&&i?Nn.pattern.matchAny(s+"/",r):n}};TS.default=SS});var pN=g(bS=>{"use strict";c();Object.defineProperty(bS,"__esModule",{value:!0});var PK=Vi(),ES=class{constructor(e){this._settings=e}getFilter(){return e=>this._isNonFatalError(e)}_isNonFatalError(e){return PK.errno.isEnoentCodeError(e)||this._settings.suppressErrors}};bS.default=ES});var dN=g(PS=>{"use strict";c();Object.defineProperty(PS,"__esModule",{value:!0});var hN=Vi(),xS=class{constructor(e){this._settings=e}getTransformer(){return e=>this._transform(e)}_transform(e){let r=e.path;return this._settings.absolute&&(r=hN.path.makeAbsolute(this._settings.cwd,r),r=hN.path.unixify(r)),this._settings.markDirectories&&e.dirent.isDirectory()&&(r+="/"),this._settings.objectMode?Object.assign(Object.assign({},e),{path:r}):r}};PS.default=xS});var zf=g(AS=>{"use strict";c();Object.defineProperty(AS,"__esModule",{value:!0});var vK=K("path"),AK=cN(),wK=fN(),_K=pN(),CK=dN(),vS=class{constructor(e){this._settings=e,this.errorFilter=new _K.default(this._settings),this.entryFilter=new wK.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new AK.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new CK.default(this._settings)}_getRootDirectory(e){return vK.resolve(this._settings.cwd,e.base)}_getReaderOptions(e){let r=e.base==="."?"":e.base;return{basePath:r,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(r,e.positive,e.negative),entryFilter:this.entryFilter.getFilter(e.positive,e.negative),errorFilter:this.errorFilter.getFilter(),followSymbolicLinks:this._settings.followSymbolicLinks,fs:this._settings.fs,stats:this._settings.stats,throwErrorOnBrokenSymbolicLink:this._settings.throwErrorOnBrokenSymbolicLink,transform:this.entryTransformer.getTransformer()}}_getMicromatchOptions(){return{dot:this._settings.dot,matchBase:this._settings.baseNameMatch,nobrace:!this._settings.braceExpansion,nocase:!this._settings.caseSensitiveMatch,noext:!this._settings.extglob,noglobstar:!this._settings.globstar,posix:!0,strictSlashes:!1}}};AS.default=vS});var mN=g(_S=>{"use strict";c();Object.defineProperty(_S,"__esModule",{value:!0});var IK=oN(),OK=zf(),wS=class extends OK.default{constructor(){super(...arguments),this._reader=new IK.default(this._settings)}async read(e){let r=this._getRootDirectory(e),i=this._getReaderOptions(e);return(await this.api(r,e,i)).map(n=>i.transform(n))}api(e,r,i){return r.dynamic?this._reader.dynamic(e,i):this._reader.static(r.patterns,i)}};_S.default=wS});var yN=g(IS=>{"use strict";c();Object.defineProperty(IS,"__esModule",{value:!0});var NK=K("stream"),DK=uS(),LK=zf(),CS=class extends LK.default{constructor(){super(...arguments),this._reader=new DK.default(this._settings)}read(e){let r=this._getRootDirectory(e),i=this._getReaderOptions(e),s=this.api(r,e,i),n=new NK.Readable({objectMode:!0,read:()=>{}});return s.once("error",a=>n.emit("error",a)).on("data",a=>n.emit("data",i.transform(a))).once("end",()=>n.emit("end")),n.once("close",()=>s.destroy()),n}api(e,r,i){return r.dynamic?this._reader.dynamic(e,i):this._reader.static(r.patterns,i)}};IS.default=CS});var gN=g(NS=>{"use strict";c();Object.defineProperty(NS,"__esModule",{value:!0});var kK=On(),RK=Gf(),MK=Yf(),OS=class extends MK.default{constructor(){super(...arguments),this._walkSync=RK.walkSync,this._statSync=kK.statSync}dynamic(e,r){return this._walkSync(e,r)}static(e,r){let i=[];for(let s of e){let n=this._getFullEntryPath(s),a=this._getEntry(n,s,r);a===null||!r.entryFilter(a)||i.push(a)}return i}_getEntry(e,r,i){try{let s=this._getStat(e);return this._makeEntry(s,r)}catch(s){if(i.errorFilter(s))return null;throw s}}_getStat(e){return this._statSync(e,this._fsStatSettings)}};NS.default=OS});var SN=g(LS=>{"use strict";c();Object.defineProperty(LS,"__esModule",{value:!0});var FK=gN(),BK=zf(),DS=class extends BK.default{constructor(){super(...arguments),this._reader=new FK.default(this._settings)}read(e){let r=this._getRootDirectory(e),i=this._getReaderOptions(e);return this.api(r,e,i).map(i.transform)}api(e,r,i){return r.dynamic?this._reader.dynamic(e,i):this._reader.static(r.patterns,i)}};LS.default=DS});var TN=g(Ga=>{"use strict";c();Object.defineProperty(Ga,"__esModule",{value:!0});Ga.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var Wa=K("fs"),jK=K("os"),qK=Math.max(jK.cpus().length,1);Ga.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:Wa.lstat,lstatSync:Wa.lstatSync,stat:Wa.stat,statSync:Wa.statSync,readdir:Wa.readdir,readdirSync:Wa.readdirSync};var kS=class{constructor(e={}){this._options=e,this.absolute=this._getValue(this._options.absolute,!1),this.baseNameMatch=this._getValue(this._options.baseNameMatch,!1),this.braceExpansion=this._getValue(this._options.braceExpansion,!0),this.caseSensitiveMatch=this._getValue(this._options.caseSensitiveMatch,!0),this.concurrency=this._getValue(this._options.concurrency,qK),this.cwd=this._getValue(this._options.cwd,process.cwd()),this.deep=this._getValue(this._options.deep,1/0),this.dot=this._getValue(this._options.dot,!1),this.extglob=this._getValue(this._options.extglob,!0),this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!0),this.fs=this._getFileSystemMethods(this._options.fs),this.globstar=this._getValue(this._options.globstar,!0),this.ignore=this._getValue(this._options.ignore,[]),this.markDirectories=this._getValue(this._options.markDirectories,!1),this.objectMode=this._getValue(this._options.objectMode,!1),this.onlyDirectories=this._getValue(this._options.onlyDirectories,!1),this.onlyFiles=this._getValue(this._options.onlyFiles,!0),this.stats=this._getValue(this._options.stats,!1),this.suppressErrors=this._getValue(this._options.suppressErrors,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!1),this.unique=this._getValue(this._options.unique,!0),this.onlyDirectories&&(this.onlyFiles=!1),this.stats&&(this.objectMode=!0)}_getValue(e,r){return e===void 0?r:e}_getFileSystemMethods(e={}){return Object.assign(Object.assign({},Ga.DEFAULT_FILE_SYSTEM_ADAPTER),e)}};Ga.default=kS});var BS=g((eBe,xN)=>{"use strict";c();var EN=TO(),bN=bO(),UK=mN(),$K=yN(),VK=SN(),RS=TN(),Dn=Vi();async function MS(t,e){Ya(t);let r=FS(t,UK.default,e),i=await Promise.all(r);return Dn.array.flatten(i)}(function(t){function e(a,o){Ya(a);let l=FS(a,VK.default,o);return Dn.array.flatten(l)}t.sync=e;function r(a,o){Ya(a);let l=FS(a,$K.default,o);return Dn.stream.merge(l)}t.stream=r;function i(a,o){Ya(a);let l=bN.transform([].concat(a)),u=new RS.default(o);return EN.generate(l,u)}t.generateTasks=i;function s(a,o){Ya(a);let l=new RS.default(o);return Dn.pattern.isDynamicPattern(a,l)}t.isDynamicPattern=s;function n(a){return Ya(a),Dn.path.escape(a)}t.escapePath=n})(MS||(MS={}));function FS(t,e,r){let i=bN.transform([].concat(t)),s=new RS.default(r),n=EN.generate(i,s),a=new e(s);return n.map(a.read,a)}function Ya(t){if(![].concat(t).every(i=>Dn.string.isString(i)&&!Dn.string.isEmpty(i)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}xN.exports=MS});var vN=g(Ln=>{"use strict";c();var{promisify:KK}=K("util"),PN=K("fs");async function jS(t,e,r){if(typeof r!="string")throw new TypeError(`Expected a string, got ${typeof r}`);try{return(await KK(PN[t])(r))[e]()}catch(i){if(i.code==="ENOENT")return!1;throw i}}function qS(t,e,r){if(typeof r!="string")throw new TypeError(`Expected a string, got ${typeof r}`);try{return PN[t](r)[e]()}catch(i){if(i.code==="ENOENT")return!1;throw i}}Ln.isFile=jS.bind(null,"stat","isFile");Ln.isDirectory=jS.bind(null,"stat","isDirectory");Ln.isSymlink=jS.bind(null,"lstat","isSymbolicLink");Ln.isFileSync=qS.bind(null,"statSync","isFile");Ln.isDirectorySync=qS.bind(null,"statSync","isDirectory");Ln.isSymlinkSync=qS.bind(null,"lstatSync","isSymbolicLink")});var IN=g((sBe,US)=>{"use strict";c();var kn=K("path"),AN=vN(),wN=t=>t.length>1?`{${t.join(",")}}`:t[0],_N=(t,e)=>{let r=t[0]==="!"?t.slice(1):t;return kn.isAbsolute(r)?r:kn.join(e,r)},HK=(t,e)=>kn.extname(t)?`**/${t}`:`**/${t}.${wN(e)}`,CN=(t,e)=>{if(e.files&&!Array.isArray(e.files))throw new TypeError(`Expected \`files\` to be of type \`Array\` but received type \`${typeof e.files}\``);if(e.extensions&&!Array.isArray(e.extensions))throw new TypeError(`Expected \`extensions\` to be of type \`Array\` but received type \`${typeof e.extensions}\``);return e.files&&e.extensions?e.files.map(r=>kn.posix.join(t,HK(r,e.extensions))):e.files?e.files.map(r=>kn.posix.join(t,`**/${r}`)):e.extensions?[kn.posix.join(t,`**/*.${wN(e.extensions)}`)]:[kn.posix.join(t,"**")]};US.exports=async(t,e)=>{if(e={cwd:process.cwd(),...e},typeof e.cwd!="string")throw new TypeError(`Expected \`cwd\` to be of type \`string\` but received type \`${typeof e.cwd}\``);let r=await Promise.all([].concat(t).map(async i=>await AN.isDirectory(_N(i,e.cwd))?CN(i,e):i));return[].concat.apply([],r)};US.exports.sync=(t,e)=>{if(e={cwd:process.cwd(),...e},typeof e.cwd!="string")throw new TypeError(`Expected \`cwd\` to be of type \`string\` but received type \`${typeof e.cwd}\``);let r=[].concat(t).map(i=>AN.isDirectorySync(_N(i,e.cwd))?CN(i,e):i);return[].concat.apply([],r)}});var jN=g((aBe,BN)=>{c();function ON(t){return Array.isArray(t)?t:[t]}var kN="",NN=" ",$S="\\",WK=/^\s+$/,GK=/(?:[^\\]|^)\\$/,YK=/^\\!/,XK=/^\\#/,zK=/\r?\n/g,JK=/^\.*\/|^\.+$/,VS="/",RN="node-ignore";typeof Symbol<"u"&&(RN=Symbol.for("node-ignore"));var DN=RN,QK=(t,e,r)=>Object.defineProperty(t,e,{value:r}),ZK=/([0-z])-([0-z])/g,MN=()=>!1,eH=t=>t.replace(ZK,(e,r,i)=>r.charCodeAt(0)<=i.charCodeAt(0)?e:kN),tH=t=>{let{length:e}=t;return t.slice(0,e-e%2)},rH=[[/\\?\s+$/,t=>t.indexOf("\\")===0?NN:kN],[/\\\s/g,()=>NN],[/[\\$.|*+(){^]/g,t=>`\\${t}`],[/(?!\\)\?/g,()=>"[^/]"],[/^\//,()=>"^"],[/\//g,()=>"\\/"],[/^\^*\\\*\\\*\\\//,()=>"^(?:.*\\/)?"],[/^(?=[^^])/,function(){return/\/(?!$)/.test(this)?"^":"(?:^|\\/)"}],[/\\\/\\\*\\\*(?=\\\/|$)/g,(t,e,r)=>e+6<r.length?"(?:\\/[^\\/]+)*":"\\/.+"],[/(^|[^\\]+)(\\\*)+(?=.+)/g,(t,e,r)=>{let i=r.replace(/\\\*/g,"[^\\/]*");return e+i}],[/\\\\\\(?=[$.|*+(){^])/g,()=>$S],[/\\\\/g,()=>$S],[/(\\)?\[([^\]/]*?)(\\*)($|\])/g,(t,e,r,i,s)=>e===$S?`\\[${r}${tH(i)}${s}`:s==="]"&&i.length%2===0?`[${eH(r)}${i}]`:"[]"],[/(?:[^*])$/,t=>/\/$/.test(t)?`${t}$`:`${t}(?=$|\\/$)`],[/(\^|\\\/)?\\\*$/,(t,e)=>`${e?`${e}[^/]+`:"[^/]*"}(?=$|\\/$)`]],LN=Object.create(null),iH=(t,e)=>{let r=LN[t];return r||(r=rH.reduce((i,s)=>i.replace(s[0],s[1].bind(t)),t),LN[t]=r),e?new RegExp(r,"i"):new RegExp(r)},WS=t=>typeof t=="string",sH=t=>t&&WS(t)&&!WK.test(t)&&!GK.test(t)&&t.indexOf("#")!==0,nH=t=>t.split(zK),KS=class{constructor(e,r,i,s){this.origin=e,this.pattern=r,this.negative=i,this.regex=s}},aH=(t,e)=>{let r=t,i=!1;t.indexOf("!")===0&&(i=!0,t=t.substr(1)),t=t.replace(YK,"!").replace(XK,"#");let s=iH(t,e);return new KS(r,t,i,s)},oH=(t,e)=>{throw new e(t)},Hi=(t,e,r)=>WS(t)?t?Hi.isNotRelative(t)?r(`path should be a \`path.relative()\`d string, but got "${e}"`,RangeError):!0:r("path must not be empty",TypeError):r(`path must be a string, but got \`${e}\``,TypeError),FN=t=>JK.test(t);Hi.isNotRelative=FN;Hi.convert=t=>t;var HS=class{constructor({ignorecase:e=!0,ignoreCase:r=e,allowRelativePaths:i=!1}={}){QK(this,DN,!0),this._rules=[],this._ignoreCase=r,this._allowRelativePaths=i,this._initCache()}_initCache(){this._ignoreCache=Object.create(null),this._testCache=Object.create(null)}_addPattern(e){if(e&&e[DN]){this._rules=this._rules.concat(e._rules),this._added=!0;return}if(sH(e)){let r=aH(e,this._ignoreCase);this._added=!0,this._rules.push(r)}}add(e){return this._added=!1,ON(WS(e)?nH(e):e).forEach(this._addPattern,this),this._added&&this._initCache(),this}addPattern(e){return this.add(e)}_testOne(e,r){let i=!1,s=!1;return this._rules.forEach(n=>{let{negative:a}=n;if(s===a&&i!==s||a&&!i&&!s&&!r)return;n.regex.test(e)&&(i=!a,s=a)}),{ignored:i,unignored:s}}_test(e,r,i,s){let n=e&&Hi.convert(e);return Hi(n,e,this._allowRelativePaths?MN:oH),this._t(n,r,i,s)}_t(e,r,i,s){if(e in r)return r[e];if(s||(s=e.split(VS)),s.pop(),!s.length)return r[e]=this._testOne(e,i);let n=this._t(s.join(VS)+VS,r,i,s);return r[e]=n.ignored?n:this._testOne(e,i)}ignores(e){return this._test(e,this._ignoreCache,!1).ignored}createFilter(){return e=>!this.ignores(e)}filter(e){return ON(e).filter(this.createFilter())}test(e){return this._test(e,this._testCache,!0)}},Jf=t=>new HS(t),lH=t=>Hi(t&&Hi.convert(t),t,MN);Jf.isPathValid=lH;Jf.default=Jf;BN.exports=Jf;if(typeof process<"u"&&(process.env&&process.env.IGNORE_TEST_WIN32||process.platform==="win32")){let t=r=>/^\\\\\?\\/.test(r)||/["<>|\u0000-\u001F]+/u.test(r)?r:r.replace(/\\/g,"/");Hi.convert=t;let e=/^[a-z]:\//i;Hi.isNotRelative=r=>e.test(r)||FN(r)}});var aD=g((tp,nD)=>{c();(function(t,e){typeof tp=="object"&&typeof nD<"u"?e(tp):typeof define=="function"&&define.amd?define(["exports"],e):(t=typeof globalThis<"u"?globalThis:t||self,e(t.setArray={}))})(tp,function(t){"use strict";t.get=void 0,t.put=void 0,t.pop=void 0;class e{constructor(){this._indexes={__proto__:null},this.array=[]}}t.get=(r,i)=>r._indexes[i],t.put=(r,i)=>{let s=t.get(r,i);if(s!==void 0)return s;let{array:n,_indexes:a}=r;return a[i]=n.push(i)-1},t.pop=r=>{let{array:i,_indexes:s}=r;if(i.length===0)return;let n=i.pop();s[n]=void 0},t.SetArray=e,Object.defineProperty(t,"__esModule",{value:!0})})});var lD=g((rp,oD)=>{c();(function(t,e){typeof rp=="object"&&typeof oD<"u"?e(rp):typeof define=="function"&&define.amd?define(["exports"],e):(t=typeof globalThis<"u"?globalThis:t||self,e(t.sourcemapCodec={}))})(rp,function(t){"use strict";let e=",".charCodeAt(0),r=";".charCodeAt(0),i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=new Uint8Array(64),n=new Uint8Array(128);for(let b=0;b<i.length;b++){let x=i.charCodeAt(b);s[b]=x,n[x]=b}let a=typeof TextDecoder<"u"?new TextDecoder:typeof Buffer<"u"?{decode(b){return Buffer.from(b.buffer,b.byteOffset,b.byteLength).toString()}}:{decode(b){let x="";for(let _=0;_<b.length;_++)x+=String.fromCharCode(b[_]);return x}};function o(b){let x=new Int32Array(5),_=[],R=0;do{let k=l(b,R),M=[],O=!0,L=0;x[0]=0;for(let F=R;F<k;F++){let H;F=u(b,F,x,0);let V=x[0];V<L&&(O=!1),L=V,f(b,F,k)?(F=u(b,F,x,1),F=u(b,F,x,2),F=u(b,F,x,3),f(b,F,k)?(F=u(b,F,x,4),H=[V,x[1],x[2],x[3],x[4]]):H=[V,x[1],x[2],x[3]]):H=[V],M.push(H)}O||p(M),_.push(M),R=k+1}while(R<=b.length);return _}function l(b,x){let _=b.indexOf(";",x);return _===-1?b.length:_}function u(b,x,_,R){let k=0,M=0,O=0;do{let F=b.charCodeAt(x++);O=n[F],k|=(O&31)<<M,M+=5}while(O&32);let L=k&1;return k>>>=1,L&&(k=-2147483648|-k),_[R]+=k,x}function f(b,x,_){return x>=_?!1:b.charCodeAt(x)!==e}function p(b){b.sort(h)}function h(b,x){return b[0]-x[0]}function d(b){let x=new Int32Array(5),_=1024*16,R=_-36,k=new Uint8Array(_),M=k.subarray(0,R),O=0,L="";for(let F=0;F<b.length;F++){let H=b[F];if(F>0&&(O===_&&(L+=a.decode(k),O=0),k[O++]=r),H.length!==0){x[0]=0;for(let V=0;V<H.length;V++){let X=H[V];O>R&&(L+=a.decode(M),k.copyWithin(0,R,O),O-=R),V>0&&(k[O++]=e),O=T(k,O,x,X,0),X.length!==1&&(O=T(k,O,x,X,1),O=T(k,O,x,X,2),O=T(k,O,x,X,3),X.length!==4&&(O=T(k,O,x,X,4)))}}}return L+a.decode(k.subarray(0,O))}function T(b,x,_,R,k){let M=R[k],O=M-_[k];_[k]=M,O=O<0?-O<<1|1:O<<1;do{let L=O&31;O>>>=5,O>0&&(L|=32),b[x++]=s[L]}while(O>0);return x}t.decode=o,t.encode=d,Object.defineProperty(t,"__esModule",{value:!0})})});var cD=g((ip,uD)=>{c();(function(t,e){typeof ip=="object"&&typeof uD<"u"?e(ip):typeof define=="function"&&define.amd?define(["exports"],e):(t=typeof globalThis<"u"?globalThis:t||self,e(t.sourcemapCodec={}))})(ip,function(t){"use strict";let e=",".charCodeAt(0),r=";".charCodeAt(0),i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=new Uint8Array(64),n=new Uint8Array(128);for(let b=0;b<i.length;b++){let x=i.charCodeAt(b);s[b]=x,n[x]=b}let a=typeof TextDecoder<"u"?new TextDecoder:typeof Buffer<"u"?{decode(b){return Buffer.from(b.buffer,b.byteOffset,b.byteLength).toString()}}:{decode(b){let x="";for(let _=0;_<b.length;_++)x+=String.fromCharCode(b[_]);return x}};function o(b){let x=new Int32Array(5),_=[],R=0;do{let k=l(b,R),M=[],O=!0,L=0;x[0]=0;for(let F=R;F<k;F++){let H;F=u(b,F,x,0);let V=x[0];V<L&&(O=!1),L=V,f(b,F,k)?(F=u(b,F,x,1),F=u(b,F,x,2),F=u(b,F,x,3),f(b,F,k)?(F=u(b,F,x,4),H=[V,x[1],x[2],x[3],x[4]]):H=[V,x[1],x[2],x[3]]):H=[V],M.push(H)}O||p(M),_.push(M),R=k+1}while(R<=b.length);return _}function l(b,x){let _=b.indexOf(";",x);return _===-1?b.length:_}function u(b,x,_,R){let k=0,M=0,O=0;do{let F=b.charCodeAt(x++);O=n[F],k|=(O&31)<<M,M+=5}while(O&32);let L=k&1;return k>>>=1,L&&(k=-2147483648|-k),_[R]+=k,x}function f(b,x,_){return x>=_?!1:b.charCodeAt(x)!==e}function p(b){b.sort(h)}function h(b,x){return b[0]-x[0]}function d(b){let x=new Int32Array(5),_=1024*16,R=_-36,k=new Uint8Array(_),M=k.subarray(0,R),O=0,L="";for(let F=0;F<b.length;F++){let H=b[F];if(F>0&&(O===_&&(L+=a.decode(k),O=0),k[O++]=r),H.length!==0){x[0]=0;for(let V=0;V<H.length;V++){let X=H[V];O>R&&(L+=a.decode(M),k.copyWithin(0,R,O),O-=R),V>0&&(k[O++]=e),O=T(k,O,x,X,0),X.length!==1&&(O=T(k,O,x,X,1),O=T(k,O,x,X,2),O=T(k,O,x,X,3),X.length!==4&&(O=T(k,O,x,X,4)))}}}return L+a.decode(k.subarray(0,O))}function T(b,x,_,R,k){let M=R[k],O=M-_[k];_[k]=M,O=O<0?-O<<1|1:O<<1;do{let L=O&31;O>>>=5,O>0&&(L|=32),b[x++]=s[L]}while(O>0);return x}t.decode=o,t.encode=d,Object.defineProperty(t,"__esModule",{value:!0})})});var fD=g((JS,QS)=>{c();(function(t,e){typeof JS=="object"&&typeof QS<"u"?QS.exports=e():typeof define=="function"&&define.amd?define(e):(t=typeof globalThis<"u"?globalThis:t||self,t.resolveURI=e())})(JS,function(){"use strict";let t=/^[\w+.-]+:\/\//,e=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,r=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;var i;(function(_){_[_.Empty=1]="Empty",_[_.Hash=2]="Hash",_[_.Query=3]="Query",_[_.RelativePath=4]="RelativePath",_[_.AbsolutePath=5]="AbsolutePath",_[_.SchemeRelative=6]="SchemeRelative",_[_.Absolute=7]="Absolute"})(i||(i={}));function s(_){return t.test(_)}function n(_){return _.startsWith("//")}function a(_){return _.startsWith("/")}function o(_){return _.startsWith("file:")}function l(_){return/^[.?#]/.test(_)}function u(_){let R=e.exec(_);return p(R[1],R[2]||"",R[3],R[4]||"",R[5]||"/",R[6]||"",R[7]||"")}function f(_){let R=r.exec(_),k=R[2];return p("file:","",R[1]||"","",a(k)?k:"/"+k,R[3]||"",R[4]||"")}function p(_,R,k,M,O,L,F){return{scheme:_,user:R,host:k,port:M,path:O,query:L,hash:F,type:i.Absolute}}function h(_){if(n(_)){let k=u("http:"+_);return k.scheme="",k.type=i.SchemeRelative,k}if(a(_)){let k=u("http://foo.com"+_);return k.scheme="",k.host="",k.type=i.AbsolutePath,k}if(o(_))return f(_);if(s(_))return u(_);let R=u("http://foo.com/"+_);return R.scheme="",R.host="",R.type=_?_.startsWith("?")?i.Query:_.startsWith("#")?i.Hash:i.RelativePath:i.Empty,R}function d(_){if(_.endsWith("/.."))return _;let R=_.lastIndexOf("/");return _.slice(0,R+1)}function T(_,R){b(R,R.type),_.path==="/"?_.path=R.path:_.path=d(R.path)+_.path}function b(_,R){let k=R<=i.RelativePath,M=_.path.split("/"),O=1,L=0,F=!1;for(let V=1;V<M.length;V++){let X=M[V];if(!X){F=!0;continue}if(F=!1,X!=="."){if(X===".."){L?(F=!0,L--,O--):k&&(M[O++]=X);continue}M[O++]=X,L++}}let H="";for(let V=1;V<O;V++)H+="/"+M[V];(!H||F&&!H.endsWith("/.."))&&(H+="/"),_.path=H}function x(_,R){if(!_&&!R)return"";let k=h(_),M=k.type;if(R&&M!==i.Absolute){let L=h(R),F=L.type;switch(M){case i.Empty:k.hash=L.hash;case i.Hash:k.query=L.query;case i.Query:case i.RelativePath:T(k,L);case i.AbsolutePath:k.user=L.user,k.host=L.host,k.port=L.port;case i.SchemeRelative:k.scheme=L.scheme}F>M&&(M=F)}b(k,M);let O=k.query+k.hash;switch(M){case i.Hash:case i.Query:return O;case i.RelativePath:{let L=k.path.slice(1);return L?l(R||_)&&!l(L)?"./"+L+O:L+O:O||"."}case i.AbsolutePath:return k.path+O;default:return k.scheme+"//"+k.user+k.host+k.port+k.path+O}}return x})});var ZS=g((sp,pD)=>{c();(function(t,e){typeof sp=="object"&&typeof pD<"u"?e(sp,cD(),fD()):typeof define=="function"&&define.amd?define(["exports","@jridgewell/sourcemap-codec","@jridgewell/resolve-uri"],e):(t=typeof globalThis<"u"?globalThis:t||self,e(t.traceMapping={},t.sourcemapCodec,t.resolveURI))})(sp,function(t,e,r){"use strict";function i(J){return J&&typeof J=="object"&&"default"in J?J:{default:J}}var s=i(r);function n(J,Y){return Y&&!Y.endsWith("/")&&(Y+="/"),s.default(J,Y)}function a(J){if(!J)return"";let Y=J.lastIndexOf("/");return J.slice(0,Y+1)}let o=0,l=1,u=2,f=3,p=4,h=1,d=2;function T(J,Y){let U=b(J,0);if(U===J.length)return J;Y||(J=J.slice());for(let Q=U;Q<J.length;Q=b(J,Q+1))J[Q]=_(J[Q],Y);return J}function b(J,Y){for(let U=Y;U<J.length;U++)if(!x(J[U]))return U;return J.length}function x(J){for(let Y=1;Y<J.length;Y++)if(J[Y][o]<J[Y-1][o])return!1;return!0}function _(J,Y){return Y||(J=J.slice()),J.sort(R)}function R(J,Y){return J[o]-Y[o]}let k=!1;function M(J,Y,U,Q){for(;U<=Q;){let G=U+(Q-U>>1),Z=J[G][o]-Y;if(Z===0)return k=!0,G;Z<0?U=G+1:Q=G-1}return k=!1,U-1}function O(J,Y,U){for(let Q=U+1;Q<J.length&&J[Q][o]===Y;U=Q++);return U}function L(J,Y,U){for(let Q=U-1;Q>=0&&J[Q][o]===Y;U=Q--);return U}function F(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}function H(J,Y,U,Q){let{lastKey:G,lastNeedle:Z,lastIndex:ne}=U,Ae=0,Se=J.length-1;if(Q===G){if(Y===Z)return k=ne!==-1&&J[ne][o]===Y,ne;Y>=Z?Ae=ne===-1?0:ne:Se=ne}return U.lastKey=Q,U.lastNeedle=Y,U.lastIndex=M(J,Y,Ae,Se)}function V(J,Y){let U=Y.map(B);for(let Q=0;Q<J.length;Q++){let G=J[Q];for(let Z=0;Z<G.length;Z++){let ne=G[Z];if(ne.length===1)continue;let Ae=ne[l],Se=ne[u],Me=ne[f],nt=U[Ae],yt=nt[Se]||(nt[Se]=[]),Lt=Y[Ae],Kt=O(yt,Me,H(yt,Me,Lt,Se));X(yt,Lt.lastIndex=Kt+1,[Me,Q,ne[o]])}}return U}function X(J,Y,U){for(let Q=J.length;Q>Y;Q--)J[Q]=J[Q-1];J[Y]=U}function B(){return{__proto__:null}}let oe=function(J,Y){let U=typeof J=="string"?JSON.parse(J):J;if(!("sections"in U))return new ft(U,Y);let Q=[],G=[],Z=[],ne=[];me(U,Y,Q,G,Z,ne,0,0,1/0,1/0);let Ae={version:3,file:U.file,names:ne,sources:G,sourcesContent:Z,mappings:Q};return t.presortedDecodedMap(Ae)};function me(J,Y,U,Q,G,Z,ne,Ae,Se,Me){let{sections:nt}=J;for(let yt=0;yt<nt.length;yt++){let{map:Lt,offset:Kt}=nt[yt],Sr=Se,_i=Me;if(yt+1<nt.length){let Or=nt[yt+1].offset;Sr=Math.min(Se,ne+Or.line),Sr===Se?_i=Math.min(Me,Ae+Or.column):Sr<Se&&(_i=Ae+Or.column)}_e(Lt,Y,U,Q,G,Z,ne+Kt.line,Ae+Kt.column,Sr,_i)}}function _e(J,Y,U,Q,G,Z,ne,Ae,Se,Me){if("sections"in J)return me(...arguments);let nt=new ft(J,Y),yt=Q.length,Lt=Z.length,Kt=t.decodedMappings(nt),{resolvedSources:Sr,sourcesContent:_i}=nt;if(q(Q,Sr),q(Z,nt.names),_i)q(G,_i);else for(let Or=0;Or<Sr.length;Or++)G.push(null);for(let Or=0;Or<Kt.length;Or++){let sd=ne+Or;if(sd>Se)return;let Hx=$(U,sd),b3=Or===0?Ae:0,Wx=Kt[Or];for(let nd=0;nd<Wx.length;nd++){let sn=Wx[nd],Fu=b3+sn[o];if(sd===Se&&Fu>=Me)return;if(sn.length===1){Hx.push([Fu]);continue}let Gx=yt+sn[l],Yx=sn[u],Xx=sn[f];Hx.push(sn.length===4?[Fu,Gx,Yx,Xx]:[Fu,Gx,Yx,Xx,Lt+sn[p]])}}}function q(J,Y){for(let U=0;U<Y.length;U++)J.push(Y[U])}function $(J,Y){for(let U=J.length;U<=Y;U++)J[U]=[];return J[Y]}let ge="`line` must be greater than 0 (lines start at line 1)",he="`column` must be greater than or equal to 0 (columns start at column 0)",Ee=-1,st=1;t.encodedMappings=void 0,t.decodedMappings=void 0,t.traceSegment=void 0,t.originalPositionFor=void 0,t.generatedPositionFor=void 0,t.allGeneratedPositionsFor=void 0,t.eachMapping=void 0,t.sourceContentFor=void 0,t.presortedDecodedMap=void 0,t.decodedMap=void 0,t.encodedMap=void 0;class ft{constructor(Y,U){let Q=typeof Y=="string";if(!Q&&Y._decodedMemo)return Y;let G=Q?JSON.parse(Y):Y,{version:Z,file:ne,names:Ae,sourceRoot:Se,sources:Me,sourcesContent:nt}=G;this.version=Z,this.file=ne,this.names=Ae,this.sourceRoot=Se,this.sources=Me,this.sourcesContent=nt;let yt=n(Se||"",a(U));this.resolvedSources=Me.map(Kt=>n(Kt||"",yt));let{mappings:Lt}=G;typeof Lt=="string"?(this._encoded=Lt,this._decoded=void 0):(this._encoded=void 0,this._decoded=T(Lt,Q)),this._decodedMemo=F(),this._bySources=void 0,this._bySourceMemos=void 0}}(()=>{t.encodedMappings=Y=>{var U;return(U=Y._encoded)!==null&&U!==void 0?U:Y._encoded=e.encode(Y._decoded)},t.decodedMappings=Y=>Y._decoded||(Y._decoded=e.decode(Y._encoded)),t.traceSegment=(Y,U,Q)=>{let G=t.decodedMappings(Y);if(U>=G.length)return null;let Z=G[U],ne=Ir(Z,Y._decodedMemo,U,Q,st);return ne===-1?null:Z[ne]},t.originalPositionFor=(Y,{line:U,column:Q,bias:G})=>{if(U--,U<0)throw new Error(ge);if(Q<0)throw new Error(he);let Z=t.decodedMappings(Y);if(U>=Z.length)return ra(null,null,null,null);let ne=Z[U],Ae=Ir(ne,Y._decodedMemo,U,Q,G||st);if(Ae===-1)return ra(null,null,null,null);let Se=ne[Ae];if(Se.length===1)return ra(null,null,null,null);let{names:Me,resolvedSources:nt}=Y;return ra(nt[Se[l]],Se[u]+1,Se[f],Se.length===5?Me[Se[p]]:null)},t.allGeneratedPositionsFor=(Y,{source:U,line:Q,column:G,bias:Z})=>J(Y,U,Q,G,Z||Ee,!0),t.generatedPositionFor=(Y,{source:U,line:Q,column:G,bias:Z})=>J(Y,U,Q,G,Z||st,!1),t.eachMapping=(Y,U)=>{let Q=t.decodedMappings(Y),{names:G,resolvedSources:Z}=Y;for(let ne=0;ne<Q.length;ne++){let Ae=Q[ne];for(let Se=0;Se<Ae.length;Se++){let Me=Ae[Se],nt=ne+1,yt=Me[0],Lt=null,Kt=null,Sr=null,_i=null;Me.length!==1&&(Lt=Z[Me[1]],Kt=Me[2]+1,Sr=Me[3]),Me.length===5&&(_i=G[Me[4]]),U({generatedLine:nt,generatedColumn:yt,source:Lt,originalLine:Kt,originalColumn:Sr,name:_i})}}},t.sourceContentFor=(Y,U)=>{let{sources:Q,resolvedSources:G,sourcesContent:Z}=Y;if(Z==null)return null;let ne=Q.indexOf(U);return ne===-1&&(ne=G.indexOf(U)),ne===-1?null:Z[ne]},t.presortedDecodedMap=(Y,U)=>{let Q=new ft(Cr(Y,[]),U);return Q._decoded=Y.mappings,Q},t.decodedMap=Y=>Cr(Y,t.decodedMappings(Y)),t.encodedMap=Y=>Cr(Y,t.encodedMappings(Y));function J(Y,U,Q,G,Z,ne){if(Q--,Q<0)throw new Error(ge);if(G<0)throw new Error(he);let{sources:Ae,resolvedSources:Se}=Y,Me=Ae.indexOf(U);if(Me===-1&&(Me=Se.indexOf(U)),Me===-1)return ne?[]:oi(null,null);let yt=(Y._bySources||(Y._bySources=V(t.decodedMappings(Y),Y._bySourceMemos=Ae.map(F))))[Me][Q];if(yt==null)return ne?[]:oi(null,null);let Lt=Y._bySourceMemos[Me];if(ne)return Ne(yt,Lt,Q,G,Z);let Kt=Ir(yt,Lt,Q,G,Z);if(Kt===-1)return oi(null,null);let Sr=yt[Kt];return oi(Sr[h]+1,Sr[d])}})();function Cr(J,Y){return{version:J.version,file:J.file,names:J.names,sourceRoot:J.sourceRoot,sources:J.sources,sourcesContent:J.sourcesContent,mappings:Y}}function ra(J,Y,U,Q){return{source:J,line:Y,column:U,name:Q}}function oi(J,Y){return{line:J,column:Y}}function Ir(J,Y,U,Q,G){let Z=H(J,Q,Y,U);return k?Z=(G===Ee?O:L)(J,Q,Z):G===Ee&&Z++,Z===-1||Z===J.length?-1:Z}function Ne(J,Y,U,Q,G){let Z=Ir(J,Y,U,Q,st);if(!k&&G===Ee&&Z++,Z===-1||Z===J.length)return[];let ne=k?Q:J[Z][o];k||(Z=L(J,ne,Z));let Ae=O(J,ne,Z),Se=[];for(;Z<=Ae;Z++){let Me=J[Z];Se.push(oi(Me[h]+1,Me[d]))}return Se}t.AnyMap=oe,t.GREATEST_LOWER_BOUND=st,t.LEAST_UPPER_BOUND=Ee,t.TraceMap=ft,Object.defineProperty(t,"__esModule",{value:!0})})});var dD=g((np,hD)=>{c();(function(t,e){typeof np=="object"&&typeof hD<"u"?e(np,aD(),lD(),ZS()):typeof define=="function"&&define.amd?define(["exports","@jridgewell/set-array","@jridgewell/sourcemap-codec","@jridgewell/trace-mapping"],e):(t=typeof globalThis<"u"?globalThis:t||self,e(t.genMapping={},t.setArray,t.sourcemapCodec,t.traceMapping))})(np,function(t,e,r,i){"use strict";t.addSegment=void 0,t.addMapping=void 0,t.maybeAddSegment=void 0,t.maybeAddMapping=void 0,t.setSourceContent=void 0,t.toDecodedMap=void 0,t.toEncodedMap=void 0,t.fromMap=void 0,t.allMappings=void 0;let f;class p{constructor({file:O,sourceRoot:L}={}){this._names=new e.SetArray,this._sources=new e.SetArray,this._sourcesContent=[],this._mappings=[],this.file=O,this.sourceRoot=L}}t.addSegment=(M,O,L,F,H,V,X,B)=>f(!1,M,O,L,F,H,V,X,B),t.maybeAddSegment=(M,O,L,F,H,V,X,B)=>f(!0,M,O,L,F,H,V,X,B),t.addMapping=(M,O)=>k(!1,M,O),t.maybeAddMapping=(M,O)=>k(!0,M,O),t.setSourceContent=(M,O,L)=>{let{_sources:F,_sourcesContent:H}=M;H[e.put(F,O)]=L},t.toDecodedMap=M=>{let{file:O,sourceRoot:L,_mappings:F,_sources:H,_sourcesContent:V,_names:X}=M;return b(F),{version:3,file:O||void 0,names:X.array,sourceRoot:L||void 0,sources:H.array,sourcesContent:V,mappings:F}},t.toEncodedMap=M=>{let O=t.toDecodedMap(M);return Object.assign(Object.assign({},O),{mappings:r.encode(O.mappings)})},t.allMappings=M=>{let O=[],{_mappings:L,_sources:F,_names:H}=M;for(let V=0;V<L.length;V++){let X=L[V];for(let B=0;B<X.length;B++){let oe=X[B],me={line:V+1,column:oe[0]},_e,q,$;oe.length!==1&&(_e=F.array[oe[1]],q={line:oe[2]+1,column:oe[3]},oe.length===5&&($=H.array[oe[4]])),O.push({generated:me,source:_e,original:q,name:$})}}return O},t.fromMap=M=>{let O=new i.TraceMap(M),L=new p({file:O.file,sourceRoot:O.sourceRoot});return x(L._names,O.names),x(L._sources,O.sources),L._sourcesContent=O.sourcesContent||O.sources.map(()=>null),L._mappings=i.decodedMappings(O),L},f=(M,O,L,F,H,V,X,B,oe)=>{let{_mappings:me,_sources:_e,_sourcesContent:q,_names:$}=O,ge=h(me,L),he=d(ge,F);if(!H)return M&&_(ge,he)?void 0:T(ge,he,[F]);let Ee=e.put(_e,H),st=B?e.put($,B):-1;if(Ee===q.length&&(q[Ee]=oe??null),!(M&&R(ge,he,Ee,V,X,st)))return T(ge,he,B?[F,Ee,V,X,st]:[F,Ee,V,X])};function h(M,O){for(let L=M.length;L<=O;L++)M[L]=[];return M[O]}function d(M,O){let L=M.length;for(let F=L-1;F>=0;L=F--){let H=M[F];if(O>=H[0])break}return L}function T(M,O,L){for(let F=M.length;F>O;F--)M[F]=M[F-1];M[O]=L}function b(M){let{length:O}=M,L=O;for(let F=L-1;F>=0&&!(M[F].length>0);L=F,F--);L<O&&(M.length=L)}function x(M,O){for(let L=0;L<O.length;L++)e.put(M,O[L])}function _(M,O){return O===0?!0:M[O-1].length===1}function R(M,O,L,F,H,V){if(O===0)return!1;let X=M[O-1];return X.length===1?!1:L===X[1]&&F===X[2]&&H===X[3]&&V===(X.length===5?X[4]:-1)}function k(M,O,L){let{generated:F,source:H,original:V,name:X,content:B}=L;if(!H)return f(M,O,F.line-1,F.column,null,null,null,null,null);let oe=H;return f(M,O,F.line-1,F.column,oe,V.line-1,V.column,X,B)}t.GenMapping=p,Object.defineProperty(t,"__esModule",{value:!0})})});var mD=g(ap=>{"use strict";c();Object.defineProperty(ap,"__esModule",{value:!0});ap.default=void 0;var Bs=dD(),e0=ZS(),t0=class{constructor(e,r){var i;this._map=void 0,this._rawMappings=void 0,this._sourceFileName=void 0,this._lastGenLine=0,this._lastSourceLine=0,this._lastSourceColumn=0,this._inputMap=void 0;let s=this._map=new Bs.GenMapping({sourceRoot:e.sourceRoot});if(this._sourceFileName=(i=e.sourceFileName)==null?void 0:i.replace(/\\/g,"/"),this._rawMappings=void 0,e.inputSourceMap){this._inputMap=new e0.TraceMap(e.inputSourceMap);let a=this._inputMap.resolvedSources;if(a.length)for(let o=0;o<a.length;o++){var n;(0,Bs.setSourceContent)(s,a[o],(n=this._inputMap.sourcesContent)==null?void 0:n[o])}}if(typeof r=="string"&&!e.inputSourceMap)(0,Bs.setSourceContent)(s,this._sourceFileName,r);else if(typeof r=="object")for(let a of Object.keys(r))(0,Bs.setSourceContent)(s,a.replace(/\\/g,"/"),r[a])}get(){return(0,Bs.toEncodedMap)(this._map)}getDecoded(){return(0,Bs.toDecodedMap)(this._map)}getRawMappings(){return this._rawMappings||(this._rawMappings=(0,Bs.allMappings)(this._map))}mark(e,r,i,s,n,a){var o;this._rawMappings=void 0;let l;if(r!=null)if(this._inputMap){if(l=(0,e0.originalPositionFor)(this._inputMap,{line:r,column:i}),!l.name&&n){let u=(0,e0.originalPositionFor)(this._inputMap,n);u.name&&(s=u.name)}}else l={source:(a==null?void 0:a.replace(/\\/g,"/"))||this._sourceFileName,line:r,column:i};(0,Bs.maybeAddMapping)(this._map,{name:s,generated:e,source:(o=l)==null?void 0:o.source,original:l})}};ap.default=t0});var yD=g(op=>{"use strict";c();Object.defineProperty(op,"__esModule",{value:!0});op.default=void 0;var r0=class{constructor(e){this._map=null,this._buf="",this._str="",this._appendCount=0,this._last=0,this._queue=[],this._queueCursor=0,this._canMarkIdName=!0,this._position={line:1,column:0},this._sourcePosition={identifierName:void 0,identifierNamePos:void 0,line:void 0,column:void 0,filename:void 0},this._map=e,this._allocQueue()}_allocQueue(){let e=this._queue;for(let r=0;r<16;r++)e.push({char:0,repeat:1,line:void 0,column:void 0,identifierName:void 0,identifierNamePos:void 0,filename:""})}_pushQueue(e,r,i,s,n){let a=this._queueCursor;a===this._queue.length&&this._allocQueue();let o=this._queue[a];o.char=e,o.repeat=r,o.line=i,o.column=s,o.filename=n,this._queueCursor++}_popQueue(){if(this._queueCursor===0)throw new Error("Cannot pop from empty queue");return this._queue[--this._queueCursor]}get(){this._flush();let e=this._map,r={code:(this._buf+this._str).trimRight(),decodedMap:e==null?void 0:e.getDecoded(),get __mergedMap(){return this.map},get map(){let i=e?e.get():null;return r.map=i,i},set map(i){Object.defineProperty(r,"map",{value:i,writable:!0})},get rawMappings(){let i=e==null?void 0:e.getRawMappings();return r.rawMappings=i,i},set rawMappings(i){Object.defineProperty(r,"rawMappings",{value:i,writable:!0})}};return r}append(e,r){this._flush(),this._append(e,this._sourcePosition,r)}appendChar(e){this._flush(),this._appendChar(e,1,this._sourcePosition)}queue(e){if(e===10)for(;this._queueCursor!==0;){let i=this._queue[this._queueCursor-1].char;if(i!==32&&i!==9)break;this._queueCursor--}let r=this._sourcePosition;this._pushQueue(e,1,r.line,r.column,r.filename)}queueIndentation(e,r){this._pushQueue(e,r,void 0,void 0,void 0)}_flush(){let e=this._queueCursor,r=this._queue;for(let i=0;i<e;i++){let s=r[i];this._appendChar(s.char,s.repeat,s)}this._queueCursor=0}_appendChar(e,r,i){this._last=e,this._str+=r>1?String.fromCharCode(e).repeat(r):String.fromCharCode(e),e!==10?(this._mark(i.line,i.column,i.identifierName,i.identifierNamePos,i.filename),this._position.column+=r):(this._position.line++,this._position.column=0),this._canMarkIdName&&(i.identifierName=void 0,i.identifierNamePos=void 0)}_append(e,r,i){let s=e.length,n=this._position;if(this._last=e.charCodeAt(s-1),++this._appendCount>4096?(+this._str,this._buf+=this._str,this._str=e,this._appendCount=0):this._str+=e,!i&&!this._map){n.column+=s;return}let{column:a,identifierName:o,identifierNamePos:l,filename:u}=r,f=r.line;(o!=null||l!=null)&&this._canMarkIdName&&(r.identifierName=void 0,r.identifierNamePos=void 0);let p=e.indexOf(`
29
+ `),h=0;for(p!==0&&this._mark(f,a,o,l,u);p!==-1;)n.line++,n.column=0,h=p+1,h<s&&f!==void 0&&this._mark(++f,0,null,null,u),p=e.indexOf(`
30
+ `,h);n.column+=s-h}_mark(e,r,i,s,n){var a;(a=this._map)==null||a.mark(this._position,e,r,i,s,n)}removeTrailingNewline(){let e=this._queueCursor;e!==0&&this._queue[e-1].char===10&&this._queueCursor--}removeLastSemicolon(){let e=this._queueCursor;e!==0&&this._queue[e-1].char===59&&this._queueCursor--}getLastChar(){let e=this._queueCursor;return e!==0?this._queue[e-1].char:this._last}getNewlineCount(){let e=this._queueCursor,r=0;if(e===0)return this._last===10?1:0;for(let i=e-1;i>=0&&this._queue[i].char===10;i--)r++;return r===e&&this._last===10?r+1:r}endsWithCharAndNewline(){let e=this._queue,r=this._queueCursor;if(r!==0)return e[r-1].char!==10?void 0:r>1?e[r-2].char:this._last}hasContent(){return this._queueCursor!==0||!!this._last}exactSource(e,r){if(!this._map){r();return}this.source("start",e);let i=e.identifierName,s=this._sourcePosition;i&&(this._canMarkIdName=!1,s.identifierName=i),r(),i&&(this._canMarkIdName=!0,s.identifierName=void 0,s.identifierNamePos=void 0),this.source("end",e)}source(e,r){this._map&&this._normalizePosition(e,r,0,0)}sourceWithOffset(e,r,i,s){this._map&&this._normalizePosition(e,r,i,s)}withSource(e,r,i){this._map&&this.source(e,r),i()}_normalizePosition(e,r,i,s){let n=r[e],a=this._sourcePosition;n&&(a.line=n.line+i,a.column=n.column+s,a.filename=r.filename)}getCurrentColumn(){let e=this._queue,r=this._queueCursor,i=-1,s=0;for(let n=0;n<r;n++){let a=e[n];a.char===10&&(i=s),s+=a.repeat}return i===-1?this._position.column+s:s-1-i}getCurrentLine(){let e=0,r=this._queue;for(let i=0;i<this._queueCursor;i++)r[i].char===10&&e++;return this._position.line+e}};op.default=r0});var lp=g(i0=>{"use strict";c();Object.defineProperty(i0,"__esModule",{value:!0});i0.default=xH;function xH(t,e){let r=Object.keys(e);for(let i of r)if(t[i]!==e[i])return!1;return!0}});var Nl=g(s0=>{"use strict";c();Object.defineProperty(s0,"__esModule",{value:!0});s0.default=PH;var gD=new Set;function PH(t,e,r=""){if(gD.has(t))return;gD.add(t);let{internal:i,trace:s}=vH(1,2);i||console.warn(`${r}\`${t}\` has been deprecated, please migrate to \`${e}\`
31
+ ${s}`)}function vH(t,e){let{stackTraceLimit:r,prepareStackTrace:i}=Error,s;if(Error.stackTraceLimit=1+t+e,Error.prepareStackTrace=function(a,o){s=o},new Error().stack,Error.stackTraceLimit=r,Error.prepareStackTrace=i,!s)return{internal:!1,trace:""};let n=s.slice(1+t,1+t+e);return{internal:/[\\/]@babel[\\/]/.test(n[1].getFileName()),trace:n.map(a=>` at ${a}`).join(`
32
+ `)}}});var mt=g(P=>{"use strict";c();Object.defineProperty(P,"__esModule",{value:!0});P.isAccessor=Fz;P.isAnyTypeAnnotation=sG;P.isArgumentPlaceholder=LY;P.isArrayExpression=AH;P.isArrayPattern=PW;P.isArrayTypeAnnotation=nG;P.isArrowFunctionExpression=vW;P.isAssignmentExpression=wH;P.isAssignmentPattern=xW;P.isAwaitExpression=WW;P.isBigIntLiteral=YW;P.isBinary=az;P.isBinaryExpression=_H;P.isBindExpression=kY;P.isBlock=uz;P.isBlockParent=lz;P.isBlockStatement=NH;P.isBooleanLiteral=QH;P.isBooleanLiteralTypeAnnotation=oG;P.isBooleanTypeAnnotation=aG;P.isBreakStatement=DH;P.isCallExpression=LH;P.isCatchClause=kH;P.isClass=kz;P.isClassAccessorProperty=ZW;P.isClassBody=AW;P.isClassDeclaration=_W;P.isClassExpression=wW;P.isClassImplements=uG;P.isClassMethod=BW;P.isClassPrivateMethod=tG;P.isClassPrivateProperty=eG;P.isClassProperty=QW;P.isCompletionStatement=pz;P.isConditional=hz;P.isConditionalExpression=RH;P.isContinueStatement=MH;P.isDebuggerStatement=FH;P.isDecimalLiteral=UY;P.isDeclaration=xz;P.isDeclareClass=cG;P.isDeclareExportAllDeclaration=TG;P.isDeclareExportDeclaration=SG;P.isDeclareFunction=fG;P.isDeclareInterface=pG;P.isDeclareModule=hG;P.isDeclareModuleExports=dG;P.isDeclareOpaqueType=yG;P.isDeclareTypeAlias=mG;P.isDeclareVariable=gG;P.isDeclaredPredicate=EG;P.isDecorator=MY;P.isDirective=IH;P.isDirectiveLiteral=OH;P.isDoExpression=FY;P.isDoWhileStatement=BH;P.isEmptyStatement=jH;P.isEmptyTypeAnnotation=NG;P.isEnumBody=Kz;P.isEnumBooleanBody=nY;P.isEnumBooleanMember=uY;P.isEnumDeclaration=sY;P.isEnumDefaultedMember=pY;P.isEnumMember=Hz;P.isEnumNumberBody=aY;P.isEnumNumberMember=cY;P.isEnumStringBody=oY;P.isEnumStringMember=fY;P.isEnumSymbolBody=lY;P.isExistsTypeAnnotation=bG;P.isExportAllDeclaration=CW;P.isExportDeclaration=Rz;P.isExportDefaultDeclaration=IW;P.isExportDefaultSpecifier=BY;P.isExportNamedDeclaration=OW;P.isExportNamespaceSpecifier=XW;P.isExportSpecifier=NW;P.isExpression=nz;P.isExpressionStatement=qH;P.isExpressionWrapper=yz;P.isFile=UH;P.isFlow=jz;P.isFlowBaseAnnotation=Uz;P.isFlowDeclaration=$z;P.isFlowPredicate=Vz;P.isFlowType=qz;P.isFor=gz;P.isForInStatement=$H;P.isForOfStatement=DW;P.isForStatement=VH;P.isForXStatement=Sz;P.isFunction=Tz;P.isFunctionDeclaration=KH;P.isFunctionExpression=HH;P.isFunctionParent=Ez;P.isFunctionTypeAnnotation=xG;P.isFunctionTypeParam=PG;P.isGenericTypeAnnotation=vG;P.isIdentifier=WH;P.isIfStatement=GH;P.isImmutable=_z;P.isImport=GW;P.isImportAttribute=RY;P.isImportDeclaration=LW;P.isImportDefaultSpecifier=kW;P.isImportNamespaceSpecifier=RW;P.isImportOrExportDeclaration=SD;P.isImportSpecifier=MW;P.isIndexedAccessType=hY;P.isInferredPredicate=AG;P.isInterfaceDeclaration=_G;P.isInterfaceExtends=wG;P.isInterfaceTypeAnnotation=CG;P.isInterpreterDirective=CH;P.isIntersectionTypeAnnotation=IG;P.isJSX=Wz;P.isJSXAttribute=mY;P.isJSXClosingElement=yY;P.isJSXClosingFragment=IY;P.isJSXElement=gY;P.isJSXEmptyExpression=SY;P.isJSXExpressionContainer=TY;P.isJSXFragment=_Y;P.isJSXIdentifier=bY;P.isJSXMemberExpression=xY;P.isJSXNamespacedName=PY;P.isJSXOpeningElement=vY;P.isJSXOpeningFragment=CY;P.isJSXSpreadAttribute=AY;P.isJSXSpreadChild=EY;P.isJSXText=wY;P.isLVal=vz;P.isLabeledStatement=YH;P.isLiteral=wz;P.isLogicalExpression=eW;P.isLoop=dz;P.isMemberExpression=tW;P.isMetaProperty=FW;P.isMethod=Iz;P.isMiscellaneous=Gz;P.isMixedTypeAnnotation=OG;P.isModuleDeclaration=rJ;P.isModuleExpression=$Y;P.isModuleSpecifier=Mz;P.isNewExpression=rW;P.isNoop=OY;P.isNullLiteral=JH;P.isNullLiteralTypeAnnotation=lG;P.isNullableTypeAnnotation=DG;P.isNumberLiteral=Qz;P.isNumberLiteralTypeAnnotation=LG;P.isNumberTypeAnnotation=kG;P.isNumericLiteral=zH;P.isObjectExpression=sW;P.isObjectMember=Oz;P.isObjectMethod=nW;P.isObjectPattern=jW;P.isObjectProperty=aW;P.isObjectTypeAnnotation=RG;P.isObjectTypeCallProperty=FG;P.isObjectTypeIndexer=BG;P.isObjectTypeInternalSlot=MG;P.isObjectTypeProperty=jG;P.isObjectTypeSpreadProperty=qG;P.isOpaqueType=UG;P.isOptionalCallExpression=JW;P.isOptionalIndexedAccessType=dY;P.isOptionalMemberExpression=zW;P.isParenthesizedExpression=cW;P.isPattern=Lz;P.isPatternLike=Pz;P.isPipelineBareFunction=HY;P.isPipelinePrimaryTopicReference=WY;P.isPipelineTopicExpression=KY;P.isPlaceholder=NY;P.isPrivate=Bz;P.isPrivateName=rG;P.isProgram=iW;P.isProperty=Nz;P.isPureish=bz;P.isQualifiedTypeIdentifier=$G;P.isRecordExpression=jY;P.isRegExpLiteral=ZH;P.isRegexLiteral=Zz;P.isRestElement=oW;P.isRestProperty=eJ;P.isReturnStatement=lW;P.isScopable=oz;P.isSequenceExpression=uW;P.isSpreadElement=qW;P.isSpreadProperty=tJ;P.isStandardized=sz;P.isStatement=cz;P.isStaticBlock=iG;P.isStringLiteral=XH;P.isStringLiteralTypeAnnotation=VG;P.isStringTypeAnnotation=KG;P.isSuper=UW;P.isSwitchCase=fW;P.isSwitchStatement=pW;P.isSymbolTypeAnnotation=HG;P.isTSAnyKeyword=rX;P.isTSArrayType=xX;P.isTSAsExpression=UX;P.isTSBaseType=Jz;P.isTSBigIntKeyword=sX;P.isTSBooleanKeyword=iX;P.isTSCallSignatureDeclaration=JY;P.isTSConditionalType=IX;P.isTSConstructSignatureDeclaration=QY;P.isTSConstructorType=gX;P.isTSDeclareFunction=YY;P.isTSDeclareMethod=XY;P.isTSEntityName=Az;P.isTSEnumDeclaration=KX;P.isTSEnumMember=HX;P.isTSExportAssignment=QX;P.isTSExpressionWithTypeArguments=MX;P.isTSExternalModuleReference=zX;P.isTSFunctionType=yX;P.isTSImportEqualsDeclaration=XX;P.isTSImportType=YX;P.isTSIndexSignature=tX;P.isTSIndexedAccessType=LX;P.isTSInferType=OX;P.isTSInstantiationExpression=qX;P.isTSInterfaceBody=BX;P.isTSInterfaceDeclaration=FX;P.isTSIntersectionType=CX;P.isTSIntrinsicKeyword=nX;P.isTSLiteralType=RX;P.isTSMappedType=kX;P.isTSMethodSignature=eX;P.isTSModuleBlock=GX;P.isTSModuleDeclaration=WX;P.isTSNamedTupleMember=wX;P.isTSNamespaceExportDeclaration=ZX;P.isTSNeverKeyword=aX;P.isTSNonNullExpression=JX;P.isTSNullKeyword=oX;P.isTSNumberKeyword=lX;P.isTSObjectKeyword=uX;P.isTSOptionalType=vX;P.isTSParameterProperty=GY;P.isTSParenthesizedType=NX;P.isTSPropertySignature=ZY;P.isTSQualifiedName=zY;P.isTSRestType=AX;P.isTSSatisfiesExpression=$X;P.isTSStringKeyword=cX;P.isTSSymbolKeyword=fX;P.isTSThisType=mX;P.isTSTupleType=PX;P.isTSType=zz;P.isTSTypeAliasDeclaration=jX;P.isTSTypeAnnotation=ez;P.isTSTypeAssertion=VX;P.isTSTypeElement=Xz;P.isTSTypeLiteral=bX;P.isTSTypeOperator=DX;P.isTSTypeParameter=iz;P.isTSTypeParameterDeclaration=rz;P.isTSTypeParameterInstantiation=tz;P.isTSTypePredicate=TX;P.isTSTypeQuery=EX;P.isTSTypeReference=SX;P.isTSUndefinedKeyword=pX;P.isTSUnionType=_X;P.isTSUnknownKeyword=hX;P.isTSVoidKeyword=dX;P.isTaggedTemplateExpression=$W;P.isTemplateElement=VW;P.isTemplateLiteral=KW;P.isTerminatorless=fz;P.isThisExpression=hW;P.isThisTypeAnnotation=WG;P.isThrowStatement=dW;P.isTopicReference=VY;P.isTryStatement=mW;P.isTupleExpression=qY;P.isTupleTypeAnnotation=GG;P.isTypeAlias=XG;P.isTypeAnnotation=zG;P.isTypeCastExpression=JG;P.isTypeParameter=QG;P.isTypeParameterDeclaration=ZG;P.isTypeParameterInstantiation=eY;P.isTypeScript=Yz;P.isTypeofTypeAnnotation=YG;P.isUnaryExpression=yW;P.isUnaryLike=Dz;P.isUnionTypeAnnotation=tY;P.isUpdateExpression=gW;P.isUserWhitespacable=Cz;P.isV8IntrinsicIdentifier=DY;P.isVariableDeclaration=SW;P.isVariableDeclarator=TW;P.isVariance=rY;P.isVoidTypeAnnotation=iY;P.isWhile=mz;P.isWhileStatement=EW;P.isWithStatement=bW;P.isYieldExpression=HW;var w=lp(),Dl=Nl();function AH(t,e){return!t||t.type!=="ArrayExpression"?!1:e==null||(0,w.default)(t,e)}function wH(t,e){return!t||t.type!=="AssignmentExpression"?!1:e==null||(0,w.default)(t,e)}function _H(t,e){return!t||t.type!=="BinaryExpression"?!1:e==null||(0,w.default)(t,e)}function CH(t,e){return!t||t.type!=="InterpreterDirective"?!1:e==null||(0,w.default)(t,e)}function IH(t,e){return!t||t.type!=="Directive"?!1:e==null||(0,w.default)(t,e)}function OH(t,e){return!t||t.type!=="DirectiveLiteral"?!1:e==null||(0,w.default)(t,e)}function NH(t,e){return!t||t.type!=="BlockStatement"?!1:e==null||(0,w.default)(t,e)}function DH(t,e){return!t||t.type!=="BreakStatement"?!1:e==null||(0,w.default)(t,e)}function LH(t,e){return!t||t.type!=="CallExpression"?!1:e==null||(0,w.default)(t,e)}function kH(t,e){return!t||t.type!=="CatchClause"?!1:e==null||(0,w.default)(t,e)}function RH(t,e){return!t||t.type!=="ConditionalExpression"?!1:e==null||(0,w.default)(t,e)}function MH(t,e){return!t||t.type!=="ContinueStatement"?!1:e==null||(0,w.default)(t,e)}function FH(t,e){return!t||t.type!=="DebuggerStatement"?!1:e==null||(0,w.default)(t,e)}function BH(t,e){return!t||t.type!=="DoWhileStatement"?!1:e==null||(0,w.default)(t,e)}function jH(t,e){return!t||t.type!=="EmptyStatement"?!1:e==null||(0,w.default)(t,e)}function qH(t,e){return!t||t.type!=="ExpressionStatement"?!1:e==null||(0,w.default)(t,e)}function UH(t,e){return!t||t.type!=="File"?!1:e==null||(0,w.default)(t,e)}function $H(t,e){return!t||t.type!=="ForInStatement"?!1:e==null||(0,w.default)(t,e)}function VH(t,e){return!t||t.type!=="ForStatement"?!1:e==null||(0,w.default)(t,e)}function KH(t,e){return!t||t.type!=="FunctionDeclaration"?!1:e==null||(0,w.default)(t,e)}function HH(t,e){return!t||t.type!=="FunctionExpression"?!1:e==null||(0,w.default)(t,e)}function WH(t,e){return!t||t.type!=="Identifier"?!1:e==null||(0,w.default)(t,e)}function GH(t,e){return!t||t.type!=="IfStatement"?!1:e==null||(0,w.default)(t,e)}function YH(t,e){return!t||t.type!=="LabeledStatement"?!1:e==null||(0,w.default)(t,e)}function XH(t,e){return!t||t.type!=="StringLiteral"?!1:e==null||(0,w.default)(t,e)}function zH(t,e){return!t||t.type!=="NumericLiteral"?!1:e==null||(0,w.default)(t,e)}function JH(t,e){return!t||t.type!=="NullLiteral"?!1:e==null||(0,w.default)(t,e)}function QH(t,e){return!t||t.type!=="BooleanLiteral"?!1:e==null||(0,w.default)(t,e)}function ZH(t,e){return!t||t.type!=="RegExpLiteral"?!1:e==null||(0,w.default)(t,e)}function eW(t,e){return!t||t.type!=="LogicalExpression"?!1:e==null||(0,w.default)(t,e)}function tW(t,e){return!t||t.type!=="MemberExpression"?!1:e==null||(0,w.default)(t,e)}function rW(t,e){return!t||t.type!=="NewExpression"?!1:e==null||(0,w.default)(t,e)}function iW(t,e){return!t||t.type!=="Program"?!1:e==null||(0,w.default)(t,e)}function sW(t,e){return!t||t.type!=="ObjectExpression"?!1:e==null||(0,w.default)(t,e)}function nW(t,e){return!t||t.type!=="ObjectMethod"?!1:e==null||(0,w.default)(t,e)}function aW(t,e){return!t||t.type!=="ObjectProperty"?!1:e==null||(0,w.default)(t,e)}function oW(t,e){return!t||t.type!=="RestElement"?!1:e==null||(0,w.default)(t,e)}function lW(t,e){return!t||t.type!=="ReturnStatement"?!1:e==null||(0,w.default)(t,e)}function uW(t,e){return!t||t.type!=="SequenceExpression"?!1:e==null||(0,w.default)(t,e)}function cW(t,e){return!t||t.type!=="ParenthesizedExpression"?!1:e==null||(0,w.default)(t,e)}function fW(t,e){return!t||t.type!=="SwitchCase"?!1:e==null||(0,w.default)(t,e)}function pW(t,e){return!t||t.type!=="SwitchStatement"?!1:e==null||(0,w.default)(t,e)}function hW(t,e){return!t||t.type!=="ThisExpression"?!1:e==null||(0,w.default)(t,e)}function dW(t,e){return!t||t.type!=="ThrowStatement"?!1:e==null||(0,w.default)(t,e)}function mW(t,e){return!t||t.type!=="TryStatement"?!1:e==null||(0,w.default)(t,e)}function yW(t,e){return!t||t.type!=="UnaryExpression"?!1:e==null||(0,w.default)(t,e)}function gW(t,e){return!t||t.type!=="UpdateExpression"?!1:e==null||(0,w.default)(t,e)}function SW(t,e){return!t||t.type!=="VariableDeclaration"?!1:e==null||(0,w.default)(t,e)}function TW(t,e){return!t||t.type!=="VariableDeclarator"?!1:e==null||(0,w.default)(t,e)}function EW(t,e){return!t||t.type!=="WhileStatement"?!1:e==null||(0,w.default)(t,e)}function bW(t,e){return!t||t.type!=="WithStatement"?!1:e==null||(0,w.default)(t,e)}function xW(t,e){return!t||t.type!=="AssignmentPattern"?!1:e==null||(0,w.default)(t,e)}function PW(t,e){return!t||t.type!=="ArrayPattern"?!1:e==null||(0,w.default)(t,e)}function vW(t,e){return!t||t.type!=="ArrowFunctionExpression"?!1:e==null||(0,w.default)(t,e)}function AW(t,e){return!t||t.type!=="ClassBody"?!1:e==null||(0,w.default)(t,e)}function wW(t,e){return!t||t.type!=="ClassExpression"?!1:e==null||(0,w.default)(t,e)}function _W(t,e){return!t||t.type!=="ClassDeclaration"?!1:e==null||(0,w.default)(t,e)}function CW(t,e){return!t||t.type!=="ExportAllDeclaration"?!1:e==null||(0,w.default)(t,e)}function IW(t,e){return!t||t.type!=="ExportDefaultDeclaration"?!1:e==null||(0,w.default)(t,e)}function OW(t,e){return!t||t.type!=="ExportNamedDeclaration"?!1:e==null||(0,w.default)(t,e)}function NW(t,e){return!t||t.type!=="ExportSpecifier"?!1:e==null||(0,w.default)(t,e)}function DW(t,e){return!t||t.type!=="ForOfStatement"?!1:e==null||(0,w.default)(t,e)}function LW(t,e){return!t||t.type!=="ImportDeclaration"?!1:e==null||(0,w.default)(t,e)}function kW(t,e){return!t||t.type!=="ImportDefaultSpecifier"?!1:e==null||(0,w.default)(t,e)}function RW(t,e){return!t||t.type!=="ImportNamespaceSpecifier"?!1:e==null||(0,w.default)(t,e)}function MW(t,e){return!t||t.type!=="ImportSpecifier"?!1:e==null||(0,w.default)(t,e)}function FW(t,e){return!t||t.type!=="MetaProperty"?!1:e==null||(0,w.default)(t,e)}function BW(t,e){return!t||t.type!=="ClassMethod"?!1:e==null||(0,w.default)(t,e)}function jW(t,e){return!t||t.type!=="ObjectPattern"?!1:e==null||(0,w.default)(t,e)}function qW(t,e){return!t||t.type!=="SpreadElement"?!1:e==null||(0,w.default)(t,e)}function UW(t,e){return!t||t.type!=="Super"?!1:e==null||(0,w.default)(t,e)}function $W(t,e){return!t||t.type!=="TaggedTemplateExpression"?!1:e==null||(0,w.default)(t,e)}function VW(t,e){return!t||t.type!=="TemplateElement"?!1:e==null||(0,w.default)(t,e)}function KW(t,e){return!t||t.type!=="TemplateLiteral"?!1:e==null||(0,w.default)(t,e)}function HW(t,e){return!t||t.type!=="YieldExpression"?!1:e==null||(0,w.default)(t,e)}function WW(t,e){return!t||t.type!=="AwaitExpression"?!1:e==null||(0,w.default)(t,e)}function GW(t,e){return!t||t.type!=="Import"?!1:e==null||(0,w.default)(t,e)}function YW(t,e){return!t||t.type!=="BigIntLiteral"?!1:e==null||(0,w.default)(t,e)}function XW(t,e){return!t||t.type!=="ExportNamespaceSpecifier"?!1:e==null||(0,w.default)(t,e)}function zW(t,e){return!t||t.type!=="OptionalMemberExpression"?!1:e==null||(0,w.default)(t,e)}function JW(t,e){return!t||t.type!=="OptionalCallExpression"?!1:e==null||(0,w.default)(t,e)}function QW(t,e){return!t||t.type!=="ClassProperty"?!1:e==null||(0,w.default)(t,e)}function ZW(t,e){return!t||t.type!=="ClassAccessorProperty"?!1:e==null||(0,w.default)(t,e)}function eG(t,e){return!t||t.type!=="ClassPrivateProperty"?!1:e==null||(0,w.default)(t,e)}function tG(t,e){return!t||t.type!=="ClassPrivateMethod"?!1:e==null||(0,w.default)(t,e)}function rG(t,e){return!t||t.type!=="PrivateName"?!1:e==null||(0,w.default)(t,e)}function iG(t,e){return!t||t.type!=="StaticBlock"?!1:e==null||(0,w.default)(t,e)}function sG(t,e){return!t||t.type!=="AnyTypeAnnotation"?!1:e==null||(0,w.default)(t,e)}function nG(t,e){return!t||t.type!=="ArrayTypeAnnotation"?!1:e==null||(0,w.default)(t,e)}function aG(t,e){return!t||t.type!=="BooleanTypeAnnotation"?!1:e==null||(0,w.default)(t,e)}function oG(t,e){return!t||t.type!=="BooleanLiteralTypeAnnotation"?!1:e==null||(0,w.default)(t,e)}function lG(t,e){return!t||t.type!=="NullLiteralTypeAnnotation"?!1:e==null||(0,w.default)(t,e)}function uG(t,e){return!t||t.type!=="ClassImplements"?!1:e==null||(0,w.default)(t,e)}function cG(t,e){return!t||t.type!=="DeclareClass"?!1:e==null||(0,w.default)(t,e)}function fG(t,e){return!t||t.type!=="DeclareFunction"?!1:e==null||(0,w.default)(t,e)}function pG(t,e){return!t||t.type!=="DeclareInterface"?!1:e==null||(0,w.default)(t,e)}function hG(t,e){return!t||t.type!=="DeclareModule"?!1:e==null||(0,w.default)(t,e)}function dG(t,e){return!t||t.type!=="DeclareModuleExports"?!1:e==null||(0,w.default)(t,e)}function mG(t,e){return!t||t.type!=="DeclareTypeAlias"?!1:e==null||(0,w.default)(t,e)}function yG(t,e){return!t||t.type!=="DeclareOpaqueType"?!1:e==null||(0,w.default)(t,e)}function gG(t,e){return!t||t.type!=="DeclareVariable"?!1:e==null||(0,w.default)(t,e)}function SG(t,e){return!t||t.type!=="DeclareExportDeclaration"?!1:e==null||(0,w.default)(t,e)}function TG(t,e){return!t||t.type!=="DeclareExportAllDeclaration"?!1:e==null||(0,w.default)(t,e)}function EG(t,e){return!t||t.type!=="DeclaredPredicate"?!1:e==null||(0,w.default)(t,e)}function bG(t,e){return!t||t.type!=="ExistsTypeAnnotation"?!1:e==null||(0,w.default)(t,e)}function xG(t,e){return!t||t.type!=="FunctionTypeAnnotation"?!1:e==null||(0,w.default)(t,e)}function PG(t,e){return!t||t.type!=="FunctionTypeParam"?!1:e==null||(0,w.default)(t,e)}function vG(t,e){return!t||t.type!=="GenericTypeAnnotation"?!1:e==null||(0,w.default)(t,e)}function AG(t,e){return!t||t.type!=="InferredPredicate"?!1:e==null||(0,w.default)(t,e)}function wG(t,e){return!t||t.type!=="InterfaceExtends"?!1:e==null||(0,w.default)(t,e)}function _G(t,e){return!t||t.type!=="InterfaceDeclaration"?!1:e==null||(0,w.default)(t,e)}function CG(t,e){return!t||t.type!=="InterfaceTypeAnnotation"?!1:e==null||(0,w.default)(t,e)}function IG(t,e){return!t||t.type!=="IntersectionTypeAnnotation"?!1:e==null||(0,w.default)(t,e)}function OG(t,e){return!t||t.type!=="MixedTypeAnnotation"?!1:e==null||(0,w.default)(t,e)}function NG(t,e){return!t||t.type!=="EmptyTypeAnnotation"?!1:e==null||(0,w.default)(t,e)}function DG(t,e){return!t||t.type!=="NullableTypeAnnotation"?!1:e==null||(0,w.default)(t,e)}function LG(t,e){return!t||t.type!=="NumberLiteralTypeAnnotation"?!1:e==null||(0,w.default)(t,e)}function kG(t,e){return!t||t.type!=="NumberTypeAnnotation"?!1:e==null||(0,w.default)(t,e)}function RG(t,e){return!t||t.type!=="ObjectTypeAnnotation"?!1:e==null||(0,w.default)(t,e)}function MG(t,e){return!t||t.type!=="ObjectTypeInternalSlot"?!1:e==null||(0,w.default)(t,e)}function FG(t,e){return!t||t.type!=="ObjectTypeCallProperty"?!1:e==null||(0,w.default)(t,e)}function BG(t,e){return!t||t.type!=="ObjectTypeIndexer"?!1:e==null||(0,w.default)(t,e)}function jG(t,e){return!t||t.type!=="ObjectTypeProperty"?!1:e==null||(0,w.default)(t,e)}function qG(t,e){return!t||t.type!=="ObjectTypeSpreadProperty"?!1:e==null||(0,w.default)(t,e)}function UG(t,e){return!t||t.type!=="OpaqueType"?!1:e==null||(0,w.default)(t,e)}function $G(t,e){return!t||t.type!=="QualifiedTypeIdentifier"?!1:e==null||(0,w.default)(t,e)}function VG(t,e){return!t||t.type!=="StringLiteralTypeAnnotation"?!1:e==null||(0,w.default)(t,e)}function KG(t,e){return!t||t.type!=="StringTypeAnnotation"?!1:e==null||(0,w.default)(t,e)}function HG(t,e){return!t||t.type!=="SymbolTypeAnnotation"?!1:e==null||(0,w.default)(t,e)}function WG(t,e){return!t||t.type!=="ThisTypeAnnotation"?!1:e==null||(0,w.default)(t,e)}function GG(t,e){return!t||t.type!=="TupleTypeAnnotation"?!1:e==null||(0,w.default)(t,e)}function YG(t,e){return!t||t.type!=="TypeofTypeAnnotation"?!1:e==null||(0,w.default)(t,e)}function XG(t,e){return!t||t.type!=="TypeAlias"?!1:e==null||(0,w.default)(t,e)}function zG(t,e){return!t||t.type!=="TypeAnnotation"?!1:e==null||(0,w.default)(t,e)}function JG(t,e){return!t||t.type!=="TypeCastExpression"?!1:e==null||(0,w.default)(t,e)}function QG(t,e){return!t||t.type!=="TypeParameter"?!1:e==null||(0,w.default)(t,e)}function ZG(t,e){return!t||t.type!=="TypeParameterDeclaration"?!1:e==null||(0,w.default)(t,e)}function eY(t,e){return!t||t.type!=="TypeParameterInstantiation"?!1:e==null||(0,w.default)(t,e)}function tY(t,e){return!t||t.type!=="UnionTypeAnnotation"?!1:e==null||(0,w.default)(t,e)}function rY(t,e){return!t||t.type!=="Variance"?!1:e==null||(0,w.default)(t,e)}function iY(t,e){return!t||t.type!=="VoidTypeAnnotation"?!1:e==null||(0,w.default)(t,e)}function sY(t,e){return!t||t.type!=="EnumDeclaration"?!1:e==null||(0,w.default)(t,e)}function nY(t,e){return!t||t.type!=="EnumBooleanBody"?!1:e==null||(0,w.default)(t,e)}function aY(t,e){return!t||t.type!=="EnumNumberBody"?!1:e==null||(0,w.default)(t,e)}function oY(t,e){return!t||t.type!=="EnumStringBody"?!1:e==null||(0,w.default)(t,e)}function lY(t,e){return!t||t.type!=="EnumSymbolBody"?!1:e==null||(0,w.default)(t,e)}function uY(t,e){return!t||t.type!=="EnumBooleanMember"?!1:e==null||(0,w.default)(t,e)}function cY(t,e){return!t||t.type!=="EnumNumberMember"?!1:e==null||(0,w.default)(t,e)}function fY(t,e){return!t||t.type!=="EnumStringMember"?!1:e==null||(0,w.default)(t,e)}function pY(t,e){return!t||t.type!=="EnumDefaultedMember"?!1:e==null||(0,w.default)(t,e)}function hY(t,e){return!t||t.type!=="IndexedAccessType"?!1:e==null||(0,w.default)(t,e)}function dY(t,e){return!t||t.type!=="OptionalIndexedAccessType"?!1:e==null||(0,w.default)(t,e)}function mY(t,e){return!t||t.type!=="JSXAttribute"?!1:e==null||(0,w.default)(t,e)}function yY(t,e){return!t||t.type!=="JSXClosingElement"?!1:e==null||(0,w.default)(t,e)}function gY(t,e){return!t||t.type!=="JSXElement"?!1:e==null||(0,w.default)(t,e)}function SY(t,e){return!t||t.type!=="JSXEmptyExpression"?!1:e==null||(0,w.default)(t,e)}function TY(t,e){return!t||t.type!=="JSXExpressionContainer"?!1:e==null||(0,w.default)(t,e)}function EY(t,e){return!t||t.type!=="JSXSpreadChild"?!1:e==null||(0,w.default)(t,e)}function bY(t,e){return!t||t.type!=="JSXIdentifier"?!1:e==null||(0,w.default)(t,e)}function xY(t,e){return!t||t.type!=="JSXMemberExpression"?!1:e==null||(0,w.default)(t,e)}function PY(t,e){return!t||t.type!=="JSXNamespacedName"?!1:e==null||(0,w.default)(t,e)}function vY(t,e){return!t||t.type!=="JSXOpeningElement"?!1:e==null||(0,w.default)(t,e)}function AY(t,e){return!t||t.type!=="JSXSpreadAttribute"?!1:e==null||(0,w.default)(t,e)}function wY(t,e){return!t||t.type!=="JSXText"?!1:e==null||(0,w.default)(t,e)}function _Y(t,e){return!t||t.type!=="JSXFragment"?!1:e==null||(0,w.default)(t,e)}function CY(t,e){return!t||t.type!=="JSXOpeningFragment"?!1:e==null||(0,w.default)(t,e)}function IY(t,e){return!t||t.type!=="JSXClosingFragment"?!1:e==null||(0,w.default)(t,e)}function OY(t,e){return!t||t.type!=="Noop"?!1:e==null||(0,w.default)(t,e)}function NY(t,e){return!t||t.type!=="Placeholder"?!1:e==null||(0,w.default)(t,e)}function DY(t,e){return!t||t.type!=="V8IntrinsicIdentifier"?!1:e==null||(0,w.default)(t,e)}function LY(t,e){return!t||t.type!=="ArgumentPlaceholder"?!1:e==null||(0,w.default)(t,e)}function kY(t,e){return!t||t.type!=="BindExpression"?!1:e==null||(0,w.default)(t,e)}function RY(t,e){return!t||t.type!=="ImportAttribute"?!1:e==null||(0,w.default)(t,e)}function MY(t,e){return!t||t.type!=="Decorator"?!1:e==null||(0,w.default)(t,e)}function FY(t,e){return!t||t.type!=="DoExpression"?!1:e==null||(0,w.default)(t,e)}function BY(t,e){return!t||t.type!=="ExportDefaultSpecifier"?!1:e==null||(0,w.default)(t,e)}function jY(t,e){return!t||t.type!=="RecordExpression"?!1:e==null||(0,w.default)(t,e)}function qY(t,e){return!t||t.type!=="TupleExpression"?!1:e==null||(0,w.default)(t,e)}function UY(t,e){return!t||t.type!=="DecimalLiteral"?!1:e==null||(0,w.default)(t,e)}function $Y(t,e){return!t||t.type!=="ModuleExpression"?!1:e==null||(0,w.default)(t,e)}function VY(t,e){return!t||t.type!=="TopicReference"?!1:e==null||(0,w.default)(t,e)}function KY(t,e){return!t||t.type!=="PipelineTopicExpression"?!1:e==null||(0,w.default)(t,e)}function HY(t,e){return!t||t.type!=="PipelineBareFunction"?!1:e==null||(0,w.default)(t,e)}function WY(t,e){return!t||t.type!=="PipelinePrimaryTopicReference"?!1:e==null||(0,w.default)(t,e)}function GY(t,e){return!t||t.type!=="TSParameterProperty"?!1:e==null||(0,w.default)(t,e)}function YY(t,e){return!t||t.type!=="TSDeclareFunction"?!1:e==null||(0,w.default)(t,e)}function XY(t,e){return!t||t.type!=="TSDeclareMethod"?!1:e==null||(0,w.default)(t,e)}function zY(t,e){return!t||t.type!=="TSQualifiedName"?!1:e==null||(0,w.default)(t,e)}function JY(t,e){return!t||t.type!=="TSCallSignatureDeclaration"?!1:e==null||(0,w.default)(t,e)}function QY(t,e){return!t||t.type!=="TSConstructSignatureDeclaration"?!1:e==null||(0,w.default)(t,e)}function ZY(t,e){return!t||t.type!=="TSPropertySignature"?!1:e==null||(0,w.default)(t,e)}function eX(t,e){return!t||t.type!=="TSMethodSignature"?!1:e==null||(0,w.default)(t,e)}function tX(t,e){return!t||t.type!=="TSIndexSignature"?!1:e==null||(0,w.default)(t,e)}function rX(t,e){return!t||t.type!=="TSAnyKeyword"?!1:e==null||(0,w.default)(t,e)}function iX(t,e){return!t||t.type!=="TSBooleanKeyword"?!1:e==null||(0,w.default)(t,e)}function sX(t,e){return!t||t.type!=="TSBigIntKeyword"?!1:e==null||(0,w.default)(t,e)}function nX(t,e){return!t||t.type!=="TSIntrinsicKeyword"?!1:e==null||(0,w.default)(t,e)}function aX(t,e){return!t||t.type!=="TSNeverKeyword"?!1:e==null||(0,w.default)(t,e)}function oX(t,e){return!t||t.type!=="TSNullKeyword"?!1:e==null||(0,w.default)(t,e)}function lX(t,e){return!t||t.type!=="TSNumberKeyword"?!1:e==null||(0,w.default)(t,e)}function uX(t,e){return!t||t.type!=="TSObjectKeyword"?!1:e==null||(0,w.default)(t,e)}function cX(t,e){return!t||t.type!=="TSStringKeyword"?!1:e==null||(0,w.default)(t,e)}function fX(t,e){return!t||t.type!=="TSSymbolKeyword"?!1:e==null||(0,w.default)(t,e)}function pX(t,e){return!t||t.type!=="TSUndefinedKeyword"?!1:e==null||(0,w.default)(t,e)}function hX(t,e){return!t||t.type!=="TSUnknownKeyword"?!1:e==null||(0,w.default)(t,e)}function dX(t,e){return!t||t.type!=="TSVoidKeyword"?!1:e==null||(0,w.default)(t,e)}function mX(t,e){return!t||t.type!=="TSThisType"?!1:e==null||(0,w.default)(t,e)}function yX(t,e){return!t||t.type!=="TSFunctionType"?!1:e==null||(0,w.default)(t,e)}function gX(t,e){return!t||t.type!=="TSConstructorType"?!1:e==null||(0,w.default)(t,e)}function SX(t,e){return!t||t.type!=="TSTypeReference"?!1:e==null||(0,w.default)(t,e)}function TX(t,e){return!t||t.type!=="TSTypePredicate"?!1:e==null||(0,w.default)(t,e)}function EX(t,e){return!t||t.type!=="TSTypeQuery"?!1:e==null||(0,w.default)(t,e)}function bX(t,e){return!t||t.type!=="TSTypeLiteral"?!1:e==null||(0,w.default)(t,e)}function xX(t,e){return!t||t.type!=="TSArrayType"?!1:e==null||(0,w.default)(t,e)}function PX(t,e){return!t||t.type!=="TSTupleType"?!1:e==null||(0,w.default)(t,e)}function vX(t,e){return!t||t.type!=="TSOptionalType"?!1:e==null||(0,w.default)(t,e)}function AX(t,e){return!t||t.type!=="TSRestType"?!1:e==null||(0,w.default)(t,e)}function wX(t,e){return!t||t.type!=="TSNamedTupleMember"?!1:e==null||(0,w.default)(t,e)}function _X(t,e){return!t||t.type!=="TSUnionType"?!1:e==null||(0,w.default)(t,e)}function CX(t,e){return!t||t.type!=="TSIntersectionType"?!1:e==null||(0,w.default)(t,e)}function IX(t,e){return!t||t.type!=="TSConditionalType"?!1:e==null||(0,w.default)(t,e)}function OX(t,e){return!t||t.type!=="TSInferType"?!1:e==null||(0,w.default)(t,e)}function NX(t,e){return!t||t.type!=="TSParenthesizedType"?!1:e==null||(0,w.default)(t,e)}function DX(t,e){return!t||t.type!=="TSTypeOperator"?!1:e==null||(0,w.default)(t,e)}function LX(t,e){return!t||t.type!=="TSIndexedAccessType"?!1:e==null||(0,w.default)(t,e)}function kX(t,e){return!t||t.type!=="TSMappedType"?!1:e==null||(0,w.default)(t,e)}function RX(t,e){return!t||t.type!=="TSLiteralType"?!1:e==null||(0,w.default)(t,e)}function MX(t,e){return!t||t.type!=="TSExpressionWithTypeArguments"?!1:e==null||(0,w.default)(t,e)}function FX(t,e){return!t||t.type!=="TSInterfaceDeclaration"?!1:e==null||(0,w.default)(t,e)}function BX(t,e){return!t||t.type!=="TSInterfaceBody"?!1:e==null||(0,w.default)(t,e)}function jX(t,e){return!t||t.type!=="TSTypeAliasDeclaration"?!1:e==null||(0,w.default)(t,e)}function qX(t,e){return!t||t.type!=="TSInstantiationExpression"?!1:e==null||(0,w.default)(t,e)}function UX(t,e){return!t||t.type!=="TSAsExpression"?!1:e==null||(0,w.default)(t,e)}function $X(t,e){return!t||t.type!=="TSSatisfiesExpression"?!1:e==null||(0,w.default)(t,e)}function VX(t,e){return!t||t.type!=="TSTypeAssertion"?!1:e==null||(0,w.default)(t,e)}function KX(t,e){return!t||t.type!=="TSEnumDeclaration"?!1:e==null||(0,w.default)(t,e)}function HX(t,e){return!t||t.type!=="TSEnumMember"?!1:e==null||(0,w.default)(t,e)}function WX(t,e){return!t||t.type!=="TSModuleDeclaration"?!1:e==null||(0,w.default)(t,e)}function GX(t,e){return!t||t.type!=="TSModuleBlock"?!1:e==null||(0,w.default)(t,e)}function YX(t,e){return!t||t.type!=="TSImportType"?!1:e==null||(0,w.default)(t,e)}function XX(t,e){return!t||t.type!=="TSImportEqualsDeclaration"?!1:e==null||(0,w.default)(t,e)}function zX(t,e){return!t||t.type!=="TSExternalModuleReference"?!1:e==null||(0,w.default)(t,e)}function JX(t,e){return!t||t.type!=="TSNonNullExpression"?!1:e==null||(0,w.default)(t,e)}function QX(t,e){return!t||t.type!=="TSExportAssignment"?!1:e==null||(0,w.default)(t,e)}function ZX(t,e){return!t||t.type!=="TSNamespaceExportDeclaration"?!1:e==null||(0,w.default)(t,e)}function ez(t,e){return!t||t.type!=="TSTypeAnnotation"?!1:e==null||(0,w.default)(t,e)}function tz(t,e){return!t||t.type!=="TSTypeParameterInstantiation"?!1:e==null||(0,w.default)(t,e)}function rz(t,e){return!t||t.type!=="TSTypeParameterDeclaration"?!1:e==null||(0,w.default)(t,e)}function iz(t,e){return!t||t.type!=="TSTypeParameter"?!1:e==null||(0,w.default)(t,e)}function sz(t,e){if(!t)return!1;switch(t.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"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(t.expectedNode){case"Identifier":case"StringLiteral":case"BlockStatement":case"ClassBody":break;default:return!1}break;default:return!1}return e==null||(0,w.default)(t,e)}function nz(t,e){if(!t)return!1;switch(t.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"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(t.expectedNode){case"Expression":case"Identifier":case"StringLiteral":break;default:return!1}break;default:return!1}return e==null||(0,w.default)(t,e)}function az(t,e){if(!t)return!1;switch(t.type){case"BinaryExpression":case"LogicalExpression":break;default:return!1}return e==null||(0,w.default)(t,e)}function oz(t,e){if(!t)return!1;switch(t.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(t.expectedNode==="BlockStatement")break;default:return!1}return e==null||(0,w.default)(t,e)}function lz(t,e){if(!t)return!1;switch(t.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(t.expectedNode==="BlockStatement")break;default:return!1}return e==null||(0,w.default)(t,e)}function uz(t,e){if(!t)return!1;switch(t.type){case"BlockStatement":case"Program":case"TSModuleBlock":break;case"Placeholder":if(t.expectedNode==="BlockStatement")break;default:return!1}return e==null||(0,w.default)(t,e)}function cz(t,e){if(!t)return!1;switch(t.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(t.expectedNode){case"Statement":case"Declaration":case"BlockStatement":break;default:return!1}break;default:return!1}return e==null||(0,w.default)(t,e)}function fz(t,e){if(!t)return!1;switch(t.type){case"BreakStatement":case"ContinueStatement":case"ReturnStatement":case"ThrowStatement":case"YieldExpression":case"AwaitExpression":break;default:return!1}return e==null||(0,w.default)(t,e)}function pz(t,e){if(!t)return!1;switch(t.type){case"BreakStatement":case"ContinueStatement":case"ReturnStatement":case"ThrowStatement":break;default:return!1}return e==null||(0,w.default)(t,e)}function hz(t,e){if(!t)return!1;switch(t.type){case"ConditionalExpression":case"IfStatement":break;default:return!1}return e==null||(0,w.default)(t,e)}function dz(t,e){if(!t)return!1;switch(t.type){case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"WhileStatement":case"ForOfStatement":break;default:return!1}return e==null||(0,w.default)(t,e)}function mz(t,e){if(!t)return!1;switch(t.type){case"DoWhileStatement":case"WhileStatement":break;default:return!1}return e==null||(0,w.default)(t,e)}function yz(t,e){if(!t)return!1;switch(t.type){case"ExpressionStatement":case"ParenthesizedExpression":case"TypeCastExpression":break;default:return!1}return e==null||(0,w.default)(t,e)}function gz(t,e){if(!t)return!1;switch(t.type){case"ForInStatement":case"ForStatement":case"ForOfStatement":break;default:return!1}return e==null||(0,w.default)(t,e)}function Sz(t,e){if(!t)return!1;switch(t.type){case"ForInStatement":case"ForOfStatement":break;default:return!1}return e==null||(0,w.default)(t,e)}function Tz(t,e){if(!t)return!1;switch(t.type){case"FunctionDeclaration":case"FunctionExpression":case"ObjectMethod":case"ArrowFunctionExpression":case"ClassMethod":case"ClassPrivateMethod":break;default:return!1}return e==null||(0,w.default)(t,e)}function Ez(t,e){if(!t)return!1;switch(t.type){case"FunctionDeclaration":case"FunctionExpression":case"ObjectMethod":case"ArrowFunctionExpression":case"ClassMethod":case"ClassPrivateMethod":case"StaticBlock":case"TSModuleBlock":break;default:return!1}return e==null||(0,w.default)(t,e)}function bz(t,e){if(!t)return!1;switch(t.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(t.expectedNode==="StringLiteral")break;default:return!1}return e==null||(0,w.default)(t,e)}function xz(t,e){if(!t)return!1;switch(t.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(t.expectedNode==="Declaration")break;default:return!1}return e==null||(0,w.default)(t,e)}function Pz(t,e){if(!t)return!1;switch(t.type){case"Identifier":case"RestElement":case"AssignmentPattern":case"ArrayPattern":case"ObjectPattern":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":break;case"Placeholder":switch(t.expectedNode){case"Pattern":case"Identifier":break;default:return!1}break;default:return!1}return e==null||(0,w.default)(t,e)}function vz(t,e){if(!t)return!1;switch(t.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(t.expectedNode){case"Pattern":case"Identifier":break;default:return!1}break;default:return!1}return e==null||(0,w.default)(t,e)}function Az(t,e){if(!t)return!1;switch(t.type){case"Identifier":case"TSQualifiedName":break;case"Placeholder":if(t.expectedNode==="Identifier")break;default:return!1}return e==null||(0,w.default)(t,e)}function wz(t,e){if(!t)return!1;switch(t.type){case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"TemplateLiteral":case"BigIntLiteral":case"DecimalLiteral":break;case"Placeholder":if(t.expectedNode==="StringLiteral")break;default:return!1}return e==null||(0,w.default)(t,e)}function _z(t,e){if(!t)return!1;switch(t.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(t.expectedNode==="StringLiteral")break;default:return!1}return e==null||(0,w.default)(t,e)}function Cz(t,e){if(!t)return!1;switch(t.type){case"ObjectMethod":case"ObjectProperty":case"ObjectTypeInternalSlot":case"ObjectTypeCallProperty":case"ObjectTypeIndexer":case"ObjectTypeProperty":case"ObjectTypeSpreadProperty":break;default:return!1}return e==null||(0,w.default)(t,e)}function Iz(t,e){if(!t)return!1;switch(t.type){case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":break;default:return!1}return e==null||(0,w.default)(t,e)}function Oz(t,e){if(!t)return!1;switch(t.type){case"ObjectMethod":case"ObjectProperty":break;default:return!1}return e==null||(0,w.default)(t,e)}function Nz(t,e){if(!t)return!1;switch(t.type){case"ObjectProperty":case"ClassProperty":case"ClassAccessorProperty":case"ClassPrivateProperty":break;default:return!1}return e==null||(0,w.default)(t,e)}function Dz(t,e){if(!t)return!1;switch(t.type){case"UnaryExpression":case"SpreadElement":break;default:return!1}return e==null||(0,w.default)(t,e)}function Lz(t,e){if(!t)return!1;switch(t.type){case"AssignmentPattern":case"ArrayPattern":case"ObjectPattern":break;case"Placeholder":if(t.expectedNode==="Pattern")break;default:return!1}return e==null||(0,w.default)(t,e)}function kz(t,e){if(!t)return!1;switch(t.type){case"ClassExpression":case"ClassDeclaration":break;default:return!1}return e==null||(0,w.default)(t,e)}function SD(t,e){if(!t)return!1;switch(t.type){case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ImportDeclaration":break;default:return!1}return e==null||(0,w.default)(t,e)}function Rz(t,e){if(!t)return!1;switch(t.type){case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":break;default:return!1}return e==null||(0,w.default)(t,e)}function Mz(t,e){if(!t)return!1;switch(t.type){case"ExportSpecifier":case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":case"ImportSpecifier":case"ExportNamespaceSpecifier":case"ExportDefaultSpecifier":break;default:return!1}return e==null||(0,w.default)(t,e)}function Fz(t,e){if(!t)return!1;switch(t.type){case"ClassAccessorProperty":break;default:return!1}return e==null||(0,w.default)(t,e)}function Bz(t,e){if(!t)return!1;switch(t.type){case"ClassPrivateProperty":case"ClassPrivateMethod":case"PrivateName":break;default:return!1}return e==null||(0,w.default)(t,e)}function jz(t,e){if(!t)return!1;switch(t.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 e==null||(0,w.default)(t,e)}function qz(t,e){if(!t)return!1;switch(t.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 e==null||(0,w.default)(t,e)}function Uz(t,e){if(!t)return!1;switch(t.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 e==null||(0,w.default)(t,e)}function $z(t,e){if(!t)return!1;switch(t.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 e==null||(0,w.default)(t,e)}function Vz(t,e){if(!t)return!1;switch(t.type){case"DeclaredPredicate":case"InferredPredicate":break;default:return!1}return e==null||(0,w.default)(t,e)}function Kz(t,e){if(!t)return!1;switch(t.type){case"EnumBooleanBody":case"EnumNumberBody":case"EnumStringBody":case"EnumSymbolBody":break;default:return!1}return e==null||(0,w.default)(t,e)}function Hz(t,e){if(!t)return!1;switch(t.type){case"EnumBooleanMember":case"EnumNumberMember":case"EnumStringMember":case"EnumDefaultedMember":break;default:return!1}return e==null||(0,w.default)(t,e)}function Wz(t,e){if(!t)return!1;switch(t.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 e==null||(0,w.default)(t,e)}function Gz(t,e){if(!t)return!1;switch(t.type){case"Noop":case"Placeholder":case"V8IntrinsicIdentifier":break;default:return!1}return e==null||(0,w.default)(t,e)}function Yz(t,e){if(!t)return!1;switch(t.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 e==null||(0,w.default)(t,e)}function Xz(t,e){if(!t)return!1;switch(t.type){case"TSCallSignatureDeclaration":case"TSConstructSignatureDeclaration":case"TSPropertySignature":case"TSMethodSignature":case"TSIndexSignature":break;default:return!1}return e==null||(0,w.default)(t,e)}function zz(t,e){if(!t)return!1;switch(t.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 e==null||(0,w.default)(t,e)}function Jz(t,e){if(!t)return!1;switch(t.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 e==null||(0,w.default)(t,e)}function Qz(t,e){return(0,Dl.default)("isNumberLiteral","isNumericLiteral"),!t||t.type!=="NumberLiteral"?!1:e==null||(0,w.default)(t,e)}function Zz(t,e){return(0,Dl.default)("isRegexLiteral","isRegExpLiteral"),!t||t.type!=="RegexLiteral"?!1:e==null||(0,w.default)(t,e)}function eJ(t,e){return(0,Dl.default)("isRestProperty","isRestElement"),!t||t.type!=="RestProperty"?!1:e==null||(0,w.default)(t,e)}function tJ(t,e){return(0,Dl.default)("isSpreadProperty","isSpreadElement"),!t||t.type!=="SpreadProperty"?!1:e==null||(0,w.default)(t,e)}function rJ(t,e){return(0,Dl.default)("isModuleDeclaration","isImportOrExportDeclaration"),SD(t,e)}});var a0=g(n0=>{"use strict";c();Object.defineProperty(n0,"__esModule",{value:!0});n0.default=iJ;var Ll=mt();function iJ(t,e,r){if(!(0,Ll.isMemberExpression)(t))return!1;let i=Array.isArray(e)?e:e.split("."),s=[],n;for(n=t;(0,Ll.isMemberExpression)(n);n=n.object)s.push(n.property);if(s.push(n),s.length<i.length||!r&&s.length>i.length)return!1;for(let a=0,o=s.length-1;a<i.length;a++,o--){let l=s[o],u;if((0,Ll.isIdentifier)(l))u=l.name;else if((0,Ll.isStringLiteral)(l))u=l.value;else if((0,Ll.isThisExpression)(l))u="this";else return!1;if(i[a]!==u)return!1}return!0}});var l0=g(o0=>{"use strict";c();Object.defineProperty(o0,"__esModule",{value:!0});o0.default=nJ;var sJ=a0();function nJ(t,e){let r=t.split(".");return i=>(0,sJ.default)(i,r,e)}});var TD=g(up=>{"use strict";c();Object.defineProperty(up,"__esModule",{value:!0});up.default=void 0;var aJ=l0(),oJ=(0,aJ.default)("React.Component"),lJ=oJ;up.default=lJ});var ED=g(u0=>{"use strict";c();Object.defineProperty(u0,"__esModule",{value:!0});u0.default=uJ;function uJ(t){return!!t&&/^[a-z]/.test(t)}});var xD=g((uje,bD)=>{"use strict";c();var kl=null;function Rl(t){if(kl!==null&&typeof kl.property){let e=kl;return kl=Rl.prototype=null,e}return kl=Rl.prototype=t??Object.create(null),new Rl}Rl();bD.exports=function(e){return Rl(e)}});var cp=g(c0=>{"use strict";c();Object.defineProperty(c0,"__esModule",{value:!0});c0.default=cJ;var PD=Ur();function cJ(t,e){if(t===e)return!0;if(PD.ALIAS_KEYS[e])return!1;let r=PD.FLIPPED_ALIAS_KEYS[e];if(r){if(r[0]===t)return!0;for(let i of r)if(t===i)return!0}return!1}});var p0=g(f0=>{"use strict";c();Object.defineProperty(f0,"__esModule",{value:!0});f0.default=pJ;var fJ=Ur();function pJ(t,e){if(t===e)return!0;let r=fJ.PLACEHOLDERS_ALIAS[t];if(r){for(let i of r)if(e===i)return!0}return!1}});var Ja=g(h0=>{"use strict";c();Object.defineProperty(h0,"__esModule",{value:!0});h0.default=gJ;var hJ=lp(),dJ=cp(),mJ=p0(),yJ=Ur();function gJ(t,e,r){return e?(0,dJ.default)(e.type,t)?typeof r>"u"?!0:(0,hJ.default)(e,r):!r&&e.type==="Placeholder"&&t in yJ.FLIPPED_ALIAS_KEYS?(0,mJ.default)(e.expectedNode,t):!1:!1}});var CD=g(Ml=>{"use strict";c();Object.defineProperty(Ml,"__esModule",{value:!0});Ml.isIdentifierChar=_D;Ml.isIdentifierName=bJ;Ml.isIdentifierStart=wD;var m0="\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-\u1C88\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-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\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",vD="\u200C\u200D\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\u0898-\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\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\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",SJ=new RegExp("["+m0+"]"),TJ=new RegExp("["+m0+vD+"]");m0=vD=null;var AD=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,68,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,4026,582,8634,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,757,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,3104,541,1507,4938,6,4191],EJ=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,81,2,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,9,5351,0,7,14,13835,9,87,9,39,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,4706,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,983,6,110,6,6,9,4759,9,787719,239];function d0(t,e){let r=65536;for(let i=0,s=e.length;i<s;i+=2){if(r+=e[i],r>t)return!1;if(r+=e[i+1],r>=t)return!0}return!1}function wD(t){return t<65?t===36:t<=90?!0:t<97?t===95:t<=122?!0:t<=65535?t>=170&&SJ.test(String.fromCharCode(t)):d0(t,AD)}function _D(t){return t<48?t===36:t<58?!0:t<65?!1:t<=90?!0:t<97?t===95:t<=122?!0:t<=65535?t>=170&&TJ.test(String.fromCharCode(t)):d0(t,AD)||d0(t,EJ)}function bJ(t){let e=!0;for(let r=0;r<t.length;r++){let i=t.charCodeAt(r);if((i&64512)===55296&&r+1<t.length){let s=t.charCodeAt(++r);(s&64512)===56320&&(i=65536+((i&1023)<<10)+(s&1023))}if(e){if(e=!1,!wD(i))return!1}else if(!_D(i))return!1}return!e}});var DD=g(Rn=>{"use strict";c();Object.defineProperty(Rn,"__esModule",{value:!0});Rn.isKeyword=wJ;Rn.isReservedWord=ID;Rn.isStrictBindOnlyReservedWord=ND;Rn.isStrictBindReservedWord=AJ;Rn.isStrictReservedWord=OD;var y0={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"]},xJ=new Set(y0.keyword),PJ=new Set(y0.strict),vJ=new Set(y0.strictBind);function ID(t,e){return e&&t==="await"||t==="enum"}function OD(t,e){return ID(t,e)||PJ.has(t)}function ND(t){return vJ.has(t)}function AJ(t,e){return OD(t,e)||ND(t)}function wJ(t){return xJ.has(t)}});var Bl=g(Ei=>{"use strict";c();Object.defineProperty(Ei,"__esModule",{value:!0});Object.defineProperty(Ei,"isIdentifierChar",{enumerable:!0,get:function(){return g0.isIdentifierChar}});Object.defineProperty(Ei,"isIdentifierName",{enumerable:!0,get:function(){return g0.isIdentifierName}});Object.defineProperty(Ei,"isIdentifierStart",{enumerable:!0,get:function(){return g0.isIdentifierStart}});Object.defineProperty(Ei,"isKeyword",{enumerable:!0,get:function(){return Fl.isKeyword}});Object.defineProperty(Ei,"isReservedWord",{enumerable:!0,get:function(){return Fl.isReservedWord}});Object.defineProperty(Ei,"isStrictBindOnlyReservedWord",{enumerable:!0,get:function(){return Fl.isStrictBindOnlyReservedWord}});Object.defineProperty(Ei,"isStrictBindReservedWord",{enumerable:!0,get:function(){return Fl.isStrictBindReservedWord}});Object.defineProperty(Ei,"isStrictReservedWord",{enumerable:!0,get:function(){return Fl.isStrictReservedWord}});var g0=CD(),Fl=DD()});var Qa=g(T0=>{"use strict";c();Object.defineProperty(T0,"__esModule",{value:!0});T0.default=_J;var S0=Bl();function _J(t,e=!0){return typeof t!="string"||e&&((0,S0.isKeyword)(t)||(0,S0.isStrictReservedWord)(t,!0))?!1:(0,S0.isIdentifierName)(t)}});var MD=g(jl=>{"use strict";c();Object.defineProperty(jl,"__esModule",{value:!0});jl.readCodePoint=RD;jl.readInt=kD;jl.readStringContents=IJ;var CJ=function(e){return e>=48&&e<=57},LD={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},fp={bin:t=>t===48||t===49,oct:t=>t>=48&&t<=55,dec:t=>t>=48&&t<=57,hex:t=>t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102};function IJ(t,e,r,i,s,n){let a=r,o=i,l=s,u="",f=null,p=r,{length:h}=e;for(;;){if(r>=h){n.unterminated(a,o,l),u+=e.slice(p,r);break}let d=e.charCodeAt(r);if(OJ(t,d,e,r)){u+=e.slice(p,r);break}if(d===92){u+=e.slice(p,r);let T=NJ(e,r,i,s,t==="template",n);T.ch===null&&!f?f={pos:r,lineStart:i,curLine:s}:u+=T.ch,{pos:r,lineStart:i,curLine:s}=T,p=r}else d===8232||d===8233?(++r,++s,i=r):d===10||d===13?t==="template"?(u+=e.slice(p,r)+`
33
+ `,++r,d===13&&e.charCodeAt(r)===10&&++r,++s,p=i=r):n.unterminated(a,o,l):++r}return{pos:r,str:u,firstInvalidLoc:f,lineStart:i,curLine:s,containsInvalid:!!f}}function OJ(t,e,r,i){return t==="template"?e===96||e===36&&r.charCodeAt(i+1)===123:e===(t==="double"?34:39)}function NJ(t,e,r,i,s,n){let a=!s;e++;let o=u=>({pos:e,ch:u,lineStart:r,curLine:i}),l=t.charCodeAt(e++);switch(l){case 110:return o(`
34
+ `);case 114:return o("\r");case 120:{let u;return{code:u,pos:e}=E0(t,e,r,i,2,!1,a,n),o(u===null?null:String.fromCharCode(u))}case 117:{let u;return{code:u,pos:e}=RD(t,e,r,i,a,n),o(u===null?null:String.fromCodePoint(u))}case 116:return o(" ");case 98:return o("\b");case 118:return o("\v");case 102:return o("\f");case 13:t.charCodeAt(e)===10&&++e;case 10:r=e,++i;case 8232:case 8233:return o("");case 56:case 57:if(s)return o(null);n.strictNumericEscape(e-1,r,i);default:if(l>=48&&l<=55){let u=e-1,p=t.slice(u,e+2).match(/^[0-7]+/)[0],h=parseInt(p,8);h>255&&(p=p.slice(0,-1),h=parseInt(p,8)),e+=p.length-1;let d=t.charCodeAt(e);if(p!=="0"||d===56||d===57){if(s)return o(null);n.strictNumericEscape(u,r,i)}return o(String.fromCharCode(h))}return o(String.fromCharCode(l))}}function E0(t,e,r,i,s,n,a,o){let l=e,u;return{n:u,pos:e}=kD(t,e,r,i,16,s,n,!1,o,!a),u===null&&(a?o.invalidEscapeSequence(l,r,i):e=l-1),{code:u,pos:e}}function kD(t,e,r,i,s,n,a,o,l,u){let f=e,p=s===16?LD.hex:LD.decBinOct,h=s===16?fp.hex:s===10?fp.dec:s===8?fp.oct:fp.bin,d=!1,T=0;for(let b=0,x=n??1/0;b<x;++b){let _=t.charCodeAt(e),R;if(_===95&&o!=="bail"){let k=t.charCodeAt(e-1),M=t.charCodeAt(e+1);if(o){if(Number.isNaN(M)||!h(M)||p.has(k)||p.has(M)){if(u)return{n:null,pos:e};l.unexpectedNumericSeparator(e,r,i)}}else{if(u)return{n:null,pos:e};l.numericSeparatorInEscapeSequence(e,r,i)}++e;continue}if(_>=97?R=_-97+10:_>=65?R=_-65+10:CJ(_)?R=_-48:R=1/0,R>=s){if(R<=9&&u)return{n:null,pos:e};if(R<=9&&l.invalidDigit(e,r,i,s))R=0;else if(a)R=0,d=!0;else break}++e,T=T*s+R}return e===f||n!=null&&e-f!==n||d?{n:null,pos:e}:{n:T,pos:e}}function RD(t,e,r,i,s,n){let a=t.charCodeAt(e),o;if(a===123){if(++e,{code:o,pos:e}=E0(t,e,r,i,t.indexOf("}",e)-e,!0,s,n),++e,o!==null&&o>1114111)if(s)n.invalidCodePoint(e,r,i);else return{code:null,pos:e}}else({code:o,pos:e}=E0(t,e,r,i,4,!1,s,n));return{code:o,pos:e}}});var js=g(we=>{"use strict";c();Object.defineProperty(we,"__esModule",{value:!0});we.UPDATE_OPERATORS=we.UNARY_OPERATORS=we.STRING_UNARY_OPERATORS=we.STATEMENT_OR_BLOCK_KEYS=we.NUMBER_UNARY_OPERATORS=we.NUMBER_BINARY_OPERATORS=we.NOT_LOCAL_BINDING=we.LOGICAL_OPERATORS=we.INHERIT_KEYS=we.FOR_INIT_KEYS=we.FLATTENABLE_KEYS=we.EQUALITY_BINARY_OPERATORS=we.COMPARISON_BINARY_OPERATORS=we.COMMENT_KEYS=we.BOOLEAN_UNARY_OPERATORS=we.BOOLEAN_NUMBER_BINARY_OPERATORS=we.BOOLEAN_BINARY_OPERATORS=we.BLOCK_SCOPED_SYMBOL=we.BINARY_OPERATORS=we.ASSIGNMENT_OPERATORS=void 0;var DJ=["consequent","body","alternate"];we.STATEMENT_OR_BLOCK_KEYS=DJ;var LJ=["body","expressions"];we.FLATTENABLE_KEYS=LJ;var kJ=["left","init"];we.FOR_INIT_KEYS=kJ;var RJ=["leadingComments","trailingComments","innerComments"];we.COMMENT_KEYS=RJ;var FD=["||","&&","??"];we.LOGICAL_OPERATORS=FD;var MJ=["++","--"];we.UPDATE_OPERATORS=MJ;var BD=[">","<",">=","<="];we.BOOLEAN_NUMBER_BINARY_OPERATORS=BD;var jD=["==","===","!=","!=="];we.EQUALITY_BINARY_OPERATORS=jD;var qD=[...jD,"in","instanceof"];we.COMPARISON_BINARY_OPERATORS=qD;var UD=[...qD,...BD];we.BOOLEAN_BINARY_OPERATORS=UD;var b0=["-","/","%","*","**","&","|",">>",">>>","<<","^"];we.NUMBER_BINARY_OPERATORS=b0;var FJ=["+",...b0,...UD,"|>"];we.BINARY_OPERATORS=FJ;var BJ=["=","+=",...b0.map(t=>t+"="),...FD.map(t=>t+"=")];we.ASSIGNMENT_OPERATORS=BJ;var $D=["delete","!"];we.BOOLEAN_UNARY_OPERATORS=$D;var VD=["+","-","~"];we.NUMBER_UNARY_OPERATORS=VD;var KD=["typeof"];we.STRING_UNARY_OPERATORS=KD;var jJ=["void","throw",...$D,...VD,...KD];we.UNARY_OPERATORS=jJ;var qJ={optional:["typeAnnotation","typeParameters","returnType"],force:["start","loc","end"]};we.INHERIT_KEYS=qJ;var UJ=Symbol.for("var used to be block scoped");we.BLOCK_SCOPED_SYMBOL=UJ;var $J=Symbol.for("should not be considered a local binding");we.NOT_LOCAL_BINDING=$J});var Wi=g(Fe=>{"use strict";c();Object.defineProperty(Fe,"__esModule",{value:!0});Fe.VISITOR_KEYS=Fe.NODE_PARENT_VALIDATIONS=Fe.NODE_FIELDS=Fe.FLIPPED_ALIAS_KEYS=Fe.DEPRECATED_KEYS=Fe.BUILDER_KEYS=Fe.ALIAS_KEYS=void 0;Fe.arrayOf=QD;Fe.arrayOfType=ZD;Fe.assertEach=eL;Fe.assertNodeOrValueType=YJ;Fe.assertNodeType=x0;Fe.assertOneOf=GJ;Fe.assertOptionalChainStart=zJ;Fe.assertShape=XJ;Fe.assertValueType=A0;Fe.chain=tL;Fe.default=rL;Fe.defineAliasedType=ZJ;Fe.typeIs=mp;Fe.validate=v0;Fe.validateArrayOfType=WJ;Fe.validateOptional=KJ;Fe.validateOptionalType=HJ;Fe.validateType=VJ;var HD=Ja(),dp=yp(),WD={};Fe.VISITOR_KEYS=WD;var GD={};Fe.ALIAS_KEYS=GD;var pp={};Fe.FLIPPED_ALIAS_KEYS=pp;var YD={};Fe.NODE_FIELDS=YD;var XD={};Fe.BUILDER_KEYS=XD;var zD={};Fe.DEPRECATED_KEYS=zD;var JD={};Fe.NODE_PARENT_VALIDATIONS=JD;function hp(t){return Array.isArray(t)?"array":t===null?"null":typeof t}function v0(t){return{validate:t}}function mp(t){return typeof t=="string"?x0(t):x0(...t)}function VJ(t){return v0(mp(t))}function KJ(t){return{validate:t,optional:!0}}function HJ(t){return{validate:mp(t),optional:!0}}function QD(t){return tL(A0("array"),eL(t))}function ZD(t){return QD(mp(t))}function WJ(t){return v0(ZD(t))}function eL(t){function e(r,i,s){if(Array.isArray(s))for(let n=0;n<s.length;n++){let a=`${i}[${n}]`,o=s[n];t(r,a,o),process.env.BABEL_TYPES_8_BREAKING&&(0,dp.validateChild)(r,a,o)}}return e.each=t,e}function GJ(...t){function e(r,i,s){if(t.indexOf(s)<0)throw new TypeError(`Property ${i} expected value to be one of ${JSON.stringify(t)} but got ${JSON.stringify(s)}`)}return e.oneOf=t,e}function x0(...t){function e(r,i,s){for(let n of t)if((0,HD.default)(n,s)){(0,dp.validateChild)(r,i,s);return}throw new TypeError(`Property ${i} of ${r.type} expected node to be of a type ${JSON.stringify(t)} but instead got ${JSON.stringify(s==null?void 0:s.type)}`)}return e.oneOfNodeTypes=t,e}function YJ(...t){function e(r,i,s){for(let n of t)if(hp(s)===n||(0,HD.default)(n,s)){(0,dp.validateChild)(r,i,s);return}throw new TypeError(`Property ${i} of ${r.type} expected node to be of a type ${JSON.stringify(t)} but instead got ${JSON.stringify(s==null?void 0:s.type)}`)}return e.oneOfNodeOrValueTypes=t,e}function A0(t){function e(r,i,s){if(!(hp(s)===t))throw new TypeError(`Property ${i} expected type of ${t} but got ${hp(s)}`)}return e.type=t,e}function XJ(t){function e(r,i,s){let n=[];for(let a of Object.keys(t))try{(0,dp.validateField)(r,a,s[a],t[a])}catch(o){if(o instanceof TypeError){n.push(o.message);continue}throw o}if(n.length)throw new TypeError(`Property ${i} of ${r.type} expected to have the following:
35
+ ${n.join(`
36
+ `)}`)}return e.shapeOf=t,e}function zJ(){function t(e){var r;let i=e;for(;e;){let{type:s}=i;if(s==="OptionalCallExpression"){if(i.optional)return;i=i.callee;continue}if(s==="OptionalMemberExpression"){if(i.optional)return;i=i.object;continue}break}throw new TypeError(`Non-optional ${e.type} must chain from an optional OptionalMemberExpression or OptionalCallExpression. Found chain from ${(r=i)==null?void 0:r.type}`)}return t}function tL(...t){function e(...r){for(let i of t)i(...r)}if(e.chainOf=t,t.length>=2&&"type"in t[0]&&t[0].type==="array"&&!("each"in t[1]))throw new Error('An assertValueType("array") validator can only be followed by an assertEach(...) validator.');return e}var JJ=["aliases","builder","deprecatedAlias","fields","inherits","visitor","validate"],QJ=["default","optional","deprecated","validate"],P0={};function ZJ(...t){return(e,r={})=>{let i=r.aliases;if(!i){var s,n;r.inherits&&(i=(s=P0[r.inherits].aliases)==null?void 0:s.slice()),(n=i)!=null||(i=[]),r.aliases=i}let a=t.filter(o=>!i.includes(o));i.unshift(...a),rL(e,r)}}function rL(t,e={}){let r=e.inherits&&P0[e.inherits]||{},i=e.fields;if(!i&&(i={},r.fields)){let o=Object.getOwnPropertyNames(r.fields);for(let l of o){let u=r.fields[l],f=u.default;if(Array.isArray(f)?f.length>0:f&&typeof f=="object")throw new Error("field defaults can only be primitives or empty arrays currently");i[l]={default:Array.isArray(f)?[]:f,optional:u.optional,deprecated:u.deprecated,validate:u.validate}}}let s=e.visitor||r.visitor||[],n=e.aliases||r.aliases||[],a=e.builder||r.builder||e.visitor||[];for(let o of Object.keys(e))if(JJ.indexOf(o)===-1)throw new Error(`Unknown type option "${o}" on ${t}`);e.deprecatedAlias&&(zD[e.deprecatedAlias]=t);for(let o of s.concat(a))i[o]=i[o]||{};for(let o of Object.keys(i)){let l=i[o];l.default!==void 0&&a.indexOf(o)===-1&&(l.optional=!0),l.default===void 0?l.default=null:!l.validate&&l.default!=null&&(l.validate=A0(hp(l.default)));for(let u of Object.keys(l))if(QJ.indexOf(u)===-1)throw new Error(`Unknown field key "${u}" on ${t}.${o}`)}WD[t]=e.visitor=s,XD[t]=e.builder=a,YD[t]=e.fields=i,GD[t]=e.aliases=n,n.forEach(o=>{pp[o]=pp[o]||[],pp[o].push(t)}),e.validate&&(JD[t]=e.validate),P0[t]=e}});var _0=g(pr=>{"use strict";c();Object.defineProperty(pr,"__esModule",{value:!0});pr.patternLikeCommon=pr.functionTypeAnnotationCommon=pr.functionDeclarationCommon=pr.functionCommon=pr.classMethodOrPropertyCommon=pr.classMethodOrDeclareMethodCommon=void 0;var Yt=Ja(),eQ=Qa(),iL=Bl(),tQ=MD(),ql=js(),S=Wi(),ee=(0,S.defineAliasedType)("Standardized");ee("ArrayExpression",{fields:{elements:{validate:(0,S.chain)((0,S.assertValueType)("array"),(0,S.assertEach)((0,S.assertNodeOrValueType)("null","Expression","SpreadElement"))),default:process.env.BABEL_TYPES_8_BREAKING?void 0:[]}},visitor:["elements"],aliases:["Expression"]});ee("AssignmentExpression",{fields:{operator:{validate:function(){if(!process.env.BABEL_TYPES_8_BREAKING)return(0,S.assertValueType)("string");let t=(0,S.assertOneOf)(...ql.ASSIGNMENT_OPERATORS),e=(0,S.assertOneOf)("=");return function(r,i,s){((0,Yt.default)("Pattern",r.left)?e:t)(r,i,s)}}()},left:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,S.assertNodeType)("Identifier","MemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression"):(0,S.assertNodeType)("LVal")},right:{validate:(0,S.assertNodeType)("Expression")}},builder:["operator","left","right"],visitor:["left","right"],aliases:["Expression"]});ee("BinaryExpression",{builder:["operator","left","right"],fields:{operator:{validate:(0,S.assertOneOf)(...ql.BINARY_OPERATORS)},left:{validate:function(){let t=(0,S.assertNodeType)("Expression"),e=(0,S.assertNodeType)("Expression","PrivateName");return Object.assign(function(i,s,n){(i.operator==="in"?e:t)(i,s,n)},{oneOfNodeTypes:["Expression","PrivateName"]})}()},right:{validate:(0,S.assertNodeType)("Expression")}},visitor:["left","right"],aliases:["Binary","Expression"]});ee("InterpreterDirective",{builder:["value"],fields:{value:{validate:(0,S.assertValueType)("string")}}});ee("Directive",{visitor:["value"],fields:{value:{validate:(0,S.assertNodeType)("DirectiveLiteral")}}});ee("DirectiveLiteral",{builder:["value"],fields:{value:{validate:(0,S.assertValueType)("string")}}});ee("BlockStatement",{builder:["body","directives"],visitor:["directives","body"],fields:{directives:{validate:(0,S.chain)((0,S.assertValueType)("array"),(0,S.assertEach)((0,S.assertNodeType)("Directive"))),default:[]},body:{validate:(0,S.chain)((0,S.assertValueType)("array"),(0,S.assertEach)((0,S.assertNodeType)("Statement")))}},aliases:["Scopable","BlockParent","Block","Statement"]});ee("BreakStatement",{visitor:["label"],fields:{label:{validate:(0,S.assertNodeType)("Identifier"),optional:!0}},aliases:["Statement","Terminatorless","CompletionStatement"]});ee("CallExpression",{visitor:["callee","arguments","typeParameters","typeArguments"],builder:["callee","arguments"],aliases:["Expression"],fields:Object.assign({callee:{validate:(0,S.assertNodeType)("Expression","Super","V8IntrinsicIdentifier")},arguments:{validate:(0,S.chain)((0,S.assertValueType)("array"),(0,S.assertEach)((0,S.assertNodeType)("Expression","SpreadElement","JSXNamespacedName","ArgumentPlaceholder")))}},process.env.BABEL_TYPES_8_BREAKING?{}:{optional:{validate:(0,S.assertOneOf)(!0,!1),optional:!0}},{typeArguments:{validate:(0,S.assertNodeType)("TypeParameterInstantiation"),optional:!0},typeParameters:{validate:(0,S.assertNodeType)("TSTypeParameterInstantiation"),optional:!0}})});ee("CatchClause",{visitor:["param","body"],fields:{param:{validate:(0,S.assertNodeType)("Identifier","ArrayPattern","ObjectPattern"),optional:!0},body:{validate:(0,S.assertNodeType)("BlockStatement")}},aliases:["Scopable","BlockParent"]});ee("ConditionalExpression",{visitor:["test","consequent","alternate"],fields:{test:{validate:(0,S.assertNodeType)("Expression")},consequent:{validate:(0,S.assertNodeType)("Expression")},alternate:{validate:(0,S.assertNodeType)("Expression")}},aliases:["Expression","Conditional"]});ee("ContinueStatement",{visitor:["label"],fields:{label:{validate:(0,S.assertNodeType)("Identifier"),optional:!0}},aliases:["Statement","Terminatorless","CompletionStatement"]});ee("DebuggerStatement",{aliases:["Statement"]});ee("DoWhileStatement",{visitor:["test","body"],fields:{test:{validate:(0,S.assertNodeType)("Expression")},body:{validate:(0,S.assertNodeType)("Statement")}},aliases:["Statement","BlockParent","Loop","While","Scopable"]});ee("EmptyStatement",{aliases:["Statement"]});ee("ExpressionStatement",{visitor:["expression"],fields:{expression:{validate:(0,S.assertNodeType)("Expression")}},aliases:["Statement","ExpressionWrapper"]});ee("File",{builder:["program","comments","tokens"],visitor:["program"],fields:{program:{validate:(0,S.assertNodeType)("Program")},comments:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,S.assertEach)((0,S.assertNodeType)("CommentBlock","CommentLine")):Object.assign(()=>{},{each:{oneOfNodeTypes:["CommentBlock","CommentLine"]}}),optional:!0},tokens:{validate:(0,S.assertEach)(Object.assign(()=>{},{type:"any"})),optional:!0}}});ee("ForInStatement",{visitor:["left","right","body"],aliases:["Scopable","Statement","For","BlockParent","Loop","ForXStatement"],fields:{left:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,S.assertNodeType)("VariableDeclaration","Identifier","MemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression"):(0,S.assertNodeType)("VariableDeclaration","LVal")},right:{validate:(0,S.assertNodeType)("Expression")},body:{validate:(0,S.assertNodeType)("Statement")}}});ee("ForStatement",{visitor:["init","test","update","body"],aliases:["Scopable","Statement","For","BlockParent","Loop"],fields:{init:{validate:(0,S.assertNodeType)("VariableDeclaration","Expression"),optional:!0},test:{validate:(0,S.assertNodeType)("Expression"),optional:!0},update:{validate:(0,S.assertNodeType)("Expression"),optional:!0},body:{validate:(0,S.assertNodeType)("Statement")}}});var Za=()=>({params:{validate:(0,S.chain)((0,S.assertValueType)("array"),(0,S.assertEach)((0,S.assertNodeType)("Identifier","Pattern","RestElement")))},generator:{default:!1},async:{default:!1}});pr.functionCommon=Za;var Mn=()=>({returnType:{validate:(0,S.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},typeParameters:{validate:(0,S.assertNodeType)("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:!0}});pr.functionTypeAnnotationCommon=Mn;var sL=()=>Object.assign({},Za(),{declare:{validate:(0,S.assertValueType)("boolean"),optional:!0},id:{validate:(0,S.assertNodeType)("Identifier"),optional:!0}});pr.functionDeclarationCommon=sL;ee("FunctionDeclaration",{builder:["id","params","body","generator","async"],visitor:["id","params","body","returnType","typeParameters"],fields:Object.assign({},sL(),Mn(),{body:{validate:(0,S.assertNodeType)("BlockStatement")},predicate:{validate:(0,S.assertNodeType)("DeclaredPredicate","InferredPredicate"),optional:!0}}),aliases:["Scopable","Function","BlockParent","FunctionParent","Statement","Pureish","Declaration"],validate:function(){if(!process.env.BABEL_TYPES_8_BREAKING)return()=>{};let t=(0,S.assertNodeType)("Identifier");return function(e,r,i){(0,Yt.default)("ExportDefaultDeclaration",e)||t(i,"id",i.id)}}()});ee("FunctionExpression",{inherits:"FunctionDeclaration",aliases:["Scopable","Function","BlockParent","FunctionParent","Expression","Pureish"],fields:Object.assign({},Za(),Mn(),{id:{validate:(0,S.assertNodeType)("Identifier"),optional:!0},body:{validate:(0,S.assertNodeType)("BlockStatement")},predicate:{validate:(0,S.assertNodeType)("DeclaredPredicate","InferredPredicate"),optional:!0}})});var eo=()=>({typeAnnotation:{validate:(0,S.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},optional:{validate:(0,S.assertValueType)("boolean"),optional:!0},decorators:{validate:(0,S.chain)((0,S.assertValueType)("array"),(0,S.assertEach)((0,S.assertNodeType)("Decorator"))),optional:!0}});pr.patternLikeCommon=eo;ee("Identifier",{builder:["name"],visitor:["typeAnnotation","decorators"],aliases:["Expression","PatternLike","LVal","TSEntityName"],fields:Object.assign({},eo(),{name:{validate:(0,S.chain)((0,S.assertValueType)("string"),Object.assign(function(t,e,r){if(process.env.BABEL_TYPES_8_BREAKING&&!(0,eQ.default)(r,!1))throw new TypeError(`"${r}" is not a valid identifier name`)},{type:"string"}))}}),validate(t,e,r){if(!process.env.BABEL_TYPES_8_BREAKING)return;let i=/\.(\w+)$/.exec(e);if(!i)return;let[,s]=i,n={computed:!1};if(s==="property"){if((0,Yt.default)("MemberExpression",t,n)||(0,Yt.default)("OptionalMemberExpression",t,n))return}else if(s==="key"){if((0,Yt.default)("Property",t,n)||(0,Yt.default)("Method",t,n))return}else if(s==="exported"){if((0,Yt.default)("ExportSpecifier",t))return}else if(s==="imported"){if((0,Yt.default)("ImportSpecifier",t,{imported:r}))return}else if(s==="meta"&&(0,Yt.default)("MetaProperty",t,{meta:r}))return;if(((0,iL.isKeyword)(r.name)||(0,iL.isReservedWord)(r.name,!1))&&r.name!=="this")throw new TypeError(`"${r.name}" is not a valid identifier`)}});ee("IfStatement",{visitor:["test","consequent","alternate"],aliases:["Statement","Conditional"],fields:{test:{validate:(0,S.assertNodeType)("Expression")},consequent:{validate:(0,S.assertNodeType)("Statement")},alternate:{optional:!0,validate:(0,S.assertNodeType)("Statement")}}});ee("LabeledStatement",{visitor:["label","body"],aliases:["Statement"],fields:{label:{validate:(0,S.assertNodeType)("Identifier")},body:{validate:(0,S.assertNodeType)("Statement")}}});ee("StringLiteral",{builder:["value"],fields:{value:{validate:(0,S.assertValueType)("string")}},aliases:["Expression","Pureish","Literal","Immutable"]});ee("NumericLiteral",{builder:["value"],deprecatedAlias:"NumberLiteral",fields:{value:{validate:(0,S.assertValueType)("number")}},aliases:["Expression","Pureish","Literal","Immutable"]});ee("NullLiteral",{aliases:["Expression","Pureish","Literal","Immutable"]});ee("BooleanLiteral",{builder:["value"],fields:{value:{validate:(0,S.assertValueType)("boolean")}},aliases:["Expression","Pureish","Literal","Immutable"]});ee("RegExpLiteral",{builder:["pattern","flags"],deprecatedAlias:"RegexLiteral",aliases:["Expression","Pureish","Literal"],fields:{pattern:{validate:(0,S.assertValueType)("string")},flags:{validate:(0,S.chain)((0,S.assertValueType)("string"),Object.assign(function(t,e,r){if(!process.env.BABEL_TYPES_8_BREAKING)return;let i=/[^gimsuy]/.exec(r);if(i)throw new TypeError(`"${i[0]}" is not a valid RegExp flag`)},{type:"string"})),default:""}}});ee("LogicalExpression",{builder:["operator","left","right"],visitor:["left","right"],aliases:["Binary","Expression"],fields:{operator:{validate:(0,S.assertOneOf)(...ql.LOGICAL_OPERATORS)},left:{validate:(0,S.assertNodeType)("Expression")},right:{validate:(0,S.assertNodeType)("Expression")}}});ee("MemberExpression",{builder:["object","property","computed",...process.env.BABEL_TYPES_8_BREAKING?[]:["optional"]],visitor:["object","property"],aliases:["Expression","LVal"],fields:Object.assign({object:{validate:(0,S.assertNodeType)("Expression","Super")},property:{validate:function(){let t=(0,S.assertNodeType)("Identifier","PrivateName"),e=(0,S.assertNodeType)("Expression"),r=function(i,s,n){(i.computed?e:t)(i,s,n)};return r.oneOfNodeTypes=["Expression","Identifier","PrivateName"],r}()},computed:{default:!1}},process.env.BABEL_TYPES_8_BREAKING?{}:{optional:{validate:(0,S.assertOneOf)(!0,!1),optional:!0}})});ee("NewExpression",{inherits:"CallExpression"});ee("Program",{visitor:["directives","body"],builder:["body","directives","sourceType","interpreter"],fields:{sourceFile:{validate:(0,S.assertValueType)("string")},sourceType:{validate:(0,S.assertOneOf)("script","module"),default:"script"},interpreter:{validate:(0,S.assertNodeType)("InterpreterDirective"),default:null,optional:!0},directives:{validate:(0,S.chain)((0,S.assertValueType)("array"),(0,S.assertEach)((0,S.assertNodeType)("Directive"))),default:[]},body:{validate:(0,S.chain)((0,S.assertValueType)("array"),(0,S.assertEach)((0,S.assertNodeType)("Statement")))}},aliases:["Scopable","BlockParent","Block"]});ee("ObjectExpression",{visitor:["properties"],aliases:["Expression"],fields:{properties:{validate:(0,S.chain)((0,S.assertValueType)("array"),(0,S.assertEach)((0,S.assertNodeType)("ObjectMethod","ObjectProperty","SpreadElement")))}}});ee("ObjectMethod",{builder:["kind","key","params","body","computed","generator","async"],fields:Object.assign({},Za(),Mn(),{kind:Object.assign({validate:(0,S.assertOneOf)("method","get","set")},process.env.BABEL_TYPES_8_BREAKING?{}:{default:"method"}),computed:{default:!1},key:{validate:function(){let t=(0,S.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral"),e=(0,S.assertNodeType)("Expression"),r=function(i,s,n){(i.computed?e:t)(i,s,n)};return r.oneOfNodeTypes=["Expression","Identifier","StringLiteral","NumericLiteral","BigIntLiteral"],r}()},decorators:{validate:(0,S.chain)((0,S.assertValueType)("array"),(0,S.assertEach)((0,S.assertNodeType)("Decorator"))),optional:!0},body:{validate:(0,S.assertNodeType)("BlockStatement")}}),visitor:["key","params","body","decorators","returnType","typeParameters"],aliases:["UserWhitespacable","Function","Scopable","BlockParent","FunctionParent","Method","ObjectMember"]});ee("ObjectProperty",{builder:["key","value","computed","shorthand",...process.env.BABEL_TYPES_8_BREAKING?[]:["decorators"]],fields:{computed:{default:!1},key:{validate:function(){let t=(0,S.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","DecimalLiteral","PrivateName"),e=(0,S.assertNodeType)("Expression");return Object.assign(function(i,s,n){(i.computed?e:t)(i,s,n)},{oneOfNodeTypes:["Expression","Identifier","StringLiteral","NumericLiteral","BigIntLiteral","DecimalLiteral","PrivateName"]})}()},value:{validate:(0,S.assertNodeType)("Expression","PatternLike")},shorthand:{validate:(0,S.chain)((0,S.assertValueType)("boolean"),Object.assign(function(t,e,r){if(process.env.BABEL_TYPES_8_BREAKING&&r&&t.computed)throw new TypeError("Property shorthand of ObjectProperty cannot be true if computed is true")},{type:"boolean"}),function(t,e,r){if(process.env.BABEL_TYPES_8_BREAKING&&r&&!(0,Yt.default)("Identifier",t.key))throw new TypeError("Property shorthand of ObjectProperty cannot be true if key is not an Identifier")}),default:!1},decorators:{validate:(0,S.chain)((0,S.assertValueType)("array"),(0,S.assertEach)((0,S.assertNodeType)("Decorator"))),optional:!0}},visitor:["key","value","decorators"],aliases:["UserWhitespacable","Property","ObjectMember"],validate:function(){let t=(0,S.assertNodeType)("Identifier","Pattern","TSAsExpression","TSSatisfiesExpression","TSNonNullExpression","TSTypeAssertion"),e=(0,S.assertNodeType)("Expression");return function(r,i,s){if(!process.env.BABEL_TYPES_8_BREAKING)return;((0,Yt.default)("ObjectPattern",r)?t:e)(s,"value",s.value)}}()});ee("RestElement",{visitor:["argument","typeAnnotation"],builder:["argument"],aliases:["LVal","PatternLike"],deprecatedAlias:"RestProperty",fields:Object.assign({},eo(),{argument:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,S.assertNodeType)("Identifier","ArrayPattern","ObjectPattern","MemberExpression","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression"):(0,S.assertNodeType)("LVal")}}),validate(t,e){if(!process.env.BABEL_TYPES_8_BREAKING)return;let r=/(\w+)\[(\d+)\]/.exec(e);if(!r)throw new Error("Internal Babel error: malformed key.");let[,i,s]=r;if(t[i].length>+s+1)throw new TypeError(`RestElement must be last element of ${i}`)}});ee("ReturnStatement",{visitor:["argument"],aliases:["Statement","Terminatorless","CompletionStatement"],fields:{argument:{validate:(0,S.assertNodeType)("Expression"),optional:!0}}});ee("SequenceExpression",{visitor:["expressions"],fields:{expressions:{validate:(0,S.chain)((0,S.assertValueType)("array"),(0,S.assertEach)((0,S.assertNodeType)("Expression")))}},aliases:["Expression"]});ee("ParenthesizedExpression",{visitor:["expression"],aliases:["Expression","ExpressionWrapper"],fields:{expression:{validate:(0,S.assertNodeType)("Expression")}}});ee("SwitchCase",{visitor:["test","consequent"],fields:{test:{validate:(0,S.assertNodeType)("Expression"),optional:!0},consequent:{validate:(0,S.chain)((0,S.assertValueType)("array"),(0,S.assertEach)((0,S.assertNodeType)("Statement")))}}});ee("SwitchStatement",{visitor:["discriminant","cases"],aliases:["Statement","BlockParent","Scopable"],fields:{discriminant:{validate:(0,S.assertNodeType)("Expression")},cases:{validate:(0,S.chain)((0,S.assertValueType)("array"),(0,S.assertEach)((0,S.assertNodeType)("SwitchCase")))}}});ee("ThisExpression",{aliases:["Expression"]});ee("ThrowStatement",{visitor:["argument"],aliases:["Statement","Terminatorless","CompletionStatement"],fields:{argument:{validate:(0,S.assertNodeType)("Expression")}}});ee("TryStatement",{visitor:["block","handler","finalizer"],aliases:["Statement"],fields:{block:{validate:(0,S.chain)((0,S.assertNodeType)("BlockStatement"),Object.assign(function(t){if(process.env.BABEL_TYPES_8_BREAKING&&!t.handler&&!t.finalizer)throw new TypeError("TryStatement expects either a handler or finalizer, or both")},{oneOfNodeTypes:["BlockStatement"]}))},handler:{optional:!0,validate:(0,S.assertNodeType)("CatchClause")},finalizer:{optional:!0,validate:(0,S.assertNodeType)("BlockStatement")}}});ee("UnaryExpression",{builder:["operator","argument","prefix"],fields:{prefix:{default:!0},argument:{validate:(0,S.assertNodeType)("Expression")},operator:{validate:(0,S.assertOneOf)(...ql.UNARY_OPERATORS)}},visitor:["argument"],aliases:["UnaryLike","Expression"]});ee("UpdateExpression",{builder:["operator","argument","prefix"],fields:{prefix:{default:!1},argument:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,S.assertNodeType)("Identifier","MemberExpression"):(0,S.assertNodeType)("Expression")},operator:{validate:(0,S.assertOneOf)(...ql.UPDATE_OPERATORS)}},visitor:["argument"],aliases:["Expression"]});ee("VariableDeclaration",{builder:["kind","declarations"],visitor:["declarations"],aliases:["Statement","Declaration"],fields:{declare:{validate:(0,S.assertValueType)("boolean"),optional:!0},kind:{validate:(0,S.assertOneOf)("var","let","const","using","await using")},declarations:{validate:(0,S.chain)((0,S.assertValueType)("array"),(0,S.assertEach)((0,S.assertNodeType)("VariableDeclarator")))}},validate(t,e,r){if(process.env.BABEL_TYPES_8_BREAKING&&(0,Yt.default)("ForXStatement",t,{left:r})&&r.declarations.length!==1)throw new TypeError(`Exactly one VariableDeclarator is required in the VariableDeclaration of a ${t.type}`)}});ee("VariableDeclarator",{visitor:["id","init"],fields:{id:{validate:function(){if(!process.env.BABEL_TYPES_8_BREAKING)return(0,S.assertNodeType)("LVal");let t=(0,S.assertNodeType)("Identifier","ArrayPattern","ObjectPattern"),e=(0,S.assertNodeType)("Identifier");return function(r,i,s){(r.init?t:e)(r,i,s)}}()},definite:{optional:!0,validate:(0,S.assertValueType)("boolean")},init:{optional:!0,validate:(0,S.assertNodeType)("Expression")}}});ee("WhileStatement",{visitor:["test","body"],aliases:["Statement","BlockParent","Loop","While","Scopable"],fields:{test:{validate:(0,S.assertNodeType)("Expression")},body:{validate:(0,S.assertNodeType)("Statement")}}});ee("WithStatement",{visitor:["object","body"],aliases:["Statement"],fields:{object:{validate:(0,S.assertNodeType)("Expression")},body:{validate:(0,S.assertNodeType)("Statement")}}});ee("AssignmentPattern",{visitor:["left","right","decorators"],builder:["left","right"],aliases:["Pattern","PatternLike","LVal"],fields:Object.assign({},eo(),{left:{validate:(0,S.assertNodeType)("Identifier","ObjectPattern","ArrayPattern","MemberExpression","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression")},right:{validate:(0,S.assertNodeType)("Expression")},decorators:{validate:(0,S.chain)((0,S.assertValueType)("array"),(0,S.assertEach)((0,S.assertNodeType)("Decorator"))),optional:!0}})});ee("ArrayPattern",{visitor:["elements","typeAnnotation"],builder:["elements"],aliases:["Pattern","PatternLike","LVal"],fields:Object.assign({},eo(),{elements:{validate:(0,S.chain)((0,S.assertValueType)("array"),(0,S.assertEach)((0,S.assertNodeOrValueType)("null","PatternLike","LVal")))}})});ee("ArrowFunctionExpression",{builder:["params","body","async"],visitor:["params","body","returnType","typeParameters"],aliases:["Scopable","Function","BlockParent","FunctionParent","Expression","Pureish"],fields:Object.assign({},Za(),Mn(),{expression:{validate:(0,S.assertValueType)("boolean")},body:{validate:(0,S.assertNodeType)("BlockStatement","Expression")},predicate:{validate:(0,S.assertNodeType)("DeclaredPredicate","InferredPredicate"),optional:!0}})});ee("ClassBody",{visitor:["body"],fields:{body:{validate:(0,S.chain)((0,S.assertValueType)("array"),(0,S.assertEach)((0,S.assertNodeType)("ClassMethod","ClassPrivateMethod","ClassProperty","ClassPrivateProperty","ClassAccessorProperty","TSDeclareMethod","TSIndexSignature","StaticBlock")))}}});ee("ClassExpression",{builder:["id","superClass","body","decorators"],visitor:["id","body","superClass","mixins","typeParameters","superTypeParameters","implements","decorators"],aliases:["Scopable","Class","Expression"],fields:{id:{validate:(0,S.assertNodeType)("Identifier"),optional:!0},typeParameters:{validate:(0,S.assertNodeType)("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:!0},body:{validate:(0,S.assertNodeType)("ClassBody")},superClass:{optional:!0,validate:(0,S.assertNodeType)("Expression")},superTypeParameters:{validate:(0,S.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0},implements:{validate:(0,S.chain)((0,S.assertValueType)("array"),(0,S.assertEach)((0,S.assertNodeType)("TSExpressionWithTypeArguments","ClassImplements"))),optional:!0},decorators:{validate:(0,S.chain)((0,S.assertValueType)("array"),(0,S.assertEach)((0,S.assertNodeType)("Decorator"))),optional:!0},mixins:{validate:(0,S.assertNodeType)("InterfaceExtends"),optional:!0}}});ee("ClassDeclaration",{inherits:"ClassExpression",aliases:["Scopable","Class","Statement","Declaration"],fields:{id:{validate:(0,S.assertNodeType)("Identifier")},typeParameters:{validate:(0,S.assertNodeType)("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:!0},body:{validate:(0,S.assertNodeType)("ClassBody")},superClass:{optional:!0,validate:(0,S.assertNodeType)("Expression")},superTypeParameters:{validate:(0,S.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0},implements:{validate:(0,S.chain)((0,S.assertValueType)("array"),(0,S.assertEach)((0,S.assertNodeType)("TSExpressionWithTypeArguments","ClassImplements"))),optional:!0},decorators:{validate:(0,S.chain)((0,S.assertValueType)("array"),(0,S.assertEach)((0,S.assertNodeType)("Decorator"))),optional:!0},mixins:{validate:(0,S.assertNodeType)("InterfaceExtends"),optional:!0},declare:{validate:(0,S.assertValueType)("boolean"),optional:!0},abstract:{validate:(0,S.assertValueType)("boolean"),optional:!0}},validate:function(){let t=(0,S.assertNodeType)("Identifier");return function(e,r,i){process.env.BABEL_TYPES_8_BREAKING&&((0,Yt.default)("ExportDefaultDeclaration",e)||t(i,"id",i.id))}}()});ee("ExportAllDeclaration",{builder:["source"],visitor:["source","attributes","assertions"],aliases:["Statement","Declaration","ImportOrExportDeclaration","ExportDeclaration"],fields:{source:{validate:(0,S.assertNodeType)("StringLiteral")},exportKind:(0,S.validateOptional)((0,S.assertOneOf)("type","value")),attributes:{optional:!0,validate:(0,S.chain)((0,S.assertValueType)("array"),(0,S.assertEach)((0,S.assertNodeType)("ImportAttribute")))},assertions:{optional:!0,validate:(0,S.chain)((0,S.assertValueType)("array"),(0,S.assertEach)((0,S.assertNodeType)("ImportAttribute")))}}});ee("ExportDefaultDeclaration",{visitor:["declaration"],aliases:["Statement","Declaration","ImportOrExportDeclaration","ExportDeclaration"],fields:{declaration:{validate:(0,S.assertNodeType)("TSDeclareFunction","FunctionDeclaration","ClassDeclaration","Expression")},exportKind:(0,S.validateOptional)((0,S.assertOneOf)("value"))}});ee("ExportNamedDeclaration",{builder:["declaration","specifiers","source"],visitor:["declaration","specifiers","source","attributes","assertions"],aliases:["Statement","Declaration","ImportOrExportDeclaration","ExportDeclaration"],fields:{declaration:{optional:!0,validate:(0,S.chain)((0,S.assertNodeType)("Declaration"),Object.assign(function(t,e,r){if(process.env.BABEL_TYPES_8_BREAKING&&r&&t.specifiers.length)throw new TypeError("Only declaration or specifiers is allowed on ExportNamedDeclaration")},{oneOfNodeTypes:["Declaration"]}),function(t,e,r){if(process.env.BABEL_TYPES_8_BREAKING&&r&&t.source)throw new TypeError("Cannot export a declaration from a source")})},attributes:{optional:!0,validate:(0,S.chain)((0,S.assertValueType)("array"),(0,S.assertEach)((0,S.assertNodeType)("ImportAttribute")))},assertions:{optional:!0,validate:(0,S.chain)((0,S.assertValueType)("array"),(0,S.assertEach)((0,S.assertNodeType)("ImportAttribute")))},specifiers:{default:[],validate:(0,S.chain)((0,S.assertValueType)("array"),(0,S.assertEach)(function(){let t=(0,S.assertNodeType)("ExportSpecifier","ExportDefaultSpecifier","ExportNamespaceSpecifier"),e=(0,S.assertNodeType)("ExportSpecifier");return process.env.BABEL_TYPES_8_BREAKING?function(r,i,s){(r.source?t:e)(r,i,s)}:t}()))},source:{validate:(0,S.assertNodeType)("StringLiteral"),optional:!0},exportKind:(0,S.validateOptional)((0,S.assertOneOf)("type","value"))}});ee("ExportSpecifier",{visitor:["local","exported"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,S.assertNodeType)("Identifier")},exported:{validate:(0,S.assertNodeType)("Identifier","StringLiteral")},exportKind:{validate:(0,S.assertOneOf)("type","value"),optional:!0}}});ee("ForOfStatement",{visitor:["left","right","body"],builder:["left","right","body","await"],aliases:["Scopable","Statement","For","BlockParent","Loop","ForXStatement"],fields:{left:{validate:function(){if(!process.env.BABEL_TYPES_8_BREAKING)return(0,S.assertNodeType)("VariableDeclaration","LVal");let t=(0,S.assertNodeType)("VariableDeclaration"),e=(0,S.assertNodeType)("Identifier","MemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression");return function(r,i,s){(0,Yt.default)("VariableDeclaration",s)?t(r,i,s):e(r,i,s)}}()},right:{validate:(0,S.assertNodeType)("Expression")},body:{validate:(0,S.assertNodeType)("Statement")},await:{default:!1}}});ee("ImportDeclaration",{builder:["specifiers","source"],visitor:["specifiers","source","attributes","assertions"],aliases:["Statement","Declaration","ImportOrExportDeclaration"],fields:{attributes:{optional:!0,validate:(0,S.chain)((0,S.assertValueType)("array"),(0,S.assertEach)((0,S.assertNodeType)("ImportAttribute")))},assertions:{optional:!0,validate:(0,S.chain)((0,S.assertValueType)("array"),(0,S.assertEach)((0,S.assertNodeType)("ImportAttribute")))},module:{optional:!0,validate:(0,S.assertValueType)("boolean")},specifiers:{validate:(0,S.chain)((0,S.assertValueType)("array"),(0,S.assertEach)((0,S.assertNodeType)("ImportSpecifier","ImportDefaultSpecifier","ImportNamespaceSpecifier")))},source:{validate:(0,S.assertNodeType)("StringLiteral")},importKind:{validate:(0,S.assertOneOf)("type","typeof","value"),optional:!0}}});ee("ImportDefaultSpecifier",{visitor:["local"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,S.assertNodeType)("Identifier")}}});ee("ImportNamespaceSpecifier",{visitor:["local"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,S.assertNodeType)("Identifier")}}});ee("ImportSpecifier",{visitor:["local","imported"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,S.assertNodeType)("Identifier")},imported:{validate:(0,S.assertNodeType)("Identifier","StringLiteral")},importKind:{validate:(0,S.assertOneOf)("type","typeof","value"),optional:!0}}});ee("MetaProperty",{visitor:["meta","property"],aliases:["Expression"],fields:{meta:{validate:(0,S.chain)((0,S.assertNodeType)("Identifier"),Object.assign(function(t,e,r){if(!process.env.BABEL_TYPES_8_BREAKING)return;let i;switch(r.name){case"function":i="sent";break;case"new":i="target";break;case"import":i="meta";break}if(!(0,Yt.default)("Identifier",t.property,{name:i}))throw new TypeError("Unrecognised MetaProperty")},{oneOfNodeTypes:["Identifier"]}))},property:{validate:(0,S.assertNodeType)("Identifier")}}});var gp=()=>({abstract:{validate:(0,S.assertValueType)("boolean"),optional:!0},accessibility:{validate:(0,S.assertOneOf)("public","private","protected"),optional:!0},static:{default:!1},override:{default:!1},computed:{default:!1},optional:{validate:(0,S.assertValueType)("boolean"),optional:!0},key:{validate:(0,S.chain)(function(){let t=(0,S.assertNodeType)("Identifier","StringLiteral","NumericLiteral"),e=(0,S.assertNodeType)("Expression");return function(r,i,s){(r.computed?e:t)(r,i,s)}}(),(0,S.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","Expression"))}});pr.classMethodOrPropertyCommon=gp;var w0=()=>Object.assign({},Za(),gp(),{params:{validate:(0,S.chain)((0,S.assertValueType)("array"),(0,S.assertEach)((0,S.assertNodeType)("Identifier","Pattern","RestElement","TSParameterProperty")))},kind:{validate:(0,S.assertOneOf)("get","set","method","constructor"),default:"method"},access:{validate:(0,S.chain)((0,S.assertValueType)("string"),(0,S.assertOneOf)("public","private","protected")),optional:!0},decorators:{validate:(0,S.chain)((0,S.assertValueType)("array"),(0,S.assertEach)((0,S.assertNodeType)("Decorator"))),optional:!0}});pr.classMethodOrDeclareMethodCommon=w0;ee("ClassMethod",{aliases:["Function","Scopable","BlockParent","FunctionParent","Method"],builder:["kind","key","params","body","computed","static","generator","async"],visitor:["key","params","body","decorators","returnType","typeParameters"],fields:Object.assign({},w0(),Mn(),{body:{validate:(0,S.assertNodeType)("BlockStatement")}})});ee("ObjectPattern",{visitor:["properties","typeAnnotation","decorators"],builder:["properties"],aliases:["Pattern","PatternLike","LVal"],fields:Object.assign({},eo(),{properties:{validate:(0,S.chain)((0,S.assertValueType)("array"),(0,S.assertEach)((0,S.assertNodeType)("RestElement","ObjectProperty")))}})});ee("SpreadElement",{visitor:["argument"],aliases:["UnaryLike"],deprecatedAlias:"SpreadProperty",fields:{argument:{validate:(0,S.assertNodeType)("Expression")}}});ee("Super",{aliases:["Expression"]});ee("TaggedTemplateExpression",{visitor:["tag","quasi","typeParameters"],builder:["tag","quasi"],aliases:["Expression"],fields:{tag:{validate:(0,S.assertNodeType)("Expression")},quasi:{validate:(0,S.assertNodeType)("TemplateLiteral")},typeParameters:{validate:(0,S.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0}}});ee("TemplateElement",{builder:["value","tail"],fields:{value:{validate:(0,S.chain)((0,S.assertShape)({raw:{validate:(0,S.assertValueType)("string")},cooked:{validate:(0,S.assertValueType)("string"),optional:!0}}),function(e){let r=e.value.raw,i=!1,s=()=>{throw new Error("Internal @babel/types error.")},{str:n,firstInvalidLoc:a}=(0,tQ.readStringContents)("template",r,0,0,0,{unterminated(){i=!0},strictNumericEscape:s,invalidEscapeSequence:s,numericSeparatorInEscapeSequence:s,unexpectedNumericSeparator:s,invalidDigit:s,invalidCodePoint:s});if(!i)throw new Error("Invalid raw");e.value.cooked=a?null:n})},tail:{default:!1}}});ee("TemplateLiteral",{visitor:["quasis","expressions"],aliases:["Expression","Literal"],fields:{quasis:{validate:(0,S.chain)((0,S.assertValueType)("array"),(0,S.assertEach)((0,S.assertNodeType)("TemplateElement")))},expressions:{validate:(0,S.chain)((0,S.assertValueType)("array"),(0,S.assertEach)((0,S.assertNodeType)("Expression","TSType")),function(t,e,r){if(t.quasis.length!==r.length+1)throw new TypeError(`Number of ${t.type} quasis should be exactly one more than the number of expressions.
37
+ Expected ${r.length+1} quasis but got ${t.quasis.length}`)})}}});ee("YieldExpression",{builder:["argument","delegate"],visitor:["argument"],aliases:["Expression","Terminatorless"],fields:{delegate:{validate:(0,S.chain)((0,S.assertValueType)("boolean"),Object.assign(function(t,e,r){if(process.env.BABEL_TYPES_8_BREAKING&&r&&!t.argument)throw new TypeError("Property delegate of YieldExpression cannot be true if there is no argument")},{type:"boolean"})),default:!1},argument:{optional:!0,validate:(0,S.assertNodeType)("Expression")}}});ee("AwaitExpression",{builder:["argument"],visitor:["argument"],aliases:["Expression","Terminatorless"],fields:{argument:{validate:(0,S.assertNodeType)("Expression")}}});ee("Import",{aliases:["Expression"]});ee("BigIntLiteral",{builder:["value"],fields:{value:{validate:(0,S.assertValueType)("string")}},aliases:["Expression","Pureish","Literal","Immutable"]});ee("ExportNamespaceSpecifier",{visitor:["exported"],aliases:["ModuleSpecifier"],fields:{exported:{validate:(0,S.assertNodeType)("Identifier")}}});ee("OptionalMemberExpression",{builder:["object","property","computed","optional"],visitor:["object","property"],aliases:["Expression"],fields:{object:{validate:(0,S.assertNodeType)("Expression")},property:{validate:function(){let t=(0,S.assertNodeType)("Identifier"),e=(0,S.assertNodeType)("Expression");return Object.assign(function(i,s,n){(i.computed?e:t)(i,s,n)},{oneOfNodeTypes:["Expression","Identifier"]})}()},computed:{default:!1},optional:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,S.chain)((0,S.assertValueType)("boolean"),(0,S.assertOptionalChainStart)()):(0,S.assertValueType)("boolean")}}});ee("OptionalCallExpression",{visitor:["callee","arguments","typeParameters","typeArguments"],builder:["callee","arguments","optional"],aliases:["Expression"],fields:{callee:{validate:(0,S.assertNodeType)("Expression")},arguments:{validate:(0,S.chain)((0,S.assertValueType)("array"),(0,S.assertEach)((0,S.assertNodeType)("Expression","SpreadElement","JSXNamespacedName","ArgumentPlaceholder")))},optional:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,S.chain)((0,S.assertValueType)("boolean"),(0,S.assertOptionalChainStart)()):(0,S.assertValueType)("boolean")},typeArguments:{validate:(0,S.assertNodeType)("TypeParameterInstantiation"),optional:!0},typeParameters:{validate:(0,S.assertNodeType)("TSTypeParameterInstantiation"),optional:!0}}});ee("ClassProperty",{visitor:["key","value","typeAnnotation","decorators"],builder:["key","value","typeAnnotation","decorators","computed","static"],aliases:["Property"],fields:Object.assign({},gp(),{value:{validate:(0,S.assertNodeType)("Expression"),optional:!0},definite:{validate:(0,S.assertValueType)("boolean"),optional:!0},typeAnnotation:{validate:(0,S.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:(0,S.chain)((0,S.assertValueType)("array"),(0,S.assertEach)((0,S.assertNodeType)("Decorator"))),optional:!0},readonly:{validate:(0,S.assertValueType)("boolean"),optional:!0},declare:{validate:(0,S.assertValueType)("boolean"),optional:!0},variance:{validate:(0,S.assertNodeType)("Variance"),optional:!0}})});ee("ClassAccessorProperty",{visitor:["key","value","typeAnnotation","decorators"],builder:["key","value","typeAnnotation","decorators","computed","static"],aliases:["Property","Accessor"],fields:Object.assign({},gp(),{key:{validate:(0,S.chain)(function(){let t=(0,S.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","PrivateName"),e=(0,S.assertNodeType)("Expression");return function(r,i,s){(r.computed?e:t)(r,i,s)}}(),(0,S.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","Expression","PrivateName"))},value:{validate:(0,S.assertNodeType)("Expression"),optional:!0},definite:{validate:(0,S.assertValueType)("boolean"),optional:!0},typeAnnotation:{validate:(0,S.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:(0,S.chain)((0,S.assertValueType)("array"),(0,S.assertEach)((0,S.assertNodeType)("Decorator"))),optional:!0},readonly:{validate:(0,S.assertValueType)("boolean"),optional:!0},declare:{validate:(0,S.assertValueType)("boolean"),optional:!0},variance:{validate:(0,S.assertNodeType)("Variance"),optional:!0}})});ee("ClassPrivateProperty",{visitor:["key","value","decorators","typeAnnotation"],builder:["key","value","decorators","static"],aliases:["Property","Private"],fields:{key:{validate:(0,S.assertNodeType)("PrivateName")},value:{validate:(0,S.assertNodeType)("Expression"),optional:!0},typeAnnotation:{validate:(0,S.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:(0,S.chain)((0,S.assertValueType)("array"),(0,S.assertEach)((0,S.assertNodeType)("Decorator"))),optional:!0},static:{validate:(0,S.assertValueType)("boolean"),default:!1},readonly:{validate:(0,S.assertValueType)("boolean"),optional:!0},definite:{validate:(0,S.assertValueType)("boolean"),optional:!0},variance:{validate:(0,S.assertNodeType)("Variance"),optional:!0}}});ee("ClassPrivateMethod",{builder:["kind","key","params","body","static"],visitor:["key","params","body","decorators","returnType","typeParameters"],aliases:["Function","Scopable","BlockParent","FunctionParent","Method","Private"],fields:Object.assign({},w0(),Mn(),{kind:{validate:(0,S.assertOneOf)("get","set","method"),default:"method"},key:{validate:(0,S.assertNodeType)("PrivateName")},body:{validate:(0,S.assertNodeType)("BlockStatement")}})});ee("PrivateName",{visitor:["id"],aliases:["Private"],fields:{id:{validate:(0,S.assertNodeType)("Identifier")}}});ee("StaticBlock",{visitor:["body"],fields:{body:{validate:(0,S.chain)((0,S.assertValueType)("array"),(0,S.assertEach)((0,S.assertNodeType)("Statement")))}},aliases:["Scopable","BlockParent","FunctionParent"]})});var nL=g(()=>{"use strict";c();var j=Wi(),ue=(0,j.defineAliasedType)("Flow"),C0=t=>{let e=t==="DeclareClass";ue(t,{builder:["id","typeParameters","extends","body"],visitor:["id","typeParameters","extends",...e?["mixins","implements"]:[],"body"],aliases:["FlowDeclaration","Statement","Declaration"],fields:Object.assign({id:(0,j.validateType)("Identifier"),typeParameters:(0,j.validateOptionalType)("TypeParameterDeclaration"),extends:(0,j.validateOptional)((0,j.arrayOfType)("InterfaceExtends"))},e?{mixins:(0,j.validateOptional)((0,j.arrayOfType)("InterfaceExtends")),implements:(0,j.validateOptional)((0,j.arrayOfType)("ClassImplements"))}:{},{body:(0,j.validateType)("ObjectTypeAnnotation")})})};ue("AnyTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});ue("ArrayTypeAnnotation",{visitor:["elementType"],aliases:["FlowType"],fields:{elementType:(0,j.validateType)("FlowType")}});ue("BooleanTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});ue("BooleanLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:(0,j.validate)((0,j.assertValueType)("boolean"))}});ue("NullLiteralTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});ue("ClassImplements",{visitor:["id","typeParameters"],fields:{id:(0,j.validateType)("Identifier"),typeParameters:(0,j.validateOptionalType)("TypeParameterInstantiation")}});C0("DeclareClass");ue("DeclareFunction",{visitor:["id"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,j.validateType)("Identifier"),predicate:(0,j.validateOptionalType)("DeclaredPredicate")}});C0("DeclareInterface");ue("DeclareModule",{builder:["id","body","kind"],visitor:["id","body"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,j.validateType)(["Identifier","StringLiteral"]),body:(0,j.validateType)("BlockStatement"),kind:(0,j.validateOptional)((0,j.assertOneOf)("CommonJS","ES"))}});ue("DeclareModuleExports",{visitor:["typeAnnotation"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{typeAnnotation:(0,j.validateType)("TypeAnnotation")}});ue("DeclareTypeAlias",{visitor:["id","typeParameters","right"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,j.validateType)("Identifier"),typeParameters:(0,j.validateOptionalType)("TypeParameterDeclaration"),right:(0,j.validateType)("FlowType")}});ue("DeclareOpaqueType",{visitor:["id","typeParameters","supertype"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,j.validateType)("Identifier"),typeParameters:(0,j.validateOptionalType)("TypeParameterDeclaration"),supertype:(0,j.validateOptionalType)("FlowType"),impltype:(0,j.validateOptionalType)("FlowType")}});ue("DeclareVariable",{visitor:["id"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,j.validateType)("Identifier")}});ue("DeclareExportDeclaration",{visitor:["declaration","specifiers","source"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{declaration:(0,j.validateOptionalType)("Flow"),specifiers:(0,j.validateOptional)((0,j.arrayOfType)(["ExportSpecifier","ExportNamespaceSpecifier"])),source:(0,j.validateOptionalType)("StringLiteral"),default:(0,j.validateOptional)((0,j.assertValueType)("boolean"))}});ue("DeclareExportAllDeclaration",{visitor:["source"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{source:(0,j.validateType)("StringLiteral"),exportKind:(0,j.validateOptional)((0,j.assertOneOf)("type","value"))}});ue("DeclaredPredicate",{visitor:["value"],aliases:["FlowPredicate"],fields:{value:(0,j.validateType)("Flow")}});ue("ExistsTypeAnnotation",{aliases:["FlowType"]});ue("FunctionTypeAnnotation",{visitor:["typeParameters","params","rest","returnType"],aliases:["FlowType"],fields:{typeParameters:(0,j.validateOptionalType)("TypeParameterDeclaration"),params:(0,j.validate)((0,j.arrayOfType)("FunctionTypeParam")),rest:(0,j.validateOptionalType)("FunctionTypeParam"),this:(0,j.validateOptionalType)("FunctionTypeParam"),returnType:(0,j.validateType)("FlowType")}});ue("FunctionTypeParam",{visitor:["name","typeAnnotation"],fields:{name:(0,j.validateOptionalType)("Identifier"),typeAnnotation:(0,j.validateType)("FlowType"),optional:(0,j.validateOptional)((0,j.assertValueType)("boolean"))}});ue("GenericTypeAnnotation",{visitor:["id","typeParameters"],aliases:["FlowType"],fields:{id:(0,j.validateType)(["Identifier","QualifiedTypeIdentifier"]),typeParameters:(0,j.validateOptionalType)("TypeParameterInstantiation")}});ue("InferredPredicate",{aliases:["FlowPredicate"]});ue("InterfaceExtends",{visitor:["id","typeParameters"],fields:{id:(0,j.validateType)(["Identifier","QualifiedTypeIdentifier"]),typeParameters:(0,j.validateOptionalType)("TypeParameterInstantiation")}});C0("InterfaceDeclaration");ue("InterfaceTypeAnnotation",{visitor:["extends","body"],aliases:["FlowType"],fields:{extends:(0,j.validateOptional)((0,j.arrayOfType)("InterfaceExtends")),body:(0,j.validateType)("ObjectTypeAnnotation")}});ue("IntersectionTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:(0,j.validate)((0,j.arrayOfType)("FlowType"))}});ue("MixedTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});ue("EmptyTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});ue("NullableTypeAnnotation",{visitor:["typeAnnotation"],aliases:["FlowType"],fields:{typeAnnotation:(0,j.validateType)("FlowType")}});ue("NumberLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:(0,j.validate)((0,j.assertValueType)("number"))}});ue("NumberTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});ue("ObjectTypeAnnotation",{visitor:["properties","indexers","callProperties","internalSlots"],aliases:["FlowType"],builder:["properties","indexers","callProperties","internalSlots","exact"],fields:{properties:(0,j.validate)((0,j.arrayOfType)(["ObjectTypeProperty","ObjectTypeSpreadProperty"])),indexers:{validate:(0,j.arrayOfType)("ObjectTypeIndexer"),optional:!0,default:[]},callProperties:{validate:(0,j.arrayOfType)("ObjectTypeCallProperty"),optional:!0,default:[]},internalSlots:{validate:(0,j.arrayOfType)("ObjectTypeInternalSlot"),optional:!0,default:[]},exact:{validate:(0,j.assertValueType)("boolean"),default:!1},inexact:(0,j.validateOptional)((0,j.assertValueType)("boolean"))}});ue("ObjectTypeInternalSlot",{visitor:["id","value","optional","static","method"],aliases:["UserWhitespacable"],fields:{id:(0,j.validateType)("Identifier"),value:(0,j.validateType)("FlowType"),optional:(0,j.validate)((0,j.assertValueType)("boolean")),static:(0,j.validate)((0,j.assertValueType)("boolean")),method:(0,j.validate)((0,j.assertValueType)("boolean"))}});ue("ObjectTypeCallProperty",{visitor:["value"],aliases:["UserWhitespacable"],fields:{value:(0,j.validateType)("FlowType"),static:(0,j.validate)((0,j.assertValueType)("boolean"))}});ue("ObjectTypeIndexer",{visitor:["id","key","value","variance"],aliases:["UserWhitespacable"],fields:{id:(0,j.validateOptionalType)("Identifier"),key:(0,j.validateType)("FlowType"),value:(0,j.validateType)("FlowType"),static:(0,j.validate)((0,j.assertValueType)("boolean")),variance:(0,j.validateOptionalType)("Variance")}});ue("ObjectTypeProperty",{visitor:["key","value","variance"],aliases:["UserWhitespacable"],fields:{key:(0,j.validateType)(["Identifier","StringLiteral"]),value:(0,j.validateType)("FlowType"),kind:(0,j.validate)((0,j.assertOneOf)("init","get","set")),static:(0,j.validate)((0,j.assertValueType)("boolean")),proto:(0,j.validate)((0,j.assertValueType)("boolean")),optional:(0,j.validate)((0,j.assertValueType)("boolean")),variance:(0,j.validateOptionalType)("Variance"),method:(0,j.validate)((0,j.assertValueType)("boolean"))}});ue("ObjectTypeSpreadProperty",{visitor:["argument"],aliases:["UserWhitespacable"],fields:{argument:(0,j.validateType)("FlowType")}});ue("OpaqueType",{visitor:["id","typeParameters","supertype","impltype"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,j.validateType)("Identifier"),typeParameters:(0,j.validateOptionalType)("TypeParameterDeclaration"),supertype:(0,j.validateOptionalType)("FlowType"),impltype:(0,j.validateType)("FlowType")}});ue("QualifiedTypeIdentifier",{visitor:["id","qualification"],fields:{id:(0,j.validateType)("Identifier"),qualification:(0,j.validateType)(["Identifier","QualifiedTypeIdentifier"])}});ue("StringLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:(0,j.validate)((0,j.assertValueType)("string"))}});ue("StringTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});ue("SymbolTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});ue("ThisTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});ue("TupleTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:(0,j.validate)((0,j.arrayOfType)("FlowType"))}});ue("TypeofTypeAnnotation",{visitor:["argument"],aliases:["FlowType"],fields:{argument:(0,j.validateType)("FlowType")}});ue("TypeAlias",{visitor:["id","typeParameters","right"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,j.validateType)("Identifier"),typeParameters:(0,j.validateOptionalType)("TypeParameterDeclaration"),right:(0,j.validateType)("FlowType")}});ue("TypeAnnotation",{visitor:["typeAnnotation"],fields:{typeAnnotation:(0,j.validateType)("FlowType")}});ue("TypeCastExpression",{visitor:["expression","typeAnnotation"],aliases:["ExpressionWrapper","Expression"],fields:{expression:(0,j.validateType)("Expression"),typeAnnotation:(0,j.validateType)("TypeAnnotation")}});ue("TypeParameter",{visitor:["bound","default","variance"],fields:{name:(0,j.validate)((0,j.assertValueType)("string")),bound:(0,j.validateOptionalType)("TypeAnnotation"),default:(0,j.validateOptionalType)("FlowType"),variance:(0,j.validateOptionalType)("Variance")}});ue("TypeParameterDeclaration",{visitor:["params"],fields:{params:(0,j.validate)((0,j.arrayOfType)("TypeParameter"))}});ue("TypeParameterInstantiation",{visitor:["params"],fields:{params:(0,j.validate)((0,j.arrayOfType)("FlowType"))}});ue("UnionTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:(0,j.validate)((0,j.arrayOfType)("FlowType"))}});ue("Variance",{builder:["kind"],fields:{kind:(0,j.validate)((0,j.assertOneOf)("minus","plus"))}});ue("VoidTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});ue("EnumDeclaration",{aliases:["Statement","Declaration"],visitor:["id","body"],fields:{id:(0,j.validateType)("Identifier"),body:(0,j.validateType)(["EnumBooleanBody","EnumNumberBody","EnumStringBody","EnumSymbolBody"])}});ue("EnumBooleanBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:(0,j.validate)((0,j.assertValueType)("boolean")),members:(0,j.validateArrayOfType)("EnumBooleanMember"),hasUnknownMembers:(0,j.validate)((0,j.assertValueType)("boolean"))}});ue("EnumNumberBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:(0,j.validate)((0,j.assertValueType)("boolean")),members:(0,j.validateArrayOfType)("EnumNumberMember"),hasUnknownMembers:(0,j.validate)((0,j.assertValueType)("boolean"))}});ue("EnumStringBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:(0,j.validate)((0,j.assertValueType)("boolean")),members:(0,j.validateArrayOfType)(["EnumStringMember","EnumDefaultedMember"]),hasUnknownMembers:(0,j.validate)((0,j.assertValueType)("boolean"))}});ue("EnumSymbolBody",{aliases:["EnumBody"],visitor:["members"],fields:{members:(0,j.validateArrayOfType)("EnumDefaultedMember"),hasUnknownMembers:(0,j.validate)((0,j.assertValueType)("boolean"))}});ue("EnumBooleanMember",{aliases:["EnumMember"],visitor:["id"],fields:{id:(0,j.validateType)("Identifier"),init:(0,j.validateType)("BooleanLiteral")}});ue("EnumNumberMember",{aliases:["EnumMember"],visitor:["id","init"],fields:{id:(0,j.validateType)("Identifier"),init:(0,j.validateType)("NumericLiteral")}});ue("EnumStringMember",{aliases:["EnumMember"],visitor:["id","init"],fields:{id:(0,j.validateType)("Identifier"),init:(0,j.validateType)("StringLiteral")}});ue("EnumDefaultedMember",{aliases:["EnumMember"],visitor:["id"],fields:{id:(0,j.validateType)("Identifier")}});ue("IndexedAccessType",{visitor:["objectType","indexType"],aliases:["FlowType"],fields:{objectType:(0,j.validateType)("FlowType"),indexType:(0,j.validateType)("FlowType")}});ue("OptionalIndexedAccessType",{visitor:["objectType","indexType"],aliases:["FlowType"],fields:{objectType:(0,j.validateType)("FlowType"),indexType:(0,j.validateType)("FlowType"),optional:(0,j.validate)((0,j.assertValueType)("boolean"))}})});var aL=g(()=>{"use strict";c();var Ue=Wi(),Xt=(0,Ue.defineAliasedType)("JSX");Xt("JSXAttribute",{visitor:["name","value"],aliases:["Immutable"],fields:{name:{validate:(0,Ue.assertNodeType)("JSXIdentifier","JSXNamespacedName")},value:{optional:!0,validate:(0,Ue.assertNodeType)("JSXElement","JSXFragment","StringLiteral","JSXExpressionContainer")}}});Xt("JSXClosingElement",{visitor:["name"],aliases:["Immutable"],fields:{name:{validate:(0,Ue.assertNodeType)("JSXIdentifier","JSXMemberExpression","JSXNamespacedName")}}});Xt("JSXElement",{builder:["openingElement","closingElement","children","selfClosing"],visitor:["openingElement","children","closingElement"],aliases:["Immutable","Expression"],fields:Object.assign({openingElement:{validate:(0,Ue.assertNodeType)("JSXOpeningElement")},closingElement:{optional:!0,validate:(0,Ue.assertNodeType)("JSXClosingElement")},children:{validate:(0,Ue.chain)((0,Ue.assertValueType)("array"),(0,Ue.assertEach)((0,Ue.assertNodeType)("JSXText","JSXExpressionContainer","JSXSpreadChild","JSXElement","JSXFragment")))}},{selfClosing:{validate:(0,Ue.assertValueType)("boolean"),optional:!0}})});Xt("JSXEmptyExpression",{});Xt("JSXExpressionContainer",{visitor:["expression"],aliases:["Immutable"],fields:{expression:{validate:(0,Ue.assertNodeType)("Expression","JSXEmptyExpression")}}});Xt("JSXSpreadChild",{visitor:["expression"],aliases:["Immutable"],fields:{expression:{validate:(0,Ue.assertNodeType)("Expression")}}});Xt("JSXIdentifier",{builder:["name"],fields:{name:{validate:(0,Ue.assertValueType)("string")}}});Xt("JSXMemberExpression",{visitor:["object","property"],fields:{object:{validate:(0,Ue.assertNodeType)("JSXMemberExpression","JSXIdentifier")},property:{validate:(0,Ue.assertNodeType)("JSXIdentifier")}}});Xt("JSXNamespacedName",{visitor:["namespace","name"],fields:{namespace:{validate:(0,Ue.assertNodeType)("JSXIdentifier")},name:{validate:(0,Ue.assertNodeType)("JSXIdentifier")}}});Xt("JSXOpeningElement",{builder:["name","attributes","selfClosing"],visitor:["name","attributes"],aliases:["Immutable"],fields:{name:{validate:(0,Ue.assertNodeType)("JSXIdentifier","JSXMemberExpression","JSXNamespacedName")},selfClosing:{default:!1},attributes:{validate:(0,Ue.chain)((0,Ue.assertValueType)("array"),(0,Ue.assertEach)((0,Ue.assertNodeType)("JSXAttribute","JSXSpreadAttribute")))},typeParameters:{validate:(0,Ue.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0}}});Xt("JSXSpreadAttribute",{visitor:["argument"],fields:{argument:{validate:(0,Ue.assertNodeType)("Expression")}}});Xt("JSXText",{aliases:["Immutable"],builder:["value"],fields:{value:{validate:(0,Ue.assertValueType)("string")}}});Xt("JSXFragment",{builder:["openingFragment","closingFragment","children"],visitor:["openingFragment","children","closingFragment"],aliases:["Immutable","Expression"],fields:{openingFragment:{validate:(0,Ue.assertNodeType)("JSXOpeningFragment")},closingFragment:{validate:(0,Ue.assertNodeType)("JSXClosingFragment")},children:{validate:(0,Ue.chain)((0,Ue.assertValueType)("array"),(0,Ue.assertEach)((0,Ue.assertNodeType)("JSXText","JSXExpressionContainer","JSXSpreadChild","JSXElement","JSXFragment")))}}});Xt("JSXOpeningFragment",{aliases:["Immutable"]});Xt("JSXClosingFragment",{aliases:["Immutable"]})});var I0=g(qs=>{"use strict";c();Object.defineProperty(qs,"__esModule",{value:!0});qs.PLACEHOLDERS_FLIPPED_ALIAS=qs.PLACEHOLDERS_ALIAS=qs.PLACEHOLDERS=void 0;var rQ=Wi(),oL=["Identifier","StringLiteral","Expression","Statement","Declaration","BlockStatement","ClassBody","Pattern"];qs.PLACEHOLDERS=oL;var Tp={Declaration:["Statement"],Pattern:["PatternLike","LVal"]};qs.PLACEHOLDERS_ALIAS=Tp;for(let t of oL){let e=rQ.ALIAS_KEYS[t];e!=null&&e.length&&(Tp[t]=e)}var Sp={};qs.PLACEHOLDERS_FLIPPED_ALIAS=Sp;Object.keys(Tp).forEach(t=>{Tp[t].forEach(e=>{Object.hasOwnProperty.call(Sp,e)||(Sp[e]=[]),Sp[e].push(t)})})});var lL=g(()=>{"use strict";c();var Ep=Wi(),iQ=I0(),O0=(0,Ep.defineAliasedType)("Miscellaneous");O0("Noop",{visitor:[]});O0("Placeholder",{visitor:[],builder:["expectedNode","name"],fields:{name:{validate:(0,Ep.assertNodeType)("Identifier")},expectedNode:{validate:(0,Ep.assertOneOf)(...iQ.PLACEHOLDERS)}}});O0("V8IntrinsicIdentifier",{builder:["name"],fields:{name:{validate:(0,Ep.assertValueType)("string")}}})});var uL=g(()=>{"use strict";c();var Be=Wi();(0,Be.default)("ArgumentPlaceholder",{});(0,Be.default)("BindExpression",{visitor:["object","callee"],aliases:["Expression"],fields:process.env.BABEL_TYPES_8_BREAKING?{object:{validate:(0,Be.assertNodeType)("Expression")},callee:{validate:(0,Be.assertNodeType)("Expression")}}:{object:{validate:Object.assign(()=>{},{oneOfNodeTypes:["Expression"]})},callee:{validate:Object.assign(()=>{},{oneOfNodeTypes:["Expression"]})}}});(0,Be.default)("ImportAttribute",{visitor:["key","value"],fields:{key:{validate:(0,Be.assertNodeType)("Identifier","StringLiteral")},value:{validate:(0,Be.assertNodeType)("StringLiteral")}}});(0,Be.default)("Decorator",{visitor:["expression"],fields:{expression:{validate:(0,Be.assertNodeType)("Expression")}}});(0,Be.default)("DoExpression",{visitor:["body"],builder:["body","async"],aliases:["Expression"],fields:{body:{validate:(0,Be.assertNodeType)("BlockStatement")},async:{validate:(0,Be.assertValueType)("boolean"),default:!1}}});(0,Be.default)("ExportDefaultSpecifier",{visitor:["exported"],aliases:["ModuleSpecifier"],fields:{exported:{validate:(0,Be.assertNodeType)("Identifier")}}});(0,Be.default)("RecordExpression",{visitor:["properties"],aliases:["Expression"],fields:{properties:{validate:(0,Be.chain)((0,Be.assertValueType)("array"),(0,Be.assertEach)((0,Be.assertNodeType)("ObjectProperty","SpreadElement")))}}});(0,Be.default)("TupleExpression",{fields:{elements:{validate:(0,Be.chain)((0,Be.assertValueType)("array"),(0,Be.assertEach)((0,Be.assertNodeType)("Expression","SpreadElement"))),default:[]}},visitor:["elements"],aliases:["Expression"]});(0,Be.default)("DecimalLiteral",{builder:["value"],fields:{value:{validate:(0,Be.assertValueType)("string")}},aliases:["Expression","Pureish","Literal","Immutable"]});(0,Be.default)("ModuleExpression",{visitor:["body"],fields:{body:{validate:(0,Be.assertNodeType)("Program")}},aliases:["Expression"]});(0,Be.default)("TopicReference",{aliases:["Expression"]});(0,Be.default)("PipelineTopicExpression",{builder:["expression"],visitor:["expression"],fields:{expression:{validate:(0,Be.assertNodeType)("Expression")}},aliases:["Expression"]});(0,Be.default)("PipelineBareFunction",{builder:["callee"],visitor:["callee"],fields:{callee:{validate:(0,Be.assertNodeType)("Expression")}},aliases:["Expression"]});(0,Be.default)("PipelinePrimaryTopicReference",{aliases:["Expression"]})});var gL=g(()=>{"use strict";c();var W=Wi(),cL=_0(),sQ=Ja(),Te=(0,W.defineAliasedType)("TypeScript"),hr=(0,W.assertValueType)("boolean"),fL=()=>({returnType:{validate:(0,W.assertNodeType)("TSTypeAnnotation","Noop"),optional:!0},typeParameters:{validate:(0,W.assertNodeType)("TSTypeParameterDeclaration","Noop"),optional:!0}});Te("TSParameterProperty",{aliases:["LVal"],visitor:["parameter"],fields:{accessibility:{validate:(0,W.assertOneOf)("public","private","protected"),optional:!0},readonly:{validate:(0,W.assertValueType)("boolean"),optional:!0},parameter:{validate:(0,W.assertNodeType)("Identifier","AssignmentPattern")},override:{validate:(0,W.assertValueType)("boolean"),optional:!0},decorators:{validate:(0,W.chain)((0,W.assertValueType)("array"),(0,W.assertEach)((0,W.assertNodeType)("Decorator"))),optional:!0}}});Te("TSDeclareFunction",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","params","returnType"],fields:Object.assign({},(0,cL.functionDeclarationCommon)(),fL())});Te("TSDeclareMethod",{visitor:["decorators","key","typeParameters","params","returnType"],fields:Object.assign({},(0,cL.classMethodOrDeclareMethodCommon)(),fL())});Te("TSQualifiedName",{aliases:["TSEntityName"],visitor:["left","right"],fields:{left:(0,W.validateType)("TSEntityName"),right:(0,W.validateType)("Identifier")}});var bp=()=>({typeParameters:(0,W.validateOptionalType)("TSTypeParameterDeclaration"),parameters:(0,W.validateArrayOfType)(["Identifier","RestElement"]),typeAnnotation:(0,W.validateOptionalType)("TSTypeAnnotation")}),pL={aliases:["TSTypeElement"],visitor:["typeParameters","parameters","typeAnnotation"],fields:bp()};Te("TSCallSignatureDeclaration",pL);Te("TSConstructSignatureDeclaration",pL);var hL=()=>({key:(0,W.validateType)("Expression"),computed:{default:!1},optional:(0,W.validateOptional)(hr)});Te("TSPropertySignature",{aliases:["TSTypeElement"],visitor:["key","typeAnnotation","initializer"],fields:Object.assign({},hL(),{readonly:(0,W.validateOptional)(hr),typeAnnotation:(0,W.validateOptionalType)("TSTypeAnnotation"),initializer:(0,W.validateOptionalType)("Expression"),kind:{validate:(0,W.assertOneOf)("get","set")}})});Te("TSMethodSignature",{aliases:["TSTypeElement"],visitor:["key","typeParameters","parameters","typeAnnotation"],fields:Object.assign({},bp(),hL(),{kind:{validate:(0,W.assertOneOf)("method","get","set")}})});Te("TSIndexSignature",{aliases:["TSTypeElement"],visitor:["parameters","typeAnnotation"],fields:{readonly:(0,W.validateOptional)(hr),static:(0,W.validateOptional)(hr),parameters:(0,W.validateArrayOfType)("Identifier"),typeAnnotation:(0,W.validateOptionalType)("TSTypeAnnotation")}});var nQ=["TSAnyKeyword","TSBooleanKeyword","TSBigIntKeyword","TSIntrinsicKeyword","TSNeverKeyword","TSNullKeyword","TSNumberKeyword","TSObjectKeyword","TSStringKeyword","TSSymbolKeyword","TSUndefinedKeyword","TSUnknownKeyword","TSVoidKeyword"];for(let t of nQ)Te(t,{aliases:["TSType","TSBaseType"],visitor:[],fields:{}});Te("TSThisType",{aliases:["TSType","TSBaseType"],visitor:[],fields:{}});var dL={aliases:["TSType"],visitor:["typeParameters","parameters","typeAnnotation"]};Te("TSFunctionType",Object.assign({},dL,{fields:bp()}));Te("TSConstructorType",Object.assign({},dL,{fields:Object.assign({},bp(),{abstract:(0,W.validateOptional)(hr)})}));Te("TSTypeReference",{aliases:["TSType"],visitor:["typeName","typeParameters"],fields:{typeName:(0,W.validateType)("TSEntityName"),typeParameters:(0,W.validateOptionalType)("TSTypeParameterInstantiation")}});Te("TSTypePredicate",{aliases:["TSType"],visitor:["parameterName","typeAnnotation"],builder:["parameterName","typeAnnotation","asserts"],fields:{parameterName:(0,W.validateType)(["Identifier","TSThisType"]),typeAnnotation:(0,W.validateOptionalType)("TSTypeAnnotation"),asserts:(0,W.validateOptional)(hr)}});Te("TSTypeQuery",{aliases:["TSType"],visitor:["exprName","typeParameters"],fields:{exprName:(0,W.validateType)(["TSEntityName","TSImportType"]),typeParameters:(0,W.validateOptionalType)("TSTypeParameterInstantiation")}});Te("TSTypeLiteral",{aliases:["TSType"],visitor:["members"],fields:{members:(0,W.validateArrayOfType)("TSTypeElement")}});Te("TSArrayType",{aliases:["TSType"],visitor:["elementType"],fields:{elementType:(0,W.validateType)("TSType")}});Te("TSTupleType",{aliases:["TSType"],visitor:["elementTypes"],fields:{elementTypes:(0,W.validateArrayOfType)(["TSType","TSNamedTupleMember"])}});Te("TSOptionalType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:(0,W.validateType)("TSType")}});Te("TSRestType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:(0,W.validateType)("TSType")}});Te("TSNamedTupleMember",{visitor:["label","elementType"],builder:["label","elementType","optional"],fields:{label:(0,W.validateType)("Identifier"),optional:{validate:hr,default:!1},elementType:(0,W.validateType)("TSType")}});var mL={aliases:["TSType"],visitor:["types"],fields:{types:(0,W.validateArrayOfType)("TSType")}};Te("TSUnionType",mL);Te("TSIntersectionType",mL);Te("TSConditionalType",{aliases:["TSType"],visitor:["checkType","extendsType","trueType","falseType"],fields:{checkType:(0,W.validateType)("TSType"),extendsType:(0,W.validateType)("TSType"),trueType:(0,W.validateType)("TSType"),falseType:(0,W.validateType)("TSType")}});Te("TSInferType",{aliases:["TSType"],visitor:["typeParameter"],fields:{typeParameter:(0,W.validateType)("TSTypeParameter")}});Te("TSParenthesizedType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:(0,W.validateType)("TSType")}});Te("TSTypeOperator",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{operator:(0,W.validate)((0,W.assertValueType)("string")),typeAnnotation:(0,W.validateType)("TSType")}});Te("TSIndexedAccessType",{aliases:["TSType"],visitor:["objectType","indexType"],fields:{objectType:(0,W.validateType)("TSType"),indexType:(0,W.validateType)("TSType")}});Te("TSMappedType",{aliases:["TSType"],visitor:["typeParameter","typeAnnotation","nameType"],fields:{readonly:(0,W.validateOptional)((0,W.assertOneOf)(!0,!1,"+","-")),typeParameter:(0,W.validateType)("TSTypeParameter"),optional:(0,W.validateOptional)((0,W.assertOneOf)(!0,!1,"+","-")),typeAnnotation:(0,W.validateOptionalType)("TSType"),nameType:(0,W.validateOptionalType)("TSType")}});Te("TSLiteralType",{aliases:["TSType","TSBaseType"],visitor:["literal"],fields:{literal:{validate:function(){let t=(0,W.assertNodeType)("NumericLiteral","BigIntLiteral"),e=(0,W.assertOneOf)("-"),r=(0,W.assertNodeType)("NumericLiteral","StringLiteral","BooleanLiteral","BigIntLiteral","TemplateLiteral");function i(s,n,a){(0,sQ.default)("UnaryExpression",a)?(e(a,"operator",a.operator),t(a,"argument",a.argument)):r(s,n,a)}return i.oneOfNodeTypes=["NumericLiteral","StringLiteral","BooleanLiteral","BigIntLiteral","TemplateLiteral","UnaryExpression"],i}()}}});Te("TSExpressionWithTypeArguments",{aliases:["TSType"],visitor:["expression","typeParameters"],fields:{expression:(0,W.validateType)("TSEntityName"),typeParameters:(0,W.validateOptionalType)("TSTypeParameterInstantiation")}});Te("TSInterfaceDeclaration",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","extends","body"],fields:{declare:(0,W.validateOptional)(hr),id:(0,W.validateType)("Identifier"),typeParameters:(0,W.validateOptionalType)("TSTypeParameterDeclaration"),extends:(0,W.validateOptional)((0,W.arrayOfType)("TSExpressionWithTypeArguments")),body:(0,W.validateType)("TSInterfaceBody")}});Te("TSInterfaceBody",{visitor:["body"],fields:{body:(0,W.validateArrayOfType)("TSTypeElement")}});Te("TSTypeAliasDeclaration",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","typeAnnotation"],fields:{declare:(0,W.validateOptional)(hr),id:(0,W.validateType)("Identifier"),typeParameters:(0,W.validateOptionalType)("TSTypeParameterDeclaration"),typeAnnotation:(0,W.validateType)("TSType")}});Te("TSInstantiationExpression",{aliases:["Expression"],visitor:["expression","typeParameters"],fields:{expression:(0,W.validateType)("Expression"),typeParameters:(0,W.validateOptionalType)("TSTypeParameterInstantiation")}});var yL={aliases:["Expression","LVal","PatternLike"],visitor:["expression","typeAnnotation"],fields:{expression:(0,W.validateType)("Expression"),typeAnnotation:(0,W.validateType)("TSType")}};Te("TSAsExpression",yL);Te("TSSatisfiesExpression",yL);Te("TSTypeAssertion",{aliases:["Expression","LVal","PatternLike"],visitor:["typeAnnotation","expression"],fields:{typeAnnotation:(0,W.validateType)("TSType"),expression:(0,W.validateType)("Expression")}});Te("TSEnumDeclaration",{aliases:["Statement","Declaration"],visitor:["id","members"],fields:{declare:(0,W.validateOptional)(hr),const:(0,W.validateOptional)(hr),id:(0,W.validateType)("Identifier"),members:(0,W.validateArrayOfType)("TSEnumMember"),initializer:(0,W.validateOptionalType)("Expression")}});Te("TSEnumMember",{visitor:["id","initializer"],fields:{id:(0,W.validateType)(["Identifier","StringLiteral"]),initializer:(0,W.validateOptionalType)("Expression")}});Te("TSModuleDeclaration",{aliases:["Statement","Declaration"],visitor:["id","body"],fields:{declare:(0,W.validateOptional)(hr),global:(0,W.validateOptional)(hr),id:(0,W.validateType)(["Identifier","StringLiteral"]),body:(0,W.validateType)(["TSModuleBlock","TSModuleDeclaration"])}});Te("TSModuleBlock",{aliases:["Scopable","Block","BlockParent","FunctionParent"],visitor:["body"],fields:{body:(0,W.validateArrayOfType)("Statement")}});Te("TSImportType",{aliases:["TSType"],visitor:["argument","qualifier","typeParameters"],fields:{argument:(0,W.validateType)("StringLiteral"),qualifier:(0,W.validateOptionalType)("TSEntityName"),typeParameters:(0,W.validateOptionalType)("TSTypeParameterInstantiation")}});Te("TSImportEqualsDeclaration",{aliases:["Statement"],visitor:["id","moduleReference"],fields:{isExport:(0,W.validate)(hr),id:(0,W.validateType)("Identifier"),moduleReference:(0,W.validateType)(["TSEntityName","TSExternalModuleReference"]),importKind:{validate:(0,W.assertOneOf)("type","value"),optional:!0}}});Te("TSExternalModuleReference",{visitor:["expression"],fields:{expression:(0,W.validateType)("StringLiteral")}});Te("TSNonNullExpression",{aliases:["Expression","LVal","PatternLike"],visitor:["expression"],fields:{expression:(0,W.validateType)("Expression")}});Te("TSExportAssignment",{aliases:["Statement"],visitor:["expression"],fields:{expression:(0,W.validateType)("Expression")}});Te("TSNamespaceExportDeclaration",{aliases:["Statement"],visitor:["id"],fields:{id:(0,W.validateType)("Identifier")}});Te("TSTypeAnnotation",{visitor:["typeAnnotation"],fields:{typeAnnotation:{validate:(0,W.assertNodeType)("TSType")}}});Te("TSTypeParameterInstantiation",{visitor:["params"],fields:{params:{validate:(0,W.chain)((0,W.assertValueType)("array"),(0,W.assertEach)((0,W.assertNodeType)("TSType")))}}});Te("TSTypeParameterDeclaration",{visitor:["params"],fields:{params:{validate:(0,W.chain)((0,W.assertValueType)("array"),(0,W.assertEach)((0,W.assertNodeType)("TSTypeParameter")))}}});Te("TSTypeParameter",{builder:["constraint","default","name"],visitor:["constraint","default"],fields:{name:{validate:(0,W.assertValueType)("string")},in:{validate:(0,W.assertValueType)("boolean"),optional:!0},out:{validate:(0,W.assertValueType)("boolean"),optional:!0},const:{validate:(0,W.assertValueType)("boolean"),optional:!0},constraint:{validate:(0,W.assertNodeType)("TSType"),optional:!0},default:{validate:(0,W.assertNodeType)("TSType"),optional:!0}}})});var SL=g(xp=>{"use strict";c();Object.defineProperty(xp,"__esModule",{value:!0});xp.DEPRECATED_ALIASES=void 0;var aQ={ModuleDeclaration:"ImportOrExportDeclaration"};xp.DEPRECATED_ALIASES=aQ});var Ur=g(zt=>{"use strict";c();Object.defineProperty(zt,"__esModule",{value:!0});Object.defineProperty(zt,"ALIAS_KEYS",{enumerable:!0,get:function(){return wt.ALIAS_KEYS}});Object.defineProperty(zt,"BUILDER_KEYS",{enumerable:!0,get:function(){return wt.BUILDER_KEYS}});Object.defineProperty(zt,"DEPRECATED_ALIASES",{enumerable:!0,get:function(){return N0.DEPRECATED_ALIASES}});Object.defineProperty(zt,"DEPRECATED_KEYS",{enumerable:!0,get:function(){return wt.DEPRECATED_KEYS}});Object.defineProperty(zt,"FLIPPED_ALIAS_KEYS",{enumerable:!0,get:function(){return wt.FLIPPED_ALIAS_KEYS}});Object.defineProperty(zt,"NODE_FIELDS",{enumerable:!0,get:function(){return wt.NODE_FIELDS}});Object.defineProperty(zt,"NODE_PARENT_VALIDATIONS",{enumerable:!0,get:function(){return wt.NODE_PARENT_VALIDATIONS}});Object.defineProperty(zt,"PLACEHOLDERS",{enumerable:!0,get:function(){return Ul.PLACEHOLDERS}});Object.defineProperty(zt,"PLACEHOLDERS_ALIAS",{enumerable:!0,get:function(){return Ul.PLACEHOLDERS_ALIAS}});Object.defineProperty(zt,"PLACEHOLDERS_FLIPPED_ALIAS",{enumerable:!0,get:function(){return Ul.PLACEHOLDERS_FLIPPED_ALIAS}});zt.TYPES=void 0;Object.defineProperty(zt,"VISITOR_KEYS",{enumerable:!0,get:function(){return wt.VISITOR_KEYS}});var Us=xD();_0();nL();aL();lL();uL();gL();var wt=Wi(),Ul=I0(),N0=SL();Object.keys(N0.DEPRECATED_ALIASES).forEach(t=>{wt.FLIPPED_ALIAS_KEYS[t]=wt.FLIPPED_ALIAS_KEYS[N0.DEPRECATED_ALIASES[t]]});Us(wt.VISITOR_KEYS);Us(wt.ALIAS_KEYS);Us(wt.FLIPPED_ALIAS_KEYS);Us(wt.NODE_FIELDS);Us(wt.BUILDER_KEYS);Us(wt.DEPRECATED_KEYS);Us(Ul.PLACEHOLDERS_ALIAS);Us(Ul.PLACEHOLDERS_FLIPPED_ALIAS);var oQ=[].concat(Object.keys(wt.VISITOR_KEYS),Object.keys(wt.FLIPPED_ALIAS_KEYS),Object.keys(wt.DEPRECATED_KEYS));zt.TYPES=oQ});var yp=g($l=>{"use strict";c();Object.defineProperty($l,"__esModule",{value:!0});$l.default=lQ;$l.validateChild=bL;$l.validateField=EL;var TL=Ur();function lQ(t,e,r){if(!t)return;let i=TL.NODE_FIELDS[t.type];if(!i)return;let s=i[e];EL(t,e,r,s),bL(t,e,r)}function EL(t,e,r,i){i!=null&&i.validate&&(i.optional&&r==null||i.validate(t,e,r))}function bL(t,e,r){if(r==null)return;let i=TL.NODE_PARENT_VALIDATIONS[r.type];i&&i(t,e,r)}});var xL=g(D0=>{"use strict";c();Object.defineProperty(D0,"__esModule",{value:!0});D0.default=fQ;var uQ=yp(),cQ=ve();function fQ(t){let e=cQ.BUILDER_KEYS[t.type];for(let r of e)(0,uQ.default)(t,r,t[r]);return t}});var dr=g(E=>{"use strict";c();Object.defineProperty(E,"__esModule",{value:!0});E.anyTypeAnnotation=UZ;E.argumentPlaceholder=yte;E.arrayExpression=pQ;E.arrayPattern=oZ;E.arrayTypeAnnotation=$Z;E.arrowFunctionExpression=lZ;E.assignmentExpression=hQ;E.assignmentPattern=aZ;E.awaitExpression=IZ;E.bigIntLiteral=NZ;E.binaryExpression=dQ;E.bindExpression=gte;E.blockStatement=SQ;E.booleanLiteral=BQ;E.booleanLiteralTypeAnnotation=KZ;E.booleanTypeAnnotation=VZ;E.breakStatement=TQ;E.callExpression=EQ;E.catchClause=bQ;E.classAccessorProperty=MZ;E.classBody=uZ;E.classDeclaration=fZ;E.classExpression=cZ;E.classImplements=WZ;E.classMethod=xZ;E.classPrivateMethod=BZ;E.classPrivateProperty=FZ;E.classProperty=RZ;E.conditionalExpression=xQ;E.continueStatement=PQ;E.debuggerStatement=vQ;E.decimalLiteral=vte;E.declareClass=GZ;E.declareExportAllDeclaration=ree;E.declareExportDeclaration=tee;E.declareFunction=YZ;E.declareInterface=XZ;E.declareModule=zZ;E.declareModuleExports=JZ;E.declareOpaqueType=ZZ;E.declareTypeAlias=QZ;E.declareVariable=eee;E.declaredPredicate=iee;E.decorator=Tte;E.directive=yQ;E.directiveLiteral=gQ;E.doExpression=Ete;E.doWhileStatement=AQ;E.emptyStatement=wQ;E.emptyTypeAnnotation=dee;E.enumBooleanBody=$ee;E.enumBooleanMember=Wee;E.enumDeclaration=Uee;E.enumDefaultedMember=Xee;E.enumNumberBody=Vee;E.enumNumberMember=Gee;E.enumStringBody=Kee;E.enumStringMember=Yee;E.enumSymbolBody=Hee;E.existsTypeAnnotation=see;E.exportAllDeclaration=pZ;E.exportDefaultDeclaration=hZ;E.exportDefaultSpecifier=bte;E.exportNamedDeclaration=dZ;E.exportNamespaceSpecifier=DZ;E.exportSpecifier=mZ;E.expressionStatement=_Q;E.file=CQ;E.forInStatement=IQ;E.forOfStatement=yZ;E.forStatement=OQ;E.functionDeclaration=NQ;E.functionExpression=DQ;E.functionTypeAnnotation=nee;E.functionTypeParam=aee;E.genericTypeAnnotation=oee;E.identifier=LQ;E.ifStatement=kQ;E.import=OZ;E.importAttribute=Ste;E.importDeclaration=gZ;E.importDefaultSpecifier=SZ;E.importNamespaceSpecifier=TZ;E.importSpecifier=EZ;E.indexedAccessType=zee;E.inferredPredicate=lee;E.interfaceDeclaration=cee;E.interfaceExtends=uee;E.interfaceTypeAnnotation=fee;E.interpreterDirective=mQ;E.intersectionTypeAnnotation=pee;E.jSXAttribute=E.jsxAttribute=Qee;E.jSXClosingElement=E.jsxClosingElement=Zee;E.jSXClosingFragment=E.jsxClosingFragment=pte;E.jSXElement=E.jsxElement=ete;E.jSXEmptyExpression=E.jsxEmptyExpression=tte;E.jSXExpressionContainer=E.jsxExpressionContainer=rte;E.jSXFragment=E.jsxFragment=cte;E.jSXIdentifier=E.jsxIdentifier=ste;E.jSXMemberExpression=E.jsxMemberExpression=nte;E.jSXNamespacedName=E.jsxNamespacedName=ate;E.jSXOpeningElement=E.jsxOpeningElement=ote;E.jSXOpeningFragment=E.jsxOpeningFragment=fte;E.jSXSpreadAttribute=E.jsxSpreadAttribute=lte;E.jSXSpreadChild=E.jsxSpreadChild=ite;E.jSXText=E.jsxText=ute;E.labeledStatement=RQ;E.logicalExpression=jQ;E.memberExpression=qQ;E.metaProperty=bZ;E.mixedTypeAnnotation=hee;E.moduleExpression=Ate;E.newExpression=UQ;E.noop=hte;E.nullLiteral=FQ;E.nullLiteralTypeAnnotation=HZ;E.nullableTypeAnnotation=mee;E.numberLiteral=Ure;E.numberLiteralTypeAnnotation=yee;E.numberTypeAnnotation=gee;E.numericLiteral=PL;E.objectExpression=VQ;E.objectMethod=KQ;E.objectPattern=PZ;E.objectProperty=HQ;E.objectTypeAnnotation=See;E.objectTypeCallProperty=Eee;E.objectTypeIndexer=bee;E.objectTypeInternalSlot=Tee;E.objectTypeProperty=xee;E.objectTypeSpreadProperty=Pee;E.opaqueType=vee;E.optionalCallExpression=kZ;E.optionalIndexedAccessType=Jee;E.optionalMemberExpression=LZ;E.parenthesizedExpression=YQ;E.pipelineBareFunction=Cte;E.pipelinePrimaryTopicReference=Ite;E.pipelineTopicExpression=_te;E.placeholder=dte;E.privateName=jZ;E.program=$Q;E.qualifiedTypeIdentifier=Aee;E.recordExpression=xte;E.regExpLiteral=vL;E.regexLiteral=$re;E.restElement=AL;E.restProperty=Vre;E.returnStatement=WQ;E.sequenceExpression=GQ;E.spreadElement=wL;E.spreadProperty=Kre;E.staticBlock=qZ;E.stringLiteral=MQ;E.stringLiteralTypeAnnotation=wee;E.stringTypeAnnotation=_ee;E.super=vZ;E.switchCase=XQ;E.switchStatement=zQ;E.symbolTypeAnnotation=Cee;E.taggedTemplateExpression=AZ;E.templateElement=wZ;E.templateLiteral=_Z;E.thisExpression=JQ;E.thisTypeAnnotation=Iee;E.throwStatement=QQ;E.topicReference=wte;E.tryStatement=ZQ;E.tSAnyKeyword=E.tsAnyKeyword=jte;E.tSArrayType=E.tsArrayType=nre;E.tSAsExpression=E.tsAsExpression=vre;E.tSBigIntKeyword=E.tsBigIntKeyword=Ute;E.tSBooleanKeyword=E.tsBooleanKeyword=qte;E.tSCallSignatureDeclaration=E.tsCallSignatureDeclaration=kte;E.tSConditionalType=E.tsConditionalType=pre;E.tSConstructSignatureDeclaration=E.tsConstructSignatureDeclaration=Rte;E.tSConstructorType=E.tsConstructorType=ere;E.tSDeclareFunction=E.tsDeclareFunction=Nte;E.tSDeclareMethod=E.tsDeclareMethod=Dte;E.tSEnumDeclaration=E.tsEnumDeclaration=_re;E.tSEnumMember=E.tsEnumMember=Cre;E.tSExportAssignment=E.tsExportAssignment=Rre;E.tSExpressionWithTypeArguments=E.tsExpressionWithTypeArguments=Tre;E.tSExternalModuleReference=E.tsExternalModuleReference=Lre;E.tSFunctionType=E.tsFunctionType=Zte;E.tSImportEqualsDeclaration=E.tsImportEqualsDeclaration=Dre;E.tSImportType=E.tsImportType=Nre;E.tSIndexSignature=E.tsIndexSignature=Bte;E.tSIndexedAccessType=E.tsIndexedAccessType=yre;E.tSInferType=E.tsInferType=hre;E.tSInstantiationExpression=E.tsInstantiationExpression=Pre;E.tSInterfaceBody=E.tsInterfaceBody=bre;E.tSInterfaceDeclaration=E.tsInterfaceDeclaration=Ere;E.tSIntersectionType=E.tsIntersectionType=fre;E.tSIntrinsicKeyword=E.tsIntrinsicKeyword=$te;E.tSLiteralType=E.tsLiteralType=Sre;E.tSMappedType=E.tsMappedType=gre;E.tSMethodSignature=E.tsMethodSignature=Fte;E.tSModuleBlock=E.tsModuleBlock=Ore;E.tSModuleDeclaration=E.tsModuleDeclaration=Ire;E.tSNamedTupleMember=E.tsNamedTupleMember=ure;E.tSNamespaceExportDeclaration=E.tsNamespaceExportDeclaration=Mre;E.tSNeverKeyword=E.tsNeverKeyword=Vte;E.tSNonNullExpression=E.tsNonNullExpression=kre;E.tSNullKeyword=E.tsNullKeyword=Kte;E.tSNumberKeyword=E.tsNumberKeyword=Hte;E.tSObjectKeyword=E.tsObjectKeyword=Wte;E.tSOptionalType=E.tsOptionalType=ore;E.tSParameterProperty=E.tsParameterProperty=Ote;E.tSParenthesizedType=E.tsParenthesizedType=dre;E.tSPropertySignature=E.tsPropertySignature=Mte;E.tSQualifiedName=E.tsQualifiedName=Lte;E.tSRestType=E.tsRestType=lre;E.tSSatisfiesExpression=E.tsSatisfiesExpression=Are;E.tSStringKeyword=E.tsStringKeyword=Gte;E.tSSymbolKeyword=E.tsSymbolKeyword=Yte;E.tSThisType=E.tsThisType=Qte;E.tSTupleType=E.tsTupleType=are;E.tSTypeAliasDeclaration=E.tsTypeAliasDeclaration=xre;E.tSTypeAnnotation=E.tsTypeAnnotation=Fre;E.tSTypeAssertion=E.tsTypeAssertion=wre;E.tSTypeLiteral=E.tsTypeLiteral=sre;E.tSTypeOperator=E.tsTypeOperator=mre;E.tSTypeParameter=E.tsTypeParameter=qre;E.tSTypeParameterDeclaration=E.tsTypeParameterDeclaration=jre;E.tSTypeParameterInstantiation=E.tsTypeParameterInstantiation=Bre;E.tSTypePredicate=E.tsTypePredicate=rre;E.tSTypeQuery=E.tsTypeQuery=ire;E.tSTypeReference=E.tsTypeReference=tre;E.tSUndefinedKeyword=E.tsUndefinedKeyword=Xte;E.tSUnionType=E.tsUnionType=cre;E.tSUnknownKeyword=E.tsUnknownKeyword=zte;E.tSVoidKeyword=E.tsVoidKeyword=Jte;E.tupleExpression=Pte;E.tupleTypeAnnotation=Oee;E.typeAlias=Dee;E.typeAnnotation=Lee;E.typeCastExpression=kee;E.typeParameter=Ree;E.typeParameterDeclaration=Mee;E.typeParameterInstantiation=Fee;E.typeofTypeAnnotation=Nee;E.unaryExpression=eZ;E.unionTypeAnnotation=Bee;E.updateExpression=tZ;E.v8IntrinsicIdentifier=mte;E.variableDeclaration=rZ;E.variableDeclarator=iZ;E.variance=jee;E.voidTypeAnnotation=qee;E.whileStatement=sZ;E.withStatement=nZ;E.yieldExpression=CZ;var N=xL(),Pp=Nl();function pQ(t=[]){return(0,N.default)({type:"ArrayExpression",elements:t})}function hQ(t,e,r){return(0,N.default)({type:"AssignmentExpression",operator:t,left:e,right:r})}function dQ(t,e,r){return(0,N.default)({type:"BinaryExpression",operator:t,left:e,right:r})}function mQ(t){return(0,N.default)({type:"InterpreterDirective",value:t})}function yQ(t){return(0,N.default)({type:"Directive",value:t})}function gQ(t){return(0,N.default)({type:"DirectiveLiteral",value:t})}function SQ(t,e=[]){return(0,N.default)({type:"BlockStatement",body:t,directives:e})}function TQ(t=null){return(0,N.default)({type:"BreakStatement",label:t})}function EQ(t,e){return(0,N.default)({type:"CallExpression",callee:t,arguments:e})}function bQ(t=null,e){return(0,N.default)({type:"CatchClause",param:t,body:e})}function xQ(t,e,r){return(0,N.default)({type:"ConditionalExpression",test:t,consequent:e,alternate:r})}function PQ(t=null){return(0,N.default)({type:"ContinueStatement",label:t})}function vQ(){return{type:"DebuggerStatement"}}function AQ(t,e){return(0,N.default)({type:"DoWhileStatement",test:t,body:e})}function wQ(){return{type:"EmptyStatement"}}function _Q(t){return(0,N.default)({type:"ExpressionStatement",expression:t})}function CQ(t,e=null,r=null){return(0,N.default)({type:"File",program:t,comments:e,tokens:r})}function IQ(t,e,r){return(0,N.default)({type:"ForInStatement",left:t,right:e,body:r})}function OQ(t=null,e=null,r=null,i){return(0,N.default)({type:"ForStatement",init:t,test:e,update:r,body:i})}function NQ(t=null,e,r,i=!1,s=!1){return(0,N.default)({type:"FunctionDeclaration",id:t,params:e,body:r,generator:i,async:s})}function DQ(t=null,e,r,i=!1,s=!1){return(0,N.default)({type:"FunctionExpression",id:t,params:e,body:r,generator:i,async:s})}function LQ(t){return(0,N.default)({type:"Identifier",name:t})}function kQ(t,e,r=null){return(0,N.default)({type:"IfStatement",test:t,consequent:e,alternate:r})}function RQ(t,e){return(0,N.default)({type:"LabeledStatement",label:t,body:e})}function MQ(t){return(0,N.default)({type:"StringLiteral",value:t})}function PL(t){return(0,N.default)({type:"NumericLiteral",value:t})}function FQ(){return{type:"NullLiteral"}}function BQ(t){return(0,N.default)({type:"BooleanLiteral",value:t})}function vL(t,e=""){return(0,N.default)({type:"RegExpLiteral",pattern:t,flags:e})}function jQ(t,e,r){return(0,N.default)({type:"LogicalExpression",operator:t,left:e,right:r})}function qQ(t,e,r=!1,i=null){return(0,N.default)({type:"MemberExpression",object:t,property:e,computed:r,optional:i})}function UQ(t,e){return(0,N.default)({type:"NewExpression",callee:t,arguments:e})}function $Q(t,e=[],r="script",i=null){return(0,N.default)({type:"Program",body:t,directives:e,sourceType:r,interpreter:i,sourceFile:null})}function VQ(t){return(0,N.default)({type:"ObjectExpression",properties:t})}function KQ(t="method",e,r,i,s=!1,n=!1,a=!1){return(0,N.default)({type:"ObjectMethod",kind:t,key:e,params:r,body:i,computed:s,generator:n,async:a})}function HQ(t,e,r=!1,i=!1,s=null){return(0,N.default)({type:"ObjectProperty",key:t,value:e,computed:r,shorthand:i,decorators:s})}function AL(t){return(0,N.default)({type:"RestElement",argument:t})}function WQ(t=null){return(0,N.default)({type:"ReturnStatement",argument:t})}function GQ(t){return(0,N.default)({type:"SequenceExpression",expressions:t})}function YQ(t){return(0,N.default)({type:"ParenthesizedExpression",expression:t})}function XQ(t=null,e){return(0,N.default)({type:"SwitchCase",test:t,consequent:e})}function zQ(t,e){return(0,N.default)({type:"SwitchStatement",discriminant:t,cases:e})}function JQ(){return{type:"ThisExpression"}}function QQ(t){return(0,N.default)({type:"ThrowStatement",argument:t})}function ZQ(t,e=null,r=null){return(0,N.default)({type:"TryStatement",block:t,handler:e,finalizer:r})}function eZ(t,e,r=!0){return(0,N.default)({type:"UnaryExpression",operator:t,argument:e,prefix:r})}function tZ(t,e,r=!1){return(0,N.default)({type:"UpdateExpression",operator:t,argument:e,prefix:r})}function rZ(t,e){return(0,N.default)({type:"VariableDeclaration",kind:t,declarations:e})}function iZ(t,e=null){return(0,N.default)({type:"VariableDeclarator",id:t,init:e})}function sZ(t,e){return(0,N.default)({type:"WhileStatement",test:t,body:e})}function nZ(t,e){return(0,N.default)({type:"WithStatement",object:t,body:e})}function aZ(t,e){return(0,N.default)({type:"AssignmentPattern",left:t,right:e})}function oZ(t){return(0,N.default)({type:"ArrayPattern",elements:t})}function lZ(t,e,r=!1){return(0,N.default)({type:"ArrowFunctionExpression",params:t,body:e,async:r,expression:null})}function uZ(t){return(0,N.default)({type:"ClassBody",body:t})}function cZ(t=null,e=null,r,i=null){return(0,N.default)({type:"ClassExpression",id:t,superClass:e,body:r,decorators:i})}function fZ(t,e=null,r,i=null){return(0,N.default)({type:"ClassDeclaration",id:t,superClass:e,body:r,decorators:i})}function pZ(t){return(0,N.default)({type:"ExportAllDeclaration",source:t})}function hZ(t){return(0,N.default)({type:"ExportDefaultDeclaration",declaration:t})}function dZ(t=null,e=[],r=null){return(0,N.default)({type:"ExportNamedDeclaration",declaration:t,specifiers:e,source:r})}function mZ(t,e){return(0,N.default)({type:"ExportSpecifier",local:t,exported:e})}function yZ(t,e,r,i=!1){return(0,N.default)({type:"ForOfStatement",left:t,right:e,body:r,await:i})}function gZ(t,e){return(0,N.default)({type:"ImportDeclaration",specifiers:t,source:e})}function SZ(t){return(0,N.default)({type:"ImportDefaultSpecifier",local:t})}function TZ(t){return(0,N.default)({type:"ImportNamespaceSpecifier",local:t})}function EZ(t,e){return(0,N.default)({type:"ImportSpecifier",local:t,imported:e})}function bZ(t,e){return(0,N.default)({type:"MetaProperty",meta:t,property:e})}function xZ(t="method",e,r,i,s=!1,n=!1,a=!1,o=!1){return(0,N.default)({type:"ClassMethod",kind:t,key:e,params:r,body:i,computed:s,static:n,generator:a,async:o})}function PZ(t){return(0,N.default)({type:"ObjectPattern",properties:t})}function wL(t){return(0,N.default)({type:"SpreadElement",argument:t})}function vZ(){return{type:"Super"}}function AZ(t,e){return(0,N.default)({type:"TaggedTemplateExpression",tag:t,quasi:e})}function wZ(t,e=!1){return(0,N.default)({type:"TemplateElement",value:t,tail:e})}function _Z(t,e){return(0,N.default)({type:"TemplateLiteral",quasis:t,expressions:e})}function CZ(t=null,e=!1){return(0,N.default)({type:"YieldExpression",argument:t,delegate:e})}function IZ(t){return(0,N.default)({type:"AwaitExpression",argument:t})}function OZ(){return{type:"Import"}}function NZ(t){return(0,N.default)({type:"BigIntLiteral",value:t})}function DZ(t){return(0,N.default)({type:"ExportNamespaceSpecifier",exported:t})}function LZ(t,e,r=!1,i){return(0,N.default)({type:"OptionalMemberExpression",object:t,property:e,computed:r,optional:i})}function kZ(t,e,r){return(0,N.default)({type:"OptionalCallExpression",callee:t,arguments:e,optional:r})}function RZ(t,e=null,r=null,i=null,s=!1,n=!1){return(0,N.default)({type:"ClassProperty",key:t,value:e,typeAnnotation:r,decorators:i,computed:s,static:n})}function MZ(t,e=null,r=null,i=null,s=!1,n=!1){return(0,N.default)({type:"ClassAccessorProperty",key:t,value:e,typeAnnotation:r,decorators:i,computed:s,static:n})}function FZ(t,e=null,r=null,i=!1){return(0,N.default)({type:"ClassPrivateProperty",key:t,value:e,decorators:r,static:i})}function BZ(t="method",e,r,i,s=!1){return(0,N.default)({type:"ClassPrivateMethod",kind:t,key:e,params:r,body:i,static:s})}function jZ(t){return(0,N.default)({type:"PrivateName",id:t})}function qZ(t){return(0,N.default)({type:"StaticBlock",body:t})}function UZ(){return{type:"AnyTypeAnnotation"}}function $Z(t){return(0,N.default)({type:"ArrayTypeAnnotation",elementType:t})}function VZ(){return{type:"BooleanTypeAnnotation"}}function KZ(t){return(0,N.default)({type:"BooleanLiteralTypeAnnotation",value:t})}function HZ(){return{type:"NullLiteralTypeAnnotation"}}function WZ(t,e=null){return(0,N.default)({type:"ClassImplements",id:t,typeParameters:e})}function GZ(t,e=null,r=null,i){return(0,N.default)({type:"DeclareClass",id:t,typeParameters:e,extends:r,body:i})}function YZ(t){return(0,N.default)({type:"DeclareFunction",id:t})}function XZ(t,e=null,r=null,i){return(0,N.default)({type:"DeclareInterface",id:t,typeParameters:e,extends:r,body:i})}function zZ(t,e,r=null){return(0,N.default)({type:"DeclareModule",id:t,body:e,kind:r})}function JZ(t){return(0,N.default)({type:"DeclareModuleExports",typeAnnotation:t})}function QZ(t,e=null,r){return(0,N.default)({type:"DeclareTypeAlias",id:t,typeParameters:e,right:r})}function ZZ(t,e=null,r=null){return(0,N.default)({type:"DeclareOpaqueType",id:t,typeParameters:e,supertype:r})}function eee(t){return(0,N.default)({type:"DeclareVariable",id:t})}function tee(t=null,e=null,r=null){return(0,N.default)({type:"DeclareExportDeclaration",declaration:t,specifiers:e,source:r})}function ree(t){return(0,N.default)({type:"DeclareExportAllDeclaration",source:t})}function iee(t){return(0,N.default)({type:"DeclaredPredicate",value:t})}function see(){return{type:"ExistsTypeAnnotation"}}function nee(t=null,e,r=null,i){return(0,N.default)({type:"FunctionTypeAnnotation",typeParameters:t,params:e,rest:r,returnType:i})}function aee(t=null,e){return(0,N.default)({type:"FunctionTypeParam",name:t,typeAnnotation:e})}function oee(t,e=null){return(0,N.default)({type:"GenericTypeAnnotation",id:t,typeParameters:e})}function lee(){return{type:"InferredPredicate"}}function uee(t,e=null){return(0,N.default)({type:"InterfaceExtends",id:t,typeParameters:e})}function cee(t,e=null,r=null,i){return(0,N.default)({type:"InterfaceDeclaration",id:t,typeParameters:e,extends:r,body:i})}function fee(t=null,e){return(0,N.default)({type:"InterfaceTypeAnnotation",extends:t,body:e})}function pee(t){return(0,N.default)({type:"IntersectionTypeAnnotation",types:t})}function hee(){return{type:"MixedTypeAnnotation"}}function dee(){return{type:"EmptyTypeAnnotation"}}function mee(t){return(0,N.default)({type:"NullableTypeAnnotation",typeAnnotation:t})}function yee(t){return(0,N.default)({type:"NumberLiteralTypeAnnotation",value:t})}function gee(){return{type:"NumberTypeAnnotation"}}function See(t,e=[],r=[],i=[],s=!1){return(0,N.default)({type:"ObjectTypeAnnotation",properties:t,indexers:e,callProperties:r,internalSlots:i,exact:s})}function Tee(t,e,r,i,s){return(0,N.default)({type:"ObjectTypeInternalSlot",id:t,value:e,optional:r,static:i,method:s})}function Eee(t){return(0,N.default)({type:"ObjectTypeCallProperty",value:t,static:null})}function bee(t=null,e,r,i=null){return(0,N.default)({type:"ObjectTypeIndexer",id:t,key:e,value:r,variance:i,static:null})}function xee(t,e,r=null){return(0,N.default)({type:"ObjectTypeProperty",key:t,value:e,variance:r,kind:null,method:null,optional:null,proto:null,static:null})}function Pee(t){return(0,N.default)({type:"ObjectTypeSpreadProperty",argument:t})}function vee(t,e=null,r=null,i){return(0,N.default)({type:"OpaqueType",id:t,typeParameters:e,supertype:r,impltype:i})}function Aee(t,e){return(0,N.default)({type:"QualifiedTypeIdentifier",id:t,qualification:e})}function wee(t){return(0,N.default)({type:"StringLiteralTypeAnnotation",value:t})}function _ee(){return{type:"StringTypeAnnotation"}}function Cee(){return{type:"SymbolTypeAnnotation"}}function Iee(){return{type:"ThisTypeAnnotation"}}function Oee(t){return(0,N.default)({type:"TupleTypeAnnotation",types:t})}function Nee(t){return(0,N.default)({type:"TypeofTypeAnnotation",argument:t})}function Dee(t,e=null,r){return(0,N.default)({type:"TypeAlias",id:t,typeParameters:e,right:r})}function Lee(t){return(0,N.default)({type:"TypeAnnotation",typeAnnotation:t})}function kee(t,e){return(0,N.default)({type:"TypeCastExpression",expression:t,typeAnnotation:e})}function Ree(t=null,e=null,r=null){return(0,N.default)({type:"TypeParameter",bound:t,default:e,variance:r,name:null})}function Mee(t){return(0,N.default)({type:"TypeParameterDeclaration",params:t})}function Fee(t){return(0,N.default)({type:"TypeParameterInstantiation",params:t})}function Bee(t){return(0,N.default)({type:"UnionTypeAnnotation",types:t})}function jee(t){return(0,N.default)({type:"Variance",kind:t})}function qee(){return{type:"VoidTypeAnnotation"}}function Uee(t,e){return(0,N.default)({type:"EnumDeclaration",id:t,body:e})}function $ee(t){return(0,N.default)({type:"EnumBooleanBody",members:t,explicitType:null,hasUnknownMembers:null})}function Vee(t){return(0,N.default)({type:"EnumNumberBody",members:t,explicitType:null,hasUnknownMembers:null})}function Kee(t){return(0,N.default)({type:"EnumStringBody",members:t,explicitType:null,hasUnknownMembers:null})}function Hee(t){return(0,N.default)({type:"EnumSymbolBody",members:t,hasUnknownMembers:null})}function Wee(t){return(0,N.default)({type:"EnumBooleanMember",id:t,init:null})}function Gee(t,e){return(0,N.default)({type:"EnumNumberMember",id:t,init:e})}function Yee(t,e){return(0,N.default)({type:"EnumStringMember",id:t,init:e})}function Xee(t){return(0,N.default)({type:"EnumDefaultedMember",id:t})}function zee(t,e){return(0,N.default)({type:"IndexedAccessType",objectType:t,indexType:e})}function Jee(t,e){return(0,N.default)({type:"OptionalIndexedAccessType",objectType:t,indexType:e,optional:null})}function Qee(t,e=null){return(0,N.default)({type:"JSXAttribute",name:t,value:e})}function Zee(t){return(0,N.default)({type:"JSXClosingElement",name:t})}function ete(t,e=null,r,i=null){return(0,N.default)({type:"JSXElement",openingElement:t,closingElement:e,children:r,selfClosing:i})}function tte(){return{type:"JSXEmptyExpression"}}function rte(t){return(0,N.default)({type:"JSXExpressionContainer",expression:t})}function ite(t){return(0,N.default)({type:"JSXSpreadChild",expression:t})}function ste(t){return(0,N.default)({type:"JSXIdentifier",name:t})}function nte(t,e){return(0,N.default)({type:"JSXMemberExpression",object:t,property:e})}function ate(t,e){return(0,N.default)({type:"JSXNamespacedName",namespace:t,name:e})}function ote(t,e,r=!1){return(0,N.default)({type:"JSXOpeningElement",name:t,attributes:e,selfClosing:r})}function lte(t){return(0,N.default)({type:"JSXSpreadAttribute",argument:t})}function ute(t){return(0,N.default)({type:"JSXText",value:t})}function cte(t,e,r){return(0,N.default)({type:"JSXFragment",openingFragment:t,closingFragment:e,children:r})}function fte(){return{type:"JSXOpeningFragment"}}function pte(){return{type:"JSXClosingFragment"}}function hte(){return{type:"Noop"}}function dte(t,e){return(0,N.default)({type:"Placeholder",expectedNode:t,name:e})}function mte(t){return(0,N.default)({type:"V8IntrinsicIdentifier",name:t})}function yte(){return{type:"ArgumentPlaceholder"}}function gte(t,e){return(0,N.default)({type:"BindExpression",object:t,callee:e})}function Ste(t,e){return(0,N.default)({type:"ImportAttribute",key:t,value:e})}function Tte(t){return(0,N.default)({type:"Decorator",expression:t})}function Ete(t,e=!1){return(0,N.default)({type:"DoExpression",body:t,async:e})}function bte(t){return(0,N.default)({type:"ExportDefaultSpecifier",exported:t})}function xte(t){return(0,N.default)({type:"RecordExpression",properties:t})}function Pte(t=[]){return(0,N.default)({type:"TupleExpression",elements:t})}function vte(t){return(0,N.default)({type:"DecimalLiteral",value:t})}function Ate(t){return(0,N.default)({type:"ModuleExpression",body:t})}function wte(){return{type:"TopicReference"}}function _te(t){return(0,N.default)({type:"PipelineTopicExpression",expression:t})}function Cte(t){return(0,N.default)({type:"PipelineBareFunction",callee:t})}function Ite(){return{type:"PipelinePrimaryTopicReference"}}function Ote(t){return(0,N.default)({type:"TSParameterProperty",parameter:t})}function Nte(t=null,e=null,r,i=null){return(0,N.default)({type:"TSDeclareFunction",id:t,typeParameters:e,params:r,returnType:i})}function Dte(t=null,e,r=null,i,s=null){return(0,N.default)({type:"TSDeclareMethod",decorators:t,key:e,typeParameters:r,params:i,returnType:s})}function Lte(t,e){return(0,N.default)({type:"TSQualifiedName",left:t,right:e})}function kte(t=null,e,r=null){return(0,N.default)({type:"TSCallSignatureDeclaration",typeParameters:t,parameters:e,typeAnnotation:r})}function Rte(t=null,e,r=null){return(0,N.default)({type:"TSConstructSignatureDeclaration",typeParameters:t,parameters:e,typeAnnotation:r})}function Mte(t,e=null,r=null){return(0,N.default)({type:"TSPropertySignature",key:t,typeAnnotation:e,initializer:r,kind:null})}function Fte(t,e=null,r,i=null){return(0,N.default)({type:"TSMethodSignature",key:t,typeParameters:e,parameters:r,typeAnnotation:i,kind:null})}function Bte(t,e=null){return(0,N.default)({type:"TSIndexSignature",parameters:t,typeAnnotation:e})}function jte(){return{type:"TSAnyKeyword"}}function qte(){return{type:"TSBooleanKeyword"}}function Ute(){return{type:"TSBigIntKeyword"}}function $te(){return{type:"TSIntrinsicKeyword"}}function Vte(){return{type:"TSNeverKeyword"}}function Kte(){return{type:"TSNullKeyword"}}function Hte(){return{type:"TSNumberKeyword"}}function Wte(){return{type:"TSObjectKeyword"}}function Gte(){return{type:"TSStringKeyword"}}function Yte(){return{type:"TSSymbolKeyword"}}function Xte(){return{type:"TSUndefinedKeyword"}}function zte(){return{type:"TSUnknownKeyword"}}function Jte(){return{type:"TSVoidKeyword"}}function Qte(){return{type:"TSThisType"}}function Zte(t=null,e,r=null){return(0,N.default)({type:"TSFunctionType",typeParameters:t,parameters:e,typeAnnotation:r})}function ere(t=null,e,r=null){return(0,N.default)({type:"TSConstructorType",typeParameters:t,parameters:e,typeAnnotation:r})}function tre(t,e=null){return(0,N.default)({type:"TSTypeReference",typeName:t,typeParameters:e})}function rre(t,e=null,r=null){return(0,N.default)({type:"TSTypePredicate",parameterName:t,typeAnnotation:e,asserts:r})}function ire(t,e=null){return(0,N.default)({type:"TSTypeQuery",exprName:t,typeParameters:e})}function sre(t){return(0,N.default)({type:"TSTypeLiteral",members:t})}function nre(t){return(0,N.default)({type:"TSArrayType",elementType:t})}function are(t){return(0,N.default)({type:"TSTupleType",elementTypes:t})}function ore(t){return(0,N.default)({type:"TSOptionalType",typeAnnotation:t})}function lre(t){return(0,N.default)({type:"TSRestType",typeAnnotation:t})}function ure(t,e,r=!1){return(0,N.default)({type:"TSNamedTupleMember",label:t,elementType:e,optional:r})}function cre(t){return(0,N.default)({type:"TSUnionType",types:t})}function fre(t){return(0,N.default)({type:"TSIntersectionType",types:t})}function pre(t,e,r,i){return(0,N.default)({type:"TSConditionalType",checkType:t,extendsType:e,trueType:r,falseType:i})}function hre(t){return(0,N.default)({type:"TSInferType",typeParameter:t})}function dre(t){return(0,N.default)({type:"TSParenthesizedType",typeAnnotation:t})}function mre(t){return(0,N.default)({type:"TSTypeOperator",typeAnnotation:t,operator:null})}function yre(t,e){return(0,N.default)({type:"TSIndexedAccessType",objectType:t,indexType:e})}function gre(t,e=null,r=null){return(0,N.default)({type:"TSMappedType",typeParameter:t,typeAnnotation:e,nameType:r})}function Sre(t){return(0,N.default)({type:"TSLiteralType",literal:t})}function Tre(t,e=null){return(0,N.default)({type:"TSExpressionWithTypeArguments",expression:t,typeParameters:e})}function Ere(t,e=null,r=null,i){return(0,N.default)({type:"TSInterfaceDeclaration",id:t,typeParameters:e,extends:r,body:i})}function bre(t){return(0,N.default)({type:"TSInterfaceBody",body:t})}function xre(t,e=null,r){return(0,N.default)({type:"TSTypeAliasDeclaration",id:t,typeParameters:e,typeAnnotation:r})}function Pre(t,e=null){return(0,N.default)({type:"TSInstantiationExpression",expression:t,typeParameters:e})}function vre(t,e){return(0,N.default)({type:"TSAsExpression",expression:t,typeAnnotation:e})}function Are(t,e){return(0,N.default)({type:"TSSatisfiesExpression",expression:t,typeAnnotation:e})}function wre(t,e){return(0,N.default)({type:"TSTypeAssertion",typeAnnotation:t,expression:e})}function _re(t,e){return(0,N.default)({type:"TSEnumDeclaration",id:t,members:e})}function Cre(t,e=null){return(0,N.default)({type:"TSEnumMember",id:t,initializer:e})}function Ire(t,e){return(0,N.default)({type:"TSModuleDeclaration",id:t,body:e})}function Ore(t){return(0,N.default)({type:"TSModuleBlock",body:t})}function Nre(t,e=null,r=null){return(0,N.default)({type:"TSImportType",argument:t,qualifier:e,typeParameters:r})}function Dre(t,e){return(0,N.default)({type:"TSImportEqualsDeclaration",id:t,moduleReference:e,isExport:null})}function Lre(t){return(0,N.default)({type:"TSExternalModuleReference",expression:t})}function kre(t){return(0,N.default)({type:"TSNonNullExpression",expression:t})}function Rre(t){return(0,N.default)({type:"TSExportAssignment",expression:t})}function Mre(t){return(0,N.default)({type:"TSNamespaceExportDeclaration",id:t})}function Fre(t){return(0,N.default)({type:"TSTypeAnnotation",typeAnnotation:t})}function Bre(t){return(0,N.default)({type:"TSTypeParameterInstantiation",params:t})}function jre(t){return(0,N.default)({type:"TSTypeParameterDeclaration",params:t})}function qre(t=null,e=null,r){return(0,N.default)({type:"TSTypeParameter",constraint:t,default:e,name:r})}function Ure(t){return(0,Pp.default)("NumberLiteral","NumericLiteral","The node type "),PL(t)}function $re(t,e=""){return(0,Pp.default)("RegexLiteral","RegExpLiteral","The node type "),vL(t,e)}function Vre(t){return(0,Pp.default)("RestProperty","RestElement","The node type "),AL(t)}function Kre(t){return(0,Pp.default)("SpreadProperty","SpreadElement","The node type "),wL(t)}});var _L=g(L0=>{"use strict";c();Object.defineProperty(L0,"__esModule",{value:!0});L0.default=Gre;var Hre=dr(),Wre=ve();function Gre(t,e){let r=t.value.split(/\r\n|\n|\r/),i=0;for(let n=0;n<r.length;n++)r[n].match(/[^ \t]/)&&(i=n);let s="";for(let n=0;n<r.length;n++){let a=r[n],o=n===0,l=n===r.length-1,u=n===i,f=a.replace(/\t/g," ");o||(f=f.replace(/^[ ]+/,"")),l||(f=f.replace(/[ ]+$/,"")),f&&(u||(f+=" "),s+=f)}s&&e.push((0,Wre.inherits)((0,Hre.stringLiteral)(s),t))}});var CL=g(R0=>{"use strict";c();Object.defineProperty(R0,"__esModule",{value:!0});R0.default=Xre;var k0=mt(),Yre=_L();function Xre(t){let e=[];for(let r=0;r<t.children.length;r++){let i=t.children[r];if((0,k0.isJSXText)(i)){(0,Yre.default)(i,e);continue}(0,k0.isJSXExpressionContainer)(i)&&(i=i.expression),!(0,k0.isJSXEmptyExpression)(i)&&e.push(i)}return e}});var F0=g(M0=>{"use strict";c();Object.defineProperty(M0,"__esModule",{value:!0});M0.default=Jre;var zre=Ur();function Jre(t){return!!(t&&zre.VISITOR_KEYS[t.type])}});var IL=g(B0=>{"use strict";c();Object.defineProperty(B0,"__esModule",{value:!0});B0.default=Zre;var Qre=F0();function Zre(t){if(!(0,Qre.default)(t)){var e;let r=(e=t==null?void 0:t.type)!=null?e:JSON.stringify(t);throw new TypeError(`Not a valid node of type "${r}"`)}}});var OL=g(v=>{"use strict";c();Object.defineProperty(v,"__esModule",{value:!0});v.assertAccessor=dle;v.assertAnyTypeAnnotation=kse;v.assertArgumentPlaceholder=uae;v.assertArrayExpression=tie;v.assertArrayPattern=Zie;v.assertArrayTypeAnnotation=Rse;v.assertArrowFunctionExpression=ese;v.assertAssignmentExpression=rie;v.assertAssignmentPattern=Qie;v.assertAwaitExpression=xse;v.assertBigIntLiteral=vse;v.assertBinary=Moe;v.assertBinaryExpression=iie;v.assertBindExpression=cae;v.assertBlock=joe;v.assertBlockParent=Boe;v.assertBlockStatement=oie;v.assertBooleanLiteral=Cie;v.assertBooleanLiteralTypeAnnotation=Fse;v.assertBooleanTypeAnnotation=Mse;v.assertBreakStatement=lie;v.assertCallExpression=uie;v.assertCatchClause=cie;v.assertClass=cle;v.assertClassAccessorProperty=Ise;v.assertClassBody=tse;v.assertClassDeclaration=ise;v.assertClassExpression=rse;v.assertClassImplements=jse;v.assertClassMethod=dse;v.assertClassPrivateMethod=Nse;v.assertClassPrivateProperty=Ose;v.assertClassProperty=Cse;v.assertCompletionStatement=$oe;v.assertConditional=Voe;v.assertConditionalExpression=fie;v.assertContinueStatement=pie;v.assertDebuggerStatement=hie;v.assertDecimalLiteral=gae;v.assertDeclaration=Qoe;v.assertDeclareClass=qse;v.assertDeclareExportAllDeclaration=Xse;v.assertDeclareExportDeclaration=Yse;v.assertDeclareFunction=Use;v.assertDeclareInterface=$se;v.assertDeclareModule=Vse;v.assertDeclareModuleExports=Kse;v.assertDeclareOpaqueType=Wse;v.assertDeclareTypeAlias=Hse;v.assertDeclareVariable=Gse;v.assertDeclaredPredicate=zse;v.assertDecorator=pae;v.assertDirective=nie;v.assertDirectiveLiteral=aie;v.assertDoExpression=hae;v.assertDoWhileStatement=die;v.assertEmptyStatement=mie;v.assertEmptyTypeAnnotation=one;v.assertEnumBody=ble;v.assertEnumBooleanBody=Rne;v.assertEnumBooleanMember=jne;v.assertEnumDeclaration=kne;v.assertEnumDefaultedMember=$ne;v.assertEnumMember=xle;v.assertEnumNumberBody=Mne;v.assertEnumNumberMember=qne;v.assertEnumStringBody=Fne;v.assertEnumStringMember=Une;v.assertEnumSymbolBody=Bne;v.assertExistsTypeAnnotation=Jse;v.assertExportAllDeclaration=sse;v.assertExportDeclaration=ple;v.assertExportDefaultDeclaration=nse;v.assertExportDefaultSpecifier=dae;v.assertExportNamedDeclaration=ase;v.assertExportNamespaceSpecifier=Ase;v.assertExportSpecifier=ose;v.assertExpression=Roe;v.assertExpressionStatement=yie;v.assertExpressionWrapper=Woe;v.assertFile=gie;v.assertFlow=yle;v.assertFlowBaseAnnotation=Sle;v.assertFlowDeclaration=Tle;v.assertFlowPredicate=Ele;v.assertFlowType=gle;v.assertFor=Goe;v.assertForInStatement=Sie;v.assertForOfStatement=lse;v.assertForStatement=Tie;v.assertForXStatement=Yoe;v.assertFunction=Xoe;v.assertFunctionDeclaration=Eie;v.assertFunctionExpression=bie;v.assertFunctionParent=zoe;v.assertFunctionTypeAnnotation=Qse;v.assertFunctionTypeParam=Zse;v.assertGenericTypeAnnotation=ene;v.assertIdentifier=xie;v.assertIfStatement=Pie;v.assertImmutable=ile;v.assertImport=Pse;v.assertImportAttribute=fae;v.assertImportDeclaration=use;v.assertImportDefaultSpecifier=cse;v.assertImportNamespaceSpecifier=fse;v.assertImportOrExportDeclaration=fle;v.assertImportSpecifier=pse;v.assertIndexedAccessType=Vne;v.assertInferredPredicate=tne;v.assertInterfaceDeclaration=ine;v.assertInterfaceExtends=rne;v.assertInterfaceTypeAnnotation=sne;v.assertInterpreterDirective=sie;v.assertIntersectionTypeAnnotation=nne;v.assertJSX=Ple;v.assertJSXAttribute=Hne;v.assertJSXClosingElement=Wne;v.assertJSXClosingFragment=nae;v.assertJSXElement=Gne;v.assertJSXEmptyExpression=Yne;v.assertJSXExpressionContainer=Xne;v.assertJSXFragment=iae;v.assertJSXIdentifier=Jne;v.assertJSXMemberExpression=Qne;v.assertJSXNamespacedName=Zne;v.assertJSXOpeningElement=eae;v.assertJSXOpeningFragment=sae;v.assertJSXSpreadAttribute=tae;v.assertJSXSpreadChild=zne;v.assertJSXText=rae;v.assertLVal=ele;v.assertLabeledStatement=vie;v.assertLiteral=rle;v.assertLogicalExpression=Oie;v.assertLoop=Koe;v.assertMemberExpression=Nie;v.assertMetaProperty=hse;v.assertMethod=nle;v.assertMiscellaneous=vle;v.assertMixedTypeAnnotation=ane;v.assertModuleDeclaration=Lle;v.assertModuleExpression=Sae;v.assertModuleSpecifier=hle;v.assertNewExpression=Die;v.assertNoop=aae;v.assertNullLiteral=_ie;v.assertNullLiteralTypeAnnotation=Bse;v.assertNullableTypeAnnotation=lne;v.assertNumberLiteral=Ile;v.assertNumberLiteralTypeAnnotation=une;v.assertNumberTypeAnnotation=cne;v.assertNumericLiteral=wie;v.assertObjectExpression=kie;v.assertObjectMember=ale;v.assertObjectMethod=Rie;v.assertObjectPattern=mse;v.assertObjectProperty=Mie;v.assertObjectTypeAnnotation=fne;v.assertObjectTypeCallProperty=hne;v.assertObjectTypeIndexer=dne;v.assertObjectTypeInternalSlot=pne;v.assertObjectTypeProperty=mne;v.assertObjectTypeSpreadProperty=yne;v.assertOpaqueType=gne;v.assertOptionalCallExpression=_se;v.assertOptionalIndexedAccessType=Kne;v.assertOptionalMemberExpression=wse;v.assertParenthesizedExpression=qie;v.assertPattern=ule;v.assertPatternLike=Zoe;v.assertPipelineBareFunction=bae;v.assertPipelinePrimaryTopicReference=xae;v.assertPipelineTopicExpression=Eae;v.assertPlaceholder=oae;v.assertPrivate=mle;v.assertPrivateName=Dse;v.assertProgram=Lie;v.assertProperty=ole;v.assertPureish=Joe;v.assertQualifiedTypeIdentifier=Sne;v.assertRecordExpression=mae;v.assertRegExpLiteral=Iie;v.assertRegexLiteral=Ole;v.assertRestElement=Fie;v.assertRestProperty=Nle;v.assertReturnStatement=Bie;v.assertScopable=Foe;v.assertSequenceExpression=jie;v.assertSpreadElement=yse;v.assertSpreadProperty=Dle;v.assertStandardized=koe;v.assertStatement=qoe;v.assertStaticBlock=Lse;v.assertStringLiteral=Aie;v.assertStringLiteralTypeAnnotation=Tne;v.assertStringTypeAnnotation=Ene;v.assertSuper=gse;v.assertSwitchCase=Uie;v.assertSwitchStatement=$ie;v.assertSymbolTypeAnnotation=bne;v.assertTSAnyKeyword=Dae;v.assertTSArrayType=Qae;v.assertTSAsExpression=goe;v.assertTSBaseType=Cle;v.assertTSBigIntKeyword=kae;v.assertTSBooleanKeyword=Lae;v.assertTSCallSignatureDeclaration=_ae;v.assertTSConditionalType=noe;v.assertTSConstructSignatureDeclaration=Cae;v.assertTSConstructorType=Gae;v.assertTSDeclareFunction=vae;v.assertTSDeclareMethod=Aae;v.assertTSEntityName=tle;v.assertTSEnumDeclaration=Eoe;v.assertTSEnumMember=boe;v.assertTSExportAssignment=Coe;v.assertTSExpressionWithTypeArguments=poe;v.assertTSExternalModuleReference=woe;v.assertTSFunctionType=Wae;v.assertTSImportEqualsDeclaration=Aoe;v.assertTSImportType=voe;v.assertTSIndexSignature=Nae;v.assertTSIndexedAccessType=uoe;v.assertTSInferType=aoe;v.assertTSInstantiationExpression=yoe;v.assertTSInterfaceBody=doe;v.assertTSInterfaceDeclaration=hoe;v.assertTSIntersectionType=soe;v.assertTSIntrinsicKeyword=Rae;v.assertTSLiteralType=foe;v.assertTSMappedType=coe;v.assertTSMethodSignature=Oae;v.assertTSModuleBlock=Poe;v.assertTSModuleDeclaration=xoe;v.assertTSNamedTupleMember=roe;v.assertTSNamespaceExportDeclaration=Ioe;v.assertTSNeverKeyword=Mae;v.assertTSNonNullExpression=_oe;v.assertTSNullKeyword=Fae;v.assertTSNumberKeyword=Bae;v.assertTSObjectKeyword=jae;v.assertTSOptionalType=eoe;v.assertTSParameterProperty=Pae;v.assertTSParenthesizedType=ooe;v.assertTSPropertySignature=Iae;v.assertTSQualifiedName=wae;v.assertTSRestType=toe;v.assertTSSatisfiesExpression=Soe;v.assertTSStringKeyword=qae;v.assertTSSymbolKeyword=Uae;v.assertTSThisType=Hae;v.assertTSTupleType=Zae;v.assertTSType=_le;v.assertTSTypeAliasDeclaration=moe;v.assertTSTypeAnnotation=Ooe;v.assertTSTypeAssertion=Toe;v.assertTSTypeElement=wle;v.assertTSTypeLiteral=Jae;v.assertTSTypeOperator=loe;v.assertTSTypeParameter=Loe;v.assertTSTypeParameterDeclaration=Doe;v.assertTSTypeParameterInstantiation=Noe;v.assertTSTypePredicate=Xae;v.assertTSTypeQuery=zae;v.assertTSTypeReference=Yae;v.assertTSUndefinedKeyword=$ae;v.assertTSUnionType=ioe;v.assertTSUnknownKeyword=Vae;v.assertTSVoidKeyword=Kae;v.assertTaggedTemplateExpression=Sse;v.assertTemplateElement=Tse;v.assertTemplateLiteral=Ese;v.assertTerminatorless=Uoe;v.assertThisExpression=Vie;v.assertThisTypeAnnotation=xne;v.assertThrowStatement=Kie;v.assertTopicReference=Tae;v.assertTryStatement=Hie;v.assertTupleExpression=yae;v.assertTupleTypeAnnotation=Pne;v.assertTypeAlias=Ane;v.assertTypeAnnotation=wne;v.assertTypeCastExpression=_ne;v.assertTypeParameter=Cne;v.assertTypeParameterDeclaration=Ine;v.assertTypeParameterInstantiation=One;v.assertTypeScript=Ale;v.assertTypeofTypeAnnotation=vne;v.assertUnaryExpression=Wie;v.assertUnaryLike=lle;v.assertUnionTypeAnnotation=Nne;v.assertUpdateExpression=Gie;v.assertUserWhitespacable=sle;v.assertV8IntrinsicIdentifier=lae;v.assertVariableDeclaration=Yie;v.assertVariableDeclarator=Xie;v.assertVariance=Dne;v.assertVoidTypeAnnotation=Lne;v.assertWhile=Hoe;v.assertWhileStatement=zie;v.assertWithStatement=Jie;v.assertYieldExpression=bse;var eie=Ja(),Vl=Nl();function A(t,e,r){if(!(0,eie.default)(t,e,r))throw new Error(`Expected type "${t}" with option ${JSON.stringify(r)}, but instead got "${e.type}".`)}function tie(t,e){A("ArrayExpression",t,e)}function rie(t,e){A("AssignmentExpression",t,e)}function iie(t,e){A("BinaryExpression",t,e)}function sie(t,e){A("InterpreterDirective",t,e)}function nie(t,e){A("Directive",t,e)}function aie(t,e){A("DirectiveLiteral",t,e)}function oie(t,e){A("BlockStatement",t,e)}function lie(t,e){A("BreakStatement",t,e)}function uie(t,e){A("CallExpression",t,e)}function cie(t,e){A("CatchClause",t,e)}function fie(t,e){A("ConditionalExpression",t,e)}function pie(t,e){A("ContinueStatement",t,e)}function hie(t,e){A("DebuggerStatement",t,e)}function die(t,e){A("DoWhileStatement",t,e)}function mie(t,e){A("EmptyStatement",t,e)}function yie(t,e){A("ExpressionStatement",t,e)}function gie(t,e){A("File",t,e)}function Sie(t,e){A("ForInStatement",t,e)}function Tie(t,e){A("ForStatement",t,e)}function Eie(t,e){A("FunctionDeclaration",t,e)}function bie(t,e){A("FunctionExpression",t,e)}function xie(t,e){A("Identifier",t,e)}function Pie(t,e){A("IfStatement",t,e)}function vie(t,e){A("LabeledStatement",t,e)}function Aie(t,e){A("StringLiteral",t,e)}function wie(t,e){A("NumericLiteral",t,e)}function _ie(t,e){A("NullLiteral",t,e)}function Cie(t,e){A("BooleanLiteral",t,e)}function Iie(t,e){A("RegExpLiteral",t,e)}function Oie(t,e){A("LogicalExpression",t,e)}function Nie(t,e){A("MemberExpression",t,e)}function Die(t,e){A("NewExpression",t,e)}function Lie(t,e){A("Program",t,e)}function kie(t,e){A("ObjectExpression",t,e)}function Rie(t,e){A("ObjectMethod",t,e)}function Mie(t,e){A("ObjectProperty",t,e)}function Fie(t,e){A("RestElement",t,e)}function Bie(t,e){A("ReturnStatement",t,e)}function jie(t,e){A("SequenceExpression",t,e)}function qie(t,e){A("ParenthesizedExpression",t,e)}function Uie(t,e){A("SwitchCase",t,e)}function $ie(t,e){A("SwitchStatement",t,e)}function Vie(t,e){A("ThisExpression",t,e)}function Kie(t,e){A("ThrowStatement",t,e)}function Hie(t,e){A("TryStatement",t,e)}function Wie(t,e){A("UnaryExpression",t,e)}function Gie(t,e){A("UpdateExpression",t,e)}function Yie(t,e){A("VariableDeclaration",t,e)}function Xie(t,e){A("VariableDeclarator",t,e)}function zie(t,e){A("WhileStatement",t,e)}function Jie(t,e){A("WithStatement",t,e)}function Qie(t,e){A("AssignmentPattern",t,e)}function Zie(t,e){A("ArrayPattern",t,e)}function ese(t,e){A("ArrowFunctionExpression",t,e)}function tse(t,e){A("ClassBody",t,e)}function rse(t,e){A("ClassExpression",t,e)}function ise(t,e){A("ClassDeclaration",t,e)}function sse(t,e){A("ExportAllDeclaration",t,e)}function nse(t,e){A("ExportDefaultDeclaration",t,e)}function ase(t,e){A("ExportNamedDeclaration",t,e)}function ose(t,e){A("ExportSpecifier",t,e)}function lse(t,e){A("ForOfStatement",t,e)}function use(t,e){A("ImportDeclaration",t,e)}function cse(t,e){A("ImportDefaultSpecifier",t,e)}function fse(t,e){A("ImportNamespaceSpecifier",t,e)}function pse(t,e){A("ImportSpecifier",t,e)}function hse(t,e){A("MetaProperty",t,e)}function dse(t,e){A("ClassMethod",t,e)}function mse(t,e){A("ObjectPattern",t,e)}function yse(t,e){A("SpreadElement",t,e)}function gse(t,e){A("Super",t,e)}function Sse(t,e){A("TaggedTemplateExpression",t,e)}function Tse(t,e){A("TemplateElement",t,e)}function Ese(t,e){A("TemplateLiteral",t,e)}function bse(t,e){A("YieldExpression",t,e)}function xse(t,e){A("AwaitExpression",t,e)}function Pse(t,e){A("Import",t,e)}function vse(t,e){A("BigIntLiteral",t,e)}function Ase(t,e){A("ExportNamespaceSpecifier",t,e)}function wse(t,e){A("OptionalMemberExpression",t,e)}function _se(t,e){A("OptionalCallExpression",t,e)}function Cse(t,e){A("ClassProperty",t,e)}function Ise(t,e){A("ClassAccessorProperty",t,e)}function Ose(t,e){A("ClassPrivateProperty",t,e)}function Nse(t,e){A("ClassPrivateMethod",t,e)}function Dse(t,e){A("PrivateName",t,e)}function Lse(t,e){A("StaticBlock",t,e)}function kse(t,e){A("AnyTypeAnnotation",t,e)}function Rse(t,e){A("ArrayTypeAnnotation",t,e)}function Mse(t,e){A("BooleanTypeAnnotation",t,e)}function Fse(t,e){A("BooleanLiteralTypeAnnotation",t,e)}function Bse(t,e){A("NullLiteralTypeAnnotation",t,e)}function jse(t,e){A("ClassImplements",t,e)}function qse(t,e){A("DeclareClass",t,e)}function Use(t,e){A("DeclareFunction",t,e)}function $se(t,e){A("DeclareInterface",t,e)}function Vse(t,e){A("DeclareModule",t,e)}function Kse(t,e){A("DeclareModuleExports",t,e)}function Hse(t,e){A("DeclareTypeAlias",t,e)}function Wse(t,e){A("DeclareOpaqueType",t,e)}function Gse(t,e){A("DeclareVariable",t,e)}function Yse(t,e){A("DeclareExportDeclaration",t,e)}function Xse(t,e){A("DeclareExportAllDeclaration",t,e)}function zse(t,e){A("DeclaredPredicate",t,e)}function Jse(t,e){A("ExistsTypeAnnotation",t,e)}function Qse(t,e){A("FunctionTypeAnnotation",t,e)}function Zse(t,e){A("FunctionTypeParam",t,e)}function ene(t,e){A("GenericTypeAnnotation",t,e)}function tne(t,e){A("InferredPredicate",t,e)}function rne(t,e){A("InterfaceExtends",t,e)}function ine(t,e){A("InterfaceDeclaration",t,e)}function sne(t,e){A("InterfaceTypeAnnotation",t,e)}function nne(t,e){A("IntersectionTypeAnnotation",t,e)}function ane(t,e){A("MixedTypeAnnotation",t,e)}function one(t,e){A("EmptyTypeAnnotation",t,e)}function lne(t,e){A("NullableTypeAnnotation",t,e)}function une(t,e){A("NumberLiteralTypeAnnotation",t,e)}function cne(t,e){A("NumberTypeAnnotation",t,e)}function fne(t,e){A("ObjectTypeAnnotation",t,e)}function pne(t,e){A("ObjectTypeInternalSlot",t,e)}function hne(t,e){A("ObjectTypeCallProperty",t,e)}function dne(t,e){A("ObjectTypeIndexer",t,e)}function mne(t,e){A("ObjectTypeProperty",t,e)}function yne(t,e){A("ObjectTypeSpreadProperty",t,e)}function gne(t,e){A("OpaqueType",t,e)}function Sne(t,e){A("QualifiedTypeIdentifier",t,e)}function Tne(t,e){A("StringLiteralTypeAnnotation",t,e)}function Ene(t,e){A("StringTypeAnnotation",t,e)}function bne(t,e){A("SymbolTypeAnnotation",t,e)}function xne(t,e){A("ThisTypeAnnotation",t,e)}function Pne(t,e){A("TupleTypeAnnotation",t,e)}function vne(t,e){A("TypeofTypeAnnotation",t,e)}function Ane(t,e){A("TypeAlias",t,e)}function wne(t,e){A("TypeAnnotation",t,e)}function _ne(t,e){A("TypeCastExpression",t,e)}function Cne(t,e){A("TypeParameter",t,e)}function Ine(t,e){A("TypeParameterDeclaration",t,e)}function One(t,e){A("TypeParameterInstantiation",t,e)}function Nne(t,e){A("UnionTypeAnnotation",t,e)}function Dne(t,e){A("Variance",t,e)}function Lne(t,e){A("VoidTypeAnnotation",t,e)}function kne(t,e){A("EnumDeclaration",t,e)}function Rne(t,e){A("EnumBooleanBody",t,e)}function Mne(t,e){A("EnumNumberBody",t,e)}function Fne(t,e){A("EnumStringBody",t,e)}function Bne(t,e){A("EnumSymbolBody",t,e)}function jne(t,e){A("EnumBooleanMember",t,e)}function qne(t,e){A("EnumNumberMember",t,e)}function Une(t,e){A("EnumStringMember",t,e)}function $ne(t,e){A("EnumDefaultedMember",t,e)}function Vne(t,e){A("IndexedAccessType",t,e)}function Kne(t,e){A("OptionalIndexedAccessType",t,e)}function Hne(t,e){A("JSXAttribute",t,e)}function Wne(t,e){A("JSXClosingElement",t,e)}function Gne(t,e){A("JSXElement",t,e)}function Yne(t,e){A("JSXEmptyExpression",t,e)}function Xne(t,e){A("JSXExpressionContainer",t,e)}function zne(t,e){A("JSXSpreadChild",t,e)}function Jne(t,e){A("JSXIdentifier",t,e)}function Qne(t,e){A("JSXMemberExpression",t,e)}function Zne(t,e){A("JSXNamespacedName",t,e)}function eae(t,e){A("JSXOpeningElement",t,e)}function tae(t,e){A("JSXSpreadAttribute",t,e)}function rae(t,e){A("JSXText",t,e)}function iae(t,e){A("JSXFragment",t,e)}function sae(t,e){A("JSXOpeningFragment",t,e)}function nae(t,e){A("JSXClosingFragment",t,e)}function aae(t,e){A("Noop",t,e)}function oae(t,e){A("Placeholder",t,e)}function lae(t,e){A("V8IntrinsicIdentifier",t,e)}function uae(t,e){A("ArgumentPlaceholder",t,e)}function cae(t,e){A("BindExpression",t,e)}function fae(t,e){A("ImportAttribute",t,e)}function pae(t,e){A("Decorator",t,e)}function hae(t,e){A("DoExpression",t,e)}function dae(t,e){A("ExportDefaultSpecifier",t,e)}function mae(t,e){A("RecordExpression",t,e)}function yae(t,e){A("TupleExpression",t,e)}function gae(t,e){A("DecimalLiteral",t,e)}function Sae(t,e){A("ModuleExpression",t,e)}function Tae(t,e){A("TopicReference",t,e)}function Eae(t,e){A("PipelineTopicExpression",t,e)}function bae(t,e){A("PipelineBareFunction",t,e)}function xae(t,e){A("PipelinePrimaryTopicReference",t,e)}function Pae(t,e){A("TSParameterProperty",t,e)}function vae(t,e){A("TSDeclareFunction",t,e)}function Aae(t,e){A("TSDeclareMethod",t,e)}function wae(t,e){A("TSQualifiedName",t,e)}function _ae(t,e){A("TSCallSignatureDeclaration",t,e)}function Cae(t,e){A("TSConstructSignatureDeclaration",t,e)}function Iae(t,e){A("TSPropertySignature",t,e)}function Oae(t,e){A("TSMethodSignature",t,e)}function Nae(t,e){A("TSIndexSignature",t,e)}function Dae(t,e){A("TSAnyKeyword",t,e)}function Lae(t,e){A("TSBooleanKeyword",t,e)}function kae(t,e){A("TSBigIntKeyword",t,e)}function Rae(t,e){A("TSIntrinsicKeyword",t,e)}function Mae(t,e){A("TSNeverKeyword",t,e)}function Fae(t,e){A("TSNullKeyword",t,e)}function Bae(t,e){A("TSNumberKeyword",t,e)}function jae(t,e){A("TSObjectKeyword",t,e)}function qae(t,e){A("TSStringKeyword",t,e)}function Uae(t,e){A("TSSymbolKeyword",t,e)}function $ae(t,e){A("TSUndefinedKeyword",t,e)}function Vae(t,e){A("TSUnknownKeyword",t,e)}function Kae(t,e){A("TSVoidKeyword",t,e)}function Hae(t,e){A("TSThisType",t,e)}function Wae(t,e){A("TSFunctionType",t,e)}function Gae(t,e){A("TSConstructorType",t,e)}function Yae(t,e){A("TSTypeReference",t,e)}function Xae(t,e){A("TSTypePredicate",t,e)}function zae(t,e){A("TSTypeQuery",t,e)}function Jae(t,e){A("TSTypeLiteral",t,e)}function Qae(t,e){A("TSArrayType",t,e)}function Zae(t,e){A("TSTupleType",t,e)}function eoe(t,e){A("TSOptionalType",t,e)}function toe(t,e){A("TSRestType",t,e)}function roe(t,e){A("TSNamedTupleMember",t,e)}function ioe(t,e){A("TSUnionType",t,e)}function soe(t,e){A("TSIntersectionType",t,e)}function noe(t,e){A("TSConditionalType",t,e)}function aoe(t,e){A("TSInferType",t,e)}function ooe(t,e){A("TSParenthesizedType",t,e)}function loe(t,e){A("TSTypeOperator",t,e)}function uoe(t,e){A("TSIndexedAccessType",t,e)}function coe(t,e){A("TSMappedType",t,e)}function foe(t,e){A("TSLiteralType",t,e)}function poe(t,e){A("TSExpressionWithTypeArguments",t,e)}function hoe(t,e){A("TSInterfaceDeclaration",t,e)}function doe(t,e){A("TSInterfaceBody",t,e)}function moe(t,e){A("TSTypeAliasDeclaration",t,e)}function yoe(t,e){A("TSInstantiationExpression",t,e)}function goe(t,e){A("TSAsExpression",t,e)}function Soe(t,e){A("TSSatisfiesExpression",t,e)}function Toe(t,e){A("TSTypeAssertion",t,e)}function Eoe(t,e){A("TSEnumDeclaration",t,e)}function boe(t,e){A("TSEnumMember",t,e)}function xoe(t,e){A("TSModuleDeclaration",t,e)}function Poe(t,e){A("TSModuleBlock",t,e)}function voe(t,e){A("TSImportType",t,e)}function Aoe(t,e){A("TSImportEqualsDeclaration",t,e)}function woe(t,e){A("TSExternalModuleReference",t,e)}function _oe(t,e){A("TSNonNullExpression",t,e)}function Coe(t,e){A("TSExportAssignment",t,e)}function Ioe(t,e){A("TSNamespaceExportDeclaration",t,e)}function Ooe(t,e){A("TSTypeAnnotation",t,e)}function Noe(t,e){A("TSTypeParameterInstantiation",t,e)}function Doe(t,e){A("TSTypeParameterDeclaration",t,e)}function Loe(t,e){A("TSTypeParameter",t,e)}function koe(t,e){A("Standardized",t,e)}function Roe(t,e){A("Expression",t,e)}function Moe(t,e){A("Binary",t,e)}function Foe(t,e){A("Scopable",t,e)}function Boe(t,e){A("BlockParent",t,e)}function joe(t,e){A("Block",t,e)}function qoe(t,e){A("Statement",t,e)}function Uoe(t,e){A("Terminatorless",t,e)}function $oe(t,e){A("CompletionStatement",t,e)}function Voe(t,e){A("Conditional",t,e)}function Koe(t,e){A("Loop",t,e)}function Hoe(t,e){A("While",t,e)}function Woe(t,e){A("ExpressionWrapper",t,e)}function Goe(t,e){A("For",t,e)}function Yoe(t,e){A("ForXStatement",t,e)}function Xoe(t,e){A("Function",t,e)}function zoe(t,e){A("FunctionParent",t,e)}function Joe(t,e){A("Pureish",t,e)}function Qoe(t,e){A("Declaration",t,e)}function Zoe(t,e){A("PatternLike",t,e)}function ele(t,e){A("LVal",t,e)}function tle(t,e){A("TSEntityName",t,e)}function rle(t,e){A("Literal",t,e)}function ile(t,e){A("Immutable",t,e)}function sle(t,e){A("UserWhitespacable",t,e)}function nle(t,e){A("Method",t,e)}function ale(t,e){A("ObjectMember",t,e)}function ole(t,e){A("Property",t,e)}function lle(t,e){A("UnaryLike",t,e)}function ule(t,e){A("Pattern",t,e)}function cle(t,e){A("Class",t,e)}function fle(t,e){A("ImportOrExportDeclaration",t,e)}function ple(t,e){A("ExportDeclaration",t,e)}function hle(t,e){A("ModuleSpecifier",t,e)}function dle(t,e){A("Accessor",t,e)}function mle(t,e){A("Private",t,e)}function yle(t,e){A("Flow",t,e)}function gle(t,e){A("FlowType",t,e)}function Sle(t,e){A("FlowBaseAnnotation",t,e)}function Tle(t,e){A("FlowDeclaration",t,e)}function Ele(t,e){A("FlowPredicate",t,e)}function ble(t,e){A("EnumBody",t,e)}function xle(t,e){A("EnumMember",t,e)}function Ple(t,e){A("JSX",t,e)}function vle(t,e){A("Miscellaneous",t,e)}function Ale(t,e){A("TypeScript",t,e)}function wle(t,e){A("TSTypeElement",t,e)}function _le(t,e){A("TSType",t,e)}function Cle(t,e){A("TSBaseType",t,e)}function Ile(t,e){(0,Vl.default)("assertNumberLiteral","assertNumericLiteral"),A("NumberLiteral",t,e)}function Ole(t,e){(0,Vl.default)("assertRegexLiteral","assertRegExpLiteral"),A("RegexLiteral",t,e)}function Nle(t,e){(0,Vl.default)("assertRestProperty","assertRestElement"),A("RestProperty",t,e)}function Dle(t,e){(0,Vl.default)("assertSpreadProperty","assertSpreadElement"),A("SpreadProperty",t,e)}function Lle(t,e){(0,Vl.default)("assertModuleDeclaration","assertImportOrExportDeclaration"),A("ModuleDeclaration",t,e)}});var NL=g(vp=>{"use strict";c();Object.defineProperty(vp,"__esModule",{value:!0});vp.default=void 0;var ei=dr(),kle=Rle;vp.default=kle;function Rle(t){switch(t){case"string":return(0,ei.stringTypeAnnotation)();case"number":return(0,ei.numberTypeAnnotation)();case"undefined":return(0,ei.voidTypeAnnotation)();case"boolean":return(0,ei.booleanTypeAnnotation)();case"function":return(0,ei.genericTypeAnnotation)((0,ei.identifier)("Function"));case"object":return(0,ei.genericTypeAnnotation)((0,ei.identifier)("Object"));case"symbol":return(0,ei.genericTypeAnnotation)((0,ei.identifier)("Symbol"));case"bigint":return(0,ei.anyTypeAnnotation)()}throw new Error("Invalid typeof value: "+t)}});var q0=g(j0=>{"use strict";c();Object.defineProperty(j0,"__esModule",{value:!0});j0.default=LL;var Kl=mt();function DL(t){return(0,Kl.isIdentifier)(t)?t.name:`${t.id.name}.${DL(t.qualification)}`}function LL(t){let e=Array.from(t),r=new Map,i=new Map,s=new Set,n=[];for(let a=0;a<e.length;a++){let o=e[a];if(o&&!(n.indexOf(o)>=0)){if((0,Kl.isAnyTypeAnnotation)(o))return[o];if((0,Kl.isFlowBaseAnnotation)(o)){i.set(o.type,o);continue}if((0,Kl.isUnionTypeAnnotation)(o)){s.has(o.types)||(e.push(...o.types),s.add(o.types));continue}if((0,Kl.isGenericTypeAnnotation)(o)){let l=DL(o.id);if(r.has(l)){let u=r.get(l);u.typeParameters?o.typeParameters&&(u.typeParameters.params.push(...o.typeParameters.params),u.typeParameters.params=LL(u.typeParameters.params)):u=o.typeParameters}else r.set(l,o);continue}n.push(o)}}for(let[,a]of i)n.push(a);for(let[,a]of r)n.push(a);return n}});var kL=g(U0=>{"use strict";c();Object.defineProperty(U0,"__esModule",{value:!0});U0.default=Ble;var Mle=dr(),Fle=q0();function Ble(t){let e=(0,Fle.default)(t);return e.length===1?e[0]:(0,Mle.unionTypeAnnotation)(e)}});var FL=g($0=>{"use strict";c();Object.defineProperty($0,"__esModule",{value:!0});$0.default=ML;var Hl=mt();function RL(t){return(0,Hl.isIdentifier)(t)?t.name:`${t.right.name}.${RL(t.left)}`}function ML(t){let e=Array.from(t),r=new Map,i=new Map,s=new Set,n=[];for(let a=0;a<e.length;a++){let o=e[a];if(o&&!(n.indexOf(o)>=0)){if((0,Hl.isTSAnyKeyword)(o))return[o];if((0,Hl.isTSBaseType)(o)){i.set(o.type,o);continue}if((0,Hl.isTSUnionType)(o)){s.has(o.types)||(e.push(...o.types),s.add(o.types));continue}if((0,Hl.isTSTypeReference)(o)&&o.typeParameters){let l=RL(o.typeName);if(r.has(l)){let u=r.get(l);u.typeParameters?o.typeParameters&&(u.typeParameters.params.push(...o.typeParameters.params),u.typeParameters.params=ML(u.typeParameters.params)):u=o.typeParameters}else r.set(l,o);continue}n.push(o)}}for(let[,a]of i)n.push(a);for(let[,a]of r)n.push(a);return n}});var BL=g(V0=>{"use strict";c();Object.defineProperty(V0,"__esModule",{value:!0});V0.default=$le;var jle=dr(),qle=FL(),Ule=mt();function $le(t){let e=t.map(i=>(0,Ule.isTSTypeAnnotation)(i)?i.typeAnnotation:i),r=(0,qle.default)(e);return r.length===1?r[0]:(0,jle.tsUnionType)(r)}});var jL=g(C=>{"use strict";c();Object.defineProperty(C,"__esModule",{value:!0});Object.defineProperty(C,"AnyTypeAnnotation",{enumerable:!0,get:function(){return I.anyTypeAnnotation}});Object.defineProperty(C,"ArgumentPlaceholder",{enumerable:!0,get:function(){return I.argumentPlaceholder}});Object.defineProperty(C,"ArrayExpression",{enumerable:!0,get:function(){return I.arrayExpression}});Object.defineProperty(C,"ArrayPattern",{enumerable:!0,get:function(){return I.arrayPattern}});Object.defineProperty(C,"ArrayTypeAnnotation",{enumerable:!0,get:function(){return I.arrayTypeAnnotation}});Object.defineProperty(C,"ArrowFunctionExpression",{enumerable:!0,get:function(){return I.arrowFunctionExpression}});Object.defineProperty(C,"AssignmentExpression",{enumerable:!0,get:function(){return I.assignmentExpression}});Object.defineProperty(C,"AssignmentPattern",{enumerable:!0,get:function(){return I.assignmentPattern}});Object.defineProperty(C,"AwaitExpression",{enumerable:!0,get:function(){return I.awaitExpression}});Object.defineProperty(C,"BigIntLiteral",{enumerable:!0,get:function(){return I.bigIntLiteral}});Object.defineProperty(C,"BinaryExpression",{enumerable:!0,get:function(){return I.binaryExpression}});Object.defineProperty(C,"BindExpression",{enumerable:!0,get:function(){return I.bindExpression}});Object.defineProperty(C,"BlockStatement",{enumerable:!0,get:function(){return I.blockStatement}});Object.defineProperty(C,"BooleanLiteral",{enumerable:!0,get:function(){return I.booleanLiteral}});Object.defineProperty(C,"BooleanLiteralTypeAnnotation",{enumerable:!0,get:function(){return I.booleanLiteralTypeAnnotation}});Object.defineProperty(C,"BooleanTypeAnnotation",{enumerable:!0,get:function(){return I.booleanTypeAnnotation}});Object.defineProperty(C,"BreakStatement",{enumerable:!0,get:function(){return I.breakStatement}});Object.defineProperty(C,"CallExpression",{enumerable:!0,get:function(){return I.callExpression}});Object.defineProperty(C,"CatchClause",{enumerable:!0,get:function(){return I.catchClause}});Object.defineProperty(C,"ClassAccessorProperty",{enumerable:!0,get:function(){return I.classAccessorProperty}});Object.defineProperty(C,"ClassBody",{enumerable:!0,get:function(){return I.classBody}});Object.defineProperty(C,"ClassDeclaration",{enumerable:!0,get:function(){return I.classDeclaration}});Object.defineProperty(C,"ClassExpression",{enumerable:!0,get:function(){return I.classExpression}});Object.defineProperty(C,"ClassImplements",{enumerable:!0,get:function(){return I.classImplements}});Object.defineProperty(C,"ClassMethod",{enumerable:!0,get:function(){return I.classMethod}});Object.defineProperty(C,"ClassPrivateMethod",{enumerable:!0,get:function(){return I.classPrivateMethod}});Object.defineProperty(C,"ClassPrivateProperty",{enumerable:!0,get:function(){return I.classPrivateProperty}});Object.defineProperty(C,"ClassProperty",{enumerable:!0,get:function(){return I.classProperty}});Object.defineProperty(C,"ConditionalExpression",{enumerable:!0,get:function(){return I.conditionalExpression}});Object.defineProperty(C,"ContinueStatement",{enumerable:!0,get:function(){return I.continueStatement}});Object.defineProperty(C,"DebuggerStatement",{enumerable:!0,get:function(){return I.debuggerStatement}});Object.defineProperty(C,"DecimalLiteral",{enumerable:!0,get:function(){return I.decimalLiteral}});Object.defineProperty(C,"DeclareClass",{enumerable:!0,get:function(){return I.declareClass}});Object.defineProperty(C,"DeclareExportAllDeclaration",{enumerable:!0,get:function(){return I.declareExportAllDeclaration}});Object.defineProperty(C,"DeclareExportDeclaration",{enumerable:!0,get:function(){return I.declareExportDeclaration}});Object.defineProperty(C,"DeclareFunction",{enumerable:!0,get:function(){return I.declareFunction}});Object.defineProperty(C,"DeclareInterface",{enumerable:!0,get:function(){return I.declareInterface}});Object.defineProperty(C,"DeclareModule",{enumerable:!0,get:function(){return I.declareModule}});Object.defineProperty(C,"DeclareModuleExports",{enumerable:!0,get:function(){return I.declareModuleExports}});Object.defineProperty(C,"DeclareOpaqueType",{enumerable:!0,get:function(){return I.declareOpaqueType}});Object.defineProperty(C,"DeclareTypeAlias",{enumerable:!0,get:function(){return I.declareTypeAlias}});Object.defineProperty(C,"DeclareVariable",{enumerable:!0,get:function(){return I.declareVariable}});Object.defineProperty(C,"DeclaredPredicate",{enumerable:!0,get:function(){return I.declaredPredicate}});Object.defineProperty(C,"Decorator",{enumerable:!0,get:function(){return I.decorator}});Object.defineProperty(C,"Directive",{enumerable:!0,get:function(){return I.directive}});Object.defineProperty(C,"DirectiveLiteral",{enumerable:!0,get:function(){return I.directiveLiteral}});Object.defineProperty(C,"DoExpression",{enumerable:!0,get:function(){return I.doExpression}});Object.defineProperty(C,"DoWhileStatement",{enumerable:!0,get:function(){return I.doWhileStatement}});Object.defineProperty(C,"EmptyStatement",{enumerable:!0,get:function(){return I.emptyStatement}});Object.defineProperty(C,"EmptyTypeAnnotation",{enumerable:!0,get:function(){return I.emptyTypeAnnotation}});Object.defineProperty(C,"EnumBooleanBody",{enumerable:!0,get:function(){return I.enumBooleanBody}});Object.defineProperty(C,"EnumBooleanMember",{enumerable:!0,get:function(){return I.enumBooleanMember}});Object.defineProperty(C,"EnumDeclaration",{enumerable:!0,get:function(){return I.enumDeclaration}});Object.defineProperty(C,"EnumDefaultedMember",{enumerable:!0,get:function(){return I.enumDefaultedMember}});Object.defineProperty(C,"EnumNumberBody",{enumerable:!0,get:function(){return I.enumNumberBody}});Object.defineProperty(C,"EnumNumberMember",{enumerable:!0,get:function(){return I.enumNumberMember}});Object.defineProperty(C,"EnumStringBody",{enumerable:!0,get:function(){return I.enumStringBody}});Object.defineProperty(C,"EnumStringMember",{enumerable:!0,get:function(){return I.enumStringMember}});Object.defineProperty(C,"EnumSymbolBody",{enumerable:!0,get:function(){return I.enumSymbolBody}});Object.defineProperty(C,"ExistsTypeAnnotation",{enumerable:!0,get:function(){return I.existsTypeAnnotation}});Object.defineProperty(C,"ExportAllDeclaration",{enumerable:!0,get:function(){return I.exportAllDeclaration}});Object.defineProperty(C,"ExportDefaultDeclaration",{enumerable:!0,get:function(){return I.exportDefaultDeclaration}});Object.defineProperty(C,"ExportDefaultSpecifier",{enumerable:!0,get:function(){return I.exportDefaultSpecifier}});Object.defineProperty(C,"ExportNamedDeclaration",{enumerable:!0,get:function(){return I.exportNamedDeclaration}});Object.defineProperty(C,"ExportNamespaceSpecifier",{enumerable:!0,get:function(){return I.exportNamespaceSpecifier}});Object.defineProperty(C,"ExportSpecifier",{enumerable:!0,get:function(){return I.exportSpecifier}});Object.defineProperty(C,"ExpressionStatement",{enumerable:!0,get:function(){return I.expressionStatement}});Object.defineProperty(C,"File",{enumerable:!0,get:function(){return I.file}});Object.defineProperty(C,"ForInStatement",{enumerable:!0,get:function(){return I.forInStatement}});Object.defineProperty(C,"ForOfStatement",{enumerable:!0,get:function(){return I.forOfStatement}});Object.defineProperty(C,"ForStatement",{enumerable:!0,get:function(){return I.forStatement}});Object.defineProperty(C,"FunctionDeclaration",{enumerable:!0,get:function(){return I.functionDeclaration}});Object.defineProperty(C,"FunctionExpression",{enumerable:!0,get:function(){return I.functionExpression}});Object.defineProperty(C,"FunctionTypeAnnotation",{enumerable:!0,get:function(){return I.functionTypeAnnotation}});Object.defineProperty(C,"FunctionTypeParam",{enumerable:!0,get:function(){return I.functionTypeParam}});Object.defineProperty(C,"GenericTypeAnnotation",{enumerable:!0,get:function(){return I.genericTypeAnnotation}});Object.defineProperty(C,"Identifier",{enumerable:!0,get:function(){return I.identifier}});Object.defineProperty(C,"IfStatement",{enumerable:!0,get:function(){return I.ifStatement}});Object.defineProperty(C,"Import",{enumerable:!0,get:function(){return I.import}});Object.defineProperty(C,"ImportAttribute",{enumerable:!0,get:function(){return I.importAttribute}});Object.defineProperty(C,"ImportDeclaration",{enumerable:!0,get:function(){return I.importDeclaration}});Object.defineProperty(C,"ImportDefaultSpecifier",{enumerable:!0,get:function(){return I.importDefaultSpecifier}});Object.defineProperty(C,"ImportNamespaceSpecifier",{enumerable:!0,get:function(){return I.importNamespaceSpecifier}});Object.defineProperty(C,"ImportSpecifier",{enumerable:!0,get:function(){return I.importSpecifier}});Object.defineProperty(C,"IndexedAccessType",{enumerable:!0,get:function(){return I.indexedAccessType}});Object.defineProperty(C,"InferredPredicate",{enumerable:!0,get:function(){return I.inferredPredicate}});Object.defineProperty(C,"InterfaceDeclaration",{enumerable:!0,get:function(){return I.interfaceDeclaration}});Object.defineProperty(C,"InterfaceExtends",{enumerable:!0,get:function(){return I.interfaceExtends}});Object.defineProperty(C,"InterfaceTypeAnnotation",{enumerable:!0,get:function(){return I.interfaceTypeAnnotation}});Object.defineProperty(C,"InterpreterDirective",{enumerable:!0,get:function(){return I.interpreterDirective}});Object.defineProperty(C,"IntersectionTypeAnnotation",{enumerable:!0,get:function(){return I.intersectionTypeAnnotation}});Object.defineProperty(C,"JSXAttribute",{enumerable:!0,get:function(){return I.jsxAttribute}});Object.defineProperty(C,"JSXClosingElement",{enumerable:!0,get:function(){return I.jsxClosingElement}});Object.defineProperty(C,"JSXClosingFragment",{enumerable:!0,get:function(){return I.jsxClosingFragment}});Object.defineProperty(C,"JSXElement",{enumerable:!0,get:function(){return I.jsxElement}});Object.defineProperty(C,"JSXEmptyExpression",{enumerable:!0,get:function(){return I.jsxEmptyExpression}});Object.defineProperty(C,"JSXExpressionContainer",{enumerable:!0,get:function(){return I.jsxExpressionContainer}});Object.defineProperty(C,"JSXFragment",{enumerable:!0,get:function(){return I.jsxFragment}});Object.defineProperty(C,"JSXIdentifier",{enumerable:!0,get:function(){return I.jsxIdentifier}});Object.defineProperty(C,"JSXMemberExpression",{enumerable:!0,get:function(){return I.jsxMemberExpression}});Object.defineProperty(C,"JSXNamespacedName",{enumerable:!0,get:function(){return I.jsxNamespacedName}});Object.defineProperty(C,"JSXOpeningElement",{enumerable:!0,get:function(){return I.jsxOpeningElement}});Object.defineProperty(C,"JSXOpeningFragment",{enumerable:!0,get:function(){return I.jsxOpeningFragment}});Object.defineProperty(C,"JSXSpreadAttribute",{enumerable:!0,get:function(){return I.jsxSpreadAttribute}});Object.defineProperty(C,"JSXSpreadChild",{enumerable:!0,get:function(){return I.jsxSpreadChild}});Object.defineProperty(C,"JSXText",{enumerable:!0,get:function(){return I.jsxText}});Object.defineProperty(C,"LabeledStatement",{enumerable:!0,get:function(){return I.labeledStatement}});Object.defineProperty(C,"LogicalExpression",{enumerable:!0,get:function(){return I.logicalExpression}});Object.defineProperty(C,"MemberExpression",{enumerable:!0,get:function(){return I.memberExpression}});Object.defineProperty(C,"MetaProperty",{enumerable:!0,get:function(){return I.metaProperty}});Object.defineProperty(C,"MixedTypeAnnotation",{enumerable:!0,get:function(){return I.mixedTypeAnnotation}});Object.defineProperty(C,"ModuleExpression",{enumerable:!0,get:function(){return I.moduleExpression}});Object.defineProperty(C,"NewExpression",{enumerable:!0,get:function(){return I.newExpression}});Object.defineProperty(C,"Noop",{enumerable:!0,get:function(){return I.noop}});Object.defineProperty(C,"NullLiteral",{enumerable:!0,get:function(){return I.nullLiteral}});Object.defineProperty(C,"NullLiteralTypeAnnotation",{enumerable:!0,get:function(){return I.nullLiteralTypeAnnotation}});Object.defineProperty(C,"NullableTypeAnnotation",{enumerable:!0,get:function(){return I.nullableTypeAnnotation}});Object.defineProperty(C,"NumberLiteral",{enumerable:!0,get:function(){return I.numberLiteral}});Object.defineProperty(C,"NumberLiteralTypeAnnotation",{enumerable:!0,get:function(){return I.numberLiteralTypeAnnotation}});Object.defineProperty(C,"NumberTypeAnnotation",{enumerable:!0,get:function(){return I.numberTypeAnnotation}});Object.defineProperty(C,"NumericLiteral",{enumerable:!0,get:function(){return I.numericLiteral}});Object.defineProperty(C,"ObjectExpression",{enumerable:!0,get:function(){return I.objectExpression}});Object.defineProperty(C,"ObjectMethod",{enumerable:!0,get:function(){return I.objectMethod}});Object.defineProperty(C,"ObjectPattern",{enumerable:!0,get:function(){return I.objectPattern}});Object.defineProperty(C,"ObjectProperty",{enumerable:!0,get:function(){return I.objectProperty}});Object.defineProperty(C,"ObjectTypeAnnotation",{enumerable:!0,get:function(){return I.objectTypeAnnotation}});Object.defineProperty(C,"ObjectTypeCallProperty",{enumerable:!0,get:function(){return I.objectTypeCallProperty}});Object.defineProperty(C,"ObjectTypeIndexer",{enumerable:!0,get:function(){return I.objectTypeIndexer}});Object.defineProperty(C,"ObjectTypeInternalSlot",{enumerable:!0,get:function(){return I.objectTypeInternalSlot}});Object.defineProperty(C,"ObjectTypeProperty",{enumerable:!0,get:function(){return I.objectTypeProperty}});Object.defineProperty(C,"ObjectTypeSpreadProperty",{enumerable:!0,get:function(){return I.objectTypeSpreadProperty}});Object.defineProperty(C,"OpaqueType",{enumerable:!0,get:function(){return I.opaqueType}});Object.defineProperty(C,"OptionalCallExpression",{enumerable:!0,get:function(){return I.optionalCallExpression}});Object.defineProperty(C,"OptionalIndexedAccessType",{enumerable:!0,get:function(){return I.optionalIndexedAccessType}});Object.defineProperty(C,"OptionalMemberExpression",{enumerable:!0,get:function(){return I.optionalMemberExpression}});Object.defineProperty(C,"ParenthesizedExpression",{enumerable:!0,get:function(){return I.parenthesizedExpression}});Object.defineProperty(C,"PipelineBareFunction",{enumerable:!0,get:function(){return I.pipelineBareFunction}});Object.defineProperty(C,"PipelinePrimaryTopicReference",{enumerable:!0,get:function(){return I.pipelinePrimaryTopicReference}});Object.defineProperty(C,"PipelineTopicExpression",{enumerable:!0,get:function(){return I.pipelineTopicExpression}});Object.defineProperty(C,"Placeholder",{enumerable:!0,get:function(){return I.placeholder}});Object.defineProperty(C,"PrivateName",{enumerable:!0,get:function(){return I.privateName}});Object.defineProperty(C,"Program",{enumerable:!0,get:function(){return I.program}});Object.defineProperty(C,"QualifiedTypeIdentifier",{enumerable:!0,get:function(){return I.qualifiedTypeIdentifier}});Object.defineProperty(C,"RecordExpression",{enumerable:!0,get:function(){return I.recordExpression}});Object.defineProperty(C,"RegExpLiteral",{enumerable:!0,get:function(){return I.regExpLiteral}});Object.defineProperty(C,"RegexLiteral",{enumerable:!0,get:function(){return I.regexLiteral}});Object.defineProperty(C,"RestElement",{enumerable:!0,get:function(){return I.restElement}});Object.defineProperty(C,"RestProperty",{enumerable:!0,get:function(){return I.restProperty}});Object.defineProperty(C,"ReturnStatement",{enumerable:!0,get:function(){return I.returnStatement}});Object.defineProperty(C,"SequenceExpression",{enumerable:!0,get:function(){return I.sequenceExpression}});Object.defineProperty(C,"SpreadElement",{enumerable:!0,get:function(){return I.spreadElement}});Object.defineProperty(C,"SpreadProperty",{enumerable:!0,get:function(){return I.spreadProperty}});Object.defineProperty(C,"StaticBlock",{enumerable:!0,get:function(){return I.staticBlock}});Object.defineProperty(C,"StringLiteral",{enumerable:!0,get:function(){return I.stringLiteral}});Object.defineProperty(C,"StringLiteralTypeAnnotation",{enumerable:!0,get:function(){return I.stringLiteralTypeAnnotation}});Object.defineProperty(C,"StringTypeAnnotation",{enumerable:!0,get:function(){return I.stringTypeAnnotation}});Object.defineProperty(C,"Super",{enumerable:!0,get:function(){return I.super}});Object.defineProperty(C,"SwitchCase",{enumerable:!0,get:function(){return I.switchCase}});Object.defineProperty(C,"SwitchStatement",{enumerable:!0,get:function(){return I.switchStatement}});Object.defineProperty(C,"SymbolTypeAnnotation",{enumerable:!0,get:function(){return I.symbolTypeAnnotation}});Object.defineProperty(C,"TSAnyKeyword",{enumerable:!0,get:function(){return I.tsAnyKeyword}});Object.defineProperty(C,"TSArrayType",{enumerable:!0,get:function(){return I.tsArrayType}});Object.defineProperty(C,"TSAsExpression",{enumerable:!0,get:function(){return I.tsAsExpression}});Object.defineProperty(C,"TSBigIntKeyword",{enumerable:!0,get:function(){return I.tsBigIntKeyword}});Object.defineProperty(C,"TSBooleanKeyword",{enumerable:!0,get:function(){return I.tsBooleanKeyword}});Object.defineProperty(C,"TSCallSignatureDeclaration",{enumerable:!0,get:function(){return I.tsCallSignatureDeclaration}});Object.defineProperty(C,"TSConditionalType",{enumerable:!0,get:function(){return I.tsConditionalType}});Object.defineProperty(C,"TSConstructSignatureDeclaration",{enumerable:!0,get:function(){return I.tsConstructSignatureDeclaration}});Object.defineProperty(C,"TSConstructorType",{enumerable:!0,get:function(){return I.tsConstructorType}});Object.defineProperty(C,"TSDeclareFunction",{enumerable:!0,get:function(){return I.tsDeclareFunction}});Object.defineProperty(C,"TSDeclareMethod",{enumerable:!0,get:function(){return I.tsDeclareMethod}});Object.defineProperty(C,"TSEnumDeclaration",{enumerable:!0,get:function(){return I.tsEnumDeclaration}});Object.defineProperty(C,"TSEnumMember",{enumerable:!0,get:function(){return I.tsEnumMember}});Object.defineProperty(C,"TSExportAssignment",{enumerable:!0,get:function(){return I.tsExportAssignment}});Object.defineProperty(C,"TSExpressionWithTypeArguments",{enumerable:!0,get:function(){return I.tsExpressionWithTypeArguments}});Object.defineProperty(C,"TSExternalModuleReference",{enumerable:!0,get:function(){return I.tsExternalModuleReference}});Object.defineProperty(C,"TSFunctionType",{enumerable:!0,get:function(){return I.tsFunctionType}});Object.defineProperty(C,"TSImportEqualsDeclaration",{enumerable:!0,get:function(){return I.tsImportEqualsDeclaration}});Object.defineProperty(C,"TSImportType",{enumerable:!0,get:function(){return I.tsImportType}});Object.defineProperty(C,"TSIndexSignature",{enumerable:!0,get:function(){return I.tsIndexSignature}});Object.defineProperty(C,"TSIndexedAccessType",{enumerable:!0,get:function(){return I.tsIndexedAccessType}});Object.defineProperty(C,"TSInferType",{enumerable:!0,get:function(){return I.tsInferType}});Object.defineProperty(C,"TSInstantiationExpression",{enumerable:!0,get:function(){return I.tsInstantiationExpression}});Object.defineProperty(C,"TSInterfaceBody",{enumerable:!0,get:function(){return I.tsInterfaceBody}});Object.defineProperty(C,"TSInterfaceDeclaration",{enumerable:!0,get:function(){return I.tsInterfaceDeclaration}});Object.defineProperty(C,"TSIntersectionType",{enumerable:!0,get:function(){return I.tsIntersectionType}});Object.defineProperty(C,"TSIntrinsicKeyword",{enumerable:!0,get:function(){return I.tsIntrinsicKeyword}});Object.defineProperty(C,"TSLiteralType",{enumerable:!0,get:function(){return I.tsLiteralType}});Object.defineProperty(C,"TSMappedType",{enumerable:!0,get:function(){return I.tsMappedType}});Object.defineProperty(C,"TSMethodSignature",{enumerable:!0,get:function(){return I.tsMethodSignature}});Object.defineProperty(C,"TSModuleBlock",{enumerable:!0,get:function(){return I.tsModuleBlock}});Object.defineProperty(C,"TSModuleDeclaration",{enumerable:!0,get:function(){return I.tsModuleDeclaration}});Object.defineProperty(C,"TSNamedTupleMember",{enumerable:!0,get:function(){return I.tsNamedTupleMember}});Object.defineProperty(C,"TSNamespaceExportDeclaration",{enumerable:!0,get:function(){return I.tsNamespaceExportDeclaration}});Object.defineProperty(C,"TSNeverKeyword",{enumerable:!0,get:function(){return I.tsNeverKeyword}});Object.defineProperty(C,"TSNonNullExpression",{enumerable:!0,get:function(){return I.tsNonNullExpression}});Object.defineProperty(C,"TSNullKeyword",{enumerable:!0,get:function(){return I.tsNullKeyword}});Object.defineProperty(C,"TSNumberKeyword",{enumerable:!0,get:function(){return I.tsNumberKeyword}});Object.defineProperty(C,"TSObjectKeyword",{enumerable:!0,get:function(){return I.tsObjectKeyword}});Object.defineProperty(C,"TSOptionalType",{enumerable:!0,get:function(){return I.tsOptionalType}});Object.defineProperty(C,"TSParameterProperty",{enumerable:!0,get:function(){return I.tsParameterProperty}});Object.defineProperty(C,"TSParenthesizedType",{enumerable:!0,get:function(){return I.tsParenthesizedType}});Object.defineProperty(C,"TSPropertySignature",{enumerable:!0,get:function(){return I.tsPropertySignature}});Object.defineProperty(C,"TSQualifiedName",{enumerable:!0,get:function(){return I.tsQualifiedName}});Object.defineProperty(C,"TSRestType",{enumerable:!0,get:function(){return I.tsRestType}});Object.defineProperty(C,"TSSatisfiesExpression",{enumerable:!0,get:function(){return I.tsSatisfiesExpression}});Object.defineProperty(C,"TSStringKeyword",{enumerable:!0,get:function(){return I.tsStringKeyword}});Object.defineProperty(C,"TSSymbolKeyword",{enumerable:!0,get:function(){return I.tsSymbolKeyword}});Object.defineProperty(C,"TSThisType",{enumerable:!0,get:function(){return I.tsThisType}});Object.defineProperty(C,"TSTupleType",{enumerable:!0,get:function(){return I.tsTupleType}});Object.defineProperty(C,"TSTypeAliasDeclaration",{enumerable:!0,get:function(){return I.tsTypeAliasDeclaration}});Object.defineProperty(C,"TSTypeAnnotation",{enumerable:!0,get:function(){return I.tsTypeAnnotation}});Object.defineProperty(C,"TSTypeAssertion",{enumerable:!0,get:function(){return I.tsTypeAssertion}});Object.defineProperty(C,"TSTypeLiteral",{enumerable:!0,get:function(){return I.tsTypeLiteral}});Object.defineProperty(C,"TSTypeOperator",{enumerable:!0,get:function(){return I.tsTypeOperator}});Object.defineProperty(C,"TSTypeParameter",{enumerable:!0,get:function(){return I.tsTypeParameter}});Object.defineProperty(C,"TSTypeParameterDeclaration",{enumerable:!0,get:function(){return I.tsTypeParameterDeclaration}});Object.defineProperty(C,"TSTypeParameterInstantiation",{enumerable:!0,get:function(){return I.tsTypeParameterInstantiation}});Object.defineProperty(C,"TSTypePredicate",{enumerable:!0,get:function(){return I.tsTypePredicate}});Object.defineProperty(C,"TSTypeQuery",{enumerable:!0,get:function(){return I.tsTypeQuery}});Object.defineProperty(C,"TSTypeReference",{enumerable:!0,get:function(){return I.tsTypeReference}});Object.defineProperty(C,"TSUndefinedKeyword",{enumerable:!0,get:function(){return I.tsUndefinedKeyword}});Object.defineProperty(C,"TSUnionType",{enumerable:!0,get:function(){return I.tsUnionType}});Object.defineProperty(C,"TSUnknownKeyword",{enumerable:!0,get:function(){return I.tsUnknownKeyword}});Object.defineProperty(C,"TSVoidKeyword",{enumerable:!0,get:function(){return I.tsVoidKeyword}});Object.defineProperty(C,"TaggedTemplateExpression",{enumerable:!0,get:function(){return I.taggedTemplateExpression}});Object.defineProperty(C,"TemplateElement",{enumerable:!0,get:function(){return I.templateElement}});Object.defineProperty(C,"TemplateLiteral",{enumerable:!0,get:function(){return I.templateLiteral}});Object.defineProperty(C,"ThisExpression",{enumerable:!0,get:function(){return I.thisExpression}});Object.defineProperty(C,"ThisTypeAnnotation",{enumerable:!0,get:function(){return I.thisTypeAnnotation}});Object.defineProperty(C,"ThrowStatement",{enumerable:!0,get:function(){return I.throwStatement}});Object.defineProperty(C,"TopicReference",{enumerable:!0,get:function(){return I.topicReference}});Object.defineProperty(C,"TryStatement",{enumerable:!0,get:function(){return I.tryStatement}});Object.defineProperty(C,"TupleExpression",{enumerable:!0,get:function(){return I.tupleExpression}});Object.defineProperty(C,"TupleTypeAnnotation",{enumerable:!0,get:function(){return I.tupleTypeAnnotation}});Object.defineProperty(C,"TypeAlias",{enumerable:!0,get:function(){return I.typeAlias}});Object.defineProperty(C,"TypeAnnotation",{enumerable:!0,get:function(){return I.typeAnnotation}});Object.defineProperty(C,"TypeCastExpression",{enumerable:!0,get:function(){return I.typeCastExpression}});Object.defineProperty(C,"TypeParameter",{enumerable:!0,get:function(){return I.typeParameter}});Object.defineProperty(C,"TypeParameterDeclaration",{enumerable:!0,get:function(){return I.typeParameterDeclaration}});Object.defineProperty(C,"TypeParameterInstantiation",{enumerable:!0,get:function(){return I.typeParameterInstantiation}});Object.defineProperty(C,"TypeofTypeAnnotation",{enumerable:!0,get:function(){return I.typeofTypeAnnotation}});Object.defineProperty(C,"UnaryExpression",{enumerable:!0,get:function(){return I.unaryExpression}});Object.defineProperty(C,"UnionTypeAnnotation",{enumerable:!0,get:function(){return I.unionTypeAnnotation}});Object.defineProperty(C,"UpdateExpression",{enumerable:!0,get:function(){return I.updateExpression}});Object.defineProperty(C,"V8IntrinsicIdentifier",{enumerable:!0,get:function(){return I.v8IntrinsicIdentifier}});Object.defineProperty(C,"VariableDeclaration",{enumerable:!0,get:function(){return I.variableDeclaration}});Object.defineProperty(C,"VariableDeclarator",{enumerable:!0,get:function(){return I.variableDeclarator}});Object.defineProperty(C,"Variance",{enumerable:!0,get:function(){return I.variance}});Object.defineProperty(C,"VoidTypeAnnotation",{enumerable:!0,get:function(){return I.voidTypeAnnotation}});Object.defineProperty(C,"WhileStatement",{enumerable:!0,get:function(){return I.whileStatement}});Object.defineProperty(C,"WithStatement",{enumerable:!0,get:function(){return I.withStatement}});Object.defineProperty(C,"YieldExpression",{enumerable:!0,get:function(){return I.yieldExpression}});var I=dr()});var $s=g(K0=>{"use strict";c();Object.defineProperty(K0,"__esModule",{value:!0});K0.default=Vle;var qL=Ur(),UL=mt(),Gi=Function.call.bind(Object.prototype.hasOwnProperty);function $L(t,e,r,i){return t&&typeof t.type=="string"?KL(t,e,r,i):t}function VL(t,e,r,i){return Array.isArray(t)?t.map(s=>$L(s,e,r,i)):$L(t,e,r,i)}function Vle(t,e=!0,r=!1){return KL(t,e,r,new Map)}function KL(t,e=!0,r=!1,i){if(!t)return t;let{type:s}=t,n={type:t.type};if((0,UL.isIdentifier)(t))n.name=t.name,Gi(t,"optional")&&typeof t.optional=="boolean"&&(n.optional=t.optional),Gi(t,"typeAnnotation")&&(n.typeAnnotation=e?VL(t.typeAnnotation,!0,r,i):t.typeAnnotation);else if(Gi(qL.NODE_FIELDS,s))for(let a of Object.keys(qL.NODE_FIELDS[s]))Gi(t,a)&&(e?n[a]=(0,UL.isFile)(t)&&a==="comments"?Ap(t.comments,e,r,i):VL(t[a],!0,r,i):n[a]=t[a]);else throw new Error(`Unknown node type: "${s}"`);return Gi(t,"loc")&&(r?n.loc=null:n.loc=t.loc),Gi(t,"leadingComments")&&(n.leadingComments=Ap(t.leadingComments,e,r,i)),Gi(t,"innerComments")&&(n.innerComments=Ap(t.innerComments,e,r,i)),Gi(t,"trailingComments")&&(n.trailingComments=Ap(t.trailingComments,e,r,i)),Gi(t,"extra")&&(n.extra=Object.assign({},t.extra)),n}function Ap(t,e,r,i){return!t||!e?t:t.map(s=>{let n=i.get(s);if(n)return n;let{type:a,value:o,loc:l}=s,u={type:a,value:o,loc:l};return r&&(u.loc=null),i.set(s,u),u})}});var HL=g(H0=>{"use strict";c();Object.defineProperty(H0,"__esModule",{value:!0});H0.default=Hle;var Kle=$s();function Hle(t){return(0,Kle.default)(t,!1)}});var WL=g(W0=>{"use strict";c();Object.defineProperty(W0,"__esModule",{value:!0});W0.default=Gle;var Wle=$s();function Gle(t){return(0,Wle.default)(t)}});var GL=g(G0=>{"use strict";c();Object.defineProperty(G0,"__esModule",{value:!0});G0.default=Xle;var Yle=$s();function Xle(t){return(0,Yle.default)(t,!0,!0)}});var YL=g(Y0=>{"use strict";c();Object.defineProperty(Y0,"__esModule",{value:!0});Y0.default=Jle;var zle=$s();function Jle(t){return(0,zle.default)(t,!1,!0)}});var z0=g(X0=>{"use strict";c();Object.defineProperty(X0,"__esModule",{value:!0});X0.default=Qle;function Qle(t,e,r){if(!r||!t)return t;let i=`${e}Comments`;return t[i]?e==="leading"?t[i]=r.concat(t[i]):t[i].push(...r):t[i]=r,t}});var XL=g(J0=>{"use strict";c();Object.defineProperty(J0,"__esModule",{value:!0});J0.default=eue;var Zle=z0();function eue(t,e,r,i){return(0,Zle.default)(t,e,[{type:i?"CommentLine":"CommentBlock",value:r}])}});var wp=g(Q0=>{"use strict";c();Object.defineProperty(Q0,"__esModule",{value:!0});Q0.default=tue;function tue(t,e,r){e&&r&&(e[t]=Array.from(new Set([].concat(e[t],r[t]).filter(Boolean))))}});var eT=g(Z0=>{"use strict";c();Object.defineProperty(Z0,"__esModule",{value:!0});Z0.default=iue;var rue=wp();function iue(t,e){(0,rue.default)("innerComments",t,e)}});var rT=g(tT=>{"use strict";c();Object.defineProperty(tT,"__esModule",{value:!0});tT.default=nue;var sue=wp();function nue(t,e){(0,sue.default)("leadingComments",t,e)}});var sT=g(iT=>{"use strict";c();Object.defineProperty(iT,"__esModule",{value:!0});iT.default=oue;var aue=wp();function oue(t,e){(0,aue.default)("trailingComments",t,e)}});var aT=g(nT=>{"use strict";c();Object.defineProperty(nT,"__esModule",{value:!0});nT.default=fue;var lue=sT(),uue=rT(),cue=eT();function fue(t,e){return(0,lue.default)(t,e),(0,uue.default)(t,e),(0,cue.default)(t,e),t}});var zL=g(oT=>{"use strict";c();Object.defineProperty(oT,"__esModule",{value:!0});oT.default=hue;var pue=js();function hue(t){return pue.COMMENT_KEYS.forEach(e=>{t[e]=null}),t}});var QL=g(z=>{"use strict";c();Object.defineProperty(z,"__esModule",{value:!0});z.WHILE_TYPES=z.USERWHITESPACABLE_TYPES=z.UNARYLIKE_TYPES=z.TYPESCRIPT_TYPES=z.TSTYPE_TYPES=z.TSTYPEELEMENT_TYPES=z.TSENTITYNAME_TYPES=z.TSBASETYPE_TYPES=z.TERMINATORLESS_TYPES=z.STATEMENT_TYPES=z.STANDARDIZED_TYPES=z.SCOPABLE_TYPES=z.PUREISH_TYPES=z.PROPERTY_TYPES=z.PRIVATE_TYPES=z.PATTERN_TYPES=z.PATTERNLIKE_TYPES=z.OBJECTMEMBER_TYPES=z.MODULESPECIFIER_TYPES=z.MODULEDECLARATION_TYPES=z.MISCELLANEOUS_TYPES=z.METHOD_TYPES=z.LVAL_TYPES=z.LOOP_TYPES=z.LITERAL_TYPES=z.JSX_TYPES=z.IMPORTOREXPORTDECLARATION_TYPES=z.IMMUTABLE_TYPES=z.FUNCTION_TYPES=z.FUNCTIONPARENT_TYPES=z.FOR_TYPES=z.FORXSTATEMENT_TYPES=z.FLOW_TYPES=z.FLOWTYPE_TYPES=z.FLOWPREDICATE_TYPES=z.FLOWDECLARATION_TYPES=z.FLOWBASEANNOTATION_TYPES=z.EXPRESSION_TYPES=z.EXPRESSIONWRAPPER_TYPES=z.EXPORTDECLARATION_TYPES=z.ENUMMEMBER_TYPES=z.ENUMBODY_TYPES=z.DECLARATION_TYPES=z.CONDITIONAL_TYPES=z.COMPLETIONSTATEMENT_TYPES=z.CLASS_TYPES=z.BLOCK_TYPES=z.BLOCKPARENT_TYPES=z.BINARY_TYPES=z.ACCESSOR_TYPES=void 0;var be=Ur(),due=be.FLIPPED_ALIAS_KEYS.Standardized;z.STANDARDIZED_TYPES=due;var mue=be.FLIPPED_ALIAS_KEYS.Expression;z.EXPRESSION_TYPES=mue;var yue=be.FLIPPED_ALIAS_KEYS.Binary;z.BINARY_TYPES=yue;var gue=be.FLIPPED_ALIAS_KEYS.Scopable;z.SCOPABLE_TYPES=gue;var Sue=be.FLIPPED_ALIAS_KEYS.BlockParent;z.BLOCKPARENT_TYPES=Sue;var Tue=be.FLIPPED_ALIAS_KEYS.Block;z.BLOCK_TYPES=Tue;var Eue=be.FLIPPED_ALIAS_KEYS.Statement;z.STATEMENT_TYPES=Eue;var bue=be.FLIPPED_ALIAS_KEYS.Terminatorless;z.TERMINATORLESS_TYPES=bue;var xue=be.FLIPPED_ALIAS_KEYS.CompletionStatement;z.COMPLETIONSTATEMENT_TYPES=xue;var Pue=be.FLIPPED_ALIAS_KEYS.Conditional;z.CONDITIONAL_TYPES=Pue;var vue=be.FLIPPED_ALIAS_KEYS.Loop;z.LOOP_TYPES=vue;var Aue=be.FLIPPED_ALIAS_KEYS.While;z.WHILE_TYPES=Aue;var wue=be.FLIPPED_ALIAS_KEYS.ExpressionWrapper;z.EXPRESSIONWRAPPER_TYPES=wue;var _ue=be.FLIPPED_ALIAS_KEYS.For;z.FOR_TYPES=_ue;var Cue=be.FLIPPED_ALIAS_KEYS.ForXStatement;z.FORXSTATEMENT_TYPES=Cue;var Iue=be.FLIPPED_ALIAS_KEYS.Function;z.FUNCTION_TYPES=Iue;var Oue=be.FLIPPED_ALIAS_KEYS.FunctionParent;z.FUNCTIONPARENT_TYPES=Oue;var Nue=be.FLIPPED_ALIAS_KEYS.Pureish;z.PUREISH_TYPES=Nue;var Due=be.FLIPPED_ALIAS_KEYS.Declaration;z.DECLARATION_TYPES=Due;var Lue=be.FLIPPED_ALIAS_KEYS.PatternLike;z.PATTERNLIKE_TYPES=Lue;var kue=be.FLIPPED_ALIAS_KEYS.LVal;z.LVAL_TYPES=kue;var Rue=be.FLIPPED_ALIAS_KEYS.TSEntityName;z.TSENTITYNAME_TYPES=Rue;var Mue=be.FLIPPED_ALIAS_KEYS.Literal;z.LITERAL_TYPES=Mue;var Fue=be.FLIPPED_ALIAS_KEYS.Immutable;z.IMMUTABLE_TYPES=Fue;var Bue=be.FLIPPED_ALIAS_KEYS.UserWhitespacable;z.USERWHITESPACABLE_TYPES=Bue;var jue=be.FLIPPED_ALIAS_KEYS.Method;z.METHOD_TYPES=jue;var que=be.FLIPPED_ALIAS_KEYS.ObjectMember;z.OBJECTMEMBER_TYPES=que;var Uue=be.FLIPPED_ALIAS_KEYS.Property;z.PROPERTY_TYPES=Uue;var $ue=be.FLIPPED_ALIAS_KEYS.UnaryLike;z.UNARYLIKE_TYPES=$ue;var Vue=be.FLIPPED_ALIAS_KEYS.Pattern;z.PATTERN_TYPES=Vue;var Kue=be.FLIPPED_ALIAS_KEYS.Class;z.CLASS_TYPES=Kue;var JL=be.FLIPPED_ALIAS_KEYS.ImportOrExportDeclaration;z.IMPORTOREXPORTDECLARATION_TYPES=JL;var Hue=be.FLIPPED_ALIAS_KEYS.ExportDeclaration;z.EXPORTDECLARATION_TYPES=Hue;var Wue=be.FLIPPED_ALIAS_KEYS.ModuleSpecifier;z.MODULESPECIFIER_TYPES=Wue;var Gue=be.FLIPPED_ALIAS_KEYS.Accessor;z.ACCESSOR_TYPES=Gue;var Yue=be.FLIPPED_ALIAS_KEYS.Private;z.PRIVATE_TYPES=Yue;var Xue=be.FLIPPED_ALIAS_KEYS.Flow;z.FLOW_TYPES=Xue;var zue=be.FLIPPED_ALIAS_KEYS.FlowType;z.FLOWTYPE_TYPES=zue;var Jue=be.FLIPPED_ALIAS_KEYS.FlowBaseAnnotation;z.FLOWBASEANNOTATION_TYPES=Jue;var Que=be.FLIPPED_ALIAS_KEYS.FlowDeclaration;z.FLOWDECLARATION_TYPES=Que;var Zue=be.FLIPPED_ALIAS_KEYS.FlowPredicate;z.FLOWPREDICATE_TYPES=Zue;var ece=be.FLIPPED_ALIAS_KEYS.EnumBody;z.ENUMBODY_TYPES=ece;var tce=be.FLIPPED_ALIAS_KEYS.EnumMember;z.ENUMMEMBER_TYPES=tce;var rce=be.FLIPPED_ALIAS_KEYS.JSX;z.JSX_TYPES=rce;var ice=be.FLIPPED_ALIAS_KEYS.Miscellaneous;z.MISCELLANEOUS_TYPES=ice;var sce=be.FLIPPED_ALIAS_KEYS.TypeScript;z.TYPESCRIPT_TYPES=sce;var nce=be.FLIPPED_ALIAS_KEYS.TSTypeElement;z.TSTYPEELEMENT_TYPES=nce;var ace=be.FLIPPED_ALIAS_KEYS.TSType;z.TSTYPE_TYPES=ace;var oce=be.FLIPPED_ALIAS_KEYS.TSBaseType;z.TSBASETYPE_TYPES=oce;var lce=JL;z.MODULEDECLARATION_TYPES=lce});var cT=g(uT=>{"use strict";c();Object.defineProperty(uT,"__esModule",{value:!0});uT.default=uce;var _p=mt(),lT=dr();function uce(t,e){if((0,_p.isBlockStatement)(t))return t;let r=[];return(0,_p.isEmptyStatement)(t)?r=[]:((0,_p.isStatement)(t)||((0,_p.isFunction)(e)?t=(0,lT.returnStatement)(t):t=(0,lT.expressionStatement)(t)),r=[t]),(0,lT.blockStatement)(r)}});var ZL=g(fT=>{"use strict";c();Object.defineProperty(fT,"__esModule",{value:!0});fT.default=fce;var cce=cT();function fce(t,e="body"){let r=(0,cce.default)(t[e],t);return t[e]=r,r}});var hT=g(pT=>{"use strict";c();Object.defineProperty(pT,"__esModule",{value:!0});pT.default=dce;var pce=Qa(),hce=Bl();function dce(t){t=t+"";let e="";for(let r of t)e+=(0,hce.isIdentifierChar)(r.codePointAt(0))?r:"-";return e=e.replace(/^[-0-9]+/,""),e=e.replace(/[-\s]+(.)?/g,function(r,i){return i?i.toUpperCase():""}),(0,pce.default)(e)||(e=`_${e}`),e||"_"}});var ek=g(dT=>{"use strict";c();Object.defineProperty(dT,"__esModule",{value:!0});dT.default=yce;var mce=hT();function yce(t){return t=(0,mce.default)(t),(t==="eval"||t==="arguments")&&(t="_"+t),t}});var tk=g(mT=>{"use strict";c();Object.defineProperty(mT,"__esModule",{value:!0});mT.default=Tce;var gce=mt(),Sce=dr();function Tce(t,e=t.key||t.property){return!t.computed&&(0,gce.isIdentifier)(e)&&(e=(0,Sce.stringLiteral)(e.name)),e}});var rk=g(Cp=>{"use strict";c();Object.defineProperty(Cp,"__esModule",{value:!0});Cp.default=void 0;var Wl=mt(),Ece=bce;Cp.default=Ece;function bce(t){if((0,Wl.isExpressionStatement)(t)&&(t=t.expression),(0,Wl.isExpression)(t))return t;if((0,Wl.isClass)(t)?t.type="ClassExpression":(0,Wl.isFunction)(t)&&(t.type="FunctionExpression"),!(0,Wl.isExpression)(t))throw new Error(`cannot turn ${t.type} to an expression`);return t}});var ST=g(gT=>{"use strict";c();Object.defineProperty(gT,"__esModule",{value:!0});gT.default=yT;var xce=Ur();function yT(t,e,r){if(!t)return;let i=xce.VISITOR_KEYS[t.type];if(i){r=r||{},e(t,r);for(let s of i){let n=t[s];if(Array.isArray(n))for(let a of n)yT(a,e,r);else yT(n,e,r)}}}});var ET=g(TT=>{"use strict";c();Object.defineProperty(TT,"__esModule",{value:!0});TT.default=Ace;var Pce=js(),ik=["tokens","start","end","loc","raw","rawValue"],vce=[...Pce.COMMENT_KEYS,"comments",...ik];function Ace(t,e={}){let r=e.preserveComments?ik:vce;for(let s of r)t[s]!=null&&(t[s]=void 0);for(let s of Object.keys(t))s[0]==="_"&&t[s]!=null&&(t[s]=void 0);let i=Object.getOwnPropertySymbols(t);for(let s of i)t[s]=null}});var xT=g(bT=>{"use strict";c();Object.defineProperty(bT,"__esModule",{value:!0});bT.default=Cce;var wce=ST(),_ce=ET();function Cce(t,e){return(0,wce.default)(t,_ce.default,e),t}});var nk=g(PT=>{"use strict";c();Object.defineProperty(PT,"__esModule",{value:!0});PT.default=Fn;var sk=mt(),Ice=$s(),Oce=xT();function Fn(t,e=t.key){let r;return t.kind==="method"?Fn.increment()+"":((0,sk.isIdentifier)(e)?r=e.name:(0,sk.isStringLiteral)(e)?r=JSON.stringify(e.value):r=JSON.stringify((0,Oce.default)((0,Ice.default)(e))),t.computed&&(r=`[${r}]`),t.static&&(r=`static:${r}`),r)}Fn.uid=0;Fn.increment=function(){return Fn.uid>=Number.MAX_SAFE_INTEGER?Fn.uid=0:Fn.uid++}});var Gl=g(AT=>{"use strict";c();Object.defineProperty(AT,"__esModule",{value:!0});AT.default=vT;var to=mt();function vT(t,e,r){let i=[].concat(t),s=Object.create(null);for(;i.length;){let n=i.shift();if(!n)continue;let a=vT.keys[n.type];if((0,to.isIdentifier)(n)){e?(s[n.name]=s[n.name]||[]).push(n):s[n.name]=n;continue}if((0,to.isExportDeclaration)(n)&&!(0,to.isExportAllDeclaration)(n)){(0,to.isDeclaration)(n.declaration)&&i.push(n.declaration);continue}if(r){if((0,to.isFunctionDeclaration)(n)){i.push(n.id);continue}if((0,to.isFunctionExpression)(n))continue}if(a)for(let o=0;o<a.length;o++){let l=a[o],u=n[l];u&&(Array.isArray(u)?i.push(...u):i.push(u))}}return s}vT.keys={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"]}});var ak=g(_T=>{"use strict";c();Object.defineProperty(_T,"__esModule",{value:!0});_T.default=Ip;var Nce=Gl(),Bn=mt(),wT=dr(),Dce=$s();function Ip(t,e,r){let i=[],s=!0;for(let n of t)if((0,Bn.isEmptyStatement)(n)||(s=!1),(0,Bn.isExpression)(n))i.push(n);else if((0,Bn.isExpressionStatement)(n))i.push(n.expression);else if((0,Bn.isVariableDeclaration)(n)){if(n.kind!=="var")return;for(let a of n.declarations){let o=(0,Nce.default)(a);for(let l of Object.keys(o))r.push({kind:n.kind,id:(0,Dce.default)(o[l])});a.init&&i.push((0,wT.assignmentExpression)("=",a.id,a.init))}s=!0}else if((0,Bn.isIfStatement)(n)){let a=n.consequent?Ip([n.consequent],e,r):e.buildUndefinedNode(),o=n.alternate?Ip([n.alternate],e,r):e.buildUndefinedNode();if(!a||!o)return;i.push((0,wT.conditionalExpression)(n.test,a,o))}else if((0,Bn.isBlockStatement)(n)){let a=Ip(n.body,e,r);if(!a)return;i.push(a)}else if((0,Bn.isEmptyStatement)(n))t.indexOf(n)===0&&(s=!0);else return;return s&&i.push(e.buildUndefinedNode()),i.length===1?i[0]:(0,wT.sequenceExpression)(i)}});var ok=g(CT=>{"use strict";c();Object.defineProperty(CT,"__esModule",{value:!0});CT.default=kce;var Lce=ak();function kce(t,e){if(!(t!=null&&t.length))return;let r=[],i=(0,Lce.default)(t,e,r);if(i){for(let s of r)e.push(s);return i}}});var lk=g(Np=>{"use strict";c();Object.defineProperty(Np,"__esModule",{value:!0});Np.default=void 0;var Op=mt(),Rce=dr(),Mce=Fce;Np.default=Mce;function Fce(t,e){if((0,Op.isStatement)(t))return t;let r=!1,i;if((0,Op.isClass)(t))r=!0,i="ClassDeclaration";else if((0,Op.isFunction)(t))r=!0,i="FunctionDeclaration";else if((0,Op.isAssignmentExpression)(t))return(0,Rce.expressionStatement)(t);if(r&&!t.id&&(i=!1),!i){if(e)return!1;throw new Error(`cannot turn ${t.type} to a statement`)}return t.type=i,t}});var uk=g(Dp=>{"use strict";c();Object.defineProperty(Dp,"__esModule",{value:!0});Dp.default=void 0;var Bce=Qa(),qt=dr(),jce=IT;Dp.default=jce;var qce=Function.call.bind(Object.prototype.toString);function Uce(t){return qce(t)==="[object RegExp]"}function $ce(t){if(typeof t!="object"||t===null||Object.prototype.toString.call(t)!=="[object Object]")return!1;let e=Object.getPrototypeOf(t);return e===null||Object.getPrototypeOf(e)===null}function IT(t){if(t===void 0)return(0,qt.identifier)("undefined");if(t===!0||t===!1)return(0,qt.booleanLiteral)(t);if(t===null)return(0,qt.nullLiteral)();if(typeof t=="string")return(0,qt.stringLiteral)(t);if(typeof t=="number"){let e;if(Number.isFinite(t))e=(0,qt.numericLiteral)(Math.abs(t));else{let r;Number.isNaN(t)?r=(0,qt.numericLiteral)(0):r=(0,qt.numericLiteral)(1),e=(0,qt.binaryExpression)("/",r,(0,qt.numericLiteral)(0))}return(t<0||Object.is(t,-0))&&(e=(0,qt.unaryExpression)("-",e)),e}if(Uce(t)){let e=t.source,r=t.toString().match(/\/([a-z]+|)$/)[1];return(0,qt.regExpLiteral)(e,r)}if(Array.isArray(t))return(0,qt.arrayExpression)(t.map(IT));if($ce(t)){let e=[];for(let r of Object.keys(t)){let i;(0,Bce.default)(r)?i=(0,qt.identifier)(r):i=(0,qt.stringLiteral)(r),e.push((0,qt.objectProperty)(i,IT(t[r])))}return(0,qt.objectExpression)(e)}throw new Error("don't know how to turn this value into a node")}});var ck=g(OT=>{"use strict";c();Object.defineProperty(OT,"__esModule",{value:!0});OT.default=Kce;var Vce=dr();function Kce(t,e,r=!1){return t.object=(0,Vce.memberExpression)(t.object,t.property,t.computed),t.property=e,t.computed=!!r,t}});var pk=g(NT=>{"use strict";c();Object.defineProperty(NT,"__esModule",{value:!0});NT.default=Wce;var fk=js(),Hce=aT();function Wce(t,e){if(!t||!e)return t;for(let r of fk.INHERIT_KEYS.optional)t[r]==null&&(t[r]=e[r]);for(let r of Object.keys(e))r[0]==="_"&&r!=="__clone"&&(t[r]=e[r]);for(let r of fk.INHERIT_KEYS.force)t[r]=e[r];return(0,Hce.default)(t,e),t}});var hk=g(DT=>{"use strict";c();Object.defineProperty(DT,"__esModule",{value:!0});DT.default=Xce;var Gce=dr(),Yce=ve();function Xce(t,e){if((0,Yce.isSuper)(t.object))throw new Error("Cannot prepend node to super property access (`super.foo`).");return t.object=(0,Gce.memberExpression)(e,t.object),t}});var dk=g(Lp=>{"use strict";c();Object.defineProperty(Lp,"__esModule",{value:!0});Lp.default=void 0;var zce=Gl(),Jce=Qce;Lp.default=Jce;function Qce(t,e){return(0,zce.default)(t,e,!0)}});var mk=g(kT=>{"use strict";c();Object.defineProperty(kT,"__esModule",{value:!0});kT.default=efe;var Zce=Ur();function efe(t,e,r){typeof e=="function"&&(e={enter:e});let{enter:i,exit:s}=e;LT(t,i,s,r,[])}function LT(t,e,r,i,s){let n=Zce.VISITOR_KEYS[t.type];if(n){e&&e(t,s,i);for(let a of n){let o=t[a];if(Array.isArray(o))for(let l=0;l<o.length;l++){let u=o[l];u&&(s.push({node:t,key:a,index:l}),LT(u,e,r,i,s),s.pop())}else o&&(s.push({node:t,key:a}),LT(o,e,r,i,s),s.pop())}r&&r(t,s,i)}}});var yk=g(RT=>{"use strict";c();Object.defineProperty(RT,"__esModule",{value:!0});RT.default=rfe;var tfe=Gl();function rfe(t,e,r){if(r&&t.type==="Identifier"&&e.type==="ObjectProperty"&&r.type==="ObjectExpression")return!1;let i=tfe.default.keys[e.type];if(i)for(let s=0;s<i.length;s++){let n=i[s],a=e[n];if(Array.isArray(a)){if(a.indexOf(t)>=0)return!0}else if(a===t)return!0}return!1}});var FT=g(MT=>{"use strict";c();Object.defineProperty(MT,"__esModule",{value:!0});MT.default=nfe;var ife=mt(),sfe=js();function nfe(t){return(0,ife.isVariableDeclaration)(t)&&(t.kind!=="var"||t[sfe.BLOCK_SCOPED_SYMBOL])}});var Sk=g(BT=>{"use strict";c();Object.defineProperty(BT,"__esModule",{value:!0});BT.default=ofe;var gk=mt(),afe=FT();function ofe(t){return(0,gk.isFunctionDeclaration)(t)||(0,gk.isClassDeclaration)(t)||(0,afe.default)(t)}});var Tk=g(jT=>{"use strict";c();Object.defineProperty(jT,"__esModule",{value:!0});jT.default=cfe;var lfe=cp(),ufe=mt();function cfe(t){return(0,lfe.default)(t.type,"Immutable")?!0:(0,ufe.isIdentifier)(t)?t.name==="undefined":!1}});var bk=g(UT=>{"use strict";c();Object.defineProperty(UT,"__esModule",{value:!0});UT.default=qT;var Ek=Ur();function qT(t,e){if(typeof t!="object"||typeof e!="object"||t==null||e==null)return t===e;if(t.type!==e.type)return!1;let r=Object.keys(Ek.NODE_FIELDS[t.type]||t.type),i=Ek.VISITOR_KEYS[t.type];for(let s of r){let n=t[s],a=e[s];if(typeof n!=typeof a)return!1;if(!(n==null&&a==null)){if(n==null||a==null)return!1;if(Array.isArray(n)){if(!Array.isArray(a)||n.length!==a.length)return!1;for(let o=0;o<n.length;o++)if(!qT(n[o],a[o]))return!1;continue}if(typeof n=="object"&&!(i!=null&&i.includes(s))){for(let o of Object.keys(n))if(n[o]!==a[o])return!1;continue}if(!qT(n,a))return!1}}return!0}});var xk=g($T=>{"use strict";c();Object.defineProperty($T,"__esModule",{value:!0});$T.default=ffe;function ffe(t,e,r){switch(e.type){case"MemberExpression":case"OptionalMemberExpression":return e.property===t?!!e.computed:e.object===t;case"JSXMemberExpression":return e.object===t;case"VariableDeclarator":return e.init===t;case"ArrowFunctionExpression":return e.body===t;case"PrivateName":return!1;case"ClassMethod":case"ClassPrivateMethod":case"ObjectMethod":return e.key===t?!!e.computed:!1;case"ObjectProperty":return e.key===t?!!e.computed:!r||r.type!=="ObjectPattern";case"ClassProperty":case"ClassAccessorProperty":return e.key===t?!!e.computed:!0;case"ClassPrivateProperty":return e.key!==t;case"ClassDeclaration":case"ClassExpression":return e.superClass===t;case"AssignmentExpression":return e.right===t;case"AssignmentPattern":return e.right===t;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":return r!=null&&r.source?!1:e.local===t;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 e.key!==t;case"TSEnumMember":return e.id!==t;case"TSPropertySignature":return e.key===t?!!e.computed:!0}return!0}});var Pk=g(VT=>{"use strict";c();Object.defineProperty(VT,"__esModule",{value:!0});VT.default=pfe;var jn=mt();function pfe(t,e){return(0,jn.isBlockStatement)(t)&&((0,jn.isFunction)(e)||(0,jn.isCatchClause)(e))?!1:(0,jn.isPattern)(t)&&((0,jn.isFunction)(e)||(0,jn.isCatchClause)(e))?!0:(0,jn.isScopable)(t)}});var Ak=g(KT=>{"use strict";c();Object.defineProperty(KT,"__esModule",{value:!0});KT.default=hfe;var vk=mt();function hfe(t){return(0,vk.isImportDefaultSpecifier)(t)||(0,vk.isIdentifier)(t.imported||t.exported,{name:"default"})}});var wk=g(HT=>{"use strict";c();Object.defineProperty(HT,"__esModule",{value:!0});HT.default=yfe;var dfe=Qa(),mfe=new Set(["abstract","boolean","byte","char","double","enum","final","float","goto","implements","int","interface","long","native","package","private","protected","public","short","static","synchronized","throws","transient","volatile"]);function yfe(t){return(0,dfe.default)(t)&&!mfe.has(t)}});var _k=g(WT=>{"use strict";c();Object.defineProperty(WT,"__esModule",{value:!0});WT.default=Tfe;var gfe=mt(),Sfe=js();function Tfe(t){return(0,gfe.isVariableDeclaration)(t,{kind:"var"})&&!t[Sfe.BLOCK_SCOPED_SYMBOL]}});var ve=g(te=>{"use strict";c();Object.defineProperty(te,"__esModule",{value:!0});var Vs={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,toSequenceExpression:!0,toStatement:!0,valueToNode:!0,appendToMemberExpression:!0,inherits:!0,prependToMemberExpression:!0,removeProperties:!0,removePropertiesDeep:!0,removeTypeDuplicates:!0,getBindingIdentifiers:!0,getOuterBindingIdentifiers:!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(te,"__internal__deprecationWarning",{enumerable:!0,get:function(){return xpe.default}});Object.defineProperty(te,"addComment",{enumerable:!0,get:function(){return Nfe.default}});Object.defineProperty(te,"addComments",{enumerable:!0,get:function(){return Dfe.default}});Object.defineProperty(te,"appendToMemberExpression",{enumerable:!0,get:function(){return Yfe.default}});Object.defineProperty(te,"assertNode",{enumerable:!0,get:function(){return Pfe.default}});Object.defineProperty(te,"buildMatchMemberExpression",{enumerable:!0,get:function(){return bpe.default}});Object.defineProperty(te,"clone",{enumerable:!0,get:function(){return _fe.default}});Object.defineProperty(te,"cloneDeep",{enumerable:!0,get:function(){return Cfe.default}});Object.defineProperty(te,"cloneDeepWithoutLoc",{enumerable:!0,get:function(){return Ife.default}});Object.defineProperty(te,"cloneNode",{enumerable:!0,get:function(){return wfe.default}});Object.defineProperty(te,"cloneWithoutLoc",{enumerable:!0,get:function(){return Ofe.default}});Object.defineProperty(te,"createFlowUnionType",{enumerable:!0,get:function(){return Ck.default}});Object.defineProperty(te,"createTSUnionType",{enumerable:!0,get:function(){return Afe.default}});Object.defineProperty(te,"createTypeAnnotationBasedOnTypeof",{enumerable:!0,get:function(){return vfe.default}});Object.defineProperty(te,"createUnionTypeAnnotation",{enumerable:!0,get:function(){return Ck.default}});Object.defineProperty(te,"ensureBlock",{enumerable:!0,get:function(){return Bfe.default}});Object.defineProperty(te,"getBindingIdentifiers",{enumerable:!0,get:function(){return epe.default}});Object.defineProperty(te,"getOuterBindingIdentifiers",{enumerable:!0,get:function(){return tpe.default}});Object.defineProperty(te,"inheritInnerComments",{enumerable:!0,get:function(){return Lfe.default}});Object.defineProperty(te,"inheritLeadingComments",{enumerable:!0,get:function(){return kfe.default}});Object.defineProperty(te,"inheritTrailingComments",{enumerable:!0,get:function(){return Mfe.default}});Object.defineProperty(te,"inherits",{enumerable:!0,get:function(){return Xfe.default}});Object.defineProperty(te,"inheritsComments",{enumerable:!0,get:function(){return Rfe.default}});Object.defineProperty(te,"is",{enumerable:!0,get:function(){return spe.default}});Object.defineProperty(te,"isBinding",{enumerable:!0,get:function(){return npe.default}});Object.defineProperty(te,"isBlockScoped",{enumerable:!0,get:function(){return ape.default}});Object.defineProperty(te,"isImmutable",{enumerable:!0,get:function(){return ope.default}});Object.defineProperty(te,"isLet",{enumerable:!0,get:function(){return lpe.default}});Object.defineProperty(te,"isNode",{enumerable:!0,get:function(){return upe.default}});Object.defineProperty(te,"isNodesEquivalent",{enumerable:!0,get:function(){return cpe.default}});Object.defineProperty(te,"isPlaceholderType",{enumerable:!0,get:function(){return fpe.default}});Object.defineProperty(te,"isReferenced",{enumerable:!0,get:function(){return ppe.default}});Object.defineProperty(te,"isScope",{enumerable:!0,get:function(){return hpe.default}});Object.defineProperty(te,"isSpecifierDefault",{enumerable:!0,get:function(){return dpe.default}});Object.defineProperty(te,"isType",{enumerable:!0,get:function(){return mpe.default}});Object.defineProperty(te,"isValidES3Identifier",{enumerable:!0,get:function(){return ype.default}});Object.defineProperty(te,"isValidIdentifier",{enumerable:!0,get:function(){return gpe.default}});Object.defineProperty(te,"isVar",{enumerable:!0,get:function(){return Spe.default}});Object.defineProperty(te,"matchesPattern",{enumerable:!0,get:function(){return Tpe.default}});Object.defineProperty(te,"prependToMemberExpression",{enumerable:!0,get:function(){return zfe.default}});te.react=void 0;Object.defineProperty(te,"removeComments",{enumerable:!0,get:function(){return Ffe.default}});Object.defineProperty(te,"removeProperties",{enumerable:!0,get:function(){return Jfe.default}});Object.defineProperty(te,"removePropertiesDeep",{enumerable:!0,get:function(){return Qfe.default}});Object.defineProperty(te,"removeTypeDuplicates",{enumerable:!0,get:function(){return Zfe.default}});Object.defineProperty(te,"shallowEqual",{enumerable:!0,get:function(){return ipe.default}});Object.defineProperty(te,"toBindingIdentifierName",{enumerable:!0,get:function(){return jfe.default}});Object.defineProperty(te,"toBlock",{enumerable:!0,get:function(){return qfe.default}});Object.defineProperty(te,"toComputedKey",{enumerable:!0,get:function(){return Ufe.default}});Object.defineProperty(te,"toExpression",{enumerable:!0,get:function(){return $fe.default}});Object.defineProperty(te,"toIdentifier",{enumerable:!0,get:function(){return Vfe.default}});Object.defineProperty(te,"toKeyAlias",{enumerable:!0,get:function(){return Kfe.default}});Object.defineProperty(te,"toSequenceExpression",{enumerable:!0,get:function(){return Hfe.default}});Object.defineProperty(te,"toStatement",{enumerable:!0,get:function(){return Wfe.default}});Object.defineProperty(te,"traverse",{enumerable:!0,get:function(){return kp.default}});Object.defineProperty(te,"traverseFast",{enumerable:!0,get:function(){return rpe.default}});Object.defineProperty(te,"validate",{enumerable:!0,get:function(){return Epe.default}});Object.defineProperty(te,"valueToNode",{enumerable:!0,get:function(){return Gfe.default}});var Efe=TD(),bfe=ED(),xfe=CL(),Pfe=IL(),GT=OL();Object.keys(GT).forEach(function(t){t==="default"||t==="__esModule"||Object.prototype.hasOwnProperty.call(Vs,t)||t in te&&te[t]===GT[t]||Object.defineProperty(te,t,{enumerable:!0,get:function(){return GT[t]}})});var vfe=NL(),Ck=kL(),Afe=BL(),YT=dr();Object.keys(YT).forEach(function(t){t==="default"||t==="__esModule"||Object.prototype.hasOwnProperty.call(Vs,t)||t in te&&te[t]===YT[t]||Object.defineProperty(te,t,{enumerable:!0,get:function(){return YT[t]}})});var XT=jL();Object.keys(XT).forEach(function(t){t==="default"||t==="__esModule"||Object.prototype.hasOwnProperty.call(Vs,t)||t in te&&te[t]===XT[t]||Object.defineProperty(te,t,{enumerable:!0,get:function(){return XT[t]}})});var wfe=$s(),_fe=HL(),Cfe=WL(),Ife=GL(),Ofe=YL(),Nfe=XL(),Dfe=z0(),Lfe=eT(),kfe=rT(),Rfe=aT(),Mfe=sT(),Ffe=zL(),zT=QL();Object.keys(zT).forEach(function(t){t==="default"||t==="__esModule"||Object.prototype.hasOwnProperty.call(Vs,t)||t in te&&te[t]===zT[t]||Object.defineProperty(te,t,{enumerable:!0,get:function(){return zT[t]}})});var JT=js();Object.keys(JT).forEach(function(t){t==="default"||t==="__esModule"||Object.prototype.hasOwnProperty.call(Vs,t)||t in te&&te[t]===JT[t]||Object.defineProperty(te,t,{enumerable:!0,get:function(){return JT[t]}})});var Bfe=ZL(),jfe=ek(),qfe=cT(),Ufe=tk(),$fe=rk(),Vfe=hT(),Kfe=nk(),Hfe=ok(),Wfe=lk(),Gfe=uk(),QT=Ur();Object.keys(QT).forEach(function(t){t==="default"||t==="__esModule"||Object.prototype.hasOwnProperty.call(Vs,t)||t in te&&te[t]===QT[t]||Object.defineProperty(te,t,{enumerable:!0,get:function(){return QT[t]}})});var Yfe=ck(),Xfe=pk(),zfe=hk(),Jfe=ET(),Qfe=xT(),Zfe=q0(),epe=Gl(),tpe=dk(),kp=mk();Object.keys(kp).forEach(function(t){t==="default"||t==="__esModule"||Object.prototype.hasOwnProperty.call(Vs,t)||t in te&&te[t]===kp[t]||Object.defineProperty(te,t,{enumerable:!0,get:function(){return kp[t]}})});var rpe=ST(),ipe=lp(),spe=Ja(),npe=yk(),ape=Sk(),ope=Tk(),lpe=FT(),upe=F0(),cpe=bk(),fpe=p0(),ppe=xk(),hpe=Pk(),dpe=Ak(),mpe=cp(),ype=wk(),gpe=Qa(),Spe=_k(),Tpe=a0(),Epe=yp(),bpe=l0(),ZT=mt();Object.keys(ZT).forEach(function(t){t==="default"||t==="__esModule"||Object.prototype.hasOwnProperty.call(Vs,t)||t in te&&te[t]===ZT[t]||Object.defineProperty(te,t,{enumerable:!0,get:function(){return ZT[t]}})});var xpe=Nl(),Ppe={isReactComponent:Efe.default,isCompatTag:bfe.default,buildChildren:xfe.default};te.react=Ppe});var Lk=g(Mp=>{"use strict";c();Object.defineProperty(Mp,"__esModule",{value:!0});Mp.nodes=void 0;var vpe=ve(),{FLIPPED_ALIAS_KEYS:Ape,isArrayExpression:wpe,isAssignmentExpression:Ok,isBinary:Nk,isBlockStatement:_pe,isCallExpression:Dk,isFunction:Yl,isIdentifier:Rp,isLiteral:Cpe,isMemberExpression:eE,isObjectExpression:Ipe,isOptionalCallExpression:Ope,isOptionalMemberExpression:Npe,isStringLiteral:Dpe}=vpe;function ro(t,e){return t&&(eE(t)||Npe(t)?(ro(t.object,e),t.computed&&ro(t.property,e)):Nk(t)||Ok(t)?(ro(t.left,e),ro(t.right,e)):Dk(t)||Ope(t)?(e.hasCall=!0,ro(t.callee,e)):Yl(t)?e.hasFunction=!0:Rp(t)&&(e.hasHelper=e.hasHelper||t.callee&&Yi(t.callee))),e}function Ik(t){return ro(t,{hasCall:!1,hasFunction:!1,hasHelper:!1})}function Yi(t){return t?eE(t)?Yi(t.object)||Yi(t.property):Rp(t)?t.name==="require"||t.name.charCodeAt(0)===95:Dk(t)?Yi(t.callee):Nk(t)||Ok(t)?Rp(t.left)&&Yi(t.left)||Yi(t.right):!1:!1}function Lpe(t){return Cpe(t)||Ipe(t)||wpe(t)||Rp(t)||eE(t)}var Ks={AssignmentExpression(t){let e=Ik(t.right);if(e.hasCall&&e.hasHelper||e.hasFunction)return e.hasFunction?3:2},SwitchCase(t,e){return(t.consequent.length||e.cases[0]===t?1:0)|(!t.consequent.length&&e.cases[e.cases.length-1]===t?2:0)},LogicalExpression(t){if(Yl(t.left)||Yl(t.right))return 2},Literal(t){if(Dpe(t)&&t.value==="use strict")return 2},CallExpression(t){if(Yl(t.callee)||Yi(t))return 3},OptionalCallExpression(t){if(Yl(t.callee))return 3},VariableDeclaration(t){for(let e=0;e<t.declarations.length;e++){let r=t.declarations[e],i=Yi(r.id)&&!Lpe(r.init);if(!i&&r.init){let s=Ik(r.init);i=Yi(r.init)&&s.hasCall||s.hasFunction}if(i)return 3}},IfStatement(t){if(_pe(t.consequent))return 3}};Mp.nodes=Ks;Ks.ObjectProperty=Ks.ObjectTypeProperty=Ks.ObjectMethod=function(t,e){if(e.properties[0]===t)return 1};Ks.ObjectTypeCallProperty=function(t,e){var r;if(e.callProperties[0]===t&&!((r=e.properties)!=null&&r.length))return 1};Ks.ObjectTypeIndexer=function(t,e){var r,i;if(e.indexers[0]===t&&!((r=e.properties)!=null&&r.length)&&!((i=e.callProperties)!=null&&i.length))return 1};Ks.ObjectTypeInternalSlot=function(t,e){var r,i,s;if(e.internalSlots[0]===t&&!((r=e.properties)!=null&&r.length)&&!((i=e.callProperties)!=null&&i.length)&&!((s=e.indexers)!=null&&s.length))return 1};[["Function",!0],["Class",!0],["Loop",!0],["LabeledStatement",!0],["SwitchStatement",!0],["TryStatement",!0]].forEach(function([t,e]){[t].concat(Ape[t]||[]).forEach(function(r){let i=e?3:0;Ks[r]=()=>i})})});var Jk=g($e=>{"use strict";c();Object.defineProperty($e,"__esModule",{value:!0});$e.ArrowFunctionExpression=_he;$e.AssignmentExpression=Ihe;$e.Binary=mhe;$e.BinaryExpression=xhe;$e.ClassExpression=Ahe;$e.ConditionalExpression=oE;$e.DoExpression=dhe;$e.FunctionExpression=whe;$e.FunctionTypeAnnotation=fhe;$e.Identifier=Nhe;$e.LogicalExpression=Ohe;$e.NullableTypeAnnotation=che;$e.ObjectExpression=hhe;$e.OptionalIndexedAccessType=ghe;$e.OptionalCallExpression=$e.OptionalMemberExpression=Che;$e.SequenceExpression=Phe;$e.TSTypeAssertion=$e.TSSatisfiesExpression=$e.TSAsExpression=She;$e.TSInferType=Ehe;$e.TSInstantiationExpression=bhe;$e.TSIntersectionType=$e.TSUnionType=The;$e.UnaryLike=zk;$e.IntersectionTypeAnnotation=$e.UnionTypeAnnotation=yhe;$e.UpdateExpression=phe;$e.AwaitExpression=$e.YieldExpression=vhe;var kpe=ve(),{isArrayTypeAnnotation:tE,isArrowFunctionExpression:Rk,isAssignmentExpression:Mk,isAwaitExpression:rE,isBinary:Bp,isBinaryExpression:Fk,isUpdateExpression:Rpe,isCallExpression:iE,isClass:Mpe,isClassExpression:Fpe,isConditional:Bpe,isConditionalExpression:Bk,isExportDeclaration:jpe,isExportDefaultDeclaration:qpe,isExpressionStatement:jk,isFor:Upe,isForInStatement:qk,isForOfStatement:Uk,isForStatement:$k,isFunctionExpression:$pe,isIfStatement:Vpe,isIndexedAccessType:Kpe,isIntersectionTypeAnnotation:Vk,isLogicalExpression:Fp,isMemberExpression:sE,isNewExpression:nE,isNullableTypeAnnotation:Hpe,isObjectPattern:Wpe,isOptionalCallExpression:Kk,isOptionalMemberExpression:Hk,isReturnStatement:Gpe,isSequenceExpression:Ype,isSwitchStatement:Xpe,isTSArrayType:Wk,isTSAsExpression:zpe,isTSInstantiationExpression:Jpe,isTSIntersectionType:Qpe,isTSNonNullExpression:Zpe,isTSOptionalType:Gk,isTSRestType:ehe,isTSTypeAssertion:the,isTSUnionType:rhe,isTaggedTemplateExpression:ihe,isThrowStatement:she,isTypeAnnotation:nhe,isUnaryLike:aE,isUnionTypeAnnotation:Yk,isVariableDeclarator:ahe,isWhileStatement:ohe,isYieldExpression:lhe,isTSSatisfiesExpression:uhe}=kpe,kk={"||":0,"??":0,"|>":0,"&&":1,"|":2,"^":3,"&":4,"==":5,"===":5,"!=":5,"!==":5,"<":6,">":6,"<=":6,">=":6,in:6,instanceof:6,">>":7,"<<":7,">>>":7,"+":8,"-":8,"*":9,"/":9,"%":9,"**":10};function Xk(t){return zpe(t)||uhe(t)||the(t)}var jp=(t,e)=>Mpe(e,{superClass:t}),Xl=(t,e)=>(sE(e)||Hk(e))&&e.object===t||(iE(e)||Kk(e)||nE(e))&&e.callee===t||ihe(e)&&e.tag===t||Zpe(e);function che(t,e){return tE(e)}function fhe(t,e,r){if(!(r.length<3))return Yk(e)||Vk(e)||tE(e)||nhe(e)&&Rk(r[r.length-3])}function phe(t,e){return Xl(t,e)||jp(t,e)}function hhe(t,e,r){return zl(r,3)}function dhe(t,e,r){return!t.async&&zl(r,1)}function mhe(t,e){if(t.operator==="**"&&Fk(e,{operator:"**"}))return e.left===t;if(jp(t,e)||Xl(t,e)||aE(e)||rE(e))return!0;if(Bp(e)){let r=e.operator,i=kk[r],s=t.operator,n=kk[s];if(i===n&&e.right===t&&!Fp(e)||i>n)return!0}}function yhe(t,e){return tE(e)||Hpe(e)||Vk(e)||Yk(e)}function ghe(t,e){return Kpe(e,{objectType:t})}function She(){return!0}function The(t,e){return Wk(e)||Gk(e)||Qpe(e)||rhe(e)||ehe(e)}function Ehe(t,e){return Wk(e)||Gk(e)}function bhe(t,e){return(iE(e)||Kk(e)||nE(e)||Jpe(e))&&!!e.typeParameters}function xhe(t,e){return t.operator==="in"&&(ahe(e)||Upe(e))}function Phe(t,e){return!($k(e)||she(e)||Gpe(e)||Vpe(e)&&e.test===t||ohe(e)&&e.test===t||qk(e)&&e.right===t||Xpe(e)&&e.discriminant===t||jk(e)&&e.expression===t)}function vhe(t,e){return Bp(e)||aE(e)||Xl(t,e)||rE(e)&&lhe(t)||Bk(e)&&t===e.test||jp(t,e)}function Ahe(t,e,r){return zl(r,5)}function zk(t,e){return Xl(t,e)||Fk(e,{operator:"**",left:t})||jp(t,e)}function whe(t,e,r){return zl(r,5)}function _he(t,e){return jpe(e)||oE(t,e)}function oE(t,e){return aE(e)||Bp(e)||Bk(e,{test:t})||rE(e)||Xk(e)?!0:zk(t,e)}function Che(t,e){return iE(e,{callee:t})||sE(e,{object:t})}function Ihe(t,e){return Wpe(t.left)?!0:oE(t,e)}function Ohe(t,e){if(Xk(e))return!0;switch(t.operator){case"||":return Fp(e)?e.operator==="??"||e.operator==="&&":!1;case"&&":return Fp(e,{operator:"??"});case"??":return Fp(e)&&e.operator!=="??"}}function Nhe(t,e,r){var i;if((i=t.extra)!=null&&i.parenthesized&&Mk(e,{left:t})&&($pe(e.right)||Fpe(e.right))&&e.right.id==null)return!0;if(t.name==="let"){let s=sE(e,{object:t,computed:!0})||Hk(e,{object:t,computed:!0,optional:!1});return zl(r,s?57:32)}return t.name==="async"&&Uk(e)&&t===e.left}function zl(t,e){let r=e&1,i=e&2,s=e&4,n=e&8,a=e&16,o=e&32,l=t.length-1;if(l<=0)return;let u=t[l];l--;let f=t[l];for(;l>=0;){if(r&&jk(f,{expression:u})||s&&qpe(f,{declaration:u})||i&&Rk(f,{body:u})||n&&$k(f,{init:u})||a&&qk(f,{left:u})||o&&Uk(f,{left:u}))return!0;if(l>0&&(Xl(u,f)&&!nE(f)||Ype(f)&&f.expressions[0]===u||Rpe(f)&&!f.prefix||Bpe(f,{test:u})||Bp(f,{left:u})||Mk(f,{left:u})))u=f,l--,f=t[l];else return!1}return!1}});var uE=g(io=>{"use strict";c();Object.defineProperty(io,"__esModule",{value:!0});io.needsParens=Khe;io.needsWhitespace=lE;io.needsWhitespaceAfter=Vhe;io.needsWhitespaceBefore=$he;var Dhe=Lk(),Lhe=Jk(),khe=ve(),{FLIPPED_ALIAS_KEYS:Rhe,isCallExpression:Mhe,isExpressionStatement:Fhe,isMemberExpression:Bhe,isNewExpression:jhe}=khe;function Qk(t){let e={};function r(i,s){let n=e[i];e[i]=n?function(a,o,l){let u=n(a,o,l);return u??s(a,o,l)}:s}for(let i of Object.keys(t)){let s=Rhe[i];if(s)for(let n of s)r(n,t[i]);else r(i,t[i])}return e}var qhe=Qk(Lhe),Uhe=Qk(Dhe.nodes);function Zk(t,e,r,i){let s=t[e.type];return s?s(e,r,i):null}function eR(t){return Mhe(t)?!0:Bhe(t)&&eR(t.object)}function lE(t,e,r){if(!t)return!1;Fhe(t)&&(t=t.expression);let i=Zk(Uhe,t,e);return typeof i=="number"?(i&r)!==0:!1}function $he(t,e){return lE(t,e,1)}function Vhe(t,e){return lE(t,e,2)}function Khe(t,e,r){return e?jhe(e)&&e.callee===t&&eR(t)?!0:Zk(qhe,t,e,r):!1}});var tR=g(Jl=>{"use strict";c();Object.defineProperty(Jl,"__esModule",{value:!0});Jl.TaggedTemplateExpression=Hhe;Jl.TemplateElement=Whe;Jl.TemplateLiteral=Ghe;function Hhe(t){this.print(t.tag,t),this.print(t.typeParameters,t),this.print(t.quasi,t)}function Whe(t,e){let r=e.quasis[0]===t,i=e.quasis[e.quasis.length-1]===t,s=(r?"`":"}")+t.value.raw+(i?"`":"${");this.token(s,!0)}function Ghe(t){let e=t.quasis;for(let r=0;r<e.length;r++)this.print(e[r],t),r+1<e.length&&this.print(t.expressions[r],t)}});var sR=g(We=>{"use strict";c();Object.defineProperty(We,"__esModule",{value:!0});We.LogicalExpression=We.BinaryExpression=We.AssignmentExpression=Tde;We.AssignmentPattern=Sde;We.AwaitExpression=dde;We.BindExpression=Ede;We.CallExpression=pde;We.ConditionalExpression=rde;We.Decorator=ude;We.DoExpression=Zhe;We.EmptyStatement=yde;We.ExpressionStatement=gde;We.Import=hde;We.MemberExpression=bde;We.MetaProperty=xde;We.ModuleExpression=Ade;We.NewExpression=ide;We.OptionalCallExpression=fde;We.OptionalMemberExpression=cde;We.ParenthesizedExpression=ede;We.PrivateName=Pde;We.SequenceExpression=sde;We.Super=ade;We.ThisExpression=nde;We.UnaryExpression=Qhe;We.UpdateExpression=tde;We.V8IntrinsicIdentifier=vde;We.YieldExpression=mde;We._shouldPrintDecoratorsBeforeExport=lde;var Yhe=ve(),Xhe=uE(),{isCallExpression:zhe,isLiteral:rR,isMemberExpression:cE,isNewExpression:Jhe}=Yhe;function Qhe(t){let{operator:e}=t;e==="void"||e==="delete"||e==="typeof"||e==="throw"?(this.word(e),this.space()):this.token(e),this.print(t.argument,t)}function Zhe(t){t.async&&(this.word("async",!0),this.space()),this.word("do"),this.space(),this.print(t.body,t)}function ede(t){this.tokenChar(40),this.print(t.expression,t),this.rightParens(t)}function tde(t){t.prefix?(this.token(t.operator),this.print(t.argument,t)):(this.printTerminatorless(t.argument,t,!0),this.token(t.operator))}function rde(t){this.print(t.test,t),this.space(),this.tokenChar(63),this.space(),this.print(t.consequent,t),this.space(),this.tokenChar(58),this.space(),this.print(t.alternate,t)}function ide(t,e){this.word("new"),this.space(),this.print(t.callee,t),!(this.format.minified&&t.arguments.length===0&&!t.optional&&!zhe(e,{callee:t})&&!cE(e)&&!Jhe(e))&&(this.print(t.typeArguments,t),this.print(t.typeParameters,t),t.optional&&this.token("?."),this.tokenChar(40),this.printList(t.arguments,t),this.rightParens(t))}function sde(t){this.printList(t.expressions,t)}function nde(){this.word("this")}function ade(){this.word("super")}function iR(t){switch(t.type){case"Identifier":return!0;case"MemberExpression":return!t.computed&&t.property.type==="Identifier"&&iR(t.object);default:return!1}}function ode(t){return t.type==="ParenthesizedExpression"?!1:!iR(t.type==="CallExpression"?t.callee:t)}function lde(t){return typeof this.format.decoratorsBeforeExport=="boolean"?this.format.decoratorsBeforeExport:typeof t.start=="number"&&t.start===t.declaration.start}function ude(t){this.tokenChar(64);let{expression:e}=t;ode(e)?(this.tokenChar(40),this.print(e,t),this.tokenChar(41)):this.print(e,t),this.newline()}function cde(t){let{computed:e}=t,{optional:r,property:i}=t;if(this.print(t.object,t),!e&&cE(i))throw new TypeError("Got a MemberExpression for MemberExpression property");rR(i)&&typeof i.value=="number"&&(e=!0),r&&this.token("?."),e?(this.tokenChar(91),this.print(i,t),this.tokenChar(93)):(r||this.tokenChar(46),this.print(i,t))}function fde(t){this.print(t.callee,t),this.print(t.typeParameters,t),t.optional&&this.token("?."),this.print(t.typeArguments,t),this.tokenChar(40),this.printList(t.arguments,t),this.rightParens(t)}function pde(t){this.print(t.callee,t),this.print(t.typeArguments,t),this.print(t.typeParameters,t),this.tokenChar(40),this.printList(t.arguments,t),this.rightParens(t)}function hde(){this.word("import")}function dde(t){this.word("await"),t.argument&&(this.space(),this.printTerminatorless(t.argument,t,!1))}function mde(t){this.word("yield",!0),t.delegate?(this.tokenChar(42),t.argument&&(this.space(),this.print(t.argument,t))):t.argument&&(this.space(),this.printTerminatorless(t.argument,t,!1))}function yde(){this.semicolon(!0)}function gde(t){this.print(t.expression,t),this.semicolon()}function Sde(t){this.print(t.left,t),t.left.optional&&this.tokenChar(63),this.print(t.left.typeAnnotation,t),this.space(),this.tokenChar(61),this.space(),this.print(t.right,t)}function Tde(t,e){let r=this.inForStatementInitCounter&&t.operator==="in"&&!Xhe.needsParens(t,e);r&&this.tokenChar(40),this.print(t.left,t),this.space(),t.operator==="in"||t.operator==="instanceof"?this.word(t.operator):this.token(t.operator),this.space(),this.print(t.right,t),r&&this.tokenChar(41)}function Ede(t){this.print(t.object,t),this.token("::"),this.print(t.callee,t)}function bde(t){if(this.print(t.object,t),!t.computed&&cE(t.property))throw new TypeError("Got a MemberExpression for MemberExpression property");let e=t.computed;rR(t.property)&&typeof t.property.value=="number"&&(e=!0),e?(this.tokenChar(91),this.print(t.property,t),this.tokenChar(93)):(this.tokenChar(46),this.print(t.property,t))}function xde(t){this.print(t.meta,t),this.tokenChar(46),this.print(t.property,t)}function Pde(t){this.tokenChar(35),this.print(t.id,t)}function vde(t){this.tokenChar(37),this.word(t.name)}function Ade(t){this.word("module",!0),this.space(),this.tokenChar(123),this.indent();let{body:e}=t;(e.body.length||e.directives.length)&&this.newline(),this.print(e,t),this.dedent(),this.rightBrace(t)}});var lR=g(ot=>{"use strict";c();Object.defineProperty(ot,"__esModule",{value:!0});ot.BreakStatement=Fde;ot.CatchClause=Vde;ot.ContinueStatement=Bde;ot.DebuggerStatement=Wde;ot.DoWhileStatement=Mde;ot.ForOfStatement=ot.ForInStatement=void 0;ot.ForStatement=Dde;ot.IfStatement=Nde;ot.LabeledStatement=Ude;ot.ReturnStatement=jde;ot.SwitchCase=Hde;ot.SwitchStatement=Kde;ot.ThrowStatement=qde;ot.TryStatement=$de;ot.VariableDeclaration=Gde;ot.VariableDeclarator=Yde;ot.WhileStatement=Lde;ot.WithStatement=Ode;var wde=ve(),{isFor:nR,isForStatement:_de,isIfStatement:Cde,isStatement:Ide}=wde;function Ode(t){this.word("with"),this.space(),this.tokenChar(40),this.print(t.object,t),this.tokenChar(41),this.printBlock(t)}function Nde(t){this.word("if"),this.space(),this.tokenChar(40),this.print(t.test,t),this.tokenChar(41),this.space();let e=t.alternate&&Cde(aR(t.consequent));e&&(this.tokenChar(123),this.newline(),this.indent()),this.printAndIndentOnComments(t.consequent,t),e&&(this.dedent(),this.newline(),this.tokenChar(125)),t.alternate&&(this.endsWith(125)&&this.space(),this.word("else"),this.space(),this.printAndIndentOnComments(t.alternate,t))}function aR(t){let{body:e}=t;return Ide(e)===!1?t:aR(e)}function Dde(t){this.word("for"),this.space(),this.tokenChar(40),this.inForStatementInitCounter++,this.print(t.init,t),this.inForStatementInitCounter--,this.tokenChar(59),t.test&&(this.space(),this.print(t.test,t)),this.tokenChar(59),t.update&&(this.space(),this.print(t.update,t)),this.tokenChar(41),this.printBlock(t)}function Lde(t){this.word("while"),this.space(),this.tokenChar(40),this.print(t.test,t),this.tokenChar(41),this.printBlock(t)}function oR(t){this.word("for"),this.space();let e=t.type==="ForOfStatement";e&&t.await&&(this.word("await"),this.space()),this.noIndentInnerCommentsHere(),this.tokenChar(40),this.print(t.left,t),this.space(),this.word(e?"of":"in"),this.space(),this.print(t.right,t),this.tokenChar(41),this.printBlock(t)}var kde=oR;ot.ForInStatement=kde;var Rde=oR;ot.ForOfStatement=Rde;function Mde(t){this.word("do"),this.space(),this.print(t.body,t),this.space(),this.word("while"),this.space(),this.tokenChar(40),this.print(t.test,t),this.tokenChar(41),this.semicolon()}function qp(t,e,r,i){e&&(t.space(),t.printTerminatorless(e,r,i)),t.semicolon()}function Fde(t){this.word("break"),qp(this,t.label,t,!0)}function Bde(t){this.word("continue"),qp(this,t.label,t,!0)}function jde(t){this.word("return"),qp(this,t.argument,t,!1)}function qde(t){this.word("throw"),qp(this,t.argument,t,!1)}function Ude(t){this.print(t.label,t),this.tokenChar(58),this.space(),this.print(t.body,t)}function $de(t){this.word("try"),this.space(),this.print(t.block,t),this.space(),t.handlers?this.print(t.handlers[0],t):this.print(t.handler,t),t.finalizer&&(this.space(),this.word("finally"),this.space(),this.print(t.finalizer,t))}function Vde(t){this.word("catch"),this.space(),t.param&&(this.tokenChar(40),this.print(t.param,t),this.print(t.param.typeAnnotation,t),this.tokenChar(41),this.space()),this.print(t.body,t)}function Kde(t){this.word("switch"),this.space(),this.tokenChar(40),this.print(t.discriminant,t),this.tokenChar(41),this.space(),this.tokenChar(123),this.printSequence(t.cases,t,{indent:!0,addNewlines(e,r){if(!e&&t.cases[t.cases.length-1]===r)return-1}}),this.rightBrace(t)}function Hde(t){t.test?(this.word("case"),this.space(),this.print(t.test,t),this.tokenChar(58)):(this.word("default"),this.tokenChar(58)),t.consequent.length&&(this.newline(),this.printSequence(t.consequent,t,{indent:!0}))}function Wde(){this.word("debugger"),this.semicolon()}function Gde(t,e){t.declare&&(this.word("declare"),this.space());let{kind:r}=t;this.word(r,r==="using"||r==="await using"),this.space();let i=!1;if(!nR(e))for(let s of t.declarations)s.init&&(i=!0);if(this.printList(t.declarations,t,{separator:i?function(){this.tokenChar(44),this.newline()}:void 0,indent:t.declarations.length>1}),nR(e)){if(_de(e)){if(e.init===t)return}else if(e.left===t)return}this.semicolon()}function Yde(t){this.print(t.id,t),t.definite&&this.tokenChar(33),this.print(t.id.typeAnnotation,t),t.init&&(this.space(),this.tokenChar(61),this.space(),this.print(t.init,t))}});var uR=g($r=>{"use strict";c();Object.defineProperty($r,"__esModule",{value:!0});$r.ClassAccessorProperty=tme;$r.ClassBody=Zde;$r.ClassExpression=$r.ClassDeclaration=Qde;$r.ClassMethod=ime;$r.ClassPrivateMethod=sme;$r.ClassPrivateProperty=rme;$r.ClassProperty=eme;$r.StaticBlock=ame;$r._classMethodHead=nme;var Xde=ve(),{isExportDefaultDeclaration:zde,isExportNamedDeclaration:Jde}=Xde;function Qde(t,e){(!(zde(e)||Jde(e))||!this._shouldPrintDecoratorsBeforeExport(e))&&this.printJoin(t.decorators,t),t.declare&&(this.word("declare"),this.space()),t.abstract&&(this.word("abstract"),this.space()),this.word("class"),t.id&&(this.space(),this.print(t.id,t)),this.print(t.typeParameters,t),t.superClass&&(this.space(),this.word("extends"),this.space(),this.print(t.superClass,t),this.print(t.superTypeParameters,t)),t.implements&&(this.space(),this.word("implements"),this.space(),this.printList(t.implements,t)),this.space(),this.print(t.body,t)}function Zde(t){this.tokenChar(123),t.body.length===0?this.tokenChar(125):(this.newline(),this.printSequence(t.body,t,{indent:!0}),this.endsWith(10)||this.newline(),this.rightBrace(t))}function eme(t){var e,r;this.printJoin(t.decorators,t);let i=(e=t.key.loc)==null||(r=e.end)==null?void 0:r.line;i&&this.catchUp(i),this.tsPrintClassMemberModifiers(t),t.computed?(this.tokenChar(91),this.print(t.key,t),this.tokenChar(93)):(this._variance(t),this.print(t.key,t)),t.optional&&this.tokenChar(63),t.definite&&this.tokenChar(33),this.print(t.typeAnnotation,t),t.value&&(this.space(),this.tokenChar(61),this.space(),this.print(t.value,t)),this.semicolon()}function tme(t){var e,r;this.printJoin(t.decorators,t);let i=(e=t.key.loc)==null||(r=e.end)==null?void 0:r.line;i&&this.catchUp(i),this.tsPrintClassMemberModifiers(t),this.word("accessor",!0),this.space(),t.computed?(this.tokenChar(91),this.print(t.key,t),this.tokenChar(93)):(this._variance(t),this.print(t.key,t)),t.optional&&this.tokenChar(63),t.definite&&this.tokenChar(33),this.print(t.typeAnnotation,t),t.value&&(this.space(),this.tokenChar(61),this.space(),this.print(t.value,t)),this.semicolon()}function rme(t){this.printJoin(t.decorators,t),t.static&&(this.word("static"),this.space()),this.print(t.key,t),this.print(t.typeAnnotation,t),t.value&&(this.space(),this.tokenChar(61),this.space(),this.print(t.value,t)),this.semicolon()}function ime(t){this._classMethodHead(t),this.space(),this.print(t.body,t)}function sme(t){this._classMethodHead(t),this.space(),this.print(t.body,t)}function nme(t){var e,r;this.printJoin(t.decorators,t);let i=(e=t.key.loc)==null||(r=e.end)==null?void 0:r.line;i&&this.catchUp(i),this.tsPrintClassMemberModifiers(t),this._methodHead(t)}function ame(t){this.word("static"),this.space(),this.tokenChar(123),t.body.length===0?this.tokenChar(125):(this.newline(),this.printSequence(t.body,t,{indent:!0}),this.rightBrace(t))}});var cR=g(ti=>{"use strict";c();Object.defineProperty(ti,"__esModule",{value:!0});ti.ArrowFunctionExpression=yme;ti.FunctionDeclaration=ti.FunctionExpression=mme;ti._functionHead=dme;ti._methodHead=pme;ti._param=fme;ti._parameters=cme;ti._params=ume;ti._predicate=hme;var ome=ve(),{isIdentifier:lme}=ome;function ume(t,e,r){this.print(t.typeParameters,t);let i=Sme.call(this,e,r);i&&this.sourceIdentifierName(i.name,i.pos),this.tokenChar(40),this._parameters(t.params,t),this.tokenChar(41);let s=t.type==="ArrowFunctionExpression";this.print(t.returnType,t,s),this._noLineTerminator=s}function cme(t,e){let r=t.length;for(let i=0;i<r;i++)this._param(t[i],e),i<t.length-1&&(this.tokenChar(44),this.space())}function fme(t,e){this.printJoin(t.decorators,t),this.print(t,e),t.optional&&this.tokenChar(63),this.print(t.typeAnnotation,t)}function pme(t){let e=t.kind,r=t.key;(e==="get"||e==="set")&&(this.word(e),this.space()),t.async&&(this.word("async",!0),this.space()),(e==="method"||e==="init")&&t.generator&&this.tokenChar(42),t.computed?(this.tokenChar(91),this.print(r,t),this.tokenChar(93)):this.print(r,t),t.optional&&this.tokenChar(63),this._params(t,t.computed&&t.key.type!=="StringLiteral"?void 0:t.key,void 0)}function hme(t,e){t.predicate&&(t.returnType||this.tokenChar(58),this.space(),this.print(t.predicate,t,e))}function dme(t,e){t.async&&(this.word("async"),this._endsWithInnerRaw=!1,this.space()),this.word("function"),t.generator&&(this._endsWithInnerRaw=!1,this.tokenChar(42)),this.space(),t.id&&this.print(t.id,t),this._params(t,t.id,e),t.type!=="TSDeclareFunction"&&this._predicate(t)}function mme(t,e){this._functionHead(t,e),this.space(),this.print(t.body,t)}function yme(t,e){t.async&&(this.word("async",!0),this.space());let r;!this.format.retainLines&&t.params.length===1&&lme(r=t.params[0])&&!gme(t,r)?this.print(r,t,!0):this._params(t,void 0,e),this._predicate(t,!0),this.space(),this.printInnerComments(),this.token("=>"),this.space(),this.print(t.body,t)}function gme(t,e){var r,i;return!!(t.typeParameters||t.returnType||t.predicate||e.typeAnnotation||e.optional||(r=e.leadingComments)!=null&&r.length||(i=e.trailingComments)!=null&&i.length)}function Sme(t,e){let r=t;if(!r&&e){let l=e.type;l==="VariableDeclarator"?r=e.id:l==="AssignmentExpression"||l==="AssignmentPattern"?r=e.left:l==="ObjectProperty"||l==="ClassProperty"?(!e.computed||e.key.type==="StringLiteral")&&(r=e.key):(l==="ClassPrivateProperty"||l==="ClassAccessorProperty")&&(r=e.key)}if(!r)return;let i;if(r.type==="Identifier"){var s,n;i={pos:(s=r.loc)==null?void 0:s.start,name:((n=r.loc)==null?void 0:n.identifierName)||r.name}}else if(r.type==="PrivateName"){var a;i={pos:(a=r.loc)==null?void 0:a.start,name:"#"+r.id.name}}else if(r.type==="StringLiteral"){var o;i={pos:(o=r.loc)==null?void 0:o.start,name:r.value}}return i}});var fE=g(mr=>{"use strict";c();Object.defineProperty(mr,"__esModule",{value:!0});mr.ExportAllDeclaration=Nme;mr.ExportDefaultDeclaration=Lme;mr.ExportDefaultSpecifier=_me;mr.ExportNamedDeclaration=Dme;mr.ExportNamespaceSpecifier=Ime;mr.ExportSpecifier=Cme;mr.ImportAttribute=Rme;mr.ImportDeclaration=kme;mr.ImportDefaultSpecifier=wme;mr.ImportNamespaceSpecifier=Mme;mr.ImportSpecifier=Ame;mr._printAttributes=Ome;var Tme=ve(),{isClassDeclaration:Eme,isExportDefaultSpecifier:bme,isExportNamespaceSpecifier:xme,isImportDefaultSpecifier:Pme,isImportNamespaceSpecifier:vme,isStatement:pR}=Tme;function Ame(t){(t.importKind==="type"||t.importKind==="typeof")&&(this.word(t.importKind),this.space()),this.print(t.imported,t),t.local&&t.local.name!==t.imported.name&&(this.space(),this.word("as"),this.space(),this.print(t.local,t))}function wme(t){this.print(t.local,t)}function _me(t){this.print(t.exported,t)}function Cme(t){t.exportKind==="type"&&(this.word("type"),this.space()),this.print(t.local,t),t.exported&&t.local.name!==t.exported.name&&(this.space(),this.word("as"),this.space(),this.print(t.exported,t))}function Ime(t){this.tokenChar(42),this.space(),this.word("as"),this.space(),this.print(t.exported,t)}var fR=!1;function Ome(t){let{importAttributesKeyword:e}=this.format,{attributes:r,assertions:i}=t;r&&!e&&!fR&&(fR=!0,console.warn('You are using import attributes, without specifying the desired output syntax.\nPlease specify the "importAttributesKeyword" generator option, whose value can be one of:\n - "with" : `import { a } from "b" with { type: "json" };`\n - "assert" : `import { a } from "b" assert { type: "json" };`\n - "with-legacy" : `import { a } from "b" with type: "json";`\n'));let s=e==="assert"||!e&&i;if(this.word(s?"assert":"with"),this.space(),!s&&e!=="with"){this.printList(r||i,t);return}this.tokenChar(123),this.space(),this.printList(r||i,t),this.space(),this.tokenChar(125)}function Nme(t){var e,r;this.word("export"),this.space(),t.exportKind==="type"&&(this.word("type"),this.space()),this.tokenChar(42),this.space(),this.word("from"),this.space(),(e=t.attributes)!=null&&e.length||(r=t.assertions)!=null&&r.length?(this.print(t.source,t,!0),this.space(),this._printAttributes(t)):this.print(t.source,t),this.semicolon()}function hR(t,e){Eme(e.declaration)&&t._shouldPrintDecoratorsBeforeExport(e)&&t.printJoin(e.declaration.decorators,e)}function Dme(t){if(hR(this,t),this.word("export"),this.space(),t.declaration){let i=t.declaration;this.print(i,t),pR(i)||this.semicolon()}else{t.exportKind==="type"&&(this.word("type"),this.space());let i=t.specifiers.slice(0),s=!1;for(;;){let n=i[0];if(bme(n)||xme(n))s=!0,this.print(i.shift(),t),i.length&&(this.tokenChar(44),this.space());else break}if((i.length||!i.length&&!s)&&(this.tokenChar(123),i.length&&(this.space(),this.printList(i,t),this.space()),this.tokenChar(125)),t.source){var e,r;this.space(),this.word("from"),this.space(),(e=t.attributes)!=null&&e.length||(r=t.assertions)!=null&&r.length?(this.print(t.source,t,!0),this.space(),this._printAttributes(t)):this.print(t.source,t)}this.semicolon()}}function Lme(t){hR(this,t),this.word("export"),this.noIndentInnerCommentsHere(),this.space(),this.word("default"),this.space();let e=t.declaration;this.print(e,t),pR(e)||this.semicolon()}function kme(t){var e,r;this.word("import"),this.space();let i=t.importKind==="type"||t.importKind==="typeof";i?(this.noIndentInnerCommentsHere(),this.word(t.importKind),this.space()):t.module&&(this.noIndentInnerCommentsHere(),this.word("module"),this.space());let s=t.specifiers.slice(0),n=!!s.length;for(;n;){let a=s[0];if(Pme(a)||vme(a))this.print(s.shift(),t),s.length&&(this.tokenChar(44),this.space());else break}s.length?(this.tokenChar(123),this.space(),this.printList(s,t),this.space(),this.tokenChar(125)):i&&!n&&(this.tokenChar(123),this.tokenChar(125)),(n||i)&&(this.space(),this.word("from"),this.space()),(e=t.attributes)!=null&&e.length||(r=t.assertions)!=null&&r.length?(this.print(t.source,t,!0),this.space(),this._printAttributes(t)):this.print(t.source,t),this.semicolon()}function Rme(t){this.print(t.key),this.tokenChar(58),this.space(),this.print(t.value)}function Mme(t){this.tokenChar(42),this.space(),this.word("as"),this.space(),this.print(t.local,t)}});var gR=g((C5e,yR)=>{"use strict";c();var dR={},Fme=dR.hasOwnProperty,mR=(t,e)=>{for(let r in t)Fme.call(t,r)&&e(r,t[r])},Bme=(t,e)=>(e&&mR(e,(r,i)=>{t[r]=i}),t),jme=(t,e)=>{let r=t.length,i=-1;for(;++i<r;)e(t[i])},Ql=dR.toString,qme=Array.isArray,Ume=Buffer.isBuffer,$me=t=>Ql.call(t)=="[object Object]",Vme=t=>typeof t=="string"||Ql.call(t)=="[object String]",Kme=t=>typeof t=="number"||Ql.call(t)=="[object Number]",Hme=t=>typeof t=="function",Wme=t=>Ql.call(t)=="[object Map]",Gme=t=>Ql.call(t)=="[object Set]",Yme={'"':'\\"',"'":"\\'","\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t"},Xme=/["'\\\b\f\n\r\t]/,zme=/[0-9]/,Jme=/[ !#-&\(-\[\]-_a-~]/,Hs=(t,e)=>{let r=()=>{u=l,++e.indentLevel,l=e.indent.repeat(e.indentLevel)},i={escapeEverything:!1,minimal:!1,isScriptContext:!1,quotes:"single",wrap:!1,es6:!1,json:!1,compact:!0,lowercaseHex:!1,numbers:"decimal",indent:" ",indentLevel:0,__inline1__:!1,__inline2__:!1},s=e&&e.json;s&&(i.quotes="double",i.wrap=!0),e=Bme(i,e),e.quotes!="single"&&e.quotes!="double"&&e.quotes!="backtick"&&(e.quotes="single");let n=e.quotes=="double"?'"':e.quotes=="backtick"?"`":"'",a=e.compact,o=e.lowercaseHex,l=e.indent.repeat(e.indentLevel),u="",f=e.__inline1__,p=e.__inline2__,h=a?"":`
38
+ `,d,T=!0,b=e.numbers=="binary",x=e.numbers=="octal",_=e.numbers=="decimal",R=e.numbers=="hexadecimal";if(s&&t&&Hme(t.toJSON)&&(t=t.toJSON()),!Vme(t)){if(Wme(t))return t.size==0?"new Map()":(a||(e.__inline1__=!0,e.__inline2__=!1),"new Map("+Hs(Array.from(t),e)+")");if(Gme(t))return t.size==0?"new Set()":"new Set("+Hs(Array.from(t),e)+")";if(Ume(t))return t.length==0?"Buffer.from([])":"Buffer.from("+Hs(Array.from(t),e)+")";if(qme(t))return d=[],e.wrap=!0,f&&(e.__inline1__=!1,e.__inline2__=!0),p||r(),jme(t,L=>{T=!1,p&&(e.__inline2__=!1),d.push((a||p?"":l)+Hs(L,e))}),T?"[]":p?"["+d.join(", ")+"]":"["+h+d.join(","+h)+h+(a?"":u)+"]";if(Kme(t)){if(s)return JSON.stringify(t);if(_)return String(t);if(R){let L=t.toString(16);return o||(L=L.toUpperCase()),"0x"+L}if(b)return"0b"+t.toString(2);if(x)return"0o"+t.toString(8)}else return $me(t)?(d=[],e.wrap=!0,r(),mR(t,(L,F)=>{T=!1,d.push((a?"":l)+Hs(L,e)+":"+(a?"":" ")+Hs(F,e))}),T?"{}":"{"+h+d.join(","+h)+h+(a?"":u)+"}"):s?JSON.stringify(t)||"null":String(t)}let k=t,M=-1,O=k.length;for(d="";++M<O;){let L=k.charAt(M);if(e.es6){let B=k.charCodeAt(M);if(B>=55296&&B<=56319&&O>M+1){let oe=k.charCodeAt(M+1);if(oe>=56320&&oe<=57343){let _e=((B-55296)*1024+oe-56320+65536).toString(16);o||(_e=_e.toUpperCase()),d+="\\u{"+_e+"}",++M;continue}}}if(!e.escapeEverything){if(Jme.test(L)){d+=L;continue}if(L=='"'){d+=n==L?'\\"':L;continue}if(L=="`"){d+=n==L?"\\`":L;continue}if(L=="'"){d+=n==L?"\\'":L;continue}}if(L=="\0"&&!s&&!zme.test(k.charAt(M+1))){d+="\\0";continue}if(Xme.test(L)){d+=Yme[L];continue}let F=L.charCodeAt(0);if(e.minimal&&F!=8232&&F!=8233){d+=L;continue}let H=F.toString(16);o||(H=H.toUpperCase());let V=H.length>2||s,X="\\"+(V?"u":"x")+("0000"+H).slice(V?-4:-2);d+=X}return e.wrap&&(d=n+d+n),n=="`"&&(d=d.replace(/\$\{/g,"\\${")),e.isScriptContext?d.replace(/<\/(script|style)/gi,"<\\/$1").replace(/<!--/g,s?"\\u003C!--":"\\x3C!--"):d};Hs.version="2.5.2";yR.exports=Hs});var hE=g(tt=>{"use strict";c();Object.defineProperty(tt,"__esModule",{value:!0});tt.ArgumentPlaceholder=tye;tt.ArrayPattern=tt.ArrayExpression=aye;tt.BigIntLiteral=dye;tt.BooleanLiteral=cye;tt.DecimalLiteral=mye;tt.Identifier=eye;tt.NullLiteral=fye;tt.NumericLiteral=pye;tt.ObjectPattern=tt.ObjectExpression=iye;tt.ObjectMethod=sye;tt.ObjectProperty=nye;tt.PipelineBareFunction=Sye;tt.PipelinePrimaryTopicReference=Tye;tt.PipelineTopicExpression=gye;tt.RecordExpression=oye;tt.RegExpLiteral=uye;tt.SpreadElement=tt.RestElement=rye;tt.StringLiteral=hye;tt.TopicReference=yye;tt.TupleExpression=lye;var Qme=ve(),TR=gR(),{isAssignmentPattern:Zme,isIdentifier:pE}=Qme;function eye(t){var e;this.sourceIdentifierName(((e=t.loc)==null?void 0:e.identifierName)||t.name),this.word(t.name)}function tye(){this.tokenChar(63)}function rye(t){this.token("..."),this.print(t.argument,t)}function iye(t){let e=t.properties;this.tokenChar(123),e.length&&(this.space(),this.printList(e,t,{indent:!0,statement:!0}),this.space()),this.sourceWithOffset("end",t.loc,0,-1),this.tokenChar(125)}function sye(t){this.printJoin(t.decorators,t),this._methodHead(t),this.space(),this.print(t.body,t)}function nye(t){if(this.printJoin(t.decorators,t),t.computed)this.tokenChar(91),this.print(t.key,t),this.tokenChar(93);else{if(Zme(t.value)&&pE(t.key)&&t.key.name===t.value.left.name){this.print(t.value,t);return}if(this.print(t.key,t),t.shorthand&&pE(t.key)&&pE(t.value)&&t.key.name===t.value.name)return}this.tokenChar(58),this.space(),this.print(t.value,t)}function aye(t){let e=t.elements,r=e.length;this.tokenChar(91);for(let i=0;i<e.length;i++){let s=e[i];s?(i>0&&this.space(),this.print(s,t),i<r-1&&this.tokenChar(44)):this.tokenChar(44)}this.tokenChar(93)}function oye(t){let e=t.properties,r,i;if(this.format.recordAndTupleSyntaxType==="bar")r="{|",i="|}";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).`);r="#{",i="}"}this.token(r),e.length&&(this.space(),this.printList(e,t,{indent:!0,statement:!0}),this.space()),this.token(i)}function lye(t){let e=t.elements,r=e.length,i,s;if(this.format.recordAndTupleSyntaxType==="bar")i="[|",s="|]";else if(this.format.recordAndTupleSyntaxType==="hash")i="#[",s="]";else throw new Error(`${this.format.recordAndTupleSyntaxType} is not a valid recordAndTuple syntax type`);this.token(i);for(let n=0;n<e.length;n++){let a=e[n];a&&(n>0&&this.space(),this.print(a,t),n<r-1&&this.tokenChar(44))}this.token(s)}function uye(t){this.word(`/${t.pattern}/${t.flags}`)}function cye(t){this.word(t.value?"true":"false")}function fye(){this.word("null")}function pye(t){let e=this.getPossibleRaw(t),r=this.format.jsescOption,i=t.value+"";r.numbers?this.number(TR(t.value,r)):e==null?this.number(i):this.format.minified?this.number(e.length<i.length?e:i):this.number(e)}function hye(t){let e=this.getPossibleRaw(t);if(!this.format.minified&&e!==void 0){this.token(e);return}let r=TR(t.value,this.format.jsescOption);this.token(r)}function dye(t){let e=this.getPossibleRaw(t);if(!this.format.minified&&e!==void 0){this.word(e);return}this.word(t.value+"n")}function mye(t){let e=this.getPossibleRaw(t);if(!this.format.minified&&e!==void 0){this.word(e);return}this.word(t.value+"m")}var SR=new Set(["^^","@@","^","%","#"]);function yye(){let{topicToken:t}=this.format;if(SR.has(t))this.token(t);else{let e=JSON.stringify(t),r=Array.from(SR,i=>JSON.stringify(i));throw new Error(`The "topicToken" generator option must be one of ${r.join(", ")} (${e} received instead).`)}}function gye(t){this.print(t.expression,t)}function Sye(t){this.print(t.callee,t)}function Tye(){this.tokenChar(35)}});var bR=g(ae=>{"use strict";c();Object.defineProperty(ae,"__esModule",{value:!0});ae.AnyTypeAnnotation=Pye;ae.ArrayTypeAnnotation=vye;ae.BooleanLiteralTypeAnnotation=wye;ae.BooleanTypeAnnotation=Aye;ae.DeclareClass=Cye;ae.DeclareExportAllDeclaration=jye;ae.DeclareExportDeclaration=Bye;ae.DeclareFunction=Iye;ae.DeclareInterface=Dye;ae.DeclareModule=Lye;ae.DeclareModuleExports=kye;ae.DeclareOpaqueType=Mye;ae.DeclareTypeAlias=Rye;ae.DeclareVariable=Fye;ae.DeclaredPredicate=Nye;ae.EmptyTypeAnnotation=oge;ae.EnumBooleanBody=Uye;ae.EnumBooleanMember=Wye;ae.EnumDeclaration=qye;ae.EnumDefaultedMember=Hye;ae.EnumNumberBody=$ye;ae.EnumNumberMember=Gye;ae.EnumStringBody=Vye;ae.EnumStringMember=Yye;ae.EnumSymbolBody=Kye;ae.ExistsTypeAnnotation=zye;ae.FunctionTypeAnnotation=Jye;ae.FunctionTypeParam=Qye;ae.IndexedAccessType=Dge;ae.InferredPredicate=Oye;ae.InterfaceDeclaration=rge;ae.GenericTypeAnnotation=ae.ClassImplements=ae.InterfaceExtends=Zye;ae.InterfaceTypeAnnotation=sge;ae.IntersectionTypeAnnotation=nge;ae.MixedTypeAnnotation=age;ae.NullLiteralTypeAnnotation=_ye;ae.NullableTypeAnnotation=lge;Object.defineProperty(ae,"NumberLiteralTypeAnnotation",{enumerable:!0,get:function(){return ER.NumericLiteral}});ae.NumberTypeAnnotation=uge;ae.ObjectTypeAnnotation=Tge;ae.ObjectTypeCallProperty=bge;ae.ObjectTypeIndexer=xge;ae.ObjectTypeInternalSlot=Ege;ae.ObjectTypeProperty=Pge;ae.ObjectTypeSpreadProperty=vge;ae.OpaqueType=Sge;ae.OptionalIndexedAccessType=Lge;ae.QualifiedTypeIdentifier=Age;Object.defineProperty(ae,"StringLiteralTypeAnnotation",{enumerable:!0,get:function(){return ER.StringLiteral}});ae.StringTypeAnnotation=cge;ae.SymbolTypeAnnotation=wge;ae.ThisTypeAnnotation=fge;ae.TupleTypeAnnotation=pge;ae.TypeAlias=dge;ae.TypeAnnotation=mge;ae.TypeCastExpression=Ige;ae.TypeParameter=gge;ae.TypeParameterDeclaration=ae.TypeParameterInstantiation=yge;ae.TypeofTypeAnnotation=hge;ae.UnionTypeAnnotation=Cge;ae.Variance=Oge;ae.VoidTypeAnnotation=Nge;ae._interfaceish=ege;ae._variance=tge;var Eye=ve(),bye=fE(),ER=hE(),{isDeclareExportDeclaration:Up,isStatement:xye}=Eye;function Pye(){this.word("any")}function vye(t){this.print(t.elementType,t,!0),this.tokenChar(91),this.tokenChar(93)}function Aye(){this.word("boolean")}function wye(t){this.word(t.value?"true":"false")}function _ye(){this.word("null")}function Cye(t,e){Up(e)||(this.word("declare"),this.space()),this.word("class"),this.space(),this._interfaceish(t)}function Iye(t,e){Up(e)||(this.word("declare"),this.space()),this.word("function"),this.space(),this.print(t.id,t),this.print(t.id.typeAnnotation.typeAnnotation,t),t.predicate&&(this.space(),this.print(t.predicate,t)),this.semicolon()}function Oye(){this.tokenChar(37),this.word("checks")}function Nye(t){this.tokenChar(37),this.word("checks"),this.tokenChar(40),this.print(t.value,t),this.tokenChar(41)}function Dye(t){this.word("declare"),this.space(),this.InterfaceDeclaration(t)}function Lye(t){this.word("declare"),this.space(),this.word("module"),this.space(),this.print(t.id,t),this.space(),this.print(t.body,t)}function kye(t){this.word("declare"),this.space(),this.word("module"),this.tokenChar(46),this.word("exports"),this.print(t.typeAnnotation,t)}function Rye(t){this.word("declare"),this.space(),this.TypeAlias(t)}function Mye(t,e){Up(e)||(this.word("declare"),this.space()),this.OpaqueType(t)}function Fye(t,e){Up(e)||(this.word("declare"),this.space()),this.word("var"),this.space(),this.print(t.id,t),this.print(t.id.typeAnnotation,t),this.semicolon()}function Bye(t){this.word("declare"),this.space(),this.word("export"),this.space(),t.default&&(this.word("default"),this.space()),Xye.call(this,t)}function jye(t){this.word("declare"),this.space(),bye.ExportAllDeclaration.call(this,t)}function qye(t){let{id:e,body:r}=t;this.word("enum"),this.space(),this.print(e,t),this.print(r,t)}function $p(t,e,r){r&&(t.space(),t.word("of"),t.space(),t.word(e)),t.space()}function Vp(t,e){let{members:r}=e;t.token("{"),t.indent(),t.newline();for(let i of r)t.print(i,e),t.newline();e.hasUnknownMembers&&(t.token("..."),t.newline()),t.dedent(),t.token("}")}function Uye(t){let{explicitType:e}=t;$p(this,"boolean",e),Vp(this,t)}function $ye(t){let{explicitType:e}=t;$p(this,"number",e),Vp(this,t)}function Vye(t){let{explicitType:e}=t;$p(this,"string",e),Vp(this,t)}function Kye(t){$p(this,"symbol",!0),Vp(this,t)}function Hye(t){let{id:e}=t;this.print(e,t),this.tokenChar(44)}function dE(t,e){let{id:r,init:i}=e;t.print(r,e),t.space(),t.token("="),t.space(),t.print(i,e),t.token(",")}function Wye(t){dE(this,t)}function Gye(t){dE(this,t)}function Yye(t){dE(this,t)}function Xye(t){if(t.declaration){let e=t.declaration;this.print(e,t),xye(e)||this.semicolon()}else this.tokenChar(123),t.specifiers.length&&(this.space(),this.printList(t.specifiers,t),this.space()),this.tokenChar(125),t.source&&(this.space(),this.word("from"),this.space(),this.print(t.source,t)),this.semicolon()}function zye(){this.tokenChar(42)}function Jye(t,e){this.print(t.typeParameters,t),this.tokenChar(40),t.this&&(this.word("this"),this.tokenChar(58),this.space(),this.print(t.this.typeAnnotation,t),(t.params.length||t.rest)&&(this.tokenChar(44),this.space())),this.printList(t.params,t),t.rest&&(t.params.length&&(this.tokenChar(44),this.space()),this.token("..."),this.print(t.rest,t)),this.tokenChar(41);let r=e==null?void 0:e.type;r!=null&&(r==="ObjectTypeCallProperty"||r==="ObjectTypeInternalSlot"||r==="DeclareFunction"||r==="ObjectTypeProperty"&&e.method)?this.tokenChar(58):(this.space(),this.token("=>")),this.space(),this.print(t.returnType,t)}function Qye(t){this.print(t.name,t),t.optional&&this.tokenChar(63),t.name&&(this.tokenChar(58),this.space()),this.print(t.typeAnnotation,t)}function Zye(t){this.print(t.id,t),this.print(t.typeParameters,t,!0)}function ege(t){var e;if(this.print(t.id,t),this.print(t.typeParameters,t),(e=t.extends)!=null&&e.length&&(this.space(),this.word("extends"),this.space(),this.printList(t.extends,t)),t.type==="DeclareClass"){var r,i;(r=t.mixins)!=null&&r.length&&(this.space(),this.word("mixins"),this.space(),this.printList(t.mixins,t)),(i=t.implements)!=null&&i.length&&(this.space(),this.word("implements"),this.space(),this.printList(t.implements,t))}this.space(),this.print(t.body,t)}function tge(t){var e;let r=(e=t.variance)==null?void 0:e.kind;r!=null&&(r==="plus"?this.tokenChar(43):r==="minus"&&this.tokenChar(45))}function rge(t){this.word("interface"),this.space(),this._interfaceish(t)}function ige(){this.space(),this.tokenChar(38),this.space()}function sge(t){var e;this.word("interface"),(e=t.extends)!=null&&e.length&&(this.space(),this.word("extends"),this.space(),this.printList(t.extends,t)),this.space(),this.print(t.body,t)}function nge(t){this.printJoin(t.types,t,{separator:ige})}function age(){this.word("mixed")}function oge(){this.word("empty")}function lge(t){this.tokenChar(63),this.print(t.typeAnnotation,t)}function uge(){this.word("number")}function cge(){this.word("string")}function fge(){this.word("this")}function pge(t){this.tokenChar(91),this.printList(t.types,t),this.tokenChar(93)}function hge(t){this.word("typeof"),this.space(),this.print(t.argument,t)}function dge(t){this.word("type"),this.space(),this.print(t.id,t),this.print(t.typeParameters,t),this.space(),this.tokenChar(61),this.space(),this.print(t.right,t),this.semicolon()}function mge(t){this.tokenChar(58),this.space(),t.optional&&this.tokenChar(63),this.print(t.typeAnnotation,t)}function yge(t){this.tokenChar(60),this.printList(t.params,t,{}),this.tokenChar(62)}function gge(t){this._variance(t),this.word(t.name),t.bound&&this.print(t.bound,t),t.default&&(this.space(),this.tokenChar(61),this.space(),this.print(t.default,t))}function Sge(t){this.word("opaque"),this.space(),this.word("type"),this.space(),this.print(t.id,t),this.print(t.typeParameters,t),t.supertype&&(this.tokenChar(58),this.space(),this.print(t.supertype,t)),t.impltype&&(this.space(),this.tokenChar(61),this.space(),this.print(t.impltype,t)),this.semicolon()}function Tge(t){t.exact?this.token("{|"):this.tokenChar(123);let e=[...t.properties,...t.callProperties||[],...t.indexers||[],...t.internalSlots||[]];e.length&&(this.newline(),this.space(),this.printJoin(e,t,{addNewlines(r){if(r&&!e[0])return 1},indent:!0,statement:!0,iterator:()=>{(e.length!==1||t.inexact)&&(this.tokenChar(44),this.space())}}),this.space()),t.inexact&&(this.indent(),this.token("..."),e.length&&this.newline(),this.dedent()),t.exact?this.token("|}"):this.tokenChar(125)}function Ege(t){t.static&&(this.word("static"),this.space()),this.tokenChar(91),this.tokenChar(91),this.print(t.id,t),this.tokenChar(93),this.tokenChar(93),t.optional&&this.tokenChar(63),t.method||(this.tokenChar(58),this.space()),this.print(t.value,t)}function bge(t){t.static&&(this.word("static"),this.space()),this.print(t.value,t)}function xge(t){t.static&&(this.word("static"),this.space()),this._variance(t),this.tokenChar(91),t.id&&(this.print(t.id,t),this.tokenChar(58),this.space()),this.print(t.key,t),this.tokenChar(93),this.tokenChar(58),this.space(),this.print(t.value,t)}function Pge(t){t.proto&&(this.word("proto"),this.space()),t.static&&(this.word("static"),this.space()),(t.kind==="get"||t.kind==="set")&&(this.word(t.kind),this.space()),this._variance(t),this.print(t.key,t),t.optional&&this.tokenChar(63),t.method||(this.tokenChar(58),this.space()),this.print(t.value,t)}function vge(t){this.token("..."),this.print(t.argument,t)}function Age(t){this.print(t.qualification,t),this.tokenChar(46),this.print(t.id,t)}function wge(){this.word("symbol")}function _ge(){this.space(),this.tokenChar(124),this.space()}function Cge(t){this.printJoin(t.types,t,{separator:_ge})}function Ige(t){this.tokenChar(40),this.print(t.expression,t),this.print(t.typeAnnotation,t),this.tokenChar(41)}function Oge(t){t.kind==="plus"?this.tokenChar(43):this.tokenChar(45)}function Nge(){this.word("void")}function Dge(t){this.print(t.objectType,t,!0),this.tokenChar(91),this.print(t.indexType,t),this.tokenChar(93)}function Lge(t){this.print(t.objectType,t),t.optional&&this.token("?."),this.tokenChar(91),this.print(t.indexType,t),this.tokenChar(93)}});var xR=g(Xi=>{"use strict";c();Object.defineProperty(Xi,"__esModule",{value:!0});Xi.BlockStatement=Mge;Xi.Directive=Fge;Xi.DirectiveLiteral=qge;Xi.File=kge;Xi.InterpreterDirective=Uge;Xi.Placeholder=$ge;Xi.Program=Rge;function kge(t){t.program&&this.print(t.program.interpreter,t),this.print(t.program,t)}function Rge(t){var e;this.noIndentInnerCommentsHere(),this.printInnerComments();let r=(e=t.directives)==null?void 0:e.length;if(r){var i;let s=t.body.length?2:1;this.printSequence(t.directives,t,{trailingCommentsLineOffset:s}),(i=t.directives[r-1].trailingComments)!=null&&i.length||this.newline(s)}this.printSequence(t.body,t)}function Mge(t){var e;this.tokenChar(123);let r=(e=t.directives)==null?void 0:e.length;if(r){var i;let s=t.body.length?2:1;this.printSequence(t.directives,t,{indent:!0,trailingCommentsLineOffset:s}),(i=t.directives[r-1].trailingComments)!=null&&i.length||this.newline(s)}this.printSequence(t.body,t,{indent:!0}),this.rightBrace(t)}function Fge(t){this.print(t.value,t),this.semicolon()}var Bge=/(?:^|[^\\])(?:\\\\)*'/,jge=/(?:^|[^\\])(?:\\\\)*"/;function qge(t){let e=this.getPossibleRaw(t);if(!this.format.minified&&e!==void 0){this.token(e);return}let{value:r}=t;if(!jge.test(r))this.token(`"${r}"`);else if(!Bge.test(r))this.token(`'${r}'`);else throw new Error("Malformed AST: it is not possible to print a directive containing both unescaped single and double quotes.")}function Uge(t){this.token(`#!${t.value}`),this.newline(1,!0)}function $ge(t){this.token("%%"),this.print(t.name),this.token("%%"),t.expectedNode==="Statement"&&this.semicolon()}});var PR=g(Dt=>{"use strict";c();Object.defineProperty(Dt,"__esModule",{value:!0});Dt.JSXAttribute=Vge;Dt.JSXClosingElement=eSe;Dt.JSXClosingFragment=sSe;Dt.JSXElement=Jge;Dt.JSXEmptyExpression=tSe;Dt.JSXExpressionContainer=Yge;Dt.JSXFragment=rSe;Dt.JSXIdentifier=Kge;Dt.JSXMemberExpression=Wge;Dt.JSXNamespacedName=Hge;Dt.JSXOpeningElement=Zge;Dt.JSXOpeningFragment=iSe;Dt.JSXSpreadAttribute=Gge;Dt.JSXSpreadChild=Xge;Dt.JSXText=zge;function Vge(t){this.print(t.name,t),t.value&&(this.tokenChar(61),this.print(t.value,t))}function Kge(t){this.word(t.name)}function Hge(t){this.print(t.namespace,t),this.tokenChar(58),this.print(t.name,t)}function Wge(t){this.print(t.object,t),this.tokenChar(46),this.print(t.property,t)}function Gge(t){this.tokenChar(123),this.token("..."),this.print(t.argument,t),this.tokenChar(125)}function Yge(t){this.tokenChar(123),this.print(t.expression,t),this.tokenChar(125)}function Xge(t){this.tokenChar(123),this.token("..."),this.print(t.expression,t),this.tokenChar(125)}function zge(t){let e=this.getPossibleRaw(t);e!==void 0?this.token(e,!0):this.token(t.value,!0)}function Jge(t){let e=t.openingElement;if(this.print(e,t),!e.selfClosing){this.indent();for(let r of t.children)this.print(r,t);this.dedent(),this.print(t.closingElement,t)}}function Qge(){this.space()}function Zge(t){this.tokenChar(60),this.print(t.name,t),this.print(t.typeParameters,t),t.attributes.length>0&&(this.space(),this.printJoin(t.attributes,t,{separator:Qge})),t.selfClosing?(this.space(),this.token("/>")):this.tokenChar(62)}function eSe(t){this.token("</"),this.print(t.name,t),this.tokenChar(62)}function tSe(){this.printInnerComments()}function rSe(t){this.print(t.openingFragment,t),this.indent();for(let e of t.children)this.print(e,t);this.dedent(),this.print(t.closingFragment,t)}function iSe(){this.tokenChar(60),this.tokenChar(62)}function sSe(){this.token("</"),this.tokenChar(62)}});var wR=g(se=>{"use strict";c();Object.defineProperty(se,"__esModule",{value:!0});se.TSAnyKeyword=SSe;se.TSArrayType=qSe;se.TSSatisfiesExpression=se.TSAsExpression=s0e;se.TSBigIntKeyword=TSe;se.TSBooleanKeyword=PSe;se.TSCallSignatureDeclaration=pSe;se.TSConditionalType=GSe;se.TSConstructSignatureDeclaration=hSe;se.TSConstructorType=LSe;se.TSDeclareFunction=uSe;se.TSDeclareMethod=cSe;se.TSEnumDeclaration=o0e;se.TSEnumMember=l0e;se.TSExportAssignment=m0e;se.TSExpressionWithTypeArguments=e0e;se.TSExternalModuleReference=h0e;se.TSFunctionType=DSe;se.TSImportEqualsDeclaration=p0e;se.TSImportType=f0e;se.TSIndexSignature=gSe;se.TSIndexedAccessType=JSe;se.TSInferType=YSe;se.TSInstantiationExpression=a0e;se.TSInterfaceBody=r0e;se.TSInterfaceDeclaration=t0e;se.TSIntersectionType=WSe;se.TSIntrinsicKeyword=OSe;se.TSLiteralType=ZSe;se.TSMappedType=QSe;se.TSMethodSignature=ySe;se.TSModuleBlock=c0e;se.TSModuleDeclaration=u0e;se.TSNamedTupleMember=KSe;se.TSNamespaceExportDeclaration=y0e;se.TSNeverKeyword=ISe;se.TSNonNullExpression=d0e;se.TSNullKeyword=CSe;se.TSNumberKeyword=bSe;se.TSObjectKeyword=xSe;se.TSOptionalType=$Se;se.TSParameterProperty=lSe;se.TSParenthesizedType=XSe;se.TSPropertySignature=dSe;se.TSQualifiedName=fSe;se.TSRestType=VSe;se.TSStringKeyword=vSe;se.TSSymbolKeyword=ASe;se.TSThisType=NSe;se.TSTupleType=USe;se.TSTypeAliasDeclaration=i0e;se.TSTypeAnnotation=nSe;se.TSTypeAssertion=n0e;se.TSTypeLiteral=BSe;se.TSTypeOperator=zSe;se.TSTypeParameter=oSe;se.TSTypeParameterDeclaration=se.TSTypeParameterInstantiation=aSe;se.TSTypePredicate=MSe;se.TSTypeQuery=FSe;se.TSTypeReference=RSe;se.TSUndefinedKeyword=_Se;se.TSUnionType=HSe;se.TSUnknownKeyword=ESe;se.TSVoidKeyword=wSe;se.tsPrintClassMemberModifiers=S0e;se.tsPrintFunctionOrConstructorType=kSe;se.tsPrintPropertyOrMethodName=mSe;se.tsPrintSignatureDeclarationBase=g0e;se.tsPrintTypeLiteralOrInterfaceBody=jSe;function nSe(t){this.tokenChar(58),this.space(),t.optional&&this.tokenChar(63),this.print(t.typeAnnotation,t)}function aSe(t,e){this.tokenChar(60),this.printList(t.params,t,{}),e.type==="ArrowFunctionExpression"&&t.params.length===1&&this.tokenChar(44),this.tokenChar(62)}function oSe(t){t.in&&(this.word("in"),this.space()),t.out&&(this.word("out"),this.space()),this.word(t.name),t.constraint&&(this.space(),this.word("extends"),this.space(),this.print(t.constraint,t)),t.default&&(this.space(),this.tokenChar(61),this.space(),this.print(t.default,t))}function lSe(t){t.accessibility&&(this.word(t.accessibility),this.space()),t.readonly&&(this.word("readonly"),this.space()),this._param(t.parameter)}function uSe(t,e){t.declare&&(this.word("declare"),this.space()),this._functionHead(t,e),this.tokenChar(59)}function cSe(t){this._classMethodHead(t),this.tokenChar(59)}function fSe(t){this.print(t.left,t),this.tokenChar(46),this.print(t.right,t)}function pSe(t){this.tsPrintSignatureDeclarationBase(t),this.tokenChar(59)}function hSe(t){this.word("new"),this.space(),this.tsPrintSignatureDeclarationBase(t),this.tokenChar(59)}function dSe(t){let{readonly:e,initializer:r}=t;e&&(this.word("readonly"),this.space()),this.tsPrintPropertyOrMethodName(t),this.print(t.typeAnnotation,t),r&&(this.space(),this.tokenChar(61),this.space(),this.print(r,t)),this.tokenChar(59)}function mSe(t){t.computed&&this.tokenChar(91),this.print(t.key,t),t.computed&&this.tokenChar(93),t.optional&&this.tokenChar(63)}function ySe(t){let{kind:e}=t;(e==="set"||e==="get")&&(this.word(e),this.space()),this.tsPrintPropertyOrMethodName(t),this.tsPrintSignatureDeclarationBase(t),this.tokenChar(59)}function gSe(t){let{readonly:e,static:r}=t;r&&(this.word("static"),this.space()),e&&(this.word("readonly"),this.space()),this.tokenChar(91),this._parameters(t.parameters,t),this.tokenChar(93),this.print(t.typeAnnotation,t),this.tokenChar(59)}function SSe(){this.word("any")}function TSe(){this.word("bigint")}function ESe(){this.word("unknown")}function bSe(){this.word("number")}function xSe(){this.word("object")}function PSe(){this.word("boolean")}function vSe(){this.word("string")}function ASe(){this.word("symbol")}function wSe(){this.word("void")}function _Se(){this.word("undefined")}function CSe(){this.word("null")}function ISe(){this.word("never")}function OSe(){this.word("intrinsic")}function NSe(){this.word("this")}function DSe(t){this.tsPrintFunctionOrConstructorType(t)}function LSe(t){t.abstract&&(this.word("abstract"),this.space()),this.word("new"),this.space(),this.tsPrintFunctionOrConstructorType(t)}function kSe(t){let{typeParameters:e}=t,r=t.parameters;this.print(e,t),this.tokenChar(40),this._parameters(r,t),this.tokenChar(41),this.space(),this.token("=>"),this.space();let i=t.typeAnnotation;this.print(i.typeAnnotation,t)}function RSe(t){this.print(t.typeName,t,!0),this.print(t.typeParameters,t,!0)}function MSe(t){t.asserts&&(this.word("asserts"),this.space()),this.print(t.parameterName),t.typeAnnotation&&(this.space(),this.word("is"),this.space(),this.print(t.typeAnnotation.typeAnnotation))}function FSe(t){this.word("typeof"),this.space(),this.print(t.exprName),t.typeParameters&&this.print(t.typeParameters,t)}function BSe(t){this.tsPrintTypeLiteralOrInterfaceBody(t.members,t)}function jSe(t,e){mE(this,t,e)}function mE(t,e,r){if(t.token("{"),e.length){t.indent(),t.newline();for(let i of e)t.print(i,r),t.newline();t.dedent()}t.rightBrace(r)}function qSe(t){this.print(t.elementType,t,!0),this.token("[]")}function USe(t){this.tokenChar(91),this.printList(t.elementTypes,t),this.tokenChar(93)}function $Se(t){this.print(t.typeAnnotation,t),this.tokenChar(63)}function VSe(t){this.token("..."),this.print(t.typeAnnotation,t)}function KSe(t){this.print(t.label,t),t.optional&&this.tokenChar(63),this.tokenChar(58),this.space(),this.print(t.elementType,t)}function HSe(t){AR(this,t,"|")}function WSe(t){AR(this,t,"&")}function AR(t,e,r){t.printJoin(e.types,e,{separator(){this.space(),this.token(r),this.space()}})}function GSe(t){this.print(t.checkType),this.space(),this.word("extends"),this.space(),this.print(t.extendsType),this.space(),this.tokenChar(63),this.space(),this.print(t.trueType),this.space(),this.tokenChar(58),this.space(),this.print(t.falseType)}function YSe(t){this.token("infer"),this.space(),this.print(t.typeParameter)}function XSe(t){this.tokenChar(40),this.print(t.typeAnnotation,t),this.tokenChar(41)}function zSe(t){this.word(t.operator),this.space(),this.print(t.typeAnnotation,t)}function JSe(t){this.print(t.objectType,t,!0),this.tokenChar(91),this.print(t.indexType,t),this.tokenChar(93)}function QSe(t){let{nameType:e,optional:r,readonly:i,typeParameter:s}=t;this.tokenChar(123),this.space(),i&&(vR(this,i),this.word("readonly"),this.space()),this.tokenChar(91),this.word(s.name),this.space(),this.word("in"),this.space(),this.print(s.constraint,s),e&&(this.space(),this.word("as"),this.space(),this.print(e,t)),this.tokenChar(93),r&&(vR(this,r),this.tokenChar(63)),this.tokenChar(58),this.space(),this.print(t.typeAnnotation,t),this.space(),this.tokenChar(125)}function vR(t,e){e!==!0&&t.token(e)}function ZSe(t){this.print(t.literal,t)}function e0e(t){this.print(t.expression,t),this.print(t.typeParameters,t)}function t0e(t){let{declare:e,id:r,typeParameters:i,extends:s,body:n}=t;e&&(this.word("declare"),this.space()),this.word("interface"),this.space(),this.print(r,t),this.print(i,t),s!=null&&s.length&&(this.space(),this.word("extends"),this.space(),this.printList(s,t)),this.space(),this.print(n,t)}function r0e(t){this.tsPrintTypeLiteralOrInterfaceBody(t.body,t)}function i0e(t){let{declare:e,id:r,typeParameters:i,typeAnnotation:s}=t;e&&(this.word("declare"),this.space()),this.word("type"),this.space(),this.print(r,t),this.print(i,t),this.space(),this.tokenChar(61),this.space(),this.print(s,t),this.tokenChar(59)}function s0e(t){var e;let{type:r,expression:i,typeAnnotation:s}=t,n=!!((e=i.trailingComments)!=null&&e.length);this.print(i,t,!0,void 0,n),this.space(),this.word(r==="TSAsExpression"?"as":"satisfies"),this.space(),this.print(s,t)}function n0e(t){let{typeAnnotation:e,expression:r}=t;this.tokenChar(60),this.print(e,t),this.tokenChar(62),this.space(),this.print(r,t)}function a0e(t){this.print(t.expression,t),this.print(t.typeParameters,t)}function o0e(t){let{declare:e,const:r,id:i,members:s}=t;e&&(this.word("declare"),this.space()),r&&(this.word("const"),this.space()),this.word("enum"),this.space(),this.print(i,t),this.space(),mE(this,s,t)}function l0e(t){let{id:e,initializer:r}=t;this.print(e,t),r&&(this.space(),this.tokenChar(61),this.space(),this.print(r,t)),this.tokenChar(44)}function u0e(t){let{declare:e,id:r}=t;if(e&&(this.word("declare"),this.space()),t.global||(this.word(r.type==="Identifier"?"namespace":"module"),this.space()),this.print(r,t),!t.body){this.tokenChar(59);return}let i=t.body;for(;i.type==="TSModuleDeclaration";)this.tokenChar(46),this.print(i.id,i),i=i.body;this.space(),this.print(i,t)}function c0e(t){mE(this,t.body,t)}function f0e(t){let{argument:e,qualifier:r,typeParameters:i}=t;this.word("import"),this.tokenChar(40),this.print(e,t),this.tokenChar(41),r&&(this.tokenChar(46),this.print(r,t)),i&&this.print(i,t)}function p0e(t){let{isExport:e,id:r,moduleReference:i}=t;e&&(this.word("export"),this.space()),this.word("import"),this.space(),this.print(r,t),this.space(),this.tokenChar(61),this.space(),this.print(i,t),this.tokenChar(59)}function h0e(t){this.token("require("),this.print(t.expression,t),this.tokenChar(41)}function d0e(t){this.print(t.expression,t),this.tokenChar(33)}function m0e(t){this.word("export"),this.space(),this.tokenChar(61),this.space(),this.print(t.expression,t),this.tokenChar(59)}function y0e(t){this.word("export"),this.space(),this.word("as"),this.space(),this.word("namespace"),this.space(),this.print(t.id,t)}function g0e(t){let{typeParameters:e}=t,r=t.parameters;this.print(e,t),this.tokenChar(40),this._parameters(r,t),this.tokenChar(41);let i=t.typeAnnotation;this.print(i,t)}function S0e(t){let e=t.type==="ClassAccessorProperty"||t.type==="ClassProperty";e&&t.declare&&(this.word("declare"),this.space()),t.accessibility&&(this.word(t.accessibility),this.space()),t.static&&(this.word("static"),this.space()),t.override&&(this.word("override"),this.space()),t.abstract&&(this.word("abstract"),this.space()),e&&t.readonly&&(this.word("readonly"),this.space())}});var _R=g(ke=>{"use strict";c();Object.defineProperty(ke,"__esModule",{value:!0});var yE=tR();Object.keys(yE).forEach(function(t){t==="default"||t==="__esModule"||t in ke&&ke[t]===yE[t]||Object.defineProperty(ke,t,{enumerable:!0,get:function(){return yE[t]}})});var gE=sR();Object.keys(gE).forEach(function(t){t==="default"||t==="__esModule"||t in ke&&ke[t]===gE[t]||Object.defineProperty(ke,t,{enumerable:!0,get:function(){return gE[t]}})});var SE=lR();Object.keys(SE).forEach(function(t){t==="default"||t==="__esModule"||t in ke&&ke[t]===SE[t]||Object.defineProperty(ke,t,{enumerable:!0,get:function(){return SE[t]}})});var TE=uR();Object.keys(TE).forEach(function(t){t==="default"||t==="__esModule"||t in ke&&ke[t]===TE[t]||Object.defineProperty(ke,t,{enumerable:!0,get:function(){return TE[t]}})});var EE=cR();Object.keys(EE).forEach(function(t){t==="default"||t==="__esModule"||t in ke&&ke[t]===EE[t]||Object.defineProperty(ke,t,{enumerable:!0,get:function(){return EE[t]}})});var bE=fE();Object.keys(bE).forEach(function(t){t==="default"||t==="__esModule"||t in ke&&ke[t]===bE[t]||Object.defineProperty(ke,t,{enumerable:!0,get:function(){return bE[t]}})});var xE=hE();Object.keys(xE).forEach(function(t){t==="default"||t==="__esModule"||t in ke&&ke[t]===xE[t]||Object.defineProperty(ke,t,{enumerable:!0,get:function(){return xE[t]}})});var PE=bR();Object.keys(PE).forEach(function(t){t==="default"||t==="__esModule"||t in ke&&ke[t]===PE[t]||Object.defineProperty(ke,t,{enumerable:!0,get:function(){return PE[t]}})});var vE=xR();Object.keys(vE).forEach(function(t){t==="default"||t==="__esModule"||t in ke&&ke[t]===vE[t]||Object.defineProperty(ke,t,{enumerable:!0,get:function(){return vE[t]}})});var AE=PR();Object.keys(AE).forEach(function(t){t==="default"||t==="__esModule"||t in ke&&ke[t]===AE[t]||Object.defineProperty(ke,t,{enumerable:!0,get:function(){return AE[t]}})});var wE=wR();Object.keys(wE).forEach(function(t){t==="default"||t==="__esModule"||t in ke&&ke[t]===wE[t]||Object.defineProperty(ke,t,{enumerable:!0,get:function(){return wE[t]}})})});var IR=g(Kp=>{"use strict";c();Object.defineProperty(Kp,"__esModule",{value:!0});Kp.default=void 0;var T0e=yD(),E0e=uE(),b0e=ve(),x0e=_R(),{isFunction:P0e,isStatement:v0e,isClassBody:A0e,isTSInterfaceBody:w0e,isTSEnumDeclaration:_0e}=b0e,C0e=/e/i,I0e=/\.0+$/,O0e=/^0[box]/,N0e=/^\s*[@#]__PURE__\s*$/,CR=/[\n\r\u2028\u2029]/,D0e=/\*\//,{needsParens:L0e}=E0e,Zl=class{constructor(e,r){this.inForStatementInitCounter=0,this._printStack=[],this._indent=0,this._indentChar=0,this._indentRepeat=0,this._insideAux=!1,this._parenPushNewlineState=null,this._noLineTerminator=!1,this._printAuxAfterOnNextUserNode=!1,this._printedComments=new Set,this._endsWithInteger=!1,this._endsWithWord=!1,this._lastCommentLine=0,this._endsWithInnerRaw=!1,this._indentInnerComments=!0,this.format=e,this._buf=new T0e.default(r),this._indentChar=e.indent.style.charCodeAt(0),this._indentRepeat=e.indent.style.length,this._inputMap=r==null?void 0:r._inputMap}generate(e){return this.print(e),this._maybeAddAuxComment(),this._buf.get()}indent(){this.format.compact||this.format.concise||this._indent++}dedent(){this.format.compact||this.format.concise||this._indent--}semicolon(e=!1){this._maybeAddAuxComment(),e?this._appendChar(59):this._queue(59),this._noLineTerminator=!1}rightBrace(e){this.format.minified&&this._buf.removeLastSemicolon(),this.sourceWithOffset("end",e.loc,0,-1),this.tokenChar(125)}rightParens(e){this.sourceWithOffset("end",e.loc,0,-1),this.tokenChar(41)}space(e=!1){if(!this.format.compact){if(e)this._space();else if(this._buf.hasContent()){let r=this.getLastChar();r!==32&&r!==10&&this._space()}}}word(e,r=!1){this._maybePrintInnerComments(),(this._endsWithWord||e.charCodeAt(0)===47&&this.endsWith(47))&&this._space(),this._maybeAddAuxComment(),this._append(e,!1),this._endsWithWord=!0,this._noLineTerminator=r}number(e){this.word(e),this._endsWithInteger=Number.isInteger(+e)&&!O0e.test(e)&&!C0e.test(e)&&!I0e.test(e)&&e.charCodeAt(e.length-1)!==46}token(e,r=!1){this._maybePrintInnerComments();let i=this.getLastChar(),s=e.charCodeAt(0);(i===33&&(e==="--"||s===61)||s===43&&i===43||s===45&&i===45||s===46&&this._endsWithInteger)&&this._space(),this._maybeAddAuxComment(),this._append(e,r),this._noLineTerminator=!1}tokenChar(e){this._maybePrintInnerComments();let r=this.getLastChar();(e===43&&r===43||e===45&&r===45||e===46&&this._endsWithInteger)&&this._space(),this._maybeAddAuxComment(),this._appendChar(e),this._noLineTerminator=!1}newline(e=1,r){if(!(e<=0)){if(!r){if(this.format.retainLines||this.format.compact)return;if(this.format.concise){this.space();return}}e>2&&(e=2),e-=this._buf.getNewlineCount();for(let i=0;i<e;i++)this._newline()}}endsWith(e){return this.getLastChar()===e}getLastChar(){return this._buf.getLastChar()}endsWithCharAndNewline(){return this._buf.endsWithCharAndNewline()}removeTrailingNewline(){this._buf.removeTrailingNewline()}exactSource(e,r){if(!e){r();return}this._catchUp("start",e),this._buf.exactSource(e,r)}source(e,r){r&&(this._catchUp(e,r),this._buf.source(e,r))}sourceWithOffset(e,r,i,s){r&&(this._catchUp(e,r),this._buf.sourceWithOffset(e,r,i,s))}withSource(e,r,i){if(!r){i();return}this._catchUp(e,r),this._buf.withSource(e,r,i)}sourceIdentifierName(e,r){if(!this._buf._canMarkIdName)return;let i=this._buf._sourcePosition;i.identifierNamePos=r,i.identifierName=e}_space(){this._queue(32)}_newline(){this._queue(10)}_append(e,r){this._maybeAddParen(e),this._maybeIndent(e.charCodeAt(0)),this._buf.append(e,r),this._endsWithWord=!1,this._endsWithInteger=!1}_appendChar(e){this._maybeAddParenChar(e),this._maybeIndent(e),this._buf.appendChar(e),this._endsWithWord=!1,this._endsWithInteger=!1}_queue(e){this._maybeAddParenChar(e),this._maybeIndent(e),this._buf.queue(e),this._endsWithWord=!1,this._endsWithInteger=!1}_maybeIndent(e){this._indent&&e!==10&&this.endsWith(10)&&this._buf.queueIndentation(this._indentChar,this._getIndent())}_shouldIndent(e){if(this._indent&&e!==10&&this.endsWith(10))return!0}_maybeAddParenChar(e){let r=this._parenPushNewlineState;if(r&&e!==32){if(e!==10){this._parenPushNewlineState=null;return}this.tokenChar(40),this.indent(),r.printed=!0}}_maybeAddParen(e){let r=this._parenPushNewlineState;if(!r)return;let i=e.length,s;for(s=0;s<i&&e.charCodeAt(s)===32;s++);if(s===i)return;let n=e.charCodeAt(s);if(n!==10){if(n!==47||s+1===i){this._parenPushNewlineState=null;return}let a=e.charCodeAt(s+1);if(a===42){if(N0e.test(e.slice(s+2,i-2)))return}else if(a!==47){this._parenPushNewlineState=null;return}}this.tokenChar(40),this.indent(),r.printed=!0}catchUp(e){if(!this.format.retainLines)return;let r=e-this._buf.getCurrentLine();for(let i=0;i<r;i++)this._newline()}_catchUp(e,r){var i;if(!this.format.retainLines)return;let s=r==null||(i=r[e])==null?void 0:i.line;if(s!=null){let n=s-this._buf.getCurrentLine();for(let a=0;a<n;a++)this._newline()}}_getIndent(){return this._indentRepeat*this._indent}printTerminatorless(e,r,i){if(i)this._noLineTerminator=!0,this.print(e,r);else{let s={printed:!1};this._parenPushNewlineState=s,this.print(e,r),s.printed&&(this.dedent(),this.newline(),this.tokenChar(41))}}print(e,r,i,s,n){var a;if(!e)return;this._endsWithInnerRaw=!1;let o=e.type,l=this.format,u=l.concise;e._compact&&(l.concise=!0);let f=this[o];if(f===void 0)throw new ReferenceError(`unknown node of type ${JSON.stringify(o)} with constructor ${JSON.stringify(e.constructor.name)}`);this._printStack.push(e);let p=this._insideAux;this._insideAux=e.loc==null,this._maybeAddAuxComment(this._insideAux&&!p);let h=n||l.retainFunctionParens&&o==="FunctionExpression"&&((a=e.extra)==null?void 0:a.parenthesized)||L0e(e,r,this._printStack);h&&(this.tokenChar(40),this._endsWithInnerRaw=!1),this._lastCommentLine=0,this._printLeadingComments(e,r);let d=o==="Program"||o==="File"?null:e.loc;this.exactSource(d,f.bind(this,e,r)),h?(this._printTrailingComments(e,r),this.tokenChar(41),this._noLineTerminator=i):i&&!this._noLineTerminator?(this._noLineTerminator=!0,this._printTrailingComments(e,r)):this._printTrailingComments(e,r,s),this._printStack.pop(),l.concise=u,this._insideAux=p,this._endsWithInnerRaw=!1}_maybeAddAuxComment(e){e&&this._printAuxBeforeComment(),this._insideAux||this._printAuxAfterComment()}_printAuxBeforeComment(){if(this._printAuxAfterOnNextUserNode)return;this._printAuxAfterOnNextUserNode=!0;let e=this.format.auxiliaryCommentBefore;e&&this._printComment({type:"CommentBlock",value:e},0)}_printAuxAfterComment(){if(!this._printAuxAfterOnNextUserNode)return;this._printAuxAfterOnNextUserNode=!1;let e=this.format.auxiliaryCommentAfter;e&&this._printComment({type:"CommentBlock",value:e},0)}getPossibleRaw(e){let r=e.extra;if(r&&r.raw!=null&&r.rawValue!=null&&e.value===r.rawValue)return r.raw}printJoin(e,r,i={}){if(!(e!=null&&e.length))return;let{indent:s}=i;if(s==null&&this.format.retainLines){var n;let f=(n=e[0].loc)==null?void 0:n.start.line;f!=null&&f!==this._buf.getCurrentLine()&&(s=!0)}s&&this.indent();let a={addNewlines:i.addNewlines,nextNodeStartLine:0},o=i.separator?i.separator.bind(this):null,l=e.length;for(let f=0;f<l;f++){let p=e[f];if(p&&(i.statement&&this._printNewline(f===0,a),this.print(p,r,void 0,i.trailingCommentsLineOffset||0),i.iterator==null||i.iterator(p,f),f<l-1&&(o==null||o()),i.statement))if(f+1===l)this.newline(1);else{var u;let h=e[f+1];a.nextNodeStartLine=((u=h.loc)==null?void 0:u.start.line)||0,this._printNewline(!0,a)}}s&&this.dedent()}printAndIndentOnComments(e,r){let i=e.leadingComments&&e.leadingComments.length>0;i&&this.indent(),this.print(e,r),i&&this.dedent()}printBlock(e){let r=e.body;r.type!=="EmptyStatement"&&this.space(),this.print(r,e)}_printTrailingComments(e,r,i){let{innerComments:s,trailingComments:n}=e;s!=null&&s.length&&this._printComments(2,s,e,r,i),n!=null&&n.length&&this._printComments(2,n,e,r,i)}_printLeadingComments(e,r){let i=e.leadingComments;i!=null&&i.length&&this._printComments(0,i,e,r)}_maybePrintInnerComments(){this._endsWithInnerRaw&&this.printInnerComments(),this._endsWithInnerRaw=!0,this._indentInnerComments=!0}printInnerComments(){let e=this._printStack[this._printStack.length-1],r=e.innerComments;if(!(r!=null&&r.length))return;let i=this.endsWith(32),s=this._indentInnerComments,n=this._printedComments.size;s&&this.indent(),this._printComments(1,r,e),i&&n!==this._printedComments.size&&this.space(),s&&this.dedent()}noIndentInnerCommentsHere(){this._indentInnerComments=!1}printSequence(e,r,i={}){var s;i.statement=!0,(s=i.indent)!=null||(i.indent=!1),this.printJoin(e,r,i)}printList(e,r,i={}){i.separator==null&&(i.separator=R0e),this.printJoin(e,r,i)}_printNewline(e,r){let i=this.format;if(i.retainLines||i.compact)return;if(i.concise){this.space();return}if(!e)return;let s=r.nextNodeStartLine,n=this._lastCommentLine;if(s>0&&n>0){let a=s-n;if(a>=0){this.newline(a||1);return}}this._buf.hasContent()&&this.newline(1)}_shouldPrintComment(e){return e.ignore||this._printedComments.has(e)?0:this._noLineTerminator&&(CR.test(e.value)||D0e.test(e.value))?2:(this._printedComments.add(e),this.format.shouldPrintComment(e.value)?1:0)}_printComment(e,r){let i=this._noLineTerminator,s=e.type==="CommentBlock",n=s&&r!==1&&!this._noLineTerminator;n&&this._buf.hasContent()&&r!==2&&this.newline(1);let a=this.getLastChar();a!==91&&a!==123&&this.space();let o;if(s){if(o=`/*${e.value}*/`,this.format.indent.adjustMultilineComment){var l;let u=(l=e.loc)==null?void 0:l.start.column;if(u){let p=new RegExp("\\n\\s{1,"+u+"}","g");o=o.replace(p,`
39
+ `)}let f=this.format.retainLines?0:this._buf.getCurrentColumn();(this._shouldIndent(47)||this.format.retainLines)&&(f+=this._getIndent()),o=o.replace(/\n(?!$)/g,`
40
+ ${" ".repeat(f)}`)}}else i?o=`/*${e.value}*/`:o=`//${e.value}`;this.endsWith(47)&&this._space(),this.source("start",e.loc),this._append(o,s),!s&&!i&&this.newline(1,!0),n&&r!==3&&this.newline(1)}_printComments(e,r,i,s,n=0){let a=i.loc,o=r.length,l=!!a,u=l?a.start.line:0,f=l?a.end.line:0,p=0,h=0,d=this._noLineTerminator?function(){}:this.newline.bind(this);for(let T=0;T<o;T++){let b=r[T],x=this._shouldPrintComment(b);if(x===2){l=!1;break}if(l&&b.loc&&x===1){let _=b.loc.start.line,R=b.loc.end.line;if(e===0){let k=0;T===0?this._buf.hasContent()&&(b.type==="CommentLine"||_!=R)&&(k=h=1):k=_-p,p=R,d(k),this._printComment(b,1),T+1===o&&(d(Math.max(u-p,h)),p=u)}else if(e===1){let k=_-(T===0?u:p);p=R,d(k),this._printComment(b,1),T+1===o&&(d(Math.min(1,f-p)),p=f)}else{let k=_-(T===0?f-n:p);p=R,d(k),this._printComment(b,1)}}else{if(l=!1,x!==1)continue;if(o===1){let _=b.loc?b.loc.start.line===b.loc.end.line:!CR.test(b.value),R=_&&!v0e(i)&&!A0e(s)&&!w0e(s)&&!_0e(s);e===0?this._printComment(b,R&&i.type!=="ObjectExpression"||_&&P0e(s,{body:i})?1:0):R&&e===2?this._printComment(b,1):this._printComment(b,0)}else e===1&&!(i.type==="ObjectExpression"&&i.properties.length>1)&&i.type!=="ClassBody"&&i.type!=="TSInterfaceBody"?this._printComment(b,T===0?2:T===o-1?3:0):this._printComment(b,0)}}e===2&&l&&p&&(this._lastCommentLine=p)}};Object.assign(Zl.prototype,x0e);Zl.prototype.Noop=function(){};var k0e=Zl;Kp.default=k0e;function R0e(){this.tokenChar(44),this.space()}});var Wp=g(eu=>{"use strict";c();Object.defineProperty(eu,"__esModule",{value:!0});eu.CodeGenerator=void 0;eu.default=j0e;var M0e=mD(),F0e=IR(),Hp=class extends F0e.default{constructor(e,r={},i){let s=B0e(i,r),n=r.sourceMaps?new M0e.default(r,i):null;super(s,n),this.ast=void 0,this.ast=e}generate(){return super.generate(this.ast)}};function B0e(t,e){let r={auxiliaryCommentBefore:e.auxiliaryCommentBefore,auxiliaryCommentAfter:e.auxiliaryCommentAfter,shouldPrintComment:e.shouldPrintComment,retainLines:e.retainLines,retainFunctionParens:e.retainFunctionParens,comments:e.comments==null||e.comments,compact:e.compact,minified:e.minified,concise:e.concise,indent:{adjustMultilineComment:!0,style:" "},jsescOption:Object.assign({quotes:"double",wrap:!0,minimal:!1},e.jsescOption),recordAndTupleSyntaxType:e.recordAndTupleSyntaxType,topicToken:e.topicToken,importAttributesKeyword:e.importAttributesKeyword};r.decoratorsBeforeExport=e.decoratorsBeforeExport,r.jsescOption.json=e.jsonCompatibleStrings,r.minified?(r.compact=!0,r.shouldPrintComment=r.shouldPrintComment||(()=>r.comments)):r.shouldPrintComment=r.shouldPrintComment||(a=>r.comments||a.includes("@license")||a.includes("@preserve")),r.compact==="auto"&&(r.compact=typeof t=="string"&&t.length>5e5,r.compact&&console.error(`[BABEL] Note: The code generator has deoptimised the styling of ${e.filename} as it exceeds the max of 500KB.`)),r.compact&&(r.indent.adjustMultilineComment=!1);let{auxiliaryCommentBefore:i,auxiliaryCommentAfter:s,shouldPrintComment:n}=r;return i&&!n(i)&&(r.auxiliaryCommentBefore=void 0),s&&!n(s)&&(r.auxiliaryCommentAfter=void 0),r}var _E=class{constructor(e,r,i){this._generator=void 0,this._generator=new Hp(e,r,i)}generate(){return this._generator.generate()}};eu.CodeGenerator=_E;function j0e(t,e,r){return new Hp(t,e,r).generate()}});var ph=g(hu=>{"use strict";c();Object.defineProperty(hu,"__esModule",{value:!0});function eh(t,e){if(t==null)return{};var r={},i=Object.keys(t),s,n;for(n=0;n<i.length;n++)s=i[n],!(e.indexOf(s)>=0)&&(r[s]=t[s]);return r}var xi=class{constructor(e,r,i){this.line=void 0,this.column=void 0,this.index=void 0,this.line=e,this.column=r,this.index=i}},ho=class{constructor(e,r){this.start=void 0,this.end=void 0,this.filename=void 0,this.identifierName=void 0,this.start=e,this.end=r}};function Qt(t,e){let{line:r,column:i,index:s}=t;return new xi(r,i+e,s+e)}var kE={SyntaxError:"BABEL_PARSER_SYNTAX_ERROR",SourceTypeModuleError:"BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED"},q0e=(t,e=t.length-1)=>({get(){return t.reduce((r,i)=>r[i],this)},set(r){t.reduce((i,s,n)=>n===e?i[s]=r:i[s],this)}}),U0e=(t,e,r)=>Object.keys(r).map(i=>[i,r[i]]).filter(([,i])=>!!i).map(([i,s])=>[i,typeof s=="function"?{value:s,enumerable:!1}:typeof s.reflect=="string"?Object.assign({},s,q0e(s.reflect.split("."))):s]).reduce((i,[s,n])=>Object.defineProperty(i,s,Object.assign({configurable:!0},n)),Object.assign(new t,e)),$0e={ImportMetaOutsideModule:{message:`import.meta may appear only with 'sourceType: "module"'`,code:kE.SourceTypeModuleError},ImportOutsideModule:{message:`'import' and 'export' may appear only with 'sourceType: "module"'`,code:kE.SourceTypeModuleError}},OR={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"},RE=({type:t,prefix:e})=>t==="UpdateExpression"?OR.UpdateExpression[String(e)]:OR[t],V0e={AccessorIsGenerator:({kind:t})=>`A ${t}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:t})=>`Missing initializer in ${t} 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.",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:t})=>`\`${t}\` has already been exported. Exported identifiers must be unique.`,DuplicateProto:"Redefinition of __proto__ property.",DuplicateRegExpFlags:"Duplicate regular expression flag.",ElementAfterRest:"Rest element must be last element.",EscapedCharNotAnIdentifier:"Invalid Unicode escape.",ExportBindingIsString:({localName:t,exportName:e})=>`A string literal cannot be used as an exported binding without \`from\`.
41
+ - Did you mean \`export { '${t}' as '${e}' } from 'some-module'\`?`,ExportDefaultFromAsIdentifier:"'from' is not allowed as an identifier after 'export default'.",ForInOfLoopInitializer:({type:t})=>`'${t==="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:t})=>`Unsyntactic ${t==="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:t})=>`A string literal cannot be used as an imported binding.
42
+ - Did you mean \`import { "${t}" as foo }\`?`,ImportCallArgumentTrailingComma:"Trailing comma is disallowed inside import(...) arguments.",ImportCallArity:({maxArgumentCount:t})=>`\`import()\` requires exactly ${t===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:t})=>`Expected number in radix ${t}.`,InvalidEscapeSequence:"Bad character escape sequence.",InvalidEscapeSequenceTemplate:"Invalid escape sequence in template.",InvalidEscapedReservedWord:({reservedWord:t})=>`Escape sequence in keyword ${t}.`,InvalidIdentifier:({identifierName:t})=>`Invalid identifier ${t}.`,InvalidLhs:({ancestor:t})=>`Invalid left-hand side in ${RE(t)}.`,InvalidLhsBinding:({ancestor:t})=>`Binding invalid left-hand side in ${RE(t)}.`,InvalidNumber:"Invalid number.",InvalidOrMissingExponent:"Floating-point numbers require a valid exponent after the 'e'.",InvalidOrUnexpectedToken:({unexpected:t})=>`Unexpected character '${t}'.`,InvalidParenthesizedAssignment:"Invalid parenthesized assignment pattern.",InvalidPrivateFieldResolution:({identifierName:t})=>`Private name #${t} 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:t})=>`Label '${t}' is already declared.`,LetInLexicalBinding:"'let' is not allowed to be used as a name in 'let' or 'const' declarations.",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:t})=>`This experimental syntax requires enabling the parser plugin: ${t.map(e=>JSON.stringify(e)).join(", ")}.`,MissingOneOfPlugins:({missingPlugin:t})=>`This experimental syntax requires enabling one of the following parser plugin(s): ${t.map(e=>JSON.stringify(e)).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:t})=>`Duplicate key "${t}" is not allowed in module attributes.`,ModuleExportNameHasLoneSurrogate:({surrogateCharCode:t})=>`An export name cannot include a lone surrogate, found '\\u${t.toString(16)}'.`,ModuleExportUndefined:({localName:t})=>`Export '${t}' 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:t})=>`Private names are only allowed in property accesses (\`obj.#${t}\`) or in \`in\` expressions (\`#${t} in obj\`).`,PrivateNameRedeclaration:({identifierName:t})=>`Duplicate private name #${t}.`,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.",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:t})=>`Unexpected keyword '${t}'.`,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:t})=>`Unexpected reserved word '${t}'.`,UnexpectedSuper:"'super' is only allowed in object methods and classes.",UnexpectedToken:({expected:t,unexpected:e})=>`Unexpected token${e?` '${e}'.`:""}${t?`, expected "${t}"`:""}`,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:t,onlyValidPropertyName:e})=>`The only valid meta property for ${t} is ${t}.${e}.`,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.",UsingDeclarationHasBindingPattern:"Using declaration cannot have destructuring patterns.",VarRedeclaration:({identifierName:t})=>`Identifier '${t}' 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."},K0e={StrictDelete:"Deleting local variable in strict mode.",StrictEvalArguments:({referenceName:t})=>`Assigning to '${t}' in strict mode.`,StrictEvalArgumentsBinding:({bindingName:t})=>`Binding '${t}' 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."},H0e=new Set(["ArrowFunctionExpression","AssignmentExpression","ConditionalExpression","YieldExpression"]),W0e={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:t})=>`Invalid topic token ${t}. In order to use ${t} as a topic reference, the pipelineOperator plugin must be configured with { "proposal": "hack", "topicToken": "${t}" }.`,PipeTopicUnused:"Hack-style pipe body does not contain a topic reference; Hack-style pipes must use topic at least once.",PipeUnparenthesizedBody:({type:t})=>`Hack-style pipe body cannot be an unparenthesized ${RE({type:t})}; 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.'},G0e=["toMessage"],Y0e=["message"];function X0e(t){let{toMessage:e}=t,r=eh(t,G0e);return function i({loc:s,details:n}){return U0e(SyntaxError,Object.assign({},r,{loc:s}),{clone(a={}){let o=a.loc||{};return i({loc:new xi("line"in o?o.line:this.loc.line,"column"in o?o.column:this.loc.column,"index"in o?o.index:this.loc.index),details:Object.assign({},this.details,a.details)})},details:{value:n,enumerable:!1},message:{get(){return`${e(this.details)} (${this.loc.line}:${this.loc.column})`},set(a){Object.defineProperty(this,"message",{value:a})}},pos:{reflect:"loc.index",enumerable:!0},missingPlugin:"missingPlugin"in n&&{reflect:"details.missingPlugin",enumerable:!0}})}}function Zi(t,e){if(Array.isArray(t))return i=>Zi(i,t[0]);let r={};for(let i of Object.keys(t)){let s=t[i],n=typeof s=="string"?{message:()=>s}:typeof s=="function"?{message:s}:s,{message:a}=n,o=eh(n,Y0e),l=typeof a=="string"?()=>a:a;r[i]=X0e(Object.assign({code:kE.SyntaxError,reasonCode:i,toMessage:l},e?{syntaxPlugin:e}:{},o))}return r}var D=Object.assign({},Zi($0e),Zi(V0e),Zi(K0e),Zi`pipelineOperator`(W0e)),{defineProperty:z0e}=Object,NR=(t,e)=>z0e(t,e,{enumerable:!1,value:t[e]});function tu(t){return t.loc.start&&NR(t.loc.start,"index"),t.loc.end&&NR(t.loc.end,"index"),t}var J0e=t=>class extends t{parse(){let r=tu(super.parse());return this.options.tokens&&(r.tokens=r.tokens.map(tu)),r}parseRegExpLiteral({pattern:r,flags:i}){let s=null;try{s=new RegExp(r,i)}catch{}let n=this.estreeParseLiteral(s);return n.regex={pattern:r,flags:i},n}parseBigIntLiteral(r){let i;try{i=BigInt(r)}catch{i=null}let s=this.estreeParseLiteral(i);return s.bigint=String(s.value||r),s}parseDecimalLiteral(r){let s=this.estreeParseLiteral(null);return s.decimal=String(s.value||r),s}estreeParseLiteral(r){return this.parseLiteral(r,"Literal")}parseStringLiteral(r){return this.estreeParseLiteral(r)}parseNumericLiteral(r){return this.estreeParseLiteral(r)}parseNullLiteral(){return this.estreeParseLiteral(null)}parseBooleanLiteral(r){return this.estreeParseLiteral(r)}directiveToStmt(r){let i=r.value;delete r.value,i.type="Literal",i.raw=i.extra.raw,i.value=i.extra.expressionValue;let s=r;return s.type="ExpressionStatement",s.expression=i,s.directive=i.extra.rawValue,delete i.extra,s}initFunction(r,i){super.initFunction(r,i),r.expression=!1}checkDeclaration(r){r!=null&&this.isObjectProperty(r)?this.checkDeclaration(r.value):super.checkDeclaration(r)}getObjectOrClassMethodParams(r){return r.value.params}isValidDirective(r){var i;return r.type==="ExpressionStatement"&&r.expression.type==="Literal"&&typeof r.expression.value=="string"&&!((i=r.expression.extra)!=null&&i.parenthesized)}parseBlockBody(r,i,s,n,a){super.parseBlockBody(r,i,s,n,a);let o=r.directives.map(l=>this.directiveToStmt(l));r.body=o.concat(r.body),delete r.directives}pushClassMethod(r,i,s,n,a,o){this.parseMethod(i,s,n,a,o,"ClassMethod",!0),i.typeParameters&&(i.value.typeParameters=i.typeParameters,delete i.typeParameters),r.body.push(i)}parsePrivateName(){let r=super.parsePrivateName();return this.getPluginOption("estree","classFeatures")?this.convertPrivateNameToPrivateIdentifier(r):r}convertPrivateNameToPrivateIdentifier(r){let i=super.getPrivateNameSV(r);return r=r,delete r.id,r.name=i,r.type="PrivateIdentifier",r}isPrivateName(r){return this.getPluginOption("estree","classFeatures")?r.type==="PrivateIdentifier":super.isPrivateName(r)}getPrivateNameSV(r){return this.getPluginOption("estree","classFeatures")?r.name:super.getPrivateNameSV(r)}parseLiteral(r,i){let s=super.parseLiteral(r,i);return s.raw=s.extra.raw,delete s.extra,s}parseFunctionBody(r,i,s=!1){super.parseFunctionBody(r,i,s),r.expression=r.body.type!=="BlockStatement"}parseMethod(r,i,s,n,a,o,l=!1){let u=this.startNode();return u.kind=r.kind,u=super.parseMethod(u,i,s,n,a,o,l),u.type="FunctionExpression",delete u.kind,r.value=u,o==="ClassPrivateMethod"&&(r.computed=!1),this.finishNode(r,"MethodDefinition")}parseClassProperty(...r){let i=super.parseClassProperty(...r);return this.getPluginOption("estree","classFeatures")&&(i.type="PropertyDefinition"),i}parseClassPrivateProperty(...r){let i=super.parseClassPrivateProperty(...r);return this.getPluginOption("estree","classFeatures")&&(i.type="PropertyDefinition",i.computed=!1),i}parseObjectMethod(r,i,s,n,a){let o=super.parseObjectMethod(r,i,s,n,a);return o&&(o.type="Property",o.kind==="method"&&(o.kind="init"),o.shorthand=!1),o}parseObjectProperty(r,i,s,n){let a=super.parseObjectProperty(r,i,s,n);return a&&(a.kind="init",a.type="Property"),a}isValidLVal(r,i,s){return r==="Property"?"value":super.isValidLVal(r,i,s)}isAssignable(r,i){return r!=null&&this.isObjectProperty(r)?this.isAssignable(r.value,i):super.isAssignable(r,i)}toAssignable(r,i=!1){if(r!=null&&this.isObjectProperty(r)){let{key:s,value:n}=r;this.isPrivateName(s)&&this.classScope.usePrivateName(this.getPrivateNameSV(s),s.loc.start),this.toAssignable(n,i)}else super.toAssignable(r,i)}toAssignableObjectExpressionProp(r,i,s){r.kind==="get"||r.kind==="set"?this.raise(D.PatternHasAccessor,{at:r.key}):r.method?this.raise(D.PatternHasMethod,{at:r.key}):super.toAssignableObjectExpressionProp(r,i,s)}finishCallExpression(r,i){let s=super.finishCallExpression(r,i);if(s.callee.type==="Import"){if(s.type="ImportExpression",s.source=s.arguments[0],this.hasPlugin("importAttributes")||this.hasPlugin("importAssertions")){var n;s.attributes=(n=s.arguments[1])!=null?n:null}delete s.arguments,delete s.callee}return s}toReferencedArguments(r){r.type!=="ImportExpression"&&super.toReferencedArguments(r)}parseExport(r,i){let s=this.state.lastTokStartLoc,n=super.parseExport(r,i);switch(n.type){case"ExportAllDeclaration":n.exported=null;break;case"ExportNamedDeclaration":n.specifiers.length===1&&n.specifiers[0].type==="ExportNamespaceSpecifier"&&(n.type="ExportAllDeclaration",n.exported=n.specifiers[0].exported,delete n.specifiers);case"ExportDefaultDeclaration":{var a;let{declaration:o}=n;(o==null?void 0:o.type)==="ClassDeclaration"&&((a=o.decorators)==null?void 0:a.length)>0&&o.start===n.start&&this.resetStartLocation(n,s)}break}return n}parseSubscript(r,i,s,n){let a=super.parseSubscript(r,i,s,n);if(n.optionalChainMember){if((a.type==="OptionalMemberExpression"||a.type==="OptionalCallExpression")&&(a.type=a.type.substring(8)),n.stop){let o=this.startNodeAtNode(a);return o.expression=a,this.finishNode(o,"ChainExpression")}}else(a.type==="MemberExpression"||a.type==="CallExpression")&&(a.optional=!1);return a}hasPropertyAsPrivateName(r){return r.type==="ChainExpression"&&(r=r.expression),super.hasPropertyAsPrivateName(r)}isObjectProperty(r){return r.type==="Property"&&r.kind==="init"&&!r.method}isObjectMethod(r){return r.method||r.kind==="get"||r.kind==="set"}finishNodeAt(r,i,s){return tu(super.finishNodeAt(r,i,s))}resetStartLocation(r,i){super.resetStartLocation(r,i),tu(r)}resetEndLocation(r,i=this.state.lastTokEndLoc){super.resetEndLocation(r,i),tu(r)}},$n=class{constructor(e,r){this.token=void 0,this.preserveSpace=void 0,this.token=e,this.preserveSpace=!!r}},Ye={brace:new $n("{"),j_oTag:new $n("<tag"),j_cTag:new $n("</tag"),j_expr:new $n("<tag>...</tag>",!0)};Ye.template=new $n("`",!0);var Oe=!0,ie=!0,CE=!0,ru=!0,Ws=!0,Q0e=!0,th=class{constructor(e,r={}){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=e,this.keyword=r.keyword,this.beforeExpr=!!r.beforeExpr,this.startsExpr=!!r.startsExpr,this.rightAssociative=!!r.rightAssociative,this.isLoop=!!r.isLoop,this.isAssign=!!r.isAssign,this.prefix=!!r.prefix,this.postfix=!!r.postfix,this.binop=r.binop!=null?r.binop:null,this.updateContext=null}},sb=new Map;function Re(t,e={}){e.keyword=t;let r=de(t,e);return sb.set(t,r),r}function Jt(t,e){return de(t,{beforeExpr:Oe,binop:e})}var au=-1,Ji=[],nb=[],ab=[],ob=[],lb=[],ub=[];function de(t,e={}){var r,i,s,n;return++au,nb.push(t),ab.push((r=e.binop)!=null?r:-1),ob.push((i=e.beforeExpr)!=null?i:!1),lb.push((s=e.startsExpr)!=null?s:!1),ub.push((n=e.prefix)!=null?n:!1),Ji.push(new th(t,e)),au}function Le(t,e={}){var r,i,s,n;return++au,sb.set(t,au),nb.push(t),ab.push((r=e.binop)!=null?r:-1),ob.push((i=e.beforeExpr)!=null?i:!1),lb.push((s=e.startsExpr)!=null?s:!1),ub.push((n=e.prefix)!=null?n:!1),Ji.push(new th("name",e)),au}var Z0e={bracketL:de("[",{beforeExpr:Oe,startsExpr:ie}),bracketHashL:de("#[",{beforeExpr:Oe,startsExpr:ie}),bracketBarL:de("[|",{beforeExpr:Oe,startsExpr:ie}),bracketR:de("]"),bracketBarR:de("|]"),braceL:de("{",{beforeExpr:Oe,startsExpr:ie}),braceBarL:de("{|",{beforeExpr:Oe,startsExpr:ie}),braceHashL:de("#{",{beforeExpr:Oe,startsExpr:ie}),braceR:de("}"),braceBarR:de("|}"),parenL:de("(",{beforeExpr:Oe,startsExpr:ie}),parenR:de(")"),comma:de(",",{beforeExpr:Oe}),semi:de(";",{beforeExpr:Oe}),colon:de(":",{beforeExpr:Oe}),doubleColon:de("::",{beforeExpr:Oe}),dot:de("."),question:de("?",{beforeExpr:Oe}),questionDot:de("?."),arrow:de("=>",{beforeExpr:Oe}),template:de("template"),ellipsis:de("...",{beforeExpr:Oe}),backQuote:de("`",{startsExpr:ie}),dollarBraceL:de("${",{beforeExpr:Oe,startsExpr:ie}),templateTail:de("...`",{startsExpr:ie}),templateNonTail:de("...${",{beforeExpr:Oe,startsExpr:ie}),at:de("@"),hash:de("#",{startsExpr:ie}),interpreterDirective:de("#!..."),eq:de("=",{beforeExpr:Oe,isAssign:ru}),assign:de("_=",{beforeExpr:Oe,isAssign:ru}),slashAssign:de("_=",{beforeExpr:Oe,isAssign:ru}),xorAssign:de("_=",{beforeExpr:Oe,isAssign:ru}),moduloAssign:de("_=",{beforeExpr:Oe,isAssign:ru}),incDec:de("++/--",{prefix:Ws,postfix:Q0e,startsExpr:ie}),bang:de("!",{beforeExpr:Oe,prefix:Ws,startsExpr:ie}),tilde:de("~",{beforeExpr:Oe,prefix:Ws,startsExpr:ie}),doubleCaret:de("^^",{startsExpr:ie}),doubleAt:de("@@",{startsExpr:ie}),pipeline:Jt("|>",0),nullishCoalescing:Jt("??",1),logicalOR:Jt("||",1),logicalAND:Jt("&&",2),bitwiseOR:Jt("|",3),bitwiseXOR:Jt("^",4),bitwiseAND:Jt("&",5),equality:Jt("==/!=/===/!==",6),lt:Jt("</>/<=/>=",7),gt:Jt("</>/<=/>=",7),relational:Jt("</>/<=/>=",7),bitShift:Jt("<</>>/>>>",8),bitShiftL:Jt("<</>>/>>>",8),bitShiftR:Jt("<</>>/>>>",8),plusMin:de("+/-",{beforeExpr:Oe,binop:9,prefix:Ws,startsExpr:ie}),modulo:de("%",{binop:10,startsExpr:ie}),star:de("*",{binop:10}),slash:Jt("/",10),exponent:de("**",{beforeExpr:Oe,binop:11,rightAssociative:!0}),_in:Re("in",{beforeExpr:Oe,binop:7}),_instanceof:Re("instanceof",{beforeExpr:Oe,binop:7}),_break:Re("break"),_case:Re("case",{beforeExpr:Oe}),_catch:Re("catch"),_continue:Re("continue"),_debugger:Re("debugger"),_default:Re("default",{beforeExpr:Oe}),_else:Re("else",{beforeExpr:Oe}),_finally:Re("finally"),_function:Re("function",{startsExpr:ie}),_if:Re("if"),_return:Re("return",{beforeExpr:Oe}),_switch:Re("switch"),_throw:Re("throw",{beforeExpr:Oe,prefix:Ws,startsExpr:ie}),_try:Re("try"),_var:Re("var"),_const:Re("const"),_with:Re("with"),_new:Re("new",{beforeExpr:Oe,startsExpr:ie}),_this:Re("this",{startsExpr:ie}),_super:Re("super",{startsExpr:ie}),_class:Re("class",{startsExpr:ie}),_extends:Re("extends",{beforeExpr:Oe}),_export:Re("export"),_import:Re("import",{startsExpr:ie}),_null:Re("null",{startsExpr:ie}),_true:Re("true",{startsExpr:ie}),_false:Re("false",{startsExpr:ie}),_typeof:Re("typeof",{beforeExpr:Oe,prefix:Ws,startsExpr:ie}),_void:Re("void",{beforeExpr:Oe,prefix:Ws,startsExpr:ie}),_delete:Re("delete",{beforeExpr:Oe,prefix:Ws,startsExpr:ie}),_do:Re("do",{isLoop:CE,beforeExpr:Oe}),_for:Re("for",{isLoop:CE}),_while:Re("while",{isLoop:CE}),_as:Le("as",{startsExpr:ie}),_assert:Le("assert",{startsExpr:ie}),_async:Le("async",{startsExpr:ie}),_await:Le("await",{startsExpr:ie}),_from:Le("from",{startsExpr:ie}),_get:Le("get",{startsExpr:ie}),_let:Le("let",{startsExpr:ie}),_meta:Le("meta",{startsExpr:ie}),_of:Le("of",{startsExpr:ie}),_sent:Le("sent",{startsExpr:ie}),_set:Le("set",{startsExpr:ie}),_static:Le("static",{startsExpr:ie}),_using:Le("using",{startsExpr:ie}),_yield:Le("yield",{startsExpr:ie}),_asserts:Le("asserts",{startsExpr:ie}),_checks:Le("checks",{startsExpr:ie}),_exports:Le("exports",{startsExpr:ie}),_global:Le("global",{startsExpr:ie}),_implements:Le("implements",{startsExpr:ie}),_intrinsic:Le("intrinsic",{startsExpr:ie}),_infer:Le("infer",{startsExpr:ie}),_is:Le("is",{startsExpr:ie}),_mixins:Le("mixins",{startsExpr:ie}),_proto:Le("proto",{startsExpr:ie}),_require:Le("require",{startsExpr:ie}),_satisfies:Le("satisfies",{startsExpr:ie}),_keyof:Le("keyof",{startsExpr:ie}),_readonly:Le("readonly",{startsExpr:ie}),_unique:Le("unique",{startsExpr:ie}),_abstract:Le("abstract",{startsExpr:ie}),_declare:Le("declare",{startsExpr:ie}),_enum:Le("enum",{startsExpr:ie}),_module:Le("module",{startsExpr:ie}),_namespace:Le("namespace",{startsExpr:ie}),_interface:Le("interface",{startsExpr:ie}),_type:Le("type",{startsExpr:ie}),_opaque:Le("opaque",{startsExpr:ie}),name:de("name",{startsExpr:ie}),string:de("string",{startsExpr:ie}),num:de("num",{startsExpr:ie}),bigint:de("bigint",{startsExpr:ie}),decimal:de("decimal",{startsExpr:ie}),regexp:de("regexp",{startsExpr:ie}),privateName:de("#name",{startsExpr:ie}),eof:de("eof"),jsxName:de("jsxName"),jsxText:de("jsxText",{beforeExpr:!0}),jsxTagStart:de("jsxTagStart",{startsExpr:!0}),jsxTagEnd:de("jsxTagEnd"),placeholder:de("%%",{startsExpr:!0})};function Ve(t){return t>=93&&t<=130}function eTe(t){return t<=92}function ri(t){return t>=58&&t<=130}function GR(t){return t>=58&&t<=134}function tTe(t){return ob[t]}function ME(t){return lb[t]}function rTe(t){return t>=29&&t<=33}function DR(t){return t>=127&&t<=129}function iTe(t){return t>=90&&t<=92}function cb(t){return t>=58&&t<=92}function sTe(t){return t>=39&&t<=59}function nTe(t){return t===34}function aTe(t){return ub[t]}function oTe(t){return t>=119&&t<=121}function lTe(t){return t>=122&&t<=128}function Xs(t){return nb[t]}function zp(t){return ab[t]}function uTe(t){return t===57}function rh(t){return t>=24&&t<=25}function zi(t){return Ji[t]}Ji[8].updateContext=t=>{t.pop()},Ji[5].updateContext=Ji[7].updateContext=Ji[23].updateContext=t=>{t.push(Ye.brace)},Ji[22].updateContext=t=>{t[t.length-1]===Ye.template?t.pop():t.push(Ye.template)},Ji[140].updateContext=t=>{t.push(Ye.j_expr,Ye.j_oTag)};var fb="\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-\u1C88\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-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\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",YR="\u200C\u200D\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\u0898-\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\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\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",cTe=new RegExp("["+fb+"]"),fTe=new RegExp("["+fb+YR+"]");fb=YR=null;var XR=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,68,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,4026,582,8634,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,757,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,3104,541,1507,4938,6,4191],pTe=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,81,2,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,9,5351,0,7,14,13835,9,87,9,39,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,4706,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,983,6,110,6,6,9,4759,9,787719,239];function FE(t,e){let r=65536;for(let i=0,s=e.length;i<s;i+=2){if(r+=e[i],r>t)return!1;if(r+=e[i+1],r>=t)return!0}return!1}function Qi(t){return t<65?t===36:t<=90?!0:t<97?t===95:t<=122?!0:t<=65535?t>=170&&cTe.test(String.fromCharCode(t)):FE(t,XR)}function lo(t){return t<48?t===36:t<58?!0:t<65?!1:t<=90?!0:t<97?t===95:t<=122?!0:t<=65535?t>=170&&fTe.test(String.fromCharCode(t)):FE(t,XR)||FE(t,pTe)}var pb={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"]},hTe=new Set(pb.keyword),dTe=new Set(pb.strict),mTe=new Set(pb.strictBind);function zR(t,e){return e&&t==="await"||t==="enum"}function JR(t,e){return zR(t,e)||dTe.has(t)}function QR(t){return mTe.has(t)}function ZR(t,e){return JR(t,e)||QR(t)}function yTe(t){return hTe.has(t)}function gTe(t,e,r){return t===64&&e===64&&Qi(r)}var STe=new Set(["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete","implements","interface","let","package","private","protected","public","static","yield","eval","arguments","enum","await"]);function TTe(t){return STe.has(t)}var no=0,ao=1,es=2,hb=4,eM=8,ih=16,tM=32,Vn=64,sh=128,uo=256,Gp=ao|es|sh|uo,Pi=1,Hn=2,rM=4,Kn=8,Jp=16,iM=64,nh=128,BE=256,jE=512,db=1024,qE=2048,ou=4096,ch=8192,sM=Pi|Hn|Kn|nh|ch,co=Pi|0|Kn|ch,ETe=Pi|0|Kn|0,ah=Pi|0|rM|0,nM=Pi|0|Jp|0,bTe=0|Hn|0|nh,xTe=0|Hn|0|0,aM=Pi|Hn|Kn|BE|ch,LR=0|db,Ys=0|iM,PTe=Pi|0|0|iM,vTe=aM|jE,ATe=0|db,kR=0|Hn|0|ou,wTe=qE,oh=4,mb=2,yb=1,IE=mb|yb,_Te=mb|oh,CTe=yb|oh,ITe=mb,OTe=yb,OE=0,uu=class{constructor(e){this.var=new Set,this.lexical=new Set,this.functions=new Set,this.flags=e}},cu=class{constructor(e,r){this.parser=void 0,this.scopeStack=[],this.inModule=void 0,this.undefinedExports=new Map,this.parser=e,this.inModule=r}get inTopLevel(){return(this.currentScope().flags&ao)>0}get inFunction(){return(this.currentVarScopeFlags()&es)>0}get allowSuper(){return(this.currentThisScopeFlags()&ih)>0}get allowDirectSuper(){return(this.currentThisScopeFlags()&tM)>0}get inClass(){return(this.currentThisScopeFlags()&Vn)>0}get inClassAndNotInNonArrowFunction(){let e=this.currentThisScopeFlags();return(e&Vn)>0&&(e&es)===0}get inStaticBlock(){for(let e=this.scopeStack.length-1;;e--){let{flags:r}=this.scopeStack[e];if(r&sh)return!0;if(r&(Gp|Vn))return!1}}get inNonArrowFunction(){return(this.currentThisScopeFlags()&es)>0}get treatFunctionsAsVar(){return this.treatFunctionsAsVarInScope(this.currentScope())}createScope(e){return new uu(e)}enter(e){this.scopeStack.push(this.createScope(e))}exit(){return this.scopeStack.pop().flags}treatFunctionsAsVarInScope(e){return!!(e.flags&(es|sh)||!this.parser.inModule&&e.flags&ao)}declareName(e,r,i){let s=this.currentScope();if(r&Kn||r&Jp)this.checkRedeclarationInScope(s,e,r,i),r&Jp?s.functions.add(e):s.lexical.add(e),r&Kn&&this.maybeExportDefined(s,e);else if(r&rM)for(let n=this.scopeStack.length-1;n>=0&&(s=this.scopeStack[n],this.checkRedeclarationInScope(s,e,r,i),s.var.add(e),this.maybeExportDefined(s,e),!(s.flags&Gp));--n);this.parser.inModule&&s.flags&ao&&this.undefinedExports.delete(e)}maybeExportDefined(e,r){this.parser.inModule&&e.flags&ao&&this.undefinedExports.delete(r)}checkRedeclarationInScope(e,r,i,s){this.isRedeclaredInScope(e,r,i)&&this.parser.raise(D.VarRedeclaration,{at:s,identifierName:r})}isRedeclaredInScope(e,r,i){return i&Pi?i&Kn?e.lexical.has(r)||e.functions.has(r)||e.var.has(r):i&Jp?e.lexical.has(r)||!this.treatFunctionsAsVarInScope(e)&&e.var.has(r):e.lexical.has(r)&&!(e.flags&eM&&e.lexical.values().next().value===r)||!this.treatFunctionsAsVarInScope(e)&&e.functions.has(r):!1}checkLocalExport(e){let{name:r}=e,i=this.scopeStack[0];!i.lexical.has(r)&&!i.var.has(r)&&!i.functions.has(r)&&this.undefinedExports.set(r,e.loc.start)}currentScope(){return this.scopeStack[this.scopeStack.length-1]}currentVarScopeFlags(){for(let e=this.scopeStack.length-1;;e--){let{flags:r}=this.scopeStack[e];if(r&Gp)return r}}currentThisScopeFlags(){for(let e=this.scopeStack.length-1;;e--){let{flags:r}=this.scopeStack[e];if(r&(Gp|Vn)&&!(r&hb))return r}}},UE=class extends uu{constructor(...e){super(...e),this.declareFunctions=new Set}},$E=class extends cu{createScope(e){return new UE(e)}declareName(e,r,i){let s=this.currentScope();if(r&qE){this.checkRedeclarationInScope(s,e,r,i),this.maybeExportDefined(s,e),s.declareFunctions.add(e);return}super.declareName(e,r,i)}isRedeclaredInScope(e,r,i){return super.isRedeclaredInScope(e,r,i)?!0:i&qE?!e.declareFunctions.has(r)&&(e.lexical.has(r)||e.functions.has(r)):!1}checkLocalExport(e){this.scopeStack[0].declareFunctions.has(e.name)||super.checkLocalExport(e)}},VE=class{constructor(){this.sawUnambiguousESM=!1,this.ambiguousScriptDifferentAst=!1}hasPlugin(e){if(typeof e=="string")return this.plugins.has(e);{let[r,i]=e;if(!this.hasPlugin(r))return!1;let s=this.plugins.get(r);for(let n of Object.keys(i))if((s==null?void 0:s[n])!==i[n])return!1;return!0}}getPluginOption(e,r){var i;return(i=this.plugins.get(e))==null?void 0:i[r]}};function oM(t,e){t.trailingComments===void 0?t.trailingComments=e:t.trailingComments.unshift(...e)}function NTe(t,e){t.leadingComments===void 0?t.leadingComments=e:t.leadingComments.unshift(...e)}function fu(t,e){t.innerComments===void 0?t.innerComments=e:t.innerComments.unshift(...e)}function iu(t,e,r){let i=null,s=e.length;for(;i===null&&s>0;)i=e[--s];i===null||i.start>r.start?fu(t,r.comments):oM(i,r.comments)}var KE=class extends VE{addComment(e){this.filename&&(e.loc.filename=this.filename),this.state.comments.push(e)}processComment(e){let{commentStack:r}=this.state,i=r.length;if(i===0)return;let s=i-1,n=r[s];n.start===e.end&&(n.leadingNode=e,s--);let{start:a}=e;for(;s>=0;s--){let o=r[s],l=o.end;if(l>a)o.containingNode=e,this.finalizeComment(o),r.splice(s,1);else{l===a&&(o.trailingNode=e);break}}}finalizeComment(e){let{comments:r}=e;if(e.leadingNode!==null||e.trailingNode!==null)e.leadingNode!==null&&oM(e.leadingNode,r),e.trailingNode!==null&&NTe(e.trailingNode,r);else{let{containingNode:i,start:s}=e;if(this.input.charCodeAt(s-1)===44)switch(i.type){case"ObjectExpression":case"ObjectPattern":case"RecordExpression":iu(i,i.properties,e);break;case"CallExpression":case"OptionalCallExpression":iu(i,i.arguments,e);break;case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":iu(i,i.params,e);break;case"ArrayExpression":case"ArrayPattern":case"TupleExpression":iu(i,i.elements,e);break;case"ExportNamedDeclaration":case"ImportDeclaration":iu(i,i.specifiers,e);break;default:fu(i,r)}else fu(i,r)}}finalizeRemainingComments(){let{commentStack:e}=this.state;for(let r=e.length-1;r>=0;r--)this.finalizeComment(e[r]);this.state.commentStack=[]}resetPreviousNodeTrailingComments(e){let{commentStack:r}=this.state,{length:i}=r;if(i===0)return;let s=r[i-1];s.leadingNode===e&&(s.leadingNode=null)}resetPreviousIdentifierLeadingComments(e){let{commentStack:r}=this.state,{length:i}=r;i!==0&&(r[i-1].trailingNode===e?r[i-1].trailingNode=null:i>=2&&r[i-2].trailingNode===e&&(r[i-2].trailingNode=null))}takeSurroundingComments(e,r,i){let{commentStack:s}=this.state,n=s.length;if(n===0)return;let a=n-1;for(;a>=0;a--){let o=s[a],l=o.end;if(o.start===i)o.leadingNode=e;else if(l===r)o.trailingNode=e;else if(l<r)break}}},lM=/\r\n?|[\n\u2028\u2029]/,Yp=new RegExp(lM.source,"g");function lu(t){switch(t){case 10:case 13:case 8232:case 8233:return!0;default:return!1}}var NE=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,Qp=/(?:[^\S\n\r\u2028\u2029]|\/\/.*|\/\*.*?\*\/)*/g,RR=new RegExp("(?=("+Qp.source+"))\\1"+/(?=[\n\r\u2028\u2029]|\/\*(?!.*?\*\/)|$)/.source,"y");function DTe(t){switch(t){case 9:case 11:case 12:case 32:case 160:case 5760:case 8192:case 8193:case 8194:case 8195:case 8196:case 8197:case 8198:case 8199:case 8200:case 8201:case 8202:case 8239:case 8287:case 12288:case 65279:return!0;default:return!1}}var pu=class{constructor(){this.strict=void 0,this.curLine=void 0,this.lineStart=void 0,this.startLoc=void 0,this.endLoc=void 0,this.errors=[],this.potentialArrowAt=-1,this.noArrowAt=[],this.noArrowParamsConversionAt=[],this.maybeInArrowParameters=!1,this.inType=!1,this.noAnonFunctionType=!1,this.hasFlowComment=!1,this.isAmbientContext=!1,this.inAbstractClass=!1,this.inDisallowConditionalTypesContext=!1,this.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null},this.soloAwait=!1,this.inFSharpPipelineDirectBody=!1,this.labels=[],this.comments=[],this.commentStack=[],this.pos=0,this.type=137,this.value=null,this.start=0,this.end=0,this.lastTokEndLoc=null,this.lastTokStartLoc=null,this.lastTokStart=0,this.context=[Ye.brace],this.canStartJSXElement=!0,this.containsEsc=!1,this.firstInvalidTemplateEscapePos=null,this.strictErrors=new Map,this.tokensLength=0}init({strictMode:e,sourceType:r,startLine:i,startColumn:s}){this.strict=e===!1?!1:e===!0?!0:r==="module",this.curLine=i,this.lineStart=-s,this.startLoc=this.endLoc=new xi(i,s,0)}curPosition(){return new xi(this.curLine,this.pos-this.lineStart,this.pos)}clone(e){let r=new pu,i=Object.keys(this);for(let s=0,n=i.length;s<n;s++){let a=i[s],o=this[a];!e&&Array.isArray(o)&&(o=o.slice()),r[a]=o}return r}},LTe=function(e){return e>=48&&e<=57},MR={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},Xp={bin:t=>t===48||t===49,oct:t=>t>=48&&t<=55,dec:t=>t>=48&&t<=57,hex:t=>t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102};function FR(t,e,r,i,s,n){let a=r,o=i,l=s,u="",f=null,p=r,{length:h}=e;for(;;){if(r>=h){n.unterminated(a,o,l),u+=e.slice(p,r);break}let d=e.charCodeAt(r);if(kTe(t,d,e,r)){u+=e.slice(p,r);break}if(d===92){u+=e.slice(p,r);let T=RTe(e,r,i,s,t==="template",n);T.ch===null&&!f?f={pos:r,lineStart:i,curLine:s}:u+=T.ch,{pos:r,lineStart:i,curLine:s}=T,p=r}else d===8232||d===8233?(++r,++s,i=r):d===10||d===13?t==="template"?(u+=e.slice(p,r)+`
43
+ `,++r,d===13&&e.charCodeAt(r)===10&&++r,++s,p=i=r):n.unterminated(a,o,l):++r}return{pos:r,str:u,firstInvalidLoc:f,lineStart:i,curLine:s,containsInvalid:!!f}}function kTe(t,e,r,i){return t==="template"?e===96||e===36&&r.charCodeAt(i+1)===123:e===(t==="double"?34:39)}function RTe(t,e,r,i,s,n){let a=!s;e++;let o=u=>({pos:e,ch:u,lineStart:r,curLine:i}),l=t.charCodeAt(e++);switch(l){case 110:return o(`
44
+ `);case 114:return o("\r");case 120:{let u;return{code:u,pos:e}=HE(t,e,r,i,2,!1,a,n),o(u===null?null:String.fromCharCode(u))}case 117:{let u;return{code:u,pos:e}=cM(t,e,r,i,a,n),o(u===null?null:String.fromCodePoint(u))}case 116:return o(" ");case 98:return o("\b");case 118:return o("\v");case 102:return o("\f");case 13:t.charCodeAt(e)===10&&++e;case 10:r=e,++i;case 8232:case 8233:return o("");case 56:case 57:if(s)return o(null);n.strictNumericEscape(e-1,r,i);default:if(l>=48&&l<=55){let u=e-1,p=t.slice(u,e+2).match(/^[0-7]+/)[0],h=parseInt(p,8);h>255&&(p=p.slice(0,-1),h=parseInt(p,8)),e+=p.length-1;let d=t.charCodeAt(e);if(p!=="0"||d===56||d===57){if(s)return o(null);n.strictNumericEscape(u,r,i)}return o(String.fromCharCode(h))}return o(String.fromCharCode(l))}}function HE(t,e,r,i,s,n,a,o){let l=e,u;return{n:u,pos:e}=uM(t,e,r,i,16,s,n,!1,o,!a),u===null&&(a?o.invalidEscapeSequence(l,r,i):e=l-1),{code:u,pos:e}}function uM(t,e,r,i,s,n,a,o,l,u){let f=e,p=s===16?MR.hex:MR.decBinOct,h=s===16?Xp.hex:s===10?Xp.dec:s===8?Xp.oct:Xp.bin,d=!1,T=0;for(let b=0,x=n??1/0;b<x;++b){let _=t.charCodeAt(e),R;if(_===95&&o!=="bail"){let k=t.charCodeAt(e-1),M=t.charCodeAt(e+1);if(o){if(Number.isNaN(M)||!h(M)||p.has(k)||p.has(M)){if(u)return{n:null,pos:e};l.unexpectedNumericSeparator(e,r,i)}}else{if(u)return{n:null,pos:e};l.numericSeparatorInEscapeSequence(e,r,i)}++e;continue}if(_>=97?R=_-97+10:_>=65?R=_-65+10:LTe(_)?R=_-48:R=1/0,R>=s){if(R<=9&&u)return{n:null,pos:e};if(R<=9&&l.invalidDigit(e,r,i,s))R=0;else if(a)R=0,d=!0;else break}++e,T=T*s+R}return e===f||n!=null&&e-f!==n||d?{n:null,pos:e}:{n:T,pos:e}}function cM(t,e,r,i,s,n){let a=t.charCodeAt(e),o;if(a===123){if(++e,{code:o,pos:e}=HE(t,e,r,i,t.indexOf("}",e)-e,!0,s,n),++e,o!==null&&o>1114111)if(s)n.invalidCodePoint(e,r,i);else return{code:null,pos:e}}else({code:o,pos:e}=HE(t,e,r,i,4,!1,s,n));return{code:o,pos:e}}var MTe=["at"],FTe=["at"];function su(t,e,r){return new xi(r,t-e,t)}var BTe=new Set([103,109,115,105,121,117,100,118]),bi=class{constructor(e){this.type=e.type,this.value=e.value,this.start=e.start,this.end=e.end,this.loc=new ho(e.startLoc,e.endLoc)}},WE=class extends KE{constructor(e,r){super(),this.isLookahead=void 0,this.tokens=[],this.errorHandlers_readInt={invalidDigit:(i,s,n,a)=>this.options.errorRecovery?(this.raise(D.InvalidDigit,{at:su(i,s,n),radix:a}),!0):!1,numericSeparatorInEscapeSequence:this.errorBuilder(D.NumericSeparatorInEscapeSequence),unexpectedNumericSeparator:this.errorBuilder(D.UnexpectedNumericSeparator)},this.errorHandlers_readCodePoint=Object.assign({},this.errorHandlers_readInt,{invalidEscapeSequence:this.errorBuilder(D.InvalidEscapeSequence),invalidCodePoint:this.errorBuilder(D.InvalidCodePoint)}),this.errorHandlers_readStringContents_string=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:(i,s,n)=>{this.recordStrictModeErrors(D.StrictNumericEscape,{at:su(i,s,n)})},unterminated:(i,s,n)=>{throw this.raise(D.UnterminatedString,{at:su(i-1,s,n)})}}),this.errorHandlers_readStringContents_template=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:this.errorBuilder(D.StrictNumericEscape),unterminated:(i,s,n)=>{throw this.raise(D.UnterminatedTemplate,{at:su(i,s,n)})}}),this.state=new pu,this.state.init(e),this.input=r,this.length=r.length,this.isLookahead=!1}pushToken(e){this.tokens.length=this.state.tokensLength,this.tokens.push(e),++this.state.tokensLength}next(){this.checkKeywordEscapes(),this.options.tokens&&this.pushToken(new bi(this.state)),this.state.lastTokStart=this.state.start,this.state.lastTokEndLoc=this.state.endLoc,this.state.lastTokStartLoc=this.state.startLoc,this.nextToken()}eat(e){return this.match(e)?(this.next(),!0):!1}match(e){return this.state.type===e}createLookaheadState(e){return{pos:e.pos,value:null,type:e.type,start:e.start,end:e.end,context:[this.curContext()],inType:e.inType,startLoc:e.startLoc,lastTokEndLoc:e.lastTokEndLoc,curLine:e.curLine,lineStart:e.lineStart,curPosition:e.curPosition}}lookahead(){let e=this.state;this.state=this.createLookaheadState(e),this.isLookahead=!0,this.nextToken(),this.isLookahead=!1;let r=this.state;return this.state=e,r}nextTokenStart(){return this.nextTokenStartSince(this.state.pos)}nextTokenStartSince(e){return NE.lastIndex=e,NE.test(this.input)?NE.lastIndex:e}lookaheadCharCode(){return this.input.charCodeAt(this.nextTokenStart())}nextTokenInLineStart(){return this.nextTokenInLineStartSince(this.state.pos)}nextTokenInLineStartSince(e){return Qp.lastIndex=e,Qp.test(this.input)?Qp.lastIndex:e}lookaheadInLineCharCode(){return this.input.charCodeAt(this.nextTokenInLineStart())}codePointAtPos(e){let r=this.input.charCodeAt(e);if((r&64512)===55296&&++e<this.input.length){let i=this.input.charCodeAt(e);(i&64512)===56320&&(r=65536+((r&1023)<<10)+(i&1023))}return r}setStrict(e){this.state.strict=e,e&&(this.state.strictErrors.forEach(([r,i])=>this.raise(r,{at:i})),this.state.strictErrors.clear())}curContext(){return this.state.context[this.state.context.length-1]}nextToken(){if(this.skipSpace(),this.state.start=this.state.pos,this.isLookahead||(this.state.startLoc=this.state.curPosition()),this.state.pos>=this.length){this.finishToken(137);return}this.getTokenFromCode(this.codePointAtPos(this.state.pos))}skipBlockComment(e){let r;this.isLookahead||(r=this.state.curPosition());let i=this.state.pos,s=this.input.indexOf(e,i+2);if(s===-1)throw this.raise(D.UnterminatedComment,{at:this.state.curPosition()});for(this.state.pos=s+e.length,Yp.lastIndex=i+2;Yp.test(this.input)&&Yp.lastIndex<=s;)++this.state.curLine,this.state.lineStart=Yp.lastIndex;if(this.isLookahead)return;let n={type:"CommentBlock",value:this.input.slice(i+2,s),start:i,end:s+e.length,loc:new ho(r,this.state.curPosition())};return this.options.tokens&&this.pushToken(n),n}skipLineComment(e){let r=this.state.pos,i;this.isLookahead||(i=this.state.curPosition());let s=this.input.charCodeAt(this.state.pos+=e);if(this.state.pos<this.length)for(;!lu(s)&&++this.state.pos<this.length;)s=this.input.charCodeAt(this.state.pos);if(this.isLookahead)return;let n=this.state.pos,o={type:"CommentLine",value:this.input.slice(r+e,n),start:r,end:n,loc:new ho(i,this.state.curPosition())};return this.options.tokens&&this.pushToken(o),o}skipSpace(){let e=this.state.pos,r=[];e:for(;this.state.pos<this.length;){let i=this.input.charCodeAt(this.state.pos);switch(i){case 32:case 160:case 9:++this.state.pos;break;case 13:this.input.charCodeAt(this.state.pos+1)===10&&++this.state.pos;case 10:case 8232:case 8233:++this.state.pos,++this.state.curLine,this.state.lineStart=this.state.pos;break;case 47:switch(this.input.charCodeAt(this.state.pos+1)){case 42:{let s=this.skipBlockComment("*/");s!==void 0&&(this.addComment(s),this.options.attachComment&&r.push(s));break}case 47:{let s=this.skipLineComment(2);s!==void 0&&(this.addComment(s),this.options.attachComment&&r.push(s));break}default:break e}break;default:if(DTe(i))++this.state.pos;else if(i===45&&!this.inModule&&this.options.annexB){let s=this.state.pos;if(this.input.charCodeAt(s+1)===45&&this.input.charCodeAt(s+2)===62&&(e===0||this.state.lineStart>e)){let n=this.skipLineComment(3);n!==void 0&&(this.addComment(n),this.options.attachComment&&r.push(n))}else break e}else if(i===60&&!this.inModule&&this.options.annexB){let s=this.state.pos;if(this.input.charCodeAt(s+1)===33&&this.input.charCodeAt(s+2)===45&&this.input.charCodeAt(s+3)===45){let n=this.skipLineComment(4);n!==void 0&&(this.addComment(n),this.options.attachComment&&r.push(n))}else break e}else break e}}if(r.length>0){let i=this.state.pos,s={start:e,end:i,comments:r,leadingNode:null,trailingNode:null,containingNode:null};this.state.commentStack.push(s)}}finishToken(e,r){this.state.end=this.state.pos,this.state.endLoc=this.state.curPosition();let i=this.state.type;this.state.type=e,this.state.value=r,this.isLookahead||this.updateContext(i)}replaceToken(e){this.state.type=e,this.updateContext()}readToken_numberSign(){if(this.state.pos===0&&this.readToken_interpreter())return;let e=this.state.pos+1,r=this.codePointAtPos(e);if(r>=48&&r<=57)throw this.raise(D.UnexpectedDigitAfterHash,{at:this.state.curPosition()});if(r===123||r===91&&this.hasPlugin("recordAndTuple")){if(this.expectPlugin("recordAndTuple"),this.getPluginOption("recordAndTuple","syntaxType")==="bar")throw this.raise(r===123?D.RecordExpressionHashIncorrectStartSyntaxType:D.TupleExpressionHashIncorrectStartSyntaxType,{at:this.state.curPosition()});this.state.pos+=2,r===123?this.finishToken(7):this.finishToken(1)}else Qi(r)?(++this.state.pos,this.finishToken(136,this.readWord1(r))):r===92?(++this.state.pos,this.finishToken(136,this.readWord1())):this.finishOp(27,1)}readToken_dot(){let e=this.input.charCodeAt(this.state.pos+1);if(e>=48&&e<=57){this.readNumber(!0);return}e===46&&this.input.charCodeAt(this.state.pos+2)===46?(this.state.pos+=3,this.finishToken(21)):(++this.state.pos,this.finishToken(16))}readToken_slash(){this.input.charCodeAt(this.state.pos+1)===61?this.finishOp(31,2):this.finishOp(56,1)}readToken_interpreter(){if(this.state.pos!==0||this.length<2)return!1;let e=this.input.charCodeAt(this.state.pos+1);if(e!==33)return!1;let r=this.state.pos;for(this.state.pos+=1;!lu(e)&&++this.state.pos<this.length;)e=this.input.charCodeAt(this.state.pos);let i=this.input.slice(r+2,this.state.pos);return this.finishToken(28,i),!0}readToken_mult_modulo(e){let r=e===42?55:54,i=1,s=this.input.charCodeAt(this.state.pos+1);e===42&&s===42&&(i++,s=this.input.charCodeAt(this.state.pos+2),r=57),s===61&&!this.state.inType&&(i++,r=e===37?33:30),this.finishOp(r,i)}readToken_pipe_amp(e){let r=this.input.charCodeAt(this.state.pos+1);if(r===e){this.input.charCodeAt(this.state.pos+2)===61?this.finishOp(30,3):this.finishOp(e===124?41:42,2);return}if(e===124){if(r===62){this.finishOp(39,2);return}if(this.hasPlugin("recordAndTuple")&&r===125){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar")throw this.raise(D.RecordExpressionBarIncorrectEndSyntaxType,{at:this.state.curPosition()});this.state.pos+=2,this.finishToken(9);return}if(this.hasPlugin("recordAndTuple")&&r===93){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar")throw this.raise(D.TupleExpressionBarIncorrectEndSyntaxType,{at:this.state.curPosition()});this.state.pos+=2,this.finishToken(4);return}}if(r===61){this.finishOp(30,2);return}this.finishOp(e===124?43:45,1)}readToken_caret(){let e=this.input.charCodeAt(this.state.pos+1);e===61&&!this.state.inType?this.finishOp(32,2):e===94&&this.hasPlugin(["pipelineOperator",{proposal:"hack",topicToken:"^^"}])?(this.finishOp(37,2),this.input.codePointAt(this.state.pos)===94&&this.unexpected()):this.finishOp(44,1)}readToken_atSign(){this.input.charCodeAt(this.state.pos+1)===64&&this.hasPlugin(["pipelineOperator",{proposal:"hack",topicToken:"@@"}])?this.finishOp(38,2):this.finishOp(26,1)}readToken_plus_min(e){let r=this.input.charCodeAt(this.state.pos+1);if(r===e){this.finishOp(34,2);return}r===61?this.finishOp(30,2):this.finishOp(53,1)}readToken_lt(){let{pos:e}=this.state,r=this.input.charCodeAt(e+1);if(r===60){if(this.input.charCodeAt(e+2)===61){this.finishOp(30,3);return}this.finishOp(51,2);return}if(r===61){this.finishOp(49,2);return}this.finishOp(47,1)}readToken_gt(){let{pos:e}=this.state,r=this.input.charCodeAt(e+1);if(r===62){let i=this.input.charCodeAt(e+2)===62?3:2;if(this.input.charCodeAt(e+i)===61){this.finishOp(30,i+1);return}this.finishOp(52,i);return}if(r===61){this.finishOp(49,2);return}this.finishOp(48,1)}readToken_eq_excl(e){let r=this.input.charCodeAt(this.state.pos+1);if(r===61){this.finishOp(46,this.input.charCodeAt(this.state.pos+2)===61?3:2);return}if(e===61&&r===62){this.state.pos+=2,this.finishToken(19);return}this.finishOp(e===61?29:35,1)}readToken_question(){let e=this.input.charCodeAt(this.state.pos+1),r=this.input.charCodeAt(this.state.pos+2);e===63?r===61?this.finishOp(30,3):this.finishOp(40,2):e===46&&!(r>=48&&r<=57)?(this.state.pos+=2,this.finishToken(18)):(++this.state.pos,this.finishToken(17))}getTokenFromCode(e){switch(e){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(D.TupleExpressionBarIncorrectStartSyntaxType,{at: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(D.RecordExpressionBarIncorrectStartSyntaxType,{at:this.state.curPosition()});this.state.pos+=2,this.finishToken(6)}else++this.state.pos,this.finishToken(5);return;case 125:++this.state.pos,this.finishToken(8);return;case 58:this.hasPlugin("functionBind")&&this.input.charCodeAt(this.state.pos+1)===58?this.finishOp(15,2):(++this.state.pos,this.finishToken(14));return;case 63:this.readToken_question();return;case 96:this.readTemplateToken();return;case 48:{let r=this.input.charCodeAt(this.state.pos+1);if(r===120||r===88){this.readRadixNumber(16);return}if(r===111||r===79){this.readRadixNumber(8);return}if(r===98||r===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(e);return;case 47:this.readToken_slash();return;case 37:case 42:this.readToken_mult_modulo(e);return;case 124:case 38:this.readToken_pipe_amp(e);return;case 94:this.readToken_caret();return;case 43:case 45:this.readToken_plus_min(e);return;case 60:this.readToken_lt();return;case 62:this.readToken_gt();return;case 61:case 33:this.readToken_eq_excl(e);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(Qi(e)){this.readWord(e);return}}throw this.raise(D.InvalidOrUnexpectedToken,{at:this.state.curPosition(),unexpected:String.fromCodePoint(e)})}finishOp(e,r){let i=this.input.slice(this.state.pos,this.state.pos+r);this.state.pos+=r,this.finishToken(e,i)}readRegexp(){let e=this.state.startLoc,r=this.state.start+1,i,s,{pos:n}=this.state;for(;;++n){if(n>=this.length)throw this.raise(D.UnterminatedRegExp,{at:Qt(e,1)});let u=this.input.charCodeAt(n);if(lu(u))throw this.raise(D.UnterminatedRegExp,{at:Qt(e,1)});if(i)i=!1;else{if(u===91)s=!0;else if(u===93&&s)s=!1;else if(u===47&&!s)break;i=u===92}}let a=this.input.slice(r,n);++n;let o="",l=()=>Qt(e,n+2-r);for(;n<this.length;){let u=this.codePointAtPos(n),f=String.fromCharCode(u);if(BTe.has(u))u===118?o.includes("u")&&this.raise(D.IncompatibleRegExpUVFlags,{at:l()}):u===117&&o.includes("v")&&this.raise(D.IncompatibleRegExpUVFlags,{at:l()}),o.includes(f)&&this.raise(D.DuplicateRegExpFlags,{at:l()});else if(lo(u)||u===92)this.raise(D.MalformedRegExpFlags,{at:l()});else break;++n,o+=f}this.state.pos=n,this.finishToken(135,{pattern:a,flags:o})}readInt(e,r,i=!1,s=!0){let{n,pos:a}=uM(this.input,this.state.pos,this.state.lineStart,this.state.curLine,e,r,i,s,this.errorHandlers_readInt,!1);return this.state.pos=a,n}readRadixNumber(e){let r=this.state.curPosition(),i=!1;this.state.pos+=2;let s=this.readInt(e);s==null&&this.raise(D.InvalidDigit,{at:Qt(r,2),radix:e});let n=this.input.charCodeAt(this.state.pos);if(n===110)++this.state.pos,i=!0;else if(n===109)throw this.raise(D.InvalidDecimal,{at:r});if(Qi(this.codePointAtPos(this.state.pos)))throw this.raise(D.NumberIdentifier,{at:this.state.curPosition()});if(i){let a=this.input.slice(r.index,this.state.pos).replace(/[_n]/g,"");this.finishToken(133,a);return}this.finishToken(132,s)}readNumber(e){let r=this.state.pos,i=this.state.curPosition(),s=!1,n=!1,a=!1,o=!1,l=!1;!e&&this.readInt(10)===null&&this.raise(D.InvalidNumber,{at:this.state.curPosition()});let u=this.state.pos-r>=2&&this.input.charCodeAt(r)===48;if(u){let d=this.input.slice(r,this.state.pos);if(this.recordStrictModeErrors(D.StrictOctalLiteral,{at:i}),!this.state.strict){let T=d.indexOf("_");T>0&&this.raise(D.ZeroDigitNumericSeparator,{at:Qt(i,T)})}l=u&&!/[89]/.test(d)}let f=this.input.charCodeAt(this.state.pos);if(f===46&&!l&&(++this.state.pos,this.readInt(10),s=!0,f=this.input.charCodeAt(this.state.pos)),(f===69||f===101)&&!l&&(f=this.input.charCodeAt(++this.state.pos),(f===43||f===45)&&++this.state.pos,this.readInt(10)===null&&this.raise(D.InvalidOrMissingExponent,{at:i}),s=!0,o=!0,f=this.input.charCodeAt(this.state.pos)),f===110&&((s||u)&&this.raise(D.InvalidBigIntLiteral,{at:i}),++this.state.pos,n=!0),f===109&&(this.expectPlugin("decimal",this.state.curPosition()),(o||u)&&this.raise(D.InvalidDecimal,{at:i}),++this.state.pos,a=!0),Qi(this.codePointAtPos(this.state.pos)))throw this.raise(D.NumberIdentifier,{at:this.state.curPosition()});let p=this.input.slice(r,this.state.pos).replace(/[_mn]/g,"");if(n){this.finishToken(133,p);return}if(a){this.finishToken(134,p);return}let h=l?parseInt(p,8):parseFloat(p);this.finishToken(132,h)}readCodePoint(e){let{code:r,pos:i}=cM(this.input,this.state.pos,this.state.lineStart,this.state.curLine,e,this.errorHandlers_readCodePoint);return this.state.pos=i,r}readString(e){let{str:r,pos:i,curLine:s,lineStart:n}=FR(e===34?"double":"single",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_string);this.state.pos=i+1,this.state.lineStart=n,this.state.curLine=s,this.finishToken(131,r)}readTemplateContinuation(){this.match(8)||this.unexpected(null,8),this.state.pos--,this.readTemplateToken()}readTemplateToken(){let e=this.input[this.state.pos],{str:r,firstInvalidLoc:i,pos:s,curLine:n,lineStart:a}=FR("template",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_template);this.state.pos=s+1,this.state.lineStart=a,this.state.curLine=n,i&&(this.state.firstInvalidTemplateEscapePos=new xi(i.curLine,i.pos-i.lineStart,i.pos)),this.input.codePointAt(s)===96?this.finishToken(24,i?null:e+r+"`"):(this.state.pos++,this.finishToken(25,i?null:e+r+"${"))}recordStrictModeErrors(e,{at:r}){let i=r.index;this.state.strict&&!this.state.strictErrors.has(i)?this.raise(e,{at:r}):this.state.strictErrors.set(i,[e,r])}readWord1(e){this.state.containsEsc=!1;let r="",i=this.state.pos,s=this.state.pos;for(e!==void 0&&(this.state.pos+=e<=65535?1:2);this.state.pos<this.length;){let n=this.codePointAtPos(this.state.pos);if(lo(n))this.state.pos+=n<=65535?1:2;else if(n===92){this.state.containsEsc=!0,r+=this.input.slice(s,this.state.pos);let a=this.state.curPosition(),o=this.state.pos===i?Qi:lo;if(this.input.charCodeAt(++this.state.pos)!==117){this.raise(D.MissingUnicodeEscape,{at:this.state.curPosition()}),s=this.state.pos-1;continue}++this.state.pos;let l=this.readCodePoint(!0);l!==null&&(o(l)||this.raise(D.EscapedCharNotAnIdentifier,{at:a}),r+=String.fromCodePoint(l)),s=this.state.pos}else break}return r+this.input.slice(s,this.state.pos)}readWord(e){let r=this.readWord1(e),i=sb.get(r);i!==void 0?this.finishToken(i,Xs(i)):this.finishToken(130,r)}checkKeywordEscapes(){let{type:e}=this.state;cb(e)&&this.state.containsEsc&&this.raise(D.InvalidEscapedReservedWord,{at:this.state.startLoc,reservedWord:Xs(e)})}raise(e,r){let{at:i}=r,s=eh(r,MTe),n=i instanceof xi?i:i.loc.start,a=e({loc:n,details:s});if(!this.options.errorRecovery)throw a;return this.isLookahead||this.state.errors.push(a),a}raiseOverwrite(e,r){let{at:i}=r,s=eh(r,FTe),n=i instanceof xi?i:i.loc.start,a=n.index,o=this.state.errors;for(let l=o.length-1;l>=0;l--){let u=o[l];if(u.loc.index===a)return o[l]=e({loc:n,details:s});if(u.loc.index<a)break}return this.raise(e,r)}updateContext(e){}unexpected(e,r){throw this.raise(D.UnexpectedToken,{expected:r?Xs(r):null,at:e??this.state.startLoc})}expectPlugin(e,r){if(this.hasPlugin(e))return!0;throw this.raise(D.MissingPlugin,{at:r??this.state.startLoc,missingPlugin:[e]})}expectOnePlugin(e){if(!e.some(r=>this.hasPlugin(r)))throw this.raise(D.MissingOneOfPlugins,{at:this.state.startLoc,missingPlugin:e})}errorBuilder(e){return(r,i,s)=>{this.raise(e,{at:su(r,i,s)})}}},GE=class{constructor(){this.privateNames=new Set,this.loneAccessors=new Map,this.undefinedPrivateNames=new Map}},YE=class{constructor(e){this.parser=void 0,this.stack=[],this.undefinedPrivateNames=new Map,this.parser=e}current(){return this.stack[this.stack.length-1]}enter(){this.stack.push(new GE)}exit(){let e=this.stack.pop(),r=this.current();for(let[i,s]of Array.from(e.undefinedPrivateNames))r?r.undefinedPrivateNames.has(i)||r.undefinedPrivateNames.set(i,s):this.parser.raise(D.InvalidPrivateFieldResolution,{at:s,identifierName:i})}declarePrivateName(e,r,i){let{privateNames:s,loneAccessors:n,undefinedPrivateNames:a}=this.current(),o=s.has(e);if(r&IE){let l=o&&n.get(e);if(l){let u=l&oh,f=r&oh,p=l&IE,h=r&IE;o=p===h||u!==f,o||n.delete(e)}else o||n.set(e,r)}o&&this.parser.raise(D.PrivateNameRedeclaration,{at:i,identifierName:e}),s.add(e),a.delete(e)}usePrivateName(e,r){let i;for(i of this.stack)if(i.privateNames.has(e))return;i?i.undefinedPrivateNames.set(e,r):this.parser.raise(D.InvalidPrivateFieldResolution,{at:r,identifierName:e})}},jTe=0,fM=1,gb=2,pM=3,mo=class{constructor(e=jTe){this.type=void 0,this.type=e}canBeArrowParameterDeclaration(){return this.type===gb||this.type===fM}isCertainlyParameterDeclaration(){return this.type===pM}},lh=class extends mo{constructor(e){super(e),this.declarationErrors=new Map}recordDeclarationError(e,{at:r}){let i=r.index;this.declarationErrors.set(i,[e,r])}clearDeclarationError(e){this.declarationErrors.delete(e)}iterateErrors(e){this.declarationErrors.forEach(e)}},XE=class{constructor(e){this.parser=void 0,this.stack=[new mo],this.parser=e}enter(e){this.stack.push(e)}exit(){this.stack.pop()}recordParameterInitializerError(e,{at:r}){let i={at:r.loc.start},{stack:s}=this,n=s.length-1,a=s[n];for(;!a.isCertainlyParameterDeclaration();){if(a.canBeArrowParameterDeclaration())a.recordDeclarationError(e,i);else return;a=s[--n]}this.parser.raise(e,i)}recordArrowParameterBindingError(e,{at:r}){let{stack:i}=this,s=i[i.length-1],n={at:r.loc.start};if(s.isCertainlyParameterDeclaration())this.parser.raise(e,n);else if(s.canBeArrowParameterDeclaration())s.recordDeclarationError(e,n);else return}recordAsyncArrowParametersError({at:e}){let{stack:r}=this,i=r.length-1,s=r[i];for(;s.canBeArrowParameterDeclaration();)s.type===gb&&s.recordDeclarationError(D.AwaitBindingIdentifier,{at:e}),s=r[--i]}validateAsPattern(){let{stack:e}=this,r=e[e.length-1];r.canBeArrowParameterDeclaration()&&r.iterateErrors(([i,s])=>{this.parser.raise(i,{at:s});let n=e.length-2,a=e[n];for(;a.canBeArrowParameterDeclaration();)a.clearDeclarationError(s.index),a=e[--n]})}};function qTe(){return new mo(pM)}function UTe(){return new lh(fM)}function $Te(){return new lh(gb)}function hM(){return new mo}var fo=0,dM=1,fh=2,mM=4,so=8,zE=class{constructor(){this.stacks=[]}enter(e){this.stacks.push(e)}exit(){this.stacks.pop()}currentFlags(){return this.stacks[this.stacks.length-1]}get hasAwait(){return(this.currentFlags()&fh)>0}get hasYield(){return(this.currentFlags()&dM)>0}get hasReturn(){return(this.currentFlags()&mM)>0}get hasIn(){return(this.currentFlags()&so)>0}};function Zp(t,e){return(t?fh:0)|(e?dM:0)}var JE=class extends WE{addExtra(e,r,i,s=!0){if(!e)return;let n=e.extra=e.extra||{};s?n[r]=i:Object.defineProperty(n,r,{enumerable:s,value:i})}isContextual(e){return this.state.type===e&&!this.state.containsEsc}isUnparsedContextual(e,r){let i=e+r.length;if(this.input.slice(e,i)===r){let s=this.input.charCodeAt(i);return!(lo(s)||(s&64512)===55296)}return!1}isLookaheadContextual(e){let r=this.nextTokenStart();return this.isUnparsedContextual(r,e)}eatContextual(e){return this.isContextual(e)?(this.next(),!0):!1}expectContextual(e,r){if(!this.eatContextual(e)){if(r!=null)throw this.raise(r,{at:this.state.startLoc});this.unexpected(null,e)}}canInsertSemicolon(){return this.match(137)||this.match(8)||this.hasPrecedingLineBreak()}hasPrecedingLineBreak(){return lM.test(this.input.slice(this.state.lastTokEndLoc.index,this.state.start))}hasFollowingLineBreak(){return RR.lastIndex=this.state.end,RR.test(this.input)}isLineTerminator(){return this.eat(13)||this.canInsertSemicolon()}semicolon(e=!0){(e?this.isLineTerminator():this.eat(13))||this.raise(D.MissingSemicolon,{at:this.state.lastTokEndLoc})}expect(e,r){this.eat(e)||this.unexpected(r,e)}tryParse(e,r=this.state.clone()){let i={node:null};try{let s=e((n=null)=>{throw i.node=n,i});if(this.state.errors.length>r.errors.length){let n=this.state;return this.state=r,this.state.tokensLength=n.tokensLength,{node:s,error:n.errors[r.errors.length],thrown:!1,aborted:!1,failState:n}}return{node:s,error:null,thrown:!1,aborted:!1,failState:null}}catch(s){let n=this.state;if(this.state=r,s instanceof SyntaxError)return{node:null,error:s,thrown:!0,aborted:!1,failState:n};if(s===i)return{node:i.node,error:null,thrown:!1,aborted:!0,failState:n};throw s}}checkExpressionErrors(e,r){if(!e)return!1;let{shorthandAssignLoc:i,doubleProtoLoc:s,privateKeyLoc:n,optionalParametersLoc:a}=e,o=!!i||!!s||!!a||!!n;if(!r)return o;i!=null&&this.raise(D.InvalidCoverInitializedName,{at:i}),s!=null&&this.raise(D.DuplicateProto,{at:s}),n!=null&&this.raise(D.UnexpectedPrivateField,{at:n}),a!=null&&this.unexpected(a)}isLiteralPropertyName(){return GR(this.state.type)}isPrivateName(e){return e.type==="PrivateName"}getPrivateNameSV(e){return e.id.name}hasPropertyAsPrivateName(e){return(e.type==="MemberExpression"||e.type==="OptionalMemberExpression")&&this.isPrivateName(e.property)}isObjectProperty(e){return e.type==="ObjectProperty"}isObjectMethod(e){return e.type==="ObjectMethod"}initializeScopes(e=this.options.sourceType==="module"){let r=this.state.labels;this.state.labels=[];let i=this.exportedIdentifiers;this.exportedIdentifiers=new Set;let s=this.inModule;this.inModule=e;let n=this.scope,a=this.getScopeHandler();this.scope=new a(this,e);let o=this.prodParam;this.prodParam=new zE;let l=this.classScope;this.classScope=new YE(this);let u=this.expressionScope;return this.expressionScope=new XE(this),()=>{this.state.labels=r,this.exportedIdentifiers=i,this.inModule=s,this.scope=n,this.prodParam=o,this.classScope=l,this.expressionScope=u}}enterInitialScopes(){let e=fo;this.inModule&&(e|=fh),this.scope.enter(ao),this.prodParam.enter(e)}checkDestructuringPrivate(e){let{privateKeyLoc:r}=e;r!==null&&this.expectPlugin("destructuringPrivate",r)}},po=class{constructor(){this.shorthandAssignLoc=null,this.doubleProtoLoc=null,this.privateKeyLoc=null,this.optionalParametersLoc=null}},yo=class{constructor(e,r,i){this.type="",this.start=r,this.end=0,this.loc=new ho(i),e!=null&&e.options.ranges&&(this.range=[r,0]),e!=null&&e.filename&&(this.loc.filename=e.filename)}},Sb=yo.prototype;Sb.__clone=function(){let t=new yo(void 0,this.start,this.loc.start),e=Object.keys(this);for(let r=0,i=e.length;r<i;r++){let s=e[r];s!=="leadingComments"&&s!=="trailingComments"&&s!=="innerComments"&&(t[s]=this[s])}return t};function VTe(t){return ts(t)}function ts(t){let{type:e,start:r,end:i,loc:s,range:n,extra:a,name:o}=t,l=Object.create(Sb);return l.type=e,l.start=r,l.end=i,l.loc=s,l.range=n,l.extra=a,l.name=o,e==="Placeholder"&&(l.expectedNode=t.expectedNode),l}function KTe(t){let{type:e,start:r,end:i,loc:s,range:n,extra:a}=t;if(e==="Placeholder")return VTe(t);let o=Object.create(Sb);return o.type=e,o.start=r,o.end=i,o.loc=s,o.range=n,t.raw!==void 0?o.raw=t.raw:o.extra=a,o.value=t.value,o}var QE=class extends JE{startNode(){return new yo(this,this.state.start,this.state.startLoc)}startNodeAt(e){return new yo(this,e.index,e)}startNodeAtNode(e){return this.startNodeAt(e.loc.start)}finishNode(e,r){return this.finishNodeAt(e,r,this.state.lastTokEndLoc)}finishNodeAt(e,r,i){return e.type=r,e.end=i.index,e.loc.end=i,this.options.ranges&&(e.range[1]=i.index),this.options.attachComment&&this.processComment(e),e}resetStartLocation(e,r){e.start=r.index,e.loc.start=r,this.options.ranges&&(e.range[0]=r.index)}resetEndLocation(e,r=this.state.lastTokEndLoc){e.end=r.index,e.loc.end=r,this.options.ranges&&(e.range[1]=r.index)}resetStartLocationFromNode(e,r){this.resetStartLocation(e,r.loc.start)}},HTe=new Set(["_","any","bool","boolean","empty","extends","false","interface","mixed","null","number","static","string","true","typeof","void"]),ye=Zi`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:t})=>`Cannot overwrite reserved type ${t}.`,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:t,enumName:e})=>`Boolean enum members need to be initialized. Use either \`${t} = true,\` or \`${t} = false,\` in enum \`${e}\`.`,EnumDuplicateMemberName:({memberName:t,enumName:e})=>`Enum member names need to be unique, but the name \`${t}\` has already been used before in enum \`${e}\`.`,EnumInconsistentMemberValues:({enumName:t})=>`Enum \`${t}\` has inconsistent member initializers. Either use no initializers, or consistently use literals (either booleans, numbers, or strings) for all member initializers.`,EnumInvalidExplicitType:({invalidEnumType:t,enumName:e})=>`Enum type \`${t}\` is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${e}\`.`,EnumInvalidExplicitTypeUnknownSupplied:({enumName:t})=>`Supplied enum type is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${t}\`.`,EnumInvalidMemberInitializerPrimaryType:({enumName:t,memberName:e,explicitType:r})=>`Enum \`${t}\` has type \`${r}\`, so the initializer of \`${e}\` needs to be a ${r} literal.`,EnumInvalidMemberInitializerSymbolType:({enumName:t,memberName:e})=>`Symbol enum members cannot be initialized. Use \`${e},\` in enum \`${t}\`.`,EnumInvalidMemberInitializerUnknownType:({enumName:t,memberName:e})=>`The enum member initializer for \`${e}\` needs to be a literal (either a boolean, number, or string) in enum \`${t}\`.`,EnumInvalidMemberName:({enumName:t,memberName:e,suggestion:r})=>`Enum member names cannot start with lowercase 'a' through 'z'. Instead of using \`${e}\`, consider using \`${r}\`, in enum \`${t}\`.`,EnumNumberMemberNotInitialized:({enumName:t,memberName:e})=>`Number enum members need to be initialized, e.g. \`${e} = 1\` in enum \`${t}\`.`,EnumStringMemberInconsistentlyInitailized:({enumName:t})=>`String enum members need to consistently either all use initializers, or use no initializers, in enum \`${t}\`.`,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:t})=>`Unexpected reserved type ${t}.`,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:t,suggestion:e})=>`\`declare export ${t}\` is not supported. Use \`${e}\` instead.`,UnsupportedStatementInDeclareModule:"Only declares and type imports are allowed inside declare module.",UnterminatedFlowComment:"Unterminated flow-comment."});function WTe(t){return t.type==="DeclareExportAllDeclaration"||t.type==="DeclareExportDeclaration"&&(!t.declaration||t.declaration.type!=="TypeAlias"&&t.declaration.type!=="InterfaceDeclaration")}function BR(t){return t.importKind==="type"||t.importKind==="typeof"}var GTe={const:"declare export var",let:"declare export var",type:"export type",interface:"export interface"};function YTe(t,e){let r=[],i=[];for(let s=0;s<t.length;s++)(e(t[s],s,t)?r:i).push(t[s]);return[r,i]}var XTe=/\*?\s*@((?:no)?flow)\b/,zTe=t=>class extends t{constructor(...r){super(...r),this.flowPragma=void 0}getScopeHandler(){return $E}shouldParseTypes(){return this.getPluginOption("flow","all")||this.flowPragma==="flow"}shouldParseEnums(){return!!this.getPluginOption("flow","enums")}finishToken(r,i){r!==131&&r!==13&&r!==28&&this.flowPragma===void 0&&(this.flowPragma=null),super.finishToken(r,i)}addComment(r){if(this.flowPragma===void 0){let i=XTe.exec(r.value);if(i)if(i[1]==="flow")this.flowPragma="flow";else if(i[1]==="noflow")this.flowPragma="noflow";else throw new Error("Unexpected flow pragma")}super.addComment(r)}flowParseTypeInitialiser(r){let i=this.state.inType;this.state.inType=!0,this.expect(r||14);let s=this.flowParseType();return this.state.inType=i,s}flowParsePredicate(){let r=this.startNode(),i=this.state.startLoc;return this.next(),this.expectContextual(108),this.state.lastTokStart>i.index+1&&this.raise(ye.UnexpectedSpaceBetweenModuloChecks,{at:i}),this.eat(10)?(r.value=super.parseExpression(),this.expect(11),this.finishNode(r,"DeclaredPredicate")):this.finishNode(r,"InferredPredicate")}flowParseTypeAndPredicateInitialiser(){let r=this.state.inType;this.state.inType=!0,this.expect(14);let i=null,s=null;return this.match(54)?(this.state.inType=r,s=this.flowParsePredicate()):(i=this.flowParseType(),this.state.inType=r,this.match(54)&&(s=this.flowParsePredicate())),[i,s]}flowParseDeclareClass(r){return this.next(),this.flowParseInterfaceish(r,!0),this.finishNode(r,"DeclareClass")}flowParseDeclareFunction(r){this.next();let i=r.id=this.parseIdentifier(),s=this.startNode(),n=this.startNode();this.match(47)?s.typeParameters=this.flowParseTypeParameterDeclaration():s.typeParameters=null,this.expect(10);let a=this.flowParseFunctionTypeParams();return s.params=a.params,s.rest=a.rest,s.this=a._this,this.expect(11),[s.returnType,r.predicate]=this.flowParseTypeAndPredicateInitialiser(),n.typeAnnotation=this.finishNode(s,"FunctionTypeAnnotation"),i.typeAnnotation=this.finishNode(n,"TypeAnnotation"),this.resetEndLocation(i),this.semicolon(),this.scope.declareName(r.id.name,wTe,r.id.loc.start),this.finishNode(r,"DeclareFunction")}flowParseDeclare(r,i){if(this.match(80))return this.flowParseDeclareClass(r);if(this.match(68))return this.flowParseDeclareFunction(r);if(this.match(74))return this.flowParseDeclareVariable(r);if(this.eatContextual(125))return this.match(16)?this.flowParseDeclareModuleExports(r):(i&&this.raise(ye.NestedDeclareModule,{at:this.state.lastTokStartLoc}),this.flowParseDeclareModule(r));if(this.isContextual(128))return this.flowParseDeclareTypeAlias(r);if(this.isContextual(129))return this.flowParseDeclareOpaqueType(r);if(this.isContextual(127))return this.flowParseDeclareInterface(r);if(this.match(82))return this.flowParseDeclareExportDeclaration(r,i);this.unexpected()}flowParseDeclareVariable(r){return this.next(),r.id=this.flowParseTypeAnnotatableIdentifier(!0),this.scope.declareName(r.id.name,ah,r.id.loc.start),this.semicolon(),this.finishNode(r,"DeclareVariable")}flowParseDeclareModule(r){this.scope.enter(no),this.match(131)?r.id=super.parseExprAtom():r.id=this.parseIdentifier();let i=r.body=this.startNode(),s=i.body=[];for(this.expect(5);!this.match(8);){let o=this.startNode();this.match(83)?(this.next(),!this.isContextual(128)&&!this.match(87)&&this.raise(ye.InvalidNonTypeImportInDeclareModule,{at:this.state.lastTokStartLoc}),super.parseImport(o)):(this.expectContextual(123,ye.UnsupportedStatementInDeclareModule),o=this.flowParseDeclare(o,!0)),s.push(o)}this.scope.exit(),this.expect(8),this.finishNode(i,"BlockStatement");let n=null,a=!1;return s.forEach(o=>{WTe(o)?(n==="CommonJS"&&this.raise(ye.AmbiguousDeclareModuleKind,{at:o}),n="ES"):o.type==="DeclareModuleExports"&&(a&&this.raise(ye.DuplicateDeclareModuleExports,{at:o}),n==="ES"&&this.raise(ye.AmbiguousDeclareModuleKind,{at:o}),n="CommonJS",a=!0)}),r.kind=n||"CommonJS",this.finishNode(r,"DeclareModule")}flowParseDeclareExportDeclaration(r,i){if(this.expect(82),this.eat(65))return this.match(68)||this.match(80)?r.declaration=this.flowParseDeclare(this.startNode()):(r.declaration=this.flowParseType(),this.semicolon()),r.default=!0,this.finishNode(r,"DeclareExportDeclaration");if(this.match(75)||this.isLet()||(this.isContextual(128)||this.isContextual(127))&&!i){let s=this.state.value;throw this.raise(ye.UnsupportedDeclareExportKind,{at:this.state.startLoc,unsupportedExportKind:s,suggestion:GTe[s]})}if(this.match(74)||this.match(68)||this.match(80)||this.isContextual(129))return r.declaration=this.flowParseDeclare(this.startNode()),r.default=!1,this.finishNode(r,"DeclareExportDeclaration");if(this.match(55)||this.match(5)||this.isContextual(127)||this.isContextual(128)||this.isContextual(129))return r=this.parseExport(r,null),r.type==="ExportNamedDeclaration"&&(r.type="ExportDeclaration",r.default=!1,delete r.exportKind),r.type="Declare"+r.type,r;this.unexpected()}flowParseDeclareModuleExports(r){return this.next(),this.expectContextual(109),r.typeAnnotation=this.flowParseTypeAnnotation(),this.semicolon(),this.finishNode(r,"DeclareModuleExports")}flowParseDeclareTypeAlias(r){this.next();let i=this.flowParseTypeAlias(r);return i.type="DeclareTypeAlias",i}flowParseDeclareOpaqueType(r){this.next();let i=this.flowParseOpaqueType(r,!0);return i.type="DeclareOpaqueType",i}flowParseDeclareInterface(r){return this.next(),this.flowParseInterfaceish(r,!1),this.finishNode(r,"DeclareInterface")}flowParseInterfaceish(r,i){if(r.id=this.flowParseRestrictedIdentifier(!i,!0),this.scope.declareName(r.id.name,i?nM:co,r.id.loc.start),this.match(47)?r.typeParameters=this.flowParseTypeParameterDeclaration():r.typeParameters=null,r.extends=[],this.eat(81))do r.extends.push(this.flowParseInterfaceExtends());while(!i&&this.eat(12));if(i){if(r.implements=[],r.mixins=[],this.eatContextual(115))do r.mixins.push(this.flowParseInterfaceExtends());while(this.eat(12));if(this.eatContextual(111))do r.implements.push(this.flowParseInterfaceExtends());while(this.eat(12))}r.body=this.flowParseObjectType({allowStatic:i,allowExact:!1,allowSpread:!1,allowProto:i,allowInexact:!1})}flowParseInterfaceExtends(){let r=this.startNode();return r.id=this.flowParseQualifiedTypeIdentifier(),this.match(47)?r.typeParameters=this.flowParseTypeParameterInstantiation():r.typeParameters=null,this.finishNode(r,"InterfaceExtends")}flowParseInterface(r){return this.flowParseInterfaceish(r,!1),this.finishNode(r,"InterfaceDeclaration")}checkNotUnderscore(r){r==="_"&&this.raise(ye.UnexpectedReservedUnderscore,{at:this.state.startLoc})}checkReservedType(r,i,s){HTe.has(r)&&this.raise(s?ye.AssignReservedType:ye.UnexpectedReservedType,{at:i,reservedType:r})}flowParseRestrictedIdentifier(r,i){return this.checkReservedType(this.state.value,this.state.startLoc,i),this.parseIdentifier(r)}flowParseTypeAlias(r){return r.id=this.flowParseRestrictedIdentifier(!1,!0),this.scope.declareName(r.id.name,co,r.id.loc.start),this.match(47)?r.typeParameters=this.flowParseTypeParameterDeclaration():r.typeParameters=null,r.right=this.flowParseTypeInitialiser(29),this.semicolon(),this.finishNode(r,"TypeAlias")}flowParseOpaqueType(r,i){return this.expectContextual(128),r.id=this.flowParseRestrictedIdentifier(!0,!0),this.scope.declareName(r.id.name,co,r.id.loc.start),this.match(47)?r.typeParameters=this.flowParseTypeParameterDeclaration():r.typeParameters=null,r.supertype=null,this.match(14)&&(r.supertype=this.flowParseTypeInitialiser(14)),r.impltype=null,i||(r.impltype=this.flowParseTypeInitialiser(29)),this.semicolon(),this.finishNode(r,"OpaqueType")}flowParseTypeParameter(r=!1){let i=this.state.startLoc,s=this.startNode(),n=this.flowParseVariance(),a=this.flowParseTypeAnnotatableIdentifier();return s.name=a.name,s.variance=n,s.bound=a.typeAnnotation,this.match(29)?(this.eat(29),s.default=this.flowParseType()):r&&this.raise(ye.MissingTypeParamDefault,{at:i}),this.finishNode(s,"TypeParameter")}flowParseTypeParameterDeclaration(){let r=this.state.inType,i=this.startNode();i.params=[],this.state.inType=!0,this.match(47)||this.match(140)?this.next():this.unexpected();let s=!1;do{let n=this.flowParseTypeParameter(s);i.params.push(n),n.default&&(s=!0),this.match(48)||this.expect(12)}while(!this.match(48));return this.expect(48),this.state.inType=r,this.finishNode(i,"TypeParameterDeclaration")}flowParseTypeParameterInstantiation(){let r=this.startNode(),i=this.state.inType;r.params=[],this.state.inType=!0,this.expect(47);let s=this.state.noAnonFunctionType;for(this.state.noAnonFunctionType=!1;!this.match(48);)r.params.push(this.flowParseType()),this.match(48)||this.expect(12);return this.state.noAnonFunctionType=s,this.expect(48),this.state.inType=i,this.finishNode(r,"TypeParameterInstantiation")}flowParseTypeParameterInstantiationCallOrNew(){let r=this.startNode(),i=this.state.inType;for(r.params=[],this.state.inType=!0,this.expect(47);!this.match(48);)r.params.push(this.flowParseTypeOrImplicitInstantiation()),this.match(48)||this.expect(12);return this.expect(48),this.state.inType=i,this.finishNode(r,"TypeParameterInstantiation")}flowParseInterfaceType(){let r=this.startNode();if(this.expectContextual(127),r.extends=[],this.eat(81))do r.extends.push(this.flowParseInterfaceExtends());while(this.eat(12));return r.body=this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!1,allowProto:!1,allowInexact:!1}),this.finishNode(r,"InterfaceTypeAnnotation")}flowParseObjectPropertyKey(){return this.match(132)||this.match(131)?super.parseExprAtom():this.parseIdentifier(!0)}flowParseObjectTypeIndexer(r,i,s){return r.static=i,this.lookahead().type===14?(r.id=this.flowParseObjectPropertyKey(),r.key=this.flowParseTypeInitialiser()):(r.id=null,r.key=this.flowParseType()),this.expect(3),r.value=this.flowParseTypeInitialiser(),r.variance=s,this.finishNode(r,"ObjectTypeIndexer")}flowParseObjectTypeInternalSlot(r,i){return r.static=i,r.id=this.flowParseObjectPropertyKey(),this.expect(3),this.expect(3),this.match(47)||this.match(10)?(r.method=!0,r.optional=!1,r.value=this.flowParseObjectTypeMethodish(this.startNodeAt(r.loc.start))):(r.method=!1,this.eat(17)&&(r.optional=!0),r.value=this.flowParseTypeInitialiser()),this.finishNode(r,"ObjectTypeInternalSlot")}flowParseObjectTypeMethodish(r){for(r.params=[],r.rest=null,r.typeParameters=null,r.this=null,this.match(47)&&(r.typeParameters=this.flowParseTypeParameterDeclaration()),this.expect(10),this.match(78)&&(r.this=this.flowParseFunctionTypeParam(!0),r.this.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)r.params.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(r.rest=this.flowParseFunctionTypeParam(!1)),this.expect(11),r.returnType=this.flowParseTypeInitialiser(),this.finishNode(r,"FunctionTypeAnnotation")}flowParseObjectTypeCallProperty(r,i){let s=this.startNode();return r.static=i,r.value=this.flowParseObjectTypeMethodish(s),this.finishNode(r,"ObjectTypeCallProperty")}flowParseObjectType({allowStatic:r,allowExact:i,allowSpread:s,allowProto:n,allowInexact:a}){let o=this.state.inType;this.state.inType=!0;let l=this.startNode();l.callProperties=[],l.properties=[],l.indexers=[],l.internalSlots=[];let u,f,p=!1;for(i&&this.match(6)?(this.expect(6),u=9,f=!0):(this.expect(5),u=8,f=!1),l.exact=f;!this.match(u);){let d=!1,T=null,b=null,x=this.startNode();if(n&&this.isContextual(116)){let R=this.lookahead();R.type!==14&&R.type!==17&&(this.next(),T=this.state.startLoc,r=!1)}if(r&&this.isContextual(104)){let R=this.lookahead();R.type!==14&&R.type!==17&&(this.next(),d=!0)}let _=this.flowParseVariance();if(this.eat(0))T!=null&&this.unexpected(T),this.eat(0)?(_&&this.unexpected(_.loc.start),l.internalSlots.push(this.flowParseObjectTypeInternalSlot(x,d))):l.indexers.push(this.flowParseObjectTypeIndexer(x,d,_));else if(this.match(10)||this.match(47))T!=null&&this.unexpected(T),_&&this.unexpected(_.loc.start),l.callProperties.push(this.flowParseObjectTypeCallProperty(x,d));else{let R="init";if(this.isContextual(98)||this.isContextual(103)){let M=this.lookahead();GR(M.type)&&(R=this.state.value,this.next())}let k=this.flowParseObjectTypeProperty(x,d,T,_,R,s,a??!f);k===null?(p=!0,b=this.state.lastTokStartLoc):l.properties.push(k)}this.flowObjectTypeSemicolon(),b&&!this.match(8)&&!this.match(9)&&this.raise(ye.UnexpectedExplicitInexactInObject,{at:b})}this.expect(u),s&&(l.inexact=p);let h=this.finishNode(l,"ObjectTypeAnnotation");return this.state.inType=o,h}flowParseObjectTypeProperty(r,i,s,n,a,o,l){if(this.eat(21))return this.match(12)||this.match(13)||this.match(8)||this.match(9)?(o?l||this.raise(ye.InexactInsideExact,{at:this.state.lastTokStartLoc}):this.raise(ye.InexactInsideNonObject,{at:this.state.lastTokStartLoc}),n&&this.raise(ye.InexactVariance,{at:n}),null):(o||this.raise(ye.UnexpectedSpreadType,{at:this.state.lastTokStartLoc}),s!=null&&this.unexpected(s),n&&this.raise(ye.SpreadVariance,{at:n}),r.argument=this.flowParseType(),this.finishNode(r,"ObjectTypeSpreadProperty"));{r.key=this.flowParseObjectPropertyKey(),r.static=i,r.proto=s!=null,r.kind=a;let u=!1;return this.match(47)||this.match(10)?(r.method=!0,s!=null&&this.unexpected(s),n&&this.unexpected(n.loc.start),r.value=this.flowParseObjectTypeMethodish(this.startNodeAt(r.loc.start)),(a==="get"||a==="set")&&this.flowCheckGetterSetterParams(r),!o&&r.key.name==="constructor"&&r.value.this&&this.raise(ye.ThisParamBannedInConstructor,{at:r.value.this})):(a!=="init"&&this.unexpected(),r.method=!1,this.eat(17)&&(u=!0),r.value=this.flowParseTypeInitialiser(),r.variance=n),r.optional=u,this.finishNode(r,"ObjectTypeProperty")}}flowCheckGetterSetterParams(r){let i=r.kind==="get"?0:1,s=r.value.params.length+(r.value.rest?1:0);r.value.this&&this.raise(r.kind==="get"?ye.GetterMayNotHaveThisParam:ye.SetterMayNotHaveThisParam,{at:r.value.this}),s!==i&&this.raise(r.kind==="get"?D.BadGetterArity:D.BadSetterArity,{at:r}),r.kind==="set"&&r.value.rest&&this.raise(D.BadSetterRestParameter,{at:r})}flowObjectTypeSemicolon(){!this.eat(13)&&!this.eat(12)&&!this.match(8)&&!this.match(9)&&this.unexpected()}flowParseQualifiedTypeIdentifier(r,i){var s;(s=r)!=null||(r=this.state.startLoc);let n=i||this.flowParseRestrictedIdentifier(!0);for(;this.eat(16);){let a=this.startNodeAt(r);a.qualification=n,a.id=this.flowParseRestrictedIdentifier(!0),n=this.finishNode(a,"QualifiedTypeIdentifier")}return n}flowParseGenericType(r,i){let s=this.startNodeAt(r);return s.typeParameters=null,s.id=this.flowParseQualifiedTypeIdentifier(r,i),this.match(47)&&(s.typeParameters=this.flowParseTypeParameterInstantiation()),this.finishNode(s,"GenericTypeAnnotation")}flowParseTypeofType(){let r=this.startNode();return this.expect(87),r.argument=this.flowParsePrimaryType(),this.finishNode(r,"TypeofTypeAnnotation")}flowParseTupleType(){let r=this.startNode();for(r.types=[],this.expect(0);this.state.pos<this.length&&!this.match(3)&&(r.types.push(this.flowParseType()),!this.match(3));)this.expect(12);return this.expect(3),this.finishNode(r,"TupleTypeAnnotation")}flowParseFunctionTypeParam(r){let i=null,s=!1,n=null,a=this.startNode(),o=this.lookahead(),l=this.state.type===78;return o.type===14||o.type===17?(l&&!r&&this.raise(ye.ThisParamMustBeFirst,{at:a}),i=this.parseIdentifier(l),this.eat(17)&&(s=!0,l&&this.raise(ye.ThisParamMayNotBeOptional,{at:a})),n=this.flowParseTypeInitialiser()):n=this.flowParseType(),a.name=i,a.optional=s,a.typeAnnotation=n,this.finishNode(a,"FunctionTypeParam")}reinterpretTypeAsFunctionTypeParam(r){let i=this.startNodeAt(r.loc.start);return i.name=null,i.optional=!1,i.typeAnnotation=r,this.finishNode(i,"FunctionTypeParam")}flowParseFunctionTypeParams(r=[]){let i=null,s=null;for(this.match(78)&&(s=this.flowParseFunctionTypeParam(!0),s.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)r.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(i=this.flowParseFunctionTypeParam(!1)),{params:r,rest:i,_this:s}}flowIdentToTypeAnnotation(r,i,s){switch(s.name){case"any":return this.finishNode(i,"AnyTypeAnnotation");case"bool":case"boolean":return this.finishNode(i,"BooleanTypeAnnotation");case"mixed":return this.finishNode(i,"MixedTypeAnnotation");case"empty":return this.finishNode(i,"EmptyTypeAnnotation");case"number":return this.finishNode(i,"NumberTypeAnnotation");case"string":return this.finishNode(i,"StringTypeAnnotation");case"symbol":return this.finishNode(i,"SymbolTypeAnnotation");default:return this.checkNotUnderscore(s.name),this.flowParseGenericType(r,s)}}flowParsePrimaryType(){let r=this.state.startLoc,i=this.startNode(),s,n,a=!1,o=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,n=this.flowParseTupleType(),this.state.noAnonFunctionType=o,n;case 47:return i.typeParameters=this.flowParseTypeParameterDeclaration(),this.expect(10),s=this.flowParseFunctionTypeParams(),i.params=s.params,i.rest=s.rest,i.this=s._this,this.expect(11),this.expect(19),i.returnType=this.flowParseType(),this.finishNode(i,"FunctionTypeAnnotation");case 10:if(this.next(),!this.match(11)&&!this.match(21))if(Ve(this.state.type)||this.match(78)){let l=this.lookahead().type;a=l!==17&&l!==14}else a=!0;if(a){if(this.state.noAnonFunctionType=!1,n=this.flowParseType(),this.state.noAnonFunctionType=o,this.state.noAnonFunctionType||!(this.match(12)||this.match(11)&&this.lookahead().type===19))return this.expect(11),n;this.eat(12)}return n?s=this.flowParseFunctionTypeParams([this.reinterpretTypeAsFunctionTypeParam(n)]):s=this.flowParseFunctionTypeParams(),i.params=s.params,i.rest=s.rest,i.this=s._this,this.expect(11),this.expect(19),i.returnType=this.flowParseType(),i.typeParameters=null,this.finishNode(i,"FunctionTypeAnnotation");case 131:return this.parseLiteral(this.state.value,"StringLiteralTypeAnnotation");case 85:case 86:return i.value=this.match(85),this.next(),this.finishNode(i,"BooleanLiteralTypeAnnotation");case 53:if(this.state.value==="-"){if(this.next(),this.match(132))return this.parseLiteralAtNode(-this.state.value,"NumberLiteralTypeAnnotation",i);if(this.match(133))return this.parseLiteralAtNode(-this.state.value,"BigIntLiteralTypeAnnotation",i);throw this.raise(ye.UnexpectedSubtractionOperand,{at:this.state.startLoc})}this.unexpected();return;case 132:return this.parseLiteral(this.state.value,"NumberLiteralTypeAnnotation");case 133:return this.parseLiteral(this.state.value,"BigIntLiteralTypeAnnotation");case 88:return this.next(),this.finishNode(i,"VoidTypeAnnotation");case 84:return this.next(),this.finishNode(i,"NullLiteralTypeAnnotation");case 78:return this.next(),this.finishNode(i,"ThisTypeAnnotation");case 55:return this.next(),this.finishNode(i,"ExistsTypeAnnotation");case 87:return this.flowParseTypeofType();default:if(cb(this.state.type)){let l=Xs(this.state.type);return this.next(),super.createIdentifier(i,l)}else if(Ve(this.state.type))return this.isContextual(127)?this.flowParseInterfaceType():this.flowIdentToTypeAnnotation(r,i,this.parseIdentifier())}this.unexpected()}flowParsePostfixType(){let r=this.state.startLoc,i=this.flowParsePrimaryType(),s=!1;for(;(this.match(0)||this.match(18))&&!this.canInsertSemicolon();){let n=this.startNodeAt(r),a=this.eat(18);s=s||a,this.expect(0),!a&&this.match(3)?(n.elementType=i,this.next(),i=this.finishNode(n,"ArrayTypeAnnotation")):(n.objectType=i,n.indexType=this.flowParseType(),this.expect(3),s?(n.optional=a,i=this.finishNode(n,"OptionalIndexedAccessType")):i=this.finishNode(n,"IndexedAccessType"))}return i}flowParsePrefixType(){let r=this.startNode();return this.eat(17)?(r.typeAnnotation=this.flowParsePrefixType(),this.finishNode(r,"NullableTypeAnnotation")):this.flowParsePostfixType()}flowParseAnonFunctionWithoutParens(){let r=this.flowParsePrefixType();if(!this.state.noAnonFunctionType&&this.eat(19)){let i=this.startNodeAt(r.loc.start);return i.params=[this.reinterpretTypeAsFunctionTypeParam(r)],i.rest=null,i.this=null,i.returnType=this.flowParseType(),i.typeParameters=null,this.finishNode(i,"FunctionTypeAnnotation")}return r}flowParseIntersectionType(){let r=this.startNode();this.eat(45);let i=this.flowParseAnonFunctionWithoutParens();for(r.types=[i];this.eat(45);)r.types.push(this.flowParseAnonFunctionWithoutParens());return r.types.length===1?i:this.finishNode(r,"IntersectionTypeAnnotation")}flowParseUnionType(){let r=this.startNode();this.eat(43);let i=this.flowParseIntersectionType();for(r.types=[i];this.eat(43);)r.types.push(this.flowParseIntersectionType());return r.types.length===1?i:this.finishNode(r,"UnionTypeAnnotation")}flowParseType(){let r=this.state.inType;this.state.inType=!0;let i=this.flowParseUnionType();return this.state.inType=r,i}flowParseTypeOrImplicitInstantiation(){if(this.state.type===130&&this.state.value==="_"){let r=this.state.startLoc,i=this.parseIdentifier();return this.flowParseGenericType(r,i)}else return this.flowParseType()}flowParseTypeAnnotation(){let r=this.startNode();return r.typeAnnotation=this.flowParseTypeInitialiser(),this.finishNode(r,"TypeAnnotation")}flowParseTypeAnnotatableIdentifier(r){let i=r?this.parseIdentifier():this.flowParseRestrictedIdentifier();return this.match(14)&&(i.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(i)),i}typeCastToParameter(r){return r.expression.typeAnnotation=r.typeAnnotation,this.resetEndLocation(r.expression,r.typeAnnotation.loc.end),r.expression}flowParseVariance(){let r=null;return this.match(53)?(r=this.startNode(),this.state.value==="+"?r.kind="plus":r.kind="minus",this.next(),this.finishNode(r,"Variance")):r}parseFunctionBody(r,i,s=!1){if(i){this.forwardNoArrowParamsConversionAt(r,()=>super.parseFunctionBody(r,!0,s));return}super.parseFunctionBody(r,!1,s)}parseFunctionBodyAndFinish(r,i,s=!1){if(this.match(14)){let n=this.startNode();[n.typeAnnotation,r.predicate]=this.flowParseTypeAndPredicateInitialiser(),r.returnType=n.typeAnnotation?this.finishNode(n,"TypeAnnotation"):null}return super.parseFunctionBodyAndFinish(r,i,s)}parseStatementLike(r){if(this.state.strict&&this.isContextual(127)){let s=this.lookahead();if(ri(s.type)){let n=this.startNode();return this.next(),this.flowParseInterface(n)}}else if(this.shouldParseEnums()&&this.isContextual(124)){let s=this.startNode();return this.next(),this.flowParseEnumDeclaration(s)}let i=super.parseStatementLike(r);return this.flowPragma===void 0&&!this.isValidDirective(i)&&(this.flowPragma=null),i}parseExpressionStatement(r,i,s){if(i.type==="Identifier"){if(i.name==="declare"){if(this.match(80)||Ve(this.state.type)||this.match(68)||this.match(74)||this.match(82))return this.flowParseDeclare(r)}else if(Ve(this.state.type)){if(i.name==="interface")return this.flowParseInterface(r);if(i.name==="type")return this.flowParseTypeAlias(r);if(i.name==="opaque")return this.flowParseOpaqueType(r,!1)}}return super.parseExpressionStatement(r,i,s)}shouldParseExportDeclaration(){let{type:r}=this.state;return DR(r)||this.shouldParseEnums()&&r===124?!this.state.containsEsc:super.shouldParseExportDeclaration()}isExportDefaultSpecifier(){let{type:r}=this.state;return DR(r)||this.shouldParseEnums()&&r===124?this.state.containsEsc:super.isExportDefaultSpecifier()}parseExportDefaultExpression(){if(this.shouldParseEnums()&&this.isContextual(124)){let r=this.startNode();return this.next(),this.flowParseEnumDeclaration(r)}return super.parseExportDefaultExpression()}parseConditional(r,i,s){if(!this.match(17))return r;if(this.state.maybeInArrowParameters){let h=this.lookaheadCharCode();if(h===44||h===61||h===58||h===41)return this.setOptionalParametersError(s),r}this.expect(17);let n=this.state.clone(),a=this.state.noArrowAt,o=this.startNodeAt(i),{consequent:l,failed:u}=this.tryParseConditionalConsequent(),[f,p]=this.getArrowLikeExpressions(l);if(u||p.length>0){let h=[...a];if(p.length>0){this.state=n,this.state.noArrowAt=h;for(let d=0;d<p.length;d++)h.push(p[d].start);({consequent:l,failed:u}=this.tryParseConditionalConsequent()),[f,p]=this.getArrowLikeExpressions(l)}u&&f.length>1&&this.raise(ye.AmbiguousConditionalArrow,{at:n.startLoc}),u&&f.length===1&&(this.state=n,h.push(f[0].start),this.state.noArrowAt=h,{consequent:l,failed:u}=this.tryParseConditionalConsequent())}return this.getArrowLikeExpressions(l,!0),this.state.noArrowAt=a,this.expect(14),o.test=r,o.consequent=l,o.alternate=this.forwardNoArrowParamsConversionAt(o,()=>this.parseMaybeAssign(void 0,void 0)),this.finishNode(o,"ConditionalExpression")}tryParseConditionalConsequent(){this.state.noArrowParamsConversionAt.push(this.state.start);let r=this.parseMaybeAssignAllowIn(),i=!this.match(14);return this.state.noArrowParamsConversionAt.pop(),{consequent:r,failed:i}}getArrowLikeExpressions(r,i){let s=[r],n=[];for(;s.length!==0;){let a=s.pop();a.type==="ArrowFunctionExpression"?(a.typeParameters||!a.returnType?this.finishArrowValidation(a):n.push(a),s.push(a.body)):a.type==="ConditionalExpression"&&(s.push(a.consequent),s.push(a.alternate))}return i?(n.forEach(a=>this.finishArrowValidation(a)),[n,[]]):YTe(n,a=>a.params.every(o=>this.isAssignable(o,!0)))}finishArrowValidation(r){var i;this.toAssignableList(r.params,(i=r.extra)==null?void 0:i.trailingCommaLoc,!1),this.scope.enter(es|hb),super.checkParams(r,!1,!0),this.scope.exit()}forwardNoArrowParamsConversionAt(r,i){let s;return this.state.noArrowParamsConversionAt.indexOf(r.start)!==-1?(this.state.noArrowParamsConversionAt.push(this.state.start),s=i(),this.state.noArrowParamsConversionAt.pop()):s=i(),s}parseParenItem(r,i){if(r=super.parseParenItem(r,i),this.eat(17)&&(r.optional=!0,this.resetEndLocation(r)),this.match(14)){let s=this.startNodeAt(i);return s.expression=r,s.typeAnnotation=this.flowParseTypeAnnotation(),this.finishNode(s,"TypeCastExpression")}return r}assertModuleNodeAllowed(r){r.type==="ImportDeclaration"&&(r.importKind==="type"||r.importKind==="typeof")||r.type==="ExportNamedDeclaration"&&r.exportKind==="type"||r.type==="ExportAllDeclaration"&&r.exportKind==="type"||super.assertModuleNodeAllowed(r)}parseExportDeclaration(r){if(this.isContextual(128)){r.exportKind="type";let i=this.startNode();return this.next(),this.match(5)?(r.specifiers=this.parseExportSpecifiers(!0),super.parseExportFrom(r),null):this.flowParseTypeAlias(i)}else if(this.isContextual(129)){r.exportKind="type";let i=this.startNode();return this.next(),this.flowParseOpaqueType(i,!1)}else if(this.isContextual(127)){r.exportKind="type";let i=this.startNode();return this.next(),this.flowParseInterface(i)}else if(this.shouldParseEnums()&&this.isContextual(124)){r.exportKind="value";let i=this.startNode();return this.next(),this.flowParseEnumDeclaration(i)}else return super.parseExportDeclaration(r)}eatExportStar(r){return super.eatExportStar(r)?!0:this.isContextual(128)&&this.lookahead().type===55?(r.exportKind="type",this.next(),this.next(),!0):!1}maybeParseExportNamespaceSpecifier(r){let{startLoc:i}=this.state,s=super.maybeParseExportNamespaceSpecifier(r);return s&&r.exportKind==="type"&&this.unexpected(i),s}parseClassId(r,i,s){super.parseClassId(r,i,s),this.match(47)&&(r.typeParameters=this.flowParseTypeParameterDeclaration())}parseClassMember(r,i,s){let{startLoc:n}=this.state;if(this.isContextual(123)){if(super.parseClassMemberFromModifier(r,i))return;i.declare=!0}super.parseClassMember(r,i,s),i.declare&&(i.type!=="ClassProperty"&&i.type!=="ClassPrivateProperty"&&i.type!=="PropertyDefinition"?this.raise(ye.DeclareClassElement,{at:n}):i.value&&this.raise(ye.DeclareClassFieldInitializer,{at:i.value}))}isIterator(r){return r==="iterator"||r==="asyncIterator"}readIterator(){let r=super.readWord1(),i="@@"+r;(!this.isIterator(r)||!this.state.inType)&&this.raise(D.InvalidIdentifier,{at:this.state.curPosition(),identifierName:i}),this.finishToken(130,i)}getTokenFromCode(r){let i=this.input.charCodeAt(this.state.pos+1);r===123&&i===124?this.finishOp(6,2):this.state.inType&&(r===62||r===60)?this.finishOp(r===62?48:47,1):this.state.inType&&r===63?i===46?this.finishOp(18,2):this.finishOp(17,1):gTe(r,i,this.input.charCodeAt(this.state.pos+2))?(this.state.pos+=2,this.readIterator()):super.getTokenFromCode(r)}isAssignable(r,i){return r.type==="TypeCastExpression"?this.isAssignable(r.expression,i):super.isAssignable(r,i)}toAssignable(r,i=!1){!i&&r.type==="AssignmentExpression"&&r.left.type==="TypeCastExpression"&&(r.left=this.typeCastToParameter(r.left)),super.toAssignable(r,i)}toAssignableList(r,i,s){for(let n=0;n<r.length;n++){let a=r[n];(a==null?void 0:a.type)==="TypeCastExpression"&&(r[n]=this.typeCastToParameter(a))}super.toAssignableList(r,i,s)}toReferencedList(r,i){for(let n=0;n<r.length;n++){var s;let a=r[n];a&&a.type==="TypeCastExpression"&&!((s=a.extra)!=null&&s.parenthesized)&&(r.length>1||!i)&&this.raise(ye.TypeCastInPattern,{at:a.typeAnnotation})}return r}parseArrayLike(r,i,s,n){let a=super.parseArrayLike(r,i,s,n);return i&&!this.state.maybeInArrowParameters&&this.toReferencedList(a.elements),a}isValidLVal(r,i,s){return r==="TypeCastExpression"||super.isValidLVal(r,i,s)}parseClassProperty(r){return this.match(14)&&(r.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassProperty(r)}parseClassPrivateProperty(r){return this.match(14)&&(r.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassPrivateProperty(r)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(14)||super.isClassProperty()}isNonstaticConstructor(r){return!this.match(14)&&super.isNonstaticConstructor(r)}pushClassMethod(r,i,s,n,a,o){if(i.variance&&this.unexpected(i.variance.loc.start),delete i.variance,this.match(47)&&(i.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassMethod(r,i,s,n,a,o),i.params&&a){let l=i.params;l.length>0&&this.isThisParam(l[0])&&this.raise(ye.ThisParamBannedInConstructor,{at:i})}else if(i.type==="MethodDefinition"&&a&&i.value.params){let l=i.value.params;l.length>0&&this.isThisParam(l[0])&&this.raise(ye.ThisParamBannedInConstructor,{at:i})}}pushClassPrivateMethod(r,i,s,n){i.variance&&this.unexpected(i.variance.loc.start),delete i.variance,this.match(47)&&(i.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassPrivateMethod(r,i,s,n)}parseClassSuper(r){if(super.parseClassSuper(r),r.superClass&&this.match(47)&&(r.superTypeParameters=this.flowParseTypeParameterInstantiation()),this.isContextual(111)){this.next();let i=r.implements=[];do{let s=this.startNode();s.id=this.flowParseRestrictedIdentifier(!0),this.match(47)?s.typeParameters=this.flowParseTypeParameterInstantiation():s.typeParameters=null,i.push(this.finishNode(s,"ClassImplements"))}while(this.eat(12))}}checkGetterSetterParams(r){super.checkGetterSetterParams(r);let i=this.getObjectOrClassMethodParams(r);if(i.length>0){let s=i[0];this.isThisParam(s)&&r.kind==="get"?this.raise(ye.GetterMayNotHaveThisParam,{at:s}):this.isThisParam(s)&&this.raise(ye.SetterMayNotHaveThisParam,{at:s})}}parsePropertyNamePrefixOperator(r){r.variance=this.flowParseVariance()}parseObjPropValue(r,i,s,n,a,o,l){r.variance&&this.unexpected(r.variance.loc.start),delete r.variance;let u;this.match(47)&&!o&&(u=this.flowParseTypeParameterDeclaration(),this.match(10)||this.unexpected());let f=super.parseObjPropValue(r,i,s,n,a,o,l);return u&&((f.value||f).typeParameters=u),f}parseAssignableListItemTypes(r){return this.eat(17)&&(r.type!=="Identifier"&&this.raise(ye.PatternIsOptional,{at:r}),this.isThisParam(r)&&this.raise(ye.ThisParamMayNotBeOptional,{at:r}),r.optional=!0),this.match(14)?r.typeAnnotation=this.flowParseTypeAnnotation():this.isThisParam(r)&&this.raise(ye.ThisParamAnnotationRequired,{at:r}),this.match(29)&&this.isThisParam(r)&&this.raise(ye.ThisParamNoDefault,{at:r}),this.resetEndLocation(r),r}parseMaybeDefault(r,i){let s=super.parseMaybeDefault(r,i);return s.type==="AssignmentPattern"&&s.typeAnnotation&&s.right.start<s.typeAnnotation.start&&this.raise(ye.TypeBeforeInitializer,{at:s.typeAnnotation}),s}checkImportReflection(r){super.checkImportReflection(r),r.module&&r.importKind!=="value"&&this.raise(ye.ImportReflectionHasImportType,{at:r.specifiers[0].loc.start})}parseImportSpecifierLocal(r,i,s){i.local=BR(r)?this.flowParseRestrictedIdentifier(!0,!0):this.parseIdentifier(),r.specifiers.push(this.finishImportSpecifier(i,s))}isPotentialImportPhase(r){if(super.isPotentialImportPhase(r))return!0;if(this.isContextual(128)){if(!r)return!0;let i=this.lookaheadCharCode();return i===123||i===42}return!r&&this.isContextual(87)}applyImportPhase(r,i,s,n){if(super.applyImportPhase(r,i,s,n),i){if(!s&&this.match(65))return;r.exportKind=s==="type"?s:"value"}else s==="type"&&this.match(55)&&this.unexpected(),r.importKind=s==="type"||s==="typeof"?s:"value"}parseImportSpecifier(r,i,s,n,a){let o=r.imported,l=null;o.type==="Identifier"&&(o.name==="type"?l="type":o.name==="typeof"&&(l="typeof"));let u=!1;if(this.isContextual(93)&&!this.isLookaheadContextual("as")){let p=this.parseIdentifier(!0);l!==null&&!ri(this.state.type)?(r.imported=p,r.importKind=l,r.local=ts(p)):(r.imported=o,r.importKind=null,r.local=this.parseIdentifier())}else{if(l!==null&&ri(this.state.type))r.imported=this.parseIdentifier(!0),r.importKind=l;else{if(i)throw this.raise(D.ImportBindingIsString,{at:r,importName:o.value});r.imported=o,r.importKind=null}this.eatContextual(93)?r.local=this.parseIdentifier():(u=!0,r.local=ts(r.imported))}let f=BR(r);return s&&f&&this.raise(ye.ImportTypeShorthandOnlyInPureImport,{at:r}),(s||f)&&this.checkReservedType(r.local.name,r.local.loc.start,!0),u&&!s&&!f&&this.checkReservedWord(r.local.name,r.loc.start,!0,!0),this.finishImportSpecifier(r,"ImportSpecifier")}parseBindingAtom(){switch(this.state.type){case 78:return this.parseIdentifier(!0);default:return super.parseBindingAtom()}}parseFunctionParams(r,i){let s=r.kind;s!=="get"&&s!=="set"&&this.match(47)&&(r.typeParameters=this.flowParseTypeParameterDeclaration()),super.parseFunctionParams(r,i)}parseVarId(r,i){super.parseVarId(r,i),this.match(14)&&(r.id.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(r.id))}parseAsyncArrowFromCallExpression(r,i){if(this.match(14)){let s=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0,r.returnType=this.flowParseTypeAnnotation(),this.state.noAnonFunctionType=s}return super.parseAsyncArrowFromCallExpression(r,i)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}parseMaybeAssign(r,i){var s;let n=null,a;if(this.hasPlugin("jsx")&&(this.match(140)||this.match(47))){if(n=this.state.clone(),a=this.tryParse(()=>super.parseMaybeAssign(r,i),n),!a.error)return a.node;let{context:u}=this.state,f=u[u.length-1];(f===Ye.j_oTag||f===Ye.j_expr)&&u.pop()}if((s=a)!=null&&s.error||this.match(47)){var o,l;n=n||this.state.clone();let u,f=this.tryParse(h=>{var d;u=this.flowParseTypeParameterDeclaration();let T=this.forwardNoArrowParamsConversionAt(u,()=>{let x=super.parseMaybeAssign(r,i);return this.resetStartLocationFromNode(x,u),x});(d=T.extra)!=null&&d.parenthesized&&h();let b=this.maybeUnwrapTypeCastExpression(T);return b.type!=="ArrowFunctionExpression"&&h(),b.typeParameters=u,this.resetStartLocationFromNode(b,u),T},n),p=null;if(f.node&&this.maybeUnwrapTypeCastExpression(f.node).type==="ArrowFunctionExpression"){if(!f.error&&!f.aborted)return f.node.async&&this.raise(ye.UnexpectedTypeParameterBeforeAsyncArrowFunction,{at:u}),f.node;p=f.node}if((o=a)!=null&&o.node)return this.state=a.failState,a.node;if(p)return this.state=f.failState,p;throw(l=a)!=null&&l.thrown?a.error:f.thrown?f.error:this.raise(ye.UnexpectedTokenAfterTypeParameter,{at:u})}return super.parseMaybeAssign(r,i)}parseArrow(r){if(this.match(14)){let i=this.tryParse(()=>{let s=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0;let n=this.startNode();return[n.typeAnnotation,r.predicate]=this.flowParseTypeAndPredicateInitialiser(),this.state.noAnonFunctionType=s,this.canInsertSemicolon()&&this.unexpected(),this.match(19)||this.unexpected(),n});if(i.thrown)return null;i.error&&(this.state=i.failState),r.returnType=i.node.typeAnnotation?this.finishNode(i.node,"TypeAnnotation"):null}return super.parseArrow(r)}shouldParseArrow(r){return this.match(14)||super.shouldParseArrow(r)}setArrowFunctionParameters(r,i){this.state.noArrowParamsConversionAt.indexOf(r.start)!==-1?r.params=i:super.setArrowFunctionParameters(r,i)}checkParams(r,i,s,n=!0){if(!(s&&this.state.noArrowParamsConversionAt.indexOf(r.start)!==-1)){for(let a=0;a<r.params.length;a++)this.isThisParam(r.params[a])&&a>0&&this.raise(ye.ThisParamMustBeFirst,{at:r.params[a]});super.checkParams(r,i,s,n)}}parseParenAndDistinguishExpression(r){return super.parseParenAndDistinguishExpression(r&&this.state.noArrowAt.indexOf(this.state.start)===-1)}parseSubscripts(r,i,s){if(r.type==="Identifier"&&r.name==="async"&&this.state.noArrowAt.indexOf(i.index)!==-1){this.next();let n=this.startNodeAt(i);n.callee=r,n.arguments=super.parseCallExpressionArguments(11,!1),r=this.finishNode(n,"CallExpression")}else if(r.type==="Identifier"&&r.name==="async"&&this.match(47)){let n=this.state.clone(),a=this.tryParse(l=>this.parseAsyncArrowWithTypeParameters(i)||l(),n);if(!a.error&&!a.aborted)return a.node;let o=this.tryParse(()=>super.parseSubscripts(r,i,s),n);if(o.node&&!o.error)return o.node;if(a.node)return this.state=a.failState,a.node;if(o.node)return this.state=o.failState,o.node;throw a.error||o.error}return super.parseSubscripts(r,i,s)}parseSubscript(r,i,s,n){if(this.match(18)&&this.isLookaheadToken_lt()){if(n.optionalChainMember=!0,s)return n.stop=!0,r;this.next();let a=this.startNodeAt(i);return a.callee=r,a.typeArguments=this.flowParseTypeParameterInstantiation(),this.expect(10),a.arguments=this.parseCallExpressionArguments(11,!1),a.optional=!0,this.finishCallExpression(a,!0)}else if(!s&&this.shouldParseTypes()&&this.match(47)){let a=this.startNodeAt(i);a.callee=r;let o=this.tryParse(()=>(a.typeArguments=this.flowParseTypeParameterInstantiationCallOrNew(),this.expect(10),a.arguments=super.parseCallExpressionArguments(11,!1),n.optionalChainMember&&(a.optional=!1),this.finishCallExpression(a,n.optionalChainMember)));if(o.node)return o.error&&(this.state=o.failState),o.node}return super.parseSubscript(r,i,s,n)}parseNewCallee(r){super.parseNewCallee(r);let i=null;this.shouldParseTypes()&&this.match(47)&&(i=this.tryParse(()=>this.flowParseTypeParameterInstantiationCallOrNew()).node),r.typeArguments=i}parseAsyncArrowWithTypeParameters(r){let i=this.startNodeAt(r);if(this.parseFunctionParams(i,!1),!!this.parseArrow(i))return super.parseArrowExpression(i,void 0,!0)}readToken_mult_modulo(r){let i=this.input.charCodeAt(this.state.pos+1);if(r===42&&i===47&&this.state.hasFlowComment){this.state.hasFlowComment=!1,this.state.pos+=2,this.nextToken();return}super.readToken_mult_modulo(r)}readToken_pipe_amp(r){let i=this.input.charCodeAt(this.state.pos+1);if(r===124&&i===125){this.finishOp(9,2);return}super.readToken_pipe_amp(r)}parseTopLevel(r,i){let s=super.parseTopLevel(r,i);return this.state.hasFlowComment&&this.raise(ye.UnterminatedFlowComment,{at:this.state.curPosition()}),s}skipBlockComment(){if(this.hasPlugin("flowComments")&&this.skipFlowComment()){if(this.state.hasFlowComment)throw this.raise(ye.NestedFlowComment,{at:this.state.startLoc});this.hasFlowCommentCompletion();let r=this.skipFlowComment();r&&(this.state.pos+=r,this.state.hasFlowComment=!0);return}return super.skipBlockComment(this.state.hasFlowComment?"*-/":"*/")}skipFlowComment(){let{pos:r}=this.state,i=2;for(;[32,9].includes(this.input.charCodeAt(r+i));)i++;let s=this.input.charCodeAt(i+r),n=this.input.charCodeAt(i+r+1);return s===58&&n===58?i+2:this.input.slice(i+r,i+r+12)==="flow-include"?i+12:s===58&&n!==58?i:!1}hasFlowCommentCompletion(){if(this.input.indexOf("*/",this.state.pos)===-1)throw this.raise(D.UnterminatedComment,{at:this.state.curPosition()})}flowEnumErrorBooleanMemberNotInitialized(r,{enumName:i,memberName:s}){this.raise(ye.EnumBooleanMemberNotInitialized,{at:r,memberName:s,enumName:i})}flowEnumErrorInvalidMemberInitializer(r,i){return this.raise(i.explicitType?i.explicitType==="symbol"?ye.EnumInvalidMemberInitializerSymbolType:ye.EnumInvalidMemberInitializerPrimaryType:ye.EnumInvalidMemberInitializerUnknownType,Object.assign({at:r},i))}flowEnumErrorNumberMemberNotInitialized(r,{enumName:i,memberName:s}){this.raise(ye.EnumNumberMemberNotInitialized,{at:r,enumName:i,memberName:s})}flowEnumErrorStringMemberInconsistentlyInitailized(r,{enumName:i}){this.raise(ye.EnumStringMemberInconsistentlyInitailized,{at:r,enumName:i})}flowEnumMemberInit(){let r=this.state.startLoc,i=()=>this.match(12)||this.match(8);switch(this.state.type){case 132:{let s=this.parseNumericLiteral(this.state.value);return i()?{type:"number",loc:s.loc.start,value:s}:{type:"invalid",loc:r}}case 131:{let s=this.parseStringLiteral(this.state.value);return i()?{type:"string",loc:s.loc.start,value:s}:{type:"invalid",loc:r}}case 85:case 86:{let s=this.parseBooleanLiteral(this.match(85));return i()?{type:"boolean",loc:s.loc.start,value:s}:{type:"invalid",loc:r}}default:return{type:"invalid",loc:r}}}flowEnumMemberRaw(){let r=this.state.startLoc,i=this.parseIdentifier(!0),s=this.eat(29)?this.flowEnumMemberInit():{type:"none",loc:r};return{id:i,init:s}}flowEnumCheckExplicitTypeMismatch(r,i,s){let{explicitType:n}=i;n!==null&&n!==s&&this.flowEnumErrorInvalidMemberInitializer(r,i)}flowEnumMembers({enumName:r,explicitType:i}){let s=new Set,n={booleanMembers:[],numberMembers:[],stringMembers:[],defaultedMembers:[]},a=!1;for(;!this.match(8);){if(this.eat(21)){a=!0;break}let o=this.startNode(),{id:l,init:u}=this.flowEnumMemberRaw(),f=l.name;if(f==="")continue;/^[a-z]/.test(f)&&this.raise(ye.EnumInvalidMemberName,{at:l,memberName:f,suggestion:f[0].toUpperCase()+f.slice(1),enumName:r}),s.has(f)&&this.raise(ye.EnumDuplicateMemberName,{at:l,memberName:f,enumName:r}),s.add(f);let p={enumName:r,explicitType:i,memberName:f};switch(o.id=l,u.type){case"boolean":{this.flowEnumCheckExplicitTypeMismatch(u.loc,p,"boolean"),o.init=u.value,n.booleanMembers.push(this.finishNode(o,"EnumBooleanMember"));break}case"number":{this.flowEnumCheckExplicitTypeMismatch(u.loc,p,"number"),o.init=u.value,n.numberMembers.push(this.finishNode(o,"EnumNumberMember"));break}case"string":{this.flowEnumCheckExplicitTypeMismatch(u.loc,p,"string"),o.init=u.value,n.stringMembers.push(this.finishNode(o,"EnumStringMember"));break}case"invalid":throw this.flowEnumErrorInvalidMemberInitializer(u.loc,p);case"none":switch(i){case"boolean":this.flowEnumErrorBooleanMemberNotInitialized(u.loc,p);break;case"number":this.flowEnumErrorNumberMemberNotInitialized(u.loc,p);break;default:n.defaultedMembers.push(this.finishNode(o,"EnumDefaultedMember"))}}this.match(8)||this.expect(12)}return{members:n,hasUnknownMembers:a}}flowEnumStringMembers(r,i,{enumName:s}){if(r.length===0)return i;if(i.length===0)return r;if(i.length>r.length){for(let n of r)this.flowEnumErrorStringMemberInconsistentlyInitailized(n,{enumName:s});return i}else{for(let n of i)this.flowEnumErrorStringMemberInconsistentlyInitailized(n,{enumName:s});return r}}flowEnumParseExplicitType({enumName:r}){if(!this.eatContextual(101))return null;if(!Ve(this.state.type))throw this.raise(ye.EnumInvalidExplicitTypeUnknownSupplied,{at:this.state.startLoc,enumName:r});let{value:i}=this.state;return this.next(),i!=="boolean"&&i!=="number"&&i!=="string"&&i!=="symbol"&&this.raise(ye.EnumInvalidExplicitType,{at:this.state.startLoc,enumName:r,invalidEnumType:i}),i}flowEnumBody(r,i){let s=i.name,n=i.loc.start,a=this.flowEnumParseExplicitType({enumName:s});this.expect(5);let{members:o,hasUnknownMembers:l}=this.flowEnumMembers({enumName:s,explicitType:a});switch(r.hasUnknownMembers=l,a){case"boolean":return r.explicitType=!0,r.members=o.booleanMembers,this.expect(8),this.finishNode(r,"EnumBooleanBody");case"number":return r.explicitType=!0,r.members=o.numberMembers,this.expect(8),this.finishNode(r,"EnumNumberBody");case"string":return r.explicitType=!0,r.members=this.flowEnumStringMembers(o.stringMembers,o.defaultedMembers,{enumName:s}),this.expect(8),this.finishNode(r,"EnumStringBody");case"symbol":return r.members=o.defaultedMembers,this.expect(8),this.finishNode(r,"EnumSymbolBody");default:{let u=()=>(r.members=[],this.expect(8),this.finishNode(r,"EnumStringBody"));r.explicitType=!1;let f=o.booleanMembers.length,p=o.numberMembers.length,h=o.stringMembers.length,d=o.defaultedMembers.length;if(!f&&!p&&!h&&!d)return u();if(!f&&!p)return r.members=this.flowEnumStringMembers(o.stringMembers,o.defaultedMembers,{enumName:s}),this.expect(8),this.finishNode(r,"EnumStringBody");if(!p&&!h&&f>=d){for(let T of o.defaultedMembers)this.flowEnumErrorBooleanMemberNotInitialized(T.loc.start,{enumName:s,memberName:T.id.name});return r.members=o.booleanMembers,this.expect(8),this.finishNode(r,"EnumBooleanBody")}else if(!f&&!h&&p>=d){for(let T of o.defaultedMembers)this.flowEnumErrorNumberMemberNotInitialized(T.loc.start,{enumName:s,memberName:T.id.name});return r.members=o.numberMembers,this.expect(8),this.finishNode(r,"EnumNumberBody")}else return this.raise(ye.EnumInconsistentMemberValues,{at:n,enumName:s}),u()}}}flowParseEnumDeclaration(r){let i=this.parseIdentifier();return r.id=i,r.body=this.flowEnumBody(this.startNode(),i),this.finishNode(r,"EnumDeclaration")}isLookaheadToken_lt(){let r=this.nextTokenStart();if(this.input.charCodeAt(r)===60){let i=this.input.charCodeAt(r+1);return i!==60&&i!==61}return!1}maybeUnwrapTypeCastExpression(r){return r.type==="TypeCastExpression"?r.expression:r}},JTe={__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"},qn=Zi`jsx`({AttributeIsEmpty:"JSX attributes must only be assigned a non-empty expression.",MissingClosingTagElement:({openingTagName:t})=>`Expected corresponding JSX closing tag for <${t}>.`,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:t,HTMLEntity:e})=>`Unexpected token \`${t}\`. Did you mean \`${e}\` or \`{'${t}'}\`?`,UnsupportedJsxValue:"JSX value should be either an expression or a quoted JSX text.",UnterminatedJsxContent:"Unterminated JSX contents.",UnwrappedAdjacentJSXElements:"Adjacent JSX elements must be wrapped in an enclosing tag. Did you want a JSX fragment <>...</>?"});function Gs(t){return t?t.type==="JSXOpeningFragment"||t.type==="JSXClosingFragment":!1}function oo(t){if(t.type==="JSXIdentifier")return t.name;if(t.type==="JSXNamespacedName")return t.namespace.name+":"+t.name.name;if(t.type==="JSXMemberExpression")return oo(t.object)+"."+oo(t.property);throw new Error("Node had unexpected type: "+t.type)}var QTe=t=>class extends t{jsxReadToken(){let r="",i=this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(qn.UnterminatedJsxContent,{at:this.state.startLoc});let s=this.input.charCodeAt(this.state.pos);switch(s){case 60:case 123:if(this.state.pos===this.state.start){s===60&&this.state.canStartJSXElement?(++this.state.pos,this.finishToken(140)):super.getTokenFromCode(s);return}r+=this.input.slice(i,this.state.pos),this.finishToken(139,r);return;case 38:r+=this.input.slice(i,this.state.pos),r+=this.jsxReadEntity(),i=this.state.pos;break;case 62:case 125:default:lu(s)?(r+=this.input.slice(i,this.state.pos),r+=this.jsxReadNewLine(!0),i=this.state.pos):++this.state.pos}}}jsxReadNewLine(r){let i=this.input.charCodeAt(this.state.pos),s;return++this.state.pos,i===13&&this.input.charCodeAt(this.state.pos)===10?(++this.state.pos,s=r?`
45
+ `:`\r
46
+ `):s=String.fromCharCode(i),++this.state.curLine,this.state.lineStart=this.state.pos,s}jsxReadString(r){let i="",s=++this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(D.UnterminatedString,{at:this.state.startLoc});let n=this.input.charCodeAt(this.state.pos);if(n===r)break;n===38?(i+=this.input.slice(s,this.state.pos),i+=this.jsxReadEntity(),s=this.state.pos):lu(n)?(i+=this.input.slice(s,this.state.pos),i+=this.jsxReadNewLine(!1),s=this.state.pos):++this.state.pos}i+=this.input.slice(s,this.state.pos++),this.finishToken(131,i)}jsxReadEntity(){let r=++this.state.pos;if(this.codePointAtPos(this.state.pos)===35){++this.state.pos;let i=10;this.codePointAtPos(this.state.pos)===120&&(i=16,++this.state.pos);let s=this.readInt(i,void 0,!1,"bail");if(s!==null&&this.codePointAtPos(this.state.pos)===59)return++this.state.pos,String.fromCodePoint(s)}else{let i=0,s=!1;for(;i++<10&&this.state.pos<this.length&&!(s=this.codePointAtPos(this.state.pos)==59);)++this.state.pos;if(s){let n=this.input.slice(r,this.state.pos),a=JTe[n];if(++this.state.pos,a)return a}}return this.state.pos=r,"&"}jsxReadWord(){let r,i=this.state.pos;do r=this.input.charCodeAt(++this.state.pos);while(lo(r)||r===45);this.finishToken(138,this.input.slice(i,this.state.pos))}jsxParseIdentifier(){let r=this.startNode();return this.match(138)?r.name=this.state.value:cb(this.state.type)?r.name=Xs(this.state.type):this.unexpected(),this.next(),this.finishNode(r,"JSXIdentifier")}jsxParseNamespacedName(){let r=this.state.startLoc,i=this.jsxParseIdentifier();if(!this.eat(14))return i;let s=this.startNodeAt(r);return s.namespace=i,s.name=this.jsxParseIdentifier(),this.finishNode(s,"JSXNamespacedName")}jsxParseElementName(){let r=this.state.startLoc,i=this.jsxParseNamespacedName();if(i.type==="JSXNamespacedName")return i;for(;this.eat(16);){let s=this.startNodeAt(r);s.object=i,s.property=this.jsxParseIdentifier(),i=this.finishNode(s,"JSXMemberExpression")}return i}jsxParseAttributeValue(){let r;switch(this.state.type){case 5:return r=this.startNode(),this.setContext(Ye.brace),this.next(),r=this.jsxParseExpressionContainer(r,Ye.j_oTag),r.expression.type==="JSXEmptyExpression"&&this.raise(qn.AttributeIsEmpty,{at:r}),r;case 140:case 131:return this.parseExprAtom();default:throw this.raise(qn.UnsupportedJsxValue,{at:this.state.startLoc})}}jsxParseEmptyExpression(){let r=this.startNodeAt(this.state.lastTokEndLoc);return this.finishNodeAt(r,"JSXEmptyExpression",this.state.startLoc)}jsxParseSpreadChild(r){return this.next(),r.expression=this.parseExpression(),this.setContext(Ye.j_expr),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(r,"JSXSpreadChild")}jsxParseExpressionContainer(r,i){if(this.match(8))r.expression=this.jsxParseEmptyExpression();else{let s=this.parseExpression();r.expression=s}return this.setContext(i),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(r,"JSXExpressionContainer")}jsxParseAttribute(){let r=this.startNode();return this.match(5)?(this.setContext(Ye.brace),this.next(),this.expect(21),r.argument=this.parseMaybeAssignAllowIn(),this.setContext(Ye.j_oTag),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(r,"JSXSpreadAttribute")):(r.name=this.jsxParseNamespacedName(),r.value=this.eat(29)?this.jsxParseAttributeValue():null,this.finishNode(r,"JSXAttribute"))}jsxParseOpeningElementAt(r){let i=this.startNodeAt(r);return this.eat(141)?this.finishNode(i,"JSXOpeningFragment"):(i.name=this.jsxParseElementName(),this.jsxParseOpeningElementAfterName(i))}jsxParseOpeningElementAfterName(r){let i=[];for(;!this.match(56)&&!this.match(141);)i.push(this.jsxParseAttribute());return r.attributes=i,r.selfClosing=this.eat(56),this.expect(141),this.finishNode(r,"JSXOpeningElement")}jsxParseClosingElementAt(r){let i=this.startNodeAt(r);return this.eat(141)?this.finishNode(i,"JSXClosingFragment"):(i.name=this.jsxParseElementName(),this.expect(141),this.finishNode(i,"JSXClosingElement"))}jsxParseElementAt(r){let i=this.startNodeAt(r),s=[],n=this.jsxParseOpeningElementAt(r),a=null;if(!n.selfClosing){e:for(;;)switch(this.state.type){case 140:if(r=this.state.startLoc,this.next(),this.eat(56)){a=this.jsxParseClosingElementAt(r);break e}s.push(this.jsxParseElementAt(r));break;case 139:s.push(this.parseExprAtom());break;case 5:{let o=this.startNode();this.setContext(Ye.brace),this.next(),this.match(21)?s.push(this.jsxParseSpreadChild(o)):s.push(this.jsxParseExpressionContainer(o,Ye.j_expr));break}default:this.unexpected()}Gs(n)&&!Gs(a)&&a!==null?this.raise(qn.MissingClosingTagFragment,{at:a}):!Gs(n)&&Gs(a)?this.raise(qn.MissingClosingTagElement,{at:a,openingTagName:oo(n.name)}):!Gs(n)&&!Gs(a)&&oo(a.name)!==oo(n.name)&&this.raise(qn.MissingClosingTagElement,{at:a,openingTagName:oo(n.name)})}if(Gs(n)?(i.openingFragment=n,i.closingFragment=a):(i.openingElement=n,i.closingElement=a),i.children=s,this.match(47))throw this.raise(qn.UnwrappedAdjacentJSXElements,{at:this.state.startLoc});return Gs(n)?this.finishNode(i,"JSXFragment"):this.finishNode(i,"JSXElement")}jsxParseElement(){let r=this.state.startLoc;return this.next(),this.jsxParseElementAt(r)}setContext(r){let{context:i}=this.state;i[i.length-1]=r}parseExprAtom(r){return this.match(139)?this.parseLiteral(this.state.value,"JSXText"):this.match(140)?this.jsxParseElement():this.match(47)&&this.input.charCodeAt(this.state.pos)!==33?(this.replaceToken(140),this.jsxParseElement()):super.parseExprAtom(r)}skipSpace(){this.curContext().preserveSpace||super.skipSpace()}getTokenFromCode(r){let i=this.curContext();if(i===Ye.j_expr){this.jsxReadToken();return}if(i===Ye.j_oTag||i===Ye.j_cTag){if(Qi(r)){this.jsxReadWord();return}if(r===62){++this.state.pos,this.finishToken(141);return}if((r===34||r===39)&&i===Ye.j_oTag){this.jsxReadString(r);return}}if(r===60&&this.state.canStartJSXElement&&this.input.charCodeAt(this.state.pos+1)!==33){++this.state.pos,this.finishToken(140);return}super.getTokenFromCode(r)}updateContext(r){let{context:i,type:s}=this.state;if(s===56&&r===140)i.splice(-2,2,Ye.j_cTag),this.state.canStartJSXElement=!1;else if(s===140)i.push(Ye.j_oTag);else if(s===141){let n=i[i.length-1];n===Ye.j_oTag&&r===56||n===Ye.j_cTag?(i.pop(),this.state.canStartJSXElement=i[i.length-1]===Ye.j_expr):(this.setContext(Ye.j_expr),this.state.canStartJSXElement=!0)}else this.state.canStartJSXElement=tTe(s)}},ZE=class extends uu{constructor(...e){super(...e),this.types=new Set,this.enums=new Set,this.constEnums=new Set,this.classes=new Set,this.exportOnlyBindings=new Set}},eb=class extends cu{constructor(...e){super(...e),this.importsStack=[]}createScope(e){return this.importsStack.push(new Set),new ZE(e)}enter(e){e==uo&&this.importsStack.push(new Set),super.enter(e)}exit(){let e=super.exit();return e==uo&&this.importsStack.pop(),e}hasImport(e,r){let i=this.importsStack.length;if(this.importsStack[i-1].has(e))return!0;if(!r&&i>1){for(let s=0;s<i-1;s++)if(this.importsStack[s].has(e))return!0}return!1}declareName(e,r,i){if(r&ou){this.hasImport(e,!0)&&this.parser.raise(D.VarRedeclaration,{at:i,identifierName:e}),this.importsStack[this.importsStack.length-1].add(e);return}let s=this.currentScope();if(r&db){this.maybeExportDefined(s,e),s.exportOnlyBindings.add(e);return}super.declareName(e,r,i),r&Hn&&(r&Pi||(this.checkRedeclarationInScope(s,e,r,i),this.maybeExportDefined(s,e)),s.types.add(e)),r&BE&&s.enums.add(e),r&jE&&s.constEnums.add(e),r&nh&&s.classes.add(e)}isRedeclaredInScope(e,r,i){if(e.enums.has(r)){if(i&BE){let s=!!(i&jE),n=e.constEnums.has(r);return s!==n}return!0}return i&nh&&e.classes.has(r)?e.lexical.has(r)?!!(i&Pi):!1:i&Hn&&e.types.has(r)?!0:super.isRedeclaredInScope(e,r,i)}checkLocalExport(e){let{name:r}=e;if(this.hasImport(r))return;let i=this.scopeStack.length;for(let s=i-1;s>=0;s--){let n=this.scopeStack[s];if(n.types.has(r)||n.exportOnlyBindings.has(r))return}super.checkLocalExport(e)}},ZTe=(t,e)=>Object.hasOwnProperty.call(t,e)&&t[e],yM=t=>t.type==="ParenthesizedExpression"?yM(t.expression):t,tb=class extends QE{toAssignable(e,r=!1){var i,s;let n;switch((e.type==="ParenthesizedExpression"||(i=e.extra)!=null&&i.parenthesized)&&(n=yM(e),r?n.type==="Identifier"?this.expressionScope.recordArrowParameterBindingError(D.InvalidParenthesizedAssignment,{at:e}):n.type!=="MemberExpression"&&this.raise(D.InvalidParenthesizedAssignment,{at:e}):this.raise(D.InvalidParenthesizedAssignment,{at:e})),e.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":e.type="ObjectPattern";for(let o=0,l=e.properties.length,u=l-1;o<l;o++){var a;let f=e.properties[o],p=o===u;this.toAssignableObjectExpressionProp(f,p,r),p&&f.type==="RestElement"&&(a=e.extra)!=null&&a.trailingCommaLoc&&this.raise(D.RestTrailingComma,{at:e.extra.trailingCommaLoc})}break;case"ObjectProperty":{let{key:o,value:l}=e;this.isPrivateName(o)&&this.classScope.usePrivateName(this.getPrivateNameSV(o),o.loc.start),this.toAssignable(l,r);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":e.type="ArrayPattern",this.toAssignableList(e.elements,(s=e.extra)==null?void 0:s.trailingCommaLoc,r);break;case"AssignmentExpression":e.operator!=="="&&this.raise(D.MissingEqInAssignment,{at:e.left.loc.end}),e.type="AssignmentPattern",delete e.operator,this.toAssignable(e.left,r);break;case"ParenthesizedExpression":this.toAssignable(n,r);break}}toAssignableObjectExpressionProp(e,r,i){if(e.type==="ObjectMethod")this.raise(e.kind==="get"||e.kind==="set"?D.PatternHasAccessor:D.PatternHasMethod,{at:e.key});else if(e.type==="SpreadElement"){e.type="RestElement";let s=e.argument;this.checkToRestConversion(s,!1),this.toAssignable(s,i),r||this.raise(D.RestTrailingComma,{at:e})}else this.toAssignable(e,i)}toAssignableList(e,r,i){let s=e.length-1;for(let n=0;n<=s;n++){let a=e[n];if(a){if(a.type==="SpreadElement"){a.type="RestElement";let o=a.argument;this.checkToRestConversion(o,!0),this.toAssignable(o,i)}else this.toAssignable(a,i);a.type==="RestElement"&&(n<s?this.raise(D.RestTrailingComma,{at:a}):r&&this.raise(D.RestTrailingComma,{at:r}))}}}isAssignable(e,r){switch(e.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":return!0;case"ObjectExpression":{let i=e.properties.length-1;return e.properties.every((s,n)=>s.type!=="ObjectMethod"&&(n===i||s.type!=="SpreadElement")&&this.isAssignable(s))}case"ObjectProperty":return this.isAssignable(e.value);case"SpreadElement":return this.isAssignable(e.argument);case"ArrayExpression":return e.elements.every(i=>i===null||this.isAssignable(i));case"AssignmentExpression":return e.operator==="=";case"ParenthesizedExpression":return this.isAssignable(e.expression);case"MemberExpression":case"OptionalMemberExpression":return!r;default:return!1}}toReferencedList(e,r){return e}toReferencedListDeep(e,r){this.toReferencedList(e,r);for(let i of e)(i==null?void 0:i.type)==="ArrayExpression"&&this.toReferencedListDeep(i.elements)}parseSpread(e){let r=this.startNode();return this.next(),r.argument=this.parseMaybeAssignAllowIn(e,void 0),this.finishNode(r,"SpreadElement")}parseRestBinding(){let e=this.startNode();return this.next(),e.argument=this.parseBindingAtom(),this.finishNode(e,"RestElement")}parseBindingAtom(){switch(this.state.type){case 0:{let e=this.startNode();return this.next(),e.elements=this.parseBindingList(3,93,1),this.finishNode(e,"ArrayPattern")}case 5:return this.parseObjectLike(8,!0)}return this.parseIdentifier()}parseBindingList(e,r,i){let s=i&1,n=[],a=!0;for(;!this.eat(e);)if(a?a=!1:this.expect(12),s&&this.match(12))n.push(null);else{if(this.eat(e))break;if(this.match(21)){if(n.push(this.parseAssignableListItemTypes(this.parseRestBinding(),i)),!this.checkCommaAfterRest(r)){this.expect(e);break}}else{let o=[];for(this.match(26)&&this.hasPlugin("decorators")&&this.raise(D.UnsupportedParameterDecorator,{at:this.state.startLoc});this.match(26);)o.push(this.parseDecorator());n.push(this.parseAssignableListItem(i,o))}}return n}parseBindingRestProperty(e){return this.next(),e.argument=this.parseIdentifier(),this.checkCommaAfterRest(125),this.finishNode(e,"RestElement")}parseBindingProperty(){let e=this.startNode(),{type:r,startLoc:i}=this.state;return r===21?this.parseBindingRestProperty(e):(r===136?(this.expectPlugin("destructuringPrivate",i),this.classScope.usePrivateName(this.state.value,i),e.key=this.parsePrivateName()):this.parsePropertyName(e),e.method=!1,this.parseObjPropValue(e,i,!1,!1,!0,!1))}parseAssignableListItem(e,r){let i=this.parseMaybeDefault();this.parseAssignableListItemTypes(i,e);let s=this.parseMaybeDefault(i.loc.start,i);return r.length&&(i.decorators=r),s}parseAssignableListItemTypes(e,r){return e}parseMaybeDefault(e,r){var i,s;if((i=e)!=null||(e=this.state.startLoc),r=(s=r)!=null?s:this.parseBindingAtom(),!this.eat(29))return r;let n=this.startNodeAt(e);return n.left=r,n.right=this.parseMaybeAssignAllowIn(),this.finishNode(n,"AssignmentPattern")}isValidLVal(e,r,i){return ZTe({AssignmentPattern:"left",RestElement:"argument",ObjectProperty:"value",ParenthesizedExpression:"expression",ArrayPattern:"elements",ObjectPattern:"properties"},e)}checkLVal(e,{in:r,binding:i=Ys,checkClashes:s=!1,strictModeChanged:n=!1,hasParenthesizedAncestor:a=!1}){var o;let l=e.type;if(this.isObjectMethod(e))return;if(l==="MemberExpression"){i!==Ys&&this.raise(D.InvalidPropertyBindingPattern,{at:e});return}if(l==="Identifier"){this.checkIdentifier(e,i,n);let{name:d}=e;s&&(s.has(d)?this.raise(D.ParamDupe,{at:e}):s.add(d));return}let u=this.isValidLVal(l,!(a||(o=e.extra)!=null&&o.parenthesized)&&r.type==="AssignmentExpression",i);if(u===!0)return;if(u===!1){let d=i===Ys?D.InvalidLhs:D.InvalidLhsBinding;this.raise(d,{at:e,ancestor:r});return}let[f,p]=Array.isArray(u)?u:[u,l==="ParenthesizedExpression"],h=l==="ArrayPattern"||l==="ObjectPattern"||l==="ParenthesizedExpression"?{type:l}:r;for(let d of[].concat(e[f]))d&&this.checkLVal(d,{in:h,binding:i,checkClashes:s,strictModeChanged:n,hasParenthesizedAncestor:p})}checkIdentifier(e,r,i=!1){this.state.strict&&(i?ZR(e.name,this.inModule):QR(e.name))&&(r===Ys?this.raise(D.StrictEvalArguments,{at:e,referenceName:e.name}):this.raise(D.StrictEvalArgumentsBinding,{at:e,bindingName:e.name})),r&ch&&e.name==="let"&&this.raise(D.LetInLexicalBinding,{at:e}),r&Ys||this.declareNameFromIdentifier(e,r)}declareNameFromIdentifier(e,r){this.scope.declareName(e.name,r,e.loc.start)}checkToRestConversion(e,r){switch(e.type){case"ParenthesizedExpression":this.checkToRestConversion(e.expression,r);break;case"Identifier":case"MemberExpression":break;case"ArrayExpression":case"ObjectExpression":if(r)break;default:this.raise(D.InvalidRestAssignmentPattern,{at:e})}}checkCommaAfterRest(e){return this.match(12)?(this.raise(this.lookaheadCharCode()===e?D.RestTrailingComma:D.ElementAfterRest,{at:this.state.startLoc}),!0):!1}},eEe=(t,e)=>Object.hasOwnProperty.call(t,e)&&t[e];function tEe(t){if(t==null)throw new Error(`Unexpected ${t} value.`);return t}function jR(t){if(!t)throw new Error("Assert fail")}var le=Zi`typescript`({AbstractMethodHasImplementation:({methodName:t})=>`Method '${t}' cannot have an implementation because it is marked abstract.`,AbstractPropertyHasInitializer:({propertyName:t})=>`Property '${t}' cannot have an initializer because it is marked abstract.`,AccesorCannotDeclareThisParameter:"'get' and 'set' accessors cannot declare 'this' parameters.",AccesorCannotHaveTypeParameters:"An accessor cannot have type parameters.",AccessorCannotBeOptional:"An 'accessor' property cannot be declared optional.",ClassMethodHasDeclare:"Class methods cannot have the 'declare' modifier.",ClassMethodHasReadonly:"Class methods cannot have the 'readonly' modifier.",ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference:"A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference.",ConstructorHasTypeParameters:"Type parameters cannot appear on a constructor declaration.",DeclareAccessor:({kind:t})=>`'declare' is not allowed in ${t}ters.`,DeclareClassFieldHasInitializer:"Initializers are not allowed in ambient contexts.",DeclareFunctionHasImplementation:"An implementation cannot be declared in ambient contexts.",DuplicateAccessibilityModifier:({modifier:t})=>"Accessibility modifier already seen.",DuplicateModifier:({modifier:t})=>`Duplicate modifier: '${t}'.`,EmptyHeritageClauseType:({token:t})=>`'${t}' 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:t})=>`'${t[0]}' modifier cannot be used with '${t[1]}' modifier.`,IndexSignatureHasAbstract:"Index signatures cannot have the 'abstract' modifier.",IndexSignatureHasAccessibility:({modifier:t})=>`Index signatures cannot have an accessibility modifier ('${t}').`,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:t})=>`'${t}' modifier cannot appear on a type member.`,InvalidModifierOnTypeParameter:({modifier:t})=>`'${t}' modifier cannot appear on a type parameter.`,InvalidModifierOnTypeParameterPositions:({modifier:t})=>`'${t}' modifier can only appear on a type parameter of a class, interface or type alias.`,InvalidModifiersOrder:({orderedModifiers:t})=>`'${t[0]}' modifier must precede '${t[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.",MixedLabeledAndUnlabeledElements:"Tuple members must all have names or all not have names.",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:t})=>`Private elements cannot have an accessibility modifier ('${t}').`,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.",SetAccesorCannotHaveOptionalParameter:"A 'set' accessor cannot have an optional parameter.",SetAccesorCannotHaveRestParameter:"A 'set' accessor cannot have rest parameter.",SetAccesorCannotHaveReturnType:"A 'set' accessor cannot have a return type annotation.",SingleTypeParameterWithoutTrailingComma:({typeParameterName:t})=>`Single type parameter ${t} should have a trailing comma. Example usage: <${t},>.`,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:t})=>`Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got ${t}.`});function rEe(t){switch(t){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 qR(t){return t==="private"||t==="public"||t==="protected"}function iEe(t){return t==="in"||t==="out"}var sEe=t=>class extends t{constructor(...r){super(...r),this.tsParseInOutModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out"],disallowedModifiers:["const","public","private","protected","readonly","declare","abstract","override"],errorTemplate:le.InvalidModifierOnTypeParameter}),this.tsParseConstModifier=this.tsParseModifiers.bind(this,{allowedModifiers:["const"],disallowedModifiers:["in","out"],errorTemplate:le.InvalidModifierOnTypeParameterPositions}),this.tsParseInOutConstModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out","const"],disallowedModifiers:["public","private","protected","readonly","declare","abstract","override"],errorTemplate:le.InvalidModifierOnTypeParameter})}getScopeHandler(){return eb}tsIsIdentifier(){return Ve(this.state.type)}tsTokenCanFollowModifier(){return(this.match(0)||this.match(5)||this.match(55)||this.match(21)||this.match(136)||this.isLiteralPropertyName())&&!this.hasPrecedingLineBreak()}tsNextTokenCanFollowModifier(){return this.next(),this.tsTokenCanFollowModifier()}tsParseModifier(r,i){if(!Ve(this.state.type)&&this.state.type!==58&&this.state.type!==75)return;let s=this.state.value;if(r.indexOf(s)!==-1){if(i&&this.tsIsStartOfStaticBlocks())return;if(this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this)))return s}}tsParseModifiers({allowedModifiers:r,disallowedModifiers:i,stopOnStartOfClassStaticBlock:s,errorTemplate:n=le.InvalidModifierOnTypeMember},a){let o=(u,f,p,h)=>{f===p&&a[h]&&this.raise(le.InvalidModifiersOrder,{at:u,orderedModifiers:[p,h]})},l=(u,f,p,h)=>{(a[p]&&f===h||a[h]&&f===p)&&this.raise(le.IncompatibleModifiers,{at:u,modifiers:[p,h]})};for(;;){let{startLoc:u}=this.state,f=this.tsParseModifier(r.concat(i??[]),s);if(!f)break;qR(f)?a.accessibility?this.raise(le.DuplicateAccessibilityModifier,{at:u,modifier:f}):(o(u,f,f,"override"),o(u,f,f,"static"),o(u,f,f,"readonly"),a.accessibility=f):iEe(f)?(a[f]&&this.raise(le.DuplicateModifier,{at:u,modifier:f}),a[f]=!0,o(u,f,"in","out")):(Object.hasOwnProperty.call(a,f)?this.raise(le.DuplicateModifier,{at:u,modifier:f}):(o(u,f,"static","readonly"),o(u,f,"static","override"),o(u,f,"override","readonly"),o(u,f,"abstract","override"),l(u,f,"declare","override"),l(u,f,"static","abstract")),a[f]=!0),i!=null&&i.includes(f)&&this.raise(n,{at:u,modifier:f})}}tsIsListTerminator(r){switch(r){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(r,i){let s=[];for(;!this.tsIsListTerminator(r);)s.push(i());return s}tsParseDelimitedList(r,i,s){return tEe(this.tsParseDelimitedListWorker(r,i,!0,s))}tsParseDelimitedListWorker(r,i,s,n){let a=[],o=-1;for(;!this.tsIsListTerminator(r);){o=-1;let l=i();if(l==null)return;if(a.push(l),this.eat(12)){o=this.state.lastTokStart;continue}if(this.tsIsListTerminator(r))break;s&&this.expect(12);return}return n&&(n.value=o),a}tsParseBracketedList(r,i,s,n,a){n||(s?this.expect(0):this.expect(47));let o=this.tsParseDelimitedList(r,i,a);return s?this.expect(3):this.expect(48),o}tsParseImportType(){let r=this.startNode();return this.expect(83),this.expect(10),this.match(131)||this.raise(le.UnsupportedImportTypeArgument,{at:this.state.startLoc}),r.argument=super.parseExprAtom(),this.expect(11),this.eat(16)&&(r.qualifier=this.tsParseEntityName()),this.match(47)&&(r.typeParameters=this.tsParseTypeArguments()),this.finishNode(r,"TSImportType")}tsParseEntityName(r=!0){let i=this.parseIdentifier(r);for(;this.eat(16);){let s=this.startNodeAtNode(i);s.left=i,s.right=this.parseIdentifier(r),i=this.finishNode(s,"TSQualifiedName")}return i}tsParseTypeReference(){let r=this.startNode();return r.typeName=this.tsParseEntityName(),!this.hasPrecedingLineBreak()&&this.match(47)&&(r.typeParameters=this.tsParseTypeArguments()),this.finishNode(r,"TSTypeReference")}tsParseThisTypePredicate(r){this.next();let i=this.startNodeAtNode(r);return i.parameterName=r,i.typeAnnotation=this.tsParseTypeAnnotation(!1),i.asserts=!1,this.finishNode(i,"TSTypePredicate")}tsParseThisTypeNode(){let r=this.startNode();return this.next(),this.finishNode(r,"TSThisType")}tsParseTypeQuery(){let r=this.startNode();return this.expect(87),this.match(83)?r.exprName=this.tsParseImportType():r.exprName=this.tsParseEntityName(),!this.hasPrecedingLineBreak()&&this.match(47)&&(r.typeParameters=this.tsParseTypeArguments()),this.finishNode(r,"TSTypeQuery")}tsParseTypeParameter(r){let i=this.startNode();return r(i),i.name=this.tsParseTypeParameterName(),i.constraint=this.tsEatThenParseType(81),i.default=this.tsEatThenParseType(29),this.finishNode(i,"TSTypeParameter")}tsTryParseTypeParameters(r){if(this.match(47))return this.tsParseTypeParameters(r)}tsParseTypeParameters(r){let i=this.startNode();this.match(47)||this.match(140)?this.next():this.unexpected();let s={value:-1};return i.params=this.tsParseBracketedList("TypeParametersOrArguments",this.tsParseTypeParameter.bind(this,r),!1,!0,s),i.params.length===0&&this.raise(le.EmptyTypeParameters,{at:i}),s.value!==-1&&this.addExtra(i,"trailingComma",s.value),this.finishNode(i,"TSTypeParameterDeclaration")}tsFillSignature(r,i){let s=r===19,n="parameters",a="typeAnnotation";i.typeParameters=this.tsTryParseTypeParameters(this.tsParseConstModifier),this.expect(10),i[n]=this.tsParseBindingListForSignature(),s?i[a]=this.tsParseTypeOrTypePredicateAnnotation(r):this.match(r)&&(i[a]=this.tsParseTypeOrTypePredicateAnnotation(r))}tsParseBindingListForSignature(){let r=super.parseBindingList(11,41,2);for(let i of r){let{type:s}=i;(s==="AssignmentPattern"||s==="TSParameterProperty")&&this.raise(le.UnsupportedSignatureParameterKind,{at:i,type:s})}return r}tsParseTypeMemberSemicolon(){!this.eat(12)&&!this.isLineTerminator()&&this.expect(13)}tsParseSignatureMember(r,i){return this.tsFillSignature(14,i),this.tsParseTypeMemberSemicolon(),this.finishNode(i,r)}tsIsUnambiguouslyIndexSignature(){return this.next(),Ve(this.state.type)?(this.next(),this.match(14)):!1}tsTryParseIndexSignature(r){if(!(this.match(0)&&this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this))))return;this.expect(0);let i=this.parseIdentifier();i.typeAnnotation=this.tsParseTypeAnnotation(),this.resetEndLocation(i),this.expect(3),r.parameters=[i];let s=this.tsTryParseTypeAnnotation();return s&&(r.typeAnnotation=s),this.tsParseTypeMemberSemicolon(),this.finishNode(r,"TSIndexSignature")}tsParsePropertyOrMethodSignature(r,i){this.eat(17)&&(r.optional=!0);let s=r;if(this.match(10)||this.match(47)){i&&this.raise(le.ReadonlyForMethodSignature,{at:r});let n=s;n.kind&&this.match(47)&&this.raise(le.AccesorCannotHaveTypeParameters,{at:this.state.curPosition()}),this.tsFillSignature(14,n),this.tsParseTypeMemberSemicolon();let a="parameters",o="typeAnnotation";if(n.kind==="get")n[a].length>0&&(this.raise(D.BadGetterArity,{at:this.state.curPosition()}),this.isThisParam(n[a][0])&&this.raise(le.AccesorCannotDeclareThisParameter,{at:this.state.curPosition()}));else if(n.kind==="set"){if(n[a].length!==1)this.raise(D.BadSetterArity,{at:this.state.curPosition()});else{let l=n[a][0];this.isThisParam(l)&&this.raise(le.AccesorCannotDeclareThisParameter,{at:this.state.curPosition()}),l.type==="Identifier"&&l.optional&&this.raise(le.SetAccesorCannotHaveOptionalParameter,{at:this.state.curPosition()}),l.type==="RestElement"&&this.raise(le.SetAccesorCannotHaveRestParameter,{at:this.state.curPosition()})}n[o]&&this.raise(le.SetAccesorCannotHaveReturnType,{at:n[o]})}else n.kind="method";return this.finishNode(n,"TSMethodSignature")}else{let n=s;i&&(n.readonly=!0);let a=this.tsTryParseTypeAnnotation();return a&&(n.typeAnnotation=a),this.tsParseTypeMemberSemicolon(),this.finishNode(n,"TSPropertySignature")}}tsParseTypeMember(){let r=this.startNode();if(this.match(10)||this.match(47))return this.tsParseSignatureMember("TSCallSignatureDeclaration",r);if(this.match(77)){let s=this.startNode();return this.next(),this.match(10)||this.match(47)?this.tsParseSignatureMember("TSConstructSignatureDeclaration",r):(r.key=this.createIdentifier(s,"new"),this.tsParsePropertyOrMethodSignature(r,!1))}this.tsParseModifiers({allowedModifiers:["readonly"],disallowedModifiers:["declare","abstract","private","protected","public","static","override"]},r);let i=this.tsTryParseIndexSignature(r);return i||(super.parsePropertyName(r),!r.computed&&r.key.type==="Identifier"&&(r.key.name==="get"||r.key.name==="set")&&this.tsTokenCanFollowModifier()&&(r.kind=r.key.name,super.parsePropertyName(r)),this.tsParsePropertyOrMethodSignature(r,!!r.readonly))}tsParseTypeLiteral(){let r=this.startNode();return r.members=this.tsParseObjectTypeMembers(),this.finishNode(r,"TSTypeLiteral")}tsParseObjectTypeMembers(){this.expect(5);let r=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.expect(8),r}tsIsStartOfMappedType(){return this.next(),this.eat(53)?this.isContextual(120):(this.isContextual(120)&&this.next(),!this.match(0)||(this.next(),!this.tsIsIdentifier())?!1:(this.next(),this.match(58)))}tsParseMappedTypeParameter(){let r=this.startNode();return r.name=this.tsParseTypeParameterName(),r.constraint=this.tsExpectThenParseType(58),this.finishNode(r,"TSTypeParameter")}tsParseMappedType(){let r=this.startNode();return this.expect(5),this.match(53)?(r.readonly=this.state.value,this.next(),this.expectContextual(120)):this.eatContextual(120)&&(r.readonly=!0),this.expect(0),r.typeParameter=this.tsParseMappedTypeParameter(),r.nameType=this.eatContextual(93)?this.tsParseType():null,this.expect(3),this.match(53)?(r.optional=this.state.value,this.next(),this.expect(17)):this.eat(17)&&(r.optional=!0),r.typeAnnotation=this.tsTryParseType(),this.semicolon(),this.expect(8),this.finishNode(r,"TSMappedType")}tsParseTupleType(){let r=this.startNode();r.elementTypes=this.tsParseBracketedList("TupleElementTypes",this.tsParseTupleElementType.bind(this),!0,!1);let i=!1,s=null;return r.elementTypes.forEach(n=>{var a;let{type:o}=n;i&&o!=="TSRestType"&&o!=="TSOptionalType"&&!(o==="TSNamedTupleMember"&&n.optional)&&this.raise(le.OptionalTypeBeforeRequired,{at:n}),i||(i=o==="TSNamedTupleMember"&&n.optional||o==="TSOptionalType");let l=o;o==="TSRestType"&&(n=n.typeAnnotation,l=n.type);let u=l==="TSNamedTupleMember";(a=s)!=null||(s=u),s!==u&&this.raise(le.MixedLabeledAndUnlabeledElements,{at:n})}),this.finishNode(r,"TSTupleType")}tsParseTupleElementType(){let{startLoc:r}=this.state,i=this.eat(21),s,n,a,o,u=ri(this.state.type)?this.lookaheadCharCode():null;if(u===58)s=!0,a=!1,n=this.parseIdentifier(!0),this.expect(14),o=this.tsParseType();else if(u===63){a=!0;let f=this.state.startLoc,p=this.state.value,h=this.tsParseNonArrayType();this.lookaheadCharCode()===58?(s=!0,n=this.createIdentifier(this.startNodeAt(f),p),this.expect(17),this.expect(14),o=this.tsParseType()):(s=!1,o=h,this.expect(17))}else o=this.tsParseType(),a=this.eat(17),s=this.eat(14);if(s){let f;n?(f=this.startNodeAtNode(n),f.optional=a,f.label=n,f.elementType=o,this.eat(17)&&(f.optional=!0,this.raise(le.TupleOptionalAfterType,{at:this.state.lastTokStartLoc}))):(f=this.startNodeAtNode(o),f.optional=a,this.raise(le.InvalidTupleMemberLabel,{at:o}),f.label=o,f.elementType=this.tsParseType()),o=this.finishNode(f,"TSNamedTupleMember")}else if(a){let f=this.startNodeAtNode(o);f.typeAnnotation=o,o=this.finishNode(f,"TSOptionalType")}if(i){let f=this.startNodeAt(r);f.typeAnnotation=o,o=this.finishNode(f,"TSRestType")}return o}tsParseParenthesizedType(){let r=this.startNode();return this.expect(10),r.typeAnnotation=this.tsParseType(),this.expect(11),this.finishNode(r,"TSParenthesizedType")}tsParseFunctionOrConstructorType(r,i){let s=this.startNode();return r==="TSConstructorType"&&(s.abstract=!!i,i&&this.next(),this.next()),this.tsInAllowConditionalTypesContext(()=>this.tsFillSignature(19,s)),this.finishNode(s,r)}tsParseLiteralTypeNode(){let r=this.startNode();switch(this.state.type){case 132:case 133:case 131:case 85:case 86:r.literal=super.parseExprAtom();break;default:this.unexpected()}return this.finishNode(r,"TSLiteralType")}tsParseTemplateLiteralType(){let r=this.startNode();return r.literal=super.parseTemplate(!1),this.finishNode(r,"TSLiteralType")}parseTemplateSubstitution(){return this.state.inType?this.tsParseType():super.parseTemplateSubstitution()}tsParseThisTypeOrThisTypePredicate(){let r=this.tsParseThisTypeNode();return this.isContextual(114)&&!this.hasPrecedingLineBreak()?this.tsParseThisTypePredicate(r):r}tsParseNonArrayType(){switch(this.state.type){case 131:case 132:case 133:case 85:case 86:return this.tsParseLiteralTypeNode();case 53:if(this.state.value==="-"){let r=this.startNode(),i=this.lookahead();return i.type!==132&&i.type!==133&&this.unexpected(),r.literal=this.parseMaybeUnary(),this.finishNode(r,"TSLiteralType")}break;case 78:return this.tsParseThisTypeOrThisTypePredicate();case 87:return this.tsParseTypeQuery();case 83:return this.tsParseImportType();case 5:return this.tsLookAhead(this.tsIsStartOfMappedType.bind(this))?this.tsParseMappedType():this.tsParseTypeLiteral();case 0:return this.tsParseTupleType();case 10:return this.tsParseParenthesizedType();case 25:case 24:return this.tsParseTemplateLiteralType();default:{let{type:r}=this.state;if(Ve(r)||r===88||r===84){let i=r===88?"TSVoidKeyword":r===84?"TSNullKeyword":rEe(this.state.value);if(i!==void 0&&this.lookaheadCharCode()!==46){let s=this.startNode();return this.next(),this.finishNode(s,i)}return this.tsParseTypeReference()}}}this.unexpected()}tsParseArrayTypeOrHigher(){let r=this.tsParseNonArrayType();for(;!this.hasPrecedingLineBreak()&&this.eat(0);)if(this.match(3)){let i=this.startNodeAtNode(r);i.elementType=r,this.expect(3),r=this.finishNode(i,"TSArrayType")}else{let i=this.startNodeAtNode(r);i.objectType=r,i.indexType=this.tsParseType(),this.expect(3),r=this.finishNode(i,"TSIndexedAccessType")}return r}tsParseTypeOperator(){let r=this.startNode(),i=this.state.value;return this.next(),r.operator=i,r.typeAnnotation=this.tsParseTypeOperatorOrHigher(),i==="readonly"&&this.tsCheckTypeAnnotationForReadOnly(r),this.finishNode(r,"TSTypeOperator")}tsCheckTypeAnnotationForReadOnly(r){switch(r.typeAnnotation.type){case"TSTupleType":case"TSArrayType":return;default:this.raise(le.UnexpectedReadonly,{at:r})}}tsParseInferType(){let r=this.startNode();this.expectContextual(113);let i=this.startNode();return i.name=this.tsParseTypeParameterName(),i.constraint=this.tsTryParse(()=>this.tsParseConstraintForInferType()),r.typeParameter=this.finishNode(i,"TSTypeParameter"),this.finishNode(r,"TSInferType")}tsParseConstraintForInferType(){if(this.eat(81)){let r=this.tsInDisallowConditionalTypesContext(()=>this.tsParseType());if(this.state.inDisallowConditionalTypesContext||!this.match(17))return r}}tsParseTypeOperatorOrHigher(){return oTe(this.state.type)&&!this.state.containsEsc?this.tsParseTypeOperator():this.isContextual(113)?this.tsParseInferType():this.tsInAllowConditionalTypesContext(()=>this.tsParseArrayTypeOrHigher())}tsParseUnionOrIntersectionType(r,i,s){let n=this.startNode(),a=this.eat(s),o=[];do o.push(i());while(this.eat(s));return o.length===1&&!a?o[0]:(n.types=o,this.finishNode(n,r))}tsParseIntersectionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSIntersectionType",this.tsParseTypeOperatorOrHigher.bind(this),45)}tsParseUnionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSUnionType",this.tsParseIntersectionTypeOrHigher.bind(this),43)}tsIsStartOfFunctionType(){return this.match(47)?!0:this.match(10)&&this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this))}tsSkipParameterStart(){if(Ve(this.state.type)||this.match(78))return this.next(),!0;if(this.match(5)){let{errors:r}=this.state,i=r.length;try{return this.parseObjectLike(8,!0),r.length===i}catch{return!1}}if(this.match(0)){this.next();let{errors:r}=this.state,i=r.length;try{return super.parseBindingList(3,93,1),r.length===i}catch{return!1}}return!1}tsIsUnambiguouslyStartOfFunctionType(){return this.next(),!!(this.match(11)||this.match(21)||this.tsSkipParameterStart()&&(this.match(14)||this.match(12)||this.match(17)||this.match(29)||this.match(11)&&(this.next(),this.match(19))))}tsParseTypeOrTypePredicateAnnotation(r){return this.tsInType(()=>{let i=this.startNode();this.expect(r);let s=this.startNode(),n=!!this.tsTryParse(this.tsParseTypePredicateAsserts.bind(this));if(n&&this.match(78)){let l=this.tsParseThisTypeOrThisTypePredicate();return l.type==="TSThisType"?(s.parameterName=l,s.asserts=!0,s.typeAnnotation=null,l=this.finishNode(s,"TSTypePredicate")):(this.resetStartLocationFromNode(l,s),l.asserts=!0),i.typeAnnotation=l,this.finishNode(i,"TSTypeAnnotation")}let a=this.tsIsIdentifier()&&this.tsTryParse(this.tsParseTypePredicatePrefix.bind(this));if(!a)return n?(s.parameterName=this.parseIdentifier(),s.asserts=n,s.typeAnnotation=null,i.typeAnnotation=this.finishNode(s,"TSTypePredicate"),this.finishNode(i,"TSTypeAnnotation")):this.tsParseTypeAnnotation(!1,i);let o=this.tsParseTypeAnnotation(!1);return s.parameterName=a,s.typeAnnotation=o,s.asserts=n,i.typeAnnotation=this.finishNode(s,"TSTypePredicate"),this.finishNode(i,"TSTypeAnnotation")})}tsTryParseTypeOrTypePredicateAnnotation(){if(this.match(14))return this.tsParseTypeOrTypePredicateAnnotation(14)}tsTryParseTypeAnnotation(){if(this.match(14))return this.tsParseTypeAnnotation()}tsTryParseType(){return this.tsEatThenParseType(14)}tsParseTypePredicatePrefix(){let r=this.parseIdentifier();if(this.isContextual(114)&&!this.hasPrecedingLineBreak())return this.next(),r}tsParseTypePredicateAsserts(){if(this.state.type!==107)return!1;let r=this.state.containsEsc;return this.next(),!Ve(this.state.type)&&!this.match(78)?!1:(r&&this.raise(D.InvalidEscapedReservedWord,{at:this.state.lastTokStartLoc,reservedWord:"asserts"}),!0)}tsParseTypeAnnotation(r=!0,i=this.startNode()){return this.tsInType(()=>{r&&this.expect(14),i.typeAnnotation=this.tsParseType()}),this.finishNode(i,"TSTypeAnnotation")}tsParseType(){jR(this.state.inType);let r=this.tsParseNonConditionalType();if(this.state.inDisallowConditionalTypesContext||this.hasPrecedingLineBreak()||!this.eat(81))return r;let i=this.startNodeAtNode(r);return i.checkType=r,i.extendsType=this.tsInDisallowConditionalTypesContext(()=>this.tsParseNonConditionalType()),this.expect(17),i.trueType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.expect(14),i.falseType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.finishNode(i,"TSConditionalType")}isAbstractConstructorSignature(){return this.isContextual(122)&&this.lookahead().type===77}tsParseNonConditionalType(){return this.tsIsStartOfFunctionType()?this.tsParseFunctionOrConstructorType("TSFunctionType"):this.match(77)?this.tsParseFunctionOrConstructorType("TSConstructorType"):this.isAbstractConstructorSignature()?this.tsParseFunctionOrConstructorType("TSConstructorType",!0):this.tsParseUnionTypeOrHigher()}tsParseTypeAssertion(){this.getPluginOption("typescript","disallowAmbiguousJSXLike")&&this.raise(le.ReservedTypeAssertion,{at:this.state.startLoc});let r=this.startNode();return r.typeAnnotation=this.tsInType(()=>(this.next(),this.match(75)?this.tsParseTypeReference():this.tsParseType())),this.expect(48),r.expression=this.parseMaybeUnary(),this.finishNode(r,"TSTypeAssertion")}tsParseHeritageClause(r){let i=this.state.startLoc,s=this.tsParseDelimitedList("HeritageClauseElement",()=>{let n=this.startNode();return n.expression=this.tsParseEntityName(),this.match(47)&&(n.typeParameters=this.tsParseTypeArguments()),this.finishNode(n,"TSExpressionWithTypeArguments")});return s.length||this.raise(le.EmptyHeritageClauseType,{at:i,token:r}),s}tsParseInterfaceDeclaration(r,i={}){if(this.hasFollowingLineBreak())return null;this.expectContextual(127),i.declare&&(r.declare=!0),Ve(this.state.type)?(r.id=this.parseIdentifier(),this.checkIdentifier(r.id,bTe)):(r.id=null,this.raise(le.MissingInterfaceName,{at:this.state.startLoc})),r.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers),this.eat(81)&&(r.extends=this.tsParseHeritageClause("extends"));let s=this.startNode();return s.body=this.tsInType(this.tsParseObjectTypeMembers.bind(this)),r.body=this.finishNode(s,"TSInterfaceBody"),this.finishNode(r,"TSInterfaceDeclaration")}tsParseTypeAliasDeclaration(r){return r.id=this.parseIdentifier(),this.checkIdentifier(r.id,xTe),r.typeAnnotation=this.tsInType(()=>{if(r.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutModifiers),this.expect(29),this.isContextual(112)&&this.lookahead().type!==16){let i=this.startNode();return this.next(),this.finishNode(i,"TSIntrinsicKeyword")}return this.tsParseType()}),this.semicolon(),this.finishNode(r,"TSTypeAliasDeclaration")}tsInNoContext(r){let i=this.state.context;this.state.context=[i[0]];try{return r()}finally{this.state.context=i}}tsInType(r){let i=this.state.inType;this.state.inType=!0;try{return r()}finally{this.state.inType=i}}tsInDisallowConditionalTypesContext(r){let i=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!0;try{return r()}finally{this.state.inDisallowConditionalTypesContext=i}}tsInAllowConditionalTypesContext(r){let i=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!1;try{return r()}finally{this.state.inDisallowConditionalTypesContext=i}}tsEatThenParseType(r){if(this.match(r))return this.tsNextThenParseType()}tsExpectThenParseType(r){return this.tsInType(()=>(this.expect(r),this.tsParseType()))}tsNextThenParseType(){return this.tsInType(()=>(this.next(),this.tsParseType()))}tsParseEnumMember(){let r=this.startNode();return r.id=this.match(131)?super.parseStringLiteral(this.state.value):this.parseIdentifier(!0),this.eat(29)&&(r.initializer=super.parseMaybeAssignAllowIn()),this.finishNode(r,"TSEnumMember")}tsParseEnumDeclaration(r,i={}){return i.const&&(r.const=!0),i.declare&&(r.declare=!0),this.expectContextual(124),r.id=this.parseIdentifier(),this.checkIdentifier(r.id,r.const?vTe:aM),this.expect(5),r.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(8),this.finishNode(r,"TSEnumDeclaration")}tsParseModuleBlock(){let r=this.startNode();return this.scope.enter(no),this.expect(5),super.parseBlockOrModuleBlockBody(r.body=[],void 0,!0,8),this.scope.exit(),this.finishNode(r,"TSModuleBlock")}tsParseModuleOrNamespaceDeclaration(r,i=!1){if(r.id=this.parseIdentifier(),i||this.checkIdentifier(r.id,ATe),this.eat(16)){let s=this.startNode();this.tsParseModuleOrNamespaceDeclaration(s,!0),r.body=s}else this.scope.enter(uo),this.prodParam.enter(fo),r.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit();return this.finishNode(r,"TSModuleDeclaration")}tsParseAmbientExternalModuleDeclaration(r){return this.isContextual(110)?(r.global=!0,r.id=this.parseIdentifier()):this.match(131)?r.id=super.parseStringLiteral(this.state.value):this.unexpected(),this.match(5)?(this.scope.enter(uo),this.prodParam.enter(fo),r.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit()):this.semicolon(),this.finishNode(r,"TSModuleDeclaration")}tsParseImportEqualsDeclaration(r,i,s){r.isExport=s||!1,r.id=i||this.parseIdentifier(),this.checkIdentifier(r.id,ou),this.expect(29);let n=this.tsParseModuleReference();return r.importKind==="type"&&n.type!=="TSExternalModuleReference"&&this.raise(le.ImportAliasHasImportType,{at:n}),r.moduleReference=n,this.semicolon(),this.finishNode(r,"TSImportEqualsDeclaration")}tsIsExternalModuleReference(){return this.isContextual(117)&&this.lookaheadCharCode()===40}tsParseModuleReference(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(!1)}tsParseExternalModuleReference(){let r=this.startNode();return this.expectContextual(117),this.expect(10),this.match(131)||this.unexpected(),r.expression=super.parseExprAtom(),this.expect(11),this.sawUnambiguousESM=!0,this.finishNode(r,"TSExternalModuleReference")}tsLookAhead(r){let i=this.state.clone(),s=r();return this.state=i,s}tsTryParseAndCatch(r){let i=this.tryParse(s=>r()||s());if(!(i.aborted||!i.node))return i.error&&(this.state=i.failState),i.node}tsTryParse(r){let i=this.state.clone(),s=r();if(s!==void 0&&s!==!1)return s;this.state=i}tsTryParseDeclare(r){if(this.isLineTerminator())return;let i=this.state.type,s;return this.isContextual(99)&&(i=74,s="let"),this.tsInAmbientContext(()=>{switch(i){case 68:return r.declare=!0,super.parseFunctionStatement(r,!1,!1);case 80:return r.declare=!0,this.parseClass(r,!0,!1);case 124:return this.tsParseEnumDeclaration(r,{declare:!0});case 110:return this.tsParseAmbientExternalModuleDeclaration(r);case 75:case 74:return!this.match(75)||!this.isLookaheadContextual("enum")?(r.declare=!0,this.parseVarStatement(r,s||this.state.value,!0)):(this.expect(75),this.tsParseEnumDeclaration(r,{const:!0,declare:!0}));case 127:{let n=this.tsParseInterfaceDeclaration(r,{declare:!0});if(n)return n}default:if(Ve(i))return this.tsParseDeclaration(r,this.state.value,!0,null)}})}tsTryParseExportDeclaration(){return this.tsParseDeclaration(this.startNode(),this.state.value,!0,null)}tsParseExpressionStatement(r,i,s){switch(i.name){case"declare":{let n=this.tsTryParseDeclare(r);return n&&(n.declare=!0),n}case"global":if(this.match(5)){this.scope.enter(uo),this.prodParam.enter(fo);let n=r;return n.global=!0,n.id=i,n.body=this.tsParseModuleBlock(),this.scope.exit(),this.prodParam.exit(),this.finishNode(n,"TSModuleDeclaration")}break;default:return this.tsParseDeclaration(r,i.name,!1,s)}}tsParseDeclaration(r,i,s,n){switch(i){case"abstract":if(this.tsCheckLineTerminator(s)&&(this.match(80)||Ve(this.state.type)))return this.tsParseAbstractDeclaration(r,n);break;case"module":if(this.tsCheckLineTerminator(s)){if(this.match(131))return this.tsParseAmbientExternalModuleDeclaration(r);if(Ve(this.state.type))return this.tsParseModuleOrNamespaceDeclaration(r)}break;case"namespace":if(this.tsCheckLineTerminator(s)&&Ve(this.state.type))return this.tsParseModuleOrNamespaceDeclaration(r);break;case"type":if(this.tsCheckLineTerminator(s)&&Ve(this.state.type))return this.tsParseTypeAliasDeclaration(r);break}}tsCheckLineTerminator(r){return r?this.hasFollowingLineBreak()?!1:(this.next(),!0):!this.isLineTerminator()}tsTryParseGenericAsyncArrowFunction(r){if(!this.match(47))return;let i=this.state.maybeInArrowParameters;this.state.maybeInArrowParameters=!0;let s=this.tsTryParseAndCatch(()=>{let n=this.startNodeAt(r);return n.typeParameters=this.tsParseTypeParameters(this.tsParseConstModifier),super.parseFunctionParams(n),n.returnType=this.tsTryParseTypeOrTypePredicateAnnotation(),this.expect(19),n});if(this.state.maybeInArrowParameters=i,!!s)return super.parseArrowExpression(s,null,!0)}tsParseTypeArgumentsInExpression(){if(this.reScan_lt()===47)return this.tsParseTypeArguments()}tsParseTypeArguments(){let r=this.startNode();return r.params=this.tsInType(()=>this.tsInNoContext(()=>(this.expect(47),this.tsParseDelimitedList("TypeParametersOrArguments",this.tsParseType.bind(this))))),r.params.length===0?this.raise(le.EmptyTypeArguments,{at:r}):!this.state.inType&&this.curContext()===Ye.brace&&this.reScan_lt_gt(),this.expect(48),this.finishNode(r,"TSTypeParameterInstantiation")}tsIsDeclarationStart(){return lTe(this.state.type)}isExportDefaultSpecifier(){return this.tsIsDeclarationStart()?!1:super.isExportDefaultSpecifier()}parseAssignableListItem(r,i){let s=this.state.startLoc,n={};this.tsParseModifiers({allowedModifiers:["public","private","protected","override","readonly"]},n);let a=n.accessibility,o=n.override,l=n.readonly;!(r&4)&&(a||l||o)&&this.raise(le.UnexpectedParameterModifier,{at:s});let u=this.parseMaybeDefault();this.parseAssignableListItemTypes(u,r);let f=this.parseMaybeDefault(u.loc.start,u);if(a||l||o){let p=this.startNodeAt(s);return i.length&&(p.decorators=i),a&&(p.accessibility=a),l&&(p.readonly=l),o&&(p.override=o),f.type!=="Identifier"&&f.type!=="AssignmentPattern"&&this.raise(le.UnsupportedParameterPropertyKind,{at:p}),p.parameter=f,this.finishNode(p,"TSParameterProperty")}return i.length&&(u.decorators=i),f}isSimpleParameter(r){return r.type==="TSParameterProperty"&&super.isSimpleParameter(r.parameter)||super.isSimpleParameter(r)}tsDisallowOptionalPattern(r){for(let i of r.params)i.type!=="Identifier"&&i.optional&&!this.state.isAmbientContext&&this.raise(le.PatternIsOptional,{at:i})}setArrowFunctionParameters(r,i,s){super.setArrowFunctionParameters(r,i,s),this.tsDisallowOptionalPattern(r)}parseFunctionBodyAndFinish(r,i,s=!1){this.match(14)&&(r.returnType=this.tsParseTypeOrTypePredicateAnnotation(14));let n=i==="FunctionDeclaration"?"TSDeclareFunction":i==="ClassMethod"||i==="ClassPrivateMethod"?"TSDeclareMethod":void 0;return n&&!this.match(5)&&this.isLineTerminator()?this.finishNode(r,n):n==="TSDeclareFunction"&&this.state.isAmbientContext&&(this.raise(le.DeclareFunctionHasImplementation,{at:r}),r.declare)?super.parseFunctionBodyAndFinish(r,n,s):(this.tsDisallowOptionalPattern(r),super.parseFunctionBodyAndFinish(r,i,s))}registerFunctionStatementId(r){!r.body&&r.id?this.checkIdentifier(r.id,LR):super.registerFunctionStatementId(r)}tsCheckForInvalidTypeCasts(r){r.forEach(i=>{(i==null?void 0:i.type)==="TSTypeCastExpression"&&this.raise(le.UnexpectedTypeAnnotation,{at:i.typeAnnotation})})}toReferencedList(r,i){return this.tsCheckForInvalidTypeCasts(r),r}parseArrayLike(r,i,s,n){let a=super.parseArrayLike(r,i,s,n);return a.type==="ArrayExpression"&&this.tsCheckForInvalidTypeCasts(a.elements),a}parseSubscript(r,i,s,n){if(!this.hasPrecedingLineBreak()&&this.match(35)){this.state.canStartJSXElement=!1,this.next();let o=this.startNodeAt(i);return o.expression=r,this.finishNode(o,"TSNonNullExpression")}let a=!1;if(this.match(18)&&this.lookaheadCharCode()===60){if(s)return n.stop=!0,r;n.optionalChainMember=a=!0,this.next()}if(this.match(47)||this.match(51)){let o,l=this.tsTryParseAndCatch(()=>{if(!s&&this.atPossibleAsyncArrow(r)){let h=this.tsTryParseGenericAsyncArrowFunction(i);if(h)return h}let u=this.tsParseTypeArgumentsInExpression();if(!u)return;if(a&&!this.match(10)){o=this.state.curPosition();return}if(rh(this.state.type)){let h=super.parseTaggedTemplateExpression(r,i,n);return h.typeParameters=u,h}if(!s&&this.eat(10)){let h=this.startNodeAt(i);return h.callee=r,h.arguments=this.parseCallExpressionArguments(11,!1),this.tsCheckForInvalidTypeCasts(h.arguments),h.typeParameters=u,n.optionalChainMember&&(h.optional=a),this.finishCallExpression(h,n.optionalChainMember)}let f=this.state.type;if(f===48||f===52||f!==10&&ME(f)&&!this.hasPrecedingLineBreak())return;let p=this.startNodeAt(i);return p.expression=r,p.typeParameters=u,this.finishNode(p,"TSInstantiationExpression")});if(o&&this.unexpected(o,10),l)return l.type==="TSInstantiationExpression"&&(this.match(16)||this.match(18)&&this.lookaheadCharCode()!==40)&&this.raise(le.InvalidPropertyAccessAfterInstantiationExpression,{at:this.state.startLoc}),l}return super.parseSubscript(r,i,s,n)}parseNewCallee(r){var i;super.parseNewCallee(r);let{callee:s}=r;s.type==="TSInstantiationExpression"&&!((i=s.extra)!=null&&i.parenthesized)&&(r.typeParameters=s.typeParameters,r.callee=s.expression)}parseExprOp(r,i,s){let n;if(zp(58)>s&&!this.hasPrecedingLineBreak()&&(this.isContextual(93)||(n=this.isContextual(118)))){let a=this.startNodeAt(i);return a.expression=r,a.typeAnnotation=this.tsInType(()=>(this.next(),this.match(75)?(n&&this.raise(D.UnexpectedKeyword,{at:this.state.startLoc,keyword:"const"}),this.tsParseTypeReference()):this.tsParseType())),this.finishNode(a,n?"TSSatisfiesExpression":"TSAsExpression"),this.reScan_lt_gt(),this.parseExprOp(a,i,s)}return super.parseExprOp(r,i,s)}checkReservedWord(r,i,s,n){this.state.isAmbientContext||super.checkReservedWord(r,i,s,n)}checkImportReflection(r){super.checkImportReflection(r),r.module&&r.importKind!=="value"&&this.raise(le.ImportReflectionHasImportType,{at:r.specifiers[0].loc.start})}checkDuplicateExports(){}isPotentialImportPhase(r){if(super.isPotentialImportPhase(r))return!0;if(this.isContextual(128)){let i=this.lookaheadCharCode();return r?i===123||i===42:i!==61}return!r&&this.isContextual(87)}applyImportPhase(r,i,s,n){super.applyImportPhase(r,i,s,n),i?r.exportKind=s==="type"?"type":"value":r.importKind=s==="type"||s==="typeof"?s:"value"}parseImport(r){if(this.match(131))return r.importKind="value",super.parseImport(r);let i;if(Ve(this.state.type)&&this.lookaheadCharCode()===61)return r.importKind="value",this.tsParseImportEqualsDeclaration(r);if(this.isContextual(128)){let s=this.parseMaybeImportPhase(r,!1);if(this.lookaheadCharCode()===61)return this.tsParseImportEqualsDeclaration(r,s);i=super.parseImportSpecifiersAndAfter(r,s)}else i=super.parseImport(r);return i.importKind==="type"&&i.specifiers.length>1&&i.specifiers[0].type==="ImportDefaultSpecifier"&&this.raise(le.TypeImportCannotSpecifyDefaultAndNamed,{at:i}),i}parseExport(r,i){if(this.match(83)){this.next();let s=null;return this.isContextual(128)&&this.isPotentialImportPhase(!1)?s=this.parseMaybeImportPhase(r,!1):r.importKind="value",this.tsParseImportEqualsDeclaration(r,s,!0)}else if(this.eat(29)){let s=r;return s.expression=super.parseExpression(),this.semicolon(),this.sawUnambiguousESM=!0,this.finishNode(s,"TSExportAssignment")}else if(this.eatContextual(93)){let s=r;return this.expectContextual(126),s.id=this.parseIdentifier(),this.semicolon(),this.finishNode(s,"TSNamespaceExportDeclaration")}else return super.parseExport(r,i)}isAbstractClass(){return this.isContextual(122)&&this.lookahead().type===80}parseExportDefaultExpression(){if(this.isAbstractClass()){let r=this.startNode();return this.next(),r.abstract=!0,this.parseClass(r,!0,!0)}if(this.match(127)){let r=this.tsParseInterfaceDeclaration(this.startNode());if(r)return r}return super.parseExportDefaultExpression()}parseVarStatement(r,i,s=!1){let{isAmbientContext:n}=this.state,a=super.parseVarStatement(r,i,s||n);if(!n)return a;for(let{id:o,init:l}of a.declarations)l&&(i!=="const"||o.typeAnnotation?this.raise(le.InitializerNotAllowedInAmbientContext,{at:l}):aEe(l,this.hasPlugin("estree"))||this.raise(le.ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference,{at:l}));return a}parseStatementContent(r,i){if(this.match(75)&&this.isLookaheadContextual("enum")){let s=this.startNode();return this.expect(75),this.tsParseEnumDeclaration(s,{const:!0})}if(this.isContextual(124))return this.tsParseEnumDeclaration(this.startNode());if(this.isContextual(127)){let s=this.tsParseInterfaceDeclaration(this.startNode());if(s)return s}return super.parseStatementContent(r,i)}parseAccessModifier(){return this.tsParseModifier(["public","protected","private"])}tsHasSomeModifiers(r,i){return i.some(s=>qR(s)?r.accessibility===s:!!r[s])}tsIsStartOfStaticBlocks(){return this.isContextual(104)&&this.lookaheadCharCode()===123}parseClassMember(r,i,s){let n=["declare","private","public","protected","override","abstract","readonly","static"];this.tsParseModifiers({allowedModifiers:n,disallowedModifiers:["in","out"],stopOnStartOfClassStaticBlock:!0,errorTemplate:le.InvalidModifierOnTypeParameterPositions},i);let a=()=>{this.tsIsStartOfStaticBlocks()?(this.next(),this.next(),this.tsHasSomeModifiers(i,n)&&this.raise(le.StaticBlockCannotHaveModifier,{at:this.state.curPosition()}),super.parseClassStaticBlock(r,i)):this.parseClassMemberWithIsStatic(r,i,s,!!i.static)};i.declare?this.tsInAmbientContext(a):a()}parseClassMemberWithIsStatic(r,i,s,n){let a=this.tsTryParseIndexSignature(i);if(a){r.body.push(a),i.abstract&&this.raise(le.IndexSignatureHasAbstract,{at:i}),i.accessibility&&this.raise(le.IndexSignatureHasAccessibility,{at:i,modifier:i.accessibility}),i.declare&&this.raise(le.IndexSignatureHasDeclare,{at:i}),i.override&&this.raise(le.IndexSignatureHasOverride,{at:i});return}!this.state.inAbstractClass&&i.abstract&&this.raise(le.NonAbstractClassHasAbstractMethod,{at:i}),i.override&&(s.hadSuperClass||this.raise(le.OverrideNotInSubClass,{at:i})),super.parseClassMemberWithIsStatic(r,i,s,n)}parsePostMemberNameModifiers(r){this.eat(17)&&(r.optional=!0),r.readonly&&this.match(10)&&this.raise(le.ClassMethodHasReadonly,{at:r}),r.declare&&this.match(10)&&this.raise(le.ClassMethodHasDeclare,{at:r})}parseExpressionStatement(r,i,s){return(i.type==="Identifier"?this.tsParseExpressionStatement(r,i,s):void 0)||super.parseExpressionStatement(r,i,s)}shouldParseExportDeclaration(){return this.tsIsDeclarationStart()?!0:super.shouldParseExportDeclaration()}parseConditional(r,i,s){if(!this.state.maybeInArrowParameters||!this.match(17))return super.parseConditional(r,i,s);let n=this.tryParse(()=>super.parseConditional(r,i));return n.node?(n.error&&(this.state=n.failState),n.node):(n.error&&super.setOptionalParametersError(s,n.error),r)}parseParenItem(r,i){if(r=super.parseParenItem(r,i),this.eat(17)&&(r.optional=!0,this.resetEndLocation(r)),this.match(14)){let s=this.startNodeAt(i);return s.expression=r,s.typeAnnotation=this.tsParseTypeAnnotation(),this.finishNode(s,"TSTypeCastExpression")}return r}parseExportDeclaration(r){if(!this.state.isAmbientContext&&this.isContextual(123))return this.tsInAmbientContext(()=>this.parseExportDeclaration(r));let i=this.state.startLoc,s=this.eatContextual(123);if(s&&(this.isContextual(123)||!this.shouldParseExportDeclaration()))throw this.raise(le.ExpectedAmbientAfterExportDeclare,{at:this.state.startLoc});let a=Ve(this.state.type)&&this.tsTryParseExportDeclaration()||super.parseExportDeclaration(r);return a?((a.type==="TSInterfaceDeclaration"||a.type==="TSTypeAliasDeclaration"||s)&&(r.exportKind="type"),s&&(this.resetStartLocation(a,i),a.declare=!0),a):null}parseClassId(r,i,s,n){if((!i||s)&&this.isContextual(111))return;super.parseClassId(r,i,s,r.declare?LR:sM);let a=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers);a&&(r.typeParameters=a)}parseClassPropertyAnnotation(r){r.optional||(this.eat(35)?r.definite=!0:this.eat(17)&&(r.optional=!0));let i=this.tsTryParseTypeAnnotation();i&&(r.typeAnnotation=i)}parseClassProperty(r){if(this.parseClassPropertyAnnotation(r),this.state.isAmbientContext&&!(r.readonly&&!r.typeAnnotation)&&this.match(29)&&this.raise(le.DeclareClassFieldHasInitializer,{at:this.state.startLoc}),r.abstract&&this.match(29)){let{key:i}=r;this.raise(le.AbstractPropertyHasInitializer,{at:this.state.startLoc,propertyName:i.type==="Identifier"&&!r.computed?i.name:`[${this.input.slice(i.start,i.end)}]`})}return super.parseClassProperty(r)}parseClassPrivateProperty(r){return r.abstract&&this.raise(le.PrivateElementHasAbstract,{at:r}),r.accessibility&&this.raise(le.PrivateElementHasAccessibility,{at:r,modifier:r.accessibility}),this.parseClassPropertyAnnotation(r),super.parseClassPrivateProperty(r)}parseClassAccessorProperty(r){return this.parseClassPropertyAnnotation(r),r.optional&&this.raise(le.AccessorCannotBeOptional,{at:r}),super.parseClassAccessorProperty(r)}pushClassMethod(r,i,s,n,a,o){let l=this.tsTryParseTypeParameters(this.tsParseConstModifier);l&&a&&this.raise(le.ConstructorHasTypeParameters,{at:l});let{declare:u=!1,kind:f}=i;u&&(f==="get"||f==="set")&&this.raise(le.DeclareAccessor,{at:i,kind:f}),l&&(i.typeParameters=l),super.pushClassMethod(r,i,s,n,a,o)}pushClassPrivateMethod(r,i,s,n){let a=this.tsTryParseTypeParameters(this.tsParseConstModifier);a&&(i.typeParameters=a),super.pushClassPrivateMethod(r,i,s,n)}declareClassPrivateMethodInScope(r,i){r.type!=="TSDeclareMethod"&&(r.type==="MethodDefinition"&&!r.value.body||super.declareClassPrivateMethodInScope(r,i))}parseClassSuper(r){super.parseClassSuper(r),r.superClass&&(this.match(47)||this.match(51))&&(r.superTypeParameters=this.tsParseTypeArgumentsInExpression()),this.eatContextual(111)&&(r.implements=this.tsParseHeritageClause("implements"))}parseObjPropValue(r,i,s,n,a,o,l){let u=this.tsTryParseTypeParameters(this.tsParseConstModifier);return u&&(r.typeParameters=u),super.parseObjPropValue(r,i,s,n,a,o,l)}parseFunctionParams(r,i){let s=this.tsTryParseTypeParameters(this.tsParseConstModifier);s&&(r.typeParameters=s),super.parseFunctionParams(r,i)}parseVarId(r,i){super.parseVarId(r,i),r.id.type==="Identifier"&&!this.hasPrecedingLineBreak()&&this.eat(35)&&(r.definite=!0);let s=this.tsTryParseTypeAnnotation();s&&(r.id.typeAnnotation=s,this.resetEndLocation(r.id))}parseAsyncArrowFromCallExpression(r,i){return this.match(14)&&(r.returnType=this.tsParseTypeAnnotation()),super.parseAsyncArrowFromCallExpression(r,i)}parseMaybeAssign(r,i){var s,n,a,o,l;let u,f,p;if(this.hasPlugin("jsx")&&(this.match(140)||this.match(47))){if(u=this.state.clone(),f=this.tryParse(()=>super.parseMaybeAssign(r,i),u),!f.error)return f.node;let{context:T}=this.state,b=T[T.length-1];(b===Ye.j_oTag||b===Ye.j_expr)&&T.pop()}if(!((s=f)!=null&&s.error)&&!this.match(47))return super.parseMaybeAssign(r,i);(!u||u===this.state)&&(u=this.state.clone());let h,d=this.tryParse(T=>{var b,x;h=this.tsParseTypeParameters(this.tsParseConstModifier);let _=super.parseMaybeAssign(r,i);return(_.type!=="ArrowFunctionExpression"||(b=_.extra)!=null&&b.parenthesized)&&T(),((x=h)==null?void 0:x.params.length)!==0&&this.resetStartLocationFromNode(_,h),_.typeParameters=h,_},u);if(!d.error&&!d.aborted)return h&&this.reportReservedArrowTypeParam(h),d.node;if(!f&&(jR(!this.hasPlugin("jsx")),p=this.tryParse(()=>super.parseMaybeAssign(r,i),u),!p.error))return p.node;if((n=f)!=null&&n.node)return this.state=f.failState,f.node;if(d.node)return this.state=d.failState,h&&this.reportReservedArrowTypeParam(h),d.node;if((a=p)!=null&&a.node)return this.state=p.failState,p.node;throw((o=f)==null?void 0:o.error)||d.error||((l=p)==null?void 0:l.error)}reportReservedArrowTypeParam(r){var i;r.params.length===1&&!r.params[0].constraint&&!((i=r.extra)!=null&&i.trailingComma)&&this.getPluginOption("typescript","disallowAmbiguousJSXLike")&&this.raise(le.ReservedArrowTypeParam,{at:r})}parseMaybeUnary(r,i){return!this.hasPlugin("jsx")&&this.match(47)?this.tsParseTypeAssertion():super.parseMaybeUnary(r,i)}parseArrow(r){if(this.match(14)){let i=this.tryParse(s=>{let n=this.tsParseTypeOrTypePredicateAnnotation(14);return(this.canInsertSemicolon()||!this.match(19))&&s(),n});if(i.aborted)return;i.thrown||(i.error&&(this.state=i.failState),r.returnType=i.node)}return super.parseArrow(r)}parseAssignableListItemTypes(r,i){if(!(i&2))return r;this.eat(17)&&(r.optional=!0);let s=this.tsTryParseTypeAnnotation();return s&&(r.typeAnnotation=s),this.resetEndLocation(r),r}isAssignable(r,i){switch(r.type){case"TSTypeCastExpression":return this.isAssignable(r.expression,i);case"TSParameterProperty":return!0;default:return super.isAssignable(r,i)}}toAssignable(r,i=!1){switch(r.type){case"ParenthesizedExpression":this.toAssignableParenthesizedExpression(r,i);break;case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":i?this.expressionScope.recordArrowParameterBindingError(le.UnexpectedTypeCastInParameter,{at:r}):this.raise(le.UnexpectedTypeCastInParameter,{at:r}),this.toAssignable(r.expression,i);break;case"AssignmentExpression":!i&&r.left.type==="TSTypeCastExpression"&&(r.left=this.typeCastToParameter(r.left));default:super.toAssignable(r,i)}}toAssignableParenthesizedExpression(r,i){switch(r.expression.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":case"ParenthesizedExpression":this.toAssignable(r.expression,i);break;default:super.toAssignable(r,i)}}checkToRestConversion(r,i){switch(r.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":this.checkToRestConversion(r.expression,!1);break;default:super.checkToRestConversion(r,i)}}isValidLVal(r,i,s){return eEe({TSTypeCastExpression:!0,TSParameterProperty:"parameter",TSNonNullExpression:"expression",TSAsExpression:(s!==Ys||!i)&&["expression",!0],TSSatisfiesExpression:(s!==Ys||!i)&&["expression",!0],TSTypeAssertion:(s!==Ys||!i)&&["expression",!0]},r)||super.isValidLVal(r,i,s)}parseBindingAtom(){return this.state.type===78?this.parseIdentifier(!0):super.parseBindingAtom()}parseMaybeDecoratorArguments(r){if(this.match(47)||this.match(51)){let i=this.tsParseTypeArgumentsInExpression();if(this.match(10)){let s=super.parseMaybeDecoratorArguments(r);return s.typeParameters=i,s}this.unexpected(null,10)}return super.parseMaybeDecoratorArguments(r)}checkCommaAfterRest(r){return this.state.isAmbientContext&&this.match(12)&&this.lookaheadCharCode()===r?(this.next(),!1):super.checkCommaAfterRest(r)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(35)||this.match(14)||super.isClassProperty()}parseMaybeDefault(r,i){let s=super.parseMaybeDefault(r,i);return s.type==="AssignmentPattern"&&s.typeAnnotation&&s.right.start<s.typeAnnotation.start&&this.raise(le.TypeAnnotationAfterAssign,{at:s.typeAnnotation}),s}getTokenFromCode(r){if(this.state.inType){if(r===62){this.finishOp(48,1);return}if(r===60){this.finishOp(47,1);return}}super.getTokenFromCode(r)}reScan_lt_gt(){let{type:r}=this.state;r===47?(this.state.pos-=1,this.readToken_lt()):r===48&&(this.state.pos-=1,this.readToken_gt())}reScan_lt(){let{type:r}=this.state;return r===51?(this.state.pos-=2,this.finishOp(47,1),47):r}toAssignableList(r,i,s){for(let n=0;n<r.length;n++){let a=r[n];(a==null?void 0:a.type)==="TSTypeCastExpression"&&(r[n]=this.typeCastToParameter(a))}super.toAssignableList(r,i,s)}typeCastToParameter(r){return r.expression.typeAnnotation=r.typeAnnotation,this.resetEndLocation(r.expression,r.typeAnnotation.loc.end),r.expression}shouldParseArrow(r){return this.match(14)?r.every(i=>this.isAssignable(i,!0)):super.shouldParseArrow(r)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}canHaveLeadingDecorator(){return super.canHaveLeadingDecorator()||this.isAbstractClass()}jsxParseOpeningElementAfterName(r){if(this.match(47)||this.match(51)){let i=this.tsTryParseAndCatch(()=>this.tsParseTypeArgumentsInExpression());i&&(r.typeParameters=i)}return super.jsxParseOpeningElementAfterName(r)}getGetterSetterExpectedParamCount(r){let i=super.getGetterSetterExpectedParamCount(r),n=this.getObjectOrClassMethodParams(r)[0];return n&&this.isThisParam(n)?i+1:i}parseCatchClauseParam(){let r=super.parseCatchClauseParam(),i=this.tsTryParseTypeAnnotation();return i&&(r.typeAnnotation=i,this.resetEndLocation(r)),r}tsInAmbientContext(r){let i=this.state.isAmbientContext;this.state.isAmbientContext=!0;try{return r()}finally{this.state.isAmbientContext=i}}parseClass(r,i,s){let n=this.state.inAbstractClass;this.state.inAbstractClass=!!r.abstract;try{return super.parseClass(r,i,s)}finally{this.state.inAbstractClass=n}}tsParseAbstractDeclaration(r,i){if(this.match(80))return r.abstract=!0,this.maybeTakeDecorators(i,this.parseClass(r,!0,!1));if(this.isContextual(127)){if(!this.hasFollowingLineBreak())return r.abstract=!0,this.raise(le.NonClassMethodPropertyHasAbstractModifer,{at:r}),this.tsParseInterfaceDeclaration(r)}else this.unexpected(null,80)}parseMethod(r,i,s,n,a,o,l){let u=super.parseMethod(r,i,s,n,a,o,l);if(u.abstract&&(this.hasPlugin("estree")?!!u.value.body:!!u.body)){let{key:p}=u;this.raise(le.AbstractMethodHasImplementation,{at:u,methodName:p.type==="Identifier"&&!u.computed?p.name:`[${this.input.slice(p.start,p.end)}]`})}return u}tsParseTypeParameterName(){return this.parseIdentifier().name}shouldParseAsAmbientContext(){return!!this.getPluginOption("typescript","dts")}parse(){return this.shouldParseAsAmbientContext()&&(this.state.isAmbientContext=!0),super.parse()}getExpression(){return this.shouldParseAsAmbientContext()&&(this.state.isAmbientContext=!0),super.getExpression()}parseExportSpecifier(r,i,s,n){return!i&&n?(this.parseTypeOnlyImportExportSpecifier(r,!1,s),this.finishNode(r,"ExportSpecifier")):(r.exportKind="value",super.parseExportSpecifier(r,i,s,n))}parseImportSpecifier(r,i,s,n,a){return!i&&n?(this.parseTypeOnlyImportExportSpecifier(r,!0,s),this.finishNode(r,"ImportSpecifier")):(r.importKind="value",super.parseImportSpecifier(r,i,s,n,s?kR:ou))}parseTypeOnlyImportExportSpecifier(r,i,s){let n=i?"imported":"local",a=i?"local":"exported",o=r[n],l,u=!1,f=!0,p=o.loc.start;if(this.isContextual(93)){let d=this.parseIdentifier();if(this.isContextual(93)){let T=this.parseIdentifier();ri(this.state.type)?(u=!0,o=d,l=i?this.parseIdentifier():this.parseModuleExportName(),f=!1):(l=T,f=!1)}else ri(this.state.type)?(f=!1,l=i?this.parseIdentifier():this.parseModuleExportName()):(u=!0,o=d)}else ri(this.state.type)&&(u=!0,i?(o=this.parseIdentifier(!0),this.isContextual(93)||this.checkReservedWord(o.name,o.loc.start,!0,!0)):o=this.parseModuleExportName());u&&s&&this.raise(i?le.TypeModifierIsUsedInTypeImports:le.TypeModifierIsUsedInTypeExports,{at:p}),r[n]=o,r[a]=l;let h=i?"importKind":"exportKind";r[h]=u?"type":"value",f&&this.eatContextual(93)&&(r[a]=i?this.parseIdentifier():this.parseModuleExportName()),r[a]||(r[a]=ts(r[n])),i&&this.checkIdentifier(r[a],u?kR:ou)}};function nEe(t){if(t.type!=="MemberExpression")return!1;let{computed:e,property:r}=t;return e&&r.type!=="StringLiteral"&&(r.type!=="TemplateLiteral"||r.expressions.length>0)?!1:SM(t.object)}function aEe(t,e){var r;let{type:i}=t;if((r=t.extra)!=null&&r.parenthesized)return!1;if(e){if(i==="Literal"){let{value:s}=t;if(typeof s=="string"||typeof s=="boolean")return!0}}else if(i==="StringLiteral"||i==="BooleanLiteral")return!0;return!!(gM(t,e)||oEe(t,e)||i==="TemplateLiteral"&&t.expressions.length===0||nEe(t))}function gM(t,e){return e?t.type==="Literal"&&(typeof t.value=="number"||"bigint"in t):t.type==="NumericLiteral"||t.type==="BigIntLiteral"}function oEe(t,e){if(t.type==="UnaryExpression"){let{operator:r,argument:i}=t;if(r==="-"&&gM(i,e))return!0}return!1}function SM(t){return t.type==="Identifier"?!0:t.type!=="MemberExpression"||t.computed?!1:SM(t.object)}var UR=Zi`placeholders`({ClassNameIsRequired:"A class name is required.",UnexpectedSpace:"Unexpected space in placeholder."}),lEe=t=>class extends t{parsePlaceholder(r){if(this.match(142)){let i=this.startNode();return this.next(),this.assertNoSpace(),i.name=super.parseIdentifier(!0),this.assertNoSpace(),this.expect(142),this.finishPlaceholder(i,r)}}finishPlaceholder(r,i){let s=!!(r.expectedNode&&r.type==="Placeholder");return r.expectedNode=i,s?r:this.finishNode(r,"Placeholder")}getTokenFromCode(r){r===37&&this.input.charCodeAt(this.state.pos+1)===37?this.finishOp(142,2):super.getTokenFromCode(r)}parseExprAtom(r){return this.parsePlaceholder("Expression")||super.parseExprAtom(r)}parseIdentifier(r){return this.parsePlaceholder("Identifier")||super.parseIdentifier(r)}checkReservedWord(r,i,s,n){r!==void 0&&super.checkReservedWord(r,i,s,n)}parseBindingAtom(){return this.parsePlaceholder("Pattern")||super.parseBindingAtom()}isValidLVal(r,i,s){return r==="Placeholder"||super.isValidLVal(r,i,s)}toAssignable(r,i){r&&r.type==="Placeholder"&&r.expectedNode==="Expression"?r.expectedNode="Pattern":super.toAssignable(r,i)}chStartsBindingIdentifier(r,i){return!!(super.chStartsBindingIdentifier(r,i)||this.lookahead().type===142)}verifyBreakContinue(r,i){r.label&&r.label.type==="Placeholder"||super.verifyBreakContinue(r,i)}parseExpressionStatement(r,i){if(i.type!=="Placeholder"||i.extra&&i.extra.parenthesized)return super.parseExpressionStatement(r,i);if(this.match(14)){let s=r;return s.label=this.finishPlaceholder(i,"Identifier"),this.next(),s.body=super.parseStatementOrSloppyAnnexBFunctionDeclaration(),this.finishNode(s,"LabeledStatement")}return this.semicolon(),r.name=i.name,this.finishPlaceholder(r,"Statement")}parseBlock(r,i,s){return this.parsePlaceholder("BlockStatement")||super.parseBlock(r,i,s)}parseFunctionId(r){return this.parsePlaceholder("Identifier")||super.parseFunctionId(r)}parseClass(r,i,s){let n=i?"ClassDeclaration":"ClassExpression";this.next();let a=this.state.strict,o=this.parsePlaceholder("Identifier");if(o)if(this.match(81)||this.match(142)||this.match(5))r.id=o;else{if(s||!i)return r.id=null,r.body=this.finishPlaceholder(o,"ClassBody"),this.finishNode(r,n);throw this.raise(UR.ClassNameIsRequired,{at:this.state.startLoc})}else this.parseClassId(r,i,s);return super.parseClassSuper(r),r.body=this.parsePlaceholder("ClassBody")||super.parseClassBody(!!r.superClass,a),this.finishNode(r,n)}parseExport(r,i){let s=this.parsePlaceholder("Identifier");if(!s)return super.parseExport(r,i);if(!this.isContextual(97)&&!this.match(12))return r.specifiers=[],r.source=null,r.declaration=this.finishPlaceholder(s,"Declaration"),this.finishNode(r,"ExportNamedDeclaration");this.expectPlugin("exportDefaultFrom");let n=this.startNode();return n.exported=s,r.specifiers=[this.finishNode(n,"ExportDefaultSpecifier")],super.parseExport(r,i)}isExportDefaultSpecifier(){if(this.match(65)){let r=this.nextTokenStart();if(this.isUnparsedContextual(r,"from")&&this.input.startsWith(Xs(142),this.nextTokenStartSince(r+4)))return!0}return super.isExportDefaultSpecifier()}maybeParseExportDefaultSpecifier(r,i){var s;return(s=r.specifiers)!=null&&s.length?!0:super.maybeParseExportDefaultSpecifier(r,i)}checkExport(r){let{specifiers:i}=r;i!=null&&i.length&&(r.specifiers=i.filter(s=>s.exported.type==="Placeholder")),super.checkExport(r),r.specifiers=i}parseImport(r){let i=this.parsePlaceholder("Identifier");if(!i)return super.parseImport(r);if(r.specifiers=[],!this.isContextual(97)&&!this.match(12))return r.source=this.finishPlaceholder(i,"StringLiteral"),this.semicolon(),this.finishNode(r,"ImportDeclaration");let s=this.startNodeAtNode(i);return s.local=i,r.specifiers.push(this.finishNode(s,"ImportDefaultSpecifier")),this.eat(12)&&(this.maybeParseStarImportSpecifier(r)||this.parseNamedImportSpecifiers(r)),this.expectContextual(97),r.source=this.parseImportSource(),this.semicolon(),this.finishNode(r,"ImportDeclaration")}parseImportSource(){return this.parsePlaceholder("StringLiteral")||super.parseImportSource()}assertNoSpace(){this.state.start>this.state.lastTokEndLoc.index&&this.raise(UR.UnexpectedSpace,{at:this.state.lastTokEndLoc})}},uEe=t=>class extends t{parseV8Intrinsic(){if(this.match(54)){let r=this.state.startLoc,i=this.startNode();if(this.next(),Ve(this.state.type)){let s=this.parseIdentifierName(),n=this.createIdentifier(i,s);if(n.type="V8IntrinsicIdentifier",this.match(10))return n}this.unexpected(r)}}parseExprAtom(r){return this.parseV8Intrinsic()||super.parseExprAtom(r)}};function bt(t,e){let[r,i]=typeof e=="string"?[e,{}]:e,s=Object.keys(i),n=s.length===0;return t.some(a=>{if(typeof a=="string")return n&&a===r;{let[o,l]=a;if(o!==r)return!1;for(let u of s)if(l[u]!==i[u])return!1;return!0}})}function Un(t,e,r){let i=t.find(s=>Array.isArray(s)?s[0]===e:s===e);return i&&Array.isArray(i)&&i.length>1?i[1][r]:null}var $R=["minimal","fsharp","hack","smart"],VR=["^^","@@","^","%","#"],KR=["hash","bar"];function cEe(t){if(bt(t,"decorators")){if(bt(t,"decorators-legacy"))throw new Error("Cannot use the decorators and decorators-legacy plugin together");let e=Un(t,"decorators","decoratorsBeforeExport");if(e!=null&&typeof e!="boolean")throw new Error("'decoratorsBeforeExport' must be a boolean, if specified.");let r=Un(t,"decorators","allowCallParenthesized");if(r!=null&&typeof r!="boolean")throw new Error("'allowCallParenthesized' must be a boolean.")}if(bt(t,"flow")&&bt(t,"typescript"))throw new Error("Cannot combine flow and typescript plugins.");if(bt(t,"placeholders")&&bt(t,"v8intrinsic"))throw new Error("Cannot combine placeholders and v8intrinsic plugins.");if(bt(t,"pipelineOperator")){let e=Un(t,"pipelineOperator","proposal");if(!$R.includes(e)){let i=$R.map(s=>`"${s}"`).join(", ");throw new Error(`"pipelineOperator" requires "proposal" option whose value must be one of: ${i}.`)}let r=bt(t,["recordAndTuple",{syntaxType:"hash"}]);if(e==="hack"){if(bt(t,"placeholders"))throw new Error("Cannot combine placeholders plugin and Hack-style pipes.");if(bt(t,"v8intrinsic"))throw new Error("Cannot combine v8intrinsic plugin and Hack-style pipes.");let i=Un(t,"pipelineOperator","topicToken");if(!VR.includes(i)){let s=VR.map(n=>`"${n}"`).join(", ");throw new Error(`"pipelineOperator" in "proposal": "hack" mode also requires a "topicToken" option whose value must be one of: ${s}.`)}if(i==="#"&&r)throw new Error('Plugin conflict between `["pipelineOperator", { proposal: "hack", topicToken: "#" }]` and `["recordAndtuple", { syntaxType: "hash"}]`.')}else if(e==="smart"&&r)throw new Error('Plugin conflict between `["pipelineOperator", { proposal: "smart" }]` and `["recordAndtuple", { syntaxType: "hash"}]`.')}if(bt(t,"moduleAttributes")){if(bt(t,"importAssertions")||bt(t,"importAttributes"))throw new Error("Cannot combine importAssertions, importAttributes and moduleAttributes plugins.");if(Un(t,"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(bt(t,"importAssertions")&&bt(t,"importAttributes"))throw new Error("Cannot combine importAssertions and importAttributes plugins.");if(bt(t,"recordAndTuple")&&Un(t,"recordAndTuple","syntaxType")!=null&&!KR.includes(Un(t,"recordAndTuple","syntaxType")))throw new Error("The 'syntaxType' option of the 'recordAndTuple' plugin must be one of: "+KR.map(e=>`'${e}'`).join(", "));if(bt(t,"asyncDoExpressions")&&!bt(t,"doExpressions")){let e=new Error("'asyncDoExpressions' requires 'doExpressions', please add 'doExpressions' to parser plugins.");throw e.missingPlugins="doExpressions",e}}var TM={estree:J0e,jsx:QTe,flow:zTe,typescript:sEe,v8intrinsic:uEe,placeholders:lEe},fEe=Object.keys(TM),HR={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,createParenthesizedExpressions:!1,errorRecovery:!1,attachComment:!0,annexB:!0};function pEe(t){if(t&&t.annexB!=null&&t.annexB!==!1)throw new Error("The `annexB` option can only be set to `false`.");let e={};for(let r of Object.keys(HR))e[r]=t&&t[r]!=null?t[r]:HR[r];return e}var rb=class extends tb{checkProto(e,r,i,s){if(e.type==="SpreadElement"||this.isObjectMethod(e)||e.computed||e.shorthand)return;let n=e.key;if((n.type==="Identifier"?n.name:n.value)==="__proto__"){if(r){this.raise(D.RecordNoProto,{at:n});return}i.used&&(s?s.doubleProtoLoc===null&&(s.doubleProtoLoc=n.loc.start):this.raise(D.DuplicateProto,{at:n})),i.used=!0}}shouldExitDescending(e,r){return e.type==="ArrowFunctionExpression"&&e.start===r}getExpression(){this.enterInitialScopes(),this.nextToken();let e=this.parseExpression();return this.match(137)||this.unexpected(),this.finalizeRemainingComments(),e.comments=this.state.comments,e.errors=this.state.errors,this.options.tokens&&(e.tokens=this.tokens),e}parseExpression(e,r){return e?this.disallowInAnd(()=>this.parseExpressionBase(r)):this.allowInAnd(()=>this.parseExpressionBase(r))}parseExpressionBase(e){let r=this.state.startLoc,i=this.parseMaybeAssign(e);if(this.match(12)){let s=this.startNodeAt(r);for(s.expressions=[i];this.eat(12);)s.expressions.push(this.parseMaybeAssign(e));return this.toReferencedList(s.expressions),this.finishNode(s,"SequenceExpression")}return i}parseMaybeAssignDisallowIn(e,r){return this.disallowInAnd(()=>this.parseMaybeAssign(e,r))}parseMaybeAssignAllowIn(e,r){return this.allowInAnd(()=>this.parseMaybeAssign(e,r))}setOptionalParametersError(e,r){var i;e.optionalParametersLoc=(i=r==null?void 0:r.loc)!=null?i:this.state.startLoc}parseMaybeAssign(e,r){let i=this.state.startLoc;if(this.isContextual(106)&&this.prodParam.hasYield){let o=this.parseYield();return r&&(o=r.call(this,o,i)),o}let s;e?s=!1:(e=new po,s=!0);let{type:n}=this.state;(n===10||Ve(n))&&(this.state.potentialArrowAt=this.state.start);let a=this.parseMaybeConditional(e);if(r&&(a=r.call(this,a,i)),rTe(this.state.type)){let o=this.startNodeAt(i),l=this.state.value;if(o.operator=l,this.match(29)){this.toAssignable(a,!0),o.left=a;let u=i.index;e.doubleProtoLoc!=null&&e.doubleProtoLoc.index>=u&&(e.doubleProtoLoc=null),e.shorthandAssignLoc!=null&&e.shorthandAssignLoc.index>=u&&(e.shorthandAssignLoc=null),e.privateKeyLoc!=null&&e.privateKeyLoc.index>=u&&(this.checkDestructuringPrivate(e),e.privateKeyLoc=null)}else o.left=a;return this.next(),o.right=this.parseMaybeAssign(),this.checkLVal(a,{in:this.finishNode(o,"AssignmentExpression")}),o}else s&&this.checkExpressionErrors(e,!0);return a}parseMaybeConditional(e){let r=this.state.startLoc,i=this.state.potentialArrowAt,s=this.parseExprOps(e);return this.shouldExitDescending(s,i)?s:this.parseConditional(s,r,e)}parseConditional(e,r,i){if(this.eat(17)){let s=this.startNodeAt(r);return s.test=e,s.consequent=this.parseMaybeAssignAllowIn(),this.expect(14),s.alternate=this.parseMaybeAssign(),this.finishNode(s,"ConditionalExpression")}return e}parseMaybeUnaryOrPrivate(e){return this.match(136)?this.parsePrivateName():this.parseMaybeUnary(e)}parseExprOps(e){let r=this.state.startLoc,i=this.state.potentialArrowAt,s=this.parseMaybeUnaryOrPrivate(e);return this.shouldExitDescending(s,i)?s:this.parseExprOp(s,r,-1)}parseExprOp(e,r,i){if(this.isPrivateName(e)){let n=this.getPrivateNameSV(e);(i>=zp(58)||!this.prodParam.hasIn||!this.match(58))&&this.raise(D.PrivateInExpectedIn,{at:e,identifierName:n}),this.classScope.usePrivateName(n,e.loc.start)}let s=this.state.type;if(sTe(s)&&(this.prodParam.hasIn||!this.match(58))){let n=zp(s);if(n>i){if(s===39){if(this.expectPlugin("pipelineOperator"),this.state.inFSharpPipelineDirectBody)return e;this.checkPipelineAtInfixOperator(e,r)}let a=this.startNodeAt(r);a.left=e,a.operator=this.state.value;let o=s===41||s===42,l=s===40;if(l&&(n=zp(42)),this.next(),s===39&&this.hasPlugin(["pipelineOperator",{proposal:"minimal"}])&&this.state.type===96&&this.prodParam.hasAwait)throw this.raise(D.UnexpectedAwaitAfterPipelineBody,{at:this.state.startLoc});a.right=this.parseExprOpRightExpr(s,n);let u=this.finishNode(a,o||l?"LogicalExpression":"BinaryExpression"),f=this.state.type;if(l&&(f===41||f===42)||o&&f===40)throw this.raise(D.MixingCoalesceWithLogical,{at:this.state.startLoc});return this.parseExprOp(u,r,i)}}return e}parseExprOpRightExpr(e,r){let i=this.state.startLoc;switch(e){case 39:switch(this.getPluginOption("pipelineOperator","proposal")){case"hack":return this.withTopicBindingContext(()=>this.parseHackPipeBody());case"smart":return this.withTopicBindingContext(()=>{if(this.prodParam.hasYield&&this.isContextual(106))throw this.raise(D.PipeBodyIsTighter,{at:this.state.startLoc});return this.parseSmartPipelineBodyInStyle(this.parseExprOpBaseRightExpr(e,r),i)});case"fsharp":return this.withSoloAwaitPermittingContext(()=>this.parseFSharpPipelineBody(r))}default:return this.parseExprOpBaseRightExpr(e,r)}}parseExprOpBaseRightExpr(e,r){let i=this.state.startLoc;return this.parseExprOp(this.parseMaybeUnaryOrPrivate(),i,uTe(e)?r-1:r)}parseHackPipeBody(){var e;let{startLoc:r}=this.state,i=this.parseMaybeAssign();return H0e.has(i.type)&&!((e=i.extra)!=null&&e.parenthesized)&&this.raise(D.PipeUnparenthesizedBody,{at:r,type:i.type}),this.topicReferenceWasUsedInCurrentContext()||this.raise(D.PipeTopicUnused,{at:r}),i}checkExponentialAfterUnary(e){this.match(57)&&this.raise(D.UnexpectedTokenUnaryExponentiation,{at:e.argument})}parseMaybeUnary(e,r){let i=this.state.startLoc,s=this.isContextual(96);if(s&&this.isAwaitAllowed()){this.next();let l=this.parseAwait(i);return r||this.checkExponentialAfterUnary(l),l}let n=this.match(34),a=this.startNode();if(aTe(this.state.type)){a.operator=this.state.value,a.prefix=!0,this.match(72)&&this.expectPlugin("throwExpressions");let l=this.match(89);if(this.next(),a.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(e,!0),this.state.strict&&l){let u=a.argument;u.type==="Identifier"?this.raise(D.StrictDelete,{at:a}):this.hasPropertyAsPrivateName(u)&&this.raise(D.DeletePrivateField,{at:a})}if(!n)return r||this.checkExponentialAfterUnary(a),this.finishNode(a,"UnaryExpression")}let o=this.parseUpdate(a,n,e);if(s){let{type:l}=this.state;if((this.hasPlugin("v8intrinsic")?ME(l):ME(l)&&!this.match(54))&&!this.isAmbiguousAwait())return this.raiseOverwrite(D.AwaitNotInAsyncContext,{at:i}),this.parseAwait(i)}return o}parseUpdate(e,r,i){if(r){let a=e;return this.checkLVal(a.argument,{in:this.finishNode(a,"UpdateExpression")}),e}let s=this.state.startLoc,n=this.parseExprSubscripts(i);if(this.checkExpressionErrors(i,!1))return n;for(;nTe(this.state.type)&&!this.canInsertSemicolon();){let a=this.startNodeAt(s);a.operator=this.state.value,a.prefix=!1,a.argument=n,this.next(),this.checkLVal(n,{in:n=this.finishNode(a,"UpdateExpression")})}return n}parseExprSubscripts(e){let r=this.state.startLoc,i=this.state.potentialArrowAt,s=this.parseExprAtom(e);return this.shouldExitDescending(s,i)?s:this.parseSubscripts(s,r)}parseSubscripts(e,r,i){let s={optionalChainMember:!1,maybeAsyncArrow:this.atPossibleAsyncArrow(e),stop:!1};do e=this.parseSubscript(e,r,i,s),s.maybeAsyncArrow=!1;while(!s.stop);return e}parseSubscript(e,r,i,s){let{type:n}=this.state;if(!i&&n===15)return this.parseBind(e,r,i,s);if(rh(n))return this.parseTaggedTemplateExpression(e,r,s);let a=!1;if(n===18){if(i&&(this.raise(D.OptionalChainingNoNew,{at:this.state.startLoc}),this.lookaheadCharCode()===40))return s.stop=!0,e;s.optionalChainMember=a=!0,this.next()}if(!i&&this.match(10))return this.parseCoverCallAndAsyncArrowHead(e,r,s,a);{let o=this.eat(0);return o||a||this.eat(16)?this.parseMember(e,r,s,o,a):(s.stop=!0,e)}}parseMember(e,r,i,s,n){let a=this.startNodeAt(r);return a.object=e,a.computed=s,s?(a.property=this.parseExpression(),this.expect(3)):this.match(136)?(e.type==="Super"&&this.raise(D.SuperPrivateField,{at:r}),this.classScope.usePrivateName(this.state.value,this.state.startLoc),a.property=this.parsePrivateName()):a.property=this.parseIdentifier(!0),i.optionalChainMember?(a.optional=n,this.finishNode(a,"OptionalMemberExpression")):this.finishNode(a,"MemberExpression")}parseBind(e,r,i,s){let n=this.startNodeAt(r);return n.object=e,this.next(),n.callee=this.parseNoCallExpr(),s.stop=!0,this.parseSubscripts(this.finishNode(n,"BindExpression"),r,i)}parseCoverCallAndAsyncArrowHead(e,r,i,s){let n=this.state.maybeInArrowParameters,a=null;this.state.maybeInArrowParameters=!0,this.next();let o=this.startNodeAt(r);o.callee=e;let{maybeAsyncArrow:l,optionalChainMember:u}=i;l&&(this.expressionScope.enter($Te()),a=new po),u&&(o.optional=s),s?o.arguments=this.parseCallExpressionArguments(11):o.arguments=this.parseCallExpressionArguments(11,e.type==="Import",e.type!=="Super",o,a);let f=this.finishCallExpression(o,u);return l&&this.shouldParseAsyncArrow()&&!s?(i.stop=!0,this.checkDestructuringPrivate(a),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),f=this.parseAsyncArrowFromCallExpression(this.startNodeAt(r),f)):(l&&(this.checkExpressionErrors(a,!0),this.expressionScope.exit()),this.toReferencedArguments(f)),this.state.maybeInArrowParameters=n,f}toReferencedArguments(e,r){this.toReferencedListDeep(e.arguments,r)}parseTaggedTemplateExpression(e,r,i){let s=this.startNodeAt(r);return s.tag=e,s.quasi=this.parseTemplate(!0),i.optionalChainMember&&this.raise(D.OptionalChainingNoTemplate,{at:r}),this.finishNode(s,"TaggedTemplateExpression")}atPossibleAsyncArrow(e){return e.type==="Identifier"&&e.name==="async"&&this.state.lastTokEndLoc.index===e.end&&!this.canInsertSemicolon()&&e.end-e.start===5&&e.start===this.state.potentialArrowAt}expectImportAttributesPlugin(){this.hasPlugin("importAssertions")||this.expectPlugin("importAttributes")}finishCallExpression(e,r){if(e.callee.type==="Import")if(e.arguments.length===2&&(this.hasPlugin("moduleAttributes")||this.expectImportAttributesPlugin()),e.arguments.length===0||e.arguments.length>2)this.raise(D.ImportCallArity,{at:e,maxArgumentCount:this.hasPlugin("importAttributes")||this.hasPlugin("importAssertions")||this.hasPlugin("moduleAttributes")?2:1});else for(let i of e.arguments)i.type==="SpreadElement"&&this.raise(D.ImportCallSpreadArgument,{at:i});return this.finishNode(e,r?"OptionalCallExpression":"CallExpression")}parseCallExpressionArguments(e,r,i,s,n){let a=[],o=!0,l=this.state.inFSharpPipelineDirectBody;for(this.state.inFSharpPipelineDirectBody=!1;!this.eat(e);){if(o)o=!1;else if(this.expect(12),this.match(e)){r&&!this.hasPlugin("importAttributes")&&!this.hasPlugin("importAssertions")&&!this.hasPlugin("moduleAttributes")&&this.raise(D.ImportCallArgumentTrailingComma,{at:this.state.lastTokStartLoc}),s&&this.addTrailingCommaExtraToNode(s),this.next();break}a.push(this.parseExprListItem(!1,n,i))}return this.state.inFSharpPipelineDirectBody=l,a}shouldParseAsyncArrow(){return this.match(19)&&!this.canInsertSemicolon()}parseAsyncArrowFromCallExpression(e,r){var i;return this.resetPreviousNodeTrailingComments(r),this.expect(19),this.parseArrowExpression(e,r.arguments,!0,(i=r.extra)==null?void 0:i.trailingCommaLoc),r.innerComments&&fu(e,r.innerComments),r.callee.trailingComments&&fu(e,r.callee.trailingComments),e}parseNoCallExpr(){let e=this.state.startLoc;return this.parseSubscripts(this.parseExprAtom(),e,!0)}parseExprAtom(e){let r,i=null,{type:s}=this.state;switch(s){case 79:return this.parseSuper();case 83:return r=this.startNode(),this.next(),this.match(16)?this.parseImportMetaProperty(r):(this.match(10)||this.raise(D.UnsupportedImport,{at:this.state.lastTokStartLoc}),this.finishNode(r,"Import"));case 78:return r=this.startNode(),this.next(),this.finishNode(r,"ThisExpression");case 90:return this.parseDo(this.startNode(),!1);case 56:case 31:return this.readRegexp(),this.parseRegExpLiteral(this.state.value);case 132:return this.parseNumericLiteral(this.state.value);case 133:return this.parseBigIntLiteral(this.state.value);case 134:return this.parseDecimalLiteral(this.state.value);case 131:return this.parseStringLiteral(this.state.value);case 84:return this.parseNullLiteral();case 85:return this.parseBooleanLiteral(!0);case 86:return this.parseBooleanLiteral(!1);case 10:{let n=this.state.potentialArrowAt===this.state.start;return this.parseParenAndDistinguishExpression(n)}case 2:case 1:return this.parseArrayLike(this.state.type===2?4:3,!1,!0);case 0:return this.parseArrayLike(3,!0,!1,e);case 6:case 7:return this.parseObjectLike(this.state.type===6?9:8,!1,!0);case 5:return this.parseObjectLike(8,!1,!1,e);case 68:return this.parseFunctionOrFunctionSent();case 26:i=this.parseDecorators();case 80:return this.parseClass(this.maybeTakeDecorators(i,this.startNode()),!1);case 77:return this.parseNewOrNewTarget();case 25:case 24:return this.parseTemplate(!1);case 15:{r=this.startNode(),this.next(),r.object=null;let n=r.callee=this.parseNoCallExpr();if(n.type==="MemberExpression")return this.finishNode(r,"BindExpression");throw this.raise(D.UnsupportedBind,{at:n})}case 136:return this.raise(D.PrivateInExpectedIn,{at:this.state.startLoc,identifierName:this.state.value}),this.parsePrivateName();case 33:return this.parseTopicReferenceThenEqualsSign(54,"%");case 32:return this.parseTopicReferenceThenEqualsSign(44,"^");case 37:case 38:return this.parseTopicReference("hack");case 44:case 54:case 27:{let n=this.getPluginOption("pipelineOperator","proposal");if(n)return this.parseTopicReference(n);this.unexpected();break}case 47:{let n=this.input.codePointAt(this.nextTokenStart());Qi(n)||n===62?this.expectOnePlugin(["jsx","flow","typescript"]):this.unexpected();break}default:if(Ve(s)){if(this.isContextual(125)&&this.lookaheadInLineCharCode()===123)return this.parseModuleExpression();let n=this.state.potentialArrowAt===this.state.start,a=this.state.containsEsc,o=this.parseIdentifier();if(!a&&o.name==="async"&&!this.canInsertSemicolon()){let{type:l}=this.state;if(l===68)return this.resetPreviousNodeTrailingComments(o),this.next(),this.parseAsyncFunctionExpression(this.startNodeAtNode(o));if(Ve(l))return this.lookaheadCharCode()===61?this.parseAsyncArrowUnaryFunction(this.startNodeAtNode(o)):o;if(l===90)return this.resetPreviousNodeTrailingComments(o),this.parseDo(this.startNodeAtNode(o),!0)}return n&&this.match(19)&&!this.canInsertSemicolon()?(this.next(),this.parseArrowExpression(this.startNodeAtNode(o),[o],!1)):o}else this.unexpected()}}parseTopicReferenceThenEqualsSign(e,r){let i=this.getPluginOption("pipelineOperator","proposal");if(i)return this.state.type=e,this.state.value=r,this.state.pos--,this.state.end--,this.state.endLoc=Qt(this.state.endLoc,-1),this.parseTopicReference(i);this.unexpected()}parseTopicReference(e){let r=this.startNode(),i=this.state.startLoc,s=this.state.type;return this.next(),this.finishTopicReference(r,i,e,s)}finishTopicReference(e,r,i,s){if(this.testTopicReferenceConfiguration(i,r,s)){let n=i==="smart"?"PipelinePrimaryTopicReference":"TopicReference";return this.topicReferenceIsAllowedInCurrentContext()||this.raise(i==="smart"?D.PrimaryTopicNotAllowed:D.PipeTopicUnbound,{at:r}),this.registerTopicReference(),this.finishNode(e,n)}else throw this.raise(D.PipeTopicUnconfiguredToken,{at:r,token:Xs(s)})}testTopicReferenceConfiguration(e,r,i){switch(e){case"hack":return this.hasPlugin(["pipelineOperator",{topicToken:Xs(i)}]);case"smart":return i===27;default:throw this.raise(D.PipeTopicRequiresHackPipes,{at:r})}}parseAsyncArrowUnaryFunction(e){this.prodParam.enter(Zp(!0,this.prodParam.hasYield));let r=[this.parseIdentifier()];return this.prodParam.exit(),this.hasPrecedingLineBreak()&&this.raise(D.LineTerminatorBeforeArrow,{at:this.state.curPosition()}),this.expect(19),this.parseArrowExpression(e,r,!0)}parseDo(e,r){this.expectPlugin("doExpressions"),r&&this.expectPlugin("asyncDoExpressions"),e.async=r,this.next();let i=this.state.labels;return this.state.labels=[],r?(this.prodParam.enter(fh),e.body=this.parseBlock(),this.prodParam.exit()):e.body=this.parseBlock(),this.state.labels=i,this.finishNode(e,"DoExpression")}parseSuper(){let e=this.startNode();return this.next(),this.match(10)&&!this.scope.allowDirectSuper&&!this.options.allowSuperOutsideMethod?this.raise(D.SuperNotAllowed,{at:e}):!this.scope.allowSuper&&!this.options.allowSuperOutsideMethod&&this.raise(D.UnexpectedSuper,{at:e}),!this.match(10)&&!this.match(0)&&!this.match(16)&&this.raise(D.UnsupportedSuper,{at:e}),this.finishNode(e,"Super")}parsePrivateName(){let e=this.startNode(),r=this.startNodeAt(Qt(this.state.startLoc,1)),i=this.state.value;return this.next(),e.id=this.createIdentifier(r,i),this.finishNode(e,"PrivateName")}parseFunctionOrFunctionSent(){let e=this.startNode();if(this.next(),this.prodParam.hasYield&&this.match(16)){let r=this.createIdentifier(this.startNodeAtNode(e),"function");return this.next(),this.match(102)?this.expectPlugin("functionSent"):this.hasPlugin("functionSent")||this.unexpected(),this.parseMetaProperty(e,r,"sent")}return this.parseFunction(e)}parseMetaProperty(e,r,i){e.meta=r;let s=this.state.containsEsc;return e.property=this.parseIdentifier(!0),(e.property.name!==i||s)&&this.raise(D.UnsupportedMetaProperty,{at:e.property,target:r.name,onlyValidPropertyName:i}),this.finishNode(e,"MetaProperty")}parseImportMetaProperty(e){let r=this.createIdentifier(this.startNodeAtNode(e),"import");return this.next(),this.isContextual(100)&&(this.inModule||this.raise(D.ImportMetaOutsideModule,{at:r}),this.sawUnambiguousESM=!0),this.parseMetaProperty(e,r,"meta")}parseLiteralAtNode(e,r,i){return this.addExtra(i,"rawValue",e),this.addExtra(i,"raw",this.input.slice(i.start,this.state.end)),i.value=e,this.next(),this.finishNode(i,r)}parseLiteral(e,r){let i=this.startNode();return this.parseLiteralAtNode(e,r,i)}parseStringLiteral(e){return this.parseLiteral(e,"StringLiteral")}parseNumericLiteral(e){return this.parseLiteral(e,"NumericLiteral")}parseBigIntLiteral(e){return this.parseLiteral(e,"BigIntLiteral")}parseDecimalLiteral(e){return this.parseLiteral(e,"DecimalLiteral")}parseRegExpLiteral(e){let r=this.parseLiteral(e.value,"RegExpLiteral");return r.pattern=e.pattern,r.flags=e.flags,r}parseBooleanLiteral(e){let r=this.startNode();return r.value=e,this.next(),this.finishNode(r,"BooleanLiteral")}parseNullLiteral(){let e=this.startNode();return this.next(),this.finishNode(e,"NullLiteral")}parseParenAndDistinguishExpression(e){let r=this.state.startLoc,i;this.next(),this.expressionScope.enter(UTe());let s=this.state.maybeInArrowParameters,n=this.state.inFSharpPipelineDirectBody;this.state.maybeInArrowParameters=!0,this.state.inFSharpPipelineDirectBody=!1;let a=this.state.startLoc,o=[],l=new po,u=!0,f,p;for(;!this.match(11);){if(u)u=!1;else if(this.expect(12,l.optionalParametersLoc===null?null:l.optionalParametersLoc),this.match(11)){p=this.state.startLoc;break}if(this.match(21)){let T=this.state.startLoc;if(f=this.state.startLoc,o.push(this.parseParenItem(this.parseRestBinding(),T)),!this.checkCommaAfterRest(41))break}else o.push(this.parseMaybeAssignAllowIn(l,this.parseParenItem))}let h=this.state.lastTokEndLoc;this.expect(11),this.state.maybeInArrowParameters=s,this.state.inFSharpPipelineDirectBody=n;let d=this.startNodeAt(r);return e&&this.shouldParseArrow(o)&&(d=this.parseArrow(d))?(this.checkDestructuringPrivate(l),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),this.parseArrowExpression(d,o,!1),d):(this.expressionScope.exit(),o.length||this.unexpected(this.state.lastTokStartLoc),p&&this.unexpected(p),f&&this.unexpected(f),this.checkExpressionErrors(l,!0),this.toReferencedListDeep(o,!0),o.length>1?(i=this.startNodeAt(a),i.expressions=o,this.finishNode(i,"SequenceExpression"),this.resetEndLocation(i,h)):i=o[0],this.wrapParenthesis(r,i))}wrapParenthesis(e,r){if(!this.options.createParenthesizedExpressions)return this.addExtra(r,"parenthesized",!0),this.addExtra(r,"parenStart",e.index),this.takeSurroundingComments(r,e.index,this.state.lastTokEndLoc.index),r;let i=this.startNodeAt(e);return i.expression=r,this.finishNode(i,"ParenthesizedExpression")}shouldParseArrow(e){return!this.canInsertSemicolon()}parseArrow(e){if(this.eat(19))return e}parseParenItem(e,r){return e}parseNewOrNewTarget(){let e=this.startNode();if(this.next(),this.match(16)){let r=this.createIdentifier(this.startNodeAtNode(e),"new");this.next();let i=this.parseMetaProperty(e,r,"target");return!this.scope.inNonArrowFunction&&!this.scope.inClass&&!this.options.allowNewTargetOutsideFunction&&this.raise(D.UnexpectedNewTarget,{at:i}),i}return this.parseNew(e)}parseNew(e){if(this.parseNewCallee(e),this.eat(10)){let r=this.parseExprList(11);this.toReferencedList(r),e.arguments=r}else e.arguments=[];return this.finishNode(e,"NewExpression")}parseNewCallee(e){e.callee=this.parseNoCallExpr(),e.callee.type==="Import"&&this.raise(D.ImportCallNotNewExpression,{at:e.callee})}parseTemplateElement(e){let{start:r,startLoc:i,end:s,value:n}=this.state,a=r+1,o=this.startNodeAt(Qt(i,1));n===null&&(e||this.raise(D.InvalidEscapeSequenceTemplate,{at:Qt(this.state.firstInvalidTemplateEscapePos,1)}));let l=this.match(24),u=l?-1:-2,f=s+u;o.value={raw:this.input.slice(a,f).replace(/\r\n?/g,`
47
+ `),cooked:n===null?null:n.slice(1,u)},o.tail=l,this.next();let p=this.finishNode(o,"TemplateElement");return this.resetEndLocation(p,Qt(this.state.lastTokEndLoc,u)),p}parseTemplate(e){let r=this.startNode();r.expressions=[];let i=this.parseTemplateElement(e);for(r.quasis=[i];!i.tail;)r.expressions.push(this.parseTemplateSubstitution()),this.readTemplateContinuation(),r.quasis.push(i=this.parseTemplateElement(e));return this.finishNode(r,"TemplateLiteral")}parseTemplateSubstitution(){return this.parseExpression()}parseObjectLike(e,r,i,s){i&&this.expectPlugin("recordAndTuple");let n=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let a=Object.create(null),o=!0,l=this.startNode();for(l.properties=[],this.next();!this.match(e);){if(o)o=!1;else if(this.expect(12),this.match(e)){this.addTrailingCommaExtraToNode(l);break}let f;r?f=this.parseBindingProperty():(f=this.parsePropertyDefinition(s),this.checkProto(f,i,a,s)),i&&!this.isObjectProperty(f)&&f.type!=="SpreadElement"&&this.raise(D.InvalidRecordProperty,{at:f}),f.shorthand&&this.addExtra(f,"shorthand",!0),l.properties.push(f)}this.next(),this.state.inFSharpPipelineDirectBody=n;let u="ObjectExpression";return r?u="ObjectPattern":i&&(u="RecordExpression"),this.finishNode(l,u)}addTrailingCommaExtraToNode(e){this.addExtra(e,"trailingComma",this.state.lastTokStart),this.addExtra(e,"trailingCommaLoc",this.state.lastTokStartLoc,!1)}maybeAsyncOrAccessorProp(e){return!e.computed&&e.key.type==="Identifier"&&(this.isLiteralPropertyName()||this.match(0)||this.match(55))}parsePropertyDefinition(e){let r=[];if(this.match(26))for(this.hasPlugin("decorators")&&this.raise(D.UnsupportedPropertyDecorator,{at:this.state.startLoc});this.match(26);)r.push(this.parseDecorator());let i=this.startNode(),s=!1,n=!1,a;if(this.match(21))return r.length&&this.unexpected(),this.parseSpread();r.length&&(i.decorators=r,r=[]),i.method=!1,e&&(a=this.state.startLoc);let o=this.eat(55);this.parsePropertyNamePrefixOperator(i);let l=this.state.containsEsc,u=this.parsePropertyName(i,e);if(!o&&!l&&this.maybeAsyncOrAccessorProp(i)){let f=u.name;f==="async"&&!this.hasPrecedingLineBreak()&&(s=!0,this.resetPreviousNodeTrailingComments(u),o=this.eat(55),this.parsePropertyName(i)),(f==="get"||f==="set")&&(n=!0,this.resetPreviousNodeTrailingComments(u),i.kind=f,this.match(55)&&(o=!0,this.raise(D.AccessorIsGenerator,{at:this.state.curPosition(),kind:f}),this.next()),this.parsePropertyName(i))}return this.parseObjPropValue(i,a,o,s,!1,n,e)}getGetterSetterExpectedParamCount(e){return e.kind==="get"?0:1}getObjectOrClassMethodParams(e){return e.params}checkGetterSetterParams(e){var r;let i=this.getGetterSetterExpectedParamCount(e),s=this.getObjectOrClassMethodParams(e);s.length!==i&&this.raise(e.kind==="get"?D.BadGetterArity:D.BadSetterArity,{at:e}),e.kind==="set"&&((r=s[s.length-1])==null?void 0:r.type)==="RestElement"&&this.raise(D.BadSetterRestParameter,{at:e})}parseObjectMethod(e,r,i,s,n){if(n){let a=this.parseMethod(e,r,!1,!1,!1,"ObjectMethod");return this.checkGetterSetterParams(a),a}if(i||r||this.match(10))return s&&this.unexpected(),e.kind="method",e.method=!0,this.parseMethod(e,r,i,!1,!1,"ObjectMethod")}parseObjectProperty(e,r,i,s){if(e.shorthand=!1,this.eat(14))return e.value=i?this.parseMaybeDefault(this.state.startLoc):this.parseMaybeAssignAllowIn(s),this.finishNode(e,"ObjectProperty");if(!e.computed&&e.key.type==="Identifier"){if(this.checkReservedWord(e.key.name,e.key.loc.start,!0,!1),i)e.value=this.parseMaybeDefault(r,ts(e.key));else if(this.match(29)){let n=this.state.startLoc;s!=null?s.shorthandAssignLoc===null&&(s.shorthandAssignLoc=n):this.raise(D.InvalidCoverInitializedName,{at:n}),e.value=this.parseMaybeDefault(r,ts(e.key))}else e.value=ts(e.key);return e.shorthand=!0,this.finishNode(e,"ObjectProperty")}}parseObjPropValue(e,r,i,s,n,a,o){let l=this.parseObjectMethod(e,i,s,n,a)||this.parseObjectProperty(e,r,n,o);return l||this.unexpected(),l}parsePropertyName(e,r){if(this.eat(0))e.computed=!0,e.key=this.parseMaybeAssignAllowIn(),this.expect(3);else{let{type:i,value:s}=this.state,n;if(ri(i))n=this.parseIdentifier(!0);else switch(i){case 132:n=this.parseNumericLiteral(s);break;case 131:n=this.parseStringLiteral(s);break;case 133:n=this.parseBigIntLiteral(s);break;case 134:n=this.parseDecimalLiteral(s);break;case 136:{let a=this.state.startLoc;r!=null?r.privateKeyLoc===null&&(r.privateKeyLoc=a):this.raise(D.UnexpectedPrivateField,{at:a}),n=this.parsePrivateName();break}default:this.unexpected()}e.key=n,i!==136&&(e.computed=!1)}return e.key}initFunction(e,r){e.id=null,e.generator=!1,e.async=r}parseMethod(e,r,i,s,n,a,o=!1){this.initFunction(e,i),e.generator=r,this.scope.enter(es|ih|(o?Vn:0)|(n?tM:0)),this.prodParam.enter(Zp(i,e.generator)),this.parseFunctionParams(e,s);let l=this.parseFunctionBodyAndFinish(e,a,!0);return this.prodParam.exit(),this.scope.exit(),l}parseArrayLike(e,r,i,s){i&&this.expectPlugin("recordAndTuple");let n=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let a=this.startNode();return this.next(),a.elements=this.parseExprList(e,!i,s,a),this.state.inFSharpPipelineDirectBody=n,this.finishNode(a,i?"TupleExpression":"ArrayExpression")}parseArrowExpression(e,r,i,s){this.scope.enter(es|hb);let n=Zp(i,!1);!this.match(5)&&this.prodParam.hasIn&&(n|=so),this.prodParam.enter(n),this.initFunction(e,i);let a=this.state.maybeInArrowParameters;return r&&(this.state.maybeInArrowParameters=!0,this.setArrowFunctionParameters(e,r,s)),this.state.maybeInArrowParameters=!1,this.parseFunctionBody(e,!0),this.prodParam.exit(),this.scope.exit(),this.state.maybeInArrowParameters=a,this.finishNode(e,"ArrowFunctionExpression")}setArrowFunctionParameters(e,r,i){this.toAssignableList(r,i,!1),e.params=r}parseFunctionBodyAndFinish(e,r,i=!1){return this.parseFunctionBody(e,!1,i),this.finishNode(e,r)}parseFunctionBody(e,r,i=!1){let s=r&&!this.match(5);if(this.expressionScope.enter(hM()),s)e.body=this.parseMaybeAssign(),this.checkParams(e,!1,r,!1);else{let n=this.state.strict,a=this.state.labels;this.state.labels=[],this.prodParam.enter(this.prodParam.currentFlags()|mM),e.body=this.parseBlock(!0,!1,o=>{let l=!this.isSimpleParamList(e.params);o&&l&&this.raise(D.IllegalLanguageModeDirective,{at:(e.kind==="method"||e.kind==="constructor")&&e.key?e.key.loc.end:e});let u=!n&&this.state.strict;this.checkParams(e,!this.state.strict&&!r&&!i&&!l,r,u),this.state.strict&&e.id&&this.checkIdentifier(e.id,PTe,u)}),this.prodParam.exit(),this.state.labels=a}this.expressionScope.exit()}isSimpleParameter(e){return e.type==="Identifier"}isSimpleParamList(e){for(let r=0,i=e.length;r<i;r++)if(!this.isSimpleParameter(e[r]))return!1;return!0}checkParams(e,r,i,s=!0){let n=!r&&new Set,a={type:"FormalParameters"};for(let o of e.params)this.checkLVal(o,{in:a,binding:ah,checkClashes:n,strictModeChanged:s})}parseExprList(e,r,i,s){let n=[],a=!0;for(;!this.eat(e);){if(a)a=!1;else if(this.expect(12),this.match(e)){s&&this.addTrailingCommaExtraToNode(s),this.next();break}n.push(this.parseExprListItem(r,i))}return n}parseExprListItem(e,r,i){let s;if(this.match(12))e||this.raise(D.UnexpectedToken,{at:this.state.curPosition(),unexpected:","}),s=null;else if(this.match(21)){let n=this.state.startLoc;s=this.parseParenItem(this.parseSpread(r),n)}else if(this.match(17)){this.expectPlugin("partialApplication"),i||this.raise(D.UnexpectedArgumentPlaceholder,{at:this.state.startLoc});let n=this.startNode();this.next(),s=this.finishNode(n,"ArgumentPlaceholder")}else s=this.parseMaybeAssignAllowIn(r,this.parseParenItem);return s}parseIdentifier(e){let r=this.startNode(),i=this.parseIdentifierName(e);return this.createIdentifier(r,i)}createIdentifier(e,r){return e.name=r,e.loc.identifierName=r,this.finishNode(e,"Identifier")}parseIdentifierName(e){let r,{startLoc:i,type:s}=this.state;ri(s)?r=this.state.value:this.unexpected();let n=eTe(s);return e?n&&this.replaceToken(130):this.checkReservedWord(r,i,n,!1),this.next(),r}checkReservedWord(e,r,i,s){if(e.length>10||!TTe(e))return;if(i&&yTe(e)){this.raise(D.UnexpectedKeyword,{at:r,keyword:e});return}if((this.state.strict?s?ZR:JR:zR)(e,this.inModule)){this.raise(D.UnexpectedReservedWord,{at:r,reservedWord:e});return}else if(e==="yield"){if(this.prodParam.hasYield){this.raise(D.YieldBindingIdentifier,{at:r});return}}else if(e==="await"){if(this.prodParam.hasAwait){this.raise(D.AwaitBindingIdentifier,{at:r});return}if(this.scope.inStaticBlock){this.raise(D.AwaitBindingIdentifierInStaticBlock,{at:r});return}this.expressionScope.recordAsyncArrowParametersError({at:r})}else if(e==="arguments"&&this.scope.inClassAndNotInNonArrowFunction){this.raise(D.ArgumentsInClass,{at:r});return}}isAwaitAllowed(){return!!(this.prodParam.hasAwait||this.options.allowAwaitOutsideFunction&&!this.scope.inFunction)}parseAwait(e){let r=this.startNodeAt(e);return this.expressionScope.recordParameterInitializerError(D.AwaitExpressionFormalParameter,{at:r}),this.eat(55)&&this.raise(D.ObsoleteAwaitStar,{at:r}),!this.scope.inFunction&&!this.options.allowAwaitOutsideFunction&&(this.isAmbiguousAwait()?this.ambiguousScriptDifferentAst=!0:this.sawUnambiguousESM=!0),this.state.soloAwait||(r.argument=this.parseMaybeUnary(null,!0)),this.finishNode(r,"AwaitExpression")}isAmbiguousAwait(){if(this.hasPrecedingLineBreak())return!0;let{type:e}=this.state;return e===53||e===10||e===0||rh(e)||e===101&&!this.state.containsEsc||e===135||e===56||this.hasPlugin("v8intrinsic")&&e===54}parseYield(){let e=this.startNode();this.expressionScope.recordParameterInitializerError(D.YieldInParameter,{at:e}),this.next();let r=!1,i=null;if(!this.hasPrecedingLineBreak())switch(r=this.eat(55),this.state.type){case 13:case 137:case 8:case 11:case 3:case 9:case 14:case 12:if(!r)break;default:i=this.parseMaybeAssign()}return e.delegate=r,e.argument=i,this.finishNode(e,"YieldExpression")}checkPipelineAtInfixOperator(e,r){this.hasPlugin(["pipelineOperator",{proposal:"smart"}])&&e.type==="SequenceExpression"&&this.raise(D.PipelineHeadSequenceExpression,{at:r})}parseSmartPipelineBodyInStyle(e,r){if(this.isSimpleReference(e)){let i=this.startNodeAt(r);return i.callee=e,this.finishNode(i,"PipelineBareFunction")}else{let i=this.startNodeAt(r);return this.checkSmartPipeTopicBodyEarlyErrors(r),i.expression=e,this.finishNode(i,"PipelineTopicExpression")}}isSimpleReference(e){switch(e.type){case"MemberExpression":return!e.computed&&this.isSimpleReference(e.object);case"Identifier":return!0;default:return!1}}checkSmartPipeTopicBodyEarlyErrors(e){if(this.match(19))throw this.raise(D.PipelineBodyNoArrow,{at:this.state.startLoc});this.topicReferenceWasUsedInCurrentContext()||this.raise(D.PipelineTopicUnused,{at:e})}withTopicBindingContext(e){let r=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:1,maxTopicIndex:null};try{return e()}finally{this.state.topicContext=r}}withSmartMixTopicForbiddingContext(e){if(this.hasPlugin(["pipelineOperator",{proposal:"smart"}])){let r=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null};try{return e()}finally{this.state.topicContext=r}}else return e()}withSoloAwaitPermittingContext(e){let r=this.state.soloAwait;this.state.soloAwait=!0;try{return e()}finally{this.state.soloAwait=r}}allowInAnd(e){let r=this.prodParam.currentFlags();if(so&~r){this.prodParam.enter(r|so);try{return e()}finally{this.prodParam.exit()}}return e()}disallowInAnd(e){let r=this.prodParam.currentFlags();if(so&r){this.prodParam.enter(r&~so);try{return e()}finally{this.prodParam.exit()}}return e()}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(e){let r=this.state.startLoc;this.state.potentialArrowAt=this.state.start;let i=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!0;let s=this.parseExprOp(this.parseMaybeUnaryOrPrivate(),r,e);return this.state.inFSharpPipelineDirectBody=i,s}parseModuleExpression(){this.expectPlugin("moduleBlocks");let e=this.startNode();this.next(),this.match(5)||this.unexpected(null,5);let r=this.startNodeAt(this.state.endLoc);this.next();let i=this.initializeScopes(!0);this.enterInitialScopes();try{e.body=this.parseProgram(r,8,"module")}finally{i()}return this.finishNode(e,"ModuleExpression")}parsePropertyNamePrefixOperator(e){}},DE={kind:"loop"},hEe={kind:"switch"},dEe=/[\uD800-\uDFFF]/u,LE=/in(?:stanceof)?/y;function mEe(t,e){for(let r=0;r<t.length;r++){let i=t[r],{type:s}=i;if(typeof s=="number"){{if(s===136){let{loc:n,start:a,value:o,end:l}=i,u=a+1,f=Qt(n.start,1);t.splice(r,1,new bi({type:zi(27),value:"#",start:a,end:u,startLoc:n.start,endLoc:f}),new bi({type:zi(130),value:o,start:u,end:l,startLoc:f,endLoc:n.end})),r++;continue}if(rh(s)){let{loc:n,start:a,value:o,end:l}=i,u=a+1,f=Qt(n.start,1),p;e.charCodeAt(a)===96?p=new bi({type:zi(22),value:"`",start:a,end:u,startLoc:n.start,endLoc:f}):p=new bi({type:zi(8),value:"}",start:a,end:u,startLoc:n.start,endLoc:f});let h,d,T,b;s===24?(d=l-1,T=Qt(n.end,-1),h=o===null?null:o.slice(1,-1),b=new bi({type:zi(22),value:"`",start:d,end:l,startLoc:T,endLoc:n.end})):(d=l-2,T=Qt(n.end,-2),h=o===null?null:o.slice(1,-2),b=new bi({type:zi(23),value:"${",start:d,end:l,startLoc:T,endLoc:n.end})),t.splice(r,1,p,new bi({type:zi(20),value:h,start:u,end:d,startLoc:f,endLoc:T}),b),r+=2;continue}}i.type=zi(s)}}return t}var ib=class extends rb{parseTopLevel(e,r){return e.program=this.parseProgram(r),e.comments=this.state.comments,this.options.tokens&&(e.tokens=mEe(this.tokens,this.input)),this.finishNode(e,"File")}parseProgram(e,r=137,i=this.options.sourceType){if(e.sourceType=i,e.interpreter=this.parseInterpreterDirective(),this.parseBlockBody(e,!0,!0,r),this.inModule&&!this.options.allowUndeclaredExports&&this.scope.undefinedExports.size>0)for(let[n,a]of Array.from(this.scope.undefinedExports))this.raise(D.ModuleExportUndefined,{at:a,localName:n});let s;return r===137?s=this.finishNode(e,"Program"):s=this.finishNodeAt(e,"Program",Qt(this.state.startLoc,-1)),s}stmtToDirective(e){let r=e;r.type="Directive",r.value=r.expression,delete r.expression;let i=r.value,s=i.value,n=this.input.slice(i.start,i.end),a=i.value=n.slice(1,-1);return this.addExtra(i,"raw",n),this.addExtra(i,"rawValue",a),this.addExtra(i,"expressionValue",s),i.type="DirectiveLiteral",r}parseInterpreterDirective(){if(!this.match(28))return null;let e=this.startNode();return e.value=this.state.value,this.next(),this.finishNode(e,"InterpreterDirective")}isLet(){return this.isContextual(99)?this.hasFollowingBindingAtom():!1}chStartsBindingIdentifier(e,r){if(Qi(e)){if(LE.lastIndex=r,LE.test(this.input)){let i=this.codePointAtPos(LE.lastIndex);if(!lo(i)&&i!==92)return!1}return!0}else return e===92}chStartsBindingPattern(e){return e===91||e===123}hasFollowingBindingAtom(){let e=this.nextTokenStart(),r=this.codePointAtPos(e);return this.chStartsBindingPattern(r)||this.chStartsBindingIdentifier(r,e)}hasInLineFollowingBindingIdentifier(){let e=this.nextTokenInLineStart(),r=this.codePointAtPos(e);return this.chStartsBindingIdentifier(r,e)}startsUsingForOf(){let{type:e,containsEsc:r}=this.lookahead();if(e===101&&!r)return!1;if(Ve(e)&&!this.hasFollowingLineBreak())return this.expectPlugin("explicitResourceManagement"),!0}startsAwaitUsing(){let e=this.nextTokenInLineStart();if(this.isUnparsedContextual(e,"using")){e=this.nextTokenInLineStartSince(e+5);let r=this.codePointAtPos(e);if(this.chStartsBindingIdentifier(r,e))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(e=!1){let r=0;return this.options.annexB&&!this.state.strict&&(r|=4,e&&(r|=8)),this.parseStatementLike(r)}parseStatement(){return this.parseStatementLike(0)}parseStatementLike(e){let r=null;return this.match(26)&&(r=this.parseDecorators(!0)),this.parseStatementContent(e,r)}parseStatementContent(e,r){let i=this.state.type,s=this.startNode(),n=!!(e&2),a=!!(e&4),o=e&1;switch(i){case 60:return this.parseBreakContinueStatement(s,!0);case 63:return this.parseBreakContinueStatement(s,!1);case 64:return this.parseDebuggerStatement(s);case 90:return this.parseDoWhileStatement(s);case 91:return this.parseForStatement(s);case 68:if(this.lookaheadCharCode()===46)break;return a||this.raise(this.state.strict?D.StrictFunction:this.options.annexB?D.SloppyFunctionAnnexB:D.SloppyFunction,{at:this.state.startLoc}),this.parseFunctionStatement(s,!1,!n&&a);case 80:return n||this.unexpected(),this.parseClass(this.maybeTakeDecorators(r,s),!0);case 69:return this.parseIfStatement(s);case 70:return this.parseReturnStatement(s);case 71:return this.parseSwitchStatement(s);case 72:return this.parseThrowStatement(s);case 73:return this.parseTryStatement(s);case 96:if(!this.state.containsEsc&&this.startsAwaitUsing())return this.isAwaitAllowed()?n||this.raise(D.UnexpectedLexicalDeclaration,{at:s}):this.raise(D.AwaitUsingNotInAsyncContext,{at:s}),this.next(),this.parseVarStatement(s,"await using");break;case 105:if(this.state.containsEsc||!this.hasInLineFollowingBindingIdentifier())break;return this.expectPlugin("explicitResourceManagement"),!this.scope.inModule&&this.scope.inTopLevel?this.raise(D.UnexpectedUsingDeclaration,{at:this.state.startLoc}):n||this.raise(D.UnexpectedLexicalDeclaration,{at:this.state.startLoc}),this.parseVarStatement(s,"using");case 99:{if(this.state.containsEsc)break;let f=this.nextTokenStart(),p=this.codePointAtPos(f);if(p!==91&&(!n&&this.hasFollowingLineBreak()||!this.chStartsBindingIdentifier(p,f)&&p!==123))break}case 75:n||this.raise(D.UnexpectedLexicalDeclaration,{at:this.state.startLoc});case 74:{let f=this.state.value;return this.parseVarStatement(s,f)}case 92:return this.parseWhileStatement(s);case 76:return this.parseWithStatement(s);case 5:return this.parseBlock();case 13:return this.parseEmptyStatement(s);case 83:{let f=this.lookaheadCharCode();if(f===40||f===46)break}case 82:{!this.options.allowImportExportEverywhere&&!o&&this.raise(D.UnexpectedImportExport,{at:this.state.startLoc}),this.next();let f;return i===83?(f=this.parseImport(s),f.type==="ImportDeclaration"&&(!f.importKind||f.importKind==="value")&&(this.sawUnambiguousESM=!0)):(f=this.parseExport(s,r),(f.type==="ExportNamedDeclaration"&&(!f.exportKind||f.exportKind==="value")||f.type==="ExportAllDeclaration"&&(!f.exportKind||f.exportKind==="value")||f.type==="ExportDefaultDeclaration")&&(this.sawUnambiguousESM=!0)),this.assertModuleNodeAllowed(f),f}default:if(this.isAsyncFunction())return n||this.raise(D.AsyncFunctionInSingleStatementContext,{at:this.state.startLoc}),this.next(),this.parseFunctionStatement(s,!0,!n&&a)}let l=this.state.value,u=this.parseExpression();return Ve(i)&&u.type==="Identifier"&&this.eat(14)?this.parseLabeledStatement(s,l,u,e):this.parseExpressionStatement(s,u,r)}assertModuleNodeAllowed(e){!this.options.allowImportExportEverywhere&&!this.inModule&&this.raise(D.ImportOutsideModule,{at:e})}decoratorsEnabledBeforeExport(){return this.hasPlugin("decorators-legacy")?!0:this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")!==!1}maybeTakeDecorators(e,r,i){return e&&(r.decorators&&r.decorators.length>0?(typeof this.getPluginOption("decorators","decoratorsBeforeExport")!="boolean"&&this.raise(D.DecoratorsBeforeAfterExport,{at:r.decorators[0]}),r.decorators.unshift(...e)):r.decorators=e,this.resetStartLocationFromNode(r,e[0]),i&&this.resetStartLocationFromNode(i,r)),r}canHaveLeadingDecorator(){return this.match(80)}parseDecorators(e){let r=[];do r.push(this.parseDecorator());while(this.match(26));if(this.match(82))e||this.unexpected(),this.decoratorsEnabledBeforeExport()||this.raise(D.DecoratorExportClass,{at:this.state.startLoc});else if(!this.canHaveLeadingDecorator())throw this.raise(D.UnexpectedLeadingDecorator,{at:this.state.startLoc});return r}parseDecorator(){this.expectOnePlugin(["decorators","decorators-legacy"]);let e=this.startNode();if(this.next(),this.hasPlugin("decorators")){let r=this.state.startLoc,i;if(this.match(10)){let s=this.state.startLoc;this.next(),i=this.parseExpression(),this.expect(11),i=this.wrapParenthesis(s,i);let n=this.state.startLoc;e.expression=this.parseMaybeDecoratorArguments(i),this.getPluginOption("decorators","allowCallParenthesized")===!1&&e.expression!==i&&this.raise(D.DecoratorArgumentsOutsideParentheses,{at:n})}else{for(i=this.parseIdentifier(!1);this.eat(16);){let s=this.startNodeAt(r);s.object=i,this.match(136)?(this.classScope.usePrivateName(this.state.value,this.state.startLoc),s.property=this.parsePrivateName()):s.property=this.parseIdentifier(!0),s.computed=!1,i=this.finishNode(s,"MemberExpression")}e.expression=this.parseMaybeDecoratorArguments(i)}}else e.expression=this.parseExprSubscripts();return this.finishNode(e,"Decorator")}parseMaybeDecoratorArguments(e){if(this.eat(10)){let r=this.startNodeAtNode(e);return r.callee=e,r.arguments=this.parseCallExpressionArguments(11,!1),this.toReferencedList(r.arguments),this.finishNode(r,"CallExpression")}return e}parseBreakContinueStatement(e,r){return this.next(),this.isLineTerminator()?e.label=null:(e.label=this.parseIdentifier(),this.semicolon()),this.verifyBreakContinue(e,r),this.finishNode(e,r?"BreakStatement":"ContinueStatement")}verifyBreakContinue(e,r){let i;for(i=0;i<this.state.labels.length;++i){let s=this.state.labels[i];if((e.label==null||s.name===e.label.name)&&(s.kind!=null&&(r||s.kind==="loop")||e.label&&r))break}if(i===this.state.labels.length){let s=r?"BreakStatement":"ContinueStatement";this.raise(D.IllegalBreakContinue,{at:e,type:s})}}parseDebuggerStatement(e){return this.next(),this.semicolon(),this.finishNode(e,"DebuggerStatement")}parseHeaderExpression(){this.expect(10);let e=this.parseExpression();return this.expect(11),e}parseDoWhileStatement(e){return this.next(),this.state.labels.push(DE),e.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.state.labels.pop(),this.expect(92),e.test=this.parseHeaderExpression(),this.eat(13),this.finishNode(e,"DoWhileStatement")}parseForStatement(e){this.next(),this.state.labels.push(DE);let r=null;if(this.isAwaitAllowed()&&this.eatContextual(96)&&(r=this.state.lastTokStartLoc),this.scope.enter(no),this.expect(10),this.match(13))return r!==null&&this.unexpected(r),this.parseFor(e,null);let i=this.isContextual(99);{let l=this.isContextual(96)&&this.startsAwaitUsing(),u=l||this.isContextual(105)&&this.startsUsingForOf(),f=i&&this.hasFollowingBindingAtom()||u;if(this.match(74)||this.match(75)||f){let p=this.startNode(),h;l?(h="await using",this.isAwaitAllowed()||this.raise(D.AwaitUsingNotInAsyncContext,{at:this.state.startLoc}),this.next()):h=this.state.value,this.next(),this.parseVar(p,!0,h);let d=this.finishNode(p,"VariableDeclaration"),T=this.match(58);return T&&u&&this.raise(D.ForInUsing,{at:d}),(T||this.isContextual(101))&&d.declarations.length===1?this.parseForIn(e,d,r):(r!==null&&this.unexpected(r),this.parseFor(e,d))}}let s=this.isContextual(95),n=new po,a=this.parseExpression(!0,n),o=this.isContextual(101);if(o&&(i&&this.raise(D.ForOfLet,{at:a}),r===null&&s&&a.type==="Identifier"&&this.raise(D.ForOfAsync,{at:a})),o||this.match(58)){this.checkDestructuringPrivate(n),this.toAssignable(a,!0);let l=o?"ForOfStatement":"ForInStatement";return this.checkLVal(a,{in:{type:l}}),this.parseForIn(e,a,r)}else this.checkExpressionErrors(n,!0);return r!==null&&this.unexpected(r),this.parseFor(e,a)}parseFunctionStatement(e,r,i){return this.next(),this.parseFunction(e,1|(i?2:0)|(r?8:0))}parseIfStatement(e){return this.next(),e.test=this.parseHeaderExpression(),e.consequent=this.parseStatementOrSloppyAnnexBFunctionDeclaration(),e.alternate=this.eat(66)?this.parseStatementOrSloppyAnnexBFunctionDeclaration():null,this.finishNode(e,"IfStatement")}parseReturnStatement(e){return!this.prodParam.hasReturn&&!this.options.allowReturnOutsideFunction&&this.raise(D.IllegalReturn,{at:this.state.startLoc}),this.next(),this.isLineTerminator()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")}parseSwitchStatement(e){this.next(),e.discriminant=this.parseHeaderExpression();let r=e.cases=[];this.expect(5),this.state.labels.push(hEe),this.scope.enter(no);let i;for(let s;!this.match(8);)if(this.match(61)||this.match(65)){let n=this.match(61);i&&this.finishNode(i,"SwitchCase"),r.push(i=this.startNode()),i.consequent=[],this.next(),n?i.test=this.parseExpression():(s&&this.raise(D.MultipleDefaultsInSwitch,{at:this.state.lastTokStartLoc}),s=!0,i.test=null),this.expect(14)}else i?i.consequent.push(this.parseStatementListItem()):this.unexpected();return this.scope.exit(),i&&this.finishNode(i,"SwitchCase"),this.next(),this.state.labels.pop(),this.finishNode(e,"SwitchStatement")}parseThrowStatement(e){return this.next(),this.hasPrecedingLineBreak()&&this.raise(D.NewlineAfterThrow,{at:this.state.lastTokEndLoc}),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement")}parseCatchClauseParam(){let e=this.parseBindingAtom();return this.scope.enter(this.options.annexB&&e.type==="Identifier"?eM:0),this.checkLVal(e,{in:{type:"CatchClause"},binding:ETe}),e}parseTryStatement(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.match(62)){let r=this.startNode();this.next(),this.match(10)?(this.expect(10),r.param=this.parseCatchClauseParam(),this.expect(11)):(r.param=null,this.scope.enter(no)),r.body=this.withSmartMixTopicForbiddingContext(()=>this.parseBlock(!1,!1)),this.scope.exit(),e.handler=this.finishNode(r,"CatchClause")}return e.finalizer=this.eat(67)?this.parseBlock():null,!e.handler&&!e.finalizer&&this.raise(D.NoCatchOrFinally,{at:e}),this.finishNode(e,"TryStatement")}parseVarStatement(e,r,i=!1){return this.next(),this.parseVar(e,!1,r,i),this.semicolon(),this.finishNode(e,"VariableDeclaration")}parseWhileStatement(e){return this.next(),e.test=this.parseHeaderExpression(),this.state.labels.push(DE),e.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.state.labels.pop(),this.finishNode(e,"WhileStatement")}parseWithStatement(e){return this.state.strict&&this.raise(D.StrictWith,{at:this.state.startLoc}),this.next(),e.object=this.parseHeaderExpression(),e.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.finishNode(e,"WithStatement")}parseEmptyStatement(e){return this.next(),this.finishNode(e,"EmptyStatement")}parseLabeledStatement(e,r,i,s){for(let a of this.state.labels)a.name===r&&this.raise(D.LabelRedeclaration,{at:i,labelName:r});let n=iTe(this.state.type)?"loop":this.match(71)?"switch":null;for(let a=this.state.labels.length-1;a>=0;a--){let o=this.state.labels[a];if(o.statementStart===e.start)o.statementStart=this.state.start,o.kind=n;else break}return this.state.labels.push({name:r,kind:n,statementStart:this.state.start}),e.body=s&8?this.parseStatementOrSloppyAnnexBFunctionDeclaration(!0):this.parseStatement(),this.state.labels.pop(),e.label=i,this.finishNode(e,"LabeledStatement")}parseExpressionStatement(e,r,i){return e.expression=r,this.semicolon(),this.finishNode(e,"ExpressionStatement")}parseBlock(e=!1,r=!0,i){let s=this.startNode();return e&&this.state.strictErrors.clear(),this.expect(5),r&&this.scope.enter(no),this.parseBlockBody(s,e,!1,8,i),r&&this.scope.exit(),this.finishNode(s,"BlockStatement")}isValidDirective(e){return e.type==="ExpressionStatement"&&e.expression.type==="StringLiteral"&&!e.expression.extra.parenthesized}parseBlockBody(e,r,i,s,n){let a=e.body=[],o=e.directives=[];this.parseBlockOrModuleBlockBody(a,r?o:void 0,i,s,n)}parseBlockOrModuleBlockBody(e,r,i,s,n){let a=this.state.strict,o=!1,l=!1;for(;!this.match(s);){let u=i?this.parseModuleItem():this.parseStatementListItem();if(r&&!l){if(this.isValidDirective(u)){let f=this.stmtToDirective(u);r.push(f),!o&&f.value.value==="use strict"&&(o=!0,this.setStrict(!0));continue}l=!0,this.state.strictErrors.clear()}e.push(u)}n&&n.call(this,o),a||this.setStrict(!1),this.next()}parseFor(e,r){return e.init=r,this.semicolon(!1),e.test=this.match(13)?null:this.parseExpression(),this.semicolon(!1),e.update=this.match(11)?null:this.parseExpression(),this.expect(11),e.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.scope.exit(),this.state.labels.pop(),this.finishNode(e,"ForStatement")}parseForIn(e,r,i){let s=this.match(58);return this.next(),s?i!==null&&this.unexpected(i):e.await=i!==null,r.type==="VariableDeclaration"&&r.declarations[0].init!=null&&(!s||!this.options.annexB||this.state.strict||r.kind!=="var"||r.declarations[0].id.type!=="Identifier")&&this.raise(D.ForInOfLoopInitializer,{at:r,type:s?"ForInStatement":"ForOfStatement"}),r.type==="AssignmentPattern"&&this.raise(D.InvalidLhs,{at:r,ancestor:{type:"ForStatement"}}),e.left=r,e.right=s?this.parseExpression():this.parseMaybeAssignAllowIn(),this.expect(11),e.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.scope.exit(),this.state.labels.pop(),this.finishNode(e,s?"ForInStatement":"ForOfStatement")}parseVar(e,r,i,s=!1){let n=e.declarations=[];for(e.kind=i;;){let a=this.startNode();if(this.parseVarId(a,i),a.init=this.eat(29)?r?this.parseMaybeAssignDisallowIn():this.parseMaybeAssignAllowIn():null,a.init===null&&!s&&(a.id.type!=="Identifier"&&!(r&&(this.match(58)||this.isContextual(101)))?this.raise(D.DeclarationMissingInitializer,{at:this.state.lastTokEndLoc,kind:"destructuring"}):i==="const"&&!(this.match(58)||this.isContextual(101))&&this.raise(D.DeclarationMissingInitializer,{at:this.state.lastTokEndLoc,kind:"const"})),n.push(this.finishNode(a,"VariableDeclarator")),!this.eat(12))break}return e}parseVarId(e,r){let i=this.parseBindingAtom();this.checkLVal(i,{in:{type:"VariableDeclarator"},binding:r==="var"?ah:co}),e.id=i}parseAsyncFunctionExpression(e){return this.parseFunction(e,8)}parseFunction(e,r=0){let i=r&2,s=!!(r&1),n=s&&!(r&4),a=!!(r&8);this.initFunction(e,a),this.match(55)&&(i&&this.raise(D.GeneratorInSingleStatementContext,{at:this.state.startLoc}),this.next(),e.generator=!0),s&&(e.id=this.parseFunctionId(n));let o=this.state.maybeInArrowParameters;return this.state.maybeInArrowParameters=!1,this.scope.enter(es),this.prodParam.enter(Zp(a,e.generator)),s||(e.id=this.parseFunctionId()),this.parseFunctionParams(e,!1),this.withSmartMixTopicForbiddingContext(()=>{this.parseFunctionBodyAndFinish(e,s?"FunctionDeclaration":"FunctionExpression")}),this.prodParam.exit(),this.scope.exit(),s&&!i&&this.registerFunctionStatementId(e),this.state.maybeInArrowParameters=o,e}parseFunctionId(e){return e||Ve(this.state.type)?this.parseIdentifier():null}parseFunctionParams(e,r){this.expect(10),this.expressionScope.enter(qTe()),e.params=this.parseBindingList(11,41,2|(r?4:0)),this.expressionScope.exit()}registerFunctionStatementId(e){e.id&&this.scope.declareName(e.id.name,!this.options.annexB||this.state.strict||e.generator||e.async?this.scope.treatFunctionsAsVar?ah:co:nM,e.id.loc.start)}parseClass(e,r,i){this.next();let s=this.state.strict;return this.state.strict=!0,this.parseClassId(e,r,i),this.parseClassSuper(e),e.body=this.parseClassBody(!!e.superClass,s),this.finishNode(e,r?"ClassDeclaration":"ClassExpression")}isClassProperty(){return this.match(29)||this.match(13)||this.match(8)}isClassMethod(){return this.match(10)}isNonstaticConstructor(e){return!e.computed&&!e.static&&(e.key.name==="constructor"||e.key.value==="constructor")}parseClassBody(e,r){this.classScope.enter();let i={hadConstructor:!1,hadSuperClass:e},s=[],n=this.startNode();if(n.body=[],this.expect(5),this.withSmartMixTopicForbiddingContext(()=>{for(;!this.match(8);){if(this.eat(13)){if(s.length>0)throw this.raise(D.DecoratorSemicolon,{at:this.state.lastTokEndLoc});continue}if(this.match(26)){s.push(this.parseDecorator());continue}let a=this.startNode();s.length&&(a.decorators=s,this.resetStartLocationFromNode(a,s[0]),s=[]),this.parseClassMember(n,a,i),a.kind==="constructor"&&a.decorators&&a.decorators.length>0&&this.raise(D.DecoratorConstructor,{at:a})}}),this.state.strict=r,this.next(),s.length)throw this.raise(D.TrailingDecorator,{at:this.state.startLoc});return this.classScope.exit(),this.finishNode(n,"ClassBody")}parseClassMemberFromModifier(e,r){let i=this.parseIdentifier(!0);if(this.isClassMethod()){let s=r;return s.kind="method",s.computed=!1,s.key=i,s.static=!1,this.pushClassMethod(e,s,!1,!1,!1,!1),!0}else if(this.isClassProperty()){let s=r;return s.computed=!1,s.key=i,s.static=!1,e.body.push(this.parseClassProperty(s)),!0}return this.resetPreviousNodeTrailingComments(i),!1}parseClassMember(e,r,i){let s=this.isContextual(104);if(s){if(this.parseClassMemberFromModifier(e,r))return;if(this.eat(5)){this.parseClassStaticBlock(e,r);return}}this.parseClassMemberWithIsStatic(e,r,i,s)}parseClassMemberWithIsStatic(e,r,i,s){let n=r,a=r,o=r,l=r,u=r,f=n,p=n;if(r.static=s,this.parsePropertyNamePrefixOperator(r),this.eat(55)){f.kind="method";let x=this.match(136);if(this.parseClassElementName(f),x){this.pushClassPrivateMethod(e,a,!0,!1);return}this.isNonstaticConstructor(n)&&this.raise(D.ConstructorIsGenerator,{at:n.key}),this.pushClassMethod(e,n,!0,!1,!1,!1);return}let h=Ve(this.state.type)&&!this.state.containsEsc,d=this.match(136),T=this.parseClassElementName(r),b=this.state.startLoc;if(this.parsePostMemberNameModifiers(p),this.isClassMethod()){if(f.kind="method",d){this.pushClassPrivateMethod(e,a,!1,!1);return}let x=this.isNonstaticConstructor(n),_=!1;x&&(n.kind="constructor",i.hadConstructor&&!this.hasPlugin("typescript")&&this.raise(D.DuplicateConstructor,{at:T}),x&&this.hasPlugin("typescript")&&r.override&&this.raise(D.OverrideOnConstructor,{at:T}),i.hadConstructor=!0,_=i.hadSuperClass),this.pushClassMethod(e,n,!1,!1,x,_)}else if(this.isClassProperty())d?this.pushClassPrivateProperty(e,l):this.pushClassProperty(e,o);else if(h&&T.name==="async"&&!this.isLineTerminator()){this.resetPreviousNodeTrailingComments(T);let x=this.eat(55);p.optional&&this.unexpected(b),f.kind="method";let _=this.match(136);this.parseClassElementName(f),this.parsePostMemberNameModifiers(p),_?this.pushClassPrivateMethod(e,a,x,!0):(this.isNonstaticConstructor(n)&&this.raise(D.ConstructorIsAsync,{at:n.key}),this.pushClassMethod(e,n,x,!0,!1,!1))}else if(h&&(T.name==="get"||T.name==="set")&&!(this.match(55)&&this.isLineTerminator())){this.resetPreviousNodeTrailingComments(T),f.kind=T.name;let x=this.match(136);this.parseClassElementName(n),x?this.pushClassPrivateMethod(e,a,!1,!1):(this.isNonstaticConstructor(n)&&this.raise(D.ConstructorIsAccessor,{at:n.key}),this.pushClassMethod(e,n,!1,!1,!1,!1)),this.checkGetterSetterParams(n)}else if(h&&T.name==="accessor"&&!this.isLineTerminator()){this.expectPlugin("decoratorAutoAccessors"),this.resetPreviousNodeTrailingComments(T);let x=this.match(136);this.parseClassElementName(o),this.pushClassAccessorProperty(e,u,x)}else this.isLineTerminator()?d?this.pushClassPrivateProperty(e,l):this.pushClassProperty(e,o):this.unexpected()}parseClassElementName(e){let{type:r,value:i}=this.state;if((r===130||r===131)&&e.static&&i==="prototype"&&this.raise(D.StaticPrototype,{at:this.state.startLoc}),r===136){i==="constructor"&&this.raise(D.ConstructorClassPrivateField,{at:this.state.startLoc});let s=this.parsePrivateName();return e.key=s,s}return this.parsePropertyName(e)}parseClassStaticBlock(e,r){var i;this.scope.enter(Vn|sh|ih);let s=this.state.labels;this.state.labels=[],this.prodParam.enter(fo);let n=r.body=[];this.parseBlockOrModuleBlockBody(n,void 0,!1,8),this.prodParam.exit(),this.scope.exit(),this.state.labels=s,e.body.push(this.finishNode(r,"StaticBlock")),(i=r.decorators)!=null&&i.length&&this.raise(D.DecoratorStaticBlock,{at:r})}pushClassProperty(e,r){!r.computed&&(r.key.name==="constructor"||r.key.value==="constructor")&&this.raise(D.ConstructorClassField,{at:r.key}),e.body.push(this.parseClassProperty(r))}pushClassPrivateProperty(e,r){let i=this.parseClassPrivateProperty(r);e.body.push(i),this.classScope.declarePrivateName(this.getPrivateNameSV(i.key),OE,i.key.loc.start)}pushClassAccessorProperty(e,r,i){if(!i&&!r.computed){let n=r.key;(n.name==="constructor"||n.value==="constructor")&&this.raise(D.ConstructorClassField,{at:n})}let s=this.parseClassAccessorProperty(r);e.body.push(s),i&&this.classScope.declarePrivateName(this.getPrivateNameSV(s.key),OE,s.key.loc.start)}pushClassMethod(e,r,i,s,n,a){e.body.push(this.parseMethod(r,i,s,n,a,"ClassMethod",!0))}pushClassPrivateMethod(e,r,i,s){let n=this.parseMethod(r,i,s,!1,!1,"ClassPrivateMethod",!0);e.body.push(n);let a=n.kind==="get"?n.static?_Te:ITe:n.kind==="set"?n.static?CTe:OTe:OE;this.declareClassPrivateMethodInScope(n,a)}declareClassPrivateMethodInScope(e,r){this.classScope.declarePrivateName(this.getPrivateNameSV(e.key),r,e.key.loc.start)}parsePostMemberNameModifiers(e){}parseClassPrivateProperty(e){return this.parseInitializer(e),this.semicolon(),this.finishNode(e,"ClassPrivateProperty")}parseClassProperty(e){return this.parseInitializer(e),this.semicolon(),this.finishNode(e,"ClassProperty")}parseClassAccessorProperty(e){return this.parseInitializer(e),this.semicolon(),this.finishNode(e,"ClassAccessorProperty")}parseInitializer(e){this.scope.enter(Vn|ih),this.expressionScope.enter(hM()),this.prodParam.enter(fo),e.value=this.eat(29)?this.parseMaybeAssignAllowIn():null,this.expressionScope.exit(),this.prodParam.exit(),this.scope.exit()}parseClassId(e,r,i,s=sM){if(Ve(this.state.type))e.id=this.parseIdentifier(),r&&this.declareNameFromIdentifier(e.id,s);else if(i||!r)e.id=null;else throw this.raise(D.MissingClassName,{at:this.state.startLoc})}parseClassSuper(e){e.superClass=this.eat(81)?this.parseExprSubscripts():null}parseExport(e,r){let i=this.parseMaybeImportPhase(e,!0),s=this.maybeParseExportDefaultSpecifier(e,i),n=!s||this.eat(12),a=n&&this.eatExportStar(e),o=a&&this.maybeParseExportNamespaceSpecifier(e),l=n&&(!o||this.eat(12)),u=s||a;if(a&&!o){if(s&&this.unexpected(),r)throw this.raise(D.UnsupportedDecoratorExport,{at:e});return this.parseExportFrom(e,!0),this.finishNode(e,"ExportAllDeclaration")}let f=this.maybeParseExportNamedSpecifiers(e);s&&n&&!a&&!f&&this.unexpected(null,5),o&&l&&this.unexpected(null,97);let p;if(u||f){if(p=!1,r)throw this.raise(D.UnsupportedDecoratorExport,{at:e});this.parseExportFrom(e,u)}else p=this.maybeParseExportDeclaration(e);if(u||f||p){var h;let d=e;if(this.checkExport(d,!0,!1,!!d.source),((h=d.declaration)==null?void 0:h.type)==="ClassDeclaration")this.maybeTakeDecorators(r,d.declaration,d);else if(r)throw this.raise(D.UnsupportedDecoratorExport,{at:e});return this.finishNode(d,"ExportNamedDeclaration")}if(this.eat(65)){let d=e,T=this.parseExportDefaultExpression();if(d.declaration=T,T.type==="ClassDeclaration")this.maybeTakeDecorators(r,T,d);else if(r)throw this.raise(D.UnsupportedDecoratorExport,{at:e});return this.checkExport(d,!0,!0),this.finishNode(d,"ExportDefaultDeclaration")}this.unexpected(null,5)}eatExportStar(e){return this.eat(55)}maybeParseExportDefaultSpecifier(e,r){if(r||this.isExportDefaultSpecifier()){this.expectPlugin("exportDefaultFrom",r==null?void 0:r.loc.start);let i=r||this.parseIdentifier(!0),s=this.startNodeAtNode(i);return s.exported=i,e.specifiers=[this.finishNode(s,"ExportDefaultSpecifier")],!0}return!1}maybeParseExportNamespaceSpecifier(e){if(this.isContextual(93)){e.specifiers||(e.specifiers=[]);let r=this.startNodeAt(this.state.lastTokStartLoc);return this.next(),r.exported=this.parseModuleExportName(),e.specifiers.push(this.finishNode(r,"ExportNamespaceSpecifier")),!0}return!1}maybeParseExportNamedSpecifiers(e){if(this.match(5)){e.specifiers||(e.specifiers=[]);let r=e.exportKind==="type";return e.specifiers.push(...this.parseExportSpecifiers(r)),e.source=null,e.declaration=null,this.hasPlugin("importAssertions")&&(e.assertions=[]),!0}return!1}maybeParseExportDeclaration(e){return this.shouldParseExportDeclaration()?(e.specifiers=[],e.source=null,this.hasPlugin("importAssertions")&&(e.assertions=[]),e.declaration=this.parseExportDeclaration(e),!0):!1}isAsyncFunction(){if(!this.isContextual(95))return!1;let e=this.nextTokenInLineStart();return this.isUnparsedContextual(e,"function")}parseExportDefaultExpression(){let e=this.startNode();if(this.match(68))return this.next(),this.parseFunction(e,5);if(this.isAsyncFunction())return this.next(),this.next(),this.parseFunction(e,13);if(this.match(80))return this.parseClass(e,!0,!0);if(this.match(26))return this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")===!0&&this.raise(D.DecoratorBeforeExport,{at:this.state.startLoc}),this.parseClass(this.maybeTakeDecorators(this.parseDecorators(!1),this.startNode()),!0,!0);if(this.match(75)||this.match(74)||this.isLet())throw this.raise(D.UnsupportedDefaultExport,{at:this.state.startLoc});let r=this.parseMaybeAssignAllowIn();return this.semicolon(),r}parseExportDeclaration(e){return this.match(80)?this.parseClass(this.startNode(),!0,!1):this.parseStatementListItem()}isExportDefaultSpecifier(){let{type:e}=this.state;if(Ve(e)){if(e===95&&!this.state.containsEsc||e===99)return!1;if((e===128||e===127)&&!this.state.containsEsc){let{type:s}=this.lookahead();if(Ve(s)&&s!==97||s===5)return this.expectOnePlugin(["flow","typescript"]),!1}}else if(!this.match(65))return!1;let r=this.nextTokenStart(),i=this.isUnparsedContextual(r,"from");if(this.input.charCodeAt(r)===44||Ve(this.state.type)&&i)return!0;if(this.match(65)&&i){let s=this.input.charCodeAt(this.nextTokenStartSince(r+4));return s===34||s===39}return!1}parseExportFrom(e,r){this.eatContextual(97)?(e.source=this.parseImportSource(),this.checkExport(e),this.maybeParseImportAttributes(e),this.checkJSONModuleImport(e)):r&&this.unexpected(),this.semicolon()}shouldParseExportDeclaration(){let{type:e}=this.state;return e===26&&(this.expectOnePlugin(["decorators","decorators-legacy"]),this.hasPlugin("decorators"))?(this.getPluginOption("decorators","decoratorsBeforeExport")===!0&&this.raise(D.DecoratorBeforeExport,{at:this.state.startLoc}),!0):e===74||e===75||e===68||e===80||this.isLet()||this.isAsyncFunction()}checkExport(e,r,i,s){if(r){if(i){if(this.checkDuplicateExports(e,"default"),this.hasPlugin("exportDefaultFrom")){var n;let a=e.declaration;a.type==="Identifier"&&a.name==="from"&&a.end-a.start===4&&!((n=a.extra)!=null&&n.parenthesized)&&this.raise(D.ExportDefaultFromAsIdentifier,{at:a})}}else if(e.specifiers&&e.specifiers.length)for(let a of e.specifiers){let{exported:o}=a,l=o.type==="Identifier"?o.name:o.value;if(this.checkDuplicateExports(a,l),!s&&a.local){let{local:u}=a;u.type!=="Identifier"?this.raise(D.ExportBindingIsString,{at:a,localName:u.value,exportName:l}):(this.checkReservedWord(u.name,u.loc.start,!0,!1),this.scope.checkLocalExport(u))}}else if(e.declaration){if(e.declaration.type==="FunctionDeclaration"||e.declaration.type==="ClassDeclaration"){let a=e.declaration.id;if(!a)throw new Error("Assertion failure");this.checkDuplicateExports(e,a.name)}else if(e.declaration.type==="VariableDeclaration")for(let a of e.declaration.declarations)this.checkDeclaration(a.id)}}}checkDeclaration(e){if(e.type==="Identifier")this.checkDuplicateExports(e,e.name);else if(e.type==="ObjectPattern")for(let r of e.properties)this.checkDeclaration(r);else if(e.type==="ArrayPattern")for(let r of e.elements)r&&this.checkDeclaration(r);else e.type==="ObjectProperty"?this.checkDeclaration(e.value):e.type==="RestElement"?this.checkDeclaration(e.argument):e.type==="AssignmentPattern"&&this.checkDeclaration(e.left)}checkDuplicateExports(e,r){this.exportedIdentifiers.has(r)&&(r==="default"?this.raise(D.DuplicateDefaultExport,{at:e}):this.raise(D.DuplicateExport,{at:e,exportName:r})),this.exportedIdentifiers.add(r)}parseExportSpecifiers(e){let r=[],i=!0;for(this.expect(5);!this.eat(8);){if(i)i=!1;else if(this.expect(12),this.eat(8))break;let s=this.isContextual(128),n=this.match(131),a=this.startNode();a.local=this.parseModuleExportName(),r.push(this.parseExportSpecifier(a,n,e,s))}return r}parseExportSpecifier(e,r,i,s){return this.eatContextual(93)?e.exported=this.parseModuleExportName():r?e.exported=KTe(e.local):e.exported||(e.exported=ts(e.local)),this.finishNode(e,"ExportSpecifier")}parseModuleExportName(){if(this.match(131)){let e=this.parseStringLiteral(this.state.value),r=e.value.match(dEe);return r&&this.raise(D.ModuleExportNameHasLoneSurrogate,{at:e,surrogateCharCode:r[0].charCodeAt(0)}),e}return this.parseIdentifier(!0)}isJSONModuleImport(e){return e.assertions!=null?e.assertions.some(({key:r,value:i})=>i.value==="json"&&(r.type==="Identifier"?r.name==="type":r.value==="type")):!1}checkImportReflection(e){if(e.module){var r;(e.specifiers.length!==1||e.specifiers[0].type!=="ImportDefaultSpecifier")&&this.raise(D.ImportReflectionNotBinding,{at:e.specifiers[0].loc.start}),((r=e.assertions)==null?void 0:r.length)>0&&this.raise(D.ImportReflectionHasAssertion,{at:e.specifiers[0].loc.start})}}checkJSONModuleImport(e){if(this.isJSONModuleImport(e)&&e.type!=="ExportAllDeclaration"){let{specifiers:r}=e;if(r!=null){let i=r.find(s=>{let n;if(s.type==="ExportSpecifier"?n=s.local:s.type==="ImportSpecifier"&&(n=s.imported),n!==void 0)return n.type==="Identifier"?n.name!=="default":n.value!=="default"});i!==void 0&&this.raise(D.ImportJSONBindingNotDefault,{at:i.loc.start})}}}isPotentialImportPhase(e){return!e&&this.isContextual(125)}applyImportPhase(e,r,i,s){r||(i==="module"?(this.expectPlugin("importReflection",s),e.module=!0):this.hasPlugin("importReflection")&&(e.module=!1))}parseMaybeImportPhase(e,r){if(!this.isPotentialImportPhase(r))return this.applyImportPhase(e,r,null),null;let i=this.parseIdentifier(!0),{type:s}=this.state;return(ri(s)?s!==97||this.lookaheadCharCode()===102:s!==12)?(this.resetPreviousIdentifierLeadingComments(i),this.applyImportPhase(e,r,i.name,i.loc.start),null):(this.applyImportPhase(e,r,null),i)}isPrecedingIdImportPhase(e){let{type:r}=this.state;return Ve(r)?r!==97||this.lookaheadCharCode()===102:r!==12}parseImport(e){return this.match(131)?this.parseImportSourceAndAttributes(e):this.parseImportSpecifiersAndAfter(e,this.parseMaybeImportPhase(e,!1))}parseImportSpecifiersAndAfter(e,r){e.specifiers=[];let s=!this.maybeParseDefaultImportSpecifier(e,r)||this.eat(12),n=s&&this.maybeParseStarImportSpecifier(e);return s&&!n&&this.parseNamedImportSpecifiers(e),this.expectContextual(97),this.parseImportSourceAndAttributes(e)}parseImportSourceAndAttributes(e){var r;return(r=e.specifiers)!=null||(e.specifiers=[]),e.source=this.parseImportSource(),this.maybeParseImportAttributes(e),this.checkImportReflection(e),this.checkJSONModuleImport(e),this.semicolon(),this.finishNode(e,"ImportDeclaration")}parseImportSource(){return this.match(131)||this.unexpected(),this.parseExprAtom()}parseImportSpecifierLocal(e,r,i){r.local=this.parseIdentifier(),e.specifiers.push(this.finishImportSpecifier(r,i))}finishImportSpecifier(e,r,i=co){return this.checkLVal(e.local,{in:{type:r},binding:i}),this.finishNode(e,r)}parseImportAttributes(){this.expect(5);let e=[],r=new Set;do{if(this.match(8))break;let i=this.startNode(),s=this.state.value;if(r.has(s)&&this.raise(D.ModuleAttributesWithDuplicateKeys,{at:this.state.startLoc,key:s}),r.add(s),this.match(131)?i.key=this.parseStringLiteral(s):i.key=this.parseIdentifier(!0),this.expect(14),!this.match(131))throw this.raise(D.ModuleAttributeInvalidValue,{at:this.state.startLoc});i.value=this.parseStringLiteral(this.state.value),e.push(this.finishNode(i,"ImportAttribute"))}while(this.eat(12));return this.expect(8),e}parseModuleAttributes(){let e=[],r=new Set;do{let i=this.startNode();if(i.key=this.parseIdentifier(!0),i.key.name!=="type"&&this.raise(D.ModuleAttributeDifferentFromType,{at:i.key}),r.has(i.key.name)&&this.raise(D.ModuleAttributesWithDuplicateKeys,{at:i.key,key:i.key.name}),r.add(i.key.name),this.expect(14),!this.match(131))throw this.raise(D.ModuleAttributeInvalidValue,{at:this.state.startLoc});i.value=this.parseStringLiteral(this.state.value),e.push(this.finishNode(i,"ImportAttribute"))}while(this.eat(12));return e}maybeParseImportAttributes(e){let r,i=!1;if(this.match(76)){if(this.hasPrecedingLineBreak()&&this.lookaheadCharCode()===40)return;this.next(),this.hasPlugin("moduleAttributes")?r=this.parseModuleAttributes():(this.expectImportAttributesPlugin(),r=this.parseImportAttributes()),i=!0}else if(this.isContextual(94)&&!this.hasPrecedingLineBreak())this.hasPlugin("importAttributes")?(this.getPluginOption("importAttributes","deprecatedAssertSyntax")!==!0&&this.raise(D.ImportAttributesUseAssert,{at:this.state.startLoc}),this.addExtra(e,"deprecatedAssertSyntax",!0)):this.expectOnePlugin(["importAttributes","importAssertions"]),this.next(),r=this.parseImportAttributes();else if(this.hasPlugin("importAttributes")||this.hasPlugin("importAssertions"))r=[];else if(this.hasPlugin("moduleAttributes"))r=[];else return;!i&&this.hasPlugin("importAssertions")?e.assertions=r:e.attributes=r}maybeParseDefaultImportSpecifier(e,r){if(r){let i=this.startNodeAtNode(r);return i.local=r,e.specifiers.push(this.finishImportSpecifier(i,"ImportDefaultSpecifier")),!0}else if(ri(this.state.type))return this.parseImportSpecifierLocal(e,this.startNode(),"ImportDefaultSpecifier"),!0;return!1}maybeParseStarImportSpecifier(e){if(this.match(55)){let r=this.startNode();return this.next(),this.expectContextual(93),this.parseImportSpecifierLocal(e,r,"ImportNamespaceSpecifier"),!0}return!1}parseNamedImportSpecifiers(e){let r=!0;for(this.expect(5);!this.eat(8);){if(r)r=!1;else{if(this.eat(14))throw this.raise(D.DestructureNamedImport,{at:this.state.startLoc});if(this.expect(12),this.eat(8))break}let i=this.startNode(),s=this.match(131),n=this.isContextual(128);i.imported=this.parseModuleExportName();let a=this.parseImportSpecifier(i,s,e.importKind==="type"||e.importKind==="typeof",n,void 0);e.specifiers.push(a)}}parseImportSpecifier(e,r,i,s,n){if(this.eatContextual(93))e.local=this.parseIdentifier();else{let{imported:a}=e;if(r)throw this.raise(D.ImportBindingIsString,{at:e,importName:a.value});this.checkReservedWord(a.name,e.loc.start,!0,!0),e.local||(e.local=ts(a))}return this.finishImportSpecifier(e,"ImportSpecifier",n)}isThisParam(e){return e.type==="Identifier"&&e.name==="this"}},uh=class extends ib{constructor(e,r){e=pEe(e),super(e,r),this.options=e,this.initializeScopes(),this.plugins=yEe(this.options.plugins),this.filename=e.sourceFilename}getScopeHandler(){return cu}parse(){this.enterInitialScopes();let e=this.startNode(),r=this.startNode();return this.nextToken(),e.errors=null,this.parseTopLevel(e,r),e.errors=this.state.errors,e}};function yEe(t){let e=new Map;for(let r of t){let[i,s]=Array.isArray(r)?r:[r,{}];e.has(i)||e.set(i,s||{})}return e}function gEe(t,e){var r;if(((r=e)==null?void 0:r.sourceType)==="unambiguous"){e=Object.assign({},e);try{e.sourceType="module";let i=nu(e,t),s=i.parse();if(i.sawUnambiguousESM)return s;if(i.ambiguousScriptDifferentAst)try{return e.sourceType="script",nu(e,t).parse()}catch{}else s.program.sourceType="script";return s}catch(i){try{return e.sourceType="script",nu(e,t).parse()}catch{}throw i}}else return nu(e,t).parse()}function SEe(t,e){let r=nu(e,t);return r.options.strictMode&&(r.state.strict=!0),r.getExpression()}function TEe(t){let e={};for(let r of Object.keys(t))e[r]=zi(t[r]);return e}var EEe=TEe(Z0e);function nu(t,e){let r=uh;return t!=null&&t.plugins&&(cEe(t.plugins),r=bEe(t.plugins)),new r(t,e)}var WR={};function bEe(t){let e=fEe.filter(s=>bt(t,s)),r=e.join("/"),i=WR[r];if(!i){i=uh;for(let s of e)i=TM[s](i);WR[r]=i}return i}hu.parse=gEe;hu.parseExpression=SEe;hu.tokTypes=EEe});var Tb=g(De=>{"use strict";c();Object.defineProperty(De,"__esModule",{value:!0});De.Var=De.User=De.Statement=De.SpreadProperty=De.Scope=De.RestProperty=De.ReferencedMemberExpression=De.ReferencedIdentifier=De.Referenced=De.Pure=De.NumericLiteralTypeAnnotation=De.Generated=De.ForAwaitStatement=De.Flow=De.Expression=De.ExistentialTypeParam=De.BlockScoped=De.BindingIdentifier=void 0;var xEe=["Identifier","JSXIdentifier"];De.ReferencedIdentifier=xEe;var PEe=["MemberExpression"];De.ReferencedMemberExpression=PEe;var vEe=["Identifier"];De.BindingIdentifier=vEe;var AEe=["Statement"];De.Statement=AEe;var wEe=["Expression"];De.Expression=wEe;var _Ee=["Scopable","Pattern"];De.Scope=_Ee;var CEe=null;De.Referenced=CEe;var IEe=null;De.BlockScoped=IEe;var OEe=["VariableDeclaration"];De.Var=OEe;var NEe=null;De.User=NEe;var DEe=null;De.Generated=DEe;var LEe=null;De.Pure=LEe;var kEe=["Flow","ImportDeclaration","ExportDeclaration","ImportSpecifier"];De.Flow=kEe;var REe=["RestElement"];De.RestProperty=REe;var MEe=["RestElement"];De.SpreadProperty=MEe;var FEe=["ExistsTypeAnnotation"];De.ExistentialTypeParam=FEe;var BEe=["NumberLiteralTypeAnnotation"];De.NumericLiteralTypeAnnotation=BEe;var jEe=["ForOfStatement"];De.ForAwaitStatement=jEe});var dh=g(du=>{"use strict";c();Object.defineProperty(du,"__esModule",{value:!0});du.explode=_M;du.merge=VEe;du.verify=CM;var wM=Tb(),qEe=ve(),{DEPRECATED_KEYS:EM,DEPRECATED_ALIASES:bM,FLIPPED_ALIAS_KEYS:xM,TYPES:UEe,__internal__deprecationWarning:PM}=qEe;function $Ee(t){return t in wM}function _M(t){if(t._exploded)return t;t._exploded=!0;for(let e of Object.keys(t)){if(go(e))continue;let r=e.split("|");if(r.length===1)continue;let i=t[e];delete t[e];for(let s of r)t[s]=i}CM(t),delete t.__esModule,HEe(t),AM(t);for(let e of Object.keys(t)){if(go(e)||!$Ee(e))continue;let r=t[e];for(let s of Object.keys(r))r[s]=WEe(e,r[s]);delete t[e];let i=wM[e];if(i!==null)for(let s of i)t[s]?hh(t[s],r):t[s]=r;else hh(t,r)}for(let e of Object.keys(t)){if(go(e))continue;let r=xM[e];if(e in EM){let s=EM[e];PM(e,s,"Visitor "),r=[s]}else if(e in bM){let s=bM[e];PM(e,s,"Visitor "),r=xM[s]}if(!r)continue;let i=t[e];delete t[e];for(let s of r){let n=t[s];n?hh(n,i):t[s]=Object.assign({},i)}}for(let e of Object.keys(t))go(e)||AM(t[e]);return t}function CM(t){if(!t._verified){if(typeof t=="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 e of Object.keys(t)){if((e==="enter"||e==="exit")&&vM(e,t[e]),go(e))continue;if(UEe.indexOf(e)<0)throw new Error(`You gave us a visitor for the node type ${e} but it's not a valid type`);let r=t[e];if(typeof r=="object")for(let i of Object.keys(r))if(i==="enter"||i==="exit")vM(`${e}.${i}`,r[i]);else throw new Error(`You passed \`traverse()\` a visitor object with the property ${e} that has the invalid property ${i}`)}t._verified=!0}}function vM(t,e){let r=[].concat(e);for(let i of r)if(typeof i!="function")throw new TypeError(`Non-function found defined in ${t} with type ${typeof i}`)}function VEe(t,e=[],r){let i={};for(let s=0;s<t.length;s++){let n=t[s],a=e[s];_M(n);for(let o of Object.keys(n)){let l=n[o];(a||r)&&(l=KEe(l,a,r));let u=i[o]||(i[o]={});hh(u,l)}}return i}function KEe(t,e,r){let i={};for(let s of Object.keys(t)){let n=t[s];Array.isArray(n)&&(n=n.map(function(a){let o=a;return e&&(o=function(l){return a.call(e,l,e)}),r&&(o=r(e.key,s,o)),o!==a&&(o.toString=()=>a.toString()),o}),i[s]=n)}return i}function HEe(t){for(let e of Object.keys(t)){if(go(e))continue;let r=t[e];typeof r=="function"&&(t[e]={enter:r})}}function AM(t){t.enter&&!Array.isArray(t.enter)&&(t.enter=[t.enter]),t.exit&&!Array.isArray(t.exit)&&(t.exit=[t.exit])}function WEe(t,e){let r=function(i){if(i[`is${t}`]())return e.apply(this,arguments)};return r.toString=()=>e.toString(),r}function go(t){return t[0]==="_"||t==="enter"||t==="exit"||t==="shouldSkip"||t==="denylist"||t==="noScope"||t==="skipKeys"||t==="blacklist"}function hh(t,e){for(let r of Object.keys(e))t[r]=[].concat(t[r]||[],e[r])}});var Wn=g(ii=>{"use strict";c();Object.defineProperty(ii,"__esModule",{value:!0});ii.clear=GEe;ii.clearPath=NM;ii.clearScope=DM;ii.scope=ii.path=void 0;var IM=new WeakMap;ii.path=IM;var OM=new WeakMap;ii.scope=OM;function GEe(){NM(),DM()}function NM(){ii.path=IM=new WeakMap}function DM(){ii.scope=OM=new WeakMap}});var RM=g(xb=>{"use strict";c();Object.defineProperty(xb,"__esModule",{value:!0});xb.default=JEe;var YEe=ve(),{cloneNode:Eb,exportNamedDeclaration:LM,exportSpecifier:kM,identifier:bb,variableDeclaration:XEe,variableDeclarator:zEe}=YEe;function JEe(t){if(!t.isExportDeclaration()||t.isExportAllDeclaration())throw new Error("Only default and named export declarations can be split.");if(t.isExportDefaultDeclaration()){let n=t.get("declaration"),a=n.isFunctionDeclaration()||n.isClassDeclaration(),o=n.isScope()?n.scope.parent:n.scope,l=n.node.id,u=!1;l||(u=!0,l=o.generateUidIdentifier("default"),(a||n.isFunctionExpression()||n.isClassExpression())&&(n.node.id=Eb(l)));let f=a?n.node:XEe("var",[zEe(Eb(l),n.node)]),p=LM(null,[kM(Eb(l),bb("default"))]);return t.insertAfter(p),t.replaceWith(f),u&&o.registerDeclaration(t),t}else if(t.get("specifiers").length>0)throw new Error("It doesn't make sense to split exported specifiers.");let e=t.get("declaration"),r=e.getOuterBindingIdentifiers(),i=Object.keys(r).map(n=>kM(bb(n),bb(n))),s=LM(null,i);return t.insertAfter(s),t.replaceWith(e.node),t}});var vb=g(So=>{"use strict";c();Object.defineProperty(So,"__esModule",{value:!0});So.default=void 0;So.requeueComputedKeyAndDecorators=Pb;So.skipAllButComputedKey=function(e){e.skip(),e.node.computed&&e.context.maybeQueue(e.get("key"))};function Pb(t){let{context:e,node:r}=t;if(r.computed&&e.maybeQueue(t.get("key")),r.decorators)for(let i of t.get("decorators"))e.maybeQueue(i)}var QEe={FunctionParent(t){t.isArrowFunctionExpression()||(t.skip(),t.isMethod()&&Pb(t))},Property(t){t.isObjectProperty()||(t.skip(),Pb(t))}},ZEe=QEe;So.default=ZEe});var MM=g(mh=>{"use strict";c();Object.defineProperty(mh,"__esModule",{value:!0});mh.default=void 0;var ebe=RM(),tbe=ve(),rbe=vb(),ibe=yh(),sbe=dh(),nbe={ReferencedIdentifier({node:t},e){t.name===e.oldName&&(t.name=e.newName)},Scope(t,e){t.scope.bindingIdentifierEquals(e.oldName,e.binding.identifier)||(t.skip(),t.isMethod()&&(0,rbe.requeueComputedKeyAndDecorators)(t))},ObjectProperty({node:t,scope:e},r){let{name:i}=t.key;if(t.shorthand&&(i===r.oldName||i===r.newName)&&e.getBindingIdentifier(i)===r.binding.identifier){var s;t.shorthand=!1,(s=t.extra)!=null&&s.shorthand&&(t.extra.shorthand=!1)}},"AssignmentExpression|Declaration|VariableDeclarator"(t,e){if(t.isVariableDeclaration())return;let r=t.getOuterBindingIdentifiers();for(let i in r)i===e.oldName&&(r[i].name=e.newName)}},Ab=class{constructor(e,r,i){this.newName=i,this.oldName=r,this.binding=e}maybeConvertFromExportDeclaration(e){let r=e.parentPath;if(r.isExportDeclaration()){if(r.isExportDefaultDeclaration()){let{declaration:i}=r.node;if(tbe.isDeclaration(i)&&!i.id)return}r.isExportAllDeclaration()||(0,ebe.default)(r)}}maybeConvertFromClassFunctionDeclaration(e){return e}maybeConvertFromClassFunctionExpression(e){return e}rename(){let{binding:e,oldName:r,newName:i}=this,{scope:s,path:n}=e,a=n.find(l=>l.isDeclaration()||l.isFunctionExpression()||l.isClassExpression());a&&a.getOuterBindingIdentifiers()[r]===e.identifier&&this.maybeConvertFromExportDeclaration(a);let o=arguments[0]||s.block;(0,ibe.traverseNode)(o,(0,sbe.explode)(nbe),s,this,s.path,{discriminant:!0}),arguments[0]||(s.removeOwnBinding(r),s.bindings[i]=e,this.binding.identifier.name=i),a&&(this.maybeConvertFromClassFunctionDeclaration(n),this.maybeConvertFromClassFunctionExpression(n))}};mh.default=Ab});var FM=g(gh=>{"use strict";c();Object.defineProperty(gh,"__esModule",{value:!0});gh.default=void 0;var wb=class{constructor({identifier:e,scope:r,path:i,kind:s}){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=e,this.scope=r,this.path=i,this.kind=s,(s==="var"||s==="hoisted")&&abe(i||(()=>{throw new Error("Internal Babel error: unreachable ")})())&&this.reassign(i),this.clearValue()}deoptValue(){this.clearValue(),this.hasDeoptedValue=!0}setValue(e){this.hasDeoptedValue||(this.hasValue=!0,this.value=e)}clearValue(){this.hasDeoptedValue=!1,this.hasValue=!1,this.value=null}reassign(e){this.constant=!1,this.constantViolations.indexOf(e)===-1&&this.constantViolations.push(e)}reference(e){this.referencePaths.indexOf(e)===-1&&(this.referenced=!0,this.references++,this.referencePaths.push(e))}dereference(){this.references--,this.referenced=!!this.references}};gh.default=wb;function abe(t){for(let{parentPath:e,key:r}=t;e;{parentPath:e,key:r}=e){if(e.isFunctionParent())return!1;if(e.isWhile()||e.isForXStatement()||e.isForStatement()&&r==="body")return!0}return!1}});var BM=g((d4e,obe)=>{obe.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 qM=g((m4e,jM)=>{"use strict";c();jM.exports=BM()});var Ob=g(Eh=>{"use strict";c();Object.defineProperty(Eh,"__esModule",{value:!0});Eh.default=void 0;var lbe=MM(),ube=mu(),cbe=FM(),fbe=qM(),pbe=ve(),UM=Wn(),{NOT_LOCAL_BINDING:$M,callExpression:VM,cloneNode:KM,getBindingIdentifiers:hbe,identifier:To,isArrayExpression:HM,isBinary:dbe,isClass:mbe,isClassBody:ybe,isClassDeclaration:gbe,isExportAllDeclaration:XM,isExportDefaultDeclaration:Sbe,isExportNamedDeclaration:_b,isFunctionDeclaration:Tbe,isIdentifier:Sh,isImportDeclaration:Cb,isLiteral:Ebe,isMethod:bbe,isModuleSpecifier:xbe,isNullLiteral:Pbe,isObjectExpression:vbe,isProperty:Abe,isPureish:wbe,isRegExpLiteral:_be,isSuper:Cbe,isTaggedTemplateExpression:Ibe,isTemplateLiteral:zM,isThisExpression:WM,isUnaryExpression:Obe,isVariableDeclaration:Nbe,matchesPattern:Dbe,memberExpression:Ib,numericLiteral:GM,toIdentifier:Lbe,unaryExpression:kbe,variableDeclaration:Rbe,variableDeclarator:Mbe,isRecordExpression:Fbe,isTupleExpression:Bbe,isObjectProperty:jbe,isTopicReference:YM,isMetaProperty:qbe,isPrivateName:Ube,isExportDeclaration:$be}=pbe;function Ze(t,e){switch(t==null?void 0:t.type){default:if(Cb(t)||$be(t))if((XM(t)||_b(t)||Cb(t))&&t.source)Ze(t.source,e);else if((_b(t)||Cb(t))&&t.specifiers&&t.specifiers.length)for(let r of t.specifiers)Ze(r,e);else(Sbe(t)||_b(t))&&t.declaration&&Ze(t.declaration,e);else xbe(t)?Ze(t.local,e):Ebe(t)&&!Pbe(t)&&!_be(t)&&!zM(t)&&e.push(t.value);break;case"MemberExpression":case"OptionalMemberExpression":case"JSXMemberExpression":Ze(t.object,e),Ze(t.property,e);break;case"Identifier":case"JSXIdentifier":e.push(t.name);break;case"CallExpression":case"OptionalCallExpression":case"NewExpression":Ze(t.callee,e);break;case"ObjectExpression":case"ObjectPattern":for(let r of t.properties)Ze(r,e);break;case"SpreadElement":case"RestElement":Ze(t.argument,e);break;case"ObjectProperty":case"ObjectMethod":case"ClassProperty":case"ClassMethod":case"ClassPrivateProperty":case"ClassPrivateMethod":Ze(t.key,e);break;case"ThisExpression":e.push("this");break;case"Super":e.push("super");break;case"Import":e.push("import");break;case"DoExpression":e.push("do");break;case"YieldExpression":e.push("yield"),Ze(t.argument,e);break;case"AwaitExpression":e.push("await"),Ze(t.argument,e);break;case"AssignmentExpression":Ze(t.left,e);break;case"VariableDeclarator":Ze(t.id,e);break;case"FunctionExpression":case"FunctionDeclaration":case"ClassExpression":case"ClassDeclaration":Ze(t.id,e);break;case"PrivateName":Ze(t.id,e);break;case"ParenthesizedExpression":Ze(t.expression,e);break;case"UnaryExpression":case"UpdateExpression":Ze(t.argument,e);break;case"MetaProperty":Ze(t.meta,e),Ze(t.property,e);break;case"JSXElement":Ze(t.openingElement,e);break;case"JSXOpeningElement":Ze(t.name,e);break;case"JSXFragment":Ze(t.openingFragment,e);break;case"JSXOpeningFragment":e.push("Fragment");break;case"JSXNamespacedName":Ze(t.namespace,e),Ze(t.name,e);break}}var Th={ForStatement(t){let e=t.get("init");if(e.isVar()){let{scope:r}=t;(r.getFunctionParent()||r.getProgramParent()).registerBinding("var",e)}},Declaration(t){if(t.isBlockScoped()||t.isImportDeclaration()||t.isExportDeclaration())return;(t.scope.getFunctionParent()||t.scope.getProgramParent()).registerDeclaration(t)},ImportDeclaration(t){t.scope.getBlockParent().registerDeclaration(t)},ReferencedIdentifier(t,e){e.references.push(t)},ForXStatement(t,e){let r=t.get("left");if(r.isPattern()||r.isIdentifier())e.constantViolations.push(t);else if(r.isVar()){let{scope:i}=t;(i.getFunctionParent()||i.getProgramParent()).registerBinding("var",r)}},ExportDeclaration:{exit(t){let{node:e,scope:r}=t;if(XM(e))return;let i=e.declaration;if(gbe(i)||Tbe(i)){let s=i.id;if(!s)return;let n=r.getBinding(s.name);n==null||n.reference(t)}else if(Nbe(i))for(let s of i.declarations)for(let n of Object.keys(hbe(s))){let a=r.getBinding(n);a==null||a.reference(t)}}},LabeledStatement(t){t.scope.getBlockParent().registerDeclaration(t)},AssignmentExpression(t,e){e.assignments.push(t)},UpdateExpression(t,e){e.constantViolations.push(t)},UnaryExpression(t,e){t.node.operator==="delete"&&e.constantViolations.push(t)},BlockScoped(t){let e=t.scope;if(e.path===t&&(e=e.parent),e.getBlockParent().registerDeclaration(t),t.isClassDeclaration()&&t.node.id){let s=t.node.id.name;t.scope.bindings[s]=t.scope.parent.getBinding(s)}},CatchClause(t){t.scope.registerBinding("let",t)},Function(t){let e=t.get("params");for(let r of e)t.scope.registerBinding("param",r);t.isFunctionExpression()&&t.has("id")&&!t.get("id").node[$M]&&t.scope.registerBinding("local",t.get("id"),t)},ClassExpression(t){t.has("id")&&!t.get("id").node[$M]&&t.scope.registerBinding("local",t)}},Vbe=0,zs=class{constructor(e){this.uid=void 0,this.path=void 0,this.block=void 0,this.labels=void 0,this.inited=void 0,this.bindings=void 0,this.references=void 0,this.globals=void 0,this.uids=void 0,this.data=void 0,this.crawling=void 0;let{node:r}=e,i=UM.scope.get(r);if((i==null?void 0:i.path)===e)return i;UM.scope.set(r,this),this.uid=Vbe++,this.block=r,this.path=e,this.labels=new Map,this.inited=!1}get parent(){var e;let r,i=this.path;do{let s=i.key==="key"||i.listKey==="decorators";i=i.parentPath,s&&i.isMethod()&&(i=i.parentPath),i&&i.isScope()&&(r=i)}while(i&&!r);return(e=r)==null?void 0:e.scope}get parentBlock(){return this.path.parent}get hub(){return this.path.hub}traverse(e,r,i){(0,ube.default)(e,r,this,i,this.path)}generateDeclaredUidIdentifier(e){let r=this.generateUidIdentifier(e);return this.push({id:r}),KM(r)}generateUidIdentifier(e){return To(this.generateUid(e))}generateUid(e="temp"){e=Lbe(e).replace(/^_+/,"").replace(/[0-9]+$/g,"");let r,i=1;do r=this._generateUid(e,i),i++;while(this.hasLabel(r)||this.hasBinding(r)||this.hasGlobal(r)||this.hasReference(r));let s=this.getProgramParent();return s.references[r]=!0,s.uids[r]=!0,r}_generateUid(e,r){let i=e;return r>1&&(i+=r),`_${i}`}generateUidBasedOnNode(e,r){let i=[];Ze(e,i);let s=i.join("$");return s=s.replace(/^_/,"")||r||"ref",this.generateUid(s.slice(0,20))}generateUidIdentifierBasedOnNode(e,r){return To(this.generateUidBasedOnNode(e,r))}isStatic(e){if(WM(e)||Cbe(e)||YM(e))return!0;if(Sh(e)){let r=this.getBinding(e.name);return r?r.constant:this.hasBinding(e.name)}return!1}maybeGenerateMemoised(e,r){if(this.isStatic(e))return null;{let i=this.generateUidIdentifierBasedOnNode(e);return r?i:(this.push({id:i}),KM(i))}}checkBlockScopedCollisions(e,r,i,s){if(r==="param"||e.kind==="local")return;if(r==="let"||e.kind==="let"||e.kind==="const"||e.kind==="module"||e.kind==="param"&&r==="const")throw this.hub.buildError(s,`Duplicate declaration "${i}"`,TypeError)}rename(e,r){let i=this.getBinding(e);i&&(r||(r=this.generateUidIdentifier(e).name),new lbe.default(i,e,r).rename(arguments[2]))}_renameFromMap(e,r,i,s){e[r]&&(e[i]=s,e[r]=null)}dump(){let e="-".repeat(60);console.log(e);let r=this;do{console.log("#",r.block.type);for(let i of Object.keys(r.bindings)){let s=r.bindings[i];console.log(" -",i,{constant:s.constant,references:s.references,violations:s.constantViolations.length,kind:s.kind})}}while(r=r.parent);console.log(e)}toArray(e,r,i){if(Sh(e)){let a=this.getBinding(e.name);if(a!=null&&a.constant&&a.path.isGenericType("Array"))return e}if(HM(e))return e;if(Sh(e,{name:"arguments"}))return VM(Ib(Ib(Ib(To("Array"),To("prototype")),To("slice")),To("call")),[e]);let s,n=[e];return r===!0?s="toConsumableArray":typeof r=="number"?(n.push(GM(r)),s="slicedToArray"):s="toArray",i&&(n.unshift(this.hub.addHelper(s)),s="maybeArrayLike"),VM(this.hub.addHelper(s),n)}hasLabel(e){return!!this.getLabel(e)}getLabel(e){return this.labels.get(e)}registerLabel(e){this.labels.set(e.node.label.name,e)}registerDeclaration(e){if(e.isLabeledStatement())this.registerLabel(e);else if(e.isFunctionDeclaration())this.registerBinding("hoisted",e.get("id"),e);else if(e.isVariableDeclaration()){let r=e.get("declarations"),{kind:i}=e.node;for(let s of r)this.registerBinding(i==="using"||i==="await using"?"const":i,s)}else if(e.isClassDeclaration()){if(e.node.declare)return;this.registerBinding("let",e)}else if(e.isImportDeclaration()){let r=e.node.importKind==="type"||e.node.importKind==="typeof",i=e.get("specifiers");for(let s of i){let n=r||s.isImportSpecifier()&&(s.node.importKind==="type"||s.node.importKind==="typeof");this.registerBinding(n?"unknown":"module",s)}}else if(e.isExportDeclaration()){let r=e.get("declaration");(r.isClassDeclaration()||r.isFunctionDeclaration()||r.isVariableDeclaration())&&this.registerDeclaration(r)}else this.registerBinding("unknown",e)}buildUndefinedNode(){return kbe("void",GM(0),!0)}registerConstantViolation(e){let r=e.getBindingIdentifiers();for(let i of Object.keys(r)){let s=this.getBinding(i);s&&s.reassign(e)}}registerBinding(e,r,i=r){if(!e)throw new ReferenceError("no `kind`");if(r.isVariableDeclaration()){let a=r.get("declarations");for(let o of a)this.registerBinding(e,o);return}let s=this.getProgramParent(),n=r.getOuterBindingIdentifiers(!0);for(let a of Object.keys(n)){s.references[a]=!0;for(let o of n[a]){let l=this.getOwnBinding(a);if(l){if(l.identifier===o)continue;this.checkBlockScopedCollisions(l,e,a,o)}l?this.registerConstantViolation(i):this.bindings[a]=new cbe.default({identifier:o,scope:this,path:i,kind:e})}}}addGlobal(e){this.globals[e.name]=e}hasUid(e){let r=this;do if(r.uids[e])return!0;while(r=r.parent);return!1}hasGlobal(e){let r=this;do if(r.globals[e])return!0;while(r=r.parent);return!1}hasReference(e){return!!this.getProgramParent().references[e]}isPure(e,r){if(Sh(e)){let a=this.getBinding(e.name);return a?r?a.constant:!0:!1}else{if(WM(e)||qbe(e)||YM(e)||Ube(e))return!0;if(mbe(e)){var i;return e.superClass&&!this.isPure(e.superClass,r)||((i=e.decorators)==null?void 0:i.length)>0?!1:this.isPure(e.body,r)}else if(ybe(e)){for(let a of e.body)if(!this.isPure(a,r))return!1;return!0}else{if(dbe(e))return this.isPure(e.left,r)&&this.isPure(e.right,r);if(HM(e)||Bbe(e)){for(let a of e.elements)if(a!==null&&!this.isPure(a,r))return!1;return!0}else if(vbe(e)||Fbe(e)){for(let a of e.properties)if(!this.isPure(a,r))return!1;return!0}else if(bbe(e)){var s;return!(e.computed&&!this.isPure(e.key,r)||((s=e.decorators)==null?void 0:s.length)>0)}else if(Abe(e)){var n;return!(e.computed&&!this.isPure(e.key,r)||((n=e.decorators)==null?void 0:n.length)>0||(jbe(e)||e.static)&&e.value!==null&&!this.isPure(e.value,r))}else{if(Obe(e))return this.isPure(e.argument,r);if(Ibe(e))return Dbe(e.tag,"String.raw")&&!this.hasBinding("String",!0)&&this.isPure(e.quasi,r);if(zM(e)){for(let a of e.expressions)if(!this.isPure(a,r))return!1;return!0}else return wbe(e)}}}}setData(e,r){return this.data[e]=r}getData(e){let r=this;do{let i=r.data[e];if(i!=null)return i}while(r=r.parent)}removeData(e){let r=this;do r.data[e]!=null&&(r.data[e]=null);while(r=r.parent)}init(){this.inited||(this.inited=!0,this.crawl())}crawl(){let e=this.path;this.references=Object.create(null),this.bindings=Object.create(null),this.globals=Object.create(null),this.uids=Object.create(null),this.data=Object.create(null);let r=this.getProgramParent();if(r.crawling)return;let i={references:[],constantViolations:[],assignments:[]};if(this.crawling=!0,e.type!=="Program"&&Th._exploded){for(let n of Th.enter)n(e,i);let s=Th[e.type];if(s)for(let n of s.enter)n(e,i)}e.traverse(Th,i),this.crawling=!1;for(let s of i.assignments){let n=s.getBindingIdentifiers();for(let a of Object.keys(n))s.scope.getBinding(a)||r.addGlobal(n[a]);s.scope.registerConstantViolation(s)}for(let s of i.references){let n=s.scope.getBinding(s.node.name);n?n.reference(s):r.addGlobal(s.node)}for(let s of i.constantViolations)s.scope.registerConstantViolation(s)}push(e){let r=this.path;r.isPattern()?r=this.getPatternParent().path:!r.isBlockStatement()&&!r.isProgram()&&(r=this.getBlockParent().path),r.isSwitchStatement()&&(r=(this.getFunctionParent()||this.getProgramParent()).path),(r.isLoop()||r.isCatchClause()||r.isFunction())&&(r.ensureBlock(),r=r.get("body"));let i=e.unique,s=e.kind||"var",n=e._blockHoist==null?2:e._blockHoist,a=`declaration:${s}:${n}`,o=!i&&r.getData(a);if(!o){let f=Rbe(s,[]);f._blockHoist=n,[o]=r.unshiftContainer("body",[f]),i||r.setData(a,o)}let l=Mbe(e.id,e.init),u=o.node.declarations.push(l);r.scope.registerBinding(s,o.get("declarations")[u-1])}getProgramParent(){let e=this;do if(e.path.isProgram())return e;while(e=e.parent);throw new Error("Couldn't find a Program")}getFunctionParent(){let e=this;do if(e.path.isFunctionParent())return e;while(e=e.parent);return null}getBlockParent(){let e=this;do if(e.path.isBlockParent())return e;while(e=e.parent);throw new Error("We couldn't find a BlockStatement, For, Switch, Function, Loop or Program...")}getPatternParent(){let e=this;do if(!e.path.isPattern())return e.getBlockParent();while(e=e.parent.parent);throw new Error("We couldn't find a BlockStatement, For, Switch, Function, Loop or Program...")}getAllBindings(){let e=Object.create(null),r=this;do{for(let i of Object.keys(r.bindings))i in e||(e[i]=r.bindings[i]);r=r.parent}while(r);return e}getAllBindingsOfKind(...e){let r=Object.create(null);for(let i of e){let s=this;do{for(let n of Object.keys(s.bindings)){let a=s.bindings[n];a.kind===i&&(r[n]=a)}s=s.parent}while(s)}return r}bindingIdentifierEquals(e,r){return this.getBindingIdentifier(e)===r}getBinding(e){let r=this,i;do{let n=r.getOwnBinding(e);if(n){var s;if(!((s=i)!=null&&s.isPattern()&&n.kind!=="param"&&n.kind!=="local"))return n}else if(!n&&e==="arguments"&&r.path.isFunction()&&!r.path.isArrowFunctionExpression())break;i=r.path}while(r=r.parent)}getOwnBinding(e){return this.bindings[e]}getBindingIdentifier(e){var r;return(r=this.getBinding(e))==null?void 0:r.identifier}getOwnBindingIdentifier(e){let r=this.bindings[e];return r==null?void 0:r.identifier}hasOwnBinding(e){return!!this.getOwnBinding(e)}hasBinding(e,r){var i,s,n;return e?!!(this.hasOwnBinding(e)||(typeof r=="boolean"&&(r={noGlobals:r}),this.parentHasBinding(e,r))||!((i=r)!=null&&i.noUids)&&this.hasUid(e)||!((s=r)!=null&&s.noGlobals)&&zs.globals.includes(e)||!((n=r)!=null&&n.noGlobals)&&zs.contextVariables.includes(e)):!1}parentHasBinding(e,r){var i;return(i=this.parent)==null?void 0:i.hasBinding(e,r)}moveBindingTo(e,r){let i=this.getBinding(e);i&&(i.scope.removeOwnBinding(e),i.scope=r,r.bindings[e]=i)}removeOwnBinding(e){delete this.bindings[e]}removeBinding(e){var r;(r=this.getBinding(e))==null||r.scope.removeOwnBinding(e);let i=this;do i.uids[e]&&(i.uids[e]=!1);while(i=i.parent)}};Eh.default=zs;zs.globals=Object.keys(fbe.builtin);zs.contextVariables=["arguments","undefined","Infinity","NaN"]});var JM=g(Vr=>{"use strict";c();Object.defineProperty(Vr,"__esModule",{value:!0});Vr.find=Gbe;Vr.findParent=Wbe;Vr.getAncestry=Qbe;Vr.getDeepestCommonAncestorFrom=Jbe;Vr.getEarliestCommonAncestorFrom=zbe;Vr.getFunctionParent=Ybe;Vr.getStatementParent=Xbe;Vr.inType=txe;Vr.isAncestor=Zbe;Vr.isDescendant=exe;var Kbe=ve(),{VISITOR_KEYS:Hbe}=Kbe;function Wbe(t){let e=this;for(;e=e.parentPath;)if(t(e))return e;return null}function Gbe(t){let e=this;do if(t(e))return e;while(e=e.parentPath);return null}function Ybe(){return this.findParent(t=>t.isFunction())}function Xbe(){let t=this;do{if(!t.parentPath||Array.isArray(t.container)&&t.isStatement())break;t=t.parentPath}while(t);if(t&&(t.isProgram()||t.isFile()))throw new Error("File/Program node, we can't possibly find a statement parent to this");return t}function zbe(t){return this.getDeepestCommonAncestorFrom(t,function(e,r,i){let s,n=Hbe[e.type];for(let a of i){let o=a[r+1];if(!s){s=o;continue}if(o.listKey&&s.listKey===o.listKey&&o.key<s.key){s=o;continue}let l=n.indexOf(s.parentKey),u=n.indexOf(o.parentKey);l>u&&(s=o)}return s})}function Jbe(t,e){if(!t.length)return this;if(t.length===1)return t[0];let r=1/0,i,s,n=t.map(o=>{let l=[];do l.unshift(o);while((o=o.parentPath)&&o!==this);return l.length<r&&(r=l.length),l}),a=n[0];e:for(let o=0;o<r;o++){let l=a[o];for(let u of n)if(u[o]!==l)break e;i=o,s=l}if(s)return e?e(s,i,n):s;throw new Error("Couldn't find intersection")}function Qbe(){let t=this,e=[];do e.push(t);while(t=t.parentPath);return e}function Zbe(t){return t.isDescendant(this)}function exe(t){return!!this.findParent(e=>e===t)}function txe(...t){let e=this;for(;e;){for(let r of t)if(e.node.type===r)return!0;e=e.parentPath}return!1}});var Db=g(Nb=>{"use strict";c();Object.defineProperty(Nb,"__esModule",{value:!0});Nb.createUnionType=nxe;var rxe=ve(),{createFlowUnionType:QM,createTSUnionType:ZM,createUnionTypeAnnotation:ixe,isFlowType:sxe,isTSType:b4e}=rxe;function nxe(t){{if(sxe(t[0]))return QM?QM(t):ixe(t);if(ZM)return ZM(t)}}});var s2=g(Lb=>{"use strict";c();Object.defineProperty(Lb,"__esModule",{value:!0});Lb.default=cxe;var axe=ve(),t2=Db(),{BOOLEAN_NUMBER_BINARY_OPERATORS:oxe,createTypeAnnotationBasedOnTypeof:lxe,numberTypeAnnotation:r2,voidTypeAnnotation:uxe}=axe;function cxe(t){if(!this.isReferenced())return;let e=this.scope.getBinding(t.name);if(e)return e.identifier.typeAnnotation?e.identifier.typeAnnotation:fxe(e,this,t.name);if(t.name==="undefined")return uxe();if(t.name==="NaN"||t.name==="Infinity")return r2();t.name}function fxe(t,e,r){let i=[],s=[],n=e2(t,e,s),a=i2(t,e,r);if(a){let o=e2(t,a.ifStatement);n=n.filter(l=>o.indexOf(l)<0),i.push(a.typeAnnotation)}if(n.length){n.push(...s);for(let o of n)i.push(o.getTypeAnnotation())}if(i.length)return(0,t2.createUnionType)(i)}function e2(t,e,r){let i=t.constantViolations.slice();return i.unshift(t.path),i.filter(s=>{s=s.resolve();let n=s._guessExecutionStatusRelativeTo(e);return r&&n==="unknown"&&r.push(s),n==="before"})}function pxe(t,e){let r=e.node.operator,i=e.get("right").resolve(),s=e.get("left").resolve(),n;if(s.isIdentifier({name:t})?n=i:i.isIdentifier({name:t})&&(n=s),n)return r==="==="?n.getTypeAnnotation():oxe.indexOf(r)>=0?r2():void 0;if(r!=="==="&&r!=="==")return;let a,o;if(s.isUnaryExpression({operator:"typeof"})?(a=s,o=i):i.isUnaryExpression({operator:"typeof"})&&(a=i,o=s),!a||!a.get("argument").isIdentifier({name:t})||(o=o.resolve(),!o.isLiteral()))return;let l=o.node.value;if(typeof l=="string")return lxe(l)}function hxe(t,e,r){let i;for(;i=e.parentPath;){if(i.isIfStatement()||i.isConditionalExpression())return e.key==="test"?void 0:i;if(i.isFunction()&&i.parentPath.scope.getBinding(r)!==t)return;e=i}}function i2(t,e,r){let i=hxe(t,e,r);if(!i)return;let n=[i.get("test")],a=[];for(let o=0;o<n.length;o++){let l=n[o];if(l.isLogicalExpression())l.node.operator==="&&"&&(n.push(l.get("left")),n.push(l.get("right")));else if(l.isBinaryExpression()){let u=pxe(r,l);u&&a.push(u)}}return a.length?{typeAnnotation:(0,t2.createUnionType)(a),ifStatement:i}:i2(t,i,r)}});var p2=g(Ke=>{"use strict";c();Object.defineProperty(Ke,"__esModule",{value:!0});Ke.ArrayExpression=u2;Ke.AssignmentExpression=Mxe;Ke.BinaryExpression=Nxe;Ke.BooleanLiteral=qxe;Ke.CallExpression=Xxe;Ke.ConditionalExpression=Lxe;Ke.ClassDeclaration=Ke.ClassExpression=Ke.FunctionDeclaration=Ke.ArrowFunctionExpression=Ke.FunctionExpression=Kxe;Object.defineProperty(Ke,"Identifier",{enumerable:!0,get:function(){return mxe.default}});Ke.LogicalExpression=Dxe;Ke.NewExpression=Cxe;Ke.NullLiteral=Uxe;Ke.NumericLiteral=jxe;Ke.ObjectExpression=Vxe;Ke.ParenthesizedExpression=Rxe;Ke.RegExpLiteral=$xe;Ke.RestElement=c2;Ke.SequenceExpression=kxe;Ke.StringLiteral=Bxe;Ke.TSAsExpression=l2;Ke.TSNonNullExpression=_xe;Ke.TaggedTemplateExpression=zxe;Ke.TemplateLiteral=Ixe;Ke.TypeCastExpression=o2;Ke.UnaryExpression=Oxe;Ke.UpdateExpression=Fxe;Ke.VariableDeclarator=wxe;var dxe=ve(),mxe=s2(),a2=Db(),{BOOLEAN_BINARY_OPERATORS:yxe,BOOLEAN_UNARY_OPERATORS:gxe,NUMBER_BINARY_OPERATORS:Sxe,NUMBER_UNARY_OPERATORS:Txe,STRING_UNARY_OPERATORS:Exe,anyTypeAnnotation:n2,arrayTypeAnnotation:kb,booleanTypeAnnotation:Rb,buildMatchMemberExpression:bh,genericTypeAnnotation:Js,identifier:Gn,nullLiteralTypeAnnotation:bxe,numberTypeAnnotation:Eo,stringTypeAnnotation:Yn,tupleTypeAnnotation:xxe,unionTypeAnnotation:Pxe,voidTypeAnnotation:vxe,isIdentifier:Axe}=dxe;function wxe(){if(this.get("id").isIdentifier())return this.get("init").getTypeAnnotation()}function o2(t){return t.typeAnnotation}o2.validParent=!0;function l2(t){return t.typeAnnotation}l2.validParent=!0;function _xe(){return this.get("expression").getTypeAnnotation()}function Cxe(t){if(t.callee.type==="Identifier")return Js(t.callee)}function Ixe(){return Yn()}function Oxe(t){let e=t.operator;if(e==="void")return vxe();if(Txe.indexOf(e)>=0)return Eo();if(Exe.indexOf(e)>=0)return Yn();if(gxe.indexOf(e)>=0)return Rb()}function Nxe(t){let e=t.operator;if(Sxe.indexOf(e)>=0)return Eo();if(yxe.indexOf(e)>=0)return Rb();if(e==="+"){let r=this.get("right"),i=this.get("left");return i.isBaseType("number")&&r.isBaseType("number")?Eo():i.isBaseType("string")||r.isBaseType("string")?Yn():Pxe([Yn(),Eo()])}}function Dxe(){let t=[this.get("left").getTypeAnnotation(),this.get("right").getTypeAnnotation()];return(0,a2.createUnionType)(t)}function Lxe(){let t=[this.get("consequent").getTypeAnnotation(),this.get("alternate").getTypeAnnotation()];return(0,a2.createUnionType)(t)}function kxe(){return this.get("expressions").pop().getTypeAnnotation()}function Rxe(){return this.get("expression").getTypeAnnotation()}function Mxe(){return this.get("right").getTypeAnnotation()}function Fxe(t){let e=t.operator;if(e==="++"||e==="--")return Eo()}function Bxe(){return Yn()}function jxe(){return Eo()}function qxe(){return Rb()}function Uxe(){return bxe()}function $xe(){return Js(Gn("RegExp"))}function Vxe(){return Js(Gn("Object"))}function u2(){return Js(Gn("Array"))}function c2(){return u2()}c2.validParent=!0;function Kxe(){return Js(Gn("Function"))}var Hxe=bh("Array.from"),Wxe=bh("Object.keys"),Gxe=bh("Object.values"),Yxe=bh("Object.entries");function Xxe(){let{callee:t}=this.node;return Wxe(t)?kb(Yn()):Hxe(t)||Gxe(t)||Axe(t,{name:"Array"})?kb(n2()):Yxe(t)?kb(xxe([Yn(),n2()])):f2(this.get("callee"))}function zxe(){return f2(this.get("tag"))}function f2(t){if(t=t.resolve(),t.isFunction()){let{node:e}=t;if(e.async)return e.generator?Js(Gn("AsyncIterator")):Js(Gn("Promise"));if(e.generator)return Js(Gn("Iterator"));if(t.node.returnType)return t.node.returnType}}});var y2=g(Qs=>{"use strict";c();Object.defineProperty(Qs,"__esModule",{value:!0});Qs._getTypeAnnotation=yPe;Qs.baseTypeStrictlyMatches=TPe;Qs.couldBeBaseType=SPe;Qs.getTypeAnnotation=mPe;Qs.isBaseType=gPe;Qs.isGenericType=EPe;var h2=p2(),Jxe=ve(),{anyTypeAnnotation:m2,isAnyTypeAnnotation:xh,isArrayTypeAnnotation:Qxe,isBooleanTypeAnnotation:Zxe,isEmptyTypeAnnotation:ePe,isFlowBaseAnnotation:tPe,isGenericTypeAnnotation:rPe,isIdentifier:d2,isMixedTypeAnnotation:iPe,isNumberTypeAnnotation:sPe,isStringTypeAnnotation:nPe,isTSArrayType:aPe,isTSTypeAnnotation:oPe,isTSTypeReference:lPe,isTupleTypeAnnotation:uPe,isTypeAnnotation:cPe,isUnionTypeAnnotation:fPe,isVoidTypeAnnotation:pPe,stringTypeAnnotation:hPe,voidTypeAnnotation:dPe}=Jxe;function mPe(){let t=this.getData("typeAnnotation");return t!=null||(t=this._getTypeAnnotation()||m2(),(cPe(t)||oPe(t))&&(t=t.typeAnnotation),this.setData("typeAnnotation",t)),t}var Mb=new WeakSet;function yPe(){let t=this.node;if(!t)if(this.key==="init"&&this.parentPath.isVariableDeclarator()){let r=this.parentPath.parentPath,i=r.parentPath;return r.key==="left"&&i.isForInStatement()?hPe():r.key==="left"&&i.isForOfStatement()?m2():dPe()}else return;if(t.typeAnnotation)return t.typeAnnotation;if(!Mb.has(t)){Mb.add(t);try{var e;let r=h2[t.type];if(r)return r.call(this,t);if(r=h2[this.parentPath.type],(e=r)!=null&&e.validParent)return this.parentPath.getTypeAnnotation()}finally{Mb.delete(t)}}}function gPe(t,e){return Fb(t,this.getTypeAnnotation(),e)}function Fb(t,e,r){if(t==="string")return nPe(e);if(t==="number")return sPe(e);if(t==="boolean")return Zxe(e);if(t==="any")return xh(e);if(t==="mixed")return iPe(e);if(t==="empty")return ePe(e);if(t==="void")return pPe(e);if(r)return!1;throw new Error(`Unknown base type ${t}`)}function SPe(t){let e=this.getTypeAnnotation();if(xh(e))return!0;if(fPe(e)){for(let r of e.types)if(xh(r)||Fb(t,r,!0))return!0;return!1}else return Fb(t,e,!0)}function TPe(t){let e=this.getTypeAnnotation(),r=t.getTypeAnnotation();return!xh(e)&&tPe(e)?r.type===e.type:!1}function EPe(t){let e=this.getTypeAnnotation();return t==="Array"&&(aPe(e)||Qxe(e)||uPe(e))?!0:rPe(e)&&d2(e.id,{name:t})||lPe(e)&&d2(e.typeName,{name:t})}});var g2=g(Ph=>{c();Object.defineProperty(Ph,"__esModule",{value:!0});Ph.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;Ph.matchToToken=function(t){var e={type:"invalid",value:t[0],closed:void 0};return t[1]?(e.type="string",e.closed=!!(t[3]||t[4])):t[5]?e.type="comment":t[6]?(e.type="comment",e.closed=!!t[7]):t[8]?e.type="regex":t[9]?e.type="number":t[10]?e.type="name":t[11]?e.type="punctuator":t[12]&&(e.type="whitespace"),e}});var T2=g((D4e,S2)=>{"use strict";c();var bPe=/[|\\{}()[\]^$+*?.]/g;S2.exports=function(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(bPe,"\\$&")}});var b2=g((k4e,E2)=>{"use strict";c();E2.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 Bb=g((M4e,A2)=>{c();var Xn=b2(),v2={};for(vh in Xn)Xn.hasOwnProperty(vh)&&(v2[Xn[vh]]=vh);var vh,pe=A2.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(Zt in pe)if(pe.hasOwnProperty(Zt)){if(!("channels"in pe[Zt]))throw new Error("missing channels property: "+Zt);if(!("labels"in pe[Zt]))throw new Error("missing channel labels property: "+Zt);if(pe[Zt].labels.length!==pe[Zt].channels)throw new Error("channel and label counts mismatch: "+Zt);x2=pe[Zt].channels,P2=pe[Zt].labels,delete pe[Zt].channels,delete pe[Zt].labels,Object.defineProperty(pe[Zt],"channels",{value:x2}),Object.defineProperty(pe[Zt],"labels",{value:P2})}var x2,P2,Zt;pe.rgb.hsl=function(t){var e=t[0]/255,r=t[1]/255,i=t[2]/255,s=Math.min(e,r,i),n=Math.max(e,r,i),a=n-s,o,l,u;return n===s?o=0:e===n?o=(r-i)/a:r===n?o=2+(i-e)/a:i===n&&(o=4+(e-r)/a),o=Math.min(o*60,360),o<0&&(o+=360),u=(s+n)/2,n===s?l=0:u<=.5?l=a/(n+s):l=a/(2-n-s),[o,l*100,u*100]};pe.rgb.hsv=function(t){var e,r,i,s,n,a=t[0]/255,o=t[1]/255,l=t[2]/255,u=Math.max(a,o,l),f=u-Math.min(a,o,l),p=function(h){return(u-h)/6/f+1/2};return f===0?s=n=0:(n=f/u,e=p(a),r=p(o),i=p(l),a===u?s=i-r:o===u?s=1/3+e-i:l===u&&(s=2/3+r-e),s<0?s+=1:s>1&&(s-=1)),[s*360,n*100,u*100]};pe.rgb.hwb=function(t){var e=t[0],r=t[1],i=t[2],s=pe.rgb.hsl(t)[0],n=1/255*Math.min(e,Math.min(r,i));return i=1-1/255*Math.max(e,Math.max(r,i)),[s,n*100,i*100]};pe.rgb.cmyk=function(t){var e=t[0]/255,r=t[1]/255,i=t[2]/255,s,n,a,o;return o=Math.min(1-e,1-r,1-i),s=(1-e-o)/(1-o)||0,n=(1-r-o)/(1-o)||0,a=(1-i-o)/(1-o)||0,[s*100,n*100,a*100,o*100]};function xPe(t,e){return Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2)+Math.pow(t[2]-e[2],2)}pe.rgb.keyword=function(t){var e=v2[t];if(e)return e;var r=1/0,i;for(var s in Xn)if(Xn.hasOwnProperty(s)){var n=Xn[s],a=xPe(t,n);a<r&&(r=a,i=s)}return i};pe.keyword.rgb=function(t){return Xn[t]};pe.rgb.xyz=function(t){var e=t[0]/255,r=t[1]/255,i=t[2]/255;e=e>.04045?Math.pow((e+.055)/1.055,2.4):e/12.92,r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92,i=i>.04045?Math.pow((i+.055)/1.055,2.4):i/12.92;var s=e*.4124+r*.3576+i*.1805,n=e*.2126+r*.7152+i*.0722,a=e*.0193+r*.1192+i*.9505;return[s*100,n*100,a*100]};pe.rgb.lab=function(t){var e=pe.rgb.xyz(t),r=e[0],i=e[1],s=e[2],n,a,o;return r/=95.047,i/=100,s/=108.883,r=r>.008856?Math.pow(r,1/3):7.787*r+16/116,i=i>.008856?Math.pow(i,1/3):7.787*i+16/116,s=s>.008856?Math.pow(s,1/3):7.787*s+16/116,n=116*i-16,a=500*(r-i),o=200*(i-s),[n,a,o]};pe.hsl.rgb=function(t){var e=t[0]/360,r=t[1]/100,i=t[2]/100,s,n,a,o,l;if(r===0)return l=i*255,[l,l,l];i<.5?n=i*(1+r):n=i+r-i*r,s=2*i-n,o=[0,0,0];for(var u=0;u<3;u++)a=e+1/3*-(u-1),a<0&&a++,a>1&&a--,6*a<1?l=s+(n-s)*6*a:2*a<1?l=n:3*a<2?l=s+(n-s)*(2/3-a)*6:l=s,o[u]=l*255;return o};pe.hsl.hsv=function(t){var e=t[0],r=t[1]/100,i=t[2]/100,s=r,n=Math.max(i,.01),a,o;return i*=2,r*=i<=1?i:2-i,s*=n<=1?n:2-n,o=(i+r)/2,a=i===0?2*s/(n+s):2*r/(i+r),[e,a*100,o*100]};pe.hsv.rgb=function(t){var e=t[0]/60,r=t[1]/100,i=t[2]/100,s=Math.floor(e)%6,n=e-Math.floor(e),a=255*i*(1-r),o=255*i*(1-r*n),l=255*i*(1-r*(1-n));switch(i*=255,s){case 0:return[i,l,a];case 1:return[o,i,a];case 2:return[a,i,l];case 3:return[a,o,i];case 4:return[l,a,i];case 5:return[i,a,o]}};pe.hsv.hsl=function(t){var e=t[0],r=t[1]/100,i=t[2]/100,s=Math.max(i,.01),n,a,o;return o=(2-r)*i,n=(2-r)*s,a=r*s,a/=n<=1?n:2-n,a=a||0,o/=2,[e,a*100,o*100]};pe.hwb.rgb=function(t){var e=t[0]/360,r=t[1]/100,i=t[2]/100,s=r+i,n,a,o,l;s>1&&(r/=s,i/=s),n=Math.floor(6*e),a=1-i,o=6*e-n,n&1&&(o=1-o),l=r+o*(a-r);var u,f,p;switch(n){default:case 6:case 0:u=a,f=l,p=r;break;case 1:u=l,f=a,p=r;break;case 2:u=r,f=a,p=l;break;case 3:u=r,f=l,p=a;break;case 4:u=l,f=r,p=a;break;case 5:u=a,f=r,p=l;break}return[u*255,f*255,p*255]};pe.cmyk.rgb=function(t){var e=t[0]/100,r=t[1]/100,i=t[2]/100,s=t[3]/100,n,a,o;return n=1-Math.min(1,e*(1-s)+s),a=1-Math.min(1,r*(1-s)+s),o=1-Math.min(1,i*(1-s)+s),[n*255,a*255,o*255]};pe.xyz.rgb=function(t){var e=t[0]/100,r=t[1]/100,i=t[2]/100,s,n,a;return s=e*3.2406+r*-1.5372+i*-.4986,n=e*-.9689+r*1.8758+i*.0415,a=e*.0557+r*-.204+i*1.057,s=s>.0031308?1.055*Math.pow(s,1/2.4)-.055:s*12.92,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:n*12.92,a=a>.0031308?1.055*Math.pow(a,1/2.4)-.055:a*12.92,s=Math.min(Math.max(0,s),1),n=Math.min(Math.max(0,n),1),a=Math.min(Math.max(0,a),1),[s*255,n*255,a*255]};pe.xyz.lab=function(t){var e=t[0],r=t[1],i=t[2],s,n,a;return e/=95.047,r/=100,i/=108.883,e=e>.008856?Math.pow(e,1/3):7.787*e+16/116,r=r>.008856?Math.pow(r,1/3):7.787*r+16/116,i=i>.008856?Math.pow(i,1/3):7.787*i+16/116,s=116*r-16,n=500*(e-r),a=200*(r-i),[s,n,a]};pe.lab.xyz=function(t){var e=t[0],r=t[1],i=t[2],s,n,a;n=(e+16)/116,s=r/500+n,a=n-i/200;var o=Math.pow(n,3),l=Math.pow(s,3),u=Math.pow(a,3);return n=o>.008856?o:(n-16/116)/7.787,s=l>.008856?l:(s-16/116)/7.787,a=u>.008856?u:(a-16/116)/7.787,s*=95.047,n*=100,a*=108.883,[s,n,a]};pe.lab.lch=function(t){var e=t[0],r=t[1],i=t[2],s,n,a;return s=Math.atan2(i,r),n=s*360/2/Math.PI,n<0&&(n+=360),a=Math.sqrt(r*r+i*i),[e,a,n]};pe.lch.lab=function(t){var e=t[0],r=t[1],i=t[2],s,n,a;return a=i/360*2*Math.PI,s=r*Math.cos(a),n=r*Math.sin(a),[e,s,n]};pe.rgb.ansi16=function(t){var e=t[0],r=t[1],i=t[2],s=1 in arguments?arguments[1]:pe.rgb.hsv(t)[2];if(s=Math.round(s/50),s===0)return 30;var n=30+(Math.round(i/255)<<2|Math.round(r/255)<<1|Math.round(e/255));return s===2&&(n+=60),n};pe.hsv.ansi16=function(t){return pe.rgb.ansi16(pe.hsv.rgb(t),t[2])};pe.rgb.ansi256=function(t){var e=t[0],r=t[1],i=t[2];if(e===r&&r===i)return e<8?16:e>248?231:Math.round((e-8)/247*24)+232;var s=16+36*Math.round(e/255*5)+6*Math.round(r/255*5)+Math.round(i/255*5);return s};pe.ansi16.rgb=function(t){var e=t%10;if(e===0||e===7)return t>50&&(e+=3.5),e=e/10.5*255,[e,e,e];var r=(~~(t>50)+1)*.5,i=(e&1)*r*255,s=(e>>1&1)*r*255,n=(e>>2&1)*r*255;return[i,s,n]};pe.ansi256.rgb=function(t){if(t>=232){var e=(t-232)*10+8;return[e,e,e]}t-=16;var r,i=Math.floor(t/36)/5*255,s=Math.floor((r=t%36)/6)/5*255,n=r%6/5*255;return[i,s,n]};pe.rgb.hex=function(t){var e=((Math.round(t[0])&255)<<16)+((Math.round(t[1])&255)<<8)+(Math.round(t[2])&255),r=e.toString(16).toUpperCase();return"000000".substring(r.length)+r};pe.hex.rgb=function(t){var e=t.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!e)return[0,0,0];var r=e[0];e[0].length===3&&(r=r.split("").map(function(o){return o+o}).join(""));var i=parseInt(r,16),s=i>>16&255,n=i>>8&255,a=i&255;return[s,n,a]};pe.rgb.hcg=function(t){var e=t[0]/255,r=t[1]/255,i=t[2]/255,s=Math.max(Math.max(e,r),i),n=Math.min(Math.min(e,r),i),a=s-n,o,l;return a<1?o=n/(1-a):o=0,a<=0?l=0:s===e?l=(r-i)/a%6:s===r?l=2+(i-e)/a:l=4+(e-r)/a+4,l/=6,l%=1,[l*360,a*100,o*100]};pe.hsl.hcg=function(t){var e=t[1]/100,r=t[2]/100,i=1,s=0;return r<.5?i=2*e*r:i=2*e*(1-r),i<1&&(s=(r-.5*i)/(1-i)),[t[0],i*100,s*100]};pe.hsv.hcg=function(t){var e=t[1]/100,r=t[2]/100,i=e*r,s=0;return i<1&&(s=(r-i)/(1-i)),[t[0],i*100,s*100]};pe.hcg.rgb=function(t){var e=t[0]/360,r=t[1]/100,i=t[2]/100;if(r===0)return[i*255,i*255,i*255];var s=[0,0,0],n=e%1*6,a=n%1,o=1-a,l=0;switch(Math.floor(n)){case 0:s[0]=1,s[1]=a,s[2]=0;break;case 1:s[0]=o,s[1]=1,s[2]=0;break;case 2:s[0]=0,s[1]=1,s[2]=a;break;case 3:s[0]=0,s[1]=o,s[2]=1;break;case 4:s[0]=a,s[1]=0,s[2]=1;break;default:s[0]=1,s[1]=0,s[2]=o}return l=(1-r)*i,[(r*s[0]+l)*255,(r*s[1]+l)*255,(r*s[2]+l)*255]};pe.hcg.hsv=function(t){var e=t[1]/100,r=t[2]/100,i=e+r*(1-e),s=0;return i>0&&(s=e/i),[t[0],s*100,i*100]};pe.hcg.hsl=function(t){var e=t[1]/100,r=t[2]/100,i=r*(1-e)+.5*e,s=0;return i>0&&i<.5?s=e/(2*i):i>=.5&&i<1&&(s=e/(2*(1-i))),[t[0],s*100,i*100]};pe.hcg.hwb=function(t){var e=t[1]/100,r=t[2]/100,i=e+r*(1-e);return[t[0],(i-e)*100,(1-i)*100]};pe.hwb.hcg=function(t){var e=t[1]/100,r=t[2]/100,i=1-r,s=i-e,n=0;return s<1&&(n=(i-s)/(1-s)),[t[0],s*100,n*100]};pe.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]};pe.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]};pe.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]};pe.gray.hsl=pe.gray.hsv=function(t){return[0,0,t[0]]};pe.gray.hwb=function(t){return[0,100,t[0]]};pe.gray.cmyk=function(t){return[0,0,0,t[0]]};pe.gray.lab=function(t){return[t[0],0,0]};pe.gray.hex=function(t){var e=Math.round(t[0]/100*255)&255,r=(e<<16)+(e<<8)+e,i=r.toString(16).toUpperCase();return"000000".substring(i.length)+i};pe.rgb.gray=function(t){var e=(t[0]+t[1]+t[2])/3;return[e/255*100]}});var _2=g((B4e,w2)=>{c();var Ah=Bb();function PPe(){for(var t={},e=Object.keys(Ah),r=e.length,i=0;i<r;i++)t[e[i]]={distance:-1,parent:null};return t}function vPe(t){var e=PPe(),r=[t];for(e[t].distance=0;r.length;)for(var i=r.pop(),s=Object.keys(Ah[i]),n=s.length,a=0;a<n;a++){var o=s[a],l=e[o];l.distance===-1&&(l.distance=e[i].distance+1,l.parent=i,r.unshift(o))}return e}function APe(t,e){return function(r){return e(t(r))}}function wPe(t,e){for(var r=[e[t].parent,t],i=Ah[e[t].parent][t],s=e[t].parent;e[s].parent;)r.unshift(e[s].parent),i=APe(Ah[e[s].parent][s],i),s=e[s].parent;return i.conversion=r,i}w2.exports=function(t){for(var e=vPe(t),r={},i=Object.keys(e),s=i.length,n=0;n<s;n++){var a=i[n],o=e[a];o.parent!==null&&(r[a]=wPe(a,e))}return r}});var I2=g((q4e,C2)=>{c();var jb=Bb(),_Pe=_2(),bo={},CPe=Object.keys(jb);function IPe(t){var e=function(r){return r==null?r:(arguments.length>1&&(r=Array.prototype.slice.call(arguments)),t(r))};return"conversion"in t&&(e.conversion=t.conversion),e}function OPe(t){var e=function(r){if(r==null)return r;arguments.length>1&&(r=Array.prototype.slice.call(arguments));var i=t(r);if(typeof i=="object")for(var s=i.length,n=0;n<s;n++)i[n]=Math.round(i[n]);return i};return"conversion"in t&&(e.conversion=t.conversion),e}CPe.forEach(function(t){bo[t]={},Object.defineProperty(bo[t],"channels",{value:jb[t].channels}),Object.defineProperty(bo[t],"labels",{value:jb[t].labels});var e=_Pe(t),r=Object.keys(e);r.forEach(function(i){var s=e[i];bo[t][i]=OPe(s),bo[t][i].raw=IPe(s)})});C2.exports=bo});var N2=g(($4e,O2)=>{"use strict";c();var xo=I2(),wh=(t,e)=>function(){return`\x1B[${t.apply(xo,arguments)+e}m`},_h=(t,e)=>function(){let r=t.apply(xo,arguments);return`\x1B[${38+e};5;${r}m`},Ch=(t,e)=>function(){let r=t.apply(xo,arguments);return`\x1B[${38+e};2;${r[0]};${r[1]};${r[2]}m`};function NPe(){let t=new Map,e={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]}};e.color.grey=e.color.gray;for(let s of Object.keys(e)){let n=e[s];for(let a of Object.keys(n)){let o=n[a];e[a]={open:`\x1B[${o[0]}m`,close:`\x1B[${o[1]}m`},n[a]=e[a],t.set(o[0],o[1])}Object.defineProperty(e,s,{value:n,enumerable:!1}),Object.defineProperty(e,"codes",{value:t,enumerable:!1})}let r=s=>s,i=(s,n,a)=>[s,n,a];e.color.close="\x1B[39m",e.bgColor.close="\x1B[49m",e.color.ansi={ansi:wh(r,0)},e.color.ansi256={ansi256:_h(r,0)},e.color.ansi16m={rgb:Ch(i,0)},e.bgColor.ansi={ansi:wh(r,10)},e.bgColor.ansi256={ansi256:_h(r,10)},e.bgColor.ansi16m={rgb:Ch(i,10)};for(let s of Object.keys(xo)){if(typeof xo[s]!="object")continue;let n=xo[s];s==="ansi16"&&(s="ansi"),"ansi16"in n&&(e.color.ansi[s]=wh(n.ansi16,0),e.bgColor.ansi[s]=wh(n.ansi16,10)),"ansi256"in n&&(e.color.ansi256[s]=_h(n.ansi256,0),e.bgColor.ansi256[s]=_h(n.ansi256,10)),"rgb"in n&&(e.color.ansi16m[s]=Ch(n.rgb,0),e.bgColor.ansi16m[s]=Ch(n.rgb,10))}return e}Object.defineProperty(O2,"exports",{enumerable:!0,get:NPe})});var L2=g((K4e,D2)=>{"use strict";c();D2.exports=(t,e)=>{e=e||process.argv;let r=t.startsWith("-")?"":t.length===1?"-":"--",i=e.indexOf(r+t),s=e.indexOf("--");return i!==-1&&(s===-1?!0:i<s)}});var R2=g((W4e,k2)=>{"use strict";c();var DPe=K("os"),si=L2(),Ut=process.env,Po;si("no-color")||si("no-colors")||si("color=false")?Po=!1:(si("color")||si("colors")||si("color=true")||si("color=always"))&&(Po=!0);"FORCE_COLOR"in Ut&&(Po=Ut.FORCE_COLOR.length===0||parseInt(Ut.FORCE_COLOR,10)!==0);function LPe(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function kPe(t){if(Po===!1)return 0;if(si("color=16m")||si("color=full")||si("color=truecolor"))return 3;if(si("color=256"))return 2;if(t&&!t.isTTY&&Po!==!0)return 0;let e=Po?1:0;if(process.platform==="win32"){let r=DPe.release().split(".");return Number(process.versions.node.split(".")[0])>=8&&Number(r[0])>=10&&Number(r[2])>=10586?Number(r[2])>=14931?3:2:1}if("CI"in Ut)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(r=>r in Ut)||Ut.CI_NAME==="codeship"?1:e;if("TEAMCITY_VERSION"in Ut)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Ut.TEAMCITY_VERSION)?1:0;if(Ut.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in Ut){let r=parseInt((Ut.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Ut.TERM_PROGRAM){case"iTerm.app":return r>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Ut.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Ut.TERM)||"COLORTERM"in Ut?1:(Ut.TERM==="dumb",e)}function qb(t){let e=kPe(t);return LPe(e)}k2.exports={supportsColor:qb,stdout:qb(process.stdout),stderr:qb(process.stderr)}});var q2=g((Y4e,j2)=>{"use strict";c();var RPe=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,M2=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,MPe=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,FPe=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,BPe=new Map([["n",`
48
+ `],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function B2(t){return t[0]==="u"&&t.length===5||t[0]==="x"&&t.length===3?String.fromCharCode(parseInt(t.slice(1),16)):BPe.get(t)||t}function jPe(t,e){let r=[],i=e.trim().split(/\s*,\s*/g),s;for(let n of i)if(!isNaN(n))r.push(Number(n));else if(s=n.match(MPe))r.push(s[2].replace(FPe,(a,o,l)=>o?B2(o):l));else throw new Error(`Invalid Chalk template style argument: ${n} (in style '${t}')`);return r}function qPe(t){M2.lastIndex=0;let e=[],r;for(;(r=M2.exec(t))!==null;){let i=r[1];if(r[2]){let s=jPe(i,r[2]);e.push([i].concat(s))}else e.push([i])}return e}function F2(t,e){let r={};for(let s of e)for(let n of s.styles)r[n[0]]=s.inverse?null:n.slice(1);let i=t;for(let s of Object.keys(r))if(Array.isArray(r[s])){if(!(s in i))throw new Error(`Unknown Chalk style: ${s}`);r[s].length>0?i=i[s].apply(i,r[s]):i=i[s]}return i}j2.exports=(t,e)=>{let r=[],i=[],s=[];if(e.replace(RPe,(n,a,o,l,u,f)=>{if(a)s.push(B2(a));else if(l){let p=s.join("");s=[],i.push(r.length===0?p:F2(t,r)(p)),r.push({inverse:o,styles:qPe(l)})}else if(u){if(r.length===0)throw new Error("Found extraneous } in Chalk template literal");i.push(F2(t,r)(s.join(""))),s=[],r.pop()}else s.push(f)}),i.push(s.join("")),r.length>0){let n=`Chalk template literal is missing ${r.length} closing bracket${r.length===1?"":"s"} (\`}\`)`;throw new Error(n)}return i.join("")}});var H2=g((z4e,gu)=>{"use strict";c();var $b=T2(),gt=N2(),Ub=R2().stdout,UPe=q2(),$2=process.platform==="win32"&&!(process.env.TERM||"").toLowerCase().startsWith("xterm"),V2=["ansi","ansi","ansi256","ansi16m"],K2=new Set(["gray"]),vo=Object.create(null);function U2(t,e){e=e||{};let r=Ub?Ub.level:0;t.level=e.level===void 0?r:e.level,t.enabled="enabled"in e?e.enabled:t.level>0}function yu(t){if(!this||!(this instanceof yu)||this.template){let e={};return U2(e,t),e.template=function(){let r=[].slice.call(arguments);return KPe.apply(null,[e.template].concat(r))},Object.setPrototypeOf(e,yu.prototype),Object.setPrototypeOf(e.template,e),e.template.constructor=yu,e.template}U2(this,t)}$2&&(gt.blue.open="\x1B[94m");for(let t of Object.keys(gt))gt[t].closeRe=new RegExp($b(gt[t].close),"g"),vo[t]={get(){let e=gt[t];return Ih.call(this,this._styles?this._styles.concat(e):[e],this._empty,t)}};vo.visible={get(){return Ih.call(this,this._styles||[],!0,"visible")}};gt.color.closeRe=new RegExp($b(gt.color.close),"g");for(let t of Object.keys(gt.color.ansi))K2.has(t)||(vo[t]={get(){let e=this.level;return function(){let i={open:gt.color[V2[e]][t].apply(null,arguments),close:gt.color.close,closeRe:gt.color.closeRe};return Ih.call(this,this._styles?this._styles.concat(i):[i],this._empty,t)}}});gt.bgColor.closeRe=new RegExp($b(gt.bgColor.close),"g");for(let t of Object.keys(gt.bgColor.ansi)){if(K2.has(t))continue;let e="bg"+t[0].toUpperCase()+t.slice(1);vo[e]={get(){let r=this.level;return function(){let s={open:gt.bgColor[V2[r]][t].apply(null,arguments),close:gt.bgColor.close,closeRe:gt.bgColor.closeRe};return Ih.call(this,this._styles?this._styles.concat(s):[s],this._empty,t)}}}}var $Pe=Object.defineProperties(()=>{},vo);function Ih(t,e,r){let i=function(){return VPe.apply(i,arguments)};i._styles=t,i._empty=e;let s=this;return Object.defineProperty(i,"level",{enumerable:!0,get(){return s.level},set(n){s.level=n}}),Object.defineProperty(i,"enabled",{enumerable:!0,get(){return s.enabled},set(n){s.enabled=n}}),i.hasGrey=this.hasGrey||r==="gray"||r==="grey",i.__proto__=$Pe,i}function VPe(){let t=arguments,e=t.length,r=String(arguments[0]);if(e===0)return"";if(e>1)for(let s=1;s<e;s++)r+=" "+t[s];if(!this.enabled||this.level<=0||!r)return this._empty?"":r;let i=gt.dim.open;$2&&this.hasGrey&&(gt.dim.open="");for(let s of this._styles.slice().reverse())r=s.open+r.replace(s.closeRe,s.open)+s.close,r=r.replace(/\r?\n/g,`${s.close}$&${s.open}`);return gt.dim.open=i,r}function KPe(t,e){if(!Array.isArray(e))return[].slice.call(arguments,1).join(" ");let r=[].slice.call(arguments,2),i=[e.raw[0]];for(let s=1;s<e.length;s++)i.push(String(r[s-1]).replace(/[{}\\]/g,"\\$&")),i.push(String(e.raw[s]));return UPe(t,i.join(""))}Object.defineProperties(yu.prototype,vo);gu.exports=yu();gu.exports.supportsColor=Ub;gu.exports.default=gu.exports});var J2=g(Su=>{"use strict";c();Object.defineProperty(Su,"__esModule",{value:!0});Su.default=zPe;Su.getChalk=z2;Su.shouldHighlight=X2;var W2=g2(),G2=Bl(),Vb=H2(),HPe=new Set(["as","async","from","get","of","set"]);function WPe(t){return{keyword:t.cyan,capitalized:t.yellow,jsxIdentifier:t.yellow,punctuator:t.yellow,number:t.magenta,string:t.green,regex:t.magenta,comment:t.grey,invalid:t.white.bgRed.bold}}var GPe=/\r\n|[\n\r\u2028\u2029]/,YPe=/^[()[\]{}]$/,Y2;{let t=/^[a-z][\w-]*$/i,e=function(r,i,s){if(r.type==="name"){if((0,G2.isKeyword)(r.value)||(0,G2.isStrictReservedWord)(r.value,!0)||HPe.has(r.value))return"keyword";if(t.test(r.value)&&(s[i-1]==="<"||s.slice(i-2,i)=="</"))return"jsxIdentifier";if(r.value[0]!==r.value[0].toLowerCase())return"capitalized"}return r.type==="punctuator"&&YPe.test(r.value)?"bracket":r.type==="invalid"&&(r.value==="@"||r.value==="#")?"punctuator":r.type};Y2=function*(r){let i;for(;i=W2.default.exec(r);){let s=W2.matchToToken(i);yield{type:e(s,i.index,r),value:s.value}}}}function XPe(t,e){let r="";for(let{type:i,value:s}of Y2(e)){let n=t[i];n?r+=s.split(GPe).map(a=>n(a)).join(`
49
+ `):r+=s}return r}function X2(t){return!!Vb.supportsColor||t.forceColor}function z2(t){return t.forceColor?new Vb.constructor({enabled:!0,level:1}):Vb}function zPe(t,e={}){if(t!==""&&X2(e)){let r=z2(e),i=WPe(r);return XPe(i,t)}else return t}});var Hb=g(Oh=>{"use strict";c();Object.defineProperty(Oh,"__esModule",{value:!0});Oh.codeFrameColumns=eF;Oh.default=ZPe;var Kb=J2(),Q2=!1;function JPe(t){return{gutter:t.grey,marker:t.red.bold,message:t.red.bold}}var Z2=/\r\n|[\n\r\u2028\u2029]/;function QPe(t,e,r){let i=Object.assign({column:0,line:-1},t.start),s=Object.assign({},i,t.end),{linesAbove:n=2,linesBelow:a=3}=r||{},o=i.line,l=i.column,u=s.line,f=s.column,p=Math.max(o-(n+1),0),h=Math.min(e.length,u+a);o===-1&&(p=0),u===-1&&(h=e.length);let d=u-o,T={};if(d)for(let b=0;b<=d;b++){let x=b+o;if(!l)T[x]=!0;else if(b===0){let _=e[x-1].length;T[x]=[l,_-l+1]}else if(b===d)T[x]=[0,f];else{let _=e[x-b].length;T[x]=[0,_]}}else l===f?l?T[o]=[l,0]:T[o]=!0:T[o]=[l,f-l];return{start:p,end:h,markerLines:T}}function eF(t,e,r={}){let i=(r.highlightCode||r.forceColor)&&(0,Kb.shouldHighlight)(r),s=(0,Kb.getChalk)(r),n=JPe(s),a=(b,x)=>i?b(x):x,o=t.split(Z2),{start:l,end:u,markerLines:f}=QPe(e,o,r),p=e.start&&typeof e.start.column=="number",h=String(u).length,T=(i?(0,Kb.default)(t,r):t).split(Z2,u).slice(l,u).map((b,x)=>{let _=l+1+x,k=` ${` ${_}`.slice(-h)} |`,M=f[_],O=!f[_+1];if(M){let L="";if(Array.isArray(M)){let F=b.slice(0,Math.max(M[0]-1,0)).replace(/[^\t]/g," "),H=M[1]||1;L=[`
50
+ `,a(n.gutter,k.replace(/\d/g," "))," ",F,a(n.marker,"^").repeat(H)].join(""),O&&r.message&&(L+=" "+a(n.message,r.message))}return[a(n.marker,">"),a(n.gutter,k),b.length>0?` ${b}`:"",L].join("")}else return` ${a(n.gutter,k)}${b.length>0?` ${b}`:""}`}).join(`
51
+ `);return r.message&&!p&&(T=`${" ".repeat(h+1)}${r.message}
52
+ ${T}`),i?s.reset(T):T}function ZPe(t,e,r,i={}){if(!Q2){Q2=!0;let n="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";if(process.emitWarning)process.emitWarning(n,"DeprecationWarning");else{let a=new Error(n);a.name="DeprecationWarning",console.warn(new Error(n))}}return r=Math.max(r,0),eF(t,{start:{column:r,line:e}},i)}});var tF=g(Wb=>{"use strict";c();Object.defineProperty(Wb,"__esModule",{value:!0});Wb.default=nve;var eve=ve(),{assignmentExpression:tve,expressionStatement:rve,identifier:ive}=eve,sve={Scope(t,e){e.kind==="let"&&t.skip()},FunctionParent(t){t.skip()},VariableDeclaration(t,e){if(e.kind&&t.node.kind!==e.kind)return;let r=[],i=t.get("declarations"),s;for(let n of i){s=n.node.id,n.node.init&&r.push(rve(tve("=",n.node.id,n.node.init)));for(let a of Object.keys(n.getBindingIdentifiers()))e.emit(ive(a),a,n.node.init!==null)}t.parentPath.isFor({left:t.node})?t.replaceWith(s):t.replaceWithMultiple(r)}};function nve(t,e,r="var"){t.traverse(sve,{kind:r,emit:e})}});var oF=g(Zs=>{"use strict";c();Object.defineProperty(Zs,"__esModule",{value:!0});Zs._replaceWith=Ove;Zs.replaceExpressionWithStatements=Nve;Zs.replaceInline=Dve;Zs.replaceWith=Ive;Zs.replaceWithMultiple=_ve;Zs.replaceWithSourceString=Cve;var ave=Hb(),Gb=mu(),ove=en(),aF=Wn(),lve=ph(),uve=ve(),cve=tF(),{FUNCTION_TYPES:rF,arrowFunctionExpression:fve,assignmentExpression:pve,awaitExpression:hve,blockStatement:dve,callExpression:mve,cloneNode:iF,expressionStatement:yve,identifier:gve,inheritLeadingComments:Sve,inheritTrailingComments:Tve,inheritsComments:Eve,isExpression:bve,isProgram:xve,isStatement:Pve,removeComments:vve,returnStatement:sF,toSequenceExpression:Ave,validate:nF,yieldExpression:wve}=uve;function _ve(t){var e;this.resync(),t=this._verifyNodeList(t),Sve(t[0],this.node),Tve(t[t.length-1],this.node),(e=aF.path.get(this.parent))==null||e.delete(this.node),this.node=this.container[this.key]=null;let r=this.insertAfter(t);return this.node?this.requeue():this.remove(),r}function Cve(t){this.resync();let e;try{t=`(${t})`,e=(0,lve.parse)(t)}catch(i){let s=i.loc;throw s&&(i.message+=` - make sure this is an expression.
53
+ `+(0,ave.codeFrameColumns)(t,{start:{line:s.line,column:s.column+1}}),i.code="BABEL_REPLACE_SOURCE_ERROR"),i}let r=e.program.body[0].expression;return Gb.default.removeProperties(r),this.replaceWith(r)}function Ive(t){if(this.resync(),this.removed)throw new Error("You can't replace this node, we've already removed it");let e=t instanceof ove.default?t.node:t;if(!e)throw new Error("You passed `path.replaceWith()` a falsy node, use `path.remove()` instead");if(this.node===e)return[this];if(this.isProgram()&&!xve(e))throw new Error("You can only replace a Program root node with another Program node");if(Array.isArray(e))throw new Error("Don't use `path.replaceWith()` with an array of nodes, use `path.replaceWithMultiple()`");if(typeof e=="string")throw new Error("Don't use `path.replaceWith()` with a source string, use `path.replaceWithSourceString()`");let r="";if(this.isNodeType("Statement")&&bve(e)&&!this.canHaveVariableDeclarationOrExpression()&&!this.canSwapBetweenExpressionAndStatement(e)&&!this.parentPath.isExportDefaultDeclaration()&&(e=yve(e),r="expression"),this.isNodeType("Expression")&&Pve(e)&&!this.canHaveVariableDeclarationOrExpression()&&!this.canSwapBetweenExpressionAndStatement(e))return this.replaceExpressionWithStatements([e]);let i=this.node;return i&&(Eve(e,i),vve(i)),this._replaceWith(e),this.type=e.type,this.setScope(),this.requeue(),[r?this.get(r):this]}function Ove(t){var e;if(!this.container)throw new ReferenceError("Container is falsy");this.inList?nF(this.parent,this.key,[t]):nF(this.parent,this.key,t),this.debug(`Replace with ${t==null?void 0:t.type}`),(e=aF.path.get(this.parent))==null||e.set(t,this).delete(this.node),this.node=this.container[this.key]=t}function Nve(t){this.resync();let e=Ave(t,this.scope);if(e)return this.replaceWith(e)[0].get("expressions");let r=this.getFunctionParent(),i=r==null?void 0:r.is("async"),s=r==null?void 0:r.is("generator"),n=fve([],dve(t));this.replaceWith(mve(n,[]));let a=this.get("callee");(0,cve.default)(a.get("body"),p=>{this.scope.push({id:p})},"var");let o=this.get("callee").getCompletionRecords();for(let p of o){if(!p.isExpressionStatement())continue;let h=p.findParent(d=>d.isLoop());if(h){let d=h.getData("expressionReplacementReturnUid");d?d=gve(d.name):(d=a.scope.generateDeclaredUidIdentifier("ret"),a.get("body").pushContainer("body",sF(iF(d))),h.setData("expressionReplacementReturnUid",d)),p.get("expression").replaceWith(pve("=",iF(d),p.node.expression))}else p.replaceWith(sF(p.node.expression))}a.arrowFunctionToExpression();let l=a,u=i&&Gb.default.hasType(this.get("callee.body").node,"AwaitExpression",rF),f=s&&Gb.default.hasType(this.get("callee.body").node,"YieldExpression",rF);return u&&(l.set("async",!0),f||this.replaceWith(hve(this.node))),f&&(l.set("generator",!0),this.replaceWith(wve(this.node,!0))),l.get("body.body")}function Dve(t){if(this.resync(),Array.isArray(t))if(Array.isArray(this.container)){t=this._verifyNodeList(t);let e=this._containerInsertAfter(t);return this.remove(),e}else return this.replaceWithMultiple(t);else return this.replaceWith(t)}});var fF=g(Nh=>{"use strict";c();Object.defineProperty(Nh,"__esModule",{value:!0});Nh.evaluate=Bve;Nh.evaluateTruthy=Mve;var Lve=["String","Number","Math"],kve=["random"];function lF(t){return Lve.includes(t)}function Rve(t){return kve.includes(t)}function Mve(){let t=this.evaluate();if(t.confident)return!!t.value}function rs(t,e){e.confident&&(e.deoptPath=t,e.confident=!1)}var uF=new Map([["undefined",void 0],["Infinity",1/0],["NaN",NaN]]);function er(t,e){let{node:r}=t,{seen:i}=e;if(i.has(r)){let s=i.get(r);if(s.resolved)return s.value;rs(t,e);return}else{let s={resolved:!1};i.set(r,s);let n=Fve(t,e);return e.confident&&(s.resolved=!0,s.value=n),n}}function Fve(t,e){if(e.confident){if(t.isSequenceExpression()){let r=t.get("expressions");return er(r[r.length-1],e)}if(t.isStringLiteral()||t.isNumericLiteral()||t.isBooleanLiteral())return t.node.value;if(t.isNullLiteral())return null;if(t.isTemplateLiteral())return cF(t,t.node.quasis,e);if(t.isTaggedTemplateExpression()&&t.get("tag").isMemberExpression()){let r=t.get("tag.object"),{node:{name:i}}=r,s=t.get("tag.property");if(r.isIdentifier()&&i==="String"&&!t.scope.getBinding(i)&&s.isIdentifier()&&s.node.name==="raw")return cF(t,t.node.quasi.quasis,e,!0)}if(t.isConditionalExpression()){let r=er(t.get("test"),e);return e.confident?er(r?t.get("consequent"):t.get("alternate"),e):void 0}if(t.isExpressionWrapper())return er(t.get("expression"),e);if(t.isMemberExpression()&&!t.parentPath.isCallExpression({callee:t.node})){let r=t.get("property"),i=t.get("object");if(i.isLiteral()){let s=i.node.value,n=typeof s,a=null;if(t.node.computed){if(a=er(r,e),!e.confident)return}else r.isIdentifier()&&(a=r.node.name);if((n==="number"||n==="string")&&a!=null&&(typeof a=="number"||typeof a=="string"))return s[a]}}if(t.isReferencedIdentifier()){let r=t.scope.getBinding(t.node.name);if(r){if(r.constantViolations.length>0||t.node.start<r.path.node.end){rs(r.path,e);return}if(r.hasValue)return r.value}let i=t.node.name;if(uF.has(i)){if(!r)return uF.get(i);rs(r.path,e);return}let s=t.resolve();if(s===t){rs(t,e);return}else return er(s,e)}if(t.isUnaryExpression({prefix:!0})){if(t.node.operator==="void")return;let r=t.get("argument");if(t.node.operator==="typeof"&&(r.isFunction()||r.isClass()))return"function";let i=er(r,e);if(!e.confident)return;switch(t.node.operator){case"!":return!i;case"+":return+i;case"-":return-i;case"~":return~i;case"typeof":return typeof i}}if(t.isArrayExpression()){let r=[],i=t.get("elements");for(let s of i){let n=s.evaluate();if(n.confident)r.push(n.value);else{rs(n.deopt,e);return}}return r}if(t.isObjectExpression()){let r={},i=t.get("properties");for(let s of i){if(s.isObjectMethod()||s.isSpreadElement()){rs(s,e);return}let n=s.get("key"),a;if(s.node.computed){if(a=n.evaluate(),!a.confident){rs(a.deopt,e);return}a=a.value}else n.isIdentifier()?a=n.node.name:a=n.node.value;let l=s.get("value").evaluate();if(!l.confident){rs(l.deopt,e);return}l=l.value,r[a]=l}return r}if(t.isLogicalExpression()){let r=e.confident,i=er(t.get("left"),e),s=e.confident;e.confident=r;let n=er(t.get("right"),e),a=e.confident;switch(t.node.operator){case"||":return e.confident=s&&(!!i||a),e.confident?i||n:void 0;case"&&":return e.confident=s&&(!i||a),e.confident?i&&n:void 0;case"??":return e.confident=s&&(i!=null||a),e.confident?i??n:void 0}}if(t.isBinaryExpression()){let r=er(t.get("left"),e);if(!e.confident)return;let i=er(t.get("right"),e);if(!e.confident)return;switch(t.node.operator){case"-":return r-i;case"+":return r+i;case"/":return r/i;case"*":return r*i;case"%":return r%i;case"**":return Math.pow(r,i);case"<":return r<i;case">":return r>i;case"<=":return r<=i;case">=":return r>=i;case"==":return r==i;case"!=":return r!=i;case"===":return r===i;case"!==":return r!==i;case"|":return r|i;case"&":return r&i;case"^":return r^i;case"<<":return r<<i;case">>":return r>>i;case">>>":return r>>>i}}if(t.isCallExpression()){let r=t.get("callee"),i,s;if(r.isIdentifier()&&!t.scope.getBinding(r.node.name)&&lF(r.node.name)&&(s=global[r.node.name]),r.isMemberExpression()){let n=r.get("object"),a=r.get("property");if(n.isIdentifier()&&a.isIdentifier()&&lF(n.node.name)&&!Rve(a.node.name)&&(i=global[n.node.name],s=i[a.node.name]),n.isLiteral()&&a.isIdentifier()){let o=typeof n.node.value;(o==="string"||o==="number")&&(i=n.node.value,s=i[a.node.name])}}if(s){let n=t.get("arguments").map(a=>er(a,e));return e.confident?s.apply(i,n):void 0}}rs(t,e)}}function cF(t,e,r,i=!1){let s="",n=0,a=t.isTemplateLiteral()?t.get("expressions"):t.get("quasi.expressions");for(let o of e){if(!r.confident)break;s+=i?o.value.raw:o.value.cooked;let l=a[n++];l&&(s+=String(er(l,r)))}if(r.confident)return s}function Bve(){let t={confident:!0,deoptPath:null,seen:new Map},e=er(this,t);return t.confident||(e=void 0),{confident:t.confident,deopt:t.deoptPath,value:e}}});var hF=g(Kr=>{"use strict";c();Object.defineProperty(Kr,"__esModule",{value:!0});Kr.statements=Kr.statement=Kr.smart=Kr.program=Kr.expression=void 0;var jve=ve(),{assertExpressionStatement:qve}=jve;function Yb(t){return{code:e=>`/* @babel/template */;
54
+ ${e}`,validate:()=>{},unwrap:e=>t(e.program.body.slice(1))}}var Uve=Yb(t=>t.length>1?t:t[0]);Kr.smart=Uve;var $ve=Yb(t=>t);Kr.statements=$ve;var Vve=Yb(t=>{if(t.length===0)throw new Error("Found nothing to return.");if(t.length>1)throw new Error("Found multiple statements but wanted one");return t[0]});Kr.statement=Vve;var pF={code:t=>`(
55
+ ${t}
56
+ )`,validate:t=>{if(t.program.body.length>1)throw new Error("Found multiple statements but wanted one");if(pF.unwrap(t).start===0)throw new Error("Parse result included parens.")},unwrap:({program:t})=>{let[e]=t.body;return qve(e),e.expression}};Kr.expression=pF;var Kve={code:t=>t,validate:()=>{},unwrap:t=>t.program};Kr.program=Kve});var Dh=g(Tu=>{"use strict";c();Object.defineProperty(Tu,"__esModule",{value:!0});Tu.merge=Gve;Tu.normalizeReplacements=Xve;Tu.validate=Yve;var Hve=["placeholderWhitelist","placeholderPattern","preserveComments","syntacticPlaceholders"];function Wve(t,e){if(t==null)return{};var r={},i=Object.keys(t),s,n;for(n=0;n<i.length;n++)s=i[n],!(e.indexOf(s)>=0)&&(r[s]=t[s]);return r}function Gve(t,e){let{placeholderWhitelist:r=t.placeholderWhitelist,placeholderPattern:i=t.placeholderPattern,preserveComments:s=t.preserveComments,syntacticPlaceholders:n=t.syntacticPlaceholders}=e;return{parser:Object.assign({},t.parser,e.parser),placeholderWhitelist:r,placeholderPattern:i,preserveComments:s,syntacticPlaceholders:n}}function Yve(t){if(t!=null&&typeof t!="object")throw new Error("Unknown template options.");let e=t||{},{placeholderWhitelist:r,placeholderPattern:i,preserveComments:s,syntacticPlaceholders:n}=e,a=Wve(e,Hve);if(r!=null&&!(r instanceof Set))throw new Error("'.placeholderWhitelist' must be a Set, null, or undefined");if(i!=null&&!(i instanceof RegExp)&&i!==!1)throw new Error("'.placeholderPattern' must be a RegExp, false, null, or undefined");if(s!=null&&typeof s!="boolean")throw new Error("'.preserveComments' must be a boolean, null, or undefined");if(n!=null&&typeof n!="boolean")throw new Error("'.syntacticPlaceholders' must be a boolean, null, or undefined");if(n===!0&&(r!=null||i!=null))throw new Error("'.placeholderWhitelist' and '.placeholderPattern' aren't compatible with '.syntacticPlaceholders: true'");return{parser:a,placeholderWhitelist:r||void 0,placeholderPattern:i??void 0,preserveComments:s??void 0,syntacticPlaceholders:n??void 0}}function Xve(t){if(Array.isArray(t))return t.reduce((e,r,i)=>(e["$"+i]=r,e),{});if(typeof t=="object"||t==null)return t||void 0;throw new Error("Template replacements must be an array, object, null, or undefined")}});var zb=g(Xb=>{"use strict";c();Object.defineProperty(Xb,"__esModule",{value:!0});Xb.default=uAe;var zve=ve(),Jve=ph(),Qve=Hb(),{isCallExpression:Zve,isExpressionStatement:eAe,isFunction:tAe,isIdentifier:rAe,isJSXIdentifier:iAe,isNewExpression:sAe,isPlaceholder:Lh,isStatement:nAe,isStringLiteral:dF,removePropertiesDeep:aAe,traverse:oAe}=zve,lAe=/^[_$A-Z0-9]+$/;function uAe(t,e,r){let{placeholderWhitelist:i,placeholderPattern:s,preserveComments:n,syntacticPlaceholders:a}=r,o=pAe(e,r.parser,a);aAe(o,{preserveComments:n}),t.validate(o);let l={syntactic:{placeholders:[],placeholderNames:new Set},legacy:{placeholders:[],placeholderNames:new Set},placeholderWhitelist:i,placeholderPattern:s,syntacticPlaceholders:a};return oAe(o,cAe,l),Object.assign({ast:o},l.syntactic.placeholders.length?l.syntactic:l.legacy)}function cAe(t,e,r){var i;let s,n=r.syntactic.placeholders.length>0;if(Lh(t)){if(r.syntacticPlaceholders===!1)throw new Error("%%foo%%-style placeholders can't be used when '.syntacticPlaceholders' is false.");s=t.name.name,n=!0}else{if(n||r.syntacticPlaceholders)return;if(rAe(t)||iAe(t))s=t.name;else if(dF(t))s=t.value;else return}if(n&&(r.placeholderPattern!=null||r.placeholderWhitelist!=null))throw new Error("'.placeholderWhitelist' and '.placeholderPattern' aren't compatible with '.syntacticPlaceholders: true'");if(!n&&(r.placeholderPattern===!1||!(r.placeholderPattern||lAe).test(s))&&!((i=r.placeholderWhitelist)!=null&&i.has(s)))return;e=e.slice();let{node:a,key:o}=e[e.length-1],l;dF(t)||Lh(t,{expectedNode:"StringLiteral"})?l="string":sAe(a)&&o==="arguments"||Zve(a)&&o==="arguments"||tAe(a)&&o==="params"?l="param":eAe(a)&&!Lh(t)?(l="statement",e=e.slice(0,-1)):nAe(t)&&Lh(t)?l="statement":l="other";let{placeholders:u,placeholderNames:f}=n?r.syntactic:r.legacy;u.push({name:s,type:l,resolve:p=>fAe(p,e),isDuplicate:f.has(s)}),f.add(s)}function fAe(t,e){let r=t;for(let n=0;n<e.length-1;n++){let{key:a,index:o}=e[n];o===void 0?r=r[a]:r=r[a][o]}let{key:i,index:s}=e[e.length-1];return{parent:r,key:i,index:s}}function pAe(t,e,r){let i=(e.plugins||[]).slice();r!==!1&&i.push("placeholders"),e=Object.assign({allowReturnOutsideFunction:!0,allowSuperOutsideMethod:!0,sourceType:"module"},e,{plugins:i});try{return(0,Jve.parse)(t,e)}catch(s){let n=s.loc;throw n&&(s.message+=`
57
+ `+(0,Qve.codeFrameColumns)(t,{start:n}),s.code="BABEL_TEMPLATE_PARSE_ERROR"),s}}});var ex=g(Zb=>{"use strict";c();Object.defineProperty(Zb,"__esModule",{value:!0});Zb.default=SAe;var hAe=ve(),{blockStatement:dAe,cloneNode:Qb,emptyStatement:mAe,expressionStatement:Jb,identifier:kh,isStatement:mF,isStringLiteral:yAe,stringLiteral:gAe,validate:yF}=hAe;function SAe(t,e){let r=Qb(t.ast);return e&&(t.placeholders.forEach(i=>{if(!Object.prototype.hasOwnProperty.call(e,i.name)){let s=i.name;throw new Error(`Error: No substitution given for "${s}". If this is not meant to be a
58
+ placeholder you may want to consider passing one of the following options to @babel/template:
59
+ - { placeholderPattern: false, placeholderWhitelist: new Set(['${s}'])}
60
+ - { placeholderPattern: /^${s}$/ }`)}}),Object.keys(e).forEach(i=>{if(!t.placeholderNames.has(i))throw new Error(`Unknown substitution "${i}" given`)})),t.placeholders.slice().reverse().forEach(i=>{try{TAe(i,r,e&&e[i.name]||null)}catch(s){throw s.message=`@babel/template placeholder "${i.name}": ${s.message}`,s}}),r}function TAe(t,e,r){t.isDuplicate&&(Array.isArray(r)?r=r.map(a=>Qb(a)):typeof r=="object"&&(r=Qb(r)));let{parent:i,key:s,index:n}=t.resolve(e);if(t.type==="string"){if(typeof r=="string"&&(r=gAe(r)),!r||!yAe(r))throw new Error("Expected string substitution")}else if(t.type==="statement")n===void 0?r?Array.isArray(r)?r=dAe(r):typeof r=="string"?r=Jb(kh(r)):mF(r)||(r=Jb(r)):r=mAe():r&&!Array.isArray(r)&&(typeof r=="string"&&(r=kh(r)),mF(r)||(r=Jb(r)));else if(t.type==="param"){if(typeof r=="string"&&(r=kh(r)),n===void 0)throw new Error("Assertion failure.")}else if(typeof r=="string"&&(r=kh(r)),Array.isArray(r))throw new Error("Cannot replace single expression with an array.");if(n===void 0)yF(i,s,r),i[s]=r;else{let a=i[s].slice();t.type==="statement"||t.type==="param"?r==null?a.splice(n,1):Array.isArray(r)?a.splice(n,1,...r):a[n]=r:a[n]=r,yF(i,s,a),i[s]=a}}});var gF=g(tx=>{"use strict";c();Object.defineProperty(tx,"__esModule",{value:!0});tx.default=PAe;var EAe=Dh(),bAe=zb(),xAe=ex();function PAe(t,e,r){e=t.code(e);let i;return s=>{let n=(0,EAe.normalizeReplacements)(s);return i||(i=(0,bAe.default)(t,e,r)),t.unwrap((0,xAe.default)(i,n))}}});var SF=g(rx=>{"use strict";c();Object.defineProperty(rx,"__esModule",{value:!0});rx.default=_Ae;var vAe=Dh(),AAe=zb(),wAe=ex();function _Ae(t,e,r){let{metadata:i,names:s}=CAe(t,e,r);return n=>{let a={};return n.forEach((o,l)=>{a[s[l]]=o}),o=>{let l=(0,vAe.normalizeReplacements)(o);return l&&Object.keys(l).forEach(u=>{if(Object.prototype.hasOwnProperty.call(a,u))throw new Error("Unexpected replacement overlap.")}),t.unwrap((0,wAe.default)(i,l?Object.assign(l,a):a))}}}function CAe(t,e,r){let i="BABEL_TPL$",s=e.join("");do i="$$"+i;while(s.includes(i));let{names:n,code:a}=IAe(e,i);return{metadata:(0,AAe.default)(t,t.code(a),{parser:r.parser,placeholderWhitelist:new Set(n.concat(r.placeholderWhitelist?Array.from(r.placeholderWhitelist):[])),placeholderPattern:r.placeholderPattern,preserveComments:r.preserveComments,syntacticPlaceholders:r.syntacticPlaceholders}),names:n}}function IAe(t,e){let r=[],i=t[0];for(let s=1;s<t.length;s++){let n=`${e}${s-1}`;r.push(n),i+=n+t[s]}return{names:r,code:i}}});var vF=g(ix=>{"use strict";c();Object.defineProperty(ix,"__esModule",{value:!0});ix.default=PF;var vi=Dh(),TF=gF(),EF=SF(),bF=(0,vi.validate)({placeholderPattern:!1});function PF(t,e){let r=new WeakMap,i=new WeakMap,s=e||(0,vi.validate)(null);return Object.assign((n,...a)=>{if(typeof n=="string"){if(a.length>1)throw new Error("Unexpected extra params.");return xF((0,TF.default)(t,n,(0,vi.merge)(s,(0,vi.validate)(a[0]))))}else if(Array.isArray(n)){let o=r.get(n);return o||(o=(0,EF.default)(t,n,s),r.set(n,o)),xF(o(a))}else if(typeof n=="object"&&n){if(a.length>0)throw new Error("Unexpected extra params.");return PF(t,(0,vi.merge)(s,(0,vi.validate)(n)))}throw new Error(`Unexpected template param ${typeof n}`)},{ast:(n,...a)=>{if(typeof n=="string"){if(a.length>1)throw new Error("Unexpected extra params.");return(0,TF.default)(t,n,(0,vi.merge)((0,vi.merge)(s,(0,vi.validate)(a[0])),bF))()}else if(Array.isArray(n)){let o=i.get(n);return o||(o=(0,EF.default)(t,n,(0,vi.merge)(s,bF)),i.set(n,o)),o(a)()}throw new Error(`Unexpected template param ${typeof n}`)}})}function xF(t){let e="";try{throw new Error}catch(r){r.stack&&(e=r.stack.split(`
61
+ `).slice(3).join(`
62
+ `))}return r=>{try{return t(r)}catch(i){throw i.stack+=`
63
+ =============
64
+ ${e}`,i}}}});var IF=g(yr=>{"use strict";c();Object.defineProperty(yr,"__esModule",{value:!0});yr.statements=yr.statement=yr.smart=yr.program=yr.expression=yr.default=void 0;var Eu=hF(),bu=vF(),Rh=(0,bu.default)(Eu.smart);yr.smart=Rh;var AF=(0,bu.default)(Eu.statement);yr.statement=AF;var wF=(0,bu.default)(Eu.statements);yr.statements=wF;var _F=(0,bu.default)(Eu.expression);yr.expression=_F;var CF=(0,bu.default)(Eu.program);yr.program=CF;var OAe=Object.assign(Rh.bind(void 0),{smart:Rh,statement:AF,statements:wF,expression:_F,program:CF,ast:Rh.ast});yr.default=OAe});var RF=g(sx=>{"use strict";c();Object.defineProperty(sx,"__esModule",{value:!0});sx.default=JAe;var LF=IF(),NAe=ve(),{NOT_LOCAL_BINDING:OF,cloneNode:DAe,identifier:LAe,isAssignmentExpression:kAe,isAssignmentPattern:RAe,isFunction:kF,isIdentifier:NF,isLiteral:DF,isNullLiteral:MAe,isObjectMethod:FAe,isObjectProperty:BAe,isRegExpLiteral:jAe,isRestElement:qAe,isTemplateLiteral:UAe,isVariableDeclarator:$Ae,toBindingIdentifierName:VAe}=NAe;function KAe(t){let e=t.params.findIndex(r=>RAe(r)||qAe(r));return e===-1?t.params.length:e}var HAe=LF.default.statement(`
65
+ (function (FUNCTION_KEY) {
66
+ function FUNCTION_ID() {
67
+ return FUNCTION_KEY.apply(this, arguments);
68
+ }
69
+
70
+ FUNCTION_ID.toString = function () {
71
+ return FUNCTION_KEY.toString();
72
+ }
73
+
74
+ return FUNCTION_ID;
75
+ })(FUNCTION)
76
+ `),WAe=LF.default.statement(`
77
+ (function (FUNCTION_KEY) {
78
+ function* FUNCTION_ID() {
79
+ return yield* FUNCTION_KEY.apply(this, arguments);
80
+ }
81
+
82
+ FUNCTION_ID.toString = function () {
83
+ return FUNCTION_KEY.toString();
84
+ };
85
+
86
+ return FUNCTION_ID;
87
+ })(FUNCTION)
88
+ `),GAe={"ReferencedIdentifier|BindingIdentifier"(t,e){t.node.name!==e.name||t.scope.getBindingIdentifier(e.name)!==e.outerDeclar||(e.selfReference=!0,t.stop())}};function YAe(t){return MAe(t)?"null":jAe(t)?`_${t.pattern}_${t.flags}`:UAe(t)?t.quasis.map(e=>e.value.raw).join(""):t.value!==void 0?t.value+"":""}function XAe(t,e,r,i){if(t.selfReference)if(i.hasBinding(r.name)&&!i.hasGlobal(r.name))i.rename(r.name);else{if(!kF(e))return;let s=HAe;e.generator&&(s=WAe);let n=s({FUNCTION:e,FUNCTION_ID:r,FUNCTION_KEY:i.generateUidIdentifier(r.name)}).expression,a=n.callee.body.body[0].params;for(let o=0,l=KAe(e);o<l;o++)a.push(i.generateUidIdentifier("x"));return n}e.id=r,i.getProgramParent().references[r.name]=!0}function zAe(t,e,r){let i={selfAssignment:!1,selfReference:!1,outerDeclar:r.getBindingIdentifier(e),name:e},s=r.getOwnBinding(e);return s?s.kind==="param"&&(i.selfReference=!0):(i.outerDeclar||r.hasGlobal(e))&&r.traverse(t,GAe,i),i}function JAe({node:t,parent:e,scope:r,id:i},s=!1,n=!1){if(t.id)return;if((BAe(e)||FAe(e,{kind:"method"}))&&(!e.computed||DF(e.key)))i=e.key;else if($Ae(e)){if(i=e.id,NF(i)&&!s){let u=r.parent.getBinding(i.name);if(u&&u.constant&&r.getBinding(i.name)===u){t.id=DAe(i),t.id[OF]=!0;return}}}else if(kAe(e,{operator:"="}))i=e.left;else if(!i)return;let a;if(i&&DF(i)?a=YAe(i):i&&NF(i)&&(a=i.name),a===void 0||!n&&kF(t)&&/[\uD800-\uDFFF]/.test(a))return;a=VAe(a);let o=LAe(a);o[OF]=!0;let l=zAe(t,a,r);return XAe(l,t,o,r)||t}});var qF=g(Jn=>{"use strict";c();Object.defineProperty(Jn,"__esModule",{value:!0});Jn.arrowFunctionToExpression=Twe;Jn.ensureBlock=ywe;Jn.toComputedKey=mwe;Jn.unwrapFunctionEnvironment=gwe;var QAe=ve(),ox=vb(),ZAe=RF(),lx=dh(),{arrowFunctionExpression:ux,assignmentExpression:zn,binaryExpression:nx,blockStatement:ewe,callExpression:Ao,conditionalExpression:twe,expressionStatement:MF,identifier:rt,isIdentifier:rwe,jsxIdentifier:iwe,logicalExpression:swe,LOGICAL_OPERATORS:nwe,memberExpression:ni,metaProperty:awe,numericLiteral:owe,objectExpression:lwe,restElement:uwe,returnStatement:cwe,sequenceExpression:fwe,spreadElement:pwe,stringLiteral:FF,super:ax,thisExpression:xu,toExpression:hwe,unaryExpression:dwe}=QAe;function mwe(){let t;if(this.isMemberExpression())t=this.node.property;else if(this.isProperty()||this.isMethod())t=this.node.key;else throw new ReferenceError("todo");return this.node.computed||rwe(t)&&(t=FF(t.name)),t}function ywe(){let t=this.get("body"),e=t.node;if(Array.isArray(t))throw new Error("Can't convert array path to a block statement");if(!e)throw new Error("Can't convert node without a body");if(t.isBlockStatement())return e;let r=[],i="body",s,n;t.isStatement()?(n="body",s=0,r.push(t.node)):(i+=".body.0",this.isFunction()?(s="argument",r.push(cwe(t.node))):(s="expression",r.push(MF(t.node)))),this.node.body=ewe(r);let a=this.get(i);return t.setup(a,n?a.node[n]:a.node,n,s),this.node}Jn.arrowFunctionToShadowed=function(){this.isArrowFunctionExpression()&&this.arrowFunctionToExpression()};function gwe(){if(!this.isArrowFunctionExpression()&&!this.isFunctionExpression()&&!this.isFunctionDeclaration())throw this.buildCodeFrameError("Can only unwrap the environment of a function.");BF(this)}function Swe(t,e){t.node.type=e}function Twe({allowInsertArrow:t=!0,allowInsertArrowWithRest:e=t,noNewArrows:r=!(()=>{var i;return(i=arguments[0])==null?void 0:i.specCompliant})()}={}){if(!this.isArrowFunctionExpression())throw this.buildCodeFrameError("Cannot convert non-arrow function to a function expression.");let{thisBinding:i,fnPath:s}=BF(this,r,t,e);if(s.ensureBlock(),Swe(s,"FunctionExpression"),!r){let n=i?null:s.scope.generateUidIdentifier("arrowCheckId");return n&&s.parentPath.scope.push({id:n,init:lwe([])}),s.get("body").unshiftContainer("body",MF(Ao(this.hub.addHelper("newArrowCheck"),[xu(),rt(n?n.name:i)]))),s.replaceWith(Ao(ni((0,ZAe.default)(this,!0)||s.node,rt("bind")),[n?rt(n.name):xu()])),s.get("callee.object")}return s}var Ewe=(0,lx.merge)([{CallExpression(t,{allSuperCalls:e}){t.get("callee").isSuper()&&e.push(t)}},ox.default]);function BF(t,e=!0,r=!0,i=!0){let s,n=t.findParent(d=>{if(d.isArrowFunctionExpression()){var T;return(T=s)!=null||(s=d),!1}return d.isFunction()||d.isProgram()||d.isClassProperty({static:!1})||d.isClassPrivateProperty({static:!1})}),a=n.isClassMethod({kind:"constructor"});if(n.isClassProperty()||n.isClassPrivateProperty())if(s)n=s;else if(r)t.replaceWith(Ao(ux([],hwe(t.node)),[])),n=t.get("callee"),t=n.get("body");else throw t.buildCodeFrameError("Unable to transform arrow inside class property");let{thisPaths:o,argumentsPaths:l,newTargetPaths:u,superProps:f,superCalls:p}=Cwe(t);if(a&&p.length>0){if(!r)throw p[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(!i)throw p[0].buildCodeFrameError("When using '@babel/plugin-transform-parameters', it's not possible to compile `super()` in an arrow function with default or rest parameters without compiling classes.\nPlease add '@babel/plugin-transform-classes' to your Babel configuration.");let d=[];n.traverse(Ewe,{allSuperCalls:d});let T=Awe(n);d.forEach(b=>{let x=rt(T);x.loc=b.node.callee.loc,b.get("callee").replaceWith(x)})}if(l.length>0){let d=Pu(n,"arguments",()=>{let T=()=>rt("arguments");return n.scope.path.isProgram()?twe(nx("===",dwe("typeof",T()),FF("undefined")),n.scope.buildUndefinedNode(),T()):T()});l.forEach(T=>{let b=rt(d);b.loc=T.node.loc,T.replaceWith(b)})}if(u.length>0){let d=Pu(n,"newtarget",()=>awe(rt("new"),rt("target")));u.forEach(T=>{let b=rt(d);b.loc=T.node.loc,T.replaceWith(b)})}if(f.length>0){if(!r)throw f[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.");f.reduce((T,b)=>T.concat(xwe(b)),[]).forEach(T=>{let b=T.node.computed?"":T.get("property").node.name,x=T.parentPath,_=x.isAssignmentExpression({left:T.node}),R=x.isCallExpression({callee:T.node}),k=x.isTaggedTemplateExpression({tag:T.node}),M=wwe(n,_,b),O=[];if(T.node.computed&&O.push(T.get("property").node),_){let F=x.node.right;O.push(F)}let L=Ao(rt(M),O);R?(x.unshiftContainer("arguments",xu()),T.replaceWith(ni(L,rt("call"))),o.push(x.get("arguments.0"))):_?x.replaceWith(L):k?(T.replaceWith(Ao(ni(L,rt("bind"),!1),[xu()])),o.push(T.get("arguments.0"))):T.replaceWith(L)})}let h;return(o.length>0||!e)&&(h=vwe(n,a),(e||a&&jF(n))&&(o.forEach(d=>{let T=d.isJSX()?iwe(h):rt(h);T.loc=d.node.loc,d.replaceWith(T)}),e||(h=null))),{thisBinding:h,fnPath:t}}function bwe(t){return nwe.includes(t)}function xwe(t){if(t.parentPath.isAssignmentExpression()&&t.parentPath.node.operator!=="="){let r=t.parentPath,i=r.node.operator.slice(0,-1),s=r.node.right,n=bwe(i);if(t.node.computed){let a=t.scope.generateDeclaredUidIdentifier("tmp"),o=t.node.object,l=t.node.property;r.get("left").replaceWith(ni(o,zn("=",a,l),!0)),r.get("right").replaceWith(e(n?"=":i,ni(o,rt(a.name),!0),s))}else{let a=t.node.object,o=t.node.property;r.get("left").replaceWith(ni(a,o)),r.get("right").replaceWith(e(n?"=":i,ni(a,rt(o.name)),s))}return n?r.replaceWith(swe(i,r.node.left,r.node.right)):r.node.operator="=",[r.get("left"),r.get("right").get("left")]}else if(t.parentPath.isUpdateExpression()){let r=t.parentPath,i=t.scope.generateDeclaredUidIdentifier("tmp"),s=t.node.computed?t.scope.generateDeclaredUidIdentifier("prop"):null,n=[zn("=",i,ni(t.node.object,s?zn("=",s,t.node.property):t.node.property,t.node.computed)),zn("=",ni(t.node.object,s?rt(s.name):t.node.property,t.node.computed),nx(t.parentPath.node.operator[0],rt(i.name),owe(1)))];t.parentPath.node.prefix||n.push(rt(i.name)),r.replaceWith(fwe(n));let a=r.get("expressions.0.right"),o=r.get("expressions.1.left");return[a,o]}return[t];function e(r,i,s){return r==="="?zn("=",i,s):nx(r,i,s)}}function jF(t){return t.isClassMethod()&&!!t.parentPath.parentPath.node.superClass}var Pwe=(0,lx.merge)([{CallExpression(t,{supers:e,thisBinding:r}){t.get("callee").isSuper()&&(e.has(t.node)||(e.add(t.node),t.replaceWithMultiple([t.node,zn("=",rt(r),rt("this"))])))}},ox.default]);function vwe(t,e){return Pu(t,"this",r=>{if(!e||!jF(t))return xu();t.traverse(Pwe,{supers:new WeakSet,thisBinding:r})})}function Awe(t){return Pu(t,"supercall",()=>{let e=t.scope.generateUidIdentifier("args");return ux([uwe(e)],Ao(ax(),[pwe(rt(e.name))]))})}function wwe(t,e,r){return Pu(t,`superprop_${e?"set":"get"}:${r||""}`,()=>{let s=[],n;if(r)n=ni(ax(),rt(r));else{let a=t.scope.generateUidIdentifier("prop");s.unshift(a),n=ni(ax(),rt(a.name),!0)}if(e){let a=t.scope.generateUidIdentifier("value");s.push(a),n=zn("=",n,rt(a.name))}return ux(s,n)})}function Pu(t,e,r){let i="binding:"+e,s=t.getData(i);if(!s){let n=t.scope.generateUidIdentifier(e);s=n.name,t.setData(i,s),t.scope.push({id:n,init:r(s)})}return s}var _we=(0,lx.merge)([{ThisExpression(t,{thisPaths:e}){e.push(t)},JSXIdentifier(t,{thisPaths:e}){t.node.name==="this"&&(!t.parentPath.isJSXMemberExpression({object:t.node})&&!t.parentPath.isJSXOpeningElement({name:t.node})||e.push(t))},CallExpression(t,{superCalls:e}){t.get("callee").isSuper()&&e.push(t)},MemberExpression(t,{superProps:e}){t.get("object").isSuper()&&e.push(t)},Identifier(t,{argumentsPaths:e}){if(!t.isReferencedIdentifier({name:"arguments"}))return;let r=t.scope;do{if(r.hasOwnBinding("arguments")){r.rename("arguments");return}if(r.path.isFunction()&&!r.path.isArrowFunctionExpression())break}while(r=r.parent);e.push(t)},MetaProperty(t,{newTargetPaths:e}){t.get("meta").isIdentifier({name:"new"})&&t.get("property").isIdentifier({name:"target"})&&e.push(t)}},ox.default]);function Cwe(t){let e=[],r=[],i=[],s=[],n=[];return t.traverse(_we,{thisPaths:e,argumentsPaths:r,newTargetPaths:i,superProps:s,superCalls:n}),{thisPaths:e,argumentsPaths:r,newTargetPaths:i,superProps:s,superCalls:n}}});var WF=g(ct=>{"use strict";c();Object.defineProperty(ct,"__esModule",{value:!0});ct._guessExecutionStatusRelativeTo=Qwe;ct._resolve=r_e;ct.canHaveVariableDeclarationOrExpression=Kwe;ct.canSwapBetweenExpressionAndStatement=Hwe;ct.equals=$we;ct.getSource=Xwe;ct.has=HF;ct.is=void 0;ct.isCompletionRecord=Wwe;ct.isConstantExpression=i_e;ct.isInStrictMode=s_e;ct.isNodeType=Vwe;ct.isStatementOrBlock=Gwe;ct.isStatic=jwe;ct.isnt=Uwe;ct.matchesPattern=Bwe;ct.referencesImport=Ywe;ct.resolve=t_e;ct.willIMaybeExecuteBefore=zwe;var Iwe=ve(),{STATEMENT_OR_BLOCK_KEYS:Owe,VISITOR_KEYS:Nwe,isBlockStatement:KF,isExpression:Dwe,isIdentifier:Lwe,isLiteral:kwe,isStringLiteral:Rwe,isType:Mwe,matchesPattern:Fwe}=Iwe;function Bwe(t,e){return Fwe(this.node,t,e)}function HF(t){let e=this.node&&this.node[t];return e&&Array.isArray(e)?!!e.length:!!e}function jwe(){return this.scope.isStatic(this.node)}var qwe=HF;ct.is=qwe;function Uwe(t){return!this.has(t)}function $we(t,e){return this.node[t]===e}function Vwe(t){return Mwe(this.type,t)}function Kwe(){return(this.key==="init"||this.key==="left")&&this.parentPath.isFor()}function Hwe(t){return this.key!=="body"||!this.parentPath.isArrowFunctionExpression()?!1:this.isExpression()?KF(t):this.isBlockStatement()?Dwe(t):!1}function Wwe(t){let e=this,r=!0;do{let{type:i,container:s}=e;if(!r&&(e.isFunction()||i==="StaticBlock"))return!!t;if(r=!1,Array.isArray(s)&&e.key!==s.length-1)return!1}while((e=e.parentPath)&&!e.isProgram()&&!e.isDoExpression());return!0}function Gwe(){return this.parentPath.isLabeledStatement()||KF(this.container)?!1:Owe.includes(this.key)}function Ywe(t,e){if(!this.isReferencedIdentifier()){if(this.isJSXMemberExpression()&&this.node.property.name===e||(this.isMemberExpression()||this.isOptionalMemberExpression())&&(this.node.computed?Rwe(this.node.property,{value:e}):this.node.property.name===e)){let n=this.get("object");return n.isReferencedIdentifier()&&n.referencesImport(t,"*")}return!1}let r=this.scope.getBinding(this.node.name);if(!r||r.kind!=="module")return!1;let i=r.path,s=i.parentPath;if(!s.isImportDeclaration())return!1;if(s.node.source.value===t){if(!e)return!0}else return!1;return!!(i.isImportDefaultSpecifier()&&e==="default"||i.isImportNamespaceSpecifier()&&e==="*"||i.isImportSpecifier()&&Lwe(i.node.imported,{name:e}))}function Xwe(){let t=this.node;if(t.end){let e=this.hub.getCode();if(e)return e.slice(t.start,t.end)}return""}function zwe(t){return this._guessExecutionStatusRelativeTo(t)!=="after"}function UF(t){return t.isProgram()?t:(t.parentPath.scope.getFunctionParent()||t.parentPath.scope.getProgramParent()).path}function Jwe(t,e){switch(t){case"LogicalExpression":return e==="right";case"ConditionalExpression":case"IfStatement":return e==="consequent"||e==="alternate";case"WhileStatement":case"DoWhileStatement":case"ForInStatement":case"ForOfStatement":return e==="body";case"ForStatement":return e==="body"||e==="update";case"SwitchStatement":return e==="cases";case"TryStatement":return e==="handler";case"AssignmentPattern":return e==="right";case"OptionalMemberExpression":return e==="property";case"OptionalCallExpression":return e==="arguments";default:return!1}}function $F(t,e){for(let r=0;r<e;r++){let i=t[r];if(Jwe(i.parent.type,i.parentKey))return!0}return!1}var VF=Symbol();function Qwe(t){return cx(this,t,new Map)}function cx(t,e,r){let i={this:UF(t),target:UF(e)};if(i.target.node!==i.this.node)return e_e(t,i.target,r);let s={target:e.getAncestry(),this:t.getAncestry()};if(s.target.indexOf(t)>=0)return"after";if(s.this.indexOf(e)>=0)return"before";let n,a={target:0,this:0};for(;!n&&a.this<s.this.length;){let f=s.this[a.this];a.target=s.target.indexOf(f),a.target>=0?n=f:a.this++}if(!n)throw new Error("Internal Babel error - The two compared nodes don't appear to belong to the same program.");if($F(s.this,a.this-1)||$F(s.target,a.target-1))return"unknown";let o={this:s.this[a.this-1],target:s.target[a.target-1]};if(o.target.listKey&&o.this.listKey&&o.target.container===o.this.container)return o.target.key>o.this.key?"before":"after";let l=Nwe[n.type],u={this:l.indexOf(o.this.parentKey),target:l.indexOf(o.target.parentKey)};return u.target>u.this?"before":"after"}function Zwe(t,e,r){if(e.isFunctionDeclaration()){if(e.parentPath.isExportDeclaration())return"unknown"}else return cx(t,e,r)==="before"?"before":"unknown";let i=e.scope.getBinding(e.node.id.name);if(!i.references)return"before";let s=i.referencePaths,n;for(let a of s){if(!!a.find(u=>u.node===e.node))continue;if(a.key!=="callee"||!a.parentPath.isCallExpression())return"unknown";let l=cx(t,a,r);if(n&&n!==l)return"unknown";n=l}return n}function e_e(t,e,r){let i=r.get(t.node),s;if(!i)r.set(t.node,i=new Map);else if(s=i.get(e.node))return s===VF?"unknown":s;i.set(e.node,VF);let n=Zwe(t,e,r);return i.set(e.node,n),n}function t_e(t,e){return this._resolve(t,e)||this}function r_e(t,e){if(!(e&&e.indexOf(this)>=0))if(e=e||[],e.push(this),this.isVariableDeclarator()){if(this.get("id").isIdentifier())return this.get("init").resolve(t,e)}else if(this.isReferencedIdentifier()){let r=this.scope.getBinding(this.node.name);if(!r||!r.constant||r.kind==="module")return;if(r.path!==this){let i=r.path.resolve(t,e);return this.find(s=>s.node===i.node)?void 0:i}}else{if(this.isTypeCastExpression())return this.get("expression").resolve(t,e);if(t&&this.isMemberExpression()){let r=this.toComputedKey();if(!kwe(r))return;let i=r.value,s=this.get("object").resolve(t,e);if(s.isObjectExpression()){let n=s.get("properties");for(let a of n){if(!a.isProperty())continue;let o=a.get("key"),l=a.isnt("computed")&&o.isIdentifier({name:i});if(l=l||o.isLiteral({value:i}),l)return a.get("value").resolve(t,e)}}else if(s.isArrayExpression()&&!isNaN(+i)){let a=s.get("elements")[i];if(a)return a.resolve(t,e)}}}}function i_e(){if(this.isIdentifier()){let t=this.scope.getBinding(this.node.name);return t?t.constant:!1}if(this.isLiteral())return this.isRegExpLiteral()?!1:this.isTemplateLiteral()?this.get("expressions").every(t=>t.isConstantExpression()):!0;if(this.isUnaryExpression())return this.node.operator!=="void"?!1:this.get("argument").isConstantExpression();if(this.isBinaryExpression()){let{operator:t}=this.node;return t!=="in"&&t!=="instanceof"&&this.get("left").isConstantExpression()&&this.get("right").isConstantExpression()}return!1}function s_e(){return!!(this.isProgram()?this:this.parentPath).find(r=>{if(r.isProgram({sourceType:"module"})||r.isClass())return!0;if(r.isArrowFunctionExpression()&&!r.get("body").isBlockStatement())return!1;let i;if(r.isFunction())i=r.node.body;else if(r.isProgram())i=r.node;else return!1;for(let s of i.directives)if(s.value.value==="use strict")return!0})}});var XF=g(lt=>{"use strict";c();Object.defineProperty(lt,"__esModule",{value:!0});lt._call=o_e;lt._getQueueContexts=A_e;lt._resyncKey=g_e;lt._resyncList=S_e;lt._resyncParent=y_e;lt._resyncRemoved=T_e;lt.call=a_e;lt.isBlacklisted=lt.isDenylisted=l_e;lt.popContext=E_e;lt.pushContext=b_e;lt.requeue=v_e;lt.resync=m_e;lt.setContext=d_e;lt.setKey=P_e;lt.setScope=h_e;lt.setup=x_e;lt.skip=c_e;lt.skipKey=f_e;lt.stop=p_e;lt.visit=u_e;var n_e=yh(),GF=en();function a_e(t){let e=this.opts;return this.debug(t),this.node&&this._call(e[t])?!0:this.node?this._call(e[this.node.type]&&e[this.node.type][t]):!1}function o_e(t){if(!t)return!1;for(let e of t){if(!e)continue;let r=this.node;if(!r)return!0;let i=e.call(this.state,this,this.state);if(i&&typeof i=="object"&&typeof i.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(i)throw new Error(`Unexpected return value from visitor method ${e}`);if(this.node!==r||this._traverseFlags>0)return!0}return!1}function l_e(){var t;let e=(t=this.opts.denylist)!=null?t:this.opts.blacklist;return e&&e.indexOf(this.node.type)>-1}function YF(t,e){t.context!==e&&(t.context=e,t.state=e.state,t.opts=e.opts)}function u_e(){var t,e;if(!this.node||this.isDenylisted()||(t=(e=this.opts).shouldSkip)!=null&&t.call(e,this))return!1;let r=this.context;return this.shouldSkip||this.call("enter")?(this.debug("Skip..."),this.shouldStop):(YF(this,r),this.debug("Recursing into..."),this.shouldStop=(0,n_e.traverseNode)(this.node,this.opts,this.scope,this.state,this,this.skipKeys),YF(this,r),this.call("exit"),this.shouldStop)}function c_e(){this.shouldSkip=!0}function f_e(t){this.skipKeys==null&&(this.skipKeys={}),this.skipKeys[t]=!0}function p_e(){this._traverseFlags|=GF.SHOULD_SKIP|GF.SHOULD_STOP}function h_e(){var t,e;if((t=this.opts)!=null&&t.noScope)return;let r=this.parentPath;((this.key==="key"||this.listKey==="decorators")&&r.isMethod()||this.key==="discriminant"&&r.isSwitchStatement())&&(r=r.parentPath);let i;for(;r&&!i;){var s;if((s=r.opts)!=null&&s.noScope)return;i=r.scope,r=r.parentPath}this.scope=this.getScope(i),(e=this.scope)==null||e.init()}function d_e(t){return this.skipKeys!=null&&(this.skipKeys={}),this._traverseFlags=0,t&&(this.context=t,this.state=t.state,this.opts=t.opts),this.setScope(),this}function m_e(){this.removed||(this._resyncParent(),this._resyncList(),this._resyncKey())}function y_e(){this.parentPath&&(this.parent=this.parentPath.node)}function g_e(){if(this.container&&this.node!==this.container[this.key]){if(Array.isArray(this.container)){for(let t=0;t<this.container.length;t++)if(this.container[t]===this.node){this.setKey(t);return}}else for(let t of Object.keys(this.container))if(this.container[t]===this.node){this.setKey(t);return}this.key=null}}function S_e(){if(!this.parent||!this.inList)return;let t=this.parent[this.listKey];this.container!==t&&(this.container=t||null)}function T_e(){(this.key==null||!this.container||this.container[this.key]!==this.node)&&this._markRemoved()}function E_e(){this.contexts.pop(),this.contexts.length>0?this.setContext(this.contexts[this.contexts.length-1]):this.setContext(void 0)}function b_e(t){this.contexts.push(t),this.setContext(t)}function x_e(t,e,r,i){this.listKey=r,this.container=e,this.parentPath=t||this.parentPath,this.setKey(i)}function P_e(t){var e;this.key=t,this.node=this.container[this.key],this.type=(e=this.node)==null?void 0:e.type}function v_e(t=this){if(t.removed)return;let e=this.contexts;for(let r of e)r.maybeQueue(t)}function A_e(){let t=this,e=this.contexts;for(;!e.length&&(t=t.parentPath,!!t);)e=t.contexts;return e}});var zF=g(Mh=>{"use strict";c();Object.defineProperty(Mh,"__esModule",{value:!0});Mh.hooks=void 0;var w_e=[function(t,e){if(t.key==="test"&&(e.isWhile()||e.isSwitchCase())||t.key==="declaration"&&e.isExportDeclaration()||t.key==="body"&&e.isLabeledStatement()||t.listKey==="declarations"&&e.isVariableDeclaration()&&e.node.declarations.length===1||t.key==="expression"&&e.isExpressionStatement())return e.remove(),!0},function(t,e){if(e.isSequenceExpression()&&e.node.expressions.length===1)return e.replaceWith(e.node.expressions[0]),!0},function(t,e){if(e.isBinary())return t.key==="left"?e.replaceWith(e.node.right):e.replaceWith(e.node.left),!0},function(t,e){if(e.isIfStatement()&&t.key==="consequent"||t.key==="body"&&(e.isLoop()||e.isArrowFunctionExpression()))return t.replaceWith({type:"BlockStatement",body:[]}),!0}];Mh.hooks=w_e});var QF=g(tn=>{"use strict";c();Object.defineProperty(tn,"__esModule",{value:!0});tn._assertUnremoved=k_e;tn._callRemovalHooks=N_e;tn._markRemoved=L_e;tn._remove=D_e;tn._removeFromScope=O_e;tn.remove=I_e;var __e=zF(),C_e=Wn(),JF=en();function I_e(){var t;if(this._assertUnremoved(),this.resync(),(t=this.opts)!=null&&t.noScope||this._removeFromScope(),this._callRemovalHooks()){this._markRemoved();return}this.shareCommentsWithSiblings(),this._remove(),this._markRemoved()}function O_e(){let t=this.getBindingIdentifiers();Object.keys(t).forEach(e=>this.scope.removeBinding(e))}function N_e(){for(let t of __e.hooks)if(t(this,this.parentPath))return!0}function D_e(){Array.isArray(this.container)?(this.container.splice(this.key,1),this.updateSiblingKeys(this.key,-1)):this._replaceWith(null)}function L_e(){this._traverseFlags|=JF.SHOULD_SKIP|JF.REMOVED,this.parent&&C_e.path.get(this.parent).delete(this.node),this.node=null}function k_e(){if(this.removed)throw this.buildCodeFrameError("NodePath has been removed so is read-only.")}});var eB=g(Fh=>{"use strict";c();Object.defineProperty(Fh,"__esModule",{value:!0});Fh.default=void 0;var ZF=ve(),R_e=ZF,{react:M_e}=ZF,{cloneNode:F_e,jsxExpressionContainer:B_e,variableDeclaration:j_e,variableDeclarator:q_e}=R_e,U_e={ReferencedIdentifier(t,e){if(t.isJSXIdentifier()&&M_e.isCompatTag(t.node.name)&&!t.parentPath.isJSXMemberExpression())return;if(t.node.name==="this"){let i=t.scope;do if(i.path.isFunction()&&!i.path.isArrowFunctionExpression())break;while(i=i.parent);i&&e.breakOnScopePaths.push(i.path)}let r=t.scope.getBinding(t.node.name);if(r){for(let i of r.constantViolations)if(i.scope!==r.path.scope){e.mutableBinding=!0,t.stop();return}r===e.scope.getBinding(t.node.name)&&(e.bindings[t.node.name]=r)}}},fx=class{constructor(e,r){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=r,this.path=e,this.attachAfter=!1}isCompatibleScope(e){for(let r of Object.keys(this.bindings)){let i=this.bindings[r];if(!e.bindingIdentifierEquals(r,i.identifier))return!1}return!0}getCompatibleScopes(){let e=this.path.scope;do{if(this.isCompatibleScope(e))this.scopes.push(e);else break;if(this.breakOnScopePaths.indexOf(e.path)>=0)break}while(e=e.parent)}getAttachmentPath(){let e=this._getAttachmentPath();if(!e)return;let r=e.scope;if(r.path===e&&(r=e.scope.parent),r.path.isProgram()||r.path.isFunction())for(let i of Object.keys(this.bindings)){if(!r.hasOwnBinding(i))continue;let s=this.bindings[i];if(s.kind==="param"||s.path.parentKey==="params")continue;if(this.getAttachmentParentForPath(s.path).key>=e.key){this.attachAfter=!0,e=s.path;for(let a of s.constantViolations)this.getAttachmentParentForPath(a).key>e.key&&(e=a)}}return e}_getAttachmentPath(){let r=this.scopes.pop();if(r){if(r.path.isFunction())if(this.hasOwnParamBindings(r)){if(this.scope===r)return;let i=r.path.get("body").get("body");for(let s=0;s<i.length;s++)if(!i[s].node._blockHoist)return i[s]}else return this.getNextScopeAttachmentParent();else if(r.path.isProgram())return this.getNextScopeAttachmentParent()}}getNextScopeAttachmentParent(){let e=this.scopes.pop();if(e)return this.getAttachmentParentForPath(e.path)}getAttachmentParentForPath(e){do if(!e.parentPath||Array.isArray(e.container)&&e.isStatement())return e;while(e=e.parentPath)}hasOwnParamBindings(e){for(let r of Object.keys(this.bindings)){if(!e.hasOwnBinding(r))continue;let i=this.bindings[r];if(i.kind==="param"&&i.constant)return!0}return!1}run(){if(this.path.traverse(U_e,this),this.mutableBinding)return;this.getCompatibleScopes();let e=this.getAttachmentPath();if(!e||e.getFunctionParent()===this.path.getFunctionParent())return;let r=e.scope.generateUidIdentifier("ref"),i=q_e(r,this.path.node),s=this.attachAfter?"insertAfter":"insertBefore",[n]=e[s]([e.isVariableDeclarator()?i:j_e("var",[i])]),a=this.path.parentPath;return a.isJSXElement()&&this.path.container===a.node.children&&(r=B_e(r)),this.path.replaceWith(F_e(r)),e.isVariableDeclarator()?n.get("init"):n.get("declarations.0.init")}};Fh.default=fx});var nB=g(Hr=>{"use strict";c();Object.defineProperty(Hr,"__esModule",{value:!0});Hr._containerInsert=i1e;Hr._containerInsertAfter=n1e;Hr._containerInsertBefore=s1e;Hr._verifyNodeList=u1e;Hr.hoist=p1e;Hr.insertAfter=o1e;Hr.insertBefore=r1e;Hr.pushContainer=f1e;Hr.unshiftContainer=c1e;Hr.updateSiblingKeys=l1e;var $_e=Wn(),V_e=eB(),dx=en(),K_e=ve(),{arrowFunctionExpression:H_e,assertExpression:W_e,assignmentExpression:G_e,blockStatement:tB,callExpression:Y_e,cloneNode:px,expressionStatement:hx,isAssignmentExpression:X_e,isCallExpression:z_e,isExportNamedDeclaration:rB,isExpression:J_e,isIdentifier:Q_e,isSequenceExpression:Z_e,isSuper:e1e,thisExpression:t1e}=K_e;function r1e(t){this._assertUnremoved();let e=this._verifyNodeList(t),{parentPath:r,parent:i}=this;if(r.isExpressionStatement()||r.isLabeledStatement()||rB(i)||r.isExportDefaultDeclaration()&&this.isDeclaration())return r.insertBefore(e);if(this.isNodeType("Expression")&&!this.isJSXElement()||r.isForStatement()&&this.key==="init")return this.node&&e.push(this.node),this.replaceExpressionWithStatements(e);if(Array.isArray(this.container))return this._containerInsertBefore(e);if(this.isStatementOrBlock()){let s=this.node,n=s&&(!this.isExpressionStatement()||s.expression!=null);return this.replaceWith(tB(n?[s]:[])),this.unshiftContainer("body",e)}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 i1e(t,e){this.updateSiblingKeys(t,e.length);let r=[];this.container.splice(t,0,...e);for(let s=0;s<e.length;s++){let n=t+s,a=this.getSibling(n);r.push(a),this.context&&this.context.queue&&a.pushContext(this.context)}let i=this._getQueueContexts();for(let s of r){s.setScope(),s.debug("Inserted.");for(let n of i)n.maybeQueue(s,!0)}return r}function s1e(t){return this._containerInsert(this.key,t)}function n1e(t){return this._containerInsert(this.key+1,t)}var iB=t=>t[t.length-1];function sB(t){return Z_e(t.parent)&&(iB(t.parent.expressions)!==t.node||sB(t.parentPath))}function a1e(t,e){if(!X_e(t)||!Q_e(t.left))return!1;let r=e.getBlockParent();return r.hasOwnBinding(t.left.name)&&r.getOwnBinding(t.left.name).constantViolations.length<=1}function o1e(t){if(this._assertUnremoved(),this.isSequenceExpression())return iB(this.get("expressions")).insertAfter(t);let e=this._verifyNodeList(t),{parentPath:r,parent:i}=this;if(r.isExpressionStatement()||r.isLabeledStatement()||rB(i)||r.isExportDefaultDeclaration()&&this.isDeclaration())return r.insertAfter(e.map(s=>J_e(s)?hx(s):s));if(this.isNodeType("Expression")&&!this.isJSXElement()&&!r.isJSXElement()||r.isForStatement()&&this.key==="init"){if(this.node){let s=this.node,{scope:n}=this;if(n.path.isPattern())return W_e(s),this.replaceWith(Y_e(H_e([],s),[])),this.get("callee.body").insertAfter(e),[this];if(sB(this))e.unshift(s);else if(z_e(s)&&e1e(s.callee))e.unshift(s),e.push(t1e());else if(a1e(s,n))e.unshift(s),e.push(px(s.left));else if(n.isPure(s,!0))e.push(s);else{r.isMethod({computed:!0,key:s})&&(n=n.parent);let a=n.generateDeclaredUidIdentifier();e.unshift(hx(G_e("=",px(a),s))),e.push(hx(px(a)))}}return this.replaceExpressionWithStatements(e)}else{if(Array.isArray(this.container))return this._containerInsertAfter(e);if(this.isStatementOrBlock()){let s=this.node,n=s&&(!this.isExpressionStatement()||s.expression!=null);return this.replaceWith(tB(n?[s]:[])),this.pushContainer("body",e)}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 l1e(t,e){if(!this.parent)return;let r=$_e.path.get(this.parent);for(let[,i]of r)i.key>=t&&(i.key+=e)}function u1e(t){if(!t)return[];Array.isArray(t)||(t=[t]);for(let e=0;e<t.length;e++){let r=t[e],i;if(r?typeof r!="object"?i="contains a non-object node":r.type?r instanceof dx.default&&(i="has a NodePath when it expected a raw object"):i="without a type":i="has falsy node",i){let s=Array.isArray(r)?"array":typeof r;throw new Error(`Node list ${i} with the index of ${e} and type of ${s}`)}}return t}function c1e(t,e){return this._assertUnremoved(),e=this._verifyNodeList(e),dx.default.get({parentPath:this,parent:this.node,container:this.node[t],listKey:t,key:0}).setContext(this.context)._containerInsertBefore(e)}function f1e(t,e){this._assertUnremoved();let r=this._verifyNodeList(e),i=this.node[t];return dx.default.get({parentPath:this,parent:this.node,container:i,listKey:t,key:i.length}).setContext(this.context).replaceWithMultiple(r)}function p1e(t=this.scope){return new V_e.default(this,t).run()}});var lB=g($t=>{"use strict";c();Object.defineProperty($t,"__esModule",{value:!0});$t._getKey=O1e;$t._getPattern=N1e;$t.get=I1e;$t.getAllNextSiblings=_1e;$t.getAllPrevSiblings=C1e;$t.getBindingIdentifierPaths=k1e;$t.getBindingIdentifiers=D1e;$t.getCompletionRecords=P1e;$t.getNextSibling=w1e;$t.getOpposite=E1e;$t.getOuterBindingIdentifierPaths=R1e;$t.getOuterBindingIdentifiers=L1e;$t.getPrevSibling=A1e;$t.getSibling=v1e;var yx=en(),h1e=ve(),{getBindingIdentifiers:oB,getOuterBindingIdentifiers:d1e,isDeclaration:m1e,numericLiteral:y1e,unaryExpression:g1e}=h1e,gx=0,vu=1;function S1e(t){return{type:gx,path:t}}function T1e(t){return{type:vu,path:t}}function E1e(){return this.key==="left"?this.getSibling("right"):this.key==="right"?this.getSibling("left"):null}function wo(t,e,r){return t&&e.push(..._o(t,r)),e}function b1e(t,e,r){let i=[];for(let s=0;s<t.length;s++){let n=t[s],a=_o(n,r),o=[],l=[];for(let u of a)u.type===gx&&o.push(u),u.type===vu&&l.push(u);o.length&&(i=o),e.push(...l)}return e.push(...i),e}function x1e(t){t.forEach(e=>{e.type=vu})}function mx(t,e){t.forEach(r=>{r.path.isBreakStatement({label:null})&&(e?r.path.replaceWith(g1e("void",y1e(0))):r.path.remove())})}function aB(t,e){let r=[];if(e.canHaveBreak){let i=[];for(let s=0;s<t.length;s++){let n=t[s],a=Object.assign({},e,{inCaseClause:!1});n.isBlockStatement()&&(e.inCaseClause||e.shouldPopulateBreak)?a.shouldPopulateBreak=!0:a.shouldPopulateBreak=!1;let o=_o(n,a);if(o.length>0&&o.every(l=>l.type===vu)){i.length>0&&o.every(l=>l.path.isBreakStatement({label:null}))?(x1e(i),r.push(...i),i.some(l=>l.path.isDeclaration())&&(r.push(...o),mx(o,!0)),mx(o,!1)):(r.push(...o),e.shouldPopulateBreak||mx(o,!0));break}if(s===t.length-1)r.push(...o);else{i=[];for(let l=0;l<o.length;l++){let u=o[l];u.type===vu&&r.push(u),u.type===gx&&i.push(u)}}}}else if(t.length)for(let i=t.length-1;i>=0;i--){let s=_o(t[i],e);if(s.length>1||s.length===1&&!s[0].path.isVariableDeclaration()){r.push(...s);break}}return r}function _o(t,e){let r=[];if(t.isIfStatement())r=wo(t.get("consequent"),r,e),r=wo(t.get("alternate"),r,e);else{if(t.isDoExpression()||t.isFor()||t.isWhile()||t.isLabeledStatement())return wo(t.get("body"),r,e);if(t.isProgram()||t.isBlockStatement())return aB(t.get("body"),e);if(t.isFunction())return _o(t.get("body"),e);if(t.isTryStatement())r=wo(t.get("block"),r,e),r=wo(t.get("handler"),r,e);else{if(t.isCatchClause())return wo(t.get("body"),r,e);if(t.isSwitchStatement())return b1e(t.get("cases"),r,e);if(t.isSwitchCase())return aB(t.get("consequent"),{canHaveBreak:!0,shouldPopulateBreak:!1,inCaseClause:!0});t.isBreakStatement()?r.push(T1e(t)):r.push(S1e(t))}}return r}function P1e(){return _o(this,{canHaveBreak:!1,shouldPopulateBreak:!1,inCaseClause:!1}).map(e=>e.path)}function v1e(t){return yx.default.get({parentPath:this.parentPath,parent:this.parent,container:this.container,listKey:this.listKey,key:t}).setContext(this.context)}function A1e(){return this.getSibling(this.key-1)}function w1e(){return this.getSibling(this.key+1)}function _1e(){let t=this.key,e=this.getSibling(++t),r=[];for(;e.node;)r.push(e),e=this.getSibling(++t);return r}function C1e(){let t=this.key,e=this.getSibling(--t),r=[];for(;e.node;)r.push(e),e=this.getSibling(--t);return r}function I1e(t,e=!0){e===!0&&(e=this.context);let r=t.split(".");return r.length===1?this._getKey(t,e):this._getPattern(r,e)}function O1e(t,e){let r=this.node,i=r[t];return Array.isArray(i)?i.map((s,n)=>yx.default.get({listKey:t,parentPath:this,parent:r,container:i,key:n}).setContext(e)):yx.default.get({parentPath:this,parent:r,container:r,key:t}).setContext(e)}function N1e(t,e){let r=this;for(let i of t)i==="."?r=r.parentPath:Array.isArray(r)?r=r[i]:r=r.get(i,e);return r}function D1e(t){return oB(this.node,t)}function L1e(t){return d1e(this.node,t)}function k1e(t=!1,e=!1){let i=[this],s=Object.create(null);for(;i.length;){let n=i.shift();if(!n||!n.node)continue;let a=oB.keys[n.node.type];if(n.isIdentifier()){t?(s[n.node.name]=s[n.node.name]||[]).push(n):s[n.node.name]=n;continue}if(n.isExportDeclaration()){let o=n.get("declaration");m1e(o)&&i.push(o);continue}if(e){if(n.isFunctionDeclaration()){i.push(n.get("id"));continue}if(n.isFunctionExpression())continue}if(a)for(let o=0;o<a.length;o++){let l=a[o],u=n.get(l);Array.isArray(u)?i.push(...u):u.node&&i.push(u)}}return s}function R1e(t=!1){return this.getBindingIdentifierPaths(t,!0)}});var cB=g(Au=>{"use strict";c();Object.defineProperty(Au,"__esModule",{value:!0});Au.addComment=q1e;Au.addComments=U1e;Au.shareCommentsWithSiblings=j1e;var M1e=ve(),{addComment:F1e,addComments:B1e}=M1e;function j1e(){if(typeof this.key=="string")return;let t=this.node;if(!t)return;let e=t.trailingComments,r=t.leadingComments;if(!e&&!r)return;let i=this.getSibling(this.key-1),s=this.getSibling(this.key+1),n=!!i.node,a=!!s.node;n&&(r&&i.addComments("trailing",uB(r,i.node.trailingComments)),e&&!a&&i.addComments("trailing",e)),a&&(e&&s.addComments("leading",uB(e,s.node.leadingComments)),r&&!n&&s.addComments("leading",r))}function uB(t,e){if(!e)return t;let r=-1;return t.filter(i=>{let s=e.indexOf(i,r);if(s===-1)return!0;r=s})}function q1e(t,e,r){F1e(this.node,t,e,r)}function U1e(t,e){B1e(this.node,t,e)}});var hB=g(St=>{"use strict";c();Object.defineProperty(St,"__esModule",{value:!0});St.isBindingIdentifier=cCe;St.isBlockScoped=mCe;St.isExistentialTypeParam=vCe;St.isExpression=pCe;St.isFlow=ECe;St.isForAwaitStatement=PCe;St.isGenerated=SCe;St.isNumericLiteralTypeAnnotation=ACe;St.isPure=TCe;St.isReferenced=dCe;St.isReferencedIdentifier=lCe;St.isReferencedMemberExpression=uCe;St.isRestProperty=bCe;St.isScope=hCe;St.isSpreadProperty=xCe;St.isStatement=fCe;St.isUser=gCe;St.isVar=yCe;var $1e=ve(),{isBinding:V1e,isBlockScoped:K1e,isExportDeclaration:H1e,isExpression:W1e,isFlow:G1e,isForStatement:Y1e,isForXStatement:X1e,isIdentifier:fB,isImportDeclaration:z1e,isImportSpecifier:J1e,isJSXIdentifier:Q1e,isJSXMemberExpression:Z1e,isMemberExpression:eCe,isRestElement:pB,isReferenced:Sx,isScope:tCe,isStatement:rCe,isVar:iCe,isVariableDeclaration:sCe,react:nCe,isForOfStatement:aCe}=$1e,{isCompatTag:oCe}=nCe;function lCe(t){let{node:e,parent:r}=this;if(!fB(e,t)&&!Z1e(r,t))if(Q1e(e,t)){if(oCe(e.name))return!1}else return!1;return Sx(e,r,this.parentPath.parent)}function uCe(){let{node:t,parent:e}=this;return eCe(t)&&Sx(t,e)}function cCe(){let{node:t,parent:e}=this,r=this.parentPath.parent;return fB(t)&&V1e(t,e,r)}function fCe(){let{node:t,parent:e}=this;return rCe(t)?!(sCe(t)&&(X1e(e,{left:t})||Y1e(e,{init:t}))):!1}function pCe(){return this.isIdentifier()?this.isReferencedIdentifier():W1e(this.node)}function hCe(){return tCe(this.node,this.parent)}function dCe(){return Sx(this.node,this.parent)}function mCe(){return K1e(this.node)}function yCe(){return iCe(this.node)}function gCe(){return this.node&&!!this.node.loc}function SCe(){return!this.isUser()}function TCe(t){return this.scope.isPure(this.node,t)}function ECe(){let{node:t}=this;return G1e(t)?!0:z1e(t)?t.importKind==="type"||t.importKind==="typeof":H1e(t)?t.exportKind==="type":J1e(t)?t.importKind==="type"||t.importKind==="typeof":!1}function bCe(){return pB(this.node)&&this.parentPath&&this.parentPath.isObjectPattern()}function xCe(){return pB(this.node)&&this.parentPath&&this.parentPath.isObjectExpression()}function PCe(){return aCe(this.node,{await:!0})}function vCe(){throw new Error("`path.isExistentialTypeParam` has been renamed to `path.isExistsTypeAnnotation()` in Babel 7.")}function ACe(){throw new Error("`path.isNumericLiteralTypeAnnotation()` has been renamed to `path.isNumberLiteralTypeAnnotation()` in Babel 7.")}});var en=g(Ai=>{"use strict";c();Object.defineProperty(Ai,"__esModule",{value:!0});Ai.default=Ai.SHOULD_STOP=Ai.SHOULD_SKIP=Ai.REMOVED=void 0;var wCe=Tb(),_Ce=cl(),CCe=mu(),ICe=Ob(),yB=ve(),Uh=yB,dB=Wn(),OCe=Wp(),NCe=JM(),DCe=y2(),LCe=oF(),kCe=fF(),RCe=qF(),gB=WF(),MCe=XF(),FCe=QF(),BCe=nB(),jCe=lB(),qCe=cB(),UCe=hB(),{validate:$Ce}=yB,mB=_Ce("babel"),Bh=1;Ai.REMOVED=Bh;var jh=2;Ai.SHOULD_STOP=jh;var qh=4;Ai.SHOULD_SKIP=qh;var wi=class{constructor(e,r){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=r,this.hub=e,this.data=null,this.context=null,this.scope=null}static get({hub:e,parentPath:r,parent:i,container:s,listKey:n,key:a}){if(!e&&r&&(e=r.hub),!i)throw new Error("To get a node path the parent needs to exist");let o=s[a],l=dB.path.get(i);l||(l=new Map,dB.path.set(i,l));let u=l.get(o);return u||(u=new wi(e,i),o&&l.set(o,u)),u.setup(r,s,n,a),u}getScope(e){return this.isScope()?new ICe.default(this):e}setData(e,r){return this.data==null&&(this.data=Object.create(null)),this.data[e]=r}getData(e,r){this.data==null&&(this.data=Object.create(null));let i=this.data[e];return i===void 0&&r!==void 0&&(i=this.data[e]=r),i}hasNode(){return this.node!=null}buildCodeFrameError(e,r=SyntaxError){return this.hub.buildError(this.node,e,r)}traverse(e,r){(0,CCe.default)(this.node,e,this.scope,r,this)}set(e,r){$Ce(this.node,e,r),this.node[e]=r}getPathLocation(){let e=[],r=this;do{let i=r.key;r.inList&&(i=`${r.listKey}[${i}]`),e.unshift(i)}while(r=r.parentPath);return e.join(".")}debug(e){mB.enabled&&mB(`${this.getPathLocation()} ${this.type}: ${e}`)}toString(){return(0,OCe.default)(this.node).code}get inList(){return!!this.listKey}set inList(e){e||(this.listKey=null)}get parentKey(){return this.listKey||this.key}get shouldSkip(){return!!(this._traverseFlags&qh)}set shouldSkip(e){e?this._traverseFlags|=qh:this._traverseFlags&=~qh}get shouldStop(){return!!(this._traverseFlags&jh)}set shouldStop(e){e?this._traverseFlags|=jh:this._traverseFlags&=~jh}get removed(){return!!(this._traverseFlags&Bh)}set removed(e){e?this._traverseFlags|=Bh:this._traverseFlags&=~Bh}};Object.assign(wi.prototype,NCe,DCe,LCe,kCe,RCe,gB,MCe,FCe,BCe,jCe,qCe);wi.prototype._guessExecutionStatusRelativeToDifferentFunctions=gB._guessExecutionStatusRelativeTo;for(let t of Uh.TYPES){let e=`is${t}`,r=Uh[e];wi.prototype[e]=function(i){return r(this.node,i)},wi.prototype[`assert${t}`]=function(i){if(!r(this.node,i))throw new TypeError(`Expected node path of type ${t}`)}}Object.assign(wi.prototype,UCe);for(let t of Object.keys(wCe))t[0]!=="_"&&(Uh.TYPES.includes(t)||Uh.TYPES.push(t));var VCe=wi;Ai.default=VCe});var SB=g($h=>{"use strict";c();Object.defineProperty($h,"__esModule",{value:!0});$h.default=void 0;var KCe=en(),HCe=ve(),{VISITOR_KEYS:WCe}=HCe,Tx=class{constructor(e,r,i,s){this.queue=null,this.priorityQueue=null,this.parentPath=s,this.scope=e,this.state=i,this.opts=r}shouldVisit(e){let r=this.opts;if(r.enter||r.exit||r[e.type])return!0;let i=WCe[e.type];if(!(i!=null&&i.length))return!1;for(let s of i)if(e[s])return!0;return!1}create(e,r,i,s){return KCe.default.get({parentPath:this.parentPath,parent:e,container:r,key:i,listKey:s})}maybeQueue(e,r){this.queue&&(r?this.queue.push(e):this.priorityQueue.push(e))}visitMultiple(e,r,i){if(e.length===0)return!1;let s=[];for(let n=0;n<e.length;n++){let a=e[n];a&&this.shouldVisit(a)&&s.push(this.create(r,e,n,i))}return this.visitQueue(s)}visitSingle(e,r){return this.shouldVisit(e[r])?this.visitQueue([this.create(e,e,r)]):!1}visitQueue(e){this.queue=e,this.priorityQueue=[];let r=new WeakSet,i=!1;for(let s of e){if(s.resync(),(s.contexts.length===0||s.contexts[s.contexts.length-1]!==this)&&s.pushContext(this),s.key===null)continue;let{node:n}=s;if(!r.has(n)){if(n&&r.add(n),s.visit()){i=!0;break}if(this.priorityQueue.length&&(i=this.visitQueue(this.priorityQueue),this.priorityQueue=[],this.queue=e,i))break}}for(let s of e)s.popContext();return this.queue=null,i}visit(e,r){let i=e[r];return i?Array.isArray(i)?this.visitMultiple(i,e,r):this.visitSingle(e,r):!1}};$h.default=Tx});var yh=g(Ex=>{"use strict";c();Object.defineProperty(Ex,"__esModule",{value:!0});Ex.traverseNode=zCe;var GCe=SB(),YCe=ve(),{VISITOR_KEYS:XCe}=YCe;function zCe(t,e,r,i,s,n){let a=XCe[t.type];if(!a)return!1;let o=new GCe.default(r,e,i,s);for(let l of a)if(!(n&&n[l])&&o.visit(t,l))return!0;return!1}});var TB=g(Vh=>{"use strict";c();Object.defineProperty(Vh,"__esModule",{value:!0});Vh.default=void 0;var bx=class{getCode(){}getScope(){}addHelper(){throw new Error("Helpers are not supported by the default hub.")}buildError(e,r,i=TypeError){return new i(r)}};Vh.default=bx});var mu=g(is=>{"use strict";c();Object.defineProperty(is,"__esModule",{value:!0});Object.defineProperty(is,"Hub",{enumerable:!0,get:function(){return eIe.default}});Object.defineProperty(is,"NodePath",{enumerable:!0,get:function(){return QCe.default}});Object.defineProperty(is,"Scope",{enumerable:!0,get:function(){return ZCe.default}});is.visitors=is.default=void 0;var wu=dh();is.visitors=wu;var JCe=ve(),EB=Wn(),bB=yh(),QCe=en(),ZCe=Ob(),eIe=TB(),{VISITOR_KEYS:tIe,removeProperties:rIe,traverseFast:xB}=JCe;function Wr(t,e={},r,i,s){if(t){if(!e.noScope&&!r&&t.type!=="Program"&&t.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 ${t.type} node without passing scope and parentPath.`);tIe[t.type]&&(wu.explode(e),(0,bB.traverseNode)(t,e,r,i,s))}}var iIe=Wr;is.default=iIe;Wr.visitors=wu;Wr.verify=wu.verify;Wr.explode=wu.explode;Wr.cheap=function(t,e){xB(t,e)};Wr.node=function(t,e,r,i,s,n){(0,bB.traverseNode)(t,e,r,i,s,n)};Wr.clearNode=function(t,e){rIe(t,e),EB.path.delete(t)};Wr.removeProperties=function(t,e){return xB(t,Wr.clearNode,e),t};function sIe(t,e){t.node.type===e.type&&(e.has=!0,t.stop())}Wr.hasType=function(t,e,r){if(r!=null&&r.includes(t.type))return!1;if(t.type===e)return!0;let i={has:!1,type:e};return Wr(t,{noScope:!0,denylist:r,enter:sIe},null,i),i.has};Wr.cache=EB});var _u=g((a8e,vB)=>{c();var nIe="2.0.0",aIe=Number.MAX_SAFE_INTEGER||9007199254740991,oIe=16,lIe=["major","premajor","minor","preminor","patch","prepatch","prerelease"];vB.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:oIe,MAX_SAFE_INTEGER:aIe,RELEASE_TYPES:lIe,SEMVER_SPEC_VERSION:nIe,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var Cu=g((l8e,AB)=>{c();var uIe=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};AB.exports=uIe});var Co=g((rn,wB)=>{c();var{MAX_SAFE_COMPONENT_LENGTH:Ax}=_u(),cIe=Cu();rn=wB.exports={};var fIe=rn.re=[],ce=rn.src=[],fe=rn.t={},pIe=0,Ce=(t,e,r)=>{let i=pIe++;cIe(t,i,e),fe[t]=i,ce[i]=e,fIe[i]=new RegExp(e,r?"g":void 0)};Ce("NUMERICIDENTIFIER","0|[1-9]\\d*");Ce("NUMERICIDENTIFIERLOOSE","[0-9]+");Ce("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*");Ce("MAINVERSION",`(${ce[fe.NUMERICIDENTIFIER]})\\.(${ce[fe.NUMERICIDENTIFIER]})\\.(${ce[fe.NUMERICIDENTIFIER]})`);Ce("MAINVERSIONLOOSE",`(${ce[fe.NUMERICIDENTIFIERLOOSE]})\\.(${ce[fe.NUMERICIDENTIFIERLOOSE]})\\.(${ce[fe.NUMERICIDENTIFIERLOOSE]})`);Ce("PRERELEASEIDENTIFIER",`(?:${ce[fe.NUMERICIDENTIFIER]}|${ce[fe.NONNUMERICIDENTIFIER]})`);Ce("PRERELEASEIDENTIFIERLOOSE",`(?:${ce[fe.NUMERICIDENTIFIERLOOSE]}|${ce[fe.NONNUMERICIDENTIFIER]})`);Ce("PRERELEASE",`(?:-(${ce[fe.PRERELEASEIDENTIFIER]}(?:\\.${ce[fe.PRERELEASEIDENTIFIER]})*))`);Ce("PRERELEASELOOSE",`(?:-?(${ce[fe.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${ce[fe.PRERELEASEIDENTIFIERLOOSE]})*))`);Ce("BUILDIDENTIFIER","[0-9A-Za-z-]+");Ce("BUILD",`(?:\\+(${ce[fe.BUILDIDENTIFIER]}(?:\\.${ce[fe.BUILDIDENTIFIER]})*))`);Ce("FULLPLAIN",`v?${ce[fe.MAINVERSION]}${ce[fe.PRERELEASE]}?${ce[fe.BUILD]}?`);Ce("FULL",`^${ce[fe.FULLPLAIN]}$`);Ce("LOOSEPLAIN",`[v=\\s]*${ce[fe.MAINVERSIONLOOSE]}${ce[fe.PRERELEASELOOSE]}?${ce[fe.BUILD]}?`);Ce("LOOSE",`^${ce[fe.LOOSEPLAIN]}$`);Ce("GTLT","((?:<|>)?=?)");Ce("XRANGEIDENTIFIERLOOSE",`${ce[fe.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);Ce("XRANGEIDENTIFIER",`${ce[fe.NUMERICIDENTIFIER]}|x|X|\\*`);Ce("XRANGEPLAIN",`[v=\\s]*(${ce[fe.XRANGEIDENTIFIER]})(?:\\.(${ce[fe.XRANGEIDENTIFIER]})(?:\\.(${ce[fe.XRANGEIDENTIFIER]})(?:${ce[fe.PRERELEASE]})?${ce[fe.BUILD]}?)?)?`);Ce("XRANGEPLAINLOOSE",`[v=\\s]*(${ce[fe.XRANGEIDENTIFIERLOOSE]})(?:\\.(${ce[fe.XRANGEIDENTIFIERLOOSE]})(?:\\.(${ce[fe.XRANGEIDENTIFIERLOOSE]})(?:${ce[fe.PRERELEASELOOSE]})?${ce[fe.BUILD]}?)?)?`);Ce("XRANGE",`^${ce[fe.GTLT]}\\s*${ce[fe.XRANGEPLAIN]}$`);Ce("XRANGELOOSE",`^${ce[fe.GTLT]}\\s*${ce[fe.XRANGEPLAINLOOSE]}$`);Ce("COERCE",`(^|[^\\d])(\\d{1,${Ax}})(?:\\.(\\d{1,${Ax}}))?(?:\\.(\\d{1,${Ax}}))?(?:$|[^\\d])`);Ce("COERCERTL",ce[fe.COERCE],!0);Ce("LONETILDE","(?:~>?)");Ce("TILDETRIM",`(\\s*)${ce[fe.LONETILDE]}\\s+`,!0);rn.tildeTrimReplace="$1~";Ce("TILDE",`^${ce[fe.LONETILDE]}${ce[fe.XRANGEPLAIN]}$`);Ce("TILDELOOSE",`^${ce[fe.LONETILDE]}${ce[fe.XRANGEPLAINLOOSE]}$`);Ce("LONECARET","(?:\\^)");Ce("CARETTRIM",`(\\s*)${ce[fe.LONECARET]}\\s+`,!0);rn.caretTrimReplace="$1^";Ce("CARET",`^${ce[fe.LONECARET]}${ce[fe.XRANGEPLAIN]}$`);Ce("CARETLOOSE",`^${ce[fe.LONECARET]}${ce[fe.XRANGEPLAINLOOSE]}$`);Ce("COMPARATORLOOSE",`^${ce[fe.GTLT]}\\s*(${ce[fe.LOOSEPLAIN]})$|^$`);Ce("COMPARATOR",`^${ce[fe.GTLT]}\\s*(${ce[fe.FULLPLAIN]})$|^$`);Ce("COMPARATORTRIM",`(\\s*)${ce[fe.GTLT]}\\s*(${ce[fe.LOOSEPLAIN]}|${ce[fe.XRANGEPLAIN]})`,!0);rn.comparatorTrimReplace="$1$2$3";Ce("HYPHENRANGE",`^\\s*(${ce[fe.XRANGEPLAIN]})\\s+-\\s+(${ce[fe.XRANGEPLAIN]})\\s*$`);Ce("HYPHENRANGELOOSE",`^\\s*(${ce[fe.XRANGEPLAINLOOSE]})\\s+-\\s+(${ce[fe.XRANGEPLAINLOOSE]})\\s*$`);Ce("STAR","(<|>)?=?\\s*\\*");Ce("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");Ce("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var Wh=g((f8e,_B)=>{c();var hIe=Object.freeze({loose:!0}),dIe=Object.freeze({}),mIe=t=>t?typeof t!="object"?hIe:t:dIe;_B.exports=mIe});var wx=g((h8e,OB)=>{c();var CB=/^[0-9]+$/,IB=(t,e)=>{let r=CB.test(t),i=CB.test(e);return r&&i&&(t=+t,e=+e),t===e?0:r&&!i?-1:i&&!r?1:t<e?-1:1},yIe=(t,e)=>IB(e,t);OB.exports={compareIdentifiers:IB,rcompareIdentifiers:yIe}});var Vt=g((m8e,kB)=>{c();var Gh=Cu(),{MAX_LENGTH:NB,MAX_SAFE_INTEGER:Yh}=_u(),{re:DB,t:LB}=Co(),gIe=Wh(),{compareIdentifiers:Io}=wx(),_r=class{constructor(e,r){if(r=gIe(r),e instanceof _r){if(e.loose===!!r.loose&&e.includePrerelease===!!r.includePrerelease)return e;e=e.version}else if(typeof e!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>NB)throw new TypeError(`version is longer than ${NB} characters`);Gh("SemVer",e,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;let i=e.trim().match(r.loose?DB[LB.LOOSE]:DB[LB.FULL]);if(!i)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+i[1],this.minor=+i[2],this.patch=+i[3],this.major>Yh||this.major<0)throw new TypeError("Invalid major version");if(this.minor>Yh||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>Yh||this.patch<0)throw new TypeError("Invalid patch version");i[4]?this.prerelease=i[4].split(".").map(s=>{if(/^[0-9]+$/.test(s)){let n=+s;if(n>=0&&n<Yh)return n}return s}):this.prerelease=[],this.build=i[5]?i[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(e){if(Gh("SemVer.compare",this.version,this.options,e),!(e instanceof _r)){if(typeof e=="string"&&e===this.version)return 0;e=new _r(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof _r||(e=new _r(e,this.options)),Io(this.major,e.major)||Io(this.minor,e.minor)||Io(this.patch,e.patch)}comparePre(e){if(e instanceof _r||(e=new _r(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let r=0;do{let i=this.prerelease[r],s=e.prerelease[r];if(Gh("prerelease compare",r,i,s),i===void 0&&s===void 0)return 0;if(s===void 0)return 1;if(i===void 0)return-1;if(i===s)continue;return Io(i,s)}while(++r)}compareBuild(e){e instanceof _r||(e=new _r(e,this.options));let r=0;do{let i=this.build[r],s=e.build[r];if(Gh("prerelease compare",r,i,s),i===void 0&&s===void 0)return 0;if(s===void 0)return 1;if(i===void 0)return-1;if(i===s)continue;return Io(i,s)}while(++r)}inc(e,r,i){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",r,i);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",r,i);break;case"prepatch":this.prerelease.length=0,this.inc("patch",r,i),this.inc("pre",r,i);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",r,i),this.inc("pre",r,i);break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{let s=Number(i)?1:0;if(!r&&i===!1)throw new Error("invalid increment argument: identifier is empty");if(this.prerelease.length===0)this.prerelease=[s];else{let n=this.prerelease.length;for(;--n>=0;)typeof this.prerelease[n]=="number"&&(this.prerelease[n]++,n=-2);if(n===-1){if(r===this.prerelease.join(".")&&i===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(s)}}if(r){let n=[r,s];i===!1&&(n=[r]),Io(this.prerelease[0],r)===0?isNaN(this.prerelease[1])&&(this.prerelease=n):this.prerelease=n}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.format(),this.raw=this.version,this}};kB.exports=_r});var Qn=g((g8e,MB)=>{c();var RB=Vt(),SIe=(t,e,r=!1)=>{if(t instanceof RB)return t;try{return new RB(t,e)}catch(i){if(!r)return null;throw i}};MB.exports=SIe});var BB=g((T8e,FB)=>{c();var TIe=Qn(),EIe=(t,e)=>{let r=TIe(t,e);return r?r.version:null};FB.exports=EIe});var qB=g((b8e,jB)=>{c();var bIe=Qn(),xIe=(t,e)=>{let r=bIe(t.trim().replace(/^[=v]+/,""),e);return r?r.version:null};jB.exports=xIe});var VB=g((P8e,$B)=>{c();var UB=Vt(),PIe=(t,e,r,i,s)=>{typeof r=="string"&&(s=i,i=r,r=void 0);try{return new UB(t instanceof UB?t.version:t,r).inc(e,i,s).version}catch{return null}};$B.exports=PIe});var WB=g((A8e,HB)=>{c();var KB=Qn(),vIe=(t,e)=>{let r=KB(t,null,!0),i=KB(e,null,!0),s=r.compare(i);if(s===0)return null;let n=s>0,a=n?r:i,o=n?i:r,l=!!a.prerelease.length,u=l?"pre":"";return r.major!==i.major?u+"major":r.minor!==i.minor?u+"minor":r.patch!==i.patch?u+"patch":l?"prerelease":o.patch?"patch":o.minor?"minor":"major"};HB.exports=vIe});var YB=g((_8e,GB)=>{c();var AIe=Vt(),wIe=(t,e)=>new AIe(t,e).major;GB.exports=wIe});var zB=g((I8e,XB)=>{c();var _Ie=Vt(),CIe=(t,e)=>new _Ie(t,e).minor;XB.exports=CIe});var QB=g((N8e,JB)=>{c();var IIe=Vt(),OIe=(t,e)=>new IIe(t,e).patch;JB.exports=OIe});var ej=g((L8e,ZB)=>{c();var NIe=Qn(),DIe=(t,e)=>{let r=NIe(t,e);return r&&r.prerelease.length?r.prerelease:null};ZB.exports=DIe});var Gr=g((R8e,rj)=>{c();var tj=Vt(),LIe=(t,e,r)=>new tj(t,r).compare(new tj(e,r));rj.exports=LIe});var sj=g((F8e,ij)=>{c();var kIe=Gr(),RIe=(t,e,r)=>kIe(e,t,r);ij.exports=RIe});var aj=g((j8e,nj)=>{c();var MIe=Gr(),FIe=(t,e)=>MIe(t,e,!0);nj.exports=FIe});var Xh=g((U8e,lj)=>{c();var oj=Vt(),BIe=(t,e,r)=>{let i=new oj(t,r),s=new oj(e,r);return i.compare(s)||i.compareBuild(s)};lj.exports=BIe});var cj=g((V8e,uj)=>{c();var jIe=Xh(),qIe=(t,e)=>t.sort((r,i)=>jIe(r,i,e));uj.exports=qIe});var pj=g((H8e,fj)=>{c();var UIe=Xh(),$Ie=(t,e)=>t.sort((r,i)=>UIe(i,r,e));fj.exports=$Ie});var Iu=g((G8e,hj)=>{c();var VIe=Gr(),KIe=(t,e,r)=>VIe(t,e,r)>0;hj.exports=KIe});var zh=g((X8e,dj)=>{c();var HIe=Gr(),WIe=(t,e,r)=>HIe(t,e,r)<0;dj.exports=WIe});var _x=g((J8e,mj)=>{c();var GIe=Gr(),YIe=(t,e,r)=>GIe(t,e,r)===0;mj.exports=YIe});var Cx=g((Z8e,yj)=>{c();var XIe=Gr(),zIe=(t,e,r)=>XIe(t,e,r)!==0;yj.exports=zIe});var Jh=g((t9e,gj)=>{c();var JIe=Gr(),QIe=(t,e,r)=>JIe(t,e,r)>=0;gj.exports=QIe});var Qh=g((i9e,Sj)=>{c();var ZIe=Gr(),eOe=(t,e,r)=>ZIe(t,e,r)<=0;Sj.exports=eOe});var Ix=g((n9e,Tj)=>{c();var tOe=_x(),rOe=Cx(),iOe=Iu(),sOe=Jh(),nOe=zh(),aOe=Qh(),oOe=(t,e,r,i)=>{switch(e){case"===":return typeof t=="object"&&(t=t.version),typeof r=="object"&&(r=r.version),t===r;case"!==":return typeof t=="object"&&(t=t.version),typeof r=="object"&&(r=r.version),t!==r;case"":case"=":case"==":return tOe(t,r,i);case"!=":return rOe(t,r,i);case">":return iOe(t,r,i);case">=":return sOe(t,r,i);case"<":return nOe(t,r,i);case"<=":return aOe(t,r,i);default:throw new TypeError(`Invalid operator: ${e}`)}};Tj.exports=oOe});var bj=g((o9e,Ej)=>{c();var lOe=Vt(),uOe=Qn(),{re:Zh,t:ed}=Co(),cOe=(t,e)=>{if(t instanceof lOe)return t;if(typeof t=="number"&&(t=String(t)),typeof t!="string")return null;e=e||{};let r=null;if(!e.rtl)r=t.match(Zh[ed.COERCE]);else{let i;for(;(i=Zh[ed.COERCERTL].exec(t))&&(!r||r.index+r[0].length!==t.length);)(!r||i.index+i[0].length!==r.index+r[0].length)&&(r=i),Zh[ed.COERCERTL].lastIndex=i.index+i[1].length+i[2].length;Zh[ed.COERCERTL].lastIndex=-1}return r===null?null:uOe(`${r[2]}.${r[3]||"0"}.${r[4]||"0"}`,e)};Ej.exports=cOe});var wj=g((u9e,Aj)=>{"use strict";c();var fOe=Pc(),Zn=Symbol("max"),ns=Symbol("length"),Oo=Symbol("lengthCalculator"),Nu=Symbol("allowStale"),ea=Symbol("maxAge"),ss=Symbol("dispose"),xj=Symbol("noDisposeOnSet"),_t=Symbol("lruList"),ai=Symbol("cache"),vj=Symbol("updateAgeOnGet"),Ox=()=>1,Dx=class{constructor(e){if(typeof e=="number"&&(e={max:e}),e||(e={}),e.max&&(typeof e.max!="number"||e.max<0))throw new TypeError("max must be a non-negative number");let r=this[Zn]=e.max||1/0,i=e.length||Ox;if(this[Oo]=typeof i!="function"?Ox:i,this[Nu]=e.stale||!1,e.maxAge&&typeof e.maxAge!="number")throw new TypeError("maxAge must be a number");this[ea]=e.maxAge||0,this[ss]=e.dispose,this[xj]=e.noDisposeOnSet||!1,this[vj]=e.updateAgeOnGet||!1,this.reset()}set max(e){if(typeof e!="number"||e<0)throw new TypeError("max must be a non-negative number");this[Zn]=e||1/0,Ou(this)}get max(){return this[Zn]}set allowStale(e){this[Nu]=!!e}get allowStale(){return this[Nu]}set maxAge(e){if(typeof e!="number")throw new TypeError("maxAge must be a non-negative number");this[ea]=e,Ou(this)}get maxAge(){return this[ea]}set lengthCalculator(e){typeof e!="function"&&(e=Ox),e!==this[Oo]&&(this[Oo]=e,this[ns]=0,this[_t].forEach(r=>{r.length=this[Oo](r.value,r.key),this[ns]+=r.length})),Ou(this)}get lengthCalculator(){return this[Oo]}get length(){return this[ns]}get itemCount(){return this[_t].length}rforEach(e,r){r=r||this;for(let i=this[_t].tail;i!==null;){let s=i.prev;Pj(this,e,i,r),i=s}}forEach(e,r){r=r||this;for(let i=this[_t].head;i!==null;){let s=i.next;Pj(this,e,i,r),i=s}}keys(){return this[_t].toArray().map(e=>e.key)}values(){return this[_t].toArray().map(e=>e.value)}reset(){this[ss]&&this[_t]&&this[_t].length&&this[_t].forEach(e=>this[ss](e.key,e.value)),this[ai]=new Map,this[_t]=new fOe,this[ns]=0}dump(){return this[_t].map(e=>td(this,e)?!1:{k:e.key,v:e.value,e:e.now+(e.maxAge||0)}).toArray().filter(e=>e)}dumpLru(){return this[_t]}set(e,r,i){if(i=i||this[ea],i&&typeof i!="number")throw new TypeError("maxAge must be a number");let s=i?Date.now():0,n=this[Oo](r,e);if(this[ai].has(e)){if(n>this[Zn])return No(this,this[ai].get(e)),!1;let l=this[ai].get(e).value;return this[ss]&&(this[xj]||this[ss](e,l.value)),l.now=s,l.maxAge=i,l.value=r,this[ns]+=n-l.length,l.length=n,this.get(e),Ou(this),!0}let a=new Lx(e,r,n,s,i);return a.length>this[Zn]?(this[ss]&&this[ss](e,r),!1):(this[ns]+=a.length,this[_t].unshift(a),this[ai].set(e,this[_t].head),Ou(this),!0)}has(e){if(!this[ai].has(e))return!1;let r=this[ai].get(e).value;return!td(this,r)}get(e){return Nx(this,e,!0)}peek(e){return Nx(this,e,!1)}pop(){let e=this[_t].tail;return e?(No(this,e),e.value):null}del(e){No(this,this[ai].get(e))}load(e){this.reset();let r=Date.now();for(let i=e.length-1;i>=0;i--){let s=e[i],n=s.e||0;if(n===0)this.set(s.k,s.v);else{let a=n-r;a>0&&this.set(s.k,s.v,a)}}}prune(){this[ai].forEach((e,r)=>Nx(this,r,!1))}},Nx=(t,e,r)=>{let i=t[ai].get(e);if(i){let s=i.value;if(td(t,s)){if(No(t,i),!t[Nu])return}else r&&(t[vj]&&(i.value.now=Date.now()),t[_t].unshiftNode(i));return s.value}},td=(t,e)=>{if(!e||!e.maxAge&&!t[ea])return!1;let r=Date.now()-e.now;return e.maxAge?r>e.maxAge:t[ea]&&r>t[ea]},Ou=t=>{if(t[ns]>t[Zn])for(let e=t[_t].tail;t[ns]>t[Zn]&&e!==null;){let r=e.prev;No(t,e),e=r}},No=(t,e)=>{if(e){let r=e.value;t[ss]&&t[ss](r.key,r.value),t[ns]-=r.length,t[ai].delete(r.key),t[_t].removeNode(e)}},Lx=class{constructor(e,r,i,s,n){this.key=e,this.value=r,this.length=i,this.now=s,this.maxAge=n||0}},Pj=(t,e,r,i)=>{let s=r.value;td(t,s)&&(No(t,r),t[Nu]||(s=void 0)),s&&e.call(i,s.value,s.key,t)};Aj.exports=Dx});var Yr=g((f9e,Oj)=>{c();var ta=class{constructor(e,r){if(r=hOe(r),e instanceof ta)return e.loose===!!r.loose&&e.includePrerelease===!!r.includePrerelease?e:new ta(e.raw,r);if(e instanceof kx)return this.raw=e.value,this.set=[[e]],this.format(),this;if(this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease,this.raw=e,this.set=e.split("||").map(i=>this.parseRange(i.trim())).filter(i=>i.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${e}`);if(this.set.length>1){let i=this.set[0];if(this.set=this.set.filter(s=>!Cj(s[0])),this.set.length===0)this.set=[i];else if(this.set.length>1){for(let s of this.set)if(s.length===1&&EOe(s[0])){this.set=[s];break}}}this.format()}format(){return this.range=this.set.map(e=>e.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(e){e=e.trim();let i=((this.options.includePrerelease&&SOe)|(this.options.loose&&TOe))+":"+e,s=_j.get(i);if(s)return s;let n=this.options.loose,a=n?gr[tr.HYPHENRANGELOOSE]:gr[tr.HYPHENRANGE];e=e.replace(a,OOe(this.options.includePrerelease)),ut("hyphen replace",e),e=e.replace(gr[tr.COMPARATORTRIM],mOe),ut("comparator trim",e),e=e.replace(gr[tr.TILDETRIM],yOe),e=e.replace(gr[tr.CARETTRIM],gOe),e=e.split(/\s+/).join(" ");let o=e.split(" ").map(p=>bOe(p,this.options)).join(" ").split(/\s+/).map(p=>IOe(p,this.options));n&&(o=o.filter(p=>(ut("loose invalid filter",p,this.options),!!p.match(gr[tr.COMPARATORLOOSE])))),ut("range list",o);let l=new Map,u=o.map(p=>new kx(p,this.options));for(let p of u){if(Cj(p))return[p];l.set(p.value,p)}l.size>1&&l.has("")&&l.delete("");let f=[...l.values()];return _j.set(i,f),f}intersects(e,r){if(!(e instanceof ta))throw new TypeError("a Range is required");return this.set.some(i=>Ij(i,r)&&e.set.some(s=>Ij(s,r)&&i.every(n=>s.every(a=>n.intersects(a,r)))))}test(e){if(!e)return!1;if(typeof e=="string")try{e=new dOe(e,this.options)}catch{return!1}for(let r=0;r<this.set.length;r++)if(NOe(this.set[r],e,this.options))return!0;return!1}};Oj.exports=ta;var pOe=wj(),_j=new pOe({max:1e3}),hOe=Wh(),kx=Du(),ut=Cu(),dOe=Vt(),{re:gr,t:tr,comparatorTrimReplace:mOe,tildeTrimReplace:yOe,caretTrimReplace:gOe}=Co(),{FLAG_INCLUDE_PRERELEASE:SOe,FLAG_LOOSE:TOe}=_u(),Cj=t=>t.value==="<0.0.0-0",EOe=t=>t.value==="",Ij=(t,e)=>{let r=!0,i=t.slice(),s=i.pop();for(;r&&i.length;)r=i.every(n=>s.intersects(n,e)),s=i.pop();return r},bOe=(t,e)=>(ut("comp",t,e),t=vOe(t,e),ut("caret",t),t=xOe(t,e),ut("tildes",t),t=wOe(t,e),ut("xrange",t),t=COe(t,e),ut("stars",t),t),rr=t=>!t||t.toLowerCase()==="x"||t==="*",xOe=(t,e)=>t.trim().split(/\s+/).map(r=>POe(r,e)).join(" "),POe=(t,e)=>{let r=e.loose?gr[tr.TILDELOOSE]:gr[tr.TILDE];return t.replace(r,(i,s,n,a,o)=>{ut("tilde",t,i,s,n,a,o);let l;return rr(s)?l="":rr(n)?l=`>=${s}.0.0 <${+s+1}.0.0-0`:rr(a)?l=`>=${s}.${n}.0 <${s}.${+n+1}.0-0`:o?(ut("replaceTilde pr",o),l=`>=${s}.${n}.${a}-${o} <${s}.${+n+1}.0-0`):l=`>=${s}.${n}.${a} <${s}.${+n+1}.0-0`,ut("tilde return",l),l})},vOe=(t,e)=>t.trim().split(/\s+/).map(r=>AOe(r,e)).join(" "),AOe=(t,e)=>{ut("caret",t,e);let r=e.loose?gr[tr.CARETLOOSE]:gr[tr.CARET],i=e.includePrerelease?"-0":"";return t.replace(r,(s,n,a,o,l)=>{ut("caret",t,s,n,a,o,l);let u;return rr(n)?u="":rr(a)?u=`>=${n}.0.0${i} <${+n+1}.0.0-0`:rr(o)?n==="0"?u=`>=${n}.${a}.0${i} <${n}.${+a+1}.0-0`:u=`>=${n}.${a}.0${i} <${+n+1}.0.0-0`:l?(ut("replaceCaret pr",l),n==="0"?a==="0"?u=`>=${n}.${a}.${o}-${l} <${n}.${a}.${+o+1}-0`:u=`>=${n}.${a}.${o}-${l} <${n}.${+a+1}.0-0`:u=`>=${n}.${a}.${o}-${l} <${+n+1}.0.0-0`):(ut("no pr"),n==="0"?a==="0"?u=`>=${n}.${a}.${o}${i} <${n}.${a}.${+o+1}-0`:u=`>=${n}.${a}.${o}${i} <${n}.${+a+1}.0-0`:u=`>=${n}.${a}.${o} <${+n+1}.0.0-0`),ut("caret return",u),u})},wOe=(t,e)=>(ut("replaceXRanges",t,e),t.split(/\s+/).map(r=>_Oe(r,e)).join(" ")),_Oe=(t,e)=>{t=t.trim();let r=e.loose?gr[tr.XRANGELOOSE]:gr[tr.XRANGE];return t.replace(r,(i,s,n,a,o,l)=>{ut("xRange",t,i,s,n,a,o,l);let u=rr(n),f=u||rr(a),p=f||rr(o),h=p;return s==="="&&h&&(s=""),l=e.includePrerelease?"-0":"",u?s===">"||s==="<"?i="<0.0.0-0":i="*":s&&h?(f&&(a=0),o=0,s===">"?(s=">=",f?(n=+n+1,a=0,o=0):(a=+a+1,o=0)):s==="<="&&(s="<",f?n=+n+1:a=+a+1),s==="<"&&(l="-0"),i=`${s+n}.${a}.${o}${l}`):f?i=`>=${n}.0.0${l} <${+n+1}.0.0-0`:p&&(i=`>=${n}.${a}.0${l} <${n}.${+a+1}.0-0`),ut("xRange return",i),i})},COe=(t,e)=>(ut("replaceStars",t,e),t.trim().replace(gr[tr.STAR],"")),IOe=(t,e)=>(ut("replaceGTE0",t,e),t.trim().replace(gr[e.includePrerelease?tr.GTE0PRE:tr.GTE0],"")),OOe=t=>(e,r,i,s,n,a,o,l,u,f,p,h,d)=>(rr(i)?r="":rr(s)?r=`>=${i}.0.0${t?"-0":""}`:rr(n)?r=`>=${i}.${s}.0${t?"-0":""}`:a?r=`>=${r}`:r=`>=${r}${t?"-0":""}`,rr(u)?l="":rr(f)?l=`<${+u+1}.0.0-0`:rr(p)?l=`<${u}.${+f+1}.0-0`:h?l=`<=${u}.${f}.${p}-${h}`:t?l=`<${u}.${f}.${+p+1}-0`:l=`<=${l}`,`${r} ${l}`.trim()),NOe=(t,e,r)=>{for(let i=0;i<t.length;i++)if(!t[i].test(e))return!1;if(e.prerelease.length&&!r.includePrerelease){for(let i=0;i<t.length;i++)if(ut(t[i].semver),t[i].semver!==kx.ANY&&t[i].semver.prerelease.length>0){let s=t[i].semver;if(s.major===e.major&&s.minor===e.minor&&s.patch===e.patch)return!0}return!1}return!0}});var Du=g((h9e,Mj)=>{c();var Lu=Symbol("SemVer ANY"),Do=class{static get ANY(){return Lu}constructor(e,r){if(r=Nj(r),e instanceof Do){if(e.loose===!!r.loose)return e;e=e.value}Mx("comparator",e,r),this.options=r,this.loose=!!r.loose,this.parse(e),this.semver===Lu?this.value="":this.value=this.operator+this.semver.version,Mx("comp",this)}parse(e){let r=this.options.loose?Dj[Lj.COMPARATORLOOSE]:Dj[Lj.COMPARATOR],i=e.match(r);if(!i)throw new TypeError(`Invalid comparator: ${e}`);this.operator=i[1]!==void 0?i[1]:"",this.operator==="="&&(this.operator=""),i[2]?this.semver=new kj(i[2],this.options.loose):this.semver=Lu}toString(){return this.value}test(e){if(Mx("Comparator.test",e,this.options.loose),this.semver===Lu||e===Lu)return!0;if(typeof e=="string")try{e=new kj(e,this.options)}catch{return!1}return Rx(e,this.operator,this.semver,this.options)}intersects(e,r){if(!(e instanceof Do))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new Rj(e.value,r).test(this.value):e.operator===""?e.value===""?!0:new Rj(this.value,r).test(e.semver):(r=Nj(r),r.includePrerelease&&(this.value==="<0.0.0-0"||e.value==="<0.0.0-0")||!r.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&e.operator.startsWith(">")||this.operator.startsWith("<")&&e.operator.startsWith("<")||this.semver.version===e.semver.version&&this.operator.includes("=")&&e.operator.includes("=")||Rx(this.semver,"<",e.semver,r)&&this.operator.startsWith(">")&&e.operator.startsWith("<")||Rx(this.semver,">",e.semver,r)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}};Mj.exports=Do;var Nj=Wh(),{re:Dj,t:Lj}=Co(),Rx=Ix(),Mx=Cu(),kj=Vt(),Rj=Yr()});var ku=g((m9e,Fj)=>{c();var DOe=Yr(),LOe=(t,e,r)=>{try{e=new DOe(e,r)}catch{return!1}return e.test(t)};Fj.exports=LOe});var jj=g((g9e,Bj)=>{c();var kOe=Yr(),ROe=(t,e)=>new kOe(t,e).set.map(r=>r.map(i=>i.value).join(" ").trim().split(" "));Bj.exports=ROe});var Uj=g((T9e,qj)=>{c();var MOe=Vt(),FOe=Yr(),BOe=(t,e,r)=>{let i=null,s=null,n=null;try{n=new FOe(e,r)}catch{return null}return t.forEach(a=>{n.test(a)&&(!i||s.compare(a)===-1)&&(i=a,s=new MOe(i,r))}),i};qj.exports=BOe});var Vj=g((b9e,$j)=>{c();var jOe=Vt(),qOe=Yr(),UOe=(t,e,r)=>{let i=null,s=null,n=null;try{n=new qOe(e,r)}catch{return null}return t.forEach(a=>{n.test(a)&&(!i||s.compare(a)===1)&&(i=a,s=new jOe(i,r))}),i};$j.exports=UOe});var Wj=g((P9e,Hj)=>{c();var Fx=Vt(),$Oe=Yr(),Kj=Iu(),VOe=(t,e)=>{t=new $Oe(t,e);let r=new Fx("0.0.0");if(t.test(r)||(r=new Fx("0.0.0-0"),t.test(r)))return r;r=null;for(let i=0;i<t.set.length;++i){let s=t.set[i],n=null;s.forEach(a=>{let o=new Fx(a.semver.version);switch(a.operator){case">":o.prerelease.length===0?o.patch++:o.prerelease.push(0),o.raw=o.format();case"":case">=":(!n||Kj(o,n))&&(n=o);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${a.operator}`)}}),n&&(!r||Kj(r,n))&&(r=n)}return r&&t.test(r)?r:null};Hj.exports=VOe});var Yj=g((A9e,Gj)=>{c();var KOe=Yr(),HOe=(t,e)=>{try{return new KOe(t,e).range||"*"}catch{return null}};Gj.exports=HOe});var rd=g((_9e,Qj)=>{c();var WOe=Vt(),Jj=Du(),{ANY:GOe}=Jj,YOe=Yr(),XOe=ku(),Xj=Iu(),zj=zh(),zOe=Qh(),JOe=Jh(),QOe=(t,e,r,i)=>{t=new WOe(t,i),e=new YOe(e,i);let s,n,a,o,l;switch(r){case">":s=Xj,n=zOe,a=zj,o=">",l=">=";break;case"<":s=zj,n=JOe,a=Xj,o="<",l="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(XOe(t,e,i))return!1;for(let u=0;u<e.set.length;++u){let f=e.set[u],p=null,h=null;if(f.forEach(d=>{d.semver===GOe&&(d=new Jj(">=0.0.0")),p=p||d,h=h||d,s(d.semver,p.semver,i)?p=d:a(d.semver,h.semver,i)&&(h=d)}),p.operator===o||p.operator===l||(!h.operator||h.operator===o)&&n(t,h.semver))return!1;if(h.operator===l&&a(t,h.semver))return!1}return!0};Qj.exports=QOe});var e3=g((I9e,Zj)=>{c();var ZOe=rd(),eNe=(t,e,r)=>ZOe(t,e,">",r);Zj.exports=eNe});var r3=g((N9e,t3)=>{c();var tNe=rd(),rNe=(t,e,r)=>tNe(t,e,"<",r);t3.exports=rNe});var n3=g((L9e,s3)=>{c();var i3=Yr(),iNe=(t,e,r)=>(t=new i3(t,r),e=new i3(e,r),t.intersects(e,r));s3.exports=iNe});var o3=g((R9e,a3)=>{c();var sNe=ku(),nNe=Gr();a3.exports=(t,e,r)=>{let i=[],s=null,n=null,a=t.sort((f,p)=>nNe(f,p,r));for(let f of a)sNe(f,e,r)?(n=f,s||(s=f)):(n&&i.push([s,n]),n=null,s=null);s&&i.push([s,null]);let o=[];for(let[f,p]of i)f===p?o.push(f):!p&&f===a[0]?o.push("*"):p?f===a[0]?o.push(`<=${p}`):o.push(`${f} - ${p}`):o.push(`>=${f}`);let l=o.join(" || "),u=typeof e.raw=="string"?e.raw:String(e);return l.length<u.length?l:e}});var h3=g((F9e,p3)=>{c();var l3=Yr(),jx=Du(),{ANY:Bx}=jx,Ru=ku(),qx=Gr(),aNe=(t,e,r={})=>{if(t===e)return!0;t=new l3(t,r),e=new l3(e,r);let i=!1;e:for(let s of t.set){for(let n of e.set){let a=lNe(s,n,r);if(i=i||a!==null,a)continue e}if(i)return!1}return!0},oNe=[new jx(">=0.0.0-0")],u3=[new jx(">=0.0.0")],lNe=(t,e,r)=>{if(t===e)return!0;if(t.length===1&&t[0].semver===Bx){if(e.length===1&&e[0].semver===Bx)return!0;r.includePrerelease?t=oNe:t=u3}if(e.length===1&&e[0].semver===Bx){if(r.includePrerelease)return!0;e=u3}let i=new Set,s,n;for(let d of t)d.operator===">"||d.operator===">="?s=c3(s,d,r):d.operator==="<"||d.operator==="<="?n=f3(n,d,r):i.add(d.semver);if(i.size>1)return null;let a;if(s&&n){if(a=qx(s.semver,n.semver,r),a>0)return null;if(a===0&&(s.operator!==">="||n.operator!=="<="))return null}for(let d of i){if(s&&!Ru(d,String(s),r)||n&&!Ru(d,String(n),r))return null;for(let T of e)if(!Ru(d,String(T),r))return!1;return!0}let o,l,u,f,p=n&&!r.includePrerelease&&n.semver.prerelease.length?n.semver:!1,h=s&&!r.includePrerelease&&s.semver.prerelease.length?s.semver:!1;p&&p.prerelease.length===1&&n.operator==="<"&&p.prerelease[0]===0&&(p=!1);for(let d of e){if(f=f||d.operator===">"||d.operator===">=",u=u||d.operator==="<"||d.operator==="<=",s){if(h&&d.semver.prerelease&&d.semver.prerelease.length&&d.semver.major===h.major&&d.semver.minor===h.minor&&d.semver.patch===h.patch&&(h=!1),d.operator===">"||d.operator===">="){if(o=c3(s,d,r),o===d&&o!==s)return!1}else if(s.operator===">="&&!Ru(s.semver,String(d),r))return!1}if(n){if(p&&d.semver.prerelease&&d.semver.prerelease.length&&d.semver.major===p.major&&d.semver.minor===p.minor&&d.semver.patch===p.patch&&(p=!1),d.operator==="<"||d.operator==="<="){if(l=f3(n,d,r),l===d&&l!==n)return!1}else if(n.operator==="<="&&!Ru(n.semver,String(d),r))return!1}if(!d.operator&&(n||s)&&a!==0)return!1}return!(s&&u&&!n&&a!==0||n&&f&&!s&&a!==0||h||p)},c3=(t,e,r)=>{if(!t)return e;let i=qx(t.semver,e.semver,r);return i>0?t:i<0||e.operator===">"&&t.operator===">="?e:t},f3=(t,e,r)=>{if(!t)return e;let i=qx(t.semver,e.semver,r);return i<0?t:i>0||e.operator==="<"&&t.operator==="<="?e:t};p3.exports=aNe});var $x=g((j9e,y3)=>{c();var Ux=Co(),d3=_u(),uNe=Vt(),m3=wx(),cNe=Qn(),fNe=BB(),pNe=qB(),hNe=VB(),dNe=WB(),mNe=YB(),yNe=zB(),gNe=QB(),SNe=ej(),TNe=Gr(),ENe=sj(),bNe=aj(),xNe=Xh(),PNe=cj(),vNe=pj(),ANe=Iu(),wNe=zh(),_Ne=_x(),CNe=Cx(),INe=Jh(),ONe=Qh(),NNe=Ix(),DNe=bj(),LNe=Du(),kNe=Yr(),RNe=ku(),MNe=jj(),FNe=Uj(),BNe=Vj(),jNe=Wj(),qNe=Yj(),UNe=rd(),$Ne=e3(),VNe=r3(),KNe=n3(),HNe=o3(),WNe=h3();y3.exports={parse:cNe,valid:fNe,clean:pNe,inc:hNe,diff:dNe,major:mNe,minor:yNe,patch:gNe,prerelease:SNe,compare:TNe,rcompare:ENe,compareLoose:bNe,compareBuild:xNe,sort:PNe,rsort:vNe,gt:ANe,lt:wNe,eq:_Ne,neq:CNe,gte:INe,lte:ONe,cmp:NNe,coerce:DNe,Comparator:LNe,Range:kNe,satisfies:RNe,toComparators:MNe,maxSatisfying:FNe,minSatisfying:BNe,minVersion:jNe,validRange:qNe,outside:UNe,gtr:$Ne,ltr:VNe,intersects:KNe,simplifyRange:HNe,subset:WNe,SemVer:uNe,re:Ux.re,src:Ux.src,tokens:Ux.t,SEMVER_SPEC_VERSION:d3.SEMVER_SPEC_VERSION,RELEASE_TYPES:d3.RELEASE_TYPES,compareIdentifiers:m3.compareIdentifiers,rcompareIdentifiers:m3.rcompareIdentifiers}});c();import YNe from"fs/promises";import XNe from"os";import*as Lo from"@clack/prompts";import{Command as zNe}from"commander";c();var ad=class extends Error{constructor(e){super(),this.name="AbortError",this.message=e}},Jx=t=>globalThis.DOMException===void 0?new ad(t):new DOMException(t),Qx=t=>{let e=t.reason===void 0?Jx("This operation was aborted."):t.reason;return e instanceof Error?e:Jx(e)};async function od(t,e,{concurrency:r=Number.POSITIVE_INFINITY,stopOnError:i=!0,signal:s}={}){return new Promise((n,a)=>{if(t[Symbol.iterator]===void 0&&t[Symbol.asyncIterator]===void 0)throw new TypeError(`Expected \`input\` to be either an \`Iterable\` or \`AsyncIterable\`, got (${typeof t})`);if(typeof e!="function")throw new TypeError("Mapper function is required");if(!((Number.isSafeInteger(r)||r===Number.POSITIVE_INFINITY)&&r>=1))throw new TypeError(`Expected \`concurrency\` to be an integer from 1 and up or \`Infinity\`, got \`${r}\` (${typeof r})`);let o=[],l=[],u=new Map,f=!1,p=!1,h=!1,d=0,T=0,b=t[Symbol.iterator]===void 0?t[Symbol.asyncIterator]():t[Symbol.iterator](),x=R=>{f=!0,p=!0,a(R)};s&&(s.aborted&&x(Qx(s)),s.addEventListener("abort",()=>{x(Qx(s))}));let _=async()=>{if(p)return;let R=await b.next(),k=T;if(T++,R.done){if(h=!0,d===0&&!p){if(!i&&l.length>0){x(new AggregateError(l));return}if(p=!0,u.size===0){n(o);return}let M=[];for(let[O,L]of o.entries())u.get(O)!==Zx&&M.push(L);n(M)}return}d++,(async()=>{try{let M=await R.value;if(p)return;let O=await e(M,k);O===Zx&&u.set(k,O),o[k]=O,d--,await _()}catch(M){if(i)x(M);else{l.push(M),d--;try{await _()}catch(O){x(O)}}}})()};(async()=>{for(let R=0;R<r;R++){try{await _()}catch(k){x(k);break}if(h||f)break}})()})}var Zx=Symbol("skip");c();var MC=ir(RC());import UU from"path";var FC=async t=>{t=t||process.env.GRAZ_REGISTRY_SRC||"github:cosmos/chain-registry",await(0,MC.default)(t,{force:!0,mode:"tar"}).clone(UU.resolve(m,"../../registry"))};c();import bH from"path";c();var YN=ir(rg(),1),Ol=ir(BS(),1),Il=ir(IN(),1);import mH from"fs";import yH from"path";c();var GS=ir(BS(),1),UN=ir(jN(),1);import fH from"process";import qN from"fs";import za from"path";c();function Xa(t){let e=/^\\\\\?\\/.test(t),r=/[^\u0000-\u0080]+/.test(t);return e||r?t:t.replace(/\\/g,"/")}c();import{fileURLToPath as uH}from"url";import{Transform as cH}from"stream";var Cl=t=>t instanceof URL?uH(t):t,Qf=class extends cH{constructor(e){super({objectMode:!0,transform(r,i,s){s(void 0,e(r)?r:void 0)}})}},Zf=t=>t[0]==="!";var $N={ignore:["**/node_modules","**/flow-typed","**/coverage","**/.git"],absolute:!0,dot:!0},VN="**/.gitignore",pH=(t,e)=>Zf(t)?"!"+za.posix.join(e,t.slice(1)):za.posix.join(e,t),hH=(t,e)=>{let r=Xa(za.relative(e,za.dirname(t.filePath)));return t.content.split(/\r?\n/).filter(i=>i&&!i.startsWith("#")).map(i=>pH(i,r))},dH=(t,e)=>{if(e=Xa(e),za.isAbsolute(t)){if(Xa(t).startsWith(e))return za.relative(e,t);throw new Error(`Path ${t} is not in cwd ${e}`)}return t},KN=(t,e)=>{let r=t.flatMap(s=>hH(s,e)),i=(0,UN.default)().add(r);return s=>(s=Cl(s),s=dH(s,e),s?i.ignores(Xa(s)):!1)},HN=(t={})=>({cwd:Cl(t.cwd)||fH.cwd(),suppressErrors:!!t.suppressErrors}),WN=async(t,e)=>{let{cwd:r,suppressErrors:i}=HN(e),s=await(0,GS.default)(t,{cwd:r,suppressErrors:i,...$N}),n=await Promise.all(s.map(async a=>({filePath:a,content:await qN.promises.readFile(a,"utf8")})));return KN(n,r)},GN=(t,e)=>{let{cwd:r,suppressErrors:i}=HN(e),n=GS.default.sync(t,{cwd:r,suppressErrors:i,...$N}).map(a=>({filePath:a,content:qN.readFileSync(a,"utf8")}));return KN(n,r)};var gH=t=>{if(t.some(e=>typeof e!="string"))throw new TypeError("Patterns must be a string or an array of strings")},YS=t=>(t=[...new Set([t].flat())],gH(t),t),SH=t=>{if(!t.cwd)return;let e;try{e=mH.statSync(t.cwd)}catch{return}if(!e.isDirectory())throw new Error("The `cwd` option must be a path to a directory")},XN=(t={})=>(t={ignore:[],expandDirectories:!0,...t,cwd:Cl(t.cwd)},SH(t),t),zN=t=>async(e,r)=>t(YS(e),XN(r)),ep=t=>(e,r)=>t(YS(e),XN(r)),JN=t=>{let{ignoreFiles:e,gitignore:r}=t,i=e?YS(e):[];return r&&i.push(VN),i},TH=async t=>{let e=JN(t);return ZN(e.length>0&&await WN(e,t))},QN=t=>{let e=JN(t);return ZN(e.length>0&&GN(e,t))},ZN=t=>{let e=new Set;return r=>{let i=r.path||r,s=yH.normalize(i),n=e.has(s)||t&&t(i);return e.add(s),!n}},eD=(t,e)=>t.flat().filter(r=>e(r)),EH=(t,e)=>(0,YN.default)(t).pipe(new Qf(r=>e(r))),tD=(t,e)=>{let r=[];for(;t.length>0;){let i=t.findIndex(n=>Zf(n));if(i===-1){r.push({patterns:t,options:e});break}let s=t[i].slice(1);for(let n of r)n.options.ignore.push(s);i!==0&&r.push({patterns:t.slice(0,i),options:{...e,ignore:[...e.ignore,s]}}),t=t.slice(i+1)}return r},rD=(t,e)=>({...e?{cwd:e}:{},...Array.isArray(t)?{files:t}:t}),iD=async(t,e)=>{let r=tD(t,e),{cwd:i,expandDirectories:s}=e;if(!s)return r;let n=rD(s,i),a=i?{cwd:i}:void 0;return Promise.all(r.map(async o=>{let{patterns:l,options:u}=o;return[l,u.ignore]=await Promise.all([(0,Il.default)(l,n),(0,Il.default)(u.ignore,a)]),{patterns:l,options:u}}))},XS=(t,e)=>{let r=tD(t,e),{cwd:i,expandDirectories:s}=e;if(!s)return r;let n=rD(s,i),a=i?{cwd:i}:void 0;return r.map(o=>{let{patterns:l,options:u}=o;return l=Il.default.sync(l,n),u.ignore=Il.default.sync(u.ignore,a),{patterns:l,options:u}})},zS=zN(async(t,e)=>{let[r,i]=await Promise.all([iD(t,e),TH(e)]),s=await Promise.all(r.map(n=>(0,Ol.default)(n.patterns,n.options)));return eD(s,i)}),_Be=ep((t,e)=>{let r=XS(t,e),i=QN(e),s=r.map(n=>Ol.default.sync(n.patterns,n.options));return eD(s,i)}),CBe=ep((t,e)=>{let r=XS(t,e),i=QN(e),s=r.map(n=>Ol.default.stream(n.patterns,n.options));return EH(s,i)}),IBe=ep((t,e)=>t.some(r=>Ol.default.isDynamicPattern(r,e))),OBe=zN(iD),NBe=ep(XS);var sD=async({mainnetFilter:t,testnetFilter:e}={})=>{let r={cwd:bH.resolve(m,"../../registry"),onlyDirectories:!0},[i,s]=await Promise.all([zS([...t&&t.length>0?t:["*"],"!_*","!testnets"],r),zS([...e&&e.length>0?e.map(n=>`testnets/${n}`):["testnets/*"],"!testnets/_*"],r)]);return{mainnetPaths:i,testnetPaths:s}};c();var xx=ir(Wp()),Px=ir(ph()),vx=ir(mu()),He=ir(ve());import Kh from"fs/promises";import Hh from"path";var PB=async({mainnetPaths:t,testnetPaths:e})=>{let r=await Kh.readFile(Hh.resolve(m,"../../stubs/chains-index.js.stub"),"utf-8"),i=(0,Px.parse)(r,{sourceType:"module"});(0,vx.default)(i,{VariableDeclarator:p=>{He.isIdentifier(p.node.id,{name:"mainnetChains"})&&(p.node.init=He.objectExpression(t.map(h=>He.objectMethod("get",He.stringLiteral(h),[],He.blockStatement([He.returnStatement(He.callExpression(He.identifier("require"),[He.stringLiteral(`./${h}`)]))])))),p.skip()),He.isIdentifier(p.node.id,{name:"testnetChains"})&&(p.node.init=He.objectExpression(e.map(h=>{let d=h.replace("testnets/","");return He.objectMethod("get",He.stringLiteral(d),[],He.blockStatement([He.returnStatement(He.callExpression(He.identifier("require"),[He.stringLiteral(`./${d}`)]))]))})),p.skip())}});let{code:s}=new xx.CodeGenerator(i).generate();await Kh.writeFile(Hh.resolve(m,"../../chains/index.js"),s,"utf-8");let a=[...t,...e].map(p=>p.replace("testnets/","")),o=[...new Set(a)],l=await Kh.readFile(Hh.resolve(m,"../../stubs/chains-index.d.ts.stub"),"utf-8"),u=(0,Px.parse)(l,{sourceType:"module",plugins:[["typescript",{dts:!0}]]});(0,vx.default)(u,{TSTypeAliasDeclaration:p=>{He.isIdentifier(p.node.id,{name:"ChainName"})&&(p.node.typeAnnotation=He.tsUnionType(o.map(h=>He.tsLiteralType(He.stringLiteral(h)))),p.stop())}});let{code:f}=new xx.CodeGenerator(u).generate();await Kh.writeFile(Hh.resolve(m,"../../chains/index.d.ts"),f,"utf-8")};c();var id=ir(Wp()),re=ir(ve());import as from"fs/promises";import Xr from"path";c();var Mu=ir($x());import{Bech32Address as GNe}from"@keplr-wallet/cosmos";c();function g3(t,e){if(t)return;if(process.env.NODE_ENV==="production")throw new Error(Vx);let r=typeof e=="function"?e():e,i=r?`${Vx}: ${r}`:Vx;throw new Error(i)}var Vx="Invariant failed";c();var S3=ir($x()),Kx=t=>{if(!(0,S3.valid)(t))switch(t.split(".").length){case 1:return`${t}.0.0`;case 2:return`${t}.0`;case 3:default:throw new Error("invalid semver")}return t};var T3=t=>{var x,_,R,k,M,O;let{chain:e,getRestEndpoint:r=({apis:L})=>{var F,H;return((H=(F=L==null?void 0:L.rest)==null?void 0:F[0])==null?void 0:H.address)??""},getRpcEndpoint:i=({apis:L})=>{var F,H;return((H=(F=L==null?void 0:L.rpc)==null?void 0:F[0])==null?void 0:H.address)??""}}=t,s=[],n=Kx(((x=e.codebase)==null?void 0:x.cosmos_sdk_version)??"0.4");if((0,Mu.satisfies)(n,">=0.4")&&s.push("stargate"),(0,Mu.satisfies)(n,">=0.43")&&s.push("no-legacy-stdTx"),s.push("ibc-transfer"),(0,Mu.satisfies)(n,">=0.45")&&s.push("ibc-go"),(_=e.codebase)!=null&&_.cosmwasm_enabled){s.push("cosmwasm");let L=Kx(e.codebase.cosmwasm_version??"0.24");(0,Mu.satisfies)(L,">=0.24")&&s.push("wasmd_0.24+")}let a=[];"assetlists"in t&&Array.isArray(t.assetlists)&&(a=((R=t.assetlists.find(L=>L.chain_name===e.chain_name))==null?void 0:R.assets)||[]),"assetlist"in t&&Array.isArray(t.assetlist.assets)&&(a=t.assetlist.assets),"assets"in t&&Array.isArray(t.assets)&&(a=t.assets);let o=((k=e.fees)==null?void 0:k.fee_tokens.map(L=>L.denom))||[],l={};for(let L of((M=e.fees)==null?void 0:M.fee_tokens)||[])l[L.denom]={low:L.low_gas_price??.01,average:L.average_gas_price??.025,high:L.high_gas_price??.04};let u=((O=e.staking)==null?void 0:O.staking_tokens.map(L=>L.denom))||[],f=a.map(L=>{var H,V;let F=L.denom_units.reduce((X,B)=>B.exponent>X.exponent?B:X);return{coinDenom:L.symbol,coinMinimalDenom:L.base,coinDecimals:F.exponent,coinGeckoId:L.coingecko_id,coinImageUrl:((H=L.logo_URIs)==null?void 0:H.svg)??((V=L.logo_URIs)==null?void 0:V.png)}}),p=f[0];g3(p,`chain '${e.chain_name}' has no assets`);let h=f.find(L=>u.includes(L.coinDenom))??p,d=f.filter(L=>o.includes(L.coinMinimalDenom)).map(L=>{if(!l.hasOwnProperty(L.coinMinimalDenom))return L;let F=l[L.coinMinimalDenom];return{...L,gasPriceStep:F}}),T=f.filter(L=>h.coinDenom===L.coinDenom).map(L=>{if(!l.hasOwnProperty(L.coinMinimalDenom))return L;let F=l[L.coinMinimalDenom];return{...L,gasPriceStep:F}});return{rpc:i(e),rest:r(e),chainId:e.chain_id,chainName:e.pretty_name||"",bip44:{coinType:e.slip44||118},bech32Config:GNe.defaultBech32Config(e.bech32_prefix),currencies:f,stakeCurrency:h,feeCurrencies:d.length!==0?d:T,features:s}};var E3=async t=>{let e=t.replace("testnets/","");await as.mkdir(Xr.resolve(m,`../../chains/${e}`),{recursive:!0});let r;try{let h=await as.readFile(Xr.resolve(m,`../../registry/${t}/assetlist.json`),"utf-8");r=JSON.parse(h)}catch{r={assets:[],chain_name:t}}let i=re.program([re.variableDeclaration("const",[re.variableDeclarator(re.objectPattern([re.objectProperty(re.identifier("defineAssetList"),re.identifier("defineAssetList"),!1,!0)]),re.callExpression(re.identifier("require"),[re.stringLiteral("../../dist")]))]),re.expressionStatement(re.assignmentExpression("=",re.memberExpression(re.identifier("module"),re.identifier("exports")),re.callExpression(re.identifier("defineAssetList"),[re.valueToNode(r)])))]),{code:s}=new id.CodeGenerator(i).generate();await as.writeFile(Xr.resolve(m,`../../chains/${e}/assetlist.js`),`/* eslint-disable */
89
+ ${s}`,"utf-8");let n=await as.readFile(Xr.resolve(m,`../../registry/${t}/chain.json`),"utf-8"),a=JSON.parse(n),o=re.program([re.variableDeclaration("const",[re.variableDeclarator(re.objectPattern([re.objectProperty(re.identifier("defineRegistryChain"),re.identifier("defineRegistryChain"),!1,!0)]),re.callExpression(re.identifier("require"),[re.stringLiteral("../../dist")]))]),re.expressionStatement(re.assignmentExpression("=",re.memberExpression(re.identifier("module"),re.identifier("exports")),re.callExpression(re.identifier("defineRegistryChain"),[re.valueToNode(a)])))]),{code:l}=new id.CodeGenerator(o).generate();await as.writeFile(Xr.resolve(m,`../../chains/${e}/chain.js`),`/* eslint-disable */
90
+ ${l}`,"utf-8");let u;r.assets.length>0&&(u=T3({assetlist:r,chain:a}));let f=re.program(u?[re.variableDeclaration("const",[re.variableDeclarator(re.objectPattern([re.objectProperty(re.identifier("defineChainInfo"),re.identifier("defineChainInfo"),!1,!0)]),re.callExpression(re.identifier("require"),[re.stringLiteral("../../dist")]))]),re.expressionStatement(re.assignmentExpression("=",re.memberExpression(re.identifier("module"),re.identifier("exports")),re.callExpression(re.identifier("defineChainInfo"),[re.valueToNode(u)])))]:[re.expressionStatement(re.callExpression(re.memberExpression(re.identifier("console"),re.identifier("error")),[re.stringLiteral(`chain info for '${a.chain_name}' is not generated due to invalid assetlist`)])),re.expressionStatement(re.assignmentExpression("=",re.memberExpression(re.identifier("module"),re.identifier("exports")),re.objectExpression([])))]),{code:p}=new id.CodeGenerator(f).generate();await as.writeFile(Xr.resolve(m,`../../chains/${e}/index.js`),`/* eslint-disable */
91
+ ${p}`,"utf-8"),await Promise.all([as.copyFile(Xr.resolve(m,"../../stubs/chain-assetlist.d.ts.stub"),Xr.resolve(m,`../../chains/${e}/assetlist.d.ts`)),as.copyFile(Xr.resolve(m,"../../stubs/chain-chain.d.ts.stub"),Xr.resolve(m,`../../chains/${e}/chain.d.ts`)),as.copyFile(Xr.resolve(m,"../../stubs/chain-index.d.ts.stub"),Xr.resolve(m,`../../chains/${e}/index.d.ts`))])};var JNe=async()=>{let t=new zNe;t.name("graz").description("React hooks for Cosmos").addHelpText("afterAll",`
92
+ https://github.com/strangelove-ventures/graz
93
+ `),t.command("generate").description('generate chain definitions and export to "graz/chains"').option("-R, --registry <url>","specify a custom chain registry namespace (e.g. org/repo, github:org/repo, gitlab:org/repo)").option("-M, --mainnet <chainPaths...>",'generate given mainnet chain paths separated by spaces (e.g. "axelar cosmoshub juno")').option("-T, --testnet <chainPaths...>",'generate given testnet chain paths separated by spaces (e.g. "atlantic bitcannadev cheqdtestnet")').action(async e=>{let r=e.registry,i=e.mainnet,s=e.testnet;Lo.intro("graz generate");let n=Lo.spinner();n.start("Cloning chain registry"),await FC(r),n.stop("Cloned chain registry \u2705"),n.start("Retrieving chain paths");let{mainnetPaths:a,testnetPaths:o}=await sD({mainnetFilter:i,testnetFilter:s});n.stop("Retrieved chain paths \u2705"),n.start("Generating chain sources"),await YNe.rm("chains/",{recursive:!0,force:!0}),await od([...a,...o],E3,{concurrency:Math.max(1,(XNe.cpus()||{length:1}).length-1)}),n.stop("Generated chain sources \u2705"),n.start("Generating chain index"),await PB({mainnetPaths:a,testnetPaths:o}),n.stop("Generated chain index \u2705"),Lo.outro('Generate complete! You can import `mainnetChains` and `testnetChains` from "graz/chains". \u{1F389}')}),await t.parseAsync()};JNe();
94
+ /*! Bundled license information:
95
+
96
+ is-extglob/index.js:
97
+ (*!
98
+ * is-extglob <https://github.com/jonschlinkert/is-extglob>
99
+ *
100
+ * Copyright (c) 2014-2016, Jon Schlinkert.
101
+ * Licensed under the MIT License.
102
+ *)
103
+
104
+ is-glob/index.js:
105
+ (*!
106
+ * is-glob <https://github.com/jonschlinkert/is-glob>
107
+ *
108
+ * Copyright (c) 2014-2017, Jon Schlinkert.
109
+ * Released under the MIT License.
110
+ *)
111
+
112
+ is-number/index.js:
113
+ (*!
114
+ * is-number <https://github.com/jonschlinkert/is-number>
115
+ *
116
+ * Copyright (c) 2014-present, Jon Schlinkert.
117
+ * Released under the MIT License.
118
+ *)
119
+
120
+ to-regex-range/index.js:
121
+ (*!
122
+ * to-regex-range <https://github.com/micromatch/to-regex-range>
123
+ *
124
+ * Copyright (c) 2015-present, Jon Schlinkert.
125
+ * Released under the MIT License.
126
+ *)
127
+
128
+ fill-range/index.js:
129
+ (*!
130
+ * fill-range <https://github.com/jonschlinkert/fill-range>
131
+ *
132
+ * Copyright (c) 2014-present, Jon Schlinkert.
133
+ * Licensed under the MIT License.
134
+ *)
135
+
136
+ queue-microtask/index.js:
137
+ (*! queue-microtask. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> *)
138
+
139
+ run-parallel/index.js:
140
+ (*! run-parallel. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> *)
141
+ */